"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[40],{70:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.loadLoox=void 0;const i=n(21);t.loadLoox=function(e,t){const n=Object.assign({src:`https://loox.io/widget/loox.js?shop=${e}.myshopify.com`,id:"loox",anonymous:!1},t);(0,i.loadScriptWithDelay)(n)}},95:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});const i=n(0),a=n(1),s=n(3);n(96),t.default=({style:e={},className:t="",play:n=!0,pauseOnHover:r=!1,pauseOnClick:l=!1,direction:o="left",speed:d=20,delay:c=0,loop:u=0,gradient:p=!0,gradientColor:v=[255,255,255],gradientWidth:h=200,onFinish:g,onCycleComplete:m,children:j,value:b})=>{const[x,f]=(0,s.useState)(0),[C,S]=(0,s.useState)(0),[y,O]=(0,s.useState)(0),w=(0,s.useRef)(null),P=(0,s.useRef)(null),_=()=>{P.current&&w.current&&(f(w.current.getBoundingClientRect().width),S(P.current.getBoundingClientRect().width)),O(C(_(),window.addEventListener("resize",_),()=>{window.removeEventListener("resize",_)})));const M=`rgba(${v[0]}, ${v[1]}, ${v[2]}`;return(0,i.jsx)(a.Fragment,{children:(0,i.jsxs)("div",Object.assign({ref:w,style:Object.assign(Object.assign({},e),{"--pause-on-hover":r?"paused":"running","--pause-on-click":l?"paused":"running"}),className:t+" marquee-container"},{children:[p&&(0,i.jsx)("div",{style:{"--gradient-color":`${M}, 1), ${M}, 0)`,"--gradient-width":"number"==typeof h?`${h}px`:h},className:"overlay"}),(0,i.jsx)("div",Object.assign({ref:P,style:{"--play":n?"running":"paused","--direction":"left"===o?"normal":"reverse","--duration":`${y}s`,"--delay":`${c}s`,"--iteration-count":u?`${u}`:"infinite"},className:"marquee",onAnimationIteration:m,onAnimationEnd:g},{children:j})),(0,i.jsx)("div",Object.assign({style:{"--play":n?"running":"paused","--direction":"left"===o?"normal":"reverse","--duration":`${y}s`,"--delay":`${c}s`,"--iteration-count":u?`${u}`:"infinite"},className:"marquee"},{children:j}))]}),null!=b?b:"")})}},43:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureIcon=void 0;const a=n(0),s=(n(1),n(2)),r=i(n(40)),{wrapperIconSvg:l}=r.default,o=n(12),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,a.jsx)("div",Object.assign({className:(0,s.cx)(l,"svg-container "+(t?"svg-container-introducing":""))},{children:d[e]}))}},186:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Content=void 0;const a=n(0),s=(n(1),i(n(458))),{wrapperContent:r,wrapperContentText:l,wrapperContentTextBlock:o,wrapperContentList:d,wrapperContentListSubheading:c,wrapperContentListItems:u,wrapperContentListPlanDetails:p,wrapperContentWhyChoose:v,wrapperContentWhyChooseSupport:h,wrapperContentWhyChooseSupportIcon:g,wrapperContentWhyChooseFees:m,wrapperContentWhyChooseFeesIcon:j}=s.default;t.Content=function(){return(0,a.jsxs)("div",Object.assign({className:r},{children:[(0,a.jsx)("div",Object.assign({className:l},{children:(0,a.jsx)("div",Object.assign({className:o},{children:"Keep your product protected from accidents right away, plus full coverage after manufacturer warranties expire."}))})),(0,a.jsxs)("div",Object.assign({className:d},{children:[(0,a.jsx)("div",Object.assign({className:c},{children:"This plan covers:"})),(0,a.jsxs)("ul",Object.assign({className:u},{children:[(0,a.jsx)("li",{children:"Fast and free product replacements"}),(0,a.jsx)("li",{children:"Accidental damage such as breaks, drops, and spills"}),(0,a.jsx)("li",{children:"Extended malfunction and wear-and-tear protection"})]})),(0,a.jsx)("div",Object.assign({className:p},{children:(0,a.jsx)("a",Object.assign({href:"https://customers.extend.com/plan_details/10003-blendjet-adh-replace-1y",target:"_blank"},{children:"Plan Details"}))}))]})),(0,a.jsxs)("div",Object.assign({className:v},{children:[(0,a.jsxs)("div",Object.assign({className:h},{children:[(0,a.jsx)("img",{className:g,alt:"heart icon",width:"26",height:"24",src:"/fast-image/blendjet/heart.svg"}),"Friendly support 24/7"]})),(0,a.jsxs)("div",Object.assign({className:m},{children:[(0,a.jsx)("img",{className:j,alt:"no cost icon",src:"/fast-image/blendjet/free.svg",width:"22",height:"22"}),"No fees. No deductibles."]}))]}))]}))}},185:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SvgWrapper=void 0;const a=n(0),s=(n(1),i(n(457))),{wrapperSvg:r,wrapperSvgLogoContent:l,wrapperSvgLogoContentLogo:o,wrapperSvgLogoContentPlus:d,wrapperSvgLogoContentMerchantLogo:c}=s.default;t.SvgWrapper=function(){return(0,a.jsx)("div",Object.assign({className:r},{children:(0,a.jsxs)("div",Object.assign({className:l},{children:[(0,a.jsx)("img",{className:o,alt:"extend logo",width:"53",height:"55",src:"/fast-image/blendjet/extend-logo.svg"}),(0,a.jsx)("img",{className:d,alt:"plus icon",width:"14",height:"14",src:"/fast-image/blendjet/plus-icon.svg"}),(0,a.jsx)("img",{className:c,alt:"blendjet logo",width:"512",height:"95",src:"/fast-image/blendjet/logo-5b983c74-8551-478b-ba90-fc531933ca7c.jpg"}),(0,a.jsx)("span",Object.assign({class:"is-sr-only"},{children:"Extend plus BlendJet"}))]}))}))}},456:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AboutExtend=void 0;const i=n(0),a=n(1),s=n(185),r=n(186);t.AboutExtend=function(){return(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)(s.SvgWrapper,{}),(0,i.jsx)(r.Content,{})]})}},691:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnimatedImage=void 0;const i=n(0),a=n(3);t.AnimatedImage=({images:e,onClick:t,order:n})=>{const[s,r]=(0,a.useState)(0);return(0,a.useEffect)((()=>{let t;const i=setTimeout((()=>{t=setInterval((()=>{r((t=>(t+1)%e.length))}),1e3*e.length)}),1e3*n);return()=>{clearTimeout(i),clearInterval(t)}}),[]),(0,i.jsx)("img",Object.assign({onClick:t},e[s],{loading:"eager"}))}},78:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BundleButton=void 0;const a=n(0),s=n(1),r=n(2),l=i(n(465)),{button:o,buttonLabel:d,buttonPrice:c,buttonSelected:u,buttonDisabled:p}=l.default;t.BundleButton=({onClick:e,label:t="",price:n,isProductSelected:i=!1,className:v="",disabled:h=!1})=>(0,a.jsxs)("button",Object.assign({disabled:h,onClick:e,className:(0,r.cx)(o,i&&u,v&&l.default[v],h&&p)},{children:[(0,a.jsx)("span",Object.assign({className:(0,r.cx)("no-translate",d)},{children:t})),n&&n.length>0?(0,a.jsx)(s.Fragment,{children:(0,a.jsxs)("span",Object.assign({className:(0,r.cx)("no-translate",c)},{children:[" — ",n," "]}))}):null]}))},211:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BundleReviews=void 0;const a=n(0),s=(n(1),n(3)),r=n(2),l=i(n(482)),{reviews:o,bundleSliderReviews:d}=l.default,c=n(70);t.BundleReviews=function({id:e}){return(0,s.useEffect)((()=>{console.log("BUNDLE LOOX INIT FOR ID:",e),(0,c.loadLoox)("blendjet")}),[e]),(0,a.jsx)("div",Object.assign({id:"reviews",class:(0,r.cx)(d,o)},{children:(0,a.jsx)("div",{id:"looxReviews",class:"loox-reviews","data-product-id":e})}))}},212:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CartProductPreview=void 0;const a=n(0),s=i(n(483)),{wrapper:r}=s.default;t.CartProductPreview=({details:e})=>(0,a.jsx)("div",Object.assign({className:r},{children:(0,a.jsx)("img",{src:e.image.static.src,alt:""})}))},58:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CloseButton=void 0;const a=n(0),s=n(2),r=i(n(460)),{wrapper:l}=r.default;t.CloseButton=({onClick:e,className:t,isBlue:n})=>(0,a.jsx)("div",{className:(0,s.cx)(l,t),style:{"--closeButtonColor":n?"#363a71":"#fff"},onClick:e})},201:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConfirmationModal=void 0;const a=n(0),s=n(1),r=i(n(468)),{backdrop:l,backdropModal:o,backdropModalContainer:d,backdropModalContainerDescription:c,backdropModalContainerButtons:u,backdropModalContainerButtonsYes:p,backdropModalContainerButtonsNo:v,backdropHidden:h,backdropHiddenModal:g,backdropHiddenModalContainer:m}=r.default;t.ConfirmationModal=({closeModal:e,isOpen:t,labels:n,additionalAcceptAction:i,isRandomJPConfirmation:r,isResetAndRandomJPConfirmation:j})=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)("div",{className:t?l:h}),(0,a.jsx)("div",Object.assign({className:t?o:g},{children:(0,a.jsxs)("div",Object.assign({className:t?d:m},{children:[(0,a.jsx)("div",Object.assign({className:c},{children:j?n.confirmationRandomResetModalTitle:r?n.confirmationRandomModalTitle:n.confirmationModalTitle})),(0,a.jsxs)("div",Object.assign({className:u},{children:[(0,a.jsx)("div",Object.assign({className:p,onClick:()=>{e(!0),i&&i()}},{children:n.buttons.yes})),(0,a.jsx)("div",Object.assign({className:v,onClick:()=>e(!1)},{children:n.buttons.no}))]}))]}))}))]})},204:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;const a=n(0),s=n(3),r=n(2),l=n(205),o=n(471),d=i(n(474)),c=n(6),{container:u,containerHolder:p,containerHolderAnimation:v,containerMask:h,containerMaskDone:g,containerMaskAnimation:m,containerText:j,containerTextDone:b,containerTextAnimation:x,containerBottomText:f,containerBottomTextDone:C,containerBottomTextAnimation:S}=d.default;t.Circle=e=>{const[t,n]=(0,s.useState)(e.currentValue),[i,d]=(0,s.useState)(!1),[y,O]=(0,s.useState)(!0),{inCircleText:w,bottomText:P,currentValue:_,index:M}=e,k=Number(w),N=k===_,I=_>=k;return(0,c.useEffect)((()=>{d(_>t),n(_),i&&O(!1),[12,24,36].includes(_)&&!y&&i&&e.boom.play()}),[_,t]),(0,a.jsxs)("div",Object.assign({className:u},{children:[(0,a.jsxs)("div",Object.assign({className:(0,r.cx)(p,i&&N&&v)},{children:[(0,a.jsx)("div",{style:{height:(0,o.calculateCircleMaskHeight)({currentValue:_,inCircleValue:k,index:M,canAnimationBe:N})},className:(0,r.cx)(h,I&&g,i&&N&&m)}),(0,a.jsx)("p",Object.assign({className:(0,r.cx)(j,I&&b,i&&N&&x)},{children:w}))]})),!y&&(N||I)&&(0,a.jsx)(l.Star,{}),(0,a.jsx)("p",Object.assign({className:(0,r.cx)(f,I&&C,i&&N&&S)},{children:P}))]}))}},684:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Line=void 0;const i=n(0);t.Line=({percentage:e,amount:t,unWantedIndexes:n})=>{const a=e/100*200,s=a+1.75;return(0,i.jsxs)("svg",Object.assign({width:"200",height:"32",viewBox:"0 0 200 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,i.jsx)("line",{x1:"0",y1:"20",x2:"200",y2:"20",stroke:"#E2E3F6",strokeWidth:"2",strokeDasharray:"5 5"}),e>0&&(0,i.jsxs)("g",{children:[(0,i.jsx)("rect",{x:"0",y:"19",width:a,height:"2",fill:"#8DCD03"}),(0,i.jsxs)("g",Object.assign({opacity:n.includes(t)?0:1},{children:[(0,i.jsx)("circle",{cx:s,cy:"19",r:"12",fill:"#ffffff",stroke:"#8DCD03",strokeWidth:"2"}),(0,i.jsx)("text",Object.assign({x:s,y:"23",fontSize:"11",textAnchor:"middle",fill:"#2c2c77"},{children:t}))]}))]})]}))}},205:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Star=void 0;const a=n(0),s=n(2),r=i(n(473)),{container:l,containerHolder:o,containerStar:d}=r.default;t.Star=({})=>(0,a.jsx)("div",Object.assign({className:l},{children:(0,a.jsx)("div",Object.assign({className:(0,s.cx)(o)},{children:["350deg","230deg","120deg","30deg","0deg"].map(((e,t)=>(0,a.jsx)("div",{style:{rotate:e},className:d},t)))}))}))},203:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DiscountProgress=void 0;const a=n(0),s=n(471),r=i(n(472)),l=n(204),o=n(684),{container:d,containerHolder:c}=r.default;t.DiscountProgress=({keys:e,quantity:t,unWantedIndexes:n,boom:i})=>(0,a.jsxs)("div",Object.assign({className:d},{children:[(0,a.jsx)("div",Object.assign({className:c},{children:(0,a.jsx)(o.Line,{amount:t,percentage:(0,s.calculatePercentage)({amount:t}),unWantedIndexes:n})})),e.map(((e,n)=>(0,a.jsx)(l.Circle,Object.assign({boom:i,index:n,currentValue:t},e),n)))]}))},471:(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:n,canAnimationBe:i,index:a}=e;return t>n?"100%":0===a&&t<12?t/12*100+"%":1===a&&t>=12&&t<24?Math.abs(t-12)/12*100+"%":2===a&&t>=24&&t<36?Math.abs(t-24)/12*100+"%":i?"100%":"0%"}},680:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useModalContentCarousel=void 0;const i=n(3),a=n(2),s=["Strawberry Banana","Chocolate Peanut Butter Banana","Peanut Butter Power Breakfast","Blueberry Acai"];t.useModalContentCarousel=(e,t,n,r,l)=>{const[o,d]=(0,i.useState)(!1),[c,u]=(0,i.useState)(0),p=(0,i.useRef)(null),v=(0,i.useCallback)((()=>{var e;d(!0),null===(e=p.current)||void 0===e||e.scrollTo({top:0,behavior:"smooth"})}),[]),h=(0,i.useCallback)((()=>{d(!1)}),[]),g=(0,i.useCallback)((e=>{u(e)}),[]),[m,j]=(0,i.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,i.useState)(void 0),[y,O]=(0,i.useState)(0),[w,P]=(0,i.useState)(0);(0,i.useEffect)((()=>{var n,i;const a=e.find((e=>e.details.varietyPackVariants.find((e=>e.cartImage.src===f[c].src)))),s=a?a.details.varietyPackVariants.findIndex((e=>e.cartImage.src===f[c].src)):0,r=x.findIndex((e=>e.src===x[c].src));t(null!==(i=null===(n=null==a?void 0:a.payload[0])||void 0===n?void 0:n.product.id)&&void 0!==i?i:""),S(a),P(s),O(r)}),[c]);const _=e.reduce(((e,{payload:t})=>[...e,...t]),[]),[M,k]=(0,i.useState)(_),N=M.some((e=>e.isSubscription)),[I,B]=(0,i.useState)(0);return(0,i.useEffect)((()=>{var e,t;const i=M.reduce(((e,t)=>e+t.quantity),0);if(i<12)return void B(0);const s=(0,a.lookupLocalPrice)(`${M[0].variant.id}${N?":subscription":""}`,n,N?(0,a.applyDiscount)(null!==(e=M[0].variant.price)&&void 0!==e?e:0,25):null!==(t=M[0].variant.price)&&void 0!==t?t:0);i>=36?B(Math.ceil(20*s)/100*i):i>=24?B(Math.ceil(15*s)/100*i):i>=12&&B(Math.ceil(10*s)/100*i)}),[M]),{isNutritionOpen:o,scrollContainer:p,currentCardIndex:c,slidesForImages:b,slidesForVideo:x,currentVideoIndex:y,currentSlider:m,currentImageIndex:w,varietyImages:f,currentObjectOfVarieties:C,setCurrentSlider:j,handleOpenNutritionModal:v,handleCloseNutritionModal:h,updateCurrentCardIdx:g,jetpacksPayload:M,getRandomJetpacks:()=>{const e=_.filter((e=>e.product.productType.includes("Jetpack"))),t=e.map((e=>e.variant.title)),n=()=>{const e=t.filter((e=>s.includes(e))),n=[...t,...e];return n[Math.floor(Math.random()*n.length)]||""},i=(()=>{let e={};for(let t=0;t<12;t++){let t=n();for(;e[t]>=3;)t=n();e[t]?e[t]++:e[t]=1}return e})(),a=e.map((e=>{const t=Object.entries(i).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(a),i},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(_)}}}},197:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalContentCarousel=void 0;const a=n(0),s=n(1),r=n(3),l=n(198),o=n(680),d=n(78),c=n(2),u=n(199),p=n(200),v=i(n(470)),h=n(56),g=n(4),m=n(203),j=n(59),b=n(475),x=n(12),f=n(141),C=n(5),S="sliderAddToCartAnimation",y=(0,C.getAssignment)(S),{container:O,containerWrapper:w,containerWrapperInfo:P,containerWrapperSlider:_,containerCheckbox:M,containerCheckboxChecked:k,containerCheckboxFake:N,containerWrapperLogo:I,containerWrapperTitle:B,containerWrapperActive:V,containerWrapperReviews:T,containerWrapperBottom:A,containerWrapperBottomCheckboxWrapper:D,containerWrapperBottomButton:E,containerWrapperBottomShipsMonthly:R,containerWrapperBottomButtonHideShadow:F,containerWrapperBottomButtonActive:L}=v.default;t.ModalContentCarousel=({currentVarietyPack:e,varietyPackProducts:t,handleCloseModal:n,currency:i,labels:v,setIsReviewsOpen:C,setCurrentProductID:W,boom:H,down:$,up:q,swipe:Q,sliderAutoplay:G,addToCartWithPayload:U,isAddToCartAnimation:z})=>{const{isNutritionOpen:J,scrollContainer:X,currentCardIndex:K,currentSlider:Z,slidesForImages:Y,slidesForVideo:ee,currentImageIndex:te,currentObjectOfVarieties:ne,handleCloseNutritionModal:ie,handleOpenNutritionModal:ae,updateCurrentCardIdx:se,jetpacksPayload:re,getRandomJetpacks:le,activateSubscriptionOfSelectedProducts:oe,deactivateSubscriptionOfSelectedProducts:de,isActiveSubscriptionOfSelectedProducts:ce,specialDiscount:ue,addQuantity:pe,substractQuantity:ve,resetQuantities:he}=(0,o.useModalContentCarousel)(t,W,i,$,q),{varietyPackVariants:ge,infoWithIcons:me,rating:je,raters:be}=(null==ne?void 0:ne.details)||e.details,{handleModalScroll:xe,shouldHideShadowMask:fe}=(0,b.useMaskOnModalScroll)(),Ce=ge[te],Se=re.reduce(((e,t)=>e+t.quantity),0);if(!Ce)return(0,a.jsx)(s.Fragment,{});const{nutritionDetails:ye,description:Oe,title:we,color:Pe}=Ce,_e=Oe.trim().length>0,Me=(0,r.useMemo)((()=>re.reduce(((e,t)=>e+(0,c.lookupLocalPrice)(`${t.variant.id}${ce?":subscription":""}`,i,ce?(0,c.applyDiscount)(t.variant.price,25):t.variant.price)*t.quantity),0)-ue),[re,i,ce,ue]),ke=(0,c.priceToLocalString)(Me,i),Ne=!/[^0123456789][0].[0][0]/.test(ke)&&!/^0.00/.test(ke)&&Me>0?ke:void 0,[Ie,Be]=(0,r.useState)(!1),Ve=re.findIndex((({variant:{id:t}})=>(null==e?void 0:e.payload.findIndex((({variant:{id:e}})=>e===t)))>-1)),Te=(0,f.useVideo)(G);return(0,a.jsx)("div",Object.assign({className:O},{children:(0,a.jsxs)("div",Object.assign({className:(0,c.cx)(w,J&&V),onScroll:xe,ref:X},{children:[(0,a.jsxs)("div",Object.assign({className:_},{children:[(0,a.jsx)(l.VarietyPackSlider,{marqueeColor:Pe,marqueeText:Oe,useVideoProps:Te,updateCurrentCardIdx:se,slidesForImages:Y,currentSlider:Z,handleCloseModal:n,openNutritionModal:ae,currentCardIndex:K,initialSlideNumber:Ve,variantColor:Pe,labels:v,video:ee,shouldFade:Ie,onlyVideo:G}),(0,a.jsx)(u.NutritionModalAnimated,Object.assign({isOpen:J,handleCloseNutritionModal:ie},ye))]})),(0,a.jsxs)("div",Object.assign({className:P},{children:[(0,a.jsx)("div",Object.assign({className:I},{children:(0,a.jsx)(g.Icons.JetPackLogoIcon,{width:"96px",height:"24px",color:"#C9CDCD"})})),(0,a.jsx)("h3",Object.assign({className:B},{children:we})),(0,a.jsx)("div",Object.assign({onClick:()=>C(!0),className:`${T} no-translate`},{children:(0,a.jsx)(j.Rating,{rating:je,raters:be})})),(0,a.jsx)(m.DiscountProgress,{boom:H,quantity:Se,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,a.jsx)(p.VarietyPackCarousel,{swipe:Q,down:$,up:q,currentCardIndex:K,initialSlide:Ve,getRandomJetpacks:le,updateCurrentCardIdx:se,addQuantity:()=>pe(re[K].variant.id),substractQuantity:()=>ve(re[K].variant.id),resetQuantities:he,isNutritionOpen:J,setShouldFade:Be,labels:v,jetpacksPayload:re}),me.length&&(0,a.jsx)("div",Object.assign({className:(0,c.cx)(A)},{children:(0,a.jsx)(h.ProductInfoWithIcons,{infoWithIcons:me})})),(0,a.jsxs)("div",Object.assign({className:(0,c.cx)(E,J&&L,(fe||!_e)&&F)},{children:[(0,a.jsxs)("div",Object.assign({onClick:()=>{ce?de():oe()},className:D},{children:[(0,a.jsxs)("div",Object.assign({className:(0,c.cx)(M,ce&&k)},{children:[(0,a.jsx)("input",{checked:ce,className:N,type:"checkbox"}),ce&&x.CheckedIcon]})),(0,a.jsx)("p",Object.assign({className:R},{children:v.buttons.subscribeAndSave}))]})),(0,a.jsx)(d.BundleButton,{label:v.buttons.addToCart,onClick:e=>{var t;U(re,z?e:void 0,z?Se:void 0),n(),y&&(null===(t=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===t||t.postExposure(`${S}`,y))},price:Ne,disabled:0===Se})]}))]}))]}))}))}},689:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useControls=void 0;const i=n(3),a=n(2),s=n(5),r="sliderAddToCartAnimation",l=(0,s.getAssignment)(r);t.useControls=({payload:e,variants:t,addToCartWithPayload:n,handleCloseModal:s,isAddToCartAnimation:o,currency:d})=>{const[c,u]=(0,i.useState)(1),[p,v]=(0,i.useState)(t[0]),[h,g]=(0,i.useState)(!1),[m,j]=(0,i.useState)(e);(0,i.useEffect)((()=>{j((e=>{const[t]=e;return[Object.assign(Object.assign({},t),{variant:p,quantity:c})]}))}),[c,p.id]);const b=(0,a.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 n=t.find((({id:t})=>e===t));n&&v(n)},toggleOpenDrawer:()=>{g((e=>!e))},isDrawerOpen:h,handleAddToCart:e=>{var t;n(m,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}}},210:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Controls=void 0;const a=n(0),s=n(17),r=i(n(480)),l=n(689),o=n(18),d=n(2),c=n(690),u=n(0),p=n(78),v=n(58),h=n(12),{wrapper:g,wrapperHideShadow:m,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:n,variants:i,payload:r,addToCartLabel:w,currency:P,addToCartWithPayload:_,handleCloseModal:M,isAddToCartAnimation:k})=>{var N,I;const{decrementQuantity:B,incrementQuantity:V,quantity:T,handleSwatchClick:A,selectedVariant:D,isDrawerOpen:E,toggleOpenDrawer:R,displayPrice:F,handleAddToCart:L}=(0,l.useControls)({variants:i,payload:r,addToCartWithPayload:_,handleCloseModal:M,isAddToCartAnimation:k,currency:P}),W=(0,c.getExtendedColorOrder)(e,i),H=W.find((({variantId:e})=>e===D.id));return(0,a.jsxs)(u.Fragment,{children:[(0,a.jsxs)("div",Object.assign({className:(0,d.cx)(g,(t||!n)&&m)},{children:[E?(0,a.jsx)("button",Object.assign({onClick:R,className:j},{children:h.dropDown})):(0,a.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:R,size:"large"}),(0,a.jsx)("div",Object.assign({className:O},{children:(0,a.jsx)(s.QuantitySelector,{quantity:T,decrementQuantity:B,incrementQuantity:V,height:"large"})})),(0,a.jsx)(p.BundleButton,{label:w,price:F,onClick:L})]})),(0,a.jsxs)("div",Object.assign({className:(0,d.cx)(b,E&&f)},{children:[(0,a.jsx)("div",Object.assign({className:x},{children:(0,a.jsx)(v.CloseButton,{onClick:M})})),(0,a.jsx)("div",Object.assign({className:C},{children:(0,a.jsx)("img",Object.assign({},D.image))})),(0,a.jsxs)("div",Object.assign({className:S},{children:[(0,a.jsx)("h6",{children:"color:"}),(0,a.jsx)("h6",{children:D.title})]})),(0,a.jsx)("div",Object.assign({className:y},{children:W.map((({swatch:e,swatch_src:t,swatch_hex:n,id:i,variantId:s})=>(0,a.jsx)(o.ProductOptionSwatch,{colorId:e,swatch_src:t,swatch_hex:n,isSelected:e===D.colorId,swatchClicked:()=>{A(s)},isInSelect:!0})))}))]}))]})}},690:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getExtendedColorOrder=void 0,t.getExtendedColorOrder=(e,t)=>e.reduce(((e,n)=>{const i=t.find((({colorId:e})=>e===n.swatch));return i?[...e,Object.assign(Object.assign({},n),{variantId:i.id})]:e}),[])},208:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Divider=void 0;const a=n(0),s=i(n(479)),{wrapper:r}=s.default;t.Divider=()=>(0,a.jsx)("div",Object.assign({className:r},{children:"or"}))},206:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalContentSimple=void 0;const a=n(0),s=n(2),r=n(78),l=n(207),o=n(475),d=i(n(478)),c=n(59),u=n(43),p=n(208),v=n(79),h=(n(1),n(5)),g=n(210),{wrapper:m,wrapperSlider:j,wrapperContentSwitch:b,wrapperContentSwitchButton:x,wrapperContentSwitchButtonActive:f,wrapperContent:C,wrapperContentStylux:S,wrapperContentBundle:y,wrapperContentOld:O,wrapperContentReviews:w,wrapperContentTitle:P,wrapperContentTitleOld:_,wrapperContentTitleSmaller:M,wrapperContentSubtitle:k,wrapperContentDescription:N,wrapperContentDescriptionOld:I,wrapperButton:B,wrapperButtonHideShadow:V,wrapperContentIcons:T,wrapperContentIconsOld:A,wrapperContentIconsSingle:D,wrapperStylux:E,wrapperStyluxHideShadow:R,wrapperWithStylux:F,wrapperBundle:L,wrapperBundleBottom:W,wrapperBundleButton:H,wrapperBundleHideShadow:$,wrapperBundleTitle:q,wrapperBundleImages:Q,wrapperWithBundle:G,wrapperWithBlendjet:U}=d.default,z="sliderAddToCartAnimation",J=(0,h.getAssignment)(z);t.ModalContentSimple=({details:e,handleCloseModal:t,setIsReviewsOpen:n,labels:i,sliderAutoplay:d,currency:h,handleBundleProductClick:X,newMiniPDPVariation:K,styluxFeature:Z,addToCartWithPayload:Y,isAddToCartAnimation:ee,isNewMiniPdp:te,payload:ne,colorOrder:ie})=>{var ae,se,re,le,oe,de,ce,ue,pe,ve;const{handleModalScroll:he,shouldHideShadowMask:ge}=(0,o.useMaskOnModalScroll)(),{carouselMedia:me,price:je,title:be,subtitle:xe,description:fe,rating:Ce,raters:Se,id:ye,handle:Oe,video:we,infoWithIcons:Pe,similarProducts:_e,productTitle:Me,variants:ke}=e,Ne="blendjet-2"===Oe,Ie=e=>{var n;t(),Y(ne,ee?e:void 0),J&&(null===(n=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===n||n.postExposure(`${z}`,J))},Be="recipe-book"===Oe||"next-gen-blending-volume-2"===Oe||!te||Ne?Pe:Pe.slice(0,3),Ve=(0,s.getDisplayPrice)(ye,String(je),h),Te=fe.trim().length>0,Ae=fe.replace(/<\/?a[^>]*>/g,""),De=Z.variantsMapping[ye],Ee=(0,s.getDisplayPrice)(null!==(ae=null==De?void 0:De.id)&&void 0!==ae?ae:ye,null!==(se=null==De?void 0:De.price)&&void 0!==se?se:ne[0].variant.price,h),Re=null===(ce=100*Number(null!==(re=null==De?void 0:De.price)&&void 0!==re?re:0)-100*Number(null!==(de=null===(oe=null===(le=ne[0])||void 0===le?void 0:le.variant)||void 0===oe?void 0:oe.price)&&void 0!==de?de:0))||void 0===ce?void 0:ce.toString(),Fe=Object.assign(Object.assign({},ne[0]),{product:Object.assign(Object.assign({},ne[0].product),{title:null!==(ue=null==De?void 0:De.productTitle)&&void 0!==ue?ue:ne[0].product.title}),variant:Object.assign(Object.assign({},ne[0].variant),De)}),Le=!!De&&["jetsetter-insulated-sleeve","large-jetsetter-insulated-sleeve","xl-jetsetter-insulated-sleeve"].includes(Oe)&&"stylux"===K&&te,We="bundle"===K&&!!e.bundle&&te,He=!Le&&!We&&!Ne,$e=null!==(ve=null===(pe=e.bundle)||void 0===pe?void 0:pe.reduce(((e,t)=>e+Number(t.payload.reduce(((e,t)=>e+Number(t.variant.price)),0))),0).toFixed(2))&&void 0!==ve?ve:"",qe=`${i.buttons.addBundleToCart} - $${$e}`;return(0,a.jsxs)("div",Object.assign({className:(0,s.cx)(m,Le&&F,We&&G,Ne&&U),onScroll:he},{children:[(0,a.jsx)("div",Object.assign({className:j},{children:(0,a.jsx)(l.Slider,{sliderAutoplay:d,handle:Oe,carouselMedia:me,handleCloseModal:t,video:we,currentUpsellProductId:ye,isModalContentSimple:!0})})),(0,a.jsxs)("div",Object.assign({className:(0,s.cx)(C,!te&&O,Le&&S,We&&y)},{children:[te&&!!_e.length&&(0,a.jsx)("div",Object.assign({className:b},{children:_e.map((({id:e,label:t})=>(0,a.jsx)("button",Object.assign({className:(0,s.cx)(x,e===ye&&f),onClick:()=>{X(e)}},{children:t}),e)))})),te?(0,a.jsx)("p",Object.assign({className:(0,s.cx)(P,"no-translate",!!xe&&M)},{children:be})):(0,a.jsx)("p",Object.assign({className:(0,s.cx)(_,"no-translate")},{children:Me})),te&&!!xe&&(0,a.jsx)("p",Object.assign({className:(0,s.cx)(k,"no-translate")},{children:xe})),(0,a.jsx)("div",Object.assign({onClick:()=>{n(!0)},className:`${w} no-translate`},{children:(0,a.jsx)(c.Rating,{rating:Ce,raters:Se,largeStars:te})})),Te&&(0,a.jsx)("div",{className:(0,s.cx)(N,!te&&I),dangerouslySetInnerHTML:{__html:Ae}}),(0,a.jsx)("div",Object.assign({className:(0,s.cx)(T,!te&&A)},{children:Be.map((({icon:e,title:t})=>(0,a.jsxs)("div",Object.assign({className:D},{children:[(0,a.jsx)("div",{children:(0,a.jsx)(u.FeatureIcon,{name:e})}),(0,a.jsx)("p",{children:t})]}),t)))}))]})),He&&(0,a.jsx)("div",Object.assign({className:(0,s.cx)(B,(ge||!Te)&&V)},{children:(0,a.jsx)(r.BundleButton,{label:i.buttons.addToCart,price:Ve,onClick:Ie})})),Le&&(0,a.jsxs)("div",Object.assign({className:(0,s.cx)(E,(ge||!Te)&&R)},{children:[(0,a.jsx)(v.StyluxFeature,{labels:Z.labels,image:{src:me[0].src,alt:me[0].alt},displayPrice:Ee,payload:Fe,addToCartWithPayload:Y,onSubmit:t,styluxAddToCartAnimation:ee,styluxPersonalizationPrice:Re}),(0,a.jsx)(p.Divider,{}),(0,a.jsx)(r.BundleButton,{label:i.buttons.addToCart,price:Ve,onClick:Ie})]})),We&&!!e.bundle&&(0,a.jsxs)("div",Object.assign({className:(0,s.cx)(L,We&&W,(ge||!Te)&&$)},{children:[(0,a.jsx)(r.BundleButton,{label:i.buttons.addToCart,price:Ve,onClick:Ie}),(0,a.jsx)(p.Divider,{}),(0,a.jsx)("p",Object.assign({className:q},{children:e.bundle.map((e=>e.displayName)).join(" + ")})),(0,a.jsx)("div",Object.assign({className:Q},{children:e.bundle.map((e=>(0,a.jsx)("img",Object.assign({},e.payload[0].variant.cartImage),e.payload[0].variant.id)))})),(0,a.jsx)("button",Object.assign({onClick:n=>{var i;const a=e.bundle.reduce(((e,t)=>[...e,...t.payload]),[]);Y(a,ee?n:void 0,ee?a.length:void 0),t(),J&&(null===(i=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===i||i.postExposure(`${z}`,J))},className:H},{children:qe}))]})),Ne&&!!ke.length&&(0,a.jsx)(g.Controls,{colorOrder:ie,shouldHideShadowMask:ge,hasDescription:Te,variants:ke,payload:ne,currency:h,addToCartLabel:i.buttons.addToCart,addToCartWithPayload:Y,isAddToCartAnimation:ee,handleCloseModal:t})]}))}},199:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NutritionModalAnimated=void 0;const a=n(0),s=n(1),r=n(2),l=i(n(466)),o=n(3),{baseSlideLeftOver:d,baseSlideLeftOverActive:c,baseSlideLeftOverDisabled:u,baseSlidePointToScroll:p,modal:v,modalActive:h,modalDisabled:g,modalContent:m,modalContentActive:j,modalContentDisabled:b,modalContentCard:x,modalContentCardActive:f,modalContentCardDisabled:C,modalContentCardFront:S,modalContentCardBack:y,modalContentCardBackClose:O,backdrop:w,backdropActive:P,backdropDisabled:_}=l.default;t.NutritionModalAnimated=({backImage:e,frontImage:t,handleCloseNutritionModal:n,isOpen:i,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");i?(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,i]),(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)("div",{style:{"--left":`${M}`},className:(0,r.cx)(d,N?i?c:u:"")}),(0,a.jsx)("div",{ref:B,className:p}),(0,a.jsx)("div",{className:(0,r.cx)(w,N?i?P:_:"")}),(0,a.jsx)("div",Object.assign({style:{"--left":`${M}`},className:(0,r.cx)(v,N?i?h:g:"")},{children:(0,a.jsx)("div",Object.assign({className:(0,r.cx)(m,N?i?j:b:"")},{children:(0,a.jsxs)("div",Object.assign({className:(0,r.cx)(x,N?i?f:C:"")},{children:[(0,a.jsx)("div",Object.assign({className:S},{children:(0,a.jsx)("img",Object.assign({},t))})),(0,a.jsxs)("div",Object.assign({className:y},{children:[(0,a.jsx)("img",Object.assign({},e)),(0,a.jsx)("button",Object.assign({onClick:()=>n(),className:O},{children:(0,a.jsx)("span",{style:{"--closeButtonColor":"#FFF"}})}))]}))]}))}))}))]})}},56:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProductInfoWithIcons=void 0;const a=n(0),s=(n(1),n(43)),r=i(n(97)),{wrapper:l,wrapperItem:o,wrapperItemTitle:d}=r.default;t.ProductInfoWithIcons=({infoWithIcons:e})=>e.length?(0,a.jsx)("div",Object.assign({className:l},{children:e.map((e=>(0,a.jsxs)("div",Object.assign({className:o},{children:[(0,a.jsx)(s.FeatureIcon,{name:e.icon}),(0,a.jsx)("p",Object.assign({className:d},{children:e.title}))]}))))})):null},677:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSelectionModal=void 0;const i=n(3);t.useSelectionModal=function(e){return{modalContainer:(0,i.useRef)(null),handleClose:t=>{t.target===t.currentTarget&&e()}}}},196:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModal=void 0;const a=n(0),s=n(677),r=n(197),l=n(206),o=n(62),d=i(n(481)),c=n(3),u=n(58),p=n(211),{spinner:v,spinnerWrapper:h,modal:g,modalClose:m,modalBackdrop:j,modalReviews:b,modalReviewsButton:x}=d.default;t.SelectionModal=function({upsellProducts:e,currentUpsellProduct:t,currency:n,labels:i,handleCloseModal:d,addToCartWithPayload:f,soundPack:C,sliderAutoplay:S,handleBundleProductClick:y,newMiniPDPVariation:O,styluxFeature:w,isAddToCartAnimation:P,isNewMiniPdp:_,colorOrder:M}){var k;const{modalContainer:N,handleClose:I}=(0,s.useSelectionModal)(d),{id:B}=t.details,{withVariants:V}=t||{},[T,A]=(0,c.useState)(!1),[D,E]=(0,c.useState)((null===(k=t.payload.find((e=>e.variant.id===B)))||void 0===k?void 0:k.variant.id)||"");return(0,a.jsx)(o.Portal,{children:(0,a.jsx)("div",Object.assign({className:j,onClick:I},{children:(0,a.jsxs)("div",Object.assign({className:g,ref:N},{children:[V?(0,a.jsx)(r.ModalContentCarousel,Object.assign({sliderAutoplay:S},C,{setCurrentProductID:E,setIsReviewsOpen:A,currentVarietyPack:t,varietyPackProducts:e.filter((e=>e.withVariants)),handleCloseModal:d,addToCartWithPayload:f,labels:i,currency:n,isAddToCartAnimation:P})):(0,a.jsx)(l.ModalContentSimple,{sliderAutoplay:S,setIsReviewsOpen:A,details:t.details,handleCloseModal:d,handleBundleProductClick:y,payload:t.payload,addToCartWithPayload:f,labels:i,currency:n,newMiniPDPVariation:O,styluxFeature:w,isAddToCartAnimation:P,isNewMiniPdp:_,colorOrder:M}),T&&(0,a.jsxs)("div",Object.assign({className:b},{children:[(0,a.jsx)(u.CloseButton,{isBlue:!0,onClick:()=>A(!1),className:x}),(0,a.jsx)("div",Object.assign({className:h},{children:(0,a.jsxs)("div",Object.assign({className:v},{children:[(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{})]}))})),(0,a.jsx)(p.BundleReviews,{id:D})]})),(0,a.jsx)(u.CloseButton,{onClick:d,className:m})]}))}))})}},679:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useVideoSlide=void 0;const i=n(3);t.useVideoSlide=(e,t)=>{var n,a;const s=(0,i.useRef)(null),[r,l]=(0,i.useState)(!0),[o,d]=(0,i.useState)(!1),[c,u]=(0,i.useState)(!1),[p,v]=(0,i.useState)(!1);v(Boolean((null===(n=s.current)||void 0===n?void 0:n.webkitAudioDecodedByteCount)||(null===(a=s.current)||void 0===a?void 0:a.mozHasAudio)));const h=(0,i.useCallback)((()=>{s.current&&(s.current.play(),l(!0))}),[]),g=(0,i.useCallback)((()=>{s.current&&(s.current.pause(),l(!1))}),[]),m=(0,i.useCallback)((()=>{s.current&&(s.current.muted=!o,d(!o))}),[o]),j=(0,i.useCallback)((()=>{t||(e(),l(!1),d(!1),v(!1))}),[e]),b=(0,i.useCallback)((()=>{setTimeout((()=>{u(!0)}),1e3)}),[]);return(0,i.useEffect)((()=>{s.current||setTimeout((()=>{u(!0)}),1e3)}),[]),{isVideoOn:r,isMuted:o,video:s,hasLoaded:c,hasAudio:p,handlePlayVideo:h,handlePauseVideo:g,toggleMuteVideo:m,handleVideoEnd:j,handleMediaLoadEnd:b}}},115:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Slide=void 0;const a=n(0),s=n(1),r=n(2),l=n(679),o=n(4),d=i(n(461)),{slide:c,slideButton:u,slideButtonPlay:p,slideButtonSound:v,slideLoader:h,slideImage:g,slideImageFade:m}=d.default;t.Slide=({alt:e,src:t,type:n,className:i,isContentCarousel:d,handleGoToNextSlide:j,shouldFade:b})=>{const x="video"===n,{isMuted:f,video:C,isVideoOn:S,hasLoaded:y,hasAudio:O,toggleMuteVideo:w,handlePauseVideo:P,handlePlayVideo:_,handleVideoEnd:M,handleMediaLoadEnd:k}=(0,l.useVideoSlide)(j,d);return(0,a.jsx)("div",Object.assign({className:(0,r.cx)(c,i,!y&&h)},{children:x?(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)("video",Object.assign({"webkit-playsInline":!0,playsInline:!0,ref:C,height:257,onEnded:M,autoPlay:!0,onLoadedData:k,loop:d},{children:(0,a.jsx)("source",{src:t,type:"video/mp4"})})),S?(0,a.jsxs)(s.Fragment,{children:[O&&(0,a.jsx)("button",Object.assign({onClick:e=>{e.stopPropagation()},className:(0,r.cx)(u,v)},{children:f?(0,a.jsx)(o.Icons.VideoVolumeOff,{}):(0,a.jsx)(o.Icons.VideoVolumeOn,{})})),(0,a.jsx)("button",Object.assign({className:(0,r.cx)(u,p),onClick:e=>{e.stopPropagation(),P()}},{children:(0,a.jsx)(o.Icons.VideoPause,{})}))]}):(0,a.jsx)("button",Object.assign({className:(0,r.cx)(u,p),onClick:e=>{e.stopPropagation(),_()}},{children:(0,a.jsx)("img",{src:"https://res.cloudinary.com/davda9b9c/image/upload/v1681452510/blendjet/files/bundleSliderPlayIcon.png",alt:"play video"})}))]}):(0,a.jsx)("img",{className:b?m:g,src:t,alt:e,onLoad:k})}))}},687:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlider=void 0;const i=n(10),a=n(3);n(7),t.useSlider=(e,t,n,s)=>{const[r,l]=(0,a.useState)(0),[o,d]=(0,a.useState)(!1),c={initial:n,slides:{perView:1},loop:!!s,rubberband:!1,drag:!s,slideChanged({track:{details:e}}){l(e.rel)}},[u,p]=(0,i.useKeenSlider)(c);var v,h;return(0,a.useEffect)((v=p,h=c,()=>(v.current&&v.current.update(Object.assign({},h)),()=>{v.current&&v.current.destroy()})),[p.current,o]),(0,a.useEffect)((()=>{var e;null===(e=p.current)||void 0===e||e.update(c,0)}),[e]),s&&(0,a.useEffect)((()=>{var e;null===(e=p.current)||void 0===e||e.moveToIdx(null!=n?n:0)}),[n]),(0,a.useEffect)((()=>{d(!0)}),[]),{isSliderLoaded:o,currentSlideIndex:r,sliderRef:u,handleGoToNextSlide:(0,a.useCallback)((()=>{p.current&&p.current.next()}),[])}}},207:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Slider=void 0;const a=n(1),s=n(0),r=n(687),l=n(58),o=n(115),d=n(2);n(476);const c=i(n(477)),u=n(141),p=n(77),v=n(3),{container:h,containerButton:g,containerSlider:m,containerVideo:j,containerWrapper:b,containerWrapperDot:x,containerWrapperDotActive:f,containerVideoFade:C}=c.default;t.Slider=({carouselMedia:e,handleCloseModal:t,video:n,handle:i,sliderAutoplay:c,currentUpsellProductId:S,isModalContentSimple:y})=>{const{isSliderLoaded:O,currentSlideIndex:w,sliderRef:P,handleGoToNextSlide:_}=(0,r.useSlider)(S),{isVideoPlaying:M,isVideoMuted:k,pauseVideo:N,playVideo:I,toggleMuteVideo:B}=(0,u.useVideo)(c),[V,T]=(0,v.useState)(!1),A=(0,v.useRef)(null);(0,v.useEffect)((()=>{var e;let t;return M&&(t=setTimeout((()=>{var e;T(!0),null===(e=A.current)||void 0===e||e.play()}),600)),T(!1),null===(e=A.current)||void 0===e||e.pause(),()=>{clearTimeout(t)}}),[M]);const D=e.length>1,E=!!n.src.length,R="orbiter-drinking-lid"===i||"jetsetter-insulated-tote"===i;return(0,s.jsxs)("div",Object.assign({className:(0,d.cx)(h,(0,d.cx)(!O&&"noJsForModalSlider"))},{children:[(!M||!E)&&D&&(0,s.jsx)("div",Object.assign({className:b},{children:e.map((({src:e},t)=>{const n=w===t;return(0,s.jsx)("div",{className:(0,d.cx)(x,n&&f)},e+t)}))})),E&&M&&(0,s.jsx)("div",Object.assign({className:(0,d.cx)(j,V&&C)},{children:(0,s.jsx)("video",{onEnded:N,src:n.src,autoPlay:!0,loop:c,"webkit-playsInline":!0,playsInline:!0,volume:.6,muted:k})})),(0,s.jsx)("div",Object.assign({ref:P,className:(0,d.cx)("keen-slider",m)},{children:e.map(((e,t)=>(0,a.createElement)(o.Slide,Object.assign({},e,{className:`keen-slider__slide number-slide${t+1}`,key:e.src+t,handleGoToNextSlide:_,isContentCarousel:!1,shouldFade:!1}))))})),E&&(0,s.jsx)(p.VideoControls,{videoSrc:n.src,isVideoPlaying:M,isVideoMuted:k,pauseVideo:N,playVideo:I,toggleMuteVideo:B,isOrbiter:R,isModalContentSimple:y}),(0,s.jsx)(l.CloseButton,{isBlue:R,onClick:()=>!c&&M?N():t(),className:g})]}))}},195:function(e,t,n){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(a,s){function r(e){try{o(i.next(e))}catch(e){s(e)}}function l(e){try{o(i.throw(e))}catch(e){s(e)}}function o(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,l)}o((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.useUpsellsToolSliderButton=void 0;const a=n(3),s=n(5),r="sliderAddToCartAnimation",l=(0,s.getAssignment)(r);t.useUpsellsToolSliderButton=({addToCartWithPayload:e,isAddToCartAnimation:t,isTextInButton:n,isVarietyPack:s,onClick:o,productPayload:d})=>{const[c,u]=(0,a.useState)(!1),[p,v]=(0,a.useState)(!1),h=(0,a.useRef)(),g=()=>{v(!0),setTimeout((()=>{v(!1)}),1e3)};return{isLoading:c,didAdd:p,handleClick:a=>i(void 0,void 0,void 0,(function*(){var i;if(h.current=a.currentTarget,s)o();else{if(l&&(null===(i=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===i||i.postExposure(`${r}`,l)),!n)return e(d,t?a:void 0),void g();u(!0),setTimeout((()=>{e(d,t?Object.assign(Object.assign({},a),{currentTarget:h.current}):void 0),g(),u(!1)}),1e3)}}))}}},194:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpsellsToolSliderButton=void 0;const a=n(0),s=(n(1),i(n(459))),r=n(2),l=n(11),o=n(195),{wrapper:d,wrapperIcon:c,wrapperIconPdp:u,wrapperIconCart:p,wrapperIconCartVarietyPack:v,wrapperIconHidden:h,wrapperIconVariety:g,spinner:m,wrapperIconAdded:j,wrapperIconAddedNumber:b}=s.default;t.UpsellsToolSliderButton=({onClick:e,isTextInButton:t,addLabel:n,addedLabel:i,isVarietyPack:s,selectLabel:x,selectedVarietyPacksQuantity:f,addToCartWithPayload:C,isAddToCartAnimation:S,productPayload:y,isPdp:O})=>{const{didAdd:w,handleClick:P,isLoading:_}=(0,o.useUpsellsToolSliderButton)({onClick:e,isVarietyPack:s,isTextInButton:t,addToCartWithPayload:C,isAddToCartAnimation:S,productPayload:y}),M=(null!=f?f:0)>0;return t?(0,a.jsx)("button",Object.assign({className:d,onClick:P},{children:_?(0,a.jsx)("span",{className:m}):s?x:w||M?i:n})):(0,a.jsx)("button",Object.assign({className:(0,r.cx)(!O&&!s&&p,!O&&s&&v,c,(_||w||M)&&h,s&&g,O&&u),onClick:P},{children:(w||M)&&(s?(0,a.jsx)("div",Object.assign({className:j},{children:(0,a.jsx)("div",Object.assign({className:b},{children:f}))})):(0,a.jsx)(l.CheckMarkGreenIcon,{}))}))}},202:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QuantityButton=void 0;const a=n(0),s=n(2),r=i(n(469)),{wrapper:l,wrapperDecrease:o,wrapperDecreaseActive:d,wrapperIncrease:c}=r.default;t.QuantityButton=({onClick:e,startCounter:t,stopCounter:n,isIncreasingButton:i=!1,isDecreasingEnabled:r=!1,isDisabled:u=!1})=>{const p=(0,s.cx)(l,c),v=(0,s.cx)(l,o,r?d:""),h=i?p:v;return(0,a.jsxs)("button",Object.assign({className:h,onClick:e,onMouseDown:()=>t(),onMouseUp:n,onMouseLeave:n,onTouchStart:()=>t(),onTouchEnd:n,disabled:u,onContextMenu:e=>e.preventDefault()},{children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]}))}},683:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useConfirmRemovalModal=void 0;const i=n(3);t.useConfirmRemovalModal=({removeSelectedVariants:e})=>{const[t,n]=(0,i.useState)(!1);return{isRemovalConfirmationVisible:t,openRemovalConfirmation:()=>n(!0),closeRemovalConfirmation:t=>{t&&e(),n(!1)}}}},682:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useQuantityCounter=void 0;const i=n(6);t.useQuantityCounter=({jetpacksPayload:e,activeSlideIndex:t,addQuantity:n,substractQuantity:a})=>{var s,r;const l=(0,i.useRef)(null);(0,i.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?a():n()}),200))},stopCounter:o,isResetButtonEnabled:d,isSubstractButtonEnabled:c,isConfirmationEnabled:u}}},681:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useVarietyPackCarousel=void 0;const i=n(10),a=n(3),s=n(158);t.useVarietyPackCarousel=({initialSlide:e,updateCurrentCardIdx:t,isNutritionOpen:n=!1,setShouldFade:r,currentCardIndex:l,swipe:o,jetpacksPayload:d})=>{var c,u;const[p,v]=(0,a.useState)(!1),h=d.length,[g,m]=(0,a.useState)(null),j=(0,a.useRef)(0),b={duration:350,easing:e=>e},x={duration:150,easing:e=>e},f={duration:0,easing:e=>e},C=[n=>{let i=0,a=0;n.on("detailsChanged",(e=>{Math.abs(a-e.track.details.rel)>1&&r(!0),m(e.track.details)})),n.on("created",(e=>{j.current=e.size})),n.on("updated",(e=>{j.current=e.size})),n.on("animationEnded",(s=>{t(s.track.details.rel),r(!1),a=s.track.details.rel,v(!1),i||(n.moveToIdx(e,!0,f),i++)})),n.on("dragStarted",(()=>{v(!0)}))}],S={slides:{number:h,origin:"center",perView:s.SLIDES_PER_VIEW},breakpoints:{"(min-width: 768px)":{slides:{number:h,origin:"center",perView:s.SLIDES_PER_VIEW+.5}}},initial:e,loop:!0,mode:"free-snap"},[y,O]=(0,i.useKeenSlider)(S,C);(0,a.useEffect)((()=>{p&&O.current&&o.play()}),[null===(c=null==O?void 0:O.current)||void 0===c?void 0:c.track.details.rel]),(0,a.useEffect)((0,s.fixKeenSliderBugInPreact)(O,S),[O.current]),(0,a.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,a.useCallback)((e=>{if(!O.current)return;const t=O.current.track.details.rel,n=Math.abs(t-e),i=80*(n>3?3:n);O.current.animator.stop(),O.current.moveToIdx(e,!1,Object.assign(Object.assign({},b),{duration:i}))}),[]),[P,_]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{var e,t,i;n&&((null===(e=O.current)||void 0===e?void 0:e.animator.active)&&_(!0),null===(t=O.current)||void 0===t||t.animator.stop()),P&&(null===(i=O.current)||void 0===i||i.moveToIdx(0),_(!1))}),[n]),{sliderRef:y,slideValues:(0,s.getSlideValues)({sliderState:g,jetpacksPayload:d}),handleSlideClick:w,activeSlideIndex:(null===(u=O.current)||void 0===u?void 0:u.track.details.rel)||0}}},200:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VarietyPackCarousel=void 0;const a=n(0),s=n(1),r=n(2),l=i(n(467)),o=n(681),d=n(201),c=n(682),u=n(202),p=n(4),v=n(683),{container:h,containerCarousel:g,containerCarouselSlider:m,containerCarouselSliderInner:j,containerCarouselSliderInnerSlides:b,containerCarouselSliderInnerSlidesSlide:x,containerCarouselSliderInnerSlidesSlideCounter:f,containerQuantityCTAContainer:C,containerQuantityCTAContainerButtons:S}=l.default;t.VarietyPackCarousel=({updateCurrentCardIdx:e,resetQuantities:t,isNutritionOpen:n,setShouldFade:i,labels:l,getRandomJetpacks:y,initialSlide:O,currentCardIndex:w,swipe:P,addQuantity:_,substractQuantity:M,jetpacksPayload:k})=>{const{sliderRef:N,slideValues:I,handleSlideClick:B,activeSlideIndex:V}=(0,o.useVarietyPackCarousel)({initialSlide:O,updateCurrentCardIdx:e,isNutritionOpen:n,setShouldFade:i,currentCardIndex:w,swipe:P,jetpacksPayload:k}),{startCounter:T,stopCounter:A,isResetButtonEnabled:D,isSubstractButtonEnabled:E,isConfirmationEnabled:R}=(0,c.useQuantityCounter)({jetpacksPayload:k,activeSlideIndex:V,addQuantity:_,substractQuantity:M}),F=()=>{t()},{isRemovalConfirmationVisible:L,openRemovalConfirmation:W,closeRemovalConfirmation:H}=(0,v.useConfirmRemovalModal)({removeSelectedVariants:F}),{isRemovalConfirmationVisible:$,openRemovalConfirmation:q,closeRemovalConfirmation:Q}=(0,v.useConfirmRemovalModal)({removeSelectedVariants:F});return(0,a.jsxs)(s.Fragment,{children:[(0,a.jsxs)("div",Object.assign({className:h},{children:[(0,a.jsx)("div",Object.assign({className:g},{children:(0,a.jsx)("div",Object.assign({className:(0,r.cx)(m,"keen-slider"),ref:N},{children:(0,a.jsx)("div",Object.assign({className:j},{children:(0,a.jsx)("div",Object.assign({className:b},{children:I.map((({style:e,innerStyle:t,image:n,counterStyles:i,quantity:s},r)=>(0,a.jsx)("div",Object.assign({onClick:()=>B(r),className:x,style:Object.assign(Object.assign({},e),{zIndex:V===r?"1":"unset"})},{children:(0,a.jsxs)("div",Object.assign({style:t},{children:[0!==s&&(0,a.jsx)("div",Object.assign({className:f,style:i},{children:s})),n&&(0,a.jsx)("img",{src:n.src.replace("h_100","h_150"),alt:n.alt})]}))}),r)))}))}))}))})),(0,a.jsxs)("div",Object.assign({className:C},{children:[D?(0,a.jsx)(p.Icons.ResetIcon,{width:"27px",height:"26px",color:"#999999",onClick:W}):(0,a.jsx)("span",{style:{width:"27px",height:"26px"}}),(0,a.jsxs)("div",Object.assign({className:S},{children:[(0,a.jsx)(u.QuantityButton,{onClick:M,startCounter:()=>T(!0),stopCounter:A,isDecreasingEnabled:E,isDisabled:!E}),(0,a.jsx)(u.QuantityButton,{onClick:_,startCounter:T,stopCounter:A,isIncreasingButton:!0})]})),(0,a.jsx)(p.Icons.DiceIcon,{width:"25px",height:"26px",color:"#999999",onClick:q})]}))]})),(0,a.jsx)(d.ConfirmationModal,{closeModal:L?H:Q,isOpen:L||$,additionalAcceptAction:()=>{$&&(F(),y())},labels:l,isRandomJPConfirmation:$,isResetAndRandomJPConfirmation:R&&$})]})}},158:(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:n})=>{var i,a;if(!e)return[];const s="undefined"!=typeof window&&window.innerWidth>=768,r=.5-1/t.SLIDES_PER_VIEW/2,l=n.length,o=[];for(let d=0;dt.WHEEL_SIZE/2?180:l*(360/t.WHEEL_SIZE)*-1,u={transform:`translateX(${2.8*-c}px)`,WebkitTransform:`translateX(${2.8*-c}px)`},p=n[d].variant.cartImage,v=Math.abs(e.rel-d),h=0===v,g=1===v||v===e.slides.length-1,m=2===v||v===e.slides.length-2,j=s?"0px 5.5px":"0px",b=s?"12px 14px":"5px",x=s?"12px 14px":"10px",f=s?"12px 14px":"11px",C=e.slides[d].distance>e.slides[e.rel].distance,S=h?j:g?b:m?x:f,y=s?h?{width:"22px",height:"22px",top:"-12px",zIndex:"1",transition:"all 0.2s ease-out"}:{width:"22px",height:"22px",top:"2px",zIndex:"1",transform:"translateX(-50%)",transition:"all 0.2s ease-out"}:h?{zIndex:"1",transition:"all 0.2s ease-out"}:g?{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"},O={padding:S,height:"100%",transform:h?"translateX(0px)":1===v||v===e.slides.length-1?`translateX(${C?3:-4}px)`:2===v||v===e.slides.length-2?`translateX(${C?-2:2}px)`:3===v||v===e.slides.length-3?`translateX(${C?-7:7}px)`:"translateX(0px)"},w={padding:S,transform:1===v&&e.rel>d?"translateX(-8px)":1===v&&e.rel{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlider=void 0;const i=n(10),a=n(3);n(7),t.useSlider=(e,t,n,s=!1)=>{const[r,l]=(0,a.useState)(0),[o,d]=(0,a.useState)(!1),c={initial:n,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,i.useKeenSlider)(c);var v,h;(0,a.useEffect)((v=p,h=c,()=>(v.current&&v.current.update(Object.assign({},h)),()=>{v.current&&v.current.destroy()})),[p.current,o]);const[g,m]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{s&&m(!0)}),[s]),(0,a.useEffect)((()=>{var t;null===(t=p.current)||void 0===t||t.moveToIdx(null!=e?e:0,!1,{duration:g?0:150,easing:e=>e}),m(!1)}),[e]),(0,a.useEffect)((()=>{d(!0)}),[]),{isSliderLoaded:o,currentSlideIndex:r,sliderRef:u,handleGoToNextSlide:(0,a.useCallback)((()=>{p.current&&p.current.next()}),[])}}},198:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VarietyPackSlider=void 0;const a=n(1),s=n(0),r=n(678),l=n(58),o=n(115),d=n(2),c=n(4);n(462);const u=i(n(463)),p=n(77),v=i(n(95)),h=n(3),{container:g,containerNutrition:m,containerCloseButton:j,containerSlider:b,containerVideo:x,containerVideoFade:f,containerVideoWithMarquee:C,containerWrapper:S,containerWrapperMarquee:y,containerWrapperMarqueeText:O}=u.default;t.VarietyPackSlider=({slidesForImages:e,handleCloseModal:t,openNutritionModal:n,currentCardIndex:i,initialSlideNumber:u,variantColor:w,labels:P,video:_,updateCurrentCardIdx:M,shouldFade:k,useVideoProps:N,marqueeText:I,marqueeColor:B,onlyVideo:V})=>{var T;const A=null===(T=_[i])||void 0===T?void 0:T.src,{isVideoMuted:D,isVideoPlaying:E,pauseVideo:R,playVideo:F,toggleMuteVideo:L}=N,{isSliderLoaded:W,sliderRef:H,handleGoToNextSlide:$}=(0,r.useSlider)(i,M,u,k),[q,Q]=(0,h.useState)(!1),G=(0,h.useRef)(null);return(0,h.useEffect)((()=>{var e;let t;return E&&(t=setTimeout((()=>{var e;Q(!0),null===(e=G.current)||void 0===e||e.play()}),600)),Q(!1),null===(e=G.current)||void 0===e||e.pause(),()=>{clearTimeout(t)}}),[i,E]),(0,s.jsxs)("div",Object.assign({className:(0,d.cx)(g,(0,d.cx)(!W&&"noJsForModalSlider"))},{children:[(0,s.jsx)("div",Object.assign({className:S},{children:(0,s.jsx)(v.default,Object.assign({value:I,pauseOnClick:!0,className:y,gradient:!1,speed:40,style:{backgroundColor:B}},{children:(0,s.jsx)("div",{className:O,dangerouslySetInnerHTML:{__html:I.replace("

","

      ")}})}))})),(0,s.jsx)("div",Object.assign({ref:H,className:(0,d.cx)("keen-slider",b)},{children:e.map(((e,t)=>(0,a.createElement)(o.Slide,Object.assign({},e,{className:`keen-slider__slide number-slide${t+1}`,key:e.src+t,handleGoToNextSlide:$,isContentCarousel:!0,shouldFade:k}))))})),E&&(0,s.jsx)("div",Object.assign({className:(0,d.cx)(x,q&&f,C)},{children:(0,s.jsx)("video",{onEnded:R,src:null!=A?A:"",ref:G,loop:V,"webkit-playsInline":!0,playsInline:!0,muted:D})})),!V&&(0,s.jsxs)("button",Object.assign({className:(0,d.cx)("no-translate",m),onClick:n,style:{backgroundColor:w}},{children:[(0,s.jsx)(c.Icons.NutritionAppleIcon,{color:"#fff",width:"14px",height:"16px"}),P.buttons.nutritionFacts]})),A&&(0,s.jsx)(p.VideoControls,{videoSrc:null!=A?A:"",isVideoPlaying:E,isVideoMuted:D,pauseVideo:R,playVideo:F,toggleMuteVideo:L}),(0,s.jsx)(l.CloseButton,{onClick:!V&&E?R:t,className:j})]}))}},77:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VideoControls=void 0;const a=n(0),s=n(4),r=n(2),l=i(n(464)),o=n(6),d=n(31),{wrapper:c,wrapperSimpleModal:u,wrapperWithCarrot:p,wrapperPlay:v,wrapperPlayOrbiter:h,wrapperPause:g,wrapperPlayWrapper:m,wrapperPlayWrapperIcon:j,wrapperPlayWrapperVideo:b,wrapperPauseOrbiter:x}=l.default;t.VideoControls=({isVideoPlaying:e,isVideoMuted:t,pauseVideo:n,playVideo:i,toggleMuteVideo:l,videoSrc:f,isOrbiter:C,withCarrot:S=!1,isModalContentSimple:y=!1})=>{const O=(0,o.useRef)(null);return(0,o.useEffect)((()=>{O.current&&(O.current.playbackRate=.8)}),[O.current]),e?(0,a.jsx)("div",Object.assign({className:(0,r.cx)(c,S&&p,y&&u)},{children:(0,a.jsx)("button",Object.assign({className:(0,r.cx)(g,C&&x),onClick:l},{children:t?(0,a.jsx)(s.Icons.VideoVolumeOff,{}):(0,a.jsx)(s.Icons.VideoVolumeOn,{})}))})):(0,a.jsx)("button",Object.assign({className:(0,r.cx)(c,v,C&&h,S&&p),onClick:()=>{(0,d.logOutcome)("playedVideo"),i()}},{children:(0,a.jsxs)("div",Object.assign({className:m},{children:[(0,a.jsx)("div",Object.assign({className:b},{children:(0,a.jsx)("video",{ref:O,loop:!0,src:f,autoPlay:!0,"webkit-playsInline":!0,playsInline:!0,muted:!0})})),(0,a.jsx)("div",Object.assign({className:(0,r.cx)(j)},{children:s.Icons.VideoPlay()}))]}))}))}},475:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useMaskOnModalScroll=void 0;const i=n(3);t.useMaskOnModalScroll=()=>{const[e,t]=(0,i.useState)(!1);return{handleModalScroll:(0,i.useCallback)((n=>{const{scrollHeight:i,scrollTop:a,clientHeight:s}=n.currentTarget;if(i-a-s<10)t(!0);else{if(!e)return;t(!1)}}),[e]),shouldHideShadowMask:e}}},693:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useModal=void 0;const i=n(3),a=n(5);t.useModal=e=>{const[t,n]=(0,i.useState)(!1),[s,r]=(0,i.useState)(null),l=(0,i.useCallback)((i=>{(0,a.logOutcome)("clickedSliderItem");const s=e.find((({details:e})=>e.id===i));s&&(r(s),t||n(!0))}),[t,e]),o=(0,i.useCallback)((()=>{n(!1)}),[]);return{currentUpsellProduct:s,isModalOpen:t,handleBundleProductClick:l,handleCloseModal:o}}},694:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlider=void 0,n(7);const i=n(10),a=n(3);t.useSlider=e=>{const[t,n]=(0,a.useState)(!1),[s,r]=(0,a.useState)(0),l=(0,a.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,n=66,i=231)=>e/(t-1)*100*((i-n)/i))(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,i.useKeenSlider)(e?d:o);(0,a.useEffect)((()=>{var t;null===(t=u.current)||void 0===t||t.update(e?d:o)}),[t]);const p=(0,a.useCallback)((e=>{var t;null===(t=u.current)||void 0===t||t.moveToIdx(e)}),[]),v=(0,a.useCallback)((()=>{var e;null===(e=u.current)||void 0===e||e.prev()}),[]),h=(0,a.useCallback)((()=>{var e;null===(e=u.current)||void 0===e||e.next()}),[]);return(0,a.useEffect)((()=>{n(!0)}),[]),{ref:c,jsEnabled:t,currentSlideIndex:s,handleMove:p,handlePrev:v,handleNext:h,progressBarRef:l}}},141:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCookie=t.useVideo=void 0;const i=n(3);function a(e){if("undefined"==typeof document)return null;const t=`${e}=`,n=decodeURIComponent(document.cookie).split(";");for(let e=0;e{const[n,s]=(0,i.useState)(!0);(0,i.useEffect)((()=>{const e=null!=typeof window?a("slider_video_audio_muted"):null;t||s("true"===e||null===e)}),[]);const[r,l]=(0,i.useState)(!1);(0,i.useEffect)((()=>{e&&o()}),[e]);const o=()=>{r||l(!0)};return{isVideoPlaying:r,isVideoMuted:n,pauseVideo:()=>r&&l(!1),playVideo:o,toggleMuteVideo:()=>{s((e=>!e)),null==typeof document||t||(document.cookie=`slider_video_audio_muted=${!n}; expires=Tue, 19 Jan 2038 03:14:07 UTC`)}}},t.getCookie=a},114:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpsellsToolSlider=void 0;const a=n(1),s=n(0),r=n(1),l=n(3),o=n(194),d=n(196),c=n(59),u=n(691),p=n(212),v=n(13),h=n(89),g=n(77),m=n(14),j=n(4),b=n(2),x=n(141),f=n(692),C=n(693),S=n(142),y=n(694),O=i(n(485)),{wrapper:w,wrapperCart:P,wrapperProducts:_,wrapperProductsPdp:M,wrapperCartProducts:k,wrapperCartProductsIsOpen:N,wrapperProductsPdpButton:I,wrapperProductsPdpButtonLeft:B,wrapperProductsPdpButtonRight:V,wrapperVideo:T,wrapperVideoContent:A,wrapperHeader:D,wrapperHeaderTitle:E,wrapperHeaderPreview:R,wrapperHeaderPreviewArrow:F,wrapperHeaderPreviewArrowIsOpen:L,wrapperSlide:W,wrapperSlideCart:H,wrapperSlidePdp:$,wrapperSlideContent:q,wrapperSlideContentCart:Q,wrapperSlideContentName:G,wrapperSlideContentNameCart:U,wrapperSlideContentNamePdp:z,wrapperSlideContentPrice:J,wrapperSlideContentPriceCart:X,wrapperSlideContentPricePdp:K,wrapperSlideContentImage:Z,wrapperSlideContentImageCart:Y,wrapperSlideContentImagePdp:ee,wrapperSlideContentPdp:te,wrapperSlideContentPdpActive:ne,wrapperSlideContentPdpLeft:ie,wrapperSlideContentPdpRight:ae,wrapperPopup:se,wrapperPopupSpace:re,wrapperProgress:le,wrapperProgressBar:oe,wrapperProgressBarInner:de,wrapperButton:ce,noJs:ue,noJsPdp:pe}=O.default;t.UpsellsToolSlider=({upsellProducts:e,labels:t,addToCartWithPayload:n,currency:i,sliderAutoplay:O,areJetpacksAnimated:le,areReviewsVisible:oe,isTextInButton:de,isAddToCartAnimation:ve,isPdpPopupHidden:he,newMiniPDPVariation:ge,isPdp:me=!1,styluxFeature:je,addToCartButton:be,isNewMiniPdp:xe,isPdpPopupVideo:fe,colorOrder:Ce,hideAddToCartButton:Se,shopVersion:ye})=>{var Oe,we,Pe,_e,Me,ke;const{ref:Ne,jsEnabled:Ie,currentSlideIndex:Be,progressBarRef:Ve,handleMove:Te,handlePrev:Ae,handleNext:De}=(0,y.useSlider)(me),[Ee,Re]=(0,l.useState)(!1),Fe=(0,S.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:Le,handleBundleProductClick:We,handleCloseModal:He,isModalOpen:$e}=(0,C.useModal)(e),{isVideoMuted:qe,isVideoPlaying:Qe,pauseVideo:Ge,playVideo:Ue,toggleMuteVideo:ze}=(0,x.useVideo)(O,me),[Je,Xe]=(0,l.useState)(null===(Oe=e[Be])||void 0===Oe?void 0:Oe.details.videoWithCarrot.src),[Ke,Ze]=(0,l.useState)(1);(0,l.useEffect)((()=>{let t=null;Ze(0),t&&clearTimeout(t),t=setTimeout((()=>{var t;Xe(null===(t=e[Be])||void 0===t?void 0:t.details.videoWithCarrot.src),Ze(1)}),400)}),[Be]);const Ye=!!Le&&$e;(0,l.useEffect)((()=>{Ye?Ge():Ue()}),[Ye]),(0,h.usePreventBackgroundScrolling)(Ye);const et=e.filter((e=>!!e.details.image.animated)),tt=!!(null===(we=e[Be])||void 0===we?void 0:we.headingMessage),nt=!!(null===(Pe=e[Be])||void 0===Pe?void 0:Pe.details.videoWithCarrot.src);return(0,s.jsxs)("div",Object.assign({className:(0,b.cx)(w,!me&&P)},{children:[me&&!tt&&!he&&!fe&&(0,s.jsx)("div",{className:re}),me&&!he&&tt&&!fe&&(0,s.jsx)("h3",Object.assign({className:se},{children:null===(_e=e[Be])||void 0===_e?void 0:_e.headingMessage})),me&&fe&&nt&&(0,s.jsx)("div",Object.assign({className:T},{children:(0,s.jsxs)("div",Object.assign({className:A},{children:[Qe&&(0,s.jsx)("video",{style:{opacity:Ke,transition:Ke?"opacity 0.4s ease-in-out":"opacity 0.2s ease-in-out"},onEnded:Ge,src:Je,autoPlay:!0,loop:O,"webkit-playsInline":!0,playsInline:!0,volume:.6,muted:qe,width:"383",height:"215",crossOrigin:""}),(me&&nt&&Qe||!nt)&&(0,s.jsx)("div",Object.assign({style:{opacity:Ke,transition:Ke?"opacity 0.4s ease-in-out":"opacity 0.2s ease-in-out"}},{children:(0,s.jsx)(g.VideoControls,{videoSrc:null===(Me=e[Be])||void 0===Me?void 0:Me.details.video.src,isVideoPlaying:Qe,isVideoMuted:qe,pauseVideo:Ge,playVideo:Ue,toggleMuteVideo:ze,isOrbiter:null===(ke=e[Be])||void 0===ke?void 0:ke.payload.some((e=>"orbiter-drinking-lid"===e.product.handle||"jetsetter-insulated-tote"===e.product.handle)),withCarrot:!0})}))]}))})),me&&fe&&!nt&&(0,s.jsx)("div",{className:T}),!me&&(0,s.jsxs)("div",Object.assign({className:D,onClick:()=>Re(!Ee)},{children:[(0,s.jsx)("h3",Object.assign({className:E},{children:t.recommendedForYou})),(0,s.jsxs)("div",Object.assign({className:R},{children:[e.filter((e=>"blendjet-2"!==e.details.handle)).slice(0,3).map(((e,t)=>(0,a.createElement)(p.CartProductPreview,Object.assign({},e,{key:t+e.displayName+t})))),(0,s.jsx)("button",Object.assign({className:(0,b.cx)(F,Ee&&L)},{children:(0,s.jsx)(j.Icons.UpsellCartArrow,{})}))]}))]})),(0,s.jsxs)("div",Object.assign({ref:Ne,className:(0,b.cx)(_,!me&&k,!me&&Ee&&N,"keen-slider",me&&_,me&&M,!Ie&&ue,!Ie&&me&&pe)},{children:[me&&(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)("button",Object.assign({onClick:Ae,className:`${I} ${B} `},{children:(0,s.jsx)(m.ChevronLeft,{})})),(0,s.jsx)("button",Object.assign({onClick:De,className:`${I} ${V} `},{children:(0,s.jsx)(m.ChevronRight,{})}))]}),e.map(((a,r)=>(0,s.jsx)("div",Object.assign({className:(0,b.cx)("keen-slider__slide",W,me&&$,!me&&H)},{children:(0,s.jsxs)("div",Object.assign({className:(0,b.cx)(q,!me&&Q,me&&te,me&&r===Be&&ne,me&&(0,f.isTwoSlidesOnLeft)(r,Be-2,e.length)&&ie,me&&(0,f.isTwoSlidesOnRight)(r,Be+2,e.length)&&ae)},{children:[le&&a.details.image.animated?(0,s.jsx)(u.AnimatedImage,{onClick:()=>{me&&r!==Be?Te(r):We(a.details.id)},images:a.details.image.animated,order:et.findIndex((e=>e.details.id===a.details.id))}):(0,s.jsx)("div",Object.assign({className:(0,b.cx)(Z,me&&ee,!me&&Y)},{children:(0,s.jsx)("img",Object.assign({onClick:()=>{me&&r!==Be?Te(r):We(a.details.id)}},a.details.image.static,{loading:"eager"}))})),(0,s.jsx)("p",Object.assign({onClick:()=>{me&&r!==Be?Te(r):We(a.details.id)},className:(0,b.cx)(G,me&&z,!me&&U)},{children:a.displayName})),oe&&(0,s.jsx)("div",Object.assign({className:"no-translate"},{children:(0,s.jsx)(c.Rating,{rating:a.details.rating,raters:a.details.raters,shorterRaters:!0})})),(0,s.jsx)("p",Object.assign({className:(0,b.cx)(J,me&&K,!me&&X)},{children:(0,f.getProductPrice)({id:a.payload[0].variant.id,shopVersion:ye,currency:i,defaultPrice:a.payload[0].variant.price})})),(0,s.jsx)(o.UpsellsToolSliderButton,{addLabel:t.buttons.add,selectLabel:t.buttons.select,addedLabel:t.buttons.added,isVarietyPack:a.withVariants,isTextInButton:de,productPayload:a.payload,isAddToCartAnimation:me&&ve,addToCartWithPayload:n,isPdp:me,onClick:()=>{a.withVariants&&(me&&r!==Be?(We(a.details.id),Te(r)):We(a.details.id))}})]}))}),a.displayName)))]})),Se&&me&&!!be&&(0,s.jsx)("div",Object.assign({className:ce},{children:(0,s.jsx)(v.AddToCartButton,Object.assign({},be))})),Ye&&(0,s.jsx)(d.SelectionModal,{sliderAutoplay:O,soundPack:Fe,upsellProducts:e,currentUpsellProduct:Le,handleCloseModal:He,addToCartWithPayload:n,labels:t,currency:i,handleBundleProductClick:We,newMiniPDPVariation:ge,styluxFeature:je,isAddToCartAnimation:ve&&me,isNewMiniPdp:xe,colorOrder:Ce})]}))}},692:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getProductPrice=t.isTwoSlidesOnRight=t.isTwoSlidesOnLeft=t.createInitialCartState=t.filterOutByVariantId=t.getProductByVariantId=t.restoreScrollbar=t.hideScrollbar=void 0;const i=n(2);let a=0;t.hideScrollbar=function(){a=window.pageYOffset;const e=document.querySelector(".app");null==e||e.setAttribute("style",`position: fixed; width: calc(100% - (100vw - 100%)); top: -${a}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,a),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,n)=>t<0?n+t===e:t===e,t.isTwoSlidesOnRight=(e,t,n)=>t>=n?t-n===e:t===e,t.getProductPrice=({id:e,shopVersion:t,currency:n,defaultPrice:a})=>{const s=(0,i.lookupLocalPrice)(`${e}`,"US"!=t?Object.assign(Object.assign({},n),{code:"USD"}):n,a);return(0,i.priceToLocalString)(s,n)}},142:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSound=void 0;const i=n(484);t.useSound=e=>Object.entries(e).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:new i.Howl({src:[n]})})),{})}}]);