"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./common/vendor.js"),t=require("./service/notificationService.js"),o=require("./store/index.js"),r=require("./utils/commUtils.js"),s=require("./store/user.js"),n=require("./interceptors/route.js"),i=require("./interceptors/request.js"),u=require("./interceptors/prototype.js");Math;const a={__name:"App",setup:o=>(e.onLoad((()=>{e.index.hideTabBar()})),e.onLaunch((()=>{e.index.hideTabBar();const o=s.useUserStore();t.notificationService.startPollingUnreadMessages(),""!=o.userInfo.token&&o.userInfo.token||r.toPath("/modules/pet/login/index")})),e.onShow((()=>{t.notificationService.startPollingUnreadMessages()})),e.onHide((()=>{t.notificationService.stopPollingUnreadMessages()})),()=>{})};function c(){const t=e.createSSRApp(a);return t.use(o.store),t.use(n.routeInterceptor),t.use(i.requestInterceptor),t.use(u.prototypeInterceptor),t.component("layout-default-uni",p),t.component("layout-demo-uni",d),{app:t}}const p=()=>"./layouts/default.js",d=()=>"./layouts/demo.js";c().app.mount("#app"),exports.createApp=c;