1import{A as t,b as e,s as a}from"./AppLayoutSlot-CDy4PvwS.js";import{s as r}from"./index-wD2Oix_-.js";import{k as o,l as s,p as l,q as i,t as n,v as c,B as u,A as d,C as m,D as p,E as f}from"./Void-B0Nbu-Zs.js";import{s as y}from"./index-B8Z5o32v.js";import"./app-D1-efC5L.js";/* empty css */import"./ApplicationLogo-B1fiEkaQ.js";/* empty css */const g={class:"la-wrapper"},h={class:"card"},v={class:"card-header"},j={key:0,class:"text-blue-400 pl-2"},C={class:"card-body"},b={class:"list-none p-0 m-0"},D=["href"],k=o({components:{AppLayoutSlot:t,Editor:r,Button:y},inject:["Payload","Router"],data:()=>({panels:{title:""},filteredDocs:[]}),computed:{documents(){const{listDocsEnac:t}=this.Payload;return t.map(t=>{var e,a;const r=t.meta.find(t=>{var e;return"enac"===(null==(e=t.values)?void 0:e.label)});return{title:t.name,href:t.weburl,meta:t.meta,label:"enac",category:null==(a=null==(e=null==r?void 0:r.values)?void 0:e.category)?void 0:a.split("/")}})},category(){const t=this.documents.map(t=>t.category);return Array.from(new Set(t.map(JSON.stringify)),JSON.parse)},currentCategory(){return this.filteredDocs.length?this.filteredDocs[0].category.join("/"):null},remapMenu(){var t;return null==(t=this.Router)?void 0:t.map(t=>{if(t.label.toLowerCase().includes("document")){const r=e(this.category,t=>()=>{this.onClickVoice(t)},{leafOnlyCommand:!1,sortFn:a});return{...t,separator:!1,items:r}}return t})}},methods:{filterDocumentsByCategory(t){return this.documents.filter(e=>e.category.join("/")===t.join("/"))},filterVoiceByCategory(t){return this.category.filter(e=>e.join("/")===t.join("/"))},onClickVoice(t){0!=this.filterDocumentsByCategory(t).length&&(this.filteredDocs=this.filterDocumentsByCategory(t))}},mounted(){this.onClickVoice(this.category[0])}},[["render",function(t,e,a,r,o,y){const k=s("AppLayoutSlot");return l(),i(k,{routerLocal:y.remapMenu},{default:n(()=>[c("div",g,[c("div",h,[c("div",v,[e[0]||(e[0]=c("h2",null,"Documenti scaricabili ",-1)),y.currentCategory?(l(),u("h3",j," ("+d(y.currentCategory)+")",1)):m("",!0)]),c("div",C,[c("ul",b,[(l(!0),u(p,null,f(o.filteredDocs,t=>(l(),u("li",{class:"flex items-center gap-2 py-1",key:t},[e[1]||(e[1]=c("i",{class:"fa-regular fa-file text-slate-700"},null,-1)),c("a",{href:t.href,class:"text-gray-800 hover:underline text-lg capitalize",target:"_blank"},d(t.title),9,D),e[2]||(e[2]=c("i",{class:"fa-solid fa-link text-blue-500 aml-auto"},null,-1))]))),128))])])])])]),_:1},8,["routerLocal"])}]]);export{k 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.