"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[5],{7:function(e,t,r){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Footer=void 0;const a=r(0),n=i(r(5)),o=r(1),s=r(234),{footer:c,footerSection:l,footerSections:u,footerTitle:d,footerLinks:f,footerSignup:m,signupForm:h,submittedText:g,footerReferences:p,footerTopHalf:P,referenceNumber:S,referenceNumberItem:y,referenceNumberEqual:v,noFixHeight:b}=n.default;t.Footer=({footer:e})=>{const[t,r]=(0,o.useState)(""),[i,n]=(0,o.useState)(!1),[C,k]=(0,o.useState)(!1),w={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,a.jsxs)("footer",{className:`footer ${c} ${(i||C)&&b}`,children:[(0,a.jsx)("div",{id:"footer"}),(0,a.jsxs)("div",{className:P,children:[(0,a.jsxs)("div",{className:m,children:[(0,a.jsx)("h4",{children:"Sign Up & Save"}),i&&(0,a.jsx)("p",{className:g,children:"Thank you for joining our mailing list!"}),C&&(0,a.jsx)("p",{className:g,children:"email - can't be blank"}),(0,a.jsxs)("form",{className:h,onSubmit:async e=>{if(e.preventDefault(),""===t)return void k(!0);if(k(!1),!t.includes("@"))return;n(!0),r("");const i={"Content-Type":"application/json",revision:"2024-07-15",Cookie:"datadome=NUHbZZYaTyx7Sf~D53SPuKf0SrEDOxnvj34v6nylGjdT2169KLYmhKBwgFfjPZoDzw3PNS0oxr3IzkXuEQHGbkqQb6OLnOPw0MHKKrXsnieUi46nP1VXg9sH4J6hBVFw"},a=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:i,body:a});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,a.jsx)("input",{type:"email",placeholder:"Enter email address",value:t,onChange:e=>{const t=e.target;r(t.value)}}),(0,a.jsx)("button",{type:"submit","aria-label":"Next review",children:(0,a.jsx)(s.ArrowRight,{})})]})]}),(0,a.jsx)("div",{className:u,children:w.sections.map(((e,t)=>(0,a.jsxs)("div",{className:l,children:[(0,a.jsx)("h4",{className:d,children:e.title}),(0,a.jsx)("ul",{className:f,children:e.links.map(((t,r)=>{const i="COMMUNITY"===e.title&&("Instagram"===t.name||"Tik Tok"===t.name);return(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:t.url,...i?{target:"_blank",rel:"noopener noreferrer"}:{},children:t.name})},r)}))})]},t)))})]}),(0,a.jsxs)("div",{className:`${p} footerReferences`,children:[w.references.map(((e,t)=>(0,a.jsxs)("a",{href:e.url,onClick:e=>{0==t&&e.preventDefault()},children:[(0,a.jsxs)("div",{className:S,children:[(0,a.jsx)("div",{className:y,children:e.referenceNumber}),(0,a.jsx)("div",{className:v,children:"="})]}),e.text]},t))),(0,a.jsxs)("a",{href:"",onClick:e=>e.preventDefault(),children:[(0,a.jsxs)("div",{className:S,children:[(0,a.jsx)("div",{className:y,children:"★"}),(0,a.jsx)("div",{className:v,children:"="})]}),"Please see nutrition facts for % daily value calculations for each flavor."]})]})]})}},234:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowRight=void 0;const i=r(0);t.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"})})},46:function(e,t,r){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleBadge=void 0;const a=r(0),n=i(r(6));t.GoogleBadge=()=>(0,a.jsxs)("div",{className:`googleBadge ${n.default.googleBadge}`,children:[(0,a.jsxs)("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsxs)("g",{"clip-path":"url(#clip0_13704_8745)",children:[(0,a.jsx)("path",{d:"M11.9939 6.61486C11.9939 6.11171 11.9531 5.74454 11.8647 5.36377H6.11914V7.63477H9.49166C9.42369 8.19914 9.05652 9.04908 8.24056 9.62021L8.22913 9.69624L10.0458 11.1036L10.1716 11.1161C11.3275 10.0486 11.9939 8.47791 11.9939 6.61486Z",fill:"#4285F4"}),(0,a.jsx)("path",{d:"M6.11914 12.5982C7.77139 12.5982 9.15847 12.0542 10.1716 11.1159L8.24056 9.61998C7.72381 9.98036 7.03025 10.2319 6.11914 10.2319C4.50087 10.2319 3.12739 9.16445 2.63778 7.68896L2.56602 7.69506L0.677047 9.15695L0.652344 9.22562C1.65866 11.2247 3.7257 12.5982 6.11914 12.5982Z",fill:"#34A853"}),(0,a.jsx)("path",{d:"M2.63817 7.68924C2.50898 7.30848 2.43422 6.90048 2.43422 6.47893C2.43422 6.05734 2.50898 5.64938 2.63138 5.26862L2.62795 5.18752L0.715313 3.70215L0.652734 3.73191C0.237984 4.56146 0 5.49301 0 6.47893C0 7.46485 0.237984 8.39635 0.652734 9.2259L2.63817 7.68924Z",fill:"#FBBC05"}),(0,a.jsx)("path",{d:"M6.11914 2.72558C7.26823 2.72558 8.04336 3.22194 8.48534 3.63673L10.2124 1.95045C9.15172 0.964531 7.77139 0.359375 6.11914 0.359375C3.7257 0.359375 1.65866 1.73286 0.652344 3.73189L2.63098 5.26859C3.12739 3.79311 4.50087 2.72558 6.11914 2.72558Z",fill:"#EB4335"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_13704_8745",children:(0,a.jsx)("rect",{width:"12",height:"12.2812",fill:"white",transform:"translate(0 0.359375)"})})})]}),(0,a.jsxs)("span",{className:`googleBadgeText ${n.default.googleBadgeText}`,children:[(0,a.jsx)("span",{className:n.default.googleBadgeTop,children:"Top"}),(0,a.jsx)("span",{className:n.default.googleBadgeQuality,children:"quality store"}),(0,a.jsx)("span",{className:n.default.googleBadgeExceptional,children:"exceptional"})]})]})},21:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checkSelectedSubscription=t.isDisabled=t.fixVariantTitle=t.toPackSizeNumber=t.getVarietySetCTAHref=t.toPackSize=t.modifyTitle=t.limitedProductByVariety=t.isProductsAvailableInCurrentCountry=t.isCartLineVariantOutOfStock=t.openKlaviyoForm=t.shouldShowNotifyMeForm=t.getNotifyMeFormId=t.shouldShowNotifyMe=t.getNotifyMeListId=t.isVariantOutOfStock=t.mergeProductBadgeFields=t.resolveBadgeReferenceProduct=t.hasNutritionalBadgeImages=t.DEFAULT_BADGE_REFERENCE_HANDLE=t.filterCarouselImagesByChangeMacros=t.imageAltPassesMacrosFilter=t.getActiveNutritionalImage=void 0;const i=r(19);function a(e,t){const r=(e??"").toLowerCase();return"v1"===t?!r.includes("macros-a"):!r.includes("macros-b")}function n(e){return Boolean(e?.nutritionalBadges?.references?.edges?.length)}function o(e){const t=e?.nutritionalImage?.reference?.image?.originalSrc;return Boolean(t&&String(t).trim().length>0)}function s(e){return!(!e||e.quantityAvailable&&e.quantityAvailable>0)}function c(e){const t=e?.notifyMeList?.trim();return t||null}function l(e){const t=e?.notifyMeForm?.trim();return t||null}t.getActiveNutritionalImage=function(e,t){if(!e)return;const r=e.nutritionalImageB?.reference?.image?.originalSrc,i=Boolean(r&&String(r).trim().length>0);return"v1"===t&&i?e.nutritionalImageB??{}:e.nutritionalImage??{}},t.imageAltPassesMacrosFilter=a,t.filterCarouselImagesByChangeMacros=function(e,t){return e?.length?e.filter((e=>a(e.alt,t))):e??[]},t.DEFAULT_BADGE_REFERENCE_HANDLE="cacao-salt-caramel-peanut",t.hasNutritionalBadgeImages=n,t.resolveBadgeReferenceProduct=function(e,r=[]){if(n(e))return e;const i=r.find(n);if(i)return i;return r.find((e=>e.handle===t.DEFAULT_BADGE_REFERENCE_HANDLE))||e},t.mergeProductBadgeFields=function(e,t){return t.handle===e.handle?e:{...e,tagsBadge:e.tagsBadge?.length>0?e.tagsBadge:t.tagsBadge,nutritionalBadges:n(e)?e.nutritionalBadges:t.nutritionalBadges,nutritionalImage:o(e)?e.nutritionalImage:t.nutritionalImage,nutritionalImageB:o(e)?e.nutritionalImageB:t.nutritionalImageB,nutritionalIngredients:e.nutritionalIngredients??t.nutritionalIngredients,allergensPanelText:e.allergensPanelText??t.allergensPanelText}},t.isVariantOutOfStock=s,t.getNotifyMeListId=c,t.shouldShowNotifyMe=function(e,t){return e&&null!=c(t)},t.getNotifyMeFormId=l,t.shouldShowNotifyMeForm=function(e,t){return e&&null!=l(t)},t.openKlaviyoForm=function(e){"undefined"!=typeof window&&e&&(window._klOnsite=window._klOnsite||[],"function"!=typeof window._klOnsite.openForm?window._klOnsite.push(["openForm",e]):window._klOnsite.openForm([e]))},t.isCartLineVariantOutOfStock=function(e,t){return!(!e?.variants?.length||null==t)&&s(e.variants.find((e=>String(e.id)===String(t))))},t.isProductsAvailableInCurrentCountry=({product:e,countryCode:t})=>{if(!e||!e.variants||0===e.variants.length)return!1;const r=e?.variants[0],i=r?.variantProductsPricing;return i?.some((e=>e.country===t))},t.limitedProductByVariety=({productsExpandYourPalate:e,countryCode:r,featureInternationalization:i})=>e.filter((a=>{if(i){const i=e.find((e=>e.handle===a.handle));return(0,t.isProductsAvailableInCurrentCountry)({product:i,countryCode:r})}return!0})),t.modifyTitle=(e,t)=>{const r="string"==typeof t?t.trim():"";let i;if(r.length>0)i=r;else switch(e){case"Cacao Salt Caramel Peanut":i="Cacao Salt
Caramel Peanut";break;case"Maple Blueberry Muffin":i="Maple
Blueberry Muffin";break;case"The Raspberry Donut":i="The Raspberry
Donut";break;case"Birthday Cake Chocolate Chip":i="Birthday Cake
Chocolate Chip";break;case"Cookies and Cream":i="Cookies
and Cream";break;default:i=u(e)}return i.replace(/\r\n|\r|\n/g,"
")};const u=e=>{const t=e.trim().split(/\s+/);return 2===t.length?`${t[0]}
${t[1]}`:3===t.length&&"and"===t[1]?`${t[0]}
${t[1]} ${t[2]}`:4===t.length?`${t[0]} ${t[1]}
${t[2]} ${t[3]}`:e};t.toPackSize=e=>e.replace(/(\d+)\s+pack/i,"$1-PACK"),t.getVarietySetCTAHref=function(e="default",t="/products/signature-flavors-variety-set"){return`${t}?variant=${"v1"===e?i.BundleSize["12 Pack"]:"v3"===e?i.BundleSize["30 Pack"]:i.BundleSize["20 Pack"]}`},t.toPackSizeNumber=e=>{const t=e?.match(/(\d+)[\s-]pack/i);return t?Number(t[1])/10:NaN},t.fixVariantTitle=e=>e.includes("12-PACK-49")?e.replace("12-PACK-49","12-PACK"):e.includes("12-PACK-55")?e.replace("12-PACK-55","12-PACK"):e.includes("12-PACK-46")?e.replace("12-PACK-46","12-PACK"):e.endsWith("-----")?e.slice(0,-5):e.endsWith("----")?e.slice(0,-4):e.endsWith("---")?e.slice(0,-3):e.endsWith("--")?e.slice(0,-2):e.endsWith("-")?e.slice(0,-1):e,t.isDisabled=({isVarietySet:e,varietySetIsComplete:t,isProductAvailableInCurrentCountry:r,isTwelvePackSelected:i,isOOS:a,isUnavailable:n,calculatedPrice:o,handleIsInProductsExpandYourPalate:s,showNotifyMe:c=!1})=>!((!e||t||i)&&r&&(!a||c)&&0!==o&&s),t.checkSelectedSubscription=function({featureSubscriptionBox:e,featurePurchaseType:t,preselectSubscription:r,isVarietySetSubscription:a}){return a?i.PurchaseType.subscription:"v1"===e?t:"v2"===e||r?i.PurchaseType.subscription:i.PurchaseType.oneTime}},58:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.logVarietySetCheckoutStartOutcomes=t.logVarietySetAddToBagOutcome=t.getVarietySetPackSizesInCart=t.varietySetCheckoutStartOutcome=t.varietySetAddToBagOutcome=t.varietySetPackSizeFromBundleSelected=t.VarietySetPackSize=void 0;const i=r(19);t.VarietySetPackSize={Twelve:12,Twenty:20,Thirty:30};const a=[t.VarietySetPackSize.Twelve,t.VarietySetPackSize.Twenty,t.VarietySetPackSize.Thirty],n={Twenty:"20-PACK",Thirty:"30-PACK"},o=["10-PACK---","10-PACK-----"],s=["10-PACK--","10-PACK----","10-PACK"],c=/(^|[^0-9])12-PACK\b/i,l=`/products/${i.twelvePackHandle}`,u={[i.BundleSize["12 Pack"]]:t.VarietySetPackSize.Twelve,[i.BundleSize["20 Pack"]]:t.VarietySetPackSize.Twenty,[i.BundleSize["30 Pack"]]:t.VarietySetPackSize.Thirty};function d(e){return u[e]??null}function f(e){return`VarietySetAddToBag${e}Pack`}function m(e){return`VarietySetCheckoutStart${e}Pack`}function h(e){const t=e.handle||"",r=e.url||"",a=e.variant_title||"";return t===i.twelvePackHandle||t.includes(i.twelvePackHandle)||r.includes(l)||c.test(a)}function g(e){const r=String(e.properties?._rc_bundle_size||"").toUpperCase();if(r===n.Twenty)return t.VarietySetPackSize.Twenty;if(r===n.Thirty)return t.VarietySetPackSize.Thirty;const i=e.variant_title||"";return o.includes(i)?t.VarietySetPackSize.Thirty:s.includes(i)?t.VarietySetPackSize.Twenty:null}function p(e){const r=new Set,i=new Set;for(const a of e||[]){if(!a||!(a.quantity&&a.quantity>0))continue;if(h(a)){r.add(t.VarietySetPackSize.Twelve);continue}const e=a.properties?._dynamicBoxIndex;if(null==e||""===e)continue;const n=String(e);if(i.has(n))continue;i.add(n);const o=g(a);o&&r.add(o)}return a.filter((e=>r.has(e)))}t.varietySetPackSizeFromBundleSelected=d,t.varietySetAddToBagOutcome=f,t.varietySetCheckoutStartOutcome=m,t.getVarietySetPackSizesInCart=p,t.logVarietySetAddToBagOutcome=function(e,t){const r=d(e);r&&(console.log("logVarietySetAddToBagOutcome",f(r)),t(f(r)))},t.logVarietySetCheckoutStartOutcomes=function(e,t){for(const r of p(e))console.log("logVarietySetCheckoutStartOutcomes",m(r)),t(m(r))}},39:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Cross=void 0;const i=r(0);r(2),t.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"})]})})}},28:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.roundIfClose=t.getCalculatedPrice=t.isSimilarPrice=t.getTwelvePackPrice=void 0;const i=r(19),a=r(21);t.getTwelvePackPrice=({twelvePack:e,regularPrice:t,selectedSubscription:r,subscriptionClubData:a,priceFromVariant:n,twelvePackVariantId:o,featureAutomaticDiscount:s,automaticSiteWideDiscount:c})=>{const l=e?.variants.find((e=>e?.id===o))??e?.variants[0];if(e){if(t)return Number(l?.compareAtPrice?.amount);if(r===i.PurchaseType.subscription){const e=n(l);return Number(e?.amount)*(1-(a?.discount_percentage||0)/100)}return s?Number(l?.price?.amount)*(1-c/100):Number(l?.price?.amount)}return Number(76)},t.isSimilarPrice=(e,t)=>Math.abs(e-t)<.05,t.getCalculatedPrice=({productPage:e,selectedSubscription:r,bundleSelected:n,twelvePack:o,isVarietySet:s,regularPrice:c,priceFromVariant:l,subscriptionClubData:u,twelvePackVariantId:d,featureTwelvePackDesign:f,showSubRegularPrice:m,featureSalePrice:h,featureFullPriceCompare:g,featureAutomaticDiscount:p,defaultProductData:P,automaticSiteWideDiscount:S})=>{if(s&&n===i.BundleSize["12 Pack"])return(0,t.getTwelvePackPrice)({twelvePack:o,regularPrice:c,selectedSubscription:r,subscriptionClubData:u,priceFromVariant:l,twelvePackVariantId:d,featureTwelvePackDesign:f,featureAutomaticDiscount:p,automaticSiteWideDiscount:S});const y=l(e.variants[n]),v=function({productPage:e,bundleSelected:t,defaultProductData:r,priceFromVariant:i}){const n=(0,a.toPackSizeNumber)(e.variants[t]?.title);if(!isNaN(n)){const e=Number(i(r?.variants[0])?.amount)??0;return Number(e*n)}}({productPage:e,bundleSelected:n,defaultProductData:P,priceFromVariant:l});if(r===i.PurchaseType.subscription){if(c){if(g&&void 0!==v)return v;if(e.variants[n]?.compareAtPrice?.amount&&h)return Number(e.variants[n]?.compareAtPrice?.amount);if(m)return Number(y?.amount)}return Number(y?.amount)*(1-(u?.discount_percentage||0)/100)}if(c){if((g||p)&&void 0!==v)return v;if(e.variants[n]?.compareAtPrice?.amount&&(h||p))return Number(e.variants[n]?.compareAtPrice?.amount)}return p?void 0===v||isNaN(v)?Number(y?.amount)*(1-S/100):v*(1-S/100):Number(y?.amount)},t.roundIfClose=e=>{if(!e)return 0;const t=Math.floor(e),r=e-t;if(r<=.02||r>=.98)return Math.round(e);const i=Math.round(10*r)/10;if(Math.abs(r-i)<=.02){const e=t+i;return Math.round(100*e)/100}return e}}}]);