"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[12],{120: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.BundleSelector=void 0;const r=a(0),n=(a(1),i(a(71))),s=a(20);t.BundleSelector=function({productPage:e,bundleSelected:t,onClickVariant:a,bundlePriceEach:i,currencySymbol:l,isTwelvePackSelected:o,featurePdpSelector:c,bundlesClass:d,selectedClass:u}){return(0,r.jsxs)("div",{className:`bundles ${d} ${"v1"===c&&n.default.bundlesV1}`,children:[e.options[0].values[0]&&(0,r.jsxs)("div",{onClick:()=>a(s.BundleSize["20 Pack"]),role:"button","aria-label":"Select bundle",className:`bundleOptionV1 ${n.default.bundleOptionV1}`,children:[(0,r.jsx)("span",{className:n.default.discountPercentage}),(0,r.jsx)("button",{className:`${t===s.BundleSize["20 Pack"]&&u}`,children:e.options[0].values[0]}),(0,r.jsx)("span",{})]}),e.options[0].values[1]&&(0,r.jsxs)("div",{onClick:()=>a(s.BundleSize["30 Pack"]),role:"button","aria-label":"Select bundle 2",className:`bundleOptionV1 ${n.default.bundleOptionV1}`,children:[(0,r.jsx)("span",{className:n.default.discountPercentage,children:"v1"===c?`Save ${Math.round(i[0].discountPercentage)}%`:""}),(0,r.jsx)("button",{className:`${t===s.BundleSize["30 Pack"]&&u}`,children:e.options[0].values[1]}),(0,r.jsxs)("span",{children:[`${l}${i[0].priceEach.toFixed(2)}`," EA."]})]}),e.options[0].values[2]&&(0,r.jsxs)("div",{onClick:()=>a(s.BundleSize["12 Pack"]),role:"button","aria-label":"Select bundle 3",className:`bundleOptionV1 ${n.default.bundleOptionV1}`,children:[(0,r.jsx)("span",{className:n.default.discountPercentage,children:"v1"===c?`Save ${Math.round(i[1].discountPercentage)}%`:""}),(0,r.jsx)("button",{className:`${o&&u}`,children:e.options[0].values[2]}),(0,r.jsxs)("span",{children:[`${l}${i[1].priceEach.toFixed(2)}`," EA."]})]})]})}},270:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BundleSelector=void 0;var i=a(120);Object.defineProperty(t,"BundleSelector",{enumerable:!0,get:function(){return i.BundleSelector}})},177:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SummaryContainer=void 0;const i=a(0),r=a(121),n=a(62);t.SummaryContainer=({styles:e,productPage:t,flavorGraph:a,isFirstElement:s})=>(0,i.jsxs)("div",{className:`${e.summaryContainer} summaryContainer ${s?e.firstElement:""} `,children:[(0,i.jsx)("div",{className:`${e.nutritionContainer} nutritionContainer`,children:(0,i.jsx)(n.ProductNutrition,{variant:"v1",productPage:t,title:"",nutritionContainerClass:"",nutritionImageContainerClass:"",nutritionArrowContainerClass:"",badgesContainerClass:""})}),(0,i.jsx)(r.DetailSummary,{title:"Description",children:(0,i.jsx)("p",{children:t.description})}),(0,i.jsxs)(r.DetailSummary,{title:"FAQs",children:[(0,i.jsx)("h2",{children:"1) What makes S+H bars different?"}),(0,i.jsx)("p",{children:"We believe in balance. So our bars contain 3 types of protein that support your whole body: muscles, skin, hair, joints, bones and more. Low sugar (only 2g) is better than no sugar, because its sustainable and allows us to use real ingredients and create real flavor while not over relying on fake sweeteners that are harmful to the digestive system. Health fats, diverse protein, natural sugars lead to a delicious taste and a great texture."}),(0,i.jsx)("h2",{children:"2) Does it actually taste good?"}),(0,i.jsx)("p",{children:"We design flavors like songs – with an interesting beginning, middle and end (with no funny after taste). We choose interesting flavors that will keep you coming back. But don’t just take our word for it, check out our reviews and see why so many people keep coming back for the uniquely satisfying flavors."}),(0,i.jsx)("h2",{children:"3) How fast will it ship?"}),(0,i.jsx)("p",{children:"Orders usually ship within 24 hours, and often the same day. Unlike most protein bar companies we own our own manufacturing and fulfill orders only steps away from where they are made. We will keep you updated with tracking information and if there are ever any issues please feel free to reach out at hello@starsandhoney.com."})]})]})},121: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.DetailSummary=void 0;const r=a(0),n=(a(1),i(a(72))),s=a(44),l=a(2);t.DetailSummary=function({title:e,children:t}){const[a,i]=(0,l.useState)(!1);return(0,r.jsxs)("div",{className:`${n.default.detailSummaryWrapper} detailSummaryWrapper`,children:[(0,r.jsxs)("div",{className:`${n.default.detailSummaryContainer} detailSummaryContainer`,onClick:()=>{i(!a)},role:"button","aria-label":"Nutrition & Ingredients",children:[(0,r.jsx)("span",{children:e}),(0,r.jsx)("span",{className:`${n.default.detailSummaryArrowContainer} ${a?n.default.detailSummaryArrowContainerOpen:""}`,children:(0,r.jsx)(s.Arrow,{})})]}),a&&(0,r.jsx)("div",{className:`${n.default.detailSummaryContentContainer} detailSummaryContentContainer`,children:t})]})}},118: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.FreeFromTags=void 0;const r=a(0),n=(a(1),i(a(68)));t.FreeFromTags=function({isVarietySet:e,isTwelvePack:t,productPageTags:a,mockTagsForVarietySet:i,freeFromContainerClass:s,freeFromContainerVarietySetClass:l,variant:o="default"}){const c=e||t?i:a;return"v1"===o?(0,r.jsxs)("div",{className:`freeFromContainerV1 ${n.default.freeFromContainerV1} ${s}`,children:[(0,r.jsxs)("div",{className:n.default.v1TagItem,children:[(0,r.jsx)("div",{className:n.default.v1TagIcon,children:(0,r.jsxs)("svg",{width:"41",height:"42",viewBox:"0 0 41 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("rect",{x:"0.5",y:"0.806641",width:"40",height:"40",rx:"20",stroke:"black"}),(0,r.jsxs)("g",{"clip-path":"url(#clip0_14847_18896)",children:[(0,r.jsx)("path",{d:"M17 14.3066H25V12.3066C25 12.0414 24.8946 11.7871 24.7071 11.5995C24.5196 11.412 24.2652 11.3066 24 11.3066H18C17.7348 11.3066 17.4804 11.412 17.2929 11.5995C17.1054 11.7871 17 12.0414 17 12.3066V14.3066Z",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M25 14.3066L26.094 16.0656C26.6861 17.017 26.9999 18.1151 27 19.2356V27.3066C27 27.8371 26.7893 28.3458 26.4142 28.7209C26.0391 29.0959 25.5304 29.3066 25 29.3066H17C16.4696 29.3066 15.9609 29.0959 15.5858 28.7209C15.2107 28.3458 15 27.8371 15 27.3066V19.2356C15.0001 18.1151 15.3139 17.017 15.906 16.0656L17 14.3066",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M19 24.3066C19 24.8371 19.2107 25.3458 19.5858 25.7209C19.9609 26.0959 20.4696 26.3066 21 26.3066C21.5304 26.3066 22.0391 26.0959 22.4142 25.7209C22.7893 25.3458 23 24.8371 23 24.3066C23 23.7762 22.7893 23.2675 22.4142 22.8924C22.0391 22.5174 21.5304 22.3066 21 22.3066C20.4696 22.3066 19.9609 22.5174 19.5858 22.8924C19.2107 23.2675 19 23.7762 19 24.3066Z",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M19 18.3066H23",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"})]}),(0,r.jsx)("path",{d:"M6 35L35 7",stroke:"black"}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_14847_18896",children:(0,r.jsx)("rect",{width:"24",height:"24",fill:"white",transform:"translate(9 8.30664)"})})})]})}),(0,r.jsx)("span",{className:`v1TagText ${n.default.v1TagText}`,children:"Dairy Free"})]}),(0,r.jsxs)("div",{className:n.default.v1TagItem,children:[(0,r.jsx)("div",{className:n.default.v1TagIcon,children:(0,r.jsxs)("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("rect",{x:"1.16406",y:"0.806641",width:"40",height:"40",rx:"20",stroke:"black"}),(0,r.jsxs)("g",{"clip-path":"url(#clip0_14847_18951)",children:[(0,r.jsx)("path",{d:"M21.6797 29.8203V26.0703",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M15.5931 17.8105L15.1631 19.4145C14.4511 22.0735 16.0291 24.8055 18.6871 25.5195C19.6841 25.7875 20.6801 26.0545 21.6771 26.3205V22.8805C21.5131 20.7755 20.0401 19.0015 18.0011 18.4545L15.5931 17.8105Z",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M23.4086 19.4703C23.8626 19.0163 24.2236 18.4763 24.4696 17.8833C24.7156 17.2893 24.8416 16.6533 24.8416 16.0103C24.8416 15.3673 24.7156 14.7313 24.4696 14.1383C24.2236 13.5443 23.8636 13.0053 23.4086 12.5503L21.6786 10.8203L19.9486 12.5503C19.4946 13.0043 19.1336 13.5443 18.8886 14.1383C18.6426 14.7323 18.5166 15.3683 18.5156 16.0103C18.5156 16.6533 18.6426 17.2893 18.8886 17.8833C19.1346 18.4773 19.4946 19.0163 19.9486 19.4703",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M27.7647 17.8105L28.1947 19.4145C28.9067 22.0735 27.3287 24.8055 24.6697 25.5195C23.6727 25.7875 22.6757 26.0545 21.6797 26.3205V22.8805C21.8437 20.7755 23.3167 19.0015 25.3567 18.4545L27.7647 17.8105Z",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"})]}),(0,r.jsx)("path",{d:"M7 34.5908L36 7.59082",stroke:"black","stroke-width":"1",children:(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_14847_18941",children:(0,r.jsx)("rect",{width:"24",height:"24",fill:"white",transform:"translate(9 8.30664)"})})})})]})}),(0,r.jsx)("span",{className:`v1TagText ${n.default.v1TagText}`,children:"Soy Free"})]}),(0,r.jsxs)("div",{className:n.default.v1TagItem,children:[(0,r.jsx)("div",{className:n.default.v1TagIcon,children:(0,r.jsxs)("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("rect",{x:"0.835938",y:"0.806641",width:"40",height:"40",rx:"20",stroke:"black"}),(0,r.jsx)("path",{d:"M12.8359 29.3064L24.0359 18.1064",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M14.0115 21.7308L15.2355 20.5068L16.4595 21.7308C16.9822 22.2556 17.2757 22.9661 17.2757 23.7068C17.2757 24.4475 16.9822 25.1581 16.4595 25.6828L15.2355 26.9068L14.0115 25.6828C13.4888 25.1581 13.1953 24.4475 13.1953 23.7068C13.1953 22.9661 13.4888 22.2556 14.0115 21.7308Z",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M17.2068 18.5306L18.4308 17.3066L19.6548 18.5306C20.1776 19.0554 20.471 19.7659 20.471 20.5066C20.471 21.2473 20.1776 21.9579 19.6548 22.4826L18.4308 23.7066L17.2068 22.4826C16.6841 21.9579 16.3906 21.2473 16.3906 20.5066C16.3906 19.7659 16.6841 19.0554 17.2068 18.5306Z",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M20.41 15.3304L21.634 14.1064L22.858 15.3304C23.3807 15.8552 23.6742 16.5657 23.6742 17.3064C23.6742 18.0471 23.3807 18.7577 22.858 19.2824L21.634 20.5064L20.41 19.2824C19.8872 18.7577 19.5938 18.0471 19.5938 17.3064C19.5938 16.5657 19.8872 15.8552 20.41 15.3304Z",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M27.2313 13.3066H28.8313V14.9066C28.8313 15.7553 28.4941 16.5693 27.894 17.1694C27.2939 17.7695 26.4799 18.1066 25.6313 18.1066H24.0312V16.5066C24.0312 15.6579 24.3684 14.844 24.9685 14.2439C25.5686 13.6438 26.3826 13.3066 27.2313 13.3066Z",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M20.4104 25.6834L21.6344 26.9074L20.4104 28.1314C19.8856 28.6541 19.1751 28.9476 18.4344 28.9476C17.6937 28.9476 16.9832 28.6541 16.4584 28.1314L15.2344 26.9074L16.4584 25.6834C16.9832 25.1607 17.6937 24.8672 18.4344 24.8672C19.1751 24.8672 19.8856 25.1607 20.4104 25.6834Z",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M23.6135 22.4832L24.8375 23.7072L23.6135 24.9312C23.0887 25.4539 22.3782 25.7474 21.6375 25.7474C20.8968 25.7474 20.1863 25.4539 19.6615 24.9312L18.4375 23.7072L19.6615 22.4832C20.1863 21.9605 20.8968 21.667 21.6375 21.667C22.3782 21.667 23.0887 21.9605 23.6135 22.4832Z",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M26.8166 19.283L28.0406 20.507L26.8166 21.731C26.2918 22.2537 25.5813 22.5472 24.8406 22.5472C24.0999 22.5472 23.3894 22.2537 22.8646 21.731L21.6406 20.507L22.8646 19.283C23.3894 18.7603 24.0999 18.4668 24.8406 18.4668C25.5813 18.4668 26.2918 18.7603 26.8166 19.283Z",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M7 35L35 7",stroke:"black"})]})}),(0,r.jsx)("span",{className:`v1TagText ${n.default.v1TagText}`,children:"Gluten Free"})]}),(0,r.jsxs)("div",{className:n.default.v1TagItem,children:[(0,r.jsx)("div",{className:n.default.v1TagIcon,children:(0,r.jsxs)("svg",{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("rect",{x:"1",y:"0.806641",width:"40",height:"40",rx:"20",stroke:"black"}),(0,r.jsx)("g",{"clip-path":"url(#clip0_14847_18975)",children:(0,r.jsx)("path",{d:"M13.4004 12.6758H16.0996C17.5186 12.6755 18.8885 13.1884 19.9492 14.1162C21.0096 15.0438 21.6877 16.3219 21.8584 17.708L21.9863 18.7471L22.7148 17.9941C23.2545 17.4365 23.9038 16.9926 24.623 16.6895C25.3424 16.3863 26.1169 16.2303 26.8994 16.2314H29.5996C29.7077 16.2314 29.8102 16.274 29.8848 16.3477C29.9591 16.4211 30 16.519 30 16.6201V17.5088C30 19.0242 29.3905 20.4792 28.3037 21.5527C27.2165 22.6265 25.7404 23.2314 24.2002 23.2314H21.9004V27.2871C21.9003 27.3881 21.8594 27.4862 21.7852 27.5596C21.7106 27.6332 21.6081 27.6758 21.5 27.6758C21.3919 27.6758 21.2894 27.6332 21.2148 27.5596C21.1406 27.4862 21.0997 27.3881 21.0996 27.2871V20.5645H18.7998C17.2596 20.5644 15.7835 19.9605 14.6963 18.8867C13.6093 17.8132 13.0001 16.3583 13 14.8428V13.0645L13.0078 12.9893C13.0228 12.9157 13.0596 12.8469 13.1152 12.792C13.1898 12.7184 13.2924 12.6758 13.4004 12.6758Z",stroke:"black"})}),(0,r.jsx)("path",{d:"M7 35L35 6",stroke:"black"}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_14847_18975",children:(0,r.jsx)("rect",{width:"24",height:"24",fill:"white",transform:"translate(9.5 8.30664)"})})})]})}),(0,r.jsx)("span",{className:`v1TagText ${n.default.v1TagText}`,children:"Seed Oil Free"})]})]}):(0,r.jsx)("div",{className:`freeFromContainer ${n.default.freeFromContainer} ${s} ${e&&l}`,children:c.map(((e,t)=>(0,r.jsx)("span",{children:e.substring(1).toLowerCase().includes("sugar")?"STEVIA":e.substring(1)},t)))})}},38: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.ProductDetails=t.mockProductDetailData=t.dynamicBoxId30pack=t.dynamicBoxId20pack=void 0;const r=a(0),n=a(1),s=i(a(52)),l=a(32),o=a(2),c=a(28),d=a(115),u=a(51),h=a(22),p=a(20),m=a(61),v=a(4),f=a(39),x=a(176),C=a(116),g=a(266),b=a(117),S=a(118),j=a(119),P=a(62),y=a(270),k=a(177),w=a(271),$=a(24),T=i(a(124));"undefined"!=typeof window&&(window.Buffer=u.Buffer);const{mainContainer:I,mainContainerVarietySet:N,categoryLabel:_,title:V,titleTwelvePack:B,starsContainer:F,starsRating:D,ratingNumber:O,varietySetContainer:L,linkVarietySet:A,buttonGiftSet:E,linkGiftSet:M,varietySetContainerHolidays:H,varietySetContainerForVarietySetPDP:R,description:z,freeFromContainer:U,freeFromContainerVarietySet:Y,nutritionContainer:G,nutritionImageContainer:Z,bundles:K,selected:W,price:q,regularPrice:X,regularPriceContainer:Q,regularPriceContainerTwelvePack:J,saleText:ee,priceVarietySet:te,productSubscription:ae,productSubscriptionIsVariety:ie,subscriptionInfo:re,showContainer:ne,backgroundPopup:se,labelShip:le,labelShipVarietySet:oe,labelShipContainer:ce,addButton:de,varietyHoverName:ue,moreFlavorsAlert:he,disabled:pe,addButtonVarietySet:me,nutritionArrowContainer:ve,badgesContainer:fe,buttonLoading:xe,buttonLoader:Ce,freeHatContainer:ge,plusSymbol:be,priceContainer:Se,currencyCodeStyle:je,freeBadge:Pe,brandHat:ye,brandHatItalic:ke,hatFlex:we,limitedEdition:$e,shippingDate:Te,shippingDateIcon:Ie,shippingDateText:Ne}=s.default;function _e({addToBagText:e,featureAddToCart:t,calculatedPrice:a,calculatedRegularPrice:i,currencySymbol:n}){return(0,r.jsxs)("div",{children:[e,!!t&&(0,r.jsx)("span",{className:`addButtonOriginalPrice ${s.default.addButtonOriginalPrice}`,children:`${n}${a.toFixed(2)}`}),!!t&&!(0,$.isSimilarPrice)(a,i)&&i>0&&(0,r.jsx)("span",{className:`addButtonRegularPrice ${s.default.addButtonRegularPrice}`,children:`${n}${i.toFixed(2)}`})]})}t.dynamicBoxId20pack="640ff717-7950-4cd1-ac10-b096ebe57ac4",t.dynamicBoxId30pack="f665c7d6-7709-48ee-aa76-dff869b362e0",t.mockProductDetailData={rating:{reviewsHref:"https://starsandhoney.com/pages/reviews"},varietyButton:{href:"/products/signature-flavors-variety-set",text:"Variety Set"},varsityHatButton:{href:"/products/signature-tasting-gift-set-12-pack",text:"GIFT SET"},mockTagsForVarietySet:["⃠ 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"},variantId12PackOneTime:{variantId:"47723161420009",productId:"8747006623977"}},dynamicBundleCollectionId:"427067900137"},t.ProductDetails=function({productPage:e,variant:a,useSharedState:i,twelvePack:u,twelvePackEnabled:I,bundleSelected:ge,setBundleSelected:be,isSubscriptionEnabled:Pe,featureSalePrice:ye,featureShippingDate:ke,featureTwelvePackPrice:we,isMobile:Ve=!1,productsExpandYourPalate:Be,featureGoogleBadge:Fe,subscriptionClubData:De,featureTwelvePackDesign:Oe,featureCompareAtText:Le,featurePdpSelector:Ae,flavorGraph:Ee,featureAddToCart:Me,featurePdpDesign:He,featurePurchaseType:Re,featureShowSubRegularPrice:ze,featureFullPriceCompare:Ue,featureSubscriptionBox:Ye,featureStickyAddButton:Ge}){const[Ze,Ke]=(0,o.useState)(!0),We=(0,o.useRef)(null),{selectedSubscription:qe,setSelectedSubscription:Xe,showSubscriptionInfo:Qe,setShowSubscriptionInfo:Je,varietySetIsComplete:et,setVarietySetIsComplete:tt,selectedFlavorSet:at,setSelectedFlavorSet:it,addFlavorsAlert:rt,setAddFlavorsAlert:nt,loadingAddToCart:st,setLoadingAddToCart:lt,isOOS:ot,setIsOOS:ct,isUnavailable:dt,setIsUnavailable:ut,twelvePackVariantId:ht,setTwelvePackVariantId:pt,isVarietySet:mt,isTwelvePackSelected:vt,isTwelvePack:ft,isUSA:xt,title:Ct,calculatedPrice:gt,calculatedRegularPrice:bt,currentPriceVariant:St,currencySymbol:jt,currencyCode:Pt,bundlePriceEach:yt,hasLimitedTag:kt,limitedProductDetailData:wt,handleIsInProductsExpandYourPalate:$t,subNotEnabled:Tt,isLimitedEdition:It,isProductAvailableInCurrentCountry:Nt,saleText:_t,addToBagText:Vt,handleOptionChange:Bt,handleSubscriptionInfo:Ft,addToBagHandler:Dt,onClickVariant:Ot,onClickSubscription:Lt}=(0,g.useProductDetails)({useSharedState:i,productPage:e,twelvePack:u,bundlePackVarietySetHandle:p.bundlePackVarietySetHandle,twelvePackHandle:p.twelvePackHandle,twelvePackStoreHandle:p.twelvePackStoreHandle,productsExpandYourPalate:Be,bundleSelected:ge,setBundleSelected:be,featureTwelvePackPrice:we,featureTwelvePackDesign:Oe,featureSalePrice:ye,featureCompareAtText:Le,featurePurchaseType:Re,isSubscriptionEnabled:Pe,subscriptionClubData:De,dynamicBoxId20pack:t.dynamicBoxId20pack,dynamicBoxId30pack:t.dynamicBoxId30pack,logOutcome:v.logOutcome,featureShowSubRegularPrice:ze,featureFullPriceCompare:Ue,featureSubscriptionBox:Ye});return(0,o.useEffect)((()=>{if(!We.current)return;const e=new IntersectionObserver((([e])=>{Ke(e.isIntersecting)}),{root:null,threshold:.01});return e.observe(We.current),()=>e.disconnect()}),[]),(0,r.jsxs)("div",{className:`${s.default.mainContainer} ProductDetailsContainer ${(mt||ft)&&N}\n ${"v1"===Ae&&`${s.default.mainContainerSelectorV1} mainContainerSelectorV1`}\n ${"v2"===Ae&&`${s.default.mainContainerSelectorV2} mainContainerSelectorV2`}\n ${"default"!==He&&s.default.mainContainerV1}`,children:[(0,r.jsx)("p",{className:`categoryLabel ${_}`,children:"Collagen Protein Bar"}),(0,r.jsx)("h1",{className:`${V} productTitle ${B}`,dangerouslySetInnerHTML:{__html:Ct}}),(0,r.jsx)("div",{className:`starsContainer ${F}`,children:ft||e.hideReviews||!e.reviews?.rating_average?e?.subheading&&(0,r.jsxs)("div",{className:`subheadingContainer ${s.default.subheadingContainer}`,children:[(0,r.jsx)("img",{src:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/isologo.svg",alt:"limited edition",width:10,height:11}),(0,r.jsx)("p",{className:`${s.default.subheading} subheading`,children:e?.subheading})]}):(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("a",{className:`starsRating ${D}`,href:t.mockProductDetailData.rating.reviewsHref,children:(0,r.jsx)(l.RatingStars,{rating:e.reviews?.rating_average,numberOfStars:5,starDimension:"20px",starRatedColor:"#000000",starEmptyColor:"#00000055"})}),(0,r.jsxs)("p",{className:O,children:["(",(0,c.truncateOneDecimal)(e?.reviews?.rating_average),")"]})]})}),"v1"===Ae&&!mt&&(0,r.jsx)(b.SelectFlavorList,{currentHandle:e.handle,flavors:Be,selectedFlavorSet:at,varietySetHref:t.mockProductDetailData.varietyButton.href,onFlavorSelect:e=>{at.includes(e)?it(at.filter((t=>t!==e))):it([...at,e])}}),"v2"===Ae&&!mt&&(0,r.jsx)(w.SelectFlavorV2Keen,{currentHandle:e.handle,flavors:Be,isVarietySet:mt,varietySetHref:t.mockProductDetailData.varietyButton.href,onFlavorSelect:e=>{at.includes(e)?it(at.filter((t=>t!==e))):it([...at,e])}}),("default"===Ae||mt)&&(0,r.jsxs)(n.Fragment,{children:[(0,r.jsxs)("div",{className:`swatches varietySetContainer ${L} ${mt&&R} ${It&&H}`,children:[Be.filter((e=>!e.tags.includes("limited"))).map(((e,t)=>(0,r.jsx)("div",{className:"varietyDataSelector",children:(0,r.jsxs)("a",{href:`/products/${e.handle}`,className:"varietyDataSelectorLink",children:[(0,r.jsx)("img",{src:e.swatchImage,alt:`swatch for ${e.title}`,width:60,height:60}),(0,r.jsx)("div",{className:`varietyHoverName ${ue}`,children:(0,r.jsx)("span",{children:e.title})})]})},t))),(0,r.jsx)("button",{children:(0,r.jsx)("a",{className:`linkVarietySet ${A}`,href:t.mockProductDetailData.varietyButton.href,children:t.mockProductDetailData.varietyButton.text})})]}),It&&(wt?.length>0||I)?(0,r.jsxs)("div",{className:`varietySetContainer ${L} ${mt&&R} ${It&&H}`,children:[Be.filter((e=>e.tags.includes("limited"))).map(((e,t)=>(0,r.jsx)("div",{className:"varietyDataSelector",children:(0,r.jsxs)("a",{href:`/products/${e.handle}`,className:"varietyDataSelectorLink",children:[(0,r.jsx)("img",{src:e.swatchImage,alt:`swatch for ${e.title}`,width:60,height:60}),(0,r.jsx)("div",{className:`varietyHoverName ${ue}`,children:(0,r.jsx)("span",{children:e.title})})]})},t))),wt?.length>0&&(0,r.jsx)("p",{class:`limitedEdition ${$e}`,children:"LIMITED EDITION"})]}):null]}),I&&!It&&(0,r.jsx)("button",{className:`buttonGiftSet ${E}`,style:{marginBottom:"10px"},children:(0,r.jsx)("a",{className:`linkGiftSet ${M}`,href:t.mockProductDetailData.varsityHatButton.href,children:t.mockProductDetailData.varsityHatButton.text})}),"default"===He&&(0,r.jsx)("p",{className:`description ${z}`,style:{fontSize:mt?"12px":"14px",lineHeight:mt?"18px":"21px",letterSpacing:mt?"normal":"-0.02em;",marginTop:It?"8px":"0px"},children:vt&&u?u.description:e.description}),"default"===He&&(0,r.jsx)(S.FreeFromTags,{isVarietySet:mt,isTwelvePack:ft,productPageTags:e.tagsBadge,mockTagsForVarietySet:t.mockProductDetailData.mockTagsForVarietySet,freeFromContainerClass:U,freeFromContainerVarietySetClass:Y}),!mt&&!ft&&"default"===He&&(0,r.jsx)(P.ProductNutrition,{variant:"default",productPage:e,title:Ct,nutritionContainerClass:G,nutritionImageContainerClass:Z,nutritionArrowContainerClass:ve,badgesContainerClass:fe}),!mt&&!ft&&(0,r.jsx)(y.BundleSelector,{productPage:e,bundleSelected:ge,onClickVariant:Ot,bundlePriceEach:yt,currencySymbol:jt,isTwelvePackSelected:vt,featurePdpSelector:He,bundlesClass:K,selectedClass:W}),mt&&(0,r.jsx)(d.StepSelection,{productPage:e,bundleSelected:ge,setBundleSelected:be,bundlePriceEach:yt,varietySetIsComplete:et,setVarietySetIsComplete:tt,selectedFlavorSet:at,setSelectedFlavorSet:it,currencySymbol:jt,productsExpandYourPalate:Be,countryCode:i.countryCode,featureInternationalization:i.featureInternationalization,twelvePackEnabled:I,featurePdpDesign:He}),ft&&(0,r.jsx)(m.TwelvePackDetails,{isMobile:Ve,isVarietySet:mt,productsExpandYourPalate:Be}),(0,r.jsxs)("div",{className:`priceContainer ${Se}`,children:[(0,r.jsxs)("div",{className:`price ${q} ${mt&&te}`,children:[i.featureInternationalization&&(0,r.jsx)("div",{className:`currencyCodeStyle ${je}`,children:`${Pt} `}),`${jt}${qe===p.PurchaseType.subscription?(0,$.roundIfClose)(gt).toFixed(2):gt.toFixed(2)}`]}),!!bt&&!(0,$.isSimilarPrice)(gt,bt)&&(0,r.jsxs)("div",{className:`regularPriceContainer ${Q} ${u&&vt?J:""} ${mt&&te}`,children:[(0,r.jsxs)("span",{className:`regularPrice ${X}`,children:["$",(0,$.roundIfClose)(bt).toFixed(2)]}),(0,r.jsx)("span",{className:`sale ${ee}`,children:_t})]})]}),(0,r.jsx)(j.ProductSubscription,{variant:He,selectedSubscription:qe,subscriptionClubData:De,subNotEnabled:Tt,isVarietySet:mt,productSubscriptionClass:ae,productSubscriptionIsVarietyClass:ie,subscriptionInfoClass:re,backgroundPopupClass:se,showSubscriptionInfo:Qe,showContainerClass:ne,onOptionChange:Bt,onClickSubscription:Lt,handleSubscriptionInfo:Ft,featurePurchaseType:Re,featureSubscriptionBox:Ye}),vt&&Oe&&xt&&mt&&(0,r.jsx)(C.TwelvePackPurchaseOptions,{variant:He,twelvePack:u,twelvePackEnabled:I,isSubscriptionEnabled:Pe,selectedSubscription:qe,onClickSubscription:Lt,twelvePackVariantId:ht,setTwelvePackVariantId:pt,subscriptionClubData:De,priceFromVariant:i.priceFromVariant,featureTwelvePackDesign:Oe}),"v1"===He&&(0,r.jsx)(S.FreeFromTags,{isVarietySet:mt,isTwelvePack:ft,productPageTags:e.tagsBadge,mockTagsForVarietySet:t.mockProductDetailData.mockTagsForVarietySet,freeFromContainerClass:U,freeFromContainerVarietySetClass:Y,variant:"v1"}),"v1"===He&&(0,r.jsx)(k.SummaryContainer,{isFirstElement:!e?.nutritionalImage?.reference?.image?.originalSrc,styles:s.default,productPage:e,flavorGraph:Ee}),(0,r.jsxs)("div",{className:`labelShipContainer ${ce}`,style:{justifyContent:xt?"space-between":"center"},children:[(0,r.jsx)("p",{className:`labelShip ${le} ${mt&&oe}`,children:xt&&(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(x.TruckIcon,{variant:"secondary"}),(0,r.jsx)("span",{children:"Always Free Shipping"})]})}),Fe&&(0,r.jsx)(f.GoogleBadge,{})]}),(0,r.jsxs)("div",{ref:We,onClick:Dt,role:"button","aria-label":"Add to bag",className:`addButton ${de} \n ${(0,h.isDisabled)({isVarietySet:mt,varietySetIsComplete:et,isProductAvailableInCurrentCountry:Nt,isTwelvePackSelected:vt,isOOS:ot,isUnavailable:dt,calculatedPrice:gt,handleIsInProductsExpandYourPalate:$t})&&pe}\n\t\t\t\t${mt&&me}\n\t\t\t\t${st&&xe}\n\t\t\t\t`,children:[(0,r.jsxs)("button",{children:[(0,r.jsx)(_e,{addToBagText:Vt,featureAddToCart:Me,calculatedPrice:gt,calculatedRegularPrice:bt,currencySymbol:jt}),st&&(0,r.jsx)("span",{className:Ce,children:(0,r.jsxs)("svg",{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"})]})})]}),rt&&(0,r.jsx)("div",{className:he,children:"Please add more flavors"})]}),Ge&&!Ze&&(0,r.jsx)(T.default,{onClick:Dt,isVarietySet:mt,varietySetIsComplete:et,isProductAvailableInCurrentCountry:Nt,isTwelvePackSelected:vt,isOOS:ot,isUnavailable:dt,calculatedPrice:gt,calculatedRegularPrice:bt,handleIsInProductsExpandYourPalate:$t,loadingAddToCart:st,addToBagText:Vt,featureAddToCart:Me,currencySymbol:jt,isUSA:xt,featureGoogleBadge:Fe}),ke&&(vt&&u?.shippingDate||e?.shippingDate)&&(0,r.jsxs)("div",{className:`shippingDate ${Te}`,children:[(0,r.jsx)("div",{className:`shippingDateIcon ${Ie}`,children:(0,r.jsx)(x.TruckIcon,{})}),(0,r.jsx)("div",{className:`shippingDateText ${Ne}`,children:vt?u?.shippingDate:e?.shippingDate})]})]})}},62: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.ProductNutrition=void 0;const r=a(0),n=(a(1),i(a(70))),s=a(44),l=a(2);t.ProductNutrition=function({variant:e,productPage:t,title:a,nutritionContainerClass:i,nutritionImageContainerClass:o,nutritionArrowContainerClass:c,badgesContainerClass:d}){const[u,h]=(0,l.useState)(!1),p={nutritionContainer:`nutritionContainer ${"v1"===e?n.default.v1NutritionContainer:i}`,nutritionImageContainer:`nutritionImageContainer ${"v1"===e?n.default.v1NutritionImageContainer:o}`,nutritionArrowContainer:`nutritionArrowContainer ${"v1"===e?n.default.v1NutritionArrowContainer:c}`,badgesContainer:`badgesContainer ${"v1"===e?n.default.v1BadgesContainer:d}`};return t?.nutritionalImage?.reference?.image?.originalSrc?(0,r.jsxs)("div",{className:`${n.default.nutritionContainerWrapper} nutritionContainerWrapper`,children:[(0,r.jsxs)("div",{className:p.nutritionContainer,onClick:()=>{h(!u)},role:"button","aria-label":"Nutrition & Ingredients",children:[(0,r.jsx)("span",{children:"Nutrition and Ingredients"}),(0,r.jsx)("span",{className:`${p.nutritionArrowContainer} ${u?n.default.nutritionArrowContainerOpen:""}`,children:(0,r.jsx)(s.Arrow,{})})]}),u&&(0,r.jsxs)("div",{className:p.nutritionImageContainer,children:[(0,r.jsx)("img",{src:t?.nutritionalImage?.reference.image.originalSrc,alt:`nutritional info for ${a} `,height:150,width:400}),(0,r.jsx)("p",{children:t?.nutritionalIngredients?.value}),(0,r.jsx)("p",{children:t?.allergensPanelText?.value}),(0,r.jsx)("div",{className:p.badgesContainer,children:t?.nutritionalBadges?.references.edges?.map(((e,t)=>(0,r.jsx)("img",{src:e.node.image.originalSrc,alt:e.node.image.altText||"Nutritional Badge",style:{height:"30px"}},t)))})]})]}):null}},119: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.ProductSubscription=void 0;const r=a(0),n=(a(1),i(a(69))),s=a(40),l=a(267),o=a(20),c=a(268),d=a(269);t.ProductSubscription=function({variant:e,selectedSubscription:t,subscriptionClubData:a,subNotEnabled:i,isVarietySet:u,productSubscriptionClass:h,productSubscriptionIsVarietyClass:p,subscriptionInfoClass:m,backgroundPopupClass:v,showSubscriptionInfo:f,showContainerClass:x,onOptionChange:C,onClickSubscription:g,handleSubscriptionInfo:b,featurePurchaseType:S,featureSubscriptionBox:j}){return(0,r.jsxs)("div",{className:`productSubscription ${h} ${u&&p}\n ${"v1"===e&&"v1"}\n ${"v1"===e&&n.default.productSubscriptionV1}\n ${S===o.PurchaseType.subscription&&`PurchaseTypeSubscription ${n.default.purchaseTypeSubscription}`}\n `,children:[(0,r.jsxs)("div",{onClick:e=>C(o.PurchaseType.oneTime,e),role:"button","aria-label":"One-time purchase",className:`oneTimePurchase ${j?n.default.oneTimePurchase:null}`,children:[(0,r.jsx)("input",{type:"radio",id:o.PurchaseType.oneTime,name:"subscription",checked:t===o.PurchaseType.oneTime,readOnly:!0}),(0,r.jsx)("span",{htmlFor:o.PurchaseType.oneTime,children:"ONE-TIME PURCHASE"}),!!a?.one_time_pill&&(0,r.jsx)("label",{children:a?.one_time_pill})]}),(0,r.jsxs)("div",{className:`subscriptionClubContainer ${j?n.default.subscriptionClubContainer:null}`,onClick:g,children:[(0,r.jsxs)("div",{onClick:g,disabled:i,role:"button","aria-label":"Subscription club",children:[(0,r.jsx)("input",{type:"radio",id:o.PurchaseType.subscription,name:"subscription",checked:t===o.PurchaseType.subscription,readOnly:!0}),(0,r.jsx)("span",{htmlFor:o.PurchaseType.subscription,children:"SUBSCRIPTION CLUB"}),(0,r.jsx)("label",{htmlFor:o.PurchaseType.subscription,children:i?"Not available":a?.badge_text||"Save 10%"}),!!a?.details&&!j&&(0,r.jsxs)("button",{onClick:b,role:"button","aria-label":"Subscription details",children:["Details",(0,r.jsxs)("div",{className:`subscriptionInfo ${m} ${f&&x}`,children:[(0,r.jsx)("div",{children:(0,r.jsx)(s.Cross,{})}),(0,r.jsx)("ul",{children:a?.details.map(((e,t)=>(0,r.jsxs)("li",{children:[(0,r.jsx)(l.ArrowRightPopup,{}),e]},t)))})]})]})]}),!!a?.details&&j&&(0,r.jsx)("div",{className:`subscriptionBoxDetails ${n.default.subscriptionBoxDetails}`,children:(0,r.jsx)("ul",{children:a?.details.map(((e,t)=>(0,r.jsxs)("li",{children:[e?.toLowerCase()?.includes("gift")?(0,r.jsx)(c.GiftIcon,{}):(0,r.jsx)(d.ArrowRightIcon,{}),e]},t)))})})]}),!!a?.text_below&&(0,r.jsx)("div",{className:`textBelow ${n.default.textBelow}`,children:a?.text_below}),(0,r.jsx)("div",{className:`backgroundPopup ${v} ${f&&x}`,onClick:b,role:"button","aria-label":"Subscription details"})]})}},117: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.SelectFlavorList=void 0;const r=a(0),n=(a(1),i(a(67)));t.SelectFlavorList=function({currentHandle:e,flavors:t=[],selectedFlavorSet:a=[],onFlavorSelect:i,varietySetHref:s}){const l=e=>{window.location.href=`/products/${t[e].handle}`},o=[...t].sort(((e,t)=>{const a=e.tags.includes("limited"),i=t.tags.includes("limited");return a&&!i?1:!a&&i?-1:0}));return(0,r.jsxs)("div",{className:`${n.default.selectFlavorContainer} selectFlavorContainer`,children:[(0,r.jsx)("h2",{className:`${n.default.title} title`,children:"SELECT YOUR FLAVOR"}),(0,r.jsx)("div",{className:`${n.default.flavorList} flavorList`,children:o.map(((a,i)=>{const s=t.findIndex((e=>e.id===a.id));return(0,r.jsxs)("div",{className:`${n.default.flavorItem} flavorItem ${e===a.handle?n.default.selected:""}`,onClick:()=>l(s),children:[(0,r.jsx)("div",{className:`${n.default.flavorImageContainer} flavorImageContainer`,children:(0,r.jsx)("img",{src:a.swatchImage||a.handle,alt:`${a.title} flavor`,className:`${n.default.flavorImage} flavorImage`,width:45,height:45})}),(0,r.jsxs)("div",{className:`${n.default.flavorInfo} flavorInfo`,children:[(0,r.jsx)("span",{className:`${n.default.flavorName} flavorName`,children:a.title}),a.tags.includes("limited")&&(0,r.jsx)("span",{className:`${n.default.limitedEdition} limitedEdition`,children:"LIMITED EDITION"})]}),(0,r.jsxs)("div",{className:`${n.default.radioButton} radioButton`,children:[(0,r.jsx)("input",{type:"radio",name:"flavor",id:a.id,checked:e===a.handle,onChange:()=>l(s),className:`${n.default.radioInput} radioInput`}),(0,r.jsx)("label",{htmlFor:a.id,className:`${n.default.radioLabel} radioLabel`})]})]},a.id)}))}),(0,r.jsx)("a",{className:`${n.default.buildVarietySetButton} buildVarietySetButton`,href:s,"aria-label":"Build Variety Set",children:"BUILD VARIETY SET"})]})}},122: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.SelectFlavorV2=void 0;const r=a(0),n=(a(1),i(a(73)));a(29),a(30);const s=i(a(31));a(74);const l=a(2);t.SelectFlavorV2=function({currentHandle:e,flavors:t=[],onFlavorSelect:a,varietySetHref:i}){const o=e=>{window.location.href=`/products/${t[e].handle}`},c=[...t].sort(((e,t)=>{const a=e.tags.includes("limited"),i=t.tags.includes("limited");return a&&!i?1:!a&&i?-1:0})),d={dots:!0,speed:500,infinite:!0,variableWidth:!0,onSwipe:()=>p(!0),onSwipeEnd:()=>setTimeout((()=>p(!1)),100),swipeToSlide:!0,centerMode:!0,initialSlide:c.findIndex((t=>t.handle===e))||0},u=(0,l.useRef)(null),[h,p]=(0,l.useState)(!1),[m,v]=(0,l.useState)(0),[f,x]=(0,l.useState)(0);return(0,r.jsxs)("div",{className:`${n.default.selectFlavorContainer} selectFlavorContainer`,children:[(0,r.jsx)("h2",{className:`${n.default.title} title`,children:"SELECT YOUR FLAVOR"}),(0,r.jsx)("div",{onMouseDown:()=>{p(!1)},onMouseMove:()=>{p(!0)},onMouseUp:()=>{setTimeout((()=>p(!1)),100)},onTouchStart:e=>{v(e.touches[0].clientX),x(e.touches[0].clientY),p(!1)},onTouchMove:()=>{p(!0)},onTouchEnd:e=>{const t=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY,i=Math.abs(t-m),r=Math.abs(a-f);i<10&&r<10&&p(!1),setTimeout((()=>p(!1)),100)},children:(0,r.jsx)(s.default,{ref:u,arrows:!1,className:`${n.default.flavorList} flavorList`,...d,children:c.map(((a,i)=>{const s=t.findIndex((e=>e.id===a.id));return(0,r.jsx)("div",{role:"button",className:`${n.default.flavorItem} flavorItem ${a.tags.includes("limited")?n.default.limitedEdition:""}`,onClick:()=>(e=>{h||o(e)})(s),onTouchEnd:()=>(e=>{h||o(e)})(s),children:(0,r.jsx)("div",{className:`${n.default.flavorImageContainer} flavorImageContainer ${e===a.handle?n.default.selected:""}`,children:(0,r.jsx)("img",{src:a.swatchImage||a.handle,alt:`${a.title} flavor`,className:n.default.flavorImage,width:60,height:60})})},a.id)}))})}),(0,r.jsx)("a",{className:`${n.default.buildVarietySetButton} buildVarietySetButton`,href:i,"aria-label":"Build Variety Set",children:"BUILD VARIETY SET"})]})}},123: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.SelectFlavorV2Keen=void 0;const r=a(0),n=(a(1),a(2)),s=a(272);a(273);const l=i(a(75));function o(e){const t=e.disabled?` arrow-disabled ${l.default.arrowDisabled}`:"";return(0,r.jsxs)("svg",{onClick:e.onClick,className:`arrow ${l.default.arrow} ${e.left?`arrow-left ${l.default.arrowLeft}`:`arrow-right ${l.default.arrowRight}`} ${t}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[e.left&&(0,r.jsx)("path",{d:"M16.67 0l2.83 2.829-9.339 9.175 9.339 9.167-2.83 2.829-12.17-11.996z"}),!e.left&&(0,r.jsx)("path",{d:"M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z"})]})}t.SelectFlavorV2Keen=function({currentHandle:e,flavors:t=[],onFlavorSelect:a,varietySetHref:i,isVarietySet:c}){const d=[...t].sort(((e,t)=>{const a=e.tags.includes("limited"),i=t.tags.includes("limited");return a&&!i?1:!a&&i?-1:0})),u=Math.max(d.findIndex((t=>t.handle===e)),0),[h,p]=(0,s.useKeenSlider)({initial:u,loop:!0,mode:"free",slides:{origin:"center",perView:"auto",spacing:0}}),[m,v]=(0,n.useState)(u);return(0,n.useEffect)((()=>{if(p.current){const e=()=>{const e=p.current;e&&e.track&&e.track.details&&v(e.track.details.abs||0)};return p.current.on("slideChanged",e),()=>{}}}),[p]),(0,r.jsxs)("div",{className:`${l.default.selectFlavorContainer} selectFlavorContainer`,children:[(0,r.jsx)("h2",{className:`${l.default.title} title`,children:c?"OTHERS FLAVORS":"SELECT YOUR FLAVOR"}),(0,r.jsxs)("div",{className:`${l.default.flavorList} flavorList`,children:[(0,r.jsxs)("div",{style:{height:"80px",position:"absolute",width:"100%"},children:[(0,r.jsx)(o,{disabled:!1,left:!0,onClick:e=>e.stopPropagation()||p.current?.prev()}),(0,r.jsx)(o,{disabled:!1,left:!1,onClick:e=>e.stopPropagation()||p.current?.next()})]}),(0,r.jsx)("div",{ref:h,className:`keen-slider ${l.default.keenSlider}`,children:d.map((t=>(0,r.jsx)("div",{role:"button",className:`keen-slider__slide ${l.default.flavorItem} flavorItem ${t.tags.includes("limited")?`${l.default.limitedEdition} limitedEdition`:""}`,style:{maxWidth:68,minWidth:68},children:(0,r.jsx)("a",{href:`/products/${t.handle}`,"aria-label":`Go to ${t.title} flavor`,title:`Go to ${t.title} flavor`,className:`${l.default.flavorImageContainer} flavorImageContainer ${e===t.handle?`${l.default.selected} selected`:""}`,children:(0,r.jsx)("img",{src:t.swatchImage||t.handle,alt:`${t.title} flavor`,className:l.default.flavorImage,width:60,height:60})})},t.id)))}),(0,r.jsx)("div",{className:`${l.default.keenSlider__dots} keenSlider__dots`,children:d.map(((e,t)=>(0,r.jsx)("button",{className:`${l.default.keenSlider__dot} ${(m<0?d.length+m%d.length:m)%d.length===t?`${l.default["keenSlider__dot--active"]} active`:""}`,onClick:()=>(e=>{p.current&&p.current.moveToIdx(e)})(t),"aria-label":`Go to slide ${t+1}`},t)))})]}),(0,r.jsx)("a",{className:`buildVarietySetButton ${l.default.buildVarietySetButton} ${c?l.default.buildVarietySetButtonVarietySet:""}`,href:i,"aria-label":"Build Variety Set",children:"BUILD VARIETY SET"})]})}},271:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectFlavorV2Keen=t.SelectFlavorV2=void 0;var i=a(122);Object.defineProperty(t,"SelectFlavorV2",{enumerable:!0,get:function(){return i.SelectFlavorV2}});var r=a(123);Object.defineProperty(t,"SelectFlavorV2Keen",{enumerable:!0,get:function(){return r.SelectFlavorV2Keen}})},115: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 r=a(0),n=a(1),s=i(a(53)),l=a(2),o=a(175),c=a(13),d=a(22),u=a(61),h=a(20),p=a(22),{selected:m,bundles:v,step2Container:f,backButton:x,varietySetContainer:C,varietyItem:g,varietyName:b,title:S,selectedOptionsContainer:j,selectedImagesContainer:P,modifyButton:y,stepIndicatorTitleContainer:k,columnDisplay:w,imageContainer:$,yourVarietySet:T,chosenFlavors:I,varietySetLimitedEdition:N,limitedEditionContainer:_,selectedOptionsLimitedEdition:V,bundleSubheading:B}=s.default;(0,c.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/"}]),t.StepSelection=({productPage:e,bundleSelected:t,setBundleSelected:a,bundlePriceEach:i,varietySetIsComplete:c,setVarietySetIsComplete:F,selectedFlavorSet:D,setSelectedFlavorSet:O,currencySymbol:L,productsExpandYourPalate:A,countryCode:E,featureInternationalization:M,twelvePackEnabled:H,featurePdpDesign:R})=>{const z=e=>{O((t=>[...t,e])),[...D,e].length===t+2&&F(!0)},U=(0,d.limitedProductByVariety)({productsExpandYourPalate:A,countryCode:E,featureInternationalization:M});return(0,l.useEffect)((()=>{O([]);let e=!1;t===h.BundleSize["12 Pack"]&&(e=!0),F(e)}),[t]),(0,l.useEffect)((()=>{O([]),F(!1)}),[E]),(0,r.jsxs)("div",{className:`stepSelection ${s.default.stepSelection} ${"v1"===R?s.default.stepSelectionV1:""} `,children:[(0,r.jsxs)("div",{className:`title ${S}`,children:[(0,r.jsx)("span",{children:"STEP 1"}),(0,r.jsx)("span",{children:"CHOOSE YOUR PACK SIZE"})]}),(0,r.jsxs)("div",{className:`bundles ${v}`,children:[H&&(0,r.jsxs)("div",{onClick:()=>a(2),children:[(0,r.jsx)("button",{className:`${t===h.BundleSize["12 Pack"]&&m}`,children:(0,p.toPackSize)("12 Pack")}),(0,r.jsx)("span",{className:B,children:"ALL FLAVORS"})]}),(0,r.jsxs)("div",{onClick:()=>a(0),children:[(0,r.jsx)("button",{className:`${t===h.BundleSize["20 Pack"]&&m}`,children:(0,p.toPackSize)(e.options[0].values[0])}),(0,r.jsxs)("span",{children:[`${L}${i[0].priceEach.toFixed(2)}`," EA."]})]}),(0,r.jsxs)("div",{onClick:()=>a(1),children:[(0,r.jsx)("button",{className:`${t===h.BundleSize["30 Pack"]&&m}`,children:(0,p.toPackSize)(e.options[0].values[1])}),(0,r.jsxs)("span",{children:[`${L}${i[1].priceEach.toFixed(2)}`," EA."]})]})]}),(0,r.jsx)("div",{style:{minHeight:"200px"},children:t===h.BundleSize["12 Pack"]?(0,r.jsx)(u.TwelvePackDetails,{productsExpandYourPalate:A}):(0,r.jsxs)("div",{className:`step2Container ${f}`,children:[c?(0,r.jsxs)("div",{className:S,children:[(0,r.jsx)("span",{children:"BUNDLE SUMMARY"}),(0,r.jsx)("span",{})]}):(0,r.jsxs)("div",{className:S,children:[(0,r.jsx)("span",{children:"STEP 2"}),(0,r.jsx)("span",{children:"CHOOSE YOUR FLAVORS"})]}),(0,r.jsxs)("div",{className:k,children:[(0,r.jsx)("div",{style:{color:0===D.length?"black":"#a0a0a0"},children:"FIRST FLAVOR"}),(0,r.jsx)(o.ArrowRight,{}),(0,r.jsx)("div",{style:{color:1===D.length?"black":"#a0a0a0"},children:"SECOND FLAVOR"}),(0,r.jsx)(o.ArrowRight,{}),t===h.BundleSize["30 Pack"]&&(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("div",{style:{color:2===D.length?"black":"#a0a0a0"},children:"THIRD FLAVOR"}),(0,r.jsx)(o.ArrowRight,{})]}),(0,r.jsx)("div",{style:{color:c?"black":"#a0a0a0"},children:"SUMMARY"})]}),D.length>0&&(0,r.jsx)("button",{className:x,onClick:()=>{O((e=>e.slice(0,-1))),F(!1)},children:"Back"}),!c&&(0,r.jsx)("div",{className:`varietySetContainer ${C}`,style:{minHeight:"140px"},children:A.map(((e,t)=>!e.tags.includes("limited")&&(0,r.jsxs)("div",{className:g,onClick:()=>z(t),children:[(0,r.jsx)("img",{src:e.swatchImage,alt:e.title,width:60,height:60}),(0,r.jsx)("div",{className:`${b} ${s.default.desktopOnly}`,children:e.title}),(0,r.jsx)("div",{className:`${b} ${s.default.mobileOnly}`,children:e.title.split(/(?=Chip)/).map(((e,t)=>(0,r.jsxs)("div",{children:[e,0===t&&(0,r.jsx)("br",{})]},t)))})]},e.handle)))}),!c&&U.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:N,children:"LIMITED EDITION"}),(0,r.jsx)("div",{className:`varietySetContainer ${C} limitedEditionContainer ${_}`,children:A.map(((e,t)=>e.tags.includes("limited")&&(0,r.jsxs)("div",{className:g,onClick:()=>z(t),children:[(0,r.jsx)("img",{src:e.swatchImage,alt:e.title,width:60,height:60}),(0,r.jsx)("div",{className:`varietyName ${b} ${s.default.desktopOnly}`,children:e.title}),(0,r.jsx)("div",{className:`varietyName ${b} ${s.default.mobileOnly}`,children:e.varietyNameMobile||e.title})]},e.handle)))})]}),(0,r.jsxs)("div",{className:`${j} ${U.length>0?V:""}`,style:{alignItems:c?"flex-start":"center"},children:[(0,r.jsx)("h3",{children:c?(0,r.jsx)("div",{className:T,children:"Your Variety Set"}):D.length>0?(0,r.jsx)("div",{className:I,children:"CHOSEN FALVORS"}):""}),(0,r.jsx)("div",{className:`${P} ${c&&w}`,children:D.map(((e,t)=>(0,r.jsxs)("div",{className:g,children:[(0,r.jsx)("div",{className:$,"data-index":t+1,children:(0,r.jsx)("img",{src:A[e].swatchImage,alt:A[e].title,width:60,height:60})}),c&&(0,r.jsx)("span",{children:A[e].title})]},t)))}),c&&(0,r.jsx)("button",{className:y,onClick:()=>{O([]),F(!1)},children:"Modify"})]})]})})]})}},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.TwelvePackDetails=void 0;const r=a(0),n=(a(1),a(175)),s=i(a(53)),l=a(265),o={"Cacao Salt Caramel Peanut":2,"Espresso Vanilla Cinnamon":1,"Dark Chocolate Coconut":1,"The Raspberry Donut":1,"Birthday Cake Chocolate Chip":1,"Peanut Butter Blackberry":1,"Cookies and Cream":1,"Cherry Chocolate Waffle Cone":2,"Maple Blueberry Muffin":2};t.TwelvePackDetails=({isMobile:e=!1,isVarietySet:t=!1,productsExpandYourPalate:a})=>(a.filter((e=>e.tags.includes("limited"))),(0,r.jsxs)("div",{className:`step2Container ${s.default.step2Container} `,children:[(0,r.jsxs)("div",{className:`title ${s.default.title} titleFlavors ${s.default.titleFlavors} `,children:[(0,r.jsx)("span",{children:"FLAVORS INCLUDED"}),(0,r.jsx)("span",{})]}),(0,r.jsxs)("div",{className:`stepIndicatorTitleContainer ${s.default.stepIndicatorTitleContainer} `,children:[(0,r.jsx)("div",{className:`stepperTitle ${s.default.stepperTitle}`,children:"12 PACK | ALL FLAVORS"}),(0,r.jsx)(n.ArrowRight,{})]}),a.some((e=>o[e.title]>0))?(0,r.jsx)("div",{className:s.default.varietySetContainer,children:Object.keys(o).map((t=>a.filter((e=>e.title===t)).map((t=>(0,r.jsxs)("div",{className:s.default.varietyItem,children:[(0,r.jsxs)("div",{className:`${s.default.varietyItemImage} varietyItemImage`,children:[(0,r.jsx)("img",{src:t.swatchImage,alt:t.title,width:60,height:60}),(0,r.jsx)(l.RoundedNumber,{number:o[t.title]})]}),(0,r.jsx)("div",{className:`varietyName ${s.default.varietyName}`,style:{cursor:"default"},children:e&&t.title.includes("Chip")?t.title.split(/(?=Chip)/).map(((e,a)=>(0,r.jsxs)("div",{children:[e,0===a?(0,r.jsx)("br",{}):` (${o[t.title]})`]},a))):`${t.title}`})]},t.handle)))))}):null]}))},175:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowRight=void 0;const i=a(0);t.ArrowRight=()=>(0,i.jsx)("svg",{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"})})},265:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RoundedNumber=void 0;const i=a(0);t.RoundedNumber=({number:e})=>1===e?(0,i.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M8 0.5C12.1421 0.5 15.5 3.85786 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5Z",fill:"white"}),(0,i.jsx)("path",{d:"M8 0.5C12.1421 0.5 15.5 3.85786 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5Z",stroke:"black"}),(0,i.jsx)("path",{d:"M7.87 11V6.08H6.19V5.41C7.06 5.4 7.78 4.91 7.99 4H8.79V11H7.87Z",fill:"black"})]}):(0,i.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M8 0.5C12.1421 0.5 15.5 3.85786 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5Z",fill:"white"}),(0,i.jsx)("path",{d:"M8 0.5C12.1421 0.5 15.5 3.85786 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5Z",stroke:"black"}),(0,i.jsx)("path",{d:"M5.43 11C5.47 9.53 6.1 8.62 7.53 7.79L8 7.51C8.96 6.94 9.39 6.56 9.39 5.84C9.39 5.1 8.81 4.64 8.07 4.64C7.16 4.64 6.59 5.2 6.59 6.1H5.62C5.62 4.69 6.66 3.85 8.07 3.85C9.43 3.85 10.36 4.75 10.36 5.85C10.36 6.85 9.72 7.49 8.78 8.04L8.12 8.43C7.15 9 6.61 9.48 6.46 10.13H10.41V11H5.43Z",fill:"black"})]})},124: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.StickyAddButton=void 0;const r=a(0),n=i(a(52)),s=a(22),l=a(24),o=a(176),c=a(39),d=a(0);function u({onClick:e,isVarietySet:t,varietySetIsComplete:a,isProductAvailableInCurrentCountry:i,isTwelvePackSelected:u,isOOS:h,isUnavailable:p,calculatedPrice:m,calculatedRegularPrice:v,handleIsInProductsExpandYourPalate:f,loadingAddToCart:x,addToBagText:C,featureAddToCart:g,currencySymbol:b,isUSA:S,featureGoogleBadge:j}){const{addButton:P,disabled:y,addButtonVarietySet:k,buttonLoading:w,buttonLoader:$,stickyAddButton:T,stickyAddButtonInner:I,labelShip:N,labelShipVarietySet:_,labelShipContainer:V}=n.default,B=(0,s.isDisabled)({isVarietySet:t,varietySetIsComplete:a,isProductAvailableInCurrentCountry:i,isTwelvePackSelected:u,isOOS:h,isUnavailable:p,calculatedPrice:m,handleIsInProductsExpandYourPalate:f});return(0,r.jsx)("div",{style:{position:"relative"},children:(0,r.jsx)("div",{className:`stickyAddButton ${T}`,children:(0,r.jsxs)("div",{className:`stickyAddButtonInner ${I}`,children:[(0,r.jsxs)("div",{className:`labelShipContainer ${V}`,style:{justifyContent:S?"space-between":"center"},children:[(0,r.jsx)("p",{className:`labelShip ${N} ${t&&_}`,children:S&&(0,r.jsxs)(d.Fragment,{children:[(0,r.jsx)(o.TruckIcon,{variant:"secondary"}),(0,r.jsx)("span",{children:"Always Free Shipping"})]})}),j&&(0,r.jsx)(c.GoogleBadge,{})]}),(0,r.jsx)("div",{onClick:e,role:"button","aria-label":"Add to bag",className:`addButton ${P} \n ${B&&y}\n ${t&&k}\n ${x&&w}\n `,children:(0,r.jsxs)("button",{children:[(0,r.jsxs)("div",{children:[C,!!g&&(0,r.jsx)("span",{className:`addButtonOriginalPrice ${n.default.addButtonOriginalPrice}`,children:`${b}${m.toFixed(2)}`}),!!g&&!(0,l.isSimilarPrice)(m,v)&&v>0&&(0,r.jsx)("span",{className:`addButtonRegularPrice ${n.default.addButtonRegularPrice}`,children:`${b}${v.toFixed(2)}`})]}),x&&(0,r.jsx)("span",{className:$,children:(0,r.jsxs)("svg",{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"})]})})]})})]})})})}t.StickyAddButton=u,t.default=u},116: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.TwelvePackPurchaseOptions=void 0;const r=a(0),n=(a(1),i(a(66))),s=a(2),l=a(24),o="48635984085225",c="48816676405481",d=({option:e,banner:t,title:a,originalPrice:i,discountedPrice:s,savePercentage:l,isSelected:o,imageCount:c,onSelect:d})=>(0,r.jsxs)("div",{className:`optionCard ${n.default.optionCard} ${o?n.default.selected:""}`,onClick:()=>d(e),children:[(0,r.jsx)("div",{className:`title ${n.default.title}`,children:a}),(0,r.jsx)("div",{className:`radioButton ${n.default.radioButton}`,children:o?(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,r.jsx)("rect",{x:"0.54615",y:"0.530769",width:"15.9231",height:"15.9231",rx:"7.96154",fill:"white",stroke:"black","stroke-width":"1.06154"}),(0,r.jsx)("rect",{x:"3.19231",y:"3.19231",width:"10.6154",height:"10.6154",rx:"5.30769",fill:"black"})]}):(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:(0,r.jsx)("rect",{x:"0.54615",y:"0.530769",width:"15.9231",height:"15.9231",rx:"7.96154",fill:"white",stroke:"black","stroke-width":"1.06154"})})}),(0,r.jsxs)("div",{className:`optionContent ${n.default.optionContent}`,children:[(0,r.jsxs)("div",{className:`optionContentContainer ${n.default.optionContentContainer}`,children:[(0,r.jsx)("div",{className:`banner ${n.default.banner}`,children:(0,r.jsx)("span",{children:t})}),(0,r.jsxs)("div",{className:`pricing ${n.default.pricing}`,children:[(0,r.jsxs)("span",{className:`originalPrice ${n.default.originalPrice}`,children:["$",i.toFixed(2)]}),(0,r.jsxs)("span",{className:`discountedPrice ${n.default.discountedPrice}`,children:["$",s.toFixed(2)," per bar"]})]}),(0,r.jsxs)("div",{className:`discountBadge ${n.default.discountBadge}`,children:["SAVE ",l.toFixed(0),"%"]})]}),(0,r.jsx)("div",{className:`productImage ${n.default.productImage}`,children:(0,r.jsx)("div",{className:`imagePlaceholder ${n.default.imagePlaceholder}`,children:Array.from({length:c},((e,t)=>(0,r.jsx)("div",{className:`productPackage ${n.default.productPackage}`,children:(0,r.jsx)("div",{className:`packageBands ${n.default.packageBands}`,children:(0,r.jsx)("img",{src:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/box-12-pack.webp",alt:"12-PACK box"})})},t)))})})]})]});t.TwelvePackPurchaseOptions=({variant:e,twelvePack:t,twelvePackEnabled:a,isSubscriptionEnabled:i,selectedSubscription:u,onClickSubscription:h,twelvePackVariantId:p,setTwelvePackVariantId:m,subscriptionClubData:v,priceFromVariant:f,featureTwelvePackDesign:x})=>{const[C,g]=(0,s.useState)(o),b=e=>{g(e),m(e)},S=(0,l.getTwelvePackPrice)({twelvePack:t,regularPrice:!1,selectedSubscription:u,subscriptionClubData:v,priceFromVariant:f,twelvePackVariantId:o,featureTwelvePackDesign:x}),j=(0,l.getTwelvePackPrice)({twelvePack:t,regularPrice:!0,selectedSubscription:u,subscriptionClubData:v,priceFromVariant:f,twelvePackVariantId:o,featureTwelvePackDesign:x}),P=(0,l.getTwelvePackPrice)({twelvePack:t,regularPrice:!1,selectedSubscription:u,subscriptionClubData:v,priceFromVariant:f,twelvePackVariantId:c,featureTwelvePackDesign:x}),y=j/12,k=S/12,w=(0,l.getTwelvePackPrice)({twelvePack:t,regularPrice:!0,selectedSubscription:u,subscriptionClubData:v,priceFromVariant:f,twelvePackVariantId:c,featureTwelvePackDesign:x})/24,$=P/24,T=[{option:o,banner:"Curious? 12 Bars",title:"Buy 1 Tasting Set",originalPrice:y,discountedPrice:k,savePercentage:(y-k)/y*100,isSelected:C===o,imageCount:1},{option:c,banner:"Best Deal | 24 Bars",title:"Buy 2 Tasting Sets",originalPrice:w,discountedPrice:$,savePercentage:(w-$)/w*100,isSelected:C===c,imageCount:2}];return(0,r.jsx)("div",{className:`container ${n.default.container} ${"v1"===e&&n.default.containerV1}`,children:(0,r.jsx)("div",{className:`optionsContainer ${n.default.optionsContainer}`,children:T.map((e=>(0,r.jsx)(d,{...e,onSelect:b},e.option)))})})}},269:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowRightIcon=void 0;const i=a(0);a(1),t.ArrowRightIcon=function({}){return(0,i.jsx)("svg",{width:"13",height:"8",viewBox:"0 0 13 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M12.3536 4.03556C12.5488 3.8403 12.5488 3.52372 12.3536 3.32845L9.17157 0.146473C8.97631 -0.0487893 8.65973 -0.0487893 8.46447 0.146473C8.2692 0.341735 8.2692 0.658318 8.46447 0.85358L11.2929 3.68201L8.46447 6.51043C8.2692 6.7057 8.2692 7.02228 8.46447 7.21754C8.65973 7.4128 8.97631 7.4128 9.17157 7.21754L12.3536 4.03556ZM0 3.68201V4.18201H12V3.68201V3.18201H0V3.68201Z",fill:"black"})})}},267:(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",{"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"})})}},268:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GiftIcon=void 0;const i=a(0);a(1),t.GiftIcon=function({}){return(0,i.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{"clip-path":"url(#clip0_15758_22942)",children:[(0,i.jsx)("path",{d:"M1.75 5.24996C1.75 5.09525 1.81146 4.94688 1.92085 4.83748C2.03025 4.72808 2.17862 4.66663 2.33333 4.66663H11.6667C11.8214 4.66663 11.9697 4.72808 12.0791 4.83748C12.1885 4.94688 12.25 5.09525 12.25 5.24996V6.41663C12.25 6.57134 12.1885 6.71971 12.0791 6.8291C11.9697 6.9385 11.8214 6.99996 11.6667 6.99996H2.33333C2.17862 6.99996 2.03025 6.9385 1.92085 6.8291C1.81146 6.71971 1.75 6.57134 1.75 6.41663V5.24996Z",stroke:"black",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M7 4.66663V12.25",stroke:"black",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M11.0833 7V11.0833C11.0833 11.3928 10.9604 11.6895 10.7416 11.9083C10.5228 12.1271 10.2261 12.25 9.91666 12.25H4.08332C3.7739 12.25 3.47716 12.1271 3.25837 11.9083C3.03957 11.6895 2.91666 11.3928 2.91666 11.0833V7",stroke:"black",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M4.37499 4.66668C3.98822 4.66668 3.61728 4.51303 3.34379 4.23954C3.0703 3.96605 2.91666 3.59512 2.91666 3.20834C2.91666 2.82157 3.0703 2.45064 3.34379 2.17715C3.61728 1.90366 3.98822 1.75001 4.37499 1.75001C4.93772 1.74021 5.48917 2.01325 5.95742 2.53352C6.42567 3.0538 6.78898 3.79716 6.99999 4.66668C7.211 3.79716 7.57431 3.0538 8.04256 2.53352C8.51081 2.01325 9.06226 1.74021 9.62499 1.75001C10.0118 1.75001 10.3827 1.90366 10.6562 2.17715C10.9297 2.45064 11.0833 2.82157 11.0833 3.20834C11.0833 3.59512 10.9297 3.96605 10.6562 4.23954C10.3827 4.51303 10.0118 4.66668 9.62499 4.66668",stroke:"black",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_15758_22942",children:(0,i.jsx)("rect",{width:"14",height:"14",fill:"white"})})})]})}},176:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TruckIcon=void 0;const i=a(0);t.TruckIcon=({variant:e="primary"})=>"primary"===e?(0,i.jsxs)("svg",{fill:"none",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("g",{"clip-path":"url(#a)",children:(0,i.jsx)("path",{d:"m9.2708 3.5064c0.17893 0 0.35054 0.07108 0.47707 0.19761 0.12652 0.12652 0.19761 0.29813 0.19761 0.47707h2.6987c0.1016 0 0.2019 0.02293 0.2934 0.06709 0.0914 0.04416 0.1717 0.1084 0.2349 0.18794l0.0499 0.07286 2.0241 3.3734 0.0371 0.06949 0.027 0.0722 0.0195 0.07354 0.0108 0.07421 0.0021 0.05735v4.0481c0 0.1789-0.0711 0.3505-0.1976 0.4771-0.1266 0.1265-0.2982 0.1976-0.4771 0.1976h-0.7901c-0.1396 0.3946-0.3982 0.7361-0.74 0.9777s-0.7501 0.3714-1.1686 0.3714c-0.4186 0-0.8269-0.1298-1.1687-0.3714s-0.6003-0.5831-0.74-0.9777h-2.9295c-0.13967 0.3946-0.3982 0.7361-0.74001 0.9777s-0.75009 0.3714-1.1687 0.3714c-0.41858 0-0.82686-0.1298-1.1687-0.3714s-0.60033-0.5831-0.74-0.9777h-0.79005c-0.17894 0-0.35055-0.0711-0.47708-0.1976-0.12652-0.1266-0.1976-0.2982-0.1976-0.4771v-7.4215c0-0.35787 0.14216-0.70109 0.39521-0.95414 0.25306-0.25306 0.59627-0.39522 0.95415-0.39522h6.0721zm-4.0481 8.0962c-0.17894 0-0.35055 0.0711-0.47707 0.1976-0.12653 0.1265-0.19761 0.2982-0.19761 0.4771s0.07108 0.3505 0.19761 0.4771c0.12652 0.1265 0.29813 0.1976 0.47707 0.1976 0.17893 0 0.35054-0.0711 0.47707-0.1976 0.12652-0.1266 0.19761-0.2982 0.19761-0.4771s-0.07109-0.3506-0.19761-0.4771c-0.12653-0.1265-0.29814-0.1976-0.47707-0.1976zm6.7468 0c-0.179 0-0.3506 0.0711-0.4771 0.1976s-0.1976 0.2982-0.1976 0.4771 0.0711 0.3505 0.1976 0.4771c0.1265 0.1265 0.2981 0.1976 0.4771 0.1976 0.1789 0 0.3505-0.0711 0.477-0.1976 0.1266-0.1266 0.1976-0.2982 0.1976-0.4771s-0.071-0.3506-0.1976-0.4771c-0.1265-0.1265-0.2981-0.1976-0.477-0.1976zm0.2928-6.0721h-2.3169v2.024h3.5313l-1.2144-2.024z",fill:"#000"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"a",children:(0,i.jsx)("rect",{transform:"translate(.5 .80762)",width:"16.192",height:"16.192",fill:"#fff"})})})]}):(0,i.jsxs)("svg",{fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{"clip-path":"url(#a)",stroke:"#111C19","stroke-linecap":"round","stroke-linejoin":"round",children:[(0,i.jsx)("path",{d:"m5.3332 17.108c0 0.5304 0.21072 1.0391 0.58579 1.4142s0.88378 0.5858 1.4142 0.5858 1.0391-0.2107 1.4142-0.5858c0.37507-0.3751 0.58578-0.8838 0.58578-1.4142 0-0.5305-0.21071-1.0392-0.58578-1.4142-0.37508-0.3751-0.88379-0.5858-1.4142-0.5858s-1.0391 0.2107-1.4142 0.5858c-0.37507 0.375-0.58579 0.8837-0.58579 1.4142z"}),(0,i.jsx)("path",{d:"m15.333 17.108c0 0.5304 0.2107 1.0391 0.5857 1.4142 0.3751 0.3751 0.8838 0.5858 1.4143 0.5858 0.5304 0 1.0391-0.2107 1.4142-0.5858 0.375-0.3751 0.5858-0.8838 0.5858-1.4142 0-0.5305-0.2108-1.0392-0.5858-1.4142-0.3751-0.3751-0.8838-0.5858-1.4142-0.5858-0.5305 0-1.0392 0.2107-1.4143 0.5858-0.375 0.375-0.5857 0.8837-0.5857 1.4142z"}),(0,i.jsx)("path",{d:"m5.3332 17.108h-2v-11c0-0.26522 0.10536-0.51957 0.2929-0.70711 0.18753-0.18754 0.44189-0.29289 0.7071-0.29289h9v12m-4 0h6m4 0h2v-6h-8m8 0-3-5h-5"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"a",children:(0,i.jsx)("rect",{transform:"translate(.33325 .10767)",width:"24",height:"24",fill:"#fff"})})})]})},266:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useProductDetails=void 0;const i=a(2),r=a(20),n=a(24),s=a(21),l=a(41),o=a(22);t.useProductDetails=({useSharedState:e,productPage:t,twelvePack:a,bundlePackVarietySetHandle:c,twelvePackHandle:d,twelvePackStoreHandle:u,productsExpandYourPalate:h,bundleSelected:p,setBundleSelected:m,featureTwelvePackPrice:v,featureTwelvePackDesign:f,featureSalePrice:x,featureCompareAtText:C,featurePurchaseType:g,isSubscriptionEnabled:b,subscriptionClubData:S,dynamicBoxId20pack:j,dynamicBoxId30pack:P,logOutcome:y,featureShowSubRegularPrice:k,featureFullPriceCompare:w,featureSubscriptionBox:$})=>{const[T,I]=(0,i.useState)(t.subscriptionEnabled?$?r.PurchaseType.subscription:g:r.PurchaseType.oneTime),[N,_]=(0,i.useState)(!1),[V,B]=(0,i.useState)(!1),[F,D]=(0,i.useState)([]),[O,L]=(0,i.useState)(!1),[A,E]=(0,i.useState)(!1),[M,H]=(0,i.useState)(!1),[R,z]=(0,i.useState)(!1),[U,Y]=(0,i.useState)(v),G=t.handle===c,Z=p===r.BundleSize["12 Pack"],K=t.handle===d||t.handle===u,W=e.countryCode===s.DEFAULT_SHOPIFY_COUNTRY.countryCode,q=Z&&a?(0,o.modifyTitle)(a.title):(0,o.modifyTitle)(t.title),X=(0,n.getCalculatedPrice)({productPage:t,selectedSubscription:T,bundleSelected:p,twelvePack:a,isVarietySet:G,priceFromVariant:e.priceFromVariant,subscriptionClubData:S,twelvePackVariantId:U,featureTwelvePackDesign:f}),Q=x||k||w?(0,n.getCalculatedPrice)({productPage:t,selectedSubscription:T,bundleSelected:p,twelvePack:a,isVarietySet:G,regularPrice:!0,priceFromVariant:e.priceFromVariant,subscriptionClubData:S,twelvePackVariantId:U,featureTwelvePackDesign:f,showSubRegularPrice:k,featureSalePrice:x,featureFullPriceCompare:w,defaultProductData:h?.[0]??t}):0,J=(0,i.useMemo)((()=>Z&&a?e.priceFromVariant(a.variants[0]):e.priceFromVariant(t.variants[p])),[t.variants,p,e.countryCode,Z,a]),ee=(0,i.useMemo)((()=>J.currencySymbol),[J]),te=(0,i.useMemo)((()=>(0,s.currencyCodeIfneeded)({currencySymbol:J.currencySymbol,featureInternationalization:e.featureInternationalization,countryCode:e.countryCode,currencyCode:J.currencyCode})),[ee,J,e]),ae=(0,i.useMemo)((()=>{const a=T===r.PurchaseType.subscription?(S?.discount_percentage||0)/100:0,i=e.priceFromVariant(t.variants[G?0:1]),n=e.priceFromVariant(t.variants[G?1:2]),s=i.amount*(1-a)/20,l=n.amount*(1-a)/30;return[{priceEach:s,discountPercentage:(2*e.priceFromVariant(t.variants[0]).amount-i.amount)/(2*e.priceFromVariant(t.variants[0]).amount)*100},{priceEach:l,discountPercentage:(3*e.priceFromVariant(t.variants[0]).amount-n.amount)/(3*e.priceFromVariant(t.variants[0]).amount)*100}]}),[t.variants,e.priceFromVariant,T,G,S]),ie=t.tags.includes("limited"),re=(0,o.limitedProductByVariety)({productsExpandYourPalate:h,countryCode:e.countryCode,featureInternationalization:e.featureInternationalization}),ne=(0,i.useMemo)((()=>h.some((e=>e.handle===t.handle))||t.handle===c),[h,t.handle,c]),se=(0,i.useMemo)((()=>{const i=!!t.subscriptionEnabled,n=p===r.BundleSize["12 Pack"]&&(K||G),l=a?.subscriptionEnabled,o=e.countryCode!==s.DEFAULT_SHOPIFY_COUNTRY.countryCode,c=(e=>e.some((e=>{const t=h[e].handle,a=h.find((e=>e.handle===t));return!a?.subscriptionEnabled})))(F);return!b||o||!i||c||n&&!l||null===S}),[b,e.countryCode,t.subscriptionEnabled,F,K,p,G,a]),le=(0,i.useMemo)((()=>h.some((e=>e.tags.includes("limited")))),[h]),oe=(0,i.useMemo)((()=>!e.featureInternationalization||J.country===e.countryCode),[e.featureInternationalization,J.country,e.countryCode]),ce=(0,i.useMemo)((()=>"fullprice"===C?"Full Price":"Sale"),[C]),de=(e,t)=>{if(se)return t?.preventDefault(),void I(r.PurchaseType.oneTime);I(e)},ue=(0,i.useMemo)((()=>R?"Unavailable":M?"Out of Stock":"Add to bag"),[R,M]),he=e=>{m(e);const a=new URLSearchParams(window.location.search),i=t.variants[e];let r=i?.id;i||(r=e.toString()),a.set("variant",r),window.history.replaceState({},"",`${window.location.pathname}?${a.toString()}`)};return(0,i.useEffect)((()=>{e.showCart&&E(!1)}),[e.showCart]),(0,i.useEffect)((()=>{se&&I(r.PurchaseType.oneTime)}),[se]),(0,i.useEffect)((()=>{if(a&&Z)return H(a?.variants[0]?.currentlyNotInStock),z(!a?.variants[0]?.availableForSale),void I(se?r.PurchaseType.oneTime:$?r.PurchaseType.subscription:g);H((()=>0===t.variants[p].quantityAvailable||t.variants[p]?.currentlyNotInStock)),z(!t.variants[p]?.availableForSale),I(se?r.PurchaseType.oneTime:$?r.PurchaseType.subscription:g)}),[p,a,Z,t.variants]),(0,i.useEffect)((()=>{he(p)}),[p]),{selectedSubscription:T,setSelectedSubscription:I,showSubscriptionInfo:N,setShowSubscriptionInfo:_,varietySetIsComplete:V,setVarietySetIsComplete:B,selectedFlavorSet:F,setSelectedFlavorSet:D,addFlavorsAlert:O,setAddFlavorsAlert:L,loadingAddToCart:A,setLoadingAddToCart:E,isOOS:M,setIsOOS:H,isUnavailable:R,setIsUnavailable:z,twelvePackVariantId:U,setTwelvePackVariantId:Y,isVarietySet:G,isTwelvePackSelected:Z,isTwelvePack:K,isUSA:W,title:q,calculatedPrice:X,calculatedRegularPrice:Q,currentPriceVariant:J,currencySymbol:ee,currencyCode:te,bundlePriceEach:ae,hasLimitedTag:ie,limitedProductDetailData:re,handleIsInProductsExpandYourPalate:ne,subNotEnabled:se,isLimitedEdition:le,isProductAvailableInCurrentCountry:oe,saleText:ce,addToBagText:ue,handleOptionChange:de,handleSubscriptionInfo:e=>{e?.preventDefault(),_(!N)},addToBagHandler:async()=>{if(A)return void console.log("loadingAddToCart");if(!ne)return void console.log("handleIsInProductsExpandYourPalate");if(0===X)return E(!1),void console.log("calculatedPrice === 0");if(!oe)return E(!1),void console.log("!isProductAvailableInCurrentCountry");if(E(!0),G&&!V&&!Z)return L(!0),E(!1),setTimeout((()=>{L(!1)}),2e3),void console.log("isVarietySet && !varietySetIsComplete && !isTwelvePackSelected");if(M||R)return E(!1),void console.log("isOOS || isUnavailable");let i=t.variants[p];Z&&a&&(i=a.variants[0],U&&(i=a.variants.find((e=>e.id===U))||i));const n={sku:i.sku||"",id:i.id,quantity:1,image:i.image.src,product_title:q?.replace(/<[^>]*>?/gm,""),variant_title:i.title,price:100*X,final_price:100*X,url:`https://starsandhoney.com/products/${t.handle}`,variant_id:Number(i.id),vendor:t.vendor,properties:{_compare_at_price:100*Q,_rc_bundle_status:T===r.PurchaseType.subscription?"Subscription":"One-Time"}};T===r.PurchaseType.subscription&&(n.selling_plan=S?.selling_plan_id),Z&&a&&U&&(n.id=U,n.variant_id=U);let s=[n];if(G&&!Z){const t=p===r.BundleSize["20 Pack"]?j:P,a=(new Date).getTime();let c;s=F.map((e=>{c=p===r.BundleSize["20 Pack"]&&T===r.PurchaseType.oneTime?h[e].variants.find((e=>"10-PACK--"===e.title))?.id||"":p===r.BundleSize["30 Pack"]&&T===r.PurchaseType.oneTime?h[e].variants.find((e=>"10-PACK---"===e.title))?.id||"":p===r.BundleSize["20 Pack"]&&T===r.PurchaseType.subscription?h[e].variants.find((e=>"10-PACK----"===e.title))?.id||"":p===r.BundleSize["30 Pack"]&&T===r.PurchaseType.subscription?h[e].variants.find((e=>"10-PACK-----"===e.title))?.id||"":h[e].variants.find((e=>"10-PACK--"===e.title))?.id||"";const i={id:c,productId:h[e].id,quantity:1,properties:{_dynamicBoxId:t,_dynamicBoxIndex:a,_rc_bundle_price:X.toString(),_rc_bundle_status:T===r.PurchaseType.subscription?"Subscription":"One-Time",_rc_bundle_size:p===r.BundleSize["20 Pack"]?"20-PACK":"30-PACK",_compare_at_price:100*Q}};return F.forEach(((e,t)=>{i.properties[`_rc_bundle_flavor${t+1}`]=h[e].title,i.properties[`_rc_bundle_flavor${t+1}_ID`]=h[e].id,i.properties[`Flavor ${t+1}`]=h[e].title})),T===r.PurchaseType.subscription&&(i.selling_plan=S?.selling_plan_id),i}));const d=(0,l.convertProductToPayload)({product:{...n,variant_title:1===p?"30-PACK":"20-PACK",title:"Signature Flavors Variety Set"},additionalProperties:{"Flavor 1":h[F[0]].title,"Flavor 2":h[F[1]].title,...1===p?{"Flavor 3":h[F[2]].title}:{},_compare_at_price:100*Q,_rc_bundle_status:T===r.PurchaseType.subscription?"Subscription":"One-Time"},quantity:1,variant:{...i,title:1===p?"30-PACK":"20-PACK",price:{...i.price,amount:(o=X,98===o?98.01:o).toString()}}});e.addFakeBundle({items:d?.items})}var o;try{e.addToCart({items:s}),y("AddToBagFromProductPage")}catch(e){console.error(e),E(!1)}},onClickVariant:he,onClickSubscription:e=>{de(r.PurchaseType.subscription,e)}}}}}]);