@telia-ace/widget-core-flamingo 1.1.82-rc.5 → 1.1.82-rc.7
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +29 -29
- package/index.mjs +399 -391
- package/package.json +1 -1
package/index.mjs
CHANGED
@@ -27,24 +27,24 @@ function mt(r) {
|
|
27
27
|
function vt(r, t) {
|
28
28
|
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
29
29
|
if (!e) return r;
|
30
|
-
var i = e.call(r), s,
|
30
|
+
var i = e.call(r), s, o = [], n;
|
31
31
|
try {
|
32
|
-
for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; )
|
32
|
+
for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; ) o.push(s.value);
|
33
33
|
} catch (a) {
|
34
|
-
|
34
|
+
n = { error: a };
|
35
35
|
} finally {
|
36
36
|
try {
|
37
37
|
s && !s.done && (e = i.return) && e.call(i);
|
38
38
|
} finally {
|
39
|
-
if (
|
39
|
+
if (n) throw n.error;
|
40
40
|
}
|
41
41
|
}
|
42
|
-
return
|
42
|
+
return o;
|
43
43
|
}
|
44
44
|
function yt(r, t, e) {
|
45
|
-
if (e || arguments.length === 2) for (var i = 0, s = t.length,
|
46
|
-
(
|
47
|
-
return r.concat(
|
45
|
+
if (e || arguments.length === 2) for (var i = 0, s = t.length, o; i < s; i++)
|
46
|
+
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
47
|
+
return r.concat(o || Array.prototype.slice.call(t));
|
48
48
|
}
|
49
49
|
function _(r) {
|
50
50
|
return typeof r == "function";
|
@@ -55,7 +55,7 @@ function ae(r) {
|
|
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 nt = ae(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) {
|
@@ -75,16 +75,16 @@ var rt = function() {
|
|
75
75
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
76
76
|
}
|
77
77
|
return r.prototype.unsubscribe = function() {
|
78
|
-
var t, e, i, s,
|
78
|
+
var t, e, i, s, o;
|
79
79
|
if (!this.closed) {
|
80
80
|
this.closed = !0;
|
81
|
-
var
|
82
|
-
if (
|
83
|
-
if (this._parentage = null, Array.isArray(
|
81
|
+
var n = this._parentage;
|
82
|
+
if (n)
|
83
|
+
if (this._parentage = null, Array.isArray(n))
|
84
84
|
try {
|
85
|
-
for (var a = mt(
|
86
|
-
var
|
87
|
-
|
85
|
+
for (var a = mt(n), c = a.next(); !c.done; c = a.next()) {
|
86
|
+
var l = c.value;
|
87
|
+
l.remove(this);
|
88
88
|
}
|
89
89
|
} catch (v) {
|
90
90
|
t = { error: v };
|
@@ -96,13 +96,13 @@ var rt = function() {
|
|
96
96
|
}
|
97
97
|
}
|
98
98
|
else
|
99
|
-
|
100
|
-
var
|
101
|
-
if (_(
|
99
|
+
n.remove(this);
|
100
|
+
var h = this.initialTeardown;
|
101
|
+
if (_(h))
|
102
102
|
try {
|
103
|
-
|
103
|
+
h();
|
104
104
|
} catch (v) {
|
105
|
-
|
105
|
+
o = v instanceof nt ? v.errors : [v];
|
106
106
|
}
|
107
107
|
var d = this._finalizers;
|
108
108
|
if (d) {
|
@@ -113,7 +113,7 @@ var rt = function() {
|
|
113
113
|
try {
|
114
114
|
Ut(g);
|
115
115
|
} catch (v) {
|
116
|
-
|
116
|
+
o = o ?? [], v instanceof nt ? o = yt(yt([], vt(o)), vt(v.errors)) : o.push(v);
|
117
117
|
}
|
118
118
|
}
|
119
119
|
} catch (v) {
|
@@ -126,8 +126,8 @@ var rt = function() {
|
|
126
126
|
}
|
127
127
|
}
|
128
128
|
}
|
129
|
-
if (
|
130
|
-
throw new
|
129
|
+
if (o)
|
130
|
+
throw new nt(o);
|
131
131
|
}
|
132
132
|
}, r.prototype.add = function(t) {
|
133
133
|
var e;
|
@@ -171,7 +171,7 @@ var le = {
|
|
171
171
|
Promise: void 0,
|
172
172
|
useDeprecatedSynchronousErrorHandling: !1,
|
173
173
|
useDeprecatedNextContext: !1
|
174
|
-
},
|
174
|
+
}, Ee = {
|
175
175
|
setTimeout: function(r, t) {
|
176
176
|
for (var e = [], i = 2; i < arguments.length; i++)
|
177
177
|
e[i - 2] = arguments[i];
|
@@ -182,8 +182,8 @@ var le = {
|
|
182
182
|
},
|
183
183
|
delegate: void 0
|
184
184
|
};
|
185
|
-
function
|
186
|
-
|
185
|
+
function Pe(r) {
|
186
|
+
Ee.setTimeout(function() {
|
187
187
|
throw r;
|
188
188
|
});
|
189
189
|
}
|
@@ -196,7 +196,7 @@ var de = function(r) {
|
|
196
196
|
Y(t, r);
|
197
197
|
function t(e) {
|
198
198
|
var i = r.call(this) || this;
|
199
|
-
return i.isStopped = !1, e ? (i.destination = e, he(e) && e.add(i)) : i.destination =
|
199
|
+
return i.isStopped = !1, e ? (i.destination = e, he(e) && e.add(i)) : i.destination = ke, i;
|
200
200
|
}
|
201
201
|
return t.create = function(e, i, s) {
|
202
202
|
return new wt(e, i, s);
|
@@ -223,11 +223,11 @@ var de = function(r) {
|
|
223
223
|
this.unsubscribe();
|
224
224
|
}
|
225
225
|
}, t;
|
226
|
-
}(rt),
|
226
|
+
}(rt), Oe = Function.prototype.bind;
|
227
227
|
function at(r, t) {
|
228
|
-
return
|
228
|
+
return Oe.call(r, t);
|
229
229
|
}
|
230
|
-
var
|
230
|
+
var Ie = function() {
|
231
231
|
function r(t) {
|
232
232
|
this.partialObserver = t;
|
233
233
|
}
|
@@ -261,46 +261,46 @@ var Oe = function() {
|
|
261
261
|
}(), wt = function(r) {
|
262
262
|
Y(t, r);
|
263
263
|
function t(e, i, s) {
|
264
|
-
var
|
264
|
+
var o = r.call(this) || this, n;
|
265
265
|
if (_(e) || !e)
|
266
|
-
|
266
|
+
n = {
|
267
267
|
next: e ?? void 0,
|
268
268
|
error: i ?? void 0,
|
269
269
|
complete: s ?? void 0
|
270
270
|
};
|
271
271
|
else {
|
272
272
|
var a;
|
273
|
-
|
274
|
-
return
|
275
|
-
},
|
273
|
+
o && le.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
274
|
+
return o.unsubscribe();
|
275
|
+
}, n = {
|
276
276
|
next: e.next && at(e.next, a),
|
277
277
|
error: e.error && at(e.error, a),
|
278
278
|
complete: e.complete && at(e.complete, a)
|
279
|
-
}) :
|
279
|
+
}) : n = e;
|
280
280
|
}
|
281
|
-
return
|
281
|
+
return o.destination = new Ie(n), o;
|
282
282
|
}
|
283
283
|
return t;
|
284
284
|
}(de);
|
285
285
|
function Z(r) {
|
286
|
-
|
286
|
+
Pe(r);
|
287
287
|
}
|
288
|
-
function
|
288
|
+
function Te(r) {
|
289
289
|
throw r;
|
290
290
|
}
|
291
|
-
var
|
291
|
+
var ke = {
|
292
292
|
closed: !0,
|
293
293
|
next: Lt,
|
294
|
-
error:
|
294
|
+
error: Te,
|
295
295
|
complete: Lt
|
296
|
-
},
|
296
|
+
}, Re = function() {
|
297
297
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
298
298
|
}();
|
299
|
-
function
|
299
|
+
function Me(r) {
|
300
300
|
return r;
|
301
301
|
}
|
302
|
-
function
|
303
|
-
return r.length === 0 ?
|
302
|
+
function Ne(r) {
|
303
|
+
return r.length === 0 ? Me : r.length === 1 ? r[0] : function(e) {
|
304
304
|
return r.reduce(function(i, s) {
|
305
305
|
return s(i);
|
306
306
|
}, e);
|
@@ -314,11 +314,11 @@ var jt = function() {
|
|
314
314
|
var e = new r();
|
315
315
|
return e.source = this, e.operator = t, e;
|
316
316
|
}, r.prototype.subscribe = function(t, e, i) {
|
317
|
-
var s = this,
|
317
|
+
var s = this, o = Le(t) ? t : new wt(t, e, i);
|
318
318
|
return G(function() {
|
319
|
-
var
|
320
|
-
|
321
|
-
}),
|
319
|
+
var n = s, a = n.operator, c = n.source;
|
320
|
+
o.add(a ? a.call(o, c) : c ? s._subscribe(o) : s._trySubscribe(o));
|
321
|
+
}), o;
|
322
322
|
}, r.prototype._trySubscribe = function(t) {
|
323
323
|
try {
|
324
324
|
return this._subscribe(t);
|
@@ -327,39 +327,39 @@ var jt = function() {
|
|
327
327
|
}
|
328
328
|
}, r.prototype.forEach = function(t, e) {
|
329
329
|
var i = this;
|
330
|
-
return e = Ht(e), new e(function(s,
|
331
|
-
var
|
330
|
+
return e = Ht(e), new e(function(s, o) {
|
331
|
+
var n = new wt({
|
332
332
|
next: function(a) {
|
333
333
|
try {
|
334
334
|
t(a);
|
335
335
|
} catch (c) {
|
336
|
-
|
336
|
+
o(c), n.unsubscribe();
|
337
337
|
}
|
338
338
|
},
|
339
|
-
error:
|
339
|
+
error: o,
|
340
340
|
complete: s
|
341
341
|
});
|
342
|
-
i.subscribe(
|
342
|
+
i.subscribe(n);
|
343
343
|
});
|
344
344
|
}, r.prototype._subscribe = function(t) {
|
345
345
|
var e;
|
346
346
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
347
|
-
}, r.prototype[
|
347
|
+
}, r.prototype[Re] = function() {
|
348
348
|
return this;
|
349
349
|
}, r.prototype.pipe = function() {
|
350
350
|
for (var t = [], e = 0; e < arguments.length; e++)
|
351
351
|
t[e] = arguments[e];
|
352
|
-
return
|
352
|
+
return Ne(t)(this);
|
353
353
|
}, r.prototype.toPromise = function(t) {
|
354
354
|
var e = this;
|
355
355
|
return t = Ht(t), new t(function(i, s) {
|
356
|
-
var
|
357
|
-
e.subscribe(function(
|
358
|
-
return
|
359
|
-
}, function(
|
360
|
-
return s(
|
356
|
+
var o;
|
357
|
+
e.subscribe(function(n) {
|
358
|
+
return o = n;
|
359
|
+
}, function(n) {
|
360
|
+
return s(n);
|
361
361
|
}, function() {
|
362
|
-
return i(
|
362
|
+
return i(o);
|
363
363
|
});
|
364
364
|
});
|
365
365
|
}, r.create = function(t) {
|
@@ -370,13 +370,13 @@ function Ht(r) {
|
|
370
370
|
var t;
|
371
371
|
return (t = r ?? le.Promise) !== null && t !== void 0 ? t : Promise;
|
372
372
|
}
|
373
|
-
function
|
373
|
+
function Ue(r) {
|
374
374
|
return r && _(r.next) && _(r.error) && _(r.complete);
|
375
375
|
}
|
376
|
-
function
|
377
|
-
return r && r instanceof de ||
|
376
|
+
function Le(r) {
|
377
|
+
return r && r instanceof de || Ue(r) && he(r);
|
378
378
|
}
|
379
|
-
var
|
379
|
+
var je = ae(function(r) {
|
380
380
|
return function() {
|
381
381
|
r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
382
382
|
};
|
@@ -391,23 +391,23 @@ var Le = ae(function(r) {
|
|
391
391
|
return i.operator = e, i;
|
392
392
|
}, t.prototype._throwIfClosed = function() {
|
393
393
|
if (this.closed)
|
394
|
-
throw new
|
394
|
+
throw new je();
|
395
395
|
}, t.prototype.next = function(e) {
|
396
396
|
var i = this;
|
397
397
|
G(function() {
|
398
|
-
var s,
|
398
|
+
var s, o;
|
399
399
|
if (i._throwIfClosed(), !i.isStopped) {
|
400
400
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
401
401
|
try {
|
402
|
-
for (var
|
402
|
+
for (var n = mt(i.currentObservers), a = n.next(); !a.done; a = n.next()) {
|
403
403
|
var c = a.value;
|
404
404
|
c.next(e);
|
405
405
|
}
|
406
|
-
} catch (
|
407
|
-
s = { error:
|
406
|
+
} catch (l) {
|
407
|
+
s = { error: l };
|
408
408
|
} finally {
|
409
409
|
try {
|
410
|
-
a && !a.done && (
|
410
|
+
a && !a.done && (o = n.return) && o.call(n);
|
411
411
|
} finally {
|
412
412
|
if (s) throw s.error;
|
413
413
|
}
|
@@ -446,13 +446,13 @@ var Le = ae(function(r) {
|
|
446
446
|
}, t.prototype._subscribe = function(e) {
|
447
447
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
448
448
|
}, t.prototype._innerSubscribe = function(e) {
|
449
|
-
var i = this, s = this,
|
450
|
-
return
|
449
|
+
var i = this, s = this, o = s.hasError, n = s.isStopped, a = s.observers;
|
450
|
+
return o || n ? ce : (this.currentObservers = null, a.push(e), new rt(function() {
|
451
451
|
i.currentObservers = null, bt(a, e);
|
452
452
|
}));
|
453
453
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
454
|
-
var i = this, s = i.hasError,
|
455
|
-
s ? e.error(
|
454
|
+
var i = this, s = i.hasError, o = i.thrownError, n = i.isStopped;
|
455
|
+
s ? e.error(o) : n && e.complete();
|
456
456
|
}, t.prototype.asObservable = function() {
|
457
457
|
var e = new jt();
|
458
458
|
return e.source = this, e;
|
@@ -494,10 +494,10 @@ var Le = ae(function(r) {
|
|
494
494
|
var i = r.prototype._subscribe.call(this, e);
|
495
495
|
return !i.closed && e.next(this._value), i;
|
496
496
|
}, t.prototype.getValue = function() {
|
497
|
-
var e = this, i = e.hasError, s = e.thrownError,
|
497
|
+
var e = this, i = e.hasError, s = e.thrownError, o = e._value;
|
498
498
|
if (i)
|
499
499
|
throw s;
|
500
|
-
return this._throwIfClosed(),
|
500
|
+
return this._throwIfClosed(), o;
|
501
501
|
}, t.prototype.next = function(e) {
|
502
502
|
r.prototype.next.call(this, this._value = e);
|
503
503
|
}, t;
|
@@ -546,14 +546,14 @@ let fe = class {
|
|
546
546
|
return this.cssText;
|
547
547
|
}
|
548
548
|
};
|
549
|
-
const
|
550
|
-
const e = r.length === 1 ? r[0] : t.reduce((i, s,
|
551
|
-
if (
|
552
|
-
if (typeof
|
553
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
554
|
-
})(s) + r[
|
549
|
+
const He = (r) => new fe(typeof r == "string" ? r : r + "", void 0, Ct), U = (r, ...t) => {
|
550
|
+
const e = r.length === 1 ? r[0] : t.reduce((i, s, o) => i + ((n) => {
|
551
|
+
if (n._$cssResult$ === !0) return n.cssText;
|
552
|
+
if (typeof n == "number") return n;
|
553
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
554
|
+
})(s) + r[o + 1], r[0]);
|
555
555
|
return new fe(e, r, Ct);
|
556
|
-
},
|
556
|
+
}, Be = (r, t) => {
|
557
557
|
if (xt) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
558
558
|
else for (const e of t) {
|
559
559
|
const i = document.createElement("style"), s = J.litNonce;
|
@@ -562,17 +562,17 @@ const je = (r) => new fe(typeof r == "string" ? r : r + "", void 0, Ct), N = (r,
|
|
562
562
|
}, Ft = xt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
563
563
|
let e = "";
|
564
564
|
for (const i of t.cssRules) e += i.cssText;
|
565
|
-
return
|
565
|
+
return He(e);
|
566
566
|
})(r) : r;
|
567
567
|
/**
|
568
568
|
* @license
|
569
569
|
* Copyright 2017 Google LLC
|
570
570
|
* SPDX-License-Identifier: BSD-3-Clause
|
571
571
|
*/
|
572
|
-
const { is:
|
572
|
+
const { is: De, defineProperty: ze, getOwnPropertyDescriptor: Fe, getOwnPropertyNames: Ve, getOwnPropertySymbols: We, getPrototypeOf: Ye } = Object, C = globalThis, Vt = C.trustedTypes, qe = Vt ? Vt.emptyScript : "", ct = C.reactiveElementPolyfillSupport, H = (r, t) => r, X = { toAttribute(r, t) {
|
573
573
|
switch (t) {
|
574
574
|
case Boolean:
|
575
|
-
r = r ?
|
575
|
+
r = r ? qe : null;
|
576
576
|
break;
|
577
577
|
case Object:
|
578
578
|
case Array:
|
@@ -597,7 +597,7 @@ const { is: Be, defineProperty: De, getOwnPropertyDescriptor: ze, getOwnProperty
|
|
597
597
|
}
|
598
598
|
}
|
599
599
|
return e;
|
600
|
-
} }, St = (r, t) => !
|
600
|
+
} }, St = (r, t) => !De(r, t), Wt = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: St };
|
601
601
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
602
602
|
let T = class extends HTMLElement {
|
603
603
|
static addInitializer(t) {
|
@@ -609,34 +609,34 @@ let T = class extends HTMLElement {
|
|
609
609
|
static createProperty(t, e = Wt) {
|
610
610
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
611
611
|
const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
|
612
|
-
s !== void 0 &&
|
612
|
+
s !== void 0 && ze(this.prototype, t, s);
|
613
613
|
}
|
614
614
|
}
|
615
615
|
static getPropertyDescriptor(t, e, i) {
|
616
|
-
const { get: s, set:
|
616
|
+
const { get: s, set: o } = Fe(this.prototype, t) ?? { get() {
|
617
617
|
return this[e];
|
618
|
-
}, set(
|
619
|
-
this[e] =
|
618
|
+
}, set(n) {
|
619
|
+
this[e] = n;
|
620
620
|
} };
|
621
621
|
return { get() {
|
622
622
|
return s == null ? void 0 : s.call(this);
|
623
|
-
}, set(
|
623
|
+
}, set(n) {
|
624
624
|
const a = s == null ? void 0 : s.call(this);
|
625
|
-
|
625
|
+
o.call(this, n), this.requestUpdate(t, a, i);
|
626
626
|
}, configurable: !0, enumerable: !0 };
|
627
627
|
}
|
628
628
|
static getPropertyOptions(t) {
|
629
629
|
return this.elementProperties.get(t) ?? Wt;
|
630
630
|
}
|
631
631
|
static _$Ei() {
|
632
|
-
if (this.hasOwnProperty(
|
633
|
-
const t =
|
632
|
+
if (this.hasOwnProperty(H("elementProperties"))) return;
|
633
|
+
const t = Ye(this);
|
634
634
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
635
635
|
}
|
636
636
|
static finalize() {
|
637
|
-
if (this.hasOwnProperty(
|
638
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
639
|
-
const e = this.properties, i = [...
|
637
|
+
if (this.hasOwnProperty(H("finalized"))) return;
|
638
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(H("properties"))) {
|
639
|
+
const e = this.properties, i = [...Ve(e), ...We(e)];
|
640
640
|
for (const s of i) this.createProperty(s, e[s]);
|
641
641
|
}
|
642
642
|
const t = this[Symbol.metadata];
|
@@ -685,7 +685,7 @@ let T = class extends HTMLElement {
|
|
685
685
|
}
|
686
686
|
createRenderRoot() {
|
687
687
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
688
|
-
return
|
688
|
+
return Be(t, this.constructor.elementStyles), t;
|
689
689
|
}
|
690
690
|
connectedCallback() {
|
691
691
|
var t;
|
@@ -707,19 +707,19 @@ let T = class extends HTMLElement {
|
|
707
707
|
this._$AK(t, i);
|
708
708
|
}
|
709
709
|
_$EC(t, e) {
|
710
|
-
var
|
710
|
+
var o;
|
711
711
|
const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
|
712
712
|
if (s !== void 0 && i.reflect === !0) {
|
713
|
-
const
|
714
|
-
this._$Em = t,
|
713
|
+
const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : X).toAttribute(e, i.type);
|
714
|
+
this._$Em = t, n == null ? this.removeAttribute(s) : this.setAttribute(s, n), this._$Em = null;
|
715
715
|
}
|
716
716
|
}
|
717
717
|
_$AK(t, e) {
|
718
|
-
var
|
718
|
+
var o;
|
719
719
|
const i = this.constructor, s = i._$Eh.get(t);
|
720
720
|
if (s !== void 0 && this._$Em !== s) {
|
721
|
-
const
|
722
|
-
this._$Em = s, this[s] = a.fromAttribute(e,
|
721
|
+
const n = i.getPropertyOptions(s), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : X;
|
722
|
+
this._$Em = s, this[s] = a.fromAttribute(e, n.type), this._$Em = null;
|
723
723
|
}
|
724
724
|
}
|
725
725
|
requestUpdate(t, e, i) {
|
@@ -750,18 +750,18 @@ let T = class extends HTMLElement {
|
|
750
750
|
if (!this.isUpdatePending) return;
|
751
751
|
if (!this.hasUpdated) {
|
752
752
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
753
|
-
for (const [
|
753
|
+
for (const [o, n] of this._$Ep) this[o] = n;
|
754
754
|
this._$Ep = void 0;
|
755
755
|
}
|
756
756
|
const s = this.constructor.elementProperties;
|
757
|
-
if (s.size > 0) for (const [
|
757
|
+
if (s.size > 0) for (const [o, n] of s) n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
|
758
758
|
}
|
759
759
|
let t = !1;
|
760
760
|
const e = this._$AL;
|
761
761
|
try {
|
762
762
|
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
|
763
|
-
var
|
764
|
-
return (
|
763
|
+
var o;
|
764
|
+
return (o = s.hostUpdate) == null ? void 0 : o.call(s);
|
765
765
|
}), this.update(e)) : this._$EU();
|
766
766
|
} catch (s) {
|
767
767
|
throw t = !1, this._$EU(), s;
|
@@ -797,61 +797,61 @@ let T = class extends HTMLElement {
|
|
797
797
|
firstUpdated(t) {
|
798
798
|
}
|
799
799
|
};
|
800
|
-
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[
|
800
|
+
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[H("elementProperties")] = /* @__PURE__ */ new Map(), T[H("finalized")] = /* @__PURE__ */ new Map(), ct == null || ct({ ReactiveElement: T }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.0.4");
|
801
801
|
/**
|
802
802
|
* @license
|
803
803
|
* Copyright 2017 Google LLC
|
804
804
|
* SPDX-License-Identifier: BSD-3-Clause
|
805
805
|
*/
|
806
|
-
const
|
807
|
-
\f\r]`,
|
808
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Zt = /'/g, Gt = /"/g, ve = /^(?:script|style|textarea|title)$/i,
|
806
|
+
const B = globalThis, Q = B.trustedTypes, Yt = Q ? Q.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ge = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, me = "?" + x, Ke = `<${me}>`, O = document, z = () => O.createComment(""), F = (r) => r === null || typeof r != "object" && typeof r != "function", Et = Array.isArray, Ze = (r) => Et(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ht = `[
|
807
|
+
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, Kt = />/g, S = RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^
|
808
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Zt = /'/g, Gt = /"/g, ve = /^(?:script|style|textarea|title)$/i, Ge = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), k = Ge(1), I = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), Jt = /* @__PURE__ */ new WeakMap(), P = O.createTreeWalker(O, 129);
|
809
809
|
function ye(r, t) {
|
810
810
|
if (!Et(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
811
811
|
return Yt !== void 0 ? Yt.createHTML(t) : t;
|
812
812
|
}
|
813
|
-
const
|
813
|
+
const Je = (r, t) => {
|
814
814
|
const e = r.length - 1, i = [];
|
815
|
-
let s,
|
815
|
+
let s, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = j;
|
816
816
|
for (let a = 0; a < e; a++) {
|
817
817
|
const c = r[a];
|
818
|
-
let
|
819
|
-
for (; p < c.length && (
|
820
|
-
const f =
|
821
|
-
|
818
|
+
let l, h, d = -1, p = 0;
|
819
|
+
for (; p < c.length && (n.lastIndex = p, h = n.exec(c), h !== null); ) p = n.lastIndex, n === j ? h[1] === "!--" ? n = qt : h[1] !== void 0 ? n = Kt : h[2] !== void 0 ? (ve.test(h[2]) && (s = RegExp("</" + h[2], "g")), n = S) : h[3] !== void 0 && (n = S) : n === S ? h[0] === ">" ? (n = s ?? j, d = -1) : h[1] === void 0 ? d = -2 : (d = n.lastIndex - h[2].length, l = h[1], n = h[3] === void 0 ? S : h[3] === '"' ? Gt : Zt) : n === Gt || n === Zt ? n = S : n === qt || n === Kt ? n = j : (n = S, s = void 0);
|
820
|
+
const f = n === S && r[a + 1].startsWith("/>") ? " " : "";
|
821
|
+
o += n === j ? c + Ke : d >= 0 ? (i.push(l), c.slice(0, d) + ge + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
|
822
822
|
}
|
823
|
-
return [ye(r,
|
823
|
+
return [ye(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
824
824
|
};
|
825
825
|
let $t = class be {
|
826
826
|
constructor({ strings: t, _$litType$: e }, i) {
|
827
827
|
let s;
|
828
828
|
this.parts = [];
|
829
|
-
let
|
830
|
-
const a = t.length - 1, c = this.parts, [
|
831
|
-
if (this.el = be.createElement(
|
829
|
+
let o = 0, n = 0;
|
830
|
+
const a = t.length - 1, c = this.parts, [l, h] = Je(t, e);
|
831
|
+
if (this.el = be.createElement(l, i), P.currentNode = this.el.content, e === 2 || e === 3) {
|
832
832
|
const d = this.el.content.firstChild;
|
833
833
|
d.replaceWith(...d.childNodes);
|
834
834
|
}
|
835
835
|
for (; (s = P.nextNode()) !== null && c.length < a; ) {
|
836
836
|
if (s.nodeType === 1) {
|
837
837
|
if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(ge)) {
|
838
|
-
const p =
|
839
|
-
c.push({ type: 1, index:
|
840
|
-
} else d.startsWith(x) && (c.push({ type: 6, index:
|
838
|
+
const p = h[n++], f = s.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(p);
|
839
|
+
c.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Qe : g[1] === "?" ? ti : g[1] === "@" ? ei : ot }), s.removeAttribute(d);
|
840
|
+
} else d.startsWith(x) && (c.push({ type: 6, index: o }), s.removeAttribute(d));
|
841
841
|
if (ve.test(s.tagName)) {
|
842
842
|
const d = s.textContent.split(x), p = d.length - 1;
|
843
843
|
if (p > 0) {
|
844
844
|
s.textContent = Q ? Q.emptyScript : "";
|
845
|
-
for (let f = 0; f < p; f++) s.append(d[f],
|
846
|
-
s.append(d[p],
|
845
|
+
for (let f = 0; f < p; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++o });
|
846
|
+
s.append(d[p], z());
|
847
847
|
}
|
848
848
|
}
|
849
|
-
} else if (s.nodeType === 8) if (s.data === me) c.push({ type: 2, index:
|
849
|
+
} else if (s.nodeType === 8) if (s.data === me) c.push({ type: 2, index: o });
|
850
850
|
else {
|
851
851
|
let d = -1;
|
852
|
-
for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index:
|
852
|
+
for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index: o }), d += x.length - 1;
|
853
853
|
}
|
854
|
-
|
854
|
+
o++;
|
855
855
|
}
|
856
856
|
}
|
857
857
|
static createElement(t, e) {
|
@@ -860,13 +860,13 @@ let $t = class be {
|
|
860
860
|
}
|
861
861
|
};
|
862
862
|
function R(r, t, e = r, i) {
|
863
|
-
var
|
863
|
+
var n, a;
|
864
864
|
if (t === I) return t;
|
865
|
-
let s = i !== void 0 ? (
|
866
|
-
const
|
867
|
-
return (s == null ? void 0 : s.constructor) !==
|
865
|
+
let s = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
|
866
|
+
const o = F(t) ? void 0 : t._$litDirective$;
|
867
|
+
return (s == null ? void 0 : s.constructor) !== o && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), o === void 0 ? s = void 0 : (s = new o(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = R(r, s._$AS(r, t.values), s, i)), t;
|
868
868
|
}
|
869
|
-
class
|
869
|
+
class Xe {
|
870
870
|
constructor(t, e) {
|
871
871
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
872
872
|
}
|
@@ -879,13 +879,13 @@ class Je {
|
|
879
879
|
u(t) {
|
880
880
|
const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? O).importNode(e, !0);
|
881
881
|
P.currentNode = s;
|
882
|
-
let
|
882
|
+
let o = P.nextNode(), n = 0, a = 0, c = i[0];
|
883
883
|
for (; c !== void 0; ) {
|
884
|
-
if (
|
885
|
-
let
|
886
|
-
c.type === 2 ?
|
884
|
+
if (n === c.index) {
|
885
|
+
let l;
|
886
|
+
c.type === 2 ? l = new q(o, o.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (l = new ii(o, this, t)), this._$AV.push(l), c = i[++a];
|
887
887
|
}
|
888
|
-
|
888
|
+
n !== (c == null ? void 0 : c.index) && (o = P.nextNode(), n++);
|
889
889
|
}
|
890
890
|
return P.currentNode = O, s;
|
891
891
|
}
|
@@ -914,7 +914,7 @@ class q {
|
|
914
914
|
return this._$AB;
|
915
915
|
}
|
916
916
|
_$AI(t, e = this) {
|
917
|
-
t = R(this, t, e),
|
917
|
+
t = R(this, t, e), F(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== I && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ze(t) ? this.k(t) : this._(t);
|
918
918
|
}
|
919
919
|
O(t) {
|
920
920
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -923,15 +923,15 @@ class q {
|
|
923
923
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
924
924
|
}
|
925
925
|
_(t) {
|
926
|
-
this._$AH !== u &&
|
926
|
+
this._$AH !== u && F(this._$AH) ? this._$AA.nextSibling.data = t : this.T(O.createTextNode(t)), this._$AH = t;
|
927
927
|
}
|
928
928
|
$(t) {
|
929
|
-
var
|
929
|
+
var o;
|
930
930
|
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = $t.createElement(ye(i.h, i.h[0]), this.options)), i);
|
931
|
-
if (((
|
931
|
+
if (((o = this._$AH) == null ? void 0 : o._$AD) === s) this._$AH.p(e);
|
932
932
|
else {
|
933
|
-
const
|
934
|
-
|
933
|
+
const n = new Xe(s, this), a = n.u(this.options);
|
934
|
+
n.p(e), this.T(a), this._$AH = n;
|
935
935
|
}
|
936
936
|
}
|
937
937
|
_$AC(t) {
|
@@ -942,7 +942,7 @@ class q {
|
|
942
942
|
Et(this._$AH) || (this._$AH = [], this._$AR());
|
943
943
|
const e = this._$AH;
|
944
944
|
let i, s = 0;
|
945
|
-
for (const
|
945
|
+
for (const o of t) s === e.length ? e.push(i = new q(this.O(z()), this.O(z()), this, this.options)) : i = e[s], i._$AI(o), s++;
|
946
946
|
s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
|
947
947
|
}
|
948
948
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -957,32 +957,32 @@ class q {
|
|
957
957
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
958
958
|
}
|
959
959
|
}
|
960
|
-
class
|
960
|
+
class ot {
|
961
961
|
get tagName() {
|
962
962
|
return this.element.tagName;
|
963
963
|
}
|
964
964
|
get _$AU() {
|
965
965
|
return this._$AM._$AU;
|
966
966
|
}
|
967
|
-
constructor(t, e, i, s,
|
968
|
-
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options =
|
967
|
+
constructor(t, e, i, s, o) {
|
968
|
+
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
|
969
969
|
}
|
970
970
|
_$AI(t, e = this, i, s) {
|
971
|
-
const
|
972
|
-
let
|
973
|
-
if (
|
971
|
+
const o = this.strings;
|
972
|
+
let n = !1;
|
973
|
+
if (o === void 0) t = R(this, t, e, 0), n = !F(t) || t !== this._$AH && t !== I, n && (this._$AH = t);
|
974
974
|
else {
|
975
975
|
const a = t;
|
976
|
-
let c,
|
977
|
-
for (t =
|
976
|
+
let c, l;
|
977
|
+
for (t = o[0], c = 0; c < o.length - 1; c++) l = R(this, a[i + c], e, c), l === I && (l = this._$AH[c]), n || (n = !F(l) || l !== this._$AH[c]), l === u ? t = u : t !== u && (t += (l ?? "") + o[c + 1]), this._$AH[c] = l;
|
978
978
|
}
|
979
|
-
|
979
|
+
n && !s && this.j(t);
|
980
980
|
}
|
981
981
|
j(t) {
|
982
982
|
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
983
983
|
}
|
984
984
|
}
|
985
|
-
class
|
985
|
+
class Qe extends ot {
|
986
986
|
constructor() {
|
987
987
|
super(...arguments), this.type = 3;
|
988
988
|
}
|
@@ -990,7 +990,7 @@ class Xe extends nt {
|
|
990
990
|
this.element[this.name] = t === u ? void 0 : t;
|
991
991
|
}
|
992
992
|
}
|
993
|
-
class
|
993
|
+
class ti extends ot {
|
994
994
|
constructor() {
|
995
995
|
super(...arguments), this.type = 4;
|
996
996
|
}
|
@@ -998,21 +998,21 @@ class Qe extends nt {
|
|
998
998
|
this.element.toggleAttribute(this.name, !!t && t !== u);
|
999
999
|
}
|
1000
1000
|
}
|
1001
|
-
class
|
1002
|
-
constructor(t, e, i, s,
|
1003
|
-
super(t, e, i, s,
|
1001
|
+
class ei extends ot {
|
1002
|
+
constructor(t, e, i, s, o) {
|
1003
|
+
super(t, e, i, s, o), this.type = 5;
|
1004
1004
|
}
|
1005
1005
|
_$AI(t, e = this) {
|
1006
1006
|
if ((t = R(this, t, e, 0) ?? u) === I) return;
|
1007
|
-
const i = this._$AH, s = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive,
|
1008
|
-
s && this.element.removeEventListener(this.name, this, i),
|
1007
|
+
const i = this._$AH, s = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== u && (i === u || s);
|
1008
|
+
s && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
1009
1009
|
}
|
1010
1010
|
handleEvent(t) {
|
1011
1011
|
var e;
|
1012
1012
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
1013
1013
|
}
|
1014
1014
|
}
|
1015
|
-
class
|
1015
|
+
class ii {
|
1016
1016
|
constructor(t, e, i) {
|
1017
1017
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
1018
1018
|
}
|
@@ -1023,14 +1023,14 @@ class ei {
|
|
1023
1023
|
R(this, t);
|
1024
1024
|
}
|
1025
1025
|
}
|
1026
|
-
const lt =
|
1027
|
-
lt == null || lt($t, q), (
|
1028
|
-
const
|
1026
|
+
const lt = B.litHtmlPolyfillSupport;
|
1027
|
+
lt == null || lt($t, q), (B.litHtmlVersions ?? (B.litHtmlVersions = [])).push("3.2.1");
|
1028
|
+
const si = (r, t, e) => {
|
1029
1029
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
1030
1030
|
let s = i._$litPart$;
|
1031
1031
|
if (s === void 0) {
|
1032
|
-
const
|
1033
|
-
i._$litPart$ = s = new q(t.insertBefore(
|
1032
|
+
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
1033
|
+
i._$litPart$ = s = new q(t.insertBefore(z(), o), o, void 0, e ?? {});
|
1034
1034
|
}
|
1035
1035
|
return s._$AI(r), s;
|
1036
1036
|
};
|
@@ -1050,7 +1050,7 @@ let A = class extends T {
|
|
1050
1050
|
}
|
1051
1051
|
update(t) {
|
1052
1052
|
const e = this.render();
|
1053
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
1053
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = si(e, this.renderRoot, this.renderOptions);
|
1054
1054
|
}
|
1055
1055
|
connectedCallback() {
|
1056
1056
|
var t;
|
@@ -1064,8 +1064,8 @@ let A = class extends T {
|
|
1064
1064
|
return I;
|
1065
1065
|
}
|
1066
1066
|
};
|
1067
|
-
var
|
1068
|
-
A._$litElement$ = !0, A.finalized = !0, (
|
1067
|
+
var ne;
|
1068
|
+
A._$litElement$ = !0, A.finalized = !0, (ne = globalThis.litElementHydrateSupport) == null || ne.call(globalThis, { LitElement: A });
|
1069
1069
|
const dt = globalThis.litElementPolyfillSupport;
|
1070
1070
|
dt == null || dt({ LitElement: A });
|
1071
1071
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
@@ -1074,31 +1074,31 @@ dt == null || dt({ LitElement: A });
|
|
1074
1074
|
* Copyright 2017 Google LLC
|
1075
1075
|
* SPDX-License-Identifier: BSD-3-Clause
|
1076
1076
|
*/
|
1077
|
-
const
|
1077
|
+
const ri = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: St }, oi = (r = ri, t, e) => {
|
1078
1078
|
const { kind: i, metadata: s } = e;
|
1079
|
-
let
|
1080
|
-
if (
|
1081
|
-
const { name:
|
1079
|
+
let o = globalThis.litPropertyMetadata.get(s);
|
1080
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), o.set(e.name, r), i === "accessor") {
|
1081
|
+
const { name: n } = e;
|
1082
1082
|
return { set(a) {
|
1083
1083
|
const c = t.get.call(this);
|
1084
|
-
t.set.call(this, a), this.requestUpdate(
|
1084
|
+
t.set.call(this, a), this.requestUpdate(n, c, r);
|
1085
1085
|
}, init(a) {
|
1086
|
-
return a !== void 0 && this.P(
|
1086
|
+
return a !== void 0 && this.P(n, void 0, r), a;
|
1087
1087
|
} };
|
1088
1088
|
}
|
1089
1089
|
if (i === "setter") {
|
1090
|
-
const { name:
|
1090
|
+
const { name: n } = e;
|
1091
1091
|
return function(a) {
|
1092
|
-
const c = this[
|
1093
|
-
t.call(this, a), this.requestUpdate(
|
1092
|
+
const c = this[n];
|
1093
|
+
t.call(this, a), this.requestUpdate(n, c, r);
|
1094
1094
|
};
|
1095
1095
|
}
|
1096
1096
|
throw Error("Unsupported decorator location: " + i);
|
1097
1097
|
};
|
1098
1098
|
function m(r) {
|
1099
|
-
return (t, e) => typeof e == "object" ?
|
1100
|
-
const
|
1101
|
-
return s.constructor.createProperty(
|
1099
|
+
return (t, e) => typeof e == "object" ? oi(r, t, e) : ((i, s, o) => {
|
1100
|
+
const n = s.hasOwnProperty(o);
|
1101
|
+
return s.constructor.createProperty(o, n ? { ...i, wrapped: !0 } : i), n ? Object.getOwnPropertyDescriptor(s, o) : void 0;
|
1102
1102
|
})(r, t, e);
|
1103
1103
|
}
|
1104
1104
|
/**
|
@@ -1106,12 +1106,12 @@ function m(r) {
|
|
1106
1106
|
* Copyright 2017 Google LLC
|
1107
1107
|
* SPDX-License-Identifier: BSD-3-Clause
|
1108
1108
|
*/
|
1109
|
-
function
|
1109
|
+
function L(r) {
|
1110
1110
|
return m({ ...r, state: !0, attribute: !1 });
|
1111
1111
|
}
|
1112
|
-
var ni = Object.defineProperty,
|
1113
|
-
for (var s = void 0,
|
1114
|
-
(
|
1112
|
+
var ni = Object.defineProperty, ai = (r, t, e, i) => {
|
1113
|
+
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
1114
|
+
(n = r[o]) && (s = n(t, e, s) || s);
|
1115
1115
|
return s && ni(t, e, s), s;
|
1116
1116
|
};
|
1117
1117
|
const Tt = class Tt extends A {
|
@@ -1127,7 +1127,7 @@ const Tt = class Tt extends A {
|
|
1127
1127
|
}
|
1128
1128
|
};
|
1129
1129
|
Tt.styles = [
|
1130
|
-
|
1130
|
+
U`
|
1131
1131
|
:host {
|
1132
1132
|
position: fixed;
|
1133
1133
|
display: flex;
|
@@ -1145,10 +1145,10 @@ Tt.styles = [
|
|
1145
1145
|
}
|
1146
1146
|
`
|
1147
1147
|
];
|
1148
|
-
let
|
1149
|
-
|
1148
|
+
let V = Tt;
|
1149
|
+
ai([
|
1150
1150
|
m({ attribute: !0 })
|
1151
|
-
],
|
1151
|
+
], V.prototype, "anchor");
|
1152
1152
|
/**
|
1153
1153
|
* @license
|
1154
1154
|
* Copyright 2017 Google LLC
|
@@ -1176,17 +1176,17 @@ let we = class {
|
|
1176
1176
|
* Copyright 2020 Google LLC
|
1177
1177
|
* SPDX-License-Identifier: BSD-3-Clause
|
1178
1178
|
*/
|
1179
|
-
const
|
1179
|
+
const ci = (r) => r.strings === void 0;
|
1180
1180
|
/**
|
1181
1181
|
* @license
|
1182
1182
|
* Copyright 2017 Google LLC
|
1183
1183
|
* SPDX-License-Identifier: BSD-3-Clause
|
1184
1184
|
*/
|
1185
|
-
const
|
1185
|
+
const D = (r, t) => {
|
1186
1186
|
var i;
|
1187
1187
|
const e = r._$AN;
|
1188
1188
|
if (e === void 0) return !1;
|
1189
|
-
for (const s of e) (i = s._$AO) == null || i.call(s, t, !1),
|
1189
|
+
for (const s of e) (i = s._$AO) == null || i.call(s, t, !1), D(s, t);
|
1190
1190
|
return !0;
|
1191
1191
|
}, tt = (r) => {
|
1192
1192
|
let t, e;
|
@@ -1199,20 +1199,20 @@ const B = (r, t) => {
|
|
1199
1199
|
let e = t._$AN;
|
1200
1200
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
1201
1201
|
else if (e.has(r)) break;
|
1202
|
-
e.add(r),
|
1202
|
+
e.add(r), di(t);
|
1203
1203
|
}
|
1204
1204
|
};
|
1205
|
-
function
|
1205
|
+
function hi(r) {
|
1206
1206
|
this._$AN !== void 0 ? (tt(this), this._$AM = r, $e(this)) : this._$AM = r;
|
1207
1207
|
}
|
1208
|
-
function
|
1208
|
+
function li(r, t = !1, e = 0) {
|
1209
1209
|
const i = this._$AH, s = this._$AN;
|
1210
|
-
if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let
|
1211
|
-
else i != null && (
|
1212
|
-
else
|
1210
|
+
if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let o = e; o < i.length; o++) D(i[o], !1), tt(i[o]);
|
1211
|
+
else i != null && (D(i, !1), tt(i));
|
1212
|
+
else D(this, r);
|
1213
1213
|
}
|
1214
|
-
const
|
1215
|
-
r.type == Pt.CHILD && (r._$AP ?? (r._$AP =
|
1214
|
+
const di = (r) => {
|
1215
|
+
r.type == Pt.CHILD && (r._$AP ?? (r._$AP = li), r._$AQ ?? (r._$AQ = hi));
|
1216
1216
|
};
|
1217
1217
|
class _e extends we {
|
1218
1218
|
constructor() {
|
@@ -1223,10 +1223,10 @@ class _e extends we {
|
|
1223
1223
|
}
|
1224
1224
|
_$AO(t, e = !0) {
|
1225
1225
|
var i, s;
|
1226
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (
|
1226
|
+
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), tt(this));
|
1227
1227
|
}
|
1228
1228
|
setValue(t) {
|
1229
|
-
if (
|
1229
|
+
if (ci(this._$Ct)) this._$Ct._$AI(t, this);
|
1230
1230
|
else {
|
1231
1231
|
const e = [...this._$Ct._$AH];
|
1232
1232
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
@@ -1237,9 +1237,9 @@ class _e extends we {
|
|
1237
1237
|
reconnected() {
|
1238
1238
|
}
|
1239
1239
|
}
|
1240
|
-
const
|
1240
|
+
const pi = /* @__PURE__ */ new WeakMap();
|
1241
1241
|
let Xt = 0;
|
1242
|
-
const pt = /* @__PURE__ */ new Map(), Qt = /* @__PURE__ */ new WeakSet(), te = () => new Promise((r) => requestAnimationFrame(r)),
|
1242
|
+
const pt = /* @__PURE__ */ new Map(), Qt = /* @__PURE__ */ new WeakSet(), te = () => new Promise((r) => requestAnimationFrame(r)), ui = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], ee = (r, t) => {
|
1243
1243
|
const e = r - t;
|
1244
1244
|
return e === 0 ? void 0 : e;
|
1245
1245
|
}, ie = (r, t) => {
|
@@ -1261,8 +1261,8 @@ const pt = /* @__PURE__ */ new Map(), Qt = /* @__PURE__ */ new WeakSet(), te = (
|
|
1261
1261
|
t === 0 && (t = 1, e = { height: "1px" });
|
1262
1262
|
const i = ie(r, t);
|
1263
1263
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1264
|
-
} },
|
1265
|
-
class
|
1264
|
+
} }, fi = { duration: 333, easing: "ease-in-out" }, gi = ["left", "top", "width", "height", "opacity", "color", "background"], se = /* @__PURE__ */ new WeakMap();
|
1265
|
+
class mi extends _e {
|
1266
1266
|
constructor(t) {
|
1267
1267
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Pt.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
1268
1268
|
this.createFinished();
|
@@ -1281,7 +1281,7 @@ class gi extends _e {
|
|
1281
1281
|
return u;
|
1282
1282
|
}
|
1283
1283
|
getController() {
|
1284
|
-
return
|
1284
|
+
return pi.get(this.u);
|
1285
1285
|
}
|
1286
1286
|
isDisabled() {
|
1287
1287
|
var t;
|
@@ -1290,25 +1290,25 @@ class gi extends _e {
|
|
1290
1290
|
update(t, [e]) {
|
1291
1291
|
var s;
|
1292
1292
|
const i = this.u === void 0;
|
1293
|
-
return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((
|
1293
|
+
return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element, se.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
1294
1294
|
}
|
1295
1295
|
p(t) {
|
1296
1296
|
t = t ?? {};
|
1297
1297
|
const e = this.getController();
|
1298
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
1298
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = gi), this.options = t;
|
1299
1299
|
}
|
1300
1300
|
m() {
|
1301
1301
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1302
1302
|
return this.options.properties.forEach((s) => {
|
1303
|
-
const
|
1304
|
-
t[s] = isNaN(
|
1303
|
+
const o = e[s] ?? (ut[s] ? void 0 : i[s]), n = Number(o);
|
1304
|
+
t[s] = isNaN(n) ? o + "" : n;
|
1305
1305
|
}), t;
|
1306
1306
|
}
|
1307
1307
|
v() {
|
1308
1308
|
let t, e = !0;
|
1309
1309
|
return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
|
1310
1310
|
if (Array.isArray(i)) {
|
1311
|
-
if (Array.isArray(s) && s.length === i.length && i.every((
|
1311
|
+
if (Array.isArray(s) && s.length === i.length && i.every((o, n) => o === s[n])) return !1;
|
1312
1312
|
} else if (s === i) return !1;
|
1313
1313
|
return !0;
|
1314
1314
|
})(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;
|
@@ -1322,14 +1322,14 @@ class gi extends _e {
|
|
1322
1322
|
this.prepare(), await te;
|
1323
1323
|
const e = this.O(), i = this.j(this.options.keyframeOptions, e), s = this.m();
|
1324
1324
|
if (this.A !== void 0) {
|
1325
|
-
const { from:
|
1326
|
-
this.log("measured", [this.A, s,
|
1325
|
+
const { from: o, to: n } = this.N(this.A, s, e);
|
1326
|
+
this.log("measured", [this.A, s, o, n]), t = this.calculateKeyframes(o, n);
|
1327
1327
|
} else {
|
1328
|
-
const
|
1329
|
-
if (
|
1328
|
+
const o = pt.get(this.options.inId);
|
1329
|
+
if (o) {
|
1330
1330
|
pt.delete(this.options.inId);
|
1331
|
-
const { from:
|
1332
|
-
t = this.calculateKeyframes(
|
1331
|
+
const { from: n, to: a } = this.N(o, s, e);
|
1332
|
+
t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Xt++, t.forEach((c) => c.zIndex = Xt);
|
1333
1333
|
} else this.options.in && (t = [...this.options.in, {}]);
|
1334
1334
|
}
|
1335
1335
|
this.animate(t, i);
|
@@ -1351,8 +1351,8 @@ class gi extends _e {
|
|
1351
1351
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1352
1352
|
const s = this.m();
|
1353
1353
|
this.log("stabilizing out");
|
1354
|
-
const
|
1355
|
-
getComputedStyle(this.element).position !== "static" ||
|
1354
|
+
const o = this.A.left - s.left, n = this.A.top - s.top;
|
1355
|
+
getComputedStyle(this.element).position !== "static" || o === 0 && n === 0 || (this.element.style.position = "relative"), o !== 0 && (this.element.style.left = o + "px"), n !== 0 && (this.element.style.top = n + "px");
|
1356
1356
|
}
|
1357
1357
|
}
|
1358
1358
|
const t = this.j(this.options.keyframeOptions);
|
@@ -1384,31 +1384,31 @@ class gi extends _e {
|
|
1384
1384
|
}), t;
|
1385
1385
|
}
|
1386
1386
|
j(t, e = this.O()) {
|
1387
|
-
const i = { ...
|
1387
|
+
const i = { ...fi };
|
1388
1388
|
return e.forEach((s) => Object.assign(i, s.options.keyframeOptions)), Object.assign(i, t), i;
|
1389
1389
|
}
|
1390
1390
|
N(t, e, i) {
|
1391
1391
|
t = { ...t }, e = { ...e };
|
1392
1392
|
const s = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1393
|
-
let
|
1393
|
+
let o = 1, n = 1;
|
1394
1394
|
return s.length > 0 && (s.forEach((a) => {
|
1395
|
-
a.width && (
|
1396
|
-
}), t.left !== void 0 && e.left !== void 0 && (t.left =
|
1395
|
+
a.width && (o /= a.width), a.height && (n /= a.height);
|
1396
|
+
}), t.left !== void 0 && e.left !== void 0 && (t.left = o * t.left, e.left = o * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = n * t.top, e.top = n * e.top)), { from: t, to: e };
|
1397
1397
|
}
|
1398
1398
|
calculateKeyframes(t, e, i = !1) {
|
1399
|
-
const s = {},
|
1400
|
-
let
|
1399
|
+
const s = {}, o = {};
|
1400
|
+
let n = !1;
|
1401
1401
|
const a = {};
|
1402
1402
|
for (const c in e) {
|
1403
|
-
const
|
1403
|
+
const l = t[c], h = e[c];
|
1404
1404
|
if (c in ut) {
|
1405
1405
|
const d = ut[c];
|
1406
|
-
if (
|
1407
|
-
const p = d(
|
1408
|
-
p.transform !== void 0 && (a[c] = p.value,
|
1409
|
-
} else
|
1406
|
+
if (l === void 0 || h === void 0) continue;
|
1407
|
+
const p = d(l, h);
|
1408
|
+
p.transform !== void 0 && (a[c] = p.value, n = !0, s.transform = `${s.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(s, p.overrideFrom));
|
1409
|
+
} else l !== h && l !== void 0 && h !== void 0 && (n = !0, s[c] = l, o[c] = h);
|
1410
1410
|
}
|
1411
|
-
return s.transformOrigin =
|
1411
|
+
return s.transformOrigin = o.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, n ? [s, o] : void 0;
|
1412
1412
|
}
|
1413
1413
|
async animate(t, e = this.options.keyframeOptions) {
|
1414
1414
|
this.start(), this.frames = t;
|
@@ -1433,7 +1433,7 @@ class gi extends _e {
|
|
1433
1433
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1434
1434
|
}
|
1435
1435
|
}
|
1436
|
-
const
|
1436
|
+
const vi = Ot(mi), yi = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
|
1437
1437
|
/**
|
1438
1438
|
* @license
|
1439
1439
|
* Copyright 2018 Google LLC
|
@@ -1450,22 +1450,22 @@ const re = Ot(class extends we {
|
|
1450
1450
|
update(r, [t]) {
|
1451
1451
|
var i, s;
|
1452
1452
|
if (this.st === void 0) {
|
1453
|
-
this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((
|
1454
|
-
for (const
|
1453
|
+
this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((o) => o !== "")));
|
1454
|
+
for (const o in t) t[o] && !((i = this.nt) != null && i.has(o)) && this.st.add(o);
|
1455
1455
|
return this.render(t);
|
1456
1456
|
}
|
1457
1457
|
const e = r.element.classList;
|
1458
|
-
for (const
|
1459
|
-
for (const
|
1460
|
-
const
|
1461
|
-
|
1458
|
+
for (const o of this.st) o in t || (e.remove(o), this.st.delete(o));
|
1459
|
+
for (const o in t) {
|
1460
|
+
const n = !!t[o];
|
1461
|
+
n === this.st.has(o) || (s = this.nt) != null && s.has(o) || (n ? (e.add(o), this.st.add(o)) : (e.remove(o), this.st.delete(o)));
|
1462
1462
|
}
|
1463
1463
|
return I;
|
1464
1464
|
}
|
1465
1465
|
}), w = (r, t, e) => {
|
1466
1466
|
r && e.style.setProperty(t, r);
|
1467
1467
|
}, Ae = (r, t) => {
|
1468
|
-
var e, i, s,
|
1468
|
+
var e, i, s, o, n, a, c, l, h;
|
1469
1469
|
w((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), w(
|
1470
1470
|
(i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1471
1471
|
"--text-on-primary-background",
|
@@ -1475,11 +1475,11 @@ const re = Ot(class extends we {
|
|
1475
1475
|
"--secondary-background",
|
1476
1476
|
t
|
1477
1477
|
), w(
|
1478
|
-
(
|
1478
|
+
(o = r.colors) == null ? void 0 : o.textOnSecondaryBackground,
|
1479
1479
|
"--text-on-secondary-background",
|
1480
1480
|
t
|
1481
1481
|
), w(
|
1482
|
-
(
|
1482
|
+
(n = r.colors) == null ? void 0 : n.interactiveDestructiveBackground,
|
1483
1483
|
"--destructive-color",
|
1484
1484
|
t
|
1485
1485
|
), w(
|
@@ -1491,18 +1491,18 @@ const re = Ot(class extends we {
|
|
1491
1491
|
"--interactive-primary-background",
|
1492
1492
|
t
|
1493
1493
|
), w(
|
1494
|
-
(
|
1494
|
+
(l = r.colors) == null ? void 0 : l.interactiveTextOnPrimaryBackground,
|
1495
1495
|
"--interactive-text-on-primary-background",
|
1496
1496
|
t
|
1497
|
-
), w((
|
1497
|
+
), w((h = r.colors) == null ? void 0 : h.focusColor, "--focus-color", t);
|
1498
1498
|
};
|
1499
1499
|
/**
|
1500
1500
|
* @license
|
1501
1501
|
* Copyright 2020 Google LLC
|
1502
1502
|
* SPDX-License-Identifier: BSD-3-Clause
|
1503
1503
|
*/
|
1504
|
-
const xe = () => new
|
1505
|
-
class
|
1504
|
+
const xe = () => new bi();
|
1505
|
+
class bi {
|
1506
1506
|
}
|
1507
1507
|
const ft = /* @__PURE__ */ new WeakMap(), Ce = Ot(class extends _e {
|
1508
1508
|
render(r) {
|
@@ -1531,10 +1531,10 @@ const ft = /* @__PURE__ */ new WeakMap(), Ce = Ot(class extends _e {
|
|
1531
1531
|
this.rt(this.ct);
|
1532
1532
|
}
|
1533
1533
|
});
|
1534
|
-
var
|
1535
|
-
for (var s = void 0,
|
1536
|
-
(
|
1537
|
-
return s &&
|
1534
|
+
var wi = Object.defineProperty, K = (r, t, e, i) => {
|
1535
|
+
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
1536
|
+
(n = r[o]) && (s = n(t, e, s) || s);
|
1537
|
+
return s && wi(t, e, s), s;
|
1538
1538
|
};
|
1539
1539
|
const kt = class kt extends A {
|
1540
1540
|
constructor() {
|
@@ -1576,20 +1576,20 @@ const kt = class kt extends A {
|
|
1576
1576
|
(t = this.application) != null && t.settings && Ae(this.application.settings.branding, this);
|
1577
1577
|
}
|
1578
1578
|
async _renderSymbol() {
|
1579
|
-
var a, c,
|
1579
|
+
var a, c, l;
|
1580
1580
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
1581
1581
|
if (e)
|
1582
1582
|
return k` <img src=${e} class="trigger-icon" alt="" /> `;
|
1583
|
-
const i = (
|
1583
|
+
const i = (l = this.application) == null ? void 0 : l.triggerIcon;
|
1584
1584
|
if (!i)
|
1585
1585
|
return u;
|
1586
|
-
const s = async (
|
1587
|
-
switch (
|
1586
|
+
const s = async (h) => yi, { type: o, content: n } = i;
|
1587
|
+
switch (o) {
|
1588
1588
|
case "Telia": {
|
1589
|
-
const
|
1590
|
-
return
|
1589
|
+
const h = await s();
|
1590
|
+
return h ? k`<telia-icon
|
1591
1591
|
class="trigger-icon"
|
1592
|
-
svg=${
|
1592
|
+
svg=${h.svg}
|
1593
1593
|
size="lg"
|
1594
1594
|
></telia-icon>` : u;
|
1595
1595
|
}
|
@@ -1617,9 +1617,9 @@ const kt = class kt extends A {
|
|
1617
1617
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1618
1618
|
class="trigger-label"
|
1619
1619
|
@click=${this.toggleActive}
|
1620
|
-
${
|
1620
|
+
${vi({
|
1621
1621
|
keyframeOptions: {},
|
1622
|
-
in:
|
1622
|
+
in: ui,
|
1623
1623
|
stabilizeOut: !0,
|
1624
1624
|
skipInitial: !1
|
1625
1625
|
})}
|
@@ -1670,7 +1670,7 @@ const kt = class kt extends A {
|
|
1670
1670
|
}
|
1671
1671
|
};
|
1672
1672
|
kt.styles = [
|
1673
|
-
|
1673
|
+
U`
|
1674
1674
|
:host {
|
1675
1675
|
--voca-rem-multiplier: 0.625;
|
1676
1676
|
--trigger-label-bg: #f5e0ff;
|
@@ -1806,23 +1806,23 @@ K([
|
|
1806
1806
|
m({ attribute: !1 })
|
1807
1807
|
], b.prototype, "application");
|
1808
1808
|
K([
|
1809
|
-
|
1809
|
+
L()
|
1810
1810
|
], b.prototype, "active");
|
1811
1811
|
K([
|
1812
|
-
|
1812
|
+
L()
|
1813
1813
|
], b.prototype, "triggerVisible");
|
1814
1814
|
K([
|
1815
|
-
|
1815
|
+
L()
|
1816
1816
|
], b.prototype, "loaded");
|
1817
1817
|
K([
|
1818
|
-
|
1818
|
+
L()
|
1819
1819
|
], b.prototype, "icon");
|
1820
|
-
var
|
1821
|
-
for (var s = void 0,
|
1822
|
-
(
|
1823
|
-
return s &&
|
1820
|
+
var $i = Object.defineProperty, E = (r, t, e, i) => {
|
1821
|
+
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
1822
|
+
(n = r[o]) && (s = n(t, e, s) || s);
|
1823
|
+
return s && $i(t, e, s), s;
|
1824
1824
|
};
|
1825
|
-
const
|
1825
|
+
const _i = (r) => {
|
1826
1826
|
const e = class e extends r {
|
1827
1827
|
constructor() {
|
1828
1828
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -1848,7 +1848,7 @@ const $i = (r) => {
|
|
1848
1848
|
};
|
1849
1849
|
e.styles = [
|
1850
1850
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1851
|
-
|
1851
|
+
U`
|
1852
1852
|
:host {
|
1853
1853
|
font-family: var(--font-family);
|
1854
1854
|
grid-column: span var(--width);
|
@@ -1878,13 +1878,13 @@ const $i = (r) => {
|
|
1878
1878
|
], t.prototype, "application"), E([
|
1879
1879
|
m({ attribute: !1 })
|
1880
1880
|
], t.prototype, "parent"), t;
|
1881
|
-
}, Rt = class Rt extends
|
1881
|
+
}, Rt = class Rt extends _i(A) {
|
1882
1882
|
render() {
|
1883
1883
|
return k`Non resolved component`;
|
1884
1884
|
}
|
1885
1885
|
};
|
1886
1886
|
Rt.styles = [
|
1887
|
-
|
1887
|
+
U`
|
1888
1888
|
:host {
|
1889
1889
|
display: block;
|
1890
1890
|
}
|
@@ -1896,7 +1896,7 @@ let et = Rt;
|
|
1896
1896
|
* Copyright 2021 Google LLC
|
1897
1897
|
* SPDX-License-Identifier: BSD-3-Clause
|
1898
1898
|
*/
|
1899
|
-
function*
|
1899
|
+
function* Ai(r, t) {
|
1900
1900
|
if (r !== void 0) {
|
1901
1901
|
let e = 0;
|
1902
1902
|
for (const i of r) yield t(i, e++);
|
@@ -1908,7 +1908,7 @@ var $ = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))
|
|
1908
1908
|
* Copyright 2021 Google LLC
|
1909
1909
|
* SPDX-License-Identifier: BSD-3-Clause
|
1910
1910
|
*/
|
1911
|
-
let
|
1911
|
+
let xi = class extends Event {
|
1912
1912
|
constructor(t, e, i) {
|
1913
1913
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
|
1914
1914
|
}
|
@@ -1923,7 +1923,7 @@ let Ai = class extends Event {
|
|
1923
1923
|
* Copyright 2021 Google LLC
|
1924
1924
|
* SPDX-License-Identifier: BSD-3-Clause
|
1925
1925
|
*/
|
1926
|
-
class
|
1926
|
+
class Ci {
|
1927
1927
|
get value() {
|
1928
1928
|
return this.o;
|
1929
1929
|
}
|
@@ -1956,30 +1956,30 @@ class xi {
|
|
1956
1956
|
* Copyright 2021 Google LLC
|
1957
1957
|
* SPDX-License-Identifier: BSD-3-Clause
|
1958
1958
|
*/
|
1959
|
-
let
|
1959
|
+
let Si = class extends Event {
|
1960
1960
|
constructor(t) {
|
1961
1961
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
1962
1962
|
}
|
1963
1963
|
};
|
1964
|
-
class
|
1964
|
+
class oe extends Ci {
|
1965
1965
|
constructor(t, e, i) {
|
1966
|
-
var s,
|
1967
|
-
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (
|
1968
|
-
const a =
|
1969
|
-
|
1970
|
-
}, this.onProviderRequest = (
|
1971
|
-
const a =
|
1972
|
-
if (
|
1966
|
+
var s, o;
|
1967
|
+
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (n) => {
|
1968
|
+
const a = n.composedPath()[0];
|
1969
|
+
n.context === this.context && a !== this.host && (n.stopPropagation(), this.addCallback(n.callback, a, n.subscribe));
|
1970
|
+
}, this.onProviderRequest = (n) => {
|
1971
|
+
const a = n.composedPath()[0];
|
1972
|
+
if (n.context !== this.context || a === this.host) return;
|
1973
1973
|
const c = /* @__PURE__ */ new Set();
|
1974
|
-
for (const [
|
1975
|
-
|
1976
|
-
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (
|
1974
|
+
for (const [l, { consumerHost: h }] of this.subscriptions) c.has(l) || (c.add(l), h.dispatchEvent(new xi(this.context, l, !0)));
|
1975
|
+
n.stopPropagation();
|
1976
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (o = (s = this.host).addController) == null || o.call(s, this);
|
1977
1977
|
}
|
1978
1978
|
attachListeners() {
|
1979
1979
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
1980
1980
|
}
|
1981
1981
|
hostConnected() {
|
1982
|
-
this.host.dispatchEvent(new
|
1982
|
+
this.host.dispatchEvent(new Si(this.context));
|
1983
1983
|
}
|
1984
1984
|
}
|
1985
1985
|
/**
|
@@ -1987,51 +1987,51 @@ class ne extends xi {
|
|
1987
1987
|
* Copyright 2017 Google LLC
|
1988
1988
|
* SPDX-License-Identifier: BSD-3-Clause
|
1989
1989
|
*/
|
1990
|
-
function
|
1990
|
+
function Ei({ context: r }) {
|
1991
1991
|
return (t, e) => {
|
1992
1992
|
const i = /* @__PURE__ */ new WeakMap();
|
1993
1993
|
if (typeof e == "object") return e.addInitializer(function() {
|
1994
|
-
i.set(this, new
|
1994
|
+
i.set(this, new oe(this, { context: r }));
|
1995
1995
|
}), { get() {
|
1996
1996
|
return t.get.call(this);
|
1997
1997
|
}, set(s) {
|
1998
|
-
var
|
1999
|
-
return (
|
1998
|
+
var o;
|
1999
|
+
return (o = i.get(this)) == null || o.setValue(s), t.set.call(this, s);
|
2000
2000
|
}, init(s) {
|
2001
|
-
var
|
2002
|
-
return (
|
2001
|
+
var o;
|
2002
|
+
return (o = i.get(this)) == null || o.setValue(s), s;
|
2003
2003
|
} };
|
2004
2004
|
{
|
2005
|
-
t.constructor.addInitializer((
|
2006
|
-
i.set(
|
2005
|
+
t.constructor.addInitializer((n) => {
|
2006
|
+
i.set(n, new oe(n, { context: r }));
|
2007
2007
|
});
|
2008
2008
|
const s = Object.getOwnPropertyDescriptor(t, e);
|
2009
|
-
let
|
2009
|
+
let o;
|
2010
2010
|
if (s === void 0) {
|
2011
|
-
const
|
2012
|
-
|
2013
|
-
return
|
2011
|
+
const n = /* @__PURE__ */ new WeakMap();
|
2012
|
+
o = { get() {
|
2013
|
+
return n.get(this);
|
2014
2014
|
}, set(a) {
|
2015
|
-
i.get(this).setValue(a),
|
2015
|
+
i.get(this).setValue(a), n.set(this, a);
|
2016
2016
|
}, configurable: !0, enumerable: !0 };
|
2017
2017
|
} else {
|
2018
|
-
const
|
2019
|
-
|
2020
|
-
i.get(this).setValue(a),
|
2018
|
+
const n = s.set;
|
2019
|
+
o = { ...s, set(a) {
|
2020
|
+
i.get(this).setValue(a), n == null || n.call(this, a);
|
2021
2021
|
} };
|
2022
2022
|
}
|
2023
|
-
return void Object.defineProperty(t, e,
|
2023
|
+
return void Object.defineProperty(t, e, o);
|
2024
2024
|
}
|
2025
2025
|
};
|
2026
2026
|
}
|
2027
|
-
var
|
2028
|
-
for (var s = void 0,
|
2029
|
-
(
|
2030
|
-
return s &&
|
2027
|
+
var Pi = Object.defineProperty, Se = (r, t, e, i) => {
|
2028
|
+
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
2029
|
+
(n = r[o]) && (s = n(t, e, s) || s);
|
2030
|
+
return s && Pi(t, e, s), s;
|
2031
2031
|
};
|
2032
2032
|
const Oi = "application", Mt = class Mt extends A {
|
2033
2033
|
constructor() {
|
2034
|
-
super(...arguments), this.nodes = [], this.wrapperRef = xe();
|
2034
|
+
super(...arguments), this.nodes = [], this.wrapperRef = xe(), this.mobile = !1;
|
2035
2035
|
}
|
2036
2036
|
addChild(t) {
|
2037
2037
|
t.parent = this, this.nodes.push(t);
|
@@ -2057,11 +2057,11 @@ const Oi = "application", Mt = class Mt extends A {
|
|
2057
2057
|
var i, s;
|
2058
2058
|
const t = this.application.settings.components.conversation;
|
2059
2059
|
return ((s = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === $.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.mobile && this.renderRoot.host.classList.add("mobile"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), k`<div class="widget-container" ${Ce(this.wrapperRef)}>
|
2060
|
-
${
|
2060
|
+
${Ai(this.nodes, (o) => o)}
|
2061
2061
|
</div>`;
|
2062
2062
|
}
|
2063
2063
|
};
|
2064
|
-
Mt.styles =
|
2064
|
+
Mt.styles = U`
|
2065
2065
|
:host {
|
2066
2066
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2067
2067
|
--spacing-xs: 0.2rem;
|
@@ -2209,11 +2209,14 @@ Mt.styles = N`
|
|
2209
2209
|
pointer-events: none;
|
2210
2210
|
}
|
2211
2211
|
`;
|
2212
|
-
let
|
2213
|
-
|
2212
|
+
let M = Mt;
|
2213
|
+
Se([
|
2214
|
+
m({ attribute: !0 })
|
2215
|
+
], M.prototype, "mobile");
|
2216
|
+
Se([
|
2214
2217
|
m({ attribute: !1 }),
|
2215
|
-
|
2216
|
-
],
|
2218
|
+
Ei({ context: Oi })
|
2219
|
+
], M.prototype, "application");
|
2217
2220
|
class Ii {
|
2218
2221
|
constructor() {
|
2219
2222
|
this.root = this.createRoot();
|
@@ -2222,19 +2225,19 @@ class Ii {
|
|
2222
2225
|
this.root.application = e;
|
2223
2226
|
const i = (a) => {
|
2224
2227
|
if (Array.isArray(a)) {
|
2225
|
-
const [c, ...
|
2228
|
+
const [c, ...l] = a;
|
2226
2229
|
return {
|
2227
2230
|
definitionId: c,
|
2228
|
-
overrides:
|
2231
|
+
overrides: l
|
2229
2232
|
};
|
2230
2233
|
}
|
2231
2234
|
return {
|
2232
2235
|
definitionId: a,
|
2233
2236
|
overrides: []
|
2234
2237
|
};
|
2235
|
-
}, s = (a, c,
|
2236
|
-
|
2237
|
-
const p = i(d), f =
|
2238
|
+
}, s = (a, c, l, h) => {
|
2239
|
+
l.forEach((d) => {
|
2240
|
+
const p = i(d), f = h[p.definitionId];
|
2238
2241
|
if (!f) {
|
2239
2242
|
console.error(
|
2240
2243
|
`No definition found for component type '${p.definitionId}'.`
|
@@ -2246,15 +2249,15 @@ class Ii {
|
|
2246
2249
|
a,
|
2247
2250
|
g,
|
2248
2251
|
f.children,
|
2249
|
-
|
2252
|
+
h
|
2250
2253
|
// views
|
2251
2254
|
));
|
2252
2255
|
});
|
2253
|
-
}, { entry:
|
2254
|
-
return s(this, this.root, [
|
2256
|
+
}, { entry: o, components: n } = t;
|
2257
|
+
return s(this, this.root, [o], n), this.root;
|
2255
2258
|
}
|
2256
2259
|
createRoot() {
|
2257
|
-
return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper",
|
2260
|
+
return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper", M)), document.createElement("ace-wrapper");
|
2258
2261
|
}
|
2259
2262
|
createNode(t, e) {
|
2260
2263
|
if (!this.resolveComponent(e))
|
@@ -2312,8 +2315,8 @@ class Ti {
|
|
2312
2315
|
}
|
2313
2316
|
const s = i.category;
|
2314
2317
|
if (this.policy[s]) {
|
2315
|
-
const
|
2316
|
-
this.storage.setItem(this._prefixKey(t), JSON.stringify(
|
2318
|
+
const o = { value: e, category: s };
|
2319
|
+
this.storage.setItem(this._prefixKey(t), JSON.stringify(o));
|
2317
2320
|
} else
|
2318
2321
|
console.warn(
|
2319
2322
|
`Storage policy does not allow storing items in category: ${s}`
|
@@ -2367,7 +2370,7 @@ class ki {
|
|
2367
2370
|
return this.texts.get(t) || e;
|
2368
2371
|
}
|
2369
2372
|
}
|
2370
|
-
const Ri = "1.1.82-rc.
|
2373
|
+
const Ri = "1.1.82-rc.7";
|
2371
2374
|
class Mi {
|
2372
2375
|
constructor(t) {
|
2373
2376
|
this.widget = t, this.name = t.name;
|
@@ -2391,23 +2394,28 @@ class Mi {
|
|
2391
2394
|
}
|
2392
2395
|
}
|
2393
2396
|
class Ni {
|
2394
|
-
constructor(t, e, i, s,
|
2395
|
-
this.id = t, this.name = e, this.container = i, this.settings = s, this.options =
|
2396
|
-
var
|
2397
|
+
constructor(t, e, i, s, o) {
|
2398
|
+
this.id = t, this.name = e, this.container = i, this.settings = s, this.options = o, this.platform = new Ii(), this.texts = new ki(), this.renderStrategy = $.Inline, this.mobile = !1, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new _t(), this.components = [], this.trigger = null, this.api = new Mi(this), this.onMessageReceived = async (a) => {
|
2399
|
+
var l;
|
2397
2400
|
const c = a.data;
|
2398
2401
|
switch (c.type) {
|
2399
2402
|
case "set-storage-policies": {
|
2400
|
-
const { policies:
|
2401
|
-
[y.Analytics]:
|
2402
|
-
[y.Necessary]:
|
2403
|
-
[y.Functional]:
|
2403
|
+
const { policies: h } = c.data || [], d = {
|
2404
|
+
[y.Analytics]: h.includes("analytics"),
|
2405
|
+
[y.Necessary]: h.includes("necessary"),
|
2406
|
+
[y.Functional]: h.includes("functional")
|
2404
2407
|
};
|
2405
2408
|
this.storage.updatePolicy(d);
|
2406
2409
|
return;
|
2407
2410
|
}
|
2408
2411
|
case "disallow-storage-key": {
|
2409
|
-
const { storageKey:
|
2410
|
-
|
2412
|
+
const { storageKey: h } = c.data || null;
|
2413
|
+
h && this.storage.disallowKey(h);
|
2414
|
+
return;
|
2415
|
+
}
|
2416
|
+
case "set-mobile-mode": {
|
2417
|
+
const { value: h } = c.data;
|
2418
|
+
typeof h == "boolean" && this.setMobileMode(h);
|
2411
2419
|
return;
|
2412
2420
|
}
|
2413
2421
|
case "open": {
|
@@ -2419,20 +2427,20 @@ class Ni {
|
|
2419
2427
|
return;
|
2420
2428
|
}
|
2421
2429
|
case "set-z-index": {
|
2422
|
-
const { zIndex:
|
2423
|
-
|
2430
|
+
const { zIndex: h } = c.data || null;
|
2431
|
+
h && this.setZIndex(h);
|
2424
2432
|
return;
|
2425
2433
|
}
|
2426
2434
|
case "deactivate-widget": {
|
2427
|
-
const
|
2428
|
-
this.hide(), (
|
2435
|
+
const h = this.storage.get("open");
|
2436
|
+
this.hide(), (l = this.trigger) == null || l.hideTrigger(), h && this.storage.set("open", !0);
|
2429
2437
|
return;
|
2430
2438
|
}
|
2431
2439
|
default:
|
2432
2440
|
return;
|
2433
2441
|
}
|
2434
2442
|
}, this.renderStrategy = this.options.renderStrategy || $.Inline, this.triggerIcon = this.options.triggerIcon;
|
2435
|
-
const
|
2443
|
+
const n = {
|
2436
2444
|
[y.Necessary]: !0,
|
2437
2445
|
[y.Functional]: !0,
|
2438
2446
|
[y.Analytics]: !0
|
@@ -2440,9 +2448,9 @@ class Ni {
|
|
2440
2448
|
this.storage = new Ti(
|
2441
2449
|
this.id,
|
2442
2450
|
"sessionStorage",
|
2443
|
-
|
2451
|
+
n,
|
2444
2452
|
this.settings.storage
|
2445
|
-
), typeof
|
2453
|
+
), typeof o.autoActivate == "boolean" && (this.autoActivate = o.autoActivate), o.anchor && (this.anchor = o.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
|
2446
2454
|
}
|
2447
2455
|
async activate() {
|
2448
2456
|
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(ue.Ready), this.autoActivate) {
|
@@ -2507,7 +2515,7 @@ class Ni {
|
|
2507
2515
|
let e = document.querySelector(
|
2508
2516
|
`ace-trigger-slot.${t}`
|
2509
2517
|
);
|
2510
|
-
return e || (e = new
|
2518
|
+
return e || (e = new V(), e.anchor = this.anchor, document.body.appendChild(e)), e;
|
2511
2519
|
}
|
2512
2520
|
return document.body;
|
2513
2521
|
}
|
@@ -2515,7 +2523,7 @@ class Ni {
|
|
2515
2523
|
return window.self !== window.top;
|
2516
2524
|
}
|
2517
2525
|
setMobileMode(t) {
|
2518
|
-
this.mobile = t;
|
2526
|
+
this.mobile = t, this.root && (this.root.mobile = !0);
|
2519
2527
|
}
|
2520
2528
|
render() {
|
2521
2529
|
if (this._isEmbeddedInIFrame())
|
@@ -2539,18 +2547,18 @@ const Yi = (r) => new W(r), st = class st {
|
|
2539
2547
|
id: i.id,
|
2540
2548
|
triggers: i.triggers || [],
|
2541
2549
|
apps: (i.widgets || []).map((s) => {
|
2542
|
-
let
|
2543
|
-
s.renderStrategy.toLowerCase() === "inline" && (
|
2544
|
-
const
|
2550
|
+
let o = $.Trigger;
|
2551
|
+
s.renderStrategy.toLowerCase() === "inline" && (o = $.Inline);
|
2552
|
+
const n = s.widgetId ? s.widgetId : s.id, a = typeof s.autoActivate == "boolean" ? s.autoActivate : !1, c = typeof s.anchor == "string" ? s.anchor : "BottomRight", l = typeof s.triggerIcon == "string" ? s.triggerIcon : "question";
|
2545
2553
|
return {
|
2546
|
-
id:
|
2547
|
-
widgetId:
|
2548
|
-
renderStrategy:
|
2554
|
+
id: n,
|
2555
|
+
widgetId: n,
|
2556
|
+
renderStrategy: o,
|
2549
2557
|
autoActivate: a,
|
2550
2558
|
anchor: c,
|
2551
2559
|
triggerIcon: {
|
2552
2560
|
type: "Telia",
|
2553
|
-
content:
|
2561
|
+
content: l
|
2554
2562
|
}
|
2555
2563
|
};
|
2556
2564
|
})
|
@@ -2574,12 +2582,12 @@ class Ui {
|
|
2574
2582
|
var i;
|
2575
2583
|
(((i = this.site.environment) == null ? void 0 : i.applications) || []).forEach((s) => {
|
2576
2584
|
if (s.storage) {
|
2577
|
-
const
|
2585
|
+
const o = {
|
2578
2586
|
[y.Analytics]: t.includes("analytics"),
|
2579
2587
|
[y.Necessary]: t.includes("necessary"),
|
2580
2588
|
[y.Functional]: t.includes("functional")
|
2581
2589
|
};
|
2582
|
-
s.storage.updatePolicy(
|
2590
|
+
s.storage.updatePolicy(o);
|
2583
2591
|
}
|
2584
2592
|
});
|
2585
2593
|
}
|
@@ -2612,24 +2620,24 @@ class Li {
|
|
2612
2620
|
(i) => i.autoActivate
|
2613
2621
|
);
|
2614
2622
|
(((e = this.site) == null ? void 0 : e.triggers) || []).filter((i) => i.triggerType === "visit").forEach((i) => {
|
2615
|
-
const s = window.location.pathname,
|
2616
|
-
i.condition.type === "url" &&
|
2617
|
-
const a =
|
2618
|
-
if ((
|
2619
|
-
let
|
2623
|
+
const s = window.location.pathname, o = i.condition.outputs || [];
|
2624
|
+
i.condition.type === "url" && o.forEach((n) => {
|
2625
|
+
const a = n.action.type === "render_widget";
|
2626
|
+
if ((n.value === s || n.value === "*") && a) {
|
2627
|
+
let l = { widgetId: "" };
|
2620
2628
|
try {
|
2621
|
-
|
2629
|
+
l = JSON.parse(n.action.data);
|
2622
2630
|
} catch {
|
2623
|
-
|
2631
|
+
l = {
|
2624
2632
|
widgetId: ""
|
2625
2633
|
};
|
2626
2634
|
}
|
2627
|
-
const
|
2628
|
-
(p) => p.id ===
|
2635
|
+
const h = t.findIndex(
|
2636
|
+
(p) => p.id === l.widgetId
|
2629
2637
|
) > -1, d = this.applications.find(
|
2630
|
-
(p) => p.id ===
|
2638
|
+
(p) => p.id === l.widgetId
|
2631
2639
|
);
|
2632
|
-
d && !
|
2640
|
+
d && !h && (d.autoActivate = !0, t.push(d));
|
2633
2641
|
}
|
2634
2642
|
});
|
2635
2643
|
});
|
@@ -2658,16 +2666,16 @@ class Li {
|
|
2658
2666
|
if (!i) {
|
2659
2667
|
const s = this.widgetAPIHandlers.get(t) || [];
|
2660
2668
|
s.push(() => {
|
2661
|
-
const
|
2662
|
-
e(
|
2669
|
+
const o = this.applications.find((n) => n.name === t);
|
2670
|
+
e(o == null ? void 0 : o.api);
|
2663
2671
|
}), this.widgetAPIHandlers.set(t, s);
|
2664
2672
|
return;
|
2665
2673
|
}
|
2666
2674
|
e(i == null ? void 0 : i.api);
|
2667
2675
|
}
|
2668
2676
|
registerApp(t, e, i, s) {
|
2669
|
-
const
|
2670
|
-
this.applications.push(
|
2677
|
+
const o = new Dt(e, this), n = new Ni(t, e, o, i, s);
|
2678
|
+
this.applications.push(n);
|
2671
2679
|
}
|
2672
2680
|
registerSite(t) {
|
2673
2681
|
this.site = t;
|
@@ -2735,8 +2743,8 @@ class ji {
|
|
2735
2743
|
}
|
2736
2744
|
}
|
2737
2745
|
var Hi = Object.defineProperty, It = (r, t, e, i) => {
|
2738
|
-
for (var s = void 0,
|
2739
|
-
(
|
2746
|
+
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
2747
|
+
(n = r[o]) && (s = n(t, e, s) || s);
|
2740
2748
|
return s && Hi(t, e, s), s;
|
2741
2749
|
};
|
2742
2750
|
const Nt = class Nt extends A {
|
@@ -2772,33 +2780,33 @@ const Nt = class Nt extends A {
|
|
2772
2780
|
}
|
2773
2781
|
};
|
2774
2782
|
Nt.styles = [
|
2775
|
-
|
2783
|
+
U`
|
2776
2784
|
:host {
|
2777
2785
|
display: block;
|
2778
2786
|
}
|
2779
2787
|
`
|
2780
2788
|
];
|
2781
|
-
let
|
2789
|
+
let N = Nt;
|
2782
2790
|
It([
|
2783
2791
|
m({ attribute: !0 })
|
2784
|
-
],
|
2792
|
+
], N.prototype, "name");
|
2785
2793
|
It([
|
2786
|
-
|
2787
|
-
],
|
2794
|
+
L()
|
2795
|
+
], N.prototype, "widget");
|
2788
2796
|
It([
|
2789
|
-
|
2790
|
-
],
|
2791
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
2797
|
+
L()
|
2798
|
+
], N.prototype, "status");
|
2799
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", V);
|
2792
2800
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", b);
|
2793
2801
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", et);
|
2794
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
2795
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
2802
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", M);
|
2803
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", N);
|
2796
2804
|
const qi = async (r, t, e = {}) => {
|
2797
2805
|
const i = new ji(r);
|
2798
2806
|
e.httpClient && i.setHttpClient(e.httpClient), await i.bootstrap(t);
|
2799
2807
|
};
|
2800
2808
|
export {
|
2801
|
-
|
2809
|
+
N as AceWidget,
|
2802
2810
|
Ni as Application,
|
2803
2811
|
Dt as Container,
|
2804
2812
|
Li as Environment,
|
@@ -2807,7 +2815,7 @@ export {
|
|
2807
2815
|
y as StorageCategory,
|
2808
2816
|
Ti as StorageService,
|
2809
2817
|
b as Trigger,
|
2810
|
-
|
2818
|
+
_i as WidgetComponent,
|
2811
2819
|
Oi as applicationContext,
|
2812
2820
|
qi as bootstrap,
|
2813
2821
|
Yi as createHttpClient
|