import{q as p,B as l,C as f,aD as _,r as d,o as v,n as h,L as c,M as u,p as w,t as i}from"./index.7a111e62.js";import k from"./action-table.63589583.js";import C from"./edit-dialog.aae265c5.js";import"./columns.ca89d5e9.js";import"./index.12338420.js";import"./index.3ac3c8f0.js";import"./hooks.f4063c52.js";import"./responseHandle.6edfaed2.js";import"./status.8b8d6c88.js";const R={class:"main"},x={class:"flex"},D=p({__name:"index",setup(A){const a=l(null),m=l(null),e=l([]);function s(o,n,r){m.value.show(o,n,r)}return f(()=>{e.value=_().getMenuActions("menuOperator"),e.value.some(o=>o=="001")&&a.value.onSearch()}),(o,n)=>{const r=d("NoAuth");return v(),h("div",R,[c(w("div",x,[i(k,{ref_key:"actionTableRef",ref:a,powers:e.value,onEdit:s,onCreate:s,onView:s},null,8,["powers"]),i(C,{ref_key:"modelRef",ref:m,onReload:n[0]||(n[0]=t=>a.value.onSearch())},null,512)],512),[[u,e.value.some(t=>t=="001")]]),c(i(r,null,null,512),[[u,!e.value.some(t=>t=="001")]])])}}});export{D as default};
