"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[3],{17:function(e,t,s){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Footer=void 0;const i=s(0),n=r(s(30)),o=s(1),a=s(363),{footer:l,footerSection:c,footerSections:u,footerTitle:p,footerLinks:d,footerSignup:h,signupForm:f,submittedText:m,footerReferences:g,footerTopHalf:v,referenceNumber:x,noFixHeight:b}=n.default;t.Footer=({footer:e})=>{const[t,s]=(0,o.useState)(""),[r,n]=(0,o.useState)(!1),[w,N]=(0,o.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,i.jsxs)("footer",{className:`${l} ${(r||w)&&b}`,children:[(0,i.jsx)("div",{id:"footer"}),(0,i.jsxs)("div",{className:v,children:[(0,i.jsxs)("div",{className:h,children:[(0,i.jsx)("h4",{children:"Sign Up & Save"}),r&&(0,i.jsx)("p",{className:m,children:"Thank you for joining our mailing list!"}),w&&(0,i.jsx)("p",{className:m,children:"email - can't be blank"}),(0,i.jsxs)("form",{className:f,onSubmit:async e=>{if(e.preventDefault(),""===t)return void N(!0);if(N(!1),!t.includes("@"))return;n(!0),s("");const r={"Content-Type":"application/json",revision:"2024-07-15",Cookie:"datadome=NUHbZZYaTyx7Sf~D53SPuKf0SrEDOxnvj34v6nylGjdT2169KLYmhKBwgFfjPZoDzw3PNS0oxr3IzkXuEQHGbkqQb6OLnOPw0MHKKrXsnieUi46nP1VXg9sH4J6hBVFw"},i=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:r,body:i});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,i.jsx)("input",{type:"email",placeholder:"Enter email address",value:t,onChange:e=>{const t=e.target;s(t.value)}}),(0,i.jsx)("button",{type:"submit","aria-label":"Next review",children:(0,i.jsx)(a.ArrowRight,{})})]})]}),(0,i.jsx)("div",{className:u,children:j.sections.map(((e,t)=>(0,i.jsxs)("div",{className:c,children:[(0,i.jsx)("h4",{className:p,children:e.title}),(0,i.jsx)("ul",{className:d,children:e.links.map(((t,s)=>{const r="COMMUNITY"===e.title&&("Instagram"===t.name||"Tik Tok"===t.name);return(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:t.url,...r?{target:"_blank",rel:"noopener noreferrer"}:{},children:t.name})},s)}))})]},t)))})]}),(0,i.jsxs)("div",{className:`${g} footerReferences`,children:[j.references.map(((e,t)=>(0,i.jsxs)("a",{href:e.url,onClick:e=>{0==t&&e.preventDefault()},children:[(0,i.jsxs)("div",{className:x,children:[e.referenceNumber," ="," "]}),e.text]},t))),(0,i.jsxs)("a",{href:"",onClick:e=>e.preventDefault(),children:[(0,i.jsx)("div",{className:x,style:{marginLeft:"-1px",letterSpacing:"-1.5px"},children:"★ ="}),"Please see nutrition facts for % daily value calculations for each flavor."]})]})]})}},363:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowRight=void 0;const r=s(0);t.ArrowRight=()=>(0,r.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"presentation",class:"icon icon--wide icon-arrow-right-long",viewBox:"0 0 21 10",children:(0,r.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"})})},89:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Cross=void 0;const r=s(0);s(2),t.Cross=function({}){return(0,r.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"presentation",class:"icon icon-close",viewBox:"0 0 15 15",children:(0,r.jsxs)("g",{"fill-rule":"evenodd",children:[(0,r.jsx)("path",{d:"M2.06 1l12.02 12.021-1.06 1.061L1 2.062z"}),(0,r.jsx)("path",{d:"M1 13.02L13.022 1l1.061 1.06-12.02 12.02z"})]})})}},6:function(e,t,s){var r=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 i=r(s(367)),n=s(368);let o=[...i.default];function a(e,t=NaN,s=""){const r=(0,n.getSizeFromShopify)(e);e=r.url;let i=NaN;isNaN(t)&&(t=r.width,i=r.height);const a=s?`,c_pad,ar_${s},g_north`:"";if(o.some((t=>{let{template:s,folder:r}=t;if(s=s.replace(/^https?:/,""),~(e=e.replace("downloads.ctfassets.net","images.ctfassets.net")).indexOf(s))return e=e.replace(/^https?:/,"").replace(s,`/fast-image/${r}/`),!0})),~e.indexOf("/fast-image")){const s=/\/fast-image(\/[^/]*(c_scale|c_limit|fl_progressive)[^/]*)*/,r=e.replace(s,""),n=function(e,t,s){return isNaN(e)&&isNaN(t)?"fl_progressive:steep":`c_limit${isNaN(e)?"":`,w_${e}`}${isNaN(t)?"":`,h_${t}`},fl_progressive:steep${s}`}(t,i,a);e=`/fast-image/${n}${r}`}return e}t.setConfig=function(e){o=e},t.getFastSrcSet=function(e){return e.split(",").map((e=>e.trim().split(/\s+/m).map(((e,t)=>0===t?a(e):e)).join(" "))).join(",")},t.getFastImage=a},368:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSizeFromShopify=void 0;const s="\\.[a-zA-Z][a-zA-Z0-9]{1,4}\\b",r="cdn.shopify.com/",i="\\?v=\\d+$",n=new RegExp(`(${r}.*)_(?\\d+)x(?\\d*)(${s}${i})`),o=new RegExp(`(${r}.*)_(?\\w+)(${s}${i})`),a=new RegExp(`(${r}.+\\.(png|jpg))\\.(pjpg|jpg)(${i})`),l=new RegExp(`(${r}.+).progressive(${s})`),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=p(e)).match(n);if(t){const s=t.groups?.width??"",r=t.groups?.height??"",i=parseInt(s),o=parseInt(r);return{url:e=e.replace(n,"$1$4"),width:i,height:o}}const s=e.match(o)?.groups?.size,r=c[s??""];return r?{url:e=e.replace(o,"$1$3"),width:r,height:r}:{url:e,width:NaN,height:NaN}};const u=e=>e.replace(a,"$1$4"),p=e=>e.replace(l,"$1$2")}}]);