PageSourceSearch

https://earthstardiamonds.com/_next/static/chunks/11233.2d1849bcadb04c69.js

js earthstardiamonds.com collected 2026-10-05 07:14:36 UTC 10,221 bytes, 1 lines download raw bytes

1!function(){try{var 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]="a3ba4763-152f-4408-adc4-9f35e7abfc71",e._sentryDebugIdIdentifier="sentry-dbid-a3ba4763-152f-4408-adc4-9f35e7abfc71")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11233],{6654:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return r}});let a=t(12115);function r(e,n){let t=(0,a.useRef)(null),r=(0,a.useRef)(null);return(0,a.useCallback)(a=>{if(null===a){let e=t.current;e&&(t.current=null,e());let n=r.current;n&&(r.current=null,n())}else e&&(t.current=i(e,a)),n&&(r.current=i(n,a))},[e,n])}function i(e,n){if("function"!=typeof e)return e.current=n,()=>{e.current=null};{let t=e(n);return"function"==typeof t?t:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)},6874:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return b}});let a=t(88229),r=t(95155),i=a._(t(12115)),o=t(82757),d=t(95227),l=t(69818),s=t(6654),_=t(69991),c=t(85929);t(43230);let m=t(24930);function u(e){return"string"==typeof e?e:(0,o.formatUrl)(e)}let b=i.default.forwardRef(function(e,n){let t,a,{href:o,as:b,children:f,prefetch:p=null,passHref:h,replace:v,shallow:g,scroll:x,onClick:y,onMouseEnter:j,onTouchStart:k,legacyBehavior:w=!1,...N}=e;t=f,w&&("string"==typeof t||"number"==typeof t)&&(t=(0,r.jsx)("a",{children:t}));let C=i.default.useContext(d.AppRouterContext),E=!1!==p,M=null===p?l.PrefetchKind.AUTO:l.PrefetchKind.FULL,{href:T,as:I}=i.default.useMemo(()=>{let e=u(o);return{href:e,as:b?u(b):e}},[o,b]);w&&(a=i.default.Children.only(t));let P=w?a&&"object"==typeof a&&a.ref:n,L=i.default.useCallback(e=>(E&&null!==C&&(0,m.mountLinkInstance)(e,T,C,M),()=>{(0,m.unmountLinkInstance)(e)}),[E,T,C,M]),O={ref:(0,s.useMergedRef)(L,P),onClick(e){w||"function"!=typeof y||y(e),w&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(e),C&&(e.defaultPrevented||function(e,n,t,a,r,o,d){let{nodeName:l}=e.currentTarget;!("A"===l.toUpperCase()&&function(e){let n=e.currentTarget.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e))&&(e.preventDefault(),i.default.startTransition(()=>{let e=null==d||d;"beforePopState"in n?n[r?"replace":"push"](t,a,{shallow:o,scroll:e}):n[r?"replace":"push"](a||t,{scroll:e})}))}(e,C,T,I,v,g,x))},onMouseEnter(e){w||"function"!=typeof j||j(e),w&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),C&&E&&(0,m.onNavigationIntent)(e.currentTarget)},onTouchStart:function(e){w||"function"!=typeof k||k(e),w&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),C&&E&&(0,m.onNavigationIntent)(e.currentTarget)}};return(0,_.isAbsoluteUrl)(I)?O.href=I:w&&!h&&("a"!==a.type||"href"in a.props)||(O.href=(0,c.addBasePath)(I)),w?i.default.cloneElement(a,O):(0,r.jsx)("a",{...N,...O,children:t})});("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)},11233:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var a=t(95155),r=t(12115),i=t(6874),o=t.n(i),d=t(92679),l=t.n(d);let s=e=>{let{tag:n,title:t,diamonds:i=[],baseUrl:d="/diamond"}=e,[s,_]=(0,r.useState)(0),[c,m]=(0,r.useState)(!1),[u,b]=(0,r.useState)(!1),f=i.length>0?[...i,...i,...i]:[],p=i.length;(0,r.useEffect)(()=>{let e=()=>{b(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,r.useEffect)(()=>{i.length>0&&_(p)},[i.length,p]);let h=(0,r.useCallback)(e=>{0===i.length||c||(m(!0),_(n=>{if("next"===e){let e=n+1;return e>=f.length-i.length&&setTimeout(()=>{_(p),m(!1)},300),e}{let e=n-1;return e<0&&setTimeout(()=>{_(p+i.length-1),m(!1)},300),e}}),setTimeout(()=>m(!1),300))},[i.length,f.length,p,c]);(0,r.useEffect)(()=>
1{if(0===i.length)return;let e=setInterval(()=>h("next"),5e3);return()=>clearInterval(e)},[h,i.length]);let v=e=>e.toLowerCase().replace(/\s+/g,"-"),g=e=>{console.log("Image failed to load:",e.currentTarget.src)};if(!i||0===i.length)return null;let x=(()=>{if(u){let e=s%i.length;return[{diamond:i[e],index:s}]}{let e=[];for(let n=0;n<5;n++){let t=(s+n-2+f.length)%f.length;e.push({diamond:f[t],index:n,isCenter:2===n})}return e}})();return(0,a.jsx)("section",{className:"".concat(l()["diamond-banner"]," py-4 py-md-5"),children:(0,a.jsxs)("div",{className:"container-fluid",children:[(0,a.jsxs)("div",{className:"text-center",children:[n&&(0,a.jsx)("span",{className:"d-block text-uppercase text-muted small fw-medium mb-2 letter-spacing",children:n}),(0,a.jsx)("h2",{className:"display-6 fw-bold mb-0 text-capitalize",children:t})]}),(0,a.jsxs)("div",{className:l()["diamond-banner__carousel"],children:[(0,a.jsxs)("div",{className:"d-none d-md-block",children:[(0,a.jsx)("div",{className:"".concat(l()["diamond-banner__track"]," justify-content-between px-5"),children:x.map(e=>{let{diamond:n,index:t,isCenter:r}=e;return(0,a.jsxs)(o(),{className:"".concat(l()["diamond-banner__item"]," ").concat(r?l()["diamond-banner__item--center"]:l()["diamond-banner__item--side"]),href:"/engagement-ring/diamond?flow=diamond-first&diamondShape=".concat(v(n.name)),children:[(0,a.jsx)("div",{className:l()["diamond-banner__image-wrapper"],children:(0,a.jsx)("img",{src:n.icon||n.image,alt:n.name+" Diamond",onError:g,className:l()["diamond-banner__image"]})}),r&&(0,a.jsx)("div",{className:"".concat(l()["diamond-banner__name"]," text-primary"),children:n.name})]},"".concat(n.id,"-").concat(t))})}),(0,a.jsx)("button",{onClick:()=>h("prev"),className:"".concat(l()["diamond-banner__nav"]," ").concat(l()["diamond-banner__nav--prev"]," text-primary border-primary"),type:"button",disabled:c,children:(0,a.jsx)("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none",strokeWidth:"2",children:(0,a.jsx)("polyline",{points:"15,18 9,12 15,6"})})}),(0,a.jsx)("button",{onClick:()=>h("next"),className:"".concat(l()["diamond-banner__nav"]," ").concat(l()["diamond-banner__nav--next"]," text-primary"),type:"button",disabled:c,children:(0,a.jsx)("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,a.jsx)("polyline",{points:"9,18 15,12 9,6"})})})]}),(0,a.jsx)("div",{className:"d-md-none",children:(0,a.jsxs)("div",{className:l()["diamond-banner__mobile"],children:[(0,a.jsx)("div",{className:l()["diamond-banner__mobile-track"],children:x.map(e=>{let{diamond:n,index:t}=e;return(0,a.jsxs)(o(),{className:l()["diamond-banner__mobile-item"],href:"/engagement-ring/diamond?flow=diamond-first&diamondShape=".concat(v(n.name)),children:[(0,a.jsx)("div",{className:l()["diamond-banner__image-wrapper"],children:(0,a.jsx)("img",{src:n.image,alt:n.name+" Diamond",onError:g,className:l()["diamond-banner__image"]})}),(0,a.jsx)("div",{className:l()["diamond-banner__name"],children:n.name})]},"mobile-".concat(n.id,"-").concat(t))})}),(0,a.jsx)("div",{className:l()["diamond-banner__mobile-nav"],children:(0,a.jsxs)("div",{className:"d-flex justify-content-center align-items-center gap-4",children:[(0,a.jsx)("button",{onClick:()=>h("prev"),className:"".concat(l()["diamond-banner__mobile-btn"]," text-primary border-primary"),type:"button",disabled:c,children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,a.jsx)("polyline",{points:"15,18 9,12 15,6"})})}),(0,a.jsx)("div",{className:l()["diamond-banner__dots"],children:i.map((e,n)=>(0,a.jsx)("button",{onClick:()=>_(n),className:"".concat(l()["diamond-banner__dot"]," ").concat(s%i.length===n?l()["diamond-banner__dot--active"]:""),type:"button"},n))}),(0,a.jsx)("button",{onClick:()=>h("next"),className:"".concat(l()["diamond-banner__mobile-btn"]," text-primary border-primary"),type:"button",disabled:c,children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,a.jsx)("polyline",{points:"9,18 15,12 9,6"})})})]})})]})})]})]})})}},92679:e=>{e.exports={"diamond-banner":"variant1_diamond-banner__ZIxlF","diamond-banner__title":"variant1_diamond-banner__title__e093L","diamond-banner__carousel":"variant1_diamond-banner__carousel__j1MZo","diamond-banner__nav":"variant1_diamond-banner__nav__XsNxJ","diamond-banner__nav--prev":"variant1_diamond-banner__nav--prev__VXekL","diamond-banner__nav--next":"variant1_diamond-banner__nav--next__716jD","diamond-banner__track":"variant1_diamond-banner__track__Xqgur","diamond-banner__item":"variant1_diamond-banner__item__6zrA7","diamond-banner__item--side":"variant1_diamond-banner__item--side__4A5ud","diamond-banner__image-wrapper":"variant1_diamond-banner__image-wrapper__EnB3a","diamond-banner__item--center":"variant1_diamond-banner__item--center__naYch","diamond-banner__name":"variant1_diamond-banner__name__PpuwW","diamond-banner__image":"variant1_diamond-banner__image__aNxb2","diamond-banner__mobile":"variant1_diamond-banner__mobile__grQxI","diamond-banner__mobile-track":"variant1_diamond-banner__mobile-track__wshLr","diamond-banner__mobile-item":"variant1_diamond-banner__mobile-item__Ck7Mv","diamond-banner__mobile-nav":"variant1_diamond-banner__mobile-nav__itOoH","diamond-banner__mobile-btn":"variant1_diamond-banner__mobile-btn__oayL4","diamond-banner__dots":"variant1_diamond-banner__dots__nYRuB","diamond-banner__dot":"variant1_diamond-banner__dot__UDz9i","diamond-banner__dot--active":"variant1_diamond-banner__dot--active__bjwPH","text-muted":"variant1_text-muted__u_h7G","letter-spacing":"variant1_letter-spacing__hM1cJ","text-secondary":"variant1_text-secondary__ekbvr","transition-smooth":"variant1_transition-smooth__Yoqiy"}}}]);

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.