1import { d as defineComponent, A as useRoute, B as useRouter, C as useUserInfo, D as useLocalePath, c as computed, aG as useLoading, a as createBlock, o as openBlock, w as withCtx, b as createBaseVNode, t as toDisplayString, f as createElementBlock, u as unref, n as normalizeClass, i as isRef, _ as __nuxt_component_0, s as setStore, bp as delStore, e as _export_sfc } from "./O7htsuEW.js"; 2const _hoisted_1 = { class: "logoutPop_content" }; 3const _hoisted_2 = { class: "logout-pop-title" }; 4const _hoisted_3 = { class: "logout-pop-desc" }; 5const _hoisted_4 = { class: "logout-pop-btns" }; 6const _hoisted_5 = { 7 key: 1, 8 class: "logout-btn logout-btn-confirm logout-loading" 9}; 10const _sfc_main = /* @__PURE__ */ defineComponent({ 11 __name: "logoutModal", 12 props: { 13 modelValue: { type: Boolean, default: false } 14 }, 15 emits: ["update:modelValue", "shareImage", "takeDown"], 16 setup(__props, { emit: __emit }) { 17 const props = __props; 18 const emit = __emit; 19 useRoute(); 20 const router = useRouter(); 21 const userInfo = useUserInfo(); 22 const localePath = useLocalePath(); 23 const getVisibleStatus = computed({ 24 get() { 25 return props.modelValue; 26 }, 27 set(val) { 28 emit("update:modelValue", val); 29 } 30 }); 31 const { loading, startLoading, stopLoading } = useLoading(); 32 const changePassword = () => { 33 startLoading(); 34 userInfo.logout(() => { 35 localStorage.removeItem("aichat_messages"); 36 stopLoading(); 37 setStore("data-cache", {}); 38 delStore("index-generate-first-play"); 39 delStore("business-card-generate-first-play"); 40 getVisibleStatus.value = false; 41 router.push(localePath("/")); 42 window.postMessage( 43 { type: "h5formlogout" }, 44 // åééåºç»å½çæ¶æ¯ 45 "*" 46 // 广æç»ææçå¬è 47 ); 48 }); 49 }; 50 return (_ctx, _cache) => { 51 const _component_CustomModal = __nuxt_component_0; 52 return openBlock(), createBlock(_component_CustomModal, { 53 "is-visible": unref(getVisibleStatus), 54 "onUpdate:isVisible": _cache[2] || (_cache[2] = ($event) => isRef(getVisibleStatus) ? getVisibleStatus.value = $event : null), 55 "modal-content-style": {} 56 }, { 57 default: withCtx(() => [ 58 createBaseVNode("div", _hoisted_1, [ 59 createBaseVNode("img", { 60 onClick: _cache[0] || (_cache[0] = ($event) => getVisibleStatus.value = false), 61 src: "https://meetingnotes.net/images/public/transcription/promo/trial-close-white.webp", 62 alt: "", 63 class: "close-btn" 64 }), 65 createBaseVNode("div", _hoisted_2, toDisplayString(_ctx.$t("logoutModal.confirm")), 1), 66 createBaseVNode("div", _hoisted_3, toDisplayString(_ctx.$t("logoutModal.tips")), 1), 67 createBaseVNode("div", _hoisted_4, [ 68 createBaseVNode("div", { 69 class: normalizeClass(["logout-btn cancel-btn", { "btn-disabled": unref(loading) }]), 70 onClick: _cache[1] || (_cache[1] = ($event) => !unref(loading) && (getVisibleStatus.value = false)) 71 }, toDisplayString(_ctx.$t("logoutModal.cancel")), 3), 72 !unref(loading) ? (openBlock(), createElementBlock("div", { 73 key: 0, 74 class: "logout-btn logout-btn-confirm", 75 onClick: changePassword 76 }, toDisplayString(_ctx.$t("logoutModal.logout")), 1)) : (openBlock(), createElementBlock("div", _hoisted_5, _cache[3] || (_cache[3] = [ 77 createBaseVNode("div", { class: "spinner white" }, null, -1) 78 ]))) 79 ]) 80 ]) 81 ]), 82 _: 1 83 }, 8, ["is-visible"]); 84 }; 85 } 86}); 87const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-303789ba"]]); 88export { 89 LoginModal as L 90};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.