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,q as h,t as g,w as _}from"./_plugin-vue_export-helper-9JxOV_6y.js";import{r as v}from"./vue-router-DunO2xT0.js";import"./router__product_manage-yF5jbuvB.js";import"./style-uQ45SeWa.js";import"./GxPagination-1gJXbpdv.js";import"./date-picker-EjBDsx_3.js";import"./GxDialog-D15Qks3A.js";import{n as y,t as b}from"./css-kczJbcfV.js";import"./css-C7OSowuz.js";/* empty css            */import{t as x}from"./GxNavTabs-BH_OWnLp.js";import{Qr as S,bt as C,si as w,xt as T,yr as E,yt as D}from"./stores-CQxCz3yU.js";/* empty css            *//* empty css             */import"./useStructurizedVersionDialog-0SS1SzGE.js";import"./validate-D8FPRL2x.js";/* empty css            */import"./request-D0ipHUJ7.js";import"./project-2XcXb7qo.js";import"./css-BV-4fLwt2.js";import"./API_Setting-Dvs4eHlj.js";import"./echarts-DfhiEwHl.js";/* empty css            *//* empty css            *//* empty css            */import"./Data_Table-CO0OwwxJ.js";/* empty css            *//* empty css            */import"./dist-fizESd4s.js";import"./enum-ET0qfRd1.js";import"./uiController-iH_iYkiu.js";/* empty css            *//* empty css            *//* empty css            *//* empty css            */import"./api-BrMGQ2HQ.js";import"./request-object-map-DeVhrGNd.js";import"./api-BXFZqqga.js";import"./dist-CzPA3L0H.js";import"./dist-wA8HUTa9.js";import"./dist-B3CIwgPS.js";import"./dist-CGCpNNkO.js";import"./view_base_options-B1nQ3fRa.js";import"./batchControllerManage-BCdGy0CY.js";import"./IntercomRoom-DmktrUKx.js";import{t as O}from"./ConfigTablePut-mYiukPoO.js";import"./EntityMockDataDialog-D-cGZIFr.js";import{n as k,t as A}from"./ConfigButtonAction-DH6lqkE9.js";var j={class:`interfacial h-full flex flex-row justify-stretch`},M={class:`dynamic-design-tabs w-full px-3`},N=g(i({__name:`index`,setup(i){D(),T();let g=C(),N=S(),P=o(()=>!!g.curController);o(()=>g.isDesignTableOperableColumn),m(o(()=>!P.value||w(g.curController&&g.curController.type)),e=>{!e&&F.value===`tab-child-controllers`&&(F.value=`tab-propertys`)}),o(()=>g.mode),o(()=>g.mode===`design`),o(()=>g.mode===`property`),s(!1);let F=s(`tab-propertys`);v(e=>{});let I=e=>{N.deleteDesignTab(e)},L=()=>{g.curController&&g.setController(null)},R=e=>{e&&e.key===`Escape`&&L()};h(()=>{document.addEventListener(`keyup`,R)}),r(()=>{document.removeEventListener(`keyup`,R)});let{y:z}=E(),B=o(()=>`calc(100vh - 112px)`);return(r,i)=>{let o=b,s=x,m=y;return c(),n(`div`,j,[t(`div`,{class:`interfacial-main flex-grow flex flex-col relative w-full px-2`,style:{},onClick:d(L,[`stop`])},[t(`div`,M,[e(s,{modelValue:p(N).activeDesignTabsValue,"onUpdate:modelValue":i[0]||=e=>p(N).activeDesignTabsValue=e,onTabRemove:I},{default:u(()=>[(c(!0),n(l,null,a(p(N).designOnlyTabList,(e,t)=>(c(),_(o,{key:e.formUUID,label:e.title,name:e.formUUID,itemHeaderStyle:`--tab-index: ${p(N).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(N).activeDesignTabsValue,"onUpdate:modelValue":i[1]||=e=>p(N).activeDesignTabsValue=e,type:`card`,class:`bg-white w-full hidden-header`},{default:u(()=>[(c(!0),n(l,null,a(p(N).designOnlyTabList,e=>(c(),_(o,{key:e.formUUID,label:e.title,name:e.formUUID},{default:u(()=>[(c(),_(k,{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(O,{visible:p(g).configTablePut.visible,"onUpdate:visible":i[2]||=e=>p(g).configTablePut.visible=e},null,8,[`visible`]),e(A,{visible:p(g).configButtonAction.visible,"onUpdate:visible":i[3]||=e=>p(g).configButtonAction.visible=e,isPopUp:p(g).configButtonAction.isPopUp},null,8,[`visible`,`isPopUp`])])}}}),[[`__scopeId`,`data-v-d8a24e50`]]);export{N as default};