"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[12],{111: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(68))),s=a(13);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."]})]})]})}},244:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BundleSelector=void 0;var i=a(111);Object.defineProperty(t,"BundleSelector",{enumerable:!0,get:function(){return i.BundleSelector}})},160:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SummaryContainer=void 0;const i=a(0),r=a(112),n=a(57);t.SummaryContainer=({styles:e,productPage:t,flavorGraph:a,isFirstElement:s})=>(console.log("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."})]})]}))},112: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(69))),s=a(39),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})]})}},109: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(65)));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)))})}},36: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(61)),l=a(27),o=a(23),c=a(106),d=a(46),u=a(11),h=a(13),p=a(56),m=a(4),v=a(51),f=a(241),x=a(107),g=a(242),C=a(108),b=a(109),S=a(110),j=a(57),P=a(244),k=a(160),y=a(245);"undefined"!=typeof window&&(window.Buffer=d.Buffer);const{mainContainer:w,mainContainerVarietySet:$,categoryLabel:I,title:N,titleTwelvePack:T,starsContainer:_,starsRating:V,ratingNumber:F,varietySetContainer:D,linkVarietySet:B,buttonGiftSet:E,linkGiftSet:O,varietySetContainerHolidays:L,varietySetContainerForVarietySetPDP:A,description:M,freeFromContainer:H,freeFromContainerVarietySet:R,nutritionContainer:z,nutritionImageContainer:U,bundles:Y,selected:K,price:Z,regularPrice:G,regularPriceContainer:W,regularPriceContainerTwelvePack:q,saleText:X,priceVarietySet:Q,productSubscription:J,productSubscriptionIsVariety:ee,subscriptionInfo:te,showContainer:ae,backgroundPopup:ie,labelShip:re,labelShipVarietySet:ne,labelShipContainer:se,addButton:le,varietyHoverName:oe,moreFlavorsAlert:ce,disabled:de,addButtonVarietySet:ue,nutritionArrowContainer:he,badgesContainer:pe,buttonLoading:me,buttonLoader:ve,freeHatContainer:fe,plusSymbol:xe,priceContainer:ge,currencyCodeStyle:Ce,freeBadge:be,brandHat:Se,brandHatItalic:je,hatFlex:Pe,limitedEdition:ke,shippingDate:ye,shippingDateIcon:we,shippingDateText:$e}=s.default;function Ie({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&&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:d,twelvePackEnabled:w,bundleSelected:fe,setBundleSelected:xe,isSubscriptionEnabled:be,featureSalePrice:Se,featureShippingDate:je,featureTwelvePackPrice:Pe,isMobile:Ne=!1,productsExpandYourPalate:Te,featureGoogleBadge:_e,subscriptionClubData:Ve,featureTwelvePackDesign:Fe,featureCompareAtText:De,featurePdpSelector:Be,flavorGraph:Ee,featureAddToCart:Oe,featurePdpDesign:Le}){const{selectedSubscription:Ae,setSelectedSubscription:Me,showSubscriptionInfo:He,setShowSubscriptionInfo:Re,varietySetIsComplete:ze,setVarietySetIsComplete:Ue,selectedFlavorSet:Ye,setSelectedFlavorSet:Ke,addFlavorsAlert:Ze,setAddFlavorsAlert:Ge,loadingAddToCart:We,setLoadingAddToCart:qe,isOOS:Xe,setIsOOS:Qe,isUnavailable:Je,setIsUnavailable:et,twelvePackVariantId:tt,setTwelvePackVariantId:at,isVarietySet:it,isTwelvePackSelected:rt,isTwelvePack:nt,isUSA:st,title:lt,calculatedPrice:ot,calculatedRegularPrice:ct,currentPriceVariant:dt,currencySymbol:ut,currencyCode:ht,bundlePriceEach:pt,hasLimitedTag:mt,limitedProductDetailData:vt,handleIsInProductsExpandYourPalate:ft,subNotEnabled:xt,isLimitedEdition:gt,isProductAvailableInCurrentCountry:Ct,saleText:bt,addToBagText:St,handleOptionChange:jt,handleSubscriptionInfo:Pt,addToBagHandler:kt,onClickVariant:yt,onClickSubscription:wt}=(0,g.useProductDetails)({useSharedState:i,productPage:e,twelvePack:d,bundlePackVarietySetHandle:h.bundlePackVarietySetHandle,twelvePackHandle:h.twelvePackHandle,twelvePackStoreHandle:h.twelvePackStoreHandle,productsExpandYourPalate:Te,bundleSelected:fe,setBundleSelected:xe,featureTwelvePackPrice:Pe,featureTwelvePackDesign:Fe,featureSalePrice:Se,featureCompareAtText:De,isSubscriptionEnabled:be,subscriptionClubData:Ve,dynamicBoxId20pack:t.dynamicBoxId20pack,dynamicBoxId30pack:t.dynamicBoxId30pack,logOutcome:m.logOutcome});return(0,r.jsxs)("div",{className:`${s.default.mainContainer} ProductDetailsContainer ${(it||nt)&&$} ${"default"!==Le&&s.default.mainContainerV1}`,children:[(0,r.jsx)("p",{className:`categoryLabel ${I}`,children:"Collagen Protein Bar"}),(0,r.jsx)("h1",{className:`${N} productTitle ${T}`,dangerouslySetInnerHTML:{__html:lt}}),(0,r.jsx)("div",{className:`starsContainer ${_}`,children:it||nt||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 ${V}`,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:F,children:["(",(0,o.truncateOneDecimal)(e?.reviews?.rating_average),")"]})]})}),"v1"===Be&&!it&&(0,r.jsx)(C.SelectFlavorList,{currentHandle:e.handle,flavors:Te,selectedFlavorSet:Ye,varietySetHref:t.mockProductDetailData.varietyButton.href,onFlavorSelect:e=>{Ye.includes(e)?Ke(Ye.filter((t=>t!==e))):Ke([...Ye,e])}}),"v2"===Be&&!it&&(0,r.jsx)(y.SelectFlavorV2Keen,{currentHandle:e.handle,flavors:Te,isVarietySet:it,varietySetHref:t.mockProductDetailData.varietyButton.href,onFlavorSelect:e=>{Ye.includes(e)?Ke(Ye.filter((t=>t!==e))):Ke([...Ye,e])}}),("default"===Be||it)&&(0,r.jsxs)(n.Fragment,{children:[(0,r.jsxs)("div",{className:`swatches varietySetContainer ${D} ${it&&A} ${gt&&L}`,children:[Te.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:oe,children:e.title})]})},t))),(0,r.jsx)("button",{children:(0,r.jsx)("a",{className:`linkVarietySet ${B}`,href:t.mockProductDetailData.varietyButton.href,children:t.mockProductDetailData.varietyButton.text})})]}),gt&&(vt?.length>0||w)?(0,r.jsxs)("div",{className:`varietySetContainer ${D} ${it&&A} ${gt&&L}`,children:[Te.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:oe,children:e.title})]})},t))),vt?.length>0&&(0,r.jsx)("p",{class:`limitedEdition ${ke}`,children:"LIMITED EDITION"})]}):null]}),w&&!gt&&(0,r.jsx)("button",{className:`buttonGiftSet ${E}`,style:{marginBottom:"10px"},children:(0,r.jsx)("a",{className:`linkGiftSet ${O}`,href:t.mockProductDetailData.varsityHatButton.href,children:t.mockProductDetailData.varsityHatButton.text})}),"default"===Le&&(0,r.jsx)("p",{className:`description ${M}`,style:{fontSize:it?"12px":"14px",lineHeight:it?"18px":"21px",letterSpacing:it?"normal":"-0.02em;",marginTop:gt?"8px":"0px"},children:rt&&d?d.description:e.description}),"default"===Le&&(0,r.jsx)(b.FreeFromTags,{isVarietySet:it,isTwelvePack:nt,productPageTags:e.tagsBadge,mockTagsForVarietySet:t.mockProductDetailData.mockTagsForVarietySet,freeFromContainerClass:H,freeFromContainerVarietySetClass:R}),!it&&!nt&&"default"===Le&&(0,r.jsx)(j.ProductNutrition,{variant:"default",productPage:e,title:lt,nutritionContainerClass:z,nutritionImageContainerClass:U,nutritionArrowContainerClass:he,badgesContainerClass:pe}),!it&&!nt&&(0,r.jsx)(P.BundleSelector,{productPage:e,bundleSelected:fe,onClickVariant:yt,bundlePriceEach:pt,currencySymbol:ut,isTwelvePackSelected:rt,featurePdpSelector:Le,bundlesClass:Y,selectedClass:K}),it&&(0,r.jsx)(c.StepSelection,{productPage:e,bundleSelected:fe,setBundleSelected:xe,bundlePriceEach:pt,varietySetIsComplete:ze,setVarietySetIsComplete:Ue,selectedFlavorSet:Ye,setSelectedFlavorSet:Ke,currencySymbol:ut,productsExpandYourPalate:Te,countryCode:i.countryCode,featureInternationalization:i.featureInternationalization,twelvePackEnabled:w,featurePdpDesign:Le}),nt&&(0,r.jsx)(p.TwelvePackDetails,{isMobile:Ne,isVarietySet:it,productsExpandYourPalate:Te}),(0,r.jsxs)("div",{className:`priceContainer ${ge}`,children:[(0,r.jsxs)("div",{className:`price ${Z} ${it&&Q}`,children:[i.featureInternationalization&&(0,r.jsx)("div",{className:`currencyCodeStyle ${Ce}`,children:`${ht} `}),`${ut}${ot.toFixed(2)}`]}),!!ct&&ot!=ct&&(0,r.jsxs)("div",{className:`regularPriceContainer ${W} ${d&&rt?q:""} ${it&&Q}`,children:[(0,r.jsxs)("span",{className:`regularPrice ${G}`,children:["$",ct.toFixed(2)]}),(0,r.jsx)("span",{className:`sale ${X}`,children:bt})]})]}),(0,r.jsx)(S.ProductSubscription,{variant:Le,selectedSubscription:Ae,subscriptionClubData:Ve,subNotEnabled:xt,isVarietySet:it,productSubscriptionClass:J,productSubscriptionIsVarietyClass:ee,subscriptionInfoClass:te,backgroundPopupClass:ie,showSubscriptionInfo:He,showContainerClass:ae,onOptionChange:jt,onClickSubscription:wt,handleSubscriptionInfo:Pt}),rt&&Fe&&st&&it&&(0,r.jsx)(x.TwelvePackPurchaseOptions,{variant:Le,twelvePack:d,twelvePackEnabled:w,isSubscriptionEnabled:be,selectedSubscription:Ae,onClickSubscription:wt,twelvePackVariantId:tt,setTwelvePackVariantId:at,subscriptionClubData:Ve,priceFromVariant:i.priceFromVariant,featureTwelvePackDesign:Fe}),"v1"===Le&&(0,r.jsx)(b.FreeFromTags,{isVarietySet:it,isTwelvePack:nt,productPageTags:e.tagsBadge,mockTagsForVarietySet:t.mockProductDetailData.mockTagsForVarietySet,freeFromContainerClass:H,freeFromContainerVarietySetClass:R,variant:"v1"}),"v1"===Le&&(0,r.jsx)(k.SummaryContainer,{isFirstElement:!e?.nutritionalImage?.reference?.image?.originalSrc,styles:s.default,productPage:e,flavorGraph:Ee}),(0,r.jsxs)("div",{className:`labelShipContainer ${se}`,style:{justifyContent:st?"space-between":"center"},children:[(0,r.jsx)("p",{className:`labelShip ${re} ${it&&ne}`,children:st&&(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(f.TruckIcon,{variant:"secondary"}),(0,r.jsx)("span",{children:"Always Free Shipping"})]})}),_e&&(0,r.jsx)(v.GoogleBadge,{})]}),(0,r.jsxs)("div",{onClick:kt,role:"button","aria-label":"Add to bag",className:`addButton ${le} \n ${(0,u.isDisabled)({isVarietySet:it,varietySetIsComplete:ze,isProductAvailableInCurrentCountry:Ct,isTwelvePackSelected:rt,isOOS:Xe,isUnavailable:Je,calculatedPrice:ot,handleIsInProductsExpandYourPalate:ft})&&de}\n\t\t\t\t${it&&ue}\n\t\t\t\t${We&&me}\n\t\t\t\t`,children:[(0,r.jsxs)("button",{children:[(0,r.jsx)(Ie,{addToBagText:St,featureAddToCart:Oe,calculatedPrice:ot,calculatedRegularPrice:ct,currencySymbol:ut}),We&&(0,r.jsx)("span",{className:ve,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"})]})})]}),Ze&&(0,r.jsx)("div",{className:ce,children:"Please add more flavors"})]}),je&&(rt&&d?.shippingDate||e?.shippingDate)&&(0,r.jsxs)("div",{className:`shippingDate ${ye}`,children:[(0,r.jsx)("div",{className:`shippingDateIcon ${we}`,children:(0,r.jsx)(f.TruckIcon,{})}),(0,r.jsx)("div",{className:`shippingDateText ${$e}`,children:rt?d?.shippingDate:e?.shippingDate})]})]})}},57: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(67))),s=a(39),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}},110: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(66))),s=a(37),l=a(243);t.ProductSubscription=function({variant:e,selectedSubscription:t,subscriptionClubData:a,subNotEnabled:i,isVarietySet:o,productSubscriptionClass:c,productSubscriptionIsVarietyClass:d,subscriptionInfoClass:u,backgroundPopupClass:h,showSubscriptionInfo:p,showContainerClass:m,onOptionChange:v,onClickSubscription:f,handleSubscriptionInfo:x}){return(0,r.jsxs)("div",{className:`productSubscription ${c} ${o&&d}\n ${"v1"===e&&"v1"}\n ${"v1"===e&&n.default.productSubscriptionV1}\n `,children:[(0,r.jsxs)("div",{onClick:e=>v("one-time",e),role:"button","aria-label":"One-time purchase",children:[(0,r.jsx)("input",{type:"radio",id:"one-time",name:"subscription",checked:"one-time"===t,readOnly:!0}),(0,r.jsx)("span",{htmlFor:"one-time",children:"ONE-TIME PURCHASE"}),!!a?.one_time_pill&&(0,r.jsx)("label",{children:a?.one_time_pill})]}),(0,r.jsxs)("div",{onClick:f,disabled:i,role:"button","aria-label":"Subscription club",children:[(0,r.jsx)("input",{type:"radio",id:"club",name:"subscription",checked:"club"===t,readOnly:!0}),(0,r.jsx)("span",{htmlFor:"",children:"SUBSCRIPTION CLUB"}),(0,r.jsx)("label",{htmlFor:"club",children:i?"Not available":a?.badge_text||"Save 10%"}),!!a?.details&&(0,r.jsxs)("button",{onClick:x,role:"button","aria-label":"Subscription details",children:["Details",(0,r.jsxs)("div",{className:`subscriptionInfo ${u} ${p&&m}`,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?.text_below&&(0,r.jsx)("div",{className:`textBelow ${n.default.textBelow}`,children:a?.text_below}),(0,r.jsx)("div",{className:`backgroundPopup ${h} ${p&&m}`,onClick:x,role:"button","aria-label":"Subscription details"})]})}},108: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(64)));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"})]})}},113: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(70)));a(24),a(25);const s=i(a(26));a(71);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"})]})}},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.SelectFlavorV2Keen=void 0;const r=a(0),n=(a(1),a(2)),s=a(246);a(247);const l=i(a(72));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"})]})}},245:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectFlavorV2Keen=t.SelectFlavorV2=void 0;var i=a(113);Object.defineProperty(t,"SelectFlavorV2",{enumerable:!0,get:function(){return i.SelectFlavorV2}});var r=a(114);Object.defineProperty(t,"SelectFlavorV2Keen",{enumerable:!0,get:function(){return r.SelectFlavorV2Keen}})},106: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(47)),l=a(2),o=a(159),c=a(6),d=a(11),u=a(56),h=a(13),p=a(11),{selected:m,bundles:v,step2Container:f,backButton:x,varietySetContainer:g,varietyItem:C,varietyName:b,title:S,selectedOptionsContainer:j,selectedImagesContainer:P,modifyButton:k,stepIndicatorTitleContainer:y,columnDisplay:w,imageContainer:$,yourVarietySet:I,chosenFlavors:N,varietySetLimitedEdition:T,limitedEditionContainer:_,selectedOptionsLimitedEdition:V,bundleSubheading:F}=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:D,selectedFlavorSet:B,setSelectedFlavorSet:E,currencySymbol:O,productsExpandYourPalate:L,countryCode:A,featureInternationalization:M,twelvePackEnabled:H,featurePdpDesign:R})=>{const z=e=>{E((t=>[...t,e])),[...B,e].length===t+2&&D(!0)},U=(0,d.limitedProductByVariety)({productsExpandYourPalate:L,countryCode:A,featureInternationalization:M});return(0,l.useEffect)((()=>{E([]);let e=!1;t===h.BundleSize["12 Pack"]&&(e=!0),D(e)}),[t]),(0,l.useEffect)((()=>{E([]),D(!1)}),[A]),(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:F,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:[`${O}${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:[`${O}${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:L}):(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:y,children:[(0,r.jsx)("div",{style:{color:0===B.length?"black":"#a0a0a0"},children:"FIRST FLAVOR"}),(0,r.jsx)(o.ArrowRight,{}),(0,r.jsx)("div",{style:{color:1===B.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===B.length?"black":"#a0a0a0"},children:"THIRD FLAVOR"}),(0,r.jsx)(o.ArrowRight,{})]}),(0,r.jsx)("div",{style:{color:c?"black":"#a0a0a0"},children:"SUMMARY"})]}),B.length>0&&(0,r.jsx)("button",{className:x,onClick:()=>{E((e=>e.slice(0,-1))),D(!1)},children:"Back"}),!c&&(0,r.jsx)("div",{className:`varietySetContainer ${g}`,style:{minHeight:"140px"},children:L.map(((e,t)=>!e.tags.includes("limited")&&(0,r.jsxs)("div",{className:C,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:T,children:"LIMITED EDITION"}),(0,r.jsx)("div",{className:`varietySetContainer ${g} limitedEditionContainer ${_}`,children:L.map(((e,t)=>e.tags.includes("limited")&&(0,r.jsxs)("div",{className:C,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:I,children:"Your Variety Set"}):B.length>0?(0,r.jsx)("div",{className:N,children:"CHOSEN FALVORS"}):""}),(0,r.jsx)("div",{className:`${P} ${c&&w}`,children:B.map(((e,t)=>(0,r.jsxs)("div",{className:C,children:[(0,r.jsx)("div",{className:$,"data-index":t+1,children:(0,r.jsx)("img",{src:L[e].swatchImage,alt:L[e].title,width:60,height:60})}),c&&(0,r.jsx)("span",{children:L[e].title})]},t)))}),c&&(0,r.jsx)("button",{className:k,onClick:()=>{E([]),D(!1)},children:"Modify"})]})]})})]})}},56: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(159)),s=i(a(47)),l=a(240),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]}))},159:(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"})})},240:(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"})]})},107: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(62))),s=a(2),l=a(63),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[g,C]=(0,s.useState)(o),b=e=>{C(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}),k=j/12,y=S/12,w=(0,l.getTwelvePackPrice)({twelvePack:t,regularPrice:!0,selectedSubscription:u,subscriptionClubData:v,priceFromVariant:f,twelvePackVariantId:c,featureTwelvePackDesign:x})/24,$=P/24,I=[{option:o,banner:"Curious? 12 Bars",title:"Buy 1 Tasting Set",originalPrice:k,discountedPrice:y,savePercentage:(k-y)/k*100,isSelected:g===o,imageCount:1},{option:c,banner:"Best Deal | 24 Bars",title:"Buy 2 Tasting Sets",originalPrice:w,discountedPrice:$,savePercentage:(w-$)/w*100,isSelected:g===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:I.map((e=>(0,r.jsx)(d,{...e,onSelect:b},e.option)))})})}},243:(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"})})}},241:(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"})})})]})},242:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useProductDetails=void 0;const i=a(2),r=a(13),n=a(63),s=a(7),l=a(38),o=a(11);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:g,isSubscriptionEnabled:C,subscriptionClubData:b,dynamicBoxId20pack:S,dynamicBoxId30pack:j,logOutcome:P})=>{const[k,y]=(0,i.useState)("one-time"),[w,$]=(0,i.useState)(!1),[I,N]=(0,i.useState)(!1),[T,_]=(0,i.useState)([]),[V,F]=(0,i.useState)(!1),[D,B]=(0,i.useState)(!1),[E,O]=(0,i.useState)(!1),[L,A]=(0,i.useState)(!1),[M,H]=(0,i.useState)(v),R=t.handle===c,z=p===r.BundleSize["12 Pack"],U=t.handle===d||t.handle===u,Y=e.countryCode===s.DEFAULT_SHOPIFY_COUNTRY.countryCode,K=z&&a?(0,o.modifyTitle)(a.title):(0,o.modifyTitle)(t.title),Z=(0,n.getCalculatedPrice)({productPage:t,selectedSubscription:k,bundleSelected:p,twelvePack:a,isVarietySet:R,priceFromVariant:e.priceFromVariant,subscriptionClubData:b,twelvePackVariantId:M,featureTwelvePackDesign:f}),G=x?(0,n.getCalculatedPrice)({productPage:t,selectedSubscription:k,bundleSelected:p,twelvePack:a,isVarietySet:R,regularPrice:!0,priceFromVariant:e.priceFromVariant,subscriptionClubData:b,twelvePackVariantId:M,featureTwelvePackDesign:f}):0,W=(0,i.useMemo)((()=>z&&a?e.priceFromVariant(a.variants[0]):e.priceFromVariant(t.variants[p])),[t.variants,p,e.countryCode,z,a]),q=(0,i.useMemo)((()=>W.currencySymbol),[W]),X=(0,i.useMemo)((()=>(0,s.currencyCodeIfneeded)({currencySymbol:W.currencySymbol,featureInternationalization:e.featureInternationalization,countryCode:e.countryCode,currencyCode:W.currencyCode})),[q,W,e]),Q=(0,i.useMemo)((()=>{const a="club"===k?(b?.discount_percentage||0)/100:0,i=e.priceFromVariant(t.variants[R?0:1]),r=e.priceFromVariant(t.variants[R?1:2]),n=i.amount*(1-a)/20,s=r.amount*(1-a)/30;return[{priceEach:n,discountPercentage:(2*e.priceFromVariant(t.variants[0]).amount-i.amount)/(2*e.priceFromVariant(t.variants[0]).amount)*100},{priceEach:s,discountPercentage:(3*e.priceFromVariant(t.variants[0]).amount-r.amount)/(3*e.priceFromVariant(t.variants[0]).amount)*100}]}),[t.variants,e.priceFromVariant,k,R,b]),J=t.tags.includes("limited"),ee=(0,o.limitedProductByVariety)({productsExpandYourPalate:h,countryCode:e.countryCode,featureInternationalization:e.featureInternationalization}),te=(0,i.useMemo)((()=>h.some((e=>e.handle===t.handle))||t.handle===c),[h,t.handle,c]),ae=(0,i.useMemo)((()=>{const i=!!t.subscriptionEnabled,n=p===r.BundleSize["12 Pack"]&&(U||R),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})))(T);return!C||o||!i||c||n&&!l||null===b}),[C,e.countryCode,t.subscriptionEnabled,T,U,p,R,a]),ie=(0,i.useMemo)((()=>h.some((e=>e.tags.includes("limited")))),[h]),re=(0,i.useMemo)((()=>!e.featureInternationalization||W.country===e.countryCode),[e.featureInternationalization,W.country,e.countryCode]),ne=(0,i.useMemo)((()=>"fullprice"===g?"Full Price":"Sale"),[g]),se=(e,t)=>{if(ae)return t?.preventDefault(),void y("one-time");y(e)},le=(0,i.useMemo)((()=>L?"Unavailable":E?"Out of Stock":"Add to bag"),[L,E]),oe=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&&B(!1)}),[e.showCart]),(0,i.useEffect)((()=>{ae&&y("one-time")}),[ae]),(0,i.useEffect)((()=>{if(a&&z)return O(a?.variants[0]?.currentlyNotInStock),A(!a?.variants[0]?.availableForSale),void y("one-time");O((()=>0===t.variants[p].quantityAvailable||t.variants[p]?.currentlyNotInStock)),A(!t.variants[p]?.availableForSale),y("one-time")}),[p,a,z,t.variants]),(0,i.useEffect)((()=>{oe(p)}),[p]),{selectedSubscription:k,setSelectedSubscription:y,showSubscriptionInfo:w,setShowSubscriptionInfo:$,varietySetIsComplete:I,setVarietySetIsComplete:N,selectedFlavorSet:T,setSelectedFlavorSet:_,addFlavorsAlert:V,setAddFlavorsAlert:F,loadingAddToCart:D,setLoadingAddToCart:B,isOOS:E,setIsOOS:O,isUnavailable:L,setIsUnavailable:A,twelvePackVariantId:M,setTwelvePackVariantId:H,isVarietySet:R,isTwelvePackSelected:z,isTwelvePack:U,isUSA:Y,title:K,calculatedPrice:Z,calculatedRegularPrice:G,currentPriceVariant:W,currencySymbol:q,currencyCode:X,bundlePriceEach:Q,hasLimitedTag:J,limitedProductDetailData:ee,handleIsInProductsExpandYourPalate:te,subNotEnabled:ae,isLimitedEdition:ie,isProductAvailableInCurrentCountry:re,saleText:ne,addToBagText:le,handleOptionChange:se,handleSubscriptionInfo:()=>{$(!w)},addToBagHandler:async()=>{if(D)return void console.log("loadingAddToCart");if(!te)return void console.log("handleIsInProductsExpandYourPalate");if(0===Z)return B(!1),void console.log("calculatedPrice === 0");if(!re)return B(!1),void console.log("!isProductAvailableInCurrentCountry");if(B(!0),R&&!I&&!z)return F(!0),B(!1),setTimeout((()=>{F(!1)}),2e3),void console.log("isVarietySet && !varietySetIsComplete && !isTwelvePackSelected");if(E||L)return B(!1),void console.log("isOOS || isUnavailable");let i=t.variants[p];z&&a&&(i=a.variants[0],M&&(i=a.variants.find((e=>e.id===M))||i));const n={sku:i.sku||"",id:i.id,quantity:1,image:i.image.src,product_title:K?.replace(/<[^>]*>?/gm,""),variant_title:i.title,price:100*Z,final_price:100*Z,url:`https://starsandhoney.com/products/${t.handle}`,variant_id:Number(i.id),vendor:t.vendor,properties:{_compare_at_price:100*G,_rc_bundle_status:"club"===k?"Subscription":"One-Time"}};"club"===k&&(n.selling_plan=b?.selling_plan_id),z&&a&&M&&(n.id=M,n.variant_id=M);let s=[n];if(R&&!z){const t=p===r.BundleSize["20 Pack"]?S:j,a=(new Date).getTime();let c;s=T.map((e=>{c=p===r.BundleSize["20 Pack"]&&"one-time"===k?h[e].variants.find((e=>"10-PACK--"===e.title))?.id||"":p===r.BundleSize["30 Pack"]&&"one-time"===k?h[e].variants.find((e=>"10-PACK---"===e.title))?.id||"":p===r.BundleSize["20 Pack"]&&"club"===k?h[e].variants.find((e=>"10-PACK----"===e.title))?.id||"":p===r.BundleSize["30 Pack"]&&"club"===k?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:Z.toString(),_rc_bundle_status:"club"===k?"Subscription":"One-Time",_rc_bundle_size:p===r.BundleSize["20 Pack"]?"20-PACK":"30-PACK",_compare_at_price:100*G}};return T.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})),"club"===k&&(i.selling_plan=b?.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[T[0]].title,"Flavor 2":h[T[1]].title,...1===p?{"Flavor 3":h[T[2]].title}:{},_compare_at_price:100*G,_rc_bundle_status:"club"===k?"Subscription":"One-Time"},quantity:1,variant:{...i,title:1===p?"30-PACK":"20-PACK",price:{...i.price,amount:(o=Z,98===o?98.01:o).toString()}}});e.addFakeBundle({items:d?.items})}var o;try{e.addToCart({items:s}),P("AddToBagFromProductPage")}catch(e){console.error(e),B(!1)}},onClickVariant:oe,onClickSubscription:e=>{se("club",e)}}}},63:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCalculatedPrice=t.getTwelvePackPrice=void 0;const i=a(13);t.getTwelvePackPrice=({twelvePack:e,regularPrice:t,selectedSubscription:a,subscriptionClubData:i,priceFromVariant:r,twelvePackVariantId:n,featureTwelvePackDesign:s})=>{const l=e?.variants.find((e=>e?.id===n))??e?.variants[0];if(e){if(t)return Number(l?.compareAtPrice?.amount);if("club"===a){const e=r(l);return Number(e?.amount)*(1-(i?.discount_percentage||0)/100)}return Number(l?.price?.amount)}return Number(76)},t.getCalculatedPrice=({productPage:e,selectedSubscription:a,bundleSelected:r,twelvePack:n,isVarietySet:s,regularPrice:l,priceFromVariant:o,subscriptionClubData:c,twelvePackVariantId:d,featureTwelvePackDesign:u})=>{if(s&&r===i.BundleSize["12 Pack"])return(0,t.getTwelvePackPrice)({twelvePack:n,regularPrice:l,selectedSubscription:a,subscriptionClubData:c,priceFromVariant:o,twelvePackVariantId:d,featureTwelvePackDesign:u});if("club"===a){if(console.log("selectedSubscription",a,c),l)return Number(e.variants[r]?.compareAtPrice?.amount);const t=o(e.variants[r]);return Number(t?.amount)*(1-(c?.discount_percentage||0)/100)}{if(l)return Number(e.variants[r]?.compareAtPrice?.amount);const t=o(e.variants[r]);return Number(t?.amount)}}}}]);