(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7324,9056],{95216:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/collection/[...slug]",function(){return i(92765)}])},38594:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(35944),l=i(58883),a=i(4920),r=i(76665),o=i(14104),s=i(45084),d=i(90512),c=i(45697),u=i.n(c),p=i(77366);let g=(0,p.Z)("div",{target:"eqr6xdh0"})("position:relative;z-index:0;display:flex;flex-direction:column;align-items:center;justify-content:center;",e=>e.theme.breakpoints.up("sm"),"{&:not(.hasImage){padding-top:24px;}&.hasImage{min-height:250px;color:",e=>e.theme.palette.common.white,";}}"),v=(0,p.Z)("span",{target:"eqr6xdh1"})(e=>e.theme.breakpoints.down("sm"),"{display:none;}span{z-index:-1;",e=>e.theme.breakpoints.up("sm"),"{&:before{content:'';position:absolute;background-color:rgb(126,144,130,0.6);width:60vw;height:100%;z-index:1;left:-150px;transform:skew(40deg);}}}"),m=e=>{let{banner:t,breadcrumbs:i,title:c,priority:u}=e,{alt:p,url:m}=t||{};return(0,n.BX)(g,{className:(0,d.Z)({hasImage:!!m}),children:[m&&(0,n.tZ)(v,{children:(0,n.tZ)(a.Z,{alt:p,src:m,layout:"fill",objectFit:"cover",priority:u})}),(0,n.BX)(r.Z,{sx:{display:"flex",flexDirection:"column",alignItems:{xs:"center",sm:"flex-start"},pt:{xs:3,sm:0}},children:[i.length>0&&(0,n.tZ)(l.Z,{items:i,separator:"•",typographyProps:{variant:"bodyLarge",color:"inherit"},sx:{color:"inherit"}}),(0,n.tZ)(o.Z,{variant:"h1",mt:{xs:1,sm:2},mb:m?{xs:4,sm:5.5}:{xs:2,sm:2},children:c}),!m&&(0,n.tZ)(s.Z,{flexItem:!0})]})]})};m.propTypes={banner:u().shape({alt:u().string,url:u().string}),breadcrumbs:u().arrayOf(u().shape({key:u().string.isRequired,label:u().string,url:u().string,active:u().bool})),title:u().string.isRequired,priority:u().bool},m.defaultProps={banner:void 0,breadcrumbs:[],priority:!1};var h=m},49276:function(e,t,i){"use strict";var n=i(20567),l=i(14932),a=i(35944),r=i(62689);t.Z=e=>(0,a.tZ)(r.Z,(0,l._)((0,n._)({},e),{children:(0,a.tZ)("path",{d:"m12.4 8.68 5.44 5.52c.22.22.22.58 0 .8l-.34.33a.56.56 0 0 1-.8 0l-4.7-4.8-4.7 4.8a.56.56 0 0 1-.8 0l-.34-.34a.56.56 0 0 1 0-.8l5.44-5.52a.57.57 0 0 1 .8 0Z"})}))},71706:function(e,t,i){"use strict";var n=i(20567),l=i(14932),a=i(35944),r=i(62689);t.Z=e=>(0,a.tZ)(r.Z,(0,l._)((0,n._)({},e),{children:(0,a.tZ)("path",{fillRule:"evenodd",d:"m7.68 8 6.58 8.5a.33.33 0 0 0 .28.13c.1 0 .2-.06.25-.14L21.37 8c.1-.13.1-.3 0-.44l-2.56-3.42a.33.33 0 0 0-.26-.14H10.5c-.1 0-.2.05-.27.14L7.67 7.56c-.1.13-.1.31 0 .44Zm6.1-3.3h-2.8l.8 2.4 2-2.4ZM12.4 7.44h4.25L14.52 4.9 12.4 7.44Zm4.87-.34-2-2.38h2.8l-.8 2.38Zm3.03 1.18-4.8 6.2 2.08-6.2h2.72Zm-5.78 6.95 2.35-6.95h-4.7l2.35 6.95Zm5.9-7.8h-2.55l.8-2.34 1.75 2.35Zm-11.8 0 1.76-2.34.8 2.35H8.63Zm.13.85h2.71l2.1 6.2-4.81-6.2ZM6.44 19.9c.04.06.1.1.18.1.07 0 .13-.04.18-.1l4.38-5.65a.24.24 0 0 0 0-.3l-1.7-2.28a.22.22 0 0 0-.18-.1H3.93a.22.22 0 0 0-.17.1l-1.71 2.28a.24.24 0 0 0 0 .3l4.39 5.66Zm.67-7.85h1.87l-.54 1.6-1.33-1.6Zm-.99 0-1.33 1.6-.54-1.6h1.87Zm-.92 1.81 1.42-1.69 1.41 1.7H5.2Zm-.65.5 1.42 4.2-3.25-4.2h1.83Zm2.07 4.7 1.58-4.7H5.03l1.59 4.7Zm.64-.5 1.42-4.2h1.83l-3.25 4.2Zm3.28-4.7h-1.7l.53-1.56 1.17 1.56Zm-7.85 0h1.7l-.53-1.56-1.17 1.56Z"})}))},36518:function(e,t,i){"use strict";i.d(t,{Z:function(){return Z}});var n=i(20567),l=i(14932),a=i(47702),r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((e,t)=>({key:"".concat(e.label,"_").concat(t),label:e.label,url:e.link,active:e.active}))},o=e=>Object.keys(e||{}).reduce((t,i)=>{let a=e[i];return(0,l._)((0,n._)({},t),{[i]:{key:i,values:Object.values(a||{})}})},{}),s=e=>Object.values(e||{}).find(e=>!!e.is_clean_url),d=e=>Object.keys(e||{}).reduce((t,i)=>{let a=e[i];return(0,l._)((0,n._)({},t),{[i]:(0,l._)((0,n._)({},a),{attributes:Object.values(a.attributes||{})})})},{});let c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.values(e).map(e=>Object.keys(e.items||{}).length>0?(0,l._)((0,n._)({},e),{items:c(e.items)}):e)};var u=e=>Object.keys(e||{}).reduce((t,i)=>{let a=e[i];return(0,l._)((0,n._)({},t),{[i]:(0,l._)((0,n._)({},a),{items:c(a.items)})})},{}),p=e=>{let t=((null==e?void 0:e.buttons)||[]).find(e=>!!e.active),i=Object.values((null==e?void 0:e.options)||{}).find(e=>!!e.active);return(0,l._)((0,n._)({},e||{}),{itemsPerPage:{value:i?parseInt(i.label,10):20,options:Object.values((null==e?void 0:e.options)||{})},page:t?parseInt(t.label,10):1})},g=e=>{let t=Object.values((null==e?void 0:e.options)||{});return(0,l._)((0,n._)({},e||{}),{options:t})},v=e=>{var t,i,a,c;let v=r(e.breadcrumbs),m=o(e.active_filters),h=s(e.active_filters),f=d(e.filters),b=u(e.menus),Z=p(null===(t=e.content)||void 0===t?void 0:t.pagination),y=g(e.sort);return(0,l._)((0,n._)({},e),{breadcrumbs:v,content:(0,l._)((0,n._)({},e.content||{}),{addonProducts:(null===(i=e.content)||void 0===i?void 0:i.addon_products)||[],activeFilters:o(null===(a=e.content)||void 0===a?void 0:a.active_filters),filters:d(null===(c=e.content)||void 0===c?void 0:c.filters),pagination:Z}),activeFilters:m,cleanFilter:h,filters:f,menus:b,sort:y})},m=e=>{let t=async function(i){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=r||{},{params:d}=s,c=(0,a._)(s,["params"]),u=new URL("".concat(e).concat(i));d&&(u.search=new URLSearchParams(d).toString());let p=await fetch(u,(0,l._)((0,n._)({},c),{headers:(0,n._)({"content-type":"application/json"},c.headers||{})}));if((null==p?void 0:p.status)===429&&o)return new Promise((e,n)=>{setTimeout(()=>{t(i,r,!1).then(t=>e(t)).catch(e=>n(e))},(Math.floor(5*Math.random())+5)*1e3)});if(!(null==p?void 0:p.ok)&&(null==p?void 0:p.status)!==404)throw Error("Fetch failed: No 2.0 response");let g=await p.json();return(0,l._)((0,n._)({},p),{data:g||{}})};return{getPage:async function(){var e;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=await t(i,(0,l._)((0,n._)({},r),{params:a}));if(!(null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.content))throw Error("no Afosto 2.0 response");return(0,l._)((0,n._)({},o),{data:v(o.data)})},request:t}},h=i(69857);let{backendDomains:f,defaultBackendDomain:b}=i.n(h)();var Z=e=>m(f[e]||b)},19056:function(e,t,i){"use strict";i.r(t);var n=i(63184),l=i(27981);let a=(0,n.Z)(l.LT);t.default=a},92765:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSG:function(){return eZ},default:function(){return ey}});var n=i(20567),l=i(14932),a=i(35944),r=i(75496),o=i(94790),s=i(5152),d=i.n(s),c=i(45697),u=i.n(c);let p=d()(()=>Promise.all([i.e(744),i.e(2389)]).then(i.bind(i,62389)),{loadableGenerated:{webpack:()=>[62389]}}),g=d()(()=>Promise.all([i.e(6055),i.e(9718)]).then(i.bind(i,59718)),{loadableGenerated:{webpack:()=>[59718]}}),v=e=>{let{activeFilterOptions:t,filters:i}=e,r=Object.keys(i).filter(e=>i[e]).reduce((e,t)=>(0,l._)((0,n._)({},e),{[t]:(0,l._)((0,n._)({},i[t]),{attributes:i[t].attributes.filter(e=>{let{key:t}=e;return!["custom-diamond"].includes(t)})})}),{});return(0,a.BX)(a.HY,{children:[(0,a.tZ)(g,{activeFilterOptions:t,filters:r}),(0,a.tZ)(p,{filters:r})]})};v.propTypes={activeFilterOptions:u().arrayOf(u().shape({key:u().string,label:u().string,link:u().string})),filters:u().object},v.defaultProps={activeFilterOptions:[],filters:{}};var m=i(49276),h=i(51648),f=i(4327),b=i(14104),Z=i(16913),y=i(54115),_=i(67294),w=i(41664),P=i.n(w),x=i(44012),k=(0,i(54490).vU)({labelPerPage:{id:"pagination.itemsPerPage.options.label",defaultMessage:"{count} per page",description:"Label of the items per page options"}});let O=e=>{let{itemsPerPage:t}=e,[i,r]=(0,_.useState)(null),o=!!i,{options:s=[],value:d}=t||{},c=()=>{r(null)},u=o?m.Z:h.Z;return(0,a.BX)(a.HY,{children:[(0,a.tZ)(f.Z,{endIcon:(0,a.tZ)(u,{sx:{color:"grey.500"}}),variant:"outlined",color:"grey",size:"small",onClick:e=>{r(e.currentTarget)},sx:{justifyContent:"space-between",width:{sm:"initial",xs:"100%"}},children:(0,a.tZ)(b.Z,{variant:"buttonSmall",fontWeight:"bold",children:(0,a.tZ)(x.Z,(0,l._)((0,n._)({},k.labelPerPage),{values:{count:d}}))})}),(0,a.tZ)(Z.Z,{anchorEl:i,open:o,onClose:()=>{r(null)},children:s.map(e=>{var t,i,r,o;let s=Object.fromEntries(new URLSearchParams(null===(i=e.url)||void 0===i?void 0:null===(t=i.split("?"))||void 0===t?void 0:t.at(1)));return(0,a.tZ)(P(),{legacyBehavior:!0,href:{pathname:"/collection/[...slug]",query:(0,n._)({slug:null===(o=e.url)||void 0===o?void 0:null===(r=o.split("?"))||void 0===r?void 0:r.at(0).replace(/^\/|\/$/g,"").split("/")},s)},as:e.url,prefetch:!1,passHref:!0,shallow:!0,children:(0,a.tZ)(y.Z,{onClick:c,children:(0,a.tZ)(x.Z,(0,l._)((0,n._)({},k.labelPerPage),{values:{count:e.label}}))})},e.label)})})]})};O.propTypes={itemsPerPage:u().shape({value:u().number,options:u().arrayOf(u().shape({label:u().oneOfType([u().number,u().string]),url:u().string}))})},O.defaultProps={itemsPerPage:{}};var C=i(84103),S=i(87901),L=i(71706),j=i(58346),E=i(89646),I=i(62162),M=i(66971),F=i(39085),T=i(17082),B=i(90589);let N=e=>{let{description:t,title:i}=e,[n,l]=(0,_.useState)(!1),r=()=>{l(!1)};return(0,a.BX)(a.HY,{children:[(0,a.tZ)(f.Z,{color:"grayGreen",size:"small",variant:"text",startIcon:(0,a.tZ)(L.Z,{}),endIcon:(0,a.tZ)(j.Z,{}),onClick:()=>{l(!0)},sx:{display:{xs:" none",sm:"inline-flex"}},children:(0,a.tZ)(b.Z,{variant:"bodyMedium",children:i})}),(0,a.BX)(I.Z,{open:n,onClose:r,children:[(0,a.BX)(M.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[i,(0,a.tZ)(F.Z,{"aria-label":"close",onClick:r,edge:"end",children:(0,a.tZ)(E.Z,{})})]}),(0,a.tZ)(T.Z,{children:(0,a.tZ)(B.v,{field:t})})]})]})};N.propTypes={description:u().arrayOf(u().object),title:u().string},N.defaultProps={description:void 0,title:void 0};var X=i(38594),q=i(31795),R=i(5272),D=i(74172),G=i(29539),H=i(97322),z=i(27981),U=e=>{let{currency:t,itemsPerPage:i,page:n,pageIdentifier:l,products:a,shopName:r,title:o}=e,{gtmReady:s}=(0,D.g)();(0,_.useEffect)(()=>{var e;(null===(e=window)||void 0===e?void 0:e.dataLayer)&&s&&(null==a?void 0:a.length)>0&&(()=>{try{let e=(n-1)*i,s=(0,G.Z)(z.BH),d=(a||[]).map((t,i)=>{var n,l;return{name:(null===(n=t.nameEnglish||t.originalName)||void 0===n?void 0:n.replace(/(<([^>]+)>)/gi," "))||"",short_name:(null===(l=t.shortName)||void 0===l?void 0:l.replace(/(<([^>]+)>)/gi," "))||"",id:t.sku,price:(0,H.Z)(t.priceEx)?t.priceEx/100:0,originalPrice:(0,H.Z)(t.originalPriceEx)?t.originalPriceEx/100:0,brand:r||"",category:t.rootCategoryEnglish||"",metalMaterial:t.enMetalMaterial||"",sort:t.enSort||"",style:t.enStyle||"",list:o||"",position:e+(i+1),image:t.defaultImage.filename||""}});window.dataLayer.push({ecommerce:null}),window.dataLayer.push({session_id:s||"",event:"view_item_list",ecommerce:{item_list_id:l||"",item_list_name:o||"",items:d.map(e=>{var t,i,n,a,r;return{item_id:e.id,image_url:e.image||"",item_name:e.name,item_brand:e.brand,item_category:(null===(t=e.category)||void 0===t?void 0:t.toLowerCase())||"",item_category2:(null===(i=e.metalMaterial)||void 0===i?void 0:i.toLowerCase())||"",item_category3:(null===(n=e.sort)||void 0===n?void 0:n.toLowerCase())||"",item_category4:(null===(a=e.style)||void 0===a?void 0:a.toLowerCase())||"",item_variant:(null===(r=e.metalMaterial)||void 0===r?void 0:r.toLowerCase())||"",item_list_id:l||"",item_list_name:o||"",affiliation:e.brand,original_price:e.originalPrice,price:e.price,quantity:1,index:e.position}})}}),window.dataLayer.push({ecommerce:null}),window.dataLayer.push({session_id:s||"",ecommerce:{currencyCode:t,pageType:"category",impressions:d.map(e=>{var t;return{name:e.name,short_name:e.short_name,id:e.id,price:e.price,brand:e.brand,category:null===(t=e.category)||void 0===t?void 0:t.toLowerCase(),list:e.list,position:e.position}})}})}catch(e){}})()},[t,s,i,n,l,a,r,o])},W=i(36518),Y=i(19056),A=i(24469),$=i(76665),V=i(79334),J=i(76196),K=i(36323),Q=i(45084),ee=i(92217),et=i(40645),ei=i(82580),en=i(32358),el=i(93717),ea=i(17112),er=i(61797),eo=i(18291),es=i(70794),ed=i(2962),ec=i(11163),eu=i(86896),ep=i(69857),eg=i.n(ep);let ev=e=>({paragraph:e=>{let{children:t}=e;return(0,a.tZ)(b.Z,{variant:"bodyMedium",paragraph:!0,mb:4,children:t})},heading2:e=>{let{children:t}=e;return(0,a.tZ)(b.Z,{variant:"h2",component:"h2",mb:2,children:t})},heading3:e=>{let{children:t}=e;return(0,a.tZ)(b.Z,{variant:"h3",component:"h3",mb:2,children:t})},heading4:e=>{let{children:t}=e;return(0,a.tZ)(b.Z,{variant:"h4",component:"h4",mb:2,children:t})},heading5:e=>{let{children:t}=e;return(0,a.tZ)(b.Z,{variant:"h5",component:"h5",mb:2,children:t})},heading6:e=>{let{children:t}=e;return(0,a.tZ)(b.Z,{variant:"h6",component:"h6",mb:2,children:t})},hyperlink:t=>{let{node:i,children:r}=t,o=i.data.target?{target:i.data.target,rel:"noopener"}:{},s=(0,en.k)(i.data,e);return(0,a.tZ)(A.Z,(0,l._)((0,n._)({},(0,er.Z)(s)?{component:P(),prefetch:!1}:{},o),{variant:"bodyMedium",fontWeight:"inherit",href:s,children:r}))}}),em=e=>{var t;return Object.values((null==e?void 0:null===(t=e.content)||void 0===t?void 0:t.blocks)||{}).filter(t=>{var i;return t.identifier.startsWith("cusps[".concat(null==e?void 0:null===(i=e.content)||void 0===i?void 0:i.page_identifier,"]"))}).map(e=>{let{content:t}=e;return t.replace(/<\/?p>/g,"")})},eh=d()(()=>i.e(9620).then(i.bind(i,19620)),{loadableGenerated:{webpack:()=>[19620]}}),ef=d()(()=>i.e(9511).then(i.bind(i,49511)),{loadableGenerated:{webpack:()=>[49511]}}),eb=e=>{var t;let{activeFilterOptions:s,banner:d,breadcrumbs:c,currency:u,content:p,filters:g,gridImage:m,multipleSizesExplanation:h,pageIdentifier:f,pagination:Z,products:y,productVatLabel:w,seo:P,shopName:k,ringStyles:S,title:L,usps:j}=e,E=(0,eu.Z)(),I=(0,ec.useRouter)(),{hrefLang:M,setHrefLang:F}=(0,D.g)(),{selectedStone:T,selectedSetting:A}=(0,o.x)(),en=(0,r.bM)(I),er=(0,r.bM)(T),{locale:eb}=I,[eZ,ey]=(0,_.useState)(!1),e_=ep.localeDomains[z.WE[eb]||eb]||ep.defaultDomain,[ew,eP]=(0,_.useState)({banner:d,breadcrumbs:c,currency:u,title:L,content:p,filters:g,gridImage:m,activeFilterOptions:s,pageIdentifier:f,pagination:Z,products:y,seo:P,usps:j}),{banner:ex,breadcrumbs:ek,currency:eO,title:eC,content:eS,filters:eL,gridImage:ej,activeFilterOptions:eE,pageIdentifier:eI,pagination:eM,products:eF,usps:eT,seo:eB}=ew||{},eN=(null==eB?void 0:eB.canonical)||"".concat(e_).concat(I.asPath.replace(/\/collection|\/page-[0-9]+|\/pgi-[0-9]+|\/vat-[0-9]+/g,"").replace(/^\/+/,"")),eX=T?null==eE?void 0:eE.filter(e=>{let{filterKey:t}=e;return["sort","metal-material"].some(e=>t.includes(e))}):eE;U({currency:eO,page:eM.page,itemsPerPage:null===(t=eM.itemsPerPage)||void 0===t?void 0:t.value,pageIdentifier:eI,products:eF,shopName:k,title:eC});let eq=(0,_.useCallback)(async(e,t)=>{let{carat:a}=t||{};try{var r,o,s,d,c,u,p,g,v,m;let t=(await i.e(7440).then(i.bind(i,17440))).default,h=(await Promise.all([i.e(3662),i.e(4314)]).then(i.t.bind(i,74314,23))).default,f=(await Promise.resolve().then(i.bind(i,75864))).default,b=(await i.e(4708).then(i.bind(i,94708))).default,Z=(await i.e(9075).then(i.bind(i,29075))).default,y=e.split("?").at(0).split("/").filter(e=>e!==eb).join("/"),_=(0,G.Z)("".concat(z.bI,"_").concat(null==eb?void 0:eb.toLowerCase())),w=b(eO),P=f(_||(null==eb?void 0:null===(s=eb.split("-"))||void 0===s?void 0:null===(o=s.reverse())||void 0===o?void 0:null===(r=o.at(0))||void 0===r?void 0:r.toUpperCase())),x=new URL(ep.localeDomains[z.WE[eb]||eb]+e),k=Object.fromEntries(x.searchParams),{data:O}=await (0,W.Z)(eb).getPage(y.replace(/^\/+/g,""),(0,l._)((0,n._)({},k),{pgi:w}))||{},C=null;if((0,H.Z)(a)){let e=null===(v=(null==O?void 0:null===(m=O.content)||void 0===m?void 0:m.products)||[])||void 0===v?void 0:v.reduce((e,t)=>{let{sku:i}=t;return[...e,i]},[]),t=(0,el.Z)(e,4).map(e=>{var t;return Y.default.getCustomStonePricing({sku:e.join(","),carat:a},{locale:null===(t=eg().localeSpecificationMapping[eb])||void 0===t?void 0:t.toUpperCase(),priceGroup:w,currency:eO})});C=(await Promise.allSettled(t)).filter(e=>{let{status:t}=e;return"fulfilled"===t}).reduce((e,t)=>{let{value:{data:i}}=t;return(0,n._)({},e,i)},{})}let S=(await Promise.all([i.e(4720),i.e(3731)]).then(i.bind(i,63731))).default,L=(await Promise.all([i.e(4720),i.e(4013)]).then(i.bind(i,24013))).default,j=S(eb,O||{},P,C),E=L(O||{},eb),I=(null==j?void 0:null===(d=j.pagination)||void 0===d?void 0:d.page)||1,M=Z((0,n._)({locale:eb,slug:null==y?void 0:null===(c=y.replace(/^\/|\/$/g,""))||void 0===c?void 0:c.split("/")},I>1?{queryParams:{page:I}}:{})),T=(null==O?void 0:null===(g=O.content)||void 0===g?void 0:null===(u=g.sliders["gridafbeelding".concat(((null==O?void 0:null===(p=O.content)||void 0===p?void 0:p.page_identifier)||"").toLowerCase().replace(/ç/g,"").replace(/_/g,"").replace(/'/g,""))])||void 0===u?void 0:u.slides)||[],B=T.length>0?I%T.length:0,N=(0===B?T.length:B)-1,X=(null==T?void 0:T[N])||null,{breadcrumbs:q,currency:R,title:D,filters:U,activeFilterOptions:A,pageIdentifier:$,pagination:V,products:J,seo:K}=j;F(((null==E?void 0:E.hrefLang)||[]).map(e=>(0,l._)((0,n._)({},e),{href:"".concat(e.href,"/").concat(I>1?"?page=".concat(I):"")}))),eP(e=>{var i,a,r,o,s,d,c,u;return(0,n._)((0,l._)((0,n._)({},e),{breadcrumbs:q,currency:R,title:D,filters:U,activeFilterOptions:A,seo:(0,l._)((0,n._)({},K),{canonical:M}),banner:(null==O?void 0:null===(o=O.content)||void 0===o?void 0:null===(r=o.slider)||void 0===r?void 0:null===(a=r.slides)||void 0===a?void 0:null===(i=a.at(0))||void 0===i?void 0:i.filename)?{alt:O.content.slider.slides.at(0).title||D,url:O.content.slider.slides.at(0).filename.replace("1170x250/","")}:{},content:h(t.turndown((null==O?void 0:null===(d=O.content)||void 0===d?void 0:null===(s=d.content)||void 0===s?void 0:s.replace(/(<h\d>)<br ?\/?>/gm,"$1"))||"")),gridImage:(null==X?void 0:X.filename)?{filename:(null==X?void 0:null===(c=X.filename)||void 0===c?void 0:c.replace("1170x250/",""))||null,url:(null==X?void 0:X.title)||null,text:(0,eo.Z)((null==X?void 0:X.text)||"")||null}:null,usps:em(O,eb).sort(()=>Math.random()-.5),pageIdentifier:$||"",pagination:(0,l._)((0,n._)({},V),{itemsPerPage:(null==J?void 0:J.length)>0?null==V?void 0:V.itemsPerPage:null===(u=e.pagination)||void 0===u?void 0:u.itemsPerPage}),products:J,hrefLang:null==E?void 0:E.hrefLang}),(null==J?void 0:J.length)>0?{activeFilterOptions:A}:{})})}catch(e){}finally{ey(!1)}},[eO,eb,F]),eR=(e,t)=>async()=>{var n,l;let a=(eM.page-1)*((null==eM?void 0:null===(n=eM.itemsPerPage)||void 0===n?void 0:n.value)||20);(null===(l=window)||void 0===l?void 0:l.dataLayer)&&(0,(await i.e(5975).then(i.bind(i,45975))).default)({currency:eO,list:eC,pageIdentifier:eI,products:[{name:e.nameEnglish||e.name,short_name:e.shortName,id:e.sku,price:(0,H.Z)(e.priceEx)?e.priceEx/100:0,originalPrice:(0,H.Z)(e.originalPriceEx)?e.originalPriceEx/100:0,brand:k,category:e.rootCategoryEnglish,metalMaterial:e.enMetalMaterial,sort:e.enSort,style:e.enStyle,variant:e.enMetalMaterial,position:a+(t+1)}]})},eD=null==eB?void 0:eB.title,eG=null==eB?void 0:eB.description;return(null==eM?void 0:eM.page)>1&&(eD=E.formatMessage({id:"pages.collection.seo.paginatedTitle",defaultMessage:"Page {page} for {seoTitle}",description:"seo title wrapper for a paginated collection page"},{page:eM.page,seoTitle:eD}),eG=E.formatMessage({id:"pages.collection.seo.paginatedDescription",defaultMessage:"Page {page}. {seoDescription}",description:"seo description wrapper for a paginated collection page"},{page:eM.page,seoDescription:eG})),(0,_.useEffect)(()=>{let e=en(),t=er(),i=["page_size","sort",...Object.values(g).map(e=>{let{key:t}=e;return t})],n=Object.keys(e.query);if(e.query&&n.some(e=>i.includes(e))||t){var l,a,r,o,s,d,c,u,p,v,m,h,f;ey(!0);let[i,n]=e.asPath.split("?"),b=new URLSearchParams(n);if(t){if(b.delete("min-carat"),b.delete("max-carat"),b.delete("".concat(null==e?void 0:null===(o=e.locale)||void 0===o?void 0:null===(r=o.split("-"))||void 0===r?void 0:r.at(0),"-stone-material")),b.set("".concat(null==e?void 0:null===(d=e.locale)||void 0===d?void 0:null===(s=d.split("-"))||void 0===s?void 0:s.at(0),"-stone-shape"),(0,ea.Z)((null==t?void 0:t.shape)||"")),b.set("".concat(null==e?void 0:null===(u=e.locale)||void 0===u?void 0:null===(c=u.split("-"))||void 0===c?void 0:c.at(0),"-stone-material"),(0,ea.Z)("custom diamond")),b.set("min-carat",".".concat(parseInt((0,es.Z)(null==t?void 0:t.carat).times(1e4).toString(),10))),b.set("max-carat","".concat(parseInt((0,es.Z)(null==t?void 0:t.carat).times(1e4).toString(),10),".")),!b.has("".concat(null==e?void 0:null===(v=e.locale)||void 0===v?void 0:null===(p=v.split("-"))||void 0===p?void 0:p.at(0),"-metal-material"))){let e=(null==g?void 0:g["metal-material"])||{},[t]=(null===(m=(null==e?void 0:e.attributes)||[])||void 0===m?void 0:m.filter(e=>{let{available:t}=e;return t}))||[];t&&b.set(null==e?void 0:e.key,null==t?void 0:t.key)}}else b.has("".concat(null==e?void 0:null===(a=e.locale)||void 0===a?void 0:null===(l=a.split("-"))||void 0===l?void 0:l.at(0),"-metal-material"))&&b.delete("".concat(null==e?void 0:null===(f=e.locale)||void 0===f?void 0:null===(h=f.split("-"))||void 0===h?void 0:h.at(0),"-metal-material"));eq("".concat(i).concat(b.toString().length>0?"?".concat(b.toString()):""),{carat:null==t?void 0:t.carat})}},[eq,en,I.query,I.asPath,g,er]),(0,_.useEffect)(()=>{let e=(e,t)=>{let{shallow:i}=t;ey(i),i&&(window.scrollTo({top:0,left:0,behavior:"smooth"}),T||eq(e))};return I.events.on("routeChangeStart",e),()=>{I.events.off("routeChangeStart",e)}},[eq,I.events,T]),(0,_.useEffect)(()=>{eP({banner:d,breadcrumbs:c,currency:u,title:L,content:p,filters:g,gridImage:m,activeFilterOptions:s,pageIdentifier:f,pagination:Z,products:y,seo:P,usps:j})},[d,c,u,L,p,g,m,s,f,Z,y,P,j]),(0,a.BX)(a.HY,{children:[(0,a.tZ)(ed.PB,(0,n._)({title:eD,description:eG,canonical:(null==eB?void 0:eB.disableCanonical)?null:eN,languageAlternates:(M||[]).reduce((e,t)=>[...e,{hrefLang:(null==t?void 0:t.hrefLang)||(null==t?void 0:t.locale),href:t.href}],[]),additionalMetaTags:[{property:"keywords",content:null==eB?void 0:eB.keywords}]},(null==eB?void 0:eB.openGraph)?{openGraph:null==eB?void 0:eB.openGraph}:{},(null==eB?void 0:eB.twitter)?{twitter:null==eB?void 0:eB.twitter}:{})),(0,a.tZ)(X.Z,{banner:ex,breadcrumbs:ek,title:eC,priority:!0}),(0,a.BX)($.Z,{children:[(0,a.tZ)(C.Z,{currentStep:"setting",onRemoveStone:()=>{var e,t;let[i,n]=I.asPath.split("?"),l=new URLSearchParams(n);l.delete("min-carat"),l.delete("max-carat"),l.delete("".concat(null==I?void 0:null===(t=I.locale)||void 0===t?void 0:null===(e=t.split("-"))||void 0===e?void 0:e.at(0),"-stone-material")),ey(!0),I.replace("".concat(i).concat(l.toString().length>0?"?".concat(l.toString()):""))},changeSettingLink:null==A?void 0:A.slug}),S.length>0&&(0,a.tZ)(ef,{ringStyles:S}),(0,a.BX)(V.Z,{display:"grid",gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"1fr auto 1fr",md:"max-content auto max-content"},alignItems:"center",justifyContent:{sm:"space-between"},mt:2.5,gap:2.5,children:[(0,a.tZ)(v,{activeFilterOptions:T?null==eE?void 0:eE.filter(e=>{let{filterKey:t}=e;return["sort","metal-material"].some(e=>t.includes(e))}):eE,filters:T?{"metal-material":null==eL?void 0:eL["metal-material"]}:eL}),(0,a.tZ)(N,{title:null==h?void 0:h.title,description:null==h?void 0:h.content}),(0,a.tZ)(O,{itemsPerPage:eM.itemsPerPage})]}),eX.length>0&&(0,a.tZ)(V.Z,{mt:2,children:(0,a.tZ)(eh,{activeFilterOptions:eX})}),0===eF.length&&(0,a.tZ)(J.Z,{sx:{maxWidth:560,mx:"auto",my:5},children:(0,a.BX)(K.Z,{children:[(0,a.tZ)(b.Z,{variant:"h6",component:"div",mb:1.5,children:(0,a.tZ)(x.Z,{id:"pages.collection.feedback.noCompatibleProductsForDiamond.title",defaultMessage:"No compatible products found",description:"title of the feedback when nog compatible products were found for the selected diamond on the collection page"})}),(0,a.tZ)(x.Z,{id:"pages.collection.feedback.noCompatibleProductsForDiamond.description",defaultMessage:"We couldn't find compatible products for this diamond in this category. Try a different category, choose a different stone or remove the stone and start with a setting.",description:"title of the feedback when nog compatible products were found for the selected diamond on the collection page"})]})}),(0,a.BX)(R.ZP,{children:[eF.map((e,t)=>{let i=(t+1)/4-1;return(0,a.BX)(_.Fragment,{children:[(0,a.tZ)(q.Z,{product:e,onClick:eR(e,t),vatLabel:T?"".concat(E.formatMessage({id:"common.priceOfSetting",defaultMessage:"Price of setting",description:"common label for price of setting"}),", ").concat(w):w,priority:t<4}),!!eT.length&&t>0&&t+1<eF.length&&!((t+1)%4)&&eT[i]&&(0,a.tZ)(R.qp,{usp:eT[i]})]},e.id)}),!!ej&&eF.length>=8&&(0,a.tZ)(R.L6,{gridImage:ej,alt:eC})]}),(0,a.tZ)(Q.Z,{sx:{my:2.5}}),(0,a.tZ)(V.Z,{display:"flex",justifyContent:"flex-end",mb:2.5,children:(0,a.tZ)(R.wr,{pagination:eM})}),eS&&(0,a.tZ)(ee.ZP,{justifyContent:"center",container:!0,children:(0,a.tZ)(ee.ZP,{item:!0,xs:12,md:10,lg:8,xl:6,children:(0,a.tZ)(B.v,{field:eS,components:ev(eb)})})})]}),(0,a.tZ)(et.Z,{sx:{backgroundColor:"rgba(255,255,255,.8)"},open:eZ,children:(0,a.tZ)(ei.Z,{color:"primary"})})]})};eb.getLayout=S.G,eb.propTypes={activeFilterOptions:u().arrayOf(u().shape({key:u().string,label:u().string,link:u().string})),banner:u().shape({alt:u().string,url:u().string}),breadcrumbs:u().arrayOf(u().shape({key:u().string.isRequired,label:u().string,url:u().string,active:u().bool})),content:u().arrayOf(u().object),currency:u().string,filters:u().object,productVatLabel:u().string,gridImage:u().shape({title:u().string,filename:u().string}),layoutData:u().object,multipleSizesExplanation:u().shape({title:u().string,content:u().arrayOf(u().object)}),pageIdentifier:u().string,pagination:u().shape({itemsPerPage:u().shape({value:u().number,options:u().arrayOf(u().shape({label:u().oneOfType([u().number,u().string]),url:u().string}))}),page:u().number,pageCount:u().number}),products:u().arrayOf(u().shape({id:u().string,currency:u().string,defaultImage:u().shape({filename:u().string,thumbs:u().shape({50:u().string,100:u().string,200:u().string,400:u().string})}),hasDiscount:u().bool,multipleSizesAvailable:u().bool,name:u().string,nameSpecificationParts:u().arrayOf(u().string),originalName:u().string,originalPrice:u().number,price:u().number,rootCategory:u().string,rootCategoryEnglish:u().string,shortName:u().string,sku:u().string,url:u().string})),ringStyles:u().arrayOf(u().shape({label:u().string,image:u().shape({alt:u().string,url:u().string}),link:u().string})),seo:u().shape({title:u().string,description:u().string,keywords:u().string,nofollow:u().bool,noindex:u().bool,canonincal:u().string}),shopName:u().string,title:u().string,usps:u().arrayOf(u().string)},eb.defaultProps={activeFilterOptions:[],banner:void 0,breadcrumbs:[],content:void 0,currency:null,filters:{},gridImage:void 0,layoutData:{},pageIdentifier:void 0,productVatLabel:null,multipleSizesExplanation:void 0,pagination:{},products:[],ringStyles:[],seo:{},shopName:null,title:void 0,usps:[]};var eZ=!0,ey=eb},93717:function(e,t,i){"use strict";var n=i(2658),l=i.n(n);t.Z=(e,t)=>l()(e,t)}},function(e){e.O(0,[1664,4469,4513,2962,9821,1821,7563,794,8850,1803,8159,7901,5359,1208,2888,9774,179],function(){return e(e.s=95216)}),_N_E=e.O()}]);