import{k as C}from"./index.CL7yl-Wb.js";import{G as b,a as k,c as x}from"./crud.lZJv0th1.js";import{h as g}from"./columnPermission.Dp34cz6S.js";import y from"./jobIndex.8rHJHrFw.js";import{a as d,r,q as B,aj as c,J,o as O,K as P,b as s,S as i,H as R,u as T}from"./vue.D1BjjNmv.js";import{_ as w}from"./_plugin-vue_export-helper.DlAUqK2U.js";const G={class:"job-competency-container"},I={class:"sidebar"},j={class:"tree-container"},D={class:"content"},N=d({name:"areas"}),S=d({...N,setup(V){const{crudBinding:_,crudRef:l,crudExpose:o,crudOptions:m,resetCrudOptions:p}=C({createCrudOptions:x}),t=r([]),a=r(""),u=()=>{k({}).then(e=>{t.value=e.data})},f=e=>{a.value=(e==null?void 0:e.id)||"";const n={form:{position_id:a.value}};o.doSearch(n)};return B(async()=>{try{u();const e=await g(b,m);p(e),o.doRefresh()}catch(e){console.error("Failed to get permissions:",e),o.doRefresh()}}),(e,n)=>{const h=c("fs-crud"),v=c("fs-page");return O(),J(v,null,{default:P(()=>[s("div",G,[s("div",I,[s("div",j,[i(y,{"tree-data":t.value,onTreeClick:f},null,8,["tree-data"])])]),s("div",D,[i(h,R({ref_key:"crudRef",ref:l},T(_)),null,16)])])]),_:1})}}}),M=w(S,[["__scopeId","data-v-d50253b7"]]);export{M as default};
