import{C as e,K as t,S as n,St as r,T as i,Y as a,Z as o,ct as s,dt as c,g as l,in as u,j as d,k as f,kt as p,m,q as h,x as g}from"./vue.runtime.esm-bundler-DpGzKKN4.js";import{r as _}from"./vue-router-BU7Z_qXI.js";import"./GxPagination-DOexUzbO.js";import{n as v,t as y}from"./css--CcZutYI.js";import{t as b}from"./_plugin-vue_export-helper-CnS4QQza.js";import{t as x}from"./GxNavTabs-Dcif0C65.js";import{Hi as S,bt as C,na as w,xt as T,yt as E}from"./stores-BWYw2E2w.js";import{a as D}from"./vuedraggable.umd-DdgzD11m.js";import"./css-AklKJXcX.js";import{t as O}from"./ConfigTablePut-B5OCh-uU.js";import{n as k,t as A}from"./ConfigButtonAction-JW2NJDHk.js";var j={class:`interfacial h-full flex flex-row justify-stretch`},M={class:`dynamic-design-tabs w-full px-3`},N=b(d({__name:`index`,setup(d){E(),T();let b=C(),N=S(),P=g(()=>!!b.curController);g(()=>b.isDesignTableOperableColumn),s(g(()=>!P.value||w(b.curController&&b.curController.type)),e=>{!e&&F.value===`tab-child-controllers`&&(F.value=`tab-propertys`)}),g(()=>b.mode),g(()=>b.mode===`design`),g(()=>b.mode===`property`),r(!1);let F=r(`tab-propertys`);_(e=>{});let I=e=>{N.deleteDesignTab(e)},L=()=>{b.curController&&b.setController(null)},R=e=>{e&&e.key===`Escape`&&L()};t(()=>{document.addEventListener(`keyup`,R)}),h(()=>{document.removeEventListener(`keyup`,R)});let{y:z}=D(),B=g(()=>`calc(100vh - 112px)`);return(t,r)=>{let s=y,d=x,h=v;return a(),i(`div`,j,[n(`div`,{class:`interfacial-main flex-grow flex flex-col relative w-full px-2`,style:{},onClick:m(L,[`stop`])},[n(`div`,M,[f(d,{modelValue:p(N).activeDesignTabsValue,"onUpdate:modelValue":r[0]||=e=>p(N).activeDesignTabsValue=e,onTabRemove:I},{default:c(()=>[(a(!0),i(l,null,o(p(N).designOnlyTabList,(t,n)=>(a(),e(s,{key:t.formUUID,label:t.title,name:t.formUUID,itemHeaderStyle:`--tab-index: ${p(N).designOnlyTabList.length-n}`},null,8,[`label`,`name`,`itemHeaderStyle`]))),128))]),_:1},8,[`modelValue`])]),n(`div`,{class:`flex-grow flex webkit-scrollbar overflow-y-auto z-10 adap-normal-shadow adap-lg-radius`,style:u({maxHeight:B.value})},[f(h,{modelValue:p(N).activeDesignTabsValue,"onUpdate:modelValue":r[1]||=e=>p(N).activeDesignTabsValue=e,type:`card`,class:`bg-white w-full hidden-header`},{default:c(()=>[(a(!0),i(l,null,o(p(N).designOnlyTabList,t=>(a(),e(s,{key:t.formUUID,label:t.title,name:t.formUUID},{default:c(()=>[(a(),e(k,{key:t.formUUID,"form-uuid":t.formUUID,arg:t.arg,"bind-function":t.function,title:t.title},null,8,[`form-uuid`,`arg`,`bind-function`,`title`]))]),_:2},1032,[`label`,`name`]))),128))]),_:1},8,[`modelValue`])],4)]),f(O,{visible:p(b).configTablePut.visible,"onUpdate:visible":r[2]||=e=>p(b).configTablePut.visible=e},null,8,[`visible`]),f(A,{visible:p(b).configButtonAction.visible,"onUpdate:visible":r[3]||=e=>p(b).configButtonAction.visible=e,isPopUp:p(b).configButtonAction.isPopUp},null,8,[`visible`,`isPopUp`])])}}}),[[`__scopeId`,`data-v-d8a24e50`]]);export{N as default};