@telia-ace/widget-components-widget-header-flamingo 1.1.123-rc.4 → 1.1.123-rc.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -285,21 +285,21 @@ H.elementStyles = [], H.shadowRootOptions = { mode: "open" }, H[it("elementPrope
|
|
|
285
285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
286
286
|
*/
|
|
287
287
|
const st = globalThis, bt = st.trustedTypes, Ae = bt ? bt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, ni = "$lit$", O = `lit$${Math.random().toFixed(9).slice(2)}$`, ri = "?" + O, cs = `<${ri}>`, M = document, rt = () => M.createComment(""), ot = (i) => i === null || typeof i != "object" && typeof i != "function", ne = Array.isArray, us = (i) => ne(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Nt = `[
|
|
288
|
-
\f\r]`,
|
|
289
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ee = /'/g, Oe = /"/g, oi = /^(?:script|style|textarea|title)$/i, hs = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), m = hs(1), j = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Te = /* @__PURE__ */ new WeakMap(),
|
|
288
|
+
\f\r]`, tt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ke = /-->/g, Ce = />/g, P = RegExp(`>|${Nt}(?:([^\\s"'>=/]+)(${Nt}*=${Nt}*(?:[^
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ee = /'/g, Oe = /"/g, oi = /^(?:script|style|textarea|title)$/i, hs = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), m = hs(1), j = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Te = /* @__PURE__ */ new WeakMap(), L = M.createTreeWalker(M, 129);
|
|
290
290
|
function ai(i, t) {
|
|
291
291
|
if (!ne(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
292
|
return Ae !== void 0 ? Ae.createHTML(t) : t;
|
|
293
293
|
}
|
|
294
294
|
const ds = (i, t) => {
|
|
295
295
|
const e = i.length - 1, s = [];
|
|
296
|
-
let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o =
|
|
296
|
+
let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = tt;
|
|
297
297
|
for (let a = 0; a < e; a++) {
|
|
298
298
|
const l = i[a];
|
|
299
299
|
let c, u, h = -1, d = 0;
|
|
300
|
-
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o ===
|
|
300
|
+
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === tt ? u[1] === "!--" ? o = ke : u[1] !== void 0 ? o = Ce : u[2] !== void 0 ? (oi.test(u[2]) && (n = RegExp("</" + u[2], "g")), o = P) : u[3] !== void 0 && (o = P) : o === P ? u[0] === ">" ? (o = n ?? tt, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? P : u[3] === '"' ? Oe : Ee) : o === Oe || o === Ee ? o = P : o === ke || o === Ce ? o = tt : (o = P, n = void 0);
|
|
301
301
|
const f = o === P && i[a + 1].startsWith("/>") ? " " : "";
|
|
302
|
-
r += o ===
|
|
302
|
+
r += o === tt ? l + cs : h >= 0 ? (s.push(c), l.slice(0, h) + ni + l.slice(h) + O + f) : l + O + (h === -2 ? a : f);
|
|
303
303
|
}
|
|
304
304
|
return [ai(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
305
305
|
};
|
|
@@ -309,11 +309,11 @@ let qt = class li {
|
|
|
309
309
|
this.parts = [];
|
|
310
310
|
let r = 0, o = 0;
|
|
311
311
|
const a = t.length - 1, l = this.parts, [c, u] = ds(t, e);
|
|
312
|
-
if (this.el = li.createElement(c, s),
|
|
312
|
+
if (this.el = li.createElement(c, s), L.currentNode = this.el.content, e === 2 || e === 3) {
|
|
313
313
|
const h = this.el.content.firstChild;
|
|
314
314
|
h.replaceWith(...h.childNodes);
|
|
315
315
|
}
|
|
316
|
-
for (; (n =
|
|
316
|
+
for (; (n = L.nextNode()) !== null && l.length < a; ) {
|
|
317
317
|
if (n.nodeType === 1) {
|
|
318
318
|
if (n.hasAttributes()) for (const h of n.getAttributeNames()) if (h.endsWith(ni)) {
|
|
319
319
|
const d = u[o++], f = n.getAttribute(h).split(O), v = /([.?@])?(.*)/.exec(d);
|
|
@@ -323,7 +323,7 @@ let qt = class li {
|
|
|
323
323
|
const h = n.textContent.split(O), d = h.length - 1;
|
|
324
324
|
if (d > 0) {
|
|
325
325
|
n.textContent = bt ? bt.emptyScript : "";
|
|
326
|
-
for (let f = 0; f < d; f++) n.append(h[f], rt()),
|
|
326
|
+
for (let f = 0; f < d; f++) n.append(h[f], rt()), L.nextNode(), l.push({ type: 2, index: ++r });
|
|
327
327
|
n.append(h[d], rt());
|
|
328
328
|
}
|
|
329
329
|
}
|
|
@@ -340,12 +340,12 @@ let qt = class li {
|
|
|
340
340
|
return s.innerHTML = t, s;
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
|
-
function
|
|
343
|
+
function K(i, t, e = i, s) {
|
|
344
344
|
var o, a;
|
|
345
345
|
if (t === j) return t;
|
|
346
346
|
let n = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
|
347
347
|
const r = ot(t) ? void 0 : t._$litDirective$;
|
|
348
|
-
return (n == null ? void 0 : n.constructor) !== r && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), r === void 0 ? n = void 0 : (n = new r(i), n._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = n : e._$Cl = n), n !== void 0 && (t =
|
|
348
|
+
return (n == null ? void 0 : n.constructor) !== r && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), r === void 0 ? n = void 0 : (n = new r(i), n._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = n : e._$Cl = n), n !== void 0 && (t = K(i, n._$AS(i, t.values), n, s)), t;
|
|
349
349
|
}
|
|
350
350
|
class fs {
|
|
351
351
|
constructor(t, e) {
|
|
@@ -359,16 +359,16 @@ class fs {
|
|
|
359
359
|
}
|
|
360
360
|
u(t) {
|
|
361
361
|
const { el: { content: e }, parts: s } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? M).importNode(e, !0);
|
|
362
|
-
|
|
363
|
-
let r =
|
|
362
|
+
L.currentNode = n;
|
|
363
|
+
let r = L.nextNode(), o = 0, a = 0, l = s[0];
|
|
364
364
|
for (; l !== void 0; ) {
|
|
365
365
|
if (o === l.index) {
|
|
366
366
|
let c;
|
|
367
367
|
l.type === 2 ? c = new ct(r, r.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (c = new $s(r, this, t)), this._$AV.push(c), l = s[++a];
|
|
368
368
|
}
|
|
369
|
-
o !== (l == null ? void 0 : l.index) && (r =
|
|
369
|
+
o !== (l == null ? void 0 : l.index) && (r = L.nextNode(), o++);
|
|
370
370
|
}
|
|
371
|
-
return
|
|
371
|
+
return L.currentNode = M, n;
|
|
372
372
|
}
|
|
373
373
|
p(t) {
|
|
374
374
|
let e = 0;
|
|
@@ -395,7 +395,7 @@ class ct {
|
|
|
395
395
|
return this._$AB;
|
|
396
396
|
}
|
|
397
397
|
_$AI(t, e = this) {
|
|
398
|
-
t =
|
|
398
|
+
t = K(this, t, e), ot(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : us(t) ? this.k(t) : this._(t);
|
|
399
399
|
}
|
|
400
400
|
O(t) {
|
|
401
401
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -451,11 +451,11 @@ class Tt {
|
|
|
451
451
|
_$AI(t, e = this, s, n) {
|
|
452
452
|
const r = this.strings;
|
|
453
453
|
let o = !1;
|
|
454
|
-
if (r === void 0) t =
|
|
454
|
+
if (r === void 0) t = K(this, t, e, 0), o = !ot(t) || t !== this._$AH && t !== j, o && (this._$AH = t);
|
|
455
455
|
else {
|
|
456
456
|
const a = t;
|
|
457
457
|
let l, c;
|
|
458
|
-
for (t = r[0], l = 0; l < r.length - 1; l++) c =
|
|
458
|
+
for (t = r[0], l = 0; l < r.length - 1; l++) c = K(this, a[s + l], e, l), c === j && (c = this._$AH[l]), o || (o = !ot(c) || c !== this._$AH[l]), c === p ? t = p : t !== p && (t += (c ?? "") + r[l + 1]), this._$AH[l] = c;
|
|
459
459
|
}
|
|
460
460
|
o && !n && this.j(t);
|
|
461
461
|
}
|
|
@@ -484,7 +484,7 @@ class vs extends Tt {
|
|
|
484
484
|
super(t, e, s, n, r), this.type = 5;
|
|
485
485
|
}
|
|
486
486
|
_$AI(t, e = this) {
|
|
487
|
-
if ((t =
|
|
487
|
+
if ((t = K(this, t, e, 0) ?? p) === j) return;
|
|
488
488
|
const s = this._$AH, n = t === p && s !== p || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== p && (s === p || n);
|
|
489
489
|
n && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
490
490
|
}
|
|
@@ -501,7 +501,7 @@ class $s {
|
|
|
501
501
|
return this._$AM._$AU;
|
|
502
502
|
}
|
|
503
503
|
_$AI(t) {
|
|
504
|
-
|
|
504
|
+
K(this, t);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
const Ft = st.litHtmlPolyfillSupport;
|
|
@@ -721,7 +721,7 @@ var Gt = function(i, t) {
|
|
|
721
721
|
for (var n in s) Object.prototype.hasOwnProperty.call(s, n) && (e[n] = s[n]);
|
|
722
722
|
}, Gt(i, t);
|
|
723
723
|
};
|
|
724
|
-
function
|
|
724
|
+
function Q(i, t) {
|
|
725
725
|
if (typeof t != "function" && t !== null)
|
|
726
726
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
727
727
|
Gt(i, t);
|
|
@@ -817,7 +817,7 @@ function di(i, t) {
|
|
|
817
817
|
return { value: c[0] ? c[1] : void 0, done: !0 };
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Z(i) {
|
|
821
821
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && i[t], s = 0;
|
|
822
822
|
if (e) return e.call(i);
|
|
823
823
|
if (i && typeof i.length == "number") return {
|
|
@@ -849,8 +849,8 @@ function Kt(i, t, e) {
|
|
|
849
849
|
(r || !(s in t)) && (r || (r = Array.prototype.slice.call(t, 0, s)), r[s] = t[s]);
|
|
850
850
|
return i.concat(r || Array.prototype.slice.call(t));
|
|
851
851
|
}
|
|
852
|
-
function
|
|
853
|
-
return this instanceof
|
|
852
|
+
function q(i) {
|
|
853
|
+
return this instanceof q ? (this.v = i, this) : new q(i);
|
|
854
854
|
}
|
|
855
855
|
function Cs(i, t, e) {
|
|
856
856
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
@@ -865,8 +865,8 @@ function Cs(i, t, e) {
|
|
|
865
865
|
}
|
|
866
866
|
function a(f, v) {
|
|
867
867
|
s[f] && (n[f] = function(g) {
|
|
868
|
-
return new Promise(function(pt,
|
|
869
|
-
r.push([f, g, pt,
|
|
868
|
+
return new Promise(function(pt, V) {
|
|
869
|
+
r.push([f, g, pt, V]) > 1 || l(f, g);
|
|
870
870
|
});
|
|
871
871
|
}, v && (n[f] = v(n[f])));
|
|
872
872
|
}
|
|
@@ -878,7 +878,7 @@ function Cs(i, t, e) {
|
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
function c(f) {
|
|
881
|
-
f.value instanceof
|
|
881
|
+
f.value instanceof q ? Promise.resolve(f.value.v).then(u, h) : d(r[0][2], f);
|
|
882
882
|
}
|
|
883
883
|
function u(f) {
|
|
884
884
|
l("next", f);
|
|
@@ -893,7 +893,7 @@ function Cs(i, t, e) {
|
|
|
893
893
|
function Es(i) {
|
|
894
894
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
895
895
|
var t = i[Symbol.asyncIterator], e;
|
|
896
|
-
return t ? t.call(i) : (i = typeof
|
|
896
|
+
return t ? t.call(i) : (i = typeof Z == "function" ? Z(i) : i[Symbol.iterator](), e = {}, s("next"), s("throw"), s("return"), e[Symbol.asyncIterator] = function() {
|
|
897
897
|
return this;
|
|
898
898
|
}, e);
|
|
899
899
|
function s(r) {
|
|
@@ -945,7 +945,7 @@ var Pt = (function() {
|
|
|
945
945
|
if (o)
|
|
946
946
|
if (this._parentage = null, Array.isArray(o))
|
|
947
947
|
try {
|
|
948
|
-
for (var a =
|
|
948
|
+
for (var a = Z(o), l = a.next(); !l.done; l = a.next()) {
|
|
949
949
|
var c = l.value;
|
|
950
950
|
c.remove(this);
|
|
951
951
|
}
|
|
@@ -971,7 +971,7 @@ var Pt = (function() {
|
|
|
971
971
|
if (h) {
|
|
972
972
|
this._finalizers = null;
|
|
973
973
|
try {
|
|
974
|
-
for (var d =
|
|
974
|
+
for (var d = Z(h), f = d.next(); !f.done; f = d.next()) {
|
|
975
975
|
var v = f.value;
|
|
976
976
|
try {
|
|
977
977
|
Pe(v);
|
|
@@ -1046,16 +1046,16 @@ function vi(i) {
|
|
|
1046
1046
|
throw i;
|
|
1047
1047
|
});
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function Ie() {
|
|
1050
1050
|
}
|
|
1051
1051
|
function mt(i) {
|
|
1052
1052
|
i();
|
|
1053
1053
|
}
|
|
1054
1054
|
var ae = (function(i) {
|
|
1055
|
-
|
|
1055
|
+
Q(t, i);
|
|
1056
1056
|
function t(e) {
|
|
1057
1057
|
var s = i.call(this) || this;
|
|
1058
|
-
return s.isStopped = !1, e ? (s.destination = e, gi(e) && e.add(s)) : s.destination =
|
|
1058
|
+
return s.isStopped = !1, e ? (s.destination = e, gi(e) && e.add(s)) : s.destination = Ls, s;
|
|
1059
1059
|
}
|
|
1060
1060
|
return t.create = function(e, s, n) {
|
|
1061
1061
|
return new Xt(e, s, n);
|
|
@@ -1114,7 +1114,7 @@ var ae = (function(i) {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
}, i;
|
|
1116
1116
|
})(), Xt = (function(i) {
|
|
1117
|
-
|
|
1117
|
+
Q(t, i);
|
|
1118
1118
|
function t(e, s, n) {
|
|
1119
1119
|
var r = i.call(this) || this, o;
|
|
1120
1120
|
return $(e) || !e ? o = {
|
|
@@ -1128,14 +1128,14 @@ var ae = (function(i) {
|
|
|
1128
1128
|
function gt(i) {
|
|
1129
1129
|
vi(i);
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function Is(i) {
|
|
1132
1132
|
throw i;
|
|
1133
1133
|
}
|
|
1134
|
-
var
|
|
1134
|
+
var Ls = {
|
|
1135
1135
|
closed: !0,
|
|
1136
|
-
next:
|
|
1137
|
-
error:
|
|
1138
|
-
complete:
|
|
1136
|
+
next: Ie,
|
|
1137
|
+
error: Is,
|
|
1138
|
+
complete: Ie
|
|
1139
1139
|
}, le = (function() {
|
|
1140
1140
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
1141
1141
|
})();
|
|
@@ -1170,7 +1170,7 @@ var _ = (function() {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
}, i.prototype.forEach = function(t, e) {
|
|
1172
1172
|
var s = this;
|
|
1173
|
-
return e =
|
|
1173
|
+
return e = Le(e), new e(function(n, r) {
|
|
1174
1174
|
var o = new Xt({
|
|
1175
1175
|
next: function(a) {
|
|
1176
1176
|
try {
|
|
@@ -1195,7 +1195,7 @@ var _ = (function() {
|
|
|
1195
1195
|
return Rs(t)(this);
|
|
1196
1196
|
}, i.prototype.toPromise = function(t) {
|
|
1197
1197
|
var e = this;
|
|
1198
|
-
return t =
|
|
1198
|
+
return t = Le(t), new t(function(s, n) {
|
|
1199
1199
|
var r;
|
|
1200
1200
|
e.subscribe(function(o) {
|
|
1201
1201
|
return r = o;
|
|
@@ -1209,7 +1209,7 @@ var _ = (function() {
|
|
|
1209
1209
|
return new i(t);
|
|
1210
1210
|
}, i;
|
|
1211
1211
|
})();
|
|
1212
|
-
function
|
|
1212
|
+
function Le(i) {
|
|
1213
1213
|
var t;
|
|
1214
1214
|
return (t = i ?? Os.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1215
1215
|
}
|
|
@@ -1222,7 +1222,7 @@ function Ms(i) {
|
|
|
1222
1222
|
function js(i) {
|
|
1223
1223
|
return $(i == null ? void 0 : i.lift);
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1225
|
+
function It(i) {
|
|
1226
1226
|
return function(t) {
|
|
1227
1227
|
if (js(t))
|
|
1228
1228
|
return t.lift(function(e) {
|
|
@@ -1239,7 +1239,7 @@ function St(i, t, e, s, n) {
|
|
|
1239
1239
|
return new Ns(i, t, e, s, n);
|
|
1240
1240
|
}
|
|
1241
1241
|
var Ns = (function(i) {
|
|
1242
|
-
|
|
1242
|
+
Q(t, i);
|
|
1243
1243
|
function t(e, s, n, r, o, a) {
|
|
1244
1244
|
var l = i.call(this, e) || this;
|
|
1245
1245
|
return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = s ? function(c) {
|
|
@@ -1278,7 +1278,7 @@ var Ns = (function(i) {
|
|
|
1278
1278
|
i(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1279
1279
|
};
|
|
1280
1280
|
}), ut = (function(i) {
|
|
1281
|
-
|
|
1281
|
+
Q(t, i);
|
|
1282
1282
|
function t() {
|
|
1283
1283
|
var e = i.call(this) || this;
|
|
1284
1284
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
@@ -1296,7 +1296,7 @@ var Ns = (function(i) {
|
|
|
1296
1296
|
if (s._throwIfClosed(), !s.isStopped) {
|
|
1297
1297
|
s.currentObservers || (s.currentObservers = Array.from(s.observers));
|
|
1298
1298
|
try {
|
|
1299
|
-
for (var o =
|
|
1299
|
+
for (var o = Z(s.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
1300
1300
|
var l = a.value;
|
|
1301
1301
|
l.next(e);
|
|
1302
1302
|
}
|
|
@@ -1357,7 +1357,7 @@ var Ns = (function(i) {
|
|
|
1357
1357
|
return new Re(e, s);
|
|
1358
1358
|
}, t;
|
|
1359
1359
|
})(_), Re = (function(i) {
|
|
1360
|
-
|
|
1360
|
+
Q(t, i);
|
|
1361
1361
|
function t(e, s) {
|
|
1362
1362
|
var n = i.call(this) || this;
|
|
1363
1363
|
return n.destination = e, n.source = s, n;
|
|
@@ -1376,7 +1376,7 @@ var Ns = (function(i) {
|
|
|
1376
1376
|
return (n = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(e)) !== null && n !== void 0 ? n : pi;
|
|
1377
1377
|
}, t;
|
|
1378
1378
|
})(ut), mi = (function(i) {
|
|
1379
|
-
|
|
1379
|
+
Q(t, i);
|
|
1380
1380
|
function t(e) {
|
|
1381
1381
|
var s = i.call(this) || this;
|
|
1382
1382
|
return s._value = e, s;
|
|
@@ -1445,13 +1445,13 @@ function Ci(i) {
|
|
|
1445
1445
|
case 1:
|
|
1446
1446
|
o.trys.push([1, , 9, 10]), o.label = 2;
|
|
1447
1447
|
case 2:
|
|
1448
|
-
return [4,
|
|
1448
|
+
return [4, q(e.read())];
|
|
1449
1449
|
case 3:
|
|
1450
|
-
return s = o.sent(), n = s.value, r = s.done, r ? [4,
|
|
1450
|
+
return s = o.sent(), n = s.value, r = s.done, r ? [4, q(void 0)] : [3, 5];
|
|
1451
1451
|
case 4:
|
|
1452
1452
|
return [2, o.sent()];
|
|
1453
1453
|
case 5:
|
|
1454
|
-
return [4,
|
|
1454
|
+
return [4, q(n)];
|
|
1455
1455
|
case 6:
|
|
1456
1456
|
return [4, o.sent()];
|
|
1457
1457
|
case 7:
|
|
@@ -1516,7 +1516,7 @@ function Ks(i) {
|
|
|
1516
1516
|
return new _(function(t) {
|
|
1517
1517
|
var e, s;
|
|
1518
1518
|
try {
|
|
1519
|
-
for (var n =
|
|
1519
|
+
for (var n = Z(i), r = n.next(); !r.done; r = n.next()) {
|
|
1520
1520
|
var o = r.value;
|
|
1521
1521
|
if (t.next(o), t.closed)
|
|
1522
1522
|
return;
|
|
@@ -1590,7 +1590,7 @@ function U(i, t, e, s, n) {
|
|
|
1590
1590
|
return r;
|
|
1591
1591
|
}
|
|
1592
1592
|
function Ti(i, t) {
|
|
1593
|
-
return t === void 0 && (t = 0),
|
|
1593
|
+
return t === void 0 && (t = 0), It(function(e, s) {
|
|
1594
1594
|
e.subscribe(St(s, function(n) {
|
|
1595
1595
|
return U(s, i, function() {
|
|
1596
1596
|
return s.next(n);
|
|
@@ -1607,7 +1607,7 @@ function Ti(i, t) {
|
|
|
1607
1607
|
});
|
|
1608
1608
|
}
|
|
1609
1609
|
function Pi(i, t) {
|
|
1610
|
-
return t === void 0 && (t = 0),
|
|
1610
|
+
return t === void 0 && (t = 0), It(function(e, s) {
|
|
1611
1611
|
s.add(i.schedule(function() {
|
|
1612
1612
|
return e.subscribe(s);
|
|
1613
1613
|
}, t));
|
|
@@ -1616,10 +1616,10 @@ function Pi(i, t) {
|
|
|
1616
1616
|
function Qs(i, t) {
|
|
1617
1617
|
return J(i).pipe(Pi(t), Ti(t));
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function Js(i, t) {
|
|
1620
1620
|
return J(i).pipe(Pi(t), Ti(t));
|
|
1621
1621
|
}
|
|
1622
|
-
function
|
|
1622
|
+
function Vs(i, t) {
|
|
1623
1623
|
return new _(function(e) {
|
|
1624
1624
|
var s = 0;
|
|
1625
1625
|
return t.schedule(function() {
|
|
@@ -1646,7 +1646,7 @@ function tn(i, t) {
|
|
|
1646
1646
|
};
|
|
1647
1647
|
});
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1649
|
+
function Ii(i, t) {
|
|
1650
1650
|
if (!i)
|
|
1651
1651
|
throw new Error("Iterable cannot be null");
|
|
1652
1652
|
return new _(function(e) {
|
|
@@ -1661,18 +1661,18 @@ function Li(i, t) {
|
|
|
1661
1661
|
});
|
|
1662
1662
|
}
|
|
1663
1663
|
function en(i, t) {
|
|
1664
|
-
return
|
|
1664
|
+
return Ii(Ci(i), t);
|
|
1665
1665
|
}
|
|
1666
1666
|
function sn(i, t) {
|
|
1667
1667
|
if (i != null) {
|
|
1668
1668
|
if (_i(i))
|
|
1669
1669
|
return Qs(i, t);
|
|
1670
1670
|
if (bi(i))
|
|
1671
|
-
return Js(i, t);
|
|
1672
|
-
if (wi(i))
|
|
1673
1671
|
return Vs(i, t);
|
|
1672
|
+
if (wi(i))
|
|
1673
|
+
return Js(i, t);
|
|
1674
1674
|
if (xi(i))
|
|
1675
|
-
return
|
|
1675
|
+
return Ii(i, t);
|
|
1676
1676
|
if (ki(i))
|
|
1677
1677
|
return tn(i, t);
|
|
1678
1678
|
if (Ei(i))
|
|
@@ -1684,7 +1684,7 @@ function nn(i, t) {
|
|
|
1684
1684
|
return t ? sn(i, t) : J(i);
|
|
1685
1685
|
}
|
|
1686
1686
|
function rn(i, t) {
|
|
1687
|
-
return
|
|
1687
|
+
return It(function(e, s) {
|
|
1688
1688
|
var n = 0;
|
|
1689
1689
|
e.subscribe(St(s, function(r) {
|
|
1690
1690
|
s.next(i.call(t, r, n++));
|
|
@@ -1699,19 +1699,19 @@ function on(i, t, e, s, n, r, o, a) {
|
|
|
1699
1699
|
}, v = function(g) {
|
|
1700
1700
|
c++;
|
|
1701
1701
|
var pt = !1;
|
|
1702
|
-
J(e(g, u++)).subscribe(St(t, function(
|
|
1703
|
-
t.next(
|
|
1702
|
+
J(e(g, u++)).subscribe(St(t, function(V) {
|
|
1703
|
+
t.next(V);
|
|
1704
1704
|
}, function() {
|
|
1705
1705
|
pt = !0;
|
|
1706
1706
|
}, void 0, function() {
|
|
1707
1707
|
if (pt)
|
|
1708
1708
|
try {
|
|
1709
1709
|
c--;
|
|
1710
|
-
for (var
|
|
1710
|
+
for (var V = function() {
|
|
1711
1711
|
var Mt = l.shift();
|
|
1712
1712
|
o || v(Mt);
|
|
1713
1713
|
}; l.length && c < s; )
|
|
1714
|
-
|
|
1714
|
+
V();
|
|
1715
1715
|
d();
|
|
1716
1716
|
} catch (Mt) {
|
|
1717
1717
|
t.error(Mt);
|
|
@@ -1723,17 +1723,17 @@ function on(i, t, e, s, n, r, o, a) {
|
|
|
1723
1723
|
})), function() {
|
|
1724
1724
|
};
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1727
|
-
return e === void 0 && (e = 1 / 0), $(t) ?
|
|
1726
|
+
function Li(i, t, e) {
|
|
1727
|
+
return e === void 0 && (e = 1 / 0), $(t) ? Li(function(s, n) {
|
|
1728
1728
|
return rn(function(r, o) {
|
|
1729
1729
|
return t(s, r, n, o);
|
|
1730
1730
|
})(J(i(s, n)));
|
|
1731
|
-
}, e) : (typeof t == "number" && (e = t),
|
|
1731
|
+
}, e) : (typeof t == "number" && (e = t), It(function(s, n) {
|
|
1732
1732
|
return on(s, n, i, e);
|
|
1733
1733
|
}));
|
|
1734
1734
|
}
|
|
1735
1735
|
function an(i) {
|
|
1736
|
-
return i === void 0 && (i = 1 / 0),
|
|
1736
|
+
return i === void 0 && (i = 1 / 0), Li($i, i);
|
|
1737
1737
|
}
|
|
1738
1738
|
function ln() {
|
|
1739
1739
|
for (var i = [], t = 0; t < arguments.length; t++)
|
|
@@ -2124,7 +2124,7 @@ const ve = class ve extends A {
|
|
|
2124
2124
|
return m`<div
|
|
2125
2125
|
class=${He({
|
|
2126
2126
|
"trigger-container": !0,
|
|
2127
|
-
hidden: !this.triggerVisible
|
|
2127
|
+
"ace-hidden": !this.triggerVisible
|
|
2128
2128
|
})}
|
|
2129
2129
|
${xt(this.containerRef)}
|
|
2130
2130
|
>
|
|
@@ -2208,7 +2208,7 @@ ve.styles = [
|
|
|
2208
2208
|
gap: 1rem;
|
|
2209
2209
|
}
|
|
2210
2210
|
|
|
2211
|
-
.trigger-container.hidden {
|
|
2211
|
+
.trigger-container.ace-hidden {
|
|
2212
2212
|
display: none;
|
|
2213
2213
|
}
|
|
2214
2214
|
|
|
@@ -2335,7 +2335,7 @@ ht([
|
|
|
2335
2335
|
ht([
|
|
2336
2336
|
S()
|
|
2337
2337
|
], E.prototype, "icon");
|
|
2338
|
-
var wn = Object.defineProperty,
|
|
2338
|
+
var wn = Object.defineProperty, I = (i, t, e, s) => {
|
|
2339
2339
|
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
2340
2340
|
(o = i[r]) && (n = o(t, e, n) || n);
|
|
2341
2341
|
return n && wn(t, e, n), n;
|
|
@@ -2381,19 +2381,19 @@ const Ui = (i) => {
|
|
|
2381
2381
|
`
|
|
2382
2382
|
];
|
|
2383
2383
|
let t = e;
|
|
2384
|
-
return
|
|
2384
|
+
return I([
|
|
2385
2385
|
w()
|
|
2386
|
-
], t.prototype, "properties"),
|
|
2386
|
+
], t.prototype, "properties"), I([
|
|
2387
2387
|
w()
|
|
2388
|
-
], t.prototype, "context"),
|
|
2388
|
+
], t.prototype, "context"), I([
|
|
2389
2389
|
w()
|
|
2390
|
-
], t.prototype, "layout"),
|
|
2390
|
+
], t.prototype, "layout"), I([
|
|
2391
2391
|
w()
|
|
2392
|
-
], t.prototype, "name"),
|
|
2392
|
+
], t.prototype, "name"), I([
|
|
2393
2393
|
w()
|
|
2394
|
-
], t.prototype, "type"),
|
|
2394
|
+
], t.prototype, "type"), I([
|
|
2395
2395
|
w({ attribute: !1 })
|
|
2396
|
-
], t.prototype, "application"),
|
|
2396
|
+
], t.prototype, "application"), I([
|
|
2397
2397
|
w({ attribute: !1 })
|
|
2398
2398
|
], t.prototype, "parent"), t;
|
|
2399
2399
|
}, $e = class $e extends Ui(A) {
|
|
@@ -2420,7 +2420,7 @@ function* _n(i, t) {
|
|
|
2420
2420
|
for (const s of i) yield t(s, e++);
|
|
2421
2421
|
}
|
|
2422
2422
|
}
|
|
2423
|
-
var ce = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(ce || {}),
|
|
2423
|
+
var ce = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(ce || {}), et = /* @__PURE__ */ ((i) => (i.NonAuthenticated = "non-authenticated", i.Authenticating = "authenticating", i.Authenticated = "authenticated", i.ChatEnded = "chat-ended", i))(et || {});
|
|
2424
2424
|
/**
|
|
2425
2425
|
* @license
|
|
2426
2426
|
* Copyright 2021 Google LLC
|
|
@@ -2725,19 +2725,19 @@ me.styles = B`
|
|
|
2725
2725
|
}
|
|
2726
2726
|
}
|
|
2727
2727
|
|
|
2728
|
-
:host(.expanded) {
|
|
2728
|
+
:host(.ace-expanded) {
|
|
2729
2729
|
opacity: 1;
|
|
2730
2730
|
animation: slideUp 0.3s linear;
|
|
2731
2731
|
}
|
|
2732
2732
|
|
|
2733
|
-
:host(.hidden) {
|
|
2733
|
+
:host(.ace-hidden) {
|
|
2734
2734
|
opacity: 0;
|
|
2735
2735
|
animation: slideDown 0.3s linear;
|
|
2736
2736
|
pointer-events: none;
|
|
2737
2737
|
}
|
|
2738
2738
|
|
|
2739
|
-
:host(.hidden.embedded),
|
|
2740
|
-
:host(.expanded.embedded) {
|
|
2739
|
+
:host(.ace-hidden.embedded),
|
|
2740
|
+
:host(.ace-expanded.embedded) {
|
|
2741
2741
|
animation: none;
|
|
2742
2742
|
}
|
|
2743
2743
|
`;
|
|
@@ -2793,22 +2793,22 @@ ye.styles = [
|
|
|
2793
2793
|
}
|
|
2794
2794
|
`
|
|
2795
2795
|
];
|
|
2796
|
-
let
|
|
2796
|
+
let X = ye;
|
|
2797
2797
|
ue([
|
|
2798
2798
|
w({ attribute: !0 })
|
|
2799
|
-
],
|
|
2799
|
+
], X.prototype, "name");
|
|
2800
2800
|
ue([
|
|
2801
2801
|
S()
|
|
2802
|
-
],
|
|
2802
|
+
], X.prototype, "widget");
|
|
2803
2803
|
ue([
|
|
2804
2804
|
S()
|
|
2805
|
-
],
|
|
2805
|
+
], X.prototype, "status");
|
|
2806
2806
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", At);
|
|
2807
2807
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", E);
|
|
2808
2808
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Qt);
|
|
2809
2809
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", at);
|
|
2810
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
|
2811
|
-
const
|
|
2810
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", X);
|
|
2811
|
+
const z = {
|
|
2812
2812
|
allRenderFn: !1,
|
|
2813
2813
|
cmpDidLoad: !0,
|
|
2814
2814
|
cmpDidUnload: !1,
|
|
@@ -2892,7 +2892,7 @@ const D = {
|
|
|
2892
2892
|
transformTagName: !1,
|
|
2893
2893
|
attachStyles: !0
|
|
2894
2894
|
};
|
|
2895
|
-
let
|
|
2895
|
+
let D, ji, Lt, Ni = !1, kt = !1, he = !1, b = !1, De = null, Jt = !1;
|
|
2896
2896
|
const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, Fi = Rt.HTMLElement || class {
|
|
2897
2897
|
}, y = {
|
|
2898
2898
|
$flags$: 0,
|
|
@@ -2913,7 +2913,7 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
|
|
|
2913
2913
|
} catch {
|
|
2914
2914
|
}
|
|
2915
2915
|
return i;
|
|
2916
|
-
})(), Pn = (i) => Promise.resolve(i),
|
|
2916
|
+
})(), Pn = (i) => Promise.resolve(i), In = /* @__PURE__ */ (() => {
|
|
2917
2917
|
try {
|
|
2918
2918
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
|
2919
2919
|
} catch {
|
|
@@ -2921,12 +2921,12 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
|
|
|
2921
2921
|
return !1;
|
|
2922
2922
|
})(), Bi = (i, t, e, s) => {
|
|
2923
2923
|
e && e.map(([n, r, o]) => {
|
|
2924
|
-
const a = Rn(i, n), l =
|
|
2924
|
+
const a = Rn(i, n), l = Ln(t, o), c = Un(n);
|
|
2925
2925
|
y.ael(a, r, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => y.rel(a, r, l, c));
|
|
2926
2926
|
});
|
|
2927
|
-
},
|
|
2927
|
+
}, Ln = (i, t) => (e) => {
|
|
2928
2928
|
try {
|
|
2929
|
-
|
|
2929
|
+
z.lazyLoad || i.$hostElement$[t](e);
|
|
2930
2930
|
} catch (s) {
|
|
2931
2931
|
dt(s);
|
|
2932
2932
|
}
|
|
@@ -2936,7 +2936,7 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
|
|
|
2936
2936
|
} : (i & 2) !== 0, We = "http://www.w3.org/1999/xlink", N = (i, t = "") => () => {
|
|
2937
2937
|
}, qe = /* @__PURE__ */ new WeakMap(), Mn = (i, t, e) => {
|
|
2938
2938
|
let s = Ot.get(i);
|
|
2939
|
-
|
|
2939
|
+
In && e ? (s = s || new CSSStyleSheet(), s.replace(t)) : s = t, Ot.set(i, s);
|
|
2940
2940
|
}, jn = (i, t, e, s) => {
|
|
2941
2941
|
let n = Hi(t, e), r = Ot.get(n);
|
|
2942
2942
|
if (i = i.nodeType === 11 ? i : k, r)
|
|
@@ -2949,7 +2949,7 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
|
|
|
2949
2949
|
}, Nn = (i) => {
|
|
2950
2950
|
const t = i.$cmpMeta$, e = i.$hostElement$, s = t.$flags$, n = N("attachStyles", t.$tagName$), r = jn(e.shadowRoot ? e.shadowRoot : e.getRootNode(), t, i.$modeName$);
|
|
2951
2951
|
s & 10 && (e["s-sc"] = r, e.classList.add(r + "-h"), s & 2 && e.classList.add(r + "-s")), n();
|
|
2952
|
-
}, Hi = (i, t) => "sc-" + (t && i.$flags$ & 32 ? i.$tagName$ + "-" + t : i.$tagName$), Fn = (i) => fr.map((t) => t(i)).find((t) => !!t), Ge = {}, Bn = "http://www.w3.org/2000/svg", Hn = "http://www.w3.org/1999/xhtml", zn = (i) => i != null, de = (i) => (i = typeof i, i === "object" || i === "function"),
|
|
2952
|
+
}, Hi = (i, t) => "sc-" + (t && i.$flags$ & 32 ? i.$tagName$ + "-" + t : i.$tagName$), Fn = (i) => fr.map((t) => t(i)).find((t) => !!t), Ge = {}, Bn = "http://www.w3.org/2000/svg", Hn = "http://www.w3.org/1999/xhtml", zn = (i) => i != null, de = (i) => (i = typeof i, i === "object" || i === "function"), G = (i, t, ...e) => {
|
|
2953
2953
|
let s = null, n = null, r = null, o = !1, a = !1, l = [];
|
|
2954
2954
|
const c = (h) => {
|
|
2955
2955
|
for (let d = 0; d < h.length; d++)
|
|
@@ -2988,13 +2988,13 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
|
|
|
2988
2988
|
}), qn = (i) => {
|
|
2989
2989
|
if (typeof i.vtag == "function") {
|
|
2990
2990
|
const e = Object.assign({}, i.vattrs);
|
|
2991
|
-
return i.vkey && (e.key = i.vkey), i.vname && (e.name = i.vname),
|
|
2991
|
+
return i.vkey && (e.key = i.vkey), i.vname && (e.name = i.vname), G(i.vtag, e, ...i.vchildren || []);
|
|
2992
2992
|
}
|
|
2993
2993
|
const t = Ct(i.vtag, i.vtext);
|
|
2994
2994
|
return t.$attrs$ = i.vattrs, t.$children$ = i.vchildren, t.$key$ = i.vkey, t.$name$ = i.vname, t;
|
|
2995
2995
|
}, Ke = (i, t, e, s, n, r) => {
|
|
2996
2996
|
if (e !== s) {
|
|
2997
|
-
let o =
|
|
2997
|
+
let o = Je(i, t), a = t.toLowerCase();
|
|
2998
2998
|
if (t === "class") {
|
|
2999
2999
|
const l = i.classList, c = Ze(e), u = Ze(s);
|
|
3000
3000
|
l.remove(...c.filter((h) => h && !u.includes(h))), l.add(...u.filter((h) => h && !c.includes(h)));
|
|
@@ -3007,7 +3007,7 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
|
|
|
3007
3007
|
if (t === "ref")
|
|
3008
3008
|
s && s(i);
|
|
3009
3009
|
else if (!i.__lookupSetter__(t) && t[0] === "o" && t[1] === "n")
|
|
3010
|
-
t[2] === "-" ? t = t.slice(3) :
|
|
3010
|
+
t[2] === "-" ? t = t.slice(3) : Je(Rt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), e && y.rel(i, t, e, !1), s && y.ael(i, t, s, !1);
|
|
3011
3011
|
else {
|
|
3012
3012
|
const l = de(s);
|
|
3013
3013
|
if ((o || l && s !== null) && !n)
|
|
@@ -3032,7 +3032,7 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
|
|
|
3032
3032
|
Ke(n, s, r[s], o[s], e, t.$flags$);
|
|
3033
3033
|
}, Et = (i, t, e, s) => {
|
|
3034
3034
|
let n = t.$children$[e], r = 0, o, a, l;
|
|
3035
|
-
if (Ni || (he = !0, n.$tag$ === "slot" && (
|
|
3035
|
+
if (Ni || (he = !0, n.$tag$ === "slot" && (D && s.classList.add(D + "-s"), n.$flags$ |= n.$children$ ? (
|
|
3036
3036
|
// slot element has fallback content
|
|
3037
3037
|
2
|
|
3038
3038
|
) : (
|
|
@@ -3043,23 +3043,23 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
|
|
|
3043
3043
|
else if (n.$flags$ & 1)
|
|
3044
3044
|
o = n.$elm$ = k.createTextNode("");
|
|
3045
3045
|
else {
|
|
3046
|
-
if (b || (b = n.$tag$ === "svg"), o = n.$elm$ = k.createElementNS(b ? Bn : Hn, n.$flags$ & 2 ? "slot-fb" : n.$tag$), b && n.$tag$ === "foreignObject" && (b = !1), zi(null, n, b), zn(
|
|
3046
|
+
if (b || (b = n.$tag$ === "svg"), o = n.$elm$ = k.createElementNS(b ? Bn : Hn, n.$flags$ & 2 ? "slot-fb" : n.$tag$), b && n.$tag$ === "foreignObject" && (b = !1), zi(null, n, b), zn(D) && o["s-si"] !== D && o.classList.add(o["s-si"] = D), n.$children$)
|
|
3047
3047
|
for (r = 0; r < n.$children$.length; ++r)
|
|
3048
3048
|
a = Et(i, n, r, o), a && o.appendChild(a);
|
|
3049
3049
|
n.$tag$ === "svg" ? b = !1 : o.tagName === "foreignObject" && (b = !0);
|
|
3050
3050
|
}
|
|
3051
|
-
return o["s-hn"] =
|
|
3051
|
+
return o["s-hn"] = Lt, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = ji, o["s-sn"] = n.$name$ || "", l = i && i.$children$ && i.$children$[e], l && l.$tag$ === n.$tag$ && i.$elm$ && lt(i.$elm$, !1)), o;
|
|
3052
3052
|
}, lt = (i, t) => {
|
|
3053
3053
|
y.$flags$ |= 1;
|
|
3054
3054
|
const e = i.childNodes;
|
|
3055
3055
|
for (let s = e.length - 1; s >= 0; s--) {
|
|
3056
3056
|
const n = e[s];
|
|
3057
|
-
n["s-hn"] !==
|
|
3057
|
+
n["s-hn"] !== Lt && n["s-ol"] && (qi(n).insertBefore(n, pe(n)), n["s-ol"].remove(), n["s-ol"] = void 0, he = !0), t && lt(n, t);
|
|
3058
3058
|
}
|
|
3059
3059
|
y.$flags$ &= -2;
|
|
3060
3060
|
}, Di = (i, t, e, s, n, r) => {
|
|
3061
3061
|
let o = i["s-cr"] && i["s-cr"].parentNode || i, a;
|
|
3062
|
-
for (o.shadowRoot && o.tagName ===
|
|
3062
|
+
for (o.shadowRoot && o.tagName === Lt && (o = o.shadowRoot); n <= r; ++n)
|
|
3063
3063
|
s[n] && (a = Et(null, e, n, i), a && (s[n].$elm$ = a, o.insertBefore(a, pe(t))));
|
|
3064
3064
|
}, Wi = (i, t, e, s, n) => {
|
|
3065
3065
|
for (; t <= e; ++t)
|
|
@@ -3076,23 +3076,23 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
|
|
|
3076
3076
|
else if (f == null)
|
|
3077
3077
|
f = s[--h];
|
|
3078
3078
|
else if (vt(c, d))
|
|
3079
|
-
|
|
3079
|
+
W(c, d), c = t[++n], d = s[++r];
|
|
3080
3080
|
else if (vt(u, f))
|
|
3081
|
-
|
|
3081
|
+
W(u, f), u = t[--l], f = s[--h];
|
|
3082
3082
|
else if (vt(c, f))
|
|
3083
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") && lt(c.$elm$.parentNode, !1),
|
|
3083
|
+
(c.$tag$ === "slot" || f.$tag$ === "slot") && lt(c.$elm$.parentNode, !1), W(c, f), i.insertBefore(c.$elm$, u.$elm$.nextSibling), c = t[++n], f = s[--h];
|
|
3084
3084
|
else if (vt(u, d))
|
|
3085
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") && lt(u.$elm$.parentNode, !1),
|
|
3085
|
+
(c.$tag$ === "slot" || f.$tag$ === "slot") && lt(u.$elm$.parentNode, !1), W(u, d), i.insertBefore(u.$elm$, c.$elm$), u = t[--l], d = s[++r];
|
|
3086
3086
|
else {
|
|
3087
3087
|
for (o = -1, a = n; a <= l; ++a)
|
|
3088
3088
|
if (t[a] && t[a].$key$ !== null && t[a].$key$ === d.$key$) {
|
|
3089
3089
|
o = a;
|
|
3090
3090
|
break;
|
|
3091
3091
|
}
|
|
3092
|
-
o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? v = Et(t && t[r], e, o, i) : (
|
|
3092
|
+
o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? v = Et(t && t[r], e, o, i) : (W(g, d), t[o] = void 0, v = g.$elm$), d = s[++r]) : (v = Et(t && t[r], e, r, i), d = s[++r]), v && qi(c.$elm$).insertBefore(v, pe(c.$elm$));
|
|
3093
3093
|
}
|
|
3094
3094
|
n > l ? Di(i, s[h + 1] == null ? null : s[h + 1].$elm$, e, s, r, h) : r > h && Wi(t, n, l);
|
|
3095
|
-
}, vt = (i, t) => i.$tag$ === t.$tag$ ? i.$tag$ === "slot" ? i.$name$ === t.$name$ : i.$key$ === t.$key$ : !1, pe = (i) => i && i["s-ol"] || i, qi = (i) => (i["s-ol"] ? i["s-ol"] : i).parentNode,
|
|
3095
|
+
}, vt = (i, t) => i.$tag$ === t.$tag$ ? i.$tag$ === "slot" ? i.$name$ === t.$name$ : i.$key$ === t.$key$ : !1, pe = (i) => i && i["s-ol"] || i, qi = (i) => (i["s-ol"] ? i["s-ol"] : i).parentNode, W = (i, t) => {
|
|
3096
3096
|
const e = t.$elm$ = i.$elm$, s = i.$children$, n = t.$children$, r = t.$tag$, o = t.$text$;
|
|
3097
3097
|
let a;
|
|
3098
3098
|
o === null ? (b = r === "svg" ? !0 : r === "foreignObject" ? !1 : b, r === "slot" || zi(i, t, b), s !== null && n !== null ? Yn(e, s, t, n) : n !== null ? (i.$text$ !== null && (e.textContent = ""), Di(e, null, t, n, 0, n.length - 1)) : s !== null && Wi(s, 0, s.length - 1), b && r === "svg" && (b = !1)) : (a = e["s-cr"]) ? a.parentNode.textContent = o : i.$text$ !== o && (e.data = o);
|
|
@@ -3132,8 +3132,8 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
|
|
|
3132
3132
|
}, Xe = (i, t) => i.nodeType === 1 ? i.getAttribute("slot") === null && t === "" || i.getAttribute("slot") === t : i["s-sn"] === t ? !0 : t === "", Ki = (i) => {
|
|
3133
3133
|
i.$attrs$ && i.$attrs$.ref && i.$attrs$.ref(null), i.$children$ && i.$children$.map(Ki);
|
|
3134
3134
|
}, Kn = (i, t) => {
|
|
3135
|
-
const e = i.$hostElement$, s = i.$cmpMeta$, n = i.$vnode$ || Ct(null, null), r = Dn(t) ? t :
|
|
3136
|
-
|
|
3135
|
+
const e = i.$hostElement$, s = i.$cmpMeta$, n = i.$vnode$ || Ct(null, null), r = Dn(t) ? t : G(null, null, t);
|
|
3136
|
+
Lt = e.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = e[o])), r.$tag$ = null, r.$flags$ |= 4, i.$vnode$ = r, r.$elm$ = n.$elm$ = e.shadowRoot || e, D = e["s-sc"], ji = e["s-cr"], Ni = (s.$flags$ & 1) !== 0, kt = !1, W(n, r);
|
|
3137
3137
|
{
|
|
3138
3138
|
if (y.$flags$ |= 1, he) {
|
|
3139
3139
|
Yi(r.$elm$);
|
|
@@ -3166,11 +3166,11 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
|
|
|
3166
3166
|
}, Qn = (i, t, e) => {
|
|
3167
3167
|
const s = y.ce(t, e);
|
|
3168
3168
|
return i.dispatchEvent(s), s;
|
|
3169
|
-
},
|
|
3170
|
-
}, Zi = (i, t) => (i.$flags$ |= 16,
|
|
3169
|
+
}, Jn = (i, t) => {
|
|
3170
|
+
}, Zi = (i, t) => (i.$flags$ |= 16, Jn(i, i.$ancestorComponent$), vr(() => Vn(i, t))), Vn = (i, t) => {
|
|
3171
3171
|
const e = i.$hostElement$, s = N("scheduleUpdate", i.$cmpMeta$.$tagName$), n = e;
|
|
3172
3172
|
let r;
|
|
3173
|
-
return t ? r =
|
|
3173
|
+
return t ? r = Y(n, "componentWillLoad") : r = Y(n, "componentWillUpdate"), r = Qe(r, () => Y(n, "componentWillRender")), s(), Qe(r, () => tr(i, n, t));
|
|
3174
3174
|
}, tr = async (i, t, e) => {
|
|
3175
3175
|
const s = i.$hostElement$, n = N("update", i.$cmpMeta$.$tagName$);
|
|
3176
3176
|
s["s-rc"], e && Nn(i);
|
|
@@ -3178,15 +3178,15 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
|
|
|
3178
3178
|
er(i, t, s), r(), n(), ir(i);
|
|
3179
3179
|
}, er = (i, t, e) => {
|
|
3180
3180
|
try {
|
|
3181
|
-
De = t, t = t.render && t.render(), i.$flags$ &= -17, i.$flags$ |= 2, (
|
|
3181
|
+
De = t, t = t.render && t.render(), i.$flags$ &= -17, i.$flags$ |= 2, (z.hasRenderFn || z.reflect) && (z.vdomRender || z.reflect) && (z.hydrateServerSide || Kn(i, t));
|
|
3182
3182
|
} catch (a) {
|
|
3183
3183
|
dt(a, i.$hostElement$);
|
|
3184
3184
|
}
|
|
3185
3185
|
return De = null, null;
|
|
3186
3186
|
}, ir = (i) => {
|
|
3187
3187
|
const t = i.$cmpMeta$.$tagName$, e = i.$hostElement$, s = N("postUpdate", t), n = e;
|
|
3188
|
-
i.$ancestorComponent$,
|
|
3189
|
-
},
|
|
3188
|
+
i.$ancestorComponent$, Y(n, "componentDidRender"), i.$flags$ & 64 ? (Y(n, "componentDidUpdate"), s()) : (i.$flags$ |= 64, Y(n, "componentDidLoad"), s());
|
|
3189
|
+
}, Y = (i, t, e) => {
|
|
3190
3190
|
if (i && i[t])
|
|
3191
3191
|
try {
|
|
3192
3192
|
return i[t](e);
|
|
@@ -3316,8 +3316,8 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
|
|
|
3316
3316
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
3317
3317
|
};
|
|
3318
3318
|
return Bi(i, e, t.$listeners$), Qi.set(i, e);
|
|
3319
|
-
},
|
|
3320
|
-
i.push(e),
|
|
3319
|
+
}, Je = (i, t) => t in i, dt = (i, t) => (0, console.error)(i, t), Ot = /* @__PURE__ */ new Map(), fr = [], Ve = [], Ji = [], pr = (i, t) => (e) => {
|
|
3320
|
+
i.push(e), Jt || (Jt = !0, t && y.$flags$ & 4 ? gr(Vt) : y.raf(Vt));
|
|
3321
3321
|
}, ti = (i) => {
|
|
3322
3322
|
for (let t = 0; t < i.length; t++)
|
|
3323
3323
|
try {
|
|
@@ -3326,9 +3326,9 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
|
|
|
3326
3326
|
dt(e);
|
|
3327
3327
|
}
|
|
3328
3328
|
i.length = 0;
|
|
3329
|
-
},
|
|
3330
|
-
ti(
|
|
3331
|
-
}, gr = (i) => Pn().then(i), vr = /* @__PURE__ */ pr(
|
|
3329
|
+
}, Vt = () => {
|
|
3330
|
+
ti(Ve), ti(Ji), (Jt = Ve.length > 0) && y.raf(Vt);
|
|
3331
|
+
}, gr = (i) => Pn().then(i), vr = /* @__PURE__ */ pr(Ji, !0), $r = (i = {}) => {
|
|
3332
3332
|
const { content: t = "", title: e, attributes: s = [] } = i;
|
|
3333
3333
|
let n = "", r = [
|
|
3334
3334
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
@@ -3353,7 +3353,7 @@ const wr = "telia-vst{display:none}", _r = /* @__PURE__ */ Xi(class extends Fi {
|
|
|
3353
3353
|
this.vocaInternalUStats.emit(new br(this.dataTrackingId));
|
|
3354
3354
|
}
|
|
3355
3355
|
render() {
|
|
3356
|
-
return
|
|
3356
|
+
return G(fe, null);
|
|
3357
3357
|
}
|
|
3358
3358
|
static get style() {
|
|
3359
3359
|
return wr;
|
|
@@ -3361,7 +3361,7 @@ const wr = "telia-vst{display:none}", _r = /* @__PURE__ */ Xi(class extends Fi {
|
|
|
3361
3361
|
}, [0, "telia-vst", {
|
|
3362
3362
|
dataTrackingId: [1, "data-tracking-id"]
|
|
3363
3363
|
}]);
|
|
3364
|
-
function
|
|
3364
|
+
function Vi() {
|
|
3365
3365
|
if (typeof customElements > "u")
|
|
3366
3366
|
return;
|
|
3367
3367
|
["telia-vst"].forEach((t) => {
|
|
@@ -3372,7 +3372,7 @@ function Ji() {
|
|
|
3372
3372
|
}
|
|
3373
3373
|
});
|
|
3374
3374
|
}
|
|
3375
|
-
|
|
3375
|
+
Vi();
|
|
3376
3376
|
function te() {
|
|
3377
3377
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
|
3378
3378
|
}
|
|
@@ -3412,7 +3412,7 @@ const Ar = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
3412
3412
|
attributes: t,
|
|
3413
3413
|
title: this.allyTitle
|
|
3414
3414
|
});
|
|
3415
|
-
return
|
|
3415
|
+
return G(fe, { class: `telia-icon telia-icon--${this.size}` }, G("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: e }), G("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
|
3416
3416
|
}
|
|
3417
3417
|
static get style() {
|
|
3418
3418
|
return Ar;
|
|
@@ -3433,7 +3433,7 @@ function Cr() {
|
|
|
3433
3433
|
customElements.get(t) || customElements.define(t, kr);
|
|
3434
3434
|
break;
|
|
3435
3435
|
case "telia-vst":
|
|
3436
|
-
customElements.get(t) ||
|
|
3436
|
+
customElements.get(t) || Vi();
|
|
3437
3437
|
break;
|
|
3438
3438
|
}
|
|
3439
3439
|
});
|
|
@@ -3500,14 +3500,14 @@ class Pr {
|
|
|
3500
3500
|
return this._options.length > 0;
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
|
-
var
|
|
3503
|
+
var Ir = Object.defineProperty, ft = (i, t, e, s) => {
|
|
3504
3504
|
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
3505
3505
|
(o = i[r]) && (n = o(t, e, n) || n);
|
|
3506
|
-
return n &&
|
|
3506
|
+
return n && Ir(t, e, n), n;
|
|
3507
3507
|
};
|
|
3508
3508
|
const ei = Ui(A), be = class be extends ei {
|
|
3509
3509
|
constructor() {
|
|
3510
|
-
super(...arguments), this.optionsIsVisible = !1, this.authState =
|
|
3510
|
+
super(...arguments), this.optionsIsVisible = !1, this.authState = et.NonAuthenticated, this.userName = "", this.authUrl = "", this.showAuthOptions = !0, this.shouldUseAuth = !1, this.options = new Pr(this), this.optionsRef = _t(), this.optionsTriggerRef = _t(), this.actions$ = new ut(), this.onClickOutside = (t) => {
|
|
3511
3511
|
!this.optionsTriggerRef.value || !this.optionsRef.value || t.composedPath().includes(this.optionsTriggerRef.value) || t.composedPath().includes(this.optionsRef.value) || (this.optionsIsVisible = !1);
|
|
3512
3512
|
}, this.onGlobalKeyDown = (t) => {
|
|
3513
3513
|
var e, s;
|
|
@@ -3540,23 +3540,17 @@ const ei = Ui(A), be = class be extends ei {
|
|
|
3540
3540
|
}), this.application.storage.set("open", !1));
|
|
3541
3541
|
}
|
|
3542
3542
|
notify(t, e = {}) {
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
s
|
|
3551
|
-
);
|
|
3552
|
-
}
|
|
3543
|
+
window != null && window.parent && window.parent.postMessage(
|
|
3544
|
+
{
|
|
3545
|
+
type: t,
|
|
3546
|
+
data: e
|
|
3547
|
+
},
|
|
3548
|
+
"*"
|
|
3549
|
+
);
|
|
3553
3550
|
}
|
|
3554
3551
|
onStartAuth() {
|
|
3555
3552
|
this.actions$.next({ key: "start-auth" }), this.optionsIsVisible = !1;
|
|
3556
3553
|
}
|
|
3557
|
-
onLogoutAuth() {
|
|
3558
|
-
this.actions$.next({ key: "logout-auth" }), this.optionsIsVisible = !1;
|
|
3559
|
-
}
|
|
3560
3554
|
handleFocusTrap(t) {
|
|
3561
3555
|
var o, a;
|
|
3562
3556
|
const e = (o = this.optionsRef.value) == null ? void 0 : o.querySelectorAll(
|
|
@@ -3567,7 +3561,7 @@ const ei = Ui(A), be = class be extends ei {
|
|
|
3567
3561
|
t.shiftKey ? r === s && (t.preventDefault(), n.focus()) : r === n && (t.preventDefault(), s.focus());
|
|
3568
3562
|
}
|
|
3569
3563
|
renderAuthSection(t) {
|
|
3570
|
-
return !this.showAuthOptions || !(this.shouldUseAuth && this.authState !==
|
|
3564
|
+
return !this.showAuthOptions || !(this.shouldUseAuth && this.authState !== et.ChatEnded) ? p : m`<div class="options-menu__auth-container">
|
|
3571
3565
|
<p class="options-menu__auth-helper-text" data-testid="auth-helper-text">
|
|
3572
3566
|
${t.getOrFallback(
|
|
3573
3567
|
"widget-header.authentication-text",
|
|
@@ -3578,7 +3572,7 @@ const ei = Ui(A), be = class be extends ei {
|
|
|
3578
3572
|
</div>`;
|
|
3579
3573
|
}
|
|
3580
3574
|
renderAuthStatus(t) {
|
|
3581
|
-
return this.authState ===
|
|
3575
|
+
return this.authState === et.NonAuthenticated ? m` <div class="options-menu__auth">
|
|
3582
3576
|
<p class="options-menu__auth-status" data-testid="auth-status">
|
|
3583
3577
|
${t.getOrFallback(
|
|
3584
3578
|
"widget-header.not-authenticated",
|
|
@@ -3598,14 +3592,6 @@ const ei = Ui(A), be = class be extends ei {
|
|
|
3598
3592
|
<p class="options-menu__auth-status" data-testid="auth-status">
|
|
3599
3593
|
${this.userName}
|
|
3600
3594
|
</p>
|
|
3601
|
-
${this.authState === z.Authenticated ? m`<button
|
|
3602
|
-
type="button"
|
|
3603
|
-
@click=${this.onLogoutAuth}
|
|
3604
|
-
class="options-menu__auth-link"
|
|
3605
|
-
data-testid="auth-link"
|
|
3606
|
-
>
|
|
3607
|
-
${t.getOrFallback("widget-header.log-out", "Log out")}
|
|
3608
|
-
</button>` : p}
|
|
3609
3595
|
</div>`;
|
|
3610
3596
|
}
|
|
3611
3597
|
setFocusToOptionsTitle() {
|
|
@@ -3618,7 +3604,7 @@ const ei = Ui(A), be = class be extends ei {
|
|
|
3618
3604
|
const t = this.application.storage.get(
|
|
3619
3605
|
"auth"
|
|
3620
3606
|
);
|
|
3621
|
-
t != null && t.authenticated && (this.userName = (t == null ? void 0 : t.name) ?? "", this.authState =
|
|
3607
|
+
t != null && t.authenticated && (this.userName = (t == null ? void 0 : t.name) ?? "", this.authState = et.Authenticated), document.addEventListener("click", this.onClickOutside), window.addEventListener("keydown", this.onGlobalKeyDown);
|
|
3622
3608
|
}
|
|
3623
3609
|
updated(t) {
|
|
3624
3610
|
super.updated(t), this.optionsIsVisible && this.optionsRef.value && this.setFocusToOptionsTitle();
|
|
@@ -3853,8 +3839,8 @@ be.styles = [
|
|
|
3853
3839
|
|
|
3854
3840
|
.options-menu__item:disabled,
|
|
3855
3841
|
.options-menu__item[disabled] {
|
|
3856
|
-
cursor:
|
|
3857
|
-
|
|
3842
|
+
cursor: not-allowed;
|
|
3843
|
+
opacity: 0.5;
|
|
3858
3844
|
}
|
|
3859
3845
|
`
|
|
3860
3846
|
];
|