my-header-yichong 2.1.0 → 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 +578 -542
- 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) {
|
|
@@ -304,54 +304,54 @@ function Pt(e, t, n) {
|
|
|
304
304
|
const r = n.metaTokens, o = n.visitor || c, s = n.dots, a = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && h.isSpecCompliantForm(t);
|
|
305
305
|
if (!h.isFunction(o))
|
|
306
306
|
throw new TypeError("visitor must be a function");
|
|
307
|
-
function l(
|
|
308
|
-
if (
|
|
307
|
+
function l(v) {
|
|
308
|
+
if (v === null)
|
|
309
309
|
return "";
|
|
310
|
-
if (h.isDate(
|
|
311
|
-
return
|
|
312
|
-
if (!d && h.isBlob(
|
|
313
|
-
throw new
|
|
314
|
-
return h.isArrayBuffer(
|
|
315
|
-
}
|
|
316
|
-
function c(
|
|
317
|
-
let S =
|
|
318
|
-
if (
|
|
310
|
+
if (h.isDate(v))
|
|
311
|
+
return v.toISOString();
|
|
312
|
+
if (!d && h.isBlob(v))
|
|
313
|
+
throw new $("Blob is not supported. Use a Buffer instead.");
|
|
314
|
+
return h.isArrayBuffer(v) || h.isTypedArray(v) ? d && typeof Blob == "function" ? new Blob([v]) : Buffer.from(v) : v;
|
|
315
|
+
}
|
|
316
|
+
function c(v, p, y) {
|
|
317
|
+
let S = v;
|
|
318
|
+
if (v && !y && typeof v == "object") {
|
|
319
319
|
if (h.endsWith(p, "{}"))
|
|
320
|
-
p = r ? p : p.slice(0, -2),
|
|
321
|
-
else if (h.isArray(
|
|
322
|
-
return p = xr(p), S.forEach(function(C,
|
|
320
|
+
p = r ? p : p.slice(0, -2), v = JSON.stringify(v);
|
|
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, 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;
|
|
329
329
|
}
|
|
330
|
-
return Qt(
|
|
330
|
+
return Qt(v) ? !0 : (t.append(Fn(y, p, s), l(v)), !1);
|
|
331
331
|
}
|
|
332
332
|
const u = [], f = Object.assign(ys, {
|
|
333
333
|
defaultVisitor: c,
|
|
334
334
|
convertValue: l,
|
|
335
335
|
isVisitable: Qt
|
|
336
336
|
});
|
|
337
|
-
function v
|
|
338
|
-
if (!h.isUndefined(
|
|
339
|
-
if (u.indexOf(
|
|
337
|
+
function m(v, p) {
|
|
338
|
+
if (!h.isUndefined(v)) {
|
|
339
|
+
if (u.indexOf(v) !== -1)
|
|
340
340
|
throw Error("Circular reference detected in " + p.join("."));
|
|
341
|
-
u.push(
|
|
341
|
+
u.push(v), h.forEach(v, function(S, N) {
|
|
342
342
|
(!(h.isUndefined(S) || S === null) && o.call(
|
|
343
343
|
t,
|
|
344
344
|
S,
|
|
345
345
|
h.isString(N) ? N.trim() : N,
|
|
346
346
|
p,
|
|
347
347
|
f
|
|
348
|
-
)) === !0 &&
|
|
348
|
+
)) === !0 && m(S, p ? p.concat(N) : [N]);
|
|
349
349
|
}), u.pop();
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
if (!h.isObject(e))
|
|
353
353
|
throw new TypeError("data must be an object");
|
|
354
|
-
return
|
|
354
|
+
return m(e), t;
|
|
355
355
|
}
|
|
356
356
|
function Rn(e) {
|
|
357
357
|
const t = {
|
|
@@ -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 ? (
|
|
@@ -875,8 +875,8 @@ function Vs(e, t) {
|
|
|
875
875
|
f += n[u++], u = u % e;
|
|
876
876
|
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), l - a < t)
|
|
877
877
|
return;
|
|
878
|
-
const
|
|
879
|
-
return
|
|
878
|
+
const m = c && l - c;
|
|
879
|
+
return m ? Math.round(f * 1e3 / m) : void 0;
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
882
|
function In(e, t) {
|
|
@@ -908,21 +908,21 @@ const zs = typeof XMLHttpRequest < "u", qs = zs && function(e) {
|
|
|
908
908
|
h.isFormData(o) && (ce.isStandardBrowserEnv || ce.isStandardBrowserWebWorkerEnv ? s.setContentType(!1) : s.setContentType("multipart/form-data;", !1));
|
|
909
909
|
let l = new XMLHttpRequest();
|
|
910
910
|
if (e.auth) {
|
|
911
|
-
const
|
|
912
|
-
s.set("Authorization", "Basic " + btoa(
|
|
911
|
+
const m = e.auth.username || "", v = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
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)
|
|
918
918
|
return;
|
|
919
|
-
const
|
|
919
|
+
const m = he.from(
|
|
920
920
|
"getAllResponseHeaders" in l && l.getAllResponseHeaders()
|
|
921
921
|
), p = {
|
|
922
922
|
data: !a || a === "text" || a === "json" ? l.responseText : l.response,
|
|
923
923
|
status: l.status,
|
|
924
924
|
statusText: l.statusText,
|
|
925
|
-
headers:
|
|
925
|
+
headers: m,
|
|
926
926
|
config: e,
|
|
927
927
|
request: l
|
|
928
928
|
};
|
|
@@ -935,30 +935,30 @@ 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
|
-
let
|
|
942
|
+
let v = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
943
943
|
const p = e.transitional || Tr;
|
|
944
|
-
e.timeoutErrorMessage && (
|
|
945
|
-
|
|
946
|
-
p.clarifyTimeoutError ?
|
|
944
|
+
e.timeoutErrorMessage && (v = e.timeoutErrorMessage), r(new $(
|
|
945
|
+
v,
|
|
946
|
+
p.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
|
|
947
947
|
e,
|
|
948
948
|
l
|
|
949
949
|
)), l = null;
|
|
950
950
|
}, ce.isStandardBrowserEnv) {
|
|
951
|
-
const
|
|
952
|
-
|
|
951
|
+
const m = (e.withCredentials || Us(c)) && e.xsrfCookieName && Is.read(e.xsrfCookieName);
|
|
952
|
+
m && s.set(e.xsrfHeaderName, m);
|
|
953
953
|
}
|
|
954
|
-
o === void 0 && s.setContentType(null), "setRequestHeader" in l && h.forEach(s.toJSON(), function(
|
|
955
|
-
l.setRequestHeader(p,
|
|
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 = (
|
|
957
|
-
l && (r(!
|
|
954
|
+
o === void 0 && s.setContentType(null), "setRequestHeader" in l && h.forEach(s.toJSON(), function(v, p) {
|
|
955
|
+
l.setRequestHeader(p, v);
|
|
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 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),
|
|
@@ -1164,8 +1164,8 @@ class yt {
|
|
|
1164
1164
|
s[n.method]
|
|
1165
1165
|
), a && h.forEach(
|
|
1166
1166
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1167
|
-
(
|
|
1168
|
-
delete s[
|
|
1167
|
+
(v) => {
|
|
1168
|
+
delete s[v];
|
|
1169
1169
|
}
|
|
1170
1170
|
), n.headers = he.concat(a, s);
|
|
1171
1171
|
const i = [];
|
|
@@ -1179,40 +1179,40 @@ class yt {
|
|
|
1179
1179
|
});
|
|
1180
1180
|
let c, u = 0, f;
|
|
1181
1181
|
if (!d) {
|
|
1182
|
-
const
|
|
1183
|
-
for (
|
|
1184
|
-
c = c.then(
|
|
1182
|
+
const v = [Bn.bind(this), void 0];
|
|
1183
|
+
for (v.unshift.apply(v, i), v.push.apply(v, l), f = v.length, c = Promise.resolve(n); u < f; )
|
|
1184
|
+
c = c.then(v[u++], v[u++]);
|
|
1185
1185
|
return c;
|
|
1186
1186
|
}
|
|
1187
1187
|
f = i.length;
|
|
1188
|
-
let
|
|
1188
|
+
let m = n;
|
|
1189
1189
|
for (u = 0; u < f; ) {
|
|
1190
|
-
const
|
|
1190
|
+
const v = i[u++], p = i[u++];
|
|
1191
1191
|
try {
|
|
1192
|
-
|
|
1192
|
+
m = v(m);
|
|
1193
1193
|
} catch (y) {
|
|
1194
1194
|
p.call(this, y);
|
|
1195
1195
|
break;
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
1198
|
try {
|
|
1199
|
-
c = Bn.call(this,
|
|
1200
|
-
} catch (
|
|
1201
|
-
return Promise.reject(
|
|
1199
|
+
c = Bn.call(this, m);
|
|
1200
|
+
} catch (v) {
|
|
1201
|
+
return Promise.reject(v);
|
|
1202
1202
|
}
|
|
1203
1203
|
for (u = 0, f = l.length; u < f; )
|
|
1204
1204
|
c = c.then(l[u++], l[u++]);
|
|
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 "";
|
|
@@ -1814,8 +1814,8 @@ const Mr = (e = "") => e.split(" ").filter((t) => !!t.trim()), Xn = (e, t) => {
|
|
|
1814
1814
|
validator: n || a ? (l) => {
|
|
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
|
-
const f = [...new Set(u)].map((
|
|
1818
|
-
|
|
1817
|
+
const f = [...new Set(u)].map((m) => JSON.stringify(m)).join(", ");
|
|
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) => {
|
|
@@ -2112,16 +2112,16 @@ function Xi(e) {
|
|
|
2112
2112
|
r.text = f;
|
|
2113
2113
|
}
|
|
2114
2114
|
function s() {
|
|
2115
|
-
const f = r.parent,
|
|
2115
|
+
const f = r.parent, m = u.ns;
|
|
2116
2116
|
if (!f.vLoadingAddClassList) {
|
|
2117
|
-
let
|
|
2118
|
-
|
|
2117
|
+
let v = f.getAttribute("loading-number");
|
|
2118
|
+
v = Number.parseInt(v) - 1, v ? f.setAttribute("loading-number", v.toString()) : (bt(f, m.bm("parent", "relative")), f.removeAttribute("loading-number")), bt(f, m.bm("parent", "hidden"));
|
|
2119
2119
|
}
|
|
2120
2120
|
a(), c.unmount();
|
|
2121
2121
|
}
|
|
2122
2122
|
function a() {
|
|
2123
|
-
var f,
|
|
2124
|
-
(
|
|
2123
|
+
var f, m;
|
|
2124
|
+
(m = (f = u.$el) == null ? void 0 : f.parentNode) == null || m.removeChild(u.$el);
|
|
2125
2125
|
}
|
|
2126
2126
|
function i() {
|
|
2127
2127
|
var f;
|
|
@@ -2135,10 +2135,10 @@ function Xi(e) {
|
|
|
2135
2135
|
}
|
|
2136
2136
|
const l = U({
|
|
2137
2137
|
name: "ElLoading",
|
|
2138
|
-
setup(f, { expose:
|
|
2139
|
-
const { ns:
|
|
2140
|
-
return
|
|
2141
|
-
ns:
|
|
2138
|
+
setup(f, { expose: m }) {
|
|
2139
|
+
const { ns: v, zIndex: p } = Ji("loading");
|
|
2140
|
+
return m({
|
|
2141
|
+
ns: v,
|
|
2142
2142
|
zIndex: p
|
|
2143
2143
|
}), () => {
|
|
2144
2144
|
const y = r.spinner || r.svg, S = j("svg", {
|
|
@@ -2153,31 +2153,31 @@ function Xi(e) {
|
|
|
2153
2153
|
r: "20",
|
|
2154
2154
|
fill: "none"
|
|
2155
2155
|
})
|
|
2156
|
-
]), N = r.text ? j("p", { class:
|
|
2156
|
+
]), N = r.text ? j("p", { class: v.b("text") }, [r.text]) : void 0;
|
|
2157
2157
|
return j(dr, {
|
|
2158
|
-
name:
|
|
2158
|
+
name: v.b("fade"),
|
|
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
|
},
|
|
2166
2166
|
class: [
|
|
2167
|
-
|
|
2167
|
+
v.b("mask"),
|
|
2168
2168
|
r.customClass,
|
|
2169
2169
|
r.fullscreen ? "is-fullscreen" : ""
|
|
2170
2170
|
]
|
|
2171
2171
|
}, [
|
|
2172
2172
|
j("div", {
|
|
2173
|
-
class:
|
|
2173
|
+
class: v.b("spinner")
|
|
2174
2174
|
}, [S, N])
|
|
2175
2175
|
]), [[fr, r.visible]])
|
|
2176
2176
|
])
|
|
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) => {
|
|
@@ -2245,8 +2245,8 @@ const rn = function(e = {}) {
|
|
|
2245
2245
|
}, on = Symbol("ElLoading"), er = (e, t) => {
|
|
2246
2246
|
var n, r, o, s;
|
|
2247
2247
|
const a = t.instance, i = (f) => Ct(t.value) ? t.value[f] : void 0, d = (f) => {
|
|
2248
|
-
const
|
|
2249
|
-
return
|
|
2248
|
+
const m = En(f) && (a == null ? void 0 : a[f]) || f;
|
|
2249
|
+
return m && T(m);
|
|
2250
2250
|
}, l = (f) => d(i(f) || e.getAttribute(`element-loading-${oa(f)}`)), c = (n = i("fullscreen")) != null ? n : t.modifiers.fullscreen, u = {
|
|
2251
2251
|
text: l("text"),
|
|
2252
2252
|
svg: l("svg"),
|
|
@@ -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,19 +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
|
|
2337
|
-
function nr() {
|
|
2338
|
-
const
|
|
2336
|
+
let Be = At();
|
|
2337
|
+
function nr(e = !1) {
|
|
2338
|
+
const t = {
|
|
2339
2339
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
2340
2340
|
};
|
|
2341
|
-
|
|
2342
|
-
|
|
2341
|
+
let n = Be + "/api/user/status";
|
|
2342
|
+
return e && (n += "?drive=1"), Ie({
|
|
2343
|
+
url: n,
|
|
2343
2344
|
method: "POST",
|
|
2344
|
-
headers:
|
|
2345
|
+
headers: t
|
|
2345
2346
|
});
|
|
2346
2347
|
}
|
|
2347
|
-
const nl = (e) =>
|
|
2348
|
-
url:
|
|
2348
|
+
const nl = (e) => Ie({
|
|
2349
|
+
url: Be + "/api/user/active-passport",
|
|
2349
2350
|
data: {
|
|
2350
2351
|
passport: e
|
|
2351
2352
|
},
|
|
@@ -2355,8 +2356,8 @@ const nl = (e) => je({
|
|
|
2355
2356
|
}
|
|
2356
2357
|
});
|
|
2357
2358
|
function rl(e) {
|
|
2358
|
-
return
|
|
2359
|
-
url:
|
|
2359
|
+
return Ie({
|
|
2360
|
+
url: Be + "/api/user/facebooklogin",
|
|
2360
2361
|
data: {
|
|
2361
2362
|
token: e
|
|
2362
2363
|
},
|
|
@@ -2367,8 +2368,8 @@ function rl(e) {
|
|
|
2367
2368
|
});
|
|
2368
2369
|
}
|
|
2369
2370
|
function Yr(e) {
|
|
2370
|
-
return
|
|
2371
|
-
url:
|
|
2371
|
+
return Ie({
|
|
2372
|
+
url: Be + "/api/user/google",
|
|
2372
2373
|
data: {
|
|
2373
2374
|
token: e
|
|
2374
2375
|
},
|
|
@@ -2379,8 +2380,8 @@ function Yr(e) {
|
|
|
2379
2380
|
});
|
|
2380
2381
|
}
|
|
2381
2382
|
function ol(e, t) {
|
|
2382
|
-
return
|
|
2383
|
-
url:
|
|
2383
|
+
return Ie({
|
|
2384
|
+
url: Be + "/api/user/emaillogin?email=" + encodeURIComponent(e) + "&password=" + encodeURIComponent(t)
|
|
2384
2385
|
// data: {
|
|
2385
2386
|
// email,
|
|
2386
2387
|
// password
|
|
@@ -2389,8 +2390,8 @@ function ol(e, t) {
|
|
|
2389
2390
|
});
|
|
2390
2391
|
}
|
|
2391
2392
|
function sl(e, t, n) {
|
|
2392
|
-
return
|
|
2393
|
-
url:
|
|
2393
|
+
return Ie({
|
|
2394
|
+
url: Be + "/api/user/emailsignup?email=" + encodeURIComponent(e) + "&username=" + encodeURIComponent(t) + "&password=" + encodeURIComponent(n)
|
|
2394
2395
|
// data: {
|
|
2395
2396
|
// email,
|
|
2396
2397
|
// username,
|
|
@@ -2428,8 +2429,8 @@ function Jt({ props: e, attrs: t, slots: n, slot: r, name: o }) {
|
|
|
2428
2429
|
let { as: i, ...d } = il(e, ["unmount", "static"]), l = (s = n.default) == null ? void 0 : s.call(n, r), c = {};
|
|
2429
2430
|
if (r) {
|
|
2430
2431
|
let u = !1, f = [];
|
|
2431
|
-
for (let [
|
|
2432
|
-
typeof
|
|
2432
|
+
for (let [m, v] of Object.entries(r))
|
|
2433
|
+
typeof v == "boolean" && (u = !0), v === !0 && f.push(m);
|
|
2433
2434
|
u && (c["data-headlessui-state"] = f.join(" "));
|
|
2434
2435
|
}
|
|
2435
2436
|
if (i === "template") {
|
|
@@ -2440,10 +2441,10 @@ function Jt({ props: e, attrs: t, slots: n, slot: r, name: o }) {
|
|
|
2440
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(`
|
|
2441
2442
|
`)].join(`
|
|
2442
2443
|
`));
|
|
2443
|
-
let
|
|
2444
|
-
for (let p in
|
|
2445
|
-
p.startsWith("on") && (
|
|
2446
|
-
return
|
|
2444
|
+
let m = Zr((a = u.props) != null ? a : {}, d), v = To(u, m);
|
|
2445
|
+
for (let p in m)
|
|
2446
|
+
p.startsWith("on") && (v.props || (v.props = {}), v.props[p] = m[p]);
|
|
2447
|
+
return v;
|
|
2447
2448
|
}
|
|
2448
2449
|
return Array.isArray(l) && l.length === 1 ? l[0] : l;
|
|
2449
2450
|
}
|
|
@@ -2557,7 +2558,7 @@ function fe(e) {
|
|
|
2557
2558
|
return document;
|
|
2558
2559
|
}
|
|
2559
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(",");
|
|
2560
|
-
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 || {});
|
|
2561
2562
|
function $t(e = document.body) {
|
|
2562
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)));
|
|
2563
2564
|
}
|
|
@@ -2602,7 +2603,7 @@ function wl(e, t = (n) => n) {
|
|
|
2602
2603
|
function ne(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
|
|
2603
2604
|
var s;
|
|
2604
2605
|
let a = (s = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? s : document, i = Array.isArray(e) ? n ? wl(e) : e : $t(e);
|
|
2605
|
-
o.length > 0 && i.length > 1 && (i = i.filter((
|
|
2606
|
+
o.length > 0 && i.length > 1 && (i = i.filter((v) => !o.includes(v))), r = r ?? a.activeElement;
|
|
2606
2607
|
let d = (() => {
|
|
2607
2608
|
if (t & 5)
|
|
2608
2609
|
return 1;
|
|
@@ -2619,22 +2620,22 @@ function ne(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
|
|
|
2619
2620
|
if (t & 8)
|
|
2620
2621
|
return i.length - 1;
|
|
2621
2622
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
2622
|
-
})(), c = t & 32 ? { preventScroll: !0 } : {}, u = 0, f = i.length,
|
|
2623
|
+
})(), c = t & 32 ? { preventScroll: !0 } : {}, u = 0, f = i.length, m;
|
|
2623
2624
|
do {
|
|
2624
2625
|
if (u >= f || u + f <= 0)
|
|
2625
2626
|
return 0;
|
|
2626
|
-
let
|
|
2627
|
+
let v = l + u;
|
|
2627
2628
|
if (t & 16)
|
|
2628
|
-
|
|
2629
|
+
v = (v + f) % f;
|
|
2629
2630
|
else {
|
|
2630
|
-
if (
|
|
2631
|
+
if (v < 0)
|
|
2631
2632
|
return 3;
|
|
2632
|
-
if (
|
|
2633
|
+
if (v >= f)
|
|
2633
2634
|
return 1;
|
|
2634
2635
|
}
|
|
2635
|
-
|
|
2636
|
-
} while (
|
|
2637
|
-
return t & 6 && bl(
|
|
2636
|
+
m = i[v], m == null || m.focus(c), u += d;
|
|
2637
|
+
} while (m !== a.activeElement);
|
|
2638
|
+
return t & 6 && bl(m) && m.select(), 2;
|
|
2638
2639
|
}
|
|
2639
2640
|
function sr(e, t, n) {
|
|
2640
2641
|
Lt.isServer || se((r) => {
|
|
@@ -2674,7 +2675,7 @@ function no(e, t, n = x(() => !0)) {
|
|
|
2674
2675
|
}, !0), to("blur", (s) => r(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
2675
2676
|
}
|
|
2676
2677
|
var Oe = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Oe || {});
|
|
2677
|
-
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 }) {
|
|
2678
2679
|
return () => {
|
|
2679
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" } } };
|
|
2680
2681
|
return G({ ourProps: s, theirProps: o, slot: {}, attrs: n, slots: t, name: "Hidden" });
|
|
@@ -2724,7 +2725,7 @@ function Nn() {
|
|
|
2724
2725
|
t.key === "Tab" && (e.value = t.shiftKey ? 1 : 0);
|
|
2725
2726
|
}), e;
|
|
2726
2727
|
}
|
|
2727
|
-
function
|
|
2728
|
+
function kn(e, t, n, r) {
|
|
2728
2729
|
Lt.isServer || se((o) => {
|
|
2729
2730
|
e = e ?? window, e.addEventListener(t, n, r), o(() => e.removeEventListener(t, n, r));
|
|
2730
2731
|
});
|
|
@@ -2753,7 +2754,7 @@ function so(e) {
|
|
|
2753
2754
|
return t;
|
|
2754
2755
|
}
|
|
2755
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 || {});
|
|
2756
|
-
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 }) {
|
|
2757
2758
|
let o = T(null);
|
|
2758
2759
|
r({ el: o, $el: o });
|
|
2759
2760
|
let s = x(() => fe(o)), a = T(!1);
|
|
@@ -2761,33 +2762,33 @@ let ze = Object.assign(U({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
2761
2762
|
let i = Pl({ ownerDocument: s, container: o, initialFocus: x(() => e.initialFocus) }, x(() => a.value && !!(e.features & 2)));
|
|
2762
2763
|
Ol({ ownerDocument: s, container: o, containers: e.containers, previousActiveElement: i }, x(() => a.value && !!(e.features & 8)));
|
|
2763
2764
|
let d = Nn();
|
|
2764
|
-
function l(
|
|
2765
|
-
let
|
|
2766
|
-
|
|
2765
|
+
function l(m) {
|
|
2766
|
+
let v = _(o);
|
|
2767
|
+
v && ((p) => p())(() => {
|
|
2767
2768
|
X(d.value, { [Y.Forwards]: () => {
|
|
2768
|
-
ne(
|
|
2769
|
+
ne(v, q.First, { skipElements: [m.relatedTarget] });
|
|
2769
2770
|
}, [Y.Backwards]: () => {
|
|
2770
|
-
ne(
|
|
2771
|
+
ne(v, q.Last, { skipElements: [m.relatedTarget] });
|
|
2771
2772
|
} });
|
|
2772
2773
|
});
|
|
2773
2774
|
}
|
|
2774
2775
|
let c = T(!1);
|
|
2775
|
-
function u(
|
|
2776
|
-
|
|
2776
|
+
function u(m) {
|
|
2777
|
+
m.key === "Tab" && (c.value = !0, requestAnimationFrame(() => {
|
|
2777
2778
|
c.value = !1;
|
|
2778
2779
|
}));
|
|
2779
2780
|
}
|
|
2780
|
-
function f(
|
|
2781
|
+
function f(m) {
|
|
2781
2782
|
if (!a.value)
|
|
2782
2783
|
return;
|
|
2783
|
-
let
|
|
2784
|
-
_(o) instanceof HTMLElement &&
|
|
2785
|
-
let p =
|
|
2786
|
-
p instanceof HTMLElement && p.dataset.headlessuiFocusGuard !== "true" && (io(
|
|
2784
|
+
let v = so(e.containers);
|
|
2785
|
+
_(o) instanceof HTMLElement && v.add(_(o));
|
|
2786
|
+
let p = m.relatedTarget;
|
|
2787
|
+
p instanceof HTMLElement && p.dataset.headlessuiFocusGuard !== "true" && (io(v, p) || (c.value ? ne(_(o), X(d.value, { [Y.Forwards]: () => q.Next, [Y.Backwards]: () => q.Previous }) | q.WrapAround, { relativeTo: m.target }) : m.target instanceof HTMLElement && Ee(m.target)));
|
|
2787
2788
|
}
|
|
2788
2789
|
return () => {
|
|
2789
|
-
let
|
|
2790
|
-
return j(ve, [!!(p & 4) && j(
|
|
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(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 })]);
|
|
2791
2792
|
};
|
|
2792
2793
|
} }), { features: ao }), we = [];
|
|
2793
2794
|
El(() => {
|
|
@@ -2798,7 +2799,7 @@ El(() => {
|
|
|
2798
2799
|
});
|
|
2799
2800
|
function Sl(e) {
|
|
2800
2801
|
let t = T(we.slice());
|
|
2801
|
-
return
|
|
2802
|
+
return nt([e], ([n], [r]) => {
|
|
2802
2803
|
r === !0 && n === !1 ? oo(() => {
|
|
2803
2804
|
t.value.splice(0);
|
|
2804
2805
|
}) : r === !1 && n === !0 && (t.value = we.slice());
|
|
@@ -2821,7 +2822,7 @@ function xl({ ownerDocument: e }, t) {
|
|
|
2821
2822
|
function Pl({ ownerDocument: e, container: t, initialFocus: n }, r) {
|
|
2822
2823
|
let o = T(null), s = T(!1);
|
|
2823
2824
|
return K(() => s.value = !0), re(() => s.value = !1), K(() => {
|
|
2824
|
-
|
|
2825
|
+
nt([t, n, r], (a, i) => {
|
|
2825
2826
|
if (a.every((l, c) => (i == null ? void 0 : i[c]) === l) || !r.value)
|
|
2826
2827
|
return;
|
|
2827
2828
|
let d = _(t);
|
|
@@ -2839,14 +2840,14 @@ function Pl({ ownerDocument: e, container: t, initialFocus: n }, r) {
|
|
|
2839
2840
|
o.value = f;
|
|
2840
2841
|
return;
|
|
2841
2842
|
}
|
|
2842
|
-
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;
|
|
2843
2844
|
});
|
|
2844
2845
|
}, { immediate: !0, flush: "post" });
|
|
2845
2846
|
}), o;
|
|
2846
2847
|
}
|
|
2847
2848
|
function Ol({ ownerDocument: e, container: t, containers: n, previousActiveElement: r }, o) {
|
|
2848
2849
|
var s;
|
|
2849
|
-
|
|
2850
|
+
kn((s = e.value) == null ? void 0 : s.defaultView, "focus", (a) => {
|
|
2850
2851
|
if (!o.value)
|
|
2851
2852
|
return;
|
|
2852
2853
|
let i = so(n);
|
|
@@ -2864,7 +2865,7 @@ function io(e, t) {
|
|
|
2864
2865
|
return !0;
|
|
2865
2866
|
return !1;
|
|
2866
2867
|
}
|
|
2867
|
-
let Kt = /* @__PURE__ */ new Map(),
|
|
2868
|
+
let Kt = /* @__PURE__ */ new Map(), We = /* @__PURE__ */ new Map();
|
|
2868
2869
|
function ar(e, t = T(!0)) {
|
|
2869
2870
|
se((n) => {
|
|
2870
2871
|
var r;
|
|
@@ -2877,14 +2878,14 @@ function ar(e, t = T(!0)) {
|
|
|
2877
2878
|
var a;
|
|
2878
2879
|
if (!o)
|
|
2879
2880
|
return;
|
|
2880
|
-
let i = (a =
|
|
2881
|
-
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)
|
|
2882
2883
|
return;
|
|
2883
2884
|
let d = Kt.get(o);
|
|
2884
2885
|
d && (d["aria-hidden"] === null ? o.removeAttribute("aria-hidden") : o.setAttribute("aria-hidden", d["aria-hidden"]), o.inert = d.inert, Kt.delete(o));
|
|
2885
2886
|
});
|
|
2886
|
-
let s = (r =
|
|
2887
|
-
|
|
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);
|
|
2888
2889
|
});
|
|
2889
2890
|
}
|
|
2890
2891
|
let lo = Symbol("ForcePortalRootContext");
|
|
@@ -2927,7 +2928,7 @@ let uo = U({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
2927
2928
|
if (i.value === null)
|
|
2928
2929
|
return null;
|
|
2929
2930
|
let l = { ref: r, "data-headlessui-portal": "" };
|
|
2930
|
-
return j(
|
|
2931
|
+
return j(Co, { to: i.value }, G({ ourProps: l, theirProps: e, slot: {}, attrs: n, slots: t, name: "Portal" }));
|
|
2931
2932
|
};
|
|
2932
2933
|
} }), ln = Symbol("PortalParentContext");
|
|
2933
2934
|
function co() {
|
|
@@ -2957,17 +2958,17 @@ let fo = Symbol("PortalGroupContext"), Nl = U({ name: "PortalGroup", props: { as
|
|
|
2957
2958
|
};
|
|
2958
2959
|
} }), po = Symbol("StackContext");
|
|
2959
2960
|
var un = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(un || {});
|
|
2960
|
-
function
|
|
2961
|
+
function kl() {
|
|
2961
2962
|
return H(po, () => {
|
|
2962
2963
|
});
|
|
2963
2964
|
}
|
|
2964
|
-
function
|
|
2965
|
-
let o =
|
|
2965
|
+
function Al({ type: e, enabled: t, element: n, onUpdate: r }) {
|
|
2966
|
+
let o = kl();
|
|
2966
2967
|
function s(...a) {
|
|
2967
2968
|
r == null || r(...a), o(...a);
|
|
2968
2969
|
}
|
|
2969
2970
|
K(() => {
|
|
2970
|
-
|
|
2971
|
+
nt(t, (a, i) => {
|
|
2971
2972
|
a ? s(0, e, n) : i === !0 && s(1, e, n);
|
|
2972
2973
|
}, { immediate: !0, flush: "sync" });
|
|
2973
2974
|
}), re(() => {
|
|
@@ -3095,7 +3096,7 @@ function Ml(e, t, n) {
|
|
|
3095
3096
|
let s = e.value ? r.value.get(e.value) : void 0;
|
|
3096
3097
|
return s ? s.count > 0 : !1;
|
|
3097
3098
|
});
|
|
3098
|
-
return
|
|
3099
|
+
return nt([e, t], ([s, a], [i], d) => {
|
|
3099
3100
|
if (!s || !a)
|
|
3100
3101
|
return;
|
|
3101
3102
|
_e.dispatch("PUSH", s, n);
|
|
@@ -3122,16 +3123,16 @@ function mo({ defaultContainers: e = [], portals: t } = {}) {
|
|
|
3122
3123
|
return { resolveContainers: o, contains(s) {
|
|
3123
3124
|
return o().some((a) => a.contains(s));
|
|
3124
3125
|
}, mainTreeNodeRef: n, MainTreeNode() {
|
|
3125
|
-
return j(
|
|
3126
|
+
return j(Re, { features: Oe.Hidden, ref: n });
|
|
3126
3127
|
} };
|
|
3127
3128
|
}
|
|
3128
3129
|
var Ul = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Ul || {});
|
|
3129
3130
|
let cn = Symbol("DialogContext");
|
|
3130
|
-
function
|
|
3131
|
+
function it(e) {
|
|
3131
3132
|
let t = H(cn, null);
|
|
3132
3133
|
if (t === null) {
|
|
3133
3134
|
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
3134
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n,
|
|
3135
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n, it), n;
|
|
3135
3136
|
}
|
|
3136
3137
|
return t;
|
|
3137
3138
|
}
|
|
@@ -3146,19 +3147,19 @@ let ft = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Hl = U({ name: "Dialog", inheri
|
|
|
3146
3147
|
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
3147
3148
|
if (typeof l.value != "boolean")
|
|
3148
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}`);
|
|
3149
|
-
let f = x(() => a.value && l.value ? 0 : 1),
|
|
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(() => {
|
|
3150
3151
|
var F;
|
|
3151
3152
|
return (F = I.panelRef.value) != null ? F : c.value;
|
|
3152
|
-
})] }), E = x(() =>
|
|
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(() => {
|
|
3153
3154
|
var F, R, ie;
|
|
3154
3155
|
return (ie = Array.from((R = (F = u.value) == null ? void 0 : F.querySelectorAll("body > *")) != null ? R : []).find((le) => le.id === "headlessui-portal-root" ? !1 : le.contains(_(C)) && le instanceof HTMLElement)) != null ? ie : null;
|
|
3155
3156
|
});
|
|
3156
3157
|
ar(V, b);
|
|
3157
|
-
let W = x(() =>
|
|
3158
|
+
let W = x(() => v.value ? !0 : m.value), P = x(() => {
|
|
3158
3159
|
var F, R, ie;
|
|
3159
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;
|
|
3160
3161
|
});
|
|
3161
|
-
ar(P, W),
|
|
3162
|
+
ar(P, W), Al({ type: "Dialog", enabled: x(() => f.value === 0), element: c, onUpdate: (F, R) => {
|
|
3162
3163
|
if (R === "Dialog")
|
|
3163
3164
|
return X(F, { [un.Add]: () => i.value += 1, [un.Remove]: () => i.value -= 1 });
|
|
3164
3165
|
} });
|
|
@@ -3168,12 +3169,12 @@ let ft = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Hl = U({ name: "Dialog", inheri
|
|
|
3168
3169
|
t("close", !1);
|
|
3169
3170
|
} };
|
|
3170
3171
|
oe(cn, I);
|
|
3171
|
-
let ge = x(() => !(!
|
|
3172
|
+
let ge = x(() => !(!m.value || v.value));
|
|
3172
3173
|
no(N, (F, R) => {
|
|
3173
|
-
I.close(),
|
|
3174
|
+
I.close(), Ze(() => R == null ? void 0 : R.focus());
|
|
3174
3175
|
}, ge);
|
|
3175
|
-
let Rt = x(() => !(
|
|
3176
|
-
|
|
3176
|
+
let Rt = x(() => !(v.value || f.value !== 0));
|
|
3177
|
+
kn((s = u.value) == null ? void 0 : s.defaultView, "keydown", (F) => {
|
|
3177
3178
|
Rt.value && (F.defaultPrevented || F.key === pe.Escape && (F.preventDefault(), F.stopPropagation(), I.close()));
|
|
3178
3179
|
});
|
|
3179
3180
|
let Dt = x(() => !(O.value || f.value !== 0 || p));
|
|
@@ -3188,18 +3189,18 @@ let ft = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Hl = U({ name: "Dialog", inheri
|
|
|
3188
3189
|
return;
|
|
3189
3190
|
let ie = new ResizeObserver((le) => {
|
|
3190
3191
|
for (let jt of le) {
|
|
3191
|
-
let
|
|
3192
|
-
|
|
3192
|
+
let ke = jt.target.getBoundingClientRect();
|
|
3193
|
+
ke.x === 0 && ke.y === 0 && ke.width === 0 && ke.height === 0 && I.close();
|
|
3193
3194
|
}
|
|
3194
3195
|
});
|
|
3195
3196
|
ie.observe(R), F(() => ie.disconnect());
|
|
3196
3197
|
}), () => {
|
|
3197
|
-
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 },
|
|
3198
|
-
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)]);
|
|
3199
3200
|
};
|
|
3200
3201
|
} });
|
|
3201
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 }) {
|
|
3202
|
-
let r =
|
|
3203
|
+
let r = it("DialogOverlay");
|
|
3203
3204
|
function o(s) {
|
|
3204
3205
|
s.target === s.currentTarget && (s.preventDefault(), s.stopPropagation(), r.close());
|
|
3205
3206
|
}
|
|
@@ -3209,7 +3210,7 @@ U({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
|
|
|
3209
3210
|
};
|
|
3210
3211
|
} });
|
|
3211
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 }) {
|
|
3212
|
-
let o =
|
|
3213
|
+
let o = it("DialogBackdrop"), s = T(null);
|
|
3213
3214
|
return r({ el: s, $el: s }), K(() => {
|
|
3214
3215
|
if (o.panelRef.value === null)
|
|
3215
3216
|
throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
@@ -3219,7 +3220,7 @@ U({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div
|
|
|
3219
3220
|
};
|
|
3220
3221
|
} });
|
|
3221
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 }) {
|
|
3222
|
-
let o =
|
|
3223
|
+
let o = it("DialogPanel");
|
|
3223
3224
|
r({ el: o.panelRef, $el: o.panelRef });
|
|
3224
3225
|
function s(a) {
|
|
3225
3226
|
a.stopPropagation();
|
|
@@ -3230,7 +3231,7 @@ let Vl = U({ name: "DialogPanel", props: { as: { type: [Object, String], default
|
|
|
3230
3231
|
};
|
|
3231
3232
|
} });
|
|
3232
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 }) {
|
|
3233
|
-
let r =
|
|
3234
|
+
let r = it("DialogTitle");
|
|
3234
3235
|
return K(() => {
|
|
3235
3236
|
r.setTitleId(e.id), re(() => r.setTitleId(null));
|
|
3236
3237
|
}), () => {
|
|
@@ -3269,31 +3270,31 @@ let wo = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
3269
3270
|
return !0;
|
|
3270
3271
|
let b = $t(), V = b.indexOf(_(i)), W = (V + b.length - 1) % b.length, P = (V + 1) % b.length, w = b[W], D = b[P];
|
|
3271
3272
|
return !((E = _(c)) != null && E.contains(w)) && !((O = _(c)) != null && O.contains(D));
|
|
3272
|
-
}),
|
|
3273
|
+
}), m = { popoverState: a, buttonId: T(null), panelId: T(null), panel: c, button: i, isPortalled: f, beforePanelSentinel: d, afterPanelSentinel: l, togglePopover() {
|
|
3273
3274
|
a.value = X(a.value, { [0]: 1, [1]: 0 });
|
|
3274
3275
|
}, closePopover() {
|
|
3275
3276
|
a.value !== 1 && (a.value = 1);
|
|
3276
3277
|
}, close(E) {
|
|
3277
|
-
|
|
3278
|
-
let O = (() => E ? E instanceof HTMLElement ? E : E.value instanceof HTMLElement ? _(E) : _(
|
|
3278
|
+
m.closePopover();
|
|
3279
|
+
let O = (() => E ? E instanceof HTMLElement ? E : E.value instanceof HTMLElement ? _(E) : _(m.button) : _(m.button))();
|
|
3279
3280
|
O == null || O.focus();
|
|
3280
3281
|
} };
|
|
3281
|
-
oe(vo,
|
|
3282
|
-
let
|
|
3283
|
-
|
|
3282
|
+
oe(vo, m), dl(x(() => X(a.value, { [0]: te.Open, [1]: te.Closed })));
|
|
3283
|
+
let v = { buttonId: m.buttonId, panelId: m.panelId, close() {
|
|
3284
|
+
m.closePopover();
|
|
3284
3285
|
} }, p = yo(), y = p == null ? void 0 : p.registerPopover, [S, N] = co(), C = mo({ portals: S, defaultContainers: [i, c] });
|
|
3285
|
-
function
|
|
3286
|
+
function k() {
|
|
3286
3287
|
var E, O, b, V;
|
|
3287
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)));
|
|
3288
3289
|
}
|
|
3289
|
-
return se(() => y == null ? void 0 : y(
|
|
3290
|
+
return se(() => y == null ? void 0 : y(v)), kn((o = u.value) == null ? void 0 : o.defaultView, "focus", (E) => {
|
|
3290
3291
|
var O, b;
|
|
3291
|
-
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()));
|
|
3292
3293
|
}, !0), no(C.resolveContainers, (E, O) => {
|
|
3293
3294
|
var b;
|
|
3294
|
-
|
|
3295
|
+
m.closePopover(), eo(O, Cn.Loose) || (E.preventDefault(), (b = _(i)) == null || b.focus());
|
|
3295
3296
|
}, x(() => a.value === 0)), () => {
|
|
3296
|
-
let E = { open: a.value === 0, close:
|
|
3297
|
+
let E = { open: a.value === 0, close: m.close };
|
|
3297
3298
|
return j(N, {}, () => G({ theirProps: { ...e, ...n }, ourProps: { ref: s }, slot: E, slots: t, attrs: n, name: "Popover" }));
|
|
3298
3299
|
};
|
|
3299
3300
|
} }), Gl = U({ name: "PopoverButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: !1 }, id: { type: String, default: () => `headlessui-popover-button-${ee()}` } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
@@ -3308,15 +3309,15 @@ let wo = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
3308
3309
|
o.button.value = c.value;
|
|
3309
3310
|
});
|
|
3310
3311
|
let f = fl(x(() => ({ as: e.as, type: t.type })), c);
|
|
3311
|
-
function
|
|
3312
|
-
var
|
|
3312
|
+
function m(C) {
|
|
3313
|
+
var k, E, O, b, V;
|
|
3313
3314
|
if (l.value) {
|
|
3314
3315
|
if (o.popoverState.value === 1)
|
|
3315
3316
|
return;
|
|
3316
3317
|
switch (C.key) {
|
|
3317
3318
|
case pe.Space:
|
|
3318
3319
|
case pe.Enter:
|
|
3319
|
-
C.preventDefault(), (E = (
|
|
3320
|
+
C.preventDefault(), (E = (k = C.target).click) == null || E.call(k), o.closePopover(), (O = _(o.button)) == null || O.focus();
|
|
3320
3321
|
break;
|
|
3321
3322
|
}
|
|
3322
3323
|
} else
|
|
@@ -3334,12 +3335,12 @@ let wo = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
3334
3335
|
break;
|
|
3335
3336
|
}
|
|
3336
3337
|
}
|
|
3337
|
-
function
|
|
3338
|
+
function v(C) {
|
|
3338
3339
|
l.value || C.key === pe.Space && C.preventDefault();
|
|
3339
3340
|
}
|
|
3340
3341
|
function p(C) {
|
|
3341
|
-
var
|
|
3342
|
-
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()));
|
|
3343
3344
|
}
|
|
3344
3345
|
function y(C) {
|
|
3345
3346
|
C.preventDefault(), C.stopPropagation();
|
|
@@ -3349,14 +3350,14 @@ let wo = U({ name: "Popover", props: { as: { type: [Object, String], default: "d
|
|
|
3349
3350
|
let C = _(o.panel);
|
|
3350
3351
|
if (!C)
|
|
3351
3352
|
return;
|
|
3352
|
-
function
|
|
3353
|
-
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) });
|
|
3354
3355
|
}
|
|
3355
|
-
|
|
3356
|
+
k();
|
|
3356
3357
|
}
|
|
3357
3358
|
return () => {
|
|
3358
|
-
let C = o.popoverState.value === 0,
|
|
3359
|
-
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 })]);
|
|
3360
3361
|
};
|
|
3361
3362
|
} });
|
|
3362
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 }) {
|
|
@@ -3394,19 +3395,19 @@ let Wl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
|
|
|
3394
3395
|
}
|
|
3395
3396
|
}
|
|
3396
3397
|
function f(y) {
|
|
3397
|
-
var S, N, C,
|
|
3398
|
+
var S, N, C, k, E;
|
|
3398
3399
|
let O = y.relatedTarget;
|
|
3399
|
-
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 })));
|
|
3400
3401
|
}
|
|
3401
|
-
let
|
|
3402
|
-
function
|
|
3402
|
+
let m = Nn();
|
|
3403
|
+
function v() {
|
|
3403
3404
|
let y = _(s.panel);
|
|
3404
3405
|
if (!y)
|
|
3405
3406
|
return;
|
|
3406
3407
|
function S() {
|
|
3407
|
-
X(
|
|
3408
|
+
X(m.value, { [Y.Forwards]: () => {
|
|
3408
3409
|
var N;
|
|
3409
|
-
ne(y, q.First) ===
|
|
3410
|
+
ne(y, q.First) === tt.Error && ((N = _(s.afterPanelSentinel)) == null || N.focus());
|
|
3410
3411
|
}, [Y.Backwards]: () => {
|
|
3411
3412
|
var N;
|
|
3412
3413
|
(N = _(s.button)) == null || N.focus({ preventScroll: !0 });
|
|
@@ -3419,11 +3420,11 @@ let Wl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
|
|
|
3419
3420
|
if (!y)
|
|
3420
3421
|
return;
|
|
3421
3422
|
function S() {
|
|
3422
|
-
X(
|
|
3423
|
+
X(m.value, { [Y.Forwards]: () => {
|
|
3423
3424
|
let N = _(s.button), C = _(s.panel);
|
|
3424
3425
|
if (!N)
|
|
3425
3426
|
return;
|
|
3426
|
-
let
|
|
3427
|
+
let k = $t(), E = k.indexOf(N), O = k.slice(0, E + 1), b = [...k.slice(E + 1), ...O];
|
|
3427
3428
|
for (let V of b.slice())
|
|
3428
3429
|
if (V.dataset.headlessuiFocusGuard === "true" || C != null && C.contains(V)) {
|
|
3429
3430
|
let W = b.indexOf(V);
|
|
@@ -3432,16 +3433,16 @@ let Wl = U({ name: "PopoverPanel", props: { as: { type: [Object, String], defaul
|
|
|
3432
3433
|
ne(b, q.First, { sorted: !1 });
|
|
3433
3434
|
}, [Y.Backwards]: () => {
|
|
3434
3435
|
var N;
|
|
3435
|
-
ne(y, q.Previous) ===
|
|
3436
|
+
ne(y, q.Previous) === tt.Error && ((N = _(s.button)) == null || N.focus());
|
|
3436
3437
|
} });
|
|
3437
3438
|
}
|
|
3438
3439
|
S();
|
|
3439
3440
|
}
|
|
3440
3441
|
return () => {
|
|
3441
|
-
let y = { open: s.popoverState.value === 0, close: s.close }, { id: S, focus: N, ...C } = e,
|
|
3442
|
-
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) => {
|
|
3443
3444
|
var O;
|
|
3444
|
-
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 })])];
|
|
3445
3446
|
} }, features: Pe.RenderStrategy | Pe.Static, visible: c.value, name: "PopoverPanel" });
|
|
3446
3447
|
};
|
|
3447
3448
|
} });
|
|
@@ -3462,10 +3463,10 @@ U({ name: "PopoverGroup", props: { as: { type: [Object, String], default: "div"
|
|
|
3462
3463
|
let f = a.value;
|
|
3463
3464
|
if (!f)
|
|
3464
3465
|
return !1;
|
|
3465
|
-
let
|
|
3466
|
-
return (u = _(o)) != null && u.contains(
|
|
3466
|
+
let m = f.activeElement;
|
|
3467
|
+
return (u = _(o)) != null && u.contains(m) ? !0 : s.value.some((v) => {
|
|
3467
3468
|
var p, y;
|
|
3468
|
-
return ((p = f.getElementById(
|
|
3469
|
+
return ((p = f.getElementById(v.buttonId.value)) == null ? void 0 : p.contains(m)) || ((y = f.getElementById(v.panelId.value)) == null ? void 0 : y.contains(m));
|
|
3469
3470
|
});
|
|
3470
3471
|
}
|
|
3471
3472
|
function c(u) {
|
|
@@ -3475,7 +3476,7 @@ U({ name: "PopoverGroup", props: { as: { type: [Object, String], default: "div"
|
|
|
3475
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" });
|
|
3476
3477
|
} });
|
|
3477
3478
|
function Jl(e, t) {
|
|
3478
|
-
return
|
|
3479
|
+
return A(), L("svg", {
|
|
3479
3480
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3480
3481
|
fill: "none",
|
|
3481
3482
|
viewBox: "0 0 24 24",
|
|
@@ -3491,7 +3492,7 @@ function Jl(e, t) {
|
|
|
3491
3492
|
]);
|
|
3492
3493
|
}
|
|
3493
3494
|
function Kl(e, t) {
|
|
3494
|
-
return
|
|
3495
|
+
return A(), L("svg", {
|
|
3495
3496
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3496
3497
|
fill: "none",
|
|
3497
3498
|
viewBox: "0 0 24 24",
|
|
@@ -3506,7 +3507,7 @@ function Kl(e, t) {
|
|
|
3506
3507
|
})
|
|
3507
3508
|
]);
|
|
3508
3509
|
}
|
|
3509
|
-
const
|
|
3510
|
+
const lt = (e, t) => {
|
|
3510
3511
|
const n = e.__vccOpts || e;
|
|
3511
3512
|
for (const [r, o] of t)
|
|
3512
3513
|
n[r] = o;
|
|
@@ -3545,7 +3546,7 @@ const it = (e, t) => {
|
|
|
3545
3546
|
methods: {
|
|
3546
3547
|
handleFbLogin() {
|
|
3547
3548
|
if (typeof FB < "u") {
|
|
3548
|
-
const e =
|
|
3549
|
+
const e = Le.service({
|
|
3549
3550
|
text: "logining...",
|
|
3550
3551
|
background: "rgba(0, 0, 0, 0.7)"
|
|
3551
3552
|
});
|
|
@@ -3573,7 +3574,7 @@ const it = (e, t) => {
|
|
|
3573
3574
|
handleCredentialResponse(e) {
|
|
3574
3575
|
if (console.log(e, "response"), !e || !e.credential)
|
|
3575
3576
|
return;
|
|
3576
|
-
const t =
|
|
3577
|
+
const t = Le.service({
|
|
3577
3578
|
text: "logining...",
|
|
3578
3579
|
background: "rgba(0, 0, 0, 0.7)"
|
|
3579
3580
|
});
|
|
@@ -3628,7 +3629,7 @@ const it = (e, t) => {
|
|
|
3628
3629
|
this.showToast("Password must no be empty");
|
|
3629
3630
|
return;
|
|
3630
3631
|
}
|
|
3631
|
-
const e =
|
|
3632
|
+
const e = Le.service({
|
|
3632
3633
|
text: "logining...",
|
|
3633
3634
|
background: "rgba(0, 0, 0, 0.7)"
|
|
3634
3635
|
});
|
|
@@ -3663,7 +3664,7 @@ const it = (e, t) => {
|
|
|
3663
3664
|
this.showToast("Password must no be empty");
|
|
3664
3665
|
return;
|
|
3665
3666
|
}
|
|
3666
|
-
const e =
|
|
3667
|
+
const e = Le.service({
|
|
3667
3668
|
text: "registering...",
|
|
3668
3669
|
background: "rgba(0, 0, 0, 0.7)"
|
|
3669
3670
|
});
|
|
@@ -3685,7 +3686,7 @@ const it = (e, t) => {
|
|
|
3685
3686
|
console.log(e, 4);
|
|
3686
3687
|
}
|
|
3687
3688
|
}
|
|
3688
|
-
}, ae = (e) => (
|
|
3689
|
+
}, ae = (e) => (rt("data-v-4682235c"), e = e(), ot(), e), Xl = { class: "login-wapper" }, Zl = /* @__PURE__ */ ae(() => /* @__PURE__ */ g(
|
|
3689
3690
|
"span",
|
|
3690
3691
|
null,
|
|
3691
3692
|
"Login here",
|
|
@@ -3797,7 +3798,7 @@ const it = (e, t) => {
|
|
|
3797
3798
|
/* HOISTED */
|
|
3798
3799
|
));
|
|
3799
3800
|
function wu(e, t, n, r, o, s) {
|
|
3800
|
-
return
|
|
3801
|
+
return A(), L("div", Xl, [
|
|
3801
3802
|
g(
|
|
3802
3803
|
"h1",
|
|
3803
3804
|
null,
|
|
@@ -3805,14 +3806,14 @@ function wu(e, t, n, r, o, s) {
|
|
|
3805
3806
|
1
|
|
3806
3807
|
/* TEXT */
|
|
3807
3808
|
),
|
|
3808
|
-
o.isSignup ? (
|
|
3809
|
+
o.isSignup ? (A(), L("div", {
|
|
3809
3810
|
key: 0,
|
|
3810
3811
|
class: "link",
|
|
3811
3812
|
onClick: t[0] || (t[0] = (...a) => s.handleToLogin && s.handleToLogin(...a))
|
|
3812
3813
|
}, [
|
|
3813
3814
|
pt("Already registered? "),
|
|
3814
3815
|
Zl
|
|
3815
|
-
])) : (
|
|
3816
|
+
])) : (A(), L("div", {
|
|
3816
3817
|
key: 1,
|
|
3817
3818
|
class: "link",
|
|
3818
3819
|
onClick: t[1] || (t[1] = (...a) => s.handleToSignup && s.handleToSignup(...a))
|
|
@@ -3844,7 +3845,7 @@ function wu(e, t, n, r, o, s) {
|
|
|
3844
3845
|
g("div", null, [
|
|
3845
3846
|
g("div", su, [
|
|
3846
3847
|
au,
|
|
3847
|
-
|
|
3848
|
+
Ye(g(
|
|
3848
3849
|
"input",
|
|
3849
3850
|
{
|
|
3850
3851
|
id: "user_email",
|
|
@@ -3859,7 +3860,7 @@ function wu(e, t, n, r, o, s) {
|
|
|
3859
3860
|
), [
|
|
3860
3861
|
[It, o.email]
|
|
3861
3862
|
]),
|
|
3862
|
-
o.emailErrorHelp ? (
|
|
3863
|
+
o.emailErrorHelp ? (A(), L(
|
|
3863
3864
|
"p",
|
|
3864
3865
|
iu,
|
|
3865
3866
|
J(o.emailErrorHelp),
|
|
@@ -3867,9 +3868,9 @@ function wu(e, t, n, r, o, s) {
|
|
|
3867
3868
|
/* TEXT */
|
|
3868
3869
|
)) : B("v-if", !0)
|
|
3869
3870
|
]),
|
|
3870
|
-
o.isSignup ? (
|
|
3871
|
+
o.isSignup ? (A(), L("div", lu, [
|
|
3871
3872
|
uu,
|
|
3872
|
-
|
|
3873
|
+
Ye(g(
|
|
3873
3874
|
"input",
|
|
3874
3875
|
{
|
|
3875
3876
|
id: "user_name",
|
|
@@ -3885,7 +3886,7 @@ function wu(e, t, n, r, o, s) {
|
|
|
3885
3886
|
])) : B("v-if", !0),
|
|
3886
3887
|
g("div", cu, [
|
|
3887
3888
|
du,
|
|
3888
|
-
|
|
3889
|
+
Ye(g(
|
|
3889
3890
|
"input",
|
|
3890
3891
|
{
|
|
3891
3892
|
id: "user_password",
|
|
@@ -3899,28 +3900,28 @@ function wu(e, t, n, r, o, s) {
|
|
|
3899
3900
|
), [
|
|
3900
3901
|
[It, o.password]
|
|
3901
3902
|
]),
|
|
3902
|
-
o.passwordErrorHelp ? (
|
|
3903
|
+
o.passwordErrorHelp ? (A(), L("p", fu, [
|
|
3903
3904
|
pt(
|
|
3904
3905
|
J(o.passwordErrorHelp) + " ",
|
|
3905
3906
|
1
|
|
3906
3907
|
/* TEXT */
|
|
3907
3908
|
),
|
|
3908
|
-
o.errCode == 2 ? (
|
|
3909
|
+
o.errCode == 2 ? (A(), L("span", pu, mu)) : B("v-if", !0)
|
|
3909
3910
|
])) : B("v-if", !0)
|
|
3910
3911
|
]),
|
|
3911
|
-
o.isSignup ? (
|
|
3912
|
+
o.isSignup ? (A(), L("button", {
|
|
3912
3913
|
key: 1,
|
|
3913
3914
|
class: "form-button",
|
|
3914
3915
|
disabled: o.disabled,
|
|
3915
3916
|
onClick: t[9] || (t[9] = (...a) => s.handleSignup && s.handleSignup(...a))
|
|
3916
|
-
}, "Create Your Account", 8, vu)) : (
|
|
3917
|
+
}, "Create Your Account", 8, vu)) : (A(), L("button", {
|
|
3917
3918
|
key: 2,
|
|
3918
3919
|
class: "form-button",
|
|
3919
3920
|
disabled: o.disabled,
|
|
3920
3921
|
onClick: t[10] || (t[10] = (...a) => s.handleLogin && s.handleLogin(...a))
|
|
3921
3922
|
}, "Login", 8, gu))
|
|
3922
3923
|
]),
|
|
3923
|
-
o.isSignup ? B("v-if", !0) : (
|
|
3924
|
+
o.isSignup ? B("v-if", !0) : (A(), L("div", yu, [
|
|
3924
3925
|
bu,
|
|
3925
3926
|
B(' <a href="/user/resend-verification-email"> Need new verification email?</a> ')
|
|
3926
3927
|
])),
|
|
@@ -3929,13 +3930,13 @@ function wu(e, t, n, r, o, s) {
|
|
|
3929
3930
|
</div> `)
|
|
3930
3931
|
]);
|
|
3931
3932
|
}
|
|
3932
|
-
const
|
|
3933
|
-
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 = {
|
|
3934
3935
|
data() {
|
|
3935
3936
|
return {};
|
|
3936
3937
|
},
|
|
3937
3938
|
components: {
|
|
3938
|
-
Login1:
|
|
3939
|
+
Login1: _o
|
|
3939
3940
|
},
|
|
3940
3941
|
mounted() {
|
|
3941
3942
|
},
|
|
@@ -3949,7 +3950,7 @@ const Eu = {
|
|
|
3949
3950
|
this.$emit("close");
|
|
3950
3951
|
}
|
|
3951
3952
|
}
|
|
3952
|
-
},
|
|
3953
|
+
}, Eu = (e) => (rt("data-v-47199182"), e = e(), ot(), e), Su = { class: "background-cover" }, xu = { class: "login-content" }, Pu = /* @__PURE__ */ Eu(() => /* @__PURE__ */ g(
|
|
3953
3954
|
"svg",
|
|
3954
3955
|
{
|
|
3955
3956
|
t: "1641536858080",
|
|
@@ -3970,53 +3971,53 @@ const Eu = {
|
|
|
3970
3971
|
],
|
|
3971
3972
|
-1
|
|
3972
3973
|
/* HOISTED */
|
|
3973
|
-
)),
|
|
3974
|
-
|
|
3974
|
+
)), Ou = [
|
|
3975
|
+
Pu
|
|
3975
3976
|
];
|
|
3976
|
-
function
|
|
3977
|
-
const a =
|
|
3978
|
-
return
|
|
3979
|
-
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, [
|
|
3980
3981
|
ue(a, { onSuccess: s.handleLoginSuccess }, null, 8, ["onSuccess"]),
|
|
3981
3982
|
g("div", {
|
|
3982
3983
|
class: "cancel",
|
|
3983
3984
|
onClick: t[0] || (t[0] = (...i) => s.handleClose && s.handleClose(...i))
|
|
3984
|
-
},
|
|
3985
|
+
}, Ou)
|
|
3985
3986
|
])
|
|
3986
3987
|
]);
|
|
3987
3988
|
}
|
|
3988
|
-
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"]]);
|
|
3989
3990
|
/*!
|
|
3990
3991
|
* pinia v2.1.4
|
|
3991
3992
|
* (c) 2023 Eduardo San Martin Morote
|
|
3992
3993
|
* @license MIT
|
|
3993
3994
|
*/
|
|
3994
|
-
let
|
|
3995
|
-
const _t = (e) =>
|
|
3995
|
+
let Ke;
|
|
3996
|
+
const _t = (e) => Ke = e, Nu = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
3996
3997
|
/* istanbul ignore next */
|
|
3997
3998
|
Symbol()
|
|
3998
3999
|
);
|
|
3999
4000
|
function Te(e) {
|
|
4000
4001
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
4001
4002
|
}
|
|
4002
|
-
var
|
|
4003
|
+
var Xe;
|
|
4003
4004
|
(function(e) {
|
|
4004
4005
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
4005
|
-
})(
|
|
4006
|
-
const
|
|
4007
|
-
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) {
|
|
4008
4009
|
for (const n in t) {
|
|
4009
4010
|
const r = t[n];
|
|
4010
4011
|
if (!(n in e))
|
|
4011
4012
|
continue;
|
|
4012
4013
|
const o = e[n];
|
|
4013
|
-
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;
|
|
4014
4015
|
}
|
|
4015
4016
|
return e;
|
|
4016
4017
|
}
|
|
4017
|
-
const
|
|
4018
|
+
const So = () => {
|
|
4018
4019
|
};
|
|
4019
|
-
function ir(e, t, n, r =
|
|
4020
|
+
function ir(e, t, n, r = So) {
|
|
4020
4021
|
e.push(t);
|
|
4021
4022
|
const o = () => {
|
|
4022
4023
|
const s = e.indexOf(t);
|
|
@@ -4024,7 +4025,7 @@ function ir(e, t, n, r = Eo) {
|
|
|
4024
4025
|
};
|
|
4025
4026
|
return !n && Lo() && $o(o), o;
|
|
4026
4027
|
}
|
|
4027
|
-
function
|
|
4028
|
+
function Ae(e, ...t) {
|
|
4028
4029
|
e.slice().forEach((n) => {
|
|
4029
4030
|
n(...t);
|
|
4030
4031
|
});
|
|
@@ -4040,12 +4041,12 @@ function dn(e, t) {
|
|
|
4040
4041
|
}
|
|
4041
4042
|
return e;
|
|
4042
4043
|
}
|
|
4043
|
-
const
|
|
4044
|
+
const Au = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
4044
4045
|
/* istanbul ignore next */
|
|
4045
4046
|
Symbol()
|
|
4046
4047
|
);
|
|
4047
|
-
function
|
|
4048
|
-
return !Te(e) || !e.hasOwnProperty(
|
|
4048
|
+
function Lu(e) {
|
|
4049
|
+
return !Te(e) || !e.hasOwnProperty(Au);
|
|
4049
4050
|
}
|
|
4050
4051
|
const { assign: Z } = Object;
|
|
4051
4052
|
function lr(e) {
|
|
@@ -4060,10 +4061,10 @@ function ur(e, t, n, r) {
|
|
|
4060
4061
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
4061
4062
|
Xt(T(o ? o() : {}).value)
|
|
4062
4063
|
) : Xt(n.state.value[e]);
|
|
4063
|
-
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(() => {
|
|
4064
4065
|
_t(n);
|
|
4065
|
-
const
|
|
4066
|
-
return a[f].call(
|
|
4066
|
+
const m = n._s.get(e);
|
|
4067
|
+
return a[f].call(m, m);
|
|
4067
4068
|
})), u), {}));
|
|
4068
4069
|
}
|
|
4069
4070
|
return d = fn(e, l, t, n, r, !0), d;
|
|
@@ -4078,29 +4079,29 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4078
4079
|
// flush: 'post',
|
|
4079
4080
|
};
|
|
4080
4081
|
process.env.NODE_ENV !== "production" && !Qs && (d.onTrigger = (P) => {
|
|
4081
|
-
l ?
|
|
4082
|
+
l ? m = P : l == !1 && !b._hotUpdating && (Array.isArray(m) ? m.push(P) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
4082
4083
|
});
|
|
4083
|
-
let l, c, u = [], f = [],
|
|
4084
|
-
const
|
|
4085
|
-
!s && !
|
|
4084
|
+
let l, c, u = [], f = [], m;
|
|
4085
|
+
const v = r.state.value[e];
|
|
4086
|
+
!s && !v && (process.env.NODE_ENV === "production" || !o) && (r.state.value[e] = {});
|
|
4086
4087
|
const p = T({});
|
|
4087
4088
|
let y;
|
|
4088
4089
|
function S(P) {
|
|
4089
4090
|
let w;
|
|
4090
|
-
l = c = !1, process.env.NODE_ENV !== "production" && (
|
|
4091
|
-
type:
|
|
4091
|
+
l = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof P == "function" ? (P(r.state.value[e]), w = {
|
|
4092
|
+
type: Xe.patchFunction,
|
|
4092
4093
|
storeId: e,
|
|
4093
|
-
events:
|
|
4094
|
+
events: m
|
|
4094
4095
|
}) : (dn(r.state.value[e], P), w = {
|
|
4095
|
-
type:
|
|
4096
|
+
type: Xe.patchObject,
|
|
4096
4097
|
payload: P,
|
|
4097
4098
|
storeId: e,
|
|
4098
|
-
events:
|
|
4099
|
+
events: m
|
|
4099
4100
|
});
|
|
4100
4101
|
const D = y = Symbol();
|
|
4101
|
-
|
|
4102
|
+
Ze().then(() => {
|
|
4102
4103
|
y === D && (l = !0);
|
|
4103
|
-
}), c = !0,
|
|
4104
|
+
}), c = !0, Ae(u, w, r.state.value[e]);
|
|
4104
4105
|
}
|
|
4105
4106
|
const N = s ? function() {
|
|
4106
4107
|
const { state: w } = n, D = w ? w() : {};
|
|
@@ -4111,12 +4112,12 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4111
4112
|
/* istanbul ignore next */
|
|
4112
4113
|
process.env.NODE_ENV !== "production" ? () => {
|
|
4113
4114
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
4114
|
-
} :
|
|
4115
|
+
} : So
|
|
4115
4116
|
);
|
|
4116
4117
|
function C() {
|
|
4117
4118
|
a.stop(), u = [], f = [], r._s.delete(e);
|
|
4118
4119
|
}
|
|
4119
|
-
function
|
|
4120
|
+
function k(P, w) {
|
|
4120
4121
|
return function() {
|
|
4121
4122
|
_t(r);
|
|
4122
4123
|
const D = Array.from(arguments), I = [], ge = [];
|
|
@@ -4126,7 +4127,7 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4126
4127
|
function Dt(R) {
|
|
4127
4128
|
ge.push(R);
|
|
4128
4129
|
}
|
|
4129
|
-
|
|
4130
|
+
Ae(f, {
|
|
4130
4131
|
args: D,
|
|
4131
4132
|
name: P,
|
|
4132
4133
|
store: b,
|
|
@@ -4137,12 +4138,12 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4137
4138
|
try {
|
|
4138
4139
|
F = w.apply(this && this.$id === e ? this : b, D);
|
|
4139
4140
|
} catch (R) {
|
|
4140
|
-
throw
|
|
4141
|
+
throw Ae(ge, R), R;
|
|
4141
4142
|
}
|
|
4142
|
-
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);
|
|
4143
4144
|
};
|
|
4144
4145
|
}
|
|
4145
|
-
const E = /* @__PURE__ */
|
|
4146
|
+
const E = /* @__PURE__ */ Je({
|
|
4146
4147
|
actions: {},
|
|
4147
4148
|
getters: {},
|
|
4148
4149
|
state: [],
|
|
@@ -4155,11 +4156,11 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4155
4156
|
$patch: S,
|
|
4156
4157
|
$reset: N,
|
|
4157
4158
|
$subscribe(P, w = {}) {
|
|
4158
|
-
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) => {
|
|
4159
4160
|
(w.flush === "sync" ? c : l) && P({
|
|
4160
4161
|
storeId: e,
|
|
4161
|
-
type:
|
|
4162
|
-
events:
|
|
4162
|
+
type: Xe.direct,
|
|
4163
|
+
events: m
|
|
4163
4164
|
}, ge);
|
|
4164
4165
|
}, Z({}, d, w)));
|
|
4165
4166
|
return D;
|
|
@@ -4168,7 +4169,7 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4168
4169
|
}, b = hn(process.env.NODE_ENV !== "production" || Yt ? Z(
|
|
4169
4170
|
{
|
|
4170
4171
|
_hmrPayload: E,
|
|
4171
|
-
_customProperties:
|
|
4172
|
+
_customProperties: Je(/* @__PURE__ */ new Set())
|
|
4172
4173
|
// devtools custom properties
|
|
4173
4174
|
},
|
|
4174
4175
|
O
|
|
@@ -4176,22 +4177,22 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4176
4177
|
// setupStore
|
|
4177
4178
|
) : O);
|
|
4178
4179
|
r._s.set(e, b);
|
|
4179
|
-
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))));
|
|
4180
4181
|
for (const P in W) {
|
|
4181
4182
|
const w = W[P];
|
|
4182
4183
|
if (Se(w) && !lr(w) || mn(w))
|
|
4183
|
-
process.env.NODE_ENV !== "production" && o ? ct(p.value, P, Bt(W, P)) : s || (
|
|
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);
|
|
4184
4185
|
else if (typeof w == "function") {
|
|
4185
|
-
const D = process.env.NODE_ENV !== "production" && o ? w :
|
|
4186
|
+
const D = process.env.NODE_ENV !== "production" && o ? w : k(P, w);
|
|
4186
4187
|
W[P] = D, process.env.NODE_ENV !== "production" && (E.actions[P] = w), i.actions[P] = w;
|
|
4187
4188
|
} else
|
|
4188
4189
|
process.env.NODE_ENV !== "production" && lr(w) && (E.getters[P] = s ? (
|
|
4189
4190
|
// @ts-expect-error
|
|
4190
4191
|
n.getters[P]
|
|
4191
|
-
) : w,
|
|
4192
|
-
(W._getters =
|
|
4192
|
+
) : w, An && (W._getters || // @ts-expect-error: same
|
|
4193
|
+
(W._getters = Je([]))).push(P));
|
|
4193
4194
|
}
|
|
4194
|
-
if (Z(b, W), Z(
|
|
4195
|
+
if (Z(b, W), Z(Ao(b), W), Object.defineProperty(b, "$state", {
|
|
4195
4196
|
get: () => process.env.NODE_ENV !== "production" && o ? p.value : r.state.value[e],
|
|
4196
4197
|
set: (P) => {
|
|
4197
4198
|
if (process.env.NODE_ENV !== "production" && o)
|
|
@@ -4200,21 +4201,21 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4200
4201
|
Z(w, P);
|
|
4201
4202
|
});
|
|
4202
4203
|
}
|
|
4203
|
-
}), process.env.NODE_ENV !== "production" && (b._hotUpdate =
|
|
4204
|
+
}), process.env.NODE_ENV !== "production" && (b._hotUpdate = Je((P) => {
|
|
4204
4205
|
b._hotUpdating = !0, P._hmrPayload.state.forEach((w) => {
|
|
4205
4206
|
if (w in b.$state) {
|
|
4206
4207
|
const D = P.$state[w], I = b.$state[w];
|
|
4207
|
-
typeof D == "object" && Te(D) && Te(I) ?
|
|
4208
|
+
typeof D == "object" && Te(D) && Te(I) ? Eo(D, I) : P.$state[w] = I;
|
|
4208
4209
|
}
|
|
4209
4210
|
ct(b, w, Bt(P.$state, w));
|
|
4210
4211
|
}), Object.keys(b.$state).forEach((w) => {
|
|
4211
4212
|
w in P.$state || Gt(b, w);
|
|
4212
|
-
}), 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(() => {
|
|
4213
4214
|
l = !0;
|
|
4214
4215
|
});
|
|
4215
4216
|
for (const w in P._hmrPayload.actions) {
|
|
4216
4217
|
const D = P[w];
|
|
4217
|
-
ct(b, w,
|
|
4218
|
+
ct(b, w, k(w, D));
|
|
4218
4219
|
}
|
|
4219
4220
|
for (const w in P._hmrPayload.getters) {
|
|
4220
4221
|
const D = P._hmrPayload.getters[w], I = s ? (
|
|
@@ -4257,9 +4258,9 @@ function fn(e, t, n = {}, r, o, s) {
|
|
|
4257
4258
|
})));
|
|
4258
4259
|
}), process.env.NODE_ENV !== "production" && b.$state && typeof b.$state == "object" && typeof b.$state.constructor == "function" && !b.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
4259
4260
|
state: () => new MyClass()
|
|
4260
|
-
Found in store "${b.$id}".`),
|
|
4261
|
+
Found in store "${b.$id}".`), v && s && n.hydrate && n.hydrate(b.$state, v), l = !0, c = !0, b;
|
|
4261
4262
|
}
|
|
4262
|
-
function
|
|
4263
|
+
function $u(e, t, n) {
|
|
4263
4264
|
let r, o;
|
|
4264
4265
|
const s = typeof t == "function";
|
|
4265
4266
|
if (typeof e == "string")
|
|
@@ -4270,37 +4271,37 @@ function Fu(e, t, n) {
|
|
|
4270
4271
|
const l = No();
|
|
4271
4272
|
if (i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
4272
4273
|
// pinia instance with getActivePinia()
|
|
4273
|
-
(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)
|
|
4274
4275
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
|
|
4275
4276
|
const pinia = createPinia()
|
|
4276
4277
|
app.use(pinia)
|
|
4277
4278
|
This will fail in production.`);
|
|
4278
|
-
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));
|
|
4279
4280
|
const c = i._s.get(r);
|
|
4280
4281
|
if (process.env.NODE_ENV !== "production" && d) {
|
|
4281
4282
|
const u = "__hot:" + r, f = s ? fn(u, t, o, i, !0) : ur(u, Z({}, o), i, !0);
|
|
4282
4283
|
d._hotUpdate(f), delete i.state.value[u], i._s.delete(u);
|
|
4283
4284
|
}
|
|
4284
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
4285
|
+
if (process.env.NODE_ENV !== "production" && An) {
|
|
4285
4286
|
const u = pn();
|
|
4286
4287
|
if (u && u.proxy && // avoid adding stores that are just built for hot module replacement
|
|
4287
4288
|
!d) {
|
|
4288
|
-
const f = u.proxy,
|
|
4289
|
-
|
|
4289
|
+
const f = u.proxy, m = "_pStores" in f ? f._pStores : f._pStores = {};
|
|
4290
|
+
m[r] = c;
|
|
4290
4291
|
}
|
|
4291
4292
|
}
|
|
4292
4293
|
return c;
|
|
4293
4294
|
}
|
|
4294
4295
|
return a.$id = r, a;
|
|
4295
4296
|
}
|
|
4296
|
-
function
|
|
4297
|
+
function Fu(e, t) {
|
|
4297
4298
|
return Array.isArray(t) ? t.reduce((n, r) => (n[r] = function(...o) {
|
|
4298
4299
|
return e(this.$pinia)[r](...o);
|
|
4299
4300
|
}, n), {}) : Object.keys(t).reduce((n, r) => (n[r] = function(...o) {
|
|
4300
4301
|
return e(this.$pinia)[t[r]](...o);
|
|
4301
4302
|
}, n), {});
|
|
4302
4303
|
}
|
|
4303
|
-
const
|
|
4304
|
+
const Ru = $u("user", {
|
|
4304
4305
|
state: () => ({
|
|
4305
4306
|
user: null,
|
|
4306
4307
|
isShowLogin: !1,
|
|
@@ -4308,82 +4309,82 @@ const Du = Fu("user", {
|
|
|
4308
4309
|
toastContent: ""
|
|
4309
4310
|
}),
|
|
4310
4311
|
actions: {
|
|
4311
|
-
getUser() {
|
|
4312
|
-
return window.getUserStatusPromise = new Promise((
|
|
4313
|
-
nr().then(({ profile:
|
|
4314
|
-
if (
|
|
4315
|
-
let { free_cnt:
|
|
4316
|
-
|
|
4317
|
-
const
|
|
4318
|
-
this.user =
|
|
4312
|
+
getUser(e = !1) {
|
|
4313
|
+
return window.getUserStatusPromise = new Promise((t, n) => {
|
|
4314
|
+
nr(e).then(({ profile: r, subscription: o, drive: s }) => {
|
|
4315
|
+
if (r) {
|
|
4316
|
+
let { free_cnt: a, is_subscribed: i, detail: d } = o;
|
|
4317
|
+
a || (a = 0), d && d.ends_at && (i = new Date(d.ends_at) > /* @__PURE__ */ new Date());
|
|
4318
|
+
const l = { ...r, free_cnt: a, is_subscribed: i, subscribedType: i && d.name || "", detail: d, drive: s };
|
|
4319
|
+
this.user = l, window.userStatus = l;
|
|
4319
4320
|
}
|
|
4320
|
-
|
|
4321
|
-
}, (
|
|
4322
|
-
|
|
4321
|
+
t({ profile: r, subscription: o });
|
|
4322
|
+
}, (r) => {
|
|
4323
|
+
n(r);
|
|
4323
4324
|
});
|
|
4324
4325
|
});
|
|
4325
4326
|
},
|
|
4326
4327
|
logout() {
|
|
4327
4328
|
this.user = null, window.userStatus = null;
|
|
4328
4329
|
},
|
|
4329
|
-
updateUser(e = !1, t) {
|
|
4330
|
-
const
|
|
4330
|
+
updateUser(e = !1, t, n = !1) {
|
|
4331
|
+
const r = Le.service({
|
|
4331
4332
|
text: "Upgrading....",
|
|
4332
4333
|
background: "rgba(0, 0, 0, 0.7)"
|
|
4333
4334
|
});
|
|
4334
|
-
let
|
|
4335
|
-
const
|
|
4336
|
-
nr().then(({ profile:
|
|
4337
|
-
let { free_cnt:
|
|
4338
|
-
if (
|
|
4339
|
-
const
|
|
4340
|
-
if (this.user =
|
|
4341
|
-
const
|
|
4335
|
+
let o = 1;
|
|
4336
|
+
const s = () => {
|
|
4337
|
+
nr(n).then(({ profile: a, subscription: i, drive: d }) => {
|
|
4338
|
+
let { free_cnt: l, is_subscribed: c, detail: u } = i;
|
|
4339
|
+
if (l || (l = 0), u && u.ends_at && (c = new Date(u.ends_at) > /* @__PURE__ */ new Date()), c || t == "purchase" && l) {
|
|
4340
|
+
const f = { ...a, free_cnt: l, is_subscribed: c, subscribedType: c && u.name || "", detail: u, drive: d };
|
|
4341
|
+
if (this.user = f, window.userStatus = f, window.opener) {
|
|
4342
|
+
const m = {
|
|
4342
4343
|
type: "subscribed"
|
|
4343
4344
|
// token: profile.token,
|
|
4344
4345
|
// expire_at: profile.expire_at
|
|
4345
4346
|
};
|
|
4346
|
-
Jr({ message:
|
|
4347
|
+
Jr({ message: m, user: f }, "subscribed:success"), window.opener.postMessage(m, process.env.NODE_ENV == "development" ? "http://localhost:8080" : "*");
|
|
4347
4348
|
}
|
|
4348
|
-
|
|
4349
|
+
r.close(), this.isShowToast = !0, this.toastContent = t == "purchase" ? "purchased credits" : "upgraded to a member", setTimeout(() => {
|
|
4349
4350
|
this.isShowToast = !1;
|
|
4350
|
-
const
|
|
4351
|
-
(window.opener && !e ||
|
|
4351
|
+
const m = Kr();
|
|
4352
|
+
(window.opener && !e || m.product && m.product == "image_translator" || m.close) && window.close();
|
|
4352
4353
|
}, 3e3);
|
|
4353
4354
|
} else
|
|
4354
|
-
|
|
4355
|
-
|
|
4355
|
+
o > 20 ? r.close() : setTimeout(() => {
|
|
4356
|
+
o++, s();
|
|
4356
4357
|
}, 2e3);
|
|
4357
|
-
}, (
|
|
4358
|
-
|
|
4358
|
+
}, (a) => {
|
|
4359
|
+
r.close();
|
|
4359
4360
|
});
|
|
4360
4361
|
};
|
|
4361
|
-
|
|
4362
|
+
s();
|
|
4362
4363
|
},
|
|
4363
4364
|
showLogin(e) {
|
|
4364
4365
|
this.isShowLogin = e;
|
|
4365
4366
|
}
|
|
4366
4367
|
}
|
|
4367
4368
|
});
|
|
4368
|
-
let
|
|
4369
|
-
console.log("childPath3",
|
|
4370
|
-
const
|
|
4369
|
+
let xo = At();
|
|
4370
|
+
console.log("childPath3", xo);
|
|
4371
|
+
const Du = {
|
|
4371
4372
|
props: ["user", "from"],
|
|
4372
4373
|
data() {
|
|
4373
4374
|
return {
|
|
4374
|
-
path:
|
|
4375
|
+
path: xo
|
|
4375
4376
|
};
|
|
4376
4377
|
},
|
|
4377
4378
|
methods: {
|
|
4378
|
-
...Ru
|
|
4379
|
+
...Fu(Ru, ["logout"]),
|
|
4379
4380
|
handlePay() {
|
|
4380
4381
|
console.log("user", this.user), this.user.is_subscribed || this.$emit("subscribe");
|
|
4381
4382
|
}
|
|
4382
4383
|
}
|
|
4383
|
-
},
|
|
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 = {
|
|
4384
4385
|
class: "user-name",
|
|
4385
4386
|
style: { color: "#000" }
|
|
4386
|
-
},
|
|
4387
|
+
}, Uu = { class: "user-email" }, Hu = { class: "flew-row-v-center" }, Vu = {
|
|
4387
4388
|
key: 0,
|
|
4388
4389
|
t: "1637834706702",
|
|
4389
4390
|
class: "user-item-icon",
|
|
@@ -4393,7 +4394,7 @@ const ju = {
|
|
|
4393
4394
|
"p-id": "10206",
|
|
4394
4395
|
width: "32",
|
|
4395
4396
|
height: "32"
|
|
4396
|
-
},
|
|
4397
|
+
}, zu = /* @__PURE__ */ Me(() => /* @__PURE__ */ g(
|
|
4397
4398
|
"path",
|
|
4398
4399
|
{
|
|
4399
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",
|
|
@@ -4405,7 +4406,7 @@ const ju = {
|
|
|
4405
4406
|
null,
|
|
4406
4407
|
-1
|
|
4407
4408
|
/* HOISTED */
|
|
4408
|
-
)),
|
|
4409
|
+
)), qu = /* @__PURE__ */ Me(() => /* @__PURE__ */ g(
|
|
4409
4410
|
"path",
|
|
4410
4411
|
{
|
|
4411
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",
|
|
@@ -4415,10 +4416,10 @@ const ju = {
|
|
|
4415
4416
|
null,
|
|
4416
4417
|
-1
|
|
4417
4418
|
/* HOISTED */
|
|
4418
|
-
)),
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
],
|
|
4419
|
+
)), Gu = [
|
|
4420
|
+
zu,
|
|
4421
|
+
qu
|
|
4422
|
+
], Wu = {
|
|
4422
4423
|
key: 1,
|
|
4423
4424
|
t: "1637055277290",
|
|
4424
4425
|
class: "user-item-icon",
|
|
@@ -4428,7 +4429,7 @@ const ju = {
|
|
|
4428
4429
|
"p-id": "8080",
|
|
4429
4430
|
width: "32",
|
|
4430
4431
|
height: "32"
|
|
4431
|
-
},
|
|
4432
|
+
}, Ju = /* @__PURE__ */ Me(() => /* @__PURE__ */ g(
|
|
4432
4433
|
"path",
|
|
4433
4434
|
{
|
|
4434
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",
|
|
@@ -4438,20 +4439,46 @@ const ju = {
|
|
|
4438
4439
|
null,
|
|
4439
4440
|
-1
|
|
4440
4441
|
/* HOISTED */
|
|
4441
|
-
)),
|
|
4442
|
-
|
|
4443
|
-
],
|
|
4442
|
+
)), Ku = [
|
|
4443
|
+
Ju
|
|
4444
|
+
], Yu = {
|
|
4444
4445
|
key: 0,
|
|
4445
4446
|
class: "user-upgrade"
|
|
4446
|
-
},
|
|
4447
|
+
}, Xu = /* @__PURE__ */ Me(() => /* @__PURE__ */ g(
|
|
4447
4448
|
"span",
|
|
4448
4449
|
null,
|
|
4449
4450
|
"Upgrade",
|
|
4450
4451
|
-1
|
|
4451
4452
|
/* HOISTED */
|
|
4452
|
-
)),
|
|
4453
|
-
|
|
4454
|
-
],
|
|
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(
|
|
4455
4482
|
"div",
|
|
4456
4483
|
{ class: "user-item user-item-active flew-row-v-center" },
|
|
4457
4484
|
[
|
|
@@ -4480,19 +4507,19 @@ const ju = {
|
|
|
4480
4507
|
],
|
|
4481
4508
|
-1
|
|
4482
4509
|
/* HOISTED */
|
|
4483
|
-
)),
|
|
4484
|
-
|
|
4510
|
+
)), oc = [
|
|
4511
|
+
rc
|
|
4485
4512
|
];
|
|
4486
|
-
function
|
|
4487
|
-
return
|
|
4488
|
-
g("div",
|
|
4513
|
+
function sc(e, t, n, r, o, s) {
|
|
4514
|
+
return A(), L("div", ju, [
|
|
4515
|
+
g("div", Iu, [
|
|
4489
4516
|
g("img", {
|
|
4490
4517
|
class: "user-avatar",
|
|
4491
4518
|
src: n.user.avatar || "https://statics.imgkits.com/images/default_user_avatar_black.png",
|
|
4492
4519
|
alt: "user avatar"
|
|
4493
|
-
}, null, 8,
|
|
4520
|
+
}, null, 8, Bu),
|
|
4494
4521
|
g("div", null, [
|
|
4495
|
-
g("div",
|
|
4522
|
+
g("div", Mu, [
|
|
4496
4523
|
g(
|
|
4497
4524
|
"span",
|
|
4498
4525
|
null,
|
|
@@ -4501,7 +4528,7 @@ function rc(e, t, n, r, o, s) {
|
|
|
4501
4528
|
/* TEXT */
|
|
4502
4529
|
)
|
|
4503
4530
|
]),
|
|
4504
|
-
g("div",
|
|
4531
|
+
g("div", Uu, [
|
|
4505
4532
|
g(
|
|
4506
4533
|
"span",
|
|
4507
4534
|
null,
|
|
@@ -4523,8 +4550,8 @@ function rc(e, t, n, r, o, s) {
|
|
|
4523
4550
|
class: "user-item flew-row-v-center space-between",
|
|
4524
4551
|
onClick: t[0] || (t[0] = (...a) => s.handlePay && s.handlePay(...a))
|
|
4525
4552
|
}, [
|
|
4526
|
-
g("div",
|
|
4527
|
-
n.user.is_subscribed ? (
|
|
4553
|
+
g("div", Hu, [
|
|
4554
|
+
n.user.is_subscribed ? (A(), L("svg", Vu, Gu)) : (A(), L("svg", Wu, Ku)),
|
|
4528
4555
|
g(
|
|
4529
4556
|
"span",
|
|
4530
4557
|
null,
|
|
@@ -4533,19 +4560,24 @@ function rc(e, t, n, r, o, s) {
|
|
|
4533
4560
|
/* TEXT */
|
|
4534
4561
|
)
|
|
4535
4562
|
]),
|
|
4536
|
-
!n.user.is_subscribed && n.from == "addon" ? (
|
|
4563
|
+
!n.user.is_subscribed && n.from == "addon" ? (A(), L("div", Yu, Zu)) : B("v-if", !0)
|
|
4537
4564
|
]),
|
|
4538
|
-
n.from != "addon" ? (
|
|
4565
|
+
n.from != "addon" ? (A(), L("a", {
|
|
4539
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,
|
|
4540
4572
|
rel: "nofollow",
|
|
4541
4573
|
href: o.path + "/user/logout"
|
|
4542
|
-
},
|
|
4574
|
+
}, oc, 8, nc)) : B("v-if", !0)
|
|
4543
4575
|
]);
|
|
4544
4576
|
}
|
|
4545
|
-
const cr = /* @__PURE__ */
|
|
4546
|
-
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 = {
|
|
4547
4579
|
props: ["content", "top"]
|
|
4548
|
-
},
|
|
4580
|
+
}, ic = (e) => (rt("data-v-7b6def48"), e = e(), ot(), e), lc = /* @__PURE__ */ ic(() => /* @__PURE__ */ g(
|
|
4549
4581
|
"svg",
|
|
4550
4582
|
{
|
|
4551
4583
|
t: "1637907583780",
|
|
@@ -4566,15 +4598,15 @@ const oc = {
|
|
|
4566
4598
|
-1
|
|
4567
4599
|
/* HOISTED */
|
|
4568
4600
|
));
|
|
4569
|
-
function
|
|
4570
|
-
return
|
|
4601
|
+
function uc(e, t, n, r, o, s) {
|
|
4602
|
+
return A(), L(
|
|
4571
4603
|
"div",
|
|
4572
4604
|
{
|
|
4573
4605
|
class: "toast-wrapper",
|
|
4574
4606
|
style: Fo({ top: n.top || "60PX" })
|
|
4575
4607
|
},
|
|
4576
4608
|
[
|
|
4577
|
-
|
|
4609
|
+
lc,
|
|
4578
4610
|
g(
|
|
4579
4611
|
"span",
|
|
4580
4612
|
null,
|
|
@@ -4587,9 +4619,9 @@ function ic(e, t, n, r, o, s) {
|
|
|
4587
4619
|
/* STYLE */
|
|
4588
4620
|
);
|
|
4589
4621
|
}
|
|
4590
|
-
const
|
|
4591
|
-
function
|
|
4592
|
-
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", {
|
|
4593
4625
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4594
4626
|
viewBox: "0 0 20 20",
|
|
4595
4627
|
fill: "currentColor",
|
|
@@ -4602,69 +4634,69 @@ function uc(e, t) {
|
|
|
4602
4634
|
})
|
|
4603
4635
|
]);
|
|
4604
4636
|
}
|
|
4605
|
-
const Ne = (e) => (
|
|
4637
|
+
const Ne = (e) => (rt("data-v-c970699f"), e = e(), ot(), e), fc = {
|
|
4606
4638
|
class: "flex items-center justify-between py-6 lg:px-0 px-6",
|
|
4607
4639
|
"aria-label": "Global"
|
|
4608
|
-
},
|
|
4640
|
+
}, pc = { class: "flex lg:flex-1" }, hc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4609
4641
|
"span",
|
|
4610
4642
|
{ class: "hidden items-center gap-x-1 text-sm font-semibold h-7 leading-7 text-gray-900" },
|
|
4611
4643
|
null,
|
|
4612
4644
|
-1
|
|
4613
4645
|
/* HOISTED */
|
|
4614
|
-
)),
|
|
4646
|
+
)), mc = ["href"], vc = ["src", "alt"], gc = { class: "pl-2 text-xl" }, yc = { class: "flex lg:hidden" }, bc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4615
4647
|
"span",
|
|
4616
4648
|
{ class: "sr-only" },
|
|
4617
4649
|
"Open main menu",
|
|
4618
4650
|
-1
|
|
4619
4651
|
/* HOISTED */
|
|
4620
|
-
)),
|
|
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(
|
|
4621
4653
|
"span",
|
|
4622
4654
|
null,
|
|
4623
4655
|
"Apps",
|
|
4624
4656
|
-1
|
|
4625
4657
|
/* HOISTED */
|
|
4626
|
-
)),
|
|
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 = {
|
|
4627
4659
|
key: 0,
|
|
4628
4660
|
class: "hidden lg:flex lg:flex-1 lg:justify-end"
|
|
4629
|
-
},
|
|
4661
|
+
}, Tc = {
|
|
4630
4662
|
key: 1,
|
|
4631
4663
|
class: "hidden lg:flex lg:flex-1 lg:justify-end"
|
|
4632
|
-
},
|
|
4664
|
+
}, Cc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4633
4665
|
"span",
|
|
4634
4666
|
{ "aria-hidden": "true" },
|
|
4635
4667
|
null,
|
|
4636
4668
|
-1
|
|
4637
4669
|
/* HOISTED */
|
|
4638
|
-
)),
|
|
4670
|
+
)), Nc = {
|
|
4639
4671
|
key: 2,
|
|
4640
4672
|
class: "hidden lg:flex lg:flex-1 lg:justify-end text-sm font-semibold leading-6 text-gray-900 items-center"
|
|
4641
|
-
},
|
|
4673
|
+
}, kc = { class: "pr-4" }, Ac = ["src"], Lc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4642
4674
|
"div",
|
|
4643
4675
|
{ class: "open-icon" },
|
|
4644
4676
|
null,
|
|
4645
4677
|
-1
|
|
4646
4678
|
/* HOISTED */
|
|
4647
|
-
)),
|
|
4679
|
+
)), $c = { class: "user-center-dialog shadow-xl" }, Fc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4648
4680
|
"div",
|
|
4649
4681
|
{ class: "fixed inset-0 z-50" },
|
|
4650
4682
|
null,
|
|
4651
4683
|
-1
|
|
4652
4684
|
/* HOISTED */
|
|
4653
|
-
)),
|
|
4685
|
+
)), Rc = { class: "flex items-center justify-between" }, Dc = ["href"], jc = { class: "sr-only" }, Ic = ["src", "alt"], Bc = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g(
|
|
4654
4686
|
"span",
|
|
4655
4687
|
{ class: "sr-only" },
|
|
4656
4688
|
"Close menu",
|
|
4657
4689
|
-1
|
|
4658
4690
|
/* HOISTED */
|
|
4659
|
-
)),
|
|
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 = {
|
|
4660
4692
|
key: 0,
|
|
4661
4693
|
target: "_blank",
|
|
4662
4694
|
href: "https://www.livepolls.app/apps",
|
|
4663
4695
|
class: "-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
|
4664
|
-
},
|
|
4696
|
+
}, zc = ["href", "target"], qc = {
|
|
4665
4697
|
key: 0,
|
|
4666
4698
|
class: "py-6"
|
|
4667
|
-
},
|
|
4699
|
+
}, Gc = {
|
|
4668
4700
|
__name: "Header",
|
|
4669
4701
|
props: {
|
|
4670
4702
|
isShenHe: {
|
|
@@ -4683,6 +4715,10 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4683
4715
|
className: {
|
|
4684
4716
|
type: String,
|
|
4685
4717
|
default: "max-w-7xl"
|
|
4718
|
+
},
|
|
4719
|
+
driveQuery: {
|
|
4720
|
+
type: Boolean,
|
|
4721
|
+
default: !1
|
|
4686
4722
|
}
|
|
4687
4723
|
},
|
|
4688
4724
|
emits: ["loginSuccess", "initUserCallback"],
|
|
@@ -4693,7 +4729,7 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4693
4729
|
name: "Video Translator"
|
|
4694
4730
|
};
|
|
4695
4731
|
typeof app_config == "object" && app_config && Object.keys(app_config).length > 0 && (r = app_config), console.log("appInfo", r);
|
|
4696
|
-
const o = T(r), s =
|
|
4732
|
+
const o = T(r), s = At(), a = [
|
|
4697
4733
|
{ name: "Live Poll Maker for Slides", href: "https://workspace.google.com/marketplace/app/live_polls_maker/964324417500" },
|
|
4698
4734
|
{ name: "Geocode for Sheets", href: "https://workspace.google.com/marketplace/app/geocode_for_sheets/1083994590944" },
|
|
4699
4735
|
{ name: "Slides Translator", href: "https://workspace.google.com/marketplace/app/translate_slides_slides_translator/552662411825" },
|
|
@@ -4710,28 +4746,28 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4710
4746
|
n.userStore.showLogin(!0);
|
|
4711
4747
|
}, f = T(!1);
|
|
4712
4748
|
K(() => {
|
|
4713
|
-
n.userStore.getUser().then(
|
|
4714
|
-
({ profile:
|
|
4715
|
-
t("initUserCallback",
|
|
4749
|
+
n.userStore.getUser(n.driveQuery).then(
|
|
4750
|
+
({ profile: k }) => {
|
|
4751
|
+
t("initUserCallback", k), console.log("login", k), !k && n.from != "login" && !n.isShenHe && N();
|
|
4716
4752
|
},
|
|
4717
4753
|
() => {
|
|
4718
4754
|
}
|
|
4719
4755
|
);
|
|
4720
4756
|
});
|
|
4721
|
-
async function
|
|
4722
|
-
|
|
4723
|
-
const
|
|
4757
|
+
async function m() {
|
|
4758
|
+
v();
|
|
4759
|
+
const k = Le.service({
|
|
4724
4760
|
text: "logining...",
|
|
4725
4761
|
background: "rgba(0, 0, 0, 0.7)"
|
|
4726
4762
|
});
|
|
4727
4763
|
try {
|
|
4728
|
-
await n.userStore.getUser(), t("loginSuccess");
|
|
4764
|
+
await n.userStore.getUser(n.driveQuery), t("loginSuccess");
|
|
4729
4765
|
} catch {
|
|
4730
4766
|
} finally {
|
|
4731
|
-
|
|
4767
|
+
k.close();
|
|
4732
4768
|
}
|
|
4733
4769
|
}
|
|
4734
|
-
function
|
|
4770
|
+
function v() {
|
|
4735
4771
|
n.userStore.showLogin(!1);
|
|
4736
4772
|
}
|
|
4737
4773
|
function p() {
|
|
@@ -4743,23 +4779,23 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4743
4779
|
function S() {
|
|
4744
4780
|
l.value = !l.value;
|
|
4745
4781
|
}
|
|
4746
|
-
function N(
|
|
4782
|
+
function N(k) {
|
|
4747
4783
|
console.log("addGoogleAccountsScript:before"), typeof google < "u" && (google.accounts.id.initialize({
|
|
4748
4784
|
client_id: "704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",
|
|
4749
4785
|
callback: C
|
|
4750
4786
|
}), google.accounts.id.prompt());
|
|
4751
4787
|
}
|
|
4752
|
-
function C(
|
|
4753
|
-
!
|
|
4788
|
+
function C(k) {
|
|
4789
|
+
!k || !k.credential || Yr(k.credential).then(
|
|
4754
4790
|
(E) => {
|
|
4755
|
-
console.log("fetch_success", E), n.userStore ? n.userStore.getUser() : location.href = location.pathname;
|
|
4791
|
+
console.log("fetch_success", E), n.userStore ? n.userStore.getUser(n.driveQuery) : location.href = location.pathname;
|
|
4756
4792
|
},
|
|
4757
4793
|
(E) => {
|
|
4758
4794
|
console.log("fetch_fail", E);
|
|
4759
4795
|
}
|
|
4760
4796
|
);
|
|
4761
4797
|
}
|
|
4762
|
-
return (
|
|
4798
|
+
return (k, E) => (A(), L(
|
|
4763
4799
|
ve,
|
|
4764
4800
|
null,
|
|
4765
4801
|
[
|
|
@@ -4769,9 +4805,9 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4769
4805
|
class: Ro(["absolute inset-x-0 px-1 top-0 z-30 mx-auto", [e.className]])
|
|
4770
4806
|
},
|
|
4771
4807
|
[
|
|
4772
|
-
g("nav",
|
|
4773
|
-
g("div",
|
|
4774
|
-
|
|
4808
|
+
g("nav", fc, [
|
|
4809
|
+
g("div", pc, [
|
|
4810
|
+
hc,
|
|
4775
4811
|
g("a", {
|
|
4776
4812
|
href: d.value,
|
|
4777
4813
|
class: "-m-1.5 p-1.5 flex items-center"
|
|
@@ -4780,40 +4816,40 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4780
4816
|
class: "h-8 w-auto",
|
|
4781
4817
|
src: o.value.logo,
|
|
4782
4818
|
alt: o.value.name
|
|
4783
|
-
}, null, 8,
|
|
4819
|
+
}, null, 8, vc),
|
|
4784
4820
|
g(
|
|
4785
4821
|
"span",
|
|
4786
|
-
|
|
4822
|
+
gc,
|
|
4787
4823
|
J(o.value.name),
|
|
4788
4824
|
1
|
|
4789
4825
|
/* TEXT */
|
|
4790
4826
|
)
|
|
4791
|
-
], 8,
|
|
4827
|
+
], 8, mc)
|
|
4792
4828
|
]),
|
|
4793
|
-
g("div",
|
|
4829
|
+
g("div", yc, [
|
|
4794
4830
|
g("button", {
|
|
4795
4831
|
type: "button",
|
|
4796
4832
|
class: "-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",
|
|
4797
4833
|
onClick: E[0] || (E[0] = (O) => f.value = !0)
|
|
4798
4834
|
}, [
|
|
4799
|
-
|
|
4835
|
+
bc,
|
|
4800
4836
|
ue(z(Jl), {
|
|
4801
4837
|
class: "h-6 w-6",
|
|
4802
4838
|
"aria-hidden": "true"
|
|
4803
4839
|
})
|
|
4804
4840
|
])
|
|
4805
4841
|
]),
|
|
4806
|
-
g("div",
|
|
4807
|
-
e.isShenHe ? B("v-if", !0) : (
|
|
4842
|
+
g("div", wc, [
|
|
4843
|
+
e.isShenHe ? B("v-if", !0) : (A(), Ue(z(wo), {
|
|
4808
4844
|
key: 0,
|
|
4809
4845
|
class: "relative"
|
|
4810
4846
|
}, {
|
|
4811
4847
|
default: be(() => [
|
|
4812
4848
|
ue(z(Gl), null, {
|
|
4813
4849
|
default: be(() => [
|
|
4814
|
-
g("div",
|
|
4815
|
-
|
|
4816
|
-
ue(z(
|
|
4850
|
+
g("div", _c, [
|
|
4851
|
+
Ec,
|
|
4852
|
+
ue(z(dc), {
|
|
4817
4853
|
class: "h-5 w-5",
|
|
4818
4854
|
"aria-hidden": "true"
|
|
4819
4855
|
})
|
|
@@ -4833,8 +4869,8 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4833
4869
|
default: be(() => [
|
|
4834
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" }, {
|
|
4835
4871
|
default: be(() => [
|
|
4836
|
-
g("div",
|
|
4837
|
-
(
|
|
4872
|
+
g("div", Sc, [
|
|
4873
|
+
(A(), L(
|
|
4838
4874
|
ve,
|
|
4839
4875
|
null,
|
|
4840
4876
|
Mt(a, (O) => g("a", {
|
|
@@ -4842,7 +4878,7 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4842
4878
|
href: O.href,
|
|
4843
4879
|
class: "block p-2 hover:text-indigo-600",
|
|
4844
4880
|
target: "_blank"
|
|
4845
|
-
}, J(O.name), 9,
|
|
4881
|
+
}, J(O.name), 9, xc)),
|
|
4846
4882
|
64
|
|
4847
4883
|
/* STABLE_FRAGMENT */
|
|
4848
4884
|
))
|
|
@@ -4859,20 +4895,20 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4859
4895
|
_: 1
|
|
4860
4896
|
/* STABLE */
|
|
4861
4897
|
})),
|
|
4862
|
-
(
|
|
4898
|
+
(A(!0), L(
|
|
4863
4899
|
ve,
|
|
4864
4900
|
null,
|
|
4865
|
-
Mt(i.value, (O) => (
|
|
4901
|
+
Mt(i.value, (O) => (A(), L("a", {
|
|
4866
4902
|
key: O.name,
|
|
4867
4903
|
href: O.href,
|
|
4868
4904
|
target: O.target,
|
|
4869
4905
|
class: "navigation-item inline-flex items-center text-sm h-7 leading-7 font-semibold text-gray-900"
|
|
4870
|
-
}, J(O.name), 9,
|
|
4906
|
+
}, J(O.name), 9, Pc))),
|
|
4871
4907
|
128
|
|
4872
4908
|
/* KEYED_FRAGMENT */
|
|
4873
4909
|
))
|
|
4874
4910
|
]),
|
|
4875
|
-
e.isShenHe ? (
|
|
4911
|
+
e.isShenHe ? (A(), L("div", Oc)) : c.value ? (A(), L("div", Nc, [
|
|
4876
4912
|
g(
|
|
4877
4913
|
"div",
|
|
4878
4914
|
{
|
|
@@ -4881,7 +4917,7 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4881
4917
|
onMouseleave: y
|
|
4882
4918
|
},
|
|
4883
4919
|
[
|
|
4884
|
-
g("div",
|
|
4920
|
+
g("div", kc, [
|
|
4885
4921
|
g(
|
|
4886
4922
|
"span",
|
|
4887
4923
|
null,
|
|
@@ -4894,14 +4930,14 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4894
4930
|
class: "user-avatar h-10 rounded-full",
|
|
4895
4931
|
src: c.value.avatar || "https://statics.imgkits.com/images/default_user_avatar_black.png",
|
|
4896
4932
|
alt: "user avatar"
|
|
4897
|
-
}, null, 8,
|
|
4898
|
-
|
|
4899
|
-
|
|
4933
|
+
}, null, 8, Ac),
|
|
4934
|
+
Lc,
|
|
4935
|
+
Ye(g(
|
|
4900
4936
|
"div",
|
|
4901
4937
|
null,
|
|
4902
4938
|
[
|
|
4903
|
-
g("div",
|
|
4904
|
-
c.value ? (
|
|
4939
|
+
g("div", $c, [
|
|
4940
|
+
c.value ? (A(), Ue(cr, {
|
|
4905
4941
|
key: 0,
|
|
4906
4942
|
user: c.value
|
|
4907
4943
|
}, null, 8, ["user"])) : B("v-if", !0)
|
|
@@ -4916,14 +4952,14 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4916
4952
|
32
|
|
4917
4953
|
/* HYDRATE_EVENTS */
|
|
4918
4954
|
)
|
|
4919
|
-
])) : (
|
|
4955
|
+
])) : (A(), L("div", Tc, [
|
|
4920
4956
|
g("a", {
|
|
4921
4957
|
onClick: u,
|
|
4922
4958
|
href: "javscript:void(0)",
|
|
4923
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"
|
|
4924
4960
|
}, [
|
|
4925
4961
|
pt("Log in"),
|
|
4926
|
-
|
|
4962
|
+
Cc
|
|
4927
4963
|
])
|
|
4928
4964
|
]))
|
|
4929
4965
|
]),
|
|
@@ -4934,17 +4970,17 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4934
4970
|
open: f.value
|
|
4935
4971
|
}, {
|
|
4936
4972
|
default: be(() => [
|
|
4937
|
-
|
|
4973
|
+
Fc,
|
|
4938
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" }, {
|
|
4939
4975
|
default: be(() => [
|
|
4940
|
-
g("div",
|
|
4976
|
+
g("div", Rc, [
|
|
4941
4977
|
g("a", {
|
|
4942
4978
|
href: d.value,
|
|
4943
4979
|
class: "-m-1.5 p-1.5"
|
|
4944
4980
|
}, [
|
|
4945
4981
|
g(
|
|
4946
4982
|
"span",
|
|
4947
|
-
|
|
4983
|
+
jc,
|
|
4948
4984
|
J(o.value.name),
|
|
4949
4985
|
1
|
|
4950
4986
|
/* TEXT */
|
|
@@ -4953,47 +4989,47 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
4953
4989
|
class: "h-8 w-auto",
|
|
4954
4990
|
src: o.value.logo,
|
|
4955
4991
|
alt: o.value.name
|
|
4956
|
-
}, null, 8,
|
|
4957
|
-
], 8,
|
|
4992
|
+
}, null, 8, Ic)
|
|
4993
|
+
], 8, Dc),
|
|
4958
4994
|
g("button", {
|
|
4959
4995
|
type: "button",
|
|
4960
4996
|
class: "-m-2.5 rounded-md p-2.5 text-gray-700",
|
|
4961
4997
|
onClick: E[1] || (E[1] = (O) => f.value = !1)
|
|
4962
4998
|
}, [
|
|
4963
|
-
|
|
4999
|
+
Bc,
|
|
4964
5000
|
ue(z(Kl), {
|
|
4965
5001
|
class: "h-6 w-6",
|
|
4966
5002
|
"aria-hidden": "true"
|
|
4967
5003
|
})
|
|
4968
5004
|
])
|
|
4969
5005
|
]),
|
|
4970
|
-
g("div",
|
|
4971
|
-
g("div",
|
|
4972
|
-
g("div",
|
|
4973
|
-
e.isShenHe ? B("v-if", !0) : (
|
|
4974
|
-
(
|
|
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(
|
|
4975
5011
|
ve,
|
|
4976
5012
|
null,
|
|
4977
|
-
Mt(i.value, (O) => (
|
|
5013
|
+
Mt(i.value, (O) => (A(), L("a", {
|
|
4978
5014
|
key: O.name,
|
|
4979
5015
|
href: O.href,
|
|
4980
5016
|
target: O.target,
|
|
4981
5017
|
class: "-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
|
4982
|
-
}, J(O.name), 9,
|
|
5018
|
+
}, J(O.name), 9, zc))),
|
|
4983
5019
|
128
|
|
4984
5020
|
/* KEYED_FRAGMENT */
|
|
4985
5021
|
))
|
|
4986
5022
|
]),
|
|
4987
|
-
c.value ? (
|
|
5023
|
+
c.value ? (A(), L("div", {
|
|
4988
5024
|
key: 1,
|
|
4989
5025
|
class: "relative sm-user-center-dialog py-6 right flew-center",
|
|
4990
5026
|
onClick: S
|
|
4991
5027
|
}, [
|
|
4992
|
-
c.value ? (
|
|
5028
|
+
c.value ? (A(), Ue(cr, {
|
|
4993
5029
|
key: 0,
|
|
4994
5030
|
user: c.value
|
|
4995
5031
|
}, null, 8, ["user"])) : B("v-if", !0)
|
|
4996
|
-
])) : (
|
|
5032
|
+
])) : (A(), L("div", qc, [
|
|
4997
5033
|
g("a", {
|
|
4998
5034
|
href: "#",
|
|
4999
5035
|
onClick: u,
|
|
@@ -5015,12 +5051,12 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
5015
5051
|
/* CLASS */
|
|
5016
5052
|
),
|
|
5017
5053
|
B(" 引入登录 "),
|
|
5018
|
-
e.userStore.isShowLogin ? (
|
|
5054
|
+
e.userStore.isShowLogin ? (A(), Ue(Cu, {
|
|
5019
5055
|
key: 0,
|
|
5020
|
-
onSuccess:
|
|
5021
|
-
onClose:
|
|
5056
|
+
onSuccess: m,
|
|
5057
|
+
onClose: v
|
|
5022
5058
|
})) : B("v-if", !0),
|
|
5023
|
-
e.userStore.isShowToast ? (
|
|
5059
|
+
e.userStore.isShowToast ? (A(), Ue(cc, {
|
|
5024
5060
|
key: 1,
|
|
5025
5061
|
content: e.userStore.toastContent
|
|
5026
5062
|
}, null, 8, ["content"])) : B("v-if", !0)
|
|
@@ -5029,11 +5065,11 @@ const Ne = (e) => (nt("data-v-c970699f"), e = e(), rt(), e), cc = {
|
|
|
5029
5065
|
/* STABLE_FRAGMENT */
|
|
5030
5066
|
));
|
|
5031
5067
|
}
|
|
5032
|
-
},
|
|
5068
|
+
}, Wc = /* @__PURE__ */ lt(Gc, [["__scopeId", "data-v-c970699f"], ["__file", "/Users/yinheng/Desktop/code/xiaochengxu/liusenlin_project/Translation_Video/src/components/Header.vue"]]), Kc = {
|
|
5033
5069
|
install(e) {
|
|
5034
|
-
e.component("my-header",
|
|
5070
|
+
e.component("my-header", Wc);
|
|
5035
5071
|
}
|
|
5036
5072
|
};
|
|
5037
5073
|
export {
|
|
5038
|
-
|
|
5074
|
+
Kc as default
|
|
5039
5075
|
};
|