PageSourceSearch

https://www.vrai.com/_next/static/chunks/pages/[locale]/custom-products/[[...plpSlug]]-e0ecd65221fa709b.js

js vrai.com collected 2026-10-01 11:46:01 UTC 4,396 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:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="6850c198-5254-4274-b7bc-2482fa95c47f",e._sentryDebugIdIdentifier="sentry-dbid-6850c198-5254-4274-b7bc-2482fa95c47f")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[427],{12197:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSG:()=>I,default:()=>S});var r=t(38900),a=t(23251),o=t(7916),n=t(58249),u=t(45357),d=t(92773),i=t(31627),s=t(2162),c=t(28661),p=t(60056),y=t(48066),g=t(85039),m=t(3930),f=t(50014),v=t(93320),b=t(86858),_=t(24836),h=t(34632),w=t(96651);t(69978),t(45476);var F=t(59730),P=t(4967);function k(e){var l,t,d,k,I;let{initialFilterValues:S}=e,j=(0,i.useRouter)(),q=(0,P.Ym)(),{data:C={}}=(0,n.I)({...o.P.plp.customProductPlpDatoServerside(q),keepPreviousData:!0,refetchOnWindowFocus:!1}),{hero:K,promoCardCollection:O,creativeBlocks:x,facetCreativeBlocks:E,filterBar:A,filterOptions:B,subcategoryFilter:D,defaultGridViewDesktop:T,defaultGridViewMobile:M,showNewBadge:N,noProductsPromoBlock:R,breadcrumb:V}=C,{filterValue:L,onFilterChange:G}=(0,y.Ds)({initialFilterValues:{...function(e){let l=e.query.plpSlug||"",t=Array.isArray(l)?l:[l];return{...(0,y.Tb)(t,e.query,{isERPlp:!0})}}(j),...S},listIdForFilterEvent:null==K?void 0:K.title}),{data:Y}=(0,a.pg)({style:null==L||null==(l=L.style)?void 0:l.join(","),diamondShape:null==L||null==(t=L.diamondType)?void 0:t.join(","),category:null==L||null==(d=L.category)?void 0:d.join(",")}),z=(null==Y||null==(k=Y.pages[0])?void 0:k.availableFilters)||{},{onSortChange:J}=(0,y.cB)(),Q=(0,p.useMemo)(()=>(0,y.Je)({availableFilters:z,plpSlug:"all",category:"custom-products",locale:q}),[z,q]),[X,$]=(0,p.useState)({maxRenderedPage:j.query.page?parseInt(j.query.page):1,minRenderedPage:j.query.page?parseInt(j.query.page):1,totalPages:0});(0,p.useEffect)(()=>{$({maxRenderedPage:j.query.page?parseInt(j.query.page):1,minRenderedPage:j.query.page?parseInt(j.query.page):1,totalPages:0})},[j.isReady]);let U=function(e,l,t){var r;let a=l?l.map(e=>({facetKey:[],id:e.id})):[],o=[...e?(0,g.Ub)(e):[],...a],n=o?((0,g.uQ)(o,Object.values(t).flatMap(e=>e),(0,f.m1)("engagement-rings"))||[]).slice(0,2):[];return n&&(null==(r=Array.from(n))?void 0:r.map(e=>e.id))}(E,x,L),W=(0,r.jsx)(c.q,{data:Y,plpTitle:null==K?void 0:K.title,isFetching:!1,availableFilters:Q,promoCardCollectionId:null==O?void 0:O.id,creativeBlockIds:U,setFilterValues:G,filterValue:L,plpSlug:"all",sortOptions:null!=(I=null==A?void 0:A.sort)?I:[],filterOptionsOverride:B,onSortChange:J,subcategoryFilter:D,category:"custom-products",filterBar:A,defaultGridView:{desktop:T,mobile:M},showNewBadge:N,isShipFromStoreForMTOEnabled:!1,noProductsPromoBlock:R}),H=function(e,l){let t=(null==e?void 0:e.flatMap(e=>{var l;return"mendes_plp_content_block"===e._modelApiKey&&(null==(l=e.content)?void 0:l.map(l=>{var t;return{...l,facetKey:(null==(t=e.facetKey)?void 0:t.map(e=>e.slug))||[],parentModelApiKey:e._modelApiKey}}))||[]}))||[],r=Object.values(l).flat().filter(Boolean),a=(0,f.m1)("custom-products");return(0,g.e7)(t,r,a)}(null==C?void 0:C.contentBelowProducts,L),{_t:Z}=(0,u.c3)(),ee=(0,b.YM)(q),el=(0,v.J)(q),et=(0,b.OY)(el),er=(0,p.useMemo)(()=>null==H?void 0:H.map((e,l)=>{let{_modelApiKey:t}=e||{};if(!t)return null;let a=(0,m.l)({block:e,filterValue:L,category:"custom-products",masterKeywordFacet:"",plpSlug:"all",translator:Z,getFacetPlaceholdersFromMasterKeyword:_.$7,currencySymbol:ee});return t.includes("mendes")?(0,r.jsx)(h.G,{_modelApiKey:t,modularBlockData:a,countryCode:el,currencyCode:et,shouldLazyLoad:!0,blockIndex:l},"".concat(t,"_").concat(l)):(0,r.jsx)(p.Fragment,{children:(0,r.jsx)(w.k,{_modelApiKey:t,modularBlockData:{...e},countryCode:el,currencyCode:et,shouldLazyLoad:!0})},"".concat(t,"_").concat(l))}),[el,et,H,j.query]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.A,{heroContent:null==C?void 0:C.heroContent,masterKeywordFacet:"",filterValue:{},category:"engagement-rings"}),W,er,(0,r.jsx)(F.Q,{breadcrumb:V})]})}k.getTemplate=d.$F;var I=!0;let S=k},68564:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/custom-products/[[...plpSlug]]",function(){return t(12197)}])}},e=>{e.O(0,[5895,4355,848,2846,7470,2773,247,8195,9319,636,6593,8792],()=>e(e.s=68564)),_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.