x-essential-lib 0.8.14 → 0.8.16

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