"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[3],{16:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeUrl=t.addToCartProperties=t.truncateOneDecimal=t.replaceToFastImage=void 0,t.replaceToFastImage=(e,t=!1,r=600)=>e,t.truncateOneDecimal=e=>{if(!e)return"0";const t=e.toString(),r=t.indexOf(".");if(-1===r)return String(e);if("0"===t.slice(r+1,r+2))return String(e.toFixed(1));const a=Math.ceil(10*e),s=Math.floor(10*e);return String(a-10*e<.5?(a/10).toFixed(1):(s/10).toFixed(1))},t.addToCartProperties=({payload:e})=>{const t=e.items[0];return t?(t.properties={...t.properties,_size:t.variant_title,_subscription:t.selling_plan?"subscription":"one-time"},e):e},t.sanitizeUrl=e=>e.includes("signature-tasting-gift-set-12-pack")?e.replace("signature-tasting-gift-set-12-pack","signature-flavors-variety-set"):e},37:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Footer=void 0;const s=r(0),i=a(r(74)),n=r(2),o=r(348),{footer:l,footerSection:c,footerSections:d,footerTitle:u,footerLinks:h,footerSignup:m,signupForm:p,submittedText:f,footerReferences:v,footerTopHalf:g,referenceNumber:b,noFixHeight:w}=i.default;t.Footer=({footer:e})=>{const[t,r]=(0,n.useState)(""),[a,i]=(0,n.useState)(!1),[x,j]=(0,n.useState)(!1),y={sections:[{title:"STARS + HONEY",links:e.footer.items.map((e=>({name:e.title,url:e.url})))},{title:"ORDERS & SUPPORT",links:e.ordersSupport.items.map((e=>({name:e.title,url:e.url})))},{title:"COMMUNITY",links:e.social.items.map((e=>({name:e.title,url:e.url})))}],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,s.jsxs)("footer",{className:`${l} ${(a||x)&&w}`,children:[(0,s.jsx)("div",{id:"footer"}),(0,s.jsxs)("div",{className:g,children:[(0,s.jsxs)("div",{className:m,children:[(0,s.jsx)("h4",{children:"Sign Up & Save"}),a&&(0,s.jsx)("p",{className:f,children:"Thank you for joining our mailing list!"}),x&&(0,s.jsx)("p",{className:f,children:"email - can't be blank"}),(0,s.jsxs)("form",{className:p,onSubmit:async e=>{if(e.preventDefault(),""===t)return void j(!0);if(j(!1),!t.includes("@"))return;i(!0),r("");const a={"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:t,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:a,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,s.jsx)("input",{type:"email",placeholder:"Enter email address",value:t,onChange:e=>{const t=e.target;r(t.value)}}),(0,s.jsx)("button",{type:"submit","aria-label":"Next review",children:(0,s.jsx)(o.ArrowRight,{})})]})]}),(0,s.jsx)("div",{className:d,children:y.sections.map(((e,t)=>(0,s.jsxs)("div",{className:c,children:[(0,s.jsx)("h4",{className:u,children:e.title}),(0,s.jsx)("ul",{className:h,children:e.links.map(((t,r)=>{const a="COMMUNITY"===e.title&&("Instagram"===t.name||"Tik Tok"===t.name);return(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:t.url,...a?{target:"_blank",rel:"noopener noreferrer"}:{},children:t.name})},r)}))})]},t)))})]}),(0,s.jsx)("div",{className:v,children:y.references.map(((e,t)=>(0,s.jsxs)("a",{href:e.url,children:[(0,s.jsxs)("div",{className:b,children:[e.referenceNumber," ="," "]}),e.text]},t)))})]})}},348:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowRight=void 0;const a=r(0);t.ArrowRight=()=>(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"presentation",class:"icon icon--wide icon-arrow-right-long",viewBox:"0 0 21 10",children:(0,a.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"})})},39:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Carousel=void 0;const s=r(0);r(40),r(41);const i=r(2),n=a(r(42)),o=r(2),l=a(r(112));r(113),r(114);const c=r(77),{mainContainer:d,arrow:u,arrowPrev:h,arrowNext:m,hidden:p}=l.default;t.Carousel=({className:e="",children:t,carouselSettings:r,arrowStyles:a})=>{const l=(0,i.useRef)(null),[p,f]=(0,o.useState)(0),[v,g]=(0,o.useState)(!0);return(0,i.useEffect)((()=>{g(!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,s.jsxs)("div",{className:`${d} mainContainerImageCarousel ${v&&" jsDisabled "} ${a}`,children:[" ",(0,s.jsx)("button",{className:`arrow arrowPrev ${u} ${h}`,onClick:e=>{e.preventDefault(),l.current?.slickPrev()},"aria-label":"Previous slide",children:(0,s.jsx)(c.Arrow,{})})," ",(0,s.jsx)("button",{className:`arrow arrowNext ${u} ${m}`,onClick:e=>{e.preventDefault(),l.current?.slickNext()},"aria-label":"Next slide",children:(0,s.jsx)(c.Arrow,{})}),(0,s.jsx)(n.default,{ref:l,arrows:!1,className:`${e}`,...r,afterChange:e=>{f(e)},children:t})]})}},77:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Arrow=void 0;const a=r(0);r(1),t.Arrow=function({}){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",width:"40",height:"40",children:(0,a.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"})})}},38:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RatingStars=void 0;const s=r(0),i=a(r(357));t.RatingStars=({rating:e=0,numberOfStars:t,starDimension:r,starRatedColor:a,starEmptyColor:n})=>(0,s.jsx)("div",{className:"starRatings",style:{height:"23px"},children:(0,s.jsx)(i.default,{rating:Number(e||0),starRatedColor:a,starEmptyColor:n,numberOfStars:t,name:"rating",starDimension:r,starSpacing:"1px"})})},36:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Reviews=void 0;const s=r(0),i=(r(1),a(r(70))),n=r(120),{mainContainer:o,title:l,starsContainer:c,carouselContainer:d,slideContainer:u,slideTitle:h,slideDescription:m,bottomSlideContainer:p,slideProduct:f,slideAuthor:v}=i.default;t.Reviews=function(){return(0,s.jsxs)("div",{className:`ReviewsMainContainer ${o}`,children:[(0,s.jsx)("h2",{className:`${l} title`,children:"Reviews Are in"}),(0,s.jsx)("div",{className:`${d} carouselContainer `,children:(0,s.jsx)(n.SlidesCarousel,{carouselSettings:{infinite:!0,dots:!0,speed:500,slidesToShow:1,slidesPerRow:1,slidesToScroll:1,centerMode:!1,centerPadding:"0",variableWidth:!0},arrowStyles:i.default.arrowStyles,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,t)=>(0,s.jsx)("div",{className:`${u} slideContainer`,children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("a",{className:`ReviewsStarsContainer ${c}`,href:"/pages/reviews",children:Array.from({length:e.ratingNumber}).map((e=>"★"))}),(0,s.jsx)("label",{className:`slideTitle ${h}`,children:e.title}),(0,s.jsx)("p",{className:`slideDescription ${m}`,children:e.description})]}),(0,s.jsxs)("div",{className:`bottomSlideContainer ${p}`,children:[(0,s.jsx)("p",{className:f,children:e.product}),(0,s.jsx)("p",{className:`slideAuthor ${v}`,children:e.author})]})]})},t)))})})]})}},120:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SlidesCarousel=void 0;const s=r(0);r(40),r(41);const i=r(2),n=a(r(42)),o=r(2),l=a(r(72));r(73);const c=r(347),{mainContainer:d,arrow:u,arrowNext:h}=l.default;t.SlidesCarousel=({className:e="",children:t,carouselSettings:r,arrowStyles:a})=>{const l=(0,i.useRef)(null),[,m]=(0,o.useState)(0);return(0,s.jsxs)("div",{className:`${d} mainContainerReviews `,children:[(0,s.jsx)("div",{className:`${u} ${h} ${a}`,onClick:e=>{e.preventDefault(),l.current?.slickNext()},children:(0,s.jsx)(c.Arrow,{})}),(0,s.jsx)(n.default,{ref:l,arrows:!1,className:`${e}`,...r,afterChange:e=>{m(e)},children:t})]})}},347:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Arrow=void 0;const a=r(0);r(1),t.Arrow=function({}){return(0,a.jsxs)("svg",{viewBox:"0 0 100 100",children:[(0,a.jsx)("title",{children:"Next"}),(0,a.jsx)("path",{d:"M24,56L100,56L100,43L24,43L52,15L43,6L0,50L43,94L52,85L24,56Z",class:"arrow",transform:"translate(100, 100) rotate(180)"})]})}},78:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Cross=void 0;const a=r(0);r(1),t.Cross=function({}){return(0,a.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"presentation",class:"icon icon-close",viewBox:"0 0 15 15",children:(0,a.jsxs)("g",{"fill-rule":"evenodd",children:[(0,a.jsx)("path",{d:"M2.06 1l12.02 12.021-1.06 1.061L1 2.062z"}),(0,a.jsx)("path",{d:"M1 13.02L13.022 1l1.061 1.06-12.02 12.02z"})]})})}}}]);