"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[105],{7:(e,r,t)=>{t.r(r)},24:(e,r,t)=>{t.r(r)},26:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});const a={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"}},23:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});const a={wrapper:"uA5i17C3",wrapperShow:"i5mp68DB",wrapperWhite:"tLl82WUv",wrapperBlack:"z7TQU7uE",wrapperHeader:"CaAAsOsW"}},27:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});const a={wrapper:"uAnwomBg",wrapperContent:"GrbIFY7W",wrapperContentMobileFullScreen:"z1OIxmvK",wrapperContentModal:"ZcGe7eQY",wrapperContentModalMobileFullScreen:"plktbgPs",wrapperShow:"J8CIuLp0"}},28:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});const a={wrapper:"SJa8eo06",sm:"Uu2KqrE3",md:"rdoDSaVA",lg:"feg_GqEI"}},29:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});const a={wrapper:"V47WgM_g",wrapperWithZoom:"t3XaNyzG",wrapperStars:"FwWX9GQS",wrapperText:"sUXVAUuY",wrapperSsrOnly:"TAeNuhJT"}},19:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});const a={wrapper:"ez3WWppe",wrapperLargeSize:"Owen1PDQ",wrapperMediumSize:"SegHEAUz",wrapperSmallSize:"doGF94Py",wrapperDecrementBtn:"xMhq6Lap",wrapperInput:"Q6dVvr5Z",wrapperIncrementBtn:"o7fHDhZI"}},1070:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});const a={wrapperImage:"xEuTGhbv",wrapperCard:"MWikhj7m",wrapperCardTitle:"L5s8Q_Y8",wrapperCardRating:"EOmu65EZ",wrapperCardAddToCart:"pwlHg1sy",wrapperCardAddToCartQuantity:"qJJsB56y",wrapperCardAddToCartButton:"ALu40fv_",wrapperCardStylux:"zVmWs6TB"}},1072:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});const a={wrapper:"ALZpsovi",wrapperHeader:"bwkFHsj1",wrapperHeaderContent:"ekZOD4fL",wrapperIndicators:"o2p9hLNU",wrapperIndicatorsContent:"AWCD00LM",wrapperIndicatorsContentLeft:"DIsKsbR6",wrapperIndicatorsContentRight:"x0BLahR2"}},20:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});const a={spinner:"xPi5Ycmw","button-loading-spinner":"gR4FKvMp"}},99:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});const a={wrapper:"MMgNXbSQ",wrapperImage:"A1nNc18U",wrapperContent:"NEi237Sh",wrapperHeader:"tJI4nZKp",wrapperText:"RJhjD_2v",wrapperIcons:"YeXnODOv",wrapperIcon:"iUyRdw0F",wrapperButtons:"DYHUBHzK",wrapperInput:"cu8M91ej",wrapperInputActive:"d5qhBuzq",wrapperInputError:"jvltQoG6",wrapperButton:"aNIMWdtM",wrapperClose:"PhrxIrul",modalCloseWhite:"ArLbrc7z",button:"sCTlrMwo"}},9:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});const a={wrapper:"jeoYiegV",wrapperRight:"AIokLt1C",wrapperLeft:"NihyFReM"}},8:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});const a={wrapper:"NxzIhXo4"}},1068:(e,r,t)=>{const a=t(1069);(0,t(5).createEntrypoint)("related-products",a.RelatedProductsContainer)},1069:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.RelatedProductsContainer=void 0;const a=t(0),i=(t(1),t(417));r.RelatedProductsContainer=({relatedProducts:e,useSharedState:r,styluxFeature:t})=>{const n=r(),{currency:s,addToCart:d}=n((e=>({currency:e.context.currency,addToCart:e.addToCartWithPayload})));return(0,a.jsx)(i.RelatedProducts,{relatedProducts:e,currency:s,addToCart:d,styluxFeature:t})}},17:function(e,r,t){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.QuantitySelector=void 0;const i=t(0),n=(t(1),t(2)),s=t(4),d=a(t(19)),{wrapper:l,wrapperLargeSize:p,wrapperSmallSize:o,wrapperMediumSize:c,wrapperInput:u,wrapperDecrementBtn:w,wrapperIncrementBtn:g}=d.default;r.QuantitySelector=function({quantity:e=1,decrementQuantity:r,incrementQuantity:t,className:a="",height:d="large",isInstantCartItem:v=!1}){return(0,i.jsxs)("div",Object.assign({className:(0,n.cx)(l,"large"===d?p:"medium"===d?c:o,a)},{children:[(0,i.jsx)("button",Object.assign({className:(0,n.cx)(w,"switch"),onClick:r,disabled:v},{children:(0,i.jsx)(s.Icons.MinusIcon,{})})),(0,i.jsx)("input",{className:u,value:e,readOnly:!0,"aria-label":"Quantity"}),(0,i.jsx)("button",Object.assign({className:(0,n.cx)(g,"switch"),onClick:t,disabled:v},{children:(0,i.jsx)(s.Icons.PlusIcon,{})}))]}))}},418:function(e,r,t){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.RelatedProduct=void 0;const i=t(0),n=(t(1),t(3)),s=t(30),d=t(17),l=t(13),p=t(2),o=a(t(1070)),c=t(79),{wrapper:u,wrapperImage:w,wrapperCard:g,wrapperCardTitle:v,wrapperCardRating:h,wrapperCardAddToCart:j,wrapperCardAddToCartQuantity:m,wrapperCardAddToCartButton:C,wrapperCardStylux:b}=o.default;r.RelatedProduct=({product:e,currency:r,addToCart:t,styluxFeature:a=null})=>{var o,x,f,y,S,O,P,I;const{handle:M,rating:_,raters:N,variant:T}=e,[z,R]=(0,n.useState)(1),A=!!(null===(o=null==T?void 0:T.sellingPlan)||void 0===o?void 0:o.id)&&0!=T.sellingPlan.id,k="soylent-powder"===e.handle,B=(0,p.getDisplayPrice)(`${T.id}${A?":subscription":""}`,T.discountPrice,r,z),L=`/products/${M}?variant=${T.id}`,W="Default Title"===T.title||"Recipe Book"===T.title||"jetsetter-insulated-sleeve"===e.handle?e.title:T.title,D=null==a?void 0:a.variantsMapping[T.id],F=D?(0,p.getDisplayPrice)(D.id,D.price,r):"",Q=null===(y=100*Number(null!==(x=null==D?void 0:D.price)&&void 0!==x?x:0)-100*Number(null!==(f=null==T?void 0:T.price)&&void 0!==f?f:0))||void 0===y?void 0:y.toString(),U={product:Object.assign(Object.assign({},e),{title:null!==(S=null==D?void 0:D.productTitle)&&void 0!==S?S:e.title}),variant:Object.assign(Object.assign({},T),{id:null!==(O=null==D?void 0:D.id)&&void 0!==O?O:T.id,price:null!==(P=null==D?void 0:D.price)&&void 0!==P?P:T.price,title:null!==(I=null==D?void 0:D.title)&&void 0!==I?I:T.title}),quantity:z,isSubscription:A&&!k};return(0,i.jsxs)("div",Object.assign({className:u},{children:[(0,i.jsx)("div",Object.assign({className:w},{children:(0,i.jsx)("a",Object.assign({href:L,"aria-label":T.title},{children:(0,i.jsx)("img",{src:T.image.src,alt:T.image.alt,width:"400",loading:"lazy"})}))})),(0,i.jsx)("div",Object.assign({className:(0,p.cx)(g,!!a&&b)},{children:(0,i.jsxs)("div",{children:[(0,i.jsx)("a",Object.assign({className:v,href:L,"aria-label":W},{children:W})),N>0&&(0,i.jsx)("div",Object.assign({className:h},{children:(0,i.jsx)(s.ProductRating,{rating:_,raters:N,size:"sm",isWithoutZoom:!0})})),(0,i.jsxs)("div",Object.assign({className:j},{children:[(0,i.jsx)("div",Object.assign({className:m},{children:(0,i.jsx)(d.QuantitySelector,{quantity:z,decrementQuantity:()=>{1!==z&&R(z-1)},incrementQuantity:()=>R(z+1),height:"medium"})})),(0,i.jsx)("div",Object.assign({className:C},{children:(0,i.jsx)(l.AddToCartButton,{price:B,onClick:()=>{t({product:e,variant:T,quantity:z,isSubscription:A&&!k})},height:"medium"})}))]}))]})})),!!a&&!!D&&(0,i.jsx)(c.StyluxFeature,Object.assign({image:D.image,displayPrice:F,styluxPersonalizationPrice:Q,payload:U,addToCartWithPayload:t},a))]}))}},1071:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.useSlider=void 0;const a=t(10),i=t(3);r.useSlider=()=>{const[e,r]=(0,i.useState)("undefined"!=typeof window?window.innerWidth:450),[t,n]=(0,i.useState)(),s=()=>r(window.innerWidth);(0,i.useEffect)((()=>(r(window.innerWidth),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)})),[]);const[d,l]=(0,i.useState)(0),[p,o]=(0,i.useState)(4),c={initial:d,loop:!0,slides:{perView:p},created(e){n(Object.assign({},e))},slideChanged(e){n(Object.assign({},e)),l(e.track.details.rel)}},[u,w]=(0,i.useState)(c),[g]=(0,a.useKeenSlider)(u);return(0,i.useEffect)((()=>e<1024?(o(1),void w(Object.assign({},c))):e>=1024&&window.innerWidth<1400?(o(3),void w(Object.assign({},c))):e>=1400?(o(4),void w(Object.assign({},c))):void 0),[p,e]),{sliderRef:g,slidesPerView:p,slider:t,currentSlide:d}}},417:function(e,r,t){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.RelatedProducts=void 0;const i=t(0);t(1),t(7);const n=t(14),s=t(418),d=t(1071),l=a(t(1072)),{wrapper:p,wrapperHeader:o,wrapperHeaderContent:c,wrapperIndicators:u,wrapperIndicatorsContent:w,wrapperIndicatorsContentLeft:g,wrapperIndicatorsContentRight:v}=l.default;r.RelatedProducts=({relatedProducts:e,currency:r,addToCart:t,styluxFeature:a})=>{var l;const{sliderRef:h,slidesPerView:j,slider:m,currentSlide:C}=(0,d.useSlider)(),b=null===(l=e[0])||void 0===l?void 0:l.heading;return(0,i.jsx)("div",{children:(0,i.jsxs)("div",Object.assign({className:p},{children:[b&&(0,i.jsx)("div",Object.assign({className:o},{children:(0,i.jsx)("div",Object.assign({className:c},{children:b}))})),(0,i.jsx)("div",Object.assign({ref:h,class:"keen-slider"},{children:e.map((e=>e.variant?(0,i.jsx)("span",Object.assign({class:"keen-slider__slide"},{children:(0,i.jsx)(s.RelatedProduct,{product:e,currency:r,addToCart:t,styluxFeature:a})}),e.id):null))})),jnull==m?void 0:m.prev()})})),(0,i.jsxs)("progress",Object.assign({value:C+1,max:e.length},{children:["Product ",C+1," of ",e.length]})),(0,i.jsx)("div",Object.assign({className:v},{children:(0,i.jsx)(n.ArrowRightButton,{onClick:()=>null==m?void 0:m.next()})}))]}))}))]}))})}}},e=>{e.O(0,[1,2,4,3,5,6,7,8,9,10,13,12,14,15,16,17,29],(()=>(1068,e(e.s=1068)))),e.O()}]);