"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[41],{65:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.loadLoox=void 0;const i=a(32);t.loadLoox=function(e,t){const a=Object.assign({src:`https://loox.io/widget/loox.js?shop=${e}.myshopify.com`,id:"loox",anonymous:!1},t);(0,i.loadScriptWithDelay)(a)}},64:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0});const i=a(0),n=a(1),s=a(3);a(106),t.default=({style:e={},className:t="",play:a=!0,pauseOnHover:r=!1,pauseOnClick:o=!1,direction:l="left",speed:d=20,delay:c=0,loop:u=0,gradient:p=!0,gradientColor:v=[255,255,255],gradientWidth:h=200,onFinish:m,onCycleComplete:j,children:g,value:x})=>{const[b,f]=(0,s.useState)(0),[C,y]=(0,s.useState)(0),[O,S]=(0,s.useState)(0),w=(0,s.useRef)(null),P=(0,s.useRef)(null),_=()=>{P.current&&w.current&&(f(w.current.getBoundingClientRect().width),y(P.current.getBoundingClientRect().width)),S(C(_(),window.addEventListener("resize",_),()=>{window.removeEventListener("resize",_)})));const M=`rgba(${v[0]}, ${v[1]}, ${v[2]}`;return(0,i.jsx)(n.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":o?"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":a?"running":"paused","--direction":"left"===l?"normal":"reverse","--duration":`${O}s`,"--delay":`${c}s`,"--iteration-count":u?`${u}`:"infinite"},className:"marquee",onAnimationIteration:j,onAnimationEnd:m},{children:g})),(0,i.jsx)("div",Object.assign({style:{"--play":a?"running":"paused","--direction":"left"===l?"normal":"reverse","--duration":`${O}s`,"--delay":`${c}s`,"--iteration-count":u?`${u}`:"infinite"},className:"marquee"},{children:g}))]}),null!=x?x:"")})}},179:function(e,t,a){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 n=a(0),s=(a(1),i(a(442))),{wrapperContent:r,wrapperContentText:o,wrapperContentTextBlock:l,wrapperContentList:d,wrapperContentListSubheading:c,wrapperContentListItems:u,wrapperContentListPlanDetails:p,wrapperContentWhyChoose:v,wrapperContentWhyChooseSupport:h,wrapperContentWhyChooseSupportIcon:m,wrapperContentWhyChooseFees:j,wrapperContentWhyChooseFeesIcon:g}=s.default;t.Content=function(){return(0,n.jsxs)("div",Object.assign({className:r},{children:[(0,n.jsx)("div",Object.assign({className:o},{children:(0,n.jsx)("div",Object.assign({className:l},{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:j},{children:[(0,n.jsx)("img",{className:g,alt:"no cost icon",src:"/fast-image/blendjet/free.svg",width:"22",height:"22"}),"No fees. No deductibles."]}))]}))]}))}},178:function(e,t,a){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 n=a(0),s=(a(1),i(a(441))),{wrapperSvg:r,wrapperSvgLogoContent:o,wrapperSvgLogoContentLogo:l,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:o},{children:[(0,n.jsx)("img",{className:l,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"}))]}))}))}},440:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AboutExtend=void 0;const i=a(0),n=a(1),s=a(178),r=a(179);t.AboutExtend=function(){return(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(s.SvgWrapper,{}),(0,i.jsx)(r.Content,{})]})}},721:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnimatedImage=void 0;const i=a(0),n=a(3);t.AnimatedImage=({images:e,onClick:t,order:a})=>{const[s,r]=(0,n.useState)(0);return(0,n.useEffect)((()=>{let t;const i=setTimeout((()=>{t=setInterval((()=>{r((t=>(t+1)%e.length))}),1e3*e.length)}),1e3*a);return()=>{clearTimeout(i),clearInterval(t)}}),[]),(0,i.jsx)("img",Object.assign({onClick:t},e[s],{loading:"eager"}))}},94:function(e,t,a){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 n=a(0),s=a(1),r=a(2),o=i(a(453)),{button:l,buttonLabel:d,buttonPrice:c,buttonSelected:u,buttonDisabled:p}=o.default;t.BundleButton=({onClick:e,label:t="",price:a,isProductSelected:i=!1,className:v="",disabled:h=!1})=>(0,n.jsxs)("button",Object.assign({disabled:h,onClick:e,className:(0,r.cx)(l,i&&u,v&&o.default[v],h&&p)},{children:[(0,n.jsx)("span",Object.assign({className:(0,r.cx)("no-translate",d)},{children:t})),a&&a.length>0?(0,n.jsx)(s.Fragment,{children:(0,n.jsxs)("span",Object.assign({className:(0,r.cx)("no-translate",c)},{children:[" — ",a," "]}))}):null]}))},222:function(e,t,a){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 n=a(0),s=(a(1),a(3)),r=a(2),o=i(a(471)),{reviews:l,bundleSliderReviews:d}=o.default,c=a(65);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,l)},{children:(0,n.jsx)("div",{id:"looxReviews",class:"loox-reviews","data-product-id":e})}))}},223:function(e,t,a){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 n=a(0),s=i(a(472)),{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:""})}))},77:function(e,t,a){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 n=a(0),s=a(2),r=i(a(449)),{wrapper:o}=r.default;t.CloseButton=({onClick:e,className:t,isBlue:a})=>(0,n.jsx)("div",{className:(0,s.cx)(o,t),style:{"--closeButtonColor":a?"#363a71":"#fff"},onClick:e})},211:function(e,t,a){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 n=a(0),s=a(1),r=i(a(456)),{backdrop:o,backdropModal:l,backdropModalContainer:d,backdropModalContainerDescription:c,backdropModalContainerButtons:u,backdropModalContainerButtonsYes:p,backdropModalContainerButtonsNo:v,backdropHidden:h,backdropHiddenModal:m,backdropHiddenModalContainer:j}=r.default;t.ConfirmationModal=({closeModal:e,isOpen:t,labels:a,additionalAcceptAction:i,isRandomJPConfirmation:r,isResetAndRandomJPConfirmation:g})=>(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("div",{className:t?o:h}),(0,n.jsx)("div",Object.assign({className:t?l:m},{children:(0,n.jsxs)("div",Object.assign({className:t?d:j},{children:[(0,n.jsx)("div",Object.assign({className:c},{children:g?a.confirmationRandomResetModalTitle:r?a.confirmationRandomModalTitle:a.confirmationModalTitle})),(0,n.jsxs)("div",Object.assign({className:u},{children:[(0,n.jsx)("div",Object.assign({className:p,onClick:()=>{e(!0),i&&i()}},{children:a.buttons.yes})),(0,n.jsx)("div",Object.assign({className:v,onClick:()=>e(!1)},{children:a.buttons.no}))]}))]}))}))]})},215:function(e,t,a){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 n=a(0),s=a(3),r=a(2),o=a(216),l=a(460),d=i(a(463)),c=a(6),{container:u,containerHolder:p,containerHolderAnimation:v,containerMask:h,containerMaskDone:m,containerMaskAnimation:j,containerText:g,containerTextDone:x,containerTextAnimation:b,containerBottomText:f,containerBottomTextDone:C,containerBottomTextAnimation:y}=d.default;t.Circle=e=>{const[t,a]=(0,s.useState)(e.currentValue),[i,d]=(0,s.useState)(!1),[O,S]=(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),a(_),i&&S(!1),[12,24,36].includes(_)&&!O&&i&&e.boom.play()}),[_,t]),(0,n.jsxs)("div",Object.assign({className:u},{children:[(0,n.jsxs)("div",Object.assign({className:(0,r.cx)(p,i&&N&&v)},{children:[(0,n.jsx)("div",{style:{height:(0,l.calculateCircleMaskHeight)({currentValue:_,inCircleValue:k,index:M,canAnimationBe:N})},className:(0,r.cx)(h,I&&m,i&&N&&j)}),(0,n.jsx)("p",Object.assign({className:(0,r.cx)(g,I&&x,i&&N&&b)},{children:w}))]})),!O&&(N||I)&&(0,n.jsx)(o.Star,{}),(0,n.jsx)("p",Object.assign({className:(0,r.cx)(f,I&&C,i&&N&&y)},{children:P}))]}))}},716:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Line=void 0;const i=a(0);t.Line=({percentage:e,amount:t,unWantedIndexes:a})=>{const n=e/100*200,s=n+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:n,height:"2",fill:"#8DCD03"}),(0,i.jsxs)("g",Object.assign({opacity:a.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}))]}))]})]}))}},216:function(e,t,a){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 n=a(0),s=a(2),r=i(a(462)),{container:o,containerHolder:l,containerStar:d}=r.default;t.Star=({})=>(0,n.jsx)("div",Object.assign({className:o},{children:(0,n.jsx)("div",Object.assign({className:(0,s.cx)(l)},{children:["350deg","230deg","120deg","30deg","0deg"].map(((e,t)=>(0,n.jsx)("div",{style:{rotate:e},className:d},t)))}))}))},214:function(e,t,a){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 n=a(0),s=a(460),r=i(a(461)),o=a(215),l=a(716),{container:d,containerHolder:c}=r.default;t.DiscountProgress=({keys:e,quantity:t,unWantedIndexes:a,boom:i})=>(0,n.jsxs)("div",Object.assign({className:d},{children:[(0,n.jsx)("div",Object.assign({className:c},{children:(0,n.jsx)(l.Line,{amount:t,percentage:(0,s.calculatePercentage)({amount:t}),unWantedIndexes:a})})),e.map(((e,a)=>(0,n.jsx)(o.Circle,Object.assign({boom:i,index:a,currentValue:t},e),a)))]}))},460:(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:a,canAnimationBe:i,index:n}=e;return t>a?"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+"%":i?"100%":"0%"}},712:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useModalContentCarousel=void 0;const i=a(3),n=a(2),s=["Strawberry Banana","Chocolate Peanut Butter Banana","Peanut Butter Power Breakfast","Blueberry Acai"];t.useModalContentCarousel=(e,t,a,r,o)=>{const[l,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)}),[]),m=(0,i.useCallback)((e=>{u(e)}),[]),[j,g]=(0,i.useState)("images"),x=e.reduce(((e,t)=>[...e,...t.details.varietyPackVariants.reduce(((e,t)=>[...e,...t.carouselMedia.filter((e=>"video"!==e.type))]),[])]),[]),b=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,y]=(0,i.useState)(void 0),[O,S]=(0,i.useState)(0),[w,P]=(0,i.useState)(0);(0,i.useEffect)((()=>{var a,i;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=b.findIndex((e=>e.src===b[c].src));t(null!==(i=null===(a=null==n?void 0:n.payload[0])||void 0===a?void 0:a.product.id)&&void 0!==i?i:""),y(n),P(s),S(r)}),[c]);const _=e.reduce(((e,{payload:t})=>[...e,...t]),[]),[M,k]=(0,i.useState)(_),N=M.some((e=>e.isSubscription)),[I,V]=(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 V(0);const s=(0,n.lookupLocalPrice)(`${M[0].variant.id}${N?":subscription":""}`,a,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);i>=36?V(Math.ceil(20*s)/100*i):i>=24?V(Math.ceil(15*s)/100*i):i>=12&&V(Math.ceil(10*s)/100*i)}),[M]),{isNutritionOpen:l,scrollContainer:p,currentCardIndex:c,slidesForImages:x,slidesForVideo:b,currentVideoIndex:O,currentSlider:j,currentImageIndex:w,varietyImages:f,currentObjectOfVarieties:C,setCurrentSlider:g,handleOpenNutritionModal:v,handleCloseNutritionModal:h,updateCurrentCardIdx:m,jetpacksPayload:M,getRandomJetpacks:()=>{const e=_.filter((e=>e.product.productType.includes("Jetpack"))),t=e.map((e=>e.variant.title)),a=()=>{const e=t.filter((e=>s.includes(e))),a=[...t,...e];return a[Math.floor(Math.random()*a.length)]||""},i=(()=>{let e={};for(let t=0;t<12;t++){let t=a();for(;e[t]>=3;)t=a();e[t]?e[t]++:e[t]=1}return e})(),n=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(n),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)||o.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(_)}}}},207:function(e,t,a){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 n=a(0),s=a(1),r=a(3),o=a(208),l=a(712),d=a(94),c=a(2),u=a(209),p=a(210),v=i(a(458)),h=a(213),m=a(5),j=a(214),g=a(48),x=a(464),b=a(11),f=a(108),C=a(4),y="sliderAddToCartAnimation",O=(0,C.getAssignment)(y),{container:S,containerWrapper:w,containerCheckbox:P,containerCheckboxChecked:_,containerCheckboxFake:M,containerWrapperLogo:k,containerWrapperTitle:N,containerWrapperActive:I,containerWrapperReviews:V,containerWrapperBottom:T,containerWrapperBottomCheckboxWrapper:B,containerWrapperBottomButton:A,containerWrapperBottomShipsMonthly:E,containerWrapperBottomButtonHideShadow:D,containerWrapperBottomButtonActive:R}=v.default;t.ModalContentCarousel=({currentVarietyPack:e,varietyPackProducts:t,handleCloseModal:a,currency:i,labels:v,setIsReviewsOpen:C,setCurrentProductID:W,boom:L,down:F,up:$,swipe:H,sliderAutoplay:q,addToCartWithPayload:Q,isAddToCartAnimation:U})=>{const{isNutritionOpen:J,scrollContainer:z,currentCardIndex:G,currentSlider:K,slidesForImages:X,slidesForVideo:Z,currentImageIndex:Y,currentObjectOfVarieties:ee,handleCloseNutritionModal:te,handleOpenNutritionModal:ae,updateCurrentCardIdx:ie,jetpacksPayload:ne,getRandomJetpacks:se,activateSubscriptionOfSelectedProducts:re,deactivateSubscriptionOfSelectedProducts:oe,isActiveSubscriptionOfSelectedProducts:le,specialDiscount:de,addQuantity:ce,substractQuantity:ue,resetQuantities:pe}=(0,l.useModalContentCarousel)(t,W,i,F,$),{varietyPackVariants:ve,infoWithIcons:he,rating:me,raters:je}=(null==ee?void 0:ee.details)||e.details,{handleModalScroll:ge,shouldHideShadowMask:xe}=(0,x.useMaskOnModalScroll)(),be=ve[Y],fe=ne.reduce(((e,t)=>e+t.quantity),0);if(!be)return(0,n.jsx)(s.Fragment,{});const{nutritionDetails:Ce,description:ye,title:Oe,color:Se}=be,we=ye.trim().length>0,Pe=(0,r.useMemo)((()=>ne.reduce(((e,t)=>e+(0,c.lookupLocalPrice)(`${t.variant.id}${le?":subscription":""}`,i,le?(0,c.applyDiscount)(t.variant.price,25):t.variant.price)*t.quantity),0)-de),[ne,i,le,de]),_e=(0,c.priceToLocalString)(Pe,i),Me=!/[^0123456789][0].[0][0]/.test(_e)&&!/^0.00/.test(_e)&&Pe>0?_e: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)),Ve=(0,f.useVideo)(q);return(0,n.jsx)("div",Object.assign({className:S},{children:(0,n.jsxs)("div",Object.assign({className:(0,c.cx)(w,J&&I),onScroll:ge,ref:z},{children:[(0,n.jsxs)("div",Object.assign({style:{position:"relative",height:"257px"}},{children:[(0,n.jsx)(o.VarietyPackSlider,{marqueeColor:Se,marqueeText:ye,useVideoProps:Ve,updateCurrentCardIdx:ie,slidesForImages:X,currentSlider:K,handleCloseModal:a,openNutritionModal:ae,currentCardIndex:G,initialSlideNumber:Ie,variantColor:Se,labels:v,video:Z,shouldFade:ke,onlyVideo:q}),(0,n.jsx)(u.NutritionModalAnimated,Object.assign({isOpen:J,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:Oe})),(0,n.jsx)("div",Object.assign({onClick:()=>C(!0),className:`${V} no-translate`},{children:(0,n.jsx)(g.Rating,{rating:me,raters:je})})),(0,n.jsx)(j.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:H,down:F,up:$,currentCardIndex:G,initialSlide:Ie,getRandomJetpacks:se,updateCurrentCardIdx:ie,addQuantity:()=>ce(ne[G].variant.id),substractQuantity:()=>ue(ne[G].variant.id),resetQuantities:pe,isNutritionOpen:J,setShouldFade:Ne,labels:v,jetpacksPayload:ne}),he.length&&(0,n.jsx)("div",Object.assign({className:(0,c.cx)(T)},{children:(0,n.jsx)(h.ProductInfoWithIcons,{infoWithIcons:he})})),(0,n.jsxs)("div",Object.assign({className:(0,c.cx)(A,J&&R,(xe||!we)&&D)},{children:[(0,n.jsxs)("div",Object.assign({onClick:()=>{le?oe():re()},className:B},{children:[(0,n.jsxs)("div",Object.assign({className:(0,c.cx)(P,le&&_)},{children:[(0,n.jsx)("input",{checked:le,className:M,type:"checkbox"}),le&&b.CheckedIcon]})),(0,n.jsx)("p",Object.assign({className:E},{children:v.buttons.subscribeAndSave}))]})),(0,n.jsx)(d.BundleButton,{label:v.buttons.addToCart,onClick:e=>{var t;Q(ne,U?e:void 0,U?fe:void 0),a(),O&&(null===(t=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===t||t.postExposure(`${y}`,O))},price:Me,disabled:0===fe})]}))]}))}))}},719:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useControls=void 0;const i=a(3),n=a(2),s=a(4),r="sliderAddToCartAnimation",o=(0,s.getAssignment)(r);t.useControls=({payload:e,variants:t,addToCartWithPayload:a,handleCloseModal:s,isAddToCartAnimation:l,currency:d})=>{const[c,u]=(0,i.useState)(1),[p,v]=(0,i.useState)(t[0]),[h,m]=(0,i.useState)(!1),[j,g]=(0,i.useState)(e);(0,i.useEffect)((()=>{g((e=>{const[t]=e;return[Object.assign(Object.assign({},t),{variant:p,quantity:c})]}))}),[c,p.id]);const x=(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 a=t.find((({id:t})=>e===t));a&&v(a)},toggleOpenDrawer:()=>{m((e=>!e))},isDrawerOpen:h,handleAddToCart:e=>{var t;a(j,l?e:void 0,l?c:void 0),s(),o&&(null===(t=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===t||t.postExposure(`${r}`,o))},displayPrice:x}}},221:function(e,t,a){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 n=a(0),s=a(21),r=i(a(469)),o=a(719),l=a(18),d=a(2),c=a(720),u=a(0),p=a(94),v=a(77),h=a(11),{wrapper:m,wrapperHideShadow:j,wrapperButton:g,drawer:x,drawerClose:b,drawerActive:f,drawerImage:C,drawerTitle:y,drawerSwatches:O,wrapperQuantity:S}=r.default;t.Controls=({colorOrder:e,shouldHideShadowMask:t,hasDescription:a,variants:i,payload:r,addToCartLabel:w,currency:P,addToCartWithPayload:_,handleCloseModal:M,isAddToCartAnimation:k})=>{var N,I;const{decrementQuantity:V,incrementQuantity:T,quantity:B,handleSwatchClick:A,selectedVariant:E,isDrawerOpen:D,toggleOpenDrawer:R,displayPrice:W,handleAddToCart:L}=(0,o.useControls)({variants:i,payload:r,addToCartWithPayload:_,handleCloseModal:M,isAddToCartAnimation:k,currency:P}),F=(0,c.getExtendedColorOrder)(e,i),$=F.find((({variantId:e})=>e===E.id));return(0,n.jsxs)(u.Fragment,{children:[(0,n.jsxs)("div",Object.assign({className:(0,d.cx)(m,(t||!a)&&j)},{children:[D?(0,n.jsx)("button",Object.assign({onClick:R,className:g},{children:h.dropDown})):(0,n.jsx)(l.ProductOptionSwatch,{colorId:E.colorId,swatch_src:null!==(N=null==$?void 0:$.swatch_src)&&void 0!==N?N:"",swatch_hex:null!==(I=null==$?void 0:$.swatch_hex)&&void 0!==I?I:"",isSelected:!0,swatchClicked:R,size:"large"}),(0,n.jsx)("div",Object.assign({className:S},{children:(0,n.jsx)(s.QuantitySelector,{quantity:B,decrementQuantity:V,incrementQuantity:T,height:"large"})})),(0,n.jsx)(p.BundleButton,{label:w,price:W,onClick:L})]})),(0,n.jsxs)("div",Object.assign({className:(0,d.cx)(x,D&&f)},{children:[(0,n.jsx)("div",Object.assign({className:b},{children:(0,n.jsx)(v.CloseButton,{onClick:M})})),(0,n.jsx)("div",Object.assign({className:C},{children:(0,n.jsx)("img",Object.assign({},E.image))})),(0,n.jsxs)("div",Object.assign({className:y},{children:[(0,n.jsx)("h6",{children:"color:"}),(0,n.jsx)("h6",{children:E.title})]})),(0,n.jsx)("div",Object.assign({className:O},{children:F.map((({swatch:e,swatch_src:t,swatch_hex:a,id:i,variantId:s})=>(0,n.jsx)(l.ProductOptionSwatch,{colorId:e,swatch_src:t,swatch_hex:a,isSelected:e===E.colorId,swatchClicked:()=>{A(s)},isInSelect:!0})))}))]}))]})}},720:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getExtendedColorOrder=void 0,t.getExtendedColorOrder=(e,t)=>e.reduce(((e,a)=>{const i=t.find((({colorId:e})=>e===a.swatch));return i?[...e,Object.assign(Object.assign({},a),{variantId:i.id})]:e}),[])},219:function(e,t,a){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 n=a(0),s=i(a(468)),{wrapper:r}=s.default;t.Divider=()=>(0,n.jsx)("div",Object.assign({className:r},{children:"or"}))},217:function(e,t,a){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 n=a(0),s=a(2),r=a(94),o=a(218),l=a(464),d=i(a(467)),c=a(48),u=a(58),p=a(219),v=a(95),h=(a(1),a(4)),m=a(221),{wrapper:j,wrapperSlider:g,wrapperContentSwitch:x,wrapperContentSwitchButton:b,wrapperContentSwitchButtonActive:f,wrapperContent:C,wrapperContentOld:y,wrapperContentReviews:O,wrapperContentTitle:S,wrapperContentTitleOld:w,wrapperContentTitleSmaller:P,wrapperContentSubtitle:_,wrapperContentDescription:M,wrapperContentDescriptionOld:k,wrapperButton:N,wrapperButtonHideShadow:I,wrapperContentIcons:V,wrapperContentIconsOld:T,wrapperContentIconsSingle:B,wrapperStylux:A,wrapperStyluxHideShadow:E,wrapperWithStylux:D,wrapperBundle:R,wrapperBundleBottom:W,wrapperBundleButton:L,wrapperBundleHideShadow:F,wrapperBundleTitle:$,wrapperBundleImages:H,wrapperWithBundle:q,wrapperWithBlendjet:Q}=d.default,U="sliderAddToCartAnimation",J=(0,h.getAssignment)(U);t.ModalContentSimple=({details:e,handleCloseModal:t,setIsReviewsOpen:a,labels:i,sliderAutoplay:d,currency:h,handleBundleProductClick:z,newMiniPDPVariation:G,styluxFeature:K,addToCartWithPayload:X,isAddToCartAnimation:Z,isNewMiniPdp:Y,payload:ee,colorOrder:te})=>{var ae,ie,ne,se,re,oe,le,de,ce,ue;const{handleModalScroll:pe,shouldHideShadowMask:ve}=(0,l.useMaskOnModalScroll)(),{carouselMedia:he,price:me,title:je,subtitle:ge,description:xe,rating:be,raters:fe,id:Ce,handle:ye,video:Oe,infoWithIcons:Se,similarProducts:we,productTitle:Pe,variants:_e}=e,Me="blendjet-2"===ye,ke=e=>{var a;t(),X(ee,Z?e:void 0),J&&(null===(a=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===a||a.postExposure(`${U}`,J))},Ne="recipe-book"===ye||"next-gen-blending-volume-2"===ye||!Y||Me?Se:Se.slice(0,3),Ie=(0,s.getDisplayPrice)(Ce,String(me),h),Ve=xe.trim().length>0,Te=xe.replace(/<\/?a[^>]*>/g,""),Be=K.variantsMapping[Ce],Ae=(0,s.getDisplayPrice)(null!==(ae=null==Be?void 0:Be.id)&&void 0!==ae?ae:Ce,null!==(ie=null==Be?void 0:Be.price)&&void 0!==ie?ie:ee[0].variant.price,h),Ee=null===(le=100*Number(null!==(ne=null==Be?void 0:Be.price)&&void 0!==ne?ne:0)-100*Number(null!==(oe=null===(re=null===(se=ee[0])||void 0===se?void 0:se.variant)||void 0===re?void 0:re.price)&&void 0!==oe?oe:0))||void 0===le?void 0:le.toString(),De=Object.assign(Object.assign({},ee[0]),{product:Object.assign(Object.assign({},ee[0].product),{title:null!==(de=null==Be?void 0:Be.productTitle)&&void 0!==de?de:ee[0].product.title}),variant:Object.assign(Object.assign({},ee[0].variant),Be)}),Re=!!Be&&["jetsetter-insulated-sleeve","large-jetsetter-insulated-sleeve","xl-jetsetter-insulated-sleeve"].includes(ye)&&"stylux"===G&&Y,We="bundle"===G&&!!e.bundle&&Y,Le=!Re&&!We&&!Me,Fe=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:"",$e=`${i.buttons.addBundleToCart} - $${Fe}`;return(0,n.jsxs)("div",Object.assign({className:(0,s.cx)(j,Re&&D,We&&q,Me&&Q),onScroll:pe},{children:[(0,n.jsx)("div",Object.assign({className:g},{children:(0,n.jsx)(o.Slider,{sliderAutoplay:d,handle:ye,carouselMedia:he,handleCloseModal:t,video:Oe,currentUpsellProductId:Ce})})),(0,n.jsxs)("div",Object.assign({className:(0,s.cx)(C,!Y&&y)},{children:[Y&&!!we.length&&(0,n.jsx)("div",Object.assign({className:x},{children:we.map((({id:e,label:t})=>(0,n.jsx)("button",Object.assign({className:(0,s.cx)(b,e===Ce&&f),onClick:()=>{z(e)}},{children:t}),e)))})),Y?(0,n.jsx)("p",Object.assign({className:(0,s.cx)(S,"no-translate",!!ge&&P)},{children:je})):(0,n.jsx)("p",Object.assign({className:(0,s.cx)(w,"no-translate")},{children:Pe})),Y&&!!ge&&(0,n.jsx)("p",Object.assign({className:(0,s.cx)(_,"no-translate")},{children:ge})),(0,n.jsx)("div",Object.assign({onClick:()=>{a(!0)},className:`${O} no-translate`},{children:(0,n.jsx)(c.Rating,{rating:be,raters:fe,largeStars:Y})})),Ve&&(0,n.jsx)("div",{className:(0,s.cx)(M,!Y&&k),dangerouslySetInnerHTML:{__html:Te}}),(0,n.jsx)("div",Object.assign({className:(0,s.cx)(V,!Y&&T)},{children:Ne.map((({icon:e,title:t})=>(0,n.jsxs)("div",Object.assign({className:B},{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||!Ve)&&I)},{children:(0,n.jsx)(r.BundleButton,{label:i.buttons.addToCart,price:Ie,onClick:ke})})),Re&&(0,n.jsxs)("div",Object.assign({className:(0,s.cx)(A,(ve||!Ve)&&E)},{children:[(0,n.jsx)(v.StyluxFeature,{labels:K.labels,image:{src:he[0].src,alt:he[0].alt},displayPrice:Ae,payload:De,addToCartWithPayload:X,onSubmit:t,styluxAddToCartAnimation:Z,styluxPersonalizationPrice:Ee}),(0,n.jsx)(p.Divider,{}),(0,n.jsx)(r.BundleButton,{label:i.buttons.addToCart,price:Ie,onClick:ke})]})),We&&!!e.bundle&&(0,n.jsxs)("div",Object.assign({className:(0,s.cx)(R,We&&W,(ve||!Ve)&&F)},{children:[(0,n.jsx)(r.BundleButton,{label:i.buttons.addToCart,price:Ie,onClick:ke}),(0,n.jsx)(p.Divider,{}),(0,n.jsx)("p",Object.assign({className:$},{children:e.bundle.map((e=>e.displayName)).join(" + ")})),(0,n.jsx)("div",Object.assign({className:H},{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:a=>{var i;const n=e.bundle.reduce(((e,t)=>[...e,...t.payload]),[]);X(n,Z?a:void 0,Z?n.length:void 0),t(),J&&(null===(i=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===i||i.postExposure(`${U}`,J))},className:L},{children:$e}))]})),Me&&!!_e.length&&(0,n.jsx)(m.Controls,{colorOrder:te,shouldHideShadowMask:ve,hasDescription:Ve,variants:_e,payload:ee,currency:h,addToCartLabel:i.buttons.addToCart,addToCartWithPayload:X,isAddToCartAnimation:Z,handleCloseModal:t})]}))}},209:function(e,t,a){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 n=a(0),s=a(1),r=a(2),o=i(a(454)),l=a(3),{baseSlideLeftOver:d,baseSlideLeftOverActive:c,baseSlideLeftOverDisabled:u,baseSlidePointToScroll:p,modal:v,modalActive:h,modalDisabled:m,modalContent:j,modalContentActive:g,modalContentDisabled:x,modalContentCard:b,modalContentCardActive:f,modalContentCardDisabled:C,modalContentCardFront:y,modalContentCardBack:O,modalContentCardBackClose:S,backdrop:w,backdropActive:P,backdropDisabled:_}=o.default;t.NutritionModalAnimated=({backImage:e,frontImage:t,handleCloseNutritionModal:a,isOpen:i,position:{top:o,left:M,shadow:k}})=>{const[N,I]=(0,l.useState)(!1),V=(0,l.useRef)(null);return(0,l.useEffect)((()=>{var e;const t=document.getElementById("bundle-slider-modal-content-carousel");i?(I(!0),null===(e=V.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")}),[V,i]),(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("div",{style:{"--left":`${M}`},className:(0,r.cx)(d,N?i?c:u:"")}),(0,n.jsx)("div",{ref:V,className:p}),(0,n.jsx)("div",{className:(0,r.cx)(w,N?i?P:_:"")}),(0,n.jsx)("div",Object.assign({style:{"--left":`${M}`},className:(0,r.cx)(v,N?i?h:m:"")},{children:(0,n.jsx)("div",Object.assign({className:(0,r.cx)(j,N?i?g:x:"")},{children:(0,n.jsxs)("div",Object.assign({className:(0,r.cx)(b,N?i?f:C:"")},{children:[(0,n.jsx)("div",Object.assign({className:y},{children:(0,n.jsx)("img",Object.assign({},t))})),(0,n.jsxs)("div",Object.assign({className:O},{children:[(0,n.jsx)("img",Object.assign({},e)),(0,n.jsx)("button",Object.assign({onClick:()=>a(),className:S},{children:(0,n.jsx)("span",{style:{"--closeButtonColor":"#FFF"}})}))]}))]}))}))}))]})}},213:function(e,t,a){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 n=a(0),s=(a(1),a(58)),r=i(a(459)),{wrapper:o,wrapperItem:l,wrapperItemTitle:d}=r.default;t.ProductInfoWithIcons=({infoWithIcons:e})=>e.length?(0,n.jsx)("div",Object.assign({className:o},{children:e.map((e=>(0,n.jsxs)("div",Object.assign({className:l},{children:[(0,n.jsx)(s.FeatureIcon,{name:e.icon}),(0,n.jsx)("p",Object.assign({className:d},{children:e.title}))]}))))})):null},709:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSelectionModal=void 0;const i=a(3);t.useSelectionModal=function(e){return{modalContainer:(0,i.useRef)(null),handleClose:t=>{t.target===t.currentTarget&&e()}}}},206:function(e,t,a){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 n=a(0),s=a(1),r=a(709),o=a(207),l=a(217),d=i(a(470)),c=a(3),u=a(77),p=a(222),{spinner:v,spinnerWrapper:h,modal:m,modalBackdrop:j,modalReviews:g,modalReviewsButton:x}=d.default;t.SelectionModal=function({upsellProducts:e,currentUpsellProduct:t,currency:a,labels:i,handleCloseModal:d,addToCartWithPayload:b,soundPack:f,sliderAutoplay:C,handleBundleProductClick:y,newMiniPDPVariation:O,styluxFeature:S,isAddToCartAnimation:w,isNewMiniPdp:P,colorOrder:_}){var M;const{modalContainer:k,handleClose:N}=(0,r.useSelectionModal)(d),{id:I}=t.details,{withVariants:V}=t||{},[T,B]=(0,c.useState)(!1),[A,E]=(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:j,onClick:N},{children:(0,n.jsxs)("div",Object.assign({className:m,ref:k},{children:[V?(0,n.jsx)(o.ModalContentCarousel,Object.assign({sliderAutoplay:C},f,{setCurrentProductID:E,setIsReviewsOpen:B,currentVarietyPack:t,varietyPackProducts:e.filter((e=>e.withVariants)),handleCloseModal:d,addToCartWithPayload:b,labels:i,currency:a,isAddToCartAnimation:w})):(0,n.jsx)(l.ModalContentSimple,{sliderAutoplay:C,setIsReviewsOpen:B,details:t.details,handleCloseModal:d,handleBundleProductClick:y,payload:t.payload,addToCartWithPayload:b,labels:i,currency:a,newMiniPDPVariation:O,styluxFeature:S,isAddToCartAnimation:w,isNewMiniPdp:P,colorOrder:_}),T&&(0,n.jsxs)("div",Object.assign({className:g},{children:[(0,n.jsx)(u.CloseButton,{isBlue:!0,onClick:()=>B(!1),className:x}),(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})]}))]}))}))})}},711:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useVideoSlide=void 0;const i=a(3);t.useVideoSlide=(e,t)=>{var a,n;const s=(0,i.useRef)(null),[r,o]=(0,i.useState)(!0),[l,d]=(0,i.useState)(!1),[c,u]=(0,i.useState)(!1),[p,v]=(0,i.useState)(!1);v(Boolean((null===(a=s.current)||void 0===a?void 0:a.webkitAudioDecodedByteCount)||(null===(n=s.current)||void 0===n?void 0:n.mozHasAudio)));const h=(0,i.useCallback)((()=>{s.current&&(s.current.play(),o(!0))}),[]),m=(0,i.useCallback)((()=>{s.current&&(s.current.pause(),o(!1))}),[]),j=(0,i.useCallback)((()=>{s.current&&(s.current.muted=!l,d(!l))}),[l]),g=(0,i.useCallback)((()=>{t||(e(),o(!1),d(!1),v(!1))}),[e]),x=(0,i.useCallback)((()=>{setTimeout((()=>{u(!0)}),1e3)}),[]);return(0,i.useEffect)((()=>{s.current||setTimeout((()=>{u(!0)}),1e3)}),[]),{isVideoOn:r,isMuted:l,video:s,hasLoaded:c,hasAudio:p,handlePlayVideo:h,handlePauseVideo:m,toggleMuteVideo:j,handleVideoEnd:g,handleMediaLoadEnd:x}}},119:function(e,t,a){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 n=a(0),s=a(1),r=a(2),o=a(711),l=a(5),d=i(a(450)),{slide:c,slideButton:u,slideButtonPlay:p,slideButtonSound:v,slideLoader:h,slideImage:m,slideImageFade:j}=d.default;t.Slide=({alt:e,src:t,type:a,className:i,isContentCarousel:d,handleGoToNextSlide:g,shouldFade:x})=>{const b="video"===a,{isMuted:f,video:C,isVideoOn:y,hasLoaded:O,hasAudio:S,toggleMuteVideo:w,handlePauseVideo:P,handlePlayVideo:_,handleVideoEnd:M,handleMediaLoadEnd:k}=(0,o.useVideoSlide)(g,d);return(0,n.jsx)("div",Object.assign({className:(0,r.cx)(c,i,!O&&h)},{children:b?(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"})})),y?(0,n.jsxs)(s.Fragment,{children:[S&&(0,n.jsx)("button",Object.assign({onClick:e=>{e.stopPropagation()},className:(0,r.cx)(u,v)},{children:f?(0,n.jsx)(l.Icons.VideoVolumeOff,{}):(0,n.jsx)(l.Icons.VideoVolumeOn,{})})),(0,n.jsx)("button",Object.assign({className:(0,r.cx)(u,p),onClick:e=>{e.stopPropagation(),P()}},{children:(0,n.jsx)(l.Icons.VideoPause,{})}))]}):(0,n.jsx)("button",Object.assign({className:(0,r.cx)(u,p),onClick:e=>{e.stopPropagation(),_()}},{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:x?j:m,src:t,alt:e,onLoad:k})}))}},717:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlider=void 0;const i=a(12),n=a(3);a(9),t.useSlider=(e,t,a,s)=>{const[r,o]=(0,n.useState)(0),[l,d]=(0,n.useState)(!1),c={initial:a,slides:{perView:1},loop:!!s,rubberband:!1,drag:!s,slideChanged({track:{details:e}}){o(e.rel)}},[u,p]=(0,i.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,l]),(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!=a?a:0)}),[a]),(0,n.useEffect)((()=>{d(!0)}),[]),{isSliderLoaded:l,currentSlideIndex:r,sliderRef:u,handleGoToNextSlide:(0,n.useCallback)((()=>{p.current&&p.current.next()}),[])}}},218:function(e,t,a){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 n=a(1),s=a(0),r=a(717),o=a(77),l=a(119),d=a(2);a(465);const c=i(a(466)),u=a(108),p=a(76),v=a(3),{container:h,containerButton:m,containerSlider:j,containerVideo:g,containerWrapper:x,containerWrapperDot:b,containerWrapperDotActive:f,containerVideoFade:C}=c.default;t.Slider=({carouselMedia:e,handleCloseModal:t,video:a,handle:i,sliderAutoplay:c,currentUpsellProductId:y})=>{const{isSliderLoaded:O,currentSlideIndex:S,sliderRef:w,handleGoToNextSlide:P}=(0,r.useSlider)(y),{isVideoPlaying:_,isVideoMuted:M,pauseVideo:k,playVideo:N,toggleMuteVideo:I}=(0,u.useVideo)(c),[V,T]=(0,v.useState)(!1),B=(0,v.useRef)(null);(0,v.useEffect)((()=>{var e;let t;return _&&(t=setTimeout((()=>{var e;T(!0),null===(e=B.current)||void 0===e||e.play()}),600)),T(!1),null===(e=B.current)||void 0===e||e.pause(),()=>{clearTimeout(t)}}),[_]);const A=e.length>1,E=!!a.src.length,D="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:[(!_||!E)&&A&&(0,s.jsx)("div",Object.assign({className:x},{children:e.map((({src:e},t)=>{const a=S===t;return(0,s.jsx)("div",{className:(0,d.cx)(b,a&&f)},e+t)}))})),E&&_&&(0,s.jsx)("div",Object.assign({className:(0,d.cx)(g,V&&C)},{children:(0,s.jsx)("video",{onEnded:k,src:a.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",j)},{children:e.map(((e,t)=>(0,n.createElement)(l.Slide,Object.assign({},e,{className:`keen-slider__slide number-slide${t+1}`,key:e.src+t,handleGoToNextSlide:P,isContentCarousel:!1,shouldFade:!1}))))})),E&&(0,s.jsx)(p.VideoControls,{videoSrc:a.src,isVideoPlaying:_,isVideoMuted:M,pauseVideo:k,playVideo:N,toggleMuteVideo:I,isOrbiter:D}),(0,s.jsx)(o.CloseButton,{isBlue:D,onClick:()=>!c&&_?k():t(),className:m})]}))}},205:function(e,t,a){var i=this&&this.__awaiter||function(e,t,a,i){return new(a||(a=Promise))((function(n,s){function r(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.useUpsellsToolSliderButton=void 0;const n=a(3),s=a(4),r="sliderAddToCartAnimation",o=(0,s.getAssignment)(r);t.useUpsellsToolSliderButton=({addToCartWithPayload:e,isAddToCartAnimation:t,isTextInButton:a,isVarietyPack:s,onClick:l,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=>i(void 0,void 0,void 0,(function*(){var i;if(h.current=n.currentTarget,s)l();else{if(o&&(null===(i=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===i||i.postExposure(`${r}`,o)),!a)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)}}))}}},204:function(e,t,a){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 n=a(0),s=(a(1),i(a(448))),r=a(2),o=a(13),l=a(205),{wrapper:d,wrapperIcon:c,wrapperIconCart:u,wrapperIconCartVarietyPack:p,wrapperIconHidden:v,wrapperIconVariety:h,spinner:m,wrapperIconAdded:j,wrapperIconAddedNumber:g}=s.default;t.UpsellsToolSliderButton=({onClick:e,isTextInButton:t,addLabel:a,addedLabel:i,isVarietyPack:s,selectLabel:x,selectedVarietyPacksQuantity:b,addToCartWithPayload:f,isAddToCartAnimation:C,productPayload:y,isPdp:O})=>{const{didAdd:S,handleClick:w,isLoading:P}=(0,l.useUpsellsToolSliderButton)({onClick:e,isVarietyPack:s,isTextInButton:t,addToCartWithPayload:f,isAddToCartAnimation:C,productPayload:y}),_=(null!=b?b:0)>0;return t?(0,n.jsx)("button",Object.assign({className:d,onClick:w},{children:P?(0,n.jsx)("span",{className:m}):s?x:S||_?i:a})):(0,n.jsx)("button",Object.assign({className:(0,r.cx)(!O&&!s&&u,!O&&s&&p,c,(P||S||_)&&v,s&&h),onClick:w},{children:(S||_)&&(s?(0,n.jsx)("div",Object.assign({className:j},{children:(0,n.jsx)("div",Object.assign({className:g},{children:b}))})):(0,n.jsx)(o.CheckMarkGreenIcon,{}))}))}},212:function(e,t,a){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 n=a(0),s=a(2),r=i(a(457)),{wrapper:o,wrapperDecrease:l,wrapperDecreaseActive:d,wrapperIncrease:c}=r.default;t.QuantityButton=({onClick:e,startCounter:t,stopCounter:a,isIncreasingButton:i=!1,isDecreasingEnabled:r=!1,isDisabled:u=!1})=>{const p=(0,s.cx)(o,c),v=(0,s.cx)(o,l,r?d:""),h=i?p:v;return(0,n.jsxs)("button",Object.assign({className:h,onClick:e,onMouseDown:()=>t(),onMouseUp:a,onMouseLeave:a,onTouchStart:()=>t(),onTouchEnd:a,disabled:u,onContextMenu:e=>e.preventDefault()},{children:[(0,n.jsx)("span",{}),(0,n.jsx)("span",{})]}))}},715:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useConfirmRemovalModal=void 0;const i=a(3);t.useConfirmRemovalModal=({removeSelectedVariants:e})=>{const[t,a]=(0,i.useState)(!1);return{isRemovalConfirmationVisible:t,openRemovalConfirmation:()=>a(!0),closeRemovalConfirmation:t=>{t&&e(),a(!1)}}}},714:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useQuantityCounter=void 0;const i=a(6);t.useQuantityCounter=({jetpacksPayload:e,activeSlideIndex:t,addQuantity:a,substractQuantity:n})=>{var s,r;const o=(0,i.useRef)(null);(0,i.useEffect)((()=>()=>l()),[]);const l=()=>{o.current&&(clearInterval(o.current),o.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)=>{o.current||(o.current=setInterval((()=>{e?n():a()}),200))},stopCounter:l,isResetButtonEnabled:d,isSubstractButtonEnabled:c,isConfirmationEnabled:u}}},713:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useVarietyPackCarousel=void 0;const i=a(12),n=a(3),s=a(157);t.useVarietyPackCarousel=({initialSlide:e,updateCurrentCardIdx:t,isNutritionOpen:a=!1,setShouldFade:r,currentCardIndex:o,swipe:l,jetpacksPayload:d})=>{var c,u;const[p,v]=(0,n.useState)(!1),h=d.length,[m,j]=(0,n.useState)(null),g=(0,n.useRef)(0),x={duration:350,easing:e=>e},b={duration:150,easing:e=>e},f={duration:0,easing:e=>e},C=[a=>{let i=0,n=0;a.on("detailsChanged",(e=>{Math.abs(n-e.track.details.rel)>1&&r(!0),j(e.track.details)})),a.on("created",(e=>{g.current=e.size})),a.on("updated",(e=>{g.current=e.size})),a.on("animationEnded",(s=>{t(s.track.details.rel),r(!1),n=s.track.details.rel,v(!1),i||(a.moveToIdx(e,!0,f),i++)})),a.on("dragStarted",(()=>{v(!0)}))}],y={slides:{number:h,origin:"center",perView:s.SLIDES_PER_VIEW},initial:e,loop:!0,mode:"free-snap"},[O,S]=(0,i.useKeenSlider)(y,C);(0,n.useEffect)((()=>{p&&S.current&&l.play()}),[null===(c=null==S?void 0:S.current)||void 0===c?void 0:c.track.details.rel]),(0,n.useEffect)((0,s.fixKeenSliderBugInPreact)(S,y),[S.current]),(0,n.useEffect)((()=>{let e;return e=setTimeout((()=>{var e;null===(e=S.current)||void 0===e||e.moveToIdx(o,!1,b)}),50),()=>clearTimeout(e)}),[o]);const w=(0,n.useCallback)((e=>{if(!S.current)return;const t=S.current.track.details.rel,a=Math.abs(t-e),i=80*(a>3?3:a);S.current.animator.stop(),S.current.moveToIdx(e,!1,Object.assign(Object.assign({},x),{duration:i}))}),[]),[P,_]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{var e,t,i;a&&((null===(e=S.current)||void 0===e?void 0:e.animator.active)&&_(!0),null===(t=S.current)||void 0===t||t.animator.stop()),P&&(null===(i=S.current)||void 0===i||i.moveToIdx(0),_(!1))}),[a]),{sliderRef:O,slideValues:(0,s.getSlideValues)({sliderState:m,jetpacksPayload:d}),handleSlideClick:w,activeSlideIndex:(null===(u=S.current)||void 0===u?void 0:u.track.details.rel)||0}}},210:function(e,t,a){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 n=a(0),s=a(1),r=a(2),o=i(a(455)),l=a(713),d=a(211),c=a(714),u=a(212),p=a(5),v=a(715),{container:h,containerCarousel:m,containerCarouselSlider:j,containerCarouselSliderInner:g,containerCarouselSliderInnerSlides:x,containerCarouselSliderInnerSlidesSlide:b,containerCarouselSliderInnerSlidesSlideCounter:f,containerQuantityCTAContainer:C,containerQuantityCTAContainerButtons:y}=o.default;t.VarietyPackCarousel=({updateCurrentCardIdx:e,resetQuantities:t,isNutritionOpen:a,setShouldFade:i,labels:o,getRandomJetpacks:O,initialSlide:S,currentCardIndex:w,swipe:P,addQuantity:_,substractQuantity:M,jetpacksPayload:k})=>{const{sliderRef:N,slideValues:I,handleSlideClick:V,activeSlideIndex:T}=(0,l.useVarietyPackCarousel)({initialSlide:S,updateCurrentCardIdx:e,isNutritionOpen:a,setShouldFade:i,currentCardIndex:w,swipe:P,jetpacksPayload:k}),{startCounter:B,stopCounter:A,isResetButtonEnabled:E,isSubstractButtonEnabled:D,isConfirmationEnabled:R}=(0,c.useQuantityCounter)({jetpacksPayload:k,activeSlideIndex:T,addQuantity:_,substractQuantity:M}),W=()=>{t()},{isRemovalConfirmationVisible:L,openRemovalConfirmation:F,closeRemovalConfirmation:$}=(0,v.useConfirmRemovalModal)({removeSelectedVariants:W}),{isRemovalConfirmationVisible:H,openRemovalConfirmation:q,closeRemovalConfirmation:Q}=(0,v.useConfirmRemovalModal)({removeSelectedVariants:W});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)(j,"keen-slider"),ref:N},{children:(0,n.jsx)("div",Object.assign({className:g},{children:(0,n.jsx)("div",Object.assign({className:x},{children:I.map((({style:e,innerStyle:t,image:a,counterStyles:i,quantity:s},r)=>(0,n.jsx)("div",Object.assign({onClick:()=>V(r),className:b,style:Object.assign(Object.assign({},e),{zIndex:T===r?"1":"unset"})},{children:(0,n.jsxs)("div",Object.assign({style:t},{children:[0!==s&&(0,n.jsx)("div",Object.assign({className:f,style:i},{children:s})),(0,n.jsx)("img",Object.assign({},a))]}))}),r)))}))}))}))})),(0,n.jsxs)("div",Object.assign({className:C},{children:[E?(0,n.jsx)(p.Icons.ResetIcon,{width:"27px",height:"26px",color:"#999999",onClick:F}):(0,n.jsx)("span",{style:{width:"27px",height:"26px"}}),(0,n.jsxs)("div",Object.assign({className:y},{children:[(0,n.jsx)(u.QuantityButton,{onClick:M,startCounter:()=>B(!0),stopCounter:A,isDecreasingEnabled:D,isDisabled:!D}),(0,n.jsx)(u.QuantityButton,{onClick:_,startCounter:B,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?$:Q,isOpen:L||H,additionalAcceptAction:()=>{H&&(W(),O())},labels:o,isRandomJPConfirmation:H,isResetAndRandomJPConfirmation:R&&H})]})}},157:(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:a})=>{var i,n;if(!e)return[];const s=.5-1/t.SLIDES_PER_VIEW/2,r=a.length,o=[];for(let l=0;lt.WHEEL_SIZE/2?180:r*(360/t.WHEEL_SIZE)*-1,c={transform:`translateX(${2.8*-d}px)`,WebkitTransform:`translateX(${2.8*-d}px)`},u=a[l].variant.cartImage,p=Math.abs(e.rel-l),v=0===p,h=1===p||p===e.slides.length-1,m=2===p||p===e.slides.length-2,j=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"},g={padding:v?"0px":h?"5px":m?"10px":"11px",transform:1===p&&e.rel>l?"translateX(-8px)":1===p&&e.rel{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlider=void 0;const i=a(12),n=a(3);a(9),t.useSlider=(e,t,a,s=!1)=>{const[r,o]=(0,n.useState)(0),[l,d]=(0,n.useState)(!1),c={initial:a,slides:{perView:1},loop:!0,rubberband:!1,drag:!0,slideChanged({track:{details:e}}){o(e.rel)},animationEnded({track:{details:e}}){t(e.rel)}},[u,p]=(0,i.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,l]);const[m,j]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{s&&j(!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}),j(!1)}),[e]),(0,n.useEffect)((()=>{d(!0)}),[]),{isSliderLoaded:l,currentSlideIndex:r,sliderRef:u,handleGoToNextSlide:(0,n.useCallback)((()=>{p.current&&p.current.next()}),[])}}},208:function(e,t,a){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 n=a(1),s=a(0),r=a(710),o=a(77),l=a(119),d=a(2),c=a(5);a(451);const u=i(a(452)),p=a(76),v=i(a(64)),h=a(3),{container:m,containerNutrition:j,containerCloseButton:g,containerSlider:x,containerVideo:b,containerVideoFade:f,containerMarquee:C,containerMarqueeText:y}=u.default;t.VarietyPackSlider=({slidesForImages:e,handleCloseModal:t,openNutritionModal:a,currentCardIndex:i,initialSlideNumber:u,variantColor:O,labels:S,video:w,updateCurrentCardIdx:P,shouldFade:_,useVideoProps:M,marqueeText:k,marqueeColor:N,onlyVideo:I})=>{var V;const T=null===(V=w[i])||void 0===V?void 0:V.src,{isVideoMuted:B,isVideoPlaying:A,pauseVideo:E,playVideo:D,toggleMuteVideo:R}=M,{isSliderLoaded:W,sliderRef:L,handleGoToNextSlide:F}=(0,r.useSlider)(i,P,u,_),[$,H]=(0,h.useState)(!1),q=(0,h.useRef)(null);return(0,h.useEffect)((()=>{var e;let t;return A&&(t=setTimeout((()=>{var e;H(!0),null===(e=q.current)||void 0===e||e.play()}),600)),H(!1),null===(e=q.current)||void 0===e||e.pause(),()=>{clearTimeout(t)}}),[i,A]),(0,s.jsxs)("div",Object.assign({className:(0,d.cx)(m,(0,d.cx)(!W&&"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:y,dangerouslySetInnerHTML:{__html:k.replace("

","

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