"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[41],{81:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.loadLoox=void 0;const a=i(32);t.loadLoox=function(e,t){const i=Object.assign({src:`https://loox.io/widget/loox.js?shop=${e}.myshopify.com`,id:"loox",anonymous:!1},t);(0,a.loadScriptWithDelay)(i)}},125:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureIcon=void 0;const n=i(0),s=(i(1),i(2)),r=a(i(80)),{wrapperIconSvg:l}=r.default,o=i(15),d={Blue:o.BlendMode,"Blue Flashing":o.PulseMode,Purple:o.LockMode,"Red Flashing":o.FlashingRed,Red:o.SolidRedLights,Globe:o.Globe,Lightning:o.Lightning,Lightning2:o.Lightning2,Charge:o.Charge,Drop:o.Drop,Clean:o.Clean,Leaf:o.Leaf,Diamond:o.Diamond,Mountain:o.Mountain,Pocket:o.Pocket,Snowflake:o.Snowflake,Fabric:o.Fabric,Dressing:o.Dressing,Cafe:o.Cafe,Milkshake:o.Milkshake,Protein:o.Protein,HappyHour:o.HappyHour,Fruit:o.Fruit,DairyFree:o.DairyFree,EssentialOils:o.EssentialOils,GlutenFree:o.GlutenFree,NoArtificialIngredients:o.NoArtificialIngredients,NonGMO:o.NonGMO,NoPreservatives:o.NoPreservatives,NoTransFats:o.NoTransFats,NutFree:o.NutFree,Organic:o.Organic,Paleo:o.Paleo,Raw:o.Raw,RealFood:o.RealFood,SoyFree:o.SoyFree,SustainablePackaging:o.SustainablePackaging,Vegan:o.Vegan,Vegetarian:o.Vegetarian,CheckMark:o.CheckMark,NoArtificialSugar:o.NoArtificialSugar,Zippered:o.Zippered,Smoothie:o.Smoothie,Measurement:o.Measurement,Install:o.Install,IncreasedCapacity:o.IncreasedCapacity,IncreasedSize:o.IncreasedSize,GlutenFree_bundleSlider:o.GlutenFreeBundleSlider,NonGMO_bundleSlider:o.NonGMOBundleSlider,NoArtificialIngredients_bundleSlider:o.NoArtificialIngredientsBundleSlider,Vegan_bundleSlider:o.VeganBundleSlider,CheckMark_bundleSlider:o.CheckMarkBundleSlider,NoArtificialSugar_bundleSlider:o.NoArtificialSugarBundleSlider,Lightning2_bundleSlider:o.Lightning2BundleSlider,Fruit_bundleSlider:o.FruitBundleSlider,Protein_bundleSlider:o.ProteinBundleSlider,HappyHour_bundleSlider:o.HappyHourBundleSlider,Cafe_bundleSlider:o.CafeBundleSlider,Milkshake_bundleSlider:o.MilkshakeBundleSlider,Dressing_bundleSlider:o.DressingBundleSlider,Diamond_bundleSlider:o.DiamondBundleSlider,Snowflake_bundleSlider:o.SnowflakeBundleSlider,Mountain_bundleSlider:o.MountainBundleSlider,Fabric_bundleSlider:o.FabricBundleSlider,Pocket_bundleSlider:o.PocketBundleSlider,Install_bundleSlider:o.InstallBundleSlider,Clean_bundleSlider:o.CleanBundleSlider,Measurement_bundleSlider:o.MeasurementBundleSlider,IncreasedCapacity_bundleSlider:o.IncreasedCapacityBundleSlider,Globe_bundleSlider_Blendjet2:o.GlobeBundleSliderBlendjet2,Lightning_bundleSlider_Blendjet2:o.LightningBundleSliderBlendjet2,Leaf_bundleSlider_Blendjet2:o.LeafBundleSliderBlendjet2,Charge_bundleSlider_Blendjet2:o.ChargeBundleSliderBlenjet2,Drop_bundleSlider_Blendjet2:o.DropBundleSliderBlendjet2};t.FeatureIcon=function({name:e,isIntroducingSection:t=!1}){return(0,n.jsx)("div",Object.assign({className:(0,s.cx)(l,"svg-container "+(t?"svg-container-introducing":""))},{children:d[e]}))}},194:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Content=void 0;const n=i(0),s=(i(1),a(i(435))),{wrapperContent:r,wrapperContentText:l,wrapperContentTextBlock:o,wrapperContentList:d,wrapperContentListSubheading:c,wrapperContentListItems:u,wrapperContentListPlanDetails:p,wrapperContentWhyChoose:v,wrapperContentWhyChooseSupport:h,wrapperContentWhyChooseSupportIcon:m,wrapperContentWhyChooseFees:g,wrapperContentWhyChooseFeesIcon:j}=s.default;t.Content=function(){return(0,n.jsxs)("div",Object.assign({className:r},{children:[(0,n.jsx)("div",Object.assign({className:l},{children:(0,n.jsx)("div",Object.assign({className:o},{children:"Keep your product protected from accidents right away, plus full coverage after manufacturer warranties expire."}))})),(0,n.jsxs)("div",Object.assign({className:d},{children:[(0,n.jsx)("div",Object.assign({className:c},{children:"This plan covers:"})),(0,n.jsxs)("ul",Object.assign({className:u},{children:[(0,n.jsx)("li",{children:"Fast and free product replacements"}),(0,n.jsx)("li",{children:"Accidental damage such as breaks, drops, and spills"}),(0,n.jsx)("li",{children:"Extended malfunction and wear-and-tear protection"})]})),(0,n.jsx)("div",Object.assign({className:p},{children:(0,n.jsx)("a",Object.assign({href:"https://customers.extend.com/plan_details/10003-blendjet-adh-replace-1y",target:"_blank"},{children:"Plan Details"}))}))]})),(0,n.jsxs)("div",Object.assign({className:v},{children:[(0,n.jsxs)("div",Object.assign({className:h},{children:[(0,n.jsx)("img",{className:m,alt:"heart icon",width:"26",height:"24",src:"/fast-image/blendjet/heart.svg"}),"Friendly support 24/7"]})),(0,n.jsxs)("div",Object.assign({className:g},{children:[(0,n.jsx)("img",{className:j,alt:"no cost icon",src:"/fast-image/blendjet/free.svg",width:"22",height:"22"}),"No fees. No deductibles."]}))]}))]}))}},193:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SvgWrapper=void 0;const n=i(0),s=(i(1),a(i(434))),{wrapperSvg:r,wrapperSvgLogoContent:l,wrapperSvgLogoContentLogo:o,wrapperSvgLogoContentPlus:d,wrapperSvgLogoContentMerchantLogo:c}=s.default;t.SvgWrapper=function(){return(0,n.jsx)("div",Object.assign({className:r},{children:(0,n.jsxs)("div",Object.assign({className:l},{children:[(0,n.jsx)("img",{className:o,alt:"extend logo",width:"53",height:"55",src:"/fast-image/blendjet/extend-logo.svg"}),(0,n.jsx)("img",{className:d,alt:"plus icon",width:"14",height:"14",src:"/fast-image/blendjet/plus-icon.svg"}),(0,n.jsx)("img",{className:c,alt:"blendjet logo",width:"512",height:"95",src:"/fast-image/blendjet/logo-5b983c74-8551-478b-ba90-fc531933ca7c.jpg"}),(0,n.jsx)("span",Object.assign({class:"is-sr-only"},{children:"Extend plus BlendJet"}))]}))}))}},433:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AboutExtend=void 0;const a=i(0),n=i(1),s=i(193),r=i(194);t.AboutExtend=function(){return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(s.SvgWrapper,{}),(0,a.jsx)(r.Content,{})]})}},11:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QuantitySelector=void 0;const n=i(0),s=(i(1),i(2)),r=i(5),l=a(i(10)),{wrapper:o,wrapperLargeSize:d,wrapperSmallSize:c,wrapperMediumSize:u,wrapperInput:p,wrapperDecrementBtn:v,wrapperIncrementBtn:h}=l.default;t.QuantitySelector=function({quantity:e=1,decrementQuantity:t,incrementQuantity:i,className:a="",height:l="large",isInstantCartItem:m=!1}){return(0,n.jsxs)("div",Object.assign({className:(0,s.cx)(o,"large"===l?d:"medium"===l?u:c,a)},{children:[(0,n.jsx)("button",Object.assign({className:(0,s.cx)(v,"switch"),onClick:t,disabled:m},{children:(0,n.jsx)(r.Icons.MinusIcon,{})})),(0,n.jsx)("input",{className:p,value:e,readOnly:!0,"aria-label":"Quantity"}),(0,n.jsx)("button",Object.assign({className:(0,s.cx)(h,"switch"),onClick:i,disabled:m},{children:(0,n.jsx)(r.Icons.PlusIcon,{})}))]}))}},680:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnimatedImage=void 0;const a=i(0),n=i(3);t.AnimatedImage=({images:e,onClick:t,order:i})=>{const[s,r]=(0,n.useState)(0);return(0,n.useEffect)((()=>{let t;const a=setTimeout((()=>{t=setInterval((()=>{r((t=>(t+1)%e.length))}),1e3*e.length)}),1e3*i);return()=>{clearTimeout(a),clearInterval(t)}}),[]),(0,a.jsx)("img",Object.assign({onClick:t},e[s],{loading:"eager"}))}},94:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BundleButton=void 0;const n=i(0),s=i(1),r=i(2),l=a(i(442)),{button:o,buttonLabel:d,buttonPrice:c,buttonSelected:u,buttonDisabled:p}=l.default;t.BundleButton=({onClick:e,label:t="",price:i,isProductSelected:a=!1,className:v="",disabled:h=!1})=>(0,n.jsxs)("button",Object.assign({disabled:h,onClick:e,className:(0,r.cx)(o,a&&u,v&&l.default[v],h&&p)},{children:[(0,n.jsx)("span",Object.assign({className:(0,r.cx)("no-translate",d)},{children:t})),i&&i.length>0?(0,n.jsx)(s.Fragment,{children:(0,n.jsxs)("span",Object.assign({className:(0,r.cx)("no-translate",c)},{children:[" — ",i," "]}))}):null]}))},220:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BundleReviews=void 0;const n=i(0),s=(i(1),i(3)),r=i(2),l=a(i(460)),{reviews:o,bundleSliderReviews:d}=l.default,c=i(81);t.BundleReviews=function({id:e}){return(0,s.useEffect)((()=>{console.log("BUNDLE LOOX INIT FOR ID:",e),(0,c.loadLoox)("blendjet")}),[e]),(0,n.jsx)("div",Object.assign({id:"reviews",class:(0,r.cx)(d,o)},{children:(0,n.jsx)("div",{id:"looxReviews",class:"loox-reviews","data-product-id":e})}))}},221:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CartProductPreview=void 0;const n=i(0),s=a(i(461)),{wrapper:r}=s.default;t.CartProductPreview=({details:e})=>(0,n.jsx)("div",Object.assign({className:r},{children:(0,n.jsx)("img",{src:e.image.static.src,alt:""})}))},76:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CloseButton=void 0;const n=i(0),s=i(2),r=a(i(437)),{wrapper:l}=r.default;t.CloseButton=({onClick:e,className:t,isBlue:i})=>(0,n.jsx)("div",{className:(0,s.cx)(l,t),style:{"--closeButtonColor":i?"#363a71":"#fff"},onClick:e})},209:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConfirmationModal=void 0;const n=i(0),s=i(1),r=a(i(445)),{backdrop:l,backdropModal:o,backdropModalContainer:d,backdropModalContainerDescription:c,backdropModalContainerButtons:u,backdropModalContainerButtonsYes:p,backdropModalContainerButtonsNo:v,backdropHidden:h,backdropHiddenModal:m,backdropHiddenModalContainer:g}=r.default;t.ConfirmationModal=({closeModal:e,isOpen:t,labels:i,additionalAcceptAction:a,isRandomJPConfirmation:r,isResetAndRandomJPConfirmation:j})=>(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("div",{className:t?l:h}),(0,n.jsx)("div",Object.assign({className:t?o:m},{children:(0,n.jsxs)("div",Object.assign({className:t?d:g},{children:[(0,n.jsx)("div",Object.assign({className:c},{children:j?i.confirmationRandomResetModalTitle:r?i.confirmationRandomModalTitle:i.confirmationModalTitle})),(0,n.jsxs)("div",Object.assign({className:u},{children:[(0,n.jsx)("div",Object.assign({className:p,onClick:()=>{e(!0),a&&a()}},{children:i.buttons.yes})),(0,n.jsx)("div",Object.assign({className:v,onClick:()=>e(!1)},{children:i.buttons.no}))]}))]}))}))]})},213:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;const n=i(0),s=i(3),r=i(2),l=i(214),o=i(449),d=a(i(452)),c=i(6),{container:u,containerHolder:p,containerHolderAnimation:v,containerMask:h,containerMaskDone:m,containerMaskAnimation:g,containerText:j,containerTextDone:b,containerTextAnimation:x,containerBottomText:f,containerBottomTextDone:C,containerBottomTextAnimation:S}=d.default;t.Circle=e=>{const[t,i]=(0,s.useState)(e.currentValue),[a,d]=(0,s.useState)(!1),[y,O]=(0,s.useState)(!0),{inCircleText:w,bottomText:_,currentValue:P,index:M}=e,k=Number(w),N=k===P,I=P>=k;return(0,c.useEffect)((()=>{d(P>t),i(P),a&&O(!1),[12,24,36].includes(P)&&!y&&a&&e.boom.play()}),[P,t]),(0,n.jsxs)("div",Object.assign({className:u},{children:[(0,n.jsxs)("div",Object.assign({className:(0,r.cx)(p,a&&N&&v)},{children:[(0,n.jsx)("div",{style:{height:(0,o.calculateCircleMaskHeight)({currentValue:P,inCircleValue:k,index:M,canAnimationBe:N})},className:(0,r.cx)(h,I&&m,a&&N&&g)}),(0,n.jsx)("p",Object.assign({className:(0,r.cx)(j,I&&b,a&&N&&x)},{children:w}))]})),!y&&(N||I)&&(0,n.jsx)(l.Star,{}),(0,n.jsx)("p",Object.assign({className:(0,r.cx)(f,I&&C,a&&N&&S)},{children:_}))]}))}},673:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Line=void 0;const a=i(0);t.Line=({percentage:e,amount:t,unWantedIndexes:i})=>{const n=e/100*200,s=n+1.75;return(0,a.jsxs)("svg",Object.assign({width:"200",height:"32",viewBox:"0 0 200 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,a.jsx)("line",{x1:"0",y1:"20",x2:"200",y2:"20",stroke:"#E2E3F6",strokeWidth:"2",strokeDasharray:"5 5"}),e>0&&(0,a.jsxs)("g",{children:[(0,a.jsx)("rect",{x:"0",y:"19",width:n,height:"2",fill:"#8DCD03"}),(0,a.jsxs)("g",Object.assign({opacity:i.includes(t)?0:1},{children:[(0,a.jsx)("circle",{cx:s,cy:"19",r:"12",fill:"#ffffff",stroke:"#8DCD03",strokeWidth:"2"}),(0,a.jsx)("text",Object.assign({x:s,y:"23",fontSize:"11",textAnchor:"middle",fill:"#2c2c77"},{children:t}))]}))]})]}))}},214:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Star=void 0;const n=i(0),s=i(2),r=a(i(451)),{container:l,containerHolder:o,containerStar:d}=r.default;t.Star=({})=>(0,n.jsx)("div",Object.assign({className:l},{children:(0,n.jsx)("div",Object.assign({className:(0,s.cx)(o)},{children:["350deg","230deg","120deg","30deg","0deg"].map(((e,t)=>(0,n.jsx)("div",{style:{rotate:e},className:d},t)))}))}))},212:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DiscountProgress=void 0;const n=i(0),s=i(449),r=a(i(450)),l=i(213),o=i(673),{container:d,containerHolder:c}=r.default;t.DiscountProgress=({keys:e,quantity:t,unWantedIndexes:i,boom:a})=>(0,n.jsxs)("div",Object.assign({className:d},{children:[(0,n.jsx)("div",Object.assign({className:c},{children:(0,n.jsx)(o.Line,{amount:t,percentage:(0,s.calculatePercentage)({amount:t}),unWantedIndexes:i})})),e.map(((e,i)=>(0,n.jsx)(l.Circle,Object.assign({boom:a,index:i,currentValue:t},e),i)))]}))},449:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateCircleMaskHeight=t.calculatePercentage=void 0,t.calculatePercentage=e=>{const{amount:t}=e;if(t<=11)return 0;if(t<=23){const e=t-12;return Math.floor(e/12*50)}if(t<=35){const e=t-24;return 50+Math.floor(e/12*50)}return 100},t.calculateCircleMaskHeight=e=>{const{currentValue:t,inCircleValue:i,canAnimationBe:a,index:n}=e;return t>i?"100%":0===n&&t<12?t/12*100+"%":1===n&&t>=12&&t<24?Math.abs(t-12)/12*100+"%":2===n&&t>=24&&t<36?Math.abs(t-24)/12*100+"%":a?"100%":"0%"}},669:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useModalContentCarousel=void 0;const a=i(3),n=i(2),s=["Strawberry Banana","Chocolate Peanut Butter Banana","Peanut Butter Power Breakfast","Blueberry Acai"];t.useModalContentCarousel=(e,t,i,r,l)=>{const[o,d]=(0,a.useState)(!1),[c,u]=(0,a.useState)(0),p=(0,a.useRef)(null),v=(0,a.useCallback)((()=>{var e;d(!0),null===(e=p.current)||void 0===e||e.scrollTo({top:0,behavior:"smooth"})}),[]),h=(0,a.useCallback)((()=>{d(!1)}),[]),m=(0,a.useCallback)((e=>{u(e)}),[]),[g,j]=(0,a.useState)("images"),b=e.reduce(((e,t)=>[...e,...t.details.varietyPackVariants.reduce(((e,t)=>[...e,...t.carouselMedia.filter((e=>"video"!==e.type))]),[])]),[]),x=e.reduce(((e,t)=>[...e,...t.details.varietyPackVariants.reduce(((e,t)=>[...e,{src:t.video,alt:"",type:"video"}]),[])]),[]),f=e.reduce(((e,t)=>[...e,...t.payload.map((e=>e.variant.cartImage)).filter((e=>!!e))]),[]),[C,S]=(0,a.useState)(void 0),[y,O]=(0,a.useState)(0),[w,_]=(0,a.useState)(0);(0,a.useEffect)((()=>{var i,a;const n=e.find((e=>e.details.varietyPackVariants.find((e=>e.cartImage.src===f[c].src)))),s=n?n.details.varietyPackVariants.findIndex((e=>e.cartImage.src===f[c].src)):0,r=x.findIndex((e=>e.src===x[c].src));t(null!==(a=null===(i=null==n?void 0:n.payload[0])||void 0===i?void 0:i.product.id)&&void 0!==a?a:""),S(n),_(s),O(r)}),[c]);const P=e.reduce(((e,{payload:t})=>[...e,...t]),[]),[M,k]=(0,a.useState)(P),N=M.some((e=>e.isSubscription)),[I,B]=(0,a.useState)(0);return(0,a.useEffect)((()=>{var e,t;const a=M.reduce(((e,t)=>e+t.quantity),0);if(a<12)return void B(0);const s=(0,n.lookupLocalPrice)(`${M[0].variant.id}${N?":subscription":""}`,i,N?(0,n.applyDiscount)(null!==(e=M[0].variant.price)&&void 0!==e?e:0,25):null!==(t=M[0].variant.price)&&void 0!==t?t:0);a>=36?B(Math.ceil(20*s)/100*a):a>=24?B(Math.ceil(15*s)/100*a):a>=12&&B(Math.ceil(10*s)/100*a)}),[M]),{isNutritionOpen:o,scrollContainer:p,currentCardIndex:c,slidesForImages:b,slidesForVideo:x,currentVideoIndex:y,currentSlider:g,currentImageIndex:w,varietyImages:f,currentObjectOfVarieties:C,setCurrentSlider:j,handleOpenNutritionModal:v,handleCloseNutritionModal:h,updateCurrentCardIdx:m,jetpacksPayload:M,getRandomJetpacks:()=>{const e=P.filter((e=>e.product.productType.includes("Jetpack"))),t=e.map((e=>e.variant.title)),i=()=>{const e=t.filter((e=>s.includes(e))),i=[...t,...e];return i[Math.floor(Math.random()*i.length)]||""},a=(()=>{let e={};for(let t=0;t<12;t++){let t=i();for(;e[t]>=3;)t=i();e[t]?e[t]++:e[t]=1}return e})(),n=e.map((e=>{const t=Object.entries(a).find((t=>t[0]===e.variant.title));return t?Object.assign(Object.assign({},e),{quantity:t[1]}):Object.assign(Object.assign({},e),{quantity:0})})).filter((e=>void 0!==e));return k(n),a},activateSubscriptionOfSelectedProducts:()=>{k(M.map((e=>Object.assign(Object.assign({},e),{isSubscription:!0}))))},deactivateSubscriptionOfSelectedProducts:()=>{k(M.map((e=>Object.assign(Object.assign({},e),{isSubscription:!1}))))},isActiveSubscriptionOfSelectedProducts:N,specialDiscount:I,addQuantity:e=>{const t=M.reduce(((e,t)=>e+t.quantity),0);[12,24,36].includes(t+1)||l.play(),k((t=>t.map((t=>t.variant.id===e?Object.assign(Object.assign({},t),{quantity:t.quantity+1}):t))))},substractQuantity:e=>{r.play(),k((t=>t.map((t=>t.variant.id===e?Object.assign(Object.assign({},t),{quantity:t.quantity-1<=0?0:t.quantity-1}):t))))},resetQuantities:()=>{k(P)}}}},205:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalContentCarousel=void 0;const n=i(0),s=i(1),r=i(3),l=i(206),o=i(669),d=i(94),c=i(2),u=i(207),p=i(208),v=a(i(447)),h=i(211),m=i(5),g=i(212),j=i(77),b=i(453),x=i(15),f=i(153),C=i(4),S="sliderAddToCartAnimation",y=(0,C.getAssignment)(S),{container:O,containerWrapper:w,containerCheckbox:_,containerCheckboxChecked:P,containerCheckboxFake:M,containerWrapperLogo:k,containerWrapperTitle:N,containerWrapperActive:I,containerWrapperReviews:B,containerWrapperBottom:V,containerWrapperBottomCheckboxWrapper:T,containerWrapperBottomButton:A,containerWrapperBottomShipsMonthly:D,containerWrapperBottomButtonHideShadow:E,containerWrapperBottomButtonActive:F}=v.default;t.ModalContentCarousel=({currentVarietyPack:e,varietyPackProducts:t,handleCloseModal:i,currency:a,labels:v,setIsReviewsOpen:C,setCurrentProductID:R,boom:L,down:W,up:H,swipe:Q,sliderAutoplay:q,addToCartWithPayload:$,isAddToCartAnimation:G})=>{const{isNutritionOpen:U,scrollContainer:J,currentCardIndex:z,currentSlider:K,slidesForImages:X,slidesForVideo:Z,currentImageIndex:Y,currentObjectOfVarieties:ee,handleCloseNutritionModal:te,handleOpenNutritionModal:ie,updateCurrentCardIdx:ae,jetpacksPayload:ne,getRandomJetpacks:se,activateSubscriptionOfSelectedProducts:re,deactivateSubscriptionOfSelectedProducts:le,isActiveSubscriptionOfSelectedProducts:oe,specialDiscount:de,addQuantity:ce,substractQuantity:ue,resetQuantities:pe}=(0,o.useModalContentCarousel)(t,R,a,W,H),{varietyPackVariants:ve,infoWithIcons:he,rating:me,raters:ge}=(null==ee?void 0:ee.details)||e.details,{handleModalScroll:je,shouldHideShadowMask:be}=(0,b.useMaskOnModalScroll)(),xe=ve[Y],fe=ne.reduce(((e,t)=>e+t.quantity),0);if(!xe)return(0,n.jsx)(s.Fragment,{});const{nutritionDetails:Ce,description:Se,title:ye,color:Oe}=xe,we=Se.trim().length>0,_e=(0,r.useMemo)((()=>ne.reduce(((e,t)=>e+(0,c.lookupLocalPrice)(`${t.variant.id}${oe?":subscription":""}`,a,oe?(0,c.applyDiscount)(t.variant.price,25):t.variant.price)*t.quantity),0)-de),[ne,a,oe,de]),Pe=(0,c.priceToLocalString)(_e,a),Me=!/[^0123456789][0].[0][0]/.test(Pe)&&!/^0.00/.test(Pe)&&_e>0?Pe:void 0,[ke,Ne]=(0,r.useState)(!1),Ie=ne.findIndex((({variant:{id:t}})=>(null==e?void 0:e.payload.findIndex((({variant:{id:e}})=>e===t)))>-1)),Be=(0,f.useVideo)(q);return(0,n.jsx)("div",Object.assign({className:O},{children:(0,n.jsxs)("div",Object.assign({className:(0,c.cx)(w,U&&I),onScroll:je,ref:J},{children:[(0,n.jsxs)("div",Object.assign({style:{position:"relative",height:"257px"}},{children:[(0,n.jsx)(l.VarietyPackSlider,{marqueeColor:Oe,marqueeText:Se,useVideoProps:Be,updateCurrentCardIdx:ae,slidesForImages:X,currentSlider:K,handleCloseModal:i,openNutritionModal:ie,currentCardIndex:z,initialSlideNumber:Ie,variantColor:Oe,labels:v,video:Z,shouldFade:ke,onlyVideo:q}),(0,n.jsx)(u.NutritionModalAnimated,Object.assign({isOpen:U,handleCloseNutritionModal:te},Ce))]})),(0,n.jsx)("div",Object.assign({className:k},{children:(0,n.jsx)(m.Icons.JetPackLogoIcon,{width:"96px",height:"24px",color:"#C9CDCD"})})),(0,n.jsx)("h3",Object.assign({className:N},{children:ye})),(0,n.jsx)("div",Object.assign({onClick:()=>C(!0),className:`${B} no-translate`},{children:(0,n.jsx)(j.Rating,{rating:me,raters:ge})})),(0,n.jsx)(g.DiscountProgress,{boom:L,quantity:fe,keys:[{inCircleText:"12",bottomText:"10% OFF"},{inCircleText:"24",bottomText:"15% OFF"},{inCircleText:"36",bottomText:"20% OFF"}],unWantedIndexes:[11,12,13,23,24,25,35,36,37]}),(0,n.jsx)(p.VarietyPackCarousel,{swipe:Q,down:W,up:H,currentCardIndex:z,initialSlide:Ie,getRandomJetpacks:se,updateCurrentCardIdx:ae,addQuantity:()=>ce(ne[z].variant.id),substractQuantity:()=>ue(ne[z].variant.id),resetQuantities:pe,isNutritionOpen:U,setShouldFade:Ne,labels:v,jetpacksPayload:ne}),he.length&&(0,n.jsx)("div",Object.assign({className:(0,c.cx)(V)},{children:(0,n.jsx)(h.ProductInfoWithIcons,{infoWithIcons:he})})),(0,n.jsxs)("div",Object.assign({className:(0,c.cx)(A,U&&F,(be||!we)&&E)},{children:[(0,n.jsxs)("div",Object.assign({onClick:()=>{oe?le():re()},className:T},{children:[(0,n.jsxs)("div",Object.assign({className:(0,c.cx)(_,oe&&P)},{children:[(0,n.jsx)("input",{checked:oe,className:M,type:"checkbox"}),oe&&x.CheckedIcon]})),(0,n.jsx)("p",Object.assign({className:D},{children:v.buttons.subscribeAndSave}))]})),(0,n.jsx)(d.BundleButton,{label:v.buttons.addToCart,onClick:e=>{var t;$(ne,G?e:void 0,G?fe:void 0),i(),y&&(null===(t=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===t||t.postExposure(`${S}`,y))},price:Me,disabled:0===fe})]}))]}))}))}},678:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useControls=void 0;const a=i(3),n=i(2),s=i(4),r="sliderAddToCartAnimation",l=(0,s.getAssignment)(r);t.useControls=({payload:e,variants:t,addToCartWithPayload:i,handleCloseModal:s,isAddToCartAnimation:o,currency:d})=>{const[c,u]=(0,a.useState)(1),[p,v]=(0,a.useState)(t[0]),[h,m]=(0,a.useState)(!1),[g,j]=(0,a.useState)(e);(0,a.useEffect)((()=>{j((e=>{const[t]=e;return[Object.assign(Object.assign({},t),{variant:p,quantity:c})]}))}),[c,p.id]);const b=(0,n.getDisplayPrice)(p.id,p.price,d,c);return{quantity:c,incrementQuantity:()=>{u((e=>e+1))},decrementQuantity:()=>{u((e=>e-1>1?e-1:1))},selectedVariant:p,handleSwatchClick:e=>{const i=t.find((({id:t})=>e===t));i&&v(i)},toggleOpenDrawer:()=>{m((e=>!e))},isDrawerOpen:h,handleAddToCart:e=>{var t;i(g,o?e:void 0,o?c:void 0),s(),l&&(null===(t=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===t||t.postExposure(`${r}`,l))},displayPrice:b}}},219:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Controls=void 0;const n=i(0),s=i(11),r=a(i(458)),l=i(678),o=i(21),d=i(2),c=i(679),u=i(0),p=i(94),v=i(76),h=i(15),{wrapper:m,wrapperHideShadow:g,wrapperButton:j,drawer:b,drawerClose:x,drawerActive:f,drawerImage:C,drawerTitle:S,drawerSwatches:y,wrapperQuantity:O}=r.default;t.Controls=({colorOrder:e,shouldHideShadowMask:t,hasDescription:i,variants:a,payload:r,addToCartLabel:w,currency:_,addToCartWithPayload:P,handleCloseModal:M,isAddToCartAnimation:k})=>{var N,I;const{decrementQuantity:B,incrementQuantity:V,quantity:T,handleSwatchClick:A,selectedVariant:D,isDrawerOpen:E,toggleOpenDrawer:F,displayPrice:R,handleAddToCart:L}=(0,l.useControls)({variants:a,payload:r,addToCartWithPayload:P,handleCloseModal:M,isAddToCartAnimation:k,currency:_}),W=(0,c.getExtendedColorOrder)(e,a),H=W.find((({variantId:e})=>e===D.id));return(0,n.jsxs)(u.Fragment,{children:[(0,n.jsxs)("div",Object.assign({className:(0,d.cx)(m,(t||!i)&&g)},{children:[E?(0,n.jsx)("button",Object.assign({onClick:F,className:j},{children:h.dropDown})):(0,n.jsx)(o.ProductOptionSwatch,{colorId:D.colorId,swatch_src:null!==(N=null==H?void 0:H.swatch_src)&&void 0!==N?N:"",swatch_hex:null!==(I=null==H?void 0:H.swatch_hex)&&void 0!==I?I:"",isSelected:!0,swatchClicked:F,size:"large"}),(0,n.jsx)("div",Object.assign({className:O},{children:(0,n.jsx)(s.QuantitySelector,{quantity:T,decrementQuantity:B,incrementQuantity:V,height:"large"})})),(0,n.jsx)(p.BundleButton,{label:w,price:R,onClick:L})]})),(0,n.jsxs)("div",Object.assign({className:(0,d.cx)(b,E&&f)},{children:[(0,n.jsx)("div",Object.assign({className:x},{children:(0,n.jsx)(v.CloseButton,{onClick:M})})),(0,n.jsx)("div",Object.assign({className:C},{children:(0,n.jsx)("img",Object.assign({},D.image))})),(0,n.jsxs)("div",Object.assign({className:S},{children:[(0,n.jsx)("h6",{children:"color:"}),(0,n.jsx)("h6",{children:D.title})]})),(0,n.jsx)("div",Object.assign({className:y},{children:W.map((({swatch:e,swatch_src:t,swatch_hex:i,id:a,variantId:s})=>(0,n.jsx)(o.ProductOptionSwatch,{colorId:e,swatch_src:t,swatch_hex:i,isSelected:e===D.colorId,swatchClicked:()=>{A(s)},isInSelect:!0})))}))]}))]})}},679:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getExtendedColorOrder=void 0,t.getExtendedColorOrder=(e,t)=>e.reduce(((e,i)=>{const a=t.find((({colorId:e})=>e===i.swatch));return a?[...e,Object.assign(Object.assign({},i),{variantId:a.id})]:e}),[])},217:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Divider=void 0;const n=i(0),s=a(i(457)),{wrapper:r}=s.default;t.Divider=()=>(0,n.jsx)("div",Object.assign({className:r},{children:"or"}))},215:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalContentSimple=void 0;const n=i(0),s=i(2),r=i(94),l=i(216),o=i(453),d=a(i(456)),c=i(77),u=i(125),p=i(217),v=i(95),h=(i(1),i(4)),m=i(219),{wrapper:g,wrapperSlider:j,wrapperContentSwitch:b,wrapperContentSwitchButton:x,wrapperContentSwitchButtonActive:f,wrapperContent:C,wrapperContentOld:S,wrapperContentReviews:y,wrapperContentTitle:O,wrapperContentTitleOld:w,wrapperContentTitleSmaller:_,wrapperContentSubtitle:P,wrapperContentDescription:M,wrapperContentDescriptionOld:k,wrapperButton:N,wrapperButtonHideShadow:I,wrapperContentIcons:B,wrapperContentIconsOld:V,wrapperContentIconsSingle:T,wrapperStylux:A,wrapperStyluxHideShadow:D,wrapperWithStylux:E,wrapperBundle:F,wrapperBundleBottom:R,wrapperBundleButton:L,wrapperBundleHideShadow:W,wrapperBundleTitle:H,wrapperBundleImages:Q,wrapperWithBundle:q,wrapperWithBlendjet:$}=d.default,G="sliderAddToCartAnimation",U=(0,h.getAssignment)(G);t.ModalContentSimple=({details:e,handleCloseModal:t,setIsReviewsOpen:i,labels:a,sliderAutoplay:d,currency:h,handleBundleProductClick:J,newMiniPDPVariation:z,styluxFeature:K,addToCartWithPayload:X,isAddToCartAnimation:Z,isNewMiniPdp:Y,payload:ee,colorOrder:te})=>{var ie,ae,ne,se,re,le,oe,de,ce,ue;const{handleModalScroll:pe,shouldHideShadowMask:ve}=(0,o.useMaskOnModalScroll)(),{carouselMedia:he,price:me,title:ge,subtitle:je,description:be,rating:xe,raters:fe,id:Ce,handle:Se,video:ye,infoWithIcons:Oe,similarProducts:we,productTitle:_e,variants:Pe}=e,Me="blendjet-2"===Se,ke=e=>{var i;t(),X(ee,Z?e:void 0),U&&(null===(i=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===i||i.postExposure(`${G}`,U))},Ne="recipe-book"===Se||"next-gen-blending-volume-2"===Se||!Y||Me?Oe:Oe.slice(0,3),Ie=(0,s.getDisplayPrice)(Ce,String(me),h),Be=be.trim().length>0,Ve=be.replace(/<\/?a[^>]*>/g,""),Te=K.variantsMapping[Ce],Ae=(0,s.getDisplayPrice)(null!==(ie=null==Te?void 0:Te.id)&&void 0!==ie?ie:Ce,null!==(ae=null==Te?void 0:Te.price)&&void 0!==ae?ae:ee[0].variant.price,h),De=null===(oe=100*Number(null!==(ne=null==Te?void 0:Te.price)&&void 0!==ne?ne:0)-100*Number(null!==(le=null===(re=null===(se=ee[0])||void 0===se?void 0:se.variant)||void 0===re?void 0:re.price)&&void 0!==le?le:0))||void 0===oe?void 0:oe.toString(),Ee=Object.assign(Object.assign({},ee[0]),{product:Object.assign(Object.assign({},ee[0].product),{title:null!==(de=null==Te?void 0:Te.productTitle)&&void 0!==de?de:ee[0].product.title}),variant:Object.assign(Object.assign({},ee[0].variant),Te)}),Fe=!!Te&&["jetsetter-insulated-sleeve","large-jetsetter-insulated-sleeve","xl-jetsetter-insulated-sleeve"].includes(Se)&&"stylux"===z&&Y,Re="bundle"===z&&!!e.bundle&&Y,Le=!Fe&&!Re&&!Me,We=null!==(ue=null===(ce=e.bundle)||void 0===ce?void 0:ce.reduce(((e,t)=>e+Number(t.payload.reduce(((e,t)=>e+Number(t.variant.price)),0))),0).toFixed(2))&&void 0!==ue?ue:"",He=`${a.buttons.addBundleToCart} - $${We}`;return(0,n.jsxs)("div",Object.assign({className:(0,s.cx)(g,Fe&&E,Re&&q,Me&&$),onScroll:pe},{children:[(0,n.jsx)("div",Object.assign({className:j},{children:(0,n.jsx)(l.Slider,{sliderAutoplay:d,handle:Se,carouselMedia:he,handleCloseModal:t,video:ye,currentUpsellProductId:Ce})})),(0,n.jsxs)("div",Object.assign({className:(0,s.cx)(C,!Y&&S)},{children:[Y&&!!we.length&&(0,n.jsx)("div",Object.assign({className:b},{children:we.map((({id:e,label:t})=>(0,n.jsx)("button",Object.assign({className:(0,s.cx)(x,e===Ce&&f),onClick:()=>{J(e)}},{children:t}),e)))})),Y?(0,n.jsx)("p",Object.assign({className:(0,s.cx)(O,"no-translate",!!je&&_)},{children:ge})):(0,n.jsx)("p",Object.assign({className:(0,s.cx)(w,"no-translate")},{children:_e})),Y&&!!je&&(0,n.jsx)("p",Object.assign({className:(0,s.cx)(P,"no-translate")},{children:je})),(0,n.jsx)("div",Object.assign({onClick:()=>{i(!0)},className:`${y} no-translate`},{children:(0,n.jsx)(c.Rating,{rating:xe,raters:fe,largeStars:Y})})),Be&&(0,n.jsx)("div",{className:(0,s.cx)(M,!Y&&k),dangerouslySetInnerHTML:{__html:Ve}}),(0,n.jsx)("div",Object.assign({className:(0,s.cx)(B,!Y&&V)},{children:Ne.map((({icon:e,title:t})=>(0,n.jsxs)("div",Object.assign({className:T},{children:[(0,n.jsx)("div",{children:(0,n.jsx)(u.FeatureIcon,{name:e})}),(0,n.jsx)("p",{children:t})]}),t)))}))]})),Le&&(0,n.jsx)("div",Object.assign({className:(0,s.cx)(N,(ve||!Be)&&I)},{children:(0,n.jsx)(r.BundleButton,{label:a.buttons.addToCart,price:Ie,onClick:ke})})),Fe&&(0,n.jsxs)("div",Object.assign({className:(0,s.cx)(A,(ve||!Be)&&D)},{children:[(0,n.jsx)(v.StyluxFeature,{labels:K.labels,image:{src:he[0].src,alt:he[0].alt},displayPrice:Ae,payload:Ee,addToCartWithPayload:X,onSubmit:t,styluxAddToCartAnimation:Z,styluxPersonalizationPrice:De}),(0,n.jsx)(p.Divider,{}),(0,n.jsx)(r.BundleButton,{label:a.buttons.addToCart,price:Ie,onClick:ke})]})),Re&&!!e.bundle&&(0,n.jsxs)("div",Object.assign({className:(0,s.cx)(F,Re&&R,(ve||!Be)&&W)},{children:[(0,n.jsx)(r.BundleButton,{label:a.buttons.addToCart,price:Ie,onClick:ke}),(0,n.jsx)(p.Divider,{}),(0,n.jsx)("p",Object.assign({className:H},{children:e.bundle.map((e=>e.displayName)).join(" + ")})),(0,n.jsx)("div",Object.assign({className:Q},{children:e.bundle.map((e=>(0,n.jsx)("img",Object.assign({},e.payload[0].variant.cartImage),e.payload[0].variant.id)))})),(0,n.jsx)("button",Object.assign({onClick:i=>{var a;const n=e.bundle.reduce(((e,t)=>[...e,...t.payload]),[]);X(n,Z?i:void 0,Z?n.length:void 0),t(),U&&(null===(a=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===a||a.postExposure(`${G}`,U))},className:L},{children:He}))]})),Me&&!!Pe.length&&(0,n.jsx)(m.Controls,{colorOrder:te,shouldHideShadowMask:ve,hasDescription:Be,variants:Pe,payload:ee,currency:h,addToCartLabel:a.buttons.addToCart,addToCartWithPayload:X,isAddToCartAnimation:Z,handleCloseModal:t})]}))}},207:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NutritionModalAnimated=void 0;const n=i(0),s=i(1),r=i(2),l=a(i(443)),o=i(3),{baseSlideLeftOver:d,baseSlideLeftOverActive:c,baseSlideLeftOverDisabled:u,baseSlidePointToScroll:p,modal:v,modalActive:h,modalDisabled:m,modalContent:g,modalContentActive:j,modalContentDisabled:b,modalContentCard:x,modalContentCardActive:f,modalContentCardDisabled:C,modalContentCardFront:S,modalContentCardBack:y,modalContentCardBackClose:O,backdrop:w,backdropActive:_,backdropDisabled:P}=l.default;t.NutritionModalAnimated=({backImage:e,frontImage:t,handleCloseNutritionModal:i,isOpen:a,position:{top:l,left:M,shadow:k}})=>{const[N,I]=(0,o.useState)(!1),B=(0,o.useRef)(null);return(0,o.useEffect)((()=>{var e;const t=document.getElementById("bundle-slider-modal-content-carousel");a?(I(!0),null===(e=B.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),null==t||t.style.setProperty("overflow","hidden")):null==t||t.style.setProperty("overflow","auto")}),[B,a]),(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("div",{style:{"--left":`${M}`},className:(0,r.cx)(d,N?a?c:u:"")}),(0,n.jsx)("div",{ref:B,className:p}),(0,n.jsx)("div",{className:(0,r.cx)(w,N?a?_:P:"")}),(0,n.jsx)("div",Object.assign({style:{"--left":`${M}`},className:(0,r.cx)(v,N?a?h:m:"")},{children:(0,n.jsx)("div",Object.assign({className:(0,r.cx)(g,N?a?j:b:"")},{children:(0,n.jsxs)("div",Object.assign({className:(0,r.cx)(x,N?a?f:C:"")},{children:[(0,n.jsx)("div",Object.assign({className:S},{children:(0,n.jsx)("img",Object.assign({},t))})),(0,n.jsxs)("div",Object.assign({className:y},{children:[(0,n.jsx)("img",Object.assign({},e)),(0,n.jsx)("button",Object.assign({onClick:()=>i(),className:O},{children:(0,n.jsx)("span",{style:{"--closeButtonColor":"#FFF"}})}))]}))]}))}))}))]})}},211:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProductInfoWithIcons=void 0;const n=i(0),s=(i(1),i(125)),r=a(i(448)),{wrapper:l,wrapperItem:o,wrapperItemTitle:d}=r.default;t.ProductInfoWithIcons=({infoWithIcons:e})=>e.length?(0,n.jsx)("div",Object.assign({className:l},{children:e.map((e=>(0,n.jsxs)("div",Object.assign({className:o},{children:[(0,n.jsx)(s.FeatureIcon,{name:e.icon}),(0,n.jsx)("p",Object.assign({className:d},{children:e.title}))]}))))})):null},666:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSelectionModal=void 0;const a=i(3);t.useSelectionModal=function(e){return{modalContainer:(0,a.useRef)(null),handleClose:t=>{t.target===t.currentTarget&&e()}}}},204:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModal=void 0;const n=i(0),s=i(1),r=i(666),l=i(205),o=i(215),d=a(i(459)),c=i(3),u=i(76),p=i(220),{spinner:v,spinnerWrapper:h,modal:m,modalBackdrop:g,modalReviews:j,modalReviewsButton:b}=d.default;t.SelectionModal=function({upsellProducts:e,currentUpsellProduct:t,currency:i,labels:a,handleCloseModal:d,addToCartWithPayload:x,soundPack:f,sliderAutoplay:C,handleBundleProductClick:S,newMiniPDPVariation:y,styluxFeature:O,isAddToCartAnimation:w,isNewMiniPdp:_,colorOrder:P}){var M;const{modalContainer:k,handleClose:N}=(0,r.useSelectionModal)(d),{id:I}=t.details,{withVariants:B}=t||{},[V,T]=(0,c.useState)(!1),[A,D]=(0,c.useState)((null===(M=t.payload.find((e=>e.variant.id===I)))||void 0===M?void 0:M.variant.id)||"");return(0,n.jsx)(s.Fragment,{children:(0,n.jsx)("div",Object.assign({className:g,onClick:N},{children:(0,n.jsxs)("div",Object.assign({className:m,ref:k},{children:[B?(0,n.jsx)(l.ModalContentCarousel,Object.assign({sliderAutoplay:C},f,{setCurrentProductID:D,setIsReviewsOpen:T,currentVarietyPack:t,varietyPackProducts:e.filter((e=>e.withVariants)),handleCloseModal:d,addToCartWithPayload:x,labels:a,currency:i,isAddToCartAnimation:w})):(0,n.jsx)(o.ModalContentSimple,{sliderAutoplay:C,setIsReviewsOpen:T,details:t.details,handleCloseModal:d,handleBundleProductClick:S,payload:t.payload,addToCartWithPayload:x,labels:a,currency:i,newMiniPDPVariation:y,styluxFeature:O,isAddToCartAnimation:w,isNewMiniPdp:_,colorOrder:P}),V&&(0,n.jsxs)("div",Object.assign({className:j},{children:[(0,n.jsx)(u.CloseButton,{isBlue:!0,onClick:()=>T(!1),className:b}),(0,n.jsx)("div",Object.assign({className:h},{children:(0,n.jsxs)("div",Object.assign({className:v},{children:[(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{})]}))})),(0,n.jsx)(p.BundleReviews,{id:A})]}))]}))}))})}},668:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useVideoSlide=void 0;const a=i(3);t.useVideoSlide=(e,t)=>{var i,n;const s=(0,a.useRef)(null),[r,l]=(0,a.useState)(!0),[o,d]=(0,a.useState)(!1),[c,u]=(0,a.useState)(!1),[p,v]=(0,a.useState)(!1);v(Boolean((null===(i=s.current)||void 0===i?void 0:i.webkitAudioDecodedByteCount)||(null===(n=s.current)||void 0===n?void 0:n.mozHasAudio)));const h=(0,a.useCallback)((()=>{s.current&&(s.current.play(),l(!0))}),[]),m=(0,a.useCallback)((()=>{s.current&&(s.current.pause(),l(!1))}),[]),g=(0,a.useCallback)((()=>{s.current&&(s.current.muted=!o,d(!o))}),[o]),j=(0,a.useCallback)((()=>{t||(e(),l(!1),d(!1),v(!1))}),[e]),b=(0,a.useCallback)((()=>{setTimeout((()=>{u(!0)}),1e3)}),[]);return(0,a.useEffect)((()=>{s.current||setTimeout((()=>{u(!0)}),1e3)}),[]),{isVideoOn:r,isMuted:o,video:s,hasLoaded:c,hasAudio:p,handlePlayVideo:h,handlePauseVideo:m,toggleMuteVideo:g,handleVideoEnd:j,handleMediaLoadEnd:b}}},124:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Slide=void 0;const n=i(0),s=i(1),r=i(2),l=i(668),o=i(5),d=a(i(438)),{slide:c,slideButton:u,slideButtonPlay:p,slideButtonSound:v,slideLoader:h,slideImage:m,slideImageFade:g}=d.default;t.Slide=({alt:e,src:t,type:i,className:a,isContentCarousel:d,handleGoToNextSlide:j,shouldFade:b})=>{const x="video"===i,{isMuted:f,video:C,isVideoOn:S,hasLoaded:y,hasAudio:O,toggleMuteVideo:w,handlePauseVideo:_,handlePlayVideo:P,handleVideoEnd:M,handleMediaLoadEnd:k}=(0,l.useVideoSlide)(j,d);return(0,n.jsx)("div",Object.assign({className:(0,r.cx)(c,a,!y&&h)},{children:x?(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("video",Object.assign({"webkit-playsInline":!0,playsInline:!0,ref:C,height:257,onEnded:M,autoPlay:!0,onLoadedData:k,loop:d},{children:(0,n.jsx)("source",{src:t,type:"video/mp4"})})),S?(0,n.jsxs)(s.Fragment,{children:[O&&(0,n.jsx)("button",Object.assign({onClick:e=>{e.stopPropagation()},className:(0,r.cx)(u,v)},{children:f?(0,n.jsx)(o.Icons.VideoVolumeOff,{}):(0,n.jsx)(o.Icons.VideoVolumeOn,{})})),(0,n.jsx)("button",Object.assign({className:(0,r.cx)(u,p),onClick:e=>{e.stopPropagation(),_()}},{children:(0,n.jsx)(o.Icons.VideoPause,{})}))]}):(0,n.jsx)("button",Object.assign({className:(0,r.cx)(u,p),onClick:e=>{e.stopPropagation(),P()}},{children:(0,n.jsx)("img",{src:"https://res.cloudinary.com/davda9b9c/image/upload/v1681452510/blendjet/files/bundleSliderPlayIcon.png",alt:"play video"})}))]}):(0,n.jsx)("img",{className:b?g:m,src:t,alt:e,onLoad:k})}))}},676:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlider=void 0;const a=i(17),n=i(3);i(9),t.useSlider=(e,t,i,s)=>{const[r,l]=(0,n.useState)(0),[o,d]=(0,n.useState)(!1),c={initial:i,slides:{perView:1},loop:!!s,rubberband:!1,drag:!s,slideChanged({track:{details:e}}){l(e.rel)}},[u,p]=(0,a.useKeenSlider)(c);var v,h;return(0,n.useEffect)((v=p,h=c,()=>(v.current&&v.current.update(Object.assign({},h)),()=>{v.current&&v.current.destroy()})),[p.current,o]),(0,n.useEffect)((()=>{var e;null===(e=p.current)||void 0===e||e.update(c,0)}),[e]),s&&(0,n.useEffect)((()=>{var e;null===(e=p.current)||void 0===e||e.moveToIdx(null!=i?i:0)}),[i]),(0,n.useEffect)((()=>{d(!0)}),[]),{isSliderLoaded:o,currentSlideIndex:r,sliderRef:u,handleGoToNextSlide:(0,n.useCallback)((()=>{p.current&&p.current.next()}),[])}}},216:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Slider=void 0;const n=i(1),s=i(0),r=i(676),l=i(76),o=i(124),d=i(2);i(454);const c=a(i(455)),u=i(153),p=i(93),v=i(3),{container:h,containerButton:m,containerSlider:g,containerVideo:j,containerWrapper:b,containerWrapperDot:x,containerWrapperDotActive:f,containerVideoFade:C}=c.default;t.Slider=({carouselMedia:e,handleCloseModal:t,video:i,handle:a,sliderAutoplay:c,currentUpsellProductId:S})=>{const{isSliderLoaded:y,currentSlideIndex:O,sliderRef:w,handleGoToNextSlide:_}=(0,r.useSlider)(S),{isVideoPlaying:P,isVideoMuted:M,pauseVideo:k,playVideo:N,toggleMuteVideo:I}=(0,u.useVideo)(c),[B,V]=(0,v.useState)(!1),T=(0,v.useRef)(null);(0,v.useEffect)((()=>{var e;let t;return P&&(t=setTimeout((()=>{var e;V(!0),null===(e=T.current)||void 0===e||e.play()}),600)),V(!1),null===(e=T.current)||void 0===e||e.pause(),()=>{clearTimeout(t)}}),[P]);const A=e.length>1,D=!!i.src.length,E="orbiter-drinking-lid"===a||"jetsetter-insulated-tote"===a;return(0,s.jsxs)("div",Object.assign({className:(0,d.cx)(h,(0,d.cx)(!y&&"noJsForModalSlider"))},{children:[(!P||!D)&&A&&(0,s.jsx)("div",Object.assign({className:b},{children:e.map((({src:e},t)=>{const i=O===t;return(0,s.jsx)("div",{className:(0,d.cx)(x,i&&f)},e+t)}))})),D&&P&&(0,s.jsx)("div",Object.assign({className:(0,d.cx)(j,B&&C)},{children:(0,s.jsx)("video",{onEnded:k,src:i.src,autoPlay:!0,loop:c,"webkit-playsInline":!0,playsInline:!0,volume:.6,muted:M})})),(0,s.jsx)("div",Object.assign({ref:w,className:(0,d.cx)("keen-slider",g)},{children:e.map(((e,t)=>(0,n.createElement)(o.Slide,Object.assign({},e,{className:`keen-slider__slide number-slide${t+1}`,key:e.src+t,handleGoToNextSlide:_,isContentCarousel:!1,shouldFade:!1}))))})),D&&(0,s.jsx)(p.VideoControls,{videoSrc:i.src,isVideoPlaying:P,isVideoMuted:M,pauseVideo:k,playVideo:N,toggleMuteVideo:I,isOrbiter:E}),(0,s.jsx)(l.CloseButton,{isBlue:E,onClick:()=>!c&&P?k():t(),className:m})]}))}},203:function(e,t,i){var a=this&&this.__awaiter||function(e,t,i,a){return new(i||(i=Promise))((function(n,s){function r(e){try{o(a.next(e))}catch(e){s(e)}}function l(e){try{o(a.throw(e))}catch(e){s(e)}}function o(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,l)}o((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.useUpsellsToolSliderButton=void 0;const n=i(3),s=i(4),r="sliderAddToCartAnimation",l=(0,s.getAssignment)(r);t.useUpsellsToolSliderButton=({addToCartWithPayload:e,isAddToCartAnimation:t,isTextInButton:i,isVarietyPack:s,onClick:o,productPayload:d})=>{const[c,u]=(0,n.useState)(!1),[p,v]=(0,n.useState)(!1),h=(0,n.useRef)(),m=()=>{v(!0),setTimeout((()=>{v(!1)}),1e3)};return{isLoading:c,didAdd:p,handleClick:n=>a(void 0,void 0,void 0,(function*(){var a;if(h.current=n.currentTarget,s)o();else{if(l&&(null===(a=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===a||a.postExposure(`${r}`,l)),!i)return e(d,t?n:void 0),void m();u(!0),setTimeout((()=>{e(d,t?Object.assign(Object.assign({},n),{currentTarget:h.current}):void 0),m(),u(!1)}),1e3)}}))}}},202:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpsellsToolSliderButton=void 0;const n=i(0),s=(i(1),a(i(436))),r=i(2),l=i(12),o=i(203),{wrapper:d,wrapperIcon:c,wrapperIconCart:u,wrapperIconCartVarietyPack:p,wrapperIconHidden:v,wrapperIconVariety:h,spinner:m,wrapperIconAdded:g,wrapperIconAddedNumber:j}=s.default;t.UpsellsToolSliderButton=({onClick:e,isTextInButton:t,addLabel:i,addedLabel:a,isVarietyPack:s,selectLabel:b,selectedVarietyPacksQuantity:x,addToCartWithPayload:f,isAddToCartAnimation:C,productPayload:S,isPdp:y})=>{const{didAdd:O,handleClick:w,isLoading:_}=(0,o.useUpsellsToolSliderButton)({onClick:e,isVarietyPack:s,isTextInButton:t,addToCartWithPayload:f,isAddToCartAnimation:C,productPayload:S}),P=(null!=x?x:0)>0;return t?(0,n.jsx)("button",Object.assign({className:d,onClick:w},{children:_?(0,n.jsx)("span",{className:m}):s?b:O||P?a:i})):(0,n.jsx)("button",Object.assign({className:(0,r.cx)(!y&&!s&&u,!y&&s&&p,c,(_||O||P)&&v,s&&h),onClick:w},{children:(O||P)&&(s?(0,n.jsx)("div",Object.assign({className:g},{children:(0,n.jsx)("div",Object.assign({className:j},{children:x}))})):(0,n.jsx)(l.CheckMarkGreenIcon,{}))}))}},210:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QuantityButton=void 0;const n=i(0),s=i(2),r=a(i(446)),{wrapper:l,wrapperDecrease:o,wrapperDecreaseActive:d,wrapperIncrease:c}=r.default;t.QuantityButton=({onClick:e,startCounter:t,stopCounter:i,isIncreasingButton:a=!1,isDecreasingEnabled:r=!1,isDisabled:u=!1})=>{const p=(0,s.cx)(l,c),v=(0,s.cx)(l,o,r?d:""),h=a?p:v;return(0,n.jsxs)("button",Object.assign({className:h,onClick:e,onMouseDown:()=>t(),onMouseUp:i,onMouseLeave:i,onTouchStart:()=>t(),onTouchEnd:i,disabled:u,onContextMenu:e=>e.preventDefault()},{children:[(0,n.jsx)("span",{}),(0,n.jsx)("span",{})]}))}},672:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useConfirmRemovalModal=void 0;const a=i(3);t.useConfirmRemovalModal=({removeSelectedVariants:e})=>{const[t,i]=(0,a.useState)(!1);return{isRemovalConfirmationVisible:t,openRemovalConfirmation:()=>i(!0),closeRemovalConfirmation:t=>{t&&e(),i(!1)}}}},671:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useQuantityCounter=void 0;const a=i(6);t.useQuantityCounter=({jetpacksPayload:e,activeSlideIndex:t,addQuantity:i,substractQuantity:n})=>{var s,r;const l=(0,a.useRef)(null);(0,a.useEffect)((()=>()=>o()),[]);const o=()=>{l.current&&(clearInterval(l.current),l.current=null)},d=e.reduce(((e,t)=>e+t.quantity),0)>0,c=(null!==(r=null===(s=e[t])||void 0===s?void 0:s.quantity)&&void 0!==r?r:0)>0,u=e.some((e=>e.quantity>0));return{startCounter:(e=!1)=>{l.current||(l.current=setInterval((()=>{e?n():i()}),200))},stopCounter:o,isResetButtonEnabled:d,isSubstractButtonEnabled:c,isConfirmationEnabled:u}}},670:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useVarietyPackCarousel=void 0;const a=i(17),n=i(3),s=i(168);t.useVarietyPackCarousel=({initialSlide:e,updateCurrentCardIdx:t,isNutritionOpen:i=!1,setShouldFade:r,currentCardIndex:l,swipe:o,jetpacksPayload:d})=>{var c,u;const[p,v]=(0,n.useState)(!1),h=d.length,[m,g]=(0,n.useState)(null),j=(0,n.useRef)(0),b={duration:350,easing:e=>e},x={duration:150,easing:e=>e},f={duration:0,easing:e=>e},C=[i=>{let a=0,n=0;i.on("detailsChanged",(e=>{Math.abs(n-e.track.details.rel)>1&&r(!0),g(e.track.details)})),i.on("created",(e=>{j.current=e.size})),i.on("updated",(e=>{j.current=e.size})),i.on("animationEnded",(s=>{t(s.track.details.rel),r(!1),n=s.track.details.rel,v(!1),a||(i.moveToIdx(e,!0,f),a++)})),i.on("dragStarted",(()=>{v(!0)}))}],S={slides:{number:h,origin:"center",perView:s.SLIDES_PER_VIEW},initial:e,loop:!0,mode:"free-snap"},[y,O]=(0,a.useKeenSlider)(S,C);(0,n.useEffect)((()=>{p&&O.current&&o.play()}),[null===(c=null==O?void 0:O.current)||void 0===c?void 0:c.track.details.rel]),(0,n.useEffect)((0,s.fixKeenSliderBugInPreact)(O,S),[O.current]),(0,n.useEffect)((()=>{let e;return e=setTimeout((()=>{var e;null===(e=O.current)||void 0===e||e.moveToIdx(l,!1,x)}),50),()=>clearTimeout(e)}),[l]);const w=(0,n.useCallback)((e=>{if(!O.current)return;const t=O.current.track.details.rel,i=Math.abs(t-e),a=80*(i>3?3:i);O.current.animator.stop(),O.current.moveToIdx(e,!1,Object.assign(Object.assign({},b),{duration:a}))}),[]),[_,P]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{var e,t,a;i&&((null===(e=O.current)||void 0===e?void 0:e.animator.active)&&P(!0),null===(t=O.current)||void 0===t||t.animator.stop()),_&&(null===(a=O.current)||void 0===a||a.moveToIdx(0),P(!1))}),[i]),{sliderRef:y,slideValues:(0,s.getSlideValues)({sliderState:m,jetpacksPayload:d}),handleSlideClick:w,activeSlideIndex:(null===(u=O.current)||void 0===u?void 0:u.track.details.rel)||0}}},208:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VarietyPackCarousel=void 0;const n=i(0),s=i(1),r=i(2),l=a(i(444)),o=i(670),d=i(209),c=i(671),u=i(210),p=i(5),v=i(672),{container:h,containerCarousel:m,containerCarouselSlider:g,containerCarouselSliderInner:j,containerCarouselSliderInnerSlides:b,containerCarouselSliderInnerSlidesSlide:x,containerCarouselSliderInnerSlidesSlideCounter:f,containerQuantityCTAContainer:C,containerQuantityCTAContainerButtons:S}=l.default;t.VarietyPackCarousel=({updateCurrentCardIdx:e,resetQuantities:t,isNutritionOpen:i,setShouldFade:a,labels:l,getRandomJetpacks:y,initialSlide:O,currentCardIndex:w,swipe:_,addQuantity:P,substractQuantity:M,jetpacksPayload:k})=>{const{sliderRef:N,slideValues:I,handleSlideClick:B,activeSlideIndex:V}=(0,o.useVarietyPackCarousel)({initialSlide:O,updateCurrentCardIdx:e,isNutritionOpen:i,setShouldFade:a,currentCardIndex:w,swipe:_,jetpacksPayload:k}),{startCounter:T,stopCounter:A,isResetButtonEnabled:D,isSubstractButtonEnabled:E,isConfirmationEnabled:F}=(0,c.useQuantityCounter)({jetpacksPayload:k,activeSlideIndex:V,addQuantity:P,substractQuantity:M}),R=()=>{t()},{isRemovalConfirmationVisible:L,openRemovalConfirmation:W,closeRemovalConfirmation:H}=(0,v.useConfirmRemovalModal)({removeSelectedVariants:R}),{isRemovalConfirmationVisible:Q,openRemovalConfirmation:q,closeRemovalConfirmation:$}=(0,v.useConfirmRemovalModal)({removeSelectedVariants:R});return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsxs)("div",Object.assign({className:h},{children:[(0,n.jsx)("div",Object.assign({className:m},{children:(0,n.jsx)("div",Object.assign({className:(0,r.cx)(g,"keen-slider"),ref:N},{children:(0,n.jsx)("div",Object.assign({className:j},{children:(0,n.jsx)("div",Object.assign({className:b},{children:I.map((({style:e,innerStyle:t,image:i,counterStyles:a,quantity:s},r)=>(0,n.jsx)("div",Object.assign({onClick:()=>B(r),className:x,style:Object.assign(Object.assign({},e),{zIndex:V===r?"1":"unset"})},{children:(0,n.jsxs)("div",Object.assign({style:t},{children:[0!==s&&(0,n.jsx)("div",Object.assign({className:f,style:a},{children:s})),(0,n.jsx)("img",Object.assign({},i))]}))}),r)))}))}))}))})),(0,n.jsxs)("div",Object.assign({className:C},{children:[D?(0,n.jsx)(p.Icons.ResetIcon,{width:"27px",height:"26px",color:"#999999",onClick:W}):(0,n.jsx)("span",{style:{width:"27px",height:"26px"}}),(0,n.jsxs)("div",Object.assign({className:S},{children:[(0,n.jsx)(u.QuantityButton,{onClick:M,startCounter:()=>T(!0),stopCounter:A,isDecreasingEnabled:E,isDisabled:!E}),(0,n.jsx)(u.QuantityButton,{onClick:P,startCounter:T,stopCounter:A,isIncreasingButton:!0})]})),(0,n.jsx)(p.Icons.DiceIcon,{width:"25px",height:"26px",color:"#999999",onClick:q})]}))]})),(0,n.jsx)(d.ConfirmationModal,{closeModal:L?H:$,isOpen:L||Q,additionalAcceptAction:()=>{Q&&(R(),y())},labels:l,isRandomJPConfirmation:Q,isResetAndRandomJPConfirmation:F&&Q})]})}},168:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSlideValues=t.SLIDES_PER_VIEW=t.WHEEL_SIZE=t.fixKeenSliderBugInPreact=void 0,t.fixKeenSliderBugInPreact=(e,t)=>()=>(e.current&&e.current.update(Object.assign({},t)),()=>{e.current&&e.current.destroy()}),t.WHEEL_SIZE=13,t.SLIDES_PER_VIEW=5,t.getSlideValues=({sliderState:e,jetpacksPayload:i})=>{var a,n;if(!e)return[];const s=.5-1/t.SLIDES_PER_VIEW/2,r=i.length,l=[];for(let o=0;ot.WHEEL_SIZE/2?180:r*(360/t.WHEEL_SIZE)*-1,c={transform:`translateX(${2.8*-d}px)`,WebkitTransform:`translateX(${2.8*-d}px)`},u=i[o].variant.cartImage,p=Math.abs(e.rel-o),v=0===p,h=1===p||p===e.slides.length-1,m=2===p||p===e.slides.length-2,g=v?{zIndex:"1",transition:"all 0.2s ease-out"}:h?{width:"22px",height:"22px",top:"-4px",right:"7px",fontSize:"11px",transition:"all 0.2s ease-out"}:m?{width:"20px",height:"20px",top:"1.5px",right:"11px",fontSize:"10px",transition:"all 0.2s ease-out"}:{width:"18px",height:"18px",top:"6px",right:"14px",fontSize:"8px",transition:"all 0.2s ease-out"},j={padding:v?"0px":h?"5px":m?"10px":"11px",transform:1===p&&e.rel>o?"translateX(-8px)":1===p&&e.rel{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlider=void 0;const a=i(17),n=i(3);i(9),t.useSlider=(e,t,i,s=!1)=>{const[r,l]=(0,n.useState)(0),[o,d]=(0,n.useState)(!1),c={initial:i,slides:{perView:1},loop:!0,rubberband:!1,drag:!0,slideChanged({track:{details:e}}){l(e.rel)},animationEnded({track:{details:e}}){t(e.rel)}},[u,p]=(0,a.useKeenSlider)(c);var v,h;(0,n.useEffect)((v=p,h=c,()=>(v.current&&v.current.update(Object.assign({},h)),()=>{v.current&&v.current.destroy()})),[p.current,o]);const[m,g]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{s&&g(!0)}),[s]),(0,n.useEffect)((()=>{var t;null===(t=p.current)||void 0===t||t.moveToIdx(null!=e?e:0,!1,{duration:m?0:150,easing:e=>e}),g(!1)}),[e]),(0,n.useEffect)((()=>{d(!0)}),[]),{isSliderLoaded:o,currentSlideIndex:r,sliderRef:u,handleGoToNextSlide:(0,n.useCallback)((()=>{p.current&&p.current.next()}),[])}}},206:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VarietyPackSlider=void 0;const n=i(1),s=i(0),r=i(667),l=i(76),o=i(124),d=i(2),c=i(5);i(439);const u=a(i(440)),p=i(93),v=a(i(150)),h=i(3),{container:m,containerNutrition:g,containerCloseButton:j,containerSlider:b,containerVideo:x,containerVideoFade:f,containerMarquee:C,containerMarqueeText:S}=u.default;t.VarietyPackSlider=({slidesForImages:e,handleCloseModal:t,openNutritionModal:i,currentCardIndex:a,initialSlideNumber:u,variantColor:y,labels:O,video:w,updateCurrentCardIdx:_,shouldFade:P,useVideoProps:M,marqueeText:k,marqueeColor:N,onlyVideo:I})=>{var B;const V=null===(B=w[a])||void 0===B?void 0:B.src,{isVideoMuted:T,isVideoPlaying:A,pauseVideo:D,playVideo:E,toggleMuteVideo:F}=M,{isSliderLoaded:R,sliderRef:L,handleGoToNextSlide:W}=(0,r.useSlider)(a,_,u,P),[H,Q]=(0,h.useState)(!1),q=(0,h.useRef)(null);return(0,h.useEffect)((()=>{var e;let t;return A&&(t=setTimeout((()=>{var e;Q(!0),null===(e=q.current)||void 0===e||e.play()}),600)),Q(!1),null===(e=q.current)||void 0===e||e.pause(),()=>{clearTimeout(t)}}),[a,A]),(0,s.jsxs)("div",Object.assign({className:(0,d.cx)(m,(0,d.cx)(!R&&"noJsForModalSlider"))},{children:[(0,s.jsx)("div",Object.assign({style:{position:"absolute",top:"calc(100% - 4px)",width:"100%"}},{children:(0,s.jsx)(v.default,Object.assign({value:k,pauseOnClick:!0,className:C,gradient:!1,speed:40,style:{backgroundColor:N}},{children:(0,s.jsx)("div",{className:S,dangerouslySetInnerHTML:{__html:k.replace("

","

      ")}})}))})),(0,s.jsx)("div",Object.assign({ref:L,className:(0,d.cx)("keen-slider",b)},{children:e.map(((e,t)=>(0,n.createElement)(o.Slide,Object.assign({},e,{className:`keen-slider__slide number-slide${t+1}`,key:e.src+t,handleGoToNextSlide:W,isContentCarousel:!0,shouldFade:P}))))})),A&&(0,s.jsx)("div",Object.assign({className:(0,d.cx)(x,H&&f)},{children:(0,s.jsx)("video",{onEnded:D,src:null!=V?V:"",ref:q,loop:I,"webkit-playsInline":!0,playsInline:!0,muted:T})})),!I&&(0,s.jsxs)("button",Object.assign({className:(0,d.cx)("no-translate",g),onClick:i,style:{backgroundColor:y}},{children:[(0,s.jsx)(c.Icons.NutritionAppleIcon,{color:"#fff",width:"14px",height:"16px"}),O.buttons.nutritionFacts]})),V&&(0,s.jsx)(p.VideoControls,{videoSrc:null!=V?V:"",isVideoPlaying:A,isVideoMuted:T,pauseVideo:D,playVideo:E,toggleMuteVideo:F}),(0,s.jsx)(l.CloseButton,{onClick:!I&&A?D:t,className:j})]}))}},93:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VideoControls=void 0;const n=i(0),s=i(5),r=i(2),l=a(i(441)),o=i(6),d=i(43),{wrapper:c,wrapperWithCarrot:u,wrapperPlay:p,wrapperPlayOrbiter:v,wrapperPause:h,wrapperPlayWrapper:m,wrapperPlayWrapperIcon:g,wrapperPlayWrapperVideo:j,wrapperPauseOrbiter:b}=l.default;t.VideoControls=({isVideoPlaying:e,isVideoMuted:t,pauseVideo:i,playVideo:a,toggleMuteVideo:l,videoSrc:x,isOrbiter:f,withCarrot:C=!1})=>{const S=(0,o.useRef)(null);return(0,o.useEffect)((()=>{S.current&&(S.current.playbackRate=.8)}),[S.current]),e?(0,n.jsx)("div",Object.assign({className:(0,r.cx)(c,C&&u)},{children:(0,n.jsx)("button",Object.assign({className:(0,r.cx)(h,f&&b),onClick:l},{children:t?(0,n.jsx)(s.Icons.VideoVolumeOff,{}):(0,n.jsx)(s.Icons.VideoVolumeOn,{})}))})):(0,n.jsx)("button",Object.assign({className:(0,r.cx)(c,p,f&&v,C&&u),onClick:()=>{(0,d.logOutcome)("playedVideo"),a()}},{children:(0,n.jsxs)("div",Object.assign({className:m},{children:[(0,n.jsx)("div",Object.assign({className:j},{children:(0,n.jsx)("video",{ref:S,loop:!0,src:x,autoPlay:!0,"webkit-playsInline":!0,playsInline:!0,muted:!0})})),(0,n.jsx)("div",Object.assign({className:(0,r.cx)(g)},{children:s.Icons.VideoPlay()}))]}))}))}},453:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useMaskOnModalScroll=void 0;const a=i(3);t.useMaskOnModalScroll=()=>{const[e,t]=(0,a.useState)(!1);return{handleModalScroll:(0,a.useCallback)((i=>{const{scrollHeight:a,scrollTop:n,clientHeight:s}=i.currentTarget;if(a-n-s<10)t(!0);else{if(!e)return;t(!1)}}),[e]),shouldHideShadowMask:e}}},682:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useModal=void 0;const a=i(3),n=i(4);t.useModal=e=>{const[t,i]=(0,a.useState)(!1),[s,r]=(0,a.useState)(null),l=(0,a.useCallback)((a=>{(0,n.logOutcome)("clickedSliderItem");const s=e.find((({details:e})=>e.id===a));s&&(r(s),t||i(!0))}),[t,e]),o=(0,a.useCallback)((()=>{i(!1)}),[]);return{currentUpsellProduct:s,isModalOpen:t,handleBundleProductClick:l,handleCloseModal:o}}},685:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlider=void 0,i(9);const a=i(17),n=i(3);t.useSlider=e=>{const[t,i]=(0,n.useState)(!1),[s,r]=(0,n.useState)(0),l=(0,n.useRef)(null),o={slides:{perView:"auto",spacing:e?15:5}},d={loop:!0,slides:{perView:"auto",origin:"center",spacing:15},slideChanged:e=>{var t;r(e.track.details.rel),l.current&&(l.current.style.left=`${((e,t,i=66,a=231)=>e/(t-1)*100*((a-i)/a))(e.track.details.rel,e.slides.length,l.current.clientWidth,null===(t=l.current.parentElement)||void 0===t?void 0:t.clientWidth)}%`)}},[c,u]=(0,a.useKeenSlider)(e?d:o);(0,n.useEffect)((()=>{var t;null===(t=u.current)||void 0===t||t.update(e?d:o)}),[t]);const p=(0,n.useCallback)((e=>{var t;null===(t=u.current)||void 0===t||t.moveToIdx(e)}),[]);return(0,n.useEffect)((()=>{i(!0)}),[]),{ref:c,jsEnabled:t,currentSlideIndex:s,handleMove:p,progressBarRef:l}}},153:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCookie=t.useVideo=void 0;const a=i(3);function n(e){if("undefined"==typeof document)return null;const t=`${e}=`,i=decodeURIComponent(document.cookie).split(";");for(let e=0;e{const[i,s]=(0,a.useState)(!0);(0,a.useEffect)((()=>{const e=null!=typeof window?n("slider_video_audio_muted"):null;t||s("true"===e||null===e)}),[]);const[r,l]=(0,a.useState)(!1);(0,a.useEffect)((()=>{e&&o()}),[e]);const o=()=>{r||l(!0)};return{isVideoPlaying:r,isVideoMuted:i,pauseVideo:()=>r&&l(!1),playVideo:o,toggleMuteVideo:()=>{s((e=>!e)),null==typeof document||t||(document.cookie=`slider_video_audio_muted=${!i}; expires=Tue, 19 Jan 2038 03:14:07 UTC`)}}},t.getCookie=n},123:function(e,t,i){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpsellsToolSlider=void 0;const n=i(1),s=i(0),r=(i(1),i(3)),l=i(202),o=i(204),d=i(77),c=i(680),u=i(221),p=i(13),v=i(103),h=i(93),m=i(5),g=i(2),j=i(153),b=i(681),x=i(682),f=i(683),C=i(685),S=a(i(462)),{wrapper:y,wrapperCart:O,wrapperProducts:w,wrapperCartProducts:_,wrapperCartProductsIsOpen:P,wrapperVideo:M,wrapperVideoContent:k,wrapperHeader:N,wrapperHeaderTitle:I,wrapperHeaderPreview:B,wrapperHeaderPreviewArrow:V,wrapperHeaderPreviewArrowIsOpen:T,wrapperSlide:A,wrapperSlideCart:D,wrapperSlidePdp:E,wrapperSlideContent:F,wrapperSlideContentCart:R,wrapperSlideContentName:L,wrapperSlideContentNameCart:W,wrapperSlideContentNamePdp:H,wrapperSlideContentPrice:Q,wrapperSlideContentPriceCart:q,wrapperSlideContentPricePdp:$,wrapperSlideContentImage:G,wrapperSlideContentImageCart:U,wrapperSlideContentImagePdp:J,wrapperSlideContentPdp:z,wrapperSlideContentPdpActive:K,wrapperSlideContentPdpLeft:X,wrapperSlideContentPdpRight:Z,wrapperPopup:Y,wrapperPopupSpace:ee,wrapperProgress:te,wrapperProgressBar:ie,wrapperProgressBarInner:ae,wrapperButton:ne,noJs:se,noJsPdp:re}=S.default;t.UpsellsToolSlider=({upsellProducts:e,labels:t,addToCartWithPayload:i,currency:a,sliderAutoplay:S,areJetpacksAnimated:te,areReviewsVisible:ie,isTextInButton:ae,isAddToCartAnimation:le,isPdpPopupHidden:oe,newMiniPDPVariation:de,isPdp:ce=!1,styluxFeature:ue,addToCartButton:pe,isNewMiniPdp:ve,isPdpPopupVideo:he,colorOrder:me,hideAddToCartButton:ge})=>{var je,be,xe,fe,Ce,Se;const{ref:ye,jsEnabled:Oe,currentSlideIndex:we,progressBarRef:_e,handleMove:Pe}=(0,C.useSlider)(ce),[Me,ke]=(0,r.useState)(!1),Ne=(0,f.useSound)({up:"https://cdn.shopify.com/s/files/1/0066/4433/4658/files/discountAnimationSound1-bundleSlider.wav?v=1690274520",down:"https://cdn.shopify.com/s/files/1/0066/4433/4658/files/discountAnimationSound3-bundleSlider.wav?v=1690274707",boom:"https://cdn.shopify.com/s/files/1/0066/4433/4658/files/discountAnimationSound2-bundleSlider.wav?v=1690274708",swipe:"https://cdn.shopify.com/s/files/1/0066/4433/4658/files/bundleSlider_slideSound_reduced-bundleSlider.wav?v=1690274707"}),{currentUpsellProduct:Ie,handleBundleProductClick:Be,handleCloseModal:Ve,isModalOpen:Te}=(0,x.useModal)(e),{isVideoMuted:Ae,isVideoPlaying:De,pauseVideo:Ee,playVideo:Fe,toggleMuteVideo:Re}=(0,j.useVideo)(S,ce),[Le,We]=(0,r.useState)(null===(je=e[we])||void 0===je?void 0:je.details.videoWithCarrot.src),[He,Qe]=(0,r.useState)(1);(0,r.useEffect)((()=>{let t=null;Qe(0),t&&clearTimeout(t),t=setTimeout((()=>{var t;We(null===(t=e[we])||void 0===t?void 0:t.details.videoWithCarrot.src),Qe(1)}),400)}),[we]);const qe=!!Ie&&Te;(0,r.useEffect)((()=>{qe?Ee():Fe()}),[qe]),(0,v.usePreventBackgroundScrolling)(qe);const $e=e.filter((e=>!!e.details.image.animated)),Ge=!!(null===(be=e[we])||void 0===be?void 0:be.headingMessage),Ue=!!(null===(xe=e[we])||void 0===xe?void 0:xe.details.videoWithCarrot.src);return(0,s.jsxs)("div",Object.assign({className:(0,g.cx)(y,!ce&&O)},{children:[ce&&!Ge&&!oe&&!he&&(0,s.jsx)("div",{className:ee}),ce&&!oe&&Ge&&!he&&(0,s.jsx)("h3",Object.assign({className:Y},{children:null===(fe=e[we])||void 0===fe?void 0:fe.headingMessage})),ce&&he&&Ue&&(0,s.jsx)("div",Object.assign({className:M},{children:(0,s.jsxs)("div",Object.assign({className:k},{children:[De&&(0,s.jsx)("video",{style:{opacity:He,transition:He?"opacity 0.4s ease-in-out":"opacity 0.2s ease-in-out"},onEnded:Ee,src:Le,autoPlay:!0,loop:S,"webkit-playsInline":!0,playsInline:!0,volume:.6,muted:Ae,width:"383",height:"215",crossOrigin:""}),(ce&&Ue&&De||!Ue)&&(0,s.jsx)("div",Object.assign({style:{opacity:He,transition:He?"opacity 0.4s ease-in-out":"opacity 0.2s ease-in-out"}},{children:(0,s.jsx)(h.VideoControls,{videoSrc:null===(Ce=e[we])||void 0===Ce?void 0:Ce.details.video.src,isVideoPlaying:De,isVideoMuted:Ae,pauseVideo:Ee,playVideo:Fe,toggleMuteVideo:Re,isOrbiter:null===(Se=e[we])||void 0===Se?void 0:Se.payload.some((e=>"orbiter-drinking-lid"===e.product.handle||"jetsetter-insulated-tote"===e.product.handle)),withCarrot:!0})}))]}))})),ce&&he&&!Ue&&(0,s.jsx)("div",{className:M}),!ce&&(0,s.jsxs)("div",Object.assign({className:N,onClick:()=>ke(!Me)},{children:[(0,s.jsx)("h3",Object.assign({className:I},{children:t.recommendedForYou})),(0,s.jsxs)("div",Object.assign({className:B},{children:[e.filter((e=>"blendjet-2"!==e.details.handle)).slice(0,3).map(((e,t)=>(0,n.createElement)(u.CartProductPreview,Object.assign({},e,{key:t+e.displayName+t})))),(0,s.jsx)("button",Object.assign({className:(0,g.cx)(V,Me&&T)},{children:(0,s.jsx)(m.Icons.UpsellCartArrow,{})}))]}))]})),(0,s.jsx)("div",Object.assign({ref:ye,className:(0,g.cx)(w,!ce&&_,!ce&&Me&&P,"keen-slider",ce&&w,!Oe&&se,!Oe&&ce&&re)},{children:e.map(((a,n)=>(0,s.jsx)("div",Object.assign({className:(0,g.cx)("keen-slider__slide",A,ce&&E,!ce&&D)},{children:(0,s.jsxs)("div",Object.assign({className:(0,g.cx)(F,!ce&&R,ce&&z,ce&&n===we&&K,ce&&(0,b.isTwoSlidesOnLeft)(n,we-2,e.length)&&X,ce&&(0,b.isTwoSlidesOnRight)(n,we+2,e.length)&&Z)},{children:[te&&a.details.image.animated?(0,s.jsx)(c.AnimatedImage,{onClick:()=>{ce&&n!==we?Pe(n):Be(a.details.id)},images:a.details.image.animated,order:$e.findIndex((e=>e.details.id===a.details.id))}):(0,s.jsx)("div",Object.assign({className:(0,g.cx)(G,ce&&J,!ce&&U)},{children:(0,s.jsx)("img",Object.assign({onClick:()=>{ce&&n!==we?Pe(n):Be(a.details.id)}},a.details.image.static,{loading:"eager"}))})),(0,s.jsx)("p",Object.assign({onClick:()=>{ce&&n!==we?Pe(n):Be(a.details.id)},className:(0,g.cx)(L,ce&&H,!ce&&W)},{children:a.displayName})),ie&&(0,s.jsx)("div",Object.assign({className:"no-translate"},{children:(0,s.jsx)(d.Rating,{rating:a.details.rating,raters:a.details.raters,shorterRaters:!0})})),(0,s.jsx)("p",Object.assign({className:(0,g.cx)(Q,ce&&$,!ce&&q)},{children:`$${a.details.price}`})),(0,s.jsx)(l.UpsellsToolSliderButton,{addLabel:t.buttons.add,selectLabel:t.buttons.select,addedLabel:t.buttons.added,isVarietyPack:a.withVariants,isTextInButton:ae,productPayload:a.payload,isAddToCartAnimation:ce&&le,addToCartWithPayload:i,isPdp:ce,onClick:()=>{a.withVariants&&(ce&&n!==we?(Be(a.details.id),Pe(n)):Be(a.details.id))}})]}))}),a.displayName)))})),ge&&ce&&!!pe&&(0,s.jsx)("div",Object.assign({className:ne},{children:(0,s.jsx)(p.AddToCartButton,Object.assign({},pe))})),qe&&(0,s.jsx)(o.SelectionModal,{sliderAutoplay:S,soundPack:Ne,upsellProducts:e,currentUpsellProduct:Ie,handleCloseModal:Ve,addToCartWithPayload:i,labels:t,currency:a,handleBundleProductClick:Be,newMiniPDPVariation:de,styluxFeature:ue,isAddToCartAnimation:le&&ce,isNewMiniPdp:ve,colorOrder:me})]}))}},681:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isTwoSlidesOnRight=t.isTwoSlidesOnLeft=t.createInitialCartState=t.filterOutByVariantId=t.getProductByVariantId=t.restoreScrollbar=t.hideScrollbar=void 0;let i=0;t.hideScrollbar=function(){i=window.pageYOffset;const e=document.querySelector(".app");null==e||e.setAttribute("style",`position: fixed; width: calc(100% - (100vw - 100%)); top: -${i}px`),document.documentElement.style.marginRight="calc(100vw - 100%)"},t.restoreScrollbar=function(){const e=document.querySelector(".app");null==e||e.removeAttribute("style"),document.documentElement.style.marginRight="";const t=document.querySelector("html");t.style.scrollBehavior="auto",window.scrollTo(0,i),t.style.scrollBehavior=""},t.getProductByVariantId=(e,t)=>e.find((e=>e.variant.id===t)),t.filterOutByVariantId=(e,t)=>e.filter((e=>e.variant.id!==t)),t.createInitialCartState=e=>e.reduce(((e,t)=>[...e,...t.payload]),[]),t.isTwoSlidesOnLeft=(e,t,i)=>t<0?i+t===e:t===e,t.isTwoSlidesOnRight=(e,t,i)=>t>=i?t-i===e:t===e},683:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSound=void 0;const a=i(684);t.useSound=e=>Object.entries(e).reduce(((e,[t,i])=>Object.assign(Object.assign({},e),{[t]:new a.Howl({src:[i]})})),{})}}]);