yt-uikit 0.8.12-fix-flash.5 → 0.8.12-fix-flash.6

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
@@ -2869,7 +2869,7 @@ import*as e from"react";import t,{forwardRef as n,useImperativeHandle as r,useRe
2869
2869
  &:hover {
2870
2870
  border-color: ${({$themeColor:e})=>e||"#000"};
2871
2871
  }
2872
- `,Iu=n(({removeCartItem:e,addCartItem:n,getProductDetailsByVariantId:r,themeColor:a,cartComponentsCornerRadius:s,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:u,freebieClaimAddToCart:m,productClaimCtaButtonText:f,backgroundSubdued:g,primaryTextColor:h},x)=>{const[y,b]=pn(kn),v=sn(un),w=o(null),[C,k]=c(null),[E,S]=c(!1),[T,$]=c({}),[B,z]=c(y?.variantId),[I,D]=c(y?.quantity||1),[N,_]=c(!1),O=Fa();l(()=>{y?.open?setTimeout(()=>{_(!0)},10):_(!1)},[y?.open]);l(()=>{(async()=>{if(!C&&r&&y?.variantId&&y?.handle){const e=await r(y.handle,y.variantId);if(e&&e.variants&&e.options){let t;const n=y.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(y.variantId))||e.variants.find(e=>e.available&&n.includes(String(e.id))):e.variants.find(e=>e.available&&String(e.id)===String(y.variantId)),t){z(String(t.id));const n={};e.options.forEach((e,r)=>{n[e.name]=t[`option${r+1}`]}),$(n)}else z(void 0),$({})}k(e)}})()},[C,r,y]);const P=(e,t)=>{const n={...T,[e]:t};$(n);const r=C?.variants?.find(e=>C.options.every((t,r)=>e[`option${r+1}`]===n[t.name]));if(r){const e=y?.allowedVariantIds;if(Array.isArray(e)&&e.length>0&&!e.includes(String(r.id)))return;r.available&&z(String(r.id))}},A=C?.variants?.find(e=>String(e.id)===String(B)),F=Dn(v,v?.currency),M=i(()=>{const e={};if(!C)return e;const t=Array.isArray(y?.allowedVariantIds)&&y.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=T[e.name];return!o||r[`option${t+1}`]===o})&&(!!(!t||Array.isArray(y.allowedVariantIds)&&y.allowedVariantIds.includes(String(r.id)))&&!!r.available)}).some(e=>!!(!t||Array.isArray(y.allowedVariantIds)&&y.allowedVariantIds.includes(String(e.id)))&&e.available))}),e},[C,T,y]);return C?t.createElement(t.Fragment,null,t.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:2147483643,display:y?.open?"flex":"none",justifyContent:"center",alignItems:"center",opacity:N?1:0,transition:"opacity 0.3s ease"},onClick:()=>{_(!1),setTimeout(()=>{b({open:!1,variantId:void 0,handle:void 0,quantity:void 0})},300)}}),t.createElement(cu,{ref:x,className:"yt-variant-selection-popup"},t.createElement(du,{ref:w,style:{backgroundColor:p||"white",opacity:N?1:0,transform:N?"translateY(0)":"translateY(20px)"},$themeColor:a,onClick:e=>e.stopPropagation()},y?.freebieSelection&&t.createElement(su,null,"Unlocked Freebie"),t.createElement(uu,null,t.createElement(mu,null,t.createElement(fu,null,t.createElement(gu,{src:A?.featured_image?.src??C?.featured_image,alt:A?.featured_image?.alt??C?.title})),t.createElement(hu,null,t.createElement(xu,{$themeColor:a,$primaryTextColor:h,href:`${C?.url}?variant=${A?.id}`},C?.title),t.createElement($u,null,t.createElement(yu,null,t.createElement(bu,{$primaryTextColor:h},F,zn(A?.price,v?.currency??"INR")),null!=A?.compare_at_price&&null!=A?.price&&A.compare_at_price>A.price&&t.createElement(vu,null,F,zn(A?.compare_at_price,v?.currency??"INR"))),!y?.freebieSelection&&t.createElement(Ia,{value:I,handleItemQuantityIncrement:async()=>{D(e=>e+1)},handleItemQuantityDecrement:async()=>{I>1&&D(e=>e-1)},cartComponentsCornerRadius:s,cartComponentsCornerType:d,backgroundSubdued:g})))),C?.options?.map(e=>{const n=O?.options?.find(t=>t.name.trim().toLowerCase()===e.name.trim().toLowerCase());return t.createElement(Cu,{key:e.name},t.createElement(Eu,null,t.createElement("span",null,"Select ",e.name),T[e.name]&&t.createElement(Su,null,T[e.name])),t.createElement(Tu,null,M[e.name]?.map(r=>{const o=T[e.name]===r,i=Aa(n,r);return"color"===n?.type&&i?.value?t.createElement(Bu,{key:r,$isSelected:o,$themeColor:a,onClick:()=>P(e.name,r),$colorValue:i.value}):"image"===n?.type&&i?.value?t.createElement(zu,{key:r,$isSelected:o,$themeColor:a,onClick:()=>P(e.name,r),$imageUrl:i.value}):t.createElement(ku,{$themeColor:a,key:r,$isSelected:o,backgroundColor:o?a:void 0,onClick:()=>P(e.name,r)},r)})))})),t.createElement(wu,{className:"yt-cart-variant-popup-ATC-button",$themeColor:a??"#C33",onClick:y?.productRec?async()=>{if(B&&n){S(!0);try{await n(B,I,"product-recommendation-variant-selector",!1,y.handle),b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,productRec:!1})}catch(e){console.error("Error adding item from product recommendation:",e)}S(!1)}}:async()=>{if(!B)return;const t=!!y?.lineItemKey,r=String(B)!==String(y?.variantId);if(!t||r){S(!0);try{const t=y?.freebieSelection;t&&u&&y?.lineItemKey?await u(y.lineItemKey):await e(y?.lineItemKey||y?.variantId,"variant-selector",!0),t&&m?await m(B,y.allowedVariantIds):n&&B&&await n(B,I,"variant-selector",!1,y.handle),b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})}catch(e){}S(!1)}else b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!B||E},E?t.createElement(ma,{color:"white",size:13}):y?.productRec?"ADD TO BAG":y?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):t.createElement(cu,{ref:x},t.createElement(du,{style:{backgroundColor:p||"white"}},t.createElement(pu,null,t.createElement(xa,{color:a||"#868E96"}))))});Iu.displayName="DesktopVariantPopup";const Du=n(({removeCartItem:e,addCartItem:n,getProductDetailsByVariantId:r,themeColor:a,cartComponentsCornerRadius:s,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:u,freebieClaimAddToCart:m,productClaimCtaButtonText:f,backgroundSubdued:g,primaryTextColor:h},x)=>{const[y,b]=pn(kn),v=sn(un),[w,C]=c(null),[k,E]=c(!1),[S,T]=c({}),[$,B]=c(y?.variantId),[z,I]=c(y?.quantity||1),D=o(null),N=Fa(),[_,O]=c(!1);l(()=>{y?.open?setTimeout(()=>{O(!0)},10):O(!1)},[y?.open]);l(()=>{(async()=>{if(!w&&r&&y?.variantId&&y?.handle)try{const e=await r(y.handle,y.variantId);if(!e)return;if(!e.variants||!Array.isArray(e.variants))return;if(e&&e.variants&&e.options){let t;const n=y.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(y.variantId))||e.variants.find(e=>e.available&&n.includes(String(e.id))):e.variants.find(e=>e.available&&String(e.id)===String(y.variantId)),t){B(String(t.id));const n={};e.options.forEach((e,r)=>{n[e.name]=t[`option${r+1}`]}),T(n)}else B(void 0),T({})}C(e)}catch(e){}})()},[w,r,y]),l(()=>{},[p,e,n,r]);const P=(e,t)=>{const n={...S,[e]:t};T(n);const r=w?.variants?.find(e=>w.options.every((t,r)=>e[`option${r+1}`]===n[t.name]));if(r){const e=y?.allowedVariantIds;if(Array.isArray(e)&&e.length>0&&!e.includes(String(r.id)))return;r.available&&B(String(r.id))}},A=w?.variants?.find(e=>String(e.id)===String($)),F=Dn(v,v?.currency),M=i(()=>{const e={};if(!w)return e;const t=Array.isArray(y?.allowedVariantIds)&&y.allowedVariantIds.length>0;return w.options.forEach(n=>{e[n.name]=n.values.filter(e=>w.variants.filter(r=>{const o=w.options.indexOf(n);if(r[`option${o+1}`]!==e)return!1;return!!w.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(y.allowedVariantIds)&&y.allowedVariantIds.includes(String(r.id)))&&!!r.available)}).some(e=>!!(!t||Array.isArray(y.allowedVariantIds)&&y.allowedVariantIds.includes(String(e.id)))&&e.available))}),e},[w,S,y]);return w?t.createElement(t.Fragment,null,t.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:2147483643,display:y?.open?"flex":"none",justifyContent:"center",alignItems:"center",opacity:_?1:0,transition:"opacity 0.3s ease"},onClick:()=>{O(!1),setTimeout(()=>{b({open:!1,variantId:void 0,handle:void 0,quantity:void 0})},300)}}),t.createElement(cu,{ref:x,className:"yt-variant-selection-popup"},t.createElement(du,{ref:D,style:{backgroundColor:p||"white",opacity:_?1:0,transform:_?"translateY(0)":"translateY(20px)"},$themeColor:a,onClick:e=>e.stopPropagation()},y?.freebieSelection&&t.createElement(su,null,"Unlocked Freebie"),t.createElement(uu,null,t.createElement(mu,null,t.createElement(fu,null,t.createElement(gu,{src:A?.featured_image?.src??w?.featured_image,alt:A?.featured_image?.alt??w?.title})),t.createElement(hu,null,t.createElement(xu,{$themeColor:a,$primaryTextColor:h,href:`${w?.url}?variant=${A?.id}`},w?.title),t.createElement($u,null,t.createElement(yu,null,t.createElement(bu,{$primaryTextColor:h},F,zn(A?.price,v?.currency??"INR")),null!=A?.compare_at_price&&null!=A?.price&&A.compare_at_price>A.price&&t.createElement(vu,null,F,zn(A?.compare_at_price,v?.currency??"INR"))),!y?.freebieSelection&&t.createElement(Ia,{value:z,handleItemQuantityIncrement:async()=>{I(e=>e+1)},handleItemQuantityDecrement:async()=>{z>1&&I(e=>e-1)},cartComponentsCornerRadius:s,cartComponentsCornerType:d,backgroundSubdued:g})))),w?.options?.map(e=>{const n=N?.options?.find(t=>t.name.trim().toLowerCase()===e.name.trim().toLowerCase());return t.createElement(Cu,{key:e.name},t.createElement(Eu,null,t.createElement("span",null,"Select ",e.name,":"),S[e.name]&&t.createElement(Su,null,S[e.name])),t.createElement(Tu,null,M[e.name]?.map(r=>{const o=S[e.name]===r,i=Aa(n,r);return"color"===n?.type&&i?.value?t.createElement(Bu,{key:r,$isSelected:o,$themeColor:a,onClick:()=>P(e.name,r),$colorValue:i.value}):"image"===n?.type&&i?.value?t.createElement(zu,{key:r,$isSelected:o,$themeColor:a,onClick:()=>P(e.name,r),$imageUrl:i.value}):t.createElement(ku,{$themeColor:a,key:r,$isSelected:o,backgroundColor:o?a:void 0,onClick:()=>P(e.name,r)},r)})))})),t.createElement(wu,{className:"yt-cart-variant-popup-ATC-button",$themeColor:a??"#C33",onClick:y?.productRec?async()=>{if($&&n){E(!0);try{await n($,z,"product-recommendation-variant-selector",!1,y.handle),b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,productRec:!1})}catch(e){console.error("Error adding item from product recommendation:",e)}E(!1)}}:async()=>{if(!$)return;const t=!!y?.lineItemKey,r=String($)!==String(y?.variantId);if(!t||r){E(!0);try{const t=y?.freebieSelection;t&&u&&y?.lineItemKey?await u(y.lineItemKey):await e(y?.lineItemKey||y?.variantId,"variant-selector",!0),t&&m?await m($,y.allowedVariantIds):n&&$&&await n($,z,"variant-selector",!1,y.handle),b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})}catch(e){}E(!1)}else b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!$||k},k?t.createElement(ma,{color:"white",size:13}):y?.productRec?"ADD TO BAG":y?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):t.createElement(cu,{ref:x},t.createElement(du,{style:{backgroundColor:p||"white"}},t.createElement(pu,null,t.createElement(xa,{color:a||"#868E96"}))))}),Nu=({exploreCTAColor:e,checkoutFontSize:n,handleDecrement:r,handleIncrement:a,removeCartItem:i,addCartItem:s,cartTitle:d,emptyCartTitle:p,emptyCartDescription:u,emptyCartButtons:f,backgroundColor:g,backgroundSubdued:h,tertiaryColor:x,tertiaryTextColor:y,backdrop:b=!0,cartData:v,isUserSignedIn:w,showBundle:C,showCouponOptions:k,bundleProducts:E,discountAmountOff:S,loyaltyIcon:T,pointsToBeUsed:$,rewardMultiplier:B,redemptionMultiplier:z,removeDiscount:I,applyDiscount:D,discountApplied:N,rewardCoupons:_,userTotalPoints:O,checkoutFunction:P,joinNowFunction:A,guestLoyaltyPercentage:F,showToggleButton:M,isOpen:R,setIsOpen:L,isDev:j,switchWidthVariant:V,recProductsList:W,showMultiStepProgressBar:H,cartCheckpoints:q,redemptionRate:U,pointsRewardRate:G,showCartLevelAltPay:Y,guestRewardCoupon:Q,showGuestDiscountCoupon:Z,applyTemplateDiscount:X,exploreCtaRedirectLink:K,discountAmountApplied:J,minimumCartValue:ee,discountInCheckoutButton:te,isStickyCheckout:ne,showDiscountsListToGuestUsers:re,showApplyCouponsButtonToGuestUsers:oe,handleCheckpointCrossed:ae,customCartProgressBarCriteria:ie,checkoutButtonColor:le,ctaButtonBackgroundColor:ce,ctaButtonTextColor:se,primaryTextColor:de,productRecsCtaButtonText:pe,productRecsTitleText:ue,secondaryTextColor:me,showProductRecsOnDesktop:fe,showProductRecsOnMobile:ge,themeColor:he,themeTextColor:xe,companyName:ye,gstNumber:be,showGSTOption:ve,applyGSTToCart:we,showMOVForProgressTiers:Ce,freeProduct:ke,showLoyaltyCta:Ee,freeProductAdjustedCartTotal:Se,minimumOrderValueToAvailDiscount:Te,signinCTAButtonVisible:$e,cartSigninCTAMainText:Be,showNoteOption:ze,applyNoteToCart:Ie,note:De,inlineCartOfferInfoText:Ne,inlineCartOfferInfoRedirectLink:_e,cartOfferTermsAndConditionsText:Oe,showEditOptionOnProducts:Pe,getProductDetailsByVariantId:Ae,onSetLoading:Fe,showVariantSelectionDropdownInProductRecs:Me,originalCartSubtotal:Re,currentTier:Le,freebieProductsInCart:je,showFreebieClaim:Ve,addFreebieToCart:We,freebiesInCart:He,effectiveQuantityForProgressBar:qe,productPercentageOffMapping:Ue,productTagsMapping:Ge,removeFreebieFromCart:Ye,postalCodeList:Qe,enableGeoLocationDeliveryRestriction:Ze,applyPostalCodeAndDeliverySlotToCart:Xe,showDeleteOnFreebies:Ke,freebieCouponTemplates:Je,freebieFlowCheckpoints:et,freebieClaimData:tt,showStickyAddToCart:nt,stickyCartLineItem:rt,postalCodeBasedItemTrackingParameter:ot,enableSlotPicker:at,deliveryHeaderTitle:it,deliveryAvailableText:lt,deliveryNotAvailableText:ct,giftWrapSetupData:st,giftWrapProductDetail:dt,enableCustomCartOnCartPage:pt,isCartPage:ut,progressBarFreeProductIconType:mt,addToStickyCart:ft,productRecsCardLayout:gt,productRecsCardListVariant:ht,showCartTimer:xt,showFreebieMilestone:yt,freebieMilestoneData:bt,cartTimerInMinutes:vt,cartTimerCustomText:wt,imageAspectSelector:Ct,cartComponentsCornerType:kt,cartComponentsCornerRadius:Et,stickyCartCustomizationData:St,cartOffersCarousalData:Tt,stickyBarBuyNowFunction:$t,gstSectionCustomizationData:Bt,noteSectionTitle:zt,checkoutSectionMessage:It,checkoutSectionMessageRedirectLink:Dt,checkoutSectionMessageDisplay:Nt,showVariantSelectionDropdownInProductClaim:_t,loyaltyDiscount:Ot,brandTokenName:Pt,showDiscountOnMRP:At,prefixMessageText:Ft,suffixMessageText:Mt,successMessageText:Rt,toggleDecimal:Lt,cartOffersCarouselHeight:jt,disableCheckoutButton:Vt,showEmptyCartRecommendations:Wt,emptyProductRecsTitleText:Ht,checkoutButtonBottomSpacing:qt,showPoweredByBadge:Ut=!0,applyCouponCode:Gt,showApplyCoupon:Yt,enableConfetti:Qt,showCheckoutButtonPaymentIcons:Zt=!0,comboBundleData:Xt,comboBundleAddToCartFunction:Kt})=>{const Jt=dn(un),[en,tn]=pn(kn),[nn,rn]=pn(wl),on=()=>L(!R),[an,ln]=c(()=>{const e=window.ytComboBundle;return{comboBundleData:e?.bundle??null,comboBundleAddToCartFunction:e?.addToCart??null}});l(()=>{const e=e=>{const t=e.detail;ln({comboBundleData:t?.bundle??null,comboBundleAddToCartFunction:t?.addToCart??null})};return window.addEventListener("yt-combo-bundle-updated",e),()=>window.removeEventListener("yt-combo-bundle-updated",e)},[]);const cn=an.comboBundleData??Xt,sn=an.comboBundleAddToCartFunction??Kt,mn=o(0),fn=o(0),gn=o(0),hn=e=>{if(!e)return null;return`${e?.token??null}|${e?.item_count??null}|${e?.items?.length??null}|${e?.total_price??null}|${e?.items_subtotal_price??null}|${Array.isArray(e?.items)?e.items.map(e=>`${e?.key??e?.id??"?"}:${e?.quantity??"?"}`).sort().join(","):null}`},xn=(e,t)=>async(...n)=>{gn.current+=1;const r=gn.current;return fetch("http://127.0.0.1:7242/ingest/f4c699a3-34a2-44db-9967-e255352f8719",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:"debug-session",runId:"post-fix",hypothesisId:"G",location:"src/components/Cart/Cart.tsx:mutation",message:"Cart mutation invoked",data:{name:e,mutationId:r},timestamp:Date.now()})}).catch(()=>{}),t?await t(...n):void 0},yn=xn("removeCartItem",i),bn=xn("handleIncrement",a),vn=xn("handleDecrement",r),wn=xn("addCartItem",s);l(()=>{mn.current+=1;const e=mn.current;fetch("http://127.0.0.1:7242/ingest/f4c699a3-34a2-44db-9967-e255352f8719",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:"debug-session",runId:"pre-fix",hypothesisId:"F",location:"src/components/Cart/Cart.tsx:cartData-prop",message:"Cart received cartData prop",data:{seq:e,signature:hn(v),itemCount:v?.item_count,itemsLen:v?.items?.length,token:v?.token},timestamp:Date.now()})}).catch(()=>{})},[v]);const Cn=o(new Map),En=o(0),Sn=o(-1),Tn=o(0);m(()=>{if(v){const e=mn.current,t=hn(v),n=Cn.current,r=t?n.get(t):void 0,o=t&&void 0!==r?r:t?En.current+=1:-1;t&&void 0===r&&n.set(t,o);const a=t&&o<Sn.current&&gn.current===Tn.current;if(fetch("http://127.0.0.1:7242/ingest/f4c699a3-34a2-44db-9967-e255352f8719",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:"debug-session",runId:"post-fix",hypothesisId:"G",location:"src/components/Cart/Cart.tsx:stale-guard",message:a?"Dropping stale cartData prop snapshot (repeat/out-of-order)":"Accepting cartData prop snapshot",data:{nextSeq:e,signature:t,order:o,lastAcceptedOrder:Sn.current,mutationCounter:gn.current,lastAcceptedMutationCounter:Tn.current,itemCount:v?.item_count,itemsLen:v?.items?.length},timestamp:Date.now()})}).catch(()=>{}),a)return;fetch("http://127.0.0.1:7242/ingest/f4c699a3-34a2-44db-9967-e255352f8719",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:"debug-session",runId:"pre-fix",hypothesisId:"F",location:"src/components/Cart/Cart.tsx:setCartData",message:"Cart writing cartDataState from prop",data:{nextSeq:e,lastAppliedSeq:fn.current,signature:t,itemCount:v?.item_count,itemsLen:v?.items?.length,token:v?.token},timestamp:Date.now()})}).catch(()=>{}),fn.current=e,Sn.current=o,Tn.current=gn.current,Jt(v)}},[v]);const $n=o(null);l(()=>{function e(e){$n.current&&!$n.current.contains(e.target)&&(tn({open:!1,variantId:void 0,quantity:void 0,handle:void 0}),rn({isOpen:!1}))}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);const[Bn,zn]=c(!1);return l(()=>{const e=()=>{zn(window.innerWidth>=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),t.createElement(t.Fragment,null,t.createElement("div",{style:{position:pt&&ut?"relative":"absolute",width:"100%",display:pt&&ut?"flex":"block",alignItems:"center",justifyContent:"center"}},M&&!(pt&&ut)&&t.createElement("button",{style:{margin:"16px"},onClick:on},R?"Close Drawer":"Open Drawer"),R&&b&&!(pt&&ut)&&t.createElement("div",{onClick:on,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%"}},"‎"),t.createElement(Vp,{isCartPage:ut,enableCustomCartOnCartPage:pt,isOpen:R,setIsOpen:L,backgroundColor:g,backgroundSubdued:h??"#F5F5F5",tertiaryColor:x,tertiaryTextColor:y,exploreCTAColor:e,checkoutFontSize:n,cartTitle:d,handleDecrement:vn,handleIncrement:bn,removeCartItem:yn,addCartItem:wn,emptyCartTitle:p,emptyCartButtons:f,emptyCartDescription:u,showCouponOptions:k,showBundle:C,isUserSignedIn:w,bundleProducts:E,discountAmountOff:S,loyaltyIcon:T,pointsToBeUsed:$,rewardMultiplier:B,redemptionMultiplier:z,removeDiscount:I,applyDiscount:D,discountApplied:N,rewardCoupons:_,userTotalPoints:O,checkoutFunction:P,joinNowFunction:A,guestLoyaltyPercentage:F,isDev:j,switchWidthVariant:V,recProductsList:W,showMultiStepProgressBar:H,cartCheckpoints:q,redemptionRate:U,pointsRewardRate:G,showCartLevelAltPay:Y,guestRewardCoupon:Q,showGuestDiscountCoupon:Z,applyTemplateDiscount:X,exploreCtaRedirectLink:K,discountAmountApplied:J,minimumCartValue:ee,discountInCheckoutButton:te,isStickyCheckout:ne,showDiscountsListToGuestUsers:re,showApplyCouponsButtonToGuestUsers:oe,handleCheckpointCrossed:ae,customCartProgressBarCriteria:ie??"minimum_order_value",checkoutButtonColor:le,ctaButtonBackgroundColor:ce,ctaButtonTextColor:se,primaryTextColor:de,productRecsCtaButtonText:pe,productRecsTitleText:ue,secondaryTextColor:me,showProductRecsOnDesktop:fe,showProductRecsOnMobile:ge,themeColor:he,themeTextColor:xe,companyName:ye,gstNumber:be,showGSTOption:ve,applyGSTToCart:we,showMOVForProgressTiers:Ce,freeProduct:ke,showLoyaltyCta:Ee,freeProductAdjustedCartTotal:Se,minimumOrderValueToAvailDiscount:Te,signinCTAButtonVisible:$e,cartSigninCTAMainText:Be,applyNoteToCart:Ie,note:De,showNoteOption:ze,inlineCartOfferInfoText:Ne,inlineCartOfferInfoRedirectLink:_e,cartOfferTermsAndConditionsText:Oe,showEditOptionOnProducts:Pe,onSetLoading:Fe,showVariantSelectionDropdownInProductRecs:Me,originalCartSubtotal:Re,currentTier:Le,freebieProductsInCart:je,cartOffersCarousalData:Tt,showFreebieClaim:Ve,addFreebieToCart:We,freebiesInCart:He,effectiveQuantityForProgressBar:qe,productPercentageOffMapping:Ue,productTagsMapping:Ge,removeFreebieFromCart:Ye,postalCodeList:Qe,enableGeoLocationDeliveryRestriction:Ze,applyPostalCodeAndDeliverySlotToCart:Xe,showDeleteOnFreebies:Ke,freebieCouponTemplates:Je,freebieFlowCheckpoints:et,freebieClaimData:tt,postalCodeBasedItemTrackingParameter:ot,enableSlotPicker:at,deliveryHeaderTitle:it,deliveryAvailableText:lt,deliveryNotAvailableText:ct,giftWrapSetupData:st,giftWrapProductDetail:dt,progressBarFreeProductIconType:mt,productRecsCardLayout:gt,productRecsCardListVariant:ht,showCartTimer:xt,showFreebieMilestone:yt,freebieMilestoneData:bt,cartTimerCustomText:wt,cartTimerInMinutes:vt,imageAspectSelector:Ct,cartComponentsCornerType:kt,cartComponentsCornerRadius:Et,gstSectionCustomizationData:Bt,noteSectionTitle:zt,checkoutSectionMessage:It,checkoutSectionMessageRedirectLink:Dt,checkoutSectionMessageDisplay:Nt,showVariantSelectionDropdownInProductClaim:_t,loyaltyDiscount:Ot,getProductDetailsByVariantId:Ae,brandTokenName:Pt,showDiscountOnMRP:At??!0,prefixMessageText:Ft,suffixMessageText:Mt,successMessageText:Rt,toggleDecimal:Lt,cartOffersCarouselHeight:jt,disableCheckoutButton:Vt,showEmptyCartRecommendations:Wt,emptyProductRecsTitleText:Ht,checkoutButtonBottomSpacing:qt,showPoweredByBadge:Ut,applyCouponCode:Gt,showApplyCoupon:Yt,enableConfetti:Qt,showCheckoutButtonPaymentIcons:Zt}),nt&&rt&&s&&t.createElement(lu,{showStickyCart:nt,stickyCartCustomizationData:St,product:rt,addCartItem:s,onSetLoading:Fe,themeColor:he,themeTextColor:xe,cartData:v,isCartOpen:R,setIsCartOpen:L,ctaButtonBackgroundColor:ce,ctaButtonTextColor:se,addToStickyCart:ft,cartComponentsCornerRadius:Et,cartComponentsCornerType:kt,checkoutFunction:$t,backgroundColor:g,primaryTextColor:de,comboBundleData:cn,comboBundleAddToCartFunction:sn}),Bn&&en.open&&t.createElement(Iu,{backgroundColor:g,ref:$n,isDev:j,removeCartItem:i,addCartItem:s,getProductDetailsByVariantId:Ae,themeColor:he,cartComponentsCornerRadius:Et,cartComponentsCornerType:kt,removeFreebieFromCart:Ye,freebieClaimAddToCart:We,productClaimCtaButtonText:tt?.productClaimCtaButtonText,backgroundSubdued:h??"#F5F5F5",primaryTextColor:de}),!Bn&&en.open&&t.createElement(Du,{ref:$n,isDev:j,removeCartItem:i,addCartItem:s,getProductDetailsByVariantId:Ae,themeColor:he,cartComponentsCornerRadius:Et,cartComponentsCornerType:kt,backgroundColor:g,removeFreebieFromCart:Ye,freebieClaimAddToCart:We,productClaimCtaButtonText:tt?.productClaimCtaButtonText,backgroundSubdued:h??"#F5F5F5",primaryTextColor:de})))};q('@media (max-width: 108px) {\n .yt-fixed-bundle-price-section {\n width: 100% !important;\n }\n .yt-fixed-bundle-product-list {\n max-width: 100% !important;\n width: 100% !important;\n justify-content: center !important;\n }\n .price-text {\n text-align: center !important;\n }\n .bundle-builder-add-to-bundle-button {\n font-size: 12px !important;\n padding: 0px 8px !important;\n }\n .quantity .input-text.qty {\n width: 12px !important;\n height: 18px !important;\n }\n .quantity.buttons_added .minus,\n .quantity.buttons_added .plus {\n padding: 6px !important;\n height: 20px !important;\n }\n .bundle-builder-tracker-container {\n justify-content: center !important;\n }\n .bundle-builder-title .bundle-builder-subtitle {\n font-size: 30px !important;\n }\n .bundle-builder-title {\n font-size: 2rem !important;\n }\n .bundle-builder-tracker-item {\n width: 64px !important;\n height: 64px !important;\n }\n .bundle-builder-product-title {\n font-size: 14px !important;\n }\n}\n.hide-tracker-scrollbar {\n overflow-x: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n}\n\n.hide-tracker-scrollbar::-webkit-scrollbar {\n display: none;\n}\n\n.yt-fixed-bundle-border {\n border: 1px solid #c7c7c7;\n}\n\n.yt-fixed-bundle-border-minor-curved {\n border-radius: 8px;\n}\n\n.yt-fixed-bundle-border-minor-curved-image {\n border-radius: 6px;\n}\n\n.yt-fixed-bundle-border-major-curved {\n border-radius: 20px;\n}\n\n.yt-fixed-bundle-border-major-curved-image {\n border-radius: 18px;\n}\n\n@media (min-width: 1200px) {\n .bundle-builder-title .bundle-builder-subtitle {\n font-size: 30px !important;\n }\n}\n@media (max-width: 540px) {\n .bundle-builder-tracker-container {\n gap: 5px !important;\n margin-block: 0 !important;\n }\n .bundle-summary {\n display: flex;\n flex-direction: column !important;\n align-items: flex-start;\n gap: 2px !important;\n }\n .bundle-summary button {\n padding-top: 2px !important;\n padding-inline: 13px !important;\n font-size: 14px !important;\n padding-inline: 10px !important;\n padding: 0px;\n width: -webkit-fill-available;\n }\n .bundle-builder-tracker-progress {\n display: block !important;\n }\n .summary-info {\n width: 100% !important;\n min-width: 200px !important;\n display: flex;\n justify-content: space-between !important;\n flex-direction: row !important;\n flex-grow: 1 !important;\n font-size: 14px !important;\n }\n}\n@media (max-width: 540px) {\n .products-display {\n justify-content: space-between !important;\n column-gap: 5px !important;\n }\n .bundle-builder-product-container {\n width: 49% !important;\n }\n .bundle-builder-title {\n font-size: 1.5rem !important;\n margin-bottom: 8px !important;\n }\n .bundle-builder-subtitle {\n padding-top: 4px;\n font-size: 1rem !important;\n }\n}\n@media (max-width: 540px) {\n .bundle-summary.bundle-filled {\n display: flex !important;\n }\n}\n.yt-bundle-builder-product-price {\n font-weight: 600;\n color: black;\n margin-bottom: 2px;\n}\n\n/* Fixed bundle block */\n.yt-fixed-bundle-fixed-bundle {\n box-sizing: unset;\n max-width: 1000px;\n margin: 0 auto;\n container-type: inline-size;\n text-align: left;\n}\n\n.yt-fixed-bundle-bundle-header {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 10px 0px;\n gap: 8px;\n line-height: normal;\n}\n\n.yt-fixed-bundle-bundle-title {\n font-size: 24px;\n font-weight: 600;\n text-align: center;\n width: 100%;\n}\n\n.yt-fixed-bundle-bundle-subtitle {\n font-size: 16px;\n font-weight: 300;\n text-align: center;\n}\n\n.yt-fixed-bundle-bundle-content {\n display: flex;\n flex-direction: column;\n padding: 10px 0px;\n}\n\n.yt-fixed-bundle-product-list {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.yt-product-main {\n width: 100%;\n}\n\n.yt-fixed-bundle-product-card {\n display: flex;\n width: 90%;\n align-items: flex-start;\n padding: 0px;\n box-shadow: 2px 2px 11.8px 0px rgba(0, 0, 0, 0.1411764706);\n transition: transform 0.3s ease, box-shadow 0.3s ease;\n}\n\n.yt-fixed-bundle-product-image-container {\n margin-right: 8px;\n height: 110px;\n position: unset;\n}\n\n.yt-fixed-bundle-product-image {\n max-width: none;\n height: 110px;\n aspect-ratio: 1;\n object-fit: cover;\n}\n\n.yt-fixed-bundle-product-details {\n width: 100%;\n align-self: center;\n display: flex;\n flex-direction: column;\n gap: 6px;\n text-align: left;\n}\n\n.yt-fixed-bundle-product-title {\n font-size: 16px;\n font-weight: 700;\n display: block;\n line-height: 1.4;\n}\n\n.yt-fixed-bundle-product-price {\n font-size: 16px;\n display: block;\n margin-bottom: 6px;\n}\n\n.yt-fixed-bundle-original-price {\n text-decoration: line-through !important;\n color: #6b7280;\n margin-left: 4px;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-desktop {\n position: absolute;\n display: none;\n width: 100%;\n bottom: 6px;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-mobile {\n width: 98%;\n position: relative;\n display: flex;\n}\n\n.yt-fixed-bundle-checkbox-container-desktop {\n position: absolute;\n height: 100%;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-fixed-bundle-checkbox {\n display: none !important;\n}\n\n.yt-fixed-bundle-checkbox-label {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid #000;\n background: white;\n cursor: pointer;\n color: white !important;\n}\n\n.yt-fixed-bundle-checkbox:checked + .yt-fixed-bundle-checkbox-label {\n border-color: #000;\n color: white !important;\n border: 0px;\n font-size: 16px;\n}\n\n.yt-fixed-bundle-variant-select {\n appearance: none;\n -webkit-appearance: none;\n width: 100%;\n padding: 4px 20px;\n background-color: #ffffff;\n font-size: 15px;\n background-image: none;\n color: #2d2d2d;\n cursor: pointer;\n transition: border-color 0.3s ease, box-shadow 0.3s ease;\n}\n\n.yt-fixed-bundle-variant-select:focus {\n border-color: #cac6c6;\n box-shadow: 0 0 8px 0 rgba(56, 55, 57, 0.3);\n outline: none;\n}\n\n.yt-fixed-bundle-select-dot {\n position: absolute;\n top: 50%;\n left: 10px;\n transform: translateY(-50%);\n font-weight: 700;\n color: #4d4d4d;\n width: 8px; /* Adjust size */\n font-size: 8px;\n border-radius: 50%;\n pointer-events: none;\n}\n\n.yt-fixed-bundle-select-dot::after {\n content: "";\n width: 7px;\n height: 7px;\n border-radius: 50%;\n background-color: #1b1b1b;\n}\n\n.yt-fixed-bundle-select-icon {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n pointer-events: none;\n color: #6b7280;\n background-color: rgba(30, 57, 103, 0.1);\n font-size: 20px;\n height: 100%;\n padding: 0px 5px;\n}\n\n.yt-fixed-bundle-plus-sign {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-fixed-bundle-plus-sign span {\n display: flex;\n justify-content: center;\n width: 24px;\n height: 22px;\n align-items: center;\n padding-bottom: 2px;\n background-color: #f2f2f2;\n color: black;\n border-radius: 2px;\n font-size: 20px;\n font-weight: bold;\n}\n\n.yt-fixed-bundle-price-section {\n display: flex;\n flex-direction: column;\n margin-top: 20px;\n width: 1000px;\n}\n\n.yt-fixed-bundle-subtotal {\n font-size: 13px;\n font-weight: 400 !important;\n}\n\n.yt-fixed-bundle-subtotal-amount {\n font-weight: 600;\n font-size: 13px;\n}\n\n.yt-fixed-bundle-deal-price-container {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 12px;\n gap: 8px;\n margin-top: 3px;\n flex-direction: row;\n}\n\n.yt-fixed-bundle-deal-price {\n font-size: 16px;\n font-weight: 600;\n}\n\n.yt-fixed-bundle-extra-savings {\n font-size: 12px;\n color: #f6f8f7;\n padding: 4px 8px;\n background-color: #d3122a;\n border-radius: 2px;\n font-weight: 700 !important;\n}\n\n.yt-fixed-bundle-add-to-cart-button {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n background-color: #8b5cf6;\n border: none;\n padding: 8px 0px;\n font-size: 16px;\n font-weight: 500 !important;\n cursor: pointer;\n width: 100%;\n}\n\n.yt-fixed-bundle-add-to-cart-button:disabled,\n.yt-fixed-bundle-add-to-cart-button[disabled] {\n color: #7d7d7d;\n cursor: default;\n}\n\n.yt-fixed-bundle-product-card.horizontal {\n max-width: 100%;\n flex-direction: row;\n}\n\n.yt-fixed-bundle-product-card.horizontal:hover {\n transform: none;\n}\n\n.yt-fixed-bundle-product-list.horizontal {\n width: 100%;\n flex-direction: row;\n justify-content: center;\n align-items: stretch;\n flex-wrap: wrap;\n gap: 15px;\n}\n\n.yt-product-main.horizontal {\n width: 100%;\n}\n\n.yt-fixed-bundle-product-image-container.horizontal {\n height: 110px;\n margin-bottom: 0px;\n position: unset;\n width: 30%;\n}\n\n.yt-fixed-bundle-product-image.horizontal {\n height: 110px;\n aspect-ratio: 1;\n object-fit: cover;\n user-select: none;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-desktop.horizontal {\n position: absolute;\n display: none;\n width: 100%;\n bottom: 6px;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-mobile.horizontal {\n width: 98%;\n position: relative;\n display: flex;\n}\n\n.yt-fixed-bundle-checkbox-container-desktop.horizontal {\n position: absolute;\n height: 100%;\n left: -8px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-fixed-bundle-product-details.horizontal {\n padding-left: 0px;\n}\n\n.yt-fixed-bundle-product-price.horizontal {\n margin-bottom: 0px;\n}\n\n@media (min-width: 100px) {\n @container (width > 100px) {\n .yt-fixed-bundle-fixed-bundle {\n padding: 40px;\n }\n .yt-fixed-bundle-variant-select-wrapper-desktop {\n position: absolute;\n display: flex;\n width: 100%;\n bottom: 6px;\n }\n .yt-fixed-bundle-variant-select-wrapper-mobile {\n display: none;\n width: 100%;\n }\n .yt-fixed-bundle-checkbox-label {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid #000;\n background: white;\n cursor: pointer;\n color: white !important;\n }\n .yt-fixed-bundle-checkbox:checked + .yt-fixed-bundle-checkbox-label {\n border-color: #000;\n color: white !important;\n border: 0px;\n font-size: 16px;\n }\n .yt-fixed-bundle-variant-select {\n margin: 0px 4px;\n }\n .yt-fixed-bundle-select-icon {\n right: 4px;\n }\n .yt-fixed-bundle-bundle-title {\n font-size: 32px;\n }\n .yt-fixed-bundle-bundle-subtitle {\n font-size: 20px;\n }\n .yt-fixed-bundle-bundle-content {\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-start;\n }\n .yt-fixed-bundle-product-list {\n width: 100%;\n flex-direction: row;\n justify-content: center;\n align-items: stretch;\n flex-wrap: wrap;\n gap: 15px;\n }\n .yt-fixed-bundle-product-card {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n text-align: center;\n }\n .yt-fixed-bundle-product-image-container {\n width: 100%;\n height: 100%;\n margin-right: 0;\n margin-bottom: 12px;\n justify-content: center;\n position: relative;\n }\n .yt-fixed-bundle-product-details {\n width: 100%;\n align-self: center;\n display: flex;\n flex-direction: column;\n gap: 6px;\n text-align: left;\n }\n .yt-fixed-bundle-product-image {\n height: 230px;\n width: 100%;\n aspect-ratio: 1;\n align-self: center;\n }\n .yt-fixed-bundle-plus-sign {\n align-self: center;\n margin-left: 0;\n }\n .yt-fixed-bundle-price-section {\n width: 100%;\n margin-top: 32px;\n align-items: center;\n justify-content: center;\n text-align: center;\n }\n .yt-fixed-bundle-extra-savings {\n font-size: 10px;\n }\n .yt-fixed-bundle-subtotal {\n font-size: 15px;\n }\n .yt-fixed-bundle-subtotal-amount {\n font-size: 15px;\n }\n .yt-fixed-bundle-checkbox-container-desktop {\n position: absolute;\n top: 8px;\n left: 10px;\n height: auto;\n display: flex;\n align-items: center;\n }\n .yt-fixed-bundle-deal-price {\n font-size: 24px;\n }\n .yt-fixed-bundle-extra-savings {\n font-size: 13px;\n padding: 4px 8px;\n }\n .yt-fixed-bundle-add-to-cart-button {\n font-size: 20px;\n padding: 10px 0px;\n width: 100%;\n }\n .yt-product-main {\n width: 29%;\n }\n .yt-fixed-bundle-product-card:hover {\n transform: translateY(-5px);\n box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1411764706);\n }\n }\n}\n.yt-product-main {\n display: flex;\n position: relative;\n}\n\n/* Container query */\n@container (max-width: 100px) {\n .yt-fixed-bundle-variant-select-wrapper-desktop {\n position: absolute;\n display: none;\n width: 100%;\n bottom: 6px;\n }\n .yt-product-main {\n width: 100%;\n }\n .yt-fixed-bundle-variant-select-wrapper-mobile {\n width: 98%;\n position: relative;\n display: flex;\n bottom: 6px;\n }\n .yt-fixed-bundle-product-image {\n height: 110px;\n aspect-ratio: 1;\n object-fit: cover;\n }\n .yt-fixed-bundle-variant-select-wrapper {\n position: relative;\n width: 100%;\n }\n .yt-fixed-bundle-checkbox-container-desktop {\n position: absolute;\n height: 100%;\n left: -8px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .yt-fixed-bundle-product-image-container {\n margin-right: 8px;\n height: 110px;\n margin-bottom: 0px;\n position: unset;\n }\n .yt-fixed-bundle-product-card {\n max-width: 100%;\n flex-direction: row;\n }\n .yt-fixed-bundle-price-section {\n width: 100%;\n }\n}\n.yt-product-card-transition {\n opacity: 0;\n transform: translateY(20px);\n transition: transform 0.6s ease, box-shadow 0.6s ease;\n}\n\n.yt-product-card-transition-up {\n opacity: 0;\n transform: translateY(-20px);\n transition: opacity 0.6s ease, transform 0.6s ease;\n}\n\n.yt-product-card-transition-active {\n opacity: 1;\n transform: translateY(0);\n}\n\n.yt-description-content img,\n.yt-collection-bundle-modal-description img,\n.yt-collection-bundle-modal-description iframe {\n max-width: 100%;\n height: auto;\n display: block;\n margin: 0 auto 15px;\n border-radius: 7px;\n}\n\n.yt-description-content,\n.yt-collection-bundle-modal-description {\n text-align: left;\n overflow-wrap: break-word;\n}');const _u=x.div`
2872
+ `,Iu=n(({removeCartItem:e,addCartItem:n,getProductDetailsByVariantId:r,themeColor:a,cartComponentsCornerRadius:s,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:u,freebieClaimAddToCart:m,productClaimCtaButtonText:f,backgroundSubdued:g,primaryTextColor:h},x)=>{const[y,b]=pn(kn),v=sn(un),w=o(null),[C,k]=c(null),[E,S]=c(!1),[T,$]=c({}),[B,z]=c(y?.variantId),[I,D]=c(y?.quantity||1),[N,_]=c(!1),O=Fa();l(()=>{y?.open?setTimeout(()=>{_(!0)},10):_(!1)},[y?.open]);l(()=>{(async()=>{if(!C&&r&&y?.variantId&&y?.handle){const e=await r(y.handle,y.variantId);if(e&&e.variants&&e.options){let t;const n=y.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(y.variantId))||e.variants.find(e=>e.available&&n.includes(String(e.id))):e.variants.find(e=>e.available&&String(e.id)===String(y.variantId)),t){z(String(t.id));const n={};e.options.forEach((e,r)=>{n[e.name]=t[`option${r+1}`]}),$(n)}else z(void 0),$({})}k(e)}})()},[C,r,y]);const P=(e,t)=>{const n={...T,[e]:t};$(n);const r=C?.variants?.find(e=>C.options.every((t,r)=>e[`option${r+1}`]===n[t.name]));if(r){const e=y?.allowedVariantIds;if(Array.isArray(e)&&e.length>0&&!e.includes(String(r.id)))return;r.available&&z(String(r.id))}},A=C?.variants?.find(e=>String(e.id)===String(B)),F=Dn(v,v?.currency),M=i(()=>{const e={};if(!C)return e;const t=Array.isArray(y?.allowedVariantIds)&&y.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=T[e.name];return!o||r[`option${t+1}`]===o})&&(!!(!t||Array.isArray(y.allowedVariantIds)&&y.allowedVariantIds.includes(String(r.id)))&&!!r.available)}).some(e=>!!(!t||Array.isArray(y.allowedVariantIds)&&y.allowedVariantIds.includes(String(e.id)))&&e.available))}),e},[C,T,y]);return C?t.createElement(t.Fragment,null,t.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:2147483643,display:y?.open?"flex":"none",justifyContent:"center",alignItems:"center",opacity:N?1:0,transition:"opacity 0.3s ease"},onClick:()=>{_(!1),setTimeout(()=>{b({open:!1,variantId:void 0,handle:void 0,quantity:void 0})},300)}}),t.createElement(cu,{ref:x,className:"yt-variant-selection-popup"},t.createElement(du,{ref:w,style:{backgroundColor:p||"white",opacity:N?1:0,transform:N?"translateY(0)":"translateY(20px)"},$themeColor:a,onClick:e=>e.stopPropagation()},y?.freebieSelection&&t.createElement(su,null,"Unlocked Freebie"),t.createElement(uu,null,t.createElement(mu,null,t.createElement(fu,null,t.createElement(gu,{src:A?.featured_image?.src??C?.featured_image,alt:A?.featured_image?.alt??C?.title})),t.createElement(hu,null,t.createElement(xu,{$themeColor:a,$primaryTextColor:h,href:`${C?.url}?variant=${A?.id}`},C?.title),t.createElement($u,null,t.createElement(yu,null,t.createElement(bu,{$primaryTextColor:h},F,zn(A?.price,v?.currency??"INR")),null!=A?.compare_at_price&&null!=A?.price&&A.compare_at_price>A.price&&t.createElement(vu,null,F,zn(A?.compare_at_price,v?.currency??"INR"))),!y?.freebieSelection&&t.createElement(Ia,{value:I,handleItemQuantityIncrement:async()=>{D(e=>e+1)},handleItemQuantityDecrement:async()=>{I>1&&D(e=>e-1)},cartComponentsCornerRadius:s,cartComponentsCornerType:d,backgroundSubdued:g})))),C?.options?.map(e=>{const n=O?.options?.find(t=>t.name.trim().toLowerCase()===e.name.trim().toLowerCase());return t.createElement(Cu,{key:e.name},t.createElement(Eu,null,t.createElement("span",null,"Select ",e.name),T[e.name]&&t.createElement(Su,null,T[e.name])),t.createElement(Tu,null,M[e.name]?.map(r=>{const o=T[e.name]===r,i=Aa(n,r);return"color"===n?.type&&i?.value?t.createElement(Bu,{key:r,$isSelected:o,$themeColor:a,onClick:()=>P(e.name,r),$colorValue:i.value}):"image"===n?.type&&i?.value?t.createElement(zu,{key:r,$isSelected:o,$themeColor:a,onClick:()=>P(e.name,r),$imageUrl:i.value}):t.createElement(ku,{$themeColor:a,key:r,$isSelected:o,backgroundColor:o?a:void 0,onClick:()=>P(e.name,r)},r)})))})),t.createElement(wu,{className:"yt-cart-variant-popup-ATC-button",$themeColor:a??"#C33",onClick:y?.productRec?async()=>{if(B&&n){S(!0);try{await n(B,I,"product-recommendation-variant-selector",!1,y.handle),b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,productRec:!1})}catch(e){console.error("Error adding item from product recommendation:",e)}S(!1)}}:async()=>{if(!B)return;const t=!!y?.lineItemKey,r=String(B)!==String(y?.variantId);if(!t||r){S(!0);try{const t=y?.freebieSelection;t&&u&&y?.lineItemKey?await u(y.lineItemKey):await e(y?.lineItemKey||y?.variantId,"variant-selector",!0),t&&m?await m(B,y.allowedVariantIds):n&&B&&await n(B,I,"variant-selector",!1,y.handle),b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})}catch(e){}S(!1)}else b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!B||E},E?t.createElement(ma,{color:"white",size:13}):y?.productRec?"ADD TO BAG":y?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):t.createElement(cu,{ref:x},t.createElement(du,{style:{backgroundColor:p||"white"}},t.createElement(pu,null,t.createElement(xa,{color:a||"#868E96"}))))});Iu.displayName="DesktopVariantPopup";const Du=n(({removeCartItem:e,addCartItem:n,getProductDetailsByVariantId:r,themeColor:a,cartComponentsCornerRadius:s,cartComponentsCornerType:d,backgroundColor:p,removeFreebieFromCart:u,freebieClaimAddToCart:m,productClaimCtaButtonText:f,backgroundSubdued:g,primaryTextColor:h},x)=>{const[y,b]=pn(kn),v=sn(un),[w,C]=c(null),[k,E]=c(!1),[S,T]=c({}),[$,B]=c(y?.variantId),[z,I]=c(y?.quantity||1),D=o(null),N=Fa(),[_,O]=c(!1);l(()=>{y?.open?setTimeout(()=>{O(!0)},10):O(!1)},[y?.open]);l(()=>{(async()=>{if(!w&&r&&y?.variantId&&y?.handle)try{const e=await r(y.handle,y.variantId);if(!e)return;if(!e.variants||!Array.isArray(e.variants))return;if(e&&e.variants&&e.options){let t;const n=y.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(y.variantId))||e.variants.find(e=>e.available&&n.includes(String(e.id))):e.variants.find(e=>e.available&&String(e.id)===String(y.variantId)),t){B(String(t.id));const n={};e.options.forEach((e,r)=>{n[e.name]=t[`option${r+1}`]}),T(n)}else B(void 0),T({})}C(e)}catch(e){}})()},[w,r,y]),l(()=>{},[p,e,n,r]);const P=(e,t)=>{const n={...S,[e]:t};T(n);const r=w?.variants?.find(e=>w.options.every((t,r)=>e[`option${r+1}`]===n[t.name]));if(r){const e=y?.allowedVariantIds;if(Array.isArray(e)&&e.length>0&&!e.includes(String(r.id)))return;r.available&&B(String(r.id))}},A=w?.variants?.find(e=>String(e.id)===String($)),F=Dn(v,v?.currency),M=i(()=>{const e={};if(!w)return e;const t=Array.isArray(y?.allowedVariantIds)&&y.allowedVariantIds.length>0;return w.options.forEach(n=>{e[n.name]=n.values.filter(e=>w.variants.filter(r=>{const o=w.options.indexOf(n);if(r[`option${o+1}`]!==e)return!1;return!!w.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(y.allowedVariantIds)&&y.allowedVariantIds.includes(String(r.id)))&&!!r.available)}).some(e=>!!(!t||Array.isArray(y.allowedVariantIds)&&y.allowedVariantIds.includes(String(e.id)))&&e.available))}),e},[w,S,y]);return w?t.createElement(t.Fragment,null,t.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:2147483643,display:y?.open?"flex":"none",justifyContent:"center",alignItems:"center",opacity:_?1:0,transition:"opacity 0.3s ease"},onClick:()=>{O(!1),setTimeout(()=>{b({open:!1,variantId:void 0,handle:void 0,quantity:void 0})},300)}}),t.createElement(cu,{ref:x,className:"yt-variant-selection-popup"},t.createElement(du,{ref:D,style:{backgroundColor:p||"white",opacity:_?1:0,transform:_?"translateY(0)":"translateY(20px)"},$themeColor:a,onClick:e=>e.stopPropagation()},y?.freebieSelection&&t.createElement(su,null,"Unlocked Freebie"),t.createElement(uu,null,t.createElement(mu,null,t.createElement(fu,null,t.createElement(gu,{src:A?.featured_image?.src??w?.featured_image,alt:A?.featured_image?.alt??w?.title})),t.createElement(hu,null,t.createElement(xu,{$themeColor:a,$primaryTextColor:h,href:`${w?.url}?variant=${A?.id}`},w?.title),t.createElement($u,null,t.createElement(yu,null,t.createElement(bu,{$primaryTextColor:h},F,zn(A?.price,v?.currency??"INR")),null!=A?.compare_at_price&&null!=A?.price&&A.compare_at_price>A.price&&t.createElement(vu,null,F,zn(A?.compare_at_price,v?.currency??"INR"))),!y?.freebieSelection&&t.createElement(Ia,{value:z,handleItemQuantityIncrement:async()=>{I(e=>e+1)},handleItemQuantityDecrement:async()=>{z>1&&I(e=>e-1)},cartComponentsCornerRadius:s,cartComponentsCornerType:d,backgroundSubdued:g})))),w?.options?.map(e=>{const n=N?.options?.find(t=>t.name.trim().toLowerCase()===e.name.trim().toLowerCase());return t.createElement(Cu,{key:e.name},t.createElement(Eu,null,t.createElement("span",null,"Select ",e.name,":"),S[e.name]&&t.createElement(Su,null,S[e.name])),t.createElement(Tu,null,M[e.name]?.map(r=>{const o=S[e.name]===r,i=Aa(n,r);return"color"===n?.type&&i?.value?t.createElement(Bu,{key:r,$isSelected:o,$themeColor:a,onClick:()=>P(e.name,r),$colorValue:i.value}):"image"===n?.type&&i?.value?t.createElement(zu,{key:r,$isSelected:o,$themeColor:a,onClick:()=>P(e.name,r),$imageUrl:i.value}):t.createElement(ku,{$themeColor:a,key:r,$isSelected:o,backgroundColor:o?a:void 0,onClick:()=>P(e.name,r)},r)})))})),t.createElement(wu,{className:"yt-cart-variant-popup-ATC-button",$themeColor:a??"#C33",onClick:y?.productRec?async()=>{if($&&n){E(!0);try{await n($,z,"product-recommendation-variant-selector",!1,y.handle),b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,productRec:!1})}catch(e){console.error("Error adding item from product recommendation:",e)}E(!1)}}:async()=>{if(!$)return;const t=!!y?.lineItemKey,r=String($)!==String(y?.variantId);if(!t||r){E(!0);try{const t=y?.freebieSelection;t&&u&&y?.lineItemKey?await u(y.lineItemKey):await e(y?.lineItemKey||y?.variantId,"variant-selector",!0),t&&m?await m($,y.allowedVariantIds):n&&$&&await n($,z,"variant-selector",!1,y.handle),b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})}catch(e){}E(!1)}else b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!$||k},k?t.createElement(ma,{color:"white",size:13}):y?.productRec?"ADD TO BAG":y?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):t.createElement(cu,{ref:x},t.createElement(du,{style:{backgroundColor:p||"white"}},t.createElement(pu,null,t.createElement(xa,{color:a||"#868E96"}))))}),Nu=({exploreCTAColor:e,checkoutFontSize:n,handleDecrement:r,handleIncrement:a,removeCartItem:i,addCartItem:s,cartTitle:d,emptyCartTitle:p,emptyCartDescription:u,emptyCartButtons:f,backgroundColor:g,backgroundSubdued:h,tertiaryColor:x,tertiaryTextColor:y,backdrop:b=!0,cartData:v,isUserSignedIn:w,showBundle:C,showCouponOptions:k,bundleProducts:E,discountAmountOff:S,loyaltyIcon:T,pointsToBeUsed:$,rewardMultiplier:B,redemptionMultiplier:z,removeDiscount:I,applyDiscount:D,discountApplied:N,rewardCoupons:_,userTotalPoints:O,checkoutFunction:P,joinNowFunction:A,guestLoyaltyPercentage:F,showToggleButton:M,isOpen:R,setIsOpen:L,isDev:j,switchWidthVariant:V,recProductsList:W,showMultiStepProgressBar:H,cartCheckpoints:q,redemptionRate:U,pointsRewardRate:G,showCartLevelAltPay:Y,guestRewardCoupon:Q,showGuestDiscountCoupon:Z,applyTemplateDiscount:X,exploreCtaRedirectLink:K,discountAmountApplied:J,minimumCartValue:ee,discountInCheckoutButton:te,isStickyCheckout:ne,showDiscountsListToGuestUsers:re,showApplyCouponsButtonToGuestUsers:oe,handleCheckpointCrossed:ae,customCartProgressBarCriteria:ie,checkoutButtonColor:le,ctaButtonBackgroundColor:ce,ctaButtonTextColor:se,primaryTextColor:de,productRecsCtaButtonText:pe,productRecsTitleText:ue,secondaryTextColor:me,showProductRecsOnDesktop:fe,showProductRecsOnMobile:ge,themeColor:he,themeTextColor:xe,companyName:ye,gstNumber:be,showGSTOption:ve,applyGSTToCart:we,showMOVForProgressTiers:Ce,freeProduct:ke,showLoyaltyCta:Ee,freeProductAdjustedCartTotal:Se,minimumOrderValueToAvailDiscount:Te,signinCTAButtonVisible:$e,cartSigninCTAMainText:Be,showNoteOption:ze,applyNoteToCart:Ie,note:De,inlineCartOfferInfoText:Ne,inlineCartOfferInfoRedirectLink:_e,cartOfferTermsAndConditionsText:Oe,showEditOptionOnProducts:Pe,getProductDetailsByVariantId:Ae,onSetLoading:Fe,showVariantSelectionDropdownInProductRecs:Me,originalCartSubtotal:Re,currentTier:Le,freebieProductsInCart:je,showFreebieClaim:Ve,addFreebieToCart:We,freebiesInCart:He,effectiveQuantityForProgressBar:qe,productPercentageOffMapping:Ue,productTagsMapping:Ge,removeFreebieFromCart:Ye,postalCodeList:Qe,enableGeoLocationDeliveryRestriction:Ze,applyPostalCodeAndDeliverySlotToCart:Xe,showDeleteOnFreebies:Ke,freebieCouponTemplates:Je,freebieFlowCheckpoints:et,freebieClaimData:tt,showStickyAddToCart:nt,stickyCartLineItem:rt,postalCodeBasedItemTrackingParameter:ot,enableSlotPicker:at,deliveryHeaderTitle:it,deliveryAvailableText:lt,deliveryNotAvailableText:ct,giftWrapSetupData:st,giftWrapProductDetail:dt,enableCustomCartOnCartPage:pt,isCartPage:ut,progressBarFreeProductIconType:mt,addToStickyCart:ft,productRecsCardLayout:gt,productRecsCardListVariant:ht,showCartTimer:xt,showFreebieMilestone:yt,freebieMilestoneData:bt,cartTimerInMinutes:vt,cartTimerCustomText:wt,imageAspectSelector:Ct,cartComponentsCornerType:kt,cartComponentsCornerRadius:Et,stickyCartCustomizationData:St,cartOffersCarousalData:Tt,stickyBarBuyNowFunction:$t,gstSectionCustomizationData:Bt,noteSectionTitle:zt,checkoutSectionMessage:It,checkoutSectionMessageRedirectLink:Dt,checkoutSectionMessageDisplay:Nt,showVariantSelectionDropdownInProductClaim:_t,loyaltyDiscount:Ot,brandTokenName:Pt,showDiscountOnMRP:At,prefixMessageText:Ft,suffixMessageText:Mt,successMessageText:Rt,toggleDecimal:Lt,cartOffersCarouselHeight:jt,disableCheckoutButton:Vt,showEmptyCartRecommendations:Wt,emptyProductRecsTitleText:Ht,checkoutButtonBottomSpacing:qt,showPoweredByBadge:Ut=!0,applyCouponCode:Gt,showApplyCoupon:Yt,enableConfetti:Qt,showCheckoutButtonPaymentIcons:Zt=!0,comboBundleData:Xt,comboBundleAddToCartFunction:Kt})=>{const Jt=dn(un),[en,tn]=pn(kn),[nn,rn]=pn(wl),on=()=>L(!R),[an,ln]=c(()=>{const e=window.ytComboBundle;return{comboBundleData:e?.bundle??null,comboBundleAddToCartFunction:e?.addToCart??null}});l(()=>{const e=e=>{const t=e.detail;ln({comboBundleData:t?.bundle??null,comboBundleAddToCartFunction:t?.addToCart??null})};return window.addEventListener("yt-combo-bundle-updated",e),()=>window.removeEventListener("yt-combo-bundle-updated",e)},[]);const cn=an.comboBundleData??Xt,sn=an.comboBundleAddToCartFunction??Kt,mn=o(0),fn=o(0),gn=o(0),hn=e=>{if(!e)return null;return`${e?.token??null}|${e?.item_count??null}|${e?.items?.length??null}|${e?.total_price??null}|${e?.items_subtotal_price??null}|${Array.isArray(e?.items)?e.items.map(e=>`${e?.key??e?.id??"?"}:${e?.quantity??"?"}`).sort().join(","):null}`},xn=(e,t)=>async(...n)=>{gn.current+=1;const r=gn.current;return fetch("http://127.0.0.1:7242/ingest/f4c699a3-34a2-44db-9967-e255352f8719",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:"debug-session",runId:"post-fix",hypothesisId:"G",location:"src/components/Cart/Cart.tsx:mutation",message:"Cart mutation invoked",data:{name:e,mutationId:r},timestamp:Date.now()})}).catch(()=>{}),t?await t(...n):void 0},yn=xn("removeCartItem",i),bn=xn("handleIncrement",a),vn=xn("handleDecrement",r),wn=xn("addCartItem",s);l(()=>{mn.current+=1;const e=mn.current;fetch("http://127.0.0.1:7242/ingest/f4c699a3-34a2-44db-9967-e255352f8719",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:"debug-session",runId:"pre-fix",hypothesisId:"F",location:"src/components/Cart/Cart.tsx:cartData-prop",message:"Cart received cartData prop",data:{seq:e,signature:hn(v),itemCount:v?.item_count,itemsLen:v?.items?.length,token:v?.token},timestamp:Date.now()})}).catch(()=>{})},[v]);const Cn=o(new Map),En=o(0),Sn=o(-1),Tn=o(0),$n=o(null);m(()=>{if(v){const e=mn.current,t=hn(v),n=Cn.current,r=t?n.get(t):void 0,o=t&&void 0!==r?r:t?En.current+=1:-1;t&&void 0===r&&n.set(t,o);const a=!!t&&n.has(t),i=gn.current===Tn.current,l=!!t&&t!==$n.current,c=!!t&&a&&l&&i;if(fetch("http://127.0.0.1:7242/ingest/f4c699a3-34a2-44db-9967-e255352f8719",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:"debug-session",runId:"post-fix",hypothesisId:"G",location:"src/components/Cart/Cart.tsx:stale-guard",message:c?"Dropping stale cartData prop snapshot (repeat/out-of-order)":"Accepting cartData prop snapshot",data:{nextSeq:e,signature:t,order:o,seenBefore:a,signatureDiffersFromLastAccepted:l,mutationUnchangedSinceLastAccept:i,lastAcceptedOrder:Sn.current,mutationCounter:gn.current,lastAcceptedMutationCounter:Tn.current,itemCount:v?.item_count,itemsLen:v?.items?.length},timestamp:Date.now()})}).catch(()=>{}),c)return;fetch("http://127.0.0.1:7242/ingest/f4c699a3-34a2-44db-9967-e255352f8719",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:"debug-session",runId:"pre-fix",hypothesisId:"F",location:"src/components/Cart/Cart.tsx:setCartData",message:"Cart writing cartDataState from prop",data:{nextSeq:e,lastAppliedSeq:fn.current,signature:t,itemCount:v?.item_count,itemsLen:v?.items?.length,token:v?.token},timestamp:Date.now()})}).catch(()=>{}),fn.current=e,Sn.current=o,Tn.current=gn.current,$n.current=t??null,Jt(v)}},[v]);const Bn=o(null);l(()=>{function e(e){Bn.current&&!Bn.current.contains(e.target)&&(tn({open:!1,variantId:void 0,quantity:void 0,handle:void 0}),rn({isOpen:!1}))}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);const[zn,In]=c(!1);return l(()=>{const e=()=>{In(window.innerWidth>=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),t.createElement(t.Fragment,null,t.createElement("div",{style:{position:pt&&ut?"relative":"absolute",width:"100%",display:pt&&ut?"flex":"block",alignItems:"center",justifyContent:"center"}},M&&!(pt&&ut)&&t.createElement("button",{style:{margin:"16px"},onClick:on},R?"Close Drawer":"Open Drawer"),R&&b&&!(pt&&ut)&&t.createElement("div",{onClick:on,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%"}},"‎"),t.createElement(Vp,{isCartPage:ut,enableCustomCartOnCartPage:pt,isOpen:R,setIsOpen:L,backgroundColor:g,backgroundSubdued:h??"#F5F5F5",tertiaryColor:x,tertiaryTextColor:y,exploreCTAColor:e,checkoutFontSize:n,cartTitle:d,handleDecrement:vn,handleIncrement:bn,removeCartItem:yn,addCartItem:wn,emptyCartTitle:p,emptyCartButtons:f,emptyCartDescription:u,showCouponOptions:k,showBundle:C,isUserSignedIn:w,bundleProducts:E,discountAmountOff:S,loyaltyIcon:T,pointsToBeUsed:$,rewardMultiplier:B,redemptionMultiplier:z,removeDiscount:I,applyDiscount:D,discountApplied:N,rewardCoupons:_,userTotalPoints:O,checkoutFunction:P,joinNowFunction:A,guestLoyaltyPercentage:F,isDev:j,switchWidthVariant:V,recProductsList:W,showMultiStepProgressBar:H,cartCheckpoints:q,redemptionRate:U,pointsRewardRate:G,showCartLevelAltPay:Y,guestRewardCoupon:Q,showGuestDiscountCoupon:Z,applyTemplateDiscount:X,exploreCtaRedirectLink:K,discountAmountApplied:J,minimumCartValue:ee,discountInCheckoutButton:te,isStickyCheckout:ne,showDiscountsListToGuestUsers:re,showApplyCouponsButtonToGuestUsers:oe,handleCheckpointCrossed:ae,customCartProgressBarCriteria:ie??"minimum_order_value",checkoutButtonColor:le,ctaButtonBackgroundColor:ce,ctaButtonTextColor:se,primaryTextColor:de,productRecsCtaButtonText:pe,productRecsTitleText:ue,secondaryTextColor:me,showProductRecsOnDesktop:fe,showProductRecsOnMobile:ge,themeColor:he,themeTextColor:xe,companyName:ye,gstNumber:be,showGSTOption:ve,applyGSTToCart:we,showMOVForProgressTiers:Ce,freeProduct:ke,showLoyaltyCta:Ee,freeProductAdjustedCartTotal:Se,minimumOrderValueToAvailDiscount:Te,signinCTAButtonVisible:$e,cartSigninCTAMainText:Be,applyNoteToCart:Ie,note:De,showNoteOption:ze,inlineCartOfferInfoText:Ne,inlineCartOfferInfoRedirectLink:_e,cartOfferTermsAndConditionsText:Oe,showEditOptionOnProducts:Pe,onSetLoading:Fe,showVariantSelectionDropdownInProductRecs:Me,originalCartSubtotal:Re,currentTier:Le,freebieProductsInCart:je,cartOffersCarousalData:Tt,showFreebieClaim:Ve,addFreebieToCart:We,freebiesInCart:He,effectiveQuantityForProgressBar:qe,productPercentageOffMapping:Ue,productTagsMapping:Ge,removeFreebieFromCart:Ye,postalCodeList:Qe,enableGeoLocationDeliveryRestriction:Ze,applyPostalCodeAndDeliverySlotToCart:Xe,showDeleteOnFreebies:Ke,freebieCouponTemplates:Je,freebieFlowCheckpoints:et,freebieClaimData:tt,postalCodeBasedItemTrackingParameter:ot,enableSlotPicker:at,deliveryHeaderTitle:it,deliveryAvailableText:lt,deliveryNotAvailableText:ct,giftWrapSetupData:st,giftWrapProductDetail:dt,progressBarFreeProductIconType:mt,productRecsCardLayout:gt,productRecsCardListVariant:ht,showCartTimer:xt,showFreebieMilestone:yt,freebieMilestoneData:bt,cartTimerCustomText:wt,cartTimerInMinutes:vt,imageAspectSelector:Ct,cartComponentsCornerType:kt,cartComponentsCornerRadius:Et,gstSectionCustomizationData:Bt,noteSectionTitle:zt,checkoutSectionMessage:It,checkoutSectionMessageRedirectLink:Dt,checkoutSectionMessageDisplay:Nt,showVariantSelectionDropdownInProductClaim:_t,loyaltyDiscount:Ot,getProductDetailsByVariantId:Ae,brandTokenName:Pt,showDiscountOnMRP:At??!0,prefixMessageText:Ft,suffixMessageText:Mt,successMessageText:Rt,toggleDecimal:Lt,cartOffersCarouselHeight:jt,disableCheckoutButton:Vt,showEmptyCartRecommendations:Wt,emptyProductRecsTitleText:Ht,checkoutButtonBottomSpacing:qt,showPoweredByBadge:Ut,applyCouponCode:Gt,showApplyCoupon:Yt,enableConfetti:Qt,showCheckoutButtonPaymentIcons:Zt}),nt&&rt&&s&&t.createElement(lu,{showStickyCart:nt,stickyCartCustomizationData:St,product:rt,addCartItem:s,onSetLoading:Fe,themeColor:he,themeTextColor:xe,cartData:v,isCartOpen:R,setIsCartOpen:L,ctaButtonBackgroundColor:ce,ctaButtonTextColor:se,addToStickyCart:ft,cartComponentsCornerRadius:Et,cartComponentsCornerType:kt,checkoutFunction:$t,backgroundColor:g,primaryTextColor:de,comboBundleData:cn,comboBundleAddToCartFunction:sn}),zn&&en.open&&t.createElement(Iu,{backgroundColor:g,ref:Bn,isDev:j,removeCartItem:i,addCartItem:s,getProductDetailsByVariantId:Ae,themeColor:he,cartComponentsCornerRadius:Et,cartComponentsCornerType:kt,removeFreebieFromCart:Ye,freebieClaimAddToCart:We,productClaimCtaButtonText:tt?.productClaimCtaButtonText,backgroundSubdued:h??"#F5F5F5",primaryTextColor:de}),!zn&&en.open&&t.createElement(Du,{ref:Bn,isDev:j,removeCartItem:i,addCartItem:s,getProductDetailsByVariantId:Ae,themeColor:he,cartComponentsCornerRadius:Et,cartComponentsCornerType:kt,backgroundColor:g,removeFreebieFromCart:Ye,freebieClaimAddToCart:We,productClaimCtaButtonText:tt?.productClaimCtaButtonText,backgroundSubdued:h??"#F5F5F5",primaryTextColor:de})))};q('@media (max-width: 108px) {\n .yt-fixed-bundle-price-section {\n width: 100% !important;\n }\n .yt-fixed-bundle-product-list {\n max-width: 100% !important;\n width: 100% !important;\n justify-content: center !important;\n }\n .price-text {\n text-align: center !important;\n }\n .bundle-builder-add-to-bundle-button {\n font-size: 12px !important;\n padding: 0px 8px !important;\n }\n .quantity .input-text.qty {\n width: 12px !important;\n height: 18px !important;\n }\n .quantity.buttons_added .minus,\n .quantity.buttons_added .plus {\n padding: 6px !important;\n height: 20px !important;\n }\n .bundle-builder-tracker-container {\n justify-content: center !important;\n }\n .bundle-builder-title .bundle-builder-subtitle {\n font-size: 30px !important;\n }\n .bundle-builder-title {\n font-size: 2rem !important;\n }\n .bundle-builder-tracker-item {\n width: 64px !important;\n height: 64px !important;\n }\n .bundle-builder-product-title {\n font-size: 14px !important;\n }\n}\n.hide-tracker-scrollbar {\n overflow-x: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n}\n\n.hide-tracker-scrollbar::-webkit-scrollbar {\n display: none;\n}\n\n.yt-fixed-bundle-border {\n border: 1px solid #c7c7c7;\n}\n\n.yt-fixed-bundle-border-minor-curved {\n border-radius: 8px;\n}\n\n.yt-fixed-bundle-border-minor-curved-image {\n border-radius: 6px;\n}\n\n.yt-fixed-bundle-border-major-curved {\n border-radius: 20px;\n}\n\n.yt-fixed-bundle-border-major-curved-image {\n border-radius: 18px;\n}\n\n@media (min-width: 1200px) {\n .bundle-builder-title .bundle-builder-subtitle {\n font-size: 30px !important;\n }\n}\n@media (max-width: 540px) {\n .bundle-builder-tracker-container {\n gap: 5px !important;\n margin-block: 0 !important;\n }\n .bundle-summary {\n display: flex;\n flex-direction: column !important;\n align-items: flex-start;\n gap: 2px !important;\n }\n .bundle-summary button {\n padding-top: 2px !important;\n padding-inline: 13px !important;\n font-size: 14px !important;\n padding-inline: 10px !important;\n padding: 0px;\n width: -webkit-fill-available;\n }\n .bundle-builder-tracker-progress {\n display: block !important;\n }\n .summary-info {\n width: 100% !important;\n min-width: 200px !important;\n display: flex;\n justify-content: space-between !important;\n flex-direction: row !important;\n flex-grow: 1 !important;\n font-size: 14px !important;\n }\n}\n@media (max-width: 540px) {\n .products-display {\n justify-content: space-between !important;\n column-gap: 5px !important;\n }\n .bundle-builder-product-container {\n width: 49% !important;\n }\n .bundle-builder-title {\n font-size: 1.5rem !important;\n margin-bottom: 8px !important;\n }\n .bundle-builder-subtitle {\n padding-top: 4px;\n font-size: 1rem !important;\n }\n}\n@media (max-width: 540px) {\n .bundle-summary.bundle-filled {\n display: flex !important;\n }\n}\n.yt-bundle-builder-product-price {\n font-weight: 600;\n color: black;\n margin-bottom: 2px;\n}\n\n/* Fixed bundle block */\n.yt-fixed-bundle-fixed-bundle {\n box-sizing: unset;\n max-width: 1000px;\n margin: 0 auto;\n container-type: inline-size;\n text-align: left;\n}\n\n.yt-fixed-bundle-bundle-header {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 10px 0px;\n gap: 8px;\n line-height: normal;\n}\n\n.yt-fixed-bundle-bundle-title {\n font-size: 24px;\n font-weight: 600;\n text-align: center;\n width: 100%;\n}\n\n.yt-fixed-bundle-bundle-subtitle {\n font-size: 16px;\n font-weight: 300;\n text-align: center;\n}\n\n.yt-fixed-bundle-bundle-content {\n display: flex;\n flex-direction: column;\n padding: 10px 0px;\n}\n\n.yt-fixed-bundle-product-list {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.yt-product-main {\n width: 100%;\n}\n\n.yt-fixed-bundle-product-card {\n display: flex;\n width: 90%;\n align-items: flex-start;\n padding: 0px;\n box-shadow: 2px 2px 11.8px 0px rgba(0, 0, 0, 0.1411764706);\n transition: transform 0.3s ease, box-shadow 0.3s ease;\n}\n\n.yt-fixed-bundle-product-image-container {\n margin-right: 8px;\n height: 110px;\n position: unset;\n}\n\n.yt-fixed-bundle-product-image {\n max-width: none;\n height: 110px;\n aspect-ratio: 1;\n object-fit: cover;\n}\n\n.yt-fixed-bundle-product-details {\n width: 100%;\n align-self: center;\n display: flex;\n flex-direction: column;\n gap: 6px;\n text-align: left;\n}\n\n.yt-fixed-bundle-product-title {\n font-size: 16px;\n font-weight: 700;\n display: block;\n line-height: 1.4;\n}\n\n.yt-fixed-bundle-product-price {\n font-size: 16px;\n display: block;\n margin-bottom: 6px;\n}\n\n.yt-fixed-bundle-original-price {\n text-decoration: line-through !important;\n color: #6b7280;\n margin-left: 4px;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-desktop {\n position: absolute;\n display: none;\n width: 100%;\n bottom: 6px;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-mobile {\n width: 98%;\n position: relative;\n display: flex;\n}\n\n.yt-fixed-bundle-checkbox-container-desktop {\n position: absolute;\n height: 100%;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-fixed-bundle-checkbox {\n display: none !important;\n}\n\n.yt-fixed-bundle-checkbox-label {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid #000;\n background: white;\n cursor: pointer;\n color: white !important;\n}\n\n.yt-fixed-bundle-checkbox:checked + .yt-fixed-bundle-checkbox-label {\n border-color: #000;\n color: white !important;\n border: 0px;\n font-size: 16px;\n}\n\n.yt-fixed-bundle-variant-select {\n appearance: none;\n -webkit-appearance: none;\n width: 100%;\n padding: 4px 20px;\n background-color: #ffffff;\n font-size: 15px;\n background-image: none;\n color: #2d2d2d;\n cursor: pointer;\n transition: border-color 0.3s ease, box-shadow 0.3s ease;\n}\n\n.yt-fixed-bundle-variant-select:focus {\n border-color: #cac6c6;\n box-shadow: 0 0 8px 0 rgba(56, 55, 57, 0.3);\n outline: none;\n}\n\n.yt-fixed-bundle-select-dot {\n position: absolute;\n top: 50%;\n left: 10px;\n transform: translateY(-50%);\n font-weight: 700;\n color: #4d4d4d;\n width: 8px; /* Adjust size */\n font-size: 8px;\n border-radius: 50%;\n pointer-events: none;\n}\n\n.yt-fixed-bundle-select-dot::after {\n content: "";\n width: 7px;\n height: 7px;\n border-radius: 50%;\n background-color: #1b1b1b;\n}\n\n.yt-fixed-bundle-select-icon {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n pointer-events: none;\n color: #6b7280;\n background-color: rgba(30, 57, 103, 0.1);\n font-size: 20px;\n height: 100%;\n padding: 0px 5px;\n}\n\n.yt-fixed-bundle-plus-sign {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-fixed-bundle-plus-sign span {\n display: flex;\n justify-content: center;\n width: 24px;\n height: 22px;\n align-items: center;\n padding-bottom: 2px;\n background-color: #f2f2f2;\n color: black;\n border-radius: 2px;\n font-size: 20px;\n font-weight: bold;\n}\n\n.yt-fixed-bundle-price-section {\n display: flex;\n flex-direction: column;\n margin-top: 20px;\n width: 1000px;\n}\n\n.yt-fixed-bundle-subtotal {\n font-size: 13px;\n font-weight: 400 !important;\n}\n\n.yt-fixed-bundle-subtotal-amount {\n font-weight: 600;\n font-size: 13px;\n}\n\n.yt-fixed-bundle-deal-price-container {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 12px;\n gap: 8px;\n margin-top: 3px;\n flex-direction: row;\n}\n\n.yt-fixed-bundle-deal-price {\n font-size: 16px;\n font-weight: 600;\n}\n\n.yt-fixed-bundle-extra-savings {\n font-size: 12px;\n color: #f6f8f7;\n padding: 4px 8px;\n background-color: #d3122a;\n border-radius: 2px;\n font-weight: 700 !important;\n}\n\n.yt-fixed-bundle-add-to-cart-button {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n background-color: #8b5cf6;\n border: none;\n padding: 8px 0px;\n font-size: 16px;\n font-weight: 500 !important;\n cursor: pointer;\n width: 100%;\n}\n\n.yt-fixed-bundle-add-to-cart-button:disabled,\n.yt-fixed-bundle-add-to-cart-button[disabled] {\n color: #7d7d7d;\n cursor: default;\n}\n\n.yt-fixed-bundle-product-card.horizontal {\n max-width: 100%;\n flex-direction: row;\n}\n\n.yt-fixed-bundle-product-card.horizontal:hover {\n transform: none;\n}\n\n.yt-fixed-bundle-product-list.horizontal {\n width: 100%;\n flex-direction: row;\n justify-content: center;\n align-items: stretch;\n flex-wrap: wrap;\n gap: 15px;\n}\n\n.yt-product-main.horizontal {\n width: 100%;\n}\n\n.yt-fixed-bundle-product-image-container.horizontal {\n height: 110px;\n margin-bottom: 0px;\n position: unset;\n width: 30%;\n}\n\n.yt-fixed-bundle-product-image.horizontal {\n height: 110px;\n aspect-ratio: 1;\n object-fit: cover;\n user-select: none;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-desktop.horizontal {\n position: absolute;\n display: none;\n width: 100%;\n bottom: 6px;\n}\n\n.yt-fixed-bundle-variant-select-wrapper-mobile.horizontal {\n width: 98%;\n position: relative;\n display: flex;\n}\n\n.yt-fixed-bundle-checkbox-container-desktop.horizontal {\n position: absolute;\n height: 100%;\n left: -8px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-fixed-bundle-product-details.horizontal {\n padding-left: 0px;\n}\n\n.yt-fixed-bundle-product-price.horizontal {\n margin-bottom: 0px;\n}\n\n@media (min-width: 100px) {\n @container (width > 100px) {\n .yt-fixed-bundle-fixed-bundle {\n padding: 40px;\n }\n .yt-fixed-bundle-variant-select-wrapper-desktop {\n position: absolute;\n display: flex;\n width: 100%;\n bottom: 6px;\n }\n .yt-fixed-bundle-variant-select-wrapper-mobile {\n display: none;\n width: 100%;\n }\n .yt-fixed-bundle-checkbox-label {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid #000;\n background: white;\n cursor: pointer;\n color: white !important;\n }\n .yt-fixed-bundle-checkbox:checked + .yt-fixed-bundle-checkbox-label {\n border-color: #000;\n color: white !important;\n border: 0px;\n font-size: 16px;\n }\n .yt-fixed-bundle-variant-select {\n margin: 0px 4px;\n }\n .yt-fixed-bundle-select-icon {\n right: 4px;\n }\n .yt-fixed-bundle-bundle-title {\n font-size: 32px;\n }\n .yt-fixed-bundle-bundle-subtitle {\n font-size: 20px;\n }\n .yt-fixed-bundle-bundle-content {\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-start;\n }\n .yt-fixed-bundle-product-list {\n width: 100%;\n flex-direction: row;\n justify-content: center;\n align-items: stretch;\n flex-wrap: wrap;\n gap: 15px;\n }\n .yt-fixed-bundle-product-card {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n text-align: center;\n }\n .yt-fixed-bundle-product-image-container {\n width: 100%;\n height: 100%;\n margin-right: 0;\n margin-bottom: 12px;\n justify-content: center;\n position: relative;\n }\n .yt-fixed-bundle-product-details {\n width: 100%;\n align-self: center;\n display: flex;\n flex-direction: column;\n gap: 6px;\n text-align: left;\n }\n .yt-fixed-bundle-product-image {\n height: 230px;\n width: 100%;\n aspect-ratio: 1;\n align-self: center;\n }\n .yt-fixed-bundle-plus-sign {\n align-self: center;\n margin-left: 0;\n }\n .yt-fixed-bundle-price-section {\n width: 100%;\n margin-top: 32px;\n align-items: center;\n justify-content: center;\n text-align: center;\n }\n .yt-fixed-bundle-extra-savings {\n font-size: 10px;\n }\n .yt-fixed-bundle-subtotal {\n font-size: 15px;\n }\n .yt-fixed-bundle-subtotal-amount {\n font-size: 15px;\n }\n .yt-fixed-bundle-checkbox-container-desktop {\n position: absolute;\n top: 8px;\n left: 10px;\n height: auto;\n display: flex;\n align-items: center;\n }\n .yt-fixed-bundle-deal-price {\n font-size: 24px;\n }\n .yt-fixed-bundle-extra-savings {\n font-size: 13px;\n padding: 4px 8px;\n }\n .yt-fixed-bundle-add-to-cart-button {\n font-size: 20px;\n padding: 10px 0px;\n width: 100%;\n }\n .yt-product-main {\n width: 29%;\n }\n .yt-fixed-bundle-product-card:hover {\n transform: translateY(-5px);\n box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1411764706);\n }\n }\n}\n.yt-product-main {\n display: flex;\n position: relative;\n}\n\n/* Container query */\n@container (max-width: 100px) {\n .yt-fixed-bundle-variant-select-wrapper-desktop {\n position: absolute;\n display: none;\n width: 100%;\n bottom: 6px;\n }\n .yt-product-main {\n width: 100%;\n }\n .yt-fixed-bundle-variant-select-wrapper-mobile {\n width: 98%;\n position: relative;\n display: flex;\n bottom: 6px;\n }\n .yt-fixed-bundle-product-image {\n height: 110px;\n aspect-ratio: 1;\n object-fit: cover;\n }\n .yt-fixed-bundle-variant-select-wrapper {\n position: relative;\n width: 100%;\n }\n .yt-fixed-bundle-checkbox-container-desktop {\n position: absolute;\n height: 100%;\n left: -8px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .yt-fixed-bundle-product-image-container {\n margin-right: 8px;\n height: 110px;\n margin-bottom: 0px;\n position: unset;\n }\n .yt-fixed-bundle-product-card {\n max-width: 100%;\n flex-direction: row;\n }\n .yt-fixed-bundle-price-section {\n width: 100%;\n }\n}\n.yt-product-card-transition {\n opacity: 0;\n transform: translateY(20px);\n transition: transform 0.6s ease, box-shadow 0.6s ease;\n}\n\n.yt-product-card-transition-up {\n opacity: 0;\n transform: translateY(-20px);\n transition: opacity 0.6s ease, transform 0.6s ease;\n}\n\n.yt-product-card-transition-active {\n opacity: 1;\n transform: translateY(0);\n}\n\n.yt-description-content img,\n.yt-collection-bundle-modal-description img,\n.yt-collection-bundle-modal-description iframe {\n max-width: 100%;\n height: auto;\n display: block;\n margin: 0 auto 15px;\n border-radius: 7px;\n}\n\n.yt-description-content,\n.yt-collection-bundle-modal-description {\n text-align: left;\n overflow-wrap: break-word;\n}');const _u=x.div`
2873
2873
  display: flex;
2874
2874
  flex-direction: row;
2875
2875
  height: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yt-uikit",
3
- "version": "0.8.12-fix-flash.5",
3
+ "version": "0.8.12-fix-flash.6",
4
4
  "description": "YourToken UI Kit",
5
5
  "scripts": {
6
6
  "rollup": "tsc && rollup -c",