xyvcard-settle 0.0.51 → 0.0.52

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.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,45 +1,45 @@
1
- import { onMounted as Q, nextTick as X, getCurrentInstance as R, unref as U, getCurrentScope as Z, onScopeDispose as ee, ref as m, watch as j, watchEffect as B, computed as z, defineComponent as te, resolveComponent as C, createElementBlock as ne, openBlock as oe, createElementVNode as u, createVNode as i, withCtx as b, withDirectives as re, normalizeStyle as le, vShow as se, withKeys as N, withModifiers as ae, createTextVNode as ie, toDisplayString as ue } from "vue";
2
- import { q as ce, _ as de } from "./qrcode-success-RhATc5cS.mjs";
3
- import { useI18n as pe } from "vue-i18n";
1
+ import { onMounted as j, nextTick as X, getCurrentInstance as Q, unref as R, getCurrentScope as Z, onScopeDispose as ee, ref as m, watch as U, watchEffect as B, computed as z, defineComponent as te, resolveComponent as C, createElementBlock as ne, openBlock as oe, createElementVNode as u, createVNode as i, withCtx as b, withDirectives as re, normalizeStyle as le, vShow as se, withKeys as N, withModifiers as ae, createTextVNode as ie, toDisplayString as ue } from "vue";
2
+ import { useI18n as ce } from "vue-i18n";
4
3
  import "element-plus";
5
- import { useRoute as me, useRouter as fe } from "vue-router";
6
- import { vueMetaEnv as M, useAppStore as O, useUserStore as ve, netEncrypt as ge, getCaptchaApi as he, createLoginQrcode as _e } from "jmash-core";
7
- import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
+ import { useRoute as de, useRouter as pe } from "vue-router";
5
+ import { vueMetaEnv as M, useAppStore as O, useUserStore as me, netEncrypt as fe, getCaptchaApi as ve, createLoginQrcode as ge } from "jmash-core";
6
+ import { _ as he } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
+ const _e = "/node_modules/xyvcard-settle/dist/images/logo.png";
8
8
  function H(e) {
9
9
  return Z() ? (ee(e), !0) : !1;
10
10
  }
11
11
  function $(e) {
12
- return typeof e == "function" ? e() : U(e);
12
+ return typeof e == "function" ? e() : R(e);
13
13
  }
14
- const we = typeof window < "u" && typeof document < "u";
14
+ const ye = typeof window < "u" && typeof document < "u";
15
15
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
16
- const be = Object.prototype.toString, Ce = (e) => be.call(e) === "[object Object]", Ee = () => {
16
+ const we = Object.prototype.toString, be = (e) => we.call(e) === "[object Object]", Ce = () => {
17
17
  };
18
- function Ie(e) {
19
- return R();
18
+ function Ee(e) {
19
+ return Q();
20
20
  }
21
- function Se(e, n = !0, o) {
22
- Ie() ? Q(e, o) : n ? e() : X(e);
21
+ function Ie(e, n = !0, o) {
22
+ Ee() ? j(e, o) : n ? e() : X(e);
23
23
  }
24
- function Te(e) {
24
+ function Se(e) {
25
25
  var n;
26
26
  const o = $(e);
27
27
  return (n = o == null ? void 0 : o.$el) != null ? n : o;
28
28
  }
29
- const x = we ? window : void 0;
30
- function Ve(...e) {
29
+ const x = ye ? window : void 0;
30
+ function Te(...e) {
31
31
  let n, o, a, t;
32
32
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, a, t] = e, n = x) : [n, o, a, t] = e, !n)
33
- return Ee;
33
+ return Ce;
34
34
  Array.isArray(o) || (o = [o]), Array.isArray(a) || (a = [a]);
35
35
  const c = [], s = () => {
36
36
  c.forEach((f) => f()), c.length = 0;
37
- }, d = (f, v, E, g) => (f.addEventListener(v, E, g), () => f.removeEventListener(v, E, g)), p = j(
38
- () => [Te(n), $(t)],
37
+ }, d = (f, v, E, g) => (f.addEventListener(v, E, g), () => f.removeEventListener(v, E, g)), p = U(
38
+ () => [Se(n), $(t)],
39
39
  ([f, v]) => {
40
40
  if (s(), !f)
41
41
  return;
42
- const E = Ce(v) ? { ...v } : v;
42
+ const E = be(v) ? { ...v } : v;
43
43
  c.push(
44
44
  ...o.flatMap((g) => a.map((S) => d(f, g, S, E)))
45
45
  );
@@ -50,18 +50,18 @@ function Ve(...e) {
50
50
  };
51
51
  return H(_), _;
52
52
  }
53
- function ke() {
54
- const e = m(!1), n = R();
55
- return n && Q(() => {
53
+ function Ve() {
54
+ const e = m(!1), n = Q();
55
+ return n && j(() => {
56
56
  e.value = !0;
57
57
  }, n), e;
58
58
  }
59
- function qe(e) {
60
- const n = ke();
59
+ function ke(e) {
60
+ const n = Ve();
61
61
  return z(() => (n.value, !!e()));
62
62
  }
63
- function Ae(e, n = {}) {
64
- const { window: o = x } = n, a = qe(() => o && "matchMedia" in o && typeof o.matchMedia == "function");
63
+ function qe(e, n = {}) {
64
+ const { window: o = x } = n, a = ke(() => o && "matchMedia" in o && typeof o.matchMedia == "function");
65
65
  let t;
66
66
  const c = m(!1), s = (_) => {
67
67
  c.value = _.matches;
@@ -74,7 +74,7 @@ function Ae(e, n = {}) {
74
74
  p(), d(), t = void 0;
75
75
  }), c;
76
76
  }
77
- function Le(e = {}) {
77
+ function Ae(e = {}) {
78
78
  const {
79
79
  window: n = x,
80
80
  initialWidth: o = Number.POSITIVE_INFINITY,
@@ -84,16 +84,16 @@ function Le(e = {}) {
84
84
  } = e, s = m(o), d = m(a), p = () => {
85
85
  n && (c ? (s.value = n.innerWidth, d.value = n.innerHeight) : (s.value = n.document.documentElement.clientWidth, d.value = n.document.documentElement.clientHeight));
86
86
  };
87
- if (p(), Se(p), Ve("resize", p, { passive: !0 }), t) {
88
- const _ = Ae("(orientation: portrait)");
89
- j(_, () => p());
87
+ if (p(), Ie(p), Te("resize", p, { passive: !0 }), t) {
88
+ const _ = qe("(orientation: portrait)");
89
+ U(_, () => p());
90
90
  }
91
91
  return { width: s, height: d };
92
92
  }
93
- const Me = { class: "login-container" }, Pe = { class: "login-top flex items-center" }, Oe = { class: "qrcode-container" }, $e = ["src"], xe = { class: "flex justify-between items-center w-full" }, We = ["src"], De = 992, Ne = /* @__PURE__ */ te({
93
+ const Le = "/node_modules/xyvcard-settle/dist/images/qrcode-success.jpg", Me = { class: "login-container" }, Pe = { class: "login-top flex items-center" }, Oe = { class: "qrcode-container" }, $e = ["src"], xe = { class: "flex justify-between items-center w-full" }, We = ["src"], De = 992, Ne = /* @__PURE__ */ te({
94
94
  __name: "index",
95
95
  setup(e) {
96
- const { t: n } = pe(), o = m(M.APP_ACTIVE), a = (r) => {
96
+ const { t: n } = ce(), o = m(M.APP_ACTIVE), a = (r) => {
97
97
  r.props.name === "user" ? (L(), g()) : P(), o.value = r.props.name;
98
98
  }, t = m({
99
99
  scope: "",
@@ -127,10 +127,10 @@ const Me = { class: "login-container" }, Pe = { class: "login-top flex items-cen
127
127
  }
128
128
  ]
129
129
  };
130
- }), s = m(!1), d = m(), p = me(), _ = fe(), f = ve(), v = () => {
130
+ }), s = m(!1), d = m(), p = de(), _ = pe(), f = me(), v = () => {
131
131
  var r;
132
132
  (r = d.value) == null || r.validate((l) => {
133
- l && (s.value = !0, f.login({ ...t.value, password: ge(t.value.password) }).then(() => {
133
+ l && (s.value = !0, f.login({ ...t.value, password: fe(t.value.password) }).then(() => {
134
134
  const y = p.query, h = y.redirect ?? M.APP_REDIRECT, w = Object.keys(y).reduce(
135
135
  (T, q) => (q !== "redirect" && (T[q] = y[q]), T),
136
136
  {}
@@ -143,7 +143,7 @@ const Me = { class: "login-container" }, Pe = { class: "login-top flex items-cen
143
143
  }));
144
144
  });
145
145
  }, E = m(""), g = () => {
146
- he().then(({ data: r }) => {
146
+ ve().then(({ data: r }) => {
147
147
  t.value.captchaKey = r.captchaId, E.value = r.base64Image;
148
148
  });
149
149
  };
@@ -151,14 +151,14 @@ const Me = { class: "login-container" }, Pe = { class: "login-top flex items-cen
151
151
  let S = setInterval(W, 3e3);
152
152
  const V = m({});
153
153
  function P() {
154
- _e().then(({ data: r }) => {
154
+ ge().then(({ data: r }) => {
155
155
  V.value = r, k.value = !1, K(), S = setInterval(W, 3e3);
156
156
  });
157
157
  }
158
158
  o.value === "qrCode" && P();
159
159
  function W() {
160
160
  V.value.ticket && f.loginByQrcode({ ticket: V.value.ticket }).then(() => {
161
- L(), k.value = !1, V.value.qrcodeUrl = ce;
161
+ L(), k.value = !1, V.value.qrcodeUrl = Le;
162
162
  const r = p.query, l = r.redirect ?? M.APP_REDIRECT, y = Object.keys(r).reduce(
163
163
  (h, w) => (w !== "redirect" && (h[w] = r[w]), h),
164
164
  {}
@@ -176,7 +176,7 @@ const Me = { class: "login-container" }, Pe = { class: "login-top flex items-cen
176
176
  L(), k.value = !0;
177
177
  }, M.APP_TIMEOUT);
178
178
  }
179
- const D = O(), { width: F } = Le();
179
+ const D = O(), { width: F } = Ae();
180
180
  return B(() => {
181
181
  F.value < De ? D.toggleDevice("mobile") : D.toggleDevice("desktop");
182
182
  }), (r, l) => {
@@ -184,7 +184,7 @@ const Me = { class: "login-container" }, Pe = { class: "login-top flex items-cen
184
184
  return oe(), ne("div", Me, [
185
185
  u("div", Pe, [
186
186
  l[4] || (l[4] = u("img", {
187
- src: de,
187
+ src: _e,
188
188
  class: "logo-img",
189
189
  alt: "logo"
190
190
  }, null, -1)),
@@ -192,7 +192,7 @@ const Me = { class: "login-container" }, Pe = { class: "login-top flex items-cen
192
192
  i(y, { class: "ml-2 cursor-pointer language" })
193
193
  ]),
194
194
  i(J, {
195
- device: U(O)().device,
195
+ device: R(O)().device,
196
196
  class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83"
197
197
  }, {
198
198
  default: b(() => [
@@ -307,7 +307,7 @@ const Me = { class: "login-container" }, Pe = { class: "login-top flex items-cen
307
307
  ]);
308
308
  };
309
309
  }
310
- }), Ke = /* @__PURE__ */ ye(Ne, [["__scopeId", "data-v-b8d707bf"]]);
310
+ }), He = /* @__PURE__ */ he(Ne, [["__scopeId", "data-v-2265d770"]]);
311
311
  export {
312
- Ke as default
312
+ He as default
313
313
  };
@@ -2,7 +2,7 @@ import { defineComponent as A, ref as u, resolveComponent as c, resolveDirective
2
2
  import { useRouter as w } from "vue-router";
3
3
  import { T, m as p } from "./trend-C4uCFrLb.mjs";
4
4
  import "jmash-core";
5
- import { h as v } from "./index-IYVODwmA.mjs";
5
+ import { h as v } from "./index-BbLVtP78.mjs";
6
6
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
7
  const M = { class: "app" }, P = { class: "app-title" }, E = { class: "row-container" }, V = { class: "tatals" }, B = { class: "tatal" }, N = { class: "text" }, S = { class: "tatal" }, F = { class: "text" }, H = { class: "tatal" }, I = { class: "text" }, R = { class: "tatal" }, j = { class: "text" }, q = { class: "tatals" }, z = { class: "tatal" }, G = { class: "text" }, J = { class: "tatal" }, K = { class: "text" }, L = { class: "tatal" }, O = { class: "text" }, Q = { class: "tatal" }, U = { class: "text" }, W = { class: "app-title-time" }, X = { class: "chart-header" }, Z = /* @__PURE__ */ A({
8
8
  __name: "index",