"use strict"; const common_vendor = require("../../common/vendor.js"); const common_assets = require("../../common/assets.js"); if (!Math) { (exit + reset + ZyUpdate + twoseven + oneseven)(); } const exit = () => "../public/exit.js"; const reset = () => "../public/reset.js"; const ZyUpdate = () => "../zy-upgrade/zy-upgrade.js"; const oneseven = () => "../../pages/login/oneseven.js"; const twoseven = () => "../../pages/login/twoseven.js"; const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "settings", props: { isShow: { type: Boolean, required: true } }, emits: ["jump"], setup(__props, { emit: __emit }) { const zyupgrade = common_vendor.ref(null); const issay = common_vendor.ref(false); const openany = common_vendor.ref(false); const opentype = common_vendor.ref(false); const exitshow = common_vendor.ref(false); const resetshow = common_vendor.ref(false); const emit = __emit; const props = __props; const iconsArray = common_vendor.ref(["雷达扫描", "扫码添加", "手动录入", "修改密码", "切换机构", "检查更新", "用户协议", "隐私政策"]); const transition = common_vendor.ref(true); common_vendor.ref(""); common_vendor.watch( () => props.isShow, (newVal, oldVal) => { if (!oldVal && newVal) { transition.value = false; setTimeout(() => transition.value = true, 50); } } ); const animation = common_vendor.ref(false); const jumpToTarget = (index) => { var _a; switch (index) { case 0: emit("jump", index); break; case 1: emit("jump", index); break; case 2: emit("jump", index); break; case 3: resetshow.value = true; break; case 4: break; case 5: issay.value = true; (_a = zyupgrade.value) == null ? void 0 : _a.check_update(); break; case 6: openany.value = true; opentype.value = true; animation.value = false; setTimeout(() => { animation.value = true; }, 50); break; case 7: openany.value = true; opentype.value = false; animation.value = false; setTimeout(() => { animation.value = true; }, 50); break; } }; const noNeed = () => { if (props.isShow && issay.value) { common_vendor.index.showToast({ title: "已经是最新版了", icon: "none", // 无图标,仅文字 duration: 2e3 // 显示时长,单位毫秒 }); } }; return (_ctx, _cache) => { return common_vendor.e({ a: common_vendor.f(iconsArray.value.slice(0, 3), (item, index, i0) => { return { a: `/static/index/settings/${index}.png`, b: common_vendor.t(item), c: index, d: common_vendor.o(($event) => jumpToTarget(index), index) }; }), b: `/static/index/settings/00.png`, c: common_vendor.f(iconsArray.value.slice(3, 5), (item, index, i0) => { return { a: `/static/index/settings/${index + 3}.png`, b: common_vendor.t(item), c: index, d: common_vendor.o(($event) => jumpToTarget(index + 3), index) }; }), d: `/static/index/settings/00.png`, e: common_vendor.f(iconsArray.value.slice(5, 8), (item, index, i0) => { return { a: `/static/index/settings/${index + 5}.png`, b: common_vendor.t(item), c: index, d: common_vendor.o(($event) => jumpToTarget(index + 5), index) }; }), f: `/static/index/settings/00.png`, g: common_vendor.o(($event) => exitshow.value = true), h: common_vendor.o(($event) => exitshow.value = false), i: common_vendor.p({ show: exitshow.value }), j: common_vendor.o(($event) => resetshow.value = false), k: common_vendor.p({ show: resetshow.value }), l: common_vendor.sr(zyupgrade, "1bfb66e0-2", { "k": "zyupgrade" }), m: common_vendor.o(noNeed), n: common_vendor.p({ noticeflag: true, theme: "blue", h5preview: false, oldversion: "1.0.0", appstoreflag: true, autocheckupdate: true }), o: openany.value }, openany.value ? common_vendor.e({ p: common_vendor.o(($event) => openany.value = false), q: common_assets._imports_0, r: common_vendor.o(($event) => openany.value = false), s: !opentype.value }, !opentype.value ? {} : {}, { t: opentype.value }, opentype.value ? {} : {}, { v: !opentype.value }, !opentype.value ? {} : {}, { w: opentype.value }, opentype.value ? {} : {}, { x: common_vendor.s(animation.value ? { opacity: 1 } : { opacity: 0 }) }) : {}, { y: __props.isShow, z: common_vendor.s(transition.value ? { opacity: `1` } : { opacity: `0` }) }); }; } }); const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1bfb66e0"]]); wx.createComponent(Component); //# sourceMappingURL=../../../.sourcemap/mp-weixin/component/Initialization/settings.js.map