1import{_ as P}from"./BKTra-Cq.js";import{av as B,dV as $,Q as j,q as x,o as r,c as u,b0 as q,b1 as V,br as D,N as e,aH as b,b as f,w as N,a as m,O as y,ck as E,d as i,P as v,i as I,bF as A,r as S}from"./C3wmcVjr.js";import{C as M}from"./CIc3g8LZ.js";import{_ as F}from"./BVlvfDlF.js";import"./DqtyAtWs.js";import"./DlAUqK2U.js";import"./BO40Pj2Y.js";import"./DKES__Wm.js";import"./D7M8tm70.js";import"./NUNrPGfr.js";const R=t=>{const s=t.component.getModels()?.menu;return{menu:s&&t.page.getContent(s)}},T={mounted(t,s){s.instance.name="click-outside";const a=s.value;t._outsideClickHandler=o=>{t.contains(o?.target)||(o.stopPropagation(),a(o))},document.addEventListener("mousedown",t._outsideClickHandler),document.addEventListener("touchstart",t._outsideClickHandler)},beforeUnmount(t){document.removeEventListener("mousedown",t._outsideClickHandler),document.removeEventListener("touchstart",t._outsideClickHandler),t._outsideClickHandler=null}},z=()=>{const t=T,s=j(!1),a=B();return{vClickOutside:t,isExpanded:s,localePath:a,toggleExpanded:()=>{s.value=!s.value},getClassName:n=>({expanded:s.value,"has-children":n.getChildren()?.length,active:n.isSelected()}),getLinkClassName:n=>({"nav-link--disabled":!n.getUrl(),"nav-link--external":n.getLink()?.type===$,"nav-link--expandable":n.getChildren()?.length}),closeNav:()=>{s.value=!1},getUrl:n=>n.getUrl(),getName:n=>n.getName(),getChildren:n=>n.getChildren(),getChildrenLength:n=>n.getChildren()?.length}},K={key:0},Q=["aria-expanded"],X={key:1},Y=x({__name:"SidebarMenuNested",props:{items:{type:Array,required:!0}},setup(t){const{vClickOutside:s,isExpanded:a,toggleExpanded:o,getClassName:_,getLinkClassName:l,closeNav:d,getUrl:p,getName:g,getChildren:h,getChildrenLength:L}=z();return(n,k)=>{const w=A,H=U;return t.items?(r(),u("ul",K,[(r(!0),u(q,null,V(t.items,(c,O)=>D((r(),u("li",{key:O,class:b(["nav-item",e(_)(c)]),"aria-expanded":e(a)===!0?"true":void 0},[e(p)(c)?(r(),f(w,{key:0,class:b(["nav-link",e(l)(c)]),to:("formatUrl"in n?n.formatUrl:e(I))(e(p)(c))},{default:N(()=>[m("span",null,y(e(g)(c)),1),e(h)(c).length?(r(),u("button",{key:0,class:"nav-link__toggle",onClick:k[0]||(k[0]=E((...C)=>e(o)&&e(o)(...C),["prevent"]))},[i(e(M))])):v("",!0)]),_:2},1032,["class","to"])):(r(),u("span",X,[m("span",null,y(e(g)(c)),1),e(h)(c).length?(r(),u("button",{key:0,class:"nav-link__toggle",onClick:k[1]||(k[1]=E((...C)=>e(o)&&e(o)(...C),["prevent"]))},[i(e(M))])):v("",!0)])),e(L)(c)?(r(),f(H,{key:2,items:e(h)(c)},null,8,["items"])):v("",!0)],10,Q)),[[e(s),e(d)]])),128))])):v("",!0)}}}),U=Object.assign(Y,{__name:"SidebarMenuNested"}),G=x({__name:"SidebarMenu",props:{component:{type:Object,required:!0},page:{type:Object,required:!0}},setup(t){const s=t,{menu:a}=R(s);return(o,_)=>{const l=S("br-manage-menu-button"),d=U;return r(),u("nav",{class:b(["sf-sidebar-menu",{"has-edit-button":t.page.isPreview()}])},[i(l,{menu:e(a)},null,8,["menu"]),e(a)?(r(),f(d,{key:0,items:e(a)?.getItems()},null,8,["items"])):v("",!0)],2)}}}),J=Object.assign(G,{__name:"SidebarMenu"}),W={class:"customer-service grid-container"},Z={class:"customer-service__breadcrumbs"},ee={class:"customer-service__sidebar"},te={class:"customer-service__content"},me=x({__name:"customerservice",setup(t){return(s,a)=>{const o=P,_=J,l=S("br-component"),d=F;return r(),u("section",null,[i(d,null,{default:N(()=>[m("div",W,[m("div",Z,[i(o)]),m("div",ee,[i(l,{component:"customer-service-menu"},{default:N(({component:p,page:g})=>[i(_,{component:p,page:g},null,8,["component","page"])]),_:1}),i(l,{component:"side-bar"})]),m("div",te,[i(l,{component:"main"})])])]),_:1})])}}});export{me as default}; 2//# sourceMappingURL=DXdgraHg.js.map
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.