PageSourceSearch

https://www.glassette.com/_next/static/chunks/pages/[channel]/category/[[...slug]]-086efa9d542e69c1.js

js glassette.com collected 2026-09-25 14:22:41 UTC 3,983 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6262bc1c-7502-46fb-bc9a-f27efbc54ce3",e._sentryDebugIdIdentifier="sentry-dbid-6262bc1c-7502-46fb-bc9a-f27efbc54ce3")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7370],{11569:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[channel]/category/[[...slug]]",function(){return t(99947)}])},36693:(e,n,t)=>{"use strict";t.d(n,{l:()=>s});var l=t(23798),a=t(65379),r=t(19295),c=t(46395);function s(e){let{collection:n,path:t,channelListings:s}=e,i=(null==n?void 0:n.seoTitle)||(null==n?void 0:n.name),o=i?"".concat(i," - ").concat(r.VQ):r.VQ,u=n.seoDescription||r.S4,d=[{url:"".concat(r.Fg,"/logo.png"),alt:"Hero image"}];n.backgroundImage&&(d=[{url:n.backgroundImage.url,alt:n.backgroundImage.alt||"Collection lead image"},...d]);let{canonicalUrl:g}=(0,c.l)(t),h=[];if(t.includes("/us/"))s.includes("us")&&h.push({hrefLang:"en-us",href:"".concat(t)}),s.includes("gb")&&h.push({hrefLang:"en-gb",href:"".concat(t.replace("/us/","/"))});else{let e=new URL(t);e.pathname="/us".concat(e.pathname),s.includes("gb")&&h.push({hrefLang:"en-gb",href:"".concat(t)}),s.includes("us")&&h.push({hrefLang:"en-us",href:"".concat(e.toString())})}return(0,l.jsx)(a.bV,{title:o,description:u,canonical:g,languageAlternates:h,openGraph:{title:i,description:u,images:d,site_name:r.VQ}})}},58164:(e,n,t)=>{"use strict";function l(e,n){var t;return(null==(t=e.translation)?void 0:t[n])||e[n]}t.d(n,{T:()=>l})},99947:(e,n,t)=>{"use strict";t.r(n),t.d(n,{COLLECTION_STATUS:()=>C,__N_SSP:()=>I,default:()=>P});var l=t(23798),a=t(97016),r=t.n(a),c=t(92390),s=t.n(c),i=t(21462),o=t(87772),u=t(65764),d=t(38544),g=t(11312),h=t(94185),f=t(47539),b=t(36693),p=t(69267),m=t(19295),v=t(55974),_=t(74357),x=t(58164),y=t(18177);let w=r()(()=>Promise.resolve().then(t.bind(t,63625)).then(e=>e.PageHero),{loadableGenerated:{webpack:()=>[63625]},ssr:!1});var I=!0,C=function(e){return e.SINGLE="Single",e.PARENT="Parent",e.CHILD="Child",e}({});let T=e=>{var n;let{channel:t,serverState:a,url:r,collection:c,breadcrumbs:h,collectionStatus:I,subCollections:C,channelListings:T}=e,[P,E]=(0,i.useState)();(0,i.useEffect)(()=>{var e;let n=null!=(e=null==C?void 0:C.split(","))?e:[""];async function l(){await Promise.all(n.map(async e=>{if(e){let n=await v.A.query({query:y.s8p,variables:{slug:e,...(0,_.nE)({params:{channel:t,locale:"en-GB"}})}});if(n.data.collection)return n.data.collection.name}return null})).then(e=>{E(e.filter(e=>null!==e))})}n&&l()},[C,t]);let N=(0,i.useMemo)(()=>{var e,n,t;switch(I){case"Parent":return'categoryPageId:"'.concat(null==h||null==(e=h[0])?void 0:e.text,'"');case"Child":return'categoryPageId:"'.concat(null==h||null==(n=h[0])?void 0:n.text," > ").concat(null==h||null==(t=h[1])?void 0:t.text,'"');default:return""}},[I,h]);return(0,l.jsx)(o.X,{...a,children:(0,l.jsxs)(u.G,{insights:!0,searchClient:p.R3,indexName:m.lz,routing:{router:(0,g.c)({singletonRouter:s(),serverUrl:r}),stateMapping:{routeToState:p.Mj,stateToRoute:p.wJ}},children:[(0,l.jsx)(d.Z,{filters:"".concat(N,' AND isAvailable:true AND publishedChannels:"').concat(t.toUpperCase(),'"')}),c&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.l,{collection:c,path:r,channelListings:T}),(0,l.jsx)("header",{children:(0,l.jsx)(w,{title:(0,x.T)(c,"name"),description:{text:null==c?void 0:c.description,isRichText:!0},backgroundImage:null==(n=c.backgroundImage)?void 0:n.url,breadcrumbs:[{text:"Home",href:"/"},...h]})})]}),(0,l.jsx)(f.l,{hideMainCategories:!0,subCollections:P,excludeFacets:"Parent"===I?["hierarchicalCategories.lvl1"]:["collections.name"],channelSlug:t})]})})},P=T;T.getLayout=function(e){return(0,l.jsx)(h.PE,{children:e})}}},e=>{e.O(0,[6539,3133,1794,5892,3461,2972,6077,624,1471,9264,8482,4185,45,636,6593,8792],()=>e(e.s=11569)),_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.