import{$ as e,C as t,S as n,St as r,T as i,X as a,Y as o,f as s,ft as c,in as l,j as u,k as d,kt as f,lt as p,nn as m,w as h,x as g}from"./vue.runtime.esm-bundler-DpGzKKN4.js";import{a as _,i as v}from"./vue-router-BU7Z_qXI.js";import"./GxPagination-DOexUzbO.js";import{t as y}from"./button-CHjzS7b0.js";import{t as b}from"./directive-9SA1IQHd.js";import{t as x}from"./_plugin-vue_export-helper-CnS4QQza.js";import{a as S,o as C}from"./GxDialog-BUqY5Fq3.js";import{Hi as w,Vi as T,xt as E,yt as D}from"./stores-BWYw2E2w.js";import"./css-CW_FwBqc2.js";import"./css-DunA3L7q.js";import{t as O}from"./DesignMainLayoutHeader-jgtAiCRl.js";import{t as k}from"./XmlTestFloatingPanel-CTKsCOMP.js";import{t as A}from"./LeftMenuDraggable-BlgmxFc6.js";var j={id:`design-main-panel-wrap`,class:`w-full request-prototyping-design flex-grow flex flex-row overflow-hidden select-none`},M={class:`flex-grow flex flex-col`},N={class:`flex-grow flex flex-row`},P={class:`absolute w-2 h-full left-full top-0`},F={class:`absolute top-1/2 -translate-y-1/2 z-10 -left-2 hover:left-0 rounded-r-xl overflow-hidden bg-slate-200/80 hover:shadow-md`,style:{transition:`left .2s`,background:`var(--adap-blue-primary)`}},I={class:`content-deatail flex-grow`},L=x(u({__name:`index`,setup(u){let x=D(),L=E();T();let R=w(),z=g(()=>x.localIdentifyAndRoleInfo?.mainFormId),B=r(!0),V=g(()=>`calc(100% - ${B.value?`208`:`0`}px)`);a(`menuExpandStatus`,B),g(()=>L.curFunction),_();let H=v(),U=g(()=>{let e=H.name,t=R.activeDesignTabItem;return e&&typeof e==`string`&&/request-prototyping-(design|preview)_single/.test(e)?!0:t?!!t.isSinglePage:!1}),W={"request-prototyping-design_interfacial":``,"request-prototyping-design_subfunction":``,"request-prototyping-design_data":``,"request-prototyping-design_rule":``,"request-prototyping-design_version":``},G=r(``);p(()=>{if(H.name===`request-prototyping-design`)return;let e=H&&H.matched[2],t=e&&e.name;console.log(`request-prototyping-design tab name: `,t),t&&Object.prototype.hasOwnProperty.call(W,t)&&(G.value=t)});let K=g(()=>H.query.xmlTestMode===`true`&&!x.isApplyProd);return a(`isPreviewForm`,g(()=>x.isPreviewForm)),(r,a)=>{let u=y,p=e(`RouterView`),g=b;return o(),i(`div`,j,[n(`div`,M,[U.value?h(``,!0):(o(),t(O,{"root-panel-form-uuid":z.value,key:z.value},null,8,[`root-panel-form-uuid`])),n(`div`,N,[U.value?h(``,!0):(o(),i(`div`,{key:0,class:m([`content-left flex flex-col bg-white relative z-30 flex-shrink-0`,B.value?`w-208`:`w-0`]),style:{transition:`none`}},[c(d(A,null,null,512),[[s,B.value]]),n(`div`,P,[n(`div`,F,[d(u,{class:`!pl-0 !pr-0 hover:!pr-1 hover:!pl-1`,style:{height:`102px`,color:`white`,background:`transparent`,"font-size":`12px`},title:`展开/收起菜单`,text:``,type:`primary`,icon:B.value?f(S):f(C),onClick:a[0]||=e=>B.value=!B.value},null,8,[`icon`])])])],2)),c((o(),i(`div`,{class:`flex-grow content-right flex flex-col overflow-hidden`,style:l({maxWidth:U.value?`100%`:V.value})},[n(`div`,I,[d(p)])],4)),[[g,f(L).loading]])])]),K.value?(o(),t(k,{key:0})):h(``,!0)])}}}),[[`__scopeId`,`data-v-c2eb6515`]]);export{L as default};