"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("@aplus-frontend/antdv"),p=require("../../../context.js");require("../select-group/index.vue.js");const _=require("../utils.js"),g=require("../select-group/index.vue2.js"),C={key:0},m=e.defineComponent({__name:"index",props:{value:{}},setup(l){const c=l,{columnsBackup:d,renderConfig:s}=p.useInjectApTable(),i=e.computed(()=>[...e.unref(d)||[]].sort((t,n)=>t.children?.length&&!n.children?.length?1:!t.children?.length&&n.children?.length?-1:0));function a(r){return c.value.find(t=>t.key===r.key)}function k(r){const t=a(r);return{checked:t?.show,disabled:t?.disabled}}function f(r,t){const o=c.value?.find(h=>h.key===r);o&&(o.show=t)}return(r,t)=>l.value?.length?(e.openBlock(),e.createElementBlock("div",C,[e.createVNode(e.unref(u.Row),{gutter:[24,12]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,n=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:n.key},[n.children?.length?(e.openBlock(),e.createBlock(e.unref(u.Col),{key:1,span:24},{default:e.withCtx(()=>[e.createVNode(g.default,{value:a(n)},null,8,["value"])]),_:2},1024)):(e.openBlock(),e.createBlock(e.unref(u.Col),{key:0,span:12},{default:e.withCtx(()=>[e.createVNode(e.unref(u.Checkbox),e.mergeProps({ref_for:!0},k(n),{"onUpdate:checked":o=>f(n.key,o)}),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(_.getLabelNode)(n,e.unref(s)))))]),_:2},1040,["onUpdate:checked"])]),_:2},1024))],64))),128))]),_:1})])):e.createCommentVNode("",!0)}});exports.default=m;
