"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[42],{95:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.changeToFastImage=void 0,t.changeToFastImage=(e="",t=0)=>{const a="//downloads.ctfassets.net/strhx3d94c40/",i="//images.ctfassets.net/strhx3d94c40/",n="https://cdn.shopify.com/s/files/1/0066/4433/4658/",s="https://cdn.shopify.com/s/files/1/0779/3721/3739/",r="https://cdn.shopify.com/s/files/1/0634/9937/0684/";let o=e;if(e.includes(i)){let e="/fast-image/blendjet-ctf/";t&&(e=`/fast-image/h_${t}/blendjet-ctf/`),o=o.replace(i,e)}if(e.includes(a)){let e="/fast-image/blendjet-ctf/";t&&(e=`/fast-image/h_${t}/blendjet-ctf/`),o=o.replace(a,e)}if(e.includes(n)){let e="/fast-image/blendjet/";t&&(e=`/fast-image/h_${t}/blendjet/`),o=o.replace(n,e)}if(e.includes(s)){let e="/fast-image/blendjet-in/";t&&(e=`/fast-image/h_${t}/blendjet-in/`),o=o.replace(s,e)}if(e.includes(r)){let e="/fast-image/blendjet-au/";t&&(e=`/fast-image/h_${t}/blendjet-au/`),o=o.replace(r,e)}return o}},67:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.loadLoox=void 0;const i=a(21);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)}},185: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(455))),{wrapperContent:r,wrapperContentText:o,wrapperContentTextBlock:l,wrapperContentList:d,wrapperContentListSubheading:c,wrapperContentListItems:u,wrapperContentListPlanDetails:p,wrapperContentWhyChoose:v,wrapperContentWhyChooseSupport:h,wrapperContentWhyChooseSupportIcon:m,wrapperContentWhyChooseFees:j,wrapperContentWhyChooseFeesIcon:x}=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:x,alt:"no cost icon",src:"/fast-image/blendjet/free.svg",width:"22",height:"22"}),"No fees. No deductibles."]}))]}))]}))}},184: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(454))),{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"}))]}))}))}},453:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AboutExtend=void 0;const i=a(0),n=a(1),s=a(184),r=a(185);t.AboutExtend=function(){return(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(s.SvgWrapper,{}),(0,i.jsx)(r.Content,{})]})}},687:(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"}))}},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.BundleButton=void 0;const n=a(0),s=a(1),r=a(2),o=i(a(462)),{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]}))},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.BundleReviews=void 0;const n=a(0),s=(a(1),a(3)),r=a(2),o=i(a(479)),{reviews:l,bundleSliderReviews:d}=o.default,c=a(67);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})}))}},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.CartProductPreview=void 0;const n=a(0),s=i(a(480)),{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:""})}))},56: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(457)),{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})},200: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(465)),{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:x})=>(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:x?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}))]}))]}))}))]})},203: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(204),l=a(468),d=i(a(471)),c=a(6),{container:u,containerHolder:p,containerHolderAnimation:v,containerMask:h,containerMaskDone:m,containerMaskAnimation:j,containerText:x,containerTextDone:g,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),[S,O]=(0,s.useState)(!0),{inCircleText:w,bottomText:P,currentValue:_,index:M}=e,k=Number(w),N=k===_,I=_>=k;return(0,c.useEffect)((()=>{const e=_>t;d(e),a(_),e&&O(!1)}),[_,t]),(0,c.useEffect)((()=>{[12,24,36].includes(_)&&!S&&i&&e.boom.play()}),[i,S]),(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)(x,I&&g,i&&N&&b)},{children:w}))]})),!S&&(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}))]}))}},680:(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}))]}))]})]}))}},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.Star=void 0;const n=a(0),s=a(2),r=i(a(470)),{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)))}))}))},202: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(468),r=i(a(469)),o=a(203),l=a(680),{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)))]}))},468:(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%"}},676:(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,x]=(0,i.useState)("images"),g=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),[S,O]=(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),O(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:g,slidesForVideo:b,currentVideoIndex:S,currentSlider:j,currentImageIndex:w,varietyImages:f,currentObjectOfVarieties:C,setCurrentSlider:x,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(_)}}}},196: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(197),l=a(676),d=a(76),c=a(2),u=a(198),p=a(199),v=i(a(467)),h=a(112),m=a(4),j=a(202),x=a(57),g=a(472),b=a(12),f=a(144),C=a(5),y="sliderAddToCartAnimation",S=(0,C.getAssignment)(y),{container:O,containerWrapper:w,containerWrapperInfo:P,containerWrapperSlider:_,containerCheckbox:M,containerCheckboxChecked:k,containerCheckboxFake:N,containerWrapperLogo:I,containerWrapperTitle:V,containerWrapperActive:T,containerWrapperReviews:B,containerWrapperBottom:A,containerWrapperBottomCheckboxWrapper:E,containerWrapperBottomButton:D,containerWrapperBottomShipsMonthly:R,containerWrapperBottomButtonHideShadow:W,containerWrapperBottomButtonActive:L}=v.default;t.ModalContentCarousel=({currentVarietyPack:e,varietyPackProducts:t,handleCloseModal:a,currency:i,labels:v,setIsReviewsOpen:C,setCurrentProductID:F,boom:$,down:H,up:Q,swipe:q,sliderAutoplay:U,addToCartWithPayload:J,isAddToCartAnimation:z})=>{const{isNutritionOpen:G,scrollContainer:X,currentCardIndex:K,currentSlider:Z,slidesForImages:Y,slidesForVideo:ee,currentImageIndex:te,currentObjectOfVarieties:ae,handleCloseNutritionModal:ie,handleOpenNutritionModal:ne,updateCurrentCardIdx:se,jetpacksPayload:re,getRandomJetpacks:oe,activateSubscriptionOfSelectedProducts:le,deactivateSubscriptionOfSelectedProducts:de,isActiveSubscriptionOfSelectedProducts:ce,specialDiscount:ue,addQuantity:pe,substractQuantity:ve,resetQuantities:he}=(0,l.useModalContentCarousel)(t,F,i,H,Q),{varietyPackVariants:me,infoWithIcons:je,rating:xe,raters:ge}=(null==ae?void 0:ae.details)||e.details,{handleModalScroll:be,shouldHideShadowMask:fe}=(0,g.useMaskOnModalScroll)(),Ce=me[te],ye=re.reduce(((e,t)=>e+t.quantity),0);if(!Ce)return(0,n.jsx)(s.Fragment,{});const{nutritionDetails:Se,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,Ve]=(0,r.useState)(!1),Te=re.findIndex((({variant:{id:t}})=>(null==e?void 0:e.payload.findIndex((({variant:{id:e}})=>e===t)))>-1)),Be=(0,f.useVideo)(U);return(0,n.jsx)("div",Object.assign({className:O},{children:(0,n.jsxs)("div",Object.assign({className:(0,c.cx)(w,G&&T),onScroll:be,ref:X},{children:[(0,n.jsxs)("div",Object.assign({className:_},{children:[(0,n.jsx)(o.VarietyPackSlider,{marqueeColor:Pe,marqueeText:Oe,useVideoProps:Be,updateCurrentCardIdx:se,slidesForImages:Y,currentSlider:Z,handleCloseModal:a,openNutritionModal:ne,currentCardIndex:K,initialSlideNumber:Te,variantColor:Pe,labels:v,video:ee,shouldFade:Ie,onlyVideo:U}),(0,n.jsx)(u.NutritionModalAnimated,Object.assign({isOpen:G,handleCloseNutritionModal:ie},Se))]})),(0,n.jsxs)("div",Object.assign({className:P},{children:[(0,n.jsx)("div",Object.assign({className:I},{children:(0,n.jsx)(m.Icons.JetPackLogoIcon,{width:"96px",height:"24px",color:"#C9CDCD"})})),(0,n.jsx)("h3",Object.assign({className:V},{children:we})),(0,n.jsx)("div",Object.assign({onClick:()=>C(!0),className:`${B} no-translate`},{children:(0,n.jsx)(x.Rating,{rating:xe,raters:ge})})),(0,n.jsx)(j.DiscountProgress,{boom:$,quantity:ye,keys:[{inCircleText:"12",bottomText:"10% OFF"},{inCircleText:"24",bottomText:"15% OFF"},{inCircleText:"36",bottomText:"20% OFF"}],unWantedIndexes:[11,12,13,23,24,25,35,36,37]}),(0,n.jsx)(p.VarietyPackCarousel,{swipe:q,down:H,up:Q,currentCardIndex:K,initialSlide:Te,getRandomJetpacks:oe,updateCurrentCardIdx:se,addQuantity:()=>pe(re[K].variant.id),substractQuantity:()=>ve(re[K].variant.id),resetQuantities:he,isNutritionOpen:G,setShouldFade:Ve,labels:v,jetpacksPayload:re}),je.length&&(0,n.jsx)("div",Object.assign({className:(0,c.cx)(A)},{children:(0,n.jsx)(h.ProductInfoWithIcons,{infoWithIcons:je})})),(0,n.jsxs)("div",Object.assign({className:(0,c.cx)(D,G&&L,(fe||!_e)&&W)},{children:[(0,n.jsxs)("div",Object.assign({onClick:()=>{ce?de():le()},className:E},{children:[(0,n.jsxs)("div",Object.assign({className:(0,c.cx)(M,ce&&k)},{children:[(0,n.jsx)("input",{checked:ce,className:N,type:"checkbox"}),ce&&b.CheckedIcon]})),(0,n.jsx)("p",Object.assign({className:R},{children:v.buttons.subscribeAndSave}))]})),(0,n.jsx)(d.BundleButton,{label:v.buttons.addToCart,onClick:e=>{var t;J(re,z?e:void 0,z?ye:void 0),a(),S&&(null===(t=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===t||t.postExposure(`${y}`,S))},price:Ne,disabled:0===ye})]}))]}))]}))}))}},685:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useControls=void 0;const i=a(3),n=a(2),s=a(5),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,x]=(0,i.useState)(e);(0,i.useEffect)((()=>{x((e=>{const[t]=e;return[Object.assign(Object.assign({},t),{variant:p,quantity:c})]}))}),[c,p.id]);const g=(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:g}}},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.Controls=void 0;const n=a(0),s=a(17),r=i(a(477)),o=a(685),l=a(18),d=a(2),c=a(686),u=a(0),p=a(76),v=a(56),h=a(12),{wrapper:m,wrapperHideShadow:j,wrapperButton:x,drawer:g,drawerClose:b,drawerActive:f,drawerImage:C,drawerTitle:y,drawerSwatches:S,wrapperQuantity:O}=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:x},{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:O},{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)(g,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:S},{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})))}))]}))]})}},686:(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}),[])},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.Divider=void 0;const n=a(0),s=i(a(476)),{wrapper:r}=s.default;t.Divider=()=>(0,n.jsx)("div",Object.assign({className:r},{children:"or"}))},205: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(76),o=a(206),l=a(472),d=i(a(475)),c=a(57),u=a(113),p=a(207),v=a(77),h=(a(1),a(5)),m=a(209),{wrapper:j,wrapperSlider:x,wrapperContentSwitch:g,wrapperContentSwitchButton:b,wrapperContentSwitchButtonActive:f,wrapperContent:C,wrapperContentStylux:y,wrapperContentBundle:S,wrapperContentOld:O,wrapperContentReviews:w,wrapperContentTitle:P,wrapperContentTitleOld:_,wrapperContentTitleSmaller:M,wrapperContentSubtitle:k,wrapperContentDescription:N,wrapperContentDescriptionOld:I,wrapperButton:V,wrapperButtonHideShadow:T,wrapperContentIcons:B,wrapperContentIconsOld:A,wrapperContentIconsSingle:E,wrapperStylux:D,wrapperStyluxHideShadow:R,wrapperWithStylux:W,wrapperBundle:L,wrapperBundleBottom:F,wrapperBundleButton:$,wrapperBundleHideShadow:H,wrapperBundleTitle:Q,wrapperBundleImages:q,wrapperWithBundle:U,wrapperWithBlendjet:J}=d.default,z="sliderAddToCartAnimation",G=(0,h.getAssignment)(z);t.ModalContentSimple=({details:e,handleCloseModal:t,setIsReviewsOpen:a,labels:i,sliderAutoplay:d,currency:h,handleBundleProductClick:X,newMiniPDPVariation:K,styluxFeature:Z,addToCartWithPayload:Y,isAddToCartAnimation:ee,isNewMiniPdp:te,payload:ae,colorOrder:ie})=>{var ne,se,re,oe,le,de,ce,ue,pe,ve;const{handleModalScroll:he,shouldHideShadowMask:me}=(0,l.useMaskOnModalScroll)(),{carouselMedia:je,price:xe,title:ge,subtitle:be,description:fe,rating:Ce,raters:ye,id:Se,handle:Oe,video:we,infoWithIcons:Pe,similarProducts:_e,productTitle:Me,variants:ke}=e,Ne="blendjet-2"===Oe,Ie=e=>{var a;t(),Y(ae,ee?e:void 0),G&&(null===(a=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===a||a.postExposure(`${z}`,G))},Ve="recipe-book"===Oe||"next-gen-blending-volume-2"===Oe||!te||Ne?Pe:Pe.slice(0,3),Te=(0,s.getDisplayPrice)(Se,String(xe),h),Be=fe.trim().length>0,Ae=fe.replace(/<\/?a[^>]*>/g,""),Ee=Z.variantsMapping[Se],De=(0,s.getDisplayPrice)(null!==(ne=null==Ee?void 0:Ee.id)&&void 0!==ne?ne:Se,null!==(se=null==Ee?void 0:Ee.price)&&void 0!==se?se:ae[0].variant.price,h),Re=null===(ce=100*Number(null!==(re=null==Ee?void 0:Ee.price)&&void 0!==re?re:0)-100*Number(null!==(de=null===(le=null===(oe=ae[0])||void 0===oe?void 0:oe.variant)||void 0===le?void 0:le.price)&&void 0!==de?de:0))||void 0===ce?void 0:ce.toString(),We=Object.assign(Object.assign({},ae[0]),{product:Object.assign(Object.assign({},ae[0].product),{title:null!==(ue=null==Ee?void 0:Ee.productTitle)&&void 0!==ue?ue:ae[0].product.title}),variant:Object.assign(Object.assign({},ae[0].variant),Ee)}),Le=!!Ee&&["jetsetter-insulated-sleeve","large-jetsetter-insulated-sleeve","xl-jetsetter-insulated-sleeve"].includes(Oe)&&"stylux"===K&&te,Fe="bundle"===K&&!!e.bundle&&te,$e=!Le&&!Fe&&!Ne,He=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} - $${He}`;return(0,n.jsxs)("div",Object.assign({className:(0,s.cx)(j,Le&&W,Fe&&U,Ne&&J),onScroll:he},{children:[(0,n.jsx)("div",Object.assign({className:x},{children:(0,n.jsx)(o.Slider,{sliderAutoplay:d,handle:Oe,carouselMedia:je,handleCloseModal:t,video:we,currentUpsellProductId:Se,isModalContentSimple:!0})})),(0,n.jsxs)("div",Object.assign({className:(0,s.cx)(C,!te&&O,Le&&y,Fe&&S)},{children:[te&&!!_e.length&&(0,n.jsx)("div",Object.assign({className:g},{children:_e.map((({id:e,label:t})=>(0,n.jsx)("button",Object.assign({className:(0,s.cx)(b,e===Se&&f),onClick:()=>{X(e)}},{children:t}),e)))})),te?(0,n.jsx)("p",Object.assign({className:(0,s.cx)(P,"no-translate",!!be&&M)},{children:ge})):(0,n.jsx)("p",Object.assign({className:(0,s.cx)(_,"no-translate")},{children:Me})),te&&!!be&&(0,n.jsx)("p",Object.assign({className:(0,s.cx)(k,"no-translate")},{children:be})),(0,n.jsx)("div",Object.assign({onClick:()=>{a(!0)},className:`${w} no-translate`},{children:(0,n.jsx)(c.Rating,{rating:Ce,raters:ye,largeStars:te})})),Be&&(0,n.jsx)("div",{className:(0,s.cx)(N,!te&&I),dangerouslySetInnerHTML:{__html:Ae}}),(0,n.jsx)("div",Object.assign({className:(0,s.cx)(B,!te&&A)},{children:Ve.map((({icon:e,title:t})=>(0,n.jsxs)("div",Object.assign({className:E},{children:[(0,n.jsx)("div",{children:(0,n.jsx)(u.FeatureIcon,{name:e})}),(0,n.jsx)("p",{children:t})]}),t)))}))]})),$e&&(0,n.jsx)("div",Object.assign({className:(0,s.cx)(V,(me||!Be)&&T)},{children:(0,n.jsx)(r.BundleButton,{label:i.buttons.addToCart,price:Te,onClick:Ie})})),Le&&(0,n.jsxs)("div",Object.assign({className:(0,s.cx)(D,(me||!Be)&&R)},{children:[(0,n.jsx)(v.StyluxFeature,{labels:Z.labels,image:{src:je[0].src,alt:je[0].alt},displayPrice:De,payload:We,addToCartWithPayload:Y,onSubmit:t,styluxAddToCartAnimation:ee,styluxPersonalizationPrice:Re}),(0,n.jsx)(p.Divider,{}),(0,n.jsx)(r.BundleButton,{label:i.buttons.addToCart,price:Te,onClick:Ie})]})),Fe&&!!e.bundle&&(0,n.jsxs)("div",Object.assign({className:(0,s.cx)(L,Fe&&F,(me||!Be)&&H)},{children:[(0,n.jsx)(r.BundleButton,{label:i.buttons.addToCart,price:Te,onClick:Ie}),(0,n.jsx)(p.Divider,{}),(0,n.jsx)("p",Object.assign({className:Q},{children:e.bundle.map((e=>e.displayName)).join(" + ")})),(0,n.jsx)("div",Object.assign({className:q},{children:e.bundle.map((e=>(0,n.jsx)("img",Object.assign({},e.payload[0].variant.cartImage),e.payload[0].variant.id)))})),(0,n.jsx)("button",Object.assign({onClick:a=>{var i;const n=e.bundle.reduce(((e,t)=>[...e,...t.payload]),[]);Y(n,ee?a:void 0,ee?n.length:void 0),t(),G&&(null===(i=null===window||void 0===window?void 0:window.__APP_CONFIG__)||void 0===i||i.postExposure(`${z}`,G))},className:$},{children:Qe}))]})),Ne&&!!ke.length&&(0,n.jsx)(m.Controls,{colorOrder:ie,shouldHideShadowMask:me,hasDescription:Be,variants:ke,payload:ae,currency:h,addToCartLabel:i.buttons.addToCart,addToCartWithPayload:Y,isAddToCartAnimation:ee,handleCloseModal:t})]}))}},198: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(463)),l=a(3),{baseSlideLeftOver:d,baseSlideLeftOverActive:c,baseSlideLeftOverDisabled:u,baseSlidePointToScroll:p,modal:v,modalActive:h,modalDisabled:m,modalContent:j,modalContentActive:x,modalContentDisabled:g,modalContentCard:b,modalContentCardActive:f,modalContentCardDisabled:C,modalContentCardFront:y,modalContentCardBack:S,modalContentCardBackClose:O,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?x:g:"")},{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:S},{children:[(0,n.jsx)("img",Object.assign({},e)),(0,n.jsx)("button",Object.assign({onClick:()=>a(),className:O},{children:(0,n.jsx)("span",{style:{"--closeButtonColor":"#FFF"}})}))]}))]}))}))}))]})}},673:(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()}}}},195: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(673),r=a(196),o=a(205),l=a(60),d=i(a(478)),c=a(3),u=a(56),p=a(210),{spinner:v,spinnerWrapper:h,modal:m,modalClose:j,modalBackdrop:x,modalReviews:g,modalReviewsButton:b}=d.default;t.SelectionModal=function({upsellProducts:e,currentUpsellProduct:t,currency:a,labels:i,handleCloseModal:d,addToCartWithPayload:f,soundPack:C,sliderAutoplay:y,handleBundleProductClick:S,newMiniPDPVariation:O,styluxFeature:w,isAddToCartAnimation:P,isNewMiniPdp:_,colorOrder:M}){var k;const{modalContainer:N,handleClose:I}=(0,s.useSelectionModal)(d),{id:V}=t.details,{withVariants:T}=t||{},[B,A]=(0,c.useState)(!1),[E,D]=(0,c.useState)((null===(k=t.payload.find((e=>e.variant.id===V)))||void 0===k?void 0:k.variant.id)||"");return(0,n.jsx)(l.Portal,{children:(0,n.jsx)("div",Object.assign({className:x,onClick:I},{children:(0,n.jsxs)("div",Object.assign({className:m,ref:N},{children:[T?(0,n.jsx)(r.ModalContentCarousel,Object.assign({sliderAutoplay:y},C,{setCurrentProductID:D,setIsReviewsOpen:A,currentVarietyPack:t,varietyPackProducts:e.filter((e=>e.withVariants)),handleCloseModal:d,addToCartWithPayload:f,labels:i,currency:a,isAddToCartAnimation:P})):(0,n.jsx)(o.ModalContentSimple,{sliderAutoplay:y,setIsReviewsOpen:A,details:t.details,handleCloseModal:d,handleBundleProductClick:S,payload:t.payload,addToCartWithPayload:f,labels:i,currency:a,newMiniPDPVariation:O,styluxFeature:w,isAddToCartAnimation:P,isNewMiniPdp:_,colorOrder:M}),B&&(0,n.jsxs)("div",Object.assign({className:g},{children:[(0,n.jsx)(u.CloseButton,{isBlue:!0,onClick:()=>A(!1),className:b}),(0,n.jsx)("div",Object.assign({className:h},{children:(0,n.jsxs)("div",Object.assign({className:v},{children:[(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{})]}))})),(0,n.jsx)(p.BundleReviews,{id:E})]})),(0,n.jsx)(u.CloseButton,{onClick:d,className:j})]}))}))})}},675:(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]),x=(0,i.useCallback)((()=>{t||(e(),o(!1),d(!1),v(!1))}),[e]),g=(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:x,handleMediaLoadEnd:g}}},111: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(675),l=a(4),d=i(a(458)),{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:x,shouldFade:g})=>{const b="video"===a,{isMuted:f,video:C,isVideoOn:y,hasLoaded:S,hasAudio:O,toggleMuteVideo:w,handlePauseVideo:P,handlePlayVideo:_,handleVideoEnd:M,handleMediaLoadEnd:k}=(0,o.useVideoSlide)(x,d);return(0,n.jsx)("div",Object.assign({className:(0,r.cx)(c,i,!S&&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:[O&&(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:g?j:m,src:t,alt:e,onLoad:k})}))}},683:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlider=void 0;const i=a(10),n=a(3);a(7),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()}),[])}}},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.Slider=void 0;const n=a(1),s=a(0),r=a(683),o=a(56),l=a(111),d=a(2);a(473);const c=i(a(474)),u=a(144),p=a(75),v=a(3),{container:h,containerButton:m,containerSlider:j,containerVideo:x,containerWrapper:g,containerWrapperDot:b,containerWrapperDotActive:f,containerVideoFade:C}=c.default;t.Slider=({carouselMedia:e,handleCloseModal:t,video:a,handle:i,sliderAutoplay:c,currentUpsellProductId:y,isModalContentSimple:S})=>{const{isSliderLoaded:O,currentSlideIndex:w,sliderRef:P,handleGoToNextSlide:_}=(0,r.useSlider)(y),{isVideoPlaying:M,isVideoMuted:k,pauseVideo:N,playVideo:I,toggleMuteVideo:V}=(0,u.useVideo)(c),[T,B]=(0,v.useState)(!1),A=(0,v.useRef)(null);(0,v.useEffect)((()=>{var e;let t;return M&&(t=setTimeout((()=>{var e;B(!0),null===(e=A.current)||void 0===e||e.play()}),600)),B(!1),null===(e=A.current)||void 0===e||e.pause(),()=>{clearTimeout(t)}}),[M]);const E=e.length>1,D=!!a.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||!D)&&E&&(0,s.jsx)("div",Object.assign({className:g},{children:e.map((({src:e},t)=>{const a=w===t;return(0,s.jsx)("div",{className:(0,d.cx)(b,a&&f)},e+t)}))})),D&&M&&(0,s.jsx)("div",Object.assign({className:(0,d.cx)(x,T&&C)},{children:(0,s.jsx)("video",{onEnded:N,src:a.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",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:_,isContentCarousel:!1,shouldFade:!1}))))})),D&&(0,s.jsx)(p.VideoControls,{videoSrc:a.src,isVideoPlaying:M,isVideoMuted:k,pauseVideo:N,playVideo:I,toggleMuteVideo:V,isOrbiter:R,isModalContentSimple:S}),(0,s.jsx)(o.CloseButton,{isBlue:R,onClick:()=>!c&&M?N():t(),className:m})]}))}},194: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(5),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)}),1500)};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)}),1500)}}))}}},193: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(456))),r=a(2),o=a(11),l=a(194),{wrapper:d,wrapperIcon:c,wrapperIconPdp:u,wrapperIconCart:p,wrapperIconCartVarietyPack:v,wrapperIconHidden:h,wrapperIconVariety:m,spinner:j,wrapperIconAdded:x,wrapperIconAddedNumber:g}=s.default;t.UpsellsToolSliderButton=({onClick:e,isTextInButton:t,addLabel:a,addedLabel:i,isVarietyPack:s,selectLabel:b,selectedVarietyPacksQuantity:f,addToCartWithPayload:C,isAddToCartAnimation:y,productPayload:S,isPdp:O})=>{const{didAdd:w,handleClick:P,isLoading:_}=(0,l.useUpsellsToolSliderButton)({onClick:e,isVarietyPack:s,isTextInButton:t,addToCartWithPayload:C,isAddToCartAnimation:y,productPayload:S}),M=(null!=f?f:0)>0;return t?(0,n.jsx)("button",Object.assign({className:d,onClick:P},{children:_?(0,n.jsx)("span",{className:j}):s?b:w||M?i:a})):(0,n.jsx)("button",Object.assign({className:(0,r.cx)(!O&&!s&&p,!O&&s&&v,c,(_||w||M)&&h,s&&m,O&&u),onClick:P,disabled:w},{children:(w||M)&&(s?(0,n.jsx)("div",Object.assign({className:x},{children:(0,n.jsx)("div",Object.assign({className:g},{children:f}))})):(0,n.jsx)(o.CheckMarkGreenIcon,{}))}))}},201: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(466)),{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",{})]}))}},679:(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)}}}},678:(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}}},677:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useVarietyPackCarousel=void 0;const i=a(10),n=a(3),s=a(102);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),x=(0,n.useRef)(0),g={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=>{x.current=e.size})),a.on("updated",(e=>{x.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},breakpoints:{"(min-width: 768px)":{slides:{number:h,origin:"center",perView:s.SLIDES_PER_VIEW+.5}}},initial:e,loop:!0,mode:"free-snap"},[S,O]=(0,i.useKeenSlider)(y,C);(0,n.useEffect)((()=>{p&&O.current&&l.play()}),[null===(c=null==O?void 0:O.current)||void 0===c?void 0:c.track.details.rel]),(0,n.useEffect)((0,s.fixKeenSliderBugInPreact)(O,y),[O.current]),(0,n.useEffect)((()=>{let e;return e=setTimeout((()=>{var e;null===(e=O.current)||void 0===e||e.moveToIdx(o,!1,b)}),50),()=>clearTimeout(e)}),[o]);const w=(0,n.useCallback)((e=>{if(!O.current)return;const t=O.current.track.details.rel,a=Math.abs(t-e),i=80*(a>3?3:a);O.current.animator.stop(),O.current.moveToIdx(e,!1,Object.assign(Object.assign({},g),{duration:i}))}),[]),[P,_]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{var e,t,i;a&&((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))}),[a]),{sliderRef:S,slideValues:(0,s.getSlideValues)({sliderState:m,jetpacksPayload:d}),handleSlideClick:w,activeSlideIndex:(null===(u=O.current)||void 0===u?void 0:u.track.details.rel)||0}}},199: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(464)),l=a(677),d=a(200),c=a(678),u=a(201),p=a(4),v=a(679),{container:h,containerCarousel:m,containerCarouselSlider:j,containerCarouselSliderInner:x,containerCarouselSliderInnerSlides:g,containerCarouselSliderInnerSlidesSlide:b,containerCarouselSliderInnerSlidesSlideCounter:f,containerQuantityCTAContainer:C,containerQuantityCTAContainerButtons:y}=o.default;t.VarietyPackCarousel=({updateCurrentCardIdx:e,resetQuantities:t,isNutritionOpen:a,setShouldFade:i,labels:o,getRandomJetpacks:S,initialSlide:O,currentCardIndex:w,swipe:P,addQuantity:_,substractQuantity:M,jetpacksPayload:k})=>{const{sliderRef:N,slideValues:I,handleSlideClick:V,activeSlideIndex:T}=(0,l.useVarietyPackCarousel)({initialSlide:O,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:x},{children:(0,n.jsx)("div",Object.assign({className:g},{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})),a&&(0,n.jsx)("img",{src:a.src.replace("h_100","h_150"),alt:a.alt})]}))}),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(),S())},labels:o,isRandomJPConfirmation:H,isResetAndRandomJPConfirmation:R&&H})]})}},102:(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="undefined"!=typeof window&&window.innerWidth>=768,r=.5-1/t.SLIDES_PER_VIEW/2,o=a.length,l=[];for(let d=0;dt.WHEEL_SIZE/2?180:o*(360/t.WHEEL_SIZE)*-1,u={transform:`translateX(${2.8*-c}px)`,WebkitTransform:`translateX(${2.8*-c}px)`},p=a[d].variant.cartImage,v=Math.abs(e.rel-d),h=0===v,m=1===v||v===e.slides.length-1,j=2===v||v===e.slides.length-2,x=s?"0px 5.5px":"0px",g=s?"12px 14px":"5px",b=s?"12px 14px":"10px",f=s?"12px 14px":"11px",C=e.slides[d].distance>e.slides[e.rel].distance,y=h?x:m?g:j?b:f,S=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"}:m?{width:"22px",height:"22px",top:"-4px",right:"7px",fontSize:"11px",transition:"all 0.2s ease-out"}:j?{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:y,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:y,transform:1===v&&e.rel>d?"translateX(-8px)":1===v&&e.rel{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlider=void 0;const i=a(10),n=a(3);a(7),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()}),[])}}},197: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(674),o=a(56),l=a(111),d=a(2),c=a(4);a(459);const u=i(a(460)),p=a(75),v=i(a(140)),h=a(3),{container:m,containerNutrition:j,containerCloseButton:x,containerSlider:g,containerVideo:b,containerVideoFade:f,containerVideoWithMarquee:C,containerWrapper:y,containerWrapperMarquee:S,containerWrapperMarqueeText:O}=u.default;t.VarietyPackSlider=({slidesForImages:e,handleCloseModal:t,openNutritionModal:a,currentCardIndex:i,initialSlideNumber:u,variantColor:w,labels:P,video:_,updateCurrentCardIdx:M,shouldFade:k,useVideoProps:N,marqueeText:I,marqueeColor:V,onlyVideo:T})=>{var B;const A=null===(B=_[i])||void 0===B?void 0:B.src,{isVideoMuted:E,isVideoPlaying:D,pauseVideo:R,playVideo:W,toggleMuteVideo:L}=N,{isSliderLoaded:F,sliderRef:$,handleGoToNextSlide:H}=(0,r.useSlider)(i,M,u,k),[Q,q]=(0,h.useState)(!1),U=(0,h.useRef)(null);return(0,h.useEffect)((()=>{var e;let t;return D&&(t=setTimeout((()=>{var e;q(!0),null===(e=U.current)||void 0===e||e.play()}),600)),q(!1),null===(e=U.current)||void 0===e||e.pause(),()=>{clearTimeout(t)}}),[i,D]),(0,s.jsxs)("div",Object.assign({className:(0,d.cx)(m,(0,d.cx)(!F&&"noJsForModalSlider"))},{children:[(0,s.jsx)("div",Object.assign({className:y},{children:(0,s.jsx)(v.default,Object.assign({value:I,pauseOnClick:!0,className:S,gradient:!1,speed:40,style:{backgroundColor:V}},{children:(0,s.jsx)("div",{className:O,dangerouslySetInnerHTML:{__html:I.replace("

","

      ")}})}))})),(0,s.jsx)("div",Object.assign({ref:$,className:(0,d.cx)("keen-slider",g)},{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:H,isContentCarousel:!0,shouldFade:k}))))})),D&&(0,s.jsx)("div",Object.assign({className:(0,d.cx)(b,Q&&f,C)},{children:(0,s.jsx)("video",{onEnded:R,src:null!=A?A:"",ref:U,loop:T,"webkit-playsInline":!0,playsInline:!0,muted:E})})),!T&&(0,s.jsxs)("button",Object.assign({className:(0,d.cx)("no-translate",j),onClick:a,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:D,isVideoMuted:E,pauseVideo:R,playVideo:W,toggleMuteVideo:L}),(0,s.jsx)(o.CloseButton,{onClick:!T&&D?R:t,className:x})]}))}},75: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(4),r=a(2),o=i(a(461)),l=a(6),d=a(31),{wrapper:c,wrapperSimpleModal:u,wrapperWithCarrot:p,wrapperPlay:v,wrapperPlayOrbiter:h,wrapperPause:m,wrapperPlayWrapper:j,wrapperPlayWrapperIcon:x,wrapperPlayWrapperVideo:g,wrapperPauseOrbiter:b}=o.default;t.VideoControls=({isVideoPlaying:e,isVideoMuted:t,pauseVideo:a,playVideo:i,toggleMuteVideo:o,videoSrc:f,isOrbiter:C,withCarrot:y=!1,isModalContentSimple:S=!1})=>{const O=(0,l.useRef)(null);return(0,l.useEffect)((()=>{O.current&&(O.current.playbackRate=.8)}),[O.current]),e?(0,n.jsx)("div",Object.assign({className:(0,r.cx)(c,y&&p,S&&u)},{children:(0,n.jsx)("button",Object.assign({className:(0,r.cx)(m,C&&b),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,v,C&&h,y&&p),onClick:()=>{(0,d.logOutcome)("playedVideo"),i()}},{children:(0,n.jsxs)("div",Object.assign({className:j},{children:[(0,n.jsx)("div",Object.assign({className:g},{children:(0,n.jsx)("video",{ref:O,loop:!0,src:f,autoPlay:!0,"webkit-playsInline":!0,playsInline:!0,muted:!0})})),(0,n.jsx)("div",Object.assign({className:(0,r.cx)(x)},{children:s.Icons.VideoPlay()}))]}))}))}},472:(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}}},689:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useModal=void 0;const i=a(3),n=a(5);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}}},691:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlider=void 0,a(7);const i=a(10),n=a(3),s=a(102);t.useSlider=e=>{const[t,a]=(0,n.useState)(!1),[r,o]=(0,n.useState)(0),l=(0,n.useRef)(null),d={slides:{perView:"auto",spacing:e?15:5}},c={loop:!0,slides:{perView:"auto",origin:"center",spacing:15},slideChanged:e=>{var t;o(e.track.details.rel),l.current&&(l.current.style.left=`${((e,t,a=66,i=231)=>e/(t-1)*100*((i-a)/i))(e.track.details.rel,e.slides.length,l.current.clientWidth,null===(t=l.current.parentElement)||void 0===t?void 0:t.clientWidth)}%`)}},[u,p]=(0,i.useKeenSlider)(e?c:d);(0,n.useEffect)((0,s.fixKeenSliderBugInPreact)(p,e?c:d),[p.current,t]),(0,n.useEffect)((()=>{var t;null===(t=p.current)||void 0===t||t.update(e?c:d)}),[t]);const v=(0,n.useCallback)((e=>{var t;null===(t=p.current)||void 0===t||t.moveToIdx(e)}),[]),h=(0,n.useCallback)((()=>{var e;null===(e=p.current)||void 0===e||e.prev()}),[]),m=(0,n.useCallback)((()=>{var e;null===(e=p.current)||void 0===e||e.next()}),[]);return(0,n.useEffect)((()=>{a(!0)}),[]),{ref:u,jsEnabled:t,currentSlideIndex:r,handleMove:v,handlePrev:h,handleNext:m,progressBarRef:l}}},144:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCookie=t.useVideo=void 0;const i=a(3);function n(e){if("undefined"==typeof document)return null;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},110: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),o=a(3),l=a(193),d=a(195),c=a(57),u=a(687),p=a(211),v=a(13),h=a(87),m=a(75),j=a(14),x=a(4),g=a(2),b=a(144),f=a(688),C=a(689),y=a(481),S=a(691),O=i(a(482)),{wrapper:w,wrapperCart:P,wrapperProducts:_,wrapperProductsPdp:M,wrapperCartProducts:k,wrapperCartProductsIsOpen:N,wrapperProductsPdpButton:I,wrapperProductsPdpButtonLeft:V,wrapperProductsPdpButtonRight:T,wrapperVideo:B,wrapperVideoContent:A,wrapperHeader:E,wrapperHeaderTitle:D,wrapperHeaderPreview:R,wrapperHeaderPreviewArrow:W,wrapperHeaderPreviewArrowIsOpen:L,wrapperSlide:F,wrapperSlideCart:$,wrapperSlidePdp:H,wrapperSlideContent:Q,wrapperSlideContentCart:q,wrapperSlideContentName:U,wrapperSlideContentNameCart:J,wrapperSlideContentNamePdp:z,wrapperSlideContentPrice:G,wrapperSlideContentPriceCart:X,wrapperSlideContentPricePdp:K,wrapperSlideContentImage:Z,wrapperSlideContentImageCart:Y,wrapperSlideContentImagePdp:ee,wrapperSlideContentPdp:te,wrapperSlideContentPdpActive:ae,wrapperSlideContentPdpLeft:ie,wrapperSlideContentPdpRight:ne,wrapperPopup:se,wrapperPopupSpace:re,wrapperProgress:oe,wrapperProgressBar:le,wrapperProgressBarInner:de,wrapperButton:ce,noJs:ue,noJsPdp:pe}=O.default;t.UpsellsToolSlider=({upsellProducts:e,labels:t,addToCartWithPayload:a,currency:i,sliderAutoplay:O,areJetpacksAnimated:oe,areReviewsVisible:le,isTextInButton:de,isAddToCartAnimation:ve,isPdpPopupHidden:he,newMiniPDPVariation:me,isPdp:je=!1,styluxFeature:xe,addToCartButton:ge,isNewMiniPdp:be,isPdpPopupVideo:fe,colorOrder:Ce,hideAddToCartButton:ye,shopVersion:Se})=>{var Oe,we,Pe,_e,Me,ke;const{ref:Ne,jsEnabled:Ie,currentSlideIndex:Ve,progressBarRef:Te,handleMove:Be,handlePrev:Ae,handleNext:Ee}=(0,S.useSlider)(je),[De,Re]=(0,o.useState)(!1),We=(0,y.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:Fe,handleCloseModal:$e,isModalOpen:He}=(0,C.useModal)(e),{isVideoMuted:Qe,isVideoPlaying:qe,pauseVideo:Ue,playVideo:Je,toggleMuteVideo:ze}=(0,b.useVideo)(O,je),[Ge,Xe]=(0,o.useState)(null===(Oe=e[Ve])||void 0===Oe?void 0:Oe.details.videoWithCarrot.src),[Ke,Ze]=(0,o.useState)(1);(0,o.useEffect)((()=>{let t=null;Ze(0),t&&clearTimeout(t),t=setTimeout((()=>{var t;Xe(null===(t=e[Ve])||void 0===t?void 0:t.details.videoWithCarrot.src),Ze(1)}),400)}),[Ve]);const Ye=!!Le&&He;(0,o.useEffect)((()=>{Ye?Ue():Je()}),[Ye]),(0,h.usePreventBackgroundScrolling)(Ye);const et=e.filter((e=>!!e.details.image.animated)),tt=!!(null===(we=e[Ve])||void 0===we?void 0:we.headingMessage),at=!!(null===(Pe=e[Ve])||void 0===Pe?void 0:Pe.details.videoWithCarrot.src);return(0,s.jsxs)("div",Object.assign({className:(0,g.cx)(w,!je&&P)},{children:[je&&!tt&&!he&&!fe&&(0,s.jsx)("div",{className:re}),je&&!he&&tt&&!fe&&(0,s.jsx)("h3",Object.assign({className:se},{children:null===(_e=e[Ve])||void 0===_e?void 0:_e.headingMessage})),je&&fe&&at&&(0,s.jsx)("div",Object.assign({className:B},{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:Ue,src:Ge,autoPlay:!0,loop:O,"webkit-playsInline":!0,playsInline:!0,volume:.6,muted:Qe,width:"383",height:"215",crossOrigin:""}),(je&&at&&qe||!at)&&(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)(m.VideoControls,{videoSrc:null===(Me=e[Ve])||void 0===Me?void 0:Me.details.video.src,isVideoPlaying:qe,isVideoMuted:Qe,pauseVideo:Ue,playVideo:Je,toggleMuteVideo:ze,isOrbiter:null===(ke=e[Ve])||void 0===ke?void 0:ke.payload.some((e=>"orbiter-drinking-lid"===e.product.handle||"jetsetter-insulated-tote"===e.product.handle)),withCarrot:!0})}))]}))})),je&&fe&&!at&&(0,s.jsx)("div",{className:B}),!je&&(0,s.jsxs)("div",Object.assign({className:E,onClick:()=>Re(!De)},{children:[(0,s.jsx)("h3",Object.assign({className:D},{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,n.createElement)(p.CartProductPreview,Object.assign({},e,{key:t+e.displayName+t})))),(0,s.jsx)("button",Object.assign({className:(0,g.cx)(W,De&&L)},{children:(0,s.jsx)(x.Icons.UpsellCartArrow,{})}))]}))]})),(0,s.jsxs)("div",Object.assign({ref:Ne,className:(0,g.cx)(_,!je&&k,!je&&De&&N,"keen-slider",je&&_,je&&M,!Ie&&ue,!Ie&&je&&pe)},{children:[je&&(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)("button",Object.assign({onClick:Ae,className:`${I} ${V} `},{children:(0,s.jsx)(j.ChevronLeft,{})})),(0,s.jsx)("button",Object.assign({onClick:Ee,className:`${I} ${T} `},{children:(0,s.jsx)(j.ChevronRight,{})}))]}),e.map(((n,r)=>(0,s.jsx)("div",Object.assign({className:(0,g.cx)("keen-slider__slide",F,je&&H,!je&&$)},{children:(0,s.jsxs)("div",Object.assign({className:(0,g.cx)(Q,!je&&q,je&&te,je&&r===Ve&&ae,je&&(0,f.isTwoSlidesOnLeft)(r,Ve-2,e.length)&&ie,je&&(0,f.isTwoSlidesOnRight)(r,Ve+2,e.length)&&ne)},{children:[oe&&n.details.image.animated?(0,s.jsx)(u.AnimatedImage,{onClick:()=>{je&&r!==Ve?Be(r):Fe(n.details.id)},images:n.details.image.animated,order:et.findIndex((e=>e.details.id===n.details.id))}):(0,s.jsx)("div",Object.assign({className:(0,g.cx)(Z,je&&ee,!je&&Y)},{children:(0,s.jsx)("img",Object.assign({onClick:()=>{je&&r!==Ve?Be(r):Fe(n.details.id)}},n.details.image.static,{loading:"eager"}))})),(0,s.jsx)("p",Object.assign({onClick:()=>{je&&r!==Ve?Be(r):Fe(n.details.id)},className:(0,g.cx)(U,je&&z,!je&&J)},{children:n.displayName})),le&&(0,s.jsx)("div",Object.assign({className:"no-translate"},{children:(0,s.jsx)(c.Rating,{rating:n.details.rating,raters:n.details.raters,shorterRaters:!0})})),(0,s.jsx)("p",Object.assign({className:(0,g.cx)(G,je&&K,!je&&X)},{children:(0,f.getProductPrice)({id:n.payload[0].variant.id,shopVersion:Se,currency:i,defaultPrice:n.payload[0].variant.price})})),(0,s.jsx)(l.UpsellsToolSliderButton,{addLabel:t.buttons.add,selectLabel:t.buttons.select,addedLabel:t.buttons.added,isVarietyPack:n.withVariants,isTextInButton:de,productPayload:n.payload,isAddToCartAnimation:je&&ve,addToCartWithPayload:a,isPdp:je,onClick:()=>{n.withVariants&&(je&&r!==Ve?(Fe(n.details.id),Be(r)):Fe(n.details.id))}})]}))}),n.displayName)))]})),ye&&je&&!!ge&&(0,s.jsx)("div",Object.assign({className:ce},{children:(0,s.jsx)(v.AddToCartButton,Object.assign({},ge))})),Ye&&(0,s.jsx)(d.SelectionModal,{sliderAutoplay:O,soundPack:We,upsellProducts:e,currentUpsellProduct:Le,handleCloseModal:$e,addToCartWithPayload:a,labels:t,currency:i,handleBundleProductClick:Fe,newMiniPDPVariation:me,styluxFeature:xe,isAddToCartAnimation:ve&&je,isNewMiniPdp:be,colorOrder:Ce})]}))}},688:(e,t,a)=>{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=a(2);let n=0;t.hideScrollbar=function(){n=window.pageYOffset;const e=document.querySelector(".app");null==e||e.setAttribute("style",`position: fixed; width: calc(100% - (100vw - 100%)); top: -${n}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,n),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,t.getProductPrice=({id:e,shopVersion:t,currency:a,defaultPrice:n})=>{const s=(0,i.lookupLocalPrice)(`${e}`,"US"!=t?Object.assign(Object.assign({},a),{code:"USD"}):a,n);return(0,i.priceToLocalString)(s,a)}}}]);