"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6700],{33194:function(e,n,t){t.d(n,{Z:function(){return NavbarLinks_NavbarLinks}});var r=t(33067),i=t(34235),o=t(33339),a=t(46355),l=t(44194),c=t(83339),s=t(2614),u=t(97358),f=t(4018),b=t(17552),p=t(31549),RegionButton_RegionButton=function(e){var{icon:n,label:t}=e,{city:r,postalCode:i}=(0,u.kP)(),o=(0,l.useRef)(null),{openModal:a}=(0,b.MS)(o);return(0,p.jsx)(c.Z,{variant:"tertiary",size:"small",icon:(0,p.jsx)(s.Z,{name:n,width:18,height:18,weight:"bold"}),iconPosition:"left",onClick:a,ref:o,children:r&&i?"".concat((0,f._W)(r),", ").concat(i):t})},d=t(16652),v=t(52011),RegionFilterButton_RegionFilterButton=function(e){var n,{filterByPickupPoint:{label:t,icon:{icon:r,alt:i}={}}={}}=e,{openRegionSlider:o}=(0,d.l8)(),{globalPickupPoint:a}=(0,v.z0)(),u=(0,l.useRef)(null);return(0,p.jsx)(c.Z,{variant:"tertiary",size:"small",icon:(0,p.jsx)(s.Z,{name:r,width:18,height:18,weight:"bold","aria-label":i}),iconPosition:"left",onClick:()=>o(d.gK.globalChangePickupPoint),ref:u,children:null!==(n=null==a?void 0:a.name)&&void 0!==n?n:t})},j=t(67345),h=t(29746),g=t(3303),k=["links","onClickLink","region"];function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach(function(n){(0,r.Z)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var NavbarLinks_NavbarLinks=function(e){var{links:n,onClickLink:t,region:{icon:r,label:l,shouldDisplayRegion:c}}=e,s=(0,i.Z)(e,k),{NavbarLinks:f,NavbarLinksList:b}=(0,h.r3)(),d=(0,o.useRouter)(),{postalCode:y}=(0,u.kP)(),{deliveryPromise:{filterByPickupPoint:P}={}}=(0,g.T)(),{isEnabled:w}=(0,v.z0)(),O=w&&!!y&&(null==P?void 0:P.enabled);return(0,p.jsx)(f.Component,_objectSpread(_objectSpread(_objectSpread({},s),f.props),{},{children:(0,p.jsxs)("div",{"data-fs-navbar-links-wrapper":!0,"data-fs-content":"navbar",children:[c&&(0,p.jsx)(RegionButton_RegionButton,{icon:r,label:l}),O&&(0,p.jsx)(RegionFilterButton_RegionFilterButton,{filterByPickupPoint:P}),(0,p.jsx)(b.Component,_objectSpread(_objectSpread({},b.props),{},{children:n.map(e=>{var{url:n,text:r}=e;return(0,p.jsx)(a.Z,{children:(0,p.jsx)(j.Z,{variant:"display",href:d.asPath.includes(n)?"#":n,prefetch:!1,onClick:t,children:r})},r)})}))]})}))}},16700:function(e,n,t){t.r(n),t.d(n,{default:function(){return r.Z}});var r=t(33194)},46355:function(e,n,t){var r=t(44194);let i=(0,r.forwardRef)(function({children:e,testId:n="fs-navbar-links-list-item",...t},i){return r.createElement("li",{"data-fs-navbar-links-list-item":!0,ref:i,"data-testid":n,...t},e)});n.Z=i}}]);