"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const common_vendor = require("./common/vendor.js");
const store_index = require("./store/index.js");
if (!Math) {
  "./pages/main/index.js";
  "./pages/my/index.js";
  "./pages/my/changeInfo.js";
  "./pages/statistics/bjdm_statistics.js";
  "./pages/todo/todo_list.js";
  "./pages/xuncha/mp_excelRcXcdjl_edit.js";
  "./pages/bjdm/bjdm_bzrDm.js";
  "./pages/bjdm/bjdm_bzrDm_list.js";
  "./pages/common/list.js";
  "./pages/xfjl/index.js";
  "./pages/payment/recharge.js";
  "./pages/payment/result.js";
  "./pages/parent/in-out.js";
  "./pages/parent/message.js";
  "./pages/parent/call-center.js";
  "./pages/parent/callend.js";
  "./pages/clyy/clyy_inp.js";
  "./pages/clyy/clyy_play.js";
  "./pages/common/webview.js";
  "./pages/common/h5-controller.js";
  "./pages/device/index.js";
  "./pages/device/callend.js";
}
const _sfc_main = {
  onLaunch: function() {
    if (!common_vendor.index.getStorageSync("deviceInfo")) {
      const deviceInfo = common_vendor.index.getDeviceInfo();
      common_vendor.index.setStorageSync("deviceInfo", deviceInfo);
      common_vendor.index.__f__("log", "at App.vue:8", "初始化设备信息", deviceInfo);
    }
    this.setupVoipEndPage();
  },
  onShow: function() {
    this.setupVoipEndPage();
  },
  onHide: function() {
    common_vendor.index.__f__("log", "at App.vue:19", "App Hide");
  },
  methods: {
    // 设置 VoIP 通话结束页面
    setupVoipEndPage() {
      var _a;
      try {
        if (typeof wmpf === "undefined") {
          return;
        }
        const wmpfVoip = (_a = requirePlugin("wmpf-voip")) == null ? void 0 : _a.default;
        if (wmpfVoip && typeof wmpfVoip.setVoipEndPagePath === "function") {
          wmpfVoip.setVoipEndPagePath({
            url: "/pages/device/index",
            // 通话结束直接返回首页
            key: "Call",
            routeType: "redirectTo"
          });
          common_vendor.index.__f__("log", "at App.vue:39", "✅ [App.vue] 已设置通话结束跳转到首页");
        }
      } catch (e) {
      }
    }
  }
};
function createApp() {
  const app = common_vendor.createSSRApp(_sfc_main);
  app.use(store_index.pinia);
  app.use(common_vendor.uviewPlus);
  return {
    app
  };
}
createApp().app.mount("#app");
exports.createApp = createApp;
//# sourceMappingURL=../.sourcemap/mp-weixin/app.js.map
