my-header-yichong 2.1.1 → 2.1.2
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/my-header.js +413 -382
- package/my-header.umd.cjs +11 -11
- package/package.json +1 -1
- package/style.css +1 -1
package/my-header.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { warn as
|
|
1
|
+
import { warn as Po, inject as H, ref as T, computed as x, unref as z, isRef as Se, getCurrentInstance as pn, provide as oe, reactive as hn, defineComponent as U, h as j, Transition as dr, withCtx as be, withDirectives as Ye, createVNode as ue, vShow as fr, createApp as Oo, toRefs as Xt, nextTick as Ze, cloneVNode as To, Fragment as ve, onMounted as K, watchEffect as se, onUnmounted as re, watch as nt, Teleport as Co, shallowRef as pr, openBlock as A, createElementBlock as L, createElementVNode as g, toDisplayString as J, createTextVNode as pt, createCommentVNode as B, vModelText as It, pushScopeId as rt, popScopeId as ot, hasInjectionContext as No, markRaw as Je, effectScope as ko, isReactive as mn, toRef as Bt, toRaw as Ao, getCurrentScope as Lo, onScopeDispose as $o, normalizeStyle as Fo, normalizeClass as Ro, createBlock as Ue, renderList as Mt } from "vue";
|
|
2
2
|
function hr(e, t) {
|
|
3
3
|
return function() {
|
|
4
4
|
return e.apply(t, arguments);
|
|
@@ -7,9 +7,9 @@ function hr(e, t) {
|
|
|
7
7
|
const { toString: Do } = Object.prototype, { getPrototypeOf: vn } = Object, Et = ((e) => (t) => {
|
|
8
8
|
const n = Do.call(t);
|
|
9
9
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
|
-
})(/* @__PURE__ */ Object.create(null)), de = (e) => (e = e.toLowerCase(), (t) => Et(t) === e), St = (e) => (t) => typeof t === e, { isArray:
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), de = (e) => (e = e.toLowerCase(), (t) => Et(t) === e), St = (e) => (t) => typeof t === e, { isArray: De } = Array, Qe = St("undefined");
|
|
11
11
|
function jo(e) {
|
|
12
|
-
return e !== null && !
|
|
12
|
+
return e !== null && !Qe(e) && e.constructor !== null && !Qe(e.constructor) && Q(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
13
|
}
|
|
14
14
|
const mr = de("ArrayBuffer");
|
|
15
15
|
function Io(e) {
|
|
@@ -26,11 +26,11 @@ const Bo = St("string"), Q = St("function"), vr = St("number"), xt = (e) => e !=
|
|
|
26
26
|
return e && (typeof FormData == "function" && e instanceof FormData || Q(e.append) && ((t = Et(e)) === "formdata" || // detect form-data instance
|
|
27
27
|
t === "object" && Q(e.toString) && e.toString() === "[object FormData]"));
|
|
28
28
|
}, Wo = de("URLSearchParams"), Jo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
29
|
-
function
|
|
29
|
+
function st(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
30
30
|
if (e === null || typeof e > "u")
|
|
31
31
|
return;
|
|
32
32
|
let r, o;
|
|
33
|
-
if (typeof e != "object" && (e = [e]),
|
|
33
|
+
if (typeof e != "object" && (e = [e]), De(e))
|
|
34
34
|
for (r = 0, o = e.length; r < o; r++)
|
|
35
35
|
t.call(null, e[r], r, e);
|
|
36
36
|
else {
|
|
@@ -49,17 +49,17 @@ function gr(e, t) {
|
|
|
49
49
|
return o;
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
|
-
const yr = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), br = (e) => !
|
|
52
|
+
const yr = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), br = (e) => !Qe(e) && e !== yr;
|
|
53
53
|
function Zt() {
|
|
54
54
|
const { caseless: e } = br(this) && this || {}, t = {}, n = (r, o) => {
|
|
55
55
|
const s = e && gr(t, o) || o;
|
|
56
|
-
ht(t[s]) && ht(r) ? t[s] = Zt(t[s], r) : ht(r) ? t[s] = Zt({}, r) :
|
|
56
|
+
ht(t[s]) && ht(r) ? t[s] = Zt(t[s], r) : ht(r) ? t[s] = Zt({}, r) : De(r) ? t[s] = r.slice() : t[s] = r;
|
|
57
57
|
};
|
|
58
58
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
59
|
-
arguments[r] &&
|
|
59
|
+
arguments[r] && st(arguments[r], n);
|
|
60
60
|
return t;
|
|
61
61
|
}
|
|
62
|
-
const Ko = (e, t, n, { allOwnKeys: r } = {}) => (
|
|
62
|
+
const Ko = (e, t, n, { allOwnKeys: r } = {}) => (st(t, (o, s) => {
|
|
63
63
|
n && Q(o) ? e[s] = hr(o, n) : e[s] = o;
|
|
64
64
|
}, { allOwnKeys: r }), e), Yo = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Xo = (e, t, n, r) => {
|
|
65
65
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
@@ -83,7 +83,7 @@ const Ko = (e, t, n, { allOwnKeys: r } = {}) => (ot(t, (o, s) => {
|
|
|
83
83
|
}, es = (e) => {
|
|
84
84
|
if (!e)
|
|
85
85
|
return null;
|
|
86
|
-
if (
|
|
86
|
+
if (De(e))
|
|
87
87
|
return e;
|
|
88
88
|
let t = e.length;
|
|
89
89
|
if (!vr(t))
|
|
@@ -112,7 +112,7 @@ const Ko = (e, t, n, { allOwnKeys: r } = {}) => (ot(t, (o, s) => {
|
|
|
112
112
|
}
|
|
113
113
|
), Ln = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), as = de("RegExp"), wr = (e, t) => {
|
|
114
114
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
115
|
-
|
|
115
|
+
st(n, (o, s) => {
|
|
116
116
|
t(o, s, e) !== !1 && (r[s] = o);
|
|
117
117
|
}), Object.defineProperties(e, r);
|
|
118
118
|
}, is = (e) => {
|
|
@@ -136,7 +136,7 @@ const Ko = (e, t, n, { allOwnKeys: r } = {}) => (ot(t, (o, s) => {
|
|
|
136
136
|
n[s] = !0;
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
|
-
return
|
|
139
|
+
return De(e) ? r(e) : r(String(e).split(t)), n;
|
|
140
140
|
}, us = () => {
|
|
141
141
|
}, cs = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Ut = "abcdefghijklmnopqrstuvwxyz", $n = "0123456789", _r = {
|
|
142
142
|
DIGIT: $n,
|
|
@@ -159,10 +159,10 @@ const ps = (e) => {
|
|
|
159
159
|
return;
|
|
160
160
|
if (!("toJSON" in r)) {
|
|
161
161
|
t[o] = r;
|
|
162
|
-
const s =
|
|
163
|
-
return
|
|
162
|
+
const s = De(r) ? [] : {};
|
|
163
|
+
return st(r, (a, i) => {
|
|
164
164
|
const d = n(a, o + 1);
|
|
165
|
-
!
|
|
165
|
+
!Qe(d) && (s[i] = d);
|
|
166
166
|
}), t[o] = void 0, s;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
@@ -170,7 +170,7 @@ const ps = (e) => {
|
|
|
170
170
|
};
|
|
171
171
|
return n(e, 0);
|
|
172
172
|
}, hs = de("AsyncFunction"), ms = (e) => e && (xt(e) || Q(e)) && Q(e.then) && Q(e.catch), h = {
|
|
173
|
-
isArray:
|
|
173
|
+
isArray: De,
|
|
174
174
|
isArrayBuffer: mr,
|
|
175
175
|
isBuffer: jo,
|
|
176
176
|
isFormData: Go,
|
|
@@ -180,7 +180,7 @@ const ps = (e) => {
|
|
|
180
180
|
isBoolean: Mo,
|
|
181
181
|
isObject: xt,
|
|
182
182
|
isPlainObject: ht,
|
|
183
|
-
isUndefined:
|
|
183
|
+
isUndefined: Qe,
|
|
184
184
|
isDate: Uo,
|
|
185
185
|
isFile: Ho,
|
|
186
186
|
isBlob: Vo,
|
|
@@ -190,7 +190,7 @@ const ps = (e) => {
|
|
|
190
190
|
isURLSearchParams: Wo,
|
|
191
191
|
isTypedArray: ts,
|
|
192
192
|
isFileList: zo,
|
|
193
|
-
forEach:
|
|
193
|
+
forEach: st,
|
|
194
194
|
merge: Zt,
|
|
195
195
|
extend: Ko,
|
|
196
196
|
trim: Jo,
|
|
@@ -223,10 +223,10 @@ const ps = (e) => {
|
|
|
223
223
|
isAsyncFn: hs,
|
|
224
224
|
isThenable: ms
|
|
225
225
|
};
|
|
226
|
-
function
|
|
226
|
+
function $(e, t, n, r, o) {
|
|
227
227
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o);
|
|
228
228
|
}
|
|
229
|
-
h.inherits(
|
|
229
|
+
h.inherits($, Error, {
|
|
230
230
|
toJSON: function() {
|
|
231
231
|
return {
|
|
232
232
|
// Standard
|
|
@@ -247,7 +247,7 @@ h.inherits(L, Error, {
|
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
|
-
const Er =
|
|
250
|
+
const Er = $.prototype, Sr = {};
|
|
251
251
|
[
|
|
252
252
|
"ERR_BAD_OPTION_VALUE",
|
|
253
253
|
"ERR_BAD_OPTION",
|
|
@@ -265,13 +265,13 @@ const Er = L.prototype, Sr = {};
|
|
|
265
265
|
].forEach((e) => {
|
|
266
266
|
Sr[e] = { value: e };
|
|
267
267
|
});
|
|
268
|
-
Object.defineProperties(
|
|
268
|
+
Object.defineProperties($, Sr);
|
|
269
269
|
Object.defineProperty(Er, "isAxiosError", { value: !0 });
|
|
270
|
-
|
|
270
|
+
$.from = (e, t, n, r, o, s) => {
|
|
271
271
|
const a = Object.create(Er);
|
|
272
272
|
return h.toFlatObject(e, a, function(d) {
|
|
273
273
|
return d !== Error.prototype;
|
|
274
|
-
}, (i) => i !== "isAxiosError"),
|
|
274
|
+
}, (i) => i !== "isAxiosError"), $.call(a, e.message, t, n, r, o), a.cause = e, a.name = e.name, s && Object.assign(a, s), a;
|
|
275
275
|
};
|
|
276
276
|
const vs = null;
|
|
277
277
|
function Qt(e) {
|
|
@@ -310,7 +310,7 @@ function Pt(e, t, n) {
|
|
|
310
310
|
if (h.isDate(v))
|
|
311
311
|
return v.toISOString();
|
|
312
312
|
if (!d && h.isBlob(v))
|
|
313
|
-
throw new
|
|
313
|
+
throw new $("Blob is not supported. Use a Buffer instead.");
|
|
314
314
|
return h.isArrayBuffer(v) || h.isTypedArray(v) ? d && typeof Blob == "function" ? new Blob([v]) : Buffer.from(v) : v;
|
|
315
315
|
}
|
|
316
316
|
function c(v, p, y) {
|
|
@@ -319,10 +319,10 @@ function Pt(e, t, n) {
|
|
|
319
319
|
if (h.endsWith(p, "{}"))
|
|
320
320
|
p = r ? p : p.slice(0, -2), v = JSON.stringify(v);
|
|
321
321
|
else if (h.isArray(v) && gs(v) || (h.isFileList(v) || h.endsWith(p, "[]")) && (S = h.toArray(v)))
|
|
322
|
-
return p = xr(p), S.forEach(function(C,
|
|
322
|
+
return p = xr(p), S.forEach(function(C, k) {
|
|
323
323
|
!(h.isUndefined(C) || C === null) && t.append(
|
|
324
324
|
// eslint-disable-next-line no-nested-ternary
|
|
325
|
-
a === !0 ? Fn([p],
|
|
325
|
+
a === !0 ? Fn([p], k, s) : a === null ? p : p + "[]",
|
|
326
326
|
l(C)
|
|
327
327
|
);
|
|
328
328
|
}), !1;
|
|
@@ -505,7 +505,7 @@ function Cr(e) {
|
|
|
505
505
|
const Ns = {
|
|
506
506
|
"Content-Type": void 0
|
|
507
507
|
};
|
|
508
|
-
function
|
|
508
|
+
function ks(e, t, n) {
|
|
509
509
|
if (h.isString(e))
|
|
510
510
|
try {
|
|
511
511
|
return (t || JSON.parse)(e), h.trim(e);
|
|
@@ -541,7 +541,7 @@ const Ot = {
|
|
|
541
541
|
);
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
return s || o ? (n.setContentType("application/json", !1),
|
|
544
|
+
return s || o ? (n.setContentType("application/json", !1), ks(t)) : t;
|
|
545
545
|
}],
|
|
546
546
|
transformResponse: [function(t) {
|
|
547
547
|
const n = this.transitional || Ot.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -551,7 +551,7 @@ const Ot = {
|
|
|
551
551
|
return JSON.parse(t);
|
|
552
552
|
} catch (i) {
|
|
553
553
|
if (a)
|
|
554
|
-
throw i.name === "SyntaxError" ?
|
|
554
|
+
throw i.name === "SyntaxError" ? $.from(i, $.ERR_BAD_RESPONSE, this, null, this.response) : i;
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
return t;
|
|
@@ -584,7 +584,7 @@ h.forEach(["delete", "get", "head"], function(t) {
|
|
|
584
584
|
h.forEach(["post", "put", "patch"], function(t) {
|
|
585
585
|
Ot.headers[t] = h.merge(Ns);
|
|
586
586
|
});
|
|
587
|
-
const yn = Ot,
|
|
587
|
+
const yn = Ot, As = h.toObjectSet([
|
|
588
588
|
"age",
|
|
589
589
|
"authorization",
|
|
590
590
|
"content-length",
|
|
@@ -607,10 +607,10 @@ const yn = Ot, ks = h.toObjectSet([
|
|
|
607
607
|
let n, r, o;
|
|
608
608
|
return e && e.split(`
|
|
609
609
|
`).forEach(function(a) {
|
|
610
|
-
o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] &&
|
|
610
|
+
o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && As[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
611
611
|
}), t;
|
|
612
612
|
}, jn = Symbol("internals");
|
|
613
|
-
function
|
|
613
|
+
function He(e) {
|
|
614
614
|
return e && String(e).trim().toLowerCase();
|
|
615
615
|
}
|
|
616
616
|
function mt(e) {
|
|
@@ -655,7 +655,7 @@ class Tt {
|
|
|
655
655
|
set(t, n, r) {
|
|
656
656
|
const o = this;
|
|
657
657
|
function s(i, d, l) {
|
|
658
|
-
const c =
|
|
658
|
+
const c = He(d);
|
|
659
659
|
if (!c)
|
|
660
660
|
throw new Error("header name must be a non-empty string");
|
|
661
661
|
const u = h.findKey(o, c);
|
|
@@ -665,7 +665,7 @@ class Tt {
|
|
|
665
665
|
return h.isPlainObject(t) || t instanceof this.constructor ? a(t, n) : h.isString(t) && (t = t.trim()) && !Fs(t) ? a(Ls(t), n) : t != null && s(n, t, r), this;
|
|
666
666
|
}
|
|
667
667
|
get(t, n) {
|
|
668
|
-
if (t =
|
|
668
|
+
if (t = He(t), t) {
|
|
669
669
|
const r = h.findKey(this, t);
|
|
670
670
|
if (r) {
|
|
671
671
|
const o = this[r];
|
|
@@ -682,7 +682,7 @@ class Tt {
|
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
684
|
has(t, n) {
|
|
685
|
-
if (t =
|
|
685
|
+
if (t = He(t), t) {
|
|
686
686
|
const r = h.findKey(this, t);
|
|
687
687
|
return !!(r && this[r] !== void 0 && (!n || Ht(this, this[r], r, n)));
|
|
688
688
|
}
|
|
@@ -692,7 +692,7 @@ class Tt {
|
|
|
692
692
|
const r = this;
|
|
693
693
|
let o = !1;
|
|
694
694
|
function s(a) {
|
|
695
|
-
if (a =
|
|
695
|
+
if (a = He(a), a) {
|
|
696
696
|
const i = h.findKey(r, a);
|
|
697
697
|
i && (!n || Ht(r, r[i], i, n)) && (delete r[i], o = !0);
|
|
698
698
|
}
|
|
@@ -751,7 +751,7 @@ class Tt {
|
|
|
751
751
|
accessors: {}
|
|
752
752
|
}).accessors, o = this.prototype;
|
|
753
753
|
function s(a) {
|
|
754
|
-
const i =
|
|
754
|
+
const i = He(a);
|
|
755
755
|
r[i] || (Ds(o, a), r[i] = !0);
|
|
756
756
|
}
|
|
757
757
|
return h.isArray(t) ? t.forEach(s) : s(t), this;
|
|
@@ -771,17 +771,17 @@ function Vt(e, t) {
|
|
|
771
771
|
function Nr(e) {
|
|
772
772
|
return !!(e && e.__CANCEL__);
|
|
773
773
|
}
|
|
774
|
-
function
|
|
775
|
-
|
|
774
|
+
function at(e, t, n) {
|
|
775
|
+
$.call(this, e ?? "canceled", $.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
776
776
|
}
|
|
777
|
-
h.inherits(
|
|
777
|
+
h.inherits(at, $, {
|
|
778
778
|
__CANCEL__: !0
|
|
779
779
|
});
|
|
780
780
|
function js(e, t, n) {
|
|
781
781
|
const r = n.config.validateStatus;
|
|
782
|
-
!n.status || !r || r(n.status) ? e(n) : t(new
|
|
782
|
+
!n.status || !r || r(n.status) ? e(n) : t(new $(
|
|
783
783
|
"Request failed with status code " + n.status,
|
|
784
|
-
[
|
|
784
|
+
[$.ERR_BAD_REQUEST, $.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
785
785
|
n.config,
|
|
786
786
|
n.request,
|
|
787
787
|
n
|
|
@@ -824,7 +824,7 @@ function Bs(e) {
|
|
|
824
824
|
function Ms(e, t) {
|
|
825
825
|
return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function kr(e, t) {
|
|
828
828
|
return e && !Bs(t) ? Ms(e, t) : t;
|
|
829
829
|
}
|
|
830
830
|
const Us = ce.isStandardBrowserEnv ? (
|
|
@@ -911,7 +911,7 @@ const zs = typeof XMLHttpRequest < "u", qs = zs && function(e) {
|
|
|
911
911
|
const m = e.auth.username || "", v = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
912
912
|
s.set("Authorization", "Basic " + btoa(m + ":" + v));
|
|
913
913
|
}
|
|
914
|
-
const c =
|
|
914
|
+
const c = kr(e.baseURL, e.url);
|
|
915
915
|
l.open(e.method.toUpperCase(), Or(c, e.params, e.paramsSerializer), !0), l.timeout = e.timeout;
|
|
916
916
|
function u() {
|
|
917
917
|
if (!l)
|
|
@@ -935,15 +935,15 @@ const zs = typeof XMLHttpRequest < "u", qs = zs && function(e) {
|
|
|
935
935
|
if ("onloadend" in l ? l.onloadend = u : l.onreadystatechange = function() {
|
|
936
936
|
!l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(u);
|
|
937
937
|
}, l.onabort = function() {
|
|
938
|
-
l && (r(new
|
|
938
|
+
l && (r(new $("Request aborted", $.ECONNABORTED, e, l)), l = null);
|
|
939
939
|
}, l.onerror = function() {
|
|
940
|
-
r(new
|
|
940
|
+
r(new $("Network Error", $.ERR_NETWORK, e, l)), l = null;
|
|
941
941
|
}, l.ontimeout = function() {
|
|
942
942
|
let v = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
943
943
|
const p = e.transitional || Tr;
|
|
944
|
-
e.timeoutErrorMessage && (v = e.timeoutErrorMessage), r(new
|
|
944
|
+
e.timeoutErrorMessage && (v = e.timeoutErrorMessage), r(new $(
|
|
945
945
|
v,
|
|
946
|
-
p.clarifyTimeoutError ?
|
|
946
|
+
p.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
|
|
947
947
|
e,
|
|
948
948
|
l
|
|
949
949
|
)), l = null;
|
|
@@ -954,11 +954,11 @@ const zs = typeof XMLHttpRequest < "u", qs = zs && function(e) {
|
|
|
954
954
|
o === void 0 && s.setContentType(null), "setRequestHeader" in l && h.forEach(s.toJSON(), function(v, p) {
|
|
955
955
|
l.setRequestHeader(p, v);
|
|
956
956
|
}), h.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), a && a !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress", In(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", In(e.onUploadProgress)), (e.cancelToken || e.signal) && (i = (m) => {
|
|
957
|
-
l && (r(!m || m.type ? new
|
|
957
|
+
l && (r(!m || m.type ? new at(null, e, l) : m), l.abort(), l = null);
|
|
958
958
|
}, e.cancelToken && e.cancelToken.subscribe(i), e.signal && (e.signal.aborted ? i() : e.signal.addEventListener("abort", i)));
|
|
959
959
|
const f = Hs(c);
|
|
960
960
|
if (f && ce.protocols.indexOf(f) === -1) {
|
|
961
|
-
r(new
|
|
961
|
+
r(new $("Unsupported protocol " + f + ":", $.ERR_BAD_REQUEST, e));
|
|
962
962
|
return;
|
|
963
963
|
}
|
|
964
964
|
l.send(o || null);
|
|
@@ -984,7 +984,7 @@ const Gs = {
|
|
|
984
984
|
for (let o = 0; o < t && (n = e[o], !(r = h.isString(n) ? vt[n.toLowerCase()] : n)); o++)
|
|
985
985
|
;
|
|
986
986
|
if (!r)
|
|
987
|
-
throw r === !1 ? new
|
|
987
|
+
throw r === !1 ? new $(
|
|
988
988
|
`Adapter ${n} is not supported by the environment`,
|
|
989
989
|
"ERR_NOT_SUPPORT"
|
|
990
990
|
) : new Error(
|
|
@@ -998,7 +998,7 @@ const Gs = {
|
|
|
998
998
|
};
|
|
999
999
|
function zt(e) {
|
|
1000
1000
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1001
|
-
throw new
|
|
1001
|
+
throw new at(null, e);
|
|
1002
1002
|
}
|
|
1003
1003
|
function Bn(e) {
|
|
1004
1004
|
return zt(e), e.headers = he.from(e.headers), e.data = Vt.call(
|
|
@@ -1019,7 +1019,7 @@ function Bn(e) {
|
|
|
1019
1019
|
});
|
|
1020
1020
|
}
|
|
1021
1021
|
const Mn = (e) => e instanceof he ? e.toJSON() : e;
|
|
1022
|
-
function
|
|
1022
|
+
function $e(e, t) {
|
|
1023
1023
|
t = t || {};
|
|
1024
1024
|
const n = {};
|
|
1025
1025
|
function r(l, c, u) {
|
|
@@ -1084,7 +1084,7 @@ function Le(e, t) {
|
|
|
1084
1084
|
h.isUndefined(f) && u !== i || (n[c] = f);
|
|
1085
1085
|
}), n;
|
|
1086
1086
|
}
|
|
1087
|
-
const
|
|
1087
|
+
const Ar = "1.4.0", bn = {};
|
|
1088
1088
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1089
1089
|
bn[e] = function(r) {
|
|
1090
1090
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
@@ -1093,13 +1093,13 @@ const kr = "1.4.0", bn = {};
|
|
|
1093
1093
|
const Un = {};
|
|
1094
1094
|
bn.transitional = function(t, n, r) {
|
|
1095
1095
|
function o(s, a) {
|
|
1096
|
-
return "[Axios v" +
|
|
1096
|
+
return "[Axios v" + Ar + "] Transitional option '" + s + "'" + a + (r ? ". " + r : "");
|
|
1097
1097
|
}
|
|
1098
1098
|
return (s, a, i) => {
|
|
1099
1099
|
if (t === !1)
|
|
1100
|
-
throw new
|
|
1100
|
+
throw new $(
|
|
1101
1101
|
o(a, " has been removed" + (n ? " in " + n : "")),
|
|
1102
|
-
|
|
1102
|
+
$.ERR_DEPRECATED
|
|
1103
1103
|
);
|
|
1104
1104
|
return n && !Un[a] && (Un[a] = !0, console.warn(
|
|
1105
1105
|
o(
|
|
@@ -1111,7 +1111,7 @@ bn.transitional = function(t, n, r) {
|
|
|
1111
1111
|
};
|
|
1112
1112
|
function Ws(e, t, n) {
|
|
1113
1113
|
if (typeof e != "object")
|
|
1114
|
-
throw new
|
|
1114
|
+
throw new $("options must be an object", $.ERR_BAD_OPTION_VALUE);
|
|
1115
1115
|
const r = Object.keys(e);
|
|
1116
1116
|
let o = r.length;
|
|
1117
1117
|
for (; o-- > 0; ) {
|
|
@@ -1119,11 +1119,11 @@ function Ws(e, t, n) {
|
|
|
1119
1119
|
if (a) {
|
|
1120
1120
|
const i = e[s], d = i === void 0 || a(i, s, e);
|
|
1121
1121
|
if (d !== !0)
|
|
1122
|
-
throw new
|
|
1122
|
+
throw new $("option " + s + " must be " + d, $.ERR_BAD_OPTION_VALUE);
|
|
1123
1123
|
continue;
|
|
1124
1124
|
}
|
|
1125
1125
|
if (n !== !0)
|
|
1126
|
-
throw new
|
|
1126
|
+
throw new $("Unknown option " + s, $.ERR_BAD_OPTION);
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
1129
|
const en = {
|
|
@@ -1146,7 +1146,7 @@ class yt {
|
|
|
1146
1146
|
* @returns {Promise} The Promise to be fulfilled
|
|
1147
1147
|
*/
|
|
1148
1148
|
request(t, n) {
|
|
1149
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
1149
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = $e(this.defaults, n);
|
|
1150
1150
|
const { transitional: r, paramsSerializer: o, headers: s } = n;
|
|
1151
1151
|
r !== void 0 && en.assertOptions(r, {
|
|
1152
1152
|
silentJSONParsing: me.transitional(me.boolean),
|
|
@@ -1205,14 +1205,14 @@ class yt {
|
|
|
1205
1205
|
return c;
|
|
1206
1206
|
}
|
|
1207
1207
|
getUri(t) {
|
|
1208
|
-
t =
|
|
1209
|
-
const n =
|
|
1208
|
+
t = $e(this.defaults, t);
|
|
1209
|
+
const n = kr(t.baseURL, t.url);
|
|
1210
1210
|
return Or(n, t.params, t.paramsSerializer);
|
|
1211
1211
|
}
|
|
1212
1212
|
}
|
|
1213
1213
|
h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1214
1214
|
yt.prototype[t] = function(n, r) {
|
|
1215
|
-
return this.request(
|
|
1215
|
+
return this.request($e(r || {}, {
|
|
1216
1216
|
method: t,
|
|
1217
1217
|
url: n,
|
|
1218
1218
|
data: (r || {}).data
|
|
@@ -1222,7 +1222,7 @@ h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
1222
1222
|
h.forEach(["post", "put", "patch"], function(t) {
|
|
1223
1223
|
function n(r) {
|
|
1224
1224
|
return function(s, a, i) {
|
|
1225
|
-
return this.request(
|
|
1225
|
+
return this.request($e(i || {}, {
|
|
1226
1226
|
method: t,
|
|
1227
1227
|
headers: r ? {
|
|
1228
1228
|
"Content-Type": "multipart/form-data"
|
|
@@ -1260,7 +1260,7 @@ class wn {
|
|
|
1260
1260
|
r.unsubscribe(s);
|
|
1261
1261
|
}, a;
|
|
1262
1262
|
}, t(function(s, a, i) {
|
|
1263
|
-
r.reason || (r.reason = new
|
|
1263
|
+
r.reason || (r.reason = new at(s, a, i), n(r.reason));
|
|
1264
1264
|
});
|
|
1265
1265
|
}
|
|
1266
1266
|
/**
|
|
@@ -1384,24 +1384,24 @@ const Xs = tn;
|
|
|
1384
1384
|
function Lr(e) {
|
|
1385
1385
|
const t = new gt(e), n = hr(gt.prototype.request, t);
|
|
1386
1386
|
return h.extend(n, gt.prototype, t, { allOwnKeys: !0 }), h.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1387
|
-
return Lr(
|
|
1387
|
+
return Lr($e(e, o));
|
|
1388
1388
|
}, n;
|
|
1389
1389
|
}
|
|
1390
1390
|
const M = Lr(yn);
|
|
1391
1391
|
M.Axios = gt;
|
|
1392
|
-
M.CanceledError =
|
|
1392
|
+
M.CanceledError = at;
|
|
1393
1393
|
M.CancelToken = Js;
|
|
1394
1394
|
M.isCancel = Nr;
|
|
1395
|
-
M.VERSION =
|
|
1395
|
+
M.VERSION = Ar;
|
|
1396
1396
|
M.toFormData = Pt;
|
|
1397
|
-
M.AxiosError =
|
|
1397
|
+
M.AxiosError = $;
|
|
1398
1398
|
M.Cancel = M.CanceledError;
|
|
1399
1399
|
M.all = function(t) {
|
|
1400
1400
|
return Promise.all(t);
|
|
1401
1401
|
};
|
|
1402
1402
|
M.spread = Ks;
|
|
1403
1403
|
M.isAxiosError = Ys;
|
|
1404
|
-
M.mergeConfig =
|
|
1404
|
+
M.mergeConfig = $e;
|
|
1405
1405
|
M.AxiosHeaders = he;
|
|
1406
1406
|
M.formToJSON = (e) => Cr(h.isHTMLForm(e) ? new FormData(e) : e);
|
|
1407
1407
|
M.HttpStatusCode = Xs;
|
|
@@ -1415,7 +1415,7 @@ const Zs = M, $r = Zs.create({
|
|
|
1415
1415
|
});
|
|
1416
1416
|
$r.interceptors.request.use((e) => (console.log(e), e), (e) => Promise.reject(e));
|
|
1417
1417
|
$r.interceptors.response.use((e) => e.data, (e) => Promise.reject(new Error(e)));
|
|
1418
|
-
const qt = "@",
|
|
1418
|
+
const qt = "@", Ve = window.localStorage, Hn = {
|
|
1419
1419
|
number: {
|
|
1420
1420
|
save: (e) => e,
|
|
1421
1421
|
parse: (e) => Number.parseFloat(e)
|
|
@@ -1439,11 +1439,11 @@ function Vn(e) {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
const ut = {
|
|
1441
1441
|
get(e) {
|
|
1442
|
-
let t =
|
|
1442
|
+
let t = Ve.getItem(e);
|
|
1443
1443
|
if (t) {
|
|
1444
1444
|
let n = t.split("@"), r, o = Date.now();
|
|
1445
1445
|
if (n.length > 2 && n[2] < o)
|
|
1446
|
-
return
|
|
1446
|
+
return Ve.removeItem(e), null;
|
|
1447
1447
|
{
|
|
1448
1448
|
let s = decodeURIComponent(n[1]);
|
|
1449
1449
|
return r = Vn(n[0]).parse(s), r;
|
|
@@ -1459,13 +1459,13 @@ const ut = {
|
|
|
1459
1459
|
let s = n * 24 * 60 * 60 * 1e3 + (/* @__PURE__ */ new Date()).getTime();
|
|
1460
1460
|
t = r + qt + encodeURIComponent(o.save(t)) + qt + s;
|
|
1461
1461
|
}
|
|
1462
|
-
|
|
1462
|
+
Ve.setItem(e, t);
|
|
1463
1463
|
},
|
|
1464
1464
|
clear() {
|
|
1465
|
-
|
|
1465
|
+
Ve.clear();
|
|
1466
1466
|
},
|
|
1467
1467
|
remove(e) {
|
|
1468
|
-
|
|
1468
|
+
Ve.removeItem(e);
|
|
1469
1469
|
}
|
|
1470
1470
|
};
|
|
1471
1471
|
var Qs = !1;
|
|
@@ -1495,23 +1495,23 @@ const aa = sa;
|
|
|
1495
1495
|
var ia = typeof self == "object" && self && self.Object === Object && self, la = aa || ia || Function("return this")();
|
|
1496
1496
|
const Sn = la;
|
|
1497
1497
|
var ua = Sn.Symbol;
|
|
1498
|
-
const
|
|
1499
|
-
var Rr = Object.prototype, ca = Rr.hasOwnProperty, da = Rr.toString,
|
|
1498
|
+
const Fe = ua;
|
|
1499
|
+
var Rr = Object.prototype, ca = Rr.hasOwnProperty, da = Rr.toString, ze = Fe ? Fe.toStringTag : void 0;
|
|
1500
1500
|
function fa(e) {
|
|
1501
|
-
var t = ca.call(e,
|
|
1501
|
+
var t = ca.call(e, ze), n = e[ze];
|
|
1502
1502
|
try {
|
|
1503
|
-
e[
|
|
1503
|
+
e[ze] = void 0;
|
|
1504
1504
|
var r = !0;
|
|
1505
1505
|
} catch {
|
|
1506
1506
|
}
|
|
1507
1507
|
var o = da.call(e);
|
|
1508
|
-
return r && (t ? e[
|
|
1508
|
+
return r && (t ? e[ze] = n : delete e[ze]), o;
|
|
1509
1509
|
}
|
|
1510
1510
|
var pa = Object.prototype, ha = pa.toString;
|
|
1511
1511
|
function ma(e) {
|
|
1512
1512
|
return ha.call(e);
|
|
1513
1513
|
}
|
|
1514
|
-
var va = "[object Null]", ga = "[object Undefined]", Gn =
|
|
1514
|
+
var va = "[object Null]", ga = "[object Undefined]", Gn = Fe ? Fe.toStringTag : void 0;
|
|
1515
1515
|
function Dr(e) {
|
|
1516
1516
|
return e == null ? e === void 0 ? ga : va : Gn && Gn in Object(e) ? fa(e) : ma(e);
|
|
1517
1517
|
}
|
|
@@ -1529,7 +1529,7 @@ function wa(e, t) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
var _a = Array.isArray;
|
|
1531
1531
|
const Pn = _a;
|
|
1532
|
-
var Ea = 1 / 0, Wn =
|
|
1532
|
+
var Ea = 1 / 0, Wn = Fe ? Fe.prototype : void 0, Jn = Wn ? Wn.toString : void 0;
|
|
1533
1533
|
function jr(e) {
|
|
1534
1534
|
if (typeof e == "string")
|
|
1535
1535
|
return e;
|
|
@@ -1560,11 +1560,11 @@ var Kn = function() {
|
|
|
1560
1560
|
function Na(e) {
|
|
1561
1561
|
return !!Kn && Kn in e;
|
|
1562
1562
|
}
|
|
1563
|
-
var
|
|
1563
|
+
var ka = Function.prototype, Aa = ka.toString;
|
|
1564
1564
|
function La(e) {
|
|
1565
1565
|
if (e != null) {
|
|
1566
1566
|
try {
|
|
1567
|
-
return
|
|
1567
|
+
return Aa.call(e);
|
|
1568
1568
|
} catch {
|
|
1569
1569
|
}
|
|
1570
1570
|
try {
|
|
@@ -1601,9 +1601,9 @@ function qa(e, t) {
|
|
|
1601
1601
|
return n == "number" || n == "symbol" || n == "boolean" || e == null || xn(e) ? !0 : za.test(e) || !Va.test(e) || t != null && e in Object(t);
|
|
1602
1602
|
}
|
|
1603
1603
|
var Ga = Br(Object, "create");
|
|
1604
|
-
const
|
|
1604
|
+
const et = Ga;
|
|
1605
1605
|
function Wa() {
|
|
1606
|
-
this.__data__ =
|
|
1606
|
+
this.__data__ = et ? et(null) : {}, this.size = 0;
|
|
1607
1607
|
}
|
|
1608
1608
|
function Ja(e) {
|
|
1609
1609
|
var t = this.has(e) && delete this.__data__[e];
|
|
@@ -1612,7 +1612,7 @@ function Ja(e) {
|
|
|
1612
1612
|
var Ka = "__lodash_hash_undefined__", Ya = Object.prototype, Xa = Ya.hasOwnProperty;
|
|
1613
1613
|
function Za(e) {
|
|
1614
1614
|
var t = this.__data__;
|
|
1615
|
-
if (
|
|
1615
|
+
if (et) {
|
|
1616
1616
|
var n = t[e];
|
|
1617
1617
|
return n === Ka ? void 0 : n;
|
|
1618
1618
|
}
|
|
@@ -1621,12 +1621,12 @@ function Za(e) {
|
|
|
1621
1621
|
var Qa = Object.prototype, ei = Qa.hasOwnProperty;
|
|
1622
1622
|
function ti(e) {
|
|
1623
1623
|
var t = this.__data__;
|
|
1624
|
-
return
|
|
1624
|
+
return et ? t[e] !== void 0 : ei.call(t, e);
|
|
1625
1625
|
}
|
|
1626
1626
|
var ni = "__lodash_hash_undefined__";
|
|
1627
1627
|
function ri(e, t) {
|
|
1628
1628
|
var n = this.__data__;
|
|
1629
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
1629
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = et && t === void 0 ? ni : t, this;
|
|
1630
1630
|
}
|
|
1631
1631
|
function xe(e) {
|
|
1632
1632
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -1668,24 +1668,24 @@ function ci(e, t) {
|
|
|
1668
1668
|
var n = this.__data__, r = Nt(n, e);
|
|
1669
1669
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1671
|
+
function je(e) {
|
|
1672
1672
|
var t = -1, n = e == null ? 0 : e.length;
|
|
1673
1673
|
for (this.clear(); ++t < n; ) {
|
|
1674
1674
|
var r = e[t];
|
|
1675
1675
|
this.set(r[0], r[1]);
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1678
|
+
je.prototype.clear = oi;
|
|
1679
|
+
je.prototype.delete = ii;
|
|
1680
|
+
je.prototype.get = li;
|
|
1681
|
+
je.prototype.has = ui;
|
|
1682
|
+
je.prototype.set = ci;
|
|
1683
1683
|
var di = Br(Sn, "Map");
|
|
1684
1684
|
const fi = di;
|
|
1685
1685
|
function pi() {
|
|
1686
1686
|
this.size = 0, this.__data__ = {
|
|
1687
1687
|
hash: new xe(),
|
|
1688
|
-
map: new (fi ||
|
|
1688
|
+
map: new (fi || je)(),
|
|
1689
1689
|
string: new xe()
|
|
1690
1690
|
};
|
|
1691
1691
|
}
|
|
@@ -1693,22 +1693,22 @@ function hi(e) {
|
|
|
1693
1693
|
var t = typeof e;
|
|
1694
1694
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function kt(e, t) {
|
|
1697
1697
|
var n = e.__data__;
|
|
1698
1698
|
return hi(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
1699
1699
|
}
|
|
1700
1700
|
function mi(e) {
|
|
1701
|
-
var t =
|
|
1701
|
+
var t = kt(this, e).delete(e);
|
|
1702
1702
|
return this.size -= t ? 1 : 0, t;
|
|
1703
1703
|
}
|
|
1704
1704
|
function vi(e) {
|
|
1705
|
-
return
|
|
1705
|
+
return kt(this, e).get(e);
|
|
1706
1706
|
}
|
|
1707
1707
|
function gi(e) {
|
|
1708
|
-
return
|
|
1708
|
+
return kt(this, e).has(e);
|
|
1709
1709
|
}
|
|
1710
1710
|
function yi(e, t) {
|
|
1711
|
-
var n =
|
|
1711
|
+
var n = kt(this, e), r = n.size;
|
|
1712
1712
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
1713
1713
|
}
|
|
1714
1714
|
function Ce(e) {
|
|
@@ -1764,14 +1764,14 @@ function Ni(e) {
|
|
|
1764
1764
|
var t = e + "";
|
|
1765
1765
|
return t == "0" && 1 / e == -Ci ? "-0" : t;
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1767
|
+
function ki(e, t) {
|
|
1768
1768
|
t = Ti(t, e);
|
|
1769
1769
|
for (var n = 0, r = t.length; e != null && n < r; )
|
|
1770
1770
|
e = e[Ni(t[n++])];
|
|
1771
1771
|
return n && n == r ? e : void 0;
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1774
|
-
var r = e == null ? void 0 :
|
|
1773
|
+
function Ai(e, t, n) {
|
|
1774
|
+
var r = e == null ? void 0 : ki(e, t);
|
|
1775
1775
|
return r === void 0 ? n : r;
|
|
1776
1776
|
}
|
|
1777
1777
|
const Li = (e) => typeof e == "number", Yn = (e) => Object.keys(e);
|
|
@@ -1790,7 +1790,7 @@ const Mr = (e = "") => e.split(" ").filter((t) => !!t.trim()), Xn = (e, t) => {
|
|
|
1790
1790
|
!e || !t.trim() || e.classList.add(...Mr(t));
|
|
1791
1791
|
}, bt = (e, t) => {
|
|
1792
1792
|
!e || !t.trim() || e.classList.remove(...Mr(t));
|
|
1793
|
-
},
|
|
1793
|
+
}, qe = (e, t) => {
|
|
1794
1794
|
var n;
|
|
1795
1795
|
if (!_n || !e || !t)
|
|
1796
1796
|
return "";
|
|
@@ -1815,7 +1815,7 @@ const Mr = (e = "") => e.split(" ").filter((t) => !!t.trim()), Xn = (e, t) => {
|
|
|
1815
1815
|
let c = !1, u = [];
|
|
1816
1816
|
if (n && (u = Array.from(n), qn(e, "default") && u.push(o), c || (c = u.includes(l))), a && (c || (c = a(l))), !c && u.length > 0) {
|
|
1817
1817
|
const f = [...new Set(u)].map((m) => JSON.stringify(m)).join(", ");
|
|
1818
|
-
|
|
1818
|
+
Po(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${f}], got value ${JSON.stringify(l)}.`);
|
|
1819
1819
|
}
|
|
1820
1820
|
return c;
|
|
1821
1821
|
} : void 0,
|
|
@@ -1985,7 +1985,7 @@ var Ii = {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
1987
1987
|
};
|
|
1988
|
-
const Bi = (e) => (t, n) => Mi(t, n, z(e)), Mi = (e, t, n) =>
|
|
1988
|
+
const Bi = (e) => (t, n) => Mi(t, n, z(e)), Mi = (e, t, n) => Ai(n, e, e).replace(/\{(\w+)\}/g, (r, o) => {
|
|
1989
1989
|
var s;
|
|
1990
1990
|
return `${(s = t == null ? void 0 : t[o]) != null ? s : `{${o}}`}`;
|
|
1991
1991
|
}), Ui = (e) => {
|
|
@@ -2159,7 +2159,7 @@ function Xi(e) {
|
|
|
2159
2159
|
onAfterLeave: d
|
|
2160
2160
|
}, {
|
|
2161
2161
|
default: be(() => [
|
|
2162
|
-
|
|
2162
|
+
Ye(ue("div", {
|
|
2163
2163
|
style: {
|
|
2164
2164
|
backgroundColor: r.background || ""
|
|
2165
2165
|
},
|
|
@@ -2177,7 +2177,7 @@ function Xi(e) {
|
|
|
2177
2177
|
});
|
|
2178
2178
|
};
|
|
2179
2179
|
}
|
|
2180
|
-
}), c =
|
|
2180
|
+
}), c = Oo(l), u = c.mount(document.createElement("div"));
|
|
2181
2181
|
return {
|
|
2182
2182
|
...Xt(r),
|
|
2183
2183
|
setText: o,
|
|
@@ -2206,7 +2206,7 @@ const rn = function(e = {}) {
|
|
|
2206
2206
|
});
|
|
2207
2207
|
Qi(t, t.parent, n), Qn(t, t.parent, n), t.parent.vLoadingAddClassList = () => Qn(t, t.parent, n);
|
|
2208
2208
|
let r = t.parent.getAttribute("loading-number");
|
|
2209
|
-
return r ? r = `${Number.parseInt(r) + 1}` : r = "1", t.parent.setAttribute("loading-number", r), t.parent.appendChild(n.$el),
|
|
2209
|
+
return r ? r = `${Number.parseInt(r) + 1}` : r = "1", t.parent.setAttribute("loading-number", r), t.parent.appendChild(n.$el), Ze(() => n.visible.value = t.visible), t.fullscreen && (dt = n), n;
|
|
2210
2210
|
}, Zi = (e) => {
|
|
2211
2211
|
var t, n, r, o;
|
|
2212
2212
|
let s;
|
|
@@ -2226,17 +2226,17 @@ const rn = function(e = {}) {
|
|
|
2226
2226
|
}, Qi = async (e, t, n) => {
|
|
2227
2227
|
const { nextZIndex: r } = n.vm.zIndex || n.vm._.exposed.zIndex, o = {};
|
|
2228
2228
|
if (e.fullscreen)
|
|
2229
|
-
n.originalPosition.value =
|
|
2229
|
+
n.originalPosition.value = qe(document.body, "position"), n.originalOverflow.value = qe(document.body, "overflow"), o.zIndex = r();
|
|
2230
2230
|
else if (e.parent === document.body) {
|
|
2231
|
-
n.originalPosition.value =
|
|
2231
|
+
n.originalPosition.value = qe(document.body, "position"), await Ze();
|
|
2232
2232
|
for (const s of ["top", "left"]) {
|
|
2233
2233
|
const a = s === "top" ? "scrollTop" : "scrollLeft";
|
|
2234
|
-
o[s] = `${e.target.getBoundingClientRect()[s] + document.body[a] + document.documentElement[a] - Number.parseInt(
|
|
2234
|
+
o[s] = `${e.target.getBoundingClientRect()[s] + document.body[a] + document.documentElement[a] - Number.parseInt(qe(document.body, `margin-${s}`), 10)}px`;
|
|
2235
2235
|
}
|
|
2236
2236
|
for (const s of ["height", "width"])
|
|
2237
2237
|
o[s] = `${e.target.getBoundingClientRect()[s]}px`;
|
|
2238
2238
|
} else
|
|
2239
|
-
n.originalPosition.value =
|
|
2239
|
+
n.originalPosition.value = qe(t, "position");
|
|
2240
2240
|
for (const [s, a] of Object.entries(o))
|
|
2241
2241
|
n.$el.style[s] = a;
|
|
2242
2242
|
}, Qn = (e, t, n) => {
|
|
@@ -2278,19 +2278,19 @@ const rn = function(e = {}) {
|
|
|
2278
2278
|
var t;
|
|
2279
2279
|
(t = e[on]) == null || t.instance.close();
|
|
2280
2280
|
}
|
|
2281
|
-
},
|
|
2281
|
+
}, Le = {
|
|
2282
2282
|
install(e) {
|
|
2283
2283
|
e.directive("loading", tr), e.config.globalProperties.$loading = rn;
|
|
2284
2284
|
},
|
|
2285
2285
|
directive: tr,
|
|
2286
2286
|
service: rn
|
|
2287
2287
|
};
|
|
2288
|
-
function
|
|
2288
|
+
function At() {
|
|
2289
2289
|
let e = "";
|
|
2290
2290
|
return typeof app_config == "object" && app_config && Object.keys(app_config).length > 0 && (e = app_config.base_url || ""), e;
|
|
2291
2291
|
}
|
|
2292
2292
|
function tl() {
|
|
2293
|
-
const e = Kr(), t =
|
|
2293
|
+
const e = Kr(), t = At();
|
|
2294
2294
|
return e.product ? e.product : t ? t.slice(1) : location.href.indexOf("convert") != -1 ? "convert" : location.href.indexOf("translate") != -1 ? "translate" : "recorder";
|
|
2295
2295
|
}
|
|
2296
2296
|
function Jr(e, t) {
|
|
@@ -2307,7 +2307,7 @@ function Kr() {
|
|
|
2307
2307
|
t = r[n].split("="), e[decodeURIComponent(t[0])] = t.length > 1 ? decodeURIComponent(t[1]) : "";
|
|
2308
2308
|
return e;
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2310
|
+
function Ie({ url: e, data: t = null, method: n = "GET", headers: r = null, cacheKey: o, cacheTime: s }) {
|
|
2311
2311
|
try {
|
|
2312
2312
|
var a = new AbortController(), i = a.signal;
|
|
2313
2313
|
} catch {
|
|
@@ -2333,20 +2333,20 @@ function je({ url: e, data: t = null, method: n = "GET", headers: r = null, cach
|
|
|
2333
2333
|
});
|
|
2334
2334
|
return Promise.race([c(), fetch(e, l).then((u) => u.json())]).then((u) => (console.log(u), u.success == !0 || u.ok === 0 || u.code == 0 ? (o && (s ? ut.put(o, u.data, s) : ut.put(o, u.data)), (u.message || u.message == 0) && (window.g_message = u.message), Promise.resolve(u.data)) : u && u.image || u && u.GOOGLE_ACCESS_TOKEN ? (o && (s ? ut.put(o, u, s) : ut.put(o, u)), Promise.resolve(u)) : u.statusText == "timeout" ? Promise.reject("The system is busy, please try again later") : Promise.reject(u.message || u.msg && u || "failed, please check your network and try again"))).catch((u) => Promise.reject(u));
|
|
2335
2335
|
}
|
|
2336
|
-
let
|
|
2336
|
+
let Be = At();
|
|
2337
2337
|
function nr(e = !1) {
|
|
2338
2338
|
const t = {
|
|
2339
2339
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
2340
2340
|
};
|
|
2341
|
-
let n =
|
|
2342
|
-
return e && (n += "?drive=1"),
|
|
2341
|
+
let n = Be + "/api/user/status";
|
|
2342
|
+
return e && (n += "?drive=1"), Ie({
|
|
2343
2343
|
url: n,
|
|
2344
2344
|
method: "POST",
|
|
2345
2345
|
headers: t
|
|
2346
2346
|
});
|
|
2347
2347
|
}
|
|
2348
|
-
const nl = (e) =>
|
|
2349
|
-
url:
|
|
2348
|
+
const nl = (e) => Ie({
|
|
2349
|
+
url: Be + "/api/user/active-passport",
|
|
2350
2350
|
data: {
|
|
2351
2351
|
passport: e
|
|
2352
2352
|
},
|
|
@@ -2356,8 +2356,8 @@ const nl = (e) => je({
|
|
|
2356
2356
|
}
|
|
2357
2357
|
});
|
|
2358
2358
|
function rl(e) {
|
|
2359
|
-
return
|
|
2360
|
-
url:
|
|
2359
|
+
return Ie({
|
|
2360
|
+
url: Be + "/api/user/facebooklogin",
|
|
2361
2361
|
data: {
|
|
2362
2362
|
token: e
|
|
2363
2363
|
},
|
|
@@ -2368,8 +2368,8 @@ function rl(e) {
|
|
|
2368
2368
|
});
|
|
2369
2369
|
}
|
|
2370
2370
|
function Yr(e) {
|
|
2371
|
-
return
|
|
2372
|
-
url:
|
|
2371
|
+
return Ie({
|
|
2372
|
+
url: Be + "/api/user/google",
|
|
2373
2373
|
data: {
|
|
2374
2374
|
token: e
|
|
2375
2375
|
},
|
|
@@ -2380,8 +2380,8 @@ function Yr(e) {
|
|
|
2380
2380
|
});
|
|
2381
2381
|
}
|
|
2382
2382
|
function ol(e, t) {
|
|
2383
|
-
return
|
|
2384
|
-
url:
|
|
2383
|
+
return Ie({
|
|
2384
|
+
url: Be + "/api/user/emaillogin?email=" + encodeURIComponent(e) + "&password=" + encodeURIComponent(t)
|
|
2385
2385
|
// data: {
|
|
2386
2386
|
// email,
|
|
2387
2387
|
// password
|
|
@@ -2390,8 +2390,8 @@ function ol(e, t) {
|
|
|
2390
2390
|
});
|
|
2391
2391
|
}
|
|
2392
2392
|
function sl(e, t, n) {
|
|
2393
|
-
return
|
|
2394
|
-
url:
|
|
2393
|
+
return Ie({
|
|
2394
|
+
url: Be + "/api/user/emailsignup?email=" + encodeURIComponent(e) + "&username=" + encodeURIComponent(t) + "&password=" + encodeURIComponent(n)
|
|
2395
2395
|
// data: {
|
|
2396
2396
|
// email,
|
|
2397
2397
|
// username,
|
|
@@ -2441,7 +2441,7 @@ function Jt({ props: e, attrs: t, slots: n, slot: r, name: o }) {
|
|
|
2441
2441
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((p) => ` - ${p}`).join(`
|
|
2442
2442
|
`)].join(`
|
|
2443
2443
|
`));
|
|
2444
|
-
let m = Zr((a = u.props) != null ? a : {}, d), v =
|
|
2444
|
+
let m = Zr((a = u.props) != null ? a : {}, d), v = To(u, m);
|
|
2445
2445
|
for (let p in m)
|
|
2446
2446
|
p.startsWith("on") && (v.props || (v.props = {}), v.props[p] = m[p]);
|
|
2447
2447
|
return v;
|
|
@@ -2558,7 +2558,7 @@ function fe(e) {
|
|
|
2558
2558
|
return document;
|
|
2559
2559
|
}
|
|
2560
2560
|
let sn = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
2561
|
-
var q = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(q || {}),
|
|
2561
|
+
var q = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(q || {}), tt = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(tt || {}), vl = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(vl || {});
|
|
2562
2562
|
function $t(e = document.body) {
|
|
2563
2563
|
return e == null ? [] : Array.from(e.querySelectorAll(sn)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
2564
2564
|
}
|
|
@@ -2675,7 +2675,7 @@ function no(e, t, n = x(() => !0)) {
|
|
|
2675
2675
|
}, !0), to("blur", (s) => r(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
2676
2676
|
}
|
|
2677
2677
|
var Oe = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Oe || {});
|
|
2678
|
-
let
|
|
2678
|
+
let Re = U({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
|
|
2679
2679
|
return () => {
|
|
2680
2680
|
let { features: r, ...o } = e, s = { "aria-hidden": (r & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
|
|
2681
2681
|
return G({ ourProps: s, theirProps: o, slot: {}, attrs: n, slots: t, name: "Hidden" });
|
|
@@ -2725,7 +2725,7 @@ function Nn() {
|
|
|
2725
2725
|
t.key === "Tab" && (e.value = t.shiftKey ? 1 : 0);
|
|
2726
2726
|
}), e;
|
|
2727
2727
|
}
|
|
2728
|
-
function
|
|
2728
|
+
function kn(e, t, n, r) {
|
|
2729
2729
|
Lt.isServer || se((o) => {
|
|
2730
2730
|
e = e ?? window, e.addEventListener(t, n, r), o(() => e.removeEventListener(t, n, r));
|
|
2731
2731
|
});
|
|
@@ -2754,7 +2754,7 @@ function so(e) {
|
|
|
2754
2754
|
return t;
|
|
2755
2755
|
}
|
|
2756
2756
|
var ao = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.All = 30] = "All", e))(ao || {});
|
|
2757
|
-
let
|
|
2757
|
+
let Ge = Object.assign(U({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: T(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
2758
2758
|
let o = T(null);
|
|
2759
2759
|
r({ el: o, $el: o });
|
|
2760
2760
|
let s = x(() => fe(o)), a = T(!1);
|
|
@@ -2788,7 +2788,7 @@ let ze = Object.assign(U({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
2788
2788
|
}
|
|
2789
2789
|
return () => {
|
|
2790
2790
|
let m = {}, v = { ref: o, onKeydown: u, onFocusout: f }, { features: p, initialFocus: y, containers: S, ...N } = e;
|
|
2791
|
-
return j(ve, [!!(p & 4) && j(
|
|
2791
|
+
return j(ve, [!!(p & 4) && j(Re, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: l, features: Oe.Focusable }), G({ ourProps: v, theirProps: { ...t, ...N }, slot: m, attrs: t, slots: n, name: "FocusTrap" }), !!(p & 4) && j(Re, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: l, features: Oe.Focusable })]);
|
|
2792
2792
|
};
|
|
2793
2793
|
} }), { features: ao }), we = [];
|
|
2794
2794
|
El(() => {
|
|
@@ -2799,7 +2799,7 @@ El(() => {
|
|
|
2799
2799
|
});
|
|
2800
2800
|
function Sl(e) {
|
|
2801
2801
|
let t = T(we.slice());
|
|
2802
|
-
return
|
|
2802
|
+
return nt([e], ([n], [r]) => {
|
|
2803
2803
|
r === !0 && n === !1 ? oo(() => {
|
|
2804
2804
|
t.value.splice(0);
|
|
2805
2805
|
}) : r === !1 && n === !0 && (t.value = we.slice());
|
|
@@ -2822,7 +2822,7 @@ function xl({ ownerDocument: e }, t) {
|
|
|
2822
2822
|
function Pl({ ownerDocument: e, container: t, initialFocus: n }, r) {
|
|
2823
2823
|
let o = T(null), s = T(!1);
|
|
2824
2824
|
return K(() => s.value = !0), re(() => s.value = !1), K(() => {
|
|
2825
|
-
|
|
2825
|
+
nt([t, n, r], (a, i) => {
|
|
2826
2826
|
if (a.every((l, c) => (i == null ? void 0 : i[c]) === l) || !r.value)
|
|
2827
2827
|
return;
|
|
2828
2828
|
let d = _(t);
|
|
@@ -2840,14 +2840,14 @@ function Pl({ ownerDocument: e, container: t, initialFocus: n }, r) {
|
|
|
2840
2840
|
o.value = f;
|
|
2841
2841
|
return;
|
|
2842
2842
|
}
|
|
2843
|
-
u ? Ee(u) : ne(d, q.First | q.NoScroll) ===
|
|
2843
|
+
u ? Ee(u) : ne(d, q.First | q.NoScroll) === tt.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), o.value = (c = e.value) == null ? void 0 : c.activeElement;
|
|
2844
2844
|
});
|
|
2845
2845
|
}, { immediate: !0, flush: "post" });
|
|
2846
2846
|
}), o;
|
|
2847
2847
|
}
|
|
2848
2848
|
function Ol({ ownerDocument: e, container: t, containers: n, previousActiveElement: r }, o) {
|
|
2849
2849
|
var s;
|
|
2850
|
-
|
|
2850
|
+
kn((s = e.value) == null ? void 0 : s.defaultView, "focus", (a) => {
|
|
2851
2851
|
if (!o.value)
|
|
2852
2852
|
return;
|
|
2853
2853
|
let i = so(n);
|
|
@@ -2865,7 +2865,7 @@ function io(e, t) {
|
|
|
2865
2865
|
return !0;
|
|
2866
2866
|
return !1;
|
|
2867
2867
|
}
|
|
2868
|
-
let Kt = /* @__PURE__ */ new Map(),
|
|
2868
|
+
let Kt = /* @__PURE__ */ new Map(), We = /* @__PURE__ */ new Map();
|
|
2869
2869
|
function ar(e, t = T(!0)) {
|
|
2870
2870
|
se((n) => {
|
|
2871
2871
|
var r;
|
|
@@ -2878,14 +2878,14 @@ function ar(e, t = T(!0)) {
|
|
|
2878
2878
|
var a;
|
|
2879
2879
|
if (!o)
|
|
2880
2880
|
return;
|
|
2881
|
-
let i = (a =
|
|
2882
|
-
if (i === 1 ?
|
|
2881
|
+
let i = (a = We.get(o)) != null ? a : 1;
|
|
2882
|
+
if (i === 1 ? We.delete(o) : We.set(o, i - 1), i !== 1)
|
|
2883
2883
|
return;
|
|
2884
2884
|
let d = Kt.get(o);
|
|
2885
2885
|
d && (d["aria-hidden"] === null ? o.removeAttribute("aria-hidden") : o.setAttribute("aria-hidden", d["aria-hidden"]), o.inert = d.inert, Kt.delete(o));
|
|
2886
2886
|
});
|
|
2887
|
-
let s = (r =
|
|
2888
|
-
|
|
2887
|
+
let s = (r = We.get(o)) != null ? r : 0;
|
|
2888
|
+
We.set(o, s + 1), s === 0 && (Kt.set(o, { "aria-hidden": o.getAttribute("aria-hidden"), inert: o.inert }), o.setAttribute("aria-hidden", "true"), o.inert = !0);
|
|
2889
2889
|
});
|
|
2890
2890
|
}
|
|
2891
2891
|
let lo = Symbol("ForcePortalRootContext");
|
|
@@ -2928,7 +2928,7 @@ let uo = U({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
2928
2928
|
if (i.value === null)
|
|
2929
2929
|
return null;
|
|
2930
2930
|
let l = { ref: r, "data-headlessui-portal": "" };
|
|
2931
|
-
return j(
|
|
2931
|
+
return j(Co, { to: i.value }, G({ ourProps: l, theirProps: e, slot: {}, attrs: n, slots: t, name: "Portal" }));
|
|
2932
2932
|
};
|
|
2933
2933
|
} }), ln = Symbol("PortalParentContext");
|
|
2934
2934
|
function co() {
|
|
@@ -2958,17 +2958,17 @@ let fo = Symbol("PortalGroupContext"), Nl = U({ name: "PortalGroup", props: { as
|
|
|
2958
2958
|
};
|
|
2959
2959
|
} }), po = Symbol("StackContext");
|
|
2960
2960
|
var un = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(un || {});
|
|
2961
|
-
function
|
|
2961
|
+
function kl() {
|
|
2962
2962
|
return H(po, () => {
|
|
2963
2963
|
});
|
|
2964
2964
|
}
|
|
2965
|
-
function
|
|
2966
|
-
let o =
|
|
2965
|
+
function Al({ type: e, enabled: t, element: n, onUpdate: r }) {
|
|
2966
|
+
let o = kl();
|
|
2967
2967
|
function s(...a) {
|
|
2968
2968
|
r == null || r(...a), o(...a);
|
|
2969
2969
|
}
|
|
2970
2970
|
K(() => {
|
|
2971
|
-
|
|
2971
|
+
nt(t, (a, i) => {
|
|
2972
2972
|
a ? s(0, e, n) : i === !0 && s(1, e, n);
|
|
2973
2973
|
}, { immediate: !0, flush: "sync" });
|
|
2974
2974
|
}), re(() => {
|
|
@@ -3096,7 +3096,7 @@ function Ml(e, t, n) {
|
|
|
3096
3096
|
let s = e.value ? r.value.get(e.value) : void 0;
|
|
3097
3097
|
return s ? s.count > 0 : !1;
|
|
3098
3098
|
});
|
|
3099
|
-
return
|
|
3099
|
+
return nt([e, t], ([s, a], [i], d) => {
|
|
3100
3100
|
if (!s || !a)
|
|
3101
3101
|
return;
|
|
3102
3102
|
_e.dispatch("PUSH", s, n);
|
|
@@ -3123,16 +3123,16 @@ function mo({ defaultContainers: e = [], portals: t } = {}) {
|
|
|
3123
3123
|
return { resolveContainers: o, contains(s) {
|
|
3124
3124
|
return o().some((a) => a.contains(s));
|
|
3125
3125
|
}, mainTreeNodeRef: n, MainTreeNode() {
|
|
3126
|
-
return j(
|
|
3126
|
+
return j(Re, { features: Oe.Hidden, ref: n });
|
|
3127
3127
|
} };
|
|
3128
3128
|
}
|
|
3129
3129
|
var Ul = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Ul || {});
|
|
3130
3130
|
let cn = Symbol("DialogContext");
|
|
3131
|
-
function
|
|
3131
|
+
function it(e) {
|
|
3132
3132
|
let t = H(cn, null);
|
|
3133
3133
|
if (t === null) {
|
|
3134
3134
|
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
3135
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n,
|
|
3135
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n, it), n;
|
|
3136
3136
|
}
|
|
3137
3137
|
return t;
|
|
3138
3138
|
}
|
|
@@ -3147,7 +3147,7 @@ let ft = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Hl = U({ name: "Dialog", inheri
|
|
|
3147
3147
|
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
3148
3148
|
if (typeof l.value != "boolean")
|
|
3149
3149
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l.value === ft ? void 0 : e.open}`);
|
|
3150
|
-
let f = x(() => a.value && l.value ? 0 : 1), m = x(() => f.value === 0), v = x(() => i.value > 1), p = H(cn, null) !== null, [y, S] = co(), { resolveContainers: N, mainTreeNodeRef: C, MainTreeNode:
|
|
3150
|
+
let f = x(() => a.value && l.value ? 0 : 1), m = x(() => f.value === 0), v = x(() => i.value > 1), p = H(cn, null) !== null, [y, S] = co(), { resolveContainers: N, mainTreeNodeRef: C, MainTreeNode: k } = mo({ portals: y, defaultContainers: [x(() => {
|
|
3151
3151
|
var F;
|
|
3152
3152
|
return (F = I.panelRef.value) != null ? F : c.value;
|
|
3153
3153
|
})] }), E = x(() => v.value ? "parent" : "leaf"), O = x(() => d !== null ? (d.value & te.Closing) === te.Closing : !1), b = x(() => p || O.value ? !1 : m.value), V = x(() => {
|
|
@@ -3159,7 +3159,7 @@ let ft = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Hl = U({ name: "Dialog", inheri
|
|
|
3159
3159
|
var F, R, ie;
|
|
3160
3160
|
return (ie = Array.from((R = (F = u.value) == null ? void 0 : F.querySelectorAll("[data-headlessui-portal]")) != null ? R : []).find((le) => le.contains(_(C)) && le instanceof HTMLElement)) != null ? ie : null;
|
|
3161
3161
|
});
|
|
3162
|
-
ar(P, W),
|
|
3162
|
+
ar(P, W), Al({ type: "Dialog", enabled: x(() => f.value === 0), element: c, onUpdate: (F, R) => {
|
|
3163
3163
|
if (R === "Dialog")
|
|
3164
3164
|
return X(F, { [un.Add]: () => i.value += 1, [un.Remove]: () => i.value -= 1 });
|
|
3165
3165
|
} });
|
|
@@ -3171,10 +3171,10 @@ let ft = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Hl = U({ name: "Dialog", inheri
|
|
|
3171
3171
|
oe(cn, I);
|
|
3172
3172
|
let ge = x(() => !(!m.value || v.value));
|
|
3173
3173
|
no(N, (F, R) => {
|
|
3174
|
-
I.close(),
|
|
3174
|
+
I.close(), Ze(() => R == null ? void 0 : R.focus());
|
|
3175
3175
|
}, ge);
|
|
3176
3176
|
let Rt = x(() => !(v.value || f.value !== 0));
|
|
3177
|
-
|
|
3177
|
+
kn((s = u.value) == null ? void 0 : s.defaultView, "keydown", (F) => {
|
|
3178
3178
|
Rt.value && (F.defaultPrevented || F.key === pe.Escape && (F.preventDefault(), F.stopPropagation(), I.close()));
|
|
3179
3179
|
});
|
|
3180
3180
|
let Dt = x(() => !(O.value || f.value !== 0 || p));
|
|
@@ -3189,18 +3189,18 @@ let ft = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Hl = U({ name: "Dialog", inheri
|
|
|
3189
3189
|
return;
|
|
3190
3190
|
let ie = new ResizeObserver((le) => {
|
|
3191
3191
|
for (let jt of le) {
|
|
3192
|
-
let
|
|
3193
|
-
|
|
3192
|
+
let ke = jt.target.getBoundingClientRect();
|
|
3193
|
+
ke.x === 0 && ke.y === 0 && ke.width === 0 && ke.height === 0 && I.close();
|
|
3194
3194
|
}
|
|
3195
3195
|
});
|
|
3196
3196
|
ie.observe(R), F(() => ie.disconnect());
|
|
3197
3197
|
}), () => {
|
|
3198
|
-
let { id: F, open: R, initialFocus: ie, ...le } = e, jt = { ...n, ref: c, id: F, role: "dialog", "aria-modal": f.value === 0 ? !0 : void 0, "aria-labelledby": D.value, "aria-describedby": w.value },
|
|
3199
|
-
return j(an, { force: !0 }, () => [j(uo, () => j(Nl, { target: c.value }, () => j(an, { force: !1 }, () => j(
|
|
3198
|
+
let { id: F, open: R, initialFocus: ie, ...le } = e, jt = { ...n, ref: c, id: F, role: "dialog", "aria-modal": f.value === 0 ? !0 : void 0, "aria-labelledby": D.value, "aria-describedby": w.value }, ke = { open: f.value === 0 };
|
|
3199
|
+
return j(an, { force: !0 }, () => [j(uo, () => j(Nl, { target: c.value }, () => j(an, { force: !1 }, () => j(Ge, { initialFocus: ie, containers: N, features: m.value ? X(E.value, { parent: Ge.features.RestoreFocus, leaf: Ge.features.All & ~Ge.features.FocusLock }) : Ge.features.None }, () => j(S, {}, () => G({ ourProps: jt, theirProps: { ...le, ...n }, slot: ke, attrs: n, slots: r, visible: f.value === 0, features: Pe.RenderStrategy | Pe.Static, name: "Dialog" })))))), j(k)]);
|
|
3200
3200
|
};
|
|
3201
3201
|
} });
|
|
3202
3202
|
U({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${ee()}` } }, setup(e, { attrs: t, slots: n }) {
|
|
3203
|
-
let r =
|
|
3203
|
+
let r = it("DialogOverlay");
|
|
3204
3204
|
function o(s) {
|
|
3205
3205
|
s.target === s.currentTarget && (s.preventDefault(), s.stopPropagation(), r.close());
|
|
3206
3206
|
}
|
|
@@ -3210,7 +3210,7 @@ U({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
|
|
|
3210
3210
|
};
|
|
3211
3211
|
} });
|
|
3212
3212
|
U({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-backdrop-${ee()}` } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
3213
|
-
let o =
|
|
3213
|
+
let o = it("DialogBackdrop"), s = T(null);
|
|
3214
3214
|
return r({ el: s, $el: s }), K(() => {
|
|
3215
3215
|
if (o.panelRef.value === null)
|
|
3216
3216
|
throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
@@ -3220,7 +3220,7 @@ U({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div
|
|
|
3220
3220
|
};
|
|
3221
3221
|
} });
|
|
3222
3222
|
let Vl = U({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-panel-${ee()}` } }, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
3223
|
-
let o =
|
|
3223
|
+
let o = it("DialogPanel");
|
|
3224
3224
|
r({ el: o.panelRef, $el: o.panelRef });
|
|
3225
3225
|
function s(a) {
|
|
3226
3226
|
a.stopPropagation();
|
|
@@ -3231,7 +3231,7 @@ let Vl = U({ name: "DialogPanel", props: { as: { type: [Object, String], default
|
|
|
3231
3231
|
};
|
|
3232
3232
|
} });
|
|
3233
3233
|
U({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: () => `headlessui-dialog-title-${ee()}` } }, setup(e, { attrs: t, slots: n }) {
|
|
3234
|
-
let r =
|
|
3234
|
+
let r = it("DialogTitle");
|
|
3235
3235
|
return K(() => {
|
|
3236
3236
|
r.setTitleId(e.id), re(() => r.setTitleId(null));
|
|
3237
3237
|
}), () => {
|
|
@@ -3283,13 +3283,13 @@ let wo = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
3283
3283
|
let v = { buttonId: m.buttonId, panelId: m.panelId, close() {
|
|
3284
3284
|
m.closePopover();
|
|
3285
3285
|
} }, p = yo(), y = p == null ? void 0 : p.registerPopover, [S, N] = co(), C = mo({ portals: S, defaultContainers: [i, c] });
|
|
3286
|
-
function
|
|
3286
|
+
function k() {
|
|
3287
3287
|
var E, O, b, V;
|
|
3288
3288
|
return (V = p == null ? void 0 : p.isFocusWithinPopoverGroup()) != null ? V : ((E = u.value) == null ? void 0 : E.activeElement) && (((O = _(i)) == null ? void 0 : O.contains(u.value.activeElement)) || ((b = _(c)) == null ? void 0 : b.contains(u.value.activeElement)));
|
|
3289
3289
|
}
|
|
3290
|
-
return se(() => y == null ? void 0 : y(v)),
|
|
3290
|
+
return se(() => y == null ? void 0 : y(v)), kn((o = u.value) == null ? void 0 : o.defaultView, "focus", (E) => {
|
|
3291
3291
|
var O, b;
|
|
3292
|
-
E.target !== window && E.target instanceof HTMLElement && a.value === 0 && (
|
|
3292
|
+
E.target !== window && E.target instanceof HTMLElement && a.value === 0 && (k() || i && c && (C.contains(E.target) || (O = _(m.beforePanelSentinel)) != null && O.contains(E.target) || (b = _(m.afterPanelSentinel)) != null && b.contains(E.target) || m.closePopover()));
|
|
3293
3293
|
}, !0), no(C.resolveContainers, (E, O) => {
|
|
3294
3294
|
var b;
|
|
3295
3295
|
m.closePopover(), eo(O, Cn.Loose) || (E.preventDefault(), (b = _(i)) == null || b.focus());
|
|
@@ -3310,14 +3310,14 @@ let wo = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
3310
3310
|
});
|
|
3311
3311
|
let f = fl(x(() => ({ as: e.as, type: t.type })), c);
|
|
3312
3312
|
function m(C) {
|
|
3313
|
-
var
|
|
3313
|
+
var k, E, O, b, V;
|
|
3314
3314
|
if (l.value) {
|
|
3315
3315
|
if (o.popoverState.value === 1)
|
|
3316
3316
|
return;
|
|
3317
3317
|
switch (C.key) {
|
|
3318
3318
|
case pe.Space:
|
|
3319
3319
|
case pe.Enter:
|
|
3320
|
-
C.preventDefault(), (E = (
|
|
3320
|
+
C.preventDefault(), (E = (k = C.target).click) == null || E.call(k), o.closePopover(), (O = _(o.button)) == null || O.focus();
|
|
3321
3321
|
break;
|
|
3322
3322
|
}
|
|
3323
3323
|
} else
|
|
@@ -3339,8 +3339,8 @@ let wo = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
3339
3339
|
l.value || C.key === pe.Space && C.preventDefault();
|
|
3340
3340
|
}
|
|
3341
3341
|
function p(C) {
|
|
3342
|
-
var
|
|
3343
|
-
e.disabled || (l.value ? (o.closePopover(), (
|
|
3342
|
+
var k, E;
|
|
3343
|
+
e.disabled || (l.value ? (o.closePopover(), (k = _(o.button)) == null || k.focus()) : (C.preventDefault(), C.stopPropagation(), o.popoverState.value === 1 && (i == null || i(o.buttonId.value)), o.togglePopover(), (E = _(o.button)) == null || E.focus()));
|
|
3344
3344
|
}
|
|
3345
3345
|
function y(C) {
|
|
3346
3346
|
C.preventDefault(), C.stopPropagation();
|
|
@@ -3350,14 +3350,14 @@ let wo = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
3350
3350
|
let C = _(o.panel);
|
|
3351
3351
|
if (!C)
|
|
3352
3352
|
return;
|
|
3353
|
-
function
|
|
3354
|
-
X(S.value, { [Y.Forwards]: () => ne(C, q.First), [Y.Backwards]: () => ne(C, q.Last) }) ===
|
|
3353
|
+
function k() {
|
|
3354
|
+
X(S.value, { [Y.Forwards]: () => ne(C, q.First), [Y.Backwards]: () => ne(C, q.Last) }) === tt.Error && ne($t().filter((E) => E.dataset.headlessuiFocusGuard !== "true"), X(S.value, { [Y.Forwards]: q.Next, [Y.Backwards]: q.Previous }), { relativeTo: _(o.button) });
|
|
3355
3355
|
}
|
|
3356
|
-
|
|
3356
|
+
k();
|
|
3357
3357
|
}
|
|
3358
3358
|
return () => {
|
|
3359
|
-
let C = o.popoverState.value === 0,
|
|
3360
|
-
return j(ve, [G({ ourProps: b, theirProps: { ...t, ...O }, slot:
|
|
3359
|
+
let C = o.popoverState.value === 0, k = { open: C }, { id: E, ...O } = e, b = l.value ? { ref: c, type: f.value, onKeydown: m, onClick: p } : { ref: c, id: E, type: f.value, "aria-expanded": e.disabled ? void 0 : o.popoverState.value === 0, "aria-controls": _(o.panel) ? o.panelId.value : void 0, disabled: e.disabled ? !0 : void 0, onKeydown: m, onKeyup: v, onClick: p, onMousedown: y };
|
|
3360
|
+
return j(ve, [G({ ourProps: b, theirProps: { ...t, ...O }, slot: k, attrs: t, slots: n, name: "PopoverButton" }), C && !l.value && o.isPortalled.value && j(Re, { id: u, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: N })]);
|
|
3361
3361
|
};
|
|
3362
3362
|
} });
|
|
3363
3363
|
U({ name: "PopoverOverlay", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 } }, setup(e, { attrs: t, slots: n }) {
|
|
@@ -3395,9 +3395,9 @@ let Wl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
|
|
|
3395
3395
|
}
|
|
3396
3396
|
}
|
|
3397
3397
|
function f(y) {
|
|
3398
|
-
var S, N, C,
|
|
3398
|
+
var S, N, C, k, E;
|
|
3399
3399
|
let O = y.relatedTarget;
|
|
3400
|
-
O && _(s.panel) && ((S = _(s.panel)) != null && S.contains(O) || (s.closePopover(), ((C = (N = _(s.beforePanelSentinel)) == null ? void 0 : N.contains) != null && C.call(N, O) || (E = (
|
|
3400
|
+
O && _(s.panel) && ((S = _(s.panel)) != null && S.contains(O) || (s.closePopover(), ((C = (N = _(s.beforePanelSentinel)) == null ? void 0 : N.contains) != null && C.call(N, O) || (E = (k = _(s.afterPanelSentinel)) == null ? void 0 : k.contains) != null && E.call(k, O)) && O.focus({ preventScroll: !0 })));
|
|
3401
3401
|
}
|
|
3402
3402
|
let m = Nn();
|
|
3403
3403
|
function v() {
|
|
@@ -3407,7 +3407,7 @@ let Wl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
|
|
|
3407
3407
|
function S() {
|
|
3408
3408
|
X(m.value, { [Y.Forwards]: () => {
|
|
3409
3409
|
var N;
|
|
3410
|
-
ne(y, q.First) ===
|
|
3410
|
+
ne(y, q.First) === tt.Error && ((N = _(s.afterPanelSentinel)) == null || N.focus());
|
|
3411
3411
|
}, [Y.Backwards]: () => {
|
|
3412
3412
|
var N;
|
|
3413
3413
|
(N = _(s.button)) == null || N.focus({ preventScroll: !0 });
|
|
@@ -3424,7 +3424,7 @@ let Wl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
|
|
|
3424
3424
|
let N = _(s.button), C = _(s.panel);
|
|
3425
3425
|
if (!N)
|
|
3426
3426
|
return;
|
|
3427
|
-
let
|
|
3427
|
+
let k = $t(), E = k.indexOf(N), O = k.slice(0, E + 1), b = [...k.slice(E + 1), ...O];
|
|
3428
3428
|
for (let V of b.slice())
|
|
3429
3429
|
if (V.dataset.headlessuiFocusGuard === "true" || C != null && C.contains(V)) {
|
|
3430
3430
|
let W = b.indexOf(V);
|
|
@@ -3433,16 +3433,16 @@ let Wl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
|
|
|
3433
3433
|
ne(b, q.First, { sorted: !1 });
|
|
3434
3434
|
}, [Y.Backwards]: () => {
|
|
3435
3435
|
var N;
|
|
3436
|
-
ne(y, q.Previous) ===
|
|
3436
|
+
ne(y, q.Previous) === tt.Error && ((N = _(s.button)) == null || N.focus());
|
|
3437
3437
|
} });
|
|
3438
3438
|
}
|
|
3439
3439
|
S();
|
|
3440
3440
|
}
|
|
3441
3441
|
return () => {
|
|
3442
|
-
let y = { open: s.popoverState.value === 0, close: s.close }, { id: S, focus: N, ...C } = e,
|
|
3443
|
-
return G({ ourProps:
|
|
3442
|
+
let y = { open: s.popoverState.value === 0, close: s.close }, { id: S, focus: N, ...C } = e, k = { ref: s.panel, id: S, onKeydown: u, onFocusout: o && s.popoverState.value === 0 ? f : void 0, tabIndex: -1 };
|
|
3443
|
+
return G({ ourProps: k, theirProps: { ...t, ...C }, attrs: t, slot: y, slots: { ...n, default: (...E) => {
|
|
3444
3444
|
var O;
|
|
3445
|
-
return [j(ve, [c.value && s.isPortalled.value && j(
|
|
3445
|
+
return [j(ve, [c.value && s.isPortalled.value && j(Re, { id: i, ref: s.beforePanelSentinel, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: v }), (O = n.default) == null ? void 0 : O.call(n, ...E), c.value && s.isPortalled.value && j(Re, { id: d, ref: s.afterPanelSentinel, features: Oe.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: p })])];
|
|
3446
3446
|
} }, features: Pe.RenderStrategy | Pe.Static, visible: c.value, name: "PopoverPanel" });
|
|
3447
3447
|
};
|
|
3448
3448
|
} });
|
|
@@ -3476,7 +3476,7 @@ U({ name: "PopoverGroup", props: { as: { type: [Object, String], default: "div"
|
|
|
3476
3476
|
return oe(go, { registerPopover: d, unregisterPopover: i, isFocusWithinPopoverGroup: l, closeOthers: c }), () => G({ ourProps: { ref: o }, theirProps: e, slot: {}, attrs: t, slots: n, name: "PopoverGroup" });
|
|
3477
3477
|
} });
|
|
3478
3478
|
function Jl(e, t) {
|
|
3479
|
-
return
|
|
3479
|
+
return A(), L("svg", {
|
|
3480
3480
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3481
3481
|
fill: "none",
|
|
3482
3482
|
viewBox: "0 0 24 24",
|
|
@@ -3492,7 +3492,7 @@ function Jl(e, t) {
|
|
|
3492
3492
|
]);
|
|
3493
3493
|
}
|
|
3494
3494
|
function Kl(e, t) {
|
|
3495
|
-
return
|
|
3495
|
+
return A(), L("svg", {
|
|
3496
3496
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3497
3497
|
fill: "none",
|
|
3498
3498
|
viewBox: "0 0 24 24",
|
|
@@ -3507,7 +3507,7 @@ function Kl(e, t) {
|
|
|
3507
3507
|
})
|
|
3508
3508
|
]);
|
|
3509
3509
|
}
|
|
3510
|
-
const
|
|
3510
|
+
const lt = (e, t) => {
|
|
3511
3511
|
const n = e.__vccOpts || e;
|
|
3512
3512
|
for (const [r, o] of t)
|
|
3513
3513
|
n[r] = o;
|
|
@@ -3546,7 +3546,7 @@ const it = (e, t) => {
|
|
|
3546
3546
|
methods: {
|
|
3547
3547
|
handleFbLogin() {
|
|
3548
3548
|
if (typeof FB < "u") {
|
|
3549
|
-
const e =
|
|
3549
|
+
const e = Le.service({
|
|
3550
3550
|
text: "logining...",
|
|
3551
3551
|
background: "rgba(0, 0, 0, 0.7)"
|
|
3552
3552
|
});
|
|
@@ -3574,7 +3574,7 @@ const it = (e, t) => {
|
|
|
3574
3574
|
handleCredentialResponse(e) {
|
|
3575
3575
|
if (console.log(e, "response"), !e || !e.credential)
|
|
3576
3576
|
return;
|
|
3577
|
-
const t =
|
|
3577
|
+
const t = Le.service({
|
|
3578
3578
|
text: "logining...",
|
|
3579
3579
|
background: "rgba(0, 0, 0, 0.7)"
|
|
3580
3580
|
});
|
|
@@ -3629,7 +3629,7 @@ const it = (e, t) => {
|
|
|
3629
3629
|
this.showToast("Password must no be empty");
|
|
3630
3630
|
return;
|
|
3631
3631
|
}
|
|
3632
|
-
const e =
|
|
3632
|
+
const e = Le.service({
|
|
3633
3633
|
text: "logining...",
|
|
3634
3634
|
background: "rgba(0, 0, 0, 0.7)"
|
|
3635
3635
|
});
|
|
@@ -3664,7 +3664,7 @@ const it = (e, t) => {
|
|
|
3664
3664
|
this.showToast("Password must no be empty");
|
|
3665
3665
|
return;
|
|
3666
3666
|
}
|
|
3667
|
-
const e =
|
|
3667
|
+
const e = Le.service({
|
|
3668
3668
|
text: "registering...",
|
|
3669
3669
|
background: "rgba(0, 0, 0, 0.7)"
|
|
3670
3670
|
});
|
|
@@ -3686,7 +3686,7 @@ const it = (e, t) => {
|
|
|
3686
3686
|
console.log(e, 4);
|
|
3687
3687
|
}
|
|
3688
3688
|
}
|
|
3689
|
-
}, ae = (e) => (
|
|
3689
|
+
}, ae = (e) => (rt("data-v-4682235c"), e = e(), ot(), e), Xl = { class: "login-wapper" }, Zl = /* @__PURE__ */ ae(() => /* @__PURE__ */ g(
|
|
3690
3690
|
"span",
|
|
3691
3691
|
null,
|
|
3692
3692
|
"Login here",
|
|
@@ -3798,7 +3798,7 @@ const it = (e, t) => {
|
|
|
3798
3798
|
/* HOISTED */
|
|
3799
3799
|
));
|
|
3800
3800
|
function wu(e, t, n, r, o, s) {
|
|
3801
|
-
return
|
|
3801
|
+
return A(), L("div", Xl, [
|
|
3802
3802
|
g(
|
|
3803
3803
|
"h1",
|
|
3804
3804
|
null,
|
|
@@ -3806,14 +3806,14 @@ function wu(e, t, n, r, o, s) {
|
|
|
3806
3806
|
1
|
|
3807
3807
|
/* TEXT */
|
|
3808
3808
|
),
|
|
3809
|
-
o.isSignup ? (
|
|
3809
|
+
o.isSignup ? (A(), L("div", {
|
|
3810
3810
|
key: 0,
|
|
3811
3811
|
class: "link",
|
|
3812
3812
|
onClick: t[0] || (t[0] = (...a) => s.handleToLogin && s.handleToLogin(...a))
|
|
3813
3813
|
}, [
|
|
3814
3814
|
pt("Already registered? "),
|
|
3815
3815
|
Zl
|
|
3816
|
-
])) : (
|
|
3816
|
+
])) : (A(), L("div", {
|
|
3817
3817
|
key: 1,
|
|
3818
3818
|
class: "link",
|
|
3819
3819
|
onClick: t[1] || (t[1] = (...a) => s.handleToSignup && s.handleToSignup(...a))
|
|
@@ -3845,7 +3845,7 @@ function wu(e, t, n, r, o, s) {
|
|
|
3845
3845
|
g("div", null, [
|
|
3846
3846
|
g("div", su, [
|
|
3847
3847
|
au,
|
|
3848
|
-
|
|
3848
|
+
Ye(g(
|
|
3849
3849
|
"input",
|
|
3850
3850
|
{
|
|
3851
3851
|
id: "user_email",
|
|
@@ -3860,7 +3860,7 @@ function wu(e, t, n, r, o, s) {
|
|
|
3860
3860
|
), [
|
|
3861
3861
|
[It, o.email]
|
|
3862
3862
|
]),
|
|
3863
|
-
o.emailErrorHelp ? (
|
|
3863
|
+
o.emailErrorHelp ? (A(), L(
|
|
3864
3864
|
"p",
|
|
3865
3865
|
iu,
|
|
3866
3866
|
J(o.emailErrorHelp),
|
|
@@ -3868,9 +3868,9 @@ function wu(e, t, n, r, o, s) {
|
|
|
3868
3868
|
/* TEXT */
|
|
3869
3869
|
)) : B("v-if", !0)
|
|
3870
3870
|
]),
|
|
3871
|
-
o.isSignup ? (
|
|
3871
|
+
o.isSignup ? (A(), L("div", lu, [
|
|
3872
3872
|
uu,
|
|
3873
|
-
|
|
3873
|
+
Ye(g(
|
|
3874
3874
|
"input",
|
|
3875
3875
|
{
|
|
3876
3876
|
id: "user_name",
|
|
@@ -3886,7 +3886,7 @@ function wu(e, t, n, r, o, s) {
|
|
|
3886
3886
|
])) : B("v-if", !0),
|
|
3887
3887
|
g("div", cu, [
|
|
3888
3888
|
du,
|
|
3889
|
-
|
|
3889
|
+
Ye(g(
|
|
3890
3890
|
"input",
|
|
3891
3891
|
{
|
|
3892
3892
|
id: "user_password",
|
|
@@ -3900,28 +3900,28 @@ function wu(e, t, n, r, o, s) {
|
|
|
3900
3900
|
), [
|
|
3901
3901
|
[It, o.password]
|
|
3902
3902
|
]),
|
|
3903
|
-
o.passwordErrorHelp ? (
|
|
3903
|
+
o.passwordErrorHelp ? (A(), L("p", fu, [
|
|
3904
3904
|
pt(
|
|
3905
3905
|
J(o.passwordErrorHelp) + " ",
|
|
3906
3906
|
1
|
|
3907
3907
|
/* TEXT */
|
|
3908
3908
|
),
|
|
3909
|
-
o.errCode == 2 ? (
|
|
3909
|
+
o.errCode == 2 ? (A(), L("span", pu, mu)) : B("v-if", !0)
|
|
3910
3910
|
])) : B("v-if", !0)
|
|
3911
3911
|
]),
|
|
3912
|
-
o.isSignup ? (
|
|
3912
|
+
o.isSignup ? (A(), L("button", {
|
|
3913
3913
|
key: 1,
|
|
3914
3914
|
class: "form-button",
|
|
3915
3915
|
disabled: o.disabled,
|
|
3916
3916
|
onClick: t[9] || (t[9] = (...a) => s.handleSignup && s.handleSignup(...a))
|
|
3917
|
-
}, "Create Your Account", 8, vu)) : (
|
|
3917
|
+
}, "Create Your Account", 8, vu)) : (A(), L("button", {
|
|
3918
3918
|
key: 2,
|
|
3919
3919
|
class: "form-button",
|
|
3920
3920
|
disabled: o.disabled,
|
|
3921
3921
|
onClick: t[10] || (t[10] = (...a) => s.handleLogin && s.handleLogin(...a))
|
|
3922
3922
|
}, "Login", 8, gu))
|
|
3923
3923
|
]),
|
|
3924
|
-
o.isSignup ? B("v-if", !0) : (
|
|
3924
|
+
o.isSignup ? B("v-if", !0) : (A(), L("div", yu, [
|
|
3925
3925
|
bu,
|
|
3926
3926
|
B(' <a href="/user/resend-verification-email"> Need new verification email?</a> ')
|
|
3927
3927
|
])),
|
|
@@ -3930,13 +3930,13 @@ function wu(e, t, n, r, o, s) {
|
|
|
3930
3930
|
</div> `)
|
|
3931
3931
|
]);
|
|
3932
3932
|
}
|
|
3933
|
-
const
|
|
3934
|
-
const
|
|
3933
|
+
const _o = /* @__PURE__ */ lt(Yl, [["render", wu], ["__scopeId", "data-v-4682235c"], ["__file", "/Users/yinheng/Desktop/code/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login1.vue"]]);
|
|
3934
|
+
const _u = {
|
|
3935
3935
|
data() {
|
|
3936
3936
|
return {};
|
|
3937
3937
|
},
|
|
3938
3938
|
components: {
|
|
3939
|
-
Login1:
|
|
3939
|
+
Login1: _o
|
|
3940
3940
|
},
|
|
3941
3941
|
mounted() {
|
|
3942
3942
|
},
|
|
@@ -3950,7 +3950,7 @@ const Eu = {
|
|
|
3950
3950
|
this.$emit("close");
|
|
3951
3951
|
}
|
|
3952
3952
|
}
|
|
3953
|
-
},
|
|
3953
|
+
}, Eu = (e) => (rt("data-v-47199182"), e = e(), ot(), e), Su = { class: "background-cover" }, xu = { class: "login-content" }, Pu = /* @__PURE__ */ Eu(() => /* @__PURE__ */ g(
|
|
3954
3954
|
"svg",
|
|
3955
3955
|
{
|
|
3956
3956
|
t: "1641536858080",
|
|
@@ -3971,53 +3971,53 @@ const Eu = {
|
|
|
3971
3971
|
],
|
|
3972
3972
|
-1
|
|
3973
3973
|
/* HOISTED */
|
|
3974
|
-
)),
|
|
3975
|
-
|
|
3974
|
+
)), Ou = [
|
|
3975
|
+
Pu
|
|
3976
3976
|
];
|
|
3977
|
-
function
|
|
3978
|
-
const a =
|
|
3979
|
-
return
|
|
3980
|
-
g("div",
|
|
3977
|
+
function Tu(e, t, n, r, o, s) {
|
|
3978
|
+
const a = _o;
|
|
3979
|
+
return A(), L("div", Su, [
|
|
3980
|
+
g("div", xu, [
|
|
3981
3981
|
ue(a, { onSuccess: s.handleLoginSuccess }, null, 8, ["onSuccess"]),
|
|
3982
3982
|
g("div", {
|
|
3983
3983
|
class: "cancel",
|
|
3984
3984
|
onClick: t[0] || (t[0] = (...i) => s.handleClose && s.handleClose(...i))
|
|
3985
|
-
},
|
|
3985
|
+
}, Ou)
|
|
3986
3986
|
])
|
|
3987
3987
|
]);
|
|
3988
3988
|
}
|
|
3989
|
-
const
|
|
3989
|
+
const Cu = /* @__PURE__ */ lt(_u, [["render", Tu], ["__scopeId", "data-v-47199182"], ["__file", "/Users/yinheng/Desktop/code/xiaochengxu/liusenlin_project/Translation_Video/src/components/Login.vue"]]);
|
|
3990
3990
|
/*!
|
|
3991
3991
|
* pinia v2.1.4
|
|
3992
3992
|
* (c) 2023 Eduardo San Martin Morote
|
|
3993
3993
|
* @license MIT
|
|
3994
3994
|
*/
|
|
3995
|
-
let
|
|
3996
|
-
const _t = (e) =>
|
|
3995
|
+
let Ke;
|
|
3996
|
+
const _t = (e) => Ke = e, Nu = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
3997
3997
|
/* istanbul ignore next */
|
|
3998
3998
|
Symbol()
|
|
3999
3999
|
);
|
|
4000
4000
|
function Te(e) {
|
|
4001
4001
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
4002
4002
|
}
|
|
4003
|
-
var
|
|
4003
|
+
var Xe;
|
|
4004
4004
|
(function(e) {
|
|
4005
4005
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
4006
|
-
})(
|
|
4007
|
-
const
|
|
4008
|
-
function
|
|
4006
|
+
})(Xe || (Xe = {}));
|
|
4007
|
+
const An = typeof window < "u", Yt = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && An;
|
|
4008
|
+
function Eo(e, t) {
|
|
4009
4009
|
for (const n in t) {
|
|
4010
4010
|
const r = t[n];
|
|
4011
4011
|
if (!(n in e))
|
|
4012
4012
|
continue;
|
|
4013
4013
|
const o = e[n];
|
|
4014
|
-
Te(o) && Te(r) && !Se(r) && !mn(r) ? e[n] =
|
|
4014
|
+
Te(o) && Te(r) && !Se(r) && !mn(r) ? e[n] = Eo(o, r) : e[n] = r;
|
|
4015
4015
|
}
|
|
4016
4016
|
return e;
|
|
4017
4017
|
}
|
|
4018
|
-
const
|
|
4018
|
+
const So = () => {
|
|
4019
4019
|
};
|
|
4020
|
-
function ir(e, t, n, r =
|
|
4020
|
+
function ir(e, t, n, r = So) {
|
|
4021
4021
|
e.push(t);
|
|
4022
4022
|
const o = () => {
|
|
4023
4023
|
const s = e.indexOf(t);
|
|
@@ -4025,7 +4025,7 @@ function ir(e, t, n, r = Eo) {
|
|
|
4025
4025
|
};
|
|
4026
4026
|
return !n && Lo() && $o(o), o;
|
|
4027
4027
|
}
|
|
4028
|
-
function
|
|
4028
|
+
function Ae(e, ...t) {
|
|
4029
4029
|
e.slice().forEach((n) => {
|
|
4030
4030
|
n(...t);
|
|
4031
4031
|
});
|
|
@@ -4041,12 +4041,12 @@ function dn(e, t) {
|
|
|
4041
4041
|
}
|
|
4042
4042
|
return e;
|
|
4043
4043
|
}
|
|
4044
|
-
const
|
|
4044
|
+
const Au = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
4045
4045
|
/* istanbul ignore next */
|
|
4046
4046
|
Symbol()
|
|
4047
4047
|
);
|
|
4048
|
-
function
|
|
4049
|
-
return !Te(e) || !e.hasOwnProperty(
|
|
4048
|
+
function Lu(e) {
|
|
4049
|
+
return !Te(e) || !e.hasOwnProperty(Au);
|
|
4050
4050
|
}
|
|
4051
4051
|
const { assign: Z } = Object;
|
|
4052
4052
|
function lr(e) {
|
|
@@ -4061,7 +4061,7 @@ function ur(e, t, n, r) {
|
|
|
4061
4061
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
4062
4062
|
Xt(T(o ? o() : {}).value)
|
|
4063
4063
|
) : Xt(n.state.value[e]);
|
|
4064
|
-
return Z(c, s, Object.keys(a || {}).reduce((u, f) => (process.env.NODE_ENV !== "production" && f in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), u[f] =
|
|
4064
|
+
return Z(c, s, Object.keys(a || {}).reduce((u, f) => (process.env.NODE_ENV !== "production" && f in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), u[f] = Je(x(() => {
|
|
4065
4065
|
_t(n);
|
|
4066
4066
|
const m = n._s.get(e);
|
|
4067
4067
|
return a[f].call(m, m);
|
|
@@ -4089,19 +4089,19 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4089
4089
|
function S(P) {
|
|
4090
4090
|
let w;
|
|
4091
4091
|
l = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof P == "function" ? (P(r.state.value[e]), w = {
|
|
4092
|
-
type:
|
|
4092
|
+
type: Xe.patchFunction,
|
|
4093
4093
|
storeId: e,
|
|
4094
4094
|
events: m
|
|
4095
4095
|
}) : (dn(r.state.value[e], P), w = {
|
|
4096
|
-
type:
|
|
4096
|
+
type: Xe.patchObject,
|
|
4097
4097
|
payload: P,
|
|
4098
4098
|
storeId: e,
|
|
4099
4099
|
events: m
|
|
4100
4100
|
});
|
|
4101
4101
|
const D = y = Symbol();
|
|
4102
|
-
|
|
4102
|
+
Ze().then(() => {
|
|
4103
4103
|
y === D && (l = !0);
|
|
4104
|
-
}), c = !0,
|
|
4104
|
+
}), c = !0, Ae(u, w, r.state.value[e]);
|
|
4105
4105
|
}
|
|
4106
4106
|
const N = s ? function() {
|
|
4107
4107
|
const { state: w } = n, D = w ? w() : {};
|
|
@@ -4112,12 +4112,12 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4112
4112
|
/* istanbul ignore next */
|
|
4113
4113
|
process.env.NODE_ENV !== "production" ? () => {
|
|
4114
4114
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
4115
|
-
} :
|
|
4115
|
+
} : So
|
|
4116
4116
|
);
|
|
4117
4117
|
function C() {
|
|
4118
4118
|
a.stop(), u = [], f = [], r._s.delete(e);
|
|
4119
4119
|
}
|
|
4120
|
-
function
|
|
4120
|
+
function k(P, w) {
|
|
4121
4121
|
return function() {
|
|
4122
4122
|
_t(r);
|
|
4123
4123
|
const D = Array.from(arguments), I = [], ge = [];
|
|
@@ -4127,7 +4127,7 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4127
4127
|
function Dt(R) {
|
|
4128
4128
|
ge.push(R);
|
|
4129
4129
|
}
|
|
4130
|
-
|
|
4130
|
+
Ae(f, {
|
|
4131
4131
|
args: D,
|
|
4132
4132
|
name: P,
|
|
4133
4133
|
store: b,
|
|
@@ -4138,12 +4138,12 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4138
4138
|
try {
|
|
4139
4139
|
F = w.apply(this && this.$id === e ? this : b, D);
|
|
4140
4140
|
} catch (R) {
|
|
4141
|
-
throw
|
|
4141
|
+
throw Ae(ge, R), R;
|
|
4142
4142
|
}
|
|
4143
|
-
return F instanceof Promise ? F.then((R) => (
|
|
4143
|
+
return F instanceof Promise ? F.then((R) => (Ae(I, R), R)).catch((R) => (Ae(ge, R), Promise.reject(R))) : (Ae(I, F), F);
|
|
4144
4144
|
};
|
|
4145
4145
|
}
|
|
4146
|
-
const E = /* @__PURE__ */
|
|
4146
|
+
const E = /* @__PURE__ */ Je({
|
|
4147
4147
|
actions: {},
|
|
4148
4148
|
getters: {},
|
|
4149
4149
|
state: [],
|
|
@@ -4156,10 +4156,10 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4156
4156
|
$patch: S,
|
|
4157
4157
|
$reset: N,
|
|
4158
4158
|
$subscribe(P, w = {}) {
|
|
4159
|
-
const D = ir(u, P, w.detached, () => I()), I = a.run(() =>
|
|
4159
|
+
const D = ir(u, P, w.detached, () => I()), I = a.run(() => nt(() => r.state.value[e], (ge) => {
|
|
4160
4160
|
(w.flush === "sync" ? c : l) && P({
|
|
4161
4161
|
storeId: e,
|
|
4162
|
-
type:
|
|
4162
|
+
type: Xe.direct,
|
|
4163
4163
|
events: m
|
|
4164
4164
|
}, ge);
|
|
4165
4165
|
}, Z({}, d, w)));
|
|
@@ -4169,7 +4169,7 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4169
4169
|
}, b = hn(process.env.NODE_ENV !== "production" || Yt ? Z(
|
|
4170
4170
|
{
|
|
4171
4171
|
_hmrPayload: E,
|
|
4172
|
-
_customProperties:
|
|
4172
|
+
_customProperties: Je(/* @__PURE__ */ new Set())
|
|
4173
4173
|
// devtools custom properties
|
|
4174
4174
|
},
|
|
4175
4175
|
O
|
|
@@ -4177,22 +4177,22 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4177
4177
|
// setupStore
|
|
4178
4178
|
) : O);
|
|
4179
4179
|
r._s.set(e, b);
|
|
4180
|
-
const V = r._a && r._a.runWithContext || ku, W = r._e.run(() => (a =
|
|
4180
|
+
const V = r._a && r._a.runWithContext || ku, W = r._e.run(() => (a = ko(), V(() => a.run(t))));
|
|
4181
4181
|
for (const P in W) {
|
|
4182
4182
|
const w = W[P];
|
|
4183
4183
|
if (Se(w) && !lr(w) || mn(w))
|
|
4184
|
-
process.env.NODE_ENV !== "production" && o ? ct(p.value, P, Bt(W, P)) : s || (v &&
|
|
4184
|
+
process.env.NODE_ENV !== "production" && o ? ct(p.value, P, Bt(W, P)) : s || (v && Lu(w) && (Se(w) ? w.value = v[P] : dn(w, v[P])), r.state.value[e][P] = w), process.env.NODE_ENV !== "production" && E.state.push(P);
|
|
4185
4185
|
else if (typeof w == "function") {
|
|
4186
|
-
const D = process.env.NODE_ENV !== "production" && o ? w :
|
|
4186
|
+
const D = process.env.NODE_ENV !== "production" && o ? w : k(P, w);
|
|
4187
4187
|
W[P] = D, process.env.NODE_ENV !== "production" && (E.actions[P] = w), i.actions[P] = w;
|
|
4188
4188
|
} else
|
|
4189
4189
|
process.env.NODE_ENV !== "production" && lr(w) && (E.getters[P] = s ? (
|
|
4190
4190
|
// @ts-expect-error
|
|
4191
4191
|
n.getters[P]
|
|
4192
|
-
) : w,
|
|
4193
|
-
(W._getters =
|
|
4192
|
+
) : w, An && (W._getters || // @ts-expect-error: same
|
|
4193
|
+
(W._getters = Je([]))).push(P));
|
|
4194
4194
|
}
|
|
4195
|
-
if (Z(b, W), Z(
|
|
4195
|
+
if (Z(b, W), Z(Ao(b), W), Object.defineProperty(b, "$state", {
|
|
4196
4196
|
get: () => process.env.NODE_ENV !== "production" && o ? p.value : r.state.value[e],
|
|
4197
4197
|
set: (P) => {
|
|
4198
4198
|
if (process.env.NODE_ENV !== "production" && o)
|
|
@@ -4201,21 +4201,21 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4201
4201
|
Z(w, P);
|
|
4202
4202
|
});
|
|
4203
4203
|
}
|
|
4204
|
-
}), process.env.NODE_ENV !== "production" && (b._hotUpdate =
|
|
4204
|
+
}), process.env.NODE_ENV !== "production" && (b._hotUpdate = Je((P) => {
|
|
4205
4205
|
b._hotUpdating = !0, P._hmrPayload.state.forEach((w) => {
|
|
4206
4206
|
if (w in b.$state) {
|
|
4207
4207
|
const D = P.$state[w], I = b.$state[w];
|
|
4208
|
-
typeof D == "object" && Te(D) && Te(I) ?
|
|
4208
|
+
typeof D == "object" && Te(D) && Te(I) ? Eo(D, I) : P.$state[w] = I;
|
|
4209
4209
|
}
|
|
4210
4210
|
ct(b, w, Bt(P.$state, w));
|
|
4211
4211
|
}), Object.keys(b.$state).forEach((w) => {
|
|
4212
4212
|
w in P.$state || Gt(b, w);
|
|
4213
|
-
}), l = !1, c = !1, r.state.value[e] = Bt(P._hmrPayload, "hotState"), c = !0,
|
|
4213
|
+
}), l = !1, c = !1, r.state.value[e] = Bt(P._hmrPayload, "hotState"), c = !0, Ze().then(() => {
|
|
4214
4214
|
l = !0;
|
|
4215
4215
|
});
|
|
4216
4216
|
for (const w in P._hmrPayload.actions) {
|
|
4217
4217
|
const D = P[w];
|
|
4218
|
-
ct(b, w,
|
|
4218
|
+
ct(b, w, k(w, D));
|
|
4219
4219
|
}
|
|
4220
4220
|
for (const w in P._hmrPayload.getters) {
|
|
4221
4221
|
const D = P._hmrPayload.getters[w], I = s ? (
|
|
@@ -4260,7 +4260,7 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4260
4260
|
state: () => new MyClass()
|
|
4261
4261
|
Found in store "${b.$id}".`), v && s && n.hydrate && n.hydrate(b.$state, v), l = !0, c = !0, b;
|
|
4262
4262
|
}
|
|
4263
|
-
function
|
|
4263
|
+
function $u(e, t, n) {
|
|
4264
4264
|
let r, o;
|
|
4265
4265
|
const s = typeof t == "function";
|
|
4266
4266
|
if (typeof e == "string")
|
|
@@ -4271,18 +4271,18 @@ function Fu(e, t, n) {
|
|
|
4271
4271
|
const l = No();
|
|
4272
4272
|
if (i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
4273
4273
|
// pinia instance with getActivePinia()
|
|
4274
|
-
(process.env.NODE_ENV === "test" &&
|
|
4274
|
+
(process.env.NODE_ENV === "test" && Ke && Ke._testing ? null : i) || (l ? H(Nu, null) : null), i && _t(i), process.env.NODE_ENV !== "production" && !Ke)
|
|
4275
4275
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
|
|
4276
4276
|
const pinia = createPinia()
|
|
4277
4277
|
app.use(pinia)
|
|
4278
4278
|
This will fail in production.`);
|
|
4279
|
-
i =
|
|
4279
|
+
i = Ke, i._s.has(r) || (s ? fn(r, t, o, i) : ur(r, o, i), process.env.NODE_ENV !== "production" && (a._pinia = i));
|
|
4280
4280
|
const c = i._s.get(r);
|
|
4281
4281
|
if (process.env.NODE_ENV !== "production" && d) {
|
|
4282
4282
|
const u = "__hot:" + r, f = s ? fn(u, t, o, i, !0) : ur(u, Z({}, o), i, !0);
|
|
4283
4283
|
d._hotUpdate(f), delete i.state.value[u], i._s.delete(u);
|
|
4284
4284
|
}
|
|
4285
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
4285
|
+
if (process.env.NODE_ENV !== "production" && An) {
|
|
4286
4286
|
const u = pn();
|
|
4287
4287
|
if (u && u.proxy && // avoid adding stores that are just built for hot module replacement
|
|
4288
4288
|
!d) {
|
|
@@ -4294,14 +4294,14 @@ This will fail in production.`);
|
|
|
4294
4294
|
}
|
|
4295
4295
|
return a.$id = r, a;
|
|
4296
4296
|
}
|
|
4297
|
-
function
|
|
4297
|
+
function Fu(e, t) {
|
|
4298
4298
|
return Array.isArray(t) ? t.reduce((n, r) => (n[r] = function(...o) {
|
|
4299
4299
|
return e(this.$pinia)[r](...o);
|
|
4300
4300
|
}, n), {}) : Object.keys(t).reduce((n, r) => (n[r] = function(...o) {
|
|
4301
4301
|
return e(this.$pinia)[t[r]](...o);
|
|
4302
4302
|
}, n), {});
|
|
4303
4303
|
}
|
|
4304
|
-
const
|
|
4304
|
+
const Ru = $u("user", {
|
|
4305
4305
|
state: () => ({
|
|
4306
4306
|
user: null,
|
|
4307
4307
|
isShowLogin: !1,
|
|
@@ -4328,7 +4328,7 @@ const Du = Fu("user", {
|
|
|
4328
4328
|
this.user = null, window.userStatus = null;
|
|
4329
4329
|
},
|
|
4330
4330
|
updateUser(e = !1, t, n = !1) {
|
|
4331
|
-
const r =
|
|
4331
|
+
const r = Le.service({
|
|
4332
4332
|
text: "Upgrading....",
|
|
4333
4333
|
background: "rgba(0, 0, 0, 0.7)"
|
|
4334
4334
|
});
|
|
@@ -4366,25 +4366,25 @@ const Du = Fu("user", {
|
|
|
4366
4366
|
}
|
|
4367
4367
|
}
|
|
4368
4368
|
});
|
|
4369
|
-
let
|
|
4370
|
-
console.log("childPath3",
|
|
4371
|
-
const
|
|
4369
|
+
let xo = At();
|
|
4370
|
+
console.log("childPath3", xo);
|
|
4371
|
+
const Du = {
|
|
4372
4372
|
props: ["user", "from"],
|
|
4373
4373
|
data() {
|
|
4374
4374
|
return {
|
|
4375
|
-
path:
|
|
4375
|
+
path: xo
|
|
4376
4376
|
};
|
|
4377
4377
|
},
|
|
4378
4378
|
methods: {
|
|
4379
|
-
...Ru
|
|
4379
|
+
...Fu(Ru, ["logout"]),
|
|
4380
4380
|
handlePay() {
|
|
4381
4381
|
console.log("user", this.user), this.user.is_subscribed || this.$emit("subscribe");
|
|
4382
4382
|
}
|
|
4383
4383
|
}
|
|
4384
|
-
},
|
|
4384
|
+
}, Me = (e) => (rt("data-v-8580ad75"), e = e(), ot(), e), ju = { class: "user-center-content" }, Iu = { class: "user-info flew-row-v-center" }, Bu = ["src"], Mu = {
|
|
4385
4385
|
class: "user-name",
|
|
4386
4386
|
style: { color: "#000" }
|
|
4387
|
-
},
|
|
4387
|
+
}, Uu = { class: "user-email" }, Hu = { class: "flew-row-v-center" }, Vu = {
|
|
4388
4388
|
key: 0,
|
|
4389
4389
|
t: "1637834706702",
|
|
4390
4390
|
class: "user-item-icon",
|
|
@@ -4394,7 +4394,7 @@ const ju = {
|
|
|
4394
4394
|
"p-id": "10206",
|
|
4395
4395
|
width: "32",
|
|
4396
4396
|
height: "32"
|
|
4397
|
-
},
|
|
4397
|
+
}, zu = /* @__PURE__ */ Me(() => /* @__PURE__ */ g(
|
|
4398
4398
|
"path",
|
|
4399
4399
|
{
|
|
4400
4400
|
d: "M319.786667 74.666667h384.490666A85.333333 85.333333 0 0 1 772.266667 108.458667l207.594666 273.834666a85.333333 85.333333 0 0 1-6.592 110.805334L573.866667 907.136a85.333333 85.333333 0 0 1-122.688 0.149333L50.88 494.144a85.333333 85.333333 0 0 1-6.805333-110.826667L251.733333 108.544A85.333333 85.333333 0 0 1 319.786667 74.666667z",
|
|
@@ -4406,7 +4406,7 @@ const ju = {
|
|
|
4406
4406
|
null,
|
|
4407
4407
|
-1
|
|
4408
4408
|
/* HOISTED */
|
|
4409
|
-
)),
|
|
4409
|
+
)), qu = /* @__PURE__ */ Me(() => /* @__PURE__ */ g(
|
|
4410
4410
|
"path",
|
|
4411
4411
|
{
|
|
4412
4412
|
d: "M685.482667 350.72a32 32 0 0 1 47.445333 42.816l-2.197333 2.432-196.096 196.096a32 32 0 0 1-42.837334 2.197333l-2.432-2.197333-196.096-196.096a32 32 0 0 1 42.816-47.466667l2.432 2.197334L512 524.181333l173.482667-173.482666z",
|
|
@@ -4416,10 +4416,10 @@ const ju = {
|
|
|
4416
4416
|
null,
|
|
4417
4417
|
-1
|
|
4418
4418
|
/* HOISTED */
|
|
4419
|
-
)),
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
],
|
|
4419
|
+
)), Gu = [
|
|
4420
|
+
zu,
|
|
4421
|
+
qu
|
|
4422
|
+
], Wu = {
|
|
4423
4423
|
key: 1,
|
|
4424
4424
|
t: "1637055277290",
|
|
4425
4425
|
class: "user-item-icon",
|
|
@@ -4429,7 +4429,7 @@ const ju = {
|
|
|
4429
4429
|
"p-id": "8080",
|
|
4430
4430
|
width: "32",
|
|
4431
4431
|
height: "32"
|
|
4432
|
-
},
|
|
4432
|
+
}, Ju = /* @__PURE__ */ Me(() => /* @__PURE__ */ g(
|
|
4433
4433
|
"path",
|
|
4434
4434
|
{
|
|
4435
4435
|
d: "M957.942003 407.418107c4.937452-6.197142 4.954849-15.143908-0.297782-21.406542L718.393185 100.883665c-1.357927-1.623987-2.981914-2.916423-4.738931-3.89368-2.765997-5.600555-8.532327-9.42772-15.193027-9.42772L326.247924 87.562265c-6.329149 0-11.978822 3.612271-14.877849 8.930393-2.15406 0.994654-4.142343 2.469238-5.733585 4.391007L66.386478 386.011564c-3.048429 3.628644-4.340865 8.16803-3.90903 12.541641-0.464581 4.391007 0.794086 8.964162 3.859911 12.625552L501.444085 929.709497c5.997598 7.175423 16.634866 8.037047 23.825638 2.02103 3.13234-2.650363 5.086855-6.145977 5.799076-9.841136 0.38067-0.379647 0.762363-0.777713 1.110287-1.209548L953.899944 418.089144C956.533934 414.956803 957.859116 411.17978 957.942003 407.418107zM520.830621 727.291344 754.099409 449.304076c8.963139-10.686387 25.00244-12.06171 35.754319-3.032056 10.852162 9.096169 12.211113 25.035186 3.230578 35.755342L542.071388 781.172509c-5.418406 6.445806-13.387915 9.509585-21.240767 8.930393-7.837502 0.579191-15.807011-2.484587-21.224394-8.930393L248.57489 482.027361c-8.979512-10.720156-7.605212-26.659173 3.247974-35.755342 10.769274-9.029654 26.774807-7.65433 35.754319 3.032056L520.830621 727.291344z",
|
|
@@ -4439,20 +4439,46 @@ const ju = {
|
|
|
4439
4439
|
null,
|
|
4440
4440
|
-1
|
|
4441
4441
|
/* HOISTED */
|
|
4442
|
-
)),
|
|
4443
|
-
|
|
4444
|
-
],
|
|
4442
|
+
)), Ku = [
|
|
4443
|
+
Ju
|
|
4444
|
+
], Yu = {
|
|
4445
4445
|
key: 0,
|
|
4446
4446
|
class: "user-upgrade"
|
|
4447
|
-
},
|
|
4447
|
+
}, Xu = /* @__PURE__ */ Me(() => /* @__PURE__ */ g(
|
|
4448
4448
|
"span",
|
|
4449
4449
|
null,
|
|
4450
4450
|
"Upgrade",
|
|
4451
4451
|
-1
|
|
4452
4452
|
/* HOISTED */
|
|
4453
|
-
)),
|
|
4454
|
-
|
|
4455
|
-
],
|
|
4453
|
+
)), Zu = [
|
|
4454
|
+
Xu
|
|
4455
|
+
], Qu = ["href"], ec = /* @__PURE__ */ Me(() => /* @__PURE__ */ g(
|
|
4456
|
+
"div",
|
|
4457
|
+
{ class: "user-item user-item-active flew-row-v-center" },
|
|
4458
|
+
[
|
|
4459
|
+
/* @__PURE__ */ g("svg", {
|
|
4460
|
+
t: "1661398041322",
|
|
4461
|
+
class: "user-item-icon dashboard-icon",
|
|
4462
|
+
viewBox: "0 0 1024 1024",
|
|
4463
|
+
version: "1.1",
|
|
4464
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4465
|
+
"p-id": "6706",
|
|
4466
|
+
width: "32",
|
|
4467
|
+
height: "32"
|
|
4468
|
+
}, [
|
|
4469
|
+
/* @__PURE__ */ g("path", {
|
|
4470
|
+
d: "M763.733333 554.666667H725.333333v-85.333334h38.4c-17.066667-106.666667-102.4-192-209.066666-209.066666V298.666667h-85.333334v-38.4c-106.666667 17.066667-192 102.4-209.066666 209.066666H298.666667v85.333334h-38.4c17.066667 106.666667 102.4 192 209.066666 209.066666V725.333333h85.333334v38.4c106.666667-17.066667 192-102.4 209.066666-209.066666zM512 853.333333c-187.733333 0-341.333333-153.6-341.333333-341.333333s153.6-341.333333 341.333333-341.333333 341.333333 153.6 341.333333 341.333333-153.6 341.333333-341.333333 341.333333z m132.266667-477.866666l-106.666667 196.266666-89.6-89.6 196.266667-106.666666z m-324.266667-25.6l29.866667-29.866667 29.866666 29.866667-29.866666 29.866666-29.866667-29.866666z m320 320l29.866667-29.866667 29.866666 29.866667-29.866666 29.866666-29.866667-29.866666z m29.866667-349.866667l29.866666 29.866667-29.866666 29.866666-29.866667-29.866666 29.866667-29.866667zM349.866667 640l29.866666 29.866667-29.866666 29.866666-29.866667-29.866666 29.866667-29.866667z",
|
|
4471
|
+
fill: "#969696",
|
|
4472
|
+
"p-id": "6707"
|
|
4473
|
+
})
|
|
4474
|
+
]),
|
|
4475
|
+
/* @__PURE__ */ g("span", null, "Dashboard")
|
|
4476
|
+
],
|
|
4477
|
+
-1
|
|
4478
|
+
/* HOISTED */
|
|
4479
|
+
)), tc = [
|
|
4480
|
+
ec
|
|
4481
|
+
], nc = ["href"], rc = /* @__PURE__ */ Me(() => /* @__PURE__ */ g(
|
|
4456
4482
|
"div",
|
|
4457
4483
|
{ class: "user-item user-item-active flew-row-v-center" },
|
|
4458
4484
|
[
|
|
@@ -4481,19 +4507,19 @@ const ju = {
|
|
|
4481
4507
|
],
|
|
4482
4508
|
-1
|
|
4483
4509
|
/* HOISTED */
|
|
4484
|
-
)),
|
|
4485
|
-
|
|
4510
|
+
)), oc = [
|
|
4511
|
+
rc
|
|
4486
4512
|
];
|
|
4487
|
-
function
|
|
4488
|
-
return
|
|
4489
|
-
g("div",
|
|
4513
|
+
function sc(e, t, n, r, o, s) {
|
|
4514
|
+
return A(), L("div", ju, [
|
|
4515
|
+
g("div", Iu, [
|
|
4490
4516
|
g("img", {
|
|
4491
4517
|
class: "user-avatar",
|
|
4492
4518
|
src: n.user.avatar || "https://statics.imgkits.com/images/default_user_avatar_black.png",
|
|
4493
4519
|
alt: "user avatar"
|
|
4494
|
-
}, null, 8,
|
|
4520
|
+
}, null, 8, Bu),
|
|
4495
4521
|
g("div", null, [
|
|
4496
|
-
g("div",
|
|
4522
|
+
g("div", Mu, [
|
|
4497
4523
|
g(
|
|
4498
4524
|
"span",
|
|
4499
4525
|
null,
|
|
@@ -4502,7 +4528,7 @@ function rc(e, t, n, r, o, s) {
|
|
|
4502
4528
|
/* TEXT */
|
|
4503
4529
|
)
|
|
4504
4530
|
]),
|
|
4505
|
-
g("div",
|
|
4531
|
+
g("div", Uu, [
|
|
4506
4532
|
g(
|
|
4507
4533
|
"span",
|
|
4508
4534
|
null,
|
|
@@ -4524,8 +4550,8 @@ function rc(e, t, n, r, o, s) {
|
|
|
4524
4550
|
class: "user-item flew-row-v-center space-between",
|
|
4525
4551
|
onClick: t[0] || (t[0] = (...a) => s.handlePay && s.handlePay(...a))
|
|
4526
4552
|
}, [
|
|
4527
|
-
g("div",
|
|
4528
|
-
n.user.is_subscribed ? (
|
|
4553
|
+
g("div", Hu, [
|
|
4554
|
+
n.user.is_subscribed ? (A(), L("svg", Vu, Gu)) : (A(), L("svg", Wu, Ku)),
|
|
4529
4555
|
g(
|
|
4530
4556
|
"span",
|
|
4531
4557
|
null,
|
|
@@ -4534,19 +4560,24 @@ function rc(e, t, n, r, o, s) {
|
|
|
4534
4560
|
/* TEXT */
|
|
4535
4561
|
)
|
|
4536
4562
|
]),
|
|
4537
|
-
!n.user.is_subscribed && n.from == "addon" ? (
|
|
4563
|
+
!n.user.is_subscribed && n.from == "addon" ? (A(), L("div", Yu, Zu)) : B("v-if", !0)
|
|
4538
4564
|
]),
|
|
4539
|
-
n.from != "addon" ? (
|
|
4565
|
+
n.from != "addon" ? (A(), L("a", {
|
|
4540
4566
|
key: 0,
|
|
4567
|
+
href: o.path + "/dashboard",
|
|
4568
|
+
target: "_blank"
|
|
4569
|
+
}, tc, 8, Qu)) : B("v-if", !0),
|
|
4570
|
+
n.from != "addon" ? (A(), L("a", {
|
|
4571
|
+
key: 1,
|
|
4541
4572
|
rel: "nofollow",
|
|
4542
4573
|
href: o.path + "/user/logout"
|
|
4543
|
-
},
|
|
4574
|
+
}, oc, 8, nc)) : B("v-if", !0)
|
|
4544
4575
|
]);
|
|
4545
4576
|
}
|
|
4546
|
-
const cr = /* @__PURE__ */
|
|
4547
|
-
const
|
|
4577
|
+
const cr = /* @__PURE__ */ lt(Du, [["render", sc], ["__scopeId", "data-v-8580ad75"], ["__file", "/Users/yinheng/Desktop/code/xiaochengxu/liusenlin_project/Translation_Video/src/components/PersonalCenter.vue"]]);
|
|
4578
|
+
const ac = {
|
|
4548
4579
|
props: ["content", "top"]
|
|
4549
|
-
},
|
|
4580
|
+
}, ic = (e) => (rt("data-v-7b6def48"), e = e(), ot(), e), lc = /* @__PURE__ */ ic(() => /* @__PURE__ */ g(
|
|
4550
4581
|
"svg",
|
|
4551
4582
|
{
|
|
4552
4583
|
t: "1637907583780",
|
|
@@ -4567,15 +4598,15 @@ const oc = {
|
|
|
4567
4598
|
-1
|
|
4568
4599
|
/* HOISTED */
|
|
4569
4600
|
));
|
|
4570
|
-
function
|
|
4571
|
-
return
|
|
4601
|
+
function uc(e, t, n, r, o, s) {
|
|
4602
|
+
return A(), L(
|
|
4572
4603
|
"div",
|
|
4573
4604
|
{
|
|
4574
4605
|
class: "toast-wrapper",
|
|
4575
4606
|
style: Fo({ top: n.top || "60PX" })
|
|
4576
4607
|
},
|
|
4577
4608
|
[
|
|
4578
|
-
|
|
4609
|
+
lc,
|
|
4579
4610
|
g(
|
|
4580
4611
|
"span",
|
|
4581
4612
|
null,
|
|
@@ -4588,9 +4619,9 @@ function ic(e, t, n, r, o, s) {
|
|
|
4588
4619
|
/* STYLE */
|
|
4589
4620
|
);
|
|
4590
4621
|
}
|
|
4591
|
-
const
|
|
4592
|
-
function
|
|
4593
|
-
return
|
|
4622
|
+
const cc = /* @__PURE__ */ lt(ac, [["render", uc], ["__scopeId", "data-v-7b6def48"], ["__file", "/Users/yinheng/Desktop/code/xiaochengxu/liusenlin_project/Translation_Video/src/components/Toast.vue"]]);
|
|
4623
|
+
function dc(e, t) {
|
|
4624
|
+
return A(), L("svg", {
|
|
4594
4625
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4595
4626
|
viewBox: "0 0 20 20",
|
|
4596
4627
|
fill: "currentColor",
|
|
@@ -4603,69 +4634,69 @@ function uc(e, t) {
|
|
|
4603
4634
|
})
|
|
4604
4635
|
]);
|
|
4605
4636
|
}
|
|
4606
|
-
const Ne = (e) => (
|
|
4637
|
+
const Ne = (e) => (rt("data-v-c970699f"), e = e(), ot(), e), fc = {
|
|
4607
4638
|
class: "flex items-center justify-between py-6 lg:px-0 px-6",
|
|
4608
4639
|
"aria-label": "Global"
|
|
4609
|
-
},
|
|
4640
|
+
}, pc = { class: "flex lg:flex-1" }, hc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4610
4641
|
"span",
|
|
4611
4642
|
{ class: "hidden items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900" },
|
|
4612
4643
|
null,
|
|
4613
4644
|
-1
|
|
4614
4645
|
/* HOISTED */
|
|
4615
|
-
)),
|
|
4646
|
+
)), mc = ["href"], vc = ["src", "alt"], gc = { class: "pl-2 text-xl" }, yc = { class: "flex lg:hidden" }, bc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4616
4647
|
"span",
|
|
4617
4648
|
{ class: "sr-only" },
|
|
4618
4649
|
"Open main menu",
|
|
4619
4650
|
-1
|
|
4620
4651
|
/* HOISTED */
|
|
4621
|
-
)),
|
|
4652
|
+
)), wc = { class: "hidden lg:flex lg:gap-x-12" }, _c = { class: "navigation-item inline-flex items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900" }, Ec = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4622
4653
|
"span",
|
|
4623
4654
|
null,
|
|
4624
4655
|
"Apps",
|
|
4625
4656
|
-1
|
|
4626
4657
|
/* HOISTED */
|
|
4627
|
-
)),
|
|
4658
|
+
)), Sc = { class: "w-56 shrink rounded-xl bg-white p-4 text-sm font-semibold leading-6 text-gray-900 shadow-lg ring-1 ring-gray-900/5" }, xc = ["href"], Pc = ["href", "target"], Oc = {
|
|
4628
4659
|
key: 0,
|
|
4629
4660
|
class: "hidden lg:flex lg:flex-1 lg:justify-end"
|
|
4630
|
-
},
|
|
4661
|
+
}, Tc = {
|
|
4631
4662
|
key: 1,
|
|
4632
4663
|
class: "hidden lg:flex lg:flex-1 lg:justify-end"
|
|
4633
|
-
},
|
|
4664
|
+
}, Cc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4634
4665
|
"span",
|
|
4635
4666
|
{ "aria-hidden": "true" },
|
|
4636
4667
|
null,
|
|
4637
4668
|
-1
|
|
4638
4669
|
/* HOISTED */
|
|
4639
|
-
)),
|
|
4670
|
+
)), Nc = {
|
|
4640
4671
|
key: 2,
|
|
4641
4672
|
class: "hidden lg:flex lg:flex-1 lg:justify-end text-sm font-semibold leading-6 text-gray-900 items-center"
|
|
4642
|
-
},
|
|
4673
|
+
}, kc = { class: "pr-4" }, Ac = ["src"], Lc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4643
4674
|
"div",
|
|
4644
4675
|
{ class: "open-icon" },
|
|
4645
4676
|
null,
|
|
4646
4677
|
-1
|
|
4647
4678
|
/* HOISTED */
|
|
4648
|
-
)),
|
|
4679
|
+
)), $c = { class: "user-center-dialog shadow-xl" }, Fc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4649
4680
|
"div",
|
|
4650
4681
|
{ class: "fixed inset-0 z-50" },
|
|
4651
4682
|
null,
|
|
4652
4683
|
-1
|
|
4653
4684
|
/* HOISTED */
|
|
4654
|
-
)),
|
|
4685
|
+
)), Rc = { class: "flex items-center justify-between" }, Dc = ["href"], jc = { class: "sr-only" }, Ic = ["src", "alt"], Bc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4655
4686
|
"span",
|
|
4656
4687
|
{ class: "sr-only" },
|
|
4657
4688
|
"Close menu",
|
|
4658
4689
|
-1
|
|
4659
4690
|
/* HOISTED */
|
|
4660
|
-
)),
|
|
4691
|
+
)), Mc = { class: "mt-6 flow-root" }, Uc = { class: "-my-6 divide-y divide-gray-500/10" }, Hc = { class: "space-y-2 py-6" }, Vc = {
|
|
4661
4692
|
key: 0,
|
|
4662
4693
|
target: "_blank",
|
|
4663
4694
|
href: "https://www.livepolls.app/apps",
|
|
4664
4695
|
class: "-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
|
4665
|
-
},
|
|
4696
|
+
}, zc = ["href", "target"], qc = {
|
|
4666
4697
|
key: 0,
|
|
4667
4698
|
class: "py-6"
|
|
4668
|
-
},
|
|
4699
|
+
}, Gc = {
|
|
4669
4700
|
__name: "Header",
|
|
4670
4701
|
props: {
|
|
4671
4702
|
isShenHe: {
|
|
@@ -4698,7 +4729,7 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4698
4729
|
name: "Video Translator"
|
|
4699
4730
|
};
|
|
4700
4731
|
typeof app_config == "object" && app_config && Object.keys(app_config).length > 0 && (r = app_config), console.log("appInfo", r);
|
|
4701
|
-
const o = T(r), s =
|
|
4732
|
+
const o = T(r), s = At(), a = [
|
|
4702
4733
|
{ name: "Live Poll Maker for Slides", href: "https://workspace.google.com/marketplace/app/live_polls_maker/964324417500" },
|
|
4703
4734
|
{ name: "Geocode for Sheets", href: "https://workspace.google.com/marketplace/app/geocode_for_sheets/1083994590944" },
|
|
4704
4735
|
{ name: "Slides Translator", href: "https://workspace.google.com/marketplace/app/translate_slides_slides_translator/552662411825" },
|
|
@@ -4716,8 +4747,8 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4716
4747
|
}, f = T(!1);
|
|
4717
4748
|
K(() => {
|
|
4718
4749
|
n.userStore.getUser(n.driveQuery).then(
|
|
4719
|
-
({ profile:
|
|
4720
|
-
t("initUserCallback",
|
|
4750
|
+
({ profile: k }) => {
|
|
4751
|
+
t("initUserCallback", k), console.log("login", k), !k && n.from != "login" && !n.isShenHe && N();
|
|
4721
4752
|
},
|
|
4722
4753
|
() => {
|
|
4723
4754
|
}
|
|
@@ -4725,7 +4756,7 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4725
4756
|
});
|
|
4726
4757
|
async function m() {
|
|
4727
4758
|
v();
|
|
4728
|
-
const
|
|
4759
|
+
const k = Le.service({
|
|
4729
4760
|
text: "logining...",
|
|
4730
4761
|
background: "rgba(0, 0, 0, 0.7)"
|
|
4731
4762
|
});
|
|
@@ -4733,7 +4764,7 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4733
4764
|
await n.userStore.getUser(n.driveQuery), t("loginSuccess");
|
|
4734
4765
|
} catch {
|
|
4735
4766
|
} finally {
|
|
4736
|
-
|
|
4767
|
+
k.close();
|
|
4737
4768
|
}
|
|
4738
4769
|
}
|
|
4739
4770
|
function v() {
|
|
@@ -4748,14 +4779,14 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4748
4779
|
function S() {
|
|
4749
4780
|
l.value = !l.value;
|
|
4750
4781
|
}
|
|
4751
|
-
function N(
|
|
4782
|
+
function N(k) {
|
|
4752
4783
|
console.log("addGoogleAccountsScript:before"), typeof google < "u" && (google.accounts.id.initialize({
|
|
4753
4784
|
client_id: "704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",
|
|
4754
4785
|
callback: C
|
|
4755
4786
|
}), google.accounts.id.prompt());
|
|
4756
4787
|
}
|
|
4757
|
-
function C(
|
|
4758
|
-
!
|
|
4788
|
+
function C(k) {
|
|
4789
|
+
!k || !k.credential || Yr(k.credential).then(
|
|
4759
4790
|
(E) => {
|
|
4760
4791
|
console.log("fetch_success", E), n.userStore ? n.userStore.getUser(n.driveQuery) : location.href = location.pathname;
|
|
4761
4792
|
},
|
|
@@ -4764,7 +4795,7 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4764
4795
|
}
|
|
4765
4796
|
);
|
|
4766
4797
|
}
|
|
4767
|
-
return (
|
|
4798
|
+
return (k, E) => (A(), L(
|
|
4768
4799
|
ve,
|
|
4769
4800
|
null,
|
|
4770
4801
|
[
|
|
@@ -4774,9 +4805,9 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4774
4805
|
class: Ro(["absolute inset-x-0 px-1 top-0 z-30 mx-auto", [e.className]])
|
|
4775
4806
|
},
|
|
4776
4807
|
[
|
|
4777
|
-
g("nav",
|
|
4778
|
-
g("div",
|
|
4779
|
-
|
|
4808
|
+
g("nav", fc, [
|
|
4809
|
+
g("div", pc, [
|
|
4810
|
+
hc,
|
|
4780
4811
|
g("a", {
|
|
4781
4812
|
href: d.value,
|
|
4782
4813
|
class: "-m-1.5 p-1.5 flex items-center"
|
|
@@ -4785,40 +4816,40 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4785
4816
|
class: "h-8 w-auto",
|
|
4786
4817
|
src: o.value.logo,
|
|
4787
4818
|
alt: o.value.name
|
|
4788
|
-
}, null, 8,
|
|
4819
|
+
}, null, 8, vc),
|
|
4789
4820
|
g(
|
|
4790
4821
|
"span",
|
|
4791
|
-
|
|
4822
|
+
gc,
|
|
4792
4823
|
J(o.value.name),
|
|
4793
4824
|
1
|
|
4794
4825
|
/* TEXT */
|
|
4795
4826
|
)
|
|
4796
|
-
], 8,
|
|
4827
|
+
], 8, mc)
|
|
4797
4828
|
]),
|
|
4798
|
-
g("div",
|
|
4829
|
+
g("div", yc, [
|
|
4799
4830
|
g("button", {
|
|
4800
4831
|
type: "button",
|
|
4801
4832
|
class: "-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",
|
|
4802
4833
|
onClick: E[0] || (E[0] = (O) => f.value = !0)
|
|
4803
4834
|
}, [
|
|
4804
|
-
|
|
4835
|
+
bc,
|
|
4805
4836
|
ue(z(Jl), {
|
|
4806
4837
|
class: "h-6 w-6",
|
|
4807
4838
|
"aria-hidden": "true"
|
|
4808
4839
|
})
|
|
4809
4840
|
])
|
|
4810
4841
|
]),
|
|
4811
|
-
g("div",
|
|
4812
|
-
e.isShenHe ? B("v-if", !0) : (
|
|
4842
|
+
g("div", wc, [
|
|
4843
|
+
e.isShenHe ? B("v-if", !0) : (A(), Ue(z(wo), {
|
|
4813
4844
|
key: 0,
|
|
4814
4845
|
class: "relative"
|
|
4815
4846
|
}, {
|
|
4816
4847
|
default: be(() => [
|
|
4817
4848
|
ue(z(Gl), null, {
|
|
4818
4849
|
default: be(() => [
|
|
4819
|
-
g("div",
|
|
4820
|
-
|
|
4821
|
-
ue(z(
|
|
4850
|
+
g("div", _c, [
|
|
4851
|
+
Ec,
|
|
4852
|
+
ue(z(dc), {
|
|
4822
4853
|
class: "h-5 w-5",
|
|
4823
4854
|
"aria-hidden": "true"
|
|
4824
4855
|
})
|
|
@@ -4838,8 +4869,8 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4838
4869
|
default: be(() => [
|
|
4839
4870
|
ue(z(Wl), { class: "absolute left-1/2 z-10 mt-5 flex w-screen max-w-min -translate-x-1/2 px-4" }, {
|
|
4840
4871
|
default: be(() => [
|
|
4841
|
-
g("div",
|
|
4842
|
-
(
|
|
4872
|
+
g("div", Sc, [
|
|
4873
|
+
(A(), L(
|
|
4843
4874
|
ve,
|
|
4844
4875
|
null,
|
|
4845
4876
|
Mt(a, (O) => g("a", {
|
|
@@ -4847,7 +4878,7 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4847
4878
|
href: O.href,
|
|
4848
4879
|
class: "block p-2 hover:text-indigo-600",
|
|
4849
4880
|
target: "_blank"
|
|
4850
|
-
}, J(O.name), 9,
|
|
4881
|
+
}, J(O.name), 9, xc)),
|
|
4851
4882
|
64
|
|
4852
4883
|
/* STABLE_FRAGMENT */
|
|
4853
4884
|
))
|
|
@@ -4864,20 +4895,20 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4864
4895
|
_: 1
|
|
4865
4896
|
/* STABLE */
|
|
4866
4897
|
})),
|
|
4867
|
-
(
|
|
4898
|
+
(A(!0), L(
|
|
4868
4899
|
ve,
|
|
4869
4900
|
null,
|
|
4870
|
-
Mt(i.value, (O) => (
|
|
4901
|
+
Mt(i.value, (O) => (A(), L("a", {
|
|
4871
4902
|
key: O.name,
|
|
4872
4903
|
href: O.href,
|
|
4873
4904
|
target: O.target,
|
|
4874
4905
|
class: "navigation-item inline-flex items-center text-sm h-7 leading-7 font-semibold text-gray-900"
|
|
4875
|
-
}, J(O.name), 9,
|
|
4906
|
+
}, J(O.name), 9, Pc))),
|
|
4876
4907
|
128
|
|
4877
4908
|
/* KEYED_FRAGMENT */
|
|
4878
4909
|
))
|
|
4879
4910
|
]),
|
|
4880
|
-
e.isShenHe ? (
|
|
4911
|
+
e.isShenHe ? (A(), L("div", Oc)) : c.value ? (A(), L("div", Nc, [
|
|
4881
4912
|
g(
|
|
4882
4913
|
"div",
|
|
4883
4914
|
{
|
|
@@ -4886,7 +4917,7 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4886
4917
|
onMouseleave: y
|
|
4887
4918
|
},
|
|
4888
4919
|
[
|
|
4889
|
-
g("div",
|
|
4920
|
+
g("div", kc, [
|
|
4890
4921
|
g(
|
|
4891
4922
|
"span",
|
|
4892
4923
|
null,
|
|
@@ -4899,14 +4930,14 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4899
4930
|
class: "user-avatar h-10 rounded-full",
|
|
4900
4931
|
src: c.value.avatar || "https://statics.imgkits.com/images/default_user_avatar_black.png",
|
|
4901
4932
|
alt: "user avatar"
|
|
4902
|
-
}, null, 8,
|
|
4903
|
-
|
|
4904
|
-
|
|
4933
|
+
}, null, 8, Ac),
|
|
4934
|
+
Lc,
|
|
4935
|
+
Ye(g(
|
|
4905
4936
|
"div",
|
|
4906
4937
|
null,
|
|
4907
4938
|
[
|
|
4908
|
-
g("div",
|
|
4909
|
-
c.value ? (
|
|
4939
|
+
g("div", $c, [
|
|
4940
|
+
c.value ? (A(), Ue(cr, {
|
|
4910
4941
|
key: 0,
|
|
4911
4942
|
user: c.value
|
|
4912
4943
|
}, null, 8, ["user"])) : B("v-if", !0)
|
|
@@ -4921,14 +4952,14 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4921
4952
|
32
|
|
4922
4953
|
/* HYDRATE_EVENTS */
|
|
4923
4954
|
)
|
|
4924
|
-
])) : (
|
|
4955
|
+
])) : (A(), L("div", Tc, [
|
|
4925
4956
|
g("a", {
|
|
4926
4957
|
onClick: u,
|
|
4927
4958
|
href: "javscript:void(0)",
|
|
4928
4959
|
class: "text-sm leading-6 rounded-3xl bg-indigo-600 px-8 py-1.5 font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
|
|
4929
4960
|
}, [
|
|
4930
4961
|
pt("Log in"),
|
|
4931
|
-
|
|
4962
|
+
Cc
|
|
4932
4963
|
])
|
|
4933
4964
|
]))
|
|
4934
4965
|
]),
|
|
@@ -4939,17 +4970,17 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4939
4970
|
open: f.value
|
|
4940
4971
|
}, {
|
|
4941
4972
|
default: be(() => [
|
|
4942
|
-
|
|
4973
|
+
Fc,
|
|
4943
4974
|
ue(z(Vl), { class: "fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10" }, {
|
|
4944
4975
|
default: be(() => [
|
|
4945
|
-
g("div",
|
|
4976
|
+
g("div", Rc, [
|
|
4946
4977
|
g("a", {
|
|
4947
4978
|
href: d.value,
|
|
4948
4979
|
class: "-m-1.5 p-1.5"
|
|
4949
4980
|
}, [
|
|
4950
4981
|
g(
|
|
4951
4982
|
"span",
|
|
4952
|
-
|
|
4983
|
+
jc,
|
|
4953
4984
|
J(o.value.name),
|
|
4954
4985
|
1
|
|
4955
4986
|
/* TEXT */
|
|
@@ -4958,47 +4989,47 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4958
4989
|
class: "h-8 w-auto",
|
|
4959
4990
|
src: o.value.logo,
|
|
4960
4991
|
alt: o.value.name
|
|
4961
|
-
}, null, 8,
|
|
4962
|
-
], 8,
|
|
4992
|
+
}, null, 8, Ic)
|
|
4993
|
+
], 8, Dc),
|
|
4963
4994
|
g("button", {
|
|
4964
4995
|
type: "button",
|
|
4965
4996
|
class: "-m-2.5 rounded-md p-2.5 text-gray-700",
|
|
4966
4997
|
onClick: E[1] || (E[1] = (O) => f.value = !1)
|
|
4967
4998
|
}, [
|
|
4968
|
-
|
|
4999
|
+
Bc,
|
|
4969
5000
|
ue(z(Kl), {
|
|
4970
5001
|
class: "h-6 w-6",
|
|
4971
5002
|
"aria-hidden": "true"
|
|
4972
5003
|
})
|
|
4973
5004
|
])
|
|
4974
5005
|
]),
|
|
4975
|
-
g("div",
|
|
4976
|
-
g("div",
|
|
4977
|
-
g("div",
|
|
4978
|
-
e.isShenHe ? B("v-if", !0) : (
|
|
4979
|
-
(
|
|
5006
|
+
g("div", Mc, [
|
|
5007
|
+
g("div", Uc, [
|
|
5008
|
+
g("div", Hc, [
|
|
5009
|
+
e.isShenHe ? B("v-if", !0) : (A(), L("a", Vc, "More Extensions")),
|
|
5010
|
+
(A(!0), L(
|
|
4980
5011
|
ve,
|
|
4981
5012
|
null,
|
|
4982
|
-
Mt(i.value, (O) => (
|
|
5013
|
+
Mt(i.value, (O) => (A(), L("a", {
|
|
4983
5014
|
key: O.name,
|
|
4984
5015
|
href: O.href,
|
|
4985
5016
|
target: O.target,
|
|
4986
5017
|
class: "-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
|
4987
|
-
}, J(O.name), 9,
|
|
5018
|
+
}, J(O.name), 9, zc))),
|
|
4988
5019
|
128
|
|
4989
5020
|
/* KEYED_FRAGMENT */
|
|
4990
5021
|
))
|
|
4991
5022
|
]),
|
|
4992
|
-
c.value ? (
|
|
5023
|
+
c.value ? (A(), L("div", {
|
|
4993
5024
|
key: 1,
|
|
4994
5025
|
class: "relative sm-user-center-dialog py-6 right flew-center",
|
|
4995
5026
|
onClick: S
|
|
4996
5027
|
}, [
|
|
4997
|
-
c.value ? (
|
|
5028
|
+
c.value ? (A(), Ue(cr, {
|
|
4998
5029
|
key: 0,
|
|
4999
5030
|
user: c.value
|
|
5000
5031
|
}, null, 8, ["user"])) : B("v-if", !0)
|
|
5001
|
-
])) : (
|
|
5032
|
+
])) : (A(), L("div", qc, [
|
|
5002
5033
|
g("a", {
|
|
5003
5034
|
href: "#",
|
|
5004
5035
|
onClick: u,
|
|
@@ -5020,12 +5051,12 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
5020
5051
|
/* CLASS */
|
|
5021
5052
|
),
|
|
5022
5053
|
B(" 引入登录 "),
|
|
5023
|
-
e.userStore.isShowLogin ? (
|
|
5054
|
+
e.userStore.isShowLogin ? (A(), Ue(Cu, {
|
|
5024
5055
|
key: 0,
|
|
5025
5056
|
onSuccess: m,
|
|
5026
5057
|
onClose: v
|
|
5027
5058
|
})) : B("v-if", !0),
|
|
5028
|
-
e.userStore.isShowToast ? (
|
|
5059
|
+
e.userStore.isShowToast ? (A(), Ue(cc, {
|
|
5029
5060
|
key: 1,
|
|
5030
5061
|
content: e.userStore.toastContent
|
|
5031
5062
|
}, null, 8, ["content"])) : B("v-if", !0)
|
|
@@ -5034,11 +5065,11 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
5034
5065
|
/* STABLE_FRAGMENT */
|
|
5035
5066
|
));
|
|
5036
5067
|
}
|
|
5037
|
-
},
|
|
5068
|
+
}, Wc = /* @__PURE__ */ lt(Gc, [["__scopeId", "data-v-c970699f"], ["__file", "/Users/yinheng/Desktop/code/xiaochengxu/liusenlin_project/Translation_Video/src/components/Header.vue"]]), Kc = {
|
|
5038
5069
|
install(e) {
|
|
5039
|
-
e.component("my-header",
|
|
5070
|
+
e.component("my-header", Wc);
|
|
5040
5071
|
}
|
|
5041
5072
|
};
|
|
5042
5073
|
export {
|
|
5043
|
-
|
|
5074
|
+
Kc as default
|
|
5044
5075
|
};
|