PageSourceSearch

https://www.vrai.com/_next/static/chunks/6323-ad4d799b6317efce.js

js vrai.com collected 2026-09-24 09:34:49 UTC 9,110 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]="dcd0a43b-b695-46e9-a7ea-01ae2c30fd0f",e._sentryDebugIdIdentifier="sentry-dbid-dcd0a43b-b695-46e9-a7ea-01ae2c30fd0f")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6323],{46323:(e,l,t)=>{t.d(l,{m6:()=>F});var n=t(38900),i=t(56487),a=t(38663),o=t(8581),d=t(94646),r=t(32027),s=t(4967),u=t(18286);let c=e=>{var l,t,c,m,v;let p,{noIndex:y=!1,noFollow:f=!1,featuredImage:b,facet:g,facetSeo:h}=e,w=(0,s.Ym)(),{data:T}=(0,i.X)(w||"en"),x=null==T||null==(c=T._site)||null==(t=c.globalSeo)||null==(l=t.fallbackSeo)?void 0:l.image,_=(0,a.$_)(),I=w&&w!==u.Xn?"/".concat(w):"",j=(0,o.UY)(g),D="".concat(_).concat(I).concat(j),C=(0,a.Rl)({baseUrl:_,currentPath:j}),{seoTitle:S,seoDescription:k}=null!=(m=h.reduce((e,l)=>{let t=!g,n=0===l.facetKey.length;return(t||!e)&&n||g&&l.facetKey.some(e=>e.slug===g.value)?l:e},null))?m:{},E="";b&&b.length>0?E=(p=b[0]).url:(null==x?void 0:x.url)?(p={url:x.url,alt:null!=(v=x.alt)?v:void 0},E=x.url):(p=r.A,E="https://www.vrai.com"+r.A.src);let A=(0,a.FR)(w);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.bV,{title:S,description:k,noindex:!A||y,nofollow:f,canonical:D,languageAlternates:C,themeColor:"#f7f7f7",openGraph:{url:D,title:S,description:k,images:[{...p,width:800,height:600,alt:p&&"alt"in p&&p.alt?p.alt:"VRAI",url:E}],siteName:"VRAI"}}),(0,n.jsx)(d.aE,{id:D+"/#webpage",url:D,name:S,description:k,isPartOf:"https://www.vrai.com/#website"})]})};var m=t(30544);t(1258);var v=t(92773),p=t(48723),y=t(50724),f=t(37271),b=t(34632),g=t(93320),h=t(86858),w=t(60056);let T=e=>{var l;return(null==e||null==(l=e.facetKey)?void 0:l.length)===0},x=e=>{var l,t;let{selectedFilterValues:i}=e,a=(0,s.Ym)(),{data:o}=(0,m.M8)(a),d=(0,g.J)(a),r=(0,h.Us)(a),u=((e,l)=>{var t;return null!=(t=null==e?void 0:e.find(e=>((e,l)=>{if(!(null==e?void 0:e.facetKey))return!1;let t=e.facetKey.map(e=>e.slug),n=l.every(e=>t.includes(e)),i=t.every(e=>l.includes(e));return n&&i})(e,l)))?t:null==e?void 0:e.find(T)})(null==o||null==(l=o.diamondTable)?void 0:l.contentBelowTable,(0,w.useMemo)(()=>(e=>{var l,t,n,i,a,o,d,r,s,u;return[...null!=(o=null==e||null==(l=e.diamondType)?void 0:l.map(e=>e.slug))?o:[],...null!=(d=null==e||null==(t=e.cut)?void 0:t.map(e=>e.slug))?d:[],...null!=(r=null==e||null==(n=e.color)?void 0:n.map(e=>e.slug))?r:[],...null!=(s=null==e||null==(i=e.clarity)?void 0:i.map(e=>e.slug))?s:[],...null!=(u=null==e||null==(a=e.fancyColor)?void 0:a.map(e=>e.slug))?u:[]]})(i),[i]));return null==u||null==(t=u.content)?void 0:t.map((e,l)=>{var t;return(null==e||null==(t=e._modelApiKey)?void 0:t.includes("mendes"))?(0,n.jsx)(b.G,{_modelApiKey:e._modelApiKey,modularBlockData:e,countryCode:d,currencyCode:r,shouldLazyLoad:!0,blockIndex:l},"".concat(e._modelApiKey,"_").concat(l)):null})};var _=t(95420),I=t(82531),j=t(24836),D=t(45703),C=t(31627),S=t(49409),k=t(84163),E=t(27939),A=t(45357),N=t(82846);t(76604);let F=e=>{var l,t,i,a;let d=(0,C.useRouter)(),{builderProduct:r,updateInventoryFlowSource:u}=(0,w.useContext)(S._),[v,h]=(0,w.useState)(),T="!w-[32px] !h-[32px]";(0,w.useEffect)(()=>{if(!d.isReady)return;let e=/cut-for-you|bitcoin|inventory/.exec(d.asPath),l=e&&e.length>0?e[0]:"inventory";l!==v&&h(l)},[d.isReady,d.asPath]);let F=(0,s.Ym)();(0,w.useEffect)(()=>{v&&"inventory"!==v&&(null==r?void 0:r.inventoryFlowSource)&&u(null)},[null==r?void 0:r.inventoryFlowSource,v,u]);let R=(0,g.J)(F),{currencyCode:K}=e,O=(0,m.W2)(F),P=(0,w.useMemo)(()=>{var l,t,n;return function(e,l){return e&&l.length?{...e,filterCategories:e.filterCategories.map(e=>"diamondType"===e.filterKey?{...e,filterItems:e.filterItems.filter(e=>l.some(l=>(0,E.V8)(l,e.slug)))}:e)}:e}(null==O||null==(t=O.data)||null==(l=t.diamondTable)?void 0:l.filterBar,null!=(n=e.allowedDiamondTypes)?n:[])},[null==O||null==(t=O.data)||null==(l=t.diamondTable)?void 0:l.filterBar,e.allowedDiamondTypes]),V=(0,w.useMemo)(()=>{let{cfyStep:l,...t}=e.options;return t},[e.options]),{options:L,setRanges:W,filters:M,handleFilterSelection:G,selectedFilterValues:B,presetFilterGroupSelector:Y,sortOptions:H,handleSortChange:U,selectedSortOption:$,clearFilterAndSortOptions:q}=(0,k.D)({initialOptions:V,filterBar:P,requiredOptions:e.requiredDiamondType?{diamondType:e.requiredDiamondType}:void 0}),{title:z,investmentDiamondTitle:J,diamondPageHeaderContentMendes:X,investmentDiamondPageHeaderContentMendes:Q,colorMapAbridged:Z,facetSeo:ee,investmentDiamondEducationPageCta:el,bookAnAppointment:et}=(null==(i=O.data)?void 0:i.diamondTable)||{},en="bitcoin"===v,ei=en?J:z,ea=(0,j.JH)(L),eo=(e=>{let{facet:l,isDiamondBitcoin:t=!1}=e,n=(0,s.Ym)(),{_t:i}=(0,A.c3)(n,[A.$0.SHAPE_CUT_WITH_DIAMONDS,A.$0.SHAPE_CUT,A.$0.COLORED_DIAMONDS_TITLES]);return(null==l?void 0:l.category)||!t?(null==l?void 0:l.category)==="diamondType"?"".concat(i("".concat(l.value,"-cut"))):(null==l?void 0:l.category)==="color"?"".concat(i("".concat(l.value,"-colored-diamonds"))):void 0:"".concat(i("VRAI CREATED"))})({facet:ea,isDiamondBitcoin:en}),ed="pairs"===L.view||"toimoi"===L.view,er="en-US"===F&&"bitcoin"===v&&e.isInvestmentDiamondsEnabled&&(0,D.c0)(R)&&!ed;(0,w.useEffect)(()=>
1{if(!d.isReady||!v)return;let e=(0,o.WG)(L,void 0,void 0,void 0,"/diamonds/".concat(v),F);e!==d.asPath&&d.replace(e,void 0,{shallow:!0,scroll:!1,locale:!1})},[L,v,d.isReady]);let es={initialDiamonds:[],initialOptions:L,handleSortChange:U,setRangesOfDiamondFilter:e=>W(e),currencyCode:K,locale:F,isDiamondPairs:ed,dedup:!0},eu=en?Q:X,ec="list"===(0,f.I)("diamondTable",{desktop:"small_grid",mobile:"small_grid"})?"table":"grid",em="bitcoin"===v,{hiddenCategoriesMobile:ev,hiddenCategoriesDesktopLg:ep,hiddenCategoriesDesktopSm:ey,hiddenCategoriesDesktopMd:ef}=null!=P?P:{},[eb,eg]=(0,w.useState)(!1);(0,w.useEffect)(()=>{let e=setTimeout(()=>{eg(!0)},4e3);return()=>{clearTimeout(e)}},[]);let eh=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"dedup",l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{children:null==eu?void 0:eu.map((e,l)=>{let{_modelApiKey:t}=e||{},i=l<3;return t?(null==t?void 0:t.includes("mendes"))?(0,n.jsx)(b.G,{_modelApiKey:t,modularBlockData:e,countryCode:R,currencyCode:K,shouldLazyLoad:!i,blockIndex:l},"".concat(t,"_").concat(l)):void 0:null})}),(0,n.jsx)("div",{className:"bg-white sticky top-0 z-[1000] border-b border-content-primary-lowest",children:(0,n.jsx)(_.T,{handleFilterSelection:G,selectedFilterValues:B,filters:M,clearAllFilters:q,sortOptions:em?H:H.filter(e=>"storedValue"!==e.id),handleSortChange:U,selectedSortOption:$,presetFilterGroupSelector:Y,hiddenCategories:{mobile:null==ev?void 0:ev.map(e=>e.id),desktopSm:null==ey?void 0:ey.map(e=>e.id),desktopMd:null==ef?void 0:ef.map(e=>e.id),desktopLg:null==ep?void 0:ep.map(e=>e.id)},isInvestment:!1})}),(0,n.jsx)("div",{className:"page-main",children:(0,n.jsx)(I.T,{...es,diamondQueryType:e,isInvestment:en,tablePostProcessing:l,tableView:ec,investmentDiamondEducationPageCta:el})})]})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c,{facet:ea,facetSeo:ee}),(0,n.jsx)("div",{className:"mendes-container mx-auto text-center pt-[32px] md:pt-lg",children:(0,n.jsxs)("h1",{className:"mendes font-heading heading-m text-center text-content-primary-high",children:[eo&&(0,n.jsx)("span",{className:"mendes font-heading heading-s block text-content-primary-high mb-2",children:eo}),ei]})}),et&&(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(N.Y,{source:et.source||"global",location:null==(a=et.location)?void 0:a.slug,productType:et.productType,productTitle:et.productTitle,button:{...et.button,typography:"body-s",ctaWidthDesktop:"inline",ctaWidthMobile:"inline"}})}),(0,n.jsx)(y.u,{initialState:+("bitcoin"===v),items:[{title:O.data.diamondTable.defaultTabName,content:eh("dedup"),onSelect:async()=>{await d.replace((0,o.WG)(L,void 0,void 0,void 0,"/diamonds/inventory",F),void 0,{shallow:!0,locale:!1}),"storedValue"===$.id&&U(H.find(e=>{var l,t;return"price"===e.id&&(null==e||null==(l=e.slug)?void 0:l.split("-")[1])===(null==$||null==(t=$.slug)?void 0:t.split("-")[1])})),h("inventory")},icon:(0,n.jsx)(p.l,{media:O.data.diamondTable.defaultTabIcon,additionalClassNames:T})},...er?[{title:O.data.diamondTable.investmentTabName,content:eh("investment",e=>{var l;if(window&&window.innerWidth&&window.innerWidth>=990)return e.value;let t={excellent:"Exc","ideal+hearts":"I+H",ideal:"Ideal"};return Object.keys(t).includes(e.value.toLowerCase())?t[e.value.toLowerCase()]:(null==e||null==(l=e.value)?void 0:l.includes("-"))?e.value.split("-")[0]:e.value}),onSelect:async()=>{await d.replace((0,o.WG)(L,void 0,void 0,void 0,"/diamonds/bitcoin"),void 0,{shallow:!0,locale:!1}),h("bitcoin")},icon:(0,n.jsx)(p.l,{media:O.data.diamondTable.investmentTabIcon,additionalClassNames:T})}]:[]],isInvestmentDiamondsEnabled:er}),eb&&(0,n.jsx)(x,{selectedFilterValues:B})]})};F.getTemplate=v.$F}}]);

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.