"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[5],{62:function(s,e,n){var c=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.TopBar=void 0;const t=n(0),l=(n(1),c(n(283))),o=n(2),i=n(364),a=n(365),r=n(284),d=n(39),u=n(366),v=s=>s.replace("https://starsandhoney.com",""),{navbar:h,mobileMenuIcon:j,mobileMenu:p,mobileMenuOpen:m,mobileMenuClose:x,mobileMenuContainer:g,mobileMenuItem:b,desktopMenu:f,desktopLinks:C,desktopIcons:w,logoSVG:M,crossIcon:O,desktopIconsShadow:_,hidden:k,blured:y,background:N,cartItemCount:S,bagIcon:Z}=l.default;e.TopBar=function({menu:s,useSharedState:e}){const{setShowCart:n,showCart:c,cart:l}=e,[B,I]=(0,o.useState)(!1),[L,$]=(0,o.useState)(""),E=()=>{I(!B)};(0,o.useEffect)((()=>(document.documentElement.style.overflow=B?"hidden":"",()=>{document.documentElement.style.overflow=""})),[B]),(0,o.useEffect)((()=>{let s=100;function e(){let e=document.documentElement.scrollTop;$(e>s?"hidden":"blured"),e<20&&$(""),s=e<=0?0:e}return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]);const V=l.items.reduce(((s,e)=>{var n;const c=null===(n=null==e?void 0:e.properties)||void 0===n?void 0:n._rc_bundle;return c&&(s[c]||(s[c]=[]),s[c].push(e)),s}),{}),z=[];for(const s in V){const s={product_title:"Signature Flavors Variety Set"};z.push(s)}l.items.filter((s=>{var e;return!(null===(e=null==s?void 0:s.properties)||void 0===e?void 0:e._rc_bundle)})).push(...z);const P=l.item_count;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("nav",Object.assign({className:`navbar ${h} ${"blured"===L&&y} ${"hidden"===L&&k}`},{children:[(0,t.jsx)("div",Object.assign({className:j,onClick:E},{children:(0,t.jsx)(i.Drawer,{})})),(0,t.jsx)("div",Object.assign({className:`${p} ${B?m:x}`,onClick:E},{children:(0,t.jsxs)("div",Object.assign({className:`mobileMenuContainer ${g} ${B?m:x}`,onClick:s=>s.stopPropagation()},{children:[(0,t.jsxs)("div",Object.assign({className:`mobileMenuItem ${b}`},{children:[(0,t.jsx)("a",Object.assign({href:"https://starsandhoney.com/account/login"},{children:(0,t.jsx)(a.Account,{})})),(0,t.jsx)("div",Object.assign({className:O,onClick:E},{children:(0,t.jsx)(d.Cross,{})}))]})),s.items.map((s=>(0,t.jsx)("a",Object.assign({href:v(s.url)},{children:s.title}))))]}))})),(0,t.jsx)("a",Object.assign({href:"/",className:M},{children:(0,t.jsx)(u.Logo,{})})),(0,t.jsxs)("div",Object.assign({className:f},{children:[(0,t.jsx)("div",Object.assign({className:C},{children:s.items.slice(0,4).map((s=>(0,t.jsx)("a",Object.assign({href:v(s.url)},{children:s.title}))))})),(0,t.jsxs)("div",Object.assign({className:w},{children:[(0,t.jsxs)("a",Object.assign({href:"https://starsandhoney.com/account/login"},{children:[(0,t.jsx)(a.Account,{}),(0,t.jsx)("div",{className:_})]})),(0,t.jsxs)("div",Object.assign({className:Z,onClick:()=>{n(!c)}},{children:[(0,t.jsx)(r.Bag,{}),(0,t.jsx)("div",{className:_}),(0,t.jsx)("div",Object.assign({className:S},{children:P>0?P:""}))]}))]}))]}))]})),(0,t.jsx)("div",{className:N})]})}},365:(s,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Account=void 0;const c=n(0);n(1),e.Account=function({}){return(0,c.jsx)("svg",Object.assign({"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,c.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;"})}))}},284:(s,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Bag=void 0;const c=n(0);n(1),e.Bag=function({}){return(0,c.jsx)("svg",Object.assign({class:"cartsvgpath","clip-rule":"evenodd","fill-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2",version:"1.1",viewBox:"0 0 21 24","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg"},{children:(0,c.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"})}))}},364:(s,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Drawer=void 0;const c=n(0);n(1),e.Drawer=function({}){return(0,c.jsx)("svg",Object.assign({"aria-hidden":"true",focusable:"false",role:"presentation",class:"icon icon-nav",viewBox:"0 0 25 25"},{children:(0,c.jsx)("path",{d:"M0 4.062h25v2H0zm0 7h25v2H0zm0 7h25v2H0z"})}))}},366:(s,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Logo=void 0;const c=n(0);n(1),e.Logo=function(){return(0,c.jsxs)("svg",Object.assign({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,c.jsx)("defs",{children:(0,c.jsx)("style",{children:".cls-1 {\n fill: #000;\n stroke-width: 0px;\n }"})}),(0,c.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,c.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,c.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,c.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,c.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,c.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,c.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,c.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,c.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,c.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,c.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"})]}))}}}]);