"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[6],{61:function(e,s,n){var c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0}),s.TopBar=void 0;const o=n(0),t=(n(1),c(n(132))),l=n(2),i=n(317),a=n(318),r=n(133),d=n(36),u=n(319),v=n(134),h=e=>e.replace("https://starsandhoney.com",""),{navbar:j,hasTopBanner:p,mobileMenuIcon:m,mobileMenu:x,mobileMenuOpen:g,mobileMenuClose:b,mobileMenuContainer:f,mobileMenuItem:C,desktopMenu:w,desktopLinks:M,desktopIcons:O,logoSVG:k,crossIcon:y,desktopIconsShadow:_,hidden:N,blured:B,background:S,cartItemCount:$,bagIcon:Z}=t.default;s.TopBar=function({menu:e,useSharedState:s,hasTopBanner:n}){const{setShowCart:c,showCart:t,cart:I}=s,[L,T]=(0,l.useState)(!1),{scrollStyle:E}=(0,v.useTopBarHook)(),H=()=>{T(!L)};(0,l.useEffect)((()=>(document.documentElement.style.overflow=L?"hidden":"",()=>{document.documentElement.style.overflow=""})),[L]);const P=I.items.reduce(((e,s)=>{var n;const c=null===(n=null==s?void 0:s.properties)||void 0===n?void 0:n._rc_bundle;return c&&(e[c]||(e[c]=[]),e[c].push(s)),e}),{}),V=[];for(const e in P){const e={product_title:"Signature Flavors Variety Set"};V.push(e)}I.items.filter((e=>{var s;return!(null===(s=null==e?void 0:e.properties)||void 0===s?void 0:s._rc_bundle)})).push(...V);const z=I.item_count;return(0,o.jsxs)("div",{children:[(0,o.jsxs)("nav",Object.assign({className:`navbar ${j} ${"blured"===E&&B} ${"hidden"===E&&N} ${n?p:null}`},{children:[(0,o.jsx)("div",Object.assign({className:m,onClick:H},{children:(0,o.jsx)(i.Drawer,{})})),(0,o.jsx)("div",Object.assign({className:`${x} ${L?g:b}`,onClick:H},{children:(0,o.jsxs)("div",Object.assign({className:`mobileMenuContainer ${f} ${L?g:b}`,onClick:e=>e.stopPropagation()},{children:[(0,o.jsxs)("div",Object.assign({className:`mobileMenuItem ${C}`},{children:[(0,o.jsx)("a",Object.assign({href:"https://starsandhoney.com/account/login"},{children:(0,o.jsx)(a.Account,{})})),(0,o.jsx)("div",Object.assign({className:y,onClick:H},{children:(0,o.jsx)(d.Cross,{})}))]})),e.items.map((e=>(0,o.jsx)("a",Object.assign({href:h(e.url)},{children:e.title}))))]}))})),(0,o.jsx)("a",Object.assign({href:"/",className:k},{children:(0,o.jsx)(u.Logo,{})})),(0,o.jsxs)("div",Object.assign({className:w},{children:[(0,o.jsx)("div",Object.assign({className:M},{children:e.items.slice(0,4).map((e=>(0,o.jsx)("a",Object.assign({href:h(e.url)},{children:e.title}))))})),(0,o.jsxs)("div",Object.assign({className:O},{children:[(0,o.jsxs)("a",Object.assign({href:"https://starsandhoney.com/account/login"},{children:[(0,o.jsx)(a.Account,{}),(0,o.jsx)("div",{className:_})]})),(0,o.jsxs)("div",Object.assign({className:Z,onClick:()=>{c(!t)}},{children:[(0,o.jsx)(r.Bag,{}),(0,o.jsx)("div",{className:_}),(0,o.jsx)("div",Object.assign({className:$},{children:z>0?z:""}))]}))]}))]}))]})),(0,o.jsx)("div",{className:`background ${S} ${n?p:null}`})]})}},134:(e,s,n)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.useTopBarHook=void 0;const c=n(2);s.useTopBarHook=()=>{const[e,s]=(0,c.useState)("");return(0,c.useEffect)((()=>{let e=100;function n(){let n=document.documentElement.scrollTop;s(n>e?"hidden":"blured"),n<20&&s(""),e=n<=0?0:n}return window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)}}),[]),{scrollStyle:e}}},318:(e,s,n)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Account=void 0;const c=n(0);n(1),s.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;"})}))}},133:(e,s,n)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Bag=void 0;const c=n(0);n(1),s.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"})}))}},317:(e,s,n)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Drawer=void 0;const c=n(0);n(1),s.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"})}))}},319:(e,s,n)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Logo=void 0;const c=n(0);n(1),s.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"})]}))}}}]);