const s=a=>a.map(e=>`<li><span aria-hidden="true" tabindex="-1" class="fa fa-solid ${e.icon}"></span><a href="${e.href}" class="inail-text-link-1 m-0">${e.label}</a></li>`).join(`
`),r=a=>a.map(e=>`<li class="p-0"><span class="sidebarLinks"><a href="${e.href}">${e.label}</a></span></li>`).join(`
`),o=(a,e)=>e.map((i,n)=>i.child&&i.child.length>0?`<li ${i.active?'class="selected"':""}>
        <button class="inail-menu-container" data-toggle="collapse" data-target="#${a}-item-${n}" aria-expanded="${i.open?"true":"false"}"">
            <span class="inail-menu-level-1">${i.label}</span>
            <span class="btn btn-link sub-tree-toggle"></span>
        </button>
        <ul class="livello_2 inail-menu-level-2 collapse ${i.open?"in":""}" id="${a}-item-${n}" role="list">

        ${i.child.map(l=>`<li ${l.active?'class="selected"':""}>
                <div class="inail-menu-container">
                    <a href="${l.href}">${l.label}</a>
                </div>
            </li>`).join(`
`)}

        </ul>
      </li>`:`<li>
        <div class="inail-menu-container">
            <a class="livello_1 inail-menu-level-1" href="${i.href}">${i.label}</a>
        </div>
      </li>`).join(`
`);function t(a,e,i,n,l){return`<nav aria-label="Menù dell'applicativo" id="menu-applicativo">
    <div class="col-xs-12 m-0 p-0">
    <button id="trigger-slider-menu" class="pull-left" aria-expanded="false"
        aria-controls="navigazionesecondaria">
        <span class="inail-responsive-menu-icon fa fa-2x fa-bars active"></span>
        <span class="inail-responsive-menu-icon fa fa-2x fa-times"></span>
    </button>
</div>
<div class="row">
    <div id="navigazionesecondaria" class="col-xs-12 col-sm-4 col-lg-3 slider-menu filtro">
        <div class="box-menu-contestuale servizi-online-primo-livello">
            <div role="group" id="sidebar-superiore" aria-label="Voci del menu">
                <ul role="list" class="inail-menu-divider">
                    ${o("first-menu",i)}
                </ul>
            </div>
            <div role="group"  aria-label="Utilizzo dell'applicativo" class="inail-sezione-media">
            <ul class="fa-ul miniMenuIcon pl-0" role="list">
                    ${s(e)}
                </ul>
                </div>
            <div role="group" id="sidebar-inferiore" aria-labelledby="sezione-inferiore">
                <div id="sezione-inferiore" class="pb-4 inail-mat-sezione-inferiore-title">${n}</div>
                <ul role="list">
                    ${r(l)}
                </ul>
            </div>
    </div>
</div>
</nav>

<main id="contenutoPrincipale"></main>`}function d(a,e,i,n,l){return`
    <div id="menu-applicativo">
   <div class="row">
  <div class="col-xs-12 p-0 inail-intranet-menu-container">
    <button id="inail-intranet-toggle-btn" class="inail-intranet-menu-toggle-btn me-2"
            aria-expanded="false"
            aria-label="Apri il menu dell'applicativo">
      <span class="inail-intranet-icon fa fa-bars active" aria-hidden="true"></span>
      <span class="inail-intranet-icon fa fa-times" aria-hidden="true"></span>
    </button>
  </div>
</div>

<div class="row">
 <nav aria-label="Menù dell'applicativo" id="inail-intranet-aside-menu" class="p-0 col-md-3 col-lg-3 col-sm-5 col-xs-9 hidden">
    <div id="navigazionesecondaria"  class="col-xs-12 col-sm-12 col-lg-12 col-md-12 filtro">
        <div class="box-menu-contestuale servizi-online-primo-livello">
            <div role="group" id="sidebar-superiore" aria-label="Voci del menu">
                <ul role="list" class="inail-menu-divider">
                    ${o("first-menu",i)}
                </ul>
            </div>
            <div role="group"  aria-label="Utilizzo dell'applicativo" class="inail-sezione-media">
            <ul class="fa-ul miniMenuIcon pl-0" role="list">
                    ${s(e)}
                </ul>
                </div>
            <div role="group" id="sidebar-inferiore" aria-labelledby="sezione-inferiore">
                <div id="sezione-inferiore" class="pb-4 inail-mat-sezione-inferiore-title">${n}</div>
                <ul role="list">
                    ${r(l)}
                </ul>
            </div>
        </div>
    </div>
 </nav>
  

  <div id="inail-intranet-main-menu" class="p-0 col-md-12 col-lg-12">
    <main id="contenutoPrincipale" class="p-0">
    </main>
  </div>
</div>
</div>
   `}export{t as a,d as c};
