@telia-ace/widget-components-copyright-flamingo 1.1.82-rc.2 → 1.1.82-rc.21
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
|
-
function
|
|
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,35 +278,35 @@ 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
|
-
next:
|
|
294
|
-
error:
|
|
295
|
-
complete:
|
|
296
|
-
},
|
|
293
|
+
next: Lt,
|
|
294
|
+
error: Oe,
|
|
295
|
+
complete: Lt
|
|
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);
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
|
-
var
|
|
309
|
+
var Ut = function() {
|
|
310
310
|
function s(t) {
|
|
311
311
|
t && (this._subscribe = t);
|
|
312
312
|
}
|
|
@@ -314,8 +314,8 @@ var Lt = 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 Lt = 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) {
|
|
@@ -373,15 +373,15 @@ function Rt(s) {
|
|
|
373
373
|
function Ue(s) {
|
|
374
374
|
return s && b(s.next) && b(s.error) && b(s.complete);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function Re(s) {
|
|
377
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; )
|
|
@@ -454,13 +454,13 @@ var Re = oe(function(s) {
|
|
|
454
454
|
var i = this, r = i.hasError, n = i.thrownError, o = i.isStopped;
|
|
455
455
|
r ? e.error(n) : o && e.complete();
|
|
456
456
|
}, t.prototype.asObservable = function() {
|
|
457
|
-
var e = new
|
|
457
|
+
var e = new Ut();
|
|
458
458
|
return e.source = this, e;
|
|
459
459
|
}, t.create = function(e, i) {
|
|
460
460
|
return new jt(e, i);
|
|
461
461
|
}, t;
|
|
462
|
-
}(
|
|
463
|
-
|
|
462
|
+
}(Ut), jt = function(s) {
|
|
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,22 +783,22 @@ 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,
|
|
787
|
-
\f\r]`,
|
|
788
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Yt = /'/g, Zt = /"/g, fe = /^(?:script|style|textarea|title)$/i, ge = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }),
|
|
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
|
+
\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 }), C = 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
|
-
let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o =
|
|
795
|
+
let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = U;
|
|
796
796
|
for (let a = 0; a < e; a++) {
|
|
797
797
|
const c = s[a];
|
|
798
798
|
let h, l, d = -1, u = 0;
|
|
799
|
-
for (; u < c.length && (o.lastIndex = u, l = o.exec(c), l !== null); ) u = o.lastIndex, o ===
|
|
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 ===
|
|
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);
|
|
@@ -1086,13 +1086,13 @@ function g(s) {
|
|
|
1086
1086
|
* Copyright 2017 Google LLC
|
|
1087
1087
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1088
1088
|
*/
|
|
1089
|
-
function
|
|
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,16 +1125,16 @@ 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
|
|
1135
1135
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1136
1136
|
*/
|
|
1137
|
-
const
|
|
1137
|
+
const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ct = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
|
1138
1138
|
let ye = class {
|
|
1139
1139
|
constructor(t) {
|
|
1140
1140
|
}
|
|
@@ -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 ==
|
|
1194
|
+
const di = (s) => {
|
|
1195
|
+
s.type == xt.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,10 +1241,10 @@ 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
|
-
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type ===
|
|
1247
|
+
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.");
|
|
1248
1248
|
this.createFinished();
|
|
1249
1249
|
}
|
|
1250
1250
|
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,16 +1413,16 @@ 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 = Ct(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
|
|
1420
1420
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1421
1421
|
*/
|
|
1422
|
-
const te =
|
|
1422
|
+
const te = Ct(class extends ye {
|
|
1423
1423
|
constructor(s) {
|
|
1424
1424
|
var t;
|
|
1425
|
-
if (super(s), s.type !==
|
|
1425
|
+
if (super(s), s.type !== xt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
1426
1426
|
}
|
|
1427
1427
|
render(s) {
|
|
1428
1428
|
return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
|
|
@@ -1481,10 +1481,10 @@ 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
|
-
const lt = /* @__PURE__ */ new WeakMap(), Ae =
|
|
1487
|
+
const lt = /* @__PURE__ */ new WeakMap(), Ae = Ct(class extends $e {
|
|
1488
1488
|
render(s) {
|
|
1489
1489
|
return p;
|
|
1490
1490
|
}
|
|
@@ -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();
|
|
@@ -1559,15 +1559,15 @@ const Pt = class Pt extends m {
|
|
|
1559
1559
|
var a, c, h;
|
|
1560
1560
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
|
1561
1561
|
if (e)
|
|
1562
|
-
return
|
|
1562
|
+
return C` <img src=${e} class="trigger-icon" alt="" /> `;
|
|
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();
|
|
1570
|
-
return l ?
|
|
1570
|
+
return l ? C`<telia-icon
|
|
1571
1571
|
class="trigger-icon"
|
|
1572
1572
|
svg=${l.svg}
|
|
1573
1573
|
size="lg"
|
|
@@ -1585,21 +1585,21 @@ const Pt = class Pt extends m {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
render() {
|
|
1587
1587
|
var t, e, i, r;
|
|
1588
|
-
return
|
|
1588
|
+
return C`<div
|
|
1589
1589
|
class=${te({
|
|
1590
1590
|
"trigger-container": !0,
|
|
1591
1591
|
hidden: !this.triggerVisible
|
|
1592
1592
|
})}
|
|
1593
1593
|
${Ae(this.containerRef)}
|
|
1594
1594
|
>
|
|
1595
|
-
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ?
|
|
1595
|
+
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? C`
|
|
1596
1596
|
<button
|
|
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,27 +1782,27 @@ Pt.styles = [
|
|
|
1782
1782
|
`
|
|
1783
1783
|
];
|
|
1784
1784
|
let $ = Pt;
|
|
1785
|
-
|
|
1785
|
+
Y([
|
|
1786
1786
|
g({ attribute: !1 })
|
|
1787
1787
|
], $.prototype, "application");
|
|
1788
|
-
|
|
1789
|
-
|
|
1788
|
+
Y([
|
|
1789
|
+
L()
|
|
1790
1790
|
], $.prototype, "active");
|
|
1791
|
-
|
|
1792
|
-
|
|
1791
|
+
Y([
|
|
1792
|
+
L()
|
|
1793
1793
|
], $.prototype, "triggerVisible");
|
|
1794
|
-
|
|
1795
|
-
|
|
1794
|
+
Y([
|
|
1795
|
+
L()
|
|
1796
1796
|
], $.prototype, "loaded");
|
|
1797
|
-
|
|
1798
|
-
|
|
1797
|
+
Y([
|
|
1798
|
+
L()
|
|
1799
1799
|
], $.prototype, "icon");
|
|
1800
|
-
var
|
|
1800
|
+
var _i = Object.defineProperty, x = (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
|
-
const
|
|
1805
|
+
const xe = (s) => {
|
|
1806
1806
|
const e = class e extends s {
|
|
1807
1807
|
constructor() {
|
|
1808
1808
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
|
@@ -1843,24 +1843,24 @@ const Ce = (s) => {
|
|
|
1843
1843
|
`
|
|
1844
1844
|
];
|
|
1845
1845
|
let t = e;
|
|
1846
|
-
return
|
|
1846
|
+
return x([
|
|
1847
1847
|
g()
|
|
1848
|
-
], t.prototype, "properties"),
|
|
1848
|
+
], t.prototype, "properties"), x([
|
|
1849
1849
|
g()
|
|
1850
|
-
], t.prototype, "context"),
|
|
1850
|
+
], t.prototype, "context"), x([
|
|
1851
1851
|
g()
|
|
1852
|
-
], t.prototype, "layout"),
|
|
1852
|
+
], t.prototype, "layout"), x([
|
|
1853
1853
|
g()
|
|
1854
|
-
], t.prototype, "name"),
|
|
1854
|
+
], t.prototype, "name"), x([
|
|
1855
1855
|
g()
|
|
1856
|
-
], t.prototype, "type"),
|
|
1856
|
+
], t.prototype, "type"), x([
|
|
1857
1857
|
g({ attribute: !1 })
|
|
1858
|
-
], t.prototype, "application"),
|
|
1858
|
+
], t.prototype, "application"), x([
|
|
1859
1859
|
g({ attribute: !1 })
|
|
1860
1860
|
], t.prototype, "parent"), t;
|
|
1861
|
-
}, kt = class kt extends
|
|
1861
|
+
}, kt = class kt extends xe(m) {
|
|
1862
1862
|
render() {
|
|
1863
|
-
return
|
|
1863
|
+
return C`Non resolved component`;
|
|
1864
1864
|
}
|
|
1865
1865
|
};
|
|
1866
1866
|
kt.styles = [
|
|
@@ -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 xi {
|
|
1907
1907
|
get value() {
|
|
1908
1908
|
return this.o;
|
|
1909
1909
|
}
|
|
@@ -1941,7 +1941,7 @@ let Ci = class extends Event {
|
|
|
1941
1941
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
|
1942
1942
|
}
|
|
1943
1943
|
};
|
|
1944
|
-
class ee extends
|
|
1944
|
+
class ee extends xi {
|
|
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
|
}
|
|
@@ -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, Ce = (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.fullscreen = !1;
|
|
2015
2015
|
}
|
|
2016
2016
|
addChild(t) {
|
|
2017
2017
|
t.parent = this, this.nodes.push(t);
|
|
@@ -2036,8 +2036,8 @@ const Pi = "application", Ot = class Ot extends m {
|
|
|
2036
2036
|
render() {
|
|
2037
2037
|
var i, r;
|
|
2038
2038
|
const t = this.application.settings.components.conversation;
|
|
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")), window.self !== window.top && this.renderRoot.host.classList.add("embedded"),
|
|
2040
|
-
${
|
|
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.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), C`<div class="widget-container" ${Ae(this.wrapperRef)}>
|
|
2040
|
+
${wi(this.nodes, (n) => n)}
|
|
2041
2041
|
</div>`;
|
|
2042
2042
|
}
|
|
2043
2043
|
};
|
|
@@ -2086,6 +2086,18 @@ Ot.styles = k`
|
|
|
2086
2086
|
position: fixed;
|
|
2087
2087
|
}
|
|
2088
2088
|
|
|
2089
|
+
:host(.fullscreen.floating) {
|
|
2090
|
+
inset: 0 !important;
|
|
2091
|
+
height: 100% !important;
|
|
2092
|
+
width: auto !important;
|
|
2093
|
+
max-height: none !important;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
:host(.fullscreen.floating) .widget-container {
|
|
2097
|
+
box-shadow: none !important;
|
|
2098
|
+
border-radius: 0 !important;
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2089
2101
|
@media screen and (max-width: 800px) {
|
|
2090
2102
|
:host(.floating) {
|
|
2091
2103
|
inset: 0;
|
|
@@ -2176,12 +2188,20 @@ Ot.styles = k`
|
|
|
2176
2188
|
animation: slideDown 0.3s linear;
|
|
2177
2189
|
pointer-events: none;
|
|
2178
2190
|
}
|
|
2191
|
+
|
|
2192
|
+
:host(.hidden.embedded),
|
|
2193
|
+
:host(.expanded.embedded) {
|
|
2194
|
+
animation: none;
|
|
2195
|
+
}
|
|
2179
2196
|
`;
|
|
2180
|
-
let
|
|
2181
|
-
|
|
2197
|
+
let z = Ot;
|
|
2198
|
+
Ce([
|
|
2199
|
+
g({ attribute: !0 })
|
|
2200
|
+
], z.prototype, "fullscreen");
|
|
2201
|
+
Ce([
|
|
2182
2202
|
g({ attribute: !1 }),
|
|
2183
|
-
|
|
2184
|
-
],
|
|
2203
|
+
Ei({ context: Pi })
|
|
2204
|
+
], z.prototype, "application");
|
|
2185
2205
|
const Q = class Q {
|
|
2186
2206
|
// TODO:
|
|
2187
2207
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
|
@@ -2270,17 +2290,17 @@ Et([
|
|
|
2270
2290
|
g({ attribute: !0 })
|
|
2271
2291
|
], H.prototype, "name");
|
|
2272
2292
|
Et([
|
|
2273
|
-
|
|
2293
|
+
L()
|
|
2274
2294
|
], H.prototype, "widget");
|
|
2275
2295
|
Et([
|
|
2276
|
-
|
|
2296
|
+
L()
|
|
2277
2297
|
], H.prototype, "status");
|
|
2278
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
|
2298
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", X);
|
|
2279
2299
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", $);
|
|
2280
2300
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", yt);
|
|
2281
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
|
2301
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", z);
|
|
2282
2302
|
customElements.get("ace-widget") || customElements.define("ace-widget", H);
|
|
2283
|
-
const Oi =
|
|
2303
|
+
const Oi = Ge`
|
|
2284
2304
|
<g clip-path="url(#clip0_119_1665)">
|
|
2285
2305
|
<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"/>
|
|
2286
2306
|
<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"/>
|
|
@@ -2298,10 +2318,10 @@ const Oi = Ke`
|
|
|
2298
2318
|
<clipPath id="clip0_119_1665">
|
|
2299
2319
|
<rect width="30.5068" height="32.0011" fill="white"/>
|
|
2300
2320
|
</clipPath>
|
|
2301
|
-
</defs>`, se =
|
|
2321
|
+
</defs>`, se = xe(m), Mt = class Mt extends se {
|
|
2302
2322
|
render() {
|
|
2303
2323
|
var e;
|
|
2304
|
-
return (e = this.application.branding().other) != null && e.whiteLabel ? p :
|
|
2324
|
+
return (e = this.application.branding().other) != null && e.whiteLabel ? p : C` <div class="copyright">
|
|
2305
2325
|
<a
|
|
2306
2326
|
aria-label="Powered by Telia ACE"
|
|
2307
2327
|
href="https://ace-showcase.com"
|