@telia-ace/widget-components-area-flamingo 1.1.76-rc.24 → 1.1.76-rc.25
Sign up to get free protection for your applications and to get access to all the features.
- package/{area-6fcd33fb.mjs → area-15ee7b15.mjs} +57 -74
- package/{area-7ae856e7.js → area-a4eeb7c8.js} +13 -30
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -300,7 +300,7 @@ k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[M("elementProper
|
|
300
300
|
*/
|
301
301
|
const N = globalThis, K = N.trustedTypes, Ot = K ? K.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Gt = "$lit$", $ = `lit$${(Math.random() + "").slice(9)}$`, Xt = "?" + $, xe = `<${Xt}>`, E = document, H = () => E.createComment(""), I = (s) => s === null || typeof s != "object" && typeof s != "function", Jt = Array.isArray, Ce = (s) => Jt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", it = `[
|
302
302
|
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Tt = /-->/g, kt = />/g, A = RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^
|
303
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ut = /'/g, Rt = /"/g, Qt = /^(?:script|style|textarea|title)$/i, Se = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), C = Se(1), P = Symbol.for("lit-noChange"),
|
303
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ut = /'/g, Rt = /"/g, Qt = /^(?:script|style|textarea|title)$/i, Se = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), C = Se(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), S = E.createTreeWalker(E, 129);
|
304
304
|
function te(s, t) {
|
305
305
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
306
306
|
throw Error("invalid template strings array");
|
@@ -311,11 +311,11 @@ const Ee = (s, t) => {
|
|
311
311
|
let r, o = t === 2 ? "<svg>" : "", n = j;
|
312
312
|
for (let a = 0; a < e; a++) {
|
313
313
|
const c = s[a];
|
314
|
-
let h, l,
|
314
|
+
let h, l, p = -1, u = 0;
|
315
315
|
for (; u < c.length && (n.lastIndex = u, l = n.exec(c), l !== null); )
|
316
|
-
u = n.lastIndex, n === j ? l[1] === "!--" ? n = Tt : l[1] !== void 0 ? n = kt : l[2] !== void 0 ? (Qt.test(l[2]) && (r = RegExp("</" + l[2], "g")), n = A) : l[3] !== void 0 && (n = A) : n === A ? l[0] === ">" ? (n = r ?? j,
|
316
|
+
u = n.lastIndex, n === j ? l[1] === "!--" ? n = Tt : l[1] !== void 0 ? n = kt : l[2] !== void 0 ? (Qt.test(l[2]) && (r = RegExp("</" + l[2], "g")), n = A) : l[3] !== void 0 && (n = A) : n === A ? l[0] === ">" ? (n = r ?? j, p = -1) : l[1] === void 0 ? p = -2 : (p = n.lastIndex - l[2].length, h = l[1], n = l[3] === void 0 ? A : l[3] === '"' ? Rt : Ut) : n === Rt || n === Ut ? n = A : n === Tt || n === kt ? n = j : (n = A, r = void 0);
|
317
317
|
const f = n === A && s[a + 1].startsWith("/>") ? " " : "";
|
318
|
-
o += n === j ? c + xe :
|
318
|
+
o += n === j ? c + xe : p >= 0 ? (i.push(h), c.slice(0, p) + Gt + c.slice(p) + $ + f) : c + $ + (p === -2 ? a : f);
|
319
319
|
}
|
320
320
|
return [te(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
321
321
|
};
|
@@ -326,34 +326,34 @@ class D {
|
|
326
326
|
let o = 0, n = 0;
|
327
327
|
const a = t.length - 1, c = this.parts, [h, l] = Ee(t, e);
|
328
328
|
if (this.el = D.createElement(h, i), S.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 (; (r = S.nextNode()) !== null && c.length < a; ) {
|
333
333
|
if (r.nodeType === 1) {
|
334
334
|
if (r.hasAttributes())
|
335
|
-
for (const
|
336
|
-
if (
|
337
|
-
const u = l[n++], f = r.getAttribute(
|
338
|
-
c.push({ type: 1, index: o, name: T[2], strings: f, ctor: T[1] === "." ? Oe : T[1] === "?" ? Te : T[1] === "@" ? ke : Q }), r.removeAttribute(
|
335
|
+
for (const p of r.getAttributeNames())
|
336
|
+
if (p.endsWith(Gt)) {
|
337
|
+
const u = l[n++], f = r.getAttribute(p).split($), T = /([.?@])?(.*)/.exec(u);
|
338
|
+
c.push({ type: 1, index: o, name: T[2], strings: f, ctor: T[1] === "." ? Oe : T[1] === "?" ? Te : T[1] === "@" ? ke : Q }), r.removeAttribute(p);
|
339
339
|
} else
|
340
|
-
|
340
|
+
p.startsWith($) && (c.push({ type: 6, index: o }), r.removeAttribute(p));
|
341
341
|
if (Qt.test(r.tagName)) {
|
342
|
-
const
|
342
|
+
const p = r.textContent.split($), u = p.length - 1;
|
343
343
|
if (u > 0) {
|
344
344
|
r.textContent = K ? K.emptyScript : "";
|
345
345
|
for (let f = 0; f < u; f++)
|
346
|
-
r.append(
|
347
|
-
r.append(
|
346
|
+
r.append(p[f], H()), S.nextNode(), c.push({ type: 2, index: ++o });
|
347
|
+
r.append(p[u], H());
|
348
348
|
}
|
349
349
|
}
|
350
350
|
} else if (r.nodeType === 8)
|
351
351
|
if (r.data === Xt)
|
352
352
|
c.push({ type: 2, index: o });
|
353
353
|
else {
|
354
|
-
let
|
355
|
-
for (; (
|
356
|
-
c.push({ type: 7, index: o }),
|
354
|
+
let p = -1;
|
355
|
+
for (; (p = r.data.indexOf($, p + 1)) !== -1; )
|
356
|
+
c.push({ type: 7, index: o }), p += $.length - 1;
|
357
357
|
}
|
358
358
|
o++;
|
359
359
|
}
|
@@ -406,7 +406,7 @@ class B {
|
|
406
406
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
407
407
|
}
|
408
408
|
constructor(t, e, i, r) {
|
409
|
-
this.type = 2, this._$AH =
|
409
|
+
this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
410
410
|
}
|
411
411
|
get parentNode() {
|
412
412
|
let t = this._$AA.parentNode;
|
@@ -420,7 +420,7 @@ class B {
|
|
420
420
|
return this._$AB;
|
421
421
|
}
|
422
422
|
_$AI(t, e = this) {
|
423
|
-
t = U(this, t, e), I(t) ? t ===
|
423
|
+
t = U(this, t, e), I(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ce(t) ? this.k(t) : this._(t);
|
424
424
|
}
|
425
425
|
S(t) {
|
426
426
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -429,7 +429,7 @@ class B {
|
|
429
429
|
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
430
430
|
}
|
431
431
|
_(t) {
|
432
|
-
this._$AH !==
|
432
|
+
this._$AH !== d && I(this._$AH) ? this._$AA.nextSibling.data = t : this.T(E.createTextNode(t)), this._$AH = t;
|
433
433
|
}
|
434
434
|
$(t) {
|
435
435
|
var o;
|
@@ -473,7 +473,7 @@ class Q {
|
|
473
473
|
return this._$AM._$AU;
|
474
474
|
}
|
475
475
|
constructor(t, e, i, r, o) {
|
476
|
-
this.type = 1, this._$AH =
|
476
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = d;
|
477
477
|
}
|
478
478
|
_$AI(t, e = this, i, r) {
|
479
479
|
const o = this.strings;
|
@@ -484,12 +484,12 @@ class Q {
|
|
484
484
|
const a = t;
|
485
485
|
let c, h;
|
486
486
|
for (t = o[0], c = 0; c < o.length - 1; c++)
|
487
|
-
h = U(this, a[i + c], e, c), h === P && (h = this._$AH[c]), n || (n = !I(h) || h !== this._$AH[c]), h ===
|
487
|
+
h = U(this, a[i + c], e, c), h === P && (h = this._$AH[c]), n || (n = !I(h) || h !== this._$AH[c]), h === d ? t = d : t !== d && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
488
488
|
}
|
489
489
|
n && !r && this.j(t);
|
490
490
|
}
|
491
491
|
j(t) {
|
492
|
-
t ===
|
492
|
+
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
493
|
}
|
494
494
|
}
|
495
495
|
class Oe extends Q {
|
@@ -497,7 +497,7 @@ class Oe extends Q {
|
|
497
497
|
super(...arguments), this.type = 3;
|
498
498
|
}
|
499
499
|
j(t) {
|
500
|
-
this.element[this.name] = t ===
|
500
|
+
this.element[this.name] = t === d ? void 0 : t;
|
501
501
|
}
|
502
502
|
}
|
503
503
|
class Te extends Q {
|
@@ -505,7 +505,7 @@ class Te extends Q {
|
|
505
505
|
super(...arguments), this.type = 4;
|
506
506
|
}
|
507
507
|
j(t) {
|
508
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
508
|
+
this.element.toggleAttribute(this.name, !!t && t !== d);
|
509
509
|
}
|
510
510
|
}
|
511
511
|
class ke extends Q {
|
@@ -513,9 +513,9 @@ class ke extends Q {
|
|
513
513
|
super(t, e, i, r, o), this.type = 5;
|
514
514
|
}
|
515
515
|
_$AI(t, e = this) {
|
516
|
-
if ((t = U(this, t, e, 0) ??
|
516
|
+
if ((t = U(this, t, e, 0) ?? d) === P)
|
517
517
|
return;
|
518
|
-
const i = this._$AH, r = t ===
|
518
|
+
const i = this._$AH, r = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== d && (i === d || r);
|
519
519
|
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
520
520
|
}
|
521
521
|
handleEvent(t) {
|
@@ -609,7 +609,7 @@ function z(s, t) {
|
|
609
609
|
}
|
610
610
|
s.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
611
611
|
}
|
612
|
-
function
|
612
|
+
function pt(s) {
|
613
613
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && s[t], i = 0;
|
614
614
|
if (e)
|
615
615
|
return e.call(s);
|
@@ -665,7 +665,7 @@ var ot = ie(function(s) {
|
|
665
665
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
666
666
|
};
|
667
667
|
});
|
668
|
-
function
|
668
|
+
function dt(s, t) {
|
669
669
|
if (s) {
|
670
670
|
var e = s.indexOf(t);
|
671
671
|
0 <= e && s.splice(e, 1);
|
@@ -683,7 +683,7 @@ var tt = function() {
|
|
683
683
|
if (n)
|
684
684
|
if (this._parentage = null, Array.isArray(n))
|
685
685
|
try {
|
686
|
-
for (var a =
|
686
|
+
for (var a = pt(n), c = a.next(); !c.done; c = a.next()) {
|
687
687
|
var h = c.value;
|
688
688
|
h.remove(this);
|
689
689
|
}
|
@@ -706,11 +706,11 @@ var tt = function() {
|
|
706
706
|
} catch (v) {
|
707
707
|
o = v instanceof ot ? v.errors : [v];
|
708
708
|
}
|
709
|
-
var
|
710
|
-
if (
|
709
|
+
var p = this._finalizers;
|
710
|
+
if (p) {
|
711
711
|
this._finalizers = null;
|
712
712
|
try {
|
713
|
-
for (var u =
|
713
|
+
for (var u = pt(p), f = u.next(); !f.done; f = u.next()) {
|
714
714
|
var T = f.value;
|
715
715
|
try {
|
716
716
|
Mt(T);
|
@@ -753,10 +753,10 @@ var tt = function() {
|
|
753
753
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
754
754
|
}, s.prototype._removeParent = function(t) {
|
755
755
|
var e = this._parentage;
|
756
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
756
|
+
e === t ? this._parentage = null : Array.isArray(e) && dt(e, t);
|
757
757
|
}, s.prototype.remove = function(t) {
|
758
758
|
var e = this._finalizers;
|
759
|
-
e &&
|
759
|
+
e && dt(e, t), t instanceof s && t._removeParent(this);
|
760
760
|
}, s.EMPTY = function() {
|
761
761
|
var t = new s();
|
762
762
|
return t.closed = !0, t;
|
@@ -1004,7 +1004,7 @@ var We = ie(function(s) {
|
|
1004
1004
|
if (i._throwIfClosed(), !i.isStopped) {
|
1005
1005
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
1006
1006
|
try {
|
1007
|
-
for (var n =
|
1007
|
+
for (var n = pt(i.currentObservers), a = n.next(); !a.done; a = n.next()) {
|
1008
1008
|
var c = a.value;
|
1009
1009
|
c.next(e);
|
1010
1010
|
}
|
@@ -1054,7 +1054,7 @@ var We = ie(function(s) {
|
|
1054
1054
|
}, t.prototype._innerSubscribe = function(e) {
|
1055
1055
|
var i = this, r = this, o = r.hasError, n = r.isStopped, a = r.observers;
|
1056
1056
|
return o || n ? se : (this.currentObservers = null, a.push(e), new tt(function() {
|
1057
|
-
i.currentObservers = null,
|
1057
|
+
i.currentObservers = null, dt(a, e);
|
1058
1058
|
}));
|
1059
1059
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
1060
1060
|
var i = this, r = i.hasError, o = i.thrownError, n = i.isStopped;
|
@@ -1162,7 +1162,7 @@ class bt extends m {
|
|
1162
1162
|
return (e = this.shadowRoot) == null || e.appendChild(t), t;
|
1163
1163
|
}
|
1164
1164
|
render() {
|
1165
|
-
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"),
|
1165
|
+
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), d;
|
1166
1166
|
}
|
1167
1167
|
}
|
1168
1168
|
bt.styles = [
|
@@ -1329,7 +1329,7 @@ class oi extends he {
|
|
1329
1329
|
(t = this.l) == null || t.call(this), this.l = void 0;
|
1330
1330
|
}
|
1331
1331
|
render(t) {
|
1332
|
-
return
|
1332
|
+
return d;
|
1333
1333
|
}
|
1334
1334
|
getController() {
|
1335
1335
|
return ei.get(this.u);
|
@@ -1458,10 +1458,10 @@ class oi extends he {
|
|
1458
1458
|
for (const c in e) {
|
1459
1459
|
const h = t[c], l = e[c];
|
1460
1460
|
if (c in ct) {
|
1461
|
-
const
|
1461
|
+
const p = ct[c];
|
1462
1462
|
if (h === void 0 || l === void 0)
|
1463
1463
|
continue;
|
1464
|
-
const u =
|
1464
|
+
const u = p(h, l);
|
1465
1465
|
u.transform !== void 0 && (a[c] = u.value, n = !0, r.transform = `${r.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(r, u.overrideFrom));
|
1466
1466
|
} else
|
1467
1467
|
h !== l && h !== void 0 && l !== void 0 && (n = !0, r[c] = h, o[c] = l);
|
@@ -1562,17 +1562,17 @@ const Yt = _t(class extends ae {
|
|
1562
1562
|
* Copyright 2020 Google LLC
|
1563
1563
|
* SPDX-License-Identifier: BSD-3-Clause
|
1564
1564
|
*/
|
1565
|
-
const
|
1565
|
+
const pe = () => new ci();
|
1566
1566
|
class ci {
|
1567
1567
|
}
|
1568
|
-
const ht = /* @__PURE__ */ new WeakMap(),
|
1568
|
+
const ht = /* @__PURE__ */ new WeakMap(), de = _t(class extends he {
|
1569
1569
|
render(s) {
|
1570
|
-
return
|
1570
|
+
return d;
|
1571
1571
|
}
|
1572
1572
|
update(s, [t]) {
|
1573
1573
|
var i;
|
1574
1574
|
const e = t !== this.Y;
|
1575
|
-
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)),
|
1575
|
+
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)), d;
|
1576
1576
|
}
|
1577
1577
|
rt(s) {
|
1578
1578
|
if (typeof this.Y == "function") {
|
@@ -1600,7 +1600,7 @@ var hi = Object.defineProperty, li = Object.getOwnPropertyDescriptor, V = (s, t,
|
|
1600
1600
|
};
|
1601
1601
|
class w extends m {
|
1602
1602
|
constructor() {
|
1603
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
1603
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = pe(), this.widgetActive$ = new Fe(!1), this.componentIsDestroyed$ = new yt();
|
1604
1604
|
}
|
1605
1605
|
async connectedCallback() {
|
1606
1606
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -1644,7 +1644,7 @@ class w extends m {
|
|
1644
1644
|
return C` <img src=${e} class="trigger-icon" alt="" /> `;
|
1645
1645
|
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
1646
1646
|
if (!i)
|
1647
|
-
return
|
1647
|
+
return d;
|
1648
1648
|
const r = async (l) => ai, { type: o, content: n } = i;
|
1649
1649
|
switch (o) {
|
1650
1650
|
case "Telia": {
|
@@ -1653,10 +1653,10 @@ class w extends m {
|
|
1653
1653
|
class="trigger-icon"
|
1654
1654
|
svg=${l.svg}
|
1655
1655
|
size="lg"
|
1656
|
-
></telia-icon>` :
|
1656
|
+
></telia-icon>` : d;
|
1657
1657
|
}
|
1658
1658
|
default:
|
1659
|
-
return
|
1659
|
+
return d;
|
1660
1660
|
}
|
1661
1661
|
}
|
1662
1662
|
hideTrigger() {
|
@@ -1672,7 +1672,7 @@ class w extends m {
|
|
1672
1672
|
"trigger-container": !0,
|
1673
1673
|
hidden: !this.triggerVisible
|
1674
1674
|
})}
|
1675
|
-
${
|
1675
|
+
${de(this.containerRef)}
|
1676
1676
|
>
|
1677
1677
|
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? C`
|
1678
1678
|
<button
|
@@ -1688,7 +1688,7 @@ class w extends m {
|
|
1688
1688
|
>
|
1689
1689
|
${this.application.settings.branding.other.buttonLabelText}
|
1690
1690
|
</button>
|
1691
|
-
` :
|
1691
|
+
` : d}
|
1692
1692
|
|
1693
1693
|
<button
|
1694
1694
|
label="Widget trigger"
|
@@ -1878,10 +1878,10 @@ V([
|
|
1878
1878
|
V([
|
1879
1879
|
R()
|
1880
1880
|
], w.prototype, "icon", 2);
|
1881
|
-
var
|
1882
|
-
for (var r = i > 1 ? void 0 : i ?
|
1881
|
+
var pi = Object.defineProperty, di = Object.getOwnPropertyDescriptor, x = (s, t, e, i) => {
|
1882
|
+
for (var r = i > 1 ? void 0 : i ? di(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
1883
1883
|
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
1884
|
-
return i && r &&
|
1884
|
+
return i && r && pi(t, e, r), r;
|
1885
1885
|
};
|
1886
1886
|
const ue = (s) => {
|
1887
1887
|
class t extends s {
|
@@ -2085,7 +2085,7 @@ var mi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, bi = (s, t
|
|
2085
2085
|
const $i = "application";
|
2086
2086
|
class At extends m {
|
2087
2087
|
constructor() {
|
2088
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
2088
|
+
super(...arguments), this.nodes = [], this.wrapperRef = pe();
|
2089
2089
|
}
|
2090
2090
|
addChild(t) {
|
2091
2091
|
t.parent = this, this.nodes.push(t);
|
@@ -2110,7 +2110,7 @@ class At extends m {
|
|
2110
2110
|
render() {
|
2111
2111
|
var i, r;
|
2112
2112
|
const t = this.application.settings.components.conversation;
|
2113
|
-
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === wt.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top
|
2113
|
+
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === wt.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), C`<div class="widget-container" ${de(this.wrapperRef)}>
|
2114
2114
|
${ee(this.nodes, (o) => o)}
|
2115
2115
|
</div>`;
|
2116
2116
|
}
|
@@ -2160,23 +2160,6 @@ At.styles = O`
|
|
2160
2160
|
position: fixed;
|
2161
2161
|
}
|
2162
2162
|
|
2163
|
-
:host(.embedded) {
|
2164
|
-
padding: 40px 20px 20px 40px !important;
|
2165
|
-
}
|
2166
|
-
|
2167
|
-
@media screen and (max-device-width: 800px) {
|
2168
|
-
:host(.embedded) {
|
2169
|
-
padding: 0 !important;
|
2170
|
-
}
|
2171
|
-
:host(.embedded) .widget-container {
|
2172
|
-
border-radius: none !important;
|
2173
|
-
}
|
2174
|
-
}
|
2175
|
-
|
2176
|
-
:host(.embedded) .widget-container {
|
2177
|
-
border-radius: var(--border-radius) !important;
|
2178
|
-
}
|
2179
|
-
|
2180
2163
|
@media screen and (max-width: 800px) {
|
2181
2164
|
:host(.floating) {
|
2182
2165
|
inset: 0;
|
@@ -2301,7 +2284,7 @@ class W extends m {
|
|
2301
2284
|
}
|
2302
2285
|
render() {
|
2303
2286
|
if (!this.widget || this.status !== "activated")
|
2304
|
-
return
|
2287
|
+
return d;
|
2305
2288
|
if (this.widget.renderStrategy === wt.Trigger) {
|
2306
2289
|
const t = new w();
|
2307
2290
|
return t.application = this.widget, t;
|
@@ -12,7 +12,7 @@
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
13
13
|
*/const N=globalThis,K=N.trustedTypes,Tt=K?K.createPolicy("lit-html",{createHTML:s=>s}):void 0,Xt="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,Jt="?"+$,Ce=`<${Jt}>`,E=document,H=()=>E.createComment(""),I=s=>s===null||typeof s!="object"&&typeof s!="function",Qt=Array.isArray,Se=s=>Qt(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",it=`[
|
14
14
|
\f\r]`,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,kt=/-->/g,Ut=/>/g,A=RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Rt=/'/g,jt=/"/g,te=/^(?:script|style|textarea|title)$/i,Ee=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),C=Ee(1),P=Symbol.for("lit-noChange"),
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Rt=/'/g,jt=/"/g,te=/^(?:script|style|textarea|title)$/i,Ee=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),C=Ee(1),P=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),Mt=new WeakMap,S=E.createTreeWalker(E,129);function ee(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Tt!==void 0?Tt.createHTML(t):t}const Pe=(s,t)=>{const e=s.length-1,i=[];let r,o=t===2?"<svg>":"",n=j;for(let a=0;a<e;a++){const c=s[a];let h,l,p=-1,d=0;for(;d<c.length&&(n.lastIndex=d,l=n.exec(c),l!==null);)d=n.lastIndex,n===j?l[1]==="!--"?n=kt:l[1]!==void 0?n=Ut:l[2]!==void 0?(te.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=A):l[3]!==void 0&&(n=A):n===A?l[0]===">"?(n=r??j,p=-1):l[1]===void 0?p=-2:(p=n.lastIndex-l[2].length,h=l[1],n=l[3]===void 0?A:l[3]==='"'?jt:Rt):n===jt||n===Rt?n=A:n===kt||n===Ut?n=j:(n=A,r=void 0);const f=n===A&&s[a+1].startsWith("/>")?" ":"";o+=n===j?c+Ce:p>=0?(i.push(h),c.slice(0,p)+Xt+c.slice(p)+$+f):c+$+(p===-2?a:f)}return[ee(s,o+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class D{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,n=0;const a=t.length-1,c=this.parts,[h,l]=Pe(t,e);if(this.el=D.createElement(h,i),S.currentNode=this.el.content,e===2){const p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(r=S.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const p of r.getAttributeNames())if(p.endsWith(Xt)){const d=l[n++],f=r.getAttribute(p).split($),T=/([.?@])?(.*)/.exec(d);c.push({type:1,index:o,name:T[2],strings:f,ctor:T[1]==="."?Te:T[1]==="?"?ke:T[1]==="@"?Ue:Q}),r.removeAttribute(p)}else p.startsWith($)&&(c.push({type:6,index:o}),r.removeAttribute(p));if(te.test(r.tagName)){const p=r.textContent.split($),d=p.length-1;if(d>0){r.textContent=K?K.emptyScript:"";for(let f=0;f<d;f++)r.append(p[f],H()),S.nextNode(),c.push({type:2,index:++o});r.append(p[d],H())}}}else if(r.nodeType===8)if(r.data===Jt)c.push({type:2,index:o});else{let p=-1;for(;(p=r.data.indexOf($,p+1))!==-1;)c.push({type:7,index:o}),p+=$.length-1}o++}}static createElement(t,e){const i=E.createElement("template");return i.innerHTML=t,i}}function U(s,t,e=s,i){var n,a;if(t===P)return t;let r=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const o=I(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==o&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),o===void 0?r=void 0:(r=new o(s),r._$AT(s,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=r:e._$Cl=r),r!==void 0&&(t=U(s,r._$AS(s,t.values),r,i)),t}class Oe{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:i}=this._$AD,r=((t==null?void 0:t.creationScope)??E).importNode(e,!0);S.currentNode=r;let o=S.nextNode(),n=0,a=0,c=i[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new B(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new Re(o,this,t)),this._$AV.push(h),c=i[++a]}n!==(c==null?void 0:c.index)&&(o=S.nextNode(),n++)}return S.currentNode=E,r}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class B{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.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=U(this,t,e),I(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Se(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==u&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(E.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=D.createElement(ee(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===r)this._$AH.p(e);else{const n=new Oe(r,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=Mt.get(t.strings);return e===void 0&&Mt.set(t.strings,e=new D(t)),e}k(t){Qt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new B(this.S(H()),this.S(H()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}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,i,r,o){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}_$AI(t,e=this,i,r){const o=this.strings;let n=!1;if(o===void 0)t=U(this,t,e,0),n=!I(t)||t!==this._$AH&&t!==P,n&&(this._$AH=t);else{const a=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=U(this,a[i+c],e,c),h===P&&(h=this._$AH[c]),n||(n=!I(h)||h!==this._$AH[c]),h===u?t=u:t!==u&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!r&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Te extends Q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}}class ke extends Q{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}}class Ue extends Q{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){if((t=U(this,t,e,0)??u)===P)return;const i=this._$AH,r=t===u&&i!==u||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==u&&(i===u||r);r&&this.element.removeEventListener(this.name,this,i),o&&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 Re{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const st=N.litHtmlPolyfillSupport;st==null||st(D,B),(N.litHtmlVersions??(N.litHtmlVersions=[])).push("3.1.2");const je=(s,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const o=(e==null?void 0:e.renderBefore)??null;i._$litPart$=r=new B(t.insertBefore(H(),o),o,void 0,e??{})}return r._$AI(s),r};/**
|
16
16
|
* @license
|
17
17
|
* Copyright 2017 Google LLC
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
@@ -20,9 +20,9 @@
|
|
20
20
|
* @license
|
21
21
|
* Copyright 2021 Google LLC
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
23
|
-
*/function*ie(s,t){if(s!==void 0){let e=0;for(const i of s)yield t(i,e++)}}var lt=function(s,t){return lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},lt(s,t)};function z(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lt(s,t);function e(){this.constructor=s}s.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function
|
23
|
+
*/function*ie(s,t){if(s!==void 0){let e=0;for(const i of s)yield t(i,e++)}}var lt=function(s,t){return lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},lt(s,t)};function z(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lt(s,t);function e(){this.constructor=s}s.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function pt(s){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&s[t],i=0;if(e)return e.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&i>=s.length&&(s=void 0),{value:s&&s[i++],done:!s}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function G(s,t){var e=typeof Symbol=="function"&&s[Symbol.iterator];if(!e)return s;var i=e.call(s),r,o=[],n;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return o}function X(s,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,o;i<r;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return s.concat(o||Array.prototype.slice.call(t))}function b(s){return typeof s=="function"}function se(s){var t=function(i){Error.call(i),i.stack=new Error().stack},e=s(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var ot=se(function(s){return function(e){s(this),this.message=e?e.length+` errors occurred during unsubscription:
|
24
24
|
`+e.map(function(i,r){return r+1+") "+i.toString()}).join(`
|
25
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function
|
25
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function ut(s,t){if(s){var e=s.indexOf(t);0<=e&&s.splice(e,1)}}var tt=function(){function s(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return s.prototype.unsubscribe=function(){var t,e,i,r,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=pt(n),c=a.next();!c.done;c=a.next()){var h=c.value;h.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else n.remove(this);var l=this.initialTeardown;if(b(l))try{l()}catch(v){o=v instanceof ot?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var d=pt(p),f=d.next();!f.done;f=d.next()){var T=f.value;try{Nt(T)}catch(v){o=o??[],v instanceof ot?o=X(X([],G(o)),G(v.errors)):o.push(v)}}}catch(v){i={error:v}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}}if(o)throw new ot(o)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Nt(t);else{if(t instanceof s){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},s.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},s.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},s.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&ut(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&ut(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=function(){var t=new s;return t.closed=!0,t}(),s}(),re=tt.EMPTY;function oe(s){return s instanceof tt||s&&"closed"in s&&b(s.remove)&&b(s.add)&&b(s.unsubscribe)}function Nt(s){b(s)?s():s.unsubscribe()}var ne={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},dt={setTimeout:function(s,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];var r=dt.delegate;return r!=null&&r.setTimeout?r.setTimeout.apply(r,X([s,t],G(e))):setTimeout.apply(void 0,X([s,t],G(e)))},clearTimeout:function(s){var t=dt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(s)},delegate:void 0};function Me(s){dt.setTimeout(function(){throw s})}function Lt(){}function q(s){s()}var ae=function(s){z(t,s);function t(e){var i=s.call(this)||this;return i.isStopped=!1,e?(i.destination=e,oe(e)&&e.add(i)):i.destination=Ie,i}return t.create=function(e,i,r){return new ft(e,i,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,s.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(tt),Ne=Function.prototype.bind;function nt(s,t){return Ne.call(s,t)}var Le=function(){function s(t){this.partialObserver=t}return s.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){F(i)}},s.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){F(i)}else F(t)},s.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){F(e)}},s}(),ft=function(s){z(t,s);function t(e,i,r){var o=s.call(this)||this,n;if(b(e)||!e)n={next:e??void 0,error:i??void 0,complete:r??void 0};else{var a;o&&ne.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return o.unsubscribe()},n={next:e.next&&nt(e.next,a),error:e.error&&nt(e.error,a),complete:e.complete&&nt(e.complete,a)}):n=e}return o.destination=new Le(n),o}return t}(ae);function F(s){Me(s)}function He(s){throw s}var Ie={closed:!0,next:Lt,error:He,complete:Lt},De=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Be(s){return s}function ze(s){return s.length===0?Be:s.length===1?s[0]:function(e){return s.reduce(function(i,r){return r(i)},e)}}var Ht=function(){function s(t){t&&(this._subscribe=t)}return s.prototype.lift=function(t){var e=new s;return e.source=this,e.operator=t,e},s.prototype.subscribe=function(t,e,i){var r=this,o=We(t)?t:new ft(t,e,i);return q(function(){var n=r,a=n.operator,c=n.source;o.add(a?a.call(o,c):c?r._subscribe(o):r._trySubscribe(o))}),o},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(t,e){var i=this;return e=It(e),new e(function(r,o){var n=new ft({next:function(a){try{t(a)}catch(c){o(c),n.unsubscribe()}},error:o,complete:r});i.subscribe(n)})},s.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},s.prototype[De]=function(){return this},s.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ze(t)(this)},s.prototype.toPromise=function(t){var e=this;return t=It(t),new t(function(i,r){var o;e.subscribe(function(n){return o=n},function(n){return r(n)},function(){return i(o)})})},s.create=function(t){return new s(t)},s}();function It(s){var t;return(t=s??ne.Promise)!==null&&t!==void 0?t:Promise}function Ve(s){return s&&b(s.next)&&b(s.error)&&b(s.complete)}function We(s){return s&&s instanceof ae||Ve(s)&&oe(s)}var Fe=se(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),yt=function(s){z(t,s);function t(){var e=s.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new Dt(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Fe},t.prototype.next=function(e){var i=this;q(function(){var r,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=pt(i.currentObservers),a=n.next();!a.done;a=n.next()){var c=a.value;c.next(e)}}catch(h){r={error:h}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var i=this;q(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var r=i.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;q(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),s.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,r=this,o=r.hasError,n=r.isStopped,a=r.observers;return o||n?re:(this.currentObservers=null,a.push(e),new tt(function(){i.currentObservers=null,ut(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,r=i.hasError,o=i.thrownError,n=i.isStopped;r?e.error(o):n&&e.complete()},t.prototype.asObservable=function(){var e=new Ht;return e.source=this,e},t.create=function(e,i){return new Dt(e,i)},t}(Ht),Dt=function(s){z(t,s);function t(e,i){var r=s.call(this)||this;return r.destination=e,r.source=i,r}return t.prototype.next=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,e)},t.prototype.error=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&r!==void 0?r:re},t}(yt),Ye=function(s){z(t,s);function t(e){var i=s.call(this)||this;return i._value=e,i}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var i=s.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},t.prototype.getValue=function(){var e=this,i=e.hasError,r=e.thrownError,o=e._value;if(i)throw r;return this._throwIfClosed(),o},t.prototype.next=function(e){s.prototype.next.call(this,this._value=e)},t}(yt);/**
|
26
26
|
* @license
|
27
27
|
* Copyright 2017 Google LLC
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
@@ -30,7 +30,7 @@
|
|
30
30
|
* @license
|
31
31
|
* Copyright 2017 Google LLC
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
33
|
-
*/function R(s){return g({...s,state:!0,attribute:!1})}var Ke=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,Xe=(s,t,e,i)=>{for(var r=i>1?void 0:i?Ge(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&Ke(t,e,r),r};class bt extends m{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var e;return(e=this.shadowRoot)==null||e.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),
|
33
|
+
*/function R(s){return g({...s,state:!0,attribute:!1})}var Ke=Object.defineProperty,Ge=Object.getOwnPropertyDescriptor,Xe=(s,t,e,i)=>{for(var r=i>1?void 0:i?Ge(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&Ke(t,e,r),r};class bt extends m{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var e;return(e=this.shadowRoot)==null||e.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),u}}bt.styles=[O`
|
34
34
|
:host {
|
35
35
|
position: fixed;
|
36
36
|
display: flex;
|
@@ -58,21 +58,21 @@
|
|
58
58
|
* @license
|
59
59
|
* Copyright 2017 Google LLC
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
61
|
-
*/const L=(s,t)=>{var i;const e=s._$AN;if(e===void 0)return!1;for(const r of e)(i=r._$AO)==null||i.call(r,t,!1),L(r,t);return!0},J=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while((e==null?void 0:e.size)===0)},he=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),ei(t)}};function Qe(s){this._$AN!==void 0?(J(this),this._$AM=s,he(this)):this._$AM=s}function ti(s,t=!1,e=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let o=e;o<i.length;o++)L(i[o],!1),J(i[o]);else i!=null&&(L(i,!1),J(i));else L(this,s)}const ei=s=>{s.type==$t.CHILD&&(s._$AP??(s._$AP=ti),s._$AQ??(s._$AQ=Qe))};class le extends ce{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),he(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),e&&(L(this,t),J(this))}setValue(t){if(Je(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(){}}const ii=new WeakMap;let Bt=0;const at=new Map,zt=new WeakSet,Vt=()=>new Promise(s=>requestAnimationFrame(s)),si=[{transform:"translateX(100%) scale(0)",opacity:0}],Wt=(s,t)=>{const e=s-t;return e===0?void 0:e},Ft=(s,t)=>{const e=s/t;return e===1?void 0:e},ct={left:(s,t)=>{const e=Wt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(s,t)=>{const e=Wt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(s,t)=>{let e;t===0&&(t=1,e={width:"1px"});const i=Ft(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(s,t)=>{let e;t===0&&(t=1,e={height:"1px"});const i=Ft(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},ri={duration:333,easing:"ease-in-out"},oi=["left","top","width","height","opacity","color","background"],Yt=new WeakMap;class ni extends le{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===$t.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return
|
61
|
+
*/const L=(s,t)=>{var i;const e=s._$AN;if(e===void 0)return!1;for(const r of e)(i=r._$AO)==null||i.call(r,t,!1),L(r,t);return!0},J=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while((e==null?void 0:e.size)===0)},he=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),ei(t)}};function Qe(s){this._$AN!==void 0?(J(this),this._$AM=s,he(this)):this._$AM=s}function ti(s,t=!1,e=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let o=e;o<i.length;o++)L(i[o],!1),J(i[o]);else i!=null&&(L(i,!1),J(i));else L(this,s)}const ei=s=>{s.type==$t.CHILD&&(s._$AP??(s._$AP=ti),s._$AQ??(s._$AQ=Qe))};class le extends ce{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),he(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),e&&(L(this,t),J(this))}setValue(t){if(Je(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(){}}const ii=new WeakMap;let Bt=0;const at=new Map,zt=new WeakSet,Vt=()=>new Promise(s=>requestAnimationFrame(s)),si=[{transform:"translateX(100%) scale(0)",opacity:0}],Wt=(s,t)=>{const e=s-t;return e===0?void 0:e},Ft=(s,t)=>{const e=s/t;return e===1?void 0:e},ct={left:(s,t)=>{const e=Wt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(s,t)=>{const e=Wt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(s,t)=>{let e;t===0&&(t=1,e={width:"1px"});const i=Ft(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(s,t)=>{let e;t===0&&(t=1,e={height:"1px"});const i=Ft(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},ri={duration:333,easing:"ease-in-out"},oi=["left","top","width","height","opacity","color","background"],Yt=new WeakMap;class ni extends le{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===$t.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return u}getController(){return ii.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var r;const i=this.u===void 0;return i&&(this.u=(r=t.options)==null?void 0:r.host,this.u.addController(this),this.u.updateComplete.then(o=>this.t=!0),this.element=t.element,Yt.set(this.element,this)),this.optionsOrCallback=e,(i||typeof e!="function")&&this.p(e),this.render(e)}p(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=oi),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const o=e[r]??(ct[r]?void 0:i[r]),n=Number(o);t[r]=isNaN(n)?o+"":n}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((i,r)=>{if(Array.isArray(i)){if(Array.isArray(r)&&r.length===i.length&&i.every((o,n)=>o===r[n]))return!1}else if(r===i)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Vt;const e=this.O(),i=this.j(this.options.keyframeOptions,e),r=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,r,e);this.log("measured",[this.A,r,o,n]),t=this.calculateKeyframes(o,n)}else{const o=at.get(this.options.inId);if(o){at.delete(this.options.inId);const{from:n,to:a}=this.N(o,r,e);t=this.calculateKeyframes(n,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Bt++,t.forEach(c=>c.zIndex=Bt)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,e;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.h||(this.options.id!==void 0&&at.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Vt(),(e=this.i)==null?void 0:e.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const r=this.m();this.log("stabilizing out");const o=this.A.left-r.left,n=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||o===0&&n===0||(this.element.style.position="relative"),o!==0&&(this.element.style.left=o+"px"),n!==0&&(this.element.style.top=n+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,i;t&&((i=(e=this.options).onComplete)==null||i.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const i=Yt.get(e);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=zt.has(this.u);return t||this.u.updateComplete.then(()=>{zt.add(this.u)}),t}j(t,e=this.O()){const i={...ri};return e.forEach(r=>Object.assign(i,r.options.keyframeOptions)),Object.assign(i,t),i}N(t,e,i){t={...t},e={...e};const r=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let o=1,n=1;return r.length>0&&(r.forEach(a=>{a.width&&(o/=a.width),a.height&&(n/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=o*t.left,e.left=o*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=n*t.top,e.top=n*e.top)),{from:t,to:e}}calculateKeyframes(t,e,i=!1){const r={},o={};let n=!1;const a={};for(const c in e){const h=t[c],l=e[c];if(c in ct){const p=ct[c];if(h===void 0||l===void 0)continue;const d=p(h,l);d.transform!==void 0&&(a[c]=d.value,n=!0,r.transform=`${r.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(r,d.overrideFrom))}else h!==l&&h!==void 0&&l!==void 0&&(n=!0,r[c]=h,o[c]=l)}return r.transformOrigin=o.transformOrigin=i?"center center":"top left",this.animatingProperties=a,n?[r,o]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,e]),i=!0,this.webAnimation=this.element.animate(t,e);const r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.remove(this)}return this.didFinish(i),i}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const ai=_t(ni),ci={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>'};/**
|
62
62
|
* @license
|
63
63
|
* Copyright 2018 Google LLC
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
65
|
-
*/const qt=_t(class extends ce{constructor(s){var t;if(super(s),s.type!==$t.ATTRIBUTE||s.name!=="class"||((t=s.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(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var i,r;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((i=this.nt)!=null&&i.has(o))&&this.st.add(o);return this.render(t)}const e=s.element.classList;for(const o of this.st)o in t||(e.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(r=this.nt)!=null&&r.has(o)||(n?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return P}}),y=(s,t,e)=>{s&&e.style.setProperty(t,s)},
|
65
|
+
*/const qt=_t(class extends ce{constructor(s){var t;if(super(s),s.type!==$t.ATTRIBUTE||s.name!=="class"||((t=s.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(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var i,r;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((i=this.nt)!=null&&i.has(o))&&this.st.add(o);return this.render(t)}const e=s.element.classList;for(const o of this.st)o in t||(e.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(r=this.nt)!=null&&r.has(o)||(n?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return P}}),y=(s,t,e)=>{s&&e.style.setProperty(t,s)},pe=(s,t)=>{var e,i,r,o,n,a,c,h,l;y((e=s.colors)==null?void 0:e.primaryBackground,"--primary-background",t),y((i=s.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),y((r=s.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),y((o=s.colors)==null?void 0:o.textOnSecondaryBackground,"--text-on-secondary-background",t),y((n=s.colors)==null?void 0:n.interactiveDestructiveBackground,"--destructive-color",t),y((a=s.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),y((c=s.colors)==null?void 0:c.interactivePrimaryBackground,"--interactive-primary-background",t),y((h=s.colors)==null?void 0:h.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),y((l=s.colors)==null?void 0:l.focusColor,"--focus-color",t)};/**
|
66
66
|
* @license
|
67
67
|
* Copyright 2020 Google LLC
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
69
|
-
*/const
|
69
|
+
*/const ue=()=>new hi;class hi{}const ht=new WeakMap,de=_t(class extends le{render(s){return u}update(s,[t]){var i;const e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(i=s.options)==null?void 0:i.host,this.rt(this.ct=s.element)),u}rt(s){if(typeof this.Y=="function"){const t=this.ht??globalThis;let e=ht.get(t);e===void 0&&(e=new WeakMap,ht.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,s),s!==void 0&&this.Y.call(this.ht,s)}else this.Y.value=s}get lt(){var s,t;return typeof this.Y=="function"?(s=ht.get(this.ht??globalThis))==null?void 0:s.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var li=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,V=(s,t,e,i)=>{for(var r=i>1?void 0:i?pi(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&li(t,e,r),r};class w extends m{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=ue(),this.widgetActive$=new Ye(!1),this.componentIsDestroyed$=new yt}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}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.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&pe(this.application.settings.branding,this)}async _renderSymbol(){var a,c,h;const t=(a=this.application)==null?void 0:a.branding(),e=(c=t==null?void 0:t.graphics)==null?void 0:c.trigger;if(e)return C` <img src=${e} class="trigger-icon" alt="" /> `;const i=(h=this.application)==null?void 0:h.triggerIcon;if(!i)return u;const r=async l=>ci,{type:o,content:n}=i;switch(o){case"Telia":{const l=await r();return l?C`<telia-icon
|
70
70
|
class="trigger-icon"
|
71
71
|
svg=${l.svg}
|
72
72
|
size="lg"
|
73
|
-
></telia-icon>`:
|
73
|
+
></telia-icon>`:u}default:return u}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var t,e,i,r;return C`<div
|
74
74
|
class=${qt({"trigger-container":!0,hidden:!this.triggerVisible})}
|
75
|
-
${
|
75
|
+
${de(this.containerRef)}
|
76
76
|
>
|
77
77
|
${!this.active&&((r=(i=(e=(t=this.application)==null?void 0:t.settings)==null?void 0:e.branding)==null?void 0:i.other)!=null&&r.showButtonLabel)?C`
|
78
78
|
<button
|
@@ -83,7 +83,7 @@
|
|
83
83
|
>
|
84
84
|
${this.application.settings.branding.other.buttonLabelText}
|
85
85
|
</button>
|
86
|
-
`:
|
86
|
+
`:u}
|
87
87
|
|
88
88
|
<button
|
89
89
|
label="Widget trigger"
|
@@ -248,7 +248,7 @@
|
|
248
248
|
.trigger-label:hover {
|
249
249
|
opacity: 0.8;
|
250
250
|
}
|
251
|
-
`];V([g({attribute:!1})],w.prototype,"application",2);V([R()],w.prototype,"active",2);V([R()],w.prototype,"triggerVisible",2);V([R()],w.prototype,"loaded",2);V([R()],w.prototype,"icon",2);var
|
251
|
+
`];V([g({attribute:!1})],w.prototype,"application",2);V([R()],w.prototype,"active",2);V([R()],w.prototype,"triggerVisible",2);V([R()],w.prototype,"loaded",2);V([R()],w.prototype,"icon",2);var ui=Object.defineProperty,di=Object.getOwnPropertyDescriptor,x=(s,t,e,i)=>{for(var r=i>1?void 0:i?di(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&ui(t,e,r),r};const fe=s=>{class t extends s{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(i){this.properties=i}writeLayout(i){this.layout=i}writeContext(i){this.context=i}addChild(i){i.parent=this,this.nodes.push(i)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}}return t.styles=[O`
|
252
252
|
:host {
|
253
253
|
font-family: var(--font-family);
|
254
254
|
grid-column: span var(--width);
|
@@ -284,7 +284,7 @@
|
|
284
284
|
* @license
|
285
285
|
* Copyright 2017 Google LLC
|
286
286
|
* SPDX-License-Identifier: BSD-3-Clause
|
287
|
-
*/function mi({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new Zt(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var o;return(o=i.get(this))==null||o.setValue(r),t.set.call(this,r)},init(r){var o;return(o=i.get(this))==null||o.setValue(r),r}};{t.constructor.addInitializer(n=>{i.set(n,new Zt(n,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let o;if(r===void 0){const n=new WeakMap;o={get:function(){return n.get(this)},set:function(a){i.get(this).setValue(a),n.set(this,a)},configurable:!0,enumerable:!0}}else{const n=r.set;o={...r,set:function(a){i.get(this).setValue(a),n==null||n.call(this,a)}}}return void Object.defineProperty(t,e,o)}}}var yi=Object.defineProperty,bi=Object.getOwnPropertyDescriptor,$i=(s,t,e,i)=>{for(var r=i>1?void 0:i?bi(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&yi(t,e,r),r};const _i="application";class At extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=
|
287
|
+
*/function mi({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new Zt(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var o;return(o=i.get(this))==null||o.setValue(r),t.set.call(this,r)},init(r){var o;return(o=i.get(this))==null||o.setValue(r),r}};{t.constructor.addInitializer(n=>{i.set(n,new Zt(n,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let o;if(r===void 0){const n=new WeakMap;o={get:function(){return n.get(this)},set:function(a){i.get(this).setValue(a),n.set(this,a)},configurable:!0,enumerable:!0}}else{const n=r.set;o={...r,set:function(a){i.get(this).setValue(a),n==null||n.call(this,a)}}}return void Object.defineProperty(t,e,o)}}}var yi=Object.defineProperty,bi=Object.getOwnPropertyDescriptor,$i=(s,t,e,i)=>{for(var r=i>1?void 0:i?bi(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&yi(t,e,r),r};const _i="application";class At extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=ue()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&pe(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{e.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var i,r;const t=this.application.settings.components.conversation;return((r=(i=t==null?void 0:t.properties)==null?void 0:i.chat)==null?void 0:r.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===wt.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),C`<div class="widget-container" ${de(this.wrapperRef)}>
|
288
288
|
${ie(this.nodes,o=>o)}
|
289
289
|
</div>`}}At.styles=O`
|
290
290
|
:host {
|
@@ -331,23 +331,6 @@
|
|
331
331
|
position: fixed;
|
332
332
|
}
|
333
333
|
|
334
|
-
:host(.embedded) {
|
335
|
-
padding: 40px 20px 20px 40px !important;
|
336
|
-
}
|
337
|
-
|
338
|
-
@media screen and (max-device-width: 800px) {
|
339
|
-
:host(.embedded) {
|
340
|
-
padding: 0 !important;
|
341
|
-
}
|
342
|
-
:host(.embedded) .widget-container {
|
343
|
-
border-radius: none !important;
|
344
|
-
}
|
345
|
-
}
|
346
|
-
|
347
|
-
:host(.embedded) .widget-container {
|
348
|
-
border-radius: var(--border-radius) !important;
|
349
|
-
}
|
350
|
-
|
351
334
|
@media screen and (max-width: 800px) {
|
352
335
|
:host(.floating) {
|
353
336
|
inset: 0;
|
@@ -438,7 +421,7 @@
|
|
438
421
|
animation: slideDown 0.3s linear;
|
439
422
|
pointer-events: none;
|
440
423
|
}
|
441
|
-
`;$i([g({attribute:!1}),mi({context:_i})],At.prototype,"application",2);var wi=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,xt=(s,t,e,i)=>{for(var r=i>1?void 0:i?Ai(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&wi(t,e,r),r};class W extends m{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
|
424
|
+
`;$i([g({attribute:!1}),mi({context:_i})],At.prototype,"application",2);var wi=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,xt=(s,t,e,i)=>{for(var r=i>1?void 0:i?Ai(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=(i?n(t,e,r):n(r))||r);return i&&r&&wi(t,e,r),r};class W extends m{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 u;if(this.widget.renderStrategy===wt.Trigger){const t=new w;return t.application=this.widget,t}return this.widget.render()}}W.styles=[O`
|
442
425
|
:host {
|
443
426
|
display: block;
|
444
427
|
}
|
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-a4eeb7c8.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.76-rc.
|
3
|
+
"version": "1.1.76-rc.25",
|
4
4
|
"dependencies": {
|
5
|
-
"@telia-ace/widget-core-flamingo": "1.1.76-rc.
|
5
|
+
"@telia-ace/widget-core-flamingo": "1.1.76-rc.25",
|
6
6
|
"lit": "^3.0.2"
|
7
7
|
},
|
8
8
|
"main": "./index.js",
|