1import{b as e,c as a}from"./J_4nI4NO.js";import{_ as t}from"./CV9Af5t_.js";import{_ as s}from"./DX6unkFz.js";import{_ as o}from"./B0exljpa.js";import{e as r,w as m,p as l,S as i,s as p,c as n,k as c,B as u,u as d,U as g,o as f,h as j}from"#entry";import{e as v}from"./D-V1Yezh.js";import{u as y}from"./Bvdk-4nA.js";import"./BCzZQlR_.js";import"./CXUWDbkB.js";import"./CvtR3bi2.js";import"./CmiL7Ui0.js";import"./DcTfXxSp.js";import"./EJTCMi8-.js";const _={__name:"index",async setup(_){let h,k;const w=r(!1),B=r(null),L=r("");try{[h,k]=m(()=>v()),await h,k();const e=([h,k]=m(()=>l("token")),h=await h,k(),h),a=([h,k]=m(()=>l("csrf-token")),h=await h,k(),h),{data:t,error:s}=([h,k]=m(()=>y("/api/adm/schema/campagne",{server:!0,lazy:!1,headers:{Authorization:e?`Bearer ${e.value}`:"","X-CSRF-Token":a?a.value:""}},"$mz0naTsQf-")),h=await h,k(),h);s.value?i("/"):t.value.bigList?B.value=t.value:i("/")}catch(T){L.value=T.message}return p({title:"App | Liste des "+e.campagnes}),(r,m)=>{const l=a,i=t,p=s,v=o;return f(),n("div",null,[c(p,{title:"Liste des campagnes"},{default:u(()=>[c(i,null,{default:u(()=>[c(l,{option:{template:"createBig",tip:d(e).createcampagne,title:d(e).createcampagne},onClick:m[0]||(m[0]=j(e=>w.value=!0,["stop"]))},null,8,["option"])]),_:1})]),_:1}),c(v,{createopen:d(w),"onUpdate:createopen":m[1]||(m[1]=e=>g(w)?w.value=e:null),list:{model:d(B),modelType:d(B).bigList,route:"adm/campagne/list"},action:[{template:"create",type:{route:"adm/campagne/create",model:d(B).model}},{template:"edit",type:{route:"adm/campagne/edit",model:d(B)}},{template:"delete",type:{route:"adm/campagne/delete",model:d(B),redirect:""}}]},null,8,["createopen","list","action"])])}}};export{_ 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.