yt-uikit 0.10.19 → 0.10.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -5304,4 +5304,4 @@ import e,{useState as t,useEffect as n,useMemo as r,useRef as o,useCallback as a
5304
5304
  &:hover {
5305
5305
  border-color: ${({$themeColor:e})=>e||"#000"};
5306
5306
  }
5307
- `,uu=l(({removeCartItem:a,addCartItem:i,getProductDetailsByVariantId:l,themeColor:c,cartComponentsCornerRadius:s,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:m,freebieClaimAddToCart:u,stealDealAddToCart:g,productClaimCtaButtonText:f,backgroundSubdued:y,primaryTextColor:x},h)=>{const[b,w]=ce(sn),v=se(tn),C=o(null),[E,k]=t(null),[T,S]=t(!1),[N,B]=t({}),[F,z]=t(b?.variantId),[$]=t(b?.quantity||1),[I,P]=t(!1),D=go();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){z(String(t.id));const n={};e.options.forEach((e,r)=>{n[e.name]=t[`option${r+1}`]}),B(n)}else z(void 0),B({})}k(e)}})()},[E,l,b]);const A=(e,t)=>{const n={...N,[e]:t};B(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&&z(String(r.id))}},_=E?.variants?.find(e=>String(e.id)===String(F)),L=mn(v,v?.currency),R=r(()=>{const e={};if(!E)return e;const t=Array.isArray(b?.allowedVariantIds)&&b.allowedVariantIds.length>0;return E.options.forEach(n=>{e[n.name]=n.values.filter(e=>E.variants.filter(r=>{const o=E.options.indexOf(n);if(r[`option${o+1}`]!==e)return!1;return!!E.options.every((e,t)=>{if(e.name===n.name)return!0;const o=N[e.name];return!o||r[`option${t+1}`]===o})&&(!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(r.id)))&&!!r.available)}).some(e=>!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(e.id)))&&e.available))}),e},[E,N,b]);return E?e.createElement(e.Fragment,null,e.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:2147483643,display:b?.open?"flex":"none",justifyContent:"center",alignItems:"center",opacity:I?1:0,transition:"opacity 0.3s ease"},onClick:()=>{P(!1),setTimeout(()=>{w({open:!1,variantId:void 0,handle:void 0,quantity:void 0})},300)}}),e.createElement(qm,{ref:h,className:"yt-variant-selection-popup"},e.createElement(Qm,{ref:C,style:{backgroundColor:p||"white",opacity:I?1:0,transform:I?"translateY(0)":"translateY(20px)"},$themeColor:c,onClick:e=>e.stopPropagation()},b?.freebieSelection&&e.createElement(Um,null,b?.stealDealSelection?"Unlocked Steal Deal":"Unlocked Freebie"),e.createElement(Gm,null,e.createElement(Ym,null,e.createElement(Xm,null,e.createElement(Km,{src:_?.featured_image?.src??E?.featured_image,alt:_?.featured_image?.alt??E?.title})),e.createElement(Jm,null,e.createElement(eu,{$themeColor:c,$primaryTextColor:x,href:`${E?.url}?variant=${_?.id}`},E?.title),e.createElement(du,null,e.createElement(tu,null,e.createElement(nu,{$primaryTextColor:x},L,dn(_?.price,v?.currency??"INR")),null!=_?.compare_at_price&&null!=_?.price&&_.compare_at_price>_.price&&e.createElement(ru,null,L,dn(_?.compare_at_price,v?.currency??"INR")))))),E?.options?.map(t=>{const n=D?.options?.find(e=>e.name.trim().toLowerCase()===t.name.trim().toLowerCase()),r=N[t.name],o=uo(n,r);return e.createElement(au,{key:t.name},e.createElement(lu,null,e.createElement("span",null,"Select ",t.name),r&&e.createElement(cu,null,o)),e.createElement(su,null,R[t.name]?.map(r=>{const o=N[t.name]===r,a=mo(n,r),i=n?.type?.toLowerCase(),l=uo(n,r);return"color"===i&&a?.value?e.createElement(pu,{key:r,$isSelected:o,$themeColor:c,onClick:()=>A(t.name,r),$colorValue:a.value}):"image"===i&&a?.value?e.createElement(mu,{key:r,$isSelected:o,$themeColor:c,onClick:()=>A(t.name,r),$imageUrl:a.value}):e.createElement(iu,{$themeColor:c,key:r,$isSelected:o,backgroundColor:o?c:void 0,onClick:()=>A(t.name,r)},l)})))})),e.createElement(ou,{className:"yt-cart-variant-popup-ATC-button",$themeColor:c??"#C33",onClick:b?.productRec?async()=>{if(F&&i){S(!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)}S(!1)}}:async()=>{if(!F)return;const e=!!b?.lineItemKey,t=String(F)!==String(b?.variantId);if(!e||t){S(!0);try{const e=b?.freebieSelection;e&&!b?.lineItemKey||(e&&m&&b?.lineItemKey?await m(b.lineItemKey):await a(b?.lineItemKey||b?.variantId,"variant-selector",!0)),e&&b?.stealDealSelection&&g?await g(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){}S(!1)}else w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!F||T},T?e.createElement(fe,{color:"white",size:13}):b?.productRec?"ADD TO BAG":b?.stealDealSelection?"CLAIM DEAL":b?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):e.createElement(qm,{ref:h},e.createElement(Qm,{style:{backgroundColor:p||"white"}},e.createElement(Zm,null,e.createElement(ye,{color:c||"#868E96"}))))});uu.displayName="DesktopVariantPopup";const gu=l(({removeCartItem:a,addCartItem:i,getProductDetailsByVariantId:l,themeColor:c,cartComponentsCornerRadius:s,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:m,freebieClaimAddToCart:u,stealDealAddToCart:g,productClaimCtaButtonText:f,backgroundSubdued:y,primaryTextColor:x},h)=>{const[b,w]=ce(sn),v=se(tn),[C,E]=t(null),[k,T]=t(!1),[S,N]=t({}),[B,F]=t(b?.variantId),[z]=t(b?.quantity||1),$=o(null),I=go(),[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){F(String(t.id));const n={};e.options.forEach((e,r)=>{n[e.name]=t[`option${r+1}`]}),N(n)}else F(void 0),N({})}E(e)}catch(e){}})()},[C,l,b]),n(()=>{},[p,a,i,l]);const A=(e,t)=>{const n={...S,[e]:t};N(n);const r=C?.variants?.find(e=>C.options.every((t,r)=>e[`option${r+1}`]===n[t.name]));if(r){const e=b?.allowedVariantIds;if(Array.isArray(e)&&e.length>0&&!e.includes(String(r.id)))return;r.available&&F(String(r.id))}},_=C?.variants?.find(e=>String(e.id)===String(B)),L=mn(v,v?.currency),R=r(()=>{const e={};if(!C)return e;const t=Array.isArray(b?.allowedVariantIds)&&b.allowedVariantIds.length>0;return C.options.forEach(n=>{e[n.name]=n.values.filter(e=>C.variants.filter(r=>{const o=C.options.indexOf(n);if(r[`option${o+1}`]!==e)return!1;return!!C.options.every((e,t)=>{if(e.name===n.name)return!0;const o=S[e.name];return!o||r[`option${t+1}`]===o})&&(!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(r.id)))&&!!r.available)}).some(e=>!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(e.id)))&&e.available))}),e},[C,S,b]);return C?e.createElement(e.Fragment,null,e.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:2147483643,display:b?.open?"flex":"none",justifyContent:"center",alignItems:"center",opacity:P?1:0,transition:"opacity 0.3s ease"},onClick:()=>{D(!1),setTimeout(()=>{w({open:!1,variantId:void 0,handle:void 0,quantity:void 0})},300)}}),e.createElement(qm,{ref:h,className:"yt-variant-selection-popup"},e.createElement(Qm,{ref:$,style:{backgroundColor:p||"white",opacity:P?1:0,transform:P?"translateY(0)":"translateY(20px)"},$themeColor:c,onClick:e=>e.stopPropagation()},b?.freebieSelection&&e.createElement(Um,null,b?.stealDealSelection?"Unlocked Steal Deal":"Unlocked Freebie"),e.createElement(Gm,null,e.createElement(Ym,null,e.createElement(Xm,null,e.createElement(Km,{src:_?.featured_image?.src??C?.featured_image,alt:_?.featured_image?.alt??C?.title})),e.createElement(Jm,null,e.createElement(eu,{$themeColor:c,$primaryTextColor:x,href:`${C?.url}?variant=${_?.id}`},C?.title),e.createElement(du,null,e.createElement(tu,null,e.createElement(nu,{$primaryTextColor:x},L,dn(_?.price,v?.currency??"INR")),null!=_?.compare_at_price&&null!=_?.price&&_.compare_at_price>_.price&&e.createElement(ru,null,L,dn(_?.compare_at_price,v?.currency??"INR")))))),C?.options?.map(t=>{const n=I?.options?.find(e=>e.name.trim().toLowerCase()===t.name.trim().toLowerCase()),r=S[t.name],o=uo(n,r);return e.createElement(au,{key:t.name},e.createElement(lu,null,e.createElement("span",null,"Select ",t.name,":"),r&&e.createElement(cu,null,o)),e.createElement(su,null,R[t.name]?.map(r=>{const o=S[t.name]===r,a=mo(n,r),i=n?.type?.toLowerCase(),l=uo(n,r);return"color"===i&&a?.value?e.createElement(pu,{key:r,$isSelected:o,$themeColor:c,onClick:()=>A(t.name,r),$colorValue:a.value}):"image"===i&&a?.value?e.createElement(mu,{key:r,$isSelected:o,$themeColor:c,onClick:()=>A(t.name,r),$imageUrl:a.value}):e.createElement(iu,{$themeColor:c,key:r,$isSelected:o,backgroundColor:o?c:void 0,onClick:()=>A(t.name,r)},l)})))})),e.createElement(ou,{className:"yt-cart-variant-popup-ATC-button",$themeColor:c??"#C33",onClick:b?.productRec?async()=>{if(B&&i){T(!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)}T(!1)}}:async()=>{if(!B)return;const e=!!b?.lineItemKey,t=String(B)!==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(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){}T(!1)}else w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!B||k},k?e.createElement(fe,{color:"white",size:13}):b?.productRec?"ADD TO BAG":b?.stealDealSelection?"CLAIM DEAL":b?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):e.createElement(qm,{ref:h},e.createElement(Qm,{style:{backgroundColor:p||"white"}},e.createElement(Zm,null,e.createElement(ye,{color:c||"#868E96"}))))});const fu=({setIsCartOpen:t,isCartOpen:n,cartCheckpoints:r,customCartProgressBarCriteria:o,floatingCartData:a,effectiveQuantityForProgressBar:i,cartComponentsCornerType:l,cartComponentsCornerRadius:c})=>{const s=se(tn),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=s?.item_count??0,g=dn(s?.items_subtotal_price??0,s?.currency??"INR"),f=mn(s),y=function(e,t,n,r,o){if(!e||0===e.length)return{deltaValue:0,show:!1};const a=(t??"minimum_order_value").toLowerCase(),i="quantity_threshold"===a?"number"==typeof o?o:r:n,l=[...e].sort((e,t)=>("quantity_threshold"===a?e.quantityThreshold:e.minimumOrderValue)-("quantity_threshold"===a?t.quantityThreshold:t.minimumOrderValue)).find(e=>("quantity_threshold"===a?e.quantityThreshold:e.minimumOrderValue)>i);if(!l)return{deltaValue:0,show:!1};const c="quantity_threshold"===a?l.quantityThreshold:l.minimumOrderValue,s=Math.max(0,c-i);return{deltaValue:s,show:s>0,isQuantity:"quantity_threshold"===a}}(r,o,g,u,i),x="sharp"===l?0:c??12,h=a?.textColor??"#111",w=a?.backgroundColor??"#FF7E6E",v=a?.bannerBackgroundColor??"#FFE0DC",C=a?.buttonColor??"#E8513F",E=e.useRef(null);e.useEffect(()=>{bn(E.current)},[C]);const k={position:"fixed",width:"100%",bottom:0,zIndex:2147483642,paddingBottom:"env(safe-area-inset-bottom)"},T={background:"#FFFFFF",color:"#111",padding:"5px",fontSize:12,fontFamily:"Poppins",fontWeight:600,textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center",gap:8},S={background:"#fff",color:h,borderRadius:x,boxShadow:"0 10px 24px rgba(0,0,0,0.15)",overflow:"hidden",fontFamily:"Poppins"},N={position:"absolute",top:0,left:"50%",transform:"translate(-50%, -70%)",backgroundColor:v,color:h,padding:8,fontSize:12,lineHeight:"normal",borderTopLeftRadius:13,borderTopRightRadius:13,width:"97%",display:"flex",alignItems:"center",justifyContent:"center",gap:6,zIndex:-1},B={display:"flex",alignItems:"center",gap:12,padding:"10px 12px",backgroundColor:w,cursor:"pointer"},F={display:"flex",alignItems:"center",gap:8,fontWeight:700,fontSize:16,color:h},z={fontSize:12,color:h,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},$={padding:"5px 10px",background:C,color:"#fff",borderRadius:8,fontSize:15,fontWeight:700,border:"none",outline:"none",flexShrink:0};if(!m)return null;if(0===u){if(!y.show)return null;const t=y.isQuantity?`${y.deltaValue} more items to get freebie`:`Add items worth ${f}${wn(y.deltaValue.toFixed(0))} to get freebie`;return e.createElement("div",{style:k},e.createElement("div",{className:"yt-cart-floating-ribbon",style:T},e.createElement(b,{"aria-hidden":!0}),e.createElement("span",null,t)))}const I=1===u?"1 item":`${u} items`,P=a?.lastTierUnlockedText||"Best tier unlocked",D=y.show?y.isQuantity?`${y.deltaValue} more items to get freebie`:`Add items worth ${f}${wn(y.deltaValue.toFixed(0))} more to get freebie`:P;return e.createElement("div",{style:{position:"fixed",left:12,right:12,bottom:12,zIndex:2147483642,paddingBottom:"env(safe-area-inset-bottom)"}},e.createElement("div",{style:{position:"relative"}},(y.show||r&&r.length>0)&&e.createElement("div",{className:"yt-cart-floating-banner",style:N},e.createElement(b,{"aria-hidden":!0,style:{marginBottom:7}}),e.createElement("span",{style:{display:"inline-block",marginBottom:7}},D)),e.createElement("div",{style:S},e.createElement("div",{className:"yt-cart-floating-body",style:B,onClick:()=>t(!0)},e.createElement(_,{width:24,height:24,color:h}),e.createElement("div",{style:{display:"flex",flexDirection:"column",minWidth:0,flex:1,lineHeight:"normal"}},e.createElement("div",{style:F},e.createElement("span",null,f,wn(g.toFixed(0))),e.createElement("span",{style:{fontSize:9,fontWeight:600,color:"#fff",backgroundColor:"#828282",marginBottom:5,paddingInline:5}},I)),p?e.createElement("span",{style:z,title:d},d):null),e.createElement("button",{ref:E,style:$,onClick:()=>t(!0),"aria-label":"View Cart"},"View Cart")))))},yu=({exploreCTAColor:r,checkoutFontSize:a,handleDecrement:l,handleIncrement:c,removeCartItem:s,addCartItem:d,cartTitle:p,emptyCartTitle:m,emptyCartDescription:u,emptyCartButtons:g,backgroundColor:f,backgroundSubdued:y,tertiaryColor:x,tertiaryTextColor:h,backdrop:b=!0,cartData:w,isUserSignedIn:v,showBundle:C,bundleProducts:E,discountAmountOff:k,loyaltyIcon:T,pointsToBeUsed:S,rewardMultiplier:N,redemptionMultiplier:B,removeDiscount:F,applyDiscount:z,discountApplied:$,checkoutFunction:I,joinNowFunction:P,guestLoyaltyPercentage:D,showToggleButton:A,isOpen:_,setIsOpen:L,isDev:R,switchWidthVariant:M,recProductsList:O,showMultiStepProgressBar:V,cartCheckpoints:W,redemptionRate:H,pointsRewardRate:j,showCartLevelAltPay:q,exploreCtaRedirectLink:U,discountAmountApplied:Q,minimumCartValue:Z,discountInCheckoutButton:G,isStickyCheckout:Y,handleCheckpointCrossed:X,customCartProgressBarCriteria:K,checkoutButtonColor:J,ctaButtonBackgroundColor:ee,ctaButtonTextColor:te,primaryTextColor:ne,productRecsCtaButtonText:re,productRecsTitleText:oe,secondaryTextColor:ae,showProductRecsOnDesktop:ie,showProductRecsOnMobile:le,themeColor:se,themeTextColor:pe,companyName:me,gstNumber:ue,showGSTOption:ge,applyGSTToCart:fe,showMOVForProgressTiers:ye,freeProduct:xe,showLoyaltyCta:he,freeProductAdjustedCartTotal:be,minimumOrderValueToAvailDiscount:we,signinCTAButtonVisible:ve,cartSigninCTAMainText:Ce,showNoteOption:Ee,applyNoteToCart:ke,note:Te,inlineCartOfferInfoText:Se,inlineCartOfferInfoRedirectLink:Ne,cartOfferTermsAndConditionsText:Be,showEditOptionOnProducts:Fe,getProductDetailsByVariantId:ze,onSetLoading:$e,showVariantSelectionDropdownInProductRecs:Ie,originalCartSubtotal:Pe,currentTier:De,freebieProductsInCart:Ae,showFreebieClaim:_e,addFreebieToCart:Le,freebiesInCart:Re,effectiveQuantityForProgressBar:Me,productPercentageOffMapping:Oe,removeFreebieFromCart:Ve,postalCodeList:We,enableGeoLocationDeliveryRestriction:He,applyPostalCodeAndDeliverySlotToCart:je,showDeleteOnFreebies:qe,freebieCouponTemplates:Ue,freebieFlowCheckpoints:Qe,freebieClaimData:Ze,showStickyAddToCart:Ge,stickyCartLineItem:Ye,postalCodeBasedItemTrackingParameter:Xe,enableSlotPicker:Ke,deliveryHeaderTitle:Je,deliveryAvailableText:et,deliveryNotAvailableText:tt,giftWrapSetupData:nt,giftWrapProductDetail:rt,enableCustomCartOnCartPage:ot,isCartPage:at,progressBarFreeProductIconType:it,addToStickyCart:lt,productRecsCardLayout:ct,productRecsCardListVariant:st,showCartTimer:dt,showFreebieMilestone:pt,showFloatingCart:mt,floatingCartData:ut,freebieMilestoneData:gt,cartTimerInMinutes:ft,cartTimerCustomText:yt,imageAspectSelector:xt,cartComponentsCornerType:ht,cartComponentsCornerRadius:bt,stickyCartCustomizationData:wt,cartOffersCarousalData:vt,stickyBarBuyNowFunction:Ct,gstSectionCustomizationData:Et,noteSectionTitle:kt,checkoutSectionMessage:Tt,checkoutSectionMessageRedirectLink:St,checkoutSectionMessageDisplay:Nt,showVariantSelectionDropdownInProductClaim:Bt,loyaltyDiscount:Ft,brandTokenName:zt,showDiscountOnMRP:$t,prefixMessageText:It,suffixMessageText:Pt,successMessageText:Dt,toggleDecimal:At,cartOffersCarouselHeight:_t,disableCheckoutButton:Lt,showEmptyCartRecommendations:Rt,emptyProductRecsTitleText:Mt,checkoutButtonBottomSpacing:Ot,applyCouponCode:Vt,showApplyCoupon:Wt,enableConfetti:Ht,showCheckoutButtonPaymentIcons:jt=!0,showCouponOptions:qt,rewardCoupons:Ut,couponSelectionData:Qt,comboBundleData:Zt,comboBundleAddToCartFunction:Gt,stealDealCheckpoints:Yt,stealDealProducts:Xt,stealDealAddToCart:Kt,useCartShell:Jt,showTrustedBadge:en,trustedBadgeData:nn,drawerLayoutData:rn})=>{const on=de(tn),[an,ln]=ce(sn),[cn,dn]=ce(Ci),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??Zt,fn=mn.comboBundleAddToCartFunction??Gt,[yn,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)},[]);const hn=o(null),bn=o(0);i(()=>{if(w){const e=w?.token??null,t="number"==typeof w?.cartUpdatedAtMs?w.cartUpdatedAtMs:void 0;e!==hn.current&&(hn.current=e,bn.current=t??0);const n=bn.current;if(!(void 0===t||t>=n))return;void 0!==t&&(bn.current=t),on(w)}},[w]);const wn=o(null);n(()=>{function e(e){wn.current&&!wn.current.contains(e.target)&&(ln({open:!1,variantId:void 0,quantity:void 0,handle:void 0}),dn({isOpen:!1}))}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);const[vn,Cn]=t(!1);return n(()=>{const e=()=>{Cn(window.innerWidth>=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),n(()=>{if(!Jt)return;const e=window.ytCartShell;if(!e)return;const t=e.getDrawerElement?.(),n=e.getOverlayElement?.();t&&(!_||ot&&at?(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")))},[_,Jt,ot,at,b]),n(()=>{if(!Jt)return;const e=window.ytCartShell,t=e?.getOverlayElement?.();if(!t)return;const n=()=>L(!1);return t.addEventListener("click",n),()=>t.removeEventListener("click",n)},[Jt,L]),e.createElement(e.Fragment,null,e.createElement("div",{style:{position:ot&&at?"relative":"absolute",width:"100%",display:ot&&at?"flex":"block",alignItems:"center",justifyContent:"center"}},A&&!(ot&&at)&&e.createElement("button",{style:{margin:"16px"},onClick:pn},_?"Close Drawer":"Open Drawer"),!Jt&&_&&b&&!(ot&&at)&&e.createElement("div",{onClick:pn,id:"custom-cart-yt-overlay",style:{position:"fixed",top:0,right:0,zIndex:1e4,transform:"translateX(0)",backgroundColor:"rgba(0,0,0,0.5)",inset:0,height:"100%",width:"100%"}},"‎"),e.createElement(vc,{useCartShell:Jt,isCartPage:at,enableCustomCartOnCartPage:ot,isOpen:_,setIsOpen:L,backgroundColor:f,backgroundSubdued:y??"#F5F5F5",tertiaryColor:x,tertiaryTextColor:h,exploreCTAColor:r,checkoutFontSize:a,cartTitle:p,handleDecrement:l,handleIncrement:c,removeCartItem:s,addCartItem:d,emptyCartTitle:m,emptyCartButtons:g,emptyCartDescription:u,showBundle:C,isUserSignedIn:v,bundleProducts:E,discountAmountOff:k,loyaltyIcon:T,pointsToBeUsed:S,rewardMultiplier:N,redemptionMultiplier:B,removeDiscount:F,applyDiscount:z,discountApplied:$,checkoutFunction:I,joinNowFunction:P,guestLoyaltyPercentage:D,isDev:R,switchWidthVariant:M,recProductsList:O,showMultiStepProgressBar:V,cartCheckpoints:W,redemptionRate:H,pointsRewardRate:j,showCartLevelAltPay:q,exploreCtaRedirectLink:U,discountAmountApplied:Q,minimumCartValue:Z,discountInCheckoutButton:G,isStickyCheckout:Y,handleCheckpointCrossed:X,customCartProgressBarCriteria:K??"minimum_order_value",checkoutButtonColor:J,ctaButtonBackgroundColor:ee,ctaButtonTextColor:te,primaryTextColor:ne,productRecsCtaButtonText:re,productRecsTitleText:oe,secondaryTextColor:ae,showProductRecsOnDesktop:ie,showProductRecsOnMobile:le,themeColor:se,themeTextColor:pe,companyName:me,gstNumber:ue,showGSTOption:ge,applyGSTToCart:fe,showMOVForProgressTiers:ye,freeProduct:xe,showLoyaltyCta:he,freeProductAdjustedCartTotal:be,minimumOrderValueToAvailDiscount:we,signinCTAButtonVisible:ve,cartSigninCTAMainText:Ce,applyNoteToCart:ke,note:Te,showNoteOption:Ee,inlineCartOfferInfoText:Se,inlineCartOfferInfoRedirectLink:Ne,cartOfferTermsAndConditionsText:Be,showEditOptionOnProducts:Fe,onSetLoading:$e,showVariantSelectionDropdownInProductRecs:Ie,originalCartSubtotal:Pe,currentTier:De,freebieProductsInCart:Ae,cartOffersCarousalData:vt,showFreebieClaim:_e,addFreebieToCart:Le,freebiesInCart:Re,effectiveQuantityForProgressBar:Me,productPercentageOffMapping:Oe,removeFreebieFromCart:Ve,postalCodeList:We,enableGeoLocationDeliveryRestriction:He,applyPostalCodeAndDeliverySlotToCart:je,showDeleteOnFreebies:qe,freebieCouponTemplates:Ue,freebieFlowCheckpoints:Qe,freebieClaimData:Ze,postalCodeBasedItemTrackingParameter:Xe,enableSlotPicker:Ke,deliveryHeaderTitle:Je,deliveryAvailableText:et,deliveryNotAvailableText:tt,giftWrapSetupData:nt,giftWrapProductDetail:rt,progressBarFreeProductIconType:it,productRecsCardLayout:ct,productRecsCardListVariant:st,showCartTimer:dt,showFreebieMilestone:pt,freebieMilestoneData:gt,cartTimerCustomText:yt,cartTimerInMinutes:ft,imageAspectSelector:xt,cartComponentsCornerType:ht,cartComponentsCornerRadius:bt,gstSectionCustomizationData:Et,noteSectionTitle:kt,checkoutSectionMessage:Tt,checkoutSectionMessageRedirectLink:St,checkoutSectionMessageDisplay:Nt,showVariantSelectionDropdownInProductClaim:Bt,loyaltyDiscount:Ft,getProductDetailsByVariantId:ze,brandTokenName:zt,showDiscountOnMRP:$t??!0,prefixMessageText:It,suffixMessageText:Pt,successMessageText:Dt,toggleDecimal:At,cartOffersCarouselHeight:_t,disableCheckoutButton:Lt,showEmptyCartRecommendations:Rt,emptyProductRecsTitleText:Mt,checkoutButtonBottomSpacing:Ot,applyCouponCode:Vt,showApplyCoupon:Wt,enableConfetti:Ht,showCheckoutButtonPaymentIcons:jt,stealDealCheckpoints:Yt,stealDealProducts:Xt,stealDealAddToCart:Kt,showCouponOptions:qt,rewardCoupons:Ut,couponSelectionData:Qt,showTrustedBadge:en,trustedBadgeData:nn,drawerLayoutData:rn}),Ge&&Ye&&d&&e.createElement(jm,{showStickyCart:Ge,stickyCartCustomizationData:wt,product:Ye,addCartItem:d,onSetLoading:$e,themeColor:se,themeTextColor:pe,cartData:w,isCartOpen:_,setIsCartOpen:L,ctaButtonBackgroundColor:ee,ctaButtonTextColor:te,addToStickyCart:lt,cartComponentsCornerRadius:bt,cartComponentsCornerType:ht,checkoutFunction:Ct,backgroundColor:f,primaryTextColor:ne,comboBundleData:gn,comboBundleAddToCartFunction:fn,volumeBundleCurrentTier:yn.currentTier,volumeBundleData:yn.bundle,volumeBundleAddToCartFunction:yn.volumeBundleAddToCartFunction}),vn&&an.open&&e.createElement(uu,{backgroundColor:f,ref:wn,isDev:R,removeCartItem:s,addCartItem:d,getProductDetailsByVariantId:ze,themeColor:se,cartComponentsCornerRadius:bt,cartComponentsCornerType:ht,removeFreebieFromCart:Ve,freebieClaimAddToCart:Le,stealDealAddToCart:Kt,productClaimCtaButtonText:Ze?.productClaimCtaButtonText,backgroundSubdued:y??"#F5F5F5",primaryTextColor:ne}),!vn&&an.open&&e.createElement(gu,{ref:wn,isDev:R,removeCartItem:s,addCartItem:d,getProductDetailsByVariantId:ze,themeColor:se,cartComponentsCornerRadius:bt,cartComponentsCornerType:ht,backgroundColor:f,removeFreebieFromCart:Ve,freebieClaimAddToCart:Le,stealDealAddToCart:Kt,productClaimCtaButtonText:Ze?.productClaimCtaButtonText,backgroundSubdued:y??"#F5F5F5",primaryTextColor:ne})),!vn&&mt&&e.createElement(fu,{isCartOpen:_,setIsCartOpen:L,cartCheckpoints:W,customCartProgressBarCriteria:K,floatingCartData:ut,effectiveQuantityForProgressBar:Me,cartComponentsCornerRadius:bt,cartComponentsCornerType:ht}))};Ct(".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 xu=()=>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"},"‎")))));Ct('/* 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/* container */\n.yt-rw-card {\n /* overflow-y: auto; allow scroll during collapse phase */\n overscroll-behavior: contain;\n min-height: 0;\n /* position: fixed; */\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 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: 8px 16px;\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: -88px;\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-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');Ct("\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");function hu({background:t="",textColor:n="",displayText:r="Copied to clipboard!"}){return e.createElement("div",{className:"yt-toast",style:{position:"absolute",fontFamily:"Poppins",bottom:20,alignSelf:"center",boxSizing:"border-box",padding:"6px 12px",borderRadius:6,fontSize:13,animation:"fadein .5s",background:t||"#333",color:n||"#fff"}},r)}function bu({couponHeading:t="",couponCode:n="",copyFunction:r=e=>{},themePrimaryColor:o="",themeContrastColor:a="",themeSecondaryContrastColor:i="",themeSecondaryColor:l="",setScreenType:c=e=>{},showCTA:s=!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:{borderRadius: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"}))))),s&&e.createElement("div",{onClick:()=>c("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"})))))}Ct("@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }\n@keyframes fadeout { from { opacity: 1 } to { opacity: 0 } }\n");function wu({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}Ct("@keyframes yt-spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n");const vu={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},redeemCardFooter:{borderRadius:"0 0 8px 8px",display:"flex",padding:"4px 12px",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",border:"1px solid #D9D9D9",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"}},Cu={...vu,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}};Ct("/* 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");Ct('.yt-wte-bgIcon > svg {\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');function Eu({couponList:r=[],couponHeading:a="",couponCode:i="",currencyCode:l,onCouponAvail:c,copyFunction:s=e=>{},themeSecondaryContrastColor:d="",themeSecondaryColor:p="",themeBackgroundColor:m="",setScreenType:u=e=>{},showCTA:g=!0,balanceCoins:f,ctaBorderRadius:y}){const[x,h]=t(i),[b,w]=t("idle"),[v,C]=t(null),[E,k]=t(0),[T,S]=t(null),[N,B]=t(null),F=o(null);n(()=>()=>{F.current&&clearInterval(F.current)},[]),n(()=>{"success"!==b||N||import("./confetti-f3502561.js").then(e=>B(e.default))},[b,N]);const z=async e=>{if("idle"!==b)return;C(e),w("loading"),k(0),F.current=setInterval(()=>{k(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(F.current&&clearInterval(F.current),F.current=null,n){try{await navigator.clipboard.writeText(n)}catch{}h(n),k(100),setTimeout(()=>w("success"),350)}else S("Failed to avail coupon"),w("idle"),C(null),k(0),setTimeout(()=>S(null),2e3)},$="idle"!==b,I=((e,t)=>e?e.discountPercentage>0?`${e.discountPercentage}% off`:e.discountValue>0?`${(e=>"INR"===e?"₹":e?`${e} `:"")(t)}${e.discountValue}`:e.name:"")(v,l);return e.createElement("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",background:"transparent",overflow:"hidden"}},"success"===b&&N&&e.createElement("div",{className:"yt-wtr-confetti",style:Cu.confetti,"aria-hidden":"true"},e.createElement(wt,{animationData:N,loop:!1})),e.createElement("div",{className:"yt-wtr-body",style:Cu.body},0==r?.length?e.createElement("p",{className:"yt-wtr-noCouponsFound",style:Cu.noCouponsFound},"No Coupons Found"):r?.map((t,n)=>e.createElement(Su,{key:t.couponTemplateId??n,data:t,onAvail:z,isAvailing:v?.couponTemplateId===t.couponTemplateId&&"loading"===b,disabled:$,balanceCoins:f}))),e.createElement("div",{style:{bottom:"16px",display:"flex",flexDirection:"column",gap:"11.23px",alignItems:"center"}},"loading"===b&&e.createElement("div",{className:"yt-wtr-progressBlock",style:Cu.progressBlock,"aria-live":"polite"},e.createElement("div",{className:"yt-wtr-progressIcon",style:Cu.progressIcon},E<50?e.createElement(ee,{size:36}):e.createElement(nt,{size:36})),e.createElement("div",{className:"yt-wtr-progressBar",style:Cu.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(E)},e.createElement("div",{className:"yt-wtr-progressBarFill",style:{...Cu.progressBarFill,width:`${E}%`}})),e.createElement("div",{className:"yt-wtr-progressLabel",style:Cu.progressLabel},E<50?`availing ${I} off coupon...`:"applying your reward...")),"success"===b&&e.createElement("div",{className:"yt-wtr-successBlock",style:Cu.successBlock,"aria-live":"polite"},e.createElement("div",{className:"yt-wtr-successBadge",style:Cu.successBadge},e.createElement(ku,null)),e.createElement("h3",{className:"yt-wtr-successTitle",style:Cu.successTitle},"🎉 ",I," availed!"),e.createElement("p",{className:"yt-wtr-successSubtitle",style:Cu.successSubtitle},"Your reward will apply automatically to eligible items in your cart."),e.createElement("div",{className:"yt-wtr-successDivider",style:Cu.successDivider}),e.createElement("p",{className:"yt-wtr-successApplied",style:Cu.successApplied},"coupon applied")),"idle"===b&&x&&x?.length>0&&e.createElement("div",{style:{padding:"10px 8px 8px 8px"}},e.createElement(bu,{setScreenType:u,themeSecondaryColor:p,themeSecondaryContrastColor:d,borderRadius:y??"12px",showCTA:!1,couponCode:x,couponHeading:a,copyFunction:s})),e.createElement("p",{className:"yt-wtr-footerText",style:Cu.footerText},"stay signed-in with the account you use for checking out")),T&&e.createElement(hu,{displayText:T,background:"#000000",textColor:"#ffffff"}))}function ku(){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 Tu(){return e.createElement("span",{className:"yt-wte-bgIcon",style:Cu.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 Su({data:t,onAvail:n,isAvailing:r,disabled:o,balanceCoins:a=0}){const i=!a||t?.pointsRequired>a;return e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:Cu.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:Cu.redeemCardHeader},e.createElement(Tu,null),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:Cu.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:Cu.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:Cu.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:Cu.redeemCardTitle},e.createElement("span",{style:Cu.redeemCardTitleSpan},t?.name)),e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:Cu.redeemCardSubtitle},t?.pointsRequired," Points Required •"," ",t?.minimumOrderValue>0?`Minimum Order Value INR ${t?.minimumOrderValue}`:"no mov"))),e.createElement("button",{onClick:()=>n(t),disabled:o||i,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:Cu.cta},r?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Avail")),a<t?.pointsRequired&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:Cu.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:Cu.redeemCardFooterText},e.createElement("span",{style:Cu.redeemCardFooterTextSpan},t?.pointsRequired-a," coins "),"more required")))}const Nu={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}},Bu=[Nu.tier1,Nu.tier2,Nu.tier3],Fu=e=>Bu[e%3];function zu(e){if(null==e||""===e)return"-";const t=Number(e);return Number.isNaN(t)?String(e):t.toLocaleString()}function $u(e){if(null==e||""===e)return null;const t=Number(e);return Number.isNaN(t)?null:t}function Iu({brandRewardTiers:t,balanceCoins:n,userRewardTier:r,currencyCode:o}){const a=t?.filter(e=>!1!==e.widgetVisibility)??[],i=r?.currentTier,l=r?.nextTier,c=function(e,t,n){if(!e)return null;const r="INR"===n?"₹":n?`${n} `:"";if("ltv"===e.rewardTierCriteria&&"order_count"===e.purchaseValueMethod){const n=$u(t?.totalOrders)??0,r=$u(e.minimumOrderCountRequired);return{current:n,target:r,currentText:zu(n),targetText:zu(r),unit:"orders"}}if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod){const n=$u(t?.currentLtv)??0,o=$u(e.minimumOrderValueRequired),a=zu(n),i=zu(o);return{current:n,target:o,currentText:"-"===a?a:`${r}${a}`,targetText:"-"===i?i:`${r}${i}`,unit:""}}if("loyalty_points"===e.rewardTierCriteria){const n=$u(t?.currentPoints)??0,r=$u(e.minimumLoyaltyPointsRequired);return{current:n,target:r,currentText:zu(n),targetText:zu(r),unit:"points"}}return null}(l,r,o),s=c?.current,d=c?.target,p=null!=s&&null!=d&&d>0?Math.min(1,Math.max(0,s/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:Nu.wrap},e.createElement("div",{className:"yt-vip-head",style:Nu.head},e.createElement("div",{className:"yt-vip-titleBlock",style:Nu.titleBlock},e.createElement("p",{className:"yt-vip-eyebrow",style:Nu.eyebrow},"Current Balance"),e.createElement("p",{className:"yt-vip-balance",style:Nu.balance},zu(n))),e.createElement("div",{className:"yt-vip-current-tier",style:Nu.currentTier},i&&e.createElement("p",{className:"yt-vip-validity",style:Nu.validity},"Current Tier"," ",e.createElement("span",{style:Nu.validitySpan},"Valid till ",g)),i&&e.createElement("h2",{className:"yt-vip-title",style:Nu.title},i.name)),e.createElement("div",{className:"yt-vip-progress",style:Nu.progress},e.createElement("p",{className:"yt-vip-progressTitle",style:Nu.progressTitle},"Your Progress"),e.createElement("div",{className:"yt-vip-progressDots",style:Nu.progressDots},Array.from({length:6}).map((t,n)=>e.createElement("span",{key:n,className:"yt-vip-dot "+(n<m?"yt-is-filled":""),style:{...Nu.dot,...n<m?Nu.dotFilled:null}}))),e.createElement("p",{className:"yt-vip-sub",style:Nu.sub},null!=s&&null!=d&&c?`${c.currentText} / ${c.targetText}${c.unit?` ${c.unit}`:""} for next tier`:"Next tier progress unavailable"))),e.createElement("div",{className:"yt-vip-cards",style:Nu.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:zu(e.minimumOrderCountRequired),label:"Orders Required"};if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod){const t=zu(e.minimumOrderValueRequired);return{value:"-"===t?t:`${n}${t}`,label:"Order Value Required"}}return"loyalty_points"===e.rewardTierCriteria?{value:zu(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:{...Nu.card,...Fu(n),...t.tierThemeColor?{background:t.tierThemeColor}:null}},e.createElement("div",{className:"yt-vip-cardHead",style:Nu.cardHead},t.name),e.createElement("div",{className:"yt-vip-metrics",style:Nu.metrics},e.createElement("div",{className:"yt-vip-metric",style:Nu.metric},e.createElement("b",{style:Nu.metricBold},zu(t.rewardMultiplier),"x"),e.createElement("span",{style:Nu.metricSpan},"Rewards")),e.createElement("div",{className:"yt-vip-metric",style:Nu.metric},e.createElement("b",{style:Nu.metricBold},zu(t.redemptionMultiplier),"x"),e.createElement("span",{style:Nu.metricSpan},"Redemption")),e.createElement("div",{className:"yt-vip-metric",style:Nu.metric},e.createElement("b",{style:Nu.metricBold},a.value),e.createElement("span",{style:Nu.metricSpan},a.label)),r&&e.createElement("div",{className:"yt-vip-metric",style:{...Nu.metric,justifyContent:"end",height:"100%"}},e.createElement("span",{style:Nu.metricSpan},"+ Special Deals"))))})),e.createElement("div",{className:"yt-vip-note",style:Nu.note},"stay signed-in with the account you use for checking out"))}Ct(".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 Pu={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"},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 Du({userData:t,ctaContrastColor:n,ctaPrimaryColor:r,currencyCode:o,activityRewards:a,onBirthdayUpdate:i,onSocialClick:l,isLoading:c,brandRewardProgram:s}){const d=s?.coinName??"coins",p=a?.creditOnActivitiesProperties?.referralRewardConfig,m="ways_to_earn"===p?.campaignVisibility||"both"===p?.campaignVisibility,u=Lu(p?.referrerReward,d,o),g=Lu(p?.refereeReward,d,o),f=!!p?.enabled&&m&&(!!p?.referrerReward?.enabled||!!p?.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:vu.body},a?.creditOnActivitiesProperties?.birthdayReward?.status&&a?.creditOnActivitiesProperties?.birthdayReward?.widgetVisibility&&a?.creditOnBirthdayValue&&e.createElement(Wu,{ctaContrastColor:n,ctaPrimaryColor:r,initializing:!t,coins:a.creditOnBirthdayValue,type:a?.creditOnActivitiesProperties?.birthdayReward?.type,coinName:d,title:a?.creditOnActivitiesProperties?.birthdayReward?.offerTitle?.trim()?a.creditOnActivitiesProperties.birthdayReward.offerTitle:"on adding your birth date",activityRewards:a,userData:t,onBirthdayUpdate:i}),s?.programStatus&&s?.programVisibility&&Number(s?.orderCreditValue??0)>0&&e.createElement(Ou,{ctaContrastColor:n,ctaPrimaryColor:r,icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"27",viewBox:"0 0 28 27",fill:"none"},e.createElement("path",{d:"M13.8668 0C16.0734 0 18.1896 0.876575 19.75 2.43689C21.3103 3.9972 22.1868 6.11344 22.1868 8.32006V9.70674H27.7336V12.4801H26.1153L25.0656 25.0753C25.0367 25.4218 24.8787 25.7448 24.6229 25.9803C24.3671 26.2159 24.0322 26.3467 23.6845 26.3469H4.0491C3.70138 26.3467 3.36643 26.2159 3.11062 25.9803C2.85482 25.7448 2.69683 25.4218 2.66797 25.0753L1.61687 12.4801H0V9.70674H5.54671V8.32006C5.54671 6.11344 6.42329 3.9972 7.9836 2.43689C9.54392 0.876575 11.6602 0 13.8668 0ZM23.3322 12.4801H4.39993L5.32484 23.5735H22.4073L23.3322 12.4801ZM13.8668 2.77335C12.4437 2.77335 11.0751 3.32031 10.044 4.30109C9.01286 5.28187 8.39815 6.62144 8.327 8.04273L8.32007 8.32006V9.70674H19.4135V8.32006C19.4135 6.897 18.8665 5.52837 17.8858 4.49725C16.905 3.46614 15.5654 2.85144 14.1441 2.78029L13.8668 2.77335Z",fill:"black"}),e.createElement("path",{d:"M15.2509 20.8001V15.2534H12.4776V20.8001H15.2509Z",fill:"#000000"}),e.createElement("path",{d:"M9.7042 20.8001V15.2534H6.93085V20.8001H9.7042Z",fill:"#000000"}),e.createElement("path",{d:"M20.7976 20.8001V15.2534H18.0243V20.8001H20.7976Z",fill:"#000000"})),coins:s.orderCreditValue,type:s?.orderCreditType,coinName:d,title:s?.programTitle?.trim()?s.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===s.orderCreditCriteria)?.label??s.orderCreditCriteria,showAvail:!1,onCouponAvail:()=>{}}),a?.creditOnActivitiesProperties?.signUpReward?.status&&a?.creditOnActivitiesProperties?.signUpReward?.widgetVisibility&&a?.creditOnSignupValue&&e.createElement(Ou,{ctaContrastColor:n,ctaPrimaryColor:r,icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},e.createElement("path",{d:"M320 312C386.3 312 440 258.3 440 192C440 125.7 386.3 72 320 72C253.7 72 200 125.7 200 192C200 258.3 253.7 312 320 312zM290.3 368C191.8 368 112 447.8 112 546.3C112 562.7 125.3 576 141.7 576L498.3 576C514.7 576 528 562.7 528 546.3C528 447.8 448.2 368 349.7 368L290.3 368z"})),coins:a.creditOnSignupValue,coinName:d,title:a?.creditOnActivitiesProperties?.signUpReward?.offerTitle?.trim()?a.creditOnActivitiesProperties.signUpReward.offerTitle:"on sign up",showAvail:!1,onCouponAvail:()=>{}}),a?.creditOnActivitiesProperties?.firstOrderReward?.status&&a?.creditOnActivitiesProperties?.firstOrderReward?.widgetVisibility&&a?.creditOnFirstOrderValue&&e.createElement(Ou,{ctaContrastColor:n,ctaPrimaryColor:r,icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"27",viewBox:"0 0 28 27",fill:"none"},e.createElement("path",{d:"M13.8668 0C16.0734 0 18.1896 0.876575 19.75 2.43689C21.3103 3.9972 22.1868 6.11344 22.1868 8.32006V9.70674H27.7336V12.4801H26.1153L25.0656 25.0753C25.0367 25.4218 24.8787 25.7448 24.6229 25.9803C24.3671 26.2159 24.0322 26.3467 23.6845 26.3469H4.0491C3.70138 26.3467 3.36643 26.2159 3.11062 25.9803C2.85482 25.7448 2.69683 25.4218 2.66797 25.0753L1.61687 12.4801H0V9.70674H5.54671V8.32006C5.54671 6.11344 6.42329 3.9972 7.9836 2.43689C9.54392 0.876575 11.6602 0 13.8668 0ZM23.3322 12.4801H4.39993L5.32484 23.5735H22.4073L23.3322 12.4801ZM13.8668 2.77335C12.4437 2.77335 11.0751 3.32031 10.044 4.30109C9.01286 5.28187 8.39815 6.62144 8.327 8.04273L8.32007 8.32006V9.70674H19.4135V8.32006C19.4135 6.897 18.8665 5.52837 17.8858 4.49725C16.905 3.46614 15.5654 2.85144 14.1441 2.78029L13.8668 2.77335Z",fill:"black"}),e.createElement("path",{d:"M15.2509 20.8001V15.2534H12.4776V20.8001H15.2509Z",fill:"#000000"}),e.createElement("path",{d:"M9.7042 20.8001V15.2534H6.93085V20.8001H9.7042Z",fill:"#000000"}),e.createElement("path",{d:"M20.7976 20.8001V15.2534H18.0243V20.8001H20.7976Z",fill:"#000000"})),coins:a.creditOnFirstOrderValue,type:a?.creditOnActivitiesProperties?.firstOrderReward?.type,coinName:d,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&&a?.creditOnSecondOrderValue&&e.createElement(Ou,{ctaContrastColor:n,ctaPrimaryColor:r,icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"27",viewBox:"0 0 28 27",fill:"none"},e.createElement("path",{d:"M13.8668 0C16.0734 0 18.1896 0.876575 19.75 2.43689C21.3103 3.9972 22.1868 6.11344 22.1868 8.32006V9.70674H27.7336V12.4801H26.1153L25.0656 25.0753C25.0367 25.4218 24.8787 25.7448 24.6229 25.9803C24.3671 26.2159 24.0322 26.3467 23.6845 26.3469H4.0491C3.70138 26.3467 3.36643 26.2159 3.11062 25.9803C2.85482 25.7448 2.69683 25.4218 2.66797 25.0753L1.61687 12.4801H0V9.70674H5.54671V8.32006C5.54671 6.11344 6.42329 3.9972 7.9836 2.43689C9.54392 0.876575 11.6602 0 13.8668 0ZM23.3322 12.4801H4.39993L5.32484 23.5735H22.4073L23.3322 12.4801ZM13.8668 2.77335C12.4437 2.77335 11.0751 3.32031 10.044 4.30109C9.01286 5.28187 8.39815 6.62144 8.327 8.04273L8.32007 8.32006V9.70674H19.4135V8.32006C19.4135 6.897 18.8665 5.52837 17.8858 4.49725C16.905 3.46614 15.5654 2.85144 14.1441 2.78029L13.8668 2.77335Z",fill:"black"}),e.createElement("path",{d:"M15.2509 20.8001V15.2534H12.4776V20.8001H15.2509Z",fill:"#000000"}),e.createElement("path",{d:"M9.7042 20.8001V15.2534H6.93085V20.8001H9.7042Z",fill:"#000000"}),e.createElement("path",{d:"M20.7976 20.8001V15.2534H18.0243V20.8001H20.7976Z",fill:"#000000"})),coins:a.creditOnSecondOrderValue,type:a?.creditOnActivitiesProperties?.secondOrderReward?.type,coinName:d,title:"on your second order",showAvail:!1,onCouponAvail:()=>{}}),f&&e.createElement(Ou,{ctaContrastColor:n,ctaPrimaryColor:r,icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},e.createElement("path",{d:"M320 312C386.3 312 440 258.3 440 192C440 125.7 386.3 72 320 72C253.7 72 200 125.7 200 192C200 258.3 253.7 312 320 312zM290.3 368C191.8 368 112 447.8 112 546.3C112 562.7 125.3 576 141.7 576L498.3 576C514.7 576 528 562.7 528 546.3C528 447.8 448.2 368 349.7 368L290.3 368z"})),coins:0,coinName:d,title:"",showAvail:!1,onCouponAvail:()=>{},customTitle:e.createElement(Mu,{title:p?.offerTitle,referrerReward:u,refereeReward:g})}),a?.creditOnActivitiesProperties?.customLink?.status&&a?.creditOnCustomLinkValue&&e.createElement(Vu,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasClickedOnCustomLink,initializing:!t,url:a?.creditOnActivitiesProperties?.customLink?.url??"",type:"custom_link",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:a.creditOnCustomLinkValue,coinName:d,title:a?.creditOnActivitiesProperties?.customLink?.offerTitle?.trim()?a.creditOnActivitiesProperties.customLink.offerTitle:"on clicking this link",onCouponAvail:l}),a?.creditOnActivitiesProperties?.instagramFollow?.status&&a?.creditOnInstagramFollowValue&&e.createElement(Vu,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasFollowedOnInstagram,initializing:!t,url:a?.creditOnActivitiesProperties?.instagramFollow?.url??"",type:"instagram",icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none"},e.createElement("g",{"clip-path":"url(#clip0_7542_11766)"},e.createElement("path",{d:"M9.30339 1.67534C11.7891 1.67534 12.0835 1.68624 13.0611 1.72985C13.9696 1.76982 14.4602 1.92246 14.7873 2.04965C15.2198 2.21682 15.5323 2.42034 15.8557 2.74377C16.1828 3.07085 16.3827 3.37975 16.5499 3.81221C16.6771 4.13928 16.8297 4.63352 16.8697 5.53842C16.9133 6.51964 16.9242 6.81401 16.9242 9.29612C16.9242 11.7819 16.9133 12.0762 16.8697 13.0538C16.8297 13.9624 16.6771 14.453 16.5499 14.78C16.3827 15.2125 16.1792 15.525 15.8557 15.8485C15.5287 16.1755 15.2198 16.3754 14.7873 16.5426C14.4602 16.6698 13.966 16.8224 13.0611 16.8624C12.0799 16.906 11.7855 16.9169 9.30339 16.9169C6.81764 16.9169 6.52328 16.906 5.54569 16.8624C4.63716 16.8224 4.14655 16.6698 3.81948 16.5426C3.38702 16.3754 3.07448 16.1719 2.75104 15.8485C2.42397 15.5214 2.22409 15.2125 2.05692 14.78C1.92973 14.453 1.77709 13.9587 1.73712 13.0538C1.69351 12.0726 1.68261 11.7782 1.68261 9.29612C1.68261 6.81037 1.69351 6.51601 1.73712 5.53842C1.77709 4.62989 1.92973 4.13928 2.05692 3.81221C2.22409 3.37975 2.4276 3.06721 2.75104 2.74377C3.07811 2.4167 3.38702 2.21682 3.81948 2.04965C4.14655 1.92246 4.64079 1.76982 5.54569 1.72985C6.52328 1.68624 6.81764 1.67534 9.30339 1.67534ZM9.30339 0C6.77767 0 6.4615 0.0109024 5.46938 0.0545121C4.48089 0.0981217 3.80131 0.258024 3.21258 0.486974C2.59841 0.726827 2.07873 1.043 1.56268 1.56268C1.043 2.07873 0.726827 2.59841 0.486974 3.20894C0.258024 3.80131 0.0981217 4.47726 0.0545121 5.46574C0.0109024 6.4615 0 6.77767 0 9.30339C0 11.8291 0.0109024 12.1453 0.0545121 13.1374C0.0981217 14.1259 0.258024 14.8055 0.486974 15.3942C0.726827 16.0084 1.043 16.5281 1.56268 17.0441C2.07873 17.5602 2.59841 17.88 3.20894 18.1162C3.80131 18.3451 4.47726 18.505 5.46574 18.5486C6.45786 18.5922 6.77403 18.6031 9.29976 18.6031C11.8255 18.6031 12.1417 18.5922 13.1338 18.5486C14.1223 18.505 14.8018 18.3451 15.3906 18.1162C16.0011 17.88 16.5208 17.5602 17.0368 17.0441C17.5529 16.5281 17.8727 16.0084 18.1089 15.3978C18.3379 14.8055 18.4978 14.1295 18.5414 13.141C18.585 12.1489 18.5959 11.8328 18.5959 9.30703C18.5959 6.7813 18.585 6.46513 18.5414 5.47301C18.4978 4.48453 18.3379 3.80494 18.1089 3.21621C17.88 2.59841 17.5638 2.07873 17.0441 1.56268C16.5281 1.04663 16.0084 0.726827 15.3978 0.490609C14.8055 0.261658 14.1295 0.101756 13.141 0.0581462C12.1453 0.0109024 11.8291 0 9.30339 0Z",fill:"#C4296A"}),e.createElement("path",{d:"M9.3033 4.52441C6.66492 4.52441 4.52441 6.66492 4.52441 9.3033C4.52441 11.9417 6.66492 14.0822 9.3033 14.0822C11.9417 14.0822 14.0822 11.9417 14.0822 9.3033C14.0822 6.66492 11.9417 4.52441 9.3033 4.52441ZM9.3033 12.4032C7.59163 12.4032 6.20339 11.015 6.20339 9.3033C6.20339 7.59163 7.59163 6.20339 9.3033 6.20339C11.015 6.20339 12.4032 7.59163 12.4032 9.3033C12.4032 11.015 11.015 12.4032 9.3033 12.4032Z",fill:"#C4296A"}),e.createElement("path",{d:"M15.3869 4.33541C15.3869 4.95321 14.8854 5.45109 14.2712 5.45109C13.6534 5.45109 13.1555 4.94958 13.1555 4.33541C13.1555 3.7176 13.657 3.21973 14.2712 3.21973C14.8854 3.21973 15.3869 3.72124 15.3869 4.33541Z",fill:"#C4296A"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_7542_11766"},e.createElement("rect",{width:"18.6068",height:"18.6068",fill:"white"})))),coins:a.creditOnInstagramFollowValue,coinName:d,title:a?.creditOnActivitiesProperties?.instagramFollow?.offerTitle?.trim()?a.creditOnActivitiesProperties.instagramFollow.offerTitle:"on Instagram follow",onCouponAvail:l}),a?.creditOnActivitiesProperties?.facebookLike?.status&&a?.creditOnFacebookLikeValue&&e.createElement(Vu,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasLikedOnFacebook,initializing:!t,url:a?.creditOnActivitiesProperties?.facebookLike?.url??"",type:"facebook_like",icon: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:"M12 2.66663C6.8453 2.66663 2.66663 6.87229 2.66663 12.0602C2.66663 16.7345 6.05874 20.6114 10.5006 21.3333V15.7506H8.00056V12.8362H10.5006V10.615C10.5006 8.08821 11.9705 6.69248 14.2196 6.69248C15.2969 6.69248 16.4236 6.88939 16.4236 6.88939V9.37052H15.182C13.9589 9.37052 13.5775 10.1477 13.5775 10.945V12.8362H16.3083L15.8718 15.7506H13.5775V21.3203C17.9809 20.5658 21.3333 16.7071 21.3333 12.0602C21.3333 6.87229 17.1546 2.66663 12 2.66663Z",fill:"#4A4A4A"})),coins:a.creditOnFacebookLikeValue,coinName:d,title:a?.creditOnActivitiesProperties?.facebookLike?.offerTitle?.trim()?a.creditOnActivitiesProperties.facebookLike.offerTitle:"on Facebook like",onCouponAvail:l}),a?.creditOnActivitiesProperties?.facebookShare?.status&&a?.creditOnFacebookShareValue&&e.createElement(Vu,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasSharedOnFacebook,initializing:!t,url:a?.creditOnActivitiesProperties?.facebookShare?.url??"",type:"facebook_share",icon: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:"M12 2.66663C6.8453 2.66663 2.66663 6.87229 2.66663 12.0602C2.66663 16.7345 6.05874 20.6114 10.5006 21.3333V15.7506H8.00056V12.8362H10.5006V10.615C10.5006 8.08821 11.9705 6.69248 14.2196 6.69248C15.2969 6.69248 16.4236 6.88939 16.4236 6.88939V9.37052H15.182C13.9589 9.37052 13.5775 10.1477 13.5775 10.945V12.8362H16.3083L15.8718 15.7506H13.5775V21.3203C17.9809 20.5658 21.3333 16.7071 21.3333 12.0602C21.3333 6.87229 17.1546 2.66663 12 2.66663Z",fill:"#4A4A4A"})),coins:a.creditOnFacebookShareValue,coinName:d,title:a?.creditOnActivitiesProperties?.facebookShare?.offerTitle?.trim()?a.creditOnActivitiesProperties.facebookShare.offerTitle:"on Facebook share",onCouponAvail:l}),a?.creditOnActivitiesProperties?.twitterFollow?.status&&a?.creditOnTwitterFollowValue&&e.createElement(Vu,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasFollowedOnTwitter,initializing:!t,url:a?.creditOnActivitiesProperties?.twitterFollow?.url??"",type:"twitter",icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},e.createElement("path",{d:"M523.4 215.7C523.7 220.2 523.7 224.8 523.7 229.3C523.7 368 418.1 527.9 225.1 527.9C165.6 527.9 110.4 510.7 64 480.8C72.4 481.8 80.6 482.1 89.3 482.1C138.4 482.1 183.5 465.5 219.6 437.3C173.5 436.3 134.8 406.1 121.5 364.5C128 365.5 134.5 366.1 141.3 366.1C150.7 366.1 160.1 364.8 168.9 362.5C120.8 352.8 84.8 310.5 84.8 259.5L84.8 258.2C98.8 266 115 270.9 132.2 271.5C103.9 252.7 85.4 220.5 85.4 184.1C85.4 164.6 90.6 146.7 99.7 131.1C151.4 194.8 229 236.4 316.1 240.9C314.5 233.1 313.5 225 313.5 216.9C313.5 159.1 360.3 112 418.4 112C448.6 112 475.9 124.7 495.1 145.1C518.8 140.6 541.6 131.8 561.7 119.8C553.9 144.2 537.3 164.6 515.6 177.6C536.7 175.3 557.2 169.5 576 161.4C561.7 182.2 543.8 200.7 523.4 215.7z"})),coins:a.creditOnTwitterFollowValue,coinName:d,title:a?.creditOnActivitiesProperties?.twitterFollow?.offerTitle?.trim()?a.creditOnActivitiesProperties.twitterFollow.offerTitle:"on Twitter follow",onCouponAvail:l}),a?.creditOnActivitiesProperties?.youtubeSubscription?.status&&a?.creditOnYouTubeSubscriptionValue&&e.createElement(Vu,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasSubscribedOnYoutube,initializing:!t,url:a?.creditOnActivitiesProperties?.youtubeSubscription?.url??"",type:"youtube",icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},e.createElement("path",{d:"M581.7 188.1C575.5 164.4 556.9 145.8 533.4 139.5C490.9 128 320.1 128 320.1 128C320.1 128 149.3 128 106.7 139.5C83.2 145.8 64.7 164.4 58.4 188.1C47 231 47 320.4 47 320.4C47 320.4 47 409.8 58.4 452.7C64.7 476.3 83.2 494.2 106.7 500.5C149.3 512 320.1 512 320.1 512C320.1 512 490.9 512 533.5 500.5C557 494.2 575.5 476.3 581.8 452.7C593.2 409.8 593.2 320.4 593.2 320.4C593.2 320.4 593.2 231 581.8 188.1zM264.2 401.6L264.2 239.2L406.9 320.4L264.2 401.6z"})),coins:a.creditOnYouTubeSubscriptionValue,coinName:d,title:a?.creditOnActivitiesProperties?.youtubeSubscription?.offerTitle?.trim()?a.creditOnActivitiesProperties.youtubeSubscription.offerTitle:"on Youtube subscription",onCouponAvail:l})),e.createElement("div",{className:"yt-wtr-footer",style:vu.footer},e.createElement("hr",null),e.createElement("p",{className:"yt-wtr-footerText",style:vu.footerText},"stay signed-in with the account you use for checking out")))}function Au({icon:t}){return e.createElement("span",{className:"yt-wte-bgIcon",style:vu.wteBgIcon,"aria-hidden":!0},t)}function _u({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 Lu(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 Ru(t,n){return t?e.createElement("span",{key:n,style:{fontWeight:600}},t):null}function Mu({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?Ru(n,`referrer-${o}`):"{{referee_reward}}"===t?Ru(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 Ou({active:t=!0,title:n,customTitle:r,description:o,redeemMov:a,icon:i,coins:l,type:c,coinName:s,showAvail:d=!0,ctaContrastColor:p,ctaPrimaryColor:m,onCouponAvail:u}){return e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:vu.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...vu.redeemCardHeader,borderRadius:o&&""!=o?"8px 8px 0 0":"8px"}},e.createElement(Au,{icon:i}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:vu.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:vu.redeemCardIcon},i),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:vu.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:vu.redeemCardTitle},r??e.createElement(_u,{title:n,coins:l,type:c,coinName:s})),a&&e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:vu.redeemCardSubtitle},50," Points Required •"," ","Minimum Order Value INR 499"))),d&&e.createElement("button",{onClick:u,disabled:!t,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:vu.cta},"Avail")),o&&""!=o&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:vu.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:vu.redeemCardFooterText},o)))}function Vu({active:r=!0,initializing:o=!1,title:a,description:i,url:l,type:c,coins:s,coinName:d,icon:p,ctaPrimaryColor:m,ctaContrastColor:u,onCouponAvail:g}){const[f,y]=t(null),[x,h]=t(!1),[b,w]=t(!r);return n(()=>{w(!r)},[r]),e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:vu.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...vu.redeemCardHeader,borderRadius:i&&""!=i?"8px 8px 0 0":"8px"}},e.createElement(Au,{icon:p}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:vu.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:vu.redeemCardIcon},p),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:vu.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:vu.redeemCardTitle},e.createElement(_u,{title:a,coins:s??"",coinName:d})))),e.createElement("button",{onClick:async()=>{try{h(!0);await g(l,c)?(w(!0),y("Points Added")):y("Failed to add points")}catch(e){console.log("FAILED"),y("Failed to add points")}finally{h(!1),setTimeout(()=>y(null),1e4)}},disabled:b||o,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:vu.cta},x||o?e.createElement(wu,{size:18,color:"#fff",centered:!0}):b?"Availed":"Avail")),f&&e.createElement(hu,{displayText:f,background:"#000000",textColor:"#ffffff"}))}function Wu({userData:r,activityRewards:o,coins:a,type:i,coinName:l,title:c,initializing:s=!1,ctaContrastColor:d,ctaPrimaryColor:p,onBirthdayUpdate:m}){const[u,g]=t(!1),[f,y]=t(null),[x,h]=t(!1),[b,w]=t(null),[v,C]=t(r?.hasSetBirthday);n(()=>{C(!!r?.hasSetBirthday)},[r?.hasSetBirthday]);const E=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:vu.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...vu.redeemCardHeader,borderRadius:"8px 8px 0 0"}},e.createElement(Au,{icon:E}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:vu.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:vu.redeemCardIcon},E),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:vu.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:vu.redeemCardTitle},e.createElement(_u,{title:c,coins:a,type:i,coinName:l})))),e.createElement(e.Fragment,null," ",e.createElement("button",{onClick:()=>g(!0),disabled:v||s,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:vu.cta},s?e.createElement(wu,{size:18,color:"#fff",centered:!0}):v?"Availed":"Avail"),e.createElement(Hu,{isLoading:x,open:u,value:b,onChange:e=>{w(e.target.value),console.log("SElected date",e.target.value)},onClose:()=>g(!1),onSave:async e=>{try{h(!0);await m(e)?(C(!0),y("Birthday saved"),g(!1)):y("Failed to update birthday!")}catch(e){y("Failed to update birthday!")}finally{h(!1),setTimeout(()=>y(null),3e3)}}}))),!r?.hasSetBirthday&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:vu.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:vu.redeemCardFooterText},"Add birth date to avail the offer")),f&&e.createElement(hu,{displayText:f,background:"#000000",textColor:"#ffffff"}))}function Hu({open:t,value:n,onSave:r,onClose:a,onChange:i,isLoading:l}){const c=o(null);return t?e.createElement("div",{className:"yt-dob-modal-backdrop",style:Pu.modalBackdrop,onClick:a},e.createElement("div",{className:"yt-dob-modal",style:Pu.modal,onClick:e=>e.stopPropagation()},e.createElement("h2",{className:"yt-dob-modal-title",style:Pu.modalTitle},"What’s your date of birth?"),e.createElement("input",{ref:c,type:"date",className:"yt-dob-date-input",style:Pu.dateInput,value:n??"",onChange:i}),e.createElement("div",{className:"yt-dob-modal-actions",style:Pu.modalActions},e.createElement("button",{className:"yt-dob-btn-secondary",style:Pu.btnSecondary,onClick:a},"Cancel"),e.createElement("button",{className:"yt-dob-btn-primary",style:Pu.btnPrimary,disabled:!n,onClick:()=>n&&r(n)},l?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Save")))):null}Ct("/* 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 ju={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}},qu={earned:"#D4F9A780",expired:"#FFB3B380",availed:"#CDE2FF80"},Uu={earned:"#3d8b3d",expired:"#c44a4a",availed:"#3a5fa8"},Qu=e=>({...ju.caret,color:Uu[e]}),Zu={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"},Gu={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"},Yu={awaiting_payment:"awaiting-payment",confirmed:"confirmed",in_transit:"in-transit",delivered:"delivered",processing:"processing"};function Xu(e){const t=Math.round(100*e)/100;return Number.isInteger(t)?t.toLocaleString():t.toLocaleString(void 0,{maximumFractionDigits:2})}function Ku(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return"";return`${t.getDate()} ${t.toLocaleString("en-US",{month:"short"})} ${t.getFullYear()}`}function Ju(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString("en-US",{month:"long",year:"numeric"})}function eg(e,t,n){if("expired"===e)return`${n} Expired`;return`${n} ${"earned"===e?"Earned":"Availed"}: on-${function(e){const t=e.toLowerCase();return Zu[t]?Zu[t]:t.split("_").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}(t)}`}function tg(e){if(e)return Yu[e]??e.replace(/_/g,"-")}function ng(e,t){return e.map(e=>{return{deltaLabel:`+ ${Xu(e.points)} ${t.toLowerCase()}`,orderId:e.orderId?`#ORDERID: ${e.orderId}`:void 0,status:tg(e.orderStatus),note:(n=e.criteria,n&&Gu[n]?Gu[n]:"Coins will be credited once the order is complete")};var n})}const rg={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 og({data:t,tokenName:n="Coins",currencySymbol:r="$"}){const o=t??rg,{totals:a,months:i,pending:l}=function(e,t,n){const r={saved:(o=e.summary.totalSaved??0,a=n,`${a}${Xu(o)}`),earned:Xu(e.summary.totalEarned??0),available:Xu(e.summary.totalAvailed??0),expired:Xu(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=Ju(e.createdAt);if(!n)continue;const r=e.type,o={id:e.id,dateLabel:Ku(e.createdAt),title:eg(r,e.activityType,t),amount:Xu(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:ng(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:ju.wrap},e.createElement("div",{className:"yt-rt-totals",style:ju.totals},e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:ju.totalLabel},"Total Saved"),e.createElement("div",{className:"yt-rt-totalValue",style:ju.totalValue},a.saved)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:ju.totalLabel},"Total Earned"),e.createElement("div",{className:"yt-rt-totalValue",style:ju.totalValue},a.earned)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:ju.totalLabel},"Total Avail",e.createElement("span",{className:"yt-rt-hideSm"},"ed")),e.createElement("div",{className:"yt-rt-totalValue",style:ju.totalValue},a.available)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:ju.totalLabel},"Expired"),e.createElement("div",{className:"yt-rt-totalValue",style:ju.totalValue},a.expired))),l.map((t,n)=>e.createElement(e.Fragment,{key:`${t.orderId??"pending"}-${n}`},e.createElement("div",{className:"yt-rt-pendingPills",style:ju.pendingPills},e.createElement("span",{className:"yt-rt-pill yt-rt-pill--delta",style:{...ju.pill,...ju.pillDelta}},t.deltaLabel),e.createElement("div",{className:"yt-rt-pendingPillsRight",style:ju.pendingPillsRight},t.orderId&&e.createElement("span",{className:"yt-rt-pill yt-rt-pill--order",style:{...ju.pill,...ju.pillOrder}},t.orderId),t.status&&e.createElement("span",{className:"yt-rt-pill yt-rt-pill--status",style:{...ju.pill,...ju.pillStatus}},t.status))),t.note&&e.createElement("div",{className:"yt-rt-pendingNote",style:ju.pendingNote},t.note))),i.map(t=>e.createElement("div",{key:t.monthTitle,className:"yt-rt-month"},e.createElement("div",{className:"yt-rt-monthTitle",style:ju.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,{...ju.row,background:qu[n]})},e.createElement("div",{className:"yt-rt-rowHeader",style:ju.rowHeader},e.createElement("span",{className:"yt-rt-caret",style:Qu(t.kind)},"▶"),e.createElement("span",{className:"yt-rt-date",style:ju.date},t.dateLabel)),e.createElement("div",{className:"yt-rt-rowBody",style:ju.rowBody},e.createElement("div",{className:"yt-rt-title"},function(t){const n=t.indexOf(": ");return-1===n?e.createElement("span",{style:ju.title},t):e.createElement(e.Fragment,null,e.createElement("span",{style:ju.title},t.substring(0,n+1)),e.createElement("span",{style:ju.titleSuffix}," ",t.substring(n+2)))}(String(t.title))),e.createElement("div",{className:"yt-rt-amount",style:ju.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 ag({className:t,overlayColor:n,gradientPrefix:r}){const o=c(),a=e=>`${r}-${e}-${o.replace(/:/g,"")}`,i=a("filter"),l=a("paint0"),s=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(#${s})`}),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:s,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 ig(e){try{return Number(e).toLocaleString()}catch{return e}}function lg({value:r,duration:a=1200}){const[i,l]=t(0),c=o(0);return n(()=>{const e=c.current,t=Number.isFinite(r)?r:0;if(e===t)return;let n=0,o=null;const i=r=>{null===o&&(o=r);const s=Math.min(1,(r-o)/a),d=Math.round(e+(t-e)*(e=>1-Math.pow(1-e,3))(s));c.current=d,l(d),s<1&&(n=requestAnimationFrame(i))};return n=requestAnimationFrame(i),()=>cancelAnimationFrame(n)},[r,a]),e.createElement(e.Fragment,null,i.toLocaleString())}function cg({config:r}){const{isMobile:a,previewMode:i=!1,bannerBackground:l,bannerBackgroundType:c="shape",bannerImage:s,bannerTextColor:d,bannerTextAlignment:p="center",showWatermark:m=!0,watermarkColor:u,themePrimaryColor:g,themeContrastColor:f,themeSecondaryColor:y,themeSecondaryContrastColor:x,themeBackgroundColor:h,themeTextColor:b,themeAccentColor:w,widgetOpen:v,widgetRoundedCorners:C,ctaPrimaryColor:E,ctaPrimaryContrastColor:k,ctaBorderColor:T,ctaSecondaryColor:S,ctaSecondaryContrastColor:N,ctaShowIcon:B,ctaBorderRadius:F,showWaysToEarn:z,showWCoinValue:$,showReferral:I,showTransactions:P,showVipSection:D,showLogo:A=!1,brandName:_,headingEyebrow:L,userGreeting:R="Welcome to",brandLogoUrl:M,balanceCoins:O,coinValInr:V,currencyCode:W,tokenName:H,maxRedeemableCoins:j,rateTitle:q,rateSub:U,couponHeading:Q,couponCode:Z,couponList:G,onCouponAvail:Y,referralLink:X,userRewardTier:K,brandRewardTiers:J,onClose:ee=()=>{},onLogout:te,userData:ne,activityRewards:re,brandRewardProgram:oe,recentTransactionsData:ae,isLoading:ie,onBirthdayUpdate:le,onSocialClick:ce}=r||{},[se,de]=t(!1),pe=o(null),me=o(null),ue=o(null),[ge,fe]=t(!1),[ye,xe]=t("profile"),he=e=>{i||xe(e)},be="start"===p?{alignItems:"flex-start",textAlign:"left"}:"end"===p?{alignItems:"flex-end",textAlign:"right"}:{alignItems:"center",textAlign:"center"},we=null!=O&&""!==O&&!isNaN(Number(O)),ve="static"===c?"":s??"",Ce=re?.creditOnActivitiesProperties?.referralRewardConfig,Ee=K?.currentTier,ke=Array.isArray(Ee?.catalogDealsProducts)?Ee?.catalogDealsProducts??[]:[],Te=ke?.length>0,Se=Ee?.rewardMultiplier,Ne=K?.nextTier,Be=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:`${ig(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}${ig(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:`${ig(Math.max(0,a-o))} points`}return null}(Ne,K,W),Fe=!!Ce?.customizeReferralSectionContent,ze=Ce?.shareMethod,$e=oe?.coinName??H??"coins",Ie=Lu(Ce?.referrerReward,$e,W),Pe=Lu(Ce?.refereeReward,$e,W);async function De(e){try{de(!0),await navigator.clipboard.writeText(e),setTimeout(()=>de(!1),2e3)}catch{}}n(()=>{const e=pe.current,t=me.current,n=ue.current;if(!e||!t||!n)return;const r=80;let o=!1,a=0,i="profile"!==ye||ge;const l=t=>{o=t,e.classList.toggle("yt-rw-card--locked",t),t&&(e.scrollTop=0,i=!0,fe(!0))},c=e=>{const t=Math.max(8,78),n=Math.max(0,t-12);if(!i&&e>=t)return i=!0,void fe(!0);i&&e<=n&&(i=!1,fe(!1))},s=(e,t,n)=>Math.min(n,Math.max(t,e)),d=t=>{if(!o){const o=a,i=s(o+t,0,r);a=i,e.scrollTop=i,c(i);const d=t-(i-o);return i>=79&&(l(!0),d>0&&(n.scrollTop+=d)),!0}if(o){if("profile"!==ye)return!1;if(t<0&&n.scrollTop<=0){l(!1);const n=s(a+t,0,r);return a=n,e.scrollTop=n,c(n),!0}return!1}return!1},p=e=>{d(e.deltaY)&&e.preventDefault()};let m=0;const u=e=>{m=e.touches[0]?.clientY??0},g=e=>{const t=e.touches[0]?.clientY??0,n=m-t;m=t;d(n)&&e.preventDefault()},f=()=>{if(a=s(a,0,r),o)return a=r,e.scrollTop=0,i=!0,void fe(!0);e.scrollTop=a,c(a)};e.addEventListener("wheel",p,{passive:!1}),e.addEventListener("touchstart",u,{passive:!0}),e.addEventListener("touchmove",g,{passive:!1}),window.addEventListener("resize",f);const y="profile"!==ye;return fe(y),e.scrollTop=0,n.scrollTop=0,y?(a=r,l(!0)):(i=!1,a=0,l(!1),c(0)),()=>{e.removeEventListener("wheel",p),e.removeEventListener("touchstart",u),e.removeEventListener("touchmove",g),window.removeEventListener("resize",f)}},[ye]);const Ae=async e=>{const t=X?.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 De(t)}if("instagram"===e)return await De(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")};return v?e.createElement("div",{onMouseDown:e=>e.stopPropagation(),ref:pe,className:"yt-rw-card",style:{background:l,borderRadius:C&&!a?"24px":"0px",marginInline:C&&!a?"63px":"0px",height:C&&!a?"95%":"",overflow:C&&!a?"hidden":void 0}},e.createElement("div",{ref:me,className:"yt-rw-head "+(ge||"profile"!==ye?"yt-rw-head--shrink":""),style:{color:d,backgroundColor:l,backgroundImage:ve&&ve.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${ve})`:void 0,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",padding:"profile"!==ye?"0px":"",maxHeight:"profile"!==ye?"0px":"",minHeight:"profile"!==ye?"0px":"",overflow:"profile"!==ye?"hidden":"",alignItems:be?.alignItems,textAlign:be?.textAlign}},e.createElement("button",{className:"yt-rw-close","aria-label":"Close",onClick:ee,style:{color:d}},"×"),!ve&&m&&e.createElement("div",{className:"yt-rw-headBg",style:u?{color:u}:void 0},_),A&&M&&M?.length>0&&e.createElement("div",{className:"yt-rw-logo",style:{alignSelf:be?.alignItems??"",paddingRight:"20px"}},e.createElement("img",{src:M,alt:""})),"profile"==ye&&e.createElement(e.Fragment,null," ",e.createElement("div",{className:"yt-rw-eyebrow",style:{paddingRight:"20px"}},R),e.createElement("div",{className:"yt-rw-title",style:{paddingRight:"20px"}},_," Rewards"))),"profile"!=ye&&e.createElement("div",{className:"yt-rw-backNavigation",style:{backgroundColor:l,backgroundImage:ve&&ve.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${ve})`: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:()=>he("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"==ye?"Ways to Redeem":"wte"==ye?"Ways to Earn":"recentTransactions"==ye?"Recent Transactions":"VIP Tiers")," ",e.createElement("div",{style:{height:"24px",width:"36px",display:"block"}}))),e.createElement("div",{ref:ue,className:"yt-rw-body yt-rw-body--"+("profile"===ye?"back":"forward"),style:{backgroundColor:h,color:b,borderRadius:"profile"!=ye?"0px":""}},"profile"==ye?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rw-content"}," ",$&&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"},we?e.createElement(lg,{value:Number(O)}):" "),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}},H??"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"})))),we?e.createElement("div",{className:"yt-rw-note",style:{color:b}},"Your point balance is"," ",e.createElement("b",{style:{color:b}},Number(V)*Number(O)," in ",W)," ","value. Check how to avail all the benefits in"," ",e.createElement("span",{style:{cursor:"pointer",color:b},onClick:()=>he("wtr"),className:"yt-rw-link"},"redeem options")):e.createElement("div",{className:"yt-rw-note yt-rw-skel",style:{borderRadius:"0px",height:"25px"}}),z&&e.createElement("div",{onClick:()=>he("wte"),className:"yt-rw-cta",style:{borderColor:T,backgroundColor:E,color:k,borderRadius:F}},e.createElement("div",{className:"yt-rw-cta-left",style:{color:k}},B&&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 ",H??"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"})))),$&&e.createElement("div",{className:"yt-rw-rate"},e.createElement("div",{className:"yt-rw-rate__icon"},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"},`1 ${H} = 1 ${W}`),e.createElement("p",{className:"yt-rw-rate__sub"},`No min. order value required ${j&&`• redeem upto ${j} ${H}`}`)),e.createElement(bu,{setScreenType:he,themePrimaryColor:g,themeContrastColor:f,themeSecondaryColor:y,themeSecondaryContrastColor:x,showCTA:!0,couponCode:Z,couponHeading:Q,copyFunction:De,borderRadius:F}),I&&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"},Fe?e.createElement(Mu,{title:Ce?.offerTitle,referrerReward:Ie,refereeReward:Pe}):e.createElement(e.Fragment,null,"Invite a friend to make an order • Earn ",H??"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"===ze?"Share your referral code":"Share your referral link"),e.createElement("div",{style:{display:"flex",gap:"7px",justifyContent:"referral_code"===ze?"center":void 0,alignItems:"center"}},"referral_code"===ze?e.createElement("div",{className:"yt-rw-codebox",style:{color:w,borderRadius:F}},X):e.createElement("div",{className:"yt-rw-inputrow",style:{borderRadius:F}},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:X,readOnly:!0})),e.createElement("button",{className:"yt-rw-copy",type:"button",style:{cursor:"pointer",borderRadius:F},onClick:()=>De(X)},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:()=>Ae("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:()=>Ae("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:()=>Ae("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:()=>Ae("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:()=>Ae("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"},"They sign up on store"))),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"))))),P&&e.createElement("div",{className:"yt-rw-cta",style:{borderColor:T,backgroundColor:S,color:N,borderRadius:F},onClick:()=>he("recentTransactions")},e.createElement("div",{className:"yt-rw-cta-left",style:{color:N}},B&&e.createElement("span",{className:"yt-rw-coin"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"20",viewBox:"0 0 19 20",fill:"none"},e.createElement("path",{d:"M15.2227 4.6122C16.6309 6.03777 17.4185 7.96217 17.4139 9.96596C17.4139 14.1477 14.0643 17.5374 9.93178 17.5374V16.0231C13.2375 16.0231 15.9178 13.311 15.9178 9.96596C15.9216 8.36273 15.2912 6.82305 14.1642 5.6828C13.6119 5.12081 12.9532 4.67449 12.2265 4.3699C11.4998 4.06531 10.7197 3.90857 9.93178 3.90882C7.24846 3.90882 4.97704 5.69567 4.21762 8.1579L5.24128 7.45906C5.32266 7.4035 5.41427 7.36469 5.5108 7.34489C5.60732 7.32509 5.70681 7.32469 5.80349 7.34371C5.90017 7.36274 5.9921 7.40081 6.07392 7.45571C6.15574 7.51061 6.22582 7.58124 6.28008 7.66349C6.39113 7.83011 6.43218 8.03374 6.39436 8.23037C6.35653 8.42701 6.24287 8.60087 6.07792 8.7144L3.59676 10.4081C3.51539 10.4637 3.42377 10.5025 3.32725 10.5223C3.23073 10.5421 3.13123 10.5425 3.03455 10.5235C2.93787 10.5045 2.84594 10.4664 2.76412 10.4115C2.6823 10.3566 2.61222 10.286 2.55796 10.2037L0.885436 7.69302C0.774143 7.52633 0.732957 7.32253 0.770791 7.12571C0.808624 6.92889 0.922434 6.75489 1.08759 6.64135C1.16897 6.58579 1.26059 6.54698 1.35711 6.52718C1.45363 6.50737 1.55313 6.50697 1.64981 6.526C1.74649 6.54502 1.83841 6.5831 1.92023 6.63799C2.00206 6.69289 2.07214 6.76353 2.12639 6.84577L2.76164 7.79902C3.68156 4.67353 6.54356 2.39453 9.93178 2.39453C11.998 2.39453 13.8689 3.24253 15.2227 4.6122Z",fill:"currentColor"}),e.createElement("path",{d:"M13.2584 10.4999H10.2654V6.71417C10.2654 6.29623 9.93076 5.95703 9.51736 5.95703C9.10396 5.95703 8.7693 6.29623 8.7693 6.71417V11.257C8.7687 11.3559 8.78758 11.4538 8.82485 11.5454C8.86212 11.6369 8.91705 11.7202 8.98652 11.7905C9.05598 11.8608 9.13861 11.9168 9.22969 11.9552C9.32078 11.9935 9.41852 12.0136 9.51736 12.0142H13.2584C13.6718 12.0142 14.0065 11.675 14.0065 11.257C14.0065 10.8391 13.6718 10.4999 13.2584 10.4999Z",fill:"currentColor"})))," ","Recent Transactions"),e.createElement("div",{className:"yt-rw-cta-right",style:{color:N}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M13.4361 17.9852C13.4474 17.9965 13.7942 18.0835 14.2067 18.1783C14.6193 18.2731 14.9613 18.3362 14.9668 18.3186C14.9723 18.3009 15.015 18.0146 15.0617 17.6822C15.1554 17.0148 15.3825 16.2356 15.6251 15.7482C16.3812 14.2294 17.7379 13.2237 19.3834 12.9623L19.8024 12.8957L19.8024 12.2248L19.8024 11.5538L19.4227 11.49C16.9345 11.0726 15.3123 9.21214 15.0088 6.42796C14.989 6.24616 14.9653 6.09746 14.9562 6.09746C14.8723 6.09746 13.4818 6.43256 13.4555 6.45911C13.4365 6.4783 13.4506 6.64874 13.487 6.83779C13.8894 8.93118 15.0414 10.6346 16.5365 11.3469L16.8951 11.5177L9.52044 11.5311L4.85718 11.5396L4.85718 12.8975L9.53244 12.906L16.8897 12.9195L16.437 13.1488C15.2624 13.7439 14.3325 14.9112 13.7848 16.478C13.6288 16.9244 13.3933 17.942 13.4361 17.9852Z",fill:"currentColor"})))),D&&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"),Ee&&e.createElement("p",{className:"yt-rw-tiers_desc",style:{color:b,fontSize:"15px"}},Ee.name)),e.createElement("div",{className:"yt-rw-tiers__gems"},e.createElement(ag,{className:"yt-gem yt-gem--violet",gradientPrefix:"vip-violet",overlayColor:"#8E74F4"}),e.createElement(ag,{className:"yt-gem yt-gem--gold",gradientPrefix:"vip-gold",overlayColor:"#F3BE00"}),e.createElement(ag,{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,Se??Ne?.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}}," ",Te||(Ne?.catalogDealsProducts?.length??0)>0?"special deals":"special discounts")),e.createElement("button",{onClick:()=>he("vip"),style:{"--hover-bg":y,"--hover-text":x}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.createElement("path",{opacity:"0.3",d:"M7.85791 0.124023C7.85791 0.124023 7.85791 5.176 9.23942 6.55751C10.6209 7.93902 15.6729 7.93902 15.6729 7.93902C15.6729 7.93902 10.7465 7.81343 9.23942 9.32053C7.73233 10.8276 7.85791 15.754 7.85791 15.754C7.85791 15.754 7.85791 10.702 6.4764 9.32053C5.09489 7.93902 0.0429162 7.93902 0.0429162 7.93902C0.0429162 7.93902 5.09489 7.93902 6.4764 6.55751C7.85791 5.176 7.85791 0.124023 7.85791 0.124023Z",fill:"#161616"})),e.createElement("p",null,"Explore Tiers"),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.createElement("path",{opacity:"0.3",d:"M7.85791 0.124023C7.85791 0.124023 7.85791 5.176 9.23942 6.55751C10.6209 7.93902 15.6729 7.93902 15.6729 7.93902C15.6729 7.93902 10.7465 7.81343 9.23942 9.32053C7.73233 10.8276 7.85791 15.754 7.85791 15.754C7.85791 15.754 7.85791 10.702 6.4764 9.32053C5.09489 7.93902 0.0429162 7.93902 0.0429162 7.93902C0.0429162 7.93902 5.09489 7.93902 6.4764 6.55751C7.85791 5.176 7.85791 0.124023 7.85791 0.124023Z",fill:"#161616"}))))),Be&&Ne&&e.createElement("div",{className:"yt-rw-note"},"You’re ",e.createElement("b",null,Be)," away from"," ",e.createElement("b",null,Ne.name))),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:te,style:{background:S,color:N}},"Sign-Out"))),e.createElement("div",{className:"yt-rw-stay-signed-in",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:b||"#000",textAlign:"center",fontFamily:"Poppins",fontSize:9,fontWeight:400,lineHeight:"122%",zIndex:2}},"Stay signed-in with the account you use for checking out")):"wtr"==ye?e.createElement(Eu,{balanceCoins:Number(O),couponList:G,currencyCode:W,onCouponAvail:Y,setScreenType:he,themeSecondaryColor:y,themeSecondaryContrastColor:x,showCTA:!0,couponCode:Z,couponHeading:Q,copyFunction:De,ctaBorderRadius:F}):"vip"==ye?e.createElement(Iu,{onBack:()=>he("profile"),brandRewardTiers:J,balanceCoins:O,userRewardTier:K,currencyCode:W}):"wte"==ye?e.createElement(Du,{ctaPrimaryColor:E??"",ctaContrastColor:k??"",currencyCode:W,userData:ne,activityRewards:re,onBirthdayUpdate:le,onSocialClick:ce,isLoading:ie,brandRewardProgram:oe}):"recentTransactions"==ye?e.createElement(og,{data:ae,tokenName:H,currencySymbol:"INR"===W?"₹":W??"$"}):e.createElement("div",null)),se&&e.createElement(hu,{background:g,textColor:f})):e.createElement("div",null)}function sg({textColor:t="",backgroundColor:n="",position:r="",yOffsetValue:o="",launcherTitle:a="",borderColor:i="",iconType:l="",addVisibilityDelay:c=!1,addAttentionWaves:s=!0,onClick:d=()=>{}}){let p="",m="",u="",g="";return"top-left"==r?(p="0px",m=o):"top-right"==r?(u="0px",m=o):"bottom-right"==r?(u="0px",g=o):(p="0px",g=o),a?.trim()?.length>0?e.createElement("div",{onClick:d,className:"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:p,right:u,top:m,bottom:g,borderColor:i,border:""!=i?"1px solid":"none"}},s&&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&&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:"M16.1 7.81003L13.15 4.84003L5.97 12.03L8.92 14.99L13.15 19.21L16.11 16.25L16.12 16.25L16.12 7.80003L16.1 7.81003ZM24 12L18 1.53003L6 1.53003L-4.57658e-07 12L6 22.47L18 22.47L24 12ZM7.15 20.47L2.27 12L7.15 3.53003L16.88 3.53003L21.76 12L16.88 20.47L7.15 20.47Z",fill:""!=t?t:"white"})),e.createElement("p",{style:{color:t,transform:"top-right"==r||"bottom-right"==r?"scale(-1, 1)":""}},a),("top-right"==r||"bottom-right"==r)&&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:"M16.1 7.81003L13.15 4.84003L5.97 12.03L8.92 14.99L13.15 19.21L16.11 16.25L16.12 16.25L16.12 7.80003L16.1 7.81003ZM24 12L18 1.53003L6 1.53003L-4.57658e-07 12L6 22.47L18 22.47L24 12ZM7.15 20.47L2.27 12L7.15 3.53003L16.88 3.53003L21.76 12L16.88 20.47L7.15 20.47Z",fill:""!=t?t:"white"}))):e.createElement("div",{onClick:d,className:"yt-launcher-sticky",style:{cursor:"pointer",backgroundColor:n,transform:"top-right"==r||"bottom-right"==r?"rotate(-90deg)":"",left:p,right:u,top:m,bottom:g,borderColor:i}},s&&e.createElement(e.Fragment,null,e.createElement("span",{className:"yt-ring"}),e.createElement("span",{className:"yt-ring yt-ring2"})),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"22",viewBox:"0 0 24 22",fill:"none"},e.createElement("path",{d:"M16.1 6.81003L13.15 3.84003L5.97 11.03L8.92 13.99L13.15 18.21L16.11 15.25L16.12 15.25L16.12 6.80003L16.1 6.81003ZM24 11L18 0.530029L6 0.530029L-4.57658e-07 11L6 21.47L18 21.47L24 11ZM7.15 19.47L2.27 11L7.15 2.53003L16.88 2.53003L21.76 11L16.88 19.47L7.15 19.47Z",fill:""!=t?t:"white"})))}function dg({textColor:t="",backgroundColor:n="",position:r="",yOffsetValue:o="20px",launcherTitle:a="Rewards",borderColor:i="",iconType:l="",addVisibilityDelay:c=!1,addAttentionWaves:s=!0,onClick:d=()=>{}}){let p="",m="",u="";return"right"==r?(m=o,u=o):(p=o,u=o),e.createElement("div",{onClick:d,className:"yt-launcher-bubble",style:{cursor:"pointer",backgroundColor:n,left:p,right:m,bottom:u,border:""!=i?"1px solid":"none",borderColor:i,borderRadius:0==a?.length?"100px":"",padding:0==a?.length?"10px":""}},s&&e.createElement(e.Fragment,null,e.createElement("span",{className:"yt-ring"}),e.createElement("span",{className:"yt-ring yt-ring2"})),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:"M7.81003 7.9L4.84003 10.85L12.03 18.03L14.99 15.08L19.21 10.85L16.25 7.89L16.25 7.88L7.80003 7.88L7.81003 7.9ZM12 1.83063e-06L1.53003 6L1.53003 18L12 24L22.47 18L22.47 6L12 1.83063e-06ZM20.47 16.85L12 21.73L3.53003 16.85L3.53003 7.12L12 2.24L20.47 7.12L20.47 16.85Z",fill:""!=t?t:"#0A0A0A"})),a?.length>0&&e.createElement("p",{style:{color:t}},a))}function pg({textColor:n="",backgroundColor:r="",launcherTitle:a="",offerTitle:l="",borderColor:c="",iconType:s="",addVisibilityDelay:d=!1,onClick:p=()=>{}}){const m=o(null),u=o(null),[g,f]=t(!1),[y,x]=t(12);return i(()=>{const e=m.current,t=u.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);x(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,c]),e.createElement("div",{onClick:p,className:"yt-launcher-ribbon",style:{color:n,backgroundColor:r,borderColor:c,border:""!==c?"1px solid":"none"}},e.createElement("div",{className:"yt-ribbon-viewport",ref:m,"aria-live":"polite"},e.createElement("div",{className:"yt-ribbon-track "+(g?"yt-is-marquee":""),ref:u},e.createElement("span",{style:{color:n}},a),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none","aria-hidden":"true"},e.createElement("path",{d:"M6.64802 7.22015L4.27202 9.58015L10.024 15.3241L12.392 12.9641L15.768 9.58015L13.4 7.21215L13.4 7.20415L6.64002 7.20415L6.64802 7.22015ZM10 0.900148L1.62402 5.70015L1.62402 15.3001L10 20.1001L18.376 15.3001L18.376 5.70015L10 0.900148ZM16.776 14.3801L10 18.2841L3.22402 14.3801L3.22402 6.59615L10 2.69215L16.776 6.59615L16.776 14.3801Z",fill:""!==n?n:"white"})),e.createElement("p",{style:{color:n}},l),g&&e.createElement(e.Fragment,null,e.createElement("span",{style:{color:n}},a),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none","aria-hidden":"true"},e.createElement("path",{d:"M6.64802 7.22015L4.27202 9.58015L10.024 15.3241L12.392 12.9641L15.768 9.58015L13.4 7.21215L13.4 7.20415L6.64002 7.20415L6.64802 7.22015ZM10 0.900148L1.62402 5.70015L1.62402 15.3001L10 20.1001L18.376 15.3001L18.376 5.70015L10 0.900148ZM16.776 14.3801L10 18.2841L3.22402 14.3801L3.22402 6.59615L10 2.69215L16.776 6.59615L16.776 14.3801Z",fill:""!==n?n:"white"})),e.createElement("p",{style:{color:n}},l)))))}Ct('@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}\n\np {\n margin: 0px;\n}\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}\n.yt-launcher-stickyText svg {\n transform: rotate(-90deg);\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}\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;\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;\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');function mg({launcherType:t="",textColor:n="",backgroundColor:r="",position:o="",yOffsetValue:a="0px",launcherTitle:i="",offerTitle:l="",borderColor:c="",iconType:s="",addVisibilityDelay:d=!1,addAttentionWaves:p=!0,onClick:m=()=>{}}){const u=(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);switch(t){case"sticky":return e.createElement(sg,{onClick:m,textColor:n,backgroundColor:r,position:o,yOffsetValue:u,borderColor:c,iconType:s,addAttentionWaves:p,addVisibilityDelay:d,launcherTitle:i});case"bubble":return e.createElement(dg,{onClick:m,textColor:n,backgroundColor:r,position:o,yOffsetValue:u,borderColor:c,iconType:s,addAttentionWaves:p,addVisibilityDelay:d,launcherTitle:i});case"ribbon":return e.createElement(pg,{onClick:m,offerTitle:l,textColor:n,backgroundColor:r,borderColor:c,iconType:s,addVisibilityDelay:d,launcherTitle:i});default:return e.createElement("div",null)}}function ug({phoneLabel:a="9315313208",authType:i,email:l,length:c=4,onConfirm:s,onResend:d,onChangeNumber:p,setToast:m,loading:u=!1,tone:g="#B85552",themeBackgroundColor:f,themeAccentColor:y,themeTextColor:x,ctaPrimaryColor:h,ctaPrimaryContrastColor:b,countryCode:w}){const v=Math.min(6,Math.max(4,c)),[C,E]=t(Array(v).fill("")),k=o([]),[T,S]=t(!1);n(()=>{k.current[0]?.focus()},[]);const N=r(()=>C.join(""),[C]);function B(e,t){const n=[...C];n[e]=t,E(n)}async function F(e){if(e.every(e=>""!==e)){S(!0);const t=e.join("");if(s){await s(t)||(S(!1),m("OTP did not match. Please try again!"),setTimeout(()=>m(null),3e3))}}}function z(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(),F(r)}return e.createElement("div",{className:"yt-otp-wrap",style:{"--otp-accent":g}},e.createElement("h3",{className:"yt-otp-title",style:{color:x}},"OTP Verification"),"email"==i?e.createElement("p",{className:"yt-otp-subtext",style:{color:x}},"A code has been sent to your email"," ",e.createElement("span",{className:"yt-otp-phone"},l)):e.createElement("p",{className:"yt-otp-subtext",style:{color:x}},"A code has been sent to your registered no"," ",e.createElement("span",{className:"yt-otp-phone"},a)),e.createElement("button",{style:{color:y,cursor:"pointer"},className:"yt-otp-link",onClick:p,type:"button"},"phone"==i?"change number?":"change email?"),e.createElement("hr",{className:"yt-otp-rule",style:{margin:"12px"}}),e.createElement("form",{className:"yt-otp-form",onSubmit:async function(e){if(e.preventDefault(),N.length===v&&s){await s(N)||(S(!1),m("Could not verify OTP!"),setTimeout(()=>m(null),2e3))}}},e.createElement("div",{className:"yt-otp-boxes","aria-label":`Enter ${v}-digit code`},Array.from({length:v}).map((t,n)=>e.createElement("input",{key:n,type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:1,value:C[n],onChange:e=>function(e,t){const n=t.target.value.replace(/\D/g,"");if(!n)return;if(n.length>1)return void z(e,n);const r=[...C];r[e]=n,E(r),e<v-1&&k.current[e+1]?.focus(),F(r)}(n,e),onPaste:e=>function(e,t){t.preventDefault(),z(e,t.clipboardData.getData("text"))}(n,e),onKeyDown:e=>function(e,t){if("Backspace"===t.key){if(C[e])return B(e,""),void S(!1);e>0&&(k.current[e-1]?.focus(),B(e-1,""),S(!1))}else"ArrowLeft"===t.key&&e>0?k.current[e-1]?.focus():"ArrowRight"===t.key&&e<v-1&&k.current[e+1]?.focus()}(n,e),ref:e=>k.current[n]=e,className:"yt-otp-box "+(C[n]?"yt-filled":""),"aria-label":`Digit ${n+1}`}))),e.createElement("p",{className:"yt-otp-hint",style:{color:x}},"Didn’t receive any code?"," ",e.createElement("button",{style:{color:y,cursor:"pointer"},type:"button",className:"yt-otp-link",onClick:d},"resend code")),e.createElement("button",{style:{width:"100%",color:b,background:h},disabled:!T,type:"submit",className:"yt-rwmd-cta"},T?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Confirm")))}Ct('/* --------- 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}\np,\nh3 {\n margin: 0px;\n}\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.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: 326.133px;\nheight: 0.718px;\nbackground: #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');Ct(".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 gg={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 fg({onClose:t,handleSessionDetected:n}){return e.createElement("div",{className:"yt-asd-ol",style:gg.overlay,role:"dialog","aria-modal":"true"},e.createElement("div",{className:"yt-asd-card",style:gg.card},e.createElement("h4",{className:"yt-asd-title",style:gg.title},"Active Session Found!"),e.createElement("p",{className:"yt-asd-desc",style:gg.desc},"You’re already signed in. Tap below to refresh and access your loyalty rewards."),e.createElement("button",{className:"yt-asd-btn",style:gg.btn,onClick:n},"Refresh & Continue")))}function yg({config:r}){const{themeBackgroundColor:a="",themeTextColor:i="",bannerBackground:l="",bannerBackgroundType:c="shape",bannerImage:s="",bannerTextColor:d="",watermarkColor:p="#fff",bannerTextAlignment:m="start",showWatermark:u=!0,showLogo:g=!1,brandLogoUrl:f="",guestGreeting:y="Welcome to",existingUserGreeting:x="",emailRequired:h,onPhoneChange:b,onEmailChange:w,validatePhone:v,setEmailRequired:C,onClose:E=()=>{},onRegister:k,handleChangeNumber:T,handleResendOtp:S,handleSessionDetected:N,onSendOTP:B,isSessionDetected:F,authType:z="default",formFilled:$=!1,redirectUrl:I="",ctaTitle:D="Register Now",ctaPrimaryColor:A="",ctaPrimaryContrastColor:_="",themeAccentColor:L="",registerLink:R="",brandTitle:M="My Pahadi Rewards",widgetOpen:O=!0,heading:V="Get Started",subcopy:W="Welcome to Moonstruck Loyalty Program <> Earn as you Buy",termsHref:H="#",privacyHref:j="#",isLoading:q=!0,styleVars:U={},countryCode:Q,isMobilePreview:Z,viewportMode:G}=r||{},Y=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"==z);const[J,ee]=t(""),[te,ne]=t(""),[re,oe]=t(!1),[ae,ie]=t(null),[le,ce]=t(Q);console.log("I AM IN MOBILE");const se="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(!O)return;const e=e=>"Escape"===e.key&&E?.();return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[O,E]),!O)return null;const[ge,fe]=t(!1);return n(()=>{fe($)},[$]),e.createElement("section",{onMouseDown:e=>e.stopPropagation(),className:"yt-rwmd-dialog"+("mobile"===G?" yt-rwmd-force-mobile":""),role:"dialog","aria-modal":"true","aria-labelledby":"yt-rwmd-title",onClick:e=>e.stopPropagation(),ref:Y,style:{background:a}},F&&e.createElement(fg,{handleSessionDetected:N??(()=>{})}),e.createElement("header",{className:"yt-rwmd-hero",style:{backgroundColor:l,backgroundImage:"static"!==c&&s&&s.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${s})`: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"===c||!s)&&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}},M),e.createElement("div",{className:"yt-rwmd-hero_header",style:{alignItems:se.alignItems,textAlign:se.textAlign,width:"100%"}},g&&f&&f?.length>0&&e.createElement("div",{className:"yt-rwmd-logo",style:{alignSelf:se.alignItems}},e.createElement("img",{src:f,alt:""})),e.createElement("p",{className:"yt-rwmd-hero-eyebrow",style:{color:d}},y),e.createElement("h2",{id:"yt-rwmd-title",className:"yt-rwmd-hero-title",style:{color:d}},M))),e.createElement("div",{className:"yt-rwmd-content",style:{background:a}},e.createElement("div",{className:"yt-rwmd-body",style:{color:i}},ae&&e.createElement(hu,{displayText:ae,background:"#000000",textColor:"#ffffff"}),"phone"!=z&&"email"!=z||!$?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-body_head"},e.createElement("h3",{className:"yt-rwmd-lead",style:{color:i}},V),e.createElement("p",{className:"yt-rwmd-subcopy",style:{color:i}},W)),e.createElement("hr",{style:{width:"100%",height:"0.2px",border:"none",borderColor:"red",margin:"0px"}}),"phone"==z?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{display:"flex",alignItems:"center",paddingLeft:"10px"}},e.createElement(P,{defaultCountry:"in",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,c=o?(String(o).match(/\./g)||[]).length:10;v?.(l.length>=c);const s=`+${a}${l}`;b?.(s),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(wu,{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)&&!bg(te),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:_,background:A},onClick:async()=>{oe(!0);await(B?.())?oe(!1):(oe(!1),ie("An error occured!"))}},re?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Send OTP")):"email"==z?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:!bg(te),className:"yt-rwmd-cta",style:{margin:"0px",color:_,background:A},onClick:async()=>{oe(!0);await(B?.())?oe(!1):(oe(!1),ie("An error occured!"))}},re?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",{className:"yt-rwmd-cta",style:{color:_,background:A},onClick:()=>{k?.(),""!=R&&(window.location.href=R)}},D),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:L}},"T&Cs")," ","and"," ",e.createElement("a",{href:"https://yourtoken.io/privacy-policy",target:"_blank",rel:"noreferrer",style:{color:L}},"Privacy Policy"))):e.createElement(ug,{setToast:ie,authType:z,email:te,countryCode:le,themeAccentColor:L,themeBackgroundColor:a,themeTextColor:i,ctaPrimaryColor:A,ctaPrimaryContrastColor:_,phoneLabel:J,length:4,onConfirm:k,onResend:S,onChangeNumber:T,loading:q,tone:"#B85552"}))),e.createElement("div",{className:"yt-rwmd-bottom_tape1"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--left"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},de.map((e,t)=>me(`queue-a-${t}`))),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},de.map((e,t)=>me(`queue-b-${t}`))))),e.createElement("div",{className:"yt-rwmd-bottom_tape2"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--right"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},pe.map((e,t)=>ue(`signup-a-${t}`))),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},pe.map((e,t)=>ue(`signup-b-${t}`))))))}function xg({config:r}){const{themeBackgroundColor:o="",themeTextColor:a="",themeAccentColor:i="",bannerBackground:l="",bannerTextColor:c="",watermarkColor:s="#fff",widgetRoundedCorners:d=!0,guestWidgetImage:p,bannerTextAlignment:m="start",showWatermark:u=!0,showLogo:g=!1,logourl:f="",guestGreeting:y="Welcome to",existingUserGreeting:x="",phone:h="",email:b="",emailRequired:w,onPhoneChange:v,onEmailChange:C,validatePhone:E,setEmailRequired:k,onClose:T=()=>{},onRegister:S=e=>Promise,handleChangeNumber:N,handleResendOtp:B,handleSessionDetected:F,onSendOTP:z,isSessionDetected:$,isLoading:I,authType:D="phone",countryCode:A,formFilled:_=!1,redirectUrl:L="",ctaTitle:R="Register Now",ctaPrimaryColor:M="",ctaPrimaryContrastColor:O="",registerLink:V="",brandTitle:W="Pahadi",widgetOpen:H=!0,heading:j="Get Started",subcopy:q="Welcome to Moonstruck Loyalty Program <> Earn as you Buy",termsHref:U="#",privacyHref:Q="#",styleVars:Z={}}=r||{},[G,Y]=t(""),[X,K]=t(""),[J,ee]=t(!1),[te,ne]=t(!1),[re,oe]=t(null),[ae,ie]=t(A);n(()=>{ee(_)},[_]);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"))),ce=()=>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-guestDesktop"},e.createElement("div",{className:"yt-guestDesktop-card",style:{background:o}},$&&e.createElement(fg,{handleSessionDetected:F??(()=>{})}),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(hu,{displayText:re,background:"#000000",textColor:"#ffffff"}),e.createElement("div",{style:{background:"transparent",display:"flex",gap:"2px",flexDirection:"column",alignItems:"start"}},e.createElement("div",{className:"yt-guestDesktop-title",style:{color:a}},"Login now to avail best offers!"),e.createElement("div",{className:"yt-guestDesktop-subtitle",style:{color:a}},`Welcome to ${W} Loyalty Program. Register now to avail best deals.`)),"phone"!=D&&"email"!=D||!_?e.createElement("div",{className:"yt-guestDesktop-cta"},"phone"==D?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{display:"flex",alignItems:"center",paddingLeft:"10px"}},e.createElement(P,{defaultCountry:"in",value:G,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,c=o?(String(o).match(/\./g)||[]).length:10;E?.(l.length>=c);const s=`+${a}${l}`;v?.(s),Y(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(wu,{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)&&!bg(X),className:"yt-rwmd-cta",style:{margin:"0px",color:O,background:M},onClick:async()=>{ne(!0);await(z?.())?ne(!1):(ne(!1),oe("An error occured!"),setTimeout(()=>oe(null),3e3))}},te?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Send OTP")):"email"==D?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:!bg(X),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:O,background:M},onClick:async()=>{ne(!0);await(z?.())?ne(!1):(ne(!1),oe("An error occured!"))}},te?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",null,e.createElement("p",null,R??"Register Now"),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.7071 6.29289C18.0976 6.68342 18.0976 7.31658 17.7071 7.70711L7.70711 17.7071C7.31658 18.0976 6.68342 18.0976 6.29289 17.7071C5.90237 17.3166 5.90237 16.6834 6.29289 16.2929L16.2929 6.29289C16.6834 5.90237 17.3166 5.90237 17.7071 6.29289Z",fill:"white"}),e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 7C6 6.44772 6.44772 6 7 6H17C17.5523 6 18 6.44772 18 7V17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17V8H7C6.44772 8 6 7.55228 6 7Z",fill:"white"})))):e.createElement(ug,{setToast:oe,authType:D,email:b??X,countryCode:ae,themeAccentColor:i,themeBackgroundColor:o,themeTextColor:a,ctaPrimaryColor:M,ctaPrimaryContrastColor:O,phoneLabel:G,length:4,onConfirm:S,onResend:()=>B?.(),onChangeNumber:N,loading:!1,tone:"#B85552"}),e.createElement("div",{className:"yt-guestDesktop-terms",style:{color:a}},"By signing-in, you agree to our"," ",e.createElement("span",{style:{color:i}},"T&Cs")," and"," ",e.createElement("span",{style:{color:i}},"Privacy Policy"))),!_&&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"},ce()),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},ce())))))),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 hg({config:r}){const{themeBackgroundColor:a="",themeTextColor:i="",bannerBackground:l="",bannerBackgroundType:c="shape",bannerImage:s="",bannerTextColor:d="",watermarkColor:p="#fff",widgetRoundedCorners:m=!0,bannerTextAlignment:u="start",showWatermark:g=!0,showLogo:f=!1,logourl:y="",guestGreeting:x="Welcome to",existingUserGreeting:h="",emailRequired:b,onPhoneChange:w,onEmailChange:v,onClose:C=()=>{},onRegister:E,handleChangeNumber:k,handleResendOtp:T,handleSessionDetected:S,onSendOTP:N,isSessionDetected:B,authType:F="default",countryCode:z,validatePhone:$,setEmailRequired:I,formFilled:D=!1,redirectUrl:A="",ctaTitle:_="Register Now",ctaMainColor:L="",ctaMainContrastColor:R="",ctaPrimaryColor:M="",ctaPrimaryContrastColor:O="",themeAccentColor:V="",registerLink:W="",brandTitle:H="My Pahadi Rewards",brandLogoUrl:j,widgetOpen:q=!0,heading:U="Get Started",subcopy:Q="Welcome to YourToken Loyalty Program <> Earn as you Buy",termsHref:Z="#",privacyHref:G="#",isLoading:Y=!0,styleVars:X={}}=r||{},K=o(null);t("ytAuth"==F);const[J,ee]=t(""),[te,ne]=t(""),[re,oe]=t(!1),[ae,ie]=t(null),[le,ce]=t(z);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[se,de]=t(!1);n(()=>{de(D)},[D]);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("section",{onMouseDown:e=>e.stopPropagation(),className:"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"!==c&&s&&s.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${s})`:void 0,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",borderBottomLeftRadius:"static"!==c&&s&&s.length>0?"8px":void 0,borderBottomRightRadius:"static"!==c&&s&&s.length>0?"8px":void 0}},e.createElement("button",{className:"yt-rwmd-close","aria-label":"Close",onClick:C,style:{color:d}},"×"),("static"===c||!s)&&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}},H),e.createElement("div",{className:"yt-rwmd-hero_header",style:{alignItems:u,width:"100%"}},f&&j&&j?.length>0&&e.createElement("div",{className:"yt-rwmd-logo",style:{alignSelf:u}},e.createElement("img",{src:j,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}},H))),e.createElement("div",{className:"yt-rwmd-content",style:{background:a}},B&&e.createElement(fg,{handleSessionDetected:S??(()=>{})}),e.createElement("div",{className:"yt-rwmd-bottom_tape1"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--left"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},pe()),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},pe()))),e.createElement("div",{className:"yt-rwmd-bottom_tape2"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--right"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},me()),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},me()))),e.createElement("div",{className:"yt-rwmd-body",style:{color:i}},ae&&e.createElement(hu,{displayText:ae,background:"#000000",textColor:"#ffffff"}),"phone"!=F&&"email"!=F||!D?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"==F?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{display:"flex",alignItems:"center",paddingLeft:"10px"}},e.createElement(P,{defaultCountry:"in",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,c=o?(String(o).match(/\./g)||[]).length:10;$?.(l.length>=c);const s=`+${a}${l}`;w?.(s),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"}},Y?e.createElement(wu,{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)&&!bg(te),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:O,background:M},onClick:async()=>{oe(!0);await(N?.())?oe(!1):(oe(!1),ie("An error occured!"),setTimeout(()=>ie(null),3e3))}},re?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Send OTP")):"email"==F?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:!bg(te),className:"yt-rwmd-cta",style:{margin:"0px",color:O,background:M},onClick:async()=>{oe(!0);await(N?.())?oe(!1):(oe(!1),ie("An error occured!"),setTimeout(()=>ie(null),3e3))}},re?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",{className:"yt-rwmd-cta",style:{color:O,background:M},onClick:()=>{E?.(),""!=W&&(window.location.href=W)}},_),e.createElement("p",{className:"yt-rwmd-terms",style:{color:i}},"By signing-in, you agree to our"," ",e.createElement("a",{href:"https://yourtoken.io/terms-of-service",target:"_blank",rel:"noreferrer",style:{color:V}},"T&Cs")," ","and"," ",e.createElement("a",{href:"https://yourtoken.io/privacy-policy",target:"_blank",rel:"noreferrer",style:{color:V}},"Privacy Policy"))):e.createElement(ug,{setToast:ie,authType:F,email:te,countryCode:le,themeAccentColor:V,themeBackgroundColor:a,themeTextColor:i,ctaPrimaryColor:M,ctaPrimaryContrastColor:O,phoneLabel:J,length:4,onConfirm:E,onResend:T,onChangeNumber:k,loading:!1,tone:"#B85552"}))))}const bg=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);function wg({config:r}){const{guestWidgetImage:o,isMobilePreview:a,viewportMode:i}=r,[l,c]=t("undefined"!=typeof window&&window.innerWidth<=480);n(()=>{if("undefined"==typeof window)return;const e=()=>c(window.innerWidth<=480);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);return"mobile"===i||"desktop"!==i&&(a||l)?e.createElement(yg,{config:r}):o&&o?.length>0?e.createElement(xg,{config:r}):e.createElement(hg,{config:r})}function vg({signedIn:r=!1,previewMode:o=!1,bannerBackground:a="#4f486a",bannerBackgroundType:i="shape",bannerImage:l="",bannerTextColor:c="",themePrimaryColor:s="",themeContrastColor:d="",themeSecondaryColor:p="",themeSecondaryContrastColor:m="",themeBackgroundColor:u="#fff",themeTextColor:g="",themeAccentColor:f="",widgetOpen:y=!0,widgetPosition:x="center",guestWidgetImage:h="",widgetRoundedCorners:b=!1,ctaMainColor:w="",ctaMainContrastColor:v="",ctaPrimaryColor:C="",ctaPrimaryContrastColor:E="",ctaBorderColor:k="",ctaSecondaryColor:T="",ctaSecondaryContrastColor:S="",ctaShowIcon:N=!0,ctaBorderRadius:B="0px",showWaysToEarn:F=!0,showWCoinValue:z=!0,showReferral:$=!0,showTransactions:I=!0,showVipSection:P=!0,brandName:D="YourToken",brandLogoUrl:A="",headingEyebrow:_="Welcome to",balanceCoins:L,maxRedeemableCoins:R=0,coinValInr:M="1",currencyCode:O="INR",tokenName:V="COINS",rateTitle:W="",rateSub:H="No min. order value required • redeem upto 200 coins",couponHeading:j="You’ve one reward coupon active",couponCode:q="",couponList:U=[],onCouponAvail:Q,couponImage:Z="https://images.unsplash.com/photo-1606318313647-137fcb1d5cd2?q=80&w=800&auto=format&fit=crop",referralLink:G="",userRewardTier:Y,brandRewardTiers:X,watermarkColor:K="#fff",bannerTextAlignment:J="start",showWatermark:ee=!0,showLogo:te=!1,logourl:ne="",guestGreeting:re="Welcome to",userGreeting:oe="Welcome to",existingUserGreeting:ae="",phone:ie="",email:le="",emailRequired:ce=!1,onPhoneChange:se=e=>{},onEmailChange:de=e=>{},validatePhone:pe,setEmailRequired:me,onClose:ue=()=>{},onRegister:ge,onLogout:fe,handleChangeNumber:ye,handleResendOtp:xe,handleSessionDetected:he,onSendOTP:be,isSessionDetected:we,authType:ve="phone",formFilled:Ce=!1,redirectUrl:Ee="",ctaTitle:ke="Register Now",registerLink:Te="",brandTitle:Se="",heading:Ne="Get Started",subcopy:Be="Welcome to YourToken Loyalty Program <> Earn as you Buy",termsHref:Fe="#",privacyHref:ze="#",isLoading:$e,userData:Ie,activityRewards:Pe,brandRewardProgram:De,recentTransactionsData:Ae,onBirthdayUpdate:_e,onSocialClick:Le,countryCode:Re,isMobilePreview:Me,viewportMode:Oe}){n(()=>{const e=e=>{"Escape"===e.key&&ue()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[ue]),n(()=>{if(!y)return;const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[y]);const[Ve,We]=t("undefined"!=typeof window&&window.innerWidth<=480);n(()=>{if("undefined"==typeof window)return;const e=()=>We(window.innerWidth<=480);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const He="mobile"===Oe||"desktop"!==Oe&&Ve;return e.createElement("div",{style:{placeItems:r?x:"center"},onMouseDown:e=>{e.target===e.currentTarget&&ue()},className:"yt-reward-loyalty-overlay"},r?e.createElement(cg,{config:{isMobile:He,previewMode:o,bannerTextAlignment:J,bannerBackground:a,bannerBackgroundType:i,bannerImage:l,bannerTextColor:c,themePrimaryColor:s,themeContrastColor:d,themeSecondaryColor:p,themeSecondaryContrastColor:m,themeBackgroundColor:u,themeTextColor:g,themeAccentColor:f,widgetOpen:y,widgetPosition:x,widgetRoundedCorners:b,ctaPrimaryColor:C,ctaPrimaryContrastColor:E,ctaBorderColor:k,ctaSecondaryColor:T,ctaSecondaryContrastColor:S,ctaShowIcon:N,ctaBorderRadius:B,showWaysToEarn:F,showWCoinValue:z,showReferral:$,showTransactions:I,showVipSection:P,showLogo:te,brandName:D,brandLogoUrl:A,headingEyebrow:_,userGreeting:oe,balanceCoins:L,maxRedeemableCoins:R,coinValInr:M,currencyCode:O,tokenName:V,rateTitle:W,rateSub:H,couponHeading:j,couponCode:q,couponImage:Z,couponList:U,onCouponAvail:Q,referralLink:G,userRewardTier:Y,brandRewardTiers:X,userData:Ie,activityRewards:Pe,brandRewardProgram:De,recentTransactionsData:Ae,isLoading:$e,onBirthdayUpdate:_e,onSocialClick:Le,onClose:ue,onLogout:fe}}):e.createElement(wg,{config:{isLoading:$e,themeBackgroundColor:u,themeTextColor:g,themeAccentColor:f,bannerBackground:a,bannerBackgroundType:i,bannerImage:l,bannerTextColor:c,watermarkColor:K,widgetRoundedCorners:b,guestWidgetImage:h,bannerTextAlignment:J,showWatermark:ee,showLogo:te,logourl:ne,guestGreeting:re,existingUserGreeting:ae,phone:ie,email:le,emailRequired:ce,onPhoneChange:se,onEmailChange:de,validatePhone:pe,setEmailRequired:me,onClose:ue,onRegister:ge,handleChangeNumber:ye,handleResendOtp:xe,handleSessionDetected:he,onSendOTP:be,isSessionDetected:we,authType:ve,countryCode:Re,formFilled:Ce,redirectUrl:Ee,ctaTitle:ke,ctaMainColor:w,ctaMainContrastColor:v,ctaPrimaryColor:C,ctaPrimaryContrastColor:E,registerLink:Te,brandTitle:Se,brandLogoUrl:A,widgetOpen:y,heading:Ne,subcopy:Be,termsHref:Fe,privacyHref:ze,isMobilePreview:Me,viewportMode:Oe}}))}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}`}));Ct('.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 Cg={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:"},Eg=e=>{if(null==e||""===e)return null;const t="number"==typeof e?e.toString():e;return t.includes("₹")?t:`₹${t}`},kg=({config:a})=>{const i={...Cg,...a},{sectionTitle:l,catalogBanner:c,coinBalance:s,coinBalanceLabel:d,coinIconUrl:p,display:m,alignment:u,titleFontSize:g,titleColor:f,tabBackgroundColor:y,tabActiveColor:x,tabActiveTextColor:h,tabTextColor:b,cardBackgroundColor:w,buttonColor:v,buttonTextColor:C,borderColor:E,roundness:k,tiers:T,selectedTierId:S,filters:N,selectedFilterId:B,onFilterChange:F,products:z,ctaText:$}=i,I=o(null),[P,D]=t(!1),[A,_]=t(!1),[L,R]=t(null),M=r(()=>z,[z]),O=e=>{if(!I.current)return;const t=.8*I.current.clientWidth;I.current.scrollBy({left:"left"===e?-t:t,behavior:"smooth"})};n(()=>{const e=I.current;if(!e)return;const t=()=>{const t=e.scrollWidth-e.clientWidth;D(e.scrollLeft>1),_(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"===m?"lpc-cardList lpc-cardList--grid":"wrap"===m?"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-${u||"center"}`},c?e.createElement("img",{className:"lpc-banner",src:c,alt:"Catalog banner"}):null,l?e.createElement("h2",{className:"lpc-heading",style:{color:f,fontSize:`${g}px`}},l):null),null!=s&&""!==s?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"},s," coins")):null,N&&N.length>0?e.createElement("div",{className:"lpc-filterBar",style:{background:y},role:"tablist"},N.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?x:"transparent",color:n?h:b,borderColor:n?x:E||"#E2E2E8","--lpc-filter-hover-bg":b||"#25262D","--lpc-filter-hover-text":y||"#FFFFFF"},onClick:()=>F?.(t)},t.label)})):null,e.createElement("div",{className:V,ref:I},0===M.length?e.createElement("div",{className:"lpc-emptyState"},"No products found"):M.map(t=>{const n=L===t.id,r=`${k||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:w,borderColor:E,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"},Eg(t.mrp)?e.createElement(e.Fragment,null,e.createElement("span",{className:"lpc-priceMuted"},"MRP:"),e.createElement("span",{className:"lpc-priceStrikethrough"},Eg(t.mrp))):null,Eg(t.price)?e.createElement("span",{className:"lpc-priceNow"},Eg(t.price)):null,Eg(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," coins"):null)),e.createElement("button",{className:"lpc-cta",style:{background:v,color:C,borderColor:v,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!==L,onClick:async e=>{if(e.stopPropagation(),t.onButtonClick&&!t.disabled&&null===L)try{R(t.id),await t.onButtonClick(t)}finally{R(null)}}},n?e.createElement(wu,{size:18,color:"#fff",centered:!0}):t.buttonText||$))})),"scroll"===m?e.createElement("div",{className:"lpc-nav"},e.createElement("button",{className:"lpc-navBtn "+(P?"lpc-navBtn--enabled":""),type:"button",onClick:()=>O("left"),disabled:!P},e.createElement(ut,null)),e.createElement("button",{className:"lpc-navBtn "+(A?"lpc-navBtn--enabled":""),type:"button",onClick:()=>O("right"),disabled:!A},e.createElement(gt,null))):null)},Tg={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"}},Sg={left:"flex-start",center:"center",right:"flex-end"},Ng=e=>"number"==typeof e?`${e}px`:e;function Bg({prefix:t="Get",iconUrl:n="",suffix:r="Coins",coinsEarned:o=0,widgetBackground:a="#FFFFFF",alignment:i="center",textColor:l="#2B2B2B",borderColor:c="#8F8F8F",badgeRoundness:s="999px",fontSize:d=18}){const p=Ng(d)??"18px",m="number"==typeof d?`${d+2}px`:`calc(${p} + 2px)`;return e.createElement("div",{className:"yt-peb-wrap",style:{...Tg.wrap,justifyContent:Sg[i]}},e.createElement("div",{className:"yt-peb",style:{...Tg.badge,background:a,borderColor:c,borderRadius:Ng(s)}},e.createElement("div",{className:"yt-peb__content",style:{...Tg.content,textAlign:i}},t?e.createElement("span",{className:"yt-peb__text",style:{...Tg.text,color:l,fontSize:p}},t):null,n?e.createElement("img",{className:"yt-peb__icon",style:Tg.icon,src:n,alt:"","aria-hidden":"true"}):null,e.createElement("span",{className:"yt-peb__coins",style:{...Tg.coins,color:l,fontSize:m}},o),r?e.createElement("span",{className:"yt-peb__text",style:{...Tg.text,color:l,fontSize:p}},r):null)))}const Fg=["banner","referrals","gettingStarted","waysToEarn","customImage","customHtml","vipTiers","rewards"],zg=({config:t,signedIn:n=!1,userData:r,onBannerButtonClick:o,onReferralButtonClick:a,onReferralCopyClick:i,onRewardsButtonClick:l})=>{const{sectionOrder:c,banner:s,referrals:d,gettingStarted:p,waysToEarn:m,vipTiers:u,rewards:g,customImage:f,customHtml:y,primaryColor:x="#1C1C1D",primaryContrastColor:h="#FFFFFF",secondaryColor:b="#FFFFFF",secondaryContrastColor:F="#000000"}=t||{},z="undefined"!=typeof window&&window.innerWidth<=768,$=()=>{"undefined"!=typeof window&&window.ytapp&&(window.ytapp.loyaltyWidgetOpen=!0,window.dispatchEvent(new Event("loyaltyWidgetOpenChanged")))},I={...{padding:"12px 32px",borderRadius:"30px",fontSize:"14px",fontWeight:600,cursor:"pointer",textTransform:"uppercase",border:`1px solid ${x}`,transition:"all 0.3s ease"},backgroundColor:x,color:h,borderColor:x},P=n?s?.signedInView:s?.guestView,D={visibility:s?.visibility??"show",backgroundColor:s?.backgroundColor??"#F3F3F3",fontColor:s?.fontColor??"#000000",alignment:s?.alignment??"center",imageUrl:s?.imageUrl,badgeTitle:s?.badge?.enabled?s.badge.title?.trim():void 0,title:P?.title,subtitle:P?.subtitle,buttonText:s?.guestView?.buttonText,balanceCoins:s?.signedInView?.balanceCoins??r?.balanceCoins??(null!=r?.currentBalance?String(r.currentBalance):void 0),currentTier:s?.signedInView?.currentTier,nextTier:s?.signedInView?.nextTier,currentLtv:s?.signedInView?.currentLtv,nextTierLtv:s?.signedInView?.nextTierLtv,tierIcon:s?.signedInView?.tierIcon,showTierProgress:s?.showTierProgress??!1},A=Number(D.currentLtv),_=Number(D.nextTierLtv),L=D.showTierProgress&&Number.isFinite(A)&&Number.isFinite(_)&&_>0,R=L?Math.min(100,Math.max(0,A/_*100)):0,M=L?Math.max(0,_-A):0,O=n?d?.signedInView:d?.guestView,V={visibility:d?.visibility??"show",backgroundColor:d?.backgroundColor??"#FFFFFF",fontColor:d?.fontColor??"#111111",badgeTitle:d?.badge?.enabled?d.badge.title?.trim():void 0,imageUrl:d?.imageUrl,imagePosition:d?.imagePosition??"left",guestVisibility:d?.guestVisibility??!0,title:O?.title,subtitle:O?.subtitle,buttonText:d?.guestView?.buttonText,referralLinkValue:d?.signedInView?.referralLinkValue??r?.referralLink},W={visibility:p?.visibility??"show",backgroundColor:p?.backgroundColor??"#FFFFFF",fontColor:p?.fontColor??"#111111",badgeTitle:p?.badge?.enabled?p.badge.title?.trim():void 0,title:p?.title,subtitle:p?.subtitle,steps:p?.steps},H={visibility:m?.visibility??"show",backgroundColor:m?.backgroundColor??"#FFFFFF",fontColor:m?.fontColor??"#111111",badgeTitle:m?.badge?.enabled?m.badge.title?.trim():void 0,title:m?.title,subtitle:m?.subtitle,guestVisibility:m?.guestVisibility??!0,showIcons:m?.showIcons??!0,ctaBg:m?.ctaBg??"#4E7E80",ctaFontColor:m?.ctaFontColor??"#FFFFFF",items:m?.items},j={visibility:g?.visibility??"show",backgroundColor:g?.backgroundColor??"#FFFFFF",fontColor:g?.fontColor??"#111111",badgeTitle:g?.badge?.enabled?g.badge.title?.trim():void 0,imageUrl:g?.imageUrl,imagePosition:g?.imagePosition??"left",title:g?.title,description:g?.description,disclaimerText:g?.disclaimerText,buttonText:g?.buttonText,bottomCtaTitle:g?.bottomCtaTitle,bottomCtaSubtitle:g?.bottomCtaSubtitle},q={visibility:f?.visibility??"show",imageUrl:f?.imageUrl},U={visibility:y?.visibility??"show",htmlText:y?.htmlText},Q={visibility:u?.visibility??"show",backgroundColor:u?.backgroundColor??"#FFFFFF",fontColor:u?.fontColor??"#111111",badgeTitle:u?.badge?.enabled?u.badge.title?.trim():void 0,title:u?.title,subtitle:u?.subtitle,benefitHeaderLabel:u?.benefitHeaderLabel,tiers:u?.tiers,rows:u?.rows,signedInView:{benefitHeaderLabel:u?.signedInView?.benefitHeaderLabel??u?.benefitHeaderLabel,statusLabel:u?.signedInView?.statusLabel,statuses:u?.signedInView?.statuses}},Z=Array.isArray(c)?c:[],G=Array.from(new Set(Z.filter(e=>Fg.includes(e)))),Y=[...G,...Fg.filter(e=>!G.includes(e))],X=e=>Y.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"}},"show"===D.visibility&&e.createElement("div",{className:"yt-loyalty-page-banner",style:{order:X("banner"),display:"flex",alignItems:"center",justifyContent:"left"===D.alignment?"flex-start":"right"===D.alignment?"flex-end":"center",width:"100%",backgroundColor:D.backgroundColor,backgroundImage:D.imageUrl?`url(${D.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",border:"1px solid #E1E1E1",padding:z?"72px 20px":"120px 32px"}},e.createElement("div",{className:"yt-loyalty-page-banner-content",style:{width:"100%",maxWidth:"760px",textAlign:D.alignment,display:"flex",flexDirection:"column",alignItems:"left"===D.alignment?"flex-start":"right"===D.alignment?"flex-end":"center",gap:z?"18px":"20px"}},D.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}},D.badgeTitle):null,e.createElement("h1",{className:"yt-loyalty-page-banner-title",style:{margin:0,fontSize:z?"40px":"56px",lineHeight:z?1.05:1.08,letterSpacing:"-0.03em",fontWeight:700,color:D.fontColor}},D.title),e.createElement("p",{className:"yt-loyalty-page-banner-subtitle",style:{margin:0,maxWidth:"620px",fontSize:z?"22px":"28px",lineHeight:1.18,fontWeight:400,color:D.fontColor}},D.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:z?"8px":"10px",minWidth:z?"280px":"288px",padding:z?"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:D.fontColor}},"Current Balance"),e.createElement("div",{style:{fontSize:z?"56px":"64px",lineHeight:.95,letterSpacing:"-0.05em",fontWeight:700,color:D.fontColor}},D.balanceCoins)),D.showTierProgress&&D.currentTier?e.createElement("div",{className:"yt-loyalty-page-banner-tier",style:{display:"inline-flex",alignItems:"center",gap:"10px",marginTop:"4px",color:D.fontColor,fontFamily:"Inter",fontSize:z?"18px":"20px",fontWeight:700,lineHeight:1.1,letterSpacing:"0.08em",textTransform:"uppercase"}},D.tierIcon?e.createElement("img",{src:D.tierIcon,alt:"",style:{width:"28px",height:"28px",objectFit:"contain",display:"block"}}):e.createElement("svg",{width:"28",height:"28",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:x,stroke:x,strokeWidth:"1.2",strokeLinejoin:"round"}),e.createElement("path",{d:"M12 2L20 7L12 12L4 7L12 2Z",fill:"rgba(255,255,255,0.3)",strokeLinejoin:"round"})),D.currentTier):null,L?e.createElement("div",{className:"yt-loyalty-page-banner-progress",style:{marginTop:"10px",width:"100%",maxWidth:"640px",padding:z?"14px 18px":"16px 24px",borderRadius:"16px",backgroundColor:"#FFFFFF",boxShadow:"0 8px 22px rgba(17, 17, 17, 0.06)",boxSizing:"border-box"}},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:{width:`${R}%`,height:"100%",backgroundColor:x||D.fontColor||"#1C1C1D",borderRadius:"999px",transition:"width 0.3s ease"}})),e.createElement("div",{className:"yt-loyalty-page-banner-progress-meta",style:{marginTop:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",fontSize:z?"13px":"14px",lineHeight:1.2,fontWeight:500,color:D.fontColor}},e.createElement("span",null,A," ltv"),D.nextTier?e.createElement("span",null,M," ltv to ",D.nextTier):null)):null):e.createElement("button",{className:"yt-loyalty-page-banner-button",style:{...I,marginTop:z?"8px":"10px",padding:z?"14px 26px":"16px 30px",border:"none",borderRadius:"14px",boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)",fontSize:z?"16px":"18px",fontWeight:500,textTransform:"none"},onClick:async()=>{o?await o():$()}},D.buttonText))),"show"===V.visibility&&(n||V.guestVisibility)&&e.createElement("div",{className:"yt-loyalty-page-referrals",style:{order:X("referrals"),width:"100%",backgroundColor:V.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:z?"column":"row",alignItems:"stretch",overflow:"hidden",border:"1px solid #E1E1E1"}},e.createElement("div",{className:"yt-loyalty-page-referrals-image-wrapper",style:{flex:z?"1 1 auto":"0 0 50%",minWidth:0,boxSizing:"border-box",order:z||"left"===V.imagePosition?0:1,minHeight:z?"320px":"560px"}},e.createElement("div",{className:"yt-loyalty-page-referrals-image",style:{display:"block",width:"100%",height:"100%",minHeight:z?"320px":"560px",backgroundImage:V.imageUrl?`url(${V.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat"}})),e.createElement("div",{className:"yt-loyalty-page-referrals-copy",style:{flex:z?"1 1 auto":"0 0 50%",minWidth:0,boxSizing:"border-box",order:z||"left"===V.imagePosition?1:0,padding:z?"32px 24px 40px":"72px 48px",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"}},V.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}},V.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-referrals-title",style:{margin:0,maxWidth:"520px",fontSize:z?"28px":n?"34px":"36px",lineHeight:1.1,letterSpacing:"-0.03em",fontWeight:400,color:V.fontColor}},V.title),e.createElement("p",{className:"yt-loyalty-page-referrals-subtitle",style:{margin:"18px 0 0",maxWidth:"580px",fontSize:z?"16px":"18px",lineHeight:1.24,fontWeight:400,color:V.fontColor}},V.subtitle),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:V.fontColor}},V.referralLinkValue)),e.createElement("button",{type:"button",onClick:async()=>{i&&V.referralLinkValue?await i(V.referralLinkValue):"undefined"!=typeof navigator&&navigator.clipboard&&V.referralLinkValue&&await navigator.clipboard.writeText(V.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:{...I,marginTop:"34px",padding:z?"14px 26px":"16px 30px",border:"none",borderRadius:"14px",boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)",fontSize:z?"16px":"18px",fontWeight:500,textTransform:"none"},onClick:async()=>{a?await a():$()}},V.buttonText))))),"show"===W.visibility&&e.createElement("div",{className:"yt-loyalty-page-getting-started",style:{order:X("gettingStarted"),backgroundColor:W.backgroundColor,border:"1px solid #E1E1E1",padding:z?"56px 20px":"72px 32px 88px"}},e.createElement("div",{className:"yt-loyalty-page-getting-started-content",style:{maxWidth:"1120px",margin:"0 auto",textAlign:"center"}},W.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}},W.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-getting-started-title",style:{margin:0,fontSize:z?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:W.fontColor}},W.title),e.createElement("p",{className:"yt-loyalty-page-getting-started-subtitle",style:{margin:z?"14px auto 0":"16px auto 0",maxWidth:"620px",color:W.fontColor,fontSize:z?"16px":"18px",lineHeight:1.22,fontWeight:400}},W.subtitle),e.createElement("div",{className:"yt-loyalty-page-getting-started-grid",style:{marginTop:z?"40px":"64px",display:"flex",flexDirection:z?"column":"row",justifyContent:"space-between",alignItems:"stretch",gap:z?"28px":"24px"}},W.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:z?"0":"0 18px"}},e.createElement("div",{className:"yt-loyalty-page-getting-started-step-number",style:{marginBottom:"10px",fontSize:z?"52px":"68px",lineHeight:.95,letterSpacing:"-0.04em",fontWeight:700,color:W.fontColor}},String(n+1)),e.createElement("div",{className:"yt-loyalty-page-getting-started-step-title",style:{marginBottom:"8px",fontSize:z?"24px":"28px",lineHeight:1.08,letterSpacing:"-0.03em",fontWeight:400,color:W.fontColor}},t.title),e.createElement("p",{className:"yt-loyalty-page-getting-started-step-description",style:{margin:0,maxWidth:"240px",fontSize:z?"16px":"18px",lineHeight:1.21,fontWeight:400,color:W.fontColor}},t.description)))))),"show"===H.visibility&&(n||H.guestVisibility)&&e.createElement("div",{className:"yt-loyalty-page-ways-to-earn",style:{order:X("waysToEarn"),backgroundColor:H.backgroundColor,border:"1px solid #E1E1E1",padding:z?"56px 20px":"72px 32px 64px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-content",style:{maxWidth:"1120px",margin:"0 auto",textAlign:"center"}},H.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}},H.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-ways-to-earn-title",style:{margin:0,fontSize:z?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:H.fontColor}},H.title),e.createElement("p",{className:"yt-loyalty-page-ways-to-earn-subtitle",style:{margin:z?"14px auto 0":"16px auto 0",maxWidth:"680px",color:H.fontColor,fontSize:z?"16px":"18px",lineHeight:1.22,fontWeight:400}},H.subtitle),e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-grid",style:{marginTop:z?"40px":"56px",display:"flex",flexWrap:"wrap",justifyContent:"center",columnGap:z?"28px":"24px",rowGap:"36px"}},H.items?.map((t,r)=>{const o=t.ctaTitle??t.signedInActionLabel,a=t.ctaVisible??Boolean(o),i=t.ctaDisabled??!1,l=H.ctaBg,c=H.ctaFontColor;return e.createElement("div",{key:r,className:"yt-loyalty-page-ways-to-earn-item",style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",width:z?"100%":"calc((100% - 48px) / 3)",maxWidth:z?"100%":"calc((100% - 48px) / 3)",padding:z?"0":"0 18px"}},H.showIcons?e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-item-icon",style:{fontSize:"32px",lineHeight:1,color:H?.fontColor??"#5A5A5A",marginBottom:"5px"}},(t=>{if(t&&"string"!=typeof t)return t;switch(t){case"birthday":return e.createElement(B,null);case"feedback":return e.createElement(N,null);case"wallet":return e.createElement(S,null);case"referral":return e.createElement(T,null);case"instagram":return e.createElement(k,null);case"facebook":return e.createElement(E,null);case"twitter":return e.createElement(C,null);case"youtube":return e.createElement(v,null);default:return e.createElement(w,null)}})(t.icon)):null,e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-item-title",style:{marginBottom:"4px",fontSize:z?"24px":"28px",lineHeight:1.16,letterSpacing:"-0.03em",fontWeight:400,color:H.fontColor,minHeight:z?"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:z?"16px":"18px",lineHeight:1.21,fontWeight:400,color:H.fontColor,minHeight:z?"40px":"52px"}},t.description),e.createElement("div",{style:{marginTop:"4px",minHeight:"42px",width:"100%",display:"flex",justifyContent:"center"}},n&&a&&o?e.createElement("button",{className:"yt-loyalty-page-ways-to-earn-item-action",style:{minWidth:z?"180px":"188px",minHeight:"42px",padding:"9px 20px",border:"none",borderRadius:"0px",backgroundColor:l,color:c,fontSize:"16px",lineHeight:1,fontWeight:600,cursor:i?"not-allowed":"pointer",opacity:i?.6:1},disabled:i,onClick:t.onClick},o):null))})))),"show"===q.visibility&&q.imageUrl?e.createElement("div",{className:"yt-loyalty-page-custom-image",style:{order:X("customImage"),backgroundColor:"#FFFFFF",border:"1px solid #E1E1E1"}},e.createElement("div",{style:{margin:"0 auto"}},e.createElement("img",{src:q.imageUrl,alt:"",style:{display:"block",width:"100%",height:"auto",objectFit:"cover"}}))):null,"show"===U.visibility&&U.htmlText?e.createElement("div",{className:"yt-loyalty-page-custom-html",style:{order:X("customHtml"),backgroundColor:"#FFFFFF",border:"1px solid #E1E1E1",padding:z?"32px 20px":"40px 32px",color:"#111111"}},e.createElement("div",{style:{maxWidth:"1200px",margin:"0 auto"},dangerouslySetInnerHTML:{__html:U.htmlText}})):null,"show"===Q.visibility&&e.createElement("div",{className:"yt-loyalty-page-vip-tiers",style:{order:X("vipTiers"),backgroundColor:Q.backgroundColor,border:"1px solid #E1E1E1",padding:z?"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:z?"32px":"40px"}},Q.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:Q.fontColor,fontSize:"14px",lineHeight:1,fontWeight:600}},Q.badgeTitle):null,e.createElement("h2",{style:{margin:0,fontSize:z?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:Q.fontColor}},Q.title),e.createElement("p",{style:{margin:"16px auto 0",maxWidth:"760px",fontSize:z?"16px":"18px",lineHeight:1.22,fontWeight:400,color:Q.fontColor}},Q.subtitle)),e.createElement("div",{style:{overflowX:"auto",border:"1px solid #D7D7D7",backgroundColor:"#FFFFFF"}},e.createElement("table",{style:{width:"100%",minWidth:z?"760px":"100%",borderCollapse:"collapse",tableLayout:"fixed"}},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{style:{width:z?"240px":"28%",padding:"16px 14px",borderBottom:"1px solid #D7D7D7",textAlign:"left",color:Q.fontColor,fontFamily:"Inter",fontSize:"15.654px",fontStyle:"normal",fontWeight:"700",lineHeight:"17.313px",letterSpacing:"0.693px",textTransform:"uppercase",backgroundColor:"#FFFFFF"}},Q.benefitHeaderLabel),Q.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:Q.fontColor,textTransform:"uppercase",backgroundColor:"#FFFFFF"}},Q.signedInView.statusLabel),Q.tiers?.map(t=>{const n=Q.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:Q.fontColor,fontSize:"12px",lineHeight:1.2,fontWeight:r?700:500,textTransform:"uppercase",letterSpacing:"0.04em"}},n?.text??"")})):null),e.createElement("tbody",null,Q.rows?.map((t,n)=>e.createElement("tr",{key:`${t.title}-${n}`},e.createElement("td",{style:{padding:"14px 14px",borderBottom:n===(Q.rows?.length??0)-1?"none":"1px solid #D7D7D7",verticalAlign:"middle"}},e.createElement("div",{style:{color:Q.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:Q.fontColor,fontFamily:"Inter",fontSize:"12.552px",fontStyle:"normal",fontWeight:300,lineHeight:"22.161px",letterSpacing:"0.693px"}},t.description):null),Q.tiers?.map(r=>e.createElement("td",{key:`${t.title}-${r.id}`,style:{padding:"14px 10px",borderBottom:n===(Q.rows?.length??0)-1?"none":"1px solid #D7D7D7",textAlign:"center",verticalAlign:"middle"}},t.tierIds.includes(r.id)?e.createElement("span",{style:{display:"inline-block",width:"10px",height:"10px",borderRadius:"999px",backgroundColor:r.indicatorColor??"#666666"}}):null))))))))),"show"===j.visibility&&!n&&e.createElement("div",{className:"yt-loyalty-page-rewards",style:{order:X("rewards"),backgroundColor:j.backgroundColor,border:"1px solid #E1E1E1",padding:z?"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:z?"column":"row",alignItems:"stretch",overflow:"hidden",border:"1px solid #E1E1E1"}},e.createElement("div",{className:"yt-loyalty-page-rewards-image-wrapper",style:{flex:1,order:z||"left"===j.imagePosition?0:1,minHeight:z?"280px":"340px"}},e.createElement("div",{className:"yt-loyalty-page-rewards-image",style:{display:"block",width:"100%",height:"100%",minHeight:z?"280px":"340px",backgroundImage:j.imageUrl?`url(${j.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center"}})),e.createElement("div",{className:"yt-loyalty-page-rewards-copy",style:{flex:1,order:z||"left"===j.imagePosition?1:0,padding:z?"28px 24px":"32px 40px",display:"flex",flexDirection:"column",justifyContent:"start"}},j.badgeTitle?e.createElement("div",{className:"yt-loyalty-page-rewards-badge",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"28px",marginBottom:"22px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:"#111111",fontSize:"14px",lineHeight:1,fontWeight:600,alignSelf:z?"center":"flex-start"}},j.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-rewards-title",style:{margin:0,maxWidth:"420px",fontSize:z?"20px":"25px",lineHeight:1.06,letterSpacing:"-0.03em",fontWeight:700,color:j?.fontColor??"#111111"}},j.title),e.createElement("p",{className:"yt-loyalty-page-rewards-description",style:{margin:"20px 0 0",maxWidth:"470px",fontSize:z?"12px":"14px",lineHeight:1.35,fontWeight:400,color:j.fontColor,whiteSpace:"pre-line"}},j.description))),e.createElement("div",{className:"yt-loyalty-page-rewards-disclaimer",style:{marginTop:"14px",backgroundColor:"#1F232B",color:"#FFFFFF",padding:"15px 20px",textAlign:"center",fontSize:"15px",lineHeight:1.3,fontWeight:400,fontStyle:"italic"}},j.disclaimerText),e.createElement("div",{className:"yt-loyalty-page-rewards-cta",style:{display:"flex",flexDirection:z?"column":"row",justifyContent:"space-between",alignItems:"center",marginTop:"20px",padding:z?"24px":"26px 28px",border:"1px solid #D4D4D4",gap:"18px",textAlign:z?"center":"left"}},e.createElement("div",{className:"yt-loyalty-page-rewards-cta-copy"},e.createElement("h3",{style:{margin:0,fontSize:z?"28px":"32px",lineHeight:1.05,fontWeight:700,letterSpacing:"-0.03em",color:j.fontColor}},j.bottomCtaTitle),e.createElement("p",{style:{margin:"8px 0 0",fontSize:"18px",lineHeight:1.25,fontWeight:400,color:j.fontColor}},j.bottomCtaSubtitle)),e.createElement("button",{className:"yt-loyalty-page-rewards-cta-button",style:{...I,minWidth:z?"100%":"220px",padding:"14px 28px",borderRadius:"0px",border:"none",boxShadow:"none",fontSize:"18px",fontWeight:700},onClick:async()=>{l?await l():$()}},j.buttonText)))))},$g=({showPopup:n,selectedOffer:r,selectedOfferTerms:o,onClose:a,offersConfig:i})=>{const[l,c]=t(!1);if(!n||!r||!o)return null;const s=r._customOffer,d=s?.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"}},_g(r)?e.createElement(b,null):e.createElement(Qe,null)),e.createElement("div",{style:{fontSize:"clamp(16px, 4vw, 20px)",fontWeight:500,color:"#4C4C4C",lineHeight:"normal",textAlign:"center"}},Ag(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),c(!0),setTimeout(()=>c(!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(F,null):e.createElement(z,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 A(p,document.body)},Ig=({showPopup:n,selectedOffer:r,selectedOfferTerms:o,onClose:a,offersConfig:i})=>{const[l,c]=t(!1);if(!n||!r||!o)return null;const s=r._customOffer,d=s?.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"}},_g(r)?e.createElement(b,null):e.createElement(Qe,null)),e.createElement("div",{style:{fontSize:"14px",fontWeight:500,color:"#888",textAlign:"center"}},Ag(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),c(!0),setTimeout(()=>c(!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(F,null):e.createElement(z,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 A(p,document.body)},Pg=({offersToShow:r,offersConfig:a,getOfferCardMessage:i,setSelectedOffer:l,setShowPopup:c})=>{const s=o(null),[d,p]=t(!1),[m,u]=t(!0),[g,f]=t("undefined"!=typeof window&&window.innerWidth<=768),y=()=>{if(s.current){const{scrollLeft:e,scrollWidth:t,clientWidth:n}=s.current;p(e>0),u(e<t-n-10)}};n(()=>{y();const e=s.current;if(e)return e.addEventListener("scroll",y),()=>e.removeEventListener("scroll",y)},[r]),n(()=>{const e=()=>{f(window.innerWidth<=768)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const x=e=>{if(s.current){const t=g?280:365,n=16,r="right"===e?t+n:-(t+n);s.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($,{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(I,{size:20})),e.createElement("div",{ref:s,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"}},_g(t)?e.createElement(b,null):e.createElement(Qe,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"}},Ag(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),c(!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 "))},Dg=({offersToShow:r,offersConfig:o,getOfferCardMessage:a,setSelectedOffer:i,setShowPopup:l})=>{const[c,s]=t("undefined"!=typeof window&&window.innerWidth<=768);return n(()=>{const e=()=>{s(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:c?"8px":"12px",padding:c?"12px 0":"16px 0",paddingLeft:c?"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:c?"40px":"50px",height:c?"40px":"50px",backgroundColor:"#f8f9fa",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:c?"20px":"25px",marginTop:c?"5px":"10px",border:"2px solid #4a4a4a",color:"#4a4a4a"}},_g(t)?e.createElement(b,null):e.createElement(Qe,null)),e.createElement("div",{style:{flex:1}},e.createElement("div",{style:{fontSize:c?"14px":"15px",fontWeight:600,color:"#000000",lineHeight:"1"}},Ag(t),":"," ",e.createElement("span",{style:{fontWeight:600,color:o?.textColor||"#34495e"}},t.name)),e.createElement("div",{style:{fontSize:c?"12px":"13px",color:"#7f8c8d",marginBottom:"6px"}},a(t)),e.createElement("div",{style:{fontSize:c?"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"))))))},Ag=e=>"free_product"===e.couponType?"deal_amount"===e.freebieType?"Deal":"percentage_off"===e.freebieType?"% Off":"Free Gift":e._customOffer?.code?"Coupon":"Special Deal",_g=e=>"free_product"===e.couponType&&"deal_amount"!==e.freebieType&&"percentage_off"!==e.freebieType,Lg=({offersConfig:r,offers:a})=>{const[i,l]=t(!1),[c,s]=t(null),[d,p]=t(null),[m,u]=t("undefined"!=typeof window&&window.innerWidth<=768),[g,f]=t("undefined"!=typeof window&&window.innerWidth<=450),y=o(null);n(()=>{const e=()=>{u(window.innerWidth<=768),f(window.innerWidth<=450)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),n(()=>{y.current&&bn(y.current)},[r?.sectionBgContrastColor]);const x=(e=>{if(!e||0===e.length)return e;const t={};e.forEach(e=>{const n=e.customCartProgressBarCriteria||"none";t[n]=(t[n]||0)+1});let n="none",r=-1;Object.keys(t).forEach(e=>{t[e]>r&&(r=t[e],n=e)});const o=e.map((e,t)=>({o:e,idx:t})),a=e=>"minimum_order_value"===n?void 0!==e.minimumOrderValue&&null!==e.minimumOrderValue?Number(e.minimumOrderValue):1/0:"quantity"===n&&void 0!==e.quantityThreshold&&null!==e.quantityThreshold?Number(e.quantityThreshold):1/0;return o.sort((e,t)=>{const r=e.o.customCartProgressBarCriteria===n,o=t.o.customCartProgressBarCriteria===n;if(r&&o){const n=a(e.o),r=a(t.o);return n!==r?n-r:e.idx-t.idx}return r&&!o?-1:!r&&o?1:e.idx-t.idx}),o.map(e=>e.o)})((!1===r?.showBackendOffers&&r?.customOffers&&r.customOffers.length>0?r.customOffers.map((e,t)=>{return{discountId:-(t+1),name:(n=e).title,couponType:n.code?"discount_code":"special_deal",customCartProgressBarCriteria:null,discountPercentage:null,couponTemplateId:0,minimumOrderValue:0,quantityThreshold:0,_allVariantIds:[],description:n.description,_customOffer:n};var n}):a)||[]),h=e=>{if(s(e),e){const t=e._customOffer;p(t?(e=>({offerMessage:e.description||"Special offer available",terms:e.terms?e.terms.split("\n").filter(e=>""!==e.trim()):[]}))(t):(e=>{const t="free_product"===e.couponType;let n="";if(t){const t="deal_amount"===e.freebieType?`at ${e.discountValue}`:"percentage_off"===e.freebieType?`at ${e.discountPercentage}% off`:"free"===e.freebieType?"for free!":"";t&&(n=`Get the product ${t}`)}else e.discountPercentage?n=`Get ${e.discountPercentage}% off`:e.discountValue&&(n=`Get ${e.discountValue} off`);const r=["Limited Time Offer","Applies automatically when criteria is met"];return"quantity"===e.customCartProgressBarCriteria&&e.quantityThreshold?r.push(`Unlock when you add ${e.quantityThreshold} ${e.quantityThreshold>1?"items":"item"} to cart`):"minimum_order_value"===e.customCartProgressBarCriteria&&e.minimumOrderValue&&r.push(`Unlock at order value of ${e.minimumOrderValue}`),t||r.push("Not applicable if other offer with higher discount applied on same product"),{offerMessage:n,terms:r}})(e))}},b=e=>{const t=e._customOffer;return t?t.description||"Special offer available":(e=>"quantity"===e.customCartProgressBarCriteria&&e.quantityThreshold?`add ${e.quantityThreshold} ${e.quantityThreshold>1?"items":"item"} to unlock`:"minimum_order_value"===e.customCartProgressBarCriteria&&e.minimumOrderValue?`unlocks on orders above ${e.minimumOrderValue}`:"Special offer available")(e)};return e.createElement("div",null,e.createElement("div",{style:{position:"relative",width:"100%",maxWidth:"450px",borderRadius:"list"===r?.sectionType?`${r?.roundness||0}px`:"0px",boxSizing:"border-box",backgroundColor:r?.sectionBackgroundColor||"#fff"}},e.createElement("div",{style:{border:"coupon"===r?.sectionType?"none":"1px solid rgb(169, 163, 163)",borderTop:"1px solid rgb(169, 163, 163)",padding:null!=r?.cardPadding?`${r.cardPadding}px`:m?"20px 10px 15px":"30px 15px 20px",position:"relative",borderRadius:"list"===r?.sectionType?`${r?.roundness||8}px`:"0px"}},e.createElement("span",{ref:y,className:"yt-product-offers-section-title",style:{position:"absolute",top:"0",left:"left"===r?.alignment?"coupon"===r?.sectionType?"0px":m?"10px":"20px":"right"===r?.alignment?"auto":"50%",right:"right"===r?.alignment?"coupon"===r?.sectionType?"0px":m?"10px":"20px":"auto",transform:"middle"===r?.alignment?"translateX(-50%) translateY(-50%)":"translateY(-50%)",background:r?.sectionBgContrastColor||"#fff",padding:m?"0 8px":"0 10px",fontWeight:"500",fontSize:m?"14px":"16px",textTransform:"uppercase",textAlign:"center"}},r?.sectionTitle||"Available Deals and Offers"),(()=>{const t=r?.sectionType;return"list"===t?e.createElement(Dg,{offersToShow:x,offersConfig:r||{},getOfferCardMessage:b,setSelectedOffer:h,setShowPopup:l}):"coupon"===t?e.createElement(Pg,{offersToShow:x,offersConfig:r||{},getOfferCardMessage:b,setSelectedOffer:h,setShowPopup:l}):null})(),g?e.createElement(Ig,{selectedOffer:c,selectedOfferTerms:d,showPopup:i,offersConfig:r,onClose:()=>{l(!1),s(null),p(null)}}):e.createElement($g,{selectedOffer:c,selectedOfferTerms:d,showPopup:i,offersConfig:r,onClose:()=>{l(!1),s(null),p(null)}}))))};export{Tm as Bundle,xu as BundleLoader,yu as Cart,mg as LoyaltyLauncher,zg as LoyaltyPageBlock,kg as LoyaltyProductCatalog,cg as LoyaltyScreen,vg as LoyaltyWidget,Qt as Nudge,Bg as PointEarnBadge,Lg as ProductOffers,wg as RewardsModal,en as SpinnerWheel};
5307
+ `,uu=l(({removeCartItem:a,addCartItem:i,getProductDetailsByVariantId:l,themeColor:c,cartComponentsCornerRadius:s,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:m,freebieClaimAddToCart:u,stealDealAddToCart:g,productClaimCtaButtonText:f,backgroundSubdued:y,primaryTextColor:x},h)=>{const[b,w]=ce(sn),v=se(tn),C=o(null),[E,k]=t(null),[T,S]=t(!1),[N,B]=t({}),[F,z]=t(b?.variantId),[$]=t(b?.quantity||1),[I,P]=t(!1),D=go();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){z(String(t.id));const n={};e.options.forEach((e,r)=>{n[e.name]=t[`option${r+1}`]}),B(n)}else z(void 0),B({})}k(e)}})()},[E,l,b]);const A=(e,t)=>{const n={...N,[e]:t};B(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&&z(String(r.id))}},_=E?.variants?.find(e=>String(e.id)===String(F)),L=mn(v,v?.currency),R=r(()=>{const e={};if(!E)return e;const t=Array.isArray(b?.allowedVariantIds)&&b.allowedVariantIds.length>0;return E.options.forEach(n=>{e[n.name]=n.values.filter(e=>E.variants.filter(r=>{const o=E.options.indexOf(n);if(r[`option${o+1}`]!==e)return!1;return!!E.options.every((e,t)=>{if(e.name===n.name)return!0;const o=N[e.name];return!o||r[`option${t+1}`]===o})&&(!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(r.id)))&&!!r.available)}).some(e=>!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(e.id)))&&e.available))}),e},[E,N,b]);return E?e.createElement(e.Fragment,null,e.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:2147483643,display:b?.open?"flex":"none",justifyContent:"center",alignItems:"center",opacity:I?1:0,transition:"opacity 0.3s ease"},onClick:()=>{P(!1),setTimeout(()=>{w({open:!1,variantId:void 0,handle:void 0,quantity:void 0})},300)}}),e.createElement(qm,{ref:h,className:"yt-variant-selection-popup"},e.createElement(Qm,{ref:C,style:{backgroundColor:p||"white",opacity:I?1:0,transform:I?"translateY(0)":"translateY(20px)"},$themeColor:c,onClick:e=>e.stopPropagation()},b?.freebieSelection&&e.createElement(Um,null,b?.stealDealSelection?"Unlocked Steal Deal":"Unlocked Freebie"),e.createElement(Gm,null,e.createElement(Ym,null,e.createElement(Xm,null,e.createElement(Km,{src:_?.featured_image?.src??E?.featured_image,alt:_?.featured_image?.alt??E?.title})),e.createElement(Jm,null,e.createElement(eu,{$themeColor:c,$primaryTextColor:x,href:`${E?.url}?variant=${_?.id}`},E?.title),e.createElement(du,null,e.createElement(tu,null,e.createElement(nu,{$primaryTextColor:x},L,dn(_?.price,v?.currency??"INR")),null!=_?.compare_at_price&&null!=_?.price&&_.compare_at_price>_.price&&e.createElement(ru,null,L,dn(_?.compare_at_price,v?.currency??"INR")))))),E?.options?.map(t=>{const n=D?.options?.find(e=>e.name.trim().toLowerCase()===t.name.trim().toLowerCase()),r=N[t.name],o=uo(n,r);return e.createElement(au,{key:t.name},e.createElement(lu,null,e.createElement("span",null,"Select ",t.name),r&&e.createElement(cu,null,o)),e.createElement(su,null,R[t.name]?.map(r=>{const o=N[t.name]===r,a=mo(n,r),i=n?.type?.toLowerCase(),l=uo(n,r);return"color"===i&&a?.value?e.createElement(pu,{key:r,$isSelected:o,$themeColor:c,onClick:()=>A(t.name,r),$colorValue:a.value}):"image"===i&&a?.value?e.createElement(mu,{key:r,$isSelected:o,$themeColor:c,onClick:()=>A(t.name,r),$imageUrl:a.value}):e.createElement(iu,{$themeColor:c,key:r,$isSelected:o,backgroundColor:o?c:void 0,onClick:()=>A(t.name,r)},l)})))})),e.createElement(ou,{className:"yt-cart-variant-popup-ATC-button",$themeColor:c??"#C33",onClick:b?.productRec?async()=>{if(F&&i){S(!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)}S(!1)}}:async()=>{if(!F)return;const e=!!b?.lineItemKey,t=String(F)!==String(b?.variantId);if(!e||t){S(!0);try{const e=b?.freebieSelection;e&&!b?.lineItemKey||(e&&m&&b?.lineItemKey?await m(b.lineItemKey):await a(b?.lineItemKey||b?.variantId,"variant-selector",!0)),e&&b?.stealDealSelection&&g?await g(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){}S(!1)}else w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!F||T},T?e.createElement(fe,{color:"white",size:13}):b?.productRec?"ADD TO BAG":b?.stealDealSelection?"CLAIM DEAL":b?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):e.createElement(qm,{ref:h},e.createElement(Qm,{style:{backgroundColor:p||"white"}},e.createElement(Zm,null,e.createElement(ye,{color:c||"#868E96"}))))});uu.displayName="DesktopVariantPopup";const gu=l(({removeCartItem:a,addCartItem:i,getProductDetailsByVariantId:l,themeColor:c,cartComponentsCornerRadius:s,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:m,freebieClaimAddToCart:u,stealDealAddToCart:g,productClaimCtaButtonText:f,backgroundSubdued:y,primaryTextColor:x},h)=>{const[b,w]=ce(sn),v=se(tn),[C,E]=t(null),[k,T]=t(!1),[S,N]=t({}),[B,F]=t(b?.variantId),[z]=t(b?.quantity||1),$=o(null),I=go(),[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){F(String(t.id));const n={};e.options.forEach((e,r)=>{n[e.name]=t[`option${r+1}`]}),N(n)}else F(void 0),N({})}E(e)}catch(e){}})()},[C,l,b]),n(()=>{},[p,a,i,l]);const A=(e,t)=>{const n={...S,[e]:t};N(n);const r=C?.variants?.find(e=>C.options.every((t,r)=>e[`option${r+1}`]===n[t.name]));if(r){const e=b?.allowedVariantIds;if(Array.isArray(e)&&e.length>0&&!e.includes(String(r.id)))return;r.available&&F(String(r.id))}},_=C?.variants?.find(e=>String(e.id)===String(B)),L=mn(v,v?.currency),R=r(()=>{const e={};if(!C)return e;const t=Array.isArray(b?.allowedVariantIds)&&b.allowedVariantIds.length>0;return C.options.forEach(n=>{e[n.name]=n.values.filter(e=>C.variants.filter(r=>{const o=C.options.indexOf(n);if(r[`option${o+1}`]!==e)return!1;return!!C.options.every((e,t)=>{if(e.name===n.name)return!0;const o=S[e.name];return!o||r[`option${t+1}`]===o})&&(!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(r.id)))&&!!r.available)}).some(e=>!!(!t||Array.isArray(b.allowedVariantIds)&&b.allowedVariantIds.includes(String(e.id)))&&e.available))}),e},[C,S,b]);return C?e.createElement(e.Fragment,null,e.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:2147483643,display:b?.open?"flex":"none",justifyContent:"center",alignItems:"center",opacity:P?1:0,transition:"opacity 0.3s ease"},onClick:()=>{D(!1),setTimeout(()=>{w({open:!1,variantId:void 0,handle:void 0,quantity:void 0})},300)}}),e.createElement(qm,{ref:h,className:"yt-variant-selection-popup"},e.createElement(Qm,{ref:$,style:{backgroundColor:p||"white",opacity:P?1:0,transform:P?"translateY(0)":"translateY(20px)"},$themeColor:c,onClick:e=>e.stopPropagation()},b?.freebieSelection&&e.createElement(Um,null,b?.stealDealSelection?"Unlocked Steal Deal":"Unlocked Freebie"),e.createElement(Gm,null,e.createElement(Ym,null,e.createElement(Xm,null,e.createElement(Km,{src:_?.featured_image?.src??C?.featured_image,alt:_?.featured_image?.alt??C?.title})),e.createElement(Jm,null,e.createElement(eu,{$themeColor:c,$primaryTextColor:x,href:`${C?.url}?variant=${_?.id}`},C?.title),e.createElement(du,null,e.createElement(tu,null,e.createElement(nu,{$primaryTextColor:x},L,dn(_?.price,v?.currency??"INR")),null!=_?.compare_at_price&&null!=_?.price&&_.compare_at_price>_.price&&e.createElement(ru,null,L,dn(_?.compare_at_price,v?.currency??"INR")))))),C?.options?.map(t=>{const n=I?.options?.find(e=>e.name.trim().toLowerCase()===t.name.trim().toLowerCase()),r=S[t.name],o=uo(n,r);return e.createElement(au,{key:t.name},e.createElement(lu,null,e.createElement("span",null,"Select ",t.name,":"),r&&e.createElement(cu,null,o)),e.createElement(su,null,R[t.name]?.map(r=>{const o=S[t.name]===r,a=mo(n,r),i=n?.type?.toLowerCase(),l=uo(n,r);return"color"===i&&a?.value?e.createElement(pu,{key:r,$isSelected:o,$themeColor:c,onClick:()=>A(t.name,r),$colorValue:a.value}):"image"===i&&a?.value?e.createElement(mu,{key:r,$isSelected:o,$themeColor:c,onClick:()=>A(t.name,r),$imageUrl:a.value}):e.createElement(iu,{$themeColor:c,key:r,$isSelected:o,backgroundColor:o?c:void 0,onClick:()=>A(t.name,r)},l)})))})),e.createElement(ou,{className:"yt-cart-variant-popup-ATC-button",$themeColor:c??"#C33",onClick:b?.productRec?async()=>{if(B&&i){T(!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)}T(!1)}}:async()=>{if(!B)return;const e=!!b?.lineItemKey,t=String(B)!==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(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){}T(!1)}else w({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!B||k},k?e.createElement(fe,{color:"white",size:13}):b?.productRec?"ADD TO BAG":b?.stealDealSelection?"CLAIM DEAL":b?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):e.createElement(qm,{ref:h},e.createElement(Qm,{style:{backgroundColor:p||"white"}},e.createElement(Zm,null,e.createElement(ye,{color:c||"#868E96"}))))});const fu=({setIsCartOpen:t,isCartOpen:n,cartCheckpoints:r,customCartProgressBarCriteria:o,floatingCartData:a,effectiveQuantityForProgressBar:i,cartComponentsCornerType:l,cartComponentsCornerRadius:c})=>{const s=se(tn),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=s?.item_count??0,g=dn(s?.items_subtotal_price??0,s?.currency??"INR"),f=mn(s),y=function(e,t,n,r,o){if(!e||0===e.length)return{deltaValue:0,show:!1};const a=(t??"minimum_order_value").toLowerCase(),i="quantity_threshold"===a?"number"==typeof o?o:r:n,l=[...e].sort((e,t)=>("quantity_threshold"===a?e.quantityThreshold:e.minimumOrderValue)-("quantity_threshold"===a?t.quantityThreshold:t.minimumOrderValue)).find(e=>("quantity_threshold"===a?e.quantityThreshold:e.minimumOrderValue)>i);if(!l)return{deltaValue:0,show:!1};const c="quantity_threshold"===a?l.quantityThreshold:l.minimumOrderValue,s=Math.max(0,c-i);return{deltaValue:s,show:s>0,isQuantity:"quantity_threshold"===a}}(r,o,g,u,i),x="sharp"===l?0:c??12,h=a?.textColor??"#111",w=a?.backgroundColor??"#FF7E6E",v=a?.bannerBackgroundColor??"#FFE0DC",C=a?.buttonColor??"#E8513F",E=e.useRef(null);e.useEffect(()=>{bn(E.current)},[C]);const k={position:"fixed",width:"100%",bottom:0,zIndex:2147483642,paddingBottom:"env(safe-area-inset-bottom)"},T={background:"#FFFFFF",color:"#111",padding:"5px",fontSize:12,fontFamily:"Poppins",fontWeight:600,textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center",gap:8},S={background:"#fff",color:h,borderRadius:x,boxShadow:"0 10px 24px rgba(0,0,0,0.15)",overflow:"hidden",fontFamily:"Poppins"},N={position:"absolute",top:0,left:"50%",transform:"translate(-50%, -70%)",backgroundColor:v,color:h,padding:8,fontSize:12,lineHeight:"normal",borderTopLeftRadius:13,borderTopRightRadius:13,width:"97%",display:"flex",alignItems:"center",justifyContent:"center",gap:6,zIndex:-1},B={display:"flex",alignItems:"center",gap:12,padding:"10px 12px",backgroundColor:w,cursor:"pointer"},F={display:"flex",alignItems:"center",gap:8,fontWeight:700,fontSize:16,color:h},z={fontSize:12,color:h,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},$={padding:"5px 10px",background:C,color:"#fff",borderRadius:8,fontSize:15,fontWeight:700,border:"none",outline:"none",flexShrink:0};if(!m)return null;if(0===u){if(!y.show)return null;const t=y.isQuantity?`${y.deltaValue} more items to get freebie`:`Add items worth ${f}${wn(y.deltaValue.toFixed(0))} to get freebie`;return e.createElement("div",{style:k},e.createElement("div",{className:"yt-cart-floating-ribbon",style:T},e.createElement(b,{"aria-hidden":!0}),e.createElement("span",null,t)))}const I=1===u?"1 item":`${u} items`,P=a?.lastTierUnlockedText||"Best tier unlocked",D=y.show?y.isQuantity?`${y.deltaValue} more items to get freebie`:`Add items worth ${f}${wn(y.deltaValue.toFixed(0))} more to get freebie`:P;return e.createElement("div",{style:{position:"fixed",left:12,right:12,bottom:12,zIndex:2147483642,paddingBottom:"env(safe-area-inset-bottom)"}},e.createElement("div",{style:{position:"relative"}},(y.show||r&&r.length>0)&&e.createElement("div",{className:"yt-cart-floating-banner",style:N},e.createElement(b,{"aria-hidden":!0,style:{marginBottom:7}}),e.createElement("span",{style:{display:"inline-block",marginBottom:7}},D)),e.createElement("div",{style:S},e.createElement("div",{className:"yt-cart-floating-body",style:B,onClick:()=>t(!0)},e.createElement(_,{width:24,height:24,color:h}),e.createElement("div",{style:{display:"flex",flexDirection:"column",minWidth:0,flex:1,lineHeight:"normal"}},e.createElement("div",{style:F},e.createElement("span",null,f,wn(g.toFixed(0))),e.createElement("span",{style:{fontSize:9,fontWeight:600,color:"#fff",backgroundColor:"#828282",marginBottom:5,paddingInline:5}},I)),p?e.createElement("span",{style:z,title:d},d):null),e.createElement("button",{ref:E,style:$,onClick:()=>t(!0),"aria-label":"View Cart"},"View Cart")))))},yu=({exploreCTAColor:r,checkoutFontSize:a,handleDecrement:l,handleIncrement:c,removeCartItem:s,addCartItem:d,cartTitle:p,emptyCartTitle:m,emptyCartDescription:u,emptyCartButtons:g,backgroundColor:f,backgroundSubdued:y,tertiaryColor:x,tertiaryTextColor:h,backdrop:b=!0,cartData:w,isUserSignedIn:v,showBundle:C,bundleProducts:E,discountAmountOff:k,loyaltyIcon:T,pointsToBeUsed:S,rewardMultiplier:N,redemptionMultiplier:B,removeDiscount:F,applyDiscount:z,discountApplied:$,checkoutFunction:I,joinNowFunction:P,guestLoyaltyPercentage:D,showToggleButton:A,isOpen:_,setIsOpen:L,isDev:R,switchWidthVariant:M,recProductsList:O,showMultiStepProgressBar:V,cartCheckpoints:W,redemptionRate:H,pointsRewardRate:j,showCartLevelAltPay:q,exploreCtaRedirectLink:U,discountAmountApplied:Q,minimumCartValue:Z,discountInCheckoutButton:G,isStickyCheckout:Y,handleCheckpointCrossed:X,customCartProgressBarCriteria:K,checkoutButtonColor:J,ctaButtonBackgroundColor:ee,ctaButtonTextColor:te,primaryTextColor:ne,productRecsCtaButtonText:re,productRecsTitleText:oe,secondaryTextColor:ae,showProductRecsOnDesktop:ie,showProductRecsOnMobile:le,themeColor:se,themeTextColor:pe,companyName:me,gstNumber:ue,showGSTOption:ge,applyGSTToCart:fe,showMOVForProgressTiers:ye,freeProduct:xe,showLoyaltyCta:he,freeProductAdjustedCartTotal:be,minimumOrderValueToAvailDiscount:we,signinCTAButtonVisible:ve,cartSigninCTAMainText:Ce,showNoteOption:Ee,applyNoteToCart:ke,note:Te,inlineCartOfferInfoText:Se,inlineCartOfferInfoRedirectLink:Ne,cartOfferTermsAndConditionsText:Be,showEditOptionOnProducts:Fe,getProductDetailsByVariantId:ze,onSetLoading:$e,showVariantSelectionDropdownInProductRecs:Ie,originalCartSubtotal:Pe,currentTier:De,freebieProductsInCart:Ae,showFreebieClaim:_e,addFreebieToCart:Le,freebiesInCart:Re,effectiveQuantityForProgressBar:Me,productPercentageOffMapping:Oe,removeFreebieFromCart:Ve,postalCodeList:We,enableGeoLocationDeliveryRestriction:He,applyPostalCodeAndDeliverySlotToCart:je,showDeleteOnFreebies:qe,freebieCouponTemplates:Ue,freebieFlowCheckpoints:Qe,freebieClaimData:Ze,showStickyAddToCart:Ge,stickyCartLineItem:Ye,postalCodeBasedItemTrackingParameter:Xe,enableSlotPicker:Ke,deliveryHeaderTitle:Je,deliveryAvailableText:et,deliveryNotAvailableText:tt,giftWrapSetupData:nt,giftWrapProductDetail:rt,enableCustomCartOnCartPage:ot,isCartPage:at,progressBarFreeProductIconType:it,addToStickyCart:lt,productRecsCardLayout:ct,productRecsCardListVariant:st,showCartTimer:dt,showFreebieMilestone:pt,showFloatingCart:mt,floatingCartData:ut,freebieMilestoneData:gt,cartTimerInMinutes:ft,cartTimerCustomText:yt,imageAspectSelector:xt,cartComponentsCornerType:ht,cartComponentsCornerRadius:bt,stickyCartCustomizationData:wt,cartOffersCarousalData:vt,stickyBarBuyNowFunction:Ct,gstSectionCustomizationData:Et,noteSectionTitle:kt,checkoutSectionMessage:Tt,checkoutSectionMessageRedirectLink:St,checkoutSectionMessageDisplay:Nt,showVariantSelectionDropdownInProductClaim:Bt,loyaltyDiscount:Ft,brandTokenName:zt,showDiscountOnMRP:$t,prefixMessageText:It,suffixMessageText:Pt,successMessageText:Dt,toggleDecimal:At,cartOffersCarouselHeight:_t,disableCheckoutButton:Lt,showEmptyCartRecommendations:Rt,emptyProductRecsTitleText:Mt,checkoutButtonBottomSpacing:Ot,applyCouponCode:Vt,showApplyCoupon:Wt,enableConfetti:Ht,showCheckoutButtonPaymentIcons:jt=!0,showCouponOptions:qt,rewardCoupons:Ut,couponSelectionData:Qt,comboBundleData:Zt,comboBundleAddToCartFunction:Gt,stealDealCheckpoints:Yt,stealDealProducts:Xt,stealDealAddToCart:Kt,useCartShell:Jt,showTrustedBadge:en,trustedBadgeData:nn,drawerLayoutData:rn})=>{const on=de(tn),[an,ln]=ce(sn),[cn,dn]=ce(Ci),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??Zt,fn=mn.comboBundleAddToCartFunction??Gt,[yn,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)},[]);const hn=o(null),bn=o(0);i(()=>{if(w){const e=w?.token??null,t="number"==typeof w?.cartUpdatedAtMs?w.cartUpdatedAtMs:void 0;e!==hn.current&&(hn.current=e,bn.current=t??0);const n=bn.current;if(!(void 0===t||t>=n))return;void 0!==t&&(bn.current=t),on(w)}},[w]);const wn=o(null);n(()=>{function e(e){wn.current&&!wn.current.contains(e.target)&&(ln({open:!1,variantId:void 0,quantity:void 0,handle:void 0}),dn({isOpen:!1}))}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);const[vn,Cn]=t(!1);return n(()=>{const e=()=>{Cn(window.innerWidth>=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),n(()=>{if(!Jt)return;const e=window.ytCartShell;if(!e)return;const t=e.getDrawerElement?.(),n=e.getOverlayElement?.();t&&(!_||ot&&at?(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")))},[_,Jt,ot,at,b]),n(()=>{if(!Jt)return;const e=window.ytCartShell,t=e?.getOverlayElement?.();if(!t)return;const n=()=>L(!1);return t.addEventListener("click",n),()=>t.removeEventListener("click",n)},[Jt,L]),e.createElement(e.Fragment,null,e.createElement("div",{style:{position:ot&&at?"relative":"absolute",width:"100%",display:ot&&at?"flex":"block",alignItems:"center",justifyContent:"center"}},A&&!(ot&&at)&&e.createElement("button",{style:{margin:"16px"},onClick:pn},_?"Close Drawer":"Open Drawer"),!Jt&&_&&b&&!(ot&&at)&&e.createElement("div",{onClick:pn,id:"custom-cart-yt-overlay",style:{position:"fixed",top:0,right:0,zIndex:1e4,transform:"translateX(0)",backgroundColor:"rgba(0,0,0,0.5)",inset:0,height:"100%",width:"100%"}},"‎"),e.createElement(vc,{useCartShell:Jt,isCartPage:at,enableCustomCartOnCartPage:ot,isOpen:_,setIsOpen:L,backgroundColor:f,backgroundSubdued:y??"#F5F5F5",tertiaryColor:x,tertiaryTextColor:h,exploreCTAColor:r,checkoutFontSize:a,cartTitle:p,handleDecrement:l,handleIncrement:c,removeCartItem:s,addCartItem:d,emptyCartTitle:m,emptyCartButtons:g,emptyCartDescription:u,showBundle:C,isUserSignedIn:v,bundleProducts:E,discountAmountOff:k,loyaltyIcon:T,pointsToBeUsed:S,rewardMultiplier:N,redemptionMultiplier:B,removeDiscount:F,applyDiscount:z,discountApplied:$,checkoutFunction:I,joinNowFunction:P,guestLoyaltyPercentage:D,isDev:R,switchWidthVariant:M,recProductsList:O,showMultiStepProgressBar:V,cartCheckpoints:W,redemptionRate:H,pointsRewardRate:j,showCartLevelAltPay:q,exploreCtaRedirectLink:U,discountAmountApplied:Q,minimumCartValue:Z,discountInCheckoutButton:G,isStickyCheckout:Y,handleCheckpointCrossed:X,customCartProgressBarCriteria:K??"minimum_order_value",checkoutButtonColor:J,ctaButtonBackgroundColor:ee,ctaButtonTextColor:te,primaryTextColor:ne,productRecsCtaButtonText:re,productRecsTitleText:oe,secondaryTextColor:ae,showProductRecsOnDesktop:ie,showProductRecsOnMobile:le,themeColor:se,themeTextColor:pe,companyName:me,gstNumber:ue,showGSTOption:ge,applyGSTToCart:fe,showMOVForProgressTiers:ye,freeProduct:xe,showLoyaltyCta:he,freeProductAdjustedCartTotal:be,minimumOrderValueToAvailDiscount:we,signinCTAButtonVisible:ve,cartSigninCTAMainText:Ce,applyNoteToCart:ke,note:Te,showNoteOption:Ee,inlineCartOfferInfoText:Se,inlineCartOfferInfoRedirectLink:Ne,cartOfferTermsAndConditionsText:Be,showEditOptionOnProducts:Fe,onSetLoading:$e,showVariantSelectionDropdownInProductRecs:Ie,originalCartSubtotal:Pe,currentTier:De,freebieProductsInCart:Ae,cartOffersCarousalData:vt,showFreebieClaim:_e,addFreebieToCart:Le,freebiesInCart:Re,effectiveQuantityForProgressBar:Me,productPercentageOffMapping:Oe,removeFreebieFromCart:Ve,postalCodeList:We,enableGeoLocationDeliveryRestriction:He,applyPostalCodeAndDeliverySlotToCart:je,showDeleteOnFreebies:qe,freebieCouponTemplates:Ue,freebieFlowCheckpoints:Qe,freebieClaimData:Ze,postalCodeBasedItemTrackingParameter:Xe,enableSlotPicker:Ke,deliveryHeaderTitle:Je,deliveryAvailableText:et,deliveryNotAvailableText:tt,giftWrapSetupData:nt,giftWrapProductDetail:rt,progressBarFreeProductIconType:it,productRecsCardLayout:ct,productRecsCardListVariant:st,showCartTimer:dt,showFreebieMilestone:pt,freebieMilestoneData:gt,cartTimerCustomText:yt,cartTimerInMinutes:ft,imageAspectSelector:xt,cartComponentsCornerType:ht,cartComponentsCornerRadius:bt,gstSectionCustomizationData:Et,noteSectionTitle:kt,checkoutSectionMessage:Tt,checkoutSectionMessageRedirectLink:St,checkoutSectionMessageDisplay:Nt,showVariantSelectionDropdownInProductClaim:Bt,loyaltyDiscount:Ft,getProductDetailsByVariantId:ze,brandTokenName:zt,showDiscountOnMRP:$t??!0,prefixMessageText:It,suffixMessageText:Pt,successMessageText:Dt,toggleDecimal:At,cartOffersCarouselHeight:_t,disableCheckoutButton:Lt,showEmptyCartRecommendations:Rt,emptyProductRecsTitleText:Mt,checkoutButtonBottomSpacing:Ot,applyCouponCode:Vt,showApplyCoupon:Wt,enableConfetti:Ht,showCheckoutButtonPaymentIcons:jt,stealDealCheckpoints:Yt,stealDealProducts:Xt,stealDealAddToCart:Kt,showCouponOptions:qt,rewardCoupons:Ut,couponSelectionData:Qt,showTrustedBadge:en,trustedBadgeData:nn,drawerLayoutData:rn}),Ge&&Ye&&d&&e.createElement(jm,{showStickyCart:Ge,stickyCartCustomizationData:wt,product:Ye,addCartItem:d,onSetLoading:$e,themeColor:se,themeTextColor:pe,cartData:w,isCartOpen:_,setIsCartOpen:L,ctaButtonBackgroundColor:ee,ctaButtonTextColor:te,addToStickyCart:lt,cartComponentsCornerRadius:bt,cartComponentsCornerType:ht,checkoutFunction:Ct,backgroundColor:f,primaryTextColor:ne,comboBundleData:gn,comboBundleAddToCartFunction:fn,volumeBundleCurrentTier:yn.currentTier,volumeBundleData:yn.bundle,volumeBundleAddToCartFunction:yn.volumeBundleAddToCartFunction}),vn&&an.open&&e.createElement(uu,{backgroundColor:f,ref:wn,isDev:R,removeCartItem:s,addCartItem:d,getProductDetailsByVariantId:ze,themeColor:se,cartComponentsCornerRadius:bt,cartComponentsCornerType:ht,removeFreebieFromCart:Ve,freebieClaimAddToCart:Le,stealDealAddToCart:Kt,productClaimCtaButtonText:Ze?.productClaimCtaButtonText,backgroundSubdued:y??"#F5F5F5",primaryTextColor:ne}),!vn&&an.open&&e.createElement(gu,{ref:wn,isDev:R,removeCartItem:s,addCartItem:d,getProductDetailsByVariantId:ze,themeColor:se,cartComponentsCornerRadius:bt,cartComponentsCornerType:ht,backgroundColor:f,removeFreebieFromCart:Ve,freebieClaimAddToCart:Le,stealDealAddToCart:Kt,productClaimCtaButtonText:Ze?.productClaimCtaButtonText,backgroundSubdued:y??"#F5F5F5",primaryTextColor:ne})),!vn&&mt&&e.createElement(fu,{isCartOpen:_,setIsCartOpen:L,cartCheckpoints:W,customCartProgressBarCriteria:K,floatingCartData:ut,effectiveQuantityForProgressBar:Me,cartComponentsCornerRadius:bt,cartComponentsCornerType:ht}))};Ct(".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 xu=()=>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"},"‎")))));Ct('/* 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/* container */\n.yt-rw-card {\n /* overflow-y: auto; allow scroll during collapse phase */\n overscroll-behavior: contain;\n min-height: 0;\n /* position: fixed; */\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 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: 8px 16px;\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: -88px;\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-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');Ct("\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");function hu({background:t="",textColor:n="",displayText:r="Copied to clipboard!"}){return e.createElement("div",{className:"yt-toast",style:{position:"absolute",fontFamily:"Poppins",bottom:20,alignSelf:"center",boxSizing:"border-box",padding:"6px 12px",borderRadius:6,fontSize:13,animation:"fadein .5s",background:t||"#333",color:n||"#fff"}},r)}function bu({couponHeading:t="",couponCode:n="",copyFunction:r=e=>{},themePrimaryColor:o="",themeContrastColor:a="",themeSecondaryContrastColor:i="",themeSecondaryColor:l="",setScreenType:c=e=>{},showCTA:s=!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:{borderRadius: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"}))))),s&&e.createElement("div",{onClick:()=>c("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"})))))}Ct("@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }\n@keyframes fadeout { from { opacity: 1 } to { opacity: 0 } }\n");function wu({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}Ct("@keyframes yt-spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n");const vu={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},redeemCardFooter:{borderRadius:"0 0 8px 8px",display:"flex",padding:"4px 12px",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",border:"1px solid #D9D9D9",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"}},Cu={...vu,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}};Ct("/* 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");Ct('.yt-wte-bgIcon > svg {\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');function Eu({couponList:r=[],couponHeading:a="",couponCode:i="",currencyCode:l,onCouponAvail:c,copyFunction:s=e=>{},themeSecondaryContrastColor:d="",themeSecondaryColor:p="",themeBackgroundColor:m="",setScreenType:u=e=>{},showCTA:g=!0,balanceCoins:f,ctaBorderRadius:y}){const[x,h]=t(i),[b,w]=t("idle"),[v,C]=t(null),[E,k]=t(0),[T,S]=t(null),[N,B]=t(null),F=o(null);n(()=>()=>{F.current&&clearInterval(F.current)},[]),n(()=>{"success"!==b||N||import("./confetti-f3502561.js").then(e=>B(e.default))},[b,N]);const z=async e=>{if("idle"!==b)return;C(e),w("loading"),k(0),F.current=setInterval(()=>{k(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(F.current&&clearInterval(F.current),F.current=null,n){try{await navigator.clipboard.writeText(n)}catch{}h(n),k(100),setTimeout(()=>w("success"),350)}else S("Failed to avail coupon"),w("idle"),C(null),k(0),setTimeout(()=>S(null),2e3)},$="idle"!==b,I=((e,t)=>e?e.discountPercentage>0?`${e.discountPercentage}% off`:e.discountValue>0?`${(e=>"INR"===e?"₹":e?`${e} `:"")(t)}${e.discountValue}`:e.name:"")(v,l);return e.createElement("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",background:"transparent",overflow:"hidden"}},"success"===b&&N&&e.createElement("div",{className:"yt-wtr-confetti",style:Cu.confetti,"aria-hidden":"true"},e.createElement(wt,{animationData:N,loop:!1})),e.createElement("div",{className:"yt-wtr-body",style:Cu.body},0==r?.length?e.createElement("p",{className:"yt-wtr-noCouponsFound",style:Cu.noCouponsFound},"No Coupons Found"):r?.map((t,n)=>e.createElement(Su,{key:t.couponTemplateId??n,data:t,onAvail:z,isAvailing:v?.couponTemplateId===t.couponTemplateId&&"loading"===b,disabled:$,balanceCoins:f}))),e.createElement("div",{style:{bottom:"16px",display:"flex",flexDirection:"column",gap:"11.23px",alignItems:"center"}},"loading"===b&&e.createElement("div",{className:"yt-wtr-progressBlock",style:Cu.progressBlock,"aria-live":"polite"},e.createElement("div",{className:"yt-wtr-progressIcon",style:Cu.progressIcon},E<50?e.createElement(ee,{size:36}):e.createElement(nt,{size:36})),e.createElement("div",{className:"yt-wtr-progressBar",style:Cu.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(E)},e.createElement("div",{className:"yt-wtr-progressBarFill",style:{...Cu.progressBarFill,width:`${E}%`}})),e.createElement("div",{className:"yt-wtr-progressLabel",style:Cu.progressLabel},E<50?`availing ${I} off coupon...`:"applying your reward...")),"success"===b&&e.createElement("div",{className:"yt-wtr-successBlock",style:Cu.successBlock,"aria-live":"polite"},e.createElement("div",{className:"yt-wtr-successBadge",style:Cu.successBadge},e.createElement(ku,null)),e.createElement("h3",{className:"yt-wtr-successTitle",style:Cu.successTitle},"🎉 ",I," availed!"),e.createElement("p",{className:"yt-wtr-successSubtitle",style:Cu.successSubtitle},"Your reward will apply automatically to eligible items in your cart."),e.createElement("div",{className:"yt-wtr-successDivider",style:Cu.successDivider}),e.createElement("p",{className:"yt-wtr-successApplied",style:Cu.successApplied},"coupon applied")),"idle"===b&&x&&x?.length>0&&e.createElement("div",{style:{padding:"10px 8px 8px 8px"}},e.createElement(bu,{setScreenType:u,themeSecondaryColor:p,themeSecondaryContrastColor:d,borderRadius:y??"12px",showCTA:!1,couponCode:x,couponHeading:a,copyFunction:s})),e.createElement("p",{className:"yt-wtr-footerText",style:Cu.footerText},"stay signed-in with the account you use for checking out")),T&&e.createElement(hu,{displayText:T,background:"#000000",textColor:"#ffffff"}))}function ku(){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 Tu(){return e.createElement("span",{className:"yt-wte-bgIcon",style:Cu.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 Su({data:t,onAvail:n,isAvailing:r,disabled:o,balanceCoins:a=0}){const i=!a||t?.pointsRequired>a;return e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:Cu.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:Cu.redeemCardHeader},e.createElement(Tu,null),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:Cu.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:Cu.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:Cu.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:Cu.redeemCardTitle},e.createElement("span",{style:Cu.redeemCardTitleSpan},t?.name)),e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:Cu.redeemCardSubtitle},t?.pointsRequired," Points Required •"," ",t?.minimumOrderValue>0?`Minimum Order Value INR ${t?.minimumOrderValue}`:"no mov"))),e.createElement("button",{onClick:()=>n(t),disabled:o||i,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:Cu.cta},r?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Avail")),a<t?.pointsRequired&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:Cu.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:Cu.redeemCardFooterText},e.createElement("span",{style:Cu.redeemCardFooterTextSpan},t?.pointsRequired-a," coins "),"more required")))}const Nu={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}},Bu=[Nu.tier1,Nu.tier2,Nu.tier3],Fu=e=>Bu[e%3];function zu(e){if(null==e||""===e)return"-";const t=Number(e);return Number.isNaN(t)?String(e):t.toLocaleString()}function $u(e){if(null==e||""===e)return null;const t=Number(e);return Number.isNaN(t)?null:t}function Iu({brandRewardTiers:t,balanceCoins:n,userRewardTier:r,currencyCode:o}){const a=t?.filter(e=>!1!==e.widgetVisibility)??[],i=r?.currentTier,l=r?.nextTier,c=function(e,t,n){if(!e)return null;const r="INR"===n?"₹":n?`${n} `:"";if("ltv"===e.rewardTierCriteria&&"order_count"===e.purchaseValueMethod){const n=$u(t?.totalOrders)??0,r=$u(e.minimumOrderCountRequired);return{current:n,target:r,currentText:zu(n),targetText:zu(r),unit:"orders"}}if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod){const n=$u(t?.currentLtv)??0,o=$u(e.minimumOrderValueRequired),a=zu(n),i=zu(o);return{current:n,target:o,currentText:"-"===a?a:`${r}${a}`,targetText:"-"===i?i:`${r}${i}`,unit:""}}if("loyalty_points"===e.rewardTierCriteria){const n=$u(t?.currentPoints)??0,r=$u(e.minimumLoyaltyPointsRequired);return{current:n,target:r,currentText:zu(n),targetText:zu(r),unit:"points"}}return null}(l,r,o),s=c?.current,d=c?.target,p=null!=s&&null!=d&&d>0?Math.min(1,Math.max(0,s/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:Nu.wrap},e.createElement("div",{className:"yt-vip-head",style:Nu.head},e.createElement("div",{className:"yt-vip-titleBlock",style:Nu.titleBlock},e.createElement("p",{className:"yt-vip-eyebrow",style:Nu.eyebrow},"Current Balance"),e.createElement("p",{className:"yt-vip-balance",style:Nu.balance},zu(n))),e.createElement("div",{className:"yt-vip-current-tier",style:Nu.currentTier},i&&e.createElement("p",{className:"yt-vip-validity",style:Nu.validity},"Current Tier"," ",e.createElement("span",{style:Nu.validitySpan},"Valid till ",g)),i&&e.createElement("h2",{className:"yt-vip-title",style:Nu.title},i.name)),e.createElement("div",{className:"yt-vip-progress",style:Nu.progress},e.createElement("p",{className:"yt-vip-progressTitle",style:Nu.progressTitle},"Your Progress"),e.createElement("div",{className:"yt-vip-progressDots",style:Nu.progressDots},Array.from({length:6}).map((t,n)=>e.createElement("span",{key:n,className:"yt-vip-dot "+(n<m?"yt-is-filled":""),style:{...Nu.dot,...n<m?Nu.dotFilled:null}}))),e.createElement("p",{className:"yt-vip-sub",style:Nu.sub},null!=s&&null!=d&&c?`${c.currentText} / ${c.targetText}${c.unit?` ${c.unit}`:""} for next tier`:"Next tier progress unavailable"))),e.createElement("div",{className:"yt-vip-cards",style:Nu.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:zu(e.minimumOrderCountRequired),label:"Orders Required"};if("ltv"===e.rewardTierCriteria&&"purchase_value"===e.purchaseValueMethod){const t=zu(e.minimumOrderValueRequired);return{value:"-"===t?t:`${n}${t}`,label:"Order Value Required"}}return"loyalty_points"===e.rewardTierCriteria?{value:zu(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:{...Nu.card,...Fu(n),...t.tierThemeColor?{background:t.tierThemeColor}:null}},e.createElement("div",{className:"yt-vip-cardHead",style:Nu.cardHead},t.name),e.createElement("div",{className:"yt-vip-metrics",style:Nu.metrics},e.createElement("div",{className:"yt-vip-metric",style:Nu.metric},e.createElement("b",{style:Nu.metricBold},zu(t.rewardMultiplier),"x"),e.createElement("span",{style:Nu.metricSpan},"Rewards")),e.createElement("div",{className:"yt-vip-metric",style:Nu.metric},e.createElement("b",{style:Nu.metricBold},zu(t.redemptionMultiplier),"x"),e.createElement("span",{style:Nu.metricSpan},"Redemption")),e.createElement("div",{className:"yt-vip-metric",style:Nu.metric},e.createElement("b",{style:Nu.metricBold},a.value),e.createElement("span",{style:Nu.metricSpan},a.label)),r&&e.createElement("div",{className:"yt-vip-metric",style:{...Nu.metric,justifyContent:"end",height:"100%"}},e.createElement("span",{style:Nu.metricSpan},"+ Special Deals"))))})),e.createElement("div",{className:"yt-vip-note",style:Nu.note},"stay signed-in with the account you use for checking out"))}Ct(".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 Pu={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"},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 Du({userData:t,ctaContrastColor:n,ctaPrimaryColor:r,currencyCode:o,activityRewards:a,onBirthdayUpdate:i,onSocialClick:l,isLoading:c,brandRewardProgram:s}){const d=s?.coinName??"coins",p=a?.creditOnActivitiesProperties?.referralRewardConfig,m="ways_to_earn"===p?.campaignVisibility||"both"===p?.campaignVisibility,u=Lu(p?.referrerReward,d,o),g=Lu(p?.refereeReward,d,o),f=!!p?.enabled&&m&&(!!p?.referrerReward?.enabled||!!p?.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:vu.body},a?.creditOnActivitiesProperties?.birthdayReward?.status&&a?.creditOnActivitiesProperties?.birthdayReward?.widgetVisibility&&a?.creditOnBirthdayValue&&e.createElement(Wu,{ctaContrastColor:n,ctaPrimaryColor:r,initializing:!t,coins:a.creditOnBirthdayValue,type:a?.creditOnActivitiesProperties?.birthdayReward?.type,coinName:d,title:a?.creditOnActivitiesProperties?.birthdayReward?.offerTitle?.trim()?a.creditOnActivitiesProperties.birthdayReward.offerTitle:"on adding your birth date",activityRewards:a,userData:t,onBirthdayUpdate:i}),s?.programStatus&&s?.programVisibility&&Number(s?.orderCreditValue??0)>0&&e.createElement(Ou,{ctaContrastColor:n,ctaPrimaryColor:r,icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"27",viewBox:"0 0 28 27",fill:"none"},e.createElement("path",{d:"M13.8668 0C16.0734 0 18.1896 0.876575 19.75 2.43689C21.3103 3.9972 22.1868 6.11344 22.1868 8.32006V9.70674H27.7336V12.4801H26.1153L25.0656 25.0753C25.0367 25.4218 24.8787 25.7448 24.6229 25.9803C24.3671 26.2159 24.0322 26.3467 23.6845 26.3469H4.0491C3.70138 26.3467 3.36643 26.2159 3.11062 25.9803C2.85482 25.7448 2.69683 25.4218 2.66797 25.0753L1.61687 12.4801H0V9.70674H5.54671V8.32006C5.54671 6.11344 6.42329 3.9972 7.9836 2.43689C9.54392 0.876575 11.6602 0 13.8668 0ZM23.3322 12.4801H4.39993L5.32484 23.5735H22.4073L23.3322 12.4801ZM13.8668 2.77335C12.4437 2.77335 11.0751 3.32031 10.044 4.30109C9.01286 5.28187 8.39815 6.62144 8.327 8.04273L8.32007 8.32006V9.70674H19.4135V8.32006C19.4135 6.897 18.8665 5.52837 17.8858 4.49725C16.905 3.46614 15.5654 2.85144 14.1441 2.78029L13.8668 2.77335Z",fill:"black"}),e.createElement("path",{d:"M15.2509 20.8001V15.2534H12.4776V20.8001H15.2509Z",fill:"#000000"}),e.createElement("path",{d:"M9.7042 20.8001V15.2534H6.93085V20.8001H9.7042Z",fill:"#000000"}),e.createElement("path",{d:"M20.7976 20.8001V15.2534H18.0243V20.8001H20.7976Z",fill:"#000000"})),coins:s.orderCreditValue,type:s?.orderCreditType,coinName:d,title:s?.programTitle?.trim()?s.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===s.orderCreditCriteria)?.label??s.orderCreditCriteria,showAvail:!1,onCouponAvail:()=>{}}),a?.creditOnActivitiesProperties?.signUpReward?.status&&a?.creditOnActivitiesProperties?.signUpReward?.widgetVisibility&&a?.creditOnSignupValue&&e.createElement(Ou,{ctaContrastColor:n,ctaPrimaryColor:r,icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},e.createElement("path",{d:"M320 312C386.3 312 440 258.3 440 192C440 125.7 386.3 72 320 72C253.7 72 200 125.7 200 192C200 258.3 253.7 312 320 312zM290.3 368C191.8 368 112 447.8 112 546.3C112 562.7 125.3 576 141.7 576L498.3 576C514.7 576 528 562.7 528 546.3C528 447.8 448.2 368 349.7 368L290.3 368z"})),coins:a.creditOnSignupValue,coinName:d,title:a?.creditOnActivitiesProperties?.signUpReward?.offerTitle?.trim()?a.creditOnActivitiesProperties.signUpReward.offerTitle:"on sign up",showAvail:!1,onCouponAvail:()=>{}}),a?.creditOnActivitiesProperties?.firstOrderReward?.status&&a?.creditOnActivitiesProperties?.firstOrderReward?.widgetVisibility&&a?.creditOnFirstOrderValue&&e.createElement(Ou,{ctaContrastColor:n,ctaPrimaryColor:r,icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"27",viewBox:"0 0 28 27",fill:"none"},e.createElement("path",{d:"M13.8668 0C16.0734 0 18.1896 0.876575 19.75 2.43689C21.3103 3.9972 22.1868 6.11344 22.1868 8.32006V9.70674H27.7336V12.4801H26.1153L25.0656 25.0753C25.0367 25.4218 24.8787 25.7448 24.6229 25.9803C24.3671 26.2159 24.0322 26.3467 23.6845 26.3469H4.0491C3.70138 26.3467 3.36643 26.2159 3.11062 25.9803C2.85482 25.7448 2.69683 25.4218 2.66797 25.0753L1.61687 12.4801H0V9.70674H5.54671V8.32006C5.54671 6.11344 6.42329 3.9972 7.9836 2.43689C9.54392 0.876575 11.6602 0 13.8668 0ZM23.3322 12.4801H4.39993L5.32484 23.5735H22.4073L23.3322 12.4801ZM13.8668 2.77335C12.4437 2.77335 11.0751 3.32031 10.044 4.30109C9.01286 5.28187 8.39815 6.62144 8.327 8.04273L8.32007 8.32006V9.70674H19.4135V8.32006C19.4135 6.897 18.8665 5.52837 17.8858 4.49725C16.905 3.46614 15.5654 2.85144 14.1441 2.78029L13.8668 2.77335Z",fill:"black"}),e.createElement("path",{d:"M15.2509 20.8001V15.2534H12.4776V20.8001H15.2509Z",fill:"#000000"}),e.createElement("path",{d:"M9.7042 20.8001V15.2534H6.93085V20.8001H9.7042Z",fill:"#000000"}),e.createElement("path",{d:"M20.7976 20.8001V15.2534H18.0243V20.8001H20.7976Z",fill:"#000000"})),coins:a.creditOnFirstOrderValue,type:a?.creditOnActivitiesProperties?.firstOrderReward?.type,coinName:d,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&&a?.creditOnSecondOrderValue&&e.createElement(Ou,{ctaContrastColor:n,ctaPrimaryColor:r,icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"27",viewBox:"0 0 28 27",fill:"none"},e.createElement("path",{d:"M13.8668 0C16.0734 0 18.1896 0.876575 19.75 2.43689C21.3103 3.9972 22.1868 6.11344 22.1868 8.32006V9.70674H27.7336V12.4801H26.1153L25.0656 25.0753C25.0367 25.4218 24.8787 25.7448 24.6229 25.9803C24.3671 26.2159 24.0322 26.3467 23.6845 26.3469H4.0491C3.70138 26.3467 3.36643 26.2159 3.11062 25.9803C2.85482 25.7448 2.69683 25.4218 2.66797 25.0753L1.61687 12.4801H0V9.70674H5.54671V8.32006C5.54671 6.11344 6.42329 3.9972 7.9836 2.43689C9.54392 0.876575 11.6602 0 13.8668 0ZM23.3322 12.4801H4.39993L5.32484 23.5735H22.4073L23.3322 12.4801ZM13.8668 2.77335C12.4437 2.77335 11.0751 3.32031 10.044 4.30109C9.01286 5.28187 8.39815 6.62144 8.327 8.04273L8.32007 8.32006V9.70674H19.4135V8.32006C19.4135 6.897 18.8665 5.52837 17.8858 4.49725C16.905 3.46614 15.5654 2.85144 14.1441 2.78029L13.8668 2.77335Z",fill:"black"}),e.createElement("path",{d:"M15.2509 20.8001V15.2534H12.4776V20.8001H15.2509Z",fill:"#000000"}),e.createElement("path",{d:"M9.7042 20.8001V15.2534H6.93085V20.8001H9.7042Z",fill:"#000000"}),e.createElement("path",{d:"M20.7976 20.8001V15.2534H18.0243V20.8001H20.7976Z",fill:"#000000"})),coins:a.creditOnSecondOrderValue,type:a?.creditOnActivitiesProperties?.secondOrderReward?.type,coinName:d,title:"on your second order",showAvail:!1,onCouponAvail:()=>{}}),f&&e.createElement(Ou,{ctaContrastColor:n,ctaPrimaryColor:r,icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},e.createElement("path",{d:"M320 312C386.3 312 440 258.3 440 192C440 125.7 386.3 72 320 72C253.7 72 200 125.7 200 192C200 258.3 253.7 312 320 312zM290.3 368C191.8 368 112 447.8 112 546.3C112 562.7 125.3 576 141.7 576L498.3 576C514.7 576 528 562.7 528 546.3C528 447.8 448.2 368 349.7 368L290.3 368z"})),coins:0,coinName:d,title:"",showAvail:!1,onCouponAvail:()=>{},customTitle:e.createElement(Mu,{title:p?.offerTitle,referrerReward:u,refereeReward:g})}),a?.creditOnActivitiesProperties?.customLink?.status&&a?.creditOnCustomLinkValue&&e.createElement(Vu,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasClickedOnCustomLink,initializing:!t,url:a?.creditOnActivitiesProperties?.customLink?.url??"",type:"custom_link",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:a.creditOnCustomLinkValue,coinName:d,title:a?.creditOnActivitiesProperties?.customLink?.offerTitle?.trim()?a.creditOnActivitiesProperties.customLink.offerTitle:"on clicking this link",onCouponAvail:l}),a?.creditOnActivitiesProperties?.instagramFollow?.status&&a?.creditOnInstagramFollowValue&&e.createElement(Vu,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasFollowedOnInstagram,initializing:!t,url:a?.creditOnActivitiesProperties?.instagramFollow?.url??"",type:"instagram",icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none"},e.createElement("g",{"clip-path":"url(#clip0_7542_11766)"},e.createElement("path",{d:"M9.30339 1.67534C11.7891 1.67534 12.0835 1.68624 13.0611 1.72985C13.9696 1.76982 14.4602 1.92246 14.7873 2.04965C15.2198 2.21682 15.5323 2.42034 15.8557 2.74377C16.1828 3.07085 16.3827 3.37975 16.5499 3.81221C16.6771 4.13928 16.8297 4.63352 16.8697 5.53842C16.9133 6.51964 16.9242 6.81401 16.9242 9.29612C16.9242 11.7819 16.9133 12.0762 16.8697 13.0538C16.8297 13.9624 16.6771 14.453 16.5499 14.78C16.3827 15.2125 16.1792 15.525 15.8557 15.8485C15.5287 16.1755 15.2198 16.3754 14.7873 16.5426C14.4602 16.6698 13.966 16.8224 13.0611 16.8624C12.0799 16.906 11.7855 16.9169 9.30339 16.9169C6.81764 16.9169 6.52328 16.906 5.54569 16.8624C4.63716 16.8224 4.14655 16.6698 3.81948 16.5426C3.38702 16.3754 3.07448 16.1719 2.75104 15.8485C2.42397 15.5214 2.22409 15.2125 2.05692 14.78C1.92973 14.453 1.77709 13.9587 1.73712 13.0538C1.69351 12.0726 1.68261 11.7782 1.68261 9.29612C1.68261 6.81037 1.69351 6.51601 1.73712 5.53842C1.77709 4.62989 1.92973 4.13928 2.05692 3.81221C2.22409 3.37975 2.4276 3.06721 2.75104 2.74377C3.07811 2.4167 3.38702 2.21682 3.81948 2.04965C4.14655 1.92246 4.64079 1.76982 5.54569 1.72985C6.52328 1.68624 6.81764 1.67534 9.30339 1.67534ZM9.30339 0C6.77767 0 6.4615 0.0109024 5.46938 0.0545121C4.48089 0.0981217 3.80131 0.258024 3.21258 0.486974C2.59841 0.726827 2.07873 1.043 1.56268 1.56268C1.043 2.07873 0.726827 2.59841 0.486974 3.20894C0.258024 3.80131 0.0981217 4.47726 0.0545121 5.46574C0.0109024 6.4615 0 6.77767 0 9.30339C0 11.8291 0.0109024 12.1453 0.0545121 13.1374C0.0981217 14.1259 0.258024 14.8055 0.486974 15.3942C0.726827 16.0084 1.043 16.5281 1.56268 17.0441C2.07873 17.5602 2.59841 17.88 3.20894 18.1162C3.80131 18.3451 4.47726 18.505 5.46574 18.5486C6.45786 18.5922 6.77403 18.6031 9.29976 18.6031C11.8255 18.6031 12.1417 18.5922 13.1338 18.5486C14.1223 18.505 14.8018 18.3451 15.3906 18.1162C16.0011 17.88 16.5208 17.5602 17.0368 17.0441C17.5529 16.5281 17.8727 16.0084 18.1089 15.3978C18.3379 14.8055 18.4978 14.1295 18.5414 13.141C18.585 12.1489 18.5959 11.8328 18.5959 9.30703C18.5959 6.7813 18.585 6.46513 18.5414 5.47301C18.4978 4.48453 18.3379 3.80494 18.1089 3.21621C17.88 2.59841 17.5638 2.07873 17.0441 1.56268C16.5281 1.04663 16.0084 0.726827 15.3978 0.490609C14.8055 0.261658 14.1295 0.101756 13.141 0.0581462C12.1453 0.0109024 11.8291 0 9.30339 0Z",fill:"#C4296A"}),e.createElement("path",{d:"M9.3033 4.52441C6.66492 4.52441 4.52441 6.66492 4.52441 9.3033C4.52441 11.9417 6.66492 14.0822 9.3033 14.0822C11.9417 14.0822 14.0822 11.9417 14.0822 9.3033C14.0822 6.66492 11.9417 4.52441 9.3033 4.52441ZM9.3033 12.4032C7.59163 12.4032 6.20339 11.015 6.20339 9.3033C6.20339 7.59163 7.59163 6.20339 9.3033 6.20339C11.015 6.20339 12.4032 7.59163 12.4032 9.3033C12.4032 11.015 11.015 12.4032 9.3033 12.4032Z",fill:"#C4296A"}),e.createElement("path",{d:"M15.3869 4.33541C15.3869 4.95321 14.8854 5.45109 14.2712 5.45109C13.6534 5.45109 13.1555 4.94958 13.1555 4.33541C13.1555 3.7176 13.657 3.21973 14.2712 3.21973C14.8854 3.21973 15.3869 3.72124 15.3869 4.33541Z",fill:"#C4296A"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_7542_11766"},e.createElement("rect",{width:"18.6068",height:"18.6068",fill:"white"})))),coins:a.creditOnInstagramFollowValue,coinName:d,title:a?.creditOnActivitiesProperties?.instagramFollow?.offerTitle?.trim()?a.creditOnActivitiesProperties.instagramFollow.offerTitle:"on Instagram follow",onCouponAvail:l}),a?.creditOnActivitiesProperties?.facebookLike?.status&&a?.creditOnFacebookLikeValue&&e.createElement(Vu,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasLikedOnFacebook,initializing:!t,url:a?.creditOnActivitiesProperties?.facebookLike?.url??"",type:"facebook_like",icon: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:"M12 2.66663C6.8453 2.66663 2.66663 6.87229 2.66663 12.0602C2.66663 16.7345 6.05874 20.6114 10.5006 21.3333V15.7506H8.00056V12.8362H10.5006V10.615C10.5006 8.08821 11.9705 6.69248 14.2196 6.69248C15.2969 6.69248 16.4236 6.88939 16.4236 6.88939V9.37052H15.182C13.9589 9.37052 13.5775 10.1477 13.5775 10.945V12.8362H16.3083L15.8718 15.7506H13.5775V21.3203C17.9809 20.5658 21.3333 16.7071 21.3333 12.0602C21.3333 6.87229 17.1546 2.66663 12 2.66663Z",fill:"#4A4A4A"})),coins:a.creditOnFacebookLikeValue,coinName:d,title:a?.creditOnActivitiesProperties?.facebookLike?.offerTitle?.trim()?a.creditOnActivitiesProperties.facebookLike.offerTitle:"on Facebook like",onCouponAvail:l}),a?.creditOnActivitiesProperties?.facebookShare?.status&&a?.creditOnFacebookShareValue&&e.createElement(Vu,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasSharedOnFacebook,initializing:!t,url:a?.creditOnActivitiesProperties?.facebookShare?.url??"",type:"facebook_share",icon: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:"M12 2.66663C6.8453 2.66663 2.66663 6.87229 2.66663 12.0602C2.66663 16.7345 6.05874 20.6114 10.5006 21.3333V15.7506H8.00056V12.8362H10.5006V10.615C10.5006 8.08821 11.9705 6.69248 14.2196 6.69248C15.2969 6.69248 16.4236 6.88939 16.4236 6.88939V9.37052H15.182C13.9589 9.37052 13.5775 10.1477 13.5775 10.945V12.8362H16.3083L15.8718 15.7506H13.5775V21.3203C17.9809 20.5658 21.3333 16.7071 21.3333 12.0602C21.3333 6.87229 17.1546 2.66663 12 2.66663Z",fill:"#4A4A4A"})),coins:a.creditOnFacebookShareValue,coinName:d,title:a?.creditOnActivitiesProperties?.facebookShare?.offerTitle?.trim()?a.creditOnActivitiesProperties.facebookShare.offerTitle:"on Facebook share",onCouponAvail:l}),a?.creditOnActivitiesProperties?.twitterFollow?.status&&a?.creditOnTwitterFollowValue&&e.createElement(Vu,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasFollowedOnTwitter,initializing:!t,url:a?.creditOnActivitiesProperties?.twitterFollow?.url??"",type:"twitter",icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},e.createElement("path",{d:"M523.4 215.7C523.7 220.2 523.7 224.8 523.7 229.3C523.7 368 418.1 527.9 225.1 527.9C165.6 527.9 110.4 510.7 64 480.8C72.4 481.8 80.6 482.1 89.3 482.1C138.4 482.1 183.5 465.5 219.6 437.3C173.5 436.3 134.8 406.1 121.5 364.5C128 365.5 134.5 366.1 141.3 366.1C150.7 366.1 160.1 364.8 168.9 362.5C120.8 352.8 84.8 310.5 84.8 259.5L84.8 258.2C98.8 266 115 270.9 132.2 271.5C103.9 252.7 85.4 220.5 85.4 184.1C85.4 164.6 90.6 146.7 99.7 131.1C151.4 194.8 229 236.4 316.1 240.9C314.5 233.1 313.5 225 313.5 216.9C313.5 159.1 360.3 112 418.4 112C448.6 112 475.9 124.7 495.1 145.1C518.8 140.6 541.6 131.8 561.7 119.8C553.9 144.2 537.3 164.6 515.6 177.6C536.7 175.3 557.2 169.5 576 161.4C561.7 182.2 543.8 200.7 523.4 215.7z"})),coins:a.creditOnTwitterFollowValue,coinName:d,title:a?.creditOnActivitiesProperties?.twitterFollow?.offerTitle?.trim()?a.creditOnActivitiesProperties.twitterFollow.offerTitle:"on Twitter follow",onCouponAvail:l}),a?.creditOnActivitiesProperties?.youtubeSubscription?.status&&a?.creditOnYouTubeSubscriptionValue&&e.createElement(Vu,{ctaContrastColor:n,ctaPrimaryColor:r,active:!t?.hasSubscribedOnYoutube,initializing:!t,url:a?.creditOnActivitiesProperties?.youtubeSubscription?.url??"",type:"youtube",icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},e.createElement("path",{d:"M581.7 188.1C575.5 164.4 556.9 145.8 533.4 139.5C490.9 128 320.1 128 320.1 128C320.1 128 149.3 128 106.7 139.5C83.2 145.8 64.7 164.4 58.4 188.1C47 231 47 320.4 47 320.4C47 320.4 47 409.8 58.4 452.7C64.7 476.3 83.2 494.2 106.7 500.5C149.3 512 320.1 512 320.1 512C320.1 512 490.9 512 533.5 500.5C557 494.2 575.5 476.3 581.8 452.7C593.2 409.8 593.2 320.4 593.2 320.4C593.2 320.4 593.2 231 581.8 188.1zM264.2 401.6L264.2 239.2L406.9 320.4L264.2 401.6z"})),coins:a.creditOnYouTubeSubscriptionValue,coinName:d,title:a?.creditOnActivitiesProperties?.youtubeSubscription?.offerTitle?.trim()?a.creditOnActivitiesProperties.youtubeSubscription.offerTitle:"on Youtube subscription",onCouponAvail:l})),e.createElement("div",{className:"yt-wtr-footer",style:vu.footer},e.createElement("hr",null),e.createElement("p",{className:"yt-wtr-footerText",style:vu.footerText},"stay signed-in with the account you use for checking out")))}function Au({icon:t}){return e.createElement("span",{className:"yt-wte-bgIcon",style:vu.wteBgIcon,"aria-hidden":!0},t)}function _u({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 Lu(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 Ru(t,n){return t?e.createElement("span",{key:n,style:{fontWeight:600}},t):null}function Mu({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?Ru(n,`referrer-${o}`):"{{referee_reward}}"===t?Ru(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 Ou({active:t=!0,title:n,customTitle:r,description:o,redeemMov:a,icon:i,coins:l,type:c,coinName:s,showAvail:d=!0,ctaContrastColor:p,ctaPrimaryColor:m,onCouponAvail:u}){return e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:vu.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...vu.redeemCardHeader,borderRadius:o&&""!=o?"8px 8px 0 0":"8px"}},e.createElement(Au,{icon:i}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:vu.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:vu.redeemCardIcon},i),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:vu.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:vu.redeemCardTitle},r??e.createElement(_u,{title:n,coins:l,type:c,coinName:s})),a&&e.createElement("p",{className:"yt-wtr-redeemCard_subtitle",style:vu.redeemCardSubtitle},50," Points Required •"," ","Minimum Order Value INR 499"))),d&&e.createElement("button",{onClick:u,disabled:!t,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:vu.cta},"Avail")),o&&""!=o&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:vu.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:vu.redeemCardFooterText},o)))}function Vu({active:r=!0,initializing:o=!1,title:a,description:i,url:l,type:c,coins:s,coinName:d,icon:p,ctaPrimaryColor:m,ctaContrastColor:u,onCouponAvail:g}){const[f,y]=t(null),[x,h]=t(!1),[b,w]=t(!r);return n(()=>{w(!r)},[r]),e.createElement("div",{className:"yt-wtr-redeemCard yt-wtr-redeemCard--flat",style:vu.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...vu.redeemCardHeader,borderRadius:i&&""!=i?"8px 8px 0 0":"8px"}},e.createElement(Au,{icon:p}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:vu.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:vu.redeemCardIcon},p),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:vu.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:vu.redeemCardTitle},e.createElement(_u,{title:a,coins:s??"",coinName:d})))),e.createElement("button",{onClick:async()=>{try{h(!0);await g(l,c)?(w(!0),y("Points Added")):y("Failed to add points")}catch(e){console.log("FAILED"),y("Failed to add points")}finally{h(!1),setTimeout(()=>y(null),1e4)}},disabled:b||o,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:vu.cta},x||o?e.createElement(wu,{size:18,color:"#fff",centered:!0}):b?"Availed":"Avail")),f&&e.createElement(hu,{displayText:f,background:"#000000",textColor:"#ffffff"}))}function Wu({userData:r,activityRewards:o,coins:a,type:i,coinName:l,title:c,initializing:s=!1,ctaContrastColor:d,ctaPrimaryColor:p,onBirthdayUpdate:m}){const[u,g]=t(!1),[f,y]=t(null),[x,h]=t(!1),[b,w]=t(null),[v,C]=t(r?.hasSetBirthday);n(()=>{C(!!r?.hasSetBirthday)},[r?.hasSetBirthday]);const E=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:vu.redeemCard},e.createElement("div",{className:"yt-wtr-redeemCard_header yt-wtr-redeemCard_header--decorated",style:{...vu.redeemCardHeader,borderRadius:"8px 8px 0 0"}},e.createElement(Au,{icon:E}),e.createElement("div",{className:"yt-wtr-redeemCard_header_left yt-wtr-redeemCard_headerContent",style:vu.redeemCardHeaderLeft},e.createElement("div",{className:"yt-wtr-redeemCard_icon",style:vu.redeemCardIcon},E),e.createElement("div",{className:"yt-wtr-redeemCard_titleBox",style:vu.redeemCardTitleBox},e.createElement("p",{className:"yt-wtr-redeemCard_title",style:vu.redeemCardTitle},e.createElement(_u,{title:c,coins:a,type:i,coinName:l})))),e.createElement(e.Fragment,null," ",e.createElement("button",{onClick:()=>g(!0),disabled:v||s,className:"yt-wtr-redeemCard_cta yt-wtr-redeemCard_cta--layered",style:vu.cta},s?e.createElement(wu,{size:18,color:"#fff",centered:!0}):v?"Availed":"Avail"),e.createElement(Hu,{isLoading:x,open:u,value:b,onChange:e=>{w(e.target.value),console.log("SElected date",e.target.value)},onClose:()=>g(!1),onSave:async e=>{try{h(!0);await m(e)?(C(!0),y("Birthday saved"),g(!1)):y("Failed to update birthday!")}catch(e){y("Failed to update birthday!")}finally{h(!1),setTimeout(()=>y(null),3e3)}}}))),!r?.hasSetBirthday&&e.createElement("div",{className:"yt-wtr-redeemCard_footer",style:vu.redeemCardFooter},e.createElement("p",{className:"yt-wtr-redeemCard_footerText",style:vu.redeemCardFooterText},"Add birth date to avail the offer")),f&&e.createElement(hu,{displayText:f,background:"#000000",textColor:"#ffffff"}))}function Hu({open:t,value:n,onSave:r,onClose:a,onChange:i,isLoading:l}){const c=o(null);return t?e.createElement("div",{className:"yt-dob-modal-backdrop",style:Pu.modalBackdrop,onClick:a},e.createElement("div",{className:"yt-dob-modal",style:Pu.modal,onClick:e=>e.stopPropagation()},e.createElement("h2",{className:"yt-dob-modal-title",style:Pu.modalTitle},"What’s your date of birth?"),e.createElement("input",{ref:c,type:"date",className:"yt-dob-date-input",style:Pu.dateInput,value:n??"",onChange:i}),e.createElement("div",{className:"yt-dob-modal-actions",style:Pu.modalActions},e.createElement("button",{className:"yt-dob-btn-secondary",style:Pu.btnSecondary,onClick:a},"Cancel"),e.createElement("button",{className:"yt-dob-btn-primary",style:Pu.btnPrimary,disabled:!n,onClick:()=>n&&r(n)},l?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Save")))):null}Ct("/* 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 ju={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}},qu={earned:"#D4F9A780",expired:"#FFB3B380",availed:"#CDE2FF80"},Uu={earned:"#3d8b3d",expired:"#c44a4a",availed:"#3a5fa8"},Qu=e=>({...ju.caret,color:Uu[e]}),Zu={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"},Gu={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"},Yu={awaiting_payment:"awaiting-payment",confirmed:"confirmed",in_transit:"in-transit",delivered:"delivered",processing:"processing"};function Xu(e){const t=Math.round(100*e)/100;return Number.isInteger(t)?t.toLocaleString():t.toLocaleString(void 0,{maximumFractionDigits:2})}function Ku(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return"";return`${t.getDate()} ${t.toLocaleString("en-US",{month:"short"})} ${t.getFullYear()}`}function Ju(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleDateString("en-US",{month:"long",year:"numeric"})}function eg(e,t,n){if("expired"===e)return`${n} Expired`;return`${n} ${"earned"===e?"Earned":"Availed"}: on-${function(e){const t=e.toLowerCase();return Zu[t]?Zu[t]:t.split("_").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}(t)}`}function tg(e){if(e)return Yu[e]??e.replace(/_/g,"-")}function ng(e,t){return e.map(e=>{return{deltaLabel:`+ ${Xu(e.points)} ${t.toLowerCase()}`,orderId:e.orderId?`#ORDERID: ${e.orderId}`:void 0,status:tg(e.orderStatus),note:(n=e.criteria,n&&Gu[n]?Gu[n]:"Coins will be credited once the order is complete")};var n})}const rg={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 og({data:t,tokenName:n="Coins",currencySymbol:r="$"}){const o=t??rg,{totals:a,months:i,pending:l}=function(e,t,n){const r={saved:(o=e.summary.totalSaved??0,a=n,`${a}${Xu(o)}`),earned:Xu(e.summary.totalEarned??0),available:Xu(e.summary.totalAvailed??0),expired:Xu(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=Ju(e.createdAt);if(!n)continue;const r=e.type,o={id:e.id,dateLabel:Ku(e.createdAt),title:eg(r,e.activityType,t),amount:Xu(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:ng(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:ju.wrap},e.createElement("div",{className:"yt-rt-totals",style:ju.totals},e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:ju.totalLabel},"Total Saved"),e.createElement("div",{className:"yt-rt-totalValue",style:ju.totalValue},a.saved)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:ju.totalLabel},"Total Earned"),e.createElement("div",{className:"yt-rt-totalValue",style:ju.totalValue},a.earned)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:ju.totalLabel},"Total Avail",e.createElement("span",{className:"yt-rt-hideSm"},"ed")),e.createElement("div",{className:"yt-rt-totalValue",style:ju.totalValue},a.available)),e.createElement("div",{className:"yt-rt-total"},e.createElement("div",{className:"yt-rt-totalLabel",style:ju.totalLabel},"Expired"),e.createElement("div",{className:"yt-rt-totalValue",style:ju.totalValue},a.expired))),l.map((t,n)=>e.createElement(e.Fragment,{key:`${t.orderId??"pending"}-${n}`},e.createElement("div",{className:"yt-rt-pendingPills",style:ju.pendingPills},e.createElement("span",{className:"yt-rt-pill yt-rt-pill--delta",style:{...ju.pill,...ju.pillDelta}},t.deltaLabel),e.createElement("div",{className:"yt-rt-pendingPillsRight",style:ju.pendingPillsRight},t.orderId&&e.createElement("span",{className:"yt-rt-pill yt-rt-pill--order",style:{...ju.pill,...ju.pillOrder}},t.orderId),t.status&&e.createElement("span",{className:"yt-rt-pill yt-rt-pill--status",style:{...ju.pill,...ju.pillStatus}},t.status))),t.note&&e.createElement("div",{className:"yt-rt-pendingNote",style:ju.pendingNote},t.note))),i.map(t=>e.createElement("div",{key:t.monthTitle,className:"yt-rt-month"},e.createElement("div",{className:"yt-rt-monthTitle",style:ju.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,{...ju.row,background:qu[n]})},e.createElement("div",{className:"yt-rt-rowHeader",style:ju.rowHeader},e.createElement("span",{className:"yt-rt-caret",style:Qu(t.kind)},"▶"),e.createElement("span",{className:"yt-rt-date",style:ju.date},t.dateLabel)),e.createElement("div",{className:"yt-rt-rowBody",style:ju.rowBody},e.createElement("div",{className:"yt-rt-title"},function(t){const n=t.indexOf(": ");return-1===n?e.createElement("span",{style:ju.title},t):e.createElement(e.Fragment,null,e.createElement("span",{style:ju.title},t.substring(0,n+1)),e.createElement("span",{style:ju.titleSuffix}," ",t.substring(n+2)))}(String(t.title))),e.createElement("div",{className:"yt-rt-amount",style:ju.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 ag({className:t,overlayColor:n,gradientPrefix:r}){const o=c(),a=e=>`${r}-${e}-${o.replace(/:/g,"")}`,i=a("filter"),l=a("paint0"),s=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(#${s})`}),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:s,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 ig(e){try{return Number(e).toLocaleString()}catch{return e}}function lg({value:r,duration:a=1200}){const[i,l]=t(0),c=o(0);return n(()=>{const e=c.current,t=Number.isFinite(r)?r:0;if(e===t)return;let n=0,o=null;const i=r=>{null===o&&(o=r);const s=Math.min(1,(r-o)/a),d=Math.round(e+(t-e)*(e=>1-Math.pow(1-e,3))(s));c.current=d,l(d),s<1&&(n=requestAnimationFrame(i))};return n=requestAnimationFrame(i),()=>cancelAnimationFrame(n)},[r,a]),e.createElement(e.Fragment,null,i.toLocaleString())}function cg({config:r}){const{isMobile:a,previewMode:i=!1,bannerBackground:l,bannerBackgroundType:c="shape",bannerImage:s,bannerTextColor:d,bannerTextAlignment:p="center",showWatermark:m=!0,watermarkColor:u,themePrimaryColor:g,themeContrastColor:f,themeSecondaryColor:y,themeSecondaryContrastColor:x,themeBackgroundColor:h,themeTextColor:b,themeAccentColor:w,widgetOpen:v,widgetRoundedCorners:C,ctaPrimaryColor:E,ctaPrimaryContrastColor:k,ctaBorderColor:T,ctaSecondaryColor:S,ctaSecondaryContrastColor:N,ctaShowIcon:B,ctaBorderRadius:F,showWaysToEarn:z,showWCoinValue:$,showReferral:I,showTransactions:P,showVipSection:D,showLogo:A=!1,brandName:_,headingEyebrow:L,userGreeting:R="Welcome to",brandLogoUrl:M,balanceCoins:O,coinValInr:V,currencyCode:W,tokenName:H,maxRedeemableCoins:j,rateTitle:q,rateSub:U,couponHeading:Q,couponCode:Z,couponList:G,onCouponAvail:Y,referralLink:X,userRewardTier:K,brandRewardTiers:J,onClose:ee=()=>{},onLogout:te,userData:ne,activityRewards:re,brandRewardProgram:oe,recentTransactionsData:ae,isLoading:ie,onBirthdayUpdate:le,onSocialClick:ce}=r||{},[se,de]=t(!1),pe=o(null),me=o(null),ue=o(null),[ge,fe]=t(!1),[ye,xe]=t("profile"),he=e=>{i||xe(e)},be="start"===p?{alignItems:"flex-start",textAlign:"left"}:"end"===p?{alignItems:"flex-end",textAlign:"right"}:{alignItems:"center",textAlign:"center"},we=null!=O&&""!==O&&!isNaN(Number(O)),ve="static"===c?"":s??"",Ce=re?.creditOnActivitiesProperties?.referralRewardConfig,Ee=K?.currentTier,ke=Array.isArray(Ee?.catalogDealsProducts)?Ee?.catalogDealsProducts??[]:[],Te=ke?.length>0,Se=Ee?.rewardMultiplier,Ne=K?.nextTier,Be=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:`${ig(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}${ig(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:`${ig(Math.max(0,a-o))} points`}return null}(Ne,K,W),Fe=!!Ce?.customizeReferralSectionContent,ze=Ce?.shareMethod,$e=oe?.coinName??H??"coins",Ie=Lu(Ce?.referrerReward,$e,W),Pe=Lu(Ce?.refereeReward,$e,W);async function De(e){try{de(!0),await navigator.clipboard.writeText(e),setTimeout(()=>de(!1),2e3)}catch{}}n(()=>{const e=pe.current,t=me.current,n=ue.current;if(!e||!t||!n)return;const r=80;let o=!1,a=0,i="profile"!==ye||ge;const l=t=>{o=t,e.classList.toggle("yt-rw-card--locked",t),t&&(e.scrollTop=0,i=!0,fe(!0))},c=e=>{const t=Math.max(8,78),n=Math.max(0,t-12);if(!i&&e>=t)return i=!0,void fe(!0);i&&e<=n&&(i=!1,fe(!1))},s=(e,t,n)=>Math.min(n,Math.max(t,e)),d=t=>{if(!o){const o=a,i=s(o+t,0,r);a=i,e.scrollTop=i,c(i);const d=t-(i-o);return i>=79&&(l(!0),d>0&&(n.scrollTop+=d)),!0}if(o){if("profile"!==ye)return!1;if(t<0&&n.scrollTop<=0){l(!1);const n=s(a+t,0,r);return a=n,e.scrollTop=n,c(n),!0}return!1}return!1},p=e=>{d(e.deltaY)&&e.preventDefault()};let m=0;const u=e=>{m=e.touches[0]?.clientY??0},g=e=>{const t=e.touches[0]?.clientY??0,n=m-t;m=t;d(n)&&e.preventDefault()},f=()=>{if(a=s(a,0,r),o)return a=r,e.scrollTop=0,i=!0,void fe(!0);e.scrollTop=a,c(a)};e.addEventListener("wheel",p,{passive:!1}),e.addEventListener("touchstart",u,{passive:!0}),e.addEventListener("touchmove",g,{passive:!1}),window.addEventListener("resize",f);const y="profile"!==ye;return fe(y),e.scrollTop=0,n.scrollTop=0,y?(a=r,l(!0)):(i=!1,a=0,l(!1),c(0)),()=>{e.removeEventListener("wheel",p),e.removeEventListener("touchstart",u),e.removeEventListener("touchmove",g),window.removeEventListener("resize",f)}},[ye]);const Ae=async e=>{const t=X?.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 De(t)}if("instagram"===e)return await De(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")};return v?e.createElement("div",{onMouseDown:e=>e.stopPropagation(),ref:pe,className:"yt-rw-card",style:{background:l,borderRadius:C&&!a?"24px":"0px",marginInline:C&&!a?"63px":"0px",height:C&&!a?"95%":"",overflow:C&&!a?"hidden":void 0}},e.createElement("div",{ref:me,className:"yt-rw-head "+(ge||"profile"!==ye?"yt-rw-head--shrink":""),style:{color:d,backgroundColor:l,backgroundImage:ve&&ve.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${ve})`:void 0,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",padding:"profile"!==ye?"0px":"",maxHeight:"profile"!==ye?"0px":"",minHeight:"profile"!==ye?"0px":"",overflow:"profile"!==ye?"hidden":"",alignItems:be?.alignItems,textAlign:be?.textAlign}},e.createElement("button",{className:"yt-rw-close","aria-label":"Close",onClick:ee,style:{color:d}},"×"),!ve&&m&&e.createElement("div",{className:"yt-rw-headBg",style:u?{color:u}:void 0},_),A&&M&&M?.length>0&&e.createElement("div",{className:"yt-rw-logo",style:{alignSelf:be?.alignItems??"",paddingRight:"20px"}},e.createElement("img",{src:M,alt:""})),"profile"==ye&&e.createElement(e.Fragment,null," ",e.createElement("div",{className:"yt-rw-eyebrow",style:{paddingRight:"20px"}},R),e.createElement("div",{className:"yt-rw-title",style:{paddingRight:"20px"}},_," Rewards"))),"profile"!=ye&&e.createElement("div",{className:"yt-rw-backNavigation",style:{backgroundColor:l,backgroundImage:ve&&ve.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${ve})`: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:()=>he("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"==ye?"Ways to Redeem":"wte"==ye?"Ways to Earn":"recentTransactions"==ye?"Recent Transactions":"VIP Tiers")," ",e.createElement("div",{style:{height:"24px",width:"36px",display:"block"}}))),e.createElement("div",{ref:ue,className:"yt-rw-body yt-rw-body--"+("profile"===ye?"back":"forward"),style:{backgroundColor:h,color:b,borderRadius:"profile"!=ye?"0px":""}},"profile"==ye?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rw-content"}," ",$&&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"},we?e.createElement(lg,{value:Number(O)}):" "),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}},H??"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"})))),we?e.createElement("div",{className:"yt-rw-note",style:{color:b}},"Your point balance is"," ",e.createElement("b",{style:{color:b}},Number(V)*Number(O)," in ",W)," ","value. Check how to avail all the benefits in"," ",e.createElement("span",{style:{cursor:"pointer",color:b},onClick:()=>he("wtr"),className:"yt-rw-link"},"redeem options")):e.createElement("div",{className:"yt-rw-note yt-rw-skel",style:{borderRadius:"0px",height:"25px"}}),z&&e.createElement("div",{onClick:()=>he("wte"),className:"yt-rw-cta",style:{borderColor:T,backgroundColor:E,color:k,borderRadius:F}},e.createElement("div",{className:"yt-rw-cta-left",style:{color:k}},B&&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 ",H??"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"})))),$&&e.createElement("div",{className:"yt-rw-rate"},e.createElement("div",{className:"yt-rw-rate__icon"},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"},`1 ${H} = 1 ${W}`),e.createElement("p",{className:"yt-rw-rate__sub"},`No min. order value required ${j&&`• redeem upto ${j} ${H}`}`)),e.createElement(bu,{setScreenType:he,themePrimaryColor:g,themeContrastColor:f,themeSecondaryColor:y,themeSecondaryContrastColor:x,showCTA:!0,couponCode:Z,couponHeading:Q,copyFunction:De,borderRadius:F}),I&&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"},Fe?e.createElement(Mu,{title:Ce?.offerTitle,referrerReward:Ie,refereeReward:Pe}):e.createElement(e.Fragment,null,"Invite a friend to make an order • Earn ",H??"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"===ze?"Share your referral code":"Share your referral link"),e.createElement("div",{style:{display:"flex",gap:"7px",justifyContent:"referral_code"===ze?"center":void 0,alignItems:"center"}},"referral_code"===ze?e.createElement("div",{className:"yt-rw-codebox",style:{color:w,borderRadius:F}},X):e.createElement("div",{className:"yt-rw-inputrow",style:{borderRadius:F}},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:X,readOnly:!0})),e.createElement("button",{className:"yt-rw-copy",type:"button",style:{cursor:"pointer",borderRadius:F},onClick:()=>De(X)},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:()=>Ae("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:()=>Ae("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:()=>Ae("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:()=>Ae("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:()=>Ae("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"},"They sign up on store"))),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"))))),P&&e.createElement("div",{className:"yt-rw-cta",style:{borderColor:T,backgroundColor:S,color:N,borderRadius:F},onClick:()=>he("recentTransactions")},e.createElement("div",{className:"yt-rw-cta-left",style:{color:N}},B&&e.createElement("span",{className:"yt-rw-coin"},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"20",viewBox:"0 0 19 20",fill:"none"},e.createElement("path",{d:"M15.2227 4.6122C16.6309 6.03777 17.4185 7.96217 17.4139 9.96596C17.4139 14.1477 14.0643 17.5374 9.93178 17.5374V16.0231C13.2375 16.0231 15.9178 13.311 15.9178 9.96596C15.9216 8.36273 15.2912 6.82305 14.1642 5.6828C13.6119 5.12081 12.9532 4.67449 12.2265 4.3699C11.4998 4.06531 10.7197 3.90857 9.93178 3.90882C7.24846 3.90882 4.97704 5.69567 4.21762 8.1579L5.24128 7.45906C5.32266 7.4035 5.41427 7.36469 5.5108 7.34489C5.60732 7.32509 5.70681 7.32469 5.80349 7.34371C5.90017 7.36274 5.9921 7.40081 6.07392 7.45571C6.15574 7.51061 6.22582 7.58124 6.28008 7.66349C6.39113 7.83011 6.43218 8.03374 6.39436 8.23037C6.35653 8.42701 6.24287 8.60087 6.07792 8.7144L3.59676 10.4081C3.51539 10.4637 3.42377 10.5025 3.32725 10.5223C3.23073 10.5421 3.13123 10.5425 3.03455 10.5235C2.93787 10.5045 2.84594 10.4664 2.76412 10.4115C2.6823 10.3566 2.61222 10.286 2.55796 10.2037L0.885436 7.69302C0.774143 7.52633 0.732957 7.32253 0.770791 7.12571C0.808624 6.92889 0.922434 6.75489 1.08759 6.64135C1.16897 6.58579 1.26059 6.54698 1.35711 6.52718C1.45363 6.50737 1.55313 6.50697 1.64981 6.526C1.74649 6.54502 1.83841 6.5831 1.92023 6.63799C2.00206 6.69289 2.07214 6.76353 2.12639 6.84577L2.76164 7.79902C3.68156 4.67353 6.54356 2.39453 9.93178 2.39453C11.998 2.39453 13.8689 3.24253 15.2227 4.6122Z",fill:"currentColor"}),e.createElement("path",{d:"M13.2584 10.4999H10.2654V6.71417C10.2654 6.29623 9.93076 5.95703 9.51736 5.95703C9.10396 5.95703 8.7693 6.29623 8.7693 6.71417V11.257C8.7687 11.3559 8.78758 11.4538 8.82485 11.5454C8.86212 11.6369 8.91705 11.7202 8.98652 11.7905C9.05598 11.8608 9.13861 11.9168 9.22969 11.9552C9.32078 11.9935 9.41852 12.0136 9.51736 12.0142H13.2584C13.6718 12.0142 14.0065 11.675 14.0065 11.257C14.0065 10.8391 13.6718 10.4999 13.2584 10.4999Z",fill:"currentColor"})))," ","Recent Transactions"),e.createElement("div",{className:"yt-rw-cta-right",style:{color:N}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{d:"M13.4361 17.9852C13.4474 17.9965 13.7942 18.0835 14.2067 18.1783C14.6193 18.2731 14.9613 18.3362 14.9668 18.3186C14.9723 18.3009 15.015 18.0146 15.0617 17.6822C15.1554 17.0148 15.3825 16.2356 15.6251 15.7482C16.3812 14.2294 17.7379 13.2237 19.3834 12.9623L19.8024 12.8957L19.8024 12.2248L19.8024 11.5538L19.4227 11.49C16.9345 11.0726 15.3123 9.21214 15.0088 6.42796C14.989 6.24616 14.9653 6.09746 14.9562 6.09746C14.8723 6.09746 13.4818 6.43256 13.4555 6.45911C13.4365 6.4783 13.4506 6.64874 13.487 6.83779C13.8894 8.93118 15.0414 10.6346 16.5365 11.3469L16.8951 11.5177L9.52044 11.5311L4.85718 11.5396L4.85718 12.8975L9.53244 12.906L16.8897 12.9195L16.437 13.1488C15.2624 13.7439 14.3325 14.9112 13.7848 16.478C13.6288 16.9244 13.3933 17.942 13.4361 17.9852Z",fill:"currentColor"})))),D&&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"),Ee&&e.createElement("p",{className:"yt-rw-tiers_desc",style:{color:b,fontSize:"15px"}},Ee.name)),e.createElement("div",{className:"yt-rw-tiers__gems"},e.createElement(ag,{className:"yt-gem yt-gem--violet",gradientPrefix:"vip-violet",overlayColor:"#8E74F4"}),e.createElement(ag,{className:"yt-gem yt-gem--gold",gradientPrefix:"vip-gold",overlayColor:"#F3BE00"}),e.createElement(ag,{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,Se??Ne?.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}}," ",Te||(Ne?.catalogDealsProducts?.length??0)>0?"special deals":"special discounts")),e.createElement("button",{onClick:()=>he("vip"),style:{"--hover-bg":y,"--hover-text":x}},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.createElement("path",{opacity:"0.3",d:"M7.85791 0.124023C7.85791 0.124023 7.85791 5.176 9.23942 6.55751C10.6209 7.93902 15.6729 7.93902 15.6729 7.93902C15.6729 7.93902 10.7465 7.81343 9.23942 9.32053C7.73233 10.8276 7.85791 15.754 7.85791 15.754C7.85791 15.754 7.85791 10.702 6.4764 9.32053C5.09489 7.93902 0.0429162 7.93902 0.0429162 7.93902C0.0429162 7.93902 5.09489 7.93902 6.4764 6.55751C7.85791 5.176 7.85791 0.124023 7.85791 0.124023Z",fill:"#161616"})),e.createElement("p",null,"Explore Tiers"),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},e.createElement("path",{opacity:"0.3",d:"M7.85791 0.124023C7.85791 0.124023 7.85791 5.176 9.23942 6.55751C10.6209 7.93902 15.6729 7.93902 15.6729 7.93902C15.6729 7.93902 10.7465 7.81343 9.23942 9.32053C7.73233 10.8276 7.85791 15.754 7.85791 15.754C7.85791 15.754 7.85791 10.702 6.4764 9.32053C5.09489 7.93902 0.0429162 7.93902 0.0429162 7.93902C0.0429162 7.93902 5.09489 7.93902 6.4764 6.55751C7.85791 5.176 7.85791 0.124023 7.85791 0.124023Z",fill:"#161616"}))))),Be&&Ne&&e.createElement("div",{className:"yt-rw-note"},"You’re ",e.createElement("b",null,Be)," away from"," ",e.createElement("b",null,Ne.name))),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:te,style:{background:S,color:N}},"Sign-Out"))),e.createElement("div",{className:"yt-rw-stay-signed-in",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:b||"#000",textAlign:"center",fontFamily:"Poppins",fontSize:9,fontWeight:400,lineHeight:"122%",zIndex:2}},"Stay signed-in with the account you use for checking out")):"wtr"==ye?e.createElement(Eu,{balanceCoins:Number(O),couponList:G,currencyCode:W,onCouponAvail:Y,setScreenType:he,themeSecondaryColor:y,themeSecondaryContrastColor:x,showCTA:!0,couponCode:Z,couponHeading:Q,copyFunction:De,ctaBorderRadius:F}):"vip"==ye?e.createElement(Iu,{onBack:()=>he("profile"),brandRewardTiers:J,balanceCoins:O,userRewardTier:K,currencyCode:W}):"wte"==ye?e.createElement(Du,{ctaPrimaryColor:E??"",ctaContrastColor:k??"",currencyCode:W,userData:ne,activityRewards:re,onBirthdayUpdate:le,onSocialClick:ce,isLoading:ie,brandRewardProgram:oe}):"recentTransactions"==ye?e.createElement(og,{data:ae,tokenName:H,currencySymbol:"INR"===W?"₹":W??"$"}):e.createElement("div",null)),se&&e.createElement(hu,{background:g,textColor:f})):e.createElement("div",null)}function sg({textColor:t="",backgroundColor:n="",position:r="",yOffsetValue:o="",launcherTitle:a="",borderColor:i="",iconType:l="",addVisibilityDelay:c=!1,addAttentionWaves:s=!0,onClick:d=()=>{}}){let p="",m="",u="",g="";return"top-left"==r?(p="0px",m=o):"top-right"==r?(u="0px",m=o):"bottom-right"==r?(u="0px",g=o):(p="0px",g=o),a?.trim()?.length>0?e.createElement("div",{onClick:d,className:"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:p,right:u,top:m,bottom:g,borderColor:i,border:""!=i?"1px solid":"none"}},s&&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&&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:"M16.1 7.81003L13.15 4.84003L5.97 12.03L8.92 14.99L13.15 19.21L16.11 16.25L16.12 16.25L16.12 7.80003L16.1 7.81003ZM24 12L18 1.53003L6 1.53003L-4.57658e-07 12L6 22.47L18 22.47L24 12ZM7.15 20.47L2.27 12L7.15 3.53003L16.88 3.53003L21.76 12L16.88 20.47L7.15 20.47Z",fill:""!=t?t:"white"})),e.createElement("p",{style:{color:t,transform:"top-right"==r||"bottom-right"==r?"scale(-1, 1)":""}},a),("top-right"==r||"bottom-right"==r)&&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:"M16.1 7.81003L13.15 4.84003L5.97 12.03L8.92 14.99L13.15 19.21L16.11 16.25L16.12 16.25L16.12 7.80003L16.1 7.81003ZM24 12L18 1.53003L6 1.53003L-4.57658e-07 12L6 22.47L18 22.47L24 12ZM7.15 20.47L2.27 12L7.15 3.53003L16.88 3.53003L21.76 12L16.88 20.47L7.15 20.47Z",fill:""!=t?t:"white"}))):e.createElement("div",{onClick:d,className:"yt-launcher-sticky",style:{cursor:"pointer",backgroundColor:n,transform:"top-right"==r||"bottom-right"==r?"rotate(-90deg)":"",left:p,right:u,top:m,bottom:g,borderColor:i}},s&&e.createElement(e.Fragment,null,e.createElement("span",{className:"yt-ring"}),e.createElement("span",{className:"yt-ring yt-ring2"})),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"22",viewBox:"0 0 24 22",fill:"none"},e.createElement("path",{d:"M16.1 6.81003L13.15 3.84003L5.97 11.03L8.92 13.99L13.15 18.21L16.11 15.25L16.12 15.25L16.12 6.80003L16.1 6.81003ZM24 11L18 0.530029L6 0.530029L-4.57658e-07 11L6 21.47L18 21.47L24 11ZM7.15 19.47L2.27 11L7.15 2.53003L16.88 2.53003L21.76 11L16.88 19.47L7.15 19.47Z",fill:""!=t?t:"white"})))}function dg({textColor:t="",backgroundColor:n="",position:r="",yOffsetValue:o="20px",launcherTitle:a="Rewards",borderColor:i="",iconType:l="",addVisibilityDelay:c=!1,addAttentionWaves:s=!0,onClick:d=()=>{}}){let p="",m="",u="";return"right"==r?(m=o,u=o):(p=o,u=o),e.createElement("div",{onClick:d,className:"yt-launcher-bubble",style:{cursor:"pointer",backgroundColor:n,left:p,right:m,bottom:u,border:""!=i?"1px solid":"none",borderColor:i,borderRadius:0==a?.length?"100px":"",padding:0==a?.length?"10px":""}},s&&e.createElement(e.Fragment,null,e.createElement("span",{className:"yt-ring"}),e.createElement("span",{className:"yt-ring yt-ring2"})),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:"M7.81003 7.9L4.84003 10.85L12.03 18.03L14.99 15.08L19.21 10.85L16.25 7.89L16.25 7.88L7.80003 7.88L7.81003 7.9ZM12 1.83063e-06L1.53003 6L1.53003 18L12 24L22.47 18L22.47 6L12 1.83063e-06ZM20.47 16.85L12 21.73L3.53003 16.85L3.53003 7.12L12 2.24L20.47 7.12L20.47 16.85Z",fill:""!=t?t:"#0A0A0A"})),a?.length>0&&e.createElement("p",{style:{color:t}},a))}function pg({textColor:n="",backgroundColor:r="",launcherTitle:a="",offerTitle:l="",borderColor:c="",iconType:s="",addVisibilityDelay:d=!1,onClick:p=()=>{}}){const m=o(null),u=o(null),[g,f]=t(!1),[y,x]=t(12);return i(()=>{const e=m.current,t=u.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);x(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,c]),e.createElement("div",{onClick:p,className:"yt-launcher-ribbon",style:{color:n,backgroundColor:r,borderColor:c,border:""!==c?"1px solid":"none"}},e.createElement("div",{className:"yt-ribbon-viewport",ref:m,"aria-live":"polite"},e.createElement("div",{className:"yt-ribbon-track "+(g?"yt-is-marquee":""),ref:u},e.createElement("span",{style:{color:n}},a),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none","aria-hidden":"true"},e.createElement("path",{d:"M6.64802 7.22015L4.27202 9.58015L10.024 15.3241L12.392 12.9641L15.768 9.58015L13.4 7.21215L13.4 7.20415L6.64002 7.20415L6.64802 7.22015ZM10 0.900148L1.62402 5.70015L1.62402 15.3001L10 20.1001L18.376 15.3001L18.376 5.70015L10 0.900148ZM16.776 14.3801L10 18.2841L3.22402 14.3801L3.22402 6.59615L10 2.69215L16.776 6.59615L16.776 14.3801Z",fill:""!==n?n:"white"})),e.createElement("p",{style:{color:n}},l),g&&e.createElement(e.Fragment,null,e.createElement("span",{style:{color:n}},a),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none","aria-hidden":"true"},e.createElement("path",{d:"M6.64802 7.22015L4.27202 9.58015L10.024 15.3241L12.392 12.9641L15.768 9.58015L13.4 7.21215L13.4 7.20415L6.64002 7.20415L6.64802 7.22015ZM10 0.900148L1.62402 5.70015L1.62402 15.3001L10 20.1001L18.376 15.3001L18.376 5.70015L10 0.900148ZM16.776 14.3801L10 18.2841L3.22402 14.3801L3.22402 6.59615L10 2.69215L16.776 6.59615L16.776 14.3801Z",fill:""!==n?n:"white"})),e.createElement("p",{style:{color:n}},l)))))}Ct('@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}\n\np {\n margin: 0px;\n}\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}\n.yt-launcher-stickyText svg {\n transform: rotate(-90deg);\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}\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;\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;\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');function mg({launcherType:t="",textColor:n="",backgroundColor:r="",position:o="",yOffsetValue:a="0px",launcherTitle:i="",offerTitle:l="",borderColor:c="",iconType:s="",addVisibilityDelay:d=!1,addAttentionWaves:p=!0,onClick:m=()=>{}}){const u=(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);switch(t){case"sticky":return e.createElement(sg,{onClick:m,textColor:n,backgroundColor:r,position:o,yOffsetValue:u,borderColor:c,iconType:s,addAttentionWaves:p,addVisibilityDelay:d,launcherTitle:i});case"bubble":return e.createElement(dg,{onClick:m,textColor:n,backgroundColor:r,position:o,yOffsetValue:u,borderColor:c,iconType:s,addAttentionWaves:p,addVisibilityDelay:d,launcherTitle:i});case"ribbon":return e.createElement(pg,{onClick:m,offerTitle:l,textColor:n,backgroundColor:r,borderColor:c,iconType:s,addVisibilityDelay:d,launcherTitle:i});default:return e.createElement("div",null)}}function ug({phoneLabel:a="9315313208",authType:i,email:l,length:c=4,onConfirm:s,onResend:d,onChangeNumber:p,setToast:m,loading:u=!1,tone:g="#B85552",themeBackgroundColor:f,themeAccentColor:y,themeTextColor:x,ctaPrimaryColor:h,ctaPrimaryContrastColor:b,countryCode:w}){const v=Math.min(6,Math.max(4,c)),[C,E]=t(Array(v).fill("")),k=o([]),[T,S]=t(!1);n(()=>{k.current[0]?.focus()},[]);const N=r(()=>C.join(""),[C]);function B(e,t){const n=[...C];n[e]=t,E(n)}async function F(e){if(e.every(e=>""!==e)){S(!0);const t=e.join("");if(s){await s(t)||(S(!1),m("OTP did not match. Please try again!"),setTimeout(()=>m(null),3e3))}}}function z(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(),F(r)}return e.createElement("div",{className:"yt-otp-wrap",style:{"--otp-accent":g}},e.createElement("h3",{className:"yt-otp-title",style:{color:x}},"OTP Verification"),"email"==i?e.createElement("p",{className:"yt-otp-subtext",style:{color:x}},"A code has been sent to your email"," ",e.createElement("span",{className:"yt-otp-phone"},l)):e.createElement("p",{className:"yt-otp-subtext",style:{color:x}},"A code has been sent to your registered no"," ",e.createElement("span",{className:"yt-otp-phone"},a)),e.createElement("button",{style:{color:y,cursor:"pointer"},className:"yt-otp-link",onClick:p,type:"button"},"phone"==i?"change number?":"change email?"),e.createElement("hr",{className:"yt-otp-rule",style:{margin:"12px"}}),e.createElement("form",{className:"yt-otp-form",onSubmit:async function(e){if(e.preventDefault(),N.length===v&&s){await s(N)||(S(!1),m("Could not verify OTP!"),setTimeout(()=>m(null),2e3))}}},e.createElement("div",{className:"yt-otp-boxes","aria-label":`Enter ${v}-digit code`},Array.from({length:v}).map((t,n)=>e.createElement("input",{key:n,type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:1,value:C[n],onChange:e=>function(e,t){const n=t.target.value.replace(/\D/g,"");if(!n)return;if(n.length>1)return void z(e,n);const r=[...C];r[e]=n,E(r),e<v-1&&k.current[e+1]?.focus(),F(r)}(n,e),onPaste:e=>function(e,t){t.preventDefault(),z(e,t.clipboardData.getData("text"))}(n,e),onKeyDown:e=>function(e,t){if("Backspace"===t.key){if(C[e])return B(e,""),void S(!1);e>0&&(k.current[e-1]?.focus(),B(e-1,""),S(!1))}else"ArrowLeft"===t.key&&e>0?k.current[e-1]?.focus():"ArrowRight"===t.key&&e<v-1&&k.current[e+1]?.focus()}(n,e),ref:e=>k.current[n]=e,className:"yt-otp-box "+(C[n]?"yt-filled":""),"aria-label":`Digit ${n+1}`}))),e.createElement("p",{className:"yt-otp-hint",style:{color:x}},"Didn’t receive any code?"," ",e.createElement("button",{style:{color:y,cursor:"pointer"},type:"button",className:"yt-otp-link",onClick:d},"resend code")),e.createElement("button",{style:{width:"100%",color:b,background:h},disabled:!T,type:"submit",className:"yt-rwmd-cta"},T?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Confirm")))}Ct('/* --------- 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}\np,\nh3 {\n margin: 0px;\n}\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.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: 326.133px;\nheight: 0.718px;\nbackground: #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');Ct(".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 gg={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 fg({onClose:t,handleSessionDetected:n}){return e.createElement("div",{className:"yt-asd-ol",style:gg.overlay,role:"dialog","aria-modal":"true"},e.createElement("div",{className:"yt-asd-card",style:gg.card},e.createElement("h4",{className:"yt-asd-title",style:gg.title},"Active Session Found!"),e.createElement("p",{className:"yt-asd-desc",style:gg.desc},"You’re already signed in. Tap below to refresh and access your loyalty rewards."),e.createElement("button",{className:"yt-asd-btn",style:gg.btn,onClick:n},"Refresh & Continue")))}function yg({config:r}){const{themeBackgroundColor:a="",themeTextColor:i="",bannerBackground:l="",bannerBackgroundType:c="shape",bannerImage:s="",bannerTextColor:d="",watermarkColor:p="#fff",bannerTextAlignment:m="start",showWatermark:u=!0,showLogo:g=!1,brandLogoUrl:f="",guestGreeting:y="Welcome to",existingUserGreeting:x="",emailRequired:h,onPhoneChange:b,onEmailChange:w,validatePhone:v,setEmailRequired:C,onClose:E=()=>{},onRegister:k,handleChangeNumber:T,handleResendOtp:S,handleSessionDetected:N,onSendOTP:B,isSessionDetected:F,authType:z="default",formFilled:$=!1,redirectUrl:I="",ctaTitle:D="Register Now",ctaPrimaryColor:A="",ctaPrimaryContrastColor:_="",themeAccentColor:L="",registerLink:R="",brandTitle:M="My Pahadi Rewards",widgetOpen:O=!0,heading:V="Get Started",subcopy:W="Welcome to Moonstruck Loyalty Program <> Earn as you Buy",termsHref:H="#",privacyHref:j="#",isLoading:q=!0,styleVars:U={},countryCode:Q,isMobilePreview:Z,viewportMode:G}=r||{},Y=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"==z);const[J,ee]=t(""),[te,ne]=t(""),[re,oe]=t(!1),[ae,ie]=t(null),[le,ce]=t(Q);console.log("I AM IN MOBILE");const se="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(!O)return;const e=e=>"Escape"===e.key&&E?.();return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[O,E]),!O)return null;const[ge,fe]=t(!1);return n(()=>{fe($)},[$]),e.createElement("section",{onMouseDown:e=>e.stopPropagation(),className:"yt-rwmd-dialog"+("mobile"===G?" yt-rwmd-force-mobile":""),role:"dialog","aria-modal":"true","aria-labelledby":"yt-rwmd-title",onClick:e=>e.stopPropagation(),ref:Y,style:{background:a}},F&&e.createElement(fg,{handleSessionDetected:N??(()=>{})}),e.createElement("header",{className:"yt-rwmd-hero",style:{backgroundColor:l,backgroundImage:"static"!==c&&s&&s.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${s})`: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"===c||!s)&&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}},M),e.createElement("div",{className:"yt-rwmd-hero_header",style:{alignItems:se.alignItems,textAlign:se.textAlign,width:"100%"}},g&&f&&f?.length>0&&e.createElement("div",{className:"yt-rwmd-logo",style:{alignSelf:se.alignItems}},e.createElement("img",{src:f,alt:""})),e.createElement("p",{className:"yt-rwmd-hero-eyebrow",style:{color:d}},y),e.createElement("h2",{id:"yt-rwmd-title",className:"yt-rwmd-hero-title",style:{color:d}},M))),e.createElement("div",{className:"yt-rwmd-content",style:{background:a}},e.createElement("div",{className:"yt-rwmd-body",style:{color:i}},ae&&e.createElement(hu,{displayText:ae,background:"#000000",textColor:"#ffffff"}),"phone"!=z&&"email"!=z||!$?e.createElement(e.Fragment,null,e.createElement("div",{className:"yt-rwmd-body_head"},e.createElement("h3",{className:"yt-rwmd-lead",style:{color:i}},V),e.createElement("p",{className:"yt-rwmd-subcopy",style:{color:i}},W)),e.createElement("hr",{style:{width:"100%",height:"0.2px",border:"none",borderColor:"red",margin:"0px"}}),"phone"==z?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{display:"flex",alignItems:"center",paddingLeft:"10px"}},e.createElement(P,{defaultCountry:"in",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,c=o?(String(o).match(/\./g)||[]).length:10;v?.(l.length>=c);const s=`+${a}${l}`;b?.(s),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(wu,{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)&&!bg(te),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:_,background:A},onClick:async()=>{oe(!0);await(B?.())?oe(!1):(oe(!1),ie("An error occured!"))}},re?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Send OTP")):"email"==z?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:!bg(te),className:"yt-rwmd-cta",style:{margin:"0px",color:_,background:A},onClick:async()=>{oe(!0);await(B?.())?oe(!1):(oe(!1),ie("An error occured!"))}},re?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",{className:"yt-rwmd-cta",style:{color:_,background:A},onClick:()=>{k?.(),""!=R&&(window.location.href=R)}},D),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:L}},"T&Cs")," ","and"," ",e.createElement("a",{href:"https://yourtoken.io/privacy-policy",target:"_blank",rel:"noreferrer",style:{color:L}},"Privacy Policy"))):e.createElement(ug,{setToast:ie,authType:z,email:te,countryCode:le,themeAccentColor:L,themeBackgroundColor:a,themeTextColor:i,ctaPrimaryColor:A,ctaPrimaryContrastColor:_,phoneLabel:J,length:4,onConfirm:k,onResend:S,onChangeNumber:T,loading:q,tone:"#B85552"}))),e.createElement("div",{className:"yt-rwmd-bottom_tape1"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--left"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},de.map((e,t)=>me(`queue-a-${t}`))),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},de.map((e,t)=>me(`queue-b-${t}`))))),e.createElement("div",{className:"yt-rwmd-bottom_tape2"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--right"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},pe.map((e,t)=>ue(`signup-a-${t}`))),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},pe.map((e,t)=>ue(`signup-b-${t}`))))))}function xg({config:r}){const{themeBackgroundColor:o="",themeTextColor:a="",themeAccentColor:i="",bannerBackground:l="",bannerTextColor:c="",watermarkColor:s="#fff",widgetRoundedCorners:d=!0,guestWidgetImage:p,bannerTextAlignment:m="start",showWatermark:u=!0,showLogo:g=!1,logourl:f="",guestGreeting:y="Welcome to",existingUserGreeting:x="",phone:h="",email:b="",emailRequired:w,onPhoneChange:v,onEmailChange:C,validatePhone:E,setEmailRequired:k,onClose:T=()=>{},onRegister:S=e=>Promise,handleChangeNumber:N,handleResendOtp:B,handleSessionDetected:F,onSendOTP:z,isSessionDetected:$,isLoading:I,authType:D="phone",countryCode:A,formFilled:_=!1,redirectUrl:L="",ctaTitle:R="Register Now",ctaPrimaryColor:M="",ctaPrimaryContrastColor:O="",registerLink:V="",brandTitle:W="Pahadi",widgetOpen:H=!0,heading:j="Get Started",subcopy:q="Welcome to Moonstruck Loyalty Program <> Earn as you Buy",termsHref:U="#",privacyHref:Q="#",styleVars:Z={}}=r||{},[G,Y]=t(""),[X,K]=t(""),[J,ee]=t(!1),[te,ne]=t(!1),[re,oe]=t(null),[ae,ie]=t(A);n(()=>{ee(_)},[_]);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"))),ce=()=>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-guestDesktop"},e.createElement("div",{className:"yt-guestDesktop-card",style:{background:o}},$&&e.createElement(fg,{handleSessionDetected:F??(()=>{})}),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(hu,{displayText:re,background:"#000000",textColor:"#ffffff"}),e.createElement("div",{style:{background:"transparent",display:"flex",gap:"2px",flexDirection:"column",alignItems:"start"}},e.createElement("div",{className:"yt-guestDesktop-title",style:{color:a}},"Login now to avail best offers!"),e.createElement("div",{className:"yt-guestDesktop-subtitle",style:{color:a}},`Welcome to ${W} Loyalty Program. Register now to avail best deals.`)),"phone"!=D&&"email"!=D||!_?e.createElement("div",{className:"yt-guestDesktop-cta"},"phone"==D?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{display:"flex",alignItems:"center",paddingLeft:"10px"}},e.createElement(P,{defaultCountry:"in",value:G,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,c=o?(String(o).match(/\./g)||[]).length:10;E?.(l.length>=c);const s=`+${a}${l}`;v?.(s),Y(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(wu,{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)&&!bg(X),className:"yt-rwmd-cta",style:{margin:"0px",color:O,background:M},onClick:async()=>{ne(!0);await(z?.())?ne(!1):(ne(!1),oe("An error occured!"),setTimeout(()=>oe(null),3e3))}},te?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Send OTP")):"email"==D?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:!bg(X),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:O,background:M},onClick:async()=>{ne(!0);await(z?.())?ne(!1):(ne(!1),oe("An error occured!"))}},te?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",null,e.createElement("p",null,R??"Register Now"),e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.7071 6.29289C18.0976 6.68342 18.0976 7.31658 17.7071 7.70711L7.70711 17.7071C7.31658 18.0976 6.68342 18.0976 6.29289 17.7071C5.90237 17.3166 5.90237 16.6834 6.29289 16.2929L16.2929 6.29289C16.6834 5.90237 17.3166 5.90237 17.7071 6.29289Z",fill:"white"}),e.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 7C6 6.44772 6.44772 6 7 6H17C17.5523 6 18 6.44772 18 7V17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17V8H7C6.44772 8 6 7.55228 6 7Z",fill:"white"})))):e.createElement(ug,{setToast:oe,authType:D,email:b??X,countryCode:ae,themeAccentColor:i,themeBackgroundColor:o,themeTextColor:a,ctaPrimaryColor:M,ctaPrimaryContrastColor:O,phoneLabel:G,length:4,onConfirm:S,onResend:()=>B?.(),onChangeNumber:N,loading:!1,tone:"#B85552"}),e.createElement("div",{className:"yt-guestDesktop-terms",style:{color:a}},"By signing-in, you agree to our"," ",e.createElement("span",{style:{color:i}},"T&Cs")," and"," ",e.createElement("span",{style:{color:i}},"Privacy Policy"))),!_&&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"},ce()),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},ce())))))),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 hg({config:r}){const{themeBackgroundColor:a="",themeTextColor:i="",bannerBackground:l="",bannerBackgroundType:c="shape",bannerImage:s="",bannerTextColor:d="",watermarkColor:p="#fff",widgetRoundedCorners:m=!0,bannerTextAlignment:u="start",showWatermark:g=!0,showLogo:f=!1,logourl:y="",guestGreeting:x="Welcome to",existingUserGreeting:h="",emailRequired:b,onPhoneChange:w,onEmailChange:v,onClose:C=()=>{},onRegister:E,handleChangeNumber:k,handleResendOtp:T,handleSessionDetected:S,onSendOTP:N,isSessionDetected:B,authType:F="default",countryCode:z,validatePhone:$,setEmailRequired:I,formFilled:D=!1,redirectUrl:A="",ctaTitle:_="Register Now",ctaMainColor:L="",ctaMainContrastColor:R="",ctaPrimaryColor:M="",ctaPrimaryContrastColor:O="",themeAccentColor:V="",registerLink:W="",brandTitle:H="My Pahadi Rewards",brandLogoUrl:j,widgetOpen:q=!0,heading:U="Get Started",subcopy:Q="Welcome to YourToken Loyalty Program <> Earn as you Buy",termsHref:Z="#",privacyHref:G="#",isLoading:Y=!0,styleVars:X={}}=r||{},K=o(null);t("ytAuth"==F);const[J,ee]=t(""),[te,ne]=t(""),[re,oe]=t(!1),[ae,ie]=t(null),[le,ce]=t(z);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[se,de]=t(!1);n(()=>{de(D)},[D]);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("section",{onMouseDown:e=>e.stopPropagation(),className:"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"!==c&&s&&s.length>0?`linear-gradient(rgba(79, 72, 106, 0.18), rgba(79, 72, 106, 0.18)), url(${s})`:void 0,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",borderBottomLeftRadius:"static"!==c&&s&&s.length>0?"8px":void 0,borderBottomRightRadius:"static"!==c&&s&&s.length>0?"8px":void 0}},e.createElement("button",{className:"yt-rwmd-close","aria-label":"Close",onClick:C,style:{color:d}},"×"),("static"===c||!s)&&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}},H),e.createElement("div",{className:"yt-rwmd-hero_header",style:{alignItems:u,width:"100%"}},f&&j&&j?.length>0&&e.createElement("div",{className:"yt-rwmd-logo",style:{alignSelf:u}},e.createElement("img",{src:j,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}},H))),e.createElement("div",{className:"yt-rwmd-content",style:{background:a}},B&&e.createElement(fg,{handleSessionDetected:S??(()=>{})}),e.createElement("div",{className:"yt-rwmd-bottom_tape1"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--left"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},pe()),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},pe()))),e.createElement("div",{className:"yt-rwmd-bottom_tape2"},e.createElement("div",{className:"yt-rwmd-tapeTrack yt-rwmd-tapeTrack--right"},e.createElement("div",{className:"yt-rwmd-tapeGroup"},me()),e.createElement("div",{className:"yt-rwmd-tapeGroup","aria-hidden":"true"},me()))),e.createElement("div",{className:"yt-rwmd-body",style:{color:i}},ae&&e.createElement(hu,{displayText:ae,background:"#000000",textColor:"#ffffff"}),"phone"!=F&&"email"!=F||!D?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"==F?e.createElement("div",{className:"yt-rwmd-registerForm"},e.createElement("div",{className:"yt-input-wrapper",style:{display:"flex",alignItems:"center",paddingLeft:"10px"}},e.createElement(P,{defaultCountry:"in",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,c=o?(String(o).match(/\./g)||[]).length:10;$?.(l.length>=c);const s=`+${a}${l}`;w?.(s),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"}},Y?e.createElement(wu,{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)&&!bg(te),className:"yt-rwmd-cta",style:{margin:"0px",marginTop:"4px",color:O,background:M},onClick:async()=>{oe(!0);await(N?.())?oe(!1):(oe(!1),ie("An error occured!"),setTimeout(()=>ie(null),3e3))}},re?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Send OTP")):"email"==F?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:!bg(te),className:"yt-rwmd-cta",style:{margin:"0px",color:O,background:M},onClick:async()=>{oe(!0);await(N?.())?oe(!1):(oe(!1),ie("An error occured!"),setTimeout(()=>ie(null),3e3))}},re?e.createElement(wu,{size:18,color:"#fff",centered:!0}):"Send OTP")):e.createElement("button",{className:"yt-rwmd-cta",style:{color:O,background:M},onClick:()=>{E?.(),""!=W&&(window.location.href=W)}},_),e.createElement("p",{className:"yt-rwmd-terms",style:{color:i}},"By signing-in, you agree to our"," ",e.createElement("a",{href:"https://yourtoken.io/terms-of-service",target:"_blank",rel:"noreferrer",style:{color:V}},"T&Cs")," ","and"," ",e.createElement("a",{href:"https://yourtoken.io/privacy-policy",target:"_blank",rel:"noreferrer",style:{color:V}},"Privacy Policy"))):e.createElement(ug,{setToast:ie,authType:F,email:te,countryCode:le,themeAccentColor:V,themeBackgroundColor:a,themeTextColor:i,ctaPrimaryColor:M,ctaPrimaryContrastColor:O,phoneLabel:J,length:4,onConfirm:E,onResend:T,onChangeNumber:k,loading:!1,tone:"#B85552"}))))}const bg=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);function wg({config:r}){const{guestWidgetImage:o,isMobilePreview:a,viewportMode:i}=r,[l,c]=t("undefined"!=typeof window&&window.innerWidth<=480);n(()=>{if("undefined"==typeof window)return;const e=()=>c(window.innerWidth<=480);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);return"mobile"===i||"desktop"!==i&&(a||l)?e.createElement(yg,{config:r}):o&&o?.length>0?e.createElement(xg,{config:r}):e.createElement(hg,{config:r})}function vg({signedIn:r=!1,previewMode:o=!1,bannerBackground:a="#4f486a",bannerBackgroundType:i="shape",bannerImage:l="",bannerTextColor:c="",themePrimaryColor:s="",themeContrastColor:d="",themeSecondaryColor:p="",themeSecondaryContrastColor:m="",themeBackgroundColor:u="#fff",themeTextColor:g="",themeAccentColor:f="",widgetOpen:y=!0,widgetPosition:x="center",guestWidgetImage:h="",widgetRoundedCorners:b=!1,ctaMainColor:w="",ctaMainContrastColor:v="",ctaPrimaryColor:C="",ctaPrimaryContrastColor:E="",ctaBorderColor:k="",ctaSecondaryColor:T="",ctaSecondaryContrastColor:S="",ctaShowIcon:N=!0,ctaBorderRadius:B="0px",showWaysToEarn:F=!0,showWCoinValue:z=!0,showReferral:$=!0,showTransactions:I=!0,showVipSection:P=!0,brandName:D="YourToken",brandLogoUrl:A="",headingEyebrow:_="Welcome to",balanceCoins:L,maxRedeemableCoins:R=0,coinValInr:M="1",currencyCode:O="INR",tokenName:V="COINS",rateTitle:W="",rateSub:H="No min. order value required • redeem upto 200 coins",couponHeading:j="You’ve one reward coupon active",couponCode:q="",couponList:U=[],onCouponAvail:Q,couponImage:Z="https://images.unsplash.com/photo-1606318313647-137fcb1d5cd2?q=80&w=800&auto=format&fit=crop",referralLink:G="",userRewardTier:Y,brandRewardTiers:X,watermarkColor:K="#fff",bannerTextAlignment:J="start",showWatermark:ee=!0,showLogo:te=!1,logourl:ne="",guestGreeting:re="Welcome to",userGreeting:oe="Welcome to",existingUserGreeting:ae="",phone:ie="",email:le="",emailRequired:ce=!1,onPhoneChange:se=e=>{},onEmailChange:de=e=>{},validatePhone:pe,setEmailRequired:me,onClose:ue=()=>{},onRegister:ge,onLogout:fe,handleChangeNumber:ye,handleResendOtp:xe,handleSessionDetected:he,onSendOTP:be,isSessionDetected:we,authType:ve="phone",formFilled:Ce=!1,redirectUrl:Ee="",ctaTitle:ke="Register Now",registerLink:Te="",brandTitle:Se="",heading:Ne="Get Started",subcopy:Be="Welcome to YourToken Loyalty Program <> Earn as you Buy",termsHref:Fe="#",privacyHref:ze="#",isLoading:$e,userData:Ie,activityRewards:Pe,brandRewardProgram:De,recentTransactionsData:Ae,onBirthdayUpdate:_e,onSocialClick:Le,countryCode:Re,isMobilePreview:Me,viewportMode:Oe}){n(()=>{const e=e=>{"Escape"===e.key&&ue()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[ue]),n(()=>{if(!y)return;const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[y]);const[Ve,We]=t("undefined"!=typeof window&&window.innerWidth<=480);n(()=>{if("undefined"==typeof window)return;const e=()=>We(window.innerWidth<=480);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const He="mobile"===Oe||"desktop"!==Oe&&Ve;return e.createElement("div",{style:{placeItems:r?x:"center"},onMouseDown:e=>{e.target===e.currentTarget&&ue()},className:"yt-reward-loyalty-overlay"},r?e.createElement(cg,{config:{isMobile:He,previewMode:o,bannerTextAlignment:J,bannerBackground:a,bannerBackgroundType:i,bannerImage:l,bannerTextColor:c,themePrimaryColor:s,themeContrastColor:d,themeSecondaryColor:p,themeSecondaryContrastColor:m,themeBackgroundColor:u,themeTextColor:g,themeAccentColor:f,widgetOpen:y,widgetPosition:x,widgetRoundedCorners:b,ctaPrimaryColor:C,ctaPrimaryContrastColor:E,ctaBorderColor:k,ctaSecondaryColor:T,ctaSecondaryContrastColor:S,ctaShowIcon:N,ctaBorderRadius:B,showWaysToEarn:F,showWCoinValue:z,showReferral:$,showTransactions:I,showVipSection:P,showLogo:te,brandName:D,brandLogoUrl:A,headingEyebrow:_,userGreeting:oe,balanceCoins:L,maxRedeemableCoins:R,coinValInr:M,currencyCode:O,tokenName:V,rateTitle:W,rateSub:H,couponHeading:j,couponCode:q,couponImage:Z,couponList:U,onCouponAvail:Q,referralLink:G,userRewardTier:Y,brandRewardTiers:X,userData:Ie,activityRewards:Pe,brandRewardProgram:De,recentTransactionsData:Ae,isLoading:$e,onBirthdayUpdate:_e,onSocialClick:Le,onClose:ue,onLogout:fe}}):e.createElement(wg,{config:{isLoading:$e,themeBackgroundColor:u,themeTextColor:g,themeAccentColor:f,bannerBackground:a,bannerBackgroundType:i,bannerImage:l,bannerTextColor:c,watermarkColor:K,widgetRoundedCorners:b,guestWidgetImage:h,bannerTextAlignment:J,showWatermark:ee,showLogo:te,logourl:ne,guestGreeting:re,existingUserGreeting:ae,phone:ie,email:le,emailRequired:ce,onPhoneChange:se,onEmailChange:de,validatePhone:pe,setEmailRequired:me,onClose:ue,onRegister:ge,handleChangeNumber:ye,handleResendOtp:xe,handleSessionDetected:he,onSendOTP:be,isSessionDetected:we,authType:ve,countryCode:Re,formFilled:Ce,redirectUrl:Ee,ctaTitle:ke,ctaMainColor:w,ctaMainContrastColor:v,ctaPrimaryColor:C,ctaPrimaryContrastColor:E,registerLink:Te,brandTitle:Se,brandLogoUrl:A,widgetOpen:y,heading:Ne,subcopy:Be,termsHref:Fe,privacyHref:ze,isMobilePreview:Me,viewportMode:Oe}}))}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}`}));Ct('.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 Cg={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:"},Eg=e=>{if(null==e||""===e)return null;const t="number"==typeof e?e.toString():e;return t.includes("₹")?t:`₹${t}`},kg=({config:a})=>{const i={...Cg,...a},{sectionTitle:l,catalogBanner:c,coinBalance:s,coinBalanceLabel:d,coinIconUrl:p,display:m,alignment:u,titleFontSize:g,titleColor:f,tabBackgroundColor:y,tabActiveColor:x,tabActiveTextColor:h,tabTextColor:b,cardBackgroundColor:w,buttonColor:v,buttonTextColor:C,borderColor:E,roundness:k,tiers:T,selectedTierId:S,filters:N,selectedFilterId:B,onFilterChange:F,products:z,ctaText:$}=i,I=o(null),[P,D]=t(!1),[A,_]=t(!1),[L,R]=t(null),M=r(()=>z,[z]),O=e=>{if(!I.current)return;const t=.8*I.current.clientWidth;I.current.scrollBy({left:"left"===e?-t:t,behavior:"smooth"})};n(()=>{const e=I.current;if(!e)return;const t=()=>{const t=e.scrollWidth-e.clientWidth;D(e.scrollLeft>1),_(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"===m?"lpc-cardList lpc-cardList--grid":"wrap"===m?"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-${u||"center"}`},c?e.createElement("img",{className:"lpc-banner",src:c,alt:"Catalog banner"}):null,l?e.createElement("h2",{className:"lpc-heading",style:{color:f,fontSize:`${g}px`}},l):null),null!=s&&""!==s?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"},s," coins")):null,N&&N.length>0?e.createElement("div",{className:"lpc-filterBar",style:{background:y},role:"tablist"},N.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?x:"transparent",color:n?h:b,borderColor:n?x:E||"#E2E2E8","--lpc-filter-hover-bg":b||"#25262D","--lpc-filter-hover-text":y||"#FFFFFF"},onClick:()=>F?.(t)},t.label)})):null,e.createElement("div",{className:V,ref:I},0===M.length?e.createElement("div",{className:"lpc-emptyState"},"No products found"):M.map(t=>{const n=L===t.id,r=`${k||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:w,borderColor:E,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"},Eg(t.mrp)?e.createElement(e.Fragment,null,e.createElement("span",{className:"lpc-priceMuted"},"MRP:"),e.createElement("span",{className:"lpc-priceStrikethrough"},Eg(t.mrp))):null,Eg(t.price)?e.createElement("span",{className:"lpc-priceNow"},Eg(t.price)):null,Eg(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," coins"):null)),e.createElement("button",{className:"lpc-cta",style:{background:v,color:C,borderColor:v,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!==L,onClick:async e=>{if(e.stopPropagation(),t.onButtonClick&&!t.disabled&&null===L)try{R(t.id),await t.onButtonClick(t)}finally{R(null)}}},n?e.createElement(wu,{size:18,color:"#fff",centered:!0}):t.buttonText||$))})),"scroll"===m?e.createElement("div",{className:"lpc-nav"},e.createElement("button",{className:"lpc-navBtn "+(P?"lpc-navBtn--enabled":""),type:"button",onClick:()=>O("left"),disabled:!P},e.createElement(ut,null)),e.createElement("button",{className:"lpc-navBtn "+(A?"lpc-navBtn--enabled":""),type:"button",onClick:()=>O("right"),disabled:!A},e.createElement(gt,null))):null)},Tg={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"}},Sg={left:"flex-start",center:"center",right:"flex-end"},Ng=e=>"number"==typeof e?`${e}px`:e;function Bg({prefix:t="Get",iconUrl:n="",suffix:r="Coins",coinsEarned:o=0,widgetBackground:a="#FFFFFF",alignment:i="center",textColor:l="#2B2B2B",borderColor:c="#8F8F8F",badgeRoundness:s="999px",fontSize:d=18}){const p=Ng(d)??"18px",m="number"==typeof d?`${d+2}px`:`calc(${p} + 2px)`;return e.createElement("div",{className:"yt-peb-wrap",style:{...Tg.wrap,justifyContent:Sg[i]}},e.createElement("div",{className:"yt-peb",style:{...Tg.badge,background:a,borderColor:c,borderRadius:Ng(s)}},e.createElement("div",{className:"yt-peb__content",style:{...Tg.content,textAlign:i}},t?e.createElement("span",{className:"yt-peb__text",style:{...Tg.text,color:l,fontSize:p}},t):null,n?e.createElement("img",{className:"yt-peb__icon",style:Tg.icon,src:n,alt:"","aria-hidden":"true"}):null,e.createElement("span",{className:"yt-peb__coins",style:{...Tg.coins,color:l,fontSize:m}},o),r?e.createElement("span",{className:"yt-peb__text",style:{...Tg.text,color:l,fontSize:p}},r):null)))}const Fg=["banner","referrals","gettingStarted","waysToEarn","customImage","customHtml","vipTiers","rewards"],zg=({config:t,signedIn:n=!1,userData:r,onBannerButtonClick:o,onReferralButtonClick:a,onReferralCopyClick:i,onRewardsButtonClick:l})=>{const{sectionOrder:c,banner:s,referrals:d,gettingStarted:p,waysToEarn:m,vipTiers:u,rewards:g,customImage:f,customHtml:y,primaryColor:x="#1C1C1D",primaryContrastColor:h="#FFFFFF",secondaryColor:b="#FFFFFF",secondaryContrastColor:F="#000000"}=t||{},z="undefined"!=typeof window&&window.innerWidth<=768,$=()=>{"undefined"!=typeof window&&window.ytapp&&(window.ytapp.loyaltyWidgetOpen=!0,window.dispatchEvent(new Event("loyaltyWidgetOpenChanged")))},I={...{padding:"12px 32px",borderRadius:"30px",fontSize:"14px",fontWeight:600,cursor:"pointer",textTransform:"uppercase",border:`1px solid ${x}`,transition:"all 0.3s ease"},backgroundColor:x,color:h,borderColor:x},P=n?s?.signedInView:s?.guestView,D={visibility:s?.visibility??"show",backgroundColor:s?.backgroundColor??"#F3F3F3",fontColor:s?.fontColor??"#000000",alignment:s?.alignment??"center",imageUrl:s?.imageUrl,badgeTitle:s?.badge?.enabled?s.badge.title?.trim():void 0,title:P?.title,subtitle:P?.subtitle,buttonText:s?.guestView?.buttonText,balanceCoins:s?.signedInView?.balanceCoins??r?.balanceCoins??(null!=r?.currentBalance?String(r.currentBalance):void 0),currentTier:s?.signedInView?.currentTier,nextTier:s?.signedInView?.nextTier,currentLtv:s?.signedInView?.currentLtv,nextTierLtv:s?.signedInView?.nextTierLtv,tierIcon:s?.signedInView?.tierIcon,showTierProgress:s?.showTierProgress??!1},A=Number(D.currentLtv),_=Number(D.nextTierLtv),L=D.showTierProgress&&Number.isFinite(A)&&Number.isFinite(_)&&_>0,R=L?Math.min(100,Math.max(0,A/_*100)):0,M=L?Math.max(0,_-A):0,O=n?d?.signedInView:d?.guestView,V={visibility:d?.visibility??"show",backgroundColor:d?.backgroundColor??"#FFFFFF",fontColor:d?.fontColor??"#111111",badgeTitle:d?.badge?.enabled?d.badge.title?.trim():void 0,imageUrl:d?.imageUrl,imagePosition:d?.imagePosition??"left",guestVisibility:d?.guestVisibility??!0,title:O?.title,subtitle:O?.subtitle,buttonText:d?.guestView?.buttonText,referralLinkValue:d?.signedInView?.referralLinkValue??r?.referralLink},W={visibility:p?.visibility??"show",backgroundColor:p?.backgroundColor??"#FFFFFF",fontColor:p?.fontColor??"#111111",badgeTitle:p?.badge?.enabled?p.badge.title?.trim():void 0,title:p?.title,subtitle:p?.subtitle,steps:p?.steps},H={visibility:m?.visibility??"show",backgroundColor:m?.backgroundColor??"#FFFFFF",fontColor:m?.fontColor??"#111111",badgeTitle:m?.badge?.enabled?m.badge.title?.trim():void 0,title:m?.title,subtitle:m?.subtitle,guestVisibility:m?.guestVisibility??!0,showIcons:m?.showIcons??!0,ctaBg:m?.ctaBg??"#4E7E80",ctaFontColor:m?.ctaFontColor??"#FFFFFF",items:m?.items},j={visibility:g?.visibility??"show",backgroundColor:g?.backgroundColor??"#FFFFFF",fontColor:g?.fontColor??"#111111",badgeTitle:g?.badge?.enabled?g.badge.title?.trim():void 0,imageUrl:g?.imageUrl,imagePosition:g?.imagePosition??"left",title:g?.title,description:g?.description,disclaimerText:g?.disclaimerText,buttonText:g?.buttonText,bottomCtaTitle:g?.bottomCtaTitle,bottomCtaSubtitle:g?.bottomCtaSubtitle},q={visibility:f?.visibility??"show",imageUrl:f?.imageUrl},U={visibility:y?.visibility??"show",htmlText:y?.htmlText},Q={visibility:u?.visibility??"show",backgroundColor:u?.backgroundColor??"#FFFFFF",fontColor:u?.fontColor??"#111111",badgeTitle:u?.badge?.enabled?u.badge.title?.trim():void 0,title:u?.title,subtitle:u?.subtitle,benefitHeaderLabel:u?.benefitHeaderLabel,tiers:u?.tiers,rows:u?.rows,signedInView:{benefitHeaderLabel:u?.signedInView?.benefitHeaderLabel??u?.benefitHeaderLabel,statusLabel:u?.signedInView?.statusLabel,statuses:u?.signedInView?.statuses}},Z=Array.isArray(c)?c:[],G=Array.from(new Set(Z.filter(e=>Fg.includes(e)))),Y=[...G,...Fg.filter(e=>!G.includes(e))],X=e=>Y.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"}},"show"===D.visibility&&e.createElement("div",{className:"yt-loyalty-page-banner",style:{order:X("banner"),display:"flex",alignItems:"center",justifyContent:"left"===D.alignment?"flex-start":"right"===D.alignment?"flex-end":"center",width:"100%",backgroundColor:D.backgroundColor,backgroundImage:D.imageUrl?`url(${D.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",border:"1px solid #E1E1E1",padding:z?"72px 20px":"120px 32px"}},e.createElement("div",{className:"yt-loyalty-page-banner-content",style:{width:"100%",maxWidth:"760px",textAlign:D.alignment,display:"flex",flexDirection:"column",alignItems:"left"===D.alignment?"flex-start":"right"===D.alignment?"flex-end":"center",gap:z?"18px":"20px"}},D.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}},D.badgeTitle):null,e.createElement("h1",{className:"yt-loyalty-page-banner-title",style:{margin:0,fontSize:z?"40px":"56px",lineHeight:z?1.05:1.08,letterSpacing:"-0.03em",fontWeight:700,color:D.fontColor}},D.title),e.createElement("p",{className:"yt-loyalty-page-banner-subtitle",style:{margin:0,maxWidth:"620px",fontSize:z?"22px":"28px",lineHeight:1.18,fontWeight:400,color:D.fontColor}},D.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:z?"8px":"10px",minWidth:z?"280px":"288px",padding:z?"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:D.fontColor}},"Current Balance"),e.createElement("div",{style:{fontSize:z?"56px":"64px",lineHeight:.95,letterSpacing:"-0.05em",fontWeight:700,color:D.fontColor}},D.balanceCoins)),D.showTierProgress&&D.currentTier?e.createElement("div",{className:"yt-loyalty-page-banner-tier",style:{display:"inline-flex",alignItems:"center",gap:"10px",marginTop:"4px",color:D.fontColor,fontFamily:"Inter",fontSize:z?"18px":"20px",fontWeight:700,lineHeight:1.1,letterSpacing:"0.08em",textTransform:"uppercase"}},D.tierIcon?e.createElement("img",{src:D.tierIcon,alt:"",style:{width:"28px",height:"28px",objectFit:"contain",display:"block"}}):e.createElement("svg",{width:"28",height:"28",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:x,stroke:x,strokeWidth:"1.2",strokeLinejoin:"round"}),e.createElement("path",{d:"M12 2L20 7L12 12L4 7L12 2Z",fill:"rgba(255,255,255,0.3)",strokeLinejoin:"round"})),D.currentTier):null,L?e.createElement("div",{className:"yt-loyalty-page-banner-progress",style:{marginTop:"10px",width:"100%",maxWidth:"640px",padding:z?"14px 18px":"16px 24px",borderRadius:"16px",backgroundColor:"#FFFFFF",boxShadow:"0 8px 22px rgba(17, 17, 17, 0.06)",boxSizing:"border-box"}},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:{width:`${R}%`,height:"100%",backgroundColor:x||D.fontColor||"#1C1C1D",borderRadius:"999px",transition:"width 0.3s ease"}})),e.createElement("div",{className:"yt-loyalty-page-banner-progress-meta",style:{marginTop:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",fontSize:z?"13px":"14px",lineHeight:1.2,fontWeight:500,color:D.fontColor}},e.createElement("span",null,A," ltv"),D.nextTier?e.createElement("span",null,M," ltv to ",D.nextTier):null)):null):e.createElement("button",{className:"yt-loyalty-page-banner-button",style:{...I,marginTop:z?"8px":"10px",padding:z?"14px 26px":"16px 30px",border:"none",borderRadius:"14px",boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)",fontSize:z?"16px":"18px",fontWeight:500,textTransform:"none"},onClick:async()=>{o?await o():$()}},D.buttonText))),"show"===V.visibility&&(n||V.guestVisibility)&&e.createElement("div",{className:"yt-loyalty-page-referrals",style:{order:X("referrals"),width:"100%",backgroundColor:V.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:z?"column":"row",alignItems:"stretch",overflow:"hidden",border:"1px solid #E1E1E1"}},e.createElement("div",{className:"yt-loyalty-page-referrals-image-wrapper",style:{flex:z?"1 1 auto":"0 0 50%",minWidth:0,boxSizing:"border-box",order:z||"left"===V.imagePosition?0:1,minHeight:z?"320px":"560px"}},e.createElement("div",{className:"yt-loyalty-page-referrals-image",style:{display:"block",width:"100%",height:"100%",minHeight:z?"320px":"560px",backgroundImage:V.imageUrl?`url(${V.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat"}})),e.createElement("div",{className:"yt-loyalty-page-referrals-copy",style:{flex:z?"1 1 auto":"0 0 50%",minWidth:0,boxSizing:"border-box",order:z||"left"===V.imagePosition?1:0,padding:z?"32px 24px 40px":"72px 48px",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"}},V.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}},V.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-referrals-title",style:{margin:0,maxWidth:"520px",fontSize:z?"28px":n?"34px":"36px",lineHeight:1.1,letterSpacing:"-0.03em",fontWeight:400,color:V.fontColor}},V.title),e.createElement("p",{className:"yt-loyalty-page-referrals-subtitle",style:{margin:"18px 0 0",maxWidth:"580px",fontSize:z?"16px":"18px",lineHeight:1.24,fontWeight:400,color:V.fontColor}},V.subtitle),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:V.fontColor}},V.referralLinkValue)),e.createElement("button",{type:"button",onClick:async()=>{i&&V.referralLinkValue?await i(V.referralLinkValue):"undefined"!=typeof navigator&&navigator.clipboard&&V.referralLinkValue&&await navigator.clipboard.writeText(V.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:{...I,marginTop:"34px",padding:z?"14px 26px":"16px 30px",border:"none",borderRadius:"14px",boxShadow:"0 8px 20px rgba(0, 0, 0, 0.2)",fontSize:z?"16px":"18px",fontWeight:500,textTransform:"none"},onClick:async()=>{a?await a():$()}},V.buttonText))))),"show"===W.visibility&&e.createElement("div",{className:"yt-loyalty-page-getting-started",style:{order:X("gettingStarted"),backgroundColor:W.backgroundColor,border:"1px solid #E1E1E1",padding:z?"56px 20px":"72px 32px 88px"}},e.createElement("div",{className:"yt-loyalty-page-getting-started-content",style:{maxWidth:"1120px",margin:"0 auto",textAlign:"center"}},W.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}},W.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-getting-started-title",style:{margin:0,fontSize:z?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:W.fontColor}},W.title),e.createElement("p",{className:"yt-loyalty-page-getting-started-subtitle",style:{margin:z?"14px auto 0":"16px auto 0",maxWidth:"620px",color:W.fontColor,fontSize:z?"16px":"18px",lineHeight:1.22,fontWeight:400}},W.subtitle),e.createElement("div",{className:"yt-loyalty-page-getting-started-grid",style:{marginTop:z?"40px":"64px",display:"flex",flexDirection:z?"column":"row",justifyContent:"space-between",alignItems:"stretch",gap:z?"28px":"24px"}},W.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:z?"0":"0 18px"}},e.createElement("div",{className:"yt-loyalty-page-getting-started-step-number",style:{marginBottom:"10px",fontSize:z?"52px":"68px",lineHeight:.95,letterSpacing:"-0.04em",fontWeight:700,color:W.fontColor}},String(n+1)),e.createElement("div",{className:"yt-loyalty-page-getting-started-step-title",style:{marginBottom:"8px",fontSize:z?"24px":"28px",lineHeight:1.08,letterSpacing:"-0.03em",fontWeight:400,color:W.fontColor}},t.title),e.createElement("p",{className:"yt-loyalty-page-getting-started-step-description",style:{margin:0,maxWidth:"240px",fontSize:z?"16px":"18px",lineHeight:1.21,fontWeight:400,color:W.fontColor}},t.description)))))),"show"===H.visibility&&(n||H.guestVisibility)&&e.createElement("div",{className:"yt-loyalty-page-ways-to-earn",style:{order:X("waysToEarn"),backgroundColor:H.backgroundColor,border:"1px solid #E1E1E1",padding:z?"56px 20px":"72px 32px 64px"}},e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-content",style:{maxWidth:"1120px",margin:"0 auto",textAlign:"center"}},H.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}},H.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-ways-to-earn-title",style:{margin:0,fontSize:z?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:H.fontColor}},H.title),e.createElement("p",{className:"yt-loyalty-page-ways-to-earn-subtitle",style:{margin:z?"14px auto 0":"16px auto 0",maxWidth:"680px",color:H.fontColor,fontSize:z?"16px":"18px",lineHeight:1.22,fontWeight:400}},H.subtitle),e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-grid",style:{marginTop:z?"40px":"56px",display:"flex",flexWrap:"wrap",justifyContent:"center",columnGap:z?"28px":"24px",rowGap:"36px"}},H.items?.map((t,r)=>{const o=t.ctaTitle??t.signedInActionLabel,a=t.ctaVisible??Boolean(o),i=t.ctaDisabled??!1,l=H.ctaBg,c=H.ctaFontColor;return e.createElement("div",{key:r,className:"yt-loyalty-page-ways-to-earn-item",style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",width:z?"100%":"calc((100% - 48px) / 3)",maxWidth:z?"100%":"calc((100% - 48px) / 3)",padding:z?"0":"0 18px"}},H.showIcons?e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-item-icon",style:{fontSize:"32px",lineHeight:1,color:H?.fontColor??"#5A5A5A",marginBottom:"5px"}},(t=>{if(t&&"string"!=typeof t)return t;switch(t){case"birthday":return e.createElement(B,null);case"feedback":return e.createElement(N,null);case"wallet":return e.createElement(S,null);case"referral":return e.createElement(T,null);case"instagram":return e.createElement(k,null);case"facebook":return e.createElement(E,null);case"twitter":return e.createElement(C,null);case"youtube":return e.createElement(v,null);default:return e.createElement(w,null)}})(t.icon)):null,e.createElement("div",{className:"yt-loyalty-page-ways-to-earn-item-title",style:{marginBottom:"4px",fontSize:z?"24px":"28px",lineHeight:1.16,letterSpacing:"-0.03em",fontWeight:400,color:H.fontColor,minHeight:z?"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:z?"16px":"18px",lineHeight:1.21,fontWeight:400,color:H.fontColor,minHeight:z?"40px":"52px"}},t.description),e.createElement("div",{style:{marginTop:"4px",minHeight:"42px",width:"100%",display:"flex",justifyContent:"center"}},n&&a&&o?e.createElement("button",{className:"yt-loyalty-page-ways-to-earn-item-action",style:{minWidth:z?"180px":"188px",minHeight:"42px",padding:"9px 20px",border:"none",borderRadius:"0px",backgroundColor:l,color:c,fontSize:"16px",lineHeight:1,fontWeight:600,cursor:i?"not-allowed":"pointer",opacity:i?.6:1},disabled:i,onClick:t.onClick},o):null))})))),"show"===q.visibility&&q.imageUrl?e.createElement("div",{className:"yt-loyalty-page-custom-image",style:{order:X("customImage"),backgroundColor:"#FFFFFF",border:"1px solid #E1E1E1"}},e.createElement("div",{style:{margin:"0 auto"}},e.createElement("img",{src:q.imageUrl,alt:"",style:{display:"block",width:"100%",height:"auto",objectFit:"cover"}}))):null,"show"===U.visibility&&U.htmlText?e.createElement("div",{className:"yt-loyalty-page-custom-html",style:{order:X("customHtml"),backgroundColor:"#FFFFFF",border:"1px solid #E1E1E1",padding:z?"32px 20px":"40px 32px",color:"#111111"}},e.createElement("div",{style:{maxWidth:"1200px",margin:"0 auto"},dangerouslySetInnerHTML:{__html:U.htmlText}})):null,"show"===Q.visibility&&e.createElement("div",{className:"yt-loyalty-page-vip-tiers",style:{order:X("vipTiers"),backgroundColor:Q.backgroundColor,border:"1px solid #E1E1E1",padding:z?"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:z?"32px":"40px"}},Q.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:Q.fontColor,fontSize:"14px",lineHeight:1,fontWeight:600}},Q.badgeTitle):null,e.createElement("h2",{style:{margin:0,fontSize:z?"28px":"36px",lineHeight:1.12,letterSpacing:"-0.03em",fontWeight:400,color:Q.fontColor}},Q.title),e.createElement("p",{style:{margin:"16px auto 0",maxWidth:"760px",fontSize:z?"16px":"18px",lineHeight:1.22,fontWeight:400,color:Q.fontColor}},Q.subtitle)),e.createElement("div",{style:{overflowX:"auto",border:"1px solid #D7D7D7",backgroundColor:"#FFFFFF"}},e.createElement("table",{style:{width:"100%",minWidth:z?"760px":"100%",borderCollapse:"collapse",tableLayout:"fixed"}},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{style:{width:z?"240px":"28%",padding:"16px 14px",borderBottom:"1px solid #D7D7D7",textAlign:"left",color:Q.fontColor,fontFamily:"Inter",fontSize:"15.654px",fontStyle:"normal",fontWeight:"700",lineHeight:"17.313px",letterSpacing:"0.693px",textTransform:"uppercase",backgroundColor:"#FFFFFF"}},Q.benefitHeaderLabel),Q.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:Q.fontColor,textTransform:"uppercase",backgroundColor:"#FFFFFF"}},Q.signedInView.statusLabel),Q.tiers?.map(t=>{const n=Q.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:Q.fontColor,fontSize:"12px",lineHeight:1.2,fontWeight:r?700:500,textTransform:"uppercase",letterSpacing:"0.04em"}},n?.text??"")})):null),e.createElement("tbody",null,Q.rows?.map((t,n)=>e.createElement("tr",{key:`${t.title}-${n}`},e.createElement("td",{style:{padding:"14px 14px",borderBottom:n===(Q.rows?.length??0)-1?"none":"1px solid #D7D7D7",verticalAlign:"middle"}},e.createElement("div",{style:{color:Q.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:Q.fontColor,fontFamily:"Inter",fontSize:"12.552px",fontStyle:"normal",fontWeight:300,lineHeight:"22.161px",letterSpacing:"0.693px"}},t.description):null),Q.tiers?.map(r=>e.createElement("td",{key:`${t.title}-${r.id}`,style:{padding:"14px 10px",borderBottom:n===(Q.rows?.length??0)-1?"none":"1px solid #D7D7D7",textAlign:"center",verticalAlign:"middle"}},t.tierIds.includes(r.id)?e.createElement("span",{style:{display:"inline-block",width:"10px",height:"10px",borderRadius:"999px",backgroundColor:r.indicatorColor??"#666666"}}):null))))))))),"show"===j.visibility&&!n&&e.createElement("div",{className:"yt-loyalty-page-rewards",style:{order:X("rewards"),backgroundColor:j.backgroundColor,border:"1px solid #E1E1E1",padding:z?"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:z?"column":"row",alignItems:"stretch",overflow:"hidden",border:"1px solid #E1E1E1"}},e.createElement("div",{className:"yt-loyalty-page-rewards-image-wrapper",style:{flex:1,order:z||"left"===j.imagePosition?0:1,minHeight:z?"280px":"340px"}},e.createElement("div",{className:"yt-loyalty-page-rewards-image",style:{display:"block",width:"100%",height:"100%",minHeight:z?"280px":"340px",backgroundImage:j.imageUrl?`url(${j.imageUrl})`:void 0,backgroundSize:"cover",backgroundPosition:"center"}})),e.createElement("div",{className:"yt-loyalty-page-rewards-copy",style:{flex:1,order:z||"left"===j.imagePosition?1:0,padding:z?"28px 24px":"32px 40px",display:"flex",flexDirection:"column",justifyContent:"start"}},j.badgeTitle?e.createElement("div",{className:"yt-loyalty-page-rewards-badge",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",minHeight:"28px",marginBottom:"22px",padding:"6px 14px",borderRadius:"999px",border:"1px solid #D9D9D9",backgroundColor:"#F7F7F7",color:"#111111",fontSize:"14px",lineHeight:1,fontWeight:600,alignSelf:z?"center":"flex-start"}},j.badgeTitle):null,e.createElement("h2",{className:"yt-loyalty-page-rewards-title",style:{margin:0,maxWidth:"420px",fontSize:z?"20px":"25px",lineHeight:1.06,letterSpacing:"-0.03em",fontWeight:700,color:j?.fontColor??"#111111"}},j.title),e.createElement("p",{className:"yt-loyalty-page-rewards-description",style:{margin:"20px 0 0",maxWidth:"470px",fontSize:z?"12px":"14px",lineHeight:1.35,fontWeight:400,color:j.fontColor,whiteSpace:"pre-line"}},j.description))),e.createElement("div",{className:"yt-loyalty-page-rewards-disclaimer",style:{marginTop:"14px",backgroundColor:"#1F232B",color:"#FFFFFF",padding:"15px 20px",textAlign:"center",fontSize:"15px",lineHeight:1.3,fontWeight:400,fontStyle:"italic"}},j.disclaimerText),e.createElement("div",{className:"yt-loyalty-page-rewards-cta",style:{display:"flex",flexDirection:z?"column":"row",justifyContent:"space-between",alignItems:"center",marginTop:"20px",padding:z?"24px":"26px 28px",border:"1px solid #D4D4D4",gap:"18px",textAlign:z?"center":"left"}},e.createElement("div",{className:"yt-loyalty-page-rewards-cta-copy"},e.createElement("h3",{style:{margin:0,fontSize:z?"28px":"32px",lineHeight:1.05,fontWeight:700,letterSpacing:"-0.03em",color:j.fontColor}},j.bottomCtaTitle),e.createElement("p",{style:{margin:"8px 0 0",fontSize:"18px",lineHeight:1.25,fontWeight:400,color:j.fontColor}},j.bottomCtaSubtitle)),e.createElement("button",{className:"yt-loyalty-page-rewards-cta-button",style:{...I,minWidth:z?"100%":"220px",padding:"14px 28px",borderRadius:"0px",border:"none",boxShadow:"none",fontSize:"18px",fontWeight:700},onClick:async()=>{l?await l():$()}},j.buttonText)))))},$g=({showPopup:n,selectedOffer:r,selectedOfferTerms:o,onClose:a,offersConfig:i})=>{const[l,c]=t(!1);if(!n||!r||!o)return null;const s=r._customOffer,d=s?.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"}},_g(r)?e.createElement(b,null):e.createElement(Qe,null)),e.createElement("div",{style:{fontSize:"clamp(16px, 4vw, 20px)",fontWeight:500,color:"#4C4C4C",lineHeight:"normal",textAlign:"center"}},Ag(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),c(!0),setTimeout(()=>c(!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(F,null):e.createElement(z,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 A(p,document.body)},Ig=({showPopup:n,selectedOffer:r,selectedOfferTerms:o,onClose:a,offersConfig:i})=>{const[l,c]=t(!1);if(!n||!r||!o)return null;const s=r._customOffer,d=s?.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"}},_g(r)?e.createElement(b,null):e.createElement(Qe,null)),e.createElement("div",{style:{fontSize:"14px",fontWeight:500,color:"#888",textAlign:"center"}},Ag(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),c(!0),setTimeout(()=>c(!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(F,null):e.createElement(z,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 A(p,document.body)},Pg=({offersToShow:r,offersConfig:a,getOfferCardMessage:i,setSelectedOffer:l,setShowPopup:c})=>{const s=o(null),[d,p]=t(!1),[m,u]=t(!0),[g,f]=t("undefined"!=typeof window&&window.innerWidth<=768),y=()=>{if(s.current){const{scrollLeft:e,scrollWidth:t,clientWidth:n}=s.current;p(e>0),u(e<t-n-10)}};n(()=>{y();const e=s.current;if(e)return e.addEventListener("scroll",y),()=>e.removeEventListener("scroll",y)},[r]),n(()=>{const e=()=>{f(window.innerWidth<=768)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const x=e=>{if(s.current){const t=g?280:365,n=16,r="right"===e?t+n:-(t+n);s.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($,{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(I,{size:20})),e.createElement("div",{ref:s,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"}},_g(t)?e.createElement(b,null):e.createElement(Qe,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"}},Ag(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),c(!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 "))},Dg=({offersToShow:r,offersConfig:o,getOfferCardMessage:a,setSelectedOffer:i,setShowPopup:l})=>{const[c,s]=t("undefined"!=typeof window&&window.innerWidth<=768);return n(()=>{const e=()=>{s(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:c?"8px":"12px",padding:c?"12px 0":"16px 0",paddingLeft:c?"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:c?"40px":"50px",height:c?"40px":"50px",backgroundColor:"#f8f9fa",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:c?"20px":"25px",marginTop:c?"5px":"10px",border:"2px solid #4a4a4a",color:"#4a4a4a"}},_g(t)?e.createElement(b,null):e.createElement(Qe,null)),e.createElement("div",{style:{flex:1}},e.createElement("div",{style:{fontSize:c?"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:c?"12px":"13px",color:"#7f8c8d",marginBottom:"6px"}},a(t)),e.createElement("div",{style:{fontSize:c?"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"))))))},Ag=e=>"free_product"===e.couponType?"deal_amount"===e.freebieType?"Deal":"percentage_off"===e.freebieType?"% Off":"Free Gift":e._customOffer?.code?"Coupon":"Special Deal",_g=e=>"free_product"===e.couponType&&"deal_amount"!==e.freebieType&&"percentage_off"!==e.freebieType,Lg=({offersConfig:r,offers:a})=>{const[i,l]=t(!1),[c,s]=t(null),[d,p]=t(null),[m,u]=t("undefined"!=typeof window&&window.innerWidth<=768),[g,f]=t("undefined"!=typeof window&&window.innerWidth<=450),y=o(null);n(()=>{const e=()=>{u(window.innerWidth<=768),f(window.innerWidth<=450)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),n(()=>{y.current&&bn(y.current)},[r?.sectionBgContrastColor]);const x=(e=>{if(!e||0===e.length)return e;const t={};e.forEach(e=>{const n=e.customCartProgressBarCriteria||"none";t[n]=(t[n]||0)+1});let n="none",r=-1;Object.keys(t).forEach(e=>{t[e]>r&&(r=t[e],n=e)});const o=e.map((e,t)=>({o:e,idx:t})),a=e=>"minimum_order_value"===n?void 0!==e.minimumOrderValue&&null!==e.minimumOrderValue?Number(e.minimumOrderValue):1/0:"quantity"===n&&void 0!==e.quantityThreshold&&null!==e.quantityThreshold?Number(e.quantityThreshold):1/0;return o.sort((e,t)=>{const r=e.o.customCartProgressBarCriteria===n,o=t.o.customCartProgressBarCriteria===n;if(r&&o){const n=a(e.o),r=a(t.o);return n!==r?n-r:e.idx-t.idx}return r&&!o?-1:!r&&o?1:e.idx-t.idx}),o.map(e=>e.o)})((!1===r?.showBackendOffers&&r?.customOffers&&r.customOffers.length>0?r.customOffers.map((e,t)=>{return{discountId:-(t+1),name:(n=e).title,couponType:n.code?"discount_code":"special_deal",customCartProgressBarCriteria:null,discountPercentage:null,couponTemplateId:0,minimumOrderValue:0,quantityThreshold:0,_allVariantIds:[],description:n.description,_customOffer:n};var n}):a)||[]),h=e=>{if(s(e),e){const t=e._customOffer;p(t?(e=>({offerMessage:e.description||"Special offer available",terms:e.terms?e.terms.split("\n").filter(e=>""!==e.trim()):[]}))(t):(e=>{const t="free_product"===e.couponType;let n="";if(t){const t="deal_amount"===e.freebieType?`at ${e.discountValue}`:"percentage_off"===e.freebieType?`at ${e.discountPercentage}% off`:"free"===e.freebieType?"for free!":"";t&&(n=`Get the product ${t}`)}else e.discountPercentage?n=`Get ${e.discountPercentage}% off`:e.discountValue&&(n=`Get ${e.discountValue} off`);const r=["Limited Time Offer","Applies automatically when criteria is met"];return"quantity"===e.customCartProgressBarCriteria&&e.quantityThreshold?r.push(`Unlock when you add ${e.quantityThreshold} ${e.quantityThreshold>1?"items":"item"} to cart`):"minimum_order_value"===e.customCartProgressBarCriteria&&e.minimumOrderValue&&r.push(`Unlock at order value of ${e.minimumOrderValue}`),t||r.push("Not applicable if other offer with higher discount applied on same product"),{offerMessage:n,terms:r}})(e))}},b=e=>{const t=e._customOffer;return t?t.description||"Special offer available":(e=>"quantity"===e.customCartProgressBarCriteria&&e.quantityThreshold?`add ${e.quantityThreshold} ${e.quantityThreshold>1?"items":"item"} to unlock`:"minimum_order_value"===e.customCartProgressBarCriteria&&e.minimumOrderValue?`unlocks on orders above ${e.minimumOrderValue}`:"Special offer available")(e)};return e.createElement("div",null,e.createElement("div",{style:{position:"relative",width:"100%",maxWidth:"450px",borderRadius:"list"===r?.sectionType?`${r?.roundness||0}px`:"0px",boxSizing:"border-box",backgroundColor:r?.sectionBackgroundColor||"#fff"}},e.createElement("div",{style:{border:"coupon"===r?.sectionType?"none":"1px solid rgb(169, 163, 163)",borderTop:"1px solid rgb(169, 163, 163)",padding:null!=r?.cardPadding?`${r.cardPadding}px`:m?"20px 10px 15px":"30px 15px 20px",position:"relative",borderRadius:"list"===r?.sectionType?`${r?.roundness||8}px`:"0px"}},e.createElement("span",{ref:y,className:"yt-product-offers-section-title",style:{position:"absolute",top:"0",left:"left"===r?.alignment?"coupon"===r?.sectionType?"0px":m?"10px":"20px":"right"===r?.alignment?"auto":"50%",right:"right"===r?.alignment?"coupon"===r?.sectionType?"0px":m?"10px":"20px":"auto",transform:"middle"===r?.alignment?"translateX(-50%) translateY(-50%)":"translateY(-50%)",background:r?.sectionBgContrastColor||"#fff",padding:m?"0 8px":"0 10px",fontWeight:"500",fontSize:m?"14px":"16px",textTransform:"uppercase",textAlign:"center"}},r?.sectionTitle||"Available Deals and Offers"),(()=>{const t=r?.sectionType;return"list"===t?e.createElement(Dg,{offersToShow:x,offersConfig:r||{},getOfferCardMessage:b,setSelectedOffer:h,setShowPopup:l}):"coupon"===t?e.createElement(Pg,{offersToShow:x,offersConfig:r||{},getOfferCardMessage:b,setSelectedOffer:h,setShowPopup:l}):null})(),g?e.createElement(Ig,{selectedOffer:c,selectedOfferTerms:d,showPopup:i,offersConfig:r,onClose:()=>{l(!1),s(null),p(null)}}):e.createElement($g,{selectedOffer:c,selectedOfferTerms:d,showPopup:i,offersConfig:r,onClose:()=>{l(!1),s(null),p(null)}}))))};export{Tm as Bundle,xu as BundleLoader,yu as Cart,mg as LoyaltyLauncher,zg as LoyaltyPageBlock,kg as LoyaltyProductCatalog,cg as LoyaltyScreen,vg as LoyaltyWidget,Qt as Nudge,Bg as PointEarnBadge,Lg as ProductOffers,wg as RewardsModal,en as SpinnerWheel};