@telia-ace/widget-components-area-flamingo 1.1.38-rc.0 → 1.1.38-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/{area-1f5a4d0e.mjs → area-315d1f4f.mjs} +126 -128
- package/{area-0b88df0a.js → area-f7a0a255.js} +20 -20
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/index-5087564d.mjs +0 -335
- package/index-6dd00f59.js +0 -1
@@ -23,7 +23,7 @@ let Et = class {
|
|
23
23
|
return this.cssText;
|
24
24
|
}
|
25
25
|
};
|
26
|
-
const zt = (r) => new Et(typeof r == "string" ? r : r + "", void 0, et),
|
26
|
+
const zt = (r) => new Et(typeof r == "string" ? r : r + "", void 0, et), x = (r, ...t) => {
|
27
27
|
const e = r.length === 1 ? r[0] : t.reduce((s, i, o) => s + ((n) => {
|
28
28
|
if (n._$cssResult$ === !0)
|
29
29
|
return n.cssText;
|
@@ -51,10 +51,10 @@ const zt = (r) => new Et(typeof r == "string" ? r : r + "", void 0, et), C = (r,
|
|
51
51
|
* Copyright 2017 Google LLC
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
53
53
|
*/
|
54
|
-
const { is: Ft, defineProperty: Wt, getOwnPropertyDescriptor: Gt, getOwnPropertyNames: Vt, getOwnPropertySymbols: qt, getPrototypeOf: Yt } = Object, v = globalThis, dt = v.trustedTypes,
|
54
|
+
const { is: Ft, defineProperty: Wt, getOwnPropertyDescriptor: Gt, getOwnPropertyNames: Vt, getOwnPropertySymbols: qt, getPrototypeOf: Yt } = Object, v = globalThis, dt = v.trustedTypes, Zt = dt ? dt.emptyScript : "", q = v.reactiveElementPolyfillSupport, T = (r, t) => r, I = { toAttribute(r, t) {
|
55
55
|
switch (t) {
|
56
56
|
case Boolean:
|
57
|
-
r = r ?
|
57
|
+
r = r ? Zt : null;
|
58
58
|
break;
|
59
59
|
case Object:
|
60
60
|
case Array:
|
@@ -298,9 +298,9 @@ S.elementStyles = [], S.shadowRootOptions = { mode: "open" }, S[T("elementProper
|
|
298
298
|
* Copyright 2017 Google LLC
|
299
299
|
* SPDX-License-Identifier: BSD-3-Clause
|
300
300
|
*/
|
301
|
-
const N = globalThis, F = N.trustedTypes, ut = F ? F.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, St = "$lit$", $ = `lit$${(Math.random() + "").slice(9)}$`, Pt = "?" + $,
|
301
|
+
const N = globalThis, F = N.trustedTypes, ut = F ? F.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, St = "$lit$", $ = `lit$${(Math.random() + "").slice(9)}$`, Pt = "?" + $, Kt = `<${Pt}>`, w = document, k = () => w.createComment(""), R = (r) => r === null || typeof r != "object" && typeof r != "function", Ot = Array.isArray, Xt = (r) => Ot(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Y = `[
|
302
302
|
\f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, gt = /-->/g, ft = />/g, y = RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^
|
303
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), mt = /'/g, $t = /"/g, Tt = /^(?:script|style|textarea|title)$/i,
|
303
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), mt = /'/g, $t = /"/g, Tt = /^(?:script|style|textarea|title)$/i, Jt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), b = Jt(1), C = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), vt = /* @__PURE__ */ new WeakMap(), A = w.createTreeWalker(w, 129);
|
304
304
|
function Nt(r, t) {
|
305
305
|
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
306
306
|
throw Error("invalid template strings array");
|
@@ -311,11 +311,11 @@ const Qt = (r, t) => {
|
|
311
311
|
let i, o = t === 2 ? "<svg>" : "", n = O;
|
312
312
|
for (let h = 0; h < e; h++) {
|
313
313
|
const a = r[h];
|
314
|
-
let l,
|
315
|
-
for (; u < a.length && (n.lastIndex = u,
|
316
|
-
u = n.lastIndex, n === O ?
|
314
|
+
let l, d, p = -1, u = 0;
|
315
|
+
for (; u < a.length && (n.lastIndex = u, d = n.exec(a), d !== null); )
|
316
|
+
u = n.lastIndex, n === O ? d[1] === "!--" ? n = gt : d[1] !== void 0 ? n = ft : d[2] !== void 0 ? (Tt.test(d[2]) && (i = RegExp("</" + d[2], "g")), n = y) : d[3] !== void 0 && (n = y) : n === y ? d[0] === ">" ? (n = i ?? O, p = -1) : d[1] === void 0 ? p = -2 : (p = n.lastIndex - d[2].length, l = d[1], n = d[3] === void 0 ? y : d[3] === '"' ? $t : mt) : n === $t || n === mt ? n = y : n === gt || n === ft ? n = O : (n = y, i = void 0);
|
317
317
|
const m = n === y && r[h + 1].startsWith("/>") ? " " : "";
|
318
|
-
o += n === O ? a +
|
318
|
+
o += n === O ? a + Kt : p >= 0 ? (s.push(l), a.slice(0, p) + St + a.slice(p) + $ + m) : a + $ + (p === -2 ? h : m);
|
319
319
|
}
|
320
320
|
return [Nt(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
321
321
|
};
|
@@ -324,36 +324,36 @@ class M {
|
|
324
324
|
let i;
|
325
325
|
this.parts = [];
|
326
326
|
let o = 0, n = 0;
|
327
|
-
const h = t.length - 1, a = this.parts, [l,
|
327
|
+
const h = t.length - 1, a = this.parts, [l, d] = Qt(t, e);
|
328
328
|
if (this.el = M.createElement(l, s), A.currentNode = this.el.content, e === 2) {
|
329
|
-
const
|
330
|
-
|
329
|
+
const p = this.el.content.firstChild;
|
330
|
+
p.replaceWith(...p.childNodes);
|
331
331
|
}
|
332
332
|
for (; (i = A.nextNode()) !== null && a.length < h; ) {
|
333
333
|
if (i.nodeType === 1) {
|
334
334
|
if (i.hasAttributes())
|
335
|
-
for (const
|
336
|
-
if (
|
337
|
-
const u =
|
338
|
-
a.push({ type: 1, index: o, name:
|
335
|
+
for (const p of i.getAttributeNames())
|
336
|
+
if (p.endsWith(St)) {
|
337
|
+
const u = d[n++], m = i.getAttribute(p).split($), B = /([.?@])?(.*)/.exec(u);
|
338
|
+
a.push({ type: 1, index: o, name: B[2], strings: m, ctor: B[1] === "." ? ee : B[1] === "?" ? se : B[1] === "@" ? ie : G }), i.removeAttribute(p);
|
339
339
|
} else
|
340
|
-
|
340
|
+
p.startsWith($) && (a.push({ type: 6, index: o }), i.removeAttribute(p));
|
341
341
|
if (Tt.test(i.tagName)) {
|
342
|
-
const
|
342
|
+
const p = i.textContent.split($), u = p.length - 1;
|
343
343
|
if (u > 0) {
|
344
344
|
i.textContent = F ? F.emptyScript : "";
|
345
345
|
for (let m = 0; m < u; m++)
|
346
|
-
i.append(
|
347
|
-
i.append(
|
346
|
+
i.append(p[m], k()), A.nextNode(), a.push({ type: 2, index: ++o });
|
347
|
+
i.append(p[u], k());
|
348
348
|
}
|
349
349
|
}
|
350
350
|
} else if (i.nodeType === 8)
|
351
351
|
if (i.data === Pt)
|
352
352
|
a.push({ type: 2, index: o });
|
353
353
|
else {
|
354
|
-
let
|
355
|
-
for (; (
|
356
|
-
a.push({ type: 7, index: o }),
|
354
|
+
let p = -1;
|
355
|
+
for (; (p = i.data.indexOf($, p + 1)) !== -1; )
|
356
|
+
a.push({ type: 7, index: o }), p += $.length - 1;
|
357
357
|
}
|
358
358
|
o++;
|
359
359
|
}
|
@@ -365,7 +365,7 @@ class M {
|
|
365
365
|
}
|
366
366
|
function P(r, t, e = r, s) {
|
367
367
|
var n, h;
|
368
|
-
if (t ===
|
368
|
+
if (t === C)
|
369
369
|
return t;
|
370
370
|
let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
|
371
371
|
const o = R(t) ? void 0 : t._$litDirective$;
|
@@ -388,7 +388,7 @@ class te {
|
|
388
388
|
for (; a !== void 0; ) {
|
389
389
|
if (n === a.index) {
|
390
390
|
let l;
|
391
|
-
a.type === 2 ? l = new
|
391
|
+
a.type === 2 ? l = new L(o, o.nextSibling, this, t) : a.type === 1 ? l = new a.ctor(o, a.name, a.strings, this, t) : a.type === 6 && (l = new re(o, this, t)), this._$AV.push(l), a = s[++h];
|
392
392
|
}
|
393
393
|
n !== (a == null ? void 0 : a.index) && (o = A.nextNode(), n++);
|
394
394
|
}
|
@@ -400,13 +400,13 @@ class te {
|
|
400
400
|
s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
401
401
|
}
|
402
402
|
}
|
403
|
-
class
|
403
|
+
class L {
|
404
404
|
get _$AU() {
|
405
405
|
var t;
|
406
406
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
407
407
|
}
|
408
408
|
constructor(t, e, s, i) {
|
409
|
-
this.type = 2, this._$AH =
|
409
|
+
this.type = 2, this._$AH = c, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
|
410
410
|
}
|
411
411
|
get parentNode() {
|
412
412
|
let t = this._$AA.parentNode;
|
@@ -420,7 +420,7 @@ class H {
|
|
420
420
|
return this._$AB;
|
421
421
|
}
|
422
422
|
_$AI(t, e = this) {
|
423
|
-
t = P(this, t, e), R(t) ? t ===
|
423
|
+
t = P(this, t, e), R(t) ? t === c || t == null || t === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : t !== this._$AH && t !== C && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Xt(t) ? this.T(t) : this._(t);
|
424
424
|
}
|
425
425
|
k(t) {
|
426
426
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -429,7 +429,7 @@ class H {
|
|
429
429
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
430
430
|
}
|
431
431
|
_(t) {
|
432
|
-
this._$AH !==
|
432
|
+
this._$AH !== c && R(this._$AH) ? this._$AA.nextSibling.data = t : this.$(w.createTextNode(t)), this._$AH = t;
|
433
433
|
}
|
434
434
|
g(t) {
|
435
435
|
var o;
|
@@ -450,7 +450,7 @@ class H {
|
|
450
450
|
const e = this._$AH;
|
451
451
|
let s, i = 0;
|
452
452
|
for (const o of t)
|
453
|
-
i === e.length ? e.push(s = new
|
453
|
+
i === e.length ? e.push(s = new L(this.k(k()), this.k(k()), this, this.options)) : s = e[i], s._$AI(o), i++;
|
454
454
|
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
455
455
|
}
|
456
456
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -473,23 +473,23 @@ class G {
|
|
473
473
|
return this._$AM._$AU;
|
474
474
|
}
|
475
475
|
constructor(t, e, s, i, o) {
|
476
|
-
this.type = 1, this._$AH =
|
476
|
+
this.type = 1, this._$AH = c, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = c;
|
477
477
|
}
|
478
478
|
_$AI(t, e = this, s, i) {
|
479
479
|
const o = this.strings;
|
480
480
|
let n = !1;
|
481
481
|
if (o === void 0)
|
482
|
-
t = P(this, t, e, 0), n = !R(t) || t !== this._$AH && t !==
|
482
|
+
t = P(this, t, e, 0), n = !R(t) || t !== this._$AH && t !== C, n && (this._$AH = t);
|
483
483
|
else {
|
484
484
|
const h = t;
|
485
485
|
let a, l;
|
486
486
|
for (t = o[0], a = 0; a < o.length - 1; a++)
|
487
|
-
l = P(this, h[s + a], e, a), l ===
|
487
|
+
l = P(this, h[s + a], e, a), l === C && (l = this._$AH[a]), n || (n = !R(l) || l !== this._$AH[a]), l === c ? t = c : t !== c && (t += (l ?? "") + o[a + 1]), this._$AH[a] = l;
|
488
488
|
}
|
489
489
|
n && !i && this.O(t);
|
490
490
|
}
|
491
491
|
O(t) {
|
492
|
-
t ===
|
492
|
+
t === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
493
|
}
|
494
494
|
}
|
495
495
|
class ee extends G {
|
@@ -497,7 +497,7 @@ class ee extends G {
|
|
497
497
|
super(...arguments), this.type = 3;
|
498
498
|
}
|
499
499
|
O(t) {
|
500
|
-
this.element[this.name] = t ===
|
500
|
+
this.element[this.name] = t === c ? void 0 : t;
|
501
501
|
}
|
502
502
|
}
|
503
503
|
class se extends G {
|
@@ -505,7 +505,7 @@ class se extends G {
|
|
505
505
|
super(...arguments), this.type = 4;
|
506
506
|
}
|
507
507
|
O(t) {
|
508
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
508
|
+
this.element.toggleAttribute(this.name, !!t && t !== c);
|
509
509
|
}
|
510
510
|
}
|
511
511
|
class ie extends G {
|
@@ -513,9 +513,9 @@ class ie extends G {
|
|
513
513
|
super(t, e, s, i, o), this.type = 5;
|
514
514
|
}
|
515
515
|
_$AI(t, e = this) {
|
516
|
-
if ((t = P(this, t, e, 0) ??
|
516
|
+
if ((t = P(this, t, e, 0) ?? c) === C)
|
517
517
|
return;
|
518
|
-
const s = this._$AH, i = t ===
|
518
|
+
const s = this._$AH, i = t === c && s !== c || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== c && (s === c || i);
|
519
519
|
i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
520
520
|
}
|
521
521
|
handleEvent(t) {
|
@@ -534,14 +534,14 @@ class re {
|
|
534
534
|
P(this, t);
|
535
535
|
}
|
536
536
|
}
|
537
|
-
const
|
538
|
-
|
537
|
+
const Z = N.litHtmlPolyfillSupport;
|
538
|
+
Z == null || Z(M, L), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.0.2");
|
539
539
|
const oe = (r, t, e) => {
|
540
540
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
541
541
|
let i = s._$litPart$;
|
542
542
|
if (i === void 0) {
|
543
543
|
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
544
|
-
s._$litPart$ = i = new
|
544
|
+
s._$litPart$ = i = new L(t.insertBefore(k(), o), o, void 0, e ?? {});
|
545
545
|
}
|
546
546
|
return i._$AI(r), i;
|
547
547
|
};
|
@@ -572,13 +572,13 @@ let f = class extends S {
|
|
572
572
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
573
573
|
}
|
574
574
|
render() {
|
575
|
-
return
|
575
|
+
return C;
|
576
576
|
}
|
577
577
|
};
|
578
|
-
var
|
579
|
-
f._$litElement$ = !0, f.finalized = !0, (
|
580
|
-
const
|
581
|
-
|
578
|
+
var xt;
|
579
|
+
f._$litElement$ = !0, f.finalized = !0, (xt = globalThis.litElementHydrateSupport) == null || xt.call(globalThis, { LitElement: f });
|
580
|
+
const K = globalThis.litElementPolyfillSupport;
|
581
|
+
K == null || K({ LitElement: f });
|
582
582
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
583
583
|
/**
|
584
584
|
* @license
|
@@ -629,7 +629,7 @@ function g(r) {
|
|
629
629
|
* Copyright 2017 Google LLC
|
630
630
|
* SPDX-License-Identifier: BSD-3-Clause
|
631
631
|
*/
|
632
|
-
function
|
632
|
+
function H(r) {
|
633
633
|
return g({ ...r, state: !0, attribute: !1 });
|
634
634
|
}
|
635
635
|
var he = Object.defineProperty, le = Object.getOwnPropertyDescriptor, ce = (r, t, e, s) => {
|
@@ -646,11 +646,11 @@ class it extends f {
|
|
646
646
|
return (e = this.shadowRoot) == null || e.appendChild(t), t;
|
647
647
|
}
|
648
648
|
render() {
|
649
|
-
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"),
|
649
|
+
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), c;
|
650
650
|
}
|
651
651
|
}
|
652
652
|
it.styles = [
|
653
|
-
|
653
|
+
x`
|
654
654
|
:host {
|
655
655
|
position: fixed;
|
656
656
|
display: flex;
|
@@ -773,13 +773,13 @@ class Mt extends kt {
|
|
773
773
|
}
|
774
774
|
const fe = /* @__PURE__ */ new WeakMap();
|
775
775
|
let yt = 0;
|
776
|
-
const
|
776
|
+
const X = /* @__PURE__ */ new Map(), _t = /* @__PURE__ */ new WeakSet(), bt = () => new Promise((r) => requestAnimationFrame(r)), me = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], At = (r, t) => {
|
777
777
|
const e = r - t;
|
778
778
|
return e === 0 ? void 0 : e;
|
779
779
|
}, wt = (r, t) => {
|
780
780
|
const e = r / t;
|
781
781
|
return e === 1 ? void 0 : e;
|
782
|
-
},
|
782
|
+
}, J = { left: (r, t) => {
|
783
783
|
const e = At(r, t);
|
784
784
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
785
785
|
}, top: (r, t) => {
|
@@ -795,7 +795,7 @@ const J = /* @__PURE__ */ new Map(), _t = /* @__PURE__ */ new WeakSet(), bt = ()
|
|
795
795
|
t === 0 && (t = 1, e = { height: "1px" });
|
796
796
|
const s = wt(r, t);
|
797
797
|
return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
|
798
|
-
} }, $e = { duration: 333, easing: "ease-in-out" }, ve = ["left", "top", "width", "height", "opacity", "color", "background"],
|
798
|
+
} }, $e = { duration: 333, easing: "ease-in-out" }, ve = ["left", "top", "width", "height", "opacity", "color", "background"], Ct = /* @__PURE__ */ new WeakMap();
|
799
799
|
class ye extends Mt {
|
800
800
|
constructor(t) {
|
801
801
|
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === rt.CHILD)
|
@@ -813,7 +813,7 @@ class ye extends Mt {
|
|
813
813
|
(t = this.h) == null || t.call(this), this.h = void 0;
|
814
814
|
}
|
815
815
|
render(t) {
|
816
|
-
return
|
816
|
+
return c;
|
817
817
|
}
|
818
818
|
getController() {
|
819
819
|
return fe.get(this.l);
|
@@ -825,7 +825,7 @@ class ye extends Mt {
|
|
825
825
|
update(t, [e]) {
|
826
826
|
var i;
|
827
827
|
const s = this.l === void 0;
|
828
|
-
return s && (this.l = (i = t.options) == null ? void 0 : i.host, this.l.addController(this), this.element = t.element,
|
828
|
+
return s && (this.l = (i = t.options) == null ? void 0 : i.host, this.l.addController(this), this.element = t.element, Ct.set(this.element, this)), this.optionsOrCallback = e, (s || typeof e != "function") && this.u(e), this.render(e);
|
829
829
|
}
|
830
830
|
u(t) {
|
831
831
|
t = t ?? {};
|
@@ -835,7 +835,7 @@ class ye extends Mt {
|
|
835
835
|
p() {
|
836
836
|
const t = {}, e = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
837
837
|
return this.options.properties.forEach((i) => {
|
838
|
-
const o = e[i] ?? (
|
838
|
+
const o = e[i] ?? (J[i] ? void 0 : s[i]), n = Number(o);
|
839
839
|
t[i] = isNaN(n) ? o + "" : n;
|
840
840
|
}), t;
|
841
841
|
}
|
@@ -863,9 +863,9 @@ class ye extends Mt {
|
|
863
863
|
const { from: o, to: n } = this.O(this.g, i, e);
|
864
864
|
this.log("measured", [this.g, i, o, n]), t = this.calculateKeyframes(o, n);
|
865
865
|
} else {
|
866
|
-
const o =
|
866
|
+
const o = X.get(this.options.inId);
|
867
867
|
if (o) {
|
868
|
-
|
868
|
+
X.delete(this.options.inId);
|
869
869
|
const { from: n, to: h } = this.O(o, i, e);
|
870
870
|
t = this.calculateKeyframes(n, h), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, yt++, t.forEach((a) => a.zIndex = yt);
|
871
871
|
} else
|
@@ -884,7 +884,7 @@ class ye extends Mt {
|
|
884
884
|
}
|
885
885
|
async disconnected() {
|
886
886
|
var e;
|
887
|
-
if (!this.o || (this.options.id !== void 0 &&
|
887
|
+
if (!this.o || (this.options.id !== void 0 && X.set(this.options.id, this.g), this.options.out === void 0))
|
888
888
|
return;
|
889
889
|
if (this.prepare(), await bt(), (e = this.t) == null ? void 0 : e.isConnected) {
|
890
890
|
const s = this.i && this.i.parentNode === this.t ? this.i : null;
|
@@ -912,7 +912,7 @@ class ye extends Mt {
|
|
912
912
|
_() {
|
913
913
|
const t = [];
|
914
914
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
915
|
-
const s =
|
915
|
+
const s = Ct.get(e);
|
916
916
|
s && !s.isDisabled() && s && t.push(s);
|
917
917
|
}
|
918
918
|
return t;
|
@@ -940,15 +940,15 @@ class ye extends Mt {
|
|
940
940
|
let n = !1;
|
941
941
|
const h = {};
|
942
942
|
for (const a in e) {
|
943
|
-
const l = t[a],
|
944
|
-
if (a in
|
945
|
-
const
|
946
|
-
if (l === void 0 ||
|
943
|
+
const l = t[a], d = e[a];
|
944
|
+
if (a in J) {
|
945
|
+
const p = J[a];
|
946
|
+
if (l === void 0 || d === void 0)
|
947
947
|
continue;
|
948
|
-
const u =
|
948
|
+
const u = p(l, d);
|
949
949
|
u.transform !== void 0 && (h[a] = u.value, n = !0, i.transform = `${i.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(i, u.overrideFrom));
|
950
950
|
} else
|
951
|
-
l !==
|
951
|
+
l !== d && l !== void 0 && d !== void 0 && (n = !0, i[a] = l, o[a] = d);
|
952
952
|
}
|
953
953
|
return i.transformOrigin = o.transformOrigin = s ? "center center" : "top left", this.animatingProperties = h, n ? [i, o] : void 0;
|
954
954
|
}
|
@@ -975,13 +975,13 @@ class ye extends Mt {
|
|
975
975
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
976
976
|
}
|
977
977
|
}
|
978
|
-
const _e = ot(ye);
|
978
|
+
const _e = ot(ye), be = { 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>' };
|
979
979
|
/**
|
980
980
|
* @license
|
981
981
|
* Copyright 2018 Google LLC
|
982
982
|
* SPDX-License-Identifier: BSD-3-Clause
|
983
983
|
*/
|
984
|
-
const
|
984
|
+
const Ae = ot(class extends kt {
|
985
985
|
constructor(r) {
|
986
986
|
var t;
|
987
987
|
if (super(r), r.type !== rt.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
|
@@ -1005,21 +1005,21 @@ const be = ot(class extends kt {
|
|
1005
1005
|
const n = !!t[o];
|
1006
1006
|
n === this.it.has(o) || (i = this.st) != null && i.has(o) || (n ? (e.add(o), this.it.add(o)) : (e.remove(o), this.it.delete(o)));
|
1007
1007
|
}
|
1008
|
-
return
|
1008
|
+
return C;
|
1009
1009
|
}
|
1010
|
-
}),
|
1010
|
+
}), D = (r, t, e) => {
|
1011
1011
|
r && e.style.setProperty(t, r);
|
1012
|
-
},
|
1012
|
+
}, Lt = (r, t) => {
|
1013
1013
|
var e, s, i, o;
|
1014
|
-
|
1014
|
+
D((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), D(
|
1015
1015
|
(s = r.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
1016
1016
|
"--text-on-primary-background",
|
1017
1017
|
t
|
1018
|
-
),
|
1018
|
+
), D(
|
1019
1019
|
(i = r.colors) == null ? void 0 : i.secondaryBackground,
|
1020
1020
|
"--secondary-background",
|
1021
1021
|
t
|
1022
|
-
),
|
1022
|
+
), D(
|
1023
1023
|
(o = r.colors) == null ? void 0 : o.textOnSecondaryBackground,
|
1024
1024
|
"--text-on-secondary-background",
|
1025
1025
|
t
|
@@ -1030,17 +1030,17 @@ const be = ot(class extends kt {
|
|
1030
1030
|
* Copyright 2020 Google LLC
|
1031
1031
|
* SPDX-License-Identifier: BSD-3-Clause
|
1032
1032
|
*/
|
1033
|
-
const
|
1034
|
-
class
|
1033
|
+
const Ht = () => new we();
|
1034
|
+
class we {
|
1035
1035
|
}
|
1036
1036
|
const Q = /* @__PURE__ */ new WeakMap(), jt = ot(class extends Mt {
|
1037
1037
|
render(r) {
|
1038
|
-
return
|
1038
|
+
return c;
|
1039
1039
|
}
|
1040
1040
|
update(r, [t]) {
|
1041
1041
|
var s;
|
1042
1042
|
const e = t !== this.G;
|
1043
|
-
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (s = r.options) == null ? void 0 : s.host, this.ot(this.lt = r.element)),
|
1043
|
+
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (s = r.options) == null ? void 0 : s.host, this.ot(this.lt = r.element)), c;
|
1044
1044
|
}
|
1045
1045
|
ot(r) {
|
1046
1046
|
if (typeof this.G == "function") {
|
@@ -1061,14 +1061,14 @@ const Q = /* @__PURE__ */ new WeakMap(), jt = ot(class extends Mt {
|
|
1061
1061
|
this.ot(this.lt);
|
1062
1062
|
}
|
1063
1063
|
});
|
1064
|
-
var
|
1064
|
+
var Ce = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, V = (r, t, e, s) => {
|
1065
1065
|
for (var i = s > 1 ? void 0 : s ? xe(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
1066
1066
|
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
|
1067
|
-
return s && i &&
|
1067
|
+
return s && i && Ce(t, e, i), i;
|
1068
1068
|
};
|
1069
1069
|
class E extends f {
|
1070
1070
|
constructor() {
|
1071
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef =
|
1071
|
+
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef = Ht();
|
1072
1072
|
}
|
1073
1073
|
async connectedCallback() {
|
1074
1074
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -1085,7 +1085,7 @@ class E extends f {
|
|
1085
1085
|
}
|
1086
1086
|
_applyBranding() {
|
1087
1087
|
var t;
|
1088
|
-
(t = this.application) != null && t.settings &&
|
1088
|
+
(t = this.application) != null && t.settings && Lt(this.application.settings.branding, this);
|
1089
1089
|
}
|
1090
1090
|
async _renderSymbol() {
|
1091
1091
|
var h, a, l;
|
@@ -1094,21 +1094,19 @@ class E extends f {
|
|
1094
1094
|
return b` <img src=${e} class="trigger-icon" alt="" /> `;
|
1095
1095
|
const s = (l = this.application) == null ? void 0 : l.triggerIcon;
|
1096
1096
|
if (!s)
|
1097
|
-
return
|
1098
|
-
const i = async (
|
1099
|
-
(u) => u[c]
|
1100
|
-
), { type: o, content: n } = s;
|
1097
|
+
return c;
|
1098
|
+
const i = async (d) => be, { type: o, content: n } = s;
|
1101
1099
|
switch (o) {
|
1102
1100
|
case "Telia": {
|
1103
|
-
const
|
1104
|
-
return
|
1101
|
+
const d = await i();
|
1102
|
+
return d ? b`<telia-icon
|
1105
1103
|
class="trigger-icon"
|
1106
|
-
svg=${
|
1104
|
+
svg=${d.svg}
|
1107
1105
|
size="lg"
|
1108
|
-
></telia-icon>` :
|
1106
|
+
></telia-icon>` : c;
|
1109
1107
|
}
|
1110
1108
|
default:
|
1111
|
-
return
|
1109
|
+
return c;
|
1112
1110
|
}
|
1113
1111
|
}
|
1114
1112
|
render() {
|
@@ -1127,10 +1125,10 @@ class E extends f {
|
|
1127
1125
|
>
|
1128
1126
|
${this.application.settings.branding.other.buttonLabelText}
|
1129
1127
|
</button>
|
1130
|
-
` :
|
1128
|
+
` : c}
|
1131
1129
|
|
1132
1130
|
<button
|
1133
|
-
class=${
|
1131
|
+
class=${Ae({
|
1134
1132
|
trigger: !0,
|
1135
1133
|
active: this.active,
|
1136
1134
|
rendered: this.loaded
|
@@ -1170,7 +1168,7 @@ class E extends f {
|
|
1170
1168
|
}
|
1171
1169
|
}
|
1172
1170
|
E.styles = [
|
1173
|
-
|
1171
|
+
x`
|
1174
1172
|
:host {
|
1175
1173
|
--voca-rem-multiplier: 0.625;
|
1176
1174
|
--trigger-label-bg: #f5e0ff;
|
@@ -1280,20 +1278,20 @@ V([
|
|
1280
1278
|
g({ attribute: !1 })
|
1281
1279
|
], E.prototype, "application", 2);
|
1282
1280
|
V([
|
1283
|
-
|
1281
|
+
H()
|
1284
1282
|
], E.prototype, "active", 2);
|
1285
1283
|
V([
|
1286
|
-
|
1284
|
+
H()
|
1287
1285
|
], E.prototype, "loaded", 2);
|
1288
1286
|
V([
|
1289
|
-
|
1287
|
+
H()
|
1290
1288
|
], E.prototype, "icon", 2);
|
1291
|
-
var
|
1292
|
-
for (var i = s > 1 ? void 0 : s ?
|
1289
|
+
var Ee = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, _ = (r, t, e, s) => {
|
1290
|
+
for (var i = s > 1 ? void 0 : s ? Se(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
1293
1291
|
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
|
1294
|
-
return s && i &&
|
1292
|
+
return s && i && Ee(t, e, i), i;
|
1295
1293
|
};
|
1296
|
-
const
|
1294
|
+
const Bt = (r) => {
|
1297
1295
|
class t extends r {
|
1298
1296
|
constructor() {
|
1299
1297
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -1319,7 +1317,7 @@ const Dt = (r) => {
|
|
1319
1317
|
}
|
1320
1318
|
return t.styles = [
|
1321
1319
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1322
|
-
|
1320
|
+
x`
|
1323
1321
|
:host {
|
1324
1322
|
font-family: var(--font-family);
|
1325
1323
|
grid-column: span var(--width);
|
@@ -1348,26 +1346,26 @@ const Dt = (r) => {
|
|
1348
1346
|
g({ attribute: !1 })
|
1349
1347
|
], t.prototype, "parent", 2), t;
|
1350
1348
|
};
|
1351
|
-
class
|
1349
|
+
class Dt extends Bt(f) {
|
1352
1350
|
render() {
|
1353
1351
|
return b`Non resolved component`;
|
1354
1352
|
}
|
1355
1353
|
}
|
1356
|
-
|
1357
|
-
|
1354
|
+
Dt.styles = [
|
1355
|
+
x`
|
1358
1356
|
:host {
|
1359
1357
|
display: block;
|
1360
1358
|
}
|
1361
1359
|
`
|
1362
1360
|
];
|
1363
|
-
var nt = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(nt || {}),
|
1364
|
-
for (var i = s > 1 ? void 0 : s ?
|
1361
|
+
var nt = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(nt || {}), Pe = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, Te = (r, t, e, s) => {
|
1362
|
+
for (var i = s > 1 ? void 0 : s ? Oe(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
1365
1363
|
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
|
1366
|
-
return s && i &&
|
1364
|
+
return s && i && Pe(t, e, i), i;
|
1367
1365
|
};
|
1368
1366
|
class at extends f {
|
1369
1367
|
constructor() {
|
1370
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1368
|
+
super(...arguments), this.nodes = [], this.wrapperRef = Ht();
|
1371
1369
|
}
|
1372
1370
|
addChild(t) {
|
1373
1371
|
t.parent = this, this.nodes.push(t);
|
@@ -1376,7 +1374,7 @@ class at extends f {
|
|
1376
1374
|
if (!this.wrapperRef.value)
|
1377
1375
|
return;
|
1378
1376
|
const t = this.application.settings;
|
1379
|
-
t != null && t.branding &&
|
1377
|
+
t != null && t.branding && Lt(t.branding, this.wrapperRef.value);
|
1380
1378
|
}
|
1381
1379
|
applyStyles() {
|
1382
1380
|
if (!this.wrapperRef.value)
|
@@ -1395,7 +1393,7 @@ class at extends f {
|
|
1395
1393
|
</div>`;
|
1396
1394
|
}
|
1397
1395
|
}
|
1398
|
-
at.styles =
|
1396
|
+
at.styles = x`
|
1399
1397
|
:host {
|
1400
1398
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1401
1399
|
--spacing-xs: 0.2rem;
|
@@ -1493,13 +1491,13 @@ at.styles = C`
|
|
1493
1491
|
animation: slideDown 0.3s linear;
|
1494
1492
|
}
|
1495
1493
|
`;
|
1496
|
-
|
1494
|
+
Te([
|
1497
1495
|
g({ attribute: !1 })
|
1498
1496
|
], at.prototype, "application", 2);
|
1499
|
-
var
|
1500
|
-
for (var i = s > 1 ? void 0 : s ?
|
1497
|
+
var Ne = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, ht = (r, t, e, s) => {
|
1498
|
+
for (var i = s > 1 ? void 0 : s ? Ue(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
1501
1499
|
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
|
1502
|
-
return s && i &&
|
1500
|
+
return s && i && Ne(t, e, i), i;
|
1503
1501
|
};
|
1504
1502
|
class j extends f {
|
1505
1503
|
constructor() {
|
@@ -1525,7 +1523,7 @@ class j extends f {
|
|
1525
1523
|
}
|
1526
1524
|
render() {
|
1527
1525
|
if (!this.widget || this.status !== "activated")
|
1528
|
-
return
|
1526
|
+
return c;
|
1529
1527
|
if (this.widget.renderStrategy === nt.Trigger) {
|
1530
1528
|
const t = new E();
|
1531
1529
|
return t.application = this.widget, t;
|
@@ -1534,7 +1532,7 @@ class j extends f {
|
|
1534
1532
|
}
|
1535
1533
|
}
|
1536
1534
|
j.styles = [
|
1537
|
-
|
1535
|
+
x`
|
1538
1536
|
:host {
|
1539
1537
|
display: block;
|
1540
1538
|
}
|
@@ -1544,41 +1542,41 @@ ht([
|
|
1544
1542
|
g({ attribute: !0 })
|
1545
1543
|
], j.prototype, "name", 2);
|
1546
1544
|
ht([
|
1547
|
-
|
1545
|
+
H()
|
1548
1546
|
], j.prototype, "widget", 2);
|
1549
1547
|
ht([
|
1550
|
-
|
1548
|
+
H()
|
1551
1549
|
], j.prototype, "status", 2);
|
1552
1550
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", it);
|
1553
1551
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", E);
|
1554
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
1552
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Dt);
|
1555
1553
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", at);
|
1556
1554
|
customElements.get("ace-widget") || customElements.define("ace-widget", j);
|
1557
|
-
const
|
1555
|
+
const ke = (r) => {
|
1558
1556
|
const t = {};
|
1559
1557
|
return Object.keys(r).forEach((e) => {
|
1560
1558
|
e.indexOf("css-") > -1 && (t[e] = r[e]);
|
1561
1559
|
}), t;
|
1562
|
-
},
|
1563
|
-
const e =
|
1560
|
+
}, Re = (r, t) => {
|
1561
|
+
const e = ke(t);
|
1564
1562
|
Object.entries(e).forEach(([s, i]) => {
|
1565
1563
|
r.style.setProperty(s.replace("css-", ""), i);
|
1566
1564
|
});
|
1567
1565
|
};
|
1568
|
-
class
|
1566
|
+
class Me extends Bt(f) {
|
1569
1567
|
constructor() {
|
1570
1568
|
super(...arguments), this.nodes = [];
|
1571
1569
|
}
|
1572
1570
|
render() {
|
1573
1571
|
var t;
|
1574
|
-
return
|
1572
|
+
return Re(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
1575
1573
|
"--columns",
|
1576
1574
|
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
1577
1575
|
), b`${Ut(this.nodes, (e) => e)}`;
|
1578
1576
|
}
|
1579
1577
|
}
|
1580
|
-
|
1581
|
-
|
1578
|
+
Me.styles = [
|
1579
|
+
x`
|
1582
1580
|
:host {
|
1583
1581
|
height: 100%;
|
1584
1582
|
display: grid;
|
@@ -1591,6 +1589,6 @@ Re.styles = [
|
|
1591
1589
|
`
|
1592
1590
|
];
|
1593
1591
|
export {
|
1594
|
-
|
1595
|
-
|
1592
|
+
Me as Area,
|
1593
|
+
Me as default
|
1596
1594
|
};
|