"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[7],{70:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CartItem=void 0;const r=n(0),s=(n(1),n(4)),a=n(170),i=o(n(31)),l=n(171),c=n(12),u=n(2),d=n(7),{productItem:p,itemImage:m,itemDetails:h,itemTitle:y,itemSubtitle:v,itemPriceContainer:f,itemPrice:_,itemOriginalPriceContainer:C,itemOriginalPrice:x,itemOriginalPriceSale:j,itemDelivery:g,trashIcon:b,quantityControls:$,noArrows:k,disabled:M,itemFlavor:N,currencyCodeStyle:I}=i.default,w=async({updateCart:e,ids:t,item:n,quantity:o,operationType:r,changeToCart:s})=>{if(Array.isArray(t))await(async({updateCart:e,ids:t,item:n,quantity:o,operationType:r})=>{const s=t.reduce(((e,t)=>{const n=t.toString();return e[n]=(e[n]||0)+1,e}),{}),a={};n.bundleItems.map((e=>{const t=s[e.key];let n=o*t;switch(r){case"increment":n+=t;break;case"decrement":n-=t;break;case"remove":n=0}a[e.key]={final_price:e.price,image:e.image,price:e.price,product_title:e.product_title,url:e.url,variant_id:e.variant_id,variant_title:e.variant_title,vendor:e.vendor,quantity:n}})),await e(a)})({updateCart:e,ids:t,item:n,quantity:o,operationType:r});else{let e=o;switch(r){case"change":e=o;break;case"decrement":e=o-1;break;case"increment":e=o+1;break;case"remove":e=0}await s({id:t.toString(),quantity:e})}};t.CartItem=({item:e,useSharedState:t,inputLoading:n,setInputLoading:o})=>{const{changeToCart:i,updateCart:S,cart:T}=t,P=(0,u.useMemo)((()=>{const t=e.price;return isNaN(t)?" - ":t?(t/100).toFixed(2):"0.00"}),[e.price,false]),B=(0,u.useMemo)((()=>t?.findSymbol(T.currency)?.currencySymbol),[T.currency]),F=(0,u.useMemo)((()=>(0,d.currencyCodeIfneeded)({currencySymbol:B,featureInternationalization:t.featureInternationalization,countryCode:t.countryCode,currencyCode:T.currency})),[B,T.currency,t]),O=(0,u.useMemo)((()=>isNaN(e?.properties?._compare_at_price)?"":e.properties?._compare_at_price?(e?.properties?._compare_at_price/100).toFixed(2):""),[e.properties?._compare_at_price,false]),D=((t,n)=>{let r;return(...t)=>{r&&clearTimeout(r),r=window.setTimeout((()=>{(async t=>{o(!0);try{w({ids:t,quantity:0,item:e,operationType:"remove",changeToCart:i,updateCart:S})}catch(e){console.error("Error remove item from cart:",e)}finally{o(!1)}})(...t)}),1e3)}})();return(0,r.jsxs)("div",{className:`productItem ${p}`,children:[(0,r.jsx)("a",{href:(0,c.sanitizeUrl)(e.url),className:"linkProductItem",children:(0,r.jsx)("img",{src:(0,s.getFastImage)((0,l.imageResize)(e?.featured_image?.url||e.image||"",180)),alt:e?.featured_image?.alt,className:`itemImage ${m}`})}),(0,r.jsxs)("div",{className:`itemDetails ${h}`,children:[(0,r.jsx)("a",{href:(0,c.sanitizeUrl)(e.url),className:`itemTitle ${y}`,children:e.product_title}),(0,r.jsxs)("p",{className:`itemSubtitle ${v}`,children:[e.variant_title,(e.selling_plan_allocation||"Subscription"===e?.properties?._rc_bundle_status)&&" | Subscription"]}),(e.selling_plan_allocation||"Subscription"===e?.properties?._rc_bundle_status)&&(0,r.jsx)("p",{className:`itemDelivery ${g}`,children:"Delivers Every 30 Days"}),e.properties?.["Flavor 1"]&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:N,children:["Flavor 1: ",e.properties["Flavor 1"]]}),(0,r.jsxs)("p",{className:N,children:["Flavor 2: ",e.properties["Flavor 2"]]})]}),e.properties?.["Flavor 3"]&&(0,r.jsx)("div",{children:(0,r.jsxs)("p",{className:N,children:["Flavor 3: ",e.properties["Flavor 3"]]})}),(0,r.jsxs)("p",{className:`itemPriceContainer ${f}`,children:[(0,r.jsxs)("span",{className:`itemPrice ${_}`,children:[!!F&&(0,r.jsx)("span",{className:`currencyCodeStyle ${I}`,children:`${F} `}),`${B}${P}`]}),!!O&&(0,r.jsxs)("span",{className:`itemOriginalPriceContainer ${C}`,children:[(0,r.jsxs)("span",{className:`itemOriginalPrice ${x}`,children:["$",O]}),(0,r.jsx)("span",{className:`itemOriginalPriceSale ${j}`,children:"Sale"})]})]}),(0,r.jsxs)("div",{className:`quantityControls ${$} ${n&&M}`,children:[(0,r.jsx)("button",{onClick:()=>(async(t,n)=>{o(!0);try{w({ids:t,quantity:n,item:e,operationType:"decrement",changeToCart:i,updateCart:S})}catch(e){console.error("Error incrementing item quantity:",e)}finally{o(!1)}})(e.key||e.bundleItemsKeys,e.quantity),disabled:n,children:"−"}),(0,r.jsx)("input",{className:`noArrows ${k} ${n&&M}`,type:"number",value:e.quantity,onChange:t=>{const n=t.target;if(n){const t=parseInt(n.value,10)||1;(async(t,n)=>{o(!0);try{w({ids:t,quantity:n,item:e,operationType:"change",changeToCart:i,updateCart:S})}catch(e){console.error("Error updating cart:",e)}finally{o(!1)}})(e.key||e.bundleItemsKeys,t)}},min:"1"}),(0,r.jsx)("button",{onClick:()=>(async(t,n)=>{o(!0);try{w({ids:t,quantity:n,item:e,operationType:"increment",changeToCart:i,updateCart:S})}catch(e){console.error("Error incrementing item quantity:",e)}finally{o(!1)}})(e.key||e.bundleItemsKeys,e.quantity),disabled:n,children:"+"})]})]}),(0,r.jsx)("button",{className:`${b} trashIcon`,onClick:()=>D(e.key||e.bundleItemsKeys),disabled:n,children:(0,r.jsx)(a.Trash,{})})]})}},15:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CartMenu=void 0;const r=n(0),s=(n(1),o(n(30))),a=n(2),i=n(0),l=n(52),c=n(107),u=n(4),d=n(70),p=o(n(32)),m=n(7),h=n(53),{cartMenu:y,cartDiscount:v,cartMenuOpen:f,cartMenuClose:_,cartMenuContainer:C,topTitle:x,crossIcon:j,labelShip:g,buttonsContainers:b,allItemsContainer:$,emptyCartContainer:k,emptyIconContainer:M,hoverContainer:N,continueBrowsing:I,checkoutButton:w,continueShopButton:S}=s.default,{loadBar:T}=p.default;(0,u.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.CartMenu=({useSharedState:e})=>{const{cart:t,setShowCart:n,showCart:o,loadingAddToCart:s,fakeBundle:u}=e,p=e=>{},P=(0,a.useMemo)((()=>t.items.reduce(((e,t)=>{const n=t?.properties?._dynamicBoxIndex;return n&&(e[n]||(e[n]=[]),e[n].push(t)),e}),{})),[t.items]),B=(0,a.useMemo)((()=>{const e=[];for(const t in P){const n=P[t],o="10-PACK---"===n[0]?.variant_title||"10-PACK-----"===n[0]?.variant_title?30:20,r=20===o?"20-PACK":"30-PACK",s=n.reduce(((e,t)=>e+10*t.quantity),0),a=Math.ceil(s/o),i=n.reduce(((e,t)=>e+t?.price*t.quantity),0)/a,l=n.reduce(((e,t)=>e+t.original_price*t.quantity),0)/a,c=n[0]?.product_title,u=n[1]?.product_title||n[0]?.product_title,d=n[2]?.product_title||(n[1]?.quantity>n[0]?.quantity?u:c),p={"Flavor 1":u,"Flavor 2":c,_compare_at_price:n[0]?.properties?._compare_at_price,_rc_bundle_status:n[0]?.properties?._rc_bundle_status};30===o&&(n[2]?(p["Flavor 1"]=d,p["Flavor 2"]=u,p["Flavor 3"]=c):(p["Flavor 1"]=c,p["Flavor 2"]=d,p["Flavor 3"]=u));let m=[];m[0]=n[0]?.key,m[1]=n[1]?.key||n[0]?.key,30===o&&(m[2]=n[2]?.key||(n[0]?.quantity>n[1]?.quantity?n[0]?.key:n[1]?.key)||n[0]?.key);const h={properties:p,quantity:a,product_title:"Signature Flavors Variety Set",price:i,original_price:l,url:"/products/signature-flavors-variety-set",featured_image:{alt:"Variety Set",url:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/ProductFamilyALL1_1_1_18861295-198d-4f5f-b6cd-b13087ac76e5_180x.png?v=1708860545"},image:"https://cdn.shopify.com/s/files/1/0664/6100/8105/files/ProductFamilyALL1_1_1_18861295-198d-4f5f-b6cd-b13087ac76e5_180x.png?v=1708860545",variant_title:r,bundleItems:n,bundleItemsKeys:m};n.some((e=>e.selling_plan_allocation))&&(h.selling_plan_allocation="true"),e.push(h)}return e}),[P]),F=(0,a.useMemo)((()=>{const e=[];return t.items.map((t=>{if(t?.id===h.SHIPPING_ITEM_ID)return null;if(0===t?.quantity)return null;if(!t?.properties?._dynamicBoxIndex)return t;if(e.includes(t?.properties?._dynamicBoxIndex))return null;return B.find((n=>n?.bundleItems?.[0]?.properties?._dynamicBoxIndex===t?.properties?._dynamicBoxIndex?(e.push(t?.properties?._dynamicBoxIndex),n):null))||void 0})).filter((e=>!!e))}),[t.items,B]),O=(0,a.useMemo)((()=>{const e=u?.items?.[0]?.final_price;let n=t.total_price;return e&&(n+=e),n?(n/100).toFixed(2):"0.00"}),[t.total_price,u?.items?.[0]?.final_price]),D=(0,a.useMemo)((()=>{if(!t?.cart_level_discount_applications?.[0])return"";let e=t?.cart_level_discount_applications?.[0]?.discount_application||t?.cart_level_discount_applications?.[0];return`${e?.title}: -$${(e?.total_allocated_amount/100).toFixed(2)}`}),[t?.cart_level_discount_applications]),L=(0,a.useMemo)((()=>e?.findSymbol(t.currency)?.currencySymbol),[t.currency]),z=(0,a.useMemo)((()=>(0,m.currencyCodeIfneeded)({currencySymbol:L,featureInternationalization:e.featureInternationalization,countryCode:e.countryCode,currencyCode:t.currency})),[L,t.currency,e]),A=(0,a.useMemo)((()=>(console.log("fakeBundle",u,F),!(F?.length>0||u?.items?.[0]))),[F,u,o]);return(0,a.useEffect)((()=>(document.documentElement.style.overflow=o?"hidden":"",()=>{document.documentElement.style.overflow=""})),[o]),(0,r.jsx)("div",{className:`${y} cartMenu ${o?f:_}`,onClick:()=>n(!1),children:(0,r.jsxs)("div",{className:`cartMenuContainer ${C} ${o?f:_}`,onClick:e=>e.stopPropagation(),children:[(0,r.jsxs)("div",{className:`topTitle ${x}`,children:["CART",(0,r.jsx)("div",{className:`crossIcon ${j}`,onClick:()=>n(!1),children:(0,r.jsx)(l.Cross,{})})]}),(0,r.jsxs)("div",{style:{display:A?"none":"block"},children:[(0,r.jsxs)("div",{className:`allItemsContainer ${$}`,children:[u?.items?.[0]&&u?.items?.[0]?.id!==h.SHIPPING_ITEM_ID&&(0,r.jsx)(d.CartItem,{item:u?.items?.[0],useSharedState:e,setInputLoading:p,inputLoading:!1}),F.map((t=>(0,r.jsx)(d.CartItem,{item:t,useSharedState:e,setInputLoading:p,inputLoading:!1},t.key))),(0,r.jsx)("p",{className:`labelShip ${g}`,children:"US"===e.countryCode&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("span",{children:"★"})," Always Free Shipping"]})})]}),(0,r.jsxs)("div",{className:b,children:[(0,r.jsx)("button",{className:`continueShopButton ${S}`,onClick:()=>n(!1),children:"Continue Shopping →"}),D&&(0,r.jsx)("div",{className:`cartDiscount ${v}`,children:D}),(0,r.jsx)("form",{id:"form",action:"/checkout",method:"post",children:(0,r.jsxs)("button",{className:`checkoutButton ${w}`,disabled:s,children:["CHECKOUT • ",`${z} ${L}${O}`]})})]})]}),(0,r.jsxs)("div",{className:`emptyCartContainer ${k}`,style:{display:A?"flex":"none"},children:[s&&(0,r.jsx)("div",{className:`loadBar ${T}`}),(0,r.jsx)("p",{children:"Your cart is empty."}),(0,r.jsxs)("div",{className:`hoverContainer ${N}`,onClick:()=>n(!1),children:[(0,r.jsx)("div",{className:`emptyIconContainer ${M}`,children:(0,r.jsx)(c.Bag,{})}),(0,r.jsx)("div",{className:`continueBrowsing ${I}`,children:(0,r.jsx)("span",{children:"CONTINUE BROWSING"})})]})]})]})})}},170:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Trash=void 0;const o=n(0);t.Trash=()=>(0,o.jsxs)("svg",{"aria-hidden":"true",focusable:"false",role:"presentation",class:"icon icon-bin",viewBox:"0 0 11 14",children:[(0,o.jsx)("path",{d:"M10 2v10a2 2 0 01-2 2H3a2 2 0 01-2-2V2h9zM9 3H2v9a1 1 0 00.883.993L3 13h5a1 1 0 00.993-.883L9 12V3z"}),(0,o.jsx)("path",{d:"M10.5 2a.5.5 0 110 1H.5a.5.5 0 010-1h10zm-3-2a.5.5 0 010 1h-4a.5.5 0 010-1h4z"})]})},16:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ForeignCountryPopup=void 0;const r=n(0),s=n(45),a=o(n(33)),i=n(7),l=n(2);t.ForeignCountryPopup=({useSharedState:e})=>{const{countryCode:t,changeCountryCode:n,currencyCode:o,syncCart:c,isForeign:u,contextCountry:d}=e,[p,m]=(0,l.useState)(!0);if(!u)return null;if(!p)return null;const h=(0,i.getShopifyCountry)({countryCode:t});if(!h)return null;const{country:y}=h,v=(e,t)=>{n(e),c(t,e),m(!1)};return(0,r.jsxs)(s.Popup,{children:[(0,r.jsxs)("div",{className:`headingContainer ${a.default.headingContainer}`,children:[(0,r.jsx)("div",{children:(0,r.jsx)("img",{src:h.flag,alt:y,width:36,height:27})}),(0,r.jsxs)("p",{children:["We noticed you are from ",y]})]}),(0,r.jsxs)("div",{className:`buttonContainer ${a.default.buttonContainer}`,children:[(0,r.jsx)("button",{className:`cancelButton ${a.default.cancelButton}`,onClick:()=>v(i.DEFAULT_SHOPIFY_COUNTRY.countryCode,i.DEFAULT_SHOPIFY_COUNTRY.currencyCode),children:"Continue in this site"}),(0,r.jsxs)("button",{className:`primaryButton ${a.default.primaryButton}`,onClick:()=>v(t,o),children:["Visit ",t," shop"]})]})]})}},68:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Dropdown=void 0;const r=n(0),s=n(2),a=o(n(21)),i=n(7),l=n(108);t.Dropdown=({selectedCountry:e,setSelectedCountry:t,localizations:n})=>{const[o,u]=(0,s.useState)(!1);return(0,r.jsxs)("div",{className:`dropdownContainer ${a.default.dropdownContainer}`,role:"button",children:[(0,r.jsxs)("div",{className:`dropdown ${a.default.dropdown}`,children:[!o&&(0,r.jsx)(c,{country:e,isPlaceholder:!0,onClick:()=>{1!==n.length&&u(!0)}}),o&&(0,r.jsx)("div",{className:`flags ${a.default.flags}`,children:i.SHOPIFY_COUNTRIES.filter((e=>n.find((t=>t.isoCode===e.countryCode)))).map((e=>(0,r.jsx)(c,{country:e,onClick:()=>{t(e),u(!1)}},e.countryCode)))})]}),!o&&(0,r.jsx)(l.ArrowDown,{color:"#000",className:a.default.dropdownArrow})]})};const c=({country:e,isPlaceholder:t,onClick:n})=>(0,r.jsxs)("div",{className:`flag ${a.default.flag}`,onClick:n,role:"button",children:[(0,r.jsx)("img",{src:e.flag,alt:e.country,width:36,height:27}),(0,r.jsx)("p",{children:t?`(${e?.currencyCode}) Select you country`:`${e?.country} ${e?.currencyCode}`})]})},67:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InternationalizationPopup=void 0;const r=n(0),s=n(2),a=o(n(21)),i=n(45),l=n(68);t.InternationalizationPopup=({onClose:e,countryCode:t,changeCountryCode:n,syncCart:o,country:c,localizations:u})=>{const[d,p]=(0,s.useState)(c);return(0,s.useEffect)((()=>{p(c)}),[c]),(0,r.jsxs)(i.Popup,{children:[(0,r.jsxs)("div",{className:`InternationalizationPopup mainContainer ${a.default.mainContainer}`,children:[(0,r.jsx)("p",{children:"Now shipping worldwide"}),(0,r.jsx)("label",{children:"Shipping to:"}),(0,r.jsx)(l.Dropdown,{selectedCountry:d,setSelectedCountry:p,localizations:u})]}),(0,r.jsxs)("div",{className:`buttonContainer ${a.default.buttonContainer}`,children:[(0,r.jsx)("button",{className:`cancelButton ${a.default.cancelButton}`,onClick:t=>{t.preventDefault(),e()},children:"Cancel"}),(0,r.jsx)("button",{className:`primaryButton ${a.default.primaryButton}`,onClick:t=>{t.preventDefault(),n(d.countryCode),o(d.currencyCode,d.countryCode),e()},children:"Shop now"})]})]})}},108:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowDown=void 0;const o=n(0);n(1),t.ArrowDown=function({color:e="#FFF",...t}){return(0,o.jsx)("svg",{width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",className:t.className,children:(0,o.jsx)("path",{d:"M0.977539 1.43628L4.99875 5.45749C5.05736 5.5161 5.15239 5.5161 5.211 5.45749L9.23221 1.43628",stroke:e,strokeWidth:"1.50085",strokeLinecap:"round"})})}},45:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Popup=void 0;const r=n(0),s=o(n(29));t.Popup=({children:e})=>(0,r.jsx)("div",{className:`backdrop ${s.default.backdrop}`,children:(0,r.jsx)("div",{className:`popup ${s.default.popup}`,children:e})})},13:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TopBanner=void 0;const r=n(0),s=(n(1),o(n(28))),a=n(106),{topBanner:i,topBannerDesktop:l,topBannerMobile:c,hidden:u}=s.default;t.TopBanner=function({topBanner:e}){const{scrollStyle:t}=(0,a.useTopBarHook)();return e&&e.desktop_html&&e.show?(0,r.jsxs)("div",{class:`${i} topBanner ${"hidden"===t&&u}`,children:[(0,r.jsx)("a",{className:l,dangerouslySetInnerHTML:{__html:e.desktop_html},href:e.cta}),(0,r.jsx)("a",{className:c,dangerouslySetInnerHTML:{__html:e.mobile_html},href:e.cta})]}):null}},14:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TopBar=void 0;const r=n(0),s=(n(1),o(n(20))),a=n(2),i=n(165),l=n(166),c=n(107),u=n(52),d=n(167),p=n(106),m=n(66),h=n(67),y=n(7),v=n(168),f=e=>e.replace("https://starsandhoney.com",""),{navbar:_,topBarContainer:C,topBarContainerOpen:x,hasTopBanner:j,mobileMenuIcon:g,mobileMenu:b,mobileMenuOpen:$,mobileMenuClose:k,mobileMenuContainer:M,bgTransparency:N,mobileMenuItem:I,desktopMenu:w,desktopLinks:S,desktopIcons:T,logoSVG:P,crossIcon:B,desktopIconsShadow:F,hidden:O,blured:D,background:L,cartItemCount:z,bagIcon:A,intl:E}=s.default;t.TopBar=function({menu:e,bgTransparency:t,useSharedState:n,hasTopBanner:o}){const{setShowCart:s,showCart:q,cart:H,featureInternationalization:U,countryCode:V,contextCountry:R,changeCountryCode:K,syncCart:Z,country:Y,localizations:G}=n,[W,J]=(0,a.useState)(!1),{scrollStyle:Q}=(0,p.useTopBarHook)(),X=(0,v.useCookieListener)("localization"),ee=()=>{J(!W)};(0,a.useEffect)((()=>(document.documentElement.style.overflow=W?"hidden":"",()=>{document.documentElement.style.overflow=""})),[W]),(0,a.useEffect)((()=>{console.log("localization",X,V),X&&"undefined"!=typeof document&&"https://starsandhoney.com/"===document.referrer&&"AT"!==X&&(console.log("changing country code",X),K(X))}),[X]),(0,a.useEffect)((()=>{console.log("countryCode country",Y),Z(Y.currencyCode,Y.countryCode)}),[Y]);const te=H.items.reduce(((e,t)=>{const n=t?.properties?._rc_bundle;return n&&(e[n]||(e[n]=[]),e[n].push(t)),e}),{}),ne=[];for(const e in te){const e={product_title:"Signature Flavors Variety Set"};ne.push(e)}H.items.filter((e=>!e?.properties?._rc_bundle)).push(...ne);const oe=H.item_count,[re,se]=(0,a.useState)(!1),ae=e=>{e.preventDefault(),se(!0)},ie=(0,a.useMemo)((()=>!!U&&(V!==R||R!==y.DEFAULT_SHOPIFY_COUNTRY.countryCode)),[U,V,R]);return(0,r.jsxs)("div",{className:`topBarContainer ${C} ${W?x:null}`,children:[re&&(0,r.jsx)(h.InternationalizationPopup,{onClose:()=>se(!1),countryCode:V,changeCountryCode:K,syncCart:Z,country:Y,localizations:G}),(0,r.jsxs)("nav",{className:`navbar ${_} ${"blured"===Q?`blured ${D}`:""} ${"hidden"===Q&&O} ${o?j:null} ${t?`bgTransparency ${N}`:null} `+(ie?`intl ${E}`:""),children:[(0,r.jsx)("div",{className:`mobileMenuIcon ${g} ${t?`bgTransparency ${N}`:null}`,onClick:ee,children:(0,r.jsx)(i.Drawer,{})}),(0,r.jsx)("div",{className:`mobileMenu ${b} ${W?$:k}`,onClick:ee,role:"button","aria-label":"Menu",children:(0,r.jsxs)("div",{className:`mobileMenuContainer ${M} ${W?$:k}`,onClick:e=>e.stopPropagation(),role:"button","aria-label":"Menu items",children:[(0,r.jsxs)("div",{className:`mobileMenuItem ${I}`,children:[(0,r.jsx)("a",{href:"https://starsandhoney.com/account/login",role:"button","aria-label":"Account",children:(0,r.jsx)(l.Account,{})}),ie&&(0,r.jsx)(m.TopBarFlag,{insideMenu:!0,country:Y,bgTransparency:t,onClickOpenPopup:ae}),(0,r.jsx)("div",{className:B,onClick:ee,children:(0,r.jsx)(u.Cross,{})})]}),e.items.map((e=>(0,r.jsx)("a",{className:"mobileMenuItemItem",href:f(e.url),role:"button","aria-label":e.title,children:e.title})))]})}),(0,r.jsx)("a",{href:"/",className:`logoSVG ${P}`,role:"button","aria-label":"Home",alt:"Home",children:(0,r.jsx)(d.Logo,{})}),(0,r.jsxs)("div",{className:`desktopMenu ${w}`,children:[(0,r.jsx)("div",{className:`desktopLinks ${S}`,children:e.items.slice(0,4).map((e=>(0,r.jsx)("a",{className:"desktopMenuItemItem",href:f(e.url),role:"button","aria-label":e.title,children:e.title})))}),ie&&(0,r.jsx)(m.TopBarFlag,{country:Y,bgTransparency:t,onClickOpenPopup:ae}),(0,r.jsxs)("div",{className:`desktopIcons ${T}`,children:[(0,r.jsxs)("a",{href:"https://starsandhoney.com/account/login",role:"button","aria-label":"Desktop Account",children:[(0,r.jsx)(l.Account,{}),(0,r.jsx)("div",{className:`desktopIconsShadow ${F}`})]}),(0,r.jsxs)("div",{className:`bagIcon ${A}`,onClick:()=>{s(!q)},children:[(0,r.jsx)(c.Bag,{}),(0,r.jsx)("div",{className:F}),(0,r.jsx)("div",{className:z,children:oe>0?oe:""})]})]})]})]}),(0,r.jsx)("div",{className:`background ${L} ${o?j:null} ${t?`bgTransparency ${N}`:null}`})]})}},66:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TopBarFlag=void 0;const r=n(0),s=n(108),a=o(n(20));t.TopBarFlag=({insideMenu:e,country:t,bgTransparency:n,onClickOpenPopup:o})=>(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("button",{className:`TopBarFlag ${a.default.topBarFlag} ${e?a.default.insideMenu:""}`,onClick:o,children:[(0,r.jsx)("img",{src:t.flag,alt:t.country,width:36,height:27}),(0,r.jsx)(s.ArrowDown,{color:n?"#FFF":"#000",className:a.default.arrowDown})]})})},106:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useTopBarHook=void 0;const o=n(2);t.useTopBarHook=()=>{const[e,t]=(0,o.useState)("");return(0,o.useEffect)((()=>{let e=100;function n(){let n=document.documentElement.scrollTop;t(n>e?"hidden":"blured"),n<20&&t(""),e=n<=0?0:n}return window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)}}),[]),{scrollStyle:e}}},166:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Account=void 0;const o=n(0);n(1),t.Account=function({}){return(0,o.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"presentation",class:"icon icon-account",width:"100%",height:"100%",viewBox:"0 0 17 19",style:"fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;",children:(0,o.jsx)("path",{d:"M4.785,11.486C1.95,12.841 0,15.699 0,19L2,19C2,15.486 4.916,12.648 8.5,12.648C12.084,12.648 15,15.486 15,19L17,19C17,15.699 15.049,12.841 12.215,11.485C13.859,10.338 14.931,8.451 14.931,6.324C14.931,2.839 12.055,0 8.5,0C4.945,0 2.069,2.839 2.069,6.324C2.069,8.451 3.141,10.338 4.785,11.486ZM8.5,2C10.94,2 12.931,3.932 12.931,6.324C12.931,8.716 10.94,10.648 8.5,10.648C6.06,10.648 4.069,8.716 4.069,6.324C4.069,3.932 6.06,2 8.5,2Z",style:"fill:currentColor;"})})}},107:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Bag=void 0;const o=n(0);n(1),t.Bag=function(){return(0,o.jsx)("svg",{class:"cartsvgpath",clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",viewBox:"0 0 21 24",children:(0,o.jsx)("path",{d:"m4.96 8.322h-4.453v15.588h19.987v-15.588h-4.454v-1.779c0-3.091-2.5-5.606-5.54-5.606-3.047 0-5.54 2.521-5.54 5.606v1.779zm13.534 2v11.588h-15.987v-11.588h15.987zm-4.454-2v-1.779c0-1.982-1.591-3.606-3.54-3.606-1.954 0-3.54 1.628-3.54 3.606v1.779h7.08z",fill:"currentColor"})})}},165:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Drawer=void 0;const o=n(0);n(1),t.Drawer=function({}){return(0,o.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"presentation",class:"icon icon-nav",viewBox:"0 0 25 25",children:(0,o.jsx)("path",{d:"M0 4.062h25v2H0zm0 7h25v2H0zm0 7h25v2H0z"})})}},167:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0;const o=n(0);n(1),t.Logo=function(){return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"Calque_1","data-name":"Calque 1",version:"1.1",viewBox:"0 0 1920.7 841.9",children:[(0,o.jsx)("defs",{children:(0,o.jsx)("style",{children:".cls-1 {\n fill: #000;\n stroke-width: 0px;\n }"})}),(0,o.jsx)("path",{class:"cls-1",d:"M61.9,184.9v-65c0-48,14-69,54-69s54,18,54,67v154h39V97.9c0-57-36-81-93-81S21.9,41.9,21.9,116.9v81c0,91,31,148,78,217,48,70,72,108,72,231v77c0,46-15,68-56,68s-57-11-57-72v-141H19.9v145c0,79,32,102,96,102s96-32,96-106v-91c0-97-14-144-71-227-48-69-79-114-79-216Z"}),(0,o.jsx)("path",{class:"cls-1",d:"M802.9,545.9c53,0,75-22,75-70v-59c0-70-17-104-57-154-32-41-55-77-55-137v-32c0-31,9-45,37-45s39,12,39,44v91h35v-111c0-38-25-56-74-56s-74,26-74,69v50c0,63,27,103,59,143,39,48,53,79,53,151v40c0,30-10,44-38,44s-41-7-41-47v-83h-35v94c0,47,22,68,76,68Z"}),(0,o.jsx)("path",{class:"cls-1",d:"M1282.9,355.9c63,0,84-31,84-81V97.9c0-50-21-81-84-81s-84,31-84,81v177c0,50,21,81,84,81ZM1235.9,96.9c0-36,16-48,47-48s47,12,47,48v179c0,36-16,48-47,48s-47-12-47-48V96.9Z"}),(0,o.jsx)("polygon",{class:"cls-1",points:"327.9 355.9 366.9 355.9 366.9 59.9 444.9 59.9 444.9 24.9 250.9 24.9 250.9 59.9 327.9 59.9 327.9 355.9"}),(0,o.jsx)("polygon",{class:"cls-1",points:"1582.9 405.9 1677.9 405.9 1677.9 368.9 1582.9 368.9 1582.9 61.9 1705.9 61.9 1705.9 24.9 1582.9 24.9 1557.9 24.9 1543.9 24.9 1543.9 816.9 1557.9 816.9 1582.9 816.9 1711.9 816.9 1711.9 777.9 1582.9 777.9 1582.9 405.9"}),(0,o.jsx)("polygon",{class:"cls-1",points:"1444.9 740.3 1235.9 405.9 1197.9 405.9 1197.9 816.9 1235.9 816.9 1235.9 483.4 1443.9 816.9 1482.9 816.9 1482.9 24.9 1444.9 24.9 1444.9 740.3"}),(0,o.jsx)("polygon",{class:"cls-1",points:"1098.9 391.9 974.9 391.9 974.9 24.9 935.9 24.9 935.9 816.9 974.9 816.9 974.9 426.9 1098.9 426.9 1098.9 816.9 1137.9 816.9 1137.9 24.9 1098.9 24.9 1098.9 391.9"}),(0,o.jsx)("polygon",{class:"cls-1",points:"1862.9 24.9 1772.1 347.4 1705.9 110.9 1664.9 110.9 1750.9 406.9 1750.9 816.9 1789.9 816.9 1789.9 406.9 1900.9 24.9 1862.9 24.9"}),(0,o.jsx)("polygon",{class:"cls-1",points:"818.9 595.9 784.9 595.9 784.9 689.9 705.9 689.9 705.9 721.9 784.9 721.9 784.9 816.9 818.9 816.9 818.9 721.9 898.9 721.9 898.9 689.9 818.9 689.9 818.9 595.9"}),(0,o.jsx)("path",{class:"cls-1",d:"M327.9,405.9l-81,411h37l25.3-135h72.2l25.5,135h39l-79-411h-39ZM315.4,648.9l29.8-159,30,159h-59.8Z"}),(0,o.jsx)("path",{class:"cls-1",d:"M670.9,473.9c0-33.7-15.3-55.1-45.3-63.2,31.2-9.5,47.3-34.9,47.3-75.8V108.9c0-49-21-84-80-84h-108v792h39v-389h56c39,0,52,26,52,67v276c0,19,1,37,11,46h40c-9-13-12-27-12-54v-289ZM578.9,391.9h-55V58.9h48c36,0,62,11,62,66v199c0,47-3,68-55,68Z"})]})}},168:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useCookieListener=void 0;const o=n(2);t.useCookieListener=function(e,t=1e3){const[n,r]=(0,o.useState)(null);return(0,o.useEffect)((()=>{const o=e=>{const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length&&t.pop()?.split(";").shift()||null};r(o(e));const s=setInterval((()=>{const t=o(e);t!==n&&r(t)}),t);return()=>clearInterval(s)}),[e,t]),n}},171:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.imageResize=void 0,t.imageResize=(e,t)=>{let[n,o]=e.split("?"),r=n.split("/"),s=r.pop();if(!s)throw new Error("Invalid URL format");let a=s?.replace(".webp",`_${t}x.webp`),i=[...r,a].join("/");return o&&(i+="?"+o),i}}}]);