PageSourceSearch

https://www.assaabloydss.com/etc.clientlibs/aeh/clientlibs/depende…/resources/chunks/index.CvZW7UpW.js

js assaabloydss.com collected 2026-09-24 09:46:52 UTC 43,624 bytes, 1 lines download raw bytes

1import{I as Lt,H as Ot,q as St,j as e,s as dt,t as $e,a6 as Se,v as _t,ai as oe,_ as P,ah as me,B as w,p as Et,a3 as He,a4 as qe,a5 as ze,f as pt,E as ft,a0 as te,S as z,aS as At,b as U,e as Bt,ap as Nt,aT as Tt,T as Dt,aU as Rt,X as mt,W as Ft,a as ht,A as Wt,u as $t,r as Ht,ar as qt}from"../js/app.DBQURsxG.js";import{L as zt}from"./Link.DpbRpjiv.js";import{r as A,_ as Ut,a as ne,b as ee,v as Vt}from"./elastic.CDqqVJuy.js";import{S as Gt,D as Yt}from"./Layout.BgzCuBfP.js";import{V as xt,B as Kt,S as Qe}from"./Breadcrumbs.CwWN6_i7.js";import{E as Qt}from"./EmptyState.CTCoYbam.js";import"./Button.BkhlNZuL.js";import{K as gt}from"./KeyboardArrowDown.CIvPzCIe.js";import{K as Ue}from"./KeyboardArrowRight.2U0iD8BY.js";import{g as xe,r as _e}from"./vendor.CLXKpVbq.js";import{T as Xt,P as Zt}from"./Tooltip.DI4zxA0S.js";import{a as Jt}from"./Button.C6UKXuNC.js";import{a as ae}from"./listItemTextClasses.CfqtyItM.js";import{L as T}from"./ListItem.Ba6UNdu8.js";import{L as D}from"./ListItemButton.B7Ftilu-.js";import{L as R}from"./ListItemText.B1FPLW1l.js";import{D as ge}from"./Divider.CN5hCrpC.js";import{O as ve,L as Ee,a as V,e as Fe,i as vt,b as bt}from"./index.DAdTJ5Q6.js";import{L as jt}from"./ListItemAvatar.DN6gqFc2.js";import{A as Ve}from"./Avatar.Dl8oVM6p.js";import"./index.Didt5tsv.js";import{r as en,T as tn}from"./index.aJYMq4JC.js";import{e as nn,M as Ne}from"./TextField.DRTXmqVo.js";import{G as fe}from"./Grid.48PEhE0D.js";import{E as rn}from"./ErrorBoundary.C3jFYOOM.js";import{F as on}from"./FetchModel.ZlcilBl9.js";import{e as Te}from"./error.BZboM8T-.js";import{m as an,p as sn,n as ln,f as yt,i as We,q as Xe}from"./productObjectTable.BmziY019.js";import{A as cn}from"./appearance.DL5Lofdn.js";import{S as Ze}from"./Search.bMT3ZdlC.js";import{z as x,f as un}from"./index.Cs3sfIVF.js";import{b as dn}from"./OutlinedInput.DkWhq0El.js";import"./lodash.B7ss2v9R.js";import"./ChevronRight.Dhme45SY.js";import"./Clear.DQy1976u.js";import"./CardContent.CX2wWBFh.js";import"./CardHeader.CZLKg_l0.js";import"./Chip.BbxjqlfK.js";import"./LoadingButton.BldJMeql.js";import"./extends.Ba-yMveS.js";import"./Close.CGDhaatB.js";import"./ChipFilter.AlFJGFRN.js";import"./appearanceDataTable.BS9PzZb5.js";import"./TableContainer.C9BBW-17.js";import"./TableRow.yr5jRgxl.js";import"./LinearProgress.dYi3bjFt.js";import"./CardMedia.BE1_NLK-.js";import"./KeyboardArrowRight.D7dvInKA.js";import"./Grow.C_Nwg4wO.js";import"./dividerClasses.CxYsqIl5.js";import"./tslib.es6.CldWHa1R.js";import"./Snackbar.CJ2RZ4tT.js";import"./index.D9kGM1cp.js";import"./SpeedDialAction.B2rfkjoB.js";import"./listItemIconClasses.Dkcvo0jL.js";import"./button.ByCG42iX.js";import"./facet.CFEJUabM.js";import"./Search.kb56HE1B.js";function pn(t){return Lt("MuiAppBar",t)}Ot("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const fn=["className","color","enableColorOnDark","position"],mn=t=>{const{color:n,position:r,classes:o}=t,f={root:["root",`color${Se(n)}`,`position${Se(r)}`]};return _t(f,pn,o)},Ie=(t,n)=>t?`${t==null?void 0:t.replace(")","")}, ${n})`:n,hn=dt(oe,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:r}=t;return[n.root,n[`position${Se(r.position)}`],n[`color${Se(r.color)}`]]}})(({theme:t,ownerState:n})=>{const r=t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[900];return ne({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},n.position==="fixed"&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},n.position==="absolute"&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},n.position==="sticky"&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},n.position==="static"&&{position:"static"},n.position==="relative"&&{position:"relative"},!t.vars&&ne({},n.color==="default"&&{backgroundColor:r,color:t.palette.getContrastText(r)},n.color&&n.color!=="default"&&n.color!=="inherit"&&n.color!=="transparent"&&{backgroundColor:t.palette[n.color].main,color:t.palette[n.color].contrastText},n.color==="inherit"&&{color:"inherit"},t.palette.mode==="dark"&&!n.enableColorOnDark&&{backgroundColor:null,color:null},n.color==="transparent"&&ne({backgroundColor:"transparent",color:"inherit"},t.palette.mode==="dark"&&{backgroundImage:"none"})),t.vars&&ne({}
1,n.color==="default"&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette.AppBar.defaultBg:Ie(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":n.enableColorOnDark?t.vars.palette.text.primary:Ie(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},n.color&&!n.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette[n.color].main:Ie(t.vars.palette.AppBar.darkBg,t.vars.palette[n.color].main),"--AppBar-color":n.enableColorOnDark?t.vars.palette[n.color].contrastText:Ie(t.vars.palette.AppBar.darkColor,t.vars.palette[n.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:n.color==="inherit"?"inherit":"var(--AppBar-color)"},n.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),xn=A.forwardRef(function(n,r){const o=St({props:n,name:"MuiAppBar"}),{className:f,color:d="primary",enableColorOnDark:l=!1,position:i="fixed"}=o,p=Ut(o,fn),a=ne({},o,{color:d,position:i,enableColorOnDark:l}),u=mn(a);return e.jsx(hn,ne({square:!0,component:"header",ownerState:a,elevation:4,className:$e(u.root,f,i==="fixed"&&"mui-fixed"),ref:r},p))});var gn=({title:t,titleId:n,...r})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18.6",height:"18.6",viewBox:"0 0 18.6 18.6","aria-labelledby":n,...r,children:e.jsx("g",{children:e.jsx("g",{children:e.jsx("g",{children:e.jsxs("g",{children:[t?e.jsx("title",{id:n,children:t}):null,e.jsx("path",{fill:"#1a1a1a","fill-rule":"evenodd",stroke:"#1a1a1a","stroke-width":"0.6px",d:"M1488.951 711.49h-16.538v-.5c0-2.143 3.787-3.953 8.269-3.953s8.269 1.81 8.269 3.953zm-13.084-10.859c0-3.131 2.16-5.679 4.815-5.679s4.815 2.548 4.815 5.679-2.16 5.679-4.815 5.679-4.815-2.548-4.815-5.679zm7.1 5.832a6.528 6.528 0 0 0 3.258-5.832c0-3.534-2.488-6.41-5.546-6.41s-5.546 2.875-5.546 6.41a6.526 6.526 0 0 0 3.258 5.832c-3.9.515-6.712 2.317-6.712 4.53v.862a.365.365 0 0 0 .366.365h17.269a.365.365 0 0 0 .365-.365v-.862c0-2.213-2.81-4.015-6.712-4.53z",transform:"translate(-0.382 0.079) translate(0.682 0.221) translate(-1471.682 -694.221)"})]})})})})});const vn=t=>{const{loginInfo:n,signIn:r,signOut:o}=t,{status:f,loginConfiguration:d,userInformation:l}=n,i=P.get(l,"user_first_name",""),p=P.get(d,"signOutText",""),a=P.get(d,"loginIconHoverText",""),[u,m]=A.useState(null),s=!!u,b=L=>{P.get(l,"customer_id")?m(L.currentTarget):r()},v=()=>{m(null)},C=()=>{o(),v()},_=e.jsx(me,{onClick:b,size:"small",sx:{ml:2},disabled:f===Ee.Invalid,"aria-controls":s?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,children:e.jsx(Ve,{sx:{width:32,height:32,border:"1px solid var(--aa-one-cms-palette-text-primary)"},children:e.jsx(w,{sx:{objectFit:"contain"},children:e.jsx(gn,{titleId:"userInfoIcon"})})})});return e.jsxs(e.Fragment,{children:[f==="loading"&&e.jsx(Et,{size:"small",sx:{ml:2,width:32,height:32,color:"black"}}),f!=="loading"&&e.jsx(e.Fragment,{children:a?e.jsx(Xt,{title:e.jsx(e.Fragment,{children:a}),children:_}):e.jsx(e.Fragment,{children:_})}),e.jsxs(nn,{anchorEl:u,id:"account-menu",open:s,onClose:v,onClick:v,PaperProps:{elevation:0,sx:{overflow:"visible",filter:"drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",mt:1.5,"& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:[i&&e.jsxs(e.Fragment,{children:[e.jsx(Ne,{disableRipple:!0,sx:[{cursor:"context-menu",fontSize:"1.125rem",fontWeight:600,textOverflow:"ellipsis","&:hover":{textDecoration:"none",backgroundColor:"inherit"}}],onClick:L=>{L.stopPropagation(),L.preventDefault()},children:`Hello ${i}!`},"userfirstname"),e.jsx(ge,{})]}),P.get(d,"links",[]).map(L=>e.jsx(Ne,{onClick:()=>{L.url&&window.open(L.url,L.target),v()},children:L.text},L.text)),p&&e.jsx(Ne,{onClick:C,children:p},p)]})]})},bn=()=>e.jsx(ve,{children:t=>t.loginInfo.status===Ee.Invalid?null:e.jsx(vn,{...t})});var le={},Je;function jn(){if(Je)return le;Je=1;var t=He();
1Object.defineProperty(le,"__esModule",{value:!0}),le.default=void 0;var n=t(qe()),r=ze();return le.default=(0,n.default)((0,r.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),le}var yn=jn();const wt=xe(yn);function wn(t){const n=P.defaultTo(t.subMenu,t.links);return!(n===null||n===void 0||n.length===0)}const Cn=t=>{const{loginInfo:n,signIn:r,signOut:o}=t,{loginConfiguration:f,userInformation:d}=n,l=f,i=!!P.get(d,"customer_id",0),p=({item:b,level:v})=>{const C=wn(b)?u:a;return e.jsx(C,{item:b,level:v})},a=({item:b})=>{let v=!1;window.location.href.includes(b.url)&&(v=!0);const C=P.defaultTo(b.text,b.label);return e.jsx(T,{disablePadding:!0,children:e.jsx(D,{selected:v,component:"a",href:b.url,children:e.jsx(R,{primary:C})})})},u=({item:b,level:v})=>{const C=P.defaultTo(b.subMenu,b.links),_=P.defaultTo(b.text,b.label),[L,I]=A.useState(!1),k=()=>{I(y=>!y)};return e.jsxs(ee.Fragment,{children:[e.jsx(T,{onClick:k,disablePadding:!0,children:e.jsxs(D,{children:[e.jsx(R,{primary:_}),L?e.jsx(wt,{}):e.jsx(ft,{})]})}),e.jsxs(te,{in:L,timeout:"auto",unmountOnExit:!0,sx:[v%2===0?{backgroundColor:"var(--aa-one-cms-palette-background-default-alt)"}:{backgroundColor:"var(--aa-one-cms-palette-background-default)"}],children:[e.jsx(T,{disablePadding:!0,children:e.jsxs(D,{href:b.url,children:[e.jsx(jt,{children:e.jsx(Ve,{sx:{bgcolor:"var(--aa-one-cms-palette-primary-main)",width:24,height:24},children:e.jsx(Ue,{})})}),e.jsx(R,{primary:_,secondary:b.description})]})}),e.jsx(ge,{component:"div"}),e.jsx(ae,{component:"div",disablePadding:!0,children:C.map((y,F)=>e.jsx(p,{item:y,level:v+1},F))})]})]})},m=()=>{const b=[],v=P.get(l,"links",[]);return P.forEach(v,C=>b.push({valid:C.valid,text:C.text,url:C.url,external:C.target!=="_self",subMenu:null})),b.length?e.jsx(p,{item:{valid:!0,text:"My Account",external:!1,subMenu:b},level:0},"myAccount"):e.jsx(e.Fragment,{})},s=()=>e.jsx(T,{disablePadding:!0,children:e.jsx(D,{onClick:o,children:e.jsx(R,{"data-test-id":"sign-out",primary:l.signOutText})})});return status==="loading"?e.jsx(pt,{variant:"rectangular"}):e.jsxs(e.Fragment,{children:[!i&&!!l.signInText&&e.jsx(T,{disablePadding:!0,children:e.jsx(D,{onClick:r,disabled:status==="invalid",children:e.jsx(R,{"data-test-id":"sign-in",primary:l.signInText})})}),i&&e.jsx(m,{}),i&&!!l.signOutText&&e.jsx(s,{})]})},Mn=()=>e.jsx(ve,{children:t=>t.loginInfo.status===Ee.Invalid?null:e.jsx(Cn,{...t})}),In=()=>{const t=n=>{const{status:r,userInformation:o}=n,f=P.get(o,"user_first_name","");return r===Ee.Loading?e.jsx(pt,{variant:"rectangular"}):f?e.jsx(z,{"data-user-id":"user-name",sx:{padding:"8px 16px",cursor:"context-menu",fontSize:"18px",fontWeight:"600"},children:`Hello ${f}!`}):e.jsx(e.Fragment,{})};return V?e.jsx(ve,{children:n=>e.jsx(t,{...n.loginInfo})}):e.jsx(e.Fragment,{})},Pn=({children:t})=>e.jsx("div",{itemScope:!0,itemProp:"SpecialAnnouncement",itemType:"https://schema.org/SpecialAnnouncement",children:t}),Pe=new U({name:"alert",prefix:"a-",outputIsString:!0}),kn=({container:t,color:n="primary",message:r,link:o,onClose:f,maxMessageLength:d=92,maxLinkTextLength:l=39})=>{const[i,p]=At(["aeh-alert"]);A.useEffect(()=>{i["aeh-alert"]||p("aeh-alert","open")},[]);const a=o&&(o.text||o.icon)&&e.jsxs(z,{className:Pe("line"),direction:"row",alignItems:"center",spacing:.75,children:[o.text&&e.jsx(zt,{label:`${o.text.substring(0,l)}${o.text.length>l?"...":""}`,url:o.url,target:o.target,hasIcon:!1}),o.icon&&e.jsx(o.icon,{color:"inherit",fontSize:"small"})]}),u=r&&e.jsx(Pn,{children:e.jsx(Bt,{className:Pe("message"),component:"p",color:"inherit",sx:{wordBreak:"break-word"},itemProp:"text",children:`${r.substring(0,d)}${r.length>d?"...":""}`})}),m=f&&e.jsx(me,{className:Pe("close_button"),"aria-label":"dismiss",color:"inherit",sx:{position:"absolute",right:4,top:"50%",transform:"translateY(-50%)"},onClick:()=>{p("aeh-alert","close"),f()},children:e.jsx(Nt,{})});return e.jsx(Gt,{direction:"down",in:i&&i["aeh-alert"]==="open",timeout:700,mountOnEnter:!0,unmountOnExit:!0,container:t,children:e.jsxs(z,{className:Pe(),role:"alert",sx:{position:"relative",backgroundColor:$e(n==="primary"&&"primary.main",n==="secondary"&&"secondary.main",n==="warning"&&"warning.main",n==="success"&&"success.main",n==="info"&&"info.main",n==="error"&&"#D73C1E"),color:"white",py:1.5,px:4},direction:{xs:r&&r.length>30||o!=null&&o.text&&o.text.length>15?"column":"row",sm:r&&(r==null?void 0:r.length)>40||o!=null&&o.text&&o.text.length>20?"column":"row",md:r&&(r==null?void 0:r.length)>60?"column":"row",lg:"row"},justifyContent:"center",alignItems:{lg:"center"},gap:{xs:.5,sm:.5,md:.5,lg:2},children:[u,a,m]})})},Ln=({links:t,className:n})=>{const[r,o]=A.useState(!1);return A.useRef(),t.length<1?null:e.jsx("div",{className:$e("m-locationSwitcher",n)})};var De={},S={},et;function On(){if(et)return S;et=1,Object.defineProperty(S,"__esModule",{value:!0}),S.anchorRef=l,S.bindContextMenu=a,S.bindDialog=L,S.bindDoubleClick=b,S.bindFocus=s,S.bindHover=m,S.bindMenu=C,S.bindPopover=v,S.bindPopper=_,S.bindToggle=u,S.bindTrigger=p,S.createPopupState=d,S.initCoreState=void 0,n(_e());function t(c){if(typeof WeakMap!="function")return null;var h=new WeakMap,g=new WeakMap;return(t=function(M){return M?g:h})(c)}function n(c,h){if(c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var g=t(h);if(g&&g.has(c))return g.get(c);var M={},W=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in c)if(O!=="default"&&Object.prototype.hasOwnProperty.call(c,O)){var E=W?Object.getOwnPropertyDescriptor(c,O):null;E&&(E.get||E.set)?Object.defineProperty(M,O,E):M[O]=c[O]}return M.default=c,g&&g.set(c,M),M}const r={};function o(c,h){r[c]||(r[c]=!0,console.error("[material-ui-popup-state] WARNING",h))}const f={isOpen:!1,setAnchorElUsed:!1,anchorEl:null,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};S.initCoreState=f;function d({state:c,setState:h,parentPopupState:g,popupId:M,variant:W,disableAutoFocus:O}){const{isOpen:E,setAnchorElUsed:$,anchorEl:Q,anchorPosition:be,hovered:G,focused:Y,_openEventType:je,_childPopupState:X,_deferNextOpen:ye,_deferNextClose:we}=c;let Z=c;const B=j=>{F(Z,j)&&h(Z={...Z,...j})},H=j=>{B({setAnchorElUsed:!0,anchorEl:j})},Ce=j=>{E?ie(j):Ae(j)},Ae=j=>{const N=j&&j.type,se=j&&j.currentTarget,Ge=j&&j.clientX,Ye=j&&j.clientY,kt=typeof Ge=="number"&&typeof Ye=="number"?{left:Ge,top:Ye}:void 0;if(N==="touchstart"){B({_deferNextOpen:!0});return}const Ke=()=>{if(!j&&!$&&o("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),g){if(!g.isOpen)return;g._setChildPopupState(Me)}const Be={isOpen:!0,anchorPosition:kt,hovered:N==="mouseover"||G,focused:N==="focus"||Y,_openEventType:N};se?$||(Be.anchorEl=se):j&&(Be.anchorEl=j),B(Be)};ye?(B({_deferNextOpen:!1}),setTimeout(Ke,0)):Ke()},ie=j=>{switch(j&&j.type){case"touchstart":B({_deferNextClose:!0});return}const se=()=>{X&&X.close(),g&&g._setChildPopupState(null),B({isOpen:!1,hovered:!1,focused:!1})};we?(B({_deferNextClose:!1}),setTimeout(se,0)):se()},Me={anchorEl:Q,anchorPosition:be,setAnchorEl:H,setAnchorElUsed:$,popupId:M,variant:W,isOpen:E,open:Ae,close:ie,toggle:Ce,setOpen:(j,N)=>{j?Ae(N):ie(N)},onBlur:j=>{const N=j.relatedTarget;Y&&!k(N,Me)&&(G?B({focused:!1}):ie(j))},onMouseLeave:j=>{const N=j.relatedTarget;G&&!k(N,Me)&&(Y?B({hovered:!1}):ie(j))},disableAutoFocus:O??!!(G||Y),_openEventType:je,_childPopupState:X,_setChildPopupState:j=>B({_childPopupState:j})};return Me}function l({setAnchorEl:c}){return h=>{h&&c(h)}}function i({isOpen:c,open:h,popupId:g,variant:M}){return{...M==="popover"?{"aria-haspopup":!0,"aria-controls":c&&g!=null?g:void 0}:M==="popper"?{"aria-describedby":c&&g!=null?g:void 0}:void 0}}function p(c){return{...i(c),onClick:c.open,onTouchStart:c.open}}function a(c){return{...i(c),onContextMenu:h=>{h.preventDefault(),c.open(h)}}}function u(c){return{...i(c),onClick:c.toggle,onTouchStart:c.toggle}}function m(c){const{open:h,onMouseLeave:g}=c;return{...i(c),onTouchStart:h,onMouseOver:h,onMouseLeave:g}}function s(c){const{open:h,onBlur:g}=c;return{...i(c),onFocus:h,onBlur:g}}function b({isOpen:c,open:h,popupId:g,variant:M}){return{[M==="popover"?"aria-controls":"aria-describedby"]:c?g:null,"aria-haspopup":M==="popover"?!0:void 0,onDoubleClick:h}}function v({isOpen:c,anchorEl:h,anchorPosition:g,close:M,popupId:W,onMouseLeave:O,disableAutoFocus:E,_openEventType:$}){return{id:W,anchorEl:h,anchorPosition:g,anchorReference:$==="contextmenu"?"anchorPosition":"anchorEl",open:c,onClose:M,onMouseLeave:O,...E&&{disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function C({isOpen:c,anchorEl:h,anchorPosition:g,close:M,popupId:W,onMouseLeave:O,disableAutoFocus:E,_openEventType:$}){return{id:W,anchorEl:h,anchorPosition:g,anchorReference:$==="contextmenu"?"anchorPosition":"anchorEl",open:c,onClose:M,onMouseLeave:O,...E&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function _({isOpen:c,anchorEl:h,popupId:g,onMouseLeave:M}){return{id:g,anchorEl:h,open:c,onMouseLeave:M}}function L({isOpen:c,close:h}){return{open:c,onClose:h}}function I({popupId:c}){return c&&typeof document<"u"?document.getElementById(c):null}function k(c,h){const{anchorEl:g,_childPopupState:M}=h;return y(g,c)||y(I(h),c)||M!=null&&k(c,M)}function y(c,h){if(!c)return!1;for(;h;){if(h===c)return!0;h=h.parentElement}return!1}function F(c,h){for(let g in h)if(Object.prototype.hasOwnProperty.call(c,g)&&c[g]!==h[g])return!0;return!1}return S}var tt;function Sn(){return tt||(tt=1,function(t){Object.defineProperty(t,"__esMo
1dule",{value:!0}),Object.defineProperty(t,"anchorRef",{enumerable:!0,get:function(){return o.anchorRef}}),Object.defineProperty(t,"bindContextMenu",{enumerable:!0,get:function(){return o.bindContextMenu}}),Object.defineProperty(t,"bindDialog",{enumerable:!0,get:function(){return o.bindDialog}}),Object.defineProperty(t,"bindDoubleClick",{enumerable:!0,get:function(){return o.bindDoubleClick}}),Object.defineProperty(t,"bindFocus",{enumerable:!0,get:function(){return o.bindFocus}}),Object.defineProperty(t,"bindHover",{enumerable:!0,get:function(){return o.bindHover}}),Object.defineProperty(t,"bindMenu",{enumerable:!0,get:function(){return o.bindMenu}}),Object.defineProperty(t,"bindPopover",{enumerable:!0,get:function(){return o.bindPopover}}),Object.defineProperty(t,"bindPopper",{enumerable:!0,get:function(){return o.bindPopper}}),Object.defineProperty(t,"bindToggle",{enumerable:!0,get:function(){return o.bindToggle}}),Object.defineProperty(t,"bindTrigger",{enumerable:!0,get:function(){return o.bindTrigger}}),t.default=void 0;var n=l(_e()),r=f(Vt()),o=On();function f(a){return a&&a.__esModule?a:{default:a}}function d(a){if(typeof WeakMap!="function")return null;var u=new WeakMap,m=new WeakMap;return(d=function(s){return s?m:u})(a)}function l(a,u){if(a&&a.__esModule)return a;
1if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var m=d(u);if(m&&m.has(a))return m.get(a);var s={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in a)if(v!=="default"&&Object.prototype.hasOwnProperty.call(a,v)){var C=b?Object.getOwnPropertyDescriptor(a,v):null;C&&(C.get||C.set)?Object.defineProperty(s,v,C):s[v]=a[v]}return s.default=a,m&&m.set(a,s),s}function i(a,u,m){return u in a?Object.defineProperty(a,u,{value:m,enumerable:!0,configurable:!0,writable:!0}):a[u]=m,a}class p extends n.Component{constructor(...u){super(...u),i(this,"state",o.initCoreState),i(this,"_mounted",!0),i(this,"_setStateIfMounted",m=>{this._mounted&&this.setState(m)})}componentWillUnmount(){this._mounted=!1}componentDidUpdate(u,m){const{popupId:s,disableAutoFocus:b}=this.props;if(!b&&typeof document=="object"&&s&&(s!==u.popupId||this.state.anchorEl!==m.anchorEl)){const v=document.getElementById(s);v&&v.focus()}}render(){const{children:u,popupId:m,variant:s,parentPopupState:b,disableAutoFocus:v}=this.props,C=(0,o.createPopupState)({state:this.state,setState:this._setStateIfMounted,popupId:m,variant:s,parentPopupState:b,disableAutoFocus:v}),_=u(C);return _??null}}t.default=p,i(p,"propTypes",{children:r.default.func.isRequired,popupId:r.default.string,variant:r.default.oneOf(["popover","popper"]).isRequired,parentPopupState:r.default.object,disableAutoFocus:r.default.bool})}(De)),De}var he=Sn();const Ct=xe(he),q=new U({name:"desktopNavigation",prefix:"m-",outputIsString:!0}),nt=dt(Jt)({boxShadow:"none",color:"var(--aa-one-cms-palette-text-primary)",fontSize:"var(--heading-fs-1)",fontWeight:"var(--font-weight-medium)",textTransform:"inherit",height:"100%",backgroundColor:"transparent",borderColor:"transparent","&:hover":{textDecoration:"underline",backgroundColor:"transparent",borderColor:"transparent"},"&:active":{textDecoration:"underline",backgroundColor:"transparent",borderColor:"transparent"},"&:focus":{textDecoration:"underline",backgroundColor:"transparent",borderColor:"transparent"}}),ke=["mouseenter","_customEnter","click"];function Mt(t){const n=t.links;return!(n==null||n.length===0)}const ce=({item:t,level:n,handleMouseEvent:r})=>{const[o,f]=A.useState(null),d=(i,p,a)=>{f(a),r(i,p,f)},l=n+1;return e.jsx(w,{id:`animated-nav-level-${n}`,sx:{width:"max-content",height:"100%",overflow:"auto",maxWidth:"345px",...l%2===0&&{backgroundColor:"var(--aa-one-cms-palette-background-default-alt)"}},children:t&&e.jsxs(ae,{id:`nav-level-${n}`,sx:{height:"100%"},className:q("List"),disablePadding:!0,children:[e.jsx(T,{className:q("ListItem"),disablePadding:!0,children:e.jsx(D,{className:q("ListItemButton"),id:`nav-level-${n}-${t.id}`,href:t.url,onMouseLeave:i=>d&&d(i,t,t.id),sx:{":hover":{textDecoration:"underline"}},children:e.jsx(R,{primary:e.jsx(Dt,{text:t.label,size:"h6",type:"u-heading-xs"}),secondary:e.jsx(w,{sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical",color:"var(--text-color)"},dangerouslySetInnerHTML:{__html:t.description}})})})}),e.jsx(ge,{component:"li"}),t.links&&t.links.map((i,p)=>Mt(i)?e.jsx(T,{className:q("ListItem"),disablePadding:!0,children:e.jsxs(D,{className:q("ListItemButton"),id:`nav-level-${n}-${p}`,alignItems:"flex-start",selected:i.id==o,href:i.url,onMouseEnter:u=>d&&d(u,i,i.id),onMouseLeave:u=>d&&d(u,i,i.id),sx:{":hover":{textDecoration:"underline"}},children:[e.jsx(R,{primary:i.label,sx:{paddingRight:2}}),e.jsx(Ue,{})]})},p):e.jsx(T,{className:q("ListItem"),disablePadding:!0,children:e.jsx(D,{className:q("ListItemButton"),id:`nav-level-${n}-${p}`,href:i.url,onMouseEnter:u=>d&&d(u,null,i.id),onMouseLeave:u=>d&&d(u,null,i.id),sx:{":hover":{textDecoration:"underline"}},children:e.jsx(R,{className:q("ListItemText"),primary:i.label})})},p))]},t.id)})},_n=t=>{const[n,r]=ee.useState(null),[o,f]=ee.useState(null),[d,l]=ee.useState(null),[i,p]=ee.useState(null),a=ee.useRef(null),u=()=>{r(null),f(null),l(null),p(null)},m=(I,k)=>{const y=k.relatedTarget.id;a.current=I,I===1&&y==="animated-nav-level-0"&&(r(null),f(null),l(null),p(null)),I===2&&y==="animated-nav-level-1"&&(f(null),l(null),p(null)),I===3&&y==="animated-nav-level-2"&&(l(null),p(null))},s=(I,k,y)=>{var c;const F=(c=I==null?void 0:I.relatedTarget)==null?void 0:c.id;a.current=0,ke.includes(I.type)&&setTimeout(()=>{a.current===0&&r(k)},250),I.type==="mouseleave"&&(F!=null&&F.includes("nav-level-0"))&&(f(null),l(null),p(null),y&&y(null))},b=(I,k,y)=>{a.current=1,ke.includes(I.type)&&setTimeout(()=>{a.current==1&&f(k)},250)},v=(I,k,y)=>{a.current=2,ke.includes(I.type)&&setTimeout(()=>{a.current==2&&l(k)},250)}
1,C=(I,k,y)=>{a.current=3,ke.includes(I.type)&&setTimeout(()=>{a.current===3&&p(k)},250)},_=()=>{};return Mt(t.navigation)?e.jsx(Ct,{variant:"popper",popupId:t.navigation.label,children:I=>(I.isOpen||u(),e.jsxs(w,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},component:"li",children:[e.jsx(nt,{className:q("Button"),variant:"text",...he.bindHover(I),endIcon:e.jsx(gt,{}),href:t.navigation.url,sx:{...t.side=="left"&&{marginLeft:"calc(var(--spacing-medium))"},...t.side=="right"&&{marginRight:"calc(var(--spacing-medium))"},".MuiButton-endIcon":{marginLeft:0}},children:t.navigation.label}),e.jsx(Zt,{...he.bindPopper(I),placement:"bottom-start",sx:{paddingTop:"5px",zIndex:999999},modifiers:[{name:"preventOverflow",enabled:!1}],transition:!0,children:({TransitionProps:k})=>e.jsx(Tt,{...k,children:e.jsxs(oe,{elevation:8,sx:{display:"flex",position:"relative"},children:[e.jsx(w,{onMouseLeave:y=>{m(0,y)},sx:{height:"100%"},children:e.jsx(ce,{item:t.navigation,level:0,handleMouseEvent:s})},t.navigation.id),e.jsx(te,{in:n!=null,orientation:"horizontal",children:e.jsx(w,{onMouseLeave:y=>{m(1,y)},sx:{height:"100%"},children:e.jsx(ce,{item:n,level:1,handleMouseEvent:b})})}),e.jsx(te,{in:o!=null,orientation:"horizontal",children:e.jsx(w,{onMouseLeave:y=>{m(2,y)},sx:{height:"100%"},children:e.jsx(ce,{item:o,level:2,handleMouseEvent:v})})}),e.jsx(te,{in:d!=null,orientation:"horizontal",children:e.jsx(w,{onMouseLeave:y=>{m(3,y)},sx:{height:"100%"},children:e.jsx(ce,{item:d,level:3,handleMouseEvent:C})})}),e.jsx(te,{in:i!=null,orientation:"horizontal",children:e.jsx(w,{onMouseLeave:y=>{m(4,y)},sx:{height:"100%"},children:e.jsx(ce,{item:i,level:4,handleMouseEvent:_})})})]})})})]}))}):e.jsx(nt,{className:q("navigationItem"),variant:"text",sx:{...t.side==="left"&&{marginLeft:"calc(var(--spacing-medium))"},...t.side==="right"&&{marginRight:"calc(var(--spacing-medium))"}},href:t.navigation.url,children:t.navigation.label})},Re=new U({name:"desktopNavigation",prefix:"m-",outputIsString:!0}),En=({navigation:t={menuItems:[],LanguageSwitcher:null},navigationRef:n,searchBar:r,logo:o})=>e.jsxs(w,{gap:2,sx:{gridTemplateColumns:"repeat(5, minmax(0px, 1fr)) 240px repeat(5, minmax(0px, 1fr))",display:"grid",justifyContent:"flex-start",alignItems:"center",height:"100%"},children:[e.jsx(w,{className:Re("leftNavigation"),sx:{gridColumn:"1 / 6",justifyContent:"flex-start",alignItems:"stretch",height:"100%"},component:"nav",children:e.jsx(z,{direction:"row",justifyContent:"space-evenly",alignItems:"stretch",spacing:0,sx:{height:"100%",minWidth:0,my:0},component:"ul",children:t.menuItems&&t.menuItems.length>0&&t.menuItems.map((f,d)=>e.jsx(_n,{navigation:f,navigationRef:n,side:"none"},`nav-${d}`))})}),e.jsx(w,{className:Re("logo"),gridColumn:"6 / 7",sx:{height:"100%"},children:o}),e.jsx(w,{className:Re("searchBar"),gridColumn:"7 / 12",sx:{height:"100%",justifyContent:"",alignItems:"stretch"},children:e.jsx(z,{direction:"row",justifyContent:"flex-end",alignItems:"center",spacing:0,sx:{height:"100%"},children:r})})]}),re=new U({name:"mobileNavigation",prefix:"m-",outputIsString:!0});function An(t){const n=P.defaultTo(t.subMenu,t.links);return!(n===null||n===void 0||n.length===0)}const Oe=({item:t,level:n})=>{const r=An(t)?Bn:It;return e.jsx(r,{item:t,level:n})},It=({item:t})=>{let n=!1;window.location.href.includes(t.url)&&(n=!0);const r=P.defaultTo(t.text,t.label);return e.jsx(T,{disablePadding:!0,children:e.jsx(D,{className:re("ListItemButton"),selected:n,component:"a",href:t.url,children:e.jsx(R,{primary:r})})})},Bn=({item:t,level:n})=>{const r=P.defaultTo(t.subMenu,t.links),o=P.defaultTo(t.text,t.label),[f,d]=A.useState(!1),l=()=>{d(i=>!i)};return e.jsxs(e.Fragment,{children:[e.jsx(T,{onClick:l,disablePadding:!0,children:e.jsxs(D,{className:re("ListItemButton"),children:[e.jsx(R,{primary:o}),f?e.jsx(wt,{}):e.jsx(ft,{})]})}),e.jsxs(te,{in:f,timeout:"auto",unmountOnExit:!0,sx:[n%2===0?{backgroundColor:"var(--aa-one-cms-palette-background-default-alt)"}:{backgroundColor:"var(--aa-one-cms-palette-background-default)"}],children:[e.jsx(T,{disablePadding:!0,children:e.jsxs(D,{href:t.url,children:[e.jsx(jt,{children:e.jsx(Ve,{sx:{bgcolor:"var(--aa-one-cms-palette-primary-main)",width:24,height:24},children:e.jsx(Ue,{})})}),e.jsx(R,{primary:o,secondary:t.description})]})}),e.jsx(ge,{component:"div"}),e.jsx(ae,{component:"div",disablePadding:!0,children:r.map((i,p)=>e.jsx(Oe,{item:i,level:n+1},p))})]})]})},Nn=t=>{const n=({navigation:r={menuItems:[],LanguageSwitcher:null},DivisionSwitcher:o,topbar:f,login:d,userInformation:l})=>{var p;A.useEffect(()=>{if(o){const a={external:!0,subMenu:null,text:"ASSA ABLOY Group",url:"https://www.assaabloy.com/group/en"},u=[...f.links,a];f.links=P.uniqWith(u,P.isEqual)}},[]);const i=V&&Fe&&e.jsx(Mn,{});return e.jsxs(z,{direction:"column",spacing:0,sx:{height:"100%"},className:re(),children:[V&&Fe&&e.jsx(In,{}),e.jsx(ae,{sx:{flexGrow:1,width:"300px"},className:re("List"),children:((p=r==null?void 0:r.menuItems)==null?void 0:p.map((a,u)=>e.jsx(Oe,{className:re("ListItem"),item:a,level:0},u)))||null}),f.visible&&f.links.length>0&&e.jsxs(ae,{className:re("topBarLinks"),sx:{width:"300px",color:"var(--aa-one-cms-palette-white)",backgroundColor:"var(--aa-one-cms-palette-primary-main)",".MuiCollapse-vertical":{backgroundColor:"var(--aa-one-cms-palette-primary-dark) !important"}},children:[o&&e.jsx(It,{item:{url:"https://www.assaabloy.com/group/en",label:"ASSA ABLOY Group"}}),f.links.map((a,u)=>e.jsx(Oe,{item:a,level:0},u)),V&&(l==null?void 0:l.customer_id)&&f.protectedLinks.map((a,u)=>e.jsx(Oe,{item:a,level:0},u)),i]})]})};return e.jsx(ve,{children:r=>e.jsx(n,{...r.loginInfo,...t})})};var ue={},rt;function Tn(){if(rt)return ue;rt=1;var t=He();
1Object.defineProperty(ue,"__esModule",{value:!0}),ue.default=void 0;var n=t(qe()),r=ze();return ue.default=(0,n.default)((0,r.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),ue}var Dn=Tn();const Rn=xe(Dn),ot=new U({name:"mobileNavigation",prefix:"m-",outputIsString:!0}),Fn=({navigation:t={menuItems:[],LanguageSwitcher:null},topbar:n,DivisionSwitcher:r,login:o})=>{const[f,d]=A.useState(!1);return e.jsxs(w,{className:ot(),children:[e.jsx(w,{sx:{flexGrow:1,display:"flex",justifyContent:"start",alignItems:"center"},children:e.jsx(oe,{sx:{p:"2px 4px",display:"flex",alignItems:"center",width:50,backgroundColor:"var(--aa-one-cms-palette-background-default-alt)"},elevation:0,onClick:()=>{d(!0)},children:e.jsx(me,{"aria-label":"navigation menu",sx:{mr:2},disableRipple:!0,children:e.jsx(Rn,{sx:{width:30,height:30}})})})}),e.jsx(Rt,{children:e.jsx(Yt,{open:f,onClose:()=>{d(!1)},className:ot("drawer"),children:e.jsx(Nn,{navigation:t,topbar:n,login:o,DivisionSwitcher:r})})})]})};var de={},Le={},at;function Wn(){if(at)return Le;at=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.default=f;var t=r(_e());function n(d){if(typeof WeakMap!="function")return null;var l=new WeakMap,i=new WeakMap;return(n=function(p){return p?i:l})(d)}function r(d,l){if(d&&d.__esModule)return d;if(d===null||typeof d!="object"&&typeof d!="function")return{default:d};var i=n(l);if(i&&i.has(d))return i.get(d);var p={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in d)if(u!=="default"&&Object.prototype.hasOwnProperty.call(d,u)){var m=a?Object.getOwnPropertyDescriptor(d,u):null;m&&(m.get||m.set)?Object.defineProperty(p,u,m):p[u]=d[u]}return p.default=d,i&&i.set(d,p),p}function o(){return o=Object.assign||function(d){for(var l=1;l<arguments.length;l++){var i=arguments[l];for(var p in i)Object.prototype.hasOwnProperty.call(i,p)&&(d[p]=i[p])}return d},o.apply(this,arguments)}function f(d){return t.forwardRef(({PaperProps:l,style:i,...p},a)=>t.createElement(d,o({},p,{ref:a,style:{pointerEvents:"none",...i},PaperProps:{...l,style:{pointerEvents:"auto",...l==null?void 0:l.style}}})))}return Le}var it;function $n(){if(it)return de;it=1,Object.defineProperty(de,"__esModule",{value:!0}),de.default=void 0,f(_e());var t=r(Wn()),n=r(en);function r(l){return l&&l.__esModule?l:{default:l}}function o(l){if(typeof WeakMap!="function")return null;var i=new WeakMap,p=new WeakMap;return(o=function(a){return a?p:i})(l)}function f(l,i){if(l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var p=o(i);if(p&&p.has(l))return p.get(l);var a={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in l)if(m!=="default"&&Object.prototype.hasOwnProperty.call(l,m)){var s=u?Object.getOwnPropertyDescriptor(l,m):null;s&&(s.get||s.set)?Object.defineProperty(a,m,s):a[m]=l[m]}return a.default=l,p&&p.set(l,a),a}var d=(0,t.default)(n.default);return de.default=d,de}var Hn=$n();const qn=xe(Hn),J=new U({name:"topbar",prefix:"m-",outputIsString:!0}),zn=t=>e.jsx(Ct,{variant:"popover",popupId:t.text,children:n=>e.jsx(w,{className:J("link"),children:e.jsxs(w,{className:J("dropdown"),children:[e.jsx(mt,{className:J("dropdownButton"),label:t.text,icon:e.jsx(gt,{}),iconPosition:"end","aria-haspopup":"true",...he.bindHover(n),sx:{color:"var(--aa-one-cms-palette-primary-contrastText)",minHeight:"48px",opacity:1,textTransform:"inherit","&:hover":{textDecoration:"underline"}}}),e.jsx(qn,{...he.bindPopover(n),anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sx:{padding:"1rem"},children:e.jsx(ae,{className:J("dropdownContent"),children:t.sublinks&&t.sublinks.map((r,o)=>e.jsx(T,{className:J("ListItem"),disablePadding:!0,dense:!0,children:e.jsx(D,{className:J("ListItemButton"),dense:!0,href:r.url,children:e.jsx(R,{children:r.text})})},o))})})]})})}),K=new U({name:"topbar",prefix:"m-",outputIsString:!0});function st(t){return e.jsx(mt,{component:"a",sx:{color:"var(--aa-one-cms-palette-primary-contrastText)",textTransform:"inherit","&:hover":{textDecoration:"underline"}},...t})}const Un=t=>{const n=({links:r,protectedLinks:o,DivisionSwitcher:f,LocationSwitcher:d,userInformation:l})=>{const i=u=>{const m=[];for(const s in u){const b=[];if(u[s].subMenu)for(const v in u[s].subMenu)u[s].subMenu[v].text&&u[s].subMenu[v].url&&b.push({text:u[s].subMenu[v].text,url:u[s].subMenu[v].url});
1b.length?m.push(e.jsx(zn,{text:u[s].text,sublinks:b},u[s].text)):u[s].text&&u[s].url&&m.push(e.jsx(st,{className:K("link"),target:u[s].external?"_blank":"_self",href:u[s].url,label:u[s].text},s))}return m},p=V&&Fe&&e.jsx(z,{className:K("login"),direction:"row",alignItems:"center",spacing:.75,children:e.jsx(bn,{})}),a=V&&vt&&bt&&e.jsx(z,{className:K("visionBoardCart"),direction:"row",alignItems:"center",spacing:.75,children:e.jsx(xt,{})});return e.jsx(xn,{className:K(),position:"static",color:"primary",sx:{padding:"0 var(--spacing-small)",backgroundColor:"var(--aa-one-cms-palette-primary-main)"},children:e.jsxs(tn,{variant:"dense",disableGutters:!0,className:K("toolbar"),sx:{paddingLeft:{sx:0,lg:"20px"}},children:[e.jsxs(Ft,{className:K("tabs"),"aria-label":"eyebrow navigation",variant:"scrollable",scrollButtons:"auto",allowScrollButtonsMobile:!0,sx:{".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3}},value:!1,children:[f&&e.jsx(st,{className:K("link"),target:"_blank",href:"https://www.assaabloy.com/group/en",label:"ASSA ABLOY Group"}),i(r),V&&(l==null?void 0:l.customer_id)&&i(o)]}),e.jsx(w,{flexGrow:1}),p,a,d??d]})})};return e.jsx(ve,{children:r=>e.jsx(n,{...r.loginInfo,...t})})},Vn=new U({name:"logo",prefix:"a-",outputIsString:!0}),lt=({link:t,image:n,alt:r=""})=>{const{setNavigationState:o}=ht();if(!t||!n)return null;const f=()=>{const d=document.getElementsByClassName("o-navHeader__Main_Bar");o({height:P.get(d,"0.clientHeight",void 0)})};return e.jsx(w,{className:Vn(),children:e.jsx(w,{sx:{display:"flex",justifyContent:"center",padding:"1.25rem 0"},component:"a",href:t,children:e.jsx(w,{onLoad:f,sx:{minWidth:"150px",maxWidth:{xs:"11rem",md:"11.5rem"},minHeight:"60px",maxHeight:"5.75rem",objectFit:"contain"},component:"img",src:n,alt:r})})})},ct=new U({name:"navHeader",prefix:"o-",outputIsString:!0}),Gn=({paths:t,navigationRef:n,layout:r,isLarge:o,children:f})=>{const d=e.jsxs(z,{direction:"row",justifyContent:"flex-start",alignItems:"stretch",spacing:0,sx:[r==="full-width"&&{marginLeft:"1rem"},r==="floating"&&!o&&{marginLeft:"1rem"}],children:[e.jsx(Kt,{paths:t}),e.jsx(w,{})]});return e.jsx(w,{sx:[{width:"100%",position:"absolute",margin:0,borderRadius:"0"},r==="floating"&&o&&{borderRadius:"4px",width:"calc(100% - 2rem)",left:"1rem",margin:"var(--spacing-small) auto 0 auto"}],className:ct("Wrapper"),children:e.jsx(w,{sx:{position:"relative",zIndex:"var(--aa-one-cms-zIndex-appBar)",width:"100%"},children:e.jsxs(z,{direction:"column",justifyContent:"flex-start",alignItems:"stretch",spacing:0,children:[e.jsx(oe,{ref:n,className:ct("Main_Bar"),elevation:r==="floating"||!o?3:0,sx:[{padding:"0 var(--spacing-small)",borderRadius:"0"},r!=="floating"&&{boxShadow:"var(--aa-one-cms-shadows-3)"},r==="floating"&&o&&{borderRadius:"4px",padding:"0 var(--spacing-medium-0)"}],children:e.jsx(fe,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",wrap:"nowrap",children:f})}),d]})})})},Yn=({name:t,url:n,alternateName:r})=>!t&&!n&&!r?null:e.jsxs("div",{itemScope:!0,itemType:"https://schema.org/WebSite",style:{position:"absolute"},children:[t&&e.jsx("meta",{itemProp:"name",content:t}),n&&e.jsx("meta",{itemProp:"url",content:n}),r&&e.jsx("meta",{itemProp:"alternateName",content:r})]});var pe={},ut;function Kn(){if(ut)return pe;ut=1;var t=He();Object.defineProperty(pe,"__esModule",{value:!0}),pe.default=void 0;var n=t(qe()),r=ze();return pe.default=(0,n.default)((0,r.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForwardOutlined"),pe}var Qn=Kn();const Xn=xe(Qn),Pt="AEHNavHeader";new U({name:Pt,prefix:"o-",outputIsString:!0});const Zn=x.enum(["floating","full-width"]),Jn=x.enum(["left","full-width","navigationLayout"]),er=x.object({enabled:x.boolean().optional(),apiEndpoint:x.string().optional(),brandName:x.string().optional(),loginEndpoint:x.string().optional()}),tr=x.object({title:x.string().optional(),defaultFilter:x.array(We).optional()}),nr=x.object({engine:x.string().optional(),includeDam:x.boolean(),defaultFilter:x.array(We).optional(),defaultDamFilters:x.array(tr).optional(),damAppearance:cn.optional(),includeAcademy:x.boolean(),defaultAcademyFilter:x.array(We).optional()}),rr=x.enum(["primary","secondary","warning","success","error","info"]),or=x.object({visible:x.boolean().optional(),links:x.array(Xe).optional(),protectedLinks:x.array(Xe).optional()}),ar=x.object({enabled:x.boolean(),color:rr,content:x.string().optional(),link:yt.optional()}
1),ir=x.object({title:x.string().optional(),text:x.string().optional(),link:yt.optional()}),sr=x.object({title:x.string().optional(),links:x.array(ir).optional()}),lr=x.object({logotype:x.string().optional(),linkURL:x.string().optional()}),cr=x.object({title:x.string().optional(),links:x.array(lr).optional()}),ur=x.object({visible:x.boolean().optional(),divisions:sr.optional(),brands:cr.optional()}),dr=x.object({layout:Zn,navigationLayout:Jn,logo:ln.optional(),login:er.optional(),locationSwitcher:sn.optional(),topbar:or.optional(),search:nr.optional(),alert:ar.optional(),divisionBrandSwitcherData:ur.optional(),navigationData:an.optional()}),pr=({pathModel:t,componentModel:n})=>{var y,F,c,h,g,M,W,O,E,$,Q,be,G,Y,je,X,ye,we,Z,B;const r=A.useRef(null),o=A.useRef(null),f=$t(Ht.breakpoints.up("lg")),{setSearch:d}=qt(),{setNavigationState:l}=ht(),[i,p]=A.useState(""),a=window.location.href,u=(y=t.dynamicContentPaths)==null?void 0:y.searchPageReference,m=dr.safeParse(n);if(!m.success){const{error:H}=m;return console.error(`${Pt}: ${un(H).toString()}`),e.jsx(Qt,{illustration:e.jsx(Te.illustration,{}),title:Te.title,description:Te.description})}const{data:s}=m;A.useEffect(()=>{l({layout:s.layout}),s.search&&d(s.search)},[]);const b=s.alert&&s.alert.enabled&&e.jsx(kn,{container:r.current,message:s.alert.content,link:{...s.alert.link,icon:Xn},onClose:()=>{},color:s.alert.color}),v=(F=s.topbar)!=null&&F.visible&&f?e.jsx(Un,{links:(c=s.topbar)==null?void 0:c.links,protectedLinks:(h=s.topbar)==null?void 0:h.protectedLinks,DivisionSwitcher:(g=s.divisionBrandSwitcherData)==null?void 0:g.visible,LocationSwitcher:e.jsx(Ln,{...s.locationSwitcher})}):e.jsx(w,{sx:{height:"4px",width:"100%",backgroundColor:"var(--aa-one-cms-palette-primary-main)"}});function C(){var H,Ce;window&&((H=t.dynamicContentPaths)==null?void 0:H.searchPageReference)!==null&&window.open(`${(Ce=t.dynamicContentPaths)==null?void 0:Ce.searchPageReference}${i!==""?`?searchQuery=${i}`:""}`,"_self")}const _=e.jsxs(oe,{sx:{p:"2px 4px",display:"flex",alignItems:"center",width:280,backgroundColor:"var(--aa-one-cms-palette-background-default-alt)"},elevation:0,children:[e.jsx(dn,{sx:{ml:1,flex:1},placeholder:"Search",inputProps:{"aria-label":"search"},value:i,onChange:H=>{p(H.target.value)},onKeyDown:H=>{H.key==="Enter"&&C()}}),e.jsx(ge,{sx:{height:28,m:.5},orientation:"vertical"}),e.jsx(me,{type:"button",sx:{p:"10px"},"aria-label":"search",onClick:()=>{C()},children:e.jsx(Ze,{})})]}),L=e.jsx(fe,{item:!0,sx:[s.layout==="full-width"&&{mr:2,ml:2}],xs:12,children:e.jsx(En,{logo:e.jsx(lt,{link:(M=s.logo)==null?void 0:M.link,image:(W=s.logo)==null?void 0:W.src,alt:(O=s.logo)==null?void 0:O.alt}),navigationRef:o,navigationLayout:s.navigationLayout,navigation:s.navigationData,searchBar:((E=s.search)==null?void 0:E.engine)&&e.jsxs(e.Fragment,{children:[!u&&e.jsx(Qe,{type:"desktop",...s.search}),u&&!a.includes(u)&&_]})})}),I=e.jsx(oe,{sx:{p:"2px 4px",display:"flex",alignItems:"center",width:50,backgroundColor:"var(--aa-one-cms-palette-background-default-alt)"},elevation:0,onClick:C,children:e.jsx(me,{type:"button",sx:{p:"10px"},"aria-label":"search",children:e.jsx(Ze,{})})}),k=e.jsxs(e.Fragment,{children:[e.jsx(fe,{item:!0,xs:!0,children:e.jsx(Fn,{login:s.login,navigation:s.navigationData,topbar:s.topbar,DivisionSwitcher:($=s.divisionBrandSwitcherData)==null?void 0:$.visible})}),e.jsx(fe,{item:!0,xs:8,children:e.jsx(w,{sx:{flexGrow:1,display:"flex",justifyContent:"center",alignItems:"center"},children:e.jsx(lt,{link:(Q=s.logo)==null?void 0:Q.link,image:(be=s.logo)==null?void 0:be.src,alt:(G=s.logo)==null?void 0:G.alt})})}),e.jsx(fe,{item:!0,xs:!0,children:e.jsxs(w,{sx:{flexGrow:1,display:"flex",justifyContent:"end",alignItems:"center"},children:[((Y=s.search)==null?void 0:Y.engine)&&e.jsxs(e.Fragment,{children:[!u&&e.jsx(Qe,{type:"mobile",...s.search}),u&&I]}),V&&vt&&bt&&e.jsx(xt,{})]})})]});return e.jsxs(w,{ref:r,sx:{position:"relative",zIndex:"var(--aa-one-cms-zIndex-appBar)"},children:[e.jsx(Yn,{name:(X=(je=t.structuredData)==null?void 0:je.webSite)==null?void 0:X.name,url:(we=(ye=t.structuredData)==null?void 0:ye.webSite)==null?void 0:we.url,alternateName:(B=(Z=t.structuredData)==null?void 0:Z.webSite)==null?void 0:B.alternateName}),b,v,e.jsx(Gn,{paths:t,isLarge:f,layout:s.layout,navigationRef:o,children:f?L:k})]})},wo=({pathModelHTLAttribute:t,componentModelHTLAttribute:n})=>e.jsx(rn,{children:e.jsx(Wt,{componentName:"aeh-nav-header",children:e.jsx(on,{pathModelHTLAttribute:t,componentModelHTLAttribute:n,children:(r,o)=>e.jsx(pr,{pathModel:r,componentModel:o})})})});export{wo as AEHNavHeader};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.