1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74234,e=>{"use strict";var t=e.i(38238),r=e.i(44141),i=e.i(15929),n=e.i(32036),l=e.i(57893),a=e.i(91997);function s({category:e,saleOnly:s=!1,excludeIds:o=[],enabled:u=!0,buildSpecs:c}){let{data:p,loading:g,hasMore:f,isFetchingNextPage:m,fetchNextPage:x}=(0,r.useInventory)(e,{mode:"infinite",sort:"featured",enabled:u}),d=(0,t.useMemo)(()=>new Set(o),[o]);return{products:(0,t.useMemo)(()=>{var t,r;let o,u,g,f=p;return s&&(f=f.filter(i.hasDiscount)),d.size>0&&(f=f.filter(e=>!d.has(e.id))),t=f=f.filter(e=>(0,i.getAvailableQuantity)(e)>0),r={buildSpecs:c},u=(o="gem"===e)?"gem":"product",g=r?.defaultImage??"/home/imgRectangle98.png",t.map(t=>{let s=t.images??[],c=(0,i.selectPrimaryImage)(s,g),{price:p,originalPrice:f}=(0,i.getHKDPriceDiscount)(t),{min:m,max:x}=(0,i.getPlpPriceRange)(t),d=(0,i.isStyleSoldOut)(t.plpChildren??[t]),h=o?(0,l.buildGemPlpCardMeta)(t):void 0;return{id:t.id,styleno:t.styleno,imageSrc:c,hoverImageSrc:(0,i.selectHoverImage)(s,c),name:o?(0,a.buildGemDisplayName)(t):(0,i.getItemName)(t),specs:o?void 0:r?.buildSpecs?.(t)??(0,n.buildSpecs)(t.attributes),price:p,priceMin:m,priceMax:x,soldOut:d,originalPrice:null==f||m!==x||d?void 0:f,isNew:t.attributes?.newitem==="YES",type:u,category:e,gemCaratLabel:h?.caratLabel,gemShapes:h?.shapes}})},[p,s,d,e,c]),loading:g,hasMore:f??!1,isFetchingMore:m??!1,loadMore:(0,t.useCallback)(()=>{x()},[x])}}e.s(["useInventoryProductCarousel",()=>s],74234)},57893,e=>{"use strict";var t=e.i(20718),r=e.i(60711);let i=t.SHAPE_OPTIONS.map(e=>e.value),n=new Set(i);function l(e){let t=a(e),r=new Set;for(let e of t){let t=o(e.attributes?.stonect);t&&r.add(t)}return{caratLabel:function(e){if(0===e.length)return;let t=[...e].sort((e,t)=>(Number(e)||0)-(Number(t)||0)||e.localeCompare(t)),r=t[0],i=t[t.length-1];return r===i?`${r}å¡`:`${r}å¡è³${i}å¡`}([...r]),shapes:function(e){let t=new Set;for(let r of e){let e=s(r.attributes?.stoneshape);e&&t.add(n.has(e)?e:"other")}return i.filter(e=>t.has(e))}(t)}}function a(e){return e.plpChildren&&e.plpChildren.length>0?e.plpChildren:[e]}function s(e){return(e??"").trim().toLowerCase()}function o(e){return null==e||""===e?"":String(e).trim()}function u(e){let t=new Set,r=new Set,i=new Set;for(let n of e){let e=s(n.attributes?.stoneshape);e&&t.add(e);let l=o(n.attributes?.stonect);l&&r.add(l);let a=function(e){let t=String(e??"").trim().toLowerCase();return t?"sapphire"===t?"blue sapphire":t:""}(n.attributes?.stone);a&&i.add(a)}return{shapesInGroup:t,ctsInGroup:r,stonesInGroup:i}}function c(e,t){for(let r of t)e[r]=(e[r]??0)+1}function p(e){return String(parseFloat(e.toFixed(3)))}function g(e){return`${p(e[0])}-${p(e[1])}å¡`}function f(e,t){return e??[t.min,t.max]}function m(e,t){return e[0]<=t.min&&e[1]>=t.max?null:e}function x(e){let t=(e.min+e.max)/2;return{[e.min]:`${p(e.min)}å¡`,[t]:`${p(t)}å¡`,[e.max]:`${p(e.max)}å¡`}}function d(e,t,r){let i;return{shapeCounts:e,stonectBounds:0===(i=Object.keys(t).map(e=>Number(e)).filter(e=>Number.isFinite(e))).length?null:{min:Math.min(...i),max:Math.max(...i)},gemstoneCounts:r}}function h(e){let t={},r={},i={};for(let n of e){let{shapesInGroup:e,ctsInGroup:l,stonesInGroup:s}=u(a(n));for(let r of e)t[r]=(t[r]??0)+1;for(let e of l)r[e]=(r[e]??0)+1;c(i,s)}return d(t,r,i)}function v(e){let t={},i={},n={};for(let l of e){let{shapesInGroup:e,ctsInGroup:a,stonesInGroup:s}=u((0,r.normalizeAllGroupChildren)(l));for(let r of e)t[r]=(t[r]??0)+1;for(let e of a)i[e]=(i[e]??0)+1;c(n,s)}return d(t,i,n)}function b(e,t,r){let i=t??[];return 0!==i.length||r?e.filter(e=>N(e,i,r)):e}function y(e){return t.SHAPE_OPTIONS.filter(t=>(e[t.value.toLowerCase()]??0)>0)}function N(e,t,r){return 0===t.length&&!r||a(e).some(e=>(function(e,t){if(0===t.length)return!0;let r=s(e.attributes?.stoneshape);return t.some(e=>r===e.toLowerCase())})(e,t)&&function(e,t){if(!t)return!0;let r=Number(o(e.attributes?.stonect));return!!Number.isFinite(r)&&r>=t[0]&&r<=t[1]}(e,r))}e.s(["applyGemAttributeFilters",()=>b,"buildGemFilterMetaFromGroups",()=>v,"buildGemFilterMetaFromPlpItems",()=>h,"buildGemPlpCardMeta",()=>l,"buildGemShapeFilterOptions",()=>y,"formatStonectRangeLabel",()=>g,"plpItemMatchesGemAttributeFilters",()=>N,"stonectRangeFromSlider",()=>m,"stonectRangeMarks",()=>x,"stonectSliderValue",()=>f])},12842,e=>{"use strict";var t=e.i(14822),r=e.i(84778),i=class extends t.QueryObserver{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:(0,r.infiniteQueryBehavior)()})}getOptimisticResult(e){return e.behavior=(0,r.infiniteQueryBehavior)(),super.getOptimisticResult(e)}
1fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:i}=e,n=super.createResult(e,t),{isFetching:l,isRefetching:a,isError:s,isRefetchError:o}=n,u=i.fetchMeta?.fetchMore?.direction,c=s&&"forward"===u,p=l&&"forward"===u,g=s&&"backward"===u,f=l&&"backward"===u;return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,r.hasNextPage)(t,i.data),hasPreviousPage:(0,r.hasPreviousPage)(t,i.data),isFetchNextPageError:c,isFetchingNextPage:p,isFetchPreviousPageError:g,isFetchingPreviousPage:f,isRefetchError:o&&!c&&!g,isRefetching:a&&!p&&!f}}},n=e.i(21115);function l(e,t){return(0,n.useBaseQuery)(e,i,t)}e.s(["useInfiniteQuery",()=>l],12842)},44141,e=>{"use strict";var t=e.i(12842),r=e.i(55371),i=e.i(38238),n=e.i(61238),l=e.i(57893),a=e.i(15929),s=e.i(59195),o=e.i(91997),u=e.i(60711);let c=new Set(["gem"]);function p(e,t){let r=e=>e.attributes?.newitem?.toLowerCase()==="yes";return[...e].sort((e,i)=>{switch(t){case"featured":{let t=!r(e)-!r(i);if(0!==t)return t;return(e.createdat??0)-(i.createdat??0)}case"newest":return(i.createdat??0)-(e.createdat??0);case"oldest":default:return(e.createdat??0)-(i.createdat??0);case"price-high":return(Number(i.attributes?.saleshkd)||0)-(Number(e.attributes?.saleshkd)||0);case"price-low":return(Number(e.attributes?.saleshkd)||0)-(Number(i.attributes?.saleshkd)||0)}})}function g(e,t,r,i){let n,s="goldJewelry"===e?t.filter(e=>e.attributes?.weight!==null&&0!==e.quantity):t;if(!r)return p(s,i);let u=c.has(e)?(n=s,((r.shapes?.length??0)>0||r.stonectRange)&&(n=n.filter(e=>(0,l.plpItemMatchesGemAttributeFilters)(e,r.shapes??[],r.stonectRange))),n=(0,a.applyStockFilter)(n,r.stock),n=(0,a.applyPriceFilter)(n,r.price)):(0,a.applyJewelryFilters)(s,r,{applyPrice:!1});return p(r.search?.trim()?u:function(e,t,r=!1){let i=t.trim().toLowerCase();return i?e.filter(e=>{let t=(r?(0,o.buildGemDisplayName)(e):(0,a.getItemName)(e)).toLowerCase(),n=e.sku?.toLowerCase()??"",l=e.styleno?.toLowerCase()??"";return t.includes(i)||n.includes(i)||l.includes(i)}):e}(u,r.search??"",c.has(e)),i)}function f(e,a={}){let{filters:o,sort:p="featured",mode:m="all",enabled:x=!0,extraFilter:d}=a,h=(0,i.useMemo)(()=>d&&Object.keys(d).length>0?{extraFilter:d}:void 0,[d]),v=(0,i.useMemo)(()=>(0,s.buildInventoryQueryParams)(e,o,h),[e,o,h]),b=(0,r.useQuery)({queryKey:["inventory","v2-style-groups","all",e,v],queryFn:async()=>(0,s.fetchAllInventoryPages)(e,o,h),enabled:x&&"all"===m}),{data:y,isLoading:N,isFetchingNextPage:w,hasNextPage:S,fetchNextPage:M}=(0,t.useInfiniteQuery)({queryKey:["inventory","v2-style-groups","infinite",e,v,p],queryFn:async({pageParam:t})=>{let r=(0,s.inventoryPagePath)(e,t,o,h);return(0,n.getInventoryPage)(r)},initialPageParam:0,getNextPageParam:(e,t,r)=>e.haveNextCursor?r+1:void 0,enabled:x&&"infinite"===m}),P=(0,i.useMemo)(()=>"all"===m?g(e,b.data?.items??[],o,p):(y?.pages??[]).flatMap(t=>{var r;return g(e,(r=t.data,c.has(e)?(0,u.groupsToFlatGemPlpItems)(r):(0,u.groupsToPLPItems)(r)),o,p)}),[m,e,b.data?.items,o,p,y?.pages]),I=(0,i.useMemo)(()=>{if(!c.has(e))return;if("all"===m)return(0,l.buildGemFilterMetaFromGroups)(b.data?.rawGroups??[]);let t=y?.pages??[];return(0,l.buildGemFilterMetaFromGroups)(t.flatMap(e=>e.data))},[e,m,b.data?.rawGroups,y?.pages]),j="all"===m?c.has(e)?P.length:b.data?.totalCount??P.length:c.has(e)?P.length:y?.pages[0]?.totalCount??P.length,C="infinite"===m&&(S??!1),O="all"===m?b.isLoading:N,k="infinite"===m&&w,F=(0,i.useRef)(!1),E=(0,i.useRef)(null),L=(0,i.useCallback)(e=>{if("infinite"!==m||(E.current&&(E.current.disconnect(),E.current=null),!e))return;let t=new IntersectionObserver(([e])=>{e.isIntersecting&&!F.current&&S&&!w&&(F.current=!0,M().finally(()=>{F.current=!1}))},{rootMargin:"0px"});t.observe(e),E.current=t},[m,S,w,M]);return((0,i.useEffect)(()=>{F.current=!1},[v,p,e,m]),"infinite"===m)?{data:P,loading:O,totalCount:j,hasMore:C,isFetchingNextPage:k,fetchNextPage:M,sentinelRef:L,gemFilterMeta:I}:{data:P,loading:O,totalCount:j,hasMore:!1,isFetchingNextPage:!1,fetchNextPage:()=>Promise.resolve(),sentinelRef:void 0,gemFilterMeta:I}}e.s(["useInventory",()=>f],44141)},10359,e=>{"use strict";var t=e.i(69834),r=e.i(38238),i=e.i(70317),n=e.i(40383),l=e.i(17015),a=e.i(18267),s=e.i(89612),o=e.i(78543),u=e.i(44705),c=e.i(15929),p=e.i(80230),g=e.i(78057);function f({title:e,products:f,mobilePadding:m="max-lg:pt-[30px] max-lg:pb-[30px]",showIcons:x=!0,showNewBadge:d=!0,viewAllHref:h,linkPrefix:v="products",hasMore:b=!1,isFetchingMore:y=!1,onLoadMore:N,isLoading:w=!1}){let S=(0,r.useRef)(null),M=(0,r.useRef)(!1),P=(0,r.useRef)(-1),I=(0,r.useRef)(!1),[j,C]=(0,r.useState)(0),[O,k]=(0,r.useState)(40),{addItem:F,openCart:E}=(0,p.useCart)(),L=(0,r.useCallback)(()=>{let e=S.current;if(!e||!N||!b||y||M.current)return;let t=e.scrollWidth-e.clientWidth,r=e.scrollLeft+e.clientWidth>=e.scrollWidth-120;if(t<=8){if(I.current)return;I.current=!0}else{if(!r||e.scrollLeft<=P.current)return;P.current=e.scrollLeft}M.current=!0,N()},[b,y,N]);(0,r.useEffect)(()=>{y||(M.current=!1)},[y]),(0,r.useEffect)(()=>{let e=S.current;if(!e)return;let t=()=>{let{scrollLeft:t,scrollWidth:r,clientWidth:i}=e,n=r-i;k(Math.min(Math.max(i/r*100,10),100)),n>0?C(Math.min(Math.max(t/n*100,0),100)):C(0)},r=()=>{t(),L()};return t(),e.addEventListener("scroll",r,{passive:!0}),e.addEventListener("scrollend",L),window.addEventListener("resize",t),()=>{e.removeEventListener("scroll",r),e.removeEventListener("scrollend",L),window.removeEventListener("resize",t)}},[L]),(0,r.useEffect)(()=>{let e=S.current;if(!e)return;let{scrollLeft:t,scrollWidth:r,clientWidth:i}=e,n=r-i;k(Math.min(Math.max(i/r*100,10),100)),n>0?C(Math.min(Math.max(t/n*100,0),100)):C(0)},[f.length]);let R=e=>{let t=S.current;if(!t)return;let r=t.clientWidth/2+14;t.scrollBy({left:"left"===e?-r:r,behavior:"smooth"})};return(0,t.jsxs)("div",{className:`w-full bg-[#f6f5f1] py-[100px] ${m}`,children:[(0,t.jsxs)("div",{className:"mb-[82px] flex flex-col items-center max-lg:mb-[20px] max-lg:gap-[6px] max-lg:py-[20px]",children:[(0,t.jsx)("h2",{className:"p-[10px] font-noto-serif-tc text-[26px] font-semibold leading-[30px] tracking-[13px] text-[#373634] max-lg:p-0 max-lg:text-[20px] max-lg:leading-[24px] max-lg:tracking-[6px] max-lg:text-[#3d3d3d]",children:e}),(0,t.jsx)(o.ViewAllLink,{href:h})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{ref:S,className:"overflow-x-auto overflow-y-clip scrollbar-hide scroll-smooth snap-x snap-mandatory px-[40px] max-lg:px-0",children:(0,t.jsxs)("div",{className:"mx-auto flex w-fit gap-[40px] max-lg:gap-[14px] max-lg:pl-[20px] max-lg:pb-[20px]",children:[w&&0===f.length&&Array.from({length:4}).map((e,r)=>(0,t.jsxs)("div",{className:"flex w-[301px] flex-col gap-[20px] max-lg:w-[178px] max-lg:shrink-0 animate-pulse","aria-hidden":!0,
1children:[(0,t.jsx)("div",{className:"h-[299px] w-[301px] bg-[#e8e6e4] max-lg:h-[178px] max-lg:w-[178px]"}),(0,t.jsxs)("div",{className:"flex flex-col gap-[8px] max-lg:px-[5px]",children:[(0,t.jsx)("div",{className:"h-[16px] w-3/4 bg-[#e8e6e4] max-lg:h-[12px]"}),(0,t.jsx)("div",{className:"h-[14px] w-1/2 bg-[#e8e6e4] max-lg:h-[12px]"})]})]},`carousel-skeleton-${r}`)),f.map(e=>(0,t.jsxs)(u.Link,{href:(0,g.getProductHref)(e,v??"products"),className:"flex w-[301px] flex-col gap-[20px] max-lg:w-[178px] max-lg:shrink-0 max-lg:snap-center hover:opacity-90 transition-opacity",children:[(0,t.jsxs)("div",{className:"relative h-[299px] w-[301px] max-lg:h-[178px] max-lg:w-[178px]",children:[(0,t.jsxs)("div",{className:"relative h-full w-full overflow-hidden group",children:[(0,t.jsx)(s.SkeletonImage,{src:e.imageSrc,alt:e.name,fill:!0,className:`object-cover transition-transform duration-300 ${!e.hoverImageSrc?"group-hover:scale-110":""}`}),e.hoverImageSrc&&(0,t.jsx)(n.HoverImage,{src:e.hoverImageSrc,alt:e.name})]}),d&&e.isNew&&(0,t.jsx)(l.NewBadge,{}),"gem"===e.type&&e.gemShapes&&e.gemShapes.length>0&&(0,t.jsx)(i.GemShapeIconsOverlay,{shapes:e.gemShapes}),x&&(0,t.jsx)(a.ProductActionIcons,{inventoryItemId:String(e.id),hideCart:e.soldOut,onAddToCart:t=>{t.preventDefault(),t.stopPropagation(),F({id:String(e.id),styleno:e.styleno,name:e.name,specs:e.specs??"",imageSrc:e.imageSrc,price:e.price,originalPrice:e.originalPrice,isCustom:!1,category:e.category,type:e.type}),E()}})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-[12px] max-lg:gap-[8px] max-lg:px-[5px]",children:["gem"===e.type?(0,t.jsxs)(t.Fragment,{children:[e.name&&(0,t.jsx)("p",{className:"font-noto-serif-tc text-[16px] font-medium leading-[normal] tracking-[3.2px] text-[#3d3d3d] max-lg:text-[12px] max-lg:font-normal max-lg:leading-[20px] max-lg:tracking-[1.2px]",children:e.name}),e.gemCaratLabel&&(0,t.jsx)("p",{className:"font-noto-serif-tc text-[14px] font-light leading-[normal] tracking-[2.8px] text-[#928f8c] max-lg:text-[12px] max-lg:leading-[14px]",children:e.gemCaratLabel})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"font-noto-serif-tc text-[16px] font-medium uppercase leading-[normal] tracking-[3.2px] text-[#3d3d3d] max-lg:text-[12px] max-lg:font-normal max-lg:normal-case max-lg:leading-[20px] max-lg:tracking-[1.2px]",children:e.name}),e.specs&&(0,t.jsx)("p",{className:"font-noto-serif-tc text-[14px] font-medium leading-[normal] tracking-[2.8px] text-[#928f8c] max-lg:text-[12px] max-lg:font-light max-lg:leading-[14px]",children:e.specs})]}),(0,t.jsx)("p",{className:"font-noto-serif-tc text-[16px] font-bold leading-[normal] tracking-[3.2px] text-[#3d3d3d] max-lg:text-[12px] max-lg:font-light max-lg:leading-[14px]",children:(0,c.formatPlpPriceLabel)(e.priceMin??e.price,e.priceMax??e.price,e.soldOut)})]})]},e.id)),y&&Array.from({length:2}).map((e,r)=>(0,t.jsxs)("div",{className:"flex w-[301px] flex-col gap-[20px] max-lg:w-[178px] max-lg:shrink-0 animate-pulse","aria-hidden":!0,children:[(0,t.jsx)("div",{className:"h-[299px] w-[301px] bg-[#e8e6e4] max-lg:h-[178px] max-lg:w-[178px]"}),(0,t.jsx)("div",{className:"h-[16px] w-3/4 bg-[#e8e6e4] max-lg:mx-[5px] max-lg:h-[12px]"})]},`carousel-loading-more-${r}`))]})}),(0,t.jsxs)("div",{className:"lg:hidden mt-[20px] px-[20px] flex items-center gap-[40px]",children:[(0,t.jsx)("button",{type:"button",onClick:()=>R("left"),className:"shrink-0 hover:opacity-70 transition-opacity","aria-label":"Previous",children:(0,t.jsxs)("svg",{role:"img","aria-label":"Previous",width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"Previous"}),(0,t.jsx)("path",{d:"M7.66867 14.5723L0.707107 7.61077L7.66866 0.649211",stroke:"#CECDCB",strokeWidth:"1"})]})}),(0,t.jsx)("div",{className:"relative flex-1 h-[2px] bg-[#d9d9d9]",children:(0,t.jsx)("div",{className:"absolute top-0 left-0 h-[2px] bg-[#807d7a] transition-all duration-300",style:{width:`${O}%`,left:`${j*(100-O)/100}%`}})}),(0,t.jsx)("button",{type:"button",onClick:()=>R("right"),className:"shrink-0 hover:opacity-70 transition-opacity","aria-label":"Next",children:(0,t.jsxs)("svg",{role:"img","aria-label":"Next",width:"8",he
1ight:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"Next"}),(0,t.jsx)("path",{d:"M0.331329 0.353553L7.29289 7.31511L0.331334 14.2767",stroke:"#CECDCB",strokeWidth:"1"})]})})]})]})]})}e.s(["ProductCarouselSection",()=>f])},63373,e=>{"use strict";var t=e.i(69834),r=e.i(20718);function i(e){return r.SHAPE_OPTIONS.find(t=>t.value===e)?.label??e}let n={round:{h:19.276,w:19.275,left:2.86,top:2.86},princess:{h:19.161,w:19.161,left:2.92,top:2.92},cushion:{h:19.583,w:19.583,left:2.71,top:2.71,innerInset:"0 -3.33% -3.33% 0"},oval:{h:21.527,w:14.458,left:5.27,top:1.74,innerInset:"0 -0.35% -0.75% -0.35%"},emerald:{h:21.387,w:16.309,left:4.35,top:1.81,rotate:!0,innerInset:"-1.67% -2.61% -1.49% -1.66%"},pear:{h:21.388,w:14.777,left:5.11,top:1.81,rotate:!0,innerInset:"-0.13% -1.33% -1.33% 0"},asscher:{h:21.091,w:21.091,left:1.95,top:1.95,rotate:!0},heart:{h:19.461,w:21.153,left:1.25,top:2.77,innerInset:"0 -1.88% -4.31% 0"},marquise:{h:22.973,w:11.662,left:6.67,top:1.01},other:{h:18.333,w:24.167,left:.83,top:3.33}},l={round:"/gems/cuts/round.svg",princess:"/gems/cuts/princess.svg",cushion:"/gems/cuts/cushion.svg",oval:"/gems/cuts/oval.svg",emerald:"/gems/cuts/emerald.svg",pear:"/gems/cuts/pear.svg",asscher:"/gems/cuts/asscher.svg",heart:"/gems/cuts/heart.svg",marquise:"/gems/cuts/marquise.svg",other:"/gems/cuts/other.svg"};function a({shape:e,containerSize:r=25,className:a,showTooltip:s=!1,tooltipPlacement:o="bottom",title:u}){let c=r/25,p=n[e],g=l[e],f=u??i(e),m={position:"absolute",height:`${p.h*c}px`,width:`${p.w*c}px`,left:`${p.left*c}px`,top:`${p.top*c}px`},x=p.innerInset?(0,t.jsx)("div",{style:{position:"absolute",inset:p.innerInset},children:(0,t.jsx)("img",{src:g,alt:e,className:"block max-w-none size-full",style:p.rotate?{transform:"rotate(180deg) scaleY(-1)"}:void 0})}):(0,t.jsx)("img",{src:g,alt:e,className:"absolute block max-w-none size-full",style:p.rotate?{transform:"rotate(180deg) scaleY(-1)"}:void 0});return(0,t.jsxs)("div",{className:`group/shape-cut relative shrink-0 ${a??""}`,style:{width:`${r}px`,height:`${r}px`},title:s?f:void 0,children:[(0,t.jsx)("div",{className:"relative size-full overflow-hidden",children:(0,t.jsx)("div",{className:"absolute inset-0 overflow-clip",children:(0,t.jsx)("div",{style:m,children:x})})}),s&&f&&(0,t.jsx)("span",{role:"tooltip",className:`pointer-events-none absolute left-1/2 z-20 -translate-x-1/2 whitespace-nowrap rounded-[2px] bg-[#373634] px-[8px] py-[4px] font-noto-serif-tc text-[10px] leading-[14px] tracking-[1px] text-white opacity-0 transition-opacity duration-150 group-hover/shape-cut:opacity-100 lg:text-[12px] lg:leading-[18px] lg:tracking-[1.2px] ${"top"===o?"bottom-full mb-[6px]":"top-full mt-[6px]"}`,children:f})]})}e.s(["ShapeCutIcon",()=>a,"getShapeCutLabel",()=>i])},18267,e=>{"use strict";var t=e.i(69834),r=e.i(14983),i=e.i(58564);function n({onAddToCart:e,inventoryItemId:n,hideCart:l=!1}){return(0,t.jsxs)("div",{className:"absolute bottom-[10px] left-[10px] right-[10px] flex justify-between lg:bottom-[17px] lg:left-[17px] lg:right-[17px]",children:[l?(0,t.jsx)("span",{"aria-hidden":"true"}):(0,t.jsx)("button",{type:"button",className:"p-[3px] hover:opacity-70 transition-opacity lg:p-[5px]","aria-label":"Add to cart",onClick:e,children:(0,t.jsx)(r.CartIcon,{className:"w-[12px] h-[12px] text-[#cecdcb] lg:w-[20px] lg:h-[20px]"})}),(0,t.jsx)(i.WishlistHeart,{inventoryItemId:n,size:"w-[11px] h-[11px] lg:w-[18px] lg:h-[18px]",className:"p-[4px] lg:p-[6px]"})]})}e.s(["ProductActionIcons",()=>n])},70317,e=>{"use strict";var t=e.i(69834),r=e.i(63373);function i({shapes:e,className:i="absolute top-[8px] right-[8px] lg:top-[12px] lg:right-[12px] z-10"}){if(0===e.length)return null;let n=e.length>6?20:e.length>4?22:25,l=e.length>4?4:6;return(0,t.jsx)("div",{className:`${i} flex flex-nowrap items-start justify-end`,style:{gap:`${l}px`},children:e.map(e=>(0,t.jsx)("button",{type:"button",className:"pointer-events-auto shrink-0 border-0 bg-transparent p-0","aria-label":(0,r.getShapeCutLabel)(e),onClick:e=>{e.preventDefault(),e.stopPropagation()},children:(0,t.jsx)(r.ShapeCutIcon,{shape:e,containerSize:n,showTooltip:!0,className:"shrink-0"})},e))})}e.s(["GemShapeIconsOverlay",()=>i])},17015,e=>{"use strict";var t=e.i(69834);function r(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{src:"/badges/new-mobile.svg",alt:"NEW",width:36,height:18,className:"absolute top-[10px] left-[10px] lg:hidden"}),(0,t.jsx)("img",{src:"/badges/new-desktop.svg",alt:"NEW",width:46,height:22,className:"absolute top-[17px] left-[17px] hidden lg:block"})]})}e.s(["NewBadge",()=>r])},78057,e=>{"use strict";function t(e,r="products"){let i="gem"===e.type?"gems":r,n=e.styleno?encodeURIComponent(e.styleno):String(e.id),l=`/${i}/${n}`;return e.category?`${l}?category=${e.category}`:l}e.s(["getProductHref",()=>t])},40383,e=>{"use strict";var t=e.i(69834),r=e.i(89612);function i({src:e,alt:i,sizes:n}){return(0,t.jsx)("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:(0,t.jsx)(r.SkeletonImage,{src:e,alt:i,fill:!0,className:"object-cover",sizes:n})})}e.s(["HoverImage",()=>i])},58564,e=>{"use strict";var t=e.i(69834),r=e.i(38238),i=e.i(44631);function n({inventoryItemId:e,filled:n,onToggle:l,defaultFilled:a=!1,className:s,size:o="w-[11px] h-[11px] lg:w-[18px] lg:h-[18px]",filledColor:u="text-[#928f8c]",emptyColor:c="text-[#cecdcb]"}){let{isFavorited:p,toggle:g}=(0,i.useFavorite)(e),f=void 0!==n,[m,x]=(0,r.useState)(a),d=e?p:f?n:m,h=async t=>{if(t.preventDefault(),t.stopPropagation(),e)return void await g();let r=!d;f||x(r),l?.(r)};return(0,t.jsx)("button",{type:"button",className:`hover:opacity-70 transition-opacity ${s??""}`,"aria-label":d?"Remove from favorites":"Add to favorites",onClick:h,children:(0,t.jsxs)("svg",{className:`${o} ${d?u:c} transition-colors`,viewBox:"0 0 14.3 14.3",fill:d?"currentColor":"none",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":d?"Filled heart":"Empty heart",children:[(0,t.jsx)("title",{children:d?"Filled heart":"Empty heart"}),(0,t.jsx)("path",{d:"M10.128 0.65C9.51827 0.660169 8.92187 0.842671 8.39899 1.17908C7.87612 1.51548 7.44528 1.99387 7.15 2.56595C6.85471 1.99387 6.42388 1.51548 5.90101 1.17908C5.37813 0.842671 4.78173 0.660169 4.17203 0.65C3.2001 0.695281 2.28439 1.1512 1.62494 1.91814C0.9655 2.68509 0.615936 3.70073 0.652619 4.74316C0.652619 8.67666 6.58473 13.2198 6.83704 13.4125L7.15 13.65L7.46296 13.4125C7.71527 13.2209 13.6474 8.67666 13.6474 4.74316C13.6841 3.70073 13.3345 2.68509 12.6751 1.91814C12.0156 1.1512 11.0999 0.695281 10.
1128 0.65Z",stroke:"currentColor",strokeWidth:"1.3",strokeLinejoin:"round"})]})})}e.s(["WishlistHeart",()=>n])},59195,56556,e=>{"use strict";var t=e.i(61238),r=e.i(44677),i=e.i(20718);e.i(93948);var n=e.i(45008);function l(e,t){if(e.groupByField!==n.CUSTOM_CATEGORY_STOCK_GROUP_FIELD||"stock"!==e.conditionType||0===e.options.length)return!1;let r=new Set(e.options.map(e=>e.id));return t.filter(e=>r.has(e)).length===e.options.length}function a(e,t){let r=t.filter(e=>!b(e));for(let t of e){if(!l(t,r))continue;let e=new Set(t.options.map(e=>e.id));r=r.filter(t=>!e.has(t))}return r}function s(e,t){let r=e.options.map(e=>e.id);return t.filter(e=>r.includes(e))}function o(e,t,r,i){let n=new Set(r.options.map(e=>e.id));return[...t.filter(e=>!n.has(e)),...i]}function u(e,t){if("stock"===e.conditionType)return"notHaveStock"===t.equalValue?{noStock:{filterOperator:"ISTRUE",filterValue:[!0]}}:{haveStock:{filterOperator:"ISTRUE",filterValue:[!0]}};let r=`attributes.${e.groupByField}`;if("equal"===e.conditionType)return{[r]:{filterOperator:"IN",filterValue:[t.equalValue]}};let i=t.rangeMin,n=t.rangeMax;return null!=i&&null!=n?{[r]:{filterOperator:"BETWEEN",filterValue:[i,n]}}:null!=i?{[r]:{filterOperator:"MORETHAN",filterValue:[i]}}:{[r]:{filterOperator:"LESSTHAN",filterValue:[n]}}}function c(...e){let t={};for(let r of e)for(let[e,i]of Object.entries(r)){let r=t[e];if(r&&"IN"===r.filterOperator&&"IN"===i.filterOperator&&Array.isArray(r.filterValue)&&Array.isArray(i.filterValue)){let n=[...new Set([...r.filterValue,...i.filterValue].map(String))];t[e]={filterOperator:"IN",filterValue:n}}else t[e]=i}return JSON.stringify(t)}function p(e,t){let r=[];if(e?.inventoryConfigField&&e.inventoryConfigFieldValue&&r.push({[`attributes.${e.inventoryConfigField}`]:{filterOperator:"IN",filterValue:[e.inventoryConfigFieldValue]}}),t?.source==="item"&&t.elementId&&e?.items){let i=e.items.find(e=>e.id===t.elementId);i?.groupByField&&i.configValue&&r.push({[`attributes.${i.groupByField}`]:{filterOperator:"IN",filterValue:[i.configValue]}})}return 0===r.length?{}:r.reduce((e,t)=>JSON.parse(c(e,t)),{})}function g(e,t){let r=a(e,t),i={};for(let r of e)if("range"===r.conditionType){let e=y(r.id,t);e&&(i[`attributes.${r.groupByField}`]={filterOperator:"BETWEEN",filterValue:[e.min,e.max]})}if(0===r.length&&Object.keys(i).length>0||!r.length)return i;let n=new Set(r);for(let r of e){let e=r.options.filter(e=>n.has(e.id));if(0===e.length)continue;if("equal"===r.conditionType){let t=e.map(e=>e.equalValue).filter(e=>null!=e&&""!==e);if(0===t.length)continue;let n=`attributes.${r.groupByField}`,l=i[n];l?.filterOperator==="IN"&&Array.isArray(l.filterValue)?i[n]={filterOperator:"IN",filterValue:[...new Set([...l.filterValue.map(String),...t])]}:i[n]={filterOperator:"IN",filterValue:t};continue}if("range"===r.conditionType){if(y(r.id,t)||0===e.length)continue;Object.assign(i,function(e,t){let r=`attributes.${e.groupByField}`,i=null,n=null;for(let e of t)null!=e.rangeMin&&(i=null===i?e.rangeMin:Math.min(i,e.rangeMin)),null!=e.rangeMax&&(n=null===n?e.rangeMax:Math.max(n,e.rangeMax));return null!=i&&null!=n?{[r]:{filterOperator:"BETWEEN",filterValue:[i,n]}}:null!=i?{[r]:{filterOperator:"MORETHAN",filterValue:[i]}}:null!=n?{[r]:{filterOperator:"LESSTHAN",filterValue:[n]}}:1===t.length?u(e,t[0]):{}}(r,e));continue}if("stock"===r.conditionType){if(l(r,t))continue;let n=e[e.length-1];if(!n)continue;Object.assign(i,u(r,n));continue}let a=e[0];a&&Object.assign(i,u(r,a))}return i}function f(e){let t=[...e].sort((e,t)=>e.displayOrder-t.displayOrder),r=t.length;if(0===r)return[];let i=[];for(let e=0;e<=r;e++)if(0===e){let e=t[0];null==e.rangeMin&&null!=e.rangeMax?i.push(`<${e.rangeMax+1}`):null!=e.rangeMin?i.push(String(e.rangeMin)):i.push(e.label)}else if(e===r){let e=t[r-1];null==e.rangeMax&&null!=e.rangeMin?i.push(`>${Math.max(0,e.rangeMin-1)}`):null!=e.rangeMax?i.push(String(e.rangeMax)):i.push(e.label)}else{let n=t[e-1],l=t[e];if(null!=l.rangeMin){let t=null!=n.rangeMax&&l.rangeMin===n.rangeMax+1&&e===r-1&&r>2&&null!=n.rangeMax?n.rangeMax:l.rangeMin;i.push(String(t))}else null!=n.rangeMax?i.push(String(n.rangeMax)):i.push(l.label)}return i}function m(e){return[...e].sort((e,t)=>
1e.displayOrder-t.displayOrder)}function x(e){let t=e.trim();if(!t)return null;let r=Number(t);return Number.isFinite(r)?r:null}function d(e){return[...e].sort((e,t)=>{let r=e.label??"",i=t.label??"",n=x(r),l=x(i);if(null!=n&&null!=l){if(n!==l)return n-l;let a=r.localeCompare(i,"en",{sensitivity:"base",numeric:!0});return 0!==a?a:e.id.localeCompare(t.id,"en",{sensitivity:"base"})}if(null!=n&&null==l)return -1;if(null==n&&null!=l)return 1;let a=r.localeCompare(i,"en",{sensitivity:"base",numeric:!0});return 0!==a?a:e.id.localeCompare(t.id,"en",{sensitivity:"base"})})}function h(e,t,r){return`rg~${e}~${t}~${r}`}function v(e){if(!e.startsWith("rg~"))return null;let t=e.slice(3).split("~");if(t.length<3)return null;let r=Number(t[t.length-1]),i=Number(t[t.length-2]),n=t.slice(0,-2).join("~");return!n||Number.isNaN(i)||Number.isNaN(r)?null:{groupId:n,min:i,max:r}}function b(e){return e.startsWith("rg~")}function y(e,t){for(let r of t){let t=v(r);if(t?.groupId===e)return{min:t.min,max:t.max}}return null}function N(e){var t,r;let i;if(0===e.length)return null;let n=1/0,l=-1/0;for(let t of e)null!=t.rangeMin&&(n=Math.min(n,t.rangeMin)),null!=t.rangeMax&&(l=Math.max(l,t.rangeMax));if(!Number.isFinite(n)&&!Number.isFinite(l)||(Number.isFinite(n)||(n=0),Number.isFinite(l)||(l=n),l<=n))return null;let a=l-n;return{min:n,max:l,step:a<=100?1:a<=1e3?10:a<=1e4?100:500,marks:(i=Math.round(((t=n)+(r=l))/2),{[t]:String(t),[i]:String(i),[r]:String(r)})}}function w(e){let t=N(e);if(!t||t.max<=t.min)return!1;if(1===e.length){let t=e[0];return null!=t.rangeMin&&null!=t.rangeMax}return!e.some(e=>null==e.rangeMin||null==e.rangeMax)&&!!(e.some(e=>null!=e.rangeMin&&null!=e.rangeMax&&e.rangeMin<=t.min&&e.rangeMax>=t.max)||e.length>=2&&e.every(e=>null!=e.rangeMin))}function S(e,t){let r=t.length;if(0===r)return[0,0];if(0===e.length)return[0,r];let i=e.map(e=>t.findIndex(t=>t.id===e)).filter(e=>e>=0);return 0===i.length?[0,r]:[Math.min(...i),Math.max(...i)+1]}function M(e,t,r){let i=r.length;return 0===e&&t===i?[]:r.filter((r,i)=>e<=i&&i<t).map(e=>e.id)}e.s(["buildAttributeSelectionsFilter",()=>g,"buildCustomCategoryPlpBaseFilter",()=>p,"buildRangeSliderLabels",()=>f,"effectiveAttributeOptionIds",()=>a,"encodeNumericRangeSelection",()=>h,"getAttributeGroupCheckboxSelected",()=>s,"getAttributeRangeNumericBounds",()=>N,"getNumericRangeSelectionForGroup",()=>y,"isNumericRangeAttrToken",()=>b,"mergeAttributeGroupCheckboxSelection",()=>o,"mergeInventoryFilterJson",()=>c,"parseNumericRangeSelection",()=>v,"rangeOptionsToSlider",()=>S,"shouldUseNumericRangeSlider",()=>w,"sliderToRangeOptionIds",()=>M,"sortAttributeFilterOptionsNatural",()=>d,"sortRangeOptions",()=>m],56556);var P=e.i(60711);let I=new Set(["gem"]);function j(e,t,r){if(0===r.length)return;let i=e.filter?JSON.parse(String(e.filter)):{};i[`attributes.${t}`]={filterOperator:"IN",filterValue:r},e.filter=JSON.stringify(i)}function C(e,t){if(!t||0===Object.keys(t).length)return;let r=e.filter?JSON.parse(String(e.filter)):{};e.filter=c(r,t)}function O(e,t,n){var l;let a,s={limit:r.INVENTORY_PAGE_SIZE,page:0};if(!t)return C(s,n?.extraFilter),s;let o=t.search?.trim();return o&&(s.search=o),Object.assign(s,function(e){let t,r;if(0===e.length)return{};for(let n of e)n===i.PRICE_ZONES[0]?(t=void 0===t?0:Math.min(t,0),r=void 0===r?2999:Math.max(r,2999)):n===i.PRICE_ZONES[1]?(t=void 0===t?3e3:Math.min(t,3e3),r=void 0===r?8e3:Math.max(r,8e3)):n===i.PRICE_ZONES[2]&&(t=void 0===t?8001:Math.min(t,8001),r=void 0);return{...void 0!==t?{minPrice:t}:{},...void 0!==r?{maxPrice:r}:{}}}(t.price)),t.filterIds&&t.filterIds.length>0&&(s.productIds=t.filterIds.join(",")),t.jewelry.length>0&&j(s,"Category",t.jewelry.map(e=>e.toUpperCase())),t.gemstones.length>0&&j(s,I.has(e)?"Stone":"MainStone",t.gemstones),t.shapes.length>0&&j(s,"StoneShape",t.shapes.map(e=>e.charAt(0).toUpperCase()+e.slice(1))),t.categories.includes("sale")&&(l=[0],(a=s.filter?JSON.parse(String(s.filter)):{})["attributes.Discount"]={filterOperator:"MORETHAN",filterValue:l},s.filter=JSON.stringify(a)),C(s,n?.extraFilter),s}function k(e,t,i,n){return(0,r.inventoryListQuery)(e,{...O(e,i,n),page:t,limit:r.INVENTORY_PAGE_SIZE})}async function F(e,i){let n=(0,r.inventoryListQuery)(e,{...O(e,i),page:0,limit:r.INVENTORY_PAGE_SIZE}),l=await (0,t.getInventoryPage)(n),a=(I.has(e)?P.groupsToFlatGemPlpItems:P.groupsToPLPItems)(l.data);return{items:a,totalCount:I.has(e)?a.length:l.totalCount??l.data.length}}async function E(e,i,n){let l=O(e,i,n),a=[],s=0,o=0,u=!0;for(;u;){let i=(0,r.inventoryListQuery)(e,{...l,page:s,limit:r.INVENTORY_PAGE_SIZE}),n=await (0,t.getInventoryPage)(i);a.push(...n.data),o=n.totalCount??a.length,u=n.haveNextCursor??!1,s+=1}let c=(I.has(e)?P.groupsToFlatGemPlpItems:P.groupsToPLPItems)(a);return{items:c,totalCount:I.has(e)?c.length:o,rawGroups:a}}e.s(["buildInventoryQueryParams",()=>O,"fetchAllInventoryPages",()=>E,"fetchInventoryFirstPage",()=>F,"inventoryPagePath",()=>k],59195)},78543,e=>{"use strict";var t=e.i(69834),r=e.i(44705);function i({href:e,label:i="View All",size:n="large"}){let l=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:`font-italiana text-[#807d7a] group-hover:text-[#807d7a] group-active:text-[#bebcba] capitalize leading-normal max-lg:[-webkit-text-stroke:0.2px_#807d7a] lg:[-webkit-text-stroke:0.3px_#807d7a] ${{large:"text-[10px] tracking-[1px] lg:text-[16
1px] lg:tracking-[3.2px]",small:"text-[10px] tracking-[1px]"}[n]}`,children:i}),(0,t.jsx)("div",{className:"w-full h-px bg-[#807d7a] group-hover:bg-[#807d7a] group-active:bg-[#bebcba] transition-colors"})]});return e?(0,t.jsx)(r.Link,{href:e,className:"flex flex-col items-center gap-[2px] p-0 lg:p-[10px] group transition-colors",children:l}):(0,t.jsx)("button",{type:"button",className:"flex flex-col items-center gap-[2px] p-0 lg:p-[10px] group transition-colors",children:l})}e.s(["ViewAllLink",()=>i])}]);
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.