1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`e3125a25-a07c-4761-9c28-3af8e26fa96a`,e._sentryDebugIdIdentifier=`sentry-dbid-e3125a25-a07c-4761-9c28-3af8e26fa96a`)}catch{}})();import{i as e}from"./rolldown-runtime.C6BX6AHi.js";import{t}from"./classnames.RVaFhf_q.js";import{o as n}from"./preact.module.C0ijxDOA.js";import{c as r,t as i}from"./hooks.module.CaOdBGXq.js";import"./compat.module.De_-FmKJ.js";import{t as a}from"./jsxRuntime.module.Blc-LLU3.js";import"./locales.ZdF8BHbX.js";import{t as o}from"./Selected.CI9GxuRS.js";import{t as s}from"./SpriteIcon.ClzR9NVE.js";import{t as c}from"./swiper-element-bundle.CKACWaRa.js";import{n as l,t as u}from"./useModal.CFh4pk5V.js";import{n as d,r as f,t as p}from"./signals.module.DXpASOxX.js";import{a as m}from"./geo.DVEkc9mH.js";import{d as h}from"./currency.tYQq8oEZ.js";import{D as g,G as _,H as v,W as y,w as b}from"./couponManager.sYBF2LH4.js";import{a as x,d as S,h as C,i as w,l as T,m as E,p as D,r as O,s as k,t as A}from"./selection.CYKP3w1X.js";import{t as j}from"./productGallery.CDj8f0VS.js";var M=({skeletonsAmount:e=1})=>a(`div`,{className:`skeleton__wrapper`,children:Array(e).fill(null).map((e,t)=>a(`div`,{className:`skeleton__item`},t))}),N={slidesPerView:`auto`,cssMode:!0,passiveListeners:!0,threshold:5,touchAngle:30,touchStartPreventDefault:!1,breakpoints:{768:{cssMode:!1}},centeredSlides:!1,speed:800,watchSlidesProgress:!0,direction:`horizontal`,mousewheel:{forceToAxis:!0,releaseOnEdges:!1},freeMode:{enabled:!0,sticky:!1}};function P({items:e,isLoading:t,getActiveIndex:n,renderItem:o,getItemKey:l,header:u,showControls:d=!0,skeletonsAmount:p=1}){let m=i(null),h=i(null);return r(()=>{var e,t;c();let n={...N,navigation:d?{nextEl:(e=h.current)==null?void 0:e.querySelector(`.carousel-select__controls-right`),prevEl:(t=h.current)==null?void 0:t.querySelector(`.carousel-select__controls-left`)}:!1};Object.assign(m.current,n),m.current.initialize()},[d]),f(()=>{var t;e.value,(t=m.current)==null||t.swiper.update()}),f(()=>{if(t.value||!n)return;let e=n();e>0&&m.current.swiper.slideTo(e-1)}),a(`div`,{ref:h,className:`carousel-select`,children:[u,a(`swiper-container`,{init:`false`,className:`carousel-select__wrapper`,ref:m,children:[t.value?a(M,{skeletonsAmount:p}):null,e.value.map(e=>a(`swiper-slide`,{className:`carousel-select__item`,children:o(e)},l(e)))]}),d&&a(`div`,{className:`carousel-select__controls`,children:[a(`button`,{className:`carousel-select__controls-left`,type:`button`,children:a(s,{width:16,height:16,src:`arrow-right`})}),a(`button`,{className:`carousel-select__controls-right`,type:`button`,children:a(s,{width:16,height:16,src:`arrow-right`})})]})]})}var F={item:`_item_jgj0m_1`,input:`_input_jgj0m_10`,label:`_label_jgj0m_14`},I=({id:e,name:t,value:n,checked:r,ariaLabel:i,onClick:o,children:s})=>a(`div`,{className:F.item,"data-checked":r,children:[a(`input`,{className:F.input,type:`radio`,name:t,value:n,"aria-label":i,onClick:o,id:e,checked:r}),a(`label`,{htmlFor:e,className:F.label,children:s})]}),L=e(t(),1),R={special_offer:`_special_offer_hnw38_1`,discount:`_discount_hnw38_12`,hit:`_hit_hnw38_17`},z=({product:e,translates:t})=>{var n,r;let i=!m.value&&!!((n=e.metadata)!=null&&n[`price-before-discount`]),o=!!((r=e.metadata)!=null&&r.hit);return i?a(`div`,{className:(0,L.default)(R.special_offer,R.discount),children:t.sale}):o?a(`div`,{className:(0,L.default)(R.special_offer,R.hit),children:t.hit}):null},B=({product:e,images:t,translates:n})=>{let r=j(t,e).preview,i=()=>{A.value=e},o=p(()=>{var t;return((t=A.value)==null?void 0:t.id)===e.id});return f(y),a(I,{id:e.id,name:`card-design`,value:e.id,checked:o.value,ariaLabel:`${e.title} card design`,onClick:i,children:[a(`img`,{src:r==null?void 0:r.src,height:44,width:78,alt:`${e.title} card design`,loading:`lazy`,decoding:`async`}),a(z,{product:e,translates:n})]})},V={label:`_label_1xp14_1`,name:`_name_1xp14_10`},H=({labelText:e,cardDesignName:t})=>a(`span`,{className:V.label,children:[a(`span`,{children:e}),a(`span`,{"data-testid":`collection-name`,className:V.name,children:t})]}),U=({labelText:e,images:t,translates:n})=>a(P,{items:b,isLoading:p(()=>b.value.length===0),getActiveIndex:()=>b.value.findIndex(e=>{var t;return e.id===((t=A.value)==null?void 0:t.id)}),getItemKey:e=>e.id,header:a(H,{labelText:e,cardDesignName:p(()=>{var e;
1return((e=A.value)==null?void 0:e.subtitle)??``})}),renderItem:e=>a(B,{images:t,product:e,translates:n})}),W=({product:e,images:t,translates:n})=>{let r=j(t,e).preview,i=()=>{x.value=e},o=p(()=>{var t;return((t=x.value)==null?void 0:t.id)===e.id});return f(y),a(I,{id:`bundle-${e.id}`,name:`card-design-bundle`,value:e.id,checked:o.value,ariaLabel:`${e.title} card design bundle`,onClick:i,children:[a(`img`,{src:r==null?void 0:r.src,height:44,width:78,alt:`${e.title} card design`,loading:`lazy`,decoding:`async`}),a(z,{product:e,translates:n})]})},G=({labelText:e,images:t,translates:n})=>{let r=g;return a(P,{items:r,isLoading:p(()=>!v.value),getActiveIndex:()=>r.value.findIndex(e=>{var t;return(e==null?void 0:e.id)===((t=x.value)==null?void 0:t.id)}),getItemKey:e=>`bundle-${e.id}`,showControls:!1,header:a(H,{labelText:e,cardDesignName:p(()=>{var e;return((e=x.value)==null?void 0:e.subtitle)??``})}),renderItem:e=>a(W,{images:t,product:e,translates:n})})},K={PrivacyPolicy:`privacy-policy`,TermsOfService:`terms-of-service`,RefundPolicy:`refund-policy`,ShipmentPolicy:`shipment-policy`,GPSR:`gpsr`,DeliveryCost:`delivery-cost`,RingSizeChart:`ring-size-chart`};`${K.PrivacyPolicy}`,`${K.TermsOfService}`,`${K.GPSR}`;var q={"choose-size-button":`_choose-size-button_oodcr_1`,"choose-size-button__icon":`_choose-size-button__icon_oodcr_13`,"choose-size-button__text":`_choose-size-button__text_oodcr_22`,popup__container:`_popup__container_oodcr_30`,"popup__close-button":`_popup__close-button_oodcr_52`,"popup__close-icon":`_popup__close-icon_oodcr_71`,"choose-size__heading":`_choose-size__heading_oodcr_92`,"choose-size__text":`_choose-size__text_oodcr_107`,"choose-size__text_description":`_choose-size__text_description_oodcr_115`,"choose-size__text_bold":`_choose-size__text_bold_oodcr_118`,"choose-size__list":`_choose-size__list_oodcr_122`,"choose-size__video":`_choose-size__video_oodcr_127`,"choose-size__video-heading":`_choose-size__video-heading_oodcr_133`,"download-guide__container":`_download-guide__container_oodcr_138`,"download-guide__title":`_download-guide__title_oodcr_154`,"download-guide__button":`_download-guide__button_oodcr_164`},J=[`watch`,`use`,`measure`],Y=`https://www.youtube.com/embed/I435qZr0rtM?si=09M24CTUU5CKBfdE`,X=q[`choose-size__text`],Z=({sizeGuideTranslates:e})=>{let{isShowing:t,hide:n,show:r}=u(`choose-size`,``),i=()=>{r()},s=()=>{(()=>{var e;let t=(e=document)==null?void 0:e.querySelector(`#choose-size-video`);t&&(t.src=Y)})(),n()};return a(`div`,{children:[a(`button`,{type:`button`,className:q[`choose-size-button`],onClick:i,children:[a(`span`,{className:q[`choose-size-button__text`],children:e.button}),a(`span`,{className:q[`choose-size-button__icon`]})]}),a(l,{isShowing:t,hide:s,isCentered:!0,children:a(`div`,{className:q.popup__container,children:[a(`button`,{className:q[`popup__close-button`],onClick:s,"aria-label":`Close modal`,children:a(`div`,{className:q[`popup__close-icon`]})}),a(`h3`,{className:q[`choose-size__heading`],children:e.title}),a(`div`,{className:X,children:[a(`p`,{className:q[`choose-size__text_description`],children:e.description}),a(`p`,{children:e.ways.title})]}),a(`ol`,{className:(0,L.default)(X,q[`choose-size__list`]),children:J.map(t=>a(`li`,{children:a(o,{text:e.ways.list[t],selectedClass:q[`choose-size__text_bold`]})},t))}),a(`div`,{children:[a(`span`,{className:(0,L.default)(q[`choose-size__video-heading`],X),children:e[`video-guide`]}),a(`iframe`,{className:q[`choose-size__video`],src:Y,title:`YouTube video player`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,referrerPolicy:`strict-origin-when-cross-origin`,allowFullScreen:!0,id:`choose-size-video`})]}),a(`div`,{className:q[`download-guide__container`],children:[a(`span`,{className:q[`download-guide__title`],children:e[`sizing-guide`]}),a(`a`,{href:`https://tangem.com/docs/en/${K.RingSizeChart}.pdf`,className:q[`download-guide__button`],target:`_blank`,rel:`noopener`,children:e[`download-guide`]})]})]})})]})},Q={"select-header":`_select-header_1qxp7_1`,sizeCard:`_sizeCard_1qxp7_7`,sizeUs:`_sizeUs_1qxp7_19`,sizeMm:`_sizeMm_1qxp7_28`,thumbnailItem:`_thumbnailItem_1qxp7_45`,label:`_label_1qxp7_53`,label__us:`_label__us_1qxp7_56`,label__mm:`_label__mm_1qxp7_59`,addSizeButton:`_addSizeButton_1qxp7_63`,addSizeButtonHint:`_addSizeButtonHint_1qxp7_82`,secondSlotTitle:`_secondSlotTitle_1qxp7_90`,secondSlotContainer:`_secondSlotContainer_1qxp7_97`,removeButton:`_removeButton_1qxp7_106`},$=({index:e,ringTranslates:t,sizeGuideTranslates:r})=>{var i;let o=p(()=>b.value.length===0),s=p(()=>h(_.value.ring)),c=p(()=>Object.values(s.value).map(e=>e.type)),l=p(()=>c.value.length>1),u=p(()=>D.value[e]??null),m=d(((i=u.peek())==null||(i=i.metadata)==null?void 0:i.material)??`ceramic`),g=p(()=>{var e;return((e=s.value[m.value])==null?void 0:e.items)??[]}),v=p(()=>{let e=u.value;return e?a(`span`,{className:Q.label,children:[a(`span`,{className:Q.label__us,children:[e.metadata[`size-us`],` US `]}
1),a(`span`,{className:Q.label__mm,children:[`\xA0⢠`,e.metadata[`size-mm`],` mm`]})]}):null}),y=t=>{var n;m.value=t;let r=(n=s.value[t])==null?void 0:n.items[0];r&&C(e,r)},x=t=>{C(e,t)};return f(()=>{var t;let n=D.value[e];n&&(m.value=(t=n.metadata)==null?void 0:t.material)}),f(()=>{let e=c.value;e.length>0&&!e.includes(m.value)&&(m.value=e[0])}),a(n,{children:[l.value&&a(P,{items:c,isLoading:o,getItemKey:e=>e,getActiveIndex:()=>c.value.indexOf(m.value),showControls:!1,header:a(H,{labelText:t[`material-label`],cardDesignName:t.material[m.value]}),renderItem:t=>{var n;return a(I,{id:`bundle-${t}-${e}`,name:`carousel-select-bundle-${e}`,value:t,checked:t===m.value,ariaLabel:`Ring material option`,onClick:()=>y(t),children:a(`img`,{src:(n=s.value[t])==null?void 0:n.img,height:44,width:78,alt:`${t} ring`})})}}),a(`div`,{children:[a(`div`,{className:Q[`select-header`],children:[a(H,{labelText:t[`choose-size`],cardDesignName:v}),a(Z,{sizeGuideTranslates:r})]}),a(P,{items:g,isLoading:o,getItemKey:e=>e.variants[0].sku,getActiveIndex:()=>g.value.findIndex(e=>{var t;return e.variants[0].sku===((t=u.value)==null?void 0:t.variants[0].sku)}),showControls:!1,renderItem:t=>{var n;return a(I,{id:`ring-size-${e}-${t.variants[0].sku}`,name:`ring-size-${e}`,value:t.variants[0].sku,checked:t.variants[0].sku===((n=u.value)==null?void 0:n.variants[0].sku),ariaLabel:`Ring size ${t.metadata[`size-us`]} US`,onClick:()=>x(t),children:a(`div`,{className:Q.sizeCard,children:[a(`div`,{className:Q.sizeUs,children:[t.metadata[`size-us`],` US`]}),a(`div`,{className:Q.sizeMm,children:[t.metadata[`size-mm`],` mm`]})]})})}})]})]})},ee=({ringTranslates:e,sizeGuideTranslates:t})=>a(n,{children:[a($,{index:0,ringTranslates:e,sizeGuideTranslates:t}),D.value.length===2&&a(`div`,{className:Q.secondSlot,children:[a(`p`,{className:Q.secondSlotTitle,children:e[`second-set-config`]}),a(`div`,{className:Q.secondSlotContainer,children:[a(`button`,{type:`button`,className:Q.removeButton,"aria-label":`Remove second set`,onClick:()=>S(1),"data-amp-button":`Order Form | Remove Ring Size`,children:a(s,{src:`cross`,width:16,height:16})}),a($,{index:1,ringTranslates:e,sizeGuideTranslates:t})]})]}),w.value&&D.value.length>0&&a(`div`,{children:[a(`button`,{type:`button`,className:Q.addSizeButton,onClick:()=>{var e,t;let n=D.value[0];if(!n)return;let r=((t=h(_.value.ring)[(e=n.metadata)==null?void 0:e.material])==null?void 0:t.items)??[],i=r.find(e=>e.variants[0].sku!==n.variants[0].sku)??r[0]??_.value.ring[0];i&&O(i)},"data-amp-button":`Order Form | Add Ring Size`,children:e[`add-size`]}),a(`p`,{className:Q.addSizeButtonHint,children:e[`add-size-hint`]})]})]}),te=({cardsImages:e,cardsLabelText:t,ringTranslates:n,sizeGuideTranslates:r,discountsTranslates:i})=>E.value===`boxes`?null:T.value?a(ee,{ringTranslates:n,sizeGuideTranslates:r}):k.value?a(`div`,{children:[a(G,{images:e,labelText:t,translates:i}),a(U,{images:e,labelText:t,translates:i})]}):a(U,{images:e,labelText:t,translates:i});export{te as CardOrRing};
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.