qlfy-ecological-login 1.0.7 → 1.0.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/lib/index.mjs CHANGED
@@ -1,21 +1,21 @@
1
- import { getCurrentInstance as de, inject as le, ref as A, computed as O, unref as v, readonly as gr, getCurrentScope as hr, onScopeDispose as yr, onMounted as pn, nextTick as Me, watch as ee, isRef as mn, warn as br, provide as vr, defineComponent as k, createElementBlock as J, openBlock as R, mergeProps as gn, renderSlot as Oe, createElementVNode as W, normalizeClass as K, createVNode as B, Transition as gt, withCtx as D, withDirectives as ht, normalizeStyle as hn, createTextVNode as at, toDisplayString as yn, vShow as yt, reactive as bt, h as ye, createApp as wr, toRefs as _r, shallowReactive as Sr, createBlock as Q, createCommentVNode as Se, resolveDynamicComponent as Er, Fragment as Cr, withModifiers as Or, isVNode as bn, render as At, resolveComponent as be, onBeforeUnmount as xr } from "vue";
2
- const vn = Symbol(), ke = "el", Tr = "is-", Z = (e, t, n, r, o) => {
1
+ import { getCurrentInstance as de, inject as ce, ref as A, computed as O, unref as v, readonly as gr, getCurrentScope as hr, onScopeDispose as yr, onMounted as pn, nextTick as Me, watch as te, isRef as mn, warn as br, provide as vr, defineComponent as k, createElementBlock as J, openBlock as R, mergeProps as gn, renderSlot as Oe, createElementVNode as G, normalizeClass as K, createVNode as B, Transition as gt, withCtx as D, withDirectives as ht, normalizeStyle as hn, createTextVNode as at, toDisplayString as yn, vShow as yt, reactive as bt, h as ye, createApp as wr, toRefs as _r, shallowReactive as Sr, createBlock as Y, createCommentVNode as Se, resolveDynamicComponent as Er, Fragment as Cr, withModifiers as Or, isVNode as bn, render as At, resolveComponent as be, onBeforeUnmount as xr } from "vue";
2
+ const vn = Symbol(), ke = "el", Tr = "is-", X = (e, t, n, r, o) => {
3
3
  let s = `${e}-${t}`;
4
4
  return n && (s += `-${n}`), r && (s += `__${r}`), o && (s += `--${o}`), s;
5
5
  }, wn = Symbol("namespaceContextKey"), Rr = (e) => {
6
- const t = e || (de() ? le(wn, A(ke)) : A(ke));
6
+ const t = e || (de() ? ce(wn, A(ke)) : A(ke));
7
7
  return O(() => v(t) || ke);
8
8
  }, vt = (e, t) => {
9
9
  const n = Rr(t);
10
10
  return {
11
11
  namespace: n,
12
- b: (p = "") => Z(n.value, e, p, "", ""),
13
- e: (p) => p ? Z(n.value, e, "", p, "") : "",
14
- m: (p) => p ? Z(n.value, e, "", "", p) : "",
15
- be: (p, m) => p && m ? Z(n.value, e, p, m, "") : "",
16
- em: (p, m) => p && m ? Z(n.value, e, "", p, m) : "",
17
- bm: (p, m) => p && m ? Z(n.value, e, p, "", m) : "",
18
- bem: (p, m, w) => p && m && w ? Z(n.value, e, p, m, w) : "",
12
+ b: (p = "") => X(n.value, e, p, "", ""),
13
+ e: (p) => p ? X(n.value, e, "", p, "") : "",
14
+ m: (p) => p ? X(n.value, e, "", "", p) : "",
15
+ be: (p, m) => p && m ? X(n.value, e, p, m, "") : "",
16
+ em: (p, m) => p && m ? X(n.value, e, "", p, m) : "",
17
+ bm: (p, m) => p && m ? X(n.value, e, p, "", m) : "",
18
+ bem: (p, m, w) => p && m && w ? X(n.value, e, p, m, w) : "",
19
19
  is: (p, ...m) => {
20
20
  const w = m.length >= 1 ? m[0] : !0;
21
21
  return p && w ? `${Tr}${p}` : "";
@@ -43,7 +43,7 @@ const vn = Symbol(), ke = "el", Tr = "is-", Z = (e, t, n, r, o) => {
43
43
  **/
44
44
  process.env.NODE_ENV !== "production" && Object.freeze({});
45
45
  process.env.NODE_ENV !== "production" && Object.freeze([]);
46
- const Pr = Object.prototype.hasOwnProperty, Nt = (e, t) => Pr.call(e, t), De = (e) => typeof e == "function", ne = (e) => typeof e == "string", qe = (e) => e !== null && typeof e == "object", _n = (e) => {
46
+ const Pr = Object.prototype.hasOwnProperty, Nt = (e, t) => Pr.call(e, t), De = (e) => typeof e == "function", re = (e) => typeof e == "string", qe = (e) => e !== null && typeof e == "object", _n = (e) => {
47
47
  const t = /* @__PURE__ */ Object.create(null);
48
48
  return (n) => t[n] || (t[n] = e(n));
49
49
  }, Ar = /-(\w)/g, Nr = _n(
@@ -178,18 +178,18 @@ function xo(e, t) {
178
178
  var n = this.__data__;
179
179
  return this.size += this.has(e) ? 0 : 1, n[e] = xe && t === void 0 ? Oo : t, this;
180
180
  }
181
- function re(e) {
181
+ function oe(e) {
182
182
  var t = -1, n = e == null ? 0 : e.length;
183
183
  for (this.clear(); ++t < n; ) {
184
184
  var r = e[t];
185
185
  this.set(r[0], r[1]);
186
186
  }
187
187
  }
188
- re.prototype.clear = ho;
189
- re.prototype.delete = yo;
190
- re.prototype.get = _o;
191
- re.prototype.has = Co;
192
- re.prototype.set = xo;
188
+ oe.prototype.clear = ho;
189
+ oe.prototype.delete = yo;
190
+ oe.prototype.get = _o;
191
+ oe.prototype.has = Co;
192
+ oe.prototype.set = xo;
193
193
  function To() {
194
194
  this.__data__ = [], this.size = 0;
195
195
  }
@@ -233,9 +233,9 @@ me.prototype.set = Io;
233
233
  var $o = xn(wt, "Map");
234
234
  function Lo() {
235
235
  this.size = 0, this.__data__ = {
236
- hash: new re(),
236
+ hash: new oe(),
237
237
  map: new ($o || me)(),
238
- string: new re()
238
+ string: new oe()
239
239
  };
240
240
  }
241
241
  function Bo(e) {
@@ -260,18 +260,18 @@ function Uo(e, t) {
260
260
  var n = He(this, e), r = n.size;
261
261
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
262
262
  }
263
- function ae(e) {
263
+ function ie(e) {
264
264
  var t = -1, n = e == null ? 0 : e.length;
265
265
  for (this.clear(); ++t < n; ) {
266
266
  var r = e[t];
267
267
  this.set(r[0], r[1]);
268
268
  }
269
269
  }
270
- ae.prototype.clear = Lo;
271
- ae.prototype.delete = Do;
272
- ae.prototype.get = Fo;
273
- ae.prototype.has = jo;
274
- ae.prototype.set = Uo;
270
+ ie.prototype.clear = Lo;
271
+ ie.prototype.delete = Do;
272
+ ie.prototype.get = Fo;
273
+ ie.prototype.has = jo;
274
+ ie.prototype.set = Uo;
275
275
  var zo = "Expected a function";
276
276
  function Et(e, t) {
277
277
  if (typeof e != "function" || t != null && typeof t != "function")
@@ -283,9 +283,9 @@ function Et(e, t) {
283
283
  var a = e.apply(this, r);
284
284
  return n.cache = s.set(o, a) || s, a;
285
285
  };
286
- return n.cache = new (Et.Cache || ae)(), n;
286
+ return n.cache = new (Et.Cache || ie)(), n;
287
287
  }
288
- Et.Cache = ae;
288
+ Et.Cache = ie;
289
289
  var Mo = 500;
290
290
  function qo(e) {
291
291
  var t = Et(e, function(r) {
@@ -328,11 +328,11 @@ function Qo(e) {
328
328
  }
329
329
  return r;
330
330
  }
331
- const Yo = (e) => e === void 0, nt = (e) => typeof e == "boolean", oe = (e) => typeof e == "number", es = (e) => typeof Element > "u" ? !1 : e instanceof Element, ts = (e) => ne(e) ? !Number.isNaN(Number(e)) : !1;
331
+ const Yo = (e) => e === void 0, nt = (e) => typeof e == "boolean", se = (e) => typeof e == "number", es = (e) => typeof Element > "u" ? !1 : e instanceof Element, ts = (e) => re(e) ? !Number.isNaN(Number(e)) : !1;
332
332
  var Bt;
333
- const G = typeof window < "u", ns = (e) => typeof e == "string", rs = () => {
333
+ const Z = typeof window < "u", ns = (e) => typeof e == "string", rs = () => {
334
334
  };
335
- G && ((Bt = window == null ? void 0 : window.navigator) != null && Bt.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
335
+ Z && ((Bt = window == null ? void 0 : window.navigator) != null && Bt.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
336
336
  function Ct(e) {
337
337
  return typeof e == "function" ? e() : v(e);
338
338
  }
@@ -361,7 +361,7 @@ function as(e, t, n = {}) {
361
361
  o.value = !1, s = null, e(...u);
362
362
  }, Ct(t));
363
363
  }
364
- return r && (o.value = !0, G && f()), Ot(i), {
364
+ return r && (o.value = !0, Z && f()), Ot(i), {
365
365
  isPending: gr(o),
366
366
  start: f,
367
367
  stop: i
@@ -372,7 +372,7 @@ function Tn(e) {
372
372
  const n = Ct(e);
373
373
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
374
374
  }
375
- const Rn = G ? window : void 0;
375
+ const Rn = Z ? window : void 0;
376
376
  function is(...e) {
377
377
  let t, n, r, o;
378
378
  if (ns(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = Rn) : [t, n, r, o] = e, !t)
@@ -380,7 +380,7 @@ function is(...e) {
380
380
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
381
381
  const s = [], a = () => {
382
382
  s.forEach((c) => c()), s.length = 0;
383
- }, i = (c, d, y, h) => (c.addEventListener(d, y, h), () => c.removeEventListener(d, y, h)), f = ee(() => [Tn(t), Ct(o)], ([c, d]) => {
383
+ }, i = (c, d, y, h) => (c.addEventListener(d, y, h), () => c.removeEventListener(d, y, h)), f = te(() => [Tn(t), Ct(o)], ([c, d]) => {
384
384
  a(), c && s.push(...n.flatMap((y) => r.map((h) => i(c, y, h, d))));
385
385
  }, { immediate: !0, flush: "post" }), u = () => {
386
386
  f(), a();
@@ -407,7 +407,7 @@ function fs(e, t, n = {}) {
407
407
  let a;
408
408
  const i = ls(() => o && "ResizeObserver" in o), f = () => {
409
409
  a && (a.disconnect(), a = void 0);
410
- }, u = ee(() => Tn(e), (d) => {
410
+ }, u = te(() => Tn(e), (d) => {
411
411
  f(), i.value && o && d && (a = new ResizeObserver(t), a.observe(d, s));
412
412
  }, { immediate: !0, flush: "post" }), c = () => {
413
413
  f(), u();
@@ -465,18 +465,18 @@ class bs extends Error {
465
465
  }
466
466
  function Je(e, t) {
467
467
  if (process.env.NODE_ENV !== "production") {
468
- const n = ne(e) ? new bs(`[${e}] ${t}`) : e;
468
+ const n = re(e) ? new bs(`[${e}] ${t}`) : e;
469
469
  console.warn(n);
470
470
  }
471
471
  }
472
472
  const qt = {
473
473
  current: 0
474
474
  }, Vt = A(0), Pn = 2e3, Ht = Symbol("elZIndexContextKey"), An = Symbol("zIndexContextKey"), vs = (e) => {
475
- const t = de() ? le(Ht, qt) : qt, n = e || (de() ? le(An, void 0) : void 0), r = O(() => {
475
+ const t = de() ? ce(Ht, qt) : qt, n = e || (de() ? ce(An, void 0) : void 0), r = O(() => {
476
476
  const a = v(n);
477
- return oe(a) ? a : Pn;
477
+ return se(a) ? a : Pn;
478
478
  }), o = O(() => r.value + Vt.value), s = () => (t.current++, Vt.value = t.current, o.value);
479
- return !G && !le(Ht) && Je("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
479
+ return !Z && !ce(Ht) && Je("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
480
480
  usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
481
481
  initialZIndex: r,
482
482
  currentZIndex: o,
@@ -673,7 +673,7 @@ const _s = (e) => (t, n) => Ss(t, n, v(e)), Ss = (e, t, n) => Xo(n, e, e).replac
673
673
  t: _s(e)
674
674
  };
675
675
  }, Nn = Symbol("localeContextKey"), Cs = (e) => {
676
- const t = e || le(Nn, A());
676
+ const t = e || ce(Nn, A());
677
677
  return Es(O(() => t.value || ws));
678
678
  }, kn = "__epPropKey", z = (e) => e, Os = (e) => qe(e) && !!e[kn], In = (e, t) => {
679
679
  if (!qe(e) || Os(e))
@@ -708,7 +708,7 @@ const _s = (e) => (t, n) => Ss(t, n, v(e)), Ss = (e, t, n) => Xo(n, e, e).replac
708
708
  }
709
709
  }), Jt = (e) => Object.keys(e), Fe = A();
710
710
  function $n(e, t = void 0) {
711
- return de() ? le(vn, Fe) : Fe;
711
+ return de() ? ce(vn, Fe) : Fe;
712
712
  }
713
713
  function Ln(e, t) {
714
714
  const n = $n(), r = vt(e, O(() => {
@@ -766,7 +766,7 @@ const ks = "utils/dom/style", Dn = (e = "") => e.split(" ").filter((t) => !!t.tr
766
766
  !e || !t.trim() || e.classList.remove(...Dn(t));
767
767
  }, we = (e, t) => {
768
768
  var n;
769
- if (!G || !e || !t)
769
+ if (!Z || !e || !t)
770
770
  return "";
771
771
  let r = Nr(t);
772
772
  r === "float" && (r = "cssFloat");
@@ -783,9 +783,9 @@ const ks = "utils/dom/style", Dn = (e = "") => e.split(" ").filter((t) => !!t.tr
783
783
  function it(e, t = "px") {
784
784
  if (!e)
785
785
  return "";
786
- if (oe(e) || ts(e))
786
+ if (se(e) || ts(e))
787
787
  return `${e}${t}`;
788
- if (ne(e))
788
+ if (re(e))
789
789
  return e;
790
790
  Je(ks, "binding value must be a string or number");
791
791
  }
@@ -834,7 +834,7 @@ var Fs = /* @__PURE__ */ k({
834
834
  xmlns: "http://www.w3.org/2000/svg",
835
835
  viewBox: "0 0 1024 1024"
836
836
  }, [
837
- W("path", {
837
+ G("path", {
838
838
  fill: "currentColor",
839
839
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
840
840
  })
@@ -848,7 +848,7 @@ var Fs = /* @__PURE__ */ k({
848
848
  xmlns: "http://www.w3.org/2000/svg",
849
849
  viewBox: "0 0 1024 1024"
850
850
  }, [
851
- W("path", {
851
+ G("path", {
852
852
  fill: "currentColor",
853
853
  d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
854
854
  })
@@ -862,7 +862,7 @@ var Fs = /* @__PURE__ */ k({
862
862
  xmlns: "http://www.w3.org/2000/svg",
863
863
  viewBox: "0 0 1024 1024"
864
864
  }, [
865
- W("path", {
865
+ G("path", {
866
866
  fill: "currentColor",
867
867
  d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
868
868
  })
@@ -876,7 +876,7 @@ var Fs = /* @__PURE__ */ k({
876
876
  xmlns: "http://www.w3.org/2000/svg",
877
877
  viewBox: "0 0 1024 1024"
878
878
  }, [
879
- W("path", {
879
+ G("path", {
880
880
  fill: "currentColor",
881
881
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
882
882
  })
@@ -890,7 +890,7 @@ var Fs = /* @__PURE__ */ k({
890
890
  xmlns: "http://www.w3.org/2000/svg",
891
891
  viewBox: "0 0 1024 1024"
892
892
  }, [
893
- W("path", {
893
+ G("path", {
894
894
  fill: "currentColor",
895
895
  d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
896
896
  })
@@ -948,7 +948,7 @@ const Ks = z([
948
948
  ...Qs,
949
949
  props: Xs,
950
950
  setup(e, { expose: t }) {
951
- const n = e, r = vt("badge"), o = O(() => n.isDot ? "" : oe(n.value) && oe(n.max) ? n.max < n.value ? `${n.max}+` : `${n.value}` : `${n.value}`), s = O(() => {
951
+ const n = e, r = vt("badge"), o = O(() => n.isDot ? "" : se(n.value) && se(n.max) ? n.max < n.value ? `${n.max}+` : `${n.value}` : `${n.value}`), s = O(() => {
952
952
  var a, i, f, u, c;
953
953
  return [
954
954
  {
@@ -970,7 +970,7 @@ const Ks = z([
970
970
  persisted: ""
971
971
  }, {
972
972
  default: D(() => [
973
- ht(W("sup", {
973
+ ht(G("sup", {
974
974
  class: K([
975
975
  v(r).e("content"),
976
976
  v(r).em("content", a.type),
@@ -1031,7 +1031,7 @@ k({
1031
1031
  props: na,
1032
1032
  setup(e, { slots: t }) {
1033
1033
  const n = Bn(e);
1034
- return ee(() => e.message, (r) => {
1034
+ return te(() => e.message, (r) => {
1035
1035
  var o, s;
1036
1036
  Object.assign(L, (s = (o = n == null ? void 0 : n.value) == null ? void 0 : o.message) != null ? s : {}, r ?? {});
1037
1037
  }, { immediate: !0, deep: !0 }), () => Oe(t, "default", { config: n == null ? void 0 : n.value });
@@ -1130,8 +1130,8 @@ function ra(e, t) {
1130
1130
  };
1131
1131
  }
1132
1132
  let Ne;
1133
- const ce = function(e = {}) {
1134
- if (!G)
1133
+ const ue = function(e = {}) {
1134
+ if (!Z)
1135
1135
  return;
1136
1136
  const t = oa(e);
1137
1137
  if (t.fullscreen && Ne)
@@ -1142,14 +1142,14 @@ const ce = function(e = {}) {
1142
1142
  var o;
1143
1143
  (o = t.closed) == null || o.call(t), t.fullscreen && (Ne = void 0);
1144
1144
  }
1145
- }, ce._context);
1145
+ }, ue._context);
1146
1146
  sa(t, t.parent, n), Xt(t, t.parent, n), t.parent.vLoadingAddClassList = () => Xt(t, t.parent, n);
1147
1147
  let r = t.parent.getAttribute("loading-number");
1148
1148
  return r ? r = `${Number.parseInt(r) + 1}` : r = "1", t.parent.setAttribute("loading-number", r), t.parent.appendChild(n.$el), Me(() => n.visible.value = t.visible), t.fullscreen && (Ne = n), n;
1149
1149
  }, oa = (e) => {
1150
1150
  var t, n, r, o;
1151
1151
  let s;
1152
- return ne(e.target) ? s = (t = document.querySelector(e.target)) != null ? t : document.body : s = e.target || document.body, {
1152
+ return re(e.target) ? s = (t = document.querySelector(e.target)) != null ? t : document.body : s = e.target || document.body, {
1153
1153
  parent: s === document.body || e.body ? document.body : s,
1154
1154
  background: e.background || "",
1155
1155
  svg: e.svg || "",
@@ -1184,13 +1184,13 @@ const ce = function(e = {}) {
1184
1184
  const r = n.vm.ns || n.vm._.exposed.ns;
1185
1185
  ["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? je(t, r.bm("parent", "relative")) : Kt(t, r.bm("parent", "relative")), e.fullscreen && e.lock ? Kt(t, r.bm("parent", "hidden")) : je(t, r.bm("parent", "hidden"));
1186
1186
  };
1187
- ce._context = null;
1188
- const Ee = Symbol("ElLoading"), X = (e) => `element-loading-${Ir(e)}`, Qt = (e, t) => {
1187
+ ue._context = null;
1188
+ const Ee = Symbol("ElLoading"), Q = (e) => `element-loading-${Ir(e)}`, Qt = (e, t) => {
1189
1189
  var n, r, o, s;
1190
1190
  const a = t.instance, i = (h) => qe(t.value) ? t.value[h] : void 0, f = (h) => {
1191
- const g = ne(h) && (a == null ? void 0 : a[h]) || h;
1191
+ const g = re(h) && (a == null ? void 0 : a[h]) || h;
1192
1192
  return A(g);
1193
- }, u = (h) => f(i(h) || e.getAttribute(X(h))), c = (n = i("fullscreen")) != null ? n : t.modifiers.fullscreen, d = {
1193
+ }, u = (h) => f(i(h) || e.getAttribute(Q(h))), c = (n = i("fullscreen")) != null ? n : t.modifiers.fullscreen, d = {
1194
1194
  text: u("text"),
1195
1195
  svg: u("svg"),
1196
1196
  svgViewBox: u("svgViewBox"),
@@ -1201,7 +1201,7 @@ const Ee = Symbol("ElLoading"), X = (e) => `element-loading-${Ir(e)}`, Qt = (e,
1201
1201
  target: (r = i("target")) != null ? r : c ? void 0 : e,
1202
1202
  body: (o = i("body")) != null ? o : t.modifiers.body,
1203
1203
  lock: (s = i("lock")) != null ? s : t.modifiers.lock
1204
- }, y = ce(d);
1204
+ }, y = ue(d);
1205
1205
  y._context = Ce._context, e[Ee] = {
1206
1206
  options: d,
1207
1207
  instance: y
@@ -1220,12 +1220,12 @@ const Ee = Symbol("ElLoading"), X = (e) => `element-loading-${Ir(e)}`, Qt = (e,
1220
1220
  return;
1221
1221
  }
1222
1222
  n ? aa(n.options, qe(t.value) ? t.value : {
1223
- text: e.getAttribute(X("text")),
1224
- svg: e.getAttribute(X("svg")),
1225
- svgViewBox: e.getAttribute(X("svgViewBox")),
1226
- spinner: e.getAttribute(X("spinner")),
1227
- background: e.getAttribute(X("background")),
1228
- customClass: e.getAttribute(X("customClass"))
1223
+ text: e.getAttribute(Q("text")),
1224
+ svg: e.getAttribute(Q("svg")),
1225
+ svgViewBox: e.getAttribute(Q("svgViewBox")),
1226
+ spinner: e.getAttribute(Q("spinner")),
1227
+ background: e.getAttribute(Q("background")),
1228
+ customClass: e.getAttribute(Q("customClass"))
1229
1229
  }) : Qt(e, t);
1230
1230
  },
1231
1231
  unmounted(e) {
@@ -1236,10 +1236,10 @@ const Ee = Symbol("ElLoading"), X = (e) => `element-loading-${Ir(e)}`, Qt = (e,
1236
1236
  Ce._context = null;
1237
1237
  const ia = {
1238
1238
  install(e) {
1239
- ce._context = e._context, Ce._context = e._context, e.directive("loading", Ce), e.config.globalProperties.$loading = ce;
1239
+ ue._context = e._context, Ce._context = e._context, e.directive("loading", Ce), e.config.globalProperties.$loading = ue;
1240
1240
  },
1241
1241
  directive: Ce,
1242
- service: ce
1242
+ service: ue
1243
1243
  }, jn = [
1244
1244
  "primary",
1245
1245
  "success",
@@ -1261,7 +1261,7 @@ const ia = {
1261
1261
  zIndex: 0,
1262
1262
  grouping: !1,
1263
1263
  repeatNum: 1,
1264
- appendTo: G ? document.body : void 0
1264
+ appendTo: Z ? document.body : void 0
1265
1265
  }), la = Re({
1266
1266
  customClass: {
1267
1267
  type: String,
@@ -1351,32 +1351,32 @@ const ia = {
1351
1351
  }));
1352
1352
  function C() {
1353
1353
  r.duration !== 0 && ({ stop: h } = as(() => {
1354
- F();
1354
+ j();
1355
1355
  }, r.duration));
1356
1356
  }
1357
- function j() {
1357
+ function U() {
1358
1358
  h == null || h();
1359
1359
  }
1360
- function F() {
1360
+ function j() {
1361
1361
  d.value = !1, Me(() => {
1362
1362
  var E;
1363
1363
  s.value || ((E = r.onClose) == null || E.call(r), n("destroy"));
1364
1364
  });
1365
1365
  }
1366
- function ie({ code: E }) {
1367
- E === Zs.esc && F();
1366
+ function le({ code: E }) {
1367
+ E === Zs.esc && j();
1368
1368
  }
1369
1369
  return pn(() => {
1370
1370
  C(), u(), d.value = !0;
1371
- }), ee(() => r.repeatNum, () => {
1372
- j(), C();
1373
- }), is(document, "keydown", ie), fs(c, () => {
1371
+ }), te(() => r.repeatNum, () => {
1372
+ U(), C();
1373
+ }), is(document, "keydown", le), fs(c, () => {
1374
1374
  y.value = c.value.getBoundingClientRect().height;
1375
1375
  }), t({
1376
1376
  visible: d,
1377
1377
  bottom: _,
1378
- close: F
1379
- }), (E, tl) => (R(), Q(gt, {
1378
+ close: j
1379
+ }), (E, tl) => (R(), Y(gt, {
1380
1380
  name: v(a).b("fade"),
1381
1381
  onBeforeEnter: (mr) => s.value = !0,
1382
1382
  onBeforeLeave: E.onClose,
@@ -1384,7 +1384,7 @@ const ia = {
1384
1384
  persisted: ""
1385
1385
  }, {
1386
1386
  default: D(() => [
1387
- ht(W("div", {
1387
+ ht(G("div", {
1388
1388
  id: E.id,
1389
1389
  ref_key: "messageRef",
1390
1390
  ref: c,
@@ -1397,28 +1397,28 @@ const ia = {
1397
1397
  ]),
1398
1398
  style: hn(v(T)),
1399
1399
  role: "alert",
1400
- onMouseenter: j,
1400
+ onMouseenter: U,
1401
1401
  onMouseleave: C
1402
1402
  }, [
1403
- E.repeatNum > 1 ? (R(), Q(v(ta), {
1403
+ E.repeatNum > 1 ? (R(), Y(v(ta), {
1404
1404
  key: 0,
1405
1405
  value: E.repeatNum,
1406
1406
  type: v(g),
1407
1407
  class: K(v(a).e("badge"))
1408
1408
  }, null, 8, ["value", "type", "class"])) : Se("v-if", !0),
1409
- v(m) ? (R(), Q(v(Wt), {
1409
+ v(m) ? (R(), Y(v(Wt), {
1410
1410
  key: 1,
1411
1411
  class: K([v(a).e("icon"), v(p)])
1412
1412
  }, {
1413
1413
  default: D(() => [
1414
- (R(), Q(Er(v(m))))
1414
+ (R(), Y(Er(v(m))))
1415
1415
  ]),
1416
1416
  _: 1
1417
1417
  }, 8, ["class"])) : Se("v-if", !0),
1418
1418
  Oe(E.$slots, "default", {}, () => [
1419
1419
  E.dangerouslyUseHTMLString ? (R(), J(Cr, { key: 1 }, [
1420
1420
  Se(" Caution here, message could've been compromised, never use user's input as message "),
1421
- W("p", {
1421
+ G("p", {
1422
1422
  class: K(v(a).e("content")),
1423
1423
  innerHTML: E.message
1424
1424
  }, null, 10, ["innerHTML"])
@@ -1427,10 +1427,10 @@ const ia = {
1427
1427
  class: K(v(a).e("content"))
1428
1428
  }, yn(E.message), 3))
1429
1429
  ]),
1430
- E.showClose ? (R(), Q(v(Wt), {
1430
+ E.showClose ? (R(), Y(v(Wt), {
1431
1431
  key: 2,
1432
1432
  class: K(v(a).e("closeBtn")),
1433
- onClick: Or(F, ["stop"])
1433
+ onClick: Or(j, ["stop"])
1434
1434
  }, {
1435
1435
  default: D(() => [
1436
1436
  B(v(o))
@@ -1448,17 +1448,17 @@ const ia = {
1448
1448
  var ga = /* @__PURE__ */ xt(ma, [["__file", "message.vue"]]);
1449
1449
  let ha = 1;
1450
1450
  const Un = (e) => {
1451
- const t = !e || ne(e) || bn(e) || De(e) ? { message: e } : e, n = {
1451
+ const t = !e || re(e) || bn(e) || De(e) ? { message: e } : e, n = {
1452
1452
  ...N,
1453
1453
  ...t
1454
1454
  };
1455
1455
  if (!n.appendTo)
1456
1456
  n.appendTo = document.body;
1457
- else if (ne(n.appendTo)) {
1457
+ else if (re(n.appendTo)) {
1458
1458
  let r = document.querySelector(n.appendTo);
1459
1459
  es(r) || (Je("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), r = document.body), n.appendTo = r;
1460
1460
  }
1461
- return nt(L.grouping) && !n.grouping && (n.grouping = L.grouping), oe(L.duration) && n.duration === 3e3 && (n.duration = L.duration), oe(L.offset) && n.offset === 16 && (n.offset = L.offset), nt(L.showClose) && !n.showClose && (n.showClose = L.showClose), nt(L.plain) && !n.plain && (n.plain = L.plain), n;
1461
+ return nt(L.grouping) && !n.grouping && (n.grouping = L.grouping), se(L.duration) && n.duration === 3e3 && (n.duration = L.duration), se(L.offset) && n.offset === 16 && (n.offset = L.offset), nt(L.showClose) && !n.showClose && (n.showClose = L.showClose), nt(L.plain) && !n.plain && (n.plain = L.plain), n;
1462
1462
  }, ya = (e) => {
1463
1463
  const t = M.indexOf(e);
1464
1464
  if (t === -1)
@@ -1493,7 +1493,7 @@ const Un = (e) => {
1493
1493
  };
1494
1494
  return c;
1495
1495
  }, pe = (e = {}, t) => {
1496
- if (!G)
1496
+ if (!Z)
1497
1497
  return { close: () => {
1498
1498
  } };
1499
1499
  const n = Un(e);
@@ -1505,7 +1505,7 @@ const Un = (e) => {
1505
1505
  if (o)
1506
1506
  return o.props.repeatNum += 1, o.props.type = n.type, o.handler;
1507
1507
  }
1508
- if (oe(L.max) && M.length >= L.max)
1508
+ if (se(L.max) && M.length >= L.max)
1509
1509
  return { close: () => {
1510
1510
  } };
1511
1511
  const r = ba(n, t);
@@ -1575,7 +1575,7 @@ function Hn(e, t) {
1575
1575
  return o;
1576
1576
  return null;
1577
1577
  }
1578
- const Y = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Jn = (e) => !Te(e) && e !== Y;
1578
+ const ee = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Jn = (e) => !Te(e) && e !== ee;
1579
1579
  function lt() {
1580
1580
  const { caseless: e } = Jn(this) && this || {}, t = {}, n = (r, o) => {
1581
1581
  const s = e && Hn(t, o) || o;
@@ -1682,14 +1682,14 @@ const ei = (e) => {
1682
1682
  return r;
1683
1683
  };
1684
1684
  return n(e, 0);
1685
- }, ti = q("AsyncFunction"), ni = (e) => e && (Ze(e) || I(e)) && I(e.then) && I(e.catch), Wn = ((e, t) => e ? setImmediate : t ? ((n, r) => (Y.addEventListener("message", ({ source: o, data: s }) => {
1686
- o === Y && s === n && r.length && r.shift()();
1685
+ }, ti = q("AsyncFunction"), ni = (e) => e && (Ze(e) || I(e)) && I(e.then) && I(e.catch), Wn = ((e, t) => e ? setImmediate : t ? ((n, r) => (ee.addEventListener("message", ({ source: o, data: s }) => {
1686
+ o === ee && s === n && r.length && r.shift()();
1687
1687
  }, !1), (o) => {
1688
- r.push(o), Y.postMessage(n, "*");
1688
+ r.push(o), ee.postMessage(n, "*");
1689
1689
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
1690
1690
  typeof setImmediate == "function",
1691
- I(Y.postMessage)
1692
- ), ri = typeof queueMicrotask < "u" ? queueMicrotask.bind(Y) : typeof process < "u" && process.nextTick || Wn, oi = (e) => e != null && I(e[Ke]), l = {
1691
+ I(ee.postMessage)
1692
+ ), ri = typeof queueMicrotask < "u" ? queueMicrotask.bind(ee) : typeof process < "u" && process.nextTick || Wn, oi = (e) => e != null && I(e[Ke]), l = {
1693
1693
  isArray: ge,
1694
1694
  isArrayBuffer: qn,
1695
1695
  isBuffer: _a,
@@ -1738,7 +1738,7 @@ const ei = (e) => {
1738
1738
  noop: Xa,
1739
1739
  toFiniteNumber: Qa,
1740
1740
  findKey: Hn,
1741
- global: Y,
1741
+ global: ee,
1742
1742
  isContextDefined: Jn,
1743
1743
  isSpecCompliantForm: Ya,
1744
1744
  toJSONObject: ei,
@@ -2443,7 +2443,7 @@ function or(e, t, n) {
2443
2443
  return e && (r || n == !1) ? Ii(e, t) : t;
2444
2444
  }
2445
2445
  const an = (e) => e instanceof $ ? { ...e } : e;
2446
- function se(e, t) {
2446
+ function ae(e, t) {
2447
2447
  t = t || {};
2448
2448
  const n = {};
2449
2449
  function r(u, c, d, y) {
@@ -2508,7 +2508,7 @@ function se(e, t) {
2508
2508
  }), n;
2509
2509
  }
2510
2510
  const sr = (e) => {
2511
- const t = se({}, e);
2511
+ const t = ae({}, e);
2512
2512
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: a, auth: i } = t;
2513
2513
  t.headers = a = $.from(a), t.url = Yn(or(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
2514
2514
  "Authorization",
@@ -2552,10 +2552,10 @@ const sr = (e) => {
2552
2552
  config: e,
2553
2553
  request: m
2554
2554
  };
2555
- rr(function(F) {
2556
- n(F), p();
2557
- }, function(F) {
2558
- r(F), p();
2555
+ rr(function(j) {
2556
+ n(j), p();
2557
+ }, function(j) {
2558
+ r(j), p();
2559
2559
  }, C), m = null;
2560
2560
  }
2561
2561
  "onloadend" in m ? m.onloadend = w : m.onreadystatechange = function() {
@@ -2735,13 +2735,13 @@ const Mi = async (e) => {
2735
2735
  method: "POST",
2736
2736
  body: r,
2737
2737
  duplex: "half"
2738
- }), j;
2739
- if (l.isFormData(r) && (j = C.headers.get("content-type")) && c.setContentType(j), C.body) {
2740
- const [F, ie] = on(
2738
+ }), U;
2739
+ if (l.isFormData(r) && (U = C.headers.get("content-type")) && c.setContentType(U), C.body) {
2740
+ const [j, le] = on(
2741
2741
  m,
2742
2742
  Ue(sn(f))
2743
2743
  );
2744
- r = ln(C.body, cn, F, ie);
2744
+ r = ln(C.body, cn, j, le);
2745
2745
  }
2746
2746
  }
2747
2747
  l.isString(d) || (d = d ? "include" : "omit");
@@ -2762,21 +2762,21 @@ const Mi = async (e) => {
2762
2762
  ["status", "statusText", "headers"].forEach((E) => {
2763
2763
  C[E] = b[E];
2764
2764
  });
2765
- const j = l.toFiniteNumber(b.headers.get("content-length")), [F, ie] = i && on(
2766
- j,
2765
+ const U = l.toFiniteNumber(b.headers.get("content-length")), [j, le] = i && on(
2766
+ U,
2767
2767
  Ue(sn(i), !0)
2768
2768
  ) || [];
2769
2769
  b = new Response(
2770
- ln(b.body, cn, F, () => {
2771
- ie && ie(), p && p();
2770
+ ln(b.body, cn, j, () => {
2771
+ le && le(), p && p();
2772
2772
  }),
2773
2773
  C
2774
2774
  );
2775
2775
  }
2776
2776
  u = u || "text";
2777
2777
  let T = await ze[l.findKey(ze, u) || "text"](b, e);
2778
- return !_ && p && p(), await new Promise((C, j) => {
2779
- rr(C, j, {
2778
+ return !_ && p && p(), await new Promise((C, U) => {
2779
+ rr(C, U, {
2780
2780
  data: T,
2781
2781
  headers: $.from(b.headers),
2782
2782
  status: b.status,
@@ -2909,7 +2909,7 @@ const Be = {
2909
2909
  assertOptions: Ji,
2910
2910
  validators: Ye
2911
2911
  }, V = Be.validators;
2912
- let te = class {
2912
+ let ne = class {
2913
2913
  constructor(t) {
2914
2914
  this.defaults = t || {}, this.interceptors = {
2915
2915
  request: new nn(),
@@ -2942,7 +2942,7 @@ let te = class {
2942
2942
  }
2943
2943
  }
2944
2944
  _request(t, n) {
2945
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = se(this.defaults, n);
2945
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ae(this.defaults, n);
2946
2946
  const { transitional: r, paramsSerializer: o, headers: s } = n;
2947
2947
  r !== void 0 && Be.assertOptions(r, {
2948
2948
  silentJSONParsing: V.transitional(V.boolean),
@@ -3004,14 +3004,14 @@ let te = class {
3004
3004
  return c;
3005
3005
  }
3006
3006
  getUri(t) {
3007
- t = se(this.defaults, t);
3007
+ t = ae(this.defaults, t);
3008
3008
  const n = or(t.baseURL, t.url, t.allowAbsoluteUrls);
3009
3009
  return Yn(n, t.params, t.paramsSerializer);
3010
3010
  }
3011
3011
  };
3012
3012
  l.forEach(["delete", "get", "head", "options"], function(t) {
3013
- te.prototype[t] = function(n, r) {
3014
- return this.request(se(r || {}, {
3013
+ ne.prototype[t] = function(n, r) {
3014
+ return this.request(ae(r || {}, {
3015
3015
  method: t,
3016
3016
  url: n,
3017
3017
  data: (r || {}).data
@@ -3021,7 +3021,7 @@ l.forEach(["delete", "get", "head", "options"], function(t) {
3021
3021
  l.forEach(["post", "put", "patch"], function(t) {
3022
3022
  function n(r) {
3023
3023
  return function(s, a, i) {
3024
- return this.request(se(i || {}, {
3024
+ return this.request(ae(i || {}, {
3025
3025
  method: t,
3026
3026
  headers: r ? {
3027
3027
  "Content-Type": "multipart/form-data"
@@ -3031,7 +3031,7 @@ l.forEach(["post", "put", "patch"], function(t) {
3031
3031
  }));
3032
3032
  };
3033
3033
  }
3034
- te.prototype[t] = n(), te.prototype[t + "Form"] = n(!0);
3034
+ ne.prototype[t] = n(), ne.prototype[t + "Form"] = n(!0);
3035
3035
  });
3036
3036
  let Ki = class ur {
3037
3037
  constructor(t) {
@@ -3183,13 +3183,13 @@ Object.entries(pt).forEach(([e, t]) => {
3183
3183
  pt[t] = e;
3184
3184
  });
3185
3185
  function dr(e) {
3186
- const t = new te(e), n = zn(te.prototype.request, t);
3187
- return l.extend(n, te.prototype, t, { allOwnKeys: !0 }), l.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
3188
- return dr(se(e, o));
3186
+ const t = new ne(e), n = zn(ne.prototype.request, t);
3187
+ return l.extend(n, ne.prototype, t, { allOwnKeys: !0 }), l.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
3188
+ return dr(ae(e, o));
3189
3189
  }, n;
3190
3190
  }
3191
3191
  const x = dr(Ae);
3192
- x.Axios = te;
3192
+ x.Axios = ne;
3193
3193
  x.CanceledError = he;
3194
3194
  x.CancelToken = Ki;
3195
3195
  x.isCancel = nr;
@@ -3202,7 +3202,7 @@ x.all = function(t) {
3202
3202
  };
3203
3203
  x.spread = Wi;
3204
3204
  x.isAxiosError = Gi;
3205
- x.mergeConfig = se;
3205
+ x.mergeConfig = ae;
3206
3206
  x.AxiosHeaders = $;
3207
3207
  x.formToJSON = (e) => tr(l.isHTMLForm(e) ? new FormData(e) : e);
3208
3208
  x.getAdapter = lr.getAdapter;
@@ -3285,15 +3285,15 @@ class et {
3285
3285
  const _l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3286
3286
  __proto__: null,
3287
3287
  default: et
3288
- }, Symbol.toStringTag, { value: "Module" })), U = {
3288
+ }, Symbol.toStringTag, { value: "Module" })), F = {
3289
3289
  componentId: "",
3290
3290
  userPermission: null
3291
- }, ue = new et();
3291
+ }, W = new et();
3292
3292
  function Zi() {
3293
- const e = ue.get("qlfyEcologicalLogin_" + U.componentId);
3293
+ const e = W.get("qlfyEcologicalLogin_" + F.componentId);
3294
3294
  if (!e || !e.isEnabled)
3295
3295
  return console.error(new Error("统一登陆未开启,请检查配置")), null;
3296
- let t = ue.get(e.tokenName);
3296
+ let t = W.get(e.tokenName);
3297
3297
  console.log(t), x({
3298
3298
  method: "post",
3299
3299
  url: e.loginServiceBaseAddress + "/admin-api/system/auth/logout",
@@ -3302,15 +3302,18 @@ function Zi() {
3302
3302
  Authorization: "Bearer " + t
3303
3303
  }
3304
3304
  }).then((n) => {
3305
- n.data.code || (ue.remove(e.tokenName), mt());
3305
+ n.data.code || (W.remove(e.tokenName), W.remove("refreshToken"), mt());
3306
3306
  });
3307
3307
  }
3308
3308
  function fr() {
3309
- const e = ue.get("qlfyEcologicalLogin_" + U.componentId);
3310
- return console.log(e), !e || !e.isEnabled ? null : ue.get(e.tokenName);
3309
+ const e = W.get("qlfyEcologicalLogin_" + F.componentId);
3310
+ return console.log(e), !e || !e.isEnabled ? null : W.get(e.tokenName);
3311
+ }
3312
+ function Sl() {
3313
+ return W.get("refreshToken");
3311
3314
  }
3312
3315
  function mt() {
3313
- const e = ue.get("qlfyEcologicalLogin_" + U.componentId), t = Xi(e.loginPageBaseAddress, e.clientId, e.clientSecret, e.tenantId, e.redirectPath);
3316
+ const e = W.get("qlfyEcologicalLogin_" + F.componentId), t = Xi(e.loginPageBaseAddress, e.clientId, e.clientSecret, e.tenantId, e.redirectPath);
3314
3317
  t && window.open(t, "_self");
3315
3318
  }
3316
3319
  function Xi(e, t, n, r, o) {
@@ -3323,19 +3326,19 @@ function Qi() {
3323
3326
  return e;
3324
3327
  }
3325
3328
  function Yi() {
3326
- return U.userPermission;
3329
+ return F.userPermission;
3327
3330
  }
3328
3331
  let H = bt({
3329
3332
  isShow: !1,
3330
3333
  elDialogConfig: {}
3331
3334
  });
3332
- function Sl() {
3335
+ function El() {
3333
3336
  H.isShow = !0, console.log(H);
3334
3337
  }
3335
- function El() {
3338
+ function Cl() {
3336
3339
  H.isShow = !1;
3337
3340
  }
3338
- function Cl(e) {
3341
+ function Ol(e) {
3339
3342
  H.elDialogConfig = e;
3340
3343
  }
3341
3344
  const el = /* @__PURE__ */ k({
@@ -3366,7 +3369,7 @@ const el = /* @__PURE__ */ k({
3366
3369
  ]
3367
3370
  };
3368
3371
  function i() {
3369
- const d = o.get("qlfyEcologicalLogin_" + U.componentId);
3372
+ const d = o.get("qlfyEcologicalLogin_" + F.componentId);
3370
3373
  if (!d || !d.loginServiceBaseAddress)
3371
3374
  return Ie.error("组件参数获取失败~");
3372
3375
  let y = {
@@ -3407,7 +3410,7 @@ const el = /* @__PURE__ */ k({
3407
3410
  }
3408
3411
  return (d, y) => {
3409
3412
  const h = be("el-input"), g = be("el-form-item"), p = be("el-form"), m = be("el-button"), w = be("el-dialog");
3410
- return R(), Q(w, gn({
3413
+ return R(), Y(w, gn({
3411
3414
  modelValue: v(H).isShow,
3412
3415
  "onUpdate:modelValue": y[4] || (y[4] = (b) => v(H).isShow = b),
3413
3416
  title: "修改密码",
@@ -3499,6 +3502,7 @@ const el = /* @__PURE__ */ k({
3499
3502
  loginPageBaseAddress: {},
3500
3503
  loginServiceBaseAddress: {},
3501
3504
  useRouter: {},
3505
+ loginMode: { default: "global" },
3502
3506
  token: {},
3503
3507
  isEnabled: { type: Boolean, default: !0 },
3504
3508
  listenToken: { type: Boolean, default: !1 },
@@ -3522,21 +3526,22 @@ const el = /* @__PURE__ */ k({
3522
3526
  getToken: fr,
3523
3527
  // 获取用户权限信息
3524
3528
  getUserPermission: Yi
3525
- }), U.componentId || (U.componentId = c, y.value = !0), xr(() => {
3529
+ }), F.componentId || (F.componentId = c, y.value = !0), xr(() => {
3526
3530
  f && clearInterval(f);
3527
3531
  for (let b = 0; b < localStorage.length; b++) {
3528
3532
  let _ = localStorage.key(b);
3529
3533
  _ && _.indexOf("qlfyEcologicalLogin_") >= 0 && i.remove(_);
3530
3534
  }
3531
- }), ee(
3535
+ r.loginMode == "part" && (F.componentId = "", F.userPermission = null);
3536
+ }), te(
3532
3537
  () => s.value.path,
3533
3538
  (b, _) => {
3534
3539
  d && clearTimeout(d), d = setTimeout(() => {
3535
3540
  r.isEnabled && h();
3536
- }, 200);
3541
+ }, 300);
3537
3542
  },
3538
3543
  { deep: !0, immediate: !0 }
3539
- ), ee(
3544
+ ), te(
3540
3545
  () => r.isEnabled,
3541
3546
  () => {
3542
3547
  setTimeout(() => {
@@ -3551,19 +3556,19 @@ const el = /* @__PURE__ */ k({
3551
3556
  });
3552
3557
  },
3553
3558
  { deep: !0 }
3554
- ), ee(
3559
+ ), te(
3555
3560
  () => r.token,
3556
3561
  (b) => {
3557
3562
  },
3558
3563
  {}
3559
3564
  );
3560
3565
  function h() {
3561
- if (!r.isEnabled || c !== U.componentId) return;
3566
+ if (!r.isEnabled || c !== F.componentId) return;
3562
3567
  m(), r.token ? (i.set(r.tokenName, r.token, r.tokenValidity), i.set("tokenType", 1)) : i.get(r.tokenName) && (i.get("tokenType") == 1 && i.remove(r.tokenName), i.set("tokenType", 0));
3563
3568
  const b = i.get(r.tokenName);
3564
3569
  b && i.set(r.tokenName, b, r.tokenValidity);
3565
3570
  const _ = !!s.value.query.token;
3566
- if (U.userPermission = null, !b && _) {
3571
+ if (F.userPermission = null, !b && _) {
3567
3572
  a("loggingIn", s.value.query.token), i.set(r.tokenName, s.value.query.token, r.tokenValidity), i.set("refreshToken", s.value.query.refreshToken);
3568
3573
  let T = { ...s.value.query };
3569
3574
  delete T.token, delete T.refreshToken, o.replace({
@@ -3601,13 +3606,13 @@ const el = /* @__PURE__ */ k({
3601
3606
  params: _,
3602
3607
  headers: T
3603
3608
  }).then((C) => {
3604
- U.userPermission = c, a("loginSuccess", C.data);
3609
+ F.userPermission = c, a("loginSuccess", C.data);
3605
3610
  }).catch((C) => {
3606
3611
  console.log(C);
3607
3612
  });
3608
3613
  }
3609
3614
  function m() {
3610
- if (c !== U.componentId) return;
3615
+ if (c !== F.componentId) return;
3611
3616
  for (let _ = 0; _ < localStorage.length; _++) {
3612
3617
  let T = localStorage.key(_);
3613
3618
  T && T.indexOf("qlfyEcologicalLogin_") === 0 && i.remove(T);
@@ -3622,24 +3627,25 @@ const el = /* @__PURE__ */ k({
3622
3627
  }, 2e3));
3623
3628
  }, 1e3));
3624
3629
  }
3625
- return (b, _) => y.value ? (R(), Q(el, {
3630
+ return (b, _) => y.value ? (R(), Y(el, {
3626
3631
  key: 0,
3627
3632
  "dialog-config": r.dialogConfig
3628
3633
  }, null, 8, ["dialog-config"])) : Se("", !0);
3629
3634
  }
3630
- }), Ol = pr, xl = {
3635
+ }), xl = pr, Tl = {
3631
3636
  install(e) {
3632
3637
  e.component("qlfyEcologicalLogin", pr);
3633
3638
  }
3634
3639
  };
3635
3640
  export {
3636
3641
  _l as LocalStorageManager,
3637
- El as closeChangePassword,
3638
- xl as default,
3642
+ Cl as closeChangePassword,
3643
+ Tl as default,
3644
+ Sl as getRefreshToken,
3639
3645
  fr as getToken,
3640
3646
  Yi as getUserPermission,
3641
3647
  Zi as logout,
3642
- Sl as openChangePassword,
3643
- Ol as qlfyEcologicalLogin,
3644
- Cl as setDialogConfig
3648
+ El as openChangePassword,
3649
+ xl as qlfyEcologicalLogin,
3650
+ Ol as setDialogConfig
3645
3651
  };