@telia-ace/widget-core-flamingo 1.1.129-rc.9 → 1.1.129
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/index.js +23 -23
- package/index.mjs +203 -203
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
return
|
|
1
|
+
var mt = function(r, t) {
|
|
2
|
+
return mt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
|
3
3
|
e.__proto__ = i;
|
|
4
4
|
} || function(e, i) {
|
|
5
5
|
for (var s in i) Object.prototype.hasOwnProperty.call(i, s) && (e[s] = i[s]);
|
|
6
|
-
},
|
|
6
|
+
}, mt(r, t);
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function K(r, t) {
|
|
9
9
|
if (typeof t != "function" && t !== null)
|
|
10
10
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
11
|
-
|
|
11
|
+
mt(r, t);
|
|
12
12
|
function e() {
|
|
13
13
|
this.constructor = r;
|
|
14
14
|
}
|
|
15
15
|
r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function vt(r) {
|
|
18
18
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], i = 0;
|
|
19
19
|
if (e) return e.call(r);
|
|
20
20
|
if (r && typeof r.length == "number") return {
|
|
@@ -24,7 +24,7 @@ function mt(r) {
|
|
|
24
24
|
};
|
|
25
25
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function yt(r, t) {
|
|
28
28
|
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
|
29
29
|
if (!e) return r;
|
|
30
30
|
var i = e.call(r), s, n = [], o;
|
|
@@ -41,7 +41,7 @@ function vt(r, t) {
|
|
|
41
41
|
}
|
|
42
42
|
return n;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function bt(r, t, e) {
|
|
45
45
|
if (e || arguments.length === 2) for (var i = 0, s = t.length, n; i < s; i++)
|
|
46
46
|
(n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
|
|
47
47
|
return r.concat(n || Array.prototype.slice.call(t));
|
|
@@ -49,13 +49,13 @@ function yt(r, t, e) {
|
|
|
49
49
|
function _(r) {
|
|
50
50
|
return typeof r == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function he(r) {
|
|
53
53
|
var t = function(i) {
|
|
54
54
|
Error.call(i), i.stack = new Error().stack;
|
|
55
55
|
}, e = r(t);
|
|
56
56
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
57
57
|
}
|
|
58
|
-
var
|
|
58
|
+
var ct = he(function(r) {
|
|
59
59
|
return function(e) {
|
|
60
60
|
r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
|
61
61
|
` + e.map(function(i, s) {
|
|
@@ -64,13 +64,13 @@ var at = ce(function(r) {
|
|
|
64
64
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
65
65
|
};
|
|
66
66
|
});
|
|
67
|
-
function
|
|
67
|
+
function wt(r, t) {
|
|
68
68
|
if (r) {
|
|
69
69
|
var e = r.indexOf(t);
|
|
70
70
|
0 <= e && r.splice(e, 1);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
var
|
|
73
|
+
var ot = (function() {
|
|
74
74
|
function r(t) {
|
|
75
75
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
76
76
|
}
|
|
@@ -82,7 +82,7 @@ var nt = (function() {
|
|
|
82
82
|
if (o)
|
|
83
83
|
if (this._parentage = null, Array.isArray(o))
|
|
84
84
|
try {
|
|
85
|
-
for (var a =
|
|
85
|
+
for (var a = vt(o), c = a.next(); !c.done; c = a.next()) {
|
|
86
86
|
var h = c.value;
|
|
87
87
|
h.remove(this);
|
|
88
88
|
}
|
|
@@ -102,18 +102,18 @@ var nt = (function() {
|
|
|
102
102
|
try {
|
|
103
103
|
l();
|
|
104
104
|
} catch (v) {
|
|
105
|
-
n = v instanceof
|
|
105
|
+
n = v instanceof ct ? v.errors : [v];
|
|
106
106
|
}
|
|
107
107
|
var d = this._finalizers;
|
|
108
108
|
if (d) {
|
|
109
109
|
this._finalizers = null;
|
|
110
110
|
try {
|
|
111
|
-
for (var u =
|
|
111
|
+
for (var u = vt(d), f = u.next(); !f.done; f = u.next()) {
|
|
112
112
|
var g = f.value;
|
|
113
113
|
try {
|
|
114
114
|
Ut(g);
|
|
115
115
|
} catch (v) {
|
|
116
|
-
n = n ?? [], v instanceof
|
|
116
|
+
n = n ?? [], v instanceof ct ? n = bt(bt([], yt(n)), yt(v.errors)) : n.push(v);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
} catch (v) {
|
|
@@ -127,7 +127,7 @@ var nt = (function() {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
if (n)
|
|
130
|
-
throw new
|
|
130
|
+
throw new ct(n);
|
|
131
131
|
}
|
|
132
132
|
}, r.prototype.add = function(t) {
|
|
133
133
|
var e;
|
|
@@ -150,17 +150,17 @@ var nt = (function() {
|
|
|
150
150
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
151
151
|
}, r.prototype._removeParent = function(t) {
|
|
152
152
|
var e = this._parentage;
|
|
153
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
|
153
|
+
e === t ? this._parentage = null : Array.isArray(e) && wt(e, t);
|
|
154
154
|
}, r.prototype.remove = function(t) {
|
|
155
155
|
var e = this._finalizers;
|
|
156
|
-
e &&
|
|
156
|
+
e && wt(e, t), t instanceof r && t._removeParent(this);
|
|
157
157
|
}, r.EMPTY = (function() {
|
|
158
158
|
var t = new r();
|
|
159
159
|
return t.closed = !0, t;
|
|
160
160
|
})(), r;
|
|
161
|
-
})(),
|
|
162
|
-
function
|
|
163
|
-
return r instanceof
|
|
161
|
+
})(), le = ot.EMPTY;
|
|
162
|
+
function de(r) {
|
|
163
|
+
return r instanceof ot || r && "closed" in r && _(r.remove) && _(r.add) && _(r.unsubscribe);
|
|
164
164
|
}
|
|
165
165
|
function Ut(r) {
|
|
166
166
|
_(r) ? r() : r.unsubscribe();
|
|
@@ -171,7 +171,7 @@ var Ee = {
|
|
|
171
171
|
setTimeout: function(r, t) {
|
|
172
172
|
for (var e = [], i = 2; i < arguments.length; i++)
|
|
173
173
|
e[i - 2] = arguments[i];
|
|
174
|
-
return setTimeout.apply(void 0,
|
|
174
|
+
return setTimeout.apply(void 0, bt([r, t], yt(e)));
|
|
175
175
|
},
|
|
176
176
|
clearTimeout: function(r) {
|
|
177
177
|
return clearTimeout(r);
|
|
@@ -185,17 +185,17 @@ function Pe(r) {
|
|
|
185
185
|
}
|
|
186
186
|
function jt() {
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function X(r) {
|
|
189
189
|
r();
|
|
190
190
|
}
|
|
191
|
-
var
|
|
192
|
-
|
|
191
|
+
var ue = (function(r) {
|
|
192
|
+
K(t, r);
|
|
193
193
|
function t(e) {
|
|
194
194
|
var i = r.call(this) || this;
|
|
195
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
|
195
|
+
return i.isStopped = !1, e ? (i.destination = e, de(e) && e.add(i)) : i.destination = ke, i;
|
|
196
196
|
}
|
|
197
197
|
return t.create = function(e, i, s) {
|
|
198
|
-
return new
|
|
198
|
+
return new $t(e, i, s);
|
|
199
199
|
}, t.prototype.next = function(e) {
|
|
200
200
|
this.isStopped || this._next(e);
|
|
201
201
|
}, t.prototype.error = function(e) {
|
|
@@ -219,7 +219,7 @@ var de = (function(r) {
|
|
|
219
219
|
this.unsubscribe();
|
|
220
220
|
}
|
|
221
221
|
}, t;
|
|
222
|
-
})(
|
|
222
|
+
})(ot), Oe = (function() {
|
|
223
223
|
function r(t) {
|
|
224
224
|
this.partialObserver = t;
|
|
225
225
|
}
|
|
@@ -229,7 +229,7 @@ var de = (function(r) {
|
|
|
229
229
|
try {
|
|
230
230
|
e.next(t);
|
|
231
231
|
} catch (i) {
|
|
232
|
-
|
|
232
|
+
J(i);
|
|
233
233
|
}
|
|
234
234
|
}, r.prototype.error = function(t) {
|
|
235
235
|
var e = this.partialObserver;
|
|
@@ -237,21 +237,21 @@ var de = (function(r) {
|
|
|
237
237
|
try {
|
|
238
238
|
e.error(t);
|
|
239
239
|
} catch (i) {
|
|
240
|
-
|
|
240
|
+
J(i);
|
|
241
241
|
}
|
|
242
242
|
else
|
|
243
|
-
|
|
243
|
+
J(t);
|
|
244
244
|
}, r.prototype.complete = function() {
|
|
245
245
|
var t = this.partialObserver;
|
|
246
246
|
if (t.complete)
|
|
247
247
|
try {
|
|
248
248
|
t.complete();
|
|
249
249
|
} catch (e) {
|
|
250
|
-
|
|
250
|
+
J(e);
|
|
251
251
|
}
|
|
252
252
|
}, r;
|
|
253
|
-
})(),
|
|
254
|
-
|
|
253
|
+
})(), $t = (function(r) {
|
|
254
|
+
K(t, r);
|
|
255
255
|
function t(e, i, s) {
|
|
256
256
|
var n = r.call(this) || this, o;
|
|
257
257
|
return _(e) || !e ? o = {
|
|
@@ -261,8 +261,8 @@ var de = (function(r) {
|
|
|
261
261
|
} : o = e, n.destination = new Oe(o), n;
|
|
262
262
|
}
|
|
263
263
|
return t;
|
|
264
|
-
})(
|
|
265
|
-
function
|
|
264
|
+
})(ue);
|
|
265
|
+
function J(r) {
|
|
266
266
|
Pe(r);
|
|
267
267
|
}
|
|
268
268
|
function Ie(r) {
|
|
@@ -294,8 +294,8 @@ var Ht = (function() {
|
|
|
294
294
|
var e = new r();
|
|
295
295
|
return e.source = this, e.operator = t, e;
|
|
296
296
|
}, r.prototype.subscribe = function(t, e, i) {
|
|
297
|
-
var s = this, n = Le(t) ? t : new
|
|
298
|
-
return
|
|
297
|
+
var s = this, n = Le(t) ? t : new $t(t, e, i);
|
|
298
|
+
return X(function() {
|
|
299
299
|
var o = s, a = o.operator, c = o.source;
|
|
300
300
|
n.add(a ? a.call(n, c) : c ? s._subscribe(n) : s._trySubscribe(n));
|
|
301
301
|
}), n;
|
|
@@ -308,7 +308,7 @@ var Ht = (function() {
|
|
|
308
308
|
}, r.prototype.forEach = function(t, e) {
|
|
309
309
|
var i = this;
|
|
310
310
|
return e = Ft(e), new e(function(s, n) {
|
|
311
|
-
var o = new
|
|
311
|
+
var o = new $t({
|
|
312
312
|
next: function(a) {
|
|
313
313
|
try {
|
|
314
314
|
t(a);
|
|
@@ -354,14 +354,14 @@ function Ne(r) {
|
|
|
354
354
|
return r && _(r.next) && _(r.error) && _(r.complete);
|
|
355
355
|
}
|
|
356
356
|
function Le(r) {
|
|
357
|
-
return r && r instanceof
|
|
357
|
+
return r && r instanceof ue || Ne(r) && de(r);
|
|
358
358
|
}
|
|
359
|
-
var Ue =
|
|
359
|
+
var Ue = he(function(r) {
|
|
360
360
|
return function() {
|
|
361
361
|
r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
362
362
|
};
|
|
363
363
|
}), At = (function(r) {
|
|
364
|
-
|
|
364
|
+
K(t, r);
|
|
365
365
|
function t() {
|
|
366
366
|
var e = r.call(this) || this;
|
|
367
367
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
@@ -374,12 +374,12 @@ var Ue = ce(function(r) {
|
|
|
374
374
|
throw new Ue();
|
|
375
375
|
}, t.prototype.next = function(e) {
|
|
376
376
|
var i = this;
|
|
377
|
-
|
|
377
|
+
X(function() {
|
|
378
378
|
var s, n;
|
|
379
379
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
380
380
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
381
381
|
try {
|
|
382
|
-
for (var o =
|
|
382
|
+
for (var o = vt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
383
383
|
var c = a.value;
|
|
384
384
|
c.next(e);
|
|
385
385
|
}
|
|
@@ -396,7 +396,7 @@ var Ue = ce(function(r) {
|
|
|
396
396
|
});
|
|
397
397
|
}, t.prototype.error = function(e) {
|
|
398
398
|
var i = this;
|
|
399
|
-
|
|
399
|
+
X(function() {
|
|
400
400
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
401
401
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
|
402
402
|
for (var s = i.observers; s.length; )
|
|
@@ -405,7 +405,7 @@ var Ue = ce(function(r) {
|
|
|
405
405
|
});
|
|
406
406
|
}, t.prototype.complete = function() {
|
|
407
407
|
var e = this;
|
|
408
|
-
|
|
408
|
+
X(function() {
|
|
409
409
|
if (e._throwIfClosed(), !e.isStopped) {
|
|
410
410
|
e.isStopped = !0;
|
|
411
411
|
for (var i = e.observers; i.length; )
|
|
@@ -427,8 +427,8 @@ var Ue = ce(function(r) {
|
|
|
427
427
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
428
428
|
}, t.prototype._innerSubscribe = function(e) {
|
|
429
429
|
var i = this, s = this, n = s.hasError, o = s.isStopped, a = s.observers;
|
|
430
|
-
return n || o ?
|
|
431
|
-
i.currentObservers = null,
|
|
430
|
+
return n || o ? le : (this.currentObservers = null, a.push(e), new ot(function() {
|
|
431
|
+
i.currentObservers = null, wt(a, e);
|
|
432
432
|
}));
|
|
433
433
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
434
434
|
var i = this, s = i.hasError, n = i.thrownError, o = i.isStopped;
|
|
@@ -440,7 +440,7 @@ var Ue = ce(function(r) {
|
|
|
440
440
|
return new Bt(e, i);
|
|
441
441
|
}, t;
|
|
442
442
|
})(Ht), Bt = (function(r) {
|
|
443
|
-
|
|
443
|
+
K(t, r);
|
|
444
444
|
function t(e, i) {
|
|
445
445
|
var s = r.call(this) || this;
|
|
446
446
|
return s.destination = e, s.source = i, s;
|
|
@@ -456,10 +456,10 @@ var Ue = ce(function(r) {
|
|
|
456
456
|
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
|
457
457
|
}, t.prototype._subscribe = function(e) {
|
|
458
458
|
var i, s;
|
|
459
|
-
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s :
|
|
459
|
+
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s : le;
|
|
460
460
|
}, t;
|
|
461
461
|
})(At), xt = (function(r) {
|
|
462
|
-
|
|
462
|
+
K(t, r);
|
|
463
463
|
function t(e) {
|
|
464
464
|
var i = r.call(this) || this;
|
|
465
465
|
return i._value = e, i;
|
|
@@ -481,7 +481,7 @@ var Ue = ce(function(r) {
|
|
|
481
481
|
}, t.prototype.next = function(e) {
|
|
482
482
|
r.prototype.next.call(this, this._value = e);
|
|
483
483
|
}, t;
|
|
484
|
-
})(At),
|
|
484
|
+
})(At), pe = /* @__PURE__ */ ((r) => (r.Loading = "loading", r.Ready = "ready", r))(pe || {});
|
|
485
485
|
class Dt {
|
|
486
486
|
constructor(t, e) {
|
|
487
487
|
this.state = new xt(
|
|
@@ -507,8 +507,8 @@ class Dt {
|
|
|
507
507
|
* Copyright 2019 Google LLC
|
|
508
508
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
509
509
|
*/
|
|
510
|
-
const
|
|
511
|
-
let
|
|
510
|
+
const Q = globalThis, Ct = Q.ShadowRoot && (Q.ShadyCSS === void 0 || Q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Et = Symbol(), zt = /* @__PURE__ */ new WeakMap();
|
|
511
|
+
let fe = class {
|
|
512
512
|
constructor(t, e, i) {
|
|
513
513
|
if (this._$cssResult$ = !0, i !== Et) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
514
514
|
this.cssText = t, this.t = e;
|
|
@@ -526,17 +526,17 @@ let pe = class {
|
|
|
526
526
|
return this.cssText;
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
|
-
const je = (r) => new
|
|
530
|
-
const e = r.length === 1 ? r[0] : t.reduce((
|
|
529
|
+
const je = (r) => new fe(typeof r == "string" ? r : r + "", void 0, Et), U = (r, ...t) => {
|
|
530
|
+
const e = r.length === 1 ? r[0] : t.reduce((i, s, n) => i + ((o) => {
|
|
531
531
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
532
532
|
if (typeof o == "number") return o;
|
|
533
533
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
534
|
-
})(s) + r[n + 1]
|
|
535
|
-
return new
|
|
534
|
+
})(s) + r[n + 1], r[0]);
|
|
535
|
+
return new fe(e, r, Et);
|
|
536
536
|
}, He = (r, t) => {
|
|
537
|
-
if (Ct) r.adoptedStyleSheets = t.map((
|
|
537
|
+
if (Ct) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
538
538
|
else for (const e of t) {
|
|
539
|
-
const i = document.createElement("style"), s =
|
|
539
|
+
const i = document.createElement("style"), s = Q.litNonce;
|
|
540
540
|
s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
|
|
541
541
|
}
|
|
542
542
|
}, Vt = Ct ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
@@ -549,7 +549,7 @@ const je = (r) => new pe(typeof r == "string" ? r : r + "", void 0, Et), U = (r,
|
|
|
549
549
|
* Copyright 2017 Google LLC
|
|
550
550
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
551
551
|
*/
|
|
552
|
-
const { is: Fe, defineProperty: Be, getOwnPropertyDescriptor: De, getOwnPropertyNames: ze, getOwnPropertySymbols: Ve, getPrototypeOf: We } = Object, C = globalThis, Wt = C.trustedTypes, qe = Wt ? Wt.emptyScript : "",
|
|
552
|
+
const { is: Fe, defineProperty: Be, getOwnPropertyDescriptor: De, getOwnPropertyNames: ze, getOwnPropertySymbols: Ve, getPrototypeOf: We } = Object, C = globalThis, Wt = C.trustedTypes, qe = Wt ? Wt.emptyScript : "", ht = C.reactiveElementPolyfillSupport, F = (r, t) => r, tt = { toAttribute(r, t) {
|
|
553
553
|
switch (t) {
|
|
554
554
|
case Boolean:
|
|
555
555
|
r = r ? qe : null;
|
|
@@ -577,7 +577,7 @@ const { is: Fe, defineProperty: Be, getOwnPropertyDescriptor: De, getOwnProperty
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
return e;
|
|
580
|
-
} }, St = (r, t) => !Fe(r, t), qt = { attribute: !0, type: String, converter:
|
|
580
|
+
} }, St = (r, t) => !Fe(r, t), qt = { attribute: !0, type: String, converter: tt, reflect: !1, useDefault: !1, hasChanged: St };
|
|
581
581
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
582
582
|
let T = class extends HTMLElement {
|
|
583
583
|
static addInitializer(t) {
|
|
@@ -646,7 +646,7 @@ let T = class extends HTMLElement {
|
|
|
646
646
|
}
|
|
647
647
|
_$Ev() {
|
|
648
648
|
var t;
|
|
649
|
-
this._$ES = new Promise((
|
|
649
|
+
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
|
650
650
|
}
|
|
651
651
|
addController(t) {
|
|
652
652
|
var e;
|
|
@@ -667,19 +667,19 @@ let T = class extends HTMLElement {
|
|
|
667
667
|
}
|
|
668
668
|
connectedCallback() {
|
|
669
669
|
var t;
|
|
670
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((
|
|
670
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
671
671
|
var i;
|
|
672
672
|
return (i = e.hostConnected) == null ? void 0 : i.call(e);
|
|
673
|
-
})
|
|
673
|
+
});
|
|
674
674
|
}
|
|
675
675
|
enableUpdating(t) {
|
|
676
676
|
}
|
|
677
677
|
disconnectedCallback() {
|
|
678
678
|
var t;
|
|
679
|
-
(t = this._$EO) == null || t.forEach((
|
|
679
|
+
(t = this._$EO) == null || t.forEach((e) => {
|
|
680
680
|
var i;
|
|
681
681
|
return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
|
|
682
|
-
})
|
|
682
|
+
});
|
|
683
683
|
}
|
|
684
684
|
attributeChangedCallback(t, e, i) {
|
|
685
685
|
this._$AK(t, i);
|
|
@@ -688,7 +688,7 @@ let T = class extends HTMLElement {
|
|
|
688
688
|
var n;
|
|
689
689
|
const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
|
|
690
690
|
if (s !== void 0 && i.reflect === !0) {
|
|
691
|
-
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter :
|
|
691
|
+
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : tt).toAttribute(e, i.type);
|
|
692
692
|
this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
|
|
693
693
|
}
|
|
694
694
|
}
|
|
@@ -696,17 +696,17 @@ let T = class extends HTMLElement {
|
|
|
696
696
|
var n, o;
|
|
697
697
|
const i = this.constructor, s = i._$Eh.get(t);
|
|
698
698
|
if (s !== void 0 && this._$Em !== s) {
|
|
699
|
-
const a = i.getPropertyOptions(s), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter :
|
|
699
|
+
const a = i.getPropertyOptions(s), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter : tt;
|
|
700
700
|
this._$Em = s;
|
|
701
701
|
const h = c.fromAttribute(e, a.type);
|
|
702
702
|
this[s] = h ?? ((o = this._$Ej) == null ? void 0 : o.get(s)) ?? h, this._$Em = null;
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
requestUpdate(t, e, i) {
|
|
706
|
-
var
|
|
705
|
+
requestUpdate(t, e, i, s = !1, n) {
|
|
706
|
+
var o;
|
|
707
707
|
if (t !== void 0) {
|
|
708
|
-
const
|
|
709
|
-
if (i ?? (i =
|
|
708
|
+
const a = this.constructor;
|
|
709
|
+
if (s === !1 && (n = this[t]), i ?? (i = a.getPropertyOptions(t)), !((i.hasChanged ?? St)(n, e) || i.useDefault && i.reflect && n === ((o = this._$Ej) == null ? void 0 : o.get(t)) && !this.hasAttribute(a._$Eu(t, i)))) return;
|
|
710
710
|
this.C(t, e, i);
|
|
711
711
|
}
|
|
712
712
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -744,10 +744,10 @@ let T = class extends HTMLElement {
|
|
|
744
744
|
let t = !1;
|
|
745
745
|
const e = this._$AL;
|
|
746
746
|
try {
|
|
747
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((
|
|
747
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
|
|
748
748
|
var n;
|
|
749
749
|
return (n = s.hostUpdate) == null ? void 0 : n.call(s);
|
|
750
|
-
})
|
|
750
|
+
}), this.update(e)) : this._$EM();
|
|
751
751
|
} catch (s) {
|
|
752
752
|
throw t = !1, this._$EM(), s;
|
|
753
753
|
}
|
|
@@ -757,10 +757,10 @@ let T = class extends HTMLElement {
|
|
|
757
757
|
}
|
|
758
758
|
_$AE(t) {
|
|
759
759
|
var e;
|
|
760
|
-
(e = this._$EO) == null || e.forEach((
|
|
760
|
+
(e = this._$EO) == null || e.forEach((i) => {
|
|
761
761
|
var s;
|
|
762
762
|
return (s = i.hostUpdated) == null ? void 0 : s.call(i);
|
|
763
|
-
})
|
|
763
|
+
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
764
764
|
}
|
|
765
765
|
_$EM() {
|
|
766
766
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
@@ -775,63 +775,63 @@ let T = class extends HTMLElement {
|
|
|
775
775
|
return !0;
|
|
776
776
|
}
|
|
777
777
|
update(t) {
|
|
778
|
-
this._$Eq && (this._$Eq = this._$Eq.forEach((
|
|
778
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach((e) => this._$ET(e, this[e]))), this._$EM();
|
|
779
779
|
}
|
|
780
780
|
updated(t) {
|
|
781
781
|
}
|
|
782
782
|
firstUpdated(t) {
|
|
783
783
|
}
|
|
784
784
|
};
|
|
785
|
-
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[F("elementProperties")] = /* @__PURE__ */ new Map(), T[F("finalized")] = /* @__PURE__ */ new Map(),
|
|
785
|
+
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[F("elementProperties")] = /* @__PURE__ */ new Map(), T[F("finalized")] = /* @__PURE__ */ new Map(), ht == null || ht({ ReactiveElement: T }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.1.2");
|
|
786
786
|
/**
|
|
787
787
|
* @license
|
|
788
788
|
* Copyright 2017 Google LLC
|
|
789
789
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
790
790
|
*/
|
|
791
|
-
const B = globalThis,
|
|
792
|
-
\f\r]`, H = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
793
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
794
|
-
function
|
|
791
|
+
const B = globalThis, Gt = (r) => r, et = B.trustedTypes, Kt = et ? et.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ge = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, me = "?" + x, Ge = `<${me}>`, I = document, z = () => I.createComment(""), V = (r) => r === null || typeof r != "object" && typeof r != "function", Pt = Array.isArray, Ke = (r) => Pt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", lt = `[
|
|
792
|
+
\f\r]`, H = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Zt = /-->/g, Yt = />/g, E = RegExp(`>|${lt}(?:([^\\s"'>=/]+)(${lt}*=${lt}*(?:[^
|
|
793
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Jt = /'/g, Xt = /"/g, ve = /^(?:script|style|textarea|title)$/i, Ze = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), R = Ze(1), k = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Qt = /* @__PURE__ */ new WeakMap(), P = I.createTreeWalker(I, 129);
|
|
794
|
+
function ye(r, t) {
|
|
795
795
|
if (!Pt(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
796
|
-
return
|
|
796
|
+
return Kt !== void 0 ? Kt.createHTML(t) : t;
|
|
797
797
|
}
|
|
798
|
-
const
|
|
798
|
+
const Ye = (r, t) => {
|
|
799
799
|
const e = r.length - 1, i = [];
|
|
800
800
|
let s, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = H;
|
|
801
801
|
for (let a = 0; a < e; a++) {
|
|
802
802
|
const c = r[a];
|
|
803
803
|
let h, l, d = -1, u = 0;
|
|
804
|
-
for (; u < c.length && (o.lastIndex = u, l = o.exec(c), l !== null); ) u = o.lastIndex, o === H ? l[1] === "!--" ? o =
|
|
804
|
+
for (; u < c.length && (o.lastIndex = u, l = o.exec(c), l !== null); ) u = o.lastIndex, o === H ? l[1] === "!--" ? o = Zt : l[1] !== void 0 ? o = Yt : l[2] !== void 0 ? (ve.test(l[2]) && (s = RegExp("</" + l[2], "g")), o = E) : l[3] !== void 0 && (o = E) : o === E ? l[0] === ">" ? (o = s ?? H, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? E : l[3] === '"' ? Xt : Jt) : o === Xt || o === Jt ? o = E : o === Zt || o === Yt ? o = H : (o = E, s = void 0);
|
|
805
805
|
const f = o === E && r[a + 1].startsWith("/>") ? " " : "";
|
|
806
|
-
n += o === H ? c + Ge : d >= 0 ? (i.push(h), c.slice(0, d) +
|
|
806
|
+
n += o === H ? c + Ge : d >= 0 ? (i.push(h), c.slice(0, d) + ge + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
|
|
807
807
|
}
|
|
808
|
-
return [
|
|
808
|
+
return [ye(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
809
809
|
};
|
|
810
|
-
|
|
810
|
+
class W {
|
|
811
811
|
constructor({ strings: t, _$litType$: e }, i) {
|
|
812
812
|
let s;
|
|
813
813
|
this.parts = [];
|
|
814
814
|
let n = 0, o = 0;
|
|
815
|
-
const a = t.length - 1, c = this.parts, [h, l] =
|
|
816
|
-
if (this.el =
|
|
815
|
+
const a = t.length - 1, c = this.parts, [h, l] = Ye(t, e);
|
|
816
|
+
if (this.el = W.createElement(h, i), P.currentNode = this.el.content, e === 2 || e === 3) {
|
|
817
817
|
const d = this.el.content.firstChild;
|
|
818
818
|
d.replaceWith(...d.childNodes);
|
|
819
819
|
}
|
|
820
820
|
for (; (s = P.nextNode()) !== null && c.length < a; ) {
|
|
821
821
|
if (s.nodeType === 1) {
|
|
822
|
-
if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(
|
|
822
|
+
if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(ge)) {
|
|
823
823
|
const u = l[o++], f = s.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(u);
|
|
824
|
-
c.push({ type: 1, index: n, name: g[2], strings: f, ctor: g[1] === "." ? Xe : g[1] === "?" ? Qe : g[1] === "@" ? ti :
|
|
824
|
+
c.push({ type: 1, index: n, name: g[2], strings: f, ctor: g[1] === "." ? Xe : g[1] === "?" ? Qe : g[1] === "@" ? ti : at }), s.removeAttribute(d);
|
|
825
825
|
} else d.startsWith(x) && (c.push({ type: 6, index: n }), s.removeAttribute(d));
|
|
826
|
-
if (
|
|
826
|
+
if (ve.test(s.tagName)) {
|
|
827
827
|
const d = s.textContent.split(x), u = d.length - 1;
|
|
828
828
|
if (u > 0) {
|
|
829
|
-
s.textContent =
|
|
829
|
+
s.textContent = et ? et.emptyScript : "";
|
|
830
830
|
for (let f = 0; f < u; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++n });
|
|
831
831
|
s.append(d[u], z());
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
-
} else if (s.nodeType === 8) if (s.data ===
|
|
834
|
+
} else if (s.nodeType === 8) if (s.data === me) c.push({ type: 2, index: n });
|
|
835
835
|
else {
|
|
836
836
|
let d = -1;
|
|
837
837
|
for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index: n }), d += x.length - 1;
|
|
@@ -843,7 +843,7 @@ let $t = class ye {
|
|
|
843
843
|
const i = I.createElement("template");
|
|
844
844
|
return i.innerHTML = t, i;
|
|
845
845
|
}
|
|
846
|
-
}
|
|
846
|
+
}
|
|
847
847
|
function M(r, t, e = r, i) {
|
|
848
848
|
var o, a;
|
|
849
849
|
if (t === k) return t;
|
|
@@ -868,7 +868,7 @@ class Je {
|
|
|
868
868
|
for (; c !== void 0; ) {
|
|
869
869
|
if (o === c.index) {
|
|
870
870
|
let h;
|
|
871
|
-
c.type === 2 ? h = new
|
|
871
|
+
c.type === 2 ? h = new Z(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new ei(n, this, t)), this._$AV.push(h), c = i[++a];
|
|
872
872
|
}
|
|
873
873
|
o !== (c == null ? void 0 : c.index) && (n = P.nextNode(), o++);
|
|
874
874
|
}
|
|
@@ -879,7 +879,7 @@ class Je {
|
|
|
879
879
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
|
-
class
|
|
882
|
+
class Z {
|
|
883
883
|
get _$AU() {
|
|
884
884
|
var t;
|
|
885
885
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -912,7 +912,7 @@ class K {
|
|
|
912
912
|
}
|
|
913
913
|
$(t) {
|
|
914
914
|
var n;
|
|
915
|
-
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
|
915
|
+
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = W.createElement(ye(i.h, i.h[0]), this.options)), i);
|
|
916
916
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === s) this._$AH.p(e);
|
|
917
917
|
else {
|
|
918
918
|
const o = new Je(s, this), a = o.u(this.options);
|
|
@@ -920,21 +920,21 @@ class K {
|
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
922
|
_$AC(t) {
|
|
923
|
-
let e =
|
|
924
|
-
return e === void 0 &&
|
|
923
|
+
let e = Qt.get(t.strings);
|
|
924
|
+
return e === void 0 && Qt.set(t.strings, e = new W(t)), e;
|
|
925
925
|
}
|
|
926
926
|
k(t) {
|
|
927
927
|
Pt(this._$AH) || (this._$AH = [], this._$AR());
|
|
928
928
|
const e = this._$AH;
|
|
929
929
|
let i, s = 0;
|
|
930
|
-
for (const n of t) s === e.length ? e.push(i = new
|
|
930
|
+
for (const n of t) s === e.length ? e.push(i = new Z(this.O(z()), this.O(z()), this, this.options)) : i = e[s], i._$AI(n), s++;
|
|
931
931
|
s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
|
|
932
932
|
}
|
|
933
933
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
934
934
|
var i;
|
|
935
935
|
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t !== this._$AB; ) {
|
|
936
|
-
const s = t.nextSibling;
|
|
937
|
-
t.remove(), t = s;
|
|
936
|
+
const s = Gt(t).nextSibling;
|
|
937
|
+
Gt(t).remove(), t = s;
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
940
|
setConnected(t) {
|
|
@@ -942,7 +942,7 @@ class K {
|
|
|
942
942
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
|
-
class
|
|
945
|
+
class at {
|
|
946
946
|
get tagName() {
|
|
947
947
|
return this.element.tagName;
|
|
948
948
|
}
|
|
@@ -967,7 +967,7 @@ class ot {
|
|
|
967
967
|
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
class Xe extends
|
|
970
|
+
class Xe extends at {
|
|
971
971
|
constructor() {
|
|
972
972
|
super(...arguments), this.type = 3;
|
|
973
973
|
}
|
|
@@ -975,7 +975,7 @@ class Xe extends ot {
|
|
|
975
975
|
this.element[this.name] = t === p ? void 0 : t;
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
|
-
class Qe extends
|
|
978
|
+
class Qe extends at {
|
|
979
979
|
constructor() {
|
|
980
980
|
super(...arguments), this.type = 4;
|
|
981
981
|
}
|
|
@@ -983,7 +983,7 @@ class Qe extends ot {
|
|
|
983
983
|
this.element.toggleAttribute(this.name, !!t && t !== p);
|
|
984
984
|
}
|
|
985
985
|
}
|
|
986
|
-
class ti extends
|
|
986
|
+
class ti extends at {
|
|
987
987
|
constructor(t, e, i, s, n) {
|
|
988
988
|
super(t, e, i, s, n), this.type = 5;
|
|
989
989
|
}
|
|
@@ -1008,14 +1008,14 @@ class ei {
|
|
|
1008
1008
|
M(this, t);
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
const
|
|
1012
|
-
|
|
1011
|
+
const dt = B.litHtmlPolyfillSupport;
|
|
1012
|
+
dt == null || dt(W, Z), (B.litHtmlVersions ?? (B.litHtmlVersions = [])).push("3.3.2");
|
|
1013
1013
|
const ii = (r, t, e) => {
|
|
1014
1014
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
1015
1015
|
let s = i._$litPart$;
|
|
1016
1016
|
if (s === void 0) {
|
|
1017
1017
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
1018
|
-
i._$litPart$ = s = new
|
|
1018
|
+
i._$litPart$ = s = new Z(t.insertBefore(z(), n), n, void 0, e ?? {});
|
|
1019
1019
|
}
|
|
1020
1020
|
return s._$AI(r), s;
|
|
1021
1021
|
};
|
|
@@ -1050,24 +1050,24 @@ let A = class extends T {
|
|
|
1050
1050
|
return k;
|
|
1051
1051
|
}
|
|
1052
1052
|
};
|
|
1053
|
-
var
|
|
1054
|
-
A._$litElement$ = !0, A.finalized = !0, (
|
|
1055
|
-
const
|
|
1056
|
-
|
|
1057
|
-
(O.litElementVersions ?? (O.litElementVersions = [])).push("4.2.
|
|
1053
|
+
var ce;
|
|
1054
|
+
A._$litElement$ = !0, A.finalized = !0, (ce = O.litElementHydrateSupport) == null || ce.call(O, { LitElement: A });
|
|
1055
|
+
const ut = O.litElementPolyfillSupport;
|
|
1056
|
+
ut == null || ut({ LitElement: A });
|
|
1057
|
+
(O.litElementVersions ?? (O.litElementVersions = [])).push("4.2.2");
|
|
1058
1058
|
/**
|
|
1059
1059
|
* @license
|
|
1060
1060
|
* Copyright 2017 Google LLC
|
|
1061
1061
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1062
1062
|
*/
|
|
1063
|
-
const si = { attribute: !0, type: String, converter:
|
|
1063
|
+
const si = { attribute: !0, type: String, converter: tt, reflect: !1, hasChanged: St }, ri = (r = si, t, e) => {
|
|
1064
1064
|
const { kind: i, metadata: s } = e;
|
|
1065
1065
|
let n = globalThis.litPropertyMetadata.get(s);
|
|
1066
1066
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), i === "setter" && ((r = Object.create(r)).wrapped = !0), n.set(e.name, r), i === "accessor") {
|
|
1067
1067
|
const { name: o } = e;
|
|
1068
1068
|
return { set(a) {
|
|
1069
1069
|
const c = t.get.call(this);
|
|
1070
|
-
t.set.call(this, a), this.requestUpdate(o, c, r);
|
|
1070
|
+
t.set.call(this, a), this.requestUpdate(o, c, r, !0, a);
|
|
1071
1071
|
}, init(a) {
|
|
1072
1072
|
return a !== void 0 && this.C(o, void 0, r, a), a;
|
|
1073
1073
|
} };
|
|
@@ -1076,7 +1076,7 @@ const si = { attribute: !0, type: String, converter: Q, reflect: !1, hasChanged:
|
|
|
1076
1076
|
const { name: o } = e;
|
|
1077
1077
|
return function(a) {
|
|
1078
1078
|
const c = this[o];
|
|
1079
|
-
t.call(this, a), this.requestUpdate(o, c, r);
|
|
1079
|
+
t.call(this, a), this.requestUpdate(o, c, r, !0, a);
|
|
1080
1080
|
};
|
|
1081
1081
|
}
|
|
1082
1082
|
throw Error("Unsupported decorator location: " + i);
|
|
@@ -1131,10 +1131,10 @@ Tt.styles = [
|
|
|
1131
1131
|
}
|
|
1132
1132
|
`
|
|
1133
1133
|
];
|
|
1134
|
-
let
|
|
1134
|
+
let q = Tt;
|
|
1135
1135
|
oi([
|
|
1136
1136
|
m({ attribute: !0 })
|
|
1137
|
-
],
|
|
1137
|
+
], q.prototype, "anchor");
|
|
1138
1138
|
/**
|
|
1139
1139
|
* @license
|
|
1140
1140
|
* Copyright 2017 Google LLC
|
|
@@ -1174,7 +1174,7 @@ const D = (r, t) => {
|
|
|
1174
1174
|
if (e === void 0) return !1;
|
|
1175
1175
|
for (const s of e) (i = s._$AO) == null || i.call(s, t, !1), D(s, t);
|
|
1176
1176
|
return !0;
|
|
1177
|
-
},
|
|
1177
|
+
}, it = (r) => {
|
|
1178
1178
|
let t, e;
|
|
1179
1179
|
do {
|
|
1180
1180
|
if ((t = r._$AM) === void 0) break;
|
|
@@ -1189,12 +1189,12 @@ const D = (r, t) => {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
};
|
|
1191
1191
|
function ci(r) {
|
|
1192
|
-
this._$AN !== void 0 ? (
|
|
1192
|
+
this._$AN !== void 0 ? (it(this), this._$AM = r, we(this)) : this._$AM = r;
|
|
1193
1193
|
}
|
|
1194
1194
|
function hi(r, t = !1, e = 0) {
|
|
1195
1195
|
const i = this._$AH, s = this._$AN;
|
|
1196
|
-
if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) D(i[n], !1),
|
|
1197
|
-
else i != null && (D(i, !1),
|
|
1196
|
+
if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) D(i[n], !1), it(i[n]);
|
|
1197
|
+
else i != null && (D(i, !1), it(i));
|
|
1198
1198
|
else D(this, r);
|
|
1199
1199
|
}
|
|
1200
1200
|
const li = (r) => {
|
|
@@ -1209,7 +1209,7 @@ class $e extends be {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
_$AO(t, e = !0) {
|
|
1211
1211
|
var i, s;
|
|
1212
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (D(this, t),
|
|
1212
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (D(this, t), it(this));
|
|
1213
1213
|
}
|
|
1214
1214
|
setValue(t) {
|
|
1215
1215
|
if (ai(this._$Ct)) this._$Ct._$AI(t, this);
|
|
@@ -1224,30 +1224,30 @@ class $e extends be {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
const di = /* @__PURE__ */ new WeakMap();
|
|
1227
|
-
let
|
|
1228
|
-
const
|
|
1227
|
+
let te = 0;
|
|
1228
|
+
const pt = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ new WeakSet(), ie = () => new Promise((r) => requestAnimationFrame(r)), ui = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], se = (r, t) => {
|
|
1229
1229
|
const e = r - t;
|
|
1230
1230
|
return e === 0 ? void 0 : e;
|
|
1231
|
-
},
|
|
1231
|
+
}, re = (r, t) => {
|
|
1232
1232
|
const e = r / t;
|
|
1233
1233
|
return e === 1 ? void 0 : e;
|
|
1234
|
-
},
|
|
1235
|
-
const e =
|
|
1234
|
+
}, ft = { left: (r, t) => {
|
|
1235
|
+
const e = se(r, t);
|
|
1236
1236
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
1237
1237
|
}, top: (r, t) => {
|
|
1238
|
-
const e =
|
|
1238
|
+
const e = se(r, t);
|
|
1239
1239
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
|
1240
1240
|
}, width: (r, t) => {
|
|
1241
1241
|
let e;
|
|
1242
1242
|
t === 0 && (t = 1, e = { width: "1px" });
|
|
1243
|
-
const i =
|
|
1243
|
+
const i = re(r, t);
|
|
1244
1244
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
|
1245
1245
|
}, height: (r, t) => {
|
|
1246
1246
|
let e;
|
|
1247
1247
|
t === 0 && (t = 1, e = { height: "1px" });
|
|
1248
|
-
const i =
|
|
1248
|
+
const i = re(r, t);
|
|
1249
1249
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
|
1250
|
-
} }, pi = { duration: 333, easing: "ease-in-out" }, fi = ["left", "top", "width", "height", "opacity", "color", "background"],
|
|
1250
|
+
} }, pi = { duration: 333, easing: "ease-in-out" }, fi = ["left", "top", "width", "height", "opacity", "color", "background"], ne = /* @__PURE__ */ new WeakMap();
|
|
1251
1251
|
class gi extends $e {
|
|
1252
1252
|
constructor(t) {
|
|
1253
1253
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Ot.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
@@ -1255,9 +1255,9 @@ class gi extends $e {
|
|
|
1255
1255
|
}
|
|
1256
1256
|
createFinished() {
|
|
1257
1257
|
var t;
|
|
1258
|
-
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((
|
|
1258
|
+
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((e) => {
|
|
1259
1259
|
this.l = e;
|
|
1260
|
-
})
|
|
1260
|
+
});
|
|
1261
1261
|
}
|
|
1262
1262
|
async resolveFinished() {
|
|
1263
1263
|
var t;
|
|
@@ -1276,72 +1276,72 @@ class gi extends $e {
|
|
|
1276
1276
|
update(t, [e]) {
|
|
1277
1277
|
var s;
|
|
1278
1278
|
const i = this.u === void 0;
|
|
1279
|
-
return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((
|
|
1279
|
+
return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, ne.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.m(e), this.render(e);
|
|
1280
1280
|
}
|
|
1281
|
-
|
|
1281
|
+
m(t) {
|
|
1282
1282
|
t = t ?? {};
|
|
1283
1283
|
const e = this.getController();
|
|
1284
1284
|
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = fi), this.options = t;
|
|
1285
1285
|
}
|
|
1286
|
-
|
|
1286
|
+
p() {
|
|
1287
1287
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
|
1288
|
-
return this.options.properties.forEach((
|
|
1289
|
-
const n = e[s] ?? (
|
|
1288
|
+
return this.options.properties.forEach((s) => {
|
|
1289
|
+
const n = e[s] ?? (ft[s] ? void 0 : i[s]), o = Number(n);
|
|
1290
1290
|
t[s] = isNaN(o) ? n + "" : o;
|
|
1291
|
-
})
|
|
1291
|
+
}), t;
|
|
1292
1292
|
}
|
|
1293
1293
|
v() {
|
|
1294
1294
|
let t, e = !0;
|
|
1295
1295
|
return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
|
|
1296
1296
|
if (Array.isArray(i)) {
|
|
1297
|
-
if (Array.isArray(s) && s.length === i.length && i.every((
|
|
1297
|
+
if (Array.isArray(s) && s.length === i.length && i.every((n, o) => n === s[o])) return !1;
|
|
1298
1298
|
} else if (s === i) return !1;
|
|
1299
1299
|
return !0;
|
|
1300
1300
|
})(t, this._)), this.h = this.t && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.h && (this._ = Array.isArray(t) ? Array.from(t) : t), this.h;
|
|
1301
1301
|
}
|
|
1302
1302
|
hostUpdate() {
|
|
1303
|
-
typeof this.optionsOrCallback == "function" && this.
|
|
1303
|
+
typeof this.optionsOrCallback == "function" && this.m(this.optionsOrCallback()), this.v() && (this.A = this.p(), this.i = this.i ?? this.element.parentNode, this.o = this.element.nextSibling);
|
|
1304
1304
|
}
|
|
1305
1305
|
async hostUpdated() {
|
|
1306
1306
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
|
|
1307
1307
|
let t;
|
|
1308
|
-
this.prepare(), await
|
|
1309
|
-
const e = this.
|
|
1308
|
+
this.prepare(), await ie;
|
|
1309
|
+
const e = this.P(), i = this.V(this.options.keyframeOptions, e), s = this.p();
|
|
1310
1310
|
if (this.A !== void 0) {
|
|
1311
|
-
const { from: n, to: o } = this.
|
|
1311
|
+
const { from: n, to: o } = this.O(this.A, s, e);
|
|
1312
1312
|
this.log("measured", [this.A, s, n, o]), t = this.calculateKeyframes(n, o);
|
|
1313
1313
|
} else {
|
|
1314
|
-
const n =
|
|
1314
|
+
const n = pt.get(this.options.inId);
|
|
1315
1315
|
if (n) {
|
|
1316
|
-
|
|
1317
|
-
const { from: o, to: a } = this.
|
|
1318
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
|
1316
|
+
pt.delete(this.options.inId);
|
|
1317
|
+
const { from: o, to: a } = this.O(n, s, e);
|
|
1318
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, te++, t.forEach((c) => c.zIndex = te);
|
|
1319
1319
|
} else this.options.in && (t = [...this.options.in, {}]);
|
|
1320
1320
|
}
|
|
1321
1321
|
this.animate(t, i);
|
|
1322
1322
|
}
|
|
1323
1323
|
resetStyles() {
|
|
1324
|
-
this.
|
|
1324
|
+
this.j !== void 0 && (this.element.setAttribute("style", this.j ?? ""), this.j = void 0);
|
|
1325
1325
|
}
|
|
1326
1326
|
commitStyles() {
|
|
1327
1327
|
var t, e;
|
|
1328
|
-
this.
|
|
1328
|
+
this.j = this.element.getAttribute("style"), (t = this.webAnimation) == null || t.commitStyles(), (e = this.webAnimation) == null || e.cancel();
|
|
1329
1329
|
}
|
|
1330
1330
|
reconnected() {
|
|
1331
1331
|
}
|
|
1332
1332
|
async disconnected() {
|
|
1333
1333
|
var e;
|
|
1334
|
-
if (!this.h || (this.options.id !== void 0 &&
|
|
1335
|
-
if (this.prepare(), await
|
|
1334
|
+
if (!this.h || (this.options.id !== void 0 && pt.set(this.options.id, this.A), this.options.out === void 0)) return;
|
|
1335
|
+
if (this.prepare(), await ie(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
1336
1336
|
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
1337
1337
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
|
1338
|
-
const s = this.
|
|
1338
|
+
const s = this.p();
|
|
1339
1339
|
this.log("stabilizing out");
|
|
1340
1340
|
const n = this.A.left - s.left, o = this.A.top - s.top;
|
|
1341
1341
|
getComputedStyle(this.element).position !== "static" || n === 0 && o === 0 || (this.element.style.position = "relative"), n !== 0 && (this.element.style.left = n + "px"), o !== 0 && (this.element.style.top = o + "px");
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
|
-
const t = this.
|
|
1344
|
+
const t = this.V(this.options.keyframeOptions);
|
|
1345
1345
|
await this.animate(this.options.out, t), this.element.remove();
|
|
1346
1346
|
}
|
|
1347
1347
|
prepare() {
|
|
@@ -1355,31 +1355,31 @@ class gi extends $e {
|
|
|
1355
1355
|
var e, i;
|
|
1356
1356
|
t && ((i = (e = this.options).onComplete) == null || i.call(e, this)), this.A = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
|
|
1357
1357
|
}
|
|
1358
|
-
|
|
1358
|
+
P() {
|
|
1359
1359
|
const t = [];
|
|
1360
1360
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
|
1361
|
-
const i =
|
|
1361
|
+
const i = ne.get(e);
|
|
1362
1362
|
i && !i.isDisabled() && i && t.push(i);
|
|
1363
1363
|
}
|
|
1364
1364
|
return t;
|
|
1365
1365
|
}
|
|
1366
1366
|
get isHostRendered() {
|
|
1367
|
-
const t =
|
|
1368
|
-
return t || this.u.updateComplete.then((
|
|
1369
|
-
|
|
1370
|
-
})
|
|
1367
|
+
const t = ee.has(this.u);
|
|
1368
|
+
return t || this.u.updateComplete.then(() => {
|
|
1369
|
+
ee.add(this.u);
|
|
1370
|
+
}), t;
|
|
1371
1371
|
}
|
|
1372
|
-
|
|
1372
|
+
V(t, e = this.P()) {
|
|
1373
1373
|
const i = { ...pi };
|
|
1374
|
-
return e.forEach((
|
|
1374
|
+
return e.forEach((s) => Object.assign(i, s.options.keyframeOptions)), Object.assign(i, t), i;
|
|
1375
1375
|
}
|
|
1376
|
-
|
|
1376
|
+
O(t, e, i) {
|
|
1377
1377
|
t = { ...t }, e = { ...e };
|
|
1378
|
-
const s = i.map((
|
|
1378
|
+
const s = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
|
1379
1379
|
let n = 1, o = 1;
|
|
1380
|
-
return s.length > 0 && (s.forEach((
|
|
1380
|
+
return s.length > 0 && (s.forEach((a) => {
|
|
1381
1381
|
a.width && (n /= a.width), a.height && (o /= a.height);
|
|
1382
|
-
})
|
|
1382
|
+
}), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
|
1383
1383
|
}
|
|
1384
1384
|
calculateKeyframes(t, e, i = !1) {
|
|
1385
1385
|
const s = {}, n = {};
|
|
@@ -1387,8 +1387,8 @@ class gi extends $e {
|
|
|
1387
1387
|
const a = {};
|
|
1388
1388
|
for (const c in e) {
|
|
1389
1389
|
const h = t[c], l = e[c];
|
|
1390
|
-
if (c in
|
|
1391
|
-
const d =
|
|
1390
|
+
if (c in ft) {
|
|
1391
|
+
const d = ft[c];
|
|
1392
1392
|
if (h === void 0 || l === void 0) continue;
|
|
1393
1393
|
const u = d(h, l);
|
|
1394
1394
|
u.transform !== void 0 && (a[c] = u.value, o = !0, s.transform = `${s.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(s, u.overrideFrom));
|
|
@@ -1425,18 +1425,18 @@ const mi = It(gi), vi = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns
|
|
|
1425
1425
|
* Copyright 2018 Google LLC
|
|
1426
1426
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1427
1427
|
*/
|
|
1428
|
-
const
|
|
1428
|
+
const oe = It(class extends be {
|
|
1429
1429
|
constructor(r) {
|
|
1430
1430
|
var t;
|
|
1431
1431
|
if (super(r), r.type !== Ot.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
1432
1432
|
}
|
|
1433
1433
|
render(r) {
|
|
1434
|
-
return " " + Object.keys(r).filter((
|
|
1434
|
+
return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
|
|
1435
1435
|
}
|
|
1436
1436
|
update(r, [t]) {
|
|
1437
1437
|
var i, s;
|
|
1438
1438
|
if (this.st === void 0) {
|
|
1439
|
-
this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((
|
|
1439
|
+
this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
|
1440
1440
|
for (const n in t) t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
|
|
1441
1441
|
return this.render(t);
|
|
1442
1442
|
}
|
|
@@ -1490,7 +1490,7 @@ const ne = It(class extends be {
|
|
|
1490
1490
|
const Ae = () => new yi();
|
|
1491
1491
|
class yi {
|
|
1492
1492
|
}
|
|
1493
|
-
const
|
|
1493
|
+
const gt = /* @__PURE__ */ new WeakMap(), xe = It(class extends $e {
|
|
1494
1494
|
render(r) {
|
|
1495
1495
|
return p;
|
|
1496
1496
|
}
|
|
@@ -1502,13 +1502,13 @@ const ft = /* @__PURE__ */ new WeakMap(), xe = It(class extends $e {
|
|
|
1502
1502
|
rt(r) {
|
|
1503
1503
|
if (this.isConnected || (r = void 0), typeof this.G == "function") {
|
|
1504
1504
|
const t = this.ht ?? globalThis;
|
|
1505
|
-
let e =
|
|
1506
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
|
1505
|
+
let e = gt.get(t);
|
|
1506
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), gt.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ht, void 0), e.set(this.G, r), r !== void 0 && this.G.call(this.ht, r);
|
|
1507
1507
|
} else this.G.value = r;
|
|
1508
1508
|
}
|
|
1509
1509
|
get lt() {
|
|
1510
1510
|
var r, t;
|
|
1511
|
-
return typeof this.G == "function" ? (r =
|
|
1511
|
+
return typeof this.G == "function" ? (r = gt.get(this.ht ?? globalThis)) == null ? void 0 : r.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
|
1512
1512
|
}
|
|
1513
1513
|
disconnected() {
|
|
1514
1514
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -1599,7 +1599,7 @@ const Rt = class Rt extends A {
|
|
|
1599
1599
|
render() {
|
|
1600
1600
|
var t, e, i, s, n, o, a;
|
|
1601
1601
|
return R`<div
|
|
1602
|
-
class=${
|
|
1602
|
+
class=${oe({
|
|
1603
1603
|
"trigger-container": !0,
|
|
1604
1604
|
"ace-hidden": !this.triggerVisible
|
|
1605
1605
|
})}
|
|
@@ -1625,7 +1625,7 @@ const Rt = class Rt extends A {
|
|
|
1625
1625
|
<button
|
|
1626
1626
|
type="button"
|
|
1627
1627
|
aria-label="${((a = (o = (n = this.application) == null ? void 0 : n.settings) == null ? void 0 : o.branding.other) == null ? void 0 : a.buttonLabelText) ?? "Widget trigger"}"
|
|
1628
|
-
class=${
|
|
1628
|
+
class=${oe({
|
|
1629
1629
|
trigger: !0,
|
|
1630
1630
|
active: this.active,
|
|
1631
1631
|
rendered: this.loaded
|
|
@@ -1885,7 +1885,7 @@ Mt.styles = [
|
|
|
1885
1885
|
}
|
|
1886
1886
|
`
|
|
1887
1887
|
];
|
|
1888
|
-
let
|
|
1888
|
+
let st = Mt;
|
|
1889
1889
|
/**
|
|
1890
1890
|
* @license
|
|
1891
1891
|
* Copyright 2021 Google LLC
|
|
@@ -1956,7 +1956,7 @@ let Ei = class extends Event {
|
|
|
1956
1956
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e;
|
|
1957
1957
|
}
|
|
1958
1958
|
};
|
|
1959
|
-
class
|
|
1959
|
+
class ae extends Ci {
|
|
1960
1960
|
constructor(t, e, i) {
|
|
1961
1961
|
var s, n;
|
|
1962
1962
|
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
|
|
@@ -1990,11 +1990,11 @@ function Si({ context: r }) {
|
|
|
1990
1990
|
}, set(s) {
|
|
1991
1991
|
return i.get(this).setValue(s), t.set.call(this, s);
|
|
1992
1992
|
}, init(s) {
|
|
1993
|
-
return i.set(this, new
|
|
1993
|
+
return i.set(this, new ae(this, { context: r, initialValue: s })), s;
|
|
1994
1994
|
} };
|
|
1995
1995
|
{
|
|
1996
1996
|
t.constructor.addInitializer(((o) => {
|
|
1997
|
-
i.set(o, new
|
|
1997
|
+
i.set(o, new ae(o, { context: r }));
|
|
1998
1998
|
}));
|
|
1999
1999
|
const s = Object.getOwnPropertyDescriptor(t, e);
|
|
2000
2000
|
let n;
|
|
@@ -2269,7 +2269,7 @@ class Ii {
|
|
|
2269
2269
|
}
|
|
2270
2270
|
createNode(t, e) {
|
|
2271
2271
|
if (!this.resolveComponent(e))
|
|
2272
|
-
return console.warn(`Unable to resolve component: ${e}`), new
|
|
2272
|
+
return console.warn(`Unable to resolve component: ${e}`), new st();
|
|
2273
2273
|
const s = document.createElement(
|
|
2274
2274
|
`ace-${e}`
|
|
2275
2275
|
);
|
|
@@ -2282,7 +2282,7 @@ class Ii {
|
|
|
2282
2282
|
return this.root;
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
2285
|
-
const
|
|
2285
|
+
const rt = class rt {
|
|
2286
2286
|
constructor() {
|
|
2287
2287
|
this.components = /* @__PURE__ */ new Map();
|
|
2288
2288
|
}
|
|
@@ -2302,12 +2302,12 @@ const st = class st {
|
|
|
2302
2302
|
await Promise.all(t);
|
|
2303
2303
|
}
|
|
2304
2304
|
defineAsWebComponent(t, e) {
|
|
2305
|
-
const i =
|
|
2305
|
+
const i = rt.ResolveWebComponentName(t);
|
|
2306
2306
|
customElements.get(i) || customElements.define(i, e);
|
|
2307
2307
|
}
|
|
2308
2308
|
};
|
|
2309
|
-
|
|
2310
|
-
let _t =
|
|
2309
|
+
rt.ResolveWebComponentName = (t) => `ace-${t}`;
|
|
2310
|
+
let _t = rt;
|
|
2311
2311
|
var y = /* @__PURE__ */ ((r) => (r.Necessary = "necessary", r.Functional = "functional", r.Analytics = "analytics", r))(y || {});
|
|
2312
2312
|
class ki {
|
|
2313
2313
|
constructor(t, e, i, s) {
|
|
@@ -2381,7 +2381,7 @@ class Ti {
|
|
|
2381
2381
|
return this.texts.get(t) || e;
|
|
2382
2382
|
}
|
|
2383
2383
|
}
|
|
2384
|
-
const Ri = "
|
|
2384
|
+
const Ri = "##__WIDGETS_VERSION__##";
|
|
2385
2385
|
class Mi {
|
|
2386
2386
|
constructor(t) {
|
|
2387
2387
|
this.widget = t, this.name = t.name;
|
|
@@ -2468,7 +2468,7 @@ class Ni {
|
|
|
2468
2468
|
), typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), n.anchor && (this.anchor = n.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
|
|
2469
2469
|
}
|
|
2470
2470
|
async activate() {
|
|
2471
|
-
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(
|
|
2471
|
+
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(pe.Ready), this.autoActivate) {
|
|
2472
2472
|
const t = this.render();
|
|
2473
2473
|
t && this._getTargetElement().appendChild(t);
|
|
2474
2474
|
}
|
|
@@ -2534,7 +2534,7 @@ class Ni {
|
|
|
2534
2534
|
let e = document.querySelector(
|
|
2535
2535
|
`ace-trigger-slot.${t}`
|
|
2536
2536
|
);
|
|
2537
|
-
return e || (e = new
|
|
2537
|
+
return e || (e = new q(), e.anchor = this.anchor, document.body.appendChild(e)), e;
|
|
2538
2538
|
}
|
|
2539
2539
|
return document.body;
|
|
2540
2540
|
}
|
|
@@ -2554,10 +2554,10 @@ class Ni {
|
|
|
2554
2554
|
return this.root;
|
|
2555
2555
|
}
|
|
2556
2556
|
}
|
|
2557
|
-
const qi = (r) => new
|
|
2557
|
+
const qi = (r) => new G(r), nt = class nt {
|
|
2558
2558
|
// TODO:
|
|
2559
2559
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
|
2560
|
-
constructor(t =
|
|
2560
|
+
constructor(t = nt.endpoint) {
|
|
2561
2561
|
this._endpoint = t;
|
|
2562
2562
|
}
|
|
2563
2563
|
async getSite(t) {
|
|
@@ -2591,8 +2591,8 @@ const qi = (r) => new q(r), rt = class rt {
|
|
|
2591
2591
|
} : null;
|
|
2592
2592
|
}
|
|
2593
2593
|
};
|
|
2594
|
-
|
|
2595
|
-
let
|
|
2594
|
+
nt.endpoint = "https://widgets.ace.teliacompany.net/api";
|
|
2595
|
+
let G = nt;
|
|
2596
2596
|
class Li {
|
|
2597
2597
|
constructor(t) {
|
|
2598
2598
|
this.site = t;
|
|
@@ -2707,7 +2707,7 @@ class Ui {
|
|
|
2707
2707
|
}
|
|
2708
2708
|
class ji {
|
|
2709
2709
|
constructor(t) {
|
|
2710
|
-
this.configurations = [], this.httpClient = new
|
|
2710
|
+
this.configurations = [], this.httpClient = new G(), this.api = new Li(this), this.triggers = [], this.httpClient = new G(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
|
|
2711
2711
|
}
|
|
2712
2712
|
async load(t) {
|
|
2713
2713
|
const e = await this.httpClient.getSite(t);
|
|
@@ -2815,9 +2815,9 @@ kt([
|
|
|
2815
2815
|
kt([
|
|
2816
2816
|
j()
|
|
2817
2817
|
], L.prototype, "status");
|
|
2818
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
|
2818
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", q);
|
|
2819
2819
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", b);
|
|
2820
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
|
2820
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", st);
|
|
2821
2821
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", N);
|
|
2822
2822
|
customElements.get("ace-widget") || customElements.define("ace-widget", L);
|
|
2823
2823
|
const Gi = async (r, t, e = {}) => {
|
|
@@ -2830,7 +2830,7 @@ export {
|
|
|
2830
2830
|
Ai as AuthState,
|
|
2831
2831
|
Dt as Container,
|
|
2832
2832
|
Ui as Environment,
|
|
2833
|
-
|
|
2833
|
+
G as HttpClient,
|
|
2834
2834
|
ji as Site,
|
|
2835
2835
|
y as StorageCategory,
|
|
2836
2836
|
ki as StorageService,
|