yt-uikit 0.10.67-widget-v2.0 → 0.10.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -3132,7 +3132,7 @@ import e,{useState as t,useEffect as n,useMemo as r,useRef as o,useCallback as a
3132
3132
  font-size: 1em;
3133
3133
  justify-content: center;
3134
3134
  align-items: center;
3135
- `;const Kc=({options:t,selectedValue:n,onChange:r,type:o="text",isOptionAvailable:a,isMobile:i,showOutOfStockVariants:l=!0})=>e.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px",alignItems:"center"}},t?.map(t=>{const i=!a||a(t.name);return l||i?e.createElement("div",{key:t.name,onClick:()=>{i&&r(t)},style:{cursor:i?"pointer":"not-allowed"}},((t,n)=>{const r=!a||a(t.name),i={cursor:r?"pointer":"not-allowed",border:n?"2px solid #333":"1px solid #d1d5db",transition:"all 0.2s ease",opacity:r?1:.5};if("color"===o)return t.value&&(()=>{if(!t.value.trim())return!1;if(t.value===t.name||t.value.length<3)return!1;try{const e=document.createElement("div");return e.style.color=t.value,""!==e.style.color}catch{return!1}})()?e.createElement("div",{style:{...i,width:24,height:24,borderRadius:"50%",backgroundColor:t.value,display:"block"},className:r?"":"variant-out-of-stock"}):e.createElement("div",{style:{...i,padding:"4px 8px",borderRadius:"12px",fontSize:"12px",fontWeight:n?"600":"400",backgroundColor:n?"#f3f4f6":"white",color:"#333",minWidth:"fit-content",textAlign:"center"},className:r?"":"variant-out-of-stock"},t.name);return"image"===o?e.createElement("img",{src:Yn(t.value,48,85,"webp")||"/placeholder.svg",alt:t.name,style:{...i,width:24,height:24,borderRadius:"50%",objectFit:"cover"},className:r?"":"variant-out-of-stock"}):e.createElement("div",{style:{...i,padding:"4px 8px",borderRadius:"12px",fontSize:"12px",fontWeight:n?"600":"400",backgroundColor:n?"#f3f4f6":"white",color:"#333",minWidth:"fit-content",textAlign:"center"},className:r?"":"variant-out-of-stock"},t.name)})(t,n?.name===t.name)):null})),Jc=({product:o,isOpen:a,onClose:i,variantOptions:l,cta:s,onConfirm:c,showOutOfStockVariants:d=!0})=>{const p=r(()=>e=>e?o?.tracksInventory&&e?.inventoryItem?.tracked?e.inventoryQuantity>0?e?.inventoryQuantity:e.inventoryQuantity<=0&&"continue"===e.inventoryPolicy?.toLowerCase()?1/0:0:1/0:0,[o?.tracksInventory]),m=r(()=>{const e=o.variants.edges.find(e=>{const t=e.node;return p(t)>0})?.node;return e?.title&&"Default Title"!==e.title?e.title.split(" / "):o.options?.map(e=>e.values[0])||[]},[o,p]),[u,g]=t(m),[f,y]=t(window.innerWidth<1024);n(()=>{const e=()=>y(window.innerWidth<1024);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),n(()=>{const e=e=>{"Escape"===e.key&&i()};return a&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[a,i]);const x=o.variants.edges.find(e=>e.node.title===(o.options?.length>0?u.join(" / "):u[0]))?.node,h=x?.image?.url||o.featuredMedia?.preview?.image?.url,b=Yn(h,150,85,"webp"),w=e=>{if(!l?.options)return"text";const t=l.options.find(t=>t.name===e);return t?.type||"text"},v=e=>{if(!l?.options)return e.values.map(e=>({name:e,value:e}));const t=l.options.find(t=>t.name===e.name);return e.values.map(e=>{const n=t?.values?.find(t=>t.name===e);return{name:e,value:n?.value||e}})},C=(e,t)=>{const n=u[t];if(!n)return null;return v(e).find(e=>e.name===n)||null};if(!a)return null;const E=e.createElement("div",{onClick:i,style:{position:"fixed",top:0,left:0,right:0,bottom:0,width:"100vw",height:"100vh",background:"rgba(0, 0, 0, 0.4)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},role:"dialog","aria-modal":"true","aria-labelledby":"yt-variant-options-modal-title"},e.createElement("div",{onClick:e=>e.stopPropagation(),style:{background:"white",borderRadius:16,width:"fit-content",minWidth:350,maxWidth:450,maxHeight:"90vh",overflowY:"auto",position:"relative",zIndex:999,...window.innerWidth<=600&&{width:"90vw",maxWidth:"90vw",minWidth:"90vw"}}},e.createElement("div",{id:"yt-variant-options-modal-title",style:{width:"100%",padding:"16px 0",fontWeight:600,fontSize:14,textTransform:"uppercase",backgroundColor:"rgba(217, 217, 217)",color:"black",textAlign:"center",borderTopLeftRadius:16,borderTopRightRadius:16}},"Select Options"),e.createElement("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"16px 20px",borderBottom:"1px solid #f0f0f0"}},e.createElement("img",{src:b,alt:o.title,style:{width:60,height:60,borderRadius:8,objectFit:"cover",flexShrink:0,transition:"opacity 0.3s ease"}}),e.createElement("div",{style:{display:"flex",flexDirection:"column",flex:1,gap:4}},e.createElement("div",{style:{fontSize:14,fontWeight:600,color:"#333"}},o.title))),e.createElement("div",{style:{padding:"20px"}},o.options.map((t,n)=>e.createElement("div",{key:t.name,style:{display:"flex",flexDirection:"column",gap:8,marginBottom:t?.values?.length>1?16:0}},t?.values?.length>1&&e.createElement(e.Fragment,null,e.createElement("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8}},e.createElement("span",{style:{fontSize:14,fontWeight:500,color:"#333"}},"Select ",t.name),e.createElement("span",{style:{fontSize:12,fontWeight:500,color:"#666",backgroundColor:"#f5f5f5",padding:"4px 12px",borderRadius:16,textTransform:"capitalize"}},C(t,n)?.name||t.values[0])),e.createElement(Kc,{options:v(t),selectedValue:C(t,n),onChange:e=>{((e,t)=>{const n=[...u];n[e]=t.name,g(n)})(n,e)},type:w(t.name),isOptionAvailable:e=>((e,t)=>{const n=[...u];n[e]=t;const r=o.options?.length>0?n.join(" / "):n[0],a=o.variants.edges.find(e=>e.node.title===r)?.node;return!!a&&p(a)>0})(n,e),isMobile:f,showOutOfStockVariants:d}))))),e.createElement("button",{onClick:()=>{const e=o.variants.edges.find(e=>e.node.title===(o.options?.length>0?u.join(" / "):u[0]))?.node,t=!!e&&p(e)>0;if(e?.id&&t)c(e.id),i();else{console.warn("yt::variant options modal - selected variant not available or out of stock:",u);const e=o.variants.edges.find(e=>p(e.node)>0)?.node.id;e&&(c(e),i())}},style:{width:"100%",fontSize:14,fontWeight:600,textTransform:"uppercase",backgroundColor:s.backgroundColor,color:s.textColor,textAlign:"center",padding:"16px 0",border:"none",cursor:"pointer",borderBottomLeftRadius:16,borderBottomRightRadius:16},onMouseEnter:e=>{e.currentTarget.style.opacity="0.9"},onMouseLeave:e=>{e.currentTarget.style.opacity="1"},"data-gokwik-processed":"true"},"Add to Bundle")));return R.createPortal(E,document.body)},ed=l((i,l)=>{const[s,c]=be(Qc),d=r(()=>{const e=i.bundleType;return e&&i.styles?.[e]?i.styles[e]:i.styles?.byob},[i.styles,i.bundleType]),p=d?.productVariantTitleType,m=d?.variantSelectorType??d?.comboVariantTypeSelector??"dropdown",u=r(()=>e=>{const t=i?.customVariantsQuantity?.find(t=>t.variantId===e?.id)?.quantity;return void 0!==t?t:e?s?.tracksInventory&&e.inventoryItem?.tracked?e.inventoryQuantity>0?i?.bundleProductsCustomQuantity??e.inventoryQuantity:e.inventoryQuantity<=0&&"continue"===e.inventoryPolicy?.toLocaleLowerCase()?i?.bundleProductsCustomQuantity??1/0:0:i?.bundleProductsCustomQuantity??1/0:0},[s?.tracksInventory,i?.customVariantsQuantity,i?.bundleProductsCustomQuantity]),g=s?.variants.edges?.filter(e=>u(e.node)>0)||[],[f,y]=t(g?.[0]?.node),x=r(()=>{if(!f)return 0;const e=parseFloat(f?.price??"0");let t=e;if("comboBundle"===i.bundleType){const n=Number(i.totalPriceSum||0);let r=Number(i.dealPrice||0);!r&&i.bundle&&(i.bundle?.percentageOff?r=n*(1-i.bundle.percentageOff/100):i.bundle?.dealAmount?r=i.bundle.dealAmount:i.bundle?.amountOff&&(r=n-i.bundle.amountOff)),n>0&&r>0&&(t=e/n*r)}else if("fixedBundle"===i.bundleType){const n=i.bundleDiscountType||(i.bundle?.percentageOff?"percentageOff":i.bundle?.dealAmount?"fixedPrice":i.bundle?.amountOff?"amountOff":""),r=i.bundleDiscountValue??i.bundle?.percentageOff??i.bundle?.dealAmount??i.bundle?.amountOff??0,o=i.totalSelectedOriginal??0;if(r)switch(n){case"percentOff":case"percentageOff":case"percentage":case"Percentage":t=e*(1-r/100);break;case"amountOff":case"amount":case"Amount Off":if(o>0){const n=e/o*r;t=Math.max(0,e-n)}break;case"fixedPrice":case"fixed":case"fixedPrice":if(o>0){t=r*(e/o)}}}return parseFloat(t.toFixed(2))},[f,i.bundleType,i.totalPriceSum,i.dealPrice,i.bundleDiscountType,i.bundleDiscountValue,i.totalSelectedOriginal,i.bundle]),h=r(()=>{if(!f)return 0;const e=parseFloat(f?.price??"0"),t=parseFloat(f?.compareAtPrice??"0"),n=i.styles?.[i.bundleType||""]||i.styles?.general,r=n?.discountBadgeDisplay;let o=0;return"comboBundle"===i.bundleType||"fixedBundle"===i.bundleType?"discount-on-compare"===r&&t>0?o=t:x<e?o=e:t>e&&(o=t):t>e&&(o=t),o>0?parseFloat(o.toFixed(2)):0},[f,i.bundleType,i.styles,x]),[b,w]=t(0),[v,C]=t("undefined"!=typeof window&&window.innerWidth<=600),[E,k]=t(1),[T,S]=t("idle"),N=o(null),F=o(null),B=o(!1),[$,z]=t(0),[I,P]=t(),D=r(()=>{const e=s?.variants.edges.find(e=>{const t=e.node;return u(t)>0})?.node;return e?.title&&"Default Title"!==e.title?e.title.split(" / "):s?.options?.map(e=>e.values[0])||[]},[s,u]),[A,_]=t(D);n(()=>{if(s){B.current=!1;const e=s.variants.edges?.filter(e=>u(e.node)>0),t=s?.selectedVariant??e[0]?.node;y(t),t?.title&&"Default Title"!==t.title&&_(t.title.split(" / "))}},[s?.id]),n(()=>{const e=i.selectedProducts?.find(e=>e.variantId===f?.id);k(e?e.quantity:0)},[i.selectedProducts,f?.id]);const L=o(i.onVariantSelect);n(()=>{L.current=i.onVariantSelect},[i.onVariantSelect]),n(()=>{f?.id&&s&&B.current&&L.current?.(f.id,s)},[f?.id,s?.id]),n(()=>{if(F.current&&-1!==b&&B.current){const e=F.current.children;e[b]&&e[b].scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}),B.current=!1}},[b]);n(()=>{const e=()=>C(window.innerWidth<=600);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const O=s?.descriptionHtml??"",M=s?.media,V=M?.edges?.map(e=>e?.node.preview.image??e?.node.image).filter(e=>e?.url?.length>0)??[],W=a(e=>{const t=e.target.value,n=g?.find(e=>e.node.id===t)?.node;n&&u(n)>0&&(B.current=!0,y(n),P(n?.image?.url),n.title&&"Default Title"!==n.title&&_(n.title.split(" / ")))},[g,u]),j=a(e=>{if(!i.bundleVariantOptions?.options)return"text";const t=i.bundleVariantOptions?.options.find(t=>t.name===e);return t?.type||"text"},[i.bundleVariantOptions]),H=a(e=>{if(!i?.bundleVariantOptions?.options)return e.values.map(e=>({name:e,value:e}));const t=i?.bundleVariantOptions?.options.find(t=>t.name===e.name);return e.values.map(e=>{const n=t?.values?.find(t=>t.name===e);return{name:e,value:n?.value||e}})},[i.bundleVariantOptions]),q=a((e,t)=>{const n=[...A];n[e]=t.name,_(n);const r=(s?.options?.length??0)>0?n.join(" / "):n[0],o=s?.variants.edges.find(e=>e.node.title===r)?.node;P(o?.image?.url),o&&u(o)>0&&(B.current=!0,y(o))},[A,s,u]),U=a((e,t)=>{const n=A[t];if(!n)return null;return H(e).find(e=>e.name===n)||null},[A,H]),Q=a((e,t)=>{const n=[...A];n[e]=t;const r=(s?.options?.length??0)>0?n.join(" / "):n[0],o=s?.variants.edges.find(e=>e.node.title===r)?.node;return!!o&&u(o)>0},[A,s,u]);if(n(()=>{if(s){document.body.style.overflow="hidden",window.history.pushState({modalOpen:!0},"",window.location.href);const e=e=>{c(void 0),e.preventDefault()};return window.addEventListener("popstate",e),()=>{document.body.style.overflow="unset",window.removeEventListener("popstate",e),window.history.state?.modalOpen&&window.history.back()}}},[s,c]),n(()=>{if(v&&s&&N.current){const e=()=>{N.current&&z(N.current.offsetHeight)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}},[v,s]),!s)return null;const Y=i.selectedProducts.filter(e=>e.variantId===f?.id).reduce((e,t)=>e+t.quantity,0),Z=i.customVariantsQuantity?.find(e=>e.variantId===f?.id)?.quantity??i.bundleProductsCustomQuantity??1/0,G=Z!==1/0&&Y>=Z,X=i.hideAddToBundle||!f||u(f)<=0||G||"idle"!==T||i?.disableQuantitySelector&&1===E,K=({className:t})=>{const n=s?.rating?.averageRating??i?.rating?.averageRating??0,r=s?.rating?.ratingCount??i?.rating?.ratingCount??0;return n<=0?null:e.createElement(e.Fragment,null,"ratingOnly"===i.reviewRatingType&&e.createElement("div",{className:t,style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},e.createElement(We,{color:"gold",size:14}),e.createElement("span",{style:{marginLeft:6}},n," rating")),"ratingAndReviewCount"===i.reviewRatingType&&e.createElement("div",{className:t,style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},e.createElement(We,{color:"gold",size:14}),n,e.createElement(De,{size:14,style:{color:"dodgerblue",marginLeft:"4px"}}),"(",r," reviews)"))},ee=({isMobile:t})=>e.createElement(e.Fragment,null,e.createElement("div",{style:{position:t?"relative":void 0}},t?e.createElement("div",{ref:F,style:{display:"flex",flexDirection:"row",overflowX:"auto",WebkitOverflowScrolling:"touch",scrollSnapType:"x mandatory",scrollbarWidth:"none",msOverflowStyle:"none"}},V.length>0&&V.map((t,n)=>e.createElement("div",{key:n,style:{width:"100%",flex:"0 0 auto",scrollSnapAlign:"center",objectFit:"contain",maxHeight:"50vh",zIndex:999}},e.createElement(Pt,{small:lu(t?.url),medium:lu(t?.url),large:lu(t?.url),alt:t.altText||`${s?.title||"Product"} - Image ${n+1}`,hideDownload:!0,imageBackgroundColor:"#000",className:`yt-${i?.bundleType}-modal-desktop-main-image yt-${i?.bundleType}-modal-desktop-main-image`})))):e.createElement(e.Fragment,null,e.createElement(Pt,{small:lu(I??"")||lu(V[b]?.url),medium:lu(I??"")||lu(V[b]?.url),large:lu(I??"")||lu(V[b]?.url),hideDownload:!0,imageBackgroundColor:"#000",className:`yt-${i?.bundleType}-modal-desktop-main-image yt-${i?.bundleType}-modal-desktop-main-image main-image`}),e.createElement("div",{style:{display:"flex",flexDirection:"row",overflowX:"auto",gap:t?"8px":"12px",padding:"12px 0",WebkitOverflowScrolling:"touch",scrollSnapType:"x mandatory",scrollbarWidth:"none",msOverflowStyle:"none"}},V.length>1&&V.filter(e=>e?.url?.length>0).map((n,r)=>e.createElement("img",{key:r,src:lu(n?.url),alt:n.altText||`${s?.title||"Product"} - Image ${r+1}`,onClick:()=>w(r),style:{width:t?"60px":"73px",height:t?"60px":"73px",flex:"0 0 auto",scrollSnapAlign:"center",borderRadius:"7px",border:b===r?`2px solid ${i.themeColor||"#111"}`:"1px solid lightgray",objectFit:"cover",cursor:"pointer"},loading:"lazy"})))))),te=({className:t})=>s?.variants?.edges?.length<=1?null:e.createElement("div",{className:t},e.createElement("div",{className:`${t}-label`,style:{display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid #e0e0e0",paddingBottom:"5px",fontSize:"16px",color:"#999",position:"relative",marginBottom:"10px"}},e.createElement("span",{style:{flexShrink:0}},s.options[0].name," :"," ",e.createElement("strong",{style:{color:"#000",paddingLeft:"5px"}},f?.title)),e.createElement("select",{className:`${t}-select`,value:f?.id||"",onChange:W,style:{appearance:"none",border:"none",background:"transparent",fontWeight:"bold",color:"#000",cursor:"pointer",paddingRight:"20px",position:"absolute",right:0,top:0,bottom:0,width:"100%",opacity:0,zIndex:2}},s?.variants?.edges?.map(({node:t})=>!1===i.styles?.general?.showOutOfStockVariants&&0===u(t)?null:e.createElement("option",{key:t.id,value:t.id,disabled:0===u(t),className:0===u(t)?"variant-out-of-stock":""},t.title))),e.createElement("span",{className:`${t}-chevron`,style:{position:"absolute",right:5,pointerEvents:"none",fontSize:"12px",color:"#000"}},e.createElement(ut,null)))),ne=({isMobile:t})=>e.createElement(e.Fragment,null,s.options.map((n,r)=>e.createElement("div",{key:n.name,style:{display:"flex",flexDirection:"column",gap:8,marginBottom:n?.values?.length>1?16:0}},n?.values?.length>1&&e.createElement(e.Fragment,null,e.createElement("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8}},e.createElement("span",{style:{fontSize:14,fontWeight:500,color:"#333"}},"Select ",n.name),e.createElement("span",{style:{fontSize:12,fontWeight:500,color:"#666",backgroundColor:"#f5f5f5",padding:"4px 12px",borderRadius:16,textTransform:"capitalize"}},A[r]||n.values[0])),e.createElement(Kc,{options:H(n),selectedValue:U(n,r),onChange:e=>{q(r,e)},type:j(n.name),isOptionAvailable:e=>Q(r,e),isMobile:t,showOutOfStockVariants:!1!==i.styles?.general?.showOutOfStockVariants}))))),re=({isMobile:t})=>e.createElement("div",{className:`yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-price yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-price`,style:{width:"fit-content",minWidth:"fit-content",paddingRight:"10px",display:"flex",flexDirection:"row",alignItems:t?"center":"baseline",gap:"6px"}},i?.isFreebieTier&&!i.showFreebieTierProductPrices?e.createElement(e.Fragment,null,e.createElement("span",{className:`yt-${i?.bundleType}-compare-price yt-${i?.bundleType}-compare-price yt-fixed-bundle-original-price`,style:{fontSize:"20px",textDecoration:"line-through",color:"#888",marginRight:"6px"}},iu(i.styles.general.currencySymbol,i.styles.general.currencySymbol),au(f?.price)),e.createElement("span",{className:`yt-${i?.bundleType}-current-price yt-${i?.bundleType}-current-price`,style:{color:i.styles.general.primaryColor||"#d32f2f",fontWeight:"bold",fontSize:"20px"}},"FREE")):e.createElement(e.Fragment,null,h>0&&e.createElement("div",{className:`yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-compare-price yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-compare-price`,style:{textDecoration:"line-through",opacity:"0.5",lineHeight:"normal"}},iu(i.styles.general.currencySymbol,i.styles.general.currencySymbol),au(h)),e.createElement("div",{className:`yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-current-price yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-current-price`},e.createElement("span",{style:{fontSize:"20px",fontWeight:"600",color:"#000",textAlign:"left",lineHeight:"normal"}},iu(i.styles.general.currencySymbol,i.styles.general.currencySymbol),au(x))))),oe=({isMobile:t})=>i.hideAddToBundle?null:e.createElement("div",{className:`yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-atc-wrapper yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-atc-wrapper ${t?"":"yt-product-modal-atc-wrapper"}`,style:{width:t?"100%":"80%"}},e.createElement("button",{className:`yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-atc-button yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-atc-button ${t?"":"yt-product-modal-atc-button"}`,style:{textTransform:"uppercase",fontWeight:"800",width:"100%",border:"none",backgroundColor:i.themeColor||"#111",borderRadius:i.cornerRadius,color:i.primaryTextColorCta||"#fff",minHeight:"40px",padding:"0px 15px",position:"relative",overflow:"hidden",opacity:X?.5:1,cursor:X?"not-allowed":"pointer"},onClick:e=>{e.stopPropagation(),e.preventDefault(),f?.id&&s&&(S("check"),i.handleAddToBundle(f?.id,s,1),setTimeout(()=>{S("idle"),c(void 0)},500))},disabled:X},i.styles?.byob?.addToBundleCTAText??"Add to bundle")),ae=e.createElement(Zc,{className:`yt-${i?.bundleType}-modal-desktop-overlay yt-${i?.bundleType}-modal-desktop-overlay`,onClick:()=>c(void 0)},e.createElement(Gc,{$isSmallScreen:v,ref:l,onClick:e=>e.stopPropagation()},e.createElement(Xc,{ref:l,className:`yt-${i?.bundleType}-modal-desktop-container yt-${i?.bundleType}-modal-desktop-container yt-variant-selection-modal`},e.createElement("div",{className:`yt-${i?.bundleType}-modal-desktop yt-${i?.bundleType}-modal-desktop yt-variant-selection-modal ${v?"small-screen":"large-screen"}`},e.createElement(Yc,{className:`yt-${i?.bundleType}-modal-desktop-close yt-${i?.bundleType}-modal-desktop-close`,onClick:()=>{c(void 0)},style:{backgroundColor:"white"}},e.createElement(J,{size:"25"})),e.createElement("div",{className:`yt-${i?.bundleType}-modal-desktop-image-section yt-${i?.bundleType}-modal-desktop-image-section image-section`},e.createElement(ee,null)),e.createElement("div",{className:`yt-${i?.bundleType}-modal-desktop-details-section yt-${i?.bundleType}-modal-desktop-details-section details-section`,style:{marginLeft:"20px",minHeight:"100%",maxHeight:"70vh",scrollbarWidth:"none",overflowY:"auto",display:"flex",flexDirection:"column"}},e.createElement("h2",{className:`yt-${i?.bundleType}-modal-desktop-title yt-${i?.bundleType}-modal-desktop-title`},"byob"===i?.bundleType?e.createElement(e.Fragment,null,"variant-display-name"===p&&s?.selectedVariant?.displayName?s?.selectedVariant?.displayName:"variant-title"===p&&s?.selectedVariant?.title?s?.selectedVariant?.title:s?.title):s?.title),e.createElement(K,{className:`yt-${i?.bundleType}-modal-desktop-rating yt-${i?.bundleType}-modal-desktop-rating`}),e.createElement("div",{className:`yt-${i?.bundleType}-modal-desktop-variant-price-wrapper yt-${i?.bundleType}-modal-desktop-variant-price-wrapper`,style:{display:"flex",flexDirection:"column",gap:"2px",marginTop:"20px"}},"dropdown"===m&&e.createElement(te,{className:`yt-${i?.bundleType}-modal-desktop-variant-selector yt-${i?.bundleType}-modal-desktop-variant-selector`}),"customOptions"===m&&e.createElement(ne,null),e.createElement("div",{className:`yt-${i?.bundleType}-modal-desktop-price-atc-wrapper yt-${i?.bundleType}-modal-desktop-price-atc-wrapper`,style:{display:"flex",justifyContent:i.hideAddToBundle?"flex-start":"center",alignItems:"center",width:"100%"}},e.createElement(re,{isMobile:!1}),e.createElement(oe,{isMobile:!1}))),e.createElement("div",{className:`yt-${i?.bundleType}-modal-desktop-divider yt-${i?.bundleType}-modal-desktop-divider`,style:{height:"10px",minHeight:"10px",border:"none",backgroundColor:"#D9D9D96B",margin:"20px 0 10px 0",display:"block !important"}},e.createElement("span",null)),e.createElement("span",{className:`yt-${i?.bundleType}-modal-desktop-description yt-${i?.bundleType}-modal-desktop-description yt-description-content`,style:{scrollBehavior:"smooth"},dangerouslySetInnerHTML:{__html:O}})))))),ie=e.createElement(Zc,{className:`yt-${i?.bundleType}-modal-mobile-overlay yt-${i?.bundleType}-modal-mobile-overlay`,onClick:()=>c(void 0)},e.createElement(Gc,{className:`yt-${i?.bundleType}-modal-mobile-content yt-${i?.bundleType}-modal-mobile-content`,style:{padding:"0px",position:"relative"},$isSmallScreen:v,ref:l,onClick:e=>e.stopPropagation()},e.createElement(Xc,{ref:l,className:`yt-${i?.bundleType}-modal-mobile-container yt-${i?.bundleType}-modal-mobile-container yt-variant-selection-modal`},e.createElement("button",{className:`yt-${i?.bundleType}-modal-mobile-close-btn yt-${i?.bundleType}-modal-mobile-close-btn`,style:{position:"fixed",top:"20px",right:"20px",zIndex:9999999999,backgroundColor:"#FFFFFF",padding:"4px",borderRadius:"50%",border:"1px solid lightgray",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{c(void 0)}},e.createElement(mt,{className:`yt-${i?.bundleType}-modal-mobile-close-icon yt-${i?.bundleType}-modal-mobile-close-icon`,style:{height:"22px",width:"22px",padding:"4px",color:"black"},onMouseEnter:e=>e.currentTarget.style.color="black"})),e.createElement("div",{className:`yt-${i?.bundleType}-modal-mobile yt-${i?.bundleType}-modal-mobile yt-variant-selection-modal small-screen`,style:{padding:"0px"}},e.createElement("div",{className:`yt-${i?.bundleType}-modal-mobile-image-section yt-${i?.bundleType}-modal-mobile-image-section image-section`},e.createElement(ee,{isMobile:!0})),e.createElement("div",{className:`yt-${i?.bundleType}-modal-mobile-details-section yt-${i?.bundleType}-modal-mobile-details-section details-section`,style:{padding:"0 30px",margin:"15px 0",paddingBottom:$?`${$+20}px`:"120px"}},e.createElement("h2",{className:`yt-${i?.bundleType}-modal-mobile-title yt-${i?.bundleType}-modal-mobile-title`,style:{margin:"0px"}},"byob"===i?.bundleType?e.createElement(e.Fragment,null,"variant-display-name"===p&&s?.selectedVariant?.displayName?s?.selectedVariant?.displayName:"variant-title"===p&&s?.selectedVariant?.title?s?.selectedVariant?.title:s?.title):s?.title),e.createElement("div",{style:{paddingBlockStart:"10px"}},e.createElement(K,{className:`yt-${i?.bundleType}-modal-mobile-rating yt-${i?.bundleType}-modal-mobile-rating`})),e.createElement("div",{className:`yt-${i?.bundleType}-modal-mobile-divider yt-${i?.bundleType}-modal-mobile-divider`,style:{opacity:"0.2",border:"none",height:"2px",backgroundColor:"#000000",margin:"10px 0px",display:"block !important"}},e.createElement("span",null)),e.createElement("div",{className:`yt-${i?.bundleType}-modal-mobile-description yt-${i?.bundleType}-modal-mobile-description yt-description-content`,style:{scrollbarWidth:"none",scrollBehavior:"smooth",margin:"0px"},dangerouslySetInnerHTML:{__html:O}})))),e.createElement("div",{className:`yt-${i?.bundleType}-modal-mobile-bottom-bar yt-${i?.bundleType}-modal-mobile-bottom-bar`,ref:N,style:{position:"fixed",bottom:"0px",left:"0px",right:"0px",padding:"12px 15px",borderTop:"1px solid lightgray",boxShadow:"0px -4px 5px rgba(0, 0, 0, 0.1)",backgroundColor:"#fff",display:"flex",flexDirection:"column",gap:"2px",zIndex:9999999999}},"customOptions"===m?e.createElement(ne,{isMobile:!0}):e.createElement(te,{className:`yt-${i?.bundleType}-modal-desktop-variant-selector yt-${i?.bundleType}-modal-desktop-variant-selector`}),e.createElement("div",{className:`yt-${i?.bundleType}-modal-mobile-price-atc-wrapper yt-${i?.bundleType}-modal-mobile-price-atc-wrapper`,style:{display:"flex",justifyContent:i.hideAddToBundle?"flex-start":"center",alignItems:"center",width:"100%"}},e.createElement(re,{isMobile:!0}),e.createElement(oe,{isMobile:!0})))));return R.createPortal(v?ie:ae,document.body)}),td=({coverImageUrl:t,mobileCoverImageUrl:n,alt:r="Background",styles:o})=>{const a=[{imageWidth:21,descriptor:36},{imageWidth:48,descriptor:80},{imageWidth:99,descriptor:165},{imageWidth:216,descriptor:360},{imageWidth:225,descriptor:375},{imageWidth:319,descriptor:533},{imageWidth:330,descriptor:550},{imageWidth:432,descriptor:720},{imageWidth:564,descriptor:940},{imageWidth:639,descriptor:1066},{imageWidth:648,descriptor:1080},{imageWidth:900,descriptor:1500},{imageWidth:1068,descriptor:1780},{imageWidth:1296,descriptor:2160}],i=(e,t)=>{if(e&&e.includes("cdn.shopify"))try{const n=new URL(e),r=n.searchParams;return r.has("format")||r.set("format","webp"),r.has("quality")||r.set("quality","80"),r.set("width",t.toString()),n.toString()}catch{const n=e.includes("?")?"&":"?";return`${e}${n}format=webp&quality=80&width=${t}`}},l=e=>e?a.map(({imageWidth:t,descriptor:n})=>{const r=i(e,t);return r?`${r} ${n}w`:""}).filter(Boolean).join(", "):"";if(!t&&!n)return null;const s=t||n||"",c=i(s,800)||s,d=[];if(n&&n!==t){const t=l(n);t&&d.push(e.createElement("source",{key:"mobile",media:"(max-width: 768px)",srcSet:t}))}if(t){const n=l(t);n&&(d.length>0?d.push(e.createElement("source",{key:"desktop",media:"(min-width: 769px)",srcSet:n})):d.push(e.createElement("source",{key:"desktop",srcSet:n})))}else if(n){const t=l(n);t&&d.push(e.createElement("source",{key:"mobile",srcSet:t}))}return e.createElement("div",{style:{width:"100%",display:"block"}},e.createElement("picture",{style:{display:"block",width:"100%"}},d,e.createElement("img",{src:c,alt:r,style:{width:"100%",height:"auto",display:"block",...o},loading:"eager",fetchPriority:"high",sizes:"100vw"})))},nd=({title:t,isOpen:n,onToggle:r,children:o})=>e.createElement("div",{className:"yt-byob-filter-section",style:{borderBottom:"1px solid #eee",paddingBottom:n?"20px":"12px",marginBottom:"12px"}},e.createElement("div",{className:"yt-byob-filter-section-header",onClick:r,style:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",padding:"8px 0"}},e.createElement("span",{className:"yt-byob-filter-section-title",style:{fontSize:"16px",fontWeight:500,color:"#111"}},t),n?e.createElement(Ke,{className:"yt-byob-icon-minus",size:20}):e.createElement(Ye,{className:"yt-byob-icon-plus",size:20})),n&&e.createElement("div",{className:"yt-byob-filter-section-body",style:{marginTop:"16px"}},o)),rd=({availableFilters:n,appliedFilters:r,toggleFilter:o,clearAllFilters:a,applyPriceFilter:i,priceMin:l,setPriceMin:s,priceMax:c,setPriceMax:d,maxPossiblePrice:p,styles:m,availableProductCount:u,products:g,unavailableProductCount:f,storeCurrencyCode:y,showActions:x=!0,openSections:h,toggleSection:b})=>{const[w,v]=t(null),C=iu(m?.general?.currencySymbol)??y??"USD";return e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-byob-filters-content-wrapper",style:{overflowY:"auto",scrollbarWidth:"none",padding:"20px",flex:1,minHeight:0,overscrollBehavior:"contain"}},n.map(t=>e.createElement(nd,{key:t.id,title:t.label,isOpen:!!h[t.id],onToggle:()=>b(t.id)},"LIST"===t.type&&e.createElement("div",{className:"yt-byob-filter-list",style:{display:"flex",flexDirection:"column",gap:"14px"}},t.values.map(n=>{const a=r[t.id]?.includes(n.id)||!1;return"filter.v.availability.1"===n.id?u??g.length:"filter.v.availability.0"===n.id||n.count,e.createElement("label",{key:n.id,className:"yt-byob-filter-item-label",style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer"}},e.createElement("div",{className:"yt-byob-filter-item-left",style:{display:"flex",alignItems:"center",gap:"10px"}},e.createElement("input",{className:"yt-byob-filter-checkbox",type:"checkbox",checked:a,onChange:()=>o(t.id,n.id),style:{width:"18px",height:"18px",accentColor:m?.general?.primaryColor||"#333",cursor:"pointer"}}),e.createElement("span",{className:"yt-byob-filter-item-text",style:{fontSize:"15px",color:"#333"}},n.label)))})),"PRICE_RANGE"===t.type&&e.createElement("div",{className:"yt-byob-price-filter",style:{padding:"0 4px"}},e.createElement("div",{className:"yt-byob-price-range-display",style:{fontSize:"15px",color:"#333",marginBottom:"24px",fontWeight:500}},C,l.toLocaleString()," – ",C,c.toLocaleString()),e.createElement("div",{className:"yt-byob-price-slider-container",style:{position:"relative",width:"100%",height:"4px",background:"#e5e7eb",borderRadius:"4px",marginBottom:"10px"}},e.createElement("div",{className:"yt-byob-price-slider-track",style:{position:"absolute",height:"100%",background:"#333",borderRadius:"4px",left:l/p*100+"%",right:100-c/p*100+"%"}}),e.createElement("input",{type:"range",min:0,max:p,value:l,onMouseDown:()=>v("min"),onTouchStart:()=>v("min"),onChange:e=>{const t=Math.min(Number(e.target.value),c-10);s(t)},style:{position:"absolute",width:"100%",height:"0px",top:"50%",transform:"translateY(-50%)",background:"none",pointerEvents:"none",appearance:"none",WebkitAppearance:"none",zIndex:"min"===w?11:5,margin:0},className:"yt-byob-dual-range-input-min"}),e.createElement("input",{type:"range",min:0,max:p,value:c,onMouseDown:()=>v("max"),onTouchStart:()=>v("max"),onChange:e=>{const t=Math.max(Number(e.target.value),l+10);d(t)},style:{position:"absolute",width:"100%",height:"0px",top:"50%",transform:"translateY(-50%)",background:"none",pointerEvents:"none",appearance:"none",WebkitAppearance:"none",zIndex:"max"===w?11:4,margin:0},className:"yt-byob-dual-range-input-max"})),e.createElement("style",null,"\n .yt-byob-dual-range-input-min::-webkit-slider-thumb,\n .yt-byob-dual-range-input-max::-webkit-slider-thumb {\n pointer-events: auto;\n appearance: none;\n width: 22px;\n height: 22px;\n border-radius: 50%;\n background: #444;\n border: 3px solid white;\n cursor: pointer;\n box-shadow: 0 2px 5px rgba(0,0,0,0.2);\n position: relative;\n z-index: 20;\n }\n .yt-byob-dual-range-input-min::-moz-range-thumb,\n .yt-byob-dual-range-input-max::-moz-range-thumb {\n pointer-events: auto;\n width: 22px;\n height: 22px;\n border-radius: 50%;\n background: #444;\n border: 3px solid white;\n cursor: pointer;\n box-shadow: 0 2px 5px rgba(0,0,0,0.2);\n position: relative;\n z-index: 20;\n }\n "))))),x&&e.createElement("div",{className:"yt-byob-filter-actions",style:{display:"flex",gap:"12px",borderTop:"1px solid #eee",padding:"16px 0px",position:"sticky",bottom:"2px",paddingInline:"10px"}},e.createElement("button",{className:"yt-byob-filter-clear-button",onClick:a,style:{flex:1,padding:"8px",background:"#f3f4f6",border:"none",borderRadius:m?.byob?.borderRadius||"8px",cursor:"pointer",fontWeight:600,fontSize:"14px",color:"#333",fontFamily:"inherit"}},"Clear All"),e.createElement("button",{className:"yt-byob-filter-apply-button",onClick:i,style:{flex:1,padding:"8px",background:m?.general?.primaryColor||"#333",color:"white",border:"none",borderRadius:m?.byob?.borderRadius||"8px",cursor:"pointer",fontWeight:600,fontSize:"14px",fontFamily:"inherit"}},"Apply")))},od=t=>{const{showFiltersDrawer:n,handleClose:r,isAnimating:o,isMobile:a}=t;return n?O(e.createElement("div",{className:"yt-byob-filter-drawer-overlay",style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",zIndex:1e3,display:"flex",justifyContent:"flex-end",opacity:o?1:0,transition:"opacity 300ms ease-in-out"},onClick:r},e.createElement("div",{className:"yt-byob-filter-drawer-content",style:{width:a?"85%":"380px",height:"100%",background:"white",boxShadow:"-4px 0 12px rgba(0,0,0,0.15)",transform:o?"translateX(0)":"translateX(100%)",transition:"transform 300ms ease-in-out",display:"flex",flexDirection:"column",position:"relative"},onClick:e=>e.stopPropagation()},e.createElement(rd,{...t,applyPriceFilter:()=>{t.applyPriceFilter(),r()},openSections:t.openSections||{},toggleSection:t.toggleSection||(()=>{})}))),document.body):null},ad=t=>{const{showFiltersDrawer:n}=t;return n&&0!==t?.availableFilters?.length?e.createElement("div",{className:"yt-byob-filters-sidebar",style:{width:"280px",minWidth:"280px",padding:"0",height:"auto",maxHeight:"calc(100vh - 40px)",position:"sticky",top:"20px",display:"flex",flexDirection:"column",borderRight:"1px solid #eee",marginRight:"20px"}},e.createElement(rd,{...t,showActions:!0,openSections:t.openSections||{},toggleSection:t.toggleSection||(()=>{})})):null},id=({enableSortAndFilter:r,isMobile:o,setSearchTerm:a,searchTerm:i,styles:l,setSortBy:s,appliedFilters:c,setAppliedFilters:d,availableFilters:p=[],products:m,availableProductCount:u,unavailableProductCount:g,maxPossiblePrice:f,storeCurrencyCode:y,sharedFiltersState:x,openSections:b,toggleSection:w,sortBy:v})=>{const[C,E]=t(!1),[k,T]=t(i),{showFilters:S,setShowFilters:N,priceMax:F,setPriceMax:B,priceMin:$,setPriceMin:z}=x,[I,P]=t(!1),D=l?.byob?.productFiltersDisplay||"drawer",A=!o&&"sidebar"===D,_="none"===D;n(()=>{c["filter.v.price"]||(B(f),z(0))},[f,c]);n(()=>{const e=setTimeout(()=>{a(k)},300);return()=>clearTimeout(e)},[k,a]),n(()=>(S&&!A?(document.body.style.overflow="hidden",P(!0)):(document.body.style.overflow="",P(!1)),()=>{document.body.style.overflow=""}),[S,A]);const L=Object.entries(c).reduce((e,[t,n])=>"filter.v.price"===t?$>0||F<f?e+1:e:e+(n?n.length:0),0);return e.createElement("div",{className:"yt-byob-sort-filter-container",style:{display:"flex",flexDirection:o?"column":"row",justifyContent:"space-between",alignItems:o?"flex-end":"center",marginBottom:"20px",width:"100%",gap:o?"10px":"0"}},e.createElement("div",{className:"yt-byob-search-filter-controls",style:{display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:"space-between",alignItems:C?void 0:"center",gap:"12px",width:"100%"}},r&&e.createElement("div",{className:"yt-byob-search-wrapper",style:{position:"relative",display:"flex",alignItems:"center",width:o?C?"100%":"auto":"400px",transition:"width 0.3s ease-in-out"}},o&&!C?e.createElement(Ze,{className:"yt-byob-search-icon-trigger",fontSize:"20px",color:"#555",style:{cursor:"pointer"},onClick:()=>E(!0)}):e.createElement(e.Fragment,null,e.createElement("input",{className:"yt-byob-search-input",style:{width:"100%",padding:o?"10px 12px":"10px 14px",fontSize:"14px",outline:"none",color:"#333",border:"1px solid #c7c7c7",borderRadius:l?.byob.borderRadius,boxShadow:l?.byob.borderColor?"0 2px 4px rgba(0,0,0,0.1)":"none"},placeholder:"Search by Product Name",value:k,onChange:e=>T(e.target.value)}),!C&&e.createElement(Ze,{className:"yt-byob-search-icon",fontSize:"18px",style:{position:"absolute",right:"12px",color:"#aaa",pointerEvents:"none"}})),o&&C&&e.createElement("span",{className:"yt-byob-search-close",style:{position:"absolute",right:"12px",color:"#aaa",fontSize:"16px",cursor:"pointer"},onClick:()=>E(!1)},"X")),e.createElement("div",{className:"yt-byob-actions-wrapper",style:{display:"flex",flexDirection:"row",gap:"10px"}},p?.length>0&&e.createElement("button",{className:"yt-byob-filter-toggle-button",onClick:()=>N(!S),style:{display:_?"none":"flex",alignItems:"center",gap:o?"0px":"6px",background:S&&A?"#f3f4f6":"white",cursor:"pointer",fontSize:"14px",color:"#333",whiteSpace:"nowrap",border:"1px solid #d1d5db",padding:"8px 12px",borderRadius:l?.byob.borderRadius,boxShadow:"0 2px 4px rgba(0,0,0,0.1)"}},e.createElement(Ge,{className:"yt-byob-filter-toggle-icon",size:18}),!o&&"Filters",L>0&&e.createElement("span",{className:"yt-byob-active-filter-badge",style:{background:l?.general?.primaryColor||"#ef4444",color:"white",borderRadius:"999px",padding:"2px 8px",fontSize:"12px",lineHeight:1}},L)),r&&e.createElement("div",{className:"yt-byob-sort-wrapper",style:{display:"flex",alignItems:"center",border:"1px solid #d1d5db",padding:"8px 12px",borderRadius:l?.byob.borderRadius,boxShadow:"0 2px 4px rgba(0,0,0,0.1)",position:"relative"}},!o&&e.createElement("span",{className:"yt-byob-sort-label",style:{fontSize:"14px",color:"#555",marginRight:"6px"}},"Sort:"),o&&e.createElement(Xe,{className:"yt-byob-sort-icon",size:18,style:{color:"#555"}}),e.createElement("select",{className:"yt-byob-sort-select",style:{border:"none",background:"transparent",fontSize:"14px",color:"#333",cursor:"pointer",outline:"none",appearance:"none",WebkitAppearance:"none",paddingRight:"20px"},value:v,onChange:e=>s(e.target.value)},e.createElement("option",{className:"yt-byob-sort-option",value:""},"Featured"),e.createElement("option",{className:"yt-byob-sort-option",value:"price-low-to-high"},"Price: Low to High"),e.createElement("option",{className:"yt-byob-sort-option",value:"price-high-to-low"},"Price: High to Low"),e.createElement("option",{className:"yt-byob-sort-option",value:"title-asc"},"Alphabetical: A-Z"),e.createElement("option",{className:"yt-byob-sort-option",value:"title-desc"},"Alphabetical: Z-A")),e.createElement(h,{className:"yt-byob-sort-chevron",size:14,style:{position:"absolute",right:"10px",pointerEvents:"none",color:"#555"}})))),!A&&!_&&e.createElement(od,{showFiltersDrawer:S,handleClose:()=>{A?N(!1):(document.body.style.overflow="",P(!1),setTimeout(()=>{N(!1)},300))},isAnimating:I,isMobile:o,availableFilters:p,appliedFilters:c,toggleFilter:(e,t)=>{d(n=>{const r=n[e]||[],o=r.includes(t)?r.filter(e=>e!==t):[...r,t],a={...n,[e]:o.length?o:void 0};return Object.fromEntries(Object.entries(a).filter(([,e])=>void 0!==e))})},clearAllFilters:()=>{B(f),z(0),d({})},applyPriceFilter:()=>{d(e=>{const t={...e};return t["filter.v.price"]=[`min:${$}-max:${F}`],t})},priceMin:$,setPriceMin:z,priceMax:F,setPriceMax:B,maxPossiblePrice:f,styles:l,availableProductCount:u,products:m,unavailableProductCount:g,storeCurrencyCode:y,openSections:b,toggleSection:w}))},ld=()=>e.createElement(e.Fragment,null,e.createElement("style",null,"@keyframes spin { to { transform: rotate(360deg); } }"),e.createElement("div",{className:"yt-collection-bundle-loader-spinner",style:{width:"14px",height:"14px",border:"2px solid #f3f3f3",borderTop:"2px solid #007bff",borderRadius:"50%",animation:"spin 1s linear infinite",display:"block"}})),sd=({title:t,uploadState:n,onUpload:r,onRemove:o,onRetry:a})=>{const i="string"==typeof n?{url:n,name:"Attachment"}:n,l=i?.loading,s=i?.error,c=i?.url;return e.createElement("div",{className:"yt-personalization-upload-field",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",border:"1px dashed #ccc",borderRadius:"10px",background:"#fff",gap:"12px"}},e.createElement("div",{className:"yt-personalized-form-field-content",style:{flex:1,minWidth:0}},e.createElement("div",{className:"yt-personalized-form-field-title",style:{fontWeight:600,fontSize:"14px",color:"#1a1a1a"}},t),!i&&!l&&!s&&e.createElement("div",{className:"yt-personalized-form-field-hint",style:{fontSize:"12px",color:"#888",marginTop:"2px"}},"jpeg/png/img (max size: 5MB)"),l&&e.createElement("div",{className:"yt-personalized-form-field-loading",style:{display:"flex",alignItems:"center",gap:"6px",color:"#007bff",fontSize:"12px",marginTop:"4px"}},e.createElement(ld,null)," Uploading ",i?.name||"image","..."),s&&e.createElement("div",{className:"yt-personalized-form-field-error",style:{fontSize:"12px",color:"#dc3545",marginTop:"2px"}},"Upload failed."),c&&!l&&!s&&e.createElement("div",{className:"yt-personalized-form-field-preview",style:{display:"flex",alignItems:"center",gap:"8px",marginTop:"6px"}},e.createElement("img",{className:"yt-personalized-form-field-preview-image",src:i.url,alt:"Uploaded",style:{width:"36px",height:"36px",objectFit:"cover",borderRadius:"4px",border:"1px solid #eee"}}),e.createElement("span",{className:"yt-personalized-form-field-preview-name",style:{fontSize:"12px",color:"#28a745",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},i.name))),e.createElement("div",{className:"yt-personalized-form-field-actions",style:{flexShrink:0}},s&&e.createElement("button",{type:"button",className:"yt-personalized-form-retry-button",onClick:a,style:{fontSize:"13px",fontWeight:600,color:"#303030",background:"white",border:"1.5px solid #E3E3E3",borderRadius:"10px",padding:"8px 16px",cursor:"pointer",whiteSpace:"nowrap"}},"Retry"),c&&!l&&!s&&e.createElement("button",{type:"button",className:"yt-personalized-form-remove-button",onClick:o,style:{fontSize:"13px",fontWeight:600,color:"#fff",background:"#dc3545",border:"none",borderRadius:"10px",padding:"8px 16px",cursor:"pointer",whiteSpace:"nowrap"}},"Remove"),!i&&!l&&e.createElement("button",{type:"button",className:"yt-personalized-form-upload-button",onClick:r,style:{fontSize:"13px",fontWeight:600,color:"#303030",background:"white",border:"1.5px solid #E3E3E3",borderRadius:"10px",padding:"8px 16px",cursor:"pointer",whiteSpace:"nowrap"}},"Upload Image")))},cd=({form:r,formData:a,setFormData:i,barHeight:l=0,isUploading:s,setIsUploading:c})=>{const d=o(new Map),[p,m]=t(!1),u=c??m;n(()=>()=>{d.current.forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),d.current.clear()},[]);const g=e=>{if(!d.current.has(e)){const t=document.createElement("input");t.type="file",t.accept="image/jpeg,image/png",t.style.display="none",t.multiple=!1,t.onchange=async t=>{const n=t.target.files?.[0];if(n){if(n.size>5242880)return alert("Max 5MB");if(!n.type.match(/^image\/(jpeg|png)$/i))return alert("JPEG/PNG only");i(t=>({...t,[e]:{loading:!0,name:n.name}}));try{const t=await(async e=>{const t=new FormData;t.append("file",e),u(!0);try{const e=window?.Shopify?.shop||"falah-devstore.myshopify.com",n=window?.Shopify?.shop?"https://products.yourtoken.io":"http://localhost:8000",r=await fetch(`${n}/shopify/upload?shop=${e}`,{method:"POST",headers:{"x-yourtoken-app-name":"bundles"},body:t});if(!r.ok)throw new Error("Upload failed");return(await r.json()).url}catch(e){throw alert("Upload failed. Try again."),e}finally{u(!1)}})(n);i(r=>({...r,[e]:{url:t,name:n.name}}))}catch{i(t=>({...t,[e]:{error:!0,name:n.name}}))}}},document.body.appendChild(t),d.current.set(e,t)}return d.current.get(e)};return e.createElement("div",{className:"yt-personalized-form",style:{width:"100%",padding:"8px 0",marginBottom:`${l}px`,boxSizing:"border-box"}},r.sections?.map((t,n)=>e.createElement("div",{key:`sec_${n}`,className:"yt-personalized-form-section",style:{marginBottom:"28px"}},e.createElement("label",{className:"yt-personalized-form-section-title",style:{display:"block",fontWeight:700,marginBottom:"10px",color:"#1a1a1a",fontSize:"15px",lineHeight:"normal"}},t?.title),"text"===t.type&&e.createElement("div",{className:"yt-personalized-form-text-fields",style:{display:"flex",flexDirection:"column",gap:"12px"}},t.fields.map((t,n)=>{const r=t?.title??"Field "+n;return e.createElement("textarea",{key:r,className:"yt-personalized-form-textarea",placeholder:t?.title,rows:3,maxLength:500,value:a[r]||"",onChange:e=>i(t=>({...t,[r]:e.target.value})),style:{width:"100%",padding:"8px 0",border:"none",borderBottom:"1.5px solid #ddd",borderRadius:0,fontSize:"14px",color:"#1a1a1a",background:"transparent",resize:"none",outline:"none",lineHeight:"1.5",boxSizing:"border-box"}})})),"image"===t.type&&e.createElement("div",{className:"yt-personalized-form-image-section"},e.createElement("div",{className:"yt-personalized-form-image-hint",style:{fontSize:"12px",color:"#888",marginBottom:"10px"}},"Supported formats - jpeg/png/img (max size: 5MB)"),e.createElement("div",{className:"yt-personalized-form-image-fields",style:{display:"flex",flexDirection:"column",gap:"10px"}},t.fields.map((t,n)=>{const r=t?.title??"Field "+n;return e.createElement(sd,{key:r,title:t?.title,uploadState:a[r],onUpload:()=>g(r).click(),onRemove:()=>i(e=>{const{[r]:t,...n}=e;return n}),onRetry:()=>g(r).click()})}))))))},dd={position:"absolute",width:72,height:72,border:"4px solid #333366",background:"#fff",boxSizing:"border-box"},pd={...dd},md="6s",ud=({isOpen:t,message:n="Preparing Bundle..."})=>{if(!t)return null;const r=e.createElement(e.Fragment,null,e.createElement("style",null,"\n@keyframes ytBundleLoaderFadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n@keyframes ytBundleLoaderFloat {\n 0%, 100% { transform: translateY(0); }\n 50% { transform: translateY(-10px); }\n}\n\n/*\n * Flaps start OPEN, stay open while items fall, then close, pause, reopen.\n * 0-60%: open (180deg) — items fall in\n * 60-78%: closing\n * 78-88%: closed pause\n * 88-100%: reopening\n */\n@keyframes ytBundleLoaderOpenNorth {\n 0% { transform: rotateX(180deg); }\n 60% { transform: rotateX(180deg); }\n 78% { transform: rotateX(0deg); }\n 88% { transform: rotateX(0deg); }\n 100% { transform: rotateX(180deg); }\n}\n@keyframes ytBundleLoaderOpenSouth {\n 0% { transform: rotateX(-180deg); }\n 60% { transform: rotateX(-180deg); }\n 78% { transform: rotateX(0deg); }\n 88% { transform: rotateX(0deg); }\n 100% { transform: rotateX(-180deg); }\n}\n@keyframes ytBundleLoaderOpenEast {\n 0% { transform: rotateY(180deg); }\n 60% { transform: rotateY(180deg); }\n 78% { transform: rotateY(0deg); }\n 88% { transform: rotateY(0deg); }\n 100% { transform: rotateY(180deg); }\n}\n@keyframes ytBundleLoaderOpenWest {\n 0% { transform: rotateY(-180deg); }\n 60% { transform: rotateY(-180deg); }\n 78% { transform: rotateY(0deg); }\n 88% { transform: rotateY(0deg); }\n 100% { transform: rotateY(-180deg); }\n}\n\n/* Item 1: falls into top box opening and disappears behind front wall */\n@keyframes ytBundleLoaderItemFall1 {\n 0%, 5% {\n transform: translate3d(-50%, -90px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.5);\n opacity: 0;\n }\n 10% {\n transform: translate3d(-50%, -65px, 0px) rotateY(-50deg) rotateX(45deg) scale(1);\n opacity: 1;\n }\n 22% {\n transform: translate3d(-50%, -5px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.85);\n opacity: 1;\n }\n 27% {\n transform: translate3d(-50%, 25px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.6);\n opacity: 0;\n }\n 100% {\n transform: translate3d(-50%, 25px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.6);\n opacity: 0;\n }\n}\n\n/* Item 2: falls 20-41% */\n@keyframes ytBundleLoaderItemFall2 {\n 0%, 19% {\n transform: translate3d(-50%, -90px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.5);\n opacity: 0;\n }\n 24% {\n transform: translate3d(-50%, -65px, 0px) rotateY(-50deg) rotateX(45deg) scale(1);\n opacity: 1;\n }\n 36% {\n transform: translate3d(-50%, -5px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.85);\n opacity: 1;\n }\n 41% {\n transform: translate3d(-50%, 25px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.6);\n opacity: 0;\n }\n 100% {\n transform: translate3d(-50%, 25px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.6);\n opacity: 0;\n }\n}\n\n/* Item 3: falls 34-55% */\n@keyframes ytBundleLoaderItemFall3 {\n 0%, 33% {\n transform: translate3d(-50%, -90px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.5);\n opacity: 0;\n }\n 38% {\n transform: translate3d(-50%, -65px, 0px) rotateY(-50deg) rotateX(45deg) scale(1);\n opacity: 1;\n }\n 50% {\n transform: translate3d(-50%, -5px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.85);\n opacity: 1;\n }\n 55% {\n transform: translate3d(-50%, 25px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.6);\n opacity: 0;\n }\n 100% {\n transform: translate3d(-50%, 25px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.6);\n opacity: 0;\n }\n}\n"),e.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",backgroundColor:"rgba(0, 0, 0, 0.3)",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",zIndex:2147483644,animation:"ytBundleLoaderFadeIn 0.4s ease-out"}},e.createElement("p",{style:{fontFamily:"inherit",fontSize:15,fontWeight:600,color:"#fff",margin:"0 0 48px",letterSpacing:"0.04em",textShadow:"0 1px 8px rgba(0,0,0,0.3)",lineHeight:"normal"}},n),e.createElement("div",{style:{position:"relative",width:140,height:140,display:"flex",justifyContent:"center",alignItems:"center",perspective:600}},e.createElement("div",{style:{animation:`ytBundleLoaderFloat ${md} ease-in-out infinite`,transformStyle:"preserve-3d"}},e.createElement("div",{style:{position:"relative",width:72,height:72,transformStyle:"preserve-3d",transform:"rotateX(-45deg) rotateY(50deg) rotateZ(0deg)"}},e.createElement("div",{style:{...pd,transform:"rotateY(180deg) translateZ(36px)",background:"#f1f5f9"}}),e.createElement("div",{style:{...pd,transform:"rotateY(-90deg) translateZ(36px)",background:"#f8fafc"}}),e.createElement("div",{style:{...pd,transform:"rotateY(90deg) translateZ(36px)",background:"#f8fafc"}}),e.createElement("div",{style:{...pd,transform:"rotateX(-90deg) translateZ(36px)",background:"#e2e8f0"}}),e.createElement("div",{style:{position:"absolute",top:0,left:"50%",width:24,height:24,animation:`ytBundleLoaderItemFall1 ${md} cubic-bezier(0.25, 1, 0.5, 1) infinite`,pointerEvents:"none"}},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4H6z",stroke:"#f5a623",strokeWidth:"2",fill:"#fef3c7"}),e.createElement("path",{d:"M3 6h18",stroke:"#f5a623",strokeWidth:"2"}),e.createElement("path",{d:"M16 10a4 4 0 01-8 0",stroke:"#f5a623",strokeWidth:"2",fill:"none"}))),e.createElement("div",{style:{position:"absolute",top:0,left:"50%",width:22,height:22,animation:`ytBundleLoaderItemFall2 ${md} cubic-bezier(0.25, 1, 0.5, 1) infinite`,pointerEvents:"none"}},e.createElement("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M16 3h4l2 4-4 2v13H6V9L2 7l2-4h4",stroke:"#4a90d9",strokeWidth:"2",fill:"#dbeafe"}),e.createElement("path",{d:"M8 3a4 4 0 008 0",stroke:"#4a90d9",strokeWidth:"2",fill:"none"}))),e.createElement("div",{style:{position:"absolute",top:0,left:"50%",width:22,height:22,animation:`ytBundleLoaderItemFall3 ${md} cubic-bezier(0.25, 1, 0.5, 1) infinite`,pointerEvents:"none"}},e.createElement("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none"},e.createElement("rect",{x:"3",y:"8",width:"18",height:"14",rx:"1",stroke:"#7ed321",strokeWidth:"2",fill:"#dcfce7"}),e.createElement("rect",{x:"1",y:"8",width:"22",height:"5",rx:"1",stroke:"#7ed321",strokeWidth:"2",fill:"#bbf7d0"}),e.createElement("path",{d:"M12 8V22",stroke:"#7ed321",strokeWidth:"2"}),e.createElement("path",{d:"M12 8c-2-4-6-4-6-1s4 1 6 1",stroke:"#7ed321",strokeWidth:"2",fill:"none"}),e.createElement("path",{d:"M12 8c2-4 6-4 6-1s-4 1-6 1",stroke:"#7ed321",strokeWidth:"2",fill:"none"}))),e.createElement("div",{style:{...pd,transform:"translateZ(36px)"}}),e.createElement("div",{style:{position:"absolute",top:0,left:0,width:72,height:72,transform:"rotateX(90deg) translateZ(36px)",transformStyle:"preserve-3d"}},e.createElement("div",{style:{...dd,top:0,left:0,width:"100%",height:"50%",transformOrigin:"top center",animation:`ytBundleLoaderOpenNorth ${md} ease-in-out infinite`}}),e.createElement("div",{style:{...dd,bottom:0,left:0,width:"100%",height:"50%",transformOrigin:"bottom center",animation:`ytBundleLoaderOpenSouth ${md} ease-in-out infinite`}}),e.createElement("div",{style:{...dd,top:0,right:0,width:"50%",height:"100%",transformOrigin:"right center",animation:`ytBundleLoaderOpenEast ${md} ease-in-out infinite`}}),e.createElement("div",{style:{...dd,top:0,left:0,width:"50%",height:"100%",transformOrigin:"left center",animation:`ytBundleLoaderOpenWest ${md} ease-in-out infinite`}})))))));return R.createPortal(r,document.body)};function gd({quantity:t,setQuantity:n,remainingQuantity:r,handleAddToBundle:o,variantId:a,product:i,handleRemoveItem:l,hideAddToBundle:s,selectedVariantInventoryQty:c}){const d={display:"flex",alignItems:"center",justifyContent:"center",width:"33%",cursor:"pointer",backgroundColor:"#f2f2f2",userSelect:"none",border:"none",padding:"8px",margin:"0",fontSize:"20px",color:"#333",textDecoration:"none",boxShadow:"none",outline:"none",borderRadius:"0",boxSizing:"border-box"},p=t<c;return e.createElement(Ks,{className:"yt-byob-quantity-selector-container"},e.createElement("button",{className:"yt-byob-quantity-minus-button",onClick:e=>{e.stopPropagation();const r=Math.max(0,t-1);n?.(r),l&&a&&l(a,1)},style:d,"data-gokwik-processed":"true"},"-"),e.createElement(Js,{className:"yt-byob-quantity-display","data-gokwik-processed":"true"},t," ",e.createElement("span",{className:"yt-byob-quantity-added-text",style:{paddingLeft:"4px"}}," ","added")),e.createElement("button",{className:"yt-byob-quantity-plus-button",onClick:e=>{e.stopPropagation();const l=Math.min(r,t+1,c);n?.(l),o&&a&&i&&o(a,i,1)},disabled:!p||s,style:{...d,cursor:!p||s?"not-allowed":"pointer",opacity:!p||s?.6:1},"data-gokwik-processed":"true"},"+"))}!function(){if("undefined"==typeof window||window.__yt_dom_safeguarded)return;window.__yt_dom_safeguarded=!0;const e=Node.prototype,t=e.insertBefore;e.insertBefore=function(e,n){return n&&n.parentNode!==this?n.parentNode?n.parentNode.insertBefore(e,n):this.appendChild(e):t.call(this,e,n)};const n=e.removeChild;e.removeChild=function(e){return e&&e.parentNode!==this?e.parentNode?e.parentNode.removeChild(e):e:n.call(this,e)}}();const fd=({product:o,styles:a,selectedVariant:i})=>{const[l,s]=t(!1),c=r(()=>lu(i?.image?.url||o?.featuredMedia?.preview?.image?.url||o?.media?.edges?.[0]?.node?.image?.url)||"",[i?.image?.url,o?.featuredMedia?.preview?.image?.url,o?.media?.edges]),d=r(()=>o?.media?.edges?.map(e=>lu(e?.node?.preview?.image?.url??e?.node?.image?.url)).filter(Boolean)??[],[o?.media?.edges]),p=r(()=>d?.[1]??c??"",[d,c]);n(()=>{if(c){(new Image).src=c}},[c]);const m=r(()=>c||d?.[0],[c,d]);return e.createElement("div",{className:"yt-byob-image-hover-container",style:{position:"relative",width:"100%",overflow:"hidden",aspectRatio:a.general.imageAspectRatio||"1/1"},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},e.createElement("div",{className:"yt-byob-image-inner-container",style:{width:"100%",height:"100%",position:"relative"}},e.createElement("img",{className:"yt-byob-image-main",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"top",opacity:l&&m!==p?0:1,transition:d?.length>0?"opacity 300ms ease, transform 300ms ease":"",transform:l?"scale(1.1)":"scale(1)"},src:m,alt:o.title}),m!==p&&e.createElement("img",{className:"yt-byob-image-hover",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",opacity:l?1:0,transition:"opacity 400ms ease, transform 400ms ease",transform:l?"scale(1.1)":"scale(1)",position:"absolute",top:0,left:0,objectPosition:"top"},src:p,alt:o.title})))},yd=({product:r,bundle:o,handleAddToBundle:i,hideAddToBundle:l,remainingQuantity:s,themeColor:c,handleRemoveItem:d,transitionActive:p,idx:m,selecteditems:u,customVariantsQuantity:g,currentProductTier:f,showFreebieTierProductPrices:y,tierIndex:x})=>{const b=he(Qc),w=o.customizations,v=w?.byob?.variantSelectorType,[C,E]=t(!1),k=w.general?.variantTitleSuffix?r?.variants?.edges:(e=>{if(!e||e.length<2)return e;const t=e.map(e=>e.node.title).map(e=>e.split(" "));let n=[...t[0]];for(let e=1;e<t.length;e++){const r=t[e];let o=0;for(;o<n.length&&o<r.length&&n[n.length-1-o]===r[r.length-1-o];)o++;n=n.slice(n.length-o)}return n.length<1?e:e.map(e=>{const t=e.node.title.split(" "),r=t.slice(0,t.length-n.length).join(" ");return{...e,node:{...e.node,title:r,commonSuffix:n.join(" ")}}})})(r?.variants?.edges);if(!k||!k.length)return e.createElement(e.Fragment,null);const T=a(e=>{const t=g?.find(t=>t.variantId===e)?.quantity;if(void 0!==t)return t;const n=k?.find(t=>t.node.id===e),a=n?.node;return a?r.tracksInventory&&a.inventoryItem?.tracked?a.inventoryQuantity>0?o?.customProductsQuantity??a.inventoryQuantity:a.inventoryQuantity<=0&&"continue"===a.inventoryPolicy?.toLowerCase()?o?.customProductsQuantity??1/0:0:o?.customProductsQuantity??1/0:0},[k,g,r.tracksInventory]),S=k?.filter(e=>!1!==w.general.showOutOfStockVariants||T(e.node.id)>0);if(!S||!S.length)return e.createElement(e.Fragment,null);const N=S?.find(e=>T(e.node.id)>0)?.node?.id;if(!N&&!w.general.showOutOfStockProducts)return e.createElement(e.Fragment,null);const[F,B]=t(S?.find(e=>T(e.node.id)>0)?.node?.id||S[0]?.node?.id),[$,z]=t(window.innerWidth<450),[I,P]=t("normal"),D=S?.find(e=>e?.node?.id===F)?.node,A=T(F||""),_=u?.find(e=>e.variantId===F&&(void 0===x||e.tierIndex===x)),L=_?_.quantity:0;n(()=>{const e=()=>{z(window.innerWidth<450)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),n(()=>{CSS.supports("font-weight","500")?P("500"):CSS.supports("font-weight","400")?P("400"):CSS.supports("font-weight","600")&&P("600")},[]),n(()=>{document.documentElement.style.setProperty("--yt-bundle-font-weight",I)},[I]),n(()=>{if(F&&!S?.some(e=>e.node.id===F)){const e=S.find(e=>T(e.node.id)>0)?.node.id||S[0]?.node?.id;e&&B(e)}},[F,S,T]);const R=r.variants&&r.variants.edges?.length>1&&"customOptions"!==v,O="undefined"!=typeof window?(window?.ytapp||window?.ytBundleApp)?.storeId:void 0,M="53933408435"===O,V="75851235630"===O,W=(e=>{if(e.metafield&&"yourtoken_bundles_app"===e.metafield.namespace&&"categories"===e.metafield.key){if(e.metafield.jsonValue&&Array.isArray(e.metafield.jsonValue))return e.metafield.jsonValue;if(e.metafield.value)try{const t=JSON.parse(e.metafield.value);if(Array.isArray(t))return t}catch(e){console.error("Failed to parse categories:",e)}}return[]})(r),j=W.length>0;return e.createElement(e.Fragment,null,e.createElement(nc,{borderRadius:w?.byob.borderRadius,borderColor:w?.byob.borderColor,shadowType:w?.byob.shadowType,backgroundColor:w?.byob.cardBackgroundColor,className:"yt-byob-product-container bundle-builder-product-container "+(p?"yt-product-card-transition-active":m%2==0?"yt-product-card-transition":"yt-product-card-transition-up"),onClick:()=>{if(w?.general?.redirectToPDP)return;if(A<=0)return;const e={...r,variants:{...r.variants,edges:S},selectedVariant:D};b(e)},onMouseEnter:e=>{e.currentTarget.style.transform="scale(1.01)"},onMouseLeave:e=>{e.currentTarget.style.transform="scale(1)"},style:{WebkitTapHighlightColor:"transparent",textAlign:w?.byob?.productCardDetailsAlignment||"left"}},e.createElement(rc,{className:"yt-byob-image-wrapper",onClick:e=>{if(w?.general?.redirectToPDP&&r?.handle){e.stopPropagation();const t=window?.Shopify?.routes?.root||"/";window.location.href=`${t}products/${r.handle}`}},style:{cursor:"pointer"}},e.createElement(fd,{product:r,styles:w,selectedVariant:D}),o?.productCardBadgeText&&e.createElement("div",{className:"yt-byob-product-badge",style:{position:"absolute",top:"0px",left:"0px",backgroundColor:w?.general.primaryColor||"#111",color:w?.general.primaryContrastColor||"#fff",zIndex:1,margin:"0px",whiteSpace:"pre",padding:"4px 8px",fontSize:"12px",borderTopLeftRadius:w.byob.borderRadius}},o.productCardBadgeText),R&&e.createElement("div",{className:"yt-byob-variant-selector-wrapper",style:{position:"relative",width:"100%"}},e.createElement(oc,{className:"yt-byob-variant-selector",isCoralHaze:M,onClick:e=>{e.preventDefault(),e.stopPropagation()},value:F||"",onChange:e=>{e.stopPropagation(),e.preventDefault(),B(e.target.value)}},S?.map(t=>{const n=window.innerWidth<=320?10:window.innerWidth<=420?15:22,r=t.node.title.length>n?t.node.title.substring(0,n)+"...":t.node.title;return e.createElement("option",{key:t.node.id,value:t.node.id,className:0===T(t.node.id)?"variant-out-of-stock":""},r)})),e.createElement("div",{className:"yt-byob-variant-chevron",style:{position:"absolute",right:"16px",bottom:"10px",pointerEvents:"none"}},e.createElement(h,null)))),e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"===w?.byob?.productCardDetailsAlignment?"center":"right"===w?.byob?.productCardDetailsAlignment?"flex-end":"flex-start"},className:"yt-byob-product-details-wrapper"},e.createElement("div",{className:"yt-byob-product-content"},"enabled"===o?.customizations?.byob?.productCardCategoryVisibility&&j&&e.createElement("div",{className:"yt-byob-product-categories-wrapper",style:{padding:"2px 4px"}},e.createElement("div",{className:"yt-byob-product-categories",style:{display:"flex",flexWrap:"wrap",gap:"4px",justifyContent:"center"===w?.byob?.productCardDetailsAlignment?"center":"right"===w?.byob?.productCardDetailsAlignment?"flex-end":"flex-start"}},W.slice(0,2).map((t,n)=>e.createElement("span",{className:"yt-byob-category-tag",key:n,style:{fontSize:$?"10px":"14px",color:"#666",fontWeight:"500",paddingBottom:"4px"}},t.charAt(0).toUpperCase()+t.slice(1))),W.length>2&&e.createElement("span",{className:"yt-byob-more-categories",style:{fontSize:"10px",padding:"2px 6px",backgroundColor:"rgba(0, 0, 0, 0.05)",borderRadius:"8px",color:"#666",fontWeight:"500"}},"+",W.length-2," more"))),e.createElement(ac,{isMobile:$,showBorder:o?.showBorder??!0,style:{...!w?.byob.productsPriceVisibility&&{padding:"8px"},...w?.byob.productTitleFontSize&&{fontSize:w?.byob.productTitleFontSize||"18px"}},className:"yt-byob-product-title-wrapper"},e.createElement("div",{style:{display:"-webkit-box",WebkitLineClamp:w?.byob?.productTitleWrapLines||2,WebkitBoxOrient:"vertical",overflow:"hidden",lineHeight:"normal"},className:"yt-byob-product-title"},V?String(D?.displayName).replace("- Default Title",""):r.title,D?.commonSuffix?" -"+D?.commonSuffix:""))),"Default Title"!==D?.title&&w?.byob?.showVariantTitleInCard&&e.createElement("p",{style:{padding:o?.showBorder??1?"0px 10px":"0 4px",fontSize:"12px",margin:"0",fontWeight:"600",color:"#888",lineHeight:"normal"},className:"yt-byob-product-variant-title"},D?.title),"ratingOnly"===(w?.byob?.productRatingsDisplay??o?.reviewRatingType)&&(r?.rating?.averageRating??0)>0&&e.createElement("div",{className:"yt-byob-product-ratings",style:{display:"flex",alignItems:"center",justifyContent:"center"===w?.byob?.productCardDetailsAlignment?"center":"right"===w?.byob?.productCardDetailsAlignment?"flex-end":"flex-start",fontSize:"14px",color:"#333"}},e.createElement(We,{color:"gold",size:14})," ",e.createElement("span",{style:{marginLeft:6}},r?.rating?.averageRating," ",e.createElement("span",null,"rating"))),"ratingAndReviewCount"===(w?.byob?.productRatingsDisplay??o?.reviewRatingType)&&(r?.rating?.averageRating??0)>0&&e.createElement("div",{className:"yt-byob-product-ratings-count",style:{display:"flex",alignItems:"center",justifyContent:"center"===w?.byob?.productCardDetailsAlignment?"center":"right"===w?.byob?.productCardDetailsAlignment?"flex-end":"flex-start",fontSize:"14px",color:"#333"}},e.createElement(We,{color:"gold",size:14})," ",r?.rating?.averageRating,e.createElement(De,{className:"yt-byob-verified-icon",size:14,style:{color:"dodgerblue",marginLeft:"4px"}})," ","(",r?.rating?.ratingCount," ",e.createElement("span",{style:{marginLeft:"2px"}},"reviews"),")"),w?.byob.productsPriceVisibility&&e.createElement("div",{className:"yt-byob-product-price yt-bundle-builder-product-price",style:{marginBottom:"5px",padding:o?.showBorder?"0px 10px":"0 4px"}},f?.isFreebieTier&&!y?e.createElement(e.Fragment,null,e.createElement("span",{className:"yt-byob-compare-price yt-fixed-bundle-original-price",style:{fontSize:"14px",textDecoration:"line-through",color:"#888",marginRight:"6px"}},iu(w.general.currencySymbol,o?.storeCurrencyCode)??"Rs.",au(D?.price)),e.createElement("span",{className:"yt-byob-current-price",style:{color:w.general.primaryColor||"#d32f2f",fontWeight:"bold"}},"FREE")):parseFloat(D?.price??"0")>0?e.createElement("span",{className:"yt-byob-current-price"},iu(w.general.currencySymbol,o?.storeCurrencyCode)??"Rs.",au(D?.price)):e.createElement("span",{className:"yt-byob-free-price"},"Free"),(!f?.isFreebieTier||y)&&D?.compareAtPrice&&w?.byob.compareAtPriceVisibility&&parseFloat(D.compareAtPrice)>parseFloat(D?.price)&&e.createElement("span",{className:"yt-byob-compare-price yt-fixed-bundle-original-price",style:{fontSize:"14px"}},iu(w.general.currencySymbol,o?.storeCurrencyCode)??"Rs.",au(D.compareAtPrice)))),(A>0||A===1/0)&&e.createElement(ic,{borderRadius:w?.byob.borderRadius,className:"yt-byob-add-to-bundle-wrapper yt-product-atc-wrapper"},(0===L||void 0===L)&&e.createElement(ec,{key:"add-to-bundle-btn",style:{...!l&&{backgroundColor:w?.general.primaryColor||"#111",color:w?.general.primaryContrastColor||"#fff"}},disabled:l,onClick:e=>{e.stopPropagation(),e.preventDefault(),(()=>{if(!F)return;"customOptions"===v&&S.length>1?E(!0):i(F,r,1)})()},className:"yt-byob-add-to-bundle-button yt-product-atc-button","data-gokwik-processed":"true"},w?.byob.addToBundleCTAText),!o?.disableQuantitySelector&&L>0&&F&&e.createElement(tc,{key:"quantity-selector-container",className:"yt-byob-quantity-selector-container visible",style:{overflow:"hidden"}},e.createElement(gd,{remainingQuantity:s,quantity:L,handleAddToBundle:i,variantId:F,product:r,handleRemoveItem:d,hideAddToBundle:l,selectedVariantInventoryQty:A})),o?.disableQuantitySelector&&L>0&&F&&e.createElement(ec,{key:"single-qty-added-btn",style:{backgroundColor:"#747474",color:w?.general.primaryContrastColor||"#fff",display:"flex",justifyContent:"space-between",overflow:"hidden",height:"40px"},className:"yt-byob-added-button yt-product-atc-single-qty-selector","data-gokwik-processed":"true"},e.createElement(lc,{className:"yt-byob-added-text yt-product-atc-single-qty-selector-added"},"ADDED"),e.createElement(sc,{className:"yt-byob-single-qty-remove yt-product-atc-single-qty-selector-remove",onClick:e=>{e.stopPropagation(),d&&F&&d(F,x)},"data-gokwik-processed":"true"},e.createElement(Je,{style:{color:"#fff",fontSize:"20px"}})))),A<=0&&A!==1/0&&e.createElement(ec,{style:{backgroundColor:w.general.disabledButtonColor,color:"#fff",cursor:"not-allowed",transition:"transform 0.2s ease-in-out"},className:"yt-product-atc-disabled","data-gokwik-processed":"true"},w?.general.outOfStockLabel||"Out of Stock")),"customOptions"===v&&C&&S.length>1&&e.createElement(Jc,{product:r,isOpen:C,onClose:()=>E(!1),variantOptions:o.variantOptions,cta:{textColor:w?.general?.ctaTextColor||"#fff",backgroundColor:w?.general?.ctaBackgroundColor||"#000"},onConfirm:e=>{B(e),i(e,r,1)},showOutOfStockVariants:!1!==w.general.showOutOfStockVariants}))},xd=({currentStep:t,setCurrentProductTier:n,totalSteps:r,tiers:o,isMobile:a,selectedProductsByTier:i,primaryColor:l="#000",primaryTextColorCta:s="#fff",tierNavigation:c})=>e.createElement("div",{className:"yt-byob-stepper-container",style:{textAlign:"center",fontSize:"20px"}},e.createElement("div",{className:"yt-byob-stepper-steps",style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center"}},Array.from({length:r}).map((s,d)=>{const p=d+1,m=!o[d].isFormStep&&o[d].minimumQuantity-(i[d]?.length??0)===0,u=d===t;return l="black"===l?"#000000":l,e.createElement(e.Fragment,{key:p},e.createElement("div",{className:"yt-byob-stepper-step-wrapper",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",gap:a?"4px":"8px"},onClick:()=>!1===c?()=>{}:n(p-1)},e.createElement("div",{className:"yt-byob-stepper-step-number",style:{fontSize:"14px"}},"Step ",p),e.createElement("div",{className:"yt-byob-stepper-step-bar",style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",cursor:"pointer"}},e.createElement("div",{className:"yt-byob-stepper-step-left-bar",style:{height:"3px",width:a?"30px":"50px",backgroundColor:u?"#666666":m?l:"#CBD5E0",display:"block",borderTopLeftRadius:"5px",borderBottomLeftRadius:"5px"}}),e.createElement("div",{className:"yt-byob-stepper-step-circle",style:{width:"10px",height:"10px",borderRadius:"50%",backgroundColor:u?"white":m?`${l}50`:"white",border:`2px solid ${u?"#666666":m?l:"#CBD5E0"}`,display:"flex",alignItems:"center",justifyContent:"center"}}),e.createElement("div",{className:"yt-byob-stepper-step-right-bar",style:{height:"3px",width:a?"30px":"50px",backgroundColor:u?"#666666":m?l:"#CBD5E0",display:"block",marginRight:d<r?a?"4px":"6px":"",borderTopRightRadius:"5px",borderBottomRightRadius:"5px"}}))))})),e.createElement("div",{className:"yt-byob-stepper-title",style:{margin:a?"16px 0px":"15px 0px",fontSize:a?"16px":"18px",padding:"4px",background:"rgba(0, 0, 0, 0.03)",borderBottom:"1px solid rgba(130, 130, 130, 0.28)"}},o[t]?.title)),hd=({styles:t,isMobile:n,categories:r,activeCategory:o,onCategoryChange:a})=>{const i=e=>{a(e)},l=(e,t)=>{const n=e.replace("#","");return`rgba(${parseInt(n.substring(0,2),16)}, ${parseInt(n.substring(2,4),16)}, ${parseInt(n.substring(4,6),16)}, ${t})`};return"tabs"===t?.byob?.categoryFilterOnPage?e.createElement("div",{className:"yt-byob-category-filter-wrapper",style:{overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",marginBottom:"20px",width:"100%"}},e.createElement("div",{className:"yt-byob-category-tabs-container",style:{display:"flex",gap:"0px",minWidth:"max-content",paddingBottom:"1px",flexWrap:"nowrap",justifyContent:"center",borderBottom:"1px solid #e0e0e0",width:"auto",height:n?"28px":"45px"}},["All",...r].map(r=>{const a=o===r;return e.createElement("button",{key:r,onClick:()=>i(r),className:"yt-byob-category-tab-button",style:{background:"none",border:"none",padding:n?"12px 16px":"12px 20px",fontSize:n?"14px":"16px",fontWeight:a?"600":"400",color:a?t.general.primaryColor:"#666",cursor:"pointer",position:"relative",transition:"all 0.3s ease",backgroundColor:a?l(t.general.primaryColor,.07):"transparent",borderBottom:a?`2px solid ${t?.general.primaryColor}`:"2px solid transparent",marginBottom:"-1px",whiteSpace:"nowrap",minWidth:"fit-content"},onMouseEnter:e=>{a||(e.currentTarget.style.color=t?.general.primaryColor)},onMouseLeave:e=>{a||(e.currentTarget.style.color="#666")}},e.createElement("span",{style:{visibility:"hidden",height:0,display:"block",overflow:"hidden",fontWeight:600},"aria-hidden":"true"},r.charAt(0).toUpperCase()+r.slice(1)),e.createElement("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",textAlign:"center"}},r.charAt(0).toUpperCase()+r.slice(1)))}))):e.createElement("div",{className:"yt-byob-category-filter-wrapper",style:{overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",marginBottom:"20px",paddingBottom:"5px",maxWidth:"100%"}},e.createElement("div",{className:"yt-byob-category-buttons-container",style:{display:"flex",gap:"8px",minWidth:"max-content",flexWrap:"nowrap",justifyContent:"center",paddingRight:n?"10px":"0px"}},["All",...r].map(r=>e.createElement("button",{key:r,onClick:()=>i(r),className:"yt-byob-category-button",style:{padding:n?"8px 16px":"10px 18px",fontSize:n?"13px":"14px",fontWeight:"500",border:`1px solid ${o===r?t?.general.primaryColor:"#e0e0e0"}`,borderRadius:t?.general.ctaBorderRadius,backgroundColor:o===r?t?.general.primaryColor:"white",color:o===r?"white":"#333",cursor:"pointer",transition:"all 0.3s ease",outline:"none",whiteSpace:"nowrap",minWidth:"fit-content",flexShrink:0},onMouseEnter:e=>{o!==r&&(e.currentTarget.style.borderColor=t?.general.primaryColor,e.currentTarget.style.color=t?.general.primaryColor)},onMouseLeave:e=>{o!==r&&(e.currentTarget.style.borderColor="#e0e0e0",e.currentTarget.style.color="#333")}},r.charAt(0).toUpperCase()+r.slice(1)))))},bd=({bundle:i,selectedItems:l,setSelectedItems:s,handleAddToCart:c,bundleAddToCartLoading:d,renderingOnPage:p,selectedItemsQuantity:m,handleRemoveItem:u,bundleSubtotal:g,dispatchAnalyticsEvent:f,fetchStoreDetails:y,productsPagination:x,categoryFilters:h})=>{const[b,w]=t(void 0),[v,C]=t(window.innerWidth<450),[E,k]=t(0),[T,S]=t({}),N=!!i.personalizedForm?.title&&"productTier"===i.builderTiers?.type,[F,B]=t({}),[$,z]=t(!1),I=N&&E===(i.builderTiers?.productTier?.length||0),P=E===(i.builderTiers?.productTier?.length||0)-1,D=N&&P&&!I,[A,_]=t(i?.products),[L,R]=t(!1),[O,M]=t({}),[V,W]=t(20),j=o(null),[H,q]=t(i?.products),[U,Q]=t({}),[Y,Z]=t(x?.cursorData),G=i.builderTiers?.type,X=i.customizations,K=i.builderTiers?.productTier??[],J=i.builderTiers?.offerTier??[],[ee,te]=t("All"),ne=o(null),re=o(!0);n(()=>(re.current=!0,()=>{re.current=!1}),[]);const[oe,ae]=t({}),ie=o(void 0),le=o({appliedFilters:oe,currentProductTier:E,tierType:G}),[se,ce]=t([]),[de,pe]=t(!1),[me,ue]=t(0),[ge,fe]=t(0),[ye,xe]=t({}),he=e=>{xe(t=>{const n=!1!==t[e];return{...t,[e]:!n}})};n(()=>{se.length>0&&xe(e=>{const t={...e};return se.forEach(e=>{void 0===t[e.id]&&(t[e.id]=!1)}),t})},[se]),n(()=>{!(Object.values(oe).length>0)&&x?.cursorData&&Z(x.cursorData)},[oe,x?.cursorData]);const we=i.customStoreDetails?.fixedInventoryDetails;n(()=>{X?.byob?.productFiltersDisplay&&"none"!==X?.byob?.productFiltersDisplay&&(async()=>{const e=X?.byob?.productFiltersDisplay??"none";if("drawer"===e||"sidebar"===e)try{const e=await(y?.());e?.productFilters&&ce(e.productFilters??[])}catch(e){console.error("no filters data found")}})()},[X?.byob,y]);const ve=r(()=>{if(!h)return;const e=K[E]?.tier,t="productTier"===G?e:1,n="object"!=typeof h||Array.isArray(h)||h.id?h:h[t];if(!n)return;const r=Array.isArray(n)?n.find(e=>"filter.p.m.categories"===e.id||"categories"===e.label):n;return r&&r.values?{...r,values:[...r.values].sort((e,t)=>e.label.localeCompare(t.label,void 0,{sensitivity:"base",numeric:!0}))}:void 0},[h,E,K]),Ce=r(()=>{const e=(ve?.values?.map(e=>e.label)??[])?.filter(e=>"All"!==e);return e},[ve]),Ee=Ce.length>0;n(()=>{ae({})},[E,ee]);const ke=((e,t)=>"All"===t?e:e.filter(e=>{const n=e?.productDetails;if(n.metafield&&"yourtoken_bundles_app"===n.metafield.namespace&&"categories"===n.metafield.key){let e=[];if(n.metafield.jsonValue&&Array.isArray(n.metafield.jsonValue))e=n.metafield.jsonValue;else if(n.metafield.value)try{const t=JSON.parse(n.metafield.value);Array.isArray(t)&&(e=t)}catch(e){console.error("Failed to parse categories:",e)}return e.includes(t)}return!1}))(A.filter(e=>{if("undefined"!=typeof window&&"clayco-com.myshopify.com"===window?.Shopify?.shop&&""===e?.productDetails?.onlineStoreUrl)return!1;const t=e.productDetails.status?.toLowerCase(),n="active"===t||"unlisted"===t||void 0===e.productDetails.status||""===e.productDetails.status,r="estailofashion.myshopify.com"!==window?.Shopify?.shop||null!==e?.productDetails?.publishedAt;return n&&r}),ee),Se="productTier"===G?K.reduce((e,t)=>e+t.minimumQuantity,0):"offerTier"===G?J.reduce((e,t)=>e+t.minimumQuantity,0):i.minimumQuantity,Ne=a((e,t)=>{const n=we?.find(e=>e.variantId===t)?.quantity;if(void 0!==n)return n;const r=(e.variants?.edges||[]).find(e=>e.node.id===t),o=r?.node;return o?e.tracksInventory&&o.inventoryItem?.tracked?o.inventoryQuantity>0?o.inventoryQuantity:o.inventoryQuantity<=0&&"continue"===o.inventoryPolicy?.toLowerCase()?1/0:0:1/0:0},[we]),[Fe,Be]=t(3e3);n(()=>{const e=se?.find(e=>"PRICE_RANGE"===e.type||"filter.v.price"===e.id);e&&e.values?.[0]?.input?.price?.max&&Be(e.values[0].input.price.max)},[A,se]);const[$e,ze]=t(""),[Ie,Pe]=t(""),De=((e,t)=>e.filter(e=>e?.productDetails?.title?.toLowerCase().includes(t?.toLowerCase())))(ke,$e),Ae=((e,t)=>[...e].sort((e,n)=>{const r=e?.productDetails?.title?.toLowerCase(),o=n?.productDetails?.title?.toLowerCase(),a=parseFloat(e?.productDetails?.variants?.edges?.[0]?.node?.price||"0"),i=parseFloat(n?.productDetails?.variants?.edges?.[0]?.node?.price||"0");switch(t){case"title-asc":return r.localeCompare(o);case"title-desc":return o.localeCompare(r);case"price-low-to-high":return a-i;case"price-high-to-low":return i-a;default:return 0}}))(De,Ie);n(()=>{(async e=>{if(!x)return;const{initialCursorData:t,cursorData:n,fetchFn:r,setCursorData:o}=x,a="productTier"===G?K?.[E]?.tier:1;if(0===Object.values(e)?.length)return void("productTier"===G?(M(e=>({...e,[E]:U?.[E]||[]})),o(Y||{...n})):(_(H),o(Y||{1:t?.[1]})));const i=await r(e,a,null);re.current&&i&&("productTier"===G?(M(e=>({...e,[E]:i})),_(e=>{const t=new Set(e.map(e=>e.productId)),n=i.filter(e=>!t.has(e.productId));return[...e,...n]})):_(i))})(oe)},[oe]);const[_e,Le]=be(Qc),[Re,Oe]=t(!1);n(()=>{f?.({eventNameCustom:"block_visibility",eventTypeCustom:"views",data:{bundleId:i?._id,bundleType:"byob-page-bundle",byobBundleType:i.builderTiers?.type??"builder"}}),setTimeout(()=>{Oe(!0)},100)},[]);const Me=o(null);n(()=>{const e=()=>{C(window.innerWidth<450)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),n(()=>{if(i.coverImageUrl){const e=new Image;e.src=lu(i.coverImageUrl)??"",e.onload=()=>{w(e.width/e.height)}}},[i.coverImageUrl]),n(()=>{Oe(!1),setTimeout(()=>Oe(!0),100)},[E]);const Ve=(e,t)=>{if("productTier"===G){let n={...T},r=!1;if(n[t]){const o=n[t].indexOf(e);-1!==o&&(n[t]=[...n[t]],n[t].splice(o,1),r=!0)}if(!r)for(let t=K.length;t>=0;t--){const r=n[t].indexOf(e);if(-1!==r){n[t]=[...n[t]],n[t].splice(r,1);break}}S(n);const o=K.findIndex((e,t)=>n[t]?.length<e.minimumQuantity);-1!==o&&k(o)}u(e,t)},We=()=>{const e=document.querySelector(".products-display");e&&e.scrollIntoView({behavior:"smooth"})};n(()=>{if(i){if("productTier"!==i?.builderTiers?.type)return _(i?.products??[]),void q(i?.products??[]);if(i?.workWithoutPagination){if("productTier"===i?.builderTiers?.type){const e={};i.builderTiers.productTier?.forEach((t,n)=>{const r=t.products.map(e=>{const t=i?.products?.find(t=>t.productId===e.productId);return t?{...t,variantIds:e.variantIds?.length?e.variantIds:t.variantIds}:null}).filter(Boolean);e[n]=r}),M(e),Q(e)}}else"productTier"===i?.builderTiers?.type&&(M({0:i?.products}),Q({0:i?.products}))}},[i]),n(()=>{if("productTier"!==G||!K[E])return;if(Se===m)return;const e=K.findIndex((e,t)=>{const n=T[t]||[];return t>=E&&n.length<e.minimumQuantity});if(-1!==e&&e!==E){k(e);const t=K[E];t?.products?.length>1&&We()}else if(-1===e&&N&&E<K.length){K.every((e,t)=>(T[t]?.length||0)>=e.minimumQuantity)&&k(K.length)}},[T,K,G,N]),n(()=>{ze(""),te("All")},[E]),n(()=>{function e(e){if(!Me.current||!e.target)return;!Me.current.contains(e.target)&&Le(void 0)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);const je=(e,t,n)=>{var r;"productTier"===G&&(r=e,S(e=>{const t={...e},n=K.findIndex((e,n)=>{const r=t[n]||[];return n>=E&&r.length<e.minimumQuantity}),o=-1!==n?n:E;return-1!==n&&k(n),t[o]||(t[o]=[]),t[o].push(r),t}));const o=!0===K[E]?.isFreebieTier;f?.({eventNameCustom:"byob_add_to_bundle",eventTypeCustom:"clicks",data:{bundleId:i._id,bundleType:"byob-page-bundle",byobBundleType:i.builderTiers?.type??"builder",addedProduct:{id:t?.id,title:t?.title}}}),su(e,t,n,l,s,o,E)},He=(()=>{if(!i?.builderTiers)return i.minimumQuantity;const{type:e,offerTier:t,productTier:n}=i.builderTiers,r="offerTier"===e?t:"productTier"===e?n:null;if(!r)return i.minimumQuantity;let o=0;return r.map(e=>{o+=e.minimumQuantity}),o})(),qe=v&&i.mobileCoverImageUrl?lu(i.mobileCoverImageUrl):lu(i.coverImageUrl??"")||null,Ue=a(e=>{if("undefined"!=typeof window&&"clayco-com.myshopify.com"===window?.Shopify?.shop&&""===e?.productDetails?.onlineStoreUrl)return!1;const t=X?.general?.showOutOfStockProducts;if(t)return!0;const n=e?.productDetails,r=n?.variants?.edges||[];if(we){if(r.some(e=>we.some(t=>t.variantId===e.node.id&&t.quantity>0)))return!0}return r.some(e=>Ne(n,e.node.id)>0)},[X?.general?.showOutOfStockProducts,we,Ne]),Qe=r(()=>{if("productTier"===G&&K.length>0){const e=O?.[E]??[];return Ie?Ae.filter(t=>e.some(e=>e.productId===t.productId&&(e.variantIds.length<1||t.variantIds.includes(e.variantIds?.[0])))&&Ue(t)):e.map(e=>Ae.find(t=>t.productId===e.productId&&(e.variantIds.length<1||t.variantIds.includes(e.variantIds?.[0])))).filter(e=>e&&Ue(e))}return Ae.filter(Ue)},[G,K,O,E,Ae,Ue,Ie]),Ye=Qe;n(()=>{if("productTier"!==G)return;const e=K[E];if(!e)return;if(1!==e.minimumQuantity)return;if(1!==e.products.length)return;if(1!==O?.[E]?.length)return;const t=e.products[0],n=A.find(e=>e.productId===t.productId)?.productDetails;if(!n)return;if(n.variants?.edges?.length>1)return;const r=n.variants?.edges?.find(e=>Ne(n,e.node.id)>0)?.node;if(!r)return;const o=r.id,a=T[E]?.includes(o);if(!a&&(je(o,n,1),E<K.length-(N?0:1))){k(E+1);const e=K?.[E];e?.products?.length>1&&We()}},[G,K,E,A,T,Ne,je]);const Ze=r(()=>ke.filter(e=>{const t=e?.productDetails;return(t.variants?.edges||[]).some(e=>Ne(t,e.node.id)>0)}).length,[ke,Ne]),Ge=r(()=>ke.length-Ze,[ke,Ze]),Xe="bundles"==i.appName?i.pageHeader?.title:i?.title,Ke="bundles"==i.appName?i.pageHeader?.description:i?.subtitle,Je=Ee&&Boolean(X?.byob?.enableProductCategories),et=r(()=>{if(i?.workWithoutPagination)return!1;if(!Je)return!1;if(!x)return!1;const e="productTier"===G?K[E]?.tier:1;if(void 0===e)return!1;const t=x.cursorData?.[e];return t?t.hasNext:L},[i?.workWithoutPagination,Je,x,G,K,E,L]);n(()=>{if(i?.workWithoutPagination)return;if(Je)return;if(!x)return;const{cursorData:e,fetchFn:t}=x,n=K[E]?.tier,r="productTier"===G?n:1;if(e?.[r]&&!e?.[r]?.hasNext||!t)return;const o=new IntersectionObserver(async([n])=>{if(!n.isIntersecting)return;if(L)return;const o=e?.[r]?.cursor||null;if(ie.current!==o){ie.current=o,R(!0);try{const n=await t(oe,r,e?.[r]?.cursor);if(!re.current)return;if(n?.length>0){const e=Object.values(oe).length>0;"productTier"===G?(M(e=>({...e,[E]:[...e[E]||[],...n]})),e||Q(e=>({...e,[E]:[...e[E]||[],...n]})),_(e=>[...e,...n])):(_(e=>[...e,...n]),e||q(e=>[...e,...n]))}}catch(e){console.error("Pagination fetch failed:",e),ie.current=void 0}finally{re.current&&R(!1)}}},{root:null,rootMargin:"300px",threshold:.01}),a=ne.current;return a&&o.observe(a),()=>{a&&o.unobserve(a)}},[i?.workWithoutPagination,Je,x,L,G,E,K,oe]),n(()=>{if(i?.workWithoutPagination)return;if(!Je)return;if(!x)return;const{cursorData:e,fetchFn:t}=x,n=K[E]?.tier,r="productTier"===G?n:1;if(!t)return;const o=le.current;(o.currentProductTier!==E||o.tierType!==G||JSON.stringify(o.appliedFilters)!==JSON.stringify(oe))&&(ie.current=void 0,le.current={appliedFilters:oe,currentProductTier:E,tierType:G});if(!(!e?.[r]||e[r].hasNext))return void R(!1);if(L)return;(async()=>{const n=e?.[r]?.cursor||null;if(ie.current!==n){ie.current=n,R(!0);try{const e=await t(oe,r,n);if(!re.current)return;if(e?.length>0){const t=Object.values(oe).length>0;"productTier"===G?(M(t=>({...t,[E]:[...t[E]||[],...e]})),t||Q(t=>({...t,[E]:[...t[E]||[],...e]})),_(t=>[...t,...e])):(_(t=>[...t,...e]),t||q(t=>[...t,...e]))}}catch(e){console.error("Fetch all products pagination error:",e),ie.current=void 0}finally{re.current&&R(!1)}}})()},[i?.workWithoutPagination,Je,x,E,oe,G,L,K]),n(()=>{if(!Je&&!i?.workWithoutPagination)return;if(et)return;if(!j.current)return;const e=new IntersectionObserver(([e])=>{e.isIntersecting&&V<Qe.length&&W(e=>Math.min(e+20,Qe.length))},{rootMargin:"200px"});return e.observe(j.current),()=>e.disconnect()},[Je,et,V,Qe.length]),n(()=>{W(20)},[E,Qe.length,Je,i?.workWithoutPagination]);const tt=()=>{f?.({eventNameCustom:"bundle_add_to_cart",eventTypeCustom:"clicks",data:{bundleId:i._id,bundleType:"byob-page-bundle",byobBundleType:i.builderTiers?.type??"builder",selectedProducts:l.map(e=>({id:e?.product?.id,title:e?.product?.title,quantity:e?.quantity}))}})};return e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-byob-builder-section",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",rowGap:"15px",marginBottom:"20px",backgroundColor:X.byob.sectionBackgroundColor,..."transparent"!==X.fixedBundle.sectionBackgroundColor&&{padding:"20px"}}},qe?e.createElement("div",{className:"yt-byob-cover-image-container",style:{position:"relative",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",overflow:"hidden",...i?.coverImageVerticalMargin&&{marginBottom:i?.coverImageVerticalMargin,marginTop:i?.coverImageVerticalMargin}}},qe&&e.createElement(td,{coverImageUrl:qe,alt:"Background",styles:{width:"100%",height:"auto",display:"block"}}),e.createElement("div",{className:"yt-byob-cover-image-overlay",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1,display:"flex",flexDirection:"column",alignItems:"center",padding:"20px",width:"90%",maxWidth:"1000px",textShadow:"2px 2px 8px rgba(0, 0, 0, 0.4)"}},e.createElement("span",{style:{lineHeight:"normal",fontSize:X?.byob?.titleFontSize??"3rem",fontWeight:"700",color:X?.byob?.titleTextColor??"#000",marginBottom:"15px",backgroundColor:X?.byob?.titleBackgroundColor??"transparent",width:"100%",textAlign:"center"},className:"bundle-builder-title"},Xe),e.createElement("span",{style:{lineHeight:"normal",fontSize:X?.byob?.subtitleFontSize??"1.5rem",color:X?.byob?.titleTextColor??"#000"},className:"bundle-builder-subtitle"},Ke))):(Xe||Ke)&&e.createElement("div",{className:"yt-byob-header-content",style:{zIndex:1,display:"flex",flexDirection:"column",alignItems:"center",padding:"20px",width:"90%",maxWidth:"1000px"}},Xe&&e.createElement("span",{className:"bundle-builder-title",style:{lineHeight:"normal",fontSize:X?.byob?.titleFontSize??"3rem",fontWeight:"700",color:X?.byob?.titleTextColor??"#000",marginBottom:"15px",textAlign:"center",width:"100%",backgroundColor:X?.byob?.titleBackgroundColor??"transparent"}},Xe),Ke&&e.createElement("span",{className:"bundle-builder-subtitle",style:{lineHeight:"normal",fontSize:X?.byob?.subtitleFontSize??"1.5rem",color:X?.byob?.titleTextColor??"#000"}},Ke)),e.createElement("div",{style:{fontSize:"20px",width:"100%"},className:"products-display"},"productTier"===G&&K.length>0&&X?.byob.productTiersVisibility&&e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-byob-stepper-wrapper"},e.createElement(xd,{currentStep:E,totalSteps:K.length+(N?1:0),tiers:N?[...K,{title:i.personalizedForm?.title||"Personalize",tier:K.length,minimumQuantity:0,products:[],isFormStep:!0}]:K,isMobile:v,primaryColor:X?.general?.primaryColor,primaryTextColorCta:X?.general?.primaryContrastColor,setCurrentProductTier:k,selectedProductsByTier:T,tierNavigation:X.byob.tierNavigation})))),e.createElement("div",{className:"yt-byob-layout-wrapper",style:{display:"flex",flexDirection:"row",width:v?"100%":"90%",marginInline:"auto"}},"sidebar"===X?.byob?.productFiltersDisplay&&!v&&!I&&e.createElement(ad,{showFiltersDrawer:de,handleClose:()=>pe(!1),isAnimating:!1,isMobile:!1,availableFilters:se,appliedFilters:oe,toggleFilter:(e,t)=>{ae(n=>{const r=n[e]||[],o=r.includes(t)?r.filter(e=>e!==t):[...r,t],a={...n,[e]:o.length?o:void 0};return Object.fromEntries(Object.entries(a).filter(([,e])=>void 0!==e))})},clearAllFilters:()=>{ae({}),fe(0),ue(Fe)},applyPriceFilter:()=>{ae(e=>{const t={...e};return t["filter.v.price"]=[`min:${ge}-max:${me}`],t})},priceMin:ge,setPriceMin:fe,priceMax:me,setPriceMax:ue,maxPossiblePrice:Fe,styles:X,products:A,unavailableProductCount:Ge,storeCurrencyCode:i?.storeCurrencyCode,openSections:ye,toggleSection:he}),e.createElement("div",{className:"yt-byob-products-column",style:{display:"flex",flexDirection:"column",flex:1,minWidth:0}},!I&&e.createElement("div",{className:"yt-byob-filters-wrapper",style:{width:"100%",marginBottom:"20px",display:"flex",flexDirection:"column",gap:"20px"}},e.createElement(id,{enableSortAndFilter:i?.enableSortAndFilter??!1,isMobile:v,searchTerm:$e,setSearchTerm:ze,setSortBy:Pe,styles:X,appliedFilters:oe,setAppliedFilters:ae,availableFilters:se,products:A,availableProductCount:Ze,unavailableProductCount:Ge,maxPossiblePrice:Fe,storeCurrencyCode:i?.storeCurrencyCode,sharedFiltersState:{showFilters:de,setShowFilters:pe,priceMax:me,setPriceMax:ue,priceMin:ge,setPriceMin:fe},openSections:ye,toggleSection:he}),i?.customizations?.byob?.enableProductCategories&&Ee&&e.createElement("div",{className:"yt-byob-category-filter-container"},e.createElement(hd,{styles:X,isMobile:v,categories:Ce,activeCategory:ee,onCategoryChange:e=>{te(e)}}))),e.createElement("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:X?.byob?.listingsGap||"12px",justifyContent:de&&"sidebar"===X?.byob?.productFiltersDisplay?"flex-start":"center",width:"100%",height:"fit-content",paddingBottom:p?"100px":"20px"},className:"products-display"},I&&i.personalizedForm?.title?e.createElement(cd,{form:i.personalizedForm,formData:F,setFormData:B,isUploading:$,setIsUploading:z}):0!==Ye?.length||L||et?(Je?Qe.slice(0,V):Qe).map((t,n)=>{if("productTier"===G){const r=(K[E]?.minimumQuantity??0)>(T[E]?.length??0),o=Ae.find(e=>e.productId===t.productId&&(t.variantIds.length<1||e.variantIds.includes(t.variantIds[0])));return o?e.createElement(yd,{bundle:i,idx:n,key:`tier-${E}-${t?.variantIds?.[0]??t.productId}-${n}`,product:o?.productDetails,handleAddToBundle:je,hideAddToBundle:!r,remainingQuantity:He-m,themeColor:i?.dealTextColor,handleRemoveItem:e=>Ve(e,E),selecteditems:l,transitionActive:Re,customVariantsQuantity:we,currentProductTier:K[E],showFreebieTierProductPrices:i?.customStoreDetails?.showFreebieTierProductPrices,tierIndex:E}):null}return e.createElement(yd,{bundle:i,idx:n,key:`card-${t.productId}-${n}`,product:t?.productDetails,handleAddToBundle:je,hideAddToBundle:m>=He,remainingQuantity:He-m,themeColor:i?.dealTextColor,handleRemoveItem:e=>u(e),selecteditems:l,transitionActive:Re,customVariantsQuantity:we,tierIndex:E})}):e.createElement("div",{className:"yt-byob-empty-state",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",padding:"40px 20px",gap:"16px"}},e.createElement("p",{style:{fontSize:"20px",color:"#333",textAlign:"center",margin:0}},Object.values(oe).length>0?"No products match your filters":"No products found"),Object.values(oe).length>0&&e.createElement("button",{onClick:()=>{ae({}),fe(0),ue(Fe)},style:{padding:"8px 16px",background:X?.general?.primaryColor||"#333",color:"white",border:"none",borderRadius:X?.byob?.borderRadius||"8px",cursor:"pointer",fontWeight:600,fontSize:"14px"}},"Clear All Filters")),!I&&(L||et)&&e.createElement("div",{className:"yt-byob-loading-wrapper",style:{width:"100%",display:"flex",justifyContent:"center",padding:"20px"}},e.createElement(Te,{color:X?.general?.primaryColor||"#333",size:30})),!Je&&!i?.workWithoutPagination&&e.createElement("div",{ref:ne,className:"yt-byob-pagination-observer",style:{height:"1px",width:"100%",display:"block"}},e.createElement("span",null)),(Je||i?.workWithoutPagination)&&!et&&e.createElement("div",{ref:j,className:"yt-byob-virtualFetchAll-observer",style:{height:"1px",width:"100%",display:"block"}},e.createElement("span",null))),!p&&e.createElement(Uc,{builderTiers:i?.builderTiers,showNextStep:D,handleAddToCart:async e=>{if(D)return k(E+1),void We();const t={};N&&Object.entries(F).forEach(([e,n])=>{const r=e.split("|").pop()?.replace(/^f_\d+$/,"")||e;"string"==typeof n&&n.trim()?t[r]=n:n&&"object"==typeof n&&"url"in n&&(t[r]=n.url)}),await c(e,t),tt()},minimumQuantity:Se,selectedProducts:l,showProductDetailsInTracker:i.showProductDetailsInTracker,handleRemoveItem:u,handleRemoveItemProductTier:Ve,selectedItemsQuantity:m,percentageOff:i.percentageOff,loading:d,bundleSubtotal:g,amountOff:i.amountOff,styles:i.customizations,dealAmount:i.dealAmount,discountType:i.discountType,themeColor:i?.dealTextColor??"#333",primaryTextColorCta:i?.primaryTextColorCta??"#fff",cornerRadiusType:i?.cornerRadiusType??"",selectedProductsByTier:T,renderingOnPage:p,isUploading:$}),p&&e.createElement("div",{className:"yt-byob-sticky-tracker-wrapper",style:{width:"100%",marginTop:"20px",position:"sticky",bottom:"10px",zIndex:999}},e.createElement(Uc,{showNextStep:D,handleAddToCart:async e=>{if(D)return k(E+1),void We();const t={};N&&Object.entries(F).forEach(([e,n])=>{const r=e.split("|").pop()?.replace(/^f_\d+$/,"")||e;"string"==typeof n&&n.trim()?t[r]=n:n&&"object"==typeof n&&"url"in n&&(t[r]=n.url)}),await c(e,t),tt()},minimumQuantity:Se,builderTiers:i?.builderTiers,selectedProducts:l,showProductDetailsInTracker:i.showProductDetailsInTracker,loading:d,handleRemoveItem:u,handleRemoveItemProductTier:Ve,percentageOff:i.percentageOff,selectedItemsQuantity:m??0,bundleSubtotal:g??{price:0,compareAtPrice:0},amountOff:i.amountOff,styles:i.customizations,dealAmount:i.dealAmount,discountType:i.discountType,themeColor:X?.general.primaryColor||"#000",primaryTextColorCta:X.general.primaryContrastColor??"#fff",cornerRadiusType:i?.cornerRadiusType??"",selectedProductsByTier:T,renderingOnPage:p,isUploading:$})))),_e&&void 0!==m&&(()=>{let t=m<i.minimumQuantity;return"productTier"==G?t=(K[E]?.minimumQuantity??0)>(T[E]?.length??0):"offerTier"==G&&(t=m<J.reduce((e,t)=>e+t.minimumQuantity,0)),e.createElement(ed,{bundleType:"byob",handleAddToBundle:je,ref:Me,remainingQuantity:i.minimumQuantity-m,hideAddToBundle:!t,disableQuantitySelector:i?.disableQuantitySelector??!1,selectedProducts:l,selectedProductsByTier:T,themeColor:X?.general.primaryColor||"#000",primaryTextColorCta:i?.customizations?.general.primaryContrastColor??"#fff",primaryBackgroundColorCta:X?.general.primaryColor||"#000",cornerRadius:i?.customizations.byob.borderRadius,styles:i.customizations,reviewRatingType:X?.fixedBundle?.productRatingsDisplay??i?.reviewRatingType,customVariantsQuantity:we,bundleProductsCustomQuantity:i?.customProductsQuantity,isFreebieTier:K?.[E]?.isFreebieTier,showFreebieTierProductPrices:i?.customStoreDetails?.showFreebieTierProductPrices,bundleVariantOptions:i?.variantOptions})})(),e.createElement(ud,{isOpen:Boolean(d)&&"animated"===i?.customizations?.general?.atcLoaderType})))},wd="\n@keyframes cartATCFadeIn {\n 0% {\n opacity: 0;\n transform: scale(0.96);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n@keyframes cartATCSlideIn {\n 0% {\n transform: translateX(-150%);\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n 100% {\n transform: translateX(0);\n opacity: 1;\n }\n}\n\n@keyframes cartATCSlideOut {\n 0% {\n transform: translateX(0);\n opacity: 1;\n }\n 80% {\n opacity: 1;\n }\n 100% {\n transform: translateX(150%);\n opacity: 0;\n }\n}\n\n@keyframes cartATCBounce {\n 0%, 100% {\n transform: translateY(0);\n }\n 50% {\n transform: translateY(1.5px);\n }\n}\n\n@keyframes cartATCItemDrop1 {\n 0%, 5% {\n transform: translate3d(-50%, -22px, 0) scale(0.4);\n opacity: 0;\n }\n 20% {\n transform: translate3d(-50%, -10px, 0) scale(0.95);\n opacity: 1;\n }\n 55% {\n transform: translate3d(-50%, 3px, 0) scale(0.7);\n opacity: 1;\n }\n 75%, 100% {\n transform: translate3d(-50%, 7px, 0) scale(0.3);\n opacity: 0;\n }\n}\n\n@keyframes cartATCItemDrop2 {\n 0%, 30% {\n transform: translate3d(-50%, -22px, 0) scale(0.4);\n opacity: 0;\n }\n 45% {\n transform: translate3d(-50%, -10px, 0) scale(0.95);\n opacity: 1;\n }\n 80% {\n transform: translate3d(-50%, 3px, 0) scale(0.7);\n opacity: 1;\n }\n 95%, 100% {\n transform: translate3d(-50%, 7px, 0) scale(0.3);\n opacity: 0;\n }\n}\n",vd=({loading:r,color:a="currentColor",size:i=24,children:l,className:s="",style:c,onComplete:d})=>{const[p,m]=t(r?"entering":"idle"),u=o(null),g=o(null);if(n(()=>(r?(g.current&&clearTimeout(g.current),m("entering"),u.current=setTimeout(()=>{m("filling")},400)):(u.current&&clearTimeout(u.current),m(e=>"filling"===e||"entering"===e?(g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{m("idle"),d?.()},450),"exiting"):"idle")),()=>{u.current&&clearTimeout(u.current),g.current&&clearTimeout(g.current)}),[r,d]),"idle"===p)return l?e.createElement("span",{className:s,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",animation:"cartATCFadeIn 0.3s ease-out forwards",...c}},e.createElement("style",null,wd),l):null;const f="entering"===p,y="exiting"===p,x={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",overflow:"hidden",height:i+6,paddingLeft:8,paddingRight:8,verticalAlign:"middle",width:"100%",...c},h={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",animation:f?"cartATCSlideIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards":y?"cartATCSlideOut 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards":"cartATCBounce 1.2s ease-in-out infinite"};return e.createElement("span",{className:`yt-cart-atc-loader ${s}`,style:x},e.createElement("style",null,wd),e.createElement("div",{style:h},e.createElement("svg",{width:i,height:Math.round(24*i/28),viewBox:"0 0 28 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1 2h4l2.6 13.2a2 2 0 002 1.6h12.8a2 2 0 002-1.6L26 6H6.6",stroke:a,strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("circle",{cx:"10.5",cy:"20.5",r:"1.8",fill:a}),e.createElement("circle",{cx:"21.5",cy:"20.5",r:"1.8",fill:a})),("filling"===p||"entering"===p||"exiting"===p)&&e.createElement(e.Fragment,null,e.createElement("div",{style:{position:"absolute",top:1,left:"56%",width:9,height:9,animation:"cartATCItemDrop1 1.4s ease-in-out infinite",pointerEvents:"none"}},e.createElement("svg",{width:"9",height:"9",viewBox:"0 0 10 10",fill:"none"},e.createElement("rect",{x:"1",y:"2",width:"8",height:"7",rx:"1",fill:"#f5a623",stroke:a,strokeWidth:"1"}),e.createElement("path",{d:"M5 2v7",stroke:a,strokeWidth:"1"}))),e.createElement("div",{style:{position:"absolute",top:1,left:"56%",width:9,height:9,animation:"cartATCItemDrop2 1.4s ease-in-out infinite",pointerEvents:"none"}},e.createElement("svg",{width:"9",height:"9",viewBox:"0 0 10 10",fill:"none"},e.createElement("rect",{x:"1",y:"2",width:"8",height:"7",rx:"1",fill:"#4a90d9",stroke:a,strokeWidth:"1"}),e.createElement("path",{d:"M1 5h8",stroke:a,strokeWidth:"1"}))))))},Cd=({isOpen:r,onClose:o,formConfig:a,onCheckout:i,cta:l,isMobile:s})=>{const[c,d]=t({}),[p,m]=t(!1);n(()=>{r||d({})},[r]);const u=e=>{if(p)return;const t={};Object.entries(c).forEach(([e,n])=>{const r=e.split("|").pop()?.replace(/^f_\d+$/,"")||e;"string"==typeof n&&n.trim()?t[r]=n:n&&"object"==typeof n&&"url"in n&&(t[r]=n.url)}),i(e?{}:t)};if(!r)return null;const g=e.createElement("div",{className:"yt-personalized-form-modal-overlay",onClick:o,style:{position:"fixed",top:0,left:0,right:0,bottom:0,width:"100vw",height:"100vh",background:"rgba(0, 0, 0, 0.4)",zIndex:9999,display:"flex",alignItems:s?"flex-end":"center",justifyContent:"center"}},e.createElement("style",null,"\n @keyframes slideUp {\n from { transform: translateY(100%); }\n to { transform: translateY(0); }\n }\n @keyframes fadeIn {\n from { opacity: 0; transform: scale(0.95); }\n to { opacity: 1; transform: scale(1); }\n }\n "),e.createElement("div",{className:"yt-personalized-form-modal",onClick:e=>e.stopPropagation(),style:{background:"white",width:s?"100vw":"500px",maxWidth:s?"100vw":"560px",height:s?"80vh":"auto",maxHeight:s?"80vh":"90vh",borderRadius:s?"20px 20px 0 0":"20px",display:"flex",flexDirection:"column",overflow:"hidden",zIndex:999,animation:s?"slideUp 0.3s ease-out":"fadeIn 0.2s ease-out"}},e.createElement("div",{className:"yt-personalized-form-modal-header",style:{width:"100%",padding:s?"20px 20px 16px":"18px 20px",fontWeight:700,fontSize:s?"18px":"16px",textAlign:"center",position:"relative",borderBottom:"1px solid #eee",flexShrink:0,backgroundColor:"#ffffff",color:"#1a1a1a",boxSizing:"border-box",lineHeight:"1.4"}},a.title||"Personalization",!s&&e.createElement("button",{className:"yt-personalized-form-modal-close",onClick:o,style:{position:"absolute",right:"16px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",fontSize:"24px",lineHeight:1,cursor:"pointer",color:"#666",padding:"4px"}},"×")),e.createElement("div",{className:"yt-personalized-form-modal-body",style:{flex:1,overflowY:"auto",padding:s?"20px 20px":"16px 20px"}},e.createElement(cd,{form:a,formData:c,setFormData:d,isUploading:p,setIsUploading:m})),e.createElement("div",{className:"yt-personalized-form-modal-footer",style:{padding:s?"12px 16px":"12px 24px 16px",borderTop:"1px solid #eee",flexShrink:0,background:"white",display:"flex",flexDirection:"column",alignItems:"center",gap:"10px"}},e.createElement("button",{className:"yt-personalized-form-submit-button",onClick:()=>{u(),o()},disabled:p,style:{width:"100%",fontSize:"15px",fontWeight:700,textAlign:"center",padding:"15px 0",border:"none",borderRadius:"10px",cursor:p?"not-allowed":"pointer",opacity:p?.7:1,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:l.backgroundColor,color:l.textColor,letterSpacing:"0.01em"}},p?e.createElement(Te,{color:l.textColor,size:15}):"Submit"),e.createElement("button",{className:"yt-personalized-form-skip-button",onClick:()=>{u(!0),o()},style:{background:"none",border:"none",fontSize:"14px",fontWeight:600,color:"#1a1a1a",cursor:"pointer",padding:"4px 8px",textAlign:"center"}},"Add without customization"))));return R.createPortal(g,document.body)},Ed=({product:t,selectedVariantId:n,onVariantChange:o,styles:a,originalPrice:i,dealPrice:l,totalPriceSum:s,isVertical:c=!1,variantOptions:d,storeCurrencyCode:p,reviewRatingType:m,productIndex:u,setActiveModalIndex:g})=>{const f=he(Qc),y=r(()=>e=>{const n=t?.productDetails?.variants?.edges?.find(t=>t.node.id===e),r=n?.node;return r?t?.productDetails.tracksInventory&&r.inventoryItem?.tracked?r.inventoryQuantity>0?r.inventoryQuantity:r.inventoryQuantity<=0&&"continue"===r.inventoryPolicy?.toLocaleLowerCase()?1/0:0:1/0:0},[t?.productDetails]),x=t?.productDetails?.variants?.edges?.find(e=>e?.node?.id===n)?.node;y(n);const b=r(()=>{if(x?.title&&t?.productDetails.options){const e=x.title.split(" / ");if(e.length===t?.productDetails.options.length)return e}return t?.productDetails.options?.map(e=>e.values[0])||[]},[x,t?.productDetails.options]),w=e=>{o(e)};return c?e.createElement("div",{className:"yt-comboBundle-product-card-vertical",style:{display:"flex",flexDirection:"column",alignItems:"center",lineHeight:"normal",width:"165px",backgroundColor:"#F6F6F6",borderRadius:"20px",border:"1px solid #B3B3B3",boxShadow:"4px 4px 0px -1px #00000033",overflow:"hidden"}},e.createElement("div",{className:"yt-comboBundle-product-card-image-container-vertical",style:{position:"relative",width:"100%"}},a.comboBundle.subProductsImageVisibility&&e.createElement(e.Fragment,null,e.createElement("img",{className:"yt-comboBundle-product-image-vertical",src:lu(x?.image?.url||t?.productDetails?.featuredMedia?.preview?.image?.url||"/placeholder.svg"),alt:t?.productDetails?.featuredMedia?.alt,width:165,height:165,onClick:e=>{if(a?.general?.redirectToPDP&&t?.productDetails?.handle){e.stopPropagation();const n=window?.Shopify?.routes?.root||"/";window.location.href=`${n}products/${t?.productDetails.handle}`}else if(!a?.general?.redirectToPDP&&t?.productDetails){e.stopPropagation(),void 0!==u&&g?.(u);const n={...t.productDetails,selectedVariant:x||t.productDetails.variants?.edges?.[0]?.node};f(n)}},style:{cursor:"pointer",objectFit:"cover",borderRadius:"20px",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",height:"100%",aspectRatio:a.general?.imageAspectRatio||"1/1"}}),e.createElement("div",{className:"yt-comboBundle-product-variant-selector-container-vertical",style:{marginTop:"8px",position:"absolute",bottom:"10px",left:"5px",right:"5px"}},t?.productDetails?.variants?.edges?.filter(e=>"Default Title"!==e.node.title)?.length>0&&e.createElement(e.Fragment,null,e.createElement("select",{className:"yt-comboBundle-product-variant-select-vertical",value:n,onChange:e=>w(e.target.value),style:{padding:"6px",border:"1px solid #ddd",backgroundColor:"#fff",color:"#333",width:"100%",appearance:"none",marginRight:"30px",fontSize:"12px",fontWeight:600}},t?.productDetails?.variants?.edges.map(t=>{const n=y(t?.node?.id);return!1===a?.general?.showOutOfStockVariants&&0===n?null:e.createElement("option",{key:t?.node?.id,value:t?.node?.id,disabled:0===n,className:"yt-comboBundle-product-variant-option"},t?.node?.title)})),e.createElement("div",{className:"yt-comboBundle-product-variant-select-icon-vertical",style:{position:"absolute",right:"1px",top:"2px",bottom:"0px",pointerEvents:"none",backgroundColor:"#F3F3F3",width:"15%",height:"calc(100% - 4px)",display:"flex",justifyContent:"center",alignItems:"center"}},e.createElement(h,null)))))),(a.comboBundle.subProductsProductTitleVisibility||a.comboBundle.subProductsProductPriceVisibility||m)&&e.createElement("div",{className:"yt-comboBundle-product-info-container-vertical",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"40px",width:"100%",paddingBlock:"5px"}},a.comboBundle.subProductsProductTitleVisibility&&e.createElement("span",{className:"yt-comboBundle-product-title-vertical",style:{fontSize:"12px",color:"#333",fontWeight:"600",lineHeight:"normal",textAlign:"center",width:"fit-content"}},t?.productDetails?.title),"ratingOnly"===m&&(t?.productDetails.rating?.averageRating??0)>0&&e.createElement("div",{className:"yt-comboBundle-product-ratings",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"12px",color:"#3f3f3f",paddingBlock:"6px",lineHeight:"normal"}},e.createElement(We,{color:"gold",size:14})," ",e.createElement("span",{style:{marginLeft:6,lineHeight:"normal"}},t?.productDetails?.rating?.averageRating," ",e.createElement("span",null,"rating"))),"ratingAndReviewCount"===m&&(t?.productDetails?.rating?.averageRating??0)>0&&e.createElement("div",{className:"yt-comboBundle-product-ratings-count",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"12px",color:"#3f3f3f",paddingBlock:"6px",lineHeight:"normal",fontWeight:"500"}},e.createElement(We,{color:"gold",size:14})," ",t?.productDetails?.rating?.averageRating,e.createElement(De,{className:"yt-comboBundle-verified-icon",size:14,style:{color:"dodgerblue",marginLeft:"4px"}})," ","(",t?.productDetails?.rating?.ratingCount," ",e.createElement("span",{style:{marginLeft:"2px"}},"reviews")," ",")"),a.comboBundle.subProductsProductPriceVisibility&&e.createElement("div",{className:"yt-comboBundle-product-price-container-vertical",style:{display:"flex",alignItems:"center",gap:"8px",lineHeight:"normal",fontSize:"14px"}},e.createElement("span",{className:"yt-comboBundle-product-deal-price-vertical",style:{lineHeight:"normal"}},iu(a.general.currencySymbol),au((Number(x?.price||0)/Number(s)*Number(l)).toFixed(2))),!1!==a.comboBundle.discountBadgeVisibility&&("discount-on-compare"===a.comboBundle.discountBadgeDisplay?e.createElement("span",{className:"yt-comboBundle-product-original-price-horizontal",style:{textDecoration:"line-through",color:"#999",fontSize:"14px",lineHeight:"normal"}},iu(a.general.currencySymbol),au(x?.compareAtPrice?x.compareAtPrice:x?.price)):Number(l)<Number(s)&&e.createElement("span",{className:"yt-comboBundle-product-original-price-horizontal",style:{textDecoration:"line-through",color:"#999",fontSize:"14px",lineHeight:"normal"}},iu(a.general.currencySymbol),au(x?.price)))))):e.createElement("div",{className:"yt-comboBundle-product-card-horizontal",style:{display:"flex",alignItems:"center",gap:"16px",padding:"4px",lineHeight:"normal",borderRadius:"8px",transition:"background-color 0.3s",width:"100%",border:"1px solid transparent",..."right"===a.comboBundle.infoAlignment&&{flexDirection:"row-reverse"},..."center"===a.comboBundle.infoAlignment&&{justifyContent:"center"}},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#fafafa",e.currentTarget.style.border="1px solid #DFDFDF"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.border="1px solid transparent"}},a.comboBundle.subProductsImageVisibility&&e.createElement("div",{className:"yt-comboBundle-product-image-wrapper-horizontal"},e.createElement("img",{className:"yt-comboBundle-product-image-horizontal",src:lu(x?.image?.url||t?.productDetails?.featuredMedia?.preview?.image?.url||"/placeholder.svg"),alt:t?.productDetails?.featuredMedia?.alt,height:80,onClick:e=>{if(a?.general?.redirectToPDP&&t?.productDetails?.handle){e.stopPropagation();const n=window?.Shopify?.routes?.root||"/";window.location.href=`${n}products/${t?.productDetails.handle}`}else if(!a?.general?.redirectToPDP&&t?.productDetails){e.stopPropagation();const n={...t.productDetails,selectedVariant:x||t.productDetails.variants?.edges?.[0]?.node};f(n)}},style:{cursor:"pointer",objectFit:"cover",borderRadius:"10px",border:"1px solid #DEDEDE",aspectRatio:a?.general?.imageAspectRatio||"1 / 1",height:"100px"}})),e.createElement("div",{className:"yt-comboBundle-product-info-horizontal",style:{display:"flex",flexDirection:"column",alignItems:"left"===a.comboBundle?.infoAlignment?"flex-start":"right"===a.comboBundle?.infoAlignment?"flex-end":"center"===a.comboBundle?.infoAlignment?"flex-start":void 0}},a.comboBundle.subProductsProductTitleVisibility&&e.createElement("span",{className:"yt-comboBundle-product-title-horizontal",style:{fontSize:"14px",fontWeight:"600",lineHeight:"normal",display:"flex",alignItems:"center",gap:"8px"}},e.createElement("span",{className:"yt-comboBundle-product-title-text"}," ",t?.productDetails?.title," "),"dropdown"!==a.comboBundle.comboVariantTypeSelector&&t?.productDetails.variants.edges.filter(e=>"Default Title"!==e.node.title).length>0&&d&&b&&e.createElement("span",{className:"yt-comboBundle-product-variant-tag-horizontal",style:{fontSize:"10px",color:"#666",backgroundColor:"#F4F4F4",padding:"2px 8px",borderRadius:"10px",border:"1px solid #ddd"}},b.length>1?b.join(" / "):b)),"ratingOnly"===m&&(t?.productDetails.rating?.averageRating??0)>0&&e.createElement("div",{className:"yt-comboBundle-product-ratings",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"12px",color:"#3f3f3f",paddingTop:"4px",paddingBottom:"0px",lineHeight:"normal"}},e.createElement(We,{color:"gold",size:14})," ",e.createElement("span",{style:{marginLeft:6,lineHeight:"normal"}},t?.productDetails?.rating?.averageRating," ",e.createElement("span",null,"rating"))),"ratingAndReviewCount"===m&&(t?.productDetails?.rating?.averageRating??0)>0&&e.createElement("div",{className:"yt-comboBundle-product-ratings-count",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"12px",color:"#3f3f3f",paddingTop:"4px",paddingBottom:"0px",lineHeight:"normal",fontWeight:"500"}},e.createElement(We,{color:"gold",size:14})," ",t?.productDetails?.rating?.averageRating,e.createElement(De,{className:"yt-comboBundle-verified-icon",size:14,style:{color:"dodgerblue",marginLeft:"4px"}})," ","(",t?.productDetails?.rating?.ratingCount," ",e.createElement("span",{style:{marginLeft:"2px"}},"reviews")," ",")"),a.comboBundle.subProductsProductPriceVisibility&&e.createElement("div",{className:"yt-comboBundle-product-price-wrapper-horizontal",style:{display:"flex",gap:"8px",marginTop:"5px",alignItems:"baseline"}},e.createElement("span",{className:"yt-comboBundle-product-deal-price-horizontal",style:{lineHeight:"normal"}},iu(a.general.currencySymbol),au((Number(x?.price||0)/Number(s)*Number(l)).toFixed(2))),!1!==a.comboBundle.discountBadgeVisibility&&("discount-on-compare"===a.comboBundle.discountBadgeDisplay?e.createElement("span",{className:"yt-comboBundle-product-original-price-horizontal",style:{textDecoration:"line-through",color:"#999",fontSize:"14px",lineHeight:"normal"}},iu(a.general.currencySymbol),au(x?.compareAtPrice?x?.compareAtPrice:x?.price)):Number(l)<Number(s)&&e.createElement("span",{className:"yt-comboBundle-product-original-price-horizontal",style:{textDecoration:"line-through",color:"#999",fontSize:"14px",lineHeight:"normal"}},iu(a.general.currencySymbol),au(x?.price)))),t?.productDetails.variants.edges.length>1&&("dropdown"===a.comboBundle.comboVariantTypeSelector?e.createElement("div",{className:"yt-comboBundle-product-variant-dropdown-horizontal",style:{display:"flex",gap:"8px",flexWrap:"wrap",lineHeight:"normal",marginTop:"10px"}},e.createElement("select",{className:"yt-comboBundle-product-variant-select-horizontal",value:n,onChange:e=>w(e.target.value),style:{padding:"6px",border:"1px solid #ddd",backgroundColor:"#fff",color:"#333",fontSize:"12px",fontWeight:600,borderRadius:"4px"}},t?.productDetails.variants.edges.map(t=>{const n=y(t?.node?.id);return!1===a?.general?.showOutOfStockVariants&&0===n?null:e.createElement("option",{key:t?.node?.id,value:t?.node?.id,disabled:0===n,className:"yt-comboBundle-product-variant-option"},t?.node?.title)})),e.createElement("div",{className:"yt-comboBundle-product-variant-select-icon-horizontal",style:{position:"absolute",right:"1px",top:"2px",bottom:"0px",pointerEvents:"none",backgroundColor:"#F3F3F3",width:"15%",height:"calc(100% - 4px)",display:"flex",justifyContent:"center",alignItems:"center"}},e.createElement(h,null))):t?.productDetails.options.length>0?e.createElement(e.Fragment,null,t?.productDetails.options.map((n,r)=>e.createElement("div",{key:n.name,className:"yt-comboBundle-product-option-group-horizontal",style:{...n?.values?.length>1&&{marginTop:"10px"},display:"flex",flexDirection:"row",gap:"8px",alignItems:"center"}},t?.productDetails.options.length>1&&n?.values?.length>1&&e.createElement("label",{className:"yt-comboBundle-product-option-label",style:{fontSize:"12px",fontWeight:"500",color:"#333"}},n.name,":"),n?.values?.length>1&&e.createElement("div",{className:"yt-comboBundle-product-option-values-horizontal",style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px",flexWrap:"wrap"}},n.values.map(o=>{const i=[...b];i[r]=o;const l=t?.productDetails.options.length>0?i.join(" / "):i[r],s=t?.productDetails.variants.edges.find(e=>e.node.title===l)?.node,c=0===(s?y(s.id):0);if(!1===a?.general?.showOutOfStockVariants&&c)return null;const p=b[r]===o,m=d&&d?.options?.find(e=>e.name===n.name);return m&&"color"===m?.type?e.createElement("button",{key:o,className:`yt-comboBundle-product-option-button-color ${p?"yt-comboBundle-product-option-button-selected":""} ${c?"yt-comboBundle-product-option-button-disabled":""}`,onClick:()=>{!c&&s&&w(s.id)},disabled:c,style:{borderRadius:"50%",padding:"1px",backgroundColor:"white",border:p&&!c?`1px solid ${a.general?.ctaBackgroundColor}`:"1px solid transparent",opacity:c?.5:1,cursor:c?"not-allowed":"pointer"}},m?.values.find(e=>e.name===o)?.value?e.createElement("div",{className:"yt-comboBundle-product-option-color-swatch",style:{width:p&&!c?"26px":"24px",height:p&&!c?"26px":"24px",borderRadius:"50%",backgroundColor:m?.values.find(e=>e.name===o)?.value}},e.createElement("span",null)):e.createElement("span",{key:o,className:"yt-comboBundle-product-option-text",style:{padding:"4px 8px",border:p&&!c?`1px solid ${a.general?.ctaBackgroundColor}`:c?"1px solid #ccc":"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:p&&!c?"#F7F7F7":"transparent",color:c?"#ccc":"#707070",fontSize:"10px",fontWeight:"600"}},o)):m&&"image"===m?.type?e.createElement("button",{key:o,className:`yt-comboBundle-product-option-button-image ${p?"yt-comboBundle-product-option-button-selected":""} ${c?"yt-comboBundle-product-option-button-disabled":""}`,onClick:()=>{!c&&s&&w(s.id)},disabled:c,style:{border:p&&!c?`1px solid ${a.general?.ctaBackgroundColor}`:"1px solid #E4E4E4",borderRadius:"100%",backgroundColor:p&&!c?"#F7F7F7":"transparent",cursor:c?"not-allowed":"pointer",padding:"0px",width:p&&!c?"26px":"24px",height:p&&!c?"26px":"24px",overflow:"hidden",opacity:c?.5:1}},m?.values.find(e=>e.name===o)?.value?e.createElement("img",{className:"yt-comboBundle-product-option-image",src:lu(m?.values.find(e=>e.name===o)?.value||"/placeholder.svg"),alt:o,style:{width:p&&!c?"26px":"24px",height:p&&!c?"26px":"24px",objectFit:"cover",borderRadius:"100%",aspectRatio:"1/1"}}):e.createElement("span",{key:o,className:"yt-comboBundle-product-option-text",style:{padding:"4px 8px",border:p&&!c?`1px solid ${a.general?.ctaBackgroundColor}`:c?"1px solid #ccc":"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:p&&!c?"#F7F7F7":"transparent",color:c?"#ccc":"#707070",fontSize:"10px",fontWeight:"600"}},o)):e.createElement("button",{key:o,className:`yt-comboBundle-product-option-button-text ${p?"yt-comboBundle-product-option-button-selected":""} ${c?"yt-comboBundle-product-option-button-disabled":""}`,onClick:()=>{!c&&s&&w(s.id)},disabled:c,style:{padding:"4px 8px",border:p&&!c?`1px solid ${a.general?.ctaBackgroundColor}`:c?"1px solid #ccc":"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:p&&!c?"#F7F7F7":"transparent",color:c?"#ccc":"#707070",cursor:c?"not-allowed":"pointer",fontSize:"10px",fontWeight:"600",opacity:c?.5:1}},o)}))))):e.createElement(e.Fragment,null,t?.productDetails?.variants?.edges?.length>1&&e.createElement("div",{className:"yt-comboBundle-product-variant-buttons-horizontal",style:{display:"flex",gap:"8px",flexWrap:"wrap",lineHeight:"normal",marginTop:"10px"}},t?.productDetails?.variants?.edges.map(t=>{const r=0===y(t?.node?.id);return!1===a?.general?.showOutOfStockVariants&&r?null:e.createElement("button",{key:t?.node?.id,className:`yt-comboBundle-product-variant-button ${n===t?.node?.id?"yt-comboBundle-product-variant-button-selected":""} ${r?"yt-comboBundle-product-variant-button-disabled":""}`,onClick:()=>w(t?.node?.id),disabled:r,style:{padding:"4px 8px",border:n===t?.node?.id?`1px solid ${a.general?.ctaBackgroundColor}`:"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:n===t?.node?.id?"#F7F7F7":"transparent",color:r?"#ccc":"#707070",cursor:r?"not-allowed":"pointer",fontSize:"12px",fontWeight:"500",opacity:r?.5:1}},t?.node?.title)}))))))},kd=({bundle:o,addToCartFunction:a,dispatchAnalyticsEvent:i})=>{const l=r(()=>{const e="undefined"!=typeof window&&"clayco-com.myshopify.com"===window?.Shopify?.shop,t=o.products?.filter(t=>{if(e&&""===t?.productDetails?.onlineStoreUrl)return!1;const n=t?.productDetails?.status?.toLowerCase();return!n||("active"===n||"unlisted"===n)})||[];if(!t.some(e=>e.quantity&&e.quantity>1))return{...o,products:t};const n=t.reduce((e,t)=>{const n=t.quantity||1;for(let r=0;r<n;r++)e.push(t);return e},[]);return{...o,products:n}},[o]),[s,c]=t(!1),[d,p]=t(window.innerWidth<786),[m,u]=t(!1),[g,f]=t(null),y=r(()=>(e,t)=>{const n=e?.variants?.edges?.find(e=>e.node.id===t),r=n?.node;return r?e.tracksInventory&&r.inventoryItem?.tracked?r.inventoryQuantity>0?r.inventoryQuantity:r.inventoryQuantity<=0&&"continue"===r.inventoryPolicy?.toLowerCase()?1/0:0:1/0:0},[]),[x,h]=t(()=>{const e={};return l.products.forEach((t,n)=>{const r=t?.productDetails?.variants?.edges?.find(e=>y(t?.productDetails,e?.node?.id)>0)?.node;e[n]=r?r.id:t?.productDetails?.variants?.edges[0]?.node?.id}),e}),[b,w]=t(null);n(()=>{if(b){const e=setTimeout(()=>w(null),2e3);return()=>clearTimeout(e)}},[b]);const v=l.products?.every((e,t)=>{const n=x[t];return y(e?.productDetails,n)>0});n(()=>(a&&(window.ytComboBundle={bundle:l,addToCart:a,selectedVariants:x},window.dispatchEvent(new CustomEvent("yt-combo-bundle-updated",{detail:window.ytComboBundle}))),()=>{window.ytComboBundle=void 0,window.dispatchEvent(new CustomEvent("yt-combo-bundle-updated",{detail:void 0}))}),[l,a,x]);const C=(e,t)=>{h(n=>({...n,[e]:t}))},E=async e=>{const t=Object.entries(x).map(([e])=>({id:l.products[parseInt(e)].productId,title:l.products[parseInt(e)]?.productDetails?.title}));i?.({eventNameCustom:"bundle_add_to_cart",eventTypeCustom:"clicks",data:{bundleId:l._id,bundleType:"combo-bundle",selectedProducts:t}});try{if(c(!0),w(null),!a)return console.error("[ComboBundle.tsx] No addToCartFunction available"),void c(!1);const t=Object.entries(x).map(([e,t])=>{const n=l.products[parseInt(e)],r=n?.productDetails.variants.edges.find(e=>e.node.id===t)?.node;return r?{variantId:t,price:Number(r.price)}:null}).filter(e=>null!==e),n=Object.values(x);await a(Number(N),n,Number(F),t,e)}catch(e){console.error("[ComboBundle.tsx] Error adding to cart:",e),w(cc(e))}c(!1)},k=l.customizations,T=k?.comboBundle?.discountBadgeDisplay||"discount-on-compare",S=k?.comboBundle?.discountBadgeVisibility,{originalPrice:N,dealPrice:F,offerValue:B,totalPriceSum:$,offerPercentage:z}=r(()=>{const{price:e,compareAtPrice:t}=Object.entries(x).reduce((e,[t,n])=>{const r=l.products[parseInt(t)],o=r?.productDetails.variants.edges?.find(e=>e.node.id===n)?.node,a=parseFloat(o?.price??"0"),i=parseFloat(o?.compareAtPrice||a.toString());return e.price+=a,e.compareAtPrice+=i,e},{price:0,compareAtPrice:0}),n=!1===S?e:"discount-on-price"===T?e:t;let r=e;l?.percentageOff?r=e*(1-l.percentageOff/100):l?.dealAmount?r=l.dealAmount:l?.amountOff&&(r=e-l.amountOff);const o=n-r,a=n>0?Math.round((n-r)/n*100):0;return{originalPrice:n.toFixed(2),dealPrice:r.toFixed(2),offerValue:o.toFixed(2),totalPriceSum:e.toFixed(2),offerPercentage:a}},[x,l.products,l.percentageOff,l.dealAmount,l.amountOff,T,S]);n(()=>{i?.({eventNameCustom:"block_visibility",eventTypeCustom:"views",data:{bundleId:l._id,bundleType:"combo-bundle"}});const e=()=>{p(window.innerWidth<786)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);const I=k.comboBundle?.comboCardStyle||"auto",P="vertical"===I||"auto"===I&&!d,D=k.comboBundle?.embedContentVisibility,A="bundles"==l.appName?l.pageHeader?.title:l?.title,_="bundles"==l.appName?l.pageHeader?.description:l?.subtitle;return e.createElement("div",{className:`yt-comboBundle-bundle-container ${"left"===k.comboBundle?.infoAlignment?"yt-comboBundle-bundle-align-left":"right"===k.comboBundle?.infoAlignment?"yt-comboBundle-bundle-align-right":"center"===k.comboBundle?.infoAlignment?"yt-comboBundle-bundle-align-center":void 0}`,style:{lineHeight:"normal",maxWidth:"800px",marginBlock:k.comboBundle?.verticalMargin||"0px",display:"flex",flexDirection:"column",alignItems:"left"===k.comboBundle?.infoAlignment?"flex-start":"right"===k.comboBundle?.infoAlignment?"flex-end":"center"===k.comboBundle?.infoAlignment?"center":void 0,textAlign:k.comboBundle?.infoAlignment??"left",fontFamily:"system-ui, -apple-system, sans-serif"}},D&&k.comboBundle?.selectedEmbedContentVisibilityOptions?.includes("Combo Title")&&e.createElement("div",{className:"yt-comboBundle-bundle-title-container",style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"10px"}},e.createElement("h2",{className:"yt-comboBundle-bundle-title",style:{fontSize:k.comboBundle?.productTitleFontSize||"28px",color:k.comboBundle?.titleTextColor||"#000",fontWeight:"bold",lineHeight:"1.6",margin:0}},A)),D&&k?.comboBundle?.selectedEmbedContentVisibilityOptions?.includes("Combo Price")&&e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-comboBundle-bundle-price-container",style:{display:"flex",alignItems:"center",gap:"8px",color:k.comboBundle?.titleTextColor||"#000",fontSize:(parseInt(k.comboBundle?.productTitleFontSize?.replace("px",""))||28)-4+"px"}},e.createElement("div",{className:"yt-comboBundle-bundle-price-details",style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap"}},e.createElement("span",{className:"yt-comboBundle-bundle-deal-price-text",style:{fontWeight:"bold",lineHeight:"1",minWidth:"fit-content"}},iu(k.general.currencySymbol,l.storeCurrencyCode),au(F)),!isNaN(Number(N))&&!isNaN(Number(F))&&Number(N)>Number(F)&&e.createElement("div",{className:"yt-comboBundle-bundle-original-price-text",style:{color:k.comboBundle?.titleTextColor||"#666",textDecoration:"line-through",verticalAlign:"middle",display:"inline-block",minWidth:"fit-content"}},iu(k.general.currencySymbol,l.storeCurrencyCode),au(N)),Number(B)>0&&!1!==S&&(()=>{const t="percentage"===(k?.comboBundle?.discountDisplayType||"amount")?`${z}% Off`:`Save ${iu(k.general.currencySymbol,l.storeCurrencyCode)}${au(B)}`;return e.createElement("span",{className:"yt-comboBundle-bundle-offer-badge",style:{backgroundColor:"#D3122A",color:"white",padding:"4px 8px",fontSize:"14px",borderRadius:"20px",fontWeight:"500",lineHeight:"1",minWidth:"fit-content"}},t)})())),e.createElement("div",{style:{display:"flex",alignItems:"center",gap:"8px",margin:"15px 0px"},className:"yt-comboBundle-checkoutSpecific-container"},e.createElement("div",{style:{display:"flex",width:"12px",height:"12px",justifyContent:"center",alignItems:"center",alignContent:"center",borderRadius:"50%",backgroundColor:k.general?.ctaBackgroundColor||"#1e1e1e",flexShrink:0},className:"yt-comboBundle-checkoutSpecific-dot"},e.createElement("span",null)),e.createElement("p",{style:{fontSize:k.comboBundle.productDescriptionFontSize||"16px",color:k.comboBundle?.descriptionTextColor||"#000",alignItems:"center",margin:0,lineHeight:"1.2"},className:"yt-comboBundle-checkoutSpecific-text"},"Tax included. ",e.createElement("u",null,"Shipping")," calculated at checkout."))),k.comboBundle.subProductsSectionVisibility&&e.createElement(e.Fragment,null,P?e.createElement("div",{className:"yt-comboBundle-products-grid-vertical "+(d?"yt-comboBundle-products-grid-mobile":""),style:{display:"flex",flexDirection:"row",gap:"20px",marginTop:"10px",flexWrap:"wrap"}},l.products.map((t,n)=>{const r=t?.productDetails?.variants?.edges?.find(e=>e?.node?.id===x[n])?.node;return r?e.createElement(Ed,{key:`combo-product-${n}-${t.productId}`,product:t,styles:k,originalPrice:N,dealPrice:F,totalPriceSum:$,selectedVariantId:x[n],onVariantChange:e=>C(n,e),isVertical:P,variantOptions:l.variantOptions,storeCurrencyCode:l.storeCurrencyCode,reviewRatingType:k?.comboBundle?.comboProductRatingsDisplay,productIndex:n,setActiveModalIndex:f}):null})):e.createElement("div",{className:"yt-comboBundle-products-list-horizontal "+(d?"yt-comboBundle-products-list-mobile":""),style:{display:"flex",flexDirection:"column",gap:"10px",width:"100%"}},k.comboBundle.subProductsSectionVisibility&&l.products.map((t,n)=>e.createElement(Ed,{key:`combo-product-horizontal-${n}-${t.productId}`,product:t,styles:k,originalPrice:N,dealPrice:F,totalPriceSum:$,selectedVariantId:x[n],onVariantChange:e=>C(n,e),variantOptions:l.variantOptions,reviewRatingType:k?.comboBundle?.comboProductRatingsDisplay,productIndex:n,setActiveModalIndex:f})))),e.createElement("div",{className:"yt-comboBundle-bundle-cta-section",style:{borderTop:"1px solid #eee",display:"flex",flexDirection:"column",rowGap:"5px",marginTop:"20px",width:"100%"}},e.createElement("button",{className:`yt-comboBundle-bundle-cta-button ${v?"":"yt-comboBundle-bundle-cta-button-disabled"} ${d?"yt-comboBundle-bundle-cta-button-mobile":""}`,style:{backgroundColor:b?"#dc2626":v?k.general?.ctaBackgroundColor||"#121212":k.general.disabledButtonColor,color:b?"#ffffff":k.general?.ctaTextColor||"#FFFFFF",fontSize:"16px",borderRadius:k.general.ctaBorderRadius??"20px",fontWeight:"bold",cursor:v?"pointer":"not-allowed",border:`1px solid ${b?"#dc2626":v?k.general?.ctaBackgroundColor||"#121212":k.general.disabledButtonColor}`,boxShadow:k.general.ctaShadowType,padding:k.general?.ctaPadding,width:k.general?.ctaWidth,margin:"0"},disabled:!v||s,onMouseOver:e=>{k.general.customizeHoverState&&v&&!b&&!s&&(e.currentTarget.style.backgroundColor=k.general?.ctaHoverBackgroundColor||"#F1F1F1",e.currentTarget.style.color=k.general?.ctaHoverTextColor||"#121212")},onMouseOut:e=>{k.general.customizeHoverState&&v&&!b&&!s&&(e.currentTarget.style.backgroundColor=k.general?.ctaBackgroundColor||"#121212",e.currentTarget.style.color=k.general?.ctaTextColor||"#FFFFFF")},onClick:()=>{s||(async()=>{l?.personalizedForm?.title?u(!0):await E()})()}},"animated"===k?.general?.atcLoaderType?e.createElement(vd,{color:"white",loading:s,size:22},b?e.createElement(e.Fragment,null,b):e.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"}},e.createElement("span",null,v?k.comboBundle?.ctaTitle??"Add Bundle to cart":k.general.outOfStockLabel||"Out of Stock"),v&&k?.general?.showPaymentIcons&&e.createElement("div",{style:{display:"flex",alignItems:"center",marginLeft:"10px"}},e.createElement("img",{src:"https://r2.yourtoken.io/checkout-button-payment-provider-icons.png",alt:"Payment methods",style:{height:"22px",width:"auto"}}),e.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",className:"yt-cart-summary-checkout-next-icon",fontSize:"24px",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},e.createElement("polyline",{fill:"none",strokeWidth:"2",points:"9 6 15 12 9 18"}))))):s?e.createElement(Te,{color:"white",loading:s,size:20}):b?e.createElement(e.Fragment,null,b):e.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"}},e.createElement("span",null,v?k.comboBundle?.ctaTitle??"Add Bundle to cart":k.general.outOfStockLabel||"Out of Stock"),v&&k?.general?.showPaymentIcons&&e.createElement("div",{style:{display:"flex",alignItems:"center",marginLeft:"10px"}},e.createElement("img",{src:"https://r2.yourtoken.io/checkout-button-payment-provider-icons.png",alt:"Payment methods",style:{height:"22px",width:"auto"}}),e.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",className:"yt-cart-summary-checkout-next-icon",fontSize:"24px",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},e.createElement("polyline",{fill:"none",strokeWidth:"2",points:"9 6 15 12 9 18"})))))),D&&k.comboBundle?.selectedEmbedContentVisibilityOptions?.includes("Combo Description")&&e.createElement("div",{className:"yt-comboBundle-bundle-description-section",style:{margin:"20px 0px",width:"100%"}},e.createElement("h4",{className:"yt-comboBundle-bundle-description-header",style:{fontSize:"16px",color:k.comboBundle?.descriptionTextColor||"#000",lineHeight:"1.2",margin:0,padding:"8px",backgroundColor:k.general.primaryColor+"20"}},"Description"),e.createElement("div",{className:"yt-comboBundle-bundle-description-content",style:{fontSize:k.comboBundle.productDescriptionFontSize||"16px",color:k.comboBundle?.descriptionTextColor||"#000",lineHeight:"1.2",padding:"8px",backgroundColor:k.general.primaryColor+"08"},dangerouslySetInnerHTML:{__html:Gn(_)}})),l?.personalizedForm?.title&&e.createElement(Cd,{isOpen:m,onClose:()=>u(!1),formConfig:l.personalizedForm,onCheckout:async e=>{await E(e),u(!1)},cta:{backgroundColor:k.general?.ctaBackgroundColor||"#121212",textColor:k.general?.ctaTextColor||"#FFFFFF"},isMobile:d}),e.createElement(ed,{bundleType:"comboBundle",handleAddToBundle:()=>{},selectedProducts:[],remainingQuantity:0,hideAddToBundle:!0,disableQuantitySelector:!0,themeColor:k?.general?.primaryColor||"#000",primaryTextColorCta:k?.general?.primaryContrastColor||"#fff",primaryBackgroundColorCta:k?.general?.primaryColor||"#000",cornerRadius:"8px",styles:k,onVariantSelect:e=>{null!==g&&C(g,e)},bundle:l,totalPriceSum:$,dealPrice:F}))},Td=c.div`
3135
+ `;const Kc=({options:t,selectedValue:n,onChange:r,type:o="text",isOptionAvailable:a,isMobile:i,showOutOfStockVariants:l=!0})=>e.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px",alignItems:"center"}},t?.map(t=>{const i=!a||a(t.name);return l||i?e.createElement("div",{key:t.name,onClick:()=>{i&&r(t)},style:{cursor:i?"pointer":"not-allowed"}},((t,n)=>{const r=!a||a(t.name),i={cursor:r?"pointer":"not-allowed",border:n?"2px solid #333":"1px solid #d1d5db",transition:"all 0.2s ease",opacity:r?1:.5};if("color"===o)return t.value&&(()=>{if(!t.value.trim())return!1;if(t.value===t.name||t.value.length<3)return!1;try{const e=document.createElement("div");return e.style.color=t.value,""!==e.style.color}catch{return!1}})()?e.createElement("div",{style:{...i,width:24,height:24,borderRadius:"50%",backgroundColor:t.value,display:"block"},className:r?"":"variant-out-of-stock"}):e.createElement("div",{style:{...i,padding:"4px 8px",borderRadius:"12px",fontSize:"12px",fontWeight:n?"600":"400",backgroundColor:n?"#f3f4f6":"white",color:"#333",minWidth:"fit-content",textAlign:"center"},className:r?"":"variant-out-of-stock"},t.name);return"image"===o?e.createElement("img",{src:Yn(t.value,48,85,"webp")||"/placeholder.svg",alt:t.name,style:{...i,width:24,height:24,borderRadius:"50%",objectFit:"cover"},className:r?"":"variant-out-of-stock"}):e.createElement("div",{style:{...i,padding:"4px 8px",borderRadius:"12px",fontSize:"12px",fontWeight:n?"600":"400",backgroundColor:n?"#f3f4f6":"white",color:"#333",minWidth:"fit-content",textAlign:"center"},className:r?"":"variant-out-of-stock"},t.name)})(t,n?.name===t.name)):null})),Jc=({product:o,isOpen:a,onClose:i,variantOptions:l,cta:s,onConfirm:c,showOutOfStockVariants:d=!0})=>{const p=r(()=>e=>e?o?.tracksInventory&&e?.inventoryItem?.tracked?e.inventoryQuantity>0?e?.inventoryQuantity:e.inventoryQuantity<=0&&"continue"===e.inventoryPolicy?.toLowerCase()?1/0:0:1/0:0,[o?.tracksInventory]),m=r(()=>{const e=o.variants.edges.find(e=>{const t=e.node;return p(t)>0})?.node;return e?.title&&"Default Title"!==e.title?e.title.split(" / "):o.options?.map(e=>e.values[0])||[]},[o,p]),[u,g]=t(m),[f,y]=t(window.innerWidth<1024);n(()=>{const e=()=>y(window.innerWidth<1024);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),n(()=>{const e=e=>{"Escape"===e.key&&i()};return a&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[a,i]);const x=o.variants.edges.find(e=>e.node.title===(o.options?.length>0?u.join(" / "):u[0]))?.node,h=x?.image?.url||o.featuredMedia?.preview?.image?.url,b=Yn(h,150,85,"webp"),w=e=>{if(!l?.options)return"text";const t=l.options.find(t=>t.name===e);return t?.type||"text"},v=e=>{if(!l?.options)return e.values.map(e=>({name:e,value:e}));const t=l.options.find(t=>t.name===e.name);return e.values.map(e=>{const n=t?.values?.find(t=>t.name===e);return{name:e,value:n?.value||e}})},C=(e,t)=>{const n=u[t];if(!n)return null;return v(e).find(e=>e.name===n)||null};if(!a)return null;const E=e.createElement("div",{onClick:i,style:{position:"fixed",top:0,left:0,right:0,bottom:0,width:"100vw",height:"100vh",background:"rgba(0, 0, 0, 0.4)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},role:"dialog","aria-modal":"true","aria-labelledby":"yt-variant-options-modal-title"},e.createElement("div",{onClick:e=>e.stopPropagation(),style:{background:"white",borderRadius:16,width:"fit-content",minWidth:350,maxWidth:450,maxHeight:"90vh",overflowY:"auto",position:"relative",zIndex:999,...window.innerWidth<=600&&{width:"90vw",maxWidth:"90vw",minWidth:"90vw"}}},e.createElement("div",{id:"yt-variant-options-modal-title",style:{width:"100%",padding:"16px 0",fontWeight:600,fontSize:14,textTransform:"uppercase",backgroundColor:"rgba(217, 217, 217)",color:"black",textAlign:"center",borderTopLeftRadius:16,borderTopRightRadius:16}},"Select Options"),e.createElement("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"16px 20px",borderBottom:"1px solid #f0f0f0"}},e.createElement("img",{src:b,alt:o.title,style:{width:60,height:60,borderRadius:8,objectFit:"cover",flexShrink:0,transition:"opacity 0.3s ease"}}),e.createElement("div",{style:{display:"flex",flexDirection:"column",flex:1,gap:4}},e.createElement("div",{style:{fontSize:14,fontWeight:600,color:"#333"}},o.title))),e.createElement("div",{style:{padding:"20px"}},o.options.map((t,n)=>e.createElement("div",{key:t.name,style:{display:"flex",flexDirection:"column",gap:8,marginBottom:t?.values?.length>1?16:0}},t?.values?.length>1&&e.createElement(e.Fragment,null,e.createElement("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8}},e.createElement("span",{style:{fontSize:14,fontWeight:500,color:"#333"}},"Select ",t.name),e.createElement("span",{style:{fontSize:12,fontWeight:500,color:"#666",backgroundColor:"#f5f5f5",padding:"4px 12px",borderRadius:16,textTransform:"capitalize"}},C(t,n)?.name||t.values[0])),e.createElement(Kc,{options:v(t),selectedValue:C(t,n),onChange:e=>{((e,t)=>{const n=[...u];n[e]=t.name,g(n)})(n,e)},type:w(t.name),isOptionAvailable:e=>((e,t)=>{const n=[...u];n[e]=t;const r=o.options?.length>0?n.join(" / "):n[0],a=o.variants.edges.find(e=>e.node.title===r)?.node;return!!a&&p(a)>0})(n,e),isMobile:f,showOutOfStockVariants:d}))))),e.createElement("button",{onClick:()=>{const e=o.variants.edges.find(e=>e.node.title===(o.options?.length>0?u.join(" / "):u[0]))?.node,t=!!e&&p(e)>0;if(e?.id&&t)c(e.id),i();else{console.warn("yt::variant options modal - selected variant not available or out of stock:",u);const e=o.variants.edges.find(e=>p(e.node)>0)?.node.id;e&&(c(e),i())}},style:{width:"100%",fontSize:14,fontWeight:600,textTransform:"uppercase",backgroundColor:s.backgroundColor,color:s.textColor,textAlign:"center",padding:"16px 0",border:"none",cursor:"pointer",borderBottomLeftRadius:16,borderBottomRightRadius:16},onMouseEnter:e=>{e.currentTarget.style.opacity="0.9"},onMouseLeave:e=>{e.currentTarget.style.opacity="1"},"data-gokwik-processed":"true"},"Add to Bundle")));return R.createPortal(E,document.body)},ed=l((i,l)=>{const[s,c]=be(Qc),d=r(()=>{const e=i.bundleType;return e&&i.styles?.[e]?i.styles[e]:i.styles?.byob},[i.styles,i.bundleType]),p=d?.productVariantTitleType,m=d?.variantSelectorType??d?.comboVariantTypeSelector??"dropdown",u=r(()=>e=>{const t=i?.customVariantsQuantity?.find(t=>t.variantId===e?.id)?.quantity;return void 0!==t?t:e?s?.tracksInventory&&e.inventoryItem?.tracked?e.inventoryQuantity>0?i?.bundleProductsCustomQuantity??e.inventoryQuantity:e.inventoryQuantity<=0&&"continue"===e.inventoryPolicy?.toLocaleLowerCase()?i?.bundleProductsCustomQuantity??1/0:0:i?.bundleProductsCustomQuantity??1/0:0},[s?.tracksInventory,i?.customVariantsQuantity,i?.bundleProductsCustomQuantity]),g=s?.variants.edges?.filter(e=>u(e.node)>0)||[],[f,y]=t(g?.[0]?.node),x=r(()=>{if(!f)return 0;const e=parseFloat(f?.price??"0");let t=e;if("comboBundle"===i.bundleType){const n=Number(i.totalPriceSum||0);let r=Number(i.dealPrice||0);!r&&i.bundle&&(i.bundle?.percentageOff?r=n*(1-i.bundle.percentageOff/100):i.bundle?.dealAmount?r=i.bundle.dealAmount:i.bundle?.amountOff&&(r=n-i.bundle.amountOff)),n>0&&r>0&&(t=e/n*r)}else if("fixedBundle"===i.bundleType){const n=i.bundleDiscountType||(i.bundle?.percentageOff?"percentageOff":i.bundle?.dealAmount?"fixedPrice":i.bundle?.amountOff?"amountOff":""),r=i.bundleDiscountValue??i.bundle?.percentageOff??i.bundle?.dealAmount??i.bundle?.amountOff??0,o=i.totalSelectedOriginal??0;if(r)switch(n){case"percentOff":case"percentageOff":case"percentage":case"Percentage":t=e*(1-r/100);break;case"amountOff":case"amount":case"Amount Off":if(o>0){const n=e/o*r;t=Math.max(0,e-n)}break;case"fixedPrice":case"fixed":case"fixedPrice":if(o>0){t=r*(e/o)}}}return parseFloat(t.toFixed(2))},[f,i.bundleType,i.totalPriceSum,i.dealPrice,i.bundleDiscountType,i.bundleDiscountValue,i.totalSelectedOriginal,i.bundle]),h=r(()=>{if(!f)return 0;const e=parseFloat(f?.price??"0"),t=parseFloat(f?.compareAtPrice??"0"),n=i.styles?.[i.bundleType||""]||i.styles?.general,r=n?.discountBadgeDisplay;let o=0;return"comboBundle"===i.bundleType||"fixedBundle"===i.bundleType?"discount-on-compare"===r&&t>0?o=t:x<e?o=e:t>e&&(o=t):t>e&&(o=t),o>0?parseFloat(o.toFixed(2)):0},[f,i.bundleType,i.styles,x]),[b,w]=t(0),[v,C]=t("undefined"!=typeof window&&window.innerWidth<=600),[E,k]=t(1),[T,S]=t("idle"),N=o(null),F=o(null),B=o(!1),[$,z]=t(0),[I,P]=t(),D=r(()=>{const e=s?.variants.edges.find(e=>{const t=e.node;return u(t)>0})?.node;return e?.title&&"Default Title"!==e.title?e.title.split(" / "):s?.options?.map(e=>e.values[0])||[]},[s,u]),[A,_]=t(D);n(()=>{if(s){B.current=!1;const e=s.variants.edges?.filter(e=>u(e.node)>0),t=s?.selectedVariant??e[0]?.node;y(t),t?.title&&"Default Title"!==t.title&&_(t.title.split(" / "))}},[s?.id]),n(()=>{const e=i.selectedProducts?.find(e=>e.variantId===f?.id);k(e?e.quantity:0)},[i.selectedProducts,f?.id]);const L=o(i.onVariantSelect);n(()=>{L.current=i.onVariantSelect},[i.onVariantSelect]),n(()=>{f?.id&&s&&B.current&&L.current?.(f.id,s)},[f?.id,s?.id]),n(()=>{if(F.current&&-1!==b&&B.current){const e=F.current.children;e[b]&&e[b].scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}),B.current=!1}},[b]);n(()=>{const e=()=>C(window.innerWidth<=600);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const O=s?.descriptionHtml??"",M=s?.media,V=M?.edges?.map(e=>e?.node.preview.image??e?.node.image).filter(e=>e?.url?.length>0)??[],W=a(e=>{const t=e.target.value,n=g?.find(e=>e.node.id===t)?.node;n&&u(n)>0&&(B.current=!0,y(n),P(n?.image?.url),n.title&&"Default Title"!==n.title&&_(n.title.split(" / ")))},[g,u]),j=a(e=>{if(!i.bundleVariantOptions?.options)return"text";const t=i.bundleVariantOptions?.options.find(t=>t.name===e);return t?.type||"text"},[i.bundleVariantOptions]),H=a(e=>{if(!i?.bundleVariantOptions?.options)return e.values.map(e=>({name:e,value:e}));const t=i?.bundleVariantOptions?.options.find(t=>t.name===e.name);return e.values.map(e=>{const n=t?.values?.find(t=>t.name===e);return{name:e,value:n?.value||e}})},[i.bundleVariantOptions]),q=a((e,t)=>{const n=[...A];n[e]=t.name,_(n);const r=(s?.options?.length??0)>0?n.join(" / "):n[0],o=s?.variants.edges.find(e=>e.node.title===r)?.node;P(o?.image?.url),o&&u(o)>0&&(B.current=!0,y(o))},[A,s,u]),U=a((e,t)=>{const n=A[t];if(!n)return null;return H(e).find(e=>e.name===n)||null},[A,H]),Q=a((e,t)=>{const n=[...A];n[e]=t;const r=(s?.options?.length??0)>0?n.join(" / "):n[0],o=s?.variants.edges.find(e=>e.node.title===r)?.node;return!!o&&u(o)>0},[A,s,u]);if(n(()=>{if(s){document.body.style.overflow="hidden",window.history.pushState({modalOpen:!0},"",window.location.href);const e=e=>{c(void 0),e.preventDefault()};return window.addEventListener("popstate",e),()=>{document.body.style.overflow="unset",window.removeEventListener("popstate",e),window.history.state?.modalOpen&&window.history.back()}}},[s,c]),n(()=>{if(v&&s&&N.current){const e=()=>{N.current&&z(N.current.offsetHeight)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}},[v,s]),!s)return null;const Y=i.selectedProducts.filter(e=>e.variantId===f?.id).reduce((e,t)=>e+t.quantity,0),Z=i.customVariantsQuantity?.find(e=>e.variantId===f?.id)?.quantity??i.bundleProductsCustomQuantity??1/0,G=Z!==1/0&&Y>=Z,X=i.hideAddToBundle||!f||u(f)<=0||G||"idle"!==T||i?.disableQuantitySelector&&1===E,K=({className:t})=>{const n=s?.rating?.averageRating??i?.rating?.averageRating??0,r=s?.rating?.ratingCount??i?.rating?.ratingCount??0;return n<=0?null:e.createElement(e.Fragment,null,"ratingOnly"===i.reviewRatingType&&e.createElement("div",{className:t,style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},e.createElement(We,{color:"gold",size:14}),e.createElement("span",{style:{marginLeft:6}},n," rating")),"ratingAndReviewCount"===i.reviewRatingType&&e.createElement("div",{className:t,style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},e.createElement(We,{color:"gold",size:14}),n,e.createElement(De,{size:14,style:{color:"dodgerblue",marginLeft:"4px"}}),"(",r," reviews)"))},ee=({isMobile:t})=>e.createElement(e.Fragment,null,e.createElement("div",{style:{position:t?"relative":void 0}},t?e.createElement("div",{ref:F,style:{display:"flex",flexDirection:"row",overflowX:"auto",WebkitOverflowScrolling:"touch",scrollSnapType:"x mandatory",scrollbarWidth:"none",msOverflowStyle:"none"}},V.length>0&&V.map((t,n)=>e.createElement("div",{key:n,style:{width:"100%",flex:"0 0 auto",scrollSnapAlign:"center",objectFit:"contain",maxHeight:"50vh",zIndex:999}},e.createElement(Pt,{small:lu(t?.url),medium:lu(t?.url),large:lu(t?.url),alt:t.altText||`${s?.title||"Product"} - Image ${n+1}`,hideDownload:!0,imageBackgroundColor:"#000",className:`yt-${i?.bundleType}-modal-desktop-main-image yt-${i?.bundleType}-modal-desktop-main-image`})))):e.createElement(e.Fragment,null,e.createElement(Pt,{small:lu(I??"")||lu(V[b]?.url),medium:lu(I??"")||lu(V[b]?.url),large:lu(I??"")||lu(V[b]?.url),hideDownload:!0,imageBackgroundColor:"#000",className:`yt-${i?.bundleType}-modal-desktop-main-image yt-${i?.bundleType}-modal-desktop-main-image main-image`}),e.createElement("div",{style:{display:"flex",flexDirection:"row",overflowX:"auto",gap:t?"8px":"12px",padding:"12px 0",WebkitOverflowScrolling:"touch",scrollSnapType:"x mandatory",scrollbarWidth:"none",msOverflowStyle:"none"}},V.length>1&&V.filter(e=>e?.url?.length>0).map((n,r)=>e.createElement("img",{key:r,src:lu(n?.url),alt:n.altText||`${s?.title||"Product"} - Image ${r+1}`,onClick:()=>w(r),style:{width:t?"60px":"73px",height:t?"60px":"73px",flex:"0 0 auto",scrollSnapAlign:"center",borderRadius:"7px",border:b===r?`2px solid ${i.themeColor||"#111"}`:"1px solid lightgray",objectFit:"cover",cursor:"pointer"},loading:"lazy"})))))),te=({className:t})=>s?.variants?.edges?.length<=1?null:e.createElement("div",{className:t},e.createElement("div",{className:`${t}-label`,style:{display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid #e0e0e0",paddingBottom:"5px",fontSize:"16px",color:"#999",position:"relative",marginBottom:"10px"}},e.createElement("span",{style:{flexShrink:0}},s.options[0].name," :"," ",e.createElement("strong",{style:{color:"#000",paddingLeft:"5px"}},f?.title)),e.createElement("select",{className:`${t}-select`,value:f?.id||"",onChange:W,style:{appearance:"none",border:"none",background:"transparent",fontWeight:"bold",color:"#000",cursor:"pointer",paddingRight:"20px",position:"absolute",right:0,top:0,bottom:0,width:"100%",opacity:0,zIndex:2}},s?.variants?.edges?.map(({node:t})=>!1===i.styles?.general?.showOutOfStockVariants&&0===u(t)?null:e.createElement("option",{key:t.id,value:t.id,disabled:0===u(t),className:0===u(t)?"variant-out-of-stock":""},t.title))),e.createElement("span",{className:`${t}-chevron`,style:{position:"absolute",right:5,pointerEvents:"none",fontSize:"12px",color:"#000"}},e.createElement(ut,null)))),ne=({isMobile:t})=>e.createElement(e.Fragment,null,s.options.map((n,r)=>e.createElement("div",{key:n.name,style:{display:"flex",flexDirection:"column",gap:8,marginBottom:n?.values?.length>1?16:0}},n?.values?.length>1&&e.createElement(e.Fragment,null,e.createElement("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8}},e.createElement("span",{style:{fontSize:14,fontWeight:500,color:"#333"}},"Select ",n.name),e.createElement("span",{style:{fontSize:12,fontWeight:500,color:"#666",backgroundColor:"#f5f5f5",padding:"4px 12px",borderRadius:16,textTransform:"capitalize"}},A[r]||n.values[0])),e.createElement(Kc,{options:H(n),selectedValue:U(n,r),onChange:e=>{q(r,e)},type:j(n.name),isOptionAvailable:e=>Q(r,e),isMobile:t,showOutOfStockVariants:!1!==i.styles?.general?.showOutOfStockVariants}))))),re=({isMobile:t})=>e.createElement("div",{className:`yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-price yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-price`,style:{width:"fit-content",minWidth:"fit-content",paddingRight:"10px",display:"flex",flexDirection:"row",alignItems:t?"center":"baseline",gap:"6px"}},i?.isFreebieTier&&!i.showFreebieTierProductPrices?e.createElement(e.Fragment,null,e.createElement("span",{className:`yt-${i?.bundleType}-compare-price yt-${i?.bundleType}-compare-price yt-fixed-bundle-original-price`,style:{fontSize:"20px",textDecoration:"line-through",color:"#888",marginRight:"6px"}},iu(i.styles.general.currencySymbol,i.styles.general.currencySymbol),au(f?.price)),e.createElement("span",{className:`yt-${i?.bundleType}-current-price yt-${i?.bundleType}-current-price`,style:{color:i.styles.general.primaryColor||"#d32f2f",fontWeight:"bold",fontSize:"20px"}},"FREE")):e.createElement(e.Fragment,null,h>0&&e.createElement("div",{className:`yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-compare-price yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-compare-price`,style:{textDecoration:"line-through",opacity:"0.5",lineHeight:"normal"}},iu(i.styles.general.currencySymbol,i.styles.general.currencySymbol),au(h)),e.createElement("div",{className:`yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-current-price yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-current-price`},e.createElement("span",{style:{fontSize:"20px",fontWeight:"600",color:"#000",textAlign:"left",lineHeight:"normal"}},iu(i.styles.general.currencySymbol,i.styles.general.currencySymbol),au(x))))),oe=({isMobile:t})=>i.hideAddToBundle?null:e.createElement("div",{className:`yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-atc-wrapper yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-atc-wrapper ${t?"":"yt-product-modal-atc-wrapper"}`,style:{width:t?"100%":"80%"}},e.createElement("button",{className:`yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-atc-button yt-${i?.bundleType}-modal-${t?"mobile":"desktop"}-atc-button ${t?"":"yt-product-modal-atc-button"}`,style:{textTransform:"uppercase",fontWeight:"800",width:"100%",border:"none",backgroundColor:i.themeColor||"#111",borderRadius:i.cornerRadius,color:i.primaryTextColorCta||"#fff",minHeight:"40px",padding:"0px 15px",position:"relative",overflow:"hidden",opacity:X?.5:1,cursor:X?"not-allowed":"pointer"},onClick:e=>{e.stopPropagation(),e.preventDefault(),f?.id&&s&&(S("check"),i.handleAddToBundle(f?.id,s,1),setTimeout(()=>{S("idle"),c(void 0)},500))},disabled:X},i.styles?.byob?.addToBundleCTAText??"Add to bundle")),ae=e.createElement(Zc,{className:`yt-${i?.bundleType}-modal-desktop-overlay yt-${i?.bundleType}-modal-desktop-overlay`,onClick:()=>c(void 0)},e.createElement(Gc,{$isSmallScreen:v,ref:l,onClick:e=>e.stopPropagation()},e.createElement(Xc,{ref:l,className:`yt-${i?.bundleType}-modal-desktop-container yt-${i?.bundleType}-modal-desktop-container yt-variant-selection-modal`},e.createElement("div",{className:`yt-${i?.bundleType}-modal-desktop yt-${i?.bundleType}-modal-desktop yt-variant-selection-modal ${v?"small-screen":"large-screen"}`},e.createElement(Yc,{className:`yt-${i?.bundleType}-modal-desktop-close yt-${i?.bundleType}-modal-desktop-close`,onClick:()=>{c(void 0)},style:{backgroundColor:"white"}},e.createElement(J,{size:"25"})),e.createElement("div",{className:`yt-${i?.bundleType}-modal-desktop-image-section yt-${i?.bundleType}-modal-desktop-image-section image-section`},e.createElement(ee,null)),e.createElement("div",{className:`yt-${i?.bundleType}-modal-desktop-details-section yt-${i?.bundleType}-modal-desktop-details-section details-section`,style:{marginLeft:"20px",minHeight:"100%",maxHeight:"70vh",scrollbarWidth:"none",overflowY:"auto",display:"flex",flexDirection:"column"}},e.createElement("h2",{className:`yt-${i?.bundleType}-modal-desktop-title yt-${i?.bundleType}-modal-desktop-title`},"byob"===i?.bundleType?e.createElement(e.Fragment,null,"variant-display-name"===p&&s?.selectedVariant?.displayName?s?.selectedVariant?.displayName:"variant-title"===p&&s?.selectedVariant?.title?s?.selectedVariant?.title:s?.title):s?.title),e.createElement(K,{className:`yt-${i?.bundleType}-modal-desktop-rating yt-${i?.bundleType}-modal-desktop-rating`}),e.createElement("div",{className:`yt-${i?.bundleType}-modal-desktop-variant-price-wrapper yt-${i?.bundleType}-modal-desktop-variant-price-wrapper`,style:{display:"flex",flexDirection:"column",gap:"2px",marginTop:"20px"}},"dropdown"===m&&e.createElement(te,{className:`yt-${i?.bundleType}-modal-desktop-variant-selector yt-${i?.bundleType}-modal-desktop-variant-selector`}),"customOptions"===m&&e.createElement(ne,null),e.createElement("div",{className:`yt-${i?.bundleType}-modal-desktop-price-atc-wrapper yt-${i?.bundleType}-modal-desktop-price-atc-wrapper`,style:{display:"flex",justifyContent:i.hideAddToBundle?"flex-start":"center",alignItems:"center",width:"100%"}},e.createElement(re,{isMobile:!1}),e.createElement(oe,{isMobile:!1}))),e.createElement("div",{className:`yt-${i?.bundleType}-modal-desktop-divider yt-${i?.bundleType}-modal-desktop-divider`,style:{height:"10px",minHeight:"10px",border:"none",backgroundColor:"#D9D9D96B",margin:"20px 0 10px 0",display:"block !important"}},e.createElement("span",null)),e.createElement("span",{className:`yt-${i?.bundleType}-modal-desktop-description yt-${i?.bundleType}-modal-desktop-description yt-description-content`,style:{scrollBehavior:"smooth"},dangerouslySetInnerHTML:{__html:O}})))))),ie=e.createElement(Zc,{className:`yt-${i?.bundleType}-modal-mobile-overlay yt-${i?.bundleType}-modal-mobile-overlay`,onClick:()=>c(void 0)},e.createElement(Gc,{className:`yt-${i?.bundleType}-modal-mobile-content yt-${i?.bundleType}-modal-mobile-content`,style:{padding:"0px",position:"relative"},$isSmallScreen:v,ref:l,onClick:e=>e.stopPropagation()},e.createElement(Xc,{ref:l,className:`yt-${i?.bundleType}-modal-mobile-container yt-${i?.bundleType}-modal-mobile-container yt-variant-selection-modal`},e.createElement("button",{className:`yt-${i?.bundleType}-modal-mobile-close-btn yt-${i?.bundleType}-modal-mobile-close-btn`,style:{position:"fixed",top:"20px",right:"20px",zIndex:9999999999,backgroundColor:"#FFFFFF",padding:"4px",borderRadius:"50%",border:"1px solid lightgray",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{c(void 0)}},e.createElement(mt,{className:`yt-${i?.bundleType}-modal-mobile-close-icon yt-${i?.bundleType}-modal-mobile-close-icon`,style:{height:"22px",width:"22px",padding:"4px",color:"black"},onMouseEnter:e=>e.currentTarget.style.color="black"})),e.createElement("div",{className:`yt-${i?.bundleType}-modal-mobile yt-${i?.bundleType}-modal-mobile yt-variant-selection-modal small-screen`,style:{padding:"0px"}},e.createElement("div",{className:`yt-${i?.bundleType}-modal-mobile-image-section yt-${i?.bundleType}-modal-mobile-image-section image-section`},e.createElement(ee,{isMobile:!0})),e.createElement("div",{className:`yt-${i?.bundleType}-modal-mobile-details-section yt-${i?.bundleType}-modal-mobile-details-section details-section`,style:{padding:"0 30px",margin:"15px 0",paddingBottom:$?`${$+20}px`:"120px"}},e.createElement("h2",{className:`yt-${i?.bundleType}-modal-mobile-title yt-${i?.bundleType}-modal-mobile-title`,style:{margin:"0px"}},"byob"===i?.bundleType?e.createElement(e.Fragment,null,"variant-display-name"===p&&s?.selectedVariant?.displayName?s?.selectedVariant?.displayName:"variant-title"===p&&s?.selectedVariant?.title?s?.selectedVariant?.title:s?.title):s?.title),e.createElement("div",{style:{paddingBlockStart:"10px"}},e.createElement(K,{className:`yt-${i?.bundleType}-modal-mobile-rating yt-${i?.bundleType}-modal-mobile-rating`})),e.createElement("div",{className:`yt-${i?.bundleType}-modal-mobile-divider yt-${i?.bundleType}-modal-mobile-divider`,style:{opacity:"0.2",border:"none",height:"2px",backgroundColor:"#000000",margin:"10px 0px",display:"block !important"}},e.createElement("span",null)),e.createElement("div",{className:`yt-${i?.bundleType}-modal-mobile-description yt-${i?.bundleType}-modal-mobile-description yt-description-content`,style:{scrollbarWidth:"none",scrollBehavior:"smooth",margin:"0px"},dangerouslySetInnerHTML:{__html:O}})))),e.createElement("div",{className:`yt-${i?.bundleType}-modal-mobile-bottom-bar yt-${i?.bundleType}-modal-mobile-bottom-bar`,ref:N,style:{position:"fixed",bottom:"0px",left:"0px",right:"0px",padding:"12px 15px",borderTop:"1px solid lightgray",boxShadow:"0px -4px 5px rgba(0, 0, 0, 0.1)",backgroundColor:"#fff",display:"flex",flexDirection:"column",gap:"2px",zIndex:9999999999}},"customOptions"===m?e.createElement(ne,{isMobile:!0}):e.createElement(te,{className:`yt-${i?.bundleType}-modal-desktop-variant-selector yt-${i?.bundleType}-modal-desktop-variant-selector`}),e.createElement("div",{className:`yt-${i?.bundleType}-modal-mobile-price-atc-wrapper yt-${i?.bundleType}-modal-mobile-price-atc-wrapper`,style:{display:"flex",justifyContent:i.hideAddToBundle?"flex-start":"center",alignItems:"center",width:"100%"}},e.createElement(re,{isMobile:!0}),e.createElement(oe,{isMobile:!0})))));return R.createPortal(v?ie:ae,document.body)}),td=({coverImageUrl:t,mobileCoverImageUrl:n,alt:r="Background",styles:o})=>{const a=[{imageWidth:21,descriptor:36},{imageWidth:48,descriptor:80},{imageWidth:99,descriptor:165},{imageWidth:216,descriptor:360},{imageWidth:225,descriptor:375},{imageWidth:319,descriptor:533},{imageWidth:330,descriptor:550},{imageWidth:432,descriptor:720},{imageWidth:564,descriptor:940},{imageWidth:639,descriptor:1066},{imageWidth:648,descriptor:1080},{imageWidth:900,descriptor:1500},{imageWidth:1068,descriptor:1780},{imageWidth:1296,descriptor:2160}],i=(e,t)=>{if(e&&e.includes("cdn.shopify"))try{const n=new URL(e),r=n.searchParams;return r.has("format")||r.set("format","webp"),r.has("quality")||r.set("quality","80"),r.set("width",t.toString()),n.toString()}catch{const n=e.includes("?")?"&":"?";return`${e}${n}format=webp&quality=80&width=${t}`}},l=e=>e?a.map(({imageWidth:t,descriptor:n})=>{const r=i(e,t);return r?`${r} ${n}w`:""}).filter(Boolean).join(", "):"";if(!t&&!n)return null;const s=t||n||"",c=i(s,800)||s,d=[];if(n&&n!==t){const t=l(n);t&&d.push(e.createElement("source",{key:"mobile",media:"(max-width: 768px)",srcSet:t}))}if(t){const n=l(t);n&&(d.length>0?d.push(e.createElement("source",{key:"desktop",media:"(min-width: 769px)",srcSet:n})):d.push(e.createElement("source",{key:"desktop",srcSet:n})))}else if(n){const t=l(n);t&&d.push(e.createElement("source",{key:"mobile",srcSet:t}))}return e.createElement("div",{style:{width:"100%",display:"block"}},e.createElement("picture",{style:{display:"block",width:"100%"}},d,e.createElement("img",{src:c,alt:r,style:{width:"100%",height:"auto",display:"block",...o},loading:"eager",fetchPriority:"high",sizes:"100vw"})))},nd=({title:t,isOpen:n,onToggle:r,children:o})=>e.createElement("div",{className:"yt-byob-filter-section",style:{borderBottom:"1px solid #eee",paddingBottom:n?"20px":"12px",marginBottom:"12px"}},e.createElement("div",{className:"yt-byob-filter-section-header",onClick:r,style:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",padding:"8px 0"}},e.createElement("span",{className:"yt-byob-filter-section-title",style:{fontSize:"16px",fontWeight:500,color:"#111"}},t),n?e.createElement(Ke,{className:"yt-byob-icon-minus",size:20}):e.createElement(Ye,{className:"yt-byob-icon-plus",size:20})),n&&e.createElement("div",{className:"yt-byob-filter-section-body",style:{marginTop:"16px"}},o)),rd=({availableFilters:n,appliedFilters:r,toggleFilter:o,clearAllFilters:a,applyPriceFilter:i,priceMin:l,setPriceMin:s,priceMax:c,setPriceMax:d,maxPossiblePrice:p,styles:m,availableProductCount:u,products:g,unavailableProductCount:f,storeCurrencyCode:y,showActions:x=!0,openSections:h,toggleSection:b})=>{const[w,v]=t(null),C=iu(m?.general?.currencySymbol)??y??"USD";return e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-byob-filters-content-wrapper",style:{overflowY:"auto",scrollbarWidth:"none",padding:"20px",flex:1,minHeight:0,overscrollBehavior:"contain"}},n.map(t=>e.createElement(nd,{key:t.id,title:t.label,isOpen:!!h[t.id],onToggle:()=>b(t.id)},"LIST"===t.type&&e.createElement("div",{className:"yt-byob-filter-list",style:{display:"flex",flexDirection:"column",gap:"14px"}},t.values.map(n=>{const a=r[t.id]?.includes(n.id)||!1;return"filter.v.availability.1"===n.id?u??g.length:"filter.v.availability.0"===n.id||n.count,e.createElement("label",{key:n.id,className:"yt-byob-filter-item-label",style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer"}},e.createElement("div",{className:"yt-byob-filter-item-left",style:{display:"flex",alignItems:"center",gap:"10px"}},e.createElement("input",{className:"yt-byob-filter-checkbox",type:"checkbox",checked:a,onChange:()=>o(t.id,n.id),style:{width:"18px",height:"18px",accentColor:m?.general?.primaryColor||"#333",cursor:"pointer"}}),e.createElement("span",{className:"yt-byob-filter-item-text",style:{fontSize:"15px",color:"#333"}},n.label)))})),"PRICE_RANGE"===t.type&&e.createElement("div",{className:"yt-byob-price-filter",style:{padding:"0 4px"}},e.createElement("div",{className:"yt-byob-price-range-display",style:{fontSize:"15px",color:"#333",marginBottom:"24px",fontWeight:500}},C,l.toLocaleString()," – ",C,c.toLocaleString()),e.createElement("div",{className:"yt-byob-price-slider-container",style:{position:"relative",width:"100%",height:"4px",background:"#e5e7eb",borderRadius:"4px",marginBottom:"10px"}},e.createElement("div",{className:"yt-byob-price-slider-track",style:{position:"absolute",height:"100%",background:"#333",borderRadius:"4px",left:l/p*100+"%",right:100-c/p*100+"%"}}),e.createElement("input",{type:"range",min:0,max:p,value:l,onMouseDown:()=>v("min"),onTouchStart:()=>v("min"),onChange:e=>{const t=Math.min(Number(e.target.value),c-10);s(t)},style:{position:"absolute",width:"100%",height:"0px",top:"50%",transform:"translateY(-50%)",background:"none",pointerEvents:"none",appearance:"none",WebkitAppearance:"none",zIndex:"min"===w?11:5,margin:0},className:"yt-byob-dual-range-input-min"}),e.createElement("input",{type:"range",min:0,max:p,value:c,onMouseDown:()=>v("max"),onTouchStart:()=>v("max"),onChange:e=>{const t=Math.max(Number(e.target.value),l+10);d(t)},style:{position:"absolute",width:"100%",height:"0px",top:"50%",transform:"translateY(-50%)",background:"none",pointerEvents:"none",appearance:"none",WebkitAppearance:"none",zIndex:"max"===w?11:4,margin:0},className:"yt-byob-dual-range-input-max"})),e.createElement("style",null,"\n .yt-byob-dual-range-input-min::-webkit-slider-thumb,\n .yt-byob-dual-range-input-max::-webkit-slider-thumb {\n pointer-events: auto;\n appearance: none;\n width: 22px;\n height: 22px;\n border-radius: 50%;\n background: #444;\n border: 3px solid white;\n cursor: pointer;\n box-shadow: 0 2px 5px rgba(0,0,0,0.2);\n position: relative;\n z-index: 20;\n }\n .yt-byob-dual-range-input-min::-moz-range-thumb,\n .yt-byob-dual-range-input-max::-moz-range-thumb {\n pointer-events: auto;\n width: 22px;\n height: 22px;\n border-radius: 50%;\n background: #444;\n border: 3px solid white;\n cursor: pointer;\n box-shadow: 0 2px 5px rgba(0,0,0,0.2);\n position: relative;\n z-index: 20;\n }\n "))))),x&&e.createElement("div",{className:"yt-byob-filter-actions",style:{display:"flex",gap:"12px",borderTop:"1px solid #eee",padding:"16px 0px",position:"sticky",bottom:"2px",paddingInline:"10px"}},e.createElement("button",{className:"yt-byob-filter-clear-button",onClick:a,style:{flex:1,padding:"8px",background:"#f3f4f6",border:"none",borderRadius:m?.byob?.borderRadius||"8px",cursor:"pointer",fontWeight:600,fontSize:"14px",color:"#333",fontFamily:"inherit"}},"Clear All"),e.createElement("button",{className:"yt-byob-filter-apply-button",onClick:i,style:{flex:1,padding:"8px",background:m?.general?.primaryColor||"#333",color:"white",border:"none",borderRadius:m?.byob?.borderRadius||"8px",cursor:"pointer",fontWeight:600,fontSize:"14px",fontFamily:"inherit"}},"Apply")))},od=t=>{const{showFiltersDrawer:n,handleClose:r,isAnimating:o,isMobile:a}=t;return n?O(e.createElement("div",{className:"yt-byob-filter-drawer-overlay",style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",zIndex:1e3,display:"flex",justifyContent:"flex-end",opacity:o?1:0,transition:"opacity 300ms ease-in-out"},onClick:r},e.createElement("div",{className:"yt-byob-filter-drawer-content",style:{width:a?"85%":"380px",height:"100%",background:"white",boxShadow:"-4px 0 12px rgba(0,0,0,0.15)",transform:o?"translateX(0)":"translateX(100%)",transition:"transform 300ms ease-in-out",display:"flex",flexDirection:"column",position:"relative"},onClick:e=>e.stopPropagation()},e.createElement(rd,{...t,applyPriceFilter:()=>{t.applyPriceFilter(),r()},openSections:t.openSections||{},toggleSection:t.toggleSection||(()=>{})}))),document.body):null},ad=t=>{const{showFiltersDrawer:n}=t;return n&&0!==t?.availableFilters?.length?e.createElement("div",{className:"yt-byob-filters-sidebar",style:{width:"280px",minWidth:"280px",padding:"0",height:"auto",maxHeight:"calc(100vh - 40px)",position:"sticky",top:"20px",display:"flex",flexDirection:"column",borderRight:"1px solid #eee",marginRight:"20px"}},e.createElement(rd,{...t,showActions:!0,openSections:t.openSections||{},toggleSection:t.toggleSection||(()=>{})})):null},id=({enableSortAndFilter:r,isMobile:o,setSearchTerm:a,searchTerm:i,styles:l,setSortBy:s,appliedFilters:c,setAppliedFilters:d,availableFilters:p=[],products:m,availableProductCount:u,unavailableProductCount:g,maxPossiblePrice:f,storeCurrencyCode:y,sharedFiltersState:x,openSections:b,toggleSection:w,sortBy:v})=>{const[C,E]=t(!1),[k,T]=t(i),{showFilters:S,setShowFilters:N,priceMax:F,setPriceMax:B,priceMin:$,setPriceMin:z}=x,[I,P]=t(!1),D=l?.byob?.productFiltersDisplay||"drawer",A=!o&&"sidebar"===D,_="none"===D;n(()=>{c["filter.v.price"]||(B(f),z(0))},[f,c]);n(()=>{const e=setTimeout(()=>{a(k)},300);return()=>clearTimeout(e)},[k,a]),n(()=>(S&&!A?(document.body.style.overflow="hidden",P(!0)):(document.body.style.overflow="",P(!1)),()=>{document.body.style.overflow=""}),[S,A]);const L=Object.entries(c).reduce((e,[t,n])=>"filter.v.price"===t?$>0||F<f?e+1:e:e+(n?n.length:0),0);return e.createElement("div",{className:"yt-byob-sort-filter-container",style:{display:"flex",flexDirection:o?"column":"row",justifyContent:"space-between",alignItems:o?"flex-end":"center",marginBottom:"20px",width:"100%",gap:o?"10px":"0"}},e.createElement("div",{className:"yt-byob-search-filter-controls",style:{display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:"space-between",alignItems:C?void 0:"center",gap:"12px",width:"100%"}},r&&e.createElement("div",{className:"yt-byob-search-wrapper",style:{position:"relative",display:"flex",alignItems:"center",width:o?C?"100%":"auto":"400px",transition:"width 0.3s ease-in-out"}},o&&!C?e.createElement(Ze,{className:"yt-byob-search-icon-trigger",fontSize:"20px",color:"#555",style:{cursor:"pointer"},onClick:()=>E(!0)}):e.createElement(e.Fragment,null,e.createElement("input",{className:"yt-byob-search-input",style:{width:"100%",padding:o?"10px 12px":"10px 14px",fontSize:"14px",outline:"none",color:"#333",border:"1px solid #c7c7c7",borderRadius:l?.byob.borderRadius,boxShadow:l?.byob.borderColor?"0 2px 4px rgba(0,0,0,0.1)":"none"},placeholder:"Search by Product Name",value:k,onChange:e=>T(e.target.value)}),!C&&e.createElement(Ze,{className:"yt-byob-search-icon",fontSize:"18px",style:{position:"absolute",right:"12px",color:"#aaa",pointerEvents:"none"}})),o&&C&&e.createElement("span",{className:"yt-byob-search-close",style:{position:"absolute",right:"12px",color:"#aaa",fontSize:"16px",cursor:"pointer"},onClick:()=>E(!1)},"X")),e.createElement("div",{className:"yt-byob-actions-wrapper",style:{display:"flex",flexDirection:"row",gap:"10px"}},p?.length>0&&e.createElement("button",{className:"yt-byob-filter-toggle-button",onClick:()=>N(!S),style:{display:_?"none":"flex",alignItems:"center",gap:o?"0px":"6px",background:S&&A?"#f3f4f6":"white",cursor:"pointer",fontSize:"14px",color:"#333",whiteSpace:"nowrap",border:"1px solid #d1d5db",padding:"8px 12px",borderRadius:l?.byob.borderRadius,boxShadow:"0 2px 4px rgba(0,0,0,0.1)"}},e.createElement(Ge,{className:"yt-byob-filter-toggle-icon",size:18}),!o&&"Filters",L>0&&e.createElement("span",{className:"yt-byob-active-filter-badge",style:{background:l?.general?.primaryColor||"#ef4444",color:"white",borderRadius:"999px",padding:"2px 8px",fontSize:"12px",lineHeight:1}},L)),r&&e.createElement("div",{className:"yt-byob-sort-wrapper",style:{display:"flex",alignItems:"center",border:"1px solid #d1d5db",padding:"8px 12px",borderRadius:l?.byob.borderRadius,boxShadow:"0 2px 4px rgba(0,0,0,0.1)",position:"relative"}},!o&&e.createElement("span",{className:"yt-byob-sort-label",style:{fontSize:"14px",color:"#555",marginRight:"6px"}},"Sort:"),o&&e.createElement(Xe,{className:"yt-byob-sort-icon",size:18,style:{color:"#555"}}),e.createElement("select",{className:"yt-byob-sort-select",style:{border:"none",background:"transparent",fontSize:"14px",color:"#333",cursor:"pointer",outline:"none",appearance:"none",WebkitAppearance:"none",paddingRight:"20px"},value:v,onChange:e=>s(e.target.value)},e.createElement("option",{className:"yt-byob-sort-option",value:""},"Featured"),e.createElement("option",{className:"yt-byob-sort-option",value:"price-low-to-high"},"Price: Low to High"),e.createElement("option",{className:"yt-byob-sort-option",value:"price-high-to-low"},"Price: High to Low"),e.createElement("option",{className:"yt-byob-sort-option",value:"title-asc"},"Alphabetical: A-Z"),e.createElement("option",{className:"yt-byob-sort-option",value:"title-desc"},"Alphabetical: Z-A")),e.createElement(h,{className:"yt-byob-sort-chevron",size:14,style:{position:"absolute",right:"10px",pointerEvents:"none",color:"#555"}})))),!A&&!_&&e.createElement(od,{showFiltersDrawer:S,handleClose:()=>{A?N(!1):(document.body.style.overflow="",P(!1),setTimeout(()=>{N(!1)},300))},isAnimating:I,isMobile:o,availableFilters:p,appliedFilters:c,toggleFilter:(e,t)=>{d(n=>{const r=n[e]||[],o=r.includes(t)?r.filter(e=>e!==t):[...r,t],a={...n,[e]:o.length?o:void 0};return Object.fromEntries(Object.entries(a).filter(([,e])=>void 0!==e))})},clearAllFilters:()=>{B(f),z(0),d({})},applyPriceFilter:()=>{d(e=>{const t={...e};return t["filter.v.price"]=[`min:${$}-max:${F}`],t})},priceMin:$,setPriceMin:z,priceMax:F,setPriceMax:B,maxPossiblePrice:f,styles:l,availableProductCount:u,products:m,unavailableProductCount:g,storeCurrencyCode:y,openSections:b,toggleSection:w}))},ld=()=>e.createElement(e.Fragment,null,e.createElement("style",null,"@keyframes spin { to { transform: rotate(360deg); } }"),e.createElement("div",{className:"yt-collection-bundle-loader-spinner",style:{width:"14px",height:"14px",border:"2px solid #f3f3f3",borderTop:"2px solid #007bff",borderRadius:"50%",animation:"spin 1s linear infinite",display:"block"}})),sd=({title:t,uploadState:n,onUpload:r,onRemove:o,onRetry:a})=>{const i="string"==typeof n?{url:n,name:"Attachment"}:n,l=i?.loading,s=i?.error,c=i?.url;return e.createElement("div",{className:"yt-personalization-upload-field",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",border:"1px dashed #ccc",borderRadius:"10px",background:"#fff",gap:"12px"}},e.createElement("div",{className:"yt-personalized-form-field-content",style:{flex:1,minWidth:0}},e.createElement("div",{className:"yt-personalized-form-field-title",style:{fontWeight:600,fontSize:"14px",color:"#1a1a1a"}},t),!i&&!l&&!s&&e.createElement("div",{className:"yt-personalized-form-field-hint",style:{fontSize:"12px",color:"#888",marginTop:"2px"}},"jpeg/png/img (max size: 5MB)"),l&&e.createElement("div",{className:"yt-personalized-form-field-loading",style:{display:"flex",alignItems:"center",gap:"6px",color:"#007bff",fontSize:"12px",marginTop:"4px"}},e.createElement(ld,null)," Uploading ",i?.name||"image","..."),s&&e.createElement("div",{className:"yt-personalized-form-field-error",style:{fontSize:"12px",color:"#dc3545",marginTop:"2px"}},"Upload failed."),c&&!l&&!s&&e.createElement("div",{className:"yt-personalized-form-field-preview",style:{display:"flex",alignItems:"center",gap:"8px",marginTop:"6px"}},e.createElement("img",{className:"yt-personalized-form-field-preview-image",src:i.url,alt:"Uploaded",style:{width:"36px",height:"36px",objectFit:"cover",borderRadius:"4px",border:"1px solid #eee"}}),e.createElement("span",{className:"yt-personalized-form-field-preview-name",style:{fontSize:"12px",color:"#28a745",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},i.name))),e.createElement("div",{className:"yt-personalized-form-field-actions",style:{flexShrink:0}},s&&e.createElement("button",{type:"button",className:"yt-personalized-form-retry-button",onClick:a,style:{fontSize:"13px",fontWeight:600,color:"#303030",background:"white",border:"1.5px solid #E3E3E3",borderRadius:"10px",padding:"8px 16px",cursor:"pointer",whiteSpace:"nowrap"}},"Retry"),c&&!l&&!s&&e.createElement("button",{type:"button",className:"yt-personalized-form-remove-button",onClick:o,style:{fontSize:"13px",fontWeight:600,color:"#fff",background:"#dc3545",border:"none",borderRadius:"10px",padding:"8px 16px",cursor:"pointer",whiteSpace:"nowrap"}},"Remove"),!i&&!l&&e.createElement("button",{type:"button",className:"yt-personalized-form-upload-button",onClick:r,style:{fontSize:"13px",fontWeight:600,color:"#303030",background:"white",border:"1.5px solid #E3E3E3",borderRadius:"10px",padding:"8px 16px",cursor:"pointer",whiteSpace:"nowrap"}},"Upload Image")))},cd=({form:r,formData:a,setFormData:i,barHeight:l=0,isUploading:s,setIsUploading:c})=>{const d=o(new Map),[p,m]=t(!1),u=c??m;n(()=>()=>{d.current.forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),d.current.clear()},[]);const g=e=>{if(!d.current.has(e)){const t=document.createElement("input");t.type="file",t.accept="image/jpeg,image/png",t.style.display="none",t.multiple=!1,t.onchange=async t=>{const n=t.target.files?.[0];if(n){if(n.size>5242880)return alert("Max 5MB");if(!n.type.match(/^image\/(jpeg|png)$/i))return alert("JPEG/PNG only");i(t=>({...t,[e]:{loading:!0,name:n.name}}));try{const t=await(async e=>{const t=new FormData;t.append("file",e),u(!0);try{const e=window?.Shopify?.shop||"falah-devstore.myshopify.com",n=window?.Shopify?.shop?"https://products.yourtoken.io":"http://localhost:8000",r=await fetch(`${n}/shopify/upload?shop=${e}`,{method:"POST",headers:{"x-yourtoken-app-name":"bundles"},body:t});if(!r.ok)throw new Error("Upload failed");return(await r.json()).url}catch(e){throw alert("Upload failed. Try again."),e}finally{u(!1)}})(n);i(r=>({...r,[e]:{url:t,name:n.name}}))}catch{i(t=>({...t,[e]:{error:!0,name:n.name}}))}}},document.body.appendChild(t),d.current.set(e,t)}return d.current.get(e)};return e.createElement("div",{className:"yt-personalized-form",style:{width:"100%",padding:"8px 0",marginBottom:`${l}px`,boxSizing:"border-box"}},r.sections?.map((t,n)=>e.createElement("div",{key:`sec_${n}`,className:"yt-personalized-form-section",style:{marginBottom:"28px"}},e.createElement("label",{className:"yt-personalized-form-section-title",style:{display:"block",fontWeight:700,marginBottom:"10px",color:"#1a1a1a",fontSize:"15px",lineHeight:"normal"}},t?.title),"text"===t.type&&e.createElement("div",{className:"yt-personalized-form-text-fields",style:{display:"flex",flexDirection:"column",gap:"12px"}},t.fields.map((t,n)=>{const r=t?.title??"Field "+n;return e.createElement("textarea",{key:r,className:"yt-personalized-form-textarea",placeholder:t?.title,rows:3,maxLength:500,value:a[r]||"",onChange:e=>i(t=>({...t,[r]:e.target.value})),style:{width:"100%",padding:"8px 0",border:"none",borderBottom:"1.5px solid #ddd",borderRadius:0,fontSize:"14px",color:"#1a1a1a",background:"transparent",resize:"none",outline:"none",lineHeight:"1.5",boxSizing:"border-box"}})})),"image"===t.type&&e.createElement("div",{className:"yt-personalized-form-image-section"},e.createElement("div",{className:"yt-personalized-form-image-hint",style:{fontSize:"12px",color:"#888",marginBottom:"10px"}},"Supported formats - jpeg/png/img (max size: 5MB)"),e.createElement("div",{className:"yt-personalized-form-image-fields",style:{display:"flex",flexDirection:"column",gap:"10px"}},t.fields.map((t,n)=>{const r=t?.title??"Field "+n;return e.createElement(sd,{key:r,title:t?.title,uploadState:a[r],onUpload:()=>g(r).click(),onRemove:()=>i(e=>{const{[r]:t,...n}=e;return n}),onRetry:()=>g(r).click()})}))))))},dd={position:"absolute",width:72,height:72,border:"4px solid #333366",background:"#fff",boxSizing:"border-box"},pd={...dd},md="6s",ud=({isOpen:t,message:n="Preparing Bundle..."})=>{if(!t)return null;const r=e.createElement(e.Fragment,null,e.createElement("style",null,"\n@keyframes ytBundleLoaderFadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n@keyframes ytBundleLoaderFloat {\n 0%, 100% { transform: translateY(0); }\n 50% { transform: translateY(-10px); }\n}\n\n/*\n * Flaps start OPEN, stay open while items fall, then close, pause, reopen.\n * 0-60%: open (180deg) — items fall in\n * 60-78%: closing\n * 78-88%: closed pause\n * 88-100%: reopening\n */\n@keyframes ytBundleLoaderOpenNorth {\n 0% { transform: rotateX(180deg); }\n 60% { transform: rotateX(180deg); }\n 78% { transform: rotateX(0deg); }\n 88% { transform: rotateX(0deg); }\n 100% { transform: rotateX(180deg); }\n}\n@keyframes ytBundleLoaderOpenSouth {\n 0% { transform: rotateX(-180deg); }\n 60% { transform: rotateX(-180deg); }\n 78% { transform: rotateX(0deg); }\n 88% { transform: rotateX(0deg); }\n 100% { transform: rotateX(-180deg); }\n}\n@keyframes ytBundleLoaderOpenEast {\n 0% { transform: rotateY(180deg); }\n 60% { transform: rotateY(180deg); }\n 78% { transform: rotateY(0deg); }\n 88% { transform: rotateY(0deg); }\n 100% { transform: rotateY(180deg); }\n}\n@keyframes ytBundleLoaderOpenWest {\n 0% { transform: rotateY(-180deg); }\n 60% { transform: rotateY(-180deg); }\n 78% { transform: rotateY(0deg); }\n 88% { transform: rotateY(0deg); }\n 100% { transform: rotateY(-180deg); }\n}\n\n/* Item 1: falls into top box opening and disappears behind front wall */\n@keyframes ytBundleLoaderItemFall1 {\n 0%, 5% {\n transform: translate3d(-50%, -90px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.5);\n opacity: 0;\n }\n 10% {\n transform: translate3d(-50%, -65px, 0px) rotateY(-50deg) rotateX(45deg) scale(1);\n opacity: 1;\n }\n 22% {\n transform: translate3d(-50%, -5px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.85);\n opacity: 1;\n }\n 27% {\n transform: translate3d(-50%, 25px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.6);\n opacity: 0;\n }\n 100% {\n transform: translate3d(-50%, 25px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.6);\n opacity: 0;\n }\n}\n\n/* Item 2: falls 20-41% */\n@keyframes ytBundleLoaderItemFall2 {\n 0%, 19% {\n transform: translate3d(-50%, -90px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.5);\n opacity: 0;\n }\n 24% {\n transform: translate3d(-50%, -65px, 0px) rotateY(-50deg) rotateX(45deg) scale(1);\n opacity: 1;\n }\n 36% {\n transform: translate3d(-50%, -5px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.85);\n opacity: 1;\n }\n 41% {\n transform: translate3d(-50%, 25px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.6);\n opacity: 0;\n }\n 100% {\n transform: translate3d(-50%, 25px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.6);\n opacity: 0;\n }\n}\n\n/* Item 3: falls 34-55% */\n@keyframes ytBundleLoaderItemFall3 {\n 0%, 33% {\n transform: translate3d(-50%, -90px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.5);\n opacity: 0;\n }\n 38% {\n transform: translate3d(-50%, -65px, 0px) rotateY(-50deg) rotateX(45deg) scale(1);\n opacity: 1;\n }\n 50% {\n transform: translate3d(-50%, -5px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.85);\n opacity: 1;\n }\n 55% {\n transform: translate3d(-50%, 25px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.6);\n opacity: 0;\n }\n 100% {\n transform: translate3d(-50%, 25px, 0px) rotateY(-50deg) rotateX(45deg) scale(0.6);\n opacity: 0;\n }\n}\n"),e.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",backgroundColor:"rgba(0, 0, 0, 0.3)",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",zIndex:2147483644,animation:"ytBundleLoaderFadeIn 0.4s ease-out"}},e.createElement("p",{style:{fontFamily:"inherit",fontSize:15,fontWeight:600,color:"#fff",margin:"0 0 48px",letterSpacing:"0.04em",textShadow:"0 1px 8px rgba(0,0,0,0.3)",lineHeight:"normal"}},n),e.createElement("div",{style:{position:"relative",width:140,height:140,display:"flex",justifyContent:"center",alignItems:"center",perspective:600}},e.createElement("div",{style:{animation:`ytBundleLoaderFloat ${md} ease-in-out infinite`,transformStyle:"preserve-3d"}},e.createElement("div",{style:{position:"relative",width:72,height:72,transformStyle:"preserve-3d",transform:"rotateX(-45deg) rotateY(50deg) rotateZ(0deg)"}},e.createElement("div",{style:{...pd,transform:"rotateY(180deg) translateZ(36px)",background:"#f1f5f9"}}),e.createElement("div",{style:{...pd,transform:"rotateY(-90deg) translateZ(36px)",background:"#f8fafc"}}),e.createElement("div",{style:{...pd,transform:"rotateY(90deg) translateZ(36px)",background:"#f8fafc"}}),e.createElement("div",{style:{...pd,transform:"rotateX(-90deg) translateZ(36px)",background:"#e2e8f0"}}),e.createElement("div",{style:{position:"absolute",top:0,left:"50%",width:24,height:24,animation:`ytBundleLoaderItemFall1 ${md} cubic-bezier(0.25, 1, 0.5, 1) infinite`,pointerEvents:"none"}},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4H6z",stroke:"#f5a623",strokeWidth:"2",fill:"#fef3c7"}),e.createElement("path",{d:"M3 6h18",stroke:"#f5a623",strokeWidth:"2"}),e.createElement("path",{d:"M16 10a4 4 0 01-8 0",stroke:"#f5a623",strokeWidth:"2",fill:"none"}))),e.createElement("div",{style:{position:"absolute",top:0,left:"50%",width:22,height:22,animation:`ytBundleLoaderItemFall2 ${md} cubic-bezier(0.25, 1, 0.5, 1) infinite`,pointerEvents:"none"}},e.createElement("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M16 3h4l2 4-4 2v13H6V9L2 7l2-4h4",stroke:"#4a90d9",strokeWidth:"2",fill:"#dbeafe"}),e.createElement("path",{d:"M8 3a4 4 0 008 0",stroke:"#4a90d9",strokeWidth:"2",fill:"none"}))),e.createElement("div",{style:{position:"absolute",top:0,left:"50%",width:22,height:22,animation:`ytBundleLoaderItemFall3 ${md} cubic-bezier(0.25, 1, 0.5, 1) infinite`,pointerEvents:"none"}},e.createElement("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none"},e.createElement("rect",{x:"3",y:"8",width:"18",height:"14",rx:"1",stroke:"#7ed321",strokeWidth:"2",fill:"#dcfce7"}),e.createElement("rect",{x:"1",y:"8",width:"22",height:"5",rx:"1",stroke:"#7ed321",strokeWidth:"2",fill:"#bbf7d0"}),e.createElement("path",{d:"M12 8V22",stroke:"#7ed321",strokeWidth:"2"}),e.createElement("path",{d:"M12 8c-2-4-6-4-6-1s4 1 6 1",stroke:"#7ed321",strokeWidth:"2",fill:"none"}),e.createElement("path",{d:"M12 8c2-4 6-4 6-1s-4 1-6 1",stroke:"#7ed321",strokeWidth:"2",fill:"none"}))),e.createElement("div",{style:{...pd,transform:"translateZ(36px)"}}),e.createElement("div",{style:{position:"absolute",top:0,left:0,width:72,height:72,transform:"rotateX(90deg) translateZ(36px)",transformStyle:"preserve-3d"}},e.createElement("div",{style:{...dd,top:0,left:0,width:"100%",height:"50%",transformOrigin:"top center",animation:`ytBundleLoaderOpenNorth ${md} ease-in-out infinite`}}),e.createElement("div",{style:{...dd,bottom:0,left:0,width:"100%",height:"50%",transformOrigin:"bottom center",animation:`ytBundleLoaderOpenSouth ${md} ease-in-out infinite`}}),e.createElement("div",{style:{...dd,top:0,right:0,width:"50%",height:"100%",transformOrigin:"right center",animation:`ytBundleLoaderOpenEast ${md} ease-in-out infinite`}}),e.createElement("div",{style:{...dd,top:0,left:0,width:"50%",height:"100%",transformOrigin:"left center",animation:`ytBundleLoaderOpenWest ${md} ease-in-out infinite`}})))))));return R.createPortal(r,document.body)};function gd({quantity:t,setQuantity:n,remainingQuantity:r,handleAddToBundle:o,variantId:a,product:i,handleRemoveItem:l,hideAddToBundle:s,selectedVariantInventoryQty:c}){const d={display:"flex",alignItems:"center",justifyContent:"center",width:"33%",cursor:"pointer",backgroundColor:"#f2f2f2",userSelect:"none",border:"none",padding:"8px",margin:"0",fontSize:"20px",color:"#333",textDecoration:"none",boxShadow:"none",outline:"none",borderRadius:"0",boxSizing:"border-box"},p=t<c;return e.createElement(Ks,{className:"yt-byob-quantity-selector-container"},e.createElement("button",{className:"yt-byob-quantity-minus-button",onClick:e=>{e.stopPropagation();const r=Math.max(0,t-1);n?.(r),l&&a&&l(a,1)},style:d,"data-gokwik-processed":"true"},"-"),e.createElement(Js,{className:"yt-byob-quantity-display","data-gokwik-processed":"true"},t," ",e.createElement("span",{className:"yt-byob-quantity-added-text",style:{paddingLeft:"4px"}}," ","added")),e.createElement("button",{className:"yt-byob-quantity-plus-button",onClick:e=>{e.stopPropagation();const l=Math.min(r,t+1,c);n?.(l),o&&a&&i&&o(a,i,1)},disabled:!p||s,style:{...d,cursor:!p||s?"not-allowed":"pointer",opacity:!p||s?.6:1},"data-gokwik-processed":"true"},"+"))}!function(){if("undefined"==typeof window||window.__yt_dom_safeguarded)return;window.__yt_dom_safeguarded=!0;const e=Node.prototype,t=e.insertBefore;e.insertBefore=function(e,n){return n&&n.parentNode!==this?n.parentNode?n.parentNode.insertBefore(e,n):this.appendChild(e):t.call(this,e,n)};const n=e.removeChild;e.removeChild=function(e){return e&&e.parentNode!==this?e.parentNode?e.parentNode.removeChild(e):e:n.call(this,e)}}();const fd=({product:o,styles:a,selectedVariant:i})=>{const[l,s]=t(!1),c=r(()=>lu(i?.image?.url||o?.featuredMedia?.preview?.image?.url||o?.media?.edges?.[0]?.node?.image?.url)||"",[i?.image?.url,o?.featuredMedia?.preview?.image?.url,o?.media?.edges]),d=r(()=>o?.media?.edges?.map(e=>lu(e?.node?.preview?.image?.url??e?.node?.image?.url)).filter(Boolean)??[],[o?.media?.edges]),p=r(()=>d?.[1]??c??"",[d,c]);n(()=>{if(c){(new Image).src=c}},[c]);const m=r(()=>c||d?.[0],[c,d]);return e.createElement("div",{className:"yt-byob-image-hover-container",style:{position:"relative",width:"100%",overflow:"hidden",aspectRatio:a.general.imageAspectRatio||"1/1"},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)},e.createElement("div",{className:"yt-byob-image-inner-container",style:{width:"100%",height:"100%",position:"relative"}},e.createElement("img",{className:"yt-byob-image-main",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"top",opacity:l&&m!==p?0:1,transition:d?.length>0?"opacity 300ms ease, transform 300ms ease":"",transform:l?"scale(1.1)":"scale(1)"},src:m,alt:o.title}),m!==p&&e.createElement("img",{className:"yt-byob-image-hover",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",opacity:l?1:0,transition:"opacity 400ms ease, transform 400ms ease",transform:l?"scale(1.1)":"scale(1)",position:"absolute",top:0,left:0,objectPosition:"top"},src:p,alt:o.title})))},yd=({product:r,bundle:o,handleAddToBundle:i,hideAddToBundle:l,remainingQuantity:s,themeColor:c,handleRemoveItem:d,transitionActive:p,idx:m,selecteditems:u,customVariantsQuantity:g,currentProductTier:f,showFreebieTierProductPrices:y,tierIndex:x})=>{const b=he(Qc),w=o.customizations,v=w?.byob?.variantSelectorType,[C,E]=t(!1),k=w.general?.variantTitleSuffix?r?.variants?.edges:(e=>{if(!e||e.length<2)return e;const t=e.map(e=>e.node.title).map(e=>e.split(" "));let n=[...t[0]];for(let e=1;e<t.length;e++){const r=t[e];let o=0;for(;o<n.length&&o<r.length&&n[n.length-1-o]===r[r.length-1-o];)o++;n=n.slice(n.length-o)}return n.length<1?e:e.map(e=>{const t=e.node.title.split(" "),r=t.slice(0,t.length-n.length).join(" ");return{...e,node:{...e.node,title:r,commonSuffix:n.join(" ")}}})})(r?.variants?.edges);if(!k||!k.length)return e.createElement(e.Fragment,null);const T=a(e=>{const t=g?.find(t=>t.variantId===e)?.quantity;if(void 0!==t)return t;const n=k?.find(t=>t.node.id===e),a=n?.node;return a?r.tracksInventory&&a.inventoryItem?.tracked?a.inventoryQuantity>0?o?.customProductsQuantity??a.inventoryQuantity:a.inventoryQuantity<=0&&"continue"===a.inventoryPolicy?.toLowerCase()?o?.customProductsQuantity??1/0:0:o?.customProductsQuantity??1/0:0},[k,g,r.tracksInventory]),S=k?.filter(e=>!1!==w.general.showOutOfStockVariants||T(e.node.id)>0);if(!S||!S.length)return e.createElement(e.Fragment,null);const N=S?.find(e=>T(e.node.id)>0)?.node?.id;if(!N&&!w.general.showOutOfStockProducts)return e.createElement(e.Fragment,null);const[F,B]=t(S?.find(e=>T(e.node.id)>0)?.node?.id||S[0]?.node?.id),[$,z]=t(window.innerWidth<450),[I,P]=t("normal"),D=S?.find(e=>e?.node?.id===F)?.node,A=T(F||""),_=u?.find(e=>e.variantId===F&&(void 0===x||e.tierIndex===x)),L=_?_.quantity:0;n(()=>{const e=()=>{z(window.innerWidth<450)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),n(()=>{CSS.supports("font-weight","500")?P("500"):CSS.supports("font-weight","400")?P("400"):CSS.supports("font-weight","600")&&P("600")},[]),n(()=>{document.documentElement.style.setProperty("--yt-bundle-font-weight",I)},[I]),n(()=>{if(F&&!S?.some(e=>e.node.id===F)){const e=S.find(e=>T(e.node.id)>0)?.node.id||S[0]?.node?.id;e&&B(e)}},[F,S,T]);const R=r.variants&&r.variants.edges?.length>1&&"customOptions"!==v,O="undefined"!=typeof window?(window?.ytapp||window?.ytBundleApp)?.storeId:void 0,M="53933408435"===O,V="75851235630"===O,W=(e=>{if(e.metafield&&"yourtoken_bundles_app"===e.metafield.namespace&&"categories"===e.metafield.key){if(e.metafield.jsonValue&&Array.isArray(e.metafield.jsonValue))return e.metafield.jsonValue;if(e.metafield.value)try{const t=JSON.parse(e.metafield.value);if(Array.isArray(t))return t}catch(e){console.error("Failed to parse categories:",e)}}return[]})(r),j=W.length>0;return e.createElement(e.Fragment,null,e.createElement(nc,{borderRadius:w?.byob.borderRadius,borderColor:w?.byob.borderColor,shadowType:w?.byob.shadowType,backgroundColor:w?.byob.cardBackgroundColor,className:"yt-byob-product-container bundle-builder-product-container "+(p?"yt-product-card-transition-active":m%2==0?"yt-product-card-transition":"yt-product-card-transition-up"),onClick:()=>{if(w?.general?.redirectToPDP)return;if(A<=0)return;const e={...r,variants:{...r.variants,edges:S},selectedVariant:D};b(e)},onMouseEnter:e=>{e.currentTarget.style.transform="scale(1.01)"},onMouseLeave:e=>{e.currentTarget.style.transform="scale(1)"},style:{WebkitTapHighlightColor:"transparent",textAlign:w?.byob?.productCardDetailsAlignment||"left"}},e.createElement(rc,{className:"yt-byob-image-wrapper",onClick:e=>{if(w?.general?.redirectToPDP&&r?.handle){e.stopPropagation();const t=window?.Shopify?.routes?.root||"/";window.location.href=`${t}products/${r.handle}`}},style:{cursor:"pointer"}},e.createElement(fd,{product:r,styles:w,selectedVariant:D}),o?.productCardBadgeText&&e.createElement("div",{className:"yt-byob-product-badge",style:{position:"absolute",top:"0px",left:"0px",backgroundColor:w?.general.primaryColor||"#111",color:w?.general.primaryContrastColor||"#fff",zIndex:1,margin:"0px",whiteSpace:"pre",padding:"4px 8px",fontSize:"12px",borderTopLeftRadius:w.byob.borderRadius}},o.productCardBadgeText),R&&e.createElement("div",{className:"yt-byob-variant-selector-wrapper",style:{position:"relative",width:"100%"}},e.createElement(oc,{className:"yt-byob-variant-selector",isCoralHaze:M,onClick:e=>{e.preventDefault(),e.stopPropagation()},value:F||"",onChange:e=>{e.stopPropagation(),e.preventDefault(),B(e.target.value)}},S?.map(t=>{const n=window.innerWidth<=320?10:window.innerWidth<=420?15:22,r=t.node.title.length>n?t.node.title.substring(0,n)+"...":t.node.title;return e.createElement("option",{key:t.node.id,value:t.node.id,className:0===T(t.node.id)?"variant-out-of-stock":""},r)})),e.createElement("div",{className:"yt-byob-variant-chevron",style:{position:"absolute",right:"16px",bottom:"10px",pointerEvents:"none"}},e.createElement(h,null)))),e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"===w?.byob?.productCardDetailsAlignment?"center":"right"===w?.byob?.productCardDetailsAlignment?"flex-end":"flex-start"},className:"yt-byob-product-details-wrapper"},e.createElement("div",{className:"yt-byob-product-content"},"enabled"===o?.customizations?.byob?.productCardCategoryVisibility&&j&&e.createElement("div",{className:"yt-byob-product-categories-wrapper",style:{padding:"2px 4px"}},e.createElement("div",{className:"yt-byob-product-categories",style:{display:"flex",flexWrap:"wrap",gap:"4px",justifyContent:"center"===w?.byob?.productCardDetailsAlignment?"center":"right"===w?.byob?.productCardDetailsAlignment?"flex-end":"flex-start"}},W.slice(0,2).map((t,n)=>e.createElement("span",{className:"yt-byob-category-tag",key:n,style:{fontSize:$?"10px":"14px",color:"#666",fontWeight:"500",paddingBottom:"4px"}},t.charAt(0).toUpperCase()+t.slice(1))),W.length>2&&e.createElement("span",{className:"yt-byob-more-categories",style:{fontSize:"10px",padding:"2px 6px",backgroundColor:"rgba(0, 0, 0, 0.05)",borderRadius:"8px",color:"#666",fontWeight:"500"}},"+",W.length-2," more"))),e.createElement(ac,{isMobile:$,showBorder:o?.showBorder??!0,style:{...!w?.byob.productsPriceVisibility&&{padding:"8px"},...w?.byob.productTitleFontSize&&{fontSize:w?.byob.productTitleFontSize||"18px"}},className:"yt-byob-product-title-wrapper"},e.createElement("div",{style:{display:"-webkit-box",WebkitLineClamp:w?.byob?.productTitleWrapLines||2,WebkitBoxOrient:"vertical",overflow:"hidden",lineHeight:"normal"},className:"yt-byob-product-title"},V?String(D?.displayName).replace("- Default Title",""):r.title,D?.commonSuffix?" -"+D?.commonSuffix:""))),"Default Title"!==D?.title&&w?.byob?.showVariantTitleInCard&&e.createElement("p",{style:{padding:o?.showBorder??1?"0px 10px":"0 4px",fontSize:"12px",margin:"0",fontWeight:"600",color:"#888",lineHeight:"normal"},className:"yt-byob-product-variant-title"},D?.title),"ratingOnly"===(w?.byob?.productRatingsDisplay??o?.reviewRatingType)&&(r?.rating?.averageRating??0)>0&&e.createElement("div",{className:"yt-byob-product-ratings",style:{display:"flex",alignItems:"center",justifyContent:"center"===w?.byob?.productCardDetailsAlignment?"center":"right"===w?.byob?.productCardDetailsAlignment?"flex-end":"flex-start",fontSize:"14px",color:"#333"}},e.createElement(We,{color:"gold",size:14})," ",e.createElement("span",{style:{marginLeft:6}},r?.rating?.averageRating," ",e.createElement("span",null,"rating"))),"ratingAndReviewCount"===(w?.byob?.productRatingsDisplay??o?.reviewRatingType)&&(r?.rating?.averageRating??0)>0&&e.createElement("div",{className:"yt-byob-product-ratings-count",style:{display:"flex",alignItems:"center",justifyContent:"center"===w?.byob?.productCardDetailsAlignment?"center":"right"===w?.byob?.productCardDetailsAlignment?"flex-end":"flex-start",fontSize:"14px",color:"#333"}},e.createElement(We,{color:"gold",size:14})," ",r?.rating?.averageRating,e.createElement(De,{className:"yt-byob-verified-icon",size:14,style:{color:"dodgerblue",marginLeft:"4px"}})," ","(",r?.rating?.ratingCount," ",e.createElement("span",{style:{marginLeft:"2px"}},"reviews"),")"),w?.byob.productsPriceVisibility&&e.createElement("div",{className:"yt-byob-product-price yt-bundle-builder-product-price",style:{marginBottom:"5px",padding:o?.showBorder?"0px 10px":"0 4px"}},f?.isFreebieTier&&!y?e.createElement(e.Fragment,null,e.createElement("span",{className:"yt-byob-compare-price yt-fixed-bundle-original-price",style:{fontSize:"14px",textDecoration:"line-through",color:"#888",marginRight:"6px"}},iu(w.general.currencySymbol,o?.storeCurrencyCode)??"Rs.",au(D?.price)),e.createElement("span",{className:"yt-byob-current-price",style:{color:w.general.primaryColor||"#d32f2f",fontWeight:"bold"}},"FREE")):parseFloat(D?.price??"0")>0?e.createElement("span",{className:"yt-byob-current-price"},iu(w.general.currencySymbol,o?.storeCurrencyCode)??"Rs.",au(D?.price)):e.createElement("span",{className:"yt-byob-free-price"},"Free"),(!f?.isFreebieTier||y)&&D?.compareAtPrice&&w?.byob.compareAtPriceVisibility&&parseFloat(D.compareAtPrice)>parseFloat(D?.price)&&e.createElement("span",{className:"yt-byob-compare-price yt-fixed-bundle-original-price",style:{fontSize:"14px"}},iu(w.general.currencySymbol,o?.storeCurrencyCode)??"Rs.",au(D.compareAtPrice)))),(A>0||A===1/0)&&e.createElement(ic,{borderRadius:w?.byob.borderRadius,className:"yt-byob-add-to-bundle-wrapper yt-product-atc-wrapper"},(0===L||void 0===L)&&e.createElement(ec,{key:"add-to-bundle-btn",style:{...!l&&{backgroundColor:w?.general.primaryColor||"#111",color:w?.general.primaryContrastColor||"#fff"}},disabled:l,onClick:e=>{e.stopPropagation(),e.preventDefault(),(()=>{if(!F)return;"customOptions"===v&&S.length>1?E(!0):i(F,r,1)})()},className:"yt-byob-add-to-bundle-button yt-product-atc-button","data-gokwik-processed":"true"},w?.byob.addToBundleCTAText),!o?.disableQuantitySelector&&L>0&&F&&e.createElement(tc,{key:"quantity-selector-container",className:"yt-byob-quantity-selector-container visible",style:{overflow:"hidden"}},e.createElement(gd,{remainingQuantity:s,quantity:L,handleAddToBundle:i,variantId:F,product:r,handleRemoveItem:d,hideAddToBundle:l,selectedVariantInventoryQty:A})),o?.disableQuantitySelector&&L>0&&F&&e.createElement(ec,{key:"single-qty-added-btn",style:{backgroundColor:"#747474",color:w?.general.primaryContrastColor||"#fff",display:"flex",justifyContent:"space-between",overflow:"hidden",height:"40px"},className:"yt-byob-added-button yt-product-atc-single-qty-selector","data-gokwik-processed":"true"},e.createElement(lc,{className:"yt-byob-added-text yt-product-atc-single-qty-selector-added"},"ADDED"),e.createElement(sc,{className:"yt-byob-single-qty-remove yt-product-atc-single-qty-selector-remove",onClick:e=>{e.stopPropagation(),d&&F&&d(F,x)},"data-gokwik-processed":"true"},e.createElement(Je,{style:{color:"#fff",fontSize:"20px"}})))),A<=0&&A!==1/0&&e.createElement(ec,{style:{backgroundColor:w.general.disabledButtonColor,color:"#fff",cursor:"not-allowed",transition:"transform 0.2s ease-in-out"},className:"yt-product-atc-disabled","data-gokwik-processed":"true"},w?.general.outOfStockLabel||"Out of Stock")),"customOptions"===v&&C&&S.length>1&&e.createElement(Jc,{product:r,isOpen:C,onClose:()=>E(!1),variantOptions:o.variantOptions,cta:{textColor:w?.general?.ctaTextColor||"#fff",backgroundColor:w?.general?.ctaBackgroundColor||"#000"},onConfirm:e=>{B(e),i(e,r,1)},showOutOfStockVariants:!1!==w.general.showOutOfStockVariants}))},xd=({currentStep:t,setCurrentProductTier:n,totalSteps:r,tiers:o,isMobile:a,selectedProductsByTier:i,primaryColor:l="#000",primaryTextColorCta:s="#fff",tierNavigation:c})=>e.createElement("div",{className:"yt-byob-stepper-container",style:{textAlign:"center",fontSize:"20px"}},e.createElement("div",{className:"yt-byob-stepper-steps",style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center"}},Array.from({length:r}).map((s,d)=>{const p=d+1,m=!o[d].isFormStep&&o[d].minimumQuantity-(i[d]?.length??0)===0,u=d===t;return l="black"===l?"#000000":l,e.createElement(e.Fragment,{key:p},e.createElement("div",{className:"yt-byob-stepper-step-wrapper",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",gap:a?"4px":"8px"},onClick:()=>!1===c?()=>{}:n(p-1)},e.createElement("div",{className:"yt-byob-stepper-step-number",style:{fontSize:"14px"}},"Step ",p),e.createElement("div",{className:"yt-byob-stepper-step-bar",style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",cursor:"pointer"}},e.createElement("div",{className:"yt-byob-stepper-step-left-bar",style:{height:"3px",width:a?"30px":"50px",backgroundColor:u?"#666666":m?l:"#CBD5E0",display:"block",borderTopLeftRadius:"5px",borderBottomLeftRadius:"5px"}}),e.createElement("div",{className:"yt-byob-stepper-step-circle",style:{width:"10px",height:"10px",borderRadius:"50%",backgroundColor:u?"white":m?`${l}50`:"white",border:`2px solid ${u?"#666666":m?l:"#CBD5E0"}`,display:"flex",alignItems:"center",justifyContent:"center"}}),e.createElement("div",{className:"yt-byob-stepper-step-right-bar",style:{height:"3px",width:a?"30px":"50px",backgroundColor:u?"#666666":m?l:"#CBD5E0",display:"block",marginRight:d<r?a?"4px":"6px":"",borderTopRightRadius:"5px",borderBottomRightRadius:"5px"}}))))})),e.createElement("div",{className:"yt-byob-stepper-title",style:{margin:a?"16px 0px":"15px 0px",fontSize:a?"16px":"18px",padding:"4px",background:"rgba(0, 0, 0, 0.03)",borderBottom:"1px solid rgba(130, 130, 130, 0.28)"}},o[t]?.title)),hd=({styles:t,isMobile:n,categories:r,activeCategory:o,onCategoryChange:a})=>{const i=e=>{a(e)},l=(e,t)=>{const n=e.replace("#","");return`rgba(${parseInt(n.substring(0,2),16)}, ${parseInt(n.substring(2,4),16)}, ${parseInt(n.substring(4,6),16)}, ${t})`};return"tabs"===t?.byob?.categoryFilterOnPage?e.createElement("div",{className:"yt-byob-category-filter-wrapper",style:{overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",marginBottom:"20px",width:"100%"}},e.createElement("div",{className:"yt-byob-category-tabs-container",style:{display:"flex",gap:"0px",minWidth:"max-content",paddingBottom:"1px",flexWrap:"nowrap",justifyContent:"center",borderBottom:"1px solid #e0e0e0",width:"auto",height:n?"28px":"45px"}},["All",...r].map(r=>{const a=o===r;return e.createElement("button",{key:r,onClick:()=>i(r),className:"yt-byob-category-tab-button",style:{background:"none",border:"none",padding:n?"12px 16px":"12px 20px",fontSize:n?"14px":"16px",fontWeight:a?"600":"400",color:a?t.general.primaryColor:"#666",cursor:"pointer",position:"relative",transition:"all 0.3s ease",backgroundColor:a?l(t.general.primaryColor,.07):"transparent",borderBottom:a?`2px solid ${t?.general.primaryColor}`:"2px solid transparent",marginBottom:"-1px",whiteSpace:"nowrap",minWidth:"fit-content"},onMouseEnter:e=>{a||(e.currentTarget.style.color=t?.general.primaryColor)},onMouseLeave:e=>{a||(e.currentTarget.style.color="#666")}},e.createElement("span",{style:{visibility:"hidden",height:0,display:"block",overflow:"hidden",fontWeight:600},"aria-hidden":"true"},r.charAt(0).toUpperCase()+r.slice(1)),e.createElement("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",textAlign:"center"}},r.charAt(0).toUpperCase()+r.slice(1)))}))):e.createElement("div",{className:"yt-byob-category-filter-wrapper",style:{overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",marginBottom:"20px",paddingBottom:"5px",maxWidth:"100%"}},e.createElement("div",{className:"yt-byob-category-buttons-container",style:{display:"flex",gap:"8px",minWidth:"max-content",flexWrap:"nowrap",justifyContent:"center",paddingRight:n?"10px":"0px"}},["All",...r].map(r=>e.createElement("button",{key:r,onClick:()=>i(r),className:"yt-byob-category-button",style:{padding:n?"8px 16px":"10px 18px",fontSize:n?"13px":"14px",fontWeight:"500",border:`1px solid ${o===r?t?.general.primaryColor:"#e0e0e0"}`,borderRadius:t?.general.ctaBorderRadius,backgroundColor:o===r?t?.general.primaryColor:"white",color:o===r?"white":"#333",cursor:"pointer",transition:"all 0.3s ease",outline:"none",whiteSpace:"nowrap",minWidth:"fit-content",flexShrink:0},onMouseEnter:e=>{o!==r&&(e.currentTarget.style.borderColor=t?.general.primaryColor,e.currentTarget.style.color=t?.general.primaryColor)},onMouseLeave:e=>{o!==r&&(e.currentTarget.style.borderColor="#e0e0e0",e.currentTarget.style.color="#333")}},r.charAt(0).toUpperCase()+r.slice(1)))))},bd=({bundle:i,selectedItems:l,setSelectedItems:s,handleAddToCart:c,bundleAddToCartLoading:d,renderingOnPage:p,selectedItemsQuantity:m,handleRemoveItem:u,bundleSubtotal:g,dispatchAnalyticsEvent:f,fetchStoreDetails:y,productsPagination:x,categoryFilters:h})=>{const[b,w]=t(void 0),[v,C]=t(window.innerWidth<450),[E,k]=t(0),[T,S]=t({}),N=!!i.personalizedForm?.title&&"productTier"===i.builderTiers?.type,[F,B]=t({}),[$,z]=t(!1),I=N&&E===(i.builderTiers?.productTier?.length||0),P=E===(i.builderTiers?.productTier?.length||0)-1,D=N&&P&&!I,[A,_]=t(i?.products),[L,R]=t(!1),[O,M]=t({}),[V,W]=t(20),j=o(null),[H,q]=t(i?.products),[U,Q]=t({}),[Y,Z]=t(x?.cursorData),G=i.builderTiers?.type,X=i.customizations,K=i.builderTiers?.productTier??[],J=i.builderTiers?.offerTier??[],[ee,te]=t("All"),ne=o(null),re=o(!0);n(()=>(re.current=!0,()=>{re.current=!1}),[]);const[oe,ae]=t({}),ie=o(void 0),le=o({appliedFilters:oe,currentProductTier:E,tierType:G}),[se,ce]=t([]),[de,pe]=t(!1),[me,ue]=t(0),[ge,fe]=t(0),[ye,xe]=t({}),he=e=>{xe(t=>{const n=!1!==t[e];return{...t,[e]:!n}})};n(()=>{se.length>0&&xe(e=>{const t={...e};return se.forEach(e=>{void 0===t[e.id]&&(t[e.id]=!1)}),t})},[se]),n(()=>{!(Object.values(oe).length>0)&&x?.cursorData&&Z(x.cursorData)},[oe,x?.cursorData]);const we=i.customStoreDetails?.fixedInventoryDetails;n(()=>{X?.byob?.productFiltersDisplay&&"none"!==X?.byob?.productFiltersDisplay&&(async()=>{const e=X?.byob?.productFiltersDisplay??"none";if("drawer"===e||"sidebar"===e)try{const e=await(y?.());e?.productFilters&&ce(e.productFilters??[])}catch(e){console.error("no filters data found")}})()},[X?.byob,y]);const ve=r(()=>{if(!h)return;const e=K[E]?.tier,t="productTier"===G?e:1,n="object"!=typeof h||Array.isArray(h)||h.id?h:h[t];if(!n)return;const r=Array.isArray(n)?n.find(e=>"filter.p.m.categories"===e.id||"categories"===e.label):n;return r&&r.values?{...r,values:[...r.values].sort((e,t)=>e.label.localeCompare(t.label,void 0,{sensitivity:"base",numeric:!0}))}:void 0},[h,E,K]),Ce=r(()=>{const e=(ve?.values?.map(e=>e.label)??[])?.filter(e=>"All"!==e);return e},[ve]),Ee=Ce.length>0;n(()=>{ae({})},[E,ee]);const ke=((e,t)=>"All"===t?e:e.filter(e=>{const n=e?.productDetails;if(n.metafield&&"yourtoken_bundles_app"===n.metafield.namespace&&"categories"===n.metafield.key){let e=[];if(n.metafield.jsonValue&&Array.isArray(n.metafield.jsonValue))e=n.metafield.jsonValue;else if(n.metafield.value)try{const t=JSON.parse(n.metafield.value);Array.isArray(t)&&(e=t)}catch(e){console.error("Failed to parse categories:",e)}return e.includes(t)}return!1}))(A.filter(e=>{if("undefined"!=typeof window&&"clayco-com.myshopify.com"===window?.Shopify?.shop&&""===e?.productDetails?.onlineStoreUrl)return!1;const t=e.productDetails.status?.toLowerCase(),n="active"===t||"unlisted"===t||void 0===e.productDetails.status||""===e.productDetails.status,r="estailofashion.myshopify.com"!==window?.Shopify?.shop||null!==e?.productDetails?.publishedAt;return n&&r}),ee),Se="productTier"===G?K.reduce((e,t)=>e+t.minimumQuantity,0):"offerTier"===G?J.reduce((e,t)=>e+t.minimumQuantity,0):i.minimumQuantity,Ne=a((e,t)=>{const n=we?.find(e=>e.variantId===t)?.quantity;if(void 0!==n)return n;const r=(e.variants?.edges||[]).find(e=>e.node.id===t),o=r?.node;return o?e.tracksInventory&&o.inventoryItem?.tracked?o.inventoryQuantity>0?o.inventoryQuantity:o.inventoryQuantity<=0&&"continue"===o.inventoryPolicy?.toLowerCase()?1/0:0:1/0:0},[we]),[Fe,Be]=t(3e3);n(()=>{const e=se?.find(e=>"PRICE_RANGE"===e.type||"filter.v.price"===e.id);e&&e.values?.[0]?.input?.price?.max&&Be(e.values[0].input.price.max)},[A,se]);const[$e,ze]=t(""),[Ie,Pe]=t(""),De=((e,t)=>e.filter(e=>e?.productDetails?.title?.toLowerCase().includes(t?.toLowerCase())))(ke,$e),Ae=((e,t)=>[...e].sort((e,n)=>{const r=e?.productDetails?.title?.toLowerCase(),o=n?.productDetails?.title?.toLowerCase(),a=parseFloat(e?.productDetails?.variants?.edges?.[0]?.node?.price||"0"),i=parseFloat(n?.productDetails?.variants?.edges?.[0]?.node?.price||"0");switch(t){case"title-asc":return r.localeCompare(o);case"title-desc":return o.localeCompare(r);case"price-low-to-high":return a-i;case"price-high-to-low":return i-a;default:return 0}}))(De,Ie);n(()=>{(async e=>{if(!x)return;const{initialCursorData:t,cursorData:n,fetchFn:r,setCursorData:o}=x,a="productTier"===G?K?.[E]?.tier:1;if(0===Object.values(e)?.length)return void("productTier"===G?(M(e=>({...e,[E]:U?.[E]||[]})),o(Y||{...n})):(_(H),o(Y||{1:t?.[1]})));const i=await r(e,a,null);re.current&&i&&("productTier"===G?(M(e=>({...e,[E]:i})),_(e=>{const t=new Set(e.map(e=>e.productId)),n=i.filter(e=>!t.has(e.productId));return[...e,...n]})):_(i))})(oe)},[oe]);const[_e,Le]=be(Qc),[Re,Oe]=t(!1);n(()=>{f?.({eventNameCustom:"block_visibility",eventTypeCustom:"views",data:{bundleId:i?._id,bundleType:"byob-page-bundle",byobBundleType:i.builderTiers?.type??"builder"}}),setTimeout(()=>{Oe(!0)},100)},[]);const Me=o(null);n(()=>{const e=()=>{C(window.innerWidth<450)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),n(()=>{if(i.coverImageUrl){const e=new Image;e.src=lu(i.coverImageUrl)??"",e.onload=()=>{w(e.width/e.height)}}},[i.coverImageUrl]),n(()=>{Oe(!1),setTimeout(()=>Oe(!0),100)},[E]);const Ve=(e,t)=>{if("productTier"===G){let n={...T},r=!1;if(n[t]){const o=n[t].indexOf(e);-1!==o&&(n[t]=[...n[t]],n[t].splice(o,1),r=!0)}if(!r)for(let t=K.length;t>=0;t--){const r=n[t].indexOf(e);if(-1!==r){n[t]=[...n[t]],n[t].splice(r,1);break}}S(n);const o=K.findIndex((e,t)=>n[t]?.length<e.minimumQuantity);-1!==o&&k(o)}u(e,t)},We=()=>{const e=document.querySelector(".products-display");e&&e.scrollIntoView({behavior:"smooth"})};n(()=>{if(i){if("productTier"!==i?.builderTiers?.type)return _(i?.products??[]),void q(i?.products??[]);if(i?.workWithoutPagination){if("productTier"===i?.builderTiers?.type){const e={};i.builderTiers.productTier?.forEach((t,n)=>{const r=t.products.map(e=>{const t=i?.products?.find(t=>t.productId===e.productId);return t?{...t,variantIds:e.variantIds?.length?e.variantIds:t.variantIds}:null}).filter(Boolean);e[n]=r}),M(e),Q(e)}}else"productTier"===i?.builderTiers?.type&&(M({0:i?.products}),Q({0:i?.products}))}},[i]),n(()=>{if("productTier"!==G||!K[E])return;if(Se===m)return;const e=K.findIndex((e,t)=>{const n=T[t]||[];return t>=E&&n.length<e.minimumQuantity});if(-1!==e&&e!==E){k(e);const t=K[E];t?.products?.length>1&&We()}else if(-1===e&&N&&E<K.length){K.every((e,t)=>(T[t]?.length||0)>=e.minimumQuantity)&&k(K.length)}},[T,K,G,N]),n(()=>{ze(""),te("All")},[E]),n(()=>{function e(e){if(!Me.current||!e.target)return;!Me.current.contains(e.target)&&Le(void 0)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);const je=(e,t,n)=>{var r;"productTier"===G&&(r=e,S(e=>{const t={...e},n=K.findIndex((e,n)=>{const r=t[n]||[];return n>=E&&r.length<e.minimumQuantity}),o=-1!==n?n:E;return-1!==n&&k(n),t[o]||(t[o]=[]),t[o].push(r),t}));const o=!0===K[E]?.isFreebieTier;f?.({eventNameCustom:"byob_add_to_bundle",eventTypeCustom:"clicks",data:{bundleId:i._id,bundleType:"byob-page-bundle",byobBundleType:i.builderTiers?.type??"builder",addedProduct:{id:t?.id,title:t?.title}}}),su(e,t,n,l,s,o,E)},He=(()=>{if(!i?.builderTiers)return i.minimumQuantity;const{type:e,offerTier:t,productTier:n}=i.builderTiers,r="offerTier"===e?t:"productTier"===e?n:null;if(!r)return i.minimumQuantity;let o=0;return r.map(e=>{o+=e.minimumQuantity}),o})(),qe=v&&i.mobileCoverImageUrl?lu(i.mobileCoverImageUrl):lu(i.coverImageUrl??"")||null,Ue=a(e=>{if("undefined"!=typeof window&&"clayco-com.myshopify.com"===window?.Shopify?.shop&&""===e?.productDetails?.onlineStoreUrl)return!1;const t=X?.general?.showOutOfStockProducts;if(t)return!0;const n=e?.productDetails,r=n?.variants?.edges||[];if(we){if(r.some(e=>we.some(t=>t.variantId===e.node.id&&t.quantity>0)))return!0}return r.some(e=>Ne(n,e.node.id)>0)},[X?.general?.showOutOfStockProducts,we,Ne]),Qe=r(()=>{if("productTier"===G&&K.length>0){const e=O?.[E]??[];return Ie?Ae.filter(t=>e.some(e=>e.productId===t.productId&&(e.variantIds.length<1||t.variantIds.includes(e.variantIds?.[0])))&&Ue(t)):e.map(e=>Ae.find(t=>t.productId===e.productId&&(e.variantIds.length<1||t.variantIds.includes(e.variantIds?.[0])))).filter(e=>e&&Ue(e))}return Ae.filter(Ue)},[G,K,O,E,Ae,Ue,Ie]),Ye=Qe;n(()=>{if("productTier"!==G)return;const e=K[E];if(!e)return;if(1!==e.minimumQuantity)return;if(1!==e.products.length)return;if(1!==O?.[E]?.length)return;const t=e.products[0],n=A.find(e=>e.productId===t.productId)?.productDetails;if(!n)return;if(n.variants?.edges?.length>1)return;const r=n.variants?.edges?.find(e=>Ne(n,e.node.id)>0)?.node;if(!r)return;const o=r.id,a=T[E]?.includes(o);if(!a&&(je(o,n,1),E<K.length-(N?0:1))){k(E+1);const e=K?.[E];e?.products?.length>1&&We()}},[G,K,E,A,T,Ne,je]);const Ze=r(()=>ke.filter(e=>{const t=e?.productDetails;return(t.variants?.edges||[]).some(e=>Ne(t,e.node.id)>0)}).length,[ke,Ne]),Ge=r(()=>ke.length-Ze,[ke,Ze]),Xe="bundles"==i.appName?i.pageHeader?.title:i?.title,Ke="bundles"==i.appName?i.pageHeader?.description:i?.subtitle,Je=Ee&&Boolean(X?.byob?.enableProductCategories),et=r(()=>{if(i?.workWithoutPagination)return!1;if(!Je)return!1;if(!x)return!1;const e="productTier"===G?K[E]?.tier:1;if(void 0===e)return!1;const t=x.cursorData?.[e];return t?t.hasNext:L},[i?.workWithoutPagination,Je,x,G,K,E,L]);n(()=>{if(i?.workWithoutPagination)return;if(Je)return;if(!x)return;const{cursorData:e,fetchFn:t}=x,n=K[E]?.tier,r="productTier"===G?n:1;if(e?.[r]&&!e?.[r]?.hasNext||!t)return;const o=le.current;o.currentProductTier===E&&o.tierType===G||(ie.current=void 0,le.current={...o,currentProductTier:E,tierType:G});const a=new IntersectionObserver(async([n])=>{if(!n.isIntersecting)return;if(L)return;const o=e?.[r]?.cursor||null;if(ie.current!==o){ie.current=o,R(!0);try{const n=await t(oe,r,e?.[r]?.cursor);if(!re.current)return;if(n?.length>0){const e=Object.values(oe).length>0;"productTier"===G?(M(e=>({...e,[E]:[...e[E]||[],...n]})),e||Q(e=>({...e,[E]:[...e[E]||[],...n]})),_(e=>[...e,...n])):(_(e=>[...e,...n]),e||q(e=>[...e,...n]))}}catch(e){console.error("Pagination fetch failed:",e),ie.current=void 0}finally{re.current&&R(!1)}}},{root:null,rootMargin:"300px",threshold:.01}),l=ne.current;return l&&a.observe(l),()=>{l&&a.unobserve(l)}},[i?.workWithoutPagination,Je,x,L,G,E,K,oe]),n(()=>{if(i?.workWithoutPagination)return;if(!Je)return;if(!x)return;const{cursorData:e,fetchFn:t}=x,n=K[E]?.tier,r="productTier"===G?n:1;if(!t)return;const o=le.current;(o.currentProductTier!==E||o.tierType!==G||JSON.stringify(o.appliedFilters)!==JSON.stringify(oe))&&(ie.current=void 0,le.current={appliedFilters:oe,currentProductTier:E,tierType:G});if(!(!e?.[r]||e[r].hasNext))return void R(!1);if(L)return;(async()=>{const n=e?.[r]?.cursor||null;if(ie.current!==n){ie.current=n,R(!0);try{const e=await t(oe,r,n);if(!re.current)return;if(e?.length>0){const t=Object.values(oe).length>0;"productTier"===G?(M(t=>({...t,[E]:[...t[E]||[],...e]})),t||Q(t=>({...t,[E]:[...t[E]||[],...e]})),_(t=>[...t,...e])):(_(t=>[...t,...e]),t||q(t=>[...t,...e]))}}catch(e){console.error("Fetch all products pagination error:",e),ie.current=void 0}finally{re.current&&R(!1)}}})()},[i?.workWithoutPagination,Je,x,E,oe,G,L,K]),n(()=>{if(!Je&&!i?.workWithoutPagination)return;if(et)return;if(!j.current)return;const e=new IntersectionObserver(([e])=>{e.isIntersecting&&V<Qe.length&&W(e=>Math.min(e+20,Qe.length))},{rootMargin:"200px"});return e.observe(j.current),()=>e.disconnect()},[Je,et,V,Qe.length]),n(()=>{W(20)},[E,Qe.length,Je,i?.workWithoutPagination]);const tt=()=>{f?.({eventNameCustom:"bundle_add_to_cart",eventTypeCustom:"clicks",data:{bundleId:i._id,bundleType:"byob-page-bundle",byobBundleType:i.builderTiers?.type??"builder",selectedProducts:l.map(e=>({id:e?.product?.id,title:e?.product?.title,quantity:e?.quantity}))}})};return e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-byob-builder-section",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",rowGap:"15px",marginBottom:"20px",backgroundColor:X.byob.sectionBackgroundColor,..."transparent"!==X.fixedBundle.sectionBackgroundColor&&{padding:"20px"}}},qe?e.createElement("div",{className:"yt-byob-cover-image-container",style:{position:"relative",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",overflow:"hidden",...i?.coverImageVerticalMargin&&{marginBottom:i?.coverImageVerticalMargin,marginTop:i?.coverImageVerticalMargin}}},qe&&e.createElement(td,{coverImageUrl:qe,alt:"Background",styles:{width:"100%",height:"auto",display:"block"}}),e.createElement("div",{className:"yt-byob-cover-image-overlay",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1,display:"flex",flexDirection:"column",alignItems:"center",padding:"20px",width:"90%",maxWidth:"1000px",textShadow:"2px 2px 8px rgba(0, 0, 0, 0.4)"}},e.createElement("span",{style:{lineHeight:"normal",fontSize:X?.byob?.titleFontSize??"3rem",fontWeight:"700",color:X?.byob?.titleTextColor??"#000",marginBottom:"15px",backgroundColor:X?.byob?.titleBackgroundColor??"transparent",width:"100%",textAlign:"center"},className:"bundle-builder-title"},Xe),e.createElement("span",{style:{lineHeight:"normal",fontSize:X?.byob?.subtitleFontSize??"1.5rem",color:X?.byob?.titleTextColor??"#000"},className:"bundle-builder-subtitle"},Ke))):(Xe||Ke)&&e.createElement("div",{className:"yt-byob-header-content",style:{zIndex:1,display:"flex",flexDirection:"column",alignItems:"center",padding:"20px",width:"90%",maxWidth:"1000px"}},Xe&&e.createElement("span",{className:"bundle-builder-title",style:{lineHeight:"normal",fontSize:X?.byob?.titleFontSize??"3rem",fontWeight:"700",color:X?.byob?.titleTextColor??"#000",marginBottom:"15px",textAlign:"center",width:"100%",backgroundColor:X?.byob?.titleBackgroundColor??"transparent"}},Xe),Ke&&e.createElement("span",{className:"bundle-builder-subtitle",style:{lineHeight:"normal",fontSize:X?.byob?.subtitleFontSize??"1.5rem",color:X?.byob?.titleTextColor??"#000"}},Ke)),e.createElement("div",{style:{fontSize:"20px",width:"100%"},className:"products-display"},"productTier"===G&&K.length>0&&X?.byob.productTiersVisibility&&e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-byob-stepper-wrapper"},e.createElement(xd,{currentStep:E,totalSteps:K.length+(N?1:0),tiers:N?[...K,{title:i.personalizedForm?.title||"Personalize",tier:K.length,minimumQuantity:0,products:[],isFormStep:!0}]:K,isMobile:v,primaryColor:X?.general?.primaryColor,primaryTextColorCta:X?.general?.primaryContrastColor,setCurrentProductTier:k,selectedProductsByTier:T,tierNavigation:X.byob.tierNavigation})))),e.createElement("div",{className:"yt-byob-layout-wrapper",style:{display:"flex",flexDirection:"row",width:v?"100%":"90%",marginInline:"auto"}},"sidebar"===X?.byob?.productFiltersDisplay&&!v&&!I&&e.createElement(ad,{showFiltersDrawer:de,handleClose:()=>pe(!1),isAnimating:!1,isMobile:!1,availableFilters:se,appliedFilters:oe,toggleFilter:(e,t)=>{ae(n=>{const r=n[e]||[],o=r.includes(t)?r.filter(e=>e!==t):[...r,t],a={...n,[e]:o.length?o:void 0};return Object.fromEntries(Object.entries(a).filter(([,e])=>void 0!==e))})},clearAllFilters:()=>{ae({}),fe(0),ue(Fe)},applyPriceFilter:()=>{ae(e=>{const t={...e};return t["filter.v.price"]=[`min:${ge}-max:${me}`],t})},priceMin:ge,setPriceMin:fe,priceMax:me,setPriceMax:ue,maxPossiblePrice:Fe,styles:X,products:A,unavailableProductCount:Ge,storeCurrencyCode:i?.storeCurrencyCode,openSections:ye,toggleSection:he}),e.createElement("div",{className:"yt-byob-products-column",style:{display:"flex",flexDirection:"column",flex:1,minWidth:0}},!I&&e.createElement("div",{className:"yt-byob-filters-wrapper",style:{width:"100%",marginBottom:"20px",display:"flex",flexDirection:"column",gap:"20px"}},e.createElement(id,{enableSortAndFilter:i?.enableSortAndFilter??!1,isMobile:v,searchTerm:$e,setSearchTerm:ze,setSortBy:Pe,styles:X,appliedFilters:oe,setAppliedFilters:ae,availableFilters:se,products:A,availableProductCount:Ze,unavailableProductCount:Ge,maxPossiblePrice:Fe,storeCurrencyCode:i?.storeCurrencyCode,sharedFiltersState:{showFilters:de,setShowFilters:pe,priceMax:me,setPriceMax:ue,priceMin:ge,setPriceMin:fe},openSections:ye,toggleSection:he}),i?.customizations?.byob?.enableProductCategories&&Ee&&e.createElement("div",{className:"yt-byob-category-filter-container"},e.createElement(hd,{styles:X,isMobile:v,categories:Ce,activeCategory:ee,onCategoryChange:e=>{te(e)}}))),e.createElement("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:X?.byob?.listingsGap||"12px",justifyContent:de&&"sidebar"===X?.byob?.productFiltersDisplay?"flex-start":"center",width:"100%",height:"fit-content",paddingBottom:p?"100px":"20px"},className:"products-display"},I&&i.personalizedForm?.title?e.createElement(cd,{form:i.personalizedForm,formData:F,setFormData:B,isUploading:$,setIsUploading:z}):0!==Ye?.length||L||et?(Je?Qe.slice(0,V):Qe).map((t,n)=>{if("productTier"===G){const r=(K[E]?.minimumQuantity??0)>(T[E]?.length??0),o=Ae.find(e=>e.productId===t.productId&&(t.variantIds.length<1||e.variantIds.includes(t.variantIds[0])));return o?e.createElement(yd,{bundle:i,idx:n,key:`tier-${E}-${t?.variantIds?.[0]??t.productId}-${n}`,product:o?.productDetails,handleAddToBundle:je,hideAddToBundle:!r,remainingQuantity:He-m,themeColor:i?.dealTextColor,handleRemoveItem:e=>Ve(e,E),selecteditems:l,transitionActive:Re,customVariantsQuantity:we,currentProductTier:K[E],showFreebieTierProductPrices:i?.customStoreDetails?.showFreebieTierProductPrices,tierIndex:E}):null}return e.createElement(yd,{bundle:i,idx:n,key:`card-${t.productId}-${n}`,product:t?.productDetails,handleAddToBundle:je,hideAddToBundle:m>=He,remainingQuantity:He-m,themeColor:i?.dealTextColor,handleRemoveItem:e=>u(e),selecteditems:l,transitionActive:Re,customVariantsQuantity:we,tierIndex:E})}):e.createElement("div",{className:"yt-byob-empty-state",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",padding:"40px 20px",gap:"16px"}},e.createElement("p",{style:{fontSize:"20px",color:"#333",textAlign:"center",margin:0}},Object.values(oe).length>0?"No products match your filters":"No products found"),Object.values(oe).length>0&&e.createElement("button",{onClick:()=>{ae({}),fe(0),ue(Fe)},style:{padding:"8px 16px",background:X?.general?.primaryColor||"#333",color:"white",border:"none",borderRadius:X?.byob?.borderRadius||"8px",cursor:"pointer",fontWeight:600,fontSize:"14px"}},"Clear All Filters")),!I&&(L||et)&&e.createElement("div",{className:"yt-byob-loading-wrapper",style:{width:"100%",display:"flex",justifyContent:"center",padding:"20px"}},e.createElement(Te,{color:X?.general?.primaryColor||"#333",size:30})),!Je&&!i?.workWithoutPagination&&e.createElement("div",{ref:ne,className:"yt-byob-pagination-observer",style:{height:"1px",width:"100%",display:"block"}},e.createElement("span",null)),(Je||i?.workWithoutPagination)&&!et&&e.createElement("div",{ref:j,className:"yt-byob-virtualFetchAll-observer",style:{height:"1px",width:"100%",display:"block"}},e.createElement("span",null))),!p&&e.createElement(Uc,{builderTiers:i?.builderTiers,showNextStep:D,handleAddToCart:async e=>{if(D)return k(E+1),void We();const t={};N&&Object.entries(F).forEach(([e,n])=>{const r=e.split("|").pop()?.replace(/^f_\d+$/,"")||e;"string"==typeof n&&n.trim()?t[r]=n:n&&"object"==typeof n&&"url"in n&&(t[r]=n.url)}),await c(e,t),tt()},minimumQuantity:Se,selectedProducts:l,showProductDetailsInTracker:i.showProductDetailsInTracker,handleRemoveItem:u,handleRemoveItemProductTier:Ve,selectedItemsQuantity:m,percentageOff:i.percentageOff,loading:d,bundleSubtotal:g,amountOff:i.amountOff,styles:i.customizations,dealAmount:i.dealAmount,discountType:i.discountType,themeColor:i?.dealTextColor??"#333",primaryTextColorCta:i?.primaryTextColorCta??"#fff",cornerRadiusType:i?.cornerRadiusType??"",selectedProductsByTier:T,renderingOnPage:p,isUploading:$}),p&&e.createElement("div",{className:"yt-byob-sticky-tracker-wrapper",style:{width:"100%",marginTop:"20px",position:"sticky",bottom:"10px",zIndex:999}},e.createElement(Uc,{showNextStep:D,handleAddToCart:async e=>{if(D)return k(E+1),void We();const t={};N&&Object.entries(F).forEach(([e,n])=>{const r=e.split("|").pop()?.replace(/^f_\d+$/,"")||e;"string"==typeof n&&n.trim()?t[r]=n:n&&"object"==typeof n&&"url"in n&&(t[r]=n.url)}),await c(e,t),tt()},minimumQuantity:Se,builderTiers:i?.builderTiers,selectedProducts:l,showProductDetailsInTracker:i.showProductDetailsInTracker,loading:d,handleRemoveItem:u,handleRemoveItemProductTier:Ve,percentageOff:i.percentageOff,selectedItemsQuantity:m??0,bundleSubtotal:g??{price:0,compareAtPrice:0},amountOff:i.amountOff,styles:i.customizations,dealAmount:i.dealAmount,discountType:i.discountType,themeColor:X?.general.primaryColor||"#000",primaryTextColorCta:X.general.primaryContrastColor??"#fff",cornerRadiusType:i?.cornerRadiusType??"",selectedProductsByTier:T,renderingOnPage:p,isUploading:$})))),_e&&void 0!==m&&(()=>{let t=m<i.minimumQuantity;return"productTier"==G?t=(K[E]?.minimumQuantity??0)>(T[E]?.length??0):"offerTier"==G&&(t=m<J.reduce((e,t)=>e+t.minimumQuantity,0)),e.createElement(ed,{bundleType:"byob",handleAddToBundle:je,ref:Me,remainingQuantity:i.minimumQuantity-m,hideAddToBundle:!t,disableQuantitySelector:i?.disableQuantitySelector??!1,selectedProducts:l,selectedProductsByTier:T,themeColor:X?.general.primaryColor||"#000",primaryTextColorCta:i?.customizations?.general.primaryContrastColor??"#fff",primaryBackgroundColorCta:X?.general.primaryColor||"#000",cornerRadius:i?.customizations.byob.borderRadius,styles:i.customizations,reviewRatingType:X?.fixedBundle?.productRatingsDisplay??i?.reviewRatingType,customVariantsQuantity:we,bundleProductsCustomQuantity:i?.customProductsQuantity,isFreebieTier:K?.[E]?.isFreebieTier,showFreebieTierProductPrices:i?.customStoreDetails?.showFreebieTierProductPrices,bundleVariantOptions:i?.variantOptions})})(),e.createElement(ud,{isOpen:Boolean(d)&&"animated"===i?.customizations?.general?.atcLoaderType})))},wd="\n@keyframes cartATCFadeIn {\n 0% {\n opacity: 0;\n transform: scale(0.96);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n@keyframes cartATCSlideIn {\n 0% {\n transform: translateX(-150%);\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n 100% {\n transform: translateX(0);\n opacity: 1;\n }\n}\n\n@keyframes cartATCSlideOut {\n 0% {\n transform: translateX(0);\n opacity: 1;\n }\n 80% {\n opacity: 1;\n }\n 100% {\n transform: translateX(150%);\n opacity: 0;\n }\n}\n\n@keyframes cartATCBounce {\n 0%, 100% {\n transform: translateY(0);\n }\n 50% {\n transform: translateY(1.5px);\n }\n}\n\n@keyframes cartATCItemDrop1 {\n 0%, 5% {\n transform: translate3d(-50%, -22px, 0) scale(0.4);\n opacity: 0;\n }\n 20% {\n transform: translate3d(-50%, -10px, 0) scale(0.95);\n opacity: 1;\n }\n 55% {\n transform: translate3d(-50%, 3px, 0) scale(0.7);\n opacity: 1;\n }\n 75%, 100% {\n transform: translate3d(-50%, 7px, 0) scale(0.3);\n opacity: 0;\n }\n}\n\n@keyframes cartATCItemDrop2 {\n 0%, 30% {\n transform: translate3d(-50%, -22px, 0) scale(0.4);\n opacity: 0;\n }\n 45% {\n transform: translate3d(-50%, -10px, 0) scale(0.95);\n opacity: 1;\n }\n 80% {\n transform: translate3d(-50%, 3px, 0) scale(0.7);\n opacity: 1;\n }\n 95%, 100% {\n transform: translate3d(-50%, 7px, 0) scale(0.3);\n opacity: 0;\n }\n}\n",vd=({loading:r,color:a="currentColor",size:i=24,children:l,className:s="",style:c,onComplete:d})=>{const[p,m]=t(r?"entering":"idle"),u=o(null),g=o(null);if(n(()=>(r?(g.current&&clearTimeout(g.current),m("entering"),u.current=setTimeout(()=>{m("filling")},400)):(u.current&&clearTimeout(u.current),m(e=>"filling"===e||"entering"===e?(g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{m("idle"),d?.()},450),"exiting"):"idle")),()=>{u.current&&clearTimeout(u.current),g.current&&clearTimeout(g.current)}),[r,d]),"idle"===p)return l?e.createElement("span",{className:s,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",animation:"cartATCFadeIn 0.3s ease-out forwards",...c}},e.createElement("style",null,wd),l):null;const f="entering"===p,y="exiting"===p,x={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",overflow:"hidden",height:i+6,paddingLeft:8,paddingRight:8,verticalAlign:"middle",width:"100%",...c},h={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",animation:f?"cartATCSlideIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards":y?"cartATCSlideOut 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards":"cartATCBounce 1.2s ease-in-out infinite"};return e.createElement("span",{className:`yt-cart-atc-loader ${s}`,style:x},e.createElement("style",null,wd),e.createElement("div",{style:h},e.createElement("svg",{width:i,height:Math.round(24*i/28),viewBox:"0 0 28 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1 2h4l2.6 13.2a2 2 0 002 1.6h12.8a2 2 0 002-1.6L26 6H6.6",stroke:a,strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("circle",{cx:"10.5",cy:"20.5",r:"1.8",fill:a}),e.createElement("circle",{cx:"21.5",cy:"20.5",r:"1.8",fill:a})),("filling"===p||"entering"===p||"exiting"===p)&&e.createElement(e.Fragment,null,e.createElement("div",{style:{position:"absolute",top:1,left:"56%",width:9,height:9,animation:"cartATCItemDrop1 1.4s ease-in-out infinite",pointerEvents:"none"}},e.createElement("svg",{width:"9",height:"9",viewBox:"0 0 10 10",fill:"none"},e.createElement("rect",{x:"1",y:"2",width:"8",height:"7",rx:"1",fill:"#f5a623",stroke:a,strokeWidth:"1"}),e.createElement("path",{d:"M5 2v7",stroke:a,strokeWidth:"1"}))),e.createElement("div",{style:{position:"absolute",top:1,left:"56%",width:9,height:9,animation:"cartATCItemDrop2 1.4s ease-in-out infinite",pointerEvents:"none"}},e.createElement("svg",{width:"9",height:"9",viewBox:"0 0 10 10",fill:"none"},e.createElement("rect",{x:"1",y:"2",width:"8",height:"7",rx:"1",fill:"#4a90d9",stroke:a,strokeWidth:"1"}),e.createElement("path",{d:"M1 5h8",stroke:a,strokeWidth:"1"}))))))},Cd=({isOpen:r,onClose:o,formConfig:a,onCheckout:i,cta:l,isMobile:s})=>{const[c,d]=t({}),[p,m]=t(!1);n(()=>{r||d({})},[r]);const u=e=>{if(p)return;const t={};Object.entries(c).forEach(([e,n])=>{const r=e.split("|").pop()?.replace(/^f_\d+$/,"")||e;"string"==typeof n&&n.trim()?t[r]=n:n&&"object"==typeof n&&"url"in n&&(t[r]=n.url)}),i(e?{}:t)};if(!r)return null;const g=e.createElement("div",{className:"yt-personalized-form-modal-overlay",onClick:o,style:{position:"fixed",top:0,left:0,right:0,bottom:0,width:"100vw",height:"100vh",background:"rgba(0, 0, 0, 0.4)",zIndex:9999,display:"flex",alignItems:s?"flex-end":"center",justifyContent:"center"}},e.createElement("style",null,"\n @keyframes slideUp {\n from { transform: translateY(100%); }\n to { transform: translateY(0); }\n }\n @keyframes fadeIn {\n from { opacity: 0; transform: scale(0.95); }\n to { opacity: 1; transform: scale(1); }\n }\n "),e.createElement("div",{className:"yt-personalized-form-modal",onClick:e=>e.stopPropagation(),style:{background:"white",width:s?"100vw":"500px",maxWidth:s?"100vw":"560px",height:s?"80vh":"auto",maxHeight:s?"80vh":"90vh",borderRadius:s?"20px 20px 0 0":"20px",display:"flex",flexDirection:"column",overflow:"hidden",zIndex:999,animation:s?"slideUp 0.3s ease-out":"fadeIn 0.2s ease-out"}},e.createElement("div",{className:"yt-personalized-form-modal-header",style:{width:"100%",padding:s?"20px 20px 16px":"18px 20px",fontWeight:700,fontSize:s?"18px":"16px",textAlign:"center",position:"relative",borderBottom:"1px solid #eee",flexShrink:0,backgroundColor:"#ffffff",color:"#1a1a1a",boxSizing:"border-box",lineHeight:"1.4"}},a.title||"Personalization",!s&&e.createElement("button",{className:"yt-personalized-form-modal-close",onClick:o,style:{position:"absolute",right:"16px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",fontSize:"24px",lineHeight:1,cursor:"pointer",color:"#666",padding:"4px"}},"×")),e.createElement("div",{className:"yt-personalized-form-modal-body",style:{flex:1,overflowY:"auto",padding:s?"20px 20px":"16px 20px"}},e.createElement(cd,{form:a,formData:c,setFormData:d,isUploading:p,setIsUploading:m})),e.createElement("div",{className:"yt-personalized-form-modal-footer",style:{padding:s?"12px 16px":"12px 24px 16px",borderTop:"1px solid #eee",flexShrink:0,background:"white",display:"flex",flexDirection:"column",alignItems:"center",gap:"10px"}},e.createElement("button",{className:"yt-personalized-form-submit-button",onClick:()=>{u(),o()},disabled:p,style:{width:"100%",fontSize:"15px",fontWeight:700,textAlign:"center",padding:"15px 0",border:"none",borderRadius:"10px",cursor:p?"not-allowed":"pointer",opacity:p?.7:1,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:l.backgroundColor,color:l.textColor,letterSpacing:"0.01em"}},p?e.createElement(Te,{color:l.textColor,size:15}):"Submit"),e.createElement("button",{className:"yt-personalized-form-skip-button",onClick:()=>{u(!0),o()},style:{background:"none",border:"none",fontSize:"14px",fontWeight:600,color:"#1a1a1a",cursor:"pointer",padding:"4px 8px",textAlign:"center"}},"Add without customization"))));return R.createPortal(g,document.body)},Ed=({product:t,selectedVariantId:n,onVariantChange:o,styles:a,originalPrice:i,dealPrice:l,totalPriceSum:s,isVertical:c=!1,variantOptions:d,storeCurrencyCode:p,reviewRatingType:m,productIndex:u,setActiveModalIndex:g})=>{const f=he(Qc),y=r(()=>e=>{const n=t?.productDetails?.variants?.edges?.find(t=>t.node.id===e),r=n?.node;return r?t?.productDetails.tracksInventory&&r.inventoryItem?.tracked?r.inventoryQuantity>0?r.inventoryQuantity:r.inventoryQuantity<=0&&"continue"===r.inventoryPolicy?.toLocaleLowerCase()?1/0:0:1/0:0},[t?.productDetails]),x=t?.productDetails?.variants?.edges?.find(e=>e?.node?.id===n)?.node;y(n);const b=r(()=>{if(x?.title&&t?.productDetails.options){const e=x.title.split(" / ");if(e.length===t?.productDetails.options.length)return e}return t?.productDetails.options?.map(e=>e.values[0])||[]},[x,t?.productDetails.options]),w=e=>{o(e)};return c?e.createElement("div",{className:"yt-comboBundle-product-card-vertical",style:{display:"flex",flexDirection:"column",alignItems:"center",lineHeight:"normal",width:"165px",backgroundColor:"#F6F6F6",borderRadius:"20px",border:"1px solid #B3B3B3",boxShadow:"4px 4px 0px -1px #00000033",overflow:"hidden"}},e.createElement("div",{className:"yt-comboBundle-product-card-image-container-vertical",style:{position:"relative",width:"100%"}},a.comboBundle.subProductsImageVisibility&&e.createElement(e.Fragment,null,e.createElement("img",{className:"yt-comboBundle-product-image-vertical",src:lu(x?.image?.url||t?.productDetails?.featuredMedia?.preview?.image?.url||"/placeholder.svg"),alt:t?.productDetails?.featuredMedia?.alt,width:165,height:165,onClick:e=>{if(a?.general?.redirectToPDP&&t?.productDetails?.handle){e.stopPropagation();const n=window?.Shopify?.routes?.root||"/";window.location.href=`${n}products/${t?.productDetails.handle}`}else if(!a?.general?.redirectToPDP&&t?.productDetails){e.stopPropagation(),void 0!==u&&g?.(u);const n={...t.productDetails,selectedVariant:x||t.productDetails.variants?.edges?.[0]?.node};f(n)}},style:{cursor:"pointer",objectFit:"cover",borderRadius:"20px",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",height:"100%",aspectRatio:a.general?.imageAspectRatio||"1/1"}}),e.createElement("div",{className:"yt-comboBundle-product-variant-selector-container-vertical",style:{marginTop:"8px",position:"absolute",bottom:"10px",left:"5px",right:"5px"}},t?.productDetails?.variants?.edges?.filter(e=>"Default Title"!==e.node.title)?.length>0&&e.createElement(e.Fragment,null,e.createElement("select",{className:"yt-comboBundle-product-variant-select-vertical",value:n,onChange:e=>w(e.target.value),style:{padding:"6px",border:"1px solid #ddd",backgroundColor:"#fff",color:"#333",width:"100%",appearance:"none",marginRight:"30px",fontSize:"12px",fontWeight:600}},t?.productDetails?.variants?.edges.map(t=>{const n=y(t?.node?.id);return!1===a?.general?.showOutOfStockVariants&&0===n?null:e.createElement("option",{key:t?.node?.id,value:t?.node?.id,disabled:0===n,className:"yt-comboBundle-product-variant-option"},t?.node?.title)})),e.createElement("div",{className:"yt-comboBundle-product-variant-select-icon-vertical",style:{position:"absolute",right:"1px",top:"2px",bottom:"0px",pointerEvents:"none",backgroundColor:"#F3F3F3",width:"15%",height:"calc(100% - 4px)",display:"flex",justifyContent:"center",alignItems:"center"}},e.createElement(h,null)))))),(a.comboBundle.subProductsProductTitleVisibility||a.comboBundle.subProductsProductPriceVisibility||m)&&e.createElement("div",{className:"yt-comboBundle-product-info-container-vertical",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"40px",width:"100%",paddingBlock:"5px"}},a.comboBundle.subProductsProductTitleVisibility&&e.createElement("span",{className:"yt-comboBundle-product-title-vertical",style:{fontSize:"12px",color:"#333",fontWeight:"600",lineHeight:"normal",textAlign:"center",width:"fit-content"}},t?.productDetails?.title),"ratingOnly"===m&&(t?.productDetails.rating?.averageRating??0)>0&&e.createElement("div",{className:"yt-comboBundle-product-ratings",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"12px",color:"#3f3f3f",paddingBlock:"6px",lineHeight:"normal"}},e.createElement(We,{color:"gold",size:14})," ",e.createElement("span",{style:{marginLeft:6,lineHeight:"normal"}},t?.productDetails?.rating?.averageRating," ",e.createElement("span",null,"rating"))),"ratingAndReviewCount"===m&&(t?.productDetails?.rating?.averageRating??0)>0&&e.createElement("div",{className:"yt-comboBundle-product-ratings-count",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"12px",color:"#3f3f3f",paddingBlock:"6px",lineHeight:"normal",fontWeight:"500"}},e.createElement(We,{color:"gold",size:14})," ",t?.productDetails?.rating?.averageRating,e.createElement(De,{className:"yt-comboBundle-verified-icon",size:14,style:{color:"dodgerblue",marginLeft:"4px"}})," ","(",t?.productDetails?.rating?.ratingCount," ",e.createElement("span",{style:{marginLeft:"2px"}},"reviews")," ",")"),a.comboBundle.subProductsProductPriceVisibility&&e.createElement("div",{className:"yt-comboBundle-product-price-container-vertical",style:{display:"flex",alignItems:"center",gap:"8px",lineHeight:"normal",fontSize:"14px"}},e.createElement("span",{className:"yt-comboBundle-product-deal-price-vertical",style:{lineHeight:"normal"}},iu(a.general.currencySymbol),au((Number(x?.price||0)/Number(s)*Number(l)).toFixed(2))),!1!==a.comboBundle.discountBadgeVisibility&&("discount-on-compare"===a.comboBundle.discountBadgeDisplay?e.createElement("span",{className:"yt-comboBundle-product-original-price-horizontal",style:{textDecoration:"line-through",color:"#999",fontSize:"14px",lineHeight:"normal"}},iu(a.general.currencySymbol),au(x?.compareAtPrice?x.compareAtPrice:x?.price)):Number(l)<Number(s)&&e.createElement("span",{className:"yt-comboBundle-product-original-price-horizontal",style:{textDecoration:"line-through",color:"#999",fontSize:"14px",lineHeight:"normal"}},iu(a.general.currencySymbol),au(x?.price)))))):e.createElement("div",{className:"yt-comboBundle-product-card-horizontal",style:{display:"flex",alignItems:"center",gap:"16px",padding:"4px",lineHeight:"normal",borderRadius:"8px",transition:"background-color 0.3s",width:"100%",border:"1px solid transparent",..."right"===a.comboBundle.infoAlignment&&{flexDirection:"row-reverse"},..."center"===a.comboBundle.infoAlignment&&{justifyContent:"center"}},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#fafafa",e.currentTarget.style.border="1px solid #DFDFDF"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.border="1px solid transparent"}},a.comboBundle.subProductsImageVisibility&&e.createElement("div",{className:"yt-comboBundle-product-image-wrapper-horizontal"},e.createElement("img",{className:"yt-comboBundle-product-image-horizontal",src:lu(x?.image?.url||t?.productDetails?.featuredMedia?.preview?.image?.url||"/placeholder.svg"),alt:t?.productDetails?.featuredMedia?.alt,height:80,onClick:e=>{if(a?.general?.redirectToPDP&&t?.productDetails?.handle){e.stopPropagation();const n=window?.Shopify?.routes?.root||"/";window.location.href=`${n}products/${t?.productDetails.handle}`}else if(!a?.general?.redirectToPDP&&t?.productDetails){e.stopPropagation();const n={...t.productDetails,selectedVariant:x||t.productDetails.variants?.edges?.[0]?.node};f(n)}},style:{cursor:"pointer",objectFit:"cover",borderRadius:"10px",border:"1px solid #DEDEDE",aspectRatio:a?.general?.imageAspectRatio||"1 / 1",height:"100px"}})),e.createElement("div",{className:"yt-comboBundle-product-info-horizontal",style:{display:"flex",flexDirection:"column",alignItems:"left"===a.comboBundle?.infoAlignment?"flex-start":"right"===a.comboBundle?.infoAlignment?"flex-end":"center"===a.comboBundle?.infoAlignment?"flex-start":void 0}},a.comboBundle.subProductsProductTitleVisibility&&e.createElement("span",{className:"yt-comboBundle-product-title-horizontal",style:{fontSize:"14px",fontWeight:"600",lineHeight:"normal",display:"flex",alignItems:"center",gap:"8px"}},e.createElement("span",{className:"yt-comboBundle-product-title-text"}," ",t?.productDetails?.title," "),"dropdown"!==a.comboBundle.comboVariantTypeSelector&&t?.productDetails.variants.edges.filter(e=>"Default Title"!==e.node.title).length>0&&d&&b&&e.createElement("span",{className:"yt-comboBundle-product-variant-tag-horizontal",style:{fontSize:"10px",color:"#666",backgroundColor:"#F4F4F4",padding:"2px 8px",borderRadius:"10px",border:"1px solid #ddd"}},b.length>1?b.join(" / "):b)),"ratingOnly"===m&&(t?.productDetails.rating?.averageRating??0)>0&&e.createElement("div",{className:"yt-comboBundle-product-ratings",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"12px",color:"#3f3f3f",paddingTop:"4px",paddingBottom:"0px",lineHeight:"normal"}},e.createElement(We,{color:"gold",size:14})," ",e.createElement("span",{style:{marginLeft:6,lineHeight:"normal"}},t?.productDetails?.rating?.averageRating," ",e.createElement("span",null,"rating"))),"ratingAndReviewCount"===m&&(t?.productDetails?.rating?.averageRating??0)>0&&e.createElement("div",{className:"yt-comboBundle-product-ratings-count",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"12px",color:"#3f3f3f",paddingTop:"4px",paddingBottom:"0px",lineHeight:"normal",fontWeight:"500"}},e.createElement(We,{color:"gold",size:14})," ",t?.productDetails?.rating?.averageRating,e.createElement(De,{className:"yt-comboBundle-verified-icon",size:14,style:{color:"dodgerblue",marginLeft:"4px"}})," ","(",t?.productDetails?.rating?.ratingCount," ",e.createElement("span",{style:{marginLeft:"2px"}},"reviews")," ",")"),a.comboBundle.subProductsProductPriceVisibility&&e.createElement("div",{className:"yt-comboBundle-product-price-wrapper-horizontal",style:{display:"flex",gap:"8px",marginTop:"5px",alignItems:"baseline"}},e.createElement("span",{className:"yt-comboBundle-product-deal-price-horizontal",style:{lineHeight:"normal"}},iu(a.general.currencySymbol),au((Number(x?.price||0)/Number(s)*Number(l)).toFixed(2))),!1!==a.comboBundle.discountBadgeVisibility&&("discount-on-compare"===a.comboBundle.discountBadgeDisplay?e.createElement("span",{className:"yt-comboBundle-product-original-price-horizontal",style:{textDecoration:"line-through",color:"#999",fontSize:"14px",lineHeight:"normal"}},iu(a.general.currencySymbol),au(x?.compareAtPrice?x?.compareAtPrice:x?.price)):Number(l)<Number(s)&&e.createElement("span",{className:"yt-comboBundle-product-original-price-horizontal",style:{textDecoration:"line-through",color:"#999",fontSize:"14px",lineHeight:"normal"}},iu(a.general.currencySymbol),au(x?.price)))),t?.productDetails.variants.edges.length>1&&("dropdown"===a.comboBundle.comboVariantTypeSelector?e.createElement("div",{className:"yt-comboBundle-product-variant-dropdown-horizontal",style:{display:"flex",gap:"8px",flexWrap:"wrap",lineHeight:"normal",marginTop:"10px"}},e.createElement("select",{className:"yt-comboBundle-product-variant-select-horizontal",value:n,onChange:e=>w(e.target.value),style:{padding:"6px",border:"1px solid #ddd",backgroundColor:"#fff",color:"#333",fontSize:"12px",fontWeight:600,borderRadius:"4px"}},t?.productDetails.variants.edges.map(t=>{const n=y(t?.node?.id);return!1===a?.general?.showOutOfStockVariants&&0===n?null:e.createElement("option",{key:t?.node?.id,value:t?.node?.id,disabled:0===n,className:"yt-comboBundle-product-variant-option"},t?.node?.title)})),e.createElement("div",{className:"yt-comboBundle-product-variant-select-icon-horizontal",style:{position:"absolute",right:"1px",top:"2px",bottom:"0px",pointerEvents:"none",backgroundColor:"#F3F3F3",width:"15%",height:"calc(100% - 4px)",display:"flex",justifyContent:"center",alignItems:"center"}},e.createElement(h,null))):t?.productDetails.options.length>0?e.createElement(e.Fragment,null,t?.productDetails.options.map((n,r)=>e.createElement("div",{key:n.name,className:"yt-comboBundle-product-option-group-horizontal",style:{...n?.values?.length>1&&{marginTop:"10px"},display:"flex",flexDirection:"row",gap:"8px",alignItems:"center"}},t?.productDetails.options.length>1&&n?.values?.length>1&&e.createElement("label",{className:"yt-comboBundle-product-option-label",style:{fontSize:"12px",fontWeight:"500",color:"#333"}},n.name,":"),n?.values?.length>1&&e.createElement("div",{className:"yt-comboBundle-product-option-values-horizontal",style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px",flexWrap:"wrap"}},n.values.map(o=>{const i=[...b];i[r]=o;const l=t?.productDetails.options.length>0?i.join(" / "):i[r],s=t?.productDetails.variants.edges.find(e=>e.node.title===l)?.node,c=0===(s?y(s.id):0);if(!1===a?.general?.showOutOfStockVariants&&c)return null;const p=b[r]===o,m=d&&d?.options?.find(e=>e.name===n.name);return m&&"color"===m?.type?e.createElement("button",{key:o,className:`yt-comboBundle-product-option-button-color ${p?"yt-comboBundle-product-option-button-selected":""} ${c?"yt-comboBundle-product-option-button-disabled":""}`,onClick:()=>{!c&&s&&w(s.id)},disabled:c,style:{borderRadius:"50%",padding:"1px",backgroundColor:"white",border:p&&!c?`1px solid ${a.general?.ctaBackgroundColor}`:"1px solid transparent",opacity:c?.5:1,cursor:c?"not-allowed":"pointer"}},m?.values.find(e=>e.name===o)?.value?e.createElement("div",{className:"yt-comboBundle-product-option-color-swatch",style:{width:p&&!c?"26px":"24px",height:p&&!c?"26px":"24px",borderRadius:"50%",backgroundColor:m?.values.find(e=>e.name===o)?.value}},e.createElement("span",null)):e.createElement("span",{key:o,className:"yt-comboBundle-product-option-text",style:{padding:"4px 8px",border:p&&!c?`1px solid ${a.general?.ctaBackgroundColor}`:c?"1px solid #ccc":"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:p&&!c?"#F7F7F7":"transparent",color:c?"#ccc":"#707070",fontSize:"10px",fontWeight:"600"}},o)):m&&"image"===m?.type?e.createElement("button",{key:o,className:`yt-comboBundle-product-option-button-image ${p?"yt-comboBundle-product-option-button-selected":""} ${c?"yt-comboBundle-product-option-button-disabled":""}`,onClick:()=>{!c&&s&&w(s.id)},disabled:c,style:{border:p&&!c?`1px solid ${a.general?.ctaBackgroundColor}`:"1px solid #E4E4E4",borderRadius:"100%",backgroundColor:p&&!c?"#F7F7F7":"transparent",cursor:c?"not-allowed":"pointer",padding:"0px",width:p&&!c?"26px":"24px",height:p&&!c?"26px":"24px",overflow:"hidden",opacity:c?.5:1}},m?.values.find(e=>e.name===o)?.value?e.createElement("img",{className:"yt-comboBundle-product-option-image",src:lu(m?.values.find(e=>e.name===o)?.value||"/placeholder.svg"),alt:o,style:{width:p&&!c?"26px":"24px",height:p&&!c?"26px":"24px",objectFit:"cover",borderRadius:"100%",aspectRatio:"1/1"}}):e.createElement("span",{key:o,className:"yt-comboBundle-product-option-text",style:{padding:"4px 8px",border:p&&!c?`1px solid ${a.general?.ctaBackgroundColor}`:c?"1px solid #ccc":"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:p&&!c?"#F7F7F7":"transparent",color:c?"#ccc":"#707070",fontSize:"10px",fontWeight:"600"}},o)):e.createElement("button",{key:o,className:`yt-comboBundle-product-option-button-text ${p?"yt-comboBundle-product-option-button-selected":""} ${c?"yt-comboBundle-product-option-button-disabled":""}`,onClick:()=>{!c&&s&&w(s.id)},disabled:c,style:{padding:"4px 8px",border:p&&!c?`1px solid ${a.general?.ctaBackgroundColor}`:c?"1px solid #ccc":"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:p&&!c?"#F7F7F7":"transparent",color:c?"#ccc":"#707070",cursor:c?"not-allowed":"pointer",fontSize:"10px",fontWeight:"600",opacity:c?.5:1}},o)}))))):e.createElement(e.Fragment,null,t?.productDetails?.variants?.edges?.length>1&&e.createElement("div",{className:"yt-comboBundle-product-variant-buttons-horizontal",style:{display:"flex",gap:"8px",flexWrap:"wrap",lineHeight:"normal",marginTop:"10px"}},t?.productDetails?.variants?.edges.map(t=>{const r=0===y(t?.node?.id);return!1===a?.general?.showOutOfStockVariants&&r?null:e.createElement("button",{key:t?.node?.id,className:`yt-comboBundle-product-variant-button ${n===t?.node?.id?"yt-comboBundle-product-variant-button-selected":""} ${r?"yt-comboBundle-product-variant-button-disabled":""}`,onClick:()=>w(t?.node?.id),disabled:r,style:{padding:"4px 8px",border:n===t?.node?.id?`1px solid ${a.general?.ctaBackgroundColor}`:"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:n===t?.node?.id?"#F7F7F7":"transparent",color:r?"#ccc":"#707070",cursor:r?"not-allowed":"pointer",fontSize:"12px",fontWeight:"500",opacity:r?.5:1}},t?.node?.title)}))))))},kd=({bundle:o,addToCartFunction:a,dispatchAnalyticsEvent:i})=>{const l=r(()=>{const e="undefined"!=typeof window&&"clayco-com.myshopify.com"===window?.Shopify?.shop,t=o.products?.filter(t=>{if(e&&""===t?.productDetails?.onlineStoreUrl)return!1;const n=t?.productDetails?.status?.toLowerCase();return!n||("active"===n||"unlisted"===n)})||[];if(!t.some(e=>e.quantity&&e.quantity>1))return{...o,products:t};const n=t.reduce((e,t)=>{const n=t.quantity||1;for(let r=0;r<n;r++)e.push(t);return e},[]);return{...o,products:n}},[o]),[s,c]=t(!1),[d,p]=t(window.innerWidth<786),[m,u]=t(!1),[g,f]=t(null),y=r(()=>(e,t)=>{const n=e?.variants?.edges?.find(e=>e.node.id===t),r=n?.node;return r?e.tracksInventory&&r.inventoryItem?.tracked?r.inventoryQuantity>0?r.inventoryQuantity:r.inventoryQuantity<=0&&"continue"===r.inventoryPolicy?.toLowerCase()?1/0:0:1/0:0},[]),[x,h]=t(()=>{const e={};return l.products.forEach((t,n)=>{const r=t?.productDetails?.variants?.edges?.find(e=>y(t?.productDetails,e?.node?.id)>0)?.node;e[n]=r?r.id:t?.productDetails?.variants?.edges[0]?.node?.id}),e}),[b,w]=t(null);n(()=>{if(b){const e=setTimeout(()=>w(null),2e3);return()=>clearTimeout(e)}},[b]);const v=l.products?.every((e,t)=>{const n=x[t];return y(e?.productDetails,n)>0});n(()=>(a&&(window.ytComboBundle={bundle:l,addToCart:a,selectedVariants:x},window.dispatchEvent(new CustomEvent("yt-combo-bundle-updated",{detail:window.ytComboBundle}))),()=>{window.ytComboBundle=void 0,window.dispatchEvent(new CustomEvent("yt-combo-bundle-updated",{detail:void 0}))}),[l,a,x]);const C=(e,t)=>{h(n=>({...n,[e]:t}))},E=async e=>{const t=Object.entries(x).map(([e])=>({id:l.products[parseInt(e)].productId,title:l.products[parseInt(e)]?.productDetails?.title}));i?.({eventNameCustom:"bundle_add_to_cart",eventTypeCustom:"clicks",data:{bundleId:l._id,bundleType:"combo-bundle",selectedProducts:t}});try{if(c(!0),w(null),!a)return console.error("[ComboBundle.tsx] No addToCartFunction available"),void c(!1);const t=Object.entries(x).map(([e,t])=>{const n=l.products[parseInt(e)],r=n?.productDetails.variants.edges.find(e=>e.node.id===t)?.node;return r?{variantId:t,price:Number(r.price)}:null}).filter(e=>null!==e),n=Object.values(x);await a(Number(N),n,Number(F),t,e)}catch(e){console.error("[ComboBundle.tsx] Error adding to cart:",e),w(cc(e))}c(!1)},k=l.customizations,T=k?.comboBundle?.discountBadgeDisplay||"discount-on-compare",S=k?.comboBundle?.discountBadgeVisibility,{originalPrice:N,dealPrice:F,offerValue:B,totalPriceSum:$,offerPercentage:z}=r(()=>{const{price:e,compareAtPrice:t}=Object.entries(x).reduce((e,[t,n])=>{const r=l.products[parseInt(t)],o=r?.productDetails.variants.edges?.find(e=>e.node.id===n)?.node,a=parseFloat(o?.price??"0"),i=parseFloat(o?.compareAtPrice||a.toString());return e.price+=a,e.compareAtPrice+=i,e},{price:0,compareAtPrice:0}),n=!1===S?e:"discount-on-price"===T?e:t;let r=e;l?.percentageOff?r=e*(1-l.percentageOff/100):l?.dealAmount?r=l.dealAmount:l?.amountOff&&(r=e-l.amountOff);const o=n-r,a=n>0?Math.round((n-r)/n*100):0;return{originalPrice:n.toFixed(2),dealPrice:r.toFixed(2),offerValue:o.toFixed(2),totalPriceSum:e.toFixed(2),offerPercentage:a}},[x,l.products,l.percentageOff,l.dealAmount,l.amountOff,T,S]);n(()=>{i?.({eventNameCustom:"block_visibility",eventTypeCustom:"views",data:{bundleId:l._id,bundleType:"combo-bundle"}});const e=()=>{p(window.innerWidth<786)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);const I=k.comboBundle?.comboCardStyle||"auto",P="vertical"===I||"auto"===I&&!d,D=k.comboBundle?.embedContentVisibility,A="bundles"==l.appName?l.pageHeader?.title:l?.title,_="bundles"==l.appName?l.pageHeader?.description:l?.subtitle;return e.createElement("div",{className:`yt-comboBundle-bundle-container ${"left"===k.comboBundle?.infoAlignment?"yt-comboBundle-bundle-align-left":"right"===k.comboBundle?.infoAlignment?"yt-comboBundle-bundle-align-right":"center"===k.comboBundle?.infoAlignment?"yt-comboBundle-bundle-align-center":void 0}`,style:{lineHeight:"normal",maxWidth:"800px",marginBlock:k.comboBundle?.verticalMargin||"0px",display:"flex",flexDirection:"column",alignItems:"left"===k.comboBundle?.infoAlignment?"flex-start":"right"===k.comboBundle?.infoAlignment?"flex-end":"center"===k.comboBundle?.infoAlignment?"center":void 0,textAlign:k.comboBundle?.infoAlignment??"left",fontFamily:"system-ui, -apple-system, sans-serif"}},D&&k.comboBundle?.selectedEmbedContentVisibilityOptions?.includes("Combo Title")&&e.createElement("div",{className:"yt-comboBundle-bundle-title-container",style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"10px"}},e.createElement("h2",{className:"yt-comboBundle-bundle-title",style:{fontSize:k.comboBundle?.productTitleFontSize||"28px",color:k.comboBundle?.titleTextColor||"#000",fontWeight:"bold",lineHeight:"1.6",margin:0}},A)),D&&k?.comboBundle?.selectedEmbedContentVisibilityOptions?.includes("Combo Price")&&e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-comboBundle-bundle-price-container",style:{display:"flex",alignItems:"center",gap:"8px",color:k.comboBundle?.titleTextColor||"#000",fontSize:(parseInt(k.comboBundle?.productTitleFontSize?.replace("px",""))||28)-4+"px"}},e.createElement("div",{className:"yt-comboBundle-bundle-price-details",style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap"}},e.createElement("span",{className:"yt-comboBundle-bundle-deal-price-text",style:{fontWeight:"bold",lineHeight:"1",minWidth:"fit-content"}},iu(k.general.currencySymbol,l.storeCurrencyCode),au(F)),!isNaN(Number(N))&&!isNaN(Number(F))&&Number(N)>Number(F)&&e.createElement("div",{className:"yt-comboBundle-bundle-original-price-text",style:{color:k.comboBundle?.titleTextColor||"#666",textDecoration:"line-through",verticalAlign:"middle",display:"inline-block",minWidth:"fit-content"}},iu(k.general.currencySymbol,l.storeCurrencyCode),au(N)),Number(B)>0&&!1!==S&&(()=>{const t="percentage"===(k?.comboBundle?.discountDisplayType||"amount")?`${z}% Off`:`Save ${iu(k.general.currencySymbol,l.storeCurrencyCode)}${au(B)}`;return e.createElement("span",{className:"yt-comboBundle-bundle-offer-badge",style:{backgroundColor:"#D3122A",color:"white",padding:"4px 8px",fontSize:"14px",borderRadius:"20px",fontWeight:"500",lineHeight:"1",minWidth:"fit-content"}},t)})())),e.createElement("div",{style:{display:"flex",alignItems:"center",gap:"8px",margin:"15px 0px"},className:"yt-comboBundle-checkoutSpecific-container"},e.createElement("div",{style:{display:"flex",width:"12px",height:"12px",justifyContent:"center",alignItems:"center",alignContent:"center",borderRadius:"50%",backgroundColor:k.general?.ctaBackgroundColor||"#1e1e1e",flexShrink:0},className:"yt-comboBundle-checkoutSpecific-dot"},e.createElement("span",null)),e.createElement("p",{style:{fontSize:k.comboBundle.productDescriptionFontSize||"16px",color:k.comboBundle?.descriptionTextColor||"#000",alignItems:"center",margin:0,lineHeight:"1.2"},className:"yt-comboBundle-checkoutSpecific-text"},"Tax included. ",e.createElement("u",null,"Shipping")," calculated at checkout."))),k.comboBundle.subProductsSectionVisibility&&e.createElement(e.Fragment,null,P?e.createElement("div",{className:"yt-comboBundle-products-grid-vertical "+(d?"yt-comboBundle-products-grid-mobile":""),style:{display:"flex",flexDirection:"row",gap:"20px",marginTop:"10px",flexWrap:"wrap"}},l.products.map((t,n)=>{const r=t?.productDetails?.variants?.edges?.find(e=>e?.node?.id===x[n])?.node;return r?e.createElement(Ed,{key:`combo-product-${n}-${t.productId}`,product:t,styles:k,originalPrice:N,dealPrice:F,totalPriceSum:$,selectedVariantId:x[n],onVariantChange:e=>C(n,e),isVertical:P,variantOptions:l.variantOptions,storeCurrencyCode:l.storeCurrencyCode,reviewRatingType:k?.comboBundle?.comboProductRatingsDisplay,productIndex:n,setActiveModalIndex:f}):null})):e.createElement("div",{className:"yt-comboBundle-products-list-horizontal "+(d?"yt-comboBundle-products-list-mobile":""),style:{display:"flex",flexDirection:"column",gap:"10px",width:"100%"}},k.comboBundle.subProductsSectionVisibility&&l.products.map((t,n)=>e.createElement(Ed,{key:`combo-product-horizontal-${n}-${t.productId}`,product:t,styles:k,originalPrice:N,dealPrice:F,totalPriceSum:$,selectedVariantId:x[n],onVariantChange:e=>C(n,e),variantOptions:l.variantOptions,reviewRatingType:k?.comboBundle?.comboProductRatingsDisplay,productIndex:n,setActiveModalIndex:f})))),e.createElement("div",{className:"yt-comboBundle-bundle-cta-section",style:{borderTop:"1px solid #eee",display:"flex",flexDirection:"column",rowGap:"5px",marginTop:"20px",width:"100%"}},e.createElement("button",{className:`yt-comboBundle-bundle-cta-button ${v?"":"yt-comboBundle-bundle-cta-button-disabled"} ${d?"yt-comboBundle-bundle-cta-button-mobile":""}`,style:{backgroundColor:b?"#dc2626":v?k.general?.ctaBackgroundColor||"#121212":k.general.disabledButtonColor,color:b?"#ffffff":k.general?.ctaTextColor||"#FFFFFF",fontSize:"16px",borderRadius:k.general.ctaBorderRadius??"20px",fontWeight:"bold",cursor:v?"pointer":"not-allowed",border:`1px solid ${b?"#dc2626":v?k.general?.ctaBackgroundColor||"#121212":k.general.disabledButtonColor}`,boxShadow:k.general.ctaShadowType,padding:k.general?.ctaPadding,width:k.general?.ctaWidth,margin:"0"},disabled:!v||s,onMouseOver:e=>{k.general.customizeHoverState&&v&&!b&&!s&&(e.currentTarget.style.backgroundColor=k.general?.ctaHoverBackgroundColor||"#F1F1F1",e.currentTarget.style.color=k.general?.ctaHoverTextColor||"#121212")},onMouseOut:e=>{k.general.customizeHoverState&&v&&!b&&!s&&(e.currentTarget.style.backgroundColor=k.general?.ctaBackgroundColor||"#121212",e.currentTarget.style.color=k.general?.ctaTextColor||"#FFFFFF")},onClick:()=>{s||(async()=>{l?.personalizedForm?.title?u(!0):await E()})()}},"animated"===k?.general?.atcLoaderType?e.createElement(vd,{color:"white",loading:s,size:22},b?e.createElement(e.Fragment,null,b):e.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"}},e.createElement("span",null,v?k.comboBundle?.ctaTitle??"Add Bundle to cart":k.general.outOfStockLabel||"Out of Stock"),v&&k?.general?.showPaymentIcons&&e.createElement("div",{style:{display:"flex",alignItems:"center",marginLeft:"10px"}},e.createElement("img",{src:"https://r2.yourtoken.io/checkout-button-payment-provider-icons.png",alt:"Payment methods",style:{height:"22px",width:"auto"}}),e.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",className:"yt-cart-summary-checkout-next-icon",fontSize:"24px",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},e.createElement("polyline",{fill:"none",strokeWidth:"2",points:"9 6 15 12 9 18"}))))):s?e.createElement(Te,{color:"white",loading:s,size:20}):b?e.createElement(e.Fragment,null,b):e.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"}},e.createElement("span",null,v?k.comboBundle?.ctaTitle??"Add Bundle to cart":k.general.outOfStockLabel||"Out of Stock"),v&&k?.general?.showPaymentIcons&&e.createElement("div",{style:{display:"flex",alignItems:"center",marginLeft:"10px"}},e.createElement("img",{src:"https://r2.yourtoken.io/checkout-button-payment-provider-icons.png",alt:"Payment methods",style:{height:"22px",width:"auto"}}),e.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",className:"yt-cart-summary-checkout-next-icon",fontSize:"24px",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},e.createElement("polyline",{fill:"none",strokeWidth:"2",points:"9 6 15 12 9 18"})))))),D&&k.comboBundle?.selectedEmbedContentVisibilityOptions?.includes("Combo Description")&&e.createElement("div",{className:"yt-comboBundle-bundle-description-section",style:{margin:"20px 0px",width:"100%"}},e.createElement("h4",{className:"yt-comboBundle-bundle-description-header",style:{fontSize:"16px",color:k.comboBundle?.descriptionTextColor||"#000",lineHeight:"1.2",margin:0,padding:"8px",backgroundColor:k.general.primaryColor+"20"}},"Description"),e.createElement("div",{className:"yt-comboBundle-bundle-description-content",style:{fontSize:k.comboBundle.productDescriptionFontSize||"16px",color:k.comboBundle?.descriptionTextColor||"#000",lineHeight:"1.2",padding:"8px",backgroundColor:k.general.primaryColor+"08"},dangerouslySetInnerHTML:{__html:Gn(_)}})),l?.personalizedForm?.title&&e.createElement(Cd,{isOpen:m,onClose:()=>u(!1),formConfig:l.personalizedForm,onCheckout:async e=>{await E(e),u(!1)},cta:{backgroundColor:k.general?.ctaBackgroundColor||"#121212",textColor:k.general?.ctaTextColor||"#FFFFFF"},isMobile:d}),e.createElement(ed,{bundleType:"comboBundle",handleAddToBundle:()=>{},selectedProducts:[],remainingQuantity:0,hideAddToBundle:!0,disableQuantitySelector:!0,themeColor:k?.general?.primaryColor||"#000",primaryTextColorCta:k?.general?.primaryContrastColor||"#fff",primaryBackgroundColorCta:k?.general?.primaryColor||"#000",cornerRadius:"8px",styles:k,onVariantSelect:e=>{null!==g&&C(g,e)},bundle:l,totalPriceSum:$,dealPrice:F}))},Td=c.div`
3136
3136
  max-width: 800px;
3137
3137
  container-type: inline-size;
3138
3138
  margin-top: ${e=>e.verticalMargin||"0px"};
@@ -5283,4 +5283,4 @@ import e,{useState as t,useEffect as n,useMemo as r,useRef as o,useCallback as a
5283
5283
  &:hover {
5284
5284
  border-color: ${({$themeColor:e})=>e||"#000"};
5285
5285
  }
5286
- `,Xu=l(({removeCartItem:a,addCartItem:i,getProductDetailsByVariantId:l,themeColor:s,cartComponentsCornerRadius:c,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:m,freebieClaimAddToCart:u,stealDealAddToCart:g,productClaimCtaButtonText:f,backgroundSubdued:y,primaryTextColor:x},h)=>{const[b,w]=be(kn),v=we(yn),C=o(null),[E,k]=t(null),[T,S]=t(!1),[N,F]=t({}),[B,$]=t(b?.variantId),[z]=t(b?.quantity||1),[I,P]=t(!1),D=Vo();n(()=>{b?.open?setTimeout(()=>{P(!0)},10):P(!1)},[b?.open]);n(()=>{(async()=>{if(!E&&l&&b?.variantId&&b?.handle){const e=await l(b.handle,b.variantId);if(e&&e.variants&&e.options){let t;const n=b.allowedVariantIds,r=Array.isArray(n)&&n.length>0;if(t=r?e.variants.find(e=>e.available&&n.includes(String(e.id))&&String(e.id)===String(b.variantId))||e.variants.find(e=>e.available&&n.includes(String(e.id))):e.variants.find(e=>e.available&&String(e.id)===String(b.variantId)),t){$(String(t.id));const n={};e.options.forEach((e,r)=>{n[e.name]=t[`option${r+1}`]}),F(n)}else $(void 0),F({})}k(e)}})()},[E,l,b]);const A=(e,t)=>{const n={...N,[e]:t};F(n);const r=E?.variants?.find(e=>E.options.every((t,r)=>e[`option${r+1}`]===n[t.name]));if(r){const e=b?.allowedVariantIds;if(Array.isArray(e)&&e.length>0&&!e.includes(String(r.id)))return;r.available&&$(String(r.id))}},_=E?.variants?.find(e=>String(e.id)===String(B)),L=Fn(v,v?.currency),R=r(()=>{const e={};if(!E)return e;const t=Array.isArray(b?.allowedVariantIds)&&b.allowedVariantIds.length>0;return E.options.forEach(n=>{e[n.name]=n.values.filter(e=>E.variants.filter(r=>{const o=E.options.indexOf(n);if(r[`option${o+1}`]!==e)return!1;return!!E.options.every((e,t)=>{if(e.name===n.name)return!0;const o=N[e.name];return!o||r[`option${t+1}`]===o})&&(!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(r.id)))&&!!r.available)}).some(e=>!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(e.id)))&&e.available))}),e},[E,N,b]);return E?e.createElement(e.Fragment,null,e.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:2147483643,display:b?.open?"flex":"none",justifyContent:"center",alignItems:"center",opacity:I?1:0,transition:"opacity 0.3s ease"},onClick:()=>{P(!1),setTimeout(()=>{w({open:!1,variantId:void 0,handle:void 0,quantity:void 0})},300)}}),e.createElement(Bu,{ref:h,className:"yt-variant-selection-popup"},e.createElement(zu,{ref:C,style:{backgroundColor:p||"white",opacity:I?1:0,transform:I?"translateY(0)":"translateY(20px)"},$themeColor:s,onClick:e=>e.stopPropagation()},b?.freebieSelection&&e.createElement($u,null,b?.stealDealSelection?"Unlocked Steal Deal":"Unlocked Freebie"),e.createElement(Pu,null,e.createElement(Du,null,e.createElement(Au,null,e.createElement(_u,{src:_?.featured_image?.src??E?.featured_image,alt:_?.featured_image?.alt??E?.title})),e.createElement(Lu,null,e.createElement(Ru,{$themeColor:s,$primaryTextColor:x,href:`${E?.url}?variant=${_?.id}`},E?.title),e.createElement(Yu,null,e.createElement(Ou,null,e.createElement(Mu,{$primaryTextColor:x},L,Tn(_?.price,v?.currency??"INR")),null!=_?.compare_at_price&&null!=_?.price&&_.compare_at_price>_.price&&e.createElement(Vu,null,L,Tn(_?.compare_at_price,v?.currency??"INR")))))),E?.options?.map(t=>{const n=D?.options?.find(e=>e.name.trim().toLowerCase()===t.name.trim().toLowerCase()),r=N[t.name],o=Mo(n,r);return e.createElement(ju,{key:t.name},e.createElement(qu,null,e.createElement("span",null,"Select ",t.name),r&&e.createElement(Uu,null,o)),e.createElement(Qu,null,R[t.name]?.map(r=>{const o=N[t.name]===r,a=Oo(n,r),i=n?.type?.toLowerCase(),l=Mo(n,r);return"color"===i&&a?.value?e.createElement(Zu,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$colorValue:a.value}):"image"===i&&a?.value?e.createElement(Gu,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$imageUrl:a.value}):e.createElement(Hu,{$themeColor:s,key:r,$isSelected:o,backgroundColor:o?s:void 0,onClick:()=>A(t.name,r)},l)})))})),e.createElement(Wu,{className:"yt-cart-variant-popup-ATC-button",$themeColor:s??"#C33",onClick:b?.productRec?async()=>{if(B&&i){S(!0);try{await i(B,z,"product-recommendation-variant-selector",!1,b.handle),w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,productRec:!1})}catch(e){console.error("Error adding item from product recommendation:",e)}S(!1)}}:async()=>{if(!B)return;const e=!!b?.lineItemKey,t=String(B)!==String(b?.variantId);if(!e||t){S(!0);try{const e=b?.freebieSelection;e&&!b?.lineItemKey||(e&&m&&b?.lineItemKey?await m(b.lineItemKey):await a(b?.lineItemKey||b?.variantId,"variant-selector",!0)),e&&b?.stealDealSelection&&g?await g(B,b.allowedVariantIds,b.rewardContext):e&&u?await u(B,b.allowedVariantIds,b.rewardContext):i&&B&&await i(B,z,"variant-selector",!1,b.handle),w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})}catch(e){}S(!1)}else w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!B||T},T?e.createElement(Te,{color:"white",size:13}):b?.productRec?"ADD TO BAG":b?.stealDealSelection?"CLAIM DEAL":b?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):e.createElement(Bu,{ref:h},e.createElement(zu,{style:{backgroundColor:p||"white"}},e.createElement(Iu,null,e.createElement(Se,{color:s||"#868E96"}))))});Xu.displayName="DesktopVariantPopup";const Ku=l(({removeCartItem:a,addCartItem:i,getProductDetailsByVariantId:l,themeColor:s,cartComponentsCornerRadius:c,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:m,freebieClaimAddToCart:u,stealDealAddToCart:g,productClaimCtaButtonText:f,backgroundSubdued:y,primaryTextColor:x},h)=>{const[b,w]=be(kn),v=we(yn),[C,E]=t(null),[k,T]=t(!1),[S,N]=t({}),[F,B]=t(b?.variantId),[$]=t(b?.quantity||1),z=o(null),I=Vo(),[P,D]=t(!1);n(()=>{b?.open?setTimeout(()=>{D(!0)},10):D(!1)},[b?.open]);n(()=>{(async()=>{if(!C&&l&&b?.variantId&&b?.handle)try{const e=await l(b.handle,b.variantId);if(!e)return;if(!e.variants||!Array.isArray(e.variants))return;if(e&&e.variants&&e.options){let t;const n=b.allowedVariantIds,r=Array.isArray(n)&&n.length>0;if(t=r?e.variants.find(e=>e.available&&n.includes(String(e.id))&&String(e.id)===String(b.variantId))||e.variants.find(e=>e.available&&n.includes(String(e.id))):e.variants.find(e=>e.available&&String(e.id)===String(b.variantId)),t){B(String(t.id));const n={};e.options.forEach((e,r)=>{n[e.name]=t[`option${r+1}`]}),N(n)}else B(void 0),N({})}E(e)}catch(e){}})()},[C,l,b]),n(()=>{},[p,a,i,l]);const A=(e,t)=>{const n={...S,[e]:t};N(n);const r=C?.variants?.find(e=>C.options.every((t,r)=>e[`option${r+1}`]===n[t.name]));if(r){const e=b?.allowedVariantIds;if(Array.isArray(e)&&e.length>0&&!e.includes(String(r.id)))return;r.available&&B(String(r.id))}},_=C?.variants?.find(e=>String(e.id)===String(F)),L=Fn(v,v?.currency),R=r(()=>{const e={};if(!C)return e;const t=Array.isArray(b?.allowedVariantIds)&&b.allowedVariantIds.length>0;return C.options.forEach(n=>{e[n.name]=n.values.filter(e=>C.variants.filter(r=>{const o=C.options.indexOf(n);if(r[`option${o+1}`]!==e)return!1;return!!C.options.every((e,t)=>{if(e.name===n.name)return!0;const o=S[e.name];return!o||r[`option${t+1}`]===o})&&(!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(r.id)))&&!!r.available)}).some(e=>!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(e.id)))&&e.available))}),e},[C,S,b]);return C?e.createElement(e.Fragment,null,e.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:2147483643,display:b?.open?"flex":"none",justifyContent:"center",alignItems:"center",opacity:P?1:0,transition:"opacity 0.3s ease"},onClick:()=>{D(!1),setTimeout(()=>{w({open:!1,variantId:void 0,handle:void 0,quantity:void 0})},300)}}),e.createElement(Bu,{ref:h,className:"yt-variant-selection-popup"},e.createElement(zu,{ref:z,style:{backgroundColor:p||"white",opacity:P?1:0,transform:P?"translateY(0)":"translateY(20px)"},$themeColor:s,onClick:e=>e.stopPropagation()},b?.freebieSelection&&e.createElement($u,null,b?.stealDealSelection?"Unlocked Steal Deal":"Unlocked Freebie"),e.createElement(Pu,null,e.createElement(Du,null,e.createElement(Au,null,e.createElement(_u,{src:_?.featured_image?.src??C?.featured_image,alt:_?.featured_image?.alt??C?.title})),e.createElement(Lu,null,e.createElement(Ru,{$themeColor:s,$primaryTextColor:x,href:`${C?.url}?variant=${_?.id}`},C?.title),e.createElement(Yu,null,e.createElement(Ou,null,e.createElement(Mu,{$primaryTextColor:x},L,Tn(_?.price,v?.currency??"INR")),null!=_?.compare_at_price&&null!=_?.price&&_.compare_at_price>_.price&&e.createElement(Vu,null,L,Tn(_?.compare_at_price,v?.currency??"INR")))))),C?.options?.map(t=>{const n=I?.options?.find(e=>e.name.trim().toLowerCase()===t.name.trim().toLowerCase()),r=S[t.name],o=Mo(n,r);return e.createElement(ju,{key:t.name},e.createElement(qu,null,e.createElement("span",null,"Select ",t.name,":"),r&&e.createElement(Uu,null,o)),e.createElement(Qu,null,R[t.name]?.map(r=>{const o=S[t.name]===r,a=Oo(n,r),i=n?.type?.toLowerCase(),l=Mo(n,r);return"color"===i&&a?.value?e.createElement(Zu,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$colorValue:a.value}):"image"===i&&a?.value?e.createElement(Gu,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$imageUrl:a.value}):e.createElement(Hu,{$themeColor:s,key:r,$isSelected:o,backgroundColor:o?s:void 0,onClick:()=>A(t.name,r)},l)})))})),e.createElement(Wu,{className:"yt-cart-variant-popup-ATC-button",$themeColor:s??"#C33",onClick:b?.productRec?async()=>{if(F&&i){T(!0);try{await i(F,$,"product-recommendation-variant-selector",!1,b.handle),w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,productRec:!1})}catch(e){console.error("Error adding item from product recommendation:",e)}T(!1)}}:async()=>{if(!F)return;const e=!!b?.lineItemKey,t=String(F)!==String(b?.variantId);if(!e||t){T(!0);try{const e=b?.freebieSelection;e&&!b?.lineItemKey||(e&&m&&b?.lineItemKey?await m(b.lineItemKey):await a(b?.lineItemKey||b?.variantId,"variant-selector",!0)),e&&b?.stealDealSelection&&g?await g(F,b.allowedVariantIds,b.rewardContext):e&&u?await u(F,b.allowedVariantIds,b.rewardContext):i&&F&&await i(F,$,"variant-selector",!1,b.handle),w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})}catch(e){}T(!1)}else w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!F||k},k?e.createElement(Te,{color:"white",size:13}):b?.productRec?"ADD TO BAG":b?.stealDealSelection?"CLAIM DEAL":b?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):e.createElement(Bu,{ref:h},e.createElement(zu,{style:{backgroundColor:p||"white"}},e.createElement(Iu,null,e.createElement(Se,{color:s||"#868E96"}))))});const Ju=({setIsCartOpen:t,isCartOpen:n,cartCheckpoints:r,customCartProgressBarCriteria:o,floatingCartData:a,effectiveQuantityForProgressBar:i,cartComponentsCornerType:l,cartComponentsCornerRadius:s})=>{const c=we(yn),d=a?.bannerFooterText,p="string"==typeof d&&d.trim().length>0,m=!n&&(e=>{try{if("undefined"==typeof window)return!1;const t=window.location.pathname||"/";if("/"===t||""===t)return!0;const n=e?.showOnPages;if(!Array.isArray(n)||0===n.length)return!1;const r=t.toLowerCase(),o=r.endsWith("/")?r:`${r}/`;return n.some(e=>{if(!e||"string"!=typeof e)return!1;const t=e.trim().toLowerCase().replace(/^\/|\/$/g,"");if(!t)return!1;const n=`/${t}/`;return o.includes(n)})}catch{return!1}})(a),u=c?.item_count??0,g=Tn(c?.items_subtotal_price??0,c?.currency??"INR"),f=Fn(c),y=function(e,t,n,r,o){if(!e||0===e.length)return{deltaValue:0,show:!1};const a=(t??"minimum_order_value").toLowerCase(),i="quantity_threshold"===a?"number"==typeof o?o:r:n,l=[...e].sort((e,t)=>("quantity_threshold"===a?e.quantityThreshold:e.minimumOrderValue)-("quantity_threshold"===a?t.quantityThreshold:t.minimumOrderValue)).find(e=>("quantity_threshold"===a?e.quantityThreshold:e.minimumOrderValue)>i);if(!l)return{deltaValue:0,show:!1};const s="quantity_threshold"===a?l.quantityThreshold:l.minimumOrderValue,c=Math.max(0,s-i);return{deltaValue:c,show:c>0,isQuantity:"quantity_threshold"===a}}(r,o,g,u,i),x="sharp"===l?0:s??12,h=a?.textColor??"#111",b=a?.backgroundColor??"#FF7E6E",v=a?.bannerBackgroundColor??"#FFE0DC",C=a?.buttonColor??"#E8513F",E=e.useRef(null);e.useEffect(()=>{qn(E.current)},[C]);const k={position:"fixed",width:"100%",bottom:0,zIndex:2147483642,paddingBottom:"env(safe-area-inset-bottom)"},T={background:"#FFFFFF",color:"#111",padding:"5px",fontSize:12,fontFamily:"Poppins",fontWeight:600,textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center",gap:8},S={background:"#fff",color:h,borderRadius:x,boxShadow:"0 10px 24px rgba(0,0,0,0.15)",overflow:"hidden",fontFamily:"Poppins"},N={position:"absolute",top:0,left:"50%",transform:"translate(-50%, -70%)",backgroundColor:v,color:h,padding:8,fontSize:12,lineHeight:"normal",borderTopLeftRadius:13,borderTopRightRadius:13,width:"97%",display:"flex",alignItems:"center",justifyContent:"center",gap:6,zIndex:-1},F={display:"flex",alignItems:"center",gap:12,padding:"10px 12px",backgroundColor:b,cursor:"pointer"},B={display:"flex",alignItems:"center",gap:8,fontWeight:700,fontSize:16,color:h},$={fontSize:12,color:h,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},z={padding:"5px 10px",background:C,color:"#fff",borderRadius:8,fontSize:15,fontWeight:700,border:"none",outline:"none",flexShrink:0};if(!m)return null;if(0===u){if(!y.show)return null;const t=y.isQuantity?`${y.deltaValue} more items to get freebie`:`Add items worth ${f}${Un(y.deltaValue.toFixed(0))} to get freebie`;return e.createElement("div",{style:k},e.createElement("div",{className:"yt-cart-floating-ribbon",style:T},e.createElement(w,{"aria-hidden":!0}),e.createElement("span",null,t)))}const I=1===u?"1 item":`${u} items`,P=a?.lastTierUnlockedText||"Best tier unlocked",D=y.show?y.isQuantity?`${y.deltaValue} more items to get freebie`:`Add items worth ${f}${Un(y.deltaValue.toFixed(0))} more to get freebie`:P;return e.createElement("div",{style:{position:"fixed",left:12,right:12,bottom:12,zIndex:2147483642,paddingBottom:"env(safe-area-inset-bottom)"}},e.createElement("div",{style:{position:"relative"}},(y.show||r&&r.length>0)&&e.createElement("div",{className:"yt-cart-floating-banner",style:N},e.createElement(w,{"aria-hidden":!0,style:{marginBottom:7}}),e.createElement("span",{style:{display:"inline-block",marginBottom:7}},D)),e.createElement("div",{style:S},e.createElement("div",{className:"yt-cart-floating-body",style:F,onClick:()=>t(!0)},e.createElement(M,{width:24,height:24,color:h}),e.createElement("div",{style:{display:"flex",flexDirection:"column",minWidth:0,flex:1,lineHeight:"normal"}},e.createElement("div",{style:B},e.createElement("span",null,f,Un(g.toFixed(0))),e.createElement("span",{style:{fontSize:9,fontWeight:600,color:"#fff",backgroundColor:"#828282",marginBottom:5,paddingInline:5}},I)),p?e.createElement("span",{style:$,title:d},d):null),e.createElement("button",{ref:E,style:z,onClick:()=>t(!0),"aria-label":"View Cart"},"View Cart")))))};var eg=e.memo(({exploreCTAColor:r,checkoutFontSize:a,handleDecrement:l,handleIncrement:s,removeCartItem:c,addCartItem:d,cartTitle:p,emptyCartTitle:m,emptyCartDescription:u,emptyCartButtons:g,backgroundColor:f,backgroundSubdued:y,tertiaryColor:x,tertiaryTextColor:h,backdrop:b=!0,cartData:w,isUserSignedIn:v,showBundle:C,bundleProducts:E,discountAmountOff:k,loyaltyIcon:T,pointsToBeUsed:S,rewardMultiplier:N,redemptionMultiplier:F,removeDiscount:B,applyDiscount:$,discountApplied:z,checkoutFunction:I,joinNowFunction:P,guestLoyaltyPercentage:D,showToggleButton:A,isOpen:_,setIsOpen:L,isDev:R,switchWidthVariant:O,recProductsList:M,showMultiStepProgressBar:V,cartCheckpoints:W,redemptionRate:j,orderCreditType:H,orderCreditValue:q,showCartLevelAltPay:U,exploreCtaRedirectLink:Q,discountAmountApplied:Y,minimumCartValue:Z,discountInCheckoutButton:G,isStickyCheckout:X,handleCheckpointCrossed:K,customCartProgressBarCriteria:J,checkoutButtonColor:ee,ctaButtonBackgroundColor:te,ctaButtonTextColor:ne,primaryTextColor:re,productRecsCtaButtonText:oe,productRecsTitleText:ae,secondaryTextColor:ie,showProductRecsOnDesktop:le,showProductRecsOnMobile:se,themeColor:ce,themeTextColor:de,companyName:pe,gstNumber:me,showGSTOption:ue,applyGSTToCart:ge,showMOVForProgressTiers:fe,freeProduct:ye,showLoyaltyCta:xe,freeProductAdjustedCartTotal:we,redemptionMinimumOrderValue:ve,redemptionMinimumOrderValueStatus:Ce,signinCTAButtonVisible:Ee,cartSigninCTAMainText:ke,showNoteOption:Te,applyNoteToCart:Se,note:Ne,inlineCartOfferInfoText:Fe,inlineCartOfferInfoRedirectLink:Be,cartOfferTermsAndConditionsText:$e,showEditOptionOnProducts:ze,getProductDetailsByVariantId:Ie,onSetLoading:Pe,showVariantSelectionDropdownInProductRecs:De,originalCartSubtotal:Ae,currentTier:_e,freebieProductsInCart:Le,showFreebieClaim:Re,addFreebieToCart:Oe,freebiesInCart:Me,effectiveQuantityForProgressBar:Ve,productPercentageOffMapping:We,removeFreebieFromCart:je,postalCodeList:He,enableGeoLocationDeliveryRestriction:qe,applyPostalCodeAndDeliverySlotToCart:Ue,showDeleteOnFreebies:Qe,freebieCouponTemplates:Ye,freebieFlowCheckpoints:Ze,freebieClaimData:Ge,showStickyAddToCart:Xe,stickyCartLineItem:Ke,postalCodeBasedItemTrackingParameter:Je,enableSlotPicker:et,deliveryHeaderTitle:tt,deliveryAvailableText:nt,deliveryNotAvailableText:rt,giftWrapSetupData:ot,giftWrapProductDetail:at,enableCustomCartOnCartPage:it,isCartPage:lt,progressBarFreeProductIconType:st,addToStickyCart:ct,productRecsCardLayout:dt,productRecsCardListVariant:pt,showCartTimer:mt,showFreebieMilestone:ut,showFloatingCart:gt,floatingCartData:ft,freebieMilestoneData:yt,cartTimerInMinutes:xt,cartTimerCustomText:ht,imageAspectSelector:bt,cartComponentsCornerType:wt,cartComponentsCornerRadius:vt,stickyCartCustomizationData:Ct,cartOffersCarousalData:Et,stickyBarBuyNowFunction:kt,gstSectionCustomizationData:Tt,noteSectionTitle:St,checkoutSectionMessage:Nt,checkoutSectionMessageRedirectLink:Ft,checkoutSectionMessageDisplay:Bt,showVariantSelectionDropdownInProductClaim:$t,loyaltyDiscount:zt,coinName:It,showDiscountOnMRP:Pt,prefixMessageText:Dt,suffixMessageText:At,successMessageText:_t,toggleDecimal:Lt,cartOffersCarouselHeight:Rt,disableCheckoutButton:Ot,showEmptyCartRecommendations:Mt,emptyProductRecsTitleText:Vt,checkoutButtonBottomSpacing:Wt,applyCouponCode:jt,showApplyCoupon:Ht,enableConfetti:qt,showCheckoutButtonPaymentIcons:Ut=!0,showCouponOptions:Qt,rewardCoupons:Yt,couponSelectionData:Zt,comboBundleData:Gt,comboBundleAddToCartFunction:Xt,stealDealCheckpoints:Kt,stealDealProducts:Jt,stealDealAddToCart:en,useCartShell:tn,showTrustedBadge:nn,trustedBadgeData:rn,drawerLayoutData:on})=>{const an=he(yn),[ln,sn]=be(kn),[cn,dn]=be(Xi),pn=()=>L(!_),[mn,un]=t(()=>{const e=window.ytComboBundle;return{comboBundleData:e?.bundle??null,comboBundleAddToCartFunction:e?.addToCart??null}});n(()=>{const e=e=>{const t=e.detail;un({comboBundleData:t?.bundle??null,comboBundleAddToCartFunction:t?.addToCart??null})};return window.addEventListener("yt-combo-bundle-updated",e),()=>window.removeEventListener("yt-combo-bundle-updated",e)},[]);const gn=mn.comboBundleData??Gt,fn=mn.comboBundleAddToCartFunction??Xt,[xn,hn]=t(()=>{const e=window.ytVolumeBundle;return{bundle:e?.bundle??void 0,currentTier:e?.currentTier??void 0,volumeBundleAddToCartFunction:e?.addToCart??void 0}});n(()=>{const e=e=>{const t=e.detail;hn({bundle:t?.bundle??void 0,currentTier:t?.tierData??void 0,volumeBundleAddToCartFunction:t?.addToCart??void 0})};return window.addEventListener("yt-volume-bundle-updated",e),()=>window.removeEventListener("yt-volume-bundle-updated",e)},[]),i(()=>{w&&an(w)},[w]);const bn=o(null);n(()=>{function e(e){bn.current&&!bn.current.contains(e.target)&&(sn({open:!1,variantId:void 0,quantity:void 0,handle:void 0}),dn({isOpen:!1}))}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);const[wn,vn]=t(!1);return n(()=>{const e=()=>{vn(window.innerWidth>=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),n(()=>{if(!tn)return;const e=window.ytCartShell;if(!e)return;const t=e.getDrawerElement?.(),n=e.getOverlayElement?.();t&&(!_||it&&lt?(t.style.setProperty("transform","translateX(100%)","important"),t.style.boxShadow="none",n&&(n.style.display="none"),document.body.classList.remove("drawer-open")):(t.style.setProperty("transform","translateX(0)","important"),t.style.boxShadow="-14px 8px 14.4px 0px rgba(0, 0, 0, 0.35)",b&&n&&(n.style.display="block"),document.body.classList.add("drawer-open")))},[_,tn,it,lt,b]),n(()=>{if(!tn)return;const e=window.ytCartShell,t=e?.getOverlayElement?.();if(!t)return;const n=()=>L(!1);return t.addEventListener("click",n),()=>t.removeEventListener("click",n)},[tn,L]),e.createElement(e.Fragment,null,e.createElement("div",{style:{position:it&&lt?"relative":"absolute",width:"100%",display:it&&lt?"flex":"block",alignItems:"center",justifyContent:"center"}},A&&!(it&&lt)&&e.createElement("button",{style:{margin:"16px"},onClick:pn},_?"Close Drawer":"Open Drawer"),!tn&&_&&b&&!(it&&lt)&&e.createElement("div",{onClick:pn,id:"custom-cart-yt-overlay",style:{position:"fixed",top:0,right:0,zIndex:1e4,transform:"translateX(0)",backgroundColor:"rgba(0,0,0,0.5)",inset:0,height:"100%",width:"100%"}},"‎"),e.createElement(Xs,{useCartShell:tn,isCartPage:lt,enableCustomCartOnCartPage:it,isOpen:_,setIsOpen:L,backgroundColor:f,backgroundSubdued:y??"#F5F5F5",tertiaryColor:x,tertiaryTextColor:h,exploreCTAColor:r,checkoutFontSize:a,cartTitle:p,handleDecrement:l,handleIncrement:s,removeCartItem:c,addCartItem:d,emptyCartTitle:m,emptyCartButtons:g,emptyCartDescription:u,showBundle:C,isUserSignedIn:v,bundleProducts:E,discountAmountOff:k,loyaltyIcon:T,pointsToBeUsed:S,rewardMultiplier:N,redemptionMultiplier:F,removeDiscount:B,applyDiscount:$,discountApplied:z,checkoutFunction:I,joinNowFunction:P,guestLoyaltyPercentage:D,isDev:R,switchWidthVariant:O,recProductsList:M,showMultiStepProgressBar:V,cartCheckpoints:W,redemptionRate:j,orderCreditType:H,orderCreditValue:q,showCartLevelAltPay:U,exploreCtaRedirectLink:Q,discountAmountApplied:Y,minimumCartValue:Z,discountInCheckoutButton:G,isStickyCheckout:X,handleCheckpointCrossed:K,customCartProgressBarCriteria:J??"minimum_order_value",checkoutButtonColor:ee,ctaButtonBackgroundColor:te,ctaButtonTextColor:ne,primaryTextColor:re,productRecsCtaButtonText:oe,productRecsTitleText:ae,secondaryTextColor:ie,showProductRecsOnDesktop:le,showProductRecsOnMobile:se,themeColor:ce,themeTextColor:de,companyName:pe,gstNumber:me,showGSTOption:ue,applyGSTToCart:ge,showMOVForProgressTiers:fe,freeProduct:ye,showLoyaltyCta:xe,freeProductAdjustedCartTotal:we,redemptionMinimumOrderValue:ve,redemptionMinimumOrderValueStatus:Ce,signinCTAButtonVisible:Ee,cartSigninCTAMainText:ke,applyNoteToCart:Se,note:Ne,showNoteOption:Te,inlineCartOfferInfoText:Fe,inlineCartOfferInfoRedirectLink:Be,cartOfferTermsAndConditionsText:$e,showEditOptionOnProducts:ze,onSetLoading:Pe,showVariantSelectionDropdownInProductRecs:De,originalCartSubtotal:Ae,currentTier:_e,freebieProductsInCart:Le,cartOffersCarousalData:Et,showFreebieClaim:Re,addFreebieToCart:Oe,freebiesInCart:Me,effectiveQuantityForProgressBar:Ve,productPercentageOffMapping:We,removeFreebieFromCart:je,postalCodeList:He,enableGeoLocationDeliveryRestriction:qe,applyPostalCodeAndDeliverySlotToCart:Ue,showDeleteOnFreebies:Qe,freebieCouponTemplates:Ye,freebieFlowCheckpoints:Ze,freebieClaimData:Ge,postalCodeBasedItemTrackingParameter:Je,enableSlotPicker:et,deliveryHeaderTitle:tt,deliveryAvailableText:nt,deliveryNotAvailableText:rt,giftWrapSetupData:ot,giftWrapProductDetail:at,progressBarFreeProductIconType:st,productRecsCardLayout:dt,productRecsCardListVariant:pt,showCartTimer:mt,showFreebieMilestone:ut,freebieMilestoneData:yt,cartTimerCustomText:ht,cartTimerInMinutes:xt,imageAspectSelector:bt,cartComponentsCornerType:wt,cartComponentsCornerRadius:vt,gstSectionCustomizationData:Tt,noteSectionTitle:St,checkoutSectionMessage:Nt,checkoutSectionMessageRedirectLink:Ft,checkoutSectionMessageDisplay:Bt,showVariantSelectionDropdownInProductClaim:$t,loyaltyDiscount:zt,getProductDetailsByVariantId:Ie,coinName:It,showDiscountOnMRP:Pt??!0,prefixMessageText:Dt,suffixMessageText:At,successMessageText:_t,toggleDecimal:Lt,cartOffersCarouselHeight:Rt,disableCheckoutButton:Ot,showEmptyCartRecommendations:Mt,emptyProductRecsTitleText:Vt,checkoutButtonBottomSpacing:Wt,applyCouponCode:jt,showApplyCoupon:Ht,enableConfetti:qt,showCheckoutButtonPaymentIcons:Ut,stealDealCheckpoints:Kt,stealDealProducts:Jt,stealDealAddToCart:en,showCouponOptions:Qt,rewardCoupons:Yt,couponSelectionData:Zt,showTrustedBadge:nn,trustedBadgeData:rn,drawerLayoutData:on}),Xe&&Ke&&d&&e.createElement(Fu,{showStickyCart:Xe,stickyCartCustomizationData:Ct,product:Ke,addCartItem:d,onSetLoading:Pe,themeColor:ce,themeTextColor:de,cartData:w,isCartOpen:_,setIsCartOpen:L,ctaButtonBackgroundColor:te,ctaButtonTextColor:ne,addToStickyCart:ct,cartComponentsCornerRadius:vt,cartComponentsCornerType:wt,checkoutFunction:kt,backgroundColor:f,primaryTextColor:re,comboBundleData:gn,comboBundleAddToCartFunction:fn,volumeBundleCurrentTier:xn.currentTier,volumeBundleData:xn.bundle,volumeBundleAddToCartFunction:xn.volumeBundleAddToCartFunction}),wn&&ln.open&&e.createElement(Xu,{backgroundColor:f,ref:bn,isDev:R,removeCartItem:c,addCartItem:d,getProductDetailsByVariantId:Ie,themeColor:ce,cartComponentsCornerRadius:vt,cartComponentsCornerType:wt,removeFreebieFromCart:je,freebieClaimAddToCart:Oe,stealDealAddToCart:en,productClaimCtaButtonText:Ge?.productClaimCtaButtonText,backgroundSubdued:y??"#F5F5F5",primaryTextColor:re}),!wn&&ln.open&&e.createElement(Ku,{ref:bn,isDev:R,removeCartItem:c,addCartItem:d,getProductDetailsByVariantId:Ie,themeColor:ce,cartComponentsCornerRadius:vt,cartComponentsCornerType:wt,backgroundColor:f,removeFreebieFromCart:je,freebieClaimAddToCart:Oe,stealDealAddToCart:en,productClaimCtaButtonText:Ge?.productClaimCtaButtonText,backgroundSubdued:y??"#F5F5F5",primaryTextColor:re})),!wn&&gt&&e.createElement(Ju,{isCartOpen:_,setIsCartOpen:L,cartCheckpoints:W,customCartProgressBarCriteria:J,floatingCartData:ft,effectiveQuantityForProgressBar:Ve,cartComponentsCornerRadius:vt,cartComponentsCornerType:wt}))});_t(".scene {\n width: 100%;\n height: 60vh;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.floating {\n animation: float 3s ease-in-out infinite;\n}\n\n@keyframes float {\n 0%, 100% {\n transform: translateY(0);\n }\n 50% {\n transform: translateY(-10px);\n }\n}\n.cube {\n position: relative;\n width: 50px;\n height: 50px;\n transform-style: preserve-3d;\n transform: rotateX(-45deg) rotateY(50deg) rotateZ(0deg);\n}\n\n.side,\n.lid,\n.flap {\n position: absolute;\n width: 100px;\n height: 100px;\n border: 4px solid #333366;\n background: transparent;\n box-sizing: border-box;\n}\n\n.side {\n background: #fff;\n backface-visibility: hidden;\n}\n\n.side.front {\n transform: translateZ(50px);\n}\n\n.side.back {\n transform: rotateY(180deg) translateZ(50px);\n}\n\n.side.left {\n transform: rotateY(-90deg) translateZ(50px);\n}\n\n.side.right {\n transform: rotateY(90deg) translateZ(50px);\n}\n\n.side.bottom {\n transform: rotateX(-90deg) translateZ(50px);\n}\n\n.lid {\n transform: rotateX(90deg) translateZ(50px);\n transform-style: preserve-3d;\n}\n\n.flap.north {\n top: 0;\n left: 0;\n width: 100%;\n height: 50%;\n transform-origin: top center;\n animation: openNorth 3s ease-in-out infinite;\n}\n\n.flap.south {\n bottom: 0;\n left: 0;\n width: 100%;\n height: 50%;\n transform-origin: bottom center;\n animation: openSouth 3s ease-in-out infinite;\n}\n\n.flap.east {\n top: 0;\n right: 0;\n width: 50%;\n height: 100%;\n transform-origin: right center;\n animation: openEast 3s ease-in-out infinite;\n}\n\n.flap.west {\n top: 0;\n left: 0;\n width: 50%;\n height: 100%;\n transform-origin: left center;\n animation: openWest 3s ease-in-out infinite;\n}\n\n@keyframes openNorth {\n 0%, 100% {\n transform: rotateX(0deg);\n }\n 50% {\n transform: rotateX(180deg);\n }\n}\n@keyframes openSouth {\n 0%, 100% {\n transform: rotateX(0deg);\n }\n 50% {\n transform: rotateX(-180deg);\n }\n}\n@keyframes openEast {\n 0%, 100% {\n transform: rotateY(0deg);\n }\n 50% {\n transform: rotateY(180deg);\n }\n}\n@keyframes openWest {\n 0%, 100% {\n transform: rotateY(0deg);\n }\n 50% {\n transform: rotateY(-180deg);\n }\n}");const tg=()=>e.createElement("div",{className:"scene"},e.createElement("div",{className:"floating"},e.createElement("div",{className:"cube"},e.createElement("div",{className:"side front"},"‎"),e.createElement("div",{className:"side back"},"‎"),e.createElement("div",{className:"side left"},"‎"),e.createElement("div",{className:"side right"},"‎"),e.createElement("div",{className:"side bottom"},"‎"),e.createElement("div",{className:"lid"},e.createElement("div",{className:"flap north"},"‎"),e.createElement("div",{className:"flap south"},"‎"),e.createElement("div",{className:"flap east"},"‎"),e.createElement("div",{className:"flap west"},"‎")))));_t("/*\n * Widget style isolation (host CSS gate).\n *\n * We render into the host site's light DOM, so its base/reset CSS bleeds into\n * our components (e.g. `t4s-base.css` shipping `hr { max-width: 100px }`, or a\n * global Meyer/normalize reset). This reverts the bare elements host CSS\n * attacks back to the browser's user-agent defaults — without us enumerating\n * every property on every element.\n *\n * KEY DESIGN DECISION — only revert UNCLASSED elements (`:not([class])`):\n *\n * - Host base/reset CSS targets bare elements (`hr`, `p`, `*`) at specificity\n * (0,0,1)/(0,0,0). Our own components are ALWAYS class-based (0,1,0)+, so a\n * component class already outranks host element selectors on its own.\n * - Therefore the reset only needs to cover elements WITHOUT a class. By\n * excluding classed elements we guarantee `all: revert` can never compete\n * with — or strip — our own component styles.\n * - This makes the gate INDEPENDENT OF STYLESHEET INJECTION ORDER. Previously\n * `all: revert` on `.yt-root *` was (0,1,0), tying every component rule; the\n * winner depended on which <style> was injected last, which differed between\n * a fresh page load and the guest->profile sign-in transition (it stripped\n * `.yt-rw-headBg`'s positioning, dropping the watermark to the left). With\n * the classed-exclusion, classed elements are never matched, so no tie.\n * - `:where(...)` keeps specificity at (0,1,0) despite the `:not()` argument,\n * so descendant component rules on bare elements (e.g. `.yt-rwmd-logo img`,\n * (0,1,1)) still win.\n * - `all: revert` is NOT `!important`, so merchant/custom CSS using\n * `!important` still overrides everything here, as intended.\n * - `all` does not touch custom properties, so our CSS variables survive.\n *\n * Applies only to subtrees explicitly marked with `.yt-root`.\n *\n * RESIDUAL LIMITATION: a host ELEMENT selector can still set a property on a\n * CLASSED element of ours when our class does not declare that property (e.g.\n * host `p { line-height }` on a `.yt-x` paragraph that omits line-height). The\n * only fully airtight fixes are build-time scoping of all component selectors\n * under `.yt-root` (raising them to (0,2,0)) or Shadow DOM.\n */\n.yt-root *:where(:not([class], svg, svg *)) {\n all: revert;\n /* Bare elements match the zeroed-margin baseline our components were\n authored inside (host themes reset margins to 0). */\n margin: 0;\n}\n\n/* box-sizing is safe to normalize everywhere: no component sets it, so this\n (0,1,0) rule wins over host's `*` (0,0,0) by specificity, not by order. */\n.yt-root,\n.yt-root * {\n box-sizing: border-box;\n}\n");_t("\n@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Urbanist:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');\n\n@font-face {\n font-family: 'Circular Std';\n src: local('Circular Std Book'), local('Circular Std');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n}\n@font-face {\n font-family: 'Circular Std';\n src: local('Circular Std Medium'), local('Circular Std');\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n}\n@font-face {\n font-family: 'Circular Std';\n src: local('Circular Std Bold'), local('Circular Std');\n font-weight: 700;\n font-style: normal;\n font-display: swap;\n}\n\n:root {\n --font-primary: 'Poppins', sans-serif;\n --font-secondary: 'Urbanist', sans-serif;\n --font-tertiary: 'Inter', sans-serif;\n --font-alt: 'Sansation', sans-serif;\n --font-brand: sans-serif;\n}\n");_t('@import url(\'https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Urbanist:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap\');\n\n.yt-launcher-sticky {\n font-family: Poppins;\n position: fixed;\n z-index: 50;\n /* left: 0px;\n top: 50vh; */\n transform: rotate(90deg) translateY(7px);\n padding: 9px 14px 4px 14px;\n align-items: center;\n border-radius: 24px 24px 0 0;\n background: #bd4747;\n}\n\n.yt-launcher-sticky svg {\n transform: rotate(-90deg);\n width: 24px !important;\n height: 22px !important;\n flex-shrink: 0 !important;\n}\n\n.yt-launcher-sticky img,\n.yt-launcher-stickyText img,\n.yt-launcher-bubble img,\n.yt-launcher-ribbon img {\n width: 24px !important;\n height: 24px !important;\n object-fit: contain !important;\n flex-shrink: 0 !important;\n max-width: none !important;\n max-height: none !important;\n}\n\n/* Paragraph margins are zeroed by the (0,1,0) baseline in reset.css,\n which bare <p> here rely on and component classes still override. */\n\n\n\n.yt-launcher-stickyText {\n position: fixed;\n z-index: 50;\n/* left:100px; */\n /* top: 50vh; */\n font-family: Poppins;\n display: inline-flex;\n margin: 0px;\n transform: rotate(90deg) translateY(-20px);\n transform-origin: left;\n padding: 9px 14px 9px 14px;\n align-items: center;\n background: #bd4747;\n}\n.yt-launcher-stickyText p {\n display: flex;\n padding: 0 6px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n color: #fff;\n /* font-family: Poppins; */\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n margin: 0 !important;\n}\n.yt-launcher-stickyText svg {\n transform: rotate(-90deg);\n width: 24px !important;\n height: 24px !important;\n flex-shrink: 0 !important;\n}\n\n.yt-launcher-bubble svg {\n width: 24px !important;\n height: 24px !important;\n flex-shrink: 0 !important;\n}\n\n.yt-launcher-ribbon svg {\n width: 20px !important;\n height: 21px !important;\n flex-shrink: 0 !important;\n}\n\n/* your existing red circle */\n.yt-logo-badge{\n \n width: 160px; /* or whatever you already use */\n aspect-ratio: 1 / 1;\n border-radius: 50%;\n background: #B83A38; /* your red */\n display: grid;\n place-items: center;\n overflow: visible;\n}\n\n/* wave rings */\n.yt-launcher-sticky .yt-ring {\n position: absolute;\n inset: 0; /* hug the element boundary */\n border-radius: inherit; /* match the pill\'s shape (e.g., 55px 55px 0 0) */\n pointer-events: none;\n opacity: 0;\n /* start exactly at the boundary with zero spread */\n box-shadow: 0 0 0 0 rgba(0,0,0,.28);\n animation: waveOut var(--wave-duration, 3.2s) linear infinite;\n}\n.yt-launcher-sticky .yt-ring2 { animation-delay: calc(var(--wave-duration, 3.2s) / 3); }\n.yt-launcher-sticky .yt-ring3 { animation-delay: calc(var(--wave-duration, 3.2s) * 2 / 3); }\n\n\n\n/* toggle waves off */\n.yt-launcher-sticky[data-waves="off"] .yt-ring{\n animation-play-state: paused;\n opacity: 0;\n}\n\n.yt-launcher-stickyText .yt-ring {\n position: absolute;\n inset: 0; /* sit exactly on the boundary */\n border-radius: inherit; /* use parent’s radius (rect if none set) */\n pointer-events: none;\n opacity: 0;\n box-shadow: 0 0 0 0 rgba(0,0,0,.28);\n animation: waveOut var(--wave-duration, 3.2s) linear infinite;\n}\n.yt-launcher-stickyText .yt-ring2 { animation-delay: calc(var(--wave-duration, 3.2s) / 3); }\n.yt-launcher-stickyText .yt-ring3 { animation-delay: calc(var(--wave-duration, 3.2s) * 2 / 3); }\n\n\n\n/* toggle waves off */\n.yt-launcher-stickyText[data-waves="off"] .yt-ring{\n animation-play-state: paused;\n opacity: 0;\n}\n\n\n.yt-launcher-bubble {\n z-index: 50;\n font-family: Poppins;\n position: fixed;\n \n display: inline-flex;\n padding: 8px 10px;\n align-items: center;\n border-radius: 29px;\n border: 1px solid #c1c1c1;\n background: #fff;\n box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.3);\n}\n\n.yt-launcher-bubble p {\n color: #0a0a0a;\n /* font-family: Poppins; */\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n display: flex;\n padding: 0 6px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n margin: 0 !important;\n}\n\n.yt-launcher-bubble .yt-ring{\n position: absolute;\n inset: 0; /* hug the bubble edge */\n border-radius: inherit; /* pill/circle matches parent */\n pointer-events: none;\n /* start with zero spread at the boundary */\n box-shadow: 0 0 0 0 rgba(0,0,0,.22);\n opacity: 0;\n animation: waveOut var(--wave-duration, 3.2s) linear infinite;\n}\n.yt-launcher-bubble .yt-ring2{ animation-delay: calc(var(--wave-duration, 3.2s) / 3); }\n.yt-launcher-bubble .yt-ring3{ animation-delay: calc(var(--wave-duration, 3.2s) * 2 / 3); }\n\n/* pause when waves are off */\n.yt-launcher-bubble[data-waves="off"] .yt-ring{\n animation-play-state: paused;\n opacity: 0;\n}\n\n@keyframes waveOut{\n 0% { box-shadow: 0 0 0 0 rgba(0,0,0,.28); opacity: .8; }\n 70% { box-shadow: 0 0 0 18px rgba(0,0,0,.14); opacity: .6; }\n 100% { box-shadow: 0 0 0 30px rgba(0,0,0, 0); opacity: 0; }\n}\n\n\n\n/* toggle waves off */\n.yt-launcher-bubble[data-waves="off"] .yt-ring{\n animation-play-state: paused;\n opacity: 0;\n}\n\n.yt-launcher-ribbon{\n z-index: 50;\n font-family: Poppins;\n position: fixed;\n bottom: 0px;\n left:0px;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n/* width: 393px; */\npadding: 9px 14px 8px 14px;\njustify-content: center;\nalign-items: center;\ngap: 3px;\nbackground: #BD4747;\n/* overflow: hidden; */\n}\n\n.yt-launcher-ribbon span{\n color: #FFF;\n padding-inline: 6px;\n/* font-family: Poppins; */\nfont-size: 14px;\nfont-style: normal;\nfont-weight: 600;\nline-height: normal;\nmargin: 0 !important;\n}\n\n.yt-launcher-ribbon p{\n color: #FFF;\n padding-inline: 6px;\n/* font-family: Poppins; */\nfont-size: 14px;\nfont-style: normal;\nfont-weight: 400;\nline-height: normal;\nmargin: 0 !important;\n\n}\n\n\n\n/* NEW: viewport + track */\n.yt-ribbon-viewport{\n font-family: Poppins;\n display: flex;\n justify-content: center;\nflex:1;\n overflow: hidden; \n /* subtle fade at edges (optional) */\n -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);\n mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);\n}\n\n.yt-ribbon-track{\n font-family: Poppins;\n display: inline-flex;\n align-items: center;\n gap: 3px;\n white-space: nowrap;\n}\n\n/* Only animate on mobile */\n@media (max-width: 640px){\n .yt-ribbon-track.yt-is-marquee{\n /* duration set from JS via --marquee-duration */\n animation: ribbon-scroll var(--marquee-duration, 12s) linear infinite;\n }\n}\n\n\n.yt-ribbon-viewport:hover .yt-ribbon-track.yt-is-marquee,\n.yt-ribbon-viewport:focus-within .yt-ribbon-track.yt-is-marquee{\n animation-play-state: paused;\n}\n\n@keyframes ribbon-scroll{\n 0% { transform: translateX(0); }\n 100% { transform: translateX(-50%); } /* because we duplicated content */\n}\n\n\n\n\n\n\n.yt-launcher-sticky,\n.yt-launcher-stickyText,\n.yt-launcher-bubble,\n.yt-launcher-ribbon {\n transition:\n filter .18s ease,\n box-shadow .18s ease,\n background-color .18s ease,\n transform .18s ease,\n border-color .18s ease;\n cursor: pointer; /* if they’re clickable */\n}\n\n\n\n\n.yt-launcher-sticky:hover {\n filter: brightness(1.08);\n box-shadow: 0 6px 14px rgba(0,0,0,.25);\n /* tiny nudge without fighting your rotate() chain */\n transform: rotate(90deg) translateY(7px) translateZ(0);\n}\n\n\n.yt-launcher-sticky:hover .yt-ring {\n animation-play-state: running;\n opacity: .5; /* visible immediately */\n}\n\n\n.yt-launcher-stickyText:hover {\n filter: brightness(1.08);\n box-shadow: 0 6px 14px rgba(0,0,0,.25);\n transform: rotate(90deg) translateY(-20px) translateZ(0);\n}\n.yt-launcher-stickyText:hover .yt-ring {\n animation-play-state: running;\n opacity: .5;\n}\n\n/* If you want waves OFF by default, keep your [data-waves="off"] rule\n ABOVE these :hover rules so hover overrides it. */\n\n.yt-launcher-bubble:hover {\n transform: translateY(-2px);\n box-shadow: 6px 10px 16px rgba(0,0,0,.28);\n border-color: #b5b5b5;\n}\n\n\n.yt-launcher-ribbon:hover {\n filter: brightness(1.06);\n box-shadow: 0 -6px 18px rgba(0,0,0,.25) inset, 0 2px 8px rgba(0,0,0,.25);\n}\n');_t('/* --------- Theme tokens (you can override via styleVars prop) --------- */\n:root {\n --yt-rwmd-backdrop: rgba(0, 0, 0, 0.55);\n --yt-rwmd-surface: #ffffff;\n --yt-rwmd-ink: #141414;\n --yt-rwmd-muted: #6c6c6c;\n --yt-rwmd-cta-bg: #b85552; /* button background */\n --yt-rwmd-cta-ink: #ffffff;\n\n /* gradient band */\n --yt-rwmd-band-left: #2b252a;\n --yt-rwmd-band-right: #c04d47;\n --otp-ink: #1a1a1a;\n --otp-muted: #6d6d6d;\n --otp-border: #ececec;\n --otp-accent: #b85552;\n}\n/* Margins are zeroed by the (0,1,0) baseline in reset.css; component\n classes (e.g. .yt-otp-hint) override it, bare <p>/<h3> inherit the 0. */\n\n/* GuestDesktop: reduce all font sizes by 10% at <=700px */\n/* @media (max-width: 700px) {\n .yt-guestDesktop,\n .yt-guestDesktop * {\n font-size: 99% !important;\n line-height: 99% !important;\n }\n} */\n\n/* --------- Backdrop --------- */\n\n.yt-guestDesktop {\n max-width: 983px;\n /* max-height: 481px; */\n margin-block: auto;\n margin-inline: 5%;\n width: auto;\n display: flex;\n gap: 9px;\n flex-direction: column;\n place-self: center;\n align-self: center;\n justify-self: center;\n}\n\n/* make children fill the full card height instead of centering */\n.yt-guestDesktop-card {\n overflow: hidden;\n display: flex;\n width: 100%;\n height: 481px;\n /* max-height: 481px; */\n /* aspect-ratio: 16/9; */\n position: relative;\n align-items: stretch; /* was center */\n border-radius: 16px;\n border: 5px solid #3f3f3f;\n background: #171717;\n}\n\n.yt-guestDesktop-image {\n flex: 1 1 50%;\n min-width: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n display: block;\n background: #fff;\n overflow: hidden;\n}\n\n.yt-guestDesktop-contentBox {\n position: relative;\n flex: 1 1 50%;\n min-width: 0;\n height: 100%;\n padding-inline: 16px;\n /* padding-bottom: 100px; */\n box-sizing: border-box;\n background: #fff;\n display: flex;\n align-items: center;\n flex-direction: column;\n overflow: hidden;\n}\n\n.yt-guestDesktop-body {\n width: 100%;\n max-width: 100%;\n display: flex;\n height: 100%;\n flex-direction: column;\n align-items: flex-start;\n justify-content: start;\n padding-top: 20px;\n gap: 9px;\n overflow: hidden; /* guards against accidental overflow */\n}\n\n.yt-guestDesktop-title {\n display: flex;\n padding: 10px;\n\n align-items: center;\n gap: 10px;\n align-self: stretch;\n color: #000;\n font-family: Poppins;\n font-size: 28px;\n font-style: normal;\n font-weight: 600;\n line-height: 110%; /* 30.8px */\n letter-spacing: -0.56px;\n}\n.yt-guestDesktop-subtitle {\n display: flex;\n padding: 4px 30px 4px 10px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n align-self: stretch;\n color: #000;\n font-family: Poppins;\n font-size: 18px;\n font-style: normal;\n font-weight: 300;\n line-height: 110%; /* 19.8px */\n letter-spacing: 0.18px;\n}\n.yt-guestDesktop-cta {\n display: flex;\n padding: 10px 0;\n flex-direction: column;\n align-items: flex-start;\n gap: 10px;\n align-self: stretch;\n}\n.yt-guestDesktop-cta button {\n cursor: pointer;\n display: flex;\n padding: 16px 12px;\n justify-content: space-between;\n align-items: center;\n align-self: stretch;\n border-radius: 12px;\n background: #a54848;\n border: none;\n}\n.yt-guestDesktop-cta p {\n color: #fff;\n font-family: Poppins;\n font-size: 18px;\n font-style: normal;\n font-weight: 500;\n line-height: 102%; /* 18.36px */\n font-variant: all-small-caps;\n}\n.yt-guestDesktop-terms {\n color: var(--plain-swatch-333333, #333);\n text-align: center;\n font-family: Poppins;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 122%; /* 14.64px */\n}\n.yt-guestDesktop-terms span {\n color: #af4b4b;\n font-family: Poppins;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 122%;\n text-decoration-line: underline;\n text-decoration-style: solid;\n text-decoration-skip-ink: none;\n text-decoration-thickness: auto;\n text-underline-offset: auto;\n text-underline-position: from-font;\n}\n\n.yt-guestDesktop-footer {\n background: transparent;\n display: flex;\n justify-content: space-between;\n}\n.yt-guestDesktop-footer p,\n.yt-guestDesktop-footer span {\n color: #fff;\n font-family: Poppins;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 127%; /* 16.51px */\n}\n.yt-guestDesktop-footer p span {\n font-weight: 600;\n}\n\n/* "powered by YourToken" footer — shared across guest + profile screens. */\n.yt-powered-by {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n box-sizing: border-box;\n padding: 10px 0;\n}\n.yt-powered-by p {\n margin: 0;\n color: #8a8a8a;\n font-family: Poppins;\n font-size: 12px;\n font-weight: 400;\n}\n.yt-powered-by span {\n font-weight: 700;\n color: #5f5f5f;\n}\n\n/* GuestDesktopWithoutImage: shell that stacks the card + a "powered by" footer\n below it (mirrors GuestDesktop\'s card+footer column). Desktop-only component,\n so the below-card footer only needs to work at the desktop breakpoint where\n the dialog is position: relative rather than fixed. */\n@media (min-width: 1024px) {\n .yt-rwmd-shell {\n width: 100%;\n max-width: 500px;\n margin: 10% auto;\n display: flex;\n flex-direction: column;\n gap: 9px;\n }\n /* The shell now handles centering; drop the dialog\'s own auto margin. */\n .yt-rwmd-shell .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) {\n margin: 0;\n }\n}\n\n/* GuestDesktopWithoutImage: center the "powered by" footer under the card\n (the shared .yt-guestDesktop-footer is space-between for the with-image\n variant that also has a Close button). */\n.yt-rwmd-shell > .yt-guestDesktop-footer {\n justify-content: center;\n}\n\n/* GuestMobile: the footer sits ABOVE the bottom-anchored modal, on the\n backdrop. The shell is a bottom-aligned flex column; the modal flows inside\n it (position: static instead of its own fixed bottom:0) so the footer can\n stack directly above the modal\'s top edge. */\n.yt-rwmd-mobile-shell {\n position: fixed;\n inset: 0;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: stretch;\n pointer-events: none; /* let backdrop clicks reach the overlay */\n}\n.yt-rwmd-mobile-shell > * {\n pointer-events: auto;\n}\n.yt-rwmd-mobile-shell > .yt-rwmd-dialog {\n position: static;\n}\n.yt-rwmd-mobile-shell > .yt-powered-by {\n flex-shrink: 0;\n justify-content: flex-start;\n padding: 8px 20px;\n}\n.yt-rwmd-mobile-shell > .yt-powered-by p,\n.yt-rwmd-mobile-shell > .yt-powered-by span {\n color: #fff;\n}\n.yt-guestDesktop-close {\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 4px;\n color: #fff;\n font-family: Poppins;\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 127%; /* 20.32px */\n}\n.yt-guestDesktop-close svg {\n height: 20px;\n width: 20px;\n}\n\n/* --------- Dialog --------- */\n.yt-rwmd-dialog {\n max-width: 515.813px;\n min-height: 356px;\n /* padding-bottom: 40px; */\n width: 100%;\n flex-shrink: 0;\n background: var(--yt-rwmd-surface);\n color: var(--yt-rwmd-ink);\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 16px 16px 0px 0px;\n overflow: hidden;\n /* width: 100vw; */\n position: fixed;\n bottom: 0px;\n animation: yt-rwmd-slide-up 0.35s cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n@keyframes yt-rwmd-slide-up {\n from {\n transform: translateY(100%);\n opacity: 0.7;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n}\n\n/* Close button */\n.yt-rwmd-close {\n position: absolute;\n right: 10px;\n top: 8px;\n width: 36px;\n height: 36px;\n border: 0;\n background: transparent;\n color: #fff;\n font-size: 24px;\n line-height: 1;\n cursor: pointer;\n z-index: 1;\n}\n\n/* Gradient hero band */\n.yt-rwmd-hero {\n position: relative;\n padding: 32px 28px;\n color: #fff;\n overflow: clip;\n}\n.yt-rwmd-hero_header {\n box-sizing: border-box;\n padding-inline: 30px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n}\n.yt-rwmd-logo {\n box-sizing: content-box;\n padding-top: 8px;\n padding-bottom: 8px;\n align-self: center;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 52px;\n max-height: 52px;\n /* margin: 0 auto 12px; */\n\n /* border: 2px solid #fff; */\n font-weight: 700;\n}\n.yt-rwmd-logo img {\n box-sizing: content-box;\n max-width: 100%;\n object-fit: contain;\n}\n.yt-rwmd-hero-eyebrow {\n color: var(--plain-swatch-ffffff, #fff);\n font-family: Poppins;\n font-size: 13.545px;\n font-style: normal;\n font-weight: 400;\n line-height: 127%; /* 17.202px */\n}\n.yt-rwmd-hero-title {\n margin: 0;\n color: var(--plain-swatch-ffffff, #fff);\n font-family: Poppins;\n font-size: 30.879px;\n font-style: normal;\n font-weight: 500;\n line-height: 102%; /* 31.496px */\n}\n\n.yt-rwmd-content {\n z-index: 1;\n background: #fff;\n /* padding: 28px; */\n position: relative;\n padding-bottom: 52px\n}\n\n/* Body */\n.yt-rwmd-body {\n z-index: 3;\n /* padding: 28px 45px; */\n display: flex;\n padding: 28px 40px;\n flex-direction: column;\n align-items: center;\n gap: 5.614px;\n align-self: stretch;\n}\n.yt-rwmd-body_head {\n display: flex;\n padding: 0 11.93px;\n flex-direction: column;\n align-items: center;\n gap: 5.614px;\n align-self: stretch;\n}\n.yt-rwmd-lead {\n color: #000;\n font-family: Poppins;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 100%; /* 16px */\n}\n.yt-rwmd-subcopy {\n text-align: center;\n color: #000;\n font-family: Poppins;\n font-size: 11px;\n font-style: normal;\n font-weight: 300;\n line-height: 100%; /* 11px */\n}\n\n/* Primary CTA */\n.yt-rwmd-cta {\n margin-block: 11.23px;\n cursor: pointer;\n display: flex;\n padding: 13px 45px;\n justify-content: center;\n align-items: center;\n gap: 8.089px;\n align-self: stretch;\n border-radius: 12px;\n background: #a54848;\n color: var(--plain-swatch-ffffff, #fff);\n font-family: Poppins;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 102%; /* 16.32px */\n font-variant: all-small-caps;\n border: none;\n animation: yt-otp-fade-in 260ms ease-out both;\n animation-delay: 200ms;\n}\n\n.yt-rwmd-cta:disabled {\n width: 100%; /* Make button full-width */\n background-color: #e4e4e4 !important;\n color: #5d5b5b !important;\n margin: 20px auto; /* Center button */\n}\n\n.yt-rwmd-cta {\n transition: background 220ms ease-out, background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out;\n}\n.yt-rwmd-cta:hover:not(:disabled) {\n background: #fff !important;\n background-color: #fff !important;\n color: #1F1F1F !important;\n border-color: #1F1F1F !important;\n}\n\n.yt-guestDesktop-cta button {\n transition: background 220ms ease-out, background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out;\n}\n.yt-guestDesktop-cta button:hover:not(:disabled) {\n background: #fff !important;\n background-color: #fff !important;\n color: #1F1F1F !important;\n border-color: #1F1F1F !important;\n}\n\n.yt-rwmd-registerForm {\n display: flex;\n \n /* width: 100%; */\n padding: 0 13px;\n flex-direction: column;\n align-items: flex-start;\n gap: 7.018px;\n align-self: stretch;\n}\n.yt-rwmd-registerForm .react-international-phone-input-container .react-international-phone-input {\n box-shadow: none !important;\n width: 100%;\n font-family: "Poppins", sans-serif;\n }\n\n .yt-rwmd-registerForm .react-international-phone-input-container{\n width: 100%;\n }\n\n.yt-rwmd-registerForm .react-international-phone-country-selector-dropdown{\n position: fixed !important;\n top: auto !important;\n left: auto !important;\n outline: none !important;\n}\n\n.yt-rwmd-registerForm .yt-input-wrapper {\n display: flex;\n align-items: center;\n /* position: relative; anchor for absolute child */\n overflow: visible;\n /* width: 346.147px; */\n width: 100%;\n height: 34.388px;\n /* flex-shrink: 0; */\n border-radius: 8px;\n border: 0.702px solid #dedede;\n background: rgba(0, 0, 0, 0.03);\n box-sizing: border-box;\n}\n/* .yt-input-wrapper {\n width: 100%;\n border: 1.072px solid transparent; \n border-radius: 10px;\n background: #F7F7F7;\n box-shadow: none;\n box-sizing: border-box;\n overflow: hidden; \n} */\n\n.yt-input-wrapper p,\n.yt-input-wrapper input::placeholder {\n font-family: Poppins;\n line-height: 94%;\n text-wrap: nowrap;\n font-weight: normal;\n color: gray;\n background: transparent;\n}\n\n.yt-input-wrapper input {\n display: block;\n width: 100%;\n max-width: 100%;\n padding: 10px 12px;\n border: 0;\n outline: 0;\n background: transparent;\n box-sizing: border-box;\n box-shadow: none;\n}\n\n.yt-input-wrapper:focus-within input::placeholder,\n.yt-input-wrapper:focus-within p {\n color: black;\n opacity: 1;\n}\n\n.yt-input-wrapper:focus-within {\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 2.105px 2.105px 0 0 rgba(49, 48, 48, 0.58);\n border-color: #000;\n}\n\n.yt-rwmd-code-select {\n /* min-width: 30px; \n /* padding: 0 0 0 12px; */\n border: none;\n background: transparent;\n\n /* custom arrow */\n /* appearance: none; */\n \n\n font-size: 14px;\n color: #111827;\n cursor: pointer;\n}\n\n.yt-rwmd-code-select:focus,\n.yt-rwmd-code-select:focus-visible,\n.yt-rwmd-code-select:active {\n outline: none !important; \n box-shadow: none !important; \n border-color: #d7d7d7 !important; \n}\n\n/* if your wrapper adds a focus shadow, clear it too */\n.yt-input-wrapper:focus-within {\n box-shadow: none !important;\n}\n\n\n/* .yt-rwmd-cta:active{ transform: translateY(1px); } */\n\n/* Terms line */\n.yt-rwmd-terms {\n color: var(--plain-swatch-333333, #333);\n text-align: center;\n font-family: Poppins;\n font-size: 9px;\n font-style: normal;\n font-weight: 400;\n line-height: 122%; /* 10.98px */\n}\n.yt-rwmd-terms a {\n color: #af4b4b;\n font-family: Poppins;\n font-size: 9px;\n font-style: normal;\n font-weight: 400;\n line-height: 122%;\n text-decoration-line: underline;\n text-decoration-style: solid;\n text-decoration-skip-ink: none;\n text-decoration-thickness: auto;\n text-underline-offset: auto;\n text-underline-position: from-font;\n}\n\n.yt-rwmd-bottom_tape1 {\n position: absolute;\n display: flex;\n overflow: hidden;\n transform: rotate(5.796deg);\n padding: 4.706px 10.353px;\n align-items: center;\n gap: 14.036px;\n opacity: 0.1;\n background: #a9a9a9;\n bottom: 26px;\n left: -14%;\n width: 128%;\n z-index: 1;\n}\n\n.yt-rwmd-tapeTrack {\n display: flex;\n align-items: center;\n gap: inherit;\n width: max-content;\n flex: 0 0 auto;\n will-change: transform;\n}\n\n.yt-rwmd-tapeTrack--left {\n animation: yt-rwmd-marquee-left 18s linear infinite;\n}\n\n.yt-rwmd-tapeTrack--right {\n animation: yt-rwmd-marquee-right 20s linear infinite;\n}\n\n.yt-rwmd-tapeGroup {\n display: flex;\n align-items: center;\n gap: inherit;\n flex: 0 0 auto;\n}\n\n.yt-rwmd-tapeItem {\n display: flex;\n align-items: center;\n gap: 6px;\n flex: 0 0 auto;\n}\n\n.yt-rwmd-bottom_tape1 p {\n color: var(--primary-v-2-swatch-5-f-579-b, #5f579b);\n font-family: Poppins;\n font-size: 9.412px;\n font-style: normal;\n font-weight: 600;\n line-height: 100%; /* 9.412px */\n text-transform: uppercase;\n text-wrap: nowrap;\n}\n\n.yt-rwmd-bottom_tape2 {\n display: flex;\n overflow: hidden;\n position: absolute;\n bottom: 14px;\n transform: rotate(-2.509deg);\n padding: 4.706px 10.353px;\n justify-content: flex-start;\n align-items: center;\n gap: 34.388px;\n background: rgba(176, 76, 76, 0.14);\n left: -14%;\n width: 128%;\n z-index: 2;\n isolation: isolate;\n}\n.yt-rwmd-bottom_tape2 img {\n width: 14.036px;\n height: 14.737px;\n background: transparent;\n object-fit: contain;\n mix-blend-mode: multiply;\n}\n\n.yt-rwmd-bottom_tape2 p {\n color: #b14c4c;\n font-family: Poppins;\n font-size: 9.412px;\n font-style: normal;\n font-weight: 600;\n line-height: 100%; /* 9.412px */\n text-transform: uppercase;\n text-wrap: nowrap;\n}\n\n@keyframes yt-rwmd-marquee-left {\n from {\n transform: translateX(0);\n }\n to {\n transform: translateX(-50%);\n }\n}\n\n@keyframes yt-rwmd-marquee-right {\n from {\n transform: translateX(-50%);\n }\n to {\n transform: translateX(0);\n }\n}\n\n@media (min-width: 1024px) {\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) {\n border-radius: 16px;\n overflow: hidden;\n background-color: #000;\n max-width: 500px;\n margin: 10% auto;\n padding: 0px;\n border-radius: 16px !important;\n position: relative;\n }\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-content {\n overflow: hidden;\n z-index: 1;\n margin: 10px;\n border-radius: 16px;\n height: 100%;\n background: #fff;\n padding: 0px 0px 28px 0px;\n \n }\n\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-hero {\n text-align: center; /* Center-align text */\n }\n\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-hero_header {\n display: flex;\n flex-direction: column;\n align-items: center; /* Center-align content */\n }\n\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-body {\n padding: 31.226px 19.216px 60px 19.216px;\n\n border-radius: 20px 20px 0 0;\n gap: 13px;\n /* padding: 20px; */\n text-align: center; /* Center-align text */\n }\n\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-registerForm {\n display: flex;\n flex-direction: column;\n gap: 15px; /* Add spacing between form fields */\n align-items: center; /* Center-align form fields */\n }\n\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-cta {\n width: 100%; /* Make button full-width */\n\n margin: 20px auto; /* Center button */\n }\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-cta:disabled {\n width: 100%; /* Make button full-width */\n background-color: #e4e4e4 !important;\n color: #5d5b5b !important;\n margin: 20px auto; /* Center button */\n }\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-bottom_tape1,\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-bottom_tape2 {\n left: -12%;\n width: 124%;\n }\n\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-bottom_tape1 {\n bottom: 34px;\n }\n\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-bottom_tape2 {\n bottom: 18px;\n }\n}\n\n@keyframes otp-pop-in {\n from {\n opacity: 0;\n transform: translateY(10px) scale(0.98);\n filter: saturate(0.9);\n }\n to {\n opacity: 1;\n transform: translateY(0) scale(1);\n filter: saturate(1);\n }\n}\n\n@keyframes otp-rise-in {\n from {\n opacity: 0;\n transform: translateY(6px) scale(0.96);\n }\n to {\n opacity: 1;\n transform: translateY(0) scale(1);\n }\n}\n\n@keyframes yt-otp-fade-in {\n from {\n opacity: 0;\n transform: translateY(6px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n.yt-otp-wrap {\n transition:\n transform 280ms cubic-bezier(0.2, 0.9, 0.22, 1),\n opacity 280ms ease;\n text-align: center;\n color: var(--otp-ink);\n width: 100%;\n animation: otp-pop-in 320ms cubic-bezier(0.2, 0.9, 0.22, 1) both;\n will-change: transform, opacity;\n}\n\n.yt-otp-title {\n margin: 0;\n color: var(--brandf, #24272c);\n text-align: center;\n font-family: Inter;\n font-size: 17.58px;\n font-style: normal;\n font-weight: 700;\n line-height: 148.5%; /* 26.106px */\n letter-spacing: 0.176px;\n text-transform: capitalize;\n}\n\n.yt-otp-subtext {\n margin: 0;\n color: #333;\n text-align: center;\n font-family: Poppins;\n font-size: 10.452px;\n font-style: normal;\n font-weight: 400;\n line-height: 148.5%; /* 15.522px */\n}\n\n.yt-otp-phone {\n color: #af4b4b;\n font-family: Poppins;\n font-size: 10.452px;\n font-style: normal;\n font-weight: 400;\n line-height: 148.5%;\n}\n\n.yt-otp-link {\n padding: 0px;\n color: #af4b4b;\n font-family: Poppins;\n font-size: 9px;\n font-style: normal;\n font-weight: 500;\n line-height: 148.5%;\n text-decoration-line: underline;\n text-decoration-style: solid;\n text-decoration-skip-ink: none;\n text-decoration-thickness: auto;\n text-underline-offset: auto;\n text-underline-position: from-font;\n background-color: transparent;\n border: none;\n}\n\n.yt-otp-rule {\n width: 100%;\n max-width: none; /* defeat host base rules like `hr { max-width: 100px }` */\n height: 0.718px;\n border: none;\n background: #e2e2e2;\n}\n\n.yt-otp-form {\n margin: 0;\n}\n\n.yt-otp-boxes {\n display: flex;\n justify-content: center;\n gap: 16px;\n /* margin-bottom: 14px; */\n}\n\n.yt-otp-box {\n display: flex;\n width: 56.464px;\n height: 46.759px;\n justify-content: center;\n align-items: center;\n text-align: center;\n background: #f6f6f6;\n box-shadow: 0 0.882px 0 0 rgba(0, 0, 0, 0.25);\n border: none;\n transition: border-color 0.15s ease;\n opacity: 0;\n animation: otp-rise-in 260ms ease-out forwards;\n /* 40ms steps: 0, 40, 80… */\n animation-delay: calc(40ms * var(--stagger, 0));\n}\n.yt-otp-box:focus {\n outline: none;\n background: #f6f6f6;\n box-shadow: 0 1.764px 0 0 #af4b4b;\n}\n.yt-otp-box.yt-filled {\n background: #f6f6f6;\n box-shadow: 0 1.764px 0 0 #af4b4b;\n}\n\n.yt-otp-hint {\n margin: 13px 0 18px;\n color: var(--brandf, #24272c);\n text-align: center;\n font-family: Poppins;\n font-size: 9px;\n font-style: normal;\n font-weight: 300;\n line-height: 148.5%; /* 13.365px */\n}\n\n.yt-otp-confirm {\n width: 100%;\n height: 24px;\n border: 0;\n background: var(--otp-accent);\n color: #fff;\n font-size: 18px;\n font-weight: 700;\n border-radius: 14px;\n cursor: pointer;\n}\n.yt-otp-confirm:disabled {\n opacity: 0.6;\n cursor: default;\n}\n\n.yt-otp-terms {\n margin: 12px 0 0;\n color: var(--otp-muted);\n font-size: 13px;\n}\n.yt-otp-terms a {\n color: var(--otp-muted);\n text-decoration: underline;\n}\n\n/* small screens */\n@media (max-width: 380px) {\n .yt-otp-box {\n width: 56px;\n height: 56px;\n font-size: 28px;\n }\n}\n@media (max-width: 340px) {\n .yt-otp-box {\n width: 48px;\n height: 48px;\n font-size: 24px;\n }\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n');_t('/* basic variables */\n:root {\n --yt-rw-backdrop: rgba(0, 0, 0, 0.55);\n --purple: #4f486a; /* header */ /* header */\n --ink: #111; /* main text */\n --muted: #5b5b5b; /* secondary text */\n --border: #e1e1e1; /* lines */\n --cta-bg: #efecf7; /* light purple bar */\n --card-bg: #fff;\n}\n\n.yt-reward-loyalty-overlay {\n position: fixed;\n inset: 0;\n background: var(--yt-rw-backdrop);\n display: grid;\n place-items: center;\n z-index: 9999;\n width: 100%;\n height: 100%;\n}\n\n/* Profile (desktop + rounded corners): the card is a floating card that isn\'t\n full height, so this shell stacks it with a centered "powered by" footer\n below. Needs a definite height so the card\'s `height: 95%` resolves. */\n.yt-rw-shell {\n /* Definite viewport height so the card\'s percentage height resolves. The\n grid cell alone is auto-sized (place-items:center), which is why a `%`\n height on the card didn\'t resolve and it overflowed. */\n align-self: stretch;\n justify-self: stretch;\n width: 100%;\n height: 100dvh;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.yt-rw-shell > .yt-rw-card {\n flex-shrink: 0;\n}\n\n/* desktop + rounded corners: floating card, footer centered below it */\n.yt-rw-shell--below {\n flex-direction: column;\n gap: 4px;\n}\n.yt-rw-shell--below > .yt-powered-by p,\n.yt-rw-shell--below > .yt-powered-by span {\n color: #fff;\n}\n\n/* desktop + full height: footer runs vertically along the right of the card */\n.yt-rw-shell--right {\n flex-direction: row;\n gap: 12px;\n}\n.yt-rw-shell--right > .yt-powered-by {\n display: block;\n width: auto;\n padding: 0;\n writing-mode: vertical-rl;\n align-self: flex-end; /* bottom-right */\n margin-bottom: 32px; /* lift slightly off the bottom edge */\n}\n.yt-rw-shell--right > .yt-powered-by p,\n.yt-rw-shell--right > .yt-powered-by span {\n color: #fff;\n}\n\n/* container */\n.yt-rw-card {\n /* overflow-y: auto; allow scroll during collapse phase */\n overscroll-behavior: contain;\n min-height: 0;\n position: relative;\n /* overflow: none; */\n /* 100vh first as a fallback for older browsers; modern browsers honour\n 100dvh which excludes the mobile-browser dynamic chrome (URL bar / tab bar)\n so the widget never extends behind it. */\n height: 100vh;\n height: 100dvh;\n max-height: 100vh;\n max-height: 100dvh;\n align-self: center;\n /* margin: 63px; */\n max-width: 500px;\n width: 100%;\n /* height: 100%; */\n /* margin: 0px; */\n /* padding-inline:20px ; */\n display: flex;\n flex-direction: column;\n /* gap: 18px; */\n background: var(--purple);\n /* straight edges, no radius */\n font-family:\n Poppins system-ui,\n -apple-system,\n sans-serif;\n color: var(--ink);\n\n /* Animation for opening */\n transform: translateY(40px) scale(0.98);\n opacity: 0;\n animation: yt-rw-card-fade-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;\n}\n\n@keyframes yt-rw-card-fade-in {\n to {\n transform: translateY(0) scale(1);\n opacity: 1;\n }\n}\n.yt-rw-card p {\n margin: 0;\n}\n\n.yt-rw-close {\n position: absolute;\n right: 10px;\n top: 8px;\n width: 36px;\n height: 36px;\n border: 0;\n background: transparent;\n color: #fff;\n font-size: 24px;\n line-height: 1;\n cursor: pointer;\n z-index: 1;\n}\n.yt-rw-back{\n border: 0;\n background: transparent;\n color: #fff;\n cursor: pointer;\n z-index: 1;\n font-weight: 700\n}\n\n.yt-rw-pageTitle{\n color: #FFF;\nfont-family: Poppins;\nfont-size: 14.613px;\nfont-style: normal;\nfont-weight: 500;\nline-height: 127%; /* 18.559px */\n}\n\n::-webkit-scrollbar {\n width: 0; \n background: transparent; \n}\n\n.yt-rw-body {\n display: flex;\n flex-direction: column;\n max-height: 100%;\n max-width: 100%;\n overflow-y: hidden; /* will be enabled after lock */\n min-height: 0;\n flex: 1 1 auto;\n /* overflow-y: auto; */\n /* overflow-x: auto; */\n\n border-top-left-radius: 20px;\n border-top-right-radius: 20px;\n background-color: #fff;\n\n\n\n -webkit-overflow-scrolling: touch;\n padding-bottom: env(safe-area-inset-bottom, 0px);\n}\n.yt-rw-content{\n background-color: transparent;\n box-sizing: content-box;\n display: flex;\n padding-inline: 16px;\n gap: 18px;\n flex-direction: column;\n}\n/* .yt-rw-card.yt-rw-card--locked {\n overflow-y: hidden;\n} */\n\n/* When locked: body becomes the scroller */\n.yt-rw-card.yt-rw-card--locked .yt-rw-body {\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n/* header */\n.yt-rw-head {\n overflow-x:hidden;\n overflow-y:clip;\n /* position: relative; */\n background: transparent;\n color: #fff;\n text-align: center;\n display: flex;\n flex-direction: column;\n /* gap: 4px; */\n padding: 16px 27px;\n will-change: padding;\n transition: padding 260ms cubic-bezier(0.25, 0.1, 0.25, 1);\n flex-shrink: 0;\n position: sticky;\n top: 0;\n z-index: 5; \n}\n.yt-rw-head--shrink {\n padding-block: 1px;\n}\n.yt-rw-head--shrink .yt-rw-logo,\n.yt-rw-head--shrink .yt-rw-eyebrow {\n opacity: 0;\n visibility: hidden;\n transform: translateY(-4px);\n pointer-events: none;\n max-height: 0;\n}\n.yt-rw-head--shrink .yt-rw-title{\n transform: scale(0.84);\n opacity: 1;\n animation: yt-rw-title-shrink-fade 420ms cubic-bezier(0.22, 0.61, 0.36, 1) 90ms both;\n}\n.yt-rw-head--shrink .yt-rw-headBg{\n bottom:-40px\n}\n.yt-rw-headBg {\n position: absolute;\n color: #fff;\n font-weight: 700;\n bottom: 20px;\n left: 50%;\n transform: translateX(-50%);\n white-space: nowrap;\n font-size: 92px;\n line-height: 102%;\n opacity: 0.1;\n background: cover no-repeat;\n z-index: 0;\n transition: bottom 260ms cubic-bezier(0.25, 0.1, 0.25, 1);\n}\n.yt-rw-logo {\n /* padding-top: 0px; */\n box-sizing: content-box;\n padding-bottom: 4px;\n align-self: center;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 52px;\n max-height: 68px;\n overflow: hidden;\n /* margin: 0 auto 12px; */\n\n /* border: 2px solid #fff; */\n font-weight: 700;\n}\n.yt-rw-logo img{\n box-sizing: content-box;\n max-width: 100%;\n object-fit: contain;\n}\n.yt-rw-eyebrow {\n display: block;\n font-size: 14px;\n opacity: 0.9;\n max-height: 22px;\n overflow: hidden;\n}\n.yt-rw-title {\n line-height: normal;\n font-size: 28px;\n transform: scale(1);\n opacity: 1;\n transform-origin: top center;\n will-change: transform, opacity;\n transition:\n transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1),\n opacity 280ms ease;\n}\n\n@keyframes yt-rw-title-shrink-fade {\n 0% {\n opacity: 1;\n transform: scale(1);\n }\n 50% {\n opacity: 0;\n transform: scale(0.92);\n }\n 100% {\n opacity: 1;\n transform: scale(0.84);\n }\n}\n\n.yt-rw-logo,\n.yt-rw-eyebrow {\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n will-change: opacity, transform;\n transition:\n max-height 260ms cubic-bezier(0.25, 0.1, 0.25, 1),\n opacity 220ms linear,\n transform 260ms cubic-bezier(0.25, 0.1, 0.25, 1),\n visibility 0s linear 0s;\n}\n\n.yt-rw-head--shrink .yt-rw-logo,\n.yt-rw-head--shrink .yt-rw-eyebrow {\n padding-top: 0;\n padding-bottom: 0;\n transition:\n max-height 260ms cubic-bezier(0.25, 0.1, 0.25, 1),\n opacity 180ms linear,\n transform 260ms cubic-bezier(0.25, 0.1, 0.25, 1),\n visibility 0s linear 180ms;\n}\n\n\n.yt-rw-skel {\n display: inline-block;\n border-radius: 8px;\n /* visible on white */\n background: rgba(0, 0, 0, 0.08);\n position: relative;\n overflow: hidden;\n}\n\n.yt-rw-skel::after {\n content: "";\n position: absolute;\n inset: 0;\n transform: translateX(-100%);\n background: linear-gradient(\n 90deg,\n transparent,\n rgba(0, 0, 0, 0.10),\n transparent\n );\n animation: yt-rw-skel-shimmer 1.1s infinite;\n}\n\n@keyframes yt-rw-skel-shimmer {\n 100% { transform: translateX(100%); }\n}\n\n/* match the visual size of your balance number */\n.yt-rw-skel-amount {\n width: 88px; /* tweak if needed */\n height: 44px; /* tweak to match .yt-rw-amount font-size */\n}\n\n\n/* balance block */\n.yt-rw-hero {\n position: relative;\n display: flex;\n padding: 26px 16px 16px 16px;\n justify-content: space-between;\n align-items: center;\n align-self: stretch;\n}\n.yt-rw-hero-left {\n display: flex;\n align-items: start;\n gap: 12px;\n}\n.yt-rw-amount {\n font-family: Inter;\n font-size: 56px;\n line-height: 1;\n font-weight: 600;\n letter-spacing: -0.5px;\n}\n.yt-rw-labels {\n display: flex;\n width: 60.571px;\n height: 42.4px;\n flex-direction: column;\n align-items: flex-start;\n\n padding-top: 6px;\n}\n.yt-rw-kicker {\n color: var(--plain-swatch-1-a-1-a-1-a, #1a1a1a);\n font-family: Montserrat;\n font-size: 14.215px;\n font-style: normal;\n font-weight: 500;\n line-height: 102%; /* 14.5px */\n font-variant: all-small-caps;\n}\n.yt-rw-unit {\n color: #4f486a;\n text-align: right;\n font-family: Montserrat;\n font-size: 14.215px;\n font-style: normal;\n font-weight: 500;\n line-height: 102%; /* 14.5px */\n font-variant: all-small-caps;\n}\n.yt-rw-hero-right {\n font-size: 22px;\n color: var(--muted);\n}\n.yt-rw-starLogo {\n position: absolute;\n right: 10px;\n opacity: 0.7;\n}\n/* note row */\n.yt-rw-note {\n\n padding: 8px 10px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n align-self: stretch;\n text-align: center;\n /* text-wrap: nowrap; */\n overflow-wrap: break-word;\n background: rgba(132, 132, 132, 0.1);\n color: #000;\n text-align: center;\n font-family: Poppins;\n font-size: 11px;\n font-style: normal;\n font-weight: 300;\n line-height: 133%; /* 14.63px */\n letter-spacing: 0.398px;\n}\n.yt-rw-note b, .yt-rw-note span{\n color: #000;\nfont-family: Poppins;\nfont-size: 11px;\nfont-style: normal;\nfont-weight: 600;\nline-height: 133%;\nletter-spacing: 0.398px;\n}\n.yt-rw-link {\n text-decoration: underline;\n color: inherit;\n}\n\n/* CTA bar */\n.yt-rw-cta {\n cursor: pointer;\n /* margin: 20px; */\n background: var(--cta-bg);\n border: 1px solid var(--ink);\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 14px 16px;\n transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.yt-rw-cta:active {\n scale:0.98\n}\n.yt-rw-cta {\n transition: background 220ms ease-out, background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out;\n}\n.yt-rw-cta:hover {\n background: #fff !important;\n background-color: #fff !important;\n color: #1F1F1F !important;\n border-color: #1F1F1F !important;\n}\n.yt-rw-cta:hover .yt-rw-cta-left,\n.yt-rw-cta:hover .yt-rw-cta-right {\n color: #1F1F1F !important;\n}\n.yt-rw-cta:hover svg,\n.yt-rw-cta:hover svg path {\n fill: #1F1F1F !important;\n transition: fill 220ms ease-out;\n}\n.yt-rw-cta-left {\n display: flex;\n align-items: center;\n gap: 10px;\n color: #000;\n font-family: Poppins;\n font-size: 14.613px;\n font-style: normal;\n font-weight: 500;\n line-height: 127%; /* 18.559px */\n}\n.yt-rw-coin {\n display: flex;\n place-items: center;\n font-size: 18px;\n}\n.yt-rw-cta-right {\n display: flex;\n font-size: 18px;\n}\n\n.yt-rw-rate {\n text-align: center;\n padding: 12px 0 31px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.yt-rw-rate__icon {\n width: 56px;\n height: 56px;\n margin: 12px auto;\n border-radius: 100%;\n border: 1px solid var(--line);\n background: #efeffd;\n color: #4e47c6;\n display: grid;\n place-items: center;\n}\n.yt-rw-rate__title {\n /* color: #000; */\n text-align: center;\n font-family: Urbanist;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n letter-spacing: 0.96px;\n margin: 0;\n}\n.yt-rw-rate__sub {\n /* color: var(--plain-swatch-333333, #333); */\n text-align: center;\n font-family: Poppins;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n letter-spacing: 0.24px;\n margin-top: 4px;\n}\n\n.yt-rw-coupon {\n border: 1px solid var(--ink);\n width: 100%;\n /* margin-top: 18px; */\n position: relative;\n}\n.yt-rw-coupon_head {\n overflow: hidden;\n background: rgba(248, 246, 255, 0.33);\n position: relative;\n display: flex;\n width: 100%;\n justify-content: space-between;\n}\n.yt-rw-coupon_bg {\n width: 96.668px;\n height: 350.802px;\n transform: rotate(46.821deg);\n position: absolute;\n left: -5.864px;\n top: -106.049px;\n opacity: 0.2;\n background: #d0d3e2;\n}\n.yt-rw-coupon__left {\n flex: 1;\n padding-inline: 12px;\n padding-block: 12px;\n display: flex;\n flex-direction: column;\n /* width: 172px; */\n width: 100%;\n align-items: start;\n justify-content: center;\n height: inherit;\n gap: 11px;\n \n}\n.yt-rw-coupon_cta {\n background: var(--cta-bg);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 14px 16px;\n}\n.yt-rw-coupon_cta {\n position: relative;\n overflow: hidden;\n}\n.yt-rw-coupon_cta::before {\n content: "";\n position: absolute;\n inset: 0;\n background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);\n transform: translateX(-100%);\n transition: transform 700ms ease-out;\n pointer-events: none;\n}\n.yt-rw-coupon_cta:hover::before {\n transform: translateX(100%);\n}\n\n.yt-rw-coupon__heading {\n color: #000;\n /* font-family: Sansation; */\n font-family: Inter;\n font-size: 19.283px;\n font-style: normal;\n font-weight: 500;\n line-height: 100%; /* 19.283px */\n letter-spacing: 0.578px;\n \n}\n\n.yt-rw-codepill {\n display: flex;\n padding: 9.123px 9.825px;\n justify-content: center;\n align-items: center;\n gap: 5.647px;\n border-radius: 32.282px;\n border: 1px solid #585858;\n background: #f8f8f8;\n box-shadow: 0 2.807px 2.807px 0 rgba(0, 0, 0, 0.14);\n cursor: pointer;\n transition: background 220ms ease-out, background-color 220ms ease-out, border-color 220ms ease-out;\n}\n.yt-rw-codepill:hover {\n background: #1F1F1F !important;\n background-color: #1F1F1F !important;\n border-color: #1F1F1F !important;\n}\n.yt-rw-codepill:hover .yt-rw-codepill__label,\n.yt-rw-codepill:hover .yt-rw-codepill__code {\n color: #fff !important;\n transition: color 220ms ease-out;\n}\n.yt-rw-codepill__label {\n color: #302b2b;\n\n font-size: 9.412px;\n font-style: normal;\n font-weight: 600;\n line-height: 100%; /* 9.412px */\n text-transform: uppercase;\n}\n.yt-rw-codepill__code {\n color: #302b2b;\n font-family: Poppins;\n font-size: 9.412px;\n font-style: normal;\n font-weight: 275;\n line-height: 100%;\n text-transform: uppercase;\n}\n\n.yt-rw-coupon__image{\n flex: 1;\n display: flex;\n justify-content: end;\n align-items: start;\n max-height: 180px;\n}\n\n.yt-rw-coupon__image svg {\nwidth: 100%;\nheight: 100%;\n\n@media (max-width: 480px) {\n width: 100%;\n height: 100%;\n}\n z-index: 0;\n}\n/* .yt-rw-coupon__image img{ max-width:90%; max-height:90%; object-fit:contain; } */\n\n\n.yt-rw-coupon__divider {\n height: 1px;\n background: var(--ink);\n}\n\n.yt-rw-ways {\n width: 100%;\n background: var(--lav);\n border: 0;\n border-top: 1px solid var(--ink);\n padding: 14px 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n text-align: left;\n cursor: pointer;\n}\n\n.yt-rw-ways__left {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 22px;\n font-weight: 700;\n}\n.yt-rw-ways__arrow {\n font-size: 22px;\n}\n\n/* === REFER & EARN === */\n.yt-rw-refer {\n border-radius: 12px;\n background: rgba(128, 128, 128, 0.01);\n box-shadow: 0 0 2.3px 0 rgba(0, 0, 0, 0.57);\n /* border: 1px solid var(--ink); */\n padding-top: 13px;\n /* margin-top: 18px; */\n}\n.yt-rw-refer_top {\n padding-inline: 16px;\n display: flex;\n flex-direction: column;\n gap: 13px;\n}\n.yt-rw-refer__title {\n /* color: #000; */\n text-align: center;\n font-family: Poppins;\n font-size: 18px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n letter-spacing: 0.96px;\n}\n.yt-rw-refer__desc {\n /* color: var(--plain-swatch-333333, #333); */\n text-align: center;\n font-family: Poppins;\n font-size: 11px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n letter-spacing: 0.22px;\n}\n\n.yt-rw-refer_steps {\n display: flex;\n padding: 12px 6px 6px 6px;\n align-items: center;\n gap: 6px;\n align-self: stretch;\n /* width: 100%; */\n}\n/* .yt-rw-refer_steps svg{\n flex:1\n} */\n\n.yt-refer-step-1 {\n position: relative;\n display: flex;\n height: 66.16px;\n flex: 1;\n min-width: 0;\n max-width: 33.3333%;\n overflow: hidden;\n border-radius: 8.677px;\n border: 1.085px solid rgba(166, 166, 166, 0.4);\n background: rgba(125, 125, 125, 0.21);\n padding-left: 7px;\n padding-top: 7px;\n}\n.yt-refer-step-1 svg {\n position: absolute;\n width: clamp(36px, 50%, 84.598px);\n height: auto;\n max-height: 100%;\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n\n.yt-refer-step-1_header {\n position: relative;\n z-index: 1;\n max-width: calc(100% - 44%);\n display: inline-flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 3.254px;\n}\n.yt-refer-step-1_header .yt-subtext {\n align-self: stretch;\n color: #a6a6a6;\n /* font-family: "PP Telegraf"; */\n font-family: Inter;\n font-size: 7.592px;\n font-style: normal;\n font-weight: 800;\n line-height: 117%; /* 8.883px */\n letter-spacing: -0.152px;\n text-transform: uppercase;\n}\n\n.yt-refer-step-1_header .yt-mainText {\n /* width: 81.344px; */\n color: var(--Text-Color, #000);\n /* font-family: PP Telegraf; */\n font-family: Inter;\n font-size: 13.015px;\n font-style: normal;\n font-weight: 400;\n line-height: 95%; /* 12.364px */\n letter-spacing: -0.26px;\n}\n\n.yt-rw-ref__linkcta {\n color: var(--Text-Dark, #3b5162);\n\n text-align: center;\n font-family: Poppins;\n font-size: 10.6px;\n font-style: normal;\n font-weight: 400;\n line-height: 117%; /* 12.402px */\n}\n\n.yt-rw-inputrow {\n display: flex;\n padding: 5.517px 5.116px;\n align-items: center;\n gap: 14.069px;\n flex: 1 0 0;\n align-self: stretch;\n border: 1px solid #000;\n background: rgba(136, 136, 136, 0.12);\n}\n\n.yt-rw-inputrow__icon {\n display: grid;\n place-items: center;\n}\n.yt-rw-input {\n text-overflow: ellipsis;\n text-wrap: nowrap;\n flex: 1;\n border: 0;\n font-size: 16px;\n outline: none;\n background: transparent;\n}\n.yt-rw-codebox {\n display: inline-flex;\n padding: 6px 12px;\n align-items: center;\n justify-content: center;\n align-self: stretch;\n border: 1px solid #000;\n background: rgba(136, 136, 136, 0.12);\n font-family: Poppins;\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.5px;\n text-transform: uppercase;\n width: fit-content;\n}\n\n.yt-rw-copy {\n display: flex;\n width: 36px;\n justify-content: center;\n align-items: center;\n gap: 12.79px;\n align-self: stretch;\n aspect-ratio: 1/1;\n border: 1px solid #000;\n background: var(--primary-v-3-swatch-d-0-d-3-e-2, #d0d3e2);\n}\n.yt-rw-copy:hover {\n opacity: 0.8;\n}\n\n.yt-rw-refer-locked {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 14px 16px;\n border: 1px dashed rgba(0, 0, 0, 0.25);\n background: rgba(136, 136, 136, 0.08);\n}\n.yt-rw-refer-locked__icon {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n.yt-rw-refer-locked__text {\n display: flex;\n flex-direction: column;\n gap: 3px;\n}\n.yt-rw-refer-locked__title {\n font-family: Poppins;\n font-size: 13px;\n font-weight: 500;\n line-height: normal;\n}\n.yt-rw-refer-locked__sub {\n font-family: Poppins;\n font-size: 11px;\n font-weight: 400;\n line-height: 140%;\n opacity: 0.75;\n}\n\n.yt-rw-share {\n display: flex;\n gap: 12px;\n padding: 14px 4px 4px;\n justify-content: center;\n}\n.yt-rw-share__btn {\n cursor: pointer;\n border-radius: 4.307px;\n border: none;\n background: #f5f5f5;\n display: flex;\n padding: 4.922px;\n justify-content: center;\n align-items: flex-start;\n gap: 6.153px;\n}\n\n.yt-rw-share__btn {\n transition: background 220ms ease-out, background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out;\n}\n.yt-rw-share__btn:hover {\n background: #fff !important;\n background-color: #fff !important;\n color: #1F1F1F !important;\n border-color: #1F1F1F !important;\n}\n\n.yt-rw-tiers {\n display: flex;\n padding: 28px 18px 18px;\n flex-direction: column;\n align-items: center;\n gap: 14px;\n align-self: stretch;\n}\n.yt-rw-tiers_top {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 2px;\n text-align: center;\n}\n.yt-rw-tiers_title {\n color: #111;\n font-family: Inter;\n font-size: 18px;\n font-style: normal;\n font-weight: 800;\n line-height: 1.08;\n letter-spacing: -0.54px;\n}\n.yt-rw-tiers_desc {\n color: #2f2f2f;\n font-family: Inter;\n font-size: 11px;\n font-style: normal;\n font-weight: 400;\n line-height: 1.2;\n letter-spacing: -0.22px;\n}\n.yt-rw-bottom-cta {\n display: flex;\n padding: 0 16px;\n flex-direction: column;\n align-items: center;\n gap: 11.229px;\n align-self: stretch;\n}\n\n.yt-rw-tiers__gems {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 18px;\n width: 100%;\n padding: 4px 0 2px;\n}\n.yt-gem {\n width: 64px;\n height: 64px;\n flex: 0 0 auto;\n filter: drop-shadow(0 0 0.135px rgba(0, 0, 0, 0.12))\n drop-shadow(0 0.827px 8px rgba(255, 245, 208, 0.42));\n}\n.yt-gem--violet,\n.yt-gem--rose {\n width: 74px;\n height: 74px;\n opacity: 0.58;\n margin-top: 12px;\n}\n.yt-gem--gold {\n width: 118px;\n height: 118px;\n margin: -2px 8px 0;\n opacity: 1;\n}\n.yt-rw-tiers_bottom {\n display: flex;\n width: 100%;\n max-width: 282px;\n flex-direction: column;\n align-items: center;\n gap: 14px;\n}\n.yt-rw-tiers-bottomHeader {\n display: flex;\n width: 100%;\n justify-content: center;\n align-items: center;\n flex-direction: row;\n gap: 12px;\n flex-wrap: wrap;\n}\n.yt-rw-tiers-bottomHeader__title {\n color: #4a4a4a;\n font-family: Poppins;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 117%;\n letter-spacing: -0.28px;\n}\n.yt-rw-tiers-bottomHeader__title b {\n font-weight: 700;\n}\n.yt-rw-tiers-bottomHeader svg {\n flex: 0 0 auto;\n}\n.yt-rw-tiers_bottom button {\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n width: 100%;\n max-width: 372px;\n min-height: 55px;\n padding: 14px 24px;\n justify-content: center;\n align-items: center;\n gap: 8px;\n border-radius: 999px;\n border: 1px solid #000;\n background: rgba(255, 255, 255, 0.66);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);\n}\n.yt-rw-tiers_bottom button p {\n margin: 0;\n color: #3a373a;\n text-align: center;\n font-family: Poppins;\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 1;\n letter-spacing: -0.32px;\n}\n.yt-rw-tiers_bottom button {\n transition: background 220ms ease-out, background-color 220ms ease-out, border-color 220ms ease-out;\n}\n.yt-rw-tiers_bottom button:hover {\n background: #1F1F1F !important;\n background-color: #1F1F1F !important;\n border-color: #1F1F1F !important;\n}\n.yt-rw-tiers_bottom button:hover p {\n color: #fff !important;\n transition: color 220ms ease-out;\n}\n.yt-rw-tiers_bottom button:hover svg path {\n fill: #fff !important;\n transition: fill 220ms ease-out;\n}\n\n.yt-rw-tiers + .yt-rw-note {\n margin-top: 2px;\n background: linear-gradient(180deg, rgba(246, 246, 246, 0.96) 0%, rgba(241, 241, 241, 0.92) 100%);\n}\n\n\n.yt-rw-bottom-cta button {\n cursor: pointer;\n display: flex;\n padding: 13px 45px;\n justify-content: center;\n align-items: center;\n gap: 8.089px;\n align-self: stretch;\n border-radius: 12px;\n border: 1px solid #000;\n background: #e0e0e0;\n transition: transform 150ms ease-out;\n}\n.yt-rw-bottom-cta button:hover {\n transform: scale(1.02) !important;\n}\n.yt-rw-bottom-cta p {\n margin-bottom: 9px;\n color: var(--plain-swatch-333333, #333);\n text-align: center;\n font-family: Poppins;\n font-size: 9px;\n font-style: normal;\n font-weight: 400;\n line-height: 122%; /* 10.98px */\n}\n\n/* @media (max-width: 410px) { */\n /* html { */\n /* font-size: 90%; shrink all rem-based fonts & line-heights by 10% */\n /* } */\n/* } */\n\n@keyframes yt-rw-screen-slide-right {\n from { opacity: 0; transform: translateX(28px); }\n to { opacity: 1; transform: translateX(0); }\n}\n@keyframes yt-rw-screen-slide-left {\n from { opacity: 0; transform: translateX(-28px); }\n to { opacity: 1; transform: translateX(0); }\n}\n.yt-rw-body--forward > * {\n animation: yt-rw-screen-slide-right 300ms cubic-bezier(0.22, 0.61, 0.36, 1) both;\n}\n.yt-rw-body--back > * {\n animation: yt-rw-screen-slide-left 300ms cubic-bezier(0.22, 0.61, 0.36, 1) both;\n}\n');function ng({background:t="",textColor:n="",displayText:r="Copied to clipboard!"}){return e.createElement("div",{className:"yt-toast",style:{position:"absolute",fontFamily:"Poppins",bottom:20,left:"50%",transform:"translateX(-50%)",boxSizing:"border-box",padding:"6px 12px",borderRadius:6,fontSize:13,animation:"fadein .5s",background:t||"#333",color:n||"#fff",zIndex:10,whiteSpace:"nowrap"}},r)}function rg({couponHeading:t="",couponCode:n="",copyFunction:r=e=>{},themePrimaryColor:o="",themeContrastColor:a="",themeSecondaryContrastColor:i="",themeSecondaryColor:l="",setScreenType:s=e=>{},showCTA:c=!0,borderRadius:d=""}){return e.createElement("div",{className:"yt-rw-coupon",style:{borderRadius:d,background:o}},n&&n?.length>0&&e.createElement("div",{className:"yt-rw-coupon_head",style:{borderTopLeftRadius:d,borderTopRightRadius:d}},e.createElement("div",{className:"yt-rw-coupon__left"},e.createElement("p",{className:"yt-rw-coupon__heading",style:{color:a}},t),e.createElement("button",{className:"yt-rw-codepill",type:"button",onClick:()=>r(n),"aria-label":"Copy coupon code",title:"Copy code",style:{background:l}},e.createElement("span",{className:"yt-rw-codepill__label",style:{color:i}},"COPY CODE"),e.createElement("span",{className:"yt-rw-codepill__code",style:{color:i}},n))),e.createElement("div",{className:"yt-rw-coupon__image"},e.createElement("svg",{width:"272",height:"182",viewBox:"0 0 272 182",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.createElement("rect",{x:"0.126953",y:"0.835938",width:"271.113",height:"180.427",fill:"url(#pattern0_7962_16264)"}),e.createElement("defs",null,e.createElement("pattern",{id:"pattern0_7962_16264",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},e.createElement("use",{xlinkHref:"#image0_7962_16264",transform:"matrix(0.000354067 0 0 0.000532028 -0.0522648 -0.639331)"})),e.createElement("image",{id:"image0_7962_16264",width:"3277",height:"4096",preserveAspectRatio:"none",xlinkHref:"https://r2.yourtoken.io/loyalty-widget-v2/wtr-coupon.png"}))))),c&&e.createElement("div",{onClick:()=>s("wtr"),className:"yt-rw-coupon_cta",style:{backgroundColor:l,color:i,border:"none",borderTopLeftRadius:n&&n?.length>0?void 0:d,borderTopRightRadius:n&&n?.length>0?void 0:d,borderBottomLeftRadius:d,borderBottomRightRadius:d}},e.createElement("div",{className:"yt-rw-cta-left",style:{color:i}},e.createElement("span",{className:"yt-rw-coin"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"14",viewBox:"0 0 20 14",fill:"none"},e.createElement("path",{d:"M10.0613 1.18677C5.48004 1.18677 0.843506 2.61183 0.843506 5.33476V9.02187C0.843506 11.7448 5.48004 13.1699 10.0613 13.1699C14.6425 13.1699 19.279 11.7448 19.279 9.02187V5.33476C19.279 2.61183 14.6425 1.18677 10.0613 1.18677ZM2.68706 9.02187V7.9185C3.27086 8.24912 3.88905 8.51494 4.53061 8.71123V10.4451C3.32124 9.9713 2.68706 9.40717 2.68706 9.02187ZM13.7484 9.15829V10.9751C12.9492 11.1401 12.0274 11.2609 10.983 11.3051V9.46156C11.9107 9.42462 12.8347 9.32329 13.7484 9.15829ZM9.13949 11.306C8.21035 11.2704 7.28559 11.1601 6.37416 10.976V9.15921C7.25815 9.3196 8.19191 9.42376 9.13949 9.4634V11.306ZM15.5919 10.4451V8.71123C16.2336 8.51535 16.8519 8.24951 17.4355 7.9185V9.02187C17.4355 9.40717 16.8022 9.9713 15.5919 10.4451ZM10.0613 7.6392C5.28923 7.6392 2.68706 6.11735 2.68706 5.33476C2.68706 4.55217 5.28923 3.03032 10.0613 3.03032C14.8333 3.03032 17.4355 4.55217 17.4355 5.33476C17.4355 6.11735 14.8333 7.6392 10.0613 7.6392Z",fill:""!=i?i:"#21272A",strokeWidth:"0.5"})))," ","Ways to Redeem"),e.createElement("div",{className:"yt-rw-cta-right"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M13.4361 17.9852C13.4474 17.9965 13.7942 18.0835 14.2067 18.1783C14.6193 18.2731 14.9613 18.3362 14.9668 18.3186C14.9723 18.3009 15.015 18.0146 15.0617 17.6822C15.1554 17.0148 15.3825 16.2356 15.6251 15.7482C16.3812 14.2294 17.7379 13.2237 19.3834 12.9623L19.8024 12.8957L19.8024 12.2248L19.8024 11.5538L19.4227 11.49C16.9345 11.0726 15.3123 9.21214 15.0088 6.42796C14.989 6.24616 14.9653 6.09746 14.9562 6.09746C14.8723 6.09746 13.4818 6.43256 13.4555 6.45911C13.4365 6.4783 13.4506 6.64874 13.487 6.83779C13.8894 8.93118 15.0414 10.6346 16.5365 11.3469L16.8951 11.5177L9.52044 11.5311L4.85718 11.5396L4.85718 12.8975L9.53244 12.906L16.8897 12.9195L16.437 13.1488C15.2624 13.7439 14.3325 14.9112 13.7848 16.478C13.6288 16.9244 13.3933 17.942 13.4361 17.9852Z",fill:""!=i?i:"#21272A"})))))}_t("@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }\n@keyframes fadeout { from { opacity: 1 } to { opacity: 0 } }\n");function og({size:t=20,color:n="#000",thickness:r=2,centered:o=!1}){const a=e.createElement("div",{className:"yt-loader",style:{width:`${t}px`,height:`${t}px`,border:`${r}px solid rgba(0,0,0,0.15)`,borderTop:`${r}px solid ${n}`,borderRadius:"50%",animation:"yt-spin 0.8s linear infinite"}}," ");return o?e.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}},a):a}_t("@keyframes yt-spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n");const ag={body:{display:"flex",padding:"16px 12px",flexDirection:"column",alignItems:"flex-start",gap:8,flex:"1 0 0",alignSelf:"stretch",backgroundColor:"transparent",borderTopLeftRadius:20,borderTopRightRadius:20,WebkitOverflowScrolling:"touch",scrollbarWidth:"none"},footer:{paddingBottom:20,display:"flex",flexDirection:"column",gap:"11.23px",alignItems:"center"},footerText:{color:"#333",textAlign:"center",fontFamily:"Poppins",fontSize:9,fontWeight:400,lineHeight:"122%",paddingInline:16,paddingBottom:20,margin:0},redeemCard:{display:"flex",flexDirection:"column",alignItems:"flex-start",alignSelf:"stretch",borderRadius:8,overflow:"hidden",boxShadow:"none",backgroundColor:"rgba(140, 140, 140, 0.08)"},redeemCardHeader:{display:"flex",borderRadius:"8px 8px 0 0",padding:12,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",border:"1px solid #D9D9D9",background:"rgba(140, 140, 140, 0.02)",position:"relative",overflow:"hidden"},redeemCardHeaderLeft:{display:"flex",alignItems:"center",gap:8,flex:"1 0 0",position:"relative",zIndex:1},redeemCardIcon:{display:"flex",width:40,height:40,padding:8,flexDirection:"column",justifyContent:"center",alignItems:"center",gap:10,borderRadius:4,background:"rgba(137, 137, 137, 0.10)"},redeemCardTitleBox:{display:"flex",flexDirection:"column",alignItems:"start"},redeemCardTitle:{color:"#333",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:16,fontWeight:300,lineHeight:"142.4%",margin:0},redeemCardTitleSpan:{color:"#333",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:16,fontWeight:450,lineHeight:"142.4%"},redeemCardSubtitle:{color:"#666",fontFamily:'"General Sans", Poppins, sans-serif',fontSize:12,fontWeight:600,lineHeight:"142.4%",margin:0},cta:{display:"flex",padding:"7.016px 16.095px",alignItems:"flex-start",gap:"4.127px",borderRadius:8,background:"#262626",color:"#F2F2F2",textAlign:"center",fontFamily:"Poppins",fontSize:12,fontWeight:500,lineHeight:"142.4%",cursor:"pointer",border:0,position:"relative",zIndex:1,margin:0,width:"auto",height:"auto",minWidth:"auto",maxWidth:"none",boxSizing:"border-box",flexShrink:0,whiteSpace:"nowrap",verticalAlign:"middle",textTransform:"none",letterSpacing:"normal",appearance:"none",WebkitAppearance:"none"},redeemCardFooter:{borderRadius:"0 0 8px 8px",display:"flex",padding:"4px 12px",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",border:"1px solid #D9D9D9",borderTop:"none",background:"rgba(140, 140, 140, 0.12)"},redeemCardFooterText:{color:"#2C2C2C",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:10,fontWeight:450,lineHeight:"142.4%",margin:0},redeemCardFooterTextSpan:{color:"#2C2C2C",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:10,fontWeight:600,lineHeight:"142.4%"},wteBgIcon:{position:"absolute",right:0,top:"70%",transform:"translateY(-50%)",width:150,height:150,opacity:.1,pointerEvents:"none",zIndex:0,display:"flex",alignItems:"center",justifyContent:"center"}},ig={...ag,noCouponsFound:{paddingBlock:"40px",width:"100%",display:"flex",justifyContent:"center",margin:0},progressBlock:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",gap:14,padding:"20px 24px 18px",backgroundColor:"rgba(140, 140, 140, 0.06)",borderTop:"1px solid rgba(0, 0, 0, 0.06)",boxSizing:"border-box"},progressIcon:{display:"flex",alignItems:"center",justifyContent:"center",color:"#1F1F1F"},progressBar:{width:"100%",height:6,backgroundColor:"#C7C7C7",borderRadius:999,overflow:"hidden"},progressBarFill:{height:"100%",backgroundColor:"#1F1F1F",borderRadius:"inherit",transition:"width 220ms ease-out"},progressLabel:{color:"#1F1F1F",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:15,fontWeight:500,textAlign:"center"},successBlock:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",gap:6,padding:"22px 24px 14px",backgroundColor:"rgba(140, 140, 140, 0.06)",borderTop:"1px solid rgba(0, 0, 0, 0.06)",boxSizing:"border-box",position:"relative",zIndex:1},successBadge:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:6},successTitle:{color:"#1F1F1F",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:18,fontWeight:600,textAlign:"center",margin:0},successSubtitle:{color:"#4A4A4A",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:14,fontWeight:400,textAlign:"center",lineHeight:1.4,maxWidth:320,margin:0},successDivider:{width:"100%",height:1,backgroundColor:"#1F1F1F",marginTop:10},successApplied:{color:"#1F1F1F",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:13,fontWeight:500,paddingTop:6,margin:0},confetti:{position:"absolute",inset:0,pointerEvents:"none",zIndex:2},freebieProgressBar:{width:"100%",height:6,backgroundColor:"rgba(0, 0, 0, 0.10)",borderRadius:999,overflow:"hidden",marginTop:8},freebieProgressFill:{display:"block",height:"100%",backgroundColor:"#1F1F1F",borderRadius:"inherit",transition:"width 300ms ease-out"},freebieClaimCta:{display:"flex",padding:"10px 20px",justifyContent:"center",alignItems:"center",minWidth:84,borderRadius:10,background:"#1F1F1F",color:"#fff",fontFamily:"Poppins",fontSize:14,fontWeight:600,lineHeight:1,cursor:"pointer",border:0,whiteSpace:"nowrap",position:"relative",zIndex:1,margin:0,width:"auto",height:"auto",maxWidth:"none",boxSizing:"border-box",flexShrink:0,verticalAlign:"middle",textTransform:"none",letterSpacing:"normal",appearance:"none",WebkitAppearance:"none"},freebieClaimedIcon:{display:"flex",width:40,height:40,justifyContent:"center",alignItems:"center",borderRadius:8,background:"rgba(137, 137, 137, 0.10)",color:"#1F1F1F",flexShrink:0},freebieClaimedSubtitle:{color:"#2F9E44",fontFamily:'"General Sans", Poppins, sans-serif',fontSize:12,fontWeight:600,lineHeight:"142.4%",margin:0},freebieCodeBox:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:10,alignSelf:"stretch",boxSizing:"border-box",margin:"0 12px 12px",padding:"14px 16px",borderRadius:10,border:"1.5px dashed #2F9E44",background:"transparent",cursor:"pointer"},freebieCode:{color:"#1F1F1F",fontFamily:'"Circular Std", Poppins, monospace',fontSize:16,fontWeight:600,letterSpacing:"0.12em",margin:0},freebieCopy:{color:"#2F9E44",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:13,fontWeight:500,whiteSpace:"nowrap",margin:0}};_t("/* Only what inline styles can't express. Cross-component descendant rules\n live in styles/shared.css. */\n\n.yt-wtr-redeemCard_cta:disabled {\n background-color: #fff !important;\n color: #000 !important;\n box-shadow: none !important;\n cursor: default !important;\n}\n\n.yt-wtr-redeemCard_cta {\n transition: transform 150ms ease-out;\n}\n.yt-wtr-redeemCard_cta:hover:not(:disabled) {\n transform: scale(1.04) !important;\n}\n\n.yt-wtr-body::-webkit-scrollbar {\n width: 0;\n background: transparent;\n}\n");_t('.yt-wte-bgIcon > svg,\n.yt-wte-bgIcon > img {\n width: 100%;\n height: 100%;\n display: block;\n}\n\n/* Some host themes (e.g. Shopify Dawn) include a `div:empty { display: none }`\n rule that hides "visually empty" elements. The Ways-to-Redeem progress fill\n is an intentionally empty div (background + width only), so we explicitly\n override that rule for it. */\n.yt-wtr-progressBarFill:empty {\n display: block !important;\n}\n');const lg=e=>"INR"===e?"₹":e?`${e} `:"",sg=(e,t)=>e&&e>0?`min order ${lg(t)}${e.toLocaleString()}`:"no mov";function cg({couponList:r=[],freebies:a=[],couponHeading:i="",couponCode:l="",currencyCode:s,onCouponAvail:c,copyFunction:d=e=>{},themeSecondaryContrastColor:p="",themeSecondaryColor:m="",themeBackgroundColor:u="",setScreenType:g=e=>{},showCTA:f=!0,balanceCoins:y,ctaBorderRadius:x,brandRewardProgram:h,redemptionMovRequired:b,userRewardTier:w,brandRewardTiers:v}){const C=!!h?.redemptionStatus&&"percentage"===h?.redemptionMethod&&Number(h?.redemptionValue??0)>0,E=(()=>{const e=Number(b??NaN);if(Number.isFinite(e)&&e>0)return e;if(h?.redemptionMinimumOrderValueStatus&&Number(h?.redemptionMinimumOrderValue??0)>0)return Number(h.redemptionMinimumOrderValue);const t=Number(h?.redemptionMovRequired??0);return t>0?t:0})(),k=E>0,T=E,S=(r?.length??0)>0,[N,F]=t(l),[B,$]=t("idle"),[z,I]=t(null),[P,D]=t(0),[A,_]=t(null),[L,R]=t(null),[O,M]=t({}),[V,W]=t(null),[j,H]=t(!1),q=o(null);n(()=>()=>{q.current&&clearInterval(q.current)},[]),n(()=>{const e={};a.forEach(t=>{t.isActive&&t.discountCode&&(e[t.couponTemplate.couponTemplateId]=t.discountCode)}),M(t=>({...e,...t}))},[a]),n(()=>{"success"!==B&&!j||L||import("./confetti-f3502561.js").then(e=>R(e.default))},[B,j,L]);const U=async e=>{if("idle"!==B)return;I(e),$("loading"),D(0),q.current=setInterval(()=>{D(e=>Math.min(92,e+12*Math.random()+3))},220);const t=new Promise(e=>setTimeout(e,800));let n;try{const[r]=await Promise.all([c(e.couponTemplateId),t]);n=r?.discountCode}catch{await t}if(q.current&&clearInterval(q.current),q.current=null,n){try{await navigator.clipboard.writeText(n)}catch{}F(n),D(100),setTimeout(()=>$("success"),350)}else _("Failed to avail coupon"),$("idle"),I(null),D(0),setTimeout(()=>_(null),2e3)},Q="idle"!==B,Y=((e,t)=>e?e.discountPercentage>0?`${e.discountPercentage}% off`:e.discountValue>0?`${lg(t)}${e.discountValue}`:e.name:"")(z,s);return e.createElement("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",background:"transparent",overflow:"hidden"}},("success"===B||j)&&L&&e.createElement("div",{className:"yt-wtr-confetti",style:ig.confetti,"aria-hidden":"true"},e.createElement(Dt,{animationData:L,loop:!1})),e.createElement("div",{className:"yt-wtr-body",style:ig.body},C&&e.createElement(mg,{redempRate:Number(h.redemptionValue),coinName:h?.coinName??"coins",movEnabled:k,movValue:T,currencyCode:s}),a.map((t,n)=>{const{couponTemplate:r,product:o}=t,a=O[r.couponTemplateId],i=function(e,t,n,r,o,a){const i=e.rewardTierIds??[],l="tier"===e.restrictTo&&i.length>0,s=Number(e.pointsRequired??0),c=s>0,d=l?"tier":c?"points":"none";if(o)return{state:"claimed",gating:d,current:0,target:null,unit:"",code:o};let p,m=!0,u=null;if(l){const e=t?.find(e=>i.includes(e.id));p=e?.name,u=e?function(e,t,n){if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod)return{current:Number(t?.currentLtv??0),target:null!=e.minimumOrderValueRequired?Number(e.minimumOrderValueRequired):null,unit:"",pricePrefix:lg(n)};if("loyalty_points"===e.rewardTierCriteria)return{current:Number(t?.currentPoints??0),target:null!=e.minimumLoyaltyPointsRequired?Number(e.minimumLoyaltyPointsRequired):null,unit:"points"};return{current:Number(t?.totalOrders??0),target:null!=e.minimumOrderCountRequired?Number(e.minimumOrderCountRequired):null,unit:"orders"}}(e,n,a):{current:0,target:null,unit:"orders"},m=!e||null==u.target||u.current>=u.target}const g=!c||r>=s;if(m&&g)return{state:"eligible",gating:d,tierName:p,current:0,target:null,unit:""};if(l&&!m&&u)return{state:"locked",gating:"tier",tierName:p,current:u.current,target:u.target,unit:u.unit,pricePrefix:u.pricePrefix};return{state:"locked",gating:"points",current:r,target:s,unit:"points"}}(r,v,w,Number(y??0),a,s);return e.createElement(xg,{key:r.couponTemplateId??n,data:r,product:o,view:i,movLabel:gg(r,s),isClaiming:V===r.couponTemplateId,onClaim:()=>(async e=>{if(null===V){W(e);try{const t=await c(e),n=t?.discountCode;if(n){M(t=>({...t,[e]:n})),H(!0),setTimeout(()=>H(!1),2500);try{await navigator.clipboard.writeText(n)}catch{}}else _("Failed to claim freebie"),setTimeout(()=>_(null),2e3)}catch{_("Failed to claim freebie"),setTimeout(()=>_(null),2e3)}finally{W(null)}}})(r.couponTemplateId),onCopy:()=>(e=>{if(e){d(e);try{navigator.clipboard.writeText(e)}catch{}_("Coupon code copied"),setTimeout(()=>_(null),1500)}})(a)})}),S?r?.map((t,n)=>e.createElement(ug,{key:t.couponTemplateId??n,data:t,onAvail:U,isAvailing:z?.couponTemplateId===t.couponTemplateId&&"loading"===B,disabled:Q,balanceCoins:y,currencyCode:s})):0===a.length?!C&&e.createElement("p",{className:"yt-wtr-noCouponsFound",style:ig.noCouponsFound},"No Coupons Found"):null),e.createElement("div",{style:{bottom:"16px",display:"flex",flexDirection:"column",gap:"11.23px",alignItems:"center"}},"loading"===B&&e.createElement("div",{className:"yt-wtr-progressBlock",style:ig.progressBlock,"aria-live":"polite"},e.createElement("div",{className:"yt-wtr-progressIcon",style:ig.progressIcon},P<50?e.createElement(oe,{size:36}):e.createElement(gt,{size:36})),e.createElement("div",{className:"yt-wtr-progressBar",style:ig.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(P)},e.createElement("div",{className:"yt-wtr-progressBarFill",style:{...ig.progressBarFill,width:`${P}%`}})),e.createElement("div",{className:"yt-wtr-progressLabel",style:ig.progressLabel},P<50?`availing ${Y} off coupon...`:"applying your reward...")),"success"===B&&e.createElement("div",{className:"yt-wtr-successBlock",style:ig.successBlock,"aria-live":"polite"},e.createElement("div",{className:"yt-wtr-successBadge",style:ig.successBadge},e.createElement(dg,null)),e.createElement("h3",{className:"yt-wtr-successTitle",style:ig.successTitle},"🎉 ",Y," availed!"),e.createElement("p",{className:"yt-wtr-successSubtitle",style:ig.successSubtitle},"Your reward will apply automatically to eligible items in your cart."),e.createElement("div",{className:"yt-wtr-successDivider",style:ig.successDivider}),e.createElement("p",{className:"yt-wtr-successApplied",style:ig.successApplied},"coupon applied")),"idle"===B&&N&&N?.length>0&&e.createElement("div",{style:{padding:"10px 8px 8px 8px"}},e.createElement(rg,{setScreenType:g,themeSecondaryColor:m,themeSecondaryContrastColor:p,borderRadius:x??"12px",showCTA:!1,couponCode:N,couponHeading:i,copyFunction:d})),e.createElement("p",{className:"yt-wtr-footerText",style:ig.footerText},"stay signed-in with the account you use for checking out")),A&&e.createElement(ng,{displayText:A,background:"#000000",textColor:"#ffffff"}))}function dg(){return e.createElement("svg",{width:"56",height:"56",viewBox:"0 0 56 56",fill:"none","aria-hidden":"true"},e.createElement("circle",{cx:"28",cy:"28",r:"22",fill:"#1F1F1F"}),e.createElement("path",{d:"M19 28.5l6 6 12-13",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}))}function pg(){return e.createElement("span",{className:"yt-wte-bgIcon",style:ig.wteBgIcon,"aria-hidden":!0},e.createElement("svg",{width:"24",height:"15",viewBox:"0 0 24 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M0.766541 1.05866C0.948224 0.876972 1.19464 0.774902 1.45158 0.774902H7.84561V2.71249H7.26433V4.65008H7.84561V6.58766H7.26433V8.52525H7.84561V10.4628H7.26433V12.4004H7.84561V14.338H1.45158C1.19464 14.338 0.948224 14.2359 0.766541 14.0543C0.584857 13.8726 0.482788 13.6262 0.482788 13.3692V9.49404H1.45158C1.73364 9.49408 2.01231 9.43256 2.26814 9.31378C2.52398 9.19501 2.75081 9.02183 2.93281 8.80635C3.11481 8.59086 3.24759 8.33825 3.3219 8.06616C3.3962 7.79406 3.41023 7.50902 3.36301 7.23094C3.208 6.27862 2.31284 5.61887 1.34792 5.61887H0.482788V1.7437C0.482788 1.48676 0.584857 1.24034 0.766541 1.05866Z",fill:"#4F486A"}),e.createElement("path",{d:"M8.53345 1.58569C8.53345 1.38775 8.61238 1.19791 8.75288 1.05795C8.89338 0.917986 9.08395 0.839355 9.28265 0.839355H11.1815H22.7682C22.9669 0.839355 23.1575 0.917986 23.298 1.05795C23.4385 1.19791 23.5174 1.38775 23.5174 1.58569V5.6905C23.0207 5.6905 22.5443 5.88708 22.193 6.23699C21.8418 6.5869 21.6444 7.06148 21.6444 7.55632C21.6444 8.05117 21.8418 8.52575 22.193 8.87566C22.5443 9.22557 23.0207 9.42215 23.5174 9.42215V13.527C23.5174 13.7249 23.4385 13.9147 23.298 14.0547C23.1575 14.1947 22.9669 14.2733 22.7682 14.2733H11.2461H9.28265C9.08395 14.2733 8.89338 14.1947 8.75288 14.0547C8.61238 13.9147 8.53345 13.7249 8.53345 13.527V1.58569ZM13.0923 12.7806C13.1695 12.562 13.313 12.3726 13.5029 12.2386C13.6928 12.1046 13.9197 12.0326 14.1524 12.0326C14.3851 12.0326 14.6121 12.1046 14.802 12.2386C14.9919 12.3726 15.1353 12.562 15.2126 12.7806H22.019V10.5655C21.4562 10.2877 20.9825 9.85871 20.6514 9.32702C20.3202 8.79533 20.1447 8.18205 20.1447 7.55632C20.1447 6.9306 20.3202 6.31732 20.6514 5.78563C20.9825 5.25393 21.4562 4.82498 22.019 4.54712V2.33202H15.2126C15.1353 2.55069 14.9919 2.74009 14.802 2.87407C14.6121 3.00805 14.3851 3.08001 14.1524 3.08001C13.9197 3.08001 13.6928 3.00805 13.5029 2.87407C13.313 2.74009 13.1695 2.55069 13.0923 2.33202H11.2461H11.1815H10.0318V12.7806H13.0923ZM14.1524 6.80999C13.8544 6.80999 13.5685 6.69205 13.3578 6.4821C13.147 6.27216 13.0286 5.98741 13.0286 5.6905C13.0286 5.39359 13.147 5.10884 13.3578 4.8989C13.5685 4.68895 13.8544 4.571 14.1524 4.571C14.4505 4.571 14.7363 4.68895 14.9471 4.8989C15.1578 5.10884 15.2762 5.39359 15.2762 5.6905C15.2762 5.98741 15.1578 6.27216 14.9471 6.4821C14.7363 6.69205 14.4505 6.80999 14.1524 6.80999ZM14.1524 10.5416C13.8544 10.5416 13.5685 10.4237 13.3578 10.2138C13.147 10.0038 13.0286 9.71906 13.0286 9.42215C13.0286 9.12524 13.147 8.84049 13.3578 8.63055C13.5685 8.4206 13.8544 8.30265 14.1524 8.30265C14.4505 8.30265 14.7363 8.4206 14.9471 8.63055C15.1578 8.84049 15.2762 9.12524 15.2762 9.42215C15.2762 9.71906 15.1578 10.0038 14.9471 10.2138C14.7363 10.4237 14.4505 10.5416 14.1524 10.5416Z",fill:"#4D4D4D"})))}function mg({redempRate:t,coinName:n,movEnabled:r,movValue:o,currencyCode:a}){const i=r&&o>0?`min order ${lg(a)}${o}`:"no mov";return e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:ig.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...ig.redeemCardHeader,borderRadius:"8px 8px 0 0"}},e.createElement(pg,null),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:ig.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:ig.redeemCardIcon},e.createElement(ge,{size:24,color:"#000"})),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:ig.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:ig.redeemCardTitle},"Get upto"," ",e.createElement("span",{style:ig.redeemCardTitleSpan},t,"% off")),e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:ig.redeemCardSubtitle},"avail ",n," in cart • ",i)))),e.createElement("div",{className:"yt-wtr-redeemCard_footer yt-wtr-redeemCard_footer--zigzag",style:{...ig.redeemCardFooter,padding:"14px 14px",backgroundColor:"rgba(0, 0, 0, 0.03)",backgroundImage:"linear-gradient(rgba(255,255,255,0.65), rgba(255,255,255,0.65)), url('https://r2.yourtoken.io/loyalty-widget-v2/wavy.svg')"}},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:ig.redeemCardFooterText},"Use reward balance while checking out using the Avail option.")))}function ug({data:t,onAvail:n,isAvailing:r,disabled:o,balanceCoins:a=0,currencyCode:i}){const l=!a||t?.pointsRequired>a,s=a<t?.pointsRequired;return e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:ig.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...ig.redeemCardHeader,borderRadius:s?"8px 8px 0 0":8}},e.createElement(pg,null),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:ig.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:ig.redeemCardIcon},e.createElement("svg",{width:"24",height:"15",viewBox:"0 0 24 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M0.766541 1.05866C0.948224 0.876972 1.19464 0.774902 1.45158 0.774902H7.84561V2.71249H7.26433V4.65008H7.84561V6.58766H7.26433V8.52525H7.84561V10.4628H7.26433V12.4004H7.84561V14.338H1.45158C1.19464 14.338 0.948224 14.2359 0.766541 14.0543C0.584857 13.8726 0.482788 13.6262 0.482788 13.3692V9.49404H1.45158C1.73364 9.49408 2.01231 9.43256 2.26814 9.31378C2.52398 9.19501 2.75081 9.02183 2.93281 8.80635C3.11481 8.59086 3.24759 8.33825 3.3219 8.06616C3.3962 7.79406 3.41023 7.50902 3.36301 7.23094C3.208 6.27862 2.31284 5.61887 1.34792 5.61887H0.482788V1.7437C0.482788 1.48676 0.584857 1.24034 0.766541 1.05866Z",fill:"#4F486A"}),e.createElement("path",{d:"M8.53345 1.58569C8.53345 1.38775 8.61238 1.19791 8.75288 1.05795C8.89338 0.917986 9.08395 0.839355 9.28265 0.839355H11.1815H22.7682C22.9669 0.839355 23.1575 0.917986 23.298 1.05795C23.4385 1.19791 23.5174 1.38775 23.5174 1.58569V5.6905C23.0207 5.6905 22.5443 5.88708 22.193 6.23699C21.8418 6.5869 21.6444 7.06148 21.6444 7.55632C21.6444 8.05117 21.8418 8.52575 22.193 8.87566C22.5443 9.22557 23.0207 9.42215 23.5174 9.42215V13.527C23.5174 13.7249 23.4385 13.9147 23.298 14.0547C23.1575 14.1947 22.9669 14.2733 22.7682 14.2733H11.2461H9.28265C9.08395 14.2733 8.89338 14.1947 8.75288 14.0547C8.61238 13.9147 8.53345 13.7249 8.53345 13.527V1.58569ZM13.0923 12.7806C13.1695 12.562 13.313 12.3726 13.5029 12.2386C13.6928 12.1046 13.9197 12.0326 14.1524 12.0326C14.3851 12.0326 14.6121 12.1046 14.802 12.2386C14.9919 12.3726 15.1353 12.562 15.2126 12.7806H22.019V10.5655C21.4562 10.2877 20.9825 9.85871 20.6514 9.32702C20.3202 8.79533 20.1447 8.18205 20.1447 7.55632C20.1447 6.9306 20.3202 6.31732 20.6514 5.78563C20.9825 5.25393 21.4562 4.82498 22.019 4.54712V2.33202H15.2126C15.1353 2.55069 14.9919 2.74009 14.802 2.87407C14.6121 3.00805 14.3851 3.08001 14.1524 3.08001C13.9197 3.08001 13.6928 3.00805 13.5029 2.87407C13.313 2.74009 13.1695 2.55069 13.0923 2.33202H11.2461H11.1815H10.0318V12.7806H13.0923ZM14.1524 6.80999C13.8544 6.80999 13.5685 6.69205 13.3578 6.4821C13.147 6.27216 13.0286 5.98741 13.0286 5.6905C13.0286 5.39359 13.147 5.10884 13.3578 4.8989C13.5685 4.68895 13.8544 4.571 14.1524 4.571C14.4505 4.571 14.7363 4.68895 14.9471 4.8989C15.1578 5.10884 15.2762 5.39359 15.2762 5.6905C15.2762 5.98741 15.1578 6.27216 14.9471 6.4821C14.7363 6.69205 14.4505 6.80999 14.1524 6.80999ZM14.1524 10.5416C13.8544 10.5416 13.5685 10.4237 13.3578 10.2138C13.147 10.0038 13.0286 9.71906 13.0286 9.42215C13.0286 9.12524 13.147 8.84049 13.3578 8.63055C13.5685 8.4206 13.8544 8.30265 14.1524 8.30265C14.4505 8.30265 14.7363 8.4206 14.9471 8.63055C15.1578 8.84049 15.2762 9.12524 15.2762 9.42215C15.2762 9.71906 15.1578 10.0038 14.9471 10.2138C14.7363 10.4237 14.4505 10.5416 14.1524 10.5416Z",fill:"#4D4D4D"}))),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:ig.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:ig.redeemCardTitle},e.createElement("span",{style:ig.redeemCardTitleSpan},t?.name)),e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:ig.redeemCardSubtitle},t?.pointsRequired," Points Required •"," ",sg(t?.minimumOrderValue,i)))),e.createElement("button",{onClick:()=>n(t),disabled:o||l,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:ig.cta},r?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Avail")),s&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:ig.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:ig.redeemCardFooterText},e.createElement("span",{style:ig.redeemCardFooterTextSpan},t?.pointsRequired-a," coins "),"more required")))}function gg(e,t){return sg(e.minimumOrderValue,t)}function fg({product:t}){return t?.image?e.createElement("span",{className:"yt-wtr-freebieCard_icon yt-wtr-freebieCard_icon--product",style:ig.redeemCardIcon,"aria-hidden":!0},e.createElement("img",{src:t.image,alt:"",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"inherit",display:"block"}})):e.createElement("span",{className:"yt-wtr-freebieCard_icon",style:ig.redeemCardIcon,"aria-hidden":!0},e.createElement(ft,{size:22,color:"#1F1F1F"}))}function yg(){return e.createElement("span",{className:"yt-wtr-freebieCard_icon yt-wtr-freebieCard_icon--claimed",style:ig.freebieClaimedIcon,"aria-hidden":!0},e.createElement("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M5 12.5l4.5 4.5L19 7",stroke:"#1F1F1F",strokeWidth:"2.6",strokeLinecap:"round",strokeLinejoin:"round"})))}function xg({data:t,product:n,view:r,movLabel:o,isClaiming:a,onClaim:i,onCopy:l}){const{state:s,gating:c,tierName:d,current:p,target:m,unit:u,pricePrefix:g,code:f}=r;if("claimed"===s)return e.createElement("div",{className:"yt-wtr-freebieCard yt-wtr-freebieCard--claimed",style:ig.redeemCard},e.createElement("div",{className:"yt-wtr-freebieCard_header",style:{...ig.redeemCardHeader,border:"none",background:"transparent"}},e.createElement("div",{style:ig.redeemCardHeaderLeft},e.createElement(yg,null),e.createElement("div",{style:ig.redeemCardTitleBox},e.createElement("p",{style:ig.redeemCardTitle},e.createElement("span",{style:ig.redeemCardTitleSpan},t?.name)),e.createElement("p",{style:ig.freebieClaimedSubtitle},"Claimed · apply discount with item added in cart")))),e.createElement("div",{className:"yt-wtr-freebieCard_codeBox",style:ig.freebieCodeBox,role:"button",tabIndex:0,onClick:l,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||l()}},e.createElement("span",{style:ig.freebieCode},f),e.createElement("span",{style:ig.freebieCopy},"Tap to copy")));const y="locked"===s,x=y&&"points"===c,h=y&&"tier"===c,b=m&&m>0?Math.min(100,Math.max(0,Math.round(p/m*100))):0;return e.createElement("div",{className:"yt-wtr-freebieCard yt-wtr-redeemCard--flat",style:ig.redeemCard},e.createElement("div",{className:"yt-wtr-freebieCard_header",style:{...ig.redeemCardHeader,borderRadius:d?"8px 8px 0 0":8}},e.createElement("div",{style:ig.redeemCardHeaderLeft},e.createElement(fg,{product:n}),e.createElement("div",{style:{...ig.redeemCardTitleBox,flex:"1 0 0"}},e.createElement("p",{style:ig.redeemCardTitle},e.createElement("span",{style:ig.redeemCardTitleSpan},t?.name)," ",h?`unlock at ${d??""} tier`:x?"":"unlocked"),h?e.createElement(e.Fragment,null,e.createElement("p",{style:ig.redeemCardSubtitle},g??"",p.toLocaleString()," of"," ",g??"",null!=m?m.toLocaleString():"-",u?` ${u}`:""),e.createElement("div",{className:"yt-wtr-freebieCard_progressBar",style:ig.freebieProgressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":m??void 0,"aria-valuenow":p},e.createElement("div",{style:{...ig.freebieProgressFill,width:`${b}%`}}))):x?e.createElement("p",{style:ig.redeemCardSubtitle},m??0," Points Required • ",o):e.createElement("p",{style:ig.redeemCardSubtitle},o))),!h&&e.createElement("button",{onClick:i,disabled:a||x,className:"yt-wtr-freebieCard_cta",style:ig.freebieClaimCta},a?e.createElement(og,{size:16,color:"#fff",centered:!0}):"Claim")),d&&e.createElement("div",{className:"yt-wtr-freebieCard_footer",style:ig.redeemCardFooter},e.createElement("p",{style:ig.redeemCardFooterText},"One-time claim on achieving ",d.toUpperCase()," tier")))}const hg={wrap:{display:"flex",flexDirection:"column",gap:16,minHeight:"100%"},head:{padding:20,display:"flex",flexDirection:"column",gap:20},titleBlock:{display:"flex",flexDirection:"column",gap:4,paddingBottom:25,borderBottom:"1px solid #878787"},eyebrow:{color:"#666",fontSize:12,margin:0},balance:{color:"#24272C",fontFamily:"Inter",fontSize:64,fontWeight:600,lineHeight:"80%",letterSpacing:"-4.543px",margin:0},currentTier:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:2},validity:{color:"#000",fontFamily:"Inter",fontSize:12,fontWeight:400,lineHeight:"117%",margin:0},validitySpan:{color:"#000",fontFamily:"Inter",fontSize:12,fontWeight:400,lineHeight:"117%"},title:{color:"#000",fontFamily:"Inter",fontSize:18,fontWeight:800,lineHeight:"117%",letterSpacing:"-0.36px",margin:0},sub:{color:"#000",textAlign:"right",fontFamily:"Inter",fontSize:12,fontWeight:400,lineHeight:"117%",alignSelf:"stretch",margin:0},progress:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:8},progressTitle:{color:"#000",fontFamily:"Inter",fontSize:12,fontWeight:400,lineHeight:"117%",margin:0},progressDots:{display:"flex",gap:9,alignItems:"center"},dot:{width:33,height:33,borderRadius:"50%",border:"2px solid #000",background:"#fff"},dotFilled:{background:"#2E4F7C",borderColor:"#2E4F7C"},cards:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:5,borderTop:"1px solid rgba(135, 135, 135, 0.50)",background:"#E6E6E6"},card:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:8,alignSelf:"stretch",border:"1px solid rgba(135, 135, 135, 0.50)"},tier1:{background:"#FFF"},tier2:{background:"#EEE"},tier3:{background:"#DBDBDB"},cardHead:{color:"#000",fontFamily:"Poppins",fontSize:16,fontWeight:400,lineHeight:"117%",letterSpacing:"-0.32px"},metrics:{display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:8,alignItems:"center"},metric:{display:"flex",flexDirection:"column",justifyContent:"center"},metricBold:{color:"#000",fontFamily:"Poppins",fontSize:24,fontWeight:400,lineHeight:"117%",letterSpacing:"-0.48px"},metricSpan:{color:"#000",fontFamily:"Poppins",fontSize:12,fontWeight:400,lineHeight:"117%",letterSpacing:"-0.24px"},note:{marginTop:"auto",position:"sticky",bottom:0,padding:"6px 0",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",alignSelf:"stretch",background:"rgba(135, 135, 135, 0.10)",backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",color:"#000",textAlign:"center",fontFamily:"Poppins",fontSize:9,fontWeight:400,lineHeight:"122%",zIndex:2}},bg=[hg.tier1,hg.tier2,hg.tier3],wg=e=>bg[e%3];function vg(e){if(null==e||""===e)return"-";const t=Number(e);return Number.isNaN(t)?String(e):t.toLocaleString()}function Cg(e){if(null==e||""===e)return null;const t=Number(e);return Number.isNaN(t)?null:t}function Eg({brandRewardTiers:t,balanceCoins:n,userRewardTier:r,currencyCode:o}){const a=t?.filter(e=>!1!==e.widgetVisibility)??[],i=r?.currentTier,l=r?.nextTier,s=function(e,t,n){if(!e)return null;const r="INR"===n?"₹":n?`${n} `:"";if("ltv"===e.rewardTierCriteria&&"order_count"===e.purchaseValueMethod){const n=Cg(t?.totalOrders)??0,r=Cg(e.minimumOrderCountRequired);return{current:n,target:r,currentText:vg(n),targetText:vg(r),unit:"orders"}}if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod){const n=Cg(t?.currentLtv)??0,o=Cg(e.minimumOrderValueRequired),a=vg(n),i=vg(o);return{current:n,target:o,currentText:"-"===a?a:`${r}${a}`,targetText:"-"===i?i:`${r}${i}`,unit:""}}if("loyalty_points"===e.rewardTierCriteria){const n=Cg(t?.currentPoints)??0,r=Cg(e.minimumLoyaltyPointsRequired);return{current:n,target:r,currentText:vg(n),targetText:vg(r),unit:"points"}}return null}(l,r,o),c=s?.current,d=s?.target,p=null!=c&&null!=d&&d>0?Math.min(1,Math.max(0,c/d)):0,m=Math.floor(6*p),u=new Date;u.setDate(u.getDate()+(i?.expiresInDays??0));const g=u.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"});return e.createElement("div",{className:"yt-vip-wrap",style:hg.wrap},e.createElement("div",{className:"yt-vip-head",style:hg.head},e.createElement("div",{className:"yt-vip-titleBlock",style:hg.titleBlock},e.createElement("p",{className:"yt-vip-eyebrow",style:hg.eyebrow},"Current Balance"),e.createElement("p",{className:"yt-vip-balance",style:hg.balance},vg(n))),e.createElement("div",{className:"yt-vip-current-tier",style:hg.currentTier},i&&e.createElement("p",{className:"yt-vip-validity",style:hg.validity},"Current Tier"," ",e.createElement("span",{style:hg.validitySpan},"Valid till ",g)),i&&e.createElement("h2",{className:"yt-vip-title",style:hg.title},i.name)),e.createElement("div",{className:"yt-vip-progress",style:hg.progress},e.createElement("p",{className:"yt-vip-progressTitle",style:hg.progressTitle},"Your Progress"),e.createElement("div",{className:"yt-vip-progressDots",style:hg.progressDots},Array.from({length:6}).map((t,n)=>e.createElement("span",{key:n,className:"yt-vip-dot "+(n<m?"yt-is-filled":""),style:{...hg.dot,...n<m?hg.dotFilled:null}}))),e.createElement("p",{className:"yt-vip-sub",style:hg.sub},null!=c&&null!=d&&s?`${s.currentText} / ${s.targetText}${s.unit?` ${s.unit}`:""} for next tier`:"Next tier progress unavailable"))),e.createElement("div",{className:"yt-vip-cards",style:hg.cards},a.map((t,n)=>{const r=Array.isArray(t.catalogDealsProducts)&&t.catalogDealsProducts.length>0,a=function(e,t){const n="INR"===t?"₹":t?`${t} `:"";if("ltv"===e.rewardTierCriteria&&"order_count"===e.purchaseValueMethod)return{value:vg(e.minimumOrderCountRequired),label:"Orders Required"};if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod){const t=vg(e.minimumOrderValueRequired);return{value:"-"===t?t:`${n}${t}`,label:"Order Value Required"}}return"loyalty_points"===e.rewardTierCriteria?{value:vg(e.minimumLoyaltyPointsRequired),label:"Points Required"}:{value:"-",label:"Required"}}(t,o);return e.createElement("div",{key:t.id,className:"yt-vip-card yt-tier"+(n%3+1),style:{...hg.card,...wg(n),...t.tierThemeColor?{background:t.tierThemeColor}:null}},e.createElement("div",{className:"yt-vip-cardHead",style:hg.cardHead},t.name),e.createElement("div",{className:"yt-vip-metrics",style:hg.metrics},e.createElement("div",{className:"yt-vip-metric",style:hg.metric},e.createElement("b",{style:hg.metricBold},vg(t.rewardMultiplier),"x"),e.createElement("span",{style:hg.metricSpan},"Rewards")),e.createElement("div",{className:"yt-vip-metric",style:hg.metric},e.createElement("b",{style:hg.metricBold},vg(t.redemptionMultiplier),"x"),e.createElement("span",{style:hg.metricSpan},"Redemption")),e.createElement("div",{className:"yt-vip-metric",style:hg.metric},e.createElement("b",{style:hg.metricBold},a.value),e.createElement("span",{style:hg.metricSpan},a.label)),r&&e.createElement("div",{className:"yt-vip-metric",style:{...hg.metric,justifyContent:"end",height:"100%"}},e.createElement("span",{style:hg.metricSpan},"+ Special Deals"))))})),e.createElement("div",{className:"yt-vip-note",style:hg.note},"stay signed-in with the account you use for checking out"))}_t(".yt-dob-btn-primary:disabled {\n opacity: 0.5 !important;\n cursor: not-allowed !important;\n}\n\n.yt-dob-btn-primary,\n.yt-dob-btn-secondary {\n transition: background 220ms ease-out, background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out;\n}\n.yt-dob-btn-primary:hover:not(:disabled) {\n background: #fff !important;\n background-color: #fff !important;\n color: #1F1F1F !important;\n border: 1px solid #1F1F1F !important;\n}\n.yt-dob-btn-secondary:hover {\n background: #1F1F1F !important;\n background-color: #1F1F1F !important;\n color: #fff !important;\n border-color: #1F1F1F !important;\n}\n");const kg={modalBackdrop:{position:"fixed",inset:0,background:"rgba(0, 0, 0, 0.45)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999},modal:{width:"90%",maxWidth:360,background:"#fff",borderRadius:14,padding:20,boxShadow:"0 20px 40px rgba(0, 0, 0, 0.2)"},modalTitle:{fontSize:18,fontWeight:400,marginBottom:16},dateInput:{width:"100%",padding:"10px 12px",fontSize:14,borderRadius:8,border:"1px solid #ddd",marginBottom:20,boxSizing:"border-box"},error:{margin:"-12px 0 16px",fontSize:13,lineHeight:1.3,color:"#D14343"},modalActions:{display:"flex",gap:12,justifyContent:"flex-end"},btnPrimary:{padding:"8px 14px",borderRadius:8,border:"none",background:"#000",color:"#fff",cursor:"pointer"},btnSecondary:{padding:"8px 14px",borderRadius:8,border:"1px solid #ccc",background:"#fff",cursor:"pointer"},availBtn:{padding:"10px 16px",borderRadius:8,border:"none",background:"#000",color:"#fff",cursor:"pointer",fontWeight:500}};function Tg({userData:t,ctaContrastColor:n,ctaPrimaryColor:r,currencyCode:o,activityRewards:a,onBirthdayUpdate:i,onSocialClick:l,onFeedbackRewardClick:s,isLoading:c,brandRewardProgram:d}){const p=d?.coinName??"coins",m=a?.creditOnActivitiesProperties?.referralRewardConfig,u="ways_to_earn"===m?.campaignVisibility||"both"===m?.campaignVisibility,g=Bg(m?.referrerReward,p,o),f=Bg(m?.refereeReward,p,o),y=!!m?.enabled&&u&&(!!m?.referrerReward?.enabled||!!m?.refereeReward?.enabled);return e.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",background:"transparent"}},e.createElement("div",{className:"yt-wtr-body",style:ag.body},a?.creditOnActivitiesProperties?.birthdayReward?.status&&a?.creditOnActivitiesProperties?.birthdayReward?.widgetVisibility&&Number(a?.creditOnBirthdayValue??0)>0&&e.createElement(Dg,{ctaContrastColor:n,ctaPrimaryColor:r,initializing:!t,coins:Number(a.creditOnBirthdayValue??0),type:a?.creditOnActivitiesProperties?.birthdayReward?.type,coinName:p,title:a?.creditOnActivitiesProperties?.birthdayReward?.offerTitle?.trim()?a.creditOnActivitiesProperties.birthdayReward.offerTitle:"on adding your birth date",icon:Sg(a?.creditOnActivitiesProperties?.birthdayReward?.icon,e.createElement(fe,{size:28,color:"#000"})),activityRewards:a,userData:t,onBirthdayUpdate:i}),d?.programStatus&&d?.programVisibility&&Number(d?.orderCreditValue??0)>0&&e.createElement(Ig,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Sg(d?.programIcon,e.createElement(ge,{size:28,color:"#000"})),coins:d.orderCreditValue,type:d?.orderCreditType,coinName:p,title:d?.programTitle?.trim()?d.programTitle:[{label:"Order Placed",value:"ORDER_PLACED"},{label:"Order Paid",value:"ORDER_PAID"},{label:"Order Fulfilled",value:"ORDER_FULFILLED"},{label:"Order Delivered",value:"ORDER_DELIVERED"},{label:"Order Paid and Delivered",value:"ORDER_PAID_AND_DELIVERED"},{label:"Order Paid and Fulfilled",value:"ORDER_PAID_AND_FULFILLED"}].find(e=>e.value===d.orderCreditCriteria)?.label??d.orderCreditCriteria,showAvail:!1,onCouponAvail:()=>{}}),a?.creditOnActivitiesProperties?.signUpReward?.status&&a?.creditOnActivitiesProperties?.signUpReward?.widgetVisibility&&Number(a?.creditOnSignupValue??0)>0&&e.createElement(Ig,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Sg(a?.creditOnActivitiesProperties?.signUpReward?.icon,e.createElement(v,{size:28,color:"#000"})),coins:Number(a.creditOnSignupValue??0),coinName:p,title:a?.creditOnActivitiesProperties?.signUpReward?.offerTitle?.trim()?a.creditOnActivitiesProperties.signUpReward.offerTitle:"on sign up",showAvail:!1,onCouponAvail:()=>{}}),a?.creditOnActivitiesProperties?.firstOrderReward?.status&&a?.creditOnActivitiesProperties?.firstOrderReward?.widgetVisibility&&Number(a?.creditOnFirstOrderValue??0)>0&&e.createElement(Ig,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Sg(a?.creditOnActivitiesProperties?.firstOrderReward?.icon,e.createElement(ge,{size:28,color:"#000"})),coins:Number(a.creditOnFirstOrderValue??0),type:a?.creditOnActivitiesProperties?.firstOrderReward?.type,coinName:p,title:a?.creditOnActivitiesProperties?.firstOrderReward?.offerTitle?.trim()?a.creditOnActivitiesProperties.firstOrderReward.offerTitle:"on your first order",showAvail:!1,onCouponAvail:()=>{}}),a?.creditOnActivitiesProperties?.secondOrderReward?.status&&a?.creditOnActivitiesProperties?.secondOrderReward?.widgetVisibility&&Number(a?.creditOnSecondOrderValue??0)>0&&e.createElement(Ig,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Sg(a?.creditOnActivitiesProperties?.secondOrderReward?.icon,e.createElement(ge,{size:28,color:"#000"})),coins:Number(a.creditOnSecondOrderValue??0),type:a?.creditOnActivitiesProperties?.secondOrderReward?.type,coinName:p,title:"on your second order",showAvail:!1,onCouponAvail:()=>{}}),a?.creditOnActivitiesProperties?.feedbackReward?.status&&a?.creditOnActivitiesProperties?.feedbackReward?.widgetVisibility&&(Number(a?.creditOnFeedbackValue??0)>0||Number(a?.creditOnImageFeedbackValue??0)>0)&&(()=>{const o=a.creditOnActivitiesProperties.feedbackReward,i=Number(a.creditOnFeedbackValue??0),l=Number(a.creditOnImageFeedbackValue??0),c=Sg(o.icon,e.createElement(Ae,{size:28,color:"#000"})),d=o.url?.trim(),m=i>0,u=m?i:l,g=m?"feedback":"image_feedback",f=m?"for a review":"for an image review",y=o.offerTitle?.trim()?o.offerTitle:f,x=m&&l>0?`Earn ${l} ${p} for image review`:void 0;return d?e.createElement(Pg,{ctaContrastColor:n,ctaPrimaryColor:r,active:!0,initializing:!t,url:d,type:g,icon:c,coins:u,coinName:p,title:y,subcopy:x,onCouponAvail:async e=>s?.(e,g)??!1}):e.createElement(Ig,{ctaContrastColor:n,ctaPrimaryColor:r,icon:c,coins:u,coinName:p,title:y,subcopy:x,showAvail:!1,onCouponAvail:()=>{}})})(),y&&e.createElement(Ig,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Sg(m?.offerIcon,e.createElement(C,{size:28,color:"#000"})),coins:0,coinName:p,title:"",showAvail:!1,onCouponAvail:()=>{},customTitle:e.createElement(zg,{title:m?.offerTitle,referrerReward:g,refereeReward:f})}),a?.creditOnActivitiesProperties?.customLink?.status&&Number(a?.creditOnCustomLinkValue??0)>0&&e.createElement(Pg,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasClickedOnCustomLink,initializing:!t,url:a?.creditOnActivitiesProperties?.customLink?.url??"",type:"custom_link",icon:Sg(a?.creditOnActivitiesProperties?.customLink?.icon,e.createElement("svg",{width:"64px",height:"64px",viewBox:"-10.24 -10.24 84.48 84.48",xmlns:"http://www.w3.org/2000/svg","stroke-width":"3.4560000000000004",stroke:"#000000",fill:"none"},e.createElement("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e.createElement("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("g",{id:"SVGRepo_iconCarrier"},e.createElement("path",{d:"M39.93,55.72A24.86,24.86,0,1,1,56.86,32.15a37.24,37.24,0,0,1-.73,6"}),e.createElement("path",{d:"M37.86,51.1A47,47,0,0,1,32,56.7"}),e.createElement("path",{d:"M32,7A34.14,34.14,0,0,1,43.57,30a34.07,34.07,0,0,1,.09,4.85"}),e.createElement("path",{d:"M32,7A34.09,34.09,0,0,0,20.31,32.46c0,16.2,7.28,21,11.66,24.24"}),e.createElement("line",{x1:"10.37",y1:"19.9",x2:"53.75",y2:"19.9"}),e.createElement("line",{x1:"32",y1:"6.99",x2:"32",y2:"56.7"}),e.createElement("line",{x1:"11.05",y1:"45.48",x2:"37.04",y2:"45.48"}),e.createElement("line",{x1:"7.14",y1:"32.46",x2:"56.86",y2:"31.85"}),e.createElement("path",{d:"M53.57,57,58,52.56l-8-8,4.55-2.91a.38.38,0,0,0-.12-.7L39.14,37.37a.39.39,0,0,0-.46.46L42,53.41a.39.39,0,0,0,.71.13L45.57,49Z"})))),coins:Number(a.creditOnCustomLinkValue??0),coinName:p,title:a?.creditOnActivitiesProperties?.customLink?.offerTitle?.trim()?a.creditOnActivitiesProperties.customLink.offerTitle:"on clicking this link",onCouponAvail:l}),a?.creditOnActivitiesProperties?.instagramFollow?.status&&Number(a?.creditOnInstagramFollowValue??0)>0&&e.createElement(Pg,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasFollowedOnInstagram,initializing:!t,url:a?.creditOnActivitiesProperties?.instagramFollow?.url??"",type:"instagram",icon:Sg(a?.creditOnActivitiesProperties?.instagramFollow?.icon,e.createElement(kt,{size:28,color:"#000"})),coins:Number(a.creditOnInstagramFollowValue??0),coinName:p,title:a?.creditOnActivitiesProperties?.instagramFollow?.offerTitle?.trim()?a.creditOnActivitiesProperties.instagramFollow.offerTitle:"on Instagram follow",onCouponAvail:l}),a?.creditOnActivitiesProperties?.facebookLike?.status&&Number(a?.creditOnFacebookLikeValue??0)>0&&e.createElement(Pg,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasLikedOnFacebook,initializing:!t,url:a?.creditOnActivitiesProperties?.facebookLike?.url??"",type:"facebook_like",icon:Sg(a?.creditOnActivitiesProperties?.facebookLike?.icon,e.createElement(ae,{size:28,color:"#000"})),coins:Number(a.creditOnFacebookLikeValue??0),coinName:p,title:a?.creditOnActivitiesProperties?.facebookLike?.offerTitle?.trim()?a.creditOnActivitiesProperties.facebookLike.offerTitle:"on Facebook like",onCouponAvail:l}),a?.creditOnActivitiesProperties?.facebookShare?.status&&Number(a?.creditOnFacebookShareValue??0)>0&&e.createElement(Pg,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasSharedOnFacebook,initializing:!t,url:a?.creditOnActivitiesProperties?.facebookShare?.url??"",type:"facebook_share",icon:Sg(a?.creditOnActivitiesProperties?.facebookShare?.icon,e.createElement(ae,{size:28,color:"#000"})),coins:Number(a.creditOnFacebookShareValue??0),coinName:p,title:a?.creditOnActivitiesProperties?.facebookShare?.offerTitle?.trim()?a.creditOnActivitiesProperties.facebookShare.offerTitle:"on Facebook share",onCouponAvail:l}),a?.creditOnActivitiesProperties?.twitterFollow?.status&&Number(a?.creditOnTwitterFollowValue??0)>0&&e.createElement(Pg,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasFollowedOnTwitter,initializing:!t,url:a?.creditOnActivitiesProperties?.twitterFollow?.url??"",type:"twitter",icon:Sg(a?.creditOnActivitiesProperties?.twitterFollow?.icon,e.createElement(ie,{size:28,color:"#000"})),coins:Number(a.creditOnTwitterFollowValue??0),coinName:p,title:a?.creditOnActivitiesProperties?.twitterFollow?.offerTitle?.trim()?a.creditOnActivitiesProperties.twitterFollow.offerTitle:"on Twitter follow",onCouponAvail:l}),a?.creditOnActivitiesProperties?.youtubeSubscription?.status&&Number(a?.creditOnYouTubeSubscriptionValue??0)>0&&e.createElement(Pg,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasSubscribedOnYoutube,initializing:!t,url:a?.creditOnActivitiesProperties?.youtubeSubscription?.url??"",type:"youtube",icon:Sg(a?.creditOnActivitiesProperties?.youtubeSubscription?.icon,e.createElement(le,{size:28,color:"#000"})),coins:Number(a.creditOnYouTubeSubscriptionValue??0),coinName:p,title:a?.creditOnActivitiesProperties?.youtubeSubscription?.offerTitle?.trim()?a.creditOnActivitiesProperties.youtubeSubscription.offerTitle:"on Youtube subscription",onCouponAvail:l})),e.createElement("div",{className:"yt-wtr-footer",style:ag.footer},e.createElement("hr",null),e.createElement("p",{className:"yt-wtr-footerText",style:ag.footerText},"stay signed-in with the account you use for checking out")))}function Sg(t,n){const r=t?.trim();return r?e.createElement("img",{src:r,alt:"",style:{width:"100%",height:"100%",objectFit:"contain",display:"block"}}):n}function Ng({icon:t}){return e.createElement("span",{className:"yt-wte-bgIcon",style:ag.wteBgIcon,"aria-hidden":!0},t)}function Fg({title:t,coins:n,type:r,coinName:o}){const a="percentage"===r?`${n}%`:`${n} ${o}`;if(t?.includes("{{reward_value}}")){const[n,r]=t.split("{{reward_value}}");return e.createElement(e.Fragment,null,e.createElement("span",{style:{fontWeight:400}},n),e.createElement("span",{style:{fontWeight:600}},a),e.createElement("span",{style:{fontWeight:400}},r))}return e.createElement(e.Fragment,null,e.createElement("span",{style:{fontWeight:600}},a),e.createElement("span",{style:{fontWeight:400}},t?` ${t}`:""))}function Bg(e,t,n){if(!e?.enabled)return null;if("points"===e.method){const n=e.pointsConfig?.points;return n?`${n} ${t??"coins"}`:null}if("discount_code"===e.method){const t=e.discountConfig;return t?"percentage_off"===t.type?`${t.value}%`:`${function(e){return e?"INR"===e?"₹":`${e} `:""}(n)}${t.value}`:null}return"freebie"===e.method?"freebie":null}function $g(t,n){return t?e.createElement("span",{key:n,style:{fontWeight:600}},t):null}function zg({title:t,referrerReward:n,refereeReward:r}){if(t?.trim()){const o=t.split(/(\{\{referrer_reward\}\}|\{\{referee_reward\}\})/g);return e.createElement(e.Fragment,null,o.map((t,o)=>"{{referrer_reward}}"===t?$g(n,`referrer-${o}`):"{{referee_reward}}"===t?$g(r,`referee-${o}`):t?e.createElement("span",{key:`text-${o}`,style:{fontWeight:400}},t):null))}return n&&r?e.createElement(e.Fragment,null,e.createElement("span",{style:{fontWeight:600}},n),e.createElement("span",{style:{fontWeight:400}}," for you and "),e.createElement("span",{style:{fontWeight:600}},r),e.createElement("span",{style:{fontWeight:400}}," for your friend")):n?e.createElement(e.Fragment,null,e.createElement("span",{style:{fontWeight:600}},n),e.createElement("span",{style:{fontWeight:400}}," for referring a friend")):r?e.createElement(e.Fragment,null,e.createElement("span",{style:{fontWeight:600}},r),e.createElement("span",{style:{fontWeight:400}}," for your friend")):e.createElement("span",{style:{fontWeight:400}},"for referring a friend")}function Ig({active:t=!0,title:n,customTitle:r,description:o,subcopy:a,redeemMov:i,icon:l,coins:s,type:c,coinName:d,showAvail:p=!0,ctaContrastColor:m,ctaPrimaryColor:u,onCouponAvail:g}){return e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:ag.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...ag.redeemCardHeader,borderRadius:o&&""!=o?"8px 8px 0 0":"8px"}},e.createElement(Ng,{icon:l}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:ag.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:ag.redeemCardIcon},l),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:ag.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:ag.redeemCardTitle},r??e.createElement(Fg,{title:n,coins:s,type:c,coinName:d})),a&&e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:ag.redeemCardSubtitle},a),i&&e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:ag.redeemCardSubtitle},50," Points Required •"," ","Minimum Order Value INR 499"))),p&&e.createElement("button",{onClick:g,disabled:!t,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:ag.cta},"Avail")),o&&""!=o&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:ag.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:ag.redeemCardFooterText},o)))}function Pg({active:r=!0,initializing:o=!1,title:a,description:i,subcopy:l,url:s,type:c,coins:d,coinName:p,icon:m,ctaPrimaryColor:u,ctaContrastColor:g,onCouponAvail:f}){const[y,x]=t(null),[h,b]=t(!1),[w,v]=t(!r);return n(()=>{v(!r)},[r]),e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:ag.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...ag.redeemCardHeader,borderRadius:i&&""!=i?"8px 8px 0 0":"8px"}},e.createElement(Ng,{icon:m}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:ag.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:ag.redeemCardIcon},m),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:ag.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:ag.redeemCardTitle},e.createElement(Fg,{title:a,coins:d??"",coinName:p})),l&&e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:ag.redeemCardSubtitle},l))),e.createElement("button",{onClick:async()=>{try{b(!0);await f(s,c)?(v(!0),x("Points Added")):x("Failed to add points")}catch(e){console.log("FAILED"),x("Failed to add points")}finally{b(!1),setTimeout(()=>x(null),1e4)}},disabled:w||o,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:ag.cta},h||o?e.createElement(og,{size:18,color:"#fff",centered:!0}):w?"Availed":"Avail")),y&&e.createElement(ng,{displayText:y,background:"#000000",textColor:"#ffffff"}))}function Dg({userData:r,activityRewards:o,coins:a,type:i,coinName:l,title:s,icon:c,initializing:d=!1,ctaContrastColor:p,ctaPrimaryColor:m,onBirthdayUpdate:u}){const[g,f]=t(!1),[y,x]=t(null),[h,b]=t(!1),[w,v]=t(null),[C,E]=t(r?.hasSetBirthday);n(()=>{E(!!r?.hasSetBirthday)},[r?.hasSetBirthday]);const k=c??e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"27",height:"27",viewBox:"0 0 27 27",fill:"none"},e.createElement("g",{"clip-path":"url(#clip0_8090_4227)"},e.createElement("path",{d:"M14.3316 7.7168V12.1263H22.0483C22.3407 12.1263 22.6211 12.2425 22.8279 12.4492C23.0346 12.656 23.1507 12.9364 23.1507 13.2287V22.0478H25.3555V24.2526H1.10303V22.0478H3.3078V13.2287C3.3078 12.9364 3.42394 12.656 3.63068 12.4492C3.83742 12.2425 4.11781 12.1263 4.41018 12.1263H12.1269V7.7168H14.3316ZM20.946 14.3311H5.51257V22.0478H20.946V14.3311Z",fill:"black"}),e.createElement("path",{d:"M15.5793 2.95234C15.8063 2.10514 15.6875 1.20246 15.2489 0.442871L13.3396 1.54526C12.5801 1.98383 12.0258 2.70617 11.7988 3.55337C11.5718 4.40058 11.6907 5.30326 12.1292 6.06284L14.0385 4.96045C14.7981 4.52188 15.3523 3.79955 15.5793 2.95234Z",fill:"black"}),e.createElement("path",{d:"M6.32349 16.462H20.14M15.2489 0.442871C15.6875 1.20246 15.8063 2.10514 15.5793 2.95234C15.3523 3.79955 14.7981 4.52188 14.0385 4.96045L12.1292 6.06284C11.6907 5.30326 11.5718 4.40058 11.7988 3.55337C12.0258 2.70617 12.5801 1.98383 13.3396 1.54526L15.2489 0.442871Z",stroke:"black","stroke-width":"0.440954"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_8090_4227"},e.createElement("rect",{width:"26.4572",height:"26.4573",fill:"white"}))));return e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:ag.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...ag.redeemCardHeader,borderRadius:"8px 8px 0 0"}},e.createElement(Ng,{icon:k}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:ag.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:ag.redeemCardIcon},k),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:ag.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:ag.redeemCardTitle},e.createElement(Fg,{title:s,coins:a,type:i,coinName:l})))),e.createElement(e.Fragment,null," ",e.createElement("button",{onClick:()=>f(!0),disabled:C||d,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:ag.cta},d?e.createElement(og,{size:18,color:"#fff",centered:!0}):C?"Availed":"Avail"),e.createElement(Ag,{isLoading:h,open:g,value:w,onChange:e=>{v(e.target.value),console.log("SElected date",e.target.value)},onClose:()=>f(!1),onSave:async e=>{try{b(!0);await u(e)?(E(!0),x("Birthday saved"),f(!1)):x("Failed to update birthday!")}catch(e){x("Failed to update birthday!")}finally{b(!1),setTimeout(()=>x(null),3e3)}}}))),!r?.hasSetBirthday&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:ag.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:ag.redeemCardFooterText},"Add birth date to avail the offer")),y&&e.createElement(ng,{displayText:y,background:"#000000",textColor:"#ffffff"}))}function Ag({open:t,value:n,onSave:r,onClose:a,onChange:i,isLoading:l}){const s=o(null);if(!t)return null;const c=new Date;c.setFullYear(c.getFullYear()-10);const d=`${c.getFullYear()}-${String(c.getMonth()+1).padStart(2,"0")}-${String(c.getDate()).padStart(2,"0")}`,p=!!n&&n>d;return e.createElement("div",{className:"yt-dob-modal-backdrop",style:kg.modalBackdrop,onClick:a},e.createElement("div",{className:"yt-dob-modal",style:kg.modal,onClick:e=>e.stopPropagation()},e.createElement("h2",{className:"yt-dob-modal-title",style:kg.modalTitle},"What’s your date of birth?"),e.createElement("input",{ref:s,type:"date",className:"yt-dob-date-input",style:kg.dateInput,value:n??"",max:d,onChange:i}),p&&e.createElement("p",{className:"yt-dob-error",style:kg.error},"You must be at least 10 years old."),e.createElement("div",{className:"yt-dob-modal-actions",style:kg.modalActions},e.createElement("button",{className:"yt-dob-btn-secondary",style:kg.btnSecondary,onClick:a},"Cancel"),e.createElement("button",{className:"yt-dob-btn-primary",style:kg.btnPrimary,disabled:!n||p,onClick:()=>n&&!p&&r(n)},l?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Save"))))}_t("/* Only the responsive breakpoint stays in CSS — inline can't express @media.\n Everything else is inline via styles/RecentTransactions.styles.ts. */\n\n@media (max-width: 420px) {\n .yt-rt-totals { grid-template-columns: repeat(2, 1fr) !important; }\n .yt-rt-title { font-size: 14px !important; }\n .yt-rt-amount { font-size: 16px !important; }\n .yt-rt-monthTitle { font-size: 20px !important; }\n .yt-rt-hideSm { display: none !important; }\n}\n");const _g={wrap:{width:"100%",background:"#fff",fontFamily:"Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif",color:"#111"},totals:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:6,border:"1px solid #e7e7e7",padding:"12px 10px"},totalLabel:{fontSize:14,color:"#6b6b6b",textAlign:"center"},totalValue:{fontSize:18,fontWeight:700,marginTop:2,textAlign:"center"},pendingPills:{display:"flex",gap:8,padding:"10px 16px",alignItems:"center",justifyContent:"space-between",margin:"12px 16px 8px 16px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:999,boxShadow:"0 6px 16px rgba(0, 0, 0, 0.12)"},pendingPillsRight:{display:"flex",gap:8,alignItems:"center"},pill:{display:"inline-flex",alignItems:"center",padding:"8px 14px",borderRadius:999,fontSize:14,background:"#f3f3f3",color:"#222",textAlign:"center",overflowWrap:"break-word",wordBreak:"break-word",minWidth:0},pillDelta:{fontWeight:700,fontSize:20,padding:"4px 0",background:"transparent",color:"#111",whiteSpace:"nowrap",flexShrink:0},pillOrder:{background:"#f1f1f1",color:"#333"},pillStatus:{background:"#dee6f4",color:"#3a5fa8"},pendingNote:{fontSize:13,color:"#666",textAlign:"center",background:"#f4f4f4",padding:"10px 14px",margin:"0 16px 14px 16px",borderRadius:999},monthTitle:{fontSize:28,fontWeight:800,padding:"24px 16px 10px 16px",margin:0},row:{border:"1px solid #e1e1e1",borderTop:0,padding:16,display:"flex",flexDirection:"column",gap:6},rowHeader:{display:"flex",alignItems:"center",gap:6,fontSize:14},caret:{fontSize:16,lineHeight:1,color:"#5b5b5b"},date:{fontWeight:500,color:"#5b5b5b"},meta:{marginLeft:4,fontSize:14,color:"#9a9a9a"},rowBody:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12},title:{fontWeight:700,fontSize:18},titleSuffix:{fontSize:18},amount:{fontWeight:800,fontSize:20}},Lg={earned:"#D4F9A780",expired:"#FFB3B380",availed:"#CDE2FF80"},Rg={earned:"#3d8b3d",expired:"#c44a4a",availed:"#3a5fa8"},Og=e=>({..._g.caret,color:Rg[e]}),Mg={order:"Purchase",first_order:"First Purchase",second_order:"Second Purchase",signup:"Signup",bulk_insert_signup:"Signup",birthday:"Birthday",referral_signup:"Referral Signup",referral_first_order:"Referral First Order",referee_signup:"Referee Signup",referee_first_order:"Referee First Order",referee_order:"Referee Order",social_instagram:"Instagram",social_facebook:"Facebook",social_facebook_like:"Facebook Like",social_facebook_share:"Facebook Share",social_twitter:"Twitter",social_youtube:"YouTube",social_custom_link:"Custom Activity",review_comment:"Review",segment_reward:"Segment Reward",admin_balance_update:"Manual Update",consumer_balance_increase:"Balance Adjustment",consumer_balance_decrease:"Balance Adjustment",membership_tier_acquisition:"Tier Upgrade",catalog_offer_redemption:"Catalog Offer",discount_creation:"Redemption",consumer_discount_creation:"Redemption",points_expiration:"Expiration"},Vg={payment:"Coins will be credited after payment",shipment:"Coins will be credited after shipment",delivery:"Coins will be credited after delivery","payment+shipment":"Coins will be credited on payment and shipment","payment+delivery":"Coins will be credited on payment and delivery"},Wg={awaiting_payment:"awaiting-payment",confirmed:"confirmed",in_transit:"in-transit",delivered:"delivered",processing:"processing"};function jg(e){const t=Math.round(100*e)/100;return Number.isInteger(t)?t.toLocaleString():t.toLocaleString(void 0,{maximumFractionDigits:2})}function Hg(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return"";return`${t.getDate()} ${t.toLocaleString("en-US",{month:"short"})} ${t.getFullYear()}`}function qg(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString("en-US",{month:"long",year:"numeric"})}function Ug(e,t,n){if("expired"===e)return`${n} Expired`;return`${n} ${"earned"===e?"Earned":"Availed"}: on-${function(e){const t=e.toLowerCase();return Mg[t]?Mg[t]:t.split("_").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}(t)}`}function Qg(e){if(e)return Wg[e]??e.replace(/_/g,"-")}function Yg(e,t){return e.map(e=>{return{deltaLabel:`+ ${jg(e.points)} ${t.toLowerCase()}`,orderId:e.orderId?`#ORDERID: ${e.orderId}`:void 0,status:Qg(e.orderStatus),note:(n=e.criteria,n&&Vg[n]?Vg[n]:"Coins will be credited once the order is complete")};var n})}const Zg={summary:{totalSaved:1450.5,totalEarned:3820,totalAvailed:1200,totalExpired:50},pending:[{id:"48217",points:120,activityType:"order",orderId:"5673829104822",criteria:"payment+delivery",orderStatus:"in_transit",createdAt:"2026-06-09T14:22:11.000Z"},{id:"48205",points:60,activityType:"order",orderId:"5673821007311",criteria:"payment+delivery",orderStatus:"awaiting_payment",createdAt:"2026-06-08T10:03:47.000Z"}],transactions:[{id:"91044",type:"earned",activityType:"order",points:220,createdAt:"2026-06-07T18:41:09.000Z"},{id:"91017",type:"availed",activityType:"discount_creation",points:500,createdAt:"2026-06-05T12:18:30.000Z"},{id:"90988",type:"earned",activityType:"signup",points:100,createdAt:"2026-05-30T09:02:15.000Z"},{id:"90874",type:"expired",activityType:"points_expiration",points:50,createdAt:"2026-05-22T00:00:00.000Z"},{id:"90802",type:"earned",activityType:"referee_first_order",points:150,createdAt:"2026-05-18T16:55:42.000Z"}]};function Gg({data:t,tokenName:n="Coins",currencySymbol:r="$"}){const o=t??Zg,{totals:a,months:i,pending:l}=function(e,t,n){const r={saved:(o=e.summary.totalSaved??0,a=n,`${a}${jg(o)}`),earned:jg(e.summary.totalEarned??0),available:jg(e.summary.totalAvailed??0),expired:jg(e.summary.totalExpired??0)};var o,a;const i=[...e.transactions??[]].sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()),l=new Map;for(const e of i){const n=qg(e.createdAt);if(!n)continue;const r=e.type,o={id:e.id,dateLabel:Hg(e.createdAt),title:Ug(r,e.activityType,t),amount:jg(e.points),kind:r},a=l.get(n);a?a.push(o):l.set(n,[o])}return{totals:r,months:Array.from(l,([e,t])=>({monthTitle:e,items:t})),pending:Yg(e.pending??[],t)}}(o,n,r);return e.createElement("div",{style:{display:"flex",flexDirection:"column",minHeight:"100%",background:"transparent"}},e.createElement("div",{className:"yt-rt-wrap",style:_g.wrap},e.createElement("div",{className:"yt-rt-totals",style:_g.totals},e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:_g.totalLabel},"Total Saved"),e.createElement("div",{className:"yt-rt-totalValue",style:_g.totalValue},a.saved)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:_g.totalLabel},"Total Earned"),e.createElement("div",{className:"yt-rt-totalValue",style:_g.totalValue},a.earned)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:_g.totalLabel},"Total Avail",e.createElement("span",{className:"yt-rt-hideSm"},"ed")),e.createElement("div",{className:"yt-rt-totalValue",style:_g.totalValue},a.available)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:_g.totalLabel},"Expired"),e.createElement("div",{className:"yt-rt-totalValue",style:_g.totalValue},a.expired))),l.map((t,n)=>e.createElement(e.Fragment,{key:`${t.orderId??"pending"}-${n}`},e.createElement("div",{className:"yt-rt-pendingPills",style:_g.pendingPills},e.createElement("span",{className:"yt-rt-pill yt-rt-pill--delta",style:{..._g.pill,..._g.pillDelta}},t.deltaLabel),e.createElement("div",{className:"yt-rt-pendingPillsRight",style:_g.pendingPillsRight},t.orderId&&e.createElement("span",{className:"yt-rt-pill yt-rt-pill--order",style:{..._g.pill,..._g.pillOrder}},t.orderId),t.status&&e.createElement("span",{className:"yt-rt-pill yt-rt-pill--status",style:{..._g.pill,..._g.pillStatus}},t.status))),t.note&&e.createElement("div",{className:"yt-rt-pendingNote",style:_g.pendingNote},t.note))),i.map(t=>e.createElement("div",{key:t.monthTitle,className:"yt-rt-month"},e.createElement("div",{className:"yt-rt-monthTitle",style:_g.monthTitle},t.monthTitle),t.items.map(t=>{return e.createElement("div",{key:t.id,className:["yt-rt-row","earned"===t.kind?"yt-rt-row--earned":"","expired"===t.kind?"yt-rt-row--expired":"","availed"===t.kind?"yt-rt-row--availed":""].join(" "),style:(n=t.kind,{..._g.row,background:Lg[n]})},e.createElement("div",{className:"yt-rt-rowHeader",style:_g.rowHeader},e.createElement("span",{className:"yt-rt-caret",style:Og(t.kind)},"▶"),e.createElement("span",{className:"yt-rt-date",style:_g.date},t.dateLabel)),e.createElement("div",{className:"yt-rt-rowBody",style:_g.rowBody},e.createElement("div",{className:"yt-rt-title"},function(t){const n=t.indexOf(": ");return-1===n?e.createElement("span",{style:_g.title},t):e.createElement(e.Fragment,null,e.createElement("span",{style:_g.title},t.substring(0,n+1)),e.createElement("span",{style:_g.titleSuffix}," ",t.substring(n+2)))}(String(t.title))),e.createElement("div",{className:"yt-rt-amount",style:_g.amount},t.amount)));var n})))),e.createElement("div",{className:"yt-rt-note",style:{marginTop:"auto",position:"sticky",bottom:0,padding:"6px 0",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",alignSelf:"stretch",background:"rgba(135, 135, 135, 0.10)",backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",color:"#000",textAlign:"center",fontFamily:"Poppins",fontSize:9,fontWeight:400,lineHeight:"122%",zIndex:2}},"stay signed-in with the account you use for checking out"))}function Xg({className:t,overlayColor:n,gradientPrefix:r}){const o=s(),a=e=>`${r}-${e}-${o.replace(/:/g,"")}`,i=a("filter"),l=a("paint0"),c=a("paint1"),d=a("paint2"),p=a("paint3"),m=a("paint4"),u=a("paint5");return e.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",viewBox:"0 0 35 35",fill:"none","aria-hidden":"true"},e.createElement("g",{filter:`url(#${i})`},e.createElement("path",{d:"M9.55556 0.955555L0 12.4222H7.64444L17.2 0L9.55556 0.955555Z",fill:`url(#${l})`}),e.createElement("path",{d:"M17.2 0L7.64444 12.4222L26.7556 12.4222L17.2 0Z",fill:`url(#${c})`}),e.createElement("path",{d:"M24.8444 0.954809L34.4 12.4215H26.7555L17.2 0L24.8444 0.954809Z",fill:`url(#${d})`}),e.createElement("path",{d:"M17.2 34.4L0 12.4222H7.64444L17.2 34.4Z",fill:`url(#${p})`}),e.createElement("path",{d:"M26.7556 12.4222L7.64444 12.4222L17.2 34.4L26.7556 12.4222Z",fill:`url(#${m})`}),e.createElement("path",{d:"M17.2 34.4L34.4 12.4223L26.7556 12.4222L17.2 34.4Z",fill:`url(#${u})`}),e.createElement("path",{d:"M9.55556 0.955555L0 12.4222H7.64444L17.2 0L9.55556 0.955555Z",fill:n,fillOpacity:"0.4",style:{mixBlendMode:"plus-darker"}}),e.createElement("path",{d:"M17.2 0L7.64444 12.4222L26.7556 12.4222L17.2 0Z",fill:n,fillOpacity:"0.4",style:{mixBlendMode:"plus-darker"}}),e.createElement("path",{d:"M24.8444 0.954809L34.4 12.4215H26.7555L17.2 0L24.8444 0.954809Z",fill:n,fillOpacity:"0.4",style:{mixBlendMode:"plus-darker"}}),e.createElement("path",{d:"M17.2 34.4L0 12.4222H7.64444L17.2 34.4Z",fill:n,fillOpacity:"0.4",style:{mixBlendMode:"plus-darker"}}),e.createElement("path",{d:"M26.7556 12.4222L7.64444 12.4222L17.2 34.4L26.7556 12.4222Z",fill:n,fillOpacity:"0.4",style:{mixBlendMode:"plus-darker"}}),e.createElement("path",{d:"M17.2 34.4L34.4 12.4223L26.7556 12.4222L17.2 34.4Z",fill:n,fillOpacity:"0.4",style:{mixBlendMode:"plus-darker"}}),e.createElement("path",{d:"M9.55556 0.955555L0 12.4222H7.64444L17.2 0L9.55556 0.955555Z",fill:"white",fillOpacity:"0.01"}),e.createElement("path",{d:"M17.2 0L7.64444 12.4222L26.7556 12.4222L17.2 0Z",fill:"white",fillOpacity:"0.01"}),e.createElement("path",{d:"M24.8444 0.954809L34.4 12.4215H26.7555L17.2 0L24.8444 0.954809Z",fill:"white",fillOpacity:"0.01"}),e.createElement("path",{d:"M17.2 34.4L0 12.4222H7.64444L17.2 34.4Z",fill:"white",fillOpacity:"0.01"}),e.createElement("path",{d:"M26.7556 12.4222L7.64444 12.4222L17.2 34.4L26.7556 12.4222Z",fill:"white",fillOpacity:"0.01"}),e.createElement("path",{d:"M17.2 34.4L34.4 12.4223L26.7556 12.4222L17.2 34.4Z",fill:"white",fillOpacity:"0.01"})),e.createElement("defs",null,e.createElement("filter",{id:i,x:"0",y:"-0.135081",width:"34.3999",height:"34.6869",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dy:"0.151966"}),e.createElement("feGaussianBlur",{stdDeviation:"0.135081"}),e.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.45 0"}),e.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dy:"-0.135081"}),e.createElement("feGaussianBlur",{stdDeviation:"0.413685"}),e.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),e.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow",result:"effect2_innerShadow"})),e.createElement("linearGradient",{id:l,x1:"34.4",y1:"0",x2:"-6.74801",y2:"21.463",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#807F7D"}),e.createElement("stop",{offset:"0.666667",stopColor:"#C1C1C1"}),e.createElement("stop",{offset:"1",stopColor:"#B7B7B7"})),e.createElement("linearGradient",{id:c,x1:"17.2",y1:"0",x2:"17.2",y2:"34.4",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#DADADA"}),e.createElement("stop",{offset:"0.666667",stopColor:"#E9E9E9"}),e.createElement("stop",{offset:"1",stopColor:"#CBCBCB"})),e.createElement("linearGradient",{id:d,x1:"0",y1:"0",x2:"41.1495",y2:"21.4599",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"white"}),e.createElement("stop",{offset:"0.666667",stopColor:"#BDBDBD"}),e.createElement("stop",{offset:"1",stopColor:"#A0A0A0"})),e.createElement("linearGradient",{id:p,x1:"0",y1:"0",x2:"24.4852",y2:"41.7154",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#A5A3A0"}),e.createElement("stop",{offset:"0.666667",stopColor:"#7A7A7A"}),e.createElement("stop",{offset:"1",stopColor:"#C1C1C1"})),e.createElement("linearGradient",{id:m,x1:"17.2",y1:"0",x2:"14.0614",y2:"35.6192",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#9A9A9A"}),e.createElement("stop",{offset:"0.666667",stopColor:"#6A6A6A"}),e.createElement("stop",{offset:"1",stopColor:"#4D4D4D"})),e.createElement("linearGradient",{id:u,x1:"34.4",y1:"12.4222",x2:"17.2",y2:"35.3555",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#5C5C5C"}),e.createElement("stop",{offset:"0.333333",stopColor:"#9B9B9B"}),e.createElement("stop",{offset:"1",stopColor:"#9F9F9F"}))))}function Kg(e){try{return Number(e).toLocaleString()}catch{return e}}function Jg(e){const t=Number(e);return Math.round(10*t)/10}function ef({value:r,duration:a=1200}){const[i,l]=t(0),s=o(0);return n(()=>{const e=s.current,t=Number.isFinite(r)?r:0;if(e===t)return;let n=0,o=null;const i=r=>{null===o&&(o=r);const c=Math.min(1,(r-o)/a),d=Math.round(e+(t-e)*(e=>1-Math.pow(1-e,3))(c));s.current=d,l(d),c<1&&(n=requestAnimationFrame(i))};return n=requestAnimationFrame(i),()=>cancelAnimationFrame(n)},[r,a]),e.createElement(e.Fragment,null,i.toLocaleString())}function tf({config:r}){const{isMobile:a,previewMode:i=!1,bannerBackground:l,bannerBackgroundType:s="shape",bannerImage:c,bannerTextColor:d,bannerTextAlignment:p="center",showWatermark:m=!0,watermarkColor:u,themePrimaryColor:g,themeContrastColor:f,themeSecondaryColor:y,themeSecondaryContrastColor:x,themeBackgroundColor:h,themeTextColor:b,themeAccentColor:w,widgetOpen:v,widgetRoundedCorners:C,ctaPrimaryColor:E,ctaPrimaryContrastColor:k,ctaBorderColor:T,ctaSecondaryColor:S,ctaSecondaryContrastColor:N,ctaShowIcon:F,ctaBorderRadius:B,showWaysToEarn:$,showWaysToRedeem:z=!0,showWCoinValue:I,showReferral:P,referralLocked:D=!1,showTransactions:A,showVipSection:_,showLogo:L=!1,brandName:R,headingEyebrow:O,userGreeting:M="Welcome to",brandLogoUrl:V,balanceCoins:W,coinValInr:j,coinIcon:H,currencyCode:q,tokenName:U,maxRedeemableCoins:Q,redemptionMovRequired:Y,rateTitle:Z,rateSub:G,couponHeading:X,couponCode:K,couponList:J,freebies:ee,onCouponAvail:te,referralLink:ne,userRewardTier:re,brandRewardTiers:oe,onClose:ae=()=>{},onLogout:ie,userData:le,activityRewards:se,brandRewardProgram:ce,recentTransactionsData:de,isLoading:pe,onBirthdayUpdate:me,onSocialClick:ue,onFeedbackRewardClick:ge,customHTML:fe}=r||{},[ye,xe]=t(!1),he=o(null),be=o(null),we=o(null),[ve,Ce]=t(!1),[Ee,ke]=t("profile"),Te=e=>{i||ke(e)},Se="start"===p?{alignItems:"flex-start",textAlign:"left"}:"end"===p?{alignItems:"flex-end",textAlign:"right"}:{alignItems:"center",textAlign:"center"},Ne=null!=W&&""!==W&&!isNaN(Number(W)),Fe="static"===s?"":c??"",Be=se?.creditOnActivitiesProperties?.referralRewardConfig,$e=re?.currentTier,ze=Array.isArray($e?.catalogDealsProducts)?$e?.catalogDealsProducts??[]:[],Ie=ze?.length>0,Pe=$e?.rewardMultiplier,De=re?.nextTier,Ae=function(e,t,n){if(!e)return null;if("ltv"===e.rewardTierCriteria&&"order_count"===e.purchaseValueMethod){const n=t?.totalOrders??0,r=e.minimumOrderCountRequired;if(null==r)return null;const o=Number(n),a=Number(r);return Number.isNaN(o)||Number.isNaN(a)?null:`${Kg(Math.max(0,a-o))} orders`}if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod){const r=t?.currentLtv??0,o=e.minimumOrderValueRequired;if(null==o)return null;const a=Number(r),i=Number(o),l="INR"===n?"₹":n?`${n} `:"";return Number.isNaN(a)||Number.isNaN(i)?null:`${l}${Kg(Math.max(0,i-a))}`}if("loyalty_points"===e.rewardTierCriteria){const n=t?.currentPoints??0,r=e.minimumLoyaltyPointsRequired;if(null==r)return null;const o=Number(n),a=Number(r);return Number.isNaN(o)||Number.isNaN(a)?null:`${Kg(Math.max(0,a-o))} points`}return null}(De,re,q),_e=!!Be?.customizeReferralSectionContent,Le=Be?.shareMethod,Re=ce?.coinName??U??"coins",Oe=Bg(Be?.referrerReward,Re,q),Me=Bg(Be?.refereeReward,Re,q);async function Ve(e){xe(!0),setTimeout(()=>xe(!1),2e3);try{await navigator.clipboard.writeText(e)}catch{}}n(()=>{const e=he.current,t=be.current,n=we.current;if(!e||!t||!n)return;if(!a){return Ce("profile"!==Ee),e.classList.add("yt-rw-card--locked"),e.scrollTop=0,void(n.scrollTop=0)}const r=80;let o=!1,i=0,l="profile"!==Ee||ve;const s=t=>{o=t,e.classList.toggle("yt-rw-card--locked",t),t&&(e.scrollTop=0,l=!0,Ce(!0))},c=e=>{const t=Math.max(8,78),n=Math.max(0,t-12);if(!l&&e>=t)return l=!0,void Ce(!0);l&&e<=n&&(l=!1,Ce(!1))},d=(e,t,n)=>Math.min(n,Math.max(t,e)),p=t=>{if(!o){const o=i,a=d(o+t,0,r);i=a,e.scrollTop=a,c(a);const l=t-(a-o);return a>=79&&(s(!0),l>0&&(n.scrollTop+=l)),!0}if(o){if("profile"!==Ee)return!1;if(t<0&&n.scrollTop<=0){s(!1);const n=d(i+t,0,r);return i=n,e.scrollTop=n,c(n),!0}return!1}return!1},m=e=>{p(e.deltaY)&&e.preventDefault()};let u=0;const g=e=>{u=e.touches[0]?.clientY??0},f=e=>{const t=e.touches[0]?.clientY??0,n=u-t;u=t;p(n)&&e.preventDefault()},y=()=>{if(i=d(i,0,r),o)return i=r,e.scrollTop=0,l=!0,void Ce(!0);e.scrollTop=i,c(i)};e.addEventListener("wheel",m,{passive:!1}),e.addEventListener("touchstart",g,{passive:!0}),e.addEventListener("touchmove",f,{passive:!1}),window.addEventListener("resize",y);const x="profile"!==Ee;return Ce(x),e.scrollTop=0,n.scrollTop=0,x?(i=r,s(!0)):(l=!1,i=0,s(!1),c(0)),()=>{e.removeEventListener("wheel",m),e.removeEventListener("touchstart",g),e.removeEventListener("touchmove",f),window.removeEventListener("resize",y)}},[Ee,a]);const We=async e=>{const t=ne?.trim()??"";if(!t)return;const n=`Join using my referral link: ${t}`,r=encodeURIComponent(t),o=encodeURIComponent(n);if("native"===e){if(navigator.share)try{return void await navigator.share({url:t,text:n})}catch{}return void await Ve(t)}if("instagram"===e)return await Ve(t),void window.open("https://www.instagram.com/","_blank","noopener,noreferrer");const a={telegram:`https://t.me/share/url?url=${r}&text=${o}`,whatsapp:`https://wa.me/?text=${o}`,x:`https://twitter.com/intent/tweet?text=${o}`};window.open(a[e],"_blank","noopener,noreferrer")},je=!a,He=e.createElement("div",{onMouseDown:e=>e.stopPropagation(),ref:he,className:"yt-rw-card",style:{background:l,borderRadius:C&&!a?"24px":"0px",marginInline:C&&!a?"63px":"0px",height:C&&!a?"90%":"",overflow:C&&!a?"hidden":void 0}},e.createElement("div",{ref:be,className:"yt-rw-head "+(ve||"profile"!==Ee?"yt-rw-head--shrink":""),style:{color:d,backgroundColor:l,backgroundImage:Fe&&Fe.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${Fe})`:void 0,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",padding:"profile"!==Ee?"0px":"",maxHeight:"profile"!==Ee?"0px":"",minHeight:"profile"!==Ee?"0px":"",overflow:"profile"!==Ee?"hidden":"",alignItems:Se?.alignItems,textAlign:Se?.textAlign}},e.createElement("button",{className:"yt-rw-close","aria-label":"Close",onClick:ae,style:{color:d}},"×"),!Fe&&m&&e.createElement("div",{className:"yt-rw-headBg",style:u?{color:u}:void 0},R),L&&V&&V?.length>0&&e.createElement("div",{className:"yt-rw-logo",style:{alignSelf:Se?.alignItems??"",paddingRight:"20px"}},e.createElement("img",{src:V,alt:""})),"profile"==Ee&&e.createElement("div",{className:"yt-rw-title-wrap",style:{paddingBlock:"16px"}},e.createElement("div",{className:"yt-rw-eyebrow",style:{paddingRight:"20px"}},M),e.createElement("div",{className:"yt-rw-title",style:{paddingRight:"20px"}},R))),"profile"!=Ee&&e.createElement("div",{className:"yt-rw-backNavigation",style:{backgroundColor:l,backgroundImage:Fe&&Fe.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${Fe})`:void 0,backgroundPosition:"top center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}},e.createElement("div",{style:{borderRadius:"0 0 12px 12px",display:"flex",justifyContent:"space-between",alignItems:"center",background:"transparent",padding:"10px"}},e.createElement("button",{className:"yt-rw-back","aria-label":"Back",onClick:()=>Te("profile"),style:{color:d}},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M10.5638 5.97113C10.5525 5.95976 10.2057 5.87282 9.79313 5.77801C9.38055 5.68319 9.03853 5.62011 9.03303 5.63772C9.02758 5.65538 8.98489 5.94173 8.93822 6.27408C8.84445 6.94149 8.61742 7.72074 8.37482 8.20809C7.61866 9.72694 6.26195 10.7326 4.61646 10.994L4.19743 11.0606L4.19743 11.7315L4.19743 12.4025L4.57722 12.4663C7.06542 12.8837 8.68761 14.7442 8.99107 17.5283C9.01088 17.7101 9.03455 17.8588 9.04367 17.8588C9.12759 17.8588 10.5181 17.5237 10.5444 17.4972C10.5634 17.478 10.5492 17.3076 10.5129 17.1185C10.1105 15.0251 8.95844 13.3217 7.46339 12.6094L7.10477 12.4386L14.4794 12.4252L19.1427 12.4167L19.1427 11.0588L14.4674 11.0503L7.11016 11.0368L7.56292 10.8074C8.73748 10.2124 9.66741 9.04509 10.215 7.47828C10.3711 7.03192 10.6066 6.01428 10.5638 5.97113Z",fill:"white"}))),e.createElement("div",{className:"yt-rw-pageTitle"},"wtr"==Ee?"Ways to Redeem":"wte"==Ee?"Ways to Earn":"recentTransactions"==Ee?"Recent Transactions":"VIP Tiers")," ",e.createElement("div",{style:{height:"24px",width:"36px",display:"block"}}))),e.createElement("div",{ref:we,className:"yt-rw-body yt-rw-body--"+("profile"===Ee?"back":"forward"),style:{backgroundColor:h,color:b,borderRadius:"profile"!=Ee?"0px":""}},"profile"==Ee?e.createElement("div",{className:"yt-rw-profile-wrap",style:{display:"flex",flexDirection:"column",minHeight:"100%"}},e.createElement("div",{className:"yt-rw-content"}," ",I&&e.createElement("div",{className:"yt-rw-hero"},e.createElement("div",{className:"yt-rw-starLogo"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"178",height:"85",viewBox:"0 0 178 85",fill:"none"},e.createElement("path",{opacity:"0.7",d:"M101.328 -92.3757C101.328 -92.3757 101.328 -27.257 119.135 -9.44971C136.942 8.35759 202.061 8.35759 202.061 8.35759C202.061 8.35759 138.561 6.73883 119.135 26.1649C99.7091 45.591 101.328 109.091 101.328 109.091C101.328 109.091 101.328 43.9722 83.5206 26.1649C65.7133 8.35759 0.594557 8.35759 0.594557 8.35759C0.594557 8.35759 65.7133 8.35759 83.5206 -9.44971C101.328 -27.257 101.328 -92.3757 101.328 -92.3757Z",fill:"#7A7A7A","fill-opacity":"0.29"}))),e.createElement("div",{className:"yt-rw-hero-left"},e.createElement("div",{className:"yt-rw-amount"},Ne?e.createElement(ef,{value:Number(W)}):" "),e.createElement("div",{className:"yt-rw-labels"},e.createElement("div",{className:"yt-rw-kicker",style:{color:b}},"BALANCE"),e.createElement("div",{className:"yt-rw-unit",style:{color:w}},U??"COINS"))),e.createElement("div",{className:"yt-rw-hero-right"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"43",height:"43",viewBox:"0 0 33 33",fill:"none"},e.createElement("path",{opacity:"0.7",d:"M16.9106 0.110596C16.9106 0.110596 16.9106 10.5115 19.7549 13.3557C22.5991 16.1999 32.9999 16.1999 32.9999 16.1999C32.9999 16.1999 22.8576 15.9413 19.7549 19.0441C16.6521 22.1469 16.9106 32.2892 16.9106 32.2892C16.9106 32.2892 16.9106 21.8883 14.0664 19.0441C11.2222 16.1999 0.821358 16.1999 0.821358 16.1999C0.821358 16.1999 11.2222 16.1999 14.0664 13.3557C16.9106 10.5115 16.9106 0.110596 16.9106 0.110596Z",fill:"#161616"})))),Ne?e.createElement("div",{className:"yt-rw-note",style:{color:b}},"Your point balance is"," ",e.createElement("b",{style:{color:b}},Jg(Number(W)/Number(j))," in ",q)," ","value.",z?e.createElement(e.Fragment,null," ","Check how to avail all the benefits in"," ",e.createElement("span",{style:{cursor:"pointer",color:b},onClick:()=>Te("wtr"),className:"yt-rw-link"},"redeem options")):null):e.createElement("div",{className:"yt-rw-note yt-rw-skel",style:{borderRadius:"0px",height:"25px"}}),$&&e.createElement("div",{onClick:()=>Te("wte"),className:"yt-rw-cta",style:{borderColor:T,backgroundColor:E,color:k,borderRadius:B}},e.createElement("div",{className:"yt-rw-cta-left",style:{color:k}},F&&e.createElement("span",{className:"yt-rw-coin"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"14",viewBox:"0 0 20 14",fill:"none"},e.createElement("path",{d:"M10.0613 1.18677C5.48004 1.18677 0.843506 2.61183 0.843506 5.33476V9.02187C0.843506 11.7448 5.48004 13.1699 10.0613 13.1699C14.6425 13.1699 19.279 11.7448 19.279 9.02187V5.33476C19.279 2.61183 14.6425 1.18677 10.0613 1.18677ZM2.68706 9.02187V7.9185C3.27086 8.24912 3.88905 8.51494 4.53061 8.71123V10.4451C3.32124 9.9713 2.68706 9.40717 2.68706 9.02187ZM13.7484 9.15829V10.9751C12.9492 11.1401 12.0274 11.2609 10.983 11.3051V9.46156C11.9107 9.42462 12.8347 9.32329 13.7484 9.15829ZM9.13949 11.306C8.21035 11.2704 7.28559 11.1601 6.37416 10.976V9.15921C7.25815 9.3196 8.19191 9.42376 9.13949 9.4634V11.306ZM15.5919 10.4451V8.71123C16.2336 8.51535 16.8519 8.24951 17.4355 7.9185V9.02187C17.4355 9.40717 16.8022 9.9713 15.5919 10.4451ZM10.0613 7.6392C5.28923 7.6392 2.68706 6.11735 2.68706 5.33476C2.68706 4.55217 5.28923 3.03032 10.0613 3.03032C14.8333 3.03032 17.4355 4.55217 17.4355 5.33476C17.4355 6.11735 14.8333 7.6392 10.0613 7.6392Z",fill:""!=k?k:"#21272A"}))),"Get More ",U??"Coins"),e.createElement("div",{className:"yt-rw-cta-right"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M13.4361 17.9852C13.4474 17.9965 13.7942 18.0835 14.2067 18.1783C14.6193 18.2731 14.9613 18.3362 14.9668 18.3186C14.9723 18.3009 15.015 18.0146 15.0617 17.6822C15.1554 17.0148 15.3825 16.2356 15.6251 15.7482C16.3812 14.2294 17.7379 13.2237 19.3834 12.9623L19.8024 12.8957L19.8024 12.2248L19.8024 11.5538L19.4227 11.49C16.9345 11.0726 15.3123 9.21214 15.0088 6.42796C14.989 6.24616 14.9653 6.09746 14.9562 6.09746C14.8723 6.09746 13.4818 6.43256 13.4555 6.45911C13.4365 6.4783 13.4506 6.64874 13.487 6.83779C13.8894 8.93118 15.0414 10.6346 16.5365 11.3469L16.8951 11.5177L9.52044 11.5311L4.85718 11.5396L4.85718 12.8975L9.53244 12.906L16.8897 12.9195L16.437 13.1488C15.2624 13.7439 14.3325 14.9112 13.7848 16.478C13.6288 16.9244 13.3933 17.942 13.4361 17.9852Z",fill:""!=k?k:"#21272A"})))),I&&e.createElement("div",{className:"yt-rw-rate"},e.createElement("div",{className:"yt-rw-rate__icon"},H?.trim()?e.createElement("img",{src:H,alt:"",style:{width:37,height:40,objectFit:"contain",display:"block"}}):e.createElement("svg",{width:"37",height:"40",viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.createElement("g",{style:{mixBlendMode:"multiply"}},e.createElement("rect",{x:"0.10376",y:"0.659668",width:"36.7922",height:"38.6318",fill:"url(#pattern0_7962_16236)"})),e.createElement("defs",null,e.createElement("pattern",{id:"pattern0_7962_16236",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},e.createElement("use",{xlinkHref:"#image0_7962_16236",transform:"matrix(0.000256348 0 0 0.000244141 -0.025 0)"})),e.createElement("image",{id:"image0_7962_16236",width:"4096",height:"4096",preserveAspectRatio:"none",xlinkHref:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png"})))),e.createElement("p",{className:"yt-rw-rate__title"},`${Jg(j)} ${U} = 1 ${q}`),e.createElement("p",{className:"yt-rw-rate__sub"},Number(Y??0)>0?`Min. order value ${"INR"===q?"₹":q?`${q} `:""}${Y}`:"No min. order value required",Number(Q)>0?` • redeem upto ${Q} ${U}`:"")),z&&e.createElement(rg,{setScreenType:Te,themePrimaryColor:g,themeContrastColor:f,themeSecondaryColor:y,themeSecondaryContrastColor:x,showCTA:!0,couponCode:K,couponHeading:X,copyFunction:Ve,borderRadius:B}),P&&D&&e.createElement("div",{className:"yt-rw-refer"},e.createElement("div",{className:"yt-rw-refer_top",style:{paddingBottom:"16px"}},e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"4px"}},e.createElement("p",{className:"yt-rw-refer__title"},"Refer and Earn"),e.createElement("p",{className:"yt-rw-refer__desc"},"Unlock referrals with your first order")),e.createElement("div",{className:"yt-rw-refer-locked",style:{borderRadius:B}},e.createElement("span",{className:"yt-rw-refer-locked__icon","aria-hidden":"true"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:""!==w?w:"#1A1A1A",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"},e.createElement("rect",{x:"4",y:"10.5",width:"16",height:"10",rx:"2.2"}),e.createElement("path",{d:"M8 10.5V7.5a4 4 0 0 1 8 0v3"}),e.createElement("circle",{cx:"12",cy:"15.5",r:"1.4"}))),e.createElement("div",{className:"yt-rw-refer-locked__text"},e.createElement("p",{className:"yt-rw-refer-locked__title",style:{color:b}},"Referrals unlock after your first order"),e.createElement("p",{className:"yt-rw-refer-locked__sub",style:{color:b}},"Once your first order is delivered you can share your referral link and earn ",U??"coins"))))),P&&!D&&e.createElement("div",{className:"yt-rw-refer"},e.createElement("div",{className:"yt-rw-refer_top"},e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"4px"}},e.createElement("p",{className:"yt-rw-refer__title"},"Refer and Earn"),e.createElement("p",{className:"yt-rw-refer__desc"},_e?e.createElement(zg,{title:Be?.offerTitle,referrerReward:Oe,refereeReward:Me}):e.createElement(e.Fragment,null,"Invite a friend to make an order • Earn ",U??"coins"," on success"))),e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"11px"}},e.createElement("p",{className:"yt-rw-ref__linkcta",style:{color:b}},"referral_code"===Le?"Share your referral code":"Share your referral link"),e.createElement("div",{style:{display:"flex",gap:"7px",justifyContent:"referral_code"===Le?"center":void 0,alignItems:"center"}},"referral_code"===Le?e.createElement("div",{className:"yt-rw-codebox",style:{color:w,borderRadius:B}},ne):e.createElement("div",{className:"yt-rw-inputrow",style:{borderRadius:B}},e.createElement("span",{className:"yt-rw-inputrow__icon","aria-hidden":"true"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"19",viewBox:"0 0 18 19",stroke:""!==w?w:"#1A1A1A",fill:"none"},e.createElement("g",{clipPath:"url(#clip0_7542_11756)"},e.createElement("path",{d:"M7.48145 11.1952C7.72146 11.4402 8.00795 11.6348 8.32413 11.7676C8.64031 11.9005 8.97981 11.9689 9.32277 11.9689C9.66573 11.9689 10.0052 11.9005 10.3214 11.7676C10.6376 11.6348 10.9241 11.4402 11.1641 11.1952L14.1102 8.24906C14.5986 7.76071 14.8729 7.09837 14.8729 6.40774C14.8729 5.71711 14.5986 5.05476 14.1102 4.56641C13.6219 4.07806 12.9595 3.80371 12.2689 3.80371C11.5783 3.80371 10.9159 4.07806 10.4276 4.56641L10.0593 4.93468",stroke:""!==w?w:"#1A1A1A",strokeWidth:"1.47306",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M10.4276 8.24932C10.1876 8.00435 9.9011 7.80974 9.58492 7.67688C9.26875 7.54402 8.92924 7.47559 8.58628 7.47559C8.24333 7.47559 7.90382 7.54402 7.58764 7.67688C7.27146 7.80974 6.98498 8.00435 6.74496 8.24932L3.79883 11.1954C3.31048 11.6838 3.03613 12.3461 3.03613 13.0368C3.03613 13.7274 3.31048 14.3897 3.79883 14.8781C4.28718 15.3664 4.94953 15.6408 5.64016 15.6408C6.33079 15.6408 6.99314 15.3664 7.48149 14.8781L7.84975 14.5098",stroke:""!==w?w:"#1A1A1A",strokeWidth:"1.47306",strokeLinecap:"round",strokeLinejoin:"round"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_7542_11756"},e.createElement("rect",{width:"17.6767",height:"17.6767",fill:"white",transform:"translate(0.116211 0.883789)"}))))),e.createElement("input",{style:{color:`${w}`},className:"yt-rw-input",value:ne,readOnly:!0})),e.createElement("button",{className:"yt-rw-copy",type:"button",style:{cursor:"pointer",borderRadius:B},onClick:()=>Ve(ne)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"},e.createElement("path",{d:"M16.1252 17.3442H8.01348C7.7392 17.3442 7.51685 17.1219 7.51685 16.8476V8.73589C7.51685 8.46161 7.7392 8.23926 8.01348 8.23926H16.1252C16.3995 8.23926 16.6218 8.46161 16.6218 8.73589V16.8476C16.6218 17.1219 16.3995 17.3442 16.1252 17.3442Z",stroke:"#5F579B","stroke-width":"1.24159","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M12.4831 8.23921V4.59722C12.4831 4.32294 12.2608 4.10059 11.9865 4.10059H3.87481C3.60053 4.10059 3.37817 4.32294 3.37817 4.59722V12.7089C3.37817 12.9832 3.60053 13.2056 3.87481 13.2056H7.5168",stroke:"#5F579B","stroke-width":"1.24159","stroke-linecap":"round","stroke-linejoin":"round"}))))),e.createElement("div",{className:"yt-rw-share"},e.createElement("button",{className:"yt-rw-share__btn",title:"Telegram","aria-label":"Telegram",type:"button",onClick:()=>We("telegram")},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.createElement("g",{"clip-path":"url(#clip0_7542_11762)"},e.createElement("path",{d:"M10.2924 19.1229C15.4305 19.1229 19.5958 14.9576 19.5958 9.8195C19.5958 4.68138 15.4305 0.516113 10.2924 0.516113C5.15428 0.516113 0.989014 4.68138 0.989014 9.8195C0.989014 14.9576 5.15428 19.1229 10.2924 19.1229Z",fill:"url(#paint0_linear_7542_11762)"}),e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.20018 9.72124C7.9123 8.53961 9.72082 7.76061 10.6257 7.38423C13.2094 6.3096 13.7462 6.12293 14.0961 6.11676C14.1731 6.11541 14.3452 6.13448 14.4566 6.22493C14.5508 6.3013 14.5767 6.40447 14.5891 6.47688C14.6014 6.54928 14.6169 6.71423 14.6046 6.84312C14.4646 8.3142 13.8588 11.8841 13.5506 13.5318C13.4202 14.229 13.1634 14.4627 12.9148 14.4856C12.3745 14.5353 11.9643 14.1285 11.441 13.7855C10.6222 13.2488 10.1596 12.9147 9.36478 12.3909C8.44624 11.7856 9.04169 11.4529 9.56516 10.9092C9.70216 10.7669 12.0826 8.60175 12.1287 8.40534C12.1344 8.38077 12.1398 8.28921 12.0854 8.24085C12.031 8.1925 11.9507 8.20904 11.8927 8.22219C11.8106 8.24083 10.5025 9.10541 7.96852 10.816C7.59722 11.0709 7.26092 11.1951 6.9596 11.1886C6.62742 11.1814 5.98844 11.0008 5.51343 10.8464C4.9308 10.657 4.46774 10.5569 4.50806 10.2352C4.52907 10.0677 4.75977 9.89637 5.20018 9.72124Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_7542_11762",x1:"10.2924",y1:"0.516113",x2:"10.2924",y2:"18.9849",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{"stop-color":"#2AABEE"}),e.createElement("stop",{offset:"1","stop-color":"#229ED9"})),e.createElement("clipPath",{id:"clip0_7542_11762"},e.createElement("rect",{width:"18.6068",height:"18.6068",fill:"white",transform:"translate(0.989014 0.516113)"}))))),e.createElement("button",{className:"yt-rw-share__btn",title:"WhatsApp","aria-label":"WhatsApp",type:"button",onClick:()=>We("whatsapp")},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.createElement("path",{d:"M0.59375 19.1229L1.90165 14.3448C1.09458 12.9462 0.670503 11.3608 0.671278 9.735C0.673604 4.65225 4.80974 0.516113 9.89171 0.516113C12.3579 0.516889 14.6729 1.47746 16.4142 3.2203C18.1547 4.96313 19.1129 7.27968 19.1122 9.74353C19.1098 14.8271 14.9737 18.9632 9.89171 18.9632C8.3489 18.9624 6.82857 18.5755 5.48191 17.8406L0.59375 19.1229ZM5.70829 16.1714C7.00766 16.9428 8.24811 17.4049 9.88861 17.4056C14.1124 17.4056 17.5531 13.968 17.5554 9.74198C17.5569 5.50738 14.1325 2.07443 9.89481 2.07288C5.66797 2.07288 2.2296 5.51048 2.22805 9.73577C2.22727 11.4608 2.73275 12.7524 3.58169 14.1037L2.80718 16.9319L5.70829 16.1714ZM14.5364 11.9353C14.4791 11.8391 14.3256 11.7817 14.0945 11.6662C13.8643 11.5507 12.7316 10.9933 12.5199 10.9165C12.309 10.8398 12.1555 10.801 12.0013 11.032C11.8478 11.2623 11.4058 11.7817 11.2717 11.9353C11.1376 12.0888 11.0027 12.1081 10.7724 11.9926C10.5422 11.8771 9.79945 11.6344 8.91951 10.8491C8.23493 10.2382 7.77209 9.48381 7.63797 9.25277C7.50384 9.02251 7.62401 8.89769 7.73875 8.78295C7.84264 8.67984 7.96901 8.51393 8.08453 8.37903C8.2016 8.24568 8.23959 8.14955 8.31711 7.99526C8.39387 7.84176 8.35588 7.70686 8.29773 7.59134C8.23959 7.4766 7.77907 6.34236 7.58757 5.88107C7.39996 5.43218 7.21001 5.49265 7.06891 5.48567L6.627 5.47792C6.47349 5.47792 6.22385 5.53529 6.01297 5.76633C5.8021 5.99736 5.20668 6.55401 5.20668 7.68825C5.20668 8.82249 6.03236 9.91796 6.1471 10.0715C6.26262 10.225 7.77132 12.5524 10.0824 13.5502C10.6321 13.7874 11.0616 13.9293 11.3958 14.0355C11.9478 14.2107 12.4501 14.1859 12.8471 14.127C13.2898 14.0611 14.21 13.5695 14.4023 13.0315C14.5946 12.4927 14.5946 12.0314 14.5364 11.9353Z",fill:"#25D366"}))),e.createElement("button",{className:"yt-rw-share__btn",title:"Instagram","aria-label":"Instagram",type:"button",onClick:()=>We("instagram")},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"20",viewBox:"0 0 19 20",fill:"none"},e.createElement("g",{"clip-path":"url(#clip0_7542_11766)"},e.createElement("path",{d:"M9.50188 2.19145C11.9876 2.19145 12.282 2.20235 13.2596 2.24596C14.1681 2.28594 14.6587 2.43857 14.9858 2.56577C15.4183 2.73294 15.7308 2.93645 16.0542 3.25989C16.3813 3.58696 16.5812 3.89586 16.7483 4.32832C16.8755 4.6554 17.0282 5.14964 17.0682 6.05454C17.1118 7.03576 17.1227 7.33012 17.1227 9.81224C17.1227 12.298 17.1118 12.5924 17.0682 13.5699C17.0282 14.4785 16.8755 14.9691 16.7483 15.2962C16.5812 15.7286 16.3777 16.0411 16.0542 16.3646C15.7272 16.6917 15.4183 16.8915 14.9858 17.0587C14.6587 17.1859 14.1645 17.3385 13.2596 17.3785C12.2784 17.4221 11.984 17.433 9.50188 17.433C7.01613 17.433 6.72176 17.4221 5.74418 17.3785C4.83565 17.3385 4.34504 17.1859 4.01796 17.0587C3.5855 16.8915 3.27297 16.688 2.94953 16.3646C2.62246 16.0375 2.42258 15.7286 2.25541 15.2962C2.12821 14.9691 1.97558 14.4748 1.9356 13.5699C1.89199 12.5887 1.88109 12.2944 1.88109 9.81224C1.88109 7.32649 1.89199 7.03212 1.9356 6.05454C1.97558 5.146 2.12821 4.6554 2.25541 4.32832C2.42258 3.89586 2.62609 3.58333 2.94953 3.25989C3.2766 2.93281 3.5855 2.73294 4.01796 2.56577C4.34504 2.43857 4.83928 2.28594 5.74418 2.24596C6.72176 2.20235 7.01613 2.19145 9.50188 2.19145ZM9.50188 0.516113C6.97615 0.516113 6.65998 0.527016 5.66786 0.570625C4.67938 0.614235 3.99979 0.774137 3.41106 1.00309C2.79689 1.24294 2.27721 1.55911 1.76117 2.07879C1.24148 2.59484 0.925314 3.11452 0.685461 3.72506C0.45651 4.31742 0.296608 4.99337 0.252998 5.98186C0.209389 6.97761 0.198486 7.29378 0.198486 9.8195C0.198486 12.3452 0.209389 12.6614 0.252998 13.6535C0.296608 14.642 0.45651 15.3216 0.685461 15.9103C0.925314 16.5245 1.24148 17.0442 1.76117 17.5602C2.27721 18.0763 2.79689 18.3961 3.40743 18.6323C3.99979 18.8612 4.67574 19.0211 5.66423 19.0647C6.65635 19.1084 6.97252 19.1193 9.49824 19.1193C12.024 19.1193 12.3401 19.1084 13.3323 19.0647C14.3207 19.0211 15.0003 18.8612 15.5891 18.6323C16.1996 18.3961 16.7193 18.0763 17.2353 17.5602C17.7514 17.0442 18.0712 16.5245 18.3074 15.914C18.5363 15.3216 18.6962 14.6456 18.7399 13.6572C18.7835 12.665 18.7944 12.3489 18.7944 9.82314C18.7944 7.29741 18.7835 6.98124 18.7399 5.98912C18.6962 5.00064 18.5363 4.32105 18.3074 3.73232C18.0784 3.11452 17.7623 2.59484 17.2426 2.07879C16.7265 1.56274 16.2069 1.24294 15.5963 1.00672C15.004 0.777771 14.328 0.617869 13.3395 0.574259C12.3438 0.527016 12.0276 0.516113 9.50188 0.516113Z",fill:"#C4296A"}),e.createElement("path",{d:"M9.50179 5.04053C6.86341 5.04053 4.7229 7.18103 4.7229 9.81942C4.7229 12.4578 6.86341 14.5983 9.50179 14.5983C12.1402 14.5983 14.2807 12.4578 14.2807 9.81942C14.2807 7.18103 12.1402 5.04053 9.50179 5.04053ZM9.50179 12.9193C7.79011 12.9193 6.40187 11.5311 6.40187 9.81942C6.40187 8.10774 7.79011 6.7195 9.50179 6.7195C11.2135 6.7195 12.6017 8.10774 12.6017 9.81942C12.6017 11.5311 11.2135 12.9193 9.50179 12.9193Z",fill:"#C4296A"}),e.createElement("path",{d:"M15.5854 4.85152C15.5854 5.46933 15.0839 5.9672 14.4697 5.9672C13.8519 5.9672 13.354 5.46569 13.354 4.85152C13.354 4.23372 13.8555 3.73584 14.4697 3.73584C15.0839 3.73584 15.5854 4.23735 15.5854 4.85152Z",fill:"#C4296A"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_7542_11766"},e.createElement("rect",{width:"18.6068",height:"18.6068",fill:"white",transform:"translate(0.198486 0.516113)"}))))),e.createElement("button",{className:"yt-rw-share__btn",title:"X","aria-label":"X",type:"button",onClick:()=>We("x")},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.createElement("path",{d:"M15.0111 1.99219H17.6265L11.9127 8.52277L18.6346 17.4094H13.3714L9.24904 12.0197L4.53216 17.4094H1.91518L8.02673 10.4242L1.57837 1.99219H6.9752L10.7014 6.91859L15.0111 1.99219ZM14.0932 15.844H15.5424L6.18773 3.47541H4.63257L14.0932 15.844Z",fill:"black"}))),e.createElement("button",{className:"yt-rw-share__btn",title:"Share","aria-label":"Share",type:"button",onClick:()=>We("native")},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.createElement("path",{d:"M3.5083 9.81787V16.0189C3.5083 16.43 3.67163 16.8243 3.96236 17.1151C4.25309 17.4058 4.6474 17.5691 5.05855 17.5691H14.3601C14.7712 17.5691 15.1655 17.4058 15.4562 17.1151C15.747 16.8243 15.9103 16.43 15.9103 16.0189V9.81787",stroke:"#21272A","stroke-width":"1.51429","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M12.8096 5.16691L9.70914 2.06641L6.60864 5.16691",stroke:"#21272A","stroke-width":"1.51429","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M9.70923 2.06641V12.143",stroke:"#21272A","stroke-width":"1.51429","stroke-linecap":"round","stroke-linejoin":"round"}))))),e.createElement("div",{className:"yt-rw-refer_steps"},e.createElement("div",{className:"yt-refer-step-1"},e.createElement("svg",{width:"57",height:"67",viewBox:"0 0 57 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.createElement("rect",{x:"0.314209",y:"-2.12354",width:"84.5982",height:"84.5982",fill:"url(#pattern0_7807_15663)"}),e.createElement("defs",null,e.createElement("pattern",{id:"pattern0_7807_15663",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},e.createElement("use",{xlinkHref:"#image0_7807_15663",transform:"scale(0.001)"})),e.createElement("image",{id:"image0_7807_15663",width:"1000",height:"1000",preserveAspectRatio:"none",xlinkHref:"https://r2.yourtoken.io/loyalty-widget-v2/referral-chain.png"}))),e.createElement("div",{className:"yt-refer-step-1_header"},e.createElement("p",{className:"yt-subtext"},"Step 1"),e.createElement("p",{className:"yt-mainText"},"Refer to your friend"))),e.createElement("div",{className:"yt-refer-step-1"},e.createElement("svg",{style:{maxWidth:"69.414px",maxHeight:"69.414px",flexShrink:"0"},width:"67",height:"52",viewBox:"0 0 67 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.createElement("rect",{x:"19.7422",y:"0.229492",width:"69.4139",height:"69.4139",fill:"url(#pattern0_7532_9082)"}),e.createElement("rect",{width:"66.1601",height:"66.1601",transform:"matrix(-1 0 0 1 66.3796 12.1602)",fill:"url(#pattern1_7532_9082)"}),e.createElement("defs",null,e.createElement("pattern",{id:"pattern0_7532_9082",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},e.createElement("use",{xlinkHref:"#image0_7532_9082",transform:"scale(0.001)"})),e.createElement("pattern",{id:"pattern1_7532_9082",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},e.createElement("use",{xlinkHref:"#image1_7532_9082",transform:"scale(0.001)"})),e.createElement("image",{id:"image0_7532_9082",width:"1000",height:"1000",preserveAspectRatio:"none",xlinkHref:"https://r2.yourtoken.io/loyalty-widget-v2/referral-boy.png"}),e.createElement("image",{id:"image1_7532_9082",width:"1000",height:"1000",preserveAspectRatio:"none",xlinkHref:"https://r2.yourtoken.io/loyalty-widget-v2/referral-girl.png"}))),e.createElement("div",{className:"yt-refer-step-1_header"},e.createElement("p",{className:"yt-subtext"},"Step 2"),e.createElement("p",{className:"yt-mainText"},"signup"==se?.creditOnActivitiesProperties?.referralRewardConfig?.referrerReward?.completionCriteria?"They sign up on store":"They place an order"," "))),e.createElement("div",{className:"yt-refer-step-1"},e.createElement("svg",{style:{maxWidth:"59.653px",maxHeight:"63.991px"},width:"49",height:"49",viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.createElement("rect",{x:"0.239502",y:"0.483398",width:"59.6526",height:"63.9909",fill:"url(#pattern0_7807_15677)"}),e.createElement("defs",null,e.createElement("pattern",{id:"pattern0_7807_15677",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},e.createElement("use",{xlinkHref:"#image0_7807_15677",transform:"matrix(0.00107273 0 0 0.001 -0.0363636 0)"})),e.createElement("image",{id:"image0_7807_15677",width:"1000",height:"1000",preserveAspectRatio:"none",xlinkHref:"https://r2.yourtoken.io/loyalty-widget-v2/referral-reward.png"}))),e.createElement("div",{className:"yt-refer-step-1_header"},e.createElement("p",{className:"yt-subtext"},"Step 3"),e.createElement("p",{className:"yt-mainText"},"You get the rewards"))))),A&&e.createElement("div",{className:"yt-rw-cta",style:{borderColor:T,backgroundColor:S,color:N,borderRadius:B},onClick:()=>Te("recentTransactions")},e.createElement("div",{className:"yt-rw-cta-left",style:{color:N}},F&&e.createElement("span",{className:"yt-rw-coin"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"20",viewBox:"0 0 19 20",fill:"none"},e.createElement("path",{d:"M15.2227 4.6122C16.6309 6.03777 17.4185 7.96217 17.4139 9.96596C17.4139 14.1477 14.0643 17.5374 9.93178 17.5374V16.0231C13.2375 16.0231 15.9178 13.311 15.9178 9.96596C15.9216 8.36273 15.2912 6.82305 14.1642 5.6828C13.6119 5.12081 12.9532 4.67449 12.2265 4.3699C11.4998 4.06531 10.7197 3.90857 9.93178 3.90882C7.24846 3.90882 4.97704 5.69567 4.21762 8.1579L5.24128 7.45906C5.32266 7.4035 5.41427 7.36469 5.5108 7.34489C5.60732 7.32509 5.70681 7.32469 5.80349 7.34371C5.90017 7.36274 5.9921 7.40081 6.07392 7.45571C6.15574 7.51061 6.22582 7.58124 6.28008 7.66349C6.39113 7.83011 6.43218 8.03374 6.39436 8.23037C6.35653 8.42701 6.24287 8.60087 6.07792 8.7144L3.59676 10.4081C3.51539 10.4637 3.42377 10.5025 3.32725 10.5223C3.23073 10.5421 3.13123 10.5425 3.03455 10.5235C2.93787 10.5045 2.84594 10.4664 2.76412 10.4115C2.6823 10.3566 2.61222 10.286 2.55796 10.2037L0.885436 7.69302C0.774143 7.52633 0.732957 7.32253 0.770791 7.12571C0.808624 6.92889 0.922434 6.75489 1.08759 6.64135C1.16897 6.58579 1.26059 6.54698 1.35711 6.52718C1.45363 6.50737 1.55313 6.50697 1.64981 6.526C1.74649 6.54502 1.83841 6.5831 1.92023 6.63799C2.00206 6.69289 2.07214 6.76353 2.12639 6.84577L2.76164 7.79902C3.68156 4.67353 6.54356 2.39453 9.93178 2.39453C11.998 2.39453 13.8689 3.24253 15.2227 4.6122Z",fill:"currentColor"}),e.createElement("path",{d:"M13.2584 10.4999H10.2654V6.71417C10.2654 6.29623 9.93076 5.95703 9.51736 5.95703C9.10396 5.95703 8.7693 6.29623 8.7693 6.71417V11.257C8.7687 11.3559 8.78758 11.4538 8.82485 11.5454C8.86212 11.6369 8.91705 11.7202 8.98652 11.7905C9.05598 11.8608 9.13861 11.9168 9.22969 11.9552C9.32078 11.9935 9.41852 12.0136 9.51736 12.0142H13.2584C13.6718 12.0142 14.0065 11.675 14.0065 11.257C14.0065 10.8391 13.6718 10.4999 13.2584 10.4999Z",fill:"currentColor"})))," ","Recent Transactions"),e.createElement("div",{className:"yt-rw-cta-right",style:{color:N}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M13.4361 17.9852C13.4474 17.9965 13.7942 18.0835 14.2067 18.1783C14.6193 18.2731 14.9613 18.3362 14.9668 18.3186C14.9723 18.3009 15.015 18.0146 15.0617 17.6822C15.1554 17.0148 15.3825 16.2356 15.6251 15.7482C16.3812 14.2294 17.7379 13.2237 19.3834 12.9623L19.8024 12.8957L19.8024 12.2248L19.8024 11.5538L19.4227 11.49C16.9345 11.0726 15.3123 9.21214 15.0088 6.42796C14.989 6.24616 14.9653 6.09746 14.9562 6.09746C14.8723 6.09746 13.4818 6.43256 13.4555 6.45911C13.4365 6.4783 13.4506 6.64874 13.487 6.83779C13.8894 8.93118 15.0414 10.6346 16.5365 11.3469L16.8951 11.5177L9.52044 11.5311L4.85718 11.5396L4.85718 12.8975L9.53244 12.906L16.8897 12.9195L16.437 13.1488C15.2624 13.7439 14.3325 14.9112 13.7848 16.478C13.6288 16.9244 13.3933 17.942 13.4361 17.9852Z",fill:"currentColor"})))),_&&e.createElement("div",null,e.createElement("div",{className:"yt-rw-tiers"},e.createElement("div",{className:"yt-rw-tiers_top"},e.createElement("p",{className:"yt-rw-tiers_title",style:{color:b}},"Exclusive member discounts"),$e&&e.createElement("p",{className:"yt-rw-tiers_desc",style:{color:b,fontSize:"15px"}},$e.name)),e.createElement("div",{className:"yt-rw-tiers__gems"},e.createElement(Xg,{className:"yt-gem yt-gem--violet",gradientPrefix:"vip-violet",overlayColor:"#8E74F4"}),e.createElement(Xg,{className:"yt-gem yt-gem--gold",gradientPrefix:"vip-gold",overlayColor:"#F3BE00"}),e.createElement(Xg,{className:"yt-gem yt-gem--rose",gradientPrefix:"vip-rose",overlayColor:"#86F300"})),e.createElement("div",{className:"yt-rw-tiers_bottom"},e.createElement("div",{className:"yt-rw-tiers-bottomHeader"},e.createElement("p",{className:"yt-rw-tiers-bottomHeader__title",style:{color:b}},e.createElement("b",null,Pe??De?.rewardMultiplier??2,"x")," Rewards"),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"19",viewBox:"0 0 20 19",fill:"none"},e.createElement("path",{d:"M10 0.205078C10 0.205078 10 6.19098 11.6369 7.82788C13.2738 9.46478 19.2597 9.46478 19.2597 9.46478C19.2597 9.46478 13.4226 9.31598 11.6369 11.1017C9.8512 12.8874 10 18.7245 10 18.7245C10 18.7245 10 12.7386 8.3631 11.1017C6.7262 9.46478 0.740296 9.46478 0.740296 9.46478C0.740296 9.46478 6.7262 9.46478 8.3631 7.82788C10 6.19098 10 0.205078 10 0.205078Z",fill:"black"})),e.createElement("p",{className:"yt-rw-tiers-bottomHeader__title",style:{color:b}}," ",Ie||(De?.catalogDealsProducts?.length??0)>0?"special deals":"special discounts")),e.createElement("button",{onClick:()=>Te("vip"),style:{"--hover-bg":y,"--hover-text":x}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.createElement("path",{opacity:"0.3",d:"M7.85791 0.124023C7.85791 0.124023 7.85791 5.176 9.23942 6.55751C10.6209 7.93902 15.6729 7.93902 15.6729 7.93902C15.6729 7.93902 10.7465 7.81343 9.23942 9.32053C7.73233 10.8276 7.85791 15.754 7.85791 15.754C7.85791 15.754 7.85791 10.702 6.4764 9.32053C5.09489 7.93902 0.0429162 7.93902 0.0429162 7.93902C0.0429162 7.93902 5.09489 7.93902 6.4764 6.55751C7.85791 5.176 7.85791 0.124023 7.85791 0.124023Z",fill:"#161616"})),e.createElement("p",null,"Explore Tiers"),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.createElement("path",{opacity:"0.3",d:"M7.85791 0.124023C7.85791 0.124023 7.85791 5.176 9.23942 6.55751C10.6209 7.93902 15.6729 7.93902 15.6729 7.93902C15.6729 7.93902 10.7465 7.81343 9.23942 9.32053C7.73233 10.8276 7.85791 15.754 7.85791 15.754C7.85791 15.754 7.85791 10.702 6.4764 9.32053C5.09489 7.93902 0.0429162 7.93902 0.0429162 7.93902C0.0429162 7.93902 5.09489 7.93902 6.4764 6.55751C7.85791 5.176 7.85791 0.124023 7.85791 0.124023Z",fill:"#161616"}))))),Ae&&De&&e.createElement("div",{className:"yt-rw-note"},"You’re ",e.createElement("b",null,Ae)," away from"," ",e.createElement("b",null,De.name))),fe&&fe.trim()&&e.createElement("div",{className:"yt-rw-custom-html",dangerouslySetInnerHTML:{__html:fe}})),e.createElement("div",{className:"yt-rw-sticky-footer",style:{marginTop:"auto",width:"100%",alignSelf:"stretch",background:h||"#fff"}},e.createElement("div",{className:"yt-rw-bottom-cta"},e.createElement("hr",{style:{height:"0.7px",margin:"0px",border:"none",background:"#E2E2E2",width:"100%"}}),e.createElement("button",{onClick:ie,style:{background:S,color:N}},"Sign-Out")),e.createElement("div",{className:"yt-rw-stay-signed-in",style:{padding:"6px 0",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",background:"rgba(135, 135, 135, 0.10)",backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",color:b||"#000",textAlign:"center",fontFamily:"Poppins",fontSize:9,fontWeight:400,lineHeight:"122%"}},"Stay signed-in with the account you use for checking out")),a&&e.createElement("div",{className:"yt-powered-by",style:{position:"sticky",bottom:0,zIndex:3,background:h||"#fff",borderTop:"1px solid rgba(0,0,0,0.06)"}},e.createElement("p",null,"powered by ",e.createElement("span",null,"YourToken")))):"wtr"==Ee?e.createElement(cg,{balanceCoins:Number(W),couponList:J,freebies:ee,currencyCode:q,onCouponAvail:te,setScreenType:Te,themeSecondaryColor:y,themeSecondaryContrastColor:x,showCTA:!0,couponCode:K,couponHeading:X,copyFunction:Ve,ctaBorderRadius:B,brandRewardProgram:ce,redemptionMovRequired:Y,userRewardTier:re,brandRewardTiers:oe}):"vip"==Ee?e.createElement(Eg,{onBack:()=>Te("profile"),brandRewardTiers:oe,balanceCoins:W,userRewardTier:re,currencyCode:q}):"wte"==Ee?e.createElement(Tg,{ctaPrimaryColor:E??"",ctaContrastColor:k??"",currencyCode:q,userData:le,activityRewards:se,onBirthdayUpdate:me,onSocialClick:ue,onFeedbackRewardClick:ge,isLoading:pe,brandRewardProgram:ce}):"recentTransactions"==Ee?e.createElement(Gg,{data:de,tokenName:U,currencySymbol:"INR"===q?"₹":q??"$"}):e.createElement("div",null)),ye&&e.createElement(ng,{background:g,textColor:f}));return v?je?e.createElement("div",{className:"yt-rw-shell "+(C?"yt-rw-shell--below":"yt-rw-shell--right")},He,e.createElement("div",{className:"yt-powered-by"},e.createElement("p",null,"powered by ",e.createElement("span",null,"YourToken")))):He:e.createElement("div",null)}function nf({textColor:t="",backgroundColor:n="",position:r="",yOffsetValue:o="",launcherTitle:a="",borderColor:i="",iconType:l="",launcherIcon:s="",addVisibilityDelay:c=!1,addAttentionWaves:d=!0,onClick:p=()=>{}}){let m="",u="",g="",f="";"top-left"==r?(m="0px",u=o):"top-right"==r?(g="0px",u=o):"bottom-right"==r?(g="0px",f=o):(m="0px",f=o);const y=function(t,n,r){const o=n?.trim();return"custom"===t&&o?e.createElement("img",{src:o,alt:""}):e.createElement(ye,{color:r})}(l,s,""!==t?t:"white");return a?.trim()?.length>0?e.createElement("div",{onClick:p,className:"yt-root yt-launcher-stickyText",style:{cursor:"pointer",backgroundColor:n,transform:"top-right"==r||"bottom-right"==r?"rotate(-90deg) translateY(-20px) scale(-1, 1)":"",transformOrigin:"top-right"==r||"bottom-right"==r?"right":"left",left:m,right:g,top:u,bottom:f,borderColor:i,border:""!=i?"1px solid":"none"}},d&&e.createElement(e.Fragment,null,e.createElement("span",{className:"yt-ring"}),e.createElement("span",{className:"yt-ring yt-ring2"})),"top-right"!=r&&"bottom-right"!=r&&y,e.createElement("p",{style:{color:t,transform:"top-right"==r||"bottom-right"==r?"scale(-1, 1)":""}},a),("top-right"==r||"bottom-right"==r)&&y):e.createElement("div",{onClick:p,className:"yt-root yt-launcher-sticky",style:{cursor:"pointer",backgroundColor:n,transform:"top-right"==r||"bottom-right"==r?"rotate(-90deg)":"",left:m,right:g,top:u,bottom:f,borderColor:i}},d&&e.createElement(e.Fragment,null,e.createElement("span",{className:"yt-ring"}),e.createElement("span",{className:"yt-ring yt-ring2"})),y)}const rf="20px";function of({textColor:t="",backgroundColor:n="",position:r="",yOffsetValue:o="",launcherTitle:a="Rewards",borderColor:i="",iconType:l="",launcherIcon:s="",addVisibilityDelay:c=!1,addAttentionWaves:d=!0,onClick:p=()=>{}}){const m=String(r).includes("right"),u=String(o??"").trim(),g={bottom:u?`calc(${rf} + ${u})`:rf,[m?"right":"left"]:"20px"},f=function(t,n,r){const o=n?.trim();return"custom"===t&&o?e.createElement("img",{src:o,alt:""}):e.createElement(ye,{color:r})}(l,s,""!==t?t:"#0A0A0A");return e.createElement("div",{onClick:p,className:"yt-root yt-launcher-bubble",style:{cursor:"pointer",backgroundColor:n,...g,border:""!=i?"1px solid":"none",borderColor:i,borderRadius:0==a?.length?"100px":"",padding:0==a?.length?"10px":""}},d&&e.createElement(e.Fragment,null,e.createElement("span",{className:"yt-ring"}),e.createElement("span",{className:"yt-ring yt-ring2"})),f,a?.length>0&&e.createElement("p",{style:{color:t}},a))}function af(t,n,r){const o=n?.trim();return"custom"===t&&o?e.createElement("img",{src:o,alt:""}):e.createElement(ye,{color:r})}function lf({textColor:n="",backgroundColor:r="",launcherTitle:a="",offerTitle:l="",borderColor:s="",iconType:c="",launcherIcon:d="",addVisibilityDelay:p=!1,onClick:m=()=>{}}){const u=o(null),g=o(null),[f,y]=t(!1),[x,h]=t(12);return i(()=>{const e=u.current,t=g.current;if(!e||!t)return;const n=()=>{const n=t.scrollWidth>e.clientWidth;if(y(n),n){const n=Math.max(8,t.scrollWidth/45);h(n),e.style.setProperty("--marquee-duration",`${n}s`)}else e.style.removeProperty("--marquee-duration")};n();const r=new ResizeObserver(n);return r.observe(e),r.observe(t),window.addEventListener("orientationchange",n),()=>{r.disconnect(),window.removeEventListener("orientationchange",n)}},[a,l,n,r,s]),e.createElement("div",{onClick:m,className:"yt-root yt-launcher-ribbon",style:{color:n,backgroundColor:r,borderColor:s,border:""!==s?"1px solid":"none"}},e.createElement("div",{className:"yt-ribbon-viewport",ref:u,"aria-live":"polite"},e.createElement("div",{className:"yt-ribbon-track "+(f?"yt-is-marquee":""),ref:g},e.createElement("span",{style:{color:n}},a),af(c,d,""!==n?n:"white"),e.createElement("p",{style:{color:n}},l),f&&e.createElement(e.Fragment,null,e.createElement("span",{style:{color:n}},a),af(c,d,""!==n?n:"white"),e.createElement("p",{style:{color:n}},l)))))}function sf({launcherType:t="",textColor:n="",backgroundColor:r="",position:o="",yOffsetValue:a="0px",launcherTitle:i="",offerTitle:l="",borderColor:s="",iconType:c="",launcherIcon:d="",addVisibilityDelay:p=!1,addAttentionWaves:m=!0,customCss:u="",enableCustomCss:g=!1,onClick:f=()=>{}}){const y=(e=>{if(null==e||""===e)return"";const t=String(e).trim();return t.endsWith("%")?`${t.slice(0,-1)}vh`:/^-?\d*\.?\d+$/.test(t)?`${t}vh`:t})(a);let x=null;switch(t){case"sticky":x=e.createElement(nf,{onClick:f,textColor:n,backgroundColor:r,position:o,yOffsetValue:y,borderColor:s,iconType:c,launcherIcon:d,addAttentionWaves:m,addVisibilityDelay:p,launcherTitle:i});break;case"bubble":x=e.createElement(of,{onClick:f,textColor:n,backgroundColor:r,position:o,yOffsetValue:y,borderColor:s,iconType:c,launcherIcon:d,addAttentionWaves:m,addVisibilityDelay:p,launcherTitle:i});break;case"ribbon":x=e.createElement(lf,{onClick:f,offerTitle:l,textColor:n,backgroundColor:r,borderColor:s,iconType:c,launcherIcon:d,addVisibilityDelay:p,launcherTitle:i});break;default:x=e.createElement("div",null)}return e.createElement(e.Fragment,null,g&&u?.trim()&&e.createElement("style",{"data-yt-custom-css":"loyalty-launcher",dangerouslySetInnerHTML:{__html:u}}),x)}function cf({phoneLabel:a="9315313208",authType:i,email:l,length:s=4,onConfirm:c,onResend:d,onChangeNumber:p,setToast:m,loading:u=!1,tone:g="#B85552",themeBackgroundColor:f,themeAccentColor:y,themeTextColor:x,ctaPrimaryColor:h,ctaPrimaryContrastColor:b,countryCode:w}){const v=Math.min(6,Math.max(4,s)),[C,E]=t(Array(v).fill("")),k=o([]),[T,S]=t(!1);n(()=>{k.current[0]?.focus()},[]);const N=r(()=>C.join(""),[C]);function F(e,t){const n=[...C];n[e]=t,E(n)}async function B(e){if(e.every(e=>""!==e)){S(!0);const t=e.join("");if(c){await c(t)||(S(!1),m("OTP did not match. Please try again!"),setTimeout(()=>m(null),3e3))}}}function $(e,t){const n=(t||"").replace(/\D/g,"");if(!n)return;const r=[...C];let o=e;for(let e=0;e<n.length&&o<v;e++)r[o]=n[e],o++;E(r);const a=Math.min(o,v-1);k.current[a]?.focus(),B(r)}return e.createElement("div",{className:"yt-otp-wrap",style:{"--otp-accent":g}},e.createElement("h3",{className:"yt-otp-title",style:{color:x}},"OTP Verification"),"email"==i?e.createElement("p",{className:"yt-otp-subtext",style:{color:x}},"A code has been sent to your email"," ",e.createElement("span",{className:"yt-otp-phone"},l)):e.createElement("p",{className:"yt-otp-subtext",style:{color:x}},"A code has been sent to your registered no"," ",e.createElement("span",{className:"yt-otp-phone"},a)),e.createElement("button",{style:{color:y,cursor:"pointer"},className:"yt-otp-link",onClick:p,type:"button"},"phone"==i?"change number?":"change email?"),e.createElement("hr",{className:"yt-otp-rule",style:{margin:"12px"}}),e.createElement("form",{className:"yt-otp-form",onSubmit:async function(e){if(e.preventDefault(),N.length===v&&c){await c(N)||(S(!1),m("Could not verify OTP!"),setTimeout(()=>m(null),2e3))}}},e.createElement("div",{className:"yt-otp-boxes","aria-label":`Enter ${v}-digit code`},Array.from({length:v}).map((t,n)=>e.createElement("input",{key:n,type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:1,value:C[n],onChange:e=>function(e,t){const n=t.target.value.replace(/\D/g,"");if(!n)return;if(n.length>1)return void $(e,n);const r=[...C];r[e]=n,E(r),e<v-1&&k.current[e+1]?.focus(),B(r)}(n,e),onPaste:e=>function(e,t){t.preventDefault(),$(e,t.clipboardData.getData("text"))}(n,e),onKeyDown:e=>function(e,t){if("Backspace"===t.key){if(C[e])return F(e,""),void S(!1);e>0&&(k.current[e-1]?.focus(),F(e-1,""),S(!1))}else"ArrowLeft"===t.key&&e>0?k.current[e-1]?.focus():"ArrowRight"===t.key&&e<v-1&&k.current[e+1]?.focus()}(n,e),ref:e=>k.current[n]=e,className:"yt-otp-box "+(C[n]?"yt-filled":""),"aria-label":`Digit ${n+1}`}))),e.createElement("p",{className:"yt-otp-hint",style:{color:x}},"Didn’t receive any code?"," ",e.createElement("button",{style:{color:y,cursor:"pointer"},type:"button",className:"yt-otp-link",onClick:d},"resend code")),e.createElement("button",{style:{width:"100%",color:b,background:h},disabled:!T,type:"submit",className:"yt-rwmd-cta"},T?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Confirm")))}_t(".yt-asd-btn {\n transition: background 220ms ease-out, background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out, transform 120ms ease-out;\n}\n.yt-asd-btn:hover {\n background: #fff !important;\n background-color: #fff !important;\n color: #1F1F1F !important;\n border: 1px solid #1F1F1F !important;\n}\n.yt-asd-btn:active {\n transform: translateY(1px) !important;\n}\n");const df={overlay:{background:"rgba(0, 0, 0, 0.3)",position:"absolute",inset:0,padding:10,boxSizing:"border-box",zIndex:9999,fontFamily:"system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif"},card:{position:"absolute",left:5,bottom:8,right:5,boxSizing:"border-box",justifySelf:"stretch",background:"#fff",borderRadius:12,boxShadow:"0 10px 28px rgba(0, 0, 0, 0.25)",padding:14,textAlign:"center",border:"1px solid #e7e7e7"},title:{margin:"2px 0 6px",fontSize:15,fontWeight:700,color:"#111"},desc:{margin:"0 8px 12px",fontSize:12,color:"#6a6a6a",lineHeight:1.35},btn:{width:"100%",border:"none",borderRadius:10,background:"#2f2f2f",color:"#fff",fontWeight:600,padding:"12px 14px",cursor:"pointer"}};function pf({onClose:t,handleSessionDetected:n}){return e.createElement("div",{className:"yt-asd-ol",style:df.overlay,role:"dialog","aria-modal":"true"},e.createElement("div",{className:"yt-asd-card",style:df.card},e.createElement("h4",{className:"yt-asd-title",style:df.title},"Active Session Found!"),e.createElement("p",{className:"yt-asd-desc",style:df.desc},"You’re already signed in. Tap below to refresh and access your loyalty rewards."),e.createElement("button",{className:"yt-asd-btn",style:df.btn,onClick:n},"Refresh & Continue")))}function mf({config:r}){const{themeBackgroundColor:a="",themeTextColor:i="",bannerBackground:l="",bannerBackgroundType:s="shape",bannerImage:c="",bannerTextColor:d="",watermarkColor:p="#fff",bannerTextAlignment:m="start",showWatermark:u=!0,showLogo:g=!1,brandLogoUrl:f="",guestGreeting:y="Welcome to",existingUserGreeting:x="",emailRequired:h,onPhoneChange:b,onEmailChange:w,validatePhone:v,setEmailRequired:C,onClose:E=()=>{},onRegister:k,handleChangeNumber:T,handleResendOtp:S,handleSessionDetected:N,onSendOTP:F,isSessionDetected:B,authType:$="default",formFilled:z=!1,redirectUrl:I="",ctaTitle:P="Register Now",ctaPrimaryColor:D="",ctaPrimaryContrastColor:A="",themeAccentColor:_="",registerLink:R="",brandTitle:O="My Pahadi Rewards",widgetOpen:M=!0,heading:V="Get Started",subcopy:W="Welcome to Moonstruck Loyalty Program <> Earn as you Buy",termsHref:j="#",privacyHref:H="#",isLoading:q=!0,styleVars:U={},countryCode:Q,isMobilePreview:Y,viewportMode:Z}=r||{},G=o(null),[X,K]=t("undefined"!=typeof window&&window.innerWidth<=480);n(()=>{if("undefined"==typeof window)return;const e=()=>K(window.innerWidth<=480);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),t("ytAuth"==$);const[J,ee]=t(""),[te,ne]=t(""),[re,oe]=t(!1),[ae,ie]=t(null),[le,se]=t(Q);console.log("I AM IN MOBILE");const ce="end"===m?{alignItems:"flex-end",textAlign:"right"}:"center"===m?{alignItems:"center",textAlign:"center"}:{alignItems:"flex-start",textAlign:"left"},de=Array.from({length:3}),pe=Array.from({length:4}),me=t=>e.createElement("div",{key:t,className:"yt-rwmd-tapeItem"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.77497 4.58942L2.9167 3.19303C3.11239 1.26501 4.834 -0.139327 6.76202 0.0563629C8.69005 0.252053 10.0944 1.97366 9.89869 3.90168L9.75696 5.29808C10.5282 5.37636 11.0899 6.065 11.0116 6.83621L10.6573 10.3272C10.579 11.0984 9.89037 11.6601 9.11917 11.5819L2.13718 10.8732C1.36597 10.7949 0.804237 10.1063 0.882513 9.33508L1.23684 5.84409C1.31512 5.07288 2.00376 4.51115 2.77497 4.58942ZM8.50229 3.75995L8.36056 5.15635L4.17137 4.73116L4.3131 3.33476C4.43051 2.17795 5.46348 1.33535 6.62029 1.45276C7.77711 1.57017 8.61971 2.60314 8.50229 3.75995Z",fill:"#5F579B"})),e.createElement("p",null,"50 points in queue for last order")),ue=t=>e.createElement("div",{key:t,className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup"));if(n(()=>{if(!M)return;const e=e=>"Escape"===e.key&&E?.();return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[M,E]),!M)return null;const[ge,fe]=t(!1);return n(()=>{fe(z)},[z]),e.createElement("div",{className:"yt-root yt-rwmd-mobile-shell"},e.createElement("div",{className:"yt-powered-by"},e.createElement("p",null,"powered by ",e.createElement("span",null,"YourToken"))),e.createElement("section",{onMouseDown:e=>e.stopPropagation(),className:"yt-root yt-rwmd-dialog"+("mobile"===Z?" yt-rwmd-force-mobile":""),role:"dialog","aria-modal":"true","aria-labelledby":"yt-rwmd-title",onClick:e=>e.stopPropagation(),ref:G,style:{background:a}},B&&e.createElement(pf,{handleSessionDetected:N??(()=>{})}),e.createElement("header",{className:"yt-rwmd-hero",style:{backgroundColor:l,backgroundImage:"static"!==s&&c&&c.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${c})`:void 0,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}},e.createElement("button",{className:"yt-rwmd-close","aria-label":"Close",onClick:E,style:{color:d}},"×"),("static"===s||!c)&&u&&e.createElement("h1",{style:{fontSize:"clamp(70px, 25vw, 120px)",position:"absolute",zIndex:"0",bottom:"-15px",left:"0px",opacity:"0.1",textWrap:"nowrap",fontFamily:"poppins",color:p,margin:0,lineHeight:1}},O),e.createElement("div",{className:"yt-rwmd-hero_header",style:{alignItems:ce.alignItems,textAlign:ce.textAlign,width:"100%"}},g&&f&&f?.length>0&&e.createElement("div",{className:"yt-rwmd-logo",style:{alignSelf:ce.alignItems}},e.createElement("img",{src:f,alt:""})),e.createElement("p",{className:"yt-rwmd-hero-eyebrow",style:{color:d}},y),e.createElement("h2",{id:"yt-rwmd-title",className:"yt-rwmd-hero-title",style:{color:d}},O))),e.createElement("div",{className:"yt-rwmd-content",style:{background:a}},e.createElement("div",{className:"yt-rwmd-body",style:{color:i}},ae&&e.createElement(ng,{displayText:ae,background:"#000000",textColor:"#ffffff"}),"phone"!=$&&"email"!=$||!z?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-body_head"},e.createElement("h3",{className:"yt-rwmd-lead",style:{color:i}},V),e.createElement("p",{className:"yt-rwmd-subcopy",style:{color:i}},W)),e.createElement("hr",{style:{width:"100%",height:"0.2px",border:"none",borderColor:"red",margin:"0px"}}),"phone"==$?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{display:"flex",alignItems:"center",paddingLeft:"10px"}},e.createElement(L,{defaultCountry:"in",forceDialCode:!0,value:J,onChange:(e,t)=>{const{country:n,inputValue:r}=t,o="string"==typeof n?.format?n.format:n?.format?.default,a=String(n?.dialCode??""),i=String(r??"").replace(/\D/g,""),l=i.startsWith(a)?i.slice(a.length):i,s=o?(String(o).match(/\./g)||[]).length:10;v?.(l.length>=s);const c=`+${a}${l}`;b?.(c),ee(e)},inputProps:{required:!0},inputStyle:{width:"100%",fontFamily:"Poppins !important",borderRadius:"0px",border:"none",background:"transparent",boxShadow:"none !important"},style:{boxShadow:"none !important",fontFamily:"Poppins"},countrySelectorStyleProps:{buttonStyle:{border:"none",background:"transparent",padding:"0"}}})),e.createElement("div",{className:"yt-input-wrapper",style:{position:"relative"}},q?e.createElement(og,{size:18,color:"#fff",centered:!0}):e.createElement("input",{placeholder:"Email Address",value:te,disabled:!h,onChange:e=>{ne(e.target.value),w?.(e.target.value)},type:"email"})),e.createElement("button",{disabled:Boolean(h)&&!ff(te),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:A,background:D},onClick:async()=>{oe(!0);await(F?.())?oe(!1):(oe(!1),ie("An error occured!"))}},re?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Send OTP")):"email"==$?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{position:"relative"}},e.createElement("input",{placeholder:"Email Address",value:te,onChange:e=>{ne(e.target.value),w?.(e.target.value)},type:"email"})),e.createElement("button",{disabled:!ff(te),className:"yt-rwmd-cta",style:{margin:"0px",color:A,background:D},onClick:async()=>{oe(!0);await(F?.())?oe(!1):(oe(!1),ie("An error occured!"))}},re?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",{className:"yt-rwmd-cta",style:{color:A,background:D},onClick:()=>{k?.(),""!=R&&(window.location.href=R)}},P),e.createElement("p",{className:"yt-rwmd-terms",style:{color:i}},"By signing-in, you agree to our"," ",e.createElement("a",{href:"https://yourtoken.io/terms-of-service",target:"_blank",rel:"noreferrer",style:{color:_}},"T&Cs")," ","and"," ",e.createElement("a",{href:"https://yourtoken.io/privacy-policy",target:"_blank",rel:"noreferrer",style:{color:_}},"Privacy Policy"))):e.createElement(cf,{setToast:ie,authType:$,email:te,countryCode:le,themeAccentColor:_,themeBackgroundColor:a,themeTextColor:i,ctaPrimaryColor:D,ctaPrimaryContrastColor:A,phoneLabel:J,length:4,onConfirm:k,onResend:S,onChangeNumber:T,loading:q,tone:"#B85552"}))),e.createElement("div",{className:"yt-rwmd-bottom_tape1"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--left"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},de.map((e,t)=>me(`queue-a-${t}`))),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},de.map((e,t)=>me(`queue-b-${t}`))))),e.createElement("div",{className:"yt-rwmd-bottom_tape2"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--right"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},pe.map((e,t)=>ue(`signup-a-${t}`))),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},pe.map((e,t)=>ue(`signup-b-${t}`)))))))}function uf({config:r}){const{themeBackgroundColor:o="",themeTextColor:a="",themeAccentColor:i="",bannerBackground:l="",bannerTextColor:s="",watermarkColor:c="#fff",widgetRoundedCorners:d=!0,guestWidgetImage:p,bannerTextAlignment:m="start",showWatermark:u=!0,showLogo:g=!1,logourl:f="",guestGreeting:y="Welcome to",existingUserGreeting:x="",phone:h="",email:b="",emailRequired:w,onPhoneChange:v,onEmailChange:C,validatePhone:E,setEmailRequired:k,onClose:T=()=>{},onRegister:S=e=>Promise,handleChangeNumber:N,handleResendOtp:F,handleSessionDetected:B,onSendOTP:$,isSessionDetected:z,isLoading:I,authType:P="phone",countryCode:D,formFilled:A=!1,redirectUrl:_="",ctaTitle:R="Register Now",ctaPrimaryColor:O="",ctaPrimaryContrastColor:M="",registerLink:V="",brandTitle:W="Pahadi",widgetOpen:j=!0,heading:H="Get Started",subcopy:q="Welcome to Moonstruck Loyalty Program <> Earn as you Buy",termsHref:U="#",privacyHref:Q="#",styleVars:Y={}}=r||{},[Z,G]=t(""),[X,K]=t(""),[J,ee]=t(!1),[te,ne]=t(!1),[re,oe]=t(null),[ae,ie]=t(D);n(()=>{ee(A)},[A]);const le=()=>e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.77497 4.58942L2.9167 3.19303C3.11239 1.26501 4.834 -0.139327 6.76202 0.0563629C8.69005 0.252053 10.0944 1.97366 9.89869 3.90168L9.75696 5.29808C10.5282 5.37636 11.0899 6.065 11.0116 6.83621L10.6573 10.3272C10.579 11.0984 9.89037 11.6601 9.11917 11.5819L2.13718 10.8732C1.36597 10.7949 0.804237 10.1063 0.882513 9.33508L1.23684 5.84409C1.31512 5.07288 2.00376 4.51115 2.77497 4.58942ZM8.50229 3.75995L8.36056 5.15635L4.17137 4.73116L4.3131 3.33476C4.43051 2.17795 5.46348 1.33535 6.62029 1.45276C7.77711 1.57017 8.61971 2.60314 8.50229 3.75995Z",fill:"#5F579B"})),e.createElement("p",null,"50 points in queue for last order")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.77497 4.58942L2.9167 3.19303C3.11239 1.26501 4.834 -0.139327 6.76202 0.0563629C8.69005 0.252053 10.0944 1.97366 9.89869 3.90168L9.75696 5.29808C10.5282 5.37636 11.0899 6.065 11.0116 6.83621L10.6573 10.3272C10.579 11.0984 9.89037 11.6601 9.11917 11.5819L2.13718 10.8732C1.36597 10.7949 0.804237 10.1063 0.882513 9.33508L1.23684 5.84409C1.31512 5.07288 2.00376 4.51115 2.77497 4.58942ZM8.50229 3.75995L8.36056 5.15635L4.17137 4.73116L4.3131 3.33476C4.43051 2.17795 5.46348 1.33535 6.62029 1.45276C7.77711 1.57017 8.61971 2.60314 8.50229 3.75995Z",fill:"#5F579B"})),e.createElement("p",null,"50 points in queue for last order")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.77497 4.58942L2.9167 3.19303C3.11239 1.26501 4.834 -0.139327 6.76202 0.0563629C8.69005 0.252053 10.0944 1.97366 9.89869 3.90168L9.75696 5.29808C10.5282 5.37636 11.0899 6.065 11.0116 6.83621L10.6573 10.3272C10.579 11.0984 9.89037 11.6601 9.11917 11.5819L2.13718 10.8732C1.36597 10.7949 0.804237 10.1063 0.882513 9.33508L1.23684 5.84409C1.31512 5.07288 2.00376 4.51115 2.77497 4.58942ZM8.50229 3.75995L8.36056 5.15635L4.17137 4.73116L4.3131 3.33476C4.43051 2.17795 5.46348 1.33535 6.62029 1.45276C7.77711 1.57017 8.61971 2.60314 8.50229 3.75995Z",fill:"#5F579B"})),e.createElement("p",null,"50 points in queue for last order"))),se=()=>e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")));return e.createElement("div",{onMouseDown:e=>e.stopPropagation(),className:"yt-root yt-guestDesktop"},e.createElement("div",{className:"yt-guestDesktop-card",style:{background:o}},z&&e.createElement(pf,{handleSessionDetected:B??(()=>{})}),e.createElement("img",{className:"yt-guestDesktop-image",src:p,alt:""}),e.createElement("div",{className:"yt-guestDesktop-contentBox",style:{background:o}},e.createElement("div",{className:"yt-guestDesktop-body"},re&&e.createElement(ng,{displayText:re,background:"#000000",textColor:"#ffffff"}),e.createElement("div",{style:{background:"transparent",display:"flex",gap:"2px",flexDirection:"column",alignItems:"start"}},e.createElement("div",{className:"yt-guestDesktop-title",style:{color:a}},"Login now to avail best offers!"),e.createElement("div",{className:"yt-guestDesktop-subtitle",style:{color:a}},`Welcome to ${W} Loyalty Program. Register now to avail best deals.`)),"phone"!=P&&"email"!=P||!A?e.createElement("div",{className:"yt-guestDesktop-cta"},"phone"==P?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{display:"flex",alignItems:"center",paddingLeft:"10px"}},e.createElement(L,{defaultCountry:"in",forceDialCode:!0,value:Z,onChange:(e,t)=>{const{country:n,inputValue:r}=t,o="string"==typeof n?.format?n.format:n?.format?.default,a=String(n?.dialCode??""),i=String(r??"").replace(/\D/g,""),l=i.startsWith(a)?i.slice(a.length):i,s=o?(String(o).match(/\./g)||[]).length:10;E?.(l.length>=s);const c=`+${a}${l}`;v?.(c),G(e)},inputProps:{required:!0},inputStyle:{width:"100%",fontFamily:"Poppins !important",borderRadius:"0px",border:"none",background:"transparent",boxShadow:"none !important"},style:{boxShadow:"none !important",fontFamily:"Poppins"},countrySelectorStyleProps:{buttonStyle:{border:"none",background:"transparent",padding:"0"}}})),e.createElement("div",{className:"yt-input-wrapper",style:{position:"relative"}},I?e.createElement(og,{size:18,color:"#fff",centered:!0}):e.createElement("input",{placeholder:"Email Address",value:X,disabled:!w,onChange:e=>{K(e.target.value),C?.(e.target.value)},type:"email"})),e.createElement("button",{disabled:Boolean(w)&&!ff(X),className:"yt-rwmd-cta",style:{margin:"0px",color:M,background:O},onClick:async()=>{ne(!0);await($?.())?ne(!1):(ne(!1),oe("An error occured!"),setTimeout(()=>oe(null),3e3))}},te?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Send OTP")):"email"==P?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{position:"relative"}},e.createElement("input",{placeholder:"Email Address",value:b,onChange:e=>{K(e.target.value),C?.(e.target.value)},type:"email"})),e.createElement("button",{disabled:!ff(X),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:M,background:O},onClick:async()=>{ne(!0);await($?.())?ne(!1):(ne(!1),oe("An error occured!"))}},te?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",null,e.createElement("p",null,R??"Register Now"),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.7071 6.29289C18.0976 6.68342 18.0976 7.31658 17.7071 7.70711L7.70711 17.7071C7.31658 18.0976 6.68342 18.0976 6.29289 17.7071C5.90237 17.3166 5.90237 16.6834 6.29289 16.2929L16.2929 6.29289C16.6834 5.90237 17.3166 5.90237 17.7071 6.29289Z",fill:"white"}),e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 7C6 6.44772 6.44772 6 7 6H17C17.5523 6 18 6.44772 18 7V17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17V8H7C6.44772 8 6 7.55228 6 7Z",fill:"white"})))):e.createElement(cf,{setToast:oe,authType:P,email:b??X,countryCode:ae,themeAccentColor:i,themeBackgroundColor:o,themeTextColor:a,ctaPrimaryColor:O,ctaPrimaryContrastColor:M,phoneLabel:Z,length:4,onConfirm:S,onResend:()=>F?.(),onChangeNumber:N,loading:!1,tone:"#B85552"}),e.createElement("div",{className:"yt-guestDesktop-terms",style:{color:a}},"By signing-in, you agree to our"," ",e.createElement("span",{style:{color:i}},"T&Cs")," and"," ",e.createElement("span",{style:{color:i}},"Privacy Policy"))),!A&&e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-bottom_tape1"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--left"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},le()),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},le()))),e.createElement("div",{className:"yt-rwmd-bottom_tape2"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--right"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},se()),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},se())))))),e.createElement("div",{className:"yt-guestDesktop-footer"},e.createElement("p",null,"powered by ",e.createElement("span",null,"YourToken")),e.createElement("div",{onClick:T,className:"yt-guestDesktop-close"},e.createElement("p",null,"Close"),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M18.75 6.81984L17.1802 5.25L12 10.4302L6.81984 5.25L5.25 6.81984L10.4302 12L5.25 17.1802L6.81984 18.75L12 13.5698L17.1802 18.75L18.75 17.1802L13.5698 12L18.75 6.81984Z",fill:"white"})))))}function gf({config:r}){const{themeBackgroundColor:a="",themeTextColor:i="",bannerBackground:l="",bannerBackgroundType:s="shape",bannerImage:c="",bannerTextColor:d="",watermarkColor:p="#fff",widgetRoundedCorners:m=!0,bannerTextAlignment:u="start",showWatermark:g=!0,showLogo:f=!1,logourl:y="",guestGreeting:x="Welcome to",existingUserGreeting:h="",emailRequired:b,onPhoneChange:w,onEmailChange:v,onClose:C=()=>{},onRegister:E,handleChangeNumber:k,handleResendOtp:T,handleSessionDetected:S,onSendOTP:N,isSessionDetected:F,authType:B="default",countryCode:$,validatePhone:z,setEmailRequired:I,formFilled:P=!1,redirectUrl:D="",ctaTitle:A="Register Now",ctaMainColor:_="",ctaMainContrastColor:R="",ctaPrimaryColor:O="",ctaPrimaryContrastColor:M="",themeAccentColor:V="",registerLink:W="",brandTitle:j="My Pahadi Rewards",brandLogoUrl:H,widgetOpen:q=!0,heading:U="Get Started",subcopy:Q="Welcome to YourToken Loyalty Program <> Earn as you Buy",termsHref:Y="#",privacyHref:Z="#",isLoading:G=!0,styleVars:X={}}=r||{},K=o(null);t("ytAuth"==B);const[J,ee]=t(""),[te,ne]=t(""),[re,oe]=t(!1),[ae,ie]=t(null),[le,se]=t($);if(n(()=>{if(!q)return;const e=e=>"Escape"===e.key&&C?.();return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[q,C]),!q)return null;const[ce,de]=t(!1);n(()=>{de(P)},[P]);const pe=()=>e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.77497 4.58942L2.9167 3.19303C3.11239 1.26501 4.834 -0.139327 6.76202 0.0563629C8.69005 0.252053 10.0944 1.97366 9.89869 3.90168L9.75696 5.29808C10.5282 5.37636 11.0899 6.065 11.0116 6.83621L10.6573 10.3272C10.579 11.0984 9.89037 11.6601 9.11917 11.5819L2.13718 10.8732C1.36597 10.7949 0.804237 10.1063 0.882513 9.33508L1.23684 5.84409C1.31512 5.07288 2.00376 4.51115 2.77497 4.58942ZM8.50229 3.75995L8.36056 5.15635L4.17137 4.73116L4.3131 3.33476C4.43051 2.17795 5.46348 1.33535 6.62029 1.45276C7.77711 1.57017 8.61971 2.60314 8.50229 3.75995Z",fill:"#5F579B"})),e.createElement("p",null,"50 points in queue for last order")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.77497 4.58942L2.9167 3.19303C3.11239 1.26501 4.834 -0.139327 6.76202 0.0563629C8.69005 0.252053 10.0944 1.97366 9.89869 3.90168L9.75696 5.29808C10.5282 5.37636 11.0899 6.065 11.0116 6.83621L10.6573 10.3272C10.579 11.0984 9.89037 11.6601 9.11917 11.5819L2.13718 10.8732C1.36597 10.7949 0.804237 10.1063 0.882513 9.33508L1.23684 5.84409C1.31512 5.07288 2.00376 4.51115 2.77497 4.58942ZM8.50229 3.75995L8.36056 5.15635L4.17137 4.73116L4.3131 3.33476C4.43051 2.17795 5.46348 1.33535 6.62029 1.45276C7.77711 1.57017 8.61971 2.60314 8.50229 3.75995Z",fill:"#5F579B"})),e.createElement("p",null,"50 points in queue for last order")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.77497 4.58942L2.9167 3.19303C3.11239 1.26501 4.834 -0.139327 6.76202 0.0563629C8.69005 0.252053 10.0944 1.97366 9.89869 3.90168L9.75696 5.29808C10.5282 5.37636 11.0899 6.065 11.0116 6.83621L10.6573 10.3272C10.579 11.0984 9.89037 11.6601 9.11917 11.5819L2.13718 10.8732C1.36597 10.7949 0.804237 10.1063 0.882513 9.33508L1.23684 5.84409C1.31512 5.07288 2.00376 4.51115 2.77497 4.58942ZM8.50229 3.75995L8.36056 5.15635L4.17137 4.73116L4.3131 3.33476C4.43051 2.17795 5.46348 1.33535 6.62029 1.45276C7.77711 1.57017 8.61971 2.60314 8.50229 3.75995Z",fill:"#5F579B"})),e.createElement("p",null,"50 points in queue for last order"))),me=()=>e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")));return e.createElement("div",{className:"yt-root yt-rwmd-shell"},e.createElement("section",{onMouseDown:e=>e.stopPropagation(),className:"yt-root yt-rwmd-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"yt-rwmd-title",onClick:e=>e.stopPropagation(),ref:K,style:{background:l,borderTopLeftRadius:m?"":"0px",borderTopRightRadius:m?"":"0px"}},e.createElement("header",{className:"yt-rwmd-hero",style:{backgroundColor:l,backgroundImage:"static"!==s&&c&&c.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${c})`:void 0,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",borderBottomLeftRadius:"static"!==s&&c&&c.length>0?"8px":void 0,borderBottomRightRadius:"static"!==s&&c&&c.length>0?"8px":void 0}},e.createElement("button",{className:"yt-rwmd-close","aria-label":"Close",onClick:C,style:{color:d}},"×"),("static"===s||!c)&&g&&e.createElement("h1",{style:{fontSize:"clamp(70px, 20vw, 100px)",position:"absolute",zIndex:"0",bottom:"-20px",left:"0px",opacity:"0.1",textWrap:"nowrap",fontFamily:"poppins",color:p,margin:0,lineHeight:1}},j),e.createElement("div",{className:"yt-rwmd-hero_header",style:{alignItems:u,width:"100%"}},f&&H&&H?.length>0&&e.createElement("div",{className:"yt-rwmd-logo",style:{alignSelf:u}},e.createElement("img",{src:H,alt:""})),e.createElement("p",{className:"yt-rwmd-hero-eyebrow",style:{color:d}},x),e.createElement("h2",{id:"yt-rwmd-title",className:"yt-rwmd-hero-title",style:{color:d}},j))),e.createElement("div",{className:"yt-rwmd-content",style:{background:a}},F&&e.createElement(pf,{handleSessionDetected:S??(()=>{})}),e.createElement("div",{className:"yt-rwmd-bottom_tape1"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--left"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},pe()),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},pe()))),e.createElement("div",{className:"yt-rwmd-bottom_tape2"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--right"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},me()),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},me()))),e.createElement("div",{className:"yt-rwmd-body",style:{color:i}},ae&&e.createElement(ng,{displayText:ae,background:"#000000",textColor:"#ffffff"}),"phone"!=B&&"email"!=B||!P?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-body_head"},e.createElement("h3",{className:"yt-rwmd-lead",style:{color:i}},U),e.createElement("p",{className:"yt-rwmd-subcopy",style:{color:i}},Q)),e.createElement("hr",{style:{width:"100%",height:"0.2px",border:"none",borderColor:"red",margin:"0px"}}),"phone"==B?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{display:"flex",alignItems:"center",paddingLeft:"10px"}},e.createElement(L,{defaultCountry:"in",forceDialCode:!0,value:J,onChange:(e,t)=>{const{country:n,inputValue:r}=t,o="string"==typeof n?.format?n.format:n?.format?.default,a=String(n?.dialCode??""),i=String(r??"").replace(/\D/g,""),l=i.startsWith(a)?i.slice(a.length):i,s=o?(String(o).match(/\./g)||[]).length:10;z?.(l.length>=s);const c=`+${a}${l}`;w?.(c),ee(e)},inputProps:{required:!0},inputStyle:{width:"100%",fontFamily:"Poppins !important",borderRadius:"0px",border:"none",background:"transparent",boxShadow:"none !important"},style:{boxShadow:"none !important",fontFamily:"Poppins"},countrySelectorStyleProps:{buttonStyle:{border:"none",background:"transparent",padding:"0"}}})),e.createElement("div",{className:"yt-input-wrapper",style:{position:"relative"}},G?e.createElement(og,{size:18,color:"#fff",centered:!0}):e.createElement("input",{placeholder:"Email Address",value:te,disabled:!b,onChange:e=>{ne(e.target.value),v?.(e.target.value)},type:"email"})),e.createElement("button",{disabled:Boolean(b)&&!ff(te),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:M,background:O},onClick:async()=>{oe(!0);await(N?.())?oe(!1):(oe(!1),ie("An error occured!"),setTimeout(()=>ie(null),3e3))}},re?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Send OTP")):"email"==B?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{position:"relative"}},e.createElement("input",{placeholder:"Email Address",value:te,onChange:e=>{ne(e.target.value),v?.(e.target.value)},type:"email"})),e.createElement("button",{disabled:!ff(te),className:"yt-rwmd-cta",style:{margin:"0px",color:M,background:O},onClick:async()=>{oe(!0);await(N?.())?oe(!1):(oe(!1),ie("An error occured!"),setTimeout(()=>ie(null),3e3))}},re?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",{className:"yt-rwmd-cta",style:{color:M,background:O},onClick:()=>{E?.(),""!=W&&(window.location.href=W)}},A),e.createElement("p",{className:"yt-rwmd-terms",style:{color:i}},"By signing-in, you agree to our"," ",e.createElement("a",{href:"https://yourtoken.io/terms-of-service",target:"_blank",rel:"noreferrer",style:{color:V}},"T&Cs")," ","and"," ",e.createElement("a",{href:"https://yourtoken.io/privacy-policy",target:"_blank",rel:"noreferrer",style:{color:V}},"Privacy Policy"))):e.createElement(cf,{setToast:ie,authType:B,email:te,countryCode:le,themeAccentColor:V,themeBackgroundColor:a,themeTextColor:i,ctaPrimaryColor:O,ctaPrimaryContrastColor:M,phoneLabel:J,length:4,onConfirm:E,onResend:T,onChangeNumber:k,loading:!1,tone:"#B85552"})))),e.createElement("div",{className:"yt-guestDesktop-footer"},e.createElement("p",null,"powered by ",e.createElement("span",null,"YourToken"))))}const ff=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);function yf({config:r}){const{guestWidgetImage:o,isMobilePreview:a,viewportMode:i}=r,[l,s]=t("undefined"!=typeof window&&window.innerWidth<=480);n(()=>{if("undefined"==typeof window)return;const e=()=>s(window.innerWidth<=480);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);return"mobile"===i||"desktop"!==i&&(a||l)?e.createElement(mf,{config:r}):o&&o?.length>0?e.createElement(uf,{config:r}):e.createElement(gf,{config:r})}function xf({signedIn:r=!1,previewMode:a=!1,bannerBackground:i="#4f486a",bannerBackgroundType:l="shape",bannerImage:s="",bannerTextColor:c="",themePrimaryColor:d="",themeContrastColor:p="",themeSecondaryColor:m="",themeSecondaryContrastColor:u="",themeBackgroundColor:g="#fff",themeTextColor:f="",themeAccentColor:y="",widgetOpen:x=!0,widgetPosition:h="center",guestWidgetImage:b="",widgetRoundedCorners:w=!1,ctaMainColor:v="",ctaMainContrastColor:C="",ctaPrimaryColor:E="",ctaPrimaryContrastColor:k="",ctaBorderColor:T="",ctaSecondaryColor:S="",ctaSecondaryContrastColor:N="",ctaShowIcon:F=!0,ctaBorderRadius:B="0px",showWaysToEarn:$=!0,showWaysToRedeem:z=!0,showWCoinValue:I=!0,showReferral:P=!0,referralLocked:D=!1,showTransactions:A=!0,showVipSection:_=!0,brandName:L="YourToken",brandLogoUrl:R="",headingEyebrow:O="Welcome to",balanceCoins:M,maxRedeemableCoins:V=0,redemptionMovRequired:W,coinValInr:j="1",coinIcon:H="",currencyCode:q="INR",tokenName:U="COINS",rateTitle:Q="",rateSub:Y="No min. order value required • redeem upto 200 coins",couponHeading:Z="You’ve one reward coupon active",couponCode:G="",couponList:X=[],freebies:K=[],onCouponAvail:J,couponImage:ee="https://images.unsplash.com/photo-1606318313647-137fcb1d5cd2?q=80&w=800&auto=format&fit=crop",referralLink:te="",userRewardTier:ne,brandRewardTiers:re,watermarkColor:oe="#fff",bannerTextAlignment:ae="start",showWatermark:ie=!0,showLogo:le=!1,logourl:se="",guestGreeting:ce="Welcome to",userGreeting:de="Welcome to",existingUserGreeting:pe="",phone:me="",email:ue="",emailRequired:ge=!1,onPhoneChange:fe=e=>{},onEmailChange:ye=e=>{},validatePhone:xe,setEmailRequired:he,onClose:be=()=>{},onRegister:we,onLogout:ve,handleChangeNumber:Ce,handleResendOtp:Ee,handleSessionDetected:ke,onSendOTP:Te,isSessionDetected:Se,authType:Ne="phone",formFilled:Fe=!1,redirectUrl:Be="",ctaTitle:$e="Register Now",registerLink:ze="",brandTitle:Ie="",heading:Pe="Get Started",subcopy:De="Welcome to YourToken Loyalty Program <> Earn as you Buy",termsHref:Ae="#",privacyHref:_e="#",isLoading:Le,userData:Re,activityRewards:Oe,brandRewardProgram:Me,recentTransactionsData:Ve,customCss:We,enableCustomCss:je,customHTML:He,onBirthdayUpdate:qe,onSocialClick:Ue,onFeedbackRewardClick:Qe,countryCode:Ye,isMobilePreview:Ze,viewportMode:Ge}){n(()=>{const e=e=>{"Escape"===e.key&&be()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[be]),n(()=>{if(!x)return;const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[x]);const Xe=o(null);n(()=>{const e=Xe.current;if(!e||"undefined"==typeof window)return;const t=(e,t,n)=>{e.style.getPropertyValue(t)===n&&"important"===e.style.getPropertyPriority(t)||e.style.setProperty(t,n,"important")},n=()=>{e.querySelectorAll(".yt-powered-by, .yt-guestDesktop-footer").forEach(e=>{const n=e.classList.contains("yt-powered-by")&&(e.parentElement?.classList.contains("yt-rw-shell--right")??!1);t(e,"display",n?"block":"flex"),t(e,"visibility","visible"),t(e,"opacity","1"),t(e,"pointer-events","auto")})};n();const r=new MutationObserver(n);return r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),()=>r.disconnect()},[r]);const[Ke,Je]=t("undefined"!=typeof window&&window.innerWidth<=480);n(()=>{if("undefined"==typeof window)return;const e=()=>Je(window.innerWidth<=480);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const et="mobile"===Ge||"desktop"!==Ge&&Ke;return e.createElement("div",{ref:Xe,style:{placeItems:r?h:"center"},onMouseDown:e=>{const t=e.target;t instanceof Element&&t.closest(".yt-rw-card, .yt-rwmd-dialog, .yt-guestDesktop, .yt-powered-by, .yt-guestDesktop-footer")||be()},className:"yt-root yt-reward-loyalty-overlay"},je&&We?.trim()&&e.createElement("style",{"data-yt-custom-css":"loyalty-widget",dangerouslySetInnerHTML:{__html:We}}),e.createElement("style",{"data-yt-branding-guard":"loyalty-widget",dangerouslySetInnerHTML:{__html:".yt-root.yt-reward-loyalty-overlay .yt-powered-by,.yt-root.yt-reward-loyalty-overlay .yt-guestDesktop-footer{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}.yt-root.yt-reward-loyalty-overlay .yt-rw-shell--right>.yt-powered-by{display:block!important}"}}),r?e.createElement(tf,{config:{isMobile:et,previewMode:a,bannerTextAlignment:ae,bannerBackground:i,bannerBackgroundType:l,bannerImage:s,bannerTextColor:c,themePrimaryColor:d,themeContrastColor:p,themeSecondaryColor:m,themeSecondaryContrastColor:u,themeBackgroundColor:g,themeTextColor:f,themeAccentColor:y,widgetOpen:x,widgetPosition:h,widgetRoundedCorners:w,ctaPrimaryColor:E,ctaPrimaryContrastColor:k,ctaBorderColor:T,ctaSecondaryColor:S,ctaSecondaryContrastColor:N,ctaShowIcon:F,ctaBorderRadius:B,showWaysToEarn:$,showWaysToRedeem:z,showWCoinValue:I,showReferral:P,referralLocked:D,showTransactions:A,showVipSection:_,showLogo:le,brandName:L,brandLogoUrl:R,headingEyebrow:O,userGreeting:de,balanceCoins:M,maxRedeemableCoins:V,redemptionMovRequired:W,coinValInr:j,coinIcon:H,currencyCode:q,tokenName:U,rateTitle:Q,rateSub:Y,couponHeading:Z,couponCode:G,couponImage:ee,couponList:X,freebies:K,onCouponAvail:J,referralLink:te,userRewardTier:ne,brandRewardTiers:re,userData:Re,activityRewards:Oe,brandRewardProgram:Me,recentTransactionsData:Ve,isLoading:Le,onBirthdayUpdate:qe,onSocialClick:Ue,onFeedbackRewardClick:Qe,customHTML:He,onClose:be,onLogout:ve}}):e.createElement(yf,{config:{isLoading:Le,themeBackgroundColor:g,themeTextColor:f,themeAccentColor:y,bannerBackground:i,bannerBackgroundType:l,bannerImage:s,bannerTextColor:c,watermarkColor:oe,widgetRoundedCorners:w,guestWidgetImage:b,bannerTextAlignment:ae,showWatermark:ie,showLogo:le,logourl:se,guestGreeting:ce,existingUserGreeting:pe,phone:me,email:ue,emailRequired:ge,onPhoneChange:fe,onEmailChange:ye,validatePhone:xe,setEmailRequired:he,onClose:be,onRegister:we,handleChangeNumber:Ce,handleResendOtp:Ee,handleSessionDetected:ke,onSendOTP:Te,isSessionDetected:Se,authType:Ne,countryCode:Ye,formFilled:Fe,redirectUrl:Be,ctaTitle:$e,ctaMainColor:v,ctaMainContrastColor:C,ctaPrimaryColor:E,ctaPrimaryContrastColor:k,registerLink:ze,brandTitle:Ie,brandLogoUrl:R,widgetOpen:x,heading:Pe,subcopy:De,termsHref:Ae,privacyHref:_e,isMobilePreview:Ze,viewportMode:Ge}}))}Object.entries({IN:"+91",US:"+1",CA:"+1",GB:"+44",AU:"+61",NZ:"+64",DE:"+49",FR:"+33",ES:"+34",IT:"+39",NL:"+31",BE:"+32",CH:"+41",SE:"+46",NO:"+47",DK:"+45",FI:"+358",IE:"+353",PT:"+351",AT:"+43",PL:"+48",CZ:"+420",HU:"+36",RO:"+40",BG:"+359",GR:"+30",AE:"+971",SA:"+966",QA:"+974",KW:"+965",OM:"+968",BH:"+973",CN:"+86",JP:"+81",KR:"+82",SG:"+65",MY:"+60",TH:"+66",VN:"+84",ID:"+62",PH:"+63",PK:"+92",BD:"+880",LK:"+94",NP:"+977",ZA:"+27",NG:"+234",KE:"+254",EG:"+20",BR:"+55",AR:"+54",MX:"+52",CL:"+56",CO:"+57",PE:"+51",RU:"+7",UA:"+380",TR:"+90"}).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({cc:e,value:t,label:`${e} ${t}`}));_t('.lpc-root {\n width: 100%;\n background: #ffffff;\n overflow: hidden;\n font-family: var(--font-primary, "Poppins", sans-serif);\n}\n\n.lpc-header {\n background: #ffffff;\n padding: 56px 16px 28px;\n}\n\n.lpc-banner {\n max-width: 100%;\n height: auto;\n display: block;\n margin: 0 auto 20px;\n}\n\n.lpc-align-left {\n text-align: left;\n}\n\n.lpc-align-center {\n text-align: center;\n}\n\n.lpc-align-right {\n text-align: right;\n}\n\n.lpc-heading {\n margin: 0px;\n color: rgba(0, 0, 0, 0.87);\ntext-align: center;\nfont-family: var(--font-primary, "Poppins", sans-serif);\nfont-size: 32px;\nfont-style: normal;\nfont-weight: 600;\nline-height: 38.78px; /* 121.187% */\nletter-spacing: -0.16px;\n}\n\n.lpc-subheading {\n margin-top: 12px;\n color: #292C77;\ntext-align: center;\nfont-family: var(--font-primary, "Poppins", sans-serif);\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 112%; /* 17.92px */\n}\n\n.lpc-sectionTitle {\n margin: 10px 0 0;\n color: #636381;\n font-size: 14px;\n line-height: 1.4;\n}\n\n.lpc-tierBar {\n width: 100%;\n}\n\n.lpc-tierRow {\n max-width: 1200px;\n margin: 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 0;\n}\n\n.lpc-tierButton {\n border: 0;\n outline: none;\n appearance: none;\n cursor: pointer;\n min-width: 108px;\n padding: 20px 18px;\n color: rgba(0, 0, 0, 0.87);\ntext-align: center;\nfont-family: var(--font-primary, "Poppins", sans-serif);\nfont-size: 24px;\nfont-style: normal;\nfont-weight: 700;\nline-height: 36px; /* 150% */\n border-bottom: 4px solid transparent;\n transition: background-color 0.2s ease, border-color 0.2s ease;\n}\n\n.lpc-filterBar {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: center;\n gap: 12px;\n width: 100%;\n max-width: 1200px;\n margin: 24px auto 8px;\n padding: 0 24px;\n box-sizing: border-box;\n}\n\n.lpc-filterTab {\n appearance: none;\n cursor: pointer;\n border: 1px solid #E2E2E8;\n background: transparent;\n padding: 10px 24px;\n border-radius: 999px;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 16px;\n font-weight: 500;\n line-height: 1.2;\n color: inherit;\n transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;\n white-space: nowrap;\n}\n\n.lpc-filterTab:not(.lpc-filterTab--active):hover {\n background: var(--lpc-filter-hover-bg, #25262D) !important;\n color: var(--lpc-filter-hover-text, #FFFFFF) !important;\n border-color: var(--lpc-filter-hover-bg, #25262D) !important;\n}\n\n.lpc-filterTab--active {\n background: #1C1C1D;\n color: #FFFFFF;\n border-color: #1C1C1D;\n}\n\n.lpc-filterTab--active:hover {\n opacity: 0.92;\n}\n\n.lpc-balanceBar {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n margin: 20px 60px 8px;\n padding: 10px 14px;\n background: #d9e4eb;\n}\n\n.lpc-balanceLabel {\n color: #000;\nfont-family: Poppins;\nfont-size: 18px;\nfont-style: normal;\nfont-weight: 500;\nline-height: 31.9px; \n}\n\n.lpc-balanceValue {\n color: #000;\ntext-align: center;\nfont-family: Poppins;\nfont-size: 18px;\nfont-style: normal;\nfont-weight: 700;\nline-height: 31.9px; \n}\n\n.lpc-cardList {\n margin: 0;\n padding: 20px 60px 50px;\n gap: 36px;\n}\n\n.lpc-cardList--scroll {\n display: flex;\n overflow-x: auto;\n overflow-y: hidden;\n scroll-behavior: smooth;\n}\n\n.lpc-cardList--scroll::-webkit-scrollbar {\n height: 0;\n}\n\n.lpc-cardList--grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));\n}\n\n.lpc-cardList--wrap {\n display: flex;\n flex-wrap: wrap;\n}\n\n.lpc-emptyState {\n grid-column: 1 / -1;\n min-height: 240px;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #25262D;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 18px;\n font-weight: 500;\n}\n\n.lpc-card {\n flex: 0 0 360px;\n min-height: 430px;\n border: 1px solid;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n\n.lpc-cardList--grid .lpc-card {\n flex: unset;\n}\n\n.lpc-cardList--wrap .lpc-card {\n flex: 0 0 360px;\n}\n\n.lpc-imageWrap {\n width: 100%;\n aspect-ratio: 1 / 1;\n background: #ffffff;\n overflow: hidden;\n}\n\n.lpc-image {\n width: 100%;\n height: 100%;\n object-fit: contain;\n object-position: center;\n display: block;\n}\n\n.lpc-meta {\n padding: 14px 10px 12px;\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n}\n\n.lpc-coins {\n color: #A5A5A5;\nfont-family: var(--font-primary, "Poppins", sans-serif);\nfont-size: 11px;\nfont-style: normal;\nfont-weight: 600;\nline-height: 110%; /* 12.1px */\nletter-spacing: 0.109px;\npadding: 3px 0px;\n}\n\n.lpc-title {\n overflow: hidden;\ncolor: var(--Text-color, #252B42);\ntext-overflow: ellipsis;\nfont-family: var(--font-primary, "Poppins", sans-serif);\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 700;\nline-height: 120%;\nletter-spacing: 0.109px;\ndisplay: -webkit-box;\n-webkit-line-clamp: 2;\n-webkit-box-orient: vertical;\n min-height: 40px;\n margin: 0;\n}\n\n.lpc-description {\n margin: 6px 0 0;\n color: #E4A8BD;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 112%;\n}\n\n.lpc-ratingRow {\n padding: 5px 0px;\n display: flex;\n align-items: center;\n gap: 6px;\n color: #4b4d60;\n font-size: 16px;\n line-height: 1.2;\n}\n\n.lpc-star {\n color: #f6a623;\n font-size: 14px;\n}\n\n.lpc-ratingText {\n color: #3A3A3A;\nfont-family: var(--font-primary, "Poppins", sans-serif);\nfont-size: 11px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 150%; /* 16.5px */\n}\n\n.lpc-priceRow {\n margin-top: auto;\n padding: 10px 0 5px;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #1f1f1f;\n}\n\n.lpc-priceMuted {\n color: #767676;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 120%;\n}\n\n.lpc-priceStrikethrough {\n color: #767676;\n text-decoration: line-through;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 120%;\n}\n\n.lpc-priceNow {\n color: #111111;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 120%;\n}\n\n.lpc-pricePlus {\n color: #111111;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 120%;\n}\n\n.lpc-priceCoins {\n color: #111111;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 14px;\n font-style: normal;\n font-weight: 700;\n line-height: 120%;\n}\n\n.lpc-coinIcon {\n width: 14px;\n height: 14px;\n object-fit: contain;\n display: inline-block;\n}\n\n.lpc-cta {\n margin-top: 8px;\n border: 1px solid transparent;\n outline: none;\n width: 100%;\n padding: 12px 14px;\n cursor: pointer;\n background: #DC8EAB;\n color: var(--Theme-Text-Color, #FFF);\ntext-align: center;\nfont-family: var(--font-primary, "Poppins", sans-serif);\nfont-size: 14px;\nfont-style: normal;\nfont-weight: 700;\nline-height: 180%; /* 25.2px */\n/* text-transform: uppercase; */\n box-shadow: var(--lpc-cta-shadow);\n transition: transform 0.15s ease, box-shadow 0.15s ease;\n}\n\n.lpc-cta:hover:not(:disabled) {\n transform: translateY(-1px);\n}\n\n.lpc-cta:active:not(:disabled) {\n transform: translateY(1px);\n box-shadow: var(--lpc-cta-shadow-active);\n}\n\n.lpc-cta:disabled {\n cursor: not-allowed;\n}\n\n.lpc-nav {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 0px;\n padding: 0px 0 30px;\n}\n\n.lpc-navBtn {\n padding: 9px;\n border: none;\n background: transparent;\n color: #bcbcc7;\n font-size: 37px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;\n}\n\n.lpc-navBtn:disabled {\n color: #bcbcc7;\n opacity: 0.75;\n cursor: not-allowed;\n}\n\n.lpc-navBtn--enabled {\n background: #ececef;\n color: #3b3c4b;\n}\n\n@media (max-width: 1024px) {\n .lpc-heading {\n font-size: 32px !important;\n }\n\n .lpc-tierButton {\n min-width: 84px;\n padding: 16px 14px;\n font-size: 14px;\n }\n\n .lpc-cardList {\n padding: 20px 16px;\n gap: 12px;\n }\n\n .lpc-balanceBar {\n margin: 0 16px 8px;\n padding: 8px 10px;\n }\n\n .lpc-filterBar {\n gap: 8px;\n padding: 0 16px;\n margin-top: 16px;\n }\n\n .lpc-filterTab {\n padding: 8px 16px;\n font-size: 14px;\n }\n\n .lpc-balanceLabel,\n .lpc-balanceValue {\n font-size: 14px;\n }\n\n .lpc-card {\n flex-basis: 260px;\n min-height: 360px;\n }\n\n .lpc-coins {\n font-size: 11px;\n }\n\n .lpc-title {\n font-size: 16px;\n }\n\n .lpc-ratingRow {\n font-size: 12px;\n }\n\n .lpc-cta {\n padding: 12px;\n font-size: 13px;\n }\n\n .lpc-navBtn {\n width: 42px;\n height: 42px;\n font-size: 24px;\n }\n}\n');const hf={sectionTitle:"Get your favorites for free",subheading:"Earn more and unlock Freebies",display:"scroll",alignment:"center",titleFontSize:46,titleColor:"#25262D",subtitleColor:"#41439A",tabBackgroundColor:"#FFFFFF",tabActiveColor:"#FFFFFF",tabActiveTextColor:"#25262D",tabTextColor:"#25262D",cardBackgroundColor:"#FFFFFF",buttonColor:"#DC8EAB",buttonTextColor:"#FFFFFF",borderColor:"#E2E2E8",roundness:0,ctaText:"Sign in to access",coinBalanceLabel:"Balance:"},bf=e=>{if(null==e||""===e)return null;const t="number"==typeof e?e.toString():e;return t.includes("₹")?t:`₹${t}`},wf=({config:a})=>{const i={...hf,...a},{sectionTitle:l,catalogBanner:s,coinBalance:c,coinBalanceLabel:d,coinIconUrl:p,coinName:m,display:u,alignment:g,titleFontSize:f,titleColor:y,tabBackgroundColor:x,tabActiveColor:h,tabActiveTextColor:b,tabTextColor:w,cardBackgroundColor:v,buttonColor:C,buttonTextColor:E,borderColor:k,roundness:T,tiers:S,selectedTierId:N,filters:F,selectedFilterId:B,onFilterChange:$,products:z,ctaText:I}=i,P=o(null),[D,A]=t(!1),[_,L]=t(!1),[R,O]=t(null),M=r(()=>z,[z]),V=e=>{if(!P.current)return;const t=.8*P.current.clientWidth;P.current.scrollBy({left:"left"===e?-t:t,behavior:"smooth"})};n(()=>{const e=P.current;if(!e)return;const t=()=>{const t=e.scrollWidth-e.clientWidth;A(e.scrollLeft>1),L(e.scrollLeft<t-1)};return t(),e.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t),()=>{e.removeEventListener("scroll",t),window.removeEventListener("resize",t)}},[M.length]);const W="grid"===u?"lpc-cardList lpc-cardList--grid":"wrap"===u?"lpc-cardList lpc-cardList--wrap":"lpc-cardList lpc-cardList--scroll";return e.createElement("section",{className:"lpc-root"},e.createElement("div",{className:`lpc-header lpc-align-${g||"center"}`},s?e.createElement("img",{className:"lpc-banner",src:s,alt:"Catalog banner"}):null,l?e.createElement("h2",{className:"lpc-heading",style:{color:y,fontSize:`${f}px`}},l):null),null!=c&&""!==c?e.createElement("div",{className:"lpc-balanceBar"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none"},e.createElement("path",{d:"M1.53613 6.91208H16.1281C16.3318 6.91208 16.5272 6.99299 16.6712 7.13702C16.8152 7.28105 16.8961 7.47639 16.8961 7.68008V15.3601C16.8961 15.5638 16.8152 15.7591 16.6712 15.9031C16.5272 16.0472 16.3318 16.1281 16.1281 16.1281H2.30413C2.10045 16.1281 1.9051 16.0472 1.76107 15.9031C1.61705 15.7591 1.53613 15.5638 1.53613 15.3601V6.91208ZM2.30413 2.30408H13.8241V5.37608H1.53613V3.07208C1.53613 2.86839 1.61705 2.67305 1.76107 2.52902C1.9051 2.38499 2.10045 2.30408 2.30413 2.30408ZM11.5201 10.7521V12.2881H13.8241V10.7521H11.5201Z",fill:"black"})),e.createElement("span",{className:"lpc-balanceLabel"},d),p?e.createElement("img",{className:"lpc-coinIcon",src:p,alt:"Coin icon"}):null,e.createElement("span",{className:"lpc-balanceValue"},c," ",m??"coins")):null,F&&F.length>0?e.createElement("div",{className:"lpc-filterBar",style:{background:x},role:"tablist"},F.map(t=>{const n=B===t.id;return e.createElement("button",{key:t.id,type:"button",role:"tab","aria-selected":n,className:"lpc-filterTab "+(n?"lpc-filterTab--active":""),style:{background:n?h:"transparent",color:n?b:w,borderColor:n?h:k||"#E2E2E8","--lpc-filter-hover-bg":w||"#25262D","--lpc-filter-hover-text":x||"#FFFFFF"},onClick:()=>$?.(t)},t.label)})):null,e.createElement("div",{className:W,ref:P},0===M.length?e.createElement("div",{className:"lpc-emptyState"},"No products found"):M.map(t=>{const n=R===t.id,r=`${T||0}px`,o=Boolean(t.productUrl),a="fixed_price_product"!==t.couponType&&null!==t.coinsRequired&&void 0!==t.coinsRequired;return e.createElement("article",{key:t.id,className:"lpc-card",style:{background:v,borderColor:k,borderRadius:r,cursor:o?"pointer":void 0},onClick:()=>{t.productUrl&&"undefined"!=typeof window&&(window.location.href=t.productUrl)}},e.createElement("div",{className:"lpc-imageWrap",style:{borderTopLeftRadius:r,borderTopRightRadius:r}},e.createElement("img",{className:"lpc-image",src:t.imageUrl,alt:t.title})),e.createElement("div",{className:"lpc-meta"},e.createElement("h3",{className:"lpc-title"},t.title),t.description?e.createElement("p",{className:"lpc-description"},t.description):null,e.createElement("div",{className:"lpc-priceRow"},bf(t.mrp)?e.createElement(e.Fragment,null,e.createElement("span",{className:"lpc-priceMuted"},"MRP:"),e.createElement("span",{className:"lpc-priceStrikethrough"},bf(t.mrp))):null,bf(t.price)?e.createElement("span",{className:"lpc-priceNow"},bf(t.price)):null,bf(t.price)&&a?e.createElement("span",{className:"lpc-pricePlus"},"+"):null,p&&a?e.createElement("img",{className:"lpc-coinIcon",src:p,alt:"Coin icon"}):null,a?e.createElement("span",{className:"lpc-priceCoins"},t.coinsRequired," ",m??"coins"):null)),e.createElement("button",{className:"lpc-cta",style:{background:C,color:E,borderColor:C,borderBottomLeftRadius:r,borderBottomRightRadius:r,boxShadow:"0 3px 0 rgba(0, 0, 0, 0.18)","--lpc-cta-shadow":"0 3px 0 rgba(0, 0, 0, 0.18)","--lpc-cta-shadow-active":"0 1px 0 rgba(0, 0, 0, 0.18)",opacity:t.disabled?.55:1},type:"button","aria-busy":n,disabled:Boolean(t.disabled)||null!==R,onClick:async e=>{if(e.stopPropagation(),t.onButtonClick&&!t.disabled&&null===R)try{O(t.id),await t.onButtonClick(t)}finally{O(null)}}},n?e.createElement(og,{size:18,color:"#fff",centered:!0}):t.buttonText||I))})),"scroll"===u?e.createElement("div",{className:"lpc-nav"},e.createElement("button",{className:"lpc-navBtn "+(D?"lpc-navBtn--enabled":""),type:"button",onClick:()=>V("left"),disabled:!D},e.createElement(Nt,null)),e.createElement("button",{className:"lpc-navBtn "+(_?"lpc-navBtn--enabled":""),type:"button",onClick:()=>V("right"),disabled:!_},e.createElement(Ft,null))):null)},vf={wrap:{boxSizing:"border-box",display:"flex",width:"100%"},badge:{boxSizing:"border-box",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,minHeight:44,width:"fit-content",maxWidth:"100%",padding:"6px 24px",border:"1px solid #8f8f8f",borderRadius:999,background:"#fff",fontFamily:"Poppins, system-ui, -apple-system, sans-serif"},content:{boxSizing:"border-box",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,width:"fit-content",maxWidth:"100%",minHeight:"1em"},text:{display:"inline-flex",alignItems:"center",margin:0,color:"#2b2b2b",fontSize:18,fontWeight:400,lineHeight:1,whiteSpace:"nowrap"},coins:{display:"inline-flex",alignItems:"center",margin:0,color:"#2b2b2b",fontSize:20,fontWeight:700,lineHeight:1,whiteSpace:"nowrap"},icon:{boxSizing:"border-box",display:"block",width:26,height:26,objectFit:"contain",flex:"0 0 auto"}},Cf={left:"flex-start",center:"center",right:"flex-end"},Ef=e=>"number"==typeof e?`${e}px`:e;function kf({prefix:t="Get",iconUrl:n="",suffix:r="Coins",coinsEarned:o=0,widgetBackground:a="#FFFFFF",alignment:i="center",textColor:l="#2B2B2B",borderColor:s="#8F8F8F",badgeRoundness:c="999px",fontSize:d=18}){const p=Ef(d)??"18px",m="number"==typeof d?`${d+2}px`:`calc(${p} + 2px)`;return e.createElement("div",{className:"yt-peb-wrap",style:{...vf.wrap,justifyContent:Cf[i]}},e.createElement("div",{className:"yt-peb",style:{...vf.badge,background:a,borderColor:s,borderRadius:Ef(c)}},e.createElement("div",{className:"yt-peb__content",style:{...vf.content,textAlign:i}},t?e.createElement("span",{className:"yt-peb__text",style:{...vf.text,color:l,fontSize:p}},t):null,n?e.createElement("img",{className:"yt-peb__icon",style:vf.icon,src:n,alt:"","aria-hidden":"true"}):null,e.createElement("span",{className:"yt-peb__coins",style:{...vf.coins,color:l,fontSize:m}},o),r?e.createElement("span",{className:"yt-peb__text",style:{...vf.text,color:l,fontSize:p}},r):null)))}const Tf=["banner","referrals","gettingStarted","waysToEarn","customImage","customHtml","vipTiers","rewards","waysToRedeem"],Sf=e=>"INR"===e?"₹":e?`${e} `:"",Nf=(e,t)=>{const n=Number(e??0);return n>0?`min order ${Sf(t)}${n.toLocaleString()}`:"no mov"};function Ff(e){if(null==e||""===e)return"-";const t=Number(e);return Number.isNaN(t)?String(e):t.toLocaleString()}const Bf=({config:t,signedIn:n=!1,referralLocked:r=!1,userData:o,onBannerButtonClick:a,onReferralButtonClick:i,onReferralCopyClick:l,onRewardsButtonClick:s,onRedeemClick:c,onEarnMoreClick:d,onActiveCouponCopy:p})=>{const{sectionOrder:m,banner:u,referrals:g,gettingStarted:f,waysToEarn:y,vipTiers:x,rewards:h,waysToRedeem:b,customImage:w,customHtml:v,primaryColor:C="#1C1C1D",primaryContrastColor:P="#FFFFFF",secondaryColor:D="#FFFFFF",secondaryContrastColor:A="#000000",customCss:_,enableCustomCss:L}=t||{},R="undefined"!=typeof window&&window.innerWidth<=768,O=()=>{"undefined"!=typeof window&&window.ytapp&&(window.ytapp.loyaltyWidgetOpen=!0,window.dispatchEvent(new Event("loyaltyWidgetOpenChanged")))},M={...{padding:"12px 32px",borderRadius:"30px",fontSize:"14px",fontWeight:600,cursor:"pointer",textTransform:"uppercase",border:`1px solid ${C}`,transition:"all 0.3s ease"},backgroundColor:C,color:P,borderColor:C},V=n?u?.signedInView:u?.guestView,W={visibility:u?.visibility??"show",backgroundColor:u?.backgroundColor??"#F3F3F3",fontColor:u?.fontColor??"#000000",alignment:u?.alignment??"center",imageUrl:u?.imageUrl,badgeTitle:u?.badge?.enabled?u.badge.title?.trim():void 0,title:V?.title,subtitle:V?.subtitle,buttonText:u?.guestView?.buttonText,balanceCoins:u?.signedInView?.balanceCoins??o?.balanceCoins??(null!=o?.currentBalance?String(o.currentBalance):void 0),currentTier:u?.signedInView?.currentTier,nextTier:u?.signedInView?.nextTier,currentLtv:u?.signedInView?.currentLtv,nextTierLtv:u?.signedInView?.nextTierLtv,tierIcon:u?.signedInView?.tierIcon,memberSince:u?.signedInView?.memberSince,rewardTierCriteria:u?.signedInView?.rewardTierCriteria??o?.rewardTierCriteria,purchaseValueMethod:u?.signedInView?.purchaseValueMethod??o?.purchaseValueMethod,currencyCode:u?.signedInView?.currencyCode??o?.currencyCode,showTierProgress:u?.showTierProgress??!1},j=Number(W.currentLtv),H=Number(W.nextTierLtv),q=W.showTierProgress&&Number.isFinite(j)&&Number.isFinite(H)&&H>0,U=q?Math.min(100,Math.max(0,j/H*100)):0,Q=q?Math.max(0,H-j):0,Y=function(e,t,n,r,o){const a="INR"===o?"₹":o?`${o} `:"",i=Ff(n),l=Ff(r);return"ltv"===e&&"order_count"===t?{currentLabel:`${i} orders`,remainingLabel:`${l} orders`}:"ltv"===e&&"purchase_value"===t?{currentLabel:`${a}${i} spent`,remainingLabel:`${a}${l}`}:"loyalty_points"===e?{currentLabel:`${i} points`,remainingLabel:`${l} points`}:{currentLabel:i,remainingLabel:l}}(W.rewardTierCriteria,W.purchaseValueMethod,j,Q,W.currencyCode),Z=n?g?.signedInView:g?.guestView,G={visibility:g?.visibility??"show",backgroundColor:g?.backgroundColor??"#FFFFFF",fontColor:g?.fontColor??"#111111",badgeTitle:g?.badge?.enabled?g.badge.title?.trim():void 0,imageUrl:g?.imageUrl,imagePosition:g?.imagePosition??"left",guestVisibility:g?.guestVisibility??!0,title:Z?.title,subtitle:Z?.subtitle,buttonText:g?.guestView?.buttonText,referralLinkValue:g?.signedInView?.referralLinkValue??o?.referralLink},X={visibility:f?.visibility??"show",backgroundColor:f?.backgroundColor??"#FFFFFF",fontColor:f?.fontColor??"#111111",badgeTitle:f?.badge?.enabled?f.badge.title?.trim():void 0,title:f?.title,subtitle:f?.subtitle,steps:f?.steps},K={visibility:y?.visibility??"show",backgroundColor:y?.backgroundColor??"#FFFFFF",fontColor:y?.fontColor??"#111111",badgeTitle:y?.badge?.enabled?y.badge.title?.trim():void 0,title:y?.title,subtitle:y?.subtitle,guestVisibility:y?.guestVisibility??!0,showIcons:y?.showIcons??!0,ctaBg:y?.ctaBg??"#4E7E80",ctaFontColor:y?.ctaFontColor??"#FFFFFF",items:y?.items},J={visibility:h?.visibility??"show",backgroundColor:h?.backgroundColor??"#FFFFFF",fontColor:h?.fontColor??"#111111",badgeTitle:h?.badge?.enabled?h.badge.title?.trim():void 0,imageUrl:h?.imageUrl,imagePosition:h?.imagePosition??"left",title:h?.title,description:h?.description,disclaimerText:h?.disclaimerText,buttonText:h?.buttonText,bottomCtaTitle:h?.bottomCtaTitle,bottomCtaSubtitle:h?.bottomCtaSubtitle},ee={visibility:b?.visibility??"show",backgroundColor:b?.backgroundColor??"#FFFFFF",fontColor:b?.fontColor??"#111111",badgeTitle:b?.badge?.enabled?b.badge.title?.trim():void 0,title:b?.title,subtitle:b?.subtitle,balanceLabel:b?.balanceLabel??"points available",balanceValue:b?.balanceValue??o?.balanceCoins??(null!=o?.currentBalance?String(o.currentBalance):void 0),balanceCtaText:b?.balanceCtaText??"earn more",currencyCode:b?.currencyCode??o?.currencyCode,activeCoupon:b?.activeCoupon?.trim(),activeCouponLabel:b?.activeCouponLabel??"You have an active coupon",freebies:b?.freebies,items:b?.items},te={visibility:w?.visibility??"show",imageUrl:w?.imageUrl},ne={visibility:v?.visibility??"show",htmlText:v?.htmlText},re={visibility:x?.visibility??"show",backgroundColor:x?.backgroundColor??"#FFFFFF",fontColor:x?.fontColor??"#111111",badgeTitle:x?.badge?.enabled?x.badge.title?.trim():void 0,title:x?.title,subtitle:x?.subtitle,benefitHeaderLabel:x?.benefitHeaderLabel,tiers:x?.tiers,rows:x?.rows,signedInView:{benefitHeaderLabel:x?.signedInView?.benefitHeaderLabel??x?.benefitHeaderLabel,statusLabel:x?.signedInView?.statusLabel,statuses:x?.signedInView?.statuses}},oe=async e=>{const t=e.code;t&&(e.onCopy?await e.onCopy(t):"undefined"!=typeof navigator&&navigator.clipboard&&await navigator.clipboard.writeText(t))},ae=Array.isArray(m)?m:[],ie=Array.from(new Set(ae.filter(e=>Tf.includes(e)))),le=[...ie,...Tf.filter(e=>!ie.includes(e))],se=e=>le.indexOf(e);return e.createElement("div",{className:"yt-loyalty-page-container",style:{fontFamily:"'Poppins', sans-serif",display:"flex",flexDirection:"column",width:"100%",maxWidth:"1440px",margin:"0 auto",overflow:"hidden",boxSizing:"border-box"}},L&&_?.trim()&&e.createElement("style",{"data-yt-custom-css":"loyalty-page",dangerouslySetInnerHTML:{__html:_}}),"show"===W.visibility&&e.createElement("div",{className:"yt-loyalty-page-banner","data-signed-in":n?"true":void 0,"data-current-tier":n&&W.currentTier?W.currentTier:void 0,style:{order:se("banner"),display:"flex",alignItems:"center",justifyContent:"left"===W.alignment?"flex-start":"right"===W.alignment?"flex-end":"center",width:"100%",backgroundColor:W.backgroundColor,backgroundImage:W.imageUrl?`url(${W.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",border:"1px solid #E1E1E1",padding:R?"72px 20px":"120px 32px"}},e.createElement("div",{className:"yt-loyalty-page-banner-content",style:{width:"100%",maxWidth:"760px",textAlign:W.alignment,display:"flex",flexDirection:"column",alignItems:"left"===W.alignment?"flex-start":"right"===W.alignment?"flex-end":"center",gap:R?"18px":"20px"}},W.badgeTitle?e.createElement("div",{className:"yt-loyalty-page-banner-badge",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"28px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:"#111111",fontSize:"14px",lineHeight:1,fontWeight:600}},W.badgeTitle):null,e.createElement("h1",{className:"yt-loyalty-page-banner-title",style:{margin:0,fontSize:R?"40px":"56px",lineHeight:R?1.05:1.08,letterSpacing:"-0.03em",fontWeight:700,color:W.fontColor}},W.title),e.createElement("p",{className:"yt-loyalty-page-banner-subtitle",style:{margin:0,maxWidth:"620px",fontSize:R?"22px":"28px",lineHeight:1.18,fontWeight:400,color:W.fontColor}},W.subtitle),n?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-loyalty-page-banner-balance-card",style:{display:"flex",flexDirection:"column",alignItems:"center",marginTop:R?"8px":"10px",minWidth:R?"280px":"288px",padding:R?"18px 24px":"18px 28px",borderRadius:"20px",border:"1px solid rgba(255,255,255,0.72)",background:"linear-gradient(180deg, rgba(255,255,255,0.66) 0%, rgba(238,238,238,0.92) 100%)",boxShadow:"0 18px 50px rgba(17, 17, 17, 0.08), inset 0 1px 0 rgba(255,255,255,0.75)",backdropFilter:"blur(12px)"}},e.createElement("div",{style:{marginBottom:"6px",fontSize:"14px",lineHeight:1.2,color:W.fontColor}},"Current Balance"),e.createElement("div",{style:{fontSize:R?"56px":"64px",lineHeight:.95,letterSpacing:"-0.05em",fontWeight:700,color:W.fontColor}},W.balanceCoins),W.showTierProgress&&W.currentTier?e.createElement("div",{className:"yt-loyalty-page-banner-tier","data-tier":W.currentTier,style:{display:"inline-flex",alignItems:"center",gap:"8px",marginTop:"12px",color:W.fontColor,fontFamily:"Inter",fontSize:R?"16px":"18px",fontWeight:700,lineHeight:1.1,letterSpacing:"0.08em",textTransform:"uppercase"}},W.tierIcon?e.createElement("img",{src:W.tierIcon,alt:"",style:{width:"24px",height:"24px",objectFit:"contain",display:"block"}}):e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e.createElement("path",{d:"M12 2L20 7V17L12 22L4 17V7L12 2Z",fill:C,stroke:C,strokeWidth:"1.2",strokeLinejoin:"round"}),e.createElement("path",{d:"M12 2L20 7L12 12L4 7L12 2Z",fill:"rgba(255,255,255,0.3)",strokeLinejoin:"round"})),W.currentTier):null),q?e.createElement("div",{className:"yt-loyalty-page-banner-progress",style:{marginTop:"10px",width:"100%",maxWidth:"640px",padding:R?"14px 18px":"16px 24px",borderRadius:"16px",backgroundColor:"#FFFFFF",boxShadow:"0 8px 22px rgba(17, 17, 17, 0.06)",boxSizing:"border-box"}},W.memberSince||W.currentTier?e.createElement("div",{className:"yt-loyalty-page-banner-progress-heading",style:{marginBottom:"12px",fontSize:R?"16px":"18px",lineHeight:1.2,fontWeight:600,color:W.fontColor}},W.currentTier?`${W.currentTier}${W.memberSince?` since ${W.memberSince}`:""}`:"Member"):null,e.createElement("div",{className:"yt-loyalty-page-banner-progress-bar",style:{position:"relative",width:"100%",height:R?"32px":"40px",display:"flex",alignItems:"center"}},e.createElement("div",{className:"yt-loyalty-page-banner-progress-track",style:{width:"100%",height:"8px",borderRadius:"999px",backgroundColor:"#E5E5E5",overflow:"hidden"}},e.createElement("div",{className:"yt-loyalty-page-banner-progress-fill",style:{display:"block !important",width:`${U}%`,height:"100%",backgroundColor:C||W.fontColor||"#1C1C1D",borderRadius:"999px",transition:"width 0.3s ease"}})),e.createElement("div",{className:"yt-loyalty-page-banner-progress-icon",style:{position:"absolute",left:`calc(${U}% - ${(R?32:40)*U/100}px)`,top:"50%",transform:"translateY(-50%)",width:R?"32px":"40px",height:R?"32px":"40px",display:"flex",alignItems:"center",justifyContent:"center",transition:"left 0.3s ease"}},W.tierIcon?e.createElement("img",{src:W.tierIcon,alt:"",style:{width:"100%",height:"100%",objectFit:"contain",display:"block"}}):e.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e.createElement("path",{d:"M12 2L20 7V17L12 22L4 17V7L12 2Z",fill:C,stroke:C,strokeWidth:"1.2",strokeLinejoin:"round"}),e.createElement("path",{d:"M12 2L20 7L12 12L4 7L12 2Z",fill:"rgba(255,255,255,0.3)",strokeLinejoin:"round"})))),e.createElement("div",{className:"yt-loyalty-page-banner-progress-meta",style:{marginTop:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",fontSize:R?"13px":"14px",lineHeight:1.2,fontWeight:500,color:W.fontColor}},e.createElement("span",null,0===j?"member":Y.currentLabel),W.nextTier?e.createElement("span",null,Y.remainingLabel," to"," ",W.nextTier):null)):null):e.createElement("button",{className:"yt-loyalty-page-banner-button",style:{...M,marginTop:R?"8px":"10px",padding:R?"14px 26px":"16px 30px",border:"none",borderRadius:"14px",boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)",fontSize:R?"16px":"18px",fontWeight:500,textTransform:"none"},onClick:async()=>{a?await a():O()}},W.buttonText))),"show"===G.visibility&&(n||G.guestVisibility)&&e.createElement("div",{className:"yt-loyalty-page-referrals",style:{order:se("referrals"),width:"100%",backgroundColor:G.backgroundColor,boxSizing:"border-box"}},e.createElement("div",{className:"yt-loyalty-page-referrals-content",style:{width:"100%",boxSizing:"border-box"}},e.createElement("div",{className:"yt-loyalty-page-referrals-card",style:{width:"100%",boxSizing:"border-box",display:"flex",flexDirection:R?"column":"row",alignItems:"stretch",overflow:"hidden",border:"1px solid #E1E1E1"}},e.createElement("div",{className:"yt-loyalty-page-referrals-image-wrapper",style:{flex:R?"1 1 auto":"0 0 50%",minWidth:0,boxSizing:"border-box",order:R||"left"===G.imagePosition?0:1,minHeight:R?"320px":"560px"}},e.createElement("div",{className:"yt-loyalty-page-referrals-image",style:{display:"block",width:"100%",height:"100%",minHeight:R?"320px":"560px",backgroundImage:G.imageUrl?`url(${G.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat"}})),e.createElement("div",{className:"yt-loyalty-page-referrals-copy",style:{flex:R?"1 1 auto":"0 0 50%",minWidth:0,boxSizing:"border-box",order:R||"left"===G.imagePosition?1:0,padding:R?"32px 24px 40px":"72px 48px",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"}},G.badgeTitle?e.createElement("div",{className:"yt-loyalty-page-referrals-badge",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"28px",marginBottom:"44px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:"#111111",fontSize:"14px",lineHeight:1,fontWeight:600}},G.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-referrals-title",style:{margin:0,maxWidth:"520px",fontSize:R?"28px":n?"34px":"36px",lineHeight:1.1,letterSpacing:"-0.03em",fontWeight:400,color:G.fontColor}},G.title),e.createElement("p",{className:"yt-loyalty-page-referrals-subtitle",style:{margin:"18px 0 0",maxWidth:"580px",fontSize:R?"16px":"18px",lineHeight:1.24,fontWeight:400,color:G.fontColor}},G.subtitle),n&&r?e.createElement("div",{className:"yt-loyalty-page-referrals-locked",style:{marginTop:"34px",display:"flex",alignItems:"center",gap:"12px",maxWidth:"440px",padding:"14px 18px",border:"1px dashed rgba(0, 0, 0, 0.3)",borderRadius:"14px",backgroundColor:"rgba(136, 136, 136, 0.08)"}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:G.fontColor,strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},"aria-hidden":"true"},e.createElement("rect",{x:"4",y:"10.5",width:"16",height:"10",rx:"2.2"}),e.createElement("path",{d:"M8 10.5V7.5a4 4 0 0 1 8 0v3"}),e.createElement("circle",{cx:"12",cy:"15.5",r:"1.4"})),e.createElement("div",{style:{textAlign:"left"}},e.createElement("p",{style:{margin:0,fontSize:"15px",lineHeight:1.3,fontWeight:600,color:G.fontColor}},"Referrals unlock after your first order"),e.createElement("p",{style:{margin:"4px 0 0",fontSize:"13px",lineHeight:1.4,fontWeight:400,opacity:.75,color:G.fontColor}},"Once your first order is delivered you can share your referral link and start earning rewards"))):n?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-loyalty-page-referrals-link-row",style:{width:"100%",minWidth:0,marginTop:"34px",display:"flex",alignItems:"center",gap:"10px"}},e.createElement("div",{className:"yt-loyalty-page-referrals-link-pill",style:{flex:1,minWidth:0,display:"flex",alignItems:"center",gap:"10px",minHeight:"38px",padding:"0 14px",border:"1px solid #D7D7D7",borderRadius:"999px",backgroundColor:"#FFFFFF"}},e.createElement("span",{style:{fontSize:"16px",lineHeight:1,color:"#222222"}},"↗"),e.createElement("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"14px",lineHeight:1.2,fontWeight:600,color:G.fontColor}},G.referralLinkValue)),e.createElement("button",{type:"button",onClick:async()=>{l&&G.referralLinkValue?await l(G.referralLinkValue):"undefined"!=typeof navigator&&navigator.clipboard&&G.referralLinkValue&&await navigator.clipboard.writeText(G.referralLinkValue)},style:{width:"38px",height:"38px",borderRadius:"999px",border:"1px solid #CFCDE8",backgroundColor:"#DFDCF4",color:"#6F68A7",fontSize:"14px",lineHeight:1,fontWeight:600,cursor:"pointer",flexShrink:0}},"⧉")),e.createElement("p",{style:{margin:"12px 0 0",fontSize:"14px",lineHeight:1.2,fontWeight:400,color:"#8A8A8A"}},"Share your referral link with your friend")):e.createElement("button",{className:"yt-loyalty-page-referrals-button",style:{...M,marginTop:"34px",padding:R?"14px 26px":"16px 30px",border:"none",borderRadius:"14px",boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)",fontSize:R?"16px":"18px",fontWeight:500,textTransform:"none"},onClick:async()=>{i?await i():O()}},G.buttonText))))),"show"===X.visibility&&e.createElement("div",{className:"yt-loyalty-page-getting-started",style:{order:se("gettingStarted"),backgroundColor:X.backgroundColor,border:"1px solid #E1E1E1",padding:R?"56px 20px":"72px 32px 88px"}},e.createElement("div",{className:"yt-loyalty-page-getting-started-content",style:{maxWidth:"1120px",margin:"0 auto",textAlign:"center"}},X.badgeTitle?e.createElement("div",{className:"yt-loyalty-page-getting-started-badge",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"28px",marginBottom:"22px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:"#111111",fontSize:"14px",lineHeight:1,fontWeight:600}},X.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-getting-started-title",style:{margin:0,fontSize:R?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:X.fontColor}},X.title),e.createElement("p",{className:"yt-loyalty-page-getting-started-subtitle",style:{margin:R?"14px auto 0":"16px auto 0",maxWidth:"620px",color:X.fontColor,fontSize:R?"16px":"18px",lineHeight:1.22,fontWeight:400}},X.subtitle),e.createElement("div",{className:"yt-loyalty-page-getting-started-grid",style:{marginTop:R?"40px":"64px",display:"flex",flexDirection:R?"column":"row",justifyContent:"space-between",alignItems:"stretch",gap:R?"28px":"24px"}},X.steps?.map((t,n)=>e.createElement("div",{key:n,className:"yt-loyalty-page-getting-started-step",style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",padding:R?"0":"0 18px"}},e.createElement("div",{className:"yt-loyalty-page-getting-started-step-number",style:{marginBottom:"10px",fontSize:R?"52px":"68px",lineHeight:.95,letterSpacing:"-0.04em",fontWeight:700,color:X.fontColor}},String(n+1)),e.createElement("div",{className:"yt-loyalty-page-getting-started-step-title",style:{marginBottom:"8px",fontSize:R?"24px":"28px",lineHeight:1.08,letterSpacing:"-0.03em",fontWeight:400,color:X.fontColor}},t.title),e.createElement("p",{className:"yt-loyalty-page-getting-started-step-description",style:{margin:0,maxWidth:"240px",fontSize:R?"16px":"18px",lineHeight:1.21,fontWeight:400,color:X.fontColor}},t.description)))))),"show"===K.visibility&&(n||K.guestVisibility)&&e.createElement("div",{className:"yt-loyalty-page-ways-to-earn",style:{order:se("waysToEarn"),backgroundColor:K.backgroundColor,border:"1px solid #E1E1E1",padding:R?"56px 20px":"72px 32px 64px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-content",style:{maxWidth:"1120px",margin:"0 auto",textAlign:"center"}},K.badgeTitle?e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-badge",style:{alignItems:"center",justifyContent:"center",display:"inline-flex",minHeight:"28px",marginBottom:"22px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:"#111111",fontSize:"14px",lineHeight:1,fontWeight:600}},K.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-ways-to-earn-title",style:{margin:0,fontSize:R?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:K.fontColor}},K.title),e.createElement("p",{className:"yt-loyalty-page-ways-to-earn-subtitle",style:{margin:R?"14px auto 0":"16px auto 0",maxWidth:"680px",color:K.fontColor,fontSize:R?"16px":"18px",lineHeight:1.22,fontWeight:400}},K.subtitle),e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-grid",style:{marginTop:R?"40px":"56px",display:"flex",flexWrap:"wrap",justifyContent:"center",columnGap:R?"28px":"24px",rowGap:"36px"}},K.items?.map((t,n)=>{const r=t.ctaTitle??t.signedInActionLabel,o=t.ctaVisible??Boolean(r),a=t.ctaDisabled??!1,i=K.ctaBg,l=K.ctaFontColor;return e.createElement("div",{key:n,className:"yt-loyalty-page-ways-to-earn-item",style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",width:R?"100%":"calc((100% - 48px) / 3)",maxWidth:R?"100%":"calc((100% - 48px) / 3)",padding:R?"0":"0 18px"}},K.showIcons?e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-item-icon",style:{fontSize:"32px",lineHeight:1,color:K?.fontColor??"#5A5A5A",marginBottom:"5px"}},(t=>{if(t&&"string"!=typeof t)return t;switch(t){case"birthday":return e.createElement(E,null);case"feedback":return e.createElement(z,null);case"wallet":return e.createElement($,null);case"referral":return e.createElement(B,null);case"instagram":return e.createElement(F,null);case"facebook":return e.createElement(N,null);case"twitter":return e.createElement(S,null);case"youtube":return e.createElement(T,null);default:return e.createElement(k,null)}})(t.icon)):null,e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-item-title",style:{marginBottom:"4px",fontSize:R?"24px":"28px",lineHeight:1.16,letterSpacing:"-0.03em",fontWeight:400,color:K.fontColor,minHeight:R?"56px":"72px",display:"flex",alignItems:"flex-start",justifyContent:"center"}},t.title),e.createElement("p",{className:"yt-loyalty-page-ways-to-earn-item-description",style:{margin:0,maxWidth:"240px",fontSize:R?"16px":"18px",lineHeight:1.21,fontWeight:400,color:K.fontColor,minHeight:R?"40px":"52px"}},t.description),e.createElement("div",{style:{marginTop:"4px",minHeight:"42px",width:"100%",display:"flex",justifyContent:"center"}},o&&r?e.createElement("button",{className:"yt-loyalty-page-ways-to-earn-item-action",style:{minWidth:R?"180px":"188px",minHeight:"42px",padding:"9px 20px",border:"none",borderRadius:"0px",backgroundColor:i,color:l,fontSize:"16px",lineHeight:1,fontWeight:600,cursor:a?"not-allowed":"pointer",opacity:a?.6:1},disabled:a,onClick:t.onClick},r):null))})))),"show"===te.visibility&&te.imageUrl?e.createElement("div",{className:"yt-loyalty-page-custom-image",style:{order:se("customImage"),backgroundColor:"#FFFFFF",border:"1px solid #E1E1E1"}},e.createElement("div",{style:{margin:"0 auto"}},e.createElement("img",{src:te.imageUrl,alt:"",style:{display:"block",width:"100%",height:"auto",objectFit:"cover"}}))):null,"show"===ne.visibility&&ne.htmlText?e.createElement("div",{className:"yt-loyalty-page-custom-html",style:{order:se("customHtml"),backgroundColor:"#FFFFFF",border:"1px solid #E1E1E1",padding:R?"32px 20px":"40px 32px",color:"#111111"}},e.createElement("div",{style:{maxWidth:"1200px",margin:"0 auto"},dangerouslySetInnerHTML:{__html:ne.htmlText}})):null,"show"===re.visibility&&e.createElement("div",{className:"yt-loyalty-page-vip-tiers",style:{order:se("vipTiers"),backgroundColor:re.backgroundColor,border:"1px solid #E1E1E1",padding:R?"56px 20px":"72px 32px 56px"}},e.createElement("div",{className:"yt-loyalty-page-vip-tiers-content",style:{maxWidth:"1200px",margin:"0 auto"}},e.createElement("div",{style:{textAlign:"center",marginBottom:R?"32px":"40px"}},re.badgeTitle?e.createElement("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"28px",marginBottom:"22px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:re.fontColor,fontSize:"14px",lineHeight:1,fontWeight:600}},re.badgeTitle):null,e.createElement("h2",{style:{margin:0,fontSize:R?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:re.fontColor}},re.title),e.createElement("p",{style:{margin:"16px auto 0",maxWidth:"760px",fontSize:R?"16px":"18px",lineHeight:1.22,fontWeight:400,color:re.fontColor}},re.subtitle)),e.createElement("div",{style:{overflowX:"auto",border:"1px solid #D7D7D7",backgroundColor:"#FFFFFF"}},e.createElement("table",{style:{width:"100%",minWidth:R?"760px":"100%",borderCollapse:"collapse",tableLayout:"fixed"}},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{style:{width:R?"240px":"28%",padding:"16px 14px",borderBottom:"1px solid #D7D7D7",textAlign:"left",color:re.fontColor,fontFamily:"Inter",fontSize:"15.654px",fontStyle:"normal",fontWeight:"700",lineHeight:"17.313px",letterSpacing:"0.693px",textTransform:"uppercase",backgroundColor:"#FFFFFF"}},re.benefitHeaderLabel),re.tiers?.map(t=>e.createElement("th",{key:t.id,style:{padding:"14px 12px",borderBottom:"1px solid #D7D7D7",backgroundColor:t.headerBackgroundColor??"#EFEFEF",textAlign:"center",color:"#FFFFFF"}},e.createElement("div",{style:{fontFamily:"Inter",fontSize:"15.654px",fontStyle:"normal",fontWeight:"700",lineHeight:"17.313px",letterSpacing:"0.693px",textTransform:"uppercase"}},t.title),t.pointsLabel?e.createElement("div",{style:{marginTop:"4px",fontSize:"12px",lineHeight:1.2,fontWeight:400,letterSpacing:"0.06em"}},t.pointsLabel):null))),n?e.createElement("tr",null,e.createElement("th",{style:{padding:"12px 14px",borderBottom:"1px solid #D7D7D7",textAlign:"left",fontSize:"14px",lineHeight:1.2,fontWeight:700,color:re.fontColor,textTransform:"uppercase",backgroundColor:"#FFFFFF"}},re.signedInView.statusLabel),re.tiers?.map(t=>{const n=re.signedInView.statuses?.find(e=>e.tierId===t.id),r="achieved"===n?.text?.trim().toLowerCase();return e.createElement("th",{key:`${t.id}-status`,style:{padding:"12px 10px",borderBottom:"1px solid #D7D7D7",textAlign:"center",backgroundColor:r?"#FFFFFF":"#F6F6F6",color:re.fontColor,fontSize:"12px",lineHeight:1.2,fontWeight:r?700:500,textTransform:"uppercase",letterSpacing:"0.04em"}},n?.text??"")})):null),e.createElement("tbody",null,re.rows?.map((t,n)=>e.createElement("tr",{key:`${t.title}-${n}`},e.createElement("td",{style:{padding:"14px 14px",borderBottom:n===(re.rows?.length??0)-1?"none":"1px solid #D7D7D7",verticalAlign:"middle"}},e.createElement("div",{style:{color:re.fontColor,fontFamily:"Poppins",fontSize:"15.023px",fontStyle:"normal",fontWeight:"600",lineHeight:"17.313px",letterSpacing:"0.693px"}},t.title),t.description?e.createElement("div",{style:{color:re.fontColor,fontFamily:"Inter",fontSize:"12.552px",fontStyle:"normal",fontWeight:300,lineHeight:"22.161px",letterSpacing:"0.693px"}},t.description):null),re.tiers?.map(r=>e.createElement("td",{key:`${t.title}-${r.id}`,style:{padding:"14px 10px",borderBottom:n===(re.rows?.length??0)-1?"none":"1px solid #D7D7D7",textAlign:"center",verticalAlign:"middle"}},t.tierIds.includes(r.id)?e.createElement("span",{style:{display:"inline-block",width:"10px",height:"10px",borderRadius:"999px",backgroundColor:r.indicatorColor??"#666666"}}):null))))))))),"show"===J.visibility&&!n&&e.createElement("div",{className:"yt-loyalty-page-rewards",style:{order:se("rewards"),backgroundColor:J.backgroundColor,border:"1px solid #E1E1E1",padding:R?"40px 20px":"48px 32px 56px"}},e.createElement("div",{className:"yt-loyalty-page-rewards-content",style:{maxWidth:"1200px",margin:"0 auto"}},e.createElement("div",{className:"yt-loyalty-page-rewards-hero",style:{display:"flex",flexDirection:R?"column":"row",alignItems:"stretch",overflow:"hidden",border:"1px solid #E1E1E1"}},e.createElement("div",{className:"yt-loyalty-page-rewards-image-wrapper",style:{flex:1,order:R||"left"===J.imagePosition?0:1,minHeight:R?"280px":"340px"}},e.createElement("div",{className:"yt-loyalty-page-rewards-image",style:{display:"block",width:"100%",height:"100%",minHeight:R?"280px":"340px",backgroundImage:J.imageUrl?`url(${J.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center"}})),e.createElement("div",{className:"yt-loyalty-page-rewards-copy",style:{flex:1,order:R||"left"===J.imagePosition?1:0,padding:R?"28px 24px":"32px 40px",display:"flex",flexDirection:"column",justifyContent:"start"}},J.badgeTitle?e.createElement("div",{className:"yt-loyalty-page-rewards-badge",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"28px",marginBottom:"22px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:"#111111",fontSize:"14px",lineHeight:1,fontWeight:600,alignSelf:R?"center":"flex-start"}},J.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-rewards-title",style:{margin:0,maxWidth:"420px",fontSize:R?"20px":"25px",lineHeight:1.06,letterSpacing:"-0.03em",fontWeight:700,color:J?.fontColor??"#111111"}},J.title),e.createElement("p",{className:"yt-loyalty-page-rewards-description",style:{margin:"20px 0 0",maxWidth:"470px",fontSize:R?"12px":"14px",lineHeight:1.35,fontWeight:400,color:J.fontColor,whiteSpace:"pre-line"}},J.description))),e.createElement("div",{className:"yt-loyalty-page-rewards-disclaimer",style:{marginTop:"14px",backgroundColor:"#1F232B",color:"#FFFFFF",padding:"15px 20px",textAlign:"center",fontSize:"15px",lineHeight:1.3,fontWeight:400,fontStyle:"italic"}},J.disclaimerText),e.createElement("div",{className:"yt-loyalty-page-rewards-cta",style:{display:"flex",flexDirection:R?"column":"row",justifyContent:"space-between",alignItems:"center",marginTop:"20px",padding:R?"24px":"26px 28px",border:"1px solid #D4D4D4",gap:"18px",textAlign:R?"center":"left"}},e.createElement("div",{className:"yt-loyalty-page-rewards-cta-copy"},e.createElement("h3",{style:{margin:0,fontSize:R?"28px":"32px",lineHeight:1.05,fontWeight:700,letterSpacing:"-0.03em",color:J.fontColor}},J.bottomCtaTitle),e.createElement("p",{style:{margin:"8px 0 0",fontSize:"18px",lineHeight:1.25,fontWeight:400,color:J.fontColor}},J.bottomCtaSubtitle)),e.createElement("button",{className:"yt-loyalty-page-rewards-cta-button",style:{...M,minWidth:R?"100%":"220px",padding:"14px 28px",borderRadius:"0px",border:"none",boxShadow:"none",fontSize:"18px",fontWeight:700},onClick:async()=>{s?await s():O()}},J.buttonText)))),"show"===ee.visibility&&e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem",style:{order:se("waysToRedeem"),backgroundColor:ee.backgroundColor,border:"1px solid #E1E1E1",padding:R?"48px 20px":"72px 32px 80px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-content",style:{maxWidth:"1200px",margin:"0 auto"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-header",style:{display:"flex",flexDirection:R?"column":"row",justifyContent:"space-between",alignItems:R?"stretch":"flex-start",gap:R?"24px":"32px",marginBottom:R?"32px":"44px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-heading"},ee.badgeTitle?e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-badge",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"28px",marginBottom:"18px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:"#111111",fontSize:"14px",lineHeight:1,fontWeight:600}},ee.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-ways-to-redeem-title",style:{margin:0,fontSize:R?"34px":"44px",lineHeight:1.05,letterSpacing:"-0.03em",fontWeight:700,color:ee.fontColor}},ee.title),ee.subtitle?e.createElement("p",{className:"yt-loyalty-page-ways-to-redeem-subtitle",style:{margin:"12px 0 0",fontSize:R?"16px":"18px",lineHeight:1.24,fontWeight:400,color:"#6B6B6B"}},ee.subtitle):null),null!=ee.balanceValue&&""!==ee.balanceValue?e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-balance",style:{flexShrink:0,minWidth:R?"auto":"240px",padding:R?"18px 22px":"20px 26px",borderRadius:"12px",backgroundColor:"#111111",color:"#FFFFFF",display:"flex",flexDirection:"column",alignItems:"flex-start"}},e.createElement("div",{style:{fontSize:R?"32px":"36px",lineHeight:1,letterSpacing:"-0.03em",fontWeight:700}},"number"==typeof ee.balanceValue?ee.balanceValue.toLocaleString():ee.balanceValue),e.createElement("div",{style:{marginTop:"8px",fontSize:"13px",lineHeight:1.2,fontWeight:400,color:"rgba(255,255,255,0.8)"}},ee.balanceLabel,ee.balanceCtaText?e.createElement(e.Fragment,null," · ",e.createElement("span",{role:"button",tabIndex:0,onClick:async()=>{d?await d():O()},style:{color:"#FFFFFF",fontWeight:500,textDecoration:"underline",cursor:"pointer"}},ee.balanceCtaText)):null)):null),ee.activeCoupon?e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-active",style:{display:"flex",flexDirection:R?"column":"row",alignItems:R?"flex-start":"center",gap:R?"10px":"16px",marginBottom:R?"20px":"24px",padding:R?"14px 16px":"16px 20px",border:"1px solid #E1E1E1",borderRadius:"12px",backgroundColor:"#F7F7F7"}},e.createElement("span",{className:"yt-loyalty-page-ways-to-redeem-active-title",style:{flexShrink:0,fontSize:R?"15px":"16px",lineHeight:1.2,fontWeight:700,color:"#111111"}},ee.activeCouponLabel),e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-active-pill",style:{display:"flex",alignItems:"center",gap:"10px",minHeight:"40px",padding:"0 6px 0 16px",border:"1px solid #D7D7D7",borderRadius:"999px",backgroundColor:"#FFFFFF",maxWidth:"100%"}},e.createElement("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"14px",lineHeight:1.2,fontWeight:700,letterSpacing:"0.04em",color:"#111111"}},ee.activeCoupon),e.createElement("button",{type:"button",className:"yt-loyalty-page-ways-to-redeem-active-copy",onClick:()=>(async e=>{e&&(p?await p(e):"undefined"!=typeof navigator&&navigator.clipboard&&await navigator.clipboard.writeText(e))})(ee.activeCoupon),style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",height:"30px",padding:"0 14px",border:"none",borderRadius:"999px",backgroundColor:C,color:P,fontSize:"13px",lineHeight:1,fontWeight:600,cursor:"pointer"}},e.createElement("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},e.createElement("rect",{x:"9",y:"9",width:"11",height:"11",rx:"2"}),e.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})),"Copy"))):null,e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-grid",style:{display:"grid",gridTemplateColumns:R?"1fr":"repeat(3, 1fr)",gap:R?"16px":"20px"}},ee.freebies?.map((t,n)=>{const r=t.state??"eligible",o=t.gating??"points",a=t.target??0,i=t.current??0,l="locked"===r,s="claimed"===r,c=l&&"tier"===o,d=l&&"points"===o,p=a>0?Math.min(100,Math.max(0,Math.round(i/a*100))):0,m="ltv"===t.rewardTierCriteria&&"purchase_value"===t.purchaseValueMethod,u=null==t.rewardTierCriteria?t.unit??"":m?"":"loyalty_points"===t.rewardTierCriteria?"points":"orders",g=m?Sf(ee.currencyCode):"";return e.createElement("div",{key:`freebie-${n}`,className:"yt-loyalty-page-ways-to-redeem-freebie",style:{display:"flex",alignItems:"stretch",border:"1px solid #E1E1E1",backgroundColor:"#FFFFFF",overflow:"hidden"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-freebie-icon",style:{flexShrink:0,width:R?"72px":"84px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#F1F1F1",color:"#5A5A5A",fontSize:"26px",backgroundImage:"repeating-linear-gradient(to bottom, #BFBFBF 0 8px, transparent 8px 16px)",backgroundRepeat:"no-repeat",backgroundSize:"2px 100%",backgroundPosition:"right center"}},e.createElement(E,null)),e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-freebie-body",style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",padding:R?"16px 18px":"18px 20px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-freebie-title",style:{fontSize:R?"18px":"20px",lineHeight:1.15,fontWeight:700,letterSpacing:"-0.01em",color:"#111111"}},t.title),e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-freebie-subtitle",style:{marginTop:"4px",fontSize:"12px",lineHeight:1.3,fontWeight:400,color:"#8A8A8A"}},s?"Claimed · apply discount with item added in cart":c?`Unlock at ${t.tierName??""} tier`:d?`${a} Points Required · ${t.subtitle??"no mov"}`:t.subtitle??"no mov"),e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-freebie-footer",style:{marginTop:"auto",paddingTop:"18px"}},s?e.createElement("div",{role:"button",tabIndex:0,onClick:()=>oe(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||oe(t)},style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"10px 14px",border:"1px dashed #C4C4C4",borderRadius:"8px",backgroundColor:"#FAFAFA",cursor:"pointer"}},e.createElement("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"14px",fontWeight:700,letterSpacing:"0.04em",color:"#111111"}},t.code),e.createElement("span",{style:{flexShrink:0,fontSize:"12px",fontWeight:500,color:"#8A8A8A"}},"Tap to copy")):c?e.createElement(e.Fragment,null,e.createElement("div",{style:{marginBottom:"8px",fontSize:"12px",fontWeight:500,color:"#8A8A8A"}},g,Ff(i)," of ",g,Ff(a),u?` ${u}`:""),e.createElement("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":a||void 0,"aria-valuenow":i,style:{width:"100%",height:"6px",borderRadius:"999px",backgroundColor:"#EDEDED",overflow:"hidden"}},e.createElement("div",{style:{width:`${p}%`,height:"100%",borderRadius:"999px",backgroundColor:C}}))):e.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"}},e.createElement("button",{type:"button",disabled:d,onClick:()=>d?void 0:(async e=>{e.onClaim?await e.onClaim():O()})(t),style:{minWidth:"84px",padding:"9px 18px",borderRadius:"8px",border:"none",backgroundColor:d?"#EDEDED":C,color:d?"#9A9A9A":P,fontSize:"14px",lineHeight:1,fontWeight:600,cursor:d?"not-allowed":"pointer"}},t.ctaTitle??"Claim")))))}),ee.items?.map((t,n)=>{const r=t.ctaTitle??"Redeem",o=t.ctaDisabled??!1,a=null!=t.discountPercentage||null!=t.discountValue?(t.discountPercentage??0)>0?"percent":"coupon":t.icon,i=t.subtitle??(null!=t.pointsRequired?`${t.pointsRequired} Points Required · ${Nf(t.minimumOrderValue,ee.currencyCode)}`:Nf(t.minimumOrderValue,ee.currencyCode));return e.createElement("div",{key:n,className:"yt-loyalty-page-ways-to-redeem-item",style:{display:"flex",alignItems:"stretch",border:"1px solid #E1E1E1",backgroundColor:"#FFFFFF",overflow:"hidden"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-item-icon",style:{flexShrink:0,width:R?"72px":"84px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#F1F1F1",color:"#5A5A5A",fontSize:"26px",backgroundImage:"repeating-linear-gradient(to bottom, #BFBFBF 0 8px, transparent 8px 16px)",backgroundRepeat:"no-repeat",backgroundSize:"2px 100%",backgroundPosition:"right center"}},(l=a)&&"string"!=typeof l?l:"percent"===l?e.createElement("span",{style:{fontSize:"28px",fontWeight:500}},"%"):e.createElement(I,null)),e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-item-body",style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",padding:R?"16px 18px":"18px 20px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-item-title",style:{fontSize:R?"18px":"20px",lineHeight:1.15,fontWeight:700,letterSpacing:"-0.01em",color:"#111111"}},t.title),i?e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-item-subtitle",style:{marginTop:"4px",fontSize:"12px",lineHeight:1.3,fontWeight:400,color:"#8A8A8A"}},i):null,e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-item-footer",style:{marginTop:"auto",paddingTop:"18px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px"}},e.createElement("span",{className:"yt-loyalty-page-ways-to-redeem-item-points",style:{fontSize:R?"15px":"16px",lineHeight:1,fontWeight:700,color:"#111111"}},t.pointsLabel),e.createElement("button",{type:"button",className:"yt-loyalty-page-ways-to-redeem-item-button",disabled:o,onClick:()=>(async e=>{e.onClick?await e.onClick():c?await c(e):O()})(t),style:{minWidth:"84px",padding:"9px 18px",borderRadius:"8px",border:"none",backgroundColor:o?"#EDEDED":C,color:o?"#9A9A9A":P,fontSize:"14px",lineHeight:1,fontWeight:600,cursor:o?"not-allowed":"pointer",transition:"opacity 0.2s ease"}},r))));var l})))))},$f=({showPopup:n,selectedOffer:r,selectedOfferTerms:o,onClose:a,offersConfig:i})=>{const[l,s]=t(!1);if(!n||!r||!o)return null;const c=r._customOffer,d=c?.code||r.code,p=e.createElement("div",{className:"yt-product-offers-isolated",style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:2147483647},onClick:a},e.createElement("div",{style:{width:"90vw",minWidth:"375px",maxWidth:"480px",maxHeight:"90vh",backgroundColor:"#fff",borderRadius:"12px",padding:"16px",boxShadow:"0 4px 15px rgba(0,0,0,0.3)",position:"relative",flexDirection:"column",display:"flex"},onClick:e=>e.stopPropagation()},e.createElement("div",{style:{fontSize:"clamp(32px, 8vw, 40px)",color:"#4C4C4C",marginTop:"16px",marginBottom:"8px",display:"flex",justifyContent:"center",position:"relative"}},Af(r)?e.createElement(w,null):e.createElement(at,null)),e.createElement("div",{style:{fontSize:"clamp(16px, 4vw, 20px)",fontWeight:500,color:"#4C4C4C",lineHeight:"normal",textAlign:"center"}},Df(r)),e.createElement("div",{style:{fontSize:"clamp(28px, 7vw, 40px)",fontWeight:"600",color:i?.textColor||"#EE8E35",lineHeight:"normal",textAlign:"center"}},r.name),e.createElement("div",{style:{fontSize:"clamp(16px, 4vw, 20px)",color:"#000000",textAlign:"center",fontWeight:500}},o.offerMessage),d&&e.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",marginTop:"16px",padding:"12px 20px",backgroundColor:i?.cardBackgroundColor||"#F5F5F5",borderRadius:`${i?.roundness||8}px`,border:`1px dashed ${i?.accentColor||"#EE8E35"}`}},e.createElement("span",{style:{fontSize:"clamp(16px, 4vw, 18px)",fontWeight:"600",color:i?.textColor||"#333",letterSpacing:"1px"}},d),e.createElement("button",{onClick:async()=>{if(d)try{await navigator.clipboard.writeText(d),s(!0),setTimeout(()=>s(!1),2e3)}catch(e){console.error("Failed to copy:",e)}},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:l?"#22c55e":i?.accentColor||"#EE8E35",fontSize:"20px",transition:"color 0.2s ease"},title:l?"Copied!":"Copy code"},l?e.createElement(P,null):e.createElement(D,null))),o.terms.length>0&&e.createElement(e.Fragment,null,e.createElement("hr",{style:{border:"none",height:"2px",width:"100%",margin:"10px 0 18px 0",backgroundColor:"transparent",backgroundImage:"repeating-linear-gradient(to right, #ccc 0, #ccc 12px, transparent 12px, transparent 20px)",backgroundSize:"100% 2px",backgroundPosition:"0 0",backgroundRepeat:"repeat-x"}}),e.createElement("div",{style:{marginTop:"15px",fontSize:"clamp(14px, 3.5vw, 16px)",textAlign:"center",display:"flex",flexDirection:"column"}},e.createElement("strong",{style:{color:"#888"}},"Terms & Conditions"),e.createElement("ul",{style:{marginTop:"5px",paddingLeft:"20px",textAlign:"left",display:"inline-block",color:"#000",lineHeight:"1.3",marginBottom:"0"}},o.terms.map((t,n)=>e.createElement("li",{key:n,style:{marginBottom:"4px"}},t))))),e.createElement("button",{onClick:a,style:{width:"100%",padding:"10px 20px",marginTop:"10px",backgroundColor:"#fff",border:"none",borderTop:"1px solid #ddd",borderRadius:"0",fontSize:"16px",fontWeight:"600",color:"#333",cursor:"pointer",textAlign:"center",flexShrink:0}},"Close")));return O(p,document.body)},zf=({showPopup:n,selectedOffer:r,selectedOfferTerms:o,onClose:a,offersConfig:i})=>{const[l,s]=t(!1);if(!n||!r||!o)return null;const c=r._customOffer,d=c?.code||r.code,p=e.createElement("div",{className:"yt-product-offers-isolated",style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"flex-end",justifyContent:"center",zIndex:2147483647,animation:"fadeIn 0.3s ease"},onClick:a},e.createElement("style",null,"\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes slideUp {\n from { transform: translateY(100%); }\n to { transform: translateY(0); }\n }\n "),e.createElement("div",{style:{width:"100%",maxHeight:"85vh",backgroundColor:"#fff",borderTopLeftRadius:"20px",borderTopRightRadius:"20px",borderTop:"1px solid #E5E5E5",position:"relative",flexDirection:"column",display:"flex",animation:"slideUp 0.3s ease",overflow:"hidden"},onClick:e=>e.stopPropagation()},e.createElement("div",{style:{width:"40px",height:"4px",backgroundColor:"#ddd",borderRadius:"2px",margin:"12px auto 16px",flexShrink:0}}),e.createElement("div",{style:{overflowY:"auto",flex:1}},e.createElement("div",{style:{padding:"0 20px 20px",backgroundColor:"#fff"}},e.createElement("div",{style:{fontSize:"48px",color:"#4C4C4C",display:"flex",justifyContent:"center",margin:"16px"}},Af(r)?e.createElement(w,null):e.createElement(at,null)),e.createElement("div",{style:{fontSize:"14px",fontWeight:500,color:"#888",textAlign:"center"}},Df(r)),e.createElement("div",{style:{fontSize:"32px",fontWeight:"700",color:i?.textColor||"#EE8E35",textAlign:"center",lineHeight:"1.2"}},r.name),e.createElement("div",{style:{fontSize:"18px",color:"#000000",textAlign:"center",fontWeight:500}},o.offerMessage),d&&e.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",marginTop:"20px",padding:"14px 20px",backgroundColor:i?.cardBackgroundColor||"#F5F5F5",borderRadius:`${i?.roundness||8}px`,border:`1px dashed ${i?.accentColor||"#EE8E35"}`}},e.createElement("span",{style:{fontSize:"18px",fontWeight:"600",color:i?.textColor||"#333",letterSpacing:"1px"}},d),e.createElement("button",{onClick:async()=>{if(d)try{await navigator.clipboard.writeText(d),s(!0),setTimeout(()=>s(!1),2e3)}catch(e){console.error("Failed to copy:",e)}},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:l?"#22c55e":i?.accentColor||"#EE8E35",fontSize:"22px",transition:"color 0.2s ease"},title:l?"Copied!":"Copy code"},l?e.createElement(P,null):e.createElement(D,null)))),o.terms.length>0&&e.createElement(e.Fragment,null,e.createElement("div",{style:{backgroundColor:"#F5F5F5",padding:"16px 20px"}},e.createElement("div",{style:{fontSize:"16px",fontWeight:"600",color:"#333",textAlign:"center"}},"Terms & Conditions")),e.createElement("div",{style:{padding:"20px",backgroundColor:"#fff"}},e.createElement("ul",{style:{margin:"0",paddingLeft:"20px",color:"#333",lineHeight:"1.6",fontSize:"14px"}},o.terms.map((t,n)=>e.createElement("li",{key:n,style:{marginBottom:"4px"}},t)))))),e.createElement("button",{onClick:a,style:{width:"100%",padding:"18px 20px",backgroundColor:"#F5F5F5",border:"none",borderTop:"1px solid #E5E5E5",fontSize:"16px",fontWeight:"600",color:"#333",cursor:"pointer",textAlign:"center",fontFamily:"'Poppins', sans-serif",flexShrink:0}},"Close")));return O(p,document.body)},If=({offersToShow:r,offersConfig:a,getOfferCardMessage:i,setSelectedOffer:l,setShowPopup:s})=>{const c=o(null),[d,p]=t(!1),[m,u]=t(!0),[g,f]=t("undefined"!=typeof window&&window.innerWidth<=768),y=()=>{if(c.current){const{scrollLeft:e,scrollWidth:t,clientWidth:n}=c.current;p(e>0),u(e<t-n-10)}};n(()=>{y();const e=c.current;if(e)return e.addEventListener("scroll",y),()=>e.removeEventListener("scroll",y)},[r]),n(()=>{const e=()=>{f(window.innerWidth<=768)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const x=e=>{if(c.current){const t=g?280:365,n=16,r="right"===e?t+n:-(t+n);c.current.scrollBy({left:r,behavior:"smooth"})}};return e.createElement("div",{style:{position:"relative"}},e.createElement("svg",{style:{position:"absolute",width:0,height:0}},e.createElement("defs",null,e.createElement("mask",{id:"coupon-cut-mask-desktop"},e.createElement("rect",{width:"365",height:"138",fill:"white"}),e.createElement("circle",{cx:"80",cy:"0",r:"12",fill:"black"}),e.createElement("circle",{cx:"80",cy:"138",r:"12",fill:"black"})),e.createElement("mask",{id:"coupon-cut-mask-mobile"},e.createElement("rect",{width:"280",height:"120",fill:"white"}),e.createElement("circle",{cx:"60",cy:"0",r:"10",fill:"black"}),e.createElement("circle",{cx:"60",cy:"120",r:"10",fill:"black"})))),d&&e.createElement("button",{onClick:()=>x("left"),style:{position:"absolute",left:"5px",top:"50%",transform:"translateY(-50%)",background:"#fff",border:"1px solid #e0e0e0",borderRadius:"50%",width:"clamp(28px, 5vw, 38px)",height:"clamp(28px, 5vw, 38px)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:10,boxShadow:"0 2px 8px rgba(0,0,0,0.1)",color:"#333"}},e.createElement(A,{size:20})),m&&e.createElement("button",{onClick:()=>x("right"),style:{position:"absolute",right:"5px",top:"50%",transform:"translateY(-50%)",background:"#fff",border:"1px solid #e0e0e0",borderRadius:"50%",width:"clamp(28px, 5vw, 38px)",height:"clamp(28px, 5vw, 38px)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:10,boxShadow:"0 2px 8px rgba(0,0,0,0.1)",color:"#333"}},e.createElement(_,{size:20})),e.createElement("div",{ref:c,className:"hide-scrollbar",style:{display:"flex",alignItems:"stretch",overflowX:"auto",gap:"16px",scrollbarWidth:"none",msOverflowStyle:"none",minHeight:g?"110px":"128px"}},r?.map(t=>e.createElement("div",{key:t.discountId,style:{flexShrink:0,width:g?"280px":"365px",minWidth:g?"280px":"365px",minHeight:g?"110px":"128px",backgroundColor:"transparent",borderRadius:`${a?.roundness||0}px`,border:"1px solid #e0e0e0",display:"flex",position:"relative",overflow:"visible",mask:`url(#${g?"coupon-cut-mask-mobile":"coupon-cut-mask-desktop"})`,WebkitMask:`url(#${g?"coupon-cut-mask-mobile":"coupon-cut-mask-desktop"})`,maskImage:`url(#${g?"coupon-cut-mask-mobile":"coupon-cut-mask-desktop"})`,WebkitMaskImage:`url(#${g?"coupon-cut-mask-mobile":"coupon-cut-mask-desktop"})`}},e.createElement("div",{style:{width:g?"60px":"80px",minHeight:g?"110px":"128px",backgroundColor:a?.accentColor||"#EE8E35",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:g?"10px 6px":"12px 8px",position:"relative",borderTopLeftRadius:`${a?.roundness||0}px`,borderBottomLeftRadius:`${a?.roundness||0}px`}},e.createElement("div",{style:{position:"absolute",right:"-2px",top:"12px",bottom:"12px",width:"2px",borderLeft:"2px dashed #FFFFFF"}})),a?.iconVisibility&&e.createElement("div",{style:{position:"absolute",left:g?"42.5px":"57.5px",top:"35%",transform:"translateY(-50%)",width:g?"32px":"40px",height:g?"32px":"40px",backgroundColor:"#FFFFFF",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:g?"16px":"20px",color:"#333333",zIndex:10,boxShadow:"0 2px 5px rgba(0,0,0,0.1)",border:"1px solid #E0E0E0"}},Af(t)?e.createElement(w,null):e.createElement(at,null)),e.createElement("div",{style:{flex:1,padding:g?"12px 12px":"15px 15px",paddingLeft:g?"25px":"35px",display:"flex",flexDirection:"column",justifyContent:"space-between",borderTopRightRadius:`${a?.roundness||0}px`,borderBottomRightRadius:`${a?.roundness||0}px`,overflow:"hidden",backgroundColor:a?.cardBackgroundColor||"#ffffff",minWidth:0}},e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:g?"4px":"6px",lineHeight:"normal"}},e.createElement("div",{style:{fontSize:g?"9px":"10px",color:"#666666",fontWeight:"400"}},Df(t)),e.createElement("div",{style:{fontSize:g?"13px":"15px",fontWeight:"600",color:a?.textColor||"#2c3e50"}},t.name),e.createElement("div",{style:{fontSize:g?"11px":"12px",color:a?.accentColor||"#EE8E35",wordWrap:"break-word",overflowWrap:"break-word",whiteSpace:"normal",minHeight:g?"28px":"32px"}},i(t))),e.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},e.createElement("div",{style:{borderTop:"1px solid #999999",marginTop:"4px",width:"100%",height:"0",display:"block"}}),e.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),l(t),s(!0)},style:{fontSize:g?"11px":"12px",color:"#2c3e50",fontWeight:"500",textDecoration:"none",cursor:"pointer",textAlign:"center",marginTop:"0"}},a?.viewDetailsTitle||"View Details")))))),e.createElement("style",null,"\n .hide-scrollbar::-webkit-scrollbar {\n display: none;\n }\n .hide-scrollbar {\n -ms-overflow-style: none;\n scrollbar-width: none;\n }\n "))},Pf=({offersToShow:r,offersConfig:o,getOfferCardMessage:a,setSelectedOffer:i,setShowPopup:l})=>{const[s,c]=t("undefined"!=typeof window&&window.innerWidth<=768);return n(()=>{const e=()=>{c(window.innerWidth<=768)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e.createElement("div",{style:{borderRadius:`${o?.roundness||8}px`}},r?.map((t,n)=>e.createElement("div",{key:t.discountId,style:{display:"flex",alignItems:"flex-start",gap:s?"8px":"12px",padding:s?"12px 0":"16px 0",paddingLeft:s?"10px":"20px",backgroundColor:!0===o?.cardBackgroundTransparent||"true"===String(o?.cardBackgroundTransparent)?"transparent":o?.cardBackgroundColor||"#ffffff",borderBottom:n<(r?.length||0)-1?"1px solid rgb(225 218 218)":"none",marginBottom:"4px",borderRadius:`${o?.roundness||0}px`}},o?.iconVisibility&&e.createElement("div",{style:{width:s?"40px":"50px",height:s?"40px":"50px",backgroundColor:"#f8f9fa",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:s?"20px":"25px",marginTop:s?"5px":"10px",border:"2px solid #4a4a4a",color:"#4a4a4a"}},Af(t)?e.createElement(w,null):e.createElement(at,null)),e.createElement("div",{style:{flex:1}},e.createElement("div",{style:{fontSize:s?"14px":"15px",fontWeight:600,color:"#000000",lineHeight:"1"}},e.createElement("span",{style:{fontWeight:600,color:o?.textColor||"#34495e"}},t.name)),e.createElement("div",{style:{fontSize:s?"12px":"13px",color:"#7f8c8d",marginBottom:"6px"}},a(t)),e.createElement("div",{style:{fontSize:s?"11px":"12px",color:"#000000"}},"offer auto applied",e.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),i(t),l(!0)},style:{color:o?.accentColor||"#7f8c8d",fontWeight:700,textDecoration:"none",marginLeft:"2px"}},o?.viewDetailsTitle||"T&C"))))))},Df=e=>"free_product"===e.couponType?"deal_amount"===e.freebieType?"Deal":"percentage_off"===e.freebieType?"% Off":"Free Gift":e._customOffer?.code?"Coupon":"Special Deal",Af=e=>"free_product"===e.couponType&&"deal_amount"!==e.freebieType&&"percentage_off"!==e.freebieType,_f=({offersConfig:r,offers:a})=>{const[i,l]=t(!1),[s,c]=t(null),[d,p]=t(null),[m,u]=t("undefined"!=typeof window&&window.innerWidth<=768),[g,f]=t("undefined"!=typeof window&&window.innerWidth<=450),y=o(null);n(()=>{const e=()=>{u(window.innerWidth<=768),f(window.innerWidth<=450)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),n(()=>{y.current&&qn(y.current)},[r?.sectionBgContrastColor]);const x=(e=>{if(!e||0===e.length)return e;const t={};e.forEach(e=>{const n=e.customCartProgressBarCriteria||"none";t[n]=(t[n]||0)+1});let n="none",r=-1;Object.keys(t).forEach(e=>{t[e]>r&&(r=t[e],n=e)});const o=e.map((e,t)=>({o:e,idx:t})),a=e=>"minimum_order_value"===n?void 0!==e.minimumOrderValue&&null!==e.minimumOrderValue?Number(e.minimumOrderValue):1/0:"quantity"===n&&void 0!==e.quantityThreshold&&null!==e.quantityThreshold?Number(e.quantityThreshold):1/0;return o.sort((e,t)=>{const r=e.o.customCartProgressBarCriteria===n,o=t.o.customCartProgressBarCriteria===n;if(r&&o){const n=a(e.o),r=a(t.o);return n!==r?n-r:e.idx-t.idx}return r&&!o?-1:!r&&o?1:e.idx-t.idx}),o.map(e=>e.o)})((!1===r?.showBackendOffers&&r?.customOffers&&r.customOffers.length>0?r.customOffers.map((e,t)=>{return{discountId:-(t+1),name:(n=e).title,couponType:n.code?"discount_code":"special_deal",customCartProgressBarCriteria:null,discountPercentage:null,couponTemplateId:0,minimumOrderValue:0,quantityThreshold:0,_allVariantIds:[],description:n.description,_customOffer:n};var n}):a)||[]),h=e=>{if(c(e),e){const t=e._customOffer;p(t?(e=>({offerMessage:e.description||"Special offer available",terms:e.terms?e.terms.split("\n").filter(e=>""!==e.trim()):[]}))(t):(e=>{const t="free_product"===e.couponType;let n="";if(t){const t="deal_amount"===e.freebieType?`at ${e.discountValue}`:"percentage_off"===e.freebieType?`at ${e.discountPercentage}% off`:"free"===e.freebieType?"for free!":"";t&&(n=`Get the product ${t}`)}else e.discountPercentage?n=`Get ${e.discountPercentage}% off`:e.discountValue&&(n=`Get ${e.discountValue} off`);const r=["Limited Time Offer","Applies automatically when criteria is met"];return"quantity"===e.customCartProgressBarCriteria&&e.quantityThreshold?r.push(`Unlock when you add ${e.quantityThreshold} ${e.quantityThreshold>1?"items":"item"} to cart`):"minimum_order_value"===e.customCartProgressBarCriteria&&e.minimumOrderValue&&r.push(`Unlock at order value of ${e.minimumOrderValue}`),t||r.push("Not applicable if other offer with higher discount applied on same product"),{offerMessage:n,terms:r}})(e))}},b=e=>{const t=e._customOffer;return t?t.description||"Special offer available":(e=>"quantity"===e.customCartProgressBarCriteria&&e.quantityThreshold?`add ${e.quantityThreshold} ${e.quantityThreshold>1?"items":"item"} to unlock`:"minimum_order_value"===e.customCartProgressBarCriteria&&e.minimumOrderValue?`unlocks on orders above ${e.minimumOrderValue}`:"Special offer available")(e)};return e.createElement("div",null,e.createElement("div",{style:{position:"relative",width:"100%",maxWidth:"450px",borderRadius:"list"===r?.sectionType?`${r?.roundness||0}px`:"0px",boxSizing:"border-box",backgroundColor:r?.sectionBackgroundColor||"#fff"}},e.createElement("div",{style:{border:"coupon"===r?.sectionType?"none":"1px solid rgb(169, 163, 163)",borderTop:"1px solid rgb(169, 163, 163)",padding:null!=r?.cardPadding?`${r.cardPadding}px`:m?"20px 10px 15px":"30px 15px 20px",position:"relative",borderRadius:"list"===r?.sectionType?`${r?.roundness||8}px`:"0px"}},e.createElement("span",{ref:y,className:"yt-product-offers-section-title",style:{position:"absolute",top:"0",left:"left"===r?.alignment?"coupon"===r?.sectionType?"0px":m?"10px":"20px":"right"===r?.alignment?"auto":"50%",right:"right"===r?.alignment?"coupon"===r?.sectionType?"0px":m?"10px":"20px":"auto",transform:"middle"===r?.alignment?"translateX(-50%) translateY(-50%)":"translateY(-50%)",background:r?.sectionBgContrastColor||"#fff",padding:m?"0 8px":"0 10px",fontWeight:"500",fontSize:m?"14px":"16px",textTransform:"uppercase",textAlign:"center"}},r?.sectionTitle||"Available Deals and Offers"),(()=>{const t=r?.sectionType;return"list"===t?e.createElement(Pf,{offersToShow:x,offersConfig:r||{},getOfferCardMessage:b,setSelectedOffer:h,setShowPopup:l}):"coupon"===t?e.createElement(If,{offersToShow:x,offersConfig:r||{},getOfferCardMessage:b,setSelectedOffer:h,setShowPopup:l}):null})(),g?e.createElement(zf,{selectedOffer:s,selectedOfferTerms:d,showPopup:i,offersConfig:r,onClose:()=>{l(!1),c(null),p(null)}}):e.createElement($f,{selectedOffer:s,selectedOfferTerms:d,showPopup:i,offersConfig:r,onClose:()=>{l(!1),c(null),p(null)}}))))};export{cu as Bundle,tg as BundleLoader,ud as BundleLoaderModal,eg as Cart,vd as CartATCLoader,sf as LoyaltyLauncher,Bf as LoyaltyPageBlock,wf as LoyaltyProductCatalog,tf as LoyaltyScreen,xf as LoyaltyWidget,sn as Nudge,kf as PointEarnBadge,_f as ProductOffers,yf as RewardsModal,fn as SpinnerWheel};
5286
+ `,Xu=l(({removeCartItem:a,addCartItem:i,getProductDetailsByVariantId:l,themeColor:s,cartComponentsCornerRadius:c,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:m,freebieClaimAddToCart:u,stealDealAddToCart:g,productClaimCtaButtonText:f,backgroundSubdued:y,primaryTextColor:x},h)=>{const[b,w]=be(kn),v=we(yn),C=o(null),[E,k]=t(null),[T,S]=t(!1),[N,F]=t({}),[B,$]=t(b?.variantId),[z]=t(b?.quantity||1),[I,P]=t(!1),D=Vo();n(()=>{b?.open?setTimeout(()=>{P(!0)},10):P(!1)},[b?.open]);n(()=>{(async()=>{if(!E&&l&&b?.variantId&&b?.handle){const e=await l(b.handle,b.variantId);if(e&&e.variants&&e.options){let t;const n=b.allowedVariantIds,r=Array.isArray(n)&&n.length>0;if(t=r?e.variants.find(e=>e.available&&n.includes(String(e.id))&&String(e.id)===String(b.variantId))||e.variants.find(e=>e.available&&n.includes(String(e.id))):e.variants.find(e=>e.available&&String(e.id)===String(b.variantId)),t){$(String(t.id));const n={};e.options.forEach((e,r)=>{n[e.name]=t[`option${r+1}`]}),F(n)}else $(void 0),F({})}k(e)}})()},[E,l,b]);const A=(e,t)=>{const n={...N,[e]:t};F(n);const r=E?.variants?.find(e=>E.options.every((t,r)=>e[`option${r+1}`]===n[t.name]));if(r){const e=b?.allowedVariantIds;if(Array.isArray(e)&&e.length>0&&!e.includes(String(r.id)))return;r.available&&$(String(r.id))}},_=E?.variants?.find(e=>String(e.id)===String(B)),L=Fn(v,v?.currency),R=r(()=>{const e={};if(!E)return e;const t=Array.isArray(b?.allowedVariantIds)&&b.allowedVariantIds.length>0;return E.options.forEach(n=>{e[n.name]=n.values.filter(e=>E.variants.filter(r=>{const o=E.options.indexOf(n);if(r[`option${o+1}`]!==e)return!1;return!!E.options.every((e,t)=>{if(e.name===n.name)return!0;const o=N[e.name];return!o||r[`option${t+1}`]===o})&&(!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(r.id)))&&!!r.available)}).some(e=>!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(e.id)))&&e.available))}),e},[E,N,b]);return E?e.createElement(e.Fragment,null,e.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:2147483643,display:b?.open?"flex":"none",justifyContent:"center",alignItems:"center",opacity:I?1:0,transition:"opacity 0.3s ease"},onClick:()=>{P(!1),setTimeout(()=>{w({open:!1,variantId:void 0,handle:void 0,quantity:void 0})},300)}}),e.createElement(Bu,{ref:h,className:"yt-variant-selection-popup"},e.createElement(zu,{ref:C,style:{backgroundColor:p||"white",opacity:I?1:0,transform:I?"translateY(0)":"translateY(20px)"},$themeColor:s,onClick:e=>e.stopPropagation()},b?.freebieSelection&&e.createElement($u,null,b?.stealDealSelection?"Unlocked Steal Deal":"Unlocked Freebie"),e.createElement(Pu,null,e.createElement(Du,null,e.createElement(Au,null,e.createElement(_u,{src:_?.featured_image?.src??E?.featured_image,alt:_?.featured_image?.alt??E?.title})),e.createElement(Lu,null,e.createElement(Ru,{$themeColor:s,$primaryTextColor:x,href:`${E?.url}?variant=${_?.id}`},E?.title),e.createElement(Yu,null,e.createElement(Ou,null,e.createElement(Mu,{$primaryTextColor:x},L,Tn(_?.price,v?.currency??"INR")),null!=_?.compare_at_price&&null!=_?.price&&_.compare_at_price>_.price&&e.createElement(Vu,null,L,Tn(_?.compare_at_price,v?.currency??"INR")))))),E?.options?.map(t=>{const n=D?.options?.find(e=>e.name.trim().toLowerCase()===t.name.trim().toLowerCase()),r=N[t.name],o=Mo(n,r);return e.createElement(ju,{key:t.name},e.createElement(qu,null,e.createElement("span",null,"Select ",t.name),r&&e.createElement(Uu,null,o)),e.createElement(Qu,null,R[t.name]?.map(r=>{const o=N[t.name]===r,a=Oo(n,r),i=n?.type?.toLowerCase(),l=Mo(n,r);return"color"===i&&a?.value?e.createElement(Zu,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$colorValue:a.value}):"image"===i&&a?.value?e.createElement(Gu,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$imageUrl:a.value}):e.createElement(Hu,{$themeColor:s,key:r,$isSelected:o,backgroundColor:o?s:void 0,onClick:()=>A(t.name,r)},l)})))})),e.createElement(Wu,{className:"yt-cart-variant-popup-ATC-button",$themeColor:s??"#C33",onClick:b?.productRec?async()=>{if(B&&i){S(!0);try{await i(B,z,"product-recommendation-variant-selector",!1,b.handle),w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,productRec:!1})}catch(e){console.error("Error adding item from product recommendation:",e)}S(!1)}}:async()=>{if(!B)return;const e=!!b?.lineItemKey,t=String(B)!==String(b?.variantId);if(!e||t){S(!0);try{const e=b?.freebieSelection;e&&!b?.lineItemKey||(e&&m&&b?.lineItemKey?await m(b.lineItemKey):await a(b?.lineItemKey||b?.variantId,"variant-selector",!0)),e&&b?.stealDealSelection&&g?await g(B,b.allowedVariantIds,b.rewardContext):e&&u?await u(B,b.allowedVariantIds,b.rewardContext):i&&B&&await i(B,z,"variant-selector",!1,b.handle),w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})}catch(e){}S(!1)}else w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!B||T},T?e.createElement(Te,{color:"white",size:13}):b?.productRec?"ADD TO BAG":b?.stealDealSelection?"CLAIM DEAL":b?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):e.createElement(Bu,{ref:h},e.createElement(zu,{style:{backgroundColor:p||"white"}},e.createElement(Iu,null,e.createElement(Se,{color:s||"#868E96"}))))});Xu.displayName="DesktopVariantPopup";const Ku=l(({removeCartItem:a,addCartItem:i,getProductDetailsByVariantId:l,themeColor:s,cartComponentsCornerRadius:c,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:m,freebieClaimAddToCart:u,stealDealAddToCart:g,productClaimCtaButtonText:f,backgroundSubdued:y,primaryTextColor:x},h)=>{const[b,w]=be(kn),v=we(yn),[C,E]=t(null),[k,T]=t(!1),[S,N]=t({}),[F,B]=t(b?.variantId),[$]=t(b?.quantity||1),z=o(null),I=Vo(),[P,D]=t(!1);n(()=>{b?.open?setTimeout(()=>{D(!0)},10):D(!1)},[b?.open]);n(()=>{(async()=>{if(!C&&l&&b?.variantId&&b?.handle)try{const e=await l(b.handle,b.variantId);if(!e)return;if(!e.variants||!Array.isArray(e.variants))return;if(e&&e.variants&&e.options){let t;const n=b.allowedVariantIds,r=Array.isArray(n)&&n.length>0;if(t=r?e.variants.find(e=>e.available&&n.includes(String(e.id))&&String(e.id)===String(b.variantId))||e.variants.find(e=>e.available&&n.includes(String(e.id))):e.variants.find(e=>e.available&&String(e.id)===String(b.variantId)),t){B(String(t.id));const n={};e.options.forEach((e,r)=>{n[e.name]=t[`option${r+1}`]}),N(n)}else B(void 0),N({})}E(e)}catch(e){}})()},[C,l,b]),n(()=>{},[p,a,i,l]);const A=(e,t)=>{const n={...S,[e]:t};N(n);const r=C?.variants?.find(e=>C.options.every((t,r)=>e[`option${r+1}`]===n[t.name]));if(r){const e=b?.allowedVariantIds;if(Array.isArray(e)&&e.length>0&&!e.includes(String(r.id)))return;r.available&&B(String(r.id))}},_=C?.variants?.find(e=>String(e.id)===String(F)),L=Fn(v,v?.currency),R=r(()=>{const e={};if(!C)return e;const t=Array.isArray(b?.allowedVariantIds)&&b.allowedVariantIds.length>0;return C.options.forEach(n=>{e[n.name]=n.values.filter(e=>C.variants.filter(r=>{const o=C.options.indexOf(n);if(r[`option${o+1}`]!==e)return!1;return!!C.options.every((e,t)=>{if(e.name===n.name)return!0;const o=S[e.name];return!o||r[`option${t+1}`]===o})&&(!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(r.id)))&&!!r.available)}).some(e=>!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(e.id)))&&e.available))}),e},[C,S,b]);return C?e.createElement(e.Fragment,null,e.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:2147483643,display:b?.open?"flex":"none",justifyContent:"center",alignItems:"center",opacity:P?1:0,transition:"opacity 0.3s ease"},onClick:()=>{D(!1),setTimeout(()=>{w({open:!1,variantId:void 0,handle:void 0,quantity:void 0})},300)}}),e.createElement(Bu,{ref:h,className:"yt-variant-selection-popup"},e.createElement(zu,{ref:z,style:{backgroundColor:p||"white",opacity:P?1:0,transform:P?"translateY(0)":"translateY(20px)"},$themeColor:s,onClick:e=>e.stopPropagation()},b?.freebieSelection&&e.createElement($u,null,b?.stealDealSelection?"Unlocked Steal Deal":"Unlocked Freebie"),e.createElement(Pu,null,e.createElement(Du,null,e.createElement(Au,null,e.createElement(_u,{src:_?.featured_image?.src??C?.featured_image,alt:_?.featured_image?.alt??C?.title})),e.createElement(Lu,null,e.createElement(Ru,{$themeColor:s,$primaryTextColor:x,href:`${C?.url}?variant=${_?.id}`},C?.title),e.createElement(Yu,null,e.createElement(Ou,null,e.createElement(Mu,{$primaryTextColor:x},L,Tn(_?.price,v?.currency??"INR")),null!=_?.compare_at_price&&null!=_?.price&&_.compare_at_price>_.price&&e.createElement(Vu,null,L,Tn(_?.compare_at_price,v?.currency??"INR")))))),C?.options?.map(t=>{const n=I?.options?.find(e=>e.name.trim().toLowerCase()===t.name.trim().toLowerCase()),r=S[t.name],o=Mo(n,r);return e.createElement(ju,{key:t.name},e.createElement(qu,null,e.createElement("span",null,"Select ",t.name,":"),r&&e.createElement(Uu,null,o)),e.createElement(Qu,null,R[t.name]?.map(r=>{const o=S[t.name]===r,a=Oo(n,r),i=n?.type?.toLowerCase(),l=Mo(n,r);return"color"===i&&a?.value?e.createElement(Zu,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$colorValue:a.value}):"image"===i&&a?.value?e.createElement(Gu,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$imageUrl:a.value}):e.createElement(Hu,{$themeColor:s,key:r,$isSelected:o,backgroundColor:o?s:void 0,onClick:()=>A(t.name,r)},l)})))})),e.createElement(Wu,{className:"yt-cart-variant-popup-ATC-button",$themeColor:s??"#C33",onClick:b?.productRec?async()=>{if(F&&i){T(!0);try{await i(F,$,"product-recommendation-variant-selector",!1,b.handle),w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,productRec:!1})}catch(e){console.error("Error adding item from product recommendation:",e)}T(!1)}}:async()=>{if(!F)return;const e=!!b?.lineItemKey,t=String(F)!==String(b?.variantId);if(!e||t){T(!0);try{const e=b?.freebieSelection;e&&!b?.lineItemKey||(e&&m&&b?.lineItemKey?await m(b.lineItemKey):await a(b?.lineItemKey||b?.variantId,"variant-selector",!0)),e&&b?.stealDealSelection&&g?await g(F,b.allowedVariantIds,b.rewardContext):e&&u?await u(F,b.allowedVariantIds,b.rewardContext):i&&F&&await i(F,$,"variant-selector",!1,b.handle),w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})}catch(e){}T(!1)}else w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!F||k},k?e.createElement(Te,{color:"white",size:13}):b?.productRec?"ADD TO BAG":b?.stealDealSelection?"CLAIM DEAL":b?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):e.createElement(Bu,{ref:h},e.createElement(zu,{style:{backgroundColor:p||"white"}},e.createElement(Iu,null,e.createElement(Se,{color:s||"#868E96"}))))});const Ju=({setIsCartOpen:t,isCartOpen:n,cartCheckpoints:r,customCartProgressBarCriteria:o,floatingCartData:a,effectiveQuantityForProgressBar:i,cartComponentsCornerType:l,cartComponentsCornerRadius:s})=>{const c=we(yn),d=a?.bannerFooterText,p="string"==typeof d&&d.trim().length>0,m=!n&&(e=>{try{if("undefined"==typeof window)return!1;const t=window.location.pathname||"/";if("/"===t||""===t)return!0;const n=e?.showOnPages;if(!Array.isArray(n)||0===n.length)return!1;const r=t.toLowerCase(),o=r.endsWith("/")?r:`${r}/`;return n.some(e=>{if(!e||"string"!=typeof e)return!1;const t=e.trim().toLowerCase().replace(/^\/|\/$/g,"");if(!t)return!1;const n=`/${t}/`;return o.includes(n)})}catch{return!1}})(a),u=c?.item_count??0,g=Tn(c?.items_subtotal_price??0,c?.currency??"INR"),f=Fn(c),y=function(e,t,n,r,o){if(!e||0===e.length)return{deltaValue:0,show:!1};const a=(t??"minimum_order_value").toLowerCase(),i="quantity_threshold"===a?"number"==typeof o?o:r:n,l=[...e].sort((e,t)=>("quantity_threshold"===a?e.quantityThreshold:e.minimumOrderValue)-("quantity_threshold"===a?t.quantityThreshold:t.minimumOrderValue)).find(e=>("quantity_threshold"===a?e.quantityThreshold:e.minimumOrderValue)>i);if(!l)return{deltaValue:0,show:!1};const s="quantity_threshold"===a?l.quantityThreshold:l.minimumOrderValue,c=Math.max(0,s-i);return{deltaValue:c,show:c>0,isQuantity:"quantity_threshold"===a}}(r,o,g,u,i),x="sharp"===l?0:s??12,h=a?.textColor??"#111",b=a?.backgroundColor??"#FF7E6E",v=a?.bannerBackgroundColor??"#FFE0DC",C=a?.buttonColor??"#E8513F",E=e.useRef(null);e.useEffect(()=>{qn(E.current)},[C]);const k={position:"fixed",width:"100%",bottom:0,zIndex:2147483642,paddingBottom:"env(safe-area-inset-bottom)"},T={background:"#FFFFFF",color:"#111",padding:"5px",fontSize:12,fontFamily:"Poppins",fontWeight:600,textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center",gap:8},S={background:"#fff",color:h,borderRadius:x,boxShadow:"0 10px 24px rgba(0,0,0,0.15)",overflow:"hidden",fontFamily:"Poppins"},N={position:"absolute",top:0,left:"50%",transform:"translate(-50%, -70%)",backgroundColor:v,color:h,padding:8,fontSize:12,lineHeight:"normal",borderTopLeftRadius:13,borderTopRightRadius:13,width:"97%",display:"flex",alignItems:"center",justifyContent:"center",gap:6,zIndex:-1},F={display:"flex",alignItems:"center",gap:12,padding:"10px 12px",backgroundColor:b,cursor:"pointer"},B={display:"flex",alignItems:"center",gap:8,fontWeight:700,fontSize:16,color:h},$={fontSize:12,color:h,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},z={padding:"5px 10px",background:C,color:"#fff",borderRadius:8,fontSize:15,fontWeight:700,border:"none",outline:"none",flexShrink:0};if(!m)return null;if(0===u){if(!y.show)return null;const t=y.isQuantity?`${y.deltaValue} more items to get freebie`:`Add items worth ${f}${Un(y.deltaValue.toFixed(0))} to get freebie`;return e.createElement("div",{style:k},e.createElement("div",{className:"yt-cart-floating-ribbon",style:T},e.createElement(w,{"aria-hidden":!0}),e.createElement("span",null,t)))}const I=1===u?"1 item":`${u} items`,P=a?.lastTierUnlockedText||"Best tier unlocked",D=y.show?y.isQuantity?`${y.deltaValue} more items to get freebie`:`Add items worth ${f}${Un(y.deltaValue.toFixed(0))} more to get freebie`:P;return e.createElement("div",{style:{position:"fixed",left:12,right:12,bottom:12,zIndex:2147483642,paddingBottom:"env(safe-area-inset-bottom)"}},e.createElement("div",{style:{position:"relative"}},(y.show||r&&r.length>0)&&e.createElement("div",{className:"yt-cart-floating-banner",style:N},e.createElement(w,{"aria-hidden":!0,style:{marginBottom:7}}),e.createElement("span",{style:{display:"inline-block",marginBottom:7}},D)),e.createElement("div",{style:S},e.createElement("div",{className:"yt-cart-floating-body",style:F,onClick:()=>t(!0)},e.createElement(M,{width:24,height:24,color:h}),e.createElement("div",{style:{display:"flex",flexDirection:"column",minWidth:0,flex:1,lineHeight:"normal"}},e.createElement("div",{style:B},e.createElement("span",null,f,Un(g.toFixed(0))),e.createElement("span",{style:{fontSize:9,fontWeight:600,color:"#fff",backgroundColor:"#828282",marginBottom:5,paddingInline:5}},I)),p?e.createElement("span",{style:$,title:d},d):null),e.createElement("button",{ref:E,style:z,onClick:()=>t(!0),"aria-label":"View Cart"},"View Cart")))))};var eg=e.memo(({exploreCTAColor:r,checkoutFontSize:a,handleDecrement:l,handleIncrement:s,removeCartItem:c,addCartItem:d,cartTitle:p,emptyCartTitle:m,emptyCartDescription:u,emptyCartButtons:g,backgroundColor:f,backgroundSubdued:y,tertiaryColor:x,tertiaryTextColor:h,backdrop:b=!0,cartData:w,isUserSignedIn:v,showBundle:C,bundleProducts:E,discountAmountOff:k,loyaltyIcon:T,pointsToBeUsed:S,rewardMultiplier:N,redemptionMultiplier:F,removeDiscount:B,applyDiscount:$,discountApplied:z,checkoutFunction:I,joinNowFunction:P,guestLoyaltyPercentage:D,showToggleButton:A,isOpen:_,setIsOpen:L,isDev:R,switchWidthVariant:O,recProductsList:M,showMultiStepProgressBar:V,cartCheckpoints:W,redemptionRate:j,orderCreditType:H,orderCreditValue:q,showCartLevelAltPay:U,exploreCtaRedirectLink:Q,discountAmountApplied:Y,minimumCartValue:Z,discountInCheckoutButton:G,isStickyCheckout:X,handleCheckpointCrossed:K,customCartProgressBarCriteria:J,checkoutButtonColor:ee,ctaButtonBackgroundColor:te,ctaButtonTextColor:ne,primaryTextColor:re,productRecsCtaButtonText:oe,productRecsTitleText:ae,secondaryTextColor:ie,showProductRecsOnDesktop:le,showProductRecsOnMobile:se,themeColor:ce,themeTextColor:de,companyName:pe,gstNumber:me,showGSTOption:ue,applyGSTToCart:ge,showMOVForProgressTiers:fe,freeProduct:ye,showLoyaltyCta:xe,freeProductAdjustedCartTotal:we,redemptionMinimumOrderValue:ve,redemptionMinimumOrderValueStatus:Ce,signinCTAButtonVisible:Ee,cartSigninCTAMainText:ke,showNoteOption:Te,applyNoteToCart:Se,note:Ne,inlineCartOfferInfoText:Fe,inlineCartOfferInfoRedirectLink:Be,cartOfferTermsAndConditionsText:$e,showEditOptionOnProducts:ze,getProductDetailsByVariantId:Ie,onSetLoading:Pe,showVariantSelectionDropdownInProductRecs:De,originalCartSubtotal:Ae,currentTier:_e,freebieProductsInCart:Le,showFreebieClaim:Re,addFreebieToCart:Oe,freebiesInCart:Me,effectiveQuantityForProgressBar:Ve,productPercentageOffMapping:We,removeFreebieFromCart:je,postalCodeList:He,enableGeoLocationDeliveryRestriction:qe,applyPostalCodeAndDeliverySlotToCart:Ue,showDeleteOnFreebies:Qe,freebieCouponTemplates:Ye,freebieFlowCheckpoints:Ze,freebieClaimData:Ge,showStickyAddToCart:Xe,stickyCartLineItem:Ke,postalCodeBasedItemTrackingParameter:Je,enableSlotPicker:et,deliveryHeaderTitle:tt,deliveryAvailableText:nt,deliveryNotAvailableText:rt,giftWrapSetupData:ot,giftWrapProductDetail:at,enableCustomCartOnCartPage:it,isCartPage:lt,progressBarFreeProductIconType:st,addToStickyCart:ct,productRecsCardLayout:dt,productRecsCardListVariant:pt,showCartTimer:mt,showFreebieMilestone:ut,showFloatingCart:gt,floatingCartData:ft,freebieMilestoneData:yt,cartTimerInMinutes:xt,cartTimerCustomText:ht,imageAspectSelector:bt,cartComponentsCornerType:wt,cartComponentsCornerRadius:vt,stickyCartCustomizationData:Ct,cartOffersCarousalData:Et,stickyBarBuyNowFunction:kt,gstSectionCustomizationData:Tt,noteSectionTitle:St,checkoutSectionMessage:Nt,checkoutSectionMessageRedirectLink:Ft,checkoutSectionMessageDisplay:Bt,showVariantSelectionDropdownInProductClaim:$t,loyaltyDiscount:zt,coinName:It,showDiscountOnMRP:Pt,prefixMessageText:Dt,suffixMessageText:At,successMessageText:_t,toggleDecimal:Lt,cartOffersCarouselHeight:Rt,disableCheckoutButton:Ot,showEmptyCartRecommendations:Mt,emptyProductRecsTitleText:Vt,checkoutButtonBottomSpacing:Wt,applyCouponCode:jt,showApplyCoupon:Ht,enableConfetti:qt,showCheckoutButtonPaymentIcons:Ut=!0,showCouponOptions:Qt,rewardCoupons:Yt,couponSelectionData:Zt,comboBundleData:Gt,comboBundleAddToCartFunction:Xt,stealDealCheckpoints:Kt,stealDealProducts:Jt,stealDealAddToCart:en,useCartShell:tn,showTrustedBadge:nn,trustedBadgeData:rn,drawerLayoutData:on})=>{const an=he(yn),[ln,sn]=be(kn),[cn,dn]=be(Xi),pn=()=>L(!_),[mn,un]=t(()=>{const e=window.ytComboBundle;return{comboBundleData:e?.bundle??null,comboBundleAddToCartFunction:e?.addToCart??null}});n(()=>{const e=e=>{const t=e.detail;un({comboBundleData:t?.bundle??null,comboBundleAddToCartFunction:t?.addToCart??null})};return window.addEventListener("yt-combo-bundle-updated",e),()=>window.removeEventListener("yt-combo-bundle-updated",e)},[]);const gn=mn.comboBundleData??Gt,fn=mn.comboBundleAddToCartFunction??Xt,[xn,hn]=t(()=>{const e=window.ytVolumeBundle;return{bundle:e?.bundle??void 0,currentTier:e?.currentTier??void 0,volumeBundleAddToCartFunction:e?.addToCart??void 0}});n(()=>{const e=e=>{const t=e.detail;hn({bundle:t?.bundle??void 0,currentTier:t?.tierData??void 0,volumeBundleAddToCartFunction:t?.addToCart??void 0})};return window.addEventListener("yt-volume-bundle-updated",e),()=>window.removeEventListener("yt-volume-bundle-updated",e)},[]),i(()=>{w&&an(w)},[w]);const bn=o(null);n(()=>{function e(e){bn.current&&!bn.current.contains(e.target)&&(sn({open:!1,variantId:void 0,quantity:void 0,handle:void 0}),dn({isOpen:!1}))}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);const[wn,vn]=t(!1);return n(()=>{const e=()=>{vn(window.innerWidth>=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),n(()=>{if(!tn)return;const e=window.ytCartShell;if(!e)return;const t=e.getDrawerElement?.(),n=e.getOverlayElement?.();t&&(!_||it&&lt?(t.style.setProperty("transform","translateX(100%)","important"),t.style.boxShadow="none",n&&(n.style.display="none"),document.body.classList.remove("drawer-open")):(t.style.setProperty("transform","translateX(0)","important"),t.style.boxShadow="-14px 8px 14.4px 0px rgba(0, 0, 0, 0.35)",b&&n&&(n.style.display="block"),document.body.classList.add("drawer-open")))},[_,tn,it,lt,b]),n(()=>{if(!tn)return;const e=window.ytCartShell,t=e?.getOverlayElement?.();if(!t)return;const n=()=>L(!1);return t.addEventListener("click",n),()=>t.removeEventListener("click",n)},[tn,L]),e.createElement(e.Fragment,null,e.createElement("div",{style:{position:it&&lt?"relative":"absolute",width:"100%",display:it&&lt?"flex":"block",alignItems:"center",justifyContent:"center"}},A&&!(it&&lt)&&e.createElement("button",{style:{margin:"16px"},onClick:pn},_?"Close Drawer":"Open Drawer"),!tn&&_&&b&&!(it&&lt)&&e.createElement("div",{onClick:pn,id:"custom-cart-yt-overlay",style:{position:"fixed",top:0,right:0,zIndex:1e4,transform:"translateX(0)",backgroundColor:"rgba(0,0,0,0.5)",inset:0,height:"100%",width:"100%"}},"‎"),e.createElement(Xs,{useCartShell:tn,isCartPage:lt,enableCustomCartOnCartPage:it,isOpen:_,setIsOpen:L,backgroundColor:f,backgroundSubdued:y??"#F5F5F5",tertiaryColor:x,tertiaryTextColor:h,exploreCTAColor:r,checkoutFontSize:a,cartTitle:p,handleDecrement:l,handleIncrement:s,removeCartItem:c,addCartItem:d,emptyCartTitle:m,emptyCartButtons:g,emptyCartDescription:u,showBundle:C,isUserSignedIn:v,bundleProducts:E,discountAmountOff:k,loyaltyIcon:T,pointsToBeUsed:S,rewardMultiplier:N,redemptionMultiplier:F,removeDiscount:B,applyDiscount:$,discountApplied:z,checkoutFunction:I,joinNowFunction:P,guestLoyaltyPercentage:D,isDev:R,switchWidthVariant:O,recProductsList:M,showMultiStepProgressBar:V,cartCheckpoints:W,redemptionRate:j,orderCreditType:H,orderCreditValue:q,showCartLevelAltPay:U,exploreCtaRedirectLink:Q,discountAmountApplied:Y,minimumCartValue:Z,discountInCheckoutButton:G,isStickyCheckout:X,handleCheckpointCrossed:K,customCartProgressBarCriteria:J??"minimum_order_value",checkoutButtonColor:ee,ctaButtonBackgroundColor:te,ctaButtonTextColor:ne,primaryTextColor:re,productRecsCtaButtonText:oe,productRecsTitleText:ae,secondaryTextColor:ie,showProductRecsOnDesktop:le,showProductRecsOnMobile:se,themeColor:ce,themeTextColor:de,companyName:pe,gstNumber:me,showGSTOption:ue,applyGSTToCart:ge,showMOVForProgressTiers:fe,freeProduct:ye,showLoyaltyCta:xe,freeProductAdjustedCartTotal:we,redemptionMinimumOrderValue:ve,redemptionMinimumOrderValueStatus:Ce,signinCTAButtonVisible:Ee,cartSigninCTAMainText:ke,applyNoteToCart:Se,note:Ne,showNoteOption:Te,inlineCartOfferInfoText:Fe,inlineCartOfferInfoRedirectLink:Be,cartOfferTermsAndConditionsText:$e,showEditOptionOnProducts:ze,onSetLoading:Pe,showVariantSelectionDropdownInProductRecs:De,originalCartSubtotal:Ae,currentTier:_e,freebieProductsInCart:Le,cartOffersCarousalData:Et,showFreebieClaim:Re,addFreebieToCart:Oe,freebiesInCart:Me,effectiveQuantityForProgressBar:Ve,productPercentageOffMapping:We,removeFreebieFromCart:je,postalCodeList:He,enableGeoLocationDeliveryRestriction:qe,applyPostalCodeAndDeliverySlotToCart:Ue,showDeleteOnFreebies:Qe,freebieCouponTemplates:Ye,freebieFlowCheckpoints:Ze,freebieClaimData:Ge,postalCodeBasedItemTrackingParameter:Je,enableSlotPicker:et,deliveryHeaderTitle:tt,deliveryAvailableText:nt,deliveryNotAvailableText:rt,giftWrapSetupData:ot,giftWrapProductDetail:at,progressBarFreeProductIconType:st,productRecsCardLayout:dt,productRecsCardListVariant:pt,showCartTimer:mt,showFreebieMilestone:ut,freebieMilestoneData:yt,cartTimerCustomText:ht,cartTimerInMinutes:xt,imageAspectSelector:bt,cartComponentsCornerType:wt,cartComponentsCornerRadius:vt,gstSectionCustomizationData:Tt,noteSectionTitle:St,checkoutSectionMessage:Nt,checkoutSectionMessageRedirectLink:Ft,checkoutSectionMessageDisplay:Bt,showVariantSelectionDropdownInProductClaim:$t,loyaltyDiscount:zt,getProductDetailsByVariantId:Ie,coinName:It,showDiscountOnMRP:Pt??!0,prefixMessageText:Dt,suffixMessageText:At,successMessageText:_t,toggleDecimal:Lt,cartOffersCarouselHeight:Rt,disableCheckoutButton:Ot,showEmptyCartRecommendations:Mt,emptyProductRecsTitleText:Vt,checkoutButtonBottomSpacing:Wt,applyCouponCode:jt,showApplyCoupon:Ht,enableConfetti:qt,showCheckoutButtonPaymentIcons:Ut,stealDealCheckpoints:Kt,stealDealProducts:Jt,stealDealAddToCart:en,showCouponOptions:Qt,rewardCoupons:Yt,couponSelectionData:Zt,showTrustedBadge:nn,trustedBadgeData:rn,drawerLayoutData:on}),Xe&&Ke&&d&&e.createElement(Fu,{showStickyCart:Xe,stickyCartCustomizationData:Ct,product:Ke,addCartItem:d,onSetLoading:Pe,themeColor:ce,themeTextColor:de,cartData:w,isCartOpen:_,setIsCartOpen:L,ctaButtonBackgroundColor:te,ctaButtonTextColor:ne,addToStickyCart:ct,cartComponentsCornerRadius:vt,cartComponentsCornerType:wt,checkoutFunction:kt,backgroundColor:f,primaryTextColor:re,comboBundleData:gn,comboBundleAddToCartFunction:fn,volumeBundleCurrentTier:xn.currentTier,volumeBundleData:xn.bundle,volumeBundleAddToCartFunction:xn.volumeBundleAddToCartFunction}),wn&&ln.open&&e.createElement(Xu,{backgroundColor:f,ref:bn,isDev:R,removeCartItem:c,addCartItem:d,getProductDetailsByVariantId:Ie,themeColor:ce,cartComponentsCornerRadius:vt,cartComponentsCornerType:wt,removeFreebieFromCart:je,freebieClaimAddToCart:Oe,stealDealAddToCart:en,productClaimCtaButtonText:Ge?.productClaimCtaButtonText,backgroundSubdued:y??"#F5F5F5",primaryTextColor:re}),!wn&&ln.open&&e.createElement(Ku,{ref:bn,isDev:R,removeCartItem:c,addCartItem:d,getProductDetailsByVariantId:Ie,themeColor:ce,cartComponentsCornerRadius:vt,cartComponentsCornerType:wt,backgroundColor:f,removeFreebieFromCart:je,freebieClaimAddToCart:Oe,stealDealAddToCart:en,productClaimCtaButtonText:Ge?.productClaimCtaButtonText,backgroundSubdued:y??"#F5F5F5",primaryTextColor:re})),!wn&&gt&&e.createElement(Ju,{isCartOpen:_,setIsCartOpen:L,cartCheckpoints:W,customCartProgressBarCriteria:J,floatingCartData:ft,effectiveQuantityForProgressBar:Ve,cartComponentsCornerRadius:vt,cartComponentsCornerType:wt}))});_t(".scene {\n width: 100%;\n height: 60vh;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.floating {\n animation: float 3s ease-in-out infinite;\n}\n\n@keyframes float {\n 0%, 100% {\n transform: translateY(0);\n }\n 50% {\n transform: translateY(-10px);\n }\n}\n.cube {\n position: relative;\n width: 50px;\n height: 50px;\n transform-style: preserve-3d;\n transform: rotateX(-45deg) rotateY(50deg) rotateZ(0deg);\n}\n\n.side,\n.lid,\n.flap {\n position: absolute;\n width: 100px;\n height: 100px;\n border: 4px solid #333366;\n background: transparent;\n box-sizing: border-box;\n}\n\n.side {\n background: #fff;\n backface-visibility: hidden;\n}\n\n.side.front {\n transform: translateZ(50px);\n}\n\n.side.back {\n transform: rotateY(180deg) translateZ(50px);\n}\n\n.side.left {\n transform: rotateY(-90deg) translateZ(50px);\n}\n\n.side.right {\n transform: rotateY(90deg) translateZ(50px);\n}\n\n.side.bottom {\n transform: rotateX(-90deg) translateZ(50px);\n}\n\n.lid {\n transform: rotateX(90deg) translateZ(50px);\n transform-style: preserve-3d;\n}\n\n.flap.north {\n top: 0;\n left: 0;\n width: 100%;\n height: 50%;\n transform-origin: top center;\n animation: openNorth 3s ease-in-out infinite;\n}\n\n.flap.south {\n bottom: 0;\n left: 0;\n width: 100%;\n height: 50%;\n transform-origin: bottom center;\n animation: openSouth 3s ease-in-out infinite;\n}\n\n.flap.east {\n top: 0;\n right: 0;\n width: 50%;\n height: 100%;\n transform-origin: right center;\n animation: openEast 3s ease-in-out infinite;\n}\n\n.flap.west {\n top: 0;\n left: 0;\n width: 50%;\n height: 100%;\n transform-origin: left center;\n animation: openWest 3s ease-in-out infinite;\n}\n\n@keyframes openNorth {\n 0%, 100% {\n transform: rotateX(0deg);\n }\n 50% {\n transform: rotateX(180deg);\n }\n}\n@keyframes openSouth {\n 0%, 100% {\n transform: rotateX(0deg);\n }\n 50% {\n transform: rotateX(-180deg);\n }\n}\n@keyframes openEast {\n 0%, 100% {\n transform: rotateY(0deg);\n }\n 50% {\n transform: rotateY(180deg);\n }\n}\n@keyframes openWest {\n 0%, 100% {\n transform: rotateY(0deg);\n }\n 50% {\n transform: rotateY(-180deg);\n }\n}");const tg=()=>e.createElement("div",{className:"scene"},e.createElement("div",{className:"floating"},e.createElement("div",{className:"cube"},e.createElement("div",{className:"side front"},"‎"),e.createElement("div",{className:"side back"},"‎"),e.createElement("div",{className:"side left"},"‎"),e.createElement("div",{className:"side right"},"‎"),e.createElement("div",{className:"side bottom"},"‎"),e.createElement("div",{className:"lid"},e.createElement("div",{className:"flap north"},"‎"),e.createElement("div",{className:"flap south"},"‎"),e.createElement("div",{className:"flap east"},"‎"),e.createElement("div",{className:"flap west"},"‎")))));_t("/*\n * Widget style isolation (host CSS gate).\n *\n * We render into the host site's light DOM, so its base/reset CSS bleeds into\n * our components (e.g. `t4s-base.css` shipping `hr { max-width: 100px }`, or a\n * global Meyer/normalize reset). This reverts the bare elements host CSS\n * attacks back to the browser's user-agent defaults — without us enumerating\n * every property on every element.\n *\n * KEY DESIGN DECISION — only revert UNCLASSED elements (`:not([class])`):\n *\n * - Host base/reset CSS targets bare elements (`hr`, `p`, `*`) at specificity\n * (0,0,1)/(0,0,0). Our own components are ALWAYS class-based (0,1,0)+, so a\n * component class already outranks host element selectors on its own.\n * - Therefore the reset only needs to cover elements WITHOUT a class. By\n * excluding classed elements we guarantee `all: revert` can never compete\n * with — or strip — our own component styles.\n * - This makes the gate INDEPENDENT OF STYLESHEET INJECTION ORDER. Previously\n * `all: revert` on `.yt-root *` was (0,1,0), tying every component rule; the\n * winner depended on which <style> was injected last, which differed between\n * a fresh page load and the guest->profile sign-in transition (it stripped\n * `.yt-rw-headBg`'s positioning, dropping the watermark to the left). With\n * the classed-exclusion, classed elements are never matched, so no tie.\n * - `:where(...)` keeps specificity at (0,1,0) despite the `:not()` argument,\n * so descendant component rules on bare elements (e.g. `.yt-rwmd-logo img`,\n * (0,1,1)) still win.\n * - `all: revert` is NOT `!important`, so merchant/custom CSS using\n * `!important` still overrides everything here, as intended.\n * - `all` does not touch custom properties, so our CSS variables survive.\n *\n * Applies only to subtrees explicitly marked with `.yt-root`.\n *\n * RESIDUAL LIMITATION: a host ELEMENT selector can still set a property on a\n * CLASSED element of ours when our class does not declare that property (e.g.\n * host `p { line-height }` on a `.yt-x` paragraph that omits line-height). The\n * only fully airtight fixes are build-time scoping of all component selectors\n * under `.yt-root` (raising them to (0,2,0)) or Shadow DOM.\n */\n.yt-root *:where(:not([class], svg, svg *)) {\n all: revert;\n /* Bare elements match the zeroed-margin baseline our components were\n authored inside (host themes reset margins to 0). */\n margin: 0;\n}\n\n/* box-sizing is safe to normalize everywhere: no component sets it, so this\n (0,1,0) rule wins over host's `*` (0,0,0) by specificity, not by order. */\n.yt-root,\n.yt-root * {\n box-sizing: border-box;\n}\n");_t("\n@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Urbanist:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');\n\n@font-face {\n font-family: 'Circular Std';\n src: local('Circular Std Book'), local('Circular Std');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n}\n@font-face {\n font-family: 'Circular Std';\n src: local('Circular Std Medium'), local('Circular Std');\n font-weight: 500;\n font-style: normal;\n font-display: swap;\n}\n@font-face {\n font-family: 'Circular Std';\n src: local('Circular Std Bold'), local('Circular Std');\n font-weight: 700;\n font-style: normal;\n font-display: swap;\n}\n\n:root {\n --font-primary: 'Poppins', sans-serif;\n --font-secondary: 'Urbanist', sans-serif;\n --font-tertiary: 'Inter', sans-serif;\n --font-alt: 'Sansation', sans-serif;\n --font-brand: sans-serif;\n}\n");_t('@import url(\'https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Urbanist:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap\');\n\n.yt-launcher-sticky {\n font-family: Poppins;\n position: fixed;\n z-index: 50;\n /* left: 0px;\n top: 50vh; */\n transform: rotate(90deg) translateY(7px);\n padding: 9px 14px 4px 14px;\n align-items: center;\n border-radius: 24px 24px 0 0;\n background: #bd4747;\n}\n\n.yt-launcher-sticky svg {\n transform: rotate(-90deg);\n width: 24px !important;\n height: 22px !important;\n flex-shrink: 0 !important;\n}\n\n.yt-launcher-sticky img,\n.yt-launcher-stickyText img,\n.yt-launcher-bubble img,\n.yt-launcher-ribbon img {\n width: 24px !important;\n height: 24px !important;\n object-fit: contain !important;\n flex-shrink: 0 !important;\n max-width: none !important;\n max-height: none !important;\n}\n\n/* Paragraph margins are zeroed by the (0,1,0) baseline in reset.css,\n which bare <p> here rely on and component classes still override. */\n\n\n\n.yt-launcher-stickyText {\n position: fixed;\n z-index: 50;\n/* left:100px; */\n /* top: 50vh; */\n font-family: Poppins;\n display: inline-flex;\n margin: 0px;\n transform: rotate(90deg) translateY(-20px);\n transform-origin: left;\n padding: 9px 14px 9px 14px;\n align-items: center;\n background: #bd4747;\n}\n.yt-launcher-stickyText p {\n display: flex;\n padding: 0 6px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n color: #fff;\n /* font-family: Poppins; */\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n margin: 0 !important;\n}\n.yt-launcher-stickyText svg {\n transform: rotate(-90deg);\n width: 24px !important;\n height: 24px !important;\n flex-shrink: 0 !important;\n}\n\n.yt-launcher-bubble svg {\n width: 24px !important;\n height: 24px !important;\n flex-shrink: 0 !important;\n}\n\n.yt-launcher-ribbon svg {\n width: 20px !important;\n height: 21px !important;\n flex-shrink: 0 !important;\n}\n\n/* your existing red circle */\n.yt-logo-badge{\n \n width: 160px; /* or whatever you already use */\n aspect-ratio: 1 / 1;\n border-radius: 50%;\n background: #B83A38; /* your red */\n display: grid;\n place-items: center;\n overflow: visible;\n}\n\n/* wave rings */\n.yt-launcher-sticky .yt-ring {\n position: absolute;\n inset: 0; /* hug the element boundary */\n border-radius: inherit; /* match the pill\'s shape (e.g., 55px 55px 0 0) */\n pointer-events: none;\n opacity: 0;\n /* start exactly at the boundary with zero spread */\n box-shadow: 0 0 0 0 rgba(0,0,0,.28);\n animation: waveOut var(--wave-duration, 3.2s) linear infinite;\n}\n.yt-launcher-sticky .yt-ring2 { animation-delay: calc(var(--wave-duration, 3.2s) / 3); }\n.yt-launcher-sticky .yt-ring3 { animation-delay: calc(var(--wave-duration, 3.2s) * 2 / 3); }\n\n\n\n/* toggle waves off */\n.yt-launcher-sticky[data-waves="off"] .yt-ring{\n animation-play-state: paused;\n opacity: 0;\n}\n\n.yt-launcher-stickyText .yt-ring {\n position: absolute;\n inset: 0; /* sit exactly on the boundary */\n border-radius: inherit; /* use parent’s radius (rect if none set) */\n pointer-events: none;\n opacity: 0;\n box-shadow: 0 0 0 0 rgba(0,0,0,.28);\n animation: waveOut var(--wave-duration, 3.2s) linear infinite;\n}\n.yt-launcher-stickyText .yt-ring2 { animation-delay: calc(var(--wave-duration, 3.2s) / 3); }\n.yt-launcher-stickyText .yt-ring3 { animation-delay: calc(var(--wave-duration, 3.2s) * 2 / 3); }\n\n\n\n/* toggle waves off */\n.yt-launcher-stickyText[data-waves="off"] .yt-ring{\n animation-play-state: paused;\n opacity: 0;\n}\n\n\n.yt-launcher-bubble {\n z-index: 50;\n font-family: Poppins;\n position: fixed;\n \n display: inline-flex;\n padding: 8px 10px;\n align-items: center;\n border-radius: 29px;\n border: 1px solid #c1c1c1;\n background: #fff;\n box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.3);\n}\n\n.yt-launcher-bubble p {\n color: #0a0a0a;\n /* font-family: Poppins; */\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n display: flex;\n padding: 0 6px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n margin: 0 !important;\n}\n\n.yt-launcher-bubble .yt-ring{\n position: absolute;\n inset: 0; /* hug the bubble edge */\n border-radius: inherit; /* pill/circle matches parent */\n pointer-events: none;\n /* start with zero spread at the boundary */\n box-shadow: 0 0 0 0 rgba(0,0,0,.22);\n opacity: 0;\n animation: waveOut var(--wave-duration, 3.2s) linear infinite;\n}\n.yt-launcher-bubble .yt-ring2{ animation-delay: calc(var(--wave-duration, 3.2s) / 3); }\n.yt-launcher-bubble .yt-ring3{ animation-delay: calc(var(--wave-duration, 3.2s) * 2 / 3); }\n\n/* pause when waves are off */\n.yt-launcher-bubble[data-waves="off"] .yt-ring{\n animation-play-state: paused;\n opacity: 0;\n}\n\n@keyframes waveOut{\n 0% { box-shadow: 0 0 0 0 rgba(0,0,0,.28); opacity: .8; }\n 70% { box-shadow: 0 0 0 18px rgba(0,0,0,.14); opacity: .6; }\n 100% { box-shadow: 0 0 0 30px rgba(0,0,0, 0); opacity: 0; }\n}\n\n\n\n/* toggle waves off */\n.yt-launcher-bubble[data-waves="off"] .yt-ring{\n animation-play-state: paused;\n opacity: 0;\n}\n\n.yt-launcher-ribbon{\n z-index: 50;\n font-family: Poppins;\n position: fixed;\n bottom: 0px;\n left:0px;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n/* width: 393px; */\npadding: 9px 14px 8px 14px;\njustify-content: center;\nalign-items: center;\ngap: 3px;\nbackground: #BD4747;\n/* overflow: hidden; */\n}\n\n.yt-launcher-ribbon span{\n color: #FFF;\n padding-inline: 6px;\n/* font-family: Poppins; */\nfont-size: 14px;\nfont-style: normal;\nfont-weight: 600;\nline-height: normal;\nmargin: 0 !important;\n}\n\n.yt-launcher-ribbon p{\n color: #FFF;\n padding-inline: 6px;\n/* font-family: Poppins; */\nfont-size: 14px;\nfont-style: normal;\nfont-weight: 400;\nline-height: normal;\nmargin: 0 !important;\n\n}\n\n\n\n/* NEW: viewport + track */\n.yt-ribbon-viewport{\n font-family: Poppins;\n display: flex;\n justify-content: center;\nflex:1;\n overflow: hidden; \n /* subtle fade at edges (optional) */\n -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);\n mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);\n}\n\n.yt-ribbon-track{\n font-family: Poppins;\n display: inline-flex;\n align-items: center;\n gap: 3px;\n white-space: nowrap;\n}\n\n/* Only animate on mobile */\n@media (max-width: 640px){\n .yt-ribbon-track.yt-is-marquee{\n /* duration set from JS via --marquee-duration */\n animation: ribbon-scroll var(--marquee-duration, 12s) linear infinite;\n }\n}\n\n\n.yt-ribbon-viewport:hover .yt-ribbon-track.yt-is-marquee,\n.yt-ribbon-viewport:focus-within .yt-ribbon-track.yt-is-marquee{\n animation-play-state: paused;\n}\n\n@keyframes ribbon-scroll{\n 0% { transform: translateX(0); }\n 100% { transform: translateX(-50%); } /* because we duplicated content */\n}\n\n\n\n\n\n\n.yt-launcher-sticky,\n.yt-launcher-stickyText,\n.yt-launcher-bubble,\n.yt-launcher-ribbon {\n transition:\n filter .18s ease,\n box-shadow .18s ease,\n background-color .18s ease,\n transform .18s ease,\n border-color .18s ease;\n cursor: pointer; /* if they’re clickable */\n}\n\n\n\n\n.yt-launcher-sticky:hover {\n filter: brightness(1.08);\n box-shadow: 0 6px 14px rgba(0,0,0,.25);\n /* tiny nudge without fighting your rotate() chain */\n transform: rotate(90deg) translateY(7px) translateZ(0);\n}\n\n\n.yt-launcher-sticky:hover .yt-ring {\n animation-play-state: running;\n opacity: .5; /* visible immediately */\n}\n\n\n.yt-launcher-stickyText:hover {\n filter: brightness(1.08);\n box-shadow: 0 6px 14px rgba(0,0,0,.25);\n transform: rotate(90deg) translateY(-20px) translateZ(0);\n}\n.yt-launcher-stickyText:hover .yt-ring {\n animation-play-state: running;\n opacity: .5;\n}\n\n/* If you want waves OFF by default, keep your [data-waves="off"] rule\n ABOVE these :hover rules so hover overrides it. */\n\n.yt-launcher-bubble:hover {\n transform: translateY(-2px);\n box-shadow: 6px 10px 16px rgba(0,0,0,.28);\n border-color: #b5b5b5;\n}\n\n\n.yt-launcher-ribbon:hover {\n filter: brightness(1.06);\n box-shadow: 0 -6px 18px rgba(0,0,0,.25) inset, 0 2px 8px rgba(0,0,0,.25);\n}\n');_t('/* --------- Theme tokens (you can override via styleVars prop) --------- */\n:root {\n --yt-rwmd-backdrop: rgba(0, 0, 0, 0.55);\n --yt-rwmd-surface: #ffffff;\n --yt-rwmd-ink: #141414;\n --yt-rwmd-muted: #6c6c6c;\n --yt-rwmd-cta-bg: #b85552; /* button background */\n --yt-rwmd-cta-ink: #ffffff;\n\n /* gradient band */\n --yt-rwmd-band-left: #2b252a;\n --yt-rwmd-band-right: #c04d47;\n --otp-ink: #1a1a1a;\n --otp-muted: #6d6d6d;\n --otp-border: #ececec;\n --otp-accent: #b85552;\n}\n/* Margins are zeroed by the (0,1,0) baseline in reset.css; component\n classes (e.g. .yt-otp-hint) override it, bare <p>/<h3> inherit the 0. */\n\n/* GuestDesktop: reduce all font sizes by 10% at <=700px */\n/* @media (max-width: 700px) {\n .yt-guestDesktop,\n .yt-guestDesktop * {\n font-size: 99% !important;\n line-height: 99% !important;\n }\n} */\n\n/* --------- Backdrop --------- */\n\n.yt-guestDesktop {\n max-width: 983px;\n /* max-height: 481px; */\n margin-block: auto;\n margin-inline: 5%;\n width: auto;\n display: flex;\n gap: 9px;\n flex-direction: column;\n place-self: center;\n align-self: center;\n justify-self: center;\n}\n\n/* make children fill the full card height instead of centering */\n.yt-guestDesktop-card {\n overflow: hidden;\n display: flex;\n width: 100%;\n height: 481px;\n /* max-height: 481px; */\n /* aspect-ratio: 16/9; */\n position: relative;\n align-items: stretch; /* was center */\n border-radius: 16px;\n border: 5px solid #3f3f3f;\n background: #171717;\n}\n\n.yt-guestDesktop-image {\n flex: 1 1 50%;\n min-width: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n display: block;\n background: #fff;\n overflow: hidden;\n}\n\n.yt-guestDesktop-contentBox {\n position: relative;\n flex: 1 1 50%;\n min-width: 0;\n height: 100%;\n padding-inline: 16px;\n /* padding-bottom: 100px; */\n box-sizing: border-box;\n background: #fff;\n display: flex;\n align-items: center;\n flex-direction: column;\n overflow: hidden;\n}\n\n.yt-guestDesktop-body {\n width: 100%;\n max-width: 100%;\n display: flex;\n height: 100%;\n flex-direction: column;\n align-items: flex-start;\n justify-content: start;\n padding-top: 20px;\n gap: 9px;\n overflow: hidden; /* guards against accidental overflow */\n}\n\n.yt-guestDesktop-title {\n display: flex;\n padding: 10px;\n\n align-items: center;\n gap: 10px;\n align-self: stretch;\n color: #000;\n font-family: Poppins;\n font-size: 28px;\n font-style: normal;\n font-weight: 600;\n line-height: 110%; /* 30.8px */\n letter-spacing: -0.56px;\n}\n.yt-guestDesktop-subtitle {\n display: flex;\n padding: 4px 30px 4px 10px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n align-self: stretch;\n color: #000;\n font-family: Poppins;\n font-size: 18px;\n font-style: normal;\n font-weight: 300;\n line-height: 110%; /* 19.8px */\n letter-spacing: 0.18px;\n}\n.yt-guestDesktop-cta {\n display: flex;\n padding: 10px 0;\n flex-direction: column;\n align-items: flex-start;\n gap: 10px;\n align-self: stretch;\n}\n.yt-guestDesktop-cta button {\n cursor: pointer;\n display: flex;\n padding: 16px 12px;\n justify-content: space-between;\n align-items: center;\n align-self: stretch;\n border-radius: 12px;\n background: #a54848;\n border: none;\n}\n.yt-guestDesktop-cta p {\n color: #fff;\n font-family: Poppins;\n font-size: 18px;\n font-style: normal;\n font-weight: 500;\n line-height: 102%; /* 18.36px */\n font-variant: all-small-caps;\n}\n.yt-guestDesktop-terms {\n color: var(--plain-swatch-333333, #333);\n text-align: center;\n font-family: Poppins;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 122%; /* 14.64px */\n}\n.yt-guestDesktop-terms span {\n color: #af4b4b;\n font-family: Poppins;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 122%;\n text-decoration-line: underline;\n text-decoration-style: solid;\n text-decoration-skip-ink: none;\n text-decoration-thickness: auto;\n text-underline-offset: auto;\n text-underline-position: from-font;\n}\n\n.yt-guestDesktop-footer {\n background: transparent;\n display: flex;\n justify-content: space-between;\n}\n.yt-guestDesktop-footer p,\n.yt-guestDesktop-footer span {\n color: #fff;\n font-family: Poppins;\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 127%; /* 16.51px */\n}\n.yt-guestDesktop-footer p span {\n font-weight: 600;\n}\n\n/* "powered by YourToken" footer — shared across guest + profile screens. */\n.yt-powered-by {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n box-sizing: border-box;\n padding: 10px 0;\n}\n.yt-powered-by p {\n margin: 0;\n color: #8a8a8a;\n font-family: Poppins;\n font-size: 12px;\n font-weight: 400;\n}\n.yt-powered-by span {\n font-weight: 700;\n color: #5f5f5f;\n}\n\n/* GuestDesktopWithoutImage: shell that stacks the card + a "powered by" footer\n below it (mirrors GuestDesktop\'s card+footer column). Desktop-only component,\n so the below-card footer only needs to work at the desktop breakpoint where\n the dialog is position: relative rather than fixed. */\n@media (min-width: 1024px) {\n .yt-rwmd-shell {\n width: 100%;\n max-width: 500px;\n margin: 10% auto;\n display: flex;\n flex-direction: column;\n gap: 9px;\n }\n /* The shell now handles centering; drop the dialog\'s own auto margin. */\n .yt-rwmd-shell .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) {\n margin: 0;\n }\n}\n\n/* GuestDesktopWithoutImage: center the "powered by" footer under the card\n (the shared .yt-guestDesktop-footer is space-between for the with-image\n variant that also has a Close button). */\n.yt-rwmd-shell > .yt-guestDesktop-footer {\n justify-content: center;\n}\n\n/* GuestMobile: the footer sits ABOVE the bottom-anchored modal, on the\n backdrop. The shell is a bottom-aligned flex column; the modal flows inside\n it (position: static instead of its own fixed bottom:0) so the footer can\n stack directly above the modal\'s top edge. */\n.yt-rwmd-mobile-shell {\n position: fixed;\n inset: 0;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: stretch;\n pointer-events: none; /* let backdrop clicks reach the overlay */\n}\n.yt-rwmd-mobile-shell > * {\n pointer-events: auto;\n}\n.yt-rwmd-mobile-shell > .yt-rwmd-dialog {\n position: static;\n}\n.yt-rwmd-mobile-shell > .yt-powered-by {\n flex-shrink: 0;\n justify-content: flex-start;\n padding: 8px 20px;\n}\n.yt-rwmd-mobile-shell > .yt-powered-by p,\n.yt-rwmd-mobile-shell > .yt-powered-by span {\n color: #fff;\n}\n.yt-guestDesktop-close {\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 4px;\n color: #fff;\n font-family: Poppins;\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 127%; /* 20.32px */\n}\n.yt-guestDesktop-close svg {\n height: 20px;\n width: 20px;\n}\n\n/* --------- Dialog --------- */\n.yt-rwmd-dialog {\n max-width: 515.813px;\n min-height: 356px;\n /* padding-bottom: 40px; */\n width: 100%;\n flex-shrink: 0;\n background: var(--yt-rwmd-surface);\n color: var(--yt-rwmd-ink);\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 16px 16px 0px 0px;\n overflow: hidden;\n /* width: 100vw; */\n position: fixed;\n bottom: 0px;\n animation: yt-rwmd-slide-up 0.35s cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n@keyframes yt-rwmd-slide-up {\n from {\n transform: translateY(100%);\n opacity: 0.7;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n}\n\n/* Close button */\n.yt-rwmd-close {\n position: absolute;\n right: 10px;\n top: 8px;\n width: 36px;\n height: 36px;\n border: 0;\n background: transparent;\n color: #fff;\n font-size: 24px;\n line-height: 1;\n cursor: pointer;\n z-index: 1;\n}\n\n/* Gradient hero band */\n.yt-rwmd-hero {\n position: relative;\n padding: 32px 28px;\n color: #fff;\n overflow: clip;\n}\n.yt-rwmd-hero_header {\n box-sizing: border-box;\n padding-inline: 30px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n}\n.yt-rwmd-logo {\n box-sizing: content-box;\n padding-top: 8px;\n padding-bottom: 8px;\n align-self: center;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 52px;\n max-height: 52px;\n /* margin: 0 auto 12px; */\n\n /* border: 2px solid #fff; */\n font-weight: 700;\n}\n.yt-rwmd-logo img {\n box-sizing: content-box;\n max-width: 100%;\n object-fit: contain;\n}\n.yt-rwmd-hero-eyebrow {\n color: var(--plain-swatch-ffffff, #fff);\n font-family: Poppins;\n font-size: 13.545px;\n font-style: normal;\n font-weight: 400;\n line-height: 127%; /* 17.202px */\n}\n.yt-rwmd-hero-title {\n margin: 0;\n color: var(--plain-swatch-ffffff, #fff);\n font-family: Poppins;\n font-size: 30.879px;\n font-style: normal;\n font-weight: 500;\n line-height: 102%; /* 31.496px */\n}\n\n.yt-rwmd-content {\n z-index: 1;\n background: #fff;\n /* padding: 28px; */\n position: relative;\n padding-bottom: 52px\n}\n\n/* Body */\n.yt-rwmd-body {\n z-index: 3;\n /* padding: 28px 45px; */\n display: flex;\n padding: 28px 40px;\n flex-direction: column;\n align-items: center;\n gap: 5.614px;\n align-self: stretch;\n}\n.yt-rwmd-body_head {\n display: flex;\n padding: 0 11.93px;\n flex-direction: column;\n align-items: center;\n gap: 5.614px;\n align-self: stretch;\n}\n.yt-rwmd-lead {\n color: #000;\n font-family: Poppins;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 100%; /* 16px */\n}\n.yt-rwmd-subcopy {\n text-align: center;\n color: #000;\n font-family: Poppins;\n font-size: 11px;\n font-style: normal;\n font-weight: 300;\n line-height: 100%; /* 11px */\n}\n\n/* Primary CTA */\n.yt-rwmd-cta {\n margin-block: 11.23px;\n cursor: pointer;\n display: flex;\n padding: 13px 45px;\n justify-content: center;\n align-items: center;\n gap: 8.089px;\n align-self: stretch;\n border-radius: 12px;\n background: #a54848;\n color: var(--plain-swatch-ffffff, #fff);\n font-family: Poppins;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 102%; /* 16.32px */\n font-variant: all-small-caps;\n border: none;\n animation: yt-otp-fade-in 260ms ease-out both;\n animation-delay: 200ms;\n}\n\n.yt-rwmd-cta:disabled {\n width: 100%; /* Make button full-width */\n background-color: #e4e4e4 !important;\n color: #5d5b5b !important;\n margin: 20px auto; /* Center button */\n}\n\n.yt-rwmd-cta {\n transition: background 220ms ease-out, background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out;\n}\n.yt-rwmd-cta:hover:not(:disabled) {\n background: #fff !important;\n background-color: #fff !important;\n color: #1F1F1F !important;\n border-color: #1F1F1F !important;\n}\n\n.yt-guestDesktop-cta button {\n transition: background 220ms ease-out, background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out;\n}\n.yt-guestDesktop-cta button:hover:not(:disabled) {\n background: #fff !important;\n background-color: #fff !important;\n color: #1F1F1F !important;\n border-color: #1F1F1F !important;\n}\n\n.yt-rwmd-registerForm {\n display: flex;\n \n /* width: 100%; */\n padding: 0 13px;\n flex-direction: column;\n align-items: flex-start;\n gap: 7.018px;\n align-self: stretch;\n}\n.yt-rwmd-registerForm .react-international-phone-input-container .react-international-phone-input {\n box-shadow: none !important;\n width: 100%;\n font-family: "Poppins", sans-serif;\n }\n\n .yt-rwmd-registerForm .react-international-phone-input-container{\n width: 100%;\n }\n\n.yt-rwmd-registerForm .react-international-phone-country-selector-dropdown{\n position: fixed !important;\n top: auto !important;\n left: auto !important;\n outline: none !important;\n}\n\n.yt-rwmd-registerForm .yt-input-wrapper {\n display: flex;\n align-items: center;\n /* position: relative; anchor for absolute child */\n overflow: visible;\n /* width: 346.147px; */\n width: 100%;\n height: 34.388px;\n /* flex-shrink: 0; */\n border-radius: 8px;\n border: 0.702px solid #dedede;\n background: rgba(0, 0, 0, 0.03);\n box-sizing: border-box;\n}\n/* .yt-input-wrapper {\n width: 100%;\n border: 1.072px solid transparent; \n border-radius: 10px;\n background: #F7F7F7;\n box-shadow: none;\n box-sizing: border-box;\n overflow: hidden; \n} */\n\n.yt-input-wrapper p,\n.yt-input-wrapper input::placeholder {\n font-family: Poppins;\n line-height: 94%;\n text-wrap: nowrap;\n font-weight: normal;\n color: gray;\n background: transparent;\n}\n\n.yt-input-wrapper input {\n display: block;\n width: 100%;\n max-width: 100%;\n padding: 10px 12px;\n border: 0;\n outline: 0;\n background: transparent;\n box-sizing: border-box;\n box-shadow: none;\n}\n\n.yt-input-wrapper:focus-within input::placeholder,\n.yt-input-wrapper:focus-within p {\n color: black;\n opacity: 1;\n}\n\n.yt-input-wrapper:focus-within {\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 2.105px 2.105px 0 0 rgba(49, 48, 48, 0.58);\n border-color: #000;\n}\n\n.yt-rwmd-code-select {\n /* min-width: 30px; \n /* padding: 0 0 0 12px; */\n border: none;\n background: transparent;\n\n /* custom arrow */\n /* appearance: none; */\n \n\n font-size: 14px;\n color: #111827;\n cursor: pointer;\n}\n\n.yt-rwmd-code-select:focus,\n.yt-rwmd-code-select:focus-visible,\n.yt-rwmd-code-select:active {\n outline: none !important; \n box-shadow: none !important; \n border-color: #d7d7d7 !important; \n}\n\n/* if your wrapper adds a focus shadow, clear it too */\n.yt-input-wrapper:focus-within {\n box-shadow: none !important;\n}\n\n\n/* .yt-rwmd-cta:active{ transform: translateY(1px); } */\n\n/* Terms line */\n.yt-rwmd-terms {\n color: var(--plain-swatch-333333, #333);\n text-align: center;\n font-family: Poppins;\n font-size: 9px;\n font-style: normal;\n font-weight: 400;\n line-height: 122%; /* 10.98px */\n}\n.yt-rwmd-terms a {\n color: #af4b4b;\n font-family: Poppins;\n font-size: 9px;\n font-style: normal;\n font-weight: 400;\n line-height: 122%;\n text-decoration-line: underline;\n text-decoration-style: solid;\n text-decoration-skip-ink: none;\n text-decoration-thickness: auto;\n text-underline-offset: auto;\n text-underline-position: from-font;\n}\n\n.yt-rwmd-bottom_tape1 {\n position: absolute;\n display: flex;\n overflow: hidden;\n transform: rotate(5.796deg);\n padding: 4.706px 10.353px;\n align-items: center;\n gap: 14.036px;\n opacity: 0.1;\n background: #a9a9a9;\n bottom: 26px;\n left: -14%;\n width: 128%;\n z-index: 1;\n}\n\n.yt-rwmd-tapeTrack {\n display: flex;\n align-items: center;\n gap: inherit;\n width: max-content;\n flex: 0 0 auto;\n will-change: transform;\n}\n\n.yt-rwmd-tapeTrack--left {\n animation: yt-rwmd-marquee-left 18s linear infinite;\n}\n\n.yt-rwmd-tapeTrack--right {\n animation: yt-rwmd-marquee-right 20s linear infinite;\n}\n\n.yt-rwmd-tapeGroup {\n display: flex;\n align-items: center;\n gap: inherit;\n flex: 0 0 auto;\n}\n\n.yt-rwmd-tapeItem {\n display: flex;\n align-items: center;\n gap: 6px;\n flex: 0 0 auto;\n}\n\n.yt-rwmd-bottom_tape1 p {\n color: var(--primary-v-2-swatch-5-f-579-b, #5f579b);\n font-family: Poppins;\n font-size: 9.412px;\n font-style: normal;\n font-weight: 600;\n line-height: 100%; /* 9.412px */\n text-transform: uppercase;\n text-wrap: nowrap;\n}\n\n.yt-rwmd-bottom_tape2 {\n display: flex;\n overflow: hidden;\n position: absolute;\n bottom: 14px;\n transform: rotate(-2.509deg);\n padding: 4.706px 10.353px;\n justify-content: flex-start;\n align-items: center;\n gap: 34.388px;\n background: rgba(176, 76, 76, 0.14);\n left: -14%;\n width: 128%;\n z-index: 2;\n isolation: isolate;\n}\n.yt-rwmd-bottom_tape2 img {\n width: 14.036px;\n height: 14.737px;\n background: transparent;\n object-fit: contain;\n mix-blend-mode: multiply;\n}\n\n.yt-rwmd-bottom_tape2 p {\n color: #b14c4c;\n font-family: Poppins;\n font-size: 9.412px;\n font-style: normal;\n font-weight: 600;\n line-height: 100%; /* 9.412px */\n text-transform: uppercase;\n text-wrap: nowrap;\n}\n\n@keyframes yt-rwmd-marquee-left {\n from {\n transform: translateX(0);\n }\n to {\n transform: translateX(-50%);\n }\n}\n\n@keyframes yt-rwmd-marquee-right {\n from {\n transform: translateX(-50%);\n }\n to {\n transform: translateX(0);\n }\n}\n\n@media (min-width: 1024px) {\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) {\n border-radius: 16px;\n overflow: hidden;\n background-color: #000;\n max-width: 500px;\n margin: 10% auto;\n padding: 0px;\n border-radius: 16px !important;\n position: relative;\n }\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-content {\n overflow: hidden;\n z-index: 1;\n margin: 10px;\n border-radius: 16px;\n height: 100%;\n background: #fff;\n padding: 0px 0px 28px 0px;\n \n }\n\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-hero {\n text-align: center; /* Center-align text */\n }\n\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-hero_header {\n display: flex;\n flex-direction: column;\n align-items: center; /* Center-align content */\n }\n\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-body {\n padding: 31.226px 19.216px 60px 19.216px;\n\n border-radius: 20px 20px 0 0;\n gap: 13px;\n /* padding: 20px; */\n text-align: center; /* Center-align text */\n }\n\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-registerForm {\n display: flex;\n flex-direction: column;\n gap: 15px; /* Add spacing between form fields */\n align-items: center; /* Center-align form fields */\n }\n\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-cta {\n width: 100%; /* Make button full-width */\n\n margin: 20px auto; /* Center button */\n }\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-cta:disabled {\n width: 100%; /* Make button full-width */\n background-color: #e4e4e4 !important;\n color: #5d5b5b !important;\n margin: 20px auto; /* Center button */\n }\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-bottom_tape1,\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-bottom_tape2 {\n left: -12%;\n width: 124%;\n }\n\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-bottom_tape1 {\n bottom: 34px;\n }\n\n .yt-rwmd-dialog:not(.yt-rwmd-force-mobile) .yt-rwmd-bottom_tape2 {\n bottom: 18px;\n }\n}\n\n@keyframes otp-pop-in {\n from {\n opacity: 0;\n transform: translateY(10px) scale(0.98);\n filter: saturate(0.9);\n }\n to {\n opacity: 1;\n transform: translateY(0) scale(1);\n filter: saturate(1);\n }\n}\n\n@keyframes otp-rise-in {\n from {\n opacity: 0;\n transform: translateY(6px) scale(0.96);\n }\n to {\n opacity: 1;\n transform: translateY(0) scale(1);\n }\n}\n\n@keyframes yt-otp-fade-in {\n from {\n opacity: 0;\n transform: translateY(6px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n.yt-otp-wrap {\n transition:\n transform 280ms cubic-bezier(0.2, 0.9, 0.22, 1),\n opacity 280ms ease;\n text-align: center;\n color: var(--otp-ink);\n width: 100%;\n animation: otp-pop-in 320ms cubic-bezier(0.2, 0.9, 0.22, 1) both;\n will-change: transform, opacity;\n}\n\n.yt-otp-title {\n margin: 0;\n color: var(--brandf, #24272c);\n text-align: center;\n font-family: Inter;\n font-size: 17.58px;\n font-style: normal;\n font-weight: 700;\n line-height: 148.5%; /* 26.106px */\n letter-spacing: 0.176px;\n text-transform: capitalize;\n}\n\n.yt-otp-subtext {\n margin: 0;\n color: #333;\n text-align: center;\n font-family: Poppins;\n font-size: 10.452px;\n font-style: normal;\n font-weight: 400;\n line-height: 148.5%; /* 15.522px */\n}\n\n.yt-otp-phone {\n color: #af4b4b;\n font-family: Poppins;\n font-size: 10.452px;\n font-style: normal;\n font-weight: 400;\n line-height: 148.5%;\n}\n\n.yt-otp-link {\n padding: 0px;\n color: #af4b4b;\n font-family: Poppins;\n font-size: 9px;\n font-style: normal;\n font-weight: 500;\n line-height: 148.5%;\n text-decoration-line: underline;\n text-decoration-style: solid;\n text-decoration-skip-ink: none;\n text-decoration-thickness: auto;\n text-underline-offset: auto;\n text-underline-position: from-font;\n background-color: transparent;\n border: none;\n}\n\n.yt-otp-rule {\n width: 100%;\n max-width: none; /* defeat host base rules like `hr { max-width: 100px }` */\n height: 0.718px;\n border: none;\n background: #e2e2e2;\n}\n\n.yt-otp-form {\n margin: 0;\n}\n\n.yt-otp-boxes {\n display: flex;\n justify-content: center;\n gap: 16px;\n /* margin-bottom: 14px; */\n}\n\n.yt-otp-box {\n display: flex;\n width: 56.464px;\n height: 46.759px;\n justify-content: center;\n align-items: center;\n text-align: center;\n background: #f6f6f6;\n box-shadow: 0 0.882px 0 0 rgba(0, 0, 0, 0.25);\n border: none;\n transition: border-color 0.15s ease;\n opacity: 0;\n animation: otp-rise-in 260ms ease-out forwards;\n /* 40ms steps: 0, 40, 80… */\n animation-delay: calc(40ms * var(--stagger, 0));\n}\n.yt-otp-box:focus {\n outline: none;\n background: #f6f6f6;\n box-shadow: 0 1.764px 0 0 #af4b4b;\n}\n.yt-otp-box.yt-filled {\n background: #f6f6f6;\n box-shadow: 0 1.764px 0 0 #af4b4b;\n}\n\n.yt-otp-hint {\n margin: 13px 0 18px;\n color: var(--brandf, #24272c);\n text-align: center;\n font-family: Poppins;\n font-size: 9px;\n font-style: normal;\n font-weight: 300;\n line-height: 148.5%; /* 13.365px */\n}\n\n.yt-otp-confirm {\n width: 100%;\n height: 24px;\n border: 0;\n background: var(--otp-accent);\n color: #fff;\n font-size: 18px;\n font-weight: 700;\n border-radius: 14px;\n cursor: pointer;\n}\n.yt-otp-confirm:disabled {\n opacity: 0.6;\n cursor: default;\n}\n\n.yt-otp-terms {\n margin: 12px 0 0;\n color: var(--otp-muted);\n font-size: 13px;\n}\n.yt-otp-terms a {\n color: var(--otp-muted);\n text-decoration: underline;\n}\n\n/* small screens */\n@media (max-width: 380px) {\n .yt-otp-box {\n width: 56px;\n height: 56px;\n font-size: 28px;\n }\n}\n@media (max-width: 340px) {\n .yt-otp-box {\n width: 48px;\n height: 48px;\n font-size: 24px;\n }\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n');_t('/* basic variables */\n:root {\n --yt-rw-backdrop: rgba(0, 0, 0, 0.55);\n --purple: #4f486a; /* header */ /* header */\n --ink: #111; /* main text */\n --muted: #5b5b5b; /* secondary text */\n --border: #e1e1e1; /* lines */\n --cta-bg: #efecf7; /* light purple bar */\n --card-bg: #fff;\n}\n\n.yt-reward-loyalty-overlay {\n position: fixed;\n inset: 0;\n background: var(--yt-rw-backdrop);\n display: grid;\n place-items: center;\n z-index: 9999;\n width: 100%;\n height: 100%;\n}\n\n/* Profile (desktop + rounded corners): the card is a floating card that isn\'t\n full height, so this shell stacks it with a centered "powered by" footer\n below. Needs a definite height so the card\'s `height: 95%` resolves. */\n.yt-rw-shell {\n /* Definite viewport height so the card\'s percentage height resolves. The\n grid cell alone is auto-sized (place-items:center), which is why a `%`\n height on the card didn\'t resolve and it overflowed. */\n align-self: stretch;\n justify-self: stretch;\n width: 100%;\n height: 100dvh;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.yt-rw-shell > .yt-rw-card {\n flex-shrink: 0;\n}\n\n/* desktop + rounded corners: floating card, footer centered below it */\n.yt-rw-shell--below {\n flex-direction: column;\n gap: 4px;\n}\n.yt-rw-shell--below > .yt-powered-by p,\n.yt-rw-shell--below > .yt-powered-by span {\n color: #fff;\n}\n\n/* desktop + full height: footer runs vertically along the right of the card */\n.yt-rw-shell--right {\n flex-direction: row;\n gap: 12px;\n}\n.yt-rw-shell--right > .yt-powered-by {\n display: block;\n width: auto;\n padding: 0;\n writing-mode: vertical-rl;\n align-self: flex-end; /* bottom-right */\n margin-bottom: 32px; /* lift slightly off the bottom edge */\n}\n.yt-rw-shell--right > .yt-powered-by p,\n.yt-rw-shell--right > .yt-powered-by span {\n color: #fff;\n}\n\n/* container */\n.yt-rw-card {\n /* overflow-y: auto; allow scroll during collapse phase */\n overscroll-behavior: contain;\n min-height: 0;\n position: relative;\n /* overflow: none; */\n /* 100vh first as a fallback for older browsers; modern browsers honour\n 100dvh which excludes the mobile-browser dynamic chrome (URL bar / tab bar)\n so the widget never extends behind it. */\n height: 100vh;\n height: 100dvh;\n max-height: 100vh;\n max-height: 100dvh;\n align-self: center;\n /* margin: 63px; */\n max-width: 500px;\n width: 100%;\n /* height: 100%; */\n /* margin: 0px; */\n /* padding-inline:20px ; */\n display: flex;\n flex-direction: column;\n /* gap: 18px; */\n background: var(--purple);\n /* straight edges, no radius */\n font-family:\n Poppins system-ui,\n -apple-system,\n sans-serif;\n color: var(--ink);\n\n /* Animation for opening */\n transform: translateY(40px) scale(0.98);\n opacity: 0;\n animation: yt-rw-card-fade-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;\n}\n\n@keyframes yt-rw-card-fade-in {\n to {\n transform: translateY(0) scale(1);\n opacity: 1;\n }\n}\n.yt-rw-card p {\n margin: 0;\n}\n\n.yt-rw-close {\n position: absolute;\n right: 10px;\n top: 8px;\n width: 36px;\n height: 36px;\n border: 0;\n background: transparent;\n color: #fff;\n font-size: 24px;\n line-height: 1;\n cursor: pointer;\n z-index: 1;\n}\n.yt-rw-back{\n border: 0;\n background: transparent;\n color: #fff;\n cursor: pointer;\n z-index: 1;\n font-weight: 700\n}\n\n.yt-rw-pageTitle{\n color: #FFF;\nfont-family: Poppins;\nfont-size: 14.613px;\nfont-style: normal;\nfont-weight: 500;\nline-height: 127%; /* 18.559px */\n}\n\n::-webkit-scrollbar {\n width: 0; \n background: transparent; \n}\n\n.yt-rw-body {\n display: flex;\n flex-direction: column;\n max-height: 100%;\n max-width: 100%;\n overflow-y: hidden; /* will be enabled after lock */\n min-height: 0;\n flex: 1 1 auto;\n /* overflow-y: auto; */\n /* overflow-x: auto; */\n\n border-top-left-radius: 20px;\n border-top-right-radius: 20px;\n background-color: #fff;\n\n\n\n -webkit-overflow-scrolling: touch;\n padding-bottom: env(safe-area-inset-bottom, 0px);\n}\n.yt-rw-content{\n background-color: transparent;\n box-sizing: content-box;\n display: flex;\n padding-inline: 16px;\n gap: 18px;\n flex-direction: column;\n}\n/* .yt-rw-card.yt-rw-card--locked {\n overflow-y: hidden;\n} */\n\n/* When locked: body becomes the scroller */\n.yt-rw-card.yt-rw-card--locked .yt-rw-body {\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n/* header */\n.yt-rw-head {\n overflow-x:hidden;\n overflow-y:clip;\n /* position: relative; */\n background: transparent;\n color: #fff;\n text-align: center;\n display: flex;\n flex-direction: column;\n /* gap: 4px; */\n padding: 16px 27px;\n will-change: padding;\n transition: padding 260ms cubic-bezier(0.25, 0.1, 0.25, 1);\n flex-shrink: 0;\n position: sticky;\n top: 0;\n z-index: 5; \n}\n.yt-rw-head--shrink {\n padding-block: 1px;\n}\n.yt-rw-head--shrink .yt-rw-logo,\n.yt-rw-head--shrink .yt-rw-eyebrow {\n opacity: 0;\n visibility: hidden;\n transform: translateY(-4px);\n pointer-events: none;\n max-height: 0;\n}\n.yt-rw-head--shrink .yt-rw-title{\n transform: scale(0.84);\n opacity: 1;\n animation: yt-rw-title-shrink-fade 420ms cubic-bezier(0.22, 0.61, 0.36, 1) 90ms both;\n}\n.yt-rw-head--shrink .yt-rw-headBg{\n bottom:-40px\n}\n.yt-rw-headBg {\n position: absolute;\n color: #fff;\n font-weight: 700;\n bottom: 20px;\n left: 50%;\n transform: translateX(-50%);\n white-space: nowrap;\n font-size: 92px;\n line-height: 102%;\n opacity: 0.1;\n background: cover no-repeat;\n z-index: 0;\n transition: bottom 260ms cubic-bezier(0.25, 0.1, 0.25, 1);\n}\n.yt-rw-logo {\n /* padding-top: 0px; */\n box-sizing: content-box;\n padding-bottom: 4px;\n align-self: center;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 52px;\n max-height: 68px;\n overflow: hidden;\n /* margin: 0 auto 12px; */\n\n /* border: 2px solid #fff; */\n font-weight: 700;\n}\n.yt-rw-logo img{\n box-sizing: content-box;\n max-width: 100%;\n object-fit: contain;\n}\n.yt-rw-eyebrow {\n display: block;\n font-size: 14px;\n opacity: 0.9;\n max-height: 22px;\n overflow: hidden;\n}\n.yt-rw-title {\n line-height: normal;\n font-size: 28px;\n transform: scale(1);\n opacity: 1;\n transform-origin: top center;\n will-change: transform, opacity;\n transition:\n transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1),\n opacity 280ms ease;\n}\n\n@keyframes yt-rw-title-shrink-fade {\n 0% {\n opacity: 1;\n transform: scale(1);\n }\n 50% {\n opacity: 0;\n transform: scale(0.92);\n }\n 100% {\n opacity: 1;\n transform: scale(0.84);\n }\n}\n\n.yt-rw-logo,\n.yt-rw-eyebrow {\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n will-change: opacity, transform;\n transition:\n max-height 260ms cubic-bezier(0.25, 0.1, 0.25, 1),\n opacity 220ms linear,\n transform 260ms cubic-bezier(0.25, 0.1, 0.25, 1),\n visibility 0s linear 0s;\n}\n\n.yt-rw-head--shrink .yt-rw-logo,\n.yt-rw-head--shrink .yt-rw-eyebrow {\n padding-top: 0;\n padding-bottom: 0;\n transition:\n max-height 260ms cubic-bezier(0.25, 0.1, 0.25, 1),\n opacity 180ms linear,\n transform 260ms cubic-bezier(0.25, 0.1, 0.25, 1),\n visibility 0s linear 180ms;\n}\n\n\n.yt-rw-skel {\n display: inline-block;\n border-radius: 8px;\n /* visible on white */\n background: rgba(0, 0, 0, 0.08);\n position: relative;\n overflow: hidden;\n}\n\n.yt-rw-skel::after {\n content: "";\n position: absolute;\n inset: 0;\n transform: translateX(-100%);\n background: linear-gradient(\n 90deg,\n transparent,\n rgba(0, 0, 0, 0.10),\n transparent\n );\n animation: yt-rw-skel-shimmer 1.1s infinite;\n}\n\n@keyframes yt-rw-skel-shimmer {\n 100% { transform: translateX(100%); }\n}\n\n/* match the visual size of your balance number */\n.yt-rw-skel-amount {\n width: 88px; /* tweak if needed */\n height: 44px; /* tweak to match .yt-rw-amount font-size */\n}\n\n\n/* balance block */\n.yt-rw-hero {\n position: relative;\n display: flex;\n padding: 26px 16px 16px 16px;\n justify-content: space-between;\n align-items: center;\n align-self: stretch;\n}\n.yt-rw-hero-left {\n display: flex;\n align-items: start;\n gap: 12px;\n}\n.yt-rw-amount {\n font-family: Inter;\n font-size: 56px;\n line-height: 1;\n font-weight: 600;\n letter-spacing: -0.5px;\n}\n.yt-rw-labels {\n display: flex;\n width: 60.571px;\n height: 42.4px;\n flex-direction: column;\n align-items: flex-start;\n\n padding-top: 6px;\n}\n.yt-rw-kicker {\n color: var(--plain-swatch-1-a-1-a-1-a, #1a1a1a);\n font-family: Montserrat;\n font-size: 14.215px;\n font-style: normal;\n font-weight: 500;\n line-height: 102%; /* 14.5px */\n font-variant: all-small-caps;\n}\n.yt-rw-unit {\n color: #4f486a;\n text-align: right;\n font-family: Montserrat;\n font-size: 14.215px;\n font-style: normal;\n font-weight: 500;\n line-height: 102%; /* 14.5px */\n font-variant: all-small-caps;\n}\n.yt-rw-hero-right {\n font-size: 22px;\n color: var(--muted);\n}\n.yt-rw-starLogo {\n position: absolute;\n right: 10px;\n opacity: 0.7;\n}\n/* note row */\n.yt-rw-note {\n\n padding: 8px 10px;\n justify-content: center;\n align-items: center;\n gap: 10px;\n align-self: stretch;\n text-align: center;\n /* text-wrap: nowrap; */\n overflow-wrap: break-word;\n background: rgba(132, 132, 132, 0.1);\n color: #000;\n text-align: center;\n font-family: Poppins;\n font-size: 11px;\n font-style: normal;\n font-weight: 300;\n line-height: 133%; /* 14.63px */\n letter-spacing: 0.398px;\n}\n.yt-rw-note b, .yt-rw-note span{\n color: #000;\nfont-family: Poppins;\nfont-size: 11px;\nfont-style: normal;\nfont-weight: 600;\nline-height: 133%;\nletter-spacing: 0.398px;\n}\n.yt-rw-link {\n text-decoration: underline;\n color: inherit;\n}\n\n/* CTA bar */\n.yt-rw-cta {\n cursor: pointer;\n /* margin: 20px; */\n background: var(--cta-bg);\n border: 1px solid var(--ink);\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 14px 16px;\n transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.yt-rw-cta:active {\n scale:0.98\n}\n.yt-rw-cta {\n transition: background 220ms ease-out, background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out;\n}\n.yt-rw-cta:hover {\n background: #fff !important;\n background-color: #fff !important;\n color: #1F1F1F !important;\n border-color: #1F1F1F !important;\n}\n.yt-rw-cta:hover .yt-rw-cta-left,\n.yt-rw-cta:hover .yt-rw-cta-right {\n color: #1F1F1F !important;\n}\n.yt-rw-cta:hover svg,\n.yt-rw-cta:hover svg path {\n fill: #1F1F1F !important;\n transition: fill 220ms ease-out;\n}\n.yt-rw-cta-left {\n display: flex;\n align-items: center;\n gap: 10px;\n color: #000;\n font-family: Poppins;\n font-size: 14.613px;\n font-style: normal;\n font-weight: 500;\n line-height: 127%; /* 18.559px */\n}\n.yt-rw-coin {\n display: flex;\n place-items: center;\n font-size: 18px;\n}\n.yt-rw-cta-right {\n display: flex;\n font-size: 18px;\n}\n\n.yt-rw-rate {\n text-align: center;\n padding: 12px 0 31px;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.yt-rw-rate__icon {\n width: 56px;\n height: 56px;\n margin: 12px auto;\n border-radius: 100%;\n border: 1px solid var(--line);\n background: #efeffd;\n color: #4e47c6;\n display: grid;\n place-items: center;\n}\n.yt-rw-rate__title {\n /* color: #000; */\n text-align: center;\n font-family: Urbanist;\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n letter-spacing: 0.96px;\n margin: 0;\n}\n.yt-rw-rate__sub {\n /* color: var(--plain-swatch-333333, #333); */\n text-align: center;\n font-family: Poppins;\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n letter-spacing: 0.24px;\n margin-top: 4px;\n}\n\n.yt-rw-coupon {\n border: 1px solid var(--ink);\n width: 100%;\n /* margin-top: 18px; */\n position: relative;\n}\n.yt-rw-coupon_head {\n overflow: hidden;\n background: rgba(248, 246, 255, 0.33);\n position: relative;\n display: flex;\n width: 100%;\n justify-content: space-between;\n}\n.yt-rw-coupon_bg {\n width: 96.668px;\n height: 350.802px;\n transform: rotate(46.821deg);\n position: absolute;\n left: -5.864px;\n top: -106.049px;\n opacity: 0.2;\n background: #d0d3e2;\n}\n.yt-rw-coupon__left {\n flex: 1;\n padding-inline: 12px;\n padding-block: 12px;\n display: flex;\n flex-direction: column;\n /* width: 172px; */\n width: 100%;\n align-items: start;\n justify-content: center;\n height: inherit;\n gap: 11px;\n \n}\n.yt-rw-coupon_cta {\n background: var(--cta-bg);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 14px 16px;\n}\n.yt-rw-coupon_cta {\n position: relative;\n overflow: hidden;\n}\n.yt-rw-coupon_cta::before {\n content: "";\n position: absolute;\n inset: 0;\n background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);\n transform: translateX(-100%);\n transition: transform 700ms ease-out;\n pointer-events: none;\n}\n.yt-rw-coupon_cta:hover::before {\n transform: translateX(100%);\n}\n\n.yt-rw-coupon__heading {\n color: #000;\n /* font-family: Sansation; */\n font-family: Inter;\n font-size: 19.283px;\n font-style: normal;\n font-weight: 500;\n line-height: 100%; /* 19.283px */\n letter-spacing: 0.578px;\n \n}\n\n.yt-rw-codepill {\n display: flex;\n padding: 9.123px 9.825px;\n justify-content: center;\n align-items: center;\n gap: 5.647px;\n border-radius: 32.282px;\n border: 1px solid #585858;\n background: #f8f8f8;\n box-shadow: 0 2.807px 2.807px 0 rgba(0, 0, 0, 0.14);\n cursor: pointer;\n transition: background 220ms ease-out, background-color 220ms ease-out, border-color 220ms ease-out;\n}\n.yt-rw-codepill:hover {\n background: #1F1F1F !important;\n background-color: #1F1F1F !important;\n border-color: #1F1F1F !important;\n}\n.yt-rw-codepill:hover .yt-rw-codepill__label,\n.yt-rw-codepill:hover .yt-rw-codepill__code {\n color: #fff !important;\n transition: color 220ms ease-out;\n}\n.yt-rw-codepill__label {\n color: #302b2b;\n\n font-size: 9.412px;\n font-style: normal;\n font-weight: 600;\n line-height: 100%; /* 9.412px */\n text-transform: uppercase;\n}\n.yt-rw-codepill__code {\n color: #302b2b;\n font-family: Poppins;\n font-size: 9.412px;\n font-style: normal;\n font-weight: 275;\n line-height: 100%;\n text-transform: uppercase;\n}\n\n.yt-rw-coupon__image{\n flex: 1;\n display: flex;\n justify-content: end;\n align-items: start;\n max-height: 180px;\n}\n\n.yt-rw-coupon__image svg {\nwidth: 100%;\nheight: 100%;\n\n@media (max-width: 480px) {\n width: 100%;\n height: 100%;\n}\n z-index: 0;\n}\n/* .yt-rw-coupon__image img{ max-width:90%; max-height:90%; object-fit:contain; } */\n\n\n.yt-rw-coupon__divider {\n height: 1px;\n background: var(--ink);\n}\n\n.yt-rw-ways {\n width: 100%;\n background: var(--lav);\n border: 0;\n border-top: 1px solid var(--ink);\n padding: 14px 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n text-align: left;\n cursor: pointer;\n}\n\n.yt-rw-ways__left {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 22px;\n font-weight: 700;\n}\n.yt-rw-ways__arrow {\n font-size: 22px;\n}\n\n/* === REFER & EARN === */\n.yt-rw-refer {\n border-radius: 12px;\n background: rgba(128, 128, 128, 0.01);\n box-shadow: 0 0 2.3px 0 rgba(0, 0, 0, 0.57);\n /* border: 1px solid var(--ink); */\n padding-top: 13px;\n /* margin-top: 18px; */\n}\n.yt-rw-refer_top {\n padding-inline: 16px;\n display: flex;\n flex-direction: column;\n gap: 13px;\n}\n.yt-rw-refer__title {\n /* color: #000; */\n text-align: center;\n font-family: Poppins;\n font-size: 18px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n letter-spacing: 0.96px;\n}\n.yt-rw-refer__desc {\n /* color: var(--plain-swatch-333333, #333); */\n text-align: center;\n font-family: Poppins;\n font-size: 11px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n letter-spacing: 0.22px;\n}\n\n.yt-rw-refer_steps {\n display: flex;\n padding: 12px 6px 6px 6px;\n align-items: center;\n gap: 6px;\n align-self: stretch;\n /* width: 100%; */\n}\n/* .yt-rw-refer_steps svg{\n flex:1\n} */\n\n.yt-refer-step-1 {\n position: relative;\n display: flex;\n height: 66.16px;\n flex: 1;\n min-width: 0;\n max-width: 33.3333%;\n overflow: hidden;\n border-radius: 8.677px;\n border: 1.085px solid rgba(166, 166, 166, 0.4);\n background: rgba(125, 125, 125, 0.21);\n padding-left: 7px;\n padding-top: 7px;\n}\n.yt-refer-step-1 svg {\n position: absolute;\n width: clamp(36px, 50%, 84.598px);\n height: auto;\n max-height: 100%;\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n\n.yt-refer-step-1_header {\n position: relative;\n z-index: 1;\n max-width: calc(100% - 44%);\n display: inline-flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 3.254px;\n}\n.yt-refer-step-1_header .yt-subtext {\n align-self: stretch;\n color: #a6a6a6;\n /* font-family: "PP Telegraf"; */\n font-family: Inter;\n font-size: 7.592px;\n font-style: normal;\n font-weight: 800;\n line-height: 117%; /* 8.883px */\n letter-spacing: -0.152px;\n text-transform: uppercase;\n}\n\n.yt-refer-step-1_header .yt-mainText {\n /* width: 81.344px; */\n color: var(--Text-Color, #000);\n /* font-family: PP Telegraf; */\n font-family: Inter;\n font-size: 13.015px;\n font-style: normal;\n font-weight: 400;\n line-height: 95%; /* 12.364px */\n letter-spacing: -0.26px;\n}\n\n.yt-rw-ref__linkcta {\n color: var(--Text-Dark, #3b5162);\n\n text-align: center;\n font-family: Poppins;\n font-size: 10.6px;\n font-style: normal;\n font-weight: 400;\n line-height: 117%; /* 12.402px */\n}\n\n.yt-rw-inputrow {\n display: flex;\n padding: 5.517px 5.116px;\n align-items: center;\n gap: 14.069px;\n flex: 1 0 0;\n align-self: stretch;\n border: 1px solid #000;\n background: rgba(136, 136, 136, 0.12);\n}\n\n.yt-rw-inputrow__icon {\n display: grid;\n place-items: center;\n}\n.yt-rw-input {\n text-overflow: ellipsis;\n text-wrap: nowrap;\n flex: 1;\n border: 0;\n font-size: 16px;\n outline: none;\n background: transparent;\n}\n.yt-rw-codebox {\n display: inline-flex;\n padding: 6px 12px;\n align-items: center;\n justify-content: center;\n align-self: stretch;\n border: 1px solid #000;\n background: rgba(136, 136, 136, 0.12);\n font-family: Poppins;\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.5px;\n text-transform: uppercase;\n width: fit-content;\n}\n\n.yt-rw-copy {\n display: flex;\n width: 36px;\n justify-content: center;\n align-items: center;\n gap: 12.79px;\n align-self: stretch;\n aspect-ratio: 1/1;\n border: 1px solid #000;\n background: var(--primary-v-3-swatch-d-0-d-3-e-2, #d0d3e2);\n}\n.yt-rw-copy:hover {\n opacity: 0.8;\n}\n\n.yt-rw-refer-locked {\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 14px 16px;\n border: 1px dashed rgba(0, 0, 0, 0.25);\n background: rgba(136, 136, 136, 0.08);\n}\n.yt-rw-refer-locked__icon {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n.yt-rw-refer-locked__text {\n display: flex;\n flex-direction: column;\n gap: 3px;\n}\n.yt-rw-refer-locked__title {\n font-family: Poppins;\n font-size: 13px;\n font-weight: 500;\n line-height: normal;\n}\n.yt-rw-refer-locked__sub {\n font-family: Poppins;\n font-size: 11px;\n font-weight: 400;\n line-height: 140%;\n opacity: 0.75;\n}\n\n.yt-rw-share {\n display: flex;\n gap: 12px;\n padding: 14px 4px 4px;\n justify-content: center;\n}\n.yt-rw-share__btn {\n cursor: pointer;\n border-radius: 4.307px;\n border: none;\n background: #f5f5f5;\n display: flex;\n padding: 4.922px;\n justify-content: center;\n align-items: flex-start;\n gap: 6.153px;\n}\n\n.yt-rw-share__btn {\n transition: background 220ms ease-out, background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out;\n}\n.yt-rw-share__btn:hover {\n background: #fff !important;\n background-color: #fff !important;\n color: #1F1F1F !important;\n border-color: #1F1F1F !important;\n}\n\n.yt-rw-tiers {\n display: flex;\n padding: 28px 18px 18px;\n flex-direction: column;\n align-items: center;\n gap: 14px;\n align-self: stretch;\n}\n.yt-rw-tiers_top {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 2px;\n text-align: center;\n}\n.yt-rw-tiers_title {\n color: #111;\n font-family: Inter;\n font-size: 18px;\n font-style: normal;\n font-weight: 800;\n line-height: 1.08;\n letter-spacing: -0.54px;\n}\n.yt-rw-tiers_desc {\n color: #2f2f2f;\n font-family: Inter;\n font-size: 11px;\n font-style: normal;\n font-weight: 400;\n line-height: 1.2;\n letter-spacing: -0.22px;\n}\n.yt-rw-bottom-cta {\n display: flex;\n padding: 0 16px;\n flex-direction: column;\n align-items: center;\n gap: 11.229px;\n align-self: stretch;\n}\n\n.yt-rw-tiers__gems {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 18px;\n width: 100%;\n padding: 4px 0 2px;\n}\n.yt-gem {\n width: 64px;\n height: 64px;\n flex: 0 0 auto;\n filter: drop-shadow(0 0 0.135px rgba(0, 0, 0, 0.12))\n drop-shadow(0 0.827px 8px rgba(255, 245, 208, 0.42));\n}\n.yt-gem--violet,\n.yt-gem--rose {\n width: 74px;\n height: 74px;\n opacity: 0.58;\n margin-top: 12px;\n}\n.yt-gem--gold {\n width: 118px;\n height: 118px;\n margin: -2px 8px 0;\n opacity: 1;\n}\n.yt-rw-tiers_bottom {\n display: flex;\n width: 100%;\n max-width: 282px;\n flex-direction: column;\n align-items: center;\n gap: 14px;\n}\n.yt-rw-tiers-bottomHeader {\n display: flex;\n width: 100%;\n justify-content: center;\n align-items: center;\n flex-direction: row;\n gap: 12px;\n flex-wrap: wrap;\n}\n.yt-rw-tiers-bottomHeader__title {\n color: #4a4a4a;\n font-family: Poppins;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 117%;\n letter-spacing: -0.28px;\n}\n.yt-rw-tiers-bottomHeader__title b {\n font-weight: 700;\n}\n.yt-rw-tiers-bottomHeader svg {\n flex: 0 0 auto;\n}\n.yt-rw-tiers_bottom button {\n box-sizing: border-box;\n cursor: pointer;\n display: flex;\n width: 100%;\n max-width: 372px;\n min-height: 55px;\n padding: 14px 24px;\n justify-content: center;\n align-items: center;\n gap: 8px;\n border-radius: 999px;\n border: 1px solid #000;\n background: rgba(255, 255, 255, 0.66);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);\n}\n.yt-rw-tiers_bottom button p {\n margin: 0;\n color: #3a373a;\n text-align: center;\n font-family: Poppins;\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n line-height: 1;\n letter-spacing: -0.32px;\n}\n.yt-rw-tiers_bottom button {\n transition: background 220ms ease-out, background-color 220ms ease-out, border-color 220ms ease-out;\n}\n.yt-rw-tiers_bottom button:hover {\n background: #1F1F1F !important;\n background-color: #1F1F1F !important;\n border-color: #1F1F1F !important;\n}\n.yt-rw-tiers_bottom button:hover p {\n color: #fff !important;\n transition: color 220ms ease-out;\n}\n.yt-rw-tiers_bottom button:hover svg path {\n fill: #fff !important;\n transition: fill 220ms ease-out;\n}\n\n.yt-rw-tiers + .yt-rw-note {\n margin-top: 2px;\n background: linear-gradient(180deg, rgba(246, 246, 246, 0.96) 0%, rgba(241, 241, 241, 0.92) 100%);\n}\n\n\n.yt-rw-bottom-cta button {\n cursor: pointer;\n display: flex;\n padding: 13px 45px;\n justify-content: center;\n align-items: center;\n gap: 8.089px;\n align-self: stretch;\n border-radius: 12px;\n border: 1px solid #000;\n background: #e0e0e0;\n transition: transform 150ms ease-out;\n}\n.yt-rw-bottom-cta button:hover {\n transform: scale(1.02) !important;\n}\n.yt-rw-bottom-cta p {\n margin-bottom: 9px;\n color: var(--plain-swatch-333333, #333);\n text-align: center;\n font-family: Poppins;\n font-size: 9px;\n font-style: normal;\n font-weight: 400;\n line-height: 122%; /* 10.98px */\n}\n\n/* @media (max-width: 410px) { */\n /* html { */\n /* font-size: 90%; shrink all rem-based fonts & line-heights by 10% */\n /* } */\n/* } */\n\n@keyframes yt-rw-screen-slide-right {\n from { opacity: 0; transform: translateX(28px); }\n to { opacity: 1; transform: translateX(0); }\n}\n@keyframes yt-rw-screen-slide-left {\n from { opacity: 0; transform: translateX(-28px); }\n to { opacity: 1; transform: translateX(0); }\n}\n.yt-rw-body--forward > * {\n animation: yt-rw-screen-slide-right 300ms cubic-bezier(0.22, 0.61, 0.36, 1) both;\n}\n.yt-rw-body--back > * {\n animation: yt-rw-screen-slide-left 300ms cubic-bezier(0.22, 0.61, 0.36, 1) both;\n}\n');function ng({background:t="",textColor:n="",displayText:r="Copied to clipboard!"}){return e.createElement("div",{className:"yt-toast",style:{position:"absolute",fontFamily:"Poppins",bottom:20,left:"50%",transform:"translateX(-50%)",boxSizing:"border-box",padding:"6px 12px",borderRadius:6,fontSize:13,animation:"fadein .5s",background:t||"#333",color:n||"#fff",zIndex:10,whiteSpace:"nowrap"}},r)}function rg({couponHeading:t="",couponCode:n="",copyFunction:r=e=>{},themePrimaryColor:o="",themeContrastColor:a="",themeSecondaryContrastColor:i="",themeSecondaryColor:l="",setScreenType:s=e=>{},showCTA:c=!0,borderRadius:d=""}){return e.createElement("div",{className:"yt-rw-coupon",style:{borderRadius:d,background:o}},n&&n?.length>0&&e.createElement("div",{className:"yt-rw-coupon_head",style:{borderTopLeftRadius:d,borderTopRightRadius:d}},e.createElement("div",{className:"yt-rw-coupon__left"},e.createElement("p",{className:"yt-rw-coupon__heading",style:{color:a}},t),e.createElement("button",{className:"yt-rw-codepill",type:"button",onClick:()=>r(n),"aria-label":"Copy coupon code",title:"Copy code",style:{background:l}},e.createElement("span",{className:"yt-rw-codepill__label",style:{color:i}},"COPY CODE"),e.createElement("span",{className:"yt-rw-codepill__code",style:{color:i}},n))),e.createElement("div",{className:"yt-rw-coupon__image"},e.createElement("svg",{width:"272",height:"182",viewBox:"0 0 272 182",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.createElement("rect",{x:"0.126953",y:"0.835938",width:"271.113",height:"180.427",fill:"url(#pattern0_7962_16264)"}),e.createElement("defs",null,e.createElement("pattern",{id:"pattern0_7962_16264",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},e.createElement("use",{xlinkHref:"#image0_7962_16264",transform:"matrix(0.000354067 0 0 0.000532028 -0.0522648 -0.639331)"})),e.createElement("image",{id:"image0_7962_16264",width:"3277",height:"4096",preserveAspectRatio:"none",xlinkHref:"https://r2.yourtoken.io/loyalty-widget-v2/wtr-coupon.png"}))))),c&&e.createElement("div",{onClick:()=>s("wtr"),className:"yt-rw-coupon_cta",style:{backgroundColor:l,color:i,border:"none",borderTopLeftRadius:n&&n?.length>0?void 0:d,borderTopRightRadius:n&&n?.length>0?void 0:d,borderBottomLeftRadius:d,borderBottomRightRadius:d}},e.createElement("div",{className:"yt-rw-cta-left",style:{color:i}},e.createElement("span",{className:"yt-rw-coin"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"14",viewBox:"0 0 20 14",fill:"none"},e.createElement("path",{d:"M10.0613 1.18677C5.48004 1.18677 0.843506 2.61183 0.843506 5.33476V9.02187C0.843506 11.7448 5.48004 13.1699 10.0613 13.1699C14.6425 13.1699 19.279 11.7448 19.279 9.02187V5.33476C19.279 2.61183 14.6425 1.18677 10.0613 1.18677ZM2.68706 9.02187V7.9185C3.27086 8.24912 3.88905 8.51494 4.53061 8.71123V10.4451C3.32124 9.9713 2.68706 9.40717 2.68706 9.02187ZM13.7484 9.15829V10.9751C12.9492 11.1401 12.0274 11.2609 10.983 11.3051V9.46156C11.9107 9.42462 12.8347 9.32329 13.7484 9.15829ZM9.13949 11.306C8.21035 11.2704 7.28559 11.1601 6.37416 10.976V9.15921C7.25815 9.3196 8.19191 9.42376 9.13949 9.4634V11.306ZM15.5919 10.4451V8.71123C16.2336 8.51535 16.8519 8.24951 17.4355 7.9185V9.02187C17.4355 9.40717 16.8022 9.9713 15.5919 10.4451ZM10.0613 7.6392C5.28923 7.6392 2.68706 6.11735 2.68706 5.33476C2.68706 4.55217 5.28923 3.03032 10.0613 3.03032C14.8333 3.03032 17.4355 4.55217 17.4355 5.33476C17.4355 6.11735 14.8333 7.6392 10.0613 7.6392Z",fill:""!=i?i:"#21272A",strokeWidth:"0.5"})))," ","Ways to Redeem"),e.createElement("div",{className:"yt-rw-cta-right"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M13.4361 17.9852C13.4474 17.9965 13.7942 18.0835 14.2067 18.1783C14.6193 18.2731 14.9613 18.3362 14.9668 18.3186C14.9723 18.3009 15.015 18.0146 15.0617 17.6822C15.1554 17.0148 15.3825 16.2356 15.6251 15.7482C16.3812 14.2294 17.7379 13.2237 19.3834 12.9623L19.8024 12.8957L19.8024 12.2248L19.8024 11.5538L19.4227 11.49C16.9345 11.0726 15.3123 9.21214 15.0088 6.42796C14.989 6.24616 14.9653 6.09746 14.9562 6.09746C14.8723 6.09746 13.4818 6.43256 13.4555 6.45911C13.4365 6.4783 13.4506 6.64874 13.487 6.83779C13.8894 8.93118 15.0414 10.6346 16.5365 11.3469L16.8951 11.5177L9.52044 11.5311L4.85718 11.5396L4.85718 12.8975L9.53244 12.906L16.8897 12.9195L16.437 13.1488C15.2624 13.7439 14.3325 14.9112 13.7848 16.478C13.6288 16.9244 13.3933 17.942 13.4361 17.9852Z",fill:""!=i?i:"#21272A"})))))}_t("@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }\n@keyframes fadeout { from { opacity: 1 } to { opacity: 0 } }\n");function og({size:t=20,color:n="#000",thickness:r=2,centered:o=!1}){const a=e.createElement("div",{className:"yt-loader",style:{width:`${t}px`,height:`${t}px`,border:`${r}px solid rgba(0,0,0,0.15)`,borderTop:`${r}px solid ${n}`,borderRadius:"50%",animation:"yt-spin 0.8s linear infinite"}}," ");return o?e.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}},a):a}_t("@keyframes yt-spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n");const ag={body:{display:"flex",padding:"16px 12px",flexDirection:"column",alignItems:"flex-start",gap:8,flex:"1 0 0",alignSelf:"stretch",backgroundColor:"transparent",borderTopLeftRadius:20,borderTopRightRadius:20,WebkitOverflowScrolling:"touch",scrollbarWidth:"none"},footer:{paddingBottom:20,display:"flex",flexDirection:"column",gap:"11.23px",alignItems:"center"},footerText:{color:"#333",textAlign:"center",fontFamily:"Poppins",fontSize:9,fontWeight:400,lineHeight:"122%",paddingInline:16,paddingBottom:20,margin:0},redeemCard:{display:"flex",flexDirection:"column",alignItems:"flex-start",alignSelf:"stretch",borderRadius:8,overflow:"hidden",boxShadow:"none",backgroundColor:"rgba(140, 140, 140, 0.08)"},redeemCardHeader:{display:"flex",borderRadius:"8px 8px 0 0",padding:12,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",border:"1px solid #D9D9D9",background:"rgba(140, 140, 140, 0.02)",position:"relative",overflow:"hidden"},redeemCardHeaderLeft:{display:"flex",alignItems:"center",gap:8,flex:"1 0 0",position:"relative",zIndex:1},redeemCardIcon:{display:"flex",width:40,height:40,padding:8,flexDirection:"column",justifyContent:"center",alignItems:"center",gap:10,borderRadius:4,background:"rgba(137, 137, 137, 0.10)"},redeemCardTitleBox:{display:"flex",flexDirection:"column",alignItems:"start"},redeemCardTitle:{color:"#333",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:16,fontWeight:300,lineHeight:"142.4%",margin:0},redeemCardTitleSpan:{color:"#333",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:16,fontWeight:450,lineHeight:"142.4%"},redeemCardSubtitle:{color:"#666",fontFamily:'"General Sans", Poppins, sans-serif',fontSize:12,fontWeight:600,lineHeight:"142.4%",margin:0},cta:{display:"flex",padding:"7.016px 16.095px",alignItems:"flex-start",gap:"4.127px",borderRadius:8,background:"#262626",color:"#F2F2F2",textAlign:"center",fontFamily:"Poppins",fontSize:12,fontWeight:500,lineHeight:"142.4%",cursor:"pointer",border:0,position:"relative",zIndex:1,margin:0,width:"auto",height:"auto",minWidth:"auto",maxWidth:"none",boxSizing:"border-box",flexShrink:0,whiteSpace:"nowrap",verticalAlign:"middle",textTransform:"none",letterSpacing:"normal",appearance:"none",WebkitAppearance:"none"},redeemCardFooter:{borderRadius:"0 0 8px 8px",display:"flex",padding:"4px 12px",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",border:"1px solid #D9D9D9",borderTop:"none",background:"rgba(140, 140, 140, 0.12)"},redeemCardFooterText:{color:"#2C2C2C",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:10,fontWeight:450,lineHeight:"142.4%",margin:0},redeemCardFooterTextSpan:{color:"#2C2C2C",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:10,fontWeight:600,lineHeight:"142.4%"},wteBgIcon:{position:"absolute",right:0,top:"70%",transform:"translateY(-50%)",width:150,height:150,opacity:.1,pointerEvents:"none",zIndex:0,display:"flex",alignItems:"center",justifyContent:"center"}},ig={...ag,noCouponsFound:{paddingBlock:"40px",width:"100%",display:"flex",justifyContent:"center",margin:0},progressBlock:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",gap:14,padding:"20px 24px 18px",backgroundColor:"rgba(140, 140, 140, 0.06)",borderTop:"1px solid rgba(0, 0, 0, 0.06)",boxSizing:"border-box"},progressIcon:{display:"flex",alignItems:"center",justifyContent:"center",color:"#1F1F1F"},progressBar:{width:"100%",height:6,backgroundColor:"#C7C7C7",borderRadius:999,overflow:"hidden"},progressBarFill:{height:"100%",backgroundColor:"#1F1F1F",borderRadius:"inherit",transition:"width 220ms ease-out"},progressLabel:{color:"#1F1F1F",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:15,fontWeight:500,textAlign:"center"},successBlock:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",gap:6,padding:"22px 24px 14px",backgroundColor:"rgba(140, 140, 140, 0.06)",borderTop:"1px solid rgba(0, 0, 0, 0.06)",boxSizing:"border-box",position:"relative",zIndex:1},successBadge:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:6},successTitle:{color:"#1F1F1F",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:18,fontWeight:600,textAlign:"center",margin:0},successSubtitle:{color:"#4A4A4A",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:14,fontWeight:400,textAlign:"center",lineHeight:1.4,maxWidth:320,margin:0},successDivider:{width:"100%",height:1,backgroundColor:"#1F1F1F",marginTop:10},successApplied:{color:"#1F1F1F",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:13,fontWeight:500,paddingTop:6,margin:0},confetti:{position:"absolute",inset:0,pointerEvents:"none",zIndex:2},freebieProgressBar:{width:"100%",height:6,backgroundColor:"rgba(0, 0, 0, 0.10)",borderRadius:999,overflow:"hidden",marginTop:8},freebieProgressFill:{height:"100%",backgroundColor:"#1F1F1F",borderRadius:"inherit",transition:"width 300ms ease-out"},freebieClaimCta:{display:"flex",padding:"10px 20px",justifyContent:"center",alignItems:"center",minWidth:84,borderRadius:10,background:"#1F1F1F",color:"#fff",fontFamily:"Poppins",fontSize:14,fontWeight:600,lineHeight:1,cursor:"pointer",border:0,whiteSpace:"nowrap",position:"relative",zIndex:1,margin:0,width:"auto",height:"auto",maxWidth:"none",boxSizing:"border-box",flexShrink:0,verticalAlign:"middle",textTransform:"none",letterSpacing:"normal",appearance:"none",WebkitAppearance:"none"},freebieClaimedIcon:{display:"flex",width:40,height:40,justifyContent:"center",alignItems:"center",borderRadius:8,background:"rgba(137, 137, 137, 0.10)",color:"#1F1F1F",flexShrink:0},freebieClaimedSubtitle:{color:"#2F9E44",fontFamily:'"General Sans", Poppins, sans-serif',fontSize:12,fontWeight:600,lineHeight:"142.4%",margin:0},freebieCodeBox:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:10,alignSelf:"stretch",boxSizing:"border-box",margin:"0 12px 12px",padding:"14px 16px",borderRadius:10,border:"1.5px dashed #2F9E44",background:"transparent",cursor:"pointer"},freebieCode:{color:"#1F1F1F",fontFamily:'"Circular Std", Poppins, monospace',fontSize:16,fontWeight:600,letterSpacing:"0.12em",margin:0},freebieCopy:{color:"#2F9E44",fontFamily:'"Circular Std", Poppins, sans-serif',fontSize:13,fontWeight:500,whiteSpace:"nowrap",margin:0}};_t("/* Only what inline styles can't express. Cross-component descendant rules\n live in styles/shared.css. */\n\n.yt-wtr-redeemCard_cta:disabled {\n background-color: #fff !important;\n color: #000 !important;\n box-shadow: none !important;\n cursor: default !important;\n}\n\n.yt-wtr-redeemCard_cta {\n transition: transform 150ms ease-out;\n}\n.yt-wtr-redeemCard_cta:hover:not(:disabled) {\n transform: scale(1.04) !important;\n}\n\n.yt-wtr-body::-webkit-scrollbar {\n width: 0;\n background: transparent;\n}\n");_t('.yt-wte-bgIcon > svg,\n.yt-wte-bgIcon > img {\n width: 100%;\n height: 100%;\n display: block;\n}\n\n/* Some host themes (e.g. Shopify Dawn) include a `div:empty { display: none }`\n rule that hides "visually empty" elements. The Ways-to-Redeem progress fill\n is an intentionally empty div (background + width only), so we explicitly\n override that rule for it. */\n.yt-wtr-progressBarFill:empty {\n display: block !important;\n}\n');const lg=e=>"INR"===e?"₹":e?`${e} `:"",sg=(e,t)=>e&&e>0?`min order ${lg(t)}${e}`:"no mov";function cg({couponList:r=[],freebies:a=[],couponHeading:i="",couponCode:l="",currencyCode:s,onCouponAvail:c,copyFunction:d=e=>{},themeSecondaryContrastColor:p="",themeSecondaryColor:m="",themeBackgroundColor:u="",setScreenType:g=e=>{},showCTA:f=!0,balanceCoins:y,ctaBorderRadius:x,brandRewardProgram:h,redemptionMovRequired:b,userRewardTier:w,brandRewardTiers:v}){const C=!!h?.redemptionStatus&&"percentage"===h?.redemptionMethod&&Number(h?.redemptionValue??0)>0,E=(()=>{const e=Number(b??NaN);if(Number.isFinite(e)&&e>0)return e;if(h?.redemptionMinimumOrderValueStatus&&Number(h?.redemptionMinimumOrderValue??0)>0)return Number(h.redemptionMinimumOrderValue);const t=Number(h?.redemptionMovRequired??0);return t>0?t:0})(),k=E>0,T=E,S=(r?.length??0)>0,[N,F]=t(l),[B,$]=t("idle"),[z,I]=t(null),[P,D]=t(0),[A,_]=t(null),[L,R]=t(null),[O,M]=t({}),[V,W]=t(null),[j,H]=t(!1),q=o(null);n(()=>()=>{q.current&&clearInterval(q.current)},[]),n(()=>{const e={};a.forEach(t=>{t.isActive&&t.discountCode&&(e[t.couponTemplate.couponTemplateId]=t.discountCode)}),M(t=>({...e,...t}))},[a]),n(()=>{"success"!==B&&!j||L||import("./confetti-f3502561.js").then(e=>R(e.default))},[B,j,L]);const U=async e=>{if("idle"!==B)return;I(e),$("loading"),D(0),q.current=setInterval(()=>{D(e=>Math.min(92,e+12*Math.random()+3))},220);const t=new Promise(e=>setTimeout(e,800));let n;try{const[r]=await Promise.all([c(e.couponTemplateId),t]);n=r?.discountCode}catch{await t}if(q.current&&clearInterval(q.current),q.current=null,n){try{await navigator.clipboard.writeText(n)}catch{}F(n),D(100),setTimeout(()=>$("success"),350)}else _("Failed to avail coupon"),$("idle"),I(null),D(0),setTimeout(()=>_(null),2e3)},Q="idle"!==B,Y=((e,t)=>e?e.discountPercentage>0?`${e.discountPercentage}% off`:e.discountValue>0?`${lg(t)}${e.discountValue}`:e.name:"")(z,s);return e.createElement("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",background:"transparent",overflow:"hidden"}},("success"===B||j)&&L&&e.createElement("div",{className:"yt-wtr-confetti",style:ig.confetti,"aria-hidden":"true"},e.createElement(Dt,{animationData:L,loop:!1})),e.createElement("div",{className:"yt-wtr-body",style:ig.body},C&&e.createElement(mg,{redempRate:Number(h.redemptionValue),coinName:h?.coinName??"coins",movEnabled:k,movValue:T,currencyCode:s}),a.map((t,n)=>{const{couponTemplate:r,product:o}=t,a=O[r.couponTemplateId],i=function(e,t,n,r,o){const a=e.rewardTierIds??[],i="tier"===e.restrictTo&&a.length>0,l=Number(e.pointsRequired??0),s=l>0,c=i?"tier":s?"points":"none";if(o)return{state:"claimed",gating:c,current:0,target:null,unit:"",code:o};let d,p=!0,m=null;if(i){const e=t?.find(e=>a.includes(e.id));d=e?.name,m=e?function(e,t){if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod)return{current:Number(t?.currentLtv??0),target:null!=e.minimumOrderValueRequired?Number(e.minimumOrderValueRequired):null,unit:""};if("loyalty_points"===e.rewardTierCriteria)return{current:Number(t?.currentPoints??0),target:null!=e.minimumLoyaltyPointsRequired?Number(e.minimumLoyaltyPointsRequired):null,unit:"points"};return{current:Number(t?.totalOrders??0),target:null!=e.minimumOrderCountRequired?Number(e.minimumOrderCountRequired):null,unit:"orders"}}(e,n):{current:0,target:null,unit:"orders"},p=!e||null==m.target||m.current>=m.target}const u=!s||r>=l;if(p&&u)return{state:"eligible",gating:c,tierName:d,current:0,target:null,unit:""};if(i&&!p&&m)return{state:"locked",gating:"tier",tierName:d,current:m.current,target:m.target,unit:m.unit};return{state:"locked",gating:"points",current:r,target:l,unit:"points"}}(r,v,w,Number(y??0),a);return e.createElement(xg,{key:r.couponTemplateId??n,data:r,product:o,view:i,movLabel:gg(r,s),isClaiming:V===r.couponTemplateId,onClaim:()=>(async e=>{if(null===V){W(e);try{const t=await c(e),n=t?.discountCode;if(n){M(t=>({...t,[e]:n})),H(!0),setTimeout(()=>H(!1),2500);try{await navigator.clipboard.writeText(n)}catch{}}else _("Failed to claim freebie"),setTimeout(()=>_(null),2e3)}catch{_("Failed to claim freebie"),setTimeout(()=>_(null),2e3)}finally{W(null)}}})(r.couponTemplateId),onCopy:()=>(e=>{if(e){d(e);try{navigator.clipboard.writeText(e)}catch{}_("Coupon code copied"),setTimeout(()=>_(null),1500)}})(a)})}),S?r?.map((t,n)=>e.createElement(ug,{key:t.couponTemplateId??n,data:t,onAvail:U,isAvailing:z?.couponTemplateId===t.couponTemplateId&&"loading"===B,disabled:Q,balanceCoins:y,currencyCode:s})):0===a.length?!C&&e.createElement("p",{className:"yt-wtr-noCouponsFound",style:ig.noCouponsFound},"No Coupons Found"):null),e.createElement("div",{style:{bottom:"16px",display:"flex",flexDirection:"column",gap:"11.23px",alignItems:"center"}},"loading"===B&&e.createElement("div",{className:"yt-wtr-progressBlock",style:ig.progressBlock,"aria-live":"polite"},e.createElement("div",{className:"yt-wtr-progressIcon",style:ig.progressIcon},P<50?e.createElement(oe,{size:36}):e.createElement(gt,{size:36})),e.createElement("div",{className:"yt-wtr-progressBar",style:ig.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(P)},e.createElement("div",{className:"yt-wtr-progressBarFill",style:{...ig.progressBarFill,width:`${P}%`}})),e.createElement("div",{className:"yt-wtr-progressLabel",style:ig.progressLabel},P<50?`availing ${Y} off coupon...`:"applying your reward...")),"success"===B&&e.createElement("div",{className:"yt-wtr-successBlock",style:ig.successBlock,"aria-live":"polite"},e.createElement("div",{className:"yt-wtr-successBadge",style:ig.successBadge},e.createElement(dg,null)),e.createElement("h3",{className:"yt-wtr-successTitle",style:ig.successTitle},"🎉 ",Y," availed!"),e.createElement("p",{className:"yt-wtr-successSubtitle",style:ig.successSubtitle},"Your reward will apply automatically to eligible items in your cart."),e.createElement("div",{className:"yt-wtr-successDivider",style:ig.successDivider}),e.createElement("p",{className:"yt-wtr-successApplied",style:ig.successApplied},"coupon applied")),"idle"===B&&N&&N?.length>0&&e.createElement("div",{style:{padding:"10px 8px 8px 8px"}},e.createElement(rg,{setScreenType:g,themeSecondaryColor:m,themeSecondaryContrastColor:p,borderRadius:x??"12px",showCTA:!1,couponCode:N,couponHeading:i,copyFunction:d})),e.createElement("p",{className:"yt-wtr-footerText",style:ig.footerText},"stay signed-in with the account you use for checking out")),A&&e.createElement(ng,{displayText:A,background:"#000000",textColor:"#ffffff"}))}function dg(){return e.createElement("svg",{width:"56",height:"56",viewBox:"0 0 56 56",fill:"none","aria-hidden":"true"},e.createElement("circle",{cx:"28",cy:"28",r:"22",fill:"#1F1F1F"}),e.createElement("path",{d:"M19 28.5l6 6 12-13",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}))}function pg(){return e.createElement("span",{className:"yt-wte-bgIcon",style:ig.wteBgIcon,"aria-hidden":!0},e.createElement("svg",{width:"24",height:"15",viewBox:"0 0 24 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M0.766541 1.05866C0.948224 0.876972 1.19464 0.774902 1.45158 0.774902H7.84561V2.71249H7.26433V4.65008H7.84561V6.58766H7.26433V8.52525H7.84561V10.4628H7.26433V12.4004H7.84561V14.338H1.45158C1.19464 14.338 0.948224 14.2359 0.766541 14.0543C0.584857 13.8726 0.482788 13.6262 0.482788 13.3692V9.49404H1.45158C1.73364 9.49408 2.01231 9.43256 2.26814 9.31378C2.52398 9.19501 2.75081 9.02183 2.93281 8.80635C3.11481 8.59086 3.24759 8.33825 3.3219 8.06616C3.3962 7.79406 3.41023 7.50902 3.36301 7.23094C3.208 6.27862 2.31284 5.61887 1.34792 5.61887H0.482788V1.7437C0.482788 1.48676 0.584857 1.24034 0.766541 1.05866Z",fill:"#4F486A"}),e.createElement("path",{d:"M8.53345 1.58569C8.53345 1.38775 8.61238 1.19791 8.75288 1.05795C8.89338 0.917986 9.08395 0.839355 9.28265 0.839355H11.1815H22.7682C22.9669 0.839355 23.1575 0.917986 23.298 1.05795C23.4385 1.19791 23.5174 1.38775 23.5174 1.58569V5.6905C23.0207 5.6905 22.5443 5.88708 22.193 6.23699C21.8418 6.5869 21.6444 7.06148 21.6444 7.55632C21.6444 8.05117 21.8418 8.52575 22.193 8.87566C22.5443 9.22557 23.0207 9.42215 23.5174 9.42215V13.527C23.5174 13.7249 23.4385 13.9147 23.298 14.0547C23.1575 14.1947 22.9669 14.2733 22.7682 14.2733H11.2461H9.28265C9.08395 14.2733 8.89338 14.1947 8.75288 14.0547C8.61238 13.9147 8.53345 13.7249 8.53345 13.527V1.58569ZM13.0923 12.7806C13.1695 12.562 13.313 12.3726 13.5029 12.2386C13.6928 12.1046 13.9197 12.0326 14.1524 12.0326C14.3851 12.0326 14.6121 12.1046 14.802 12.2386C14.9919 12.3726 15.1353 12.562 15.2126 12.7806H22.019V10.5655C21.4562 10.2877 20.9825 9.85871 20.6514 9.32702C20.3202 8.79533 20.1447 8.18205 20.1447 7.55632C20.1447 6.9306 20.3202 6.31732 20.6514 5.78563C20.9825 5.25393 21.4562 4.82498 22.019 4.54712V2.33202H15.2126C15.1353 2.55069 14.9919 2.74009 14.802 2.87407C14.6121 3.00805 14.3851 3.08001 14.1524 3.08001C13.9197 3.08001 13.6928 3.00805 13.5029 2.87407C13.313 2.74009 13.1695 2.55069 13.0923 2.33202H11.2461H11.1815H10.0318V12.7806H13.0923ZM14.1524 6.80999C13.8544 6.80999 13.5685 6.69205 13.3578 6.4821C13.147 6.27216 13.0286 5.98741 13.0286 5.6905C13.0286 5.39359 13.147 5.10884 13.3578 4.8989C13.5685 4.68895 13.8544 4.571 14.1524 4.571C14.4505 4.571 14.7363 4.68895 14.9471 4.8989C15.1578 5.10884 15.2762 5.39359 15.2762 5.6905C15.2762 5.98741 15.1578 6.27216 14.9471 6.4821C14.7363 6.69205 14.4505 6.80999 14.1524 6.80999ZM14.1524 10.5416C13.8544 10.5416 13.5685 10.4237 13.3578 10.2138C13.147 10.0038 13.0286 9.71906 13.0286 9.42215C13.0286 9.12524 13.147 8.84049 13.3578 8.63055C13.5685 8.4206 13.8544 8.30265 14.1524 8.30265C14.4505 8.30265 14.7363 8.4206 14.9471 8.63055C15.1578 8.84049 15.2762 9.12524 15.2762 9.42215C15.2762 9.71906 15.1578 10.0038 14.9471 10.2138C14.7363 10.4237 14.4505 10.5416 14.1524 10.5416Z",fill:"#4D4D4D"})))}function mg({redempRate:t,coinName:n,movEnabled:r,movValue:o,currencyCode:a}){const i=r&&o>0?`min order ${lg(a)}${o}`:"no mov";return e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:ig.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...ig.redeemCardHeader,borderRadius:"8px 8px 0 0"}},e.createElement(pg,null),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:ig.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:ig.redeemCardIcon},e.createElement(ge,{size:24,color:"#000"})),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:ig.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:ig.redeemCardTitle},"Get upto"," ",e.createElement("span",{style:ig.redeemCardTitleSpan},t,"% off")),e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:ig.redeemCardSubtitle},"avail ",n," in cart • ",i)))),e.createElement("div",{className:"yt-wtr-redeemCard_footer yt-wtr-redeemCard_footer--zigzag",style:{...ig.redeemCardFooter,padding:"14px 14px",backgroundColor:"rgba(0, 0, 0, 0.03)",backgroundImage:"linear-gradient(rgba(255,255,255,0.65), rgba(255,255,255,0.65)), url('https://r2.yourtoken.io/loyalty-widget-v2/wavy.svg')"}},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:ig.redeemCardFooterText},"Use reward balance while checking out using the Avail option.")))}function ug({data:t,onAvail:n,isAvailing:r,disabled:o,balanceCoins:a=0,currencyCode:i}){const l=!a||t?.pointsRequired>a,s=a<t?.pointsRequired;return e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:ig.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...ig.redeemCardHeader,borderRadius:s?"8px 8px 0 0":8}},e.createElement(pg,null),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:ig.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:ig.redeemCardIcon},e.createElement("svg",{width:"24",height:"15",viewBox:"0 0 24 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M0.766541 1.05866C0.948224 0.876972 1.19464 0.774902 1.45158 0.774902H7.84561V2.71249H7.26433V4.65008H7.84561V6.58766H7.26433V8.52525H7.84561V10.4628H7.26433V12.4004H7.84561V14.338H1.45158C1.19464 14.338 0.948224 14.2359 0.766541 14.0543C0.584857 13.8726 0.482788 13.6262 0.482788 13.3692V9.49404H1.45158C1.73364 9.49408 2.01231 9.43256 2.26814 9.31378C2.52398 9.19501 2.75081 9.02183 2.93281 8.80635C3.11481 8.59086 3.24759 8.33825 3.3219 8.06616C3.3962 7.79406 3.41023 7.50902 3.36301 7.23094C3.208 6.27862 2.31284 5.61887 1.34792 5.61887H0.482788V1.7437C0.482788 1.48676 0.584857 1.24034 0.766541 1.05866Z",fill:"#4F486A"}),e.createElement("path",{d:"M8.53345 1.58569C8.53345 1.38775 8.61238 1.19791 8.75288 1.05795C8.89338 0.917986 9.08395 0.839355 9.28265 0.839355H11.1815H22.7682C22.9669 0.839355 23.1575 0.917986 23.298 1.05795C23.4385 1.19791 23.5174 1.38775 23.5174 1.58569V5.6905C23.0207 5.6905 22.5443 5.88708 22.193 6.23699C21.8418 6.5869 21.6444 7.06148 21.6444 7.55632C21.6444 8.05117 21.8418 8.52575 22.193 8.87566C22.5443 9.22557 23.0207 9.42215 23.5174 9.42215V13.527C23.5174 13.7249 23.4385 13.9147 23.298 14.0547C23.1575 14.1947 22.9669 14.2733 22.7682 14.2733H11.2461H9.28265C9.08395 14.2733 8.89338 14.1947 8.75288 14.0547C8.61238 13.9147 8.53345 13.7249 8.53345 13.527V1.58569ZM13.0923 12.7806C13.1695 12.562 13.313 12.3726 13.5029 12.2386C13.6928 12.1046 13.9197 12.0326 14.1524 12.0326C14.3851 12.0326 14.6121 12.1046 14.802 12.2386C14.9919 12.3726 15.1353 12.562 15.2126 12.7806H22.019V10.5655C21.4562 10.2877 20.9825 9.85871 20.6514 9.32702C20.3202 8.79533 20.1447 8.18205 20.1447 7.55632C20.1447 6.9306 20.3202 6.31732 20.6514 5.78563C20.9825 5.25393 21.4562 4.82498 22.019 4.54712V2.33202H15.2126C15.1353 2.55069 14.9919 2.74009 14.802 2.87407C14.6121 3.00805 14.3851 3.08001 14.1524 3.08001C13.9197 3.08001 13.6928 3.00805 13.5029 2.87407C13.313 2.74009 13.1695 2.55069 13.0923 2.33202H11.2461H11.1815H10.0318V12.7806H13.0923ZM14.1524 6.80999C13.8544 6.80999 13.5685 6.69205 13.3578 6.4821C13.147 6.27216 13.0286 5.98741 13.0286 5.6905C13.0286 5.39359 13.147 5.10884 13.3578 4.8989C13.5685 4.68895 13.8544 4.571 14.1524 4.571C14.4505 4.571 14.7363 4.68895 14.9471 4.8989C15.1578 5.10884 15.2762 5.39359 15.2762 5.6905C15.2762 5.98741 15.1578 6.27216 14.9471 6.4821C14.7363 6.69205 14.4505 6.80999 14.1524 6.80999ZM14.1524 10.5416C13.8544 10.5416 13.5685 10.4237 13.3578 10.2138C13.147 10.0038 13.0286 9.71906 13.0286 9.42215C13.0286 9.12524 13.147 8.84049 13.3578 8.63055C13.5685 8.4206 13.8544 8.30265 14.1524 8.30265C14.4505 8.30265 14.7363 8.4206 14.9471 8.63055C15.1578 8.84049 15.2762 9.12524 15.2762 9.42215C15.2762 9.71906 15.1578 10.0038 14.9471 10.2138C14.7363 10.4237 14.4505 10.5416 14.1524 10.5416Z",fill:"#4D4D4D"}))),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:ig.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:ig.redeemCardTitle},e.createElement("span",{style:ig.redeemCardTitleSpan},t?.name)),e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:ig.redeemCardSubtitle},t?.pointsRequired," Points Required •"," ",sg(t?.minimumOrderValue,i)))),e.createElement("button",{onClick:()=>n(t),disabled:o||l,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:ig.cta},r?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Avail")),s&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:ig.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:ig.redeemCardFooterText},e.createElement("span",{style:ig.redeemCardFooterTextSpan},t?.pointsRequired-a," coins "),"more required")))}function gg(e,t){return sg(e.minimumOrderValue,t)}function fg({product:t}){return t?.image?e.createElement("span",{className:"yt-wtr-freebieCard_icon yt-wtr-freebieCard_icon--product",style:ig.redeemCardIcon,"aria-hidden":!0},e.createElement("img",{src:t.image,alt:"",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"inherit",display:"block"}})):e.createElement("span",{className:"yt-wtr-freebieCard_icon",style:ig.redeemCardIcon,"aria-hidden":!0},e.createElement(ft,{size:22,color:"#1F1F1F"}))}function yg(){return e.createElement("span",{className:"yt-wtr-freebieCard_icon yt-wtr-freebieCard_icon--claimed",style:ig.freebieClaimedIcon,"aria-hidden":!0},e.createElement("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M5 12.5l4.5 4.5L19 7",stroke:"#1F1F1F",strokeWidth:"2.6",strokeLinecap:"round",strokeLinejoin:"round"})))}function xg({data:t,product:n,view:r,movLabel:o,isClaiming:a,onClaim:i,onCopy:l}){const{state:s,gating:c,tierName:d,current:p,target:m,unit:u,code:g}=r;if("claimed"===s)return e.createElement("div",{className:"yt-wtr-freebieCard yt-wtr-freebieCard--claimed",style:ig.redeemCard},e.createElement("div",{className:"yt-wtr-freebieCard_header",style:{...ig.redeemCardHeader,border:"none",background:"transparent"}},e.createElement("div",{style:ig.redeemCardHeaderLeft},e.createElement(yg,null),e.createElement("div",{style:ig.redeemCardTitleBox},e.createElement("p",{style:ig.redeemCardTitle},e.createElement("span",{style:ig.redeemCardTitleSpan},t?.name)),e.createElement("p",{style:ig.freebieClaimedSubtitle},"Claimed · apply discount with item added in cart")))),e.createElement("div",{className:"yt-wtr-freebieCard_codeBox",style:ig.freebieCodeBox,role:"button",tabIndex:0,onClick:l,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||l()}},e.createElement("span",{style:ig.freebieCode},g),e.createElement("span",{style:ig.freebieCopy},"Tap to copy")));const f="locked"===s,y=f&&"points"===c,x=f&&"tier"===c,h=m&&m>0?Math.min(100,Math.max(0,Math.round(p/m*100))):0;return e.createElement("div",{className:"yt-wtr-freebieCard yt-wtr-redeemCard--flat",style:ig.redeemCard},e.createElement("div",{className:"yt-wtr-freebieCard_header",style:{...ig.redeemCardHeader,borderRadius:d?"8px 8px 0 0":8}},e.createElement("div",{style:ig.redeemCardHeaderLeft},e.createElement(fg,{product:n}),e.createElement("div",{style:{...ig.redeemCardTitleBox,flex:"1 0 0"}},e.createElement("p",{style:ig.redeemCardTitle},e.createElement("span",{style:ig.redeemCardTitleSpan},t?.name)," ",x?`unlock at ${d??""} tier`:y?"":"unlocked"),x?e.createElement(e.Fragment,null,e.createElement("p",{style:ig.redeemCardSubtitle},p.toLocaleString()," of"," ",null!=m?m.toLocaleString():"-",u?` ${u}`:""),e.createElement("div",{className:"yt-wtr-freebieCard_progressBar",style:ig.freebieProgressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":m??void 0,"aria-valuenow":p},e.createElement("div",{style:{...ig.freebieProgressFill,width:`${h}%`}}))):y?e.createElement("p",{style:ig.redeemCardSubtitle},m??0," Points Required • ",o):e.createElement("p",{style:ig.redeemCardSubtitle},o))),!x&&e.createElement("button",{onClick:i,disabled:a||y,className:"yt-wtr-freebieCard_cta",style:ig.freebieClaimCta},a?e.createElement(og,{size:16,color:"#fff",centered:!0}):"Claim")),d&&e.createElement("div",{className:"yt-wtr-freebieCard_footer",style:ig.redeemCardFooter},e.createElement("p",{style:ig.redeemCardFooterText},"One-time claim on achieving ",d.toUpperCase()," tier")))}const hg={wrap:{display:"flex",flexDirection:"column",gap:16,minHeight:"100%"},head:{padding:20,display:"flex",flexDirection:"column",gap:20},titleBlock:{display:"flex",flexDirection:"column",gap:4,paddingBottom:25,borderBottom:"1px solid #878787"},eyebrow:{color:"#666",fontSize:12,margin:0},balance:{color:"#24272C",fontFamily:"Inter",fontSize:64,fontWeight:600,lineHeight:"80%",letterSpacing:"-4.543px",margin:0},currentTier:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:2},validity:{color:"#000",fontFamily:"Inter",fontSize:12,fontWeight:400,lineHeight:"117%",margin:0},validitySpan:{color:"#000",fontFamily:"Inter",fontSize:12,fontWeight:400,lineHeight:"117%"},title:{color:"#000",fontFamily:"Inter",fontSize:18,fontWeight:800,lineHeight:"117%",letterSpacing:"-0.36px",margin:0},sub:{color:"#000",textAlign:"right",fontFamily:"Inter",fontSize:12,fontWeight:400,lineHeight:"117%",alignSelf:"stretch",margin:0},progress:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:8},progressTitle:{color:"#000",fontFamily:"Inter",fontSize:12,fontWeight:400,lineHeight:"117%",margin:0},progressDots:{display:"flex",gap:9,alignItems:"center"},dot:{width:33,height:33,borderRadius:"50%",border:"2px solid #000",background:"#fff"},dotFilled:{background:"#2E4F7C",borderColor:"#2E4F7C"},cards:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:5,borderTop:"1px solid rgba(135, 135, 135, 0.50)",background:"#E6E6E6"},card:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:8,alignSelf:"stretch",border:"1px solid rgba(135, 135, 135, 0.50)"},tier1:{background:"#FFF"},tier2:{background:"#EEE"},tier3:{background:"#DBDBDB"},cardHead:{color:"#000",fontFamily:"Poppins",fontSize:16,fontWeight:400,lineHeight:"117%",letterSpacing:"-0.32px"},metrics:{display:"grid",gridTemplateColumns:"repeat(4, minmax(0, 1fr))",gap:8,alignItems:"center"},metric:{display:"flex",flexDirection:"column",justifyContent:"center"},metricBold:{color:"#000",fontFamily:"Poppins",fontSize:24,fontWeight:400,lineHeight:"117%",letterSpacing:"-0.48px"},metricSpan:{color:"#000",fontFamily:"Poppins",fontSize:12,fontWeight:400,lineHeight:"117%",letterSpacing:"-0.24px"},note:{marginTop:"auto",position:"sticky",bottom:0,padding:"6px 0",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",alignSelf:"stretch",background:"rgba(135, 135, 135, 0.10)",backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",color:"#000",textAlign:"center",fontFamily:"Poppins",fontSize:9,fontWeight:400,lineHeight:"122%",zIndex:2}},bg=[hg.tier1,hg.tier2,hg.tier3],wg=e=>bg[e%3];function vg(e){if(null==e||""===e)return"-";const t=Number(e);return Number.isNaN(t)?String(e):t.toLocaleString()}function Cg(e){if(null==e||""===e)return null;const t=Number(e);return Number.isNaN(t)?null:t}function Eg({brandRewardTiers:t,balanceCoins:n,userRewardTier:r,currencyCode:o}){const a=t?.filter(e=>!1!==e.widgetVisibility)??[],i=r?.currentTier,l=r?.nextTier,s=function(e,t,n){if(!e)return null;const r="INR"===n?"₹":n?`${n} `:"";if("ltv"===e.rewardTierCriteria&&"order_count"===e.purchaseValueMethod){const n=Cg(t?.totalOrders)??0,r=Cg(e.minimumOrderCountRequired);return{current:n,target:r,currentText:vg(n),targetText:vg(r),unit:"orders"}}if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod){const n=Cg(t?.currentLtv)??0,o=Cg(e.minimumOrderValueRequired),a=vg(n),i=vg(o);return{current:n,target:o,currentText:"-"===a?a:`${r}${a}`,targetText:"-"===i?i:`${r}${i}`,unit:""}}if("loyalty_points"===e.rewardTierCriteria){const n=Cg(t?.currentPoints)??0,r=Cg(e.minimumLoyaltyPointsRequired);return{current:n,target:r,currentText:vg(n),targetText:vg(r),unit:"points"}}return null}(l,r,o),c=s?.current,d=s?.target,p=null!=c&&null!=d&&d>0?Math.min(1,Math.max(0,c/d)):0,m=Math.floor(6*p),u=new Date;u.setDate(u.getDate()+(i?.expiresInDays??0));const g=u.toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"});return e.createElement("div",{className:"yt-vip-wrap",style:hg.wrap},e.createElement("div",{className:"yt-vip-head",style:hg.head},e.createElement("div",{className:"yt-vip-titleBlock",style:hg.titleBlock},e.createElement("p",{className:"yt-vip-eyebrow",style:hg.eyebrow},"Current Balance"),e.createElement("p",{className:"yt-vip-balance",style:hg.balance},vg(n))),e.createElement("div",{className:"yt-vip-current-tier",style:hg.currentTier},i&&e.createElement("p",{className:"yt-vip-validity",style:hg.validity},"Current Tier"," ",e.createElement("span",{style:hg.validitySpan},"Valid till ",g)),i&&e.createElement("h2",{className:"yt-vip-title",style:hg.title},i.name)),e.createElement("div",{className:"yt-vip-progress",style:hg.progress},e.createElement("p",{className:"yt-vip-progressTitle",style:hg.progressTitle},"Your Progress"),e.createElement("div",{className:"yt-vip-progressDots",style:hg.progressDots},Array.from({length:6}).map((t,n)=>e.createElement("span",{key:n,className:"yt-vip-dot "+(n<m?"yt-is-filled":""),style:{...hg.dot,...n<m?hg.dotFilled:null}}))),e.createElement("p",{className:"yt-vip-sub",style:hg.sub},null!=c&&null!=d&&s?`${s.currentText} / ${s.targetText}${s.unit?` ${s.unit}`:""} for next tier`:"Next tier progress unavailable"))),e.createElement("div",{className:"yt-vip-cards",style:hg.cards},a.map((t,n)=>{const r=Array.isArray(t.catalogDealsProducts)&&t.catalogDealsProducts.length>0,a=function(e,t){const n="INR"===t?"₹":t?`${t} `:"";if("ltv"===e.rewardTierCriteria&&"order_count"===e.purchaseValueMethod)return{value:vg(e.minimumOrderCountRequired),label:"Orders Required"};if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod){const t=vg(e.minimumOrderValueRequired);return{value:"-"===t?t:`${n}${t}`,label:"Order Value Required"}}return"loyalty_points"===e.rewardTierCriteria?{value:vg(e.minimumLoyaltyPointsRequired),label:"Points Required"}:{value:"-",label:"Required"}}(t,o);return e.createElement("div",{key:t.id,className:"yt-vip-card yt-tier"+(n%3+1),style:{...hg.card,...wg(n),...t.tierThemeColor?{background:t.tierThemeColor}:null}},e.createElement("div",{className:"yt-vip-cardHead",style:hg.cardHead},t.name),e.createElement("div",{className:"yt-vip-metrics",style:hg.metrics},e.createElement("div",{className:"yt-vip-metric",style:hg.metric},e.createElement("b",{style:hg.metricBold},vg(t.rewardMultiplier),"x"),e.createElement("span",{style:hg.metricSpan},"Rewards")),e.createElement("div",{className:"yt-vip-metric",style:hg.metric},e.createElement("b",{style:hg.metricBold},vg(t.redemptionMultiplier),"x"),e.createElement("span",{style:hg.metricSpan},"Redemption")),e.createElement("div",{className:"yt-vip-metric",style:hg.metric},e.createElement("b",{style:hg.metricBold},a.value),e.createElement("span",{style:hg.metricSpan},a.label)),r&&e.createElement("div",{className:"yt-vip-metric",style:{...hg.metric,justifyContent:"end",height:"100%"}},e.createElement("span",{style:hg.metricSpan},"+ Special Deals"))))})),e.createElement("div",{className:"yt-vip-note",style:hg.note},"stay signed-in with the account you use for checking out"))}_t(".yt-dob-btn-primary:disabled {\n opacity: 0.5 !important;\n cursor: not-allowed !important;\n}\n\n.yt-dob-btn-primary,\n.yt-dob-btn-secondary {\n transition: background 220ms ease-out, background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out;\n}\n.yt-dob-btn-primary:hover:not(:disabled) {\n background: #fff !important;\n background-color: #fff !important;\n color: #1F1F1F !important;\n border: 1px solid #1F1F1F !important;\n}\n.yt-dob-btn-secondary:hover {\n background: #1F1F1F !important;\n background-color: #1F1F1F !important;\n color: #fff !important;\n border-color: #1F1F1F !important;\n}\n");const kg={modalBackdrop:{position:"fixed",inset:0,background:"rgba(0, 0, 0, 0.45)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999},modal:{width:"90%",maxWidth:360,background:"#fff",borderRadius:14,padding:20,boxShadow:"0 20px 40px rgba(0, 0, 0, 0.2)"},modalTitle:{fontSize:18,fontWeight:400,marginBottom:16},dateInput:{width:"100%",padding:"10px 12px",fontSize:14,borderRadius:8,border:"1px solid #ddd",marginBottom:20,boxSizing:"border-box"},error:{margin:"-12px 0 16px",fontSize:13,lineHeight:1.3,color:"#D14343"},modalActions:{display:"flex",gap:12,justifyContent:"flex-end"},btnPrimary:{padding:"8px 14px",borderRadius:8,border:"none",background:"#000",color:"#fff",cursor:"pointer"},btnSecondary:{padding:"8px 14px",borderRadius:8,border:"1px solid #ccc",background:"#fff",cursor:"pointer"},availBtn:{padding:"10px 16px",borderRadius:8,border:"none",background:"#000",color:"#fff",cursor:"pointer",fontWeight:500}};function Tg({userData:t,ctaContrastColor:n,ctaPrimaryColor:r,currencyCode:o,activityRewards:a,onBirthdayUpdate:i,onSocialClick:l,onFeedbackRewardClick:s,isLoading:c,brandRewardProgram:d}){const p=d?.coinName??"coins",m=a?.creditOnActivitiesProperties?.referralRewardConfig,u="ways_to_earn"===m?.campaignVisibility||"both"===m?.campaignVisibility,g=Bg(m?.referrerReward,p,o),f=Bg(m?.refereeReward,p,o),y=!!m?.enabled&&u&&(!!m?.referrerReward?.enabled||!!m?.refereeReward?.enabled);return e.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",background:"transparent"}},e.createElement("div",{className:"yt-wtr-body",style:ag.body},a?.creditOnActivitiesProperties?.birthdayReward?.status&&a?.creditOnActivitiesProperties?.birthdayReward?.widgetVisibility&&Number(a?.creditOnBirthdayValue??0)>0&&e.createElement(Dg,{ctaContrastColor:n,ctaPrimaryColor:r,initializing:!t,coins:Number(a.creditOnBirthdayValue??0),type:a?.creditOnActivitiesProperties?.birthdayReward?.type,coinName:p,title:a?.creditOnActivitiesProperties?.birthdayReward?.offerTitle?.trim()?a.creditOnActivitiesProperties.birthdayReward.offerTitle:"on adding your birth date",icon:Sg(a?.creditOnActivitiesProperties?.birthdayReward?.icon,e.createElement(fe,{size:28,color:"#000"})),activityRewards:a,userData:t,onBirthdayUpdate:i}),d?.programStatus&&d?.programVisibility&&Number(d?.orderCreditValue??0)>0&&e.createElement(Ig,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Sg(d?.programIcon,e.createElement(ge,{size:28,color:"#000"})),coins:d.orderCreditValue,type:d?.orderCreditType,coinName:p,title:d?.programTitle?.trim()?d.programTitle:[{label:"Order Placed",value:"ORDER_PLACED"},{label:"Order Paid",value:"ORDER_PAID"},{label:"Order Fulfilled",value:"ORDER_FULFILLED"},{label:"Order Delivered",value:"ORDER_DELIVERED"},{label:"Order Paid and Delivered",value:"ORDER_PAID_AND_DELIVERED"},{label:"Order Paid and Fulfilled",value:"ORDER_PAID_AND_FULFILLED"}].find(e=>e.value===d.orderCreditCriteria)?.label??d.orderCreditCriteria,showAvail:!1,onCouponAvail:()=>{}}),a?.creditOnActivitiesProperties?.signUpReward?.status&&a?.creditOnActivitiesProperties?.signUpReward?.widgetVisibility&&Number(a?.creditOnSignupValue??0)>0&&e.createElement(Ig,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Sg(a?.creditOnActivitiesProperties?.signUpReward?.icon,e.createElement(v,{size:28,color:"#000"})),coins:Number(a.creditOnSignupValue??0),coinName:p,title:a?.creditOnActivitiesProperties?.signUpReward?.offerTitle?.trim()?a.creditOnActivitiesProperties.signUpReward.offerTitle:"on sign up",showAvail:!1,onCouponAvail:()=>{}}),a?.creditOnActivitiesProperties?.firstOrderReward?.status&&a?.creditOnActivitiesProperties?.firstOrderReward?.widgetVisibility&&Number(a?.creditOnFirstOrderValue??0)>0&&e.createElement(Ig,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Sg(a?.creditOnActivitiesProperties?.firstOrderReward?.icon,e.createElement(ge,{size:28,color:"#000"})),coins:Number(a.creditOnFirstOrderValue??0),type:a?.creditOnActivitiesProperties?.firstOrderReward?.type,coinName:p,title:a?.creditOnActivitiesProperties?.firstOrderReward?.offerTitle?.trim()?a.creditOnActivitiesProperties.firstOrderReward.offerTitle:"on your first order",showAvail:!1,onCouponAvail:()=>{}}),a?.creditOnActivitiesProperties?.secondOrderReward?.status&&a?.creditOnActivitiesProperties?.secondOrderReward?.widgetVisibility&&Number(a?.creditOnSecondOrderValue??0)>0&&e.createElement(Ig,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Sg(a?.creditOnActivitiesProperties?.secondOrderReward?.icon,e.createElement(ge,{size:28,color:"#000"})),coins:Number(a.creditOnSecondOrderValue??0),type:a?.creditOnActivitiesProperties?.secondOrderReward?.type,coinName:p,title:"on your second order",showAvail:!1,onCouponAvail:()=>{}}),a?.creditOnActivitiesProperties?.feedbackReward?.status&&a?.creditOnActivitiesProperties?.feedbackReward?.widgetVisibility&&(Number(a?.creditOnFeedbackValue??0)>0||Number(a?.creditOnImageFeedbackValue??0)>0)&&(()=>{const o=a.creditOnActivitiesProperties.feedbackReward,i=Number(a.creditOnFeedbackValue??0),l=Number(a.creditOnImageFeedbackValue??0),c=Sg(o.icon,e.createElement(Ae,{size:28,color:"#000"})),d=o.url?.trim(),m=i>0,u=m?i:l,g=m?"feedback":"image_feedback",f=m?"for a review":"for an image review",y=o.offerTitle?.trim()?o.offerTitle:f,x=m&&l>0?`Earn ${l} ${p} for image review`:void 0;return d?e.createElement(Pg,{ctaContrastColor:n,ctaPrimaryColor:r,active:!0,initializing:!t,url:d,type:g,icon:c,coins:u,coinName:p,title:y,subcopy:x,onCouponAvail:async e=>s?.(e,g)??!1}):e.createElement(Ig,{ctaContrastColor:n,ctaPrimaryColor:r,icon:c,coins:u,coinName:p,title:y,subcopy:x,showAvail:!1,onCouponAvail:()=>{}})})(),y&&e.createElement(Ig,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Sg(m?.offerIcon,e.createElement(C,{size:28,color:"#000"})),coins:0,coinName:p,title:"",showAvail:!1,onCouponAvail:()=>{},customTitle:e.createElement(zg,{title:m?.offerTitle,referrerReward:g,refereeReward:f})}),a?.creditOnActivitiesProperties?.customLink?.status&&Number(a?.creditOnCustomLinkValue??0)>0&&e.createElement(Pg,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasClickedOnCustomLink,initializing:!t,url:a?.creditOnActivitiesProperties?.customLink?.url??"",type:"custom_link",icon:Sg(a?.creditOnActivitiesProperties?.customLink?.icon,e.createElement("svg",{width:"64px",height:"64px",viewBox:"-10.24 -10.24 84.48 84.48",xmlns:"http://www.w3.org/2000/svg","stroke-width":"3.4560000000000004",stroke:"#000000",fill:"none"},e.createElement("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e.createElement("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("g",{id:"SVGRepo_iconCarrier"},e.createElement("path",{d:"M39.93,55.72A24.86,24.86,0,1,1,56.86,32.15a37.24,37.24,0,0,1-.73,6"}),e.createElement("path",{d:"M37.86,51.1A47,47,0,0,1,32,56.7"}),e.createElement("path",{d:"M32,7A34.14,34.14,0,0,1,43.57,30a34.07,34.07,0,0,1,.09,4.85"}),e.createElement("path",{d:"M32,7A34.09,34.09,0,0,0,20.31,32.46c0,16.2,7.28,21,11.66,24.24"}),e.createElement("line",{x1:"10.37",y1:"19.9",x2:"53.75",y2:"19.9"}),e.createElement("line",{x1:"32",y1:"6.99",x2:"32",y2:"56.7"}),e.createElement("line",{x1:"11.05",y1:"45.48",x2:"37.04",y2:"45.48"}),e.createElement("line",{x1:"7.14",y1:"32.46",x2:"56.86",y2:"31.85"}),e.createElement("path",{d:"M53.57,57,58,52.56l-8-8,4.55-2.91a.38.38,0,0,0-.12-.7L39.14,37.37a.39.39,0,0,0-.46.46L42,53.41a.39.39,0,0,0,.71.13L45.57,49Z"})))),coins:Number(a.creditOnCustomLinkValue??0),coinName:p,title:a?.creditOnActivitiesProperties?.customLink?.offerTitle?.trim()?a.creditOnActivitiesProperties.customLink.offerTitle:"on clicking this link",onCouponAvail:l}),a?.creditOnActivitiesProperties?.instagramFollow?.status&&Number(a?.creditOnInstagramFollowValue??0)>0&&e.createElement(Pg,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasFollowedOnInstagram,initializing:!t,url:a?.creditOnActivitiesProperties?.instagramFollow?.url??"",type:"instagram",icon:Sg(a?.creditOnActivitiesProperties?.instagramFollow?.icon,e.createElement(kt,{size:28,color:"#000"})),coins:Number(a.creditOnInstagramFollowValue??0),coinName:p,title:a?.creditOnActivitiesProperties?.instagramFollow?.offerTitle?.trim()?a.creditOnActivitiesProperties.instagramFollow.offerTitle:"on Instagram follow",onCouponAvail:l}),a?.creditOnActivitiesProperties?.facebookLike?.status&&Number(a?.creditOnFacebookLikeValue??0)>0&&e.createElement(Pg,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasLikedOnFacebook,initializing:!t,url:a?.creditOnActivitiesProperties?.facebookLike?.url??"",type:"facebook_like",icon:Sg(a?.creditOnActivitiesProperties?.facebookLike?.icon,e.createElement(ae,{size:28,color:"#000"})),coins:Number(a.creditOnFacebookLikeValue??0),coinName:p,title:a?.creditOnActivitiesProperties?.facebookLike?.offerTitle?.trim()?a.creditOnActivitiesProperties.facebookLike.offerTitle:"on Facebook like",onCouponAvail:l}),a?.creditOnActivitiesProperties?.facebookShare?.status&&Number(a?.creditOnFacebookShareValue??0)>0&&e.createElement(Pg,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasSharedOnFacebook,initializing:!t,url:a?.creditOnActivitiesProperties?.facebookShare?.url??"",type:"facebook_share",icon:Sg(a?.creditOnActivitiesProperties?.facebookShare?.icon,e.createElement(ae,{size:28,color:"#000"})),coins:Number(a.creditOnFacebookShareValue??0),coinName:p,title:a?.creditOnActivitiesProperties?.facebookShare?.offerTitle?.trim()?a.creditOnActivitiesProperties.facebookShare.offerTitle:"on Facebook share",onCouponAvail:l}),a?.creditOnActivitiesProperties?.twitterFollow?.status&&Number(a?.creditOnTwitterFollowValue??0)>0&&e.createElement(Pg,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasFollowedOnTwitter,initializing:!t,url:a?.creditOnActivitiesProperties?.twitterFollow?.url??"",type:"twitter",icon:Sg(a?.creditOnActivitiesProperties?.twitterFollow?.icon,e.createElement(ie,{size:28,color:"#000"})),coins:Number(a.creditOnTwitterFollowValue??0),coinName:p,title:a?.creditOnActivitiesProperties?.twitterFollow?.offerTitle?.trim()?a.creditOnActivitiesProperties.twitterFollow.offerTitle:"on Twitter follow",onCouponAvail:l}),a?.creditOnActivitiesProperties?.youtubeSubscription?.status&&Number(a?.creditOnYouTubeSubscriptionValue??0)>0&&e.createElement(Pg,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasSubscribedOnYoutube,initializing:!t,url:a?.creditOnActivitiesProperties?.youtubeSubscription?.url??"",type:"youtube",icon:Sg(a?.creditOnActivitiesProperties?.youtubeSubscription?.icon,e.createElement(le,{size:28,color:"#000"})),coins:Number(a.creditOnYouTubeSubscriptionValue??0),coinName:p,title:a?.creditOnActivitiesProperties?.youtubeSubscription?.offerTitle?.trim()?a.creditOnActivitiesProperties.youtubeSubscription.offerTitle:"on Youtube subscription",onCouponAvail:l})),e.createElement("div",{className:"yt-wtr-footer",style:ag.footer},e.createElement("hr",null),e.createElement("p",{className:"yt-wtr-footerText",style:ag.footerText},"stay signed-in with the account you use for checking out")))}function Sg(t,n){const r=t?.trim();return r?e.createElement("img",{src:r,alt:"",style:{width:"100%",height:"100%",objectFit:"contain",display:"block"}}):n}function Ng({icon:t}){return e.createElement("span",{className:"yt-wte-bgIcon",style:ag.wteBgIcon,"aria-hidden":!0},t)}function Fg({title:t,coins:n,type:r,coinName:o}){const a="percentage"===r?`${n}%`:`${n} ${o}`;if(t?.includes("{{reward_value}}")){const[n,r]=t.split("{{reward_value}}");return e.createElement(e.Fragment,null,e.createElement("span",{style:{fontWeight:400}},n),e.createElement("span",{style:{fontWeight:600}},a),e.createElement("span",{style:{fontWeight:400}},r))}return e.createElement(e.Fragment,null,e.createElement("span",{style:{fontWeight:600}},a),e.createElement("span",{style:{fontWeight:400}},t?` ${t}`:""))}function Bg(e,t,n){if(!e?.enabled)return null;if("points"===e.method){const n=e.pointsConfig?.points;return n?`${n} ${t??"coins"}`:null}if("discount_code"===e.method){const t=e.discountConfig;return t?"percentage_off"===t.type?`${t.value}%`:`${function(e){return e?"INR"===e?"₹":`${e} `:""}(n)}${t.value}`:null}return"freebie"===e.method?"freebie":null}function $g(t,n){return t?e.createElement("span",{key:n,style:{fontWeight:600}},t):null}function zg({title:t,referrerReward:n,refereeReward:r}){if(t?.trim()){const o=t.split(/(\{\{referrer_reward\}\}|\{\{referee_reward\}\})/g);return e.createElement(e.Fragment,null,o.map((t,o)=>"{{referrer_reward}}"===t?$g(n,`referrer-${o}`):"{{referee_reward}}"===t?$g(r,`referee-${o}`):t?e.createElement("span",{key:`text-${o}`,style:{fontWeight:400}},t):null))}return n&&r?e.createElement(e.Fragment,null,e.createElement("span",{style:{fontWeight:600}},n),e.createElement("span",{style:{fontWeight:400}}," for you and "),e.createElement("span",{style:{fontWeight:600}},r),e.createElement("span",{style:{fontWeight:400}}," for your friend")):n?e.createElement(e.Fragment,null,e.createElement("span",{style:{fontWeight:600}},n),e.createElement("span",{style:{fontWeight:400}}," for referring a friend")):r?e.createElement(e.Fragment,null,e.createElement("span",{style:{fontWeight:600}},r),e.createElement("span",{style:{fontWeight:400}}," for your friend")):e.createElement("span",{style:{fontWeight:400}},"for referring a friend")}function Ig({active:t=!0,title:n,customTitle:r,description:o,subcopy:a,redeemMov:i,icon:l,coins:s,type:c,coinName:d,showAvail:p=!0,ctaContrastColor:m,ctaPrimaryColor:u,onCouponAvail:g}){return e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:ag.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...ag.redeemCardHeader,borderRadius:o&&""!=o?"8px 8px 0 0":"8px"}},e.createElement(Ng,{icon:l}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:ag.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:ag.redeemCardIcon},l),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:ag.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:ag.redeemCardTitle},r??e.createElement(Fg,{title:n,coins:s,type:c,coinName:d})),a&&e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:ag.redeemCardSubtitle},a),i&&e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:ag.redeemCardSubtitle},50," Points Required •"," ","Minimum Order Value INR 499"))),p&&e.createElement("button",{onClick:g,disabled:!t,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:ag.cta},"Avail")),o&&""!=o&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:ag.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:ag.redeemCardFooterText},o)))}function Pg({active:r=!0,initializing:o=!1,title:a,description:i,subcopy:l,url:s,type:c,coins:d,coinName:p,icon:m,ctaPrimaryColor:u,ctaContrastColor:g,onCouponAvail:f}){const[y,x]=t(null),[h,b]=t(!1),[w,v]=t(!r);return n(()=>{v(!r)},[r]),e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:ag.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...ag.redeemCardHeader,borderRadius:i&&""!=i?"8px 8px 0 0":"8px"}},e.createElement(Ng,{icon:m}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:ag.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:ag.redeemCardIcon},m),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:ag.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:ag.redeemCardTitle},e.createElement(Fg,{title:a,coins:d??"",coinName:p})),l&&e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:ag.redeemCardSubtitle},l))),e.createElement("button",{onClick:async()=>{try{b(!0);await f(s,c)?(v(!0),x("Points Added")):x("Failed to add points")}catch(e){console.log("FAILED"),x("Failed to add points")}finally{b(!1),setTimeout(()=>x(null),1e4)}},disabled:w||o,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:ag.cta},h||o?e.createElement(og,{size:18,color:"#fff",centered:!0}):w?"Availed":"Avail")),y&&e.createElement(ng,{displayText:y,background:"#000000",textColor:"#ffffff"}))}function Dg({userData:r,activityRewards:o,coins:a,type:i,coinName:l,title:s,icon:c,initializing:d=!1,ctaContrastColor:p,ctaPrimaryColor:m,onBirthdayUpdate:u}){const[g,f]=t(!1),[y,x]=t(null),[h,b]=t(!1),[w,v]=t(null),[C,E]=t(r?.hasSetBirthday);n(()=>{E(!!r?.hasSetBirthday)},[r?.hasSetBirthday]);const k=c??e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"27",height:"27",viewBox:"0 0 27 27",fill:"none"},e.createElement("g",{"clip-path":"url(#clip0_8090_4227)"},e.createElement("path",{d:"M14.3316 7.7168V12.1263H22.0483C22.3407 12.1263 22.6211 12.2425 22.8279 12.4492C23.0346 12.656 23.1507 12.9364 23.1507 13.2287V22.0478H25.3555V24.2526H1.10303V22.0478H3.3078V13.2287C3.3078 12.9364 3.42394 12.656 3.63068 12.4492C3.83742 12.2425 4.11781 12.1263 4.41018 12.1263H12.1269V7.7168H14.3316ZM20.946 14.3311H5.51257V22.0478H20.946V14.3311Z",fill:"black"}),e.createElement("path",{d:"M15.5793 2.95234C15.8063 2.10514 15.6875 1.20246 15.2489 0.442871L13.3396 1.54526C12.5801 1.98383 12.0258 2.70617 11.7988 3.55337C11.5718 4.40058 11.6907 5.30326 12.1292 6.06284L14.0385 4.96045C14.7981 4.52188 15.3523 3.79955 15.5793 2.95234Z",fill:"black"}),e.createElement("path",{d:"M6.32349 16.462H20.14M15.2489 0.442871C15.6875 1.20246 15.8063 2.10514 15.5793 2.95234C15.3523 3.79955 14.7981 4.52188 14.0385 4.96045L12.1292 6.06284C11.6907 5.30326 11.5718 4.40058 11.7988 3.55337C12.0258 2.70617 12.5801 1.98383 13.3396 1.54526L15.2489 0.442871Z",stroke:"black","stroke-width":"0.440954"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_8090_4227"},e.createElement("rect",{width:"26.4572",height:"26.4573",fill:"white"}))));return e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:ag.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...ag.redeemCardHeader,borderRadius:"8px 8px 0 0"}},e.createElement(Ng,{icon:k}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:ag.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:ag.redeemCardIcon},k),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:ag.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:ag.redeemCardTitle},e.createElement(Fg,{title:s,coins:a,type:i,coinName:l})))),e.createElement(e.Fragment,null," ",e.createElement("button",{onClick:()=>f(!0),disabled:C||d,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:ag.cta},d?e.createElement(og,{size:18,color:"#fff",centered:!0}):C?"Availed":"Avail"),e.createElement(Ag,{isLoading:h,open:g,value:w,onChange:e=>{v(e.target.value),console.log("SElected date",e.target.value)},onClose:()=>f(!1),onSave:async e=>{try{b(!0);await u(e)?(E(!0),x("Birthday saved"),f(!1)):x("Failed to update birthday!")}catch(e){x("Failed to update birthday!")}finally{b(!1),setTimeout(()=>x(null),3e3)}}}))),!r?.hasSetBirthday&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:ag.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:ag.redeemCardFooterText},"Add birth date to avail the offer")),y&&e.createElement(ng,{displayText:y,background:"#000000",textColor:"#ffffff"}))}function Ag({open:t,value:n,onSave:r,onClose:a,onChange:i,isLoading:l}){const s=o(null);if(!t)return null;const c=new Date;c.setFullYear(c.getFullYear()-10);const d=`${c.getFullYear()}-${String(c.getMonth()+1).padStart(2,"0")}-${String(c.getDate()).padStart(2,"0")}`,p=!!n&&n>d;return e.createElement("div",{className:"yt-dob-modal-backdrop",style:kg.modalBackdrop,onClick:a},e.createElement("div",{className:"yt-dob-modal",style:kg.modal,onClick:e=>e.stopPropagation()},e.createElement("h2",{className:"yt-dob-modal-title",style:kg.modalTitle},"What’s your date of birth?"),e.createElement("input",{ref:s,type:"date",className:"yt-dob-date-input",style:kg.dateInput,value:n??"",max:d,onChange:i}),p&&e.createElement("p",{className:"yt-dob-error",style:kg.error},"You must be at least 10 years old."),e.createElement("div",{className:"yt-dob-modal-actions",style:kg.modalActions},e.createElement("button",{className:"yt-dob-btn-secondary",style:kg.btnSecondary,onClick:a},"Cancel"),e.createElement("button",{className:"yt-dob-btn-primary",style:kg.btnPrimary,disabled:!n||p,onClick:()=>n&&!p&&r(n)},l?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Save"))))}_t("/* Only the responsive breakpoint stays in CSS — inline can't express @media.\n Everything else is inline via styles/RecentTransactions.styles.ts. */\n\n@media (max-width: 420px) {\n .yt-rt-totals { grid-template-columns: repeat(2, 1fr) !important; }\n .yt-rt-title { font-size: 14px !important; }\n .yt-rt-amount { font-size: 16px !important; }\n .yt-rt-monthTitle { font-size: 20px !important; }\n .yt-rt-hideSm { display: none !important; }\n}\n");const _g={wrap:{width:"100%",background:"#fff",fontFamily:"Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif",color:"#111"},totals:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:6,border:"1px solid #e7e7e7",padding:"12px 10px"},totalLabel:{fontSize:14,color:"#6b6b6b",textAlign:"center"},totalValue:{fontSize:18,fontWeight:700,marginTop:2,textAlign:"center"},pendingPills:{display:"flex",gap:8,padding:"10px 16px",alignItems:"center",justifyContent:"space-between",margin:"12px 16px 8px 16px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:999,boxShadow:"0 6px 16px rgba(0, 0, 0, 0.12)"},pendingPillsRight:{display:"flex",gap:8,alignItems:"center"},pill:{display:"inline-flex",alignItems:"center",padding:"8px 14px",borderRadius:999,fontSize:14,background:"#f3f3f3",color:"#222",textAlign:"center",overflowWrap:"break-word",wordBreak:"break-word",minWidth:0},pillDelta:{fontWeight:700,fontSize:20,padding:"4px 0",background:"transparent",color:"#111",whiteSpace:"nowrap",flexShrink:0},pillOrder:{background:"#f1f1f1",color:"#333"},pillStatus:{background:"#dee6f4",color:"#3a5fa8"},pendingNote:{fontSize:13,color:"#666",textAlign:"center",background:"#f4f4f4",padding:"10px 14px",margin:"0 16px 14px 16px",borderRadius:999},monthTitle:{fontSize:28,fontWeight:800,padding:"24px 16px 10px 16px",margin:0},row:{border:"1px solid #e1e1e1",borderTop:0,padding:16,display:"flex",flexDirection:"column",gap:6},rowHeader:{display:"flex",alignItems:"center",gap:6,fontSize:14},caret:{fontSize:16,lineHeight:1,color:"#5b5b5b"},date:{fontWeight:500,color:"#5b5b5b"},meta:{marginLeft:4,fontSize:14,color:"#9a9a9a"},rowBody:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12},title:{fontWeight:700,fontSize:18},titleSuffix:{fontSize:18},amount:{fontWeight:800,fontSize:20}},Lg={earned:"#D4F9A780",expired:"#FFB3B380",availed:"#CDE2FF80"},Rg={earned:"#3d8b3d",expired:"#c44a4a",availed:"#3a5fa8"},Og=e=>({..._g.caret,color:Rg[e]}),Mg={order:"Purchase",first_order:"First Purchase",second_order:"Second Purchase",signup:"Signup",bulk_insert_signup:"Signup",birthday:"Birthday",referral_signup:"Referral Signup",referral_first_order:"Referral First Order",referee_signup:"Referee Signup",referee_first_order:"Referee First Order",referee_order:"Referee Order",social_instagram:"Instagram",social_facebook:"Facebook",social_facebook_like:"Facebook Like",social_facebook_share:"Facebook Share",social_twitter:"Twitter",social_youtube:"YouTube",social_custom_link:"Custom Activity",review_comment:"Review",segment_reward:"Segment Reward",admin_balance_update:"Manual Update",consumer_balance_increase:"Balance Adjustment",consumer_balance_decrease:"Balance Adjustment",membership_tier_acquisition:"Tier Upgrade",catalog_offer_redemption:"Catalog Offer",discount_creation:"Redemption",consumer_discount_creation:"Redemption",points_expiration:"Expiration"},Vg={payment:"Coins will be credited after payment",shipment:"Coins will be credited after shipment",delivery:"Coins will be credited after delivery","payment+shipment":"Coins will be credited on payment and shipment","payment+delivery":"Coins will be credited on payment and delivery"},Wg={awaiting_payment:"awaiting-payment",confirmed:"confirmed",in_transit:"in-transit",delivered:"delivered",processing:"processing"};function jg(e){const t=Math.round(100*e)/100;return Number.isInteger(t)?t.toLocaleString():t.toLocaleString(void 0,{maximumFractionDigits:2})}function Hg(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return"";return`${t.getDate()} ${t.toLocaleString("en-US",{month:"short"})} ${t.getFullYear()}`}function qg(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString("en-US",{month:"long",year:"numeric"})}function Ug(e,t,n){if("expired"===e)return`${n} Expired`;return`${n} ${"earned"===e?"Earned":"Availed"}: on-${function(e){const t=e.toLowerCase();return Mg[t]?Mg[t]:t.split("_").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}(t)}`}function Qg(e){if(e)return Wg[e]??e.replace(/_/g,"-")}function Yg(e,t){return e.map(e=>{return{deltaLabel:`+ ${jg(e.points)} ${t.toLowerCase()}`,orderId:e.orderId?`#ORDERID: ${e.orderId}`:void 0,status:Qg(e.orderStatus),note:(n=e.criteria,n&&Vg[n]?Vg[n]:"Coins will be credited once the order is complete")};var n})}const Zg={summary:{totalSaved:1450.5,totalEarned:3820,totalAvailed:1200,totalExpired:50},pending:[{id:"48217",points:120,activityType:"order",orderId:"5673829104822",criteria:"payment+delivery",orderStatus:"in_transit",createdAt:"2026-06-09T14:22:11.000Z"},{id:"48205",points:60,activityType:"order",orderId:"5673821007311",criteria:"payment+delivery",orderStatus:"awaiting_payment",createdAt:"2026-06-08T10:03:47.000Z"}],transactions:[{id:"91044",type:"earned",activityType:"order",points:220,createdAt:"2026-06-07T18:41:09.000Z"},{id:"91017",type:"availed",activityType:"discount_creation",points:500,createdAt:"2026-06-05T12:18:30.000Z"},{id:"90988",type:"earned",activityType:"signup",points:100,createdAt:"2026-05-30T09:02:15.000Z"},{id:"90874",type:"expired",activityType:"points_expiration",points:50,createdAt:"2026-05-22T00:00:00.000Z"},{id:"90802",type:"earned",activityType:"referee_first_order",points:150,createdAt:"2026-05-18T16:55:42.000Z"}]};function Gg({data:t,tokenName:n="Coins",currencySymbol:r="$"}){const o=t??Zg,{totals:a,months:i,pending:l}=function(e,t,n){const r={saved:(o=e.summary.totalSaved??0,a=n,`${a}${jg(o)}`),earned:jg(e.summary.totalEarned??0),available:jg(e.summary.totalAvailed??0),expired:jg(e.summary.totalExpired??0)};var o,a;const i=[...e.transactions??[]].sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()),l=new Map;for(const e of i){const n=qg(e.createdAt);if(!n)continue;const r=e.type,o={id:e.id,dateLabel:Hg(e.createdAt),title:Ug(r,e.activityType,t),amount:jg(e.points),kind:r},a=l.get(n);a?a.push(o):l.set(n,[o])}return{totals:r,months:Array.from(l,([e,t])=>({monthTitle:e,items:t})),pending:Yg(e.pending??[],t)}}(o,n,r);return e.createElement("div",{style:{display:"flex",flexDirection:"column",minHeight:"100%",background:"transparent"}},e.createElement("div",{className:"yt-rt-wrap",style:_g.wrap},e.createElement("div",{className:"yt-rt-totals",style:_g.totals},e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:_g.totalLabel},"Total Saved"),e.createElement("div",{className:"yt-rt-totalValue",style:_g.totalValue},a.saved)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:_g.totalLabel},"Total Earned"),e.createElement("div",{className:"yt-rt-totalValue",style:_g.totalValue},a.earned)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:_g.totalLabel},"Total Avail",e.createElement("span",{className:"yt-rt-hideSm"},"ed")),e.createElement("div",{className:"yt-rt-totalValue",style:_g.totalValue},a.available)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:_g.totalLabel},"Expired"),e.createElement("div",{className:"yt-rt-totalValue",style:_g.totalValue},a.expired))),l.map((t,n)=>e.createElement(e.Fragment,{key:`${t.orderId??"pending"}-${n}`},e.createElement("div",{className:"yt-rt-pendingPills",style:_g.pendingPills},e.createElement("span",{className:"yt-rt-pill yt-rt-pill--delta",style:{..._g.pill,..._g.pillDelta}},t.deltaLabel),e.createElement("div",{className:"yt-rt-pendingPillsRight",style:_g.pendingPillsRight},t.orderId&&e.createElement("span",{className:"yt-rt-pill yt-rt-pill--order",style:{..._g.pill,..._g.pillOrder}},t.orderId),t.status&&e.createElement("span",{className:"yt-rt-pill yt-rt-pill--status",style:{..._g.pill,..._g.pillStatus}},t.status))),t.note&&e.createElement("div",{className:"yt-rt-pendingNote",style:_g.pendingNote},t.note))),i.map(t=>e.createElement("div",{key:t.monthTitle,className:"yt-rt-month"},e.createElement("div",{className:"yt-rt-monthTitle",style:_g.monthTitle},t.monthTitle),t.items.map(t=>{return e.createElement("div",{key:t.id,className:["yt-rt-row","earned"===t.kind?"yt-rt-row--earned":"","expired"===t.kind?"yt-rt-row--expired":"","availed"===t.kind?"yt-rt-row--availed":""].join(" "),style:(n=t.kind,{..._g.row,background:Lg[n]})},e.createElement("div",{className:"yt-rt-rowHeader",style:_g.rowHeader},e.createElement("span",{className:"yt-rt-caret",style:Og(t.kind)},"▶"),e.createElement("span",{className:"yt-rt-date",style:_g.date},t.dateLabel)),e.createElement("div",{className:"yt-rt-rowBody",style:_g.rowBody},e.createElement("div",{className:"yt-rt-title"},function(t){const n=t.indexOf(": ");return-1===n?e.createElement("span",{style:_g.title},t):e.createElement(e.Fragment,null,e.createElement("span",{style:_g.title},t.substring(0,n+1)),e.createElement("span",{style:_g.titleSuffix}," ",t.substring(n+2)))}(String(t.title))),e.createElement("div",{className:"yt-rt-amount",style:_g.amount},t.amount)));var n})))),e.createElement("div",{className:"yt-rt-note",style:{marginTop:"auto",position:"sticky",bottom:0,padding:"6px 0",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",alignSelf:"stretch",background:"rgba(135, 135, 135, 0.10)",backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",color:"#000",textAlign:"center",fontFamily:"Poppins",fontSize:9,fontWeight:400,lineHeight:"122%",zIndex:2}},"stay signed-in with the account you use for checking out"))}function Xg({className:t,overlayColor:n,gradientPrefix:r}){const o=s(),a=e=>`${r}-${e}-${o.replace(/:/g,"")}`,i=a("filter"),l=a("paint0"),c=a("paint1"),d=a("paint2"),p=a("paint3"),m=a("paint4"),u=a("paint5");return e.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",viewBox:"0 0 35 35",fill:"none","aria-hidden":"true"},e.createElement("g",{filter:`url(#${i})`},e.createElement("path",{d:"M9.55556 0.955555L0 12.4222H7.64444L17.2 0L9.55556 0.955555Z",fill:`url(#${l})`}),e.createElement("path",{d:"M17.2 0L7.64444 12.4222L26.7556 12.4222L17.2 0Z",fill:`url(#${c})`}),e.createElement("path",{d:"M24.8444 0.954809L34.4 12.4215H26.7555L17.2 0L24.8444 0.954809Z",fill:`url(#${d})`}),e.createElement("path",{d:"M17.2 34.4L0 12.4222H7.64444L17.2 34.4Z",fill:`url(#${p})`}),e.createElement("path",{d:"M26.7556 12.4222L7.64444 12.4222L17.2 34.4L26.7556 12.4222Z",fill:`url(#${m})`}),e.createElement("path",{d:"M17.2 34.4L34.4 12.4223L26.7556 12.4222L17.2 34.4Z",fill:`url(#${u})`}),e.createElement("path",{d:"M9.55556 0.955555L0 12.4222H7.64444L17.2 0L9.55556 0.955555Z",fill:n,fillOpacity:"0.4",style:{mixBlendMode:"plus-darker"}}),e.createElement("path",{d:"M17.2 0L7.64444 12.4222L26.7556 12.4222L17.2 0Z",fill:n,fillOpacity:"0.4",style:{mixBlendMode:"plus-darker"}}),e.createElement("path",{d:"M24.8444 0.954809L34.4 12.4215H26.7555L17.2 0L24.8444 0.954809Z",fill:n,fillOpacity:"0.4",style:{mixBlendMode:"plus-darker"}}),e.createElement("path",{d:"M17.2 34.4L0 12.4222H7.64444L17.2 34.4Z",fill:n,fillOpacity:"0.4",style:{mixBlendMode:"plus-darker"}}),e.createElement("path",{d:"M26.7556 12.4222L7.64444 12.4222L17.2 34.4L26.7556 12.4222Z",fill:n,fillOpacity:"0.4",style:{mixBlendMode:"plus-darker"}}),e.createElement("path",{d:"M17.2 34.4L34.4 12.4223L26.7556 12.4222L17.2 34.4Z",fill:n,fillOpacity:"0.4",style:{mixBlendMode:"plus-darker"}}),e.createElement("path",{d:"M9.55556 0.955555L0 12.4222H7.64444L17.2 0L9.55556 0.955555Z",fill:"white",fillOpacity:"0.01"}),e.createElement("path",{d:"M17.2 0L7.64444 12.4222L26.7556 12.4222L17.2 0Z",fill:"white",fillOpacity:"0.01"}),e.createElement("path",{d:"M24.8444 0.954809L34.4 12.4215H26.7555L17.2 0L24.8444 0.954809Z",fill:"white",fillOpacity:"0.01"}),e.createElement("path",{d:"M17.2 34.4L0 12.4222H7.64444L17.2 34.4Z",fill:"white",fillOpacity:"0.01"}),e.createElement("path",{d:"M26.7556 12.4222L7.64444 12.4222L17.2 34.4L26.7556 12.4222Z",fill:"white",fillOpacity:"0.01"}),e.createElement("path",{d:"M17.2 34.4L34.4 12.4223L26.7556 12.4222L17.2 34.4Z",fill:"white",fillOpacity:"0.01"})),e.createElement("defs",null,e.createElement("filter",{id:i,x:"0",y:"-0.135081",width:"34.3999",height:"34.6869",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},e.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dy:"0.151966"}),e.createElement("feGaussianBlur",{stdDeviation:"0.135081"}),e.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.45 0"}),e.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow"}),e.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.createElement("feOffset",{dy:"-0.135081"}),e.createElement("feGaussianBlur",{stdDeviation:"0.413685"}),e.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),e.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),e.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow",result:"effect2_innerShadow"})),e.createElement("linearGradient",{id:l,x1:"34.4",y1:"0",x2:"-6.74801",y2:"21.463",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#807F7D"}),e.createElement("stop",{offset:"0.666667",stopColor:"#C1C1C1"}),e.createElement("stop",{offset:"1",stopColor:"#B7B7B7"})),e.createElement("linearGradient",{id:c,x1:"17.2",y1:"0",x2:"17.2",y2:"34.4",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#DADADA"}),e.createElement("stop",{offset:"0.666667",stopColor:"#E9E9E9"}),e.createElement("stop",{offset:"1",stopColor:"#CBCBCB"})),e.createElement("linearGradient",{id:d,x1:"0",y1:"0",x2:"41.1495",y2:"21.4599",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"white"}),e.createElement("stop",{offset:"0.666667",stopColor:"#BDBDBD"}),e.createElement("stop",{offset:"1",stopColor:"#A0A0A0"})),e.createElement("linearGradient",{id:p,x1:"0",y1:"0",x2:"24.4852",y2:"41.7154",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#A5A3A0"}),e.createElement("stop",{offset:"0.666667",stopColor:"#7A7A7A"}),e.createElement("stop",{offset:"1",stopColor:"#C1C1C1"})),e.createElement("linearGradient",{id:m,x1:"17.2",y1:"0",x2:"14.0614",y2:"35.6192",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#9A9A9A"}),e.createElement("stop",{offset:"0.666667",stopColor:"#6A6A6A"}),e.createElement("stop",{offset:"1",stopColor:"#4D4D4D"})),e.createElement("linearGradient",{id:u,x1:"34.4",y1:"12.4222",x2:"17.2",y2:"35.3555",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#5C5C5C"}),e.createElement("stop",{offset:"0.333333",stopColor:"#9B9B9B"}),e.createElement("stop",{offset:"1",stopColor:"#9F9F9F"}))))}function Kg(e){try{return Number(e).toLocaleString()}catch{return e}}function Jg(e){const t=Number(e);return Math.round(10*t)/10}function ef({value:r,duration:a=1200}){const[i,l]=t(0),s=o(0);return n(()=>{const e=s.current,t=Number.isFinite(r)?r:0;if(e===t)return;let n=0,o=null;const i=r=>{null===o&&(o=r);const c=Math.min(1,(r-o)/a),d=Math.round(e+(t-e)*(e=>1-Math.pow(1-e,3))(c));s.current=d,l(d),c<1&&(n=requestAnimationFrame(i))};return n=requestAnimationFrame(i),()=>cancelAnimationFrame(n)},[r,a]),e.createElement(e.Fragment,null,i.toLocaleString())}function tf({config:r}){const{isMobile:a,previewMode:i=!1,bannerBackground:l,bannerBackgroundType:s="shape",bannerImage:c,bannerTextColor:d,bannerTextAlignment:p="center",showWatermark:m=!0,watermarkColor:u,themePrimaryColor:g,themeContrastColor:f,themeSecondaryColor:y,themeSecondaryContrastColor:x,themeBackgroundColor:h,themeTextColor:b,themeAccentColor:w,widgetOpen:v,widgetRoundedCorners:C,ctaPrimaryColor:E,ctaPrimaryContrastColor:k,ctaBorderColor:T,ctaSecondaryColor:S,ctaSecondaryContrastColor:N,ctaShowIcon:F,ctaBorderRadius:B,showWaysToEarn:$,showWaysToRedeem:z=!0,showWCoinValue:I,showReferral:P,referralLocked:D=!1,showTransactions:A,showVipSection:_,showLogo:L=!1,brandName:R,headingEyebrow:O,userGreeting:M="Welcome to",brandLogoUrl:V,balanceCoins:W,coinValInr:j,coinIcon:H,currencyCode:q,tokenName:U,maxRedeemableCoins:Q,redemptionMovRequired:Y,rateTitle:Z,rateSub:G,couponHeading:X,couponCode:K,couponList:J,freebies:ee,onCouponAvail:te,referralLink:ne,userRewardTier:re,brandRewardTiers:oe,onClose:ae=()=>{},onLogout:ie,userData:le,activityRewards:se,brandRewardProgram:ce,recentTransactionsData:de,isLoading:pe,onBirthdayUpdate:me,onSocialClick:ue,onFeedbackRewardClick:ge,customHTML:fe}=r||{},[ye,xe]=t(!1),he=o(null),be=o(null),we=o(null),[ve,Ce]=t(!1),[Ee,ke]=t("profile"),Te=e=>{i||ke(e)},Se="start"===p?{alignItems:"flex-start",textAlign:"left"}:"end"===p?{alignItems:"flex-end",textAlign:"right"}:{alignItems:"center",textAlign:"center"},Ne=null!=W&&""!==W&&!isNaN(Number(W)),Fe="static"===s?"":c??"",Be=se?.creditOnActivitiesProperties?.referralRewardConfig,$e=re?.currentTier,ze=Array.isArray($e?.catalogDealsProducts)?$e?.catalogDealsProducts??[]:[],Ie=ze?.length>0,Pe=$e?.rewardMultiplier,De=re?.nextTier,Ae=function(e,t,n){if(!e)return null;if("ltv"===e.rewardTierCriteria&&"order_count"===e.purchaseValueMethod){const n=t?.totalOrders??0,r=e.minimumOrderCountRequired;if(null==r)return null;const o=Number(n),a=Number(r);return Number.isNaN(o)||Number.isNaN(a)?null:`${Kg(Math.max(0,a-o))} orders`}if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod){const r=t?.currentLtv??0,o=e.minimumOrderValueRequired;if(null==o)return null;const a=Number(r),i=Number(o),l="INR"===n?"₹":n?`${n} `:"";return Number.isNaN(a)||Number.isNaN(i)?null:`${l}${Kg(Math.max(0,i-a))}`}if("loyalty_points"===e.rewardTierCriteria){const n=t?.currentPoints??0,r=e.minimumLoyaltyPointsRequired;if(null==r)return null;const o=Number(n),a=Number(r);return Number.isNaN(o)||Number.isNaN(a)?null:`${Kg(Math.max(0,a-o))} points`}return null}(De,re,q),_e=!!Be?.customizeReferralSectionContent,Le=Be?.shareMethod,Re=ce?.coinName??U??"coins",Oe=Bg(Be?.referrerReward,Re,q),Me=Bg(Be?.refereeReward,Re,q);async function Ve(e){xe(!0),setTimeout(()=>xe(!1),2e3);try{await navigator.clipboard.writeText(e)}catch{}}n(()=>{const e=he.current,t=be.current,n=we.current;if(!e||!t||!n)return;if(!a){return Ce("profile"!==Ee),e.classList.add("yt-rw-card--locked"),e.scrollTop=0,void(n.scrollTop=0)}const r=80;let o=!1,i=0,l="profile"!==Ee||ve;const s=t=>{o=t,e.classList.toggle("yt-rw-card--locked",t),t&&(e.scrollTop=0,l=!0,Ce(!0))},c=e=>{const t=Math.max(8,78),n=Math.max(0,t-12);if(!l&&e>=t)return l=!0,void Ce(!0);l&&e<=n&&(l=!1,Ce(!1))},d=(e,t,n)=>Math.min(n,Math.max(t,e)),p=t=>{if(!o){const o=i,a=d(o+t,0,r);i=a,e.scrollTop=a,c(a);const l=t-(a-o);return a>=79&&(s(!0),l>0&&(n.scrollTop+=l)),!0}if(o){if("profile"!==Ee)return!1;if(t<0&&n.scrollTop<=0){s(!1);const n=d(i+t,0,r);return i=n,e.scrollTop=n,c(n),!0}return!1}return!1},m=e=>{p(e.deltaY)&&e.preventDefault()};let u=0;const g=e=>{u=e.touches[0]?.clientY??0},f=e=>{const t=e.touches[0]?.clientY??0,n=u-t;u=t;p(n)&&e.preventDefault()},y=()=>{if(i=d(i,0,r),o)return i=r,e.scrollTop=0,l=!0,void Ce(!0);e.scrollTop=i,c(i)};e.addEventListener("wheel",m,{passive:!1}),e.addEventListener("touchstart",g,{passive:!0}),e.addEventListener("touchmove",f,{passive:!1}),window.addEventListener("resize",y);const x="profile"!==Ee;return Ce(x),e.scrollTop=0,n.scrollTop=0,x?(i=r,s(!0)):(l=!1,i=0,s(!1),c(0)),()=>{e.removeEventListener("wheel",m),e.removeEventListener("touchstart",g),e.removeEventListener("touchmove",f),window.removeEventListener("resize",y)}},[Ee,a]);const We=async e=>{const t=ne?.trim()??"";if(!t)return;const n=`Join using my referral link: ${t}`,r=encodeURIComponent(t),o=encodeURIComponent(n);if("native"===e){if(navigator.share)try{return void await navigator.share({url:t,text:n})}catch{}return void await Ve(t)}if("instagram"===e)return await Ve(t),void window.open("https://www.instagram.com/","_blank","noopener,noreferrer");const a={telegram:`https://t.me/share/url?url=${r}&text=${o}`,whatsapp:`https://wa.me/?text=${o}`,x:`https://twitter.com/intent/tweet?text=${o}`};window.open(a[e],"_blank","noopener,noreferrer")},je=!a,He=e.createElement("div",{onMouseDown:e=>e.stopPropagation(),ref:he,className:"yt-rw-card",style:{background:l,borderRadius:C&&!a?"24px":"0px",marginInline:C&&!a?"63px":"0px",height:C&&!a?"90%":"",overflow:C&&!a?"hidden":void 0}},e.createElement("div",{ref:be,className:"yt-rw-head "+(ve||"profile"!==Ee?"yt-rw-head--shrink":""),style:{color:d,backgroundColor:l,backgroundImage:Fe&&Fe.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${Fe})`:void 0,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",padding:"profile"!==Ee?"0px":"",maxHeight:"profile"!==Ee?"0px":"",minHeight:"profile"!==Ee?"0px":"",overflow:"profile"!==Ee?"hidden":"",alignItems:Se?.alignItems,textAlign:Se?.textAlign}},e.createElement("button",{className:"yt-rw-close","aria-label":"Close",onClick:ae,style:{color:d}},"×"),!Fe&&m&&e.createElement("div",{className:"yt-rw-headBg",style:u?{color:u}:void 0},R),L&&V&&V?.length>0&&e.createElement("div",{className:"yt-rw-logo",style:{alignSelf:Se?.alignItems??"",paddingRight:"20px"}},e.createElement("img",{src:V,alt:""})),"profile"==Ee&&e.createElement("div",{className:"yt-rw-title-wrap",style:{paddingBlock:"16px"}},e.createElement("div",{className:"yt-rw-eyebrow",style:{paddingRight:"20px"}},M),e.createElement("div",{className:"yt-rw-title",style:{paddingRight:"20px"}},R))),"profile"!=Ee&&e.createElement("div",{className:"yt-rw-backNavigation",style:{backgroundColor:l,backgroundImage:Fe&&Fe.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${Fe})`:void 0,backgroundPosition:"top center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}},e.createElement("div",{style:{borderRadius:"0 0 12px 12px",display:"flex",justifyContent:"space-between",alignItems:"center",background:"transparent",padding:"10px"}},e.createElement("button",{className:"yt-rw-back","aria-label":"Back",onClick:()=>Te("profile"),style:{color:d}},e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M10.5638 5.97113C10.5525 5.95976 10.2057 5.87282 9.79313 5.77801C9.38055 5.68319 9.03853 5.62011 9.03303 5.63772C9.02758 5.65538 8.98489 5.94173 8.93822 6.27408C8.84445 6.94149 8.61742 7.72074 8.37482 8.20809C7.61866 9.72694 6.26195 10.7326 4.61646 10.994L4.19743 11.0606L4.19743 11.7315L4.19743 12.4025L4.57722 12.4663C7.06542 12.8837 8.68761 14.7442 8.99107 17.5283C9.01088 17.7101 9.03455 17.8588 9.04367 17.8588C9.12759 17.8588 10.5181 17.5237 10.5444 17.4972C10.5634 17.478 10.5492 17.3076 10.5129 17.1185C10.1105 15.0251 8.95844 13.3217 7.46339 12.6094L7.10477 12.4386L14.4794 12.4252L19.1427 12.4167L19.1427 11.0588L14.4674 11.0503L7.11016 11.0368L7.56292 10.8074C8.73748 10.2124 9.66741 9.04509 10.215 7.47828C10.3711 7.03192 10.6066 6.01428 10.5638 5.97113Z",fill:"white"}))),e.createElement("div",{className:"yt-rw-pageTitle"},"wtr"==Ee?"Ways to Redeem":"wte"==Ee?"Ways to Earn":"recentTransactions"==Ee?"Recent Transactions":"VIP Tiers")," ",e.createElement("div",{style:{height:"24px",width:"36px",display:"block"}}))),e.createElement("div",{ref:we,className:"yt-rw-body yt-rw-body--"+("profile"===Ee?"back":"forward"),style:{backgroundColor:h,color:b,borderRadius:"profile"!=Ee?"0px":""}},"profile"==Ee?e.createElement("div",{className:"yt-rw-profile-wrap",style:{display:"flex",flexDirection:"column",minHeight:"100%"}},e.createElement("div",{className:"yt-rw-content"}," ",I&&e.createElement("div",{className:"yt-rw-hero"},e.createElement("div",{className:"yt-rw-starLogo"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"178",height:"85",viewBox:"0 0 178 85",fill:"none"},e.createElement("path",{opacity:"0.7",d:"M101.328 -92.3757C101.328 -92.3757 101.328 -27.257 119.135 -9.44971C136.942 8.35759 202.061 8.35759 202.061 8.35759C202.061 8.35759 138.561 6.73883 119.135 26.1649C99.7091 45.591 101.328 109.091 101.328 109.091C101.328 109.091 101.328 43.9722 83.5206 26.1649C65.7133 8.35759 0.594557 8.35759 0.594557 8.35759C0.594557 8.35759 65.7133 8.35759 83.5206 -9.44971C101.328 -27.257 101.328 -92.3757 101.328 -92.3757Z",fill:"#7A7A7A","fill-opacity":"0.29"}))),e.createElement("div",{className:"yt-rw-hero-left"},e.createElement("div",{className:"yt-rw-amount"},Ne?e.createElement(ef,{value:Number(W)}):" "),e.createElement("div",{className:"yt-rw-labels"},e.createElement("div",{className:"yt-rw-kicker",style:{color:b}},"BALANCE"),e.createElement("div",{className:"yt-rw-unit",style:{color:w}},U??"COINS"))),e.createElement("div",{className:"yt-rw-hero-right"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"43",height:"43",viewBox:"0 0 33 33",fill:"none"},e.createElement("path",{opacity:"0.7",d:"M16.9106 0.110596C16.9106 0.110596 16.9106 10.5115 19.7549 13.3557C22.5991 16.1999 32.9999 16.1999 32.9999 16.1999C32.9999 16.1999 22.8576 15.9413 19.7549 19.0441C16.6521 22.1469 16.9106 32.2892 16.9106 32.2892C16.9106 32.2892 16.9106 21.8883 14.0664 19.0441C11.2222 16.1999 0.821358 16.1999 0.821358 16.1999C0.821358 16.1999 11.2222 16.1999 14.0664 13.3557C16.9106 10.5115 16.9106 0.110596 16.9106 0.110596Z",fill:"#161616"})))),Ne?e.createElement("div",{className:"yt-rw-note",style:{color:b}},"Your point balance is"," ",e.createElement("b",{style:{color:b}},Jg(Number(W)/Number(j))," in ",q)," ","value.",z?e.createElement(e.Fragment,null," ","Check how to avail all the benefits in"," ",e.createElement("span",{style:{cursor:"pointer",color:b},onClick:()=>Te("wtr"),className:"yt-rw-link"},"redeem options")):null):e.createElement("div",{className:"yt-rw-note yt-rw-skel",style:{borderRadius:"0px",height:"25px"}}),$&&e.createElement("div",{onClick:()=>Te("wte"),className:"yt-rw-cta",style:{borderColor:T,backgroundColor:E,color:k,borderRadius:B}},e.createElement("div",{className:"yt-rw-cta-left",style:{color:k}},F&&e.createElement("span",{className:"yt-rw-coin"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"14",viewBox:"0 0 20 14",fill:"none"},e.createElement("path",{d:"M10.0613 1.18677C5.48004 1.18677 0.843506 2.61183 0.843506 5.33476V9.02187C0.843506 11.7448 5.48004 13.1699 10.0613 13.1699C14.6425 13.1699 19.279 11.7448 19.279 9.02187V5.33476C19.279 2.61183 14.6425 1.18677 10.0613 1.18677ZM2.68706 9.02187V7.9185C3.27086 8.24912 3.88905 8.51494 4.53061 8.71123V10.4451C3.32124 9.9713 2.68706 9.40717 2.68706 9.02187ZM13.7484 9.15829V10.9751C12.9492 11.1401 12.0274 11.2609 10.983 11.3051V9.46156C11.9107 9.42462 12.8347 9.32329 13.7484 9.15829ZM9.13949 11.306C8.21035 11.2704 7.28559 11.1601 6.37416 10.976V9.15921C7.25815 9.3196 8.19191 9.42376 9.13949 9.4634V11.306ZM15.5919 10.4451V8.71123C16.2336 8.51535 16.8519 8.24951 17.4355 7.9185V9.02187C17.4355 9.40717 16.8022 9.9713 15.5919 10.4451ZM10.0613 7.6392C5.28923 7.6392 2.68706 6.11735 2.68706 5.33476C2.68706 4.55217 5.28923 3.03032 10.0613 3.03032C14.8333 3.03032 17.4355 4.55217 17.4355 5.33476C17.4355 6.11735 14.8333 7.6392 10.0613 7.6392Z",fill:""!=k?k:"#21272A"}))),"Get More ",U??"Coins"),e.createElement("div",{className:"yt-rw-cta-right"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M13.4361 17.9852C13.4474 17.9965 13.7942 18.0835 14.2067 18.1783C14.6193 18.2731 14.9613 18.3362 14.9668 18.3186C14.9723 18.3009 15.015 18.0146 15.0617 17.6822C15.1554 17.0148 15.3825 16.2356 15.6251 15.7482C16.3812 14.2294 17.7379 13.2237 19.3834 12.9623L19.8024 12.8957L19.8024 12.2248L19.8024 11.5538L19.4227 11.49C16.9345 11.0726 15.3123 9.21214 15.0088 6.42796C14.989 6.24616 14.9653 6.09746 14.9562 6.09746C14.8723 6.09746 13.4818 6.43256 13.4555 6.45911C13.4365 6.4783 13.4506 6.64874 13.487 6.83779C13.8894 8.93118 15.0414 10.6346 16.5365 11.3469L16.8951 11.5177L9.52044 11.5311L4.85718 11.5396L4.85718 12.8975L9.53244 12.906L16.8897 12.9195L16.437 13.1488C15.2624 13.7439 14.3325 14.9112 13.7848 16.478C13.6288 16.9244 13.3933 17.942 13.4361 17.9852Z",fill:""!=k?k:"#21272A"})))),I&&e.createElement("div",{className:"yt-rw-rate"},e.createElement("div",{className:"yt-rw-rate__icon"},H?.trim()?e.createElement("img",{src:H,alt:"",style:{width:37,height:40,objectFit:"contain",display:"block"}}):e.createElement("svg",{width:"37",height:"40",viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.createElement("g",{style:{mixBlendMode:"multiply"}},e.createElement("rect",{x:"0.10376",y:"0.659668",width:"36.7922",height:"38.6318",fill:"url(#pattern0_7962_16236)"})),e.createElement("defs",null,e.createElement("pattern",{id:"pattern0_7962_16236",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},e.createElement("use",{xlinkHref:"#image0_7962_16236",transform:"matrix(0.000256348 0 0 0.000244141 -0.025 0)"})),e.createElement("image",{id:"image0_7962_16236",width:"4096",height:"4096",preserveAspectRatio:"none",xlinkHref:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png"})))),e.createElement("p",{className:"yt-rw-rate__title"},`${Jg(j)} ${U} = 1 ${q}`),e.createElement("p",{className:"yt-rw-rate__sub"},Number(Y??0)>0?`Min. order value ${"INR"===q?"₹":q?`${q} `:""}${Y}`:"No min. order value required",Number(Q)>0?` • redeem upto ${Q} ${U}`:"")),z&&e.createElement(rg,{setScreenType:Te,themePrimaryColor:g,themeContrastColor:f,themeSecondaryColor:y,themeSecondaryContrastColor:x,showCTA:!0,couponCode:K,couponHeading:X,copyFunction:Ve,borderRadius:B}),P&&D&&e.createElement("div",{className:"yt-rw-refer"},e.createElement("div",{className:"yt-rw-refer_top",style:{paddingBottom:"16px"}},e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"4px"}},e.createElement("p",{className:"yt-rw-refer__title"},"Refer and Earn"),e.createElement("p",{className:"yt-rw-refer__desc"},"Unlock referrals with your first order")),e.createElement("div",{className:"yt-rw-refer-locked",style:{borderRadius:B}},e.createElement("span",{className:"yt-rw-refer-locked__icon","aria-hidden":"true"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:""!==w?w:"#1A1A1A",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"},e.createElement("rect",{x:"4",y:"10.5",width:"16",height:"10",rx:"2.2"}),e.createElement("path",{d:"M8 10.5V7.5a4 4 0 0 1 8 0v3"}),e.createElement("circle",{cx:"12",cy:"15.5",r:"1.4"}))),e.createElement("div",{className:"yt-rw-refer-locked__text"},e.createElement("p",{className:"yt-rw-refer-locked__title",style:{color:b}},"Referrals unlock after your first order"),e.createElement("p",{className:"yt-rw-refer-locked__sub",style:{color:b}},"Once your first order is delivered you can share your referral link and earn ",U??"coins"))))),P&&!D&&e.createElement("div",{className:"yt-rw-refer"},e.createElement("div",{className:"yt-rw-refer_top"},e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"4px"}},e.createElement("p",{className:"yt-rw-refer__title"},"Refer and Earn"),e.createElement("p",{className:"yt-rw-refer__desc"},_e?e.createElement(zg,{title:Be?.offerTitle,referrerReward:Oe,refereeReward:Me}):e.createElement(e.Fragment,null,"Invite a friend to make an order • Earn ",U??"coins"," on success"))),e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"11px"}},e.createElement("p",{className:"yt-rw-ref__linkcta",style:{color:b}},"referral_code"===Le?"Share your referral code":"Share your referral link"),e.createElement("div",{style:{display:"flex",gap:"7px",justifyContent:"referral_code"===Le?"center":void 0,alignItems:"center"}},"referral_code"===Le?e.createElement("div",{className:"yt-rw-codebox",style:{color:w,borderRadius:B}},ne):e.createElement("div",{className:"yt-rw-inputrow",style:{borderRadius:B}},e.createElement("span",{className:"yt-rw-inputrow__icon","aria-hidden":"true"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"19",viewBox:"0 0 18 19",stroke:""!==w?w:"#1A1A1A",fill:"none"},e.createElement("g",{clipPath:"url(#clip0_7542_11756)"},e.createElement("path",{d:"M7.48145 11.1952C7.72146 11.4402 8.00795 11.6348 8.32413 11.7676C8.64031 11.9005 8.97981 11.9689 9.32277 11.9689C9.66573 11.9689 10.0052 11.9005 10.3214 11.7676C10.6376 11.6348 10.9241 11.4402 11.1641 11.1952L14.1102 8.24906C14.5986 7.76071 14.8729 7.09837 14.8729 6.40774C14.8729 5.71711 14.5986 5.05476 14.1102 4.56641C13.6219 4.07806 12.9595 3.80371 12.2689 3.80371C11.5783 3.80371 10.9159 4.07806 10.4276 4.56641L10.0593 4.93468",stroke:""!==w?w:"#1A1A1A",strokeWidth:"1.47306",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M10.4276 8.24932C10.1876 8.00435 9.9011 7.80974 9.58492 7.67688C9.26875 7.54402 8.92924 7.47559 8.58628 7.47559C8.24333 7.47559 7.90382 7.54402 7.58764 7.67688C7.27146 7.80974 6.98498 8.00435 6.74496 8.24932L3.79883 11.1954C3.31048 11.6838 3.03613 12.3461 3.03613 13.0368C3.03613 13.7274 3.31048 14.3897 3.79883 14.8781C4.28718 15.3664 4.94953 15.6408 5.64016 15.6408C6.33079 15.6408 6.99314 15.3664 7.48149 14.8781L7.84975 14.5098",stroke:""!==w?w:"#1A1A1A",strokeWidth:"1.47306",strokeLinecap:"round",strokeLinejoin:"round"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_7542_11756"},e.createElement("rect",{width:"17.6767",height:"17.6767",fill:"white",transform:"translate(0.116211 0.883789)"}))))),e.createElement("input",{style:{color:`${w}`},className:"yt-rw-input",value:ne,readOnly:!0})),e.createElement("button",{className:"yt-rw-copy",type:"button",style:{cursor:"pointer",borderRadius:B},onClick:()=>Ve(ne)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"},e.createElement("path",{d:"M16.1252 17.3442H8.01348C7.7392 17.3442 7.51685 17.1219 7.51685 16.8476V8.73589C7.51685 8.46161 7.7392 8.23926 8.01348 8.23926H16.1252C16.3995 8.23926 16.6218 8.46161 16.6218 8.73589V16.8476C16.6218 17.1219 16.3995 17.3442 16.1252 17.3442Z",stroke:"#5F579B","stroke-width":"1.24159","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M12.4831 8.23921V4.59722C12.4831 4.32294 12.2608 4.10059 11.9865 4.10059H3.87481C3.60053 4.10059 3.37817 4.32294 3.37817 4.59722V12.7089C3.37817 12.9832 3.60053 13.2056 3.87481 13.2056H7.5168",stroke:"#5F579B","stroke-width":"1.24159","stroke-linecap":"round","stroke-linejoin":"round"}))))),e.createElement("div",{className:"yt-rw-share"},e.createElement("button",{className:"yt-rw-share__btn",title:"Telegram","aria-label":"Telegram",type:"button",onClick:()=>We("telegram")},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.createElement("g",{"clip-path":"url(#clip0_7542_11762)"},e.createElement("path",{d:"M10.2924 19.1229C15.4305 19.1229 19.5958 14.9576 19.5958 9.8195C19.5958 4.68138 15.4305 0.516113 10.2924 0.516113C5.15428 0.516113 0.989014 4.68138 0.989014 9.8195C0.989014 14.9576 5.15428 19.1229 10.2924 19.1229Z",fill:"url(#paint0_linear_7542_11762)"}),e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.20018 9.72124C7.9123 8.53961 9.72082 7.76061 10.6257 7.38423C13.2094 6.3096 13.7462 6.12293 14.0961 6.11676C14.1731 6.11541 14.3452 6.13448 14.4566 6.22493C14.5508 6.3013 14.5767 6.40447 14.5891 6.47688C14.6014 6.54928 14.6169 6.71423 14.6046 6.84312C14.4646 8.3142 13.8588 11.8841 13.5506 13.5318C13.4202 14.229 13.1634 14.4627 12.9148 14.4856C12.3745 14.5353 11.9643 14.1285 11.441 13.7855C10.6222 13.2488 10.1596 12.9147 9.36478 12.3909C8.44624 11.7856 9.04169 11.4529 9.56516 10.9092C9.70216 10.7669 12.0826 8.60175 12.1287 8.40534C12.1344 8.38077 12.1398 8.28921 12.0854 8.24085C12.031 8.1925 11.9507 8.20904 11.8927 8.22219C11.8106 8.24083 10.5025 9.10541 7.96852 10.816C7.59722 11.0709 7.26092 11.1951 6.9596 11.1886C6.62742 11.1814 5.98844 11.0008 5.51343 10.8464C4.9308 10.657 4.46774 10.5569 4.50806 10.2352C4.52907 10.0677 4.75977 9.89637 5.20018 9.72124Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_7542_11762",x1:"10.2924",y1:"0.516113",x2:"10.2924",y2:"18.9849",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{"stop-color":"#2AABEE"}),e.createElement("stop",{offset:"1","stop-color":"#229ED9"})),e.createElement("clipPath",{id:"clip0_7542_11762"},e.createElement("rect",{width:"18.6068",height:"18.6068",fill:"white",transform:"translate(0.989014 0.516113)"}))))),e.createElement("button",{className:"yt-rw-share__btn",title:"WhatsApp","aria-label":"WhatsApp",type:"button",onClick:()=>We("whatsapp")},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.createElement("path",{d:"M0.59375 19.1229L1.90165 14.3448C1.09458 12.9462 0.670503 11.3608 0.671278 9.735C0.673604 4.65225 4.80974 0.516113 9.89171 0.516113C12.3579 0.516889 14.6729 1.47746 16.4142 3.2203C18.1547 4.96313 19.1129 7.27968 19.1122 9.74353C19.1098 14.8271 14.9737 18.9632 9.89171 18.9632C8.3489 18.9624 6.82857 18.5755 5.48191 17.8406L0.59375 19.1229ZM5.70829 16.1714C7.00766 16.9428 8.24811 17.4049 9.88861 17.4056C14.1124 17.4056 17.5531 13.968 17.5554 9.74198C17.5569 5.50738 14.1325 2.07443 9.89481 2.07288C5.66797 2.07288 2.2296 5.51048 2.22805 9.73577C2.22727 11.4608 2.73275 12.7524 3.58169 14.1037L2.80718 16.9319L5.70829 16.1714ZM14.5364 11.9353C14.4791 11.8391 14.3256 11.7817 14.0945 11.6662C13.8643 11.5507 12.7316 10.9933 12.5199 10.9165C12.309 10.8398 12.1555 10.801 12.0013 11.032C11.8478 11.2623 11.4058 11.7817 11.2717 11.9353C11.1376 12.0888 11.0027 12.1081 10.7724 11.9926C10.5422 11.8771 9.79945 11.6344 8.91951 10.8491C8.23493 10.2382 7.77209 9.48381 7.63797 9.25277C7.50384 9.02251 7.62401 8.89769 7.73875 8.78295C7.84264 8.67984 7.96901 8.51393 8.08453 8.37903C8.2016 8.24568 8.23959 8.14955 8.31711 7.99526C8.39387 7.84176 8.35588 7.70686 8.29773 7.59134C8.23959 7.4766 7.77907 6.34236 7.58757 5.88107C7.39996 5.43218 7.21001 5.49265 7.06891 5.48567L6.627 5.47792C6.47349 5.47792 6.22385 5.53529 6.01297 5.76633C5.8021 5.99736 5.20668 6.55401 5.20668 7.68825C5.20668 8.82249 6.03236 9.91796 6.1471 10.0715C6.26262 10.225 7.77132 12.5524 10.0824 13.5502C10.6321 13.7874 11.0616 13.9293 11.3958 14.0355C11.9478 14.2107 12.4501 14.1859 12.8471 14.127C13.2898 14.0611 14.21 13.5695 14.4023 13.0315C14.5946 12.4927 14.5946 12.0314 14.5364 11.9353Z",fill:"#25D366"}))),e.createElement("button",{className:"yt-rw-share__btn",title:"Instagram","aria-label":"Instagram",type:"button",onClick:()=>We("instagram")},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"20",viewBox:"0 0 19 20",fill:"none"},e.createElement("g",{"clip-path":"url(#clip0_7542_11766)"},e.createElement("path",{d:"M9.50188 2.19145C11.9876 2.19145 12.282 2.20235 13.2596 2.24596C14.1681 2.28594 14.6587 2.43857 14.9858 2.56577C15.4183 2.73294 15.7308 2.93645 16.0542 3.25989C16.3813 3.58696 16.5812 3.89586 16.7483 4.32832C16.8755 4.6554 17.0282 5.14964 17.0682 6.05454C17.1118 7.03576 17.1227 7.33012 17.1227 9.81224C17.1227 12.298 17.1118 12.5924 17.0682 13.5699C17.0282 14.4785 16.8755 14.9691 16.7483 15.2962C16.5812 15.7286 16.3777 16.0411 16.0542 16.3646C15.7272 16.6917 15.4183 16.8915 14.9858 17.0587C14.6587 17.1859 14.1645 17.3385 13.2596 17.3785C12.2784 17.4221 11.984 17.433 9.50188 17.433C7.01613 17.433 6.72176 17.4221 5.74418 17.3785C4.83565 17.3385 4.34504 17.1859 4.01796 17.0587C3.5855 16.8915 3.27297 16.688 2.94953 16.3646C2.62246 16.0375 2.42258 15.7286 2.25541 15.2962C2.12821 14.9691 1.97558 14.4748 1.9356 13.5699C1.89199 12.5887 1.88109 12.2944 1.88109 9.81224C1.88109 7.32649 1.89199 7.03212 1.9356 6.05454C1.97558 5.146 2.12821 4.6554 2.25541 4.32832C2.42258 3.89586 2.62609 3.58333 2.94953 3.25989C3.2766 2.93281 3.5855 2.73294 4.01796 2.56577C4.34504 2.43857 4.83928 2.28594 5.74418 2.24596C6.72176 2.20235 7.01613 2.19145 9.50188 2.19145ZM9.50188 0.516113C6.97615 0.516113 6.65998 0.527016 5.66786 0.570625C4.67938 0.614235 3.99979 0.774137 3.41106 1.00309C2.79689 1.24294 2.27721 1.55911 1.76117 2.07879C1.24148 2.59484 0.925314 3.11452 0.685461 3.72506C0.45651 4.31742 0.296608 4.99337 0.252998 5.98186C0.209389 6.97761 0.198486 7.29378 0.198486 9.8195C0.198486 12.3452 0.209389 12.6614 0.252998 13.6535C0.296608 14.642 0.45651 15.3216 0.685461 15.9103C0.925314 16.5245 1.24148 17.0442 1.76117 17.5602C2.27721 18.0763 2.79689 18.3961 3.40743 18.6323C3.99979 18.8612 4.67574 19.0211 5.66423 19.0647C6.65635 19.1084 6.97252 19.1193 9.49824 19.1193C12.024 19.1193 12.3401 19.1084 13.3323 19.0647C14.3207 19.0211 15.0003 18.8612 15.5891 18.6323C16.1996 18.3961 16.7193 18.0763 17.2353 17.5602C17.7514 17.0442 18.0712 16.5245 18.3074 15.914C18.5363 15.3216 18.6962 14.6456 18.7399 13.6572C18.7835 12.665 18.7944 12.3489 18.7944 9.82314C18.7944 7.29741 18.7835 6.98124 18.7399 5.98912C18.6962 5.00064 18.5363 4.32105 18.3074 3.73232C18.0784 3.11452 17.7623 2.59484 17.2426 2.07879C16.7265 1.56274 16.2069 1.24294 15.5963 1.00672C15.004 0.777771 14.328 0.617869 13.3395 0.574259C12.3438 0.527016 12.0276 0.516113 9.50188 0.516113Z",fill:"#C4296A"}),e.createElement("path",{d:"M9.50179 5.04053C6.86341 5.04053 4.7229 7.18103 4.7229 9.81942C4.7229 12.4578 6.86341 14.5983 9.50179 14.5983C12.1402 14.5983 14.2807 12.4578 14.2807 9.81942C14.2807 7.18103 12.1402 5.04053 9.50179 5.04053ZM9.50179 12.9193C7.79011 12.9193 6.40187 11.5311 6.40187 9.81942C6.40187 8.10774 7.79011 6.7195 9.50179 6.7195C11.2135 6.7195 12.6017 8.10774 12.6017 9.81942C12.6017 11.5311 11.2135 12.9193 9.50179 12.9193Z",fill:"#C4296A"}),e.createElement("path",{d:"M15.5854 4.85152C15.5854 5.46933 15.0839 5.9672 14.4697 5.9672C13.8519 5.9672 13.354 5.46569 13.354 4.85152C13.354 4.23372 13.8555 3.73584 14.4697 3.73584C15.0839 3.73584 15.5854 4.23735 15.5854 4.85152Z",fill:"#C4296A"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_7542_11766"},e.createElement("rect",{width:"18.6068",height:"18.6068",fill:"white",transform:"translate(0.198486 0.516113)"}))))),e.createElement("button",{className:"yt-rw-share__btn",title:"X","aria-label":"X",type:"button",onClick:()=>We("x")},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.createElement("path",{d:"M15.0111 1.99219H17.6265L11.9127 8.52277L18.6346 17.4094H13.3714L9.24904 12.0197L4.53216 17.4094H1.91518L8.02673 10.4242L1.57837 1.99219H6.9752L10.7014 6.91859L15.0111 1.99219ZM14.0932 15.844H15.5424L6.18773 3.47541H4.63257L14.0932 15.844Z",fill:"black"}))),e.createElement("button",{className:"yt-rw-share__btn",title:"Share","aria-label":"Share",type:"button",onClick:()=>We("native")},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e.createElement("path",{d:"M3.5083 9.81787V16.0189C3.5083 16.43 3.67163 16.8243 3.96236 17.1151C4.25309 17.4058 4.6474 17.5691 5.05855 17.5691H14.3601C14.7712 17.5691 15.1655 17.4058 15.4562 17.1151C15.747 16.8243 15.9103 16.43 15.9103 16.0189V9.81787",stroke:"#21272A","stroke-width":"1.51429","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M12.8096 5.16691L9.70914 2.06641L6.60864 5.16691",stroke:"#21272A","stroke-width":"1.51429","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M9.70923 2.06641V12.143",stroke:"#21272A","stroke-width":"1.51429","stroke-linecap":"round","stroke-linejoin":"round"}))))),e.createElement("div",{className:"yt-rw-refer_steps"},e.createElement("div",{className:"yt-refer-step-1"},e.createElement("svg",{width:"57",height:"67",viewBox:"0 0 57 67",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.createElement("rect",{x:"0.314209",y:"-2.12354",width:"84.5982",height:"84.5982",fill:"url(#pattern0_7807_15663)"}),e.createElement("defs",null,e.createElement("pattern",{id:"pattern0_7807_15663",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},e.createElement("use",{xlinkHref:"#image0_7807_15663",transform:"scale(0.001)"})),e.createElement("image",{id:"image0_7807_15663",width:"1000",height:"1000",preserveAspectRatio:"none",xlinkHref:"https://r2.yourtoken.io/loyalty-widget-v2/referral-chain.png"}))),e.createElement("div",{className:"yt-refer-step-1_header"},e.createElement("p",{className:"yt-subtext"},"Step 1"),e.createElement("p",{className:"yt-mainText"},"Refer to your friend"))),e.createElement("div",{className:"yt-refer-step-1"},e.createElement("svg",{style:{maxWidth:"69.414px",maxHeight:"69.414px",flexShrink:"0"},width:"67",height:"52",viewBox:"0 0 67 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.createElement("rect",{x:"19.7422",y:"0.229492",width:"69.4139",height:"69.4139",fill:"url(#pattern0_7532_9082)"}),e.createElement("rect",{width:"66.1601",height:"66.1601",transform:"matrix(-1 0 0 1 66.3796 12.1602)",fill:"url(#pattern1_7532_9082)"}),e.createElement("defs",null,e.createElement("pattern",{id:"pattern0_7532_9082",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},e.createElement("use",{xlinkHref:"#image0_7532_9082",transform:"scale(0.001)"})),e.createElement("pattern",{id:"pattern1_7532_9082",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},e.createElement("use",{xlinkHref:"#image1_7532_9082",transform:"scale(0.001)"})),e.createElement("image",{id:"image0_7532_9082",width:"1000",height:"1000",preserveAspectRatio:"none",xlinkHref:"https://r2.yourtoken.io/loyalty-widget-v2/referral-boy.png"}),e.createElement("image",{id:"image1_7532_9082",width:"1000",height:"1000",preserveAspectRatio:"none",xlinkHref:"https://r2.yourtoken.io/loyalty-widget-v2/referral-girl.png"}))),e.createElement("div",{className:"yt-refer-step-1_header"},e.createElement("p",{className:"yt-subtext"},"Step 2"),e.createElement("p",{className:"yt-mainText"},"signup"==se?.creditOnActivitiesProperties?.referralRewardConfig?.referrerReward?.completionCriteria?"They sign up on store":"They place an order"," "))),e.createElement("div",{className:"yt-refer-step-1"},e.createElement("svg",{style:{maxWidth:"59.653px",maxHeight:"63.991px"},width:"49",height:"49",viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.createElement("rect",{x:"0.239502",y:"0.483398",width:"59.6526",height:"63.9909",fill:"url(#pattern0_7807_15677)"}),e.createElement("defs",null,e.createElement("pattern",{id:"pattern0_7807_15677",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},e.createElement("use",{xlinkHref:"#image0_7807_15677",transform:"matrix(0.00107273 0 0 0.001 -0.0363636 0)"})),e.createElement("image",{id:"image0_7807_15677",width:"1000",height:"1000",preserveAspectRatio:"none",xlinkHref:"https://r2.yourtoken.io/loyalty-widget-v2/referral-reward.png"}))),e.createElement("div",{className:"yt-refer-step-1_header"},e.createElement("p",{className:"yt-subtext"},"Step 3"),e.createElement("p",{className:"yt-mainText"},"You get the rewards"))))),A&&e.createElement("div",{className:"yt-rw-cta",style:{borderColor:T,backgroundColor:S,color:N,borderRadius:B},onClick:()=>Te("recentTransactions")},e.createElement("div",{className:"yt-rw-cta-left",style:{color:N}},F&&e.createElement("span",{className:"yt-rw-coin"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"20",viewBox:"0 0 19 20",fill:"none"},e.createElement("path",{d:"M15.2227 4.6122C16.6309 6.03777 17.4185 7.96217 17.4139 9.96596C17.4139 14.1477 14.0643 17.5374 9.93178 17.5374V16.0231C13.2375 16.0231 15.9178 13.311 15.9178 9.96596C15.9216 8.36273 15.2912 6.82305 14.1642 5.6828C13.6119 5.12081 12.9532 4.67449 12.2265 4.3699C11.4998 4.06531 10.7197 3.90857 9.93178 3.90882C7.24846 3.90882 4.97704 5.69567 4.21762 8.1579L5.24128 7.45906C5.32266 7.4035 5.41427 7.36469 5.5108 7.34489C5.60732 7.32509 5.70681 7.32469 5.80349 7.34371C5.90017 7.36274 5.9921 7.40081 6.07392 7.45571C6.15574 7.51061 6.22582 7.58124 6.28008 7.66349C6.39113 7.83011 6.43218 8.03374 6.39436 8.23037C6.35653 8.42701 6.24287 8.60087 6.07792 8.7144L3.59676 10.4081C3.51539 10.4637 3.42377 10.5025 3.32725 10.5223C3.23073 10.5421 3.13123 10.5425 3.03455 10.5235C2.93787 10.5045 2.84594 10.4664 2.76412 10.4115C2.6823 10.3566 2.61222 10.286 2.55796 10.2037L0.885436 7.69302C0.774143 7.52633 0.732957 7.32253 0.770791 7.12571C0.808624 6.92889 0.922434 6.75489 1.08759 6.64135C1.16897 6.58579 1.26059 6.54698 1.35711 6.52718C1.45363 6.50737 1.55313 6.50697 1.64981 6.526C1.74649 6.54502 1.83841 6.5831 1.92023 6.63799C2.00206 6.69289 2.07214 6.76353 2.12639 6.84577L2.76164 7.79902C3.68156 4.67353 6.54356 2.39453 9.93178 2.39453C11.998 2.39453 13.8689 3.24253 15.2227 4.6122Z",fill:"currentColor"}),e.createElement("path",{d:"M13.2584 10.4999H10.2654V6.71417C10.2654 6.29623 9.93076 5.95703 9.51736 5.95703C9.10396 5.95703 8.7693 6.29623 8.7693 6.71417V11.257C8.7687 11.3559 8.78758 11.4538 8.82485 11.5454C8.86212 11.6369 8.91705 11.7202 8.98652 11.7905C9.05598 11.8608 9.13861 11.9168 9.22969 11.9552C9.32078 11.9935 9.41852 12.0136 9.51736 12.0142H13.2584C13.6718 12.0142 14.0065 11.675 14.0065 11.257C14.0065 10.8391 13.6718 10.4999 13.2584 10.4999Z",fill:"currentColor"})))," ","Recent Transactions"),e.createElement("div",{className:"yt-rw-cta-right",style:{color:N}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M13.4361 17.9852C13.4474 17.9965 13.7942 18.0835 14.2067 18.1783C14.6193 18.2731 14.9613 18.3362 14.9668 18.3186C14.9723 18.3009 15.015 18.0146 15.0617 17.6822C15.1554 17.0148 15.3825 16.2356 15.6251 15.7482C16.3812 14.2294 17.7379 13.2237 19.3834 12.9623L19.8024 12.8957L19.8024 12.2248L19.8024 11.5538L19.4227 11.49C16.9345 11.0726 15.3123 9.21214 15.0088 6.42796C14.989 6.24616 14.9653 6.09746 14.9562 6.09746C14.8723 6.09746 13.4818 6.43256 13.4555 6.45911C13.4365 6.4783 13.4506 6.64874 13.487 6.83779C13.8894 8.93118 15.0414 10.6346 16.5365 11.3469L16.8951 11.5177L9.52044 11.5311L4.85718 11.5396L4.85718 12.8975L9.53244 12.906L16.8897 12.9195L16.437 13.1488C15.2624 13.7439 14.3325 14.9112 13.7848 16.478C13.6288 16.9244 13.3933 17.942 13.4361 17.9852Z",fill:"currentColor"})))),_&&e.createElement("div",null,e.createElement("div",{className:"yt-rw-tiers"},e.createElement("div",{className:"yt-rw-tiers_top"},e.createElement("p",{className:"yt-rw-tiers_title",style:{color:b}},"Exclusive member discounts"),$e&&e.createElement("p",{className:"yt-rw-tiers_desc",style:{color:b,fontSize:"15px"}},$e.name)),e.createElement("div",{className:"yt-rw-tiers__gems"},e.createElement(Xg,{className:"yt-gem yt-gem--violet",gradientPrefix:"vip-violet",overlayColor:"#8E74F4"}),e.createElement(Xg,{className:"yt-gem yt-gem--gold",gradientPrefix:"vip-gold",overlayColor:"#F3BE00"}),e.createElement(Xg,{className:"yt-gem yt-gem--rose",gradientPrefix:"vip-rose",overlayColor:"#86F300"})),e.createElement("div",{className:"yt-rw-tiers_bottom"},e.createElement("div",{className:"yt-rw-tiers-bottomHeader"},e.createElement("p",{className:"yt-rw-tiers-bottomHeader__title",style:{color:b}},e.createElement("b",null,Pe??De?.rewardMultiplier??2,"x")," Rewards"),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"19",viewBox:"0 0 20 19",fill:"none"},e.createElement("path",{d:"M10 0.205078C10 0.205078 10 6.19098 11.6369 7.82788C13.2738 9.46478 19.2597 9.46478 19.2597 9.46478C19.2597 9.46478 13.4226 9.31598 11.6369 11.1017C9.8512 12.8874 10 18.7245 10 18.7245C10 18.7245 10 12.7386 8.3631 11.1017C6.7262 9.46478 0.740296 9.46478 0.740296 9.46478C0.740296 9.46478 6.7262 9.46478 8.3631 7.82788C10 6.19098 10 0.205078 10 0.205078Z",fill:"black"})),e.createElement("p",{className:"yt-rw-tiers-bottomHeader__title",style:{color:b}}," ",Ie||(De?.catalogDealsProducts?.length??0)>0?"special deals":"special discounts")),e.createElement("button",{onClick:()=>Te("vip"),style:{"--hover-bg":y,"--hover-text":x}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.createElement("path",{opacity:"0.3",d:"M7.85791 0.124023C7.85791 0.124023 7.85791 5.176 9.23942 6.55751C10.6209 7.93902 15.6729 7.93902 15.6729 7.93902C15.6729 7.93902 10.7465 7.81343 9.23942 9.32053C7.73233 10.8276 7.85791 15.754 7.85791 15.754C7.85791 15.754 7.85791 10.702 6.4764 9.32053C5.09489 7.93902 0.0429162 7.93902 0.0429162 7.93902C0.0429162 7.93902 5.09489 7.93902 6.4764 6.55751C7.85791 5.176 7.85791 0.124023 7.85791 0.124023Z",fill:"#161616"})),e.createElement("p",null,"Explore Tiers"),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.createElement("path",{opacity:"0.3",d:"M7.85791 0.124023C7.85791 0.124023 7.85791 5.176 9.23942 6.55751C10.6209 7.93902 15.6729 7.93902 15.6729 7.93902C15.6729 7.93902 10.7465 7.81343 9.23942 9.32053C7.73233 10.8276 7.85791 15.754 7.85791 15.754C7.85791 15.754 7.85791 10.702 6.4764 9.32053C5.09489 7.93902 0.0429162 7.93902 0.0429162 7.93902C0.0429162 7.93902 5.09489 7.93902 6.4764 6.55751C7.85791 5.176 7.85791 0.124023 7.85791 0.124023Z",fill:"#161616"}))))),Ae&&De&&e.createElement("div",{className:"yt-rw-note"},"You’re ",e.createElement("b",null,Ae)," away from"," ",e.createElement("b",null,De.name))),fe&&fe.trim()&&e.createElement("div",{className:"yt-rw-custom-html",dangerouslySetInnerHTML:{__html:fe}})),e.createElement("div",{className:"yt-rw-sticky-footer",style:{marginTop:"auto",width:"100%",alignSelf:"stretch",background:h||"#fff"}},e.createElement("div",{className:"yt-rw-bottom-cta"},e.createElement("hr",{style:{height:"0.7px",margin:"0px",border:"none",background:"#E2E2E2",width:"100%"}}),e.createElement("button",{onClick:ie,style:{background:S,color:N}},"Sign-Out")),e.createElement("div",{className:"yt-rw-stay-signed-in",style:{padding:"6px 0",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",background:"rgba(135, 135, 135, 0.10)",backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",color:b||"#000",textAlign:"center",fontFamily:"Poppins",fontSize:9,fontWeight:400,lineHeight:"122%"}},"Stay signed-in with the account you use for checking out")),a&&e.createElement("div",{className:"yt-powered-by",style:{position:"sticky",bottom:0,zIndex:3,background:h||"#fff",borderTop:"1px solid rgba(0,0,0,0.06)"}},e.createElement("p",null,"powered by ",e.createElement("span",null,"YourToken")))):"wtr"==Ee?e.createElement(cg,{balanceCoins:Number(W),couponList:J,freebies:ee,currencyCode:q,onCouponAvail:te,setScreenType:Te,themeSecondaryColor:y,themeSecondaryContrastColor:x,showCTA:!0,couponCode:K,couponHeading:X,copyFunction:Ve,ctaBorderRadius:B,brandRewardProgram:ce,redemptionMovRequired:Y,userRewardTier:re,brandRewardTiers:oe}):"vip"==Ee?e.createElement(Eg,{onBack:()=>Te("profile"),brandRewardTiers:oe,balanceCoins:W,userRewardTier:re,currencyCode:q}):"wte"==Ee?e.createElement(Tg,{ctaPrimaryColor:E??"",ctaContrastColor:k??"",currencyCode:q,userData:le,activityRewards:se,onBirthdayUpdate:me,onSocialClick:ue,onFeedbackRewardClick:ge,isLoading:pe,brandRewardProgram:ce}):"recentTransactions"==Ee?e.createElement(Gg,{data:de,tokenName:U,currencySymbol:"INR"===q?"₹":q??"$"}):e.createElement("div",null)),ye&&e.createElement(ng,{background:g,textColor:f}));return v?je?e.createElement("div",{className:"yt-rw-shell "+(C?"yt-rw-shell--below":"yt-rw-shell--right")},He,e.createElement("div",{className:"yt-powered-by"},e.createElement("p",null,"powered by ",e.createElement("span",null,"YourToken")))):He:e.createElement("div",null)}function nf({textColor:t="",backgroundColor:n="",position:r="",yOffsetValue:o="",launcherTitle:a="",borderColor:i="",iconType:l="",launcherIcon:s="",addVisibilityDelay:c=!1,addAttentionWaves:d=!0,onClick:p=()=>{}}){let m="",u="",g="",f="";"top-left"==r?(m="0px",u=o):"top-right"==r?(g="0px",u=o):"bottom-right"==r?(g="0px",f=o):(m="0px",f=o);const y=function(t,n,r){const o=n?.trim();return"custom"===t&&o?e.createElement("img",{src:o,alt:""}):e.createElement(ye,{color:r})}(l,s,""!==t?t:"white");return a?.trim()?.length>0?e.createElement("div",{onClick:p,className:"yt-root yt-launcher-stickyText",style:{cursor:"pointer",backgroundColor:n,transform:"top-right"==r||"bottom-right"==r?"rotate(-90deg) translateY(-20px) scale(-1, 1)":"",transformOrigin:"top-right"==r||"bottom-right"==r?"right":"left",left:m,right:g,top:u,bottom:f,borderColor:i,border:""!=i?"1px solid":"none"}},d&&e.createElement(e.Fragment,null,e.createElement("span",{className:"yt-ring"}),e.createElement("span",{className:"yt-ring yt-ring2"})),"top-right"!=r&&"bottom-right"!=r&&y,e.createElement("p",{style:{color:t,transform:"top-right"==r||"bottom-right"==r?"scale(-1, 1)":""}},a),("top-right"==r||"bottom-right"==r)&&y):e.createElement("div",{onClick:p,className:"yt-root yt-launcher-sticky",style:{cursor:"pointer",backgroundColor:n,transform:"top-right"==r||"bottom-right"==r?"rotate(-90deg)":"",left:m,right:g,top:u,bottom:f,borderColor:i}},d&&e.createElement(e.Fragment,null,e.createElement("span",{className:"yt-ring"}),e.createElement("span",{className:"yt-ring yt-ring2"})),y)}const rf="20px";function of({textColor:t="",backgroundColor:n="",position:r="",yOffsetValue:o="",launcherTitle:a="Rewards",borderColor:i="",iconType:l="",launcherIcon:s="",addVisibilityDelay:c=!1,addAttentionWaves:d=!0,onClick:p=()=>{}}){const m=String(r).includes("right"),u=String(o??"").trim(),g={bottom:u?`calc(${rf} + ${u})`:rf,[m?"right":"left"]:"20px"},f=function(t,n,r){const o=n?.trim();return"custom"===t&&o?e.createElement("img",{src:o,alt:""}):e.createElement(ye,{color:r})}(l,s,""!==t?t:"#0A0A0A");return e.createElement("div",{onClick:p,className:"yt-root yt-launcher-bubble",style:{cursor:"pointer",backgroundColor:n,...g,border:""!=i?"1px solid":"none",borderColor:i,borderRadius:0==a?.length?"100px":"",padding:0==a?.length?"10px":""}},d&&e.createElement(e.Fragment,null,e.createElement("span",{className:"yt-ring"}),e.createElement("span",{className:"yt-ring yt-ring2"})),f,a?.length>0&&e.createElement("p",{style:{color:t}},a))}function af(t,n,r){const o=n?.trim();return"custom"===t&&o?e.createElement("img",{src:o,alt:""}):e.createElement(ye,{color:r})}function lf({textColor:n="",backgroundColor:r="",launcherTitle:a="",offerTitle:l="",borderColor:s="",iconType:c="",launcherIcon:d="",addVisibilityDelay:p=!1,onClick:m=()=>{}}){const u=o(null),g=o(null),[f,y]=t(!1),[x,h]=t(12);return i(()=>{const e=u.current,t=g.current;if(!e||!t)return;const n=()=>{const n=t.scrollWidth>e.clientWidth;if(y(n),n){const n=Math.max(8,t.scrollWidth/45);h(n),e.style.setProperty("--marquee-duration",`${n}s`)}else e.style.removeProperty("--marquee-duration")};n();const r=new ResizeObserver(n);return r.observe(e),r.observe(t),window.addEventListener("orientationchange",n),()=>{r.disconnect(),window.removeEventListener("orientationchange",n)}},[a,l,n,r,s]),e.createElement("div",{onClick:m,className:"yt-root yt-launcher-ribbon",style:{color:n,backgroundColor:r,borderColor:s,border:""!==s?"1px solid":"none"}},e.createElement("div",{className:"yt-ribbon-viewport",ref:u,"aria-live":"polite"},e.createElement("div",{className:"yt-ribbon-track "+(f?"yt-is-marquee":""),ref:g},e.createElement("span",{style:{color:n}},a),af(c,d,""!==n?n:"white"),e.createElement("p",{style:{color:n}},l),f&&e.createElement(e.Fragment,null,e.createElement("span",{style:{color:n}},a),af(c,d,""!==n?n:"white"),e.createElement("p",{style:{color:n}},l)))))}function sf({launcherType:t="",textColor:n="",backgroundColor:r="",position:o="",yOffsetValue:a="0px",launcherTitle:i="",offerTitle:l="",borderColor:s="",iconType:c="",launcherIcon:d="",addVisibilityDelay:p=!1,addAttentionWaves:m=!0,customCss:u="",enableCustomCss:g=!1,onClick:f=()=>{}}){const y=(e=>{if(null==e||""===e)return"";const t=String(e).trim();return t.endsWith("%")?`${t.slice(0,-1)}vh`:/^-?\d*\.?\d+$/.test(t)?`${t}vh`:t})(a);let x=null;switch(t){case"sticky":x=e.createElement(nf,{onClick:f,textColor:n,backgroundColor:r,position:o,yOffsetValue:y,borderColor:s,iconType:c,launcherIcon:d,addAttentionWaves:m,addVisibilityDelay:p,launcherTitle:i});break;case"bubble":x=e.createElement(of,{onClick:f,textColor:n,backgroundColor:r,position:o,yOffsetValue:y,borderColor:s,iconType:c,launcherIcon:d,addAttentionWaves:m,addVisibilityDelay:p,launcherTitle:i});break;case"ribbon":x=e.createElement(lf,{onClick:f,offerTitle:l,textColor:n,backgroundColor:r,borderColor:s,iconType:c,launcherIcon:d,addVisibilityDelay:p,launcherTitle:i});break;default:x=e.createElement("div",null)}return e.createElement(e.Fragment,null,g&&u?.trim()&&e.createElement("style",{"data-yt-custom-css":"loyalty-launcher",dangerouslySetInnerHTML:{__html:u}}),x)}function cf({phoneLabel:a="9315313208",authType:i,email:l,length:s=4,onConfirm:c,onResend:d,onChangeNumber:p,setToast:m,loading:u=!1,tone:g="#B85552",themeBackgroundColor:f,themeAccentColor:y,themeTextColor:x,ctaPrimaryColor:h,ctaPrimaryContrastColor:b,countryCode:w}){const v=Math.min(6,Math.max(4,s)),[C,E]=t(Array(v).fill("")),k=o([]),[T,S]=t(!1);n(()=>{k.current[0]?.focus()},[]);const N=r(()=>C.join(""),[C]);function F(e,t){const n=[...C];n[e]=t,E(n)}async function B(e){if(e.every(e=>""!==e)){S(!0);const t=e.join("");if(c){await c(t)||(S(!1),m("OTP did not match. Please try again!"),setTimeout(()=>m(null),3e3))}}}function $(e,t){const n=(t||"").replace(/\D/g,"");if(!n)return;const r=[...C];let o=e;for(let e=0;e<n.length&&o<v;e++)r[o]=n[e],o++;E(r);const a=Math.min(o,v-1);k.current[a]?.focus(),B(r)}return e.createElement("div",{className:"yt-otp-wrap",style:{"--otp-accent":g}},e.createElement("h3",{className:"yt-otp-title",style:{color:x}},"OTP Verification"),"email"==i?e.createElement("p",{className:"yt-otp-subtext",style:{color:x}},"A code has been sent to your email"," ",e.createElement("span",{className:"yt-otp-phone"},l)):e.createElement("p",{className:"yt-otp-subtext",style:{color:x}},"A code has been sent to your registered no"," ",e.createElement("span",{className:"yt-otp-phone"},a)),e.createElement("button",{style:{color:y,cursor:"pointer"},className:"yt-otp-link",onClick:p,type:"button"},"phone"==i?"change number?":"change email?"),e.createElement("hr",{className:"yt-otp-rule",style:{margin:"12px"}}),e.createElement("form",{className:"yt-otp-form",onSubmit:async function(e){if(e.preventDefault(),N.length===v&&c){await c(N)||(S(!1),m("Could not verify OTP!"),setTimeout(()=>m(null),2e3))}}},e.createElement("div",{className:"yt-otp-boxes","aria-label":`Enter ${v}-digit code`},Array.from({length:v}).map((t,n)=>e.createElement("input",{key:n,type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:1,value:C[n],onChange:e=>function(e,t){const n=t.target.value.replace(/\D/g,"");if(!n)return;if(n.length>1)return void $(e,n);const r=[...C];r[e]=n,E(r),e<v-1&&k.current[e+1]?.focus(),B(r)}(n,e),onPaste:e=>function(e,t){t.preventDefault(),$(e,t.clipboardData.getData("text"))}(n,e),onKeyDown:e=>function(e,t){if("Backspace"===t.key){if(C[e])return F(e,""),void S(!1);e>0&&(k.current[e-1]?.focus(),F(e-1,""),S(!1))}else"ArrowLeft"===t.key&&e>0?k.current[e-1]?.focus():"ArrowRight"===t.key&&e<v-1&&k.current[e+1]?.focus()}(n,e),ref:e=>k.current[n]=e,className:"yt-otp-box "+(C[n]?"yt-filled":""),"aria-label":`Digit ${n+1}`}))),e.createElement("p",{className:"yt-otp-hint",style:{color:x}},"Didn’t receive any code?"," ",e.createElement("button",{style:{color:y,cursor:"pointer"},type:"button",className:"yt-otp-link",onClick:d},"resend code")),e.createElement("button",{style:{width:"100%",color:b,background:h},disabled:!T,type:"submit",className:"yt-rwmd-cta"},T?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Confirm")))}_t(".yt-asd-btn {\n transition: background 220ms ease-out, background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out, transform 120ms ease-out;\n}\n.yt-asd-btn:hover {\n background: #fff !important;\n background-color: #fff !important;\n color: #1F1F1F !important;\n border: 1px solid #1F1F1F !important;\n}\n.yt-asd-btn:active {\n transform: translateY(1px) !important;\n}\n");const df={overlay:{background:"rgba(0, 0, 0, 0.3)",position:"absolute",inset:0,padding:10,boxSizing:"border-box",zIndex:9999,fontFamily:"system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif"},card:{position:"absolute",left:5,bottom:8,right:5,boxSizing:"border-box",justifySelf:"stretch",background:"#fff",borderRadius:12,boxShadow:"0 10px 28px rgba(0, 0, 0, 0.25)",padding:14,textAlign:"center",border:"1px solid #e7e7e7"},title:{margin:"2px 0 6px",fontSize:15,fontWeight:700,color:"#111"},desc:{margin:"0 8px 12px",fontSize:12,color:"#6a6a6a",lineHeight:1.35},btn:{width:"100%",border:"none",borderRadius:10,background:"#2f2f2f",color:"#fff",fontWeight:600,padding:"12px 14px",cursor:"pointer"}};function pf({onClose:t,handleSessionDetected:n}){return e.createElement("div",{className:"yt-asd-ol",style:df.overlay,role:"dialog","aria-modal":"true"},e.createElement("div",{className:"yt-asd-card",style:df.card},e.createElement("h4",{className:"yt-asd-title",style:df.title},"Active Session Found!"),e.createElement("p",{className:"yt-asd-desc",style:df.desc},"You’re already signed in. Tap below to refresh and access your loyalty rewards."),e.createElement("button",{className:"yt-asd-btn",style:df.btn,onClick:n},"Refresh & Continue")))}function mf({config:r}){const{themeBackgroundColor:a="",themeTextColor:i="",bannerBackground:l="",bannerBackgroundType:s="shape",bannerImage:c="",bannerTextColor:d="",watermarkColor:p="#fff",bannerTextAlignment:m="start",showWatermark:u=!0,showLogo:g=!1,brandLogoUrl:f="",guestGreeting:y="Welcome to",existingUserGreeting:x="",emailRequired:h,onPhoneChange:b,onEmailChange:w,validatePhone:v,setEmailRequired:C,onClose:E=()=>{},onRegister:k,handleChangeNumber:T,handleResendOtp:S,handleSessionDetected:N,onSendOTP:F,isSessionDetected:B,authType:$="default",formFilled:z=!1,redirectUrl:I="",ctaTitle:P="Register Now",ctaPrimaryColor:D="",ctaPrimaryContrastColor:A="",themeAccentColor:_="",registerLink:R="",brandTitle:O="My Pahadi Rewards",widgetOpen:M=!0,heading:V="Get Started",subcopy:W="Welcome to Moonstruck Loyalty Program <> Earn as you Buy",termsHref:j="#",privacyHref:H="#",isLoading:q=!0,styleVars:U={},countryCode:Q,isMobilePreview:Y,viewportMode:Z}=r||{},G=o(null),[X,K]=t("undefined"!=typeof window&&window.innerWidth<=480);n(()=>{if("undefined"==typeof window)return;const e=()=>K(window.innerWidth<=480);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),t("ytAuth"==$);const[J,ee]=t(""),[te,ne]=t(""),[re,oe]=t(!1),[ae,ie]=t(null),[le,se]=t(Q);console.log("I AM IN MOBILE");const ce="end"===m?{alignItems:"flex-end",textAlign:"right"}:"center"===m?{alignItems:"center",textAlign:"center"}:{alignItems:"flex-start",textAlign:"left"},de=Array.from({length:3}),pe=Array.from({length:4}),me=t=>e.createElement("div",{key:t,className:"yt-rwmd-tapeItem"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.77497 4.58942L2.9167 3.19303C3.11239 1.26501 4.834 -0.139327 6.76202 0.0563629C8.69005 0.252053 10.0944 1.97366 9.89869 3.90168L9.75696 5.29808C10.5282 5.37636 11.0899 6.065 11.0116 6.83621L10.6573 10.3272C10.579 11.0984 9.89037 11.6601 9.11917 11.5819L2.13718 10.8732C1.36597 10.7949 0.804237 10.1063 0.882513 9.33508L1.23684 5.84409C1.31512 5.07288 2.00376 4.51115 2.77497 4.58942ZM8.50229 3.75995L8.36056 5.15635L4.17137 4.73116L4.3131 3.33476C4.43051 2.17795 5.46348 1.33535 6.62029 1.45276C7.77711 1.57017 8.61971 2.60314 8.50229 3.75995Z",fill:"#5F579B"})),e.createElement("p",null,"50 points in queue for last order")),ue=t=>e.createElement("div",{key:t,className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup"));if(n(()=>{if(!M)return;const e=e=>"Escape"===e.key&&E?.();return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[M,E]),!M)return null;const[ge,fe]=t(!1);return n(()=>{fe(z)},[z]),e.createElement("div",{className:"yt-root yt-rwmd-mobile-shell"},e.createElement("div",{className:"yt-powered-by"},e.createElement("p",null,"powered by ",e.createElement("span",null,"YourToken"))),e.createElement("section",{onMouseDown:e=>e.stopPropagation(),className:"yt-root yt-rwmd-dialog"+("mobile"===Z?" yt-rwmd-force-mobile":""),role:"dialog","aria-modal":"true","aria-labelledby":"yt-rwmd-title",onClick:e=>e.stopPropagation(),ref:G,style:{background:a}},B&&e.createElement(pf,{handleSessionDetected:N??(()=>{})}),e.createElement("header",{className:"yt-rwmd-hero",style:{backgroundColor:l,backgroundImage:"static"!==s&&c&&c.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${c})`:void 0,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}},e.createElement("button",{className:"yt-rwmd-close","aria-label":"Close",onClick:E,style:{color:d}},"×"),("static"===s||!c)&&u&&e.createElement("h1",{style:{fontSize:"clamp(70px, 25vw, 120px)",position:"absolute",zIndex:"0",bottom:"-15px",left:"0px",opacity:"0.1",textWrap:"nowrap",fontFamily:"poppins",color:p,margin:0,lineHeight:1}},O),e.createElement("div",{className:"yt-rwmd-hero_header",style:{alignItems:ce.alignItems,textAlign:ce.textAlign,width:"100%"}},g&&f&&f?.length>0&&e.createElement("div",{className:"yt-rwmd-logo",style:{alignSelf:ce.alignItems}},e.createElement("img",{src:f,alt:""})),e.createElement("p",{className:"yt-rwmd-hero-eyebrow",style:{color:d}},y),e.createElement("h2",{id:"yt-rwmd-title",className:"yt-rwmd-hero-title",style:{color:d}},O))),e.createElement("div",{className:"yt-rwmd-content",style:{background:a}},e.createElement("div",{className:"yt-rwmd-body",style:{color:i}},ae&&e.createElement(ng,{displayText:ae,background:"#000000",textColor:"#ffffff"}),"phone"!=$&&"email"!=$||!z?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-body_head"},e.createElement("h3",{className:"yt-rwmd-lead",style:{color:i}},V),e.createElement("p",{className:"yt-rwmd-subcopy",style:{color:i}},W)),e.createElement("hr",{style:{width:"100%",height:"0.2px",border:"none",borderColor:"red",margin:"0px"}}),"phone"==$?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{display:"flex",alignItems:"center",paddingLeft:"10px"}},e.createElement(L,{defaultCountry:"in",forceDialCode:!0,value:J,onChange:(e,t)=>{const{country:n,inputValue:r}=t,o="string"==typeof n?.format?n.format:n?.format?.default,a=String(n?.dialCode??""),i=String(r??"").replace(/\D/g,""),l=i.startsWith(a)?i.slice(a.length):i,s=o?(String(o).match(/\./g)||[]).length:10;v?.(l.length>=s);const c=`+${a}${l}`;b?.(c),ee(e)},inputProps:{required:!0},inputStyle:{width:"100%",fontFamily:"Poppins !important",borderRadius:"0px",border:"none",background:"transparent",boxShadow:"none !important"},style:{boxShadow:"none !important",fontFamily:"Poppins"},countrySelectorStyleProps:{buttonStyle:{border:"none",background:"transparent",padding:"0"}}})),e.createElement("div",{className:"yt-input-wrapper",style:{position:"relative"}},q?e.createElement(og,{size:18,color:"#fff",centered:!0}):e.createElement("input",{placeholder:"Email Address",value:te,disabled:!h,onChange:e=>{ne(e.target.value),w?.(e.target.value)},type:"email"})),e.createElement("button",{disabled:Boolean(h)&&!ff(te),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:A,background:D},onClick:async()=>{oe(!0);await(F?.())?oe(!1):(oe(!1),ie("An error occured!"))}},re?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Send OTP")):"email"==$?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{position:"relative"}},e.createElement("input",{placeholder:"Email Address",value:te,onChange:e=>{ne(e.target.value),w?.(e.target.value)},type:"email"})),e.createElement("button",{disabled:!ff(te),className:"yt-rwmd-cta",style:{margin:"0px",color:A,background:D},onClick:async()=>{oe(!0);await(F?.())?oe(!1):(oe(!1),ie("An error occured!"))}},re?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",{className:"yt-rwmd-cta",style:{color:A,background:D},onClick:()=>{k?.(),""!=R&&(window.location.href=R)}},P),e.createElement("p",{className:"yt-rwmd-terms",style:{color:i}},"By signing-in, you agree to our"," ",e.createElement("a",{href:"https://yourtoken.io/terms-of-service",target:"_blank",rel:"noreferrer",style:{color:_}},"T&Cs")," ","and"," ",e.createElement("a",{href:"https://yourtoken.io/privacy-policy",target:"_blank",rel:"noreferrer",style:{color:_}},"Privacy Policy"))):e.createElement(cf,{setToast:ie,authType:$,email:te,countryCode:le,themeAccentColor:_,themeBackgroundColor:a,themeTextColor:i,ctaPrimaryColor:D,ctaPrimaryContrastColor:A,phoneLabel:J,length:4,onConfirm:k,onResend:S,onChangeNumber:T,loading:q,tone:"#B85552"}))),e.createElement("div",{className:"yt-rwmd-bottom_tape1"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--left"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},de.map((e,t)=>me(`queue-a-${t}`))),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},de.map((e,t)=>me(`queue-b-${t}`))))),e.createElement("div",{className:"yt-rwmd-bottom_tape2"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--right"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},pe.map((e,t)=>ue(`signup-a-${t}`))),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},pe.map((e,t)=>ue(`signup-b-${t}`)))))))}function uf({config:r}){const{themeBackgroundColor:o="",themeTextColor:a="",themeAccentColor:i="",bannerBackground:l="",bannerTextColor:s="",watermarkColor:c="#fff",widgetRoundedCorners:d=!0,guestWidgetImage:p,bannerTextAlignment:m="start",showWatermark:u=!0,showLogo:g=!1,logourl:f="",guestGreeting:y="Welcome to",existingUserGreeting:x="",phone:h="",email:b="",emailRequired:w,onPhoneChange:v,onEmailChange:C,validatePhone:E,setEmailRequired:k,onClose:T=()=>{},onRegister:S=e=>Promise,handleChangeNumber:N,handleResendOtp:F,handleSessionDetected:B,onSendOTP:$,isSessionDetected:z,isLoading:I,authType:P="phone",countryCode:D,formFilled:A=!1,redirectUrl:_="",ctaTitle:R="Register Now",ctaPrimaryColor:O="",ctaPrimaryContrastColor:M="",registerLink:V="",brandTitle:W="Pahadi",widgetOpen:j=!0,heading:H="Get Started",subcopy:q="Welcome to Moonstruck Loyalty Program <> Earn as you Buy",termsHref:U="#",privacyHref:Q="#",styleVars:Y={}}=r||{},[Z,G]=t(""),[X,K]=t(""),[J,ee]=t(!1),[te,ne]=t(!1),[re,oe]=t(null),[ae,ie]=t(D);n(()=>{ee(A)},[A]);const le=()=>e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.77497 4.58942L2.9167 3.19303C3.11239 1.26501 4.834 -0.139327 6.76202 0.0563629C8.69005 0.252053 10.0944 1.97366 9.89869 3.90168L9.75696 5.29808C10.5282 5.37636 11.0899 6.065 11.0116 6.83621L10.6573 10.3272C10.579 11.0984 9.89037 11.6601 9.11917 11.5819L2.13718 10.8732C1.36597 10.7949 0.804237 10.1063 0.882513 9.33508L1.23684 5.84409C1.31512 5.07288 2.00376 4.51115 2.77497 4.58942ZM8.50229 3.75995L8.36056 5.15635L4.17137 4.73116L4.3131 3.33476C4.43051 2.17795 5.46348 1.33535 6.62029 1.45276C7.77711 1.57017 8.61971 2.60314 8.50229 3.75995Z",fill:"#5F579B"})),e.createElement("p",null,"50 points in queue for last order")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.77497 4.58942L2.9167 3.19303C3.11239 1.26501 4.834 -0.139327 6.76202 0.0563629C8.69005 0.252053 10.0944 1.97366 9.89869 3.90168L9.75696 5.29808C10.5282 5.37636 11.0899 6.065 11.0116 6.83621L10.6573 10.3272C10.579 11.0984 9.89037 11.6601 9.11917 11.5819L2.13718 10.8732C1.36597 10.7949 0.804237 10.1063 0.882513 9.33508L1.23684 5.84409C1.31512 5.07288 2.00376 4.51115 2.77497 4.58942ZM8.50229 3.75995L8.36056 5.15635L4.17137 4.73116L4.3131 3.33476C4.43051 2.17795 5.46348 1.33535 6.62029 1.45276C7.77711 1.57017 8.61971 2.60314 8.50229 3.75995Z",fill:"#5F579B"})),e.createElement("p",null,"50 points in queue for last order")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.77497 4.58942L2.9167 3.19303C3.11239 1.26501 4.834 -0.139327 6.76202 0.0563629C8.69005 0.252053 10.0944 1.97366 9.89869 3.90168L9.75696 5.29808C10.5282 5.37636 11.0899 6.065 11.0116 6.83621L10.6573 10.3272C10.579 11.0984 9.89037 11.6601 9.11917 11.5819L2.13718 10.8732C1.36597 10.7949 0.804237 10.1063 0.882513 9.33508L1.23684 5.84409C1.31512 5.07288 2.00376 4.51115 2.77497 4.58942ZM8.50229 3.75995L8.36056 5.15635L4.17137 4.73116L4.3131 3.33476C4.43051 2.17795 5.46348 1.33535 6.62029 1.45276C7.77711 1.57017 8.61971 2.60314 8.50229 3.75995Z",fill:"#5F579B"})),e.createElement("p",null,"50 points in queue for last order"))),se=()=>e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")));return e.createElement("div",{onMouseDown:e=>e.stopPropagation(),className:"yt-root yt-guestDesktop"},e.createElement("div",{className:"yt-guestDesktop-card",style:{background:o}},z&&e.createElement(pf,{handleSessionDetected:B??(()=>{})}),e.createElement("img",{className:"yt-guestDesktop-image",src:p,alt:""}),e.createElement("div",{className:"yt-guestDesktop-contentBox",style:{background:o}},e.createElement("div",{className:"yt-guestDesktop-body"},re&&e.createElement(ng,{displayText:re,background:"#000000",textColor:"#ffffff"}),e.createElement("div",{style:{background:"transparent",display:"flex",gap:"2px",flexDirection:"column",alignItems:"start"}},e.createElement("div",{className:"yt-guestDesktop-title",style:{color:a}},"Login now to avail best offers!"),e.createElement("div",{className:"yt-guestDesktop-subtitle",style:{color:a}},`Welcome to ${W} Loyalty Program. Register now to avail best deals.`)),"phone"!=P&&"email"!=P||!A?e.createElement("div",{className:"yt-guestDesktop-cta"},"phone"==P?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{display:"flex",alignItems:"center",paddingLeft:"10px"}},e.createElement(L,{defaultCountry:"in",forceDialCode:!0,value:Z,onChange:(e,t)=>{const{country:n,inputValue:r}=t,o="string"==typeof n?.format?n.format:n?.format?.default,a=String(n?.dialCode??""),i=String(r??"").replace(/\D/g,""),l=i.startsWith(a)?i.slice(a.length):i,s=o?(String(o).match(/\./g)||[]).length:10;E?.(l.length>=s);const c=`+${a}${l}`;v?.(c),G(e)},inputProps:{required:!0},inputStyle:{width:"100%",fontFamily:"Poppins !important",borderRadius:"0px",border:"none",background:"transparent",boxShadow:"none !important"},style:{boxShadow:"none !important",fontFamily:"Poppins"},countrySelectorStyleProps:{buttonStyle:{border:"none",background:"transparent",padding:"0"}}})),e.createElement("div",{className:"yt-input-wrapper",style:{position:"relative"}},I?e.createElement(og,{size:18,color:"#fff",centered:!0}):e.createElement("input",{placeholder:"Email Address",value:X,disabled:!w,onChange:e=>{K(e.target.value),C?.(e.target.value)},type:"email"})),e.createElement("button",{disabled:Boolean(w)&&!ff(X),className:"yt-rwmd-cta",style:{margin:"0px",color:M,background:O},onClick:async()=>{ne(!0);await($?.())?ne(!1):(ne(!1),oe("An error occured!"),setTimeout(()=>oe(null),3e3))}},te?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Send OTP")):"email"==P?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{position:"relative"}},e.createElement("input",{placeholder:"Email Address",value:b,onChange:e=>{K(e.target.value),C?.(e.target.value)},type:"email"})),e.createElement("button",{disabled:!ff(X),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:M,background:O},onClick:async()=>{ne(!0);await($?.())?ne(!1):(ne(!1),oe("An error occured!"))}},te?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",null,e.createElement("p",null,R??"Register Now"),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.7071 6.29289C18.0976 6.68342 18.0976 7.31658 17.7071 7.70711L7.70711 17.7071C7.31658 18.0976 6.68342 18.0976 6.29289 17.7071C5.90237 17.3166 5.90237 16.6834 6.29289 16.2929L16.2929 6.29289C16.6834 5.90237 17.3166 5.90237 17.7071 6.29289Z",fill:"white"}),e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 7C6 6.44772 6.44772 6 7 6H17C17.5523 6 18 6.44772 18 7V17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17V8H7C6.44772 8 6 7.55228 6 7Z",fill:"white"})))):e.createElement(cf,{setToast:oe,authType:P,email:b??X,countryCode:ae,themeAccentColor:i,themeBackgroundColor:o,themeTextColor:a,ctaPrimaryColor:O,ctaPrimaryContrastColor:M,phoneLabel:Z,length:4,onConfirm:S,onResend:()=>F?.(),onChangeNumber:N,loading:!1,tone:"#B85552"}),e.createElement("div",{className:"yt-guestDesktop-terms",style:{color:a}},"By signing-in, you agree to our"," ",e.createElement("span",{style:{color:i}},"T&Cs")," and"," ",e.createElement("span",{style:{color:i}},"Privacy Policy"))),!A&&e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-bottom_tape1"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--left"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},le()),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},le()))),e.createElement("div",{className:"yt-rwmd-bottom_tape2"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--right"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},se()),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},se())))))),e.createElement("div",{className:"yt-guestDesktop-footer"},e.createElement("p",null,"powered by ",e.createElement("span",null,"YourToken")),e.createElement("div",{onClick:T,className:"yt-guestDesktop-close"},e.createElement("p",null,"Close"),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M18.75 6.81984L17.1802 5.25L12 10.4302L6.81984 5.25L5.25 6.81984L10.4302 12L5.25 17.1802L6.81984 18.75L12 13.5698L17.1802 18.75L18.75 17.1802L13.5698 12L18.75 6.81984Z",fill:"white"})))))}function gf({config:r}){const{themeBackgroundColor:a="",themeTextColor:i="",bannerBackground:l="",bannerBackgroundType:s="shape",bannerImage:c="",bannerTextColor:d="",watermarkColor:p="#fff",widgetRoundedCorners:m=!0,bannerTextAlignment:u="start",showWatermark:g=!0,showLogo:f=!1,logourl:y="",guestGreeting:x="Welcome to",existingUserGreeting:h="",emailRequired:b,onPhoneChange:w,onEmailChange:v,onClose:C=()=>{},onRegister:E,handleChangeNumber:k,handleResendOtp:T,handleSessionDetected:S,onSendOTP:N,isSessionDetected:F,authType:B="default",countryCode:$,validatePhone:z,setEmailRequired:I,formFilled:P=!1,redirectUrl:D="",ctaTitle:A="Register Now",ctaMainColor:_="",ctaMainContrastColor:R="",ctaPrimaryColor:O="",ctaPrimaryContrastColor:M="",themeAccentColor:V="",registerLink:W="",brandTitle:j="My Pahadi Rewards",brandLogoUrl:H,widgetOpen:q=!0,heading:U="Get Started",subcopy:Q="Welcome to YourToken Loyalty Program <> Earn as you Buy",termsHref:Y="#",privacyHref:Z="#",isLoading:G=!0,styleVars:X={}}=r||{},K=o(null);t("ytAuth"==B);const[J,ee]=t(""),[te,ne]=t(""),[re,oe]=t(!1),[ae,ie]=t(null),[le,se]=t($);if(n(()=>{if(!q)return;const e=e=>"Escape"===e.key&&C?.();return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[q,C]),!q)return null;const[ce,de]=t(!1);n(()=>{de(P)},[P]);const pe=()=>e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.77497 4.58942L2.9167 3.19303C3.11239 1.26501 4.834 -0.139327 6.76202 0.0563629C8.69005 0.252053 10.0944 1.97366 9.89869 3.90168L9.75696 5.29808C10.5282 5.37636 11.0899 6.065 11.0116 6.83621L10.6573 10.3272C10.579 11.0984 9.89037 11.6601 9.11917 11.5819L2.13718 10.8732C1.36597 10.7949 0.804237 10.1063 0.882513 9.33508L1.23684 5.84409C1.31512 5.07288 2.00376 4.51115 2.77497 4.58942ZM8.50229 3.75995L8.36056 5.15635L4.17137 4.73116L4.3131 3.33476C4.43051 2.17795 5.46348 1.33535 6.62029 1.45276C7.77711 1.57017 8.61971 2.60314 8.50229 3.75995Z",fill:"#5F579B"})),e.createElement("p",null,"50 points in queue for last order")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.77497 4.58942L2.9167 3.19303C3.11239 1.26501 4.834 -0.139327 6.76202 0.0563629C8.69005 0.252053 10.0944 1.97366 9.89869 3.90168L9.75696 5.29808C10.5282 5.37636 11.0899 6.065 11.0116 6.83621L10.6573 10.3272C10.579 11.0984 9.89037 11.6601 9.11917 11.5819L2.13718 10.8732C1.36597 10.7949 0.804237 10.1063 0.882513 9.33508L1.23684 5.84409C1.31512 5.07288 2.00376 4.51115 2.77497 4.58942ZM8.50229 3.75995L8.36056 5.15635L4.17137 4.73116L4.3131 3.33476C4.43051 2.17795 5.46348 1.33535 6.62029 1.45276C7.77711 1.57017 8.61971 2.60314 8.50229 3.75995Z",fill:"#5F579B"})),e.createElement("p",null,"50 points in queue for last order")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.77497 4.58942L2.9167 3.19303C3.11239 1.26501 4.834 -0.139327 6.76202 0.0563629C8.69005 0.252053 10.0944 1.97366 9.89869 3.90168L9.75696 5.29808C10.5282 5.37636 11.0899 6.065 11.0116 6.83621L10.6573 10.3272C10.579 11.0984 9.89037 11.6601 9.11917 11.5819L2.13718 10.8732C1.36597 10.7949 0.804237 10.1063 0.882513 9.33508L1.23684 5.84409C1.31512 5.07288 2.00376 4.51115 2.77497 4.58942ZM8.50229 3.75995L8.36056 5.15635L4.17137 4.73116L4.3131 3.33476C4.43051 2.17795 5.46348 1.33535 6.62029 1.45276C7.77711 1.57017 8.61971 2.60314 8.50229 3.75995Z",fill:"#5F579B"})),e.createElement("p",null,"50 points in queue for last order"))),me=()=>e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")),e.createElement("div",{className:"yt-rwmd-tapeItem"},e.createElement("img",{src:"https://r2.yourtoken.io/loyalty-widget-v2/loyalty-gift.png",alt:""}),e.createElement("p",null,"Earn rewards on signup")));return e.createElement("div",{className:"yt-root yt-rwmd-shell"},e.createElement("section",{onMouseDown:e=>e.stopPropagation(),className:"yt-root yt-rwmd-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"yt-rwmd-title",onClick:e=>e.stopPropagation(),ref:K,style:{background:l,borderTopLeftRadius:m?"":"0px",borderTopRightRadius:m?"":"0px"}},e.createElement("header",{className:"yt-rwmd-hero",style:{backgroundColor:l,backgroundImage:"static"!==s&&c&&c.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${c})`:void 0,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",borderBottomLeftRadius:"static"!==s&&c&&c.length>0?"8px":void 0,borderBottomRightRadius:"static"!==s&&c&&c.length>0?"8px":void 0}},e.createElement("button",{className:"yt-rwmd-close","aria-label":"Close",onClick:C,style:{color:d}},"×"),("static"===s||!c)&&g&&e.createElement("h1",{style:{fontSize:"clamp(70px, 20vw, 100px)",position:"absolute",zIndex:"0",bottom:"-20px",left:"0px",opacity:"0.1",textWrap:"nowrap",fontFamily:"poppins",color:p,margin:0,lineHeight:1}},j),e.createElement("div",{className:"yt-rwmd-hero_header",style:{alignItems:u,width:"100%"}},f&&H&&H?.length>0&&e.createElement("div",{className:"yt-rwmd-logo",style:{alignSelf:u}},e.createElement("img",{src:H,alt:""})),e.createElement("p",{className:"yt-rwmd-hero-eyebrow",style:{color:d}},x),e.createElement("h2",{id:"yt-rwmd-title",className:"yt-rwmd-hero-title",style:{color:d}},j))),e.createElement("div",{className:"yt-rwmd-content",style:{background:a}},F&&e.createElement(pf,{handleSessionDetected:S??(()=>{})}),e.createElement("div",{className:"yt-rwmd-bottom_tape1"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--left"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},pe()),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},pe()))),e.createElement("div",{className:"yt-rwmd-bottom_tape2"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--right"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},me()),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},me()))),e.createElement("div",{className:"yt-rwmd-body",style:{color:i}},ae&&e.createElement(ng,{displayText:ae,background:"#000000",textColor:"#ffffff"}),"phone"!=B&&"email"!=B||!P?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-body_head"},e.createElement("h3",{className:"yt-rwmd-lead",style:{color:i}},U),e.createElement("p",{className:"yt-rwmd-subcopy",style:{color:i}},Q)),e.createElement("hr",{style:{width:"100%",height:"0.2px",border:"none",borderColor:"red",margin:"0px"}}),"phone"==B?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{display:"flex",alignItems:"center",paddingLeft:"10px"}},e.createElement(L,{defaultCountry:"in",forceDialCode:!0,value:J,onChange:(e,t)=>{const{country:n,inputValue:r}=t,o="string"==typeof n?.format?n.format:n?.format?.default,a=String(n?.dialCode??""),i=String(r??"").replace(/\D/g,""),l=i.startsWith(a)?i.slice(a.length):i,s=o?(String(o).match(/\./g)||[]).length:10;z?.(l.length>=s);const c=`+${a}${l}`;w?.(c),ee(e)},inputProps:{required:!0},inputStyle:{width:"100%",fontFamily:"Poppins !important",borderRadius:"0px",border:"none",background:"transparent",boxShadow:"none !important"},style:{boxShadow:"none !important",fontFamily:"Poppins"},countrySelectorStyleProps:{buttonStyle:{border:"none",background:"transparent",padding:"0"}}})),e.createElement("div",{className:"yt-input-wrapper",style:{position:"relative"}},G?e.createElement(og,{size:18,color:"#fff",centered:!0}):e.createElement("input",{placeholder:"Email Address",value:te,disabled:!b,onChange:e=>{ne(e.target.value),v?.(e.target.value)},type:"email"})),e.createElement("button",{disabled:Boolean(b)&&!ff(te),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:M,background:O},onClick:async()=>{oe(!0);await(N?.())?oe(!1):(oe(!1),ie("An error occured!"),setTimeout(()=>ie(null),3e3))}},re?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Send OTP")):"email"==B?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{position:"relative"}},e.createElement("input",{placeholder:"Email Address",value:te,onChange:e=>{ne(e.target.value),v?.(e.target.value)},type:"email"})),e.createElement("button",{disabled:!ff(te),className:"yt-rwmd-cta",style:{margin:"0px",color:M,background:O},onClick:async()=>{oe(!0);await(N?.())?oe(!1):(oe(!1),ie("An error occured!"),setTimeout(()=>ie(null),3e3))}},re?e.createElement(og,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",{className:"yt-rwmd-cta",style:{color:M,background:O},onClick:()=>{E?.(),""!=W&&(window.location.href=W)}},A),e.createElement("p",{className:"yt-rwmd-terms",style:{color:i}},"By signing-in, you agree to our"," ",e.createElement("a",{href:"https://yourtoken.io/terms-of-service",target:"_blank",rel:"noreferrer",style:{color:V}},"T&Cs")," ","and"," ",e.createElement("a",{href:"https://yourtoken.io/privacy-policy",target:"_blank",rel:"noreferrer",style:{color:V}},"Privacy Policy"))):e.createElement(cf,{setToast:ie,authType:B,email:te,countryCode:le,themeAccentColor:V,themeBackgroundColor:a,themeTextColor:i,ctaPrimaryColor:O,ctaPrimaryContrastColor:M,phoneLabel:J,length:4,onConfirm:E,onResend:T,onChangeNumber:k,loading:!1,tone:"#B85552"})))),e.createElement("div",{className:"yt-guestDesktop-footer"},e.createElement("p",null,"powered by ",e.createElement("span",null,"YourToken"))))}const ff=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);function yf({config:r}){const{guestWidgetImage:o,isMobilePreview:a,viewportMode:i}=r,[l,s]=t("undefined"!=typeof window&&window.innerWidth<=480);n(()=>{if("undefined"==typeof window)return;const e=()=>s(window.innerWidth<=480);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);return"mobile"===i||"desktop"!==i&&(a||l)?e.createElement(mf,{config:r}):o&&o?.length>0?e.createElement(uf,{config:r}):e.createElement(gf,{config:r})}function xf({signedIn:r=!1,previewMode:o=!1,bannerBackground:a="#4f486a",bannerBackgroundType:i="shape",bannerImage:l="",bannerTextColor:s="",themePrimaryColor:c="",themeContrastColor:d="",themeSecondaryColor:p="",themeSecondaryContrastColor:m="",themeBackgroundColor:u="#fff",themeTextColor:g="",themeAccentColor:f="",widgetOpen:y=!0,widgetPosition:x="center",guestWidgetImage:h="",widgetRoundedCorners:b=!1,ctaMainColor:w="",ctaMainContrastColor:v="",ctaPrimaryColor:C="",ctaPrimaryContrastColor:E="",ctaBorderColor:k="",ctaSecondaryColor:T="",ctaSecondaryContrastColor:S="",ctaShowIcon:N=!0,ctaBorderRadius:F="0px",showWaysToEarn:B=!0,showWaysToRedeem:$=!0,showWCoinValue:z=!0,showReferral:I=!0,referralLocked:P=!1,showTransactions:D=!0,showVipSection:A=!0,brandName:_="YourToken",brandLogoUrl:L="",headingEyebrow:R="Welcome to",balanceCoins:O,maxRedeemableCoins:M=0,redemptionMovRequired:V,coinValInr:W="1",coinIcon:j="",currencyCode:H="INR",tokenName:q="COINS",rateTitle:U="",rateSub:Q="No min. order value required • redeem upto 200 coins",couponHeading:Y="You’ve one reward coupon active",couponCode:Z="",couponList:G=[],freebies:X=[],onCouponAvail:K,couponImage:J="https://images.unsplash.com/photo-1606318313647-137fcb1d5cd2?q=80&w=800&auto=format&fit=crop",referralLink:ee="",userRewardTier:te,brandRewardTiers:ne,watermarkColor:re="#fff",bannerTextAlignment:oe="start",showWatermark:ae=!0,showLogo:ie=!1,logourl:le="",guestGreeting:se="Welcome to",userGreeting:ce="Welcome to",existingUserGreeting:de="",phone:pe="",email:me="",emailRequired:ue=!1,onPhoneChange:ge=e=>{},onEmailChange:fe=e=>{},validatePhone:ye,setEmailRequired:xe,onClose:he=()=>{},onRegister:be,onLogout:we,handleChangeNumber:ve,handleResendOtp:Ce,handleSessionDetected:Ee,onSendOTP:ke,isSessionDetected:Te,authType:Se="phone",formFilled:Ne=!1,redirectUrl:Fe="",ctaTitle:Be="Register Now",registerLink:$e="",brandTitle:ze="",heading:Ie="Get Started",subcopy:Pe="Welcome to YourToken Loyalty Program <> Earn as you Buy",termsHref:De="#",privacyHref:Ae="#",isLoading:_e,userData:Le,activityRewards:Re,brandRewardProgram:Oe,recentTransactionsData:Me,customCss:Ve,enableCustomCss:We,customHTML:je,onBirthdayUpdate:He,onSocialClick:qe,onFeedbackRewardClick:Ue,countryCode:Qe,isMobilePreview:Ye,viewportMode:Ze}){n(()=>{const e=e=>{"Escape"===e.key&&he()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[he]),n(()=>{if(!y)return;const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[y]);const[Ge,Xe]=t("undefined"!=typeof window&&window.innerWidth<=480);n(()=>{if("undefined"==typeof window)return;const e=()=>Xe(window.innerWidth<=480);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const Ke="mobile"===Ze||"desktop"!==Ze&&Ge;return e.createElement("div",{style:{placeItems:r?x:"center"},onMouseDown:e=>{e.target===e.currentTarget&&he()},className:"yt-root yt-reward-loyalty-overlay"},We&&Ve?.trim()&&e.createElement("style",{"data-yt-custom-css":"loyalty-widget",dangerouslySetInnerHTML:{__html:Ve}}),e.createElement("style",{"data-yt-branding-guard":"loyalty-widget",dangerouslySetInnerHTML:{__html:".yt-powered-by,.yt-guestDesktop-footer{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}.yt-rw-shell--right>.yt-powered-by{display:block!important}"}}),r?e.createElement(tf,{config:{isMobile:Ke,previewMode:o,bannerTextAlignment:oe,bannerBackground:a,bannerBackgroundType:i,bannerImage:l,bannerTextColor:s,themePrimaryColor:c,themeContrastColor:d,themeSecondaryColor:p,themeSecondaryContrastColor:m,themeBackgroundColor:u,themeTextColor:g,themeAccentColor:f,widgetOpen:y,widgetPosition:x,widgetRoundedCorners:b,ctaPrimaryColor:C,ctaPrimaryContrastColor:E,ctaBorderColor:k,ctaSecondaryColor:T,ctaSecondaryContrastColor:S,ctaShowIcon:N,ctaBorderRadius:F,showWaysToEarn:B,showWaysToRedeem:$,showWCoinValue:z,showReferral:I,referralLocked:P,showTransactions:D,showVipSection:A,showLogo:ie,brandName:_,brandLogoUrl:L,headingEyebrow:R,userGreeting:ce,balanceCoins:O,maxRedeemableCoins:M,redemptionMovRequired:V,coinValInr:W,coinIcon:j,currencyCode:H,tokenName:q,rateTitle:U,rateSub:Q,couponHeading:Y,couponCode:Z,couponImage:J,couponList:G,freebies:X,onCouponAvail:K,referralLink:ee,userRewardTier:te,brandRewardTiers:ne,userData:Le,activityRewards:Re,brandRewardProgram:Oe,recentTransactionsData:Me,isLoading:_e,onBirthdayUpdate:He,onSocialClick:qe,onFeedbackRewardClick:Ue,customHTML:je,onClose:he,onLogout:we}}):e.createElement(yf,{config:{isLoading:_e,themeBackgroundColor:u,themeTextColor:g,themeAccentColor:f,bannerBackground:a,bannerBackgroundType:i,bannerImage:l,bannerTextColor:s,watermarkColor:re,widgetRoundedCorners:b,guestWidgetImage:h,bannerTextAlignment:oe,showWatermark:ae,showLogo:ie,logourl:le,guestGreeting:se,existingUserGreeting:de,phone:pe,email:me,emailRequired:ue,onPhoneChange:ge,onEmailChange:fe,validatePhone:ye,setEmailRequired:xe,onClose:he,onRegister:be,handleChangeNumber:ve,handleResendOtp:Ce,handleSessionDetected:Ee,onSendOTP:ke,isSessionDetected:Te,authType:Se,countryCode:Qe,formFilled:Ne,redirectUrl:Fe,ctaTitle:Be,ctaMainColor:w,ctaMainContrastColor:v,ctaPrimaryColor:C,ctaPrimaryContrastColor:E,registerLink:$e,brandTitle:ze,brandLogoUrl:L,widgetOpen:y,heading:Ie,subcopy:Pe,termsHref:De,privacyHref:Ae,isMobilePreview:Ye,viewportMode:Ze}}))}Object.entries({IN:"+91",US:"+1",CA:"+1",GB:"+44",AU:"+61",NZ:"+64",DE:"+49",FR:"+33",ES:"+34",IT:"+39",NL:"+31",BE:"+32",CH:"+41",SE:"+46",NO:"+47",DK:"+45",FI:"+358",IE:"+353",PT:"+351",AT:"+43",PL:"+48",CZ:"+420",HU:"+36",RO:"+40",BG:"+359",GR:"+30",AE:"+971",SA:"+966",QA:"+974",KW:"+965",OM:"+968",BH:"+973",CN:"+86",JP:"+81",KR:"+82",SG:"+65",MY:"+60",TH:"+66",VN:"+84",ID:"+62",PH:"+63",PK:"+92",BD:"+880",LK:"+94",NP:"+977",ZA:"+27",NG:"+234",KE:"+254",EG:"+20",BR:"+55",AR:"+54",MX:"+52",CL:"+56",CO:"+57",PE:"+51",RU:"+7",UA:"+380",TR:"+90"}).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({cc:e,value:t,label:`${e} ${t}`}));_t('.lpc-root {\n width: 100%;\n background: #ffffff;\n overflow: hidden;\n font-family: var(--font-primary, "Poppins", sans-serif);\n}\n\n.lpc-header {\n background: #ffffff;\n padding: 56px 16px 28px;\n}\n\n.lpc-banner {\n max-width: 100%;\n height: auto;\n display: block;\n margin: 0 auto 20px;\n}\n\n.lpc-align-left {\n text-align: left;\n}\n\n.lpc-align-center {\n text-align: center;\n}\n\n.lpc-align-right {\n text-align: right;\n}\n\n.lpc-heading {\n margin: 0px;\n color: rgba(0, 0, 0, 0.87);\ntext-align: center;\nfont-family: var(--font-primary, "Poppins", sans-serif);\nfont-size: 32px;\nfont-style: normal;\nfont-weight: 600;\nline-height: 38.78px; /* 121.187% */\nletter-spacing: -0.16px;\n}\n\n.lpc-subheading {\n margin-top: 12px;\n color: #292C77;\ntext-align: center;\nfont-family: var(--font-primary, "Poppins", sans-serif);\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 112%; /* 17.92px */\n}\n\n.lpc-sectionTitle {\n margin: 10px 0 0;\n color: #636381;\n font-size: 14px;\n line-height: 1.4;\n}\n\n.lpc-tierBar {\n width: 100%;\n}\n\n.lpc-tierRow {\n max-width: 1200px;\n margin: 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 0;\n}\n\n.lpc-tierButton {\n border: 0;\n outline: none;\n appearance: none;\n cursor: pointer;\n min-width: 108px;\n padding: 20px 18px;\n color: rgba(0, 0, 0, 0.87);\ntext-align: center;\nfont-family: var(--font-primary, "Poppins", sans-serif);\nfont-size: 24px;\nfont-style: normal;\nfont-weight: 700;\nline-height: 36px; /* 150% */\n border-bottom: 4px solid transparent;\n transition: background-color 0.2s ease, border-color 0.2s ease;\n}\n\n.lpc-filterBar {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: center;\n gap: 12px;\n width: 100%;\n max-width: 1200px;\n margin: 24px auto 8px;\n padding: 0 24px;\n box-sizing: border-box;\n}\n\n.lpc-filterTab {\n appearance: none;\n cursor: pointer;\n border: 1px solid #E2E2E8;\n background: transparent;\n padding: 10px 24px;\n border-radius: 999px;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 16px;\n font-weight: 500;\n line-height: 1.2;\n color: inherit;\n transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;\n white-space: nowrap;\n}\n\n.lpc-filterTab:not(.lpc-filterTab--active):hover {\n background: var(--lpc-filter-hover-bg, #25262D) !important;\n color: var(--lpc-filter-hover-text, #FFFFFF) !important;\n border-color: var(--lpc-filter-hover-bg, #25262D) !important;\n}\n\n.lpc-filterTab--active {\n background: #1C1C1D;\n color: #FFFFFF;\n border-color: #1C1C1D;\n}\n\n.lpc-filterTab--active:hover {\n opacity: 0.92;\n}\n\n.lpc-balanceBar {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n margin: 20px 60px 8px;\n padding: 10px 14px;\n background: #d9e4eb;\n}\n\n.lpc-balanceLabel {\n color: #000;\nfont-family: Poppins;\nfont-size: 18px;\nfont-style: normal;\nfont-weight: 500;\nline-height: 31.9px; \n}\n\n.lpc-balanceValue {\n color: #000;\ntext-align: center;\nfont-family: Poppins;\nfont-size: 18px;\nfont-style: normal;\nfont-weight: 700;\nline-height: 31.9px; \n}\n\n.lpc-cardList {\n margin: 0;\n padding: 20px 60px 50px;\n gap: 36px;\n}\n\n.lpc-cardList--scroll {\n display: flex;\n overflow-x: auto;\n overflow-y: hidden;\n scroll-behavior: smooth;\n}\n\n.lpc-cardList--scroll::-webkit-scrollbar {\n height: 0;\n}\n\n.lpc-cardList--grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));\n}\n\n.lpc-cardList--wrap {\n display: flex;\n flex-wrap: wrap;\n}\n\n.lpc-emptyState {\n grid-column: 1 / -1;\n min-height: 240px;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #25262D;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 18px;\n font-weight: 500;\n}\n\n.lpc-card {\n flex: 0 0 360px;\n min-height: 430px;\n border: 1px solid;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n\n.lpc-cardList--grid .lpc-card {\n flex: unset;\n}\n\n.lpc-cardList--wrap .lpc-card {\n flex: 0 0 360px;\n}\n\n.lpc-imageWrap {\n width: 100%;\n aspect-ratio: 1 / 1;\n background: #ffffff;\n overflow: hidden;\n}\n\n.lpc-image {\n width: 100%;\n height: 100%;\n object-fit: contain;\n object-position: center;\n display: block;\n}\n\n.lpc-meta {\n padding: 14px 10px 12px;\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n}\n\n.lpc-coins {\n color: #A5A5A5;\nfont-family: var(--font-primary, "Poppins", sans-serif);\nfont-size: 11px;\nfont-style: normal;\nfont-weight: 600;\nline-height: 110%; /* 12.1px */\nletter-spacing: 0.109px;\npadding: 3px 0px;\n}\n\n.lpc-title {\n overflow: hidden;\ncolor: var(--Text-color, #252B42);\ntext-overflow: ellipsis;\nfont-family: var(--font-primary, "Poppins", sans-serif);\nfont-size: 16px;\nfont-style: normal;\nfont-weight: 700;\nline-height: 120%;\nletter-spacing: 0.109px;\ndisplay: -webkit-box;\n-webkit-line-clamp: 2;\n-webkit-box-orient: vertical;\n min-height: 40px;\n margin: 0;\n}\n\n.lpc-description {\n margin: 6px 0 0;\n color: #E4A8BD;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 112%;\n}\n\n.lpc-ratingRow {\n padding: 5px 0px;\n display: flex;\n align-items: center;\n gap: 6px;\n color: #4b4d60;\n font-size: 16px;\n line-height: 1.2;\n}\n\n.lpc-star {\n color: #f6a623;\n font-size: 14px;\n}\n\n.lpc-ratingText {\n color: #3A3A3A;\nfont-family: var(--font-primary, "Poppins", sans-serif);\nfont-size: 11px;\nfont-style: normal;\nfont-weight: 400;\nline-height: 150%; /* 16.5px */\n}\n\n.lpc-priceRow {\n margin-top: auto;\n padding: 10px 0 5px;\n display: flex;\n align-items: center;\n gap: 8px;\n color: #1f1f1f;\n}\n\n.lpc-priceMuted {\n color: #767676;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 120%;\n}\n\n.lpc-priceStrikethrough {\n color: #767676;\n text-decoration: line-through;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 120%;\n}\n\n.lpc-priceNow {\n color: #111111;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 120%;\n}\n\n.lpc-pricePlus {\n color: #111111;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 120%;\n}\n\n.lpc-priceCoins {\n color: #111111;\n font-family: var(--font-primary, "Poppins", sans-serif);\n font-size: 14px;\n font-style: normal;\n font-weight: 700;\n line-height: 120%;\n}\n\n.lpc-coinIcon {\n width: 14px;\n height: 14px;\n object-fit: contain;\n display: inline-block;\n}\n\n.lpc-cta {\n margin-top: 8px;\n border: 1px solid transparent;\n outline: none;\n width: 100%;\n padding: 12px 14px;\n cursor: pointer;\n background: #DC8EAB;\n color: var(--Theme-Text-Color, #FFF);\ntext-align: center;\nfont-family: var(--font-primary, "Poppins", sans-serif);\nfont-size: 14px;\nfont-style: normal;\nfont-weight: 700;\nline-height: 180%; /* 25.2px */\n/* text-transform: uppercase; */\n box-shadow: var(--lpc-cta-shadow);\n transition: transform 0.15s ease, box-shadow 0.15s ease;\n}\n\n.lpc-cta:hover:not(:disabled) {\n transform: translateY(-1px);\n}\n\n.lpc-cta:active:not(:disabled) {\n transform: translateY(1px);\n box-shadow: var(--lpc-cta-shadow-active);\n}\n\n.lpc-cta:disabled {\n cursor: not-allowed;\n}\n\n.lpc-nav {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 0px;\n padding: 0px 0 30px;\n}\n\n.lpc-navBtn {\n padding: 9px;\n border: none;\n background: transparent;\n color: #bcbcc7;\n font-size: 37px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;\n}\n\n.lpc-navBtn:disabled {\n color: #bcbcc7;\n opacity: 0.75;\n cursor: not-allowed;\n}\n\n.lpc-navBtn--enabled {\n background: #ececef;\n color: #3b3c4b;\n}\n\n@media (max-width: 1024px) {\n .lpc-heading {\n font-size: 32px !important;\n }\n\n .lpc-tierButton {\n min-width: 84px;\n padding: 16px 14px;\n font-size: 14px;\n }\n\n .lpc-cardList {\n padding: 20px 16px;\n gap: 12px;\n }\n\n .lpc-balanceBar {\n margin: 0 16px 8px;\n padding: 8px 10px;\n }\n\n .lpc-filterBar {\n gap: 8px;\n padding: 0 16px;\n margin-top: 16px;\n }\n\n .lpc-filterTab {\n padding: 8px 16px;\n font-size: 14px;\n }\n\n .lpc-balanceLabel,\n .lpc-balanceValue {\n font-size: 14px;\n }\n\n .lpc-card {\n flex-basis: 260px;\n min-height: 360px;\n }\n\n .lpc-coins {\n font-size: 11px;\n }\n\n .lpc-title {\n font-size: 16px;\n }\n\n .lpc-ratingRow {\n font-size: 12px;\n }\n\n .lpc-cta {\n padding: 12px;\n font-size: 13px;\n }\n\n .lpc-navBtn {\n width: 42px;\n height: 42px;\n font-size: 24px;\n }\n}\n');const hf={sectionTitle:"Get your favorites for free",subheading:"Earn more and unlock Freebies",display:"scroll",alignment:"center",titleFontSize:46,titleColor:"#25262D",subtitleColor:"#41439A",tabBackgroundColor:"#FFFFFF",tabActiveColor:"#FFFFFF",tabActiveTextColor:"#25262D",tabTextColor:"#25262D",cardBackgroundColor:"#FFFFFF",buttonColor:"#DC8EAB",buttonTextColor:"#FFFFFF",borderColor:"#E2E2E8",roundness:0,ctaText:"Sign in to access",coinBalanceLabel:"Balance:"},bf=e=>{if(null==e||""===e)return null;const t="number"==typeof e?e.toString():e;return t.includes("₹")?t:`₹${t}`},wf=({config:a})=>{const i={...hf,...a},{sectionTitle:l,catalogBanner:s,coinBalance:c,coinBalanceLabel:d,coinIconUrl:p,coinName:m,display:u,alignment:g,titleFontSize:f,titleColor:y,tabBackgroundColor:x,tabActiveColor:h,tabActiveTextColor:b,tabTextColor:w,cardBackgroundColor:v,buttonColor:C,buttonTextColor:E,borderColor:k,roundness:T,tiers:S,selectedTierId:N,filters:F,selectedFilterId:B,onFilterChange:$,products:z,ctaText:I}=i,P=o(null),[D,A]=t(!1),[_,L]=t(!1),[R,O]=t(null),M=r(()=>z,[z]),V=e=>{if(!P.current)return;const t=.8*P.current.clientWidth;P.current.scrollBy({left:"left"===e?-t:t,behavior:"smooth"})};n(()=>{const e=P.current;if(!e)return;const t=()=>{const t=e.scrollWidth-e.clientWidth;A(e.scrollLeft>1),L(e.scrollLeft<t-1)};return t(),e.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t),()=>{e.removeEventListener("scroll",t),window.removeEventListener("resize",t)}},[M.length]);const W="grid"===u?"lpc-cardList lpc-cardList--grid":"wrap"===u?"lpc-cardList lpc-cardList--wrap":"lpc-cardList lpc-cardList--scroll";return e.createElement("section",{className:"lpc-root"},e.createElement("div",{className:`lpc-header lpc-align-${g||"center"}`},s?e.createElement("img",{className:"lpc-banner",src:s,alt:"Catalog banner"}):null,l?e.createElement("h2",{className:"lpc-heading",style:{color:y,fontSize:`${f}px`}},l):null),null!=c&&""!==c?e.createElement("div",{className:"lpc-balanceBar"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none"},e.createElement("path",{d:"M1.53613 6.91208H16.1281C16.3318 6.91208 16.5272 6.99299 16.6712 7.13702C16.8152 7.28105 16.8961 7.47639 16.8961 7.68008V15.3601C16.8961 15.5638 16.8152 15.7591 16.6712 15.9031C16.5272 16.0472 16.3318 16.1281 16.1281 16.1281H2.30413C2.10045 16.1281 1.9051 16.0472 1.76107 15.9031C1.61705 15.7591 1.53613 15.5638 1.53613 15.3601V6.91208ZM2.30413 2.30408H13.8241V5.37608H1.53613V3.07208C1.53613 2.86839 1.61705 2.67305 1.76107 2.52902C1.9051 2.38499 2.10045 2.30408 2.30413 2.30408ZM11.5201 10.7521V12.2881H13.8241V10.7521H11.5201Z",fill:"black"})),e.createElement("span",{className:"lpc-balanceLabel"},d),p?e.createElement("img",{className:"lpc-coinIcon",src:p,alt:"Coin icon"}):null,e.createElement("span",{className:"lpc-balanceValue"},c," ",m??"coins")):null,F&&F.length>0?e.createElement("div",{className:"lpc-filterBar",style:{background:x},role:"tablist"},F.map(t=>{const n=B===t.id;return e.createElement("button",{key:t.id,type:"button",role:"tab","aria-selected":n,className:"lpc-filterTab "+(n?"lpc-filterTab--active":""),style:{background:n?h:"transparent",color:n?b:w,borderColor:n?h:k||"#E2E2E8","--lpc-filter-hover-bg":w||"#25262D","--lpc-filter-hover-text":x||"#FFFFFF"},onClick:()=>$?.(t)},t.label)})):null,e.createElement("div",{className:W,ref:P},0===M.length?e.createElement("div",{className:"lpc-emptyState"},"No products found"):M.map(t=>{const n=R===t.id,r=`${T||0}px`,o=Boolean(t.productUrl),a="fixed_price_product"!==t.couponType&&null!==t.coinsRequired&&void 0!==t.coinsRequired;return e.createElement("article",{key:t.id,className:"lpc-card",style:{background:v,borderColor:k,borderRadius:r,cursor:o?"pointer":void 0},onClick:()=>{t.productUrl&&"undefined"!=typeof window&&(window.location.href=t.productUrl)}},e.createElement("div",{className:"lpc-imageWrap",style:{borderTopLeftRadius:r,borderTopRightRadius:r}},e.createElement("img",{className:"lpc-image",src:t.imageUrl,alt:t.title})),e.createElement("div",{className:"lpc-meta"},e.createElement("h3",{className:"lpc-title"},t.title),t.description?e.createElement("p",{className:"lpc-description"},t.description):null,e.createElement("div",{className:"lpc-priceRow"},bf(t.mrp)?e.createElement(e.Fragment,null,e.createElement("span",{className:"lpc-priceMuted"},"MRP:"),e.createElement("span",{className:"lpc-priceStrikethrough"},bf(t.mrp))):null,bf(t.price)?e.createElement("span",{className:"lpc-priceNow"},bf(t.price)):null,bf(t.price)&&a?e.createElement("span",{className:"lpc-pricePlus"},"+"):null,p&&a?e.createElement("img",{className:"lpc-coinIcon",src:p,alt:"Coin icon"}):null,a?e.createElement("span",{className:"lpc-priceCoins"},t.coinsRequired," ",m??"coins"):null)),e.createElement("button",{className:"lpc-cta",style:{background:C,color:E,borderColor:C,borderBottomLeftRadius:r,borderBottomRightRadius:r,boxShadow:"0 3px 0 rgba(0, 0, 0, 0.18)","--lpc-cta-shadow":"0 3px 0 rgba(0, 0, 0, 0.18)","--lpc-cta-shadow-active":"0 1px 0 rgba(0, 0, 0, 0.18)",opacity:t.disabled?.55:1},type:"button","aria-busy":n,disabled:Boolean(t.disabled)||null!==R,onClick:async e=>{if(e.stopPropagation(),t.onButtonClick&&!t.disabled&&null===R)try{O(t.id),await t.onButtonClick(t)}finally{O(null)}}},n?e.createElement(og,{size:18,color:"#fff",centered:!0}):t.buttonText||I))})),"scroll"===u?e.createElement("div",{className:"lpc-nav"},e.createElement("button",{className:"lpc-navBtn "+(D?"lpc-navBtn--enabled":""),type:"button",onClick:()=>V("left"),disabled:!D},e.createElement(Nt,null)),e.createElement("button",{className:"lpc-navBtn "+(_?"lpc-navBtn--enabled":""),type:"button",onClick:()=>V("right"),disabled:!_},e.createElement(Ft,null))):null)},vf={wrap:{boxSizing:"border-box",display:"flex",width:"100%"},badge:{boxSizing:"border-box",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,minHeight:44,width:"fit-content",maxWidth:"100%",padding:"6px 24px",border:"1px solid #8f8f8f",borderRadius:999,background:"#fff",fontFamily:"Poppins, system-ui, -apple-system, sans-serif"},content:{boxSizing:"border-box",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,width:"fit-content",maxWidth:"100%",minHeight:"1em"},text:{display:"inline-flex",alignItems:"center",margin:0,color:"#2b2b2b",fontSize:18,fontWeight:400,lineHeight:1,whiteSpace:"nowrap"},coins:{display:"inline-flex",alignItems:"center",margin:0,color:"#2b2b2b",fontSize:20,fontWeight:700,lineHeight:1,whiteSpace:"nowrap"},icon:{boxSizing:"border-box",display:"block",width:26,height:26,objectFit:"contain",flex:"0 0 auto"}},Cf={left:"flex-start",center:"center",right:"flex-end"},Ef=e=>"number"==typeof e?`${e}px`:e;function kf({prefix:t="Get",iconUrl:n="",suffix:r="Coins",coinsEarned:o=0,widgetBackground:a="#FFFFFF",alignment:i="center",textColor:l="#2B2B2B",borderColor:s="#8F8F8F",badgeRoundness:c="999px",fontSize:d=18}){const p=Ef(d)??"18px",m="number"==typeof d?`${d+2}px`:`calc(${p} + 2px)`;return e.createElement("div",{className:"yt-peb-wrap",style:{...vf.wrap,justifyContent:Cf[i]}},e.createElement("div",{className:"yt-peb",style:{...vf.badge,background:a,borderColor:s,borderRadius:Ef(c)}},e.createElement("div",{className:"yt-peb__content",style:{...vf.content,textAlign:i}},t?e.createElement("span",{className:"yt-peb__text",style:{...vf.text,color:l,fontSize:p}},t):null,n?e.createElement("img",{className:"yt-peb__icon",style:vf.icon,src:n,alt:"","aria-hidden":"true"}):null,e.createElement("span",{className:"yt-peb__coins",style:{...vf.coins,color:l,fontSize:m}},o),r?e.createElement("span",{className:"yt-peb__text",style:{...vf.text,color:l,fontSize:p}},r):null)))}const Tf=["banner","referrals","gettingStarted","waysToEarn","customImage","customHtml","vipTiers","rewards","waysToRedeem"],Sf=e=>"INR"===e?"₹":e?`${e} `:"",Nf=(e,t)=>{const n=Number(e??0);return n>0?`min order ${Sf(t)}${n}`:"no mov"};function Ff(e){if(null==e||""===e)return"-";const t=Number(e);return Number.isNaN(t)?String(e):t.toLocaleString()}const Bf=({config:t,signedIn:n=!1,referralLocked:r=!1,userData:o,onBannerButtonClick:a,onReferralButtonClick:i,onReferralCopyClick:l,onRewardsButtonClick:s,onRedeemClick:c,onEarnMoreClick:d,onActiveCouponCopy:p})=>{const{sectionOrder:m,banner:u,referrals:g,gettingStarted:f,waysToEarn:y,vipTiers:x,rewards:h,waysToRedeem:b,customImage:w,customHtml:v,primaryColor:C="#1C1C1D",primaryContrastColor:P="#FFFFFF",secondaryColor:D="#FFFFFF",secondaryContrastColor:A="#000000",customCss:_,enableCustomCss:L}=t||{},R="undefined"!=typeof window&&window.innerWidth<=768,O=()=>{"undefined"!=typeof window&&window.ytapp&&(window.ytapp.loyaltyWidgetOpen=!0,window.dispatchEvent(new Event("loyaltyWidgetOpenChanged")))},M={...{padding:"12px 32px",borderRadius:"30px",fontSize:"14px",fontWeight:600,cursor:"pointer",textTransform:"uppercase",border:`1px solid ${C}`,transition:"all 0.3s ease"},backgroundColor:C,color:P,borderColor:C},V=n?u?.signedInView:u?.guestView,W={visibility:u?.visibility??"show",backgroundColor:u?.backgroundColor??"#F3F3F3",fontColor:u?.fontColor??"#000000",alignment:u?.alignment??"center",imageUrl:u?.imageUrl,badgeTitle:u?.badge?.enabled?u.badge.title?.trim():void 0,title:V?.title,subtitle:V?.subtitle,buttonText:u?.guestView?.buttonText,balanceCoins:u?.signedInView?.balanceCoins??o?.balanceCoins??(null!=o?.currentBalance?String(o.currentBalance):void 0),currentTier:u?.signedInView?.currentTier,nextTier:u?.signedInView?.nextTier,currentLtv:u?.signedInView?.currentLtv,nextTierLtv:u?.signedInView?.nextTierLtv,tierIcon:u?.signedInView?.tierIcon,memberSince:u?.signedInView?.memberSince,rewardTierCriteria:u?.signedInView?.rewardTierCriteria??o?.rewardTierCriteria,purchaseValueMethod:u?.signedInView?.purchaseValueMethod??o?.purchaseValueMethod,currencyCode:u?.signedInView?.currencyCode??o?.currencyCode,showTierProgress:u?.showTierProgress??!1},j=Number(W.currentLtv),H=Number(W.nextTierLtv),q=W.showTierProgress&&Number.isFinite(j)&&Number.isFinite(H)&&H>0,U=q?Math.min(100,Math.max(0,j/H*100)):0,Q=q?Math.max(0,H-j):0,Y=function(e,t,n,r,o){const a="INR"===o?"₹":o?`${o} `:"",i=Ff(n),l=Ff(r);return"ltv"===e&&"order_count"===t?{currentLabel:`${i} orders`,remainingLabel:`${l} orders`}:"ltv"===e&&"purchase_value"===t?{currentLabel:`${a}${i} spent`,remainingLabel:`${a}${l}`}:"loyalty_points"===e?{currentLabel:`${i} points`,remainingLabel:`${l} points`}:{currentLabel:i,remainingLabel:l}}(W.rewardTierCriteria,W.purchaseValueMethod,j,Q,W.currencyCode),Z=n?g?.signedInView:g?.guestView,G={visibility:g?.visibility??"show",backgroundColor:g?.backgroundColor??"#FFFFFF",fontColor:g?.fontColor??"#111111",badgeTitle:g?.badge?.enabled?g.badge.title?.trim():void 0,imageUrl:g?.imageUrl,imagePosition:g?.imagePosition??"left",guestVisibility:g?.guestVisibility??!0,title:Z?.title,subtitle:Z?.subtitle,buttonText:g?.guestView?.buttonText,referralLinkValue:g?.signedInView?.referralLinkValue??o?.referralLink},X={visibility:f?.visibility??"show",backgroundColor:f?.backgroundColor??"#FFFFFF",fontColor:f?.fontColor??"#111111",badgeTitle:f?.badge?.enabled?f.badge.title?.trim():void 0,title:f?.title,subtitle:f?.subtitle,steps:f?.steps},K={visibility:y?.visibility??"show",backgroundColor:y?.backgroundColor??"#FFFFFF",fontColor:y?.fontColor??"#111111",badgeTitle:y?.badge?.enabled?y.badge.title?.trim():void 0,title:y?.title,subtitle:y?.subtitle,guestVisibility:y?.guestVisibility??!0,showIcons:y?.showIcons??!0,ctaBg:y?.ctaBg??"#4E7E80",ctaFontColor:y?.ctaFontColor??"#FFFFFF",items:y?.items},J={visibility:h?.visibility??"show",backgroundColor:h?.backgroundColor??"#FFFFFF",fontColor:h?.fontColor??"#111111",badgeTitle:h?.badge?.enabled?h.badge.title?.trim():void 0,imageUrl:h?.imageUrl,imagePosition:h?.imagePosition??"left",title:h?.title,description:h?.description,disclaimerText:h?.disclaimerText,buttonText:h?.buttonText,bottomCtaTitle:h?.bottomCtaTitle,bottomCtaSubtitle:h?.bottomCtaSubtitle},ee={visibility:b?.visibility??"show",backgroundColor:b?.backgroundColor??"#FFFFFF",fontColor:b?.fontColor??"#111111",badgeTitle:b?.badge?.enabled?b.badge.title?.trim():void 0,title:b?.title,subtitle:b?.subtitle,balanceLabel:b?.balanceLabel??"points available",balanceValue:b?.balanceValue??o?.balanceCoins??(null!=o?.currentBalance?String(o.currentBalance):void 0),balanceCtaText:b?.balanceCtaText??"earn more",currencyCode:b?.currencyCode??o?.currencyCode,activeCoupon:b?.activeCoupon?.trim(),activeCouponLabel:b?.activeCouponLabel??"You have an active coupon",freebies:b?.freebies,items:b?.items},te={visibility:w?.visibility??"show",imageUrl:w?.imageUrl},ne={visibility:v?.visibility??"show",htmlText:v?.htmlText},re={visibility:x?.visibility??"show",backgroundColor:x?.backgroundColor??"#FFFFFF",fontColor:x?.fontColor??"#111111",badgeTitle:x?.badge?.enabled?x.badge.title?.trim():void 0,title:x?.title,subtitle:x?.subtitle,benefitHeaderLabel:x?.benefitHeaderLabel,tiers:x?.tiers,rows:x?.rows,signedInView:{benefitHeaderLabel:x?.signedInView?.benefitHeaderLabel??x?.benefitHeaderLabel,statusLabel:x?.signedInView?.statusLabel,statuses:x?.signedInView?.statuses}},oe=async e=>{const t=e.code;t&&(e.onCopy?await e.onCopy(t):"undefined"!=typeof navigator&&navigator.clipboard&&await navigator.clipboard.writeText(t))},ae=Array.isArray(m)?m:[],ie=Array.from(new Set(ae.filter(e=>Tf.includes(e)))),le=[...ie,...Tf.filter(e=>!ie.includes(e))],se=e=>le.indexOf(e);return e.createElement("div",{className:"yt-loyalty-page-container",style:{fontFamily:"'Poppins', sans-serif",display:"flex",flexDirection:"column",width:"100%",maxWidth:"1440px",margin:"0 auto",overflow:"hidden",boxSizing:"border-box"}},L&&_?.trim()&&e.createElement("style",{"data-yt-custom-css":"loyalty-page",dangerouslySetInnerHTML:{__html:_}}),"show"===W.visibility&&e.createElement("div",{className:"yt-loyalty-page-banner","data-signed-in":n?"true":void 0,"data-current-tier":n&&W.currentTier?W.currentTier:void 0,style:{order:se("banner"),display:"flex",alignItems:"center",justifyContent:"left"===W.alignment?"flex-start":"right"===W.alignment?"flex-end":"center",width:"100%",backgroundColor:W.backgroundColor,backgroundImage:W.imageUrl?`url(${W.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",border:"1px solid #E1E1E1",padding:R?"72px 20px":"120px 32px"}},e.createElement("div",{className:"yt-loyalty-page-banner-content",style:{width:"100%",maxWidth:"760px",textAlign:W.alignment,display:"flex",flexDirection:"column",alignItems:"left"===W.alignment?"flex-start":"right"===W.alignment?"flex-end":"center",gap:R?"18px":"20px"}},W.badgeTitle?e.createElement("div",{className:"yt-loyalty-page-banner-badge",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"28px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:"#111111",fontSize:"14px",lineHeight:1,fontWeight:600}},W.badgeTitle):null,e.createElement("h1",{className:"yt-loyalty-page-banner-title",style:{margin:0,fontSize:R?"40px":"56px",lineHeight:R?1.05:1.08,letterSpacing:"-0.03em",fontWeight:700,color:W.fontColor}},W.title),e.createElement("p",{className:"yt-loyalty-page-banner-subtitle",style:{margin:0,maxWidth:"620px",fontSize:R?"22px":"28px",lineHeight:1.18,fontWeight:400,color:W.fontColor}},W.subtitle),n?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-loyalty-page-banner-balance-card",style:{display:"flex",flexDirection:"column",alignItems:"center",marginTop:R?"8px":"10px",minWidth:R?"280px":"288px",padding:R?"18px 24px":"18px 28px",borderRadius:"20px",border:"1px solid rgba(255,255,255,0.72)",background:"linear-gradient(180deg, rgba(255,255,255,0.66) 0%, rgba(238,238,238,0.92) 100%)",boxShadow:"0 18px 50px rgba(17, 17, 17, 0.08), inset 0 1px 0 rgba(255,255,255,0.75)",backdropFilter:"blur(12px)"}},e.createElement("div",{style:{marginBottom:"6px",fontSize:"14px",lineHeight:1.2,color:W.fontColor}},"Current Balance"),e.createElement("div",{style:{fontSize:R?"56px":"64px",lineHeight:.95,letterSpacing:"-0.05em",fontWeight:700,color:W.fontColor}},W.balanceCoins),W.showTierProgress&&W.currentTier?e.createElement("div",{className:"yt-loyalty-page-banner-tier","data-tier":W.currentTier,style:{display:"inline-flex",alignItems:"center",gap:"8px",marginTop:"12px",color:W.fontColor,fontFamily:"Inter",fontSize:R?"16px":"18px",fontWeight:700,lineHeight:1.1,letterSpacing:"0.08em",textTransform:"uppercase"}},W.tierIcon?e.createElement("img",{src:W.tierIcon,alt:"",style:{width:"24px",height:"24px",objectFit:"contain",display:"block"}}):e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e.createElement("path",{d:"M12 2L20 7V17L12 22L4 17V7L12 2Z",fill:C,stroke:C,strokeWidth:"1.2",strokeLinejoin:"round"}),e.createElement("path",{d:"M12 2L20 7L12 12L4 7L12 2Z",fill:"rgba(255,255,255,0.3)",strokeLinejoin:"round"})),W.currentTier):null),q?e.createElement("div",{className:"yt-loyalty-page-banner-progress",style:{marginTop:"10px",width:"100%",maxWidth:"640px",padding:R?"14px 18px":"16px 24px",borderRadius:"16px",backgroundColor:"#FFFFFF",boxShadow:"0 8px 22px rgba(17, 17, 17, 0.06)",boxSizing:"border-box"}},W.memberSince||W.currentTier?e.createElement("div",{className:"yt-loyalty-page-banner-progress-heading",style:{marginBottom:"12px",fontSize:R?"16px":"18px",lineHeight:1.2,fontWeight:600,color:W.fontColor}},W.currentTier?`${W.currentTier}${W.memberSince?` since ${W.memberSince}`:""}`:"Member"):null,e.createElement("div",{className:"yt-loyalty-page-banner-progress-bar",style:{position:"relative",width:"100%",height:R?"32px":"40px",display:"flex",alignItems:"center"}},e.createElement("div",{className:"yt-loyalty-page-banner-progress-track",style:{width:"100%",height:"8px",borderRadius:"999px",backgroundColor:"#E5E5E5",overflow:"hidden"}},e.createElement("div",{className:"yt-loyalty-page-banner-progress-fill",style:{display:"block !important",width:`${U}%`,height:"100%",backgroundColor:C||W.fontColor||"#1C1C1D",borderRadius:"999px",transition:"width 0.3s ease"}})),e.createElement("div",{className:"yt-loyalty-page-banner-progress-icon",style:{position:"absolute",left:`calc(${U}% - ${(R?32:40)*U/100}px)`,top:"50%",transform:"translateY(-50%)",width:R?"32px":"40px",height:R?"32px":"40px",display:"flex",alignItems:"center",justifyContent:"center",transition:"left 0.3s ease"}},W.tierIcon?e.createElement("img",{src:W.tierIcon,alt:"",style:{width:"100%",height:"100%",objectFit:"contain",display:"block"}}):e.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},e.createElement("path",{d:"M12 2L20 7V17L12 22L4 17V7L12 2Z",fill:C,stroke:C,strokeWidth:"1.2",strokeLinejoin:"round"}),e.createElement("path",{d:"M12 2L20 7L12 12L4 7L12 2Z",fill:"rgba(255,255,255,0.3)",strokeLinejoin:"round"})))),e.createElement("div",{className:"yt-loyalty-page-banner-progress-meta",style:{marginTop:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",fontSize:R?"13px":"14px",lineHeight:1.2,fontWeight:500,color:W.fontColor}},e.createElement("span",null,0===j?"member":Y.currentLabel),W.nextTier?e.createElement("span",null,Y.remainingLabel," to"," ",W.nextTier):null)):null):e.createElement("button",{className:"yt-loyalty-page-banner-button",style:{...M,marginTop:R?"8px":"10px",padding:R?"14px 26px":"16px 30px",border:"none",borderRadius:"14px",boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)",fontSize:R?"16px":"18px",fontWeight:500,textTransform:"none"},onClick:async()=>{a?await a():O()}},W.buttonText))),"show"===G.visibility&&(n||G.guestVisibility)&&e.createElement("div",{className:"yt-loyalty-page-referrals",style:{order:se("referrals"),width:"100%",backgroundColor:G.backgroundColor,boxSizing:"border-box"}},e.createElement("div",{className:"yt-loyalty-page-referrals-content",style:{width:"100%",boxSizing:"border-box"}},e.createElement("div",{className:"yt-loyalty-page-referrals-card",style:{width:"100%",boxSizing:"border-box",display:"flex",flexDirection:R?"column":"row",alignItems:"stretch",overflow:"hidden",border:"1px solid #E1E1E1"}},e.createElement("div",{className:"yt-loyalty-page-referrals-image-wrapper",style:{flex:R?"1 1 auto":"0 0 50%",minWidth:0,boxSizing:"border-box",order:R||"left"===G.imagePosition?0:1,minHeight:R?"320px":"560px"}},e.createElement("div",{className:"yt-loyalty-page-referrals-image",style:{display:"block",width:"100%",height:"100%",minHeight:R?"320px":"560px",backgroundImage:G.imageUrl?`url(${G.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat"}})),e.createElement("div",{className:"yt-loyalty-page-referrals-copy",style:{flex:R?"1 1 auto":"0 0 50%",minWidth:0,boxSizing:"border-box",order:R||"left"===G.imagePosition?1:0,padding:R?"32px 24px 40px":"72px 48px",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"}},G.badgeTitle?e.createElement("div",{className:"yt-loyalty-page-referrals-badge",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"28px",marginBottom:"44px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:"#111111",fontSize:"14px",lineHeight:1,fontWeight:600}},G.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-referrals-title",style:{margin:0,maxWidth:"520px",fontSize:R?"28px":n?"34px":"36px",lineHeight:1.1,letterSpacing:"-0.03em",fontWeight:400,color:G.fontColor}},G.title),e.createElement("p",{className:"yt-loyalty-page-referrals-subtitle",style:{margin:"18px 0 0",maxWidth:"580px",fontSize:R?"16px":"18px",lineHeight:1.24,fontWeight:400,color:G.fontColor}},G.subtitle),n&&r?e.createElement("div",{className:"yt-loyalty-page-referrals-locked",style:{marginTop:"34px",display:"flex",alignItems:"center",gap:"12px",maxWidth:"440px",padding:"14px 18px",border:"1px dashed rgba(0, 0, 0, 0.3)",borderRadius:"14px",backgroundColor:"rgba(136, 136, 136, 0.08)"}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:G.fontColor,strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},"aria-hidden":"true"},e.createElement("rect",{x:"4",y:"10.5",width:"16",height:"10",rx:"2.2"}),e.createElement("path",{d:"M8 10.5V7.5a4 4 0 0 1 8 0v3"}),e.createElement("circle",{cx:"12",cy:"15.5",r:"1.4"})),e.createElement("div",{style:{textAlign:"left"}},e.createElement("p",{style:{margin:0,fontSize:"15px",lineHeight:1.3,fontWeight:600,color:G.fontColor}},"Referrals unlock after your first order"),e.createElement("p",{style:{margin:"4px 0 0",fontSize:"13px",lineHeight:1.4,fontWeight:400,opacity:.75,color:G.fontColor}},"Once your first order is delivered you can share your referral link and start earning rewards"))):n?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-loyalty-page-referrals-link-row",style:{width:"100%",minWidth:0,marginTop:"34px",display:"flex",alignItems:"center",gap:"10px"}},e.createElement("div",{className:"yt-loyalty-page-referrals-link-pill",style:{flex:1,minWidth:0,display:"flex",alignItems:"center",gap:"10px",minHeight:"38px",padding:"0 14px",border:"1px solid #D7D7D7",borderRadius:"999px",backgroundColor:"#FFFFFF"}},e.createElement("span",{style:{fontSize:"16px",lineHeight:1,color:"#222222"}},"↗"),e.createElement("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"14px",lineHeight:1.2,fontWeight:600,color:G.fontColor}},G.referralLinkValue)),e.createElement("button",{type:"button",onClick:async()=>{l&&G.referralLinkValue?await l(G.referralLinkValue):"undefined"!=typeof navigator&&navigator.clipboard&&G.referralLinkValue&&await navigator.clipboard.writeText(G.referralLinkValue)},style:{width:"38px",height:"38px",borderRadius:"999px",border:"1px solid #CFCDE8",backgroundColor:"#DFDCF4",color:"#6F68A7",fontSize:"14px",lineHeight:1,fontWeight:600,cursor:"pointer",flexShrink:0}},"⧉")),e.createElement("p",{style:{margin:"12px 0 0",fontSize:"14px",lineHeight:1.2,fontWeight:400,color:"#8A8A8A"}},"Share your referral link with your friend")):e.createElement("button",{className:"yt-loyalty-page-referrals-button",style:{...M,marginTop:"34px",padding:R?"14px 26px":"16px 30px",border:"none",borderRadius:"14px",boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)",fontSize:R?"16px":"18px",fontWeight:500,textTransform:"none"},onClick:async()=>{i?await i():O()}},G.buttonText))))),"show"===X.visibility&&e.createElement("div",{className:"yt-loyalty-page-getting-started",style:{order:se("gettingStarted"),backgroundColor:X.backgroundColor,border:"1px solid #E1E1E1",padding:R?"56px 20px":"72px 32px 88px"}},e.createElement("div",{className:"yt-loyalty-page-getting-started-content",style:{maxWidth:"1120px",margin:"0 auto",textAlign:"center"}},X.badgeTitle?e.createElement("div",{className:"yt-loyalty-page-getting-started-badge",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"28px",marginBottom:"22px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:"#111111",fontSize:"14px",lineHeight:1,fontWeight:600}},X.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-getting-started-title",style:{margin:0,fontSize:R?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:X.fontColor}},X.title),e.createElement("p",{className:"yt-loyalty-page-getting-started-subtitle",style:{margin:R?"14px auto 0":"16px auto 0",maxWidth:"620px",color:X.fontColor,fontSize:R?"16px":"18px",lineHeight:1.22,fontWeight:400}},X.subtitle),e.createElement("div",{className:"yt-loyalty-page-getting-started-grid",style:{marginTop:R?"40px":"64px",display:"flex",flexDirection:R?"column":"row",justifyContent:"space-between",alignItems:"stretch",gap:R?"28px":"24px"}},X.steps?.map((t,n)=>e.createElement("div",{key:n,className:"yt-loyalty-page-getting-started-step",style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",padding:R?"0":"0 18px"}},e.createElement("div",{className:"yt-loyalty-page-getting-started-step-number",style:{marginBottom:"10px",fontSize:R?"52px":"68px",lineHeight:.95,letterSpacing:"-0.04em",fontWeight:700,color:X.fontColor}},String(n+1)),e.createElement("div",{className:"yt-loyalty-page-getting-started-step-title",style:{marginBottom:"8px",fontSize:R?"24px":"28px",lineHeight:1.08,letterSpacing:"-0.03em",fontWeight:400,color:X.fontColor}},t.title),e.createElement("p",{className:"yt-loyalty-page-getting-started-step-description",style:{margin:0,maxWidth:"240px",fontSize:R?"16px":"18px",lineHeight:1.21,fontWeight:400,color:X.fontColor}},t.description)))))),"show"===K.visibility&&(n||K.guestVisibility)&&e.createElement("div",{className:"yt-loyalty-page-ways-to-earn",style:{order:se("waysToEarn"),backgroundColor:K.backgroundColor,border:"1px solid #E1E1E1",padding:R?"56px 20px":"72px 32px 64px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-content",style:{maxWidth:"1120px",margin:"0 auto",textAlign:"center"}},K.badgeTitle?e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-badge",style:{alignItems:"center",justifyContent:"center",display:"inline-flex",minHeight:"28px",marginBottom:"22px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:"#111111",fontSize:"14px",lineHeight:1,fontWeight:600}},K.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-ways-to-earn-title",style:{margin:0,fontSize:R?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:K.fontColor}},K.title),e.createElement("p",{className:"yt-loyalty-page-ways-to-earn-subtitle",style:{margin:R?"14px auto 0":"16px auto 0",maxWidth:"680px",color:K.fontColor,fontSize:R?"16px":"18px",lineHeight:1.22,fontWeight:400}},K.subtitle),e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-grid",style:{marginTop:R?"40px":"56px",display:"flex",flexWrap:"wrap",justifyContent:"center",columnGap:R?"28px":"24px",rowGap:"36px"}},K.items?.map((t,n)=>{const r=t.ctaTitle??t.signedInActionLabel,o=t.ctaVisible??Boolean(r),a=t.ctaDisabled??!1,i=K.ctaBg,l=K.ctaFontColor;return e.createElement("div",{key:n,className:"yt-loyalty-page-ways-to-earn-item",style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",width:R?"100%":"calc((100% - 48px) / 3)",maxWidth:R?"100%":"calc((100% - 48px) / 3)",padding:R?"0":"0 18px"}},K.showIcons?e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-item-icon",style:{fontSize:"32px",lineHeight:1,color:K?.fontColor??"#5A5A5A",marginBottom:"5px"}},(t=>{if(t&&"string"!=typeof t)return t;switch(t){case"birthday":return e.createElement(E,null);case"feedback":return e.createElement(z,null);case"wallet":return e.createElement($,null);case"referral":return e.createElement(B,null);case"instagram":return e.createElement(F,null);case"facebook":return e.createElement(N,null);case"twitter":return e.createElement(S,null);case"youtube":return e.createElement(T,null);default:return e.createElement(k,null)}})(t.icon)):null,e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-item-title",style:{marginBottom:"4px",fontSize:R?"24px":"28px",lineHeight:1.16,letterSpacing:"-0.03em",fontWeight:400,color:K.fontColor,minHeight:R?"56px":"72px",display:"flex",alignItems:"flex-start",justifyContent:"center"}},t.title),e.createElement("p",{className:"yt-loyalty-page-ways-to-earn-item-description",style:{margin:0,maxWidth:"240px",fontSize:R?"16px":"18px",lineHeight:1.21,fontWeight:400,color:K.fontColor,minHeight:R?"40px":"52px"}},t.description),e.createElement("div",{style:{marginTop:"4px",minHeight:"42px",width:"100%",display:"flex",justifyContent:"center"}},o&&r?e.createElement("button",{className:"yt-loyalty-page-ways-to-earn-item-action",style:{minWidth:R?"180px":"188px",minHeight:"42px",padding:"9px 20px",border:"none",borderRadius:"0px",backgroundColor:i,color:l,fontSize:"16px",lineHeight:1,fontWeight:600,cursor:a?"not-allowed":"pointer",opacity:a?.6:1},disabled:a,onClick:t.onClick},r):null))})))),"show"===te.visibility&&te.imageUrl?e.createElement("div",{className:"yt-loyalty-page-custom-image",style:{order:se("customImage"),backgroundColor:"#FFFFFF",border:"1px solid #E1E1E1"}},e.createElement("div",{style:{margin:"0 auto"}},e.createElement("img",{src:te.imageUrl,alt:"",style:{display:"block",width:"100%",height:"auto",objectFit:"cover"}}))):null,"show"===ne.visibility&&ne.htmlText?e.createElement("div",{className:"yt-loyalty-page-custom-html",style:{order:se("customHtml"),backgroundColor:"#FFFFFF",border:"1px solid #E1E1E1",padding:R?"32px 20px":"40px 32px",color:"#111111"}},e.createElement("div",{style:{maxWidth:"1200px",margin:"0 auto"},dangerouslySetInnerHTML:{__html:ne.htmlText}})):null,"show"===re.visibility&&e.createElement("div",{className:"yt-loyalty-page-vip-tiers",style:{order:se("vipTiers"),backgroundColor:re.backgroundColor,border:"1px solid #E1E1E1",padding:R?"56px 20px":"72px 32px 56px"}},e.createElement("div",{className:"yt-loyalty-page-vip-tiers-content",style:{maxWidth:"1200px",margin:"0 auto"}},e.createElement("div",{style:{textAlign:"center",marginBottom:R?"32px":"40px"}},re.badgeTitle?e.createElement("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"28px",marginBottom:"22px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:re.fontColor,fontSize:"14px",lineHeight:1,fontWeight:600}},re.badgeTitle):null,e.createElement("h2",{style:{margin:0,fontSize:R?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:re.fontColor}},re.title),e.createElement("p",{style:{margin:"16px auto 0",maxWidth:"760px",fontSize:R?"16px":"18px",lineHeight:1.22,fontWeight:400,color:re.fontColor}},re.subtitle)),e.createElement("div",{style:{overflowX:"auto",border:"1px solid #D7D7D7",backgroundColor:"#FFFFFF"}},e.createElement("table",{style:{width:"100%",minWidth:R?"760px":"100%",borderCollapse:"collapse",tableLayout:"fixed"}},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{style:{width:R?"240px":"28%",padding:"16px 14px",borderBottom:"1px solid #D7D7D7",textAlign:"left",color:re.fontColor,fontFamily:"Inter",fontSize:"15.654px",fontStyle:"normal",fontWeight:"700",lineHeight:"17.313px",letterSpacing:"0.693px",textTransform:"uppercase",backgroundColor:"#FFFFFF"}},re.benefitHeaderLabel),re.tiers?.map(t=>e.createElement("th",{key:t.id,style:{padding:"14px 12px",borderBottom:"1px solid #D7D7D7",backgroundColor:t.headerBackgroundColor??"#EFEFEF",textAlign:"center",color:"#FFFFFF"}},e.createElement("div",{style:{fontFamily:"Inter",fontSize:"15.654px",fontStyle:"normal",fontWeight:"700",lineHeight:"17.313px",letterSpacing:"0.693px",textTransform:"uppercase"}},t.title),t.pointsLabel?e.createElement("div",{style:{marginTop:"4px",fontSize:"12px",lineHeight:1.2,fontWeight:400,letterSpacing:"0.06em"}},t.pointsLabel):null))),n?e.createElement("tr",null,e.createElement("th",{style:{padding:"12px 14px",borderBottom:"1px solid #D7D7D7",textAlign:"left",fontSize:"14px",lineHeight:1.2,fontWeight:700,color:re.fontColor,textTransform:"uppercase",backgroundColor:"#FFFFFF"}},re.signedInView.statusLabel),re.tiers?.map(t=>{const n=re.signedInView.statuses?.find(e=>e.tierId===t.id),r="achieved"===n?.text?.trim().toLowerCase();return e.createElement("th",{key:`${t.id}-status`,style:{padding:"12px 10px",borderBottom:"1px solid #D7D7D7",textAlign:"center",backgroundColor:r?"#FFFFFF":"#F6F6F6",color:re.fontColor,fontSize:"12px",lineHeight:1.2,fontWeight:r?700:500,textTransform:"uppercase",letterSpacing:"0.04em"}},n?.text??"")})):null),e.createElement("tbody",null,re.rows?.map((t,n)=>e.createElement("tr",{key:`${t.title}-${n}`},e.createElement("td",{style:{padding:"14px 14px",borderBottom:n===(re.rows?.length??0)-1?"none":"1px solid #D7D7D7",verticalAlign:"middle"}},e.createElement("div",{style:{color:re.fontColor,fontFamily:"Poppins",fontSize:"15.023px",fontStyle:"normal",fontWeight:"600",lineHeight:"17.313px",letterSpacing:"0.693px"}},t.title),t.description?e.createElement("div",{style:{color:re.fontColor,fontFamily:"Inter",fontSize:"12.552px",fontStyle:"normal",fontWeight:300,lineHeight:"22.161px",letterSpacing:"0.693px"}},t.description):null),re.tiers?.map(r=>e.createElement("td",{key:`${t.title}-${r.id}`,style:{padding:"14px 10px",borderBottom:n===(re.rows?.length??0)-1?"none":"1px solid #D7D7D7",textAlign:"center",verticalAlign:"middle"}},t.tierIds.includes(r.id)?e.createElement("span",{style:{display:"inline-block",width:"10px",height:"10px",borderRadius:"999px",backgroundColor:r.indicatorColor??"#666666"}}):null))))))))),"show"===J.visibility&&!n&&e.createElement("div",{className:"yt-loyalty-page-rewards",style:{order:se("rewards"),backgroundColor:J.backgroundColor,border:"1px solid #E1E1E1",padding:R?"40px 20px":"48px 32px 56px"}},e.createElement("div",{className:"yt-loyalty-page-rewards-content",style:{maxWidth:"1200px",margin:"0 auto"}},e.createElement("div",{className:"yt-loyalty-page-rewards-hero",style:{display:"flex",flexDirection:R?"column":"row",alignItems:"stretch",overflow:"hidden",border:"1px solid #E1E1E1"}},e.createElement("div",{className:"yt-loyalty-page-rewards-image-wrapper",style:{flex:1,order:R||"left"===J.imagePosition?0:1,minHeight:R?"280px":"340px"}},e.createElement("div",{className:"yt-loyalty-page-rewards-image",style:{display:"block",width:"100%",height:"100%",minHeight:R?"280px":"340px",backgroundImage:J.imageUrl?`url(${J.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center"}})),e.createElement("div",{className:"yt-loyalty-page-rewards-copy",style:{flex:1,order:R||"left"===J.imagePosition?1:0,padding:R?"28px 24px":"32px 40px",display:"flex",flexDirection:"column",justifyContent:"start"}},J.badgeTitle?e.createElement("div",{className:"yt-loyalty-page-rewards-badge",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"28px",marginBottom:"22px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:"#111111",fontSize:"14px",lineHeight:1,fontWeight:600,alignSelf:R?"center":"flex-start"}},J.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-rewards-title",style:{margin:0,maxWidth:"420px",fontSize:R?"20px":"25px",lineHeight:1.06,letterSpacing:"-0.03em",fontWeight:700,color:J?.fontColor??"#111111"}},J.title),e.createElement("p",{className:"yt-loyalty-page-rewards-description",style:{margin:"20px 0 0",maxWidth:"470px",fontSize:R?"12px":"14px",lineHeight:1.35,fontWeight:400,color:J.fontColor,whiteSpace:"pre-line"}},J.description))),e.createElement("div",{className:"yt-loyalty-page-rewards-disclaimer",style:{marginTop:"14px",backgroundColor:"#1F232B",color:"#FFFFFF",padding:"15px 20px",textAlign:"center",fontSize:"15px",lineHeight:1.3,fontWeight:400,fontStyle:"italic"}},J.disclaimerText),e.createElement("div",{className:"yt-loyalty-page-rewards-cta",style:{display:"flex",flexDirection:R?"column":"row",justifyContent:"space-between",alignItems:"center",marginTop:"20px",padding:R?"24px":"26px 28px",border:"1px solid #D4D4D4",gap:"18px",textAlign:R?"center":"left"}},e.createElement("div",{className:"yt-loyalty-page-rewards-cta-copy"},e.createElement("h3",{style:{margin:0,fontSize:R?"28px":"32px",lineHeight:1.05,fontWeight:700,letterSpacing:"-0.03em",color:J.fontColor}},J.bottomCtaTitle),e.createElement("p",{style:{margin:"8px 0 0",fontSize:"18px",lineHeight:1.25,fontWeight:400,color:J.fontColor}},J.bottomCtaSubtitle)),e.createElement("button",{className:"yt-loyalty-page-rewards-cta-button",style:{...M,minWidth:R?"100%":"220px",padding:"14px 28px",borderRadius:"0px",border:"none",boxShadow:"none",fontSize:"18px",fontWeight:700},onClick:async()=>{s?await s():O()}},J.buttonText)))),"show"===ee.visibility&&e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem",style:{order:se("waysToRedeem"),backgroundColor:ee.backgroundColor,border:"1px solid #E1E1E1",padding:R?"48px 20px":"72px 32px 80px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-content",style:{maxWidth:"1200px",margin:"0 auto"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-header",style:{display:"flex",flexDirection:R?"column":"row",justifyContent:"space-between",alignItems:R?"stretch":"flex-start",gap:R?"24px":"32px",marginBottom:R?"32px":"44px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-heading"},ee.badgeTitle?e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-badge",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"28px",marginBottom:"18px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:"#111111",fontSize:"14px",lineHeight:1,fontWeight:600}},ee.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-ways-to-redeem-title",style:{margin:0,fontSize:R?"34px":"44px",lineHeight:1.05,letterSpacing:"-0.03em",fontWeight:700,color:ee.fontColor}},ee.title),ee.subtitle?e.createElement("p",{className:"yt-loyalty-page-ways-to-redeem-subtitle",style:{margin:"12px 0 0",fontSize:R?"16px":"18px",lineHeight:1.24,fontWeight:400,color:"#6B6B6B"}},ee.subtitle):null),null!=ee.balanceValue&&""!==ee.balanceValue?e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-balance",style:{flexShrink:0,minWidth:R?"auto":"240px",padding:R?"18px 22px":"20px 26px",borderRadius:"12px",backgroundColor:"#111111",color:"#FFFFFF",display:"flex",flexDirection:"column",alignItems:"flex-start"}},e.createElement("div",{style:{fontSize:R?"32px":"36px",lineHeight:1,letterSpacing:"-0.03em",fontWeight:700}},"number"==typeof ee.balanceValue?ee.balanceValue.toLocaleString():ee.balanceValue),e.createElement("div",{style:{marginTop:"8px",fontSize:"13px",lineHeight:1.2,fontWeight:400,color:"rgba(255,255,255,0.8)"}},ee.balanceLabel,ee.balanceCtaText?e.createElement(e.Fragment,null," · ",e.createElement("span",{role:"button",tabIndex:0,onClick:async()=>{d?await d():O()},style:{color:"#FFFFFF",fontWeight:500,textDecoration:"underline",cursor:"pointer"}},ee.balanceCtaText)):null)):null),ee.activeCoupon?e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-active",style:{display:"flex",flexDirection:R?"column":"row",alignItems:R?"flex-start":"center",gap:R?"10px":"16px",marginBottom:R?"20px":"24px",padding:R?"14px 16px":"16px 20px",border:"1px solid #E1E1E1",borderRadius:"12px",backgroundColor:"#F7F7F7"}},e.createElement("span",{className:"yt-loyalty-page-ways-to-redeem-active-title",style:{flexShrink:0,fontSize:R?"15px":"16px",lineHeight:1.2,fontWeight:700,color:"#111111"}},ee.activeCouponLabel),e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-active-pill",style:{display:"flex",alignItems:"center",gap:"10px",minHeight:"40px",padding:"0 6px 0 16px",border:"1px solid #D7D7D7",borderRadius:"999px",backgroundColor:"#FFFFFF",maxWidth:"100%"}},e.createElement("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"14px",lineHeight:1.2,fontWeight:700,letterSpacing:"0.04em",color:"#111111"}},ee.activeCoupon),e.createElement("button",{type:"button",className:"yt-loyalty-page-ways-to-redeem-active-copy",onClick:()=>(async e=>{e&&(p?await p(e):"undefined"!=typeof navigator&&navigator.clipboard&&await navigator.clipboard.writeText(e))})(ee.activeCoupon),style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",height:"30px",padding:"0 14px",border:"none",borderRadius:"999px",backgroundColor:C,color:P,fontSize:"13px",lineHeight:1,fontWeight:600,cursor:"pointer"}},e.createElement("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},e.createElement("rect",{x:"9",y:"9",width:"11",height:"11",rx:"2"}),e.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})),"Copy"))):null,e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-grid",style:{display:"grid",gridTemplateColumns:R?"1fr":"repeat(3, 1fr)",gap:R?"16px":"20px"}},ee.freebies?.map((t,n)=>{const r=t.state??"eligible",o=t.gating??"points",a=t.target??0,i=t.current??0,l="locked"===r,s="claimed"===r,c=l&&"tier"===o,d=l&&"points"===o,p=a>0?Math.min(100,Math.max(0,Math.round(i/a*100))):0,m="ltv"===t.rewardTierCriteria&&"purchase_value"===t.purchaseValueMethod,u=null==t.rewardTierCriteria?t.unit??"":m?"":"loyalty_points"===t.rewardTierCriteria?"points":"orders",g=m?Sf(ee.currencyCode):"";return e.createElement("div",{key:`freebie-${n}`,className:"yt-loyalty-page-ways-to-redeem-freebie",style:{display:"flex",alignItems:"stretch",border:"1px solid #E1E1E1",backgroundColor:"#FFFFFF",overflow:"hidden"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-freebie-icon",style:{flexShrink:0,width:R?"72px":"84px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#F1F1F1",color:"#5A5A5A",fontSize:"26px",backgroundImage:"repeating-linear-gradient(to bottom, #BFBFBF 0 8px, transparent 8px 16px)",backgroundRepeat:"no-repeat",backgroundSize:"2px 100%",backgroundPosition:"right center"}},e.createElement(E,null)),e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-freebie-body",style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",padding:R?"16px 18px":"18px 20px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-freebie-title",style:{fontSize:R?"18px":"20px",lineHeight:1.15,fontWeight:700,letterSpacing:"-0.01em",color:"#111111"}},t.title),e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-freebie-subtitle",style:{marginTop:"4px",fontSize:"12px",lineHeight:1.3,fontWeight:400,color:"#8A8A8A"}},s?"Claimed · apply discount with item added in cart":c?`Unlock at ${t.tierName??""} tier`:d?`${a} Points Required · ${t.subtitle??"no mov"}`:t.subtitle??"no mov"),e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-freebie-footer",style:{marginTop:"auto",paddingTop:"18px"}},s?e.createElement("div",{role:"button",tabIndex:0,onClick:()=>oe(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||oe(t)},style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"10px 14px",border:"1px dashed #C4C4C4",borderRadius:"8px",backgroundColor:"#FAFAFA",cursor:"pointer"}},e.createElement("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"14px",fontWeight:700,letterSpacing:"0.04em",color:"#111111"}},t.code),e.createElement("span",{style:{flexShrink:0,fontSize:"12px",fontWeight:500,color:"#8A8A8A"}},"Tap to copy")):c?e.createElement(e.Fragment,null,e.createElement("div",{style:{marginBottom:"8px",fontSize:"12px",fontWeight:500,color:"#8A8A8A"}},g,Ff(i)," of ",g,Ff(a),u?` ${u}`:""),e.createElement("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":a||void 0,"aria-valuenow":i,style:{width:"100%",height:"6px",borderRadius:"999px",backgroundColor:"#EDEDED",overflow:"hidden"}},e.createElement("div",{style:{width:`${p}%`,height:"100%",borderRadius:"999px",backgroundColor:C}}))):e.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"}},e.createElement("button",{type:"button",disabled:d,onClick:()=>d?void 0:(async e=>{e.onClaim?await e.onClaim():O()})(t),style:{minWidth:"84px",padding:"9px 18px",borderRadius:"8px",border:"none",backgroundColor:d?"#EDEDED":C,color:d?"#9A9A9A":P,fontSize:"14px",lineHeight:1,fontWeight:600,cursor:d?"not-allowed":"pointer"}},t.ctaTitle??"Claim")))))}),ee.items?.map((t,n)=>{const r=t.ctaTitle??"Redeem",o=t.ctaDisabled??!1,a=null!=t.discountPercentage||null!=t.discountValue?(t.discountPercentage??0)>0?"percent":"coupon":t.icon,i=t.subtitle??(null!=t.pointsRequired?`${t.pointsRequired} Points Required · ${Nf(t.minimumOrderValue,ee.currencyCode)}`:Nf(t.minimumOrderValue,ee.currencyCode));return e.createElement("div",{key:n,className:"yt-loyalty-page-ways-to-redeem-item",style:{display:"flex",alignItems:"stretch",border:"1px solid #E1E1E1",backgroundColor:"#FFFFFF",overflow:"hidden"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-item-icon",style:{flexShrink:0,width:R?"72px":"84px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#F1F1F1",color:"#5A5A5A",fontSize:"26px",backgroundImage:"repeating-linear-gradient(to bottom, #BFBFBF 0 8px, transparent 8px 16px)",backgroundRepeat:"no-repeat",backgroundSize:"2px 100%",backgroundPosition:"right center"}},(l=a)&&"string"!=typeof l?l:"percent"===l?e.createElement("span",{style:{fontSize:"28px",fontWeight:500}},"%"):e.createElement(I,null)),e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-item-body",style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",padding:R?"16px 18px":"18px 20px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-item-title",style:{fontSize:R?"18px":"20px",lineHeight:1.15,fontWeight:700,letterSpacing:"-0.01em",color:"#111111"}},t.title),i?e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-item-subtitle",style:{marginTop:"4px",fontSize:"12px",lineHeight:1.3,fontWeight:400,color:"#8A8A8A"}},i):null,e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-item-footer",style:{marginTop:"auto",paddingTop:"18px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px"}},e.createElement("span",{className:"yt-loyalty-page-ways-to-redeem-item-points",style:{fontSize:R?"15px":"16px",lineHeight:1,fontWeight:700,color:"#111111"}},t.pointsLabel),e.createElement("button",{type:"button",className:"yt-loyalty-page-ways-to-redeem-item-button",disabled:o,onClick:()=>(async e=>{e.onClick?await e.onClick():c?await c(e):O()})(t),style:{minWidth:"84px",padding:"9px 18px",borderRadius:"8px",border:"none",backgroundColor:o?"#EDEDED":C,color:o?"#9A9A9A":P,fontSize:"14px",lineHeight:1,fontWeight:600,cursor:o?"not-allowed":"pointer",transition:"opacity 0.2s ease"}},r))));var l})))))},$f=({showPopup:n,selectedOffer:r,selectedOfferTerms:o,onClose:a,offersConfig:i})=>{const[l,s]=t(!1);if(!n||!r||!o)return null;const c=r._customOffer,d=c?.code||r.code,p=e.createElement("div",{className:"yt-product-offers-isolated",style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:2147483647},onClick:a},e.createElement("div",{style:{width:"90vw",minWidth:"375px",maxWidth:"480px",maxHeight:"90vh",backgroundColor:"#fff",borderRadius:"12px",padding:"16px",boxShadow:"0 4px 15px rgba(0,0,0,0.3)",position:"relative",flexDirection:"column",display:"flex"},onClick:e=>e.stopPropagation()},e.createElement("div",{style:{fontSize:"clamp(32px, 8vw, 40px)",color:"#4C4C4C",marginTop:"16px",marginBottom:"8px",display:"flex",justifyContent:"center",position:"relative"}},Af(r)?e.createElement(w,null):e.createElement(at,null)),e.createElement("div",{style:{fontSize:"clamp(16px, 4vw, 20px)",fontWeight:500,color:"#4C4C4C",lineHeight:"normal",textAlign:"center"}},Df(r)),e.createElement("div",{style:{fontSize:"clamp(28px, 7vw, 40px)",fontWeight:"600",color:i?.textColor||"#EE8E35",lineHeight:"normal",textAlign:"center"}},r.name),e.createElement("div",{style:{fontSize:"clamp(16px, 4vw, 20px)",color:"#000000",textAlign:"center",fontWeight:500}},o.offerMessage),d&&e.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",marginTop:"16px",padding:"12px 20px",backgroundColor:i?.cardBackgroundColor||"#F5F5F5",borderRadius:`${i?.roundness||8}px`,border:`1px dashed ${i?.accentColor||"#EE8E35"}`}},e.createElement("span",{style:{fontSize:"clamp(16px, 4vw, 18px)",fontWeight:"600",color:i?.textColor||"#333",letterSpacing:"1px"}},d),e.createElement("button",{onClick:async()=>{if(d)try{await navigator.clipboard.writeText(d),s(!0),setTimeout(()=>s(!1),2e3)}catch(e){console.error("Failed to copy:",e)}},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:l?"#22c55e":i?.accentColor||"#EE8E35",fontSize:"20px",transition:"color 0.2s ease"},title:l?"Copied!":"Copy code"},l?e.createElement(P,null):e.createElement(D,null))),o.terms.length>0&&e.createElement(e.Fragment,null,e.createElement("hr",{style:{border:"none",height:"2px",width:"100%",margin:"10px 0 18px 0",backgroundColor:"transparent",backgroundImage:"repeating-linear-gradient(to right, #ccc 0, #ccc 12px, transparent 12px, transparent 20px)",backgroundSize:"100% 2px",backgroundPosition:"0 0",backgroundRepeat:"repeat-x"}}),e.createElement("div",{style:{marginTop:"15px",fontSize:"clamp(14px, 3.5vw, 16px)",textAlign:"center",display:"flex",flexDirection:"column"}},e.createElement("strong",{style:{color:"#888"}},"Terms & Conditions"),e.createElement("ul",{style:{marginTop:"5px",paddingLeft:"20px",textAlign:"left",display:"inline-block",color:"#000",lineHeight:"1.3",marginBottom:"0"}},o.terms.map((t,n)=>e.createElement("li",{key:n,style:{marginBottom:"4px"}},t))))),e.createElement("button",{onClick:a,style:{width:"100%",padding:"10px 20px",marginTop:"10px",backgroundColor:"#fff",border:"none",borderTop:"1px solid #ddd",borderRadius:"0",fontSize:"16px",fontWeight:"600",color:"#333",cursor:"pointer",textAlign:"center",flexShrink:0}},"Close")));return O(p,document.body)},zf=({showPopup:n,selectedOffer:r,selectedOfferTerms:o,onClose:a,offersConfig:i})=>{const[l,s]=t(!1);if(!n||!r||!o)return null;const c=r._customOffer,d=c?.code||r.code,p=e.createElement("div",{className:"yt-product-offers-isolated",style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"flex-end",justifyContent:"center",zIndex:2147483647,animation:"fadeIn 0.3s ease"},onClick:a},e.createElement("style",null,"\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes slideUp {\n from { transform: translateY(100%); }\n to { transform: translateY(0); }\n }\n "),e.createElement("div",{style:{width:"100%",maxHeight:"85vh",backgroundColor:"#fff",borderTopLeftRadius:"20px",borderTopRightRadius:"20px",borderTop:"1px solid #E5E5E5",position:"relative",flexDirection:"column",display:"flex",animation:"slideUp 0.3s ease",overflow:"hidden"},onClick:e=>e.stopPropagation()},e.createElement("div",{style:{width:"40px",height:"4px",backgroundColor:"#ddd",borderRadius:"2px",margin:"12px auto 16px",flexShrink:0}}),e.createElement("div",{style:{overflowY:"auto",flex:1}},e.createElement("div",{style:{padding:"0 20px 20px",backgroundColor:"#fff"}},e.createElement("div",{style:{fontSize:"48px",color:"#4C4C4C",display:"flex",justifyContent:"center",margin:"16px"}},Af(r)?e.createElement(w,null):e.createElement(at,null)),e.createElement("div",{style:{fontSize:"14px",fontWeight:500,color:"#888",textAlign:"center"}},Df(r)),e.createElement("div",{style:{fontSize:"32px",fontWeight:"700",color:i?.textColor||"#EE8E35",textAlign:"center",lineHeight:"1.2"}},r.name),e.createElement("div",{style:{fontSize:"18px",color:"#000000",textAlign:"center",fontWeight:500}},o.offerMessage),d&&e.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",marginTop:"20px",padding:"14px 20px",backgroundColor:i?.cardBackgroundColor||"#F5F5F5",borderRadius:`${i?.roundness||8}px`,border:`1px dashed ${i?.accentColor||"#EE8E35"}`}},e.createElement("span",{style:{fontSize:"18px",fontWeight:"600",color:i?.textColor||"#333",letterSpacing:"1px"}},d),e.createElement("button",{onClick:async()=>{if(d)try{await navigator.clipboard.writeText(d),s(!0),setTimeout(()=>s(!1),2e3)}catch(e){console.error("Failed to copy:",e)}},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:l?"#22c55e":i?.accentColor||"#EE8E35",fontSize:"22px",transition:"color 0.2s ease"},title:l?"Copied!":"Copy code"},l?e.createElement(P,null):e.createElement(D,null)))),o.terms.length>0&&e.createElement(e.Fragment,null,e.createElement("div",{style:{backgroundColor:"#F5F5F5",padding:"16px 20px"}},e.createElement("div",{style:{fontSize:"16px",fontWeight:"600",color:"#333",textAlign:"center"}},"Terms & Conditions")),e.createElement("div",{style:{padding:"20px",backgroundColor:"#fff"}},e.createElement("ul",{style:{margin:"0",paddingLeft:"20px",color:"#333",lineHeight:"1.6",fontSize:"14px"}},o.terms.map((t,n)=>e.createElement("li",{key:n,style:{marginBottom:"4px"}},t)))))),e.createElement("button",{onClick:a,style:{width:"100%",padding:"18px 20px",backgroundColor:"#F5F5F5",border:"none",borderTop:"1px solid #E5E5E5",fontSize:"16px",fontWeight:"600",color:"#333",cursor:"pointer",textAlign:"center",fontFamily:"'Poppins', sans-serif",flexShrink:0}},"Close")));return O(p,document.body)},If=({offersToShow:r,offersConfig:a,getOfferCardMessage:i,setSelectedOffer:l,setShowPopup:s})=>{const c=o(null),[d,p]=t(!1),[m,u]=t(!0),[g,f]=t("undefined"!=typeof window&&window.innerWidth<=768),y=()=>{if(c.current){const{scrollLeft:e,scrollWidth:t,clientWidth:n}=c.current;p(e>0),u(e<t-n-10)}};n(()=>{y();const e=c.current;if(e)return e.addEventListener("scroll",y),()=>e.removeEventListener("scroll",y)},[r]),n(()=>{const e=()=>{f(window.innerWidth<=768)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const x=e=>{if(c.current){const t=g?280:365,n=16,r="right"===e?t+n:-(t+n);c.current.scrollBy({left:r,behavior:"smooth"})}};return e.createElement("div",{style:{position:"relative"}},e.createElement("svg",{style:{position:"absolute",width:0,height:0}},e.createElement("defs",null,e.createElement("mask",{id:"coupon-cut-mask-desktop"},e.createElement("rect",{width:"365",height:"138",fill:"white"}),e.createElement("circle",{cx:"80",cy:"0",r:"12",fill:"black"}),e.createElement("circle",{cx:"80",cy:"138",r:"12",fill:"black"})),e.createElement("mask",{id:"coupon-cut-mask-mobile"},e.createElement("rect",{width:"280",height:"120",fill:"white"}),e.createElement("circle",{cx:"60",cy:"0",r:"10",fill:"black"}),e.createElement("circle",{cx:"60",cy:"120",r:"10",fill:"black"})))),d&&e.createElement("button",{onClick:()=>x("left"),style:{position:"absolute",left:"5px",top:"50%",transform:"translateY(-50%)",background:"#fff",border:"1px solid #e0e0e0",borderRadius:"50%",width:"clamp(28px, 5vw, 38px)",height:"clamp(28px, 5vw, 38px)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:10,boxShadow:"0 2px 8px rgba(0,0,0,0.1)",color:"#333"}},e.createElement(A,{size:20})),m&&e.createElement("button",{onClick:()=>x("right"),style:{position:"absolute",right:"5px",top:"50%",transform:"translateY(-50%)",background:"#fff",border:"1px solid #e0e0e0",borderRadius:"50%",width:"clamp(28px, 5vw, 38px)",height:"clamp(28px, 5vw, 38px)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:10,boxShadow:"0 2px 8px rgba(0,0,0,0.1)",color:"#333"}},e.createElement(_,{size:20})),e.createElement("div",{ref:c,className:"hide-scrollbar",style:{display:"flex",alignItems:"stretch",overflowX:"auto",gap:"16px",scrollbarWidth:"none",msOverflowStyle:"none",minHeight:g?"110px":"128px"}},r?.map(t=>e.createElement("div",{key:t.discountId,style:{flexShrink:0,width:g?"280px":"365px",minWidth:g?"280px":"365px",minHeight:g?"110px":"128px",backgroundColor:"transparent",borderRadius:`${a?.roundness||0}px`,border:"1px solid #e0e0e0",display:"flex",position:"relative",overflow:"visible",mask:`url(#${g?"coupon-cut-mask-mobile":"coupon-cut-mask-desktop"})`,WebkitMask:`url(#${g?"coupon-cut-mask-mobile":"coupon-cut-mask-desktop"})`,maskImage:`url(#${g?"coupon-cut-mask-mobile":"coupon-cut-mask-desktop"})`,WebkitMaskImage:`url(#${g?"coupon-cut-mask-mobile":"coupon-cut-mask-desktop"})`}},e.createElement("div",{style:{width:g?"60px":"80px",minHeight:g?"110px":"128px",backgroundColor:a?.accentColor||"#EE8E35",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:g?"10px 6px":"12px 8px",position:"relative",borderTopLeftRadius:`${a?.roundness||0}px`,borderBottomLeftRadius:`${a?.roundness||0}px`}},e.createElement("div",{style:{position:"absolute",right:"-2px",top:"12px",bottom:"12px",width:"2px",borderLeft:"2px dashed #FFFFFF"}})),a?.iconVisibility&&e.createElement("div",{style:{position:"absolute",left:g?"42.5px":"57.5px",top:"35%",transform:"translateY(-50%)",width:g?"32px":"40px",height:g?"32px":"40px",backgroundColor:"#FFFFFF",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:g?"16px":"20px",color:"#333333",zIndex:10,boxShadow:"0 2px 5px rgba(0,0,0,0.1)",border:"1px solid #E0E0E0"}},Af(t)?e.createElement(w,null):e.createElement(at,null)),e.createElement("div",{style:{flex:1,padding:g?"12px 12px":"15px 15px",paddingLeft:g?"25px":"35px",display:"flex",flexDirection:"column",justifyContent:"space-between",borderTopRightRadius:`${a?.roundness||0}px`,borderBottomRightRadius:`${a?.roundness||0}px`,overflow:"hidden",backgroundColor:a?.cardBackgroundColor||"#ffffff",minWidth:0}},e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:g?"4px":"6px",lineHeight:"normal"}},e.createElement("div",{style:{fontSize:g?"9px":"10px",color:"#666666",fontWeight:"400"}},Df(t)),e.createElement("div",{style:{fontSize:g?"13px":"15px",fontWeight:"600",color:a?.textColor||"#2c3e50"}},t.name),e.createElement("div",{style:{fontSize:g?"11px":"12px",color:a?.accentColor||"#EE8E35",wordWrap:"break-word",overflowWrap:"break-word",whiteSpace:"normal",minHeight:g?"28px":"32px"}},i(t))),e.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},e.createElement("div",{style:{borderTop:"1px solid #999999",marginTop:"4px",width:"100%",height:"0",display:"block"}}),e.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),l(t),s(!0)},style:{fontSize:g?"11px":"12px",color:"#2c3e50",fontWeight:"500",textDecoration:"none",cursor:"pointer",textAlign:"center",marginTop:"0"}},a?.viewDetailsTitle||"View Details")))))),e.createElement("style",null,"\n .hide-scrollbar::-webkit-scrollbar {\n display: none;\n }\n .hide-scrollbar {\n -ms-overflow-style: none;\n scrollbar-width: none;\n }\n "))},Pf=({offersToShow:r,offersConfig:o,getOfferCardMessage:a,setSelectedOffer:i,setShowPopup:l})=>{const[s,c]=t("undefined"!=typeof window&&window.innerWidth<=768);return n(()=>{const e=()=>{c(window.innerWidth<=768)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e.createElement("div",{style:{borderRadius:`${o?.roundness||8}px`}},r?.map((t,n)=>e.createElement("div",{key:t.discountId,style:{display:"flex",alignItems:"flex-start",gap:s?"8px":"12px",padding:s?"12px 0":"16px 0",paddingLeft:s?"10px":"20px",backgroundColor:!0===o?.cardBackgroundTransparent||"true"===String(o?.cardBackgroundTransparent)?"transparent":o?.cardBackgroundColor||"#ffffff",borderBottom:n<(r?.length||0)-1?"1px solid rgb(225 218 218)":"none",marginBottom:"4px",borderRadius:`${o?.roundness||0}px`}},o?.iconVisibility&&e.createElement("div",{style:{width:s?"40px":"50px",height:s?"40px":"50px",backgroundColor:"#f8f9fa",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:s?"20px":"25px",marginTop:s?"5px":"10px",border:"2px solid #4a4a4a",color:"#4a4a4a"}},Af(t)?e.createElement(w,null):e.createElement(at,null)),e.createElement("div",{style:{flex:1}},e.createElement("div",{style:{fontSize:s?"14px":"15px",fontWeight:600,color:"#000000",lineHeight:"1"}},e.createElement("span",{style:{fontWeight:600,color:o?.textColor||"#34495e"}},t.name)),e.createElement("div",{style:{fontSize:s?"12px":"13px",color:"#7f8c8d",marginBottom:"6px"}},a(t)),e.createElement("div",{style:{fontSize:s?"11px":"12px",color:"#000000"}},"offer auto applied",e.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),i(t),l(!0)},style:{color:o?.accentColor||"#7f8c8d",fontWeight:700,textDecoration:"none",marginLeft:"2px"}},o?.viewDetailsTitle||"T&C"))))))},Df=e=>"free_product"===e.couponType?"deal_amount"===e.freebieType?"Deal":"percentage_off"===e.freebieType?"% Off":"Free Gift":e._customOffer?.code?"Coupon":"Special Deal",Af=e=>"free_product"===e.couponType&&"deal_amount"!==e.freebieType&&"percentage_off"!==e.freebieType,_f=({offersConfig:r,offers:a})=>{const[i,l]=t(!1),[s,c]=t(null),[d,p]=t(null),[m,u]=t("undefined"!=typeof window&&window.innerWidth<=768),[g,f]=t("undefined"!=typeof window&&window.innerWidth<=450),y=o(null);n(()=>{const e=()=>{u(window.innerWidth<=768),f(window.innerWidth<=450)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),n(()=>{y.current&&qn(y.current)},[r?.sectionBgContrastColor]);const x=(e=>{if(!e||0===e.length)return e;const t={};e.forEach(e=>{const n=e.customCartProgressBarCriteria||"none";t[n]=(t[n]||0)+1});let n="none",r=-1;Object.keys(t).forEach(e=>{t[e]>r&&(r=t[e],n=e)});const o=e.map((e,t)=>({o:e,idx:t})),a=e=>"minimum_order_value"===n?void 0!==e.minimumOrderValue&&null!==e.minimumOrderValue?Number(e.minimumOrderValue):1/0:"quantity"===n&&void 0!==e.quantityThreshold&&null!==e.quantityThreshold?Number(e.quantityThreshold):1/0;return o.sort((e,t)=>{const r=e.o.customCartProgressBarCriteria===n,o=t.o.customCartProgressBarCriteria===n;if(r&&o){const n=a(e.o),r=a(t.o);return n!==r?n-r:e.idx-t.idx}return r&&!o?-1:!r&&o?1:e.idx-t.idx}),o.map(e=>e.o)})((!1===r?.showBackendOffers&&r?.customOffers&&r.customOffers.length>0?r.customOffers.map((e,t)=>{return{discountId:-(t+1),name:(n=e).title,couponType:n.code?"discount_code":"special_deal",customCartProgressBarCriteria:null,discountPercentage:null,couponTemplateId:0,minimumOrderValue:0,quantityThreshold:0,_allVariantIds:[],description:n.description,_customOffer:n};var n}):a)||[]),h=e=>{if(c(e),e){const t=e._customOffer;p(t?(e=>({offerMessage:e.description||"Special offer available",terms:e.terms?e.terms.split("\n").filter(e=>""!==e.trim()):[]}))(t):(e=>{const t="free_product"===e.couponType;let n="";if(t){const t="deal_amount"===e.freebieType?`at ${e.discountValue}`:"percentage_off"===e.freebieType?`at ${e.discountPercentage}% off`:"free"===e.freebieType?"for free!":"";t&&(n=`Get the product ${t}`)}else e.discountPercentage?n=`Get ${e.discountPercentage}% off`:e.discountValue&&(n=`Get ${e.discountValue} off`);const r=["Limited Time Offer","Applies automatically when criteria is met"];return"quantity"===e.customCartProgressBarCriteria&&e.quantityThreshold?r.push(`Unlock when you add ${e.quantityThreshold} ${e.quantityThreshold>1?"items":"item"} to cart`):"minimum_order_value"===e.customCartProgressBarCriteria&&e.minimumOrderValue&&r.push(`Unlock at order value of ${e.minimumOrderValue}`),t||r.push("Not applicable if other offer with higher discount applied on same product"),{offerMessage:n,terms:r}})(e))}},b=e=>{const t=e._customOffer;return t?t.description||"Special offer available":(e=>"quantity"===e.customCartProgressBarCriteria&&e.quantityThreshold?`add ${e.quantityThreshold} ${e.quantityThreshold>1?"items":"item"} to unlock`:"minimum_order_value"===e.customCartProgressBarCriteria&&e.minimumOrderValue?`unlocks on orders above ${e.minimumOrderValue}`:"Special offer available")(e)};return e.createElement("div",null,e.createElement("div",{style:{position:"relative",width:"100%",maxWidth:"450px",borderRadius:"list"===r?.sectionType?`${r?.roundness||0}px`:"0px",boxSizing:"border-box",backgroundColor:r?.sectionBackgroundColor||"#fff"}},e.createElement("div",{style:{border:"coupon"===r?.sectionType?"none":"1px solid rgb(169, 163, 163)",borderTop:"1px solid rgb(169, 163, 163)",padding:null!=r?.cardPadding?`${r.cardPadding}px`:m?"20px 10px 15px":"30px 15px 20px",position:"relative",borderRadius:"list"===r?.sectionType?`${r?.roundness||8}px`:"0px"}},e.createElement("span",{ref:y,className:"yt-product-offers-section-title",style:{position:"absolute",top:"0",left:"left"===r?.alignment?"coupon"===r?.sectionType?"0px":m?"10px":"20px":"right"===r?.alignment?"auto":"50%",right:"right"===r?.alignment?"coupon"===r?.sectionType?"0px":m?"10px":"20px":"auto",transform:"middle"===r?.alignment?"translateX(-50%) translateY(-50%)":"translateY(-50%)",background:r?.sectionBgContrastColor||"#fff",padding:m?"0 8px":"0 10px",fontWeight:"500",fontSize:m?"14px":"16px",textTransform:"uppercase",textAlign:"center"}},r?.sectionTitle||"Available Deals and Offers"),(()=>{const t=r?.sectionType;return"list"===t?e.createElement(Pf,{offersToShow:x,offersConfig:r||{},getOfferCardMessage:b,setSelectedOffer:h,setShowPopup:l}):"coupon"===t?e.createElement(If,{offersToShow:x,offersConfig:r||{},getOfferCardMessage:b,setSelectedOffer:h,setShowPopup:l}):null})(),g?e.createElement(zf,{selectedOffer:s,selectedOfferTerms:d,showPopup:i,offersConfig:r,onClose:()=>{l(!1),c(null),p(null)}}):e.createElement($f,{selectedOffer:s,selectedOfferTerms:d,showPopup:i,offersConfig:r,onClose:()=>{l(!1),c(null),p(null)}}))))};export{cu as Bundle,tg as BundleLoader,ud as BundleLoaderModal,eg as Cart,vd as CartATCLoader,sf as LoyaltyLauncher,Bf as LoyaltyPageBlock,wf as LoyaltyProductCatalog,tf as LoyaltyScreen,xf as LoyaltyWidget,sn as Nudge,kf as PointEarnBadge,_f as ProductOffers,yf as RewardsModal,fn as SpinnerWheel};