(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7393],{67043:function(e,n,t){"use strict";t.d(n,{r:function(){return r}});var a,l=t(2784);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var n=1;n{let{type:n="button",variation:t="primary",category:l=null,ariaLabel:c=null,noStyles:h=!1,children:u,className:m=null,onClick:v=()=>{},onKeyDown:d=()=>{},onKeyPress:f=()=>{},onKeyUp:b=()=>{},ariaExpanded:p=!1,ariaControls:g=null,disabled:E=!1,icon:_=null,iconPosition:z="before",...w}=e,{platformStyles:M}=(0,i.Z)(s.W);return(0,a.jsxs)("button",{type:n,className:r()([m,M["hm-button"]],"-".concat(t),{[M["-no-styles"]]:h,["-category-".concat(l)]:l}),"aria-label":c,onClick:v,onKeyDown:d,onKeyPress:f,onKeyUp:b,"aria-expanded":p,"aria-controls":g,disabled:E,...w,children:[_&&"before"===z&&(0,a.jsx)(o.J,{icon:_,className:"".concat(M["hm-button__icon"]," ").concat(M["-icon-before"])}),u,_&&"after"===z&&(0,a.jsx)(o.J,{icon:_,className:"".concat(M["hm-button__icon"]," ").concat(M["-icon-after"])})]})};var u=t(75765);let m=(0,u.z)(h)({name:"HFMButton",class:"HFMButton_h1j8bwj0",propsAsIs:!0});t(5756);let v=(0,u.z)(h)({name:"HolaButton",class:"HolaButton_h1hm6ocm",propsAsIs:!0});t(76431);let d=(0,u.z)(h)({name:"HolaFashionButton",class:"HolaFashionButton_h43wio2",propsAsIs:!0});t(67758);let f=e=>{let{...n}=e;return(0,a.jsx)(l.Z,{brandComponents:{HelloButton:h,HFMButton:m,HolaButton:v,HolaFashionButton:d},...n})}},85651:function(e,n,t){"use strict";t.d(n,{W:function(){return a}});let a={"hm-button__icon":"buttonIcon_b1khnfww","-icon-before":"buttonIconBefore_b1sxl2bj","-icon-after":"buttonIconAfter_bptla1s","hm-button":"buttonClass_by57jsl","-no-styles":"buttonNoStyles_b1ot6ykj"};t(6251)},1523:function(e,n,t){"use strict";t.d(n,{W:function(){return m}});var a=t(52322),l=t(2784),c=t(12524),r=t.n(c),i=t(64055);let o=e=>{let{id:n,links:t,isOpen:c,onLinkClick:r}=e,{LinkComponent:o}=(0,i.Z)(),s=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=e=>{if(c){if("ArrowUp"===e.key){e.preventDefault();let n=s.current.getElementsByTagName("a"),t=Array.from(n).findIndex(e=>e===document.activeElement);0===t?n[n.length-1].focus():n[t-1].focus()}if("ArrowDown"===e.key){e.preventDefault();let n=s.current.getElementsByTagName("a"),t=Array.from(n).findIndex(e=>e===document.activeElement);t===n.length-1?n[0].focus():n[t+1].focus()}}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),(0,a.jsx)("ul",{className:"hm-navigation__submenu","aria-hidden":!c,id:n,ref:s,children:null==t?void 0:t.map(e=>(0,a.jsxs)("li",{className:"hm-navigation__submenu-item".concat(e.subMenuLinks?" -childs":""),children:[(0,a.jsx)(o,{link:e.link,onClick:r,tabIndex:"-1",children:e.label}),e.subMenuLinks&&(0,a.jsx)("ul",{className:"hm-navigation__third",children:e.subMenuLinks.map(e=>(0,a.jsx)("li",{className:"hm-navigation__third-item",children:(0,a.jsx)(o,{link:e.link,onClick:r,tabIndex:"-1",children:e.label})},"navigation-third-".concat(e.id)))})]},"navigation-submenu-".concat(e.id)))})};o.defaultProps={id:null,links:null,isOpen:!1,onLinkClick:()=>{}};var s=t(66192),h=t(80996),u=t(67043);let m=e=>{let{id:n,identifier:t,links:c,ariaLabel:m,className:v,isHeaderVisible:d,onNavLinkClick:f}=e,{LinkComponent:b,ImageComponent:p}=(0,i.Z)(),[g,E]=(0,l.useState)(null),_=(0,l.useRef)([]),z=e=>{e===g?E(null):E(e)},w=e=>g===e,M=e=>{E(null),f(e)};return(0,l.useEffect)(()=>{d||E(null)},[d]),(0,l.useEffect)(()=>{let e=e=>{_.current&&null!=g&&!_.current.some(n=>n.contains(e.target))&&E(null)},n=e=>{null!=g&&"Tab"===e.key&&E(null)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",n),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",n)}},[_,g]),(0,a.jsx)("nav",{className:r()([v,"hm-navigation"]),"aria-label":m,id:n,children:(0,a.jsx)("ul",{className:"hm-navigation__list",children:(null==c?void 0:c.length)>0&&c.map((e,l)=>{var c;return(0,a.jsx)("li",{className:r()("hm-navigation__item",{["-category-".concat(e.category)]:e.category}),children:(null===(c=e.subMenuLinks)||void 0===c?void 0:c.length)>0?(0,a.jsxs)("div",{className:"hm-navigation__item-wrapper".concat(w(l)?" -open":""),ref:e=>{_.current[l]=e},children:[e.link?(0,a.jsx)(b,{link:e.link,className:"hm-navigation__submenu-label",ariaLabel:e.ariaLabel,children:e.label}):(0,a.jsx)("span",{className:"hm-navigation__submenu-label hm-link",children:e.label}),(0,a.jsx)(s.z,{noStyles:!0,className:"hm-navigation__submenu-button",ariaExpanded:w(l),ariaLabel:w(l)?"Close ".concat(e.label," Submenu"):"Open ".concat(e.label," Submenu"),onClick:()=>z(l),ariaControls:"sub-menu-".concat(e.id,"-").concat(t),children:(0,a.jsx)(h.J,{icon:u.r,className:"hm-navigation__submenu-icon"})}),(0,a.jsx)(o,{links:e.subMenuLinks,isOpen:w(l),id:"sub-menu-".concat(e.id,"-").concat(t),onLinkClick:M})]}):(0,a.jsx)(b,{link:e.link,className:"hm-link__link",onClick:f&&e.onClick,onNavAmpTabEvent:e.onNavAmpTabEvent,children:e.image?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p,{id:e.image.id,sizes:e.image.sizes,srcset:e.image.srcset,src:e.image.src,imageStyle:e.image.style,className:"hm-navigation__image",alt:e.label}),(0,a.jsx)("span",{className:"sr-only",children:e.label})]}):e.label})},"".concat(n,"-link-").concat(e.id))})})})};m.defaultProps={id:null,ariaLabel:null,className:null,isHeaderVisible:!0,onNavLinkClick:()=>{}}},5756:function(){},67758:function(){},76431:function(){},6251:function(){}}]);