"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[4],{71:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sellingPlans=t.convertProductToPayload=void 0,t.convertProductToPayload=({product:e,variant:t,quantity:a=1,additionalProperties:i})=>{var s,r;let n=100*parseFloat(t.price.amount);return isNaN(n)&&(n="--"),{items:[{id:t.id,quantity:a,image:null!==(r=null===(s=t.image)||void 0===s?void 0:s.src)&&void 0!==r?r:"",product_title:e.title,price:n,variant_title:t.title.includes("Default")||t.title===e.title?"":t.title,properties:Object.assign({},i),final_price:n,variant_id:Number(t.id),url:`/products/${e.handle}`,vendor:e.vendor,sku:t.sku}]}},t.sellingPlans={"peanut-butter-blackberry":3397714153,"the-raspberry-donut":3397746921,"cookies-and-cream":3397681385,"birthday-cake-chocolate-chip":3397517545,"dark-chocolate-coconut":3311567081,"espresso-vanilla-cinnamon":3311599849,"cacao-salt-caramel-peanut":3311468777,"signature-flavors-variety-set":3320348905}},68:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.truncateOneDecimal=t.replaceToFastImage=void 0,t.replaceToFastImage=(e,t=!1,a=600)=>e,t.truncateOneDecimal=e=>{if(!e)return"0";const t=e.toString(),a=t.indexOf(".");if(-1===a)return String(e);if("0"===t.slice(a+1,a+2))return String(e.toFixed(1));const i=Math.ceil(10*e),s=Math.floor(10*e);return String(i-10*e<.5?(i/10).toFixed(1):(s/10).toFixed(1))}},59:function(e,t,a){var i=this&&this.__awaiter||function(e,t,a,i){return new(a||(a=Promise))((function(s,r){function n(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(n,o)}c((i=i.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Footer=void 0;const r=a(0),n=s(a(144)),o=a(2),c=a(324),{footer:l,footerSection:d,footerSections:u,footerTitle:v,footerLinks:m,footerSignup:p,signupForm:h,submittedText:g,footerReferences:b,footerTopHalf:j,referenceNumber:f,noFixHeight:y}=n.default;t.Footer=()=>{const[e,t]=(0,o.useState)(""),[a,s]=(0,o.useState)(!1),[n,x]=(0,o.useState)(!1),k={sections:[{title:"STARS + HONEY",links:[{name:"About",url:"https://starsandhoney.com/pages/about"},{name:"Philosophy",url:"https://starsandhoney.com/pages/philosophy"},{name:"Contact Us",url:"https://starsandhoney.com/pages/contact"},{name:"FAQ",url:"https://starsandhoney.com/pages/faq"}]},{title:"ORDERS & SUPPORT",links:[{name:"Shipping",url:"https://starsandhoney.com/pages/faq"},{name:"Returns & Exchanges",url:"https://starsandhoney.com/pages/faq#returns"},{name:"Terms",url:"https://starsandhoney.com/policies/terms-of-service"},{name:"Privacy",url:"https://starsandhoney.com/policies/privacy-policy"}]},{title:"COMMUNITY",links:[{name:"Instagram",url:"https://www.instagram.com/starsandhoney.co/"},{name:"Tik Tok",url:"https://www.tiktok.com/@starsandhoney.co"},{name:"Wholesale",url:"https://starsandhoney.com/pages/wholesale"}]}],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,r.jsxs)("footer",Object.assign({className:`${l} ${(a||n)&&y}`},{children:[(0,r.jsx)("div",{id:"footer"}),(0,r.jsxs)("div",Object.assign({className:j},{children:[(0,r.jsxs)("div",Object.assign({className:p},{children:[(0,r.jsx)("h4",{children:"Sign Up & Save"}),a&&(0,r.jsx)("p",Object.assign({className:g},{children:"Thank you for joining our mailing list!"})),n&&(0,r.jsx)("p",Object.assign({className:g},{children:"email - can't be blank"})),(0,r.jsxs)("form",Object.assign({className:h,onSubmit:a=>i(void 0,void 0,void 0,(function*(){if(a.preventDefault(),""===e)return void x(!0);if(x(!1),!e.includes("@"))return;s(!0),t("");const i={"Content-Type":"application/json",revision:"2024-07-15",Cookie:"datadome=NUHbZZYaTyx7Sf~D53SPuKf0SrEDOxnvj34v6nylGjdT2169KLYmhKBwgFfjPZoDzw3PNS0oxr3IzkXuEQHGbkqQb6OLnOPw0MHKKrXsnieUi46nP1VXg9sH4J6hBVFw"},r=JSON.stringify({data:{type:"subscription",attributes:{custom_source:"Footer",profile:{data:{type:"profile",attributes:{email:e,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=yield fetch("https://a.klaviyo.com/client/subscriptions/?company_id=UetCyK",{method:"POST",headers:i,body:r});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,r.jsx)("input",{type:"email",placeholder:"Enter email address",value:e,onChange:e=>{const a=e.target;t(a.value)}}),(0,r.jsx)("button",Object.assign({type:"submit","aria-label":"Next review"},{children:(0,r.jsx)(c.ArrowRight,{})}))]}))]})),(0,r.jsx)("div",Object.assign({className:u},{children:k.sections.map(((e,t)=>(0,r.jsxs)("div",Object.assign({className:d},{children:[(0,r.jsx)("h4",Object.assign({className:v},{children:e.title})),(0,r.jsx)("ul",Object.assign({className:m},{children:e.links.map(((t,a)=>{const i="COMMUNITY"===e.title&&("Instagram"===t.name||"Tik Tok"===t.name);return(0,r.jsx)("li",{children:(0,r.jsx)("a",Object.assign({href:t.url},i?{target:"_blank",rel:"noopener noreferrer"}:{},{children:t.name}))},a)}))}))]}),t)))}))]})),(0,r.jsx)("div",Object.assign({className:b},{children:k.references.map(((e,t)=>(0,r.jsxs)("a",Object.assign({href:e.url},{children:[(0,r.jsxs)("div",Object.assign({className:f},{children:[e.referenceNumber," ="," "]})),e.text]}),t)))}))]}))}},324:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowRight=void 0;const i=a(0);t.ArrowRight=()=>(0,i.jsx)("svg",Object.assign({"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"})}))},61:function(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Carousel=void 0;const s=a(0);a(36),a(37);const r=a(2),n=i(a(38)),o=a(2),c=i(a(278));a(279),a(280);const l=a(70),{mainContainer:d,arrow:u,arrowPrev:v,arrowNext:m,hidden:p}=c.default;t.Carousel=({className:e="",children:t,carouselSettings:a,arrowStyles:i})=>{const c=(0,r.useRef)(null),[p,h]=(0,o.useState)(0),[g,b]=(0,o.useState)(!0);return(0,r.useEffect)((()=>{b(!1);const e=e=>{var t,a;"ArrowLeft"===e.key?null===(t=c.current)||void 0===t||t.slickPrev():"ArrowRight"===e.key&&(null===(a=c.current)||void 0===a||a.slickNext())};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[]),(0,s.jsxs)("div",Object.assign({className:`${d} mainContainerImageCarousel ${g&&" jsDisabled "}`},{children:[" ",(0,s.jsx)("div",Object.assign({className:`${u} ${v}`,onClick:e=>{var t;e.preventDefault(),null===(t=c.current)||void 0===t||t.slickPrev()}},{children:(0,s.jsx)(l.Arrow,{})}))," ",(0,s.jsx)("div",Object.assign({className:`${u} ${m}`,onClick:e=>{var t;e.preventDefault(),null===(t=c.current)||void 0===t||t.slickNext()}},{children:(0,s.jsx)(l.Arrow,{})})),(0,s.jsx)(n.default,Object.assign({ref:c,arrows:!1,className:`${e}`},a,{afterChange:e=>{h(e)}},{children:t}))]}))}},70:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Arrow=void 0;const i=a(0);a(1),t.Arrow=function({}){return(0,i.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",width:"40",height:"40"},{children:(0,i.jsx)("path",{d:"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z"})}))}},54:function(e,t,a){var i=this&&this.__awaiter||function(e,t,a,i){return new(a||(a=Promise))((function(s,r){function n(e){try{c(i.next(e))}catch(e){r(e)}}function o(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(n,o)}c((i=i.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProductDetails=t.mockProductDetailData=void 0;const r=a(0),n=(a(1),s(a(145))),o=a(22),c=a(70),l=a(2),d=a(39),u=a(334),v=a(68),m=a(71),p=a(114),h=a(311),g=a(311),b=a(2),j=a(69);"undefined"!=typeof window&&(window.Buffer=j.Buffer);const{mainContainer:f,mainContainerVarietySet:y,categoryLabel:x,title:k,starsContainer:O,starsRating:S,ratingNumber:N,varietySetContainer:D,varietySetContainerForVarietySetPDP:I,description:w,freeFromContainer:P,freeFromContainerVarietySet:C,nutritionContainer:_,nutritionImageContainer:T,bundles:A,selected:F,price:R,priceVarietySet:$,productSubscription:M,productSubscriptionIsVariety:E,subscriptionInfo:B,showContainer:V,backgroundPopup:L,labelShip:H,labelShipVarietySet:U,addButton:K,varieryHoverName:Y,moreFlavorsAlert:q,disabled:z,addButtonVarietySet:G,nutritionArrowContainer:W,badgesContainer:Z,buttonLoading:J,buttonLoader:X}=n.default,Q=e=>98===e?98.01:e;t.mockProductDetailData={rating:{reviewsHref:"https://starsandhoney.com/pages/reviews"},varietyData:[{varietyHref:"/products/cacao-salt-caramel-peanut",varietyImage:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/product-ser-cscp.webp?v=1679889773",varietyName:"Cacao Salt Caramel Peanut",productId:"7979585765609",variantId20packOneTime:"47528498233577",variantId30packOneTime:"47531487789289",variantId20packSubs:"47531488510185",variantId30packSubs:"47531491033321",sellingPlan:"3311468777"},{varietyHref:"/products/espresso-vanilla-cinnamon",varietyImage:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/product-ser-evc.webp?v=1679889773",varietyName:"Espresso Vanilla Cinnamon",productId:"7979587338473",variantId20packOneTime:"47531592351977",variantId30packOneTime:"47531592679657",variantId20packSubs:"47531592909033",variantId30packSubs:"47531593892073",sellingPlan:"3311599849"},{varietyHref:"/products/dark-chocolate-coconut",varietyImage:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/product-ser-dcc.webp?v=1679889773",varietyName:"Dark Chocolate Coconut",productId:"7974127075561",variantId20packOneTime:"47531585470697",variantId30packOneTime:"47531585732841",variantId20packSubs:"47531586715881",variantId30packSubs:"47531586945257",sellingPlan:"3311567081"},{varietyHref:"/products/the-raspberry-donut",varietyImage:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/Screenshot_2023-08-28_at_0.08.57.png?v=1693170564",varietyName:"The Raspberry Donut",productId:"8175526805737",variantId20packOneTime:"47531597332713",variantId30packOneTime:"47531597529321",variantId20packSubs:"47531597791465",variantId30packSubs:"47531597889769",sellingPlan:"3397746921"},{varietyHref:"/products/birthday-cake-chocolate-chip",varietyImage:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/Screenshot_2023-08-27_at_23.44.26.png?v=1693169094",varietyName:"Birthday Cake Chocolate Chip",productId:"8175526543593",variantId20packOneTime:"47531549065449",variantId30packOneTime:"47531551555817",variantId20packSubs:"47531552669929",variantId30packSubs:"47531554046185",sellingPlan:"3397517545"},{varietyHref:"/products/peanut-butter-blackberry",varietyImage:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/Screenshot_2023-08-28_at_0.06.22.png?v=1693170402",varietyName:"Peanut Butter Blackberry",productId:"8175527264489",variantId20packOneTime:"47531595399401",variantId30packOneTime:"47531595727081",variantId20packSubs:"47531595792617",variantId30packSubs:"47531595890921",sellingPlan:"3397714153"},{varietyHref:"/products/cookies-and-cream",varietyImage:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/Screenshot_2023-08-27_at_23.41.23.png?v=1693168901",varietyName:"Cookies and Cream",productId:"8175526936809",variantId20packOneTime:"47531582554345",variantId30packOneTime:"47531582750953",variantId20packSubs:"47531583013097",variantId30packSubs:"47531583209705",sellingPlan:"3397681385"}],varieryButton:{href:"/products/signature-flavors-variety-set",text:"Variety Set"},clubDiscount:.1,mockTagsForVarierySet:["⃠ GLUTEN","⃠ DAIRY","⃠ SOY","⃠ SUGAR ALCOHOLS"],bundlesIds:{variantId20packOneTime:{variantId:"47421908353257",productId:"8657724834025"},variantId30packOneTime:{variantId:"47460318839017",productId:"8671253332201"},variantId20packSubs:{variantId:"47421908353257",productId:"8657724834025"},variantId30packSubs:{variantId:"47460318839017",productId:"8671253332201"}},dynamicBundleCollectionId:"427067900137"},t.ProductDetails=function({productPage:e,useSharedState:a}){var s,n,j,ee,te,ae,ie,se,re,ne,oe,ce,le,de,ue,ve,me,pe;const[he,ge]=(0,l.useState)(!1),[be,je]=(0,l.useState)(0),[fe,ye]=(0,l.useState)("one-time"),[xe,ke]=(0,l.useState)(!1),[Oe,Se]=(0,l.useState)(!1),[Ne,De]=(0,l.useState)([]),[Ie,we]=(0,l.useState)(!1),[Pe,Ce]=(0,l.useState)(!1),[_e,Te]=(0,l.useState)(!1),[Ae,Fe]=(0,l.useState)(!1),Re="signature-flavors-variety-set"===e.handle,$e="club"===fe?Number(null===(n=null===(s=e.variants[be])||void 0===s?void 0:s.price)||void 0===n?void 0:n.amount)*(1-t.mockProductDetailData.clubDiscount):Number(null===(ee=null===(j=e.variants[be])||void 0===j?void 0:j.price)||void 0===ee?void 0:ee.amount),Me=["club"===fe?Number(null===(ae=null===(te=e.variants[Re?0:1])||void 0===te?void 0:te.price)||void 0===ae?void 0:ae.amount)*(1-t.mockProductDetailData.clubDiscount)/20:Number(null===(se=null===(ie=e.variants[Re?0:1])||void 0===ie?void 0:ie.price)||void 0===se?void 0:se.amount)/20,"club"===fe?Number(null===(ne=null===(re=e.variants[Re?1:2])||void 0===re?void 0:re.price)||void 0===ne?void 0:ne.amount)*(1-t.mockProductDetailData.clubDiscount)/30:Number(null===(ce=null===(oe=e.variants[Re?1:2])||void 0===oe?void 0:oe.price)||void 0===ce?void 0:ce.amount)/30],Ee=e=>{ye(e)},Be=()=>{ke(!xe)};return(0,b.useEffect)((()=>{a.showCart&&Ce(!1)}),[a.showCart]),(0,b.useEffect)((()=>{(0,g.initRecharge)({storeIdentifier:"starsandhoney.com",storefrontAccessToken:"strfnt_ed701156261903dde869c2dfe5e8d4b3f8065f5a7b17a056a93dd15700fa8a94",loginRetryFn:()=>i(this,void 0,void 0,(function*(){return yield(0,g.loginShopifyAppProxy)()}))}),(0,h.loginWithShopifyStorefront)("strfnt_ed701156261903dde869c2dfe5e8d4b3f8065f5a7b17a056a93dd15700fa8a94").then((e=>{console.log("response",e)})).catch((e=>{console.log(e)}))}),[]),(0,b.useEffect)((()=>{e.variants[be].currentlyNotInStock?Te(!0):Te(!1),e.variants[be].availableForSale?Fe(!1):Fe(!0)}),[be]),(0,r.jsxs)("div",Object.assign({className:`${f} ${Re&&y}`},{children:[(0,r.jsx)("p",Object.assign({className:x},{children:"Collagen Protein Bar"})),(0,r.jsx)("h1",Object.assign({className:k},{children:e.title})),!Re&&(0,r.jsxs)("div",Object.assign({className:`starsContainer ${O}`},{children:[(0,r.jsx)("a",Object.assign({className:S,href:t.mockProductDetailData.rating.reviewsHref},{children:(0,r.jsx)(o.RatingStars,{rating:null===(le=e.reviews)||void 0===le?void 0:le.rating_average,numberOfStars:5,starDimension:"20px",starRatedColor:"#000000",starEmptyColor:"#00000055"})})),(0,r.jsxs)("p",Object.assign({className:N},{children:["(",(0,v.truncateOneDecimal)(null===(de=null==e?void 0:e.reviews)||void 0===de?void 0:de.rating_average),")"]}))]})),(0,r.jsxs)("div",Object.assign({className:`varietySetContainer ${D} ${Re&&I}`},{children:[t.mockProductDetailData.varietyData.map(((e,t)=>(0,r.jsx)("div",{children:(0,r.jsxs)("a",Object.assign({href:e.varietyHref},{children:[(0,r.jsx)("img",{src:e.varietyImage,alt:"variety"}),(0,r.jsx)("div",Object.assign({className:Y},{children:e.varietyName}))]}))},t))),(0,r.jsx)("button",{children:(0,r.jsx)("a",Object.assign({href:t.mockProductDetailData.varieryButton.href},{children:t.mockProductDetailData.varieryButton.text}))})]})),(0,r.jsx)("p",Object.assign({className:w,style:{fontSize:Re?"12px":"14px",lineHeight:Re?"18px":"21px",letterSpacing:Re?"normal":"-0.02em;"}},{children:e.description})),(0,r.jsx)("div",Object.assign({className:`freeFromContainer ${P} ${Re&&C}`},{children:Re?t.mockProductDetailData.mockTagsForVarierySet.map(((e,t)=>(0,r.jsx)("span",{children:e.substring(1).toLowerCase().includes("sugar")?"STEVIA":e.substring(1)},t))):e.tagsBadge.map(((e,t)=>(0,r.jsx)("span",{children:e.substring(1).toLowerCase().includes("sugar")?"STEVIA":e.substring(1)},t)))})),!Re&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",Object.assign({className:_,onClick:()=>{ge(!he)}},{children:[(0,r.jsx)("span",{children:"NUTRITION & INGREDIENTS"}),(0,r.jsx)("span",Object.assign({className:W},{children:(0,r.jsx)(c.Arrow,{})}))]})),he&&(0,r.jsxs)("div",Object.assign({className:T},{children:[(0,r.jsx)("img",{src:null===(ue=null==e?void 0:e.nutritionalImage)||void 0===ue?void 0:ue.reference.image.originalSrc,alt:`nutritional info for ${e.title} `,height:150,width:400}),(0,r.jsx)("p",{children:null===(ve=null==e?void 0:e.nutritionalIngredients)||void 0===ve?void 0:ve.value}),(0,r.jsx)("div",Object.assign({className:Z},{children:null===(pe=null===(me=null==e?void 0:e.nutritionalBadges)||void 0===me?void 0:me.references.edges)||void 0===pe?void 0:pe.map(((e,t)=>(0,r.jsx)("img",{src:e.node.image.originalSrc,alt:e.node.image.altText,style:{height:"30px"}},t)))}))]}))]}),!Re&&(0,r.jsxs)("div",Object.assign({className:`bundles ${A}`},{children:[(0,r.jsxs)("div",Object.assign({onClick:()=>je(0)},{children:[(0,r.jsx)("button",Object.assign({className:`${0===be&&F}`},{children:e.options[0].values[0]})),(0,r.jsx)("span",{})]})),(0,r.jsxs)("div",Object.assign({onClick:()=>je(1)},{children:[(0,r.jsx)("button",Object.assign({className:`${1===be&&F}`},{children:e.options[0].values[1]})),(0,r.jsxs)("span",{children:["$",Me[0].toFixed(2)," EA."]})]})),(0,r.jsxs)("div",Object.assign({onClick:()=>je(2)},{children:[(0,r.jsx)("button",Object.assign({className:`${2===be&&F}`},{children:e.options[0].values[2]})),(0,r.jsxs)("span",{children:["$",Me[1].toFixed(2)," EA."]})]}))]})),Re&&(0,r.jsx)(p.StepSelection,{productPage:e,bundleSelected:be,setBundleSelected:je,bundlePriceEach:Me,varietySetIsComplete:Oe,setVarietySetIsComplete:Se,selectedFlavorSet:Ne,setSelectedFlavorSet:De}),(0,r.jsxs)("div",Object.assign({className:`${R} ${Re&&$}`},{children:["$",$e.toFixed(2)]})),(0,r.jsxs)("div",Object.assign({className:`${M} ${Re&&E}`},{children:[(0,r.jsxs)("div",Object.assign({onClick:()=>Ee("one-time")},{children:[(0,r.jsx)("input",{type:"radio",id:"one-time",name:"subscription",checked:"one-time"===fe,readOnly:!0}),(0,r.jsx)("span",Object.assign({htmlFor:"one-time"},{children:"ONE-TIME PURCHASE"}))]})),(0,r.jsxs)("div",Object.assign({onClick:()=>Ee("club")},{children:[(0,r.jsx)("input",{type:"radio",id:"club",name:"subscription",checked:"club"===fe,readOnly:!0}),(0,r.jsx)("span",Object.assign({htmlFor:""},{children:"SUBSCRIPTION CLUB"})),(0,r.jsxs)("label",{children:["Save ",100*t.mockProductDetailData.clubDiscount,"%"]}),(0,r.jsxs)("button",Object.assign({onClick:Be},{children:["Details",(0,r.jsxs)("div",Object.assign({className:`${B} ${xe&&V}`},{children:[(0,r.jsx)("div",{children:(0,r.jsx)(d.Cross,{})}),(0,r.jsxs)("ul",{children:[(0,r.jsxs)("li",{children:[(0,r.jsx)(u.ArrowRightPopup,{}),"Delivers every 1 month"]}),(0,r.jsxs)("li",{children:[(0,r.jsx)(u.ArrowRightPopup,{}),"Pause, change, or cancel anytime"]}),(0,r.jsxs)("li",Object.assign({style:"margin-bottom:unset;"},{children:[(0,r.jsx)(u.ArrowRightPopup,{}),"Early access to new flavors"]}))]})]}))]}))]})),(0,r.jsx)("div",{className:`${L} ${xe&&V}`,onClick:Be})]})),(0,r.jsxs)("p",Object.assign({className:`${H} ${Re&&U}`},{children:[(0,r.jsx)("span",{children:"★"})," Always Free Shipping"]})),(0,r.jsxs)("div",Object.assign({onClick:()=>i(this,void 0,void 0,(function*(){var i;if(Pe)return;if(Ce(!0),Re&&!Oe)return we(!0),Ce(!1),void setTimeout((()=>{we(!1)}),2e3);if(_e||Ae)return void Ce(!1);const s={sku:e.variants[be].sku||"",id:e.variants[be].id,quantity:1,image:e.variants[be].image.src,product_title:e.title,variant_title:e.variants[be].title,price:100*$e,final_price:100*$e,url:`https://starsandhoney.com/products/${e.handle}`,variant_id:Number(e.variants[be].id),vendor:e.vendor};"club"===fe&&(s.selling_plan=m.sellingPlans[e.handle]||null);let r=[s];if(Re){let n;n=0===be&&"one-time"===fe?"variantId20packOneTime":1===be&&"one-time"===fe?"variantId30packOneTime":0===be&&"club"===fe?"variantId20packSubs":1===be&&"club"===fe?"variantId30packSubs":"variantId20packOneTime";let o={externalVariantId:t.mockProductDetailData.bundlesIds[n].variantId,externalProductId:t.mockProductDetailData.bundlesIds[n].productId,selections:[{collectionId:t.mockProductDetailData.dynamicBundleCollectionId,externalProductId:t.mockProductDetailData.varietyData[Ne[0]].productId,externalVariantId:t.mockProductDetailData.varietyData[Ne[0]][n],sellingPlan:"club"===fe?Number(t.mockProductDetailData.varietyData[Ne[0]].sellingPlan):void 0,quantity:1},{collectionId:t.mockProductDetailData.dynamicBundleCollectionId,externalProductId:t.mockProductDetailData.varietyData[Ne[1]].productId,externalVariantId:t.mockProductDetailData.varietyData[Ne[1]][n],sellingPlan:"club"===fe?Number(t.mockProductDetailData.varietyData[Ne[1]].sellingPlan):void 0,quantity:1}]};1===be&&o.selections.push({collectionId:t.mockProductDetailData.dynamicBundleCollectionId,externalProductId:t.mockProductDetailData.varietyData[Ne[2]].productId,externalVariantId:t.mockProductDetailData.varietyData[Ne[2]][n],sellingPlan:"club"===fe?Number(t.mockProductDetailData.varietyData[Ne[2]].sellingPlan):void 0,quantity:1});try{r=null===(i=(0,m.convertProductToPayload)({product:Object.assign(Object.assign({},s),{variant_title:1===be?"30-PACK":"20-PACK",title:"Signature Flavors Variety Set"}),additionalProperties:Object.assign({"Flavor 1":t.mockProductDetailData.varietyData[Ne[0]].varietyName,"Flavor 2":t.mockProductDetailData.varietyData[Ne[1]].varietyName},1===be?{"Flavor 3":t.mockProductDetailData.varietyData[Ne[2]].varietyName}:{}),quantity:1,variant:Object.assign(Object.assign({},e.variants[be]),{title:1===be?"30-PACK":"20-PACK",price:Object.assign(Object.assign({},e.variants[be].price),{amount:Q($e).toString()})})}))||void 0===i?void 0:i.items.map((e=>Object.assign(Object.assign({},e),{selling_plan_allocation:!!(null==s?void 0:s.selling_plan)}))),a.addFakeBundle({items:r});const n=yield(0,h.getDynamicBundleItems)(o,"dynamic-bundle");n[0].properties["Flavor 1"]=t.mockProductDetailData.varietyData[Ne[0]].varietyName,n[0].properties._rc_bundle_flavor1=t.mockProductDetailData.varietyData[Ne[0]].varietyName,n[0].properties._rc_bundle_flavor1_ID=t.mockProductDetailData.varietyData[Ne[0]].productId,n[0].properties._rc_bundle_flavor2=t.mockProductDetailData.varietyData[Ne[1]].varietyName,n[0].properties._rc_bundle_flavor2_ID=t.mockProductDetailData.varietyData[Ne[1]].productId,n[0].properties._rc_bundle_price=$e.toString(),n[0].properties._rc_bundle_status="club"===fe?"Subscription":"One-Time",n[0].properties._rc_bundle_size=0===be?"20-PACK":"30-PACK",n[1].properties["Flavor 2"]=t.mockProductDetailData.varietyData[Ne[1]].varietyName,1===be&&(n[0].properties._rc_bundle_flavor3=t.mockProductDetailData.varietyData[Ne[2]].varietyName,n[0].properties._rc_bundle_flavor3_ID=t.mockProductDetailData.varietyData[Ne[2]].productId,n[2].properties["Flavor 3"]=t.mockProductDetailData.varietyData[Ne[2]].varietyName),r=n}catch(e){console.error("getBundleId",e)}}try{a.addToCart({items:r})}catch(e){console.error(e),Ce(!1)}})),className:`${K} \n\t\t\t\t${Re&&!Oe&&z}\n\t\t\t\t${(_e||Ae)&&z}\n\t\t\t\t${Re&&G}\n\t\t\t\t${Pe&&J}\n\t\t\t\t`},{children:[(0,r.jsxs)("button",{children:[Ae?"Unavailable":_e?"Out of Stock":"Add to bag",Pe&&(0,r.jsx)("span",Object.assign({className:X},{children:(0,r.jsxs)("svg",Object.assign({height:"18",width:"18"},{children:[(0,r.jsx)("circle",{r:"7",cx:"9",cy:"9"}),(0,r.jsx)("circle",{"stroke-dasharray":"87.96459430051421 87.96459430051421",r:"7",cx:"9",cy:"9"})]}))}))]}),Ie&&(0,r.jsx)("div",Object.assign({className:q},{children:"Please add more flavors"}))]}))]}))}},114:function(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StepSelection=void 0;const s=a(0),r=a(1),n=i(a(146)),o=a(2),c=a(335),l=a(11),{selected:d,bundles:u,step2Container:v,backButton:m,varietySetContainer:p,varietyItem:h,varietyName:g,title:b,selectedOptionsContainer:j,selectedImagesContainer:f,modifyButton:y,stepIndicatorTitleContainer:x,columnDisplay:k,imageContainer:O,yourVarietySet:S,chosenFlavors:N}=n.default;(0,l.setConfig)([{folder:"stars-honey",template:"https://cdn.shopify.com/s/files/1/0664/6100/8105/"},{folder:"stars-honey",template:"https://starsandhoney.com/cdn/shop/files/"}]);const D={varietyData:[{varietyImage:(0,l.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/product-ser-cscp.webp?v=1679889773"),varietyName:"Cacao Salt Caramel Peanut"},{varietyImage:(0,l.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/product-ser-evc.webp?v=1679889773"),varietyName:"Espresso Vanilla Cinnamon"},{varietyImage:(0,l.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/product-ser-dcc.webp?v=1679889773"),varietyName:"Dark Chocolate Coconut"},{varietyImage:(0,l.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/Screenshot_2023-08-28_at_0.08.57.png?v=1693170564"),varietyName:"The Raspberry Donut"},{varietyImage:(0,l.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/Screenshot_2023-08-27_at_23.44.26.png?v=1693169094"),varietyName:"Birthday Cake Chocolate Chip"},{varietyImage:(0,l.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/Screenshot_2023-08-28_at_0.06.22.png?v=1693170402"),varietyName:"Peanut Butter Blackberry"},{varietyImage:(0,l.getFastImage)("https://cdn.shopify.com/s/files/1/0664/6100/8105/files/Screenshot_2023-08-27_at_23.41.23.png?v=1693168901"),varietyName:"Cookies and Cream"}]};t.StepSelection=({productPage:e,bundleSelected:t,setBundleSelected:a,bundlePriceEach:i,varietySetIsComplete:n,setVarietySetIsComplete:l,selectedFlavorSet:I,setSelectedFlavorSet:w})=>((0,o.useEffect)((()=>{w([]),l(!1)}),[t]),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",Object.assign({className:b},{children:[(0,s.jsx)("span",{children:"STEP 1"}),(0,s.jsx)("span",{children:"CHOOSE YOUR PACK SIZE"})]})),(0,s.jsxs)("div",Object.assign({className:u},{children:[(0,s.jsxs)("div",Object.assign({onClick:()=>a(0)},{children:[(0,s.jsx)("button",Object.assign({className:`${0===t&&d}`},{children:e.options[0].values[0]})),(0,s.jsxs)("span",{children:["$",i[0].toFixed(2)," EA."]})]})),(0,s.jsxs)("div",Object.assign({onClick:()=>a(1)},{children:[(0,s.jsx)("button",Object.assign({className:`${1===t&&d}`},{children:e.options[0].values[1]})),(0,s.jsxs)("span",{children:["$",i[1].toFixed(2)," EA."]})]}))]})),(0,s.jsxs)("div",Object.assign({className:v},{children:[n?(0,s.jsxs)("div",Object.assign({className:b},{children:[(0,s.jsx)("span",{children:"BUNDLE SUMMARY"}),(0,s.jsx)("span",{})]})):(0,s.jsxs)("div",Object.assign({className:b},{children:[(0,s.jsx)("span",{children:"STEP 2"}),(0,s.jsx)("span",{children:"CHOOSE YOUR FLAVORS"})]})),(0,s.jsxs)("div",Object.assign({className:x},{children:[(0,s.jsx)("div",Object.assign({style:{color:0===I.length?"black":"#a0a0a0"}},{children:"FIRST FLAVOR"})),(0,s.jsx)(c.ArrowRight,{}),(0,s.jsx)("div",Object.assign({style:{color:1===I.length?"black":"#a0a0a0"}},{children:"SECOND FLAVOR"})),(0,s.jsx)(c.ArrowRight,{}),1===t&&(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)("div",Object.assign({style:{color:2===I.length?"black":"#a0a0a0"}},{children:"THIRD FLAVOR"})),(0,s.jsx)(c.ArrowRight,{})]}),(0,s.jsx)("div",Object.assign({style:{color:n?"black":"#a0a0a0"}},{children:"SUMMARY"}))]})),I.length>0&&(0,s.jsx)("button",Object.assign({className:m,onClick:()=>{w((e=>e.slice(0,-1))),l(!1)}},{children:"Back"})),!n&&(0,s.jsx)("div",Object.assign({className:p},{children:D.varietyData.map(((e,a)=>(0,s.jsxs)("div",Object.assign({className:h,onClick:()=>{return e=a,w((t=>[...t,e])),void([...I,e].length===t+2&&l(!0));var e}},{children:[(0,s.jsx)("img",{src:e.varietyImage,alt:e.varietyName}),(0,s.jsx)("div",Object.assign({className:g},{children:e.varietyName}))]}),a)))})),(0,s.jsxs)("div",Object.assign({className:j,style:{alignItems:n?"flex-start":"center"}},{children:[(0,s.jsx)("h3",{children:n?(0,s.jsx)("div",Object.assign({className:S},{children:"Your Variery Set"})):I.length>0?(0,s.jsx)("div",Object.assign({className:N},{children:"CHOSEN FALVORS"})):""}),(0,s.jsx)("div",Object.assign({className:`${f} ${n&&k}`},{children:I.map(((e,t)=>(0,s.jsxs)("div",Object.assign({className:h},{children:[(0,s.jsx)("div",Object.assign({className:O,"data-index":t+1},{children:(0,s.jsx)("img",{src:D.varietyData[e].varietyImage,alt:D.varietyData[e].varietyName})})),n&&(0,s.jsx)("span",{children:D.varietyData[e].varietyName})]}),t)))})),n&&(0,s.jsx)("button",Object.assign({className:y,onClick:()=>{w([]),l(!1)}},{children:"Modify"}))]}))]}))]}))},335:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowRight=void 0;const i=a(0);t.ArrowRight=()=>(0,i.jsx)("svg",Object.assign({width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,i.jsx)("path",{d:"M1 10.2002L5 5.6002L1 1.0002",stroke:"black","stroke-width":"2"})}))},334:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowRightPopup=void 0;const i=a(0);a(1),t.ArrowRightPopup=function({}){return(0,i.jsx)("svg",Object.assign({"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"})}))}},22:function(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RatingStars=void 0;const s=a(0),r=i(a(321));t.RatingStars=({rating:e=0,numberOfStars:t,starDimension:a,starRatedColor:i,starEmptyColor:n})=>(0,s.jsx)("div",Object.assign({className:"w-full pb-2"},{children:(0,s.jsx)(r.default,{rating:Number(e||0),starRatedColor:i,starEmptyColor:n,numberOfStars:t,name:"rating",starDimension:a,starSpacing:"1px"})}))},60:function(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Reviews=void 0;const s=a(0),r=(a(1),i(a(131))),n=a(103),o=a(22),{mainContainer:c,title:l,starsContainer:d,carouselContainer:u,slideContainer:v,slideTitle:m,slideDescription:p,bottomSlideContainer:h,slideProduct:g,slideAuthor:b}=r.default;t.Reviews=function(){const e=[{title:"I’d eat this every day.",description:"Its been hard to find a bar that tastes good and is gluten free, dairy free, and has no whey protein. I know it is a lot to ask haha but this bar is it. There is a more natural feeling to this bar that tastes like I am eating something real.",product:"Cacao Salt Caramel Peanut",author:"Alex M.",ratingNumber:5},{title:"Wow, so good!",description:"This bar isn’t chalky like most protein bars and actually has a great aftertaste.",product:"Espresso Vanilla Cinnamon",author:"Madison V. ",ratingNumber:5},{title:"First protein bar I don’t get sick of.",description:"I usually can’t more than a couple of bites of a protein bar before I get bored and throw it away. This bar tastes elevated and made me want to actually keep eating it.",product:"Cacao Salt Caramel Peanut",author:"Jess B.",ratingNumber:5},{title:"Great work. Keep it up!",description:"I have to take collagen for my joints and skin. And this is the best way I have found to take it. 10g of collagen in a convenient form.",product:"Dark Chocolate Coconut",author:"Jaime R.",ratingNumber:5},{title:"This bar smells amazing!",description:"Its like Christmas, I love smelling this bar even more than eating it. Is that weird? ",product:"Cacao Salt Caramel Peanut",author:"Dani W.",ratingNumber:5},{title:"Finally, collagen I can take.",description:"I travel a lot and never find time to mix my collagen in a drink and these bars have helped me. I just throw one in my bag and its always there and so easy to eat. I actually look forward to it. ",product:"",author:"Mike F.",ratingNumber:4},{title:"Please, don’t change ever.",description:"Thank you for not putting a lot of sugar or sugar alcohols in your bars like every other keto snack! This bar fills my need for collagen and a satisfying snack that doesn’t make me sick. And only 190 calories!",product:"Dark Chocolate Coconut",author:"Nancy H.",ratingNumber:5},{title:"Pretty good for a protein bar.",description:"I don’t really eat protein bars but was interested in the collagen. Perhaps a little more sugar would make it even better.",product:"Cacao Salt Caramel Peanut",author:"Morgan F.",ratingNumber:3}];return(0,s.jsxs)("div",Object.assign({className:c},{children:[(0,s.jsx)("h2",Object.assign({className:l},{children:"Kind Words"})),(0,s.jsx)("div",Object.assign({className:`${u} carouselContainer `},{children:(0,s.jsx)(n.SlidesCarousel,Object.assign({carouselSettings:{infinite:!0,dots:!0,speed:500,slidesToShow:1,slidesPerRow:1,slidesToScroll:1,centerMode:!1,centerPadding:"0",variableWidth:!0}},{children:null==e?void 0:e.map(((e,t)=>(0,s.jsxs)("div",Object.assign({className:`${v} slideContainer`},{children:[(0,s.jsx)("div",Object.assign({className:d},{children:(0,s.jsx)(o.RatingStars,{rating:e.ratingNumber,numberOfStars:5,starDimension:"20px",starRatedColor:"#000000",starEmptyColor:"white"})})),(0,s.jsx)("label",Object.assign({className:m},{children:e.title})),(0,s.jsx)("p",Object.assign({className:p},{children:e.description})),(0,s.jsxs)("div",Object.assign({className:h},{children:[(0,s.jsx)("p",Object.assign({className:g},{children:e.product})),(0,s.jsx)("p",Object.assign({className:b},{children:e.author}))]}))]}),t)))}))}))]}))}},103:function(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SlidesCarousel=void 0;const s=a(0);a(36),a(37);const r=a(2),n=i(a(38)),o=a(2),c=i(a(140));a(141);const l=a(320),{mainContainer:d,arrow:u,arrowPrev:v,arrowNext:m,hidden:p}=c.default;t.SlidesCarousel=({className:e="",children:t,carouselSettings:a})=>{const i=(0,r.useRef)(null),[c,v]=(0,o.useState)(0);return(0,s.jsxs)("div",Object.assign({className:`${d} mainContainerReviews `},{children:[(0,s.jsx)("div",Object.assign({className:`${u} ${m}`,onClick:e=>{var t;e.preventDefault(),null===(t=i.current)||void 0===t||t.slickNext()}},{children:(0,s.jsx)(l.Arrow,{})})),(0,s.jsx)(n.default,Object.assign({ref:i,arrows:!1,className:`${e}`},a,{afterChange:e=>{v(e)}},{children:t}))]}))}},320:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Arrow=void 0;const i=a(0);a(1),t.Arrow=function({}){return(0,i.jsxs)("svg",Object.assign({viewBox:"0 0 100 100"},{children:[(0,i.jsx)("title",{children:"Next"}),(0,i.jsx)("path",{d:"M24,56L100,56L100,43L24,43L52,15L43,6L0,50L43,94L52,85L24,56Z",class:"arrow",transform:"translate(100, 100) rotate(180)"})]}))}},39:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Cross=void 0;const i=a(0);a(1),t.Cross=function({}){return(0,i.jsx)("svg",Object.assign({"aria-hidden":"true",focusable:"false",role:"presentation",class:"icon icon-close",viewBox:"0 0 15 15"},{children:(0,i.jsxs)("g",Object.assign({"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"})]}))}))}}}]);