"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[4],{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),s=i(r(9)),n=r(2),o=r(207),{footer:l,footerSection:c,footerSections:u,footerTitle:d,footerLinks:p,footerSignup:h,signupForm:m,submittedText:f,footerReferences:g,footerTopHalf:v,referenceNumber:b,referenceNumberItem:P,referenceNumberEqual:x,noFixHeight:C}=s.default;t.Footer=({footer:e})=>{const[t,r]=(0,n.useState)(""),[i,s]=(0,n.useState)(!1),[w,N]=(0,n.useState)(!1),j={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 ${l} ${(i||w)&&C}`,children:[(0,a.jsx)("div",{id:"footer"}),(0,a.jsxs)("div",{className:v,children:[(0,a.jsxs)("div",{className:h,children:[(0,a.jsx)("h4",{children:"Sign Up & Save"}),i&&(0,a.jsx)("p",{className:f,children:"Thank you for joining our mailing list!"}),w&&(0,a.jsx)("p",{className:f,children:"email - can't be blank"}),(0,a.jsxs)("form",{className:m,onSubmit:async e=>{if(e.preventDefault(),""===t)return void N(!0);if(N(!1),!t.includes("@"))return;s(!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)(o.ArrowRight,{})})]})]}),(0,a.jsx)("div",{className:u,children:j.sections.map(((e,t)=>(0,a.jsxs)("div",{className:c,children:[(0,a.jsx)("h4",{className:d,children:e.title}),(0,a.jsx)("ul",{className:p,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:`${g} footerReferences`,children:[j.references.map(((e,t)=>(0,a.jsxs)("a",{href:e.url,onClick:e=>{0==t&&e.preventDefault()},children:[(0,a.jsxs)("div",{className:b,children:[(0,a.jsx)("div",{className:P,children:e.referenceNumber}),(0,a.jsx)("div",{className:x,children:"="})]}),e.text]},t))),(0,a.jsxs)("a",{href:"",onClick:e=>e.preventDefault(),children:[(0,a.jsxs)("div",{className:b,children:[(0,a.jsx)("div",{className:P,children:"★"}),(0,a.jsx)("div",{className:x,children:"="})]}),"Please see nutrition facts for % daily value calculations for each flavor."]})]})]})}},207:(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"})})},55: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),s=i(r(10));t.GoogleBadge=()=>(0,a.jsxs)("div",{className:`googleBadge ${s.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 ${s.default.googleBadgeText}`,children:[(0,a.jsx)("span",{className:s.default.googleBadgeTop,children:"Top"}),(0,a.jsx)("span",{className:s.default.googleBadgeQuality,children:"quality store"}),(0,a.jsx)("span",{className:s.default.googleBadgeExceptional,children:"exceptional"})]})]})},23:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isDisabled=t.fixVariantTitle=t.toPackSize=t.modifyTitle=t.limitedProductByVariety=t.isProductsAvailableInCurrentCountry=void 0,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){if(!a.tags.includes("limited"))return!1;const i=e.find((e=>e.handle===a.handle));return(0,t.isProductsAvailableInCurrentCountry)({product:i,countryCode:r})}return a.tags.includes("limited")})),t.modifyTitle=e=>{switch(e){case"Cacao Salt Caramel Peanut":return"Cacao Salt
Caramel Peanut";case"Maple Blueberry Muffin":return"Maple
Blueberry Muffin";case"The Raspberry Donut":return"The Raspberry
Donut";case"Birthday Cake Chocolate Chip":return"Birthday Cake
Chocolate Chip";case"Cookies and Cream":return"Cookies
and Cream";default:return r(e)}};const r=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]}`:e};t.toPackSize=e=>e.replace(/(\d+)\s+pack/i,"$1-PACK"),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:s,calculatedPrice:n,handleIsInProductsExpandYourPalate:o})=>!((!e||t||i)&&r&&!a&&!s&&0!==n&&o)},40:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Cross=void 0;const i=r(0);r(1),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(21);t.getTwelvePackPrice=({twelvePack:e,regularPrice:t,selectedSubscription:r,subscriptionClubData:a,priceFromVariant:s,twelvePackVariantId:n,featureTwelvePackDesign:o})=>{const l=e?.variants.find((e=>e?.id===n))??e?.variants[0];if(e){if(t)return Number(l?.compareAtPrice?.amount);if(r===i.PurchaseType.subscription){const e=s(l);return Number(e?.amount)*(1-(a?.discount_percentage||0)/100)}return Number(l?.price?.amount)}return Number(76)},t.isSimilarPrice=(e,t)=>Math.abs(e-t)<.05,t.getCalculatedPrice=({productPage:e,selectedSubscription:r,bundleSelected:a,twelvePack:s,isVarietySet:n,regularPrice:o,priceFromVariant:l,subscriptionClubData:c,twelvePackVariantId:u,featureTwelvePackDesign:d,showSubRegularPrice:p,featureSalePrice:h})=>{if(n&&a===i.BundleSize["12 Pack"])return(0,t.getTwelvePackPrice)({twelvePack:s,regularPrice:o,selectedSubscription:r,subscriptionClubData:c,priceFromVariant:l,twelvePackVariantId:u,featureTwelvePackDesign:d});const m=l(e.variants[a]);if(r===i.PurchaseType.subscription){if(o){if(e.variants[a]?.compareAtPrice?.amount&&h)return Number(e.variants[a]?.compareAtPrice?.amount);if(p)return Number(m?.amount)}return Number(m?.amount)*(1-(c?.discount_percentage||0)/100)}return o&&e.variants[a]?.compareAtPrice?.amount&&h?Number(e.variants[a]?.compareAtPrice?.amount):Number(m?.amount)},t.roundIfClose=e=>{if(!e)return 0;const t=e%1;return t<=.02||t>=.98?Math.round(e):e}},8: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.getFastImage=t.getFastSrcSet=t.setConfig=void 0;const a=i(r(208)),s=r(209);let n=[...a.default];function o(e,t=NaN,r=""){const i=(0,s.getSizeFromShopify)(e);e=i.url;let a=NaN;isNaN(t)&&(t=i.width,a=i.height);const o=r?`,c_pad,ar_${r},g_north`:"";if(n.some((t=>{let{template:r,folder:i}=t;if(r=r.replace(/^https?:/,""),~(e=e.replace("downloads.ctfassets.net","images.ctfassets.net")).indexOf(r))return e=e.replace(/^https?:/,"").replace(r,`/fast-image/${i}/`),!0})),~e.indexOf("/fast-image")){const r=/\/fast-image(\/[^/]*(c_scale|c_limit|fl_progressive)[^/]*)*/,i=e.replace(r,""),s=function(e,t,r){return isNaN(e)&&isNaN(t)?"fl_progressive:steep":`c_limit${isNaN(e)?"":`,w_${e}`}${isNaN(t)?"":`,h_${t}`},fl_progressive:steep${r}`}(t,a,o);e=`/fast-image/${s}${i}`}return e}t.setConfig=function(e){n=e},t.getFastSrcSet=function(e){return e.split(",").map((e=>e.trim().split(/\s+/m).map(((e,t)=>0===t?o(e):e)).join(" "))).join(",")},t.getFastImage=o},209:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSizeFromShopify=void 0;const r="\\.[a-zA-Z][a-zA-Z0-9]{1,4}\\b",i="cdn.shopify.com/",a="\\?v=\\d+$",s=new RegExp(`(${i}.*)_(?\\d+)x(?\\d*)(${r}${a})`),n=new RegExp(`(${i}.*)_(?\\w+)(${r}${a})`),o=new RegExp(`(${i}.+\\.(png|jpg))\\.(pjpg|jpg)(${a})`),l=new RegExp(`(${i}.+).progressive(${r})`),c={pico:16,icon:32,thumb:50,small:100,compact:160,medium:240,large:480,grande:600};t.getSizeFromShopify=function(e){e=u(e);const t=(e=d(e)).match(s);if(t){const r=t.groups?.width??"",i=t.groups?.height??"",a=parseInt(r),n=parseInt(i);return{url:e=e.replace(s,"$1$4"),width:a,height:n}}const r=e.match(n)?.groups?.size,i=c[r??""];return i?{url:e=e.replace(n,"$1$3"),width:i,height:i}:{url:e,width:NaN,height:NaN}};const u=e=>e.replace(o,"$1$4"),d=e=>e.replace(l,"$1$2")}}]);