import{u as M,c as R,d as E,e as F,_ as V}from"./index-design-C8wrC2s6.js";import{d as D,e as r,f,H as P,ao as z,M as i,O as a,R as n,X as B,U as g,a1 as v,W as C,a2 as I,a4 as l,u as p,a0 as L,p as _}from"./vue-BQyCGvUQ.js";import{u as N,a as A}from"./vue-router-3s92ZBQp.js";import{L as O}from"./LeftMenuDraggable-BtDtHRjq.js";import{e as W,g as H}from"./element-plus/icons-vue-W2FFUolX.js";import{D as T}from"./DesignMainLayoutHeader-CBi-WWhU.js";import{d as U,v as $}from"./element-plus-DXXGg0hD.js";import"./svg-icons-register-D2E0-Ytb.js";import"./pinia-vendor-Dca3jG8Z.js";import"./x2js-CcPE71Wh.js";import"./spark-md5-D1K1GNLF.js";import"./bpmn-js-vendor-CmbY3e_O.js";import"./feelin-BX8uiLPw.js";import"./tiny-svg-DwrM6wVX.js";import"./axios-Bz4la0P9.js";import"./vueuse-DpVqiu7V.js";import"./echarts-Sg1_iEix.js";import"./dragula-CfHszRTf.js";import"./vuedraggable-DggeXcQm.js";import"./tui-image-editor-vendor-DBxMdFCh.js";import"./fabric-Cm_BIpEs.js";import"./qrcode-DgLtAz-0.js";import"./index-CVM1f0LW.js";import"./CreateMenuOrItem.vue_vue_type_style_index_0_lang-RrtT38af.js";import"./IntercomRoom-BIowDLdp.js";import"./RoleAuthorization-Cs76GdDE.js";/* empty css                    */import"./ChooseIconImageDialog.vue_vue_type_style_index_0_lang-B1LnWpKV.js";import"./photoswipe-Bw4POffq.js";/* empty css                  */import"./dataTypeTools-C_Yz7Wm5.js";const j={id:"design-main-panel-wrap",class:"w-full request-prototyping-design flex-grow flex flex-row overflow-hidden"},X={class:"flex-grow flex flex-col"},G={class:"flex-grow flex flex-row"},J={class:"absolute w-2 h-full left-full top-0"},K={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)"}},Q={class:"content-deatail flex-grow"},Y=D({__name:"index",setup(Z){const u=M(),c=R();E();const w=F(),d=r(()=>u.localIdentifyAndRoleInfo?.mainFormId),o=f(!0),x=r(()=>`calc(100% - ${o.value?"208":"0"}px)`);_("menuExpandStatus",o),r(()=>c.curFunction),N();const s=A(),m=r(()=>{const t=s.name,e=w.activeDesignTabItem;return t&&typeof t=="string"&&/request-prototyping-(design|preview)_single/.test(t)?!0:e?!!e.isSinglePage:!1}),h={"request-prototyping-design_interfacial":"","request-prototyping-design_subfunction":"","request-prototyping-design_data":"","request-prototyping-design_rule":"","request-prototyping-design_version":""},y=f("");P(()=>{if(s.name==="request-prototyping-design")return;const t=s&&s.matched[2],e=t&&t.name;console.log("request-prototyping-design tab name: ",e),e&&Object.prototype.hasOwnProperty.call(h,e)&&(y.value=e)});const b=r(()=>u.isPreviewForm);return _("isPreviewForm",b),(t,e)=>{const S=U,k=z("RouterView"),q=$;return a(),i("div",j,[n("div",X,[m.value?g("",!0):(a(),B(T,{"root-panel-form-uuid":d.value,key:d.value},null,8,["root-panel-form-uuid"])),n("div",G,[m.value?g("",!0):(a(),i("div",{key:0,class:C(["content-left flex flex-col bg-white relative z-30 flex-shrink-0",o.value?"w-208":"w-0"]),style:{transition:"none"}},[v(l(O,null,null,512),[[I,o.value]]),n("div",J,[n("div",K,[l(S,{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:o.value?p(W):p(H),onClick:e[0]||(e[0]=ee=>o.value=!o.value)},null,8,["icon"])])])],2)),v((a(),i("div",{class:"flex-grow content-right flex flex-col overflow-hidden",style:L({maxWidth:x.value})},[n("div",Q,[l(k)])],4)),[[q,p(c).loading]])])])])}}}),Pe=V(Y,[["__scopeId","data-v-09fe43c7"]]);export{Pe as default};
