"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./common/vendor.js");require("./common/libraries/request.js"),require("./common/store/useWatermarkStore.js");const o=require("./common/store/useWeAppAuthStore.js");require("./common/store/useWorkStore.js");const r=require("./common/libraries/updateManager.js");require("./gen/Apis.js"),require("./common/libraries/apiLoading.js"),Math;const n=e.defineComponent({__name:"App",setup(n){const s=o.useWeAppAuthStore();return e.onLaunch(async()=>{const o=e.getCurrentInstance();await s.login(o),console.log("App Launch"),r.CheckUpdate()}),e.onShow(async()=>{console.log("App Show")}),e.onHide(()=>{console.log("App Hide")}),()=>{}}});function s(){const o=e.createSSRApp(n);return o.use(e.uviewPlus),o.config.globalProperties.$onLaunched=new Promise(e=>{o.config.globalProperties.$isResolve=e}),o.use(e.createPinia()),{app:o,Pinia:e.Pinia}}s().app.mount("#app"),exports.createApp=s;
