"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[5],{5: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 n=r(0),a=i(r(8)),o=r(1),s=r(219),{footer:l,footerSection:c,footerSections:u,footerTitle:d,footerLinks:m,footerSignup:f,signupForm:h,submittedText:p,footerReferences:g,footerTopHalf:b,referenceNumber:v,referenceNumberItem:P,referenceNumberEqual:C,noFixHeight:y}=a.default;t.Footer=({footer:e})=>{const[t,r]=(0,o.useState)(""),[i,a]=(0,o.useState)(!1),[N,x]=(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,n.jsxs)("footer",{className:`footer ${l} ${(i||N)&&y}`,children:[(0,n.jsx)("div",{id:"footer"}),(0,n.jsxs)("div",{className:b,children:[(0,n.jsxs)("div",{className:f,children:[(0,n.jsx)("h4",{children:"Sign Up & Save"}),i&&(0,n.jsx)("p",{className:p,children:"Thank you for joining our mailing list!"}),N&&(0,n.jsx)("p",{className:p,children:"email - can't be blank"}),(0,n.jsxs)("form",{className:h,onSubmit:async e=>{if(e.preventDefault(),""===t)return void x(!0);if(x(!1),!t.includes("@"))return;a(!0),r("");const i={"Content-Type":"application/json",revision:"2024-07-15",Cookie:"datadome=NUHbZZYaTyx7Sf~D53SPuKf0SrEDOxnvj34v6nylGjdT2169KLYmhKBwgFfjPZoDzw3PNS0oxr3IzkXuEQHGbkqQb6OLnOPw0MHKKrXsnieUi46nP1VXg9sH4J6hBVFw"},n=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:n});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,n.jsx)("input",{type:"email",placeholder:"Enter email address",value:t,onChange:e=>{const t=e.target;r(t.value)}}),(0,n.jsx)("button",{type:"submit","aria-label":"Next review",children:(0,n.jsx)(s.ArrowRight,{})})]})]}),(0,n.jsx)("div",{className:u,children:w.sections.map(((e,t)=>(0,n.jsxs)("div",{className:c,children:[(0,n.jsx)("h4",{className:d,children:e.title}),(0,n.jsx)("ul",{className:m,children:e.links.map(((t,r)=>{const i="COMMUNITY"===e.title&&("Instagram"===t.name||"Tik Tok"===t.name);return(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:t.url,...i?{target:"_blank",rel:"noopener noreferrer"}:{},children:t.name})},r)}))})]},t)))})]}),(0,n.jsxs)("div",{className:`${g} footerReferences`,children:[w.references.map(((e,t)=>(0,n.jsxs)("a",{href:e.url,onClick:e=>{0==t&&e.preventDefault()},children:[(0,n.jsxs)("div",{className:v,children:[(0,n.jsx)("div",{className:P,children:e.referenceNumber}),(0,n.jsx)("div",{className:C,children:"="})]}),e.text]},t))),(0,n.jsxs)("a",{href:"",onClick:e=>e.preventDefault(),children:[(0,n.jsxs)("div",{className:v,children:[(0,n.jsx)("div",{className:P,children:"★"}),(0,n.jsx)("div",{className:C,children:"="})]}),"Please see nutrition facts for % daily value calculations for each flavor."]})]})]})}},219:(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"})})},41: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 n=r(0),a=i(r(9));t.GoogleBadge=()=>(0,n.jsxs)("div",{className:`googleBadge ${a.default.googleBadge}`,children:[(0,n.jsxs)("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsxs)("g",{"clip-path":"url(#clip0_13704_8745)",children:[(0,n.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,n.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,n.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,n.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,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_13704_8745",children:(0,n.jsx)("rect",{width:"12",height:"12.2812",fill:"white",transform:"translate(0 0.359375)"})})})]}),(0,n.jsxs)("span",{className:`googleBadgeText ${a.default.googleBadgeText}`,children:[(0,n.jsx)("span",{className:a.default.googleBadgeTop,children:"Top"}),(0,n.jsx)("span",{className:a.default.googleBadgeQuality,children:"quality store"}),(0,n.jsx)("span",{className:a.default.googleBadgeExceptional,children:"exceptional"})]})]})},20:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checkSelectedSubscription=t.isDisabled=t.fixVariantTitle=t.toPackSizeNumber=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(21);function n(e,t){const r=(e??"").toLowerCase();return"v1"===t?!r.includes("macros-a"):!r.includes("macros-b")}function a(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 l(e){const t=e?.notifyMeList?.trim();return t||null}function c(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=n,t.filterCarouselImagesByChangeMacros=function(e,t){return e?.length?e.filter((e=>n(e.alt,t))):e??[]},t.DEFAULT_BADGE_REFERENCE_HANDLE="cacao-salt-caramel-peanut",t.hasNutritionalBadgeImages=a,t.resolveBadgeReferenceProduct=function(e,r=[]){if(a(e))return e;const i=r.find(a);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:a(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=l,t.shouldShowNotifyMe=function(e,t){return e&&null!=l(t)},t.getNotifyMeFormId=c,t.shouldShowNotifyMeForm=function(e,t){return e&&null!=c(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((n=>{if(i){const i=e.find((e=>e.handle===n.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.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:n,isUnavailable:a,calculatedPrice:o,handleIsInProductsExpandYourPalate:s,showNotifyMe:l=!1})=>!((!e||t||i)&&r&&(!n||l)&&0!==o&&s),t.checkSelectedSubscription=function({featureSubscriptionBox:e,featurePurchaseType:t,preselectSubscription:r,isVarietySetSubscription:n}){return n?i.PurchaseType.subscription:"v1"===e?t:"v2"===e||r?i.PurchaseType.subscription:i.PurchaseType.oneTime}},42:(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"})]})})}},24:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.roundIfClose=t.getCalculatedPrice=t.isSimilarPrice=t.getTwelvePackPrice=void 0;const i=r(21),n=r(20);t.getTwelvePackPrice=({twelvePack:e,regularPrice:t,selectedSubscription:r,subscriptionClubData:n,priceFromVariant:a,twelvePackVariantId:o,featureAutomaticDiscount:s,automaticSiteWideDiscount:l})=>{const c=e?.variants.find((e=>e?.id===o))??e?.variants[0];if(e){if(t)return Number(c?.compareAtPrice?.amount);if(r===i.PurchaseType.subscription){const e=a(c);return Number(e?.amount)*(1-(n?.discount_percentage||0)/100)}return s?Number(c?.price?.amount)*(1-l/100):Number(c?.price?.amount)}return Number(76)},t.isSimilarPrice=(e,t)=>Math.abs(e-t)<.05,t.getCalculatedPrice=({productPage:e,selectedSubscription:r,bundleSelected:a,twelvePack:o,isVarietySet:s,regularPrice:l,priceFromVariant:c,subscriptionClubData:u,twelvePackVariantId:d,featureTwelvePackDesign:m,showSubRegularPrice:f,featureSalePrice:h,featureFullPriceCompare:p,featureAutomaticDiscount:g,defaultProductData:b,automaticSiteWideDiscount:v})=>{if(s&&a===i.BundleSize["12 Pack"])return(0,t.getTwelvePackPrice)({twelvePack:o,regularPrice:l,selectedSubscription:r,subscriptionClubData:u,priceFromVariant:c,twelvePackVariantId:d,featureTwelvePackDesign:m,featureAutomaticDiscount:g,automaticSiteWideDiscount:v});const P=c(e.variants[a]),C=function({productPage:e,bundleSelected:t,defaultProductData:r,priceFromVariant:i}){const a=(0,n.toPackSizeNumber)(e.variants[t]?.title);if(!isNaN(a)){const e=Number(i(r?.variants[0])?.amount)??0;return Number(e*a)}}({productPage:e,bundleSelected:a,defaultProductData:b,priceFromVariant:c});if(r===i.PurchaseType.subscription){if(l){if(p&&void 0!==C)return C;if(e.variants[a]?.compareAtPrice?.amount&&h)return Number(e.variants[a]?.compareAtPrice?.amount);if(f)return Number(P?.amount)}return Number(P?.amount)*(1-(u?.discount_percentage||0)/100)}if(l){if((p||g)&&void 0!==C)return C;if(e.variants[a]?.compareAtPrice?.amount&&(h||g))return Number(e.variants[a]?.compareAtPrice?.amount)}return g?void 0===C||isNaN(C)?Number(P?.amount)*(1-v/100):C*(1-v/100):Number(P?.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}}}]);