import{u as V,c as k,h as S,e as B,j as I,_ as L}from"./index-design-C8wrC2s6.js";import{d as E,e as i,w as M,f as _,D as P,o as H,M as u,O as s,R as m,a4 as r,Y as p,V as g,af as y,u as t,X as d,a0 as O,_ as A}from"./vue-BQyCGvUQ.js";import{D as $,_ as N}from"./ConfigButtonAction.vue_vue_type_style_index_0_lang-D0fap1gc.js";import{o as R}from"./vue-router-3s92ZBQp.js";import{b as j}from"./vueuse-DpVqiu7V.js";import{_ as z}from"./ConfigTablePut.vue_vue_type_style_index_0_lang-B2xMkUWD.js";import{h as F,f as G}from"./element-plus-DXXGg0hD.js";import{i as W}from"./index-extra-daMDQDPa.js";import"./svg-icons-register-D2E0-Ytb.js";import"./pinia-vendor-Dca3jG8Z.js";import"./x2js-CcPE71Wh.js";import"./spark-md5-D1K1GNLF.js";import"./bpmn-js-vendor-CmbY3e_O.js";import"./element-plus/icons-vue-W2FFUolX.js";import"./feelin-BX8uiLPw.js";import"./tiny-svg-DwrM6wVX.js";import"./axios-Bz4la0P9.js";import"./echarts-Sg1_iEix.js";import"./dragula-CfHszRTf.js";import"./vuedraggable-DggeXcQm.js";import"./tui-image-editor-vendor-DBxMdFCh.js";import"./fabric-Cm_BIpEs.js";import"./qrcode-DgLtAz-0.js";import"./dataTypeTools-C_Yz7Wm5.js";import"./IntercomRoom-BIowDLdp.js";import"./EntityFieldDialog-BtmhgsFV.js";const X={class:"interfacial h-full flex flex-row justify-stretch"},Y={class:"dynamic-design-tabs w-full px-3"},q=E({__name:"index",setup(J){V(),k();const o=S(),a=B(),x=i(()=>!!o.curController);i(()=>o.isDesignTableOperableColumn);const U=i(()=>!x.value||W(o.curController&&o.curController.type));M(U,l=>{!l&&c.value==="tab-child-controllers"&&(c.value="tab-propertys")}),i(()=>o.mode),i(()=>o.mode==="design"),i(()=>o.mode==="property"),_(!1);const c=_("tab-propertys");R(l=>{});const w=l=>{a.deleteDesignTab(l)},f=()=>{o.curController&&o.setController(null)},b=l=>{l&&l.key==="Escape"&&f()};P(()=>{document.addEventListener("keyup",b)}),H(()=>{document.removeEventListener("keyup",b)});const{y:K}=j(),D=i(()=>"calc(100vh - 112px)");return(l,n)=>{const v=F,T=I,C=G;return s(),u("div",X,[m("div",{class:"interfacial-main flex-grow flex flex-col relative w-full px-2",style:{},onClick:A(f,["stop"])},[m("div",Y,[r(T,{modelValue:t(a).activeDesignTabsValue,"onUpdate:modelValue":n[0]||(n[0]=e=>t(a).activeDesignTabsValue=e),onTabRemove:w},{default:p(()=>[(s(!0),u(g,null,y(t(a).designOnlyTabList,(e,h)=>(s(),d(v,{key:e.formUUID,label:e.title,name:e.formUUID,itemHeaderStyle:`--tab-index: ${t(a).designOnlyTabList.length-h}`},null,8,["label","name","itemHeaderStyle"]))),128))]),_:1},8,["modelValue"])]),m("div",{class:"flex-grow flex webkit-scrollbar overflow-y-auto z-10 adap-normal-shadow adap-lg-radius",style:O({maxHeight:D.value})},[r(C,{modelValue:t(a).activeDesignTabsValue,"onUpdate:modelValue":n[1]||(n[1]=e=>t(a).activeDesignTabsValue=e),type:"card",class:"bg-white w-full hidden-header"},{default:p(()=>[(s(!0),u(g,null,y(t(a).designOnlyTabList,e=>(s(),d(v,{key:e.formUUID,label:e.title,name:e.formUUID},{default:p(()=>[(s(),d($,{key:e.formUUID,"form-uuid":e.formUUID,arg:e.arg,"bind-function":e.function,title:e.title},null,8,["form-uuid","arg","bind-function","title"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])],4)]),r(z,{visible:t(o).configTablePut.visible,"onUpdate:visible":n[2]||(n[2]=e=>t(o).configTablePut.visible=e)},null,8,["visible"]),r(N,{visible:t(o).configButtonAction.visible,"onUpdate:visible":n[3]||(n[3]=e=>t(o).configButtonAction.visible=e),isPopUp:t(o).configButtonAction.isPopUp},null,8,["visible","isPopUp"])])}}}),Te=L(q,[["__scopeId","data-v-d8a24e50"]]);export{Te as default};
