(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5216],{5538:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/products/tags/[tagSlug]",function(){return l(60405)}])},51390:function(e,t,l){"use strict";l.d(t,{Z:function(){return Layout}});var n=l(85893),s=l(67294),r=l(5152),a=l.n(r),i=l(93967),x=l.n(i),u=l(12023),o=l(20349),c=l(19519),d=l(20503),p=l(47180);let f=a()(()=>l.e(4510).then(l.bind(l,82656)),{loadableGenerated:{webpack:()=>[82656]},ssr:!1});function Layout(e){let{children:t}=e,l=(0,d.G)(),r=(0,p.t)(),[a,i]=(0,s.useState)(!1);return(0,n.jsxs)(u.E.div,{initial:"exit",animate:"enter",exit:"exit",className:"flex min-h-screen w-full flex-col bg-light-300 dark:bg-dark-100",children:[(0,n.jsx)(o.Z,{isCollapse:a,showHamburger:!0,onClickHamburger:function(){i(e=>!e)}}),(0,n.jsxs)("div",{className:"flex flex-1",children:[(0,n.jsx)(c.Sidebar,{isCollapse:a}),(0,n.jsx)("main",{className:x()("flex w-full flex-col",a?"ltr:sm:pl-60 rtl:sm:pr-60 ltr:xl:pl-[75px] rtl:xl:pr-[75px]":"ltr:sm:pl-[75px] rtl:sm:pr-[75px] ltr:xl:pl-60 rtl:xl:pr-60"),children:t})]}),r&&"xs"===l&&(0,n.jsx)(f,{})]})}},60405:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return x}});var n=l(85893),s=l(5233),r=l(7062),a=l(93242),i=l(51390);let TagPage=e=>{let{tag:t}=e,{t:l}=(0,s.$G)("common"),{products:i,paginatorInfo:x,isLoading:u,loadMore:o,hasNextPage:c,isLoadingMore:d}=(0,a.rn)({tags:t.slug},{staleTime:1/0});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex flex-col items-center justify-between gap-1.5 px-4 pt-5 xs:flex-row md:px-6 md:pt-6 lg:px-7 3xl:px-8",children:[(0,n.jsxs)("h2",{className:"font-medium capitalize text-dark-100 dark:text-light",children:["#",t.name]}),(0,n.jsxs)("div",{children:[l("text-total")," ",null==x?void 0:x.total," ",l("text-product-found")]})]}),(0,n.jsx)(r.Z,{products:i,onLoadMore:o,hasNextPage:c,isLoadingMore:d,isLoading:u})]})};TagPage.getLayout=function(e){return(0,n.jsx)(i.Z,{children:e})};var x=!0;t.default=TagPage}},function(e){e.O(0,[155,8544,450,9519,9774,2888,179],function(){return e(e.s=5538)}),_N_E=e.O()}]);