"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[5],{61:function(e,a,t){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.Footer=void 0;const r=t(0),s=i(t(150)),n=t(2),o=t(339),{footer:l,footerSection:c,footerSections:d,footerTitle:u,footerLinks:m,footerSignup:p,signupForm:h,submittedText:v,footerReferences:y,footerTopHalf:f,referenceNumber:g,noFixHeight:b}=s.default;a.Footer=()=>{const[e,a]=(0,n.useState)(""),[t,i]=(0,n.useState)(!1),[s,x]=(0,n.useState)(!1),k={sections:[{title:"STARS + HONEY",links:[{name:"About",url:"https://starsandhoney.com/pages/about"},{name:"Philosophy",url:"https://starsandhoney.com/pages/philosophy"},{name:"Contact Us",url:"https://starsandhoney.com/pages/contact"},{name:"FAQ",url:"https://starsandhoney.com/pages/faq"}]},{title:"ORDERS & SUPPORT",links:[{name:"Shipping",url:"https://starsandhoney.com/pages/faq"},{name:"Returns & Exchanges",url:"https://starsandhoney.com/pages/faq#returns"},{name:"Terms",url:"https://starsandhoney.com/policies/terms-of-service"},{name:"Privacy",url:"https://starsandhoney.com/policies/privacy-policy"}]},{title:"COMMUNITY",links:[{name:"Instagram",url:"https://www.instagram.com/starsandhoney.co/"},{name:"Tik Tok",url:"https://www.tiktok.com/@starsandhoney.co"},{name:"Wholesale",url:"https://starsandhoney.com/pages/wholesale"}]}],references:[{referenceNumber:"†",text:"These statements have not been evaluated by the Food and Drug Administration. This product is not intended to diagnose, treat, cure, or prevent any disease.",url:"https://starsandhoney.com/pages/terms"},{referenceNumber:"1",text:"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8824545/",url:"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8824545/"},{referenceNumber:"2",text:"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3003457/",url:"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3003457/"},{referenceNumber:"3",text:"https://pubmed.ncbi.nlm.nih.gov/31010031/",url:"https://pubmed.ncbi.nlm.nih.gov/31010031/"}]};return(0,r.jsxs)("footer",{className:`${l} ${(t||s)&&b}`,children:[(0,r.jsx)("div",{id:"footer"}),(0,r.jsxs)("div",{className:f,children:[(0,r.jsxs)("div",{className:p,children:[(0,r.jsx)("h4",{children:"Sign Up & Save"}),t&&(0,r.jsx)("p",{className:v,children:"Thank you for joining our mailing list!"}),s&&(0,r.jsx)("p",{className:v,children:"email - can't be blank"}),(0,r.jsxs)("form",{className:h,onSubmit:async t=>{if(t.preventDefault(),""===e)return void x(!0);if(x(!1),!e.includes("@"))return;i(!0),a("");const r={"Content-Type":"application/json",revision:"2024-07-15",Cookie:"datadome=NUHbZZYaTyx7Sf~D53SPuKf0SrEDOxnvj34v6nylGjdT2169KLYmhKBwgFfjPZoDzw3PNS0oxr3IzkXuEQHGbkqQb6OLnOPw0MHKKrXsnieUi46nP1VXg9sH4J6hBVFw"},s=JSON.stringify({data:{type:"subscription",attributes:{custom_source:"Footer",profile:{data:{type:"profile",attributes:{email:e,anonymous_id:"01GDDKASAP8TKDDA2GRZDSVP4H"},meta:{patch_properties:{append:{newKey:"New Value"},unappend:{newKey:"New Value"},unset:"skus"}}}}},relationships:{list:{data:{type:"list",id:"XgGmh3"}}}}});try{const e=await fetch("https://a.klaviyo.com/client/subscriptions/?company_id=UetCyK",{method:"POST",headers:r,body:s});e.ok?console.log("Subscription successful!"):console.error("Subscription failed:",e.statusText)}catch(e){console.error("Error during subscription:",e)}},method:"post",action:"/contact#footer-newsletter",id:"footer-newsletter",children:[(0,r.jsx)("input",{type:"email",placeholder:"Enter email address",value:e,onChange:e=>{const t=e.target;a(t.value)}}),(0,r.jsx)("button",{type:"submit","aria-label":"Next review",children:(0,r.jsx)(o.ArrowRight,{})})]})]}),(0,r.jsx)("div",{className:d,children:k.sections.map(((e,a)=>(0,r.jsxs)("div",{className:c,children:[(0,r.jsx)("h4",{className:u,children:e.title}),(0,r.jsx)("ul",{className:m,children:e.links.map(((a,t)=>{const i="COMMUNITY"===e.title&&("Instagram"===a.name||"Tik Tok"===a.name);return(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:a.url,...i?{target:"_blank",rel:"noopener noreferrer"}:{},children:a.name})},t)}))})]},a)))})]}),(0,r.jsx)("div",{className:y,children:k.references.map(((e,a)=>(0,r.jsxs)("a",{href:e.url,children:[(0,r.jsxs)("div",{className:g,children:[e.referenceNumber," ="," "]}),e.text]},a)))})]})}},339:(e,a,t)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ArrowRight=void 0;const i=t(0);a.ArrowRight=()=>(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"presentation",class:"icon icon--wide icon-arrow-right-long",viewBox:"0 0 21 10",children:(0,i.jsx)("path",{d:"M14.982 1.01l.696-.717 3.803 3.691.011-.01.338.348.359.348-.012.01.012.011-.354.343-.343.353-.011-.011-3.803 3.692-.696-.718 3.266-3.17H.5v-1h17.748z"})})},62:function(e,a,t){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.Carousel=void 0;const r=t(0);t(38),t(39);const s=t(2),n=i(t(40)),o=t(2),l=i(t(286));t(287),t(288);const c=t(68),{mainContainer:d,arrow:u,arrowPrev:m,arrowNext:p,hidden:h}=l.default;a.Carousel=({className:e="",children:a,carouselSettings:t,arrowStyles:i})=>{const l=(0,s.useRef)(null),[h,v]=(0,o.useState)(0),[y,f]=(0,o.useState)(!0);return(0,s.useEffect)((()=>{f(!1);const e=e=>{"ArrowLeft"===e.key?l.current?.slickPrev():"ArrowRight"===e.key&&l.current?.slickNext()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[]),(0,r.jsxs)("div",{className:`${d} mainContainerImageCarousel ${y&&" jsDisabled "}`,children:[" ",(0,r.jsx)("div",{className:`${u} ${m}`,onClick:e=>{e.preventDefault(),l.current?.slickPrev()},children:(0,r.jsx)(c.Arrow,{})})," ",(0,r.jsx)("div",{className:`${u} ${p}`,onClick:e=>{e.preventDefault(),l.current?.slickNext()},children:(0,r.jsx)(c.Arrow,{})}),(0,r.jsx)(n.default,{ref:l,arrows:!1,className:`${e}`,...t,afterChange:e=>{v(e)},children:a})]})}},68:(e,a,t)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Arrow=void 0;const i=t(0);t(1),a.Arrow=function({}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",width:"40",height:"40",children:(0,i.jsx)("path",{d:"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z"})})}},36:function(e,a,t){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.ProductDetails=a.mockProductDetailData=void 0;const r=t(0),s=(t(1),i(t(151))),n=t(22),o=t(68),l=t(2),c=t(37),d=t(349),u=t(24),m=t(152),p=t(113),h=t(316),v=t(316),y=t(2),f=t(67),g=t(154),b=t(70),x=t(10);"undefined"!=typeof window&&(window.Buffer=f.Buffer);const{mainContainer:k,mainContainerVarietySet:j,categoryLabel:S,title:N,titleTwelvePack:D,starsContainer:P,starsRating:I,ratingNumber:C,varietySetContainer:w,linkVarietySet:_,varietySetContainerHolidays:T,varietySetContainerForVarietySetPDP:O,description:$,freeFromContainer:A,freeFromContainerVarietySet:F,nutritionContainer:B,nutritionImageContainer:M,bundles:R,selected:E,price:L,priceVarietySet:V,productSubscription:H,productSubscriptionIsVariety:z,subscriptionInfo:K,showContainer:U,backgroundPopup:Y,labelShip:G,labelShipVarietySet:q,addButton:W,varieryHoverName:Z,moreFlavorsAlert:X,disabled:J,addButtonVarietySet:Q,nutritionArrowContainer:ee,badgesContainer:ae,buttonLoading:te,buttonLoader:ie,freeHatContainer:re,plusSymbol:se,priceContainer:ne,freeBadge:oe,brandHat:le,brandHatItalic:ce,hatFlex:de,limitedEdition:ue}=s.default,me=e=>98===e?98.01:e;a.mockProductDetailData={rating:{reviewsHref:"https://starsandhoney.com/pages/reviews"},varietyData:[{handle:"cacao-salt-caramel-peanut",isLimited:!1,key:0,productId:"7979585765609",sellingPlan:"3311468777",variantId20packOneTime:"47528498233577",variantId20packSubs:"47531488510185",variantId30packOneTime:"47531487789289",variantId30packSubs:"47531491033321",varietyHref:"/products/cacao-salt-caramel-peanut",varietyImage:(0,x.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/product-ser-cscp.webp?v=1679889773"),varietyName:"Cacao Salt Caramel Peanut"},{handle:"espresso-vanilla-cinnamon",isLimited:!1,key:1,productId:"7979587338473",sellingPlan:"3311599849",variantId20packOneTime:"47531592351977",variantId20packSubs:"47531592909033",variantId30packOneTime:"47531592679657",variantId30packSubs:"47531593892073",varietyHref:"/products/espresso-vanilla-cinnamon",varietyImage:(0,x.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/product-ser-evc.webp?v=1679889773"),varietyName:"Espresso Vanilla Cinnamon"},{handle:"dark-chocolate-coconut",isLimited:!1,key:2,productId:"7974127075561",sellingPlan:"3311567081",variantId20packOneTime:"47531585470697",variantId20packSubs:"47531586715881",variantId30packOneTime:"47531585732841",variantId30packSubs:"47531586945257",varietyHref:"/products/dark-chocolate-coconut",varietyImage:(0,x.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/product-ser-dcc.webp?v=1679889773"),varietyName:"Dark Chocolate Coconut"},{handle:"the-raspberry-donut",isLimited:!1,key:3,productId:"8175526805737",sellingPlan:"3397746921",variantId20packOneTime:"47531597332713",variantId20packSubs:"47531597791465",variantId30packOneTime:"47531597529321",variantId30packSubs:"47531597889769",varietyHref:"/products/the-raspberry-donut",varietyImage:(0,x.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/Screenshot_2023-08-28_at_0.08.57.png?v=1693170564"),varietyName:"The Raspberry Donut"},{handle:"birthday-cake-chocolate-chip",isLimited:!1,key:4,productId:"8175526543593",sellingPlan:"3397517545",variantId20packOneTime:"47531549065449",variantId20packSubs:"47531552669929",variantId30packOneTime:"47531551555817",variantId30packSubs:"47531554046185",varietyHref:"/products/birthday-cake-chocolate-chip",varietyImage:(0,x.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/Screenshot_2023-08-27_at_23.44.26.png?v=1693169094"),varietyName:"Birthday Cake Chocolate Chip"},{handle:"peanut-butter-blackberry",isLimited:!1,key:5,productId:"8175527264489",sellingPlan:"3397714153",variantId20packOneTime:"47531595399401",variantId20packSubs:"47531595792617",variantId30packOneTime:"47531595727081",variantId30packSubs:"47531595890921",varietyHref:"/products/peanut-butter-blackberry",varietyImage:(0,x.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/Screenshot_2023-08-28_at_0.06.22.png?v=1693170402"),varietyName:"Peanut Butter Blackberry"},{handle:"cookies-and-cream",isLimited:!1,key:6,productId:"8175526936809",sellingPlan:"3397681385",variantId20packOneTime:"47531582554345",variantId20packSubs:"47531583013097",variantId30packOneTime:"47531582750953",variantId30packSubs:"47531583209705",varietyHref:"/products/cookies-and-cream",varietyImage:(0,x.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/Screenshot_2023-08-27_at_23.41.23.png?v=1693168901"),varietyName:"Cookies and Cream"},{handle:"peppermint-mocha",isLimited:!0,key:7,productId:"8215147774185",sellingPlan:"3397681385",variantId20packOneTime:"47852450709737",variantId20packSubs:"47852450775273",variantId30packOneTime:"47852450742505",variantId30packSubs:"47852450808041",varietyHref:"/products/peppermint-mocha",varietyImage:(0,x.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/product-ser-cscp_a786edca-5e00-48b8-9b27-d6a428c27aa4.webp?v=1729177302"),varietyName:"Peppermint Mocha"},{handle:"gingerbread-cookie",isLimited:!0,key:8,productId:"8778176594153",sellingPlan:"3397681385",variantId20packOneTime:"47852164317417",variantId20packSubs:"47852164382953",variantId30packOneTime:"47852164350185",variantId30packSubs:"47852164415721",varietyHref:"/products/gingerbread-cookie",varietyImage:(0,x.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/gingerbread-thumb.webp?v=1729264305"),varietyName:"Gingerbread Cookie"}],varieryButton:{href:"/products/signature-flavors-variety-set",text:"Variety Set"},clubDiscount:.1,mockTagsForVarierySet:["⃠ GLUTEN","⃠ DAIRY","⃠ SOY","⃠ SUGAR ALCOHOLS"],bundlesIds:{variantId20packOneTime:{variantId:"47421908353257",productId:"8657724834025"},variantId30packOneTime:{variantId:"47460318839017",productId:"8671253332201"},variantId20packSubs:{variantId:"47421908353257",productId:"8657724834025"},variantId30packSubs:{variantId:"47460318839017",productId:"8671253332201"},variantId12PackOneTime:{variantId:"47723161420009",productId:"8747006623977"}},dynamicBundleCollectionId:"427067900137"},a.ProductDetails=function({productPage:e,useSharedState:t,peppermintMocha:i,gingerbreadCookie:s,twelvePack:f,bundleSelected:pe,setBundleSelected:he}){const[ve,ye]=(0,l.useState)(!1),[fe,ge]=(0,l.useState)("one-time"),[be,xe]=(0,l.useState)(!1),[ke,je]=(0,l.useState)(!1),[Se,Ne]=(0,l.useState)([]),[De,Pe]=(0,l.useState)(!1),[Ie,Ce]=(0,l.useState)(!1),[we,_e]=(0,l.useState)(!1),[Te,Oe]=(0,l.useState)(!1),[$e,Ae]=(0,l.useState)(e.title),Fe="signature-flavors-variety-set"===e.handle,Be=(({productPage:e,selectedSubscription:t,bundleSelected:i,twelvePack:r,isVarietySet:s})=>i===b.BundleSize["12 Pack"]&&s?Number(r?r.variants[0]?.price?.amount:76):"club"===t?Number(e.variants[i]?.price?.amount)*(1-a.mockProductDetailData.clubDiscount):Number(e.variants[i]?.price?.amount))({productPage:e,selectedSubscription:fe,bundleSelected:pe,twelvePack:f,isVarietySet:Fe}),Me=["club"===fe?Number(e.variants[Fe?0:1]?.price?.amount)*(1-a.mockProductDetailData.clubDiscount)/20:Number(e.variants[Fe?0:1]?.price?.amount)/20,"club"===fe?Number(e.variants[Fe?1:2]?.price?.amount)*(1-a.mockProductDetailData.clubDiscount)/30:Number(e.variants[Fe?1:2]?.price?.amount)/30],Re=(e,a)=>{if(Ke)return a?.preventDefault(),void ge("one-time");ge(e)},Ee=()=>{xe(!be)},Le=e.tags.includes("limited"),Ve=(0,g.limitedProductByVariety)({varietyData:a.mockProductDetailData.varietyData,peppermintMocha:i,gingerbreadCookie:s}),He=e=>"peppermint-mocha"===e||"gingerbread-cookie"===e,ze=(0,l.useMemo)((()=>He(e.handle)||(e=>{let t=!1;return e.forEach((e=>{He(a.mockProductDetailData.varietyData[e].handle)&&(t=!0)})),t})(Se)),[e.handle,Se]),Ke=(0,l.useMemo)((()=>pe===b.BundleSize["12 Pack"]&&Fe||ze),[pe,ze]);return(0,y.useEffect)((()=>{t.showCart&&Ce(!1)}),[t.showCart]),(0,y.useEffect)((()=>{Ke&&ge("one-time")}),[Ke]),(0,y.useEffect)((()=>{(0,v.initRecharge)({storeIdentifier:"starsandhoney.com",storefrontAccessToken:"strfnt_ed701156261903dde869c2dfe5e8d4b3f8065f5a7b17a056a93dd15700fa8a94",loginRetryFn:async()=>await(0,v.loginShopifyAppProxy)()}),(0,h.loginWithShopifyStorefront)("strfnt_ed701156261903dde869c2dfe5e8d4b3f8065f5a7b17a056a93dd15700fa8a94").then((e=>{console.log("response",e)})).catch((e=>{console.log(e)}))}),[]),(0,y.useEffect)((()=>{if(pe===b.BundleSize["12 Pack"]&&Fe)return ge("one-time"),void(f&&(_e(f?.variants[0].currentlyNotInStock),Oe(!f?.variants[0].availableForSale),Ae("Special Edition 12 Pack | All flavors + Varsity Hat")));_e(e.variants[pe].currentlyNotInStock),Oe(!e.variants[pe].availableForSale),Ae(e.title)}),[pe]),(0,r.jsxs)("div",{className:`${k} ${Fe&&j}`,children:[(0,r.jsx)("p",{className:S,children:"Collagen Protein Bar"}),(0,r.jsx)("h1",{className:`${N} title ${D}`,dangerouslySetInnerHTML:{__html:$e}}),!Fe&&!Le&&(0,r.jsxs)("div",{className:`starsContainer ${P}`,children:[(0,r.jsx)("a",{className:I,href:a.mockProductDetailData.rating.reviewsHref,children:(0,r.jsx)(n.RatingStars,{rating:e.reviews?.rating_average,numberOfStars:5,starDimension:"20px",starRatedColor:"#000000",starEmptyColor:"#00000055"})}),(0,r.jsxs)("p",{className:C,children:["(",(0,u.truncateOneDecimal)(e?.reviews?.rating_average),")"]})]}),(0,r.jsxs)("div",{className:`varietySetContainer ${w} ${Fe&&O} ${(i||s)&&T}`,children:[a.mockProductDetailData.varietyData.filter((e=>!e.isLimited)).map(((e,a)=>(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:e.varietyHref,children:[(0,r.jsx)("img",{src:e.varietyImage,alt:"variety"}),(0,r.jsx)("div",{className:Z,children:e.varietyName})]})},a))),(0,r.jsx)("button",{children:(0,r.jsx)("a",{className:`linkVarietySet ${_}`,href:a.mockProductDetailData.varieryButton.href,children:a.mockProductDetailData.varieryButton.text})})]}),i||s?(0,r.jsxs)("div",{className:`varietySetContainer ${w} ${Fe&&O} ${(i||s)&&T}`,children:[Ve.map(((e,a)=>(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:e.varietyHref,children:[(0,r.jsx)("img",{src:e.varietyImage,alt:"variety"}),(0,r.jsx)("div",{className:Z,children:e.varietyName})]})},a))),(0,r.jsx)("p",{class:`limitedEdition ${ue}`,children:"LIMITED EDITION"})]}):null,(0,r.jsx)("p",{className:$,style:{fontSize:Fe?"12px":"14px",lineHeight:Fe?"18px":"21px",letterSpacing:Fe?"normal":"-0.02em;",marginTop:i||s?"8px":"0px"},children:e.description}),(0,r.jsx)("div",{className:`freeFromContainer ${A} ${Fe&&F}`,children:Fe?a.mockProductDetailData.mockTagsForVarierySet.map(((e,a)=>(0,r.jsx)("span",{children:e.substring(1).toLowerCase().includes("sugar")?"STEVIA":e.substring(1)},a))):e.tagsBadge.map(((e,a)=>(0,r.jsx)("span",{children:e.substring(1).toLowerCase().includes("sugar")?"STEVIA":e.substring(1)},a)))}),!Fe&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:B,onClick:()=>{ye(!ve)},children:[(0,r.jsx)("span",{children:"NUTRITION & INGREDIENTS"}),(0,r.jsx)("span",{className:ee,children:(0,r.jsx)(o.Arrow,{})})]}),ve&&(0,r.jsxs)("div",{className:M,children:[(0,r.jsx)("img",{src:e?.nutritionalImage?.reference.image.originalSrc,alt:`nutritional info for ${$e} `,height:150,width:400}),(0,r.jsx)("p",{children:e?.nutritionalIngredients?.value}),(0,r.jsx)("div",{className:ae,children:e?.nutritionalBadges?.references.edges?.map(((e,a)=>(0,r.jsx)("img",{src:e.node.image.originalSrc,alt:e.node.image.altText,style:{height:"30px"}},a)))})]})]}),!Fe&&(0,r.jsxs)("div",{className:`bundles ${R}`,children:[(0,r.jsxs)("div",{onClick:()=>he(0),children:[(0,r.jsx)("button",{className:`${0===pe&&E}`,children:e.options[0].values[0]}),(0,r.jsx)("span",{})]}),(0,r.jsxs)("div",{onClick:()=>he(1),children:[(0,r.jsx)("button",{className:`${1===pe&&E}`,children:e.options[0].values[1]}),(0,r.jsxs)("span",{children:["$",Me[0].toFixed(2)," EA."]})]}),(0,r.jsxs)("div",{onClick:()=>he(2),children:[(0,r.jsx)("button",{className:`${2===pe&&E}`,children:e.options[0].values[2]}),(0,r.jsxs)("span",{children:["$",Me[1].toFixed(2)," EA."]})]})]}),Fe&&(0,r.jsx)(p.StepSelection,{productPage:e,bundleSelected:pe,setBundleSelected:he,bundlePriceEach:Me,varietySetIsComplete:ke,setVarietySetIsComplete:je,selectedFlavorSet:Se,setSelectedFlavorSet:Ne,peppermintMocha:i,gingerbreadCookie:s,twelvePack:f}),(0,r.jsxs)("div",{className:`priceContainer ${ne}`,children:[(0,r.jsxs)("div",{className:`price ${L} ${Fe&&V}`,children:["$",Be.toFixed(2)]}),pe===b.BundleSize["12 Pack"]&&Fe&&(0,r.jsx)("div",{className:`plusSymbol ${se}`,children:"+"}),pe===b.BundleSize["12 Pack"]&&Fe&&(0,r.jsxs)("div",{className:`hatFlex ${de}`,children:[(0,r.jsx)("div",{className:`free ${re}`,children:(0,r.jsx)("img",{src:(0,x.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/hat.webp?v=1729711429",150),alt:"brand hat",height:46,width:46})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:`freeBadge ${oe}`,children:"FREE"}),(0,r.jsx)("div",{className:`brandHat ${le}`,children:"Varsity Hat"}),(0,r.jsx)("div",{className:`brandHat ${ce}`,children:"+ embroidered logo"})]})]})]}),(0,r.jsxs)("div",{className:`${H} productSubscription ${Fe&&z}`,children:[(0,r.jsxs)("div",{onClick:e=>Re("one-time",e),children:[(0,r.jsx)("input",{type:"radio",id:"one-time",name:"subscription",checked:"one-time"===fe,readOnly:!0}),(0,r.jsx)("span",{htmlFor:"one-time",children:"ONE-TIME PURCHASE"})]}),(0,r.jsxs)("div",{onClick:e=>{Re("club",e)},disabled:Ke,children:[(0,r.jsx)("input",{type:"radio",id:"club",name:"subscription",checked:"club"===fe,readOnly:!0}),(0,r.jsx)("span",{htmlFor:"",children:"SUBSCRIPTION CLUB"}),(0,r.jsx)("label",{children:Ke?"Not available":`Save ${100*a.mockProductDetailData.clubDiscount}%`}),(0,r.jsxs)("button",{onClick:Ee,children:["Details",(0,r.jsxs)("div",{className:`subscriptionInfo ${K} ${be&&U}`,children:[(0,r.jsx)("div",{children:(0,r.jsx)(c.Cross,{})}),(0,r.jsxs)("ul",{children:[(0,r.jsxs)("li",{children:[(0,r.jsx)(d.ArrowRightPopup,{}),"Delivers every 1 month"]}),(0,r.jsxs)("li",{children:[(0,r.jsx)(d.ArrowRightPopup,{}),"Pause, change, or cancel anytime"]}),(0,r.jsxs)("li",{style:"margin-bottom:unset;",children:[(0,r.jsx)(d.ArrowRightPopup,{}),"Early access to new flavors"]})]})]})]})]}),(0,r.jsx)("div",{className:`backgroundPopup ${Y} ${be&&U}`,onClick:Ee})]}),(0,r.jsxs)("p",{className:`labelShip ${G} ${Fe&&q}`,children:[(0,r.jsx)("span",{children:"★"})," Always Free Shipping"]}),(0,r.jsxs)("div",{onClick:async()=>{if(Ie)return;if(Ce(!0),Fe&&!ke)return Pe(!0),Ce(!1),void setTimeout((()=>{Pe(!1)}),2e3);if(we||Te)return void Ce(!1);let i=e.variants[pe];pe===b.BundleSize["12 Pack"]&&f&&(i=f.variants[0]);const r={sku:i.sku||"",id:i.id,quantity:1,image:i.image.src,product_title:$e?.replace(/<[^>]*>?/gm,""),variant_title:i.title,price:100*Be,final_price:100*Be,url:`https://starsandhoney.com/products/${e.handle}`,variant_id:Number(i.id),vendor:e.vendor};"club"===fe&&(r.selling_plan=m.sellingPlans[e.handle]||null);let s=[r];if(Fe&&pe!==b.BundleSize["12 Pack"]){let e;e=0===pe&&"one-time"===fe?"variantId20packOneTime":1===pe&&"one-time"===fe?"variantId30packOneTime":0===pe&&"club"===fe?"variantId20packSubs":1===pe&&"club"===fe?"variantId30packSubs":"variantId20packOneTime";let n={externalVariantId:a.mockProductDetailData.bundlesIds[e].variantId,externalProductId:a.mockProductDetailData.bundlesIds[e].productId,selections:[{collectionId:a.mockProductDetailData.dynamicBundleCollectionId,externalProductId:a.mockProductDetailData.varietyData[Se[0]].productId,externalVariantId:a.mockProductDetailData.varietyData[Se[0]][e],sellingPlan:"club"===fe?Number(a.mockProductDetailData.varietyData[Se[0]].sellingPlan):void 0,quantity:1},{collectionId:a.mockProductDetailData.dynamicBundleCollectionId,externalProductId:a.mockProductDetailData.varietyData[Se[1]].productId,externalVariantId:a.mockProductDetailData.varietyData[Se[1]][e],sellingPlan:"club"===fe?Number(a.mockProductDetailData.varietyData[Se[1]].sellingPlan):void 0,quantity:1}]};1===pe&&n.selections.push({collectionId:a.mockProductDetailData.dynamicBundleCollectionId,externalProductId:a.mockProductDetailData.varietyData[Se[2]].productId,externalVariantId:a.mockProductDetailData.varietyData[Se[2]][e],sellingPlan:"club"===fe?Number(a.mockProductDetailData.varietyData[Se[2]].sellingPlan):void 0,quantity:1});try{s=(0,m.convertProductToPayload)({product:{...r,variant_title:1===pe?"30-PACK":"20-PACK",title:"Signature Flavors Variety Set"},additionalProperties:{"Flavor 1":a.mockProductDetailData.varietyData[Se[0]].varietyName,"Flavor 2":a.mockProductDetailData.varietyData[Se[1]].varietyName,...1===pe?{"Flavor 3":a.mockProductDetailData.varietyData[Se[2]].varietyName}:{}},quantity:1,variant:{...i,title:1===pe?"30-PACK":"20-PACK",price:{...i.price,amount:me(Be).toString()}}})?.items.map((e=>({...e,selling_plan_allocation:!!r?.selling_plan}))),t.addFakeBundle({items:s});const e=(0,h.getDynamicBundleItems)(n,"dynamic-bundle");e[0].properties["Flavor 1"]=a.mockProductDetailData.varietyData[Se[0]].varietyName;const o={_rc_bundle_flavor1:a.mockProductDetailData.varietyData[Se[0]].varietyName,_rc_bundle_flavor1_ID:a.mockProductDetailData.varietyData[Se[0]].productId,_rc_bundle_flavor2:a.mockProductDetailData.varietyData[Se[1]].varietyName,_rc_bundle_flavor2_ID:a.mockProductDetailData.varietyData[Se[1]].productId,_rc_bundle_price:Be.toString(),_rc_bundle_status:"club"===fe?"Subscription":"One-Time",_rc_bundle_size:0===pe?"20-PACK":"30-PACK"};1===pe&&(o._rc_bundle_flavor3=a.mockProductDetailData.varietyData[Se[2]].varietyName,o._rc_bundle_flavor3_ID=a.mockProductDetailData.varietyData[Se[2]].productId),e[0].properties={...e[0].properties,...o},e[1].properties["Flavor 2"]=a.mockProductDetailData.varietyData[Se[1]].varietyName,e[1].properties={...e[1].properties,...o},1===pe&&(e[2].properties["Flavor 3"]=a.mockProductDetailData.varietyData[Se[2]].varietyName,e[2].properties={...e[2].properties,...o}),s=e}catch(e){console.error("getBundleId",e)}}try{t.addToCart({items:s})}catch(e){console.error(e),Ce(!1)}},className:`addButton ${W} \n\t\t\t\t${Fe&&!ke&&J}\n\t\t\t\t${(we||Te)&&J}\n\t\t\t\t${Fe&&Q}\n\t\t\t\t${Ie&&te}\n\t\t\t\t`,children:[(0,r.jsxs)("button",{children:[Te?"Unavailable":we?"Out of Stock":"Add to bag",Ie&&(0,r.jsx)("span",{className:ie,children:(0,r.jsxs)("svg",{height:"18",width:"18",children:[(0,r.jsx)("circle",{r:"7",cx:"9",cy:"9"}),(0,r.jsx)("circle",{"stroke-dasharray":"87.96459430051421 87.96459430051421",r:"7",cx:"9",cy:"9"})]})})]}),De&&(0,r.jsx)("div",{className:X,children:"Please add more flavors"})]})]})}},113:function(e,a,t){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.StepSelection=void 0;const r=t(0),s=t(1),n=i(t(69)),o=t(2),l=t(153),c=t(10),d=t(154),u=t(114),m=t(70),p=t(36),{selected:h,bundles:v,step2Container:y,backButton:f,varietySetContainer:g,varietyItem:b,varietyName:x,title:k,selectedOptionsContainer:j,selectedImagesContainer:S,modifyButton:N,stepIndicatorTitleContainer:D,columnDisplay:P,imageContainer:I,yourVarietySet:C,chosenFlavors:w,varietySetLimitedEdition:_,limitedEditionContainer:T,selectedOptionsLimitedEdition:O,bundleSubheading:$,desktopOnly:A,mobileOnly:F}=n.default;(0,c.setConfig)([{folder:"stars-honey",template:"https://cdn.shopify.com/s/files/1/0664/6100/8105/"},{folder:"stars-honey",template:"https://starsandhoney.com/cdn/shop/files/"}]),a.StepSelection=({productPage:e,bundleSelected:a,setBundleSelected:t,bundlePriceEach:i,varietySetIsComplete:n,setVarietySetIsComplete:c,selectedFlavorSet:B,setSelectedFlavorSet:M,peppermintMocha:R,gingerbreadCookie:E,twelvePack:L})=>{const V=e=>{M((a=>[...a,e])),[...B,e].length===a+2&&c(!0)},H=(0,d.limitedProductByVariety)({varietyData:p.mockProductDetailData.varietyData,peppermintMocha:R,gingerbreadCookie:E});return(0,o.useEffect)((()=>{M([]);let e=!1;a===m.BundleSize["12 Pack"]&&(e=!0),c(e)}),[a]),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:k,children:[(0,r.jsx)("span",{children:"STEP 1"}),(0,r.jsx)("span",{children:"CHOOSE YOUR PACK SIZE"})]}),(0,r.jsxs)("div",{className:v,children:[L&&(0,r.jsxs)("div",{onClick:()=>t(2),children:[(0,r.jsx)("button",{className:`${a===m.BundleSize["12 Pack"]&&h}`,children:"12 PACK"}),(0,r.jsx)("span",{className:$,children:"+ Varsity Hat"}),(0,r.jsx)("span",{className:$,children:"ALL 7 FLAVORS"})]}),(0,r.jsxs)("div",{onClick:()=>t(0),children:[(0,r.jsx)("button",{className:`${a===m.BundleSize["20 Pack"]&&h}`,children:e.options[0].values[0]}),(0,r.jsxs)("span",{children:["$",i[0].toFixed(2)," EA."]})]}),(0,r.jsxs)("div",{onClick:()=>t(1),children:[(0,r.jsx)("button",{className:`${a===m.BundleSize["30 Pack"]&&h}`,children:e.options[0].values[1]}),(0,r.jsxs)("span",{children:["$",i[1].toFixed(2)," EA."]})]})]}),(0,r.jsx)("div",{style:{minHeight:"200px"},children:a===m.BundleSize["12 Pack"]?(0,r.jsx)(u.TwelvePackDetails,{mockDataStepper:p.mockProductDetailData}):(0,r.jsxs)("div",{className:`step2Container ${y}`,children:[n?(0,r.jsxs)("div",{className:k,children:[(0,r.jsx)("span",{children:"BUNDLE SUMMARY"}),(0,r.jsx)("span",{})]}):(0,r.jsxs)("div",{className:k,children:[(0,r.jsx)("span",{children:"STEP 2"}),(0,r.jsx)("span",{children:"CHOOSE YOUR FLAVORS"})]}),(0,r.jsxs)("div",{className:D,children:[(0,r.jsx)("div",{style:{color:0===B.length?"black":"#a0a0a0"},children:"FIRST FLAVOR"}),(0,r.jsx)(l.ArrowRight,{}),(0,r.jsx)("div",{style:{color:1===B.length?"black":"#a0a0a0"},children:"SECOND FLAVOR"}),(0,r.jsx)(l.ArrowRight,{}),a===m.BundleSize["30 Pack"]&&(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)("div",{style:{color:2===B.length?"black":"#a0a0a0"},children:"THIRD FLAVOR"}),(0,r.jsx)(l.ArrowRight,{})]}),(0,r.jsx)("div",{style:{color:n?"black":"#a0a0a0"},children:"SUMMARY"})]}),B.length>0&&(0,r.jsx)("button",{className:f,onClick:()=>{M((e=>e.slice(0,-1))),c(!1)},children:"Back"}),!n&&(0,r.jsx)("div",{className:`varietySetContainer ${g}`,style:{minHeight:"140px"},children:p.mockProductDetailData.varietyData.filter((e=>!e.isLimited)).map((e=>(0,r.jsxs)("div",{className:b,onClick:()=>V(e.key),children:[(0,r.jsx)("img",{src:e.varietyImage,alt:e.varietyName}),(0,r.jsx)("div",{className:x,children:e.varietyName})]},e.key)))}),!n&&H.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:_,children:"LIMITED EDITION"}),(0,r.jsx)("div",{className:`varietySetContainer ${g} limitedEditionContainer ${T}`,children:H.map((e=>(0,r.jsxs)("div",{className:b,onClick:()=>V(e.key),children:[(0,r.jsx)("img",{src:e.varietyImage,alt:e.varietyName}),(0,r.jsx)("div",{className:`varietyName ${x} ${A}`,children:e.varietyName}),(0,r.jsx)("div",{className:`varietyName ${x} ${F}`,children:e.varietyNameMobile||e.varietyName})]},e.key)))})]}),(0,r.jsxs)("div",{className:`${j} ${H.length>0?O:""}`,style:{alignItems:n?"flex-start":"center"},children:[(0,r.jsx)("h3",{children:n?(0,r.jsx)("div",{className:C,children:"Your Variery Set"}):B.length>0?(0,r.jsx)("div",{className:w,children:"CHOSEN FALVORS"}):""}),(0,r.jsx)("div",{className:`${S} ${n&&P}`,children:B.map(((e,a)=>(0,r.jsxs)("div",{className:b,children:[(0,r.jsx)("div",{className:I,"data-index":a+1,children:(0,r.jsx)("img",{src:p.mockProductDetailData.varietyData[e].varietyImage,alt:p.mockProductDetailData.varietyData[e].varietyName})}),n&&(0,r.jsx)("span",{children:p.mockProductDetailData.varietyData[e].varietyName})]},a)))}),n&&(0,r.jsx)("button",{className:N,onClick:()=>{M([]),c(!1)},children:"Modify"})]})]})})]})}},114:function(e,a,t){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.TwelvePackDetails=void 0;const r=t(0),s=(t(1),t(153)),n=i(t(69)),o={"Cacao Salt Caramel Peanut":2,"Espresso Vanilla Cinnamon":1,"Dark Chocolate Coconut":2,"The Raspberry Donut":2,"Birthday Cake Chocolate Chip":1,"Peanut Butter Blackberry":2,"Cookies and Cream":2};a.TwelvePackDetails=({mockDataStepper:e})=>{const a=e.varietyData.filter((e=>!e.isLimited));return(0,r.jsxs)("div",{className:n.default.step2Container,children:[(0,r.jsxs)("div",{className:n.default.title,children:[(0,r.jsx)("span",{children:"FLAVORS INCLUDED"}),(0,r.jsx)("span",{})]}),(0,r.jsxs)("div",{className:n.default.stepIndicatorTitleContainer,children:[(0,r.jsx)("div",{style:{color:"black"},children:"12 PACK | ALL FLAVORS"}),(0,r.jsx)(s.ArrowRight,{})]}),(0,r.jsx)("div",{className:n.default.varietySetContainer,children:a.map((e=>(0,r.jsxs)("div",{className:n.default.varietyItem,children:[(0,r.jsx)("img",{src:e.varietyImage,alt:e.varietyName}),(0,r.jsx)("div",{className:n.default.varietyName,style:{cursor:"default"},children:`${e.varietyName} X${o[e.varietyName]}`})]},e.key)))})]})}},153:(e,a,t)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ArrowRight=void 0;const i=t(0);a.ArrowRight=()=>(0,i.jsx)("svg",{width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M1 10.2002L5 5.6002L1 1.0002",stroke:"black","stroke-width":"2"})})},349:(e,a,t)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ArrowRightPopup=void 0;const i=t(0);t(1),a.ArrowRightPopup=function({}){return(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"presentation",class:"icon icon--wide icon-arrow-right-long",viewBox:"0 0 21 10",children:(0,i.jsx)("path",{d:"M14.982 1.01l.696-.717 3.803 3.691.011-.01.338.348.359.348-.012.01.012.011-.354.343-.343.353-.011-.011-3.803 3.692-.696-.718 3.266-3.17H.5v-1h17.748z"})})}},70:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BundleSize=void 0,a.BundleSize={"20 Pack":0,"30 Pack":1,"12 Pack":2}},154:(e,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.limitedProductByVariety=void 0,a.limitedProductByVariety=({varietyData:e,peppermintMocha:a,gingerbreadCookie:t})=>e.filter((e=>!(!a&&"Peppermint Mocha"===e.varietyName)&&!(!t&&"Gingerbread Cookie"===e.varietyName)&&e.isLimited))},22:function(e,a,t){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.RatingStars=void 0;const r=t(0),s=i(t(336));a.RatingStars=({rating:e=0,numberOfStars:a,starDimension:t,starRatedColor:i,starEmptyColor:n})=>(0,r.jsx)("div",{className:"w-full pb-2",children:(0,r.jsx)(s.default,{rating:Number(e||0),starRatedColor:i,starEmptyColor:n,numberOfStars:a,name:"rating",starDimension:t,starSpacing:"1px"})})},60:function(e,a,t){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.Reviews=void 0;const r=t(0),s=(t(1),i(t(137))),n=t(106),o=t(22),{mainContainer:l,title:c,starsContainer:d,carouselContainer:u,slideContainer:m,slideTitle:p,slideDescription:h,bottomSlideContainer:v,slideProduct:y,slideAuthor:f}=s.default;a.Reviews=function(){return(0,r.jsxs)("div",{className:l,children:[(0,r.jsx)("h2",{className:c,children:"Kind Words"}),(0,r.jsx)("div",{className:`${u} carouselContainer `,children:(0,r.jsx)(n.SlidesCarousel,{carouselSettings:{infinite:!0,dots:!0,speed:500,slidesToShow:1,slidesPerRow:1,slidesToScroll:1,centerMode:!1,centerPadding:"0",variableWidth:!0},children:[{title:"I’d eat this every day.",description:"Its been hard to find a bar that tastes good and is gluten free, dairy free, and has no whey protein. I know it is a lot to ask haha but this bar is it. There is a more natural feeling to this bar that tastes like I am eating something real.",product:"Cacao Salt Caramel Peanut",author:"Alex M.",ratingNumber:5},{title:"Wow, so good!",description:"This bar isn’t chalky like most protein bars and actually has a great aftertaste.",product:"Espresso Vanilla Cinnamon",author:"Madison V. ",ratingNumber:5},{title:"First protein bar I don’t get sick of.",description:"I usually can’t more than a couple of bites of a protein bar before I get bored and throw it away. This bar tastes elevated and made me want to actually keep eating it.",product:"Cacao Salt Caramel Peanut",author:"Jess B.",ratingNumber:5},{title:"Finally, a perfect bar.",description:"Finally, after so many bars & searching for years... these are the most PERFECT bars especially when you need to get that protein in without the sugar!",product:"Dark Chocolate Coconut",author:"Terra K.",ratingNumber:5},{title:"Best of its kind!",description:"I'm a personal trainer and nutritionist and these are some of the best bars I've found for flavor and nutrition.",product:"Cacao Salt Caramel Peanut",author:"Kara S.",ratingNumber:5},{title:"In truth, truly surprised.",description:"Truly surprised I dig this flavor as much as I do. Admittedly, it took 2. Something about it reminds me of my Favorite cookie as a kid: a Linzer tart.",product:"",author:"Marnie A.",ratingNumber:4},{title:"We ate the entire box in the first week.",description:"Between myself and my 17-year-old son (who is a picky eater) we ate all the bars in one week. Delicious!",product:"Dark Chocolate Coconut",author:"Angela H.",ratingNumber:5},{title:"Pretty good for a protein bar.",description:"I don’t really eat protein bars but was interested in the collagen. Perhaps a little more sugar would make it even better.",product:"Cacao Salt Caramel Peanut",author:"Morgan F.",ratingNumber:3}]?.map(((e,a)=>(0,r.jsxs)("div",{className:`${m} slideContainer`,children:[(0,r.jsx)("div",{className:d,children:(0,r.jsx)(o.RatingStars,{rating:e.ratingNumber,numberOfStars:5,starDimension:"20px",starRatedColor:"#000000",starEmptyColor:"white"})}),(0,r.jsx)("label",{className:p,children:e.title}),(0,r.jsx)("p",{className:h,children:e.description}),(0,r.jsxs)("div",{className:v,children:[(0,r.jsx)("p",{className:y,children:e.product}),(0,r.jsx)("p",{className:f,children:e.author})]})]},a)))})})]})}},106:function(e,a,t){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.SlidesCarousel=void 0;const r=t(0);t(38),t(39);const s=t(2),n=i(t(40)),o=t(2),l=i(t(146));t(147);const c=t(335),{mainContainer:d,arrow:u,arrowNext:m}=l.default;a.SlidesCarousel=({className:e="",children:a,carouselSettings:t})=>{const i=(0,s.useRef)(null),[,l]=(0,o.useState)(0);return(0,r.jsxs)("div",{className:`${d} mainContainerReviews `,children:[(0,r.jsx)("div",{className:`${u} ${m}`,onClick:e=>{e.preventDefault(),i.current?.slickNext()},children:(0,r.jsx)(c.Arrow,{})}),(0,r.jsx)(n.default,{ref:i,arrows:!1,className:`${e}`,...t,afterChange:e=>{l(e)},children:a})]})}},335:(e,a,t)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Arrow=void 0;const i=t(0);t(1),a.Arrow=function({}){return(0,i.jsxs)("svg",{viewBox:"0 0 100 100",children:[(0,i.jsx)("title",{children:"Next"}),(0,i.jsx)("path",{d:"M24,56L100,56L100,43L24,43L52,15L43,6L0,50L43,94L52,85L24,56Z",class:"arrow",transform:"translate(100, 100) rotate(180)"})]})}},37:(e,a,t)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Cross=void 0;const i=t(0);t(1),a.Cross=function({}){return(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"presentation",class:"icon icon-close",viewBox:"0 0 15 15",children:(0,i.jsxs)("g",{"fill-rule":"evenodd",children:[(0,i.jsx)("path",{d:"M2.06 1l12.02 12.021-1.06 1.061L1 2.062z"}),(0,i.jsx)("path",{d:"M1 13.02L13.022 1l1.061 1.06-12.02 12.02z"})]})})}}}]);