import{_ as D,u as $,T as B,d as I,e as P}from"./index-share-B6-9kT2P.js";import{f as _,h as A}from"./element-plus-BbvtkfL8.js";import{X as c,O as l,Y as d,P as L,Q as E,d as M,e as r,w as H,f as T,D as O,o as N,M as f,R as b,a4 as u,V as h,af as w,u as o,a0 as R,_ as z}from"./vue-CrDyBScg.js";import{D as F,_ as G,a as j}from"./ConfigButtonAction.vue_vue_type_style_index_0_lang-DS7r4l1r.js";import{o as Q}from"./vue-router-CDV152up.js";import{a as W}from"./vueuse-NhOBqbZl.js";import{i as X}from"./index-extra-Bcl4kwXC.js";import"./svg-icons-register-D2E0-Ytb.js";import"./pinia-vendor-C5ybfmFP.js";import"./x2js-CcPE71Wh.js";import"./spark-md5-D1K1GNLF.js";import"./bpmn-js-vendor-Bd_1XxTD.js";import"./element-plus/icons-vue-vfyt3uzf.js";import"./feelin-UGyKEr6I.js";import"./tiny-svg-DwrM6wVX.js";import"./axios-Bz4la0P9.js";import"./echarts-Sg1_iEix.js";import"./dragula-Be-__dyI.js";import"./vuedraggable-D1AhDi8L.js";import"./tui-image-editor-vendor-DBxMdFCh.js";import"./fabric-CQUnJ-mJ.js";import"./IntercomRoom-DvhPthCC.js";import"./EntityFieldDialog-8-XsI-EC.js";import"./dataTypeTools-C_Yz7Wm5.js";const Y={name:"GxNavTabs",components:{ElTabs:_},inheritAttrs:!1,computed:{tabsAttrs(){return{...this.$attrs,type:"card",closable:!0}}}};function q(p,t,a,v,g,i){const m=_;return l(),c(m,E(i.tabsAttrs,{class:"gx-nav-tabs"}),{default:d(()=>[L(p.$slots,"default",{},void 0,!0)]),_:3},16)}const J=D(Y,[["render",q],["__scopeId","data-v-98e694a1"]]),K={class:"interfacial h-full flex flex-row justify-stretch"},Z={class:"dynamic-design-tabs w-full px-3"},ee=M({__name:"index",setup(p){$(),B();const t=I(),a=P(),v=r(()=>!!t.curController);r(()=>t.isDesignTableOperableColumn);const g=r(()=>!v.value||X(t.curController&&t.curController.type));H(g,s=>{!s&&i.value==="tab-child-controllers"&&(i.value="tab-propertys")}),r(()=>t.mode),r(()=>t.mode==="design"),r(()=>t.mode==="property"),T(!1);const i=T("tab-propertys");Q(s=>{});const m=s=>{a.deleteDesignTab(s)},y=()=>{t.curController&&t.setController(null)},x=s=>{s&&s.key==="Escape"&&y()};O(()=>{document.addEventListener("keyup",x)}),N(()=>{document.removeEventListener("keyup",x)});const{y:te}=W(),C=r(()=>"calc(100vh - 112px)");return(s,n)=>{const U=A,V=J,k=_;return l(),f("div",K,[b("div",{class:"interfacial-main flex-grow flex flex-col relative w-full px-2",style:{},onClick:z(y,["stop"])},[b("div",Z,[u(V,{modelValue:o(a).activeDesignTabsValue,"onUpdate:modelValue":n[0]||(n[0]=e=>o(a).activeDesignTabsValue=e),onTabRemove:m},{default:d(()=>[(l(!0),f(h,null,w(o(a).designOnlyTabList,(e,S)=>(l(),c(U,{key:e.formUUID,label:e.title,name:e.formUUID,itemHeaderStyle:`--tab-index: ${o(a).designOnlyTabList.length-S}`},null,8,["label","name","itemHeaderStyle"]))),128))]),_:1},8,["modelValue"])]),b("div",{class:"flex-grow flex webkit-scrollbar overflow-y-auto z-10 adap-normal-shadow adap-lg-radius",style:R({maxHeight:C.value})},[u(k,{modelValue:o(a).activeDesignTabsValue,"onUpdate:modelValue":n[1]||(n[1]=e=>o(a).activeDesignTabsValue=e),type:"card",class:"bg-white w-full hidden-header"},{default:d(()=>[(l(!0),f(h,null,w(o(a).designOnlyTabList,e=>(l(),c(U,{key:e.formUUID,label:e.title,name:e.formUUID},{default:d(()=>[(l(),c(F,{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)]),u(G,{visible:o(t).configTablePut.visible,"onUpdate:visible":n[2]||(n[2]=e=>o(t).configTablePut.visible=e)},null,8,["visible"]),u(j,{visible:o(t).configButtonAction.visible,"onUpdate:visible":n[3]||(n[3]=e=>o(t).configButtonAction.visible=e),isPopUp:o(t).configButtonAction.isPopUp},null,8,["visible","isPopUp"])])}}}),Ce=D(ee,[["__scopeId","data-v-d8a24e50"]]);export{Ce as default};
