@telia-ace/widget-components-widget-header-flamingo 1.1.38-rc.2 → 1.1.38
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.
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-
|
|
1
|
+
"use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-b52ee536.js")))};module.exports=r;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-widget-header-flamingo",
|
|
3
|
-
"version": "1.1.38
|
|
3
|
+
"version": "1.1.38",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.0.2",
|
|
6
|
-
"@telia-ace/widget-core-flamingo": "1.1.38
|
|
6
|
+
"@telia-ace/widget-core-flamingo": "1.1.38",
|
|
7
7
|
"@teliads/components": "^22.1.1",
|
|
8
8
|
"@teliads/icons": "^8.4.0",
|
|
9
9
|
"@lit-labs/motion": "^1.0.6",
|
package/types.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ function it(e, t) {
|
|
|
15
15
|
}
|
|
16
16
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Yn(e, t, n, i) {
|
|
19
19
|
function r(s) {
|
|
20
20
|
return s instanceof n ? s : new n(function(o) {
|
|
21
21
|
o(s);
|
|
@@ -148,7 +148,7 @@ function pt(e, t, n) {
|
|
|
148
148
|
function B(e) {
|
|
149
149
|
return this instanceof B ? (this.v = e, this) : new B(e);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function qn(e, t, n) {
|
|
152
152
|
if (!Symbol.asyncIterator)
|
|
153
153
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
154
154
|
var i = n.apply(e, t || []), r, s = [];
|
|
@@ -323,7 +323,7 @@ function Ge(e) {
|
|
|
323
323
|
function le(e) {
|
|
324
324
|
v(e) ? e() : e.unsubscribe();
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var Ye = {
|
|
327
327
|
onUnhandledError: null,
|
|
328
328
|
onStoppedNotification: null,
|
|
329
329
|
Promise: void 0,
|
|
@@ -342,7 +342,7 @@ var qe = {
|
|
|
342
342
|
},
|
|
343
343
|
delegate: void 0
|
|
344
344
|
};
|
|
345
|
-
function
|
|
345
|
+
function qe(e) {
|
|
346
346
|
Bt.setTimeout(function() {
|
|
347
347
|
throw e;
|
|
348
348
|
});
|
|
@@ -352,7 +352,7 @@ function ce() {
|
|
|
352
352
|
function ht(e) {
|
|
353
353
|
e();
|
|
354
354
|
}
|
|
355
|
-
var
|
|
355
|
+
var Yt = function(e) {
|
|
356
356
|
it(t, e);
|
|
357
357
|
function t(n) {
|
|
358
358
|
var i = e.call(this) || this;
|
|
@@ -430,7 +430,7 @@ var Qn = function() {
|
|
|
430
430
|
};
|
|
431
431
|
else {
|
|
432
432
|
var a;
|
|
433
|
-
s &&
|
|
433
|
+
s && Ye.useDeprecatedNextContext ? (a = Object.create(n), a.unsubscribe = function() {
|
|
434
434
|
return s.unsubscribe();
|
|
435
435
|
}, o = {
|
|
436
436
|
next: n.next && Pt(n.next, a),
|
|
@@ -441,9 +441,9 @@ var Qn = function() {
|
|
|
441
441
|
return s.destination = new Qn(o), s;
|
|
442
442
|
}
|
|
443
443
|
return t;
|
|
444
|
-
}(
|
|
444
|
+
}(Yt);
|
|
445
445
|
function lt(e) {
|
|
446
|
-
|
|
446
|
+
qe(e);
|
|
447
447
|
}
|
|
448
448
|
function Xn(e) {
|
|
449
449
|
throw e;
|
|
@@ -453,7 +453,7 @@ var Jn = {
|
|
|
453
453
|
next: ce,
|
|
454
454
|
error: Xn,
|
|
455
455
|
complete: ce
|
|
456
|
-
},
|
|
456
|
+
}, qt = function() {
|
|
457
457
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
458
458
|
}();
|
|
459
459
|
function Ze(e) {
|
|
@@ -504,7 +504,7 @@ var w = function() {
|
|
|
504
504
|
}, e.prototype._subscribe = function(t) {
|
|
505
505
|
var n;
|
|
506
506
|
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
507
|
-
}, e.prototype[
|
|
507
|
+
}, e.prototype[qt] = function() {
|
|
508
508
|
return this;
|
|
509
509
|
}, e.prototype.pipe = function() {
|
|
510
510
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -528,13 +528,13 @@ var w = function() {
|
|
|
528
528
|
}();
|
|
529
529
|
function ue(e) {
|
|
530
530
|
var t;
|
|
531
|
-
return (t = e ??
|
|
531
|
+
return (t = e ?? Ye.Promise) !== null && t !== void 0 ? t : Promise;
|
|
532
532
|
}
|
|
533
533
|
function ti(e) {
|
|
534
534
|
return e && v(e.next) && v(e.error) && v(e.complete);
|
|
535
535
|
}
|
|
536
536
|
function ei(e) {
|
|
537
|
-
return e && e instanceof
|
|
537
|
+
return e && e instanceof Yt || ti(e) && Ge(e);
|
|
538
538
|
}
|
|
539
539
|
function ni(e) {
|
|
540
540
|
return v(e == null ? void 0 : e.lift);
|
|
@@ -590,7 +590,7 @@ var ii = function(e) {
|
|
|
590
590
|
e.prototype.unsubscribe.call(this), !i && ((n = this.onFinalize) === null || n === void 0 || n.call(this));
|
|
591
591
|
}
|
|
592
592
|
}, t;
|
|
593
|
-
}(
|
|
593
|
+
}(Yt), ri = Fe(function(e) {
|
|
594
594
|
return function() {
|
|
595
595
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
596
596
|
};
|
|
@@ -715,7 +715,7 @@ function Je(e) {
|
|
|
715
715
|
return v(e == null ? void 0 : e.then);
|
|
716
716
|
}
|
|
717
717
|
function Ve(e) {
|
|
718
|
-
return v(e[
|
|
718
|
+
return v(e[qt]);
|
|
719
719
|
}
|
|
720
720
|
function tn(e) {
|
|
721
721
|
return Symbol.asyncIterator && v(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
@@ -731,7 +731,7 @@ function rn(e) {
|
|
|
731
731
|
return v(e == null ? void 0 : e[nn]);
|
|
732
732
|
}
|
|
733
733
|
function sn(e) {
|
|
734
|
-
return
|
|
734
|
+
return qn(this, arguments, function() {
|
|
735
735
|
var n, i, r, s;
|
|
736
736
|
return ze(this, function(o) {
|
|
737
737
|
switch (o.label) {
|
|
@@ -764,7 +764,7 @@ function sn(e) {
|
|
|
764
764
|
function on(e) {
|
|
765
765
|
return v(e == null ? void 0 : e.getReader);
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function Y(e) {
|
|
768
768
|
if (e instanceof w)
|
|
769
769
|
return e;
|
|
770
770
|
if (e != null) {
|
|
@@ -785,7 +785,7 @@ function q(e) {
|
|
|
785
785
|
}
|
|
786
786
|
function ui(e) {
|
|
787
787
|
return new w(function(t) {
|
|
788
|
-
var n = e[
|
|
788
|
+
var n = e[qt]();
|
|
789
789
|
if (v(n.subscribe))
|
|
790
790
|
return n.subscribe(t);
|
|
791
791
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
@@ -804,7 +804,7 @@ function di(e) {
|
|
|
804
804
|
t.closed || (t.next(n), t.complete());
|
|
805
805
|
}, function(n) {
|
|
806
806
|
return t.error(n);
|
|
807
|
-
}).then(null,
|
|
807
|
+
}).then(null, qe);
|
|
808
808
|
});
|
|
809
809
|
}
|
|
810
810
|
function fi(e) {
|
|
@@ -841,7 +841,7 @@ function pi(e) {
|
|
|
841
841
|
}
|
|
842
842
|
function gi(e, t) {
|
|
843
843
|
var n, i, r, s;
|
|
844
|
-
return
|
|
844
|
+
return Yn(this, void 0, void 0, function() {
|
|
845
845
|
var o, a;
|
|
846
846
|
return ze(this, function(l) {
|
|
847
847
|
switch (l.label) {
|
|
@@ -912,10 +912,10 @@ function cn(e, t) {
|
|
|
912
912
|
});
|
|
913
913
|
}
|
|
914
914
|
function $i(e, t) {
|
|
915
|
-
return
|
|
915
|
+
return Y(e).pipe(cn(t), ln(t));
|
|
916
916
|
}
|
|
917
917
|
function vi(e, t) {
|
|
918
|
-
return
|
|
918
|
+
return Y(e).pipe(cn(t), ln(t));
|
|
919
919
|
}
|
|
920
920
|
function mi(e, t) {
|
|
921
921
|
return new w(function(n) {
|
|
@@ -979,7 +979,7 @@ function _i(e, t) {
|
|
|
979
979
|
throw en(e);
|
|
980
980
|
}
|
|
981
981
|
function wi(e, t) {
|
|
982
|
-
return t ? _i(e, t) :
|
|
982
|
+
return t ? _i(e, t) : Y(e);
|
|
983
983
|
}
|
|
984
984
|
function Si(e, t) {
|
|
985
985
|
return xt(function(n, i) {
|
|
@@ -997,7 +997,7 @@ function xi(e, t, n, i, r, s, o, a) {
|
|
|
997
997
|
}, $ = function(g) {
|
|
998
998
|
s && t.next(g), c++;
|
|
999
999
|
var ae = !1;
|
|
1000
|
-
|
|
1000
|
+
Y(n(g, u++)).subscribe(gt(t, function(Z) {
|
|
1001
1001
|
r == null || r(Z), s ? f(Z) : t.next(Z);
|
|
1002
1002
|
}, function() {
|
|
1003
1003
|
ae = !0;
|
|
@@ -1028,7 +1028,7 @@ function hn(e, t, n) {
|
|
|
1028
1028
|
return n === void 0 && (n = 1 / 0), v(t) ? hn(function(i, r) {
|
|
1029
1029
|
return Si(function(s, o) {
|
|
1030
1030
|
return t(i, s, r, o);
|
|
1031
|
-
})(
|
|
1031
|
+
})(Y(e(i, r)));
|
|
1032
1032
|
}, n) : (typeof t == "number" && (n = t), xt(function(i, r) {
|
|
1033
1033
|
return xi(i, r, e, n);
|
|
1034
1034
|
}));
|
|
@@ -1040,7 +1040,7 @@ function Ci() {
|
|
|
1040
1040
|
for (var e = [], t = 0; t < arguments.length; t++)
|
|
1041
1041
|
e[t] = arguments[t];
|
|
1042
1042
|
var n = ai(e), i = li(e, 1 / 0), r = e;
|
|
1043
|
-
return r.length ? r.length === 1 ?
|
|
1043
|
+
return r.length ? r.length === 1 ? Y(r[0]) : Ai(i)(wi(r, n)) : si;
|
|
1044
1044
|
}
|
|
1045
1045
|
/**
|
|
1046
1046
|
* @license
|
|
@@ -1629,7 +1629,7 @@ Rt == null || Rt({ LitElement: x });
|
|
|
1629
1629
|
* Copyright 2017 Google LLC
|
|
1630
1630
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1631
1631
|
*/
|
|
1632
|
-
const
|
|
1632
|
+
const Yi = { attribute: !0, type: String, converter: $t, reflect: !1, hasChanged: Qt }, qi = (e = Yi, t, n) => {
|
|
1633
1633
|
const { kind: i, metadata: r } = n;
|
|
1634
1634
|
let s = globalThis.litPropertyMetadata.get(r);
|
|
1635
1635
|
if (s === void 0 && globalThis.litPropertyMetadata.set(r, s = /* @__PURE__ */ new Map()), s.set(n.name, e), i === "accessor") {
|
|
@@ -1651,7 +1651,7 @@ const qi = { attribute: !0, type: String, converter: $t, reflect: !1, hasChanged
|
|
|
1651
1651
|
throw Error("Unsupported decorator location: " + i);
|
|
1652
1652
|
};
|
|
1653
1653
|
function b(e) {
|
|
1654
|
-
return (t, n) => typeof n == "object" ?
|
|
1654
|
+
return (t, n) => typeof n == "object" ? qi(e, t, n) : ((i, r, s) => {
|
|
1655
1655
|
const o = r.hasOwnProperty(s);
|
|
1656
1656
|
return r.constructor.createProperty(s, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(r, s) : void 0;
|
|
1657
1657
|
})(e, t, n);
|
|
@@ -1661,7 +1661,7 @@ function b(e) {
|
|
|
1661
1661
|
* Copyright 2017 Google LLC
|
|
1662
1662
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1663
1663
|
*/
|
|
1664
|
-
function
|
|
1664
|
+
function q(e) {
|
|
1665
1665
|
return b({ ...e, state: !0, attribute: !1 });
|
|
1666
1666
|
}
|
|
1667
1667
|
var Zi = Object.defineProperty, Ki = Object.getOwnPropertyDescriptor, Qi = (e, t, n, i) => {
|
|
@@ -2310,13 +2310,13 @@ Ct([
|
|
|
2310
2310
|
b({ attribute: !1 })
|
|
2311
2311
|
], M.prototype, "application", 2);
|
|
2312
2312
|
Ct([
|
|
2313
|
-
|
|
2313
|
+
q()
|
|
2314
2314
|
], M.prototype, "active", 2);
|
|
2315
2315
|
Ct([
|
|
2316
|
-
|
|
2316
|
+
q()
|
|
2317
2317
|
], M.prototype, "loaded", 2);
|
|
2318
2318
|
Ct([
|
|
2319
|
-
|
|
2319
|
+
q()
|
|
2320
2320
|
], M.prototype, "icon", 2);
|
|
2321
2321
|
var fr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, T = (e, t, n, i) => {
|
|
2322
2322
|
for (var r = i > 1 ? void 0 : i ? pr(t, n) : t, s = e.length - 1, o; s >= 0; s--)
|
|
@@ -2586,10 +2586,10 @@ ne([
|
|
|
2586
2586
|
b({ attribute: !0 })
|
|
2587
2587
|
], st.prototype, "name", 2);
|
|
2588
2588
|
ne([
|
|
2589
|
-
|
|
2589
|
+
q()
|
|
2590
2590
|
], st.prototype, "widget", 2);
|
|
2591
2591
|
ne([
|
|
2592
|
-
|
|
2592
|
+
q()
|
|
2593
2593
|
], st.prototype, "status", 2);
|
|
2594
2594
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", Xt);
|
|
2595
2595
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", M);
|
|
@@ -2597,8 +2597,8 @@ customElements.get("ace-unresolved-component") || customElements.define("ace-unr
|
|
|
2597
2597
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", ee);
|
|
2598
2598
|
customElements.get("ace-widget") || customElements.define("ace-widget", st);
|
|
2599
2599
|
class _r {
|
|
2600
|
-
constructor(t, n, i
|
|
2601
|
-
this.label = t, this.icon = n, this.onClick = i, this.
|
|
2600
|
+
constructor(t, n, i) {
|
|
2601
|
+
this.label = t, this.icon = n, this.onClick = i, this.update = new Ke();
|
|
2602
2602
|
}
|
|
2603
2603
|
updateLabel(t) {
|
|
2604
2604
|
this.label = t, this.update.next();
|
|
@@ -2623,8 +2623,7 @@ class wr {
|
|
|
2623
2623
|
const n = new _r(
|
|
2624
2624
|
t.label,
|
|
2625
2625
|
t.icon,
|
|
2626
|
-
t.onClick
|
|
2627
|
-
t.closeOnClick
|
|
2626
|
+
t.onClick
|
|
2628
2627
|
);
|
|
2629
2628
|
return this._options.push(n), this.handleUpdate(), n;
|
|
2630
2629
|
}
|
|
@@ -3005,11 +3004,11 @@ const kt = typeof window < "u" ? window : {}, A = kt.document || { head: {} }, O
|
|
|
3005
3004
|
const i = m.ce(t, n);
|
|
3006
3005
|
return e.dispatchEvent(i), i;
|
|
3007
3006
|
}, Gr = (e, t) => {
|
|
3008
|
-
}, Nn = (e, t) => (e.$flags$ |= 16, Gr(e, e.$ancestorComponent$), cs(() =>
|
|
3007
|
+
}, Nn = (e, t) => (e.$flags$ |= 16, Gr(e, e.$ancestorComponent$), cs(() => Yr(e, t))), Yr = (e, t) => {
|
|
3009
3008
|
const n = e.$hostElement$, i = U("scheduleUpdate", e.$cmpMeta$.$tagName$), r = n;
|
|
3010
3009
|
let s;
|
|
3011
|
-
return t ? s = F(r, "componentWillLoad") : s = F(r, "componentWillUpdate"), s = je(s, () => F(r, "componentWillRender")), i(), je(s, () =>
|
|
3012
|
-
},
|
|
3010
|
+
return t ? s = F(r, "componentWillLoad") : s = F(r, "componentWillUpdate"), s = je(s, () => F(r, "componentWillRender")), i(), je(s, () => qr(e, r, t));
|
|
3011
|
+
}, qr = async (e, t, n) => {
|
|
3013
3012
|
const i = e.$hostElement$, r = U("update", e.$cmpMeta$.$tagName$);
|
|
3014
3013
|
i["s-rc"], n && Pr(e);
|
|
3015
3014
|
const s = U("render", e.$cmpMeta$.$tagName$);
|
|
@@ -3341,7 +3340,7 @@ class Gn extends Wn {
|
|
|
3341
3340
|
${this.options.options.map((o) => _`<button
|
|
3342
3341
|
class="options-menu__item"
|
|
3343
3342
|
@click=${() => {
|
|
3344
|
-
|
|
3343
|
+
this._onToggleOptionsMenuClick(), o.onClick();
|
|
3345
3344
|
}}
|
|
3346
3345
|
>
|
|
3347
3346
|
${o.label}
|
|
@@ -3448,7 +3447,7 @@ Gn.styles = [
|
|
|
3448
3447
|
`
|
|
3449
3448
|
];
|
|
3450
3449
|
Ss([
|
|
3451
|
-
|
|
3450
|
+
q()
|
|
3452
3451
|
], Gn.prototype, "optionsIsVisible", 2);
|
|
3453
3452
|
export {
|
|
3454
3453
|
Gn as WidgetHeader,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Dt=function(e,t){return Dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Dt(e,t)};function it(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Dt=function(e,t){return Dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Dt(e,t)};function it(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Yn(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(h){o(h)}}function l(u){try{c(i.throw(u))}catch(h){o(h)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(e,t||[])).next())})}function Fe(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(i=1,r&&(s=c[0]&2?r.return:c[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,c[1])).done)return s;switch(r=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],r=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function W(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ft(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,s=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function pt(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function B(e){return this instanceof B?(this.v=e,this):new B(e)}function qn(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),r,s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(d){i[d]&&(r[d]=function(f){return new Promise(function($,g){s.push([d,f,$,g])>1||a(d,f)})})}function a(d,f){try{l(i[d](f))}catch($){h(s[0][3],$)}}function l(d){d.value instanceof B?Promise.resolve(d.value.v).then(c,u):h(s[0][2],d)}function c(d){a("next",d)}function u(d){a("throw",d)}function h(d,f){d(f),s.shift(),s.length&&a(s[0][0],s[0][1])}}function Zn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof W=="function"?W(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(s){n[s]=e[s]&&function(o){return new Promise(function(a,l){o=e[s](o),r(a,l,o.done,o.value)})}}function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}function v(e){return typeof e=="function"}function We(e){var t=function(i){Error.call(i),i.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Pt=We(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
2
2
|
`+n.map(function(i,r){return r+1+") "+i.toString()}).join(`
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}});function Bt(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var St=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,i,r,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=W(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(v(u))try{u()}catch(g){s=g instanceof Pt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=W(h),f=d.next();!f.done;f=d.next()){var $=f.value;try{ce($)}catch(g){s=s??[],g instanceof Pt?s=pt(pt([],ft(s)),ft(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}}if(s)throw new Pt(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)ce(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Bt(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Bt(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ge=St.EMPTY;function qe(e){return e instanceof St||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function ce(e){v(e)?e():e.unsubscribe()}var Ye={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zt={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=zt.delegate;return r!=null&&r.setTimeout?r.setTimeout.apply(r,pt([e,t],ft(n))):setTimeout.apply(void 0,pt([e,t],ft(n)))},clearTimeout:function(e){var t=zt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ze(e){zt.setTimeout(function(){throw e})}function ue(){}function ht(e){e()}var Yt=function(e){it(t,e);function t(n){var i=e.call(this)||this;return i.isStopped=!1,n?(i.destination=n,qe(n)&&n.add(i)):i.destination=Jn,i}return t.create=function(n,i,r){return new Ft(n,i,r)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(St),Kn=Function.prototype.bind;function Lt(e,t){return Kn.call(e,t)}var Qn=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){lt(i)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){lt(i)}else lt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){lt(n)}},e}(),Ft=function(e){it(t,e);function t(n,i,r){var s=e.call(this)||this,o;if(v(n)||!n)o={next:n??void 0,error:i??void 0,complete:r??void 0};else{var a;s&&Ye.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return s.unsubscribe()},o={next:n.next&&Lt(n.next,a),error:n.error&&Lt(n.error,a),complete:n.complete&&Lt(n.complete,a)}):o=n}return s.destination=new Qn(o),s}return t}(Yt);function lt(e){Ze(e)}function Xn(e){throw e}var Jn={closed:!0,next:ue,error:Xn,complete:ue},Zt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ke(e){return e}function Vn(e){return e.length===0?Ke:e.length===1?e[0]:function(n){return e.reduce(function(i,r){return r(i)},n)}}var w=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,i){var r=this,s=ei(t)?t:new Ft(t,n,i);return ht(function(){var o=r,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?r._subscribe(s):r._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var i=this;return n=he(n),new n(function(r,s){var o=new Ft({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});i.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Zt]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Vn(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=he(t),new t(function(i,r){var s;n.subscribe(function(o){return s=o},function(o){return r(o)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function he(e){var t;return(t=e??Ye.Promise)!==null&&t!==void 0?t:Promise}function ti(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function ei(e){return e&&e instanceof Yt||ti(e)&&qe(e)}function ni(e){return v(e==null?void 0:e.lift)}function xt(e){return function(t){if(ni(t))return t.lift(function(n){try{return e(n,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function gt(e,t,n,i,r){return new ii(e,t,n,i,r)}var ii=function(e){it(t,e);function t(n,i,r,s,o,a){var l=e.call(this,n)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=i?function(c){try{i(c)}catch(u){n.error(u)}}:e.prototype._next,l._error=s?function(c){try{s(c)}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=r?function(){try{r()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(Yt),ri=We(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Qe=function(e){it(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var i=new de(this,this);return i.operator=n,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new ri},t.prototype.next=function(n){var i=this;ht(function(){var r,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=W(i.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(n)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(n){var i=this;ht(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=n;for(var r=i.observers;r.length;)r.shift().error(n)}})},t.prototype.complete=function(){var n=this;ht(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var i=n.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 n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var i=this,r=this,s=r.hasError,o=r.isStopped,a=r.observers;return s||o?Ge:(this.currentObservers=null,a.push(n),new St(function(){i.currentObservers=null,Bt(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var i=this,r=i.hasError,s=i.thrownError,o=i.isStopped;r?n.error(s):o&&n.complete()},t.prototype.asObservable=function(){var n=new w;return n.source=this,n},t.create=function(n,i){return new de(n,i)},t}(w),de=function(e){it(t,e);function t(n,i){var r=e.call(this)||this;return r.destination=n,r.source=i,r}return t.prototype.next=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,n)},t.prototype.error=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,n)},t.prototype.complete=function(){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||i===void 0||i.call(n)},t.prototype._subscribe=function(n){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(n))!==null&&r!==void 0?r:Ge},t}(Qe),si=new w(function(e){return e.complete()});function oi(e){return e&&v(e.schedule)}function Xe(e){return e[e.length-1]}function ai(e){return oi(Xe(e))?e.pop():void 0}function li(e,t){return typeof Xe(e)=="number"?e.pop():t}var Je=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Ve(e){return v(e==null?void 0:e.then)}function tn(e){return v(e[Zt])}function en(e){return Symbol.asyncIterator&&v(e==null?void 0:e[Symbol.asyncIterator])}function nn(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ci(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rn=ci();function sn(e){return v(e==null?void 0:e[rn])}function on(e){return Yn(this,arguments,function(){var n,i,r,s;return Fe(this,function(o){switch(o.label){case 0:n=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,B(n.read())];case 3:return i=o.sent(),r=i.value,s=i.done,s?[4,B(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,B(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function an(e){return v(e==null?void 0:e.getReader)}function q(e){if(e instanceof w)return e;if(e!=null){if(tn(e))return ui(e);if(Je(e))return hi(e);if(Ve(e))return di(e);if(en(e))return ln(e);if(sn(e))return fi(e);if(an(e))return pi(e)}throw nn(e)}function ui(e){return new w(function(t){var n=e[Zt]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function hi(e){return new w(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function di(e){return new w(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,Ze)})}function fi(e){return new w(function(t){var n,i;try{for(var r=W(e),s=r.next();!s.done;s=r.next()){var o=s.value;if(t.next(o),t.closed)return}}catch(a){n={error:a}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}t.complete()})}function ln(e){return new w(function(t){gi(e,t).catch(function(n){return t.error(n)})})}function pi(e){return ln(on(e))}function gi(e,t){var n,i,r,s;return qn(this,void 0,void 0,function(){var o,a;return Fe(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=Zn(e),l.label=1;case 1:return[4,n.next()];case 2:if(i=l.sent(),!!i.done)return[3,4];if(o=i.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),r={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),i&&!i.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function E(e,t,n,i,r){i===void 0&&(i=0),r===void 0&&(r=!1);var s=t.schedule(function(){n(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(s),!r)return s}function cn(e,t){return t===void 0&&(t=0),xt(function(n,i){n.subscribe(gt(i,function(r){return E(i,e,function(){return i.next(r)},t)},function(){return E(i,e,function(){return i.complete()},t)},function(r){return E(i,e,function(){return i.error(r)},t)}))})}function un(e,t){return t===void 0&&(t=0),xt(function(n,i){i.add(e.schedule(function(){return n.subscribe(i)},t))})}function $i(e,t){return q(e).pipe(un(t),cn(t))}function vi(e,t){return q(e).pipe(un(t),cn(t))}function mi(e,t){return new w(function(n){var i=0;return t.schedule(function(){i===e.length?n.complete():(n.next(e[i++]),n.closed||this.schedule())})})}function yi(e,t){return new w(function(n){var i;return E(n,t,function(){i=e[rn](),E(n,t,function(){var r,s,o;try{r=i.next(),s=r.value,o=r.done}catch(a){n.error(a);return}o?n.complete():n.next(s)},0,!0)}),function(){return v(i==null?void 0:i.return)&&i.return()}})}function hn(e,t){if(!e)throw new Error("Iterable cannot be null");return new w(function(n){E(n,t,function(){var i=e[Symbol.asyncIterator]();E(n,t,function(){i.next().then(function(r){r.done?n.complete():n.next(r.value)})},0,!0)})})}function bi(e,t){return hn(on(e),t)}function _i(e,t){if(e!=null){if(tn(e))return $i(e,t);if(Je(e))return mi(e,t);if(Ve(e))return vi(e,t);if(en(e))return hn(e,t);if(sn(e))return yi(e,t);if(an(e))return bi(e,t)}throw nn(e)}function wi(e,t){return t?_i(e,t):q(e)}function Si(e,t){return xt(function(n,i){var r=0;n.subscribe(gt(i,function(s){i.next(e.call(t,s,r++))}))})}function xi(e,t,n,i,r,s,o,a){var l=[],c=0,u=0,h=!1,d=function(){h&&!l.length&&!c&&t.complete()},f=function(g){return c<i?$(g):l.push(g)},$=function(g){s&&t.next(g),c++;var le=!1;q(n(g,u++)).subscribe(gt(t,function(Z){r==null||r(Z),s?f(Z):t.next(Z)},function(){le=!0},void 0,function(){if(le)try{c--;for(var Z=function(){var at=l.shift();o?E(t,o,function(){return $(at)}):$(at)};l.length&&c<i;)Z();d()}catch(at){t.error(at)}}))};return e.subscribe(gt(t,f,function(){h=!0,d()})),function(){a==null||a()}}function dn(e,t,n){return n===void 0&&(n=1/0),v(t)?dn(function(i,r){return Si(function(s,o){return t(i,s,r,o)})(q(e(i,r)))},n):(typeof t=="number"&&(n=t),xt(function(i,r){return xi(i,r,e,n)}))}function Ai(e){return e===void 0&&(e=1/0),dn(Ke,e)}function Ci(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ai(e),i=li(e,1/0),r=e;return r.length?r.length===1?q(r[0]):Ai(i)(wi(r,n)):si}/**
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function Bt(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var St=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,i,r,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=W(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(v(u))try{u()}catch(g){s=g instanceof Pt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=W(h),f=d.next();!f.done;f=d.next()){var $=f.value;try{ce($)}catch(g){s=s??[],g instanceof Pt?s=pt(pt([],ft(s)),ft(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}}if(s)throw new Pt(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)ce(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Bt(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Bt(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ge=St.EMPTY;function Ye(e){return e instanceof St||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function ce(e){v(e)?e():e.unsubscribe()}var qe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zt={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=zt.delegate;return r!=null&&r.setTimeout?r.setTimeout.apply(r,pt([e,t],ft(n))):setTimeout.apply(void 0,pt([e,t],ft(n)))},clearTimeout:function(e){var t=zt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ze(e){zt.setTimeout(function(){throw e})}function ue(){}function ht(e){e()}var qt=function(e){it(t,e);function t(n){var i=e.call(this)||this;return i.isStopped=!1,n?(i.destination=n,Ye(n)&&n.add(i)):i.destination=Jn,i}return t.create=function(n,i,r){return new Ft(n,i,r)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(St),Kn=Function.prototype.bind;function Lt(e,t){return Kn.call(e,t)}var Qn=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){lt(i)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){lt(i)}else lt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){lt(n)}},e}(),Ft=function(e){it(t,e);function t(n,i,r){var s=e.call(this)||this,o;if(v(n)||!n)o={next:n??void 0,error:i??void 0,complete:r??void 0};else{var a;s&&qe.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return s.unsubscribe()},o={next:n.next&&Lt(n.next,a),error:n.error&&Lt(n.error,a),complete:n.complete&&Lt(n.complete,a)}):o=n}return s.destination=new Qn(o),s}return t}(qt);function lt(e){Ze(e)}function Xn(e){throw e}var Jn={closed:!0,next:ue,error:Xn,complete:ue},Zt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ke(e){return e}function Vn(e){return e.length===0?Ke:e.length===1?e[0]:function(n){return e.reduce(function(i,r){return r(i)},n)}}var w=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,i){var r=this,s=ei(t)?t:new Ft(t,n,i);return ht(function(){var o=r,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?r._subscribe(s):r._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var i=this;return n=he(n),new n(function(r,s){var o=new Ft({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});i.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Zt]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Vn(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=he(t),new t(function(i,r){var s;n.subscribe(function(o){return s=o},function(o){return r(o)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function he(e){var t;return(t=e??qe.Promise)!==null&&t!==void 0?t:Promise}function ti(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function ei(e){return e&&e instanceof qt||ti(e)&&Ye(e)}function ni(e){return v(e==null?void 0:e.lift)}function xt(e){return function(t){if(ni(t))return t.lift(function(n){try{return e(n,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function gt(e,t,n,i,r){return new ii(e,t,n,i,r)}var ii=function(e){it(t,e);function t(n,i,r,s,o,a){var l=e.call(this,n)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=i?function(c){try{i(c)}catch(u){n.error(u)}}:e.prototype._next,l._error=s?function(c){try{s(c)}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=r?function(){try{r()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(qt),ri=We(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Qe=function(e){it(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var i=new de(this,this);return i.operator=n,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new ri},t.prototype.next=function(n){var i=this;ht(function(){var r,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=W(i.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(n)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(n){var i=this;ht(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=n;for(var r=i.observers;r.length;)r.shift().error(n)}})},t.prototype.complete=function(){var n=this;ht(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var i=n.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 n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var i=this,r=this,s=r.hasError,o=r.isStopped,a=r.observers;return s||o?Ge:(this.currentObservers=null,a.push(n),new St(function(){i.currentObservers=null,Bt(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var i=this,r=i.hasError,s=i.thrownError,o=i.isStopped;r?n.error(s):o&&n.complete()},t.prototype.asObservable=function(){var n=new w;return n.source=this,n},t.create=function(n,i){return new de(n,i)},t}(w),de=function(e){it(t,e);function t(n,i){var r=e.call(this)||this;return r.destination=n,r.source=i,r}return t.prototype.next=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,n)},t.prototype.error=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,n)},t.prototype.complete=function(){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||i===void 0||i.call(n)},t.prototype._subscribe=function(n){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(n))!==null&&r!==void 0?r:Ge},t}(Qe),si=new w(function(e){return e.complete()});function oi(e){return e&&v(e.schedule)}function Xe(e){return e[e.length-1]}function ai(e){return oi(Xe(e))?e.pop():void 0}function li(e,t){return typeof Xe(e)=="number"?e.pop():t}var Je=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Ve(e){return v(e==null?void 0:e.then)}function tn(e){return v(e[Zt])}function en(e){return Symbol.asyncIterator&&v(e==null?void 0:e[Symbol.asyncIterator])}function nn(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ci(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rn=ci();function sn(e){return v(e==null?void 0:e[rn])}function on(e){return qn(this,arguments,function(){var n,i,r,s;return Fe(this,function(o){switch(o.label){case 0:n=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,B(n.read())];case 3:return i=o.sent(),r=i.value,s=i.done,s?[4,B(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,B(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function an(e){return v(e==null?void 0:e.getReader)}function Y(e){if(e instanceof w)return e;if(e!=null){if(tn(e))return ui(e);if(Je(e))return hi(e);if(Ve(e))return di(e);if(en(e))return ln(e);if(sn(e))return fi(e);if(an(e))return pi(e)}throw nn(e)}function ui(e){return new w(function(t){var n=e[Zt]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function hi(e){return new w(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function di(e){return new w(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,Ze)})}function fi(e){return new w(function(t){var n,i;try{for(var r=W(e),s=r.next();!s.done;s=r.next()){var o=s.value;if(t.next(o),t.closed)return}}catch(a){n={error:a}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}t.complete()})}function ln(e){return new w(function(t){gi(e,t).catch(function(n){return t.error(n)})})}function pi(e){return ln(on(e))}function gi(e,t){var n,i,r,s;return Yn(this,void 0,void 0,function(){var o,a;return Fe(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=Zn(e),l.label=1;case 1:return[4,n.next()];case 2:if(i=l.sent(),!!i.done)return[3,4];if(o=i.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),r={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),i&&!i.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function E(e,t,n,i,r){i===void 0&&(i=0),r===void 0&&(r=!1);var s=t.schedule(function(){n(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(s),!r)return s}function cn(e,t){return t===void 0&&(t=0),xt(function(n,i){n.subscribe(gt(i,function(r){return E(i,e,function(){return i.next(r)},t)},function(){return E(i,e,function(){return i.complete()},t)},function(r){return E(i,e,function(){return i.error(r)},t)}))})}function un(e,t){return t===void 0&&(t=0),xt(function(n,i){i.add(e.schedule(function(){return n.subscribe(i)},t))})}function $i(e,t){return Y(e).pipe(un(t),cn(t))}function vi(e,t){return Y(e).pipe(un(t),cn(t))}function mi(e,t){return new w(function(n){var i=0;return t.schedule(function(){i===e.length?n.complete():(n.next(e[i++]),n.closed||this.schedule())})})}function yi(e,t){return new w(function(n){var i;return E(n,t,function(){i=e[rn](),E(n,t,function(){var r,s,o;try{r=i.next(),s=r.value,o=r.done}catch(a){n.error(a);return}o?n.complete():n.next(s)},0,!0)}),function(){return v(i==null?void 0:i.return)&&i.return()}})}function hn(e,t){if(!e)throw new Error("Iterable cannot be null");return new w(function(n){E(n,t,function(){var i=e[Symbol.asyncIterator]();E(n,t,function(){i.next().then(function(r){r.done?n.complete():n.next(r.value)})},0,!0)})})}function bi(e,t){return hn(on(e),t)}function _i(e,t){if(e!=null){if(tn(e))return $i(e,t);if(Je(e))return mi(e,t);if(Ve(e))return vi(e,t);if(en(e))return hn(e,t);if(sn(e))return yi(e,t);if(an(e))return bi(e,t)}throw nn(e)}function wi(e,t){return t?_i(e,t):Y(e)}function Si(e,t){return xt(function(n,i){var r=0;n.subscribe(gt(i,function(s){i.next(e.call(t,s,r++))}))})}function xi(e,t,n,i,r,s,o,a){var l=[],c=0,u=0,h=!1,d=function(){h&&!l.length&&!c&&t.complete()},f=function(g){return c<i?$(g):l.push(g)},$=function(g){s&&t.next(g),c++;var le=!1;Y(n(g,u++)).subscribe(gt(t,function(Z){r==null||r(Z),s?f(Z):t.next(Z)},function(){le=!0},void 0,function(){if(le)try{c--;for(var Z=function(){var at=l.shift();o?E(t,o,function(){return $(at)}):$(at)};l.length&&c<i;)Z();d()}catch(at){t.error(at)}}))};return e.subscribe(gt(t,f,function(){h=!0,d()})),function(){a==null||a()}}function dn(e,t,n){return n===void 0&&(n=1/0),v(t)?dn(function(i,r){return Si(function(s,o){return t(i,s,r,o)})(Y(e(i,r)))},n):(typeof t=="number"&&(n=t),xt(function(i,r){return xi(i,r,e,n)}))}function Ai(e){return e===void 0&&(e=1/0),dn(Ke,e)}function Ci(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ai(e),i=li(e,1/0),r=e;return r.length?r.length===1?Y(r[0]):Ai(i)(wi(r,n)):si}/**
|
|
4
4
|
* @license
|
|
5
5
|
* Copyright 2019 Google LLC
|
|
6
6
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/const
|
|
25
|
+
*/const Yi={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:Xt},qi=(e=Yi,t,n)=>{const{kind:i,metadata:r}=n;let s=globalThis.litPropertyMetadata.get(r);if(s===void 0&&globalThis.litPropertyMetadata.set(r,s=new Map),s.set(n.name,e),i==="accessor"){const{name:o}=n;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,e)},init(a){return a!==void 0&&this.C(o,void 0,e),a}}}if(i==="setter"){const{name:o}=n;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,e)}}throw Error("Unsupported decorator location: "+i)};function b(e){return(t,n)=>typeof n=="object"?qi(e,t,n):((i,r,s)=>{const o=r.hasOwnProperty(s);return r.constructor.createProperty(s,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(r,s):void 0})(e,t,n)}/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/function
|
|
29
|
+
*/function q(e){return b({...e,state:!0,attribute:!1})}var Zi=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor,Qi=(e,t,n,i)=>{for(var r=i>1?void 0:i?Ki(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&Zi(t,n,r),r};class Jt extends x{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var n;return(n=this.shadowRoot)==null||n.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}}Jt.styles=[R`
|
|
30
30
|
:host {
|
|
31
31
|
position: fixed;
|
|
32
32
|
display: flex;
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
.trigger-label:hover {
|
|
215
215
|
opacity: 0.8;
|
|
216
216
|
}
|
|
217
|
-
`];Ct([b({attribute:!1})],M.prototype,"application",2);Ct([
|
|
217
|
+
`];Ct([b({attribute:!1})],M.prototype,"application",2);Ct([q()],M.prototype,"active",2);Ct([q()],M.prototype,"loaded",2);Ct([q()],M.prototype,"icon",2);var fr=Object.defineProperty,pr=Object.getOwnPropertyDescriptor,T=(e,t,n,i)=>{for(var r=i>1?void 0:i?pr(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&fr(t,n,r),r};const Cn=e=>{class t extends e{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(i){this.properties=i}writeLayout(i){this.layout=i}writeContext(i){this.context=i}addChild(i){i.parent=this,this.nodes.push(i)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}}return t.styles=[R`
|
|
218
218
|
:host {
|
|
219
219
|
font-family: var(--font-family);
|
|
220
220
|
grid-column: span var(--width);
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
:host {
|
|
338
338
|
display: block;
|
|
339
339
|
}
|
|
340
|
-
`];ie([b({attribute:!0})],st.prototype,"name",2);ie([Y()],st.prototype,"widget",2);ie([Y()],st.prototype,"status",2);customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",Jt);customElements.get("ace-trigger")||customElements.define("ace-trigger",M);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",En);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",ne);customElements.get("ace-widget")||customElements.define("ace-widget",st);class _r{constructor(t,n,i,r){this.label=t,this.icon=n,this.onClick=i,this.closeOnClick=r,this.update=new Qe}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}subscribe(){return this.update.asObservable()}}class wr{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const n=new _r(t.label,t.icon,t.onClick,t.closeOnClick);return this._options.push(n),this.handleUpdate(),n}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(n=>n.subscribe());this._subscription=Ci(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const H={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let N,kn,Et,On=!1,yt=!1,re=!1,y=!1,Te=null,Wt=!1;const kt=typeof window<"u"?window:{},A=kt.document||{head:{}},Tn=kt.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},Sr=(()=>{let e=!1;try{A.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),xr=e=>Promise.resolve(e),Ar=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Pn=(e,t,n,i)=>{n&&n.map(([r,s,o])=>{const a=Er(e,r),l=Cr(t,o),c=kr(r);m.ael(a,s,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,s,l,c))})},Cr=(e,t)=>n=>{try{H.lazyLoad||e.$hostElement$[t](n)}catch(i){ot(i)}},Er=(e,t)=>t&4?A:t&8?kt:t&16?A.body:e,kr=e=>Sr?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,Pe="http://www.w3.org/1999/xlink",U=(e,t="")=>()=>{},Le=new WeakMap,Or=(e,t,n)=>{let i=wt.get(e);Ar&&n?(i=i||new CSSStyleSheet,i.replace(t)):i=t,wt.set(e,i)},Tr=(e,t,n,i)=>{let r=Ln(t,n),s=wt.get(r);if(e=e.nodeType===11?e:A,s)if(typeof s=="string"){e=e.head||e;let o=Le.get(e),a;o||Le.set(e,o=new Set),o.has(r)||(a=A.createElement("style"),a.innerHTML=s,e.insertBefore(a,e.querySelector("link")),o&&o.add(r))}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return r},Pr=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,r=U("attachStyles",t.$tagName$),s=Tr(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$);i&10&&(n["s-sc"]=s,n.classList.add(s+"-h"),i&2&&n.classList.add(s+"-s")),r()},Ln=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),Lr=e=>os.map(t=>t(e)).find(t=>!!t),Ie={},Ir="http://www.w3.org/2000/svg",Ur="http://www.w3.org/1999/xhtml",Rr=e=>e!=null,se=e=>(e=typeof e,e==="object"||e==="function"),z=(e,t,...n)=>{let i=null,r=null,s=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)i=h[d],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((o=typeof e!="function"&&!se(i))&&(i=String(i)),o&&a?l[l.length-1].$text$+=i:l.push(o?bt(null,i):i),a=o)};if(c(n),t){t.key&&(r=t.key),t.name&&(s=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(d=>h[d]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,jr);const u=bt(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=s,u},bt=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},oe={},Mr=e=>e&&e.$tag$===oe,jr={forEach:(e,t)=>e.map(Ue).forEach(t),map:(e,t)=>e.map(Ue).map(t).map(Hr)},Ue=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Hr=e=>{if(typeof e.vtag=="function"){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),z(e.vtag,n,...e.vchildren||[])}const t=bt(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Re=(e,t,n,i,r,s)=>{if(n!==i){let o=Ne(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=Me(n),u=Me(i);l.remove(...c.filter(h=>h&&!u.includes(h))),l.add(...u.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in n)(!i||i[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in i)(!n||i[l]!==n[l])&&(l.includes("-")?e.style.setProperty(l,i[l]):e.style[l]=i[l])}else if(t!=="key")if(t==="ref")i&&i(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Ne(kt,a)?t=a.slice(2):t=a[2]+t.slice(3),n&&m.rel(e,t,n,!1),i&&m.ael(e,t,i,!1);else{const l=se(i);if((o||l&&i!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=i;else{let u=i??"";t==="list"?o=!1:(n==null||e[t]!=u)&&(e[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),i==null||i===!1?(i!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(Pe,t):e.removeAttribute(t)):(!o||s&4||r)&&!l&&(i=i===!0?"":i,c?e.setAttributeNS(Pe,t,i):e.setAttribute(t,i))}}},Nr=/\s/,Me=e=>e?e.split(Nr):[],In=(e,t,n,i)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||Ie,o=t.$attrs$||Ie;for(i in s)i in o||Re(r,i,s[i],void 0,n,t.$flags$);for(i in o)Re(r,i,s[i],o[i],n,t.$flags$)},_t=(e,t,n,i)=>{let r=t.$children$[n],s=0,o,a,l;if(On||(re=!0,r.$tag$==="slot"&&(N&&i.classList.add(N+"-s"),r.$flags$|=r.$children$?2:1)),r.$text$!==null)o=r.$elm$=A.createTextNode(r.$text$);else if(r.$flags$&1)o=r.$elm$=A.createTextNode("");else{if(y||(y=r.$tag$==="svg"),o=r.$elm$=A.createElementNS(y?Ir:Ur,r.$flags$&2?"slot-fb":r.$tag$),y&&r.$tag$==="foreignObject"&&(y=!1),In(null,r,y),Rr(N)&&o["s-si"]!==N&&o.classList.add(o["s-si"]=N),r.$children$)for(s=0;s<r.$children$.length;++s)a=_t(e,r,s,o),a&&o.appendChild(a);r.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=Et,r.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=kn,o["s-sn"]=r.$name$||"",l=e&&e.$children$&&e.$children$[n],l&&l.$tag$===r.$tag$&&e.$elm$&&nt(e.$elm$,!1)),o},nt=(e,t)=>{m.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const r=n[i];r["s-hn"]!==Et&&r["s-ol"]&&(Mn(r).insertBefore(r,ae(r)),r["s-ol"].remove(),r["s-ol"]=void 0,re=!0),t&&nt(r,t)}m.$flags$&=-2},Un=(e,t,n,i,r,s)=>{let o=e["s-cr"]&&e["s-cr"].parentNode||e,a;for(o.shadowRoot&&o.tagName===Et&&(o=o.shadowRoot);r<=s;++r)i[r]&&(a=_t(null,n,r,e),a&&(i[r].$elm$=a,o.insertBefore(a,ae(t))))},Rn=(e,t,n,i,r)=>{for(;t<=n;++t)(i=e[t])&&(r=i.$elm$,Nn(i),yt=!0,r["s-ol"]?r["s-ol"].remove():nt(r,!0),r.remove())},Dr=(e,t,n,i)=>{let r=0,s=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=i.length-1,d=i[0],f=i[h],$,g;for(;r<=l&&s<=h;)if(c==null)c=t[++r];else if(u==null)u=t[--l];else if(d==null)d=i[++s];else if(f==null)f=i[--h];else if(ut(c,d))D(c,d),c=t[++r],d=i[++s];else if(ut(u,f))D(u,f),u=t[--l],f=i[--h];else if(ut(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&nt(c.$elm$.parentNode,!1),D(c,f),e.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++r],f=i[--h];else if(ut(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&nt(u.$elm$.parentNode,!1),D(u,d),e.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=i[++s];else{for(o=-1,a=r;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?$=_t(t&&t[s],n,o,e):(D(g,d),t[o]=void 0,$=g.$elm$),d=i[++s]):($=_t(t&&t[s],n,s,e),d=i[++s]),$&&Mn(c.$elm$).insertBefore($,ae(c.$elm$))}r>l?Un(e,i[h+1]==null?null:i[h+1].$elm$,n,i,s,h):s>h&&Rn(t,r,l)},ut=(e,t)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:e.$key$===t.$key$:!1,ae=e=>e&&e["s-ol"]||e,Mn=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,D=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,r=t.$children$,s=t.$tag$,o=t.$text$;let a;o===null?(y=s==="svg"?!0:s==="foreignObject"?!1:y,s==="slot"||In(e,t,y),i!==null&&r!==null?Dr(n,i,t,r):r!==null?(e.$text$!==null&&(n.textContent=""),Un(n,null,t,r,0,r.length-1)):i!==null&&Rn(i,0,i.length-1),y&&s==="svg"&&(y=!1)):(a=n["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(n.data=o)},jn=e=>{let t=e.childNodes,n,i,r,s,o,a;for(i=0,r=t.length;i<r;i++)if(n=t[i],n.nodeType===1){if(n["s-sr"]){for(o=n["s-sn"],n.hidden=!1,s=0;s<r;s++)if(a=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||o!==""){if(a===1&&o===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(a===1||a===3&&t[s].textContent.trim()!==""){n.hidden=!0;break}}jn(n)}},S=[],Hn=e=>{let t,n,i,r,s,o,a=0,l=e.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(i=n.parentNode.childNodes,r=t["s-sn"],o=i.length-1;o>=0;o--)n=i[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(je(n,r)?(s=S.find(u=>u.$nodeToRelocate$===n),yt=!0,n["s-sn"]=n["s-sn"]||r,s?s.$slotRefNode$=t:S.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&S.map(u=>{je(u.$nodeToRelocate$,n["s-sn"])&&(s=S.find(h=>h.$nodeToRelocate$===n),s&&!u.$slotRefNode$&&(u.$slotRefNode$=s.$slotRefNode$))})):S.some(u=>u.$nodeToRelocate$===n)||S.push({$nodeToRelocate$:n}));t.nodeType===1&&Hn(t)}},je=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",Nn=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Nn)},Br=(e,t)=>{const n=e.$hostElement$,i=e.$cmpMeta$,r=e.$vnode$||bt(null,null),s=Mr(t)?t:z(null,null,t);Et=n.tagName,i.$attrsToReflect$&&(s.$attrs$=s.$attrs$||{},i.$attrsToReflect$.map(([o,a])=>s.$attrs$[a]=n[o])),s.$tag$=null,s.$flags$|=4,e.$vnode$=s,s.$elm$=r.$elm$=n.shadowRoot||n,N=n["s-sc"],kn=n["s-cr"],On=(i.$flags$&1)!==0,yt=!1,D(r,s);{if(m.$flags$|=1,re){Hn(s.$elm$);let o,a,l,c,u,h,d=0;for(;d<S.length;d++)o=S[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=A.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<S.length;d++)if(o=S[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,u=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&c!==a.parentNode||a.nextSibling!==u)&&a!==u&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,u))}else a.nodeType===1&&(a.hidden=!0)}yt&&jn(s.$elm$),m.$flags$&=-2,S.length=0}},zr=e=>e,Fr=(e,t,n)=>{const i=zr(e);return{emit:r=>Wr(i,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}},Wr=(e,t,n)=>{const i=m.ce(t,n);return e.dispatchEvent(i),i},Gr=(e,t)=>{},Dn=(e,t)=>(e.$flags$|=16,Gr(e,e.$ancestorComponent$),cs(()=>qr(e,t))),qr=(e,t)=>{const n=e.$hostElement$,i=U("scheduleUpdate",e.$cmpMeta$.$tagName$),r=n;let s;return t?s=F(r,"componentWillLoad"):s=F(r,"componentWillUpdate"),s=He(s,()=>F(r,"componentWillRender")),i(),He(s,()=>Yr(e,r,t))},Yr=async(e,t,n)=>{const i=e.$hostElement$,r=U("update",e.$cmpMeta$.$tagName$);i["s-rc"],n&&Pr(e);const s=U("render",e.$cmpMeta$.$tagName$);Zr(e,t,i),s(),r(),Kr(e)},Zr=(e,t,n)=>{try{Te=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(H.hasRenderFn||H.reflect)&&(H.vdomRender||H.reflect)&&(H.hydrateServerSide||Br(e,t))}catch(a){ot(a,e.$hostElement$)}return Te=null,null},Kr=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,i=U("postUpdate",t),r=n;e.$ancestorComponent$,F(r,"componentDidRender"),e.$flags$&64?(F(r,"componentDidUpdate"),i()):(e.$flags$|=64,F(r,"componentDidLoad"),i())},F=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(i){ot(i)}},He=(e,t)=>e&&e.then?e.then(t):t(),Qr=(e,t)=>e!=null&&!se(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,Xr=(e,t)=>Ot(e).$instanceValues$.get(t),Jr=(e,t,n,i)=>{const r=Ot(e),s=e,o=r.$instanceValues$.get(t),a=r.$flags$,l=s;n=Qr(n,i.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(n);if(n!==o&&!c){r.$instanceValues$.set(t,n);{if(i.$watchers$&&a&128){const h=i.$watchers$[t];h&&h.map(d=>{try{l[d](n,o,t)}catch(f){ot(f,s)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,o,t)===!1)return;Dn(r,!1)}}}},Vr=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),r=e.prototype;i.map(([s,[o]])=>{(o&31||o&32)&&Object.defineProperty(r,s,{get(){return Xr(this,s)},set(a){Jr(this,s,a,t)},configurable:!0,enumerable:!0})});{const s=new Map;r.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=s.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(r.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},e.observedAttributes=i.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return s.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return e},ts=async(e,t,n,i,r)=>{if(!(t.$flags$&32)&&(r=e.constructor,t.$flags$|=32,customElements.whenDefined(n.$tagName$).then(()=>t.$flags$|=128),r.style)){let o=r.style;typeof o!="string"&&(o=o[t.$modeName$=Lr(e)]);const a=Ln(n,t.$modeName$);if(!wt.has(a)){const l=U("registerStyles",n.$tagName$);Or(a,o,!!(n.$flags$&1)),l()}}t.$ancestorComponent$,(()=>Dn(t,!0))()},es=e=>{},ns=e=>{if(!(m.$flags$&1)){const t=Ot(e),n=t.$cmpMeta$,i=U("connectedCallback",n.$tagName$);t.$flags$&1?(Pn(e,t,n.$listeners$),es(t.$lazyInstance$)):(t.$flags$|=1,n.$flags$&12&&is(e),n.$members$&&Object.entries(n.$members$).map(([r,[s]])=>{if(s&31&&e.hasOwnProperty(r)){const o=e[r];delete e[r],e[r]=o}}),ts(e,t,n)),i()}},is=e=>{const t=e["s-cr"]=A.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},rs=e=>{if(!(m.$flags$&1)){const t=Ot(e);t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0)}},Bn=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[];const i=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){ss(this,n)},connectedCallback(){ns(this),i&&i.call(this)},disconnectedCallback(){rs(this),r&&r.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}),e.is=n.$tagName$,Vr(e,n)},zn=new WeakMap,Ot=e=>zn.get(e),ss=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return Pn(e,n,t.$listeners$),zn.set(e,n)},Ne=(e,t)=>t in e,ot=(e,t)=>(0,console.error)(e,t),wt=new Map,os=[],De=[],Fn=[],as=(e,t)=>n=>{e.push(n),Wt||(Wt=!0,t&&m.$flags$&4?ls(Gt):m.raf(Gt))},Be=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){ot(n)}e.length=0},Gt=()=>{Be(De),Be(Fn),(Wt=De.length>0)&&m.raf(Gt)},ls=e=>xr().then(e),cs=as(Fn,!0),us=(e={})=>{const{content:t="",title:n,attributes:i=[]}=e;let r="",s=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...i];return n&&(r=`<title>${n}</title>`),`<svg ${s.map(a=>`${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`},hs=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim();function ds(e){return`${e.getFullYear()}.${e.getMonth()+1}`}class fs{constructor(t){this.voca_component=t,this.voca_added=ds(new Date)}}const ps="telia-vst{display:none}",gs=Bn(class extends Tn{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Fr(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new fs(this.dataTrackingId))}render(){return z(oe,null)}static get style(){return ps}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Wn(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,gs);break}})}Wn();function qt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function $s(){if(typeof qt().vocadsIcons!==void 0)return qt().vocadsIcons}function vs(){return qt().vocadsIconsRegistered}const ms=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",ys=Bn(class extends Tn{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(vs()&&this.name){const e=$s();return e[this.name]?e[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let e=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const n=us({content:hs(e),attributes:t,title:this.allyTitle});return z(oe,{class:`telia-icon telia-icon--${this.size}`},z("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:n}),z("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return ms}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function bs(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,ys);break;case"telia-vst":customElements.get(t)||Wn();break}})}bs();var _s=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,Ss=(e,t,n,i)=>{for(var r=i>1?void 0:i?ws(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&_s(t,n,r),r};const Gn=Cn(x);class Tt extends Gn{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new wr(this)}addOption(t){return this.options.addOption(t)}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}_onMinimizeClick(){this.application.trigger&&this.application.trigger.toggleActive()}render(){var s;const t=this.application.branding(),n=(s=t==null?void 0:t.graphics)==null?void 0:s.logotype,i=this.application.texts,r=i.get("widget-header.header","ACE Widget");return _` <div class="widget-header">
|
|
340
|
+
`];ie([b({attribute:!0})],st.prototype,"name",2);ie([q()],st.prototype,"widget",2);ie([q()],st.prototype,"status",2);customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",Jt);customElements.get("ace-trigger")||customElements.define("ace-trigger",M);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",En);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",ne);customElements.get("ace-widget")||customElements.define("ace-widget",st);class _r{constructor(t,n,i){this.label=t,this.icon=n,this.onClick=i,this.update=new Qe}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}subscribe(){return this.update.asObservable()}}class wr{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const n=new _r(t.label,t.icon,t.onClick);return this._options.push(n),this.handleUpdate(),n}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(n=>n.subscribe());this._subscription=Ci(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const H={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let N,kn,Et,On=!1,yt=!1,re=!1,y=!1,Te=null,Wt=!1;const kt=typeof window<"u"?window:{},A=kt.document||{head:{}},Tn=kt.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},Sr=(()=>{let e=!1;try{A.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),xr=e=>Promise.resolve(e),Ar=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Pn=(e,t,n,i)=>{n&&n.map(([r,s,o])=>{const a=Er(e,r),l=Cr(t,o),c=kr(r);m.ael(a,s,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,s,l,c))})},Cr=(e,t)=>n=>{try{H.lazyLoad||e.$hostElement$[t](n)}catch(i){ot(i)}},Er=(e,t)=>t&4?A:t&8?kt:t&16?A.body:e,kr=e=>Sr?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,Pe="http://www.w3.org/1999/xlink",U=(e,t="")=>()=>{},Le=new WeakMap,Or=(e,t,n)=>{let i=wt.get(e);Ar&&n?(i=i||new CSSStyleSheet,i.replace(t)):i=t,wt.set(e,i)},Tr=(e,t,n,i)=>{let r=Ln(t,n),s=wt.get(r);if(e=e.nodeType===11?e:A,s)if(typeof s=="string"){e=e.head||e;let o=Le.get(e),a;o||Le.set(e,o=new Set),o.has(r)||(a=A.createElement("style"),a.innerHTML=s,e.insertBefore(a,e.querySelector("link")),o&&o.add(r))}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return r},Pr=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,r=U("attachStyles",t.$tagName$),s=Tr(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$);i&10&&(n["s-sc"]=s,n.classList.add(s+"-h"),i&2&&n.classList.add(s+"-s")),r()},Ln=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),Lr=e=>os.map(t=>t(e)).find(t=>!!t),Ie={},Ir="http://www.w3.org/2000/svg",Ur="http://www.w3.org/1999/xhtml",Rr=e=>e!=null,se=e=>(e=typeof e,e==="object"||e==="function"),z=(e,t,...n)=>{let i=null,r=null,s=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)i=h[d],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((o=typeof e!="function"&&!se(i))&&(i=String(i)),o&&a?l[l.length-1].$text$+=i:l.push(o?bt(null,i):i),a=o)};if(c(n),t){t.key&&(r=t.key),t.name&&(s=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(d=>h[d]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,jr);const u=bt(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=s,u},bt=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},oe={},Mr=e=>e&&e.$tag$===oe,jr={forEach:(e,t)=>e.map(Ue).forEach(t),map:(e,t)=>e.map(Ue).map(t).map(Hr)},Ue=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Hr=e=>{if(typeof e.vtag=="function"){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),z(e.vtag,n,...e.vchildren||[])}const t=bt(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Re=(e,t,n,i,r,s)=>{if(n!==i){let o=Ne(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=Me(n),u=Me(i);l.remove(...c.filter(h=>h&&!u.includes(h))),l.add(...u.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in n)(!i||i[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in i)(!n||i[l]!==n[l])&&(l.includes("-")?e.style.setProperty(l,i[l]):e.style[l]=i[l])}else if(t!=="key")if(t==="ref")i&&i(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Ne(kt,a)?t=a.slice(2):t=a[2]+t.slice(3),n&&m.rel(e,t,n,!1),i&&m.ael(e,t,i,!1);else{const l=se(i);if((o||l&&i!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=i;else{let u=i??"";t==="list"?o=!1:(n==null||e[t]!=u)&&(e[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),i==null||i===!1?(i!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(Pe,t):e.removeAttribute(t)):(!o||s&4||r)&&!l&&(i=i===!0?"":i,c?e.setAttributeNS(Pe,t,i):e.setAttribute(t,i))}}},Nr=/\s/,Me=e=>e?e.split(Nr):[],In=(e,t,n,i)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||Ie,o=t.$attrs$||Ie;for(i in s)i in o||Re(r,i,s[i],void 0,n,t.$flags$);for(i in o)Re(r,i,s[i],o[i],n,t.$flags$)},_t=(e,t,n,i)=>{let r=t.$children$[n],s=0,o,a,l;if(On||(re=!0,r.$tag$==="slot"&&(N&&i.classList.add(N+"-s"),r.$flags$|=r.$children$?2:1)),r.$text$!==null)o=r.$elm$=A.createTextNode(r.$text$);else if(r.$flags$&1)o=r.$elm$=A.createTextNode("");else{if(y||(y=r.$tag$==="svg"),o=r.$elm$=A.createElementNS(y?Ir:Ur,r.$flags$&2?"slot-fb":r.$tag$),y&&r.$tag$==="foreignObject"&&(y=!1),In(null,r,y),Rr(N)&&o["s-si"]!==N&&o.classList.add(o["s-si"]=N),r.$children$)for(s=0;s<r.$children$.length;++s)a=_t(e,r,s,o),a&&o.appendChild(a);r.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=Et,r.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=kn,o["s-sn"]=r.$name$||"",l=e&&e.$children$&&e.$children$[n],l&&l.$tag$===r.$tag$&&e.$elm$&&nt(e.$elm$,!1)),o},nt=(e,t)=>{m.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const r=n[i];r["s-hn"]!==Et&&r["s-ol"]&&(Mn(r).insertBefore(r,ae(r)),r["s-ol"].remove(),r["s-ol"]=void 0,re=!0),t&&nt(r,t)}m.$flags$&=-2},Un=(e,t,n,i,r,s)=>{let o=e["s-cr"]&&e["s-cr"].parentNode||e,a;for(o.shadowRoot&&o.tagName===Et&&(o=o.shadowRoot);r<=s;++r)i[r]&&(a=_t(null,n,r,e),a&&(i[r].$elm$=a,o.insertBefore(a,ae(t))))},Rn=(e,t,n,i,r)=>{for(;t<=n;++t)(i=e[t])&&(r=i.$elm$,Nn(i),yt=!0,r["s-ol"]?r["s-ol"].remove():nt(r,!0),r.remove())},Dr=(e,t,n,i)=>{let r=0,s=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=i.length-1,d=i[0],f=i[h],$,g;for(;r<=l&&s<=h;)if(c==null)c=t[++r];else if(u==null)u=t[--l];else if(d==null)d=i[++s];else if(f==null)f=i[--h];else if(ut(c,d))D(c,d),c=t[++r],d=i[++s];else if(ut(u,f))D(u,f),u=t[--l],f=i[--h];else if(ut(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&nt(c.$elm$.parentNode,!1),D(c,f),e.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++r],f=i[--h];else if(ut(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&nt(u.$elm$.parentNode,!1),D(u,d),e.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=i[++s];else{for(o=-1,a=r;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?$=_t(t&&t[s],n,o,e):(D(g,d),t[o]=void 0,$=g.$elm$),d=i[++s]):($=_t(t&&t[s],n,s,e),d=i[++s]),$&&Mn(c.$elm$).insertBefore($,ae(c.$elm$))}r>l?Un(e,i[h+1]==null?null:i[h+1].$elm$,n,i,s,h):s>h&&Rn(t,r,l)},ut=(e,t)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:e.$key$===t.$key$:!1,ae=e=>e&&e["s-ol"]||e,Mn=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,D=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,r=t.$children$,s=t.$tag$,o=t.$text$;let a;o===null?(y=s==="svg"?!0:s==="foreignObject"?!1:y,s==="slot"||In(e,t,y),i!==null&&r!==null?Dr(n,i,t,r):r!==null?(e.$text$!==null&&(n.textContent=""),Un(n,null,t,r,0,r.length-1)):i!==null&&Rn(i,0,i.length-1),y&&s==="svg"&&(y=!1)):(a=n["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(n.data=o)},jn=e=>{let t=e.childNodes,n,i,r,s,o,a;for(i=0,r=t.length;i<r;i++)if(n=t[i],n.nodeType===1){if(n["s-sr"]){for(o=n["s-sn"],n.hidden=!1,s=0;s<r;s++)if(a=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||o!==""){if(a===1&&o===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(a===1||a===3&&t[s].textContent.trim()!==""){n.hidden=!0;break}}jn(n)}},S=[],Hn=e=>{let t,n,i,r,s,o,a=0,l=e.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(i=n.parentNode.childNodes,r=t["s-sn"],o=i.length-1;o>=0;o--)n=i[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(je(n,r)?(s=S.find(u=>u.$nodeToRelocate$===n),yt=!0,n["s-sn"]=n["s-sn"]||r,s?s.$slotRefNode$=t:S.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&S.map(u=>{je(u.$nodeToRelocate$,n["s-sn"])&&(s=S.find(h=>h.$nodeToRelocate$===n),s&&!u.$slotRefNode$&&(u.$slotRefNode$=s.$slotRefNode$))})):S.some(u=>u.$nodeToRelocate$===n)||S.push({$nodeToRelocate$:n}));t.nodeType===1&&Hn(t)}},je=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",Nn=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Nn)},Br=(e,t)=>{const n=e.$hostElement$,i=e.$cmpMeta$,r=e.$vnode$||bt(null,null),s=Mr(t)?t:z(null,null,t);Et=n.tagName,i.$attrsToReflect$&&(s.$attrs$=s.$attrs$||{},i.$attrsToReflect$.map(([o,a])=>s.$attrs$[a]=n[o])),s.$tag$=null,s.$flags$|=4,e.$vnode$=s,s.$elm$=r.$elm$=n.shadowRoot||n,N=n["s-sc"],kn=n["s-cr"],On=(i.$flags$&1)!==0,yt=!1,D(r,s);{if(m.$flags$|=1,re){Hn(s.$elm$);let o,a,l,c,u,h,d=0;for(;d<S.length;d++)o=S[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=A.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<S.length;d++)if(o=S[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,u=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&c!==a.parentNode||a.nextSibling!==u)&&a!==u&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,u))}else a.nodeType===1&&(a.hidden=!0)}yt&&jn(s.$elm$),m.$flags$&=-2,S.length=0}},zr=e=>e,Fr=(e,t,n)=>{const i=zr(e);return{emit:r=>Wr(i,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}},Wr=(e,t,n)=>{const i=m.ce(t,n);return e.dispatchEvent(i),i},Gr=(e,t)=>{},Dn=(e,t)=>(e.$flags$|=16,Gr(e,e.$ancestorComponent$),cs(()=>Yr(e,t))),Yr=(e,t)=>{const n=e.$hostElement$,i=U("scheduleUpdate",e.$cmpMeta$.$tagName$),r=n;let s;return t?s=F(r,"componentWillLoad"):s=F(r,"componentWillUpdate"),s=He(s,()=>F(r,"componentWillRender")),i(),He(s,()=>qr(e,r,t))},qr=async(e,t,n)=>{const i=e.$hostElement$,r=U("update",e.$cmpMeta$.$tagName$);i["s-rc"],n&&Pr(e);const s=U("render",e.$cmpMeta$.$tagName$);Zr(e,t,i),s(),r(),Kr(e)},Zr=(e,t,n)=>{try{Te=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(H.hasRenderFn||H.reflect)&&(H.vdomRender||H.reflect)&&(H.hydrateServerSide||Br(e,t))}catch(a){ot(a,e.$hostElement$)}return Te=null,null},Kr=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,i=U("postUpdate",t),r=n;e.$ancestorComponent$,F(r,"componentDidRender"),e.$flags$&64?(F(r,"componentDidUpdate"),i()):(e.$flags$|=64,F(r,"componentDidLoad"),i())},F=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(i){ot(i)}},He=(e,t)=>e&&e.then?e.then(t):t(),Qr=(e,t)=>e!=null&&!se(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,Xr=(e,t)=>Ot(e).$instanceValues$.get(t),Jr=(e,t,n,i)=>{const r=Ot(e),s=e,o=r.$instanceValues$.get(t),a=r.$flags$,l=s;n=Qr(n,i.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(n);if(n!==o&&!c){r.$instanceValues$.set(t,n);{if(i.$watchers$&&a&128){const h=i.$watchers$[t];h&&h.map(d=>{try{l[d](n,o,t)}catch(f){ot(f,s)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,o,t)===!1)return;Dn(r,!1)}}}},Vr=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),r=e.prototype;i.map(([s,[o]])=>{(o&31||o&32)&&Object.defineProperty(r,s,{get(){return Xr(this,s)},set(a){Jr(this,s,a,t)},configurable:!0,enumerable:!0})});{const s=new Map;r.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=s.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(r.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},e.observedAttributes=i.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return s.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return e},ts=async(e,t,n,i,r)=>{if(!(t.$flags$&32)&&(r=e.constructor,t.$flags$|=32,customElements.whenDefined(n.$tagName$).then(()=>t.$flags$|=128),r.style)){let o=r.style;typeof o!="string"&&(o=o[t.$modeName$=Lr(e)]);const a=Ln(n,t.$modeName$);if(!wt.has(a)){const l=U("registerStyles",n.$tagName$);Or(a,o,!!(n.$flags$&1)),l()}}t.$ancestorComponent$,(()=>Dn(t,!0))()},es=e=>{},ns=e=>{if(!(m.$flags$&1)){const t=Ot(e),n=t.$cmpMeta$,i=U("connectedCallback",n.$tagName$);t.$flags$&1?(Pn(e,t,n.$listeners$),es(t.$lazyInstance$)):(t.$flags$|=1,n.$flags$&12&&is(e),n.$members$&&Object.entries(n.$members$).map(([r,[s]])=>{if(s&31&&e.hasOwnProperty(r)){const o=e[r];delete e[r],e[r]=o}}),ts(e,t,n)),i()}},is=e=>{const t=e["s-cr"]=A.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},rs=e=>{if(!(m.$flags$&1)){const t=Ot(e);t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0)}},Bn=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[];const i=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){ss(this,n)},connectedCallback(){ns(this),i&&i.call(this)},disconnectedCallback(){rs(this),r&&r.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}),e.is=n.$tagName$,Vr(e,n)},zn=new WeakMap,Ot=e=>zn.get(e),ss=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return Pn(e,n,t.$listeners$),zn.set(e,n)},Ne=(e,t)=>t in e,ot=(e,t)=>(0,console.error)(e,t),wt=new Map,os=[],De=[],Fn=[],as=(e,t)=>n=>{e.push(n),Wt||(Wt=!0,t&&m.$flags$&4?ls(Gt):m.raf(Gt))},Be=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){ot(n)}e.length=0},Gt=()=>{Be(De),Be(Fn),(Wt=De.length>0)&&m.raf(Gt)},ls=e=>xr().then(e),cs=as(Fn,!0),us=(e={})=>{const{content:t="",title:n,attributes:i=[]}=e;let r="",s=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...i];return n&&(r=`<title>${n}</title>`),`<svg ${s.map(a=>`${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`},hs=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim();function ds(e){return`${e.getFullYear()}.${e.getMonth()+1}`}class fs{constructor(t){this.voca_component=t,this.voca_added=ds(new Date)}}const ps="telia-vst{display:none}",gs=Bn(class extends Tn{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Fr(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new fs(this.dataTrackingId))}render(){return z(oe,null)}static get style(){return ps}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Wn(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,gs);break}})}Wn();function Yt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function $s(){if(typeof Yt().vocadsIcons!==void 0)return Yt().vocadsIcons}function vs(){return Yt().vocadsIconsRegistered}const ms=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",ys=Bn(class extends Tn{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(vs()&&this.name){const e=$s();return e[this.name]?e[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let e=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const n=us({content:hs(e),attributes:t,title:this.allyTitle});return z(oe,{class:`telia-icon telia-icon--${this.size}`},z("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:n}),z("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return ms}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function bs(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,ys);break;case"telia-vst":customElements.get(t)||Wn();break}})}bs();var _s=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,Ss=(e,t,n,i)=>{for(var r=i>1?void 0:i?ws(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&_s(t,n,r),r};const Gn=Cn(x);class Tt extends Gn{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new wr(this)}addOption(t){return this.options.addOption(t)}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}_onMinimizeClick(){this.application.trigger&&this.application.trigger.toggleActive()}render(){var s;const t=this.application.branding(),n=(s=t==null?void 0:t.graphics)==null?void 0:s.logotype,i=this.application.texts,r=i.get("widget-header.header","ACE Widget");return _` <div class="widget-header">
|
|
341
341
|
${n?_` <img
|
|
342
342
|
src=${n}
|
|
343
343
|
class="logotype"
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
>
|
|
373
373
|
${this.options.options.map(o=>_`<button
|
|
374
374
|
class="options-menu__item"
|
|
375
|
-
@click=${()=>{
|
|
375
|
+
@click=${()=>{this._onToggleOptionsMenuClick(),o.onClick()}}
|
|
376
376
|
>
|
|
377
377
|
${o.label}
|
|
378
378
|
${o.icon?_`<telia-icon svg=${o.icon} size="sm"></telia-icon>`:p}
|
|
@@ -470,4 +470,4 @@
|
|
|
470
470
|
background-color: var(--secondary-background);
|
|
471
471
|
color: var(--text-on-secondary-background);
|
|
472
472
|
}
|
|
473
|
-
`];Ss([
|
|
473
|
+
`];Ss([q()],Tt.prototype,"optionsIsVisible",2);exports.WidgetHeader=Tt;exports.default=Tt;
|
|
@@ -2,9 +2,8 @@ export declare class WidgetHeaderOption {
|
|
|
2
2
|
label: string;
|
|
3
3
|
icon: string | null;
|
|
4
4
|
onClick: () => void;
|
|
5
|
-
closeOnClick: boolean;
|
|
6
5
|
private update;
|
|
7
|
-
constructor(label: string, icon: string | null, onClick: () => void
|
|
6
|
+
constructor(label: string, icon: string | null, onClick: () => void);
|
|
8
7
|
updateLabel(value: string): void;
|
|
9
8
|
updateIcon(value: string): void;
|
|
10
9
|
subscribe(): import("rxjs").Observable<void>;
|