const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/updateAppNavigationConfig-CZ5U_eaW.js","assets/updateAppNavigationConfig-B4DlkP_F.js","assets/stores-BWYw2E2w.js","assets/_plugin-vue_export-helper-CnS4QQza.js","assets/vue.runtime.esm-bundler-DpGzKKN4.js","assets/preload-helper-CZ7mzbZe.js","assets/useStructurizedVersionDialog-CNAsWSWf.js","assets/dist-k7MkJyWt.js","assets/dist-CrFs1CQR.js","assets/dist-KMsbJYTV.js","assets/dist-DBLKTTor.js","assets/dist-DvR-4JEj.js","assets/dist-DrhtnWAa.js","assets/button-CHjzS7b0.js","assets/vnode-DU8g6Rf7.js","assets/style-DGCNsUJ6.js","assets/lib-DFQPi_if.js","assets/GxDialog-BUqY5Fq3.js","assets/GxPagination-DOexUzbO.js","assets/GxPagination-Be4EBDKc.css","assets/dialog-BLJqz3g4.js","assets/use-lockscreen-DhUbRdm_.js","assets/css-DxP8XCTD.js","assets/css-Csvtmyaz.css","assets/GxDialog-40SSaOyB.css","assets/form-Bb1_iOEA.js","assets/message-XPlwcXDH.js","assets/validate-CTyV86Nm.js","assets/css-DunA3L7q.js","assets/css-CFVceEj2.css","assets/message-box-DHGKoTag.js","assets/validate-BI_ul7L0.css","assets/table-C_Bpc8FZ.js","assets/css-BrGVMe3H.js","assets/css-BNQ58e4w.css","assets/switch-CGmtldbS.js","assets/css-BYms2pL-.js","assets/css-DToTBi1D.css","assets/css-j23UczC-.js","assets/css-CdbtMQVl.css","assets/directive-9SA1IQHd.js","assets/css-CW_FwBqc2.js","assets/css-Ck501s0V.css","assets/css-ropEN6qH.js","assets/css-b4Oof7rq.css","assets/css--CcZutYI.js","assets/css-DZ_yH9qq.css","assets/pinia-BBLKFt_2.js","assets/vue-router-BU7Z_qXI.js","assets/enum-CJvdFzYQ.js","assets/request-CWxGgYu0.js","assets/request-object-map-DsW7ppmf.js","assets/utils-cLZb83du.js","assets/api-CxvZE3a4.js","assets/useStructurizedVersionDialog-BbgcrZoJ.css","assets/vuedraggable.umd-DdgzD11m.js","assets/css-DREb2J8s.js","assets/css-D_6SYB2i.css","assets/date-picker-BpzsJf7t.js","assets/echarts-Borew-jb.js","assets/css-KqzzE5xt.js","assets/css-wKgXRibH.css","assets/card-DchwgQ9Y.js","assets/css-D9oiPdeo.js","assets/css-DRtlST_I.css","assets/upload-CxV36kXa.js","assets/collapse-B9-372uV.js","assets/radio-BKPEeSth.js","assets/css-70Wp40ko.js","assets/DataEntityFieldList-x1XGuNl0.css","assets/dropdown-DhM1uP7x.js","assets/css-DzBTcPHF.js","assets/css-DZ1TmOvX.css","assets/css-CqAQ0NB2.js","assets/loading-BNccgbvN.js","assets/notification-627CNIcF.js","assets/popover-BuElc_X0.js","assets/css-CL2ZB6cz.js","assets/Data_Table-Do6EiT1s.js","assets/Data_Table-Bi4DmH_H.css","assets/css-BIUTcNqp.css","assets/css-CxNX7K-C.js","assets/css-C5xIbKst.css","assets/steps-Bctkg9a-.js","assets/css-AklKJXcX.js","assets/API_Setting-pvmDBGQs.js","assets/project-DYXf60Qj.js","assets/uiController-DpxB3sua.js","assets/view_base_options-B9YSRjyH.js","assets/view_base_options-BX08zhtl.css","assets/api-9aKmC5UF.js","assets/SvgIcon-DIfOGNcW.js","assets/SvgIcon-DIYf3J-m.css","assets/router__product_manage-p8tLmQfq.js","assets/stores-B9pOmSaA.css","assets/api-9objTX74.js","assets/api-D0GY7RdJ.js"])))=>i.map(i=>d[i]);
import{Ct as e,St as t,bt as n,ct as r,wt as i,x as a}from"./vue.runtime.esm-bundler-DpGzKKN4.js";import{t as o}from"./preload-helper-CZ7mzbZe.js";import{n as s}from"./pinia-BBLKFt_2.js";import{n as c,r as l}from"./MobileAppItem-Wjf1cPFp.js";var u=s(`mobile-design`,()=>{let e=a(()=>{let e=location.href.match(/\/adap\/(\d+)\//);return e?e[1]:``}),r=null,s=e=>r=e,u=()=>r;window.getPostmateInstance=u;let d=t(!1),f=e=>{if(r)try{JSON.stringify(e),r.call(`updateRouteForm`,e)}catch{}},p=new Map,m=i([]),h=async(t,n,r)=>{let{getMenuAppsData:i,getMenuItemNavigationConfigData:a}=await o(async()=>{let{getMenuAppsData:e,getMenuItemNavigationConfigData:t}=await import(`./updateAppNavigationConfig-CZ5U_eaW.js`);return{getMenuAppsData:e,getMenuItemNavigationConfigData:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96])),s=await i(e.value,t,n,r),u=s.length;for(let e=0;e<u;e++){let t=s[e];t.baseInfo=l(await a(t))}m.value=s.map(e=>new c(e)),m.value.forEach(e=>{p.set(e.uuid,e)})},g=t(0),_=async(t,n,r)=>{let{updateAppsMenuData:i,updatetNavigationConfigMenuItemData:a}=await o(async()=>{let{updateAppsMenuData:e,updatetNavigationConfigMenuItemData:t}=await import(`./updateAppNavigationConfig-CZ5U_eaW.js`);return{updateAppsMenuData:e,updatetNavigationConfigMenuItemData:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96]));if(g.value++,!e.value)return;m.value.map(({name:e,zxlPrdId:t,uuid:n,description:r,favicon:i,baseInfo:a})=>({name:e,zxlPrdId:t,uuid:n,description:r,favicon:i}));let s=m.value,c=s.length;await i(s,e.value,t,n,r);for(let e=0;e<c;e++){let t=s[e];await a(t)}},v=async(e,t)=>{if(!(!e||!t)){if(p.get(e))throw Error(`已存在相同uuid:${e}`);p.set(e,t),m.value.push(t),await _(t.accessPortalObId||``,t.identifyObId||``,t.platForm||0)}},y=e=>{if(!e)return;let t=m.value.findIndex(t=>t.uuid===e);if(t!==-1){let n=m.value[t];m.value.splice(t,1),p.delete(e),_(n.accessPortalObId||``,n.identifyObId||``,n.platForm||0)}},b=e=>(e?p.get(e):m.value[0])||null,x=async()=>m.value,S=e=>new c(e),C=i(null),w=e=>{C.value=e||null},T=i(null),E=a(()=>{let e=T.value?.platForm;return e===1||e===2}),D=t(0),O=()=>D.value++,k=e=>T.value=e,A=()=>T.value,j=a(()=>{let e=T.value;return D.value,e?(e.baseInfo?.router||[]).map(e=>({label:e.meta?.name||e.name||e.title||e.url||``,value:e.name,_raw:e})):[]}),M=(e,t)=>{if(!e)return;let n=t||T.value;if(!(!n||!n.baseInfo||!r))try{n.baseInfo=l(e),O(),r.call(`initApp`,T.value)}catch(e){console.error(e)}},N=n({visible:!1,type:`config`,activeAppUuid:``});return{setPostmateInstance:s,getPostmateInstance:u,triggerDesignFormUpdate:f,handshakeLoading:d,baseAppsChangeFlag:g,initBaseAppsList:h,setBaseApp:v,removeBaseApp:y,getBaseApp:b,getBaseAppsList:x,createMobileApp:S,curActiveApp:T,isApplet:E,setActiveApp:k,getActiveApp:A,curActiveAppRouterOptions:j,updateAppBaseInfo:M,mobileIframeRef:C,setMobileIframeWrapRef:w,configTabBarDialog:N,openConfigTabBarDialog:e=>{N.visible=!0,N.type=e,N.activeAppUuid=T.value?.uuid||``},updateAppRouterHandle:e=>{M(e)}}}),d=s(`mobile-tabs`,()=>{let n=t(!1),i=t();t(0);let a=e=>{if(!e){l(null);return}l(s.get(e)||null)};r(i,a);let o=t([]),s=new Map,c=t(null),l=e=>c.value=e,u=t(null),d=(e,t)=>{if(u.value=e,e&&t){let n=m(t);if(!n)return;n.userIntfItem=e}},f=e(new Map),p=(e,t)=>f.set(t||e.formUUID,e),m=e=>f.get(e)||null,h=t(null),g=e=>{h.value=e,setTimeout(()=>{h.value=null},3e3)},_=(e,t)=>{if(h.value)return;if(t&&e?.formUUID&&g(e.formUUID),!e){i.value=``;return}let n=s.get(e.formUUID);if(!n){if(!e.from){let t=c.value;e.from=t?{formUUID:t.formUUID,title:t.title,configTabBarItemId:t.configTabBarItemId,from:t.from}:null}n=e,s.set(n.formUUID,n),o.value.push(n)}i.value=n.formUUID};return{loading:n,activeDesignTabsValue:i,designTabsList:o,designTabsMap:s,openedTabFormObjMap:f,setOpenedTabFormObjItem:p,getOpenedTabFormObjItem:m,setActiveDesignTabsValue:_,deleteDesignTab:e=>{let t=typeof e==`string`?e:e.formUUID;if(!s.get(t))return;let n=o.value.findIndex(e=>e.formUUID===t);if(n===-1)return;let r=o.value.length;t===i.value&&_(n+1<=r-1?o.value[n+1]:n-1>=0?o.value[n-1]:null),o.value.splice(n,1),s.delete(t)},clearDesignTabs:()=>{i.value=``,o.value=[],s.clear()},activeDesignTabItem:c,activeDesignTabUserIntf:u,setActiveDesignTabUserIntf:d,resetActiveUserIntf:a}});export{d as n,u as t};