yt-uikit 0.10.70 → 0.10.71
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 +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -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
|
-
`,Ju=l(({removeCartItem:a,addCartItem:i,getProductDetailsByVariantId:l,themeColor:s,cartComponentsCornerRadius:c,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:m,freebieClaimAddToCart:u,stealDealAddToCart:g,productClaimCtaButtonText:y,backgroundSubdued:f,primaryTextColor:x},h)=>{const[b,w]=ve(Nn),v=Ce(hn),C=o(null),[E,k]=t(null),[T,N]=t(!1),[S,F]=t({}),[B,$]=t(b?.variantId),[z]=t(b?.quantity||1),[I,P]=t(!1),D=jo();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={...S,[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=$n(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=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},[E,S,b]);return E?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-cart-variant-popup-overlay",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(zu,{ref:h,className:"yt-variant-selection-popup"},e.createElement(Pu,{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(Iu,null,b?.stealDealSelection?"Unlocked Steal Deal":"Unlocked Freebie"),e.createElement(Au,null,e.createElement(_u,null,e.createElement(Lu,null,e.createElement(Ru,{src:_?.featured_image?.src??E?.featured_image,alt:_?.featured_image?.alt??E?.title})),e.createElement(Ou,null,e.createElement(Mu,{$themeColor:s,$primaryTextColor:x,href:`${E?.url}?variant=${_?.id}`},E?.title),e.createElement(Gu,null,e.createElement(Wu,null,e.createElement(Vu,{$primaryTextColor:x},L,Sn(_?.price,v?.currency??"INR")),null!=_?.compare_at_price&&null!=_?.price&&_.compare_at_price>_.price&&e.createElement(ju,null,L,Sn(_?.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=S[t.name],o=Vo(n,r);return e.createElement(qu,{key:t.name},e.createElement(Qu,null,e.createElement("span",{className:"yt-cart-variant-popup-option-label"},"Select ",t.name),r&&e.createElement(Yu,null,o)),e.createElement(Zu,null,R[t.name]?.map(r=>{const o=S[t.name]===r,a=Wo(n,r),i=n?.type?.toLowerCase(),l=Vo(n,r);return"color"===i&&a?.value?e.createElement(Xu,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$colorValue:a.value}):"image"===i&&a?.value?e.createElement(Ku,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$imageUrl:a.value}):e.createElement(Uu,{$themeColor:s,key:r,$isSelected:o,backgroundColor:o?s:void 0,onClick:()=>A(t.name,r)},l)})))})),e.createElement(Hu,{className:"yt-cart-variant-popup-ATC-button",$themeColor:s??"#C33",onClick:b?.productRec?async()=>{if(B&&i){N(!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)}N(!1)}}:async()=>{if(!B)return;const e=!!b?.lineItemKey,t=String(B)!==String(b?.variantId);if(!e||t){N(!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){}N(!1)}else w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!B||T},T?e.createElement(Se,{color:"white",size:13}):b?.productRec?"ADD TO BAG":b?.stealDealSelection?"CLAIM DEAL":b?.freebieSelection?y||"CLAIM FREEBIE":"GET IN BAG")))):e.createElement(zu,{ref:h},e.createElement(Pu,{style:{backgroundColor:p||"white"}},e.createElement(Du,null,e.createElement(Fe,{color:s||"#868E96"}))))});Ju.displayName="DesktopVariantPopup";const eg=l(({removeCartItem:a,addCartItem:i,getProductDetailsByVariantId:l,themeColor:s,cartComponentsCornerRadius:c,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:m,freebieClaimAddToCart:u,stealDealAddToCart:g,productClaimCtaButtonText:y,backgroundSubdued:f,primaryTextColor:x},h)=>{const[b,w]=ve(Nn),v=Ce(hn),[C,E]=t(null),[k,T]=t(!1),[N,S]=t({}),[F,B]=t(b?.variantId),[$]=t(b?.quantity||1),z=o(null),I=jo(),[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}`]}),S(n)}else B(void 0),S({})}E(e)}catch(e){}})()},[C,l,b]),n(()=>{},[p,a,i,l]);const A=(e,t)=>{const n={...N,[e]:t};S(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=$n(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=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},[C,N,b]);return C?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-cart-variant-popup-overlay",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(zu,{ref:h,className:"yt-variant-selection-popup"},e.createElement(Pu,{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(Iu,null,b?.stealDealSelection?"Unlocked Steal Deal":"Unlocked Freebie"),e.createElement(Au,null,e.createElement(_u,null,e.createElement(Lu,null,e.createElement(Ru,{src:_?.featured_image?.src??C?.featured_image,alt:_?.featured_image?.alt??C?.title})),e.createElement(Ou,null,e.createElement(Mu,{$themeColor:s,$primaryTextColor:x,href:`${C?.url}?variant=${_?.id}`},C?.title),e.createElement(Gu,null,e.createElement(Wu,null,e.createElement(Vu,{$primaryTextColor:x},L,Sn(_?.price,v?.currency??"INR")),null!=_?.compare_at_price&&null!=_?.price&&_.compare_at_price>_.price&&e.createElement(ju,null,L,Sn(_?.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=N[t.name],o=Vo(n,r);return e.createElement(qu,{key:t.name},e.createElement(Qu,null,e.createElement("span",{className:"yt-cart-variant-popup-option-label"},"Select ",t.name,":"),r&&e.createElement(Yu,null,o)),e.createElement(Zu,null,R[t.name]?.map(r=>{const o=N[t.name]===r,a=Wo(n,r),i=n?.type?.toLowerCase(),l=Vo(n,r);return"color"===i&&a?.value?e.createElement(Xu,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$colorValue:a.value}):"image"===i&&a?.value?e.createElement(Ku,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$imageUrl:a.value}):e.createElement(Uu,{$themeColor:s,key:r,$isSelected:o,backgroundColor:o?s:void 0,onClick:()=>A(t.name,r)},l)})))})),e.createElement(Hu,{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(Se,{color:"white",size:13}):b?.productRec?"ADD TO BAG":b?.stealDealSelection?"CLAIM DEAL":b?.freebieSelection?y||"CLAIM FREEBIE":"GET IN BAG")))):e.createElement(zu,{ref:h},e.createElement(Pu,{style:{backgroundColor:p||"white"}},e.createElement(Du,null,e.createElement(Fe,{color:s||"#868E96"}))))});const tg=({setIsCartOpen:t,isCartOpen:n,cartCheckpoints:r,customCartProgressBarCriteria:o,floatingCartData:a,effectiveQuantityForProgressBar:i,cartComponentsCornerType:l,cartComponentsCornerRadius:s})=>{const c=Ce(hn),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=Sn(c?.items_subtotal_price??0,c?.currency??"INR"),y=$n(c),f=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},N={background:"#fff",color:h,borderRadius:x,boxShadow:"0 10px 24px rgba(0,0,0,0.15)",overflow:"hidden",fontFamily:"Poppins"},S={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(!f.show)return null;const t=f.isQuantity?`${f.deltaValue} more items to get freebie`:`Add items worth ${y}${Yn(f.deltaValue.toFixed(0))} to get freebie`;return e.createElement("div",{className:"yt-cart-floating-empty-container",style:k},e.createElement("div",{className:"yt-cart-floating-ribbon",style:T},e.createElement(w,{"aria-hidden":!0}),e.createElement("span",{className:"yt-cart-floating-ribbon-text"},t)))}const I=1===u?"1 item":`${u} items`,P=a?.lastTierUnlockedText||"Best tier unlocked",D=f.show?f.isQuantity?`${f.deltaValue} more items to get freebie`:`Add items worth ${y}${Yn(f.deltaValue.toFixed(0))} more to get freebie`:P;return e.createElement("div",{className:"yt-cart-floating-container",style:{position:"fixed",left:12,right:12,bottom:12,zIndex:2147483642,paddingBottom:"env(safe-area-inset-bottom)"}},e.createElement("div",{className:"yt-cart-floating-card-wrapper",style:{position:"relative"}},(f.show||r&&r.length>0)&&e.createElement("div",{className:"yt-cart-floating-banner",style:S},e.createElement(w,{"aria-hidden":!0,style:{marginBottom:7}}),e.createElement("span",{className:"yt-cart-floating-banner-text",style:{display:"inline-block",marginBottom:7}},D)),e.createElement("div",{className:"yt-cart-floating-card",style:N},e.createElement("div",{className:"yt-cart-floating-body",style:F,onClick:()=>t(!0)},e.createElement(V,{width:24,height:24,color:h}),e.createElement("div",{className:"yt-cart-floating-details",style:{display:"flex",flexDirection:"column",minWidth:0,flex:1,lineHeight:"normal"}},e.createElement("div",{className:"yt-cart-floating-amount-row",style:B},e.createElement("span",{className:"yt-cart-floating-amount"},y,Yn(g.toFixed(0))),e.createElement("span",{className:"yt-cart-floating-item-count",style:{fontSize:9,fontWeight:600,color:"#fff",backgroundColor:"#828282",marginBottom:5,paddingInline:5}},I)),p?e.createElement("span",{className:"yt-cart-floating-footer-text",style:$,title:d},d):null),e.createElement("button",{className:"yt-cart-floating-view-button",ref:E,style:z,onClick:()=>t(!0),"aria-label":"View Cart"},"View Cart")))))};var ng=e.memo(({exploreCTAColor:r,checkoutFontSize:a,handleDecrement:l,handleIncrement:s,removeCartItem:c,addCartItem:d,cartTitle:p,emptyCartTitle:m,emptyCartDescription:u,emptyCartButtons:g,backgroundColor:y,backgroundSubdued:f,tertiaryColor:x,tertiaryTextColor:h,backdrop:b=!0,cartData:w,isUserSignedIn:v,showBundle:C,bundleProducts:E,discountAmountOff:k,loyaltyIcon:T,pointsToBeUsed:N,rewardMultiplier:S,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:W,cartCheckpoints:V,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:ye,freeProduct:fe,showLoyaltyCta:xe,freeProductAdjustedCartTotal:he,redemptionMinimumOrderValue:be,redemptionMinimumOrderValueStatus:Ce,signinCTAButtonVisible:Ee,cartSigninCTAMainText:ke,showNoteOption:Te,applyNoteToCart:Ne,note:Se,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:We,productPercentageOffMapping:Ve,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:yt,freebieMilestoneData:ft,cartTimerInMinutes:xt,cartTimerCustomText:ht,imageAspectSelector:bt,cartComponentsCornerType:wt,cartComponentsCornerRadius:vt,stickyCartCustomizationData:Ct,cartOffersCarousalData:Et,stickyBarBuyNowFunction:kt,gstSectionCustomizationData:Tt,noteSectionTitle:Nt,checkoutSectionMessage:St,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:Wt,checkoutButtonBottomSpacing:Vt,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=we(hn),[ln,sn]=ve(Nn),[cn,dn]=ve(Ji),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,yn=mn.comboBundleAddToCartFunction??Xt,[fn,xn]=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;xn({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&<?(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",{className:"yt-cart-root",style:{position:it&<?"relative":"absolute",width:"100%",display:it&<?"flex":"block",alignItems:"center",justifyContent:"center"}},A&&!(it&<)&&e.createElement("button",{className:"yt-cart-toggle-button",style:{margin:"16px"},onClick:pn},_?"Close Drawer":"Open Drawer"),!tn&&_&&b&&!(it&<)&&e.createElement("div",{className:"yt-cart-overlay",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(Js,{useCartShell:tn,isCartPage:lt,enableCustomCartOnCartPage:it,isOpen:_,setIsOpen:L,backgroundColor:y,backgroundSubdued:f??"#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:N,rewardMultiplier:S,redemptionMultiplier:F,removeDiscount:B,applyDiscount:$,discountApplied:z,checkoutFunction:I,joinNowFunction:P,guestLoyaltyPercentage:D,isDev:R,switchWidthVariant:O,recProductsList:M,showMultiStepProgressBar:W,cartCheckpoints:V,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:ye,freeProduct:fe,showLoyaltyCta:xe,freeProductAdjustedCartTotal:he,redemptionMinimumOrderValue:be,redemptionMinimumOrderValueStatus:Ce,signinCTAButtonVisible:Ee,cartSigninCTAMainText:ke,applyNoteToCart:Ne,note:Se,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:We,productPercentageOffMapping:Ve,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:ft,cartTimerCustomText:ht,cartTimerInMinutes:xt,imageAspectSelector:bt,cartComponentsCornerType:wt,cartComponentsCornerRadius:vt,gstSectionCustomizationData:Tt,noteSectionTitle:Nt,checkoutSectionMessage:St,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:Wt,checkoutButtonBottomSpacing:Vt,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($u,{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:y,primaryTextColor:re,comboBundleData:gn,comboBundleAddToCartFunction:yn,volumeBundleCurrentTier:fn.currentTier,volumeBundleData:fn.bundle,volumeBundleAddToCartFunction:fn.volumeBundleAddToCartFunction}),wn&&ln.open&&e.createElement(Ju,{backgroundColor:y,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:f??"#F5F5F5",primaryTextColor:re}),!wn&&ln.open&&e.createElement(eg,{ref:bn,isDev:R,removeCartItem:c,addCartItem:d,getProductDetailsByVariantId:Ie,themeColor:ce,cartComponentsCornerRadius:vt,cartComponentsCornerType:wt,backgroundColor:y,removeFreebieFromCart:je,freebieClaimAddToCart:Oe,stealDealAddToCart:en,productClaimCtaButtonText:Ge?.productClaimCtaButtonText,backgroundSubdued:f??"#F5F5F5",primaryTextColor:re})),!wn&>&&e.createElement(tg,{isCartOpen:_,setIsCartOpen:L,cartCheckpoints:V,customCartProgressBarCriteria:J,floatingCartData:yt,effectiveQuantityForProgressBar:We,cartComponentsCornerRadius:vt,cartComponentsCornerType:wt}))});Rt(".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 rg=()=>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"},"")))));Rt("/*\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");Rt("\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");Rt('@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');Rt('/* --------- 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');Rt('/* 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 og({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 ag({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"})))))}Rt("@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }\n@keyframes fadeout { from { opacity: 1 } to { opacity: 0 } }\n");function ig({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}Rt("@keyframes yt-spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n");const lg={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"}},sg={...lg,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:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",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},freebieClaimedActions:{display:"flex",alignItems:"stretch",gap:10,margin:"0 12px 12px"},freebieAddToCartCta:{display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",flexShrink:0,padding:"0 14px",borderRadius:10,background:"#1F1F1F",color:"#fff",fontSize:18,lineHeight:1,cursor:"pointer",border:0,margin:0,width:"auto",height:"auto",maxWidth:"none",textTransform:"none",letterSpacing:"normal",appearance:"none",WebkitAppearance:"none"}};Rt("/* 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");Rt('.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 cg=e=>"INR"===e?"₹":e?`${e} `:"",dg=(e,t)=>e&&e>0?`min order ${cg(t)}${e.toLocaleString()}`:"no mov";function pg({couponList:r=[],freebies:a=[],couponHeading:i="",couponCode:l="",currencyCode:s,onCouponAvail:c,copyFunction:d=e=>{},onFreebieAddToCart:p,themeSecondaryContrastColor:m="",themeSecondaryColor:u="",themeBackgroundColor:g="",setScreenType:y=e=>{},showCTA:f=!0,balanceCoins:x,ctaBorderRadius:h,brandRewardProgram:b,redemptionMovRequired:w,userRewardTier:v,brandRewardTiers:C}){const E=!!b?.redemptionStatus&&"percentage"===b?.redemptionMethod&&Number(b?.redemptionValue??0)>0,k=(()=>{const e=Number(w??NaN);if(Number.isFinite(e)&&e>0)return e;if(b?.redemptionMinimumOrderValueStatus&&Number(b?.redemptionMinimumOrderValue??0)>0)return Number(b.redemptionMinimumOrderValue);const t=Number(b?.redemptionMovRequired??0);return t>0?t:0})(),T=k>0,N=k,S=(r?.length??0)>0,[F,B]=t(l),[$,z]=t("idle"),[I,P]=t(null),[D,A]=t(0),[_,L]=t(null),[R,O]=t(null),[M,W]=t({}),[V,j]=t(null),[H,q]=t(null),[U,Q]=t(!1),Y=o(null);n(()=>()=>{Y.current&&clearInterval(Y.current)},[]),n(()=>{const e={};a.forEach(t=>{t.isActive&&t.discountCode&&(e[t.couponTemplate.couponTemplateId]=t.discountCode)}),W(t=>({...e,...t}))},[a]),n(()=>{"success"!==$&&!U||R||import("./confetti-f3502561.js").then(e=>O(e.default))},[$,U,R]);const Z=async e=>{if("idle"!==$)return;P(e),z("loading"),A(0),Y.current=setInterval(()=>{A(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(Y.current&&clearInterval(Y.current),Y.current=null,n){try{await navigator.clipboard.writeText(n)}catch{}B(n),A(100),setTimeout(()=>z("success"),350)}else L("Failed to avail coupon"),z("idle"),P(null),A(0),setTimeout(()=>L(null),2e3)},G="idle"!==$,X=((e,t)=>e?e.discountPercentage>0?`${e.discountPercentage}% off`:e.discountValue>0?`${cg(t)}${e.discountValue}`:e.name:"")(I,s);return e.createElement("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",background:"transparent",overflow:"hidden"}},("success"===$||U)&&R&&e.createElement("div",{className:"yt-wtr-confetti",style:sg.confetti,"aria-hidden":"true"},e.createElement(_t,{animationData:R,loop:!1})),e.createElement("div",{className:"yt-wtr-body",style:sg.body},E&&e.createElement(gg,{redempRate:Number(b.redemptionValue),coinName:b?.coinName??"coins",movEnabled:T,movValue:N,currencyCode:s}),a.map((t,n)=>{const{couponTemplate:r,product:o}=t,a=M[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:cg(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,C,v,Number(x??0),a,s);return e.createElement(bg,{key:r.couponTemplateId??n,data:r,product:o,view:i,movLabel:fg(r,s),isClaiming:V===r.couponTemplateId,onClaim:()=>(async e=>{if(null===V){j(e);try{const t=await c(e),n=t?.discountCode;if(n){W(t=>({...t,[e]:n})),Q(!0),setTimeout(()=>Q(!1),2500);try{await navigator.clipboard.writeText(n)}catch{}}else L("Failed to claim freebie"),setTimeout(()=>L(null),2e3)}catch{L("Failed to claim freebie"),setTimeout(()=>L(null),2e3)}finally{j(null)}}})(r.couponTemplateId),onCopy:()=>(e=>{if(e){d(e);try{navigator.clipboard.writeText(e)}catch{}L("Coupon code copied"),setTimeout(()=>L(null),1500)}})(a),showAddToCart:!!p,isAddingToCart:H===r.couponTemplateId,isInCart:!!t.isInCart,onAddToCart:()=>(async e=>{if(p&&null===H){q(e.couponTemplate.couponTemplateId);try{await p(e)}catch{L("Failed to add to cart"),setTimeout(()=>L(null),2e3)}finally{q(null)}}})(t)})}),S?r?.map((t,n)=>e.createElement(yg,{key:t.couponTemplateId??n,data:t,onAvail:Z,isAvailing:I?.couponTemplateId===t.couponTemplateId&&"loading"===$,disabled:G,balanceCoins:x,currencyCode:s})):0===a.length?!E&&e.createElement("p",{className:"yt-wtr-noCouponsFound",style:sg.noCouponsFound},"No Coupons Found"):null),e.createElement("div",{style:{bottom:"16px",display:"flex",flexDirection:"column",gap:"11.23px",alignItems:"center"}},"loading"===$&&e.createElement("div",{className:"yt-wtr-progressBlock",style:sg.progressBlock,"aria-live":"polite"},e.createElement("div",{className:"yt-wtr-progressIcon",style:sg.progressIcon},D<50?e.createElement(ie,{size:36}):e.createElement(ft,{size:36})),e.createElement("div",{className:"yt-wtr-progressBar",style:sg.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(D)},e.createElement("div",{className:"yt-wtr-progressBarFill",style:{...sg.progressBarFill,width:`${D}%`}})),e.createElement("div",{className:"yt-wtr-progressLabel",style:sg.progressLabel},D<50?`availing ${X} off coupon...`:"applying your reward...")),"success"===$&&e.createElement("div",{className:"yt-wtr-successBlock",style:sg.successBlock,"aria-live":"polite"},e.createElement("div",{className:"yt-wtr-successBadge",style:sg.successBadge},e.createElement(mg,null)),e.createElement("h3",{className:"yt-wtr-successTitle",style:sg.successTitle},"🎉 ",X," availed!"),e.createElement("p",{className:"yt-wtr-successSubtitle",style:sg.successSubtitle},"Your reward will apply automatically to eligible items in your cart."),e.createElement("div",{className:"yt-wtr-successDivider",style:sg.successDivider}),e.createElement("p",{className:"yt-wtr-successApplied",style:sg.successApplied},"coupon applied")),"idle"===$&&F&&F?.length>0&&e.createElement("div",{style:{padding:"10px 8px 8px 8px"}},e.createElement(ag,{setScreenType:y,themeSecondaryColor:u,themeSecondaryContrastColor:m,borderRadius:h??"12px",showCTA:!1,couponCode:F,couponHeading:i,copyFunction:d})),e.createElement("p",{className:"yt-wtr-footerText",style:sg.footerText},"stay signed-in with the account you use for checking out")),_&&e.createElement(og,{displayText:_,background:"#000000",textColor:"#ffffff"}))}function mg(){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 ug(){return e.createElement("span",{className:"yt-wte-bgIcon",style:sg.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 gg({redempRate:t,coinName:n,movEnabled:r,movValue:o,currencyCode:a}){const i=r&&o>0?`min order ${cg(a)}${o}`:"no mov";return e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:sg.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...sg.redeemCardHeader,borderRadius:"8px 8px 0 0"}},e.createElement(ug,null),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:sg.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:sg.redeemCardIcon},e.createElement(fe,{size:24,color:"#000"})),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:sg.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:sg.redeemCardTitle},"Get upto"," ",e.createElement("span",{style:sg.redeemCardTitleSpan},t,"% off")),e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:sg.redeemCardSubtitle},"avail ",n," in cart • ",i)))),e.createElement("div",{className:"yt-wtr-redeemCard_footer yt-wtr-redeemCard_footer--zigzag",style:{...sg.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:sg.redeemCardFooterText},"Use reward balance while checking out using the Avail option.")))}function yg({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:sg.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...sg.redeemCardHeader,borderRadius:s?"8px 8px 0 0":8}},e.createElement(ug,null),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:sg.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:sg.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:sg.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:sg.redeemCardTitle},e.createElement("span",{style:sg.redeemCardTitleSpan},t?.name)),e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:sg.redeemCardSubtitle},t?.pointsRequired," Points Required •"," ",dg(t?.minimumOrderValue,i)))),e.createElement("button",{onClick:()=>n(t),disabled:o||l,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:sg.cta},r?e.createElement(ig,{size:18,color:"#fff",centered:!0}):"Avail")),s&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:sg.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:sg.redeemCardFooterText},e.createElement("span",{style:sg.redeemCardFooterTextSpan},t?.pointsRequired-a," coins "),"more required")))}function fg(e,t){return dg(e.minimumOrderValue,t)}function xg({product:t}){return t?.image?e.createElement("span",{className:"yt-wtr-freebieCard_icon yt-wtr-freebieCard_icon--product",style:sg.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:sg.redeemCardIcon,"aria-hidden":!0},e.createElement(xt,{size:22,color:"#1F1F1F"}))}function hg(){return e.createElement("span",{className:"yt-wtr-freebieCard_icon yt-wtr-freebieCard_icon--claimed",style:sg.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 bg({data:t,product:n,view:r,movLabel:o,isClaiming:a,onClaim:i,onCopy:l,showAddToCart:s=!1,isAddingToCart:c=!1,isInCart:d=!1,onAddToCart:p}){const{state:m,gating:u,tierName:g,current:y,target:f,unit:x,pricePrefix:h,code:b}=r;if("claimed"===m)return e.createElement("div",{className:"yt-wtr-freebieCard yt-wtr-freebieCard--claimed",style:sg.redeemCard},e.createElement("div",{className:"yt-wtr-freebieCard_header",style:{...sg.redeemCardHeader,border:"none",background:"transparent"}},e.createElement("div",{style:sg.redeemCardHeaderLeft},e.createElement(hg,null),e.createElement("div",{style:sg.redeemCardTitleBox},e.createElement("p",{style:sg.redeemCardTitle},e.createElement("span",{style:sg.redeemCardTitleSpan},t?.name)),e.createElement("p",{style:sg.freebieClaimedSubtitle},"Claimed · apply discount with item added in cart")))),e.createElement("div",{style:sg.freebieClaimedActions},e.createElement("div",{className:"yt-wtr-freebieCard_codeBox",style:{...sg.freebieCodeBox,flex:1,minWidth:0,margin:0},role:"button",tabIndex:0,onClick:l,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||l()}},e.createElement("span",{style:sg.freebieCode},b),e.createElement("span",{style:sg.freebieCopy},"Tap to copy")),s&&e.createElement("button",{type:"button",className:"yt-wtr-freebieCard_addToCart",style:{...sg.freebieAddToCartCta,...d?{cursor:"default",background:"#2F9E44"}:{}},onClick:p,disabled:c||d,title:d?"Added to cart":"Add to cart","aria-label":d?"Added to cart":"Add to cart"},c?e.createElement(ig,{size:16,color:"#fff",centered:!0}):d?e.createElement(v,{size:18}):e.createElement(C,{size:18}))));const w="locked"===m,E=w&&"points"===u,k=w&&"tier"===u,T=f&&f>0?Math.min(100,Math.max(0,Math.round(y/f*100))):0;return e.createElement("div",{className:"yt-wtr-freebieCard yt-wtr-redeemCard--flat",style:sg.redeemCard},e.createElement("div",{className:"yt-wtr-freebieCard_header",style:{...sg.redeemCardHeader,borderRadius:g?"8px 8px 0 0":8}},e.createElement("div",{style:sg.redeemCardHeaderLeft},e.createElement(xg,{product:n}),e.createElement("div",{style:{...sg.redeemCardTitleBox,flex:"1 0 0"}},e.createElement("p",{style:sg.redeemCardTitle},e.createElement("span",{style:sg.redeemCardTitleSpan},t?.name)," ",k?`unlock at ${g??""} tier`:E?"":"unlocked"),k?e.createElement(e.Fragment,null,e.createElement("p",{style:sg.redeemCardSubtitle},h??"",y.toLocaleString()," of"," ",h??"",null!=f?f.toLocaleString():"-",x?` ${x}`:""),e.createElement("div",{className:"yt-wtr-freebieCard_progressBar",style:sg.freebieProgressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":f??void 0,"aria-valuenow":y},e.createElement("div",{style:{...sg.freebieProgressFill,width:`${T}%`}}))):E?e.createElement("p",{style:sg.redeemCardSubtitle},f??0," Points Required • ",o):e.createElement("p",{style:sg.redeemCardSubtitle},o))),!k&&e.createElement("button",{onClick:i,disabled:a||E,className:"yt-wtr-freebieCard_cta",style:sg.freebieClaimCta},a?e.createElement(ig,{size:16,color:"#fff",centered:!0}):"Claim")),g&&e.createElement("div",{className:"yt-wtr-freebieCard_footer",style:sg.redeemCardFooter},e.createElement("p",{style:sg.redeemCardFooterText},"One-time claim on achieving ",g.toUpperCase()," tier")))}const wg={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}},vg=[wg.tier1,wg.tier2,wg.tier3],Cg=e=>vg[e%3];function Eg(e){if(null==e||""===e)return"-";const t=Number(e);return Number.isNaN(t)?String(e):t.toLocaleString()}function kg(e){if(null==e||""===e)return null;const t=Number(e);return Number.isNaN(t)?null:t}function Tg({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=kg(t?.totalOrders)??0,r=kg(e.minimumOrderCountRequired);return{current:n,target:r,currentText:Eg(n),targetText:Eg(r),unit:"orders"}}if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod){const n=kg(t?.currentLtv)??0,o=kg(e.minimumOrderValueRequired),a=Eg(n),i=Eg(o);return{current:n,target:o,currentText:"-"===a?a:`${r}${a}`,targetText:"-"===i?i:`${r}${i}`,unit:""}}if("loyalty_points"===e.rewardTierCriteria){const n=kg(t?.currentPoints)??0,r=kg(e.minimumLoyaltyPointsRequired);return{current:n,target:r,currentText:Eg(n),targetText:Eg(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:wg.wrap},e.createElement("div",{className:"yt-vip-head",style:wg.head},e.createElement("div",{className:"yt-vip-titleBlock",style:wg.titleBlock},e.createElement("p",{className:"yt-vip-eyebrow",style:wg.eyebrow},"Current Balance"),e.createElement("p",{className:"yt-vip-balance",style:wg.balance},Eg(n))),e.createElement("div",{className:"yt-vip-current-tier",style:wg.currentTier},i&&e.createElement("p",{className:"yt-vip-validity",style:wg.validity},"Current Tier"," ",e.createElement("span",{style:wg.validitySpan},"Valid till ",g)),i&&e.createElement("h2",{className:"yt-vip-title",style:wg.title},i.name)),e.createElement("div",{className:"yt-vip-progress",style:wg.progress},e.createElement("p",{className:"yt-vip-progressTitle",style:wg.progressTitle},"Your Progress"),e.createElement("div",{className:"yt-vip-progressDots",style:wg.progressDots},Array.from({length:6}).map((t,n)=>e.createElement("span",{key:n,className:"yt-vip-dot "+(n<m?"yt-is-filled":""),style:{...wg.dot,...n<m?wg.dotFilled:null}}))),e.createElement("p",{className:"yt-vip-sub",style:wg.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:wg.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:Eg(e.minimumOrderCountRequired),label:"Orders Required"};if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod){const t=Eg(e.minimumOrderValueRequired);return{value:"-"===t?t:`${n}${t}`,label:"Order Value Required"}}return"loyalty_points"===e.rewardTierCriteria?{value:Eg(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:{...wg.card,...Cg(n),...t.tierThemeColor?{background:t.tierThemeColor}:null}},e.createElement("div",{className:"yt-vip-cardHead",style:wg.cardHead},t.name),e.createElement("div",{className:"yt-vip-metrics",style:wg.metrics},e.createElement("div",{className:"yt-vip-metric",style:wg.metric},e.createElement("b",{style:wg.metricBold},Eg(t.rewardMultiplier),"x"),e.createElement("span",{style:wg.metricSpan},"Rewards")),e.createElement("div",{className:"yt-vip-metric",style:wg.metric},e.createElement("b",{style:wg.metricBold},Eg(t.redemptionMultiplier),"x"),e.createElement("span",{style:wg.metricSpan},"Redemption")),e.createElement("div",{className:"yt-vip-metric",style:wg.metric},e.createElement("b",{style:wg.metricBold},a.value),e.createElement("span",{style:wg.metricSpan},a.label)),r&&e.createElement("div",{className:"yt-vip-metric",style:{...wg.metric,justifyContent:"end",height:"100%"}},e.createElement("span",{style:wg.metricSpan},"+ Special Deals"))))})),e.createElement("div",{className:"yt-vip-note",style:wg.note},"stay signed-in with the account you use for checking out"))}Rt(".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 Ng={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 Sg({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=zg(m?.referrerReward,p,o),y=zg(m?.refereeReward,p,o),f=!!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:lg.body},a?.creditOnActivitiesProperties?.birthdayReward?.status&&a?.creditOnActivitiesProperties?.birthdayReward?.widgetVisibility&&Number(a?.creditOnBirthdayValue??0)>0&&e.createElement(_g,{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:Fg(a?.creditOnActivitiesProperties?.birthdayReward?.icon,e.createElement(xe,{size:28,color:"#000"})),activityRewards:a,userData:t,onBirthdayUpdate:i}),d?.programStatus&&d?.programVisibility&&Number(d?.orderCreditValue??0)>0&&e.createElement(Dg,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Fg(d?.programIcon,e.createElement(fe,{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(Dg,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Fg(a?.creditOnActivitiesProperties?.signUpReward?.icon,e.createElement(E,{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(Dg,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Fg(a?.creditOnActivitiesProperties?.firstOrderReward?.icon,e.createElement(fe,{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(Dg,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Fg(a?.creditOnActivitiesProperties?.secondOrderReward?.icon,e.createElement(fe,{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=Fg(o.icon,e.createElement(Le,{size:28,color:"#000"})),d=o.url?.trim(),m=i>0,u=m?i:l,g=m?"feedback":"image_feedback",y=m?"for a review":"for an image review",f=o.offerTitle?.trim()?o.offerTitle:y,x=m&&l>0?`Earn ${l} ${p} for image review`:void 0;return d?e.createElement(Ag,{ctaContrastColor:n,ctaPrimaryColor:r,active:!0,initializing:!t,url:d,type:g,icon:c,coins:u,coinName:p,title:f,subcopy:x,onCouponAvail:async e=>s?.(e,g)??!1}):e.createElement(Dg,{ctaContrastColor:n,ctaPrimaryColor:r,icon:c,coins:u,coinName:p,title:f,subcopy:x,showAvail:!1,onCouponAvail:()=>{}})})(),f&&e.createElement(Dg,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Fg(m?.offerIcon,e.createElement(k,{size:28,color:"#000"})),coins:0,coinName:p,title:"",showAvail:!1,onCouponAvail:()=>{},customTitle:e.createElement(Pg,{title:m?.offerTitle,referrerReward:g,refereeReward:y})}),a?.creditOnActivitiesProperties?.customLink?.status&&Number(a?.creditOnCustomLinkValue??0)>0&&e.createElement(Ag,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasClickedOnCustomLink,initializing:!t,url:a?.creditOnActivitiesProperties?.customLink?.url??"",type:"custom_link",icon:Fg(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(Ag,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasFollowedOnInstagram,initializing:!t,url:a?.creditOnActivitiesProperties?.instagramFollow?.url??"",type:"instagram",icon:Fg(a?.creditOnActivitiesProperties?.instagramFollow?.icon,e.createElement(Nt,{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(Ag,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasLikedOnFacebook,initializing:!t,url:a?.creditOnActivitiesProperties?.facebookLike?.url??"",type:"facebook_like",icon:Fg(a?.creditOnActivitiesProperties?.facebookLike?.icon,e.createElement(le,{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(Ag,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasSharedOnFacebook,initializing:!t,url:a?.creditOnActivitiesProperties?.facebookShare?.url??"",type:"facebook_share",icon:Fg(a?.creditOnActivitiesProperties?.facebookShare?.icon,e.createElement(le,{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(Ag,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasFollowedOnTwitter,initializing:!t,url:a?.creditOnActivitiesProperties?.twitterFollow?.url??"",type:"twitter",icon:Fg(a?.creditOnActivitiesProperties?.twitterFollow?.icon,e.createElement(se,{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(Ag,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasSubscribedOnYoutube,initializing:!t,url:a?.creditOnActivitiesProperties?.youtubeSubscription?.url??"",type:"youtube",icon:Fg(a?.creditOnActivitiesProperties?.youtubeSubscription?.icon,e.createElement(ce,{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:lg.footer},e.createElement("hr",null),e.createElement("p",{className:"yt-wtr-footerText",style:lg.footerText},"stay signed-in with the account you use for checking out")))}function Fg(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 Bg({icon:t}){return e.createElement("span",{className:"yt-wte-bgIcon",style:lg.wteBgIcon,"aria-hidden":!0},t)}function $g({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 zg(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 Ig(t,n){return t?e.createElement("span",{key:n,style:{fontWeight:600}},t):null}function Pg({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?Ig(n,`referrer-${o}`):"{{referee_reward}}"===t?Ig(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 Dg({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:lg.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...lg.redeemCardHeader,borderRadius:o&&""!=o?"8px 8px 0 0":"8px"}},e.createElement(Bg,{icon:l}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:lg.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:lg.redeemCardIcon},l),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:lg.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:lg.redeemCardTitle},r??e.createElement($g,{title:n,coins:s,type:c,coinName:d})),a&&e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:lg.redeemCardSubtitle},a),i&&e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:lg.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:lg.cta},"Avail")),o&&""!=o&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:lg.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:lg.redeemCardFooterText},o)))}function Ag({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:y}){const[f,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:lg.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...lg.redeemCardHeader,borderRadius:i&&""!=i?"8px 8px 0 0":"8px"}},e.createElement(Bg,{icon:m}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:lg.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:lg.redeemCardIcon},m),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:lg.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:lg.redeemCardTitle},e.createElement($g,{title:a,coins:d??"",coinName:p})),l&&e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:lg.redeemCardSubtitle},l))),e.createElement("button",{onClick:async()=>{try{b(!0);await y(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:lg.cta},h||o?e.createElement(ig,{size:18,color:"#fff",centered:!0}):w?"Availed":"Avail")),f&&e.createElement(og,{displayText:f,background:"#000000",textColor:"#ffffff"}))}function _g({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,y]=t(!1),[f,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:lg.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...lg.redeemCardHeader,borderRadius:"8px 8px 0 0"}},e.createElement(Bg,{icon:k}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:lg.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:lg.redeemCardIcon},k),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:lg.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:lg.redeemCardTitle},e.createElement($g,{title:s,coins:a,type:i,coinName:l})))),e.createElement(e.Fragment,null," ",e.createElement("button",{onClick:()=>y(!0),disabled:C||d,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:lg.cta},d?e.createElement(ig,{size:18,color:"#fff",centered:!0}):C?"Availed":"Avail"),e.createElement(Lg,{isLoading:h,open:g,value:w,onChange:e=>{v(e.target.value),console.log("SElected date",e.target.value)},onClose:()=>y(!1),onSave:async e=>{try{b(!0);await u(e)?(E(!0),x("Birthday saved"),y(!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:lg.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:lg.redeemCardFooterText},"Add birth date to avail the offer")),f&&e.createElement(og,{displayText:f,background:"#000000",textColor:"#ffffff"}))}function Lg({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:Ng.modalBackdrop,onClick:a},e.createElement("div",{className:"yt-dob-modal",style:Ng.modal,onClick:e=>e.stopPropagation()},e.createElement("h2",{className:"yt-dob-modal-title",style:Ng.modalTitle},"What’s your date of birth?"),e.createElement("input",{ref:s,type:"date",className:"yt-dob-date-input",style:Ng.dateInput,value:n??"",max:d,onChange:i}),p&&e.createElement("p",{className:"yt-dob-error",style:Ng.error},"You must be at least 10 years old."),e.createElement("div",{className:"yt-dob-modal-actions",style:Ng.modalActions},e.createElement("button",{className:"yt-dob-btn-secondary",style:Ng.btnSecondary,onClick:a},"Cancel"),e.createElement("button",{className:"yt-dob-btn-primary",style:Ng.btnPrimary,disabled:!n||p,onClick:()=>n&&!p&&r(n)},l?e.createElement(ig,{size:18,color:"#fff",centered:!0}):"Save"))))}Rt("/* 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 Rg={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}},Og={earned:"#D4F9A780",expired:"#FFB3B380",availed:"#CDE2FF80"},Mg={earned:"#3d8b3d",expired:"#c44a4a",availed:"#3a5fa8"},Wg=e=>({...Rg.caret,color:Mg[e]}),Vg={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"},jg={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"},Hg={awaiting_payment:"awaiting-payment",confirmed:"confirmed",in_transit:"in-transit",delivered:"delivered",processing:"processing"};function qg(e){const t=Math.round(100*e)/100;return Number.isInteger(t)?t.toLocaleString():t.toLocaleString(void 0,{maximumFractionDigits:2})}function Ug(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 Yg(e,t,n){if("expired"===e)return`${n} Expired`;return`${n} ${"earned"===e?"Earned":"Availed"}: on-${function(e){const t=e.toLowerCase();return Vg[t]?Vg[t]:t.split("_").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}(t)}`}function Zg(e){if(e)return Hg[e]??e.replace(/_/g,"-")}function Gg(e,t){return e.map(e=>{return{deltaLabel:`+ ${qg(e.points)} ${t.toLowerCase()}`,orderId:e.orderId?`#ORDERID: ${e.orderId}`:void 0,status:Zg(e.orderStatus),note:(n=e.criteria,n&&jg[n]?jg[n]:"Coins will be credited once the order is complete")};var n})}const Xg={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 Kg({data:t,tokenName:n="Coins",currencySymbol:r="$"}){const o=t??Xg,{totals:a,months:i,pending:l}=function(e,t,n){const r={saved:(o=e.summary.totalSaved??0,a=n,`${a}${qg(o)}`),earned:qg(e.summary.totalEarned??0),available:qg(e.summary.totalAvailed??0),expired:qg(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:Ug(e.createdAt),title:Yg(r,e.activityType,t),amount:qg(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:Gg(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:Rg.wrap},e.createElement("div",{className:"yt-rt-totals",style:Rg.totals},e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:Rg.totalLabel},"Total Saved"),e.createElement("div",{className:"yt-rt-totalValue",style:Rg.totalValue},a.saved)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:Rg.totalLabel},"Total Earned"),e.createElement("div",{className:"yt-rt-totalValue",style:Rg.totalValue},a.earned)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:Rg.totalLabel},"Total Avail",e.createElement("span",{className:"yt-rt-hideSm"},"ed")),e.createElement("div",{className:"yt-rt-totalValue",style:Rg.totalValue},a.available)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:Rg.totalLabel},"Expired"),e.createElement("div",{className:"yt-rt-totalValue",style:Rg.totalValue},a.expired))),l.map((t,n)=>e.createElement(e.Fragment,{key:`${t.orderId??"pending"}-${n}`},e.createElement("div",{className:"yt-rt-pendingPills",style:Rg.pendingPills},e.createElement("span",{className:"yt-rt-pill yt-rt-pill--delta",style:{...Rg.pill,...Rg.pillDelta}},t.deltaLabel),e.createElement("div",{className:"yt-rt-pendingPillsRight",style:Rg.pendingPillsRight},t.orderId&&e.createElement("span",{className:"yt-rt-pill yt-rt-pill--order",style:{...Rg.pill,...Rg.pillOrder}},t.orderId),t.status&&e.createElement("span",{className:"yt-rt-pill yt-rt-pill--status",style:{...Rg.pill,...Rg.pillStatus}},t.status))),t.note&&e.createElement("div",{className:"yt-rt-pendingNote",style:Rg.pendingNote},t.note))),i.map(t=>e.createElement("div",{key:t.monthTitle,className:"yt-rt-month"},e.createElement("div",{className:"yt-rt-monthTitle",style:Rg.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,{...Rg.row,background:Og[n]})},e.createElement("div",{className:"yt-rt-rowHeader",style:Rg.rowHeader},e.createElement("span",{className:"yt-rt-caret",style:Wg(t.kind)},"▶"),e.createElement("span",{className:"yt-rt-date",style:Rg.date},t.dateLabel)),e.createElement("div",{className:"yt-rt-rowBody",style:Rg.rowBody},e.createElement("div",{className:"yt-rt-title"},function(t){const n=t.indexOf(": ");return-1===n?e.createElement("span",{style:Rg.title},t):e.createElement(e.Fragment,null,e.createElement("span",{style:Rg.title},t.substring(0,n+1)),e.createElement("span",{style:Rg.titleSuffix}," ",t.substring(n+2)))}(String(t.title))),e.createElement("div",{className:"yt-rt-amount",style:Rg.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 Jg({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 ey(e){try{return Number(e).toLocaleString()}catch{return e}}function ty(e){const t=Number(e);return Math.round(10*t)/10}function ny({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 ry({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:y,themeSecondaryColor:f,themeSecondaryContrastColor:x,themeBackgroundColor:h,themeTextColor:b,themeAccentColor:w,widgetOpen:v,widgetRoundedCorners:C,ctaPrimaryColor:E,ctaPrimaryContrastColor:k,ctaBorderColor:T,ctaSecondaryColor:N,ctaSecondaryContrastColor:S,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:W,balanceCoins:V,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,onFreebieAddToCart:ne,referralLink:re,userRewardTier:oe,brandRewardTiers:ae,onClose:ie=()=>{},onLogout:le,userData:se,activityRewards:ce,brandRewardProgram:de,recentTransactionsData:pe,isLoading:me,onBirthdayUpdate:ue,onSocialClick:ge,onFeedbackRewardClick:ye,customHTML:fe}=r||{},[xe,he]=t(!1),be=o(null),we=o(null),ve=o(null),[Ce,Ee]=t(!1),[ke,Te]=t("profile"),Ne=e=>{i||Te(e)},Se="start"===p?{alignItems:"flex-start",textAlign:"left"}:"end"===p?{alignItems:"flex-end",textAlign:"right"}:{alignItems:"center",textAlign:"center"},Fe=null!=V&&""!==V&&!isNaN(Number(V)),Be="static"===s?"":c??"",$e=ce?.creditOnActivitiesProperties?.referralRewardConfig,ze=oe?.currentTier,Ie=Array.isArray(ze?.catalogDealsProducts)?ze?.catalogDealsProducts??[]:[],Pe=Ie?.length>0,De=ze?.rewardMultiplier,Ae=oe?.nextTier,_e=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:`${ey(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}${ey(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:`${ey(Math.max(0,a-o))} points`}return null}(Ae,oe,q),Le=!!$e?.customizeReferralSectionContent,Re=$e?.shareMethod,Oe=de?.coinName??U??"coins",Me=zg($e?.referrerReward,Oe,q),We=zg($e?.refereeReward,Oe,q);async function Ve(e){he(!0),setTimeout(()=>he(!1),2e3);try{await navigator.clipboard.writeText(e)}catch{}}n(()=>{const e=be.current,t=we.current,n=ve.current;if(!e||!t||!n)return;if(!a){return Ee("profile"!==ke),e.classList.add("yt-rw-card--locked"),e.scrollTop=0,void(n.scrollTop=0)}const r=80;let o=!1,i=0,l="profile"!==ke||Ce;const s=t=>{o=t,e.classList.toggle("yt-rw-card--locked",t),t&&(e.scrollTop=0,l=!0,Ee(!0))},c=e=>{const t=Math.max(8,78),n=Math.max(0,t-12);if(!l&&e>=t)return l=!0,void Ee(!0);l&&e<=n&&(l=!1,Ee(!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"!==ke)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},y=e=>{const t=e.touches[0]?.clientY??0,n=u-t;u=t;p(n)&&e.preventDefault()},f=()=>{if(i=d(i,0,r),o)return i=r,e.scrollTop=0,l=!0,void Ee(!0);e.scrollTop=i,c(i)};e.addEventListener("wheel",m,{passive:!1}),e.addEventListener("touchstart",g,{passive:!0}),e.addEventListener("touchmove",y,{passive:!1}),window.addEventListener("resize",f);const x="profile"!==ke;return Ee(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",y),window.removeEventListener("resize",f)}},[ke,a]);const je=async e=>{const t=re?.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")},He=!a,qe=e.createElement("div",{onMouseDown:e=>e.stopPropagation(),ref:be,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:we,className:"yt-rw-head "+(Ce||"profile"!==ke?"yt-rw-head--shrink":""),style:{color:d,backgroundColor:l,backgroundImage:Be&&Be.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${Be})`:void 0,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",padding:"profile"!==ke?"0px":"",maxHeight:"profile"!==ke?"0px":"",minHeight:"profile"!==ke?"0px":"",overflow:"profile"!==ke?"hidden":"",alignItems:Se?.alignItems,textAlign:Se?.textAlign}},e.createElement("button",{className:"yt-rw-close","aria-label":"Close",onClick:ie,style:{color:d}},"×"),!Be&&m&&e.createElement("div",{className:"yt-rw-headBg",style:u?{color:u}:void 0},R),L&&W&&W?.length>0&&e.createElement("div",{className:"yt-rw-logo",style:{alignSelf:Se?.alignItems??"",paddingRight:"20px"}},e.createElement("img",{src:W,alt:""})),"profile"==ke&&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"!=ke&&e.createElement("div",{className:"yt-rw-backNavigation",style:{backgroundColor:l,backgroundImage:Be&&Be.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${Be})`: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:()=>Ne("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"==ke?"Ways to Redeem":"wte"==ke?"Ways to Earn":"recentTransactions"==ke?"Recent Transactions":"VIP Tiers")," ",e.createElement("div",{style:{height:"24px",width:"36px",display:"block"}}))),e.createElement("div",{ref:ve,className:"yt-rw-body yt-rw-body--"+("profile"===ke?"back":"forward"),style:{backgroundColor:h,color:b,borderRadius:"profile"!=ke?"0px":""}},"profile"==ke?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"},Fe?e.createElement(ny,{value:Number(V)}):" "),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"})))),Fe?e.createElement("div",{className:"yt-rw-note",style:{color:b}},"Your point balance is"," ",e.createElement("b",{style:{color:b}},ty(Number(V)/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:()=>Ne("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:()=>Ne("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"},`${ty(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(ag,{setScreenType:Ne,themePrimaryColor:g,themeContrastColor:y,themeSecondaryColor:f,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"},Le?e.createElement(Pg,{title:$e?.offerTitle,referrerReward:Me,refereeReward:We}):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"===Re?"Share your referral code":"Share your referral link"),e.createElement("div",{style:{display:"flex",gap:"7px",justifyContent:"referral_code"===Re?"center":void 0,alignItems:"center"}},"referral_code"===Re?e.createElement("div",{className:"yt-rw-codebox",style:{color:w,borderRadius:B}},re):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:re,readOnly:!0})),e.createElement("button",{className:"yt-rw-copy",type:"button",style:{cursor:"pointer",borderRadius:B},onClick:()=>Ve(re)},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:()=>je("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:()=>je("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:()=>je("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:()=>je("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:()=>je("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"==ce?.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:N,color:S,borderRadius:B},onClick:()=>Ne("recentTransactions")},e.createElement("div",{className:"yt-rw-cta-left",style:{color:S}},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:S}},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"),ze&&e.createElement("p",{className:"yt-rw-tiers_desc",style:{color:b,fontSize:"15px"}},ze.name)),e.createElement("div",{className:"yt-rw-tiers__gems"},e.createElement(Jg,{className:"yt-gem yt-gem--violet",gradientPrefix:"vip-violet",overlayColor:"#8E74F4"}),e.createElement(Jg,{className:"yt-gem yt-gem--gold",gradientPrefix:"vip-gold",overlayColor:"#F3BE00"}),e.createElement(Jg,{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,De??Ae?.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}}," ",Pe||(Ae?.catalogDealsProducts?.length??0)>0?"special deals":"special discounts")),e.createElement("button",{onClick:()=>Ne("vip"),style:{"--hover-bg":f,"--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"}))))),_e&&Ae&&e.createElement("div",{className:"yt-rw-note"},"You’re ",e.createElement("b",null,_e)," away from"," ",e.createElement("b",null,Ae.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:le,style:{background:N,color:S}},"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"==ke?e.createElement(pg,{balanceCoins:Number(V),couponList:J,freebies:ee,currencyCode:q,onCouponAvail:te,onFreebieAddToCart:ne,setScreenType:Ne,themeSecondaryColor:f,themeSecondaryContrastColor:x,showCTA:!0,couponCode:K,couponHeading:X,copyFunction:Ve,ctaBorderRadius:B,brandRewardProgram:de,redemptionMovRequired:Y,userRewardTier:oe,brandRewardTiers:ae}):"vip"==ke?e.createElement(Tg,{onBack:()=>Ne("profile"),brandRewardTiers:ae,balanceCoins:V,userRewardTier:oe,currencyCode:q}):"wte"==ke?e.createElement(Sg,{ctaPrimaryColor:E??"",ctaContrastColor:k??"",currencyCode:q,userData:se,activityRewards:ce,onBirthdayUpdate:ue,onSocialClick:ge,onFeedbackRewardClick:ye,isLoading:me,brandRewardProgram:de}):"recentTransactions"==ke?e.createElement(Kg,{data:pe,tokenName:U,currencySymbol:"INR"===q?"₹":q??"$"}):e.createElement("div",null)),xe&&e.createElement(og,{background:g,textColor:y}));return v?He?e.createElement("div",{className:"yt-rw-shell "+(C?"yt-rw-shell--below":"yt-rw-shell--right")},qe,e.createElement("div",{className:"yt-powered-by"},e.createElement("p",null,"powered by ",e.createElement("span",null,"YourToken")))):qe:e.createElement("div",null)}function oy({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="",y="";"top-left"==r?(m="0px",u=o):"top-right"==r?(g="0px",u=o):"bottom-right"==r?(g="0px",y=o):(m="0px",y=o);const f=function(t,n,r){const o=n?.trim();return"custom"===t&&o?e.createElement("img",{src:o,alt:""}):e.createElement(he,{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:y,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&&f,e.createElement("p",{style:{color:t,transform:"top-right"==r||"bottom-right"==r?"scale(-1, 1)":""}},a),("top-right"==r||"bottom-right"==r)&&f):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:y,borderColor:i}},d&&e.createElement(e.Fragment,null,e.createElement("span",{className:"yt-ring"}),e.createElement("span",{className:"yt-ring yt-ring2"})),f)}const ay="20px";function iy({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(${ay} + ${u})`:ay,[m?"right":"left"]:"20px"},y=function(t,n,r){const o=n?.trim();return"custom"===t&&o?e.createElement("img",{src:o,alt:""}):e.createElement(he,{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"})),y,a?.length>0&&e.createElement("p",{style:{color:t}},a))}function ly(t,n,r){const o=n?.trim();return"custom"===t&&o?e.createElement("img",{src:o,alt:""}):e.createElement(he,{color:r})}function sy({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),[y,f]=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(f(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 "+(y?"yt-is-marquee":""),ref:g},e.createElement("span",{style:{color:n}},a),ly(c,d,""!==n?n:"white"),e.createElement("p",{style:{color:n}},l),y&&e.createElement(e.Fragment,null,e.createElement("span",{style:{color:n}},a),ly(c,d,""!==n?n:"white"),e.createElement("p",{style:{color:n}},l)))))}function cy({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:y=()=>{}}){const f=(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(oy,{onClick:y,textColor:n,backgroundColor:r,position:o,yOffsetValue:f,borderColor:s,iconType:c,launcherIcon:d,addAttentionWaves:m,addVisibilityDelay:p,launcherTitle:i});break;case"bubble":x=e.createElement(iy,{onClick:y,textColor:n,backgroundColor:r,position:o,yOffsetValue:f,borderColor:s,iconType:c,launcherIcon:d,addAttentionWaves:m,addVisibilityDelay:p,launcherTitle:i});break;case"ribbon":x=e.createElement(sy,{onClick:y,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 dy({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:y,themeAccentColor:f,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,N]=t(!1);n(()=>{k.current[0]?.focus()},[]);const S=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)){N(!0);const t=e.join("");if(c){await c(t)||(N(!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:f,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(),S.length===v&&c){await c(S)||(N(!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 N(!1);e>0&&(k.current[e-1]?.focus(),F(e-1,""),N(!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:f,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(ig,{size:18,color:"#fff",centered:!0}):"Confirm")))}Rt(".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 py={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 my({onClose:t,handleSessionDetected:n}){return e.createElement("div",{className:"yt-asd-ol",style:py.overlay,role:"dialog","aria-modal":"true"},e.createElement("div",{className:"yt-asd-card",style:py.card},e.createElement("h4",{className:"yt-asd-title",style:py.title},"Active Session Found!"),e.createElement("p",{className:"yt-asd-desc",style:py.desc},"You’re already signed in. Tap below to refresh and access your loyalty rewards."),e.createElement("button",{className:"yt-asd-btn",style:py.btn,onClick:n},"Refresh & Continue")))}function uy({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:y="",guestGreeting:f="Welcome to",existingUserGreeting:x="",emailRequired:h,onPhoneChange:b,onEmailChange:w,validatePhone:v,setEmailRequired:C,onClose:E=()=>{},onRegister:k,handleChangeNumber:T,handleResendOtp:N,handleSessionDetected:S,onSendOTP:F,isSessionDetected:B,authType:$="default",formFilled:z=!1,redirectUrl:I="",ctaTitle:P="Register Now",ctaPrimaryColor:D="",ctaPrimaryContrastColor:A="",themeAccentColor:_="",registerLink:L="",brandTitle:R="My Pahadi Rewards",widgetOpen:M=!0,heading:W="Get Started",subcopy:V="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,ye]=t(!1);return n(()=>{ye(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(my,{handleSessionDetected:S??(()=>{})}),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}},R),e.createElement("div",{className:"yt-rwmd-hero_header",style:{alignItems:ce.alignItems,textAlign:ce.textAlign,width:"100%"}},g&&y&&y?.length>0&&e.createElement("div",{className:"yt-rwmd-logo",style:{alignSelf:ce.alignItems}},e.createElement("img",{src:y,alt:""})),e.createElement("p",{className:"yt-rwmd-hero-eyebrow",style:{color:d}},f),e.createElement("h2",{id:"yt-rwmd-title",className:"yt-rwmd-hero-title",style:{color:d}},R))),e.createElement("div",{className:"yt-rwmd-content",style:{background:a}},e.createElement("div",{className:"yt-rwmd-body",style:{color:i}},ae&&e.createElement(og,{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}},W),e.createElement("p",{className:"yt-rwmd-subcopy",style:{color:i}},V)),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(O,{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(ig,{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)&&!fy(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(ig,{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:!fy(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(ig,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",{className:"yt-rwmd-cta",style:{color:A,background:D},onClick:()=>{k?.(),""!=L&&(window.location.href=L)}},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(dy,{setToast:ie,authType:$,email:te,countryCode:le,themeAccentColor:_,themeBackgroundColor:a,themeTextColor:i,ctaPrimaryColor:D,ctaPrimaryContrastColor:A,phoneLabel:J,length:4,onConfirm:k,onResend:N,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 gy({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:y="",guestGreeting:f="Welcome to",existingUserGreeting:x="",phone:h="",email:b="",emailRequired:w,onPhoneChange:v,onEmailChange:C,validatePhone:E,setEmailRequired:k,onClose:T=()=>{},onRegister:N=e=>Promise,handleChangeNumber:S,handleResendOtp:F,handleSessionDetected:B,onSendOTP:$,isSessionDetected:z,isLoading:I,authType:P="phone",countryCode:D,formFilled:A=!1,redirectUrl:_="",ctaTitle:L="Register Now",ctaPrimaryColor:R="",ctaPrimaryContrastColor:M="",registerLink:W="",brandTitle:V="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(my,{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(og,{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 ${V} 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(O,{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(ig,{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)&&!fy(X),className:"yt-rwmd-cta",style:{margin:"0px",color:M,background:R},onClick:async()=>{ne(!0);await($?.())?ne(!1):(ne(!1),oe("An error occured!"),setTimeout(()=>oe(null),3e3))}},te?e.createElement(ig,{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:!fy(X),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:M,background:R},onClick:async()=>{ne(!0);await($?.())?ne(!1):(ne(!1),oe("An error occured!"))}},te?e.createElement(ig,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",null,e.createElement("p",null,L??"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(dy,{setToast:oe,authType:P,email:b??X,countryCode:ae,themeAccentColor:i,themeBackgroundColor:o,themeTextColor:a,ctaPrimaryColor:R,ctaPrimaryContrastColor:M,phoneLabel:Z,length:4,onConfirm:N,onResend:()=>F?.(),onChangeNumber:S,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 yy({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:y=!1,logourl:f="",guestGreeting:x="Welcome to",existingUserGreeting:h="",emailRequired:b,onPhoneChange:w,onEmailChange:v,onClose:C=()=>{},onRegister:E,handleChangeNumber:k,handleResendOtp:T,handleSessionDetected:N,onSendOTP:S,isSessionDetected:F,authType:B="default",countryCode:$,validatePhone:z,setEmailRequired:I,formFilled:P=!1,redirectUrl:D="",ctaTitle:A="Register Now",ctaMainColor:_="",ctaMainContrastColor:L="",ctaPrimaryColor:R="",ctaPrimaryContrastColor:M="",themeAccentColor:W="",registerLink:V="",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%"}},y&&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(my,{handleSessionDetected:N??(()=>{})}),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(og,{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(O,{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(ig,{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)&&!fy(te),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:M,background:R},onClick:async()=>{oe(!0);await(S?.())?oe(!1):(oe(!1),ie("An error occured!"),setTimeout(()=>ie(null),3e3))}},re?e.createElement(ig,{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:!fy(te),className:"yt-rwmd-cta",style:{margin:"0px",color:M,background:R},onClick:async()=>{oe(!0);await(S?.())?oe(!1):(oe(!1),ie("An error occured!"),setTimeout(()=>ie(null),3e3))}},re?e.createElement(ig,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",{className:"yt-rwmd-cta",style:{color:M,background:R},onClick:()=>{E?.(),""!=V&&(window.location.href=V)}},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:W}},"T&Cs")," ","and"," ",e.createElement("a",{href:"https://yourtoken.io/privacy-policy",target:"_blank",rel:"noreferrer",style:{color:W}},"Privacy Policy"))):e.createElement(dy,{setToast:ie,authType:B,email:te,countryCode:le,themeAccentColor:W,themeBackgroundColor:a,themeTextColor:i,ctaPrimaryColor:R,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 fy=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);function xy({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(uy,{config:r}):o&&o?.length>0?e.createElement(gy,{config:r}):e.createElement(yy,{config:r})}function hy({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:y="",themeAccentColor:f="",widgetOpen:x=!0,widgetPosition:h="center",guestWidgetImage:b="",widgetRoundedCorners:w=!1,ctaMainColor:v="",ctaMainContrastColor:C="",ctaPrimaryColor:E="",ctaPrimaryContrastColor:k="",ctaBorderColor:T="",ctaSecondaryColor:N="",ctaSecondaryContrastColor:S="",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:W=0,redemptionMovRequired:V,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,onFreebieAddToCart:ee,couponImage:te="https://images.unsplash.com/photo-1606318313647-137fcb1d5cd2?q=80&w=800&auto=format&fit=crop",referralLink:ne="",userRewardTier:re,brandRewardTiers:oe,watermarkColor:ae="#fff",bannerTextAlignment:ie="start",showWatermark:le=!0,showLogo:se=!1,logourl:ce="",guestGreeting:de="Welcome to",userGreeting:pe="Welcome to",existingUserGreeting:me="",phone:ue="",email:ge="",emailRequired:ye=!1,onPhoneChange:fe=e=>{},onEmailChange:xe=e=>{},validatePhone:he,setEmailRequired:be,onClose:we=()=>{},onRegister:ve,onLogout:Ce,handleChangeNumber:Ee,handleResendOtp:ke,handleSessionDetected:Te,onSendOTP:Ne,isSessionDetected:Se,authType:Fe="phone",formFilled:Be=!1,redirectUrl:$e="",ctaTitle:ze="Register Now",registerLink:Ie="",brandTitle:Pe="",heading:De="Get Started",subcopy:Ae="Welcome to YourToken Loyalty Program <> Earn as you Buy",termsHref:_e="#",privacyHref:Le="#",isLoading:Re,userData:Oe,activityRewards:Me,brandRewardProgram:We,recentTransactionsData:Ve,customCss:je,enableCustomCss:He,customHTML:qe,onBirthdayUpdate:Ue,onSocialClick:Qe,onFeedbackRewardClick:Ye,countryCode:Ze,isMobilePreview:Ge,viewportMode:Xe}){n(()=>{const e=e=>{"Escape"===e.key&&we()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[we]),n(()=>{if(!x)return;const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[x]);const Ke=o(null);n(()=>{const e=Ke.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[Je,et]=t("undefined"!=typeof window&&window.innerWidth<=480);n(()=>{if("undefined"==typeof window)return;const e=()=>et(window.innerWidth<=480);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const tt="mobile"===Xe||"desktop"!==Xe&&Je;return e.createElement("div",{ref:Ke,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")||we()},className:"yt-root yt-reward-loyalty-overlay"},He&&je?.trim()&&e.createElement("style",{"data-yt-custom-css":"loyalty-widget",dangerouslySetInnerHTML:{__html:je}}),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(ry,{config:{isMobile:tt,previewMode:a,bannerTextAlignment:ie,bannerBackground:i,bannerBackgroundType:l,bannerImage:s,bannerTextColor:c,themePrimaryColor:d,themeContrastColor:p,themeSecondaryColor:m,themeSecondaryContrastColor:u,themeBackgroundColor:g,themeTextColor:y,themeAccentColor:f,widgetOpen:x,widgetPosition:h,widgetRoundedCorners:w,ctaPrimaryColor:E,ctaPrimaryContrastColor:k,ctaBorderColor:T,ctaSecondaryColor:N,ctaSecondaryContrastColor:S,ctaShowIcon:F,ctaBorderRadius:B,showWaysToEarn:$,showWaysToRedeem:z,showWCoinValue:I,showReferral:P,referralLocked:D,showTransactions:A,showVipSection:_,showLogo:se,brandName:L,brandLogoUrl:R,headingEyebrow:O,userGreeting:pe,balanceCoins:M,maxRedeemableCoins:W,redemptionMovRequired:V,coinValInr:j,coinIcon:H,currencyCode:q,tokenName:U,rateTitle:Q,rateSub:Y,couponHeading:Z,couponCode:G,couponImage:te,couponList:X,freebies:K,onCouponAvail:J,onFreebieAddToCart:ee,referralLink:ne,userRewardTier:re,brandRewardTiers:oe,userData:Oe,activityRewards:Me,brandRewardProgram:We,recentTransactionsData:Ve,isLoading:Re,onBirthdayUpdate:Ue,onSocialClick:Qe,onFeedbackRewardClick:Ye,customHTML:qe,onClose:we,onLogout:Ce}}):e.createElement(xy,{config:{isLoading:Re,themeBackgroundColor:g,themeTextColor:y,themeAccentColor:f,bannerBackground:i,bannerBackgroundType:l,bannerImage:s,bannerTextColor:c,watermarkColor:ae,widgetRoundedCorners:w,guestWidgetImage:b,bannerTextAlignment:ie,showWatermark:le,showLogo:se,logourl:ce,guestGreeting:de,existingUserGreeting:me,phone:ue,email:ge,emailRequired:ye,onPhoneChange:fe,onEmailChange:xe,validatePhone:he,setEmailRequired:be,onClose:we,onRegister:ve,handleChangeNumber:Ee,handleResendOtp:ke,handleSessionDetected:Te,onSendOTP:Ne,isSessionDetected:Se,authType:Fe,countryCode:Ze,formFilled:Be,redirectUrl:$e,ctaTitle:ze,ctaMainColor:v,ctaMainContrastColor:C,ctaPrimaryColor:E,ctaPrimaryContrastColor:k,registerLink:Ie,brandTitle:Pe,brandLogoUrl:R,widgetOpen:x,heading:De,subcopy:Ae,termsHref:_e,privacyHref:Le,isMobilePreview:Ge,viewportMode:Xe}}))}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}`}));Rt('.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 by={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:"},wy=e=>{if(null==e||""===e)return null;const t="number"==typeof e?e.toString():e;return t.includes("₹")?t:`₹${t}`},vy=({config:a})=>{const i={...by,...a},{sectionTitle:l,catalogBanner:s,coinBalance:c,coinBalanceLabel:d,coinIconUrl:p,coinName:m,display:u,alignment:g,titleFontSize:y,titleColor:f,tabBackgroundColor:x,tabActiveColor:h,tabActiveTextColor:b,tabTextColor:w,cardBackgroundColor:v,buttonColor:C,buttonTextColor:E,borderColor:k,roundness:T,tiers:N,selectedTierId:S,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]),W=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 V="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:f,fontSize:`${y}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:V,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"},wy(t.mrp)?e.createElement(e.Fragment,null,e.createElement("span",{className:"lpc-priceMuted"},"MRP:"),e.createElement("span",{className:"lpc-priceStrikethrough"},wy(t.mrp))):null,wy(t.price)?e.createElement("span",{className:"lpc-priceNow"},wy(t.price)):null,wy(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(ig,{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:()=>W("left"),disabled:!D},e.createElement(Bt,null)),e.createElement("button",{className:"lpc-navBtn "+(_?"lpc-navBtn--enabled":""),type:"button",onClick:()=>W("right"),disabled:!_},e.createElement($t,null))):null)},Cy={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"}},Ey={left:"flex-start",center:"center",right:"flex-end"},ky=e=>"number"==typeof e?`${e}px`:e;function Ty({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=ky(d)??"18px",m="number"==typeof d?`${d+2}px`:`calc(${p} + 2px)`;return e.createElement("div",{className:"yt-peb-wrap",style:{...Cy.wrap,justifyContent:Ey[i]}},e.createElement("div",{className:"yt-peb",style:{...Cy.badge,background:a,borderColor:s,borderRadius:ky(c)}},e.createElement("div",{className:"yt-peb__content",style:{...Cy.content,textAlign:i}},t?e.createElement("span",{className:"yt-peb__text",style:{...Cy.text,color:l,fontSize:p}},t):null,n?e.createElement("img",{className:"yt-peb__icon",style:Cy.icon,src:n,alt:"","aria-hidden":"true"}):null,e.createElement("span",{className:"yt-peb__coins",style:{...Cy.coins,color:l,fontSize:m}},o),r?e.createElement("span",{className:"yt-peb__text",style:{...Cy.text,color:l,fontSize:p}},r):null)))}const Ny=["banner","referrals","gettingStarted","waysToEarn","customImage","customHtml","vipTiers","rewards","waysToRedeem"],Sy=e=>"INR"===e?"₹":e?`${e} `:"",Fy=(e,t)=>{const n=Number(e??0);return n>0?`min order ${Sy(t)}${n.toLocaleString()}`:"no mov"};function By(e){if(null==e||""===e)return"-";const t=Number(e);return Number.isNaN(t)?String(e):t.toLocaleString()}const $y=({config:t,signedIn:n=!1,referralLocked:r=!1,userData:o,onBannerButtonClick:a,onReferralButtonClick:i,onReferralCopyClick:l,onRewardsButtonClick:s,onRedeemClick:c,onEarnMoreClick:d,onActiveCouponCopy:p,onFreebieAddToCart:m})=>{const{sectionOrder:u,banner:g,referrals:y,gettingStarted:f,waysToEarn:x,vipTiers:h,rewards:b,waysToRedeem:w,customImage:E,customHtml:k,primaryColor:A="#1C1C1D",primaryContrastColor:_="#FFFFFF",secondaryColor:L="#FFFFFF",secondaryContrastColor:R="#000000",customCss:O,enableCustomCss:M}=t||{},W="undefined"!=typeof window&&window.innerWidth<=768,[V,j]=e.useState(null),H=()=>{"undefined"!=typeof window&&window.ytapp&&(window.ytapp.loyaltyWidgetOpen=!0,window.dispatchEvent(new Event("loyaltyWidgetOpenChanged")))},q={...{padding:"12px 32px",borderRadius:"30px",fontSize:"14px",fontWeight:600,cursor:"pointer",textTransform:"uppercase",border:`1px solid ${A}`,transition:"all 0.3s ease"},backgroundColor:A,color:_,borderColor:A},U=n?g?.signedInView:g?.guestView,Q={visibility:g?.visibility??"show",backgroundColor:g?.backgroundColor??"#F3F3F3",fontColor:g?.fontColor??"#000000",alignment:g?.alignment??"center",imageUrl:g?.imageUrl,badgeTitle:g?.badge?.enabled?g.badge.title?.trim():void 0,title:U?.title,subtitle:U?.subtitle,buttonText:g?.guestView?.buttonText,balanceCoins:g?.signedInView?.balanceCoins??o?.balanceCoins??(null!=o?.currentBalance?String(o.currentBalance):void 0),currentTier:g?.signedInView?.currentTier,nextTier:g?.signedInView?.nextTier,currentLtv:g?.signedInView?.currentLtv,nextTierLtv:g?.signedInView?.nextTierLtv,tierIcon:g?.signedInView?.tierIcon,memberSince:g?.signedInView?.memberSince,rewardTierCriteria:g?.signedInView?.rewardTierCriteria??o?.rewardTierCriteria,purchaseValueMethod:g?.signedInView?.purchaseValueMethod??o?.purchaseValueMethod,currencyCode:g?.signedInView?.currencyCode??o?.currencyCode,showTierProgress:g?.showTierProgress??!1},Y=Number(Q.currentLtv),Z=Number(Q.nextTierLtv),G=Q.showTierProgress&&Number.isFinite(Y)&&Number.isFinite(Z)&&Z>0,X=G?Math.min(100,Math.max(0,Y/Z*100)):0,K=G?Math.max(0,Z-Y):0,J=function(e,t,n,r,o){const a="INR"===o?"₹":o?`${o} `:"",i=By(n),l=By(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}}(Q.rewardTierCriteria,Q.purchaseValueMethod,Y,K,Q.currencyCode),ee=n?y?.signedInView:y?.guestView,te={visibility:y?.visibility??"show",backgroundColor:y?.backgroundColor??"#FFFFFF",fontColor:y?.fontColor??"#111111",badgeTitle:y?.badge?.enabled?y.badge.title?.trim():void 0,imageUrl:y?.imageUrl,imagePosition:y?.imagePosition??"left",guestVisibility:y?.guestVisibility??!0,title:ee?.title,subtitle:ee?.subtitle,buttonText:y?.guestView?.buttonText,referralLinkValue:y?.signedInView?.referralLinkValue??o?.referralLink},ne={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},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,guestVisibility:x?.guestVisibility??!0,showIcons:x?.showIcons??!0,ctaBg:x?.ctaBg??"#4E7E80",ctaFontColor:x?.ctaFontColor??"#FFFFFF",items:x?.items},oe={visibility:b?.visibility??"show",backgroundColor:b?.backgroundColor??"#FFFFFF",fontColor:b?.fontColor??"#111111",badgeTitle:b?.badge?.enabled?b.badge.title?.trim():void 0,imageUrl:b?.imageUrl,imagePosition:b?.imagePosition??"left",title:b?.title,description:b?.description,disclaimerText:b?.disclaimerText,buttonText:b?.buttonText,bottomCtaTitle:b?.bottomCtaTitle,bottomCtaSubtitle:b?.bottomCtaSubtitle},ae={visibility:w?.visibility??"show",backgroundColor:w?.backgroundColor??"#FFFFFF",fontColor:w?.fontColor??"#111111",badgeTitle:w?.badge?.enabled?w.badge.title?.trim():void 0,title:w?.title,subtitle:w?.subtitle,balanceLabel:w?.balanceLabel??"points available",balanceValue:w?.balanceValue??o?.balanceCoins??(null!=o?.currentBalance?String(o.currentBalance):void 0),balanceCtaText:w?.balanceCtaText??"earn more",currencyCode:w?.currencyCode??o?.currencyCode,activeCoupon:w?.activeCoupon?.trim(),activeCouponLabel:w?.activeCouponLabel??"You have an active coupon",freebies:w?.freebies,items:w?.items},ie={visibility:E?.visibility??"show",imageUrl:E?.imageUrl},le={visibility:k?.visibility??"show",htmlText:k?.htmlText},se={visibility:h?.visibility??"show",backgroundColor:h?.backgroundColor??"#FFFFFF",fontColor:h?.fontColor??"#111111",badgeTitle:h?.badge?.enabled?h.badge.title?.trim():void 0,title:h?.title,subtitle:h?.subtitle,benefitHeaderLabel:h?.benefitHeaderLabel,tiers:h?.tiers,rows:h?.rows,signedInView:{benefitHeaderLabel:h?.signedInView?.benefitHeaderLabel??h?.benefitHeaderLabel,statusLabel:h?.signedInView?.statusLabel,statuses:h?.signedInView?.statuses}},ce=async e=>{const t=e.code;t&&(e.onCopy?await e.onCopy(t):"undefined"!=typeof navigator&&navigator.clipboard&&await navigator.clipboard.writeText(t))},de=Array.isArray(u)?u:[],pe=Array.from(new Set(de.filter(e=>Ny.includes(e)))),me=[...pe,...Ny.filter(e=>!pe.includes(e))],ue=e=>me.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"}},M&&O?.trim()&&e.createElement("style",{"data-yt-custom-css":"loyalty-page",dangerouslySetInnerHTML:{__html:O}}),"show"===Q.visibility&&e.createElement("div",{className:"yt-loyalty-page-banner","data-signed-in":n?"true":void 0,"data-current-tier":n&&Q.currentTier?Q.currentTier:void 0,style:{order:ue("banner"),display:"flex",alignItems:"center",justifyContent:"left"===Q.alignment?"flex-start":"right"===Q.alignment?"flex-end":"center",width:"100%",backgroundColor:Q.backgroundColor,backgroundImage:Q.imageUrl?`url(${Q.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",border:"1px solid #E1E1E1",padding:W?"72px 20px":"120px 32px"}},e.createElement("div",{className:"yt-loyalty-page-banner-content",style:{width:"100%",maxWidth:"760px",textAlign:Q.alignment,display:"flex",flexDirection:"column",alignItems:"left"===Q.alignment?"flex-start":"right"===Q.alignment?"flex-end":"center",gap:W?"18px":"20px"}},Q.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}},Q.badgeTitle):null,e.createElement("h1",{className:"yt-loyalty-page-banner-title",style:{margin:0,fontSize:W?"40px":"56px",lineHeight:W?1.05:1.08,letterSpacing:"-0.03em",fontWeight:700,color:Q.fontColor}},Q.title),e.createElement("p",{className:"yt-loyalty-page-banner-subtitle",style:{margin:0,maxWidth:"620px",fontSize:W?"22px":"28px",lineHeight:1.18,fontWeight:400,color:Q.fontColor}},Q.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:W?"8px":"10px",minWidth:W?"280px":"288px",padding:W?"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:Q.fontColor}},"Current Balance"),e.createElement("div",{style:{fontSize:W?"56px":"64px",lineHeight:.95,letterSpacing:"-0.05em",fontWeight:700,color:Q.fontColor}},Q.balanceCoins),Q.showTierProgress&&Q.currentTier?e.createElement("div",{className:"yt-loyalty-page-banner-tier","data-tier":Q.currentTier,style:{display:"inline-flex",alignItems:"center",gap:"8px",marginTop:"12px",color:Q.fontColor,fontFamily:"Inter",fontSize:W?"16px":"18px",fontWeight:700,lineHeight:1.1,letterSpacing:"0.08em",textTransform:"uppercase"}},Q.tierIcon?e.createElement("img",{src:Q.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:A,stroke:A,strokeWidth:"1.2",strokeLinejoin:"round"}),e.createElement("path",{d:"M12 2L20 7L12 12L4 7L12 2Z",fill:"rgba(255,255,255,0.3)",strokeLinejoin:"round"})),Q.currentTier):null),G?e.createElement("div",{className:"yt-loyalty-page-banner-progress",style:{marginTop:"10px",width:"100%",maxWidth:"640px",padding:W?"14px 18px":"16px 24px",borderRadius:"16px",backgroundColor:"#FFFFFF",boxShadow:"0 8px 22px rgba(17, 17, 17, 0.06)",boxSizing:"border-box"}},Q.memberSince||Q.currentTier?e.createElement("div",{className:"yt-loyalty-page-banner-progress-heading",style:{marginBottom:"12px",fontSize:W?"16px":"18px",lineHeight:1.2,fontWeight:600,color:Q.fontColor}},Q.currentTier?`${Q.currentTier}${Q.memberSince?` since ${Q.memberSince}`:""}`:"Member"):null,e.createElement("div",{className:"yt-loyalty-page-banner-progress-bar",style:{position:"relative",width:"100%",height:W?"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:`${X}%`,height:"100%",backgroundColor:A||Q.fontColor||"#1C1C1D",borderRadius:"999px",transition:"width 0.3s ease"}})),e.createElement("div",{className:"yt-loyalty-page-banner-progress-icon",style:{position:"absolute",left:`calc(${X}% - ${(W?32:40)*X/100}px)`,top:"50%",transform:"translateY(-50%)",width:W?"32px":"40px",height:W?"32px":"40px",display:"flex",alignItems:"center",justifyContent:"center",transition:"left 0.3s ease"}},Q.tierIcon?e.createElement("img",{src:Q.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:A,stroke:A,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:W?"13px":"14px",lineHeight:1.2,fontWeight:500,color:Q.fontColor}},e.createElement("span",null,0===Y?"member":J.currentLabel),Q.nextTier?e.createElement("span",null,J.remainingLabel," to"," ",Q.nextTier):null)):null):e.createElement("button",{className:"yt-loyalty-page-banner-button",style:{...q,marginTop:W?"8px":"10px",padding:W?"14px 26px":"16px 30px",border:"none",borderRadius:"14px",boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)",fontSize:W?"16px":"18px",fontWeight:500,textTransform:"none"},onClick:async()=>{a?await a():H()}},Q.buttonText))),"show"===te.visibility&&(n||te.guestVisibility)&&e.createElement("div",{className:"yt-loyalty-page-referrals",style:{order:ue("referrals"),width:"100%",backgroundColor:te.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:W?"column":"row",alignItems:"stretch",overflow:"hidden",border:"1px solid #E1E1E1"}},e.createElement("div",{className:"yt-loyalty-page-referrals-image-wrapper",style:{flex:W?"1 1 auto":"0 0 50%",minWidth:0,boxSizing:"border-box",order:W||"left"===te.imagePosition?0:1,minHeight:W?"320px":"560px"}},e.createElement("div",{className:"yt-loyalty-page-referrals-image",style:{display:"block",width:"100%",height:"100%",minHeight:W?"320px":"560px",backgroundImage:te.imageUrl?`url(${te.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat"}})),e.createElement("div",{className:"yt-loyalty-page-referrals-copy",style:{flex:W?"1 1 auto":"0 0 50%",minWidth:0,boxSizing:"border-box",order:W||"left"===te.imagePosition?1:0,padding:W?"32px 24px 40px":"72px 48px",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"}},te.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}},te.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-referrals-title",style:{margin:0,maxWidth:"520px",fontSize:W?"28px":n?"34px":"36px",lineHeight:1.1,letterSpacing:"-0.03em",fontWeight:400,color:te.fontColor}},te.title),e.createElement("p",{className:"yt-loyalty-page-referrals-subtitle",style:{margin:"18px 0 0",maxWidth:"580px",fontSize:W?"16px":"18px",lineHeight:1.24,fontWeight:400,color:te.fontColor}},te.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:te.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:te.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:te.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:te.fontColor}},te.referralLinkValue)),e.createElement("button",{type:"button",onClick:async()=>{l&&te.referralLinkValue?await l(te.referralLinkValue):"undefined"!=typeof navigator&&navigator.clipboard&&te.referralLinkValue&&await navigator.clipboard.writeText(te.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:{...q,marginTop:"34px",padding:W?"14px 26px":"16px 30px",border:"none",borderRadius:"14px",boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)",fontSize:W?"16px":"18px",fontWeight:500,textTransform:"none"},onClick:async()=>{i?await i():H()}},te.buttonText))))),"show"===ne.visibility&&e.createElement("div",{className:"yt-loyalty-page-getting-started",style:{order:ue("gettingStarted"),backgroundColor:ne.backgroundColor,border:"1px solid #E1E1E1",padding:W?"56px 20px":"72px 32px 88px"}},e.createElement("div",{className:"yt-loyalty-page-getting-started-content",style:{maxWidth:"1120px",margin:"0 auto",textAlign:"center"}},ne.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}},ne.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-getting-started-title",style:{margin:0,fontSize:W?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:ne.fontColor}},ne.title),e.createElement("p",{className:"yt-loyalty-page-getting-started-subtitle",style:{margin:W?"14px auto 0":"16px auto 0",maxWidth:"620px",color:ne.fontColor,fontSize:W?"16px":"18px",lineHeight:1.22,fontWeight:400}},ne.subtitle),e.createElement("div",{className:"yt-loyalty-page-getting-started-grid",style:{marginTop:W?"40px":"64px",display:"flex",flexDirection:W?"column":"row",justifyContent:"space-between",alignItems:"stretch",gap:W?"28px":"24px"}},ne.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:W?"0":"0 18px"}},e.createElement("div",{className:"yt-loyalty-page-getting-started-step-number",style:{marginBottom:"10px",fontSize:W?"52px":"68px",lineHeight:.95,letterSpacing:"-0.04em",fontWeight:700,color:ne.fontColor}},String(n+1)),e.createElement("div",{className:"yt-loyalty-page-getting-started-step-title",style:{marginBottom:"8px",fontSize:W?"24px":"28px",lineHeight:1.08,letterSpacing:"-0.03em",fontWeight:400,color:ne.fontColor}},t.title),e.createElement("p",{className:"yt-loyalty-page-getting-started-step-description",style:{margin:0,maxWidth:"240px",fontSize:W?"16px":"18px",lineHeight:1.21,fontWeight:400,color:ne.fontColor}},t.description)))))),"show"===re.visibility&&(n||re.guestVisibility)&&e.createElement("div",{className:"yt-loyalty-page-ways-to-earn",style:{order:ue("waysToEarn"),backgroundColor:re.backgroundColor,border:"1px solid #E1E1E1",padding:W?"56px 20px":"72px 32px 64px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-content",style:{maxWidth:"1120px",margin:"0 auto",textAlign:"center"}},re.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}},re.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-ways-to-earn-title",style:{margin:0,fontSize:W?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:re.fontColor}},re.title),e.createElement("p",{className:"yt-loyalty-page-ways-to-earn-subtitle",style:{margin:W?"14px auto 0":"16px auto 0",maxWidth:"680px",color:re.fontColor,fontSize:W?"16px":"18px",lineHeight:1.22,fontWeight:400}},re.subtitle),e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-grid",style:{marginTop:W?"40px":"56px",display:"flex",flexWrap:"wrap",justifyContent:"center",columnGap:W?"28px":"24px",rowGap:"36px"}},re.items?.map((t,n)=>{const r=t.ctaTitle??t.signedInActionLabel,o=t.ctaVisible??Boolean(r),a=t.ctaDisabled??!1,i=re.ctaBg,l=re.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:W?"100%":"calc((100% - 48px) / 3)",maxWidth:W?"100%":"calc((100% - 48px) / 3)",padding:W?"0":"0 18px"}},re.showIcons?e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-item-icon",style:{fontSize:"32px",lineHeight:1,color:re?.fontColor??"#5A5A5A",marginBottom:"5px"}},(t=>{if(t&&"string"!=typeof t)return t;switch(t){case"birthday":return e.createElement(T,null);case"feedback":return e.createElement(P,null);case"wallet":return e.createElement(I,null);case"referral":return e.createElement(z,null);case"instagram":return e.createElement($,null);case"facebook":return e.createElement(B,null);case"twitter":return e.createElement(F,null);case"youtube":return e.createElement(S,null);default:return e.createElement(N,null)}})(t.icon)):null,e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-item-title",style:{marginBottom:"4px",fontSize:W?"24px":"28px",lineHeight:1.16,letterSpacing:"-0.03em",fontWeight:400,color:re.fontColor,minHeight:W?"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:W?"16px":"18px",lineHeight:1.21,fontWeight:400,color:re.fontColor,minHeight:W?"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:W?"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"===ie.visibility&&ie.imageUrl?e.createElement("div",{className:"yt-loyalty-page-custom-image",style:{order:ue("customImage"),backgroundColor:"#FFFFFF",border:"1px solid #E1E1E1"}},e.createElement("div",{style:{margin:"0 auto"}},e.createElement("img",{src:ie.imageUrl,alt:"",style:{display:"block",width:"100%",height:"auto",objectFit:"cover"}}))):null,"show"===le.visibility&&le.htmlText?e.createElement("div",{className:"yt-loyalty-page-custom-html",style:{order:ue("customHtml"),backgroundColor:"#FFFFFF",border:"1px solid #E1E1E1",padding:W?"32px 20px":"40px 32px",color:"#111111"}},e.createElement("div",{style:{maxWidth:"1200px",margin:"0 auto"},dangerouslySetInnerHTML:{__html:le.htmlText}})):null,"show"===se.visibility&&e.createElement("div",{className:"yt-loyalty-page-vip-tiers",style:{order:ue("vipTiers"),backgroundColor:se.backgroundColor,border:"1px solid #E1E1E1",padding:W?"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:W?"32px":"40px"}},se.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:se.fontColor,fontSize:"14px",lineHeight:1,fontWeight:600}},se.badgeTitle):null,e.createElement("h2",{style:{margin:0,fontSize:W?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:se.fontColor}},se.title),e.createElement("p",{style:{margin:"16px auto 0",maxWidth:"760px",fontSize:W?"16px":"18px",lineHeight:1.22,fontWeight:400,color:se.fontColor}},se.subtitle)),e.createElement("div",{style:{overflowX:"auto",border:"1px solid #D7D7D7",backgroundColor:"#FFFFFF"}},e.createElement("table",{style:{width:"100%",minWidth:W?"760px":"100%",borderCollapse:"collapse",tableLayout:"fixed"}},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{style:{width:W?"240px":"28%",padding:"16px 14px",borderBottom:"1px solid #D7D7D7",textAlign:"left",color:se.fontColor,fontFamily:"Inter",fontSize:"15.654px",fontStyle:"normal",fontWeight:"700",lineHeight:"17.313px",letterSpacing:"0.693px",textTransform:"uppercase",backgroundColor:"#FFFFFF"}},se.benefitHeaderLabel),se.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:se.fontColor,textTransform:"uppercase",backgroundColor:"#FFFFFF"}},se.signedInView.statusLabel),se.tiers?.map(t=>{const n=se.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:se.fontColor,fontSize:"12px",lineHeight:1.2,fontWeight:r?700:500,textTransform:"uppercase",letterSpacing:"0.04em"}},n?.text??"")})):null),e.createElement("tbody",null,se.rows?.map((t,n)=>e.createElement("tr",{key:`${t.title}-${n}`},e.createElement("td",{style:{padding:"14px 14px",borderBottom:n===(se.rows?.length??0)-1?"none":"1px solid #D7D7D7",verticalAlign:"middle"}},e.createElement("div",{style:{color:se.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:se.fontColor,fontFamily:"Inter",fontSize:"12.552px",fontStyle:"normal",fontWeight:300,lineHeight:"22.161px",letterSpacing:"0.693px"}},t.description):null),se.tiers?.map(r=>e.createElement("td",{key:`${t.title}-${r.id}`,style:{padding:"14px 10px",borderBottom:n===(se.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"===oe.visibility&&!n&&e.createElement("div",{className:"yt-loyalty-page-rewards",style:{order:ue("rewards"),backgroundColor:oe.backgroundColor,border:"1px solid #E1E1E1",padding:W?"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:W?"column":"row",alignItems:"stretch",overflow:"hidden",border:"1px solid #E1E1E1"}},e.createElement("div",{className:"yt-loyalty-page-rewards-image-wrapper",style:{flex:1,order:W||"left"===oe.imagePosition?0:1,minHeight:W?"280px":"340px"}},e.createElement("div",{className:"yt-loyalty-page-rewards-image",style:{display:"block",width:"100%",height:"100%",minHeight:W?"280px":"340px",backgroundImage:oe.imageUrl?`url(${oe.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center"}})),e.createElement("div",{className:"yt-loyalty-page-rewards-copy",style:{flex:1,order:W||"left"===oe.imagePosition?1:0,padding:W?"28px 24px":"32px 40px",display:"flex",flexDirection:"column",justifyContent:"start"}},oe.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:W?"center":"flex-start"}},oe.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-rewards-title",style:{margin:0,maxWidth:"420px",fontSize:W?"20px":"25px",lineHeight:1.06,letterSpacing:"-0.03em",fontWeight:700,color:oe?.fontColor??"#111111"}},oe.title),e.createElement("p",{className:"yt-loyalty-page-rewards-description",style:{margin:"20px 0 0",maxWidth:"470px",fontSize:W?"12px":"14px",lineHeight:1.35,fontWeight:400,color:oe.fontColor,whiteSpace:"pre-line"}},oe.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"}},oe.disclaimerText),e.createElement("div",{className:"yt-loyalty-page-rewards-cta",style:{display:"flex",flexDirection:W?"column":"row",justifyContent:"space-between",alignItems:"center",marginTop:"20px",padding:W?"24px":"26px 28px",border:"1px solid #D4D4D4",gap:"18px",textAlign:W?"center":"left"}},e.createElement("div",{className:"yt-loyalty-page-rewards-cta-copy"},e.createElement("h3",{style:{margin:0,fontSize:W?"28px":"32px",lineHeight:1.05,fontWeight:700,letterSpacing:"-0.03em",color:oe.fontColor}},oe.bottomCtaTitle),e.createElement("p",{style:{margin:"8px 0 0",fontSize:"18px",lineHeight:1.25,fontWeight:400,color:oe.fontColor}},oe.bottomCtaSubtitle)),e.createElement("button",{className:"yt-loyalty-page-rewards-cta-button",style:{...q,minWidth:W?"100%":"220px",padding:"14px 28px",borderRadius:"0px",border:"none",boxShadow:"none",fontSize:"18px",fontWeight:700},onClick:async()=>{s?await s():H()}},oe.buttonText)))),"show"===ae.visibility&&e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem",style:{order:ue("waysToRedeem"),backgroundColor:ae.backgroundColor,border:"1px solid #E1E1E1",padding:W?"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:W?"column":"row",justifyContent:"space-between",alignItems:W?"stretch":"flex-start",gap:W?"24px":"32px",marginBottom:W?"32px":"44px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-heading"},ae.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}},ae.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-ways-to-redeem-title",style:{margin:0,fontSize:W?"34px":"44px",lineHeight:1.05,letterSpacing:"-0.03em",fontWeight:700,color:ae.fontColor}},ae.title),ae.subtitle?e.createElement("p",{className:"yt-loyalty-page-ways-to-redeem-subtitle",style:{margin:"12px 0 0",fontSize:W?"16px":"18px",lineHeight:1.24,fontWeight:400,color:"#6B6B6B"}},ae.subtitle):null),null!=ae.balanceValue&&""!==ae.balanceValue?e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-balance",style:{flexShrink:0,minWidth:W?"auto":"240px",padding:W?"18px 22px":"20px 26px",borderRadius:"12px",backgroundColor:"#111111",color:"#FFFFFF",display:"flex",flexDirection:"column",alignItems:"flex-start"}},e.createElement("div",{style:{fontSize:W?"32px":"36px",lineHeight:1,letterSpacing:"-0.03em",fontWeight:700}},"number"==typeof ae.balanceValue?ae.balanceValue.toLocaleString():ae.balanceValue),e.createElement("div",{style:{marginTop:"8px",fontSize:"13px",lineHeight:1.2,fontWeight:400,color:"rgba(255,255,255,0.8)"}},ae.balanceLabel,ae.balanceCtaText?e.createElement(e.Fragment,null," · ",e.createElement("span",{role:"button",tabIndex:0,onClick:async()=>{d?await d():H()},style:{color:"#FFFFFF",fontWeight:500,textDecoration:"underline",cursor:"pointer"}},ae.balanceCtaText)):null)):null),ae.activeCoupon?e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-active",style:{display:"flex",flexDirection:W?"column":"row",alignItems:W?"flex-start":"center",gap:W?"10px":"16px",marginBottom:W?"20px":"24px",padding:W?"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:W?"15px":"16px",lineHeight:1.2,fontWeight:700,color:"#111111"}},ae.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"}},ae.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))})(ae.activeCoupon),style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",height:"30px",padding:"0 14px",border:"none",borderRadius:"999px",backgroundColor:A,color:_,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:W?"1fr":"repeat(3, 1fr)",gap:W?"16px":"20px"}},ae.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,u="ltv"===t.rewardTierCriteria&&"purchase_value"===t.purchaseValueMethod,g=null==t.rewardTierCriteria?t.unit??"":u?"":"loyalty_points"===t.rewardTierCriteria?"points":"orders",y=u?Sy(ae.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:W?"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(T,null)),e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-freebie-body",style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",padding:W?"16px 18px":"18px 20px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-freebie-title",style:{fontSize:W?"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",{style:{display:"flex",alignItems:"stretch",gap:"10px"}},e.createElement("div",{role:"button",tabIndex:0,onClick:()=>ce(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||ce(t)},style:{flex:1,minWidth:0,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")),(()=>{const r=V===n,o=!!t.inCart,a=o?"Added to cart":"Add to cart";return e.createElement("button",{type:"button",className:"yt-loyalty-page-ways-to-redeem-freebie-add-to-cart",onClick:()=>(async(e,t)=>{if(null===V){j(t);try{if(e.onAddToCart)return void await e.onAddToCart();if(m)return void await m(e);H()}finally{j(null)}}})(t,n),disabled:r||o,title:a,"aria-label":a,style:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",width:"42px",borderRadius:"8px",border:"none",backgroundColor:o?"#2F9E44":A,color:o?"#FFFFFF":_,fontSize:"18px",cursor:r||o?"default":"pointer"}},r?e.createElement(ig,{size:16,color:_,centered:!0}):o?e.createElement(v,{size:18}):e.createElement(C,{size:18}))})()):c?e.createElement(e.Fragment,null,e.createElement("div",{style:{marginBottom:"8px",fontSize:"12px",fontWeight:500,color:"#8A8A8A"}},y,By(i)," of ",y,By(a),g?` ${g}`:""),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:A}}))):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():H()})(t),style:{minWidth:"84px",padding:"9px 18px",borderRadius:"8px",border:"none",backgroundColor:d?"#EDEDED":A,color:d?"#9A9A9A":_,fontSize:"14px",lineHeight:1,fontWeight:600,cursor:d?"not-allowed":"pointer"}},t.ctaTitle??"Claim")))))}),ae.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 · ${Fy(t.minimumOrderValue,ae.currencyCode)}`:Fy(t.minimumOrderValue,ae.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:W?"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(D,null)),e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-item-body",style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",padding:W?"16px 18px":"18px 20px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-item-title",style:{fontSize:W?"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:W?"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):H()})(t),style:{minWidth:"84px",padding:"9px 18px",borderRadius:"8px",border:"none",backgroundColor:o?"#EDEDED":A,color:o?"#9A9A9A":_,fontSize:"14px",lineHeight:1,fontWeight:600,cursor:o?"not-allowed":"pointer",transition:"opacity 0.2s ease"}},r))));var l})))))},zy=({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"}},_y(r)?e.createElement(w,null):e.createElement(lt,null)),e.createElement("div",{style:{fontSize:"clamp(16px, 4vw, 20px)",fontWeight:500,color:"#4C4C4C",lineHeight:"normal",textAlign:"center"}},Ay(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(A,null):e.createElement(_,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 W(p,document.body)},Iy=({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"}},_y(r)?e.createElement(w,null):e.createElement(lt,null)),e.createElement("div",{style:{fontSize:"14px",fontWeight:500,color:"#888",textAlign:"center"}},Ay(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(A,null):e.createElement(_,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 W(p,document.body)},Py=({offersToShow:r,offersConfig:a,getOfferCardMessage:i,setSelectedOffer:l,setShowPopup:s})=>{const c=o(null),[d,p]=t(!1),[m,u]=t(!0),[g,y]=t("undefined"!=typeof window&&window.innerWidth<=768),f=()=>{if(c.current){const{scrollLeft:e,scrollWidth:t,clientWidth:n}=c.current;p(e>0),u(e<t-n-10)}};n(()=>{f();const e=c.current;if(e)return e.addEventListener("scroll",f),()=>e.removeEventListener("scroll",f)},[r]),n(()=>{const e=()=>{y(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(L,{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(R,{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"}},_y(t)?e.createElement(w,null):e.createElement(lt,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"}},Ay(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 "))},Dy=({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"}},_y(t)?e.createElement(w,null):e.createElement(lt,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"))))))},Ay=e=>"free_product"===e.couponType?"deal_amount"===e.freebieType?"Deal":"percentage_off"===e.freebieType?"% Off":"Free Gift":e._customOffer?.code?"Coupon":"Special Deal",_y=e=>"free_product"===e.couponType&&"deal_amount"!==e.freebieType&&"percentage_off"!==e.freebieType,Ly=({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,y]=t("undefined"!=typeof window&&window.innerWidth<=450),f=o(null);n(()=>{const e=()=>{u(window.innerWidth<=768),y(window.innerWidth<=450)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),n(()=>{f.current&&Qn(f.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:f,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(Dy,{offersToShow:x,offersConfig:r||{},getOfferCardMessage:b,setSelectedOffer:h,setShowPopup:l}):"coupon"===t?e.createElement(Py,{offersToShow:x,offersConfig:r||{},getOfferCardMessage:b,setSelectedOffer:h,setShowPopup:l}):null})(),g?e.createElement(Iy,{selectedOffer:s,selectedOfferTerms:d,showPopup:i,offersConfig:r,onClose:()=>{l(!1),c(null),p(null)}}):e.createElement(zy,{selectedOffer:s,selectedOfferTerms:d,showPopup:i,offersConfig:r,onClose:()=>{l(!1),c(null),p(null)}}))))};export{pu as Bundle,rg as BundleLoader,yd as BundleLoaderModal,ng as Cart,Ed as CartATCLoader,cy as LoyaltyLauncher,$y as LoyaltyPageBlock,vy as LoyaltyProductCatalog,ry as LoyaltyScreen,hy as LoyaltyWidget,dn as Nudge,Ty as PointEarnBadge,Ly as ProductOffers,xy as RewardsModal,xn as SpinnerWheel};
|
|
5286
|
+
`,Ju=l(({removeCartItem:a,addCartItem:i,getProductDetailsByVariantId:l,themeColor:s,cartComponentsCornerRadius:c,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:m,freebieClaimAddToCart:u,stealDealAddToCart:g,productClaimCtaButtonText:y,backgroundSubdued:f,primaryTextColor:x},h)=>{const[b,w]=ve(Nn),v=Ce(hn),C=o(null),[E,k]=t(null),[T,N]=t(!1),[S,F]=t({}),[B,$]=t(b?.variantId),[z]=t(b?.quantity||1),[I,P]=t(!1),D=jo();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={...S,[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=$n(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=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},[E,S,b]);return E?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-cart-variant-popup-overlay",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(zu,{ref:h,className:"yt-variant-selection-popup"},e.createElement(Pu,{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(Iu,null,b?.stealDealSelection?"Unlocked Steal Deal":"Unlocked Freebie"),e.createElement(Au,null,e.createElement(_u,null,e.createElement(Lu,null,e.createElement(Ru,{src:_?.featured_image?.src??E?.featured_image,alt:_?.featured_image?.alt??E?.title})),e.createElement(Ou,null,e.createElement(Mu,{$themeColor:s,$primaryTextColor:x,href:`${E?.url}?variant=${_?.id}`},E?.title),e.createElement(Gu,null,e.createElement(Wu,null,e.createElement(Vu,{$primaryTextColor:x},L,Sn(_?.price,v?.currency??"INR")),null!=_?.compare_at_price&&null!=_?.price&&_.compare_at_price>_.price&&e.createElement(ju,null,L,Sn(_?.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=S[t.name],o=Vo(n,r);return e.createElement(qu,{key:t.name},e.createElement(Qu,null,e.createElement("span",{className:"yt-cart-variant-popup-option-label"},"Select ",t.name),r&&e.createElement(Yu,null,o)),e.createElement(Zu,null,R[t.name]?.map(r=>{const o=S[t.name]===r,a=Wo(n,r),i=n?.type?.toLowerCase(),l=Vo(n,r);return"color"===i&&a?.value?e.createElement(Xu,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$colorValue:a.value}):"image"===i&&a?.value?e.createElement(Ku,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$imageUrl:a.value}):e.createElement(Uu,{$themeColor:s,key:r,$isSelected:o,backgroundColor:o?s:void 0,onClick:()=>A(t.name,r)},l)})))})),e.createElement(Hu,{className:"yt-cart-variant-popup-ATC-button",$themeColor:s??"#C33",onClick:b?.productRec?async()=>{if(B&&i){N(!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)}N(!1)}}:async()=>{if(!B)return;const e=!!b?.lineItemKey,t=String(B)!==String(b?.variantId);if(!e||t){N(!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){}N(!1)}else w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!B||T},T?e.createElement(Se,{color:"white",size:13}):b?.productRec?"ADD TO BAG":b?.stealDealSelection?"CLAIM DEAL":b?.freebieSelection?y||"CLAIM FREEBIE":"GET IN BAG")))):e.createElement(zu,{ref:h},e.createElement(Pu,{style:{backgroundColor:p||"white"}},e.createElement(Du,null,e.createElement(Fe,{color:s||"#868E96"}))))});Ju.displayName="DesktopVariantPopup";const eg=l(({removeCartItem:a,addCartItem:i,getProductDetailsByVariantId:l,themeColor:s,cartComponentsCornerRadius:c,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:m,freebieClaimAddToCart:u,stealDealAddToCart:g,productClaimCtaButtonText:y,backgroundSubdued:f,primaryTextColor:x},h)=>{const[b,w]=ve(Nn),v=Ce(hn),[C,E]=t(null),[k,T]=t(!1),[N,S]=t({}),[F,B]=t(b?.variantId),[$]=t(b?.quantity||1),z=o(null),I=jo(),[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}`]}),S(n)}else B(void 0),S({})}E(e)}catch(e){}})()},[C,l,b]),n(()=>{},[p,a,i,l]);const A=(e,t)=>{const n={...N,[e]:t};S(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=$n(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=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},[C,N,b]);return C?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-cart-variant-popup-overlay",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(zu,{ref:h,className:"yt-variant-selection-popup"},e.createElement(Pu,{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(Iu,null,b?.stealDealSelection?"Unlocked Steal Deal":"Unlocked Freebie"),e.createElement(Au,null,e.createElement(_u,null,e.createElement(Lu,null,e.createElement(Ru,{src:_?.featured_image?.src??C?.featured_image,alt:_?.featured_image?.alt??C?.title})),e.createElement(Ou,null,e.createElement(Mu,{$themeColor:s,$primaryTextColor:x,href:`${C?.url}?variant=${_?.id}`},C?.title),e.createElement(Gu,null,e.createElement(Wu,null,e.createElement(Vu,{$primaryTextColor:x},L,Sn(_?.price,v?.currency??"INR")),null!=_?.compare_at_price&&null!=_?.price&&_.compare_at_price>_.price&&e.createElement(ju,null,L,Sn(_?.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=N[t.name],o=Vo(n,r);return e.createElement(qu,{key:t.name},e.createElement(Qu,null,e.createElement("span",{className:"yt-cart-variant-popup-option-label"},"Select ",t.name,":"),r&&e.createElement(Yu,null,o)),e.createElement(Zu,null,R[t.name]?.map(r=>{const o=N[t.name]===r,a=Wo(n,r),i=n?.type?.toLowerCase(),l=Vo(n,r);return"color"===i&&a?.value?e.createElement(Xu,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$colorValue:a.value}):"image"===i&&a?.value?e.createElement(Ku,{key:r,$isSelected:o,$themeColor:s,onClick:()=>A(t.name,r),$imageUrl:a.value}):e.createElement(Uu,{$themeColor:s,key:r,$isSelected:o,backgroundColor:o?s:void 0,onClick:()=>A(t.name,r)},l)})))})),e.createElement(Hu,{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(Se,{color:"white",size:13}):b?.productRec?"ADD TO BAG":b?.stealDealSelection?"CLAIM DEAL":b?.freebieSelection?y||"CLAIM FREEBIE":"GET IN BAG")))):e.createElement(zu,{ref:h},e.createElement(Pu,{style:{backgroundColor:p||"white"}},e.createElement(Du,null,e.createElement(Fe,{color:s||"#868E96"}))))});const tg=({setIsCartOpen:t,isCartOpen:n,cartCheckpoints:r,customCartProgressBarCriteria:o,floatingCartData:a,effectiveQuantityForProgressBar:i,cartComponentsCornerType:l,cartComponentsCornerRadius:s})=>{const c=Ce(hn),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=Sn(c?.items_subtotal_price??0,c?.currency??"INR"),y=$n(c),f=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},N={background:"#fff",color:h,borderRadius:x,boxShadow:"0 10px 24px rgba(0,0,0,0.15)",overflow:"hidden",fontFamily:"Poppins"},S={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(!f.show)return null;const t=f.isQuantity?`${f.deltaValue} more items to get freebie`:`Add items worth ${y}${Yn(f.deltaValue.toFixed(0))} to get freebie`;return e.createElement("div",{className:"yt-cart-floating-empty-container",style:k},e.createElement("div",{className:"yt-cart-floating-ribbon",style:T},e.createElement(w,{"aria-hidden":!0}),e.createElement("span",{className:"yt-cart-floating-ribbon-text"},t)))}const I=1===u?"1 item":`${u} items`,P=a?.lastTierUnlockedText||"Best tier unlocked",D=f.show?f.isQuantity?`${f.deltaValue} more items to get freebie`:`Add items worth ${y}${Yn(f.deltaValue.toFixed(0))} more to get freebie`:P;return e.createElement("div",{className:"yt-cart-floating-container",style:{position:"fixed",left:12,right:12,bottom:12,zIndex:2147483642,paddingBottom:"env(safe-area-inset-bottom)"}},e.createElement("div",{className:"yt-cart-floating-card-wrapper",style:{position:"relative"}},(f.show||r&&r.length>0)&&e.createElement("div",{className:"yt-cart-floating-banner",style:S},e.createElement(w,{"aria-hidden":!0,style:{marginBottom:7}}),e.createElement("span",{className:"yt-cart-floating-banner-text",style:{display:"inline-block",marginBottom:7}},D)),e.createElement("div",{className:"yt-cart-floating-card",style:N},e.createElement("div",{className:"yt-cart-floating-body",style:F,onClick:()=>t(!0)},e.createElement(V,{width:24,height:24,color:h}),e.createElement("div",{className:"yt-cart-floating-details",style:{display:"flex",flexDirection:"column",minWidth:0,flex:1,lineHeight:"normal"}},e.createElement("div",{className:"yt-cart-floating-amount-row",style:B},e.createElement("span",{className:"yt-cart-floating-amount"},y,Yn(g.toFixed(0))),e.createElement("span",{className:"yt-cart-floating-item-count",style:{fontSize:9,fontWeight:600,color:"#fff",backgroundColor:"#828282",marginBottom:5,paddingInline:5}},I)),p?e.createElement("span",{className:"yt-cart-floating-footer-text",style:$,title:d},d):null),e.createElement("button",{className:"yt-cart-floating-view-button",ref:E,style:z,onClick:()=>t(!0),"aria-label":"View Cart"},"View Cart")))))};var ng=e.memo(({exploreCTAColor:r,checkoutFontSize:a,handleDecrement:l,handleIncrement:s,removeCartItem:c,addCartItem:d,cartTitle:p,emptyCartTitle:m,emptyCartDescription:u,emptyCartButtons:g,backgroundColor:y,backgroundSubdued:f,tertiaryColor:x,tertiaryTextColor:h,backdrop:b=!0,cartData:w,isUserSignedIn:v,showBundle:C,bundleProducts:E,discountAmountOff:k,loyaltyIcon:T,pointsToBeUsed:N,rewardMultiplier:S,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:W,cartCheckpoints:V,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:ye,freeProduct:fe,showLoyaltyCta:xe,freeProductAdjustedCartTotal:he,redemptionMinimumOrderValue:be,redemptionMinimumOrderValueStatus:Ce,signinCTAButtonVisible:Ee,cartSigninCTAMainText:ke,showNoteOption:Te,applyNoteToCart:Ne,note:Se,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:We,productPercentageOffMapping:Ve,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:yt,freebieMilestoneData:ft,cartTimerInMinutes:xt,cartTimerCustomText:ht,imageAspectSelector:bt,cartComponentsCornerType:wt,cartComponentsCornerRadius:vt,stickyCartCustomizationData:Ct,cartOffersCarousalData:Et,stickyBarBuyNowFunction:kt,gstSectionCustomizationData:Tt,noteSectionTitle:Nt,checkoutSectionMessage:St,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:Wt,checkoutButtonBottomSpacing:Vt,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=we(hn),[ln,sn]=ve(Nn),[cn,dn]=ve(Ji),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,yn=mn.comboBundleAddToCartFunction??Xt,[fn,xn]=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;xn({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&<?(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",{className:"yt-cart-root",style:{position:it&<?"relative":"absolute",width:"100%",display:it&<?"flex":"block",alignItems:"center",justifyContent:"center"}},A&&!(it&<)&&e.createElement("button",{className:"yt-cart-toggle-button",style:{margin:"16px"},onClick:pn},_?"Close Drawer":"Open Drawer"),!tn&&_&&b&&!(it&<)&&e.createElement("div",{className:"yt-cart-overlay",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(Js,{useCartShell:tn,isCartPage:lt,enableCustomCartOnCartPage:it,isOpen:_,setIsOpen:L,backgroundColor:y,backgroundSubdued:f??"#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:N,rewardMultiplier:S,redemptionMultiplier:F,removeDiscount:B,applyDiscount:$,discountApplied:z,checkoutFunction:I,joinNowFunction:P,guestLoyaltyPercentage:D,isDev:R,switchWidthVariant:O,recProductsList:M,showMultiStepProgressBar:W,cartCheckpoints:V,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:ye,freeProduct:fe,showLoyaltyCta:xe,freeProductAdjustedCartTotal:he,redemptionMinimumOrderValue:be,redemptionMinimumOrderValueStatus:Ce,signinCTAButtonVisible:Ee,cartSigninCTAMainText:ke,applyNoteToCart:Ne,note:Se,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:We,productPercentageOffMapping:Ve,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:ft,cartTimerCustomText:ht,cartTimerInMinutes:xt,imageAspectSelector:bt,cartComponentsCornerType:wt,cartComponentsCornerRadius:vt,gstSectionCustomizationData:Tt,noteSectionTitle:Nt,checkoutSectionMessage:St,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:Wt,checkoutButtonBottomSpacing:Vt,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($u,{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:y,primaryTextColor:re,comboBundleData:gn,comboBundleAddToCartFunction:yn,volumeBundleCurrentTier:fn.currentTier,volumeBundleData:fn.bundle,volumeBundleAddToCartFunction:fn.volumeBundleAddToCartFunction}),wn&&ln.open&&e.createElement(Ju,{backgroundColor:y,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:f??"#F5F5F5",primaryTextColor:re}),!wn&&ln.open&&e.createElement(eg,{ref:bn,isDev:R,removeCartItem:c,addCartItem:d,getProductDetailsByVariantId:Ie,themeColor:ce,cartComponentsCornerRadius:vt,cartComponentsCornerType:wt,backgroundColor:y,removeFreebieFromCart:je,freebieClaimAddToCart:Oe,stealDealAddToCart:en,productClaimCtaButtonText:Ge?.productClaimCtaButtonText,backgroundSubdued:f??"#F5F5F5",primaryTextColor:re})),!wn&>&&e.createElement(tg,{isCartOpen:_,setIsCartOpen:L,cartCheckpoints:V,customCartProgressBarCriteria:J,floatingCartData:yt,effectiveQuantityForProgressBar:We,cartComponentsCornerRadius:vt,cartComponentsCornerType:wt}))});Rt(".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 rg=()=>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"},"")))));Rt("/*\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");Rt("\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");Rt('@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');Rt('/* --------- 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');Rt('/* 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 og({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 ag({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"})))))}Rt("@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }\n@keyframes fadeout { from { opacity: 1 } to { opacity: 0 } }\n");function ig({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}Rt("@keyframes yt-spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n");const lg={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"}},sg={...lg,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:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",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},freebieClaimedActions:{display:"flex",alignItems:"stretch",alignSelf:"stretch",gap:10,margin:"0 12px 12px"},freebieAddToCartCta:{display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",flexShrink:0,padding:"0 14px",borderRadius:10,background:"#1F1F1F",color:"#fff",fontSize:18,lineHeight:1,cursor:"pointer",border:0,margin:0,width:"auto",height:"auto",maxWidth:"none",textTransform:"none",letterSpacing:"normal",appearance:"none",WebkitAppearance:"none"}};Rt("/* 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");Rt('.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 cg=e=>"INR"===e?"₹":e?`${e} `:"",dg=(e,t)=>e&&e>0?`min order ${cg(t)}${e.toLocaleString()}`:"no mov";function pg({couponList:r=[],freebies:a=[],couponHeading:i="",couponCode:l="",currencyCode:s,onCouponAvail:c,copyFunction:d=e=>{},onFreebieAddToCart:p,themeSecondaryContrastColor:m="",themeSecondaryColor:u="",themeBackgroundColor:g="",setScreenType:y=e=>{},showCTA:f=!0,balanceCoins:x,ctaBorderRadius:h,brandRewardProgram:b,redemptionMovRequired:w,userRewardTier:v,brandRewardTiers:C}){const E=!!b?.redemptionStatus&&"percentage"===b?.redemptionMethod&&Number(b?.redemptionValue??0)>0,k=(()=>{const e=Number(w??NaN);if(Number.isFinite(e)&&e>0)return e;if(b?.redemptionMinimumOrderValueStatus&&Number(b?.redemptionMinimumOrderValue??0)>0)return Number(b.redemptionMinimumOrderValue);const t=Number(b?.redemptionMovRequired??0);return t>0?t:0})(),T=k>0,N=k,S=(r?.length??0)>0,[F,B]=t(l),[$,z]=t("idle"),[I,P]=t(null),[D,A]=t(0),[_,L]=t(null),[R,O]=t(null),[M,W]=t({}),[V,j]=t(null),[H,q]=t(null),[U,Q]=t(!1),Y=o(null);n(()=>()=>{Y.current&&clearInterval(Y.current)},[]),n(()=>{const e={};a.forEach(t=>{t.isActive&&t.discountCode&&(e[t.couponTemplate.couponTemplateId]=t.discountCode)}),W(t=>({...e,...t}))},[a]),n(()=>{"success"!==$&&!U||R||import("./confetti-f3502561.js").then(e=>O(e.default))},[$,U,R]);const Z=async e=>{if("idle"!==$)return;P(e),z("loading"),A(0),Y.current=setInterval(()=>{A(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(Y.current&&clearInterval(Y.current),Y.current=null,n){try{await navigator.clipboard.writeText(n)}catch{}B(n),A(100),setTimeout(()=>z("success"),350)}else L("Failed to avail coupon"),z("idle"),P(null),A(0),setTimeout(()=>L(null),2e3)},G="idle"!==$,X=((e,t)=>e?e.discountPercentage>0?`${e.discountPercentage}% off`:e.discountValue>0?`${cg(t)}${e.discountValue}`:e.name:"")(I,s);return e.createElement("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",background:"transparent",overflow:"hidden"}},("success"===$||U)&&R&&e.createElement("div",{className:"yt-wtr-confetti",style:sg.confetti,"aria-hidden":"true"},e.createElement(_t,{animationData:R,loop:!1})),e.createElement("div",{className:"yt-wtr-body",style:sg.body},E&&e.createElement(gg,{redempRate:Number(b.redemptionValue),coinName:b?.coinName??"coins",movEnabled:T,movValue:N,currencyCode:s}),a.map((t,n)=>{const{couponTemplate:r,product:o}=t,a=M[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:cg(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,C,v,Number(x??0),a,s);return e.createElement(bg,{key:r.couponTemplateId??n,data:r,product:o,view:i,movLabel:fg(r,s),isClaiming:V===r.couponTemplateId,onClaim:()=>(async e=>{if(null===V){j(e);try{const t=await c(e),n=t?.discountCode;if(n){W(t=>({...t,[e]:n})),Q(!0),setTimeout(()=>Q(!1),2500);try{await navigator.clipboard.writeText(n)}catch{}}else L("Failed to claim freebie"),setTimeout(()=>L(null),2e3)}catch{L("Failed to claim freebie"),setTimeout(()=>L(null),2e3)}finally{j(null)}}})(r.couponTemplateId),onCopy:()=>(e=>{if(e){d(e);try{navigator.clipboard.writeText(e)}catch{}L("Coupon code copied"),setTimeout(()=>L(null),1500)}})(a),showAddToCart:!!p,isAddingToCart:H===r.couponTemplateId,isInCart:!!t.isInCart,onAddToCart:()=>(async e=>{if(p&&null===H){q(e.couponTemplate.couponTemplateId);try{await p(e)}catch{L("Failed to add to cart"),setTimeout(()=>L(null),2e3)}finally{q(null)}}})(t)})}),S?r?.map((t,n)=>e.createElement(yg,{key:t.couponTemplateId??n,data:t,onAvail:Z,isAvailing:I?.couponTemplateId===t.couponTemplateId&&"loading"===$,disabled:G,balanceCoins:x,currencyCode:s})):0===a.length?!E&&e.createElement("p",{className:"yt-wtr-noCouponsFound",style:sg.noCouponsFound},"No Coupons Found"):null),e.createElement("div",{style:{bottom:"16px",display:"flex",flexDirection:"column",gap:"11.23px",alignItems:"center"}},"loading"===$&&e.createElement("div",{className:"yt-wtr-progressBlock",style:sg.progressBlock,"aria-live":"polite"},e.createElement("div",{className:"yt-wtr-progressIcon",style:sg.progressIcon},D<50?e.createElement(ie,{size:36}):e.createElement(ft,{size:36})),e.createElement("div",{className:"yt-wtr-progressBar",style:sg.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(D)},e.createElement("div",{className:"yt-wtr-progressBarFill",style:{...sg.progressBarFill,width:`${D}%`}})),e.createElement("div",{className:"yt-wtr-progressLabel",style:sg.progressLabel},D<50?`availing ${X} off coupon...`:"applying your reward...")),"success"===$&&e.createElement("div",{className:"yt-wtr-successBlock",style:sg.successBlock,"aria-live":"polite"},e.createElement("div",{className:"yt-wtr-successBadge",style:sg.successBadge},e.createElement(mg,null)),e.createElement("h3",{className:"yt-wtr-successTitle",style:sg.successTitle},"🎉 ",X," availed!"),e.createElement("p",{className:"yt-wtr-successSubtitle",style:sg.successSubtitle},"Your reward will apply automatically to eligible items in your cart."),e.createElement("div",{className:"yt-wtr-successDivider",style:sg.successDivider}),e.createElement("p",{className:"yt-wtr-successApplied",style:sg.successApplied},"coupon applied")),"idle"===$&&F&&F?.length>0&&e.createElement("div",{style:{padding:"10px 8px 8px 8px"}},e.createElement(ag,{setScreenType:y,themeSecondaryColor:u,themeSecondaryContrastColor:m,borderRadius:h??"12px",showCTA:!1,couponCode:F,couponHeading:i,copyFunction:d})),e.createElement("p",{className:"yt-wtr-footerText",style:sg.footerText},"stay signed-in with the account you use for checking out")),_&&e.createElement(og,{displayText:_,background:"#000000",textColor:"#ffffff"}))}function mg(){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 ug(){return e.createElement("span",{className:"yt-wte-bgIcon",style:sg.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 gg({redempRate:t,coinName:n,movEnabled:r,movValue:o,currencyCode:a}){const i=r&&o>0?`min order ${cg(a)}${o}`:"no mov";return e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:sg.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...sg.redeemCardHeader,borderRadius:"8px 8px 0 0"}},e.createElement(ug,null),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:sg.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:sg.redeemCardIcon},e.createElement(fe,{size:24,color:"#000"})),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:sg.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:sg.redeemCardTitle},"Get upto"," ",e.createElement("span",{style:sg.redeemCardTitleSpan},t,"% off")),e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:sg.redeemCardSubtitle},"avail ",n," in cart • ",i)))),e.createElement("div",{className:"yt-wtr-redeemCard_footer yt-wtr-redeemCard_footer--zigzag",style:{...sg.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:sg.redeemCardFooterText},"Use reward balance while checking out using the Avail option.")))}function yg({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:sg.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...sg.redeemCardHeader,borderRadius:s?"8px 8px 0 0":8}},e.createElement(ug,null),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:sg.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:sg.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:sg.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:sg.redeemCardTitle},e.createElement("span",{style:sg.redeemCardTitleSpan},t?.name)),e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:sg.redeemCardSubtitle},t?.pointsRequired," Points Required •"," ",dg(t?.minimumOrderValue,i)))),e.createElement("button",{onClick:()=>n(t),disabled:o||l,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:sg.cta},r?e.createElement(ig,{size:18,color:"#fff",centered:!0}):"Avail")),s&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:sg.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:sg.redeemCardFooterText},e.createElement("span",{style:sg.redeemCardFooterTextSpan},t?.pointsRequired-a," coins "),"more required")))}function fg(e,t){return dg(e.minimumOrderValue,t)}function xg({product:t}){return t?.image?e.createElement("span",{className:"yt-wtr-freebieCard_icon yt-wtr-freebieCard_icon--product",style:sg.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:sg.redeemCardIcon,"aria-hidden":!0},e.createElement(xt,{size:22,color:"#1F1F1F"}))}function hg(){return e.createElement("span",{className:"yt-wtr-freebieCard_icon yt-wtr-freebieCard_icon--claimed",style:sg.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 bg({data:t,product:n,view:r,movLabel:o,isClaiming:a,onClaim:i,onCopy:l,showAddToCart:s=!1,isAddingToCart:c=!1,isInCart:d=!1,onAddToCart:p}){const{state:m,gating:u,tierName:g,current:y,target:f,unit:x,pricePrefix:h,code:b}=r;if("claimed"===m)return e.createElement("div",{className:"yt-wtr-freebieCard yt-wtr-freebieCard--claimed",style:sg.redeemCard},e.createElement("div",{className:"yt-wtr-freebieCard_header",style:{...sg.redeemCardHeader,border:"none",background:"transparent"}},e.createElement("div",{style:sg.redeemCardHeaderLeft},e.createElement(hg,null),e.createElement("div",{style:sg.redeemCardTitleBox},e.createElement("p",{style:sg.redeemCardTitle},e.createElement("span",{style:sg.redeemCardTitleSpan},t?.name)),e.createElement("p",{style:sg.freebieClaimedSubtitle},"Claimed · apply discount with item added in cart")))),e.createElement("div",{style:sg.freebieClaimedActions},e.createElement("div",{className:"yt-wtr-freebieCard_codeBox",style:{...sg.freebieCodeBox,flex:1,minWidth:0,margin:0},role:"button",tabIndex:0,onClick:l,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||l()}},e.createElement("span",{style:sg.freebieCode},b),e.createElement("span",{style:sg.freebieCopy},"Tap to copy")),s&&e.createElement("button",{type:"button",className:"yt-wtr-freebieCard_addToCart",style:{...sg.freebieAddToCartCta,...d?{cursor:"default",background:"#2F9E44"}:{}},onClick:p,disabled:c||d,title:d?"Added to cart":"Add to cart","aria-label":d?"Added to cart":"Add to cart"},c?e.createElement(ig,{size:16,color:"#fff",centered:!0}):d?e.createElement(v,{size:18}):e.createElement(C,{size:18}))));const w="locked"===m,E=w&&"points"===u,k=w&&"tier"===u,T=f&&f>0?Math.min(100,Math.max(0,Math.round(y/f*100))):0;return e.createElement("div",{className:"yt-wtr-freebieCard yt-wtr-redeemCard--flat",style:sg.redeemCard},e.createElement("div",{className:"yt-wtr-freebieCard_header",style:{...sg.redeemCardHeader,borderRadius:g?"8px 8px 0 0":8}},e.createElement("div",{style:sg.redeemCardHeaderLeft},e.createElement(xg,{product:n}),e.createElement("div",{style:{...sg.redeemCardTitleBox,flex:"1 0 0"}},e.createElement("p",{style:sg.redeemCardTitle},e.createElement("span",{style:sg.redeemCardTitleSpan},t?.name)," ",k?`unlock at ${g??""} tier`:E?"":"unlocked"),k?e.createElement(e.Fragment,null,e.createElement("p",{style:sg.redeemCardSubtitle},h??"",y.toLocaleString()," of"," ",h??"",null!=f?f.toLocaleString():"-",x?` ${x}`:""),e.createElement("div",{className:"yt-wtr-freebieCard_progressBar",style:sg.freebieProgressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":f??void 0,"aria-valuenow":y},e.createElement("div",{style:{...sg.freebieProgressFill,width:`${T}%`}}))):E?e.createElement("p",{style:sg.redeemCardSubtitle},f??0," Points Required • ",o):e.createElement("p",{style:sg.redeemCardSubtitle},o))),!k&&e.createElement("button",{onClick:i,disabled:a||E,className:"yt-wtr-freebieCard_cta",style:sg.freebieClaimCta},a?e.createElement(ig,{size:16,color:"#fff",centered:!0}):"Claim")),g&&e.createElement("div",{className:"yt-wtr-freebieCard_footer",style:sg.redeemCardFooter},e.createElement("p",{style:sg.redeemCardFooterText},"One-time claim on achieving ",g.toUpperCase()," tier")))}const wg={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}},vg=[wg.tier1,wg.tier2,wg.tier3],Cg=e=>vg[e%3];function Eg(e){if(null==e||""===e)return"-";const t=Number(e);return Number.isNaN(t)?String(e):t.toLocaleString()}function kg(e){if(null==e||""===e)return null;const t=Number(e);return Number.isNaN(t)?null:t}function Tg({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=kg(t?.totalOrders)??0,r=kg(e.minimumOrderCountRequired);return{current:n,target:r,currentText:Eg(n),targetText:Eg(r),unit:"orders"}}if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod){const n=kg(t?.currentLtv)??0,o=kg(e.minimumOrderValueRequired),a=Eg(n),i=Eg(o);return{current:n,target:o,currentText:"-"===a?a:`${r}${a}`,targetText:"-"===i?i:`${r}${i}`,unit:""}}if("loyalty_points"===e.rewardTierCriteria){const n=kg(t?.currentPoints)??0,r=kg(e.minimumLoyaltyPointsRequired);return{current:n,target:r,currentText:Eg(n),targetText:Eg(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:wg.wrap},e.createElement("div",{className:"yt-vip-head",style:wg.head},e.createElement("div",{className:"yt-vip-titleBlock",style:wg.titleBlock},e.createElement("p",{className:"yt-vip-eyebrow",style:wg.eyebrow},"Current Balance"),e.createElement("p",{className:"yt-vip-balance",style:wg.balance},Eg(n))),e.createElement("div",{className:"yt-vip-current-tier",style:wg.currentTier},i&&e.createElement("p",{className:"yt-vip-validity",style:wg.validity},"Current Tier"," ",e.createElement("span",{style:wg.validitySpan},"Valid till ",g)),i&&e.createElement("h2",{className:"yt-vip-title",style:wg.title},i.name)),e.createElement("div",{className:"yt-vip-progress",style:wg.progress},e.createElement("p",{className:"yt-vip-progressTitle",style:wg.progressTitle},"Your Progress"),e.createElement("div",{className:"yt-vip-progressDots",style:wg.progressDots},Array.from({length:6}).map((t,n)=>e.createElement("span",{key:n,className:"yt-vip-dot "+(n<m?"yt-is-filled":""),style:{...wg.dot,...n<m?wg.dotFilled:null}}))),e.createElement("p",{className:"yt-vip-sub",style:wg.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:wg.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:Eg(e.minimumOrderCountRequired),label:"Orders Required"};if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod){const t=Eg(e.minimumOrderValueRequired);return{value:"-"===t?t:`${n}${t}`,label:"Order Value Required"}}return"loyalty_points"===e.rewardTierCriteria?{value:Eg(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:{...wg.card,...Cg(n),...t.tierThemeColor?{background:t.tierThemeColor}:null}},e.createElement("div",{className:"yt-vip-cardHead",style:wg.cardHead},t.name),e.createElement("div",{className:"yt-vip-metrics",style:wg.metrics},e.createElement("div",{className:"yt-vip-metric",style:wg.metric},e.createElement("b",{style:wg.metricBold},Eg(t.rewardMultiplier),"x"),e.createElement("span",{style:wg.metricSpan},"Rewards")),e.createElement("div",{className:"yt-vip-metric",style:wg.metric},e.createElement("b",{style:wg.metricBold},Eg(t.redemptionMultiplier),"x"),e.createElement("span",{style:wg.metricSpan},"Redemption")),e.createElement("div",{className:"yt-vip-metric",style:wg.metric},e.createElement("b",{style:wg.metricBold},a.value),e.createElement("span",{style:wg.metricSpan},a.label)),r&&e.createElement("div",{className:"yt-vip-metric",style:{...wg.metric,justifyContent:"end",height:"100%"}},e.createElement("span",{style:wg.metricSpan},"+ Special Deals"))))})),e.createElement("div",{className:"yt-vip-note",style:wg.note},"stay signed-in with the account you use for checking out"))}Rt(".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 Ng={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 Sg({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=zg(m?.referrerReward,p,o),y=zg(m?.refereeReward,p,o),f=!!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:lg.body},a?.creditOnActivitiesProperties?.birthdayReward?.status&&a?.creditOnActivitiesProperties?.birthdayReward?.widgetVisibility&&Number(a?.creditOnBirthdayValue??0)>0&&e.createElement(_g,{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:Fg(a?.creditOnActivitiesProperties?.birthdayReward?.icon,e.createElement(xe,{size:28,color:"#000"})),activityRewards:a,userData:t,onBirthdayUpdate:i}),d?.programStatus&&d?.programVisibility&&Number(d?.orderCreditValue??0)>0&&e.createElement(Dg,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Fg(d?.programIcon,e.createElement(fe,{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(Dg,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Fg(a?.creditOnActivitiesProperties?.signUpReward?.icon,e.createElement(E,{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(Dg,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Fg(a?.creditOnActivitiesProperties?.firstOrderReward?.icon,e.createElement(fe,{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(Dg,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Fg(a?.creditOnActivitiesProperties?.secondOrderReward?.icon,e.createElement(fe,{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=Fg(o.icon,e.createElement(Le,{size:28,color:"#000"})),d=o.url?.trim(),m=i>0,u=m?i:l,g=m?"feedback":"image_feedback",y=m?"for a review":"for an image review",f=o.offerTitle?.trim()?o.offerTitle:y,x=m&&l>0?`Earn ${l} ${p} for image review`:void 0;return d?e.createElement(Ag,{ctaContrastColor:n,ctaPrimaryColor:r,active:!0,initializing:!t,url:d,type:g,icon:c,coins:u,coinName:p,title:f,subcopy:x,onCouponAvail:async e=>s?.(e,g)??!1}):e.createElement(Dg,{ctaContrastColor:n,ctaPrimaryColor:r,icon:c,coins:u,coinName:p,title:f,subcopy:x,showAvail:!1,onCouponAvail:()=>{}})})(),f&&e.createElement(Dg,{ctaContrastColor:n,ctaPrimaryColor:r,icon:Fg(m?.offerIcon,e.createElement(k,{size:28,color:"#000"})),coins:0,coinName:p,title:"",showAvail:!1,onCouponAvail:()=>{},customTitle:e.createElement(Pg,{title:m?.offerTitle,referrerReward:g,refereeReward:y})}),a?.creditOnActivitiesProperties?.customLink?.status&&Number(a?.creditOnCustomLinkValue??0)>0&&e.createElement(Ag,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasClickedOnCustomLink,initializing:!t,url:a?.creditOnActivitiesProperties?.customLink?.url??"",type:"custom_link",icon:Fg(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(Ag,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasFollowedOnInstagram,initializing:!t,url:a?.creditOnActivitiesProperties?.instagramFollow?.url??"",type:"instagram",icon:Fg(a?.creditOnActivitiesProperties?.instagramFollow?.icon,e.createElement(Nt,{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(Ag,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasLikedOnFacebook,initializing:!t,url:a?.creditOnActivitiesProperties?.facebookLike?.url??"",type:"facebook_like",icon:Fg(a?.creditOnActivitiesProperties?.facebookLike?.icon,e.createElement(le,{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(Ag,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasSharedOnFacebook,initializing:!t,url:a?.creditOnActivitiesProperties?.facebookShare?.url??"",type:"facebook_share",icon:Fg(a?.creditOnActivitiesProperties?.facebookShare?.icon,e.createElement(le,{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(Ag,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasFollowedOnTwitter,initializing:!t,url:a?.creditOnActivitiesProperties?.twitterFollow?.url??"",type:"twitter",icon:Fg(a?.creditOnActivitiesProperties?.twitterFollow?.icon,e.createElement(se,{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(Ag,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasSubscribedOnYoutube,initializing:!t,url:a?.creditOnActivitiesProperties?.youtubeSubscription?.url??"",type:"youtube",icon:Fg(a?.creditOnActivitiesProperties?.youtubeSubscription?.icon,e.createElement(ce,{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:lg.footer},e.createElement("hr",null),e.createElement("p",{className:"yt-wtr-footerText",style:lg.footerText},"stay signed-in with the account you use for checking out")))}function Fg(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 Bg({icon:t}){return e.createElement("span",{className:"yt-wte-bgIcon",style:lg.wteBgIcon,"aria-hidden":!0},t)}function $g({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 zg(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 Ig(t,n){return t?e.createElement("span",{key:n,style:{fontWeight:600}},t):null}function Pg({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?Ig(n,`referrer-${o}`):"{{referee_reward}}"===t?Ig(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 Dg({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:lg.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...lg.redeemCardHeader,borderRadius:o&&""!=o?"8px 8px 0 0":"8px"}},e.createElement(Bg,{icon:l}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:lg.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:lg.redeemCardIcon},l),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:lg.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:lg.redeemCardTitle},r??e.createElement($g,{title:n,coins:s,type:c,coinName:d})),a&&e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:lg.redeemCardSubtitle},a),i&&e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:lg.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:lg.cta},"Avail")),o&&""!=o&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:lg.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:lg.redeemCardFooterText},o)))}function Ag({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:y}){const[f,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:lg.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...lg.redeemCardHeader,borderRadius:i&&""!=i?"8px 8px 0 0":"8px"}},e.createElement(Bg,{icon:m}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:lg.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:lg.redeemCardIcon},m),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:lg.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:lg.redeemCardTitle},e.createElement($g,{title:a,coins:d??"",coinName:p})),l&&e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:lg.redeemCardSubtitle},l))),e.createElement("button",{onClick:async()=>{try{b(!0);await y(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:lg.cta},h||o?e.createElement(ig,{size:18,color:"#fff",centered:!0}):w?"Availed":"Avail")),f&&e.createElement(og,{displayText:f,background:"#000000",textColor:"#ffffff"}))}function _g({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,y]=t(!1),[f,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:lg.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...lg.redeemCardHeader,borderRadius:"8px 8px 0 0"}},e.createElement(Bg,{icon:k}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:lg.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:lg.redeemCardIcon},k),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:lg.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:lg.redeemCardTitle},e.createElement($g,{title:s,coins:a,type:i,coinName:l})))),e.createElement(e.Fragment,null," ",e.createElement("button",{onClick:()=>y(!0),disabled:C||d,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:lg.cta},d?e.createElement(ig,{size:18,color:"#fff",centered:!0}):C?"Availed":"Avail"),e.createElement(Lg,{isLoading:h,open:g,value:w,onChange:e=>{v(e.target.value),console.log("SElected date",e.target.value)},onClose:()=>y(!1),onSave:async e=>{try{b(!0);await u(e)?(E(!0),x("Birthday saved"),y(!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:lg.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:lg.redeemCardFooterText},"Add birth date to avail the offer")),f&&e.createElement(og,{displayText:f,background:"#000000",textColor:"#ffffff"}))}function Lg({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:Ng.modalBackdrop,onClick:a},e.createElement("div",{className:"yt-dob-modal",style:Ng.modal,onClick:e=>e.stopPropagation()},e.createElement("h2",{className:"yt-dob-modal-title",style:Ng.modalTitle},"What’s your date of birth?"),e.createElement("input",{ref:s,type:"date",className:"yt-dob-date-input",style:Ng.dateInput,value:n??"",max:d,onChange:i}),p&&e.createElement("p",{className:"yt-dob-error",style:Ng.error},"You must be at least 10 years old."),e.createElement("div",{className:"yt-dob-modal-actions",style:Ng.modalActions},e.createElement("button",{className:"yt-dob-btn-secondary",style:Ng.btnSecondary,onClick:a},"Cancel"),e.createElement("button",{className:"yt-dob-btn-primary",style:Ng.btnPrimary,disabled:!n||p,onClick:()=>n&&!p&&r(n)},l?e.createElement(ig,{size:18,color:"#fff",centered:!0}):"Save"))))}Rt("/* 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 Rg={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}},Og={earned:"#D4F9A780",expired:"#FFB3B380",availed:"#CDE2FF80"},Mg={earned:"#3d8b3d",expired:"#c44a4a",availed:"#3a5fa8"},Wg=e=>({...Rg.caret,color:Mg[e]}),Vg={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"},jg={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"},Hg={awaiting_payment:"awaiting-payment",confirmed:"confirmed",in_transit:"in-transit",delivered:"delivered",processing:"processing"};function qg(e){const t=Math.round(100*e)/100;return Number.isInteger(t)?t.toLocaleString():t.toLocaleString(void 0,{maximumFractionDigits:2})}function Ug(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 Yg(e,t,n){if("expired"===e)return`${n} Expired`;return`${n} ${"earned"===e?"Earned":"Availed"}: on-${function(e){const t=e.toLowerCase();return Vg[t]?Vg[t]:t.split("_").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}(t)}`}function Zg(e){if(e)return Hg[e]??e.replace(/_/g,"-")}function Gg(e,t){return e.map(e=>{return{deltaLabel:`+ ${qg(e.points)} ${t.toLowerCase()}`,orderId:e.orderId?`#ORDERID: ${e.orderId}`:void 0,status:Zg(e.orderStatus),note:(n=e.criteria,n&&jg[n]?jg[n]:"Coins will be credited once the order is complete")};var n})}const Xg={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 Kg({data:t,tokenName:n="Coins",currencySymbol:r="$"}){const o=t??Xg,{totals:a,months:i,pending:l}=function(e,t,n){const r={saved:(o=e.summary.totalSaved??0,a=n,`${a}${qg(o)}`),earned:qg(e.summary.totalEarned??0),available:qg(e.summary.totalAvailed??0),expired:qg(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:Ug(e.createdAt),title:Yg(r,e.activityType,t),amount:qg(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:Gg(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:Rg.wrap},e.createElement("div",{className:"yt-rt-totals",style:Rg.totals},e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:Rg.totalLabel},"Total Saved"),e.createElement("div",{className:"yt-rt-totalValue",style:Rg.totalValue},a.saved)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:Rg.totalLabel},"Total Earned"),e.createElement("div",{className:"yt-rt-totalValue",style:Rg.totalValue},a.earned)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:Rg.totalLabel},"Total Avail",e.createElement("span",{className:"yt-rt-hideSm"},"ed")),e.createElement("div",{className:"yt-rt-totalValue",style:Rg.totalValue},a.available)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:Rg.totalLabel},"Expired"),e.createElement("div",{className:"yt-rt-totalValue",style:Rg.totalValue},a.expired))),l.map((t,n)=>e.createElement(e.Fragment,{key:`${t.orderId??"pending"}-${n}`},e.createElement("div",{className:"yt-rt-pendingPills",style:Rg.pendingPills},e.createElement("span",{className:"yt-rt-pill yt-rt-pill--delta",style:{...Rg.pill,...Rg.pillDelta}},t.deltaLabel),e.createElement("div",{className:"yt-rt-pendingPillsRight",style:Rg.pendingPillsRight},t.orderId&&e.createElement("span",{className:"yt-rt-pill yt-rt-pill--order",style:{...Rg.pill,...Rg.pillOrder}},t.orderId),t.status&&e.createElement("span",{className:"yt-rt-pill yt-rt-pill--status",style:{...Rg.pill,...Rg.pillStatus}},t.status))),t.note&&e.createElement("div",{className:"yt-rt-pendingNote",style:Rg.pendingNote},t.note))),i.map(t=>e.createElement("div",{key:t.monthTitle,className:"yt-rt-month"},e.createElement("div",{className:"yt-rt-monthTitle",style:Rg.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,{...Rg.row,background:Og[n]})},e.createElement("div",{className:"yt-rt-rowHeader",style:Rg.rowHeader},e.createElement("span",{className:"yt-rt-caret",style:Wg(t.kind)},"▶"),e.createElement("span",{className:"yt-rt-date",style:Rg.date},t.dateLabel)),e.createElement("div",{className:"yt-rt-rowBody",style:Rg.rowBody},e.createElement("div",{className:"yt-rt-title"},function(t){const n=t.indexOf(": ");return-1===n?e.createElement("span",{style:Rg.title},t):e.createElement(e.Fragment,null,e.createElement("span",{style:Rg.title},t.substring(0,n+1)),e.createElement("span",{style:Rg.titleSuffix}," ",t.substring(n+2)))}(String(t.title))),e.createElement("div",{className:"yt-rt-amount",style:Rg.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 Jg({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 ey(e){try{return Number(e).toLocaleString()}catch{return e}}function ty(e){const t=Number(e);return Math.round(10*t)/10}function ny({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 ry({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:y,themeSecondaryColor:f,themeSecondaryContrastColor:x,themeBackgroundColor:h,themeTextColor:b,themeAccentColor:w,widgetOpen:v,widgetRoundedCorners:C,ctaPrimaryColor:E,ctaPrimaryContrastColor:k,ctaBorderColor:T,ctaSecondaryColor:N,ctaSecondaryContrastColor:S,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:W,balanceCoins:V,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,onFreebieAddToCart:ne,referralLink:re,userRewardTier:oe,brandRewardTiers:ae,onClose:ie=()=>{},onLogout:le,userData:se,activityRewards:ce,brandRewardProgram:de,recentTransactionsData:pe,isLoading:me,onBirthdayUpdate:ue,onSocialClick:ge,onFeedbackRewardClick:ye,customHTML:fe}=r||{},[xe,he]=t(!1),be=o(null),we=o(null),ve=o(null),[Ce,Ee]=t(!1),[ke,Te]=t("profile"),Ne=e=>{i||Te(e)},Se="start"===p?{alignItems:"flex-start",textAlign:"left"}:"end"===p?{alignItems:"flex-end",textAlign:"right"}:{alignItems:"center",textAlign:"center"},Fe=null!=V&&""!==V&&!isNaN(Number(V)),Be="static"===s?"":c??"",$e=ce?.creditOnActivitiesProperties?.referralRewardConfig,ze=oe?.currentTier,Ie=Array.isArray(ze?.catalogDealsProducts)?ze?.catalogDealsProducts??[]:[],Pe=Ie?.length>0,De=ze?.rewardMultiplier,Ae=oe?.nextTier,_e=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:`${ey(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}${ey(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:`${ey(Math.max(0,a-o))} points`}return null}(Ae,oe,q),Le=!!$e?.customizeReferralSectionContent,Re=$e?.shareMethod,Oe=de?.coinName??U??"coins",Me=zg($e?.referrerReward,Oe,q),We=zg($e?.refereeReward,Oe,q);async function Ve(e){he(!0),setTimeout(()=>he(!1),2e3);try{await navigator.clipboard.writeText(e)}catch{}}n(()=>{const e=be.current,t=we.current,n=ve.current;if(!e||!t||!n)return;if(!a){return Ee("profile"!==ke),e.classList.add("yt-rw-card--locked"),e.scrollTop=0,void(n.scrollTop=0)}const r=80;let o=!1,i=0,l="profile"!==ke||Ce;const s=t=>{o=t,e.classList.toggle("yt-rw-card--locked",t),t&&(e.scrollTop=0,l=!0,Ee(!0))},c=e=>{const t=Math.max(8,78),n=Math.max(0,t-12);if(!l&&e>=t)return l=!0,void Ee(!0);l&&e<=n&&(l=!1,Ee(!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"!==ke)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},y=e=>{const t=e.touches[0]?.clientY??0,n=u-t;u=t;p(n)&&e.preventDefault()},f=()=>{if(i=d(i,0,r),o)return i=r,e.scrollTop=0,l=!0,void Ee(!0);e.scrollTop=i,c(i)};e.addEventListener("wheel",m,{passive:!1}),e.addEventListener("touchstart",g,{passive:!0}),e.addEventListener("touchmove",y,{passive:!1}),window.addEventListener("resize",f);const x="profile"!==ke;return Ee(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",y),window.removeEventListener("resize",f)}},[ke,a]);const je=async e=>{const t=re?.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")},He=!a,qe=e.createElement("div",{onMouseDown:e=>e.stopPropagation(),ref:be,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:we,className:"yt-rw-head "+(Ce||"profile"!==ke?"yt-rw-head--shrink":""),style:{color:d,backgroundColor:l,backgroundImage:Be&&Be.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${Be})`:void 0,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",padding:"profile"!==ke?"0px":"",maxHeight:"profile"!==ke?"0px":"",minHeight:"profile"!==ke?"0px":"",overflow:"profile"!==ke?"hidden":"",alignItems:Se?.alignItems,textAlign:Se?.textAlign}},e.createElement("button",{className:"yt-rw-close","aria-label":"Close",onClick:ie,style:{color:d}},"×"),!Be&&m&&e.createElement("div",{className:"yt-rw-headBg",style:u?{color:u}:void 0},R),L&&W&&W?.length>0&&e.createElement("div",{className:"yt-rw-logo",style:{alignSelf:Se?.alignItems??"",paddingRight:"20px"}},e.createElement("img",{src:W,alt:""})),"profile"==ke&&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"!=ke&&e.createElement("div",{className:"yt-rw-backNavigation",style:{backgroundColor:l,backgroundImage:Be&&Be.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${Be})`: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:()=>Ne("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"==ke?"Ways to Redeem":"wte"==ke?"Ways to Earn":"recentTransactions"==ke?"Recent Transactions":"VIP Tiers")," ",e.createElement("div",{style:{height:"24px",width:"36px",display:"block"}}))),e.createElement("div",{ref:ve,className:"yt-rw-body yt-rw-body--"+("profile"===ke?"back":"forward"),style:{backgroundColor:h,color:b,borderRadius:"profile"!=ke?"0px":""}},"profile"==ke?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"},Fe?e.createElement(ny,{value:Number(V)}):" "),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"})))),Fe?e.createElement("div",{className:"yt-rw-note",style:{color:b}},"Your point balance is"," ",e.createElement("b",{style:{color:b}},ty(Number(V)/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:()=>Ne("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:()=>Ne("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"},`${ty(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(ag,{setScreenType:Ne,themePrimaryColor:g,themeContrastColor:y,themeSecondaryColor:f,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"},Le?e.createElement(Pg,{title:$e?.offerTitle,referrerReward:Me,refereeReward:We}):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"===Re?"Share your referral code":"Share your referral link"),e.createElement("div",{style:{display:"flex",gap:"7px",justifyContent:"referral_code"===Re?"center":void 0,alignItems:"center"}},"referral_code"===Re?e.createElement("div",{className:"yt-rw-codebox",style:{color:w,borderRadius:B}},re):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:re,readOnly:!0})),e.createElement("button",{className:"yt-rw-copy",type:"button",style:{cursor:"pointer",borderRadius:B},onClick:()=>Ve(re)},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:()=>je("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:()=>je("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:()=>je("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:()=>je("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:()=>je("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"==ce?.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:N,color:S,borderRadius:B},onClick:()=>Ne("recentTransactions")},e.createElement("div",{className:"yt-rw-cta-left",style:{color:S}},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:S}},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"),ze&&e.createElement("p",{className:"yt-rw-tiers_desc",style:{color:b,fontSize:"15px"}},ze.name)),e.createElement("div",{className:"yt-rw-tiers__gems"},e.createElement(Jg,{className:"yt-gem yt-gem--violet",gradientPrefix:"vip-violet",overlayColor:"#8E74F4"}),e.createElement(Jg,{className:"yt-gem yt-gem--gold",gradientPrefix:"vip-gold",overlayColor:"#F3BE00"}),e.createElement(Jg,{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,De??Ae?.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}}," ",Pe||(Ae?.catalogDealsProducts?.length??0)>0?"special deals":"special discounts")),e.createElement("button",{onClick:()=>Ne("vip"),style:{"--hover-bg":f,"--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"}))))),_e&&Ae&&e.createElement("div",{className:"yt-rw-note"},"You’re ",e.createElement("b",null,_e)," away from"," ",e.createElement("b",null,Ae.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:le,style:{background:N,color:S}},"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"==ke?e.createElement(pg,{balanceCoins:Number(V),couponList:J,freebies:ee,currencyCode:q,onCouponAvail:te,onFreebieAddToCart:ne,setScreenType:Ne,themeSecondaryColor:f,themeSecondaryContrastColor:x,showCTA:!0,couponCode:K,couponHeading:X,copyFunction:Ve,ctaBorderRadius:B,brandRewardProgram:de,redemptionMovRequired:Y,userRewardTier:oe,brandRewardTiers:ae}):"vip"==ke?e.createElement(Tg,{onBack:()=>Ne("profile"),brandRewardTiers:ae,balanceCoins:V,userRewardTier:oe,currencyCode:q}):"wte"==ke?e.createElement(Sg,{ctaPrimaryColor:E??"",ctaContrastColor:k??"",currencyCode:q,userData:se,activityRewards:ce,onBirthdayUpdate:ue,onSocialClick:ge,onFeedbackRewardClick:ye,isLoading:me,brandRewardProgram:de}):"recentTransactions"==ke?e.createElement(Kg,{data:pe,tokenName:U,currencySymbol:"INR"===q?"₹":q??"$"}):e.createElement("div",null)),xe&&e.createElement(og,{background:g,textColor:y}));return v?He?e.createElement("div",{className:"yt-rw-shell "+(C?"yt-rw-shell--below":"yt-rw-shell--right")},qe,e.createElement("div",{className:"yt-powered-by"},e.createElement("p",null,"powered by ",e.createElement("span",null,"YourToken")))):qe:e.createElement("div",null)}function oy({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="",y="";"top-left"==r?(m="0px",u=o):"top-right"==r?(g="0px",u=o):"bottom-right"==r?(g="0px",y=o):(m="0px",y=o);const f=function(t,n,r){const o=n?.trim();return"custom"===t&&o?e.createElement("img",{src:o,alt:""}):e.createElement(he,{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:y,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&&f,e.createElement("p",{style:{color:t,transform:"top-right"==r||"bottom-right"==r?"scale(-1, 1)":""}},a),("top-right"==r||"bottom-right"==r)&&f):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:y,borderColor:i}},d&&e.createElement(e.Fragment,null,e.createElement("span",{className:"yt-ring"}),e.createElement("span",{className:"yt-ring yt-ring2"})),f)}const ay="20px";function iy({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(${ay} + ${u})`:ay,[m?"right":"left"]:"20px"},y=function(t,n,r){const o=n?.trim();return"custom"===t&&o?e.createElement("img",{src:o,alt:""}):e.createElement(he,{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"})),y,a?.length>0&&e.createElement("p",{style:{color:t}},a))}function ly(t,n,r){const o=n?.trim();return"custom"===t&&o?e.createElement("img",{src:o,alt:""}):e.createElement(he,{color:r})}function sy({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),[y,f]=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(f(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 "+(y?"yt-is-marquee":""),ref:g},e.createElement("span",{style:{color:n}},a),ly(c,d,""!==n?n:"white"),e.createElement("p",{style:{color:n}},l),y&&e.createElement(e.Fragment,null,e.createElement("span",{style:{color:n}},a),ly(c,d,""!==n?n:"white"),e.createElement("p",{style:{color:n}},l)))))}function cy({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:y=()=>{}}){const f=(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(oy,{onClick:y,textColor:n,backgroundColor:r,position:o,yOffsetValue:f,borderColor:s,iconType:c,launcherIcon:d,addAttentionWaves:m,addVisibilityDelay:p,launcherTitle:i});break;case"bubble":x=e.createElement(iy,{onClick:y,textColor:n,backgroundColor:r,position:o,yOffsetValue:f,borderColor:s,iconType:c,launcherIcon:d,addAttentionWaves:m,addVisibilityDelay:p,launcherTitle:i});break;case"ribbon":x=e.createElement(sy,{onClick:y,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 dy({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:y,themeAccentColor:f,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,N]=t(!1);n(()=>{k.current[0]?.focus()},[]);const S=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)){N(!0);const t=e.join("");if(c){await c(t)||(N(!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:f,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(),S.length===v&&c){await c(S)||(N(!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 N(!1);e>0&&(k.current[e-1]?.focus(),F(e-1,""),N(!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:f,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(ig,{size:18,color:"#fff",centered:!0}):"Confirm")))}Rt(".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 py={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 my({onClose:t,handleSessionDetected:n}){return e.createElement("div",{className:"yt-asd-ol",style:py.overlay,role:"dialog","aria-modal":"true"},e.createElement("div",{className:"yt-asd-card",style:py.card},e.createElement("h4",{className:"yt-asd-title",style:py.title},"Active Session Found!"),e.createElement("p",{className:"yt-asd-desc",style:py.desc},"You’re already signed in. Tap below to refresh and access your loyalty rewards."),e.createElement("button",{className:"yt-asd-btn",style:py.btn,onClick:n},"Refresh & Continue")))}function uy({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:y="",guestGreeting:f="Welcome to",existingUserGreeting:x="",emailRequired:h,onPhoneChange:b,onEmailChange:w,validatePhone:v,setEmailRequired:C,onClose:E=()=>{},onRegister:k,handleChangeNumber:T,handleResendOtp:N,handleSessionDetected:S,onSendOTP:F,isSessionDetected:B,authType:$="default",formFilled:z=!1,redirectUrl:I="",ctaTitle:P="Register Now",ctaPrimaryColor:D="",ctaPrimaryContrastColor:A="",themeAccentColor:_="",registerLink:L="",brandTitle:R="My Pahadi Rewards",widgetOpen:M=!0,heading:W="Get Started",subcopy:V="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,ye]=t(!1);return n(()=>{ye(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(my,{handleSessionDetected:S??(()=>{})}),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}},R),e.createElement("div",{className:"yt-rwmd-hero_header",style:{alignItems:ce.alignItems,textAlign:ce.textAlign,width:"100%"}},g&&y&&y?.length>0&&e.createElement("div",{className:"yt-rwmd-logo",style:{alignSelf:ce.alignItems}},e.createElement("img",{src:y,alt:""})),e.createElement("p",{className:"yt-rwmd-hero-eyebrow",style:{color:d}},f),e.createElement("h2",{id:"yt-rwmd-title",className:"yt-rwmd-hero-title",style:{color:d}},R))),e.createElement("div",{className:"yt-rwmd-content",style:{background:a}},e.createElement("div",{className:"yt-rwmd-body",style:{color:i}},ae&&e.createElement(og,{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}},W),e.createElement("p",{className:"yt-rwmd-subcopy",style:{color:i}},V)),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(O,{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(ig,{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)&&!fy(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(ig,{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:!fy(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(ig,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",{className:"yt-rwmd-cta",style:{color:A,background:D},onClick:()=>{k?.(),""!=L&&(window.location.href=L)}},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(dy,{setToast:ie,authType:$,email:te,countryCode:le,themeAccentColor:_,themeBackgroundColor:a,themeTextColor:i,ctaPrimaryColor:D,ctaPrimaryContrastColor:A,phoneLabel:J,length:4,onConfirm:k,onResend:N,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 gy({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:y="",guestGreeting:f="Welcome to",existingUserGreeting:x="",phone:h="",email:b="",emailRequired:w,onPhoneChange:v,onEmailChange:C,validatePhone:E,setEmailRequired:k,onClose:T=()=>{},onRegister:N=e=>Promise,handleChangeNumber:S,handleResendOtp:F,handleSessionDetected:B,onSendOTP:$,isSessionDetected:z,isLoading:I,authType:P="phone",countryCode:D,formFilled:A=!1,redirectUrl:_="",ctaTitle:L="Register Now",ctaPrimaryColor:R="",ctaPrimaryContrastColor:M="",registerLink:W="",brandTitle:V="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(my,{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(og,{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 ${V} 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(O,{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(ig,{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)&&!fy(X),className:"yt-rwmd-cta",style:{margin:"0px",color:M,background:R},onClick:async()=>{ne(!0);await($?.())?ne(!1):(ne(!1),oe("An error occured!"),setTimeout(()=>oe(null),3e3))}},te?e.createElement(ig,{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:!fy(X),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:M,background:R},onClick:async()=>{ne(!0);await($?.())?ne(!1):(ne(!1),oe("An error occured!"))}},te?e.createElement(ig,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",null,e.createElement("p",null,L??"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(dy,{setToast:oe,authType:P,email:b??X,countryCode:ae,themeAccentColor:i,themeBackgroundColor:o,themeTextColor:a,ctaPrimaryColor:R,ctaPrimaryContrastColor:M,phoneLabel:Z,length:4,onConfirm:N,onResend:()=>F?.(),onChangeNumber:S,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 yy({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:y=!1,logourl:f="",guestGreeting:x="Welcome to",existingUserGreeting:h="",emailRequired:b,onPhoneChange:w,onEmailChange:v,onClose:C=()=>{},onRegister:E,handleChangeNumber:k,handleResendOtp:T,handleSessionDetected:N,onSendOTP:S,isSessionDetected:F,authType:B="default",countryCode:$,validatePhone:z,setEmailRequired:I,formFilled:P=!1,redirectUrl:D="",ctaTitle:A="Register Now",ctaMainColor:_="",ctaMainContrastColor:L="",ctaPrimaryColor:R="",ctaPrimaryContrastColor:M="",themeAccentColor:W="",registerLink:V="",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%"}},y&&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(my,{handleSessionDetected:N??(()=>{})}),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(og,{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(O,{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(ig,{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)&&!fy(te),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:M,background:R},onClick:async()=>{oe(!0);await(S?.())?oe(!1):(oe(!1),ie("An error occured!"),setTimeout(()=>ie(null),3e3))}},re?e.createElement(ig,{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:!fy(te),className:"yt-rwmd-cta",style:{margin:"0px",color:M,background:R},onClick:async()=>{oe(!0);await(S?.())?oe(!1):(oe(!1),ie("An error occured!"),setTimeout(()=>ie(null),3e3))}},re?e.createElement(ig,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",{className:"yt-rwmd-cta",style:{color:M,background:R},onClick:()=>{E?.(),""!=V&&(window.location.href=V)}},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:W}},"T&Cs")," ","and"," ",e.createElement("a",{href:"https://yourtoken.io/privacy-policy",target:"_blank",rel:"noreferrer",style:{color:W}},"Privacy Policy"))):e.createElement(dy,{setToast:ie,authType:B,email:te,countryCode:le,themeAccentColor:W,themeBackgroundColor:a,themeTextColor:i,ctaPrimaryColor:R,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 fy=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);function xy({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(uy,{config:r}):o&&o?.length>0?e.createElement(gy,{config:r}):e.createElement(yy,{config:r})}function hy({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:y="",themeAccentColor:f="",widgetOpen:x=!0,widgetPosition:h="center",guestWidgetImage:b="",widgetRoundedCorners:w=!1,ctaMainColor:v="",ctaMainContrastColor:C="",ctaPrimaryColor:E="",ctaPrimaryContrastColor:k="",ctaBorderColor:T="",ctaSecondaryColor:N="",ctaSecondaryContrastColor:S="",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:W=0,redemptionMovRequired:V,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,onFreebieAddToCart:ee,couponImage:te="https://images.unsplash.com/photo-1606318313647-137fcb1d5cd2?q=80&w=800&auto=format&fit=crop",referralLink:ne="",userRewardTier:re,brandRewardTiers:oe,watermarkColor:ae="#fff",bannerTextAlignment:ie="start",showWatermark:le=!0,showLogo:se=!1,logourl:ce="",guestGreeting:de="Welcome to",userGreeting:pe="Welcome to",existingUserGreeting:me="",phone:ue="",email:ge="",emailRequired:ye=!1,onPhoneChange:fe=e=>{},onEmailChange:xe=e=>{},validatePhone:he,setEmailRequired:be,onClose:we=()=>{},onRegister:ve,onLogout:Ce,handleChangeNumber:Ee,handleResendOtp:ke,handleSessionDetected:Te,onSendOTP:Ne,isSessionDetected:Se,authType:Fe="phone",formFilled:Be=!1,redirectUrl:$e="",ctaTitle:ze="Register Now",registerLink:Ie="",brandTitle:Pe="",heading:De="Get Started",subcopy:Ae="Welcome to YourToken Loyalty Program <> Earn as you Buy",termsHref:_e="#",privacyHref:Le="#",isLoading:Re,userData:Oe,activityRewards:Me,brandRewardProgram:We,recentTransactionsData:Ve,customCss:je,enableCustomCss:He,customHTML:qe,onBirthdayUpdate:Ue,onSocialClick:Qe,onFeedbackRewardClick:Ye,countryCode:Ze,isMobilePreview:Ge,viewportMode:Xe}){n(()=>{const e=e=>{"Escape"===e.key&&we()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[we]),n(()=>{if(!x)return;const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[x]);const Ke=o(null);n(()=>{const e=Ke.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[Je,et]=t("undefined"!=typeof window&&window.innerWidth<=480);n(()=>{if("undefined"==typeof window)return;const e=()=>et(window.innerWidth<=480);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const tt="mobile"===Xe||"desktop"!==Xe&&Je;return e.createElement("div",{ref:Ke,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")||we()},className:"yt-root yt-reward-loyalty-overlay"},He&&je?.trim()&&e.createElement("style",{"data-yt-custom-css":"loyalty-widget",dangerouslySetInnerHTML:{__html:je}}),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(ry,{config:{isMobile:tt,previewMode:a,bannerTextAlignment:ie,bannerBackground:i,bannerBackgroundType:l,bannerImage:s,bannerTextColor:c,themePrimaryColor:d,themeContrastColor:p,themeSecondaryColor:m,themeSecondaryContrastColor:u,themeBackgroundColor:g,themeTextColor:y,themeAccentColor:f,widgetOpen:x,widgetPosition:h,widgetRoundedCorners:w,ctaPrimaryColor:E,ctaPrimaryContrastColor:k,ctaBorderColor:T,ctaSecondaryColor:N,ctaSecondaryContrastColor:S,ctaShowIcon:F,ctaBorderRadius:B,showWaysToEarn:$,showWaysToRedeem:z,showWCoinValue:I,showReferral:P,referralLocked:D,showTransactions:A,showVipSection:_,showLogo:se,brandName:L,brandLogoUrl:R,headingEyebrow:O,userGreeting:pe,balanceCoins:M,maxRedeemableCoins:W,redemptionMovRequired:V,coinValInr:j,coinIcon:H,currencyCode:q,tokenName:U,rateTitle:Q,rateSub:Y,couponHeading:Z,couponCode:G,couponImage:te,couponList:X,freebies:K,onCouponAvail:J,onFreebieAddToCart:ee,referralLink:ne,userRewardTier:re,brandRewardTiers:oe,userData:Oe,activityRewards:Me,brandRewardProgram:We,recentTransactionsData:Ve,isLoading:Re,onBirthdayUpdate:Ue,onSocialClick:Qe,onFeedbackRewardClick:Ye,customHTML:qe,onClose:we,onLogout:Ce}}):e.createElement(xy,{config:{isLoading:Re,themeBackgroundColor:g,themeTextColor:y,themeAccentColor:f,bannerBackground:i,bannerBackgroundType:l,bannerImage:s,bannerTextColor:c,watermarkColor:ae,widgetRoundedCorners:w,guestWidgetImage:b,bannerTextAlignment:ie,showWatermark:le,showLogo:se,logourl:ce,guestGreeting:de,existingUserGreeting:me,phone:ue,email:ge,emailRequired:ye,onPhoneChange:fe,onEmailChange:xe,validatePhone:he,setEmailRequired:be,onClose:we,onRegister:ve,handleChangeNumber:Ee,handleResendOtp:ke,handleSessionDetected:Te,onSendOTP:Ne,isSessionDetected:Se,authType:Fe,countryCode:Ze,formFilled:Be,redirectUrl:$e,ctaTitle:ze,ctaMainColor:v,ctaMainContrastColor:C,ctaPrimaryColor:E,ctaPrimaryContrastColor:k,registerLink:Ie,brandTitle:Pe,brandLogoUrl:R,widgetOpen:x,heading:De,subcopy:Ae,termsHref:_e,privacyHref:Le,isMobilePreview:Ge,viewportMode:Xe}}))}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}`}));Rt('.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 by={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:"},wy=e=>{if(null==e||""===e)return null;const t="number"==typeof e?e.toString():e;return t.includes("₹")?t:`₹${t}`},vy=({config:a})=>{const i={...by,...a},{sectionTitle:l,catalogBanner:s,coinBalance:c,coinBalanceLabel:d,coinIconUrl:p,coinName:m,display:u,alignment:g,titleFontSize:y,titleColor:f,tabBackgroundColor:x,tabActiveColor:h,tabActiveTextColor:b,tabTextColor:w,cardBackgroundColor:v,buttonColor:C,buttonTextColor:E,borderColor:k,roundness:T,tiers:N,selectedTierId:S,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]),W=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 V="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:f,fontSize:`${y}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:V,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"},wy(t.mrp)?e.createElement(e.Fragment,null,e.createElement("span",{className:"lpc-priceMuted"},"MRP:"),e.createElement("span",{className:"lpc-priceStrikethrough"},wy(t.mrp))):null,wy(t.price)?e.createElement("span",{className:"lpc-priceNow"},wy(t.price)):null,wy(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(ig,{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:()=>W("left"),disabled:!D},e.createElement(Bt,null)),e.createElement("button",{className:"lpc-navBtn "+(_?"lpc-navBtn--enabled":""),type:"button",onClick:()=>W("right"),disabled:!_},e.createElement($t,null))):null)},Cy={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"}},Ey={left:"flex-start",center:"center",right:"flex-end"},ky=e=>"number"==typeof e?`${e}px`:e;function Ty({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=ky(d)??"18px",m="number"==typeof d?`${d+2}px`:`calc(${p} + 2px)`;return e.createElement("div",{className:"yt-peb-wrap",style:{...Cy.wrap,justifyContent:Ey[i]}},e.createElement("div",{className:"yt-peb",style:{...Cy.badge,background:a,borderColor:s,borderRadius:ky(c)}},e.createElement("div",{className:"yt-peb__content",style:{...Cy.content,textAlign:i}},t?e.createElement("span",{className:"yt-peb__text",style:{...Cy.text,color:l,fontSize:p}},t):null,n?e.createElement("img",{className:"yt-peb__icon",style:Cy.icon,src:n,alt:"","aria-hidden":"true"}):null,e.createElement("span",{className:"yt-peb__coins",style:{...Cy.coins,color:l,fontSize:m}},o),r?e.createElement("span",{className:"yt-peb__text",style:{...Cy.text,color:l,fontSize:p}},r):null)))}const Ny=["banner","referrals","gettingStarted","waysToEarn","customImage","customHtml","vipTiers","rewards","waysToRedeem"],Sy=e=>"INR"===e?"₹":e?`${e} `:"",Fy=(e,t)=>{const n=Number(e??0);return n>0?`min order ${Sy(t)}${n.toLocaleString()}`:"no mov"};function By(e){if(null==e||""===e)return"-";const t=Number(e);return Number.isNaN(t)?String(e):t.toLocaleString()}const $y=({config:t,signedIn:n=!1,referralLocked:r=!1,userData:o,onBannerButtonClick:a,onReferralButtonClick:i,onReferralCopyClick:l,onRewardsButtonClick:s,onRedeemClick:c,onEarnMoreClick:d,onActiveCouponCopy:p,onFreebieAddToCart:m})=>{const{sectionOrder:u,banner:g,referrals:y,gettingStarted:f,waysToEarn:x,vipTiers:h,rewards:b,waysToRedeem:w,customImage:E,customHtml:k,primaryColor:A="#1C1C1D",primaryContrastColor:_="#FFFFFF",secondaryColor:L="#FFFFFF",secondaryContrastColor:R="#000000",customCss:O,enableCustomCss:M}=t||{},W="undefined"!=typeof window&&window.innerWidth<=768,[V,j]=e.useState(null),H=()=>{"undefined"!=typeof window&&window.ytapp&&(window.ytapp.loyaltyWidgetOpen=!0,window.dispatchEvent(new Event("loyaltyWidgetOpenChanged")))},q={...{padding:"12px 32px",borderRadius:"30px",fontSize:"14px",fontWeight:600,cursor:"pointer",textTransform:"uppercase",border:`1px solid ${A}`,transition:"all 0.3s ease"},backgroundColor:A,color:_,borderColor:A},U=n?g?.signedInView:g?.guestView,Q={visibility:g?.visibility??"show",backgroundColor:g?.backgroundColor??"#F3F3F3",fontColor:g?.fontColor??"#000000",alignment:g?.alignment??"center",imageUrl:g?.imageUrl,badgeTitle:g?.badge?.enabled?g.badge.title?.trim():void 0,title:U?.title,subtitle:U?.subtitle,buttonText:g?.guestView?.buttonText,balanceCoins:g?.signedInView?.balanceCoins??o?.balanceCoins??(null!=o?.currentBalance?String(o.currentBalance):void 0),currentTier:g?.signedInView?.currentTier,nextTier:g?.signedInView?.nextTier,currentLtv:g?.signedInView?.currentLtv,nextTierLtv:g?.signedInView?.nextTierLtv,tierIcon:g?.signedInView?.tierIcon,memberSince:g?.signedInView?.memberSince,rewardTierCriteria:g?.signedInView?.rewardTierCriteria??o?.rewardTierCriteria,purchaseValueMethod:g?.signedInView?.purchaseValueMethod??o?.purchaseValueMethod,currencyCode:g?.signedInView?.currencyCode??o?.currencyCode,showTierProgress:g?.showTierProgress??!1},Y=Number(Q.currentLtv),Z=Number(Q.nextTierLtv),G=Q.showTierProgress&&Number.isFinite(Y)&&Number.isFinite(Z)&&Z>0,X=G?Math.min(100,Math.max(0,Y/Z*100)):0,K=G?Math.max(0,Z-Y):0,J=function(e,t,n,r,o){const a="INR"===o?"₹":o?`${o} `:"",i=By(n),l=By(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}}(Q.rewardTierCriteria,Q.purchaseValueMethod,Y,K,Q.currencyCode),ee=n?y?.signedInView:y?.guestView,te={visibility:y?.visibility??"show",backgroundColor:y?.backgroundColor??"#FFFFFF",fontColor:y?.fontColor??"#111111",badgeTitle:y?.badge?.enabled?y.badge.title?.trim():void 0,imageUrl:y?.imageUrl,imagePosition:y?.imagePosition??"left",guestVisibility:y?.guestVisibility??!0,title:ee?.title,subtitle:ee?.subtitle,buttonText:y?.guestView?.buttonText,referralLinkValue:y?.signedInView?.referralLinkValue??o?.referralLink},ne={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},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,guestVisibility:x?.guestVisibility??!0,showIcons:x?.showIcons??!0,ctaBg:x?.ctaBg??"#4E7E80",ctaFontColor:x?.ctaFontColor??"#FFFFFF",items:x?.items},oe={visibility:b?.visibility??"show",backgroundColor:b?.backgroundColor??"#FFFFFF",fontColor:b?.fontColor??"#111111",badgeTitle:b?.badge?.enabled?b.badge.title?.trim():void 0,imageUrl:b?.imageUrl,imagePosition:b?.imagePosition??"left",title:b?.title,description:b?.description,disclaimerText:b?.disclaimerText,buttonText:b?.buttonText,bottomCtaTitle:b?.bottomCtaTitle,bottomCtaSubtitle:b?.bottomCtaSubtitle},ae={visibility:w?.visibility??"show",backgroundColor:w?.backgroundColor??"#FFFFFF",fontColor:w?.fontColor??"#111111",badgeTitle:w?.badge?.enabled?w.badge.title?.trim():void 0,title:w?.title,subtitle:w?.subtitle,balanceLabel:w?.balanceLabel??"points available",balanceValue:w?.balanceValue??o?.balanceCoins??(null!=o?.currentBalance?String(o.currentBalance):void 0),balanceCtaText:w?.balanceCtaText??"earn more",currencyCode:w?.currencyCode??o?.currencyCode,activeCoupon:w?.activeCoupon?.trim(),activeCouponLabel:w?.activeCouponLabel??"You have an active coupon",freebies:w?.freebies,items:w?.items},ie={visibility:E?.visibility??"show",imageUrl:E?.imageUrl},le={visibility:k?.visibility??"show",htmlText:k?.htmlText},se={visibility:h?.visibility??"show",backgroundColor:h?.backgroundColor??"#FFFFFF",fontColor:h?.fontColor??"#111111",badgeTitle:h?.badge?.enabled?h.badge.title?.trim():void 0,title:h?.title,subtitle:h?.subtitle,benefitHeaderLabel:h?.benefitHeaderLabel,tiers:h?.tiers,rows:h?.rows,signedInView:{benefitHeaderLabel:h?.signedInView?.benefitHeaderLabel??h?.benefitHeaderLabel,statusLabel:h?.signedInView?.statusLabel,statuses:h?.signedInView?.statuses}},ce=async e=>{const t=e.code;t&&(e.onCopy?await e.onCopy(t):"undefined"!=typeof navigator&&navigator.clipboard&&await navigator.clipboard.writeText(t))},de=Array.isArray(u)?u:[],pe=Array.from(new Set(de.filter(e=>Ny.includes(e)))),me=[...pe,...Ny.filter(e=>!pe.includes(e))],ue=e=>me.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"}},M&&O?.trim()&&e.createElement("style",{"data-yt-custom-css":"loyalty-page",dangerouslySetInnerHTML:{__html:O}}),"show"===Q.visibility&&e.createElement("div",{className:"yt-loyalty-page-banner","data-signed-in":n?"true":void 0,"data-current-tier":n&&Q.currentTier?Q.currentTier:void 0,style:{order:ue("banner"),display:"flex",alignItems:"center",justifyContent:"left"===Q.alignment?"flex-start":"right"===Q.alignment?"flex-end":"center",width:"100%",backgroundColor:Q.backgroundColor,backgroundImage:Q.imageUrl?`url(${Q.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",border:"1px solid #E1E1E1",padding:W?"72px 20px":"120px 32px"}},e.createElement("div",{className:"yt-loyalty-page-banner-content",style:{width:"100%",maxWidth:"760px",textAlign:Q.alignment,display:"flex",flexDirection:"column",alignItems:"left"===Q.alignment?"flex-start":"right"===Q.alignment?"flex-end":"center",gap:W?"18px":"20px"}},Q.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}},Q.badgeTitle):null,e.createElement("h1",{className:"yt-loyalty-page-banner-title",style:{margin:0,fontSize:W?"40px":"56px",lineHeight:W?1.05:1.08,letterSpacing:"-0.03em",fontWeight:700,color:Q.fontColor}},Q.title),e.createElement("p",{className:"yt-loyalty-page-banner-subtitle",style:{margin:0,maxWidth:"620px",fontSize:W?"22px":"28px",lineHeight:1.18,fontWeight:400,color:Q.fontColor}},Q.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:W?"8px":"10px",minWidth:W?"280px":"288px",padding:W?"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:Q.fontColor}},"Current Balance"),e.createElement("div",{style:{fontSize:W?"56px":"64px",lineHeight:.95,letterSpacing:"-0.05em",fontWeight:700,color:Q.fontColor}},Q.balanceCoins),Q.showTierProgress&&Q.currentTier?e.createElement("div",{className:"yt-loyalty-page-banner-tier","data-tier":Q.currentTier,style:{display:"inline-flex",alignItems:"center",gap:"8px",marginTop:"12px",color:Q.fontColor,fontFamily:"Inter",fontSize:W?"16px":"18px",fontWeight:700,lineHeight:1.1,letterSpacing:"0.08em",textTransform:"uppercase"}},Q.tierIcon?e.createElement("img",{src:Q.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:A,stroke:A,strokeWidth:"1.2",strokeLinejoin:"round"}),e.createElement("path",{d:"M12 2L20 7L12 12L4 7L12 2Z",fill:"rgba(255,255,255,0.3)",strokeLinejoin:"round"})),Q.currentTier):null),G?e.createElement("div",{className:"yt-loyalty-page-banner-progress",style:{marginTop:"10px",width:"100%",maxWidth:"640px",padding:W?"14px 18px":"16px 24px",borderRadius:"16px",backgroundColor:"#FFFFFF",boxShadow:"0 8px 22px rgba(17, 17, 17, 0.06)",boxSizing:"border-box"}},Q.memberSince||Q.currentTier?e.createElement("div",{className:"yt-loyalty-page-banner-progress-heading",style:{marginBottom:"12px",fontSize:W?"16px":"18px",lineHeight:1.2,fontWeight:600,color:Q.fontColor}},Q.currentTier?`${Q.currentTier}${Q.memberSince?` since ${Q.memberSince}`:""}`:"Member"):null,e.createElement("div",{className:"yt-loyalty-page-banner-progress-bar",style:{position:"relative",width:"100%",height:W?"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:`${X}%`,height:"100%",backgroundColor:A||Q.fontColor||"#1C1C1D",borderRadius:"999px",transition:"width 0.3s ease"}})),e.createElement("div",{className:"yt-loyalty-page-banner-progress-icon",style:{position:"absolute",left:`calc(${X}% - ${(W?32:40)*X/100}px)`,top:"50%",transform:"translateY(-50%)",width:W?"32px":"40px",height:W?"32px":"40px",display:"flex",alignItems:"center",justifyContent:"center",transition:"left 0.3s ease"}},Q.tierIcon?e.createElement("img",{src:Q.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:A,stroke:A,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:W?"13px":"14px",lineHeight:1.2,fontWeight:500,color:Q.fontColor}},e.createElement("span",null,0===Y?"member":J.currentLabel),Q.nextTier?e.createElement("span",null,J.remainingLabel," to"," ",Q.nextTier):null)):null):e.createElement("button",{className:"yt-loyalty-page-banner-button",style:{...q,marginTop:W?"8px":"10px",padding:W?"14px 26px":"16px 30px",border:"none",borderRadius:"14px",boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)",fontSize:W?"16px":"18px",fontWeight:500,textTransform:"none"},onClick:async()=>{a?await a():H()}},Q.buttonText))),"show"===te.visibility&&(n||te.guestVisibility)&&e.createElement("div",{className:"yt-loyalty-page-referrals",style:{order:ue("referrals"),width:"100%",backgroundColor:te.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:W?"column":"row",alignItems:"stretch",overflow:"hidden",border:"1px solid #E1E1E1"}},e.createElement("div",{className:"yt-loyalty-page-referrals-image-wrapper",style:{flex:W?"1 1 auto":"0 0 50%",minWidth:0,boxSizing:"border-box",order:W||"left"===te.imagePosition?0:1,minHeight:W?"320px":"560px"}},e.createElement("div",{className:"yt-loyalty-page-referrals-image",style:{display:"block",width:"100%",height:"100%",minHeight:W?"320px":"560px",backgroundImage:te.imageUrl?`url(${te.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat"}})),e.createElement("div",{className:"yt-loyalty-page-referrals-copy",style:{flex:W?"1 1 auto":"0 0 50%",minWidth:0,boxSizing:"border-box",order:W||"left"===te.imagePosition?1:0,padding:W?"32px 24px 40px":"72px 48px",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"}},te.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}},te.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-referrals-title",style:{margin:0,maxWidth:"520px",fontSize:W?"28px":n?"34px":"36px",lineHeight:1.1,letterSpacing:"-0.03em",fontWeight:400,color:te.fontColor}},te.title),e.createElement("p",{className:"yt-loyalty-page-referrals-subtitle",style:{margin:"18px 0 0",maxWidth:"580px",fontSize:W?"16px":"18px",lineHeight:1.24,fontWeight:400,color:te.fontColor}},te.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:te.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:te.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:te.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:te.fontColor}},te.referralLinkValue)),e.createElement("button",{type:"button",onClick:async()=>{l&&te.referralLinkValue?await l(te.referralLinkValue):"undefined"!=typeof navigator&&navigator.clipboard&&te.referralLinkValue&&await navigator.clipboard.writeText(te.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:{...q,marginTop:"34px",padding:W?"14px 26px":"16px 30px",border:"none",borderRadius:"14px",boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)",fontSize:W?"16px":"18px",fontWeight:500,textTransform:"none"},onClick:async()=>{i?await i():H()}},te.buttonText))))),"show"===ne.visibility&&e.createElement("div",{className:"yt-loyalty-page-getting-started",style:{order:ue("gettingStarted"),backgroundColor:ne.backgroundColor,border:"1px solid #E1E1E1",padding:W?"56px 20px":"72px 32px 88px"}},e.createElement("div",{className:"yt-loyalty-page-getting-started-content",style:{maxWidth:"1120px",margin:"0 auto",textAlign:"center"}},ne.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}},ne.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-getting-started-title",style:{margin:0,fontSize:W?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:ne.fontColor}},ne.title),e.createElement("p",{className:"yt-loyalty-page-getting-started-subtitle",style:{margin:W?"14px auto 0":"16px auto 0",maxWidth:"620px",color:ne.fontColor,fontSize:W?"16px":"18px",lineHeight:1.22,fontWeight:400}},ne.subtitle),e.createElement("div",{className:"yt-loyalty-page-getting-started-grid",style:{marginTop:W?"40px":"64px",display:"flex",flexDirection:W?"column":"row",justifyContent:"space-between",alignItems:"stretch",gap:W?"28px":"24px"}},ne.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:W?"0":"0 18px"}},e.createElement("div",{className:"yt-loyalty-page-getting-started-step-number",style:{marginBottom:"10px",fontSize:W?"52px":"68px",lineHeight:.95,letterSpacing:"-0.04em",fontWeight:700,color:ne.fontColor}},String(n+1)),e.createElement("div",{className:"yt-loyalty-page-getting-started-step-title",style:{marginBottom:"8px",fontSize:W?"24px":"28px",lineHeight:1.08,letterSpacing:"-0.03em",fontWeight:400,color:ne.fontColor}},t.title),e.createElement("p",{className:"yt-loyalty-page-getting-started-step-description",style:{margin:0,maxWidth:"240px",fontSize:W?"16px":"18px",lineHeight:1.21,fontWeight:400,color:ne.fontColor}},t.description)))))),"show"===re.visibility&&(n||re.guestVisibility)&&e.createElement("div",{className:"yt-loyalty-page-ways-to-earn",style:{order:ue("waysToEarn"),backgroundColor:re.backgroundColor,border:"1px solid #E1E1E1",padding:W?"56px 20px":"72px 32px 64px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-content",style:{maxWidth:"1120px",margin:"0 auto",textAlign:"center"}},re.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}},re.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-ways-to-earn-title",style:{margin:0,fontSize:W?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:re.fontColor}},re.title),e.createElement("p",{className:"yt-loyalty-page-ways-to-earn-subtitle",style:{margin:W?"14px auto 0":"16px auto 0",maxWidth:"680px",color:re.fontColor,fontSize:W?"16px":"18px",lineHeight:1.22,fontWeight:400}},re.subtitle),e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-grid",style:{marginTop:W?"40px":"56px",display:"flex",flexWrap:"wrap",justifyContent:"center",columnGap:W?"28px":"24px",rowGap:"36px"}},re.items?.map((t,n)=>{const r=t.ctaTitle??t.signedInActionLabel,o=t.ctaVisible??Boolean(r),a=t.ctaDisabled??!1,i=re.ctaBg,l=re.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:W?"100%":"calc((100% - 48px) / 3)",maxWidth:W?"100%":"calc((100% - 48px) / 3)",padding:W?"0":"0 18px"}},re.showIcons?e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-item-icon",style:{fontSize:"32px",lineHeight:1,color:re?.fontColor??"#5A5A5A",marginBottom:"5px"}},(t=>{if(t&&"string"!=typeof t)return t;switch(t){case"birthday":return e.createElement(T,null);case"feedback":return e.createElement(P,null);case"wallet":return e.createElement(I,null);case"referral":return e.createElement(z,null);case"instagram":return e.createElement($,null);case"facebook":return e.createElement(B,null);case"twitter":return e.createElement(F,null);case"youtube":return e.createElement(S,null);default:return e.createElement(N,null)}})(t.icon)):null,e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-item-title",style:{marginBottom:"4px",fontSize:W?"24px":"28px",lineHeight:1.16,letterSpacing:"-0.03em",fontWeight:400,color:re.fontColor,minHeight:W?"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:W?"16px":"18px",lineHeight:1.21,fontWeight:400,color:re.fontColor,minHeight:W?"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:W?"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"===ie.visibility&&ie.imageUrl?e.createElement("div",{className:"yt-loyalty-page-custom-image",style:{order:ue("customImage"),backgroundColor:"#FFFFFF",border:"1px solid #E1E1E1"}},e.createElement("div",{style:{margin:"0 auto"}},e.createElement("img",{src:ie.imageUrl,alt:"",style:{display:"block",width:"100%",height:"auto",objectFit:"cover"}}))):null,"show"===le.visibility&&le.htmlText?e.createElement("div",{className:"yt-loyalty-page-custom-html",style:{order:ue("customHtml"),backgroundColor:"#FFFFFF",border:"1px solid #E1E1E1",padding:W?"32px 20px":"40px 32px",color:"#111111"}},e.createElement("div",{style:{maxWidth:"1200px",margin:"0 auto"},dangerouslySetInnerHTML:{__html:le.htmlText}})):null,"show"===se.visibility&&e.createElement("div",{className:"yt-loyalty-page-vip-tiers",style:{order:ue("vipTiers"),backgroundColor:se.backgroundColor,border:"1px solid #E1E1E1",padding:W?"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:W?"32px":"40px"}},se.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:se.fontColor,fontSize:"14px",lineHeight:1,fontWeight:600}},se.badgeTitle):null,e.createElement("h2",{style:{margin:0,fontSize:W?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:se.fontColor}},se.title),e.createElement("p",{style:{margin:"16px auto 0",maxWidth:"760px",fontSize:W?"16px":"18px",lineHeight:1.22,fontWeight:400,color:se.fontColor}},se.subtitle)),e.createElement("div",{style:{overflowX:"auto",border:"1px solid #D7D7D7",backgroundColor:"#FFFFFF"}},e.createElement("table",{style:{width:"100%",minWidth:W?"760px":"100%",borderCollapse:"collapse",tableLayout:"fixed"}},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{style:{width:W?"240px":"28%",padding:"16px 14px",borderBottom:"1px solid #D7D7D7",textAlign:"left",color:se.fontColor,fontFamily:"Inter",fontSize:"15.654px",fontStyle:"normal",fontWeight:"700",lineHeight:"17.313px",letterSpacing:"0.693px",textTransform:"uppercase",backgroundColor:"#FFFFFF"}},se.benefitHeaderLabel),se.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:se.fontColor,textTransform:"uppercase",backgroundColor:"#FFFFFF"}},se.signedInView.statusLabel),se.tiers?.map(t=>{const n=se.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:se.fontColor,fontSize:"12px",lineHeight:1.2,fontWeight:r?700:500,textTransform:"uppercase",letterSpacing:"0.04em"}},n?.text??"")})):null),e.createElement("tbody",null,se.rows?.map((t,n)=>e.createElement("tr",{key:`${t.title}-${n}`},e.createElement("td",{style:{padding:"14px 14px",borderBottom:n===(se.rows?.length??0)-1?"none":"1px solid #D7D7D7",verticalAlign:"middle"}},e.createElement("div",{style:{color:se.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:se.fontColor,fontFamily:"Inter",fontSize:"12.552px",fontStyle:"normal",fontWeight:300,lineHeight:"22.161px",letterSpacing:"0.693px"}},t.description):null),se.tiers?.map(r=>e.createElement("td",{key:`${t.title}-${r.id}`,style:{padding:"14px 10px",borderBottom:n===(se.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"===oe.visibility&&!n&&e.createElement("div",{className:"yt-loyalty-page-rewards",style:{order:ue("rewards"),backgroundColor:oe.backgroundColor,border:"1px solid #E1E1E1",padding:W?"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:W?"column":"row",alignItems:"stretch",overflow:"hidden",border:"1px solid #E1E1E1"}},e.createElement("div",{className:"yt-loyalty-page-rewards-image-wrapper",style:{flex:1,order:W||"left"===oe.imagePosition?0:1,minHeight:W?"280px":"340px"}},e.createElement("div",{className:"yt-loyalty-page-rewards-image",style:{display:"block",width:"100%",height:"100%",minHeight:W?"280px":"340px",backgroundImage:oe.imageUrl?`url(${oe.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center"}})),e.createElement("div",{className:"yt-loyalty-page-rewards-copy",style:{flex:1,order:W||"left"===oe.imagePosition?1:0,padding:W?"28px 24px":"32px 40px",display:"flex",flexDirection:"column",justifyContent:"start"}},oe.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:W?"center":"flex-start"}},oe.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-rewards-title",style:{margin:0,maxWidth:"420px",fontSize:W?"20px":"25px",lineHeight:1.06,letterSpacing:"-0.03em",fontWeight:700,color:oe?.fontColor??"#111111"}},oe.title),e.createElement("p",{className:"yt-loyalty-page-rewards-description",style:{margin:"20px 0 0",maxWidth:"470px",fontSize:W?"12px":"14px",lineHeight:1.35,fontWeight:400,color:oe.fontColor,whiteSpace:"pre-line"}},oe.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"}},oe.disclaimerText),e.createElement("div",{className:"yt-loyalty-page-rewards-cta",style:{display:"flex",flexDirection:W?"column":"row",justifyContent:"space-between",alignItems:"center",marginTop:"20px",padding:W?"24px":"26px 28px",border:"1px solid #D4D4D4",gap:"18px",textAlign:W?"center":"left"}},e.createElement("div",{className:"yt-loyalty-page-rewards-cta-copy"},e.createElement("h3",{style:{margin:0,fontSize:W?"28px":"32px",lineHeight:1.05,fontWeight:700,letterSpacing:"-0.03em",color:oe.fontColor}},oe.bottomCtaTitle),e.createElement("p",{style:{margin:"8px 0 0",fontSize:"18px",lineHeight:1.25,fontWeight:400,color:oe.fontColor}},oe.bottomCtaSubtitle)),e.createElement("button",{className:"yt-loyalty-page-rewards-cta-button",style:{...q,minWidth:W?"100%":"220px",padding:"14px 28px",borderRadius:"0px",border:"none",boxShadow:"none",fontSize:"18px",fontWeight:700},onClick:async()=>{s?await s():H()}},oe.buttonText)))),"show"===ae.visibility&&e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem",style:{order:ue("waysToRedeem"),backgroundColor:ae.backgroundColor,border:"1px solid #E1E1E1",padding:W?"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:W?"column":"row",justifyContent:"space-between",alignItems:W?"stretch":"flex-start",gap:W?"24px":"32px",marginBottom:W?"32px":"44px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-heading"},ae.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}},ae.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-ways-to-redeem-title",style:{margin:0,fontSize:W?"34px":"44px",lineHeight:1.05,letterSpacing:"-0.03em",fontWeight:700,color:ae.fontColor}},ae.title),ae.subtitle?e.createElement("p",{className:"yt-loyalty-page-ways-to-redeem-subtitle",style:{margin:"12px 0 0",fontSize:W?"16px":"18px",lineHeight:1.24,fontWeight:400,color:"#6B6B6B"}},ae.subtitle):null),null!=ae.balanceValue&&""!==ae.balanceValue?e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-balance",style:{flexShrink:0,minWidth:W?"auto":"240px",padding:W?"18px 22px":"20px 26px",borderRadius:"12px",backgroundColor:"#111111",color:"#FFFFFF",display:"flex",flexDirection:"column",alignItems:"flex-start"}},e.createElement("div",{style:{fontSize:W?"32px":"36px",lineHeight:1,letterSpacing:"-0.03em",fontWeight:700}},"number"==typeof ae.balanceValue?ae.balanceValue.toLocaleString():ae.balanceValue),e.createElement("div",{style:{marginTop:"8px",fontSize:"13px",lineHeight:1.2,fontWeight:400,color:"rgba(255,255,255,0.8)"}},ae.balanceLabel,ae.balanceCtaText?e.createElement(e.Fragment,null," · ",e.createElement("span",{role:"button",tabIndex:0,onClick:async()=>{d?await d():H()},style:{color:"#FFFFFF",fontWeight:500,textDecoration:"underline",cursor:"pointer"}},ae.balanceCtaText)):null)):null),ae.activeCoupon?e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-active",style:{display:"flex",flexDirection:W?"column":"row",alignItems:W?"flex-start":"center",gap:W?"10px":"16px",marginBottom:W?"20px":"24px",padding:W?"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:W?"15px":"16px",lineHeight:1.2,fontWeight:700,color:"#111111"}},ae.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"}},ae.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))})(ae.activeCoupon),style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",height:"30px",padding:"0 14px",border:"none",borderRadius:"999px",backgroundColor:A,color:_,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:W?"1fr":"repeat(3, 1fr)",gap:W?"16px":"20px"}},ae.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,u="ltv"===t.rewardTierCriteria&&"purchase_value"===t.purchaseValueMethod,g=null==t.rewardTierCriteria?t.unit??"":u?"":"loyalty_points"===t.rewardTierCriteria?"points":"orders",y=u?Sy(ae.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:W?"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(T,null)),e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-freebie-body",style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",padding:W?"16px 18px":"18px 20px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-freebie-title",style:{fontSize:W?"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",{style:{display:"flex",alignItems:"stretch",gap:"10px"}},e.createElement("div",{role:"button",tabIndex:0,onClick:()=>ce(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||ce(t)},style:{flex:1,minWidth:0,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")),(()=>{const r=V===n,o=!!t.inCart,a=o?"Added to cart":"Add to cart";return e.createElement("button",{type:"button",className:"yt-loyalty-page-ways-to-redeem-freebie-add-to-cart",onClick:()=>(async(e,t)=>{if(null===V){j(t);try{if(e.onAddToCart)return void await e.onAddToCart();if(m)return void await m(e);H()}finally{j(null)}}})(t,n),disabled:r||o,title:a,"aria-label":a,style:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",width:"42px",borderRadius:"8px",border:"none",backgroundColor:o?"#2F9E44":A,color:o?"#FFFFFF":_,fontSize:"18px",cursor:r||o?"default":"pointer"}},r?e.createElement(ig,{size:16,color:_,centered:!0}):o?e.createElement(v,{size:18}):e.createElement(C,{size:18}))})()):c?e.createElement(e.Fragment,null,e.createElement("div",{style:{marginBottom:"8px",fontSize:"12px",fontWeight:500,color:"#8A8A8A"}},y,By(i)," of ",y,By(a),g?` ${g}`:""),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:A}}))):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():H()})(t),style:{minWidth:"84px",padding:"9px 18px",borderRadius:"8px",border:"none",backgroundColor:d?"#EDEDED":A,color:d?"#9A9A9A":_,fontSize:"14px",lineHeight:1,fontWeight:600,cursor:d?"not-allowed":"pointer"}},t.ctaTitle??"Claim")))))}),ae.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 · ${Fy(t.minimumOrderValue,ae.currencyCode)}`:Fy(t.minimumOrderValue,ae.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:W?"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(D,null)),e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-item-body",style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",padding:W?"16px 18px":"18px 20px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-redeem-item-title",style:{fontSize:W?"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:W?"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):H()})(t),style:{minWidth:"84px",padding:"9px 18px",borderRadius:"8px",border:"none",backgroundColor:o?"#EDEDED":A,color:o?"#9A9A9A":_,fontSize:"14px",lineHeight:1,fontWeight:600,cursor:o?"not-allowed":"pointer",transition:"opacity 0.2s ease"}},r))));var l})))))},zy=({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"}},_y(r)?e.createElement(w,null):e.createElement(lt,null)),e.createElement("div",{style:{fontSize:"clamp(16px, 4vw, 20px)",fontWeight:500,color:"#4C4C4C",lineHeight:"normal",textAlign:"center"}},Ay(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(A,null):e.createElement(_,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 W(p,document.body)},Iy=({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"}},_y(r)?e.createElement(w,null):e.createElement(lt,null)),e.createElement("div",{style:{fontSize:"14px",fontWeight:500,color:"#888",textAlign:"center"}},Ay(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(A,null):e.createElement(_,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 W(p,document.body)},Py=({offersToShow:r,offersConfig:a,getOfferCardMessage:i,setSelectedOffer:l,setShowPopup:s})=>{const c=o(null),[d,p]=t(!1),[m,u]=t(!0),[g,y]=t("undefined"!=typeof window&&window.innerWidth<=768),f=()=>{if(c.current){const{scrollLeft:e,scrollWidth:t,clientWidth:n}=c.current;p(e>0),u(e<t-n-10)}};n(()=>{f();const e=c.current;if(e)return e.addEventListener("scroll",f),()=>e.removeEventListener("scroll",f)},[r]),n(()=>{const e=()=>{y(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(L,{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(R,{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"}},_y(t)?e.createElement(w,null):e.createElement(lt,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"}},Ay(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 "))},Dy=({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"}},_y(t)?e.createElement(w,null):e.createElement(lt,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"))))))},Ay=e=>"free_product"===e.couponType?"deal_amount"===e.freebieType?"Deal":"percentage_off"===e.freebieType?"% Off":"Free Gift":e._customOffer?.code?"Coupon":"Special Deal",_y=e=>"free_product"===e.couponType&&"deal_amount"!==e.freebieType&&"percentage_off"!==e.freebieType,Ly=({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,y]=t("undefined"!=typeof window&&window.innerWidth<=450),f=o(null);n(()=>{const e=()=>{u(window.innerWidth<=768),y(window.innerWidth<=450)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),n(()=>{f.current&&Qn(f.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:f,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(Dy,{offersToShow:x,offersConfig:r||{},getOfferCardMessage:b,setSelectedOffer:h,setShowPopup:l}):"coupon"===t?e.createElement(Py,{offersToShow:x,offersConfig:r||{},getOfferCardMessage:b,setSelectedOffer:h,setShowPopup:l}):null})(),g?e.createElement(Iy,{selectedOffer:s,selectedOfferTerms:d,showPopup:i,offersConfig:r,onClose:()=>{l(!1),c(null),p(null)}}):e.createElement(zy,{selectedOffer:s,selectedOfferTerms:d,showPopup:i,offersConfig:r,onClose:()=>{l(!1),c(null),p(null)}}))))};export{pu as Bundle,rg as BundleLoader,yd as BundleLoaderModal,ng as Cart,Ed as CartATCLoader,cy as LoyaltyLauncher,$y as LoyaltyPageBlock,vy as LoyaltyProductCatalog,ry as LoyaltyScreen,hy as LoyaltyWidget,dn as Nudge,Ty as PointEarnBadge,Ly as ProductOffers,xy as RewardsModal,xn as SpinnerWheel};
|