"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("vuedraggable");require("../../../../config-provider/index.js");require("./item.vue.js");const s=require("../../../../config-provider/hooks/use-namespace.js"),n=require("./item.vue2.js"),c=e.defineComponent({__name:"index",props:{value:{},"onUpdate:value":{type:Function}},setup(t){const{b:o,is:r}=s.useNamespace("ap-column-setting-sortable-item"),a=e.ref(!1);return(d,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o)())},[e.createVNode(n.default,{open:a.value,"onUpdate:open":u[0]||(u[0]=l=>a.value=l),value:t.value},null,8,["open","value"]),t.value.children?.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r)("hidden",a.value))},[e.createVNode(e.unref(i),{modelValue:t.value.children,"onUpdate:modelValue":u[1]||(u[1]=l=>t.value.children=l),"item-key":"key"},{item:e.withCtx(({element:l})=>[l.show?(e.openBlock(),e.createBlock(n.default,{key:0,value:l,level:2},null,8,["value"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])],2)):e.createCommentVNode("",!0)],2))}});exports.default=c;
