vela-h5-sdk 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vela-login-sdk.es.js +95 -91
- package/dist/vela-login-sdk.umd.js +11 -11
- package/package.json +1 -1
|
@@ -273,34 +273,34 @@ var P = class extends HTMLElement {
|
|
|
273
273
|
P.elementStyles = [], P.shadowRootOptions = { mode: "open" }, P[A("elementProperties")] = /* @__PURE__ */ new Map(), P[A("finalized")] = /* @__PURE__ */ new Map(), k?.({ ReactiveElement: P }), (E.reactiveElementVersions ??= []).push("2.1.2");
|
|
274
274
|
//#endregion
|
|
275
275
|
//#region node_modules/lit-html/lit-html.js
|
|
276
|
-
var ee = globalThis, te = (e) => e, F = ee.trustedTypes, I = F ? F.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, L = "$lit$", R = `lit$${Math.random().toFixed(9).slice(2)}$`, ne = "?" + R, re = `<${ne}>`, z = document, ie = () => z.createComment(""), B = (e) => e === null || typeof e != "object" && typeof e != "function",
|
|
276
|
+
var ee = globalThis, te = (e) => e, F = ee.trustedTypes, I = F ? F.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, L = "$lit$", R = `lit$${Math.random().toFixed(9).slice(2)}$`, ne = "?" + R, re = `<${ne}>`, z = document, ie = () => z.createComment(""), B = (e) => e === null || typeof e != "object" && typeof e != "function", ae = Array.isArray, oe = (e) => ae(e) || typeof e?.[Symbol.iterator] == "function", se = "[ \n\f\r]", ce = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, le = /-->/g, ue = />/g, de = RegExp(`>|${se}(?:([^\\s"'>=/]+)(${se}*=${se}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), fe = /'/g, pe = /"/g, me = /^(?:script|style|textarea|title)$/i, he = ((e) => (t, ...n) => ({
|
|
277
277
|
_$litType$: e,
|
|
278
278
|
strings: t,
|
|
279
279
|
values: n
|
|
280
|
-
}))(1),
|
|
281
|
-
function
|
|
282
|
-
if (!
|
|
280
|
+
}))(1), ge = Symbol.for("lit-noChange"), V = Symbol.for("lit-nothing"), _e = /* @__PURE__ */ new WeakMap(), ve = z.createTreeWalker(z, 129);
|
|
281
|
+
function ye(e, t) {
|
|
282
|
+
if (!ae(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
283
283
|
return I === void 0 ? t : I.createHTML(t);
|
|
284
284
|
}
|
|
285
|
-
var
|
|
286
|
-
let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o =
|
|
285
|
+
var be = (e, t) => {
|
|
286
|
+
let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = ce;
|
|
287
287
|
for (let t = 0; t < n; t++) {
|
|
288
288
|
let n = e[t], s, c, l = -1, u = 0;
|
|
289
|
-
for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o ===
|
|
290
|
-
let d = o ===
|
|
291
|
-
a += o ===
|
|
289
|
+
for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === ce ? c[1] === "!--" ? o = le : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = de) : (me.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = de) : o = ue : o === de ? c[0] === ">" ? (o = i ?? ce, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? de : c[3] === "\"" ? pe : fe) : o === pe || o === fe ? o = de : o === le || o === ue ? o = ce : (o = de, i = void 0);
|
|
290
|
+
let d = o === de && e[t + 1].startsWith("/>") ? " " : "";
|
|
291
|
+
a += o === ce ? n + re : l >= 0 ? (r.push(s), n.slice(0, l) + L + n.slice(l) + R + d) : n + R + (l === -2 ? t : d);
|
|
292
292
|
}
|
|
293
|
-
return [
|
|
294
|
-
},
|
|
293
|
+
return [ye(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
294
|
+
}, xe = class e {
|
|
295
295
|
constructor({ strings: t, _$litType$: n }, r) {
|
|
296
296
|
let i;
|
|
297
297
|
this.parts = [];
|
|
298
|
-
let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] =
|
|
299
|
-
if (this.el = e.createElement(l, r),
|
|
298
|
+
let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = be(t, n);
|
|
299
|
+
if (this.el = e.createElement(l, r), ve.currentNode = this.el.content, n === 2 || n === 3) {
|
|
300
300
|
let e = this.el.content.firstChild;
|
|
301
301
|
e.replaceWith(...e.childNodes);
|
|
302
302
|
}
|
|
303
|
-
for (; (i =
|
|
303
|
+
for (; (i = ve.nextNode()) !== null && c.length < s;) {
|
|
304
304
|
if (i.nodeType === 1) {
|
|
305
305
|
if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(L)) {
|
|
306
306
|
let t = u[o++], n = i.getAttribute(e).split(R), r = /([.?@])?(.*)/.exec(t);
|
|
@@ -309,17 +309,17 @@ var ye = (e, t) => {
|
|
|
309
309
|
index: a,
|
|
310
310
|
name: r[2],
|
|
311
311
|
strings: n,
|
|
312
|
-
ctor: r[1] === "." ?
|
|
312
|
+
ctor: r[1] === "." ? Ee : r[1] === "?" ? De : r[1] === "@" ? Oe : Te
|
|
313
313
|
}), i.removeAttribute(e);
|
|
314
314
|
} else e.startsWith(R) && (c.push({
|
|
315
315
|
type: 6,
|
|
316
316
|
index: a
|
|
317
317
|
}), i.removeAttribute(e));
|
|
318
|
-
if (
|
|
318
|
+
if (me.test(i.tagName)) {
|
|
319
319
|
let e = i.textContent.split(R), t = e.length - 1;
|
|
320
320
|
if (t > 0) {
|
|
321
321
|
i.textContent = F ? F.emptyScript : "";
|
|
322
|
-
for (let n = 0; n < t; n++) i.append(e[n], ie()),
|
|
322
|
+
for (let n = 0; n < t; n++) i.append(e[n], ie()), ve.nextNode(), c.push({
|
|
323
323
|
type: 2,
|
|
324
324
|
index: ++a
|
|
325
325
|
});
|
|
@@ -347,12 +347,12 @@ var ye = (e, t) => {
|
|
|
347
347
|
return n.innerHTML = e, n;
|
|
348
348
|
}
|
|
349
349
|
};
|
|
350
|
-
function
|
|
351
|
-
if (t ===
|
|
350
|
+
function Se(e, t, n = e, r) {
|
|
351
|
+
if (t === ge) return t;
|
|
352
352
|
let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = B(t) ? void 0 : t._$litDirective$;
|
|
353
|
-
return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t =
|
|
353
|
+
return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = Se(e, i._$AS(e, t.values), i, r)), t;
|
|
354
354
|
}
|
|
355
|
-
var
|
|
355
|
+
var Ce = class {
|
|
356
356
|
constructor(e, t) {
|
|
357
357
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
358
358
|
}
|
|
@@ -364,27 +364,27 @@ var Se = class {
|
|
|
364
364
|
}
|
|
365
365
|
u(e) {
|
|
366
366
|
let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? z).importNode(t, !0);
|
|
367
|
-
|
|
368
|
-
let i =
|
|
367
|
+
ve.currentNode = r;
|
|
368
|
+
let i = ve.nextNode(), a = 0, o = 0, s = n[0];
|
|
369
369
|
for (; s !== void 0;) {
|
|
370
370
|
if (a === s.index) {
|
|
371
371
|
let t;
|
|
372
|
-
s.type === 2 ? t = new
|
|
372
|
+
s.type === 2 ? t = new we(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new ke(i, this, e)), this._$AV.push(t), s = n[++o];
|
|
373
373
|
}
|
|
374
|
-
a !== s?.index && (i =
|
|
374
|
+
a !== s?.index && (i = ve.nextNode(), a++);
|
|
375
375
|
}
|
|
376
|
-
return
|
|
376
|
+
return ve.currentNode = z, r;
|
|
377
377
|
}
|
|
378
378
|
p(e) {
|
|
379
379
|
let t = 0;
|
|
380
380
|
for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
|
|
381
381
|
}
|
|
382
|
-
},
|
|
382
|
+
}, we = class e {
|
|
383
383
|
get _$AU() {
|
|
384
384
|
return this._$AM?._$AU ?? this._$Cv;
|
|
385
385
|
}
|
|
386
386
|
constructor(e, t, n, r) {
|
|
387
|
-
this.type = 2, this._$AH =
|
|
387
|
+
this.type = 2, this._$AH = V, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
|
|
388
388
|
}
|
|
389
389
|
get parentNode() {
|
|
390
390
|
let e = this._$AA.parentNode, t = this._$AM;
|
|
@@ -397,7 +397,7 @@ var Se = class {
|
|
|
397
397
|
return this._$AB;
|
|
398
398
|
}
|
|
399
399
|
_$AI(e, t = this) {
|
|
400
|
-
e =
|
|
400
|
+
e = Se(this, e, t), B(e) ? e === V || e == null || e === "" ? (this._$AH !== V && this._$AR(), this._$AH = V) : e !== this._$AH && e !== ge && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? oe(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
|
|
401
401
|
}
|
|
402
402
|
O(e) {
|
|
403
403
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -406,22 +406,22 @@ var Se = class {
|
|
|
406
406
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
407
407
|
}
|
|
408
408
|
_(e) {
|
|
409
|
-
this._$AH !==
|
|
409
|
+
this._$AH !== V && B(this._$AH) ? this._$AA.nextSibling.data = e : this.T(z.createTextNode(e)), this._$AH = e;
|
|
410
410
|
}
|
|
411
411
|
$(e) {
|
|
412
|
-
let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el =
|
|
412
|
+
let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = xe.createElement(ye(n.h, n.h[0]), this.options)), n);
|
|
413
413
|
if (this._$AH?._$AD === r) this._$AH.p(t);
|
|
414
414
|
else {
|
|
415
|
-
let e = new
|
|
415
|
+
let e = new Ce(r, this), n = e.u(this.options);
|
|
416
416
|
e.p(t), this.T(n), this._$AH = e;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
_$AC(e) {
|
|
420
|
-
let t =
|
|
421
|
-
return t === void 0 &&
|
|
420
|
+
let t = _e.get(e.strings);
|
|
421
|
+
return t === void 0 && _e.set(e.strings, t = new xe(e)), t;
|
|
422
422
|
}
|
|
423
423
|
k(t) {
|
|
424
|
-
|
|
424
|
+
ae(this._$AH) || (this._$AH = [], this._$AR());
|
|
425
425
|
let n = this._$AH, r, i = 0;
|
|
426
426
|
for (let a of t) i === n.length ? n.push(r = new e(this.O(ie()), this.O(ie()), this, this.options)) : r = n[i], r._$AI(a), i++;
|
|
427
427
|
i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
|
|
@@ -435,7 +435,7 @@ var Se = class {
|
|
|
435
435
|
setConnected(e) {
|
|
436
436
|
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
|
|
437
437
|
}
|
|
438
|
-
},
|
|
438
|
+
}, Te = class {
|
|
439
439
|
get tagName() {
|
|
440
440
|
return this.element.tagName;
|
|
441
441
|
}
|
|
@@ -443,47 +443,47 @@ var Se = class {
|
|
|
443
443
|
return this._$AM._$AU;
|
|
444
444
|
}
|
|
445
445
|
constructor(e, t, n, r, i) {
|
|
446
|
-
this.type = 1, this._$AH =
|
|
446
|
+
this.type = 1, this._$AH = V, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = V;
|
|
447
447
|
}
|
|
448
448
|
_$AI(e, t = this, n, r) {
|
|
449
449
|
let i = this.strings, a = !1;
|
|
450
|
-
if (i === void 0) e =
|
|
450
|
+
if (i === void 0) e = Se(this, e, t, 0), a = !B(e) || e !== this._$AH && e !== ge, a && (this._$AH = e);
|
|
451
451
|
else {
|
|
452
452
|
let r = e, o, s;
|
|
453
|
-
for (e = i[0], o = 0; o < i.length - 1; o++) s =
|
|
453
|
+
for (e = i[0], o = 0; o < i.length - 1; o++) s = Se(this, r[n + o], t, o), s === ge && (s = this._$AH[o]), a ||= !B(s) || s !== this._$AH[o], s === V ? e = V : e !== V && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
|
|
454
454
|
}
|
|
455
455
|
a && !r && this.j(e);
|
|
456
456
|
}
|
|
457
457
|
j(e) {
|
|
458
|
-
e ===
|
|
458
|
+
e === V ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
459
459
|
}
|
|
460
|
-
},
|
|
460
|
+
}, Ee = class extends Te {
|
|
461
461
|
constructor() {
|
|
462
462
|
super(...arguments), this.type = 3;
|
|
463
463
|
}
|
|
464
464
|
j(e) {
|
|
465
|
-
this.element[this.name] = e ===
|
|
465
|
+
this.element[this.name] = e === V ? void 0 : e;
|
|
466
466
|
}
|
|
467
|
-
},
|
|
467
|
+
}, De = class extends Te {
|
|
468
468
|
constructor() {
|
|
469
469
|
super(...arguments), this.type = 4;
|
|
470
470
|
}
|
|
471
471
|
j(e) {
|
|
472
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
472
|
+
this.element.toggleAttribute(this.name, !!e && e !== V);
|
|
473
473
|
}
|
|
474
|
-
},
|
|
474
|
+
}, Oe = class extends Te {
|
|
475
475
|
constructor(e, t, n, r, i) {
|
|
476
476
|
super(e, t, n, r, i), this.type = 5;
|
|
477
477
|
}
|
|
478
478
|
_$AI(e, t = this) {
|
|
479
|
-
if ((e =
|
|
480
|
-
let n = this._$AH, r = e ===
|
|
479
|
+
if ((e = Se(this, e, t, 0) ?? V) === ge) return;
|
|
480
|
+
let n = this._$AH, r = e === V && n !== V || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== V && (n === V || r);
|
|
481
481
|
r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
482
482
|
}
|
|
483
483
|
handleEvent(e) {
|
|
484
484
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
485
485
|
}
|
|
486
|
-
},
|
|
486
|
+
}, ke = class {
|
|
487
487
|
constructor(e, t, n) {
|
|
488
488
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
|
|
489
489
|
}
|
|
@@ -491,18 +491,18 @@ var Se = class {
|
|
|
491
491
|
return this._$AM._$AU;
|
|
492
492
|
}
|
|
493
493
|
_$AI(e) {
|
|
494
|
-
|
|
494
|
+
Se(this, e);
|
|
495
495
|
}
|
|
496
|
-
},
|
|
497
|
-
|
|
498
|
-
var
|
|
496
|
+
}, Ae = ee.litHtmlPolyfillSupport;
|
|
497
|
+
Ae?.(xe, we), (ee.litHtmlVersions ??= []).push("3.3.3");
|
|
498
|
+
var je = (e, t, n) => {
|
|
499
499
|
let r = n?.renderBefore ?? t, i = r._$litPart$;
|
|
500
500
|
if (i === void 0) {
|
|
501
501
|
let e = n?.renderBefore ?? null;
|
|
502
|
-
r._$litPart$ = i = new
|
|
502
|
+
r._$litPart$ = i = new we(t.insertBefore(ie(), e), e, void 0, n ?? {});
|
|
503
503
|
}
|
|
504
504
|
return i._$AI(e), i;
|
|
505
|
-
},
|
|
505
|
+
}, Me = globalThis, Ne = class extends P {
|
|
506
506
|
constructor() {
|
|
507
507
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
508
508
|
}
|
|
@@ -512,7 +512,7 @@ var Ae = (e, t, n) => {
|
|
|
512
512
|
}
|
|
513
513
|
update(e) {
|
|
514
514
|
let t = this.render();
|
|
515
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
515
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = je(t, this.renderRoot, this.renderOptions);
|
|
516
516
|
}
|
|
517
517
|
connectedCallback() {
|
|
518
518
|
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
@@ -521,25 +521,25 @@ var Ae = (e, t, n) => {
|
|
|
521
521
|
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
522
522
|
}
|
|
523
523
|
render() {
|
|
524
|
-
return
|
|
524
|
+
return ge;
|
|
525
525
|
}
|
|
526
526
|
};
|
|
527
|
-
|
|
528
|
-
var
|
|
529
|
-
|
|
527
|
+
Ne._$litElement$ = !0, Ne.finalized = !0, Me.litElementHydrateSupport?.({ LitElement: Ne });
|
|
528
|
+
var Pe = Me.litElementPolyfillSupport;
|
|
529
|
+
Pe?.({ LitElement: Ne }), (Me.litElementVersions ??= []).push("4.2.2");
|
|
530
530
|
//#endregion
|
|
531
531
|
//#region node_modules/@lit/reactive-element/decorators/custom-element.js
|
|
532
|
-
var
|
|
532
|
+
var Fe = (e) => (t, n) => {
|
|
533
533
|
n === void 0 ? customElements.define(e, t) : n.addInitializer(() => {
|
|
534
534
|
customElements.define(e, t);
|
|
535
535
|
});
|
|
536
|
-
},
|
|
536
|
+
}, Ie = {
|
|
537
537
|
attribute: !0,
|
|
538
538
|
type: String,
|
|
539
539
|
converter: j,
|
|
540
540
|
reflect: !1,
|
|
541
541
|
hasChanged: M
|
|
542
|
-
},
|
|
542
|
+
}, Le = (e = Ie, t, n) => {
|
|
543
543
|
let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
|
|
544
544
|
if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
|
|
545
545
|
let { name: r } = n;
|
|
@@ -562,8 +562,8 @@ var Pe = (e) => (t, n) => {
|
|
|
562
562
|
}
|
|
563
563
|
throw Error("Unsupported decorator location: " + r);
|
|
564
564
|
};
|
|
565
|
-
function
|
|
566
|
-
return (t, n) => typeof n == "object" ?
|
|
565
|
+
function H(e) {
|
|
566
|
+
return (t, n) => typeof n == "object" ? Le(e, t, n) : ((e, t, n) => {
|
|
567
567
|
let r = t.hasOwnProperty(n);
|
|
568
568
|
return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
|
|
569
569
|
})(e, t, n);
|
|
@@ -571,7 +571,7 @@ function Le(e) {
|
|
|
571
571
|
//#endregion
|
|
572
572
|
//#region node_modules/@lit/reactive-element/decorators/state.js
|
|
573
573
|
function Re(e) {
|
|
574
|
-
return
|
|
574
|
+
return H({
|
|
575
575
|
...e,
|
|
576
576
|
state: !0,
|
|
577
577
|
attribute: !1
|
|
@@ -1182,14 +1182,14 @@ var ze = /* @__PURE__ */ o(((e, t) => {
|
|
|
1182
1182
|
},
|
|
1183
1183
|
_doProcessBlock: function(e, t) {
|
|
1184
1184
|
for (var n = this._hash.words, r = n[0], i = n[1], a = n[2], o = n[3], s = n[4], u = n[5], d = n[6], f = n[7], p = r.high, m = r.low, h = i.high, g = i.low, _ = a.high, v = a.low, y = o.high, b = o.low, x = s.high, S = s.low, C = u.high, w = u.low, T = d.high, E = d.low, D = f.high, O = f.low, k = p, A = m, j = h, M = g, N = _, P = v, ee = y, te = b, F = x, I = S, L = C, R = w, ne = T, re = E, z = D, ie = O, B = 0; B < 80; B++) {
|
|
1185
|
-
var
|
|
1186
|
-
if (B < 16)
|
|
1185
|
+
var ae, oe, se = l[B];
|
|
1186
|
+
if (B < 16) oe = se.high = e[t + B * 2] | 0, ae = se.low = e[t + B * 2 + 1] | 0;
|
|
1187
1187
|
else {
|
|
1188
|
-
var
|
|
1189
|
-
|
|
1188
|
+
var ce = l[B - 15], le = ce.high, ue = ce.low, de = (le >>> 1 | ue << 31) ^ (le >>> 8 | ue << 24) ^ le >>> 7, fe = (ue >>> 1 | le << 31) ^ (ue >>> 8 | le << 24) ^ (ue >>> 7 | le << 25), pe = l[B - 2], me = pe.high, he = pe.low, ge = (me >>> 19 | he << 13) ^ (me << 3 | he >>> 29) ^ me >>> 6, V = (he >>> 19 | me << 13) ^ (he << 3 | me >>> 29) ^ (he >>> 6 | me << 26), _e = l[B - 7], ve = _e.high, ye = _e.low, be = l[B - 16], xe = be.high, Se = be.low;
|
|
1189
|
+
ae = fe + ye, oe = de + ve + +(ae >>> 0 < fe >>> 0), ae += V, oe = oe + ge + +(ae >>> 0 < V >>> 0), ae += Se, oe = oe + xe + +(ae >>> 0 < Se >>> 0), se.high = oe, se.low = ae;
|
|
1190
1190
|
}
|
|
1191
|
-
var
|
|
1192
|
-
z = ne, ie = re, ne = L, re = R, L = F, R = I, I = te +
|
|
1191
|
+
var Ce = F & L ^ ~F & ne, we = I & R ^ ~I & re, Te = k & j ^ k & N ^ j & N, Ee = A & M ^ A & P ^ M & P, De = (k >>> 28 | A << 4) ^ (k << 30 | A >>> 2) ^ (k << 25 | A >>> 7), Oe = (A >>> 28 | k << 4) ^ (A << 30 | k >>> 2) ^ (A << 25 | k >>> 7), ke = (F >>> 14 | I << 18) ^ (F >>> 18 | I << 14) ^ (F << 23 | I >>> 9), Ae = (I >>> 14 | F << 18) ^ (I >>> 18 | F << 14) ^ (I << 23 | F >>> 9), je = c[B], Me = je.high, Ne = je.low, Pe = ie + Ae, Fe = z + ke + +(Pe >>> 0 < ie >>> 0), Pe = Pe + we, Fe = Fe + Ce + +(Pe >>> 0 < we >>> 0), Pe = Pe + Ne, Fe = Fe + Me + +(Pe >>> 0 < Ne >>> 0), Pe = Pe + ae, Fe = Fe + oe + +(Pe >>> 0 < ae >>> 0), Ie = Oe + Ee, Le = De + Te + +(Ie >>> 0 < Oe >>> 0);
|
|
1192
|
+
z = ne, ie = re, ne = L, re = R, L = F, R = I, I = te + Pe | 0, F = ee + Fe + +(I >>> 0 < te >>> 0) | 0, ee = N, te = P, N = j, P = M, j = k, M = A, A = Pe + Ie | 0, k = Fe + Le + +(A >>> 0 < Pe >>> 0) | 0;
|
|
1193
1193
|
}
|
|
1194
1194
|
m = r.low = m + A, r.high = p + k + +(m >>> 0 < A >>> 0), g = i.low = g + M, i.high = h + j + +(g >>> 0 < M >>> 0), v = a.low = v + P, a.high = _ + N + +(v >>> 0 < P >>> 0), b = o.low = b + te, o.high = y + ee + +(b >>> 0 < te >>> 0), S = s.low = S + I, s.high = x + F + +(S >>> 0 < I >>> 0), w = u.low = w + R, u.high = C + L + +(w >>> 0 < R >>> 0), E = d.low = E + re, d.high = T + ne + +(E >>> 0 < re >>> 0), O = f.low = O + ie, f.high = D + z + +(O >>> 0 < ie >>> 0);
|
|
1195
1195
|
},
|
|
@@ -6381,9 +6381,9 @@ function Q(e, t, n, r) {
|
|
|
6381
6381
|
}
|
|
6382
6382
|
//#endregion
|
|
6383
6383
|
//#region src/VelaLogin.ts
|
|
6384
|
-
var $ = class extends
|
|
6384
|
+
var $ = class extends Ne {
|
|
6385
6385
|
constructor(...e) {
|
|
6386
|
-
super(...e), this.visible = !0, this.appId = "", this.channelId = "", this.csrfToken = "", this.appleClientId = "", this.appleScope = "", this.appleState = "", this.appleNonce = "", this.appleUsePopup = !1, this.appleRedirectURI = "", this.facebookAppId = "", this.
|
|
6386
|
+
super(...e), this.visible = !0, this.appId = "", this.channelId = "", this.csrfToken = "", this.appleClientId = "", this.appleScope = "", this.appleState = "", this.appleNonce = "", this.appleUsePopup = !1, this.appleRedirectURI = "", this.facebookAppId = "", this.currentView = "login", this.userInfo = null, this._isLoading = !1, this.accountName = "", this.passcode = "", this.confirmPasscode = "", this.reset_password = "", this.reset_new_password = "", this.reset_new_confirm_password = "", this.STORAGE_KEY = "vela_sdk_user_info", this.quickLoginResolve = null;
|
|
6387
6387
|
}
|
|
6388
6388
|
static {
|
|
6389
6389
|
this.styles = _`
|
|
@@ -6870,7 +6870,7 @@ var $ = class extends Me {
|
|
|
6870
6870
|
return this.currentView === "register" ? this.switchToLogin() : this.currentView.startsWith("userCenter-") ? this.switchToUserCenter() : this.currentView.startsWith("binding-") ? this.switchToUserBinding() : this.close();
|
|
6871
6871
|
}
|
|
6872
6872
|
render() {
|
|
6873
|
-
return this.visible ?
|
|
6873
|
+
return this.visible ? he`
|
|
6874
6874
|
<div class="dialog-box active"> <!-- active 控制显示 -->
|
|
6875
6875
|
<div class="dialog-wrap">
|
|
6876
6876
|
<div class="dialog-conmain">
|
|
@@ -6885,15 +6885,15 @@ var $ = class extends Me {
|
|
|
6885
6885
|
</div>
|
|
6886
6886
|
</div>
|
|
6887
6887
|
</div>
|
|
6888
|
-
${this._isLoading ?
|
|
6888
|
+
${this._isLoading ? he`
|
|
6889
6889
|
<div class="loading-overlay">
|
|
6890
6890
|
<div class="spinner"></div>
|
|
6891
6891
|
</div>
|
|
6892
6892
|
` : ""}
|
|
6893
|
-
` :
|
|
6893
|
+
` : he``;
|
|
6894
6894
|
}
|
|
6895
6895
|
renderLoginForm() {
|
|
6896
|
-
return
|
|
6896
|
+
return he`
|
|
6897
6897
|
<form @submit="${this.handleAccountLoginSubmit}">
|
|
6898
6898
|
<div class="field-group">
|
|
6899
6899
|
<label class="input-label" for="account-name">Account:</label>
|
|
@@ -6959,7 +6959,7 @@ var $ = class extends Me {
|
|
|
6959
6959
|
`;
|
|
6960
6960
|
}
|
|
6961
6961
|
renderRegisterForm() {
|
|
6962
|
-
return
|
|
6962
|
+
return he`
|
|
6963
6963
|
<form @submit="${this.handleAccountRegisterSubmit}">
|
|
6964
6964
|
<div class="field-group">
|
|
6965
6965
|
<label class="input-label" for="reg-name">Account:</label>
|
|
@@ -6991,7 +6991,7 @@ var $ = class extends Me {
|
|
|
6991
6991
|
`;
|
|
6992
6992
|
}
|
|
6993
6993
|
renderCenterForm() {
|
|
6994
|
-
return
|
|
6994
|
+
return he`
|
|
6995
6995
|
<div class="center-btn-list">
|
|
6996
6996
|
<div>
|
|
6997
6997
|
<div class="center-title">账号中心</div>
|
|
@@ -7020,7 +7020,7 @@ var $ = class extends Me {
|
|
|
7020
7020
|
`;
|
|
7021
7021
|
}
|
|
7022
7022
|
renderResetPasswordForm() {
|
|
7023
|
-
return
|
|
7023
|
+
return he`
|
|
7024
7024
|
<form @submit="${this.handleResetPasswordSubmit}">
|
|
7025
7025
|
<div class="field-group">
|
|
7026
7026
|
<label class="input-label" for="reg-passcode">Old Password:</label>
|
|
@@ -7052,7 +7052,7 @@ var $ = class extends Me {
|
|
|
7052
7052
|
`;
|
|
7053
7053
|
}
|
|
7054
7054
|
renderBindingForm() {
|
|
7055
|
-
return
|
|
7055
|
+
return he`
|
|
7056
7056
|
<div class="binding-content">
|
|
7057
7057
|
<div class="center-title">账户绑定</div>
|
|
7058
7058
|
<div class="center-id">aa_123</div>
|
|
@@ -7158,6 +7158,7 @@ var $ = class extends Me {
|
|
|
7158
7158
|
try {
|
|
7159
7159
|
let e = await ha.request.post(ha.urls.url_web_account_login, {
|
|
7160
7160
|
app_id: this.appId,
|
|
7161
|
+
channel_id: this.channelId,
|
|
7161
7162
|
name: t,
|
|
7162
7163
|
name2: this.accountName,
|
|
7163
7164
|
password: n,
|
|
@@ -7236,33 +7237,36 @@ var $ = class extends Me {
|
|
|
7236
7237
|
}
|
|
7237
7238
|
}
|
|
7238
7239
|
};
|
|
7239
|
-
Q([
|
|
7240
|
+
Q([H({
|
|
7240
7241
|
type: Boolean,
|
|
7241
7242
|
reflect: !0
|
|
7242
|
-
})], $.prototype, "visible", void 0), Q([
|
|
7243
|
+
})], $.prototype, "visible", void 0), Q([H({ type: String })], $.prototype, "appId", void 0), Q([H({ type: String })], $.prototype, "channelId", void 0), Q([H({
|
|
7243
7244
|
type: String,
|
|
7244
7245
|
attribute: "csrf-token"
|
|
7245
|
-
})], $.prototype, "csrfToken", void 0), Q([
|
|
7246
|
+
})], $.prototype, "csrfToken", void 0), Q([H({
|
|
7246
7247
|
type: String,
|
|
7247
7248
|
attribute: "apple-client-id"
|
|
7248
|
-
})], $.prototype, "appleClientId", void 0), Q([
|
|
7249
|
+
})], $.prototype, "appleClientId", void 0), Q([H({
|
|
7249
7250
|
type: String,
|
|
7250
7251
|
attribute: "apple-scope"
|
|
7251
|
-
})], $.prototype, "appleScope", void 0), Q([
|
|
7252
|
+
})], $.prototype, "appleScope", void 0), Q([H({
|
|
7252
7253
|
type: String,
|
|
7253
7254
|
attribute: "apple-state"
|
|
7254
|
-
})], $.prototype, "appleState", void 0), Q([
|
|
7255
|
+
})], $.prototype, "appleState", void 0), Q([H({
|
|
7255
7256
|
type: String,
|
|
7256
7257
|
attribute: "apple-nonce"
|
|
7257
|
-
})], $.prototype, "appleNonce", void 0), Q([
|
|
7258
|
+
})], $.prototype, "appleNonce", void 0), Q([H({
|
|
7258
7259
|
type: Boolean,
|
|
7259
7260
|
attribute: "apple-use-popup"
|
|
7260
|
-
})], $.prototype, "appleUsePopup", void 0), Q([
|
|
7261
|
+
})], $.prototype, "appleUsePopup", void 0), Q([H({
|
|
7261
7262
|
type: String,
|
|
7262
7263
|
attribute: "apple-redirect-uri"
|
|
7263
|
-
})], $.prototype, "appleRedirectURI", void 0), Q([
|
|
7264
|
+
})], $.prototype, "appleRedirectURI", void 0), Q([H({
|
|
7264
7265
|
type: String,
|
|
7265
7266
|
attribute: "facebook-app-id"
|
|
7266
|
-
})], $.prototype, "facebookAppId", void 0), Q([
|
|
7267
|
+
})], $.prototype, "facebookAppId", void 0), Q([H({
|
|
7268
|
+
type: String,
|
|
7269
|
+
attribute: "view-mode"
|
|
7270
|
+
})], $.prototype, "currentView", void 0), Q([Re()], $.prototype, "userInfo", void 0), Q([Re()], $.prototype, "_isLoading", void 0), Q([Re()], $.prototype, "accountName", void 0), Q([Re()], $.prototype, "passcode", void 0), Q([Re()], $.prototype, "confirmPasscode", void 0), Q([Re()], $.prototype, "reset_password", void 0), Q([Re()], $.prototype, "reset_new_password", void 0), Q([Re()], $.prototype, "reset_new_confirm_password", void 0), $ = Q([Fe("vela-login")], $);
|
|
7267
7271
|
//#endregion
|
|
7268
7272
|
export { $ as VelaLogin };
|