"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[3],{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.Footer=void 0;const s=r(0),a=i(r(9)),n=r(1),o=r(164),{footer:l,footerSection:c,footerSections:d,footerTitle:u,footerLinks:p,footerSignup:h,signupForm:f,submittedText:m,footerReferences:g,footerTopHalf:x,referenceNumber:v,referenceNumberItem:C,referenceNumberEqual:b,noFixHeight:j}=a.default;t.Footer=({footer:e})=>{const[t,r]=(0,n.useState)(""),[i,a]=(0,n.useState)(!1),[N,w]=(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:`footer ${l} ${(i||N)&&j}`,children:[(0,s.jsx)("div",{id:"footer"}),(0,s.jsxs)("div",{className:x,children:[(0,s.jsxs)("div",{className:h,children:[(0,s.jsx)("h4",{children:"Sign Up & Save"}),i&&(0,s.jsx)("p",{className:m,children:"Thank you for joining our mailing list!"}),N&&(0,s.jsx)("p",{className:m,children:"email - can't be blank"}),(0,s.jsxs)("form",{className:f,onSubmit:async e=>{if(e.preventDefault(),""===t)return void w(!0);if(w(!1),!t.includes("@"))return;a(!0),r("");const i={"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:i,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:p,children:e.links.map(((t,r)=>{const i="COMMUNITY"===e.title&&("Instagram"===t.name||"Tik Tok"===t.name);return(0,s.jsx)("li",{children:(0,s.jsx)("a",{href:t.url,...i?{target:"_blank",rel:"noopener noreferrer"}:{},children:t.name})},r)}))})]},t)))})]}),(0,s.jsxs)("div",{className:`${g} footerReferences`,children:[y.references.map(((e,t)=>(0,s.jsxs)("a",{href:e.url,onClick:e=>{0==t&&e.preventDefault()},children:[(0,s.jsxs)("div",{className:v,children:[(0,s.jsx)("div",{className:C,children:e.referenceNumber}),(0,s.jsx)("div",{className:b,children:"="})]}),e.text]},t))),(0,s.jsxs)("a",{href:"",onClick:e=>e.preventDefault(),children:[(0,s.jsxs)("div",{className:v,children:[(0,s.jsx)("div",{className:C,children:"★"}),(0,s.jsx)("div",{className:b,children:"="})]}),"Please see nutrition facts for % daily value calculations for each flavor."]})]})]})}},164:(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"})})},50: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 s=r(0),a=i(r(11));t.GoogleBadge=()=>(0,s.jsxs)("div",{className:`googleBadge ${a.default.googleBadge}`,children:[(0,s.jsxs)("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{"clip-path":"url(#clip0_13704_8745)",children:[(0,s.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,s.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,s.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,s.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,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_13704_8745",children:(0,s.jsx)("rect",{width:"12",height:"12.2812",fill:"white",transform:"translate(0 0.359375)"})})})]}),(0,s.jsxs)("span",{className:`googleBadgeText ${a.default.googleBadgeText}`,children:[(0,s.jsx)("span",{className:a.default.googleBadgeTop,children:"Top"}),(0,s.jsx)("span",{className:a.default.googleBadgeQuality,children:"quality store"}),(0,s.jsx)("span",{className:a.default.googleBadgeExceptional,children:"exceptional"})]})]})},17:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),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((s=>{if(i){if(!s.tags.includes("limited"))return!1;const i=e.find((e=>e.handle===s.handle));return(0,t.isProductsAvailableInCurrentCountry)({product:i,countryCode:r})}return s.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},36:(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"})]})})}},6: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 s=i(r(165)),a=r(166);let n=[...s.default];function o(e,t=NaN,r=""){const i=(0,a.getSizeFromShopify)(e);e=i.url;let s=NaN;isNaN(t)&&(t=i.width,s=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,""),a=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,s,o);e=`/fast-image/${a}${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},166:(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/",s="\\?v=\\d+$",a=new RegExp(`(${i}.*)_(?\\d+)x(?\\d*)(${r}${s})`),n=new RegExp(`(${i}.*)_(?\\w+)(${r}${s})`),o=new RegExp(`(${i}.+\\.(png|jpg))\\.(pjpg|jpg)(${s})`),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=d(e);const t=(e=u(e)).match(a);if(t){const r=t.groups?.width??"",i=t.groups?.height??"",s=parseInt(r),n=parseInt(i);return{url:e=e.replace(a,"$1$4"),width:s,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 d=e=>e.replace(o,"$1$4"),u=e=>e.replace(l,"$1$2")}}]);