x-essential-lib 0.8.13 → 0.8.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,61 +1,66 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.id="x-essential-lib",t.appendChild(document.createTextNode('.fade-leave-active[data-v-0c686889]{transition:opacity .5s ease}.fade-leave-to[data-v-0c686889]{opacity:0}.x-cont[data-v-0c686889]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-0c686889]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-0c686889]{transform-origin:20px 20px;animation:lds-spinner-0c686889 1.2s linear infinite}.lds-spinner div[data-v-0c686889]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-0c686889]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-0c686889]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-0c686889]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-0c686889]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-0c686889]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-0c686889]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-0c686889]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-0c686889]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-0c686889]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-0c686889]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-0c686889]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-0c686889]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-0c686889{0%{opacity:1}to{opacity:0}}.x-item[data-v-74835a85]{width:600px}@media (max-width: 600px){.x-item[data-v-74835a85]{width:calc(100vw - 16px)}}.x-cont[data-v-c6a59757]{position:fixed;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import { computed as x, provide as B, inject as I, ref as i, watchEffect as oe, onMounted as K, onBeforeUnmount as U, onBeforeMount as xe, defineComponent as A, watch as Y, resolveComponent as h, createBlock as O, openBlock as q, withKeys as J, unref as H, withModifiers as $, isRef as F, withCtx as m, createVNode as b, createTextVNode as L, toDisplayString as R, Transition as be, createElementBlock as Q, createCommentVNode as Z, normalizeStyle as ne, createElementVNode as v, Fragment as ke, renderList as Ce, useTemplateRef as De } from "vue";
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.id="x-essential-lib",t.appendChild(document.createTextNode('.fade-leave-active[data-v-0c686889]{transition:opacity .5s ease}.fade-leave-to[data-v-0c686889]{opacity:0}.x-cont[data-v-0c686889]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-0c686889]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-0c686889]{transform-origin:20px 20px;animation:lds-spinner-0c686889 1.2s linear infinite}.lds-spinner div[data-v-0c686889]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-0c686889]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-0c686889]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-0c686889]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-0c686889]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-0c686889]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-0c686889]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-0c686889]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-0c686889]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-0c686889]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-0c686889]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-0c686889]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-0c686889]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-0c686889{0%{opacity:1}to{opacity:0}}.x-item[data-v-f1f60167]{width:600px}@media (max-width: 600px){.x-item[data-v-f1f60167]{width:calc(100vw - 16px)}}.x-cont[data-v-c6a59757]{position:fixed;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
+ import { computed as b, provide as B, inject as I, ref as f, watchEffect as oe, onMounted as K, onBeforeUnmount as U, onBeforeMount as be, defineComponent as A, watch as Q, resolveComponent as h, createBlock as R, openBlock as q, withKeys as G, unref as Y, withModifiers as $, isRef as H, withCtx as m, createVNode as x, createTextVNode as L, toDisplayString as O, Transition as xe, createElementBlock as J, createCommentVNode as Z, normalizeStyle as ne, createElementVNode as v, Fragment as ke, renderList as De, useTemplateRef as Ce } from "vue";
3
3
  import { useI18n as P } from "vue-i18n";
4
- import { useTheme as ue, useDisplay as qe } from "vuetify";
5
- import { useRouter as ce, useRoute as Ve } from "vue-router";
6
- import Se from "axios";
7
- import { a as M, m as je, u as Re, b as Oe, c as Te, d as Le, e as Me, f as Be } from "./vendor.i6w3s9o3.js";
8
- function Ie() {
9
- const e = ue(), t = x(() => e.global.current.value.colors.primary), a = x(() => e.global.current.value.colors.secondary), o = x(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), r = x(() => e.current.value.dark ? "#272727" : "#eeeeee"), n = x(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = x(() => e.current.value.dark ? "#303030" : "#f6f6f6"), l = x(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
4
+ import { useTheme as ce, useDisplay as qe } from "vuetify";
5
+ import { useRouter as ue, useRoute as je } from "vue-router";
6
+ import Ve from "axios";
7
+ import { a as M, m as Se, u as Oe } from "./vendor.nd1vt2d2.js";
8
+ function Re() {
9
+ const e = ce(), t = b(() => e.global.current.value.colors.primary), a = b(() => e.global.current.value.colors.secondary), o = b(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), r = b(() => e.current.value.dark ? "#272727" : "#eeeeee"), n = b(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), u = b(() => e.current.value.dark ? "#303030" : "#f6f6f6"), l = b(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
10
10
  return {
11
11
  primaryColor: t,
12
12
  secondaryColor: a,
13
13
  backgroundColor0: o,
14
14
  backgroundColor1: r,
15
15
  backgroundColor2: n,
16
- highlightColor: c,
16
+ highlightColor: u,
17
17
  borderColor: l
18
18
  };
19
19
  }
20
- function Vt(e) {
21
- const t = Se.create({
20
+ function xt(e) {
21
+ const t = Ve.create({
22
22
  timeout: 6e3
23
23
  });
24
24
  return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
25
- (a) => Ae(a),
25
+ (a) => Te(a),
26
26
  (a) => {
27
- Ee(a, e.onError);
27
+ Le(a, e.onError);
28
28
  }
29
29
  ), t.interceptors.response.use(
30
- (a) => Ue(a),
31
- (a) => $e(a, e.onError)
30
+ (a) => Me(a),
31
+ (a) => Be(a, e.onError)
32
32
  ), t;
33
33
  }
34
- function Ae(e) {
34
+ function Te(e) {
35
35
  const t = M.get("accessToken") ?? "";
36
36
  return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
37
37
  }
38
- function Ee(e, t) {
38
+ function Le(e, t) {
39
39
  console.error(e), t("request timeout");
40
40
  }
41
- function Ue(e) {
41
+ function Me(e) {
42
42
  return e.data;
43
43
  }
44
- function $e(e, t) {
44
+ function Be(e, t) {
45
45
  var r, n;
46
46
  const o = e.response;
47
- return o && (o.status === 401 && Ke(), (r = o.data) != null && r.message ? t((n = o.data) == null ? void 0 : n.message) : t({
47
+ return o && (o.status === 401 && Ie(), (r = o.data) != null && r.message ? t((n = o.data) == null ? void 0 : n.message) : t({
48
48
  code: o.status,
49
49
  message: o.statusText
50
50
  })), Promise.reject(e);
51
51
  }
52
- function Ke() {
53
- M.remove("accessToken"), M.remove("refreshToken"), M.remove("activeOrg"), ce().replace({ path: "/passport/login" });
54
- }
55
- const u = function() {
56
- return window.eventBus || (window.eventBus = je()), window.eventBus;
52
+ function Ie() {
53
+ M.remove("accessToken"), M.remove("refreshToken"), M.remove("activeOrg"), ue().replace({ path: "/passport/login" });
54
+ }
55
+ const kt = function() {
56
+ return window.globalObjects || (window.globalObjects = {
57
+ router: null,
58
+ i18n: null
59
+ }), window.globalObjects;
60
+ }(), c = function() {
61
+ return window.eventBus || (window.eventBus = Se()), window.eventBus;
57
62
  }();
58
- async function St(e) {
63
+ async function Dt(e) {
59
64
  return new Promise((t) => {
60
65
  setTimeout(t, e);
61
66
  });
@@ -69,7 +74,7 @@ async function ee(e, t, a) {
69
74
  n();
70
75
  });
71
76
  }
72
- function We(e, t) {
77
+ function Ae(e, t) {
73
78
  const a = document.getElementById("single-spa-application:" + e);
74
79
  a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
75
80
  a.classList.add("app-reset");
@@ -80,47 +85,47 @@ function pe() {
80
85
  const e = Date.now();
81
86
  return e - re > 500 ? (re = e, !0) : !1;
82
87
  }
83
- let Xe = 0;
88
+ let Ee = 0;
84
89
  function se() {
85
- return ++Xe;
90
+ return ++Ee;
86
91
  }
87
- async function jt(e) {
92
+ async function Ct(e) {
88
93
  if (!pe())
89
94
  return;
90
95
  let t = !1, a;
91
96
  const o = (n) => {
92
97
  a = n, t = !0;
93
98
  }, r = se();
94
- return u.on("confirmDlgResult" + r, o), u.emit("confirmDlg", { ...e, seq: r }), await ee(() => t), u.off("confirmDlgResult" + r, o), a;
99
+ return c.on("confirmDlgResult" + r, o), c.emit("confirmDlg", { ...e, seq: r }), await ee(() => t), c.off("confirmDlgResult" + r, o), a;
95
100
  }
96
- async function Rt(e) {
101
+ async function qt(e) {
97
102
  if (!pe())
98
103
  return;
99
104
  let t = !1, a;
100
105
  const o = (n) => {
101
106
  a = n, t = !0;
102
107
  }, r = se();
103
- return u.on("promptDlgResult" + r, o), u.emit("promptDlg", { ...e, seq: r }), await ee(() => t), u.off("promptDlgResult" + r, o), a;
108
+ return c.on("promptDlgResult" + r, o), c.emit("promptDlg", { ...e, seq: r }), await ee(() => t), c.off("promptDlgResult" + r, o), a;
104
109
  }
105
- function Ot(e) {
106
- u.emit("openWaitDlg", { text: e });
110
+ function jt(e) {
111
+ c.emit("openWaitDlg", { text: e });
107
112
  }
108
- function Tt() {
109
- u.emit("closeWaitDlg");
113
+ function Vt() {
114
+ c.emit("closeWaitDlg");
110
115
  }
111
- function Lt(e, t) {
112
- u.emit("message", { type: "error", text: e, timeout: t });
116
+ function St(e, t) {
117
+ c.emit("message", { type: "error", text: e, timeout: t });
113
118
  }
114
- function Mt(e, t) {
115
- u.emit("message", { type: "info", text: e, timeout: t });
119
+ function Ot(e, t) {
120
+ c.emit("message", { type: "info", text: e, timeout: t });
116
121
  }
117
- function Bt(e, t) {
118
- u.emit("message", { type: "success", text: e, timeout: t });
122
+ function Rt(e, t) {
123
+ c.emit("message", { type: "success", text: e, timeout: t });
119
124
  }
120
- function It(e, t) {
121
- u.emit("message", { type: "warning", text: e, timeout: t });
125
+ function Tt(e, t) {
126
+ c.emit("message", { type: "warning", text: e, timeout: t });
122
127
  }
123
- var ze = /* @__PURE__ */ ((e) => (e.list_app_group = "list_app_group", e.create_app_group = "create_app_group", e.delete_app_group = "delete_app_group", e.update_app_group = "update_app_group", e.arrange_app_group = "arrange_app_group", e.list_app = "list_app", e.get_app = "get_app", e.create_app = "create_app", e.delete_app = "delete_app", e.update_app = "update_app", e.list_app_release = "list_app_release", e.get_app_release = "get_app_release", e.create_app_release = "create_app_release", e.delete_app_release = "delete_app_release", e.deploy_app_release = "deploy_app_release", e.open_app_layer = "open_app_layer", e.open_app = "open_app", e.list_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.debug_flow = "debug_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role_group = "list_org_role_group", e.create_org_role_group = "create_org_role_group", e.delete_org_role_group = "delete_org_role_group", e.update_org_role_group = "update_org_role_group", e.arrange_org_role_group = "arrange_org_role_group", e.list_org_role = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))(ze || {});
128
+ var Ue = /* @__PURE__ */ ((e) => (e.list_app_group = "list_app_group", e.create_app_group = "create_app_group", e.delete_app_group = "delete_app_group", e.update_app_group = "update_app_group", e.arrange_app_group = "arrange_app_group", e.list_app = "list_app", e.get_app = "get_app", e.create_app = "create_app", e.delete_app = "delete_app", e.update_app = "update_app", e.list_app_release = "list_app_release", e.get_app_release = "get_app_release", e.create_app_release = "create_app_release", e.delete_app_release = "delete_app_release", e.deploy_app_release = "deploy_app_release", e.open_app_layer = "open_app_layer", e.open_app = "open_app", e.list_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.debug_flow = "debug_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role_group = "list_org_role_group", e.create_org_role_group = "create_org_role_group", e.delete_org_role_group = "delete_org_role_group", e.update_org_role_group = "update_org_role_group", e.arrange_org_role_group = "arrange_org_role_group", e.list_org_role = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))(Ue || {});
124
129
  function le(e, t) {
125
130
  if (!e)
126
131
  return !1;
@@ -134,48 +139,48 @@ function le(e, t) {
134
139
  return !1;
135
140
  }), Object.keys(a).length <= 0);
136
141
  }
137
- function Ne(e, t, a) {
142
+ function $e(e, t, a) {
138
143
  const o = e[t];
139
144
  return o ? a ? !(!le(o.includes, a) || le(o.excludes, a)) : !0 : !1;
140
145
  }
141
- const _e = "essentialDark", de = "essentialLocale", fe = "essentialPermissionObjects", ie = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
142
- function He(e) {
146
+ const _e = "essentialDark", de = "essentialLocale", ie = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
147
+ function Ke(e) {
143
148
  B(_e, e);
144
149
  }
145
- function At() {
150
+ function Lt() {
146
151
  return I(_e);
147
152
  }
148
- function Fe(e) {
153
+ function We(e) {
149
154
  B(de, e);
150
155
  }
151
- function Et() {
156
+ function Mt() {
152
157
  return I(de);
153
158
  }
154
- function Ge(e) {
155
- B(fe, e);
156
- }
157
- function Je() {
158
- return I(fe);
159
- }
160
- function Qe(e) {
159
+ function Xe(e) {
161
160
  B(ie, e);
162
161
  }
163
- function Ut() {
162
+ function ze() {
164
163
  return I(ie);
165
164
  }
166
- function Ye(e) {
165
+ function Ne(e) {
166
+ B(fe, e);
167
+ }
168
+ function Bt() {
169
+ return I(fe);
170
+ }
171
+ function He(e) {
167
172
  B(ge, e);
168
173
  }
169
- function $t() {
174
+ function It() {
170
175
  return I(ge);
171
176
  }
172
- function Ze(e) {
177
+ function Fe(e) {
173
178
  B(ve, e);
174
179
  }
175
- function Pe() {
180
+ function Ge() {
176
181
  return I(ve);
177
182
  }
178
- const et = [
183
+ const Je = [
179
184
  {
180
185
  app: "x-passport-mf",
181
186
  path: "/passport/login",
@@ -286,16 +291,16 @@ const et = [
286
291
  function N(e) {
287
292
  let t, a = 0;
288
293
  const o = e.split("/").filter((r) => r.trim() !== "");
289
- return et.forEach((r) => {
294
+ return Je.forEach((r) => {
290
295
  const n = r.path.split("/").filter((l) => l.trim() !== "");
291
- let c = 0;
296
+ let u = 0;
292
297
  for (let l = 0; l < o.length && !(l >= n.length || o[l] !== n[l]); l++)
293
- c++;
294
- c > 0 && c > a && (t = r, a = c);
298
+ u++;
299
+ u > 0 && u > a && (t = r, a = u);
295
300
  }), t;
296
301
  }
297
- const G = i("");
298
- function j(e, t, a) {
302
+ const F = f("");
303
+ function S(e, t, a) {
299
304
  t === "/" && (t = a);
300
305
  const o = N(e), r = N(t);
301
306
  if (!o) {
@@ -304,139 +309,139 @@ function j(e, t, a) {
304
309
  }
305
310
  if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !r)
306
311
  return;
307
- const n = o.app === r.app, c = o.path === r.path, l = o.level >= r.level;
308
- n ? c ? G.value = "" : G.value = l ? "inner-left" : "inner-right" : (G.value = "", We(o.app, l));
312
+ const n = o.app === r.app, u = o.path === r.path, l = o.level >= r.level;
313
+ n ? u ? F.value = "" : F.value = l ? "inner-left" : "inner-right" : (F.value = "", Ae(o.app, l));
309
314
  }
310
- function tt() {
315
+ function Qe() {
311
316
  return !!M.get("accessToken");
312
317
  }
313
- function at() {
318
+ function Ye() {
314
319
  return !!M.get("activeOrg");
315
320
  }
316
- function Kt(e, t, a, o) {
317
- const r = tt(), n = at(), c = N(e.path);
318
- if (!c) {
321
+ function At(e, t, a, o) {
322
+ const r = Qe(), n = Ye(), u = N(e.path);
323
+ if (!u) {
319
324
  console.assert(!1), a();
320
325
  return;
321
326
  }
322
- if (c.requiredState === "auth")
327
+ if (u.requiredState === "auth")
323
328
  if (r)
324
329
  if (n) {
325
330
  const l = "/main";
326
- j(l, t.path, o), a({ path: l });
331
+ S(l, t.path, o), a({ path: l });
327
332
  } else
328
- j(e.path, t.path, o), a();
333
+ S(e.path, t.path, o), a();
329
334
  else {
330
335
  const l = "/passport/login";
331
- j(l, t.path, o), a({ path: l });
336
+ S(l, t.path, o), a({ path: l });
332
337
  }
333
- else if (c.requiredState === "org")
338
+ else if (u.requiredState === "org")
334
339
  if (r)
335
340
  if (n)
336
- j(e.path, t.path, o), a();
341
+ S(e.path, t.path, o), a();
337
342
  else {
338
343
  const l = "/org/joinOrCreate";
339
- j(l, t.path, o), a({ path: l });
344
+ S(l, t.path, o), a({ path: l });
340
345
  }
341
346
  else {
342
347
  const l = "/passport/login";
343
- j(l, t.path, o), a({ path: l });
348
+ S(l, t.path, o), a({ path: l });
344
349
  }
345
350
  else if (r)
346
351
  if (n) {
347
352
  const l = "/main";
348
- j(l, t.path, o), a({ path: l });
353
+ S(l, t.path, o), a({ path: l });
349
354
  } else {
350
355
  const l = "/org/joinOrCreate";
351
- j(l, t.path, o), a({ path: l });
356
+ S(l, t.path, o), a({ path: l });
352
357
  }
353
358
  else
354
- j(e.path, t.path, o), a();
359
+ S(e.path, t.path, o), a();
355
360
  }
356
- function ot(e) {
361
+ function Ze(e) {
357
362
  return e.value.length <= 0;
358
363
  }
359
- function Wt(e) {
364
+ function Et(e) {
360
365
  if (e.value.length > 0)
361
366
  return e.value[e.value.length - 1];
362
367
  }
363
368
  function me(e, t) {
364
369
  return !!e.value.find((a) => a === t);
365
370
  }
366
- function rt(e, t) {
371
+ function Pe(e, t) {
367
372
  const a = e.value.findIndex((o) => o === t);
368
373
  a >= 0 && e.value.splice(a, 1), e.value.push(t);
369
374
  }
370
- function lt(e, t) {
375
+ function et(e, t) {
371
376
  const a = e.value.findIndex((o) => o === t);
372
377
  a >= 0 && e.value.splice(a, 1);
373
378
  }
374
- function nt(e) {
379
+ function tt(e) {
375
380
  console.assert(e.value.length > 0), e.value.pop();
376
381
  }
377
- function Xt(e) {
382
+ function Ut(e) {
378
383
  e.value = [];
379
384
  }
380
- function zt(e, t, a, o, r, n) {
381
- const c = Ve(), l = ce(), _ = Re(), p = i(!1);
385
+ function $t(e, t, a, o, r, n) {
386
+ const u = je(), l = ue(), _ = Oe(), p = f(!1);
382
387
  oe(() => {
383
- let f = !1;
384
- typeof e.value == "boolean" ? f = e.value : f = _.value, p.value = f;
385
- }), He(p), Fe(t), Ge(a), Qe(o), Ye(r), Ze(n);
386
- const w = ue();
388
+ let i = !1;
389
+ typeof e.value == "boolean" ? i = e.value : i = _.value, p.value = i;
390
+ }), Ke(p), We(t), Xe(a), Ne(o), He(r), Fe(n);
391
+ const w = ce();
387
392
  oe(() => {
388
393
  w.global.name.value = p.value ? "dark" : "light";
389
394
  });
390
395
  const y = () => {
391
396
  var k;
392
- if (!ot(n)) {
393
- me(n, "waitDlg") || nt(n);
397
+ if (!Ze(n)) {
398
+ me(n, "waitDlg") || tt(n);
394
399
  return;
395
400
  }
396
- const f = N(c.path);
397
- if (!f) {
401
+ const i = N(u.path);
402
+ if (!i) {
398
403
  console.assert(!1);
399
404
  return;
400
405
  }
401
- f.level === 0 ? (k = navigator == null ? void 0 : navigator.Backbutton) == null || k.goHome(
406
+ i.level === 0 ? (k = navigator == null ? void 0 : navigator.Backbutton) == null || k.goHome(
402
407
  () => {
403
408
  },
404
409
  () => {
405
410
  }
406
411
  ) : l.back();
407
- }, V = (f) => {
408
- if (f.key === "Escape") {
412
+ }, j = (i) => {
413
+ if (i.key === "Escape") {
409
414
  y();
410
415
  return;
411
416
  }
412
- }, C = () => {
417
+ }, D = () => {
413
418
  y();
414
419
  };
415
420
  K(() => {
416
- window.addEventListener("keydown", V), u.on("backbutton", C);
421
+ window.addEventListener("keydown", j), c.on("backbutton", D);
417
422
  }), U(() => {
418
- window.removeEventListener("keydown", V), u.off("backbutton", C);
423
+ window.removeEventListener("keydown", j), c.off("backbutton", D);
419
424
  });
420
- const d = (f) => {
421
- e.value = f;
422
- }, S = (f) => {
423
- t.value = f;
424
- }, g = (f) => {
425
- const k = f;
425
+ const d = (i) => {
426
+ e.value = i;
427
+ }, V = (i) => {
428
+ t.value = i;
429
+ }, g = (i) => {
430
+ const k = i;
426
431
  a.value = k[0], o.value = k[1];
427
- }, D = (f) => {
428
- r.value = f;
432
+ }, C = (i) => {
433
+ r.value = i;
429
434
  };
430
- xe(() => {
431
- u.on("updateDark", d), u.on("updateLocale", S), u.on("updatePermission", g), u.on("updateLastAppPath", D), u.emit("syncGlobalState");
435
+ be(() => {
436
+ c.on("updateDark", d), c.on("updateLocale", V), c.on("updatePermission", g), c.on("updateLastAppPath", C), c.emit("syncGlobalState");
432
437
  }), U(() => {
433
- u.off("updateDark", d), u.off("updateLocale", S), u.off("updatePermission", g), u.off("updateLastAppPath", D);
438
+ c.off("updateDark", d), c.off("updateLocale", V), c.off("updatePermission", g), c.off("updateLastAppPath", C);
434
439
  });
435
440
  }
436
- function Nt() {
437
- const e = Je();
441
+ function Kt() {
442
+ const e = ze();
438
443
  function t(a, o) {
439
- return Ne(
444
+ return $e(
440
445
  e.value,
441
446
  a,
442
447
  o ?? ""
@@ -444,8 +449,8 @@ function Nt() {
444
449
  }
445
450
  return { verifyPermission: t };
446
451
  }
447
- function Ht() {
448
- const e = x(() => !!window.cordova), t = qe(), a = x(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
452
+ function Wt() {
453
+ const e = b(() => !!window.cordova), t = qe(), a = b(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
449
454
  function o() {
450
455
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
451
456
  navigator.userAgent
@@ -454,77 +459,77 @@ function Ht() {
454
459
  return { sysBarAvail: e, compactWidth: a, isMobile: o };
455
460
  }
456
461
  function te(e, t) {
457
- const a = Pe(), o = x({
462
+ const a = Ge(), o = b({
458
463
  get() {
459
464
  return me(a, e);
460
465
  },
461
466
  set(n) {
462
- n ? rt(a, e) : lt(a, e);
467
+ n ? Pe(a, e) : et(a, e);
463
468
  }
464
469
  }), r = (n) => {
465
470
  t == null || t(n), o.value = !0;
466
471
  };
467
472
  return K(() => {
468
- u.on(e, r);
473
+ c.on(e, r);
469
474
  }), U(() => {
470
- u.off(e, r);
475
+ c.off(e, r);
471
476
  }), { open: o };
472
477
  }
473
- const ut = /* @__PURE__ */ A({
478
+ const at = /* @__PURE__ */ A({
474
479
  __name: "index",
475
480
  setup(e) {
476
- const { t } = P(), a = i(""), o = i(""), r = i(""), n = i(""), c = i(""), l = i("");
481
+ const { t } = P(), a = f(""), o = f(""), r = f(""), n = f(""), u = f(""), l = f("");
477
482
  let _ = 0, p = !1;
478
- const w = (C) => {
479
- var S, g, D, f;
480
- const d = C;
481
- a.value = d.title, o.value = d.text, r.value = ((S = d.cancel) == null ? void 0 : S.color) ?? "primary", n.value = ((g = d.cancel) == null ? void 0 : g.text) ?? t("dlg.common.cancel"), c.value = ((D = d.confirm) == null ? void 0 : D.color) ?? "primary", l.value = ((f = d.confirm) == null ? void 0 : f.text) ?? t("dlg.common.confirm"), _ = d.seq, p = !1, y.value = !0;
482
- }, { open: y } = te("confirmDlg", w), V = () => {
483
- y.value = !1, p || (u.emit("confirmDlgResult" + _, !0), p = !0);
483
+ const w = (D) => {
484
+ var V, g, C, i;
485
+ const d = D;
486
+ a.value = d.title, o.value = d.text, r.value = ((V = d.cancel) == null ? void 0 : V.color) ?? "primary", n.value = ((g = d.cancel) == null ? void 0 : g.text) ?? t("dlg.common.cancel"), u.value = ((C = d.confirm) == null ? void 0 : C.color) ?? "primary", l.value = ((i = d.confirm) == null ? void 0 : i.text) ?? t("dlg.common.confirm"), _ = d.seq, p = !1, y.value = !0;
487
+ }, { open: y } = te("confirmDlg", w), j = () => {
488
+ y.value = !1, p || (c.emit("confirmDlgResult" + _, !0), p = !0);
484
489
  };
485
- return Y(y, (C) => {
486
- !C && !p && (u.emit("confirmDlgResult" + _, !1), p = !0);
487
- }), (C, d) => {
488
- const S = h("v-card-text"), g = h("v-btn"), D = h("v-card-actions"), f = h("v-card"), k = h("v-dialog");
489
- return q(), O(k, {
490
- modelValue: H(y),
491
- "onUpdate:modelValue": d[1] || (d[1] = (s) => F(y) ? y.value = s : null),
490
+ return Q(y, (D) => {
491
+ !D && !p && (c.emit("confirmDlgResult" + _, !1), p = !0);
492
+ }), (D, d) => {
493
+ const V = h("v-card-text"), g = h("v-btn"), C = h("v-card-actions"), i = h("v-card"), k = h("v-dialog");
494
+ return q(), R(k, {
495
+ modelValue: Y(y),
496
+ "onUpdate:modelValue": d[1] || (d[1] = (s) => H(y) ? y.value = s : null),
492
497
  transition: "dialog-top-transition",
493
498
  "max-width": "600px",
494
499
  attach: "",
495
500
  onKeydown: [
496
- d[2] || (d[2] = J($((s) => y.value = !1, ["stop", "prevent"]), ["esc"])),
497
- J($(V, ["stop", "prevent"]), ["enter"])
501
+ d[2] || (d[2] = G($((s) => y.value = !1, ["stop", "prevent"]), ["esc"])),
502
+ G($(j, ["stop", "prevent"]), ["enter"])
498
503
  ]
499
504
  }, {
500
505
  default: m(() => [
501
- b(f, { title: a.value }, {
506
+ x(i, { title: a.value }, {
502
507
  default: m(() => [
503
- b(S, null, {
508
+ x(V, null, {
504
509
  default: m(() => [
505
- L(R(o.value), 1)
510
+ L(O(o.value), 1)
506
511
  ]),
507
512
  _: 1
508
513
  }),
509
- b(D, { class: "d-flex justify-end" }, {
514
+ x(C, { class: "d-flex justify-end" }, {
510
515
  default: m(() => [
511
- b(g, {
516
+ x(g, {
512
517
  color: r.value,
513
518
  variant: "text",
514
519
  onClick: d[0] || (d[0] = (s) => y.value = !1)
515
520
  }, {
516
521
  default: m(() => [
517
- L(R(n.value), 1)
522
+ L(O(n.value), 1)
518
523
  ]),
519
524
  _: 1
520
525
  }, 8, ["color"]),
521
- b(g, {
522
- color: c.value,
526
+ x(g, {
527
+ color: u.value,
523
528
  variant: "text",
524
- onClick: V
529
+ onClick: j
525
530
  }, {
526
531
  default: m(() => [
527
- L(R(l.value), 1)
532
+ L(O(l.value), 1)
528
533
  ]),
529
534
  _: 1
530
535
  }, 8, ["color"])
@@ -539,22 +544,22 @@ const ut = /* @__PURE__ */ A({
539
544
  }, 8, ["modelValue", "onKeydown"]);
540
545
  };
541
546
  }
542
- }), ct = /* @__PURE__ */ A({
547
+ }), ot = /* @__PURE__ */ A({
543
548
  __name: "index",
544
549
  props: {
545
550
  open: { type: Boolean, default: !0 },
546
551
  zIndex: { default: 1 }
547
552
  },
548
553
  setup(e) {
549
- const { backgroundColor2: t } = Ie(), a = x(() => ({
554
+ const { backgroundColor2: t } = Re(), a = b(() => ({
550
555
  background: t.value,
551
556
  zIndex: e.zIndex
552
557
  }));
553
558
  let o = 0;
554
- return (r, n) => (q(), O(be, { name: "fade" }, {
559
+ return (r, n) => (q(), R(xe, { name: "fade" }, {
555
560
  default: m(() => [
556
- r.open ? (q(), Q("div", {
557
- key: F(o) ? ++o.value : ++o,
561
+ r.open ? (q(), J("div", {
562
+ key: H(o) ? ++o.value : ++o,
558
563
  class: "x-cont",
559
564
  style: ne(a.value)
560
565
  }, n[0] || (n[0] = [
@@ -582,7 +587,7 @@ const ut = /* @__PURE__ */ A({
582
587
  for (const [o, r] of t)
583
588
  a[o] = r;
584
589
  return a;
585
- }, pt = /* @__PURE__ */ ae(ct, [["__scopeId", "data-v-0c686889"]]), st = /* @__PURE__ */ A({
590
+ }, rt = /* @__PURE__ */ ae(ot, [["__scopeId", "data-v-0c686889"]]), lt = /* @__PURE__ */ A({
586
591
  __name: "item",
587
592
  props: {
588
593
  id: {},
@@ -592,84 +597,84 @@ const ut = /* @__PURE__ */ A({
592
597
  },
593
598
  emits: ["timeout"],
594
599
  setup(e, { emit: t }) {
595
- const a = x(() => ({
600
+ const a = b(() => ({
596
601
  width: "calc(100% - 64px)",
597
602
  overflowWrap: "break-word"
598
- })), o = x(() => {
603
+ })), o = b(() => {
599
604
  switch (e.type) {
600
605
  case "success":
601
- return Me;
606
+ return "mdi-check-circle";
602
607
  case "info":
603
- return Le;
608
+ return "mdi-information";
604
609
  case "error":
605
- return Te;
610
+ return "mdi-close-circle";
606
611
  case "warning":
607
- return Oe;
612
+ return "mdi-alert-circle";
608
613
  default:
609
614
  return "";
610
615
  }
611
- }), r = i(!0), n = t;
616
+ }), r = f(!0), n = t;
612
617
  return K(() => {
613
618
  setTimeout(() => {
614
619
  n("timeout", e.id);
615
620
  }, e.timeout);
616
- }), Y(r, (c) => {
617
- c || n("timeout", e.id);
618
- }), (c, l) => {
621
+ }), Q(r, (u) => {
622
+ u || n("timeout", e.id);
623
+ }), (u, l) => {
619
624
  const _ = h("v-icon"), p = h("v-sheet");
620
- return q(), O(p, {
625
+ return q(), R(p, {
621
626
  class: "x-item d-flex align-center py-2 mb-2",
622
- color: c.type,
627
+ color: u.type,
623
628
  elevation: 1
624
629
  }, {
625
630
  default: m(() => [
626
- o.value ? (q(), O(_, {
631
+ o.value ? (q(), R(_, {
627
632
  key: 0,
628
633
  class: "mx-1",
629
634
  icon: o.value
630
635
  }, null, 8, ["icon"])) : Z("", !0),
631
636
  v("div", {
632
637
  style: ne(a.value)
633
- }, R(c.text), 5),
634
- b(_, {
638
+ }, O(u.text), 5),
639
+ x(_, {
635
640
  class: "mx-1",
636
- icon: H(Be),
637
- onClick: l[0] || (l[0] = (w) => n("timeout", c.id))
638
- }, null, 8, ["icon"])
641
+ icon: "mdi-close",
642
+ onClick: l[0] || (l[0] = (w) => n("timeout", u.id))
643
+ })
639
644
  ]),
640
645
  _: 1
641
646
  }, 8, ["color"]);
642
647
  };
643
648
  }
644
- }), _t = /* @__PURE__ */ ae(st, [["__scopeId", "data-v-74835a85"]]), dt = /* @__PURE__ */ A({
649
+ }), nt = /* @__PURE__ */ ae(lt, [["__scopeId", "data-v-f1f60167"]]), ct = /* @__PURE__ */ A({
645
650
  __name: "index",
646
651
  setup(e) {
647
- const t = i([]);
652
+ const t = f([]);
648
653
  K(() => {
649
- u.on("message", a);
654
+ c.on("message", a);
650
655
  }), U(() => {
651
- u.off("message", a);
656
+ c.off("message", a);
652
657
  });
653
658
  const a = (l) => {
654
659
  const { type: _, text: p, timeout: w } = l;
655
660
  n(_, p, w);
656
661
  }, o = (l) => {
657
- c(l);
662
+ u(l);
658
663
  };
659
664
  let r = 0;
660
665
  const n = (l, _, p) => {
661
666
  const w = r++;
662
667
  t.value.push({ id: w, type: l, text: _, timeout: p });
663
- }, c = (l) => {
668
+ }, u = (l) => {
664
669
  const _ = t.value.findIndex((p) => p.id === l);
665
670
  _ >= 0 && t.value.splice(_, 1);
666
671
  };
667
- return (l, _) => (q(), Q("div", {
672
+ return (l, _) => (q(), J("div", {
668
673
  class: "x-cont d-flex flex-column-reverse align-center",
669
674
  onClick: _[0] || (_[0] = $(() => {
670
675
  }, ["stop"]))
671
676
  }, [
672
- (q(!0), Q(ke, null, Ce(t.value, (p) => (q(), O(_t, {
677
+ (q(!0), J(ke, null, De(t.value, (p) => (q(), R(nt, {
673
678
  id: p.id,
674
679
  key: p.id,
675
680
  type: p.type,
@@ -679,75 +684,75 @@ const ut = /* @__PURE__ */ A({
679
684
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
680
685
  ]));
681
686
  }
682
- }), ft = /* @__PURE__ */ ae(dt, [["__scopeId", "data-v-c6a59757"]]), it = /* @__PURE__ */ A({
687
+ }), ut = /* @__PURE__ */ ae(ct, [["__scopeId", "data-v-c6a59757"]]), pt = /* @__PURE__ */ A({
683
688
  __name: "index",
684
689
  setup(e) {
685
- const { t } = P(), a = i(""), o = i(""), r = i(""), n = i(""), c = i(), l = i(""), _ = i(""), p = i(""), w = i(""), y = i(""), V = De("target");
686
- let C = 0, d = !1;
687
- const S = async (k) => {
690
+ const { t } = P(), a = f(""), o = f(""), r = f(""), n = f(""), u = f(), l = f(""), _ = f(""), p = f(""), w = f(""), y = f(""), j = Ce("target");
691
+ let D = 0, d = !1;
692
+ const V = async (k) => {
688
693
  var W, X, E, z;
689
694
  const s = k;
690
- a.value = s.title, o.value = s.text, r.value = s.label, n.value = s.placeholder, c.value = s.rules, l.value = s.value, _.value = ((W = s.cancel) == null ? void 0 : W.color) ?? "primary", p.value = ((X = s.cancel) == null ? void 0 : X.text) ?? t("dlg.common.cancel"), w.value = ((E = s.confirm) == null ? void 0 : E.color) ?? "primary", y.value = ((z = s.confirm) == null ? void 0 : z.text) ?? t("dlg.common.confirm"), C = s.seq, d = !1, g.value = !0, await ee(() => !!V.value), V.value.focus();
691
- }, { open: g } = te("promptDlg", S), D = i(!1), f = () => {
692
- g.value = !1, d || (u.emit("promptDlgResult" + C, l.value ?? ""), d = !0);
695
+ a.value = s.title, o.value = s.text, r.value = s.label, n.value = s.placeholder, u.value = s.rules, l.value = s.value, _.value = ((W = s.cancel) == null ? void 0 : W.color) ?? "primary", p.value = ((X = s.cancel) == null ? void 0 : X.text) ?? t("dlg.common.cancel"), w.value = ((E = s.confirm) == null ? void 0 : E.color) ?? "primary", y.value = ((z = s.confirm) == null ? void 0 : z.text) ?? t("dlg.common.confirm"), D = s.seq, d = !1, g.value = !0, await ee(() => !!j.value), j.value.focus();
696
+ }, { open: g } = te("promptDlg", V), C = f(!1), i = () => {
697
+ g.value = !1, d || (c.emit("promptDlgResult" + D, l.value ?? ""), d = !0);
693
698
  };
694
- return Y(g, (k) => {
695
- !k && !d && (u.emit("promptDlgResult" + C, void 0), d = !0);
699
+ return Q(g, (k) => {
700
+ !k && !d && (c.emit("promptDlgResult" + D, void 0), d = !0);
696
701
  }), (k, s) => {
697
702
  const W = h("v-card-text"), X = h("v-text-field"), E = h("v-btn"), z = h("v-card-actions"), he = h("v-form"), ye = h("v-card"), we = h("v-dialog");
698
- return q(), O(we, {
699
- modelValue: H(g),
700
- "onUpdate:modelValue": s[3] || (s[3] = (T) => F(g) ? g.value = T : null),
703
+ return q(), R(we, {
704
+ modelValue: Y(g),
705
+ "onUpdate:modelValue": s[3] || (s[3] = (T) => H(g) ? g.value = T : null),
701
706
  transition: "dialog-top-transition",
702
707
  "max-width": "600px",
703
708
  attach: "",
704
- onKeydown: s[4] || (s[4] = J($((T) => g.value = !1, ["stop", "prevent"]), ["esc"]))
709
+ onKeydown: s[4] || (s[4] = G($((T) => g.value = !1, ["stop", "prevent"]), ["esc"]))
705
710
  }, {
706
711
  default: m(() => [
707
- b(ye, { title: a.value }, {
712
+ x(ye, { title: a.value }, {
708
713
  default: m(() => [
709
- o.value ? (q(), O(W, { key: 0 }, {
714
+ o.value ? (q(), R(W, { key: 0 }, {
710
715
  default: m(() => [
711
- L(R(o.value), 1)
716
+ L(O(o.value), 1)
712
717
  ]),
713
718
  _: 1
714
719
  })) : Z("", !0),
715
- b(he, {
716
- modelValue: D.value,
717
- "onUpdate:modelValue": s[2] || (s[2] = (T) => D.value = T),
720
+ x(he, {
721
+ modelValue: C.value,
722
+ "onUpdate:modelValue": s[2] || (s[2] = (T) => C.value = T),
718
723
  class: "mx-3",
719
- onSubmit: $(f, ["prevent"])
724
+ onSubmit: $(i, ["prevent"])
720
725
  }, {
721
726
  default: m(() => [
722
- b(X, {
727
+ x(X, {
723
728
  ref_key: "target",
724
- ref: V,
729
+ ref: j,
725
730
  modelValue: l.value,
726
731
  "onUpdate:modelValue": s[0] || (s[0] = (T) => l.value = T),
727
732
  label: r.value,
728
733
  placeholder: n.value,
729
- rules: c.value
734
+ rules: u.value
730
735
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
731
- b(z, { class: "d-flex justify-end" }, {
736
+ x(z, { class: "d-flex justify-end" }, {
732
737
  default: m(() => [
733
- b(E, {
738
+ x(E, {
734
739
  variant: "text",
735
740
  color: _.value,
736
741
  onClick: s[1] || (s[1] = (T) => g.value = !1)
737
742
  }, {
738
743
  default: m(() => [
739
- L(R(p.value), 1)
744
+ L(O(p.value), 1)
740
745
  ]),
741
746
  _: 1
742
747
  }, 8, ["color"]),
743
- b(E, {
744
- disabled: !D.value,
748
+ x(E, {
749
+ disabled: !C.value,
745
750
  variant: "text",
746
751
  color: w.value,
747
752
  type: "submit"
748
753
  }, {
749
754
  default: m(() => [
750
- L(R(y.value), 1)
755
+ L(O(y.value), 1)
751
756
  ]),
752
757
  _: 1
753
758
  }, 8, ["disabled", "color"])
@@ -765,39 +770,39 @@ const ut = /* @__PURE__ */ A({
765
770
  }, 8, ["modelValue"]);
766
771
  };
767
772
  }
768
- }), gt = { class: "mx-auto my-auto" }, vt = { class: "w-100 h-100 d-flex align-center justify-center" }, mt = { class: "text-body-1" }, ht = /* @__PURE__ */ A({
773
+ }), st = { class: "mx-auto my-auto" }, _t = { class: "w-100 h-100 d-flex align-center justify-center" }, dt = { class: "text-body-1" }, it = /* @__PURE__ */ A({
769
774
  __name: "index",
770
775
  setup(e) {
771
- const { t } = P(), a = i(""), o = (c) => {
772
- const l = c;
776
+ const { t } = P(), a = f(""), o = (u) => {
777
+ const l = u;
773
778
  a.value = l.text ?? t("dlg.common.waiting"), n.value = !0;
774
779
  }, r = () => {
775
780
  n.value = !1;
776
781
  }, { open: n } = te("waitDlg", o);
777
782
  return K(() => {
778
- u.on("closeWaitDlg", r);
783
+ c.on("closeWaitDlg", r);
779
784
  }), U(() => {
780
- u.off("closeWaitDlg", r);
781
- }), (c, l) => {
785
+ c.off("closeWaitDlg", r);
786
+ }), (u, l) => {
782
787
  const _ = h("v-card"), p = h("v-dialog");
783
- return q(), O(p, {
784
- modelValue: H(n),
785
- "onUpdate:modelValue": l[0] || (l[0] = (w) => F(n) ? n.value = w : null),
788
+ return q(), R(p, {
789
+ modelValue: Y(n),
790
+ "onUpdate:modelValue": l[0] || (l[0] = (w) => H(n) ? n.value = w : null),
786
791
  persistent: "",
787
792
  "no-click-animation": "",
788
793
  fullscreen: "",
789
794
  attach: ""
790
795
  }, {
791
796
  default: m(() => [
792
- v("div", gt, [
793
- b(_, {
797
+ v("div", st, [
798
+ x(_, {
794
799
  width: "300px",
795
800
  height: "80px",
796
801
  loading: ""
797
802
  }, {
798
803
  default: m(() => [
799
- v("div", vt, [
800
- v("span", mt, R(a.value), 1)
804
+ v("div", _t, [
805
+ v("span", dt, O(a.value), 1)
801
806
  ])
802
807
  ]),
803
808
  _: 1
@@ -808,9 +813,9 @@ const ut = /* @__PURE__ */ A({
808
813
  }, 8, ["modelValue"]);
809
814
  };
810
815
  }
811
- }), yt = (e) => {
812
- e.component("XConfirmDlg", ut), e.component("XLoading", pt), e.component("XMessage", ft), e.component("XPromptDlg", it), e.component("XWaitDlg", ht);
813
- }, wt = (e, t, a) => {
816
+ }), ft = (e) => {
817
+ e.component("XConfirmDlg", at), e.component("XLoading", rt), e.component("XMessage", ut), e.component("XPromptDlg", pt), e.component("XWaitDlg", it);
818
+ }, gt = (e, t, a) => {
814
819
  const o = e[t];
815
820
  return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((r, n) => {
816
821
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
@@ -823,54 +828,55 @@ const ut = /* @__PURE__ */ A({
823
828
  );
824
829
  });
825
830
  };
826
- async function Ft(e) {
827
- return (await wt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.g2u6ybqk.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
831
+ async function Xt(e) {
832
+ return (await gt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.g2u6ybqk.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
828
833
  }
829
- const Gt = { install: yt };
834
+ const zt = { install: ft };
830
835
  export {
831
- ze as Permission,
832
- rt as addView,
833
- We as appAppear,
834
- Xt as clearViews,
835
- Tt as closeWaitDlg,
836
- Vt as createAxios,
837
- Gt as default,
838
- lt as delView,
839
- u as eventBus,
836
+ Ue as Permission,
837
+ Pe as addView,
838
+ Ae as appAppear,
839
+ Ut as clearViews,
840
+ Vt as closeWaitDlg,
841
+ xt as createAxios,
842
+ zt as default,
843
+ et as delView,
844
+ c as eventBus,
845
+ kt as globalObjects,
840
846
  me as hasView,
841
- At as injectDark,
842
- $t as injectLastAppPath,
843
- Et as injectLocale,
844
- Ut as injectPermissionChecksum,
845
- Je as injectPermissionObjects,
846
- Pe as injectViews,
847
- ot as isEmpty,
847
+ Lt as injectDark,
848
+ It as injectLastAppPath,
849
+ Mt as injectLocale,
850
+ Bt as injectPermissionChecksum,
851
+ ze as injectPermissionObjects,
852
+ Ge as injectViews,
853
+ Ze as isEmpty,
848
854
  le as isExist,
849
- Wt as lastView,
850
- Ft as loadLocaleMessageEssential,
855
+ Et as lastView,
856
+ Xt as loadLocaleMessageEssential,
851
857
  N as matchRouteMeta,
852
- Lt as messageError,
853
- Mt as messageInfo,
854
- Bt as messageSuccess,
855
- It as messageWarning,
856
- Kt as onBeforeEach,
857
- jt as openConfirmDlg,
858
- Rt as openPromptDlg,
859
- Ot as openWaitDlg,
860
- nt as popView,
861
- He as provideDark,
862
- Ye as provideLastAppPath,
863
- Fe as provideLocale,
864
- Qe as providePermissionChecksum,
865
- Ge as providePermissionObjects,
866
- Ze as provideViews,
867
- G as routeTransName,
868
- Ie as useColor,
869
- zt as useMicroApp,
870
- Nt as usePermission,
871
- Ht as useSystem,
858
+ St as messageError,
859
+ Ot as messageInfo,
860
+ Rt as messageSuccess,
861
+ Tt as messageWarning,
862
+ At as onBeforeEach,
863
+ Ct as openConfirmDlg,
864
+ qt as openPromptDlg,
865
+ jt as openWaitDlg,
866
+ tt as popView,
867
+ Ke as provideDark,
868
+ He as provideLastAppPath,
869
+ We as provideLocale,
870
+ Ne as providePermissionChecksum,
871
+ Xe as providePermissionObjects,
872
+ Fe as provideViews,
873
+ F as routeTransName,
874
+ Re as useColor,
875
+ $t as useMicroApp,
876
+ Kt as usePermission,
877
+ Wt as useSystem,
872
878
  te as useViewStack,
873
- Ne as verifyPermission,
874
- St as waitMs,
879
+ $e as verifyPermission,
880
+ Dt as waitMs,
875
881
  ee as waitUtil
876
882
  };