@telia-ace/widget-components-copyright-flamingo 1.1.82-rc.6 → 1.1.82-rc.7
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.
|
@@ -5,7 +5,7 @@ var dt = function(s, t) {
|
|
|
5
5
|
for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
|
6
6
|
}, dt(s, t);
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function D(s, t) {
|
|
9
9
|
if (typeof t != "function" && t !== null)
|
|
10
10
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
11
11
|
dt(s, t);
|
|
@@ -171,7 +171,7 @@ var he = {
|
|
|
171
171
|
Promise: void 0,
|
|
172
172
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
173
173
|
useDeprecatedNextContext: !1
|
|
174
|
-
},
|
|
174
|
+
}, Ee = {
|
|
175
175
|
setTimeout: function(s, t) {
|
|
176
176
|
for (var e = [], i = 2; i < arguments.length; i++)
|
|
177
177
|
e[i - 2] = arguments[i];
|
|
@@ -182,21 +182,21 @@ var he = {
|
|
|
182
182
|
},
|
|
183
183
|
delegate: void 0
|
|
184
184
|
};
|
|
185
|
-
function
|
|
186
|
-
|
|
185
|
+
function Se(s) {
|
|
186
|
+
Ee.setTimeout(function() {
|
|
187
187
|
throw s;
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
function Lt() {
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function W(s) {
|
|
193
193
|
s();
|
|
194
194
|
}
|
|
195
195
|
var le = function(s) {
|
|
196
|
-
|
|
196
|
+
D(t, s);
|
|
197
197
|
function t(e) {
|
|
198
198
|
var i = s.call(this) || this;
|
|
199
|
-
return i.isStopped = !1, e ? (i.destination = e, ce(e) && e.add(i)) : i.destination =
|
|
199
|
+
return i.isStopped = !1, e ? (i.destination = e, ce(e) && e.add(i)) : i.destination = Te, i;
|
|
200
200
|
}
|
|
201
201
|
return t.create = function(e, i, r) {
|
|
202
202
|
return new vt(e, i, r);
|
|
@@ -223,11 +223,11 @@ var le = function(s) {
|
|
|
223
223
|
this.unsubscribe();
|
|
224
224
|
}
|
|
225
225
|
}, t;
|
|
226
|
-
}(tt),
|
|
226
|
+
}(tt), Pe = Function.prototype.bind;
|
|
227
227
|
function st(s, t) {
|
|
228
|
-
return
|
|
228
|
+
return Pe.call(s, t);
|
|
229
229
|
}
|
|
230
|
-
var
|
|
230
|
+
var ke = function() {
|
|
231
231
|
function s(t) {
|
|
232
232
|
this.partialObserver = t;
|
|
233
233
|
}
|
|
@@ -237,7 +237,7 @@ var Pe = function() {
|
|
|
237
237
|
try {
|
|
238
238
|
e.next(t);
|
|
239
239
|
} catch (i) {
|
|
240
|
-
|
|
240
|
+
Z(i);
|
|
241
241
|
}
|
|
242
242
|
}, s.prototype.error = function(t) {
|
|
243
243
|
var e = this.partialObserver;
|
|
@@ -245,21 +245,21 @@ var Pe = function() {
|
|
|
245
245
|
try {
|
|
246
246
|
e.error(t);
|
|
247
247
|
} catch (i) {
|
|
248
|
-
|
|
248
|
+
Z(i);
|
|
249
249
|
}
|
|
250
250
|
else
|
|
251
|
-
|
|
251
|
+
Z(t);
|
|
252
252
|
}, s.prototype.complete = function() {
|
|
253
253
|
var t = this.partialObserver;
|
|
254
254
|
if (t.complete)
|
|
255
255
|
try {
|
|
256
256
|
t.complete();
|
|
257
257
|
} catch (e) {
|
|
258
|
-
|
|
258
|
+
Z(e);
|
|
259
259
|
}
|
|
260
260
|
}, s;
|
|
261
261
|
}(), vt = function(s) {
|
|
262
|
-
|
|
262
|
+
D(t, s);
|
|
263
263
|
function t(e, i, r) {
|
|
264
264
|
var n = s.call(this) || this, o;
|
|
265
265
|
if (b(e) || !e)
|
|
@@ -278,29 +278,29 @@ var Pe = function() {
|
|
|
278
278
|
complete: e.complete && st(e.complete, a)
|
|
279
279
|
}) : o = e;
|
|
280
280
|
}
|
|
281
|
-
return n.destination = new
|
|
281
|
+
return n.destination = new ke(o), n;
|
|
282
282
|
}
|
|
283
283
|
return t;
|
|
284
284
|
}(le);
|
|
285
|
-
function
|
|
286
|
-
|
|
285
|
+
function Z(s) {
|
|
286
|
+
Se(s);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Oe(s) {
|
|
289
289
|
throw s;
|
|
290
290
|
}
|
|
291
|
-
var
|
|
291
|
+
var Te = {
|
|
292
292
|
closed: !0,
|
|
293
293
|
next: Lt,
|
|
294
|
-
error:
|
|
294
|
+
error: Oe,
|
|
295
295
|
complete: Lt
|
|
296
|
-
},
|
|
296
|
+
}, Me = function() {
|
|
297
297
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
298
298
|
}();
|
|
299
|
-
function
|
|
299
|
+
function He(s) {
|
|
300
300
|
return s;
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
return s.length === 0 ?
|
|
302
|
+
function Le(s) {
|
|
303
|
+
return s.length === 0 ? He : s.length === 1 ? s[0] : function(e) {
|
|
304
304
|
return s.reduce(function(i, r) {
|
|
305
305
|
return r(i);
|
|
306
306
|
}, e);
|
|
@@ -314,8 +314,8 @@ var Ut = function() {
|
|
|
314
314
|
var e = new s();
|
|
315
315
|
return e.source = this, e.operator = t, e;
|
|
316
316
|
}, s.prototype.subscribe = function(t, e, i) {
|
|
317
|
-
var r = this, n =
|
|
318
|
-
return
|
|
317
|
+
var r = this, n = Re(t) ? t : new vt(t, e, i);
|
|
318
|
+
return W(function() {
|
|
319
319
|
var o = r, a = o.operator, c = o.source;
|
|
320
320
|
n.add(a ? a.call(n, c) : c ? r._subscribe(n) : r._trySubscribe(n));
|
|
321
321
|
}), n;
|
|
@@ -344,12 +344,12 @@ var Ut = function() {
|
|
|
344
344
|
}, s.prototype._subscribe = function(t) {
|
|
345
345
|
var e;
|
|
346
346
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
|
347
|
-
}, s.prototype[
|
|
347
|
+
}, s.prototype[Me] = function() {
|
|
348
348
|
return this;
|
|
349
349
|
}, s.prototype.pipe = function() {
|
|
350
350
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
351
351
|
t[e] = arguments[e];
|
|
352
|
-
return
|
|
352
|
+
return Le(t)(this);
|
|
353
353
|
}, s.prototype.toPromise = function(t) {
|
|
354
354
|
var e = this;
|
|
355
355
|
return t = Rt(t), new t(function(i, r) {
|
|
@@ -370,18 +370,18 @@ function Rt(s) {
|
|
|
370
370
|
var t;
|
|
371
371
|
return (t = s ?? he.Promise) !== null && t !== void 0 ? t : Promise;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Ue(s) {
|
|
374
374
|
return s && b(s.next) && b(s.error) && b(s.complete);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
return s && s instanceof le ||
|
|
376
|
+
function Re(s) {
|
|
377
|
+
return s && s instanceof le || Ue(s) && ce(s);
|
|
378
378
|
}
|
|
379
|
-
var
|
|
379
|
+
var je = oe(function(s) {
|
|
380
380
|
return function() {
|
|
381
381
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
382
382
|
};
|
|
383
383
|
}), bt = function(s) {
|
|
384
|
-
|
|
384
|
+
D(t, s);
|
|
385
385
|
function t() {
|
|
386
386
|
var e = s.call(this) || this;
|
|
387
387
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
@@ -391,10 +391,10 @@ var Re = oe(function(s) {
|
|
|
391
391
|
return i.operator = e, i;
|
|
392
392
|
}, t.prototype._throwIfClosed = function() {
|
|
393
393
|
if (this.closed)
|
|
394
|
-
throw new
|
|
394
|
+
throw new je();
|
|
395
395
|
}, t.prototype.next = function(e) {
|
|
396
396
|
var i = this;
|
|
397
|
-
|
|
397
|
+
W(function() {
|
|
398
398
|
var r, n;
|
|
399
399
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
400
400
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
@@ -416,7 +416,7 @@ var Re = oe(function(s) {
|
|
|
416
416
|
});
|
|
417
417
|
}, t.prototype.error = function(e) {
|
|
418
418
|
var i = this;
|
|
419
|
-
|
|
419
|
+
W(function() {
|
|
420
420
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
421
421
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
|
422
422
|
for (var r = i.observers; r.length; )
|
|
@@ -425,7 +425,7 @@ var Re = oe(function(s) {
|
|
|
425
425
|
});
|
|
426
426
|
}, t.prototype.complete = function() {
|
|
427
427
|
var e = this;
|
|
428
|
-
|
|
428
|
+
W(function() {
|
|
429
429
|
if (e._throwIfClosed(), !e.isStopped) {
|
|
430
430
|
e.isStopped = !0;
|
|
431
431
|
for (var i = e.observers; i.length; )
|
|
@@ -460,7 +460,7 @@ var Re = oe(function(s) {
|
|
|
460
460
|
return new jt(e, i);
|
|
461
461
|
}, t;
|
|
462
462
|
}(Ut), jt = function(s) {
|
|
463
|
-
|
|
463
|
+
D(t, s);
|
|
464
464
|
function t(e, i) {
|
|
465
465
|
var r = s.call(this) || this;
|
|
466
466
|
return r.destination = e, r.source = i, r;
|
|
@@ -478,8 +478,8 @@ var Re = oe(function(s) {
|
|
|
478
478
|
var i, r;
|
|
479
479
|
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : ae;
|
|
480
480
|
}, t;
|
|
481
|
-
}(bt),
|
|
482
|
-
|
|
481
|
+
}(bt), Ne = function(s) {
|
|
482
|
+
D(t, s);
|
|
483
483
|
function t(e) {
|
|
484
484
|
var i = s.call(this) || this;
|
|
485
485
|
return i._value = e, i;
|
|
@@ -507,7 +507,7 @@ var Re = oe(function(s) {
|
|
|
507
507
|
* Copyright 2019 Google LLC
|
|
508
508
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
509
509
|
*/
|
|
510
|
-
const
|
|
510
|
+
const q = globalThis, $t = q.ShadowRoot && (q.ShadyCSS === void 0 || q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _t = Symbol(), Nt = /* @__PURE__ */ new WeakMap();
|
|
511
511
|
let de = class {
|
|
512
512
|
constructor(t, e, i) {
|
|
513
513
|
if (this._$cssResult$ = !0, i !== _t) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -526,33 +526,33 @@ let de = class {
|
|
|
526
526
|
return this.cssText;
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
|
-
const
|
|
529
|
+
const Ie = (s) => new de(typeof s == "string" ? s : s + "", void 0, _t), k = (s, ...t) => {
|
|
530
530
|
const e = s.length === 1 ? s[0] : t.reduce((i, r, n) => i + ((o) => {
|
|
531
531
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
532
532
|
if (typeof o == "number") return o;
|
|
533
533
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
534
534
|
})(r) + s[n + 1], s[0]);
|
|
535
535
|
return new de(e, s, _t);
|
|
536
|
-
},
|
|
536
|
+
}, Be = (s, t) => {
|
|
537
537
|
if ($t) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
538
538
|
else for (const e of t) {
|
|
539
|
-
const i = document.createElement("style"), r =
|
|
539
|
+
const i = document.createElement("style"), r = q.litNonce;
|
|
540
540
|
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
|
541
541
|
}
|
|
542
542
|
}, It = $t ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
|
543
543
|
let e = "";
|
|
544
544
|
for (const i of t.cssRules) e += i.cssText;
|
|
545
|
-
return
|
|
545
|
+
return Ie(e);
|
|
546
546
|
})(s) : s;
|
|
547
547
|
/**
|
|
548
548
|
* @license
|
|
549
549
|
* Copyright 2017 Google LLC
|
|
550
550
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
551
551
|
*/
|
|
552
|
-
const { is:
|
|
552
|
+
const { is: Ve, defineProperty: ze, getOwnPropertyDescriptor: De, getOwnPropertyNames: Fe, getOwnPropertySymbols: Ye, getPrototypeOf: Ze } = Object, w = globalThis, Bt = w.trustedTypes, We = Bt ? Bt.emptyScript : "", rt = w.reactiveElementPolyfillSupport, R = (s, t) => s, K = { toAttribute(s, t) {
|
|
553
553
|
switch (t) {
|
|
554
554
|
case Boolean:
|
|
555
|
-
s = s ?
|
|
555
|
+
s = s ? We : null;
|
|
556
556
|
break;
|
|
557
557
|
case Object:
|
|
558
558
|
case Array:
|
|
@@ -577,7 +577,7 @@ const { is: Be, defineProperty: Ve, getOwnPropertyDescriptor: ze, getOwnProperty
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
return e;
|
|
580
|
-
} }, wt = (s, t) => !
|
|
580
|
+
} }, wt = (s, t) => !Ve(s, t), Vt = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: wt };
|
|
581
581
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
582
582
|
let T = class extends HTMLElement {
|
|
583
583
|
static addInitializer(t) {
|
|
@@ -589,11 +589,11 @@ let T = class extends HTMLElement {
|
|
|
589
589
|
static createProperty(t, e = Vt) {
|
|
590
590
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
591
591
|
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
|
592
|
-
r !== void 0 &&
|
|
592
|
+
r !== void 0 && ze(this.prototype, t, r);
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
static getPropertyDescriptor(t, e, i) {
|
|
596
|
-
const { get: r, set: n } =
|
|
596
|
+
const { get: r, set: n } = De(this.prototype, t) ?? { get() {
|
|
597
597
|
return this[e];
|
|
598
598
|
}, set(o) {
|
|
599
599
|
this[e] = o;
|
|
@@ -610,13 +610,13 @@ let T = class extends HTMLElement {
|
|
|
610
610
|
}
|
|
611
611
|
static _$Ei() {
|
|
612
612
|
if (this.hasOwnProperty(R("elementProperties"))) return;
|
|
613
|
-
const t =
|
|
613
|
+
const t = Ze(this);
|
|
614
614
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
615
615
|
}
|
|
616
616
|
static finalize() {
|
|
617
617
|
if (this.hasOwnProperty(R("finalized"))) return;
|
|
618
618
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(R("properties"))) {
|
|
619
|
-
const e = this.properties, i = [...
|
|
619
|
+
const e = this.properties, i = [...Fe(e), ...Ye(e)];
|
|
620
620
|
for (const r of i) this.createProperty(r, e[r]);
|
|
621
621
|
}
|
|
622
622
|
const t = this[Symbol.metadata];
|
|
@@ -665,7 +665,7 @@ let T = class extends HTMLElement {
|
|
|
665
665
|
}
|
|
666
666
|
createRenderRoot() {
|
|
667
667
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
668
|
-
return
|
|
668
|
+
return Be(t, this.constructor.elementStyles), t;
|
|
669
669
|
}
|
|
670
670
|
connectedCallback() {
|
|
671
671
|
var t;
|
|
@@ -690,7 +690,7 @@ let T = class extends HTMLElement {
|
|
|
690
690
|
var n;
|
|
691
691
|
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
|
692
692
|
if (r !== void 0 && i.reflect === !0) {
|
|
693
|
-
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter :
|
|
693
|
+
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : K).toAttribute(e, i.type);
|
|
694
694
|
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
|
695
695
|
}
|
|
696
696
|
}
|
|
@@ -698,7 +698,7 @@ let T = class extends HTMLElement {
|
|
|
698
698
|
var n;
|
|
699
699
|
const i = this.constructor, r = i._$Eh.get(t);
|
|
700
700
|
if (r !== void 0 && this._$Em !== r) {
|
|
701
|
-
const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter :
|
|
701
|
+
const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : K;
|
|
702
702
|
this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
|
|
703
703
|
}
|
|
704
704
|
}
|
|
@@ -783,14 +783,14 @@ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProper
|
|
|
783
783
|
* Copyright 2017 Google LLC
|
|
784
784
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
785
785
|
*/
|
|
786
|
-
const j = globalThis,
|
|
786
|
+
const j = globalThis, G = j.trustedTypes, zt = G ? G.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, pe = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, ue = "?" + _, qe = `<${ue}>`, S = document, I = () => S.createComment(""), B = (s) => s === null || typeof s != "object" && typeof s != "function", At = Array.isArray, Ke = (s) => At(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", nt = `[
|
|
787
787
|
\f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Dt = /-->/g, Ft = />/g, A = RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^
|
|
788
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Yt = /'/g, Zt = /"/g, fe = /^(?:script|style|textarea|title)$/i, ge = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), x = ge(1),
|
|
788
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Yt = /'/g, Zt = /"/g, fe = /^(?:script|style|textarea|title)$/i, ge = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), x = ge(1), Ge = ge(2), P = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Wt = /* @__PURE__ */ new WeakMap(), E = S.createTreeWalker(S, 129);
|
|
789
789
|
function ve(s, t) {
|
|
790
790
|
if (!At(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
791
791
|
return zt !== void 0 ? zt.createHTML(t) : t;
|
|
792
792
|
}
|
|
793
|
-
const
|
|
793
|
+
const Xe = (s, t) => {
|
|
794
794
|
const e = s.length - 1, i = [];
|
|
795
795
|
let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = U;
|
|
796
796
|
for (let a = 0; a < e; a++) {
|
|
@@ -798,7 +798,7 @@ const Ge = (s, t) => {
|
|
|
798
798
|
let h, l, d = -1, u = 0;
|
|
799
799
|
for (; u < c.length && (o.lastIndex = u, l = o.exec(c), l !== null); ) u = o.lastIndex, o === U ? l[1] === "!--" ? o = Dt : l[1] !== void 0 ? o = Ft : l[2] !== void 0 ? (fe.test(l[2]) && (r = RegExp("</" + l[2], "g")), o = A) : l[3] !== void 0 && (o = A) : o === A ? l[0] === ">" ? (o = r ?? U, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? A : l[3] === '"' ? Zt : Yt) : o === Zt || o === Yt ? o = A : o === Dt || o === Ft ? o = U : (o = A, r = void 0);
|
|
800
800
|
const f = o === A && s[a + 1].startsWith("/>") ? " " : "";
|
|
801
|
-
n += o === U ? c +
|
|
801
|
+
n += o === U ? c + qe : d >= 0 ? (i.push(h), c.slice(0, d) + pe + c.slice(d) + _ + f) : c + _ + (d === -2 ? a : f);
|
|
802
802
|
}
|
|
803
803
|
return [ve(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
804
804
|
};
|
|
@@ -807,7 +807,7 @@ let mt = class me {
|
|
|
807
807
|
let r;
|
|
808
808
|
this.parts = [];
|
|
809
809
|
let n = 0, o = 0;
|
|
810
|
-
const a = t.length - 1, c = this.parts, [h, l] =
|
|
810
|
+
const a = t.length - 1, c = this.parts, [h, l] = Xe(t, e);
|
|
811
811
|
if (this.el = me.createElement(h, i), E.currentNode = this.el.content, e === 2 || e === 3) {
|
|
812
812
|
const d = this.el.content.firstChild;
|
|
813
813
|
d.replaceWith(...d.childNodes);
|
|
@@ -816,12 +816,12 @@ let mt = class me {
|
|
|
816
816
|
if (r.nodeType === 1) {
|
|
817
817
|
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(pe)) {
|
|
818
818
|
const u = l[o++], f = r.getAttribute(d).split(_), O = /([.?@])?(.*)/.exec(u);
|
|
819
|
-
c.push({ type: 1, index: n, name: O[2], strings: f, ctor: O[1] === "." ?
|
|
819
|
+
c.push({ type: 1, index: n, name: O[2], strings: f, ctor: O[1] === "." ? Qe : O[1] === "?" ? ti : O[1] === "@" ? ei : et }), r.removeAttribute(d);
|
|
820
820
|
} else d.startsWith(_) && (c.push({ type: 6, index: n }), r.removeAttribute(d));
|
|
821
821
|
if (fe.test(r.tagName)) {
|
|
822
822
|
const d = r.textContent.split(_), u = d.length - 1;
|
|
823
823
|
if (u > 0) {
|
|
824
|
-
r.textContent =
|
|
824
|
+
r.textContent = G ? G.emptyScript : "";
|
|
825
825
|
for (let f = 0; f < u; f++) r.append(d[f], I()), E.nextNode(), c.push({ type: 2, index: ++n });
|
|
826
826
|
r.append(d[u], I());
|
|
827
827
|
}
|
|
@@ -846,7 +846,7 @@ function M(s, t, e = s, i) {
|
|
|
846
846
|
const n = B(t) ? void 0 : t._$litDirective$;
|
|
847
847
|
return (r == null ? void 0 : r.constructor) !== n && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = M(s, r._$AS(s, t.values), r, i)), t;
|
|
848
848
|
}
|
|
849
|
-
class
|
|
849
|
+
class Je {
|
|
850
850
|
constructor(t, e) {
|
|
851
851
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
852
852
|
}
|
|
@@ -863,7 +863,7 @@ class Xe {
|
|
|
863
863
|
for (; c !== void 0; ) {
|
|
864
864
|
if (o === c.index) {
|
|
865
865
|
let h;
|
|
866
|
-
c.type === 2 ? h = new
|
|
866
|
+
c.type === 2 ? h = new F(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new ii(n, this, t)), this._$AV.push(h), c = i[++a];
|
|
867
867
|
}
|
|
868
868
|
o !== (c == null ? void 0 : c.index) && (n = E.nextNode(), o++);
|
|
869
869
|
}
|
|
@@ -874,7 +874,7 @@ class Xe {
|
|
|
874
874
|
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++;
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
|
-
class
|
|
877
|
+
class F {
|
|
878
878
|
get _$AU() {
|
|
879
879
|
var t;
|
|
880
880
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -894,7 +894,7 @@ class D {
|
|
|
894
894
|
return this._$AB;
|
|
895
895
|
}
|
|
896
896
|
_$AI(t, e = this) {
|
|
897
|
-
t = M(this, t, e), B(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
|
897
|
+
t = M(this, t, e), B(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ke(t) ? this.k(t) : this._(t);
|
|
898
898
|
}
|
|
899
899
|
O(t) {
|
|
900
900
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -910,7 +910,7 @@ class D {
|
|
|
910
910
|
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = mt.createElement(ve(i.h, i.h[0]), this.options)), i);
|
|
911
911
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === r) this._$AH.p(e);
|
|
912
912
|
else {
|
|
913
|
-
const o = new
|
|
913
|
+
const o = new Je(r, this), a = o.u(this.options);
|
|
914
914
|
o.p(e), this.T(a), this._$AH = o;
|
|
915
915
|
}
|
|
916
916
|
}
|
|
@@ -922,7 +922,7 @@ class D {
|
|
|
922
922
|
At(this._$AH) || (this._$AH = [], this._$AR());
|
|
923
923
|
const e = this._$AH;
|
|
924
924
|
let i, r = 0;
|
|
925
|
-
for (const n of t) r === e.length ? e.push(i = new
|
|
925
|
+
for (const n of t) r === e.length ? e.push(i = new F(this.O(I()), this.O(I()), this, this.options)) : i = e[r], i._$AI(n), r++;
|
|
926
926
|
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
|
927
927
|
}
|
|
928
928
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -962,7 +962,7 @@ class et {
|
|
|
962
962
|
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
963
963
|
}
|
|
964
964
|
}
|
|
965
|
-
class
|
|
965
|
+
class Qe extends et {
|
|
966
966
|
constructor() {
|
|
967
967
|
super(...arguments), this.type = 3;
|
|
968
968
|
}
|
|
@@ -970,7 +970,7 @@ class Je extends et {
|
|
|
970
970
|
this.element[this.name] = t === p ? void 0 : t;
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
|
-
class
|
|
973
|
+
class ti extends et {
|
|
974
974
|
constructor() {
|
|
975
975
|
super(...arguments), this.type = 4;
|
|
976
976
|
}
|
|
@@ -978,7 +978,7 @@ class Qe extends et {
|
|
|
978
978
|
this.element.toggleAttribute(this.name, !!t && t !== p);
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
|
-
class
|
|
981
|
+
class ei extends et {
|
|
982
982
|
constructor(t, e, i, r, n) {
|
|
983
983
|
super(t, e, i, r, n), this.type = 5;
|
|
984
984
|
}
|
|
@@ -992,7 +992,7 @@ class ti extends et {
|
|
|
992
992
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
class
|
|
995
|
+
class ii {
|
|
996
996
|
constructor(t, e, i) {
|
|
997
997
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
998
998
|
}
|
|
@@ -1004,13 +1004,13 @@ class ei {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
1006
|
const ot = j.litHtmlPolyfillSupport;
|
|
1007
|
-
ot == null || ot(mt,
|
|
1008
|
-
const
|
|
1007
|
+
ot == null || ot(mt, F), (j.litHtmlVersions ?? (j.litHtmlVersions = [])).push("3.2.1");
|
|
1008
|
+
const si = (s, t, e) => {
|
|
1009
1009
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
1010
1010
|
let r = i._$litPart$;
|
|
1011
1011
|
if (r === void 0) {
|
|
1012
1012
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
1013
|
-
i._$litPart$ = r = new
|
|
1013
|
+
i._$litPart$ = r = new F(t.insertBefore(I(), n), n, void 0, e ?? {});
|
|
1014
1014
|
}
|
|
1015
1015
|
return r._$AI(s), r;
|
|
1016
1016
|
};
|
|
@@ -1030,7 +1030,7 @@ let m = class extends T {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
update(t) {
|
|
1032
1032
|
const e = this.render();
|
|
1033
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
1033
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = si(e, this.renderRoot, this.renderOptions);
|
|
1034
1034
|
}
|
|
1035
1035
|
connectedCallback() {
|
|
1036
1036
|
var t;
|
|
@@ -1054,7 +1054,7 @@ at == null || at({ LitElement: m });
|
|
|
1054
1054
|
* Copyright 2017 Google LLC
|
|
1055
1055
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1056
1056
|
*/
|
|
1057
|
-
const
|
|
1057
|
+
const ri = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: wt }, ni = (s = ri, t, e) => {
|
|
1058
1058
|
const { kind: i, metadata: r } = e;
|
|
1059
1059
|
let n = globalThis.litPropertyMetadata.get(r);
|
|
1060
1060
|
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), i === "accessor") {
|
|
@@ -1076,7 +1076,7 @@ const si = { attribute: !0, type: String, converter: q, reflect: !1, hasChanged:
|
|
|
1076
1076
|
throw Error("Unsupported decorator location: " + i);
|
|
1077
1077
|
};
|
|
1078
1078
|
function g(s) {
|
|
1079
|
-
return (t, e) => typeof e == "object" ?
|
|
1079
|
+
return (t, e) => typeof e == "object" ? ni(s, t, e) : ((i, r, n) => {
|
|
1080
1080
|
const o = r.hasOwnProperty(n);
|
|
1081
1081
|
return r.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
|
1082
1082
|
})(s, t, e);
|
|
@@ -1089,10 +1089,10 @@ function g(s) {
|
|
|
1089
1089
|
function L(s) {
|
|
1090
1090
|
return g({ ...s, state: !0, attribute: !1 });
|
|
1091
1091
|
}
|
|
1092
|
-
var
|
|
1092
|
+
var oi = Object.defineProperty, ai = (s, t, e, i) => {
|
|
1093
1093
|
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
|
1094
1094
|
(o = s[n]) && (r = o(t, e, r) || r);
|
|
1095
|
-
return r &&
|
|
1095
|
+
return r && oi(t, e, r), r;
|
|
1096
1096
|
};
|
|
1097
1097
|
const St = class St extends m {
|
|
1098
1098
|
constructor() {
|
|
@@ -1125,10 +1125,10 @@ St.styles = [
|
|
|
1125
1125
|
}
|
|
1126
1126
|
`
|
|
1127
1127
|
];
|
|
1128
|
-
let
|
|
1129
|
-
|
|
1128
|
+
let X = St;
|
|
1129
|
+
ai([
|
|
1130
1130
|
g({ attribute: !0 })
|
|
1131
|
-
],
|
|
1131
|
+
], X.prototype, "anchor");
|
|
1132
1132
|
/**
|
|
1133
1133
|
* @license
|
|
1134
1134
|
* Copyright 2017 Google LLC
|
|
@@ -1156,7 +1156,7 @@ let ye = class {
|
|
|
1156
1156
|
* Copyright 2020 Google LLC
|
|
1157
1157
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1158
1158
|
*/
|
|
1159
|
-
const
|
|
1159
|
+
const ci = (s) => s.strings === void 0;
|
|
1160
1160
|
/**
|
|
1161
1161
|
* @license
|
|
1162
1162
|
* Copyright 2017 Google LLC
|
|
@@ -1168,7 +1168,7 @@ const N = (s, t) => {
|
|
|
1168
1168
|
if (e === void 0) return !1;
|
|
1169
1169
|
for (const r of e) (i = r._$AO) == null || i.call(r, t, !1), N(r, t);
|
|
1170
1170
|
return !0;
|
|
1171
|
-
},
|
|
1171
|
+
}, J = (s) => {
|
|
1172
1172
|
let t, e;
|
|
1173
1173
|
do {
|
|
1174
1174
|
if ((t = s._$AM) === void 0) break;
|
|
@@ -1179,20 +1179,20 @@ const N = (s, t) => {
|
|
|
1179
1179
|
let e = t._$AN;
|
|
1180
1180
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
|
1181
1181
|
else if (e.has(s)) break;
|
|
1182
|
-
e.add(s),
|
|
1182
|
+
e.add(s), di(t);
|
|
1183
1183
|
}
|
|
1184
1184
|
};
|
|
1185
|
-
function
|
|
1186
|
-
this._$AN !== void 0 ? (
|
|
1185
|
+
function hi(s) {
|
|
1186
|
+
this._$AN !== void 0 ? (J(this), this._$AM = s, be(this)) : this._$AM = s;
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function li(s, t = !1, e = 0) {
|
|
1189
1189
|
const i = this._$AH, r = this._$AN;
|
|
1190
|
-
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) N(i[n], !1),
|
|
1191
|
-
else i != null && (N(i, !1),
|
|
1190
|
+
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) N(i[n], !1), J(i[n]);
|
|
1191
|
+
else i != null && (N(i, !1), J(i));
|
|
1192
1192
|
else N(this, s);
|
|
1193
1193
|
}
|
|
1194
|
-
const
|
|
1195
|
-
s.type == Ct.CHILD && (s._$AP ?? (s._$AP =
|
|
1194
|
+
const di = (s) => {
|
|
1195
|
+
s.type == Ct.CHILD && (s._$AP ?? (s._$AP = li), s._$AQ ?? (s._$AQ = hi));
|
|
1196
1196
|
};
|
|
1197
1197
|
class $e extends ye {
|
|
1198
1198
|
constructor() {
|
|
@@ -1203,10 +1203,10 @@ class $e extends ye {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
_$AO(t, e = !0) {
|
|
1205
1205
|
var i, r;
|
|
1206
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (N(this, t),
|
|
1206
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (N(this, t), J(this));
|
|
1207
1207
|
}
|
|
1208
1208
|
setValue(t) {
|
|
1209
|
-
if (
|
|
1209
|
+
if (ci(this._$Ct)) this._$Ct._$AI(t, this);
|
|
1210
1210
|
else {
|
|
1211
1211
|
const e = [...this._$Ct._$AH];
|
|
1212
1212
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
|
@@ -1217,9 +1217,9 @@ class $e extends ye {
|
|
|
1217
1217
|
reconnected() {
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
|
-
const
|
|
1220
|
+
const pi = /* @__PURE__ */ new WeakMap();
|
|
1221
1221
|
let qt = 0;
|
|
1222
|
-
const ct = /* @__PURE__ */ new Map(), Kt = /* @__PURE__ */ new WeakSet(), Gt = () => new Promise((s) => requestAnimationFrame(s)),
|
|
1222
|
+
const ct = /* @__PURE__ */ new Map(), Kt = /* @__PURE__ */ new WeakSet(), Gt = () => new Promise((s) => requestAnimationFrame(s)), ui = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Xt = (s, t) => {
|
|
1223
1223
|
const e = s - t;
|
|
1224
1224
|
return e === 0 ? void 0 : e;
|
|
1225
1225
|
}, Jt = (s, t) => {
|
|
@@ -1241,8 +1241,8 @@ const ct = /* @__PURE__ */ new Map(), Kt = /* @__PURE__ */ new WeakSet(), Gt = (
|
|
|
1241
1241
|
t === 0 && (t = 1, e = { height: "1px" });
|
|
1242
1242
|
const i = Jt(s, t);
|
|
1243
1243
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
|
1244
|
-
} },
|
|
1245
|
-
class
|
|
1244
|
+
} }, fi = { duration: 333, easing: "ease-in-out" }, gi = ["left", "top", "width", "height", "opacity", "color", "background"], Qt = /* @__PURE__ */ new WeakMap();
|
|
1245
|
+
class vi extends $e {
|
|
1246
1246
|
constructor(t) {
|
|
1247
1247
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Ct.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
1248
1248
|
this.createFinished();
|
|
@@ -1261,7 +1261,7 @@ class gi extends $e {
|
|
|
1261
1261
|
return p;
|
|
1262
1262
|
}
|
|
1263
1263
|
getController() {
|
|
1264
|
-
return
|
|
1264
|
+
return pi.get(this.u);
|
|
1265
1265
|
}
|
|
1266
1266
|
isDisabled() {
|
|
1267
1267
|
var t;
|
|
@@ -1275,7 +1275,7 @@ class gi extends $e {
|
|
|
1275
1275
|
p(t) {
|
|
1276
1276
|
t = t ?? {};
|
|
1277
1277
|
const e = this.getController();
|
|
1278
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
|
1278
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = gi), this.options = t;
|
|
1279
1279
|
}
|
|
1280
1280
|
m() {
|
|
1281
1281
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
|
@@ -1364,7 +1364,7 @@ class gi extends $e {
|
|
|
1364
1364
|
}), t;
|
|
1365
1365
|
}
|
|
1366
1366
|
j(t, e = this.O()) {
|
|
1367
|
-
const i = { ...
|
|
1367
|
+
const i = { ...fi };
|
|
1368
1368
|
return e.forEach((r) => Object.assign(i, r.options.keyframeOptions)), Object.assign(i, t), i;
|
|
1369
1369
|
}
|
|
1370
1370
|
N(t, e, i) {
|
|
@@ -1413,7 +1413,7 @@ class gi extends $e {
|
|
|
1413
1413
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
|
-
const
|
|
1416
|
+
const mi = xt(vi), yi = { 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>' };
|
|
1417
1417
|
/**
|
|
1418
1418
|
* @license
|
|
1419
1419
|
* Copyright 2018 Google LLC
|
|
@@ -1481,8 +1481,8 @@ const te = xt(class extends ye {
|
|
|
1481
1481
|
* Copyright 2020 Google LLC
|
|
1482
1482
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1483
1483
|
*/
|
|
1484
|
-
const we = () => new
|
|
1485
|
-
class
|
|
1484
|
+
const we = () => new bi();
|
|
1485
|
+
class bi {
|
|
1486
1486
|
}
|
|
1487
1487
|
const lt = /* @__PURE__ */ new WeakMap(), Ae = xt(class extends $e {
|
|
1488
1488
|
render(s) {
|
|
@@ -1511,14 +1511,14 @@ const lt = /* @__PURE__ */ new WeakMap(), Ae = xt(class extends $e {
|
|
|
1511
1511
|
this.rt(this.ct);
|
|
1512
1512
|
}
|
|
1513
1513
|
});
|
|
1514
|
-
var
|
|
1514
|
+
var $i = Object.defineProperty, Y = (s, t, e, i) => {
|
|
1515
1515
|
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
|
1516
1516
|
(o = s[n]) && (r = o(t, e, r) || r);
|
|
1517
|
-
return r &&
|
|
1517
|
+
return r && $i(t, e, r), r;
|
|
1518
1518
|
};
|
|
1519
1519
|
const Pt = class Pt extends m {
|
|
1520
1520
|
constructor() {
|
|
1521
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = we(), this.widgetActive$ = new
|
|
1521
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = we(), this.widgetActive$ = new Ne(!1), this.componentIsDestroyed$ = new bt();
|
|
1522
1522
|
}
|
|
1523
1523
|
async connectedCallback() {
|
|
1524
1524
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
|
@@ -1563,7 +1563,7 @@ const Pt = class Pt extends m {
|
|
|
1563
1563
|
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
|
1564
1564
|
if (!i)
|
|
1565
1565
|
return p;
|
|
1566
|
-
const r = async (l) =>
|
|
1566
|
+
const r = async (l) => yi, { type: n, content: o } = i;
|
|
1567
1567
|
switch (n) {
|
|
1568
1568
|
case "Telia": {
|
|
1569
1569
|
const l = await r();
|
|
@@ -1597,9 +1597,9 @@ const Pt = class Pt extends m {
|
|
|
1597
1597
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
|
1598
1598
|
class="trigger-label"
|
|
1599
1599
|
@click=${this.toggleActive}
|
|
1600
|
-
${
|
|
1600
|
+
${mi({
|
|
1601
1601
|
keyframeOptions: {},
|
|
1602
|
-
in:
|
|
1602
|
+
in: ui,
|
|
1603
1603
|
stabilizeOut: !0,
|
|
1604
1604
|
skipInitial: !1
|
|
1605
1605
|
})}
|
|
@@ -1782,25 +1782,25 @@ Pt.styles = [
|
|
|
1782
1782
|
`
|
|
1783
1783
|
];
|
|
1784
1784
|
let $ = Pt;
|
|
1785
|
-
|
|
1785
|
+
Y([
|
|
1786
1786
|
g({ attribute: !1 })
|
|
1787
1787
|
], $.prototype, "application");
|
|
1788
|
-
|
|
1788
|
+
Y([
|
|
1789
1789
|
L()
|
|
1790
1790
|
], $.prototype, "active");
|
|
1791
|
-
|
|
1791
|
+
Y([
|
|
1792
1792
|
L()
|
|
1793
1793
|
], $.prototype, "triggerVisible");
|
|
1794
|
-
|
|
1794
|
+
Y([
|
|
1795
1795
|
L()
|
|
1796
1796
|
], $.prototype, "loaded");
|
|
1797
|
-
|
|
1797
|
+
Y([
|
|
1798
1798
|
L()
|
|
1799
1799
|
], $.prototype, "icon");
|
|
1800
|
-
var
|
|
1800
|
+
var _i = Object.defineProperty, C = (s, t, e, i) => {
|
|
1801
1801
|
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
|
1802
1802
|
(o = s[n]) && (r = o(t, e, r) || r);
|
|
1803
|
-
return r &&
|
|
1803
|
+
return r && _i(t, e, r), r;
|
|
1804
1804
|
};
|
|
1805
1805
|
const Ce = (s) => {
|
|
1806
1806
|
const e = class e extends s {
|
|
@@ -1876,7 +1876,7 @@ let yt = kt;
|
|
|
1876
1876
|
* Copyright 2021 Google LLC
|
|
1877
1877
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1878
1878
|
*/
|
|
1879
|
-
function*
|
|
1879
|
+
function* wi(s, t) {
|
|
1880
1880
|
if (s !== void 0) {
|
|
1881
1881
|
let e = 0;
|
|
1882
1882
|
for (const i of s) yield t(i, e++);
|
|
@@ -1888,7 +1888,7 @@ var V = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))
|
|
|
1888
1888
|
* Copyright 2021 Google LLC
|
|
1889
1889
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1890
1890
|
*/
|
|
1891
|
-
let
|
|
1891
|
+
let Ai = class extends Event {
|
|
1892
1892
|
constructor(t, e, i) {
|
|
1893
1893
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
|
|
1894
1894
|
}
|
|
@@ -1903,7 +1903,7 @@ let wi = class extends Event {
|
|
|
1903
1903
|
* Copyright 2021 Google LLC
|
|
1904
1904
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1905
1905
|
*/
|
|
1906
|
-
class
|
|
1906
|
+
class Ci {
|
|
1907
1907
|
get value() {
|
|
1908
1908
|
return this.o;
|
|
1909
1909
|
}
|
|
@@ -1936,12 +1936,12 @@ class Ai {
|
|
|
1936
1936
|
* Copyright 2021 Google LLC
|
|
1937
1937
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1938
1938
|
*/
|
|
1939
|
-
let
|
|
1939
|
+
let xi = class extends Event {
|
|
1940
1940
|
constructor(t) {
|
|
1941
1941
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
|
1942
1942
|
}
|
|
1943
1943
|
};
|
|
1944
|
-
class ee extends
|
|
1944
|
+
class ee extends Ci {
|
|
1945
1945
|
constructor(t, e, i) {
|
|
1946
1946
|
var r, n;
|
|
1947
1947
|
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
|
|
@@ -1951,7 +1951,7 @@ class ee extends Ai {
|
|
|
1951
1951
|
const a = o.composedPath()[0];
|
|
1952
1952
|
if (o.context !== this.context || a === this.host) return;
|
|
1953
1953
|
const c = /* @__PURE__ */ new Set();
|
|
1954
|
-
for (const [h, { consumerHost: l }] of this.subscriptions) c.has(h) || (c.add(h), l.dispatchEvent(new
|
|
1954
|
+
for (const [h, { consumerHost: l }] of this.subscriptions) c.has(h) || (c.add(h), l.dispatchEvent(new Ai(this.context, h, !0)));
|
|
1955
1955
|
o.stopPropagation();
|
|
1956
1956
|
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (r = this.host).addController) == null || n.call(r, this);
|
|
1957
1957
|
}
|
|
@@ -1959,7 +1959,7 @@ class ee extends Ai {
|
|
|
1959
1959
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
1960
1960
|
}
|
|
1961
1961
|
hostConnected() {
|
|
1962
|
-
this.host.dispatchEvent(new
|
|
1962
|
+
this.host.dispatchEvent(new xi(this.context));
|
|
1963
1963
|
}
|
|
1964
1964
|
}
|
|
1965
1965
|
/**
|
|
@@ -1967,7 +1967,7 @@ class ee extends Ai {
|
|
|
1967
1967
|
* Copyright 2017 Google LLC
|
|
1968
1968
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1969
1969
|
*/
|
|
1970
|
-
function
|
|
1970
|
+
function Ei({ context: s }) {
|
|
1971
1971
|
return (t, e) => {
|
|
1972
1972
|
const i = /* @__PURE__ */ new WeakMap();
|
|
1973
1973
|
if (typeof e == "object") return e.addInitializer(function() {
|
|
@@ -2004,14 +2004,14 @@ function xi({ context: s }) {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
};
|
|
2006
2006
|
}
|
|
2007
|
-
var
|
|
2007
|
+
var Si = Object.defineProperty, xe = (s, t, e, i) => {
|
|
2008
2008
|
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
|
2009
2009
|
(o = s[n]) && (r = o(t, e, r) || r);
|
|
2010
|
-
return r &&
|
|
2010
|
+
return r && Si(t, e, r), r;
|
|
2011
2011
|
};
|
|
2012
2012
|
const Pi = "application", Ot = class Ot extends m {
|
|
2013
2013
|
constructor() {
|
|
2014
|
-
super(...arguments), this.nodes = [], this.wrapperRef = we();
|
|
2014
|
+
super(...arguments), this.nodes = [], this.wrapperRef = we(), this.mobile = !1;
|
|
2015
2015
|
}
|
|
2016
2016
|
addChild(t) {
|
|
2017
2017
|
t.parent = this, this.nodes.push(t);
|
|
@@ -2037,7 +2037,7 @@ const Pi = "application", Ot = class Ot extends m {
|
|
|
2037
2037
|
var i, r;
|
|
2038
2038
|
const t = this.application.settings.components.conversation;
|
|
2039
2039
|
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 === V.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")), this.application.mobile && this.renderRoot.host.classList.add("mobile"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), x`<div class="widget-container" ${Ae(this.wrapperRef)}>
|
|
2040
|
-
${
|
|
2040
|
+
${wi(this.nodes, (n) => n)}
|
|
2041
2041
|
</div>`;
|
|
2042
2042
|
}
|
|
2043
2043
|
};
|
|
@@ -2189,11 +2189,14 @@ Ot.styles = k`
|
|
|
2189
2189
|
pointer-events: none;
|
|
2190
2190
|
}
|
|
2191
2191
|
`;
|
|
2192
|
-
let
|
|
2193
|
-
|
|
2192
|
+
let z = Ot;
|
|
2193
|
+
xe([
|
|
2194
|
+
g({ attribute: !0 })
|
|
2195
|
+
], z.prototype, "mobile");
|
|
2196
|
+
xe([
|
|
2194
2197
|
g({ attribute: !1 }),
|
|
2195
|
-
|
|
2196
|
-
],
|
|
2198
|
+
Ei({ context: Pi })
|
|
2199
|
+
], z.prototype, "application");
|
|
2197
2200
|
const Q = class Q {
|
|
2198
2201
|
// TODO:
|
|
2199
2202
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
|
@@ -2287,12 +2290,12 @@ Et([
|
|
|
2287
2290
|
Et([
|
|
2288
2291
|
L()
|
|
2289
2292
|
], H.prototype, "status");
|
|
2290
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
|
2293
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", X);
|
|
2291
2294
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", $);
|
|
2292
2295
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", yt);
|
|
2293
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
|
2296
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", z);
|
|
2294
2297
|
customElements.get("ace-widget") || customElements.define("ace-widget", H);
|
|
2295
|
-
const Oi =
|
|
2298
|
+
const Oi = Ge`
|
|
2296
2299
|
<g clip-path="url(#clip0_119_1665)">
|
|
2297
2300
|
<path d="M16.9321 27.4656C11.5983 29.6245 8.54568 28.9365 6.85856 27.5904L6.83398 27.5712C9.44534 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z" fill="#990AE3"/>
|
|
2298
2301
|
<path d="M20.9805 22.4843C25.1369 20.0779 28.8809 15.9968 30.0615 13.0869C30.397 10.6784 30.4654 10.3744 30.506 7.72479C30.5113 7.35786 30.4889 7.00586 30.4547 6.66879C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43734 23.5435 1.74585 20.6027C2.68077 22.4459 3.29407 23.3408 4.34545 24.7083C7.45044 27.4539 13.9852 26.5355 20.9805 22.4843Z" fill="#990AE3"/>
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var pt=function(s,t){return pt=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])},pt(s,t)};function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var pt=function(s,t){return pt=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])},pt(s,t)};function D(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pt(s,t);function e(){this.constructor=s}s.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ut(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 ft(s,t){var e=typeof Symbol=="function"&&s[Symbol.iterator];if(!e)return s;var i=e.call(s),r,n=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return n}function gt(s,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return s.concat(n||Array.prototype.slice.call(t))}function b(s){return typeof s=="function"}function oe(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 st=oe(function(s){return function(e){s(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
2
|
`+e.map(function(i,r){return r+1+") "+i.toString()}).join(`
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function vt(s,t){if(s){var e=s.indexOf(t);0<=e&&s.splice(e,1)}}var et=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,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ut(o),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 o.remove(this);var l=this.initialTeardown;if(b(l))try{l()}catch(v){n=v instanceof st?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var u=ut(d),f=u.next();!f.done;f=u.next()){var k=f.value;try{Lt(k)}catch(v){n=n??[],v instanceof st?n=gt(gt([],ft(n)),ft(v.errors)):n.push(v)}}}catch(v){i={error:v}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}}if(n)throw new st(n)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Lt(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)&&vt(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&vt(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=function(){var t=new s;return t.closed=!0,t}(),s}(),ae=et.EMPTY;function ce(s){return s instanceof et||s&&"closed"in s&&b(s.remove)&&b(s.add)&&b(s.unsubscribe)}function Lt(s){b(s)?s():s.unsubscribe()}var he={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function vt(s,t){if(s){var e=s.indexOf(t);0<=e&&s.splice(e,1)}}var et=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,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ut(o),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 o.remove(this);var l=this.initialTeardown;if(b(l))try{l()}catch(v){n=v instanceof st?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var u=ut(d),f=u.next();!f.done;f=u.next()){var k=f.value;try{Lt(k)}catch(v){n=n??[],v instanceof st?n=gt(gt([],ft(n)),ft(v.errors)):n.push(v)}}}catch(v){i={error:v}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}}if(n)throw new st(n)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Lt(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)&&vt(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&vt(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=function(){var t=new s;return t.closed=!0,t}(),s}(),ae=et.EMPTY;function ce(s){return s instanceof et||s&&"closed"in s&&b(s.remove)&&b(s.add)&&b(s.unsubscribe)}function Lt(s){b(s)?s():s.unsubscribe()}var he={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ee={setTimeout:function(s,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,gt([s,t],ft(e)))},clearTimeout:function(s){return clearTimeout(s)},delegate:void 0};function Se(s){Ee.setTimeout(function(){throw s})}function Ut(){}function W(s){s()}var le=function(s){D(t,s);function t(e){var i=s.call(this)||this;return i.isStopped=!1,e?(i.destination=e,ce(e)&&e.add(i)):i.destination=Te,i}return t.create=function(e,i,r){return new mt(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}(et),Pe=Function.prototype.bind;function rt(s,t){return Pe.call(s,t)}var Oe=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){Z(i)}},s.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){Z(i)}else Z(t)},s.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Z(e)}},s}(),mt=function(s){D(t,s);function t(e,i,r){var n=s.call(this)||this,o;if(b(e)||!e)o={next:e??void 0,error:i??void 0,complete:r??void 0};else{var a;n&&he.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return n.unsubscribe()},o={next:e.next&&rt(e.next,a),error:e.error&&rt(e.error,a),complete:e.complete&&rt(e.complete,a)}):o=e}return n.destination=new Oe(o),n}return t}(le);function Z(s){Se(s)}function ke(s){throw s}var Te={closed:!0,next:Ut,error:ke,complete:Ut},Me=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function He(s){return s}function Le(s){return s.length===0?He:s.length===1?s[0]:function(e){return s.reduce(function(i,r){return r(i)},e)}}var Rt=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,n=Re(t)?t:new mt(t,e,i);return W(function(){var o=r,a=o.operator,c=o.source;n.add(a?a.call(n,c):c?r._subscribe(n):r._trySubscribe(n))}),n},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=jt(e),new e(function(r,n){var o=new mt({next:function(a){try{t(a)}catch(c){n(c),o.unsubscribe()}},error:n,complete:r});i.subscribe(o)})},s.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},s.prototype[Me]=function(){return this},s.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Le(t)(this)},s.prototype.toPromise=function(t){var e=this;return t=jt(t),new t(function(i,r){var n;e.subscribe(function(o){return n=o},function(o){return r(o)},function(){return i(n)})})},s.create=function(t){return new s(t)},s}();function jt(s){var t;return(t=s??he.Promise)!==null&&t!==void 0?t:Promise}function Ue(s){return s&&b(s.next)&&b(s.error)&&b(s.complete)}function Re(s){return s&&s instanceof le||Ue(s)&&ce(s)}var je=oe(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$t=function(s){D(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 Nt(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new je},t.prototype.next=function(e){var i=this;W(function(){var r,n;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=ut(i.currentObservers),a=o.next();!a.done;a=o.next()){var c=a.value;c.next(e)}}catch(h){r={error:h}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var i=this;W(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;W(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,n=r.hasError,o=r.isStopped,a=r.observers;return n||o?ae:(this.currentObservers=null,a.push(e),new et(function(){i.currentObservers=null,vt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,r=i.hasError,n=i.thrownError,o=i.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new Rt;return e.source=this,e},t.create=function(e,i){return new Nt(e,i)},t}(Rt),Nt=function(s){D(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:ae},t}($t),Ne=function(s){D(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,n=e._value;if(i)throw r;return this._throwIfClosed(),n},t.prototype.next=function(e){s.prototype.next.call(this,this._value=e)},t}($t);/**
|
|
4
4
|
* @license
|
|
5
5
|
* Copyright 2019 Google LLC
|
|
6
6
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
-
*/const
|
|
7
|
+
*/const q=globalThis,_t=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wt=Symbol(),It=new WeakMap;let de=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==wt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(_t&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=It.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&It.set(e,t))}return t}toString(){return this.cssText}};const Ie=s=>new de(typeof s=="string"?s:s+"",void 0,wt),O=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,r,n)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[n+1],s[0]);return new de(e,s,wt)},Be=(s,t)=>{if(_t)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),r=q.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,s.appendChild(i)}},Bt=_t?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Ie(e)})(s):s;/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/const{is:
|
|
11
|
+
*/const{is:Ve,defineProperty:ze,getOwnPropertyDescriptor:De,getOwnPropertyNames:Fe,getOwnPropertySymbols:Ye,getPrototypeOf:Ze}=Object,w=globalThis,Vt=w.trustedTypes,We=Vt?Vt.emptyScript:"",nt=w.reactiveElementPolyfillSupport,R=(s,t)=>s,K={toAttribute(s,t){switch(t){case Boolean:s=s?We:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},At=(s,t)=>!Ve(s,t),zt={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:At};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),w.litPropertyMetadata??(w.litPropertyMetadata=new WeakMap);let T=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);r!==void 0&&ze(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:n}=De(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const a=r==null?void 0:r.call(this);n.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(R("elementProperties")))return;const t=Ze(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(R("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(R("properties"))){const e=this.properties,i=[...Fe(e),...Ye(e)];for(const r of i)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,r]of e)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const r=this._$Eu(e,i);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(Bt(r))}else t!==void 0&&e.push(Bt(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Be(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var n;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const o=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:K).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var n;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=i.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:K;this._$Em=r,this[r]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??At)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,o]of r)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[R("elementProperties")]=new Map,T[R("finalized")]=new Map,nt==null||nt({ReactiveElement:T}),(w.reactiveElementVersions??(w.reactiveElementVersions=[])).push("2.0.4");/**
|
|
12
12
|
* @license
|
|
13
13
|
* Copyright 2017 Google LLC
|
|
14
14
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15
|
-
*/const j=globalThis,
|
|
15
|
+
*/const j=globalThis,G=j.trustedTypes,Dt=G?G.createPolicy("lit-html",{createHTML:s=>s}):void 0,pe="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,ue="?"+_,qe=`<${ue}>`,S=document,I=()=>S.createComment(""),B=s=>s===null||typeof s!="object"&&typeof s!="function",Ct=Array.isArray,Ke=s=>Ct(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",ot=`[
|
|
16
16
|
\f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ft=/-->/g,Yt=/>/g,A=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
|
|
17
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Zt=/'/g,Wt=/"/g,fe=/^(?:script|style|textarea|title)$/i,ge=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),x=ge(1),
|
|
17
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Zt=/'/g,Wt=/"/g,fe=/^(?:script|style|textarea|title)$/i,ge=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),x=ge(1),Ge=ge(2),P=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),qt=new WeakMap,E=S.createTreeWalker(S,129);function ve(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Dt!==void 0?Dt.createHTML(t):t}const Xe=(s,t)=>{const e=s.length-1,i=[];let r,n=t===2?"<svg>":t===3?"<math>":"",o=U;for(let a=0;a<e;a++){const c=s[a];let h,l,d=-1,u=0;for(;u<c.length&&(o.lastIndex=u,l=o.exec(c),l!==null);)u=o.lastIndex,o===U?l[1]==="!--"?o=Ft:l[1]!==void 0?o=Yt:l[2]!==void 0?(fe.test(l[2])&&(r=RegExp("</"+l[2],"g")),o=A):l[3]!==void 0&&(o=A):o===A?l[0]===">"?(o=r??U,d=-1):l[1]===void 0?d=-2:(d=o.lastIndex-l[2].length,h=l[1],o=l[3]===void 0?A:l[3]==='"'?Wt:Zt):o===Wt||o===Zt?o=A:o===Ft||o===Yt?o=U:(o=A,r=void 0);const f=o===A&&s[a+1].startsWith("/>")?" ":"";n+=o===U?c+qe:d>=0?(i.push(h),c.slice(0,d)+pe+c.slice(d)+_+f):c+_+(d===-2?a:f)}return[ve(s,n+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let yt=class me{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let n=0,o=0;const a=t.length-1,c=this.parts,[h,l]=Xe(t,e);if(this.el=me.createElement(h,i),E.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=E.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const d of r.getAttributeNames())if(d.endsWith(pe)){const u=l[o++],f=r.getAttribute(d).split(_),k=/([.?@])?(.*)/.exec(u);c.push({type:1,index:n,name:k[2],strings:f,ctor:k[1]==="."?Qe:k[1]==="?"?ti:k[1]==="@"?ei:it}),r.removeAttribute(d)}else d.startsWith(_)&&(c.push({type:6,index:n}),r.removeAttribute(d));if(fe.test(r.tagName)){const d=r.textContent.split(_),u=d.length-1;if(u>0){r.textContent=G?G.emptyScript:"";for(let f=0;f<u;f++)r.append(d[f],I()),E.nextNode(),c.push({type:2,index:++n});r.append(d[u],I())}}}else if(r.nodeType===8)if(r.data===ue)c.push({type:2,index:n});else{let d=-1;for(;(d=r.data.indexOf(_,d+1))!==-1;)c.push({type:7,index:n}),d+=_.length-1}n++}}static createElement(t,e){const i=S.createElement("template");return i.innerHTML=t,i}};function M(s,t,e=s,i){var o,a;if(t===P)return t;let r=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=B(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=r:e._$Cl=r),r!==void 0&&(t=M(s,r._$AS(s,t.values),r,i)),t}class Je{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)??S).importNode(e,!0);E.currentNode=r;let n=E.nextNode(),o=0,a=0,c=i[0];for(;c!==void 0;){if(o===c.index){let h;c.type===2?h=new F(n,n.nextSibling,this,t):c.type===1?h=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(h=new ii(n,this,t)),this._$AV.push(h),c=i[++a]}o!==(c==null?void 0:c.index)&&(n=E.nextNode(),o++)}return E.currentNode=S,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 F{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=p,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=M(this,t,e),B(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ke(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=yt.createElement(ve(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{const o=new Je(r,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=qt.get(t.strings);return e===void 0&&qt.set(t.strings,e=new yt(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of t)r===e.length?e.push(i=new F(this.O(I()),this.O(I()),this,this.options)):i=e[r],i._$AI(n),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 it{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}_$AI(t,e=this,i,r){const n=this.strings;let o=!1;if(n===void 0)t=M(this,t,e,0),o=!B(t)||t!==this._$AH&&t!==P,o&&(this._$AH=t);else{const a=t;let c,h;for(t=n[0],c=0;c<n.length-1;c++)h=M(this,a[i+c],e,c),h===P&&(h=this._$AH[c]),o||(o=!B(h)||h!==this._$AH[c]),h===p?t=p:t!==p&&(t+=(h??"")+n[c+1]),this._$AH[c]=h}o&&!r&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Qe extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class ti extends it{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class ei extends it{constructor(t,e,i,r,n){super(t,e,i,r,n),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??p)===P)return;const i=this._$AH,r=t===p&&i!==p||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==p&&(i===p||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class ii{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){M(this,t)}}const at=j.litHtmlPolyfillSupport;at==null||at(yt,F),(j.litHtmlVersions??(j.litHtmlVersions=[])).push("3.2.1");const si=(s,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const n=(e==null?void 0:e.renderBefore)??null;i._$litPart$=r=new F(t.insertBefore(I(),n),n,void 0,e??{})}return r._$AI(s),r};/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/let m=class extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=
|
|
21
|
+
*/let m=class extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=si(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return P}};var ne;m._$litElement$=!0,m.finalized=!0,(ne=globalThis.litElementHydrateSupport)==null||ne.call(globalThis,{LitElement:m});const ct=globalThis.litElementPolyfillSupport;ct==null||ct({LitElement:m});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/const
|
|
25
|
+
*/const ri={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:At},ni=(s=ri,t,e)=>{const{kind:i,metadata:r}=e;let n=globalThis.litPropertyMetadata.get(r);if(n===void 0&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(e.name,s),i==="accessor"){const{name:o}=e;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,c,s)},init(a){return a!==void 0&&this.P(o,void 0,s),a}}}if(i==="setter"){const{name:o}=e;return function(a){const c=this[o];t.call(this,a),this.requestUpdate(o,c,s)}}throw Error("Unsupported decorator location: "+i)};function g(s){return(t,e)=>typeof e=="object"?ni(s,t,e):((i,r,n)=>{const o=r.hasOwnProperty(n);return r.constructor.createProperty(n,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(r,n):void 0})(s,t,e)}/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/function L(s){return g({...s,state:!0,attribute:!1})}var
|
|
29
|
+
*/function L(s){return g({...s,state:!0,attribute:!1})}var oi=Object.defineProperty,ai=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&oi(t,e,r),r};const Pt=class Pt 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"),p}};Pt.styles=[O`
|
|
30
30
|
:host {
|
|
31
31
|
position: fixed;
|
|
32
32
|
display: flex;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
bottom: 20px;
|
|
43
43
|
left: 20px;
|
|
44
44
|
}
|
|
45
|
-
`];let
|
|
45
|
+
`];let X=Pt;ai([g({attribute:!0})],X.prototype,"anchor");/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2020 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/const
|
|
53
|
+
*/const ci=s=>s.strings===void 0;/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/const N=(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),N(r,t);return!0},
|
|
57
|
+
*/const N=(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),N(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)},be=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),di(t)}};function hi(s){this._$AN!==void 0?(J(this),this._$AM=s,be(this)):this._$AM=s}function li(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 n=e;n<i.length;n++)N(i[n],!1),J(i[n]);else i!=null&&(N(i,!1),J(i));else N(this,s)}const di=s=>{s.type==xt.CHILD&&(s._$AP??(s._$AP=li),s._$AQ??(s._$AQ=hi))};class $e extends ye{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),be(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&&(N(this,t),J(this))}setValue(t){if(ci(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 pi=new WeakMap;let Kt=0;const ht=new Map,Gt=new WeakSet,Xt=()=>new Promise(s=>requestAnimationFrame(s)),ui=[{transform:"translateX(100%) scale(0)",opacity:0}],Jt=(s,t)=>{const e=s-t;return e===0?void 0:e},Qt=(s,t)=>{const e=s/t;return e===1?void 0:e},lt={left:(s,t)=>{const e=Jt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(s,t)=>{const e=Jt(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=Qt(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=Qt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},fi={duration:333,easing:"ease-in-out"},gi=["left","top","width","height","opacity","color","background"],te=new WeakMap;class vi extends $e{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===xt.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 p}getController(){return pi.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(n=>this.t=!0),this.element=t.element,te.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=gi),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const n=e[r]??(lt[r]?void 0:i[r]),o=Number(n);t[r]=isNaN(o)?n+"":o}),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((n,o)=>n===r[o]))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 Xt;const e=this.O(),i=this.j(this.options.keyframeOptions,e),r=this.m();if(this.A!==void 0){const{from:n,to:o}=this.N(this.A,r,e);this.log("measured",[this.A,r,n,o]),t=this.calculateKeyframes(n,o)}else{const n=ht.get(this.options.inId);if(n){ht.delete(this.options.inId);const{from:o,to:a}=this.N(n,r,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Kt++,t.forEach(c=>c.zIndex=Kt)}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&&ht.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Xt(),(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 n=this.A.left-r.left,o=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||n===0&&o===0||(this.element.style.position="relative"),n!==0&&(this.element.style.left=n+"px"),o!==0&&(this.element.style.top=o+"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=te.get(e);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Gt.has(this.u);return t||this.u.updateComplete.then(()=>{Gt.add(this.u)}),t}j(t,e=this.O()){const i={...fi};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 n=1,o=1;return r.length>0&&(r.forEach(a=>{a.width&&(n/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=n*t.left,e.left=n*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,i=!1){const r={},n={};let o=!1;const a={};for(const c in e){const h=t[c],l=e[c];if(c in lt){const d=lt[c];if(h===void 0||l===void 0)continue;const u=d(h,l);u.transform!==void 0&&(a[c]=u.value,o=!0,r.transform=`${r.transform??""} ${u.transform}`,u.overrideFrom!==void 0&&Object.assign(r,u.overrideFrom))}else h!==l&&h!==void 0&&l!==void 0&&(o=!0,r[c]=h,n[c]=l)}return r.transformOrigin=n.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[r,n]: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 mi=Et(vi),yi={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>'};/**
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2018 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2020 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*/const we=()=>new
|
|
65
|
+
*/const we=()=>new bi;class bi{}const dt=new WeakMap,Ae=Et(class extends $e{render(s){return p}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)),p}rt(s){if(this.isConnected||(s=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let e=dt.get(t);e===void 0&&(e=new WeakMap,dt.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=dt.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 $i=Object.defineProperty,Y=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&$i(t,e,r),r};const Ot=class Ot extends m{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=we(),this.widgetActive$=new Ne(!1),this.componentIsDestroyed$=new $t}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&&_e(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 x` <img src=${e} class="trigger-icon" alt="" /> `;const i=(h=this.application)==null?void 0:h.triggerIcon;if(!i)return p;const r=async l=>yi,{type:n,content:o}=i;switch(n){case"Telia":{const l=await r();return l?x`<telia-icon
|
|
66
66
|
class="trigger-icon"
|
|
67
67
|
svg=${l.svg}
|
|
68
68
|
size="lg"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
label="${this.application.settings.branding.other.buttonLabelText??"Widget trigger"}"
|
|
76
76
|
class="trigger-label"
|
|
77
77
|
@click=${this.toggleActive}
|
|
78
|
-
${
|
|
78
|
+
${mi({keyframeOptions:{},in:ui,stabilizeOut:!0,skipInitial:!1})}
|
|
79
79
|
>
|
|
80
80
|
${this.application.settings.branding.other.buttonLabelText}
|
|
81
81
|
</button>
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
.trigger-label:hover {
|
|
245
245
|
opacity: 0.8;
|
|
246
246
|
}
|
|
247
|
-
`];let $=Ot;
|
|
247
|
+
`];let $=Ot;Y([g({attribute:!1})],$.prototype,"application");Y([L()],$.prototype,"active");Y([L()],$.prototype,"triggerVisible");Y([L()],$.prototype,"loaded");Y([L()],$.prototype,"icon");var _i=Object.defineProperty,C=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&_i(t,e,r),r};const Ce=s=>{const e=class e extends s{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(r){this.properties=r}writeLayout(r){this.layout=r}writeContext(r){this.context=r}addChild(r){r.parent=this,this.nodes.push(r)}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)}};e.styles=[O`
|
|
248
248
|
:host {
|
|
249
249
|
font-family: var(--font-family);
|
|
250
250
|
grid-column: span var(--width);
|
|
@@ -264,11 +264,11 @@
|
|
|
264
264
|
* @license
|
|
265
265
|
* Copyright 2021 Google LLC
|
|
266
266
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
267
|
-
*/function*
|
|
267
|
+
*/function*wi(s,t){if(s!==void 0){let e=0;for(const i of s)yield t(i,e++)}}var V=(s=>(s.Inline="inline",s.Trigger="trigger",s))(V||{});/**
|
|
268
268
|
* @license
|
|
269
269
|
* Copyright 2021 Google LLC
|
|
270
270
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
271
|
-
*/let
|
|
271
|
+
*/let Ai=class extends Event{constructor(t,e,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=i??!1}};/**
|
|
272
272
|
* @license
|
|
273
273
|
* Copyright 2021 Google LLC
|
|
274
274
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -276,16 +276,16 @@
|
|
|
276
276
|
* @license
|
|
277
277
|
* Copyright 2021 Google LLC
|
|
278
278
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
279
|
-
*/class
|
|
279
|
+
*/class Ci{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const i=e||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[e,{disposer:i}]of this.subscriptions)e(this.o,i)},t!==void 0&&(this.value=t)}addCallback(t,e,i){if(!i)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:r}=this.subscriptions.get(t);t(this.value,r)}clearCallbacks(){this.subscriptions.clear()}}/**
|
|
280
280
|
* @license
|
|
281
281
|
* Copyright 2021 Google LLC
|
|
282
282
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
283
|
-
*/let
|
|
283
|
+
*/let xi=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class ie extends Ci{constructor(t,e,i){var r,n;super(e.context!==void 0?e.initialValue:i),this.onContextRequest=o=>{const a=o.composedPath()[0];o.context===this.context&&a!==this.host&&(o.stopPropagation(),this.addCallback(o.callback,a,o.subscribe))},this.onProviderRequest=o=>{const a=o.composedPath()[0];if(o.context!==this.context||a===this.host)return;const c=new Set;for(const[h,{consumerHost:l}]of this.subscriptions)c.has(h)||(c.add(h),l.dispatchEvent(new Ai(this.context,h,!0)));o.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(n=(r=this.host).addController)==null||n.call(r,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new xi(this.context))}}/**
|
|
284
284
|
* @license
|
|
285
285
|
* Copyright 2017 Google LLC
|
|
286
286
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
287
|
-
*/function
|
|
288
|
-
${
|
|
287
|
+
*/function Ei({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new ie(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var n;return(n=i.get(this))==null||n.setValue(r),t.set.call(this,r)},init(r){var n;return(n=i.get(this))==null||n.setValue(r),r}};{t.constructor.addInitializer(o=>{i.set(o,new ie(o,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let n;if(r===void 0){const o=new WeakMap;n={get(){return o.get(this)},set(a){i.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=r.set;n={...r,set(a){i.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,n)}}}var Si=Object.defineProperty,xe=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&Si(t,e,r),r};const Pi="application",Tt=class Tt extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=we(),this.mobile=!1}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&_e(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===V.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")),this.application.mobile&&this.renderRoot.host.classList.add("mobile"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),x`<div class="widget-container" ${Ae(this.wrapperRef)}>
|
|
288
|
+
${wi(this.nodes,n=>n)}
|
|
289
289
|
</div>`}};Tt.styles=O`
|
|
290
290
|
:host {
|
|
291
291
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
@@ -433,11 +433,11 @@
|
|
|
433
433
|
animation: slideDown 0.3s linear;
|
|
434
434
|
pointer-events: none;
|
|
435
435
|
}
|
|
436
|
-
`;let
|
|
436
|
+
`;let z=Tt;xe([g({attribute:!0})],z.prototype,"mobile");xe([g({attribute:!1}),Ei({context:Pi})],z.prototype,"application");const tt=class tt{constructor(t=tt.endpoint){this._endpoint=t}async getSite(t){const i=await(await fetch(t)).json();return i?{id:i.id,triggers:i.triggers||[],apps:(i.widgets||[]).map(r=>{let n=V.Trigger;r.renderStrategy.toLowerCase()==="inline"&&(n=V.Inline);const o=r.widgetId?r.widgetId:r.id,a=typeof r.autoActivate=="boolean"?r.autoActivate:!1,c=typeof r.anchor=="string"?r.anchor:"BottomRight",h=typeof r.triggerIcon=="string"?r.triggerIcon:"question";return{id:o,widgetId:o,renderStrategy:n,autoActivate:a,anchor:c,triggerIcon:{type:"Telia",content:h}}})}:null}async getWidget(t){const i=await(await fetch(`${this._endpoint}/widget/${t}`)).json();return i?{name:i.name,config:JSON.parse(i.configuration)}:null}};tt.endpoint="https://widgets.ace.teliacompany.net/api";let se=tt;var Oi=Object.defineProperty,St=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&Oi(t,e,r),r};const Mt=class Mt 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 p;if(this.widget.renderStrategy===V.Trigger){const t=new $;return t.application=this.widget,t}return this.widget.render()}};Mt.styles=[O`
|
|
437
437
|
:host {
|
|
438
438
|
display: block;
|
|
439
439
|
}
|
|
440
|
-
`];let H=Mt;St([g({attribute:!0})],H.prototype,"name");St([L()],H.prototype,"widget");St([L()],H.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",
|
|
440
|
+
`];let H=Mt;St([g({attribute:!0})],H.prototype,"name");St([L()],H.prototype,"widget");St([L()],H.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",X);customElements.get("ace-trigger")||customElements.define("ace-trigger",$);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",bt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",z);customElements.get("ace-widget")||customElements.define("ace-widget",H);const ki=Ge`
|
|
441
441
|
<g clip-path="url(#clip0_119_1665)">
|
|
442
442
|
<path d="M16.9321 27.4656C11.5983 29.6245 8.54568 28.9365 6.85856 27.5904L6.83398 27.5712C9.44534 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z" fill="#990AE3"/>
|
|
443
443
|
<path d="M20.9805 22.4843C25.1369 20.0779 28.8809 15.9968 30.0615 13.0869C30.397 10.6784 30.4654 10.3744 30.506 7.72479C30.5113 7.35786 30.4889 7.00586 30.4547 6.66879C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43734 23.5435 1.74585 20.6027C2.68077 22.4459 3.29407 23.3408 4.34545 24.7083C7.45044 27.4539 13.9852 26.5355 20.9805 22.4843Z" fill="#990AE3"/>
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=async e=>{e.registerComponent("copyright",Promise.resolve().then(()=>require("./copyright-
|
|
1
|
+
"use strict";const o=async e=>{e.registerComponent("copyright",Promise.resolve().then(()=>require("./copyright-D_HOfnS-.js")))};module.exports=o;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-copyright-flamingo",
|
|
3
|
-
"version": "1.1.82-rc.
|
|
3
|
+
"version": "1.1.82-rc.7",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.0.2",
|
|
6
|
-
"@telia-ace/widget-core-flamingo": "1.1.82-rc.
|
|
6
|
+
"@telia-ace/widget-core-flamingo": "1.1.82-rc.7"
|
|
7
7
|
},
|
|
8
8
|
"main": "./index.js",
|
|
9
9
|
"module": "./index.mjs",
|