"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[88],{94:(e,t,r)=>{r.r(t)},26:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"PJ5qyqfG",wrapperLargeSize:"dAzbcSXa",wrapperMediumSize:"aDGUkTxm",wrapperSmallSize:"XOmUfRoL",wrapperDisabled:"_9VD0mPmd",wrapperJarCart:"BqkvMPWK",wrapperSmall:"xU_iO4t3",wrapperBundle:"FmE0Pqar",wrapperUpsell:"yH628nGK",wrapperStickyHeader:"SjjEIzYY",wrapperRelatedProducts:"JinSOvN7",wrapperJetpackBundleClass:"JlnFpb79",wrapperInCartUpsell:"LF0KzBwW",wrapperHero:"FDVTdiy6",wrapperMobileFloat:"gIKgt4dO",wrapperMessageSpace:"o__HPLyI",wrapperCrossed:"fUz2QUVW",wrapperDiscountMessage:"UknS8Uq2",wrapperPriceCrossed:"wnT3TnEL",wrapperButtonAuto:"Sc6kSd0s"}},502:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"wHzREw4k",wrapperGroup:"Bhdj8AVK",wrapperGroupContainer:"ubcPssP8",wrapperGroupContainerWide:"N3TRyJ7f"}},101:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"ZwgJp4qU",wrapperHeader:"hMukid4g"}},92:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"cKQX9yZD",wrapperHeading:"ZOGy7rXL",wrapperText:"YVTzg5tD"}},93:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"n_BcEL1A",wrapperText:"AuGJjH22"}},501:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapperTitle:"bBR1wOoL",wrapperCategory:"zxkZD6eL",wrapperRaiting:"LdUMFSpz",wrapperPrice:"AT6TJbT5",wrapperPriceStrikethrough:"hugu9iRy",wrapperPriceStrikethroughOpacity:"gqyxcubj",wrapperPriceTaxes:"AcKdBDVf"}},959:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"vsEsEhrR",wrapperVideo:"gqseFfj5",wrapperControls:"WUUWrKnx"}},957:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"R6m5cOVR",wrapperSlide:"r1yjiUS2",wrapperSlideNoJs:"uTT0Jnot"}},951:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={container:"MVfYKAkv",containerHolder:"Btjr_5cN",containerHolderAnimation:"s1KT1P8K",boomEffect:"t_0Fsmuq",containerMask:"PyhKZtK_",containerMaskDone:"nwcKBZdY",containerMaskAnimation:"ZNaqJq0A",boomChangeColor:"gOImeZ2E",containerText:"KXyTlUhV",containerTextDone:"mRPXjUtM",containerTextAnimation:"Q4WHtGHN",boomChangeFont:"lK0m_Cf_",containerBottomText:"UYOEz6fY",containerBottomTextDone:"FUXzg_fc",containerBottomTextAnimation:"KU_7lAQY",boomChangeBottomColor:"WNHd0Gsp"}},950:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={container:"hyLngqOW",containerHolder:"d820eJlC",boomSparksBackground:"rKGEzCr0",containerStar:"IZBTHUNi"}},949:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={container:"dpfDLSsF",containerHolder:"Pvs4RUhg"}},961:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"IKDBxVlV",wrapperDecrease:"NNcvYaku",wrapperDecreaseActive:"Zvw6Ytqy",wrapperIncrease:"N3a2KT0M"}},954:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"nKj__bWn",wrapperLinks:"kQodaxcJ",wrapperTabLinks:"qLnTPYP4",wrapperContent:"bcO8BaF7",wrapperContentItem:"a_Hpfa7c",wrapperContentItemActive:"EUupaSDN",slider:"lSTA9XpF",sliderSlide:"mTBrBMQU",sliderSlideContent:"RQQyTZ0v",sliderSlideActive:"PDbkKqFe"}},962:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapperNoJs:"_slXoFpT",wrapperNoJsSlide:"goO43lcn",wrapperNoJsSlideActive:"YiJBtIq4",container:"iiBWunHj",containerCarouselSlider:"IIwgACDd",containerCarouselSliderInner:"tcqxnfR4",containerCarouselSliderInnerSlides:"y8MZSo6u",containerCarouselSliderInnerSlidesSlide:"yitPs1_K",containerCarouselSliderInnerSlidesSlideCounter:"U9ceNvvv",containerVariety:"cfG4WYWe",containerVarietyPacks:"gZjm0ilJ",containerVarietyPacksVariant:"HXAQgfNj",containerVarietyPacksVariantImg:"uuPXm4Mg",containerVarietyPacksVariantImgActive:"yfaShL6B",containerVarietyPacksVariantLabel:"hZEiht29",containerCarousel:"WegqoEM3",containerSlide:"aSTr6d4L",containerSlideContainer:"OvIEWJ9Y",containerSlideContainerActive:"vLbBOR0V",containerSlideContainerQuantity:"oduzGZV9",containerSlideContainerQuantityActive:"i3dh9ze7",containerQuantityCTAContainer:"pPdqu2pp",containerQuantityCTAContainerReset:"RIB6Xg7r",containerQuantityCTAContainerButtons:"bW8IqHz0",containerQuantityCTAContainerSelect:"mvJ55fmY"}},965:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={backdropHidden:"uVq5WQ6N",backdropHiddenModal:"kgnrPCmD",backdropHiddenModalImage:"RbWMHIDj",rotateAnimation:"uUQkHh6o",backdropHiddenModalContainer:"WIqqzhJK",backdropHiddenModalContainerButton:"UBdrXQhy",backdrop:"h48UWvYQ",backdropModal:"J4elWYMk",backdropModalContainer:"YSVBoSpT",backdropModalContainerDescription:"WaMJ3aJH",backdropModalContainerButtons:"B9Jjc6n1",backdropModalContainerButtonsYes:"vux9ZTdH",backdropModalContainerButtonsNo:"Z8TsBFZJ"}},960:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={container:"HNED7jec",containerVariety:"eCgfM3gz",containerVarietyPacks:"AP6zBQsZ",containerVarietyPacksVariant:"arp5JdDy",containerVarietyPacksVariantImg:"Xpr4dc_w",containerVarietyPacksVariantImgActive:"AxZsyRKG",containerVarietyPacksVariantLabel:"u8iHh6wg",containerVarietyPacksVariantQuantity:"ZZWnNmky",containerCarousel:"EbVdXh_s",containerSlide:"f9HdwFmg",containerSlideContainer:"WP9SRBi1",containerSlideContainerActive:"YD_vkLlG",containerSlideContainerQuantity:"rRWKGOtC",containerSlideContainerQuantityActive:"cWUwF_mp",containerQuantityCTAContainer:"GABq9Ojh",containerQuantityCTAContainerReset:"eyhR5LZM",containerQuantityCTAContainerButtons:"FnePhlKa",containerQuantityCTAContainerSelect:"HlSbO87J"}},955:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"gNSkPsIH",wrapperCTA:"Kf_jenkJ",wrapperCTADisabled:"wKBGis1S",wrapperShipping:"pkiANPd7",wrapperBadges:"lCDPbVWN",wrapperMobile:"dD0eeFuT",container:"ttmx5tpJ",containerIcons:"L1tAF2Uf",containerCheckbox:"prIoMFUG",containerCheckboxChecked:"p9054yT2",containerCheckboxFake:"ashZVZxw",containerWrapper:"XsoeqTv_",containerWrapperActive:"xIJlfQO4",containerWrapperMarquee:"GeJWbLGc",containerWrapperMarqueeText:"KLIRcm6y",containerWrapperTitle:"kjNADx52",containerWrapperTitleFade:"VYBIGCsz",containerWrapperReviews:"nG0XpiYA",containerWrapperBottom:"MVm7CR9h",containerWrapperBottomButton:"WmgT2CRX",containerWrapperBottomButtonActive:"Wx5cddV5",containerWrapperBottomButtonHideShadow:"u3S_GLao",containerWrapperBottomCheckboxWrapper:"vcABOVJT",containerWrapperBottomShipsMonthly:"of9w7lam",containerBlur:"DOcK2liA",wrapperCarousel:"kw6kIxGe",wrapperCarouselSticky:"oNA5i29h"}},23:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"uA5i17C3",wrapperShow:"i5mp68DB",wrapperWhite:"tLl82WUv",wrapperBlack:"z7TQU7uE",wrapperHeader:"CaAAsOsW"}},27:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"uAnwomBg",wrapperContent:"GrbIFY7W",wrapperContentMobileFullScreen:"z1OIxmvK",wrapperContentModal:"ZcGe7eQY",wrapperContentModalMobileFullScreen:"plktbgPs",wrapperShow:"J8CIuLp0"}},28:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"SJa8eo06",sm:"Uu2KqrE3",md:"rdoDSaVA",lg:"feg_GqEI"}},29:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"V47WgM_g",wrapperWithZoom:"t3XaNyzG",wrapperStars:"FwWX9GQS",wrapperText:"sUXVAUuY",wrapperSsrOnly:"TAeNuhJT"}},44:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapperIcon:"U95GyUvc",wrapperIconSvg:"RMAMx3Ds",wrapperItem:"mlnEDM1B",wrapperItemIcon:"TfR8vQjh",wrapperItemIconHorizontal:"FP68HLLq",wrapperItemText:"Uyn0pUL5",wrapperItemTextTitle:"QXywq34_",wrapperItemTextTitleHorizontal:"yVTLg8so",wrapperItemTextDescription:"xUmZ0G6e",wrapperItemTextDescriptionHorizontal:"M6UB0Uey",wrapper:"J5jcvRfD",wrapperItemTextTextHorizontal:"pCrzUdsG"}},20:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"ez3WWppe",wrapperLargeSize:"Owen1PDQ",wrapperMediumSize:"SegHEAUz",wrapperSmallSize:"doGF94Py",wrapperDecrementBtn:"xMhq6Lap",wrapperInput:"Q6dVvr5Z",wrapperIncrementBtn:"o7fHDhZI"}},47:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"boMg3oXd"}},65:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"Tsq7dDNN",wrapperCompact:"vQRFJdQE",wrapperLabel:"bq6CHykz",wrapperCountDown:"D5MRTwK7",wrapperCountDownNew:"Vv70DUTW"}},21:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={spinner:"xPi5Ycmw","button-loading-spinner":"gR4FKvMp"}},97:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"KRoXKSd6",wrapperItem:"sJERKx1O",wrapperItemTitle:"xAUkBbhb"}},9:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"jeoYiegV",wrapperRight:"AIokLt1C",wrapperLeft:"NihyFReM"}},8:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n={wrapper:"NxzIhXo4"}},948:(e,t,r)=>{const n=r(365);(0,r(5).createEntrypoint)("jetpacks-hero",n.JetpacksHeroContainer)},365:function(e,t,r){var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a({addToCartWithPayload:e.addToCartWithPayload,setCurrentVariantById:e.setCurrentVariantById,incrementStateQuantity:e.incrementQuantity,decrementStateQuantity:e.decrementQuantity,initialCurrentVariantIndex:e.initialCurrentVariantIndex,images:e.variants.map((e=>e.image)),currentVariantIndex:e.currentVariantIndex,setCurrentVariantByIndex:e.setCurrentVariantByIndex,currentProduct:e.product,currency:e.context.currency,currentVariant:e.currentVariant,variants:e.variants,quantity:e.quantity,setQuantity:e.setQuantity,cartState:e.cartState,isSubscription:e.isSubscription,setSubscription:e.setSubscription,colorOrder:e.colorOrder,isStickyPurchaseVisible:e.isStickyPurchaseVisible,shopVersion:e.context.shopVersion,jetpackProducts:e.jetpackProducts,isVarietyPack:e.isVarietyPack,varietyPackVariants:e.varietyPackVariants,jetpackVariants:e.jetpackVariants,initialCurrentJetpackVariantIndex:e.initialCurrentJetpackVariantIndex,currentJetpackVariant:e.currentJetpackVariant,currentJetpackVariantIndex:e.currentJetpackVariantIndex,currentJetpackProduct:e.currentJetpackProduct,setCurrentJetpackVariantByIndex:e.setCurrentJetpackVariantByIndex,setCurrentJetpackVariantById:e.setCurrentJetpackVariantById,setCurrentJetpackProductByHandle:e.setCurrentJetpackProductByHandle,setIsVarietyPack:e.setIsVarietyPack}))),T={images:S,currentVariantIndex:_,initialCurrentVariantIndex:P,setCurrentVariantByIndex:B,pdpDesktopHeroHeight:r.pdpDesktopHeroHeight,variants:k?w:I,setCurrentVariantById:M},W={rating:O.rating,raters:O.raters,category:O.title,title:V.title,productId:O.id},E=Object.assign(Object.assign({},r),{addToCartWithPayload:l,setCurrentVariantById:M,currency:g,currentVariant:V,currentProduct:O,incrementStateQuantity:d,decrementStateQuantity:u,setQuantity:y,quantity:b,variants:[...I,...w],tabLabels:r.tabLabels,valueProps:r.valueProps,summary:W,isSubscription:m,setSubscription:x,isStickyPurchaseVisible:v,shopVersion:j,classicBundleCombinedProps:r.classicBundle?{bundleComponents:r.classicBundle,currentVariantID:V.id,currency:g,quantity:b,isCartSync:h.isSync,bundleColorSelectionWidget:r.bundleColorSelectionWidget,addToCartWithPayload:l,subscribe:m}:null,isVarietyPack:k,setCurrentJetpackProductByHandle:N,setIsVarietyPack:D}),A={jetpackPurchaseProps:E,heroCarouselState:T,jetpacksUpsellToolSliderData:r.jetpacksUpsellToolSliderData};return(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(o.CountryBanner,Object.assign({},r.countryBanner)),(0,a.jsx)(s.JetpacksHero,Object.assign({},A,{variants:E.variants,jetpackProducts:C}))]})}},958:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlideVideo=void 0;const n=r(3);t.useSlideVideo=e=>{const t=(0,n.useRef)(null),[r,a]=(0,n.useState)(!0),[i,s]=(0,n.useState)(!0),o=t.current;return(0,n.useEffect)((()=>{e?null==o||o.play():null==o||o.pause(),s(e)}),[e]),{videoRef:t,toggleSound:()=>{o&&(o.muted=!r,a(!r))},togglePlay:()=>{o&&(i?o.pause():o.play(),s((e=>!e)))},isMuted:r,isPlaying:i}}},372:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VideoSlide=void 0;const a=r(0),i=(r(1),r(958)),s=r(4),o=n(r(959)),{wrapper:c,wrapperVideo:l,wrapperControls:d}=o.default;t.VideoSlide=({src:e,isActive:t,videoClass:r})=>{const{videoRef:n,togglePlay:o,toggleSound:u,isPlaying:p,isMuted:g}=(0,i.useSlideVideo)(t),S=!t||g;return(0,a.jsxs)("div",Object.assign({className:`${c} ${r}`},{children:[(0,a.jsx)("video",{ref:n,autoPlay:!0,loop:!0,muted:g,"webkit-playsinline":!0,playsInline:!0,className:l,src:e}),(0,a.jsxs)("div",Object.assign({className:d},{children:[(0,a.jsx)("button",Object.assign({onClick:o},{children:p?(0,a.jsx)(s.Icons.VideoPauseCircle,{}):(0,a.jsx)(s.Icons.VideoPlayCircle,{})})),(0,a.jsx)("button",Object.assign({onClick:u,"aria-label":S?"Unmute":"Mute"},{children:S?(0,a.jsx)(s.Icons.CircleSoundOffIcon,{}):(0,a.jsx)(s.Icons.CircleSoundOnIcon,{})}))]}))]}))}},956:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlider=void 0;const n=r(3),a=r(10);t.useSlider=({variants:e,initialCurrentVariantIndex:t,setCurrentVariantByIndex:r,currentVariantIndex:i,setCurrentVariantById:s,colorGroup:o})=>{const[c,l]=(0,n.useState)(!1),[d,u]=(0,n.useState)([...e.slice(t),...e.slice(0,t)]),[p,g]=(0,n.useState)(!1),[S,b]=(0,n.useState)(0),h={initial:0,slides:{perView:1,number:d.length},loop:!0,dragged(){g(!0)},dragEnded(){g(!1)},slideChanged(n){if(b(n.track.details.rel),o)s(o.variants[n.track.details.rel].id);else{const a=(n.track.details.rel+t)%e.length;r(a)}}},[y,m]=(0,a.useKeenSlider)(h);return(0,n.useEffect)((()=>{var r;o?(u(o.variants),null===(r=m.current)||void 0===r||r.update(h,0)):u([...e.slice(t),...e.slice(0,t)])}),[null==o?void 0:o.index]),(0,n.useEffect)((()=>{l(!0)}),[]),(0,n.useEffect)((()=>{if(m.current)if(o){const t=e[i].id,r=o.variants.findIndex((e=>e.id===t));r>=0&&!p&&m.current.moveToIdx(r,!1,{duration:0})}else{const r=(m.current.track.details.abs+t)%e.length;if(i!==r){const r=(i-t)%e.length;m.current.moveToIdx(r,!1,{duration:0})}}}),[i]),{jsEnabled:c,sliderRef:y,slider:m,handleNext:()=>{var e;null===(e=m.current)||void 0===e||e.next()},handlePrev:()=>{var e;null===(e=m.current)||void 0===e||e.prev()},imagesToDisplay:d,activeSlide:S}}},371:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Carousel=void 0;const a=r(0),i=(r(1),r(956)),s=r(2),o=n(r(957)),c=r(372),{wrapper:l,wrapperSlide:d,wrapperSlideNoJs:u}=o.default;t.Carousel=({currentVariantIndex:e,variants:t,setCurrentVariantByIndex:r,setCurrentVariantById:n,initialCurrentVariantIndex:o,colorGroup:p,isVarietyPack:g,jetpacksUpsellToolSliderData:S})=>{const{jsEnabled:b,sliderRef:h,handleNext:y,handlePrev:m,activeSlide:x,imagesToDisplay:f}=(0,i.useSlider)({variants:t,colorGroup:p,initialCurrentVariantIndex:o,setCurrentVariantByIndex:r,currentVariantIndex:e,setCurrentVariantById:n,isVarietyPack:g});return(0,a.jsx)("div",Object.assign({ref:h,className:`keen-slider ${l}`},{children:f.map((({image:e,id:t,productHandle:r},n)=>{const i=S.find((e=>e.details.handle===r)),o=i&&i.details.varietyPackVariants.find((e=>e.id===t));return o?(0,a.jsx)(c.VideoSlide,{src:o.video,isActive:n===x,videoClass:(0,s.cx)("keen-slider__slide",`number-slide${n+1}`,!b&&u)},t):(0,a.jsx)("div",Object.assign({className:(0,s.cx)("keen-slider__slide",`number-slide${n+1}`,d,!b&&u)},{children:(0,a.jsx)("img",{src:e.src,alt:e.alt})}),t)}))}))}},368:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;const a=r(0),i=r(3),s=r(2),o=r(369),c=r(507),l=n(r(951)),d=r(6),{container:u,containerHolder:p,containerHolderAnimation:g,containerMask:S,containerMaskDone:b,containerMaskAnimation:h,containerText:y,containerTextDone:m,containerTextAnimation:x,containerBottomText:f,containerBottomTextDone:v,containerBottomTextAnimation:j}=l.default;t.Circle=e=>{const[t,r]=(0,i.useState)(e.currentValue),[n,l]=(0,i.useState)(!1),[C,k]=(0,i.useState)(!0),{inCircleText:w,bottomText:I,currentValue:P,index:V}=e,_=Number(w),O=_===P,B=P>=_;return(0,d.useEffect)((()=>{const n=P>t;l(n),r(P),n&&k(!1),([12,24,36].includes(P)||P>_&&t<_)&&n&&e.boom.play()}),[P,t]),(0,a.jsxs)("div",Object.assign({className:u},{children:[(0,a.jsxs)("div",Object.assign({className:(0,s.cx)(p,n&&O&&g)},{children:[(0,a.jsx)("div",{style:{height:(0,c.calculateCircleMaskHeight)({currentValue:P,inCircleValue:_,index:V,canAnimationBe:O})},className:(0,s.cx)(S,B&&b,n&&O&&h)}),(0,a.jsx)("p",Object.assign({className:(0,s.cx)(y,B&&m,n&&O&&x)},{children:w}))]})),!C&&(O||B)&&(0,a.jsx)(o.Star,{}),(0,a.jsx)("p",Object.assign({className:(0,s.cx)(f,B&&v,n&&O&&j)},{children:I}))]}))}},952:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Line=void 0;const n=r(0);t.Line=({percentage:e,amount:t,unWantedIndexes:r})=>{const a=e/100*271,i=a+1.75;return(0,n.jsxs)("svg",Object.assign({width:"271",height:"32",viewBox:"0 0 271 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,n.jsx)("line",{x1:"0",y1:"20",x2:"271",y2:"20",stroke:"#E2E3F6",strokeWidth:"2",strokeDasharray:"5 5"}),e>0&&(0,n.jsxs)("g",{children:[(0,n.jsx)("rect",{x:"0",y:"19",width:a,height:"2",fill:"#8DCD03"}),(0,n.jsx)("g",Object.assign({opacity:r.includes(t)?0:1},{children:(0,n.jsx)("circle",{cx:i,cy:"20",r:"5",fill:"#8DCD03"})}))]})]}))}},369:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Star=void 0;const a=r(0),i=r(2),s=n(r(950)),{container:o,containerHolder:c,containerStar:l}=s.default;t.Star=({})=>(0,a.jsx)("div",Object.assign({className:o},{children:(0,a.jsx)("div",Object.assign({className:(0,i.cx)(c)},{children:["350deg","230deg","120deg","30deg","0deg"].map(((e,t)=>(0,a.jsx)("div",{style:{rotate:e},className:l},t)))}))}))},367:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DiscountProgress=void 0;const a=r(0),i=r(507),s=n(r(949)),o=r(368),c=r(952),{container:l,containerHolder:d}=s.default;t.DiscountProgress=({keys:e,quantity:t,unWantedIndexes:r,boom:n})=>(0,a.jsxs)("div",Object.assign({className:l},{children:[(0,a.jsx)("div",Object.assign({className:d},{children:(0,a.jsx)(c.Line,{amount:t,percentage:(0,i.calculatePercentage)({amount:t}),unWantedIndexes:r})})),e.map(((e,r)=>(0,a.jsx)(o.Circle,Object.assign({boom:n,index:r,currentValue:t},e),r)))]}))},507:(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:r,canAnimationBe:n,index:a}=e;return t>r?"100%":0===a&&t<12?t/12*100+"%":1===a&&t>=12&&t<24?Math.abs(t-12)/12*100+"%":2===a&&t>=24&&t<36?Math.abs(t-24)/12*100+"%":n?"100%":"0%"}},374:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QuantityButton=void 0;const a=r(0),i=r(2),s=n(r(961)),{wrapper:o,wrapperDecrease:c,wrapperDecreaseActive:l,wrapperIncrease:d}=s.default;t.QuantityButton=({onClick:e,startCounter:t,stopCounter:r,isIncreasingButton:n=!1,isDecreasingEnabled:s=!1,isDisabled:u=!1})=>{const p=(0,i.cx)(o,d),g=(0,i.cx)(o,c,s?l:""),S=n?p:g;return(0,a.jsxs)("button",Object.assign({className:S,onClick:e,onMouseDown:()=>t(),onMouseUp:r,onMouseLeave:r,onTouchStart:()=>t(),onTouchEnd:r,disabled:u,onContextMenu:e=>e.preventDefault()},{children:[(0,a.jsx)("span",{}),n&&(0,a.jsx)("span",{})]}))}},953:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSlider=void 0;const n=r(10),a=r(3);t.useSlider=(e,t,r)=>{const[i,s]=(0,a.useState)(r),[o,c]=(0,a.useState)(!1),[l,d]=(0,n.useKeenSlider)({slides:{origin:"center",perView:"auto"},loop:!0,rubberband:!0,slideChanged:e=>{const t=e.track.details.rel;s(t)},animationEnded:r=>{const n=r.track.details.rel,{label:a,href:i}=t[n];e(a,i)}});return(0,a.useEffect)((()=>{!d.current||window.innerWidth>=1024||(s(r),d.current.moveToIdx(r))}),[r]),(0,a.useEffect)((()=>{c(!0)}),[]),{sliderRef:l,currentSlide:i,jsEnabled:o,handleClick:e=>{d.current&&d.current.moveToIdx(e)}}}},370:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TabSelector=void 0;const a=r(0),i=r(1),s=r(953),o=r(2),c=n(r(954)),{wrapper:l,wrapperLinks:d,wrapperTabLinks:u,wrapperContent:p,wrapperContentItem:g,wrapperContentItemActive:S,slider:b,sliderSlide:h,sliderSlideContent:y,sliderSlideActive:m}=c.default;t.TabSelector=function({tabLabels:e,activeIndex:t=0,style:r,setCurrentJetpackProductByHandle:n,setIsVarietyPack:c}){const x=(e,t)=>{if("Variety Packs"===e)return c(!0);n(t.replace("/products/","")),c(!1)},{sliderRef:f,currentSlide:v,handleClick:j}=(0,s.useSlider)(x,e,t);return e&&1!=(null==e?void 0:e.length)?(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)("div",Object.assign({className:(0,o.cx)(l,u,d),style:r},{children:(0,a.jsx)("ul",Object.assign({className:p},{children:e.map((({label:e,href:r},n)=>(0,a.jsx)("li",Object.assign({class:(0,o.cx)(g,n===t&&S),onClick:()=>x(e,r)},{children:(0,a.jsx)("span",{children:e})}),e)))}))})),(0,a.jsx)("div",Object.assign({ref:f,className:(0,o.cx)("keen-slider",b)},{children:e.map((({label:e},t)=>(0,a.jsx)("div",Object.assign({style:{minWidth:"27%"},className:(0,o.cx)("keen-slider__slide",h,v===t&&m),onClick:()=>j(t)},{children:(0,a.jsx)("div",Object.assign({className:y},{children:(0,a.jsx)("span",{children:e})}))}),t)))}))]}):(0,a.jsx)("div",{})}},963:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useVarietyPackCarousel=void 0;const n=r(10),a=r(3),i=r(107);t.useVarietyPackCarousel=({initialSlide:e,updateCurrentCardIdx:t,currentCardIndex:r,swipe:s,variants:o})=>{var c,l;const[d,u]=(0,a.useState)(!1),[p,g]=(0,a.useState)(!1),S=o.length,[b,h]=(0,a.useState)(null),y=(0,a.useRef)(0),m={duration:350,easing:e=>e},x={duration:150,easing:e=>e},f=[e=>{e.on("detailsChanged",(e=>{h(e.track.details)})),e.on("created",(e=>{y.current=e.size})),e.on("updated",(e=>{y.current=e.size})),e.on("animationEnded",(e=>{t(e.track.details.rel)})),e.on("dragStarted",(()=>{u(!0)}))}],v={slides:{number:S,origin:"center",perView:5},breakpoints:{"(min-width: 400px)":{slides:{number:S,origin:"center",perView:6}},"(min-width: 550px)":{slides:{number:S,origin:"center",perView:7}},"(min-width: 700px)":{slides:{number:S,origin:"center",perView:9}},"(min-width: 850px)":{slides:{number:S,origin:"center",perView:12}},"(min-width: 1024px)":{slides:{number:S,origin:"center",perView:6}},"(min-width: 2000px)":{slides:{number:S,origin:"center",perView:9}},"(min-width: 2200px)":{slides:{number:S,origin:"center",perView:11}}},initial:e,loop:!0,mode:"free-snap"},[j,C]=(0,n.useKeenSlider)(v,f);(0,a.useEffect)((()=>{d&&C.current&&s.play()}),[null===(c=null==C?void 0:C.current)||void 0===c?void 0:c.track.details.rel]),(0,a.useEffect)((()=>{g(!0)}),[]),(0,a.useEffect)((0,i.fixKeenSliderBugInPreact)(C,v),[C.current]),(0,a.useEffect)((()=>{let e;return e=setTimeout((()=>{var e;null===(e=C.current)||void 0===e||e.moveToIdx(r,!1,x)}),50),()=>clearTimeout(e)}),[r]);const k=(0,a.useCallback)((e=>{if(!C.current)return;const t=C.current.track.details.rel,r=Math.abs(t-e),n=80*(r>3?3:r);C.current.animator.stop(),C.current.moveToIdx(e,!1,Object.assign(Object.assign({},m),{duration:n}))}),[]),[w,I]=(0,a.useState)(!1);return{sliderRef:j,slideValues:(0,i.getSlideValues)({sliderState:b,variants:o}),handleSlideClick:k,activeSlideIndex:(null===(l=C.current)||void 0===l?void 0:l.track.details.rel)||0,isJsEnabled:p}}},375:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Carousel=void 0;const a=r(0),i=r(2),s=n(r(962)),o=r(963),c=r(107),{wrapperNoJs:l,wrapperNoJsSlide:d,wrapperNoJsSlideActive:u,containerCarousel:p,containerSlideContainerActive:g,containerSlideContainer:S,containerSlide:b,containerSlideContainerQuantity:h,containerSlideContainerQuantityActive:y,containerCarouselSlider:m,containerCarouselSliderInner:x,containerCarouselSliderInnerSlides:f,containerCarouselSliderInnerSlidesSlide:v,containerCarouselSliderInnerSlidesSlideCounter:j}=s.default;t.Carousel=({variants:e,currentVariantIndex:t,setCurrentVariantByIndex:r,swipe:n,selectedJetPacks:s})=>{const{sliderRef:p,slideValues:g,handleSlideClick:S,activeSlideIndex:b,isJsEnabled:h}=(0,o.useVarietyPackCarousel)({initialSlide:t,updateCurrentCardIdx:r,currentCardIndex:t,swipe:n,variants:e});return(0,a.jsx)("div",Object.assign({className:(0,i.cx)(m,"keen-slider"),ref:p},{children:h?(0,a.jsx)("div",Object.assign({className:x},{children:(0,a.jsx)("div",Object.assign({className:f},{children:g.map((({style:e,innerStyle:t,image:r,counterStyles:n,id:i},o)=>(0,a.jsx)("div",Object.assign({onClick:()=>S(o),className:v,style:Object.assign(Object.assign({},e),{zIndex:b===o?"1":"unset"})},{children:(0,a.jsxs)("div",Object.assign({style:t},{children:[0!==s[i].quantity&&(0,a.jsx)("div",Object.assign({className:j,style:n},{children:s[i].quantity})),(0,a.jsx)("img",Object.assign({},r,{src:r.src.replace("h_100","h_300"),style:{marginLeft:b===o?-1:0}}))]}))}),o)))}))})):(0,a.jsx)("div",Object.assign({className:l},{children:(0,c.getRearrangedArray)(e,t).map((({id:r,cartImage:n,transform:s})=>{var o;return(0,a.jsx)("div",Object.assign({className:(0,i.cx)(d,(null===(o=e[t])||void 0===o?void 0:o.id)===r&&u),style:{transform:s}},{children:(0,a.jsx)("img",{src:null==n?void 0:n.src.replace("h_100","h_300"),alt:null==n?void 0:n.alt})}),r)}))}))}))}},107:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSlideValues=t.SLIDES_PER_VIEW=t.WHEEL_SIZE=t.fixKeenSliderBugInPreact=t.getRearrangedArray=void 0,t.getRearrangedArray=(e,t)=>{const r=Math.floor(e.length/2),n=[];let a=r,i=t;return e.forEach(((e,t,s)=>{n[a]=Object.assign(Object.assign({},s[i]),{transform:`translateX(calc(-50% + ${80*(a-r)}px))`}),a+1===s.length?a=0:a++,i+1===s.length?i=0:i++})),n},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,variants:r})=>{var n,a;if(!e)return[];const i=(null===window||void 0===window?void 0:window.innerWidth)?(s=window.innerWidth)<=400?t.SLIDES_PER_VIEW:s>400&&s<550?6:s>=550&&s<700?7:s>=700&&s<850?9:s>=850&&s<1024?12:s>=1024&&s<2e3?6:s>=2e3&&s<2200?9:11:t.SLIDES_PER_VIEW;var s;const o=.5-1/i/2,c=r.length,l=[];for(let s=0;st.WHEEL_SIZE/2?180:c*(360/t.WHEEL_SIZE)*-1,u={transform:`translateX(${2.8*-d}px)`,WebkitTransform:`translateX(${2.8*-d}px)`},p=r[s].cartImage,g=Math.abs(e.rel-s),S=0===g,b=1===g||g===e.slides.length-1,h=2===g||g===e.slides.length-2,y=S?{zIndex:"1",transition:"all 0.2s ease-out"}:b?{width:"22px",height:"22px",top:"-4px",right:"7px",fontSize:"11px",transition:"all 0.2s ease-out"}:h?{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"},m={height:"100%",padding:S?"0px 4px":"10px 4px",transform:1===g&&e.rel>s?"translateX(-8px)":1===g&&e.rel{Object.defineProperty(t,"__esModule",{value:!0}),t.useConfirmRemovalModal=void 0;const n=r(3);t.useConfirmRemovalModal=({removeSelectedVariants:e,quantity:t})=>{const[r,a]=(0,n.useState)(!1),i=(0,n.useRef)(null);return(0,n.useEffect)((()=>{i.current&&(i.current.selectedIndex=-1)}),[t]),{selectRef:i,isRemovalConfirmationVisible:r,openRemovalConfirmation:()=>{document&&(a(!0),document.body.style.overflow="hidden",document.body.style.width="100%",document.body.style.position="fixed")},closeRemovalConfirmation:t=>{document&&(t&&e(),a(!1),document.body.style.overflow="visible",document.body.style.position="static")}}}},376:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConfirmationModal=void 0;const a=r(0),i=r(1),s=r(62),o=n(r(965)),{backdrop:c,backdropModal:l,backdropModalContainer:d,backdropModalContainerDescription:u,backdropModalContainerButtons:p,backdropModalContainerButtonsYes:g,backdropModalContainerButtonsNo:S,backdropHidden:b,backdropHiddenModal:h,backdropHiddenModalContainer:y}=o.default;t.ConfirmationModal=({closeModal:e,isOpen:t})=>(0,a.jsx)(s.Portal,{children:(0,a.jsx)(i.Fragment,{children:(0,a.jsx)("div",Object.assign({className:t?c:b,onClick:()=>{t&&e(!1)}},{children:(0,a.jsx)("div",Object.assign({className:t?l:h,onClick:e=>e.stopPropagation()},{children:(0,a.jsxs)("div",Object.assign({className:t?d:y},{children:[(0,a.jsx)("div",Object.assign({className:u},{children:"Are you sure you want to start over?"})),(0,a.jsxs)("div",Object.assign({className:p},{children:[(0,a.jsx)("div",Object.assign({className:g,onClick:()=>e(!0)},{children:"yes"})),(0,a.jsx)("div",Object.assign({className:S,onClick:()=>e(!1)},{children:"no"}))]}))]}))}))}))})})},373:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VariantsCarousel=void 0;const a=r(0),i=(r(1),n(r(960))),s=r(374),o=r(4),c=r(2),l=r(375),d=r(964),u=r(376),{container:p,containerVariety:g,containerVarietyPacks:S,containerVarietyPacksVariant:b,containerVarietyPacksVariantImg:h,containerVarietyPacksVariantImgActive:y,containerVarietyPacksVariantLabel:m,containerVarietyPacksVariantQuantity:x,containerQuantityCTAContainer:f,containerQuantityCTAContainerReset:v,containerQuantityCTAContainerButtons:j,containerQuantityCTAContainerSelect:C}=i.default,k=[0,1,2,3,4,5,6],w=[0,6,12,18,24,32,36];t.VariantsCarousel=({quantity:e,setQuantity:t,decrementStateQuantity:r,incrementStateQuantity:n,variants:i,currentVariantIndex:I,currentVariantId:P,setCurrentVariantByIndex:V,swipe:_,selectedJetPacks:O,totalQuantity:B,isVarietyPack:M,setIsVarietyPack:N,resetQuantity:D})=>{const{selectRef:T,isRemovalConfirmationVisible:W,openRemovalConfirmation:E,closeRemovalConfirmation:A}=(0,d.useConfirmRemovalModal)({removeSelectedVariants:D,quantity:e}),H=M?k:w;return(0,a.jsxs)("div",Object.assign({className:p},{children:[M?(0,a.jsxs)("div",Object.assign({className:g},{children:[(0,a.jsx)("p",{children:"EACH SET OF 6 INCLUDES 1 OF EACH FLAVOR"}),(0,a.jsx)("div",Object.assign({className:S},{children:i.map((({id:e,productHandle:t,cartImage:r},n,i)=>(0,a.jsxs)("div",Object.assign({className:b,onClick:()=>N(!0,t)},{children:[(0,a.jsxs)("div",Object.assign({className:(0,c.cx)(h,I===n+18&&y)},{children:[(0,a.jsx)("img",{src:r.src.replace("h_100","h_300"),alt:r.alt}),(0,a.jsx)("img",{src:i[0===n?1:1===n?0:1].cartImage.src.replace("h_100","h_300"),alt:r.alt}),(0,a.jsx)("img",{src:i[0===n||1===n?2:0].cartImage.src.replace("h_100","h_300"),alt:r.alt})]})),(0,a.jsx)("p",Object.assign({className:m},{children:t.replace("jetpack-","").replace("-smoothie","").replace("smoothies","smoothie")})),O[`${t}-${e}`].quantity>0&&(0,a.jsx)("span",Object.assign({className:(0,c.cx)(x)},{children:O[`${t}-${e}`].quantity}))]}),e)))}))]})):(0,a.jsx)(l.Carousel,{swipe:_,selectedJetPacks:O,variants:i,currentVariantIndex:I,setCurrentVariantByIndex:V}),(0,a.jsxs)("div",Object.assign({className:f},{children:[(0,a.jsx)("button",Object.assign({className:v,onClick:E,disabled:0===B},{children:"Reset"})),(0,a.jsxs)("div",Object.assign({className:j},{children:[(0,a.jsx)(s.QuantityButton,{onClick:()=>r(P),startCounter:()=>{},stopCounter:()=>{},isDecreasingEnabled:e>0,isDisabled:0===e}),(0,a.jsx)(s.QuantityButton,{onClick:()=>n(P),startCounter:()=>{},stopCounter:()=>{},isIncreasingButton:!0})]})),(0,a.jsxs)("div",Object.assign({className:C},{children:[(0,a.jsx)("select",Object.assign({ref:T,onChange:e=>{const r=e.currentTarget.value;t(P,Number(r))}},{children:H.map(((e,t)=>(0,a.jsx)("option",Object.assign({value:e},{children:e}),t)))})),(0,a.jsxs)("span",{children:[" ",e]}),(0,a.jsx)("div",{children:(0,a.jsx)(o.Icons.ArrowDown,{})})]})),(0,a.jsx)(u.ConfirmationModal,{closeModal:A,isOpen:W})]}))]}))}},366:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JetpacksHero=void 0;const a=r(0),i=r(1),s=r(3),o=r(2),c=r(45),l=r(33),d=r(57),u=r(56),p=r(367),g=r(12),S=r(165),b=r(145),h=r(2),y=r(15),m=r(370),x=r(127),f=r(128),v=n(r(955)),j=r(371),C=r(373),{wrapper:k,wrapperShipping:w,wrapperMobile:I,wrapperBadges:P,wrapperCTA:V,wrapperCTADisabled:_,wrapperCarousel:O,wrapperCarouselSticky:B}=v.default,{container:M,containerIcons:N,containerWrapper:D,containerCheckbox:T,containerCheckboxChecked:W,containerCheckboxFake:E,containerWrapperTitle:A,containerWrapperActive:H,containerWrapperReviews:L,containerWrapperBottom:J,containerWrapperBottomCheckboxWrapper:F,containerWrapperBottomButton:R,containerWrapperBottomShipsMonthly:Q,containerWrapperBottomButtonHideShadow:U,containerWrapperBottomButtonActive:q}=v.default;t.JetpacksHero=({heroCarouselState:{setCurrentVariantByIndex:e,currentVariantIndex:t,initialCurrentVariantIndex:r,colorGroup:n,variants:v},jetpackPurchaseProps:{summary:D,discountPercentage:A,valueProps:H,tabLabels:L,addToCartWithPayload:J,setCurrentVariantById:F,incrementStateQuantity:R,decrementStateQuantity:U,setQuantity:q,quantity:G,currency:z,currentVariant:K,currentProduct:Z,bundleColorSelectionWidget:X,isSubscription:$,setSubscription:Y,isStickyPurchaseVisible:ee,shippingNotificationVariant:te,shopVersion:re,classicBundleCombinedProps:ne,isVarietyPack:ae,setCurrentJetpackProductByHandle:ie,setIsVarietyPack:se},variants:oe,jetpacksUpsellToolSliderData:ce,jetpackProducts:le})=>{var de;const{up:ue,down:pe,boom:ge,swipe:Se}=(0,b.useSound)({up:S.UP_SOUND,down:S.DOWN_SOUND,boom:S.BOOM_SOUND,swipe:S.SWIPE_SOUND}),be=L.findIndex((e=>ae?"Variety Packs"===e.label:e.href.toLowerCase().includes(Z.handle.toLowerCase()))),he=null===(de=ce.find((e=>e.details.handle===Z.handle)))||void 0===de?void 0:de.details.infoWithIcons,ye={tabLabels:L,activeIndex:-1===be?0:be,setCurrentJetpackProductByHandle:ie,setIsVarietyPack:se},me=oe.reduce(((e,{id:t,productHandle:r})=>{const n="varietypack"===t?`${r}-${t}`:t;return Object.assign(Object.assign({},e),{[n]:{quantity:0,productHandle:r}})}),{}),[xe,fe]=(0,s.useState)(me),ve=Object.entries(xe).reduce(((e,[t,{quantity:r}])=>e+(t.includes("varietypack")?6*r:r)),0),{totalBeforeDiscountPriceToDisplay:je,variantPriceToDisplay:Ce,beforeDiscountVariantPriceToDisplay:ke}=(0,y.usePrices)({currency:z,currentVariant:oe[0],quantity:ve,subscription:$,shopVersion:re}),we="US"!=re?Object.assign({isVarietyPack:!1,varietyCount:6,priceToDisplay:Ce,compareAtPriceToDisplay:ke},D):Object.assign({isVarietyPack:"variety-pack"==(null==K?void 0:K.sku),varietyCount:6},D),Ie=oe.filter((e=>"variety-pack"!==e.sku)),Pe=oe.filter((e=>"varietypack"!==e.id)).reduce(((e,t)=>{const r=$?(Number(t.price)*((100-Z.discountPercentage)/100)).toFixed(2):t.price.toString(),n=(0,o.lookupLocalPrice)(`${t.id}${$?":subscription":""}`,z,r)||parseFloat(r);return{totalPrice:e.totalPrice+n*(xe[t.id].quantity||0),singleJetpackPrice:n}}),{totalPrice:0,singleJetpackPrice:0}),[Ve,_e]=(0,s.useState)(0);(0,s.useEffect)((()=>{if("US"!=re)return;const e=ve;e<12?_e(0):e>=36?_e(20*Pe.singleJetpackPrice/100):e>=24?_e(15*Pe.singleJetpackPrice/100):e>=12&&_e(10*Pe.singleJetpackPrice/100)}),[ve,$]);const Oe=$?(Number(oe[0].price)*((100-Z.discountPercentage)/100)).toFixed(2):oe[0].price.toString(),Be=(0,o.lookupLocalPrice)(`${oe[0].id}${$?":subscription":""}`,"US"!=re?Object.assign(Object.assign({},z),{code:"USD"}):z,Oe),Me=(0,o.priceToLocalString)(Be*ve-Math.round(Ve*ve*100)/100,z),{freeProductInCartCount:Ne,maxFreeInCartProdcutQuantity:De}={freeProductInCartCount:0,maxFreeInCartProdcutQuantity:0},Te=De*($?2:1)-Ne,We=Pe.totalPrice-Te*Pe.singleJetpackPrice-Ve*G*Ie.length,Ee=((0,h.changeZeroToFree)((0,o.priceToLocalString)(We>0?We:0,z)),Object.entries(xe).reduce(((e,[t,{quantity:r,productHandle:n}])=>{if(t.includes("varietypack"))return e;const a=xe[`${n}-varietypack`].quantity+r;if(!(a>0))return e;const i=oe.find((e=>e.id===t));if(!i)return e;const s=le.find((({handle:e})=>e===n));if(!s)return e;const o={product:Object.assign({},s),variant:Object.assign({},i),quantity:a,isSubscription:$};return[...e,o]}),[])),Ae={price:ve>0?Me:"",beforeDiscountPrice:ve>0?je:"",quantity:ve,currency:z,increment:R,decrement:U,busyButton:!(null==ne?void 0:ne.isCartSync),addCart:()=>{J(Ee)},disableStickyPurchase:!1};return Z.handle,Z.title,Object.assign(Object.assign({},K),{image:K.cartImage,cartImage:Object.assign(Object.assign({},K.cartImage),{src:K.cartImage.src.replace("h_80","h_50")})}),(0,a.jsx)(i.Fragment,{children:(0,a.jsxs)("div",Object.assign({className:k},{children:[(0,a.jsx)("div",Object.assign({className:O},{children:(0,a.jsx)("div",Object.assign({className:B},{children:(0,a.jsx)(j.Carousel,{variants:oe,currentVariantIndex:t,setCurrentVariantByIndex:e,setCurrentVariantById:F,initialCurrentVariantIndex:r,colorGroup:n,isVarietyPack:ae,jetpacksUpsellToolSliderData:ce})}))})),(0,a.jsxs)("div",Object.assign({className:I},{children:[(0,a.jsx)(m.TabSelector,Object.assign({},ye)),(0,a.jsx)(x.ProductSummary,Object.assign({},we,{productId:Z.id})),(0,a.jsx)(p.DiscountProgress,{boom:ge,quantity:ve,keys:[{inCircleText:"12",bottomText:"10% OFF"},{inCircleText:"24",bottomText:"15% OFF"},{inCircleText:"36",bottomText:"20% OFF"}],unWantedIndexes:[11,12,13,23,24,25,35,36,37]}),(0,a.jsx)(C.VariantsCarousel,{totalQuantity:ve,setQuantity:(e,t)=>{const r="varietypack"===e?`${Z.handle}-${e}`:e;r in xe&&fe((e=>Object.assign(Object.assign({},e),{[r]:Object.assign(Object.assign({},e[r]),{quantity:t})})))},selectedJetPacks:xe,quantity:xe["varietypack"===K.id?`${Z.handle}-${K.id}`:K.id].quantity,incrementStateQuantity:e=>{const t="varietypack"===e?`${Z.handle}-${e}`:e;t in xe&&(fe((e=>Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},e[t]),{quantity:e[t].quantity+1})}))),ue.play())},decrementStateQuantity:e=>{const t="varietypack"===e?`${Z.handle}-${e}`:e;if(!(t in xe))return;const r=xe[t].quantity-1;r<0||(fe((e=>Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},e[t]),{quantity:r})}))),pe.play())},variants:v,currentVariantIndex:t,setCurrentVariantByIndex:e,setCurrentVariantById:F,initialCurrentVariantIndex:r,currentVariantId:K.id,swipe:Se,isVarietyPack:ae,setIsVarietyPack:se,resetQuantity:()=>fe(me)}),he&&he.length&&(0,a.jsx)("div",Object.assign({className:N},{children:(0,a.jsx)(u.ProductInfoWithIcons,{infoWithIcons:he})})),(0,a.jsxs)("div",Object.assign({onClick:()=>Y(!$),className:M},{children:[(0,a.jsxs)("div",Object.assign({className:(0,o.cx)(T,$&&W)},{children:[(0,a.jsx)("input",{checked:$,className:E,type:"checkbox"}),$&&g.CheckedIcon]})),(0,a.jsx)("p",Object.assign({className:Q},{children:`Subscribe and Save ${Z.discountPercentage}%`}))]})),(0,a.jsx)("div",Object.assign({className:(0,o.cx)(V,0===ve&&_)},{children:(0,a.jsx)(f.AddToCartGroup,Object.assign({},Ae,{disableQuantitySelector:!0}))})),(0,a.jsx)("div",Object.assign({className:w},{children:(0,a.jsx)(c.ShippingNotification,{shippingNotificationVariant:te})})),(0,a.jsxs)("div",Object.assign({className:P},{children:[(0,a.jsx)(d.GuaranteeNotice,{shopVersion:re,isNewIcon:!0}),(0,a.jsx)(l.SecurityBadges,Object.assign({},H))]}))]}))]}))})}},165:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSlideValues=t.SLIDES_PER_VIEW=t.WHEEL_SIZE=t.fixKeenSliderBugInPreact=t.SWIPE_SOUND=t.BOOM_SOUND=t.DOWN_SOUND=t.UP_SOUND=void 0,t.UP_SOUND="https://cdn.shopify.com/s/files/1/0066/4433/4658/files/discountAnimationSound1-bundleSlider.wav?v=1690274520",t.DOWN_SOUND="https://cdn.shopify.com/s/files/1/0066/4433/4658/files/discountAnimationSound3-bundleSlider.wav?v=1690274707",t.BOOM_SOUND="https://cdn.shopify.com/s/files/1/0066/4433/4658/files/discountAnimationSound2-bundleSlider.wav?v=1690274708",t.SWIPE_SOUND="https://cdn.shopify.com/s/files/1/0066/4433/4658/files/bundleSlider_slideSound_reduced-bundleSlider.wav?v=1690274707",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,images:r,varietyPackTitles:n})=>{var a,i;if(!e)return[];const s=.5-1/t.SLIDES_PER_VIEW/2,o=r.length,c=[];for(let l=0;lt.WHEEL_SIZE/2?180:o*(360/t.WHEEL_SIZE)*-1,u={transform:`translateX(${2.8*-d}px)`,WebkitTransform:`translateX(${2.8*-d}px)`},p=r[l],g=Math.abs(e.rel-l),S=0===g,b=1===g||g===e.slides.length-1,h=2===g||g===e.slides.length-2,y=S?{zIndex:"1",transition:"all 0.2s ease-out"}:b?{width:"22px",height:"22px",top:"-4px",right:"7px",fontSize:"11px",transition:"all 0.2s ease-out"}:h?{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"},m={padding:S?"0px":b?"5px":h?"10px":"11px",transform:1===g&&e.rel>l?"translateX(-8px)":1===g&&e.rele.length?(0,a.jsx)("div",Object.assign({className:o},{children:e.map((e=>(0,a.jsxs)("div",Object.assign({className:c},{children:[(0,a.jsx)(i.FeatureIcon,{name:e.icon}),(0,a.jsx)("p",Object.assign({className:l},{children:e.title}))]}))))})):null},145:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useSound=void 0;const n=r(484);t.useSound=e=>Object.entries(e).reduce(((e,[t,r])=>Object.assign(Object.assign({},e),{[t]:new n.Howl({src:[r]})})),{})}},e=>{e.O(0,[1,2,4,3,5,6,7,8,9,10,11,12,14,15,16,22,25,34,40],(()=>(948,e(e.s=948)))),e.O()}]);