1import{_ as g,n as p,D as f}from"./app.DSH2eKXC.js";import{l as u,v as t,W as l,R as x,X as _,p as w,B as b,V as v,P as n,k as A}from"./vendor.CBqVtJq2.js";import"./clickoutside.CCXwiWtv.js";import"./tiptap.xC4Czy_z.js";import"./editorjs.C0gvdS4B.js";const V={data(){return{language:"it",data:{},order:"last_edit_at-desc",search:"",pagination:{},first:!0,page:1,count:10}},computed:{...v(["getAdminFilters","getUser"])},components:{DropDown:f,Table:p},methods:{doSearch(){this.get(1)},changePage(i){this.get(i)},async get(i=null){try{let e={language:this.language,count:10,search:this.search,order:this.order};i?e.page=i:e.page=this.page,this.$store.commit("setAdminFilters",e);const a=await axios.post(this.apiURL("/admin/get-admin-sie"),e);this.data=a.data.data,this.pagination=a.data.pagination,this.first=!1}catch{}},async remove(i,e=null){try{let a={id:i};const c=await axios.post(this.apiURL("/admin/remove-admin-sie"),a);this.get()}catch{}}},beforeMount(){this.getAdminFilters&&(this.search=this.getAdminFilters.search,this.page=this.getAdminFilters.page,this.getAdminFilters.order&&(this.order=this.getAdminFilters.order)),this.get()},watch:{order:{handler(i,e){this.first||this.get(1)},deep:!0}}},C={class:"flex flex-col w-full gap-5"},D=t("div",{class:"flex flex-col gap-2"},[t("p",{class:"t-black text-3xl leading-tight font-semibold"},"CATEGORIE ORG."),t("p",{class:"t-grey text-xl leading-normal font-normal"},"Qui puoi gestire gli accessi e le funzionalità delle categorie di organizzazioni")],-1),y={class:"flex flex-row gap-4"},k=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},[t("path",{d:"M19.5 13H13.5V19H11.5V13H5.5V11H11.5V5H13.5V11H19.5V13Z",fill:"white"})],-1),R={class:"flex flex-row items-end gap-4 justify-between"},z={class:"flex flex-col gap-1 w-full"},F=t("label",{class:"t-grey-light-2 text-base font-semibold uppercase"},"CERCA",-1),S={class:"search-input flex flex-col justify-end w-full gap-1",style:{"max-width":"100%"}},U=t("img",{src:"/images/icons/search.svg",width:"24",height:"24",alt:"search icon"},null,-1);function H(i,e,a,c,s,r){const d=n("router-link"),m=n("DropDown"),h=n("Table");return A(),u("div",C,[D,t("div",y,[l(d,{to:i.localizedRoute("/admin/sie/new"),class:"btn-filled xs black flex flex-row text-center items-center w-max text-base font-semibold h-14"},{default:x(()=>[k,_(" Aggiungi nuovo ")]),_:1},8,["to"])]),t("div",R,[t("div",z,[F,t("div",S,[w(t("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>s.search=o),type:"text",placeholder:"Ricerca",class:"min-h-14 search"},null,512),[[b,s.search]]),U])]),t("button",{onClick:e[1]||(e[1]=(...o)=>r.doSearch&&r.doSearch(...o)),class:"btn-filled xs black flex flex-row items-center w-max max-w-24 text-base font-semibold h-14 uppercase"}," CERCA ")]),l(m,{modelValue:s.order,"onUpdate:modelValue":e[2]||(e[2]=o=>s.order=o),placeholder:"Ordina per",variant:"onboarding",preselect:!1,preSelectedId:s.order,items:[{id:"created_at-asc",title:"Creato il Crescente"},{id:"created_at-desc",title:"Creato il Decrescente"},{id:"last_edit_at-asc",title:"Ultima modifica Crescente"},{id:"last_edit_at-desc",title:"Ultima modifica Decrescente"},{id:"editor-asc",title:"Autore ultima modifica Crescente"},{id:"editor-desc",title:"Autore ultima modifica Decrescente"},{id:"creator-asc",title:"Autore creazione Crescente"},{id:"creator-desc",title:"Autore creazione Decrescente"}],returnKey:"id"},null,8,["modelValue","preSelectedId"]),l(h,{type:"Sie",actions:["update","remove"],items:s.data,pagination:s.pagination,changePage:r.changePage,modalAction:r.remove},null,8,["items","pagination","changePage","modalAction"])])}const I=g(V,[["render",H]]);export{I 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.