1import z from"./BYp-l5mR.js";import{d as X}from"./D1UV7r2B.js";import{l as j,an as H,u as a,m as I,H as u,U as l,P as v,W as b,X as w,V as g,Z as h,S as y,ab as x,_ as k,aj as O}from"./BIaCPJ4S.js";import{n as T}from"./BdEtjDPP.js";const U={class:"wx-menu-wrapper"},A=["href","onMouseover","onMouseleave"],J={class:"wx-menu-name"},D=["data-menu-index"],F=["onMouseover","onMouseleave"],Z={class:"flex flex-wrap"},G={class:"megamenu-column-wrapper"},K=["href"],Q=["href"],Y={key:1,class:"wx-menu-child-link-popover l1"},ee={class:"wx-menu-child-link c2"},ne=["href"],ae={key:1,class:"wx-menu-child-link-popover l2"},te={class:"wx-menu-child-link c3"},oe=["href"],ue=j({__name:"MenuMegaSuper",props:{items:{},menuHoverColor:{},color:{},fontSize:{},fontWeight:{},hoverColor:{},hoverUnderline:{type:Boolean},gap:{},alignment:{},badgeItems:{},borderRadius:{},badgePosition:{}},setup(L){H(e=>({"2c83f5b6":e.gap,ef103e1c:e.alignment,"721f4df2":e.color,"779277fe":e.fontSize,cfadb310:e.fontWeight,"5b030350":e.hoverColor,"03c3dfc5":e.hoverUnderline?"100%":"0%","4fc237e4":a(n)("mega_menu_background_color"),"23f1c3a5":a(n)("mega_menu_border_radius"),"63fe65aa":a(n)("mega_menu_padding_x"),"63fe56a6":a(n)("mega_menu_padding_t"),"63fe1314":a(n)("mega_menu_padding_b"),"4f35ce69":a(n)("mega_menu_box_shadow")?"0 0 15px 1px rgba(0, 0, 0, 0.178)":"none","78bc2a94":a(N),28278139:a(n)("mega_menu_column_gap_y"),"28277d78":a(n)("mega_menu_column_gap_x"),"737815c1":a(n)("mega_menu_parent_link_font_size"),"24d404b8":a(n)("mega_menu_parent_link_font_weight"),"476bec1a":a(n)("mega_menu_parent_link_text_color"),b01cadca:a(n)("mega_menu_parent_link_padding_y"),b01cb54c:a(n)("mega_menu_parent_link_padding_x"),"6bc93c2c":a(n)("mega_menu_parent_link_separator")?`1px solid ${a(n)("mega_menu_separator_color")}`:"none","9044a956":a(n)("mega_menu_parent_link_border_radius"),"68cdf556":a(n)("mega_menu_parent_link_hover_text_color"),"760cf152":a(n)("mega_menu_parent_link_hover_background_color"),"8ef595b0":a(n)("mega_menu_parent_link_hover_animation")?"translateX(5px)":"none",d5906b04:a(n)("mega_menu_link_font_size"),"550d0396":a(n)("mega_menu_link_font_weight"),"1afe2654":a(n)("mega_menu_link_text_color"),"6c9d4450":a(n)("mega_menu_link_padding_y"),"6c9d4bd2":a(n)("mega_menu_link_padding_x"),fb13a562:a(n)("mega_menu_link_separator")?`1px solid ${a(n)("mega_menu_separator_color")}`:"none","55ea8cdc":a(n)("mega_menu_link_border_radius"),b20c3c0e:a(n)("mega_menu_link_hover_text_color"),"641c2dba":a(n)("mega_menu_link_hover_background_color"),"4cb59f4b":a(n)("mega_menu_link_hover_animation")?"translateX(5px)":"none"}));const M=L,{txs:n}=T(),N=I(()=>n("mega_menu_style")&&n("mega_menu_style")=="full_width"?"100vw":"unset");let f={};const $=e=>{f&&clearInterval(f[`${e}`]),document.querySelectorAll(".wx-menu-panel").forEach(o=>{o.classList.remove("active")});const t=document.querySelector(`[data-menu-index="${e}"]`);t&&(t.classList.add("active"),t.classList.remove("hide"),S(t))},R=e=>{const t=document.querySelector(`[data-menu-index="${e}"]`);t&&(f[`${e}`]=setTimeout(()=>{t.classList.add("hide"),t.classList.remove("active")},1e3))},C=e=>{f&&clearInterval(f[`${e}`]),document.querySelectorAll(".wx-menu-panel").forEach(o=>{o.classList.remove("active")});const t=document.querySelector(`[data-menu-index="${e}"]`);t&&(t.classList.add("active"),t.classList.remove("hide"),S(t))},E=e=>{const t=document.querySelector(`[data-menu-index="${e}"]`);t&&(t.classList.remove("active"),t.classList.add("hide"))},S=e=>{var s;let t=!1,o=e==null?void 0:e.parentElement;(s=o==null?void 0:o.classList)!=null&&s.contains("wx-menu-panel-mega")&&(t=!0),e.style="transform:translateX(0px);";const m=e.getBoundingClientRect(),r=window==null?void 0:window.innerWidth;let i=r+-25-(m.left+m.width);if(t&&o){const d=o.getBoundingClientRect().left/r*100,p=m.width/r*100;if(d>30&&d<70&&p>50){e.style="left: 0; justify-content: center; width: 100%;";return}}i<=0&&(e.style=`transform:translateX(${i}px);`)},B=e=>{e.classList.remove("open-left");const t=e.getBoundingClientRect(),o=window.innerWidth;t.right>o&&e.classList.add("open-left")},P=e=>{const o=e.currentTarget.querySelector(".wx-menu-child-link-popover");o&&B(o)},q=I(()=>
1{if(n("mega_menu_sub_menu_style")&&n("mega_menu_sub_menu_style")=="always_visible"){const e=JSON.parse(JSON.stringify(M.items));let t="";return e.forEach(o=>{if(!o.child)return;let m=!1;o.child.forEach((r,c)=>{if(m=r.some(i=>i.display=="parent"),m)t=o.name;else{let i=[];r.forEach(s=>{s.level=="2"&&(i.push({...s,level:"1",display:"parent"}),s.child&&i.push(...s.child.map(_=>({..._,level:"2"}))))}),o.child[c]=i}})}),e.forEach((o,m)=>{if(!o.child||o.name==t)return;const r=o.child.flat(1);let c=[],i=0;r.forEach((s,_)=>{if(c[i]||(c[i]=[]),_>0&&s.display=="parent"){let d=r.findIndex((W,V)=>V>_&&W.display=="parent");d==-1&&(d=r.length);let p=d-_;!(c[i].length+p<=8)&&_>0&&i++}c[i]||(c[i]=[]),c[i].push(s)}),e[m].child=c}),e}return M.items});return(e,t)=>{const o=z,m=X;return l(),u("div",U,[(l(!0),u(v,null,b(a(q),(r,c)=>(l(),u("div",{class:w(["wx-menu-item",r.type=="megamenu"?"wx-menu-panel-mega":"wx-menu-panel-link"]),key:c},[g("a",{href:r.link||"/",class:"wx-menu-top-link",onMouseover:i=>$(c),onMouseleave:i=>R(c)},[g("span",J,k(r.name),1),r.child.length?(l(),y(o,{key:0,name:"bi:chevron-down",class:"ms-2"})):h("",!0),x(m,{menuName:r.name,badgeItems:e.badgeItems,borderRadius:e.borderRadius,badgePosition:e.badgePosition},null,8,["menuName","badgeItems","borderRadius","badgePosition"])],40,A),r.child&&r.child.length?(l(),u("div",{key:0,class:"wx-menu-panel","data-menu-index":c},[g("div",{class:"wx-menu-content",onMouseover:i=>C(c),onMouseleave:i=>E(c)},[g("div",Z,[(l(!0),u(v,null,b(r.child,i=>(l(),u("div",G,[(l(!0),u(v,null,b(i,(s,_)=>(l(),u("div",{class:w({"megamenu-column":r.type=="megamenu"})},[s.display=="parent"?(l(),u("div",{key:0,class:w([{"megamenu-column-spacing":_>0},"wx-menu-parent-link"])},[g("a",{class:"flex items-center",href:s.link},[g("span",null,k(s.name),1),x(m,{menuName:r.name,subMenuName:s.name,badgeItems:e.badgeItems,isSubMenu:!0,borderRadius:e.borderRadius},null,8,["menuName","subMenuName","badgeItems","borderRadius"])],8,K)],2)):(l(),u("div",{key:1,class:"wx-menu-child-link c1",onMouseenter:P},[g("a",{href:s.link,class:"flex items-center"},[O(k(s.name)+" ",1),x(m,{menuName:r.name,subMenuName:s.name,badgeItems:e.badgeItems,isSubMenu:!0,borderRadius:e.borderRadius},null,8,["menuName","subMenuName","badgeItems","borderRadius"])],8,Q),s.child&&s.child.length?(l(),y(o,{key:0,name:"bi:chevron-right",class:"wx-men-right-icon"})):h("",!0),s.child&&s.child.length?(l(),u("div",Y,[(l(!0),u(v,null,b(s.child,d=>(l(),u("div",ee,[g("a",{href:d.link},k(d.name),9,ne),d.child&&d.child.length?(l(),y(o,{key:0,name:"bi:chevron-right",class:"wx-men-right-icon"})):h("",!0),d.child&&d.child.length?(l(),u("div",ae,[(l(!0),u(v,null,b(d.child,p=>(l(),u("div",te,[g("a",{href:p.link},k(p.name),9,oe)]))),256))])):h("",!0)]))),256))])):h("",!0)],32))],2))),256))]))),256))])],40,F)],8,D)):h("",!0)],2))),128))])}}});export{ue as _};
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.