"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[12],{99: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(2),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."]})]})]})}},253:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BundleSelector=void 0;var i=a(99);Object.defineProperty(t,"BundleSelector",{enumerable:!0,get:function(){return i.BundleSelector}})},170:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SummaryContainer=void 0;const i=a(0),r=a(100),n=a(58);t.SummaryContainer=({styles:e,productPage:t,flavorGraph:a,isFirstElement:s,changeMacros:l="default"})=>(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:"",changeMacros:l})}),(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."})]})]})},100: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(2),i(a(72))),s=a(46),l=a(1);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})]})}},97: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(2),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)},t)))})}},39: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(2),s=i(a(47)),l=a(34),o=a(1),c=a(28),d=a(94),u=a(49),h=a(21),p=a(20),v=a(57),m=a(3),f=a(40),g=a(169),x=a(95),S=a(249),C=a(96),b=a(97),j=a(98),y=a(58),P=a(253),k=a(170),w=a(254),$=a(24),T=i(a(103));"undefined"!=typeof window&&(window.Buffer=u.Buffer);const{mainContainer:I,mainContainerVarietySet:N,categoryLabel:_,title:V,titleTwelvePack:F,starsContainer:B,starsRating:D,ratingNumber:L,varietySetContainer:O,linkVarietySet:A,buttonGiftSet:M,linkGiftSet:E,varietySetContainerHolidays:R,varietySetContainerForVarietySetPDP:H,description:z,freeFromContainer:U,freeFromContainerVarietySet:Y,nutritionContainer:W,nutritionImageContainer:G,bundles:Z,selected:K,price:q,regularPrice:Q,regularPriceContainer:X,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:ve,nutritionArrowContainer:me,badgesContainer:fe,buttonLoading:ge,buttonLoader:xe,freeHatContainer:Se,plusSymbol:Ce,priceContainer:be,currencyCodeStyle:je,freeBadge:ye,brandHat:Pe,brandHatItalic:ke,hatFlex:we,limitedEdition:$e,shippingDate:Te,shippingDateIcon:Ie,shippingDateText:Ne,regularSwatchRows:_e,regularSwatchRow:Ve}=s.default;function Fe({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:Se,setBundleSelected:Ce,isSubscriptionEnabled:ye,featureSalePrice:Pe,featureShippingDate:ke,featureTwelvePackPrice:we,isMobile:Be=!1,productsExpandYourPalate:De,hasCmsRegularSwatchOrder:Le=!1,productsPdpRegularSwatches:Oe,productsPdpLtoSwatches:Ae,positionVarietySet:Me=1,productsVarietySetRegulars:Ee,productsVarietySetLtos:Re,productsVarietySetFlavors:He,twelvePackFlavorQuantities:ze,featureGoogleBadge:Ue,featureTastingLandingOneTimeHide:Ye,subscriptionClubData:We,featureTwelvePackDesign:Ge,featureCompareAtText:Ze,featurePdpSelector:Ke,flavorGraph:qe,featureAddToCart:Qe,featurePdpDesign:Xe,featurePurchaseType:Je,featureShowSubRegularPrice:et,featureFullPriceCompare:tt,featureSubscriptionBox:at,featureStickyAddButton:it,featureAutomaticDiscount:rt,automaticSiteWideDiscount:nt,isVarietySetSubscription:st,changeMacros:lt}){const[ot,ct]=(0,o.useState)(!0),dt=(0,o.useRef)(null),{selectedSubscription:ut,showSubscriptionInfo:ht,setShowSubscriptionInfo:pt,varietySetIsComplete:vt,setVarietySetIsComplete:mt,selectedFlavorSet:ft,setSelectedFlavorSet:gt,addFlavorsAlert:xt,setAddFlavorsAlert:St,loadingAddToCart:Ct,setLoadingAddToCart:bt,isOOS:jt,setIsOOS:yt,isUnavailable:Pt,setIsUnavailable:kt,twelvePackVariantId:wt,setTwelvePackVariantId:$t,isVarietySet:Tt,isTwelvePackSelected:It,isTwelvePack:Nt,isUSA:_t,title:Vt,calculatedPrice:Ft,calculatedRegularPrice:Bt,currentPriceVariant:Dt,currencySymbol:Lt,currencyCode:Ot,bundlePriceEach:At,hasLimitedTag:Mt,limitedProductDetailData:Et,handleIsInProductsExpandYourPalate:Rt,subNotEnabled:Ht,oneTimeNotEnabled:zt,isLimitedEdition:Ut,isProductAvailableInCurrentCountry:Yt,saleText:Wt,addToBagText:Gt,handleOptionChange:Zt,handleSubscriptionInfo:Kt,addToBagHandler:qt,onClickVariant:Qt,onClickSubscription:Xt}=(0,S.useProductDetails)({useSharedState:i,productPage:e,twelvePack:u,bundlePackVarietySetHandle:p.bundlePackVarietySetHandle,twelvePackHandle:p.twelvePackHandle,twelvePackStoreHandle:p.twelvePackStoreHandle,productsExpandYourPalate:De,productsPdpRegularSwatches:Oe,productsPdpLtoSwatches:Ae,productsVarietySetFlavors:He,bundleSelected:Se,setBundleSelected:Ce,featureTwelvePackPrice:we,featureTwelvePackDesign:Ge,featureSalePrice:Pe,featureCompareAtText:Ze,featurePurchaseType:Je,isSubscriptionEnabled:ye,subscriptionClubData:We,dynamicBoxId20pack:t.dynamicBoxId20pack,dynamicBoxId30pack:t.dynamicBoxId30pack,logOutcome:m.logOutcome,featureShowSubRegularPrice:et,featureFullPriceCompare:tt,featureSubscriptionBox:at,featureAutomaticDiscount:rt,automaticSiteWideDiscount:nt,isVarietySetSubscription:st,featureTastingLandingOneTimeHide:Ye}),{regularSwatchesRowFirst:Jt,regularSwatchesRowRest:ea}=(0,o.useMemo)((()=>{const e=Oe;return{regularSwatchesRowFirst:e.slice(0,8),regularSwatchesRowRest:e.length>8?e.slice(8):[]}}),[Oe]),ta=1===Me,aa=2===Me&&ea.length>0,ia=3===Me||2===Me&&0===ea.length,ra=(0,r.jsx)("button",{children:(0,r.jsx)("a",{className:`linkVarietySet ${A}`,href:t.mockProductDetailData.varietyButton.href,children:t.mockProductDetailData.varietyButton.text})}),na=ia||Ut&&(Et?.length>0||I);return(0,o.useEffect)((()=>{if(!dt.current)return;const e=new IntersectionObserver((([e])=>{ct(e.isIntersecting)}),{root:null,threshold:.01});return e.observe(dt.current),()=>e.disconnect()}),[]),(0,r.jsxs)("div",{className:`${s.default.mainContainer} ProductDetailsContainer ${(Tt||Nt)&&N}\n ${"v1"===Ke&&`${s.default.mainContainerSelectorV1} mainContainerSelectorV1`}\n ${"v2"===Ke&&`${s.default.mainContainerSelectorV2} mainContainerSelectorV2`}\n ${"default"!==Xe&&s.default.mainContainerV1}`,children:[(0,r.jsx)("p",{className:`categoryLabel ${_}`,children:"Collagen Protein Bar"}),(0,r.jsx)("h1",{className:`${V} productTitle ${F}`,dangerouslySetInnerHTML:{__html:Vt}}),(0,r.jsx)("div",{className:`starsContainer ${B}`,children:Nt||e.hideReviews||!e.reviews?.rating_average?e?.subheading&&(0,r.jsxs)("div",{className:`subheadingContainer ${s.default.subheadingContainer}`,children:[(0,r.jsx)("img",{src:"/fast-image/fl_progressive:steep/stars-honey/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:L,children:["(",(0,c.truncateOneDecimal)(e?.reviews?.rating_average),")"]})]})}),"v1"===Ke&&!Tt&&(0,r.jsx)(C.SelectFlavorList,{currentHandle:e.handle,flavors:Oe,preserveCmsFlavorOrder:Le,selectedFlavorSet:ft,varietySetHref:t.mockProductDetailData.varietyButton.href,onFlavorSelect:e=>{ft.includes(e)?gt(ft.filter((t=>t!==e))):gt([...ft,e])}}),"v2"===Ke&&!Tt&&(0,r.jsx)(w.SelectFlavorV2Keen,{currentHandle:e.handle,flavors:Oe,preserveCmsFlavorOrder:Le,isVarietySet:Tt,varietySetHref:t.mockProductDetailData.varietyButton.href,onFlavorSelect:e=>{ft.includes(e)?gt(ft.filter((t=>t!==e))):gt([...ft,e])}}),("default"===Ke||Tt)&&(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("div",{className:`swatches varietySetContainer ${O} ${Tt&&H} ${Ut&&R}`,children:(0,r.jsxs)("div",{className:`${_e} regularSwatchRows`,children:[(0,r.jsxs)("div",{className:`${Ve} regularSwatchRow`,children:[Jt.map((e=>(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})})]})},e.handle))),ta?ra:null]}),ea.length>0?(0,r.jsxs)("div",{className:`${Ve} regularSwatchRow`,children:[ea.map((e=>(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})})]})},e.handle))),aa?ra:null]}):null]})}),na?(0,r.jsxs)("div",{className:`varietySetContainer ${O} ${Tt&&H} ${Ut&&R}`,children:[Ae.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))),Et?.length>0&&(0,r.jsx)("p",{class:`limitedEdition ${$e}`,children:"LIMITED EDITION"}),ia?ra:null]}):null]}),I&&!Ut&&(0,r.jsx)("button",{className:`buttonGiftSet ${M}`,style:{marginBottom:"10px"},children:(0,r.jsx)("a",{className:`linkGiftSet ${E}`,href:t.mockProductDetailData.varsityHatButton.href,children:t.mockProductDetailData.varsityHatButton.text})}),"default"===Xe&&(0,r.jsx)("p",{className:`description ${z}`,style:{fontSize:Tt?"12px":"14px",lineHeight:Tt?"18px":"21px",letterSpacing:Tt?"normal":"-0.02em;",marginTop:Ut?"8px":"0px"},children:It&&u?u.description:e.description}),"default"===Xe&&(0,r.jsx)(b.FreeFromTags,{isVarietySet:Tt,isTwelvePack:Nt,productPageTags:e.tagsBadge,mockTagsForVarietySet:t.mockProductDetailData.mockTagsForVarietySet,freeFromContainerClass:U,freeFromContainerVarietySetClass:Y}),!Tt&&!Nt&&"default"===Xe&&(0,r.jsx)(y.ProductNutrition,{variant:"default",productPage:e,title:Vt,nutritionContainerClass:W,nutritionImageContainerClass:G,nutritionArrowContainerClass:me,badgesContainerClass:fe,changeMacros:lt}),!Tt&&!Nt&&(0,r.jsx)(P.BundleSelector,{productPage:e,bundleSelected:Se,onClickVariant:Qt,bundlePriceEach:At,currencySymbol:Lt,isTwelvePackSelected:It,featurePdpSelector:Xe,bundlesClass:Z,selectedClass:K}),Tt&&(0,r.jsx)(d.StepSelection,{productPage:e,bundleSelected:Se,setBundleSelected:Ce,bundlePriceEach:At,varietySetIsComplete:vt,setVarietySetIsComplete:mt,selectedFlavorSet:ft,setSelectedFlavorSet:gt,currencySymbol:Lt,productsVarietySetRegulars:Ee,productsVarietySetLtos:Re,productsVarietySetFlavors:He,twelvePackFlavorQuantities:ze,countryCode:i.countryCode,featureInternationalization:i.featureInternationalization,twelvePackEnabled:I,featurePdpDesign:Xe}),Nt&&(0,r.jsx)(v.TwelvePackDetails,{isMobile:Be,isVarietySet:Tt,productsExpandYourPalate:De,twelvePackFlavorQuantities:ze}),(0,r.jsxs)("div",{className:`priceContainer ${be}`,children:[(0,r.jsxs)("div",{className:`price ${q} ${Tt&&te} ${(Ot||"$"!==Lt)&&s.default.priceAutoWidth}`,children:[i.featureInternationalization&&(0,r.jsx)("div",{className:`currencyCodeStyle ${je}`,children:`${Ot} `}),`${Lt}${ut===p.PurchaseType.subscription?(0,$.roundIfClose)(Ft).toFixed(2):Ft.toFixed(2)}`]}),!!Bt&&!(0,$.isSimilarPrice)(Ft,Bt)&&(0,r.jsxs)("div",{className:`regularPriceContainer ${X} \n ${u&&It?J:""} \n ${Tt&&te}\n ${Bt.toFixed(2).length>6?`${s.default.regularPriceContainerLong} regularPriceContainerLong`:""}\n ${Bt.toFixed(2).length>8?`${s.default.regularPriceContainerVeryLong} regularPriceContainerVeryLong`:""}\n `,children:[(0,r.jsx)("span",{className:`regularPrice ${Q}`,children:`${Lt}${(0,$.roundIfClose)(Bt).toFixed(2)}`}),(0,r.jsx)("span",{className:`sale ${ee}`,children:Wt})]})]}),(0,r.jsx)(j.ProductSubscription,{variant:Xe,selectedSubscription:ut,subscriptionClubData:We,subNotEnabled:Ht,oneTimeNotEnabled:zt,isVarietySet:Tt,productSubscriptionClass:ae,productSubscriptionIsVarietyClass:ie,subscriptionInfoClass:re,backgroundPopupClass:se,showSubscriptionInfo:ht,showContainerClass:ne,onOptionChange:Zt,onClickSubscription:Xt,handleSubscriptionInfo:Kt,featurePurchaseType:Je,featureSubscriptionBox:at,isVarietySetSubscription:st}),It&&Ge&&_t&&Tt&&(0,r.jsx)(x.TwelvePackPurchaseOptions,{variant:Xe,twelvePack:u,twelvePackEnabled:I,isSubscriptionEnabled:ye,selectedSubscription:ut,onClickSubscription:Xt,twelvePackVariantId:wt,setTwelvePackVariantId:$t,subscriptionClubData:We,priceFromVariant:i.priceFromVariant,featureTwelvePackDesign:Ge,automaticSiteWideDiscount:nt}),"v1"===Xe&&(0,r.jsx)(b.FreeFromTags,{isVarietySet:Tt,isTwelvePack:Nt,productPageTags:e.tagsBadge,mockTagsForVarietySet:t.mockProductDetailData.mockTagsForVarietySet,freeFromContainerClass:U,freeFromContainerVarietySetClass:Y,variant:"v1"}),"v1"===Xe&&(0,r.jsx)(k.SummaryContainer,{isFirstElement:!(0,h.getActiveNutritionalImage)(e,lt)?.reference?.image?.originalSrc,styles:s.default,productPage:e,flavorGraph:qe,changeMacros:lt}),(0,r.jsxs)("div",{className:`labelShipContainer ${ce}`,style:{justifyContent:_t?"space-between":"center"},children:[(0,r.jsx)("p",{className:`labelShip ${le} ${Tt&&oe}`,children:_t&&(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(g.TruckIcon,{variant:"secondary"}),(0,r.jsx)("span",{children:"Always Free Shipping"})]})}),Ue&&(0,r.jsx)(f.GoogleBadge,{})]}),(0,r.jsxs)("div",{ref:dt,onClick:qt,role:"button","aria-label":"Add to bag",className:`addButton ${de} \n ${(0,h.isDisabled)({isVarietySet:Tt,varietySetIsComplete:vt,isProductAvailableInCurrentCountry:Yt,isTwelvePackSelected:It,isOOS:jt,isUnavailable:Pt,calculatedPrice:Ft,handleIsInProductsExpandYourPalate:Rt})&&pe}\n\t\t\t\t${Tt&&ve}\n\t\t\t\t${Ct&&ge}\n\t\t\t\t`,children:[(0,r.jsxs)("button",{children:[(0,r.jsx)(Fe,{addToBagText:Gt,featureAddToCart:Qe,calculatedPrice:Ft,calculatedRegularPrice:Bt,currencySymbol:Lt}),Ct&&(0,r.jsx)("span",{className:xe,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"})]})})]}),xt&&(0,r.jsx)("div",{className:he,children:"Please add more flavors"})]}),it&&!ot&&(0,r.jsx)(T.default,{onClick:qt,isVarietySet:Tt,varietySetIsComplete:vt,isProductAvailableInCurrentCountry:Yt,isTwelvePackSelected:It,isOOS:jt,isUnavailable:Pt,calculatedPrice:Ft,calculatedRegularPrice:Bt,handleIsInProductsExpandYourPalate:Rt,loadingAddToCart:Ct,addToBagText:Gt,featureAddToCart:Qe,currencySymbol:Lt,isUSA:_t,featureGoogleBadge:Ue}),ke&&(It&&u?.shippingDate||e?.shippingDate)&&(0,r.jsxs)("div",{className:`shippingDate ${Te}`,children:[(0,r.jsx)("div",{className:`shippingDateIcon ${Ie}`,children:(0,r.jsx)(g.TruckIcon,{})}),(0,r.jsx)("div",{className:`shippingDateText ${Ne}`,children:It?u?.shippingDate:e?.shippingDate})]})]})}},58: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(2),i(a(70))),s=a(46),l=a(1),o=a(21);t.ProductNutrition=({variant:e,productPage:t,title:a,nutritionContainerClass:i,nutritionImageContainerClass:c,nutritionArrowContainerClass:d,badgesContainerClass:u,changeMacros:h="default"})=>{const[p,v]=(0,l.useState)(!1),m=(0,o.getActiveNutritionalImage)(t,h),f={nutritionContainer:`nutritionContainer ${"v1"===e?n.default.v1NutritionContainer:i}`,nutritionImageContainer:`nutritionImageContainer ${"v1"===e?n.default.v1NutritionImageContainer:c}`,nutritionArrowContainer:`nutritionArrowContainer ${"v1"===e?n.default.v1NutritionArrowContainer:d}`,badgesContainer:`badgesContainer ${"v1"===e?n.default.v1BadgesContainer:u}`};return m?.reference?.image?.originalSrc?(0,r.jsxs)("div",{className:`${n.default.nutritionContainerWrapper} nutritionContainerWrapper`,children:[(0,r.jsxs)("div",{className:f.nutritionContainer,onClick:()=>{v(!p)},role:"button","aria-label":"Nutrition & Ingredients",children:[(0,r.jsx)("span",{children:"Nutrition and Ingredients"}),(0,r.jsx)("span",{className:`${f.nutritionArrowContainer} ${p?n.default.nutritionArrowContainerOpen:""}`,children:(0,r.jsx)(s.Arrow,{})})]}),p&&(0,r.jsxs)("div",{className:f.nutritionImageContainer,children:[(0,r.jsx)("img",{src:m.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:f.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}},98: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(2),i(a(69))),s=a(41),l=a(250),o=a(20),c=a(251),d=a(252);t.ProductSubscription=function({variant:e,selectedSubscription:t,subscriptionClubData:a,subNotEnabled:i,oneTimeNotEnabled:u,isVarietySet:h,productSubscriptionClass:p,productSubscriptionIsVarietyClass:v,subscriptionInfoClass:m,backgroundPopupClass:f,showSubscriptionInfo:g,showContainerClass:x,onOptionChange:S,onClickSubscription:C,handleSubscriptionInfo:b,featurePurchaseType:j,featureSubscriptionBox:y,isVarietySetSubscription:P}){return(0,r.jsxs)("div",{className:`productSubscription ${p} ${h&&v}\n ${"v1"===e&&"v1"}\n ${"v1"===e&&n.default.productSubscriptionV1}\n ${j===o.PurchaseType.subscription&&`PurchaseTypeSubscription ${n.default.purchaseTypeSubscription}`}\n `,children:[!u&&(0,r.jsxs)("div",{onClick:e=>S(o.PurchaseType.oneTime,e),disabled:u,role:"button","aria-label":"One-time purchase",className:`oneTimePurchase ${"v2"===y||"v3"===y||P?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:`\n subscriptionClubContainer \n ${"v2"===y||"v3"===y||P?n.default.subscriptionClubContainer:null}\n ${P&&u?n.default.isVarietySetSubscription:null}\n `,onClick:C,children:[(0,r.jsxs)("div",{onClick:C,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&&!("v2"===y||"v3"===y||P)&&(0,r.jsxs)("button",{onClick:b,role:"button","aria-label":"Subscription details",children:["Details",(0,r.jsxs)("div",{className:`subscriptionInfo ${m} ${g&&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&&("v2"===y||"v3"===y||P)&&(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 ${f} ${g&&x}`,onClick:b,role:"button","aria-label":"Subscription details"})]})}},96: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(2),i(a(67)));t.SelectFlavorList=function({currentHandle:e,flavors:t=[],selectedFlavorSet:a=[],onFlavorSelect:i,varietySetHref:s,preserveCmsFlavorOrder:l=!1}){const o=e=>{window.location.href=`/products/${t[e].handle}`},c=l?[...t]:[...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:c.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:()=>o(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:()=>o(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"})]})}},101: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(2),i(a(73)));a(29),a(30);const s=i(a(31));a(74);const l=a(1);t.SelectFlavorV2=function({currentHandle:e,flavors:t=[],onFlavorSelect:a,varietySetHref:i,preserveCmsFlavorOrder:o=!1}){const c=e=>{window.location.href=`/products/${t[e].handle}`},d=o?[...t]:[...t].sort(((e,t)=>{const a=e.tags.includes("limited"),i=t.tags.includes("limited");return a&&!i?1:!a&&i?-1:0})),u={dots:!0,speed:500,infinite:!0,variableWidth:!0,onSwipe:()=>v(!0),onSwipeEnd:()=>setTimeout((()=>v(!1)),100),swipeToSlide:!0,centerMode:!0,initialSlide:d.findIndex((t=>t.handle===e))||0},h=(0,l.useRef)(null),[p,v]=(0,l.useState)(!1),[m,f]=(0,l.useState)(0),[g,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:()=>{v(!1)},onMouseMove:()=>{v(!0)},onMouseUp:()=>{setTimeout((()=>v(!1)),100)},onTouchStart:e=>{f(e.touches[0].clientX),x(e.touches[0].clientY),v(!1)},onTouchMove:()=>{v(!0)},onTouchEnd:e=>{const t=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY,i=Math.abs(t-m),r=Math.abs(a-g);i<10&&r<10&&v(!1),setTimeout((()=>v(!1)),100)},children:(0,r.jsx)(s.default,{ref:h,arrows:!1,className:`${n.default.flavorList} flavorList`,...u,children:d.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=>{p||c(e)})(s),onTouchEnd:()=>(e=>{p||c(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"})]})}},102: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(2),a(1)),s=a(255);a(256);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,preserveCmsFlavorOrder:d=!1}){const u=d?[...t]:[...t].sort(((e,t)=>{const a=e.tags.includes("limited"),i=t.tags.includes("limited");return a&&!i?1:!a&&i?-1:0})),h=Math.max(u.findIndex((t=>t.handle===e)),0),[p,v]=(0,s.useKeenSlider)({initial:h,loop:!0,mode:"free",slides:{origin:"center",perView:"auto",spacing:0}}),[m,f]=(0,n.useState)(h);return(0,n.useEffect)((()=>{if(v.current){const e=()=>{const e=v.current;e&&e.track&&e.track.details&&f(e.track.details.abs||0)};return v.current.on("slideChanged",e),()=>{}}}),[v]),(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()||v.current?.prev()}),(0,r.jsx)(o,{disabled:!1,left:!1,onClick:e=>e.stopPropagation()||v.current?.next()})]}),(0,r.jsx)("div",{ref:p,className:`keen-slider ${l.default.keenSlider}`,children:u.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:u.map(((e,t)=>(0,r.jsx)("button",{className:`${l.default.keenSlider__dot} ${(m<0?u.length+m%u.length:m)%u.length===t?`${l.default["keenSlider__dot--active"]} active`:""}`,onClick:()=>(e=>{v.current&&v.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"})]})}},254:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectFlavorV2Keen=t.SelectFlavorV2=void 0;var i=a(101);Object.defineProperty(t,"SelectFlavorV2",{enumerable:!0,get:function(){return i.SelectFlavorV2}});var r=a(102);Object.defineProperty(t,"SelectFlavorV2Keen",{enumerable:!0,get:function(){return r.SelectFlavorV2Keen}})},94: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(2),s=i(a(48)),l=a(1),o=a(168),c=a(6),d=a(21),u=a(57),h=a(20),p=a(21),{selected:v,bundles:m,step2Container:f,backButton:g,varietySetContainer:x,varietyItem:S,varietyName:C,title:b,selectedOptionsContainer:j,selectedImagesContainer:y,modifyButton:P,stepIndicatorTitleContainer:k,columnDisplay:w,imageContainer:$,yourVarietySet:T,chosenFlavors:I,varietySetLimitedEdition:N,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:B,selectedFlavorSet:D,setSelectedFlavorSet:L,currencySymbol:O,productsVarietySetRegulars:A,productsVarietySetLtos:M,productsVarietySetFlavors:E,twelvePackFlavorQuantities:R,countryCode:H,featureInternationalization:z,twelvePackEnabled:U,featurePdpDesign:Y})=>{const W=e=>{L((t=>[...t,e])),[...D,e].length===t+2&&B(!0)},G=(0,l.useMemo)((()=>z?M.filter((e=>(0,d.isProductsAvailableInCurrentCountry)({product:e,countryCode:H}))):M),[M,z,H]);return(0,l.useEffect)((()=>{L([]);let e=!1;t===h.BundleSize["12 Pack"]&&(e=!0),B(e)}),[t]),(0,l.useEffect)((()=>{L([]),B(!1)}),[H]),(0,r.jsxs)("div",{className:`stepSelection ${s.default.stepSelection} ${"v1"===Y?s.default.stepSelectionV1:""} `,children:[(0,r.jsxs)("div",{className:`title ${b}`,children:[(0,r.jsx)("span",{children:"STEP 1"}),(0,r.jsx)("span",{children:"CHOOSE YOUR PACK SIZE"})]}),(0,r.jsxs)("div",{className:`bundles ${m}`,children:[U&&(0,r.jsxs)("div",{onClick:()=>a(2),children:[(0,r.jsx)("button",{className:`${t===h.BundleSize["12 Pack"]&&v}`,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"]&&v}`,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"]&&v}`,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:E,twelvePackFlavorQuantities:R}):(0,r.jsxs)("div",{className:`step2Container ${f}`,children:[c?(0,r.jsxs)("div",{className:`title ${b}`,children:[(0,r.jsx)("span",{children:"BUNDLE SUMMARY"}),(0,r.jsx)("span",{})]}):(0,r.jsxs)("div",{className:`title ${b}`,children:[(0,r.jsx)("span",{children:"STEP 2"}),(0,r.jsx)("span",{children:"CHOOSE YOUR FLAVORS"})]}),(0,r.jsxs)("div",{className:`stepIndicatorTitleContainer ${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:`backButton ${g}`,onClick:()=>{L((e=>e.slice(0,-1))),B(!1)},children:"Back"}),!c&&(0,r.jsx)("div",{className:`varietySetContainer ${x}`,style:{minHeight:"140px"},children:A.map(((e,t)=>(0,r.jsxs)("div",{className:`varietyItem ${S}`,onClick:()=>W(t),children:[(0,r.jsx)("img",{src:e.swatchImage,alt:e.title,width:60,height:60}),(0,r.jsx)("div",{className:`varietyName ${C} ${s.default.desktopOnly}`,children:e.title}),(0,r.jsx)("div",{className:`varietyName ${C} ${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&&G.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:`varietySetLimitedEdition ${N}`,children:"LIMITED EDITION"}),(0,r.jsx)("div",{className:`varietySetContainer ${x} limitedEditionContainer ${_}`,children:G.map((e=>{const t=M.findIndex((t=>t.handle===e.handle)),a=t>=0?A.length+t:A.length;return(0,r.jsxs)("div",{className:`varietyItem ${S}`,onClick:()=>W(a),children:[(0,r.jsx)("img",{src:e.swatchImage,alt:e.title,width:60,height:60}),(0,r.jsx)("div",{className:`varietyName ${C} ${s.default.desktopOnly}`,children:e.title}),(0,r.jsx)("div",{className:`varietyName ${C} ${s.default.mobileOnly}`,children:e.varietyNameMobile||e.title})]},e.handle)}))})]}),(0,r.jsxs)("div",{className:`selectedOptionsContainer ${j} ${G.length>0?V:""}`,style:{alignItems:c?"flex-start":"center"},children:[(0,r.jsx)("h3",{children:c?(0,r.jsx)("div",{className:`yourVarietySet ${T}`,children:"Your Variety Set"}):D.length>0?(0,r.jsx)("div",{className:`chosenFlavors ${I}`,children:"CHOSEN FLAVORS"}):""}),(0,r.jsx)("div",{className:`selectedImagesContainer ${y} ${c&&w}`,children:D.map(((e,t)=>(0,r.jsxs)("div",{className:`varietyItem ${S}`,children:[(0,r.jsx)("div",{className:`imageContainer ${$}`,"data-index":t+1,children:(0,r.jsx)("img",{src:E[e].swatchImage,alt:E[e].title,width:60,height:60})}),c&&(0,r.jsx)("span",{children:E[e].title})]},t)))}),c&&(0,r.jsx)("button",{className:`modifyButton ${P}`,onClick:()=>{L([]),B(!1)},children:"Modify"})]})]})})]})}},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.TwelvePackDetails=void 0;const r=a(0),n=(a(2),a(1)),s=a(168),l=i(a(48)),o=a(246);t.TwelvePackDetails=({isMobile:e=!1,productsExpandYourPalate:t,twelvePackFlavorQuantities:a})=>{const i=(0,n.useMemo)((()=>{const e=new Map;for(const a of t)e.set(a.title,a);return e}),[t]),c=(0,n.useMemo)((()=>a.map((({title:e,quantity:t})=>{const a=i.get(e);return a?{variety:a,quantity:t}:null})).filter((e=>null!==e))),[a,i]);return 0===c.length?null:(0,r.jsxs)("div",{className:`step2Container ${l.default.step2Container} `,children:[(0,r.jsxs)("div",{className:`title ${l.default.title} titleFlavors ${l.default.titleFlavors} `,children:[(0,r.jsx)("span",{children:"FLAVORS INCLUDED"}),(0,r.jsx)("span",{})]}),(0,r.jsxs)("div",{className:`stepIndicatorTitleContainer ${l.default.stepIndicatorTitleContainer} `,children:[(0,r.jsx)("div",{className:`stepperTitle ${l.default.stepperTitle}`,children:"12 PACK | ALL FLAVORS"}),(0,r.jsx)(s.ArrowRight,{})]}),(0,r.jsx)("div",{className:l.default.varietySetContainer,children:c.map((({variety:t,quantity:a})=>(0,r.jsxs)("div",{className:l.default.varietyItem,children:[(0,r.jsxs)("div",{className:`${l.default.varietyItemImage} varietyItemImage`,children:[(0,r.jsx)("img",{src:t.swatchImage,alt:t.title,width:60,height:60}),(0,r.jsx)(o.RoundedNumber,{number:a})]}),(0,r.jsx)("div",{className:`varietyName ${l.default.varietyName}`,style:{cursor:"default"},children:e&&t.title.includes("Chip")?t.title.split(/(?=Chip)/).map(((e,t)=>(0,r.jsxs)("div",{children:[e,0===t?(0,r.jsx)("br",{}):` (${a})`]},t))):`${t.title}`})]},t.handle)))})]})}},168:(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"})})},246:(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"})]})},103:function(e,t,a){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StickyAddButton=void 0;const r=a(0),n=i(a(47)),s=a(21),l=a(24),o=a(169),c=a(40),d=a(0),u=a(3),h=a(1);function p({onClick:e,isVarietySet:t,varietySetIsComplete:a,isProductAvailableInCurrentCountry:i,isTwelvePackSelected:p,isOOS:v,isUnavailable:m,calculatedPrice:f,calculatedRegularPrice:g,handleIsInProductsExpandYourPalate:x,loadingAddToCart:S,addToBagText:C,featureAddToCart:b,currencySymbol:j,isUSA:y,featureGoogleBadge:P}){const{addButton:k,disabled:w,addButtonVarietySet:$,buttonLoading:T,buttonLoader:I,stickyAddButton:N,stickyAddButtonInner:_,labelShip:V,labelShipVarietySet:F,labelShipContainer:B}=n.default,D=(0,s.isDisabled)({isVarietySet:t,varietySetIsComplete:a,isProductAvailableInCurrentCountry:i,isTwelvePackSelected:p,isOOS:v,isUnavailable:m,calculatedPrice:f,handleIsInProductsExpandYourPalate:x});return(0,h.useEffect)((()=>{(0,u.logOutcome)("stickyAddButtonMobile")}),[]),(0,r.jsx)("div",{style:{position:"relative"},children:(0,r.jsx)("div",{className:`stickyAddButton ${N}`,children:(0,r.jsxs)("div",{className:`stickyAddButtonInner ${_}`,children:[(0,r.jsxs)("div",{className:`labelShipContainer ${B}`,style:{justifyContent:y?"space-between":"center"},children:[(0,r.jsx)("p",{className:`labelShip ${V} ${t&&F}`,children:y&&(0,r.jsxs)(d.Fragment,{children:[(0,r.jsx)(o.TruckIcon,{variant:"secondary"}),(0,r.jsx)("span",{children:"Always Free Shipping"})]})}),P&&(0,r.jsx)(c.GoogleBadge,{})]}),(0,r.jsx)("div",{onClick:e,role:"button","aria-label":"Add to bag",className:`addButton ${k} \n ${D&&w}\n ${t&&$}\n ${S&&T}\n `,children:(0,r.jsxs)("button",{children:[(0,r.jsxs)("div",{children:[C,!!b&&(0,r.jsx)("span",{className:`addButtonOriginalPrice ${n.default.addButtonOriginalPrice}`,children:`${j}${f.toFixed(2)}`}),!!b&&!(0,l.isSimilarPrice)(f,g)&&g>0&&(0,r.jsx)("span",{className:`addButtonRegularPrice ${n.default.addButtonRegularPrice}`,children:`${j}${g.toFixed(2)}`})]}),S&&(0,r.jsx)("span",{className:I,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=p,t.default=p},95: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(2),i(a(66))),s=a(1),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:v,subscriptionClubData:m,priceFromVariant:f,featureTwelvePackDesign:g,automaticSiteWideDiscount:x})=>{const[S,C]=(0,s.useState)(o),b=e=>{C(e),v(e)},j=(0,l.getTwelvePackPrice)({twelvePack:t,regularPrice:!1,selectedSubscription:u,subscriptionClubData:m,priceFromVariant:f,twelvePackVariantId:o,featureTwelvePackDesign:g,automaticSiteWideDiscount:x}),y=(0,l.getTwelvePackPrice)({twelvePack:t,regularPrice:!0,selectedSubscription:u,subscriptionClubData:m,priceFromVariant:f,twelvePackVariantId:o,featureTwelvePackDesign:g,automaticSiteWideDiscount:x}),P=(0,l.getTwelvePackPrice)({twelvePack:t,regularPrice:!1,selectedSubscription:u,subscriptionClubData:m,priceFromVariant:f,twelvePackVariantId:c,featureTwelvePackDesign:g,automaticSiteWideDiscount:x}),k=y/12,w=j/12,$=(0,l.getTwelvePackPrice)({twelvePack:t,regularPrice:!0,selectedSubscription:u,subscriptionClubData:m,priceFromVariant:f,twelvePackVariantId:c,featureTwelvePackDesign:g,automaticSiteWideDiscount:x})/24,T=P/24,I=[{option:o,banner:"Curious? 12 Bars",title:"Buy 1 Tasting Set",originalPrice:k,discountedPrice:w,savePercentage:(k-w)/k*100,isSelected:S===o,imageCount:1},{option:c,banner:"Best Deal | 24 Bars",title:"Buy 2 Tasting Sets",originalPrice:$,discountedPrice:T,savePercentage:($-T)/$*100,isSelected:S===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)))})})}},252:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowRightIcon=void 0;const i=a(0);a(2),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"})})}},250:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowRightPopup=void 0;const i=a(0);a(2),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"})})}},251:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GiftIcon=void 0;const i=a(0);a(2),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"})})})]})}},169:(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"})})})]})},249:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useProductDetails=void 0;const i=a(1),r=a(20),n=a(24),s=a(22),l=a(42),o=a(21);t.useProductDetails=({useSharedState:e,productPage:t,twelvePack:a,bundlePackVarietySetHandle:c,twelvePackHandle:d,twelvePackStoreHandle:u,productsExpandYourPalate:h,productsPdpRegularSwatches:p,productsPdpLtoSwatches:v,productsVarietySetFlavors:m,bundleSelected:f,setBundleSelected:g,featureTwelvePackPrice:x,featureTwelvePackDesign:S,featureSalePrice:C,featureCompareAtText:b,featurePurchaseType:j,isSubscriptionEnabled:y,subscriptionClubData:P,dynamicBoxId20pack:k,dynamicBoxId30pack:w,logOutcome:$,featureShowSubRegularPrice:T,featureFullPriceCompare:I,featureSubscriptionBox:N,featureAutomaticDiscount:_,automaticSiteWideDiscount:V,isVarietySetSubscription:F,featureTastingLandingOneTimeHide:B})=>{const D=t.tags.includes("limited"),L=B,O=t.handle===c,A=f===r.BundleSize["12 Pack"],M=t.handle===d||t.handle===u,E=(0,i.useMemo)((()=>O?m?.length?m:h:p?.length?p:h),[O,m,p,h]),R=e.countryCode===s.DEFAULT_SHOPIFY_COUNTRY.countryCode,[H,z]=(0,i.useState)(t.subscriptionEnabled?(0,o.checkSelectedSubscription)({featureSubscriptionBox:N,featurePurchaseType:j,preselectSubscription:A&&M?a?.preselect_subscription:t.preselect_subscription,isVarietySetSubscription:F}):r.PurchaseType.oneTime),[U,Y]=(0,i.useState)(!1),[W,G]=(0,i.useState)(!1),[Z,K]=(0,i.useState)([]),[q,Q]=(0,i.useState)(!1),[X,J]=(0,i.useState)(!1),[ee,te]=(0,i.useState)(!1),[ae,ie]=(0,i.useState)(!1),[re,ne]=(0,i.useState)(x),se=A&&a?(0,o.modifyTitle)(a.title,a.cutline):(0,o.modifyTitle)(t.title,t.cutline),le=(0,n.getCalculatedPrice)({productPage:t,selectedSubscription:H,bundleSelected:f,twelvePack:a,isVarietySet:O,priceFromVariant:e.priceFromVariant,subscriptionClubData:P,twelvePackVariantId:re,featureTwelvePackDesign:S,featureAutomaticDiscount:_,automaticSiteWideDiscount:V}),oe=C||T||I||_?(0,n.getCalculatedPrice)({productPage:t,selectedSubscription:H,bundleSelected:f,twelvePack:a,isVarietySet:O,regularPrice:!0,priceFromVariant:e.priceFromVariant,subscriptionClubData:P,twelvePackVariantId:re,featureTwelvePackDesign:S,showSubRegularPrice:T,featureSalePrice:C,featureFullPriceCompare:I,featureAutomaticDiscount:_,defaultProductData:O||a?h?.[5]??h?.[1]:t??h?.[0],automaticSiteWideDiscount:V}):0,ce=(0,i.useMemo)((()=>A&&a?e.priceFromVariant(a.variants[0]):e.priceFromVariant(t.variants[f])),[t.variants,f,e.countryCode,A,a]),de=(0,i.useMemo)((()=>ce.currencySymbol),[ce]),ue=(0,i.useMemo)((()=>(0,s.currencyCodeIfneeded)({currencySymbol:ce.currencySymbol,featureInternationalization:e.featureInternationalization,countryCode:e.countryCode,currencyCode:ce.currencyCode})),[de,ce,e]),he=(0,i.useMemo)((()=>{const a=(P?.discount_percentage||0)/100,i=_?(V||0)/100:0,n=H===r.PurchaseType.subscription?a:i,s=e.priceFromVariant(t.variants[O?0:1]),l=e.priceFromVariant(t.variants[O?1:2]),o=e.priceFromVariant(t.variants[0]).amount,c=s.amount*(1-n),d=l.amount*(1-n);return[{priceEach:c/20,discountPercentage:(2*o-c)/(2*o)*100},{priceEach:d/30,discountPercentage:(3*o-d)/(3*o)*100}]}),[t.variants,e.priceFromVariant,H,O,P,_,V]),pe=null!=v&&v.length>0?v:h,ve=(0,o.limitedProductByVariety)({productsExpandYourPalate:pe,countryCode:e.countryCode,featureInternationalization:e.featureInternationalization}),me=(0,i.useMemo)((()=>h.some((e=>e.handle===t.handle))||t.handle===c),[h,t.handle,c]),fe=(0,i.useMemo)((()=>{const i=!!t.subscriptionEnabled,n=f===r.BundleSize["12 Pack"]&&(M||O),l=a?.subscriptionEnabled,o=e.countryCode!==s.DEFAULT_SHOPIFY_COUNTRY.countryCode,c=(e=>e.some((e=>{const t=E[e].handle,a=E.find((e=>e.handle===t));return!a?.subscriptionEnabled})))(Z);return!y||o||!i||c||n&&!l||null===P}),[y,e.countryCode,t.subscriptionEnabled,Z,M,f,O,a,E]),ge=(0,i.useMemo)((()=>h.some((e=>e.tags.includes("limited")))),[h]),xe=(0,i.useMemo)((()=>!e.featureInternationalization||ce.country===e.countryCode),[e.featureInternationalization,ce.country,e.countryCode]),Se=(0,i.useMemo)((()=>"fullprice"===b?"Full Price":"Sale"),[b]),Ce=(e,t)=>{if(fe)return t?.preventDefault(),void z(r.PurchaseType.oneTime);z(e)},be=(0,i.useMemo)((()=>ae?"Unavailable":ee?"Out of Stock":"Add to bag"),[ae,ee]),je=e=>{g(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&&J(!1)}),[e.showCart]),(0,i.useEffect)((()=>{fe&&z(r.PurchaseType.oneTime)}),[fe]),(0,i.useEffect)((()=>{if(a&&A)return te(a?.variants[0]?.currentlyNotInStock),ie(!a?.variants[0]?.availableForSale),console.log({isTwelvePackSelected:A,twelvePack:a,preselectSubscription:A&&M?a?.preselect_subscription:t.preselect_subscription}),void z(fe?r.PurchaseType.oneTime:(0,o.checkSelectedSubscription)({featureSubscriptionBox:N,featurePurchaseType:j,preselectSubscription:A&&a?a?.preselect_subscription:t.preselect_subscription,isVarietySetSubscription:F}));te((()=>0===t.variants[f].quantityAvailable||t.variants[f]?.currentlyNotInStock)),ie(!t.variants[f]?.availableForSale),z(fe?r.PurchaseType.oneTime:(0,o.checkSelectedSubscription)({featureSubscriptionBox:N,featurePurchaseType:j,preselectSubscription:A&&M?a?.preselect_subscription:t.preselect_subscription,isVarietySetSubscription:F}))}),[f,a,A,t.variants]),(0,i.useEffect)((()=>{je(f)}),[f]),{selectedSubscription:H,setSelectedSubscription:z,showSubscriptionInfo:U,setShowSubscriptionInfo:Y,varietySetIsComplete:W,setVarietySetIsComplete:G,selectedFlavorSet:Z,setSelectedFlavorSet:K,addFlavorsAlert:q,setAddFlavorsAlert:Q,loadingAddToCart:X,setLoadingAddToCart:J,isOOS:ee,setIsOOS:te,isUnavailable:ae,setIsUnavailable:ie,twelvePackVariantId:re,setTwelvePackVariantId:ne,isVarietySet:O,isTwelvePackSelected:A,isTwelvePack:M,isUSA:R,title:se,calculatedPrice:le,calculatedRegularPrice:oe,currentPriceVariant:ce,currencySymbol:de,currencyCode:ue,bundlePriceEach:he,hasLimitedTag:D,limitedProductDetailData:ve,handleIsInProductsExpandYourPalate:me,subNotEnabled:fe,oneTimeNotEnabled:L,isLimitedEdition:ge,isProductAvailableInCurrentCountry:xe,saleText:Se,addToBagText:be,handleOptionChange:Ce,handleSubscriptionInfo:e=>{e?.preventDefault(),Y(!U)},addToBagHandler:async()=>{if(X)return void console.log("loadingAddToCart");if(!me)return void console.log("handleIsInProductsExpandYourPalate");if(0===le)return J(!1),void console.log("calculatedPrice === 0");if(!xe)return J(!1),void console.log("!isProductAvailableInCurrentCountry");if(J(!0),O&&!W&&!A)return Q(!0),J(!1),setTimeout((()=>{Q(!1)}),2e3),void console.log("isVarietySet && !varietySetIsComplete && !isTwelvePackSelected");if(ee||ae)return J(!1),void console.log("isOOS || isUnavailable");let i=t.variants[f];A&&a&&(i=a.variants[0],re&&(i=a.variants.find((e=>e.id===re))||i));const n={sku:i.sku||"",id:i.id,quantity:1,image:i.image.src,product_title:se?.replace(/<[^>]*>?/gm,""),variant_title:i.title,price:100*le,final_price:100*le,url:`https://starsandhoney.com/products/${t.handle}`,variant_id:Number(i.id),vendor:t.vendor,properties:{_compare_at_price:100*oe,_rc_bundle_status:H===r.PurchaseType.subscription?"Subscription":"One-Time"}};H===r.PurchaseType.subscription&&(n.selling_plan=P?.selling_plan_id),A&&a&&re&&(n.id=re,n.variant_id=re);let s=[n];if(O&&!A){const t=f===r.BundleSize["20 Pack"]?k:w,a=(new Date).getTime();let c;s=Z.map((e=>{const i=E[e];c=f===r.BundleSize["20 Pack"]&&H===r.PurchaseType.oneTime?i.variants.find((e=>"10-PACK--"===e.title))?.id||"":f===r.BundleSize["30 Pack"]&&H===r.PurchaseType.oneTime?i.variants.find((e=>"10-PACK---"===e.title))?.id||"":f===r.BundleSize["20 Pack"]&&H===r.PurchaseType.subscription?i.variants.find((e=>"10-PACK----"===e.title))?.id||"":f===r.BundleSize["30 Pack"]&&H===r.PurchaseType.subscription?i.variants.find((e=>"10-PACK-----"===e.title))?.id||"":i.variants.find((e=>"10-PACK--"===e.title))?.id||"";const n={id:c,productId:i.id,quantity:1,properties:{_dynamicBoxId:t,_dynamicBoxIndex:a,_rc_bundle_price:le.toString(),_rc_bundle_status:H===r.PurchaseType.subscription?"Subscription":"One-Time",_rc_bundle_size:f===r.BundleSize["20 Pack"]?"20-PACK":"30-PACK",_compare_at_price:100*oe}};return Z.forEach(((e,t)=>{const a=E[e];n.properties[`_rc_bundle_flavor${t+1}`]=a.title,n.properties[`_rc_bundle_flavor${t+1}_ID`]=a.id,n.properties[`Flavor ${t+1}`]=a.title})),H===r.PurchaseType.subscription&&(n.selling_plan=P?.selling_plan_id),n}));const d=(0,l.convertProductToPayload)({product:{...n,variant_title:1===f?"30-PACK":"20-PACK",title:"Signature Flavors Variety Set"},additionalProperties:{"Flavor 1":E[Z[0]].title,"Flavor 2":E[Z[1]].title,...1===f?{"Flavor 3":E[Z[2]].title}:{},_compare_at_price:100*oe,_rc_bundle_status:H===r.PurchaseType.subscription?"Subscription":"One-Time"},quantity:1,variant:{...i,title:1===f?"30-PACK":"20-PACK",price:{...i.price,amount:(o=le,98===o?98.01:o).toString()}}});e.addFakeBundle({items:d?.items})}var o;try{e.addToCart({items:s}),$("AddToBagFromProductPage")}catch(e){console.error(e),J(!1)}},onClickVariant:je,onClickSubscription:e=>{Ce(r.PurchaseType.subscription,e)}}}}}]);