1import{d as p,g as o,i as n,t as c,e as h,u as y,l,j as w,w as b,S as g,c as x,f as i,F as D,D as k,b as C}from"./CvG0wzej.js";import{_ as A}from"./BdMn5CsR.js";import{u as N}from"./xHuMECYt.js";import{e as M}from"./CSSxz1HG.js";const B={class:"community-mobile-nav-item"},F={class:"community-mobile-nav-item__wrap"},T=["href","aria-expanded"],j={class:"copy community-mobile-nav-item__text"},E=["aria-hidden"],I=["tabindex","href"],R=p({__name:"CommunityMobileMenuItem",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},isDropdownActive:{type:Boolean,default:!1}},emits:["eventToggleDropdown"],setup(e,{emit:d}){const t=e,u=d,a=C([]),{focusFirstNavItem:f}=N();let m=M().public.PACKAGE_NAME;const _=s=>{t.item.children.length>0&&(s.preventDefault(),u("eventToggleDropdown",t.index),t.isDropdownActive||setTimeout(()=>{f(a.value[0],".community-mobile-nav-item__dropdown-item-link",0)},100))},v=x(()=>{if(t.isDropdownActive)return m=="asl"?"angleUp":"chevronDown";if(!t.isDropdownActive)return m=="asl"?"angleDown":"chevronUp"});return(s,V)=>(i(),o("li",B,[n("div",{onClick:_,class:"community-mobile-nav-item__outer-wrap"},[n("div",F,[n("a",{href:e.item.link,"aria-expanded":e.isDropdownActive,class:"community-mobile-nav-item__link"},[n("span",j,c(e.item.text),1)],8,T),e.item.children&&e.item.children.length>0?(i(),h(A,{key:0,icon:y(v),iconColor:"text",iconSize:"xsmall",extraClass:"community-mobile-nav-item__icon"},null,8,["icon"])):l("",!0)])]),w(g,{name:"animFade"},{default:b(()=>[e.isDropdownActive?(i(),o("ul",{key:0,"aria-hidden":e.isDropdownActive,class:"community-mobile-nav-item__dropdown"},[(i(!0),o(D,null,k(e.item.children,(r,O)=>(i(),o("li",{class:"community-mobile-nav-item__dropdown-item",ref_for:!0,ref_key:"linkRefs",ref:a},[n("a",{tabindex:e.isDropdownActive?"0":"-1",class:"community-mobile-nav-item__dropdown-item-link copy",href:r.link},c(r.text),9,I)],512))),256))],8,E)):l("",!0)]),_:1})]))}}),L=Object.assign(R,{__name:"CommunityMobileMenuItem"});export{L as default};
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.