@telia-ace/widget-core-flamingo 1.1.38-rc.0 → 1.1.38-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +20 -20
- package/index.mjs +145 -147
- package/package.json +1 -1
- package/index-5087564d.mjs +0 -335
- package/index-6dd00f59.js +0 -1
package/index.mjs
CHANGED
@@ -27,7 +27,7 @@ function ft(r) {
|
|
27
27
|
};
|
28
28
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
29
29
|
}
|
30
|
-
function
|
30
|
+
function Y(r, t) {
|
31
31
|
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
32
32
|
if (!e)
|
33
33
|
return r;
|
@@ -47,7 +47,7 @@ function q(r, t) {
|
|
47
47
|
}
|
48
48
|
return n;
|
49
49
|
}
|
50
|
-
function
|
50
|
+
function Z(r, t, e) {
|
51
51
|
if (e || arguments.length === 2)
|
52
52
|
for (var i = 0, s = t.length, n; i < s; i++)
|
53
53
|
(n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
|
@@ -56,13 +56,13 @@ function K(r, t, e) {
|
|
56
56
|
function b(r) {
|
57
57
|
return typeof r == "function";
|
58
58
|
}
|
59
|
-
function
|
59
|
+
function Zt(r) {
|
60
60
|
var t = function(i) {
|
61
61
|
Error.call(i), i.stack = new Error().stack;
|
62
62
|
}, e = r(t);
|
63
63
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
64
64
|
}
|
65
|
-
var st =
|
65
|
+
var st = Zt(function(r) {
|
66
66
|
return function(e) {
|
67
67
|
r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
68
68
|
` + e.map(function(i, s) {
|
@@ -116,19 +116,19 @@ var Q = function() {
|
|
116
116
|
if (p) {
|
117
117
|
this._finalizers = null;
|
118
118
|
try {
|
119
|
-
for (var
|
120
|
-
var g =
|
119
|
+
for (var f = ft(p), u = f.next(); !u.done; u = f.next()) {
|
120
|
+
var g = u.value;
|
121
121
|
try {
|
122
|
-
|
122
|
+
St(g);
|
123
123
|
} catch (v) {
|
124
|
-
n = n ?? [], v instanceof st ? n =
|
124
|
+
n = n ?? [], v instanceof st ? n = Z(Z([], Y(n)), Y(v.errors)) : n.push(v);
|
125
125
|
}
|
126
126
|
}
|
127
127
|
} catch (v) {
|
128
128
|
i = { error: v };
|
129
129
|
} finally {
|
130
130
|
try {
|
131
|
-
|
131
|
+
u && !u.done && (s = f.return) && s.call(f);
|
132
132
|
} finally {
|
133
133
|
if (i)
|
134
134
|
throw i.error;
|
@@ -142,7 +142,7 @@ var Q = function() {
|
|
142
142
|
var e;
|
143
143
|
if (t && t !== this)
|
144
144
|
if (this.closed)
|
145
|
-
|
145
|
+
St(t);
|
146
146
|
else {
|
147
147
|
if (t instanceof r) {
|
148
148
|
if (t.closed || t._hasParent(this))
|
@@ -167,14 +167,14 @@ var Q = function() {
|
|
167
167
|
var t = new r();
|
168
168
|
return t.closed = !0, t;
|
169
169
|
}(), r;
|
170
|
-
}(),
|
171
|
-
function
|
170
|
+
}(), Kt = Q.EMPTY;
|
171
|
+
function Jt(r) {
|
172
172
|
return r instanceof Q || r && "closed" in r && b(r.remove) && b(r.add) && b(r.unsubscribe);
|
173
173
|
}
|
174
|
-
function
|
174
|
+
function St(r) {
|
175
175
|
b(r) ? r() : r.unsubscribe();
|
176
176
|
}
|
177
|
-
var
|
177
|
+
var Xt = {
|
178
178
|
onUnhandledError: null,
|
179
179
|
onStoppedNotification: null,
|
180
180
|
Promise: void 0,
|
@@ -185,7 +185,7 @@ var Zt = {
|
|
185
185
|
for (var e = [], i = 2; i < arguments.length; i++)
|
186
186
|
e[i - 2] = arguments[i];
|
187
187
|
var s = mt.delegate;
|
188
|
-
return s != null && s.setTimeout ? s.setTimeout.apply(s,
|
188
|
+
return s != null && s.setTimeout ? s.setTimeout.apply(s, Z([r, t], Y(e))) : setTimeout.apply(void 0, Z([r, t], Y(e)));
|
189
189
|
},
|
190
190
|
clearTimeout: function(r) {
|
191
191
|
var t = mt.delegate;
|
@@ -200,14 +200,14 @@ function ve(r) {
|
|
200
200
|
}
|
201
201
|
function Et() {
|
202
202
|
}
|
203
|
-
function
|
203
|
+
function q(r) {
|
204
204
|
r();
|
205
205
|
}
|
206
206
|
var Qt = function(r) {
|
207
207
|
B(t, r);
|
208
208
|
function t(e) {
|
209
209
|
var i = r.call(this) || this;
|
210
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
210
|
+
return i.isStopped = !1, e ? (i.destination = e, Jt(e) && e.add(i)) : i.destination = _e, i;
|
211
211
|
}
|
212
212
|
return t.create = function(e, i, s) {
|
213
213
|
return new vt(e, i, s);
|
@@ -281,7 +281,7 @@ var be = function() {
|
|
281
281
|
};
|
282
282
|
else {
|
283
283
|
var a;
|
284
|
-
n &&
|
284
|
+
n && Xt.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
285
285
|
return n.unsubscribe();
|
286
286
|
}, o = {
|
287
287
|
next: e.next && nt(e.next, a),
|
@@ -310,7 +310,7 @@ var _e = {
|
|
310
310
|
function Ae(r) {
|
311
311
|
return r;
|
312
312
|
}
|
313
|
-
function
|
313
|
+
function Ce(r) {
|
314
314
|
return r.length === 0 ? Ae : r.length === 1 ? r[0] : function(e) {
|
315
315
|
return r.reduce(function(i, s) {
|
316
316
|
return s(i);
|
@@ -325,8 +325,8 @@ var Pt = function() {
|
|
325
325
|
var e = new r();
|
326
326
|
return e.source = this, e.operator = t, e;
|
327
327
|
}, r.prototype.subscribe = function(t, e, i) {
|
328
|
-
var s = this, n =
|
329
|
-
return
|
328
|
+
var s = this, n = Se(t) ? t : new vt(t, e, i);
|
329
|
+
return q(function() {
|
330
330
|
var o = s, a = o.operator, c = o.source;
|
331
331
|
n.add(a ? a.call(n, c) : c ? s._subscribe(n) : s._trySubscribe(n));
|
332
332
|
}), n;
|
@@ -360,7 +360,7 @@ var Pt = function() {
|
|
360
360
|
}, r.prototype.pipe = function() {
|
361
361
|
for (var t = [], e = 0; e < arguments.length; e++)
|
362
362
|
t[e] = arguments[e];
|
363
|
-
return
|
363
|
+
return Ce(t)(this);
|
364
364
|
}, r.prototype.toPromise = function(t) {
|
365
365
|
var e = this;
|
366
366
|
return t = Ot(t), new t(function(i, s) {
|
@@ -379,15 +379,15 @@ var Pt = function() {
|
|
379
379
|
}();
|
380
380
|
function Ot(r) {
|
381
381
|
var t;
|
382
|
-
return (t = r ??
|
382
|
+
return (t = r ?? Xt.Promise) !== null && t !== void 0 ? t : Promise;
|
383
383
|
}
|
384
384
|
function xe(r) {
|
385
385
|
return r && b(r.next) && b(r.error) && b(r.complete);
|
386
386
|
}
|
387
|
-
function
|
388
|
-
return r && r instanceof Qt || xe(r) &&
|
387
|
+
function Se(r) {
|
388
|
+
return r && r instanceof Qt || xe(r) && Jt(r);
|
389
389
|
}
|
390
|
-
var Ee =
|
390
|
+
var Ee = Zt(function(r) {
|
391
391
|
return function() {
|
392
392
|
r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
393
393
|
};
|
@@ -405,7 +405,7 @@ var Ee = Kt(function(r) {
|
|
405
405
|
throw new Ee();
|
406
406
|
}, t.prototype.next = function(e) {
|
407
407
|
var i = this;
|
408
|
-
|
408
|
+
q(function() {
|
409
409
|
var s, n;
|
410
410
|
if (i._throwIfClosed(), !i.isStopped) {
|
411
411
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
@@ -428,7 +428,7 @@ var Ee = Kt(function(r) {
|
|
428
428
|
});
|
429
429
|
}, t.prototype.error = function(e) {
|
430
430
|
var i = this;
|
431
|
-
|
431
|
+
q(function() {
|
432
432
|
if (i._throwIfClosed(), !i.isStopped) {
|
433
433
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
434
434
|
for (var s = i.observers; s.length; )
|
@@ -437,7 +437,7 @@ var Ee = Kt(function(r) {
|
|
437
437
|
});
|
438
438
|
}, t.prototype.complete = function() {
|
439
439
|
var e = this;
|
440
|
-
|
440
|
+
q(function() {
|
441
441
|
if (e._throwIfClosed(), !e.isStopped) {
|
442
442
|
e.isStopped = !0;
|
443
443
|
for (var i = e.observers; i.length; )
|
@@ -459,7 +459,7 @@ var Ee = Kt(function(r) {
|
|
459
459
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
460
460
|
}, t.prototype._innerSubscribe = function(e) {
|
461
461
|
var i = this, s = this, n = s.hasError, o = s.isStopped, a = s.observers;
|
462
|
-
return n || o ?
|
462
|
+
return n || o ? Kt : (this.currentObservers = null, a.push(e), new Q(function() {
|
463
463
|
i.currentObservers = null, gt(a, e);
|
464
464
|
}));
|
465
465
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
@@ -488,7 +488,7 @@ var Ee = Kt(function(r) {
|
|
488
488
|
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
489
489
|
}, t.prototype._subscribe = function(e) {
|
490
490
|
var i, s;
|
491
|
-
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s :
|
491
|
+
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s : Kt;
|
492
492
|
}, t;
|
493
493
|
}(te), Pe = function(r) {
|
494
494
|
B(t, r);
|
@@ -539,7 +539,7 @@ class Rt {
|
|
539
539
|
* Copyright 2019 Google LLC
|
540
540
|
* SPDX-License-Identifier: BSD-3-Clause
|
541
541
|
*/
|
542
|
-
const
|
542
|
+
const V = globalThis, bt = V.ShadowRoot && (V.ShadyCSS === void 0 || V.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $t = Symbol(), Ut = /* @__PURE__ */ new WeakMap();
|
543
543
|
let ie = class {
|
544
544
|
constructor(t, e, i) {
|
545
545
|
if (this._$cssResult$ = !0, i !== $t)
|
@@ -573,7 +573,7 @@ const Oe = (r) => new ie(typeof r == "string" ? r : r + "", void 0, $t), U = (r,
|
|
573
573
|
r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
574
574
|
else
|
575
575
|
for (const e of t) {
|
576
|
-
const i = document.createElement("style"), s =
|
576
|
+
const i = document.createElement("style"), s = V.litNonce;
|
577
577
|
s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
|
578
578
|
}
|
579
579
|
}, kt = bt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
@@ -587,10 +587,10 @@ const Oe = (r) => new ie(typeof r == "string" ? r : r + "", void 0, $t), U = (r,
|
|
587
587
|
* Copyright 2017 Google LLC
|
588
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
589
589
|
*/
|
590
|
-
const { is: Re, defineProperty: Ue, getOwnPropertyDescriptor: ke, getOwnPropertyNames: Ie, getOwnPropertySymbols:
|
590
|
+
const { is: Re, defineProperty: Ue, getOwnPropertyDescriptor: ke, getOwnPropertyNames: Ie, getOwnPropertySymbols: Me, getPrototypeOf: Ne } = Object, w = globalThis, It = w.trustedTypes, je = It ? It.emptyScript : "", ot = w.reactiveElementPolyfillSupport, I = (r, t) => r, K = { toAttribute(r, t) {
|
591
591
|
switch (t) {
|
592
592
|
case Boolean:
|
593
|
-
r = r ?
|
593
|
+
r = r ? je : null;
|
594
594
|
break;
|
595
595
|
case Object:
|
596
596
|
case Array:
|
@@ -615,7 +615,7 @@ const { is: Re, defineProperty: Ue, getOwnPropertyDescriptor: ke, getOwnProperty
|
|
615
615
|
}
|
616
616
|
}
|
617
617
|
return e;
|
618
|
-
} }, _t = (r, t) => !Re(r, t),
|
618
|
+
} }, _t = (r, t) => !Re(r, t), Mt = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: _t };
|
619
619
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
620
620
|
let O = class extends HTMLElement {
|
621
621
|
static addInitializer(t) {
|
@@ -624,7 +624,7 @@ let O = class extends HTMLElement {
|
|
624
624
|
static get observedAttributes() {
|
625
625
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
626
626
|
}
|
627
|
-
static createProperty(t, e =
|
627
|
+
static createProperty(t, e = Mt) {
|
628
628
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
629
629
|
const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
|
630
630
|
s !== void 0 && Ue(this.prototype, t, s);
|
@@ -644,19 +644,19 @@ let O = class extends HTMLElement {
|
|
644
644
|
}, configurable: !0, enumerable: !0 };
|
645
645
|
}
|
646
646
|
static getPropertyOptions(t) {
|
647
|
-
return this.elementProperties.get(t) ??
|
647
|
+
return this.elementProperties.get(t) ?? Mt;
|
648
648
|
}
|
649
649
|
static _$Ei() {
|
650
650
|
if (this.hasOwnProperty(I("elementProperties")))
|
651
651
|
return;
|
652
|
-
const t =
|
652
|
+
const t = Ne(this);
|
653
653
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
654
654
|
}
|
655
655
|
static finalize() {
|
656
656
|
if (this.hasOwnProperty(I("finalized")))
|
657
657
|
return;
|
658
658
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(I("properties"))) {
|
659
|
-
const e = this.properties, i = [...Ie(e), ...
|
659
|
+
const e = this.properties, i = [...Ie(e), ...Me(e)];
|
660
660
|
for (const s of i)
|
661
661
|
this.createProperty(s, e[s]);
|
662
662
|
}
|
@@ -736,7 +736,7 @@ let O = class extends HTMLElement {
|
|
736
736
|
var n;
|
737
737
|
const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
|
738
738
|
if (s !== void 0 && i.reflect === !0) {
|
739
|
-
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter :
|
739
|
+
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : K).toAttribute(e, i.type);
|
740
740
|
this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
|
741
741
|
}
|
742
742
|
}
|
@@ -744,7 +744,7 @@ let O = class extends HTMLElement {
|
|
744
744
|
var n;
|
745
745
|
const i = this.constructor, s = i._$Eh.get(t);
|
746
746
|
if (s !== void 0 && this._$Em !== s) {
|
747
|
-
const o = i.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter :
|
747
|
+
const o = i.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : K;
|
748
748
|
this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
|
749
749
|
}
|
750
750
|
}
|
@@ -834,24 +834,24 @@ O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, O[I("elementProper
|
|
834
834
|
* Copyright 2017 Google LLC
|
835
835
|
* SPDX-License-Identifier: BSD-3-Clause
|
836
836
|
*/
|
837
|
-
const
|
838
|
-
\f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
839
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ht = /'/g, Bt = /"/g, oe = /^(?:script|style|textarea|title)$/i, Be = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), T = Be(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(),
|
837
|
+
const M = globalThis, J = M.trustedTypes, Nt = J ? J.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, re = "$lit$", _ = `lit$${(Math.random() + "").slice(9)}$`, se = "?" + _, Le = `<${se}>`, E = document, j = () => E.createComment(""), L = (r) => r === null || typeof r != "object" && typeof r != "function", ne = Array.isArray, He = (r) => ne(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", at = `[
|
838
|
+
\f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, jt = /-->/g, Lt = />/g, C = RegExp(`>|${at}(?:([^\\s"'>=/]+)(${at}*=${at}*(?:[^
|
839
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ht = /'/g, Bt = /"/g, oe = /^(?:script|style|textarea|title)$/i, Be = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), T = Be(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(), S = E.createTreeWalker(E, 129);
|
840
840
|
function ae(r, t) {
|
841
841
|
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
842
842
|
throw Error("invalid template strings array");
|
843
|
-
return
|
843
|
+
return Nt !== void 0 ? Nt.createHTML(t) : t;
|
844
844
|
}
|
845
845
|
const De = (r, t) => {
|
846
846
|
const e = r.length - 1, i = [];
|
847
847
|
let s, n = t === 2 ? "<svg>" : "", o = k;
|
848
848
|
for (let a = 0; a < e; a++) {
|
849
849
|
const c = r[a];
|
850
|
-
let l, h, p = -1,
|
851
|
-
for (;
|
852
|
-
|
853
|
-
const
|
854
|
-
n += o === k ? c + Le : p >= 0 ? (i.push(l), c.slice(0, p) + re + c.slice(p) + _ +
|
850
|
+
let l, h, p = -1, f = 0;
|
851
|
+
for (; f < c.length && (o.lastIndex = f, h = o.exec(c), h !== null); )
|
852
|
+
f = o.lastIndex, o === k ? h[1] === "!--" ? o = jt : h[1] !== void 0 ? o = Lt : h[2] !== void 0 ? (oe.test(h[2]) && (s = RegExp("</" + h[2], "g")), o = C) : h[3] !== void 0 && (o = C) : o === C ? h[0] === ">" ? (o = s ?? k, p = -1) : h[1] === void 0 ? p = -2 : (p = o.lastIndex - h[2].length, l = h[1], o = h[3] === void 0 ? C : h[3] === '"' ? Bt : Ht) : o === Bt || o === Ht ? o = C : o === jt || o === Lt ? o = k : (o = C, s = void 0);
|
853
|
+
const u = o === C && r[a + 1].startsWith("/>") ? " " : "";
|
854
|
+
n += o === k ? c + Le : p >= 0 ? (i.push(l), c.slice(0, p) + re + c.slice(p) + _ + u) : c + _ + (p === -2 ? a : u);
|
855
855
|
}
|
856
856
|
return [ae(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
857
857
|
};
|
@@ -861,26 +861,26 @@ class H {
|
|
861
861
|
this.parts = [];
|
862
862
|
let n = 0, o = 0;
|
863
863
|
const a = t.length - 1, c = this.parts, [l, h] = De(t, e);
|
864
|
-
if (this.el = H.createElement(l, i),
|
864
|
+
if (this.el = H.createElement(l, i), S.currentNode = this.el.content, e === 2) {
|
865
865
|
const p = this.el.content.firstChild;
|
866
866
|
p.replaceWith(...p.childNodes);
|
867
867
|
}
|
868
|
-
for (; (s =
|
868
|
+
for (; (s = S.nextNode()) !== null && c.length < a; ) {
|
869
869
|
if (s.nodeType === 1) {
|
870
870
|
if (s.hasAttributes())
|
871
871
|
for (const p of s.getAttributeNames())
|
872
872
|
if (p.endsWith(re)) {
|
873
|
-
const
|
874
|
-
c.push({ type: 1, index: n, name: g[2], strings:
|
873
|
+
const f = h[o++], u = s.getAttribute(p).split(_), g = /([.?@])?(.*)/.exec(f);
|
874
|
+
c.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ? Fe : g[1] === "?" ? We : g[1] === "@" ? Ge : tt }), s.removeAttribute(p);
|
875
875
|
} else
|
876
876
|
p.startsWith(_) && (c.push({ type: 6, index: n }), s.removeAttribute(p));
|
877
877
|
if (oe.test(s.tagName)) {
|
878
|
-
const p = s.textContent.split(_),
|
879
|
-
if (
|
880
|
-
s.textContent =
|
881
|
-
for (let
|
882
|
-
s.append(p[
|
883
|
-
s.append(p[
|
878
|
+
const p = s.textContent.split(_), f = p.length - 1;
|
879
|
+
if (f > 0) {
|
880
|
+
s.textContent = J ? J.emptyScript : "";
|
881
|
+
for (let u = 0; u < f; u++)
|
882
|
+
s.append(p[u], j()), S.nextNode(), c.push({ type: 2, index: ++n });
|
883
|
+
s.append(p[f], j());
|
884
884
|
}
|
885
885
|
}
|
886
886
|
} else if (s.nodeType === 8)
|
@@ -919,16 +919,16 @@ class ze {
|
|
919
919
|
}
|
920
920
|
u(t) {
|
921
921
|
const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? E).importNode(e, !0);
|
922
|
-
|
923
|
-
let n =
|
922
|
+
S.currentNode = s;
|
923
|
+
let n = S.nextNode(), o = 0, a = 0, c = i[0];
|
924
924
|
for (; c !== void 0; ) {
|
925
925
|
if (o === c.index) {
|
926
926
|
let l;
|
927
|
-
c.type === 2 ? l = new D(n, n.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (l = new
|
927
|
+
c.type === 2 ? l = new D(n, n.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (l = new qe(n, this, t)), this._$AV.push(l), c = i[++a];
|
928
928
|
}
|
929
|
-
o !== (c == null ? void 0 : c.index) && (n =
|
929
|
+
o !== (c == null ? void 0 : c.index) && (n = S.nextNode(), o++);
|
930
930
|
}
|
931
|
-
return
|
931
|
+
return S.currentNode = E, s;
|
932
932
|
}
|
933
933
|
p(t) {
|
934
934
|
let e = 0;
|
@@ -986,7 +986,7 @@ class D {
|
|
986
986
|
const e = this._$AH;
|
987
987
|
let i, s = 0;
|
988
988
|
for (const n of t)
|
989
|
-
s === e.length ? e.push(i = new D(this.k(
|
989
|
+
s === e.length ? e.push(i = new D(this.k(j()), this.k(j()), this, this.options)) : i = e[s], i._$AI(n), s++;
|
990
990
|
s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
|
991
991
|
}
|
992
992
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -1059,7 +1059,7 @@ class Ge extends tt {
|
|
1059
1059
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
1060
1060
|
}
|
1061
1061
|
}
|
1062
|
-
class
|
1062
|
+
class qe {
|
1063
1063
|
constructor(t, e, i) {
|
1064
1064
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
1065
1065
|
}
|
@@ -1070,14 +1070,14 @@ class Ve {
|
|
1070
1070
|
R(this, t);
|
1071
1071
|
}
|
1072
1072
|
}
|
1073
|
-
const ct =
|
1074
|
-
ct == null || ct(H, D), (
|
1075
|
-
const
|
1073
|
+
const ct = M.litHtmlPolyfillSupport;
|
1074
|
+
ct == null || ct(H, D), (M.litHtmlVersions ?? (M.litHtmlVersions = [])).push("3.0.2");
|
1075
|
+
const Ve = (r, t, e) => {
|
1076
1076
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
1077
1077
|
let s = i._$litPart$;
|
1078
1078
|
if (s === void 0) {
|
1079
1079
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
1080
|
-
i._$litPart$ = s = new D(t.insertBefore(
|
1080
|
+
i._$litPart$ = s = new D(t.insertBefore(j(), n), n, void 0, e ?? {});
|
1081
1081
|
}
|
1082
1082
|
return s._$AI(r), s;
|
1083
1083
|
};
|
@@ -1097,7 +1097,7 @@ let $ = class extends O {
|
|
1097
1097
|
}
|
1098
1098
|
update(t) {
|
1099
1099
|
const e = this.render();
|
1100
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
1100
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ve(e, this.renderRoot, this.renderOptions);
|
1101
1101
|
}
|
1102
1102
|
connectedCallback() {
|
1103
1103
|
var t;
|
@@ -1111,8 +1111,8 @@ let $ = class extends O {
|
|
1111
1111
|
return P;
|
1112
1112
|
}
|
1113
1113
|
};
|
1114
|
-
var
|
1115
|
-
$._$litElement$ = !0, $.finalized = !0, (
|
1114
|
+
var Yt;
|
1115
|
+
$._$litElement$ = !0, $.finalized = !0, (Yt = globalThis.litElementHydrateSupport) == null || Yt.call(globalThis, { LitElement: $ });
|
1116
1116
|
const lt = globalThis.litElementPolyfillSupport;
|
1117
1117
|
lt == null || lt({ LitElement: $ });
|
1118
1118
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
@@ -1121,7 +1121,7 @@ lt == null || lt({ LitElement: $ });
|
|
1121
1121
|
* Copyright 2017 Google LLC
|
1122
1122
|
* SPDX-License-Identifier: BSD-3-Clause
|
1123
1123
|
*/
|
1124
|
-
const
|
1124
|
+
const Ye = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: _t }, Ze = (r = Ye, t, e) => {
|
1125
1125
|
const { kind: i, metadata: s } = e;
|
1126
1126
|
let n = globalThis.litPropertyMetadata.get(s);
|
1127
1127
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), i === "accessor") {
|
@@ -1143,7 +1143,7 @@ const qe = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged:
|
|
1143
1143
|
throw Error("Unsupported decorator location: " + i);
|
1144
1144
|
};
|
1145
1145
|
function m(r) {
|
1146
|
-
return (t, e) => typeof e == "object" ?
|
1146
|
+
return (t, e) => typeof e == "object" ? Ze(r, t, e) : ((i, s, n) => {
|
1147
1147
|
const o = s.hasOwnProperty(n);
|
1148
1148
|
return s.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
1149
1149
|
})(r, t, e);
|
@@ -1156,10 +1156,10 @@ function m(r) {
|
|
1156
1156
|
function z(r) {
|
1157
1157
|
return m({ ...r, state: !0, attribute: !1 });
|
1158
1158
|
}
|
1159
|
-
var
|
1160
|
-
for (var s = i > 1 ? void 0 : i ?
|
1159
|
+
var Ke = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Xe = (r, t, e, i) => {
|
1160
|
+
for (var s = i > 1 ? void 0 : i ? Je(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1161
1161
|
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
1162
|
-
return i && s &&
|
1162
|
+
return i && s && Ke(t, e, s), s;
|
1163
1163
|
};
|
1164
1164
|
class et extends $ {
|
1165
1165
|
constructor() {
|
@@ -1192,7 +1192,7 @@ et.styles = [
|
|
1192
1192
|
}
|
1193
1193
|
`
|
1194
1194
|
];
|
1195
|
-
|
1195
|
+
Xe([
|
1196
1196
|
m({ attribute: !0 })
|
1197
1197
|
], et.prototype, "anchor", 2);
|
1198
1198
|
/**
|
@@ -1228,15 +1228,15 @@ const Qe = (r) => r.strings === void 0;
|
|
1228
1228
|
* Copyright 2017 Google LLC
|
1229
1229
|
* SPDX-License-Identifier: BSD-3-Clause
|
1230
1230
|
*/
|
1231
|
-
const
|
1231
|
+
const N = (r, t) => {
|
1232
1232
|
var i;
|
1233
1233
|
const e = r._$AN;
|
1234
1234
|
if (e === void 0)
|
1235
1235
|
return !1;
|
1236
1236
|
for (const s of e)
|
1237
|
-
(i = s._$AO) == null || i.call(s, t, !1),
|
1237
|
+
(i = s._$AO) == null || i.call(s, t, !1), N(s, t);
|
1238
1238
|
return !0;
|
1239
|
-
},
|
1239
|
+
}, X = (r) => {
|
1240
1240
|
let t, e;
|
1241
1241
|
do {
|
1242
1242
|
if ((t = r._$AM) === void 0)
|
@@ -1254,7 +1254,7 @@ const j = (r, t) => {
|
|
1254
1254
|
}
|
1255
1255
|
};
|
1256
1256
|
function ti(r) {
|
1257
|
-
this._$AN !== void 0 ? (
|
1257
|
+
this._$AN !== void 0 ? (X(this), this._$AM = r, le(this)) : this._$AM = r;
|
1258
1258
|
}
|
1259
1259
|
function ei(r, t = !1, e = 0) {
|
1260
1260
|
const i = this._$AH, s = this._$AN;
|
@@ -1262,11 +1262,11 @@ function ei(r, t = !1, e = 0) {
|
|
1262
1262
|
if (t)
|
1263
1263
|
if (Array.isArray(i))
|
1264
1264
|
for (let n = e; n < i.length; n++)
|
1265
|
-
|
1265
|
+
N(i[n], !1), X(i[n]);
|
1266
1266
|
else
|
1267
|
-
i != null && (
|
1267
|
+
i != null && (N(i, !1), X(i));
|
1268
1268
|
else
|
1269
|
-
|
1269
|
+
N(this, r);
|
1270
1270
|
}
|
1271
1271
|
const ii = (r) => {
|
1272
1272
|
r.type == wt.CHILD && (r._$AP ?? (r._$AP = ei), r._$AQ ?? (r._$AQ = ti));
|
@@ -1280,7 +1280,7 @@ class he extends ce {
|
|
1280
1280
|
}
|
1281
1281
|
_$AO(t, e = !0) {
|
1282
1282
|
var i, s;
|
1283
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (
|
1283
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (N(this, t), X(this));
|
1284
1284
|
}
|
1285
1285
|
setValue(t) {
|
1286
1286
|
if (Qe(this._$Ct))
|
@@ -1300,7 +1300,7 @@ let zt = 0;
|
|
1300
1300
|
const ht = /* @__PURE__ */ new Map(), Ft = /* @__PURE__ */ new WeakSet(), Wt = () => new Promise((r) => requestAnimationFrame(r)), si = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Gt = (r, t) => {
|
1301
1301
|
const e = r - t;
|
1302
1302
|
return e === 0 ? void 0 : e;
|
1303
|
-
},
|
1303
|
+
}, qt = (r, t) => {
|
1304
1304
|
const e = r / t;
|
1305
1305
|
return e === 1 ? void 0 : e;
|
1306
1306
|
}, pt = { left: (r, t) => {
|
@@ -1312,14 +1312,14 @@ const ht = /* @__PURE__ */ new Map(), Ft = /* @__PURE__ */ new WeakSet(), Wt = (
|
|
1312
1312
|
}, width: (r, t) => {
|
1313
1313
|
let e;
|
1314
1314
|
t === 0 && (t = 1, e = { width: "1px" });
|
1315
|
-
const i =
|
1315
|
+
const i = qt(r, t);
|
1316
1316
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1317
1317
|
}, height: (r, t) => {
|
1318
1318
|
let e;
|
1319
1319
|
t === 0 && (t = 1, e = { height: "1px" });
|
1320
|
-
const i =
|
1320
|
+
const i = qt(r, t);
|
1321
1321
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1322
|
-
} }, ni = { duration: 333, easing: "ease-in-out" }, oi = ["left", "top", "width", "height", "opacity", "color", "background"],
|
1322
|
+
} }, ni = { duration: 333, easing: "ease-in-out" }, oi = ["left", "top", "width", "height", "opacity", "color", "background"], Vt = /* @__PURE__ */ new WeakMap();
|
1323
1323
|
class ai extends he {
|
1324
1324
|
constructor(t) {
|
1325
1325
|
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === wt.CHILD)
|
@@ -1349,7 +1349,7 @@ class ai extends he {
|
|
1349
1349
|
update(t, [e]) {
|
1350
1350
|
var s;
|
1351
1351
|
const i = this.l === void 0;
|
1352
|
-
return i && (this.l = (s = t.options) == null ? void 0 : s.host, this.l.addController(this), this.element = t.element,
|
1352
|
+
return i && (this.l = (s = t.options) == null ? void 0 : s.host, this.l.addController(this), this.element = t.element, Vt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.u(e), this.render(e);
|
1353
1353
|
}
|
1354
1354
|
u(t) {
|
1355
1355
|
t = t ?? {};
|
@@ -1436,7 +1436,7 @@ class ai extends he {
|
|
1436
1436
|
_() {
|
1437
1437
|
const t = [];
|
1438
1438
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
1439
|
-
const i =
|
1439
|
+
const i = Vt.get(e);
|
1440
1440
|
i && !i.isDisabled() && i && t.push(i);
|
1441
1441
|
}
|
1442
1442
|
return t;
|
@@ -1469,8 +1469,8 @@ class ai extends he {
|
|
1469
1469
|
const p = pt[c];
|
1470
1470
|
if (l === void 0 || h === void 0)
|
1471
1471
|
continue;
|
1472
|
-
const
|
1473
|
-
|
1472
|
+
const f = p(l, h);
|
1473
|
+
f.transform !== void 0 && (a[c] = f.value, o = !0, s.transform = `${s.transform ?? ""} ${f.transform}`, f.overrideFrom !== void 0 && Object.assign(s, f.overrideFrom));
|
1474
1474
|
} else
|
1475
1475
|
l !== h && l !== void 0 && h !== void 0 && (o = !0, s[c] = l, n[c] = h);
|
1476
1476
|
}
|
@@ -1499,13 +1499,13 @@ class ai extends he {
|
|
1499
1499
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1500
1500
|
}
|
1501
1501
|
}
|
1502
|
-
const ci = At(ai);
|
1502
|
+
const ci = At(ai), li = { 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>' };
|
1503
1503
|
/**
|
1504
1504
|
* @license
|
1505
1505
|
* Copyright 2018 Google LLC
|
1506
1506
|
* SPDX-License-Identifier: BSD-3-Clause
|
1507
1507
|
*/
|
1508
|
-
const
|
1508
|
+
const hi = At(class extends ce {
|
1509
1509
|
constructor(r) {
|
1510
1510
|
var t;
|
1511
1511
|
if (super(r), r.type !== wt.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
|
@@ -1554,8 +1554,8 @@ const li = At(class extends ce {
|
|
1554
1554
|
* Copyright 2020 Google LLC
|
1555
1555
|
* SPDX-License-Identifier: BSD-3-Clause
|
1556
1556
|
*/
|
1557
|
-
const de = () => new
|
1558
|
-
class
|
1557
|
+
const de = () => new pi();
|
1558
|
+
class pi {
|
1559
1559
|
}
|
1560
1560
|
const dt = /* @__PURE__ */ new WeakMap(), ue = At(class extends he {
|
1561
1561
|
render(r) {
|
@@ -1585,10 +1585,10 @@ const dt = /* @__PURE__ */ new WeakMap(), ue = At(class extends he {
|
|
1585
1585
|
this.ot(this.lt);
|
1586
1586
|
}
|
1587
1587
|
});
|
1588
|
-
var
|
1589
|
-
for (var s = i > 1 ? void 0 : i ?
|
1588
|
+
var di = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, it = (r, t, e, i) => {
|
1589
|
+
for (var s = i > 1 ? void 0 : i ? ui(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1590
1590
|
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
1591
|
-
return i && s &&
|
1591
|
+
return i && s && di(t, e, s), s;
|
1592
1592
|
};
|
1593
1593
|
class A extends $ {
|
1594
1594
|
constructor() {
|
@@ -1619,12 +1619,10 @@ class A extends $ {
|
|
1619
1619
|
const i = (l = this.application) == null ? void 0 : l.triggerIcon;
|
1620
1620
|
if (!i)
|
1621
1621
|
return d;
|
1622
|
-
const s = async (h) =>
|
1623
|
-
(u) => u[h]
|
1624
|
-
), { type: n, content: o } = i;
|
1622
|
+
const s = async (h) => li, { type: n, content: o } = i;
|
1625
1623
|
switch (n) {
|
1626
1624
|
case "Telia": {
|
1627
|
-
const h = await s(
|
1625
|
+
const h = await s();
|
1628
1626
|
return h ? T`<telia-icon
|
1629
1627
|
class="trigger-icon"
|
1630
1628
|
svg=${h.svg}
|
@@ -1654,7 +1652,7 @@ class A extends $ {
|
|
1654
1652
|
` : d}
|
1655
1653
|
|
1656
1654
|
<button
|
1657
|
-
class=${
|
1655
|
+
class=${hi({
|
1658
1656
|
trigger: !0,
|
1659
1657
|
active: this.active,
|
1660
1658
|
rendered: this.loaded
|
@@ -1812,12 +1810,12 @@ it([
|
|
1812
1810
|
it([
|
1813
1811
|
z()
|
1814
1812
|
], A.prototype, "icon", 2);
|
1815
|
-
var
|
1816
|
-
for (var s = i > 1 ? void 0 : i ?
|
1813
|
+
var fi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, x = (r, t, e, i) => {
|
1814
|
+
for (var s = i > 1 ? void 0 : i ? gi(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1817
1815
|
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
1818
|
-
return i && s &&
|
1816
|
+
return i && s && fi(t, e, s), s;
|
1819
1817
|
};
|
1820
|
-
const
|
1818
|
+
const mi = (r) => {
|
1821
1819
|
class t extends r {
|
1822
1820
|
constructor() {
|
1823
1821
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -1872,12 +1870,12 @@ const gi = (r) => {
|
|
1872
1870
|
m({ attribute: !1 })
|
1873
1871
|
], t.prototype, "parent", 2), t;
|
1874
1872
|
};
|
1875
|
-
class
|
1873
|
+
class Ct extends mi($) {
|
1876
1874
|
render() {
|
1877
1875
|
return T`Non resolved component`;
|
1878
1876
|
}
|
1879
1877
|
}
|
1880
|
-
|
1878
|
+
Ct.styles = [
|
1881
1879
|
U`
|
1882
1880
|
:host {
|
1883
1881
|
display: block;
|
@@ -1889,17 +1887,17 @@ St.styles = [
|
|
1889
1887
|
* Copyright 2021 Google LLC
|
1890
1888
|
* SPDX-License-Identifier: BSD-3-Clause
|
1891
1889
|
*/
|
1892
|
-
function*
|
1890
|
+
function* vi(r, t) {
|
1893
1891
|
if (r !== void 0) {
|
1894
1892
|
let e = 0;
|
1895
1893
|
for (const i of r)
|
1896
1894
|
yield t(i, e++);
|
1897
1895
|
}
|
1898
1896
|
}
|
1899
|
-
var y = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(y || {}),
|
1900
|
-
for (var s = i > 1 ? void 0 : i ?
|
1897
|
+
var y = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(y || {}), yi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, $i = (r, t, e, i) => {
|
1898
|
+
for (var s = i > 1 ? void 0 : i ? bi(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1901
1899
|
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
1902
|
-
return i && s &&
|
1900
|
+
return i && s && yi(t, e, s), s;
|
1903
1901
|
};
|
1904
1902
|
class rt extends $ {
|
1905
1903
|
constructor() {
|
@@ -1927,7 +1925,7 @@ class rt extends $ {
|
|
1927
1925
|
}
|
1928
1926
|
render() {
|
1929
1927
|
return this.application.renderStrategy === y.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")), T`<div class="widget-container" ${ue(this.wrapperRef)}>
|
1930
|
-
${
|
1928
|
+
${vi(this.nodes, (t) => t)}
|
1931
1929
|
</div>`;
|
1932
1930
|
}
|
1933
1931
|
}
|
@@ -2029,10 +2027,10 @@ rt.styles = U`
|
|
2029
2027
|
animation: slideDown 0.3s linear;
|
2030
2028
|
}
|
2031
2029
|
`;
|
2032
|
-
|
2030
|
+
$i([
|
2033
2031
|
m({ attribute: !1 })
|
2034
2032
|
], rt.prototype, "application", 2);
|
2035
|
-
class
|
2033
|
+
class _i {
|
2036
2034
|
constructor() {
|
2037
2035
|
this.root = this.createRoot();
|
2038
2036
|
}
|
@@ -2052,18 +2050,18 @@ class $i {
|
|
2052
2050
|
};
|
2053
2051
|
}, s = (a, c, l, h) => {
|
2054
2052
|
l.forEach((p) => {
|
2055
|
-
const
|
2056
|
-
if (!
|
2053
|
+
const f = i(p), u = h[f.definitionId];
|
2054
|
+
if (!u) {
|
2057
2055
|
console.error(
|
2058
|
-
`No definition found for component type '${
|
2056
|
+
`No definition found for component type '${f.definitionId}'.`
|
2059
2057
|
);
|
2060
2058
|
return;
|
2061
2059
|
}
|
2062
|
-
const g = a.createNode(
|
2063
|
-
g && (g.name =
|
2060
|
+
const g = a.createNode(u.type, u.type);
|
2061
|
+
g && (g.name = f.definitionId, g.application = e, u.properties && g.writeProperties(u.properties), u.context && g.writeContext(u.context), u.layout && g.writeLayout(u.layout), c.addChild(g), u.children && s(
|
2064
2062
|
a,
|
2065
2063
|
g,
|
2066
|
-
|
2064
|
+
u.children,
|
2067
2065
|
h
|
2068
2066
|
// views
|
2069
2067
|
));
|
@@ -2077,7 +2075,7 @@ class $i {
|
|
2077
2075
|
createNode(t, e) {
|
2078
2076
|
const i = this.resolveComponent(e);
|
2079
2077
|
if (!i)
|
2080
|
-
return console.warn(`Unable to resolve component: ${e}`), new
|
2078
|
+
return console.warn(`Unable to resolve component: ${e}`), new Ct();
|
2081
2079
|
const s = new i();
|
2082
2080
|
return s.type = e, s.name = t, s;
|
2083
2081
|
}
|
@@ -2114,7 +2112,7 @@ const fe = class {
|
|
2114
2112
|
};
|
2115
2113
|
let ge = fe;
|
2116
2114
|
ge.ResolveWebComponentName = (r) => `ace-${r}`;
|
2117
|
-
class
|
2115
|
+
class wi {
|
2118
2116
|
constructor() {
|
2119
2117
|
this.texts = /* @__PURE__ */ new Map();
|
2120
2118
|
}
|
@@ -2129,9 +2127,9 @@ class _i {
|
|
2129
2127
|
return this.texts.get(t) || e;
|
2130
2128
|
}
|
2131
2129
|
}
|
2132
|
-
class
|
2130
|
+
class Ai {
|
2133
2131
|
constructor(t, e, i, s) {
|
2134
|
-
this.name = t, this.container = e, this.settings = i, this.options = s, this.platform = new
|
2132
|
+
this.name = t, this.container = e, this.settings = i, this.options = s, this.platform = new _i(), this.texts = new wi(), this.renderStrategy = y.Inline, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new ge(), this.components = [], this.trigger = null, this.renderStrategy = this.options.renderStrategy || y.Inline, this.triggerIcon = this.options.triggerIcon, typeof s.autoActivate == "boolean" && (this.autoActivate = s.autoActivate), s.anchor && (this.anchor = s.anchor), this.container.register("$settings", i), this.texts.loadTexts(i.texts || {});
|
2135
2133
|
}
|
2136
2134
|
async activate() {
|
2137
2135
|
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(ee.Ready), this.autoActivate) {
|
@@ -2228,7 +2226,7 @@ const me = class {
|
|
2228
2226
|
};
|
2229
2227
|
let yt = me;
|
2230
2228
|
yt.endpoint = "https://widgets.ace.teliacompany.net/api";
|
2231
|
-
class
|
2229
|
+
class Ci {
|
2232
2230
|
constructor() {
|
2233
2231
|
this.applications = [], this.container = new Rt("environment", this), setTimeout(() => {
|
2234
2232
|
this.notifyWidgetsOfCreation();
|
@@ -2255,7 +2253,7 @@ class Ai {
|
|
2255
2253
|
});
|
2256
2254
|
}
|
2257
2255
|
registerApp(t, e, i) {
|
2258
|
-
const s = new Rt(t, this), n = new
|
2256
|
+
const s = new Rt(t, this), n = new Ai(t, s, e, i);
|
2259
2257
|
this.applications.push(n);
|
2260
2258
|
}
|
2261
2259
|
plugin(t) {
|
@@ -2264,7 +2262,7 @@ class Ai {
|
|
2264
2262
|
}), this;
|
2265
2263
|
}
|
2266
2264
|
}
|
2267
|
-
class
|
2265
|
+
class xi {
|
2268
2266
|
constructor(t) {
|
2269
2267
|
this.configurations = [], this.httpClient = new yt(), this.httpClient = new yt(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
|
2270
2268
|
}
|
@@ -2291,7 +2289,7 @@ class Si {
|
|
2291
2289
|
}
|
2292
2290
|
async bootstrap(t) {
|
2293
2291
|
var e;
|
2294
|
-
this.url && await this.load(this.url), this.environment = new
|
2292
|
+
this.url && await this.load(this.url), this.environment = new Ci(), this.addGlobal(this.environment);
|
2295
2293
|
for await (const i of this.configurations) {
|
2296
2294
|
const s = await this.httpClient.getWidget(i.widgetId);
|
2297
2295
|
s && ((e = this.environment) == null || e.registerApp(s.name, s.config, {
|
@@ -2307,10 +2305,10 @@ class Si {
|
|
2307
2305
|
globalThis.widgets = t;
|
2308
2306
|
}
|
2309
2307
|
}
|
2310
|
-
var
|
2311
|
-
for (var s = i > 1 ? void 0 : i ?
|
2308
|
+
var Si = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, xt = (r, t, e, i) => {
|
2309
|
+
for (var s = i > 1 ? void 0 : i ? Ei(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
2312
2310
|
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
2313
|
-
return i && s &&
|
2311
|
+
return i && s && Si(t, e, s), s;
|
2314
2312
|
};
|
2315
2313
|
class F extends $ {
|
2316
2314
|
constructor() {
|
@@ -2362,20 +2360,20 @@ xt([
|
|
2362
2360
|
], F.prototype, "status", 2);
|
2363
2361
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", et);
|
2364
2362
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
|
2365
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
2363
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Ct);
|
2366
2364
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", rt);
|
2367
2365
|
customElements.get("ace-widget") || customElements.define("ace-widget", F);
|
2368
|
-
const
|
2369
|
-
await new
|
2366
|
+
const Ui = async (r, t) => {
|
2367
|
+
await new xi(r).bootstrap(t);
|
2370
2368
|
};
|
2371
2369
|
export {
|
2372
2370
|
F as AceWidget,
|
2373
|
-
|
2371
|
+
Ai as Application,
|
2374
2372
|
Rt as Container,
|
2375
|
-
|
2373
|
+
Ci as Environment,
|
2376
2374
|
yt as HttpClient,
|
2377
|
-
|
2375
|
+
xi as Site,
|
2378
2376
|
A as Trigger,
|
2379
|
-
|
2380
|
-
|
2377
|
+
mi as WidgetComponent,
|
2378
|
+
Ui as bootstrap
|
2381
2379
|
};
|