1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8942],{60960:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/collections/[slug]",function(){return a(70127)}])},70127:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return h}});var n=a(52676),r=a(46980),i=a(69741),u=a(24140),s=a(81762),l=a(30774),d=a(39936),o=a(32218),c=a(3023),g=a(7638),N=a(69834),v=a(5211),_=a(75271),h=!0;t.default=e=>{var t,a,h;let{user:p,collection:f,initialBanners:P}=e,x=(0,g.N)({queryKey:["products","public",f],initialPageParam:1,queryFn:async e=>{let{pageParam:t}=e;return await (0,d.Bz)({page:t,pageSize:12,sortField:"createdAt",sortOrder:"desc",search:"",collection:f})},getNextPageParam:(e,t)=>{let a=e.data.total;return t.reduce((e,t)=>{var a;return e+(null===(a=t.data.rows)||void 0===a?void 0:a.length)},0)<a?(null==t?void 0:t.length)+1:void 0},enabled:!!f}),w=(0,N.a)({queryKey:["content","banners","COLLECTION","public"],queryFn:()=>(0,o.n5)(c.Bi.COLLECTION),select:e=>e.data}),b=(0,_.useMemo)(()=>{var e,t;return null!==(t=null===(e=x.data)||void 0===e?void 0:e.pages.flatMap(e=>e.data.rows.map(e=>(0,v.f)(e))))&&void 0!==t?t:[]},[null===(t=x.data)||void 0===t?void 0:t.pages]);return(0,n.jsxs)(r.Z,{user:p,children:[(0,n.jsx)(i.Z,{titles:[null!==(a=l.e9[f])&&void 0!==a?a:""]}),(0,n.jsx)(u.Z,{banners:null!==(h=w.data)&&void 0!==h?h:P}),(0,n.jsx)(s.Z,{products:b,isLoading:x.isLoading,isFetchingNextPage:x.isFetchingNextPage,hasNextPage:x.hasNextPage,fetchNextPage:x.fetchNextPage})]})}}},function(e){e.O(0,[5989,4237,7610,8174,9834,9513,4540,928,7444,9830,5790,8754,4847,6980,7602,2888,9774,179],function(){return e(e.s=60960)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.