x-essential-lib 0.9.8 → 0.9.10

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,65 +1,65 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var d=document.createElement("style");d.id="x-essential-lib",d.appendChild(document.createTextNode('.fade-leave-active[data-v-83c3cd1d]{transition:opacity .5s ease}.fade-leave-to[data-v-83c3cd1d]{opacity:0}.x-cont[data-v-83c3cd1d]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-83c3cd1d]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-83c3cd1d]{transform-origin:20px 20px;animation:lds-spinner-83c3cd1d 1.2s linear infinite}.lds-spinner div[data-v-83c3cd1d]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-83c3cd1d]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-83c3cd1d]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-83c3cd1d]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-83c3cd1d]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-83c3cd1d]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-83c3cd1d]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-83c3cd1d]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-83c3cd1d]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-83c3cd1d]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-83c3cd1d]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-83c3cd1d]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-83c3cd1d]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-83c3cd1d{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-b482df18]{position:fixed;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(d)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import { computed as O, provide as U, inject as K, ref as p, watchEffect as ne, onMounted as W, onBeforeUnmount as N, onBeforeMount as ke, defineComponent as A, watch as J, resolveComponent as m, createBlock as L, openBlock as V, withKeys as F, unref as E, withModifiers as $, isRef as X, withCtx as v, createVNode as y, createTextVNode as B, toDisplayString as S, Transition as De, createElementBlock as ee, createCommentVNode as te, normalizeStyle as ce, createElementVNode as w, Fragment as je, renderList as Oe, useTemplateRef as se } from "vue";
2
+ import { computed as j, provide as $, inject as K, ref as p, watchEffect as ne, onMounted as W, onBeforeUnmount as N, onBeforeMount as De, defineComponent as E, watch as J, resolveComponent as y, createBlock as A, openBlock as q, withKeys as F, unref as U, withModifiers as I, isRef as X, withCtx as v, createVNode as w, createTextVNode as M, toDisplayString as S, Transition as Ce, createElementBlock as ee, createCommentVNode as te, normalizeStyle as se, createElementVNode as D, Fragment as Ve, renderList as je, useTemplateRef as pe } from "vue";
3
3
  import { useI18n as z } from "vue-i18n";
4
- import { useTheme as pe, useDisplay as Ve } from "vuetify";
5
- import { useRouter as _e, useRoute as Ce } from "vue-router";
6
- import qe from "axios";
7
- import { a as I, m as Se, u as Re } from "./vendor.waod39c6.js";
4
+ import { useTheme as _e, useDisplay as qe } from "vuetify";
5
+ import { useRouter as de, useRoute as Oe } from "vue-router";
6
+ import Se from "axios";
7
+ import { a as T, m as Re, u as Le, t as re } from "./vendor.evicfx58.js";
8
8
  function Te() {
9
- const e = pe(), t = O(() => e.global.current.value.colors.primary), a = O(() => e.global.current.value.colors.secondary), o = O(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), l = O(() => e.current.value.dark ? "#272727" : "#eeeeee"), n = O(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), u = O(() => e.current.value.dark ? "#303030" : "#f6f6f6"), r = O(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
9
+ const e = _e(), t = j(() => e.global.current.value.colors.primary), a = j(() => e.global.current.value.colors.secondary), o = j(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), l = j(() => e.current.value.dark ? "#272727" : "#eeeeee"), r = j(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), s = j(() => e.current.value.dark ? "#303030" : "#f6f6f6"), n = j(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
10
10
  return {
11
11
  primaryColor: t,
12
12
  secondaryColor: a,
13
13
  backgroundColor0: o,
14
14
  backgroundColor1: l,
15
- backgroundColor2: n,
16
- highlightColor: u,
17
- borderColor: r
15
+ backgroundColor2: r,
16
+ highlightColor: s,
17
+ borderColor: n
18
18
  };
19
19
  }
20
- function Dt(e) {
21
- const t = qe.create({
20
+ function Ct(e) {
21
+ const t = Se.create({
22
22
  timeout: 6e3
23
23
  });
24
24
  return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
25
- (a) => Ie(a),
25
+ (a) => Ae(a),
26
26
  (a) => {
27
- Le(a, e.onError);
27
+ Me(a, e.onError);
28
28
  }
29
29
  ), t.interceptors.response.use(
30
30
  (a) => Be(a),
31
- (a) => Me(a, e.onError)
31
+ (a) => Ie(a, e.onError)
32
32
  ), t;
33
33
  }
34
- function Ie(e) {
35
- const t = I.get("accessToken") ?? "";
34
+ function Ae(e) {
35
+ const t = T.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 Le(e, t) {
38
+ function Me(e, t) {
39
39
  console.error(e), t("request timeout");
40
40
  }
41
41
  function Be(e) {
42
42
  return e.data;
43
43
  }
44
- function Me(e, t) {
44
+ function Ie(e, t) {
45
45
  const o = e.response;
46
- return o && (o.status === 401 && $e(), o.data?.message ? t(o.data?.message) : t({
46
+ return o && (o.status === 401 && Ee(), o.data?.message ? t(o.data?.message) : t({
47
47
  code: o.status,
48
48
  message: o.statusText
49
49
  })), Promise.reject(e);
50
50
  }
51
- function $e() {
52
- I.remove("accessToken"), I.remove("refreshToken"), I.remove("userId"), I.remove("userName"), I.remove("phone"), I.remove("activeOrg"), _e().replace({ path: "/passport/login" });
51
+ function Ee() {
52
+ T.remove("accessToken"), T.remove("refreshToken"), T.remove("userId"), T.remove("userName"), T.remove("phone"), T.remove("activeOrg"), de().replace({ path: "/passport/login" });
53
53
  }
54
- const jt = (function() {
54
+ const Vt = (function() {
55
55
  return window.globalObjects || (window.globalObjects = {
56
56
  router: null,
57
57
  i18n: null
58
58
  }, console.log("globalObjects created")), window.globalObjects;
59
- })(), c = (function() {
60
- return window.eventBus || (window.eventBus = Se(), console.log("eventBus created")), window.eventBus;
59
+ })(), u = (function() {
60
+ return window.eventBus || (window.eventBus = Re(), console.log("eventBus created")), window.eventBus;
61
61
  })();
62
- async function Ot(e) {
62
+ async function jt(e) {
63
63
  return new Promise((t) => {
64
64
  setTimeout(t, e);
65
65
  });
@@ -67,74 +67,74 @@ async function Ot(e) {
67
67
  async function H(e, t, a) {
68
68
  const o = Date.now();
69
69
  return new Promise((l) => {
70
- const n = async () => {
71
- e() ? l(!0) : t && Date.now() - o > t ? l(!1) : setTimeout(n, a ?? 30);
70
+ const r = async () => {
71
+ e() ? l(!0) : t && Date.now() - o > t ? l(!1) : setTimeout(r, a ?? 30);
72
72
  };
73
- n();
73
+ r();
74
74
  });
75
75
  }
76
- function Ae(e, t) {
76
+ function Ue(e, t) {
77
77
  const a = document.getElementById("single-spa-application:" + e);
78
78
  a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
79
79
  a.classList.add("app-reset");
80
80
  }, 50));
81
81
  }
82
- let re = Date.now();
82
+ let ue = Date.now();
83
83
  function ae() {
84
84
  const e = Date.now();
85
- return e - re > 500 ? (re = e, !0) : !1;
85
+ return e - ue > 500 ? (ue = e, !0) : !1;
86
86
  }
87
- let Ee = 0;
87
+ let $e = 0;
88
88
  function oe() {
89
- return ++Ee;
89
+ return ++$e;
90
90
  }
91
- async function Vt(e) {
91
+ async function qt(e) {
92
92
  if (!ae())
93
93
  return;
94
94
  let t = !1, a;
95
- const o = (n) => {
96
- a = n, t = !0;
95
+ const o = (r) => {
96
+ a = r, t = !0;
97
97
  }, l = oe();
98
- return c.on("confirmDlgResult" + l, o), c.emit("confirmDlg", { ...e, seq: l }), await H(() => t), c.off("confirmDlgResult" + l, o), a;
98
+ return u.on("confirmDlgResult" + l, o), u.emit("confirmDlg", { ...e, seq: l }), await H(() => t), u.off("confirmDlgResult" + l, o), a;
99
99
  }
100
- async function Ct(e) {
100
+ async function Ot(e) {
101
101
  if (!ae())
102
102
  return;
103
103
  let t = !1, a;
104
- const o = (n) => {
105
- a = n, t = !0;
104
+ const o = (r) => {
105
+ a = r, t = !0;
106
106
  }, l = oe();
107
- return c.on("numberDlgResult" + l, o), c.emit("numberDlg", { ...e, seq: l }), await H(() => t), c.off("numberDlgResult" + l, o), a;
107
+ return u.on("numberDlgResult" + l, o), u.emit("numberDlg", { ...e, seq: l }), await H(() => t), u.off("numberDlgResult" + l, o), a;
108
108
  }
109
- async function qt(e) {
109
+ async function St(e) {
110
110
  if (!ae())
111
111
  return;
112
112
  let t = !1, a;
113
- const o = (n) => {
114
- a = n, t = !0;
113
+ const o = (r) => {
114
+ a = r, t = !0;
115
115
  }, l = oe();
116
- return c.on("promptDlgResult" + l, o), c.emit("promptDlg", { ...e, seq: l }), await H(() => t), c.off("promptDlgResult" + l, o), a;
116
+ return u.on("promptDlgResult" + l, o), u.emit("promptDlg", { ...e, seq: l }), await H(() => t), u.off("promptDlgResult" + l, o), a;
117
117
  }
118
- function St(e) {
119
- c.emit("waitDlg", { text: e });
118
+ function Rt(e) {
119
+ u.emit("waitDlg", { text: e });
120
120
  }
121
- function Rt() {
122
- c.emit("closeWaitDlg");
121
+ function Lt() {
122
+ u.emit("closeWaitDlg");
123
123
  }
124
124
  function Tt(e, t) {
125
- c.emit("message", { type: "error", text: e, timeout: t });
125
+ u.emit("message", { type: "error", text: e, timeout: t });
126
126
  }
127
- function It(e, t) {
128
- c.emit("message", { type: "info", text: e, timeout: t });
127
+ function At(e, t) {
128
+ u.emit("message", { type: "info", text: e, timeout: t });
129
129
  }
130
- function Lt(e, t) {
131
- c.emit("message", { type: "success", text: e, timeout: t });
130
+ function Mt(e, t) {
131
+ u.emit("message", { type: "success", text: e, timeout: t });
132
132
  }
133
133
  function Bt(e, t) {
134
- c.emit("message", { type: "warning", text: e, timeout: t });
134
+ u.emit("message", { type: "warning", text: e, timeout: t });
135
135
  }
136
- 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 || {});
137
- function ue(e, t) {
136
+ var Ke = /* @__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))(Ke || {});
137
+ function ce(e, t) {
138
138
  if (!e)
139
139
  return !1;
140
140
  let a = e;
@@ -147,48 +147,48 @@ function ue(e, t) {
147
147
  return !1;
148
148
  }), Object.keys(a).length <= 0);
149
149
  }
150
- function Ke(e, t, a) {
150
+ function Ne(e, t, a) {
151
151
  const o = e[t];
152
- return o ? a ? !(!ue(o.includes, a) || ue(o.excludes, a)) : !0 : !1;
153
- }
154
- const de = "essentialDark", ie = "essentialLocale", fe = "essentialPermissionObjects", ge = "essentialPermissionChecksum", ve = "essentialLastAppPath", me = "essentialViews";
155
- function Ne(e) {
156
- U(de, e);
157
- }
158
- function Mt() {
159
- return K(de);
152
+ return o ? a ? !(!ce(o.includes, a) || ce(o.excludes, a)) : !0 : !1;
160
153
  }
154
+ const ie = "essentialDark", fe = "essentialLocale", ge = "essentialPermissionObjects", ve = "essentialPermissionChecksum", me = "essentialLastAppPath", be = "essentialViews";
161
155
  function We(e) {
162
- U(ie, e);
156
+ $(ie, e);
163
157
  }
164
- function $t() {
158
+ function It() {
165
159
  return K(ie);
166
160
  }
167
161
  function Xe(e) {
168
- U(fe, e);
162
+ $(fe, e);
169
163
  }
170
- function ze() {
164
+ function Et() {
171
165
  return K(fe);
172
166
  }
173
- function He(e) {
174
- U(ge, e);
167
+ function ze(e) {
168
+ $(ge, e);
175
169
  }
176
- function At() {
170
+ function He() {
177
171
  return K(ge);
178
172
  }
179
173
  function Fe(e) {
180
- U(ve, e);
174
+ $(ve, e);
181
175
  }
182
- function Et() {
176
+ function Ut() {
183
177
  return K(ve);
184
178
  }
185
179
  function Ge(e) {
186
- U(me, e);
180
+ $(me, e);
187
181
  }
188
- function Je() {
182
+ function $t() {
189
183
  return K(me);
190
184
  }
191
- const Qe = [
185
+ function Je(e) {
186
+ $(be, e);
187
+ }
188
+ function Qe() {
189
+ return K(be);
190
+ }
191
+ const Ye = [
192
192
  {
193
193
  app: "x-passport-mf",
194
194
  path: "/passport/login",
@@ -302,16 +302,16 @@ const Qe = [
302
302
  function G(e) {
303
303
  let t, a = 0;
304
304
  const o = e.split("/").filter((l) => l.trim() !== "");
305
- return Qe.forEach((l) => {
306
- const n = l.path.split("/").filter((r) => r.trim() !== "");
307
- let u = 0;
308
- for (let r = 0; r < o.length && !(r >= n.length || o[r] !== n[r]); r++)
309
- u++;
310
- u > 0 && u > a && (t = l, a = u);
305
+ return Ye.forEach((l) => {
306
+ const r = l.path.split("/").filter((n) => n.trim() !== "");
307
+ let s = 0;
308
+ for (let n = 0; n < o.length && !(n >= r.length || o[n] !== r[n]); n++)
309
+ s++;
310
+ s > 0 && s > a && (t = l, a = s);
311
311
  }), t;
312
312
  }
313
313
  const P = p("");
314
- function T(e, t, a) {
314
+ function L(e, t, a) {
315
315
  t === "/" && (t = a);
316
316
  const o = G(e), l = G(t);
317
317
  if (!o) {
@@ -320,152 +320,138 @@ function T(e, t, a) {
320
320
  }
321
321
  if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !l)
322
322
  return;
323
- const n = o.app === l.app, u = o.path === l.path, r = o.level >= l.level;
324
- n ? u ? P.value = "" : P.value = r ? "inner-left" : "inner-right" : (P.value = "", Ae(o.app, r));
325
- }
326
- function Ye() {
327
- return !!I.get("accessToken");
323
+ const r = o.app === l.app, s = o.path === l.path, n = o.level >= l.level;
324
+ r ? s ? P.value = "" : P.value = n ? "inner-left" : "inner-right" : (P.value = "", Ue(o.app, n));
328
325
  }
329
326
  function Ze() {
330
- return !!I.get("activeOrg");
327
+ return !!T.get("accessToken");
331
328
  }
332
- function Ut(e, t, a, o) {
333
- const l = Ye(), n = Ze(), u = G(e.path);
334
- if (!u) {
329
+ function Pe() {
330
+ return !!T.get("activeOrg");
331
+ }
332
+ function Kt(e, t, a, o) {
333
+ const l = Ze(), r = Pe(), s = G(e.path);
334
+ if (!s) {
335
335
  console.assert(!1), a();
336
336
  return;
337
337
  }
338
- if (u.requiredState === "auth")
338
+ if (s.requiredState === "auth")
339
339
  if (l)
340
- if (n) {
341
- const r = "/main";
342
- T(r, t.path, o), a({ path: r });
340
+ if (r) {
341
+ const n = "/main";
342
+ L(n, t.path, o), a({ path: n });
343
343
  } else
344
- T(e.path, t.path, o), a();
344
+ L(e.path, t.path, o), a();
345
345
  else {
346
- const r = "/passport/login";
347
- T(r, t.path, o), a({ path: r });
346
+ const n = "/passport/login";
347
+ L(n, t.path, o), a({ path: n });
348
348
  }
349
- else if (u.requiredState === "org")
349
+ else if (s.requiredState === "org")
350
350
  if (l)
351
- if (n)
352
- T(e.path, t.path, o), a();
351
+ if (r)
352
+ L(e.path, t.path, o), a();
353
353
  else {
354
- const r = "/org/joinOrCreate";
355
- T(r, t.path, o), a({ path: r });
354
+ const n = "/org/joinOrCreate";
355
+ L(n, t.path, o), a({ path: n });
356
356
  }
357
357
  else {
358
- const r = "/passport/login";
359
- T(r, t.path, o), a({ path: r });
358
+ const n = "/passport/login";
359
+ L(n, t.path, o), a({ path: n });
360
360
  }
361
361
  else if (l)
362
- if (n) {
363
- const r = "/main";
364
- T(r, t.path, o), a({ path: r });
362
+ if (r) {
363
+ const n = "/main";
364
+ L(n, t.path, o), a({ path: n });
365
365
  } else {
366
- const r = "/org/joinOrCreate";
367
- T(r, t.path, o), a({ path: r });
366
+ const n = "/org/joinOrCreate";
367
+ L(n, t.path, o), a({ path: n });
368
368
  }
369
369
  else
370
- T(e.path, t.path, o), a();
370
+ L(e.path, t.path, o), a();
371
371
  }
372
- function Pe(e) {
372
+ function et(e) {
373
373
  return e.value.length <= 0;
374
374
  }
375
- function Kt(e) {
375
+ function Nt(e) {
376
376
  if (e.value.length > 0)
377
377
  return e.value[e.value.length - 1];
378
378
  }
379
- function be(e, t) {
379
+ function ye(e, t) {
380
380
  return !!e.value.find((a) => a === t);
381
381
  }
382
- function et(e, t) {
382
+ function tt(e, t) {
383
383
  const a = e.value.findIndex((o) => o === t);
384
384
  a >= 0 && e.value.splice(a, 1), e.value.push(t);
385
385
  }
386
- function tt(e, t) {
386
+ function at(e, t) {
387
387
  const a = e.value.findIndex((o) => o === t);
388
388
  a >= 0 && e.value.splice(a, 1);
389
389
  }
390
- function at(e) {
390
+ function ot(e) {
391
391
  console.assert(e.value.length > 0), e.value.pop();
392
392
  }
393
- function Nt(e) {
393
+ function Wt(e) {
394
394
  e.value = [];
395
395
  }
396
- function Wt(e, t, a, o, l, n) {
397
- const u = Ce(), r = _e(), _ = Re(), s = p(!1);
396
+ function Xt(e, t, a, o, l, r) {
397
+ const s = Oe(), n = de(), _ = Le(), c = p(!1);
398
398
  ne(() => {
399
- let f = !1;
400
- typeof e.value == "boolean" ? f = e.value : f = _.value, s.value = f;
401
- }), Ne(s), We(t), Xe(a), He(o), Fe(l), Ge(n);
402
- const g = pe();
399
+ let g = !1;
400
+ typeof e.value == "boolean" ? g = e.value : g = _.value, c.value = g;
401
+ }), We(c), Xe(t), ze(a), Fe(o), Ge(l), Je(r);
402
+ const d = _e();
403
403
  ne(() => {
404
- g.change(s.value ? "dark" : "light");
404
+ d.change(c.value ? "dark" : "light");
405
405
  });
406
- const C = () => {
407
- if (!Pe(n)) {
408
- be(n, "waitDlg") || at(n);
406
+ const k = () => {
407
+ if (!et(r)) {
408
+ ye(r, "waitDlg") || ot(r);
409
409
  return;
410
410
  }
411
- const f = G(u.path);
412
- if (!f) {
411
+ const g = G(s.path);
412
+ if (!g) {
413
413
  console.assert(!1);
414
414
  return;
415
415
  }
416
- f.level === 0 ? navigator?.Backbutton?.goHome(
416
+ g.level === 0 ? navigator?.Backbutton?.goHome(
417
417
  () => {
418
418
  },
419
419
  () => {
420
420
  }
421
- ) : r.back();
422
- }, k = (f) => {
423
- if (f.key === "Escape") {
424
- C();
421
+ ) : n.back();
422
+ }, m = (g) => {
423
+ if (g.key === "Escape") {
424
+ k();
425
425
  return;
426
426
  }
427
- }, x = () => {
428
- C();
427
+ }, b = () => {
428
+ k();
429
429
  };
430
430
  W(() => {
431
- window.addEventListener("keydown", k), c.on("backbutton", x);
431
+ window.addEventListener("keydown", m), u.on("backbutton", b);
432
432
  }), N(() => {
433
- window.removeEventListener("keydown", k), c.off("backbutton", x);
433
+ window.removeEventListener("keydown", m), u.off("backbutton", b);
434
434
  });
435
- const i = (f) => {
436
- e.value = f;
437
- }, j = (f) => {
438
- t.value = f;
439
- }, h = (f) => {
440
- const R = f;
435
+ const i = (g) => {
436
+ e.value = g;
437
+ }, V = (g) => {
438
+ t.value = g;
439
+ }, h = (g) => {
440
+ const R = g;
441
441
  a.value = R[0], o.value = R[1];
442
- }, d = (f) => {
443
- l.value = f;
442
+ }, f = (g) => {
443
+ l.value = g;
444
444
  };
445
- ke(() => {
446
- c.on("updateDark", i), c.on("updateLocale", j), c.on("updatePermission", h), c.on("updateLastAppPath", d), c.emit("syncGlobalState");
445
+ De(() => {
446
+ u.on("updateDark", i), u.on("updateLocale", V), u.on("updatePermission", h), u.on("updateLastAppPath", f), u.emit("syncGlobalState");
447
447
  }), N(() => {
448
- c.off("updateDark", i), c.off("updateLocale", j), c.off("updatePermission", h), c.off("updateLastAppPath", d);
448
+ u.off("updateDark", i), u.off("updateLocale", V), u.off("updatePermission", h), u.off("updateLastAppPath", f);
449
449
  });
450
450
  }
451
- function Xt() {
452
- const { locale: e, t } = z();
453
- return {
454
- nameOfVerbObject: (n, u) => e.value === "en" ? `${t(n)} ${t(u)}` : `${t(n)}${t(u)}`,
455
- nameOfObjectsInstance: (n, u) => {
456
- const r = [];
457
- for (const s of n)
458
- r.push(t(s));
459
- let _ = r.join(" / ");
460
- return u && (_ += ` <${u}>`), _;
461
- },
462
- nameOfDeleteObjectText: (n, u) => t("dlg.common.deleteObjectText", { object: t(n), name: u })
463
- };
464
- }
465
451
  function zt() {
466
- const e = ze();
452
+ const e = He();
467
453
  function t(a, o) {
468
- return Ke(
454
+ return Ne(
469
455
  e.value,
470
456
  a,
471
457
  o ?? ""
@@ -474,87 +460,99 @@ function zt() {
474
460
  return { verifyPermission: t };
475
461
  }
476
462
  function Ht() {
477
- const e = O(() => !!window.cordova), t = Ve(), a = O(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px"), o = O(() => t.xs.value);
478
- function l() {
479
- return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
463
+ const { locale: e, t } = z(), a = j(() => !!window.cordova), o = qe(), l = j(() => o.width.value <= 1280 ? o.width.value + "px" : o.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px"), r = j(() => o.xs.value);
464
+ return {
465
+ sysBarAvail: a,
466
+ compactWidth: l,
467
+ isCurvedScreen: r,
468
+ isMobile: () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
480
469
  navigator.userAgent
481
- );
482
- }
483
- return { sysBarAvail: e, compactWidth: a, isCurvedScreen: o, isMobile: l };
470
+ ),
471
+ nameOfList: (c, d, k) => {
472
+ let m = "";
473
+ const b = c.map((i) => t(i));
474
+ return d ? m = b.join(" / ") : e.value === "en" ? m = b.join(" ") : m = b.join(""), k && (m += ` <${k}>`), m;
475
+ },
476
+ nameOfAsk: (c, d, k) => e.value === "en" ? t("dlg.common.ask", {
477
+ verb: re(t(c)),
478
+ object: re(t(d)),
479
+ name: k
480
+ }) : t("dlg.common.ask", { verb: t(c), object: t(d), name: k })
481
+ };
484
482
  }
485
483
  function Q(e, t) {
486
- const a = Je(), o = O({
484
+ const a = Qe(), o = j({
487
485
  get() {
488
- return be(a, e);
486
+ return ye(a, e);
489
487
  },
490
- set(n) {
491
- n ? et(a, e) : tt(a, e);
488
+ set(r) {
489
+ r ? tt(a, e) : at(a, e);
492
490
  }
493
- }), l = (n) => {
494
- t?.(n), o.value = !0;
491
+ }), l = (r) => {
492
+ t?.(r), o.value = !0;
495
493
  };
496
494
  return W(() => {
497
- c.on(e, l);
495
+ u.on(e, l);
498
496
  }), N(() => {
499
- c.off(e, l);
497
+ u.off(e, l);
500
498
  }), { open: o };
501
499
  }
502
- const ot = /* @__PURE__ */ A({
500
+ const lt = /* @__PURE__ */ E({
503
501
  __name: "index",
504
502
  setup(e) {
505
- const { t } = z(), a = p(""), o = p(""), l = p(""), n = p(""), u = p(""), r = p(""), _ = p("");
506
- let s = 0, g = !1;
507
- const C = (i) => {
508
- a.value = i.title, o.value = i.subtitle ?? "", l.value = i.text, n.value = i.cancel?.color ?? "primary", u.value = i.cancel?.text ?? t("dlg.common.cancel"), r.value = i.confirm?.color ?? "primary", _.value = i.confirm?.text ?? t("dlg.common.confirm"), s = i.seq, g = !1, k.value = !0;
509
- }, { open: k } = Q("confirmDlg", C), x = () => {
510
- k.value = !1, g || (c.emit("confirmDlgResult" + s, !0), g = !0);
503
+ const { t } = z(), a = p(""), o = p(""), l = p(""), r = p(""), s = p(""), n = p(""), _ = p("");
504
+ let c = 0, d = !1;
505
+ const k = (i) => {
506
+ a.value = i.title, o.value = i.subtitle ?? "", l.value = i.text, r.value = i.cancel?.color ?? "primary", s.value = i.cancel?.text ?? t("dlg.common.cancel"), n.value = i.confirm?.color ?? "primary", _.value = i.confirm?.text ?? t("dlg.common.confirm"), c = i.seq, d = !1, m.value = !0;
507
+ }, { open: m } = Q("confirmDlg", k), b = () => {
508
+ m.value = !1, d || (u.emit("confirmDlgResult" + c, !0), d = !0);
511
509
  };
512
- return J(k, (i) => {
513
- !i && !g && (c.emit("confirmDlgResult" + s, !1), g = !0);
514
- }), (i, j) => {
515
- const h = m("v-card-text"), d = m("v-btn"), f = m("v-card-actions"), R = m("v-card"), b = m("v-dialog");
516
- return V(), L(b, {
517
- modelValue: E(k),
518
- "onUpdate:modelValue": j[1] || (j[1] = (D) => X(k) ? k.value = D : null),
510
+ return J(m, (i) => {
511
+ !i && !d && (u.emit("confirmDlgResult" + c, !1), d = !0);
512
+ }), (i, V) => {
513
+ const h = y("v-card-text"), f = y("v-btn"), g = y("v-card-actions"), R = y("v-card"), x = y("v-dialog");
514
+ return q(), A(x, {
515
+ modelValue: U(m),
516
+ "onUpdate:modelValue": V[1] || (V[1] = (C) => X(m) ? m.value = C : null),
519
517
  attach: "",
520
518
  "max-width": "600px",
521
519
  transition: "dialog-top-transition",
522
520
  onKeydown: [
523
- F($(x, ["stop", "prevent"]), ["enter"]),
524
- j[2] || (j[2] = F($((D) => k.value = !1, ["stop", "prevent"]), ["esc"]))
521
+ F(I(b, ["stop", "prevent"]), ["enter"]),
522
+ V[2] || (V[2] = F(I((C) => m.value = !1, ["stop", "prevent"]), ["esc"]))
525
523
  ]
526
524
  }, {
527
525
  default: v(() => [
528
- y(R, {
526
+ w(R, {
529
527
  subtitle: o.value,
530
528
  title: a.value
531
529
  }, {
532
530
  default: v(() => [
533
- y(h, null, {
531
+ w(h, null, {
534
532
  default: v(() => [
535
- B(S(l.value), 1)
533
+ M(S(l.value), 1)
536
534
  ]),
537
535
  _: 1
538
536
  }),
539
- y(f, { class: "d-flex justify-end" }, {
537
+ w(g, { class: "d-flex justify-end" }, {
540
538
  default: v(() => [
541
- y(d, {
542
- color: n.value,
539
+ w(f, {
540
+ color: r.value,
543
541
  variant: "text",
544
- onClick: j[0] || (j[0] = (D) => k.value = !1)
542
+ onClick: V[0] || (V[0] = (C) => m.value = !1)
545
543
  }, {
546
544
  default: v(() => [
547
- B(S(u.value), 1)
545
+ M(S(s.value), 1)
548
546
  ]),
549
547
  _: 1
550
548
  }, 8, ["color"]),
551
- y(d, {
552
- color: r.value,
549
+ w(f, {
550
+ color: n.value,
553
551
  variant: "text",
554
- onClick: x
552
+ onClick: b
555
553
  }, {
556
554
  default: v(() => [
557
- B(S(_.value), 1)
555
+ M(S(_.value), 1)
558
556
  ]),
559
557
  _: 1
560
558
  }, 8, ["color"])
@@ -569,38 +567,38 @@ const ot = /* @__PURE__ */ A({
569
567
  }, 8, ["modelValue", "onKeydown"]);
570
568
  };
571
569
  }
572
- }), lt = /* @__PURE__ */ A({
570
+ }), nt = /* @__PURE__ */ E({
573
571
  __name: "index",
574
572
  props: {
575
573
  open: { type: Boolean, default: !0 },
576
574
  zIndex: { default: 1 }
577
575
  },
578
576
  setup(e) {
579
- const { backgroundColor2: t } = Te(), a = O(() => ({
577
+ const { backgroundColor2: t } = Te(), a = j(() => ({
580
578
  background: t.value,
581
579
  zIndex: e.zIndex
582
580
  }));
583
581
  let o = 0;
584
- return (l, n) => (V(), L(De, { name: "fade" }, {
582
+ return (l, r) => (q(), A(Ce, { name: "fade" }, {
585
583
  default: v(() => [
586
- e.open ? (V(), ee("div", {
584
+ e.open ? (q(), ee("div", {
587
585
  key: X(o) ? ++o.value : ++o,
588
586
  class: "x-cont",
589
- style: ce(a.value)
590
- }, [...n[0] || (n[0] = [
591
- w("div", { class: "lds-spinner" }, [
592
- w("div"),
593
- w("div"),
594
- w("div"),
595
- w("div"),
596
- w("div"),
597
- w("div"),
598
- w("div"),
599
- w("div"),
600
- w("div"),
601
- w("div"),
602
- w("div"),
603
- w("div")
587
+ style: se(a.value)
588
+ }, [...r[0] || (r[0] = [
589
+ D("div", { class: "lds-spinner" }, [
590
+ D("div"),
591
+ D("div"),
592
+ D("div"),
593
+ D("div"),
594
+ D("div"),
595
+ D("div"),
596
+ D("div"),
597
+ D("div"),
598
+ D("div"),
599
+ D("div"),
600
+ D("div"),
601
+ D("div")
604
602
  ], -1)
605
603
  ])], 4)) : te("", !0)
606
604
  ]),
@@ -612,7 +610,7 @@ const ot = /* @__PURE__ */ A({
612
610
  for (const [o, l] of t)
613
611
  a[o] = l;
614
612
  return a;
615
- }, nt = /* @__PURE__ */ le(lt, [["__scopeId", "data-v-83c3cd1d"]]), rt = /* @__PURE__ */ A({
613
+ }, rt = /* @__PURE__ */ le(nt, [["__scopeId", "data-v-83c3cd1d"]]), ut = /* @__PURE__ */ E({
616
614
  __name: "item",
617
615
  props: {
618
616
  id: {},
@@ -622,10 +620,10 @@ const ot = /* @__PURE__ */ A({
622
620
  },
623
621
  emits: ["timeout"],
624
622
  setup(e, { emit: t }) {
625
- const a = O(() => ({
623
+ const a = j(() => ({
626
624
  width: "calc(100% - 64px)",
627
625
  overflowWrap: "break-word"
628
- })), o = O(() => {
626
+ })), o = j(() => {
629
627
  switch (e.type) {
630
628
  case "success":
631
629
  return "mdi-check-circle";
@@ -638,140 +636,140 @@ const ot = /* @__PURE__ */ A({
638
636
  default:
639
637
  return "";
640
638
  }
641
- }), l = p(!0), n = t;
639
+ }), l = p(!0), r = t;
642
640
  return W(() => {
643
641
  setTimeout(() => {
644
- n("timeout", e.id);
642
+ r("timeout", e.id);
645
643
  }, e.timeout);
646
- }), J(l, (u) => {
647
- u || n("timeout", e.id);
648
- }), (u, r) => {
649
- const _ = m("v-icon"), s = m("v-sheet");
650
- return V(), L(s, {
644
+ }), J(l, (s) => {
645
+ s || r("timeout", e.id);
646
+ }), (s, n) => {
647
+ const _ = y("v-icon"), c = y("v-sheet");
648
+ return q(), A(c, {
651
649
  class: "x-item d-flex align-center py-2 mb-2",
652
650
  color: e.type,
653
651
  elevation: 1
654
652
  }, {
655
653
  default: v(() => [
656
- o.value ? (V(), L(_, {
654
+ o.value ? (q(), A(_, {
657
655
  key: 0,
658
656
  class: "mx-1",
659
657
  icon: o.value
660
658
  }, null, 8, ["icon"])) : te("", !0),
661
- w("div", {
662
- style: ce(a.value)
659
+ D("div", {
660
+ style: se(a.value)
663
661
  }, S(e.text), 5),
664
- y(_, {
662
+ w(_, {
665
663
  class: "mx-1",
666
664
  icon: "mdi-close",
667
- onClick: r[0] || (r[0] = (g) => n("timeout", e.id))
665
+ onClick: n[0] || (n[0] = (d) => r("timeout", e.id))
668
666
  })
669
667
  ]),
670
668
  _: 1
671
669
  }, 8, ["color"]);
672
670
  };
673
671
  }
674
- }), ut = /* @__PURE__ */ le(rt, [["__scopeId", "data-v-f1f60167"]]), ct = /* @__PURE__ */ A({
672
+ }), ct = /* @__PURE__ */ le(ut, [["__scopeId", "data-v-f1f60167"]]), st = /* @__PURE__ */ E({
675
673
  __name: "index",
676
674
  setup(e) {
677
675
  const t = p([]);
678
676
  W(() => {
679
- c.on("message", a);
677
+ u.on("message", a);
680
678
  }), N(() => {
681
- c.off("message", a);
679
+ u.off("message", a);
682
680
  });
683
- const a = (r) => {
684
- const { type: _, text: s, timeout: g } = r;
685
- n(_, s, g);
686
- }, o = (r) => {
687
- u(r);
681
+ const a = (n) => {
682
+ const { type: _, text: c, timeout: d } = n;
683
+ r(_, c, d);
684
+ }, o = (n) => {
685
+ s(n);
688
686
  };
689
687
  let l = 0;
690
- const n = (r, _, s) => {
691
- const g = l++;
692
- t.value.push({ id: g, type: r, text: _, timeout: s });
693
- }, u = (r) => {
694
- const _ = t.value.findIndex((s) => s.id === r);
688
+ const r = (n, _, c) => {
689
+ const d = l++;
690
+ t.value.push({ id: d, type: n, text: _, timeout: c });
691
+ }, s = (n) => {
692
+ const _ = t.value.findIndex((c) => c.id === n);
695
693
  _ >= 0 && t.value.splice(_, 1);
696
694
  };
697
- return (r, _) => (V(), ee("div", {
695
+ return (n, _) => (q(), ee("div", {
698
696
  class: "x-cont d-flex flex-column-reverse align-center",
699
- onClick: _[0] || (_[0] = $(() => {
697
+ onClick: _[0] || (_[0] = I(() => {
700
698
  }, ["stop"]))
701
699
  }, [
702
- (V(!0), ee(je, null, Oe(t.value, (s) => (V(), L(ut, {
703
- id: s.id,
704
- key: s.id,
705
- text: s.text,
706
- timeout: s.timeout,
707
- type: s.type,
700
+ (q(!0), ee(Ve, null, je(t.value, (c) => (q(), A(ct, {
701
+ id: c.id,
702
+ key: c.id,
703
+ text: c.text,
704
+ timeout: c.timeout,
705
+ type: c.type,
708
706
  onTimeout: o
709
707
  }, null, 8, ["id", "text", "timeout", "type"]))), 128))
710
708
  ]));
711
709
  }
712
- }), st = /* @__PURE__ */ le(ct, [["__scopeId", "data-v-b482df18"]]), pt = /* @__PURE__ */ A({
710
+ }), pt = /* @__PURE__ */ le(st, [["__scopeId", "data-v-b482df18"]]), _t = /* @__PURE__ */ E({
713
711
  __name: "index",
714
712
  setup(e) {
715
- const { t } = z(), a = p(""), o = p(""), l = p(0), n = p(), u = p(-1 / 0), r = p(1 / 0), _ = p(1);
716
- let s = 0, g = !1;
717
- const C = se("target"), k = async (h) => {
718
- a.value = h.title, o.value = h.subtitle ?? "", l.value = h.value, n.value = h.precision, u.value = h.min, r.value = h.max, _.value = h.step, s = h.seq, g = !1, x.value = !0, await H(() => !!C.value), C.value.focus();
719
- }, { open: x } = Q("numberDlg", k), i = p(!1), j = () => {
720
- x.value = !1, g || (c.emit(`numberDlgResult${s}`, l.value), g = !0);
713
+ const { t } = z(), a = p(""), o = p(""), l = p(0), r = p(), s = p(-1 / 0), n = p(1 / 0), _ = p(1);
714
+ let c = 0, d = !1;
715
+ const k = pe("target"), m = async (h) => {
716
+ a.value = h.title, o.value = h.subtitle ?? "", l.value = h.value, r.value = h.precision, s.value = h.min, n.value = h.max, _.value = h.step, c = h.seq, d = !1, b.value = !0, await H(() => !!k.value), k.value.focus();
717
+ }, { open: b } = Q("numberDlg", m), i = p(!1), V = () => {
718
+ b.value = !1, d || (u.emit(`numberDlgResult${c}`, l.value), d = !0);
721
719
  };
722
- return J(x, (h) => {
723
- !h && !g && (c.emit(`numberDlgResult${s}`, void 0), g = !0);
724
- }), (h, d) => {
725
- const f = m("v-number-input"), R = m("v-btn"), b = m("v-card-actions"), D = m("v-form"), Y = m("v-card"), Z = m("v-dialog");
726
- return V(), L(Z, {
727
- modelValue: E(x),
728
- "onUpdate:modelValue": d[3] || (d[3] = (q) => X(x) ? x.value = q : null),
720
+ return J(b, (h) => {
721
+ !h && !d && (u.emit(`numberDlgResult${c}`, void 0), d = !0);
722
+ }), (h, f) => {
723
+ const g = y("v-number-input"), R = y("v-btn"), x = y("v-card-actions"), C = y("v-form"), Y = y("v-card"), Z = y("v-dialog");
724
+ return q(), A(Z, {
725
+ modelValue: U(b),
726
+ "onUpdate:modelValue": f[3] || (f[3] = (O) => X(b) ? b.value = O : null),
729
727
  attach: "",
730
728
  "max-width": "600px",
731
729
  transition: "dialog-top-transition",
732
- onKeydown: d[4] || (d[4] = F($((q) => x.value = !1, ["stop", "prevent"]), ["esc"]))
730
+ onKeydown: f[4] || (f[4] = F(I((O) => b.value = !1, ["stop", "prevent"]), ["esc"]))
733
731
  }, {
734
732
  default: v(() => [
735
- y(Y, { title: a.value }, {
733
+ w(Y, { title: a.value }, {
736
734
  default: v(() => [
737
- y(D, {
735
+ w(C, {
738
736
  modelValue: i.value,
739
- "onUpdate:modelValue": d[2] || (d[2] = (q) => i.value = q),
737
+ "onUpdate:modelValue": f[2] || (f[2] = (O) => i.value = O),
740
738
  class: "mx-3",
741
- onSubmit: $(j, ["prevent"])
739
+ onSubmit: I(V, ["prevent"])
742
740
  }, {
743
741
  default: v(() => [
744
- y(f, {
742
+ w(g, {
745
743
  ref_key: "target",
746
- ref: C,
744
+ ref: k,
747
745
  modelValue: l.value,
748
- "onUpdate:modelValue": d[0] || (d[0] = (q) => l.value = q),
746
+ "onUpdate:modelValue": f[0] || (f[0] = (O) => l.value = O),
749
747
  "control-variant": "stacked",
750
- max: r.value,
751
- min: u.value,
752
- precision: n.value,
748
+ max: n.value,
749
+ min: s.value,
750
+ precision: r.value,
753
751
  step: _.value
754
752
  }, null, 8, ["modelValue", "max", "min", "precision", "step"]),
755
- y(b, { class: "d-flex justify-end" }, {
753
+ w(x, { class: "d-flex justify-end" }, {
756
754
  default: v(() => [
757
- y(R, {
755
+ w(R, {
758
756
  color: "primary",
759
757
  variant: "text",
760
- onClick: d[1] || (d[1] = (q) => x.value = !1)
758
+ onClick: f[1] || (f[1] = (O) => b.value = !1)
761
759
  }, {
762
760
  default: v(() => [
763
- B(S(E(t)("dlg.common.cancel")), 1)
761
+ M(S(U(t)("dlg.common.cancel")), 1)
764
762
  ]),
765
763
  _: 1
766
764
  }),
767
- y(R, {
765
+ w(R, {
768
766
  color: "primary",
769
767
  disabled: !i.value,
770
768
  type: "submit",
771
769
  variant: "text"
772
770
  }, {
773
771
  default: v(() => [
774
- B(S(E(t)("dlg.common.confirm")), 1)
772
+ M(S(U(t)("dlg.common.confirm")), 1)
775
773
  ]),
776
774
  _: 1
777
775
  }, 8, ["disabled"])
@@ -789,73 +787,73 @@ const ot = /* @__PURE__ */ A({
789
787
  }, 8, ["modelValue"]);
790
788
  };
791
789
  }
792
- }), _t = /* @__PURE__ */ A({
790
+ }), dt = /* @__PURE__ */ E({
793
791
  __name: "index",
794
792
  setup(e) {
795
- const { t } = z(), a = p(""), o = p(""), l = p(""), n = p(""), u = p(""), r = p(), _ = p(""), s = p(""), g = p(""), C = p(""), k = p("");
796
- let x = 0, i = !1;
797
- const j = se("target"), h = async (b) => {
798
- a.value = b.title, o.value = b.subtitle ?? "", l.value = b.text, n.value = b.label, u.value = b.placeholder, r.value = b.rules, _.value = b.value, s.value = b.cancel?.color ?? "primary", g.value = b.cancel?.text ?? t("dlg.common.cancel"), C.value = b.confirm?.color ?? "primary", k.value = b.confirm?.text ?? t("dlg.common.confirm"), x = b.seq, i = !1, d.value = !0, await H(() => !!j.value), j.value.focus();
799
- }, { open: d } = Q("promptDlg", h), f = p(!1), R = () => {
800
- d.value = !1, i || (c.emit("promptDlgResult" + x, _.value ?? ""), i = !0);
793
+ const { t } = z(), a = p(""), o = p(""), l = p(""), r = p(""), s = p(""), n = p(), _ = p(""), c = p(""), d = p(""), k = p(""), m = p("");
794
+ let b = 0, i = !1;
795
+ const V = pe("target"), h = async (x) => {
796
+ a.value = x.title, o.value = x.subtitle ?? "", l.value = x.text, r.value = x.label, s.value = x.placeholder, n.value = x.rules, _.value = x.value, c.value = x.cancel?.color ?? "primary", d.value = x.cancel?.text ?? t("dlg.common.cancel"), k.value = x.confirm?.color ?? "primary", m.value = x.confirm?.text ?? t("dlg.common.confirm"), b = x.seq, i = !1, f.value = !0, await H(() => !!V.value), V.value.focus();
797
+ }, { open: f } = Q("promptDlg", h), g = p(!1), R = () => {
798
+ f.value = !1, i || (u.emit("promptDlgResult" + b, _.value ?? ""), i = !0);
801
799
  };
802
- return J(d, (b) => {
803
- !b && !i && (c.emit("promptDlgResult" + x, void 0), i = !0);
804
- }), (b, D) => {
805
- const Y = m("v-card-text"), Z = m("v-text-field"), q = m("v-btn"), ye = m("v-card-actions"), xe = m("v-form"), he = m("v-card"), we = m("v-dialog");
806
- return V(), L(we, {
807
- modelValue: E(d),
808
- "onUpdate:modelValue": D[3] || (D[3] = (M) => X(d) ? d.value = M : null),
800
+ return J(f, (x) => {
801
+ !x && !i && (u.emit("promptDlgResult" + b, void 0), i = !0);
802
+ }), (x, C) => {
803
+ const Y = y("v-card-text"), Z = y("v-text-field"), O = y("v-btn"), xe = y("v-card-actions"), we = y("v-form"), he = y("v-card"), ke = y("v-dialog");
804
+ return q(), A(ke, {
805
+ modelValue: U(f),
806
+ "onUpdate:modelValue": C[3] || (C[3] = (B) => X(f) ? f.value = B : null),
809
807
  attach: "",
810
808
  "max-width": "600px",
811
809
  transition: "dialog-top-transition",
812
- onKeydown: D[4] || (D[4] = F($((M) => d.value = !1, ["stop", "prevent"]), ["esc"]))
810
+ onKeydown: C[4] || (C[4] = F(I((B) => f.value = !1, ["stop", "prevent"]), ["esc"]))
813
811
  }, {
814
812
  default: v(() => [
815
- y(he, { title: a.value }, {
813
+ w(he, { title: a.value }, {
816
814
  default: v(() => [
817
- l.value ? (V(), L(Y, { key: 0 }, {
815
+ l.value ? (q(), A(Y, { key: 0 }, {
818
816
  default: v(() => [
819
- B(S(l.value), 1)
817
+ M(S(l.value), 1)
820
818
  ]),
821
819
  _: 1
822
820
  })) : te("", !0),
823
- y(xe, {
824
- modelValue: f.value,
825
- "onUpdate:modelValue": D[2] || (D[2] = (M) => f.value = M),
821
+ w(we, {
822
+ modelValue: g.value,
823
+ "onUpdate:modelValue": C[2] || (C[2] = (B) => g.value = B),
826
824
  class: "mx-3",
827
- onSubmit: $(R, ["prevent"])
825
+ onSubmit: I(R, ["prevent"])
828
826
  }, {
829
827
  default: v(() => [
830
- y(Z, {
828
+ w(Z, {
831
829
  ref_key: "target",
832
- ref: j,
830
+ ref: V,
833
831
  modelValue: _.value,
834
- "onUpdate:modelValue": D[0] || (D[0] = (M) => _.value = M),
835
- label: n.value,
836
- placeholder: u.value,
837
- rules: r.value
832
+ "onUpdate:modelValue": C[0] || (C[0] = (B) => _.value = B),
833
+ label: r.value,
834
+ placeholder: s.value,
835
+ rules: n.value
838
836
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
839
- y(ye, { class: "d-flex justify-end" }, {
837
+ w(xe, { class: "d-flex justify-end" }, {
840
838
  default: v(() => [
841
- y(q, {
842
- color: s.value,
839
+ w(O, {
840
+ color: c.value,
843
841
  variant: "text",
844
- onClick: D[1] || (D[1] = (M) => d.value = !1)
842
+ onClick: C[1] || (C[1] = (B) => f.value = !1)
845
843
  }, {
846
844
  default: v(() => [
847
- B(S(g.value), 1)
845
+ M(S(d.value), 1)
848
846
  ]),
849
847
  _: 1
850
848
  }, 8, ["color"]),
851
- y(q, {
852
- color: C.value,
853
- disabled: !f.value,
849
+ w(O, {
850
+ color: k.value,
851
+ disabled: !g.value,
854
852
  type: "submit",
855
853
  variant: "text"
856
854
  }, {
857
855
  default: v(() => [
858
- B(S(k.value), 1)
856
+ M(S(m.value), 1)
859
857
  ]),
860
858
  _: 1
861
859
  }, 8, ["color", "disabled"])
@@ -873,39 +871,39 @@ const ot = /* @__PURE__ */ A({
873
871
  }, 8, ["modelValue"]);
874
872
  };
875
873
  }
876
- }), dt = { class: "ma-auto" }, it = { class: "w-100 h-100 d-flex align-center justify-center" }, ft = { class: "text-body-1" }, gt = /* @__PURE__ */ A({
874
+ }), it = { class: "ma-auto" }, ft = { class: "w-100 h-100 d-flex align-center justify-center" }, gt = { class: "text-body-1" }, vt = /* @__PURE__ */ E({
877
875
  __name: "index",
878
876
  setup(e) {
879
- const { t } = z(), a = p(""), o = (u) => {
880
- const r = u;
881
- a.value = r.text ?? t("dlg.common.responding"), n.value = !0;
877
+ const { t } = z(), a = p(""), o = (s) => {
878
+ const n = s;
879
+ a.value = n.text ?? t("dlg.common.responding"), r.value = !0;
882
880
  }, l = () => {
883
- n.value = !1;
884
- }, { open: n } = Q("waitDlg", o);
881
+ r.value = !1;
882
+ }, { open: r } = Q("waitDlg", o);
885
883
  return W(() => {
886
- c.on("closeWaitDlg", l);
884
+ u.on("closeWaitDlg", l);
887
885
  }), N(() => {
888
- c.off("closeWaitDlg", l);
889
- }), (u, r) => {
890
- const _ = m("v-card"), s = m("v-dialog");
891
- return V(), L(s, {
892
- modelValue: E(n),
893
- "onUpdate:modelValue": r[0] || (r[0] = (g) => X(n) ? n.value = g : null),
886
+ u.off("closeWaitDlg", l);
887
+ }), (s, n) => {
888
+ const _ = y("v-card"), c = y("v-dialog");
889
+ return q(), A(c, {
890
+ modelValue: U(r),
891
+ "onUpdate:modelValue": n[0] || (n[0] = (d) => X(r) ? r.value = d : null),
894
892
  attach: "",
895
893
  fullscreen: "",
896
894
  "no-click-animation": "",
897
895
  persistent: ""
898
896
  }, {
899
897
  default: v(() => [
900
- w("div", dt, [
901
- y(_, {
898
+ D("div", it, [
899
+ w(_, {
902
900
  height: "80px",
903
901
  loading: "",
904
902
  width: "300px"
905
903
  }, {
906
904
  default: v(() => [
907
- w("div", it, [
908
- w("span", ft, S(a.value), 1)
905
+ D("div", ft, [
906
+ D("span", gt, S(a.value), 1)
909
907
  ])
910
908
  ]),
911
909
  _: 1
@@ -916,65 +914,64 @@ const ot = /* @__PURE__ */ A({
916
914
  }, 8, ["modelValue"]);
917
915
  };
918
916
  }
919
- }), vt = (e) => {
920
- e.component("XConfirmDlg", ot), e.component("XLoading", nt), e.component("XMessage", st), e.component("XNumberDlg", pt), e.component("XPromptDlg", _t), e.component("XWaitDlg", gt);
921
- }, mt = (e, t, a) => {
917
+ }), mt = (e) => {
918
+ e.component("XConfirmDlg", lt), e.component("XLoading", rt), e.component("XMessage", pt), e.component("XNumberDlg", _t), e.component("XPromptDlg", dt), e.component("XWaitDlg", vt);
919
+ }, bt = (e, t, a) => {
922
920
  const o = e[t];
923
- return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((l, n) => {
924
- (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." : ""))));
921
+ return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((l, r) => {
922
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + t + (t.split("/").length !== a ? ". Note that variables only represent file names one level deep." : ""))));
925
923
  });
926
924
  };
927
925
  async function Ft(e) {
928
- return (await mt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.m6jy5ga5.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.l9rvbadw.js") }), `./locales/${e}/index.ts`, 4)).default;
926
+ return (await bt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.opwoswgc.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.e8snb93i.js") }), `./locales/${e}/index.ts`, 4)).default;
929
927
  }
930
- const Gt = { install: vt };
928
+ const Gt = { install: mt };
931
929
  export {
932
- Ue as Permission,
933
- et as addView,
934
- Ae as appAppear,
935
- Nt as clearViews,
936
- Rt as closeWaitDlg,
937
- Dt as createAxios,
930
+ Ke as Permission,
931
+ tt as addView,
932
+ Ue as appAppear,
933
+ Wt as clearViews,
934
+ Lt as closeWaitDlg,
935
+ Ct as createAxios,
938
936
  Gt as default,
939
- tt as delView,
940
- c as eventBus,
941
- jt as globalObjects,
942
- be as hasView,
943
- Mt as injectDark,
944
- Et as injectLastAppPath,
945
- $t as injectLocale,
946
- At as injectPermissionChecksum,
947
- ze as injectPermissionObjects,
948
- Je as injectViews,
949
- Pe as isEmpty,
950
- ue as isExist,
951
- Kt as lastView,
937
+ at as delView,
938
+ u as eventBus,
939
+ Vt as globalObjects,
940
+ ye as hasView,
941
+ It as injectDark,
942
+ $t as injectLastAppPath,
943
+ Et as injectLocale,
944
+ Ut as injectPermissionChecksum,
945
+ He as injectPermissionObjects,
946
+ Qe as injectViews,
947
+ et as isEmpty,
948
+ ce as isExist,
949
+ Nt as lastView,
952
950
  Ft as loadLocaleMessageEssential,
953
951
  G as matchRouteMeta,
954
952
  Tt as messageError,
955
- It as messageInfo,
956
- Lt as messageSuccess,
953
+ At as messageInfo,
954
+ Mt as messageSuccess,
957
955
  Bt as messageWarning,
958
- Ut as onBeforeEach,
959
- Vt as openConfirmDlg,
960
- Ct as openNumberDlg,
961
- qt as openPromptDlg,
962
- St as openWaitDlg,
963
- at as popView,
964
- Ne as provideDark,
965
- Fe as provideLastAppPath,
966
- We as provideLocale,
967
- He as providePermissionChecksum,
968
- Xe as providePermissionObjects,
969
- Ge as provideViews,
956
+ Kt as onBeforeEach,
957
+ qt as openConfirmDlg,
958
+ Ot as openNumberDlg,
959
+ St as openPromptDlg,
960
+ Rt as openWaitDlg,
961
+ ot as popView,
962
+ We as provideDark,
963
+ Ge as provideLastAppPath,
964
+ Xe as provideLocale,
965
+ Fe as providePermissionChecksum,
966
+ ze as providePermissionObjects,
967
+ Je as provideViews,
970
968
  P as routeTransName,
971
969
  Te as useColor,
972
- Wt as useMicroApp,
973
- Xt as useNameHelper,
970
+ Xt as useMicroApp,
974
971
  zt as usePermission,
975
972
  Ht as useSystem,
976
973
  Q as useViewStack,
977
- Ke as verifyPermission,
978
- Ot as waitMs,
974
+ Ne as verifyPermission,
975
+ jt as waitMs,
979
976
  H as waitUtil
980
977
  };