yt-uikit 0.7.344-shadowdomBundle.2 → 0.7.344-shadowdomBundle.4
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/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +1 -0
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +2 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +1 -0
- package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +2 -0
- package/package.json +1 -1
package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { ProductDetails, Customizations } from "../Bundle";
|
|
|
3
3
|
import "./bundleProductDetailsModal.style.css";
|
|
4
4
|
import "../bundle.scss";
|
|
5
5
|
import "../BundleBuilder/bundleBuilder.style.css";
|
|
6
|
+
type ShadowRoot = globalThis.ShadowRoot;
|
|
6
7
|
type BundleProductDetailsModalProps = {
|
|
7
8
|
handleAddToBundle: (variantId: string, product: ProductDetails, quantity: number) => void;
|
|
8
9
|
selectedProducts: {
|
|
@@ -24,6 +25,7 @@ type BundleProductDetailsModalProps = {
|
|
|
24
25
|
averageRating: number;
|
|
25
26
|
ratingCount: number;
|
|
26
27
|
};
|
|
28
|
+
shadowRoot?: ShadowRoot | null;
|
|
27
29
|
};
|
|
28
30
|
declare const BundleProductDetailsModal: React.ForwardRefExoticComponent<BundleProductDetailsModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
31
|
export default BundleProductDetailsModal;
|
package/dist/esm/index.js
CHANGED
|
@@ -2861,7 +2861,7 @@ import*as e from"react";import t,{forwardRef as n,useImperativeHandle as r,useRe
|
|
|
2861
2861
|
&:hover {
|
|
2862
2862
|
border-color: ${({$themeColor:e})=>e||"#000"};
|
|
2863
2863
|
}
|
|
2864
|
-
`,pu=n(({removeCartItem:e,addCartItem:n,getProductDetailsByVariantId:r,themeColor:a,cartComponentsCornerRadius:d,cartComponentsCornerType:s,backgroundColor:p,removeFreebieFromCart:u,freebieClaimAddToCart:m,productClaimCtaButtonText:f,backgroundSubdued:g,primaryTextColor:x},h)=>{const[y,b]=rn(xn),v=tn(on),w=o(null),[C,E]=c(null),[k,T]=c(!1),[S,B]=c({}),[$,z]=c(y?.variantId),[D,I]=c(y?.quantity||1),[P,N]=c(!1),[_,O]=c(null);l(()=>{const e=localStorage.getItem("yt_variant_options");if(e)try{const t=JSON.parse(e);Array.isArray(t)&&O({options:t})}catch(e){console.error("Failed to parse yt_variant_options from localStorage",e)}},[]),l(()=>{y?.open?setTimeout(()=>{N(!0)},10):N(!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;if(t=y.freebieSelection&&Array.isArray(n)&&n.length>0?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}`]}),B(n)}else z(void 0),B({})}E(e)}})()},[C,r,y]);const M=(e,t)=>{const n={...S,[e]:t};B(n);const r=C?.variants?.find(e=>C.options.every((t,r)=>e[`option${r+1}`]===n[t.name]));r&&(y?.freebieSelection&&Array.isArray(y.allowedVariantIds)&&y.allowedVariantIds.length>0?y.allowedVariantIds.includes(String(r.id))&&z(String(r.id)):z(String(r.id)))},F=C?.variants?.find(e=>String(e.id)===String($)),A=kn(v,v?.currency),R=i(()=>{const e={};if(!C)return e;const t=y?.freebieSelection&&Array.isArray(y?.allowedVariantIds)&&y.allowedVariantIds.length>0,n=y.allowedVariantIds;return C.options.forEach(r=>{e[r.name]=r.values.filter(e=>C.variants.filter(t=>{const n=C.options.indexOf(r);if(t[`option${n+1}`]!==e)return!1;return!!C.options.every((e,n)=>{if(e.name===r.name)return!0;const o=S[e.name];return!o||t[`option${n+1}`]===o})&&!!t.available}).some(e=>!t||n?.includes(String(e.id))))}),e},[C,S,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:P?1:0,transition:"opacity 0.3s ease"},onClick:()=>{N(!1),setTimeout(()=>{b({open:!1,variantId:void 0,handle:void 0,quantity:void 0})},300)}}),t.createElement(Hp,{ref:h,className:"yt-variant-selection-popup"},t.createElement(Up,{ref:w,style:{backgroundColor:p||"white",opacity:P?1:0,transform:P?"translateY(0)":"translateY(20px)"},$themeColor:a,onClick:e=>e.stopPropagation()},y?.freebieSelection&&t.createElement(Wp,null,"Unlocked Freebie"),t.createElement(Qp,null,t.createElement(qp,null,t.createElement(Yp,null,t.createElement(Zp,{src:F?.featured_image?.src??C?.featured_image,alt:F?.featured_image?.alt??C?.title})),t.createElement(Kp,null,t.createElement(Xp,{$themeColor:a,$primaryTextColor:x,href:`${C?.url}?variant=${F?.id}`},C?.title),t.createElement(cu,null,t.createElement(Jp,null,t.createElement(eu,{$primaryTextColor:x},A,Cn(F?.price,v?.currency??"INR")),null!=F?.compare_at_price&&null!=F?.price&&F.compare_at_price>F.price&&t.createElement(tu,null,A,Cn(F?.compare_at_price,v?.currency??"INR"))),!y?.freebieSelection&&t.createElement(ba,{value:D,handleItemQuantityIncrement:async()=>{I(e=>e+1)},handleItemQuantityDecrement:async()=>{D>1&&I(e=>e-1)},cartComponentsCornerRadius:d,cartComponentsCornerType:s,backgroundSubdued:g})))),C?.options?.map(e=>{const n=_?.options?.find(t=>t.name.trim().toLowerCase()===e.name.trim().toLowerCase());return t.createElement(ru,{key:e.name},t.createElement(au,null,t.createElement("span",null,"Select ",e.name),S[e.name]&&t.createElement(iu,null,S[e.name])),t.createElement(lu,null,R[e.name]?.map(r=>{const o=S[e.name]===r,i=n?.values?.find(e=>e.name.trim().toLowerCase()===r.trim().toLowerCase());return"color"===n?.type&&i?.value?t.createElement(du,{key:r,$isSelected:o,$themeColor:a,onClick:()=>M(e.name,r),$colorValue:i.value}):"image"===n?.type&&i?.value?t.createElement(su,{key:r,$isSelected:o,$themeColor:a,onClick:()=>M(e.name,r),$imageUrl:i.value}):t.createElement(ou,{$themeColor:a,key:r,$isSelected:o,backgroundColor:o?a:void 0,onClick:()=>M(e.name,r)},r)})))})),t.createElement(nu,{$themeColor:a??"#C33",onClick:y?.productRec?async()=>{if($&&n){T(!0);try{await n($,D,"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)}T(!1)}}:async()=>{if(!$)return;const t=!!y?.lineItemKey,r=String($)!==String(y?.variantId);if(!t||r){T(!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($,D,"variant-selector",!1,y.handle),b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})}catch(e){}T(!1)}else b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!$||k},k?t.createElement(na,{color:"white",size:13}):y?.productRec?"ADD TO BAG":y?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):t.createElement(Hp,{ref:h},t.createElement(Up,{style:{backgroundColor:p||"white"}},t.createElement(Gp,null,t.createElement(ia,{color:a||"#868E96"}))))});pu.displayName="DesktopVariantPopup";const uu=n(({removeCartItem:e,addCartItem:n,getProductDetailsByVariantId:r,themeColor:a,cartComponentsCornerRadius:d,cartComponentsCornerType:s,backgroundColor:p,removeFreebieFromCart:u,freebieClaimAddToCart:m,productClaimCtaButtonText:f,backgroundSubdued:g,primaryTextColor:x},h)=>{const[y,b]=rn(xn),v=tn(on),[w,C]=c(null),[E,k]=c(!1),[T,S]=c({}),[B,$]=c(y?.variantId),[z,D]=c(y?.quantity||1),I=o(null),[P,N]=c(null),[_,O]=c(!1);l(()=>{const e=localStorage.getItem("yt_variant_options");if(e)try{const t=JSON.parse(e);Array.isArray(t)&&N({options:t})}catch(e){console.error("Failed to parse yt_variant_options from localStorage",e)}},[]),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;if(t=y.freebieSelection&&Array.isArray(n)&&n.length>0?e.variants.find(e=>e.available&&n.includes(String(e.id))):e.variants.find(e=>e.available&&String(e.id)===String(y.variantId)),t){$(String(t.id));const n={};e.options.forEach((e,r)=>{n[e.name]=t[`option${r+1}`]}),S(n)}else $(void 0),S({})}C(e)}catch(e){}})()},[w,r,y]),l(()=>{},[p,e,n,r]);const M=(e,t)=>{const n={...T,[e]:t};S(n);const r=w?.variants?.find(e=>w.options.every((t,r)=>e[`option${r+1}`]===n[t.name]));r&&$(String(r.id))},F=w?.variants?.find(e=>String(e.id)===String(B)),A=kn(v,v?.currency),R=i(()=>{const e={};if(!w)return e;const t=y?.freebieSelection&&Array.isArray(y?.allowedVariantIds)&&y.allowedVariantIds.length>0,n=y.allowedVariantIds;return w.options.forEach(r=>{e[r.name]=r.values.filter(e=>w.variants.filter(t=>{const n=w.options.indexOf(r);if(t[`option${n+1}`]!==e)return!1;return!!w.options.every((e,n)=>{if(e.name===r.name)return!0;const o=T[e.name];return!o||t[`option${n+1}`]===o})&&!!t.available}).some(e=>!t||n?.includes(String(e.id))))}),e},[w,T,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(Hp,{ref:h,className:"yt-variant-selection-popup"},t.createElement(Up,{ref:I,style:{backgroundColor:p||"white",opacity:_?1:0,transform:_?"translateY(0)":"translateY(20px)"},$themeColor:a,onClick:e=>e.stopPropagation()},y?.freebieSelection&&t.createElement(Wp,null,"Unlocked Freebie"),t.createElement(Qp,null,t.createElement(qp,null,t.createElement(Yp,null,t.createElement(Zp,{src:F?.featured_image?.src??w?.featured_image,alt:F?.featured_image?.alt??w?.title})),t.createElement(Kp,null,t.createElement(Xp,{$themeColor:a,$primaryTextColor:x,href:`${w?.url}?variant=${F?.id}`},w?.title),t.createElement(cu,null,t.createElement(Jp,null,t.createElement(eu,{$primaryTextColor:x},A,Cn(F?.price,v?.currency??"INR")),null!=F?.compare_at_price&&null!=F?.price&&F.compare_at_price>F.price&&t.createElement(tu,null,A,Cn(F?.compare_at_price,v?.currency??"INR"))),!y?.freebieSelection&&t.createElement(ba,{value:z,handleItemQuantityIncrement:async()=>{D(e=>e+1)},handleItemQuantityDecrement:async()=>{z>1&&D(e=>e-1)},cartComponentsCornerRadius:d,cartComponentsCornerType:s,backgroundSubdued:g})))),w?.options?.map(e=>{const n=P?.options?.find(t=>t.name.trim().toLowerCase()===e.name.trim().toLowerCase());return t.createElement(ru,{key:e.name},t.createElement(au,null,t.createElement("span",null,"Select ",e.name,":"),T[e.name]&&t.createElement(iu,null,T[e.name])),t.createElement(lu,null,R[e.name]?.map(r=>{const o=T[e.name]===r,i=n?.values?.find(e=>e.name.trim().toLowerCase()===r.trim().toLowerCase());return"color"===n?.type&&i?.value?t.createElement(du,{key:r,$isSelected:o,$themeColor:a,onClick:()=>M(e.name,r),$colorValue:i.value}):"image"===n?.type&&i?.value?t.createElement(su,{key:r,$isSelected:o,$themeColor:a,onClick:()=>M(e.name,r),$imageUrl:i.value}):t.createElement(ou,{$themeColor:a,key:r,$isSelected:o,backgroundColor:o?a:void 0,onClick:()=>M(e.name,r)},r)})))})),t.createElement(nu,{$themeColor:a??"#C33",onClick:y?.productRec?async()=>{if(B&&n){k(!0);try{await n(B,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)}k(!1)}}:async()=>{if(!B)return;const t=!!y?.lineItemKey,r=String(B)!==String(y?.variantId);if(!t||r){k(!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,z,"variant-selector",!1,y.handle),b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})}catch(e){}k(!1)}else b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!B||E},E?t.createElement(na,{color:"white",size:13}):y?.productRec?"ADD TO BAG":y?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):t.createElement(Hp,{ref:h},t.createElement(Up,{style:{backgroundColor:p||"white"}},t.createElement(Gp,null,t.createElement(ia,{color:a||"#868E96"}))))}),mu=({exploreCTAColor:e,checkoutFontSize:n,handleDecrement:r,handleIncrement:a,removeCartItem:i,addCartItem:d,cartTitle:s,emptyCartTitle:p,emptyCartDescription:u,emptyCartButtons:m,backgroundColor:f,backgroundSubdued:x,tertiaryColor:h,tertiaryTextColor:y,backdrop:b=!0,cartData:v,isUserSignedIn:w,showBundle:C,showCouponOptions:E,bundleProducts:k,discountAmountOff:T,loyaltyIcon:S,pointsToBeUsed:B,rewardMultiplier:$,redemptionMultiplier:z,removeDiscount:D,applyDiscount:I,discountApplied:P,rewardCoupons:N,userTotalPoints:_,checkoutFunction:O,joinNowFunction:M,guestLoyaltyPercentage:F,showToggleButton:A,isOpen:R,setIsOpen:L,isDev:j,switchWidthVariant:V,recProductsList:H,showMultiStepProgressBar:W,cartCheckpoints:U,redemptionRate:G,pointsRewardRate:Q,showCartLevelAltPay:q,guestRewardCoupon:Y,showGuestDiscountCoupon:Z,applyTemplateDiscount:K,exploreCtaRedirectLink:X,discountAmountApplied:J,discountInCheckoutButton:ee,isStickyCheckout:te,showDiscountsListToGuestUsers:ne,showApplyCouponsButtonToGuestUsers:re,handleCheckpointCrossed:oe,customCartProgressBarCriteria:ae,checkoutButtonColor:ie,ctaButtonBackgroundColor:le,ctaButtonTextColor:ce,primaryTextColor:de,productRecsCtaButtonText:se,productRecsTitleText:pe,secondaryTextColor:ue,showProductRecsOnDesktop:me,showProductRecsOnMobile:fe,themeColor:ge,themeTextColor:xe,companyName:he,gstNumber:ye,showGSTOption:be,applyGSTToCart:ve,showMOVForProgressTiers:we,freeProduct:Ce,showLoyaltyCta:Ee,freeProductAdjustedCartTotal:ke,minimumOrderValueToAvailDiscount:Te,signinCTAButtonVisible:Se,cartSigninCTAMainText:Be,showNoteOption:$e,applyNoteToCart:ze,note:De,inlineCartOfferInfoText:Ie,inlineCartOfferInfoRedirectLink:Pe,cartOfferTermsAndConditionsText:Ne,showEditOptionOnProducts:_e,getProductDetailsByVariantId:Oe,onSetLoading:Me,showVariantSelectionDropdownInProductRecs:Fe,originalCartSubtotal:Ae,currentTier:Re,freebieProductsInCart:Le,showFreebieClaim:je,addFreebieToCart:Ve,freebiesInCart:He,effectiveQuantityForProgressBar:We,productPercentageOffMapping:Ue,productTagsMapping:Ge,removeFreebieFromCart:Qe,postalCodeList:qe,enableGeoLocationDeliveryRestriction:Ye,applyPostalCodeAndDeliverySlotToCart:Ze,showDeleteOnFreebies:Ke,freebieCouponTemplates:Xe,freebieFlowCheckpoints:Je,freebieClaimData:et,showStickyAddToCart:tt,stickyCartLineItem:nt,postalCodeBasedItemTrackingParameter:rt,enableSlotPicker:ot,deliveryHeaderTitle:at,deliveryAvailableText:it,deliveryNotAvailableText:lt,giftWrapSetupData:ct,giftWrapProductDetail:dt,enableCustomCartOnCartPage:st,isCartPage:pt,progressBarFreeProductIconType:ut,addToStickyCart:mt,productRecsCardLayout:ft,productRecsCardListVariant:gt,showCartTimer:xt,showFreebieMilestone:ht,freebieMilestoneData:yt,cartTimerInMinutes:bt,cartTimerCustomText:vt,imageAspectSelector:wt,cartComponentsCornerType:Ct,cartComponentsCornerRadius:Et,stickyCartCustomizationData:kt,cartOffersCarousalData:Tt,stickyBarBuyNowFunction:St,gstSectionCustomizationData:Bt,noteSectionTitle:$t,checkoutSectionMessage:zt,checkoutSectionMessageRedirectLink:Dt,checkoutSectionMessageDisplay:It,showVariantSelectionDropdownInProductClaim:Pt,loyaltyDiscount:Nt,brandTokenName:_t,showDiscountOnMRP:Ot,prefixMessageText:Mt,suffixMessageText:Ft,successMessageText:At,toggleDecimal:Rt,cartOffersCarouselHeight:Lt,disableCheckoutButton:jt,showEmptyCartRecommendations:Vt,emptyProductRecsTitleText:Ht,checkoutButtonBottomSpacing:Wt,showPoweredByBadge:Ut=!0,applyCouponCode:Gt,showApplyCoupon:Qt,enableConfetti:qt,showCheckoutButtonPaymentIcons:Yt=!0})=>{const Zt=nn(on),[Kt,Xt]=rn(xn),[Jt,en]=rn(rl),tn=()=>L(!R);g(()=>{v&&Zt(v)},[v]);const an=o(null);l(()=>{function e(e){an.current&&!an.current.contains(e.target)&&(Xt({open:!1,variantId:void 0,quantity:void 0,handle:void 0}),en({isOpen:!1}))}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);const[ln,cn]=c(!1);return l(()=>{const e=()=>{cn(window.innerWidth>=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),t.createElement(t.Fragment,null,t.createElement("div",{style:{position:st&&pt?"relative":"absolute",width:"100%",display:st&&pt?"flex":"block",alignItems:"center",justifyContent:"center"}},A&&!(st&&pt)&&t.createElement("button",{style:{margin:"16px"},onClick:tn},R?"Close Drawer":"Open Drawer"),R&&b&&!(st&&pt)&&t.createElement("div",{onClick:tn,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(Ep,{isCartPage:pt,enableCustomCartOnCartPage:st,isOpen:R,setIsOpen:L,backgroundColor:f,backgroundSubdued:x??"#F5F5F5",tertiaryColor:h,tertiaryTextColor:y,exploreCTAColor:e,checkoutFontSize:n,cartTitle:s,handleDecrement:r,handleIncrement:a,removeCartItem:i,addCartItem:d,emptyCartTitle:p,emptyCartButtons:m,emptyCartDescription:u,showCouponOptions:E,showBundle:C,isUserSignedIn:w,bundleProducts:k,discountAmountOff:T,loyaltyIcon:S,pointsToBeUsed:B,rewardMultiplier:$,redemptionMultiplier:z,removeDiscount:D,applyDiscount:I,discountApplied:P,rewardCoupons:N,userTotalPoints:_,checkoutFunction:O,joinNowFunction:M,guestLoyaltyPercentage:F,isDev:j,switchWidthVariant:V,recProductsList:H,showMultiStepProgressBar:W,cartCheckpoints:U,redemptionRate:G,pointsRewardRate:Q,showCartLevelAltPay:q,guestRewardCoupon:Y,showGuestDiscountCoupon:Z,applyTemplateDiscount:K,exploreCtaRedirectLink:X,discountAmountApplied:J,discountInCheckoutButton:ee,isStickyCheckout:te,showDiscountsListToGuestUsers:ne,showApplyCouponsButtonToGuestUsers:re,handleCheckpointCrossed:oe,customCartProgressBarCriteria:ae??"minimum_order_value",checkoutButtonColor:ie,ctaButtonBackgroundColor:le,ctaButtonTextColor:ce,primaryTextColor:de,productRecsCtaButtonText:se,productRecsTitleText:pe,secondaryTextColor:ue,showProductRecsOnDesktop:me,showProductRecsOnMobile:fe,themeColor:ge,themeTextColor:xe,companyName:he,gstNumber:ye,showGSTOption:be,applyGSTToCart:ve,showMOVForProgressTiers:we,freeProduct:Ce,showLoyaltyCta:Ee,freeProductAdjustedCartTotal:ke,minimumOrderValueToAvailDiscount:Te,signinCTAButtonVisible:Se,cartSigninCTAMainText:Be,applyNoteToCart:ze,note:De,showNoteOption:$e,inlineCartOfferInfoText:Ie,inlineCartOfferInfoRedirectLink:Pe,cartOfferTermsAndConditionsText:Ne,showEditOptionOnProducts:_e,onSetLoading:Me,showVariantSelectionDropdownInProductRecs:Fe,originalCartSubtotal:Ae,currentTier:Re,freebieProductsInCart:Le,cartOffersCarousalData:Tt,showFreebieClaim:je,addFreebieToCart:Ve,freebiesInCart:He,effectiveQuantityForProgressBar:We,productPercentageOffMapping:Ue,productTagsMapping:Ge,removeFreebieFromCart:Qe,postalCodeList:qe,enableGeoLocationDeliveryRestriction:Ye,applyPostalCodeAndDeliverySlotToCart:Ze,showDeleteOnFreebies:Ke,freebieCouponTemplates:Xe,freebieFlowCheckpoints:Je,freebieClaimData:et,postalCodeBasedItemTrackingParameter:rt,enableSlotPicker:ot,deliveryHeaderTitle:at,deliveryAvailableText:it,deliveryNotAvailableText:lt,giftWrapSetupData:ct,giftWrapProductDetail:dt,progressBarFreeProductIconType:ut,productRecsCardLayout:ft,productRecsCardListVariant:gt,showCartTimer:xt,showFreebieMilestone:ht,freebieMilestoneData:yt,cartTimerCustomText:vt,cartTimerInMinutes:bt,imageAspectSelector:wt,cartComponentsCornerType:Ct,cartComponentsCornerRadius:Et,gstSectionCustomizationData:Bt,noteSectionTitle:$t,checkoutSectionMessage:zt,checkoutSectionMessageRedirectLink:Dt,checkoutSectionMessageDisplay:It,showVariantSelectionDropdownInProductClaim:Pt,loyaltyDiscount:Nt,getProductDetailsByVariantId:Oe,brandTokenName:_t,showDiscountOnMRP:Ot??!0,prefixMessageText:Mt,suffixMessageText:Ft,successMessageText:At,toggleDecimal:Rt,cartOffersCarouselHeight:Lt,disableCheckoutButton:jt,showEmptyCartRecommendations:Vt,emptyProductRecsTitleText:Ht,checkoutButtonBottomSpacing:Wt,showPoweredByBadge:Ut,applyCouponCode:Gt,showApplyCoupon:Qt,enableConfetti:qt,showCheckoutButtonPaymentIcons:Yt}),tt&&nt&&d&&t.createElement(Vp,{showStickyCart:tt,stickyCartCustomizationData:kt,product:nt,addCartItem:d,onSetLoading:Me,themeColor:ge,themeTextColor:xe,cartData:v,isCartOpen:R,setIsCartOpen:L,ctaButtonBackgroundColor:le,ctaButtonTextColor:ce,addToStickyCart:mt,cartComponentsCornerRadius:Et,cartComponentsCornerType:Ct,checkoutFunction:St,backgroundColor:f,primaryTextColor:de}),ln&&Kt.open&&t.createElement(pu,{backgroundColor:f,ref:an,isDev:j,removeCartItem:i,addCartItem:d,getProductDetailsByVariantId:Oe,themeColor:ge,cartComponentsCornerRadius:Et,cartComponentsCornerType:Ct,removeFreebieFromCart:Qe,freebieClaimAddToCart:Ve,productClaimCtaButtonText:et?.productClaimCtaButtonText,backgroundSubdued:x??"#F5F5F5",primaryTextColor:de}),!ln&&Kt.open&&t.createElement(uu,{ref:an,isDev:j,removeCartItem:i,addCartItem:d,getProductDetailsByVariantId:Oe,themeColor:ge,cartComponentsCornerRadius:Et,cartComponentsCornerType:Ct,backgroundColor:f,removeFreebieFromCart:Qe,freebieClaimAddToCart:Ve,productClaimCtaButtonText:et?.productClaimCtaButtonText,backgroundSubdued:x??"#F5F5F5",primaryTextColor:de})))};const fu=({tiers:e,isMobile:n=!1,selectedProductsByTier:r,selectedProducts:o,themeColor:a,showProductDetailsInTracker:i,handleRemoveItemProductTier:l,cornerRadius:c,currencySymbol:d})=>t.createElement(t.Fragment,null,e.map((a,s)=>{const p=a.minimumQuantity-(r[s]?.length??0),u=o?.filter(e=>r[s]?.includes(e.variantId));return t.createElement("div",{className:"yt-bundleBuilderTracker-tier-product-list",style:{display:"flex",width:"100%"}},t.createElement("div",null,t.createElement("div",{style:{display:"flex",gap:"5px"}},u?.map?.(e=>{const o=e.product.variants?.edges?.find(t=>t.node.id===e.variantId),a=r[s]?.filter(e=>e===o?.node.id).length||0;return i?t.createElement("div",{className:"yt-bundleBuilderTracker-detailed-product-item",key:e.variantId,style:{borderRadius:"5px"}},t.createElement("div",{className:"yt-bundleBuilderTracker-detailed-image",style:{backgroundImage:`url(${o?.node.image?.url&&o?.node.image?.url?.length>0?o?.node.image.url:e.product.featuredMedia?.preview?.image?.url})`}},e?.quantity>1&&t.createElement("div",{className:"yt-bundleBuilderTracker-badge",style:{borderRadius:"2px"}},e.quantity,"x")),t.createElement("div",{className:"yt-bundleBuilderTracker-info-block"},t.createElement("span",{className:"yt-bundleBuilderTracker-product-title"},e.product.title),t.createElement("span",{className:"yt-bundleBuilderTracker-product-price"},d,Hg(o?.node?.price)),t.createElement("div",{className:"yt-bundleBuilderTracker-remove-link",onClick:()=>l(e.variantId,s)},t.createElement(Ga,null),t.createElement("span",null,"Remove")))):t.createElement("div",{className:"yt-bundleBuilderTracker-product-list-item",key:e.variantId},t.createElement("div",{className:"yt-bundleBuilderTracker-product-list-tracker-item",style:{backgroundImage:`url(${o?.node.image?.url&&o?.node.image?.url?.length>0?o?.node.image.url:e.product.featuredMedia?.preview?.image?.url})`,..."high"===c&&{borderRadius:"20px"},..."medium"===c&&{borderRadius:"6px"},...""===c&&{borderRadius:"0px"},height:n?"60px":"70px",width:n?"60px":"70px"}},a>1&&t.createElement("div",{className:"yt-bundleBuilderTracker-quantity-badge",style:{borderRadius:"high"===c?"20px":"medium"===c?"6px":"0px"}},a,"x"),t.createElement("div",{className:"yt-bundleBuilderTracker-remove-button",onClick:()=>l(e.variantId,s)},t.createElement(dt,{fontSize:"12px"}))))}),p>=1&&[...Array(p)].map((e,r)=>t.createElement("div",{className:"yt-bundleBuilderTracker-placeholder-box",style:{width:n?"60px":"70px",height:n?"60px":"70px",borderRadius:"high"===c?"20px":"medium"===c?"6px":"0px"},key:r},t.createElement(uo,{size:40,color:"#A0A0A0"}))))),s<e.length-1&&t.createElement("div",{className:"yt-bundleBuilderTracker-plus-icon-container"},t.createElement(uo,{size:"16px",style:{backgroundColor:"#f2f2f2"}})))})),gu=({builderTiers:e,handleAddToCart:n,minimumQuantity:r,selectedProducts:o,showProductDetailsInTracker:a,loading:i,handleRemoveItem:d,percentageOff:s,selectedItemsQuantity:p,bundleSubtotal:u,amountOff:m,styles:f,dealAmount:g,isMobile:x=!1,themeColor:h,cornerRadiusType:y,primaryTextColorCta:b,handleRemoveItemProductTier:v,selectedProductsByTier:w,storeCurrencyCode:C})=>{const[E,k]=c(!1),[T,S]=c(0),[B,$]=c([]),[z,D]=c(0),[I,P]=c(0),[N,_]=c(!1),[O,M]=c(null),F=u?.price||0,A=e?.type,R=e=>{if(e<0||!B[e])return F;const t=B[e].discountValue??0;return s?F*(1-t/100):g?t:m?F-t:F};l(()=>{if(e&&"none"!==e.type)if("productTier"===A&&e.productTier){const t=e.productTier||[];$(t);let n=0;e.productTier.map(e=>{n+=e.minimumQuantity}),P(n-p)}else if(B.length)z>0&&p<B[z-1]?.minimumQuantity?(D(z-1),M(z-1)):p<B[z]?.minimumQuantity&&M(z-1),S(R(z));else{const t=e.offerTier||[];$(t),D(0),P(t[0]?.minimumQuantity-p||r-p)}else $([]),P(r-p),D(0)},[e,r,p]),l(()=>{B.length&&"productTier"!=A?(()=>{if(!B?.length)return;let e=-1,t=null,n=0;if("offerTier"===A)for(let r=0;r<B.length&&(n+=B[r].minimumQuantity,p>=n);r++)t=r,e=r+1<B.length?r+1:r;if(D(e),M(t),null!==t){let e=B.slice(0,t+1).reduce((e,t)=>e+t.minimumQuantity,0);_(e===p),k(!0),S(R(t))}else _(!1),k(!1),S(F);const r=e>=0&&e<B.length?B.slice(0,e+1).reduce((e,t)=>e+t.minimumQuantity,0)-p:B[0].minimumQuantity-p;P(r)})():p===r?(k(!0),S(s?F*(1-s/100):g||(m?F-m:F)),_(!0)):(_(!1),k(!1))},[p,B]);const L=E?Math.max(u?.compareAtPrice,u?.price):u?.compareAtPrice>u?.price?u?.compareAtPrice:null,j=E?T.toFixed(2):u?.price?.toFixed(2),V=L&&j?(L-Number(j)).toFixed(2):0,H=e&&"none"!==A&&e.offerTier?"offerTier"===A?Math.min(p/(p+I)*100,100):void 0:p/r*100;return l(()=>{if(E&&f.byob.enableConfetti){console.log("remainingItems",I);const e=document.getElementById("checkoutButton");if(!e)return;const t=e.getBoundingClientRect(),n=(t.left+t.width/2)/window.innerWidth,r=(t.top+t.height/2)/window.innerHeight;Yr({particleCount:100,spread:70,origin:{x:n,y:r},zIndex:9999})}},[E,f]),t.createElement("div",{className:"yt-bundleBuilderTracker-container "+(x?"mobile":""),style:{justifyContent:f.byob.selectedProductsVisibility&&!x?"space-between":"center"}},"offerTier"==A&&null!==O&&O>=0&&t.createElement("div",{className:"yt-bundleBuilderTracker-offer-tier-tag",style:{backgroundColor:h||"#000",color:b||"#fff"}},t.createElement(t.Fragment,null,"Buy"," ",B.slice(0,O+1).reduce((e,t)=>e+t.minimumQuantity,0)," ","at",m||g?t.createElement(t.Fragment,null," ",Wg(f.general.currencySymbol,C)):""," ",Hg(B[O]?.discountValue),s?t.createElement(t.Fragment,null,"% "):Hg(g)?t.createElement(t.Fragment,null):"",s||m?t.createElement(t.Fragment,null," Off"):""),t.createElement("span",{style:{fontStyle:"italic"}}," applied")),x&&I>=1&&!N&&"offerTier"!==A?t.createElement("div",{className:"yt-bundleBuilderTracker-mobile-remaining",style:{margin:"0",height:"auto"}},"Select ",I," more item(s)"):t.createElement(t.Fragment,null),"productTier"!==A&&t.createElement("div",{className:"yt-bundleBuilderTracker-tier-progress-container"},t.createElement("div",{className:"yt-bundleBuilderTracker-tier-progress-text"},"offerTier"==A&&B.length>0&&z>=0&&I>0&&t.createElement(t.Fragment,null,t.createElement("div",{style:{padding:"4px",fontWeight:"600",...window.innerWidth<=768&&{fontSize:"12px"},color:"#121212"},className:"yt-bundleBuilderTracker-add-more-text"},"Add ",I," More Item(s)",t.createElement("span",{style:{fontWeight:"500"}}," to "),"Buy ",p+I," at",m||g?t.createElement(t.Fragment,null,Wg(f.general.currencySymbol,C)):""," ",Hg(B[z]?.discountValue),s?t.createElement(t.Fragment,null,"% "):Hg(g)?t.createElement(t.Fragment,null):"",s||m?t.createElement(t.Fragment,null," Off"):""))),t.createElement("div",{className:"yt-bundleBuilderTracker-progress-bar-background"},t.createElement("div",{className:"yt-bundleBuilderTracker-progress-bar-fill",style:{width:`${H??0}%`,backgroundColor:100===(H??0)?"#4caf50":h??f?.general.primaryColor??"black"}}," "))),f.byob.selectedProductsVisibility&&t.createElement("div",{className:"hide-tracker-scrollbar yt-bundleBuilderTracker-product-list-wrapper",style:{columnGap:"productTier"===A?"0px":"10px",maxWidth:x?"90%":"55%"}},"productTier"===A?t.createElement(fu,{tiers:B,isMobile:x,selectedProductsByTier:w??{},selectedProducts:o,themeColor:f.general.primaryColor,showProductDetailsInTracker:a,handleRemoveItemProductTier:v,cornerRadius:f.byob.borderRadius,currencySymbol:Wg(f.general.currencySymbol,C)}):t.createElement(t.Fragment,null,o?.map?.(e=>{const n=e.product.variants?.edges?.find(t=>t.node.id===e.variantId);return a?t.createElement("div",{className:"yt-bundleBuilderTracker-detailed-item-container",style:{borderRadius:f.byob.borderRadius},key:e.variantId},t.createElement("div",{className:"yt-bundleBuilderTracker-detailed-image",style:{backgroundImage:`url(${n?.node.image?.url&&n?.node.image?.url?.length>0?n?.node.image.url:e.product.featuredMedia?.preview?.image?.url})`}},e?.quantity>1&&t.createElement("div",{className:"yt-bundleBuilderTracker-badge"},e.quantity,"x")),t.createElement("div",{className:"yt-bundleBuilderTracker-info-block"},t.createElement("span",{className:"yt-bundleBuilderTracker-product-title"},e.product.title),t.createElement("span",{className:"yt-bundleBuilderTracker-product-price"},f.general.currencySymbol,n?.node?.price),t.createElement("div",{className:"yt-bundleBuilderTracker-remove-link",onClick:()=>d(e.variantId)},t.createElement(Ga,null),t.createElement("span",null,"Remove")))):t.createElement("div",{className:"yt-bundleBuilderTracker-item-wrapper",key:e.variantId,style:{marginTop:"8px",marginRight:"5px"}},t.createElement("div",{className:"yt-bundleBuilderTracker-item-image-box",style:{backgroundImage:`url(${n?.node.image?.url&&n?.node.image?.url?.length>0?n?.node.image.url:e.product.featuredMedia?.preview?.image?.url})`,height:x?"60px":"70px",width:x?"60px":"70px",borderRadius:f.byob.borderRadius}},e?.quantity>1&&t.createElement("div",{className:"yt-bundleBuilderTracker-quantity-badge",style:{borderRadius:f.byob.borderRadius}},e.quantity,"x"),t.createElement("div",{className:"yt-bundleBuilderTracker-remove-button",onClick:()=>d(e.variantId)},t.createElement(dt,{fontSize:"12px"}))))}),I>=1&&[...Array(I)].map((e,n)=>t.createElement("div",{className:"yt-bundleBuilderTracker-placeholder-box",style:{width:x?"60px":"70px",height:x?"60px":"70px",borderRadius:f.byob.borderRadius},key:n},t.createElement(uo,{size:40,color:"#A0A0A0"}))))),(!x||N)&&t.createElement("div",{className:"yt-bundleBuilderTracker-summary-container",style:{width:x?"100%":"auto"}},Number(j)>0&&t.createElement("div",{className:"yt-bundleBuilderTracker-summary-info"},t.createElement("div",{style:{display:"flex",...window.innerWidth<=600&&{flexDirection:"column"},gap:"5px",justifyContent:"center"}},t.createElement("span",{className:"yt-bundleBuilderTracker-subtotal-label"},"Subtotal"),Number(V)>0?t.createElement("span",{className:"yt-bundleBuilderTracker-save-label"},"Save:"," ",Wg(f.general.currencySymbol,C),Hg(V)):""),t.createElement("div",{className:"yt-bundleBuilderTracker-subtotal-row"},t.createElement("span",{className:"yt-bundleBuilderTracker-total_price"},Wg(f.general.currencySymbol,C),Number(j)>=0?Hg(Number(j).toFixed(2)):0),L&&f.byob.compareAtPriceVisibility&&Number(L)>Number(j)&&t.createElement("span",{className:"yt-bundleBuilderTracker-summary_price"},Wg(f.general.currencySymbol,C),Hg(Number(L).toFixed(2))))),t.createElement("button",{className:"yt-bundleBuilderTracker-checkout-button",style:{cursor:N?"pointer":"auto",backgroundColor:100===(H??0)||N?f.general.ctaBackgroundColor||"black":"#f4f4f6",color:100===(H??0)||N?f.general.ctaTextColor||"#fff":"#000",border:`1.18px solid ${f.general.ctaBorderColor}`,borderRadius:f.general.ctaBorderRadius,boxShadow:N?"0px 4px 8px rgba(0, 0, 0, 0.2)":"none"},disabled:!N&&I>=1,onClick:e=>{i||console.log("saving"),n(e.target??e.currentTarget)},id:"checkoutButton"},i?t.createElement(na,{color:"white",loading:i,size:15,"aria-label":"Loading Spinner","data-testid":"loader"}):I>=1&&!N?t.createElement("div",{className:"yt-tracking-bar-checkout-button-items-text",style:{color:f.general.primaryColor}},"Add ",I," More Item(s)"):t.createElement("div",{className:"yt-bundleBuilderTracker-checkout-text",style:{color:b??f.general.ctaTextColor}},f.byob.checkoutCTAText??"Checkout"))))},xu={8087437412:{position:"fixed",bottom:"10px",zIndex:100,width:"95%",left:"50%",transform:"translateX(-50%)",mobile:{bottom:"50px"}},66134737152:{position:"fixed",zIndex:20,width:"90%",left:"50%",transform:"translateX(-50%)",bottom:"10px"},83438567714:{zIndex:100,position:"fixed",width:"95%",left:"50%",transform:"translateX(-50%)",bottom:"10px"},72726479068:{position:"fixed",zIndex:20,width:"90%",left:"50%",transform:"translateX(-50%)",bottom:"10px",mobile:{bottom:"70px"}},64800161992:{zIndex:20,mobile:{bottom:"50px"},position:"sticky",bottom:"10px"},53933408435:{zIndex:5,mobile:{bottom:"60px"},position:"sticky",bottom:"10px"},68377018594:{zIndex:5,bottom:"10px",position:"fixed",left:"50%",transform:"translateX(-50%)",mobile:{bottom:"70px"}},84569063743:{zIndex:999,bottom:"0px",width:"100%",position:"fixed",right:"0px",left:"0px"},62022680789:{bottom:"65px",zIndex:999,width:"100%",position:"fixed",right:"0px",left:"0px"},63102222549:{position:"sticky",bottom:"100px",zIndex:999,mobile:{bottom:"60px"}},26666008755:{bottom:"10px",zIndex:999,position:"fixed",left:"50%",transform:"translateX(-50%)"},67641475285:{bottom:"10px",zIndex:999,position:"fixed",left:"50%",transform:"translateX(-50%)"},61613179125:{position:"fixed",left:"50%",transform:"translateX(-50%)"},80866345280:{bottom:"10px",mobile:{bottom:"70px"}}},hu={position:"sticky",bottom:"10px",zIndex:999,width:"96%"},yu=e=>{const[n,r]=c(!1);l(()=>{const e=()=>{r(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const o="undefined"!=typeof window?(window?.ytapp||window?.ytBundleApp)?.storeId:void 0,a=((e,t=!1)=>{const n=e&&xu[e]?xu[e]:{},r={...hu,...n};return t&&n.mobile?{...r,...n.mobile}:r})(String(o),n);e.renderingOnPage||(a.position="static",a.zIndex=0);const i={display:"flex",backgroundColor:"white",borderRadius:"4px",paddingBottom:"5px",justifyContent:"center",margin:"0 auto",transition:"box-shadow 0.3s ease, transform 0.3s ease",border:"1px solid #CBCBCB",boxShadow:"\n 0px 3px 6px 0px #00000040, \n 0px 11px 11px 0px #00000036, \n 0px 24px 14px 0px #00000021, \n 0px 43px 17px 0px #0000000A, \n 0px 68px 19px 0px #00000000\n ",...a};return t.createElement("div",{className:"yt-bundle-builder-tracker-bar",style:{...i,width:n?"100%":a.width,...!e.styles.byob.selectedProductsVisibility&&{width:n?"96%":"fit-content",paddingInline:"10px"},...n&&{display:"flex",flexDirection:"row",paadingTop:"0px"}},onMouseEnter:e=>{e.currentTarget.style.boxShadow="\n 0px 8px 16px 0px #00000040, \n 0px 24px 24px 0px #00000036, \n 0px 50px 30px 0px #00000021, \n 0px 90px 36px 0px #0000000A, \n 0px 140px 40px 0px #00000000\n ",e.currentTarget.style.transform="translateX(-50%)"===a.transform?"translate(-50%, -3px)":"translateY(-3px)"},onMouseLeave:e=>{e.currentTarget.style.boxShadow="\n 0px 5px 12px 0px #00000040, \n 0px 22px 22px 0px #00000036, \n 0px 49px 29px 0px #00000021, \n 0px 87px 35px 0px #0000000A, \n 0px 136px 38px 0px #00000000\n ",e.currentTarget.style.transform=a.transform||"translateY(0)"}},t.createElement(gu,{...e,isMobile:n}))},bu=Wt(void 0);function vu(e){return vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vu(e)}function wu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cu(e,t){return Cu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cu(e,t)}function Eu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=ku(e);if(t){var o=ku(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===vu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function ku(e){return ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ku(e)}var Tu=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cu(e,t)}(o,x);var e,t,n,r=Eu(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),r.apply(this,arguments)}return e=o,t=[{key:"componentDidMount",value:function(){!function(e,t){if(!document.head.querySelector("#"+e)){var n=document.createElement("style");n.textContent=t,n.type="text/css",n.id=e,document.head.appendChild(n)}}(this.props.name,this.props.css)}},{key:"componentWillUnmount",value:function(){var e=document.getElementById(this.props.name);e.parentNode.removeChild(e)}},{key:"render",value:function(){return null}}],t&&wu(e.prototype,t),n&&wu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(),Su=function(e){var t=e.imageBackgroundColor;return"\n body {\n overflow: hidden;\n }\n\n .__react_modal_image__modal_container {\n position: fixed;\n z-index: 5000;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.8);\n touch-action: none;\n overflow: hidden;\n }\n\n .__react_modal_image__modal_content {\n position: relative;\n height: 100%;\n width: 100%;\n }\n\n .__react_modal_image__modal_content img, \n .__react_modal_image__modal_content svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate3d(-50%, -50%, 0);\n -webkit-transform: translate3d(-50%, -50%, 0);\n -ms-transform: translate3d(-50%, -50%, 0);\n overflow: hidden;\n }\n\n .__react_modal_image__medium_img {\n max-width: 98%;\n max-height: 98%;\n background-color: ".concat(t,";\n }\n\n .__react_modal_image__large_img {\n cursor: move;\n background-color: ").concat(t,"\n }\n\n .__react_modal_image__icon_menu a {\n display: inline-block;\n font-size: 40px;\n cursor: pointer;\n line-height: 40px;\n box-sizing: border-box;\n border: none;\n padding: 0px 5px 0px 5px;\n margin-left: 10px;\n color: white;\n background-color: rgba(0, 0, 0, 0);\n }\n\n .__react_modal_image__icon_menu {\n display: inline-block;\n float: right;\n }\n\n .__react_modal_image__caption {\n display: inline-block;\n color: white;\n font-size: 120%;\n padding: 10px;\n margin: 0;\n }\n\n .__react_modal_image__header {\n position: absolute;\n top: 0;\n width: 100%;\n background-color: rgba(0, 0, 0, 0.7);\n overflow: hidden;\n }\n")},Bu=function(){return t.createElement("svg",{fill:"#ffffff",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}))},$u=function(){return t.createElement("svg",{fill:"#ffffff",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}))},zu=function(){return t.createElement("svg",{fill:"#ffffff",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),t.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},Du=function(){return t.createElement("svg",{fill:"#ffffff",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),t.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},Iu=function(){return t.createElement("svg",{fill:"#ffffff",height:"48",viewBox:"0 0 24 24",width:"48",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"}),t.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}))},Pu=function(){return t.createElement("svg",{fill:"#ffffff",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{fill:"none",d:"M0 0h24v24H0V0zm0 0h24v24H0V0z"}),t.createElement("path",{d:"M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81 1.33-1.33C19.8 4.07 22.14 7.24 22.5 11H24c-.51-6.16-5.66-11-11.95-11zM16 14h2V8c0-1.11-.9-2-2-2h-6v2h6v6zm-8 2V4H6v2H4v2h2v8c0 1.1.89 2 2 2h8v2h2v-2h2v-2H8z"}))};var Nu=function(e){return function(t){(function(e){return document.location.hostname!==new URL(e,document.location).hostname})(e)&&(t.preventDefault(),fetch(e).then(function(t){return t.ok||console.error("Failed to download image, HTTP status "+t.status+" from "+e),t.blob().then(function(t){var n=document.createElement("a");n.setAttribute("download",e.split("/").pop()),n.href=URL.createObjectURL(t),n.click()})}).catch(function(t){console.error(t),console.error("Failed to download image from "+e)}))}},_u=function(e){var n=e.image,r=e.alt,o=e.zoomed,a=e.toggleZoom,i=e.toggleRotate,l=e.onClose,c=e.enableDownload,d=e.enableZoom,s=e.enableRotate;return t.createElement("div",{className:"__react_modal_image__header"},t.createElement("span",{className:"__react_modal_image__icon_menu"},c&&t.createElement("a",{href:n,download:!0,onClick:Nu(n)},t.createElement(zu,null)),d&&t.createElement("a",{onClick:a},o?t.createElement($u,null):t.createElement(Bu,null)),s&&t.createElement("a",{onClick:i},t.createElement(Pu,null)),t.createElement("a",{onClick:l},t.createElement(Du,null))),r&&t.createElement("span",{className:"__react_modal_image__caption"},r))};function Ou(e){return Ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ou(e)}function Mu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fu(e,t){return Fu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fu(e,t)}function Au(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Lu(e);if(t){var o=Lu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ou(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ru(e)}(this,n)}}function Ru(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lu(e){return Lu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lu(e)}function ju(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vu=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fu(e,t)}(a,x);var e,n,r,o=Au(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ju(Ru(e=o.call.apply(o,[this].concat(n))),"state",{loading:!0}),ju(Ru(e),"handleOnLoad",function(){e.setState({loading:!1})}),ju(Ru(e),"handleOnContextMenu",function(t){!e.props.contextMenu&&t.preventDefault()}),e}return e=a,n=[{key:"render",value:function(){var e=this.props,n=e.id,r=e.className,o=e.src,a=e.style,i=e.handleDoubleClick;return t.createElement("div",null,this.state.loading&&t.createElement(Iu,null),t.createElement("img",{id:n,className:r,src:o,style:a,onLoad:this.handleOnLoad,onDoubleClick:i,onContextMenu:this.handleOnContextMenu}))}}],n&&Mu(e.prototype,n),r&&Mu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}();function Hu(e){return Hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hu(e)}function Wu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uu(e,t){return Uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Uu(e,t)}function Gu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=qu(e);if(t){var o=qu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Hu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qu(e)}(this,n)}}function Qu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qu(e)}function Yu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zu=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uu(e,t)}(a,x);var e,n,r,o=Gu(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Yu(Qu(e=o.call.apply(o,[this].concat(n))),"state",{move:{x:0,y:0},moveStart:void 0,zoomed:!1,rotationDeg:0}),Yu(Qu(e),"handleKeyDown",function(t){27!==t.keyCode&&13!==t.keyCode||e.props.onClose()}),Yu(Qu(e),"getCoordinatesIfOverImg",function(t){var n=t.changedTouches?t.changedTouches[0]:t;if("react-modal-image-img"===n.target.id){var r=e.contentEl.getBoundingClientRect();return{x:n.clientX-r.left,y:n.clientY-r.top}}}),Yu(Qu(e),"handleMouseDownOrTouchStart",function(t){if(t.preventDefault(),!(t.touches&&t.touches.length>1)){var n=e.getCoordinatesIfOverImg(t);n||e.props.onClose(),e.state.zoomed&&e.setState(function(e){return{moveStart:{x:n.x-e.move.x,y:n.y-e.move.y}}})}}),Yu(Qu(e),"handleMouseMoveOrTouchMove",function(t){if(t.preventDefault(),e.state.zoomed&&e.state.moveStart&&!(t.touches&&t.touches.length>1)){var n=e.getCoordinatesIfOverImg(t);n&&e.setState(function(e){return{move:{x:n.x-e.moveStart.x,y:n.y-e.moveStart.y}}})}}),Yu(Qu(e),"handleMouseUpOrTouchEnd",function(t){e.setState({moveStart:void 0})}),Yu(Qu(e),"toggleZoom",function(t){t.preventDefault(),e.setState(function(e){return{zoomed:!e.zoomed,move:e.zoomed?{x:0,y:0}:e.move}})}),Yu(Qu(e),"toggleRotate",function(t){t.preventDefault(),360!==e.state.rotationDeg?e.setState(function(e){return{rotationDeg:e.rotationDeg+=90}}):e.setState({rotationDeg:90})}),e}return e=a,(n=[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown,!1)}},{key:"render",value:function(){var e=this,n=this.props,r=n.medium,o=n.large,a=n.alt,i=n.onClose,l=n.hideDownload,c=n.hideZoom,d=n.showRotate,s=n.imageBackgroundColor,p=void 0===s?"black":s,u=this.state,m=u.move,f=u.zoomed,g=u.rotationDeg;return t.createElement("div",null,t.createElement(Tu,{name:"__react_modal_image__lightbox",css:Su({imageBackgroundColor:p})}),t.createElement("div",{className:"__react_modal_image__modal_container"},t.createElement("div",{className:"__react_modal_image__modal_content",onMouseDown:this.handleMouseDownOrTouchStart,onMouseUp:this.handleMouseUpOrTouchEnd,onMouseMove:this.handleMouseMoveOrTouchMove,onTouchStart:this.handleMouseDownOrTouchStart,onTouchEnd:this.handleMouseUpOrTouchEnd,onTouchMove:this.handleMouseMoveOrTouchMove,ref:function(t){e.contentEl=t}},f&&t.createElement(Vu,{id:"react-modal-image-img",className:"__react_modal_image__large_img",src:o||r,style:{transform:"translate3d(-50%, -50%, 0) translate3d(".concat(m.x,"px, ").concat(m.y,"px, 0) rotate(").concat(g,"deg)"),WebkitTransform:"translate3d(-50%, -50%, 0) translate3d(".concat(m.x,"px, ").concat(m.y,"px, 0) rotate(").concat(g,"deg)"),MsTransform:"translate3d(-50%, -50%, 0) translate3d(".concat(m.x,"px, ").concat(m.y,"px, 0) rotate(").concat(g,"deg)")},handleDoubleClick:this.toggleZoom}),!f&&t.createElement(Vu,{id:"react-modal-image-img",className:"__react_modal_image__medium_img",src:r||o,handleDoubleClick:this.toggleZoom,contextMenu:!r,style:{transform:"translate3d(-50%, -50%, 0) rotate(".concat(g,"deg)"),WebkitTransform:"translate3d(-50%, -50%, 0) rotate(".concat(g,"deg)"),MsTransform:"translate3d(-50%, -50%, 0) rotate(".concat(g,"deg)")}})),t.createElement(_u,{image:o||r,alt:a,zoomed:f,toggleZoom:this.toggleZoom,toggleRotate:this.toggleRotate,onClose:i,enableDownload:!l,enableZoom:!c,enableRotate:!!d})))}}])&&Wu(e.prototype,n),r&&Wu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}();function Ku(e){return Ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ku(e)}function Xu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ju(e,t){return Ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ju(e,t)}function em(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=nm(e);if(t){var o=nm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ku(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tm(e)}(this,n)}}function tm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nm(e){return nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nm(e)}function rm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var om=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ju(e,t)}(a,x);var e,n,r,o=em(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rm(tm(e=o.call.apply(o,[this].concat(n))),"state",{modalOpen:!1}),rm(tm(e),"toggleModal",function(){e.setState(function(e){return{modalOpen:!e.modalOpen}})}),e}return e=a,n=[{key:"render",value:function(){var e=this.props,n=e.className,r=e.small,o=e.smallSrcSet,a=e.medium,i=e.large,l=e.alt,c=e.hideDownload,d=e.hideZoom,s=e.showRotate,p=e.imageBackgroundColor,u=this.state.modalOpen;return t.createElement("div",null,t.createElement("img",{className:n,style:{cursor:"pointer",maxWidth:"100%",maxHeight:"100%"},onClick:this.toggleModal,src:r,srcSet:o,alt:l}),u&&t.createElement(Zu,{medium:a,large:i,alt:l,onClose:this.toggleModal,hideDownload:c,hideZoom:d,showRotate:s,imageBackgroundColor:p}))}}],n&&Xu(e.prototype,n),r&&Xu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}();const am=n((e,n)=>{const[r,o]=rn(bu),a=(e.disableInventoryTracking?r?.variants.edges?.filter(t=>t.node.inventoryQuantity>0||e.disableInventoryTracking):r?.variants.edges)??[],[i,d]=c(a[0]?.node),[s,p]=c(0),[u,m]=c("undefined"!=typeof window&&window.innerWidth<=600),[f,g]=c(1),[x,h]=c("idle"),[y,b]=c(null),[w,C]=c(null);l(()=>{if(r){const t=r.variants.edges?.filter(t=>t.node.inventoryQuantity>0||e.disableQuantitySelector);d(r?.selectedVariant??t[0]?.node)}},[r]),l(()=>{const t=e.selectedProducts.find(e=>e.variantId===i?.id);g(t?t.quantity:0)},[f,e.selectedProducts,i]);const E=()=>{i?.id&&r&&(h("check"),e.handleAddToBundle(i?.id,r,1),setTimeout(()=>{h("idle"),o(void 0)},500))};if(l(()=>{const e=()=>m(window.innerWidth<=600);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),!r||0===a.length)return null;const{title:k,descriptionHtml:T,media:S,variants:B}=r,$=S.edges.map(e=>e.node.image).filter(e=>e.url.length>0);l(()=>{if(r&&i?.image?.url&&Array.isArray($)){const e=$.findIndex(e=>e.url===i?.image.url);-1!==e&&e!==s&&p(e)}},[i]);const z=t=>{const n=t.target.value,r=a.find(e=>e.node.id===n)?.node;r&&(r.inventoryQuantity>0||e.disableInventoryTracking)&&d(r)};l(()=>{if(r){window.history.pushState({modalOpen:!0},"",window.location.href);const e=e=>{o(void 0),e.preventDefault()};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e),window.history.state?.modalOpen&&window.history.back()}}},[r,o]);const D=e=>{b(e.targetTouches[0].clientX),C(null)},I=e=>{C(e.targetTouches[0].clientX)},P=()=>{if(null!==y&&null!==w&&$.length>1){const e=y-w,t=50;e>t?p(e=>e<$.length-1?e+1:0):e<-t&&p(e=>e>0?e-1:$.length-1)}b(null),C(null)};e.hideAddToBundle||(i?.inventoryQuantity??0)<=0&&e.disableInventoryTracking;const N=t.createElement("div",{className:"yt-bundleProductModal-modal-overlay"},t.createElement("div",{className:"yt-bundleProductModal-modal-content "+(u?"small-screen":"large-screen"),ref:n},t.createElement("div",{className:"yt-bundleProductModal-selection-modal yt-variant-selection-modal "+(u?"small-screen":"large-screen")},t.createElement("div",{className:"yt-variant-selection-modal "+(u?"small-screen":"large-screen")},t.createElement("button",{className:"yt-bundleProductModal-modal-close-button",onClick:()=>{o(void 0)},style:{backgroundColor:"white"}},t.createElement(it,{size:"25"})),t.createElement("div",{className:"yt-bundleProductModal-modal-image-section"},t.createElement(t.Fragment,null,t.createElement("div",{onTouchStart:D,onTouchMove:I,onTouchEnd:P},t.createElement(om,{small:$[s].url,medium:$[s].url,large:$[s].url,hideDownload:!0,className:"yt-bundleProductModal-modal-main-image",imageBackgroundColor:"#000"})),t.createElement("div",{className:"yt-bundleProductModal-modal-image-gallery",style:{display:"flex",flexDirection:"row",overflow:"auto",gap:"10px",scrollbarWidth:"none"}},$.length>1&&$.filter(e=>e.url.length>0).map((n,r)=>t.createElement("img",{key:r,src:n.url,alt:n.altText||`${k} - Image ${r+1}`,onClick:()=>p(r),className:s===r?"active":"",style:{width:"73px",height:"73px",cursor:"pointer",borderRadius:"7px",border:"1px solid lightgray",...s===r&&{border:`2px solid ${e.themeColor||"#111"}`},objectFit:"cover"}}))))),t.createElement("div",{className:"yt-bundleProductModal-modal-details-section",style:{marginLeft:"20px",minHeight:"100%",maxHeight:"70vh",scrollbarWidth:"none",overflowY:"auto",display:"flex",flexDirection:"column"}},t.createElement("h2",null,a.length>1?i?.displayName:r.title),"ratingOnly"===e.reviewRatingType&&(r?.rating?.averageRating??0)>0&&t.createElement("div",{className:"yt-bundleProductModal-modal-rating",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},t.createElement(to,{color:"gold",size:14})," ",t.createElement("span",{style:{marginLeft:6}},r?.rating?.averageRating,"rating")),"ratingAndReviewCount"===e.reviewRatingType&&(r?.rating?.averageRating??0)>0&&t.createElement("div",{className:"yt-bundleProductModal-modal-rating-and-review-count",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},t.createElement(to,{color:"gold",size:14})," ",r?.rating?.averageRating,t.createElement(or,{size:14,style:{color:"dodgerblue",marginLeft:"4px"}})," ","(",r?.rating?.ratingCount," reviews)"),t.createElement("div",{className:"yt-bundleProductModal-modal-variant-selection",style:{display:"flex",flexDirection:"column",gap:"2px",marginTop:"20px"}},a.length>1&&t.createElement("div",null,t.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid #e0e0e0",paddingBottom:"5px",fontSize:"16px",color:"#999",position:"relative",marginBottom:"10px"}},t.createElement("span",{style:{flexShrink:0}},r.options[0].name," :"," ",t.createElement("strong",{style:{color:"#000",paddingLeft:"5px"}},i?.title)),t.createElement("select",{value:i?.id||"",onChange:z,className:"yt-bundleProductModal-modal-select-input",style:{appearance:"none",border:"none",background:"transparent",fontWeight:"bold",color:"#000",cursor:"pointer",paddingRight:"20px",position:"absolute",right:0,top:0,bottom:0,width:"100%",opacity:0,zIndex:2}},a.map(({node:n})=>t.createElement("option",{key:n.id,value:n.id,disabled:!n.inventoryQuantity&&!e.disableInventoryTracking},n.title))),t.createElement("span",{style:{position:"absolute",right:5,pointerEvents:"none",fontSize:"12px",color:"#000"}},t.createElement(ho,null)))),t.createElement("div",{className:"yt-bundleProductModal-modal-price-and-cta",style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%"}},t.createElement("div",{style:{width:"fit-content",minWidth:"fit-content",paddingRight:"10px",display:"flex",flexDirection:"column"}},i?.compareAtPrice&&parseFloat(i.compareAtPrice)>parseFloat(i?.price)&&t.createElement("div",{style:{textDecoration:"line-through",opacity:"0.5",lineHeight:"normal"}},Wg(e.styles.general.currencySymbol,e.styles.general.currencySymbol),Hg(i?.compareAtPrice)),t.createElement("div",null,t.createElement("span",{className:"yt-bundleProductModal-modal-price",style:{fontSize:"20px",fontWeight:"600",color:"#000",textAlign:"center",lineHeight:"normal"}},Wg(e.styles.general.currencySymbol,e.styles.general.currencySymbol),Hg(i?.price)))),!e.hideAddToBundle&&((i?.inventoryQuantity??0)>0||e.disableInventoryTracking)&&(!e?.disableQuantitySelector||f<1)&&t.createElement("div",{style:{width:"80%"},className:"yt-bundleProductModal-modal-atc-wrapper"},t.createElement("button",{style:{textTransform:"uppercase",fontWeight:"800",width:"100%",cursor:"pointer",border:"none",backgroundColor:e.themeColor||"#111",borderRadius:e.cornerRadius,color:e.primaryTextColorCta||"#fff",minHeight:"40px",padding:"0px 15px",position:"relative",overflow:"hidden"},className:"yt-bundleProductModal-modal-atc-button",onClick:e=>{e.stopPropagation(),e.preventDefault(),E()},disabled:"idle"!==x},"Add to bundle")))),t.createElement("div",{className:"yt-bundleProductModal-modal-separator",style:{height:"10px",minHeight:"10px",border:"none",backgroundColor:"#D9D9D96B",margin:"20px 0 10px 0",display:"block !important"}},t.createElement("span",null)),t.createElement("span",{className:"yt-description-content",style:{scrollBehavior:"smooth"},dangerouslySetInnerHTML:{__html:T}})))))),_=t.createElement("div",{className:"yt-bundleProductModal-modal-overlay"},t.createElement("div",{className:"yt-bundleProductModal-modal-content small-screen",style:{padding:"0px",position:"relative"},ref:n},t.createElement("div",{className:"yt-bundleProductModal-selection-modal yt-variant-selection-modal"},t.createElement("button",{className:"yt-bundleProductModal-modal-phone-close-button",style:{position:"fixed",top:"20px",right:"20px",zIndex:9999999999,backgroundColor:"#FFFFFF",padding:"4px",borderRadius:"50%",border:"1px solid lightgray",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{o(void 0)}},t.createElement(yo,{style:{height:"22px",width:"22px",padding:"4px",color:"black"},onMouseEnter:e=>e.currentTarget.style.color="black"})),t.createElement("div",{className:"yt-variant-selection-modal small-screen",style:{padding:"0px",width:"100vw",height:"100vh",overflowY:"auto"}},t.createElement("div",{className:"yt-bundleProductModal-modal-image-section small-screen"},t.createElement(t.Fragment,null,t.createElement("div",{style:{position:"relative"},onTouchStart:D,onTouchMove:I,onTouchEnd:P},t.createElement(om,{small:$[s].url,medium:$[s].url,large:$[s].url,hideDownload:!0,className:"yt-bundleProductModal-modal-main-image",imageBackgroundColor:"#000"}),t.createElement("div",{style:{position:"absolute",bottom:"20px",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},$.length>1&&$.map((e,n)=>t.createElement("span",{className:"yt-bundleProductModal-modal-image-indicator",style:{width:"10px",height:"10px",borderRadius:"50%",backgroundColor:s===n?"#FFFFFF":"#EBEBEB",margin:"0 3px",cursor:"pointer",backdropFilter:"blur(10px)"}})))),t.createElement("div",{className:"yt-bundleProductModal-modal-image-gallery",style:{display:"flex",flexDirection:"row",overflowX:"auto",padding:"5px 20px",gap:"5px",scrollbarWidth:"none"}},$.length>1&&$.map((n,r)=>t.createElement("img",{key:r,src:n.url,alt:n.altText||`${k} - Image ${r+1}`,onClick:()=>p(r),className:s===r?"active":"",style:{width:"60px",height:"60px",cursor:"pointer",borderRadius:"7px",border:"1px solid lightgray",...s===r&&{border:`2px solid ${e.themeColor||"#111"}`},objectFit:"cover"}}))))),t.createElement("div",{className:"yt-bundleProductModal-modal-details-section small-screen",style:{padding:"0px !important",margin:"15px 0",paddingBottom:"50px"}},t.createElement("h2",{style:{margin:"0px"}},a.length>1?i?.displayName:r.title),"ratingOnly"===e.reviewRatingType&&(e?.rating?.averageRating??0)>0&&t.createElement("div",{className:"yt-bundleProductModal-modal-rating-only",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},t.createElement(to,{color:"gold",size:14})," ",t.createElement("span",{style:{marginLeft:6}},e?.rating?.averageRating," rating")),"ratingAndReviewCount"===e.reviewRatingType&&(e?.rating?.averageRating??0)>0&&t.createElement("div",{className:"yt-bundleProductModal-modal-rating-and-review-count",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},t.createElement(to,{color:"gold",size:14})," ",e?.rating?.averageRating,t.createElement(or,{style:{color:"dodgerblue",marginLeft:"4px"},size:14})," ","(",e?.rating?.ratingCount," reviews)"),t.createElement("div",{className:"yt-bundleProductModal-modal-separator",style:{opacity:"0.2",border:"none",height:"2px",backgroundColor:"#000000",margin:"10px 0px",display:"block !important",width:"95vw"}},t.createElement("span",null)),t.createElement("span",{className:"yt-description-content",style:{scrollbarWidth:"none",scrollBehavior:"smooth",margin:"0px"},dangerouslySetInnerHTML:{__html:T}})))),t.createElement("div",{className:"yt-bundleProductModal-modal-phone-bottom-bar",style:{position:"fixed",bottom:"0px",left:"0px",right:"0px",padding:"12px 15px",borderTop:"1px solid lightgray",boxShadow:"0px -4px 5px rgba(0, 0, 0, 0.1)",backgroundColor:"#fff",display:"flex",flexDirection:"column",gap:"2px",zIndex:9999999999}},a.length>1&&t.createElement("div",null,t.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid #e0e0e0",paddingBottom:"5px",fontSize:"16px",color:"#999",position:"relative",margin:"10px 0"}},t.createElement("span",{style:{flexShrink:0}},r.options[0].name," :"," ",t.createElement("strong",{style:{color:"#000",paddingLeft:"5px"}},i?.title)),t.createElement("select",{value:i?.id||"",onChange:z,className:"yt-bundleProductModal-modal-select-input",style:{appearance:"none",border:"none",background:"transparent",fontWeight:"bold",color:"#000",cursor:"pointer",paddingRight:"20px",position:"absolute",right:0,top:0,bottom:0,width:"100%",opacity:0,zIndex:2}},a.map(({node:n})=>t.createElement("option",{key:n.id,value:n.id,disabled:!n.inventoryQuantity&&!e.disableInventoryTracking},n.title))),t.createElement("span",{style:{position:"absolute",right:5,pointerEvents:"none",fontSize:"12px",color:"#000"}},t.createElement(ho,null)))),t.createElement("div",{className:"yt-bundleProductModal-modal-price-and-cta",style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%"}},t.createElement("div",{style:{width:"fit-content",minWidth:"fit-content",display:"flex",flexDirection:"column",paddingRight:"10px"}},i?.compareAtPrice&&t.createElement("div",{style:{textDecoration:"line-through",opacity:"0.5",lineHeight:"normal"}},Wg(e.styles.general.currencySymbol,e.styles.general.currencySymbol),Hg(i?.compareAtPrice)),t.createElement("div",null,t.createElement("span",{className:"yt-bundleProductModal-modal-price",style:{fontSize:"20px",fontWeight:"600",color:"#000",textAlign:"center",lineHeight:"normal"}},Wg(e.styles.general.currencySymbol,e.styles.general.currencySymbol),Hg(i?.price)))),!e.hideAddToBundle&&((i?.inventoryQuantity??0)>0||e.disableInventoryTracking)&&(!e?.disableQuantitySelector||f<1)&&t.createElement("div",{style:{width:"100%"}},t.createElement("button",{style:{textTransform:"uppercase",fontWeight:"800",width:"100%",cursor:"pointer",border:"none",backgroundColor:e.themeColor||"#111",borderRadius:e.cornerRadius,color:e.primaryTextColorCta||"#fff",minHeight:"40px",padding:"0px 15px",position:"relative",overflow:"hidden"},className:"yt-bundleProductModal-modal-atc-button",onClick:e=>{e.stopPropagation(),e.preventDefault(),E()},disabled:"idle"!==x},e.styles.byob.addToBundleCTAText||"Add to Bundle"))))));return v.createPortal(u?_:N,document.body)}),im=({options:e,selectedValue:n,onChange:r,type:o="text",isOptionAvailable:a,isMobile:i})=>t.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px",alignItems:"center"}},e?.map(e=>{const l=!a||a(e.name);return i&&!l?null:t.createElement("div",{key:e.name,onClick:()=>{l&&r(e)},style:{cursor:l?"pointer":"not-allowed"}},((e,n)=>{const r=!a||a(e.name),i={cursor:r?"pointer":"not-allowed",border:n?"2px solid #333":"1px solid #d1d5db",transition:"all 0.2s ease",opacity:r?1:.5};return"color"===o?t.createElement("div",{style:{...i,width:24,height:24,borderRadius:"50%",backgroundColor:e.value}}):"image"===o?t.createElement("img",{src:Mn(e.value,48,85,"webp")||"/placeholder.svg",alt:e.name,style:{...i,width:24,height:24,borderRadius:"50%",objectFit:"cover"}}):t.createElement("div",{style:{...i,padding:"4px 8px",borderRadius:"12px",fontSize:"12px",fontWeight:n?"600":"400",backgroundColor:n?"#f3f4f6":"white",color:"#333",minWidth:"fit-content",textAlign:"center"}},e.name)})(e,n?.name===e.name))})),lm=({product:e,isOpen:n,onClose:r,variantOptions:o,cta:a,onConfirm:i,disableInventoryTracking:d})=>{const[s,p]=c(()=>{const t=e.variants.edges.find(e=>d||e.node.inventoryQuantity>0)?.node;return t?.title&&"Default Title"!==t.title?t.title.split(" / "):e.options?.map(e=>e.values[0])||[]}),[u,m]=c(window.innerWidth<1024);l(()=>{const e=()=>m(window.innerWidth<1024);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),l(()=>{const e=e=>{"Escape"===e.key&&r()};return n&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n,r]);const f=e.variants.edges.find(t=>t.node.title===(e.options?.length>0?s.join(" / "):s[0]))?.node,g=f?.image?.url||e.featuredMedia?.preview?.image?.url,x=Mn(g,150,85,"webp"),h=e=>{if(!o?.options)return"text";const t=o.options.find(t=>t.name===e);return t?.type||"text"},y=e=>{if(!o?.options)return e.values.map(e=>({name:e,value:e}));const t=o.options.find(t=>t.name===e.name);return e.values.map(e=>{const n=t?.values?.find(t=>t.name===e);return{name:e,value:n?.value||e}})},b=(e,t)=>{const n=s[t];if(!n)return null;return y(e).find(e=>e.name===n)||null};if(!n)return null;const w=t.createElement("div",{onClick:r,style:{position:"fixed",top:0,left:0,right:0,bottom:0,width:"100vw",height:"100vh",background:"rgba(0, 0, 0, 0.4)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},role:"dialog","aria-modal":"true","aria-labelledby":"yt-variant-options-modal-title",className:"yt-bundleBuilder-variant-options-modal-backdrop"},t.createElement("div",{onClick:e=>e.stopPropagation(),style:{background:"white",borderRadius:16,width:"fit-content",minWidth:350,maxWidth:450,maxHeight:"90vh",overflowY:"auto",position:"relative",zIndex:999,...window.innerWidth<=600&&{width:"90vw",maxWidth:"90vw",minWidth:"90vw"}},className:"yt-bundleBuilder-variant-options-modal-container"},t.createElement("div",{id:"yt-variant-options-modal-title",style:{width:"100%",padding:"16px 0",fontWeight:600,fontSize:14,textTransform:"uppercase",backgroundColor:"rgba(217, 217, 217)",color:"black",textAlign:"center",borderTopLeftRadius:16,borderTopRightRadius:16}},"Select Options"),t.createElement("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"16px 20px",borderBottom:"1px solid #f0f0f0"},className:"yt-bundleBuilder-variant-options-modal-product-block"},t.createElement("img",{src:x,alt:e.title,style:{width:60,height:60,borderRadius:8,objectFit:"cover",flexShrink:0,transition:"opacity 0.3s ease"},className:"yt-bundleBuilder-variant-options-modal-product-image"}),t.createElement("div",{style:{display:"flex",flexDirection:"column",flex:1,gap:4},className:"yt-bundleBuilder-variant-options-modal-product-info"},t.createElement("div",{style:{fontSize:14,fontWeight:600,color:"#333"},className:"yt-bundleBuilder-variant-options-modal-product-title"},e.title))),t.createElement("div",{style:{padding:"20px"},className:"yt-bundleBuilder-variant-options-modal-variant-selectors"},e.options.map((n,r)=>t.createElement("div",{key:n.name,style:{display:"flex",flexDirection:"column",gap:8,marginBottom:n?.values?.length>1?16:0},className:"yt-bundleBuilder-variant-options-modal-option"},n?.values?.length>1&&t.createElement(t.Fragment,null,t.createElement("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},className:"yt-bundleBuilder-variant-options-modal-option-label"},t.createElement("span",{style:{fontSize:14,fontWeight:500,color:"#333"},className:"yt-bundleBuilder-variant-options-modal-option-name"},"Select ",n.name),t.createElement("span",{style:{fontSize:12,fontWeight:500,color:"#666",backgroundColor:"#f5f5f5",padding:"4px 12px",borderRadius:16,textTransform:"capitalize"},className:"yt-bundleBuilder-variant-options-modal-option-selected-value"},b(n,r)?.name||n.values[0])),t.createElement(im,{options:y(n),selectedValue:b(n,r),onChange:e=>{((e,t)=>{const n=[...s];n[e]=t.name,p(n)})(r,e)},type:h(n.name),isOptionAvailable:t=>((t,n)=>{if(d)return!0;const r=[...s];r[t]=n;const o=e.options?.length>0?r.join(" / "):r[0],a=e.variants.edges.find(e=>e.node.title===o)?.node;return!!a&&a.inventoryQuantity>0})(r,t),isMobile:u}))))),t.createElement("button",{className:"yt-bundleBuilder-variant-options-modal-confirm-button",onClick:()=>{const t=e.variants.edges.find(t=>t.node.title===(e.options?.length>0?s.join(" / "):s[0]))?.node,n=t&&(d||t.inventoryQuantity>0);if(t?.id&&n)i(t.id),r();else{console.warn("yt::variant options modal - selected variant not available or out of stock:",s);const t=e.variants.edges.find(e=>d||e.node.inventoryQuantity>0)?.node.id;t&&(i(t),r())}},style:{width:"100%",fontSize:14,fontWeight:600,textTransform:"uppercase",backgroundColor:a.backgroundColor,color:a.textColor,textAlign:"center",padding:"16px 0",border:"none",cursor:"pointer",borderBottomLeftRadius:16,borderBottomRightRadius:16},onMouseEnter:e=>{e.currentTarget.style.opacity="0.9"},onMouseLeave:e=>{e.currentTarget.style.opacity="1"}},"Add to Bundle")));return v.createPortal(w,document.body)};function cm({quantity:e,setQuantity:n,remainingQuantity:r,handleAddToBundle:o,variantId:a,product:i,handleRemoveItem:l,hideAddToBundle:c,disableInventoryTracking:d,selectedVariantInventoryQty:s}){const p={display:"flex",alignItems:"center",justifyContent:"center",width:"33%",cursor:"pointer",backgroundColor:"#f2f2f2",userSelect:"none",border:"none",padding:"8px",margin:"0",fontSize:"20px",color:"#333",textDecoration:"none",boxShadow:"none",outline:"none",borderRadius:"0",boxSizing:"border-box"},u=d||e<s;return t.createElement("div",{className:"yt-bundleBuilder-quantity-selector-container"},t.createElement("button",{className:"yt-bundleBuilder-quantity-selector_button-minus",onClick:t=>{t.stopPropagation();const r=Math.max(0,e-1);n(r),l&&a&&l(a,1)},style:p},"-"),t.createElement("div",{className:"yt-bundleBuilder-quantity-selector_quantity"},e," added"),t.createElement("button",{className:"yt-bundleBuilder-quantity-selector_button-plus",onClick:t=>{t.stopPropagation();const l=Math.min(r,e+1);n(l),o&&a&&i&&o(a,i,1)},disabled:!u||c,style:{...p,cursor:!u||c?"not-allowed":"pointer",opacity:!u||c?.6:1}},"+"))}const dm=({product:e,styles:n,selectedVariant:r})=>{const[o,a]=c(!1),i=r?.image?.url||e?.featuredMedia?.preview?.image?.url||e?.media?.edges?.[0]?.node?.image?.url||"",l=e?.media?.edges?.map(e=>e.node.image.url).filter(Boolean),d=l?.[1]??i??"";return t.createElement("div",{className:"yt-bundleBuilder-image-effect",style:{position:"relative",width:"100%",overflow:"hidden",aspectRatio:n.general.imageAspectRatio||"1/1"},onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1)},t.createElement("div",{className:"yt-bundleBuilder-image-effect_wrapper",style:{width:"100%",height:"100%",position:"relative"}},t.createElement("img",{className:"yt-bundleBuilder-image-effect_main-image",style:{width:"100%",height:"100%",objectFit:"cover",opacity:o&&(i||l?.[0])!==d?0:1,transition:l?.length>0?"opacity 300ms ease, transform 300ms ease":"",transform:o?"scale(1.1)":"scale(1)"},src:i||l?.[0],alt:e.title}),(i||l?.[0])!==d&&t.createElement("img",{className:"yt-bundleBuilder-image-effect_hover-image",style:{width:"100%",height:"100%",objectFit:"cover",opacity:o?1:0,transition:"opacity 400ms ease, transform 400ms ease",transform:o?"scale(1.1)":"scale(1)",position:"absolute",top:0,left:0},src:i||d,alt:e.title})))},sm=({product:e,bundle:n,handleAddToBundle:r,hideAddToBundle:o,remainingQuantity:a,themeColor:i,handleRemoveItem:d,transitionActive:s,idx:p,selecteditems:u,customVariantsQuantity:m})=>{const f=nn(bu),g=n.customizations,x=g?.byob?.variantSelectorType,[h,y]=c(!1),b=g.general?.variantTitleSuffix?e?.variants?.edges:(e=>{if(!e||e.length<2)return e;const t=e.map(e=>e.node.title).map(e=>e.split(" "));let n=[...t[0]];for(let e=1;e<t.length;e++){const r=t[e];let o=0;for(;o<n.length&&o<r.length&&n[n.length-1-o]===r[r.length-1-o];)o++;n=n.slice(n.length-o)}return n.length<1?e:e.map(e=>{const t=e.node.title.split(" "),r=t.slice(0,t.length-n.length).join(" ");return{...e,node:{...e.node,title:r,commonSuffix:n.join(" ")}}})})(e?.variants?.edges);if(!b||!b.length)return t.createElement(t.Fragment,null);const v=b?.find(e=>e.node.inventoryQuantity>0||!g?.general.trackInventory)?.node?.id;if(!v&&!g.general.showOutOfStockProducts)return t.createElement(t.Fragment,null);const[w,C]=c(b?.find(e=>!g?.general.trackInventory||e.node.inventoryQuantity>0)?.node?.id||b[0]?.node?.id),[E,k]=c(0),[T,S]=c(window.innerWidth<450),[B,$]=c("normal"),z=b?.find(e=>e?.node?.id===w)?.node,D=m&&m.length>0&&m.find(e=>e.variantId==z?.id)?.quantity||z&&z?.inventoryQuantity;l(()=>{const e=u.find(e=>e.variantId===w);k(e?e.quantity:0)},[E,u,w]),l(()=>{const e=()=>{S(window.innerWidth<450)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),l(()=>{CSS.supports("font-weight","500")?$("500"):CSS.supports("font-weight","400")?$("400"):CSS.supports("font-weight","600")&&$("600")},[]),l(()=>{document.documentElement.style.setProperty("--yt-bundle-font-weight",B)},[B]),l(()=>{if(w&&!b?.some(e=>e.node.id===w)){const e=b[0]?.node.id;e&&C(e)}},[w,b]);const I=e.variants&&e.variants.edges?.length>1&&"customOptions"!==x,P="undefined"!=typeof window?(window?.ytapp||window?.ytBundleApp)?.storeId:void 0,N="53933408435"===P,_="75851235630"===P,O=(e=>{if(e.metafield&&"yourtoken_bundles_app"===e.metafield.namespace&&"categories"===e.metafield.key){if(e.metafield.jsonValue&&Array.isArray(e.metafield.jsonValue))return e.metafield.jsonValue;if(e.metafield.value)try{const t=JSON.parse(e.metafield.value);if(Array.isArray(t))return t}catch(e){console.error("Failed to parse categories:",e)}}return[]})(e),M=O.length>0;return t.createElement(t.Fragment,null,t.createElement("div",{className:`bundle-builder-product-container ${s?"yt-product-card-transition-active":p%2==0?"yt-product-card-transition":"yt-product-card-transition-up"} ${"none"===g?.byob.shadowType?"shadow-none":"spread"===g?.byob.shadowType?"shadow-spread":"shadow-no-spread"}`,style:{borderRadius:g?.byob.borderRadius,border:"transparent"!==g?.byob.borderColor?`1px solid ${g?.byob.borderColor}`:"none",backgroundColor:g?.byob.cardBackgroundColor||"#fff"},onClick:()=>{if(D<=0&&g?.general.trackInventory)return;const t={...e,variants:{...e.variants,edges:b},selectedVariant:z};f(t)}},t.createElement("div",{className:"yt-bundleBuilder-product-card_image-wrapper"},t.createElement(dm,{product:e,styles:g,selectedVariant:z}),n?.productCardBadgeText&&t.createElement("div",{className:"yt-bundleBuilder-product-card_badge",style:{position:"absolute",top:"0px",left:"0px",backgroundColor:g?.general.primaryColor||"#111",color:g?.general.primaryContrastColor||"#fff",zIndex:1,margin:"0px",whiteSpace:"pre",padding:"4px 8px",fontSize:"12px",borderTopLeftRadius:g.byob.borderRadius}},n.productCardBadgeText),I&&t.createElement("div",{className:"yt-bundleBuilder-variant-selector-container",style:{position:"relative",width:"100%"}},t.createElement("select",{className:"bundle-builder-variant-selector "+(N?"bundle-builder-variant-selector--coralHaze":""),onClick:e=>{e.preventDefault(),e.stopPropagation()},value:w||"",onChange:e=>{e.stopPropagation(),e.preventDefault(),C(e.target.value)}},b?.map(e=>{const n=window.innerWidth<=320?10:window.innerWidth<=420?15:22,r=e.node.title.length>n?e.node.title.substring(0,n)+"...":e.node.title;return t.createElement("option",{key:e.node.id,value:e.node.id},r)})),t.createElement("div",{className:"yt-bundleBuilder-variant-selector_icon",style:{position:"absolute",right:"16px",bottom:"10px",pointerEvents:"none"}},t.createElement(F,null)))),t.createElement("div",{className:"yt-bundleBuilder-product-card_details"},"enabled"===n?.customizations?.byob?.productCardCategoryVisibility&&M&&t.createElement("div",{className:"yt-bundleBuilder-product-card_category-wrapper",style:{padding:"2px 4px"}},t.createElement("div",{className:"yt-bundleBuilder-product-card_category-container",style:{display:"flex",flexWrap:"wrap",gap:"4px"}},O.slice(0,2).map((e,n)=>t.createElement("span",{className:"yt-bundleBuilder-product-card_category",key:n,style:{fontSize:T?"8px":"12px",color:"#666",fontWeight:"500"}},e.charAt(0).toUpperCase()+e.slice(1))),O.length>2&&t.createElement("span",{className:"yt-bundleBuilder-product-card_category-more",style:{fontSize:"10px",padding:"2px 6px",backgroundColor:"rgba(0, 0, 0, 0.05)",borderRadius:"8px",color:"#666",fontWeight:"500"}},"+",O.length-2," more"))),t.createElement("div",{className:"yt-bundleBuilder-product-card_title",style:{"--title-margin-top":T?"4px":"0px","--title-padding":n?.showBorder??1?"0 10px":"0 4px",...!1===g?.byob.productsPriceVisibility&&{"--title-padding":"8px"},...g?.byob.productTitleFontSize&&{"--title-font-size":g?.byob.productTitleFontSize}}},_?String(z?.displayName).replace("- Default Title",""):e.title,z?.commonSuffix?" -"+z?.commonSuffix:"")),"ratingOnly"===n?.reviewRatingType&&(e?.rating?.averageRating??0)>0&&t.createElement("div",{className:"yt-bundleBuilder-product-card_rating",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},t.createElement(to,{color:"gold",size:14}),t.createElement("span",{className:"yt-bundleBuilder-product-card_rating-text",style:{marginLeft:6}},e?.rating?.averageRating," rating")),"ratingAndReviewCount"===n?.reviewRatingType&&(e?.rating?.averageRating??0)>0&&t.createElement("div",{className:"yt-bundleBuilder-product-card_rating-review-count",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},t.createElement(to,{color:"gold",size:14})," ",e?.rating?.averageRating,t.createElement(or,{size:14,style:{color:"dodgerblue",marginLeft:"4px"}})," ","(",e?.rating?.ratingCount," reviews)"),g?.byob.productsPriceVisibility&&t.createElement("div",{className:"yt-bundleBuilder-product-price",style:{marginBottom:"5px",padding:n?.showBorder?"0px 10px":"0 4px"}},parseFloat(z?.price??"0")>0?t.createElement("span",{className:"yt-bundleBuilder-product_price--new"},Wg(g.general.currencySymbol,n?.storeCurrencyCode)??"Rs.",Hg(z?.price)):t.createElement("span",{className:"yt-bundleBuilder-product-card_price--free"},"Free"),z?.compareAtPrice&&g?.byob.compareAtPriceVisibility&&parseFloat(z.compareAtPrice)>parseFloat(z?.price)&&t.createElement("span",{className:"yt-fixed-bundle-original-price yt-bundleBuilder-product-card_price--old",style:{fontSize:"14px"}},Wg(g.general.currencySymbol,n?.storeCurrencyCode)??"Rs.",Hg(z.compareAtPrice))),(D>0||!g?.general.trackInventory)&&t.createElement("div",{className:"yt-product-atc-wrapper"},(0===E||void 0===E)&&t.createElement("button",{style:{...!o&&{backgroundColor:g?.general.primaryColor||"#111",color:g?.general.primaryContrastColor||"#fff"}},disabled:o,onClick:t=>{t.stopPropagation(),t.preventDefault(),k(1),(()=>{if(!w)return;"customOptions"===x&&b.length>1?y(!0):r(w,e,1)})()},className:"yt-product-atc-button"},g?.byob.addToBundleCTAText),!n?.disableQuantitySelector&&E>0&&w&&t.createElement("div",{className:"visible yt-bundleBuilder-quantity-selector-container--visible",style:{overflow:"hidden"}},t.createElement(cm,{remainingQuantity:a,setQuantity:k,quantity:E,handleAddToBundle:r,variantId:w,product:e,handleRemoveItem:d,hideAddToBundle:o,disableInventoryTracking:!g?.general.trackInventory,selectedVariantInventoryQty:D})),n?.disableQuantitySelector&&E>0&&w&&t.createElement("button",{style:{backgroundColor:g?.general?.primaryContrastColor||"#fff"},className:"yt-bundleBuilder-product-card_add-to-bundle-button--added"},t.createElement("div",{className:"yt-bundleBuilder-product-card_added-button-text"},"ADDED"),t.createElement("div",{onClick:e=>{e.stopPropagation();const t=Math.max(0,E-1);k(t),d&&w&&d(w,1)},className:"yt-bundleBuilder-product-card_remove-button"},t.createElement(fo,{className:"yt-bundleBuilder-product-card_remove-icon",style:{color:"#fff",fontSize:"20px"}})))),D<=0&&g?.general.trackInventory&&t.createElement("div",{style:{backgroundColor:g.general.disabledButtonColor,color:"#fff",cursor:"not-allowed",transition:"transform 0.2s ease-in-out"},className:"yt-product-atc-disabled yt-bundleBuilder-product-card_add-to-bundle-button--disabled"},g?.general.outOfStockLabel||"Out of Stock")),"customOptions"===x&&h&&b.length>1&&t.createElement(lm,{product:e,isOpen:h,onClose:()=>y(!1),variantOptions:n.variantOptions,cta:{textColor:g.general.ctaTextColor,backgroundColor:g.general.primaryColor},onConfirm:t=>{C(t),r(t,e,1)},disableInventoryTracking:!g?.general.trackInventory}))},pm=({currentStep:e,setCurrentProductTier:n,totalSteps:r,tiers:o,isMobile:a,selectedProductsByTier:i,primaryColor:l="#000",primaryTextColorCta:c="#fff",tierNavigation:d})=>t.createElement("div",{className:"yt-bundleBuilder-stepper-container",style:{textAlign:"center",fontSize:"20px"}},t.createElement("div",{className:"yt-bundleBuilder-stepper_steps",style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center"}},Array.from({length:r}).map((c,s)=>{const p=s+1,u=o[s].minimumQuantity-(i[s]?.length??0)===0,m=s===e;return l="black"===l?"#000000":l,t.createElement(t.Fragment,{key:p},t.createElement("div",{className:"yt-bundleBuilder-stepper_step "+(m?"yt-bundleBuilder-stepper_step--active":""),style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",gap:a?"4px":"8px"},onClick:()=>!1===d?()=>{}:n(p-1)},t.createElement("div",{className:"yt-bundleBuilder-stepper_label",style:{fontSize:"14px"}},"Step ",p),t.createElement("div",{className:"yt-bundleBuilder-stepper_line-container",style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",cursor:"pointer"}},t.createElement("div",{className:"yt-bundleBuilder-stepper_line",style:{height:"3px",width:a?"30px":"50px",backgroundColor:u?l:m?"#666666":"#CBD5E0",display:"block",borderTopLeftRadius:"5px",borderBottomLeftRadius:"5px"}}),t.createElement("div",{className:"yt-bundleBuilder-stepper_dot",style:{width:"10px",height:"10px",borderRadius:"50%",backgroundColor:u?`${l}50`:"white",border:`2px solid ${u?l:m?"#666666":"#CBD5E0"}`,display:"flex",alignItems:"center",justifyContent:"center"}}),t.createElement("div",{className:"yt-bundleBuilder-stepper_line",style:{height:"3px",width:a?"30px":"50px",backgroundColor:u?l:m?"#666666":"#CBD5E0",display:"block",marginRight:s<r?a?"4px":"6px":"",borderTopRightRadius:"5px",borderBottomRightRadius:"5px"}}))))})),t.createElement("div",{className:"yt-bundleBuilder-tier_title",style:{margin:a?"16px 0px":"15px 0px",fontSize:a?"16px":"18px",padding:"4px",background:"rgba(0, 0, 0, 0.03)",borderBottom:"1px solid rgba(130, 130, 130, 0.28)"}},o[e]?.title)),um=({isMobile:e,setSearchTerm:n,searchTerm:r,styles:o,setSortBy:a})=>{const[i,d]=c(!1),[s,p]=c(r);return l(()=>{const e=setTimeout(()=>{n(s)},300);return()=>clearTimeout(e)},[s,n]),t.createElement("div",{className:"yt-byob-sort-filter-container yt-bundleBuilder-sort-filter-container",style:{display:"flex",flexDirection:e?"column":"row",justifyContent:"space-between",alignItems:e?"flex-end":"center",textAlign:"center",marginBottom:"20px",width:"97%",gap:e?"10px":"0"}},t.createElement("div",{className:"yt-byob-sort-filter-inner yt-bundleBuilder-sort-filter-inner",style:{display:"flex",flexDirection:i&&e?"column":e?"row-reverse":"row",justifyContent:"space-between",alignItems:i?"":"center",gap:"12px",width:"100%"}},t.createElement("div",{className:"yt-byob-search-wrapper yt-bundleBuilder-search-wrapper",style:{position:"relative",display:"flex",alignItems:"center",width:e?i?"100%":"auto":"400px",transition:"width 0.3s ease-in-out"}},e&&!i?t.createElement(mo,{className:"yt-byob-search-icon yt-bundleBuilder-search-icon",fontSize:"20px",color:"#555",style:{cursor:"pointer",lineHeight:"normal"},onClick:()=>d(!0)}):t.createElement(t.Fragment,null,t.createElement("input",{className:"yt-byob-search-input yt-bundleBuilder-search-input",style:{width:"100%",padding:e?"10px 12px":"10px 14px",fontSize:"14px",outline:"none",color:"#333",border:"1px solid #c7c7c7",borderRadius:o?.byob.borderRadius,boxShadow:o?.byob.borderColor?"0 2px 4px rgba(0, 0, 0, 0.1)":"none",textAlign:"start"},placeholder:"Search by Product Name",value:s,onChange:e=>p(e.target.value)}),!i&&t.createElement("span",{className:"yt-byob-search-icon-input yt-bundleBuilder-search-icon-input",style:{position:"absolute",right:"12px",color:"#aaa",fontSize:"16px",display:"flex",alignItems:"center",justifyContent:"center",background:"white",paddingLeft:"5px"}},t.createElement(mo,{fontSize:"18px",style:{lineHeight:"normal"}}))),e&&i&&t.createElement("span",{className:"yt-byob-search-close-icon yt-bundleBuilder-search-close-icon",style:{position:"absolute",right:"12px",color:"#aaa",fontSize:"16px",cursor:"pointer"},onClick:()=>d(!1)},"✖")),t.createElement("div",{className:"yt-byob-filter-wrapper yt-bundleBuilder-filter-wrapper",style:{display:"flex",alignItems:"center",textAlign:"center",border:window.innerWidth>600?"1px solid #d1d5db":"",padding:"8px 12px",fontSize:"14px",cursor:"pointer",borderRadius:o?.byob.borderRadius,boxShadow:o?.byob.borderColor?window.innerWidth>600?"0 2px 4px rgba(0, 0, 0, 0.1)":" ":"none"}},t.createElement("span",{className:"yt-byob-filter-label yt-bundleBuilder-filter_label",style:{fontSize:"14px",color:"#555",marginRight:"6px"}},"Sort:"),t.createElement("select",{className:"yt-byob-filter-select yt-bundleBuilder-filter_select",style:{flex:1,border:"none",height:"auto",padding:"0px",marginBottom:"0px",background:"transparent",fontSize:"14px",color:"#333",fontWeight:"500",width:e?"120px":"",outline:"none",cursor:"pointer",textAlign:"start"},onChange:e=>a(e.target.value)},t.createElement("option",{value:"best-selling"},"Featured"),t.createElement("option",{value:"title-asc"},"Product Title (A-Z)"),t.createElement("option",{value:"title-desc"},"Product Title (Z-A)"),t.createElement("option",{value:"price-low-to-high"},"Price (Low to High)"),t.createElement("option",{value:"price-high-to-low"},"Price (High to Low)")))))},mm=({styles:e,isMobile:n,categories:r,activeCategory:o,onCategoryChange:a})=>{const i=e=>{a(e)},l=(e,t)=>{const n=e.replace("#","");return`rgba(${parseInt(n.substring(0,2),16)}, ${parseInt(n.substring(2,4),16)}, ${parseInt(n.substring(4,6),16)}, ${t})`};return"tabs"===e?.byob?.categoryFilterOnPage?t.createElement("div",{style:{overflowX:n?"auto":"visible",scrollbarWidth:"none",msOverflowStyle:"none",marginBottom:"20px",width:"100%"},className:"yt-categoryfilter-wrapper"},t.createElement("div",{style:{display:"flex",gap:"0px",minWidth:"max-content",paddingBottom:"1px",flexWrap:"nowrap",justifyContent:"center",borderBottom:"1px solid #e0e0e0",width:"auto",height:n?"28px":"45px"},className:"yt-categoryfilter-tabs-container"},["All",...r].map(r=>{const a=o===r;return t.createElement("button",{key:r,onClick:()=>i(r),className:"yt-categoryfilter-tab-button "+(a?"yt-categoryfilter-tab-button--active":""),style:{background:"none",border:"none",padding:n?"12px 16px":"12px 20px",fontSize:n?"14px":"16px",fontWeight:a?"600":"400",color:a?e.general.primaryColor:"#666",cursor:"pointer",position:"relative",transition:"all 0.3s ease",backgroundColor:a?l(e.general.primaryColor,.07):"transparent",borderBottom:a?`2px solid ${e?.general.primaryColor}`:"2px solid transparent",marginBottom:"-1px",whiteSpace:"nowrap",minWidth:"fit-content"},onMouseEnter:t=>{a||(t.currentTarget.style.color=e?.general.primaryColor)},onMouseLeave:e=>{a||(e.currentTarget.style.color="#666")}},t.createElement("span",{style:{visibility:"hidden",height:0,display:"block",overflow:"hidden",fontWeight:600},"aria-hidden":"true"},r.charAt(0).toUpperCase()+r.slice(1)),t.createElement("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",textAlign:"center"}},r.charAt(0).toUpperCase()+r.slice(1)))}))):t.createElement("div",{style:{overflowX:n?"auto":"visible",scrollbarWidth:"none",msOverflowStyle:"none",marginBottom:"20px",paddingBottom:"5px"},className:"yt-categoryfilter-wrapper"},t.createElement("div",{style:{display:"flex",gap:"8px",minWidth:"max-content",flexWrap:"nowrap",justifyContent:"center",paddingRight:n?"10px":"0px"},className:"yt-categoryfilter-buttons-container"},["All",...r].map(r=>t.createElement("button",{key:r,onClick:()=>i(r),className:"yt-categoryfilter-button",style:{padding:n?"8px 16px":"10px 18px",fontSize:n?"13px":"14px",fontWeight:"500",border:`1px solid ${o===r?e?.general.primaryColor:"#e0e0e0"}`,borderRadius:e?.general.ctaBorderRadius,backgroundColor:o===r?e?.general.primaryColor:"white",color:o===r?"white":"#333",cursor:"pointer",transition:"all 0.3s ease",outline:"none",whiteSpace:"nowrap",minWidth:"fit-content",flexShrink:0},onMouseEnter:t=>{o!==r&&(t.currentTarget.style.borderColor=e?.general.primaryColor,t.currentTarget.style.color=e?.general.primaryColor)},onMouseLeave:e=>{o!==r&&(e.currentTarget.style.borderColor="#e0e0e0",e.currentTarget.style.color="#333")}},r.charAt(0).toUpperCase()+r.slice(1)))))},fm=({bundle:e,selectedItems:n,setSelectedItems:r,handleAddToCart:a,bundleAddToCartLoading:i,renderingOnPage:d,selectedItemsQuantity:s,handleRemoveItem:p,bundleSubtotal:u})=>{const[m,f]=c(void 0),[g,x]=c(window.innerWidth<450),[h,y]=c(0),[b,v]=c({}),w=e.builderTiers?.type,C=e.customizations,E=e.builderTiers?.productTier??[],k=e.builderTiers?.offerTier??[],[T,S]=c([]),[B,$]=c(!1),[z,D]=c("All");l(()=>{const t=new Set;let n=!1;e?.products?.forEach(e=>{const r=e.productDetails;if(r.metafield&&"yourtoken_bundles_app"===r.metafield.namespace&&"categories"===r.metafield.key){let e=[];if(r.metafield.jsonValue&&Array.isArray(r.metafield.jsonValue))e=r.metafield.jsonValue;else if(r.metafield.value)try{const t=JSON.parse(r.metafield.value);Array.isArray(t)&&(e=t)}catch(e){console.error("Failed to parse categories:",e)}e.length>0&&(n=!0,e.forEach(e=>t.add(e)))}}),S(Array.from(t)),$(n)},[e.products]);const I=((e,t)=>"All"===t?e:e.filter(e=>{const n=e.productDetails;if(n.metafield&&"yourtoken_bundles_app"===n.metafield.namespace&&"categories"===n.metafield.key){let e=[];if(n.metafield.jsonValue&&Array.isArray(n.metafield.jsonValue))e=n.metafield.jsonValue;else if(n.metafield.value)try{const t=JSON.parse(n.metafield.value);Array.isArray(t)&&(e=t)}catch(e){console.error("Failed to parse categories:",e)}return e.includes(t)}return!1}))(e.products.filter(e=>"ACTIVE"===e.productDetails.status||void 0===e.productDetails.status||""===e.productDetails.status),z),P="productTier"===w?E.reduce((e,t)=>e+t.minimumQuantity,0):"offerTier"===w?k.reduce((e,t)=>e+t.minimumQuantity,0):e.minimumQuantity,[N,_]=c(""),[O,M]=c(""),F=((e,t)=>e.filter(e=>e?.productDetails?.title?.toLowerCase().includes(t?.toLowerCase())))(I,N),A=((e,t)=>[...e].sort((e,n)=>{const r=e?.productDetails?.title?.toLowerCase(),o=n?.productDetails?.title?.toLowerCase(),a=parseFloat(e?.productDetails?.variants?.edges?.[0]?.node?.price||"0"),i=parseFloat(n?.productDetails?.variants?.edges?.[0]?.node?.price||"0");switch(t){case"title-asc":return r.localeCompare(o);case"title-desc":return o.localeCompare(r);case"price-low-to-high":return a-i;case"price-high-to-low":return i-a;default:return 0}}))(F,O),R=((e,t,n,r,o)=>(e[o]?.products.filter(e=>t.some(t=>t.productId===e.productId&&(e.variantIds.length<1||t.variantIds.includes(e.variantIds[0]))&&t?.productDetails.title.toLowerCase().includes(n?.toLowerCase())))||[]).sort((e,n)=>{let o=t.find(t=>t.productId===e.productId&&(e.variantIds.length<1||t.variantIds.includes(e.variantIds[0]))),a=t.find(e=>e.productId===n.productId&&(n.variantIds.length<1||e.variantIds.includes(n.variantIds[0])));if(!o||!a)return 0;const i=o.productDetails?.title?.toLowerCase(),l=a.productDetails?.title?.toLowerCase(),c=parseFloat(o?.productDetails?.variants?.edges[0]?.node?.price||"0"),d=parseFloat(a?.productDetails?.variants?.edges[0]?.node?.price||"0");switch(r){case"title-asc":return i.localeCompare(l);case"title-desc":return l.localeCompare(i);case"price-low-to-high":return c-d;case"price-high-to-low":return d-c;default:return 0}}))(E,A,N,O,h),[L,j]=rn(bu),[V,H]=c(!1);l(()=>{setTimeout(()=>{H(!0)},100)},[]);const W=o(null);l(()=>{const e=()=>{x(window.innerWidth<450)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),l(()=>{if(e.coverImageUrl){const t=new Image;t.src=e.coverImageUrl,t.onload=()=>{f(t.width/t.height)}}},[e.coverImageUrl]),l(()=>{H(!1),setTimeout(()=>H(!0),100)},[h]);const U=(e,t)=>{if("productTier"===w){let n={...b},r=!1;if(n[t]){const o=n[t].indexOf(e);-1!==o&&(n[t]=[...n[t]],n[t].splice(o,1),r=!0)}if(!r)for(let t=E.length;t>=0;t--){const r=n[t].indexOf(e);if(-1!==r){n[t]=[...n[t]],n[t].splice(r,1);break}}v(n);const o=E.findIndex((e,t)=>n[t]?.length<e.minimumQuantity);-1!==o&&y(o)}p(e)};l(()=>{if("productTier"===w){const e=Object.fromEntries(E.map(e=>[e.tier,[]]));v(e)}},[e]),l(()=>{if("productTier"!==w||!E[h])return;if(P===s)return;const e=E.findIndex((e,t)=>{const n=b[t]||[];return t>=h&&n.length<e.minimumQuantity});-1!==e&&e!==h&&(y(e),(()=>{const e=document.querySelector(".products-display");e&&e.scrollIntoView({behavior:"smooth"})})())},[b,E,w]),l(()=>{_("")},[h]),l(()=>{function e(e){if(!W.current||!e.target)return;!W.current.contains(e.target)&&j(void 0)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);const G=(e,t,o)=>{var a;"productTier"===w&&(a=e,v(e=>{const t={...e},n=E.findIndex((e,n)=>{const r=t[n]||[];return n>=h&&r.length<e.minimumQuantity});return-1!==n&&y(n),t[n]||(t[n]=[]),t[n].push(a),t})),Ug(e,t,o,n,r)},Q=(()=>{if(!e?.builderTiers)return e.minimumQuantity;const{type:t,offerTier:n,productTier:r}=e.builderTiers,o="offerTier"===t?n:"productTier"===t?r:null;if(!o)return e.minimumQuantity;let a=0;return o.map(e=>{a+=e.minimumQuantity}),a})(),q=g&&e.mobileCoverImageUrl?e.mobileCoverImageUrl:e.coverImageUrl||null,Y=e.customStoreDetails?.fixedInventoryDetails,Z=e=>{const t=C?.general?.showOutOfStockProducts;if(t||!C?.general.trackInventory)return!0;const n=e?.productDetails?.variants?.edges||[];if(Y){if(n.some(e=>Y.some(t=>t.variantId===e.node.id&&t.quantity>0)))return!0}return n.some(e=>e.node.inventoryQuantity>0)},K="bundles"==e.appName?e.pageHeader?.title:e?.title,X="bundles"==e.appName?e.pageHeader?.description:e?.subtitle;return t.createElement(t.Fragment,null,t.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",rowGap:"15px",padding:"20px 0px",marginBottom:"20px",backgroundColor:C.byob.sectionBackgroundColor,..."transparent"!==C.fixedBundle.sectionBackgroundColor&&{padding:"20px"}},id:"yt-bundleBuilder-main-container",className:"yt-bundleBuilder-main-container"},q?t.createElement("div",{style:{position:"relative",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",overflow:"hidden",...e?.coverImageVerticalMargin&&{marginBottom:e?.coverImageVerticalMargin,marginTop:e?.coverImageVerticalMargin}},className:"yt-bundleBuilder-header-banner"},q&&t.createElement("img",{src:q,alt:"Background",className:"yt-bundleBuilder-header_image",style:{width:"100%",height:"auto",display:"block"}}),t.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1,display:"flex",flexDirection:"column",alignItems:"center",padding:"20px",width:"90%",maxWidth:"1000px",textShadow:"2px 2px 8px rgba(0, 0, 0, 0.4)"},className:"yt-bundleBuilder-header_text-overlay"},t.createElement("span",{style:{lineHeight:"normal",fontSize:C?.byob?.titleFontSize??"3rem",fontWeight:"700",color:C?.byob?.titleTextColor??"#000",marginBottom:"15px",backgroundColor:C?.byob?.titleBackgroundColor??"transparent",width:"100%",textAlign:"center"},className:"bundle-builder-title yt-bundleBuilder-header_title"},K),t.createElement("span",{style:{lineHeight:"normal",fontSize:C?.byob?.subtitleFontSize??"1.5rem",color:C?.byob?.titleTextColor??"#000"},className:"bundle-builder-subtitle yt-bundleBuilder-header_subtitle"},X))):(K||X)&&t.createElement("div",{className:"yt-bundleBuilder-header-container"},K&&t.createElement("span",{style:{lineHeight:"normal",fontSize:C?.byob?.titleFontSize??"3rem",fontWeight:"700",color:C?.byob?.titleTextColor??"#000",marginBottom:"15px",textAlign:"center",width:"100%",backgroundColor:C?.byob?.titleBackgroundColor??"transparent"},className:"yt-bundleBuilder-header_title"},K),X&&t.createElement("span",{style:{lineHeight:"normal",fontSize:C?.byob?.subtitleFontSize??"1.5rem",color:C?.byob?.titleTextColor??"#000"},className:"yt-bundleBuilder-header_subtitle"},X)),t.createElement("div",{className:"products-display yt-bundleBuilder-products-display"},"productTier"===w&&E.length>0&&C?.byob.productTiersVisibility&&t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(pm,{currentStep:h,totalSteps:E.length,tiers:E,isMobile:g,primaryColor:C?.general?.primaryColor,primaryTextColorCta:C?.general?.primaryContrastColor,setCurrentProductTier:y,selectedProductsByTier:b,tierNavigation:C.byob.tierNavigation})))),t.createElement("div",{style:{width:"100%",display:"flex",flexDirection:"column",gap:"20px"},className:"yt-bundleBuilder-filters-container"},e?.enableSortAndFilter&&t.createElement(um,{isMobile:g,searchTerm:N,setSearchTerm:_,setSortBy:M,styles:C}),e?.customizations?.byob?.enableProductCategories&&B&&t.createElement("div",null,t.createElement(mm,{styles:C,isMobile:g,categories:T,activeCategory:z,onCategoryChange:e=>{D(e)}}))),t.createElement("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"12px",justifyContent:"center",width:"100%"},className:"products-display yt-bundleBuilder-product-grid"},0===A?.length||"productTier"===w&&0===R?.length?t.createElement("p",{style:{fontSize:"20px",color:"#333",textAlign:"center",width:"100%"},className:"yt-bundleBuilder-product-grid_no-products-text"},"No products found"):"productTier"===w&&E.length>0?R.filter(e=>Z(A.find(t=>t.productId===e.productId&&(e.variantIds.length<1||t.variantIds.includes(e.variantIds[0]))))).map((r,o)=>{const a=(E[h]?.minimumQuantity??0)>(b[h]?.length??0),i=A.find(e=>e.productId===r.productId&&(r.variantIds.length<1||e.variantIds.includes(r.variantIds[0])));return i?t.createElement(sm,{bundle:e,idx:o,key:r?.variantIds?.[0]??r.productId,product:i?.productDetails,handleAddToBundle:G,hideAddToBundle:!a,remainingQuantity:Q-s,themeColor:e?.dealTextColor,handleRemoveItem:e=>U(e,h),selecteditems:n,transitionActive:V,customVariantsQuantity:Y}):null}):A.filter(Z).map((r,o)=>t.createElement(sm,{bundle:e,idx:o,key:r.productId,product:r?.productDetails,handleAddToBundle:G,hideAddToBundle:s>=Q,remainingQuantity:Q-s,themeColor:e?.dealTextColor,handleRemoveItem:p,selecteditems:n,transitionActive:V,customVariantsQuantity:Y}))),!d&&t.createElement(yu,{builderTiers:e?.builderTiers,handleAddToCart:a,minimumQuantity:P,selectedProducts:n,showProductDetailsInTracker:e.showProductDetailsInTracker,handleRemoveItem:p,handleRemoveItemProductTier:U,selectedItemsQuantity:s,percentageOff:e.percentageOff,loading:i,bundleSubtotal:u,amountOff:e.amountOff,styles:e.customizations,dealAmount:e.dealAmount,themeColor:e?.dealTextColor??"#333",primaryTextColorCta:e?.primaryTextColorCta??"#fff",cornerRadiusType:e?.cornerRadiusType??"",selectedProductsByTier:b,renderingOnPage:d})),d&&t.createElement(yu,{handleAddToCart:a,minimumQuantity:P,builderTiers:e?.builderTiers,selectedProducts:n,showProductDetailsInTracker:e.showProductDetailsInTracker,loading:i,handleRemoveItem:p,handleRemoveItemProductTier:U,percentageOff:e.percentageOff,selectedItemsQuantity:s??0,bundleSubtotal:u??{price:0,compareAtPrice:0},amountOff:e.amountOff,styles:e.customizations,dealAmount:e.dealAmount,themeColor:C?.general.primaryColor||"#000",primaryTextColorCta:C.general.primaryContrastColor??"#fff",cornerRadiusType:e?.cornerRadiusType??"",selectedProductsByTier:b,renderingOnPage:d}),L&&void 0!==s&&(()=>{let r=s<e.minimumQuantity;return"productTier"==w?r=(E[h]?.minimumQuantity??0)>(b[h]?.length??0):"offerTier"==w&&(r=s<k.reduce((e,t)=>e+t.minimumQuantity,0)),t.createElement(am,{handleAddToBundle:G,ref:W,remainingQuantity:e.minimumQuantity-s,hideAddToBundle:!r,disableQuantitySelector:e?.disableQuantitySelector??!1,disableInventoryTracking:!e?.customizations.general.trackInventory,selectedProducts:n,themeColor:C?.general.primaryColor||"#000",primaryTextColorCta:e?.customizations?.general.primaryContrastColor??"#fff",primaryBackgroundColorCta:C?.general.primaryColor||"#000",cornerRadius:e?.customizations.byob.borderRadius,styles:e.customizations,reviewRatingType:e?.reviewRatingType??"none"})})())},gm=({product:e,selectedVariantId:n,onVariantChange:r,styles:o,originalPrice:a,dealPrice:l,isVertical:c=!1,variantOptions:d,storeCurrencyCode:s})=>{const p=e?.productDetails?.variants?.edges?.find(e=>e?.node?.id===n)?.node,u=i(()=>{if(p?.title&&e.productDetails.options){const t=p.title.split(" / ");if(t.length===e.productDetails.options.length)return t}return e.productDetails.options?.map(e=>e.values[0])||[]},[p,e.productDetails.options]),m=e=>{r(e)};return c?t.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",lineHeight:"normal",width:"165px",backgroundColor:"#F6F6F6",borderRadius:"20px",border:"1px solid #B3B3B3",boxShadow:"4px 4px 0px -1px #00000033",overflow:"hidden"}},t.createElement("div",{style:{position:"relative",width:"100%"}},o.comboBundle.subProductsImageVisibility&&t.createElement(t.Fragment,null,t.createElement("img",{src:p?.image?.url||e?.productDetails?.featuredMedia?.preview?.image?.url||"/placeholder.svg",alt:e?.productDetails?.featuredMedia?.alt,width:165,height:165,style:{objectFit:"cover",borderRadius:"20px",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",height:"100%",aspectRatio:o.general?.imageAspectRatio||"1/1"}}),t.createElement("div",{style:{marginTop:"8px",position:"absolute",bottom:"10px",left:"5px",right:"5px"}},e?.productDetails?.variants?.edges?.length>1&&t.createElement(t.Fragment,null,t.createElement("select",{value:n,onChange:e=>m(e.target.value),style:{padding:"8px 10px",border:"1px solid #ddd",backgroundColor:"#fff",color:"#333",fontSize:"14px",width:"100%",appearance:"none",marginRight:"30px"}},e?.productDetails?.variants?.edges.map(e=>t.createElement("option",{key:e?.node?.id,value:e?.node?.id,disabled:e.node.inventoryQuantity<=0},e?.node?.title))),t.createElement("div",{style:{position:"absolute",right:"1px",top:"2px",bottom:"0px",pointerEvents:"none",backgroundColor:"#F3F3F3",width:"15%",height:"calc(100% - 4px)",display:"flex",justifyContent:"center",alignItems:"center"}},t.createElement(F,null)))))),(o.comboBundle.subProductsProductTitleVisibility||o.comboBundle.subProductsProductPriceVisibility)&&t.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"40px",width:"100%",paddingBlock:"5px"}},o.comboBundle.subProductsProductTitleVisibility&&t.createElement("span",{style:{fontSize:"12px",color:"#333",fontWeight:"600",lineHeight:"normal",textAlign:"center",width:"fit-content"}},e?.productDetails?.title),o.comboBundle.subProductsProductPriceVisibility&&t.createElement("div",{style:{display:"flex",alignItems:"center",gap:"8px",lineHeight:"normal",fontSize:"14px"}},t.createElement("span",{style:{lineHeight:"normal"}},Wg(o.general.currencySymbol,s),Hg((Number(""!==p?.compareAtPrice?Number(p?.compareAtPrice):p?.price)/Number(a)*Number(l)).toFixed(2))),t.createElement("span",{style:{textDecoration:"line-through",color:"#999",lineHeight:"normal",fontSize:"12px"}},Wg(o.general.currencySymbol,s),Hg(""!==p?.compareAtPrice?p?.compareAtPrice:p?.price))))):t.createElement("div",{style:{display:"flex",alignItems:"center",gap:"16px",padding:"4px",lineHeight:"normal",borderRadius:"8px",transition:"background-color 0.3s",width:"100%",border:"1px solid transparent",..."right"===o.comboBundle.infoAlignment&&{flexDirection:"row-reverse"},..."center"===o.comboBundle.infoAlignment&&{justifyContent:"center"}},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#fafafa",e.currentTarget.style.border="1px solid #DFDFDF"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.border="1px solid transparent"}},o.comboBundle.subProductsImageVisibility&&t.createElement("div",{style:{position:"relative"}},t.createElement("img",{src:p?.image?.url||e?.productDetails?.featuredMedia?.preview?.image?.url||"/placeholder.svg",alt:e?.productDetails?.featuredMedia?.alt,height:80,style:{objectFit:"cover",borderRadius:"10px",border:"1px solid #DEDEDE",aspectRatio:"1/1",width:"90px",height:"90px"}}),t.createElement("div",{style:{position:"absolute",top:-8,right:-8,backgroundColor:"#f8f8f8",borderRadius:"50%",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #eee",fontSize:"14px"}},"1")),t.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"left"===o.comboBundle?.infoAlignment?"flex-start":"right"===o.comboBundle?.infoAlignment?"flex-end":"center"===o.comboBundle?.infoAlignment?"flex-start":void 0}},o.comboBundle.subProductsProductTitleVisibility&&t.createElement("span",{style:{fontSize:"14px",fontWeight:"600",lineHeight:"normal",display:"flex",alignItems:"center",gap:"8px"}},t.createElement("span",null," ",e?.productDetails?.title," "),e.productDetails.variants.edges.length>1&&d&&u&&t.createElement("span",{style:{fontSize:"10px",color:"#666",backgroundColor:"#F4F4F4",padding:"2px 8px",borderRadius:"10px",border:"1px solid #ddd"}},u.length>1?u.join(" / "):u)),o.comboBundle.subProductsProductPriceVisibility&&t.createElement("div",{style:{display:"flex",gap:"8px",marginTop:"5px",alignItems:"baseline"}},t.createElement("span",{style:{lineHeight:"normal"}},Wg(o.general.currencySymbol,s),Hg((Number(""!==p?.compareAtPrice?Number(p?.compareAtPrice):p?.price)/Number(a)*Number(l)).toFixed(2))),t.createElement("span",{style:{textDecoration:"line-through",color:"#999",fontSize:"14px",lineHeight:"normal"}},Wg(o.general.currencySymbol,s),Hg(""!==p?.compareAtPrice?p?.compareAtPrice:p?.price))),e.productDetails.variants.edges.length>1&&e.productDetails.options.length>0?t.createElement(t.Fragment,null,e.productDetails.options.map((n,r)=>t.createElement("div",{key:n.name,style:{marginTop:"10px",display:"flex",flexDirection:"row",gap:"8px",alignItems:"center"}},e.productDetails.options.length>1&&t.createElement("label",{style:{fontSize:"12px",fontWeight:"500",color:"#333"}},n.name,":"),n?.values?.length>1&&t.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px",flexWrap:"wrap"}},n.values.map(a=>{const i=d&&d?.options?.find(e=>e.name===n.name);return i&&"color"===i?.type?t.createElement("button",{key:a,onClick:()=>{const t=[...u];t[r]=a;const n=e.productDetails.options.length>0?t.join(" / "):t[r],o=e.productDetails.variants.edges.find(e=>e.node.title===n)?.node.id;o&&m(o)},style:{borderRadius:"50%",padding:"1px",backgroundColor:"white",border:u[r]===a?`1px solid ${o.general?.ctaBackgroundColor}`:"1px solid transparent"}},i?.values.find(e=>e.name===a)?.value?t.createElement("div",{style:{width:u[r]===a?"26px":"24px",height:u[r]===a?"26px":"24px",borderRadius:"50%",backgroundColor:i?.values.find(e=>e.name===a)?.value,cursor:"pointer"}},t.createElement("span",null)):t.createElement("span",{key:a,style:{padding:"4px 8px",border:u[r]===a?`1px solid ${o.general?.ctaBackgroundColor}`:"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:u[r]===a?"#F7F7F7":"transparent",color:"#707070",cursor:"pointer",fontSize:"10px",fontWeight:"600"}},a)):i&&"image"===i?.type?t.createElement("button",{key:a,onClick:()=>{const t=[...u];t[r]=a;const n=e.productDetails.options.length>0?t.join(" / "):t[r],o=e.productDetails.variants.edges.find(e=>e.node.title===n)?.node.id;o&&m(o)},style:{border:u[r]===a?`1px solid ${o.general?.ctaBackgroundColor}`:"1px solid #E4E4E4",borderRadius:"100%",backgroundColor:u[r]===a?"#F7F7F7":"transparent",cursor:"pointer",padding:"0px",width:u[r]===a?"26px":"24px",height:u[r]===a?"26px":"24px",overflow:"hidden"}},i?.values.find(e=>e.name===a)?.value?t.createElement("img",{src:i?.values.find(e=>e.name===a)?.value||"/placeholder.svg",alt:a,style:{width:u[r]===a?"26px":"24px",height:u[r]===a?"26px":"24px",objectFit:"cover",borderRadius:"100%",aspectRatio:"1/1"}}):t.createElement("span",{key:a,style:{padding:"4px 8px",border:u[r]===a?`1px solid ${o.general?.ctaBackgroundColor}`:"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:u[r]===a?"#F7F7F7":"transparent",color:"#707070",cursor:"pointer",fontSize:"10px",fontWeight:"600"}},a)):t.createElement("button",{key:a,onClick:()=>{const t=[...u];t[r]=a;const n=e.productDetails.options.length>0?t.join(" / "):t[r],o=e.productDetails.variants.edges.find(e=>e.node.title===n)?.node.id;o&&m(o)},style:{padding:"4px 8px",border:u[r]===a?`1px solid ${o.general?.ctaBackgroundColor}`:"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:u[r]===a?"#F7F7F7":"transparent",color:"#707070",cursor:"pointer",fontSize:"10px",fontWeight:"600"}},a)}))))):t.createElement(t.Fragment,null,e?.productDetails?.variants?.edges?.length>1&&t.createElement("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap",lineHeight:"normal",marginTop:"10px"}},e?.productDetails?.variants?.edges.map(e=>t.createElement("button",{key:e?.node?.id,onClick:()=>m(e?.node?.id),disabled:e.node.inventoryQuantity<=0,style:{padding:"4px 8px",border:n===e?.node?.id?`1px solid ${o.general?.ctaBackgroundColor}`:"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:n===e?.node?.id?"#F7F7F7":"transparent",color:"#707070",cursor:"pointer",fontSize:"12px",fontWeight:"500"}},e?.node?.title))))))},xm=({bundle:e,addToCartFunction:n})=>{const[r,o]=c(!1),[a,d]=c(window.innerWidth<786),[s,p]=c(()=>{const t={};return e.products.forEach((e,n)=>{const r=e.productDetails.variants.edges.find(e=>e.node.inventoryQuantity>0)?.node;t[n]=r?r.id:e?.productDetails?.variants?.edges[0]?.node?.id}),t}),u=e.products?.filter(e=>e?.productDetails?.variants?.edges.some(e=>e?.node?.inventoryQuantity>0))||[],m=Object.keys(s).length===u.length,f=(e,t)=>{p(n=>({...n,[e]:t}))},{originalPrice:g,dealPrice:x,offerValue:h}=i(()=>{const{price:t,compareAtPrice:n}=Object.entries(s).reduce((t,[n,r])=>{const o=e.products[parseInt(n)],a=o.productDetails.variants.edges?.find(e=>e.node.id===r)?.node,i=parseFloat(a?.price??"0"),l=parseFloat(a?.compareAtPrice||i.toString());return t.price+=i,t.compareAtPrice+=l,t},{price:0,compareAtPrice:0}),r=Math.max(t,n);let o=Math.min(t,n);e?.percentageOff?o=t*(1-e.percentageOff/100):e?.dealAmount?o=e.dealAmount:e?.amountOff&&(o=t-e.amountOff);const a=n-o;return{originalPrice:r.toFixed(2),dealPrice:o.toFixed(2),offerValue:a.toFixed(2)}},[s,e.products,e.percentageOff,e.dealAmount,e.amountOff]);l(()=>{const e=()=>{d(window.innerWidth<786)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);const y=e.customizations,b=y.comboBundle?.comboCardStyle||"auto",v="vertical"===b||"auto"===b&&!a,w=y.comboBundle?.embedContentVisibility,C="bundles"==e.appName?e.pageHeader?.title:e?.title,E="bundles"==e.appName?e.pageHeader?.description:e?.subtitle;return t.createElement("div",{style:{lineHeight:"normal",maxWidth:"800px",marginBlock:y.comboBundle?.verticalMargin||"0px",display:"flex",flexDirection:"column",alignItems:"left"===y.comboBundle?.infoAlignment?"flex-start":"right"===y.comboBundle?.infoAlignment?"flex-end":"center"===y.comboBundle?.infoAlignment?"center":void 0,textAlign:y.comboBundle?.infoAlignment??"left",fontFamily:"system-ui, -apple-system, sans-serif"}},w&&y.comboBundle?.selectedEmbedContentVisibilityOptions?.includes("Combo Title")&&t.createElement("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"10px"}},t.createElement("h2",{style:{fontSize:y.comboBundle?.productTitleFontSize||"28px",color:y.comboBundle?.titleTextColor||"#000",fontWeight:"bold",lineHeight:"1.6",margin:0}},C)),w&&y?.comboBundle?.selectedEmbedContentVisibilityOptions?.includes("Combo Price")&&t.createElement(t.Fragment,null,t.createElement("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:y.comboBundle?.titleTextColor||"#000",fontSize:(parseInt(y.comboBundle?.productTitleFontSize?.replace("px",""))||28)-4+"px"}},t.createElement("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap"}},t.createElement("span",{style:{fontWeight:"bold",lineHeight:"1",minWidth:"fit-content"}},Wg(y.general.currencySymbol,e.storeCurrencyCode),Hg(x)),t.createElement("div",{style:{color:y.comboBundle?.titleTextColor||"#666",textDecoration:"line-through",verticalAlign:"middle",display:"inline-block",minWidth:"fit-content"}},Wg(y.general.currencySymbol,e.storeCurrencyCode),Hg(g)),t.createElement("span",{style:{backgroundColor:"#D3122A",color:"white",padding:"4px 8px",fontSize:"14px",borderRadius:"20px",fontWeight:"500",lineHeight:"1",minWidth:"fit-content"}},e?.percentageOff?`${e?.percentageOff}% Off`:e?.amountOff?`${Wg(y.general.currencySymbol,e.storeCurrencyCode)}${Hg(e?.amountOff)} Off`:`Save ${Wg(y.general.currencySymbol,e.storeCurrencyCode)}${Hg(h)}`))),t.createElement("div",{style:{display:"flex",alignItems:"center",gap:"8px",margin:"15px 0px"},className:"yt-comboBundle-checkoutSpecific-container"},t.createElement("div",{style:{display:"flex",width:"12px",height:"12px",justifyContent:"center",alignItems:"center",alignContent:"center",borderRadius:"50%",backgroundColor:y.general?.ctaBackgroundColor||"#1e1e1e",flexShrink:0},className:"yt-comboBundle-checkoutSpecific-dot"},t.createElement("span",null)),t.createElement("p",{style:{fontSize:y.comboBundle.productDescriptionFontSize||"16px",color:y.comboBundle?.descriptionTextColor||"#000",alignItems:"center",margin:0,lineHeight:"1.2"},className:"yt-comboBundle-checkoutSpecific-text"},"Tax included. ",t.createElement("u",null,"Shipping")," calculated at checkout."))),y.comboBundle.subProductsSectionVisibility&&t.createElement(t.Fragment,null,v?t.createElement("div",{style:{display:"flex",flexDirection:"row",gap:"20px",marginTop:"10px",flexWrap:"wrap"}},e.products.map((n,r)=>{const o=n?.productDetails?.variants?.edges?.find(e=>e?.node?.id===s[r])?.node;return o?t.createElement(gm,{key:`combo-product-${r}-${n.productId}`,product:n,styles:y,originalPrice:g,dealPrice:x,selectedVariantId:s[r],onVariantChange:e=>f(r,e),isVertical:v,variantOptions:e.variantOptions,storeCurrencyCode:e.storeCurrencyCode}):null})):t.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"10px",width:"100%"}},y.comboBundle.subProductsSectionVisibility&&e.products.map((n,r)=>t.createElement(gm,{key:`combo-product-horizontal-${r}-${n.productId}`,product:n,styles:y,originalPrice:g,dealPrice:x,selectedVariantId:s[r],onVariantChange:e=>f(r,e),variantOptions:e.variantOptions})))),t.createElement("div",{style:{borderTop:"1px solid #eee",display:"flex",flexDirection:"column",rowGap:"5px",marginTop:"20px",width:"100%"}},t.createElement("button",{style:{backgroundColor:m?y.general?.ctaBackgroundColor||"#121212":y.general.disabledButtonColor,color:y.general?.ctaTextColor||"#FFFFFF",fontSize:"16px",borderRadius:y.general.ctaBorderRadius??"20px",fontWeight:"bold",cursor:m?"pointer":"not-allowed",border:`1px solid ${m?y.general?.ctaBackgroundColor||"#121212":y.general.disabledButtonColor}`,boxShadow:y.general.ctaShadowType,padding:y.general?.ctaPadding,width:y.general?.ctaWidth,margin:"0"},disabled:!m,onMouseOver:e=>{y.general.customizeHoverState&&m&&(e.currentTarget.style.backgroundColor=y.general?.ctaHoverBackgroundColor||"#F1F1F1",e.currentTarget.style.color=y.general?.ctaHoverTextColor||"#121212")},onMouseOut:e=>{y.general.customizeHoverState&&m&&(e.currentTarget.style.backgroundColor=y.general?.ctaBackgroundColor||"#121212",e.currentTarget.style.color=y.general?.ctaTextColor||"#FFFFFF")},onClick:async()=>{try{if(o(!0),!n)return void o(!1);const t=Object.entries(s).map(([t,n])=>{const r=e.products[parseInt(t)],o=r.productDetails.variants.edges.find(e=>e.node.id===n)?.node;return o?{variantId:n,price:Number(o.price)}:null}).filter(e=>null!==e),r=Object.values(s);await n(Number(g),r,Number(x),t)}catch(e){}o(!1)}},r?t.createElement(na,{color:"white",loading:r,size:15,"aria-label":"Loading Spinner","data-testid":"loader"}):t.createElement(t.Fragment,null,m?y.comboBundle?.ctaTitle??"Add Bundle to cart":y.general.outOfStockLabel||"Out of Stock"," "))),w&&y.comboBundle?.selectedEmbedContentVisibilityOptions?.includes("Combo Description")&&t.createElement("div",{style:{margin:"20px 0px"}},t.createElement("h4",{style:{fontSize:"16px",color:y.comboBundle?.descriptionTextColor||"#000",lineHeight:"1.2",margin:0,padding:"8px",backgroundColor:y.general.primaryColor+"20"}},"Description"),t.createElement("div",{style:{fontSize:y.comboBundle.productDescriptionFontSize||"16px",color:y.comboBundle?.descriptionTextColor||"#000",lineHeight:"1.2",padding:"8px",backgroundColor:y.general.primaryColor+"08"}},t.createElement("p",null,E))))},hm=h.div`
|
|
2864
|
+
`,pu=n(({removeCartItem:e,addCartItem:n,getProductDetailsByVariantId:r,themeColor:a,cartComponentsCornerRadius:d,cartComponentsCornerType:s,backgroundColor:p,removeFreebieFromCart:u,freebieClaimAddToCart:m,productClaimCtaButtonText:f,backgroundSubdued:g,primaryTextColor:x},h)=>{const[y,b]=rn(xn),v=tn(on),w=o(null),[C,E]=c(null),[k,T]=c(!1),[S,B]=c({}),[$,z]=c(y?.variantId),[D,I]=c(y?.quantity||1),[P,N]=c(!1),[_,O]=c(null);l(()=>{const e=localStorage.getItem("yt_variant_options");if(e)try{const t=JSON.parse(e);Array.isArray(t)&&O({options:t})}catch(e){console.error("Failed to parse yt_variant_options from localStorage",e)}},[]),l(()=>{y?.open?setTimeout(()=>{N(!0)},10):N(!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;if(t=y.freebieSelection&&Array.isArray(n)&&n.length>0?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}`]}),B(n)}else z(void 0),B({})}E(e)}})()},[C,r,y]);const M=(e,t)=>{const n={...S,[e]:t};B(n);const r=C?.variants?.find(e=>C.options.every((t,r)=>e[`option${r+1}`]===n[t.name]));r&&(y?.freebieSelection&&Array.isArray(y.allowedVariantIds)&&y.allowedVariantIds.length>0?y.allowedVariantIds.includes(String(r.id))&&z(String(r.id)):z(String(r.id)))},F=C?.variants?.find(e=>String(e.id)===String($)),A=kn(v,v?.currency),R=i(()=>{const e={};if(!C)return e;const t=y?.freebieSelection&&Array.isArray(y?.allowedVariantIds)&&y.allowedVariantIds.length>0,n=y.allowedVariantIds;return C.options.forEach(r=>{e[r.name]=r.values.filter(e=>C.variants.filter(t=>{const n=C.options.indexOf(r);if(t[`option${n+1}`]!==e)return!1;return!!C.options.every((e,n)=>{if(e.name===r.name)return!0;const o=S[e.name];return!o||t[`option${n+1}`]===o})&&!!t.available}).some(e=>!t||n?.includes(String(e.id))))}),e},[C,S,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:P?1:0,transition:"opacity 0.3s ease"},onClick:()=>{N(!1),setTimeout(()=>{b({open:!1,variantId:void 0,handle:void 0,quantity:void 0})},300)}}),t.createElement(Hp,{ref:h,className:"yt-variant-selection-popup"},t.createElement(Up,{ref:w,style:{backgroundColor:p||"white",opacity:P?1:0,transform:P?"translateY(0)":"translateY(20px)"},$themeColor:a,onClick:e=>e.stopPropagation()},y?.freebieSelection&&t.createElement(Wp,null,"Unlocked Freebie"),t.createElement(Qp,null,t.createElement(qp,null,t.createElement(Yp,null,t.createElement(Zp,{src:F?.featured_image?.src??C?.featured_image,alt:F?.featured_image?.alt??C?.title})),t.createElement(Kp,null,t.createElement(Xp,{$themeColor:a,$primaryTextColor:x,href:`${C?.url}?variant=${F?.id}`},C?.title),t.createElement(cu,null,t.createElement(Jp,null,t.createElement(eu,{$primaryTextColor:x},A,Cn(F?.price,v?.currency??"INR")),null!=F?.compare_at_price&&null!=F?.price&&F.compare_at_price>F.price&&t.createElement(tu,null,A,Cn(F?.compare_at_price,v?.currency??"INR"))),!y?.freebieSelection&&t.createElement(ba,{value:D,handleItemQuantityIncrement:async()=>{I(e=>e+1)},handleItemQuantityDecrement:async()=>{D>1&&I(e=>e-1)},cartComponentsCornerRadius:d,cartComponentsCornerType:s,backgroundSubdued:g})))),C?.options?.map(e=>{const n=_?.options?.find(t=>t.name.trim().toLowerCase()===e.name.trim().toLowerCase());return t.createElement(ru,{key:e.name},t.createElement(au,null,t.createElement("span",null,"Select ",e.name),S[e.name]&&t.createElement(iu,null,S[e.name])),t.createElement(lu,null,R[e.name]?.map(r=>{const o=S[e.name]===r,i=n?.values?.find(e=>e.name.trim().toLowerCase()===r.trim().toLowerCase());return"color"===n?.type&&i?.value?t.createElement(du,{key:r,$isSelected:o,$themeColor:a,onClick:()=>M(e.name,r),$colorValue:i.value}):"image"===n?.type&&i?.value?t.createElement(su,{key:r,$isSelected:o,$themeColor:a,onClick:()=>M(e.name,r),$imageUrl:i.value}):t.createElement(ou,{$themeColor:a,key:r,$isSelected:o,backgroundColor:o?a:void 0,onClick:()=>M(e.name,r)},r)})))})),t.createElement(nu,{$themeColor:a??"#C33",onClick:y?.productRec?async()=>{if($&&n){T(!0);try{await n($,D,"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)}T(!1)}}:async()=>{if(!$)return;const t=!!y?.lineItemKey,r=String($)!==String(y?.variantId);if(!t||r){T(!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($,D,"variant-selector",!1,y.handle),b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})}catch(e){}T(!1)}else b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!$||k},k?t.createElement(na,{color:"white",size:13}):y?.productRec?"ADD TO BAG":y?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):t.createElement(Hp,{ref:h},t.createElement(Up,{style:{backgroundColor:p||"white"}},t.createElement(Gp,null,t.createElement(ia,{color:a||"#868E96"}))))});pu.displayName="DesktopVariantPopup";const uu=n(({removeCartItem:e,addCartItem:n,getProductDetailsByVariantId:r,themeColor:a,cartComponentsCornerRadius:d,cartComponentsCornerType:s,backgroundColor:p,removeFreebieFromCart:u,freebieClaimAddToCart:m,productClaimCtaButtonText:f,backgroundSubdued:g,primaryTextColor:x},h)=>{const[y,b]=rn(xn),v=tn(on),[w,C]=c(null),[E,k]=c(!1),[T,S]=c({}),[B,$]=c(y?.variantId),[z,D]=c(y?.quantity||1),I=o(null),[P,N]=c(null),[_,O]=c(!1);l(()=>{const e=localStorage.getItem("yt_variant_options");if(e)try{const t=JSON.parse(e);Array.isArray(t)&&N({options:t})}catch(e){console.error("Failed to parse yt_variant_options from localStorage",e)}},[]),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;if(t=y.freebieSelection&&Array.isArray(n)&&n.length>0?e.variants.find(e=>e.available&&n.includes(String(e.id))):e.variants.find(e=>e.available&&String(e.id)===String(y.variantId)),t){$(String(t.id));const n={};e.options.forEach((e,r)=>{n[e.name]=t[`option${r+1}`]}),S(n)}else $(void 0),S({})}C(e)}catch(e){}})()},[w,r,y]),l(()=>{},[p,e,n,r]);const M=(e,t)=>{const n={...T,[e]:t};S(n);const r=w?.variants?.find(e=>w.options.every((t,r)=>e[`option${r+1}`]===n[t.name]));r&&$(String(r.id))},F=w?.variants?.find(e=>String(e.id)===String(B)),A=kn(v,v?.currency),R=i(()=>{const e={};if(!w)return e;const t=y?.freebieSelection&&Array.isArray(y?.allowedVariantIds)&&y.allowedVariantIds.length>0,n=y.allowedVariantIds;return w.options.forEach(r=>{e[r.name]=r.values.filter(e=>w.variants.filter(t=>{const n=w.options.indexOf(r);if(t[`option${n+1}`]!==e)return!1;return!!w.options.every((e,n)=>{if(e.name===r.name)return!0;const o=T[e.name];return!o||t[`option${n+1}`]===o})&&!!t.available}).some(e=>!t||n?.includes(String(e.id))))}),e},[w,T,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(Hp,{ref:h,className:"yt-variant-selection-popup"},t.createElement(Up,{ref:I,style:{backgroundColor:p||"white",opacity:_?1:0,transform:_?"translateY(0)":"translateY(20px)"},$themeColor:a,onClick:e=>e.stopPropagation()},y?.freebieSelection&&t.createElement(Wp,null,"Unlocked Freebie"),t.createElement(Qp,null,t.createElement(qp,null,t.createElement(Yp,null,t.createElement(Zp,{src:F?.featured_image?.src??w?.featured_image,alt:F?.featured_image?.alt??w?.title})),t.createElement(Kp,null,t.createElement(Xp,{$themeColor:a,$primaryTextColor:x,href:`${w?.url}?variant=${F?.id}`},w?.title),t.createElement(cu,null,t.createElement(Jp,null,t.createElement(eu,{$primaryTextColor:x},A,Cn(F?.price,v?.currency??"INR")),null!=F?.compare_at_price&&null!=F?.price&&F.compare_at_price>F.price&&t.createElement(tu,null,A,Cn(F?.compare_at_price,v?.currency??"INR"))),!y?.freebieSelection&&t.createElement(ba,{value:z,handleItemQuantityIncrement:async()=>{D(e=>e+1)},handleItemQuantityDecrement:async()=>{z>1&&D(e=>e-1)},cartComponentsCornerRadius:d,cartComponentsCornerType:s,backgroundSubdued:g})))),w?.options?.map(e=>{const n=P?.options?.find(t=>t.name.trim().toLowerCase()===e.name.trim().toLowerCase());return t.createElement(ru,{key:e.name},t.createElement(au,null,t.createElement("span",null,"Select ",e.name,":"),T[e.name]&&t.createElement(iu,null,T[e.name])),t.createElement(lu,null,R[e.name]?.map(r=>{const o=T[e.name]===r,i=n?.values?.find(e=>e.name.trim().toLowerCase()===r.trim().toLowerCase());return"color"===n?.type&&i?.value?t.createElement(du,{key:r,$isSelected:o,$themeColor:a,onClick:()=>M(e.name,r),$colorValue:i.value}):"image"===n?.type&&i?.value?t.createElement(su,{key:r,$isSelected:o,$themeColor:a,onClick:()=>M(e.name,r),$imageUrl:i.value}):t.createElement(ou,{$themeColor:a,key:r,$isSelected:o,backgroundColor:o?a:void 0,onClick:()=>M(e.name,r)},r)})))})),t.createElement(nu,{$themeColor:a??"#C33",onClick:y?.productRec?async()=>{if(B&&n){k(!0);try{await n(B,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)}k(!1)}}:async()=>{if(!B)return;const t=!!y?.lineItemKey,r=String(B)!==String(y?.variantId);if(!t||r){k(!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,z,"variant-selector",!1,y.handle),b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})}catch(e){}k(!1)}else b({open:!1,variantId:void 0,quantity:void 0,handle:void 0,lineItemKey:void 0})},disabled:!B||E},E?t.createElement(na,{color:"white",size:13}):y?.productRec?"ADD TO BAG":y?.freebieSelection?f||"CLAIM FREEBIE":"GET IN BAG")))):t.createElement(Hp,{ref:h},t.createElement(Up,{style:{backgroundColor:p||"white"}},t.createElement(Gp,null,t.createElement(ia,{color:a||"#868E96"}))))}),mu=({exploreCTAColor:e,checkoutFontSize:n,handleDecrement:r,handleIncrement:a,removeCartItem:i,addCartItem:d,cartTitle:s,emptyCartTitle:p,emptyCartDescription:u,emptyCartButtons:m,backgroundColor:f,backgroundSubdued:x,tertiaryColor:h,tertiaryTextColor:y,backdrop:b=!0,cartData:v,isUserSignedIn:w,showBundle:C,showCouponOptions:E,bundleProducts:k,discountAmountOff:T,loyaltyIcon:S,pointsToBeUsed:B,rewardMultiplier:$,redemptionMultiplier:z,removeDiscount:D,applyDiscount:I,discountApplied:P,rewardCoupons:N,userTotalPoints:_,checkoutFunction:O,joinNowFunction:M,guestLoyaltyPercentage:F,showToggleButton:A,isOpen:R,setIsOpen:L,isDev:j,switchWidthVariant:V,recProductsList:H,showMultiStepProgressBar:W,cartCheckpoints:U,redemptionRate:G,pointsRewardRate:Q,showCartLevelAltPay:q,guestRewardCoupon:Y,showGuestDiscountCoupon:Z,applyTemplateDiscount:K,exploreCtaRedirectLink:X,discountAmountApplied:J,discountInCheckoutButton:ee,isStickyCheckout:te,showDiscountsListToGuestUsers:ne,showApplyCouponsButtonToGuestUsers:re,handleCheckpointCrossed:oe,customCartProgressBarCriteria:ae,checkoutButtonColor:ie,ctaButtonBackgroundColor:le,ctaButtonTextColor:ce,primaryTextColor:de,productRecsCtaButtonText:se,productRecsTitleText:pe,secondaryTextColor:ue,showProductRecsOnDesktop:me,showProductRecsOnMobile:fe,themeColor:ge,themeTextColor:xe,companyName:he,gstNumber:ye,showGSTOption:be,applyGSTToCart:ve,showMOVForProgressTiers:we,freeProduct:Ce,showLoyaltyCta:Ee,freeProductAdjustedCartTotal:ke,minimumOrderValueToAvailDiscount:Te,signinCTAButtonVisible:Se,cartSigninCTAMainText:Be,showNoteOption:$e,applyNoteToCart:ze,note:De,inlineCartOfferInfoText:Ie,inlineCartOfferInfoRedirectLink:Pe,cartOfferTermsAndConditionsText:Ne,showEditOptionOnProducts:_e,getProductDetailsByVariantId:Oe,onSetLoading:Me,showVariantSelectionDropdownInProductRecs:Fe,originalCartSubtotal:Ae,currentTier:Re,freebieProductsInCart:Le,showFreebieClaim:je,addFreebieToCart:Ve,freebiesInCart:He,effectiveQuantityForProgressBar:We,productPercentageOffMapping:Ue,productTagsMapping:Ge,removeFreebieFromCart:Qe,postalCodeList:qe,enableGeoLocationDeliveryRestriction:Ye,applyPostalCodeAndDeliverySlotToCart:Ze,showDeleteOnFreebies:Ke,freebieCouponTemplates:Xe,freebieFlowCheckpoints:Je,freebieClaimData:et,showStickyAddToCart:tt,stickyCartLineItem:nt,postalCodeBasedItemTrackingParameter:rt,enableSlotPicker:ot,deliveryHeaderTitle:at,deliveryAvailableText:it,deliveryNotAvailableText:lt,giftWrapSetupData:ct,giftWrapProductDetail:dt,enableCustomCartOnCartPage:st,isCartPage:pt,progressBarFreeProductIconType:ut,addToStickyCart:mt,productRecsCardLayout:ft,productRecsCardListVariant:gt,showCartTimer:xt,showFreebieMilestone:ht,freebieMilestoneData:yt,cartTimerInMinutes:bt,cartTimerCustomText:vt,imageAspectSelector:wt,cartComponentsCornerType:Ct,cartComponentsCornerRadius:Et,stickyCartCustomizationData:kt,cartOffersCarousalData:Tt,stickyBarBuyNowFunction:St,gstSectionCustomizationData:Bt,noteSectionTitle:$t,checkoutSectionMessage:zt,checkoutSectionMessageRedirectLink:Dt,checkoutSectionMessageDisplay:It,showVariantSelectionDropdownInProductClaim:Pt,loyaltyDiscount:Nt,brandTokenName:_t,showDiscountOnMRP:Ot,prefixMessageText:Mt,suffixMessageText:Ft,successMessageText:At,toggleDecimal:Rt,cartOffersCarouselHeight:Lt,disableCheckoutButton:jt,showEmptyCartRecommendations:Vt,emptyProductRecsTitleText:Ht,checkoutButtonBottomSpacing:Wt,showPoweredByBadge:Ut=!0,applyCouponCode:Gt,showApplyCoupon:Qt,enableConfetti:qt,showCheckoutButtonPaymentIcons:Yt=!0})=>{const Zt=nn(on),[Kt,Xt]=rn(xn),[Jt,en]=rn(rl),tn=()=>L(!R);g(()=>{v&&Zt(v)},[v]);const an=o(null);l(()=>{function e(e){an.current&&!an.current.contains(e.target)&&(Xt({open:!1,variantId:void 0,quantity:void 0,handle:void 0}),en({isOpen:!1}))}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);const[ln,cn]=c(!1);return l(()=>{const e=()=>{cn(window.innerWidth>=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),t.createElement(t.Fragment,null,t.createElement("div",{style:{position:st&&pt?"relative":"absolute",width:"100%",display:st&&pt?"flex":"block",alignItems:"center",justifyContent:"center"}},A&&!(st&&pt)&&t.createElement("button",{style:{margin:"16px"},onClick:tn},R?"Close Drawer":"Open Drawer"),R&&b&&!(st&&pt)&&t.createElement("div",{onClick:tn,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(Ep,{isCartPage:pt,enableCustomCartOnCartPage:st,isOpen:R,setIsOpen:L,backgroundColor:f,backgroundSubdued:x??"#F5F5F5",tertiaryColor:h,tertiaryTextColor:y,exploreCTAColor:e,checkoutFontSize:n,cartTitle:s,handleDecrement:r,handleIncrement:a,removeCartItem:i,addCartItem:d,emptyCartTitle:p,emptyCartButtons:m,emptyCartDescription:u,showCouponOptions:E,showBundle:C,isUserSignedIn:w,bundleProducts:k,discountAmountOff:T,loyaltyIcon:S,pointsToBeUsed:B,rewardMultiplier:$,redemptionMultiplier:z,removeDiscount:D,applyDiscount:I,discountApplied:P,rewardCoupons:N,userTotalPoints:_,checkoutFunction:O,joinNowFunction:M,guestLoyaltyPercentage:F,isDev:j,switchWidthVariant:V,recProductsList:H,showMultiStepProgressBar:W,cartCheckpoints:U,redemptionRate:G,pointsRewardRate:Q,showCartLevelAltPay:q,guestRewardCoupon:Y,showGuestDiscountCoupon:Z,applyTemplateDiscount:K,exploreCtaRedirectLink:X,discountAmountApplied:J,discountInCheckoutButton:ee,isStickyCheckout:te,showDiscountsListToGuestUsers:ne,showApplyCouponsButtonToGuestUsers:re,handleCheckpointCrossed:oe,customCartProgressBarCriteria:ae??"minimum_order_value",checkoutButtonColor:ie,ctaButtonBackgroundColor:le,ctaButtonTextColor:ce,primaryTextColor:de,productRecsCtaButtonText:se,productRecsTitleText:pe,secondaryTextColor:ue,showProductRecsOnDesktop:me,showProductRecsOnMobile:fe,themeColor:ge,themeTextColor:xe,companyName:he,gstNumber:ye,showGSTOption:be,applyGSTToCart:ve,showMOVForProgressTiers:we,freeProduct:Ce,showLoyaltyCta:Ee,freeProductAdjustedCartTotal:ke,minimumOrderValueToAvailDiscount:Te,signinCTAButtonVisible:Se,cartSigninCTAMainText:Be,applyNoteToCart:ze,note:De,showNoteOption:$e,inlineCartOfferInfoText:Ie,inlineCartOfferInfoRedirectLink:Pe,cartOfferTermsAndConditionsText:Ne,showEditOptionOnProducts:_e,onSetLoading:Me,showVariantSelectionDropdownInProductRecs:Fe,originalCartSubtotal:Ae,currentTier:Re,freebieProductsInCart:Le,cartOffersCarousalData:Tt,showFreebieClaim:je,addFreebieToCart:Ve,freebiesInCart:He,effectiveQuantityForProgressBar:We,productPercentageOffMapping:Ue,productTagsMapping:Ge,removeFreebieFromCart:Qe,postalCodeList:qe,enableGeoLocationDeliveryRestriction:Ye,applyPostalCodeAndDeliverySlotToCart:Ze,showDeleteOnFreebies:Ke,freebieCouponTemplates:Xe,freebieFlowCheckpoints:Je,freebieClaimData:et,postalCodeBasedItemTrackingParameter:rt,enableSlotPicker:ot,deliveryHeaderTitle:at,deliveryAvailableText:it,deliveryNotAvailableText:lt,giftWrapSetupData:ct,giftWrapProductDetail:dt,progressBarFreeProductIconType:ut,productRecsCardLayout:ft,productRecsCardListVariant:gt,showCartTimer:xt,showFreebieMilestone:ht,freebieMilestoneData:yt,cartTimerCustomText:vt,cartTimerInMinutes:bt,imageAspectSelector:wt,cartComponentsCornerType:Ct,cartComponentsCornerRadius:Et,gstSectionCustomizationData:Bt,noteSectionTitle:$t,checkoutSectionMessage:zt,checkoutSectionMessageRedirectLink:Dt,checkoutSectionMessageDisplay:It,showVariantSelectionDropdownInProductClaim:Pt,loyaltyDiscount:Nt,getProductDetailsByVariantId:Oe,brandTokenName:_t,showDiscountOnMRP:Ot??!0,prefixMessageText:Mt,suffixMessageText:Ft,successMessageText:At,toggleDecimal:Rt,cartOffersCarouselHeight:Lt,disableCheckoutButton:jt,showEmptyCartRecommendations:Vt,emptyProductRecsTitleText:Ht,checkoutButtonBottomSpacing:Wt,showPoweredByBadge:Ut,applyCouponCode:Gt,showApplyCoupon:Qt,enableConfetti:qt,showCheckoutButtonPaymentIcons:Yt}),tt&&nt&&d&&t.createElement(Vp,{showStickyCart:tt,stickyCartCustomizationData:kt,product:nt,addCartItem:d,onSetLoading:Me,themeColor:ge,themeTextColor:xe,cartData:v,isCartOpen:R,setIsCartOpen:L,ctaButtonBackgroundColor:le,ctaButtonTextColor:ce,addToStickyCart:mt,cartComponentsCornerRadius:Et,cartComponentsCornerType:Ct,checkoutFunction:St,backgroundColor:f,primaryTextColor:de}),ln&&Kt.open&&t.createElement(pu,{backgroundColor:f,ref:an,isDev:j,removeCartItem:i,addCartItem:d,getProductDetailsByVariantId:Oe,themeColor:ge,cartComponentsCornerRadius:Et,cartComponentsCornerType:Ct,removeFreebieFromCart:Qe,freebieClaimAddToCart:Ve,productClaimCtaButtonText:et?.productClaimCtaButtonText,backgroundSubdued:x??"#F5F5F5",primaryTextColor:de}),!ln&&Kt.open&&t.createElement(uu,{ref:an,isDev:j,removeCartItem:i,addCartItem:d,getProductDetailsByVariantId:Oe,themeColor:ge,cartComponentsCornerRadius:Et,cartComponentsCornerType:Ct,backgroundColor:f,removeFreebieFromCart:Qe,freebieClaimAddToCart:Ve,productClaimCtaButtonText:et?.productClaimCtaButtonText,backgroundSubdued:x??"#F5F5F5",primaryTextColor:de})))};const fu=({tiers:e,isMobile:n=!1,selectedProductsByTier:r,selectedProducts:o,themeColor:a,showProductDetailsInTracker:i,handleRemoveItemProductTier:l,cornerRadius:c,currencySymbol:d})=>t.createElement(t.Fragment,null,e.map((a,s)=>{const p=a.minimumQuantity-(r[s]?.length??0),u=o?.filter(e=>r[s]?.includes(e.variantId));return t.createElement("div",{className:"yt-bundleBuilderTracker-tier-product-list",style:{display:"flex",width:"100%"}},t.createElement("div",null,t.createElement("div",{style:{display:"flex",gap:"5px"}},u?.map?.(e=>{const o=e.product.variants?.edges?.find(t=>t.node.id===e.variantId),a=r[s]?.filter(e=>e===o?.node.id).length||0;return i?t.createElement("div",{className:"yt-bundleBuilderTracker-detailed-product-item",key:e.variantId,style:{borderRadius:"5px"}},t.createElement("div",{className:"yt-bundleBuilderTracker-detailed-image",style:{backgroundImage:`url(${o?.node.image?.url&&o?.node.image?.url?.length>0?o?.node.image.url:e.product.featuredMedia?.preview?.image?.url})`}},e?.quantity>1&&t.createElement("div",{className:"yt-bundleBuilderTracker-badge",style:{borderRadius:"2px"}},e.quantity,"x")),t.createElement("div",{className:"yt-bundleBuilderTracker-info-block"},t.createElement("span",{className:"yt-bundleBuilderTracker-product-title"},e.product.title),t.createElement("span",{className:"yt-bundleBuilderTracker-product-price"},d,Hg(o?.node?.price)),t.createElement("div",{className:"yt-bundleBuilderTracker-remove-link",onClick:()=>l(e.variantId,s)},t.createElement(Ga,null),t.createElement("span",null,"Remove")))):t.createElement("div",{className:"yt-bundleBuilderTracker-product-list-item",key:e.variantId},t.createElement("div",{className:"yt-bundleBuilderTracker-product-list-tracker-item",style:{backgroundImage:`url(${o?.node.image?.url&&o?.node.image?.url?.length>0?o?.node.image.url:e.product.featuredMedia?.preview?.image?.url})`,..."high"===c&&{borderRadius:"20px"},..."medium"===c&&{borderRadius:"6px"},...""===c&&{borderRadius:"0px"},height:n?"60px":"70px",width:n?"60px":"70px"}},a>1&&t.createElement("div",{className:"yt-bundleBuilderTracker-quantity-badge",style:{borderRadius:"high"===c?"20px":"medium"===c?"6px":"0px"}},a,"x"),t.createElement("div",{className:"yt-bundleBuilderTracker-remove-button",onClick:()=>l(e.variantId,s)},t.createElement(dt,{fontSize:"12px"}))))}),p>=1&&[...Array(p)].map((e,r)=>t.createElement("div",{className:"yt-bundleBuilderTracker-placeholder-box",style:{width:n?"60px":"70px",height:n?"60px":"70px",borderRadius:"high"===c?"20px":"medium"===c?"6px":"0px"},key:r},t.createElement(uo,{size:40,color:"#A0A0A0"}))))),s<e.length-1&&t.createElement("div",{className:"yt-bundleBuilderTracker-plus-icon-container"},t.createElement(uo,{size:"16px",style:{backgroundColor:"#f2f2f2"}})))})),gu=({builderTiers:e,handleAddToCart:n,minimumQuantity:r,selectedProducts:o,showProductDetailsInTracker:a,loading:i,handleRemoveItem:d,percentageOff:s,selectedItemsQuantity:p,bundleSubtotal:u,amountOff:m,styles:f,dealAmount:g,isMobile:x=!1,themeColor:h,cornerRadiusType:y,primaryTextColorCta:b,handleRemoveItemProductTier:v,selectedProductsByTier:w,storeCurrencyCode:C})=>{const[E,k]=c(!1),[T,S]=c(0),[B,$]=c([]),[z,D]=c(0),[I,P]=c(0),[N,_]=c(!1),[O,M]=c(null),F=u?.price||0,A=e?.type,R=e=>{if(e<0||!B[e])return F;const t=B[e].discountValue??0;return s?F*(1-t/100):g?t:m?F-t:F};l(()=>{if(e&&"none"!==e.type)if("productTier"===A&&e.productTier){const t=e.productTier||[];$(t);let n=0;e.productTier.map(e=>{n+=e.minimumQuantity}),P(n-p)}else if(B.length)z>0&&p<B[z-1]?.minimumQuantity?(D(z-1),M(z-1)):p<B[z]?.minimumQuantity&&M(z-1),S(R(z));else{const t=e.offerTier||[];$(t),D(0),P(t[0]?.minimumQuantity-p||r-p)}else $([]),P(r-p),D(0)},[e,r,p]),l(()=>{B.length&&"productTier"!=A?(()=>{if(!B?.length)return;let e=-1,t=null,n=0;if("offerTier"===A)for(let r=0;r<B.length&&(n+=B[r].minimumQuantity,p>=n);r++)t=r,e=r+1<B.length?r+1:r;if(D(e),M(t),null!==t){let e=B.slice(0,t+1).reduce((e,t)=>e+t.minimumQuantity,0);_(e===p),k(!0),S(R(t))}else _(!1),k(!1),S(F);const r=e>=0&&e<B.length?B.slice(0,e+1).reduce((e,t)=>e+t.minimumQuantity,0)-p:B[0].minimumQuantity-p;P(r)})():p===r?(k(!0),S(s?F*(1-s/100):g||(m?F-m:F)),_(!0)):(_(!1),k(!1))},[p,B]);const L=E?Math.max(u?.compareAtPrice,u?.price):u?.compareAtPrice>u?.price?u?.compareAtPrice:null,j=E?T.toFixed(2):u?.price?.toFixed(2),V=L&&j?(L-Number(j)).toFixed(2):0,H=e&&"none"!==A&&e.offerTier?"offerTier"===A?Math.min(p/(p+I)*100,100):void 0:p/r*100;return l(()=>{if(E&&f.byob.enableConfetti){console.log("remainingItems",I);const e=document.getElementById("checkoutButton");if(!e)return;const t=e.getBoundingClientRect(),n=(t.left+t.width/2)/window.innerWidth,r=(t.top+t.height/2)/window.innerHeight;Yr({particleCount:100,spread:70,origin:{x:n,y:r},zIndex:9999})}},[E,f]),t.createElement("div",{className:"yt-bundleBuilderTracker-container "+(x?"mobile":""),style:{justifyContent:f.byob.selectedProductsVisibility&&!x?"space-between":"center"}},"offerTier"==A&&null!==O&&O>=0&&t.createElement("div",{className:"yt-bundleBuilderTracker-offer-tier-tag",style:{backgroundColor:h||"#000",color:b||"#fff"}},t.createElement(t.Fragment,null,"Buy"," ",B.slice(0,O+1).reduce((e,t)=>e+t.minimumQuantity,0)," ","at",m||g?t.createElement(t.Fragment,null," ",Wg(f.general.currencySymbol,C)):""," ",Hg(B[O]?.discountValue),s?t.createElement(t.Fragment,null,"% "):Hg(g)?t.createElement(t.Fragment,null):"",s||m?t.createElement(t.Fragment,null," Off"):""),t.createElement("span",{style:{fontStyle:"italic"}}," applied")),x&&I>=1&&!N&&"offerTier"!==A?t.createElement("div",{className:"yt-bundleBuilderTracker-mobile-remaining",style:{margin:"0",height:"auto"}},"Select ",I," more item(s)"):t.createElement(t.Fragment,null),"productTier"!==A&&t.createElement("div",{className:"yt-bundleBuilderTracker-tier-progress-container"},t.createElement("div",{className:"yt-bundleBuilderTracker-tier-progress-text"},"offerTier"==A&&B.length>0&&z>=0&&I>0&&t.createElement(t.Fragment,null,t.createElement("div",{style:{padding:"4px",fontWeight:"600",...window.innerWidth<=768&&{fontSize:"12px"},color:"#121212"},className:"yt-bundleBuilderTracker-add-more-text"},"Add ",I," More Item(s)",t.createElement("span",{style:{fontWeight:"500"}}," to "),"Buy ",p+I," at",m||g?t.createElement(t.Fragment,null,Wg(f.general.currencySymbol,C)):""," ",Hg(B[z]?.discountValue),s?t.createElement(t.Fragment,null,"% "):Hg(g)?t.createElement(t.Fragment,null):"",s||m?t.createElement(t.Fragment,null," Off"):""))),t.createElement("div",{className:"yt-bundleBuilderTracker-progress-bar-background"},t.createElement("div",{className:"yt-bundleBuilderTracker-progress-bar-fill",style:{width:`${H??0}%`,backgroundColor:100===(H??0)?"#4caf50":h??f?.general.primaryColor??"black"}}," "))),f.byob.selectedProductsVisibility&&t.createElement("div",{className:"hide-tracker-scrollbar yt-bundleBuilderTracker-product-list-wrapper",style:{columnGap:"productTier"===A?"0px":"10px",maxWidth:x?"90%":"55%"}},"productTier"===A?t.createElement(fu,{tiers:B,isMobile:x,selectedProductsByTier:w??{},selectedProducts:o,themeColor:f.general.primaryColor,showProductDetailsInTracker:a,handleRemoveItemProductTier:v,cornerRadius:f.byob.borderRadius,currencySymbol:Wg(f.general.currencySymbol,C)}):t.createElement(t.Fragment,null,o?.map?.(e=>{const n=e.product.variants?.edges?.find(t=>t.node.id===e.variantId);return a?t.createElement("div",{className:"yt-bundleBuilderTracker-detailed-item-container",style:{borderRadius:f.byob.borderRadius},key:e.variantId},t.createElement("div",{className:"yt-bundleBuilderTracker-detailed-image",style:{backgroundImage:`url(${n?.node.image?.url&&n?.node.image?.url?.length>0?n?.node.image.url:e.product.featuredMedia?.preview?.image?.url})`}},e?.quantity>1&&t.createElement("div",{className:"yt-bundleBuilderTracker-badge"},e.quantity,"x")),t.createElement("div",{className:"yt-bundleBuilderTracker-info-block"},t.createElement("span",{className:"yt-bundleBuilderTracker-product-title"},e.product.title),t.createElement("span",{className:"yt-bundleBuilderTracker-product-price"},f.general.currencySymbol,n?.node?.price),t.createElement("div",{className:"yt-bundleBuilderTracker-remove-link",onClick:()=>d(e.variantId)},t.createElement(Ga,null),t.createElement("span",null,"Remove")))):t.createElement("div",{className:"yt-bundleBuilderTracker-item-wrapper",key:e.variantId,style:{marginTop:"8px",marginRight:"5px"}},t.createElement("div",{className:"yt-bundleBuilderTracker-item-image-box",style:{backgroundImage:`url(${n?.node.image?.url&&n?.node.image?.url?.length>0?n?.node.image.url:e.product.featuredMedia?.preview?.image?.url})`,height:x?"60px":"70px",width:x?"60px":"70px",borderRadius:f.byob.borderRadius}},e?.quantity>1&&t.createElement("div",{className:"yt-bundleBuilderTracker-quantity-badge",style:{borderRadius:f.byob.borderRadius}},e.quantity,"x"),t.createElement("div",{className:"yt-bundleBuilderTracker-remove-button",onClick:()=>d(e.variantId)},t.createElement(dt,{fontSize:"12px"}))))}),I>=1&&[...Array(I)].map((e,n)=>t.createElement("div",{className:"yt-bundleBuilderTracker-placeholder-box",style:{width:x?"60px":"70px",height:x?"60px":"70px",borderRadius:f.byob.borderRadius},key:n},t.createElement(uo,{size:40,color:"#A0A0A0"}))))),(!x||N)&&t.createElement("div",{className:"yt-bundleBuilderTracker-summary-container",style:{width:x?"100%":"auto"}},Number(j)>0&&t.createElement("div",{className:"yt-bundleBuilderTracker-summary-info"},t.createElement("div",{style:{display:"flex",...window.innerWidth<=600&&{flexDirection:"column"},gap:"5px",justifyContent:"center"}},t.createElement("span",{className:"yt-bundleBuilderTracker-subtotal-label"},"Subtotal"),Number(V)>0?t.createElement("span",{className:"yt-bundleBuilderTracker-save-label"},"Save:"," ",Wg(f.general.currencySymbol,C),Hg(V)):""),t.createElement("div",{className:"yt-bundleBuilderTracker-subtotal-row"},t.createElement("span",{className:"yt-bundleBuilderTracker-total_price"},Wg(f.general.currencySymbol,C),Number(j)>=0?Hg(Number(j).toFixed(2)):0),L&&f.byob.compareAtPriceVisibility&&Number(L)>Number(j)&&t.createElement("span",{className:"yt-bundleBuilderTracker-summary_price"},Wg(f.general.currencySymbol,C),Hg(Number(L).toFixed(2))))),t.createElement("button",{className:"yt-bundleBuilderTracker-checkout-button",style:{cursor:N?"pointer":"auto",backgroundColor:100===(H??0)||N?f.general.ctaBackgroundColor||"black":"#f4f4f6",color:100===(H??0)||N?f.general.ctaTextColor||"#fff":"#000",border:`1.18px solid ${f.general.ctaBorderColor}`,borderRadius:f.general.ctaBorderRadius,boxShadow:N?"0px 4px 8px rgba(0, 0, 0, 0.2)":"none"},disabled:!N&&I>=1,onClick:e=>{i||console.log("saving"),n(e.target??e.currentTarget)},id:"checkoutButton"},i?t.createElement(na,{color:"white",loading:i,size:15,"aria-label":"Loading Spinner","data-testid":"loader"}):I>=1&&!N?t.createElement("div",{className:"yt-tracking-bar-checkout-button-items-text",style:{color:f.general.primaryColor}},"Add ",I," More Item(s)"):t.createElement("div",{className:"yt-bundleBuilderTracker-checkout-text",style:{color:b??f.general.ctaTextColor}},f.byob.checkoutCTAText??"Checkout"))))},xu={8087437412:{position:"fixed",bottom:"10px",zIndex:100,width:"95%",left:"50%",transform:"translateX(-50%)",mobile:{bottom:"50px"}},66134737152:{position:"fixed",zIndex:20,width:"90%",left:"50%",transform:"translateX(-50%)",bottom:"10px"},83438567714:{zIndex:100,position:"fixed",width:"95%",left:"50%",transform:"translateX(-50%)",bottom:"10px"},72726479068:{position:"fixed",zIndex:20,width:"90%",left:"50%",transform:"translateX(-50%)",bottom:"10px",mobile:{bottom:"70px"}},64800161992:{zIndex:20,mobile:{bottom:"50px"},position:"sticky",bottom:"10px"},53933408435:{zIndex:5,mobile:{bottom:"60px"},position:"sticky",bottom:"10px"},68377018594:{zIndex:5,bottom:"10px",position:"fixed",left:"50%",transform:"translateX(-50%)",mobile:{bottom:"70px"}},84569063743:{zIndex:999,bottom:"0px",width:"100%",position:"fixed",right:"0px",left:"0px"},62022680789:{bottom:"65px",zIndex:999,width:"100%",position:"fixed",right:"0px",left:"0px"},63102222549:{position:"sticky",bottom:"100px",zIndex:999,mobile:{bottom:"60px"}},26666008755:{bottom:"10px",zIndex:999,position:"fixed",left:"50%",transform:"translateX(-50%)"},67641475285:{bottom:"10px",zIndex:999,position:"fixed",left:"50%",transform:"translateX(-50%)"},61613179125:{position:"fixed",left:"50%",transform:"translateX(-50%)"},80866345280:{bottom:"10px",mobile:{bottom:"70px"}}},hu={position:"sticky",bottom:"10px",zIndex:999,width:"96%"},yu=e=>{const[n,r]=c(!1);l(()=>{const e=()=>{r(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const o="undefined"!=typeof window?(window?.ytapp||window?.ytBundleApp)?.storeId:void 0,a=((e,t=!1)=>{const n=e&&xu[e]?xu[e]:{},r={...hu,...n};return t&&n.mobile?{...r,...n.mobile}:r})(String(o),n);e.renderingOnPage||(a.position="static",a.zIndex=0);const i={display:"flex",backgroundColor:"white",borderRadius:"4px",paddingBottom:"5px",justifyContent:"center",margin:"0 auto",transition:"box-shadow 0.3s ease, transform 0.3s ease",border:"1px solid #CBCBCB",boxShadow:"\n 0px 3px 6px 0px #00000040, \n 0px 11px 11px 0px #00000036, \n 0px 24px 14px 0px #00000021, \n 0px 43px 17px 0px #0000000A, \n 0px 68px 19px 0px #00000000\n ",...a};return t.createElement("div",{className:"yt-bundle-builder-tracker-bar",style:{...i,width:n?"100%":a.width,...!e.styles.byob.selectedProductsVisibility&&{width:n?"96%":"fit-content",paddingInline:"10px"},...n&&{display:"flex",flexDirection:"row",paadingTop:"0px"}},onMouseEnter:e=>{e.currentTarget.style.boxShadow="\n 0px 8px 16px 0px #00000040, \n 0px 24px 24px 0px #00000036, \n 0px 50px 30px 0px #00000021, \n 0px 90px 36px 0px #0000000A, \n 0px 140px 40px 0px #00000000\n ",e.currentTarget.style.transform="translateX(-50%)"===a.transform?"translate(-50%, -3px)":"translateY(-3px)"},onMouseLeave:e=>{e.currentTarget.style.boxShadow="\n 0px 5px 12px 0px #00000040, \n 0px 22px 22px 0px #00000036, \n 0px 49px 29px 0px #00000021, \n 0px 87px 35px 0px #0000000A, \n 0px 136px 38px 0px #00000000\n ",e.currentTarget.style.transform=a.transform||"translateY(0)"}},t.createElement(gu,{...e,isMobile:n}))},bu=Wt(void 0);function vu(e){return vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vu(e)}function wu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cu(e,t){return Cu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cu(e,t)}function Eu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=ku(e);if(t){var o=ku(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===vu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function ku(e){return ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ku(e)}var Tu=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cu(e,t)}(o,x);var e,t,n,r=Eu(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),r.apply(this,arguments)}return e=o,t=[{key:"componentDidMount",value:function(){!function(e,t){if(!document.head.querySelector("#"+e)){var n=document.createElement("style");n.textContent=t,n.type="text/css",n.id=e,document.head.appendChild(n)}}(this.props.name,this.props.css)}},{key:"componentWillUnmount",value:function(){var e=document.getElementById(this.props.name);e.parentNode.removeChild(e)}},{key:"render",value:function(){return null}}],t&&wu(e.prototype,t),n&&wu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(),Su=function(e){var t=e.imageBackgroundColor;return"\n body {\n overflow: hidden;\n }\n\n .__react_modal_image__modal_container {\n position: fixed;\n z-index: 5000;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.8);\n touch-action: none;\n overflow: hidden;\n }\n\n .__react_modal_image__modal_content {\n position: relative;\n height: 100%;\n width: 100%;\n }\n\n .__react_modal_image__modal_content img, \n .__react_modal_image__modal_content svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate3d(-50%, -50%, 0);\n -webkit-transform: translate3d(-50%, -50%, 0);\n -ms-transform: translate3d(-50%, -50%, 0);\n overflow: hidden;\n }\n\n .__react_modal_image__medium_img {\n max-width: 98%;\n max-height: 98%;\n background-color: ".concat(t,";\n }\n\n .__react_modal_image__large_img {\n cursor: move;\n background-color: ").concat(t,"\n }\n\n .__react_modal_image__icon_menu a {\n display: inline-block;\n font-size: 40px;\n cursor: pointer;\n line-height: 40px;\n box-sizing: border-box;\n border: none;\n padding: 0px 5px 0px 5px;\n margin-left: 10px;\n color: white;\n background-color: rgba(0, 0, 0, 0);\n }\n\n .__react_modal_image__icon_menu {\n display: inline-block;\n float: right;\n }\n\n .__react_modal_image__caption {\n display: inline-block;\n color: white;\n font-size: 120%;\n padding: 10px;\n margin: 0;\n }\n\n .__react_modal_image__header {\n position: absolute;\n top: 0;\n width: 100%;\n background-color: rgba(0, 0, 0, 0.7);\n overflow: hidden;\n }\n")},Bu=function(){return t.createElement("svg",{fill:"#ffffff",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}))},$u=function(){return t.createElement("svg",{fill:"#ffffff",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}))},zu=function(){return t.createElement("svg",{fill:"#ffffff",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),t.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},Du=function(){return t.createElement("svg",{fill:"#ffffff",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),t.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))},Iu=function(){return t.createElement("svg",{fill:"#ffffff",height:"48",viewBox:"0 0 24 24",width:"48",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"}),t.createElement("path",{d:"M0 0h24v24H0V0z",fill:"none"}))},Pu=function(){return t.createElement("svg",{fill:"#ffffff",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{fill:"none",d:"M0 0h24v24H0V0zm0 0h24v24H0V0z"}),t.createElement("path",{d:"M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81 1.33-1.33C19.8 4.07 22.14 7.24 22.5 11H24c-.51-6.16-5.66-11-11.95-11zM16 14h2V8c0-1.11-.9-2-2-2h-6v2h6v6zm-8 2V4H6v2H4v2h2v8c0 1.1.89 2 2 2h8v2h2v-2h2v-2H8z"}))};var Nu=function(e){return function(t){(function(e){return document.location.hostname!==new URL(e,document.location).hostname})(e)&&(t.preventDefault(),fetch(e).then(function(t){return t.ok||console.error("Failed to download image, HTTP status "+t.status+" from "+e),t.blob().then(function(t){var n=document.createElement("a");n.setAttribute("download",e.split("/").pop()),n.href=URL.createObjectURL(t),n.click()})}).catch(function(t){console.error(t),console.error("Failed to download image from "+e)}))}},_u=function(e){var n=e.image,r=e.alt,o=e.zoomed,a=e.toggleZoom,i=e.toggleRotate,l=e.onClose,c=e.enableDownload,d=e.enableZoom,s=e.enableRotate;return t.createElement("div",{className:"__react_modal_image__header"},t.createElement("span",{className:"__react_modal_image__icon_menu"},c&&t.createElement("a",{href:n,download:!0,onClick:Nu(n)},t.createElement(zu,null)),d&&t.createElement("a",{onClick:a},o?t.createElement($u,null):t.createElement(Bu,null)),s&&t.createElement("a",{onClick:i},t.createElement(Pu,null)),t.createElement("a",{onClick:l},t.createElement(Du,null))),r&&t.createElement("span",{className:"__react_modal_image__caption"},r))};function Ou(e){return Ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ou(e)}function Mu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fu(e,t){return Fu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fu(e,t)}function Au(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Lu(e);if(t){var o=Lu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ou(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ru(e)}(this,n)}}function Ru(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lu(e){return Lu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lu(e)}function ju(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vu=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fu(e,t)}(a,x);var e,n,r,o=Au(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ju(Ru(e=o.call.apply(o,[this].concat(n))),"state",{loading:!0}),ju(Ru(e),"handleOnLoad",function(){e.setState({loading:!1})}),ju(Ru(e),"handleOnContextMenu",function(t){!e.props.contextMenu&&t.preventDefault()}),e}return e=a,n=[{key:"render",value:function(){var e=this.props,n=e.id,r=e.className,o=e.src,a=e.style,i=e.handleDoubleClick;return t.createElement("div",null,this.state.loading&&t.createElement(Iu,null),t.createElement("img",{id:n,className:r,src:o,style:a,onLoad:this.handleOnLoad,onDoubleClick:i,onContextMenu:this.handleOnContextMenu}))}}],n&&Mu(e.prototype,n),r&&Mu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}();function Hu(e){return Hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hu(e)}function Wu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uu(e,t){return Uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Uu(e,t)}function Gu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=qu(e);if(t){var o=qu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Hu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qu(e)}(this,n)}}function Qu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qu(e)}function Yu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zu=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uu(e,t)}(a,x);var e,n,r,o=Gu(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Yu(Qu(e=o.call.apply(o,[this].concat(n))),"state",{move:{x:0,y:0},moveStart:void 0,zoomed:!1,rotationDeg:0}),Yu(Qu(e),"handleKeyDown",function(t){27!==t.keyCode&&13!==t.keyCode||e.props.onClose()}),Yu(Qu(e),"getCoordinatesIfOverImg",function(t){var n=t.changedTouches?t.changedTouches[0]:t;if("react-modal-image-img"===n.target.id){var r=e.contentEl.getBoundingClientRect();return{x:n.clientX-r.left,y:n.clientY-r.top}}}),Yu(Qu(e),"handleMouseDownOrTouchStart",function(t){if(t.preventDefault(),!(t.touches&&t.touches.length>1)){var n=e.getCoordinatesIfOverImg(t);n||e.props.onClose(),e.state.zoomed&&e.setState(function(e){return{moveStart:{x:n.x-e.move.x,y:n.y-e.move.y}}})}}),Yu(Qu(e),"handleMouseMoveOrTouchMove",function(t){if(t.preventDefault(),e.state.zoomed&&e.state.moveStart&&!(t.touches&&t.touches.length>1)){var n=e.getCoordinatesIfOverImg(t);n&&e.setState(function(e){return{move:{x:n.x-e.moveStart.x,y:n.y-e.moveStart.y}}})}}),Yu(Qu(e),"handleMouseUpOrTouchEnd",function(t){e.setState({moveStart:void 0})}),Yu(Qu(e),"toggleZoom",function(t){t.preventDefault(),e.setState(function(e){return{zoomed:!e.zoomed,move:e.zoomed?{x:0,y:0}:e.move}})}),Yu(Qu(e),"toggleRotate",function(t){t.preventDefault(),360!==e.state.rotationDeg?e.setState(function(e){return{rotationDeg:e.rotationDeg+=90}}):e.setState({rotationDeg:90})}),e}return e=a,(n=[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown,!1)}},{key:"render",value:function(){var e=this,n=this.props,r=n.medium,o=n.large,a=n.alt,i=n.onClose,l=n.hideDownload,c=n.hideZoom,d=n.showRotate,s=n.imageBackgroundColor,p=void 0===s?"black":s,u=this.state,m=u.move,f=u.zoomed,g=u.rotationDeg;return t.createElement("div",null,t.createElement(Tu,{name:"__react_modal_image__lightbox",css:Su({imageBackgroundColor:p})}),t.createElement("div",{className:"__react_modal_image__modal_container"},t.createElement("div",{className:"__react_modal_image__modal_content",onMouseDown:this.handleMouseDownOrTouchStart,onMouseUp:this.handleMouseUpOrTouchEnd,onMouseMove:this.handleMouseMoveOrTouchMove,onTouchStart:this.handleMouseDownOrTouchStart,onTouchEnd:this.handleMouseUpOrTouchEnd,onTouchMove:this.handleMouseMoveOrTouchMove,ref:function(t){e.contentEl=t}},f&&t.createElement(Vu,{id:"react-modal-image-img",className:"__react_modal_image__large_img",src:o||r,style:{transform:"translate3d(-50%, -50%, 0) translate3d(".concat(m.x,"px, ").concat(m.y,"px, 0) rotate(").concat(g,"deg)"),WebkitTransform:"translate3d(-50%, -50%, 0) translate3d(".concat(m.x,"px, ").concat(m.y,"px, 0) rotate(").concat(g,"deg)"),MsTransform:"translate3d(-50%, -50%, 0) translate3d(".concat(m.x,"px, ").concat(m.y,"px, 0) rotate(").concat(g,"deg)")},handleDoubleClick:this.toggleZoom}),!f&&t.createElement(Vu,{id:"react-modal-image-img",className:"__react_modal_image__medium_img",src:r||o,handleDoubleClick:this.toggleZoom,contextMenu:!r,style:{transform:"translate3d(-50%, -50%, 0) rotate(".concat(g,"deg)"),WebkitTransform:"translate3d(-50%, -50%, 0) rotate(".concat(g,"deg)"),MsTransform:"translate3d(-50%, -50%, 0) rotate(".concat(g,"deg)")}})),t.createElement(_u,{image:o||r,alt:a,zoomed:f,toggleZoom:this.toggleZoom,toggleRotate:this.toggleRotate,onClose:i,enableDownload:!l,enableZoom:!c,enableRotate:!!d})))}}])&&Wu(e.prototype,n),r&&Wu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}();function Ku(e){return Ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ku(e)}function Xu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ju(e,t){return Ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ju(e,t)}function em(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=nm(e);if(t){var o=nm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ku(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tm(e)}(this,n)}}function tm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nm(e){return nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nm(e)}function rm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var om=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ju(e,t)}(a,x);var e,n,r,o=em(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rm(tm(e=o.call.apply(o,[this].concat(n))),"state",{modalOpen:!1}),rm(tm(e),"toggleModal",function(){e.setState(function(e){return{modalOpen:!e.modalOpen}})}),e}return e=a,n=[{key:"render",value:function(){var e=this.props,n=e.className,r=e.small,o=e.smallSrcSet,a=e.medium,i=e.large,l=e.alt,c=e.hideDownload,d=e.hideZoom,s=e.showRotate,p=e.imageBackgroundColor,u=this.state.modalOpen;return t.createElement("div",null,t.createElement("img",{className:n,style:{cursor:"pointer",maxWidth:"100%",maxHeight:"100%"},onClick:this.toggleModal,src:r,srcSet:o,alt:l}),u&&t.createElement(Zu,{medium:a,large:i,alt:l,onClose:this.toggleModal,hideDownload:c,hideZoom:d,showRotate:s,imageBackgroundColor:p}))}}],n&&Xu(e.prototype,n),r&&Xu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}();const am=n((e,n)=>{const[r,o]=rn(bu),a=(e.disableInventoryTracking?r?.variants.edges?.filter(t=>t.node.inventoryQuantity>0||e.disableInventoryTracking):r?.variants.edges)??[],[i,d]=c(a[0]?.node),[s,p]=c(0),[u,m]=c("undefined"!=typeof window&&window.innerWidth<=600),[f,g]=c(1),[x,h]=c("idle"),[y,b]=c(null),[w,C]=c(null),E=e.shadowRoot??document.body;l(()=>{if(r){const t=r.variants.edges?.filter(t=>t.node.inventoryQuantity>0||e.disableQuantitySelector);d(r?.selectedVariant??t[0]?.node)}},[r]),l(()=>{const t=e.selectedProducts.find(e=>e.variantId===i?.id);g(t?t.quantity:0)},[f,e.selectedProducts,i]);const k=()=>{i?.id&&r&&(h("check"),e.handleAddToBundle(i?.id,r,1),setTimeout(()=>{h("idle"),o(void 0)},500))};if(l(()=>{const e=()=>m(window.innerWidth<=600);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),!r||0===a.length)return null;const{title:T,descriptionHtml:S,media:B,variants:$}=r,z=B.edges.map(e=>e.node.image).filter(e=>e.url.length>0);l(()=>{if(r&&i?.image?.url&&Array.isArray(z)){const e=z.findIndex(e=>e.url===i?.image.url);-1!==e&&e!==s&&p(e)}},[i]);const D=t=>{const n=t.target.value,r=a.find(e=>e.node.id===n)?.node;r&&(r.inventoryQuantity>0||e.disableInventoryTracking)&&d(r)};l(()=>{if(r){window.history.pushState({modalOpen:!0},"",window.location.href);const e=e=>{o(void 0),e.preventDefault()};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e),window.history.state?.modalOpen&&window.history.back()}}},[r,o]);const I=e=>{b(e.targetTouches[0].clientX),C(null)},P=e=>{C(e.targetTouches[0].clientX)},N=()=>{if(null!==y&&null!==w&&z.length>1){const e=y-w,t=50;e>t?p(e=>e<z.length-1?e+1:0):e<-t&&p(e=>e>0?e-1:z.length-1)}b(null),C(null)};e.hideAddToBundle||(i?.inventoryQuantity??0)<=0&&e.disableInventoryTracking;const _=t.createElement("div",{className:"yt-bundleProductModal-modal-overlay"},t.createElement("div",{className:"yt-bundleProductModal-modal-content "+(u?"small-screen":"large-screen"),ref:n},t.createElement("div",{className:"yt-bundleProductModal-selection-modal yt-variant-selection-modal "+(u?"small-screen":"large-screen")},t.createElement("div",{className:"yt-variant-selection-modal "+(u?"small-screen":"large-screen")},t.createElement("button",{className:"yt-bundleProductModal-modal-close-button",onClick:()=>{o(void 0)},style:{backgroundColor:"white"}},t.createElement(it,{size:"25"})),t.createElement("div",{className:"yt-bundleProductModal-modal-image-section"},t.createElement(t.Fragment,null,t.createElement("div",{onTouchStart:I,onTouchMove:P,onTouchEnd:N},t.createElement(om,{small:z[s].url,medium:z[s].url,large:z[s].url,hideDownload:!0,className:"yt-bundleProductModal-modal-main-image",imageBackgroundColor:"#000"})),t.createElement("div",{className:"yt-bundleProductModal-modal-image-gallery",style:{display:"flex",flexDirection:"row",overflow:"auto",gap:"10px",scrollbarWidth:"none"}},z.length>1&&z.filter(e=>e.url.length>0).map((n,r)=>t.createElement("img",{key:r,src:n.url,alt:n.altText||`${T} - Image ${r+1}`,onClick:()=>p(r),className:s===r?"active":"",style:{width:"73px",height:"73px",cursor:"pointer",borderRadius:"7px",border:"1px solid lightgray",...s===r&&{border:`2px solid ${e.themeColor||"#111"}`},objectFit:"cover"}}))))),t.createElement("div",{className:"yt-bundleProductModal-modal-details-section",style:{marginLeft:"20px",minHeight:"100%",maxHeight:"70vh",scrollbarWidth:"none",overflowY:"auto",display:"flex",flexDirection:"column"}},t.createElement("h2",null,a.length>1?i?.displayName:r.title),"ratingOnly"===e.reviewRatingType&&(r?.rating?.averageRating??0)>0&&t.createElement("div",{className:"yt-bundleProductModal-modal-rating",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},t.createElement(to,{color:"gold",size:14})," ",t.createElement("span",{style:{marginLeft:6}},r?.rating?.averageRating,"rating")),"ratingAndReviewCount"===e.reviewRatingType&&(r?.rating?.averageRating??0)>0&&t.createElement("div",{className:"yt-bundleProductModal-modal-rating-and-review-count",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},t.createElement(to,{color:"gold",size:14})," ",r?.rating?.averageRating,t.createElement(or,{size:14,style:{color:"dodgerblue",marginLeft:"4px"}})," ","(",r?.rating?.ratingCount," reviews)"),t.createElement("div",{className:"yt-bundleProductModal-modal-variant-selection",style:{display:"flex",flexDirection:"column",gap:"2px",marginTop:"20px"}},a.length>1&&t.createElement("div",null,t.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid #e0e0e0",paddingBottom:"5px",fontSize:"16px",color:"#999",position:"relative",marginBottom:"10px"}},t.createElement("span",{style:{flexShrink:0}},r.options[0].name," :"," ",t.createElement("strong",{style:{color:"#000",paddingLeft:"5px"}},i?.title)),t.createElement("select",{value:i?.id||"",onChange:D,className:"yt-bundleProductModal-modal-select-input",style:{appearance:"none",border:"none",background:"transparent",fontWeight:"bold",color:"#000",cursor:"pointer",paddingRight:"20px",position:"absolute",right:0,top:0,bottom:0,width:"100%",opacity:0,zIndex:2}},a.map(({node:n})=>t.createElement("option",{key:n.id,value:n.id,disabled:!n.inventoryQuantity&&!e.disableInventoryTracking},n.title))),t.createElement("span",{style:{position:"absolute",right:5,pointerEvents:"none",fontSize:"12px",color:"#000"}},t.createElement(ho,null)))),t.createElement("div",{className:"yt-bundleProductModal-modal-price-and-cta",style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%"}},t.createElement("div",{style:{width:"fit-content",minWidth:"fit-content",paddingRight:"10px",display:"flex",flexDirection:"column"}},i?.compareAtPrice&&parseFloat(i.compareAtPrice)>parseFloat(i?.price)&&t.createElement("div",{style:{textDecoration:"line-through",opacity:"0.5",lineHeight:"normal"}},Wg(e.styles.general.currencySymbol,e.styles.general.currencySymbol),Hg(i?.compareAtPrice)),t.createElement("div",null,t.createElement("span",{className:"yt-bundleProductModal-modal-price",style:{fontSize:"20px",fontWeight:"600",color:"#000",textAlign:"center",lineHeight:"normal"}},Wg(e.styles.general.currencySymbol,e.styles.general.currencySymbol),Hg(i?.price)))),!e.hideAddToBundle&&((i?.inventoryQuantity??0)>0||e.disableInventoryTracking)&&(!e?.disableQuantitySelector||f<1)&&t.createElement("div",{style:{width:"80%"},className:"yt-bundleProductModal-modal-atc-wrapper"},t.createElement("button",{style:{textTransform:"uppercase",fontWeight:"800",width:"100%",cursor:"pointer",border:"none",backgroundColor:e.themeColor||"#111",borderRadius:e.cornerRadius,color:e.primaryTextColorCta||"#fff",minHeight:"40px",padding:"0px 15px",position:"relative",overflow:"hidden"},className:"yt-bundleProductModal-modal-atc-button",onClick:e=>{e.stopPropagation(),e.preventDefault(),k()},disabled:"idle"!==x},"Add to bundle")))),t.createElement("div",{className:"yt-bundleProductModal-modal-separator",style:{height:"10px",minHeight:"10px",border:"none",backgroundColor:"#D9D9D96B",margin:"20px 0 10px 0",display:"block !important"}},t.createElement("span",null)),t.createElement("span",{className:"yt-description-content",style:{scrollBehavior:"smooth"},dangerouslySetInnerHTML:{__html:S}})))))),O=t.createElement("div",{className:"yt-bundleProductModal-modal-overlay"},t.createElement("div",{className:"yt-bundleProductModal-modal-content small-screen",style:{padding:"0px",position:"relative"},ref:n},t.createElement("div",{className:"yt-bundleProductModal-selection-modal yt-variant-selection-modal"},t.createElement("button",{className:"yt-bundleProductModal-modal-phone-close-button",style:{position:"fixed",top:"20px",right:"20px",zIndex:9999999999,backgroundColor:"#FFFFFF",padding:"4px",borderRadius:"50%",border:"1px solid lightgray",display:"flex",justifyContent:"center",alignItems:"center"},onClick:()=>{o(void 0)}},t.createElement(yo,{style:{height:"22px",width:"22px",padding:"4px",color:"black"},onMouseEnter:e=>e.currentTarget.style.color="black"})),t.createElement("div",{className:"yt-variant-selection-modal small-screen",style:{padding:"0px",width:"100vw",height:"100vh",overflowY:"auto"}},t.createElement("div",{className:"yt-bundleProductModal-modal-image-section small-screen"},t.createElement(t.Fragment,null,t.createElement("div",{style:{position:"relative"},onTouchStart:I,onTouchMove:P,onTouchEnd:N},t.createElement(om,{small:z[s].url,medium:z[s].url,large:z[s].url,hideDownload:!0,className:"yt-bundleProductModal-modal-main-image",imageBackgroundColor:"#000"}),t.createElement("div",{style:{position:"absolute",bottom:"20px",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},z.length>1&&z.map((e,n)=>t.createElement("span",{className:"yt-bundleProductModal-modal-image-indicator",style:{width:"10px",height:"10px",borderRadius:"50%",backgroundColor:s===n?"#FFFFFF":"#EBEBEB",margin:"0 3px",cursor:"pointer",backdropFilter:"blur(10px)"}})))),t.createElement("div",{className:"yt-bundleProductModal-modal-image-gallery",style:{display:"flex",flexDirection:"row",overflowX:"auto",padding:"5px 20px",gap:"5px",scrollbarWidth:"none"}},z.length>1&&z.map((n,r)=>t.createElement("img",{key:r,src:n.url,alt:n.altText||`${T} - Image ${r+1}`,onClick:()=>p(r),className:s===r?"active":"",style:{width:"60px",height:"60px",cursor:"pointer",borderRadius:"7px",border:"1px solid lightgray",...s===r&&{border:`2px solid ${e.themeColor||"#111"}`},objectFit:"cover"}}))))),t.createElement("div",{className:"yt-bundleProductModal-modal-details-section small-screen",style:{padding:"0px !important",margin:"15px 0",paddingBottom:"50px"}},t.createElement("h2",{style:{margin:"0px"}},a.length>1?i?.displayName:r.title),"ratingOnly"===e.reviewRatingType&&(e?.rating?.averageRating??0)>0&&t.createElement("div",{className:"yt-bundleProductModal-modal-rating-only",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},t.createElement(to,{color:"gold",size:14})," ",t.createElement("span",{style:{marginLeft:6}},e?.rating?.averageRating," rating")),"ratingAndReviewCount"===e.reviewRatingType&&(e?.rating?.averageRating??0)>0&&t.createElement("div",{className:"yt-bundleProductModal-modal-rating-and-review-count",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},t.createElement(to,{color:"gold",size:14})," ",e?.rating?.averageRating,t.createElement(or,{style:{color:"dodgerblue",marginLeft:"4px"},size:14})," ","(",e?.rating?.ratingCount," reviews)"),t.createElement("div",{className:"yt-bundleProductModal-modal-separator",style:{opacity:"0.2",border:"none",height:"2px",backgroundColor:"#000000",margin:"10px 0px",display:"block !important",width:"95vw"}},t.createElement("span",null)),t.createElement("span",{className:"yt-description-content",style:{scrollbarWidth:"none",scrollBehavior:"smooth",margin:"0px"},dangerouslySetInnerHTML:{__html:S}})))),t.createElement("div",{className:"yt-bundleProductModal-modal-phone-bottom-bar",style:{position:"fixed",bottom:"0px",left:"0px",right:"0px",padding:"12px 15px",borderTop:"1px solid lightgray",boxShadow:"0px -4px 5px rgba(0, 0, 0, 0.1)",backgroundColor:"#fff",display:"flex",flexDirection:"column",gap:"2px",zIndex:9999999999}},a.length>1&&t.createElement("div",null,t.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid #e0e0e0",paddingBottom:"5px",fontSize:"16px",color:"#999",position:"relative",margin:"10px 0"}},t.createElement("span",{style:{flexShrink:0}},r.options[0].name," :"," ",t.createElement("strong",{style:{color:"#000",paddingLeft:"5px"}},i?.title)),t.createElement("select",{value:i?.id||"",onChange:D,className:"yt-bundleProductModal-modal-select-input",style:{appearance:"none",border:"none",background:"transparent",fontWeight:"bold",color:"#000",cursor:"pointer",paddingRight:"20px",position:"absolute",right:0,top:0,bottom:0,width:"100%",opacity:0,zIndex:2}},a.map(({node:n})=>t.createElement("option",{key:n.id,value:n.id,disabled:!n.inventoryQuantity&&!e.disableInventoryTracking},n.title))),t.createElement("span",{style:{position:"absolute",right:5,pointerEvents:"none",fontSize:"12px",color:"#000"}},t.createElement(ho,null)))),t.createElement("div",{className:"yt-bundleProductModal-modal-price-and-cta",style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%"}},t.createElement("div",{style:{width:"fit-content",minWidth:"fit-content",display:"flex",flexDirection:"column",paddingRight:"10px"}},i?.compareAtPrice&&t.createElement("div",{style:{textDecoration:"line-through",opacity:"0.5",lineHeight:"normal"}},Wg(e.styles.general.currencySymbol,e.styles.general.currencySymbol),Hg(i?.compareAtPrice)),t.createElement("div",null,t.createElement("span",{className:"yt-bundleProductModal-modal-price",style:{fontSize:"20px",fontWeight:"600",color:"#000",textAlign:"center",lineHeight:"normal"}},Wg(e.styles.general.currencySymbol,e.styles.general.currencySymbol),Hg(i?.price)))),!e.hideAddToBundle&&((i?.inventoryQuantity??0)>0||e.disableInventoryTracking)&&(!e?.disableQuantitySelector||f<1)&&t.createElement("div",{style:{width:"100%"}},t.createElement("button",{style:{textTransform:"uppercase",fontWeight:"800",width:"100%",cursor:"pointer",border:"none",backgroundColor:e.themeColor||"#111",borderRadius:e.cornerRadius,color:e.primaryTextColorCta||"#fff",minHeight:"40px",padding:"0px 15px",position:"relative",overflow:"hidden"},className:"yt-bundleProductModal-modal-atc-button",onClick:e=>{e.stopPropagation(),e.preventDefault(),k()},disabled:"idle"!==x},e.styles.byob.addToBundleCTAText||"Add to Bundle"))))));return v.createPortal(u?O:_,E)}),im=({options:e,selectedValue:n,onChange:r,type:o="text",isOptionAvailable:a,isMobile:i})=>t.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px",alignItems:"center"}},e?.map(e=>{const l=!a||a(e.name);return i&&!l?null:t.createElement("div",{key:e.name,onClick:()=>{l&&r(e)},style:{cursor:l?"pointer":"not-allowed"}},((e,n)=>{const r=!a||a(e.name),i={cursor:r?"pointer":"not-allowed",border:n?"2px solid #333":"1px solid #d1d5db",transition:"all 0.2s ease",opacity:r?1:.5};return"color"===o?t.createElement("div",{style:{...i,width:24,height:24,borderRadius:"50%",backgroundColor:e.value}}):"image"===o?t.createElement("img",{src:Mn(e.value,48,85,"webp")||"/placeholder.svg",alt:e.name,style:{...i,width:24,height:24,borderRadius:"50%",objectFit:"cover"}}):t.createElement("div",{style:{...i,padding:"4px 8px",borderRadius:"12px",fontSize:"12px",fontWeight:n?"600":"400",backgroundColor:n?"#f3f4f6":"white",color:"#333",minWidth:"fit-content",textAlign:"center"}},e.name)})(e,n?.name===e.name))})),lm=({product:e,isOpen:n,onClose:r,variantOptions:o,cta:a,onConfirm:i,disableInventoryTracking:d})=>{const[s,p]=c(()=>{const t=e.variants.edges.find(e=>d||e.node.inventoryQuantity>0)?.node;return t?.title&&"Default Title"!==t.title?t.title.split(" / "):e.options?.map(e=>e.values[0])||[]}),[u,m]=c(window.innerWidth<1024);l(()=>{const e=()=>m(window.innerWidth<1024);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),l(()=>{const e=e=>{"Escape"===e.key&&r()};return n&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n,r]);const f=e.variants.edges.find(t=>t.node.title===(e.options?.length>0?s.join(" / "):s[0]))?.node,g=f?.image?.url||e.featuredMedia?.preview?.image?.url,x=Mn(g,150,85,"webp"),h=e=>{if(!o?.options)return"text";const t=o.options.find(t=>t.name===e);return t?.type||"text"},y=e=>{if(!o?.options)return e.values.map(e=>({name:e,value:e}));const t=o.options.find(t=>t.name===e.name);return e.values.map(e=>{const n=t?.values?.find(t=>t.name===e);return{name:e,value:n?.value||e}})},b=(e,t)=>{const n=s[t];if(!n)return null;return y(e).find(e=>e.name===n)||null};if(!n)return null;const w=t.createElement("div",{onClick:r,style:{position:"fixed",top:0,left:0,right:0,bottom:0,width:"100vw",height:"100vh",background:"rgba(0, 0, 0, 0.4)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},role:"dialog","aria-modal":"true","aria-labelledby":"yt-variant-options-modal-title",className:"yt-bundleBuilder-variant-options-modal-backdrop"},t.createElement("div",{onClick:e=>e.stopPropagation(),style:{background:"white",borderRadius:16,width:"fit-content",minWidth:350,maxWidth:450,maxHeight:"90vh",overflowY:"auto",position:"relative",zIndex:999,...window.innerWidth<=600&&{width:"90vw",maxWidth:"90vw",minWidth:"90vw"}},className:"yt-bundleBuilder-variant-options-modal-container"},t.createElement("div",{id:"yt-variant-options-modal-title",style:{width:"100%",padding:"16px 0",fontWeight:600,fontSize:14,textTransform:"uppercase",backgroundColor:"rgba(217, 217, 217)",color:"black",textAlign:"center",borderTopLeftRadius:16,borderTopRightRadius:16}},"Select Options"),t.createElement("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"16px 20px",borderBottom:"1px solid #f0f0f0"},className:"yt-bundleBuilder-variant-options-modal-product-block"},t.createElement("img",{src:x,alt:e.title,style:{width:60,height:60,borderRadius:8,objectFit:"cover",flexShrink:0,transition:"opacity 0.3s ease"},className:"yt-bundleBuilder-variant-options-modal-product-image"}),t.createElement("div",{style:{display:"flex",flexDirection:"column",flex:1,gap:4},className:"yt-bundleBuilder-variant-options-modal-product-info"},t.createElement("div",{style:{fontSize:14,fontWeight:600,color:"#333"},className:"yt-bundleBuilder-variant-options-modal-product-title"},e.title))),t.createElement("div",{style:{padding:"20px"},className:"yt-bundleBuilder-variant-options-modal-variant-selectors"},e.options.map((n,r)=>t.createElement("div",{key:n.name,style:{display:"flex",flexDirection:"column",gap:8,marginBottom:n?.values?.length>1?16:0},className:"yt-bundleBuilder-variant-options-modal-option"},n?.values?.length>1&&t.createElement(t.Fragment,null,t.createElement("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},className:"yt-bundleBuilder-variant-options-modal-option-label"},t.createElement("span",{style:{fontSize:14,fontWeight:500,color:"#333"},className:"yt-bundleBuilder-variant-options-modal-option-name"},"Select ",n.name),t.createElement("span",{style:{fontSize:12,fontWeight:500,color:"#666",backgroundColor:"#f5f5f5",padding:"4px 12px",borderRadius:16,textTransform:"capitalize"},className:"yt-bundleBuilder-variant-options-modal-option-selected-value"},b(n,r)?.name||n.values[0])),t.createElement(im,{options:y(n),selectedValue:b(n,r),onChange:e=>{((e,t)=>{const n=[...s];n[e]=t.name,p(n)})(r,e)},type:h(n.name),isOptionAvailable:t=>((t,n)=>{if(d)return!0;const r=[...s];r[t]=n;const o=e.options?.length>0?r.join(" / "):r[0],a=e.variants.edges.find(e=>e.node.title===o)?.node;return!!a&&a.inventoryQuantity>0})(r,t),isMobile:u}))))),t.createElement("button",{className:"yt-bundleBuilder-variant-options-modal-confirm-button",onClick:()=>{const t=e.variants.edges.find(t=>t.node.title===(e.options?.length>0?s.join(" / "):s[0]))?.node,n=t&&(d||t.inventoryQuantity>0);if(t?.id&&n)i(t.id),r();else{console.warn("yt::variant options modal - selected variant not available or out of stock:",s);const t=e.variants.edges.find(e=>d||e.node.inventoryQuantity>0)?.node.id;t&&(i(t),r())}},style:{width:"100%",fontSize:14,fontWeight:600,textTransform:"uppercase",backgroundColor:a.backgroundColor,color:a.textColor,textAlign:"center",padding:"16px 0",border:"none",cursor:"pointer",borderBottomLeftRadius:16,borderBottomRightRadius:16},onMouseEnter:e=>{e.currentTarget.style.opacity="0.9"},onMouseLeave:e=>{e.currentTarget.style.opacity="1"}},"Add to Bundle")));return v.createPortal(w,document.body)};function cm({quantity:e,setQuantity:n,remainingQuantity:r,handleAddToBundle:o,variantId:a,product:i,handleRemoveItem:l,hideAddToBundle:c,disableInventoryTracking:d,selectedVariantInventoryQty:s}){const p={display:"flex",alignItems:"center",justifyContent:"center",width:"33%",cursor:"pointer",backgroundColor:"#f2f2f2",userSelect:"none",border:"none",padding:"8px",margin:"0",fontSize:"20px",color:"#333",textDecoration:"none",boxShadow:"none",outline:"none",borderRadius:"0",boxSizing:"border-box"},u=d||e<s;return t.createElement("div",{className:"yt-bundleBuilder-quantity-selector-container"},t.createElement("button",{className:"yt-bundleBuilder-quantity-selector_button-minus",onClick:t=>{t.stopPropagation();const r=Math.max(0,e-1);n(r),l&&a&&l(a,1)},style:p},"-"),t.createElement("div",{className:"yt-bundleBuilder-quantity-selector_quantity"},e," added"),t.createElement("button",{className:"yt-bundleBuilder-quantity-selector_button-plus",onClick:t=>{t.stopPropagation();const l=Math.min(r,e+1);n(l),o&&a&&i&&o(a,i,1)},disabled:!u||c,style:{...p,cursor:!u||c?"not-allowed":"pointer",opacity:!u||c?.6:1}},"+"))}const dm=({product:e,styles:n,selectedVariant:r})=>{const[o,a]=c(!1),i=r?.image?.url||e?.featuredMedia?.preview?.image?.url||e?.media?.edges?.[0]?.node?.image?.url||"",l=e?.media?.edges?.map(e=>e.node.image.url).filter(Boolean),d=l?.[1]??i??"";return t.createElement("div",{className:"yt-bundleBuilder-image-effect",style:{position:"relative",width:"100%",overflow:"hidden",aspectRatio:n.general.imageAspectRatio||"1/1"},onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1)},t.createElement("div",{className:"yt-bundleBuilder-image-effect_wrapper",style:{width:"100%",height:"100%",position:"relative"}},t.createElement("img",{className:"yt-bundleBuilder-image-effect_main-image",style:{width:"100%",height:"100%",objectFit:"cover",opacity:o&&(i||l?.[0])!==d?0:1,transition:l?.length>0?"opacity 300ms ease, transform 300ms ease":"",transform:o?"scale(1.1)":"scale(1)"},src:i||l?.[0],alt:e.title}),(i||l?.[0])!==d&&t.createElement("img",{className:"yt-bundleBuilder-image-effect_hover-image",style:{width:"100%",height:"100%",objectFit:"cover",opacity:o?1:0,transition:"opacity 400ms ease, transform 400ms ease",transform:o?"scale(1.1)":"scale(1)",position:"absolute",top:0,left:0},src:i||d,alt:e.title})))},sm=({product:e,bundle:n,handleAddToBundle:r,hideAddToBundle:o,remainingQuantity:a,themeColor:i,handleRemoveItem:d,transitionActive:s,idx:p,selecteditems:u,customVariantsQuantity:m})=>{const f=nn(bu),g=n.customizations,x=g?.byob?.variantSelectorType,[h,y]=c(!1),b=g.general?.variantTitleSuffix?e?.variants?.edges:(e=>{if(!e||e.length<2)return e;const t=e.map(e=>e.node.title).map(e=>e.split(" "));let n=[...t[0]];for(let e=1;e<t.length;e++){const r=t[e];let o=0;for(;o<n.length&&o<r.length&&n[n.length-1-o]===r[r.length-1-o];)o++;n=n.slice(n.length-o)}return n.length<1?e:e.map(e=>{const t=e.node.title.split(" "),r=t.slice(0,t.length-n.length).join(" ");return{...e,node:{...e.node,title:r,commonSuffix:n.join(" ")}}})})(e?.variants?.edges);if(!b||!b.length)return t.createElement(t.Fragment,null);const v=b?.find(e=>e.node.inventoryQuantity>0||!g?.general.trackInventory)?.node?.id;if(!v&&!g.general.showOutOfStockProducts)return t.createElement(t.Fragment,null);const[w,C]=c(b?.find(e=>!g?.general.trackInventory||e.node.inventoryQuantity>0)?.node?.id||b[0]?.node?.id),[E,k]=c(0),[T,S]=c(window.innerWidth<450),[B,$]=c("normal"),z=b?.find(e=>e?.node?.id===w)?.node,D=m&&m.length>0&&m.find(e=>e.variantId==z?.id)?.quantity||z&&z?.inventoryQuantity;l(()=>{const e=u.find(e=>e.variantId===w);k(e?e.quantity:0)},[E,u,w]),l(()=>{const e=()=>{S(window.innerWidth<450)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),l(()=>{CSS.supports("font-weight","500")?$("500"):CSS.supports("font-weight","400")?$("400"):CSS.supports("font-weight","600")&&$("600")},[]),l(()=>{document.documentElement.style.setProperty("--yt-bundle-font-weight",B)},[B]),l(()=>{if(w&&!b?.some(e=>e.node.id===w)){const e=b[0]?.node.id;e&&C(e)}},[w,b]);const I=e.variants&&e.variants.edges?.length>1&&"customOptions"!==x,P="undefined"!=typeof window?(window?.ytapp||window?.ytBundleApp)?.storeId:void 0,N="53933408435"===P,_="75851235630"===P,O=(e=>{if(e.metafield&&"yourtoken_bundles_app"===e.metafield.namespace&&"categories"===e.metafield.key){if(e.metafield.jsonValue&&Array.isArray(e.metafield.jsonValue))return e.metafield.jsonValue;if(e.metafield.value)try{const t=JSON.parse(e.metafield.value);if(Array.isArray(t))return t}catch(e){console.error("Failed to parse categories:",e)}}return[]})(e),M=O.length>0;return t.createElement(t.Fragment,null,t.createElement("div",{className:`bundle-builder-product-container ${s?"yt-product-card-transition-active":p%2==0?"yt-product-card-transition":"yt-product-card-transition-up"} ${"none"===g?.byob.shadowType?"shadow-none":"spread"===g?.byob.shadowType?"shadow-spread":"shadow-no-spread"}`,style:{borderRadius:g?.byob.borderRadius,border:"transparent"!==g?.byob.borderColor?`1px solid ${g?.byob.borderColor}`:"none",backgroundColor:g?.byob.cardBackgroundColor||"#fff"},onClick:()=>{if(D<=0&&g?.general.trackInventory)return;const t={...e,variants:{...e.variants,edges:b},selectedVariant:z};f(t)}},t.createElement("div",{className:"yt-bundleBuilder-product-card_image-wrapper"},t.createElement(dm,{product:e,styles:g,selectedVariant:z}),n?.productCardBadgeText&&t.createElement("div",{className:"yt-bundleBuilder-product-card_badge",style:{position:"absolute",top:"0px",left:"0px",backgroundColor:g?.general.primaryColor||"#111",color:g?.general.primaryContrastColor||"#fff",zIndex:1,margin:"0px",whiteSpace:"pre",padding:"4px 8px",fontSize:"12px",borderTopLeftRadius:g.byob.borderRadius}},n.productCardBadgeText),I&&t.createElement("div",{className:"yt-bundleBuilder-variant-selector-container",style:{position:"relative",width:"100%"}},t.createElement("select",{className:"bundle-builder-variant-selector "+(N?"bundle-builder-variant-selector--coralHaze":""),onClick:e=>{e.preventDefault(),e.stopPropagation()},value:w||"",onChange:e=>{e.stopPropagation(),e.preventDefault(),C(e.target.value)}},b?.map(e=>{const n=window.innerWidth<=320?10:window.innerWidth<=420?15:22,r=e.node.title.length>n?e.node.title.substring(0,n)+"...":e.node.title;return t.createElement("option",{key:e.node.id,value:e.node.id},r)})),t.createElement("div",{className:"yt-bundleBuilder-variant-selector_icon",style:{position:"absolute",right:"16px",bottom:"10px",pointerEvents:"none"}},t.createElement(F,null)))),t.createElement("div",{className:"yt-bundleBuilder-product-card_details"},"enabled"===n?.customizations?.byob?.productCardCategoryVisibility&&M&&t.createElement("div",{className:"yt-bundleBuilder-product-card_category-wrapper",style:{padding:"2px 4px"}},t.createElement("div",{className:"yt-bundleBuilder-product-card_category-container",style:{display:"flex",flexWrap:"wrap",gap:"4px"}},O.slice(0,2).map((e,n)=>t.createElement("span",{className:"yt-bundleBuilder-product-card_category",key:n,style:{fontSize:T?"8px":"12px",color:"#666",fontWeight:"500"}},e.charAt(0).toUpperCase()+e.slice(1))),O.length>2&&t.createElement("span",{className:"yt-bundleBuilder-product-card_category-more",style:{fontSize:"10px",padding:"2px 6px",backgroundColor:"rgba(0, 0, 0, 0.05)",borderRadius:"8px",color:"#666",fontWeight:"500"}},"+",O.length-2," more"))),t.createElement("div",{className:"yt-bundleBuilder-product-card_title",style:{"--title-margin-top":T?"4px":"0px","--title-padding":n?.showBorder??1?"0 10px":"0 4px",...!1===g?.byob.productsPriceVisibility&&{"--title-padding":"8px"},...g?.byob.productTitleFontSize&&{"--title-font-size":g?.byob.productTitleFontSize}}},_?String(z?.displayName).replace("- Default Title",""):e.title,z?.commonSuffix?" -"+z?.commonSuffix:"")),"ratingOnly"===n?.reviewRatingType&&(e?.rating?.averageRating??0)>0&&t.createElement("div",{className:"yt-bundleBuilder-product-card_rating",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},t.createElement(to,{color:"gold",size:14}),t.createElement("span",{className:"yt-bundleBuilder-product-card_rating-text",style:{marginLeft:6}},e?.rating?.averageRating," rating")),"ratingAndReviewCount"===n?.reviewRatingType&&(e?.rating?.averageRating??0)>0&&t.createElement("div",{className:"yt-bundleBuilder-product-card_rating-review-count",style:{display:"flex",alignItems:"center",justifyContent:"start",fontSize:"14px",color:"#333"}},t.createElement(to,{color:"gold",size:14})," ",e?.rating?.averageRating,t.createElement(or,{size:14,style:{color:"dodgerblue",marginLeft:"4px"}})," ","(",e?.rating?.ratingCount," reviews)"),g?.byob.productsPriceVisibility&&t.createElement("div",{className:"yt-bundleBuilder-product-price",style:{marginBottom:"5px",padding:n?.showBorder?"0px 10px":"0 4px"}},parseFloat(z?.price??"0")>0?t.createElement("span",{className:"yt-bundleBuilder-product_price--new"},Wg(g.general.currencySymbol,n?.storeCurrencyCode)??"Rs.",Hg(z?.price)):t.createElement("span",{className:"yt-bundleBuilder-product-card_price--free"},"Free"),z?.compareAtPrice&&g?.byob.compareAtPriceVisibility&&parseFloat(z.compareAtPrice)>parseFloat(z?.price)&&t.createElement("span",{className:"yt-fixed-bundle-original-price yt-bundleBuilder-product-card_price--old",style:{fontSize:"14px"}},Wg(g.general.currencySymbol,n?.storeCurrencyCode)??"Rs.",Hg(z.compareAtPrice))),(D>0||!g?.general.trackInventory)&&t.createElement("div",{className:"yt-product-atc-wrapper"},(0===E||void 0===E)&&t.createElement("button",{style:{...!o&&{backgroundColor:g?.general.primaryColor||"#111",color:g?.general.primaryContrastColor||"#fff"}},disabled:o,onClick:t=>{t.stopPropagation(),t.preventDefault(),k(1),(()=>{if(!w)return;"customOptions"===x&&b.length>1?y(!0):r(w,e,1)})()},className:"yt-product-atc-button"},g?.byob.addToBundleCTAText),!n?.disableQuantitySelector&&E>0&&w&&t.createElement("div",{className:"visible yt-bundleBuilder-quantity-selector-container--visible",style:{overflow:"hidden"}},t.createElement(cm,{remainingQuantity:a,setQuantity:k,quantity:E,handleAddToBundle:r,variantId:w,product:e,handleRemoveItem:d,hideAddToBundle:o,disableInventoryTracking:!g?.general.trackInventory,selectedVariantInventoryQty:D})),n?.disableQuantitySelector&&E>0&&w&&t.createElement("button",{style:{backgroundColor:g?.general?.primaryContrastColor||"#fff"},className:"yt-bundleBuilder-product-card_add-to-bundle-button--added"},t.createElement("div",{className:"yt-bundleBuilder-product-card_added-button-text"},"ADDED"),t.createElement("div",{onClick:e=>{e.stopPropagation();const t=Math.max(0,E-1);k(t),d&&w&&d(w,1)},className:"yt-bundleBuilder-product-card_remove-button"},t.createElement(fo,{className:"yt-bundleBuilder-product-card_remove-icon",style:{color:"#fff",fontSize:"20px"}})))),D<=0&&g?.general.trackInventory&&t.createElement("div",{style:{backgroundColor:g.general.disabledButtonColor,color:"#fff",cursor:"not-allowed",transition:"transform 0.2s ease-in-out"},className:"yt-product-atc-disabled yt-bundleBuilder-product-card_add-to-bundle-button--disabled"},g?.general.outOfStockLabel||"Out of Stock")),"customOptions"===x&&h&&b.length>1&&t.createElement(lm,{product:e,isOpen:h,onClose:()=>y(!1),variantOptions:n.variantOptions,cta:{textColor:g.general.ctaTextColor,backgroundColor:g.general.primaryColor},onConfirm:t=>{C(t),r(t,e,1)},disableInventoryTracking:!g?.general.trackInventory}))},pm=({currentStep:e,setCurrentProductTier:n,totalSteps:r,tiers:o,isMobile:a,selectedProductsByTier:i,primaryColor:l="#000",primaryTextColorCta:c="#fff",tierNavigation:d})=>t.createElement("div",{className:"yt-bundleBuilder-stepper-container",style:{textAlign:"center",fontSize:"20px"}},t.createElement("div",{className:"yt-bundleBuilder-stepper_steps",style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center"}},Array.from({length:r}).map((c,s)=>{const p=s+1,u=o[s].minimumQuantity-(i[s]?.length??0)===0,m=s===e;return l="black"===l?"#000000":l,t.createElement(t.Fragment,{key:p},t.createElement("div",{className:"yt-bundleBuilder-stepper_step "+(m?"yt-bundleBuilder-stepper_step--active":""),style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",gap:a?"4px":"8px"},onClick:()=>!1===d?()=>{}:n(p-1)},t.createElement("div",{className:"yt-bundleBuilder-stepper_label",style:{fontSize:"14px"}},"Step ",p),t.createElement("div",{className:"yt-bundleBuilder-stepper_line-container",style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",cursor:"pointer"}},t.createElement("div",{className:"yt-bundleBuilder-stepper_line",style:{height:"3px",width:a?"30px":"50px",backgroundColor:u?l:m?"#666666":"#CBD5E0",display:"block",borderTopLeftRadius:"5px",borderBottomLeftRadius:"5px"}}),t.createElement("div",{className:"yt-bundleBuilder-stepper_dot",style:{width:"10px",height:"10px",borderRadius:"50%",backgroundColor:u?`${l}50`:"white",border:`2px solid ${u?l:m?"#666666":"#CBD5E0"}`,display:"flex",alignItems:"center",justifyContent:"center"}}),t.createElement("div",{className:"yt-bundleBuilder-stepper_line",style:{height:"3px",width:a?"30px":"50px",backgroundColor:u?l:m?"#666666":"#CBD5E0",display:"block",marginRight:s<r?a?"4px":"6px":"",borderTopRightRadius:"5px",borderBottomRightRadius:"5px"}}))))})),t.createElement("div",{className:"yt-bundleBuilder-tier_title",style:{margin:a?"16px 0px":"15px 0px",fontSize:a?"16px":"18px",padding:"4px",background:"rgba(0, 0, 0, 0.03)",borderBottom:"1px solid rgba(130, 130, 130, 0.28)"}},o[e]?.title)),um=({isMobile:e,setSearchTerm:n,searchTerm:r,styles:o,setSortBy:a})=>{const[i,d]=c(!1),[s,p]=c(r);return l(()=>{const e=setTimeout(()=>{n(s)},300);return()=>clearTimeout(e)},[s,n]),t.createElement("div",{className:"yt-byob-sort-filter-container yt-bundleBuilder-sort-filter-container",style:{display:"flex",flexDirection:e?"column":"row",justifyContent:"space-between",alignItems:e?"flex-end":"center",textAlign:"center",marginBottom:"20px",width:"97%",gap:e?"10px":"0"}},t.createElement("div",{className:"yt-byob-sort-filter-inner yt-bundleBuilder-sort-filter-inner",style:{display:"flex",flexDirection:i&&e?"column":e?"row-reverse":"row",justifyContent:"space-between",alignItems:i?"":"center",gap:"12px",width:"100%"}},t.createElement("div",{className:"yt-byob-search-wrapper yt-bundleBuilder-search-wrapper",style:{position:"relative",display:"flex",alignItems:"center",width:e?i?"100%":"auto":"400px",transition:"width 0.3s ease-in-out"}},e&&!i?t.createElement(mo,{className:"yt-byob-search-icon yt-bundleBuilder-search-icon",fontSize:"20px",color:"#555",style:{cursor:"pointer",lineHeight:"normal"},onClick:()=>d(!0)}):t.createElement(t.Fragment,null,t.createElement("input",{className:"yt-byob-search-input yt-bundleBuilder-search-input",style:{width:"100%",padding:e?"10px 12px":"10px 14px",fontSize:"14px",outline:"none",color:"#333",border:"1px solid #c7c7c7",borderRadius:o?.byob.borderRadius,boxShadow:o?.byob.borderColor?"0 2px 4px rgba(0, 0, 0, 0.1)":"none",textAlign:"start"},placeholder:"Search by Product Name",value:s,onChange:e=>p(e.target.value)}),!i&&t.createElement("span",{className:"yt-byob-search-icon-input yt-bundleBuilder-search-icon-input",style:{position:"absolute",right:"12px",color:"#aaa",fontSize:"16px",display:"flex",alignItems:"center",justifyContent:"center",background:"white",paddingLeft:"5px"}},t.createElement(mo,{fontSize:"18px",style:{lineHeight:"normal"}}))),e&&i&&t.createElement("span",{className:"yt-byob-search-close-icon yt-bundleBuilder-search-close-icon",style:{position:"absolute",right:"12px",color:"#aaa",fontSize:"16px",cursor:"pointer"},onClick:()=>d(!1)},"✖")),t.createElement("div",{className:"yt-byob-filter-wrapper yt-bundleBuilder-filter-wrapper",style:{display:"flex",alignItems:"center",textAlign:"center",border:window.innerWidth>600?"1px solid #d1d5db":"",padding:"8px 12px",fontSize:"14px",cursor:"pointer",borderRadius:o?.byob.borderRadius,boxShadow:o?.byob.borderColor?window.innerWidth>600?"0 2px 4px rgba(0, 0, 0, 0.1)":" ":"none"}},t.createElement("span",{className:"yt-byob-filter-label yt-bundleBuilder-filter_label",style:{fontSize:"14px",color:"#555",marginRight:"6px"}},"Sort:"),t.createElement("select",{className:"yt-byob-filter-select yt-bundleBuilder-filter_select",style:{flex:1,border:"none",height:"auto",padding:"0px",marginBottom:"0px",background:"transparent",fontSize:"14px",color:"#333",fontWeight:"500",width:e?"120px":"",outline:"none",cursor:"pointer",textAlign:"start"},onChange:e=>a(e.target.value)},t.createElement("option",{value:"best-selling"},"Featured"),t.createElement("option",{value:"title-asc"},"Product Title (A-Z)"),t.createElement("option",{value:"title-desc"},"Product Title (Z-A)"),t.createElement("option",{value:"price-low-to-high"},"Price (Low to High)"),t.createElement("option",{value:"price-high-to-low"},"Price (High to Low)")))))},mm=({styles:e,isMobile:n,categories:r,activeCategory:o,onCategoryChange:a})=>{const i=e=>{a(e)},l=(e,t)=>{const n=e.replace("#","");return`rgba(${parseInt(n.substring(0,2),16)}, ${parseInt(n.substring(2,4),16)}, ${parseInt(n.substring(4,6),16)}, ${t})`};return"tabs"===e?.byob?.categoryFilterOnPage?t.createElement("div",{style:{overflowX:n?"auto":"visible",scrollbarWidth:"none",msOverflowStyle:"none",marginBottom:"20px",width:"100%"},className:"yt-categoryfilter-wrapper"},t.createElement("div",{style:{display:"flex",gap:"0px",minWidth:"max-content",paddingBottom:"1px",flexWrap:"nowrap",justifyContent:"center",borderBottom:"1px solid #e0e0e0",width:"auto",height:n?"28px":"45px"},className:"yt-categoryfilter-tabs-container"},["All",...r].map(r=>{const a=o===r;return t.createElement("button",{key:r,onClick:()=>i(r),className:"yt-categoryfilter-tab-button "+(a?"yt-categoryfilter-tab-button--active":""),style:{background:"none",border:"none",padding:n?"12px 16px":"12px 20px",fontSize:n?"14px":"16px",fontWeight:a?"600":"400",color:a?e.general.primaryColor:"#666",cursor:"pointer",position:"relative",transition:"all 0.3s ease",backgroundColor:a?l(e.general.primaryColor,.07):"transparent",borderBottom:a?`2px solid ${e?.general.primaryColor}`:"2px solid transparent",marginBottom:"-1px",whiteSpace:"nowrap",minWidth:"fit-content"},onMouseEnter:t=>{a||(t.currentTarget.style.color=e?.general.primaryColor)},onMouseLeave:e=>{a||(e.currentTarget.style.color="#666")}},t.createElement("span",{style:{visibility:"hidden",height:0,display:"block",overflow:"hidden",fontWeight:600},"aria-hidden":"true"},r.charAt(0).toUpperCase()+r.slice(1)),t.createElement("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",textAlign:"center"}},r.charAt(0).toUpperCase()+r.slice(1)))}))):t.createElement("div",{style:{overflowX:n?"auto":"visible",scrollbarWidth:"none",msOverflowStyle:"none",marginBottom:"20px",paddingBottom:"5px"},className:"yt-categoryfilter-wrapper"},t.createElement("div",{style:{display:"flex",gap:"8px",minWidth:"max-content",flexWrap:"nowrap",justifyContent:"center",paddingRight:n?"10px":"0px"},className:"yt-categoryfilter-buttons-container"},["All",...r].map(r=>t.createElement("button",{key:r,onClick:()=>i(r),className:"yt-categoryfilter-button",style:{padding:n?"8px 16px":"10px 18px",fontSize:n?"13px":"14px",fontWeight:"500",border:`1px solid ${o===r?e?.general.primaryColor:"#e0e0e0"}`,borderRadius:e?.general.ctaBorderRadius,backgroundColor:o===r?e?.general.primaryColor:"white",color:o===r?"white":"#333",cursor:"pointer",transition:"all 0.3s ease",outline:"none",whiteSpace:"nowrap",minWidth:"fit-content",flexShrink:0},onMouseEnter:t=>{o!==r&&(t.currentTarget.style.borderColor=e?.general.primaryColor,t.currentTarget.style.color=e?.general.primaryColor)},onMouseLeave:e=>{o!==r&&(e.currentTarget.style.borderColor="#e0e0e0",e.currentTarget.style.color="#333")}},r.charAt(0).toUpperCase()+r.slice(1)))))},fm=({bundle:e,selectedItems:n,setSelectedItems:r,handleAddToCart:a,bundleAddToCartLoading:i,renderingOnPage:d,selectedItemsQuantity:s,handleRemoveItem:p,bundleSubtotal:u,shadowRoot:m})=>{const[f,g]=c(void 0),[x,h]=c(window.innerWidth<450),[y,b]=c(0),[v,w]=c({}),C=e.builderTiers?.type,E=e.customizations,k=e.builderTiers?.productTier??[],T=e.builderTiers?.offerTier??[],[S,B]=c([]),[$,z]=c(!1),[D,I]=c("All");l(()=>{const t=new Set;let n=!1;e?.products?.forEach(e=>{const r=e.productDetails;if(r.metafield&&"yourtoken_bundles_app"===r.metafield.namespace&&"categories"===r.metafield.key){let e=[];if(r.metafield.jsonValue&&Array.isArray(r.metafield.jsonValue))e=r.metafield.jsonValue;else if(r.metafield.value)try{const t=JSON.parse(r.metafield.value);Array.isArray(t)&&(e=t)}catch(e){console.error("Failed to parse categories:",e)}e.length>0&&(n=!0,e.forEach(e=>t.add(e)))}}),B(Array.from(t)),z(n)},[e.products]);const P=((e,t)=>"All"===t?e:e.filter(e=>{const n=e.productDetails;if(n.metafield&&"yourtoken_bundles_app"===n.metafield.namespace&&"categories"===n.metafield.key){let e=[];if(n.metafield.jsonValue&&Array.isArray(n.metafield.jsonValue))e=n.metafield.jsonValue;else if(n.metafield.value)try{const t=JSON.parse(n.metafield.value);Array.isArray(t)&&(e=t)}catch(e){console.error("Failed to parse categories:",e)}return e.includes(t)}return!1}))(e.products.filter(e=>"ACTIVE"===e.productDetails.status||void 0===e.productDetails.status||""===e.productDetails.status),D),N="productTier"===C?k.reduce((e,t)=>e+t.minimumQuantity,0):"offerTier"===C?T.reduce((e,t)=>e+t.minimumQuantity,0):e.minimumQuantity,[_,O]=c(""),[M,F]=c(""),A=((e,t)=>e.filter(e=>e?.productDetails?.title?.toLowerCase().includes(t?.toLowerCase())))(P,_),R=((e,t)=>[...e].sort((e,n)=>{const r=e?.productDetails?.title?.toLowerCase(),o=n?.productDetails?.title?.toLowerCase(),a=parseFloat(e?.productDetails?.variants?.edges?.[0]?.node?.price||"0"),i=parseFloat(n?.productDetails?.variants?.edges?.[0]?.node?.price||"0");switch(t){case"title-asc":return r.localeCompare(o);case"title-desc":return o.localeCompare(r);case"price-low-to-high":return a-i;case"price-high-to-low":return i-a;default:return 0}}))(A,M),L=((e,t,n,r,o)=>(e[o]?.products.filter(e=>t.some(t=>t.productId===e.productId&&(e.variantIds.length<1||t.variantIds.includes(e.variantIds[0]))&&t?.productDetails.title.toLowerCase().includes(n?.toLowerCase())))||[]).sort((e,n)=>{let o=t.find(t=>t.productId===e.productId&&(e.variantIds.length<1||t.variantIds.includes(e.variantIds[0]))),a=t.find(e=>e.productId===n.productId&&(n.variantIds.length<1||e.variantIds.includes(n.variantIds[0])));if(!o||!a)return 0;const i=o.productDetails?.title?.toLowerCase(),l=a.productDetails?.title?.toLowerCase(),c=parseFloat(o?.productDetails?.variants?.edges[0]?.node?.price||"0"),d=parseFloat(a?.productDetails?.variants?.edges[0]?.node?.price||"0");switch(r){case"title-asc":return i.localeCompare(l);case"title-desc":return l.localeCompare(i);case"price-low-to-high":return c-d;case"price-high-to-low":return d-c;default:return 0}}))(k,R,_,M,y),[j,V]=rn(bu),[H,W]=c(!1);l(()=>{setTimeout(()=>{W(!0)},100)},[]);const U=o(null);l(()=>{const e=()=>{h(window.innerWidth<450)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),l(()=>{if(e.coverImageUrl){const t=new Image;t.src=e.coverImageUrl,t.onload=()=>{g(t.width/t.height)}}},[e.coverImageUrl]),l(()=>{W(!1),setTimeout(()=>W(!0),100)},[y]);const G=(e,t)=>{if("productTier"===C){let n={...v},r=!1;if(n[t]){const o=n[t].indexOf(e);-1!==o&&(n[t]=[...n[t]],n[t].splice(o,1),r=!0)}if(!r)for(let t=k.length;t>=0;t--){const r=n[t].indexOf(e);if(-1!==r){n[t]=[...n[t]],n[t].splice(r,1);break}}w(n);const o=k.findIndex((e,t)=>n[t]?.length<e.minimumQuantity);-1!==o&&b(o)}p(e)};l(()=>{if("productTier"===C){const e=Object.fromEntries(k.map(e=>[e.tier,[]]));w(e)}},[e]),l(()=>{if("productTier"!==C||!k[y])return;if(N===s)return;const e=k.findIndex((e,t)=>{const n=v[t]||[];return t>=y&&n.length<e.minimumQuantity});-1!==e&&e!==y&&(b(e),(()=>{const e=document.querySelector(".products-display");e&&e.scrollIntoView({behavior:"smooth"})})())},[v,k,C]),l(()=>{O("")},[y]),l(()=>{function e(e){if(!U.current||!e.target)return;!U.current.contains(e.target)&&V(void 0)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);const Q=(e,t,o)=>{var a;"productTier"===C&&(a=e,w(e=>{const t={...e},n=k.findIndex((e,n)=>{const r=t[n]||[];return n>=y&&r.length<e.minimumQuantity});return-1!==n&&b(n),t[n]||(t[n]=[]),t[n].push(a),t})),Ug(e,t,o,n,r)},q=(()=>{if(!e?.builderTiers)return e.minimumQuantity;const{type:t,offerTier:n,productTier:r}=e.builderTiers,o="offerTier"===t?n:"productTier"===t?r:null;if(!o)return e.minimumQuantity;let a=0;return o.map(e=>{a+=e.minimumQuantity}),a})(),Y=x&&e.mobileCoverImageUrl?e.mobileCoverImageUrl:e.coverImageUrl||null,Z=e.customStoreDetails?.fixedInventoryDetails,K=e=>{const t=E?.general?.showOutOfStockProducts;if(t||!E?.general.trackInventory)return!0;const n=e?.productDetails?.variants?.edges||[];if(Z){if(n.some(e=>Z.some(t=>t.variantId===e.node.id&&t.quantity>0)))return!0}return n.some(e=>e.node.inventoryQuantity>0)},X="bundles"==e.appName?e.pageHeader?.title:e?.title,J="bundles"==e.appName?e.pageHeader?.description:e?.subtitle;return t.createElement(t.Fragment,null,t.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",rowGap:"15px",padding:"20px 0px",marginBottom:"20px",backgroundColor:E.byob.sectionBackgroundColor,..."transparent"!==E.fixedBundle.sectionBackgroundColor&&{padding:"20px"}},id:"yt-bundleBuilder-main-container",className:"yt-bundleBuilder-main-container"},Y?t.createElement("div",{style:{position:"relative",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",overflow:"hidden",...e?.coverImageVerticalMargin&&{marginBottom:e?.coverImageVerticalMargin,marginTop:e?.coverImageVerticalMargin}},className:"yt-bundleBuilder-header-banner"},Y&&t.createElement("img",{src:Y,alt:"Background",className:"yt-bundleBuilder-header_image",style:{width:"100%",height:"auto",display:"block"}}),t.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1,display:"flex",flexDirection:"column",alignItems:"center",padding:"20px",width:"90%",maxWidth:"1000px",textShadow:"2px 2px 8px rgba(0, 0, 0, 0.4)"},className:"yt-bundleBuilder-header_text-overlay"},t.createElement("span",{style:{lineHeight:"normal",fontSize:E?.byob?.titleFontSize??"3rem",fontWeight:"700",color:E?.byob?.titleTextColor??"#000",marginBottom:"15px",backgroundColor:E?.byob?.titleBackgroundColor??"transparent",width:"100%",textAlign:"center"},className:"bundle-builder-title yt-bundleBuilder-header_title"},X),t.createElement("span",{style:{lineHeight:"normal",fontSize:E?.byob?.subtitleFontSize??"1.5rem",color:E?.byob?.titleTextColor??"#000"},className:"bundle-builder-subtitle yt-bundleBuilder-header_subtitle"},J))):(X||J)&&t.createElement("div",{className:"yt-bundleBuilder-header-container"},X&&t.createElement("span",{style:{lineHeight:"normal",fontSize:E?.byob?.titleFontSize??"3rem",fontWeight:"700",color:E?.byob?.titleTextColor??"#000",marginBottom:"15px",textAlign:"center",width:"100%",backgroundColor:E?.byob?.titleBackgroundColor??"transparent"},className:"yt-bundleBuilder-header_title"},X),J&&t.createElement("span",{style:{lineHeight:"normal",fontSize:E?.byob?.subtitleFontSize??"1.5rem",color:E?.byob?.titleTextColor??"#000"},className:"yt-bundleBuilder-header_subtitle"},J)),t.createElement("div",{className:"products-display yt-bundleBuilder-products-display"},"productTier"===C&&k.length>0&&E?.byob.productTiersVisibility&&t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(pm,{currentStep:y,totalSteps:k.length,tiers:k,isMobile:x,primaryColor:E?.general?.primaryColor,primaryTextColorCta:E?.general?.primaryContrastColor,setCurrentProductTier:b,selectedProductsByTier:v,tierNavigation:E.byob.tierNavigation})))),t.createElement("div",{style:{width:"100%",display:"flex",flexDirection:"column",gap:"20px"},className:"yt-bundleBuilder-filters-container"},e?.enableSortAndFilter&&t.createElement(um,{isMobile:x,searchTerm:_,setSearchTerm:O,setSortBy:F,styles:E}),e?.customizations?.byob?.enableProductCategories&&$&&t.createElement("div",null,t.createElement(mm,{styles:E,isMobile:x,categories:S,activeCategory:D,onCategoryChange:e=>{I(e)}}))),t.createElement("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"12px",justifyContent:"center",width:"100%"},className:"products-display yt-bundleBuilder-product-grid"},0===R?.length||"productTier"===C&&0===L?.length?t.createElement("p",{style:{fontSize:"20px",color:"#333",textAlign:"center",width:"100%"},className:"yt-bundleBuilder-product-grid_no-products-text"},"No products found"):"productTier"===C&&k.length>0?L.filter(e=>K(R.find(t=>t.productId===e.productId&&(e.variantIds.length<1||t.variantIds.includes(e.variantIds[0]))))).map((r,o)=>{const a=(k[y]?.minimumQuantity??0)>(v[y]?.length??0),i=R.find(e=>e.productId===r.productId&&(r.variantIds.length<1||e.variantIds.includes(r.variantIds[0])));return i?t.createElement(sm,{bundle:e,idx:o,key:r?.variantIds?.[0]??r.productId,product:i?.productDetails,handleAddToBundle:Q,hideAddToBundle:!a,remainingQuantity:q-s,themeColor:e?.dealTextColor,handleRemoveItem:e=>G(e,y),selecteditems:n,transitionActive:H,customVariantsQuantity:Z}):null}):R.filter(K).map((r,o)=>t.createElement(sm,{bundle:e,idx:o,key:r.productId,product:r?.productDetails,handleAddToBundle:Q,hideAddToBundle:s>=q,remainingQuantity:q-s,themeColor:e?.dealTextColor,handleRemoveItem:p,selecteditems:n,transitionActive:H,customVariantsQuantity:Z}))),!d&&t.createElement(yu,{builderTiers:e?.builderTiers,handleAddToCart:a,minimumQuantity:N,selectedProducts:n,showProductDetailsInTracker:e.showProductDetailsInTracker,handleRemoveItem:p,handleRemoveItemProductTier:G,selectedItemsQuantity:s,percentageOff:e.percentageOff,loading:i,bundleSubtotal:u,amountOff:e.amountOff,styles:e.customizations,dealAmount:e.dealAmount,themeColor:e?.dealTextColor??"#333",primaryTextColorCta:e?.primaryTextColorCta??"#fff",cornerRadiusType:e?.cornerRadiusType??"",selectedProductsByTier:v,renderingOnPage:d})),d&&t.createElement(yu,{handleAddToCart:a,minimumQuantity:N,builderTiers:e?.builderTiers,selectedProducts:n,showProductDetailsInTracker:e.showProductDetailsInTracker,loading:i,handleRemoveItem:p,handleRemoveItemProductTier:G,percentageOff:e.percentageOff,selectedItemsQuantity:s??0,bundleSubtotal:u??{price:0,compareAtPrice:0},amountOff:e.amountOff,styles:e.customizations,dealAmount:e.dealAmount,themeColor:E?.general.primaryColor||"#000",primaryTextColorCta:E.general.primaryContrastColor??"#fff",cornerRadiusType:e?.cornerRadiusType??"",selectedProductsByTier:v,renderingOnPage:d}),j&&void 0!==s&&(()=>{let r=s<e.minimumQuantity;return"productTier"==C?r=(k[y]?.minimumQuantity??0)>(v[y]?.length??0):"offerTier"==C&&(r=s<T.reduce((e,t)=>e+t.minimumQuantity,0)),t.createElement(am,{handleAddToBundle:Q,ref:U,remainingQuantity:e.minimumQuantity-s,hideAddToBundle:!r,disableQuantitySelector:e?.disableQuantitySelector??!1,disableInventoryTracking:!e?.customizations.general.trackInventory,selectedProducts:n,themeColor:E?.general.primaryColor||"#000",primaryTextColorCta:e?.customizations?.general.primaryContrastColor??"#fff",primaryBackgroundColorCta:E?.general.primaryColor||"#000",cornerRadius:e?.customizations.byob.borderRadius,styles:e.customizations,reviewRatingType:e?.reviewRatingType??"none",shadowRoot:m})})())},gm=({product:e,selectedVariantId:n,onVariantChange:r,styles:o,originalPrice:a,dealPrice:l,isVertical:c=!1,variantOptions:d,storeCurrencyCode:s})=>{const p=e?.productDetails?.variants?.edges?.find(e=>e?.node?.id===n)?.node,u=i(()=>{if(p?.title&&e.productDetails.options){const t=p.title.split(" / ");if(t.length===e.productDetails.options.length)return t}return e.productDetails.options?.map(e=>e.values[0])||[]},[p,e.productDetails.options]),m=e=>{r(e)};return c?t.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",lineHeight:"normal",width:"165px",backgroundColor:"#F6F6F6",borderRadius:"20px",border:"1px solid #B3B3B3",boxShadow:"4px 4px 0px -1px #00000033",overflow:"hidden"}},t.createElement("div",{style:{position:"relative",width:"100%"}},o.comboBundle.subProductsImageVisibility&&t.createElement(t.Fragment,null,t.createElement("img",{src:p?.image?.url||e?.productDetails?.featuredMedia?.preview?.image?.url||"/placeholder.svg",alt:e?.productDetails?.featuredMedia?.alt,width:165,height:165,style:{objectFit:"cover",borderRadius:"20px",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",height:"100%",aspectRatio:o.general?.imageAspectRatio||"1/1"}}),t.createElement("div",{style:{marginTop:"8px",position:"absolute",bottom:"10px",left:"5px",right:"5px"}},e?.productDetails?.variants?.edges?.length>1&&t.createElement(t.Fragment,null,t.createElement("select",{value:n,onChange:e=>m(e.target.value),style:{padding:"8px 10px",border:"1px solid #ddd",backgroundColor:"#fff",color:"#333",fontSize:"14px",width:"100%",appearance:"none",marginRight:"30px"}},e?.productDetails?.variants?.edges.map(e=>t.createElement("option",{key:e?.node?.id,value:e?.node?.id,disabled:e.node.inventoryQuantity<=0},e?.node?.title))),t.createElement("div",{style:{position:"absolute",right:"1px",top:"2px",bottom:"0px",pointerEvents:"none",backgroundColor:"#F3F3F3",width:"15%",height:"calc(100% - 4px)",display:"flex",justifyContent:"center",alignItems:"center"}},t.createElement(F,null)))))),(o.comboBundle.subProductsProductTitleVisibility||o.comboBundle.subProductsProductPriceVisibility)&&t.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"40px",width:"100%",paddingBlock:"5px"}},o.comboBundle.subProductsProductTitleVisibility&&t.createElement("span",{style:{fontSize:"12px",color:"#333",fontWeight:"600",lineHeight:"normal",textAlign:"center",width:"fit-content"}},e?.productDetails?.title),o.comboBundle.subProductsProductPriceVisibility&&t.createElement("div",{style:{display:"flex",alignItems:"center",gap:"8px",lineHeight:"normal",fontSize:"14px"}},t.createElement("span",{style:{lineHeight:"normal"}},Wg(o.general.currencySymbol,s),Hg((Number(""!==p?.compareAtPrice?Number(p?.compareAtPrice):p?.price)/Number(a)*Number(l)).toFixed(2))),t.createElement("span",{style:{textDecoration:"line-through",color:"#999",lineHeight:"normal",fontSize:"12px"}},Wg(o.general.currencySymbol,s),Hg(""!==p?.compareAtPrice?p?.compareAtPrice:p?.price))))):t.createElement("div",{style:{display:"flex",alignItems:"center",gap:"16px",padding:"4px",lineHeight:"normal",borderRadius:"8px",transition:"background-color 0.3s",width:"100%",border:"1px solid transparent",..."right"===o.comboBundle.infoAlignment&&{flexDirection:"row-reverse"},..."center"===o.comboBundle.infoAlignment&&{justifyContent:"center"}},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#fafafa",e.currentTarget.style.border="1px solid #DFDFDF"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.border="1px solid transparent"}},o.comboBundle.subProductsImageVisibility&&t.createElement("div",{style:{position:"relative"}},t.createElement("img",{src:p?.image?.url||e?.productDetails?.featuredMedia?.preview?.image?.url||"/placeholder.svg",alt:e?.productDetails?.featuredMedia?.alt,height:80,style:{objectFit:"cover",borderRadius:"10px",border:"1px solid #DEDEDE",aspectRatio:"1/1",width:"90px",height:"90px"}}),t.createElement("div",{style:{position:"absolute",top:-8,right:-8,backgroundColor:"#f8f8f8",borderRadius:"50%",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #eee",fontSize:"14px"}},"1")),t.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"left"===o.comboBundle?.infoAlignment?"flex-start":"right"===o.comboBundle?.infoAlignment?"flex-end":"center"===o.comboBundle?.infoAlignment?"flex-start":void 0}},o.comboBundle.subProductsProductTitleVisibility&&t.createElement("span",{style:{fontSize:"14px",fontWeight:"600",lineHeight:"normal",display:"flex",alignItems:"center",gap:"8px"}},t.createElement("span",null," ",e?.productDetails?.title," "),e.productDetails.variants.edges.length>1&&d&&u&&t.createElement("span",{style:{fontSize:"10px",color:"#666",backgroundColor:"#F4F4F4",padding:"2px 8px",borderRadius:"10px",border:"1px solid #ddd"}},u.length>1?u.join(" / "):u)),o.comboBundle.subProductsProductPriceVisibility&&t.createElement("div",{style:{display:"flex",gap:"8px",marginTop:"5px",alignItems:"baseline"}},t.createElement("span",{style:{lineHeight:"normal"}},Wg(o.general.currencySymbol,s),Hg((Number(""!==p?.compareAtPrice?Number(p?.compareAtPrice):p?.price)/Number(a)*Number(l)).toFixed(2))),t.createElement("span",{style:{textDecoration:"line-through",color:"#999",fontSize:"14px",lineHeight:"normal"}},Wg(o.general.currencySymbol,s),Hg(""!==p?.compareAtPrice?p?.compareAtPrice:p?.price))),e.productDetails.variants.edges.length>1&&e.productDetails.options.length>0?t.createElement(t.Fragment,null,e.productDetails.options.map((n,r)=>t.createElement("div",{key:n.name,style:{marginTop:"10px",display:"flex",flexDirection:"row",gap:"8px",alignItems:"center"}},e.productDetails.options.length>1&&t.createElement("label",{style:{fontSize:"12px",fontWeight:"500",color:"#333"}},n.name,":"),n?.values?.length>1&&t.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px",flexWrap:"wrap"}},n.values.map(a=>{const i=d&&d?.options?.find(e=>e.name===n.name);return i&&"color"===i?.type?t.createElement("button",{key:a,onClick:()=>{const t=[...u];t[r]=a;const n=e.productDetails.options.length>0?t.join(" / "):t[r],o=e.productDetails.variants.edges.find(e=>e.node.title===n)?.node.id;o&&m(o)},style:{borderRadius:"50%",padding:"1px",backgroundColor:"white",border:u[r]===a?`1px solid ${o.general?.ctaBackgroundColor}`:"1px solid transparent"}},i?.values.find(e=>e.name===a)?.value?t.createElement("div",{style:{width:u[r]===a?"26px":"24px",height:u[r]===a?"26px":"24px",borderRadius:"50%",backgroundColor:i?.values.find(e=>e.name===a)?.value,cursor:"pointer"}},t.createElement("span",null)):t.createElement("span",{key:a,style:{padding:"4px 8px",border:u[r]===a?`1px solid ${o.general?.ctaBackgroundColor}`:"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:u[r]===a?"#F7F7F7":"transparent",color:"#707070",cursor:"pointer",fontSize:"10px",fontWeight:"600"}},a)):i&&"image"===i?.type?t.createElement("button",{key:a,onClick:()=>{const t=[...u];t[r]=a;const n=e.productDetails.options.length>0?t.join(" / "):t[r],o=e.productDetails.variants.edges.find(e=>e.node.title===n)?.node.id;o&&m(o)},style:{border:u[r]===a?`1px solid ${o.general?.ctaBackgroundColor}`:"1px solid #E4E4E4",borderRadius:"100%",backgroundColor:u[r]===a?"#F7F7F7":"transparent",cursor:"pointer",padding:"0px",width:u[r]===a?"26px":"24px",height:u[r]===a?"26px":"24px",overflow:"hidden"}},i?.values.find(e=>e.name===a)?.value?t.createElement("img",{src:i?.values.find(e=>e.name===a)?.value||"/placeholder.svg",alt:a,style:{width:u[r]===a?"26px":"24px",height:u[r]===a?"26px":"24px",objectFit:"cover",borderRadius:"100%",aspectRatio:"1/1"}}):t.createElement("span",{key:a,style:{padding:"4px 8px",border:u[r]===a?`1px solid ${o.general?.ctaBackgroundColor}`:"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:u[r]===a?"#F7F7F7":"transparent",color:"#707070",cursor:"pointer",fontSize:"10px",fontWeight:"600"}},a)):t.createElement("button",{key:a,onClick:()=>{const t=[...u];t[r]=a;const n=e.productDetails.options.length>0?t.join(" / "):t[r],o=e.productDetails.variants.edges.find(e=>e.node.title===n)?.node.id;o&&m(o)},style:{padding:"4px 8px",border:u[r]===a?`1px solid ${o.general?.ctaBackgroundColor}`:"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:u[r]===a?"#F7F7F7":"transparent",color:"#707070",cursor:"pointer",fontSize:"10px",fontWeight:"600"}},a)}))))):t.createElement(t.Fragment,null,e?.productDetails?.variants?.edges?.length>1&&t.createElement("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap",lineHeight:"normal",marginTop:"10px"}},e?.productDetails?.variants?.edges.map(e=>t.createElement("button",{key:e?.node?.id,onClick:()=>m(e?.node?.id),disabled:e.node.inventoryQuantity<=0,style:{padding:"4px 8px",border:n===e?.node?.id?`1px solid ${o.general?.ctaBackgroundColor}`:"1px solid #E4E4E4",borderRadius:"16px",backgroundColor:n===e?.node?.id?"#F7F7F7":"transparent",color:"#707070",cursor:"pointer",fontSize:"12px",fontWeight:"500"}},e?.node?.title))))))},xm=({bundle:e,addToCartFunction:n})=>{const[r,o]=c(!1),[a,d]=c(window.innerWidth<786),[s,p]=c(()=>{const t={};return e.products.forEach((e,n)=>{const r=e.productDetails.variants.edges.find(e=>e.node.inventoryQuantity>0)?.node;t[n]=r?r.id:e?.productDetails?.variants?.edges[0]?.node?.id}),t}),u=e.products?.filter(e=>e?.productDetails?.variants?.edges.some(e=>e?.node?.inventoryQuantity>0))||[],m=Object.keys(s).length===u.length,f=(e,t)=>{p(n=>({...n,[e]:t}))},{originalPrice:g,dealPrice:x,offerValue:h}=i(()=>{const{price:t,compareAtPrice:n}=Object.entries(s).reduce((t,[n,r])=>{const o=e.products[parseInt(n)],a=o.productDetails.variants.edges?.find(e=>e.node.id===r)?.node,i=parseFloat(a?.price??"0"),l=parseFloat(a?.compareAtPrice||i.toString());return t.price+=i,t.compareAtPrice+=l,t},{price:0,compareAtPrice:0}),r=Math.max(t,n);let o=Math.min(t,n);e?.percentageOff?o=t*(1-e.percentageOff/100):e?.dealAmount?o=e.dealAmount:e?.amountOff&&(o=t-e.amountOff);const a=n-o;return{originalPrice:r.toFixed(2),dealPrice:o.toFixed(2),offerValue:a.toFixed(2)}},[s,e.products,e.percentageOff,e.dealAmount,e.amountOff]);l(()=>{const e=()=>{d(window.innerWidth<786)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);const y=e.customizations,b=y.comboBundle?.comboCardStyle||"auto",v="vertical"===b||"auto"===b&&!a,w=y.comboBundle?.embedContentVisibility,C="bundles"==e.appName?e.pageHeader?.title:e?.title,E="bundles"==e.appName?e.pageHeader?.description:e?.subtitle;return t.createElement("div",{style:{lineHeight:"normal",maxWidth:"800px",marginBlock:y.comboBundle?.verticalMargin||"0px",display:"flex",flexDirection:"column",alignItems:"left"===y.comboBundle?.infoAlignment?"flex-start":"right"===y.comboBundle?.infoAlignment?"flex-end":"center"===y.comboBundle?.infoAlignment?"center":void 0,textAlign:y.comboBundle?.infoAlignment??"left",fontFamily:"system-ui, -apple-system, sans-serif"}},w&&y.comboBundle?.selectedEmbedContentVisibilityOptions?.includes("Combo Title")&&t.createElement("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"10px"}},t.createElement("h2",{style:{fontSize:y.comboBundle?.productTitleFontSize||"28px",color:y.comboBundle?.titleTextColor||"#000",fontWeight:"bold",lineHeight:"1.6",margin:0}},C)),w&&y?.comboBundle?.selectedEmbedContentVisibilityOptions?.includes("Combo Price")&&t.createElement(t.Fragment,null,t.createElement("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:y.comboBundle?.titleTextColor||"#000",fontSize:(parseInt(y.comboBundle?.productTitleFontSize?.replace("px",""))||28)-4+"px"}},t.createElement("div",{style:{display:"flex",alignItems:"center",gap:"5px",flexWrap:"wrap"}},t.createElement("span",{style:{fontWeight:"bold",lineHeight:"1",minWidth:"fit-content"}},Wg(y.general.currencySymbol,e.storeCurrencyCode),Hg(x)),t.createElement("div",{style:{color:y.comboBundle?.titleTextColor||"#666",textDecoration:"line-through",verticalAlign:"middle",display:"inline-block",minWidth:"fit-content"}},Wg(y.general.currencySymbol,e.storeCurrencyCode),Hg(g)),t.createElement("span",{style:{backgroundColor:"#D3122A",color:"white",padding:"4px 8px",fontSize:"14px",borderRadius:"20px",fontWeight:"500",lineHeight:"1",minWidth:"fit-content"}},e?.percentageOff?`${e?.percentageOff}% Off`:e?.amountOff?`${Wg(y.general.currencySymbol,e.storeCurrencyCode)}${Hg(e?.amountOff)} Off`:`Save ${Wg(y.general.currencySymbol,e.storeCurrencyCode)}${Hg(h)}`))),t.createElement("div",{style:{display:"flex",alignItems:"center",gap:"8px",margin:"15px 0px"},className:"yt-comboBundle-checkoutSpecific-container"},t.createElement("div",{style:{display:"flex",width:"12px",height:"12px",justifyContent:"center",alignItems:"center",alignContent:"center",borderRadius:"50%",backgroundColor:y.general?.ctaBackgroundColor||"#1e1e1e",flexShrink:0},className:"yt-comboBundle-checkoutSpecific-dot"},t.createElement("span",null)),t.createElement("p",{style:{fontSize:y.comboBundle.productDescriptionFontSize||"16px",color:y.comboBundle?.descriptionTextColor||"#000",alignItems:"center",margin:0,lineHeight:"1.2"},className:"yt-comboBundle-checkoutSpecific-text"},"Tax included. ",t.createElement("u",null,"Shipping")," calculated at checkout."))),y.comboBundle.subProductsSectionVisibility&&t.createElement(t.Fragment,null,v?t.createElement("div",{style:{display:"flex",flexDirection:"row",gap:"20px",marginTop:"10px",flexWrap:"wrap"}},e.products.map((n,r)=>{const o=n?.productDetails?.variants?.edges?.find(e=>e?.node?.id===s[r])?.node;return o?t.createElement(gm,{key:`combo-product-${r}-${n.productId}`,product:n,styles:y,originalPrice:g,dealPrice:x,selectedVariantId:s[r],onVariantChange:e=>f(r,e),isVertical:v,variantOptions:e.variantOptions,storeCurrencyCode:e.storeCurrencyCode}):null})):t.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"10px",width:"100%"}},y.comboBundle.subProductsSectionVisibility&&e.products.map((n,r)=>t.createElement(gm,{key:`combo-product-horizontal-${r}-${n.productId}`,product:n,styles:y,originalPrice:g,dealPrice:x,selectedVariantId:s[r],onVariantChange:e=>f(r,e),variantOptions:e.variantOptions})))),t.createElement("div",{style:{borderTop:"1px solid #eee",display:"flex",flexDirection:"column",rowGap:"5px",marginTop:"20px",width:"100%"}},t.createElement("button",{style:{backgroundColor:m?y.general?.ctaBackgroundColor||"#121212":y.general.disabledButtonColor,color:y.general?.ctaTextColor||"#FFFFFF",fontSize:"16px",borderRadius:y.general.ctaBorderRadius??"20px",fontWeight:"bold",cursor:m?"pointer":"not-allowed",border:`1px solid ${m?y.general?.ctaBackgroundColor||"#121212":y.general.disabledButtonColor}`,boxShadow:y.general.ctaShadowType,padding:y.general?.ctaPadding,width:y.general?.ctaWidth,margin:"0"},disabled:!m,onMouseOver:e=>{y.general.customizeHoverState&&m&&(e.currentTarget.style.backgroundColor=y.general?.ctaHoverBackgroundColor||"#F1F1F1",e.currentTarget.style.color=y.general?.ctaHoverTextColor||"#121212")},onMouseOut:e=>{y.general.customizeHoverState&&m&&(e.currentTarget.style.backgroundColor=y.general?.ctaBackgroundColor||"#121212",e.currentTarget.style.color=y.general?.ctaTextColor||"#FFFFFF")},onClick:async()=>{try{if(o(!0),!n)return void o(!1);const t=Object.entries(s).map(([t,n])=>{const r=e.products[parseInt(t)],o=r.productDetails.variants.edges.find(e=>e.node.id===n)?.node;return o?{variantId:n,price:Number(o.price)}:null}).filter(e=>null!==e),r=Object.values(s);await n(Number(g),r,Number(x),t)}catch(e){}o(!1)}},r?t.createElement(na,{color:"white",loading:r,size:15,"aria-label":"Loading Spinner","data-testid":"loader"}):t.createElement(t.Fragment,null,m?y.comboBundle?.ctaTitle??"Add Bundle to cart":y.general.outOfStockLabel||"Out of Stock"," "))),w&&y.comboBundle?.selectedEmbedContentVisibilityOptions?.includes("Combo Description")&&t.createElement("div",{style:{margin:"20px 0px"}},t.createElement("h4",{style:{fontSize:"16px",color:y.comboBundle?.descriptionTextColor||"#000",lineHeight:"1.2",margin:0,padding:"8px",backgroundColor:y.general.primaryColor+"20"}},"Description"),t.createElement("div",{style:{fontSize:y.comboBundle.productDescriptionFontSize||"16px",color:y.comboBundle?.descriptionTextColor||"#000",lineHeight:"1.2",padding:"8px",backgroundColor:y.general.primaryColor+"08"}},t.createElement("p",null,E))))},hm=h.div`
|
|
2865
2865
|
max-width: 800px;
|
|
2866
2866
|
container-type: inline-size;
|
|
2867
2867
|
margin-top: ${e=>e.verticalMargin||"0px"};
|
|
@@ -4262,4 +4262,4 @@ import*as e from"react";import t,{forwardRef as n,useImperativeHandle as r,useRe
|
|
|
4262
4262
|
}
|
|
4263
4263
|
`,Mg=h.span`
|
|
4264
4264
|
font-size: 12px;
|
|
4265
|
-
`,Fg=({products:e,isOpen:n,onClose:r,cta:o,variantOptions:a,onVariantChange:i,handleAddToCart:d,primaryProductId:s,variantId:p})=>{const[u,m]=c(()=>{const t={};return e.forEach(({productId:e,productDetails:n})=>{let r=n.options.map(e=>e.values[0]??"");if(e===s&&p){const e=n.variants.edges.find(e=>e.node.id.includes(p))?.node;e&&(r=e.title.split(" / "))}t[e]=r}),t});l(()=>{if(!s||!p)return;const t=e.find(e=>e.productId===s);if(!t)return;const n=t.productDetails.variants.edges.find(e=>e.node.id.includes(p))?.node;if(n){const e=n.title.split(" / ");m(t=>({...t,[s]:e})),g(e=>({...e,[s]:{node:n}})),i(s,n.id)}},[p,s]);const[f,g]=c({}),x=(t,n,r)=>{const o={...u};o[t][r]=n,m(o);const a=e.find(e=>e.productId===t);if(!a?.productDetails)return;const l=a.productDetails.variants.edges.find(e=>e.node.title===o[t].join(" / "))?.node;l&&(i(t,l.id),g(e=>({...e,[t]:{node:l}})))};if(!n)return null;const h=t.createElement(Cg,{className:"yt-fixedBundle-variant-modal_overlay",onClick:r},t.createElement(Eg,{className:"yt-fixedBundle-variant-modal_container",onClick:e=>e.stopPropagation()},t.createElement(kg,{className:"yt-fixedBundle-variant-modal_header",style:{backgroundColor:o.backgroundColor,color:o.textColor}},"Select Options"),e?.map((n,r)=>t.createElement(t.Fragment,null,t.createElement(Sg,{className:"yt-fixedBundle-variant-modal_product-block"},t.createElement(Bg,{className:"yt-fixedBundle-variant-modal_thumbnail",src:f[n.productId]?.node?.image.url||n.productDetails.featuredMedia?.preview?.image?.url,alt:n.productDetails.title}),t.createElement($g,{className:"yt-fixedBundle-variant-modal_product-info"},t.createElement(zg,{className:"yt-fixedBundle-variant-modal_product-name"},n.productDetails.title,n.productDetails.variants.edges.length>1&&t.createElement(Ig,{className:"yt-fixedBundle-variant-modal_selected-value"},u[n.productId].join(" / "))),n.productDetails.options.map((e,r)=>{const o=a&&a?.options?.find(t=>t.name===e.name);return e.values.length<=1?t.createElement(t.Fragment,null):o&&"color"===o?.type?t.createElement(Pg,{className:"yt-fixedBundle-variant-modal_options-row"},t.createElement(Mg,{className:"yt-fixedBundle-variant-modal_option-name"},e.name," : "),e.values.map((e,a)=>t.createElement(t.Fragment,null,o.values.find(t=>t.name===e)?.value?t.createElement(Ng,{className:"yt-fixedBundle-variant-modal_color-swatch",key:a,color:o.values.find(t=>t.name===e)?.value||e,selected:u[n.productId][r]==e,onClick:()=>{x(n.productId,e,r)}},t.createElement("span",null)):t.createElement(_g,{className:"yt-fixedBundle-variant-modal_text-swatch",key:a,selected:u[n.productId][r]==e,onClick:()=>{x(n.productId,e,r)}},e)))):o&&"image"===o?.type?t.createElement(Pg,{className:"yt-fixedBundle-variant-modal_options-row"},t.createElement(Mg,{className:"yt-fixedBundle-variant-modal_option-name"},e.name," : "),e.values.map((e,a)=>t.createElement(t.Fragment,null,o.values.find(t=>t.name===e)?.value?t.createElement(Og,{className:"yt-fixedBundle-variant-modal_image-swatch",key:a,selected:u[n.productId][r]==e,onClick:()=>{x(n.productId,e,r)},src:o.values.find(t=>t.name===e)?.value},t.createElement("span",null)):t.createElement(_g,{className:"yt-fixedBundle-variant-modal_text-swatch",key:a,selected:u[n.productId][r]==e,onClick:()=>{x(n.productId,e,r)}},e)))):t.createElement(Pg,{className:"yt-fixedBundle-variant-modal_options-row"},t.createElement(Mg,{className:"yt-fixedBundle-variant-modal_option-name"},e.name," : "),e.values.map((e,o)=>t.createElement(_g,{className:"yt-fixedBundle-variant-modal_text-swatch",key:o,selected:u[n.productId][r]==e,onClick:()=>{x(n.productId,e,r)}},e)))}))),r<e.length-1&&t.createElement(Dg,{className:"yt-fixedBundle-variant-modal_divider"}))),t.createElement(Tg,{className:"yt-fixedBundle-variant-modal_confirm-button",style:{backgroundColor:o.backgroundColor,color:o.textColor},onClick:d},"Add bundle to cart")));return v.createPortal(h,document.body)},Ag=({options:e,selectedValue:n,onChange:r,type:a="text"})=>{const[i,d]=c(!1),s=o(null);l(()=>{const e=e=>{s.current&&!s.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const p=e=>"color"===a?t.createElement(mg,{className:"yt-fixedBundle-variant-dropdown-horizontal_color-swatch",$color:e.value},t.createElement("span",null)):"image"===a?t.createElement(fg,{className:"yt-fixedBundle-variant-dropdown-horizontal_image-swatch",src:e.value||"/placeholder.svg",alt:e.name},t.createElement("span",null)):null;return t.createElement(ig,{className:"yt-fixedBundle-variant-dropdown-horizontal_container",ref:s},t.createElement(lg,{className:"yt-fixedBundle-variant-dropdown-horizontal_header",onClick:()=>d(!i)},t.createElement(cg,{className:"yt-fixedBundle-variant-dropdown-horizontal_content"},n&&("color"===a||"image"===a)&&p(n),t.createElement("span",{className:"yt-fixedBundle-variant-dropdown-horizontal_selected-text"},n&&n.name)),t.createElement(dg,{className:"yt-fixedBundle-variant-dropdown-horizontal_chevron-icon",$isOpen:i})),i&&t.createElement(sg,{className:"yt-fixedBundle-variant-dropdown-horizontal_list"},e?.map(e=>t.createElement(pg,{className:"yt-fixedBundle-variant-selector_dropdown-item "+(n?.name===e.name?"yt-fixedBundle-variant-selector_dropdown-item--selected":""),key:e.name,$isSelected:n?.name===e.name,onClick:()=>{r(e),d(!1)}},("color"===a||"image"===a)&&p(e),t.createElement(ug,{className:"yt-fixedBundle-variant-dropdown-horizontal_item-text"},e.name)))))},Rg=({product:e,variantOptions:n,selectedVariants:r,onVariantChange:o,variantId:a,primaryProductId:i,variantType:d="dropdown"})=>{const[s,p]=c(r||[]);l(()=>{if(a&&e.variants.edges.some(e=>e.node.id.includes(a))){const t=e.variants.edges.find(e=>e.node.id.includes(a))?.node;if(t){const e=t.title.split(" / ");p(e)}}},[a,e]);const u=e=>{if(!n?.options)return"text";const t=n.options.find(t=>t.name===e);return t?.type||"text"},m=(e,t)=>{if(!n?.options)return e.values.map(e=>({name:e,value:e}));const r=n.options.find(t=>t.name===e.name);return e.values.map(e=>{const t=r?.values?.find(t=>t.name===e);return{name:e,value:t?.value||e}})},f=(e,t)=>{const n=s[t];if(!n)return null;return m(e).find(e=>e.name===n)||null};return t.createElement(gg,{className:"yt-fixedBundle-variant-selector-horizontal_container"},e.options.map((n,r)=>t.createElement(xg,{className:"yt-fixedBundle-variant-selector-horizontal_option-row",key:n.name,$isFirst:0===r},n?.values?.length>1&&t.createElement(Ag,{options:m(n),selectedValue:f(n,r),onChange:t=>{console.log(t),((t,n)=>{const r=[...s];r[t]=n.name,p(r);const a=e.variants.edges.find(n=>n.node.title===(e.options?.length>0?r.join(" / "):r[t]))?.node.id;o(a||"")})(r,t)},type:u(n.name)}))))},Lg=({product:e,selectedVariantId:n,isChecked:r,canCustomize:o,styles:a,onVariantChange:i,onCheckChange:d,isMobile:s,isHorizontal:p,index:u,variantOptions:m,productsLength:f,handleOpenModal:g,storeCurrencyCode:x,primaryProductId:h,variantId:y})=>{const[b,v]=c(e.variants.edges.find(e=>e.node.id===n)?.node),[w]=c(e.options?.map(e=>e.values[0])||[]),C=e.id===h;l(()=>{if(y&&e.id===h){const t=e.variants.edges.find(e=>e.node.id.includes(y))?.node;t&&(v(t),i(t.id))}else{const t=e.variants.edges.find(e=>e.node.id===n)?.node;v(t)}},[e,h,n,y]);const E="undefined"!=typeof window&&"devansh-test123.myshopify.com"===window.ytBundleApp?.storeDomain||"usee-shop-app.myshopify.com"===window.ytBundleApp?.storeDomain,k=b?.image?.url||e.featuredMedia?.preview?.image?.url;return t.createElement(t.Fragment,null,p?t.createElement("div",{className:""+(e.id===h?"yt-fixedBundle-product-card--horizontal-primary":"yt-fixedBundle-product-card--horizontal-associated"),style:{display:"flex",alignItems:"center",gap:"10px",backgroundColor:a.fixedBundle?.cardBackgroundColor}},o&&t.createElement(vg,{className:"yt-fixedBundle-product-card_checkbox-wrapper--horizontal"},t.createElement(yg,{className:"yt-fixedBundle-product-card_checkbox-hidden",style:{display:"none"},type:"checkbox",id:`checkbox-${e.id}`,defaultChecked:r,onChange:e=>d(e.target.checked),disabled:C}),t.createElement(bg,{className:"yt-fixedBundle-product-card_checkbox-label",htmlFor:`checkbox-${e.id}`,isChecked:r,borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,backgroundColor:a.general?.ctaBackgroundColor},t.createElement(nt,null))),t.createElement(Pf,{className:"yt-fixedBundle-product-card-horizontal_item",style:{borderRadius:a.fixedBundle?.borderRadius,border:`1px solid ${a.fixedBundle?.borderColor}80`,backgroundColor:a.fixedBundle?.cardBackgroundColor,boxShadow:{none:"none",spread:`8px 8px 8px -6px ${a.fixedBundle.borderColor}`,"no-spread":`4px 4px 0px -1px ${a.fixedBundle.borderColor}80`}[a.fixedBundle.shadowType]||"none"},canCustomize:o},"undefined"!=typeof window&&"devansh-test123.myshopify.com"!==window.ytBundleApp?.storeDomain&&"usee-shop-app.myshopify.com"!==window.ytBundleApp?.storeDomain&&t.createElement(Nf,{className:"yt-fixedBundle-product-card-horizontal_image",src:k,alt:e.title,style:{borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,aspectRatio:a.general.imageAspectRatio||"1/1",borderTopRightRadius:"0",borderBottomRightRadius:"0"}}),t.createElement(_f,{className:"yt-fixedBundle-product-card-horizontal_details"},t.createElement(Of,{className:"yt-fixedBundle-product-card-horizontal_title"},e.title),a.fixedBundle.productsPriceVisibility&&t.createElement(Mf,{className:"yt-fixedBundle-product-card-horizontal_price-section"},t.createElement(Ff,{className:"yt-fixedBundle-product-card-horizontal_price--new"},Wg(a.general.currencySymbol,x)," ",Hg(b?.price)),a.fixedBundle.compareAtPriceVisibility&&b?.compareAtPrice&&parseFloat(b.compareAtPrice)>parseFloat(b?.price)&&t.createElement(Af,{className:"yt-fixedBundle-product-card-horizontal_price--old"},Wg(a.general.currencySymbol,x),Hg(b?.compareAtPrice))),t.createElement(Rg,{product:e,variantOptions:m,selectedVariants:w,onVariantChange:e=>{i(e)},variantId:y,primaryProductId:h})))):t.createElement(t.Fragment,null,t.createElement(Qf,{className:""+(e.id===h?"yt-fixedBundle-product-card--vertical-primary":"yt-fixedBundle-product-card--vertical-associated"),productsLength:f,style:{borderRadius:a.fixedBundle?.borderRadius,border:`1px solid ${a.fixedBundle?.borderColor}50`,backgroundColor:a.fixedBundle?.cardBackgroundColor,boxShadow:{none:"none",spread:`0 4px 10px -6px ${a.fixedBundle.borderColor}50`,"no-spread":`4px 4px 0px -1px ${a.fixedBundle.borderColor}50`}[a.fixedBundle.shadowType]||"none",...o&&{position:"relative"},...E&&{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",minWidth:"max-content",paddingLeft:"2px"}},borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,backgroundColor:a.fixedBundle?.cardBackgroundColor},o&&t.createElement(wg,{className:"yt-fixedBundle-product-card_checkbox-wrapper--vertical",isImage:E},t.createElement(yg,{className:"yt-fixedBundle-product-card_checkbox-hidden--vertical",style:{display:"none"},type:"checkbox",id:`checkbox-${e.id}`,defaultChecked:r,onChange:e=>d(e.target.checked),disabled:C}),t.createElement(bg,{className:"yt-fixedBundle-product-card_checkbox-label--vertical",htmlFor:`checkbox-${e.id}`,isChecked:r,borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,backgroundColor:a.general?.ctaBackgroundColor},t.createElement(nt,{size:10}))),"undefined"!=typeof window&&"devansh-test123.myshopify.com"!==window.ytBundleApp?.storeDomain&&"usee-shop-app.myshopify.com"!==window.ytBundleApp?.storeDomain&&t.createElement(qf,{className:"yt-fixedBundle-product-card_image-wrapper--vertical",style:{aspectRatio:a.general.imageAspectRatio,height:"fit-content"}},t.createElement(Yf,{className:"yt-fixedBundle-product-card_image--vertical",src:k,style:{aspectRatio:a.general.imageAspectRatio},alt:e.title}),e.variants.edges.length>1&&t.createElement(Zf,{className:"yt-fixedBundle-product-card_badge-container"},t.createElement(Kf,{className:"yt-fixedBundle-product-card_circle-button"},t.createElement("span",null)),t.createElement(Xf,{className:"yt-fixedBundle-product-card_circle-button-two"},t.createElement("span",null)),t.createElement(Jf,{className:"yt-fixedBundle-product-card_count-badge"},e.variants.edges.length,"+"))),t.createElement(eg,{className:"yt-fixedBundle-product-card-vertical_info"},t.createElement(tg,{className:"yt-fixedBundle-product-card-vertical_title"},e.title),a.fixedBundle.productsPriceVisibility&&t.createElement(rg,{className:"yt-fixedBundle-product-card-vertical_price-line"},t.createElement(ng,{className:"yt-fixedBundle-product-card-vertical_price--new"},Wg(a.general.currencySymbol,x),Hg(b?.price)),a.fixedBundle.compareAtPriceVisibility&&b?.compareAtPrice&&parseFloat(b.compareAtPrice)>parseFloat(b?.price)&&t.createElement(Af,{className:"yt-fixedBundle-product-card-vertical_price--old"},Wg(a.general.currencySymbol,x),Hg(b?.compareAtPrice))))),(f<=3||!s)&&u<f-1&&t.createElement(og,{className:"yt-fixedBundle-plus-wrapper"}," ",t.createElement(ag,{className:"yt-fixedBundle-plus-icon"},"+")," ")))},jg=({bundle:e,addToCartFunction:n})=>{const[r,o]=c(!1),[a,d]=c(window.innerWidth<786),[s,p]=c(null),u="undefined"!=typeof window?window.location.href:null,m=e?.products?.find(e=>e.productDetails?.handle===u?.split("/").pop()?.split("?")[0]),f=m?.productId,[g,x]=c(Object.fromEntries(e?.products?.map(e=>[e.productId,e.productDetails?.variants?.edges?.find(e=>e.node.inventoryQuantity>0)?.node?.id||e.productDetails?.variants?.edges?.[0]?.node?.id]))),[h,y]=c(!1),b="undefined"!=typeof window&&("usee-shop-app.myshopify.com"===window.ytBundleApp?.storeDomain||"devansh-test123.myshopify.com"===window.ytBundleApp?.storeDomain),v=e?.showIndividualProductSelector||!0,[w,C]=c(new Set(e.products.filter(e=>!b||(e.productId===f||v)).map(e=>e.productId)));l(()=>{const e=()=>{const e=new URL(window.location.href).searchParams.get("variant");p(e)},t=e=>{const t=history[e];return function(...n){const r=t.apply(this,n);return window.dispatchEvent(new Event(e.toLowerCase())),r}};return history.pushState=t("pushState"),history.replaceState=t("replaceState"),window.addEventListener("pushstate",e),window.addEventListener("replacestate",e),e(),()=>{window.removeEventListener("pushstate",e),window.removeEventListener("replacestate",e)}},[]),l(()=>{if(s&&f){const t=e?.products?.find(e=>e.productId===f);if(t){const e=t.productDetails?.variants?.edges?.some(e=>e.node.id.includes(s));e&&x(e=>({...e,[f]:s}))}}},[s,f,e?.products]),l(()=>{const e=()=>{d(window.innerWidth<600)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);const E=(e,t)=>{x(n=>({...n,[e]:t}))},k=(e,t)=>{b&&v&&t===f||C(n=>{const r=new Set(n);return e?r.add(t):r.delete(t),r})},T=e.disableInventoryTracking||e.products.every(e=>e.productDetails.variants.edges.some(e=>e.node.inventoryQuantity>0)),S=i(()=>e.products.some(e=>w.has(e.productId)&&e.productDetails.variants.edges.length>1),[e.products,w]),{originalPrice:B,dealPrice:$,offerValue:z}=i(()=>{const{price:t,compareAtPrice:n}=e.products.reduce((e,t)=>{if(!w.has(t.productId))return e;const n=t.productDetails.variants.edges?.find(e=>e.node.id===g[t.productId])?.node,r=parseFloat(n?.price??"0"),o=parseFloat(n?.compareAtPrice||r.toString());return e.price+=r,e.compareAtPrice+=o,e},{price:0,compareAtPrice:0}),r=Math.max(t,n);let o=Math.min(t,n);w.size===e.products.length&&(e?.percentageOff?o=t*(1-e.percentageOff/100):e?.dealAmount?o=e.dealAmount:e?.amountOff&&(o=t-e.amountOff));const a=n-o;return{originalPrice:r.toFixed(2),dealPrice:o.toFixed(2),offerValue:a.toFixed(2)}},[e.products,g,w,e.percentageOff,e.dealAmount,e.amountOff]),D=async e=>{e.preventDefault(),e.stopPropagation(),o(!0),y(!1);try{const e=Object.entries(g).filter(([e])=>w.has(e)).map(([e,t])=>t);n&&await n(Number(B),e)}catch(e){console.error("Error adding to cart:",e)}o(!1)};if(!n)return t.createElement(t.Fragment,null);if(e?.customizations.general?.trackInventory&&!T)return t.createElement(t.Fragment,null);const I=e.customizations,P=I.fixedBundle?.cardLayoutStyle||"auto",N="horizontal"===P||"auto"===P&&a,_=()=>{y(!0)},O="bundles"==e.appName?e.pageHeader?.title:e?.title,M="bundles"==e.appName?e.pageHeader?.description:e?.subtitle;return t.createElement($f,{id:"yt-fixedBundle-container",className:"yt-fixedBundle-container",style:{maxWidth:"800px",backgroundColor:I.fixedBundle.sectionBackgroundColor,..."transparent"!==I.fixedBundle.sectionBackgroundColor&&{padding:"20px"}}},O&&t.createElement(zf,{id:"yt-fixedBundle-header",className:"yt-fixedBundle-header",style:{backgroundColor:I.fixedBundle?.titleBackgroundColor||"none",color:I.fixedBundle?.titleTextColor||"black",textAlign:I.fixedBundle.infoAlignment??"center",fontSize:I.fixedBundle?.titleFontSize,..."transparent"!==I.fixedBundle.titleBackgroundColor&&{paddingBlock:"7px"},..."left"===I.fixedBundle.infoAlignment&&"transparent"!==I.fixedBundle.titleBackgroundColor&&{paddingLeft:"7px"},..."right"===I.fixedBundle.infoAlignment&&"transparent"!==I.fixedBundle.titleBackgroundColor&&{paddingRight:"7px"},..."left"===I.fixedBundle.infoAlignment&&"transparent"===I.fixedBundle.titleBackgroundColor&&{paddingLeft:"0px"}}},O),M&&t.createElement(Df,{id:"yt-fixedBundle-subheader",className:"yt-fixedBundle-subheader",style:{color:"#121212",fontSize:I.fixedBundle?.subtitleFontSize,textAlign:I.fixedBundle.infoAlignment??"center",..."left"===I.fixedBundle.infoAlignment&&"transparent"!==I.fixedBundle.titleBackgroundColor&&{paddingLeft:"7px"},..."right"===I.fixedBundle.infoAlignment&&"transparent"!==I.fixedBundle.titleBackgroundColor&&{paddingRight:"7px"},..."left"===I.fixedBundle.infoAlignment&&"transparent"===I.fixedBundle.titleBackgroundColor&&{paddingLeft:"0px"}}},M),N?t.createElement(If,{id:"yt-fixedBundle-horizontal-container",className:"yt-fixedBundle-horizontal-container"},e?.products?.map((n,r)=>t.createElement(t.Fragment,{key:n.productId},t.createElement(Lg,{isChecked:w.has(n.productId),product:n.productDetails,selectedVariantId:g[n.productId],canCustomize:e?.canCustomizeFixedBundle||!1,styles:I,onVariantChange:e=>E(n.productId,e),onCheckChange:e=>{k(e,n.productId)},isMobile:a,index:r,isHorizontal:N,variantOptions:e.variantOptions,productsLength:e.products.length,storeCurrencyCode:e.storeCurrencyCode,primaryProductId:f,variantId:s||void 0})))):t.createElement(Uf,{id:"yt-fixedBundle-vertical-container",className:"yt-fixedBundle-vertical-container"},t.createElement(Gf,{id:"yt-fixedBundle-product-list",className:"yt-fixedBundle-product-list",style:{justifyContent:"left"===I.fixedBundle.infoAlignment?"flex-start":"right"===I.fixedBundle.infoAlignment?"flex-end":"center"}},e?.products?.map((n,r)=>t.createElement(Lg,{isChecked:w.has(n.productId),product:n.productDetails,selectedVariantId:g[n.productId],canCustomize:e?.canCustomizeFixedBundle||!1,styles:I,onVariantChange:e=>E(n.productId,e),onCheckChange:e=>k(e,n.productId),isMobile:a,index:r,isHorizontal:N,productsLength:e.products.length,handleOpenModal:_,storeCurrencyCode:e.storeCurrencyCode,primaryProductId:f,variantId:s||void 0})),S&&t.createElement(Fg,{products:e.products.filter(e=>w.has(e.productId)),isOpen:h,onClose:()=>y(!1),variantOptions:e.variantOptions,cta:{textColor:I.general.ctaTextColor,backgroundColor:I.general.ctaBackgroundColor},onVariantChange:E,handleAddToCart:D,primaryProductId:f,variantId:s||void 0}))),t.createElement(Rf,{id:"yt-fixedBundle-summary",className:"yt-fixedBundle-summary",style:{alignItems:"left"===I.fixedBundle.infoAlignment?"flex-start":"right"===I.fixedBundle.infoAlignment?"flex-end":"center"}},Number(B)>0&&Number(z)>0&&I.fixedBundle.compareAtPriceVisibility&&t.createElement(Lf,{className:"yt-fixedBundle-summary_original-price"},"Original Price:"," ",t.createElement(Vf,{className:"yt-fixedBundle-summary_price"},Wg(I.general.currencySymbol,e?.storeCurrencyCode),Hg(B))),0!==w.size&&t.createElement(jf,{className:"yt-fixedBundle-summary_total-price"},"Total Price:"," ",t.createElement(Vf,{className:"yt-fixedBundle-summary_price"},Wg(I.general.currencySymbol,e?.storeCurrencyCode),Hg($))," ",Number(z)>0&&t.createElement(Hf,{className:"yt-fixedBundle-summary_save-tag"},"Save:"," ",Wg(I.general.currencySymbol,e?.storeCurrencyCode),Hg(z)))),t.createElement(Wf,{id:"yt-fixedBundle-add-to-cart",className:"yt-fixedBundle-add-to-cart",onClick:e=>{e.preventDefault(),e.stopPropagation(),N||!S?D(e):y(!0)},disabled:w.size<1||r,style:{backgroundColor:I.general?.ctaBackgroundColor||"#121212",color:I.general?.ctaTextColor||"#FFFFFF",border:`1px solid ${I.general?.ctaBackgroundColor||"#121212"}`,boxShadow:I.general.ctaShadowType,paddingTop:I.general?.ctaPadding,paddingBottom:I.general?.ctaPadding,borderRadius:I.general.ctaBorderRadius,width:I.general.ctaWidth||"100%",textAlign:"center"},onMouseOver:e=>{I.general.customizeHoverState&&(e.currentTarget.style.backgroundColor=I.general?.ctaHoverBackgroundColor||"#F1F1F1",e.currentTarget.style.color=I.general?.ctaHoverTextColor||"#121212")},onMouseOut:e=>{I.general.customizeHoverState&&(e.currentTarget.style.backgroundColor=I.general?.ctaBackgroundColor||"#121212",e.currentTarget.style.color=I.general?.ctaTextColor||"#FFFFFF")}},r?t.createElement(na,{color:"white",loading:r,size:15,"aria-label":"Loading Spinner","data-testid":"loader"}):t.createElement(t.Fragment,null,I.fixedBundle?.ctaTitle??"Add Bundle to cart")))},Vg=window?.Shopify?.currency||{rate:1,active:"INR"},Hg=e=>{if(!e)return;const t=navigator.language||"en-US",n=Number((Number(e)*Vg.rate).toFixed(2));return new Intl.NumberFormat(t).format(n)},Wg=(e,t)=>t==Vg.active?e:wn(Vg.active)||Vg.active,Ug=(e,t,n,r,o)=>{const a=r.findIndex(t=>t.variantId===e);o(0===n?e=>e.filter((e,t)=>t!==a):-1===a?r=>[...r,{product:t,variantId:e,quantity:n}]:e=>e.map((e,t)=>t===a?{...e,quantity:e.quantity+n}:e))},Gg=({bundle:e,currentProductId:n,addToCartFunction:r,addCustomBundleToCart:o,selectedItems:a,setSelectedItems:i,bundleAddToCartLoading:l,handleRemoveItem:c,selectedItemsQuantity:d,renderingOnPage:s,bundleSubtotal:p})=>"fixed"!==e.type&&e.type&&0!==e?.type?.length?"builder"===e.type?t.createElement(fm,{bundleAddToCartLoading:l,bundle:e,selectedItems:a,setSelectedItems:i,handleAddToCart:o,handleRemoveItem:c,renderingOnPage:s,selectedItemsQuantity:d??0,bundleSubtotal:p??{price:0,compareAtPrice:0}}):"combo"===e.type?t.createElement(xm,{bundle:e,addToCartFunction:r}):"mixnmatch"===e.type?t.createElement(Bf,{bundle:e,addToCartFunction:r}):t.createElement(Qm,{bundle:e,currentProductId:n,addToCartFunction:r}):t.createElement(jg,{addToCartFunction:r,bundle:e}),Qg=()=>t.createElement("div",{className:"scene"},t.createElement("div",{className:"floating"},t.createElement("div",{className:"cube"},t.createElement("div",{className:"side front"},""),t.createElement("div",{className:"side back"},""),t.createElement("div",{className:"side left"},""),t.createElement("div",{className:"side right"},""),t.createElement("div",{className:"side bottom"},""),t.createElement("div",{className:"lid"},t.createElement("div",{className:"flap north"},""),t.createElement("div",{className:"flap south"},""),t.createElement("div",{className:"flap east"},""),t.createElement("div",{className:"flap west"},""))))),qg='\n.yt-bundleBuilder-product-card {\n display: flex;\n flex-direction: column;\n width: 280px;\n row-gap: 8px;\n justify-content: space-between;\n cursor: pointer;\n transition: transform 0.6s ease, box-shadow 0.6s ease;\n overflow: hidden;\n\n background-color: var(--card-bg, #fff);\n border-radius: var(--card-radius, 0);\n border: var(--card-border, none);\n box-shadow: var(--card-shadow, none);\n}\n\n.yt-bundleBuilder-product-card:hover {\n transform: scale(1.01);\n}\n\n.yt-bundleBuilder-product-card_remove-button{\n width: 25%;\n background-color: #111;\n display: flex;\n align-items: center;\n justify-content: center;\n border-left: 1px solid #fff;\n height: 100%;\n cursor: pointer;\n}\n\n.yt-bundleBuilder-product-card_image-wrapper {\n display: flex;\n position: relative;\n flex-direction: column;\n padding: 0px;\n}\n\n.yt-bundleBuilder-product-card_title {\n font-size: var(--title-font-size, 18px);\n font-weight: var(--yt-bundle-font-weight, bold);\n color: #333;\n line-height: normal;\n margin-top: var(--title-margin-top, 0px);\n padding: var(--title-padding, 0 4px);\n\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.bundle-builder-variant-selector {\n border: 1px solid #c7c7c7;\n padding: 8px 8px 8px 10px;\n position: absolute;\n width: 98%;\n height: 38px;\n bottom: 4px;\n right: 3px;\n background-color: #f5f5f5;\n font-size: 14px;\n cursor: pointer;\n opacity: 0.8;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n\n background-image: none !important;\n margin-bottom: 0 !important;\n}\n\n.bundle-builder-variant-selector--coralHaze {\n appearance: auto;\n -webkit-appearance: auto;\n -moz-appearance: auto;\n}\n\n.yt-bundleBuilder-product-card_title {\n font-size: var(--title-font-size, 18px);\n font-weight: var(--yt-bundle-font-weight, bold);\n color: #333;\n line-height: normal;\n margin-top: var(--title-margin-top, 0px);\n padding: var(--title-padding, 0 4px);\n\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.yt-product-atc-wrapper {\n position: relative;\n width: 100%;\n height: 40px;\n}\n\n.yt-product-atc-button {\n font-weight: 600;\n width: 100%;\n cursor: pointer;\n border: none;\n padding: 0;\n height: 40px;\n position: relative;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.3s ease, opacity 0.3s ease;\n &.shifted {\n transform: translateX(100%);\n opacity: 0;\n }\n\n &:disabled {\n cursor: not-allowed;\n background-color: #e7e7e7;\n color: rgba(0, 0, 0, 0.44);\n }\n}\n\n.yt-bundleBuilder-quantity-selector-container--visible {\n position: absolute;\n background-color: "#e7e7e7";\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: transform 0.3s ease;\n transform: translateX(-100%); /* Start off-screen to the left */\n\n &.visible {\n transform: translateX(0); /* Slide in from the left */\n }\n}\n\n.yt-bundleBuilder-product-card_add-to-bundle-button--added {\n font-weight: 600;\n width: 100%;\n cursor: pointer;\n border: none;\n padding: 0;\n height: 40px;\n position: relative;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.3s ease, opacity 0.3s ease;\n &.shifted {\n transform: translateX(100%);\n opacity: 0;\n }\n justify-content: space-between;\n &:disabled {\n cursor: not-allowed;\n background-color: #e7e7e7;\n color: rgba(0, 0, 0, 0.44);\n }\n}\n\n.yt-bundleBuilder-product-card_added-button-text {\n flex: 1;\n text-align: center;\n font-size: 14px;\n background-color: #747474;\n color: #fff;\n padding: 10px 0;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: default;\n}\n\n.yt-bundleBuilder-product-card_added-button-text {\n width: 100%;\n background-color: #747474;\n display: flex;\n align-items: center;\n justify-content: center;\n border-left: 1px solid #fff;\n height: 100%;\n cursor: pointer;\n}\n\n.yt-bundleBuilder-product-card_add-to-bundle-button--disabled {\n font-weight: 600;\n width: 100%;\n cursor: pointer;\n border: none;\n padding: 0;\n height: 40px;\n position: relative;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.3s ease, opacity 0.3s ease;\n &.shifted {\n transform: translateX(100%);\n opacity: 0;\n }\n\n &:disabled {\n cursor: not-allowed;\n background-color: #e7e7e7;\n color: rgba(0, 0, 0, 0.44);\n }\n}\n\n.yt-bundleBuilder-quantity-selector-container {\n display: flex;\n flex-direction: row;\n height: 100%;\n background-color: #e7e7e7;\n width: 100%;\n font-weight: 600;\n}\n\n.yt-bundleBuilder-quantity-selector_quantity {\n display: flex;\n align-items: center;\n justify-content: center;\n border: 0;\n width: 100%;\n font-size: 14px;\n}\n\n.yt-bundleBuilder-products-display {\n font-size: 20px;\n width: 100%;\n}\n\n.yt-bundleBuilder-header-container{\n z-index: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 20px;\n width: 90%;\n max-width: 1000px;\n}\n\n.bundle-builder-product-container {\n display: flex;\n flex-direction: column;\n width: 280px;\n row-gap: 8px;\n justify-content: space-between;\n cursor: pointer;\n transition: transform 0.6s ease, box-shadow 0.6s ease;\n overflow: hidden;\n -webkit-tap-highlight-color: transparent; /* from inline style */\n}\n\n/* Hover/scale effect */\n.bundle-builder-product-container:hover {\n transform: scale(1.01);\n}\n\n.bundle-builder-product-container:active {\n transform: scale(1);\n}\n\n/* Optional shadows depending on "shadowType" */\n.bundle-builder-product-container.shadow-none {\n box-shadow: none;\n}\n\n.bundle-builder-product-container.shadow-spread {\n box-shadow: 8px 8px 8px -6px #0000004d;\n}\n\n.bundle-builder-product-container.shadow-no-spread {\n box-shadow: 6px 6px 0px -1px #00000033;\n}\n\n.yt-bundleProductModal-modal-overlay{\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483644;\n\n}\n/* bundleProductDetailsModal.style.css */\n\n.yt-bundleProductModal-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483644;\n}\n\n.yt-bundleProductModal-modal-content {\n background-color: white;\n box-shadow: 3px 6.01px 25.69px 0px rgba(0, 0, 0, 0.25);\n overflow-y: auto;\n scrollbar-width: none;\n}\n\n.yt-bundleProductModal-modal-content.small-screen {\n width: 100%;\n height: 100%;\n padding: 20px;\n border-radius: 0;\n}\n\n.yt-bundleProductModal-modal-content.large-screen {\n padding: 15px;\n border-radius: 16.5px;\n max-width: min(1200px, 70%);\n max-height: 80vh;\n}\n\n.yt-bundleProductModal-selection-modal {\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n z-index: 2147483644;\n background-color: white;\n overflow-y: auto;\n}\n\n.yt-bundleProductModal-modal-close-button {\n position: absolute;\n top: 0;\n right: 0;\n cursor: pointer;\n z-index: 1000;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border: none;\n background: none;\n}\n\n.yt-bundleProductModal-modal-close-button svg {\n color: #000;\n font-size: 25px;\n filter: drop-shadow(0 0 8px white) drop-shadow(0 0 5px white);\n}\n\n.yt-bundleProductModal-selection-modal.large-screen {\n display: flex;\n flex-direction: row;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen {\n flex-direction: column;\n}\n\n.yt-bundleProductModal-modal-image-section {\n width: 50%;\n height: fit-content;\n}\n.yt-bundleProductModal-modal-image-section.small-screen {\n width: 100%;\n height: fit-content;\n}\n\n.yt-bundleProductModal-selection-modal.large-screen .yt-bundleProductModal-modal-image-section {\n width: 50%;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-image-section {\n width: 100%;\n position: relative;\n justify-content: center;\n}\n\n.yt-bundleProductModal-modal-main-image {\n width: fit-content;\n object-fit: cover;\n aspect-ratio: 1 / 1 !important;\n cursor: zoom-in;\n border-radius: 8px;\n border: 1px solid lightgray;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-main-image {\n width: inherit;\n height: inherit;\n object-fit: cover;\n}\n\n.yt-bundleProductModal-modal-main-image:hover {\n cursor: zoom-in;\n}\n\n.yt-bundleProductModal-modal-image-gallery {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 10px;\n overflow-y: auto;\n margin-top: 10px;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-image-gallery {\n display: flex;\n flex-direction: row;\n overflow-x: auto;\n padding: 5px 20px;\n gap: 5px;\n scrollbar-width: none;\n}\n\n.yt-bundleProductModal-modal-image-gallery img {\n width: 90px;\n height: 90px;\n cursor: pointer;\n opacity: 0.6;\n transition: opacity 0.3s ease;\n border-radius: 7px;\n border: 1px solid lightgray;\n object-fit: cover;\n}\n\n.yt-bundleProductModal-modal-image-gallery img.active,\n.yt-bundleProductModal-modal-image-gallery img:hover {\n opacity: 1;\n}\n\n.yt-bundleProductModal-modal-details-section {\n width: 50%;\n padding-left: 20px;\n max-height: 70vh;\n scrollbar-width: none;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-details-section {\n padding: 0 30px;\n margin: 15px 0;\n padding-bottom: 120px;\n width: 100%;\n}\n.yt-bundleProductModal-selection-modal.yt-variant-selection-modal.small-screen{\n height: 500px;\n}\n\n.yt-bundleProductModal-modal-details-section.small-screen {\n padding: 5px 0px 10px 10px !important;\n margin: 15px 0;\n padding-bottom: 120px;\n width: 100%;\n height: fit-content !important;\n}\n\n.yt-bundleProductModal-modal-details-section h2 {\n text-align: left !important;\n margin-bottom: 10px;\n line-height: normal !important;\n margin-top: 0;\n}\n\n.yt-bundleProductModal-modal-price-and-cta {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\n\n.yt-bundleProductModal-modal-separator {\n height: 10px;\n min-height: 10px;\n border: none;\n background-color: #d9d9d96b;\n margin: 20px 0 10px 0;\n display: block !important;\n}\n\n.yt-bundleProductModal-modal-phone-close-button {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 9999999999;\n background-color: #ffffff;\n padding: 4px;\n border-radius: 50%;\n border: 1px solid lightgray;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-bundleProductModal-modal-phone-close-button svg {\n height: 22px;\n width: 22px;\n padding: 4px;\n color: black;\n}\n\n.yt-bundleProductModal-modal-phone-bottom-bar {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 12px 15px;\n border-top: 1px solid lightgray;\n box-shadow: 0px -4px 5px rgba(0, 0, 0, 0.1);\n background-color: #fff;\n display: flex;\n flex-direction: column;\n gap: 2px;\n z-index: 9999999999;\n}\n\n.yt-bundleProductModal-modal-select-input {\n appearance: none;\n border: none;\n background: transparent;\n font-weight: bold;\n color: #000;\n cursor: pointer;\n padding-right: 20px;\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n width: 100%;\n opacity: 0;\n z-index: 2;\n}\n\n.yt-bundleProductModal-modal-price {\n font-size: 20px;\n font-weight: 600;\n color: #000;\n text-align: center;\n line-height: normal;\n}\n\n.yt-bundleProductModal-modal-atc-wrapper {\n width: 80%;\n}\n\n.yt-bundleProductModal-modal-atc-button {\n text-transform: uppercase;\n font-weight: 800;\n width: 100%;\n cursor: pointer;\n border: none;\n min-height: 40px;\n padding: 0 15px;\n position: relative;\n overflow: hidden;\n}\n\n/* Review rating styles */\n.yt-bundleProductModal-modal-rating {\n display: flex;\n align-items: center;\n justify-content: start;\n font-size: 14px;\n color: #333;\n}\n\n.yt-bundleProductModal-modal-rating-and-review-count {\n display: flex;\n align-items: center;\n justify-content: start;\n font-size: 14px;\n color: #333;\n margin-left: 10px;\n}\n\n.yt-bundleProductModal-modal-rating-and-review-count .yt-bundleProductModal-modal-rating-only {\n display: flex;\n align-items: center;\n justify-content: start;\n font-size: 14px;\n color: #333;\n}\n@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 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 text-align: left;\n overflow-wrap: break-word;\n}\n.bundle-builder-tracker-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n width: 100%;\n align-items: center;\n text-align: center;\n row-gap: 4px;\n justify-content: space-between; \n padding: 4px 10px; \n}\n\n.bundle-builder-tracker-container.mobile {\n padding: 0;\n min-height: 30px;\n}\n\n.yt-bundleBuilderTracker-mobile-remaining{\n color: #000;\n background-color: #f5f5f5;\n padding: 10px;\n font-weight: 600;\n font-size: 18px;\n width: 100%;\n height: 80px;\n margin: 10px 0px;\n border: 1px solid #d3d3d3;\n}\n\n.yt-bundleBuilderTracker-tier-progress-container{\n width: 100%;\n}\n\n.yt-bundleBuilderTracker-tier-progress-text{\n width: 100%;\n font-size: 14px;\n background-color: #e0e0e0;\n border-radius: 0;\n}\n\n.yt-bundleBuilderTracker-progress-bar-background{\n width: 100%;\n background-color: #e0e0e0;\n height: 6px;\n border-radius: 0;\n}\n\n.bundle-builder-tracker-progress,\n.yt-bundleBuilderTracker-progress-bar-fill {\n display: block;\n height: 100%;\n transition: width 0.3s ease-in-out, background-color 0.5s ease-in-out;\n}\n\n.yt-bundleBuilderTracker-quantity-badge {\n position: absolute;\n top: 5px;\n left: 5px;\n background-color: rgba(255, 255, 255, 0.7);\n color: black;\n padding: 2px 5px;\n font-size: 14px;\n border-radius: var(--corner-radius);\n}\n\n\n/* component.css */\n.yt-bundleBuilderTracker-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n padding: 4px 10px;\n width: 100%;\n align-items: center;\n text-align: center;\n row-gap: 4px;\n justify-content: space-between;\n}\n\n.yt-bundleBuilderTracker-container.mobile {\n padding: 0px;\n min-height: 30px;\n}\n\n.yt-bundleBuilderTracker-offer-tier-tag {\n position: absolute;\n top: -20px;\n padding: 5px 10px;\n}\n\n@media (max-width: 768px) {\n .yt-bundleBuilderTracker-offer-tier-tag {\n font-size: 12px;\n left: 0;\n }\n}\n\n.yt-bundleBuilderTracker-mobile-remaining {\n color: #000;\n background-color: #f5f5f5;\n padding: 10px;\n font-weight: 600;\n font-size: 18px;\n width: 100%;\n height: 80px;\n margin: 10px 0px;\n border: 1px solid #d3d3d3;\n}\n\n.yt-bundleBuilderTracker-tier-progress-container {\n width: 100%;\n}\n\n.yt-bundleBuilderTracker-tier-progress-text {\n width: 100%;\n font-size: 14px;\n background-color: #e0e0e0;\n border-radius: 0;\n}\n\n.yt-bundleBuilderTracker-progress-bar-background {\n width: 100%;\n background-color: #e0e0e0;\n height: 6px;\n border-radius: 0;\n}\n\n.yt-bundleBuilderTracker-progress-bar-fill {\n display: block;\n height: 100%;\n transition: width 0.3s ease-in-out, background-color 0.5s ease-in-out;\n}\n\n.yt-bundleBuilderTracker-product-list-wrapper {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n overflow-x: auto;\n}\n\n.yt-bundleBuilderTracker-summary-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 15px;\n justify-content: center;\n row-gap: 15px;\n padding: 0px 5px;\n}\n\n.yt-bundleBuilderTracker-summary-container.mobile {\n width: 100%;\n}\n\n.yt-bundleBuilderTracker-item-wrapper {\n position: relative;\n margin-top: 8px;\n margin-right: 5px;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-item-image-box {\n position: relative;\n border: 1px solid #d3d3d3;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.yt-bundleBuilderTracker-quantity-badge {\n position: absolute;\n top: 5px;\n left: 5px;\n background-color: rgba(255, 255, 255, 0.7);\n color: black;\n padding: 2px 5px;\n font-size: 14px;\n}\n\n.yt-bundleBuilderTracker-remove-button {\n position: absolute;\n top: -8px;\n right: -8px;\n background-color: black;\n color: white !important;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n border-radius: 2px;\n}\n\n.yt-bundleBuilderTracker-detailed-item-container {\n height: 85px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 5px 15px 0 5px;\n border: 1px solid #d3d3d3;\n column-gap: 5px;\n max-width: 220px;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-detailed-image {\n position: relative;\n height: 75px;\n width: 75px;\n border: 1px solid #d3d3d3;\n border-radius: 5px;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.yt-bundleBuilderTracker-badge {\n position: absolute;\n top: 5px;\n left: 5px;\n background-color: rgba(255, 255, 255, 0.7);\n color: black;\n padding: 2px 5px;\n border-radius: 2px;\n font-size: 14px;\n}\n\n.yt-bundleBuilderTracker-info-block {\n display: flex;\n flex-direction: column;\n row-gap: 8px;\n justify-content: flex-start;\n align-items: flex-start;\n text-align: left;\n}\n\n.yt-bundleBuilderTracker-product-title {\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n}\n\n.yt-bundleBuilderTracker-product-price {\n font-size: 13px;\n line-height: normal;\n}\n\n.yt-bundleBuilderTracker-remove-link {\n color: red;\n font-size: 10px;\n display: flex;\n flex-direction: row;\n column-gap: 3px;\n align-items: center;\n cursor: pointer;\n}\n\n.yt-bundleBuilderTracker-placeholder-box {\n border: 1px solid #d3d3d3;\n margin-top: 10px;\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n flex-shrink: 0;\n}\n\n.yt-bundleBuilderTracker-summary-info {\n display: flex;\n flex-direction: column;\n font-size: 18px;\n align-items: center;\n justify-content: center;\n}\n\n.yt-bundleBuilderTracker-subtotal-label {\n line-height: normal;\n color: black;\n align-self: center;\n justify-content: center;\n display: flex;\n font-weight: 700;\n font-size: 16px;\n}\n\n.yt-bundleBuilderTracker-save-label {\n font-size: 12px;\n color: #f6f8f7;\n padding: 4px 8px;\n background-color: #d3122a;\n border-radius: 2px;\n font-weight: 700;\n}\n\n@media (max-width: 600px) {\n .yt-bundleBuilderTracker-save-label {\n display: none;\n }\n}\n\n.yt-bundleBuilderTracker-subtotal-row {\n display: flex;\n flex-direction: row;\n column-gap: 5px;\n font-size: 16px;\n margin: 5px 0px;\n align-items: flex-end;\n}\n\n.yt-bundleBuilderTracker-total_price {\n font-weight: bold;\n text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-summary_price {\n color: #a0a0a0;\n text-decoration-line: line-through;\n font-size: 14px;\n}\n\n.yt-bundleBuilderTracker-checkout-button {\n padding: 5px 20px;\n height: 42px;\n outline: none;\n width: fit-content;\n min-width: 200px;\n transition: background-color 0.3s ease, box-shadow 0.3s ease;\n}\n\n.yt-bundleBuilderTracker-checkout-button:hover {\n background-color: var(--ctaHoverBackgroundColor, #f4f4f6);\n color: var(--ctaHoverTextColor, #000);\n}\n\n@media (max-width: 768px) {\n .yt-bundleBuilderTracker-checkout-button {\n width: 100%;\n padding: 5px 5px;\n margin-inline: 0px;\n }\n}\n\n.yt-bundleBuilderTracker-checkout-text {\n display: flex;\n flex-direction: row;\n column-gap: 6px;\n align-items: center;\n justify-content: center;\n font-weight: 650;\n}\n\n.yt-bundleBuilderTracker-product-list-tracker-item {\n position: relative;\n margin-top: 8px;\n margin-right: 5px;\n border: 1px solid #d3d3d3;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-detailed-product-item {\n height: 85px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 5px 15px 0 5px;\n border: 1px solid #d3d3d3;\n column-gap: 5px;\n max-width: 220px;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-plus-icon-container {\n justify-content: center;\n align-items: center;\n margin: 0px 6px;\n text-align: center;\n display: flex;\n flex-shrink: 0;\n}\n.yt-product-modal-close-button {\n position: absolute;\n top: 0px;\n right: 0px;\n cursor: pointer;\n z-index: 1000;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border: none;\n background: none;\n}\n\n.yt-product-modal-close-button svg {\n color: #000;\n font-size: 25px;\n filter: drop-shadow(0 0 8px white) drop-shadow(0 0 5px white);\n}\n\n@media (max-width: 540px) {\n .yt-product-modal-close-button {\n top: 5px;\n right: 5px;\n }\n}\n\n.yt-product-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483644;\n}\n\n.yt-product-modal-content {\n background-color: white;\n box-shadow: 3px 6.01px 25.69px 0px rgba(0, 0, 0, 0.25);\n overflow-y: auto;\n scrollbar-width: none;\n}\n\n.yt-product-modal-content.small-screen {\n padding: 20px;\n border-radius: 0;\n width: 100%;\n height: 100%;\n}\n\n.yt-product-modal-content.large-screen {\n padding: 15px;\n border-radius: 16.5px;\n max-width: min(1200px, 70%);\n max-height: 80vh;\n}\n\n.yt-product-selection-modal {\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n}\n\n.yt-variant-selection-modal {\n position: relative;\n z-index: 2147483644;\n background-color: white;\n overflow-y: auto;\n}\n\n.yt-variant-selection-modal .details-section h2 {\n text-align: left !important;\n margin-bottom: 10px;\n line-height: normal !important;\n}\n\n.yt-variant-selection-modal .details-section .price {\n font-size: 1.7em;\n font-weight: bold;\n margin-bottom: 10px;\n}\n\n.yt-variant-selection-modal .details-section .add-to-bundle {\n margin-top: 20px;\n padding: 10px 20px;\n background-color: #4caf50;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 1em;\n transition: background-color 0.3s ease;\n}\n\n.yt-variant-selection-modal .details-section .add-to-bundle:hover {\n background-color: #45a049;\n}\n\n.yt-variant-selection-modal.small-screen {\n flex-direction: column;\n}\n\n.yt-variant-selection-modal.small-screen .yt-product-modal-image-section {\n justify-content: center;\n position: relative;\n width: 100%;\n}\n\n.yt-variant-selection-modal.small-screen .yt-product-modal-image-section .yt-product-modal-main-image {\n width: inherit;\n height: inherit;\n object-fit: cover;\n aspect-ratio: 1 / 1 !important;\n}\n\n.yt-product-modal-main-image:hover {\n cursor: zoom-in;\n}\n\n.yt-variant-selection-modal.large-screen {\n display: flex;\n flex-direction: row;\n}\n\n.yt-variant-selection-modal.large-screen .yt-product-modal-image-section {\n width: 50%;\n height: fit-content;\n}\n\n.yt-variant-selection-modal.large-screen .yt-product-modal-image-section .yt-product-modal-main-image {\n width: fit-content;\n object-fit: cover;\n aspect-ratio: 1 / 1 !important;\n cursor: zoom-in;\n border-radius: 8px;\n border: 1px solid lightgray;\n}\n\n.yt-variant-selection-modal.large-screen .yt-product-modal-image-gallery {\n display: flex;\n flex-wrap: nowrap;\n gap: 10px;\n overflow-x: auto;\n margin-top: 10px;\n scrollbar-width: none;\n}\n.yt-variant-selection-modal.large-screen .yt-product-modal-image-gallery::-webkit-scrollbar {\n display: none;\n}\n\n.yt-variant-selection-modal.large-screen .yt-product-modal-image-gallery img {\n width: 90px;\n height: 90px;\n cursor: pointer;\n opacity: 0.6;\n transition: opacity 0.3s ease;\n}\n\n.yt-variant-selection-modal.large-screen .yt-product-modal-image-gallery img.active,\n.yt-variant-selection-modal.large-screen .yt-product-modal-image-gallery img:hover {\n opacity: 1;\n}\n\n.yt-variant-selection-modal.large-screen .yt-product-modal-details-section {\n width: 50%;\n padding-left: 20px;\n}\n\n.yt-product-modal-select-input {\n width: 50%;\n padding: 5px;\n margin-bottom: 20px;\n border: 1px solid #ccc;\n border-radius: 4px;\n font-size: 1em;\n justify-content: center;\n align-items: center;\n}\n\n.yt-product-modal-price-and-cta {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\n\n.yt-product-modal-atc-wrapper {\n width: 80%;\n}\n\n.yt-product-modal-atc-button {\n text-transform: uppercase;\n font-weight: 800;\n width: 100%;\n cursor: pointer;\n border: none;\n min-height: 40px;\n padding: 0px 15px;\n position: relative;\n overflow: hidden;\n}\n\n.yt-product-modal-separator {\n height: 10px;\n min-height: 10px;\n border: none;\n background-color: #d9d9d96b;\n margin: 20px 0 10px 0;\n display: block !important;\n}\n\n.yt-description-content {\n scroll-behavior: smooth;\n}\n\n.yt-product-modal-phone-close-button {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 9999999999;\n background-color: #ffffff;\n padding: 4px;\n border-radius: 50%;\n border: 1px solid lightgray;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-product-modal-image-indicator {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n margin: 0 3px;\n cursor: pointer;\n backdrop-filter: blur(10px);\n}\n\n.yt-product-modal-image-gallery::-webkit-scrollbar {\n display: none;\n}\n';export{Gg as Bundle,Qg as BundleLoader,mu as Cart,fa as CouponFrame,Ue as Nudge,Xe as SpinnerWheel,qg as ytBundleShadowCss};
|
|
4265
|
+
`,Fg=({products:e,isOpen:n,onClose:r,cta:o,variantOptions:a,onVariantChange:i,handleAddToCart:d,primaryProductId:s,variantId:p})=>{const[u,m]=c(()=>{const t={};return e.forEach(({productId:e,productDetails:n})=>{let r=n.options.map(e=>e.values[0]??"");if(e===s&&p){const e=n.variants.edges.find(e=>e.node.id.includes(p))?.node;e&&(r=e.title.split(" / "))}t[e]=r}),t});l(()=>{if(!s||!p)return;const t=e.find(e=>e.productId===s);if(!t)return;const n=t.productDetails.variants.edges.find(e=>e.node.id.includes(p))?.node;if(n){const e=n.title.split(" / ");m(t=>({...t,[s]:e})),g(e=>({...e,[s]:{node:n}})),i(s,n.id)}},[p,s]);const[f,g]=c({}),x=(t,n,r)=>{const o={...u};o[t][r]=n,m(o);const a=e.find(e=>e.productId===t);if(!a?.productDetails)return;const l=a.productDetails.variants.edges.find(e=>e.node.title===o[t].join(" / "))?.node;l&&(i(t,l.id),g(e=>({...e,[t]:{node:l}})))};if(!n)return null;const h=t.createElement(Cg,{className:"yt-fixedBundle-variant-modal_overlay",onClick:r},t.createElement(Eg,{className:"yt-fixedBundle-variant-modal_container",onClick:e=>e.stopPropagation()},t.createElement(kg,{className:"yt-fixedBundle-variant-modal_header",style:{backgroundColor:o.backgroundColor,color:o.textColor}},"Select Options"),e?.map((n,r)=>t.createElement(t.Fragment,null,t.createElement(Sg,{className:"yt-fixedBundle-variant-modal_product-block"},t.createElement(Bg,{className:"yt-fixedBundle-variant-modal_thumbnail",src:f[n.productId]?.node?.image.url||n.productDetails.featuredMedia?.preview?.image?.url,alt:n.productDetails.title}),t.createElement($g,{className:"yt-fixedBundle-variant-modal_product-info"},t.createElement(zg,{className:"yt-fixedBundle-variant-modal_product-name"},n.productDetails.title,n.productDetails.variants.edges.length>1&&t.createElement(Ig,{className:"yt-fixedBundle-variant-modal_selected-value"},u[n.productId].join(" / "))),n.productDetails.options.map((e,r)=>{const o=a&&a?.options?.find(t=>t.name===e.name);return e.values.length<=1?t.createElement(t.Fragment,null):o&&"color"===o?.type?t.createElement(Pg,{className:"yt-fixedBundle-variant-modal_options-row"},t.createElement(Mg,{className:"yt-fixedBundle-variant-modal_option-name"},e.name," : "),e.values.map((e,a)=>t.createElement(t.Fragment,null,o.values.find(t=>t.name===e)?.value?t.createElement(Ng,{className:"yt-fixedBundle-variant-modal_color-swatch",key:a,color:o.values.find(t=>t.name===e)?.value||e,selected:u[n.productId][r]==e,onClick:()=>{x(n.productId,e,r)}},t.createElement("span",null)):t.createElement(_g,{className:"yt-fixedBundle-variant-modal_text-swatch",key:a,selected:u[n.productId][r]==e,onClick:()=>{x(n.productId,e,r)}},e)))):o&&"image"===o?.type?t.createElement(Pg,{className:"yt-fixedBundle-variant-modal_options-row"},t.createElement(Mg,{className:"yt-fixedBundle-variant-modal_option-name"},e.name," : "),e.values.map((e,a)=>t.createElement(t.Fragment,null,o.values.find(t=>t.name===e)?.value?t.createElement(Og,{className:"yt-fixedBundle-variant-modal_image-swatch",key:a,selected:u[n.productId][r]==e,onClick:()=>{x(n.productId,e,r)},src:o.values.find(t=>t.name===e)?.value},t.createElement("span",null)):t.createElement(_g,{className:"yt-fixedBundle-variant-modal_text-swatch",key:a,selected:u[n.productId][r]==e,onClick:()=>{x(n.productId,e,r)}},e)))):t.createElement(Pg,{className:"yt-fixedBundle-variant-modal_options-row"},t.createElement(Mg,{className:"yt-fixedBundle-variant-modal_option-name"},e.name," : "),e.values.map((e,o)=>t.createElement(_g,{className:"yt-fixedBundle-variant-modal_text-swatch",key:o,selected:u[n.productId][r]==e,onClick:()=>{x(n.productId,e,r)}},e)))}))),r<e.length-1&&t.createElement(Dg,{className:"yt-fixedBundle-variant-modal_divider"}))),t.createElement(Tg,{className:"yt-fixedBundle-variant-modal_confirm-button",style:{backgroundColor:o.backgroundColor,color:o.textColor},onClick:d},"Add bundle to cart")));return v.createPortal(h,document.body)},Ag=({options:e,selectedValue:n,onChange:r,type:a="text"})=>{const[i,d]=c(!1),s=o(null);l(()=>{const e=e=>{s.current&&!s.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const p=e=>"color"===a?t.createElement(mg,{className:"yt-fixedBundle-variant-dropdown-horizontal_color-swatch",$color:e.value},t.createElement("span",null)):"image"===a?t.createElement(fg,{className:"yt-fixedBundle-variant-dropdown-horizontal_image-swatch",src:e.value||"/placeholder.svg",alt:e.name},t.createElement("span",null)):null;return t.createElement(ig,{className:"yt-fixedBundle-variant-dropdown-horizontal_container",ref:s},t.createElement(lg,{className:"yt-fixedBundle-variant-dropdown-horizontal_header",onClick:()=>d(!i)},t.createElement(cg,{className:"yt-fixedBundle-variant-dropdown-horizontal_content"},n&&("color"===a||"image"===a)&&p(n),t.createElement("span",{className:"yt-fixedBundle-variant-dropdown-horizontal_selected-text"},n&&n.name)),t.createElement(dg,{className:"yt-fixedBundle-variant-dropdown-horizontal_chevron-icon",$isOpen:i})),i&&t.createElement(sg,{className:"yt-fixedBundle-variant-dropdown-horizontal_list"},e?.map(e=>t.createElement(pg,{className:"yt-fixedBundle-variant-selector_dropdown-item "+(n?.name===e.name?"yt-fixedBundle-variant-selector_dropdown-item--selected":""),key:e.name,$isSelected:n?.name===e.name,onClick:()=>{r(e),d(!1)}},("color"===a||"image"===a)&&p(e),t.createElement(ug,{className:"yt-fixedBundle-variant-dropdown-horizontal_item-text"},e.name)))))},Rg=({product:e,variantOptions:n,selectedVariants:r,onVariantChange:o,variantId:a,primaryProductId:i,variantType:d="dropdown"})=>{const[s,p]=c(r||[]);l(()=>{if(a&&e.variants.edges.some(e=>e.node.id.includes(a))){const t=e.variants.edges.find(e=>e.node.id.includes(a))?.node;if(t){const e=t.title.split(" / ");p(e)}}},[a,e]);const u=e=>{if(!n?.options)return"text";const t=n.options.find(t=>t.name===e);return t?.type||"text"},m=(e,t)=>{if(!n?.options)return e.values.map(e=>({name:e,value:e}));const r=n.options.find(t=>t.name===e.name);return e.values.map(e=>{const t=r?.values?.find(t=>t.name===e);return{name:e,value:t?.value||e}})},f=(e,t)=>{const n=s[t];if(!n)return null;return m(e).find(e=>e.name===n)||null};return t.createElement(gg,{className:"yt-fixedBundle-variant-selector-horizontal_container"},e.options.map((n,r)=>t.createElement(xg,{className:"yt-fixedBundle-variant-selector-horizontal_option-row",key:n.name,$isFirst:0===r},n?.values?.length>1&&t.createElement(Ag,{options:m(n),selectedValue:f(n,r),onChange:t=>{console.log(t),((t,n)=>{const r=[...s];r[t]=n.name,p(r);const a=e.variants.edges.find(n=>n.node.title===(e.options?.length>0?r.join(" / "):r[t]))?.node.id;o(a||"")})(r,t)},type:u(n.name)}))))},Lg=({product:e,selectedVariantId:n,isChecked:r,canCustomize:o,styles:a,onVariantChange:i,onCheckChange:d,isMobile:s,isHorizontal:p,index:u,variantOptions:m,productsLength:f,handleOpenModal:g,storeCurrencyCode:x,primaryProductId:h,variantId:y})=>{const[b,v]=c(e.variants.edges.find(e=>e.node.id===n)?.node),[w]=c(e.options?.map(e=>e.values[0])||[]),C=e.id===h;l(()=>{if(y&&e.id===h){const t=e.variants.edges.find(e=>e.node.id.includes(y))?.node;t&&(v(t),i(t.id))}else{const t=e.variants.edges.find(e=>e.node.id===n)?.node;v(t)}},[e,h,n,y]);const E="undefined"!=typeof window&&"devansh-test123.myshopify.com"===window.ytBundleApp?.storeDomain||"usee-shop-app.myshopify.com"===window.ytBundleApp?.storeDomain,k=b?.image?.url||e.featuredMedia?.preview?.image?.url;return t.createElement(t.Fragment,null,p?t.createElement("div",{className:""+(e.id===h?"yt-fixedBundle-product-card--horizontal-primary":"yt-fixedBundle-product-card--horizontal-associated"),style:{display:"flex",alignItems:"center",gap:"10px",backgroundColor:a.fixedBundle?.cardBackgroundColor}},o&&t.createElement(vg,{className:"yt-fixedBundle-product-card_checkbox-wrapper--horizontal"},t.createElement(yg,{className:"yt-fixedBundle-product-card_checkbox-hidden",style:{display:"none"},type:"checkbox",id:`checkbox-${e.id}`,defaultChecked:r,onChange:e=>d(e.target.checked),disabled:C}),t.createElement(bg,{className:"yt-fixedBundle-product-card_checkbox-label",htmlFor:`checkbox-${e.id}`,isChecked:r,borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,backgroundColor:a.general?.ctaBackgroundColor},t.createElement(nt,null))),t.createElement(Pf,{className:"yt-fixedBundle-product-card-horizontal_item",style:{borderRadius:a.fixedBundle?.borderRadius,border:`1px solid ${a.fixedBundle?.borderColor}80`,backgroundColor:a.fixedBundle?.cardBackgroundColor,boxShadow:{none:"none",spread:`8px 8px 8px -6px ${a.fixedBundle.borderColor}`,"no-spread":`4px 4px 0px -1px ${a.fixedBundle.borderColor}80`}[a.fixedBundle.shadowType]||"none"},canCustomize:o},"undefined"!=typeof window&&"devansh-test123.myshopify.com"!==window.ytBundleApp?.storeDomain&&"usee-shop-app.myshopify.com"!==window.ytBundleApp?.storeDomain&&t.createElement(Nf,{className:"yt-fixedBundle-product-card-horizontal_image",src:k,alt:e.title,style:{borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,aspectRatio:a.general.imageAspectRatio||"1/1",borderTopRightRadius:"0",borderBottomRightRadius:"0"}}),t.createElement(_f,{className:"yt-fixedBundle-product-card-horizontal_details"},t.createElement(Of,{className:"yt-fixedBundle-product-card-horizontal_title"},e.title),a.fixedBundle.productsPriceVisibility&&t.createElement(Mf,{className:"yt-fixedBundle-product-card-horizontal_price-section"},t.createElement(Ff,{className:"yt-fixedBundle-product-card-horizontal_price--new"},Wg(a.general.currencySymbol,x)," ",Hg(b?.price)),a.fixedBundle.compareAtPriceVisibility&&b?.compareAtPrice&&parseFloat(b.compareAtPrice)>parseFloat(b?.price)&&t.createElement(Af,{className:"yt-fixedBundle-product-card-horizontal_price--old"},Wg(a.general.currencySymbol,x),Hg(b?.compareAtPrice))),t.createElement(Rg,{product:e,variantOptions:m,selectedVariants:w,onVariantChange:e=>{i(e)},variantId:y,primaryProductId:h})))):t.createElement(t.Fragment,null,t.createElement(Qf,{className:""+(e.id===h?"yt-fixedBundle-product-card--vertical-primary":"yt-fixedBundle-product-card--vertical-associated"),productsLength:f,style:{borderRadius:a.fixedBundle?.borderRadius,border:`1px solid ${a.fixedBundle?.borderColor}50`,backgroundColor:a.fixedBundle?.cardBackgroundColor,boxShadow:{none:"none",spread:`0 4px 10px -6px ${a.fixedBundle.borderColor}50`,"no-spread":`4px 4px 0px -1px ${a.fixedBundle.borderColor}50`}[a.fixedBundle.shadowType]||"none",...o&&{position:"relative"},...E&&{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",minWidth:"max-content",paddingLeft:"2px"}},borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,backgroundColor:a.fixedBundle?.cardBackgroundColor},o&&t.createElement(wg,{className:"yt-fixedBundle-product-card_checkbox-wrapper--vertical",isImage:E},t.createElement(yg,{className:"yt-fixedBundle-product-card_checkbox-hidden--vertical",style:{display:"none"},type:"checkbox",id:`checkbox-${e.id}`,defaultChecked:r,onChange:e=>d(e.target.checked),disabled:C}),t.createElement(bg,{className:"yt-fixedBundle-product-card_checkbox-label--vertical",htmlFor:`checkbox-${e.id}`,isChecked:r,borderRadius:a.fixedBundle?.borderRadius,borderColor:a.fixedBundle?.borderColor,backgroundColor:a.general?.ctaBackgroundColor},t.createElement(nt,{size:10}))),"undefined"!=typeof window&&"devansh-test123.myshopify.com"!==window.ytBundleApp?.storeDomain&&"usee-shop-app.myshopify.com"!==window.ytBundleApp?.storeDomain&&t.createElement(qf,{className:"yt-fixedBundle-product-card_image-wrapper--vertical",style:{aspectRatio:a.general.imageAspectRatio,height:"fit-content"}},t.createElement(Yf,{className:"yt-fixedBundle-product-card_image--vertical",src:k,style:{aspectRatio:a.general.imageAspectRatio},alt:e.title}),e.variants.edges.length>1&&t.createElement(Zf,{className:"yt-fixedBundle-product-card_badge-container"},t.createElement(Kf,{className:"yt-fixedBundle-product-card_circle-button"},t.createElement("span",null)),t.createElement(Xf,{className:"yt-fixedBundle-product-card_circle-button-two"},t.createElement("span",null)),t.createElement(Jf,{className:"yt-fixedBundle-product-card_count-badge"},e.variants.edges.length,"+"))),t.createElement(eg,{className:"yt-fixedBundle-product-card-vertical_info"},t.createElement(tg,{className:"yt-fixedBundle-product-card-vertical_title"},e.title),a.fixedBundle.productsPriceVisibility&&t.createElement(rg,{className:"yt-fixedBundle-product-card-vertical_price-line"},t.createElement(ng,{className:"yt-fixedBundle-product-card-vertical_price--new"},Wg(a.general.currencySymbol,x),Hg(b?.price)),a.fixedBundle.compareAtPriceVisibility&&b?.compareAtPrice&&parseFloat(b.compareAtPrice)>parseFloat(b?.price)&&t.createElement(Af,{className:"yt-fixedBundle-product-card-vertical_price--old"},Wg(a.general.currencySymbol,x),Hg(b?.compareAtPrice))))),(f<=3||!s)&&u<f-1&&t.createElement(og,{className:"yt-fixedBundle-plus-wrapper"}," ",t.createElement(ag,{className:"yt-fixedBundle-plus-icon"},"+")," ")))},jg=({bundle:e,addToCartFunction:n})=>{const[r,o]=c(!1),[a,d]=c(window.innerWidth<786),[s,p]=c(null),u="undefined"!=typeof window?window.location.href:null,m=e?.products?.find(e=>e.productDetails?.handle===u?.split("/").pop()?.split("?")[0]),f=m?.productId,[g,x]=c(Object.fromEntries(e?.products?.map(e=>[e.productId,e.productDetails?.variants?.edges?.find(e=>e.node.inventoryQuantity>0)?.node?.id||e.productDetails?.variants?.edges?.[0]?.node?.id]))),[h,y]=c(!1),b="undefined"!=typeof window&&("usee-shop-app.myshopify.com"===window.ytBundleApp?.storeDomain||"devansh-test123.myshopify.com"===window.ytBundleApp?.storeDomain),v=e?.showIndividualProductSelector||!0,[w,C]=c(new Set(e.products.filter(e=>!b||(e.productId===f||v)).map(e=>e.productId)));l(()=>{const e=()=>{const e=new URL(window.location.href).searchParams.get("variant");p(e)},t=e=>{const t=history[e];return function(...n){const r=t.apply(this,n);return window.dispatchEvent(new Event(e.toLowerCase())),r}};return history.pushState=t("pushState"),history.replaceState=t("replaceState"),window.addEventListener("pushstate",e),window.addEventListener("replacestate",e),e(),()=>{window.removeEventListener("pushstate",e),window.removeEventListener("replacestate",e)}},[]),l(()=>{if(s&&f){const t=e?.products?.find(e=>e.productId===f);if(t){const e=t.productDetails?.variants?.edges?.some(e=>e.node.id.includes(s));e&&x(e=>({...e,[f]:s}))}}},[s,f,e?.products]),l(()=>{const e=()=>{d(window.innerWidth<600)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);const E=(e,t)=>{x(n=>({...n,[e]:t}))},k=(e,t)=>{b&&v&&t===f||C(n=>{const r=new Set(n);return e?r.add(t):r.delete(t),r})},T=e.disableInventoryTracking||e.products.every(e=>e.productDetails.variants.edges.some(e=>e.node.inventoryQuantity>0)),S=i(()=>e.products.some(e=>w.has(e.productId)&&e.productDetails.variants.edges.length>1),[e.products,w]),{originalPrice:B,dealPrice:$,offerValue:z}=i(()=>{const{price:t,compareAtPrice:n}=e.products.reduce((e,t)=>{if(!w.has(t.productId))return e;const n=t.productDetails.variants.edges?.find(e=>e.node.id===g[t.productId])?.node,r=parseFloat(n?.price??"0"),o=parseFloat(n?.compareAtPrice||r.toString());return e.price+=r,e.compareAtPrice+=o,e},{price:0,compareAtPrice:0}),r=Math.max(t,n);let o=Math.min(t,n);w.size===e.products.length&&(e?.percentageOff?o=t*(1-e.percentageOff/100):e?.dealAmount?o=e.dealAmount:e?.amountOff&&(o=t-e.amountOff));const a=n-o;return{originalPrice:r.toFixed(2),dealPrice:o.toFixed(2),offerValue:a.toFixed(2)}},[e.products,g,w,e.percentageOff,e.dealAmount,e.amountOff]),D=async e=>{e.preventDefault(),e.stopPropagation(),o(!0),y(!1);try{const e=Object.entries(g).filter(([e])=>w.has(e)).map(([e,t])=>t);n&&await n(Number(B),e)}catch(e){console.error("Error adding to cart:",e)}o(!1)};if(!n)return t.createElement(t.Fragment,null);if(e?.customizations.general?.trackInventory&&!T)return t.createElement(t.Fragment,null);const I=e.customizations,P=I.fixedBundle?.cardLayoutStyle||"auto",N="horizontal"===P||"auto"===P&&a,_=()=>{y(!0)},O="bundles"==e.appName?e.pageHeader?.title:e?.title,M="bundles"==e.appName?e.pageHeader?.description:e?.subtitle;return t.createElement($f,{id:"yt-fixedBundle-container",className:"yt-fixedBundle-container",style:{maxWidth:"800px",backgroundColor:I.fixedBundle.sectionBackgroundColor,..."transparent"!==I.fixedBundle.sectionBackgroundColor&&{padding:"20px"}}},O&&t.createElement(zf,{id:"yt-fixedBundle-header",className:"yt-fixedBundle-header",style:{backgroundColor:I.fixedBundle?.titleBackgroundColor||"none",color:I.fixedBundle?.titleTextColor||"black",textAlign:I.fixedBundle.infoAlignment??"center",fontSize:I.fixedBundle?.titleFontSize,..."transparent"!==I.fixedBundle.titleBackgroundColor&&{paddingBlock:"7px"},..."left"===I.fixedBundle.infoAlignment&&"transparent"!==I.fixedBundle.titleBackgroundColor&&{paddingLeft:"7px"},..."right"===I.fixedBundle.infoAlignment&&"transparent"!==I.fixedBundle.titleBackgroundColor&&{paddingRight:"7px"},..."left"===I.fixedBundle.infoAlignment&&"transparent"===I.fixedBundle.titleBackgroundColor&&{paddingLeft:"0px"}}},O),M&&t.createElement(Df,{id:"yt-fixedBundle-subheader",className:"yt-fixedBundle-subheader",style:{color:"#121212",fontSize:I.fixedBundle?.subtitleFontSize,textAlign:I.fixedBundle.infoAlignment??"center",..."left"===I.fixedBundle.infoAlignment&&"transparent"!==I.fixedBundle.titleBackgroundColor&&{paddingLeft:"7px"},..."right"===I.fixedBundle.infoAlignment&&"transparent"!==I.fixedBundle.titleBackgroundColor&&{paddingRight:"7px"},..."left"===I.fixedBundle.infoAlignment&&"transparent"===I.fixedBundle.titleBackgroundColor&&{paddingLeft:"0px"}}},M),N?t.createElement(If,{id:"yt-fixedBundle-horizontal-container",className:"yt-fixedBundle-horizontal-container"},e?.products?.map((n,r)=>t.createElement(t.Fragment,{key:n.productId},t.createElement(Lg,{isChecked:w.has(n.productId),product:n.productDetails,selectedVariantId:g[n.productId],canCustomize:e?.canCustomizeFixedBundle||!1,styles:I,onVariantChange:e=>E(n.productId,e),onCheckChange:e=>{k(e,n.productId)},isMobile:a,index:r,isHorizontal:N,variantOptions:e.variantOptions,productsLength:e.products.length,storeCurrencyCode:e.storeCurrencyCode,primaryProductId:f,variantId:s||void 0})))):t.createElement(Uf,{id:"yt-fixedBundle-vertical-container",className:"yt-fixedBundle-vertical-container"},t.createElement(Gf,{id:"yt-fixedBundle-product-list",className:"yt-fixedBundle-product-list",style:{justifyContent:"left"===I.fixedBundle.infoAlignment?"flex-start":"right"===I.fixedBundle.infoAlignment?"flex-end":"center"}},e?.products?.map((n,r)=>t.createElement(Lg,{isChecked:w.has(n.productId),product:n.productDetails,selectedVariantId:g[n.productId],canCustomize:e?.canCustomizeFixedBundle||!1,styles:I,onVariantChange:e=>E(n.productId,e),onCheckChange:e=>k(e,n.productId),isMobile:a,index:r,isHorizontal:N,productsLength:e.products.length,handleOpenModal:_,storeCurrencyCode:e.storeCurrencyCode,primaryProductId:f,variantId:s||void 0})),S&&t.createElement(Fg,{products:e.products.filter(e=>w.has(e.productId)),isOpen:h,onClose:()=>y(!1),variantOptions:e.variantOptions,cta:{textColor:I.general.ctaTextColor,backgroundColor:I.general.ctaBackgroundColor},onVariantChange:E,handleAddToCart:D,primaryProductId:f,variantId:s||void 0}))),t.createElement(Rf,{id:"yt-fixedBundle-summary",className:"yt-fixedBundle-summary",style:{alignItems:"left"===I.fixedBundle.infoAlignment?"flex-start":"right"===I.fixedBundle.infoAlignment?"flex-end":"center"}},Number(B)>0&&Number(z)>0&&I.fixedBundle.compareAtPriceVisibility&&t.createElement(Lf,{className:"yt-fixedBundle-summary_original-price"},"Original Price:"," ",t.createElement(Vf,{className:"yt-fixedBundle-summary_price"},Wg(I.general.currencySymbol,e?.storeCurrencyCode),Hg(B))),0!==w.size&&t.createElement(jf,{className:"yt-fixedBundle-summary_total-price"},"Total Price:"," ",t.createElement(Vf,{className:"yt-fixedBundle-summary_price"},Wg(I.general.currencySymbol,e?.storeCurrencyCode),Hg($))," ",Number(z)>0&&t.createElement(Hf,{className:"yt-fixedBundle-summary_save-tag"},"Save:"," ",Wg(I.general.currencySymbol,e?.storeCurrencyCode),Hg(z)))),t.createElement(Wf,{id:"yt-fixedBundle-add-to-cart",className:"yt-fixedBundle-add-to-cart",onClick:e=>{e.preventDefault(),e.stopPropagation(),N||!S?D(e):y(!0)},disabled:w.size<1||r,style:{backgroundColor:I.general?.ctaBackgroundColor||"#121212",color:I.general?.ctaTextColor||"#FFFFFF",border:`1px solid ${I.general?.ctaBackgroundColor||"#121212"}`,boxShadow:I.general.ctaShadowType,paddingTop:I.general?.ctaPadding,paddingBottom:I.general?.ctaPadding,borderRadius:I.general.ctaBorderRadius,width:I.general.ctaWidth||"100%",textAlign:"center"},onMouseOver:e=>{I.general.customizeHoverState&&(e.currentTarget.style.backgroundColor=I.general?.ctaHoverBackgroundColor||"#F1F1F1",e.currentTarget.style.color=I.general?.ctaHoverTextColor||"#121212")},onMouseOut:e=>{I.general.customizeHoverState&&(e.currentTarget.style.backgroundColor=I.general?.ctaBackgroundColor||"#121212",e.currentTarget.style.color=I.general?.ctaTextColor||"#FFFFFF")}},r?t.createElement(na,{color:"white",loading:r,size:15,"aria-label":"Loading Spinner","data-testid":"loader"}):t.createElement(t.Fragment,null,I.fixedBundle?.ctaTitle??"Add Bundle to cart")))},Vg=window?.Shopify?.currency||{rate:1,active:"INR"},Hg=e=>{if(!e)return;const t=navigator.language||"en-US",n=Number((Number(e)*Vg.rate).toFixed(2));return new Intl.NumberFormat(t).format(n)},Wg=(e,t)=>t==Vg.active?e:wn(Vg.active)||Vg.active,Ug=(e,t,n,r,o)=>{const a=r.findIndex(t=>t.variantId===e);o(0===n?e=>e.filter((e,t)=>t!==a):-1===a?r=>[...r,{product:t,variantId:e,quantity:n}]:e=>e.map((e,t)=>t===a?{...e,quantity:e.quantity+n}:e))},Gg=({bundle:e,currentProductId:n,addToCartFunction:r,addCustomBundleToCart:o,selectedItems:a,setSelectedItems:i,bundleAddToCartLoading:l,handleRemoveItem:c,selectedItemsQuantity:d,renderingOnPage:s,bundleSubtotal:p})=>"fixed"!==e.type&&e.type&&0!==e?.type?.length?"builder"===e.type?t.createElement(fm,{bundleAddToCartLoading:l,bundle:e,selectedItems:a,setSelectedItems:i,handleAddToCart:o,handleRemoveItem:c,renderingOnPage:s,selectedItemsQuantity:d??0,bundleSubtotal:p??{price:0,compareAtPrice:0}}):"combo"===e.type?t.createElement(xm,{bundle:e,addToCartFunction:r}):"mixnmatch"===e.type?t.createElement(Bf,{bundle:e,addToCartFunction:r}):t.createElement(Qm,{bundle:e,currentProductId:n,addToCartFunction:r}):t.createElement(jg,{addToCartFunction:r,bundle:e}),Qg=()=>t.createElement("div",{className:"scene"},t.createElement("div",{className:"floating"},t.createElement("div",{className:"cube"},t.createElement("div",{className:"side front"},""),t.createElement("div",{className:"side back"},""),t.createElement("div",{className:"side left"},""),t.createElement("div",{className:"side right"},""),t.createElement("div",{className:"side bottom"},""),t.createElement("div",{className:"lid"},t.createElement("div",{className:"flap north"},""),t.createElement("div",{className:"flap south"},""),t.createElement("div",{className:"flap east"},""),t.createElement("div",{className:"flap west"},""))))),qg='\n.yt-bundleBuilder-product-card {\n display: flex;\n flex-direction: column;\n width: 280px;\n row-gap: 8px;\n justify-content: space-between;\n cursor: pointer;\n transition: transform 0.6s ease, box-shadow 0.6s ease;\n overflow: hidden;\n\n background-color: var(--card-bg, #fff);\n border-radius: var(--card-radius, 0);\n border: var(--card-border, none);\n box-shadow: var(--card-shadow, none);\n}\n\n.yt-bundleBuilder-product-card:hover {\n transform: scale(1.01);\n}\n\n.yt-bundleBuilder-product-card_remove-button{\n width: 25%;\n background-color: #111;\n display: flex;\n align-items: center;\n justify-content: center;\n border-left: 1px solid #fff;\n height: 100%;\n cursor: pointer;\n}\n\n.yt-bundleBuilder-product-card_image-wrapper {\n display: flex;\n position: relative;\n flex-direction: column;\n padding: 0px;\n}\n\n.yt-bundleBuilder-product-card_title {\n font-size: var(--title-font-size, 18px);\n font-weight: var(--yt-bundle-font-weight, bold);\n color: #333;\n line-height: normal;\n margin-top: var(--title-margin-top, 0px);\n padding: var(--title-padding, 0 4px);\n\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.bundle-builder-variant-selector {\n border: 1px solid #c7c7c7;\n padding: 8px 8px 8px 10px;\n position: absolute;\n width: 98%;\n height: 38px;\n bottom: 4px;\n right: 3px;\n background-color: #f5f5f5;\n font-size: 14px;\n cursor: pointer;\n opacity: 0.8;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n\n background-image: none !important;\n margin-bottom: 0 !important;\n}\n\n.bundle-builder-variant-selector--coralHaze {\n appearance: auto;\n -webkit-appearance: auto;\n -moz-appearance: auto;\n}\n\n.yt-bundleBuilder-product-card_title {\n font-size: var(--title-font-size, 18px);\n font-weight: var(--yt-bundle-font-weight, bold);\n color: #333;\n line-height: normal;\n margin-top: var(--title-margin-top, 0px);\n padding: var(--title-padding, 0 4px);\n\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.yt-product-atc-wrapper {\n position: relative;\n width: 100%;\n height: 40px;\n}\n\n.yt-product-atc-button {\n font-weight: 600;\n width: 100%;\n cursor: pointer;\n border: none;\n padding: 0;\n height: 40px;\n position: relative;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.3s ease, opacity 0.3s ease;\n &.shifted {\n transform: translateX(100%);\n opacity: 0;\n }\n\n &:disabled {\n cursor: not-allowed;\n background-color: #e7e7e7;\n color: rgba(0, 0, 0, 0.44);\n }\n}\n\n.yt-bundleBuilder-quantity-selector-container--visible {\n position: absolute;\n background-color: "#e7e7e7";\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: transform 0.3s ease;\n transform: translateX(-100%); /* Start off-screen to the left */\n\n &.visible {\n transform: translateX(0); /* Slide in from the left */\n }\n}\n\n.yt-bundleBuilder-product-card_add-to-bundle-button--added {\n font-weight: 600;\n width: 100%;\n cursor: pointer;\n border: none;\n padding: 0;\n height: 40px;\n position: relative;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.3s ease, opacity 0.3s ease;\n &.shifted {\n transform: translateX(100%);\n opacity: 0;\n }\n justify-content: space-between;\n &:disabled {\n cursor: not-allowed;\n background-color: #e7e7e7;\n color: rgba(0, 0, 0, 0.44);\n }\n}\n\n.yt-bundleBuilder-product-card_added-button-text {\n flex: 1;\n text-align: center;\n font-size: 14px;\n background-color: #747474;\n color: #fff;\n padding: 10px 0;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: default;\n}\n\n.yt-bundleBuilder-product-card_added-button-text {\n width: 100%;\n background-color: #747474;\n display: flex;\n align-items: center;\n justify-content: center;\n border-left: 1px solid #fff;\n height: 100%;\n cursor: pointer;\n}\n\n.yt-bundleBuilder-product-card_add-to-bundle-button--disabled {\n font-weight: 600;\n width: 100%;\n cursor: pointer;\n border: none;\n padding: 0;\n height: 40px;\n position: relative;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.3s ease, opacity 0.3s ease;\n &.shifted {\n transform: translateX(100%);\n opacity: 0;\n }\n\n &:disabled {\n cursor: not-allowed;\n background-color: #e7e7e7;\n color: rgba(0, 0, 0, 0.44);\n }\n}\n\n.yt-bundleBuilder-quantity-selector-container {\n display: flex;\n flex-direction: row;\n height: 100%;\n background-color: #e7e7e7;\n width: 100%;\n font-weight: 600;\n}\n\n.yt-bundleBuilder-quantity-selector_quantity {\n display: flex;\n align-items: center;\n justify-content: center;\n border: 0;\n width: 100%;\n font-size: 14px;\n}\n\n.yt-bundleBuilder-products-display {\n font-size: 20px;\n width: 100%;\n}\n\n.yt-bundleBuilder-header-container{\n z-index: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 20px;\n width: 90%;\n max-width: 1000px;\n}\n\n.bundle-builder-product-container {\n display: flex;\n flex-direction: column;\n width: 280px;\n row-gap: 8px;\n justify-content: space-between;\n cursor: pointer;\n transition: transform 0.6s ease, box-shadow 0.6s ease;\n overflow: hidden;\n -webkit-tap-highlight-color: transparent; /* from inline style */\n}\n\n/* Hover/scale effect */\n.bundle-builder-product-container:hover {\n transform: scale(1.01);\n}\n\n.bundle-builder-product-container:active {\n transform: scale(1);\n}\n\n/* Optional shadows depending on "shadowType" */\n.bundle-builder-product-container.shadow-none {\n box-shadow: none;\n}\n\n.bundle-builder-product-container.shadow-spread {\n box-shadow: 8px 8px 8px -6px #0000004d;\n}\n\n.bundle-builder-product-container.shadow-no-spread {\n box-shadow: 6px 6px 0px -1px #00000033;\n}\n\n.yt-bundleProductModal-modal-overlay{\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483644;\n\n}\n/* bundleProductDetailsModal.style.css */\n\n.yt-bundleProductModal-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483644;\n}\n\n.yt-bundleProductModal-modal-content {\n background-color: white;\n box-shadow: 3px 6.01px 25.69px 0px rgba(0, 0, 0, 0.25);\n overflow-y: auto;\n scrollbar-width: none;\n}\n\n.yt-bundleProductModal-modal-content.small-screen {\n width: 100%;\n height: 100%;\n padding: 20px;\n border-radius: 0;\n}\n\n.yt-bundleProductModal-modal-content.large-screen {\n padding: 15px;\n border-radius: 16.5px;\n max-width: min(1200px, 70%);\n max-height: 80vh;\n}\n\n.yt-bundleProductModal-selection-modal {\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n z-index: 2147483644;\n background-color: white;\n overflow-y: auto;\n}\n\n.yt-bundleProductModal-modal-close-button {\n position: absolute;\n top: 0;\n right: 0;\n cursor: pointer;\n z-index: 1000;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border: none;\n background: none;\n}\n\n.yt-bundleProductModal-modal-close-button svg {\n color: #000;\n font-size: 25px;\n filter: drop-shadow(0 0 8px white) drop-shadow(0 0 5px white);\n}\n\n.yt-bundleProductModal-selection-modal.large-screen {\n display: flex;\n flex-direction: row;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen {\n flex-direction: column;\n}\n\n.yt-bundleProductModal-modal-image-section {\n width: 50%;\n height: fit-content;\n}\n.yt-bundleProductModal-modal-image-section.small-screen {\n width: 100%;\n height: fit-content;\n}\n\n.yt-bundleProductModal-selection-modal.large-screen .yt-bundleProductModal-modal-image-section {\n width: 50%;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-image-section {\n width: 100%;\n position: relative;\n justify-content: center;\n}\n\n.yt-bundleProductModal-modal-main-image {\n width: fit-content;\n object-fit: cover;\n aspect-ratio: 1 / 1 !important;\n cursor: zoom-in;\n border-radius: 8px;\n border: 1px solid lightgray;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-main-image {\n width: inherit;\n height: inherit;\n object-fit: cover;\n}\n\n.yt-bundleProductModal-modal-main-image:hover {\n cursor: zoom-in;\n}\n\n.yt-bundleProductModal-modal-image-gallery {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 10px;\n overflow-y: auto;\n margin-top: 10px;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-image-gallery {\n display: flex;\n flex-direction: row;\n overflow-x: auto;\n padding: 5px 20px;\n gap: 5px;\n scrollbar-width: none;\n}\n\n.yt-bundleProductModal-modal-image-gallery img {\n width: 90px;\n height: 90px;\n cursor: pointer;\n opacity: 0.6;\n transition: opacity 0.3s ease;\n border-radius: 7px;\n border: 1px solid lightgray;\n object-fit: cover;\n}\n\n.yt-bundleProductModal-modal-image-gallery img.active,\n.yt-bundleProductModal-modal-image-gallery img:hover {\n opacity: 1;\n}\n\n.yt-bundleProductModal-modal-details-section {\n width: 50%;\n padding-left: 20px;\n max-height: 70vh;\n scrollbar-width: none;\n overflow-y: auto;\n display: flex;\n flex-direction: column;\n}\n\n.yt-bundleProductModal-selection-modal.small-screen .yt-bundleProductModal-modal-details-section {\n padding: 0 30px;\n margin: 15px 0;\n padding-bottom: 120px;\n width: 100%;\n}\n.yt-bundleProductModal-selection-modal.yt-variant-selection-modal.small-screen{\n height: 500px;\n}\n\n.yt-bundleProductModal-modal-details-section.small-screen {\n padding: 5px 0px 10px 10px !important;\n margin: 15px 0;\n padding-bottom: 120px;\n width: 100%;\n height: fit-content !important;\n}\n\n.yt-bundleProductModal-modal-details-section h2 {\n text-align: left !important;\n margin-bottom: 10px;\n line-height: normal !important;\n margin-top: 0;\n}\n\n.yt-bundleProductModal-modal-price-and-cta {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\n\n.yt-bundleProductModal-modal-separator {\n height: 10px;\n min-height: 10px;\n border: none;\n background-color: #d9d9d96b;\n margin: 20px 0 10px 0;\n display: block !important;\n}\n\n.yt-bundleProductModal-modal-phone-close-button {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 9999999999;\n background-color: #ffffff;\n padding: 4px;\n border-radius: 50%;\n border: 1px solid lightgray;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-bundleProductModal-modal-phone-close-button svg {\n height: 22px;\n width: 22px;\n padding: 4px;\n color: black;\n}\n\n.yt-bundleProductModal-modal-phone-bottom-bar {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 12px 15px;\n border-top: 1px solid lightgray;\n box-shadow: 0px -4px 5px rgba(0, 0, 0, 0.1);\n background-color: #fff;\n display: flex;\n flex-direction: column;\n gap: 2px;\n z-index: 9999999999;\n}\n\n.yt-bundleProductModal-modal-select-input {\n appearance: none;\n border: none;\n background: transparent;\n font-weight: bold;\n color: #000;\n cursor: pointer;\n padding-right: 20px;\n position: absolute;\n right: 0;\n top: 0;\n bottom: 0;\n width: 100%;\n opacity: 0;\n z-index: 2;\n}\n\n.yt-bundleProductModal-modal-price {\n font-size: 20px;\n font-weight: 600;\n color: #000;\n text-align: center;\n line-height: normal;\n}\n\n.yt-bundleProductModal-modal-atc-wrapper {\n width: 80%;\n}\n\n.yt-bundleProductModal-modal-atc-button {\n text-transform: uppercase;\n font-weight: 800;\n width: 100%;\n cursor: pointer;\n border: none;\n min-height: 40px;\n padding: 0 15px;\n position: relative;\n overflow: hidden;\n}\n\n/* Review rating styles */\n.yt-bundleProductModal-modal-rating {\n display: flex;\n align-items: center;\n justify-content: start;\n font-size: 14px;\n color: #333;\n}\n\n.yt-bundleProductModal-modal-rating-and-review-count {\n display: flex;\n align-items: center;\n justify-content: start;\n font-size: 14px;\n color: #333;\n margin-left: 10px;\n}\n\n.yt-bundleProductModal-modal-rating-and-review-count .yt-bundleProductModal-modal-rating-only {\n display: flex;\n align-items: center;\n justify-content: start;\n font-size: 14px;\n color: #333;\n}\n@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 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 text-align: left;\n overflow-wrap: break-word;\n}\n.bundle-builder-tracker-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n width: 100%;\n align-items: center;\n text-align: center;\n row-gap: 4px;\n justify-content: space-between; \n padding: 4px 10px; \n}\n\n.bundle-builder-tracker-container.mobile {\n padding: 0;\n min-height: 30px;\n}\n\n.yt-bundleBuilderTracker-mobile-remaining{\n color: #000;\n background-color: #f5f5f5;\n padding: 10px;\n font-weight: 600;\n font-size: 18px;\n width: 100%;\n height: 80px;\n margin: 10px 0px;\n border: 1px solid #d3d3d3;\n}\n\n.yt-bundleBuilderTracker-tier-progress-container{\n width: 100%;\n}\n\n.yt-bundleBuilderTracker-tier-progress-text{\n width: 100%;\n font-size: 14px;\n background-color: #e0e0e0;\n border-radius: 0;\n}\n\n.yt-bundleBuilderTracker-progress-bar-background{\n width: 100%;\n background-color: #e0e0e0;\n height: 6px;\n border-radius: 0;\n}\n\n.bundle-builder-tracker-progress,\n.yt-bundleBuilderTracker-progress-bar-fill {\n display: block;\n height: 100%;\n transition: width 0.3s ease-in-out, background-color 0.5s ease-in-out;\n}\n\n.yt-bundleBuilderTracker-quantity-badge {\n position: absolute;\n top: 5px;\n left: 5px;\n background-color: rgba(255, 255, 255, 0.7);\n color: black;\n padding: 2px 5px;\n font-size: 14px;\n border-radius: var(--corner-radius);\n}\n\n\n/* component.css */\n.yt-bundleBuilderTracker-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n padding: 4px 10px;\n width: 100%;\n align-items: center;\n text-align: center;\n row-gap: 4px;\n justify-content: space-between;\n}\n\n.yt-bundleBuilderTracker-container.mobile {\n padding: 0px;\n min-height: 30px;\n}\n\n.yt-bundleBuilderTracker-offer-tier-tag {\n position: absolute;\n top: -20px;\n padding: 5px 10px;\n}\n\n@media (max-width: 768px) {\n .yt-bundleBuilderTracker-offer-tier-tag {\n font-size: 12px;\n left: 0;\n }\n}\n\n.yt-bundleBuilderTracker-mobile-remaining {\n color: #000;\n background-color: #f5f5f5;\n padding: 10px;\n font-weight: 600;\n font-size: 18px;\n width: 100%;\n height: 80px;\n margin: 10px 0px;\n border: 1px solid #d3d3d3;\n}\n\n.yt-bundleBuilderTracker-tier-progress-container {\n width: 100%;\n}\n\n.yt-bundleBuilderTracker-tier-progress-text {\n width: 100%;\n font-size: 14px;\n background-color: #e0e0e0;\n border-radius: 0;\n}\n\n.yt-bundleBuilderTracker-progress-bar-background {\n width: 100%;\n background-color: #e0e0e0;\n height: 6px;\n border-radius: 0;\n}\n\n.yt-bundleBuilderTracker-progress-bar-fill {\n display: block;\n height: 100%;\n transition: width 0.3s ease-in-out, background-color 0.5s ease-in-out;\n}\n\n.yt-bundleBuilderTracker-product-list-wrapper {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n overflow-x: auto;\n}\n\n.yt-bundleBuilderTracker-summary-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n column-gap: 15px;\n justify-content: center;\n row-gap: 15px;\n padding: 0px 5px;\n}\n\n.yt-bundleBuilderTracker-summary-container.mobile {\n width: 100%;\n}\n\n.yt-bundleBuilderTracker-item-wrapper {\n position: relative;\n margin-top: 8px;\n margin-right: 5px;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-item-image-box {\n position: relative;\n border: 1px solid #d3d3d3;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.yt-bundleBuilderTracker-quantity-badge {\n position: absolute;\n top: 5px;\n left: 5px;\n background-color: rgba(255, 255, 255, 0.7);\n color: black;\n padding: 2px 5px;\n font-size: 14px;\n}\n\n.yt-bundleBuilderTracker-remove-button {\n position: absolute;\n top: -8px;\n right: -8px;\n background-color: black;\n color: white !important;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n border-radius: 2px;\n}\n\n.yt-bundleBuilderTracker-detailed-item-container {\n height: 85px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 5px 15px 0 5px;\n border: 1px solid #d3d3d3;\n column-gap: 5px;\n max-width: 220px;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-detailed-image {\n position: relative;\n height: 75px;\n width: 75px;\n border: 1px solid #d3d3d3;\n border-radius: 5px;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.yt-bundleBuilderTracker-badge {\n position: absolute;\n top: 5px;\n left: 5px;\n background-color: rgba(255, 255, 255, 0.7);\n color: black;\n padding: 2px 5px;\n border-radius: 2px;\n font-size: 14px;\n}\n\n.yt-bundleBuilderTracker-info-block {\n display: flex;\n flex-direction: column;\n row-gap: 8px;\n justify-content: flex-start;\n align-items: flex-start;\n text-align: left;\n}\n\n.yt-bundleBuilderTracker-product-title {\n font-size: 14px;\n font-weight: 500;\n line-height: normal;\n}\n\n.yt-bundleBuilderTracker-product-price {\n font-size: 13px;\n line-height: normal;\n}\n\n.yt-bundleBuilderTracker-remove-link {\n color: red;\n font-size: 10px;\n display: flex;\n flex-direction: row;\n column-gap: 3px;\n align-items: center;\n cursor: pointer;\n}\n\n.yt-bundleBuilderTracker-placeholder-box {\n border: 1px solid #d3d3d3;\n margin-top: 10px;\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n flex-shrink: 0;\n}\n\n.yt-bundleBuilderTracker-summary-info {\n display: flex;\n flex-direction: column;\n font-size: 18px;\n align-items: center;\n justify-content: center;\n}\n\n.yt-bundleBuilderTracker-subtotal-label {\n line-height: normal;\n color: black;\n align-self: center;\n justify-content: center;\n display: flex;\n font-weight: 700;\n font-size: 16px;\n}\n\n.yt-bundleBuilderTracker-save-label {\n font-size: 12px;\n color: #f6f8f7;\n padding: 4px 8px;\n background-color: #d3122a;\n border-radius: 2px;\n font-weight: 700;\n}\n\n@media (max-width: 600px) {\n .yt-bundleBuilderTracker-save-label {\n display: none;\n }\n}\n\n.yt-bundleBuilderTracker-subtotal-row {\n display: flex;\n flex-direction: row;\n column-gap: 5px;\n font-size: 16px;\n margin: 5px 0px;\n align-items: flex-end;\n}\n\n.yt-bundleBuilderTracker-total_price {\n font-weight: bold;\n text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-summary_price {\n color: #a0a0a0;\n text-decoration-line: line-through;\n font-size: 14px;\n}\n\n.yt-bundleBuilderTracker-checkout-button {\n padding: 5px 20px;\n height: 42px;\n outline: none;\n width: fit-content;\n min-width: 200px;\n transition: background-color 0.3s ease, box-shadow 0.3s ease;\n}\n\n.yt-bundleBuilderTracker-checkout-button:hover {\n background-color: var(--ctaHoverBackgroundColor, #f4f4f6);\n color: var(--ctaHoverTextColor, #000);\n}\n\n@media (max-width: 768px) {\n .yt-bundleBuilderTracker-checkout-button {\n width: 100%;\n padding: 5px 5px;\n margin-inline: 0px;\n }\n}\n\n.yt-bundleBuilderTracker-checkout-text {\n display: flex;\n flex-direction: row;\n column-gap: 6px;\n align-items: center;\n justify-content: center;\n font-weight: 650;\n}\n\n.yt-bundleBuilderTracker-product-list-tracker-item {\n position: relative;\n margin-top: 8px;\n margin-right: 5px;\n border: 1px solid #d3d3d3;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-detailed-product-item {\n height: 85px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 5px 15px 0 5px;\n border: 1px solid #d3d3d3;\n column-gap: 5px;\n max-width: 220px;\n box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n.yt-bundleBuilderTracker-plus-icon-container {\n justify-content: center;\n align-items: center;\n margin: 0px 6px;\n text-align: center;\n display: flex;\n flex-shrink: 0;\n}\n.yt-bundleProductModal-close-button {\n position: absolute;\n top: 0px;\n right: 0px;\n cursor: pointer;\n z-index: 1000;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border: none;\n background: none;\n}\n\n.yt-bundleProductModal-close-button svg {\n color: #000;\n font-size: 25px;\n filter: drop-shadow(0 0 8px white) drop-shadow(0 0 5px white);\n}\n\n@media (max-width: 540px) {\n .yt-bundleProductModal-close-button {\n top: 5px;\n right: 5px;\n }\n}\n\n.yt-bundleProductModal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 2147483644;\n}\n\n.yt-bundleProductModal-content {\n background-color: white;\n box-shadow: 3px 6.01px 25.69px 0px rgba(0, 0, 0, 0.25);\n overflow-y: auto;\n scrollbar-width: none;\n}\n\n.yt-bundleProductModal-content.small-screen {\n padding: 20px;\n border-radius: 0;\n width: 100%;\n height: 100%;\n}\n\n.yt-bundleProductModal-content.large-screen {\n padding: 15px;\n border-radius: 16.5px;\n max-width: min(1200px, 70%);\n max-height: 80vh;\n}\n\n.yt-product-selection-modal {\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n}\n\n.yt-variant-selection-modal {\n position: relative;\n z-index: 2147483644;\n background-color: white;\n overflow-y: auto;\n}\n\n.yt-variant-selection-modal .details-section h2 {\n text-align: left !important;\n margin-bottom: 10px;\n line-height: normal !important;\n}\n\n.yt-variant-selection-modal .details-section .price {\n font-size: 1.7em;\n font-weight: bold;\n margin-bottom: 10px;\n}\n\n.yt-variant-selection-modal .details-section .add-to-bundle {\n margin-top: 20px;\n padding: 10px 20px;\n background-color: #4caf50;\n color: white;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 1em;\n transition: background-color 0.3s ease;\n}\n\n.yt-variant-selection-modal .details-section .add-to-bundle:hover {\n background-color: #45a049;\n}\n\n.yt-variant-selection-modal.small-screen {\n flex-direction: column;\n}\n\n.yt-variant-selection-modal.small-screen .yt-bundleProductModal-image-section {\n justify-content: center;\n position: relative;\n width: 100%;\n}\n\n.yt-variant-selection-modal.small-screen .yt-bundleProductModal-image-section .yt-bundleProductModal-main-image {\n width: inherit;\n height: inherit;\n object-fit: cover;\n aspect-ratio: 1 / 1 !important;\n}\n\n.yt-bundleProductModal-main-image:hover {\n cursor: zoom-in;\n}\n\n.yt-variant-selection-modal.large-screen {\n display: flex;\n flex-direction: row;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-section {\n width: 50%;\n height: fit-content;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-section .yt-bundleProductModal-main-image {\n width: fit-content;\n object-fit: cover;\n aspect-ratio: 1 / 1 !important;\n cursor: zoom-in;\n border-radius: 8px;\n border: 1px solid lightgray;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery {\n display: flex;\n flex-wrap: nowrap;\n gap: 10px;\n overflow-x: auto;\n margin-top: 10px;\n scrollbar-width: none;\n}\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery::-webkit-scrollbar {\n display: none;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery img {\n width: 90px;\n height: 90px;\n cursor: pointer;\n opacity: 0.6;\n transition: opacity 0.3s ease;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery img.active,\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-image-gallery img:hover {\n opacity: 1;\n}\n\n.yt-variant-selection-modal.large-screen .yt-bundleProductModal-details-section {\n width: 50%;\n padding-left: 20px;\n}\n\n.yt-bundleProductModal-select-input {\n width: 50%;\n padding: 5px;\n margin-bottom: 20px;\n border: 1px solid #ccc;\n border-radius: 4px;\n font-size: 1em;\n justify-content: center;\n align-items: center;\n}\n\n.yt-bundleProductModal-price-and-cta {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\n\n.yt-bundleProductModal-atc-wrapper {\n width: 80%;\n}\n\n.yt-bundleProductModal-atc-button {\n text-transform: uppercase;\n font-weight: 800;\n width: 100%;\n cursor: pointer;\n border: none;\n min-height: 40px;\n padding: 0px 15px;\n position: relative;\n overflow: hidden;\n}\n\n.yt-bundleProductModal-separator {\n height: 10px;\n min-height: 10px;\n border: none;\n background-color: #d9d9d96b;\n margin: 20px 0 10px 0;\n display: block !important;\n}\n\n.yt-description-content {\n scroll-behavior: smooth;\n}\n\n.yt-bundleProductModal-phone-close-button {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 9999999999;\n background-color: #ffffff;\n padding: 4px;\n border-radius: 50%;\n border: 1px solid lightgray;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.yt-bundleProductModal-image-indicator {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n margin: 0 3px;\n cursor: pointer;\n backdrop-filter: blur(10px);\n}\n\n.yt-bundleProductModal-image-gallery::-webkit-scrollbar {\n display: none;\n}\n';export{Gg as Bundle,Qg as BundleLoader,mu as Cart,fa as CouponFrame,Ue as Nudge,Xe as SpinnerWheel,qg as ytBundleShadowCss};
|
|
@@ -3,6 +3,7 @@ import { ProductDetails, Customizations } from "../Bundle";
|
|
|
3
3
|
import "./bundleProductDetailsModal.style.css";
|
|
4
4
|
import "../bundle.scss";
|
|
5
5
|
import "../BundleBuilder/bundleBuilder.style.css";
|
|
6
|
+
type ShadowRoot = globalThis.ShadowRoot;
|
|
6
7
|
type BundleProductDetailsModalProps = {
|
|
7
8
|
handleAddToBundle: (variantId: string, product: ProductDetails, quantity: number) => void;
|
|
8
9
|
selectedProducts: {
|
|
@@ -24,6 +25,7 @@ type BundleProductDetailsModalProps = {
|
|
|
24
25
|
averageRating: number;
|
|
25
26
|
ratingCount: number;
|
|
26
27
|
};
|
|
28
|
+
shadowRoot?: ShadowRoot | null;
|
|
27
29
|
};
|
|
28
30
|
declare const BundleProductDetailsModal: React.ForwardRefExoticComponent<BundleProductDetailsModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
31
|
export default BundleProductDetailsModal;
|