(self.webpackChunkui=self.webpackChunkui||[]).push([[8],{369:(e,t,a)=>{"use strict";a.r(t)},287:(e,t,a)=>{"use strict";a.r(t)},288:(e,t,a)=>{"use strict";a.r(t)},147:(e,t,a)=>{"use strict";a.r(t)},370:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});const i={mainContainer:"t9PeK_Vp",advertorialContainer:"LL1sMQrM"}},150:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});const i={footer:"vNlnPs4n",noFixHeight:"PUzI91eH",footerSignup:"YxnpKaim",submittedText:"b5DJQmqh",signupForm:"_1Yqzve9",footerSections:"Tk25eZrs",footerSection:"gLQH6Dyp",footerTitle:"LNTZOfqM",footerLinks:"koRfgLnX",footerReferences:"tRMmOXiK",referenceNumber:"FIYL9WL2",footerTopHalf:"Mv9q98p4"}},286:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});const i={mainContainer:"_cFkJc8E",arrow:"JeOl0h_w",arrowPrev:"u5fdOOyw",arrowNext:"K9iI4vwS",hidden:"PaTYwb_3"}},342:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});const i={mainContainer:"Q5rv6HeZ",textContainer:"EdmH9fKg"}},367:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});const i={mainDetailContainer:"KxLhnDXN",mainDetailWrapper:"IyDCx15t",mainDetailHeading:"BCtuJsFD",carouselContainer:"XZzdrukB",imageContainer:"EX06Pqj0",imageCarousel:"QSNxTrPp",alwaysNoWrap:"rbHux68B",flexContainer:"MSpDWB2m",mainContainer:"JdteO2gB"}},368:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});const i={headerAnnouncement:"IWkLnfvd",text:"dTvyFwPP",cta:"FN7YUbow"}},340:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});const i={mainContainer:"ya3QX8hW",heading:"eFu3iBku",imgDesktop:"x6cZxoXk",logoContainer:"AKBKlbUx",svgLogo:"oxbcxePA"}},348:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});const i={nutritionInfo:"egOwDA7z"}},345:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});const i={mainContainer:"ev0BnRFI",nutritionInfoContainer:"i_0Py09K",priceStrikeThrough:"bbS_2deW",mainContainerVarietySet:"sRjBlXqc",categoryLabel:"kXSn60Lp",title:"u8uZYsfI",starsContainer:"GSAgqEYa",starsRating:"tmAZw3V3",ratingNumber:"YOpxQ5Ir",varietySetContainer:"BcqQQpMa",varietySetContainerForVarietySetPDP:"N2GoM31Q",varieryHoverName:"EKH8xntP",description:"B9FBqifz",freeFromContainer:"QPoxni5l",freeFromContainerVarietySet:"IelyHrOQ",nutritionContainer:"R_p_hgrF",nutritionImageContainer:"v10NASFC",bundles:"WyzlxQJc",selected:"RKpWdvMQ",price:"mTVVMoTi",priceVarietySet:"EVLWG4hr",productSubscription:"rHWlGRZw",productSubscriptionIsVariety:"iY4KdBsI",productSubscriptionVarietySet:"g5OYQ0xf",subscriptionInfo:"bRC9CMdJ",backgroundPopup:"zuoeIWjz",showContainer:"t4jgCqBo",labelShip:"k3LOGGoz",labelShipVarietySet:"hsdGIFgM",addButton:"ChqzkIyI",disabled:"RsJin1qM",moreFlavorsAlert:"czTtPNFc",addButtonVarietySet:"AxJMSRCh",buttonLoading:"UKvWVrZT",buttonLoader:"davrALpg",nutritionArrowContainer:"AvKD_Zg8",badgesContainer:"HDlXnuys"}},341:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});const i={addButton:"HUUhhCrZ",buttonLoading:"UvuK4SOD",buttonLoader:"HIffqsFI"}},69:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});const i={title:"slYlQsRu",bundles:"nmE_lK62",bundleSubheading:"mLa09HMK",selected:"gYIHuGGS",step2Container:"EhNTR4CP",backButton:"HthBh4yY",varietySetContainer:"OXLCaHcO",varietyName:"TZbmsT9F",varietyItem:"AX8zYDpF",varietySetLimitedEdition:"VUCpQm6J",limitedEditionContainer:"Jkitxxk_",selectedOptionsContainer:"FkUy4L4D",selectedOptionsLimitedEdition:"pGW8vMOi",selectedImagesContainer:"ShM1x96t",imageContainer:"fUAW3hi9",stepIndicatorTitleContainer:"oCFWWT9v",columnDisplay:"NMcGJafS",modifyButton:"dJuRhvtf",yourVarietySet:"cShcKRha",chosenFlavors:"Qx1Kbg5D",desktopOnly:"AktZBLZF",mobileOnly:"WUfT0bDJ"}},151:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});const i={mainContainer:"TsztfNOR",mainContainerVarietySet:"Jf2f1Cva",categoryLabel:"sfiuOIJ1",title:"kPiQ5mLD",titleTwelvePack:"e0M9DS0W",starsContainer:"ELZJNu3x",starsRating:"p6dYzvUg",ratingNumber:"bsBk46XA",varietySetContainer:"tpoyIqpo",limitedEdition:"GfxzQoyG",varietySetContainerHolidays:"FIWo7dNJ",varietySetContainerForVarietySetPDP:"tHSLPsy1",linkVarietySet:"SlePNL30",varieryHoverName:"dBaA4Ajl",description:"qHa4RGK3",freeFromContainer:"VGlWy9LA",freeFromContainerVarietySet:"WPITXr8g",nutritionContainer:"qnHeEAxb",nutritionImageContainer:"Hos5yw3W",bundles:"rqY7aqiH",selected:"_YV9idlT",price:"w7vcvux_",productSubscription:"vnIZAHEt",productSubscriptionIsVariety:"IoVxH2uK",productSubscriptionVarietySet:"x6FhNKaZ",subscriptionInfo:"S9sH1DiG",backgroundPopup:"_Zav2ZCg",showContainer:"U7qgUUvs",labelShip:"D0ihaQhx",labelShipVarietySet:"BYwCg_jp",addButton:"Y5ZktfYR",disabled:"odOSVmII",moreFlavorsAlert:"_PTixE9x",addButtonVarietySet:"iss0JW_X",buttonLoading:"uAJJSFTq",buttonLoader:"SFfeVxVm",nutritionArrowContainer:"PVOA40Zt",badgesContainer:"KaCsQRKd",priceContainer:"lgpqtjGT",plusSymbol:"WRDCrImB",freeHatContainer:"IdmOV162",freeBadge:"OxRsXY39",brandHat:"wGR8wcHK",brandHatItalic:"x28gvOvo",hatFlex:"neNqnlMS",priceVarietySet:"d9Sxkbcv"}},146:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});const i={mainContainer:"m91m7KfJ",arrow:"h6oXIRyM",arrowPrev:"Ga4IyCzy",arrowNext:"EEIHQwBr",hidden:"InRE3cGz"}},137:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});const i={mainContainer:"HMUTnwCJ",title:"DQ_iaI28",starsContainer:"UtRZLnnh",carouselContainer:"D4BvUdkg",slideContainer:"ex6nPfHl",slideTitle:"rWzpABkX",slideDescription:"S8T6PC_K",bottomSlideContainer:"RSme3uNd",slideProduct:"QsJgLrTi",slideAuthor:"cEP4g9MK",carouselContainerDesktop:"d89BY7QA"}},327:(e,t,a)=>{"use strict";const i=a(105);(0,a(14).createEntrypoint)("main-landing",i.Main)},105:function(e,t,a){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Main=void 0;const n=a(0),r=a(60),o=a(61),s=a(107),l=a(108),d=a(110),c=a(116);a(369);const u=i(a(370));t.Main=function(e){const t=e.useSharedState()((({cart:e,addToCart:t,setShowCart:a,showCart:i,changeToCart:n,loadingAddToCart:r,addFakeBundle:o,fakeBundle:s})=>({cart:e,addToCart:t,setShowCart:a,showCart:i,changeToCart:n,loadingAddToCart:r,addFakeBundle:o,fakeBundle:s})));return(0,n.jsxs)("div",{className:"mainLanding",children:[(0,n.jsx)(c.HeaderAnnouncement,{text:"SAVE ON YOUR FIRST MONTH OF STARS + HONEY BARS",ctaText:"CLAIM YOUR OFFER",ctaUrl:"/landing/5-reasons-worth-the-price/#LandingDetails"}),(0,n.jsx)(s.LandingHero,{img:e.landingPage.hero.img,heading:e.landingPage.hero.heading}),(0,n.jsxs)("main",{className:`${u.default.mainContainer} mainContainer`,children:[(0,n.jsx)("p",{children:e.landingPage.subheading}),(0,n.jsxs)("div",{className:`${u.default.advertorialContainer} advertorialContainer`,children:[(0,n.jsx)(l.LandingAdvertorial,{img:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/landing-diet.webp?v=1728393646",heading:"#1 Buy Back Your Time Without Cutting Corners on Your Diet",children:"You're trying to eat clean. Does that mean you have to spend hours in the kitchen each week doing meal prep? Not with Stars + Honey bars.\n\n We designed these bars to be as close to the whole food ideal as possible, without the prep time. Our bars contain high quality natural ingredients, no preservatives, and no gluten, dairy, soy or Stevia.\n\n If you’re trying to eat clean, you can feel good about these bars."}),(0,n.jsx)(l.LandingAdvertorial,{img:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/fitness-goals.webp?v=1728393971",heading:"#2 Support Your Fitness Goals with Superior Macros",children:"It seems like there are two options out there: a “protein” bar with the same macro profile as a candy bar, or something that’s protein-dense but tastes like biting into a stick of chalk.\n\n We knew there had to be a better way, so we designed a bar with 15g of protein and only 2g of sugar. We use innovative recipes to deliver a balanced flavor profile with just enough sweetness–without resorting to artificial sweeteners like Stevia."}),(0,n.jsx)(l.LandingAdvertorial,{img:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/landing-quality.webp?v=1728394122",heading:"#3 Invest In Your Health & Longevity WIth High Quality Collagen Protein",children:"Collagen helps keep you looking your best today, but it also has benefits you’ll feel decades from now. Collagen supports bone density, joint mobility and it has anti-inflammatory properties–all critical to staying mobile and pain-free as you age.\n\n Our bars contain 10g of collagen, enough to replace the powder routine that is so hard to stick with. If you replace your collagen powder and your standard protein bar with Stars + Honey bars, you’ll actually save money!"}),(0,n.jsx)(l.LandingAdvertorial,{img:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/lading-hand-crafted.webp?v=1728394153",heading:"#4 Hand-Crafted, Sophisticated Flavors You’ll Look Forward to Eating",children:"Why does every protein bar on the market seem to be some kind of “chocolate” flavor?  We took a different approach: flavor profiles that wouldn’t be out of place on the menu of a Michelin Starred restaurant. \n\n Developing flavors like Cacao Salt Caramel Peanut while incorporating 15g of protein requires more innovative recipes and manufacturing than the standard Big Food protein bar. But we think the taste is worth the extra time and effort."}),(0,n.jsx)(l.LandingAdvertorial,{img:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/landing-snack.webp?v=1728396025",heading:"#5 You’ll Snack Less When Your Snacks Keep You Fuller, Longer",children:"Many of our customers are shocked that a 180 calorie bar can keep them going from lunch to dinner without hunger pangs or the 3pm crash that most snacks deliver.\n\n Traditional snacks lead to blood sugar spikes and the mid-afternoon energy slump. But our high protein content (15g) and low sugar content (2g) support more balanced blood sugar levels. \n\n If you find yourself grazing on snacks all afternoon, try a Stars + Honey bar first. You’ll be surprised how much money you save on snacking."})]})]}),(0,n.jsx)(d.Details,{productPages:e.productPages,useSharedState:t}),(0,n.jsx)(r.Reviews,{}),(0,n.jsx)(o.Footer,{})]})}},108:function(e,t,a){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LandingAdvertorial=void 0;const n=a(0),r=a(109),o=i(a(342)),s=a(10);t.LandingAdvertorial=({img:e,heading:t,children:a})=>(0,n.jsxs)("article",{class:`${o.default.mainContainer} LandingAdvertorialMainContainer`,children:[(0,n.jsx)("div",{children:(0,n.jsx)("img",{src:(0,s.getFastImage)(e),alt:"Landing Hero",style:{width:"100%",height:"auto"},loading:"lazy",width:640,height:512})}),(0,n.jsxs)("div",{className:`${o.default.textContainer} LandingAdvertorialTextContainer`,children:[(0,n.jsx)("h2",{className:o.default.heading,children:t}),(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:a}}),(0,n.jsx)(r.PrimaryButton,{onClick:()=>{const e=new URL(window.location.href);window.location.href=`${e.origin}${e.pathname}#LandingDetails`},isLoading:!1,children:"SHOP STARS + HONEY BARS"})]})]})},110:function(e,t,a){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Details=void 0;const n=a(0),r=a(111),o=a(62),s=i(a(367)),l=a(2),d=a(10),c={infinite:!0,dots:!0,speed:500,slidesToShow:1,slidesPerRow:1,slidesToScroll:1,centerMode:!1,centerPadding:"0",variableWidth:!0};t.Details=({productPages:e,useSharedState:t})=>{const[a,i]=(0,l.useState)(0),u=e[a].images;return(0,n.jsx)("section",{className:`${s.default.mainDetailContainer} mainDetailContainer`,id:"LandingDetails",children:(0,n.jsxs)("div",{className:`${s.default.mainDetailWrapper} mainDetailWrapper`,children:[(0,n.jsxs)("p",{className:`${s.default.mainDetailHeading} mainDetailHeading`,children:[(0,n.jsx)("span",{children:"SAVE 10% OFF"})," YOUR FIRST MONTH OF ",(0,n.jsx)("span",{className:s.default.alwaysNoWrap,children:"STARS + HONEY"})," BARS"]}),(0,n.jsxs)("div",{className:`${s.default.flexContainer} flexContainer`,children:[(0,n.jsx)("div",{className:`${s.default.carouselContainer} carouselContainer`,children:(0,n.jsx)(o.Carousel,{carouselSettings:c,children:u?.map(((e,t)=>(0,n.jsx)("div",{className:`${s.default.imageContainer} imageContainer`,children:(0,n.jsx)("img",{src:(0,d.getFastImage)(e?.src,1200),alt:e?.alt,className:s.default.imageCarousel})},t)))})}),(0,n.jsx)(r.ProductDetails,{productPage:e[a],useSharedState:t,setProductIndex:i})]})]})})}},116:function(e,t,a){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HeaderAnnouncement=void 0;const n=a(0),r=i(a(368));t.HeaderAnnouncement=({text:e,ctaText:t,ctaUrl:a})=>(0,n.jsx)("section",{children:(0,n.jsxs)("div",{className:`headerAnnouncement ${r.default.headerAnnouncement}`,children:[(0,n.jsx)("p",{className:`text ${r.default.text}`,children:e}),(0,n.jsx)("a",{href:a,className:`cta ${r.default.cta}`,children:t})]})})},107:function(e,t,a){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LandingHero=void 0;const n=a(0),r=i(a(340));t.LandingHero=({img:e,heading:t})=>(0,n.jsxs)("div",{className:`${r.default.mainContainer} LandingHeroMainContainer`,children:[(0,n.jsx)("div",{className:`${r.default.logoContainer} logoContainer`,children:(0,n.jsx)("a",{alt:"Stars + Honey home page","aria-label":"Stars + Honey home page",href:"/",children:(0,n.jsxs)("svg",{className:r.default.svgLogo,alt:"Stars + Honey logo",width:"160",height:"68",viewBox:"0 0 160 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("g",{"clip-path":"url(#clip0_4025_239)",children:(0,n.jsx)("path",{d:"M107.432 2.69307C110.069 2.69307 111.43 3.70297 111.43 6.73267V21.797C111.43 24.8267 110.069 25.8366 107.432 25.8366C104.795 25.8366 103.434 24.8267 103.434 21.797V6.73267C103.434 3.70297 104.795 2.69307 107.432 2.69307ZM107.432 28.5297C112.791 28.5297 114.577 25.9208 114.577 21.7129V6.81683C114.577 2.60891 112.791 0 107.432 0C102.073 0 100.287 2.60891 100.287 6.81683V21.7129C100.287 25.9208 102.073 28.5297 107.432 28.5297ZM130.824 3.78713H143.413V0.673267H130.824V3.78713ZM147.241 67.3267H150.558V32.8218L160 0.673267H156.768L148.602 29.3713L149.537 29.5396L143.413 7.91089H139.926L147.241 32.8218V67.3267ZM130.824 32.7376H141.031V29.6238H130.824V32.7376ZM129.633 67.3267H132.951V0.673267H129.633V67.3267ZM130.824 67.3267H143.923V64.0446H130.824V67.3267ZM91.781 67.3267H95.0984V0.673267H91.781V67.3267ZM79.8724 34.5049H93.4822V31.5594H79.8724V34.5049ZM77.916 67.3267H81.2334V0.673267H77.916V67.3267ZM66.6029 44.5198C71.1111 44.5198 72.9825 42.6683 72.9825 38.6287V33.6634C72.9825 27.7723 71.5364 24.9109 68.134 20.703C65.412 17.2525 63.4556 14.2228 63.4556 9.17327V6.4802C63.4556 3.87129 64.2212 2.69307 66.6029 2.69307C68.9846 2.69307 69.9203 3.70297 69.9203 6.39604V14.0545H72.8974V4.71287C72.8974 1.51485 70.7709 0 66.6029 0C62.4349 0 60.3083 2.18812 60.3083 5.80693V10.0149C60.3083 15.3168 62.605 18.6832 65.327 22.0495C68.6443 26.0891 69.8352 28.698 69.8352 34.7574V38.1238C69.8352 40.6485 68.9846 41.8267 66.6029 41.8267C64.4763 41.8267 63.1154 41.2376 63.1154 37.8713V30.8861H60.1382V38.797C60.1382 42.7525 62.0096 44.5198 66.6029 44.5198ZM19.6491 3.61881H36.151V0.673267H19.6491V3.61881ZM39.5534 67.3267H42.8708V3.53465H46.9538C50.0159 3.53465 52.2275 4.4604 52.2275 9.08911V25.8366C52.2275 29.7921 51.9724 31.5594 47.5492 31.5594H42.0202V34.5891H47.6342C50.9516 34.5891 52.0574 36.7772 52.0574 40.2277V63.4554C52.0574 65.0545 52.1425 66.5693 52.9931 67.3267H56.3955C55.63 66.2327 55.3748 65.0545 55.3748 62.7822V38.4604C55.3748 34.7574 53.1632 32.8218 48.8251 32.8218V33.495C53.2483 33.495 55.5449 31.2228 55.5449 26.7624V7.74257C55.5449 3.61881 53.7586 0.673267 48.74 0.673267H39.5534V67.3267ZM26.1988 28.5297H29.5162V3.11386H26.1988V28.5297ZM58.3519 59.3317H74.7687V56.6386H58.3519V59.3317ZM65.0718 67.3267H67.9639V48.7277H65.0718V67.3267ZM19.3089 67.3267H22.4561L28.3254 36.3564L26.7092 34.7574L32.9187 67.3267H36.236L29.5162 32.7376H26.1988L19.3089 67.3267ZM8.16587 68C13.5247 68 16.3317 65.3069 16.3317 59.0792V51.4208C16.3317 43.2574 15.1409 39.302 10.2924 32.3168C6.20946 26.5099 3.57257 22.7228 3.57257 14.1386V8.66832C3.57257 4.62871 4.76342 2.86139 8.16587 2.86139C11.5683 2.86139 12.7592 4.37624 12.7592 8.5V21.4604H16.0766V6.81683C16.0766 2.0198 13.0144 0 8.16587 0C3.57257 0 0.170122 2.10396 0.170122 8.41584V15.2327C0.170122 22.8911 2.80702 27.6881 6.80489 33.495C10.8878 39.3861 12.9293 42.5842 12.9293 52.9356V59.4158C12.9293 63.2871 11.6534 65.1386 8.16587 65.1386C5.35885 65.1386 3.31738 64.2129 3.31738 59.0792V47.2129H0V59.4158C0 66.0644 2.72196 68 8.16587 68ZM22.6263 55.9653H31.4726V53.1881H22.6263V55.9653ZM100.202 67.3267H103.434V37.5347L102.669 38.0396L121.127 67.3267H124.444V0.673267H121.212V63.5396L121.722 61.6881L103.434 32.7376H100.202V67.3267Z",fill:"white"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_4025_239",children:(0,n.jsx)("rect",{width:"160",height:"68",fill:"white"})})})]})})}),(0,n.jsx)("img",{src:e.url,alt:e.alt,style:{width:"100%"},loading:"eager",className:r.default.imgDesktop,height:"auto",width:"100%"}),(0,n.jsx)("h1",{className:`${r.default.heading} heading`,dangerouslySetInnerHTML:{__html:t}})]})},112:function(e,t,a){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NutritionInfo=void 0;const n=a(0),r=i(a(348));t.NutritionInfo=({text:e})=>(0,n.jsxs)("div",{className:r.default.nutritionInfo,children:[(0,n.jsx)("svg",{width:"5",height:"5",viewBox:"0 0 5 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("circle",{cx:"2.5",cy:"2.5",r:"2.5",fill:"black"})}),(0,n.jsx)("p",{children:e})]})},111:function(e,t,a){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProductDetails=void 0;const n=a(0),r=i(a(345)),o=a(2),s=a(24),l=a(2),d=a(67),c=a(22),u=a(112),h=a(36),g=a(10);"undefined"!=typeof window&&(window.Buffer=d.Buffer);const{mainContainer:f,title:m,starsContainer:p,starsRating:C,ratingNumber:v,varietySetContainer:x,varietySetContainerForVarietySetPDP:y,description:S,freeFromContainer:b,freeFromContainerVarietySet:H,bundles:w,selected:j,price:V,priceVarietySet:N,labelShip:L,labelShipVarietySet:k,addButton:_,varieryHoverName:I,disabled:P,addButtonVarietySet:M,buttonLoading:D,buttonLoader:F}=r.default;t.ProductDetails=function({productPage:e,setProductIndex:t,useSharedState:a}){const[i,d]=(0,o.useState)(!1),[O,A]=(0,o.useState)(!1),[T,B]=(0,o.useState)(!1),R="signature-flavors-variety-set"===e.handle,$=Number(e.variants[2]?.price?.amount);return(0,l.useEffect)((()=>{e.variants[2].currentlyNotInStock?A(!0):A(!1),e.variants[2].availableForSale?B(!1):B(!0)}),[2]),(0,n.jsxs)("div",{className:`ProductDetail mainContainer ${f}`,children:[!R&&(0,n.jsx)("div",{className:`bundles ${w}`,children:(0,n.jsx)("div",{children:(0,n.jsx)("span",{className:`${j}`,children:"30-PACK"})})}),(0,n.jsx)("h1",{className:m,children:e.title}),(0,n.jsxs)("div",{className:`starsContainer ${p}`,children:[(0,n.jsx)("a",{className:C,href:h.mockProductDetailData.rating.reviewsHref,children:(0,n.jsx)(c.RatingStars,{rating:e.reviews?.rating_average,numberOfStars:5,starDimension:"20px",starRatedColor:"#000000",starEmptyColor:"#00000055"})}),(0,n.jsxs)("p",{className:v,children:["(",(0,s.truncateOneDecimal)(e?.reviews?.rating_average),")"]})]}),(0,n.jsx)("div",{className:`varietySetContainer ${x} ${R&&y}`,children:h.mockProductDetailData.varietyData.map(((e,a)=>(0,n.jsx)("div",{className:"varietyDataSelector",children:(0,n.jsxs)("a",{href:e.varietyHref,onClick:e=>((e,a)=>{e.preventDefault(),t(a)})(e,a),children:[(0,n.jsx)("img",{src:(0,g.getFastImage)(e.varietyImage,30),alt:"variety"}),(0,n.jsx)("div",{className:I,children:e.varietyName})]})},a)))}),(0,n.jsx)("p",{className:S,style:{fontSize:R?"12px":"14px",lineHeight:R?"18px":"21px",letterSpacing:R?"normal":"-0.02em;"},children:e.description}),(0,n.jsxs)("div",{class:r.default.nutritionInfoContainer,children:[(0,n.jsx)(u.NutritionInfo,{text:`${e.calories} Calories`}),(0,n.jsx)(u.NutritionInfo,{text:`${e.protein}g Protein`}),(0,n.jsx)(u.NutritionInfo,{text:`${e.collagen}g Collagen`}),(0,n.jsx)(u.NutritionInfo,{text:`${e.sugar}g Sugar`})]}),(0,n.jsx)("div",{className:`freeFromContainer ${b} ${R&&H}`,children:e.tagsBadge.map(((e,t)=>(0,n.jsx)("span",{children:e.substring(1).toLowerCase().includes("sugar")?"STEVIA":e.substring(1)},t)))}),(0,n.jsxs)("div",{className:`ProductDetailsPrice ${V} ${R&&N}`,children:["Regular Price: ",(0,n.jsxs)("span",{className:r.default.priceStrikeThrough,children:["$",$.toFixed(2)]})]}),(0,n.jsx)("div",{onClick:async()=>{if(i)return;if(d(!0),O||T)return void d(!1);let t=[{sku:e.variants[2].sku||"",id:e.variants[2].id,quantity:1,image:e.variants[2].image.src,product_title:e.title,variant_title:e.variants[2].title,price:100*$,final_price:100*$,url:`https://starsandhoney.com/products/${e.handle}`,variant_id:Number(e.variants[2].id),vendor:e.vendor}];try{await a.addToCart({items:t}),window.location.href="/checkout?discount=WORTHIT10"}catch(e){console.error(e),d(!1)}},className:`${_} \n\t\t\t\t${R&&P}\n\t\t\t\t${(O||T)&&P}\n\t\t\t\t${R&&M}\n\t\t\t\t${i&&D}\n\t\t\t\t`,children:(0,n.jsxs)("button",{children:[T?"UNAVAILABLE":O?"OUT OF STOCK":"REVEAL YOUR OFFER",i&&(0,n.jsx)("span",{className:F,children:(0,n.jsxs)("svg",{height:"18",width:"18",children:[(0,n.jsx)("circle",{r:"7",cx:"9",cy:"9"}),(0,n.jsx)("circle",{"stroke-dasharray":"87.96459430051421 87.96459430051421",r:"7",cx:"9",cy:"9"})]})})]})}),(0,n.jsx)("p",{className:`${L} ${R&&k}`,children:"PLUS FREE SHIPPING"})]})}},109:function(e,t,a){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PrimaryButton=void 0;const n=a(0),r=i(a(341));t.PrimaryButton=({onClick:e,isLoading:t,children:a,extraClass:i=""})=>(0,n.jsx)("div",{onClick:e,className:`${r.default.addButton} ${t?r.default.buttonLoading:""} ${i}`,children:(0,n.jsxs)("button",{children:[a,t&&(0,n.jsx)("span",{className:r.default.buttonLoader,children:(0,n.jsxs)("svg",{height:"18",width:"18",children:[(0,n.jsx)("circle",{r:"7",cx:"9",cy:"9"}),(0,n.jsx)("circle",{"stroke-dasharray":"87.96459430051421 87.96459430051421",r:"7",cx:"9",cy:"9"})]})})]})})},173:()=>{}},e=>{e.O(0,[1,2,3,4,5],(()=>(327,e(e.s=327)))),e.O()}]);