import{k as u}from"./index.D93ign_E.js";import{G as d,c as f}from"./crud.BKT5Vz-n.js";import{h as m}from"./columnPermission.DJPRmQCM.js";import{a as r,q as _,aj as s,J as l,o as h,K as C,S as g,H as k,u as x}from"./vue.D1BjjNmv.js";const O=r({name:"areas"}),j=r({...O,setup(R){const{crudBinding:n,crudRef:t,crudExpose:o,crudOptions:a,resetCrudOptions:c}=u({createCrudOptions:f});return _(async()=>{try{const e=await m(d,a);c(e),o.doRefresh()}catch(e){console.error("Failed to get permissions:",e),o.doRefresh()}}),(e,w)=>{const p=s("fs-crud"),i=s("fs-page");return h(),l(i,null,{default:C(()=>[g(p,k({ref_key:"crudRef",ref:t},x(n)),null,16)]),_:1})}}});export{j as default};
