1import{_ as e}from"./B0exljpa.js";import{b as t,s as r}from"./J_4nI4NO.js";import{s as a,e as s,w as o,p as i,S as l,c as u,k as m,u as p,o as n}from"#entry";import{e as d}from"./D-V1Yezh.js";import{u as c}from"./Bvdk-4nA.js";import"./CmiL7Ui0.js";import"./DcTfXxSp.js";import"./BCzZQlR_.js";import"./CXUWDbkB.js";import"./CvtR3bi2.js";import"./EJTCMi8-.js";const v={__name:"list",props:{where:{type:String,required:!1,default:""}},async setup(v){let j,y;a({title:"App | Liste des "+t.revendeurs});const f=s(null),w=s("");try{[j,y]=o(()=>d()),await j,y();const e=([j,y]=o(()=>i("token")),j=await j,y(),j),t=([j,y]=o(()=>i("csrf-token")),j=await j,y(),j),{data:r,error:a}=([j,y]=o(()=>c("/api/schema/revendeur",{server:!0,lazy:!1,headers:{Authorization:e?`Bearer ${e.value}`:"","X-CSRF-Token":t?t.value:""}},"$PeoelD3j9_")),j=await j,y(),j);a.value?l("/"):r.value.bigList?f.value=r.value:l("/")}catch(h){w.value=h.message}return[j,y]=o(()=>r.isroll(f.create.role)),j=await j,y(),(t,r)=>{const a=e;return n(),u("div",null,[m(a,{list:{model:p(f),modelType:p(f).bigList,route:"revendeur/list",click:"/revendeur",search:!1,footer:!1},action:[{template:"createList",inList:!1,type:{route:"revendeur/create",model:p(f).model,modelType:p(f).create}},{template:"edit",type:{route:"revendeur/edit",model:p(f)}},{template:"delete",type:{route:"revendeur/delete",model:p(f),redirect:""}}]},null,8,["list","action"])])}}};export{v 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.