import{A as e,C as t,E as n,J as r,M as i,Q as a,S as o,St as s,X as c,_ as l,dt as u,h as d,in as f,kt as p,lt as m,mn as h,q as g,t as _,w as v}from"./_plugin-vue_export-helper-C0lsYS1a.js";import{r as y}from"./vue-router-Bm5zhq9W.js";import"./router__product_manage-BRp5l5cw.js";import"./style-Bvb0L3Ww.js";import"./GxPagination-DaT0MOF0.js";import"./date-picker-D5PhQ0Eg.js";import"./GxDialog-DixGJxSz.js";import{n as b,t as x}from"./css-Dlj1uVAN.js";import"./css-CNIqhbiM.js";/* empty css            */import{t as S}from"./GxNavTabs-DW34XnRg.js";import{bt as C,hr as w,ni as T,qr as E,xt as D,yt as O}from"./stores-PVUTfPb_.js";/* empty css            *//* empty css            */import"./useStructurizedVersionDialog-ByTgs9AA.js";import"./validate-C3ezFD8l.js";/* empty css            */import"./request-B9wfR4zJ.js";import"./project-DmuW7_Il.js";import"./css-CssVcQ35.js";import"./echarts-7KHUkREE.js";/* empty css            *//* empty css            *//* empty css            */import"./Data_Table-D3M72EzC.js";/* empty css            *//* empty css            */import"./dist-vqWK4Cer.js";import"./enum-BDOokdVp.js";import"./uiController-CO3vK248.js";/* empty css            *//* empty css            *//* empty css            *//* empty css            */import"./api-6R2yRADk.js";import"./request-object-map-BbUK30jY.js";import"./api-C9iru3wz.js";import"./API_Setting-C0VuBTtS.js";import"./dist-DLb51VnU.js";import"./dist-bFkGdJab.js";import"./dist-ocZsTCMM.js";import"./dist-v9np1tFX.js";import"./view_base_options-c2kiHw0P.js";import"./batchControllerManage-P1qwUEDi.js";import"./IntercomRoom-BYwlMeSO.js";import{t as k}from"./ConfigTablePut-BPa0mmWA.js";import"./EntityMockDataDialog-C4mpUbUE.js";import{n as A,t as j}from"./ConfigButtonAction-6uG1GI4p.js";var M={class:`interfacial h-full flex flex-row justify-stretch`},N={class:`dynamic-design-tabs w-full px-3`},P=_(i({__name:`index`,setup(i){O(),D();let h=C(),_=E(),P=o(()=>!!h.curController);o(()=>h.isDesignTableOperableColumn),m(o(()=>!P.value||T(h.curController&&h.curController.type)),e=>{!e&&F.value===`tab-child-controllers`&&(F.value=`tab-propertys`)}),o(()=>h.mode),o(()=>h.mode===`design`),o(()=>h.mode===`property`),s(!1);let F=s(`tab-propertys`);y(e=>{});let I=e=>{_.deleteDesignTab(e)},L=()=>{h.curController&&h.setController(null)},R=e=>{e&&e.key===`Escape`&&L()};g(()=>{document.addEventListener(`keyup`,R)}),r(()=>{document.removeEventListener(`keyup`,R)});let{y:z}=w(),B=o(()=>`calc(100vh - 112px)`);return(r,i)=>{let o=x,s=S,m=b;return c(),n(`div`,M,[t(`div`,{class:`interfacial-main flex-grow flex flex-col relative w-full px-2`,style:{},onClick:d(L,[`stop`])},[t(`div`,N,[e(s,{modelValue:p(_).activeDesignTabsValue,"onUpdate:modelValue":i[0]||=e=>p(_).activeDesignTabsValue=e,onTabRemove:I},{default:u(()=>[(c(!0),n(l,null,a(p(_).designOnlyTabList,(e,t)=>(c(),v(o,{key:e.formUUID,label:e.title,name:e.formUUID,itemHeaderStyle:`--tab-index: ${p(_).designOnlyTabList.length-t}`},null,8,[`label`,`name`,`itemHeaderStyle`]))),128))]),_:1},8,[`modelValue`])]),t(`div`,{class:`flex-grow flex webkit-scrollbar overflow-y-auto z-10 adap-normal-shadow adap-lg-radius`,style:f({maxHeight:B.value})},[e(m,{modelValue:p(_).activeDesignTabsValue,"onUpdate:modelValue":i[1]||=e=>p(_).activeDesignTabsValue=e,type:`card`,class:`bg-white w-full hidden-header`},{default:u(()=>[(c(!0),n(l,null,a(p(_).designOnlyTabList,e=>(c(),v(o,{key:e.formUUID,label:e.title,name:e.formUUID},{default:u(()=>[(c(),v(A,{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)]),e(k,{visible:p(h).configTablePut.visible,"onUpdate:visible":i[2]||=e=>p(h).configTablePut.visible=e},null,8,[`visible`]),e(j,{visible:p(h).configButtonAction.visible,"onUpdate:visible":i[3]||=e=>p(h).configButtonAction.visible=e,isPopUp:p(h).configButtonAction.isPopUp},null,8,[`visible`,`isPopUp`])])}}}),[[`__scopeId`,`data-v-d8a24e50`]]);export{P as default};