@telia-ace/widget-components-area-flamingo 1.1.28-rc.0 → 1.1.28-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/{area-f93cd792.mjs → area-539bd3a4.mjs} +169 -128
- package/{area-a7a242d5.js → area-c9421dd2.js} +90 -50
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -51,10 +51,10 @@ const Ut = (r) => new ft(typeof r == "string" ? r : r + "", void 0, X), P = (r,
|
|
51
51
|
* Copyright 2017 Google LLC
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
53
53
|
*/
|
54
|
-
const { is:
|
54
|
+
const { is: kt, defineProperty: Nt, getOwnPropertyDescriptor: Mt, getOwnPropertyNames: Ht, getOwnPropertySymbols: Lt, getPrototypeOf: jt } = Object, y = globalThis, ot = y.trustedTypes, zt = ot ? ot.emptyScript : "", Y = y.reactiveElementPolyfillSupport, U = (r, t) => r, G = { 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:
|
@@ -79,9 +79,9 @@ const { is: Nt, defineProperty: kt, getOwnPropertyDescriptor: Mt, getOwnProperty
|
|
79
79
|
}
|
80
80
|
}
|
81
81
|
return e;
|
82
|
-
} }, tt = (r, t) => !
|
83
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
84
|
-
class
|
82
|
+
} }, tt = (r, t) => !kt(r, t), at = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: tt };
|
83
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), y.litPropertyMetadata ?? (y.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
84
|
+
class C extends HTMLElement {
|
85
85
|
static addInitializer(t) {
|
86
86
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
87
87
|
}
|
@@ -91,7 +91,7 @@ class E extends HTMLElement {
|
|
91
91
|
static createProperty(t, e = at) {
|
92
92
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
93
93
|
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
94
|
-
i !== void 0 &&
|
94
|
+
i !== void 0 && Nt(this.prototype, t, i);
|
95
95
|
}
|
96
96
|
}
|
97
97
|
static getPropertyDescriptor(t, e, s) {
|
@@ -292,15 +292,15 @@ class E extends HTMLElement {
|
|
292
292
|
firstUpdated(t) {
|
293
293
|
}
|
294
294
|
}
|
295
|
-
|
295
|
+
C.elementStyles = [], C.shadowRootOptions = { mode: "open" }, C[U("elementProperties")] = /* @__PURE__ */ new Map(), C[U("finalized")] = /* @__PURE__ */ new Map(), Y == null || Y({ ReactiveElement: C }), (y.reactiveElementVersions ?? (y.reactiveElementVersions = [])).push("2.0.1");
|
296
296
|
/**
|
297
297
|
* @license
|
298
298
|
* Copyright 2017 Google LLC
|
299
299
|
* SPDX-License-Identifier: BSD-3-Clause
|
300
300
|
*/
|
301
|
-
const R = globalThis, W = R.trustedTypes, ct = W ? W.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, $t = "$lit$", m = `lit$${(Math.random() + "").slice(9)}$`, mt = "?" + m,
|
302
|
-
\f\r]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
303
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g,
|
301
|
+
const R = globalThis, W = R.trustedTypes, ct = W ? W.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, $t = "$lit$", m = `lit$${(Math.random() + "").slice(9)}$`, mt = "?" + m, Bt = `<${mt}>`, x = document, N = () => x.createComment(""), M = (r) => r === null || typeof r != "object" && typeof r != "function", yt = Array.isArray, Dt = (r) => yt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", J = `[
|
302
|
+
\f\r]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, lt = /-->/g, ht = />/g, v = RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
|
303
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g, _t = /^(?:script|style|textarea|title)$/i, It = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), A = It(1), E = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), ut = /* @__PURE__ */ new WeakMap(), w = x.createTreeWalker(x, 129);
|
304
304
|
function vt(r, t) {
|
305
305
|
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
306
306
|
throw Error("invalid template strings array");
|
@@ -311,11 +311,11 @@ const Gt = (r, t) => {
|
|
311
311
|
let i, n = t === 2 ? "<svg>" : "", o = T;
|
312
312
|
for (let c = 0; c < e; c++) {
|
313
313
|
const a = r[c];
|
314
|
-
let d, p,
|
314
|
+
let d, p, l = -1, u = 0;
|
315
315
|
for (; u < a.length && (o.lastIndex = u, p = o.exec(a), p !== null); )
|
316
|
-
u = o.lastIndex, o === T ? p[1] === "!--" ? o =
|
316
|
+
u = o.lastIndex, o === T ? p[1] === "!--" ? o = lt : p[1] !== void 0 ? o = ht : p[2] !== void 0 ? (_t.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = v) : p[3] !== void 0 && (o = v) : o === v ? p[0] === ">" ? (o = i ?? T, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? v : p[3] === '"' ? pt : dt) : o === pt || o === dt ? o = v : o === lt || o === ht ? o = T : (o = v, i = void 0);
|
317
317
|
const $ = o === v && r[c + 1].startsWith("/>") ? " " : "";
|
318
|
-
n += o === T ? a +
|
318
|
+
n += o === T ? a + Bt : l >= 0 ? (s.push(d), a.slice(0, l) + $t + a.slice(l) + m + $) : a + m + (l === -2 ? c : $);
|
319
319
|
}
|
320
320
|
return [vt(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
321
321
|
};
|
@@ -325,47 +325,47 @@ class H {
|
|
325
325
|
this.parts = [];
|
326
326
|
let n = 0, o = 0;
|
327
327
|
const c = t.length - 1, a = this.parts, [d, p] = Gt(t, e);
|
328
|
-
if (this.el = H.createElement(d, s),
|
329
|
-
const
|
330
|
-
|
328
|
+
if (this.el = H.createElement(d, s), w.currentNode = this.el.content, e === 2) {
|
329
|
+
const l = this.el.content.firstChild;
|
330
|
+
l.replaceWith(...l.childNodes);
|
331
331
|
}
|
332
|
-
for (; (i =
|
332
|
+
for (; (i = w.nextNode()) !== null && a.length < c; ) {
|
333
333
|
if (i.nodeType === 1) {
|
334
334
|
if (i.hasAttributes())
|
335
|
-
for (const
|
336
|
-
if (
|
337
|
-
const u = p[o++], $ = i.getAttribute(
|
338
|
-
a.push({ type: 1, index: n, name:
|
335
|
+
for (const l of i.getAttributeNames())
|
336
|
+
if (l.endsWith($t)) {
|
337
|
+
const u = p[o++], $ = i.getAttribute(l).split(m), B = /([.?@])?(.*)/.exec(u);
|
338
|
+
a.push({ type: 1, index: n, name: B[2], strings: $, ctor: B[1] === "." ? Vt : B[1] === "?" ? qt : B[1] === "@" ? Yt : q }), i.removeAttribute(l);
|
339
339
|
} else
|
340
|
-
|
341
|
-
if (
|
342
|
-
const
|
340
|
+
l.startsWith(m) && (a.push({ type: 6, index: n }), i.removeAttribute(l));
|
341
|
+
if (_t.test(i.tagName)) {
|
342
|
+
const l = i.textContent.split(m), u = l.length - 1;
|
343
343
|
if (u > 0) {
|
344
344
|
i.textContent = W ? W.emptyScript : "";
|
345
345
|
for (let $ = 0; $ < u; $++)
|
346
|
-
i.append(
|
347
|
-
i.append(
|
346
|
+
i.append(l[$], N()), w.nextNode(), a.push({ type: 2, index: ++n });
|
347
|
+
i.append(l[u], N());
|
348
348
|
}
|
349
349
|
}
|
350
350
|
} else if (i.nodeType === 8)
|
351
351
|
if (i.data === mt)
|
352
352
|
a.push({ type: 2, index: n });
|
353
353
|
else {
|
354
|
-
let
|
355
|
-
for (; (
|
356
|
-
a.push({ type: 7, index: n }),
|
354
|
+
let l = -1;
|
355
|
+
for (; (l = i.data.indexOf(m, l + 1)) !== -1; )
|
356
|
+
a.push({ type: 7, index: n }), l += m.length - 1;
|
357
357
|
}
|
358
358
|
n++;
|
359
359
|
}
|
360
360
|
}
|
361
361
|
static createElement(t, e) {
|
362
|
-
const s =
|
362
|
+
const s = x.createElement("template");
|
363
363
|
return s.innerHTML = t, s;
|
364
364
|
}
|
365
365
|
}
|
366
366
|
function S(r, t, e = r, s) {
|
367
367
|
var o, c;
|
368
|
-
if (t ===
|
368
|
+
if (t === E)
|
369
369
|
return t;
|
370
370
|
let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
371
371
|
const n = M(t) ? void 0 : t._$litDirective$;
|
@@ -382,17 +382,17 @@ class Wt {
|
|
382
382
|
return this._$AM._$AU;
|
383
383
|
}
|
384
384
|
u(t) {
|
385
|
-
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ??
|
386
|
-
|
387
|
-
let n =
|
385
|
+
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? x).importNode(e, !0);
|
386
|
+
w.currentNode = i;
|
387
|
+
let n = w.nextNode(), o = 0, c = 0, a = s[0];
|
388
388
|
for (; a !== void 0; ) {
|
389
389
|
if (o === a.index) {
|
390
390
|
let d;
|
391
391
|
a.type === 2 ? d = new L(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new Jt(n, this, t)), this._$AV.push(d), a = s[++c];
|
392
392
|
}
|
393
|
-
o !== (a == null ? void 0 : a.index) && (n =
|
393
|
+
o !== (a == null ? void 0 : a.index) && (n = w.nextNode(), o++);
|
394
394
|
}
|
395
|
-
return
|
395
|
+
return w.currentNode = x, i;
|
396
396
|
}
|
397
397
|
p(t) {
|
398
398
|
let e = 0;
|
@@ -406,7 +406,7 @@ class L {
|
|
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 = h, 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 L {
|
|
420
420
|
return this._$AB;
|
421
421
|
}
|
422
422
|
_$AI(t, e = this) {
|
423
|
-
t = S(this, t, e), M(t) ? t ===
|
423
|
+
t = S(this, t, e), M(t) ? t === h || t == null || t === "" ? (this._$AH !== h && this._$AR(), this._$AH = h) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Dt(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 L {
|
|
429
429
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
430
430
|
}
|
431
431
|
_(t) {
|
432
|
-
this._$AH !==
|
432
|
+
this._$AH !== h && M(this._$AH) ? this._$AA.nextSibling.data = t : this.$(x.createTextNode(t)), this._$AH = t;
|
433
433
|
}
|
434
434
|
g(t) {
|
435
435
|
var n;
|
@@ -446,11 +446,11 @@ class L {
|
|
446
446
|
return e === void 0 && ut.set(t.strings, e = new H(t)), e;
|
447
447
|
}
|
448
448
|
T(t) {
|
449
|
-
|
449
|
+
yt(this._$AH) || (this._$AH = [], this._$AR());
|
450
450
|
const e = this._$AH;
|
451
451
|
let s, i = 0;
|
452
452
|
for (const n of t)
|
453
|
-
i === e.length ? e.push(s = new L(this.k(
|
453
|
+
i === e.length ? e.push(s = new L(this.k(N()), this.k(N()), this, this.options)) : s = e[i], s._$AI(n), 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 q {
|
|
473
473
|
return this._$AM._$AU;
|
474
474
|
}
|
475
475
|
constructor(t, e, s, i, n) {
|
476
|
-
this.type = 1, this._$AH =
|
476
|
+
this.type = 1, this._$AH = h, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = h;
|
477
477
|
}
|
478
478
|
_$AI(t, e = this, s, i) {
|
479
479
|
const n = this.strings;
|
480
480
|
let o = !1;
|
481
481
|
if (n === void 0)
|
482
|
-
t = S(this, t, e, 0), o = !M(t) || t !== this._$AH && t !==
|
482
|
+
t = S(this, t, e, 0), o = !M(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
|
483
483
|
else {
|
484
484
|
const c = t;
|
485
485
|
let a, d;
|
486
486
|
for (t = n[0], a = 0; a < n.length - 1; a++)
|
487
|
-
d = S(this, c[s + a], e, a), d ===
|
487
|
+
d = S(this, c[s + a], e, a), d === E && (d = this._$AH[a]), o || (o = !M(d) || d !== this._$AH[a]), d === h ? t = h : t !== h && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
|
488
488
|
}
|
489
489
|
o && !i && this.O(t);
|
490
490
|
}
|
491
491
|
O(t) {
|
492
|
-
t ===
|
492
|
+
t === h ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
493
|
}
|
494
494
|
}
|
495
495
|
class Vt extends q {
|
@@ -497,7 +497,7 @@ class Vt extends q {
|
|
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 === h ? void 0 : t;
|
501
501
|
}
|
502
502
|
}
|
503
503
|
class qt extends q {
|
@@ -505,7 +505,7 @@ class qt extends q {
|
|
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 !== h);
|
509
509
|
}
|
510
510
|
}
|
511
511
|
class Yt extends q {
|
@@ -513,9 +513,9 @@ class Yt extends q {
|
|
513
513
|
super(t, e, s, i, n), this.type = 5;
|
514
514
|
}
|
515
515
|
_$AI(t, e = this) {
|
516
|
-
if ((t = S(this, t, e, 0) ??
|
516
|
+
if ((t = S(this, t, e, 0) ?? h) === E)
|
517
517
|
return;
|
518
|
-
const s = this._$AH, i = t ===
|
518
|
+
const s = this._$AH, i = t === h && s !== h || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== h && (s === h || i);
|
519
519
|
i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
520
520
|
}
|
521
521
|
handleEvent(t) {
|
@@ -541,7 +541,7 @@ const Kt = (r, t, e) => {
|
|
541
541
|
let i = s._$litPart$;
|
542
542
|
if (i === void 0) {
|
543
543
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
544
|
-
s._$litPart$ = i = new L(t.insertBefore(
|
544
|
+
s._$litPart$ = i = new L(t.insertBefore(N(), n), n, void 0, e ?? {});
|
545
545
|
}
|
546
546
|
return i._$AI(r), i;
|
547
547
|
};
|
@@ -550,7 +550,7 @@ const Kt = (r, t, e) => {
|
|
550
550
|
* Copyright 2017 Google LLC
|
551
551
|
* SPDX-License-Identifier: BSD-3-Clause
|
552
552
|
*/
|
553
|
-
let f = class extends
|
553
|
+
let f = class extends C {
|
554
554
|
constructor() {
|
555
555
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
556
556
|
}
|
@@ -572,7 +572,7 @@ let f = class extends E {
|
|
572
572
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
573
573
|
}
|
574
574
|
render() {
|
575
|
-
return
|
575
|
+
return E;
|
576
576
|
}
|
577
577
|
};
|
578
578
|
var gt;
|
@@ -683,21 +683,21 @@ const Qt = wt(class extends xt {
|
|
683
683
|
const o = !!t[n];
|
684
684
|
o === this.it.has(n) || (i = this.st) != null && i.has(n) || (o ? (e.add(n), this.it.add(n)) : (e.remove(n), this.it.delete(n)));
|
685
685
|
}
|
686
|
-
return
|
686
|
+
return E;
|
687
687
|
}
|
688
|
-
}),
|
688
|
+
}), D = (r, t, e) => {
|
689
689
|
r && e.style.setProperty(t, r);
|
690
690
|
}, Et = (r, t) => {
|
691
691
|
var e, s, i, n;
|
692
|
-
|
692
|
+
D((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), D(
|
693
693
|
(s = r.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
694
694
|
"--text-on-primary-background",
|
695
695
|
t
|
696
|
-
),
|
696
|
+
), D(
|
697
697
|
(i = r.colors) == null ? void 0 : i.secondaryBackground,
|
698
698
|
"--secondary-background",
|
699
699
|
t
|
700
|
-
),
|
700
|
+
), D(
|
701
701
|
(n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
702
702
|
"--text-on-secondary-background",
|
703
703
|
t
|
@@ -714,13 +714,13 @@ const Xt = (r) => r.strings === void 0;
|
|
714
714
|
* Copyright 2017 Google LLC
|
715
715
|
* SPDX-License-Identifier: BSD-3-Clause
|
716
716
|
*/
|
717
|
-
const
|
717
|
+
const k = (r, t) => {
|
718
718
|
var s;
|
719
719
|
const e = r._$AN;
|
720
720
|
if (e === void 0)
|
721
721
|
return !1;
|
722
722
|
for (const i of e)
|
723
|
-
(s = i._$AO) == null || s.call(i, t, !1),
|
723
|
+
(s = i._$AO) == null || s.call(i, t, !1), k(i, t);
|
724
724
|
return !0;
|
725
725
|
}, V = (r) => {
|
726
726
|
let t, e;
|
@@ -748,11 +748,11 @@ function ee(r, t = !1, e = 0) {
|
|
748
748
|
if (t)
|
749
749
|
if (Array.isArray(s))
|
750
750
|
for (let n = e; n < s.length; n++)
|
751
|
-
|
751
|
+
k(s[n], !1), V(s[n]);
|
752
752
|
else
|
753
|
-
s != null && (
|
753
|
+
s != null && (k(s, !1), V(s));
|
754
754
|
else
|
755
|
-
|
755
|
+
k(this, r);
|
756
756
|
}
|
757
757
|
const se = (r) => {
|
758
758
|
r.type == At.CHILD && (r._$AP ?? (r._$AP = ee), r._$AQ ?? (r._$AQ = te));
|
@@ -766,7 +766,7 @@ class ie extends xt {
|
|
766
766
|
}
|
767
767
|
_$AO(t, e = !0) {
|
768
768
|
var s, i;
|
769
|
-
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), e && (
|
769
|
+
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), e && (k(this, t), V(this));
|
770
770
|
}
|
771
771
|
setValue(t) {
|
772
772
|
if (Xt(this._$Ct))
|
@@ -791,12 +791,12 @@ class re {
|
|
791
791
|
}
|
792
792
|
const F = /* @__PURE__ */ new WeakMap(), Pt = wt(class extends ie {
|
793
793
|
render(r) {
|
794
|
-
return
|
794
|
+
return h;
|
795
795
|
}
|
796
796
|
update(r, [t]) {
|
797
797
|
var s;
|
798
798
|
const e = t !== this.G;
|
799
|
-
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)),
|
799
|
+
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)), h;
|
800
800
|
}
|
801
801
|
ot(r) {
|
802
802
|
if (typeof this.G == "function") {
|
@@ -822,7 +822,7 @@ var ne = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, j = (r, t,
|
|
822
822
|
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
823
823
|
return s && i && ne(t, e, i), i;
|
824
824
|
};
|
825
|
-
class
|
825
|
+
class _ extends f {
|
826
826
|
constructor() {
|
827
827
|
super(...arguments), this.active = !1, this.loaded = !1, this.offset = 0, this.buttonRef = St();
|
828
828
|
}
|
@@ -847,84 +847,103 @@ class y extends f {
|
|
847
847
|
var c, a, d;
|
848
848
|
const t = (c = this.application) == null ? void 0 : c.branding(), e = (a = t == null ? void 0 : t.graphics) == null ? void 0 : a.trigger;
|
849
849
|
if (e)
|
850
|
-
return
|
850
|
+
return A` <img src=${e} class="trigger-icon" alt="" /> `;
|
851
851
|
const s = (d = this.application) == null ? void 0 : d.triggerIcon;
|
852
852
|
if (!s)
|
853
|
-
return
|
853
|
+
return h;
|
854
854
|
const i = async (p) => await import("./index-5087564d.mjs").then(
|
855
855
|
(u) => u[p]
|
856
856
|
), { type: n, content: o } = s;
|
857
857
|
switch (n) {
|
858
858
|
case "Telia": {
|
859
859
|
const p = await i(o);
|
860
|
-
return p ?
|
860
|
+
return p ? A`<telia-icon
|
861
861
|
class="trigger-icon"
|
862
862
|
svg=${p.svg}
|
863
863
|
size="lg"
|
864
|
-
></telia-icon>` :
|
864
|
+
></telia-icon>` : h;
|
865
865
|
}
|
866
866
|
default:
|
867
|
-
return
|
867
|
+
return h;
|
868
868
|
}
|
869
869
|
}
|
870
870
|
setOffset(t) {
|
871
871
|
this.offset = t;
|
872
872
|
}
|
873
873
|
render() {
|
874
|
-
|
875
|
-
|
874
|
+
var t, e, s, i;
|
875
|
+
return A`<div class="trigger-container">
|
876
|
+
${(i = (s = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : s.other) != null && i.showButtonLabel ? A`
|
877
|
+
<button class="trigger-label" @click=${this._toggleActive}>
|
878
|
+
${this.application.settings.branding.other.buttonLabelText}
|
879
|
+
</button>
|
880
|
+
` : h}
|
881
|
+
|
882
|
+
<button
|
883
|
+
class=${Qt({
|
876
884
|
trigger: !0,
|
877
885
|
active: this.active,
|
878
886
|
rendered: this.loaded
|
879
887
|
})}
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
fill="none"
|
890
|
-
xmlns="http://www.w3.org/2000/svg"
|
891
|
-
>
|
892
|
-
<path
|
893
|
-
d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z"
|
894
|
-
fill="white"
|
895
|
-
/>
|
896
|
-
</svg>
|
897
|
-
</span>
|
898
|
-
<span class="trigger-loader">
|
899
|
-
<svg viewBox="25 25 50 50">
|
900
|
-
<circle
|
901
|
-
cx="50"
|
902
|
-
cy="50"
|
903
|
-
r="20"
|
888
|
+
@click=${this._toggleActive}
|
889
|
+
${Pt(this.buttonRef)}
|
890
|
+
>
|
891
|
+
${this.icon}
|
892
|
+
<span class="trigger-close">
|
893
|
+
<svg
|
894
|
+
width="18"
|
895
|
+
height="9"
|
896
|
+
viewBox="0 0 18 9"
|
904
897
|
fill="none"
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
898
|
+
xmlns="http://www.w3.org/2000/svg"
|
899
|
+
>
|
900
|
+
<path
|
901
|
+
d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z"
|
902
|
+
fill="white"
|
903
|
+
/>
|
904
|
+
</svg>
|
905
|
+
</span>
|
906
|
+
<span class="trigger-loader">
|
907
|
+
<svg viewBox="25 25 50 50">
|
908
|
+
<circle
|
909
|
+
cx="50"
|
910
|
+
cy="50"
|
911
|
+
r="20"
|
912
|
+
fill="none"
|
913
|
+
stroke="#000"
|
914
|
+
stroke-width="2"
|
915
|
+
stroke-miterlimit="10"
|
916
|
+
/>
|
917
|
+
</svg>
|
918
|
+
</span>
|
919
|
+
</button>
|
920
|
+
</div>`;
|
912
921
|
}
|
913
922
|
}
|
914
|
-
|
923
|
+
_.styles = [
|
915
924
|
P`
|
916
925
|
:host {
|
917
926
|
--voca-rem-multiplier: 0.625;
|
927
|
+
--trigger-label-bg: #f5e0ff;
|
928
|
+
--trigger-label-text-color: rgba(0, 0, 0, 0.8);
|
918
929
|
display: block;
|
919
930
|
box-sizing: border-box;
|
931
|
+
/* font-family: var(--font-family); */
|
932
|
+
font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
920
933
|
}
|
921
934
|
|
922
|
-
.trigger {
|
935
|
+
.trigger-container {
|
923
936
|
position: fixed;
|
924
|
-
transform: scale(0);
|
925
|
-
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
926
937
|
bottom: 20px;
|
927
938
|
right: 20px;
|
939
|
+
display: flex;
|
940
|
+
align-items: center;
|
941
|
+
gap: 1rem;
|
942
|
+
}
|
943
|
+
|
944
|
+
.trigger {
|
945
|
+
transform: scale(0);
|
946
|
+
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
928
947
|
z-index: 5;
|
929
948
|
display: flex;
|
930
949
|
align-items: center;
|
@@ -984,23 +1003,45 @@ y.styles = [
|
|
984
1003
|
img {
|
985
1004
|
max-width: 100%;
|
986
1005
|
}
|
1006
|
+
|
1007
|
+
.trigger-label {
|
1008
|
+
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
|
1009
|
+
background-color: var(--trigger-label-bg);
|
1010
|
+
color: var(--trigger-label-text-color);
|
1011
|
+
white-space: nowrap;
|
1012
|
+
padding: 0.7rem 1rem;
|
1013
|
+
border-radius: 0.3rem;
|
1014
|
+
font-weight: 500;
|
1015
|
+
display: flex;
|
1016
|
+
justify-content: center;
|
1017
|
+
align-items: center;
|
1018
|
+
cursor: pointer;
|
1019
|
+
border: none;
|
1020
|
+
font-size: 1rem;
|
1021
|
+
font-family: inherit;
|
1022
|
+
transition: all 300ms ease-in-out;
|
1023
|
+
}
|
1024
|
+
|
1025
|
+
.trigger-label:hover {
|
1026
|
+
opacity: 0.8;
|
1027
|
+
}
|
987
1028
|
`
|
988
1029
|
];
|
989
1030
|
j([
|
990
1031
|
g({ attribute: !1 })
|
991
|
-
],
|
1032
|
+
], _.prototype, "application", 2);
|
992
1033
|
j([
|
993
1034
|
O()
|
994
|
-
],
|
1035
|
+
], _.prototype, "active", 2);
|
995
1036
|
j([
|
996
1037
|
O()
|
997
|
-
],
|
1038
|
+
], _.prototype, "loaded", 2);
|
998
1039
|
j([
|
999
1040
|
O()
|
1000
|
-
],
|
1041
|
+
], _.prototype, "icon", 2);
|
1001
1042
|
j([
|
1002
1043
|
O()
|
1003
|
-
],
|
1044
|
+
], _.prototype, "offset", 2);
|
1004
1045
|
var ae = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, b = (r, t, e, s) => {
|
1005
1046
|
for (var i = s > 1 ? void 0 : s ? ce(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1006
1047
|
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
@@ -1063,7 +1104,7 @@ const Ot = (r) => {
|
|
1063
1104
|
};
|
1064
1105
|
class Tt extends Ot(f) {
|
1065
1106
|
render() {
|
1066
|
-
return
|
1107
|
+
return A`Non resolved component`;
|
1067
1108
|
}
|
1068
1109
|
}
|
1069
1110
|
Tt.styles = [
|
@@ -1073,10 +1114,10 @@ Tt.styles = [
|
|
1073
1114
|
}
|
1074
1115
|
`
|
1075
1116
|
];
|
1076
|
-
var et = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(et || {}),
|
1077
|
-
for (var i = s > 1 ? void 0 : s ?
|
1117
|
+
var et = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(et || {}), le = Object.defineProperty, he = Object.getOwnPropertyDescriptor, de = (r, t, e, s) => {
|
1118
|
+
for (var i = s > 1 ? void 0 : s ? he(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1078
1119
|
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
1079
|
-
return s && i &&
|
1120
|
+
return s && i && le(t, e, i), i;
|
1080
1121
|
};
|
1081
1122
|
class st extends f {
|
1082
1123
|
constructor() {
|
@@ -1103,7 +1144,7 @@ class st extends f {
|
|
1103
1144
|
this.applyBranding(), this.applyStyles();
|
1104
1145
|
}
|
1105
1146
|
render() {
|
1106
|
-
return this.application.renderStrategy === et.Trigger && this.renderRoot.host.classList.add("floating"),
|
1147
|
+
return this.application.renderStrategy === et.Trigger && this.renderRoot.host.classList.add("floating"), A`<div class="widget-container" ${Pt(this.wrapperRef)}>
|
1107
1148
|
${bt(this.nodes, (t) => t)}
|
1108
1149
|
</div>`;
|
1109
1150
|
}
|
@@ -1208,7 +1249,7 @@ var pe = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, it = (r, t
|
|
1208
1249
|
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
1209
1250
|
return s && i && pe(t, e, i), i;
|
1210
1251
|
};
|
1211
|
-
class
|
1252
|
+
class z extends f {
|
1212
1253
|
constructor() {
|
1213
1254
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
1214
1255
|
}
|
@@ -1232,15 +1273,15 @@ class D extends f {
|
|
1232
1273
|
}
|
1233
1274
|
render() {
|
1234
1275
|
if (!this.widget || this.status !== "activated")
|
1235
|
-
return
|
1276
|
+
return h;
|
1236
1277
|
if (this.widget.renderStrategy === et.Trigger) {
|
1237
|
-
const t = new
|
1278
|
+
const t = new _();
|
1238
1279
|
return t.application = this.widget, t;
|
1239
1280
|
}
|
1240
1281
|
return this.widget.render();
|
1241
1282
|
}
|
1242
1283
|
}
|
1243
|
-
|
1284
|
+
z.styles = [
|
1244
1285
|
P`
|
1245
1286
|
:host {
|
1246
1287
|
display: block;
|
@@ -1249,17 +1290,17 @@ D.styles = [
|
|
1249
1290
|
];
|
1250
1291
|
it([
|
1251
1292
|
g({ attribute: !0 })
|
1252
|
-
],
|
1293
|
+
], z.prototype, "name", 2);
|
1253
1294
|
it([
|
1254
1295
|
O()
|
1255
|
-
],
|
1296
|
+
], z.prototype, "widget", 2);
|
1256
1297
|
it([
|
1257
1298
|
O()
|
1258
|
-
],
|
1259
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
1299
|
+
], z.prototype, "status", 2);
|
1300
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", _);
|
1260
1301
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Tt);
|
1261
1302
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", st);
|
1262
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
1303
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", z);
|
1263
1304
|
const ge = (r) => {
|
1264
1305
|
const t = {};
|
1265
1306
|
return Object.keys(r).forEach((e) => {
|
@@ -1280,7 +1321,7 @@ class $e extends Ot(f) {
|
|
1280
1321
|
return fe(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
1281
1322
|
"--columns",
|
1282
1323
|
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
1283
|
-
),
|
1324
|
+
), A`${bt(this.nodes, (e) => e)}`;
|
1284
1325
|
}
|
1285
1326
|
}
|
1286
1327
|
$e.styles = [
|
@@ -2,21 +2,21 @@
|
|
2
2
|
* @license
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
-
*/const I=globalThis,Q=I.ShadowRoot&&(I.ShadyCSS===void 0||I.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X=Symbol(),nt=new WeakMap;let $t=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==X)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Q&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=nt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&nt.set(e,t))}return t}toString(){return this.cssText}};const Rt=r=>new $t(typeof r=="string"?r:r+"",void 0,X),P=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((s,i,n)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[n+1],r[0]);return new $t(e,r,X)},
|
5
|
+
*/const I=globalThis,Q=I.ShadowRoot&&(I.ShadyCSS===void 0||I.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X=Symbol(),nt=new WeakMap;let $t=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==X)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Q&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=nt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&nt.set(e,t))}return t}toString(){return this.cssText}};const Rt=r=>new $t(typeof r=="string"?r:r+"",void 0,X),P=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((s,i,n)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[n+1],r[0]);return new $t(e,r,X)},kt=(r,t)=>{if(Q)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=I.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},ot=Q?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Rt(e)})(r):r;/**
|
6
6
|
* @license
|
7
7
|
* Copyright 2017 Google LLC
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
9
|
-
*/const{is:
|
9
|
+
*/const{is:Nt,defineProperty:Mt,getOwnPropertyDescriptor:Ht,getOwnPropertyNames:Lt,getOwnPropertySymbols:jt,getPrototypeOf:zt}=Object,y=globalThis,at=y.trustedTypes,Bt=at?at.emptyScript:"",Y=y.reactiveElementPolyfillSupport,U=(r,t)=>r,G={toAttribute(r,t){switch(t){case Boolean:r=r?Bt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},tt=(r,t)=>!Nt(r,t),ct={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:tt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),y.litPropertyMetadata??(y.litPropertyMetadata=new WeakMap);class C extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ct){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Mt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=Ht(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return i==null?void 0:i.call(this)},set(o){const c=i==null?void 0:i.call(this);n.call(this,o),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ct}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;const t=zt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(U("properties"))){const e=this.properties,s=[...Lt(e),...jt(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(ot(i))}else t!==void 0&&e.push(ot(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$ES)==null||e.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return kt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e){var n;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:G).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var n;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const o=s.getPropertyOptions(i),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:G;this._$Em=i,this[i]=c.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s,i=!1,n){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??tt)(i?n:this[t],e))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,o]of i)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$ES)==null||s.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)}),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EO(e,this[e]))),this._$ET()}updated(t){}firstUpdated(t){}}C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[U("elementProperties")]=new Map,C[U("finalized")]=new Map,Y==null||Y({ReactiveElement:C}),(y.reactiveElementVersions??(y.reactiveElementVersions=[])).push("2.0.1");/**
|
10
10
|
* @license
|
11
11
|
* Copyright 2017 Google LLC
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
13
|
-
*/const R=globalThis,W=R.trustedTypes,
|
14
|
-
\f\r]`,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),pt=/'/g,ut=/"/g,vt=/^(?:script|style|textarea|title)$/i,Gt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),
|
13
|
+
*/const R=globalThis,W=R.trustedTypes,lt=W?W.createPolicy("lit-html",{createHTML:r=>r}):void 0,mt="$lit$",m=`lit$${(Math.random()+"").slice(9)}$`,yt="?"+m,Dt=`<${yt}>`,x=document,N=()=>x.createComment(""),M=r=>r===null||typeof r!="object"&&typeof r!="function",_t=Array.isArray,It=r=>_t(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",J=`[
|
14
|
+
\f\r]`,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ht=/-->/g,dt=/>/g,v=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),pt=/'/g,ut=/"/g,vt=/^(?:script|style|textarea|title)$/i,Gt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),A=Gt(1),E=Symbol.for("lit-noChange"),h=Symbol.for("lit-nothing"),gt=new WeakMap,w=x.createTreeWalker(x,129);function bt(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return lt!==void 0?lt.createHTML(t):t}const Wt=(r,t)=>{const e=r.length-1,s=[];let i,n=t===2?"<svg>":"",o=T;for(let c=0;c<e;c++){const a=r[c];let d,p,l=-1,u=0;for(;u<a.length&&(o.lastIndex=u,p=o.exec(a),p!==null);)u=o.lastIndex,o===T?p[1]==="!--"?o=ht:p[1]!==void 0?o=dt:p[2]!==void 0?(vt.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=v):p[3]!==void 0&&(o=v):o===v?p[0]===">"?(o=i??T,l=-1):p[1]===void 0?l=-2:(l=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?v:p[3]==='"'?ut:pt):o===ut||o===pt?o=v:o===ht||o===dt?o=T:(o=v,i=void 0);const $=o===v&&r[c+1].startsWith("/>")?" ":"";n+=o===T?a+Dt:l>=0?(s.push(d),a.slice(0,l)+mt+a.slice(l)+m+$):a+m+(l===-2?c:$)}return[bt(r,n+(r[e]||"<?>")+(t===2?"</svg>":"")),s]};class H{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const c=t.length-1,a=this.parts,[d,p]=Wt(t,e);if(this.el=H.createElement(d,s),w.currentNode=this.el.content,e===2){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=w.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(mt)){const u=p[o++],$=i.getAttribute(l).split(m),B=/([.?@])?(.*)/.exec(u);a.push({type:1,index:n,name:B[2],strings:$,ctor:B[1]==="."?qt:B[1]==="?"?Yt:B[1]==="@"?Jt:q}),i.removeAttribute(l)}else l.startsWith(m)&&(a.push({type:6,index:n}),i.removeAttribute(l));if(vt.test(i.tagName)){const l=i.textContent.split(m),u=l.length-1;if(u>0){i.textContent=W?W.emptyScript:"";for(let $=0;$<u;$++)i.append(l[$],N()),w.nextNode(),a.push({type:2,index:++n});i.append(l[u],N())}}}else if(i.nodeType===8)if(i.data===yt)a.push({type:2,index:n});else{let l=-1;for(;(l=i.data.indexOf(m,l+1))!==-1;)a.push({type:7,index:n}),l+=m.length-1}n++}}static createElement(t,e){const s=x.createElement("template");return s.innerHTML=t,s}}function S(r,t,e=r,s){var o,c;if(t===E)return t;let i=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const n=M(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((c=i==null?void 0:i._$AO)==null||c.call(i,!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=S(r,i._$AS(r,t.values),i,s)),t}class Vt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=((t==null?void 0:t.creationScope)??x).importNode(e,!0);w.currentNode=i;let n=w.nextNode(),o=0,c=0,a=s[0];for(;a!==void 0;){if(o===a.index){let d;a.type===2?d=new L(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new Kt(n,this,t)),this._$AV.push(d),a=s[++c]}o!==(a==null?void 0:a.index)&&(n=w.nextNode(),o++)}return w.currentNode=x,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class L{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=h,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}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),M(t)?t===h||t==null||t===""?(this._$AH!==h&&this._$AR(),this._$AH=h):t!==this._$AH&&t!==E&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):It(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==h&&M(this._$AH)?this._$AA.nextSibling.data=t:this.$(x.createTextNode(t)),this._$AH=t}g(t){var n;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=H.createElement(bt(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{const o=new Vt(i,this),c=o.u(this.options);o.p(e),this.$(c),this._$AH=o}}_$AC(t){let e=gt.get(t.strings);return e===void 0&>.set(t.strings,e=new H(t)),e}T(t){_t(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new L(this.k(N()),this.k(N()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class q{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=h,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=h}_$AI(t,e=this,s,i){const n=this.strings;let o=!1;if(n===void 0)t=S(this,t,e,0),o=!M(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const c=t;let a,d;for(t=n[0],a=0;a<n.length-1;a++)d=S(this,c[s+a],e,a),d===E&&(d=this._$AH[a]),o||(o=!M(d)||d!==this._$AH[a]),d===h?t=h:t!==h&&(t+=(d??"")+n[a+1]),this._$AH[a]=d}o&&!i&&this.O(t)}O(t){t===h?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class qt extends q{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===h?void 0:t}}class Yt extends q{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==h)}}class Jt extends q{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??h)===E)return;const s=this._$AH,i=t===h&&s!==h||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==h&&(s===h||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Kt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}}const K=R.litHtmlPolyfillSupport;K==null||K(H,L),(R.litHtmlVersions??(R.litHtmlVersions=[])).push("3.0.2");const Zt=(r,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const n=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new L(t.insertBefore(N(),n),n,void 0,e??{})}return i._$AI(r),i};/**
|
16
16
|
* @license
|
17
17
|
* Copyright 2017 Google LLC
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
19
|
-
*/let f=class extends
|
19
|
+
*/let f=class extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Zt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return E}};var ft;f._$litElement$=!0,f.finalized=!0,(ft=globalThis.litElementHydrateSupport)==null||ft.call(globalThis,{LitElement:f});const Z=globalThis.litElementPolyfillSupport;Z==null||Z({LitElement:f});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
|
20
20
|
* @license
|
21
21
|
* Copyright 2021 Google LLC
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
@@ -36,7 +36,7 @@
|
|
36
36
|
* @license
|
37
37
|
* Copyright 2018 Google LLC
|
38
38
|
* SPDX-License-Identifier: BSD-3-Clause
|
39
|
-
*/const Xt=xt(class extends Et{constructor(r){var t;if(super(r),r.type!==wt.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var s,i;if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((s=this.st)!=null&&s.has(n))&&this.it.add(n);return this.render(t)}const e=r.element.classList;for(const n of this.it)n in t||(e.remove(n),this.it.delete(n));for(const n in t){const o=!!t[n];o===this.it.has(n)||(i=this.st)!=null&&i.has(n)||(o?(e.add(n),this.it.add(n)):(e.remove(n),this.it.delete(n)))}return
|
39
|
+
*/const Xt=xt(class extends Et{constructor(r){var t;if(super(r),r.type!==wt.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var s,i;if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((s=this.st)!=null&&s.has(n))&&this.it.add(n);return this.render(t)}const e=r.element.classList;for(const n of this.it)n in t||(e.remove(n),this.it.delete(n));for(const n in t){const o=!!t[n];o===this.it.has(n)||(i=this.st)!=null&&i.has(n)||(o?(e.add(n),this.it.add(n)):(e.remove(n),this.it.delete(n)))}return E}}),D=(r,t,e)=>{r&&e.style.setProperty(t,r)},Ct=(r,t)=>{var e,s,i,n;D((e=r.colors)==null?void 0:e.primaryBackground,"--primary-background",t),D((s=r.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),D((i=r.colors)==null?void 0:i.secondaryBackground,"--secondary-background",t),D((n=r.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t)};/**
|
40
40
|
* @license
|
41
41
|
* Copyright 2020 Google LLC
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
@@ -44,60 +44,78 @@
|
|
44
44
|
* @license
|
45
45
|
* Copyright 2017 Google LLC
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
47
|
-
*/const
|
47
|
+
*/const k=(r,t)=>{var s;const e=r._$AN;if(e===void 0)return!1;for(const i of e)(s=i._$AO)==null||s.call(i,t,!1),k(i,t);return!0},V=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while((e==null?void 0:e.size)===0)},St=r=>{for(let t;t=r._$AM;r=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(r))break;e.add(r),ie(t)}};function ee(r){this._$AN!==void 0?(V(this),this._$AM=r,St(this)):this._$AM=r}function se(r,t=!1,e=0){const s=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(s))for(let n=e;n<s.length;n++)k(s[n],!1),V(s[n]);else s!=null&&(k(s,!1),V(s));else k(this,r)}const ie=r=>{r.type==wt.CHILD&&(r._$AP??(r._$AP=se),r._$AQ??(r._$AQ=ee))};class re extends Et{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),St(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,i;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(i=this.disconnected)==null||i.call(this)),e&&(k(this,t),V(this))}setValue(t){if(te(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}/**
|
48
48
|
* @license
|
49
49
|
* Copyright 2020 Google LLC
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
51
|
-
*/const Pt=()=>new ne;class ne{}const F=new WeakMap,Ot=xt(class extends re{render(r){return
|
51
|
+
*/const Pt=()=>new ne;class ne{}const F=new WeakMap,Ot=xt(class extends re{render(r){return h}update(r,[t]){var s;const e=t!==this.G;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)),h}ot(r){if(typeof this.G=="function"){const t=this.ct??globalThis;let e=F.get(t);e===void 0&&(e=new WeakMap,F.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ct,void 0),e.set(this.G,r),r!==void 0&&this.G.call(this.ct,r)}else this.G.value=r}get rt(){var r,t;return typeof this.G=="function"?(r=F.get(this.ct??globalThis))==null?void 0:r.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var oe=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,j=(r,t,e,s)=>{for(var i=s>1?void 0:s?ae(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&oe(t,e,i),i};class _ extends f{constructor(){super(...arguments),this.active=!1,this.loaded=!1,this.offset=0,this.buttonRef=Pt()}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding(),this.offset>0&&this.buttonRef.value&&(this.buttonRef.value.style.right=`calc(${this.offset}px + 20px)`)}_toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?this.application.appendToDOM():this.application.hide()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&Ct(this.application.settings.branding,this)}async _renderSymbol(){var c,a,d;const t=(c=this.application)==null?void 0:c.branding(),e=(a=t==null?void 0:t.graphics)==null?void 0:a.trigger;if(e)return A` <img src=${e} class="trigger-icon" alt="" /> `;const s=(d=this.application)==null?void 0:d.triggerIcon;if(!s)return h;const i=async p=>await Promise.resolve().then(()=>require("./index-6dd00f59.js")).then(u=>u[p]),{type:n,content:o}=s;switch(n){case"Telia":{const p=await i(o);return p?A`<telia-icon
|
52
52
|
class="trigger-icon"
|
53
53
|
svg=${p.svg}
|
54
54
|
size="lg"
|
55
|
-
></telia-icon>`:
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
>
|
69
|
-
<
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
</svg>
|
74
|
-
</span>
|
75
|
-
<span class="trigger-loader">
|
76
|
-
<svg viewBox="25 25 50 50">
|
77
|
-
<circle
|
78
|
-
cx="50"
|
79
|
-
cy="50"
|
80
|
-
r="20"
|
55
|
+
></telia-icon>`:h}default:return h}}setOffset(t){this.offset=t}render(){var t,e,s,i;return A`<div class="trigger-container">
|
56
|
+
${(i=(s=(e=(t=this.application)==null?void 0:t.settings)==null?void 0:e.branding)==null?void 0:s.other)!=null&&i.showButtonLabel?A`
|
57
|
+
<button class="trigger-label" @click=${this._toggleActive}>
|
58
|
+
${this.application.settings.branding.other.buttonLabelText}
|
59
|
+
</button>
|
60
|
+
`:h}
|
61
|
+
|
62
|
+
<button
|
63
|
+
class=${Xt({trigger:!0,active:this.active,rendered:this.loaded})}
|
64
|
+
@click=${this._toggleActive}
|
65
|
+
${Ot(this.buttonRef)}
|
66
|
+
>
|
67
|
+
${this.icon}
|
68
|
+
<span class="trigger-close">
|
69
|
+
<svg
|
70
|
+
width="18"
|
71
|
+
height="9"
|
72
|
+
viewBox="0 0 18 9"
|
81
73
|
fill="none"
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
74
|
+
xmlns="http://www.w3.org/2000/svg"
|
75
|
+
>
|
76
|
+
<path
|
77
|
+
d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z"
|
78
|
+
fill="white"
|
79
|
+
/>
|
80
|
+
</svg>
|
81
|
+
</span>
|
82
|
+
<span class="trigger-loader">
|
83
|
+
<svg viewBox="25 25 50 50">
|
84
|
+
<circle
|
85
|
+
cx="50"
|
86
|
+
cy="50"
|
87
|
+
r="20"
|
88
|
+
fill="none"
|
89
|
+
stroke="#000"
|
90
|
+
stroke-width="2"
|
91
|
+
stroke-miterlimit="10"
|
92
|
+
/>
|
93
|
+
</svg>
|
94
|
+
</span>
|
95
|
+
</button>
|
96
|
+
</div>`}}_.styles=[P`
|
89
97
|
:host {
|
90
98
|
--voca-rem-multiplier: 0.625;
|
99
|
+
--trigger-label-bg: #f5e0ff;
|
100
|
+
--trigger-label-text-color: rgba(0, 0, 0, 0.8);
|
91
101
|
display: block;
|
92
102
|
box-sizing: border-box;
|
103
|
+
/* font-family: var(--font-family); */
|
104
|
+
font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
93
105
|
}
|
94
106
|
|
95
|
-
.trigger {
|
107
|
+
.trigger-container {
|
96
108
|
position: fixed;
|
97
|
-
transform: scale(0);
|
98
|
-
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
99
109
|
bottom: 20px;
|
100
110
|
right: 20px;
|
111
|
+
display: flex;
|
112
|
+
align-items: center;
|
113
|
+
gap: 1rem;
|
114
|
+
}
|
115
|
+
|
116
|
+
.trigger {
|
117
|
+
transform: scale(0);
|
118
|
+
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
101
119
|
z-index: 5;
|
102
120
|
display: flex;
|
103
121
|
align-items: center;
|
@@ -157,7 +175,29 @@
|
|
157
175
|
img {
|
158
176
|
max-width: 100%;
|
159
177
|
}
|
160
|
-
|
178
|
+
|
179
|
+
.trigger-label {
|
180
|
+
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
|
181
|
+
background-color: var(--trigger-label-bg);
|
182
|
+
color: var(--trigger-label-text-color);
|
183
|
+
white-space: nowrap;
|
184
|
+
padding: 0.7rem 1rem;
|
185
|
+
border-radius: 0.3rem;
|
186
|
+
font-weight: 500;
|
187
|
+
display: flex;
|
188
|
+
justify-content: center;
|
189
|
+
align-items: center;
|
190
|
+
cursor: pointer;
|
191
|
+
border: none;
|
192
|
+
font-size: 1rem;
|
193
|
+
font-family: inherit;
|
194
|
+
transition: all 300ms ease-in-out;
|
195
|
+
}
|
196
|
+
|
197
|
+
.trigger-label:hover {
|
198
|
+
opacity: 0.8;
|
199
|
+
}
|
200
|
+
`];j([g({attribute:!1})],_.prototype,"application",2);j([O()],_.prototype,"active",2);j([O()],_.prototype,"loaded",2);j([O()],_.prototype,"icon",2);j([O()],_.prototype,"offset",2);var ce=Object.defineProperty,le=Object.getOwnPropertyDescriptor,b=(r,t,e,s)=>{for(var i=s>1?void 0:s?le(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&ce(t,e,i),i};const Tt=r=>{class t extends r{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(s){this.properties=s}writeLayout(s){this.layout=s}writeContext(s){this.context=s}addChild(s){s.parent=this,this.nodes.push(s)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`)}}return t.styles=[P`
|
161
201
|
:host {
|
162
202
|
font-family: var(--font-family);
|
163
203
|
grid-column: span var(--width);
|
@@ -169,11 +209,11 @@
|
|
169
209
|
* {
|
170
210
|
box-sizing: border-box;
|
171
211
|
}
|
172
|
-
`],b([g()],t.prototype,"properties",2),b([g()],t.prototype,"context",2),b([g()],t.prototype,"layout",2),b([g()],t.prototype,"name",2),b([g()],t.prototype,"type",2),b([g({attribute:!1})],t.prototype,"application",2),b([g({attribute:!1})],t.prototype,"parent",2),t};class Ut extends Tt(f){render(){return
|
212
|
+
`],b([g()],t.prototype,"properties",2),b([g()],t.prototype,"context",2),b([g()],t.prototype,"layout",2),b([g()],t.prototype,"name",2),b([g()],t.prototype,"type",2),b([g({attribute:!1})],t.prototype,"application",2),b([g({attribute:!1})],t.prototype,"parent",2),t};class Ut extends Tt(f){render(){return A`Non resolved component`}}Ut.styles=[P`
|
173
213
|
:host {
|
174
214
|
display: block;
|
175
215
|
}
|
176
|
-
`];var et=(r=>(r.Inline="inline",r.Trigger="trigger",r))(et||{}),
|
216
|
+
`];var et=(r=>(r.Inline="inline",r.Trigger="trigger",r))(et||{}),he=Object.defineProperty,de=Object.getOwnPropertyDescriptor,pe=(r,t,e,s)=>{for(var i=s>1?void 0:s?de(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&he(t,e,i),i};class st extends f{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=Pt()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Ct(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([s,i])=>{e.style.setProperty(`--${s}`,i)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){return this.application.renderStrategy===et.Trigger&&this.renderRoot.host.classList.add("floating"),A`<div class="widget-container" ${Ot(this.wrapperRef)}>
|
177
217
|
${At(this.nodes,t=>t)}
|
178
218
|
</div>`}}st.styles=P`
|
179
219
|
:host {
|
@@ -266,11 +306,11 @@
|
|
266
306
|
opacity: 0;
|
267
307
|
animation: slideDown 0.3s linear;
|
268
308
|
}
|
269
|
-
`;pe([g({attribute:!1})],st.prototype,"application",2);var ue=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,it=(r,t,e,s)=>{for(var i=s>1?void 0:s?ge(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&ue(t,e,i),i};class
|
309
|
+
`;pe([g({attribute:!1})],st.prototype,"application",2);var ue=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,it=(r,t,e,s)=>{for(var i=s>1?void 0:s?ge(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&ue(t,e,i),i};class z extends f{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return h;if(this.widget.renderStrategy===et.Trigger){const t=new _;return t.application=this.widget,t}return this.widget.render()}}z.styles=[P`
|
270
310
|
:host {
|
271
311
|
display: block;
|
272
312
|
}
|
273
|
-
`];it([g({attribute:!0})],
|
313
|
+
`];it([g({attribute:!0})],z.prototype,"name",2);it([O()],z.prototype,"widget",2);it([O()],z.prototype,"status",2);customElements.get("ace-trigger")||customElements.define("ace-trigger",_);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Ut);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",st);customElements.get("ace-widget")||customElements.define("ace-widget",z);const fe=r=>{const t={};return Object.keys(r).forEach(e=>{e.indexOf("css-")>-1&&(t[e]=r[e])}),t},$e=(r,t)=>{const e=fe(t);Object.entries(e).forEach(([s,i])=>{r.style.setProperty(s.replace("css-",""),i)})};class rt extends Tt(f){constructor(){super(...arguments),this.nodes=[]}render(){var t;return $e(this.renderRoot.host,this.properties),this.renderRoot.host.style.setProperty("--columns",((t=this.properties.columns)==null?void 0:t.toString())||"1"),A`${At(this.nodes,e=>e)}`}}rt.styles=[P`
|
274
314
|
:host {
|
275
315
|
height: 100%;
|
276
316
|
display: grid;
|
package/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-
|
1
|
+
"use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-c9421dd2.js")))};module.exports=r;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "@telia-ace/widget-components-area-flamingo",
|
3
|
-
"version": "1.1.28-rc.
|
3
|
+
"version": "1.1.28-rc.1",
|
4
4
|
"dependencies": {
|
5
|
-
"@telia-ace/widget-core-flamingo": "1.1.28-rc.
|
5
|
+
"@telia-ace/widget-core-flamingo": "1.1.28-rc.1",
|
6
6
|
"lit": "^3.0.2"
|
7
7
|
},
|
8
8
|
"main": "./index.js",
|