x-essential-lib 0.8.7 → 0.8.9

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,267 +1,181 @@
1
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 T, inject as A, ref as g, getCurrentInstance as ie, hasInjectionContext as de, watch as Q, getCurrentScope as Re, onScopeDispose as Ve, shallowRef as N, watchEffect as te, toValue as q, onMounted as B, unref as K, onBeforeUnmount as $, onBeforeMount as Ae, defineComponent as E, resolveComponent as b, createBlock as V, openBlock as L, withKeys as Z, withModifiers as H, isRef as J, withCtx as w, createVNode as C, createTextVNode as O, toDisplayString as R, Transition as qe, createElementBlock as ae, createCommentVNode as ne, normalizeStyle as fe, createElementVNode as y, Fragment as Oe, renderList as Ie, useTemplateRef as Te } from "vue";
3
- import { useI18n as re } from "vue-i18n";
4
- import { useTheme as ge, useDisplay as Be } from "vuetify";
5
- import { useRouter as ve, useRoute as Ee } from "vue-router";
6
- import We from "axios";
7
- function Ue() {
8
- const e = ge(), t = x(() => e.global.current.value.colors.primary), a = x(() => e.global.current.value.colors.secondary), o = x(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), n = x(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = x(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = x(() => e.current.value.dark ? "#303030" : "#f6f6f6"), r = x(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
2
+ import { computed as x, provide as B, inject as I, ref as f, 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";
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");
9
10
  return {
10
11
  primaryColor: t,
11
12
  secondaryColor: a,
12
13
  backgroundColor0: o,
13
- backgroundColor1: n,
14
- backgroundColor2: l,
14
+ backgroundColor1: r,
15
+ backgroundColor2: n,
15
16
  highlightColor: c,
16
- borderColor: r
17
+ borderColor: l
17
18
  };
18
19
  }
19
- /*! js-cookie v3.0.5 | MIT */
20
- function X(e) {
21
- for (var t = 1; t < arguments.length; t++) {
22
- var a = arguments[t];
23
- for (var o in a)
24
- e[o] = a[o];
25
- }
26
- return e;
27
- }
28
- var $e = {
29
- read: function(e) {
30
- return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
31
- },
32
- write: function(e) {
33
- return encodeURIComponent(e).replace(
34
- /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
35
- decodeURIComponent
36
- );
37
- }
38
- };
39
- function oe(e, t) {
40
- function a(n, l, c) {
41
- if (!(typeof document > "u")) {
42
- c = X({}, t, c), typeof c.expires == "number" && (c.expires = new Date(Date.now() + c.expires * 864e5)), c.expires && (c.expires = c.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
43
- var r = "";
44
- for (var u in c)
45
- c[u] && (r += "; " + u, c[u] !== !0 && (r += "=" + c[u].split(";")[0]));
46
- return document.cookie = n + "=" + e.write(l, n) + r;
47
- }
48
- }
49
- function o(n) {
50
- if (!(typeof document > "u" || arguments.length && !n)) {
51
- for (var l = document.cookie ? document.cookie.split("; ") : [], c = {}, r = 0; r < l.length; r++) {
52
- var u = l[r].split("="), s = u.slice(1).join("=");
53
- try {
54
- var i = decodeURIComponent(u[0]);
55
- if (c[i] = e.read(s, i), n === i)
56
- break;
57
- } catch {
58
- }
59
- }
60
- return n ? c[n] : c;
61
- }
62
- }
63
- return Object.create(
64
- {
65
- set: a,
66
- get: o,
67
- remove: function(n, l) {
68
- a(
69
- n,
70
- "",
71
- X({}, l, {
72
- expires: -1
73
- })
74
- );
75
- },
76
- withAttributes: function(n) {
77
- return oe(this.converter, X({}, this.attributes, n));
78
- },
79
- withConverter: function(n) {
80
- return oe(X({}, this.converter, n), this.attributes);
81
- }
82
- },
83
- {
84
- attributes: { value: Object.freeze(t) },
85
- converter: { value: Object.freeze(e) }
86
- }
87
- );
88
- }
89
- var I = oe($e, { path: "/" });
90
- function Jt(e) {
91
- const t = We.create({
20
+ function Vt(e) {
21
+ const t = Se.create({
92
22
  timeout: 6e3
93
23
  });
94
24
  return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
95
- (a) => He(a),
25
+ (a) => Ae(a),
96
26
  (a) => {
97
- Ke(a, e.onError);
27
+ Ee(a, e.onError);
98
28
  }
99
29
  ), t.interceptors.response.use(
100
- (a) => ze(a),
101
- (a) => Fe(a, e.onError)
30
+ (a) => Ue(a),
31
+ (a) => $e(a, e.onError)
102
32
  ), t;
103
33
  }
104
- function He(e) {
105
- const t = I.get("accessToken") ?? "";
34
+ function Ae(e) {
35
+ const t = M.get("accessToken") ?? "";
106
36
  return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
107
37
  }
108
- function Ke(e, t) {
38
+ function Ee(e, t) {
109
39
  console.error(e), t("request timeout");
110
40
  }
111
- function ze(e) {
41
+ function Ue(e) {
112
42
  return e.data;
113
43
  }
114
- function Fe(e, t) {
115
- var n, l;
44
+ function $e(e, t) {
45
+ var r, n;
116
46
  const o = e.response;
117
- return o && (o.status === 401 && Xe(), (n = o.data) != null && n.message ? t((l = o.data) == null ? void 0 : l.message) : t({
47
+ return o && (o.status === 401 && Ke(), (r = o.data) != null && r.message ? t((n = o.data) == null ? void 0 : n.message) : t({
118
48
  code: o.status,
119
49
  message: o.statusText
120
50
  })), Promise.reject(e);
121
51
  }
122
- function Xe() {
123
- I.remove("accessToken"), I.remove("refreshToken"), I.remove("activeOrg"), ve().replace({ path: "/passport/login" });
124
- }
125
- function Ne(e) {
126
- return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, a) {
127
- var o = e.get(t);
128
- o ? o.push(a) : e.set(t, [a]);
129
- }, off: function(t, a) {
130
- var o = e.get(t);
131
- o && (a ? o.splice(o.indexOf(a) >>> 0, 1) : e.set(t, []));
132
- }, emit: function(t, a) {
133
- var o = e.get(t);
134
- o && o.slice().map(function(n) {
135
- n(a);
136
- }), (o = e.get("*")) && o.slice().map(function(n) {
137
- n(t, a);
138
- });
139
- } };
52
+ function Ke() {
53
+ M.remove("accessToken"), M.remove("refreshToken"), M.remove("activeOrg"), ce().replace({ path: "/passport/login" });
140
54
  }
141
- const p = function() {
142
- return window.eventBus || (window.eventBus = Ne()), window.eventBus;
55
+ const u = function() {
56
+ return window.eventBus || (window.eventBus = je()), window.eventBus;
143
57
  }();
144
- async function Yt(e) {
58
+ async function St(e) {
145
59
  return new Promise((t) => {
146
60
  setTimeout(t, e);
147
61
  });
148
62
  }
149
- async function le(e, t, a) {
63
+ async function ee(e, t, a) {
150
64
  const o = Date.now();
151
- return new Promise((n) => {
152
- const l = async () => {
153
- e() ? n(!0) : t && Date.now() - o > t ? n(!1) : setTimeout(l, a ?? 30);
65
+ return new Promise((r) => {
66
+ const n = async () => {
67
+ e() ? r(!0) : t && Date.now() - o > t ? r(!1) : setTimeout(n, a ?? 30);
154
68
  };
155
- l();
69
+ n();
156
70
  });
157
71
  }
158
- function Ze(e, t) {
72
+ function We(e, t) {
159
73
  const a = document.getElementById("single-spa-application:" + e);
160
74
  a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
161
75
  a.classList.add("app-reset");
162
76
  }, 50));
163
77
  }
164
- let se = Date.now();
165
- function me() {
78
+ let re = Date.now();
79
+ function pe() {
166
80
  const e = Date.now();
167
- return e - se > 500 ? (se = e, !0) : !1;
81
+ return e - re > 500 ? (re = e, !0) : !1;
168
82
  }
169
- let Ge = 0;
170
- function he() {
171
- return ++Ge;
83
+ let Xe = 0;
84
+ function se() {
85
+ return ++Xe;
172
86
  }
173
- async function Pt(e) {
174
- if (!me())
87
+ async function jt(e) {
88
+ if (!pe())
175
89
  return;
176
90
  let t = !1, a;
177
- const o = (l) => {
178
- a = l, t = !0;
179
- }, n = he();
180
- return p.on("confirmDlgResult" + n, o), p.emit("confirmDlg", { ...e, seq: n }), await le(() => t), p.off("confirmDlgResult" + n, o), a;
91
+ const o = (n) => {
92
+ a = n, t = !0;
93
+ }, r = se();
94
+ return u.on("confirmDlgResult" + r, o), u.emit("confirmDlg", { ...e, seq: r }), await ee(() => t), u.off("confirmDlgResult" + r, o), a;
181
95
  }
182
- async function ea(e) {
183
- if (!me())
96
+ async function Rt(e) {
97
+ if (!pe())
184
98
  return;
185
99
  let t = !1, a;
186
- const o = (l) => {
187
- a = l, t = !0;
188
- }, n = he();
189
- return p.on("promptDlgResult" + n, o), p.emit("promptDlg", { ...e, seq: n }), await le(() => t), p.off("promptDlgResult" + n, o), a;
100
+ const o = (n) => {
101
+ a = n, t = !0;
102
+ }, r = se();
103
+ return u.on("promptDlgResult" + r, o), u.emit("promptDlg", { ...e, seq: r }), await ee(() => t), u.off("promptDlgResult" + r, o), a;
190
104
  }
191
- function ta(e) {
192
- p.emit("openWaitDlg", { text: e });
105
+ function Ot(e) {
106
+ u.emit("openWaitDlg", { text: e });
193
107
  }
194
- function aa() {
195
- p.emit("closeWaitDlg");
108
+ function Tt() {
109
+ u.emit("closeWaitDlg");
196
110
  }
197
- function oa(e, t) {
198
- p.emit("message", { type: "error", text: e, timeout: t });
111
+ function Lt(e, t) {
112
+ u.emit("message", { type: "error", text: e, timeout: t });
199
113
  }
200
- function na(e, t) {
201
- p.emit("message", { type: "info", text: e, timeout: t });
114
+ function Mt(e, t) {
115
+ u.emit("message", { type: "info", text: e, timeout: t });
202
116
  }
203
- function ra(e, t) {
204
- p.emit("message", { type: "success", text: e, timeout: t });
117
+ function Bt(e, t) {
118
+ u.emit("message", { type: "success", text: e, timeout: t });
205
119
  }
206
- function la(e, t) {
207
- p.emit("message", { type: "warning", text: e, timeout: t });
120
+ function It(e, t) {
121
+ u.emit("message", { type: "warning", text: e, timeout: t });
208
122
  }
209
- var Qe = /* @__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))(Qe || {});
210
- function pe(e, t) {
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 || {});
124
+ function le(e, t) {
211
125
  if (!e)
212
126
  return !1;
213
127
  let a = e;
214
- return Object.keys(a).length <= 0 || (t.split("/").forEach((n) => {
128
+ return Object.keys(a).length <= 0 || (t.split("/").forEach((r) => {
215
129
  if (Object.keys(a).length <= 0)
216
130
  return !0;
217
- if (a[n])
218
- a = a[n];
131
+ if (a[r])
132
+ a = a[r];
219
133
  else
220
134
  return !1;
221
135
  }), Object.keys(a).length <= 0);
222
136
  }
223
- function Je(e, t, a) {
137
+ function Ne(e, t, a) {
224
138
  const o = e[t];
225
- return o ? a ? !(!pe(o.includes, a) || pe(o.excludes, a)) : !0 : !1;
139
+ return o ? a ? !(!le(o.includes, a) || le(o.excludes, a)) : !0 : !1;
226
140
  }
227
- const ye = "essentialDark", we = "essentialLocale", xe = "essentialPermissionObjects", be = "essentialPermissionChecksum", ke = "essentialLastAppPath", Ce = "essentialViews";
228
- function Ye(e) {
229
- T(ye, e);
141
+ const _e = "essentialDark", de = "essentialLocale", ie = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
142
+ function He(e) {
143
+ B(_e, e);
230
144
  }
231
- function ca() {
232
- return A(ye);
145
+ function At() {
146
+ return I(_e);
233
147
  }
234
- function Pe(e) {
235
- T(we, e);
148
+ function Fe(e) {
149
+ B(de, e);
236
150
  }
237
- function ua() {
238
- return A(we);
151
+ function Et() {
152
+ return I(de);
239
153
  }
240
- function et(e) {
241
- T(xe, e);
154
+ function Ge(e) {
155
+ B(ie, e);
242
156
  }
243
- function tt() {
244
- return A(xe);
157
+ function Je() {
158
+ return I(ie);
245
159
  }
246
- function at(e) {
247
- T(be, e);
160
+ function Qe(e) {
161
+ B(fe, e);
248
162
  }
249
- function sa() {
250
- return A(be);
163
+ function Ut() {
164
+ return I(fe);
251
165
  }
252
- function ot(e) {
253
- T(ke, e);
166
+ function Ye(e) {
167
+ B(ge, e);
254
168
  }
255
- function pa() {
256
- return A(ke);
169
+ function $t() {
170
+ return I(ge);
257
171
  }
258
- function nt(e) {
259
- T(Ce, e);
172
+ function Ze(e) {
173
+ B(ve, e);
260
174
  }
261
- function rt() {
262
- return A(Ce);
175
+ function Pe() {
176
+ return I(ve);
263
177
  }
264
- const lt = [
178
+ const et = [
265
179
  {
266
180
  app: "x-passport-mf",
267
181
  path: "/passport/login",
@@ -369,264 +283,159 @@ const lt = [
369
283
  mainActive: 2
370
284
  }
371
285
  ];
372
- function G(e) {
286
+ function N(e) {
373
287
  let t, a = 0;
374
- const o = e.split("/").filter((n) => n.trim() !== "");
375
- return lt.forEach((n) => {
376
- const l = n.path.split("/").filter((r) => r.trim() !== "");
288
+ const o = e.split("/").filter((r) => r.trim() !== "");
289
+ return et.forEach((r) => {
290
+ const n = r.path.split("/").filter((l) => l.trim() !== "");
377
291
  let c = 0;
378
- for (let r = 0; r < o.length && !(r >= l.length || o[r] !== l[r]); r++)
292
+ for (let l = 0; l < o.length && !(l >= n.length || o[l] !== n[l]); l++)
379
293
  c++;
380
- c > 0 && c > a && (t = n, a = c);
294
+ c > 0 && c > a && (t = r, a = c);
381
295
  }), t;
382
296
  }
383
- const Y = g("");
384
- function S(e, t, a) {
297
+ const G = f("");
298
+ function j(e, t, a) {
385
299
  t === "/" && (t = a);
386
- const o = G(e), n = G(t);
300
+ const o = N(e), r = N(t);
387
301
  if (!o) {
388
302
  console.assert(!1);
389
303
  return;
390
304
  }
391
- if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !n)
305
+ if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !r)
392
306
  return;
393
- const l = o.app === n.app, c = o.path === n.path, r = o.level >= n.level;
394
- l ? c ? Y.value = "" : Y.value = r ? "inner-left" : "inner-right" : (Y.value = "", Ze(o.app, r));
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));
395
309
  }
396
- function ct() {
397
- return !!I.get("accessToken");
310
+ function tt() {
311
+ return !!M.get("accessToken");
398
312
  }
399
- function ut() {
400
- return !!I.get("activeOrg");
313
+ function at() {
314
+ return !!M.get("activeOrg");
401
315
  }
402
- function _a(e, t, a, o) {
403
- const n = ct(), l = ut(), c = G(e.path);
316
+ function Kt(e, t, a, o) {
317
+ const r = tt(), n = at(), c = N(e.path);
404
318
  if (!c) {
405
319
  console.assert(!1), a();
406
320
  return;
407
321
  }
408
322
  if (c.requiredState === "auth")
409
- if (n)
410
- if (l) {
411
- const r = "/main";
412
- S(r, t.path, o), a({ path: r });
323
+ if (r)
324
+ if (n) {
325
+ const l = "/main";
326
+ j(l, t.path, o), a({ path: l });
413
327
  } else
414
- S(e.path, t.path, o), a();
328
+ j(e.path, t.path, o), a();
415
329
  else {
416
- const r = "/passport/login";
417
- S(r, t.path, o), a({ path: r });
330
+ const l = "/passport/login";
331
+ j(l, t.path, o), a({ path: l });
418
332
  }
419
333
  else if (c.requiredState === "org")
420
- if (n)
421
- if (l)
422
- S(e.path, t.path, o), a();
334
+ if (r)
335
+ if (n)
336
+ j(e.path, t.path, o), a();
423
337
  else {
424
- const r = "/org/joinOrCreate";
425
- S(r, t.path, o), a({ path: r });
338
+ const l = "/org/joinOrCreate";
339
+ j(l, t.path, o), a({ path: l });
426
340
  }
427
341
  else {
428
- const r = "/passport/login";
429
- S(r, t.path, o), a({ path: r });
342
+ const l = "/passport/login";
343
+ j(l, t.path, o), a({ path: l });
430
344
  }
431
- else if (n)
432
- if (l) {
433
- const r = "/main";
434
- S(r, t.path, o), a({ path: r });
345
+ else if (r)
346
+ if (n) {
347
+ const l = "/main";
348
+ j(l, t.path, o), a({ path: l });
435
349
  } else {
436
- const r = "/org/joinOrCreate";
437
- S(r, t.path, o), a({ path: r });
350
+ const l = "/org/joinOrCreate";
351
+ j(l, t.path, o), a({ path: l });
438
352
  }
439
353
  else
440
- S(e.path, t.path, o), a();
354
+ j(e.path, t.path, o), a();
441
355
  }
442
- function st(e) {
356
+ function ot(e) {
443
357
  return e.value.length <= 0;
444
358
  }
445
- function ia(e) {
359
+ function Wt(e) {
446
360
  return e.value.at(-1);
447
361
  }
448
- function Le(e, t) {
362
+ function me(e, t) {
449
363
  return !!e.value.find((a) => a === t);
450
364
  }
451
- function pt(e, t) {
365
+ function rt(e, t) {
452
366
  const a = e.value.findIndex((o) => o === t);
453
367
  a >= 0 && e.value.splice(a, 1), e.value.push(t);
454
368
  }
455
- function _t(e, t) {
369
+ function lt(e, t) {
456
370
  const a = e.value.findIndex((o) => o === t);
457
371
  a >= 0 && e.value.splice(a, 1);
458
372
  }
459
- function it(e) {
373
+ function nt(e) {
460
374
  console.assert(e.value.length > 0), e.value.pop();
461
375
  }
462
- function da(e) {
376
+ function Xt(e) {
463
377
  e.value = [];
464
378
  }
465
- function dt(e) {
466
- return Re() ? (Ve(e), !0) : !1;
467
- }
468
- const P = /* @__PURE__ */ new WeakMap(), ft = (...e) => {
469
- var t;
470
- const a = e[0], o = (t = ie()) == null ? void 0 : t.proxy;
471
- if (o == null && !de())
472
- throw new Error("injectLocal must be called in setup");
473
- return o && P.has(o) && a in P.get(o) ? P.get(o)[a] : A(...e);
474
- }, gt = typeof window < "u" && typeof document < "u";
475
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
476
- const vt = Object.prototype.toString, mt = (e) => vt.call(e) === "[object Object]";
477
- function _e(e) {
478
- return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
479
- }
480
- function ee(e) {
481
- return Array.isArray(e) ? e : [e];
482
- }
483
- function ht(e, t, a) {
484
- return Q(
485
- e,
486
- t,
487
- {
488
- ...a,
489
- immediate: !0
490
- }
491
- );
492
- }
493
- const De = gt ? window : void 0;
494
- function yt(e) {
495
- var t;
496
- const a = q(e);
497
- return (t = a == null ? void 0 : a.$el) != null ? t : a;
498
- }
499
- function wt(...e) {
500
- const t = [], a = () => {
501
- t.forEach((r) => r()), t.length = 0;
502
- }, o = (r, u, s, i) => (r.addEventListener(u, s, i), () => r.removeEventListener(u, s, i)), n = x(() => {
503
- const r = ee(q(e[0])).filter((u) => u != null);
504
- return r.every((u) => typeof u != "string") ? r : void 0;
505
- }), l = ht(
506
- () => {
507
- var r, u;
508
- return [
509
- (u = (r = n.value) == null ? void 0 : r.map((s) => yt(s))) != null ? u : [De].filter((s) => s != null),
510
- ee(q(n.value ? e[1] : e[0])),
511
- ee(K(n.value ? e[2] : e[1])),
512
- // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
513
- q(n.value ? e[3] : e[2])
514
- ];
515
- },
516
- ([r, u, s, i]) => {
517
- if (a(), !(r != null && r.length) || !(u != null && u.length) || !(s != null && s.length))
518
- return;
519
- const v = mt(i) ? { ...i } : i;
520
- t.push(
521
- ...r.flatMap(
522
- (k) => u.flatMap(
523
- (m) => s.map((_) => o(k, m, _, v))
524
- )
525
- )
526
- );
527
- },
528
- { flush: "post" }
529
- ), c = () => {
530
- l(), a();
531
- };
532
- return dt(a), c;
533
- }
534
- function xt() {
535
- const e = N(!1), t = ie();
536
- return t && B(() => {
537
- e.value = !0;
538
- }, t), e;
539
- }
540
- function bt(e) {
541
- const t = xt();
542
- return x(() => (t.value, !!e()));
543
- }
544
- const kt = Symbol("vueuse-ssr-width");
545
- function Ct() {
546
- const e = de() ? ft(kt, null) : null;
547
- return typeof e == "number" ? e : void 0;
548
- }
549
- function Lt(e, t = {}) {
550
- const { window: a = De, ssrWidth: o = Ct() } = t, n = bt(() => a && "matchMedia" in a && typeof a.matchMedia == "function"), l = N(typeof o == "number"), c = N(), r = N(!1), u = (s) => {
551
- r.value = s.matches;
552
- };
553
- return te(() => {
554
- if (l.value) {
555
- l.value = !n.value;
556
- const s = q(e).split(",");
557
- r.value = s.some((i) => {
558
- const v = i.includes("not all"), k = i.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = i.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
559
- let _ = !!(k || m);
560
- return k && _ && (_ = o >= _e(k[1])), m && _ && (_ = o <= _e(m[1])), v ? !_ : _;
561
- });
562
- return;
563
- }
564
- n.value && (c.value = a.matchMedia(q(e)), r.value = c.value.matches);
565
- }), wt(c, "change", u, { passive: !0 }), x(() => r.value);
566
- }
567
- function Dt(e) {
568
- return Lt("(prefers-color-scheme: dark)", e);
569
- }
570
- function fa(e, t, a, o, n, l) {
571
- const c = Ee(), r = ve(), u = Dt(), s = g(!1);
572
- te(() => {
573
- let f = !1;
574
- typeof e.value == "boolean" ? f = e.value : f = u.value, s.value = f;
575
- }), Ye(s), Pe(t), et(a), at(o), ot(n), nt(l);
576
- const i = ge();
577
- te(() => {
578
- i.global.name.value = s.value ? "dark" : "light";
379
+ function zt(e, t, a, o, r, n) {
380
+ const c = Ve(), l = ce(), _ = Re(), p = f(!1);
381
+ oe(() => {
382
+ let i = !1;
383
+ typeof e.value == "boolean" ? i = e.value : i = _.value, p.value = i;
384
+ }), He(p), Fe(t), Ge(a), Qe(o), Ye(r), Ze(n);
385
+ const w = ue();
386
+ oe(() => {
387
+ w.global.name.value = p.value ? "dark" : "light";
579
388
  });
580
- const v = () => {
581
- var d;
582
- if (!st(l)) {
583
- Le(l, "waitDlg") || it(l);
389
+ const y = () => {
390
+ var k;
391
+ if (!ot(n)) {
392
+ me(n, "waitDlg") || nt(n);
584
393
  return;
585
394
  }
586
- const f = G(c.path);
587
- if (!f) {
395
+ const i = N(c.path);
396
+ if (!i) {
588
397
  console.assert(!1);
589
398
  return;
590
399
  }
591
- f.level === 0 ? (d = navigator == null ? void 0 : navigator.Backbutton) == null || d.goHome(
400
+ i.level === 0 ? (k = navigator == null ? void 0 : navigator.Backbutton) == null || k.goHome(
592
401
  () => {
593
402
  },
594
403
  () => {
595
404
  }
596
- ) : r.back();
597
- }, k = (f) => {
598
- if (f.key === "Escape") {
599
- v();
405
+ ) : l.back();
406
+ }, V = (i) => {
407
+ if (i.key === "Escape") {
408
+ y();
600
409
  return;
601
410
  }
602
- }, m = () => {
603
- v();
411
+ }, C = () => {
412
+ y();
604
413
  };
605
- B(() => {
606
- window.addEventListener("keydown", k), p.on("backbutton", m);
607
- }), $(() => {
608
- window.removeEventListener("keydown", k), p.off("backbutton", m);
414
+ K(() => {
415
+ window.addEventListener("keydown", V), u.on("backbutton", C);
416
+ }), U(() => {
417
+ window.removeEventListener("keydown", V), u.off("backbutton", C);
609
418
  });
610
- const _ = (f) => {
611
- e.value = f;
612
- }, M = (f) => {
613
- t.value = f;
614
- }, h = (f) => {
615
- const d = f;
616
- a.value = d[0], o.value = d[1];
617
- }, D = (f) => {
618
- n.value = f;
419
+ const d = (i) => {
420
+ e.value = i;
421
+ }, S = (i) => {
422
+ t.value = i;
423
+ }, g = (i) => {
424
+ const k = i;
425
+ a.value = k[0], o.value = k[1];
426
+ }, D = (i) => {
427
+ r.value = i;
619
428
  };
620
- Ae(() => {
621
- p.on("updateDark", _), p.on("updateLocale", M), p.on("updatePermission", h), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
622
- }), $(() => {
623
- p.off("updateDark", _), p.off("updateLocale", M), p.off("updatePermission", h), p.off("updateLastAppPath", D);
429
+ xe(() => {
430
+ u.on("updateDark", d), u.on("updateLocale", S), u.on("updatePermission", g), u.on("updateLastAppPath", D), u.emit("syncGlobalState");
431
+ }), U(() => {
432
+ u.off("updateDark", d), u.off("updateLocale", S), u.off("updatePermission", g), u.off("updateLastAppPath", D);
624
433
  });
625
434
  }
626
- function ga() {
627
- const e = tt();
435
+ function Nt() {
436
+ const e = Je();
628
437
  function t(a, o) {
629
- return Je(
438
+ return Ne(
630
439
  e.value,
631
440
  a,
632
441
  o ?? ""
@@ -634,82 +443,87 @@ function ga() {
634
443
  }
635
444
  return { verifyPermission: t };
636
445
  }
637
- function va() {
638
- const e = x(() => !!window.cordova), t = Be(), a = x(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
639
- return { sysBarAvail: e, compactWidth: a };
446
+ function Ht() {
447
+ 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");
448
+ function o() {
449
+ return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
450
+ navigator.userAgent
451
+ );
452
+ }
453
+ return { sysBarAvail: e, compactWidth: a, isMobile: o };
640
454
  }
641
- function ce(e, t) {
642
- const a = rt(), o = x({
455
+ function te(e, t) {
456
+ const a = Pe(), o = x({
643
457
  get() {
644
- return Le(a, e);
458
+ return me(a, e);
645
459
  },
646
- set(l) {
647
- l ? pt(a, e) : _t(a, e);
460
+ set(n) {
461
+ n ? rt(a, e) : lt(a, e);
648
462
  }
649
- }), n = (l) => {
650
- t == null || t(l), o.value = !0;
463
+ }), r = (n) => {
464
+ t == null || t(n), o.value = !0;
651
465
  };
652
- return B(() => {
653
- p.on(e, n);
654
- }), $(() => {
655
- p.off(e, n);
466
+ return K(() => {
467
+ u.on(e, r);
468
+ }), U(() => {
469
+ u.off(e, r);
656
470
  }), { open: o };
657
471
  }
658
- const Mt = /* @__PURE__ */ E({
472
+ const ut = /* @__PURE__ */ A({
659
473
  __name: "index",
660
474
  setup(e) {
661
- const { t } = re(), a = g(""), o = g(""), n = g(""), l = g(""), c = g(""), r = g("");
662
- let u = 0, s = !1;
663
- const i = (m) => {
664
- var M, h, D, f;
665
- const _ = m;
666
- a.value = _.title, o.value = _.text, n.value = ((M = _.cancel) == null ? void 0 : M.color) ?? "primary", l.value = ((h = _.cancel) == null ? void 0 : h.text) ?? t("dlg.common.cancel"), c.value = ((D = _.confirm) == null ? void 0 : D.color) ?? "primary", r.value = ((f = _.confirm) == null ? void 0 : f.text) ?? t("dlg.common.confirm"), u = _.seq, s = !1, v.value = !0;
667
- }, { open: v } = ce("confirmDlg", i), k = () => {
668
- v.value = !1, s || (p.emit("confirmDlgResult" + u, !0), s = !0);
475
+ const { t } = P(), a = f(""), o = f(""), r = f(""), n = f(""), c = f(""), l = f("");
476
+ let _ = 0, p = !1;
477
+ const w = (C) => {
478
+ var S, g, D, i;
479
+ const d = C;
480
+ 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 = ((i = d.confirm) == null ? void 0 : i.text) ?? t("dlg.common.confirm"), _ = d.seq, p = !1, y.value = !0;
481
+ }, { open: y } = te("confirmDlg", w), V = () => {
482
+ y.value = !1, p || (u.emit("confirmDlgResult" + _, !0), p = !0);
669
483
  };
670
- return Q(v, (m) => {
671
- !m && !s && (p.emit("confirmDlgResult" + u, !1), s = !0);
672
- }), (m, _) => {
673
- const M = b("v-card-text"), h = b("v-btn"), D = b("v-card-actions"), f = b("v-card"), d = b("v-dialog");
674
- return L(), V(d, {
675
- modelValue: K(v),
676
- "onUpdate:modelValue": _[1] || (_[1] = (j) => J(v) ? v.value = j : null),
484
+ return Y(y, (C) => {
485
+ !C && !p && (u.emit("confirmDlgResult" + _, !1), p = !0);
486
+ }), (C, d) => {
487
+ const S = h("v-card-text"), g = h("v-btn"), D = h("v-card-actions"), i = h("v-card"), k = h("v-dialog");
488
+ return q(), O(k, {
489
+ modelValue: H(y),
490
+ "onUpdate:modelValue": d[1] || (d[1] = (s) => F(y) ? y.value = s : null),
677
491
  transition: "dialog-top-transition",
678
492
  "max-width": "600px",
679
493
  attach: "",
680
494
  onKeydown: [
681
- _[2] || (_[2] = Z(H((j) => v.value = !1, ["stop", "prevent"]), ["esc"])),
682
- Z(H(k, ["stop", "prevent"]), ["enter"])
495
+ d[2] || (d[2] = J($((s) => y.value = !1, ["stop", "prevent"]), ["esc"])),
496
+ J($(V, ["stop", "prevent"]), ["enter"])
683
497
  ]
684
498
  }, {
685
- default: w(() => [
686
- C(f, { title: a.value }, {
687
- default: w(() => [
688
- C(M, null, {
689
- default: w(() => [
690
- O(R(o.value), 1)
499
+ default: m(() => [
500
+ b(i, { title: a.value }, {
501
+ default: m(() => [
502
+ b(S, null, {
503
+ default: m(() => [
504
+ L(R(o.value), 1)
691
505
  ]),
692
506
  _: 1
693
507
  }),
694
- C(D, { class: "d-flex justify-end" }, {
695
- default: w(() => [
696
- C(h, {
697
- color: n.value,
508
+ b(D, { class: "d-flex justify-end" }, {
509
+ default: m(() => [
510
+ b(g, {
511
+ color: r.value,
698
512
  variant: "text",
699
- onClick: _[0] || (_[0] = (j) => v.value = !1)
513
+ onClick: d[0] || (d[0] = (s) => y.value = !1)
700
514
  }, {
701
- default: w(() => [
702
- O(R(l.value), 1)
515
+ default: m(() => [
516
+ L(R(n.value), 1)
703
517
  ]),
704
518
  _: 1
705
519
  }, 8, ["color"]),
706
- C(h, {
520
+ b(g, {
707
521
  color: c.value,
708
522
  variant: "text",
709
- onClick: k
523
+ onClick: V
710
524
  }, {
711
- default: w(() => [
712
- O(R(r.value), 1)
525
+ default: m(() => [
526
+ L(R(l.value), 1)
713
527
  ]),
714
528
  _: 1
715
529
  }, 8, ["color"])
@@ -724,52 +538,50 @@ const Mt = /* @__PURE__ */ E({
724
538
  }, 8, ["modelValue", "onKeydown"]);
725
539
  };
726
540
  }
727
- }), St = /* @__PURE__ */ E({
541
+ }), ct = /* @__PURE__ */ A({
728
542
  __name: "index",
729
543
  props: {
730
544
  open: { type: Boolean, default: !0 },
731
545
  zIndex: { default: 1 }
732
546
  },
733
547
  setup(e) {
734
- const { backgroundColor2: t } = Ue(), a = x(() => ({
548
+ const { backgroundColor2: t } = Ie(), a = x(() => ({
735
549
  background: t.value,
736
550
  zIndex: e.zIndex
737
551
  }));
738
552
  let o = 0;
739
- return (n, l) => (L(), V(qe, { name: "fade" }, {
740
- default: w(() => [
741
- n.open ? (L(), ae("div", {
742
- key: J(o) ? ++o.value : ++o,
553
+ return (r, n) => (q(), O(be, { name: "fade" }, {
554
+ default: m(() => [
555
+ r.open ? (q(), Q("div", {
556
+ key: F(o) ? ++o.value : ++o,
743
557
  class: "x-cont",
744
- style: fe(a.value)
745
- }, l[0] || (l[0] = [
746
- y("div", { class: "lds-spinner" }, [
747
- y("div"),
748
- y("div"),
749
- y("div"),
750
- y("div"),
751
- y("div"),
752
- y("div"),
753
- y("div"),
754
- y("div"),
755
- y("div"),
756
- y("div"),
757
- y("div"),
758
- y("div")
558
+ style: ne(a.value)
559
+ }, n[0] || (n[0] = [
560
+ v("div", { class: "lds-spinner" }, [
561
+ v("div"),
562
+ v("div"),
563
+ v("div"),
564
+ v("div"),
565
+ v("div"),
566
+ v("div"),
567
+ v("div"),
568
+ v("div"),
569
+ v("div"),
570
+ v("div"),
571
+ v("div"),
572
+ v("div")
759
573
  ], -1)
760
- ]), 4)) : ne("", !0)
574
+ ]), 4)) : Z("", !0)
761
575
  ]),
762
576
  _: 1
763
577
  }));
764
578
  }
765
- }), ue = (e, t) => {
579
+ }), ae = (e, t) => {
766
580
  const a = e.__vccOpts || e;
767
- for (const [o, n] of t)
768
- a[o] = n;
581
+ for (const [o, r] of t)
582
+ a[o] = r;
769
583
  return a;
770
- }, jt = /* @__PURE__ */ ue(St, [["__scopeId", "data-v-0c686889"]]);
771
- var Rt = "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", Vt = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", At = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", qt = "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z", Ot = "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";
772
- const It = /* @__PURE__ */ E({
584
+ }, pt = /* @__PURE__ */ ae(ct, [["__scopeId", "data-v-0c686889"]]), st = /* @__PURE__ */ A({
773
585
  __name: "item",
774
586
  props: {
775
587
  id: {},
@@ -785,203 +597,206 @@ const It = /* @__PURE__ */ E({
785
597
  })), o = x(() => {
786
598
  switch (e.type) {
787
599
  case "success":
788
- return Vt;
600
+ return Me;
789
601
  case "info":
790
- return Ot;
602
+ return Le;
791
603
  case "error":
792
- return qt;
604
+ return Te;
793
605
  case "warning":
794
- return Rt;
606
+ return Oe;
795
607
  default:
796
608
  return "";
797
609
  }
798
- }), n = g(!0), l = t;
799
- return B(() => {
610
+ }), r = f(!0), n = t;
611
+ return K(() => {
800
612
  setTimeout(() => {
801
- l("timeout", e.id);
613
+ n("timeout", e.id);
802
614
  }, e.timeout);
803
- }), Q(n, (c) => {
804
- c || l("timeout", e.id);
805
- }), (c, r) => {
806
- const u = b("v-icon"), s = b("v-sheet");
807
- return L(), V(s, {
615
+ }), Y(r, (c) => {
616
+ c || n("timeout", e.id);
617
+ }), (c, l) => {
618
+ const _ = h("v-icon"), p = h("v-sheet");
619
+ return q(), O(p, {
808
620
  class: "x-item d-flex align-center py-2 mb-2",
809
621
  color: c.type,
810
622
  elevation: 1
811
623
  }, {
812
- default: w(() => [
813
- o.value ? (L(), V(u, {
624
+ default: m(() => [
625
+ o.value ? (q(), O(_, {
814
626
  key: 0,
815
627
  class: "mx-1",
816
628
  icon: o.value
817
- }, null, 8, ["icon"])) : ne("", !0),
818
- y("div", {
819
- style: fe(a.value)
629
+ }, null, 8, ["icon"])) : Z("", !0),
630
+ v("div", {
631
+ style: ne(a.value)
820
632
  }, R(c.text), 5),
821
- C(u, {
633
+ b(_, {
822
634
  class: "mx-1",
823
- icon: K(At),
824
- onClick: r[0] || (r[0] = (i) => l("timeout", c.id))
635
+ icon: H(Be),
636
+ onClick: l[0] || (l[0] = (w) => n("timeout", c.id))
825
637
  }, null, 8, ["icon"])
826
638
  ]),
827
639
  _: 1
828
640
  }, 8, ["color"]);
829
641
  };
830
642
  }
831
- }), Tt = /* @__PURE__ */ ue(It, [["__scopeId", "data-v-74835a85"]]), Bt = /* @__PURE__ */ E({
643
+ }), _t = /* @__PURE__ */ ae(st, [["__scopeId", "data-v-74835a85"]]), dt = /* @__PURE__ */ A({
832
644
  __name: "index",
833
645
  setup(e) {
834
- const t = g([]);
835
- B(() => {
836
- p.on("message", a);
837
- }), $(() => {
838
- p.off("message", a);
646
+ const t = f([]);
647
+ K(() => {
648
+ u.on("message", a);
649
+ }), U(() => {
650
+ u.off("message", a);
839
651
  });
840
- const a = (r) => {
841
- const { type: u, text: s, timeout: i } = r;
842
- l(u, s, i);
843
- }, o = (r) => {
844
- c(r);
652
+ const a = (l) => {
653
+ const { type: _, text: p, timeout: w } = l;
654
+ n(_, p, w);
655
+ }, o = (l) => {
656
+ c(l);
845
657
  };
846
- let n = 0;
847
- const l = (r, u, s) => {
848
- const i = n++;
849
- t.value.push({ id: i, type: r, text: u, timeout: s });
850
- }, c = (r) => {
851
- const u = t.value.findIndex((s) => s.id === r);
852
- u >= 0 && t.value.splice(u, 1);
658
+ let r = 0;
659
+ const n = (l, _, p) => {
660
+ const w = r++;
661
+ t.value.push({ id: w, type: l, text: _, timeout: p });
662
+ }, c = (l) => {
663
+ const _ = t.value.findIndex((p) => p.id === l);
664
+ _ >= 0 && t.value.splice(_, 1);
853
665
  };
854
- return (r, u) => (L(), ae("div", {
666
+ return (l, _) => (q(), Q("div", {
855
667
  class: "x-cont d-flex flex-column-reverse align-center",
856
- onClick: u[0] || (u[0] = H(() => {
668
+ onClick: _[0] || (_[0] = $(() => {
857
669
  }, ["stop"]))
858
670
  }, [
859
- (L(!0), ae(Oe, null, Ie(t.value, (s) => (L(), V(Tt, {
860
- id: s.id,
861
- key: s.id,
862
- type: s.type,
863
- text: s.text,
864
- timeout: s.timeout,
671
+ (q(!0), Q(ke, null, Ce(t.value, (p) => (q(), O(_t, {
672
+ id: p.id,
673
+ key: p.id,
674
+ type: p.type,
675
+ text: p.text,
676
+ timeout: p.timeout,
865
677
  onTimeout: o
866
678
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
867
679
  ]));
868
680
  }
869
- }), Et = /* @__PURE__ */ ue(Bt, [["__scopeId", "data-v-c6a59757"]]), Wt = /* @__PURE__ */ E({
681
+ }), it = /* @__PURE__ */ ae(dt, [["__scopeId", "data-v-c6a59757"]]), ft = /* @__PURE__ */ A({
870
682
  __name: "index",
871
683
  setup(e) {
872
- const { t } = re(), a = g(""), o = g(""), n = g(""), l = g(""), c = g(), r = g(""), u = g(""), s = g(""), i = g(""), v = g(""), k = Te("target");
873
- let m = 0, _ = !1;
874
- const M = async (f) => {
875
- var j, z, F, W;
876
- const d = f;
877
- a.value = d.title, o.value = d.text, n.value = d.label, l.value = d.placeholder, c.value = d.rules, r.value = d.value, u.value = ((j = d.cancel) == null ? void 0 : j.color) ?? "primary", s.value = ((z = d.cancel) == null ? void 0 : z.text) ?? t("dlg.common.cancel"), i.value = ((F = d.confirm) == null ? void 0 : F.color) ?? "primary", v.value = ((W = d.confirm) == null ? void 0 : W.text) ?? t("dlg.common.confirm"), m = d.seq, _ = !1, h.value = !0, await le(() => !!k.value), k.value.focus();
878
- }, { open: h } = ce("promptDlg", M), D = () => {
879
- h.value = !1, _ || (p.emit("promptDlgResult" + m, r.value ?? ""), _ = !0);
684
+ const { t } = P(), a = f(""), o = f(""), r = f(""), n = f(""), c = f(), l = f(""), _ = f(""), p = f(""), w = f(""), y = f(""), V = De("target");
685
+ let C = 0, d = !1;
686
+ const S = async (k) => {
687
+ var W, X, E, z;
688
+ const s = k;
689
+ 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();
690
+ }, { open: g } = te("promptDlg", S), D = f(!1), i = () => {
691
+ g.value = !1, d || (u.emit("promptDlgResult" + C, l.value ?? ""), d = !0);
880
692
  };
881
- return Q(h, (f) => {
882
- !f && !_ && (p.emit("promptDlgResult" + m, void 0), _ = !0);
883
- }), (f, d) => {
884
- const j = b("v-card-text"), z = b("v-text-field"), F = b("v-form"), W = b("v-btn"), Me = b("v-card-actions"), Se = b("v-card"), je = b("v-dialog");
885
- return L(), V(je, {
886
- modelValue: K(h),
887
- "onUpdate:modelValue": d[2] || (d[2] = (U) => J(h) ? h.value = U : null),
693
+ return Y(g, (k) => {
694
+ !k && !d && (u.emit("promptDlgResult" + C, void 0), d = !0);
695
+ }), (k, s) => {
696
+ 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");
697
+ return q(), O(we, {
698
+ modelValue: H(g),
699
+ "onUpdate:modelValue": s[3] || (s[3] = (T) => F(g) ? g.value = T : null),
888
700
  transition: "dialog-top-transition",
889
701
  "max-width": "600px",
890
702
  attach: "",
891
- onKeydown: [
892
- d[3] || (d[3] = Z(H((U) => h.value = !1, ["stop", "prevent"]), ["esc"])),
893
- Z(H(D, ["stop", "prevent"]), ["enter"])
894
- ]
703
+ onKeydown: s[4] || (s[4] = J($((T) => g.value = !1, ["stop", "prevent"]), ["esc"]))
895
704
  }, {
896
- default: w(() => [
897
- C(Se, { title: a.value }, {
898
- default: w(() => [
899
- o.value ? (L(), V(j, { key: 0 }, {
900
- default: w(() => [
901
- O(R(o.value), 1)
705
+ default: m(() => [
706
+ b(ye, { title: a.value }, {
707
+ default: m(() => [
708
+ o.value ? (q(), O(W, { key: 0 }, {
709
+ default: m(() => [
710
+ L(R(o.value), 1)
902
711
  ]),
903
712
  _: 1
904
- })) : ne("", !0),
905
- C(F, { class: "mx-3" }, {
906
- default: w(() => [
907
- C(z, {
713
+ })) : Z("", !0),
714
+ b(he, {
715
+ modelValue: D.value,
716
+ "onUpdate:modelValue": s[2] || (s[2] = (T) => D.value = T),
717
+ class: "mx-3",
718
+ onSubmit: $(i, ["prevent"])
719
+ }, {
720
+ default: m(() => [
721
+ b(X, {
908
722
  ref_key: "target",
909
- ref: k,
910
- modelValue: r.value,
911
- "onUpdate:modelValue": d[0] || (d[0] = (U) => r.value = U),
912
- label: n.value,
913
- placeholder: l.value,
723
+ ref: V,
724
+ modelValue: l.value,
725
+ "onUpdate:modelValue": s[0] || (s[0] = (T) => l.value = T),
726
+ label: r.value,
727
+ placeholder: n.value,
914
728
  rules: c.value
915
- }, null, 8, ["modelValue", "label", "placeholder", "rules"])
916
- ]),
917
- _: 1
918
- }),
919
- C(Me, { class: "d-flex justify-end" }, {
920
- default: w(() => [
921
- C(W, {
922
- color: u.value,
923
- variant: "text",
924
- onClick: d[1] || (d[1] = (U) => h.value = !1)
925
- }, {
926
- default: w(() => [
927
- O(R(s.value), 1)
928
- ]),
929
- _: 1
930
- }, 8, ["color"]),
931
- C(W, {
932
- color: i.value,
933
- variant: "text",
934
- onClick: D
935
- }, {
936
- default: w(() => [
937
- O(R(v.value), 1)
729
+ }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
730
+ b(z, { class: "d-flex justify-end" }, {
731
+ default: m(() => [
732
+ b(E, {
733
+ variant: "text",
734
+ color: _.value,
735
+ onClick: s[1] || (s[1] = (T) => g.value = !1)
736
+ }, {
737
+ default: m(() => [
738
+ L(R(p.value), 1)
739
+ ]),
740
+ _: 1
741
+ }, 8, ["color"]),
742
+ b(E, {
743
+ disabled: !D.value,
744
+ variant: "text",
745
+ color: w.value,
746
+ type: "submit"
747
+ }, {
748
+ default: m(() => [
749
+ L(R(y.value), 1)
750
+ ]),
751
+ _: 1
752
+ }, 8, ["disabled", "color"])
938
753
  ]),
939
754
  _: 1
940
- }, 8, ["color"])
755
+ })
941
756
  ]),
942
757
  _: 1
943
- })
758
+ }, 8, ["modelValue"])
944
759
  ]),
945
760
  _: 1
946
761
  }, 8, ["title"])
947
762
  ]),
948
763
  _: 1
949
- }, 8, ["modelValue", "onKeydown"]);
764
+ }, 8, ["modelValue"]);
950
765
  };
951
766
  }
952
- }), Ut = { class: "mx-auto my-auto" }, $t = { class: "w-100 h-100 d-flex align-center justify-center" }, Ht = { class: "text-body-1" }, Kt = /* @__PURE__ */ E({
767
+ }), 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({
953
768
  __name: "index",
954
769
  setup(e) {
955
- const { t } = re(), a = g(""), o = (c) => {
956
- const r = c;
957
- a.value = r.text ?? t("dlg.common.waiting"), l.value = !0;
958
- }, n = () => {
959
- l.value = !1;
960
- }, { open: l } = ce("waitDlg", o);
961
- return B(() => {
962
- p.on("closeWaitDlg", n);
963
- }), $(() => {
964
- p.off("closeWaitDlg", n);
965
- }), (c, r) => {
966
- const u = b("v-card"), s = b("v-dialog");
967
- return L(), V(s, {
968
- modelValue: K(l),
969
- "onUpdate:modelValue": r[0] || (r[0] = (i) => J(l) ? l.value = i : null),
770
+ const { t } = P(), a = f(""), o = (c) => {
771
+ const l = c;
772
+ a.value = l.text ?? t("dlg.common.waiting"), n.value = !0;
773
+ }, r = () => {
774
+ n.value = !1;
775
+ }, { open: n } = te("waitDlg", o);
776
+ return K(() => {
777
+ u.on("closeWaitDlg", r);
778
+ }), U(() => {
779
+ u.off("closeWaitDlg", r);
780
+ }), (c, l) => {
781
+ const _ = h("v-card"), p = h("v-dialog");
782
+ return q(), O(p, {
783
+ modelValue: H(n),
784
+ "onUpdate:modelValue": l[0] || (l[0] = (w) => F(n) ? n.value = w : null),
970
785
  persistent: "",
971
786
  "no-click-animation": "",
972
787
  fullscreen: "",
973
788
  attach: ""
974
789
  }, {
975
- default: w(() => [
976
- y("div", Ut, [
977
- C(u, {
790
+ default: m(() => [
791
+ v("div", gt, [
792
+ b(_, {
978
793
  width: "300px",
979
794
  height: "80px",
980
795
  loading: ""
981
796
  }, {
982
- default: w(() => [
983
- y("div", $t, [
984
- y("span", Ht, R(a.value), 1)
797
+ default: m(() => [
798
+ v("div", vt, [
799
+ v("span", mt, R(a.value), 1)
985
800
  ])
986
801
  ]),
987
802
  _: 1
@@ -992,13 +807,13 @@ const It = /* @__PURE__ */ E({
992
807
  }, 8, ["modelValue"]);
993
808
  };
994
809
  }
995
- }), zt = (e) => {
996
- e.component("XConfirmDlg", Mt), e.component("XLoading", jt), e.component("XMessage", Et), e.component("XPromptDlg", Wt), e.component("XWaitDlg", Kt);
997
- }, Ft = (e, t, a) => {
810
+ }), yt = (e) => {
811
+ e.component("XConfirmDlg", ut), e.component("XLoading", pt), e.component("XMessage", it), e.component("XPromptDlg", ft), e.component("XWaitDlg", ht);
812
+ }, wt = (e, t, a) => {
998
813
  const o = e[t];
999
- return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((n, l) => {
814
+ return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((r, n) => {
1000
815
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
1001
- l.bind(
816
+ n.bind(
1002
817
  null,
1003
818
  new Error(
1004
819
  "Unknown variable dynamic import: " + t + (t.split("/").length !== a ? ". Note that variables only represent file names one level deep." : "")
@@ -1007,54 +822,54 @@ const It = /* @__PURE__ */ E({
1007
822
  );
1008
823
  });
1009
824
  };
1010
- async function ma(e) {
1011
- return (await Ft(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-iuzmkt0n.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
825
+ async function Ft(e) {
826
+ return (await wt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.iuzmkt0n.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
1012
827
  }
1013
- const ha = { install: zt };
828
+ const Gt = { install: yt };
1014
829
  export {
1015
- Qe as Permission,
1016
- pt as addView,
1017
- Ze as appAppear,
1018
- da as clearViews,
1019
- aa as closeWaitDlg,
1020
- Jt as createAxios,
1021
- ha as default,
1022
- _t as delView,
1023
- p as eventBus,
1024
- Le as hasView,
1025
- ca as injectDark,
1026
- pa as injectLastAppPath,
1027
- ua as injectLocale,
1028
- sa as injectPermissionChecksum,
1029
- tt as injectPermissionObjects,
1030
- rt as injectViews,
1031
- st as isEmpty,
1032
- pe as isExist,
1033
- ia as lastView,
1034
- ma as loadLocaleMessageEssential,
1035
- G as matchRouteMeta,
1036
- oa as messageError,
1037
- na as messageInfo,
1038
- ra as messageSuccess,
1039
- la as messageWarning,
1040
- _a as onBeforeEach,
1041
- Pt as openConfirmDlg,
1042
- ea as openPromptDlg,
1043
- ta as openWaitDlg,
1044
- it as popView,
1045
- Ye as provideDark,
1046
- ot as provideLastAppPath,
1047
- Pe as provideLocale,
1048
- at as providePermissionChecksum,
1049
- et as providePermissionObjects,
1050
- nt as provideViews,
1051
- Y as routeTransName,
1052
- Ue as useColor,
1053
- fa as useMicroApp,
1054
- ga as usePermission,
1055
- va as useSystem,
1056
- ce as useViewStack,
1057
- Je as verifyPermission,
1058
- Yt as waitMs,
1059
- le as waitUtil
830
+ ze as Permission,
831
+ rt as addView,
832
+ We as appAppear,
833
+ Xt as clearViews,
834
+ Tt as closeWaitDlg,
835
+ Vt as createAxios,
836
+ Gt as default,
837
+ lt as delView,
838
+ u as eventBus,
839
+ me as hasView,
840
+ At as injectDark,
841
+ $t as injectLastAppPath,
842
+ Et as injectLocale,
843
+ Ut as injectPermissionChecksum,
844
+ Je as injectPermissionObjects,
845
+ Pe as injectViews,
846
+ ot as isEmpty,
847
+ le as isExist,
848
+ Wt as lastView,
849
+ Ft as loadLocaleMessageEssential,
850
+ N as matchRouteMeta,
851
+ Lt as messageError,
852
+ Mt as messageInfo,
853
+ Bt as messageSuccess,
854
+ It as messageWarning,
855
+ Kt as onBeforeEach,
856
+ jt as openConfirmDlg,
857
+ Rt as openPromptDlg,
858
+ Ot as openWaitDlg,
859
+ nt as popView,
860
+ He as provideDark,
861
+ Ye as provideLastAppPath,
862
+ Fe as provideLocale,
863
+ Qe as providePermissionChecksum,
864
+ Ge as providePermissionObjects,
865
+ Ze as provideViews,
866
+ G as routeTransName,
867
+ Ie as useColor,
868
+ zt as useMicroApp,
869
+ Nt as usePermission,
870
+ Ht as useSystem,
871
+ te as useViewStack,
872
+ Ne as verifyPermission,
873
+ St as waitMs,
874
+ ee as waitUtil
1060
875
  };