import{A as e,C as t,E as n,M as r,S as i,St as a,T as o,X as s,Z as c,et as l,ft as u,in as d,kt as f,nn as p,p as m,t as h,ut as g,w as _}from"./_plugin-vue_export-helper-9JxOV_6y.js";import{a as v,i as y}from"./vue-router-DunO2xT0.js";import"./router__product_manage-6JJUCehx.js";import"./style-uQ45SeWa.js";import"./GxPagination-CS4FI5Lo.js";import"./date-picker-C2Q2r5F2.js";import{a as b,o as x}from"./GxDialog-CFvkSS2u.js";import{t as S}from"./button-BmZH_xSR.js";import"./css-COm46Nlm.js";import"./css-fMDhFlct.js";import{t as C}from"./directive-pNcZrfik.js";/* empty css            */import{$r as w,ei as T,xt as E,yt as D}from"./stores-DGGArz7t.js";/* empty css            *//* empty css            */import"./useStructurizedVersionDialog-Bub-H4iG.js";import"./validate-xgwjLZZ4.js";/* empty css            */import"./request-BvcjdDug.js";import"./project-2prMzkbr.js";import"./css-DtSsnAef.js";import"./API_Setting-S_s5WchC.js";import"./echarts-C804Or2U.js";/* empty css            *//* empty css            *//* empty css            */import"./Data_Table-Ck0Hbek0.js";/* empty css            *//* empty css            */import"./dist-CbnK6oQ4.js";import"./enum-ojXbJSfr.js";import"./uiController-6uKEvXEW.js";/* empty css            *//* empty css            *//* empty css            *//* empty css            */import"./api-B-rZ1TR9.js";import"./request-object-map-jH6wehOh.js";import"./api-D8OSG9JK.js";import"./dist-B8tH5cbJ.js";import"./dist-4Ihk7icp.js";import"./dist-FxzpKE0d.js";import"./dist-lfqR52a1.js";import"./view_base_options-DGV97Tsn.js";import{t as O}from"./DesignMainLayoutHeader-BJ8hLCae.js";/* empty css            */import"./api-UZ9ZyHFl.js";import"./ChooseIconImageDialog-BXJqHIYT.js";/* empty css            */import"./IntercomRoom-CH-x6jzi.js";import"./CreateMenuOrItem-qdmBDJpN.js";import"./RoleAuthorization-CIGMovaU.js";import{n as k,t as A}from"./XmlTestFloatingPanel-COxWtfCd.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=h(r({__name:`index`,setup(r){let h=D(),L=E();w();let R=T(),z=i(()=>h.localIdentifyAndRoleInfo?.mainFormId),B=a(!0),V=i(()=>`calc(100% - ${B.value?`208`:`0`}px)`);c(`menuExpandStatus`,B),i(()=>L.curFunction),v();let H=y(),U=i(()=>{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=a(``);g(()=>{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=i(()=>H.query.xmlTestMode===`true`&&!h.isApplyProd);return c(`isPreviewForm`,i(()=>h.isPreviewForm)),(r,i)=>{let a=S,c=l(`RouterView`),h=C;return s(),n(`div`,j,[t(`div`,M,[U.value?o(``,!0):(s(),_(O,{"root-panel-form-uuid":z.value,key:z.value},null,8,[`root-panel-form-uuid`])),t(`div`,N,[U.value?o(``,!0):(s(),n(`div`,{key:0,class:p([`content-left flex flex-col bg-white relative z-30 flex-shrink-0`,B.value?`w-208`:`w-0`]),style:{transition:`none`}},[u(e(k,null,null,512),[[m,B.value]]),t(`div`,P,[t(`div`,F,[e(a,{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(b):f(x),onClick:i[0]||=e=>B.value=!B.value},null,8,[`icon`])])])],2)),u((s(),n(`div`,{class:`flex-grow content-right flex flex-col overflow-hidden`,style:d({maxWidth:U.value?`100%`:V.value})},[t(`div`,I,[e(c)])],4)),[[h,f(L).loading]])])]),K.value?(s(),_(A,{key:0})):o(``,!0)])}}}),[[`__scopeId`,`data-v-c2eb6515`]]);export{L as default};