@telia-ace/widget-components-area-flamingo 1.1.120-rc.21 → 1.1.120-rc.22
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/{area-CtjulyWT.mjs → area-BI13O6JC.mjs} +42 -40
- package/{area-CJG5cW1r.js → area-BLhMGjy7.js} +12 -10
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
|
@@ -45,7 +45,7 @@ const Ce = (s) => new oe(typeof s == "string" ? s : s + "", void 0, $t), k = (s,
|
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is: Se, defineProperty: Pe, getOwnPropertyDescriptor: Oe, getOwnPropertyNames: ke, getOwnPropertySymbols: Te, getPrototypeOf: Re } = Object, w = globalThis, jt = w.trustedTypes, Me = jt ? jt.emptyScript : "", st = w.reactiveElementPolyfillSupport,
|
|
48
|
+
const { is: Se, defineProperty: Pe, getOwnPropertyDescriptor: Oe, getOwnPropertyNames: ke, getOwnPropertySymbols: Te, getPrototypeOf: Re } = Object, w = globalThis, jt = w.trustedTypes, Me = jt ? jt.emptyScript : "", st = w.reactiveElementPolyfillSupport, L = (s, t) => s, K = { toAttribute(s, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
s = s ? Me : null;
|
|
@@ -103,13 +103,13 @@ let R = class extends HTMLElement {
|
|
|
103
103
|
return this.elementProperties.get(t) ?? Nt;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
106
|
+
if (this.hasOwnProperty(L("elementProperties"))) return;
|
|
107
107
|
const t = Re(this);
|
|
108
108
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
|
-
if (this.hasOwnProperty(
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
111
|
+
if (this.hasOwnProperty(L("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(L("properties"))) {
|
|
113
113
|
const e = this.properties, i = [...ke(e), ...Te(e)];
|
|
114
114
|
for (const r of i) this.createProperty(r, e[r]);
|
|
115
115
|
}
|
|
@@ -276,26 +276,26 @@ let R = class extends HTMLElement {
|
|
|
276
276
|
firstUpdated(t) {
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, R[
|
|
279
|
+
R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, R[L("elementProperties")] = /* @__PURE__ */ new Map(), R[L("finalized")] = /* @__PURE__ */ new Map(), st == null || st({ ReactiveElement: R }), (w.reactiveElementVersions ?? (w.reactiveElementVersions = [])).push("2.1.0");
|
|
280
280
|
/**
|
|
281
281
|
* @license
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const
|
|
286
|
-
\f\r]`, N = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
285
|
+
const I = globalThis, X = I.trustedTypes, Lt = X ? X.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, ne = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, ae = "?" + _, Ue = `<${ae}>`, P = document, B = () => P.createComment(""), F = (s) => s === null || typeof s != "object" && typeof s != "function", wt = Array.isArray, je = (s) => wt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", rt = `[
|
|
286
|
+
\f\r]`, N = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, It = /-->/g, Ht = />/g, x = RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
|
|
287
287
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), Bt = /'/g, Ft = /"/g, ce = /^(?:script|style|textarea|title)$/i, Ne = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), C = Ne(1), O = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(), E = P.createTreeWalker(P, 129);
|
|
288
288
|
function he(s, t) {
|
|
289
289
|
if (!wt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
|
-
return
|
|
290
|
+
return Lt !== void 0 ? Lt.createHTML(t) : t;
|
|
291
291
|
}
|
|
292
|
-
const
|
|
292
|
+
const Le = (s, t) => {
|
|
293
293
|
const e = s.length - 1, i = [];
|
|
294
294
|
let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = N;
|
|
295
295
|
for (let a = 0; a < e; a++) {
|
|
296
296
|
const c = s[a];
|
|
297
297
|
let h, l, u = -1, p = 0;
|
|
298
|
-
for (; p < c.length && (n.lastIndex = p, l = n.exec(c), l !== null); ) p = n.lastIndex, n === N ? l[1] === "!--" ? n =
|
|
298
|
+
for (; p < c.length && (n.lastIndex = p, l = n.exec(c), l !== null); ) p = n.lastIndex, n === N ? l[1] === "!--" ? n = It : l[1] !== void 0 ? n = Ht : l[2] !== void 0 ? (ce.test(l[2]) && (r = RegExp("</" + l[2], "g")), n = x) : l[3] !== void 0 && (n = x) : n === x ? l[0] === ">" ? (n = r ?? N, u = -1) : l[1] === void 0 ? u = -2 : (u = n.lastIndex - l[2].length, h = l[1], n = l[3] === void 0 ? x : l[3] === '"' ? Ft : Bt) : n === Ft || n === Bt ? n = x : n === It || n === Ht ? n = N : (n = x, r = void 0);
|
|
299
299
|
const f = n === x && s[a + 1].startsWith("/>") ? " " : "";
|
|
300
300
|
o += n === N ? c + Ue : u >= 0 ? (i.push(h), c.slice(0, u) + ne + c.slice(u) + _ + f) : c + _ + (u === -2 ? a : f);
|
|
301
301
|
}
|
|
@@ -306,7 +306,7 @@ let ut = class le {
|
|
|
306
306
|
let r;
|
|
307
307
|
this.parts = [];
|
|
308
308
|
let o = 0, n = 0;
|
|
309
|
-
const a = t.length - 1, c = this.parts, [h, l] =
|
|
309
|
+
const a = t.length - 1, c = this.parts, [h, l] = Le(t, e);
|
|
310
310
|
if (this.el = le.createElement(h, i), E.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
311
|
const u = this.el.content.firstChild;
|
|
312
312
|
u.replaceWith(...u.childNodes);
|
|
@@ -345,7 +345,7 @@ function M(s, t, e = s, i) {
|
|
|
345
345
|
const o = F(t) ? void 0 : t._$litDirective$;
|
|
346
346
|
return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = M(s, r._$AS(s, t.values), r, i)), t;
|
|
347
347
|
}
|
|
348
|
-
class
|
|
348
|
+
class Ie {
|
|
349
349
|
constructor(t, e) {
|
|
350
350
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
351
351
|
}
|
|
@@ -409,7 +409,7 @@ class V {
|
|
|
409
409
|
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = ut.createElement(he(i.h, i.h[0]), this.options)), i);
|
|
410
410
|
if (((o = this._$AH) == null ? void 0 : o._$AD) === r) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
|
-
const n = new
|
|
412
|
+
const n = new Ie(r, this), a = n.u(this.options);
|
|
413
413
|
n.p(e), this.T(a), this._$AH = n;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
@@ -502,8 +502,8 @@ class De {
|
|
|
502
502
|
M(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const ot =
|
|
506
|
-
ot == null || ot(ut, V), (
|
|
505
|
+
const ot = I.litHtmlPolyfillSupport;
|
|
506
|
+
ot == null || ot(ut, V), (I.litHtmlVersions ?? (I.litHtmlVersions = [])).push("3.3.0");
|
|
507
507
|
const ze = (s, t, e) => {
|
|
508
508
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
509
|
let r = i._$litPart$;
|
|
@@ -740,7 +740,7 @@ var Ve = {
|
|
|
740
740
|
},
|
|
741
741
|
delegate: void 0
|
|
742
742
|
};
|
|
743
|
-
function
|
|
743
|
+
function We(s) {
|
|
744
744
|
qe.setTimeout(function() {
|
|
745
745
|
throw s;
|
|
746
746
|
});
|
|
@@ -781,7 +781,7 @@ var ge = function(s) {
|
|
|
781
781
|
this.unsubscribe();
|
|
782
782
|
}
|
|
783
783
|
}, t;
|
|
784
|
-
}(it),
|
|
784
|
+
}(it), Ge = function() {
|
|
785
785
|
function s(t) {
|
|
786
786
|
this.partialObserver = t;
|
|
787
787
|
}
|
|
@@ -791,7 +791,7 @@ var ge = function(s) {
|
|
|
791
791
|
try {
|
|
792
792
|
e.next(t);
|
|
793
793
|
} catch (i) {
|
|
794
|
-
|
|
794
|
+
G(i);
|
|
795
795
|
}
|
|
796
796
|
}, s.prototype.error = function(t) {
|
|
797
797
|
var e = this.partialObserver;
|
|
@@ -799,17 +799,17 @@ var ge = function(s) {
|
|
|
799
799
|
try {
|
|
800
800
|
e.error(t);
|
|
801
801
|
} catch (i) {
|
|
802
|
-
|
|
802
|
+
G(i);
|
|
803
803
|
}
|
|
804
804
|
else
|
|
805
|
-
|
|
805
|
+
G(t);
|
|
806
806
|
}, s.prototype.complete = function() {
|
|
807
807
|
var t = this.partialObserver;
|
|
808
808
|
if (t.complete)
|
|
809
809
|
try {
|
|
810
810
|
t.complete();
|
|
811
811
|
} catch (e) {
|
|
812
|
-
|
|
812
|
+
G(e);
|
|
813
813
|
}
|
|
814
814
|
}, s;
|
|
815
815
|
}(), mt = function(s) {
|
|
@@ -820,12 +820,12 @@ var ge = function(s) {
|
|
|
820
820
|
next: e ?? void 0,
|
|
821
821
|
error: i ?? void 0,
|
|
822
822
|
complete: r ?? void 0
|
|
823
|
-
} : n = e, o.destination = new
|
|
823
|
+
} : n = e, o.destination = new Ge(n), o;
|
|
824
824
|
}
|
|
825
825
|
return t;
|
|
826
826
|
}(ge);
|
|
827
|
-
function
|
|
828
|
-
|
|
827
|
+
function G(s) {
|
|
828
|
+
We(s);
|
|
829
829
|
}
|
|
830
830
|
function Ye(s) {
|
|
831
831
|
throw s;
|
|
@@ -869,7 +869,7 @@ var qt = function() {
|
|
|
869
869
|
}
|
|
870
870
|
}, s.prototype.forEach = function(t, e) {
|
|
871
871
|
var i = this;
|
|
872
|
-
return e =
|
|
872
|
+
return e = Wt(e), new e(function(r, o) {
|
|
873
873
|
var n = new mt({
|
|
874
874
|
next: function(a) {
|
|
875
875
|
try {
|
|
@@ -894,7 +894,7 @@ var qt = function() {
|
|
|
894
894
|
return Je(t)(this);
|
|
895
895
|
}, s.prototype.toPromise = function(t) {
|
|
896
896
|
var e = this;
|
|
897
|
-
return t =
|
|
897
|
+
return t = Wt(t), new t(function(i, r) {
|
|
898
898
|
var o;
|
|
899
899
|
e.subscribe(function(n) {
|
|
900
900
|
return o = n;
|
|
@@ -908,7 +908,7 @@ var qt = function() {
|
|
|
908
908
|
return new s(t);
|
|
909
909
|
}, s;
|
|
910
910
|
}();
|
|
911
|
-
function
|
|
911
|
+
function Wt(s) {
|
|
912
912
|
var t;
|
|
913
913
|
return (t = s ?? Ve.Promise) !== null && t !== void 0 ? t : Promise;
|
|
914
914
|
}
|
|
@@ -929,7 +929,7 @@ var ei = de(function(s) {
|
|
|
929
929
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
930
930
|
}
|
|
931
931
|
return t.prototype.lift = function(e) {
|
|
932
|
-
var i = new
|
|
932
|
+
var i = new Gt(this, this);
|
|
933
933
|
return i.operator = e, i;
|
|
934
934
|
}, t.prototype._throwIfClosed = function() {
|
|
935
935
|
if (this.closed)
|
|
@@ -999,9 +999,9 @@ var ei = de(function(s) {
|
|
|
999
999
|
var e = new qt();
|
|
1000
1000
|
return e.source = this, e;
|
|
1001
1001
|
}, t.create = function(e, i) {
|
|
1002
|
-
return new
|
|
1002
|
+
return new Gt(e, i);
|
|
1003
1003
|
}, t;
|
|
1004
|
-
}(qt),
|
|
1004
|
+
}(qt), Gt = function(s) {
|
|
1005
1005
|
q(t, s);
|
|
1006
1006
|
function t(e, i) {
|
|
1007
1007
|
var r = s.call(this) || this;
|
|
@@ -1506,7 +1506,7 @@ const lt = /* @__PURE__ */ new WeakMap(), we = Ct(class extends be {
|
|
|
1506
1506
|
this.rt(this.ct);
|
|
1507
1507
|
}
|
|
1508
1508
|
});
|
|
1509
|
-
var yi = Object.defineProperty,
|
|
1509
|
+
var yi = Object.defineProperty, W = (s, t, e, i) => {
|
|
1510
1510
|
for (var r = void 0, o = s.length - 1, n; o >= 0; o--)
|
|
1511
1511
|
(n = s[o]) && (r = n(t, e, r) || r);
|
|
1512
1512
|
return r && yi(t, e, r), r;
|
|
@@ -1586,7 +1586,7 @@ const Pt = class Pt extends m {
|
|
|
1586
1586
|
this.triggerVisible = !0;
|
|
1587
1587
|
}
|
|
1588
1588
|
render() {
|
|
1589
|
-
var t, e, i, r;
|
|
1589
|
+
var t, e, i, r, o, n, a;
|
|
1590
1590
|
return C`<div
|
|
1591
1591
|
class=${te({
|
|
1592
1592
|
"trigger-container": !0,
|
|
@@ -1596,7 +1596,8 @@ const Pt = class Pt extends m {
|
|
|
1596
1596
|
>
|
|
1597
1597
|
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? C`
|
|
1598
1598
|
<button
|
|
1599
|
-
|
|
1599
|
+
type="button"
|
|
1600
|
+
aria-label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
|
1600
1601
|
class="trigger-label"
|
|
1601
1602
|
@click=${this.toggleActive}
|
|
1602
1603
|
${gi({
|
|
@@ -1606,12 +1607,13 @@ const Pt = class Pt extends m {
|
|
|
1606
1607
|
skipInitial: !1
|
|
1607
1608
|
})}
|
|
1608
1609
|
>
|
|
1609
|
-
${this.application.settings.branding.other.buttonLabelText}
|
|
1610
|
+
${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}
|
|
1610
1611
|
</button>
|
|
1611
1612
|
` : d}
|
|
1612
1613
|
|
|
1613
1614
|
<button
|
|
1614
|
-
|
|
1615
|
+
type="button"
|
|
1616
|
+
aria-label="${((a = (n = (o = this.application) == null ? void 0 : o.settings) == null ? void 0 : n.branding.other) == null ? void 0 : a.buttonLabelText) ?? "Widget trigger"}"
|
|
1615
1617
|
class=${te({
|
|
1616
1618
|
trigger: !0,
|
|
1617
1619
|
active: this.active,
|
|
@@ -1784,19 +1786,19 @@ Pt.styles = [
|
|
|
1784
1786
|
`
|
|
1785
1787
|
];
|
|
1786
1788
|
let $ = Pt;
|
|
1787
|
-
|
|
1789
|
+
W([
|
|
1788
1790
|
g({ attribute: !1 })
|
|
1789
1791
|
], $.prototype, "application");
|
|
1790
|
-
|
|
1792
|
+
W([
|
|
1791
1793
|
j()
|
|
1792
1794
|
], $.prototype, "active");
|
|
1793
|
-
|
|
1795
|
+
W([
|
|
1794
1796
|
j()
|
|
1795
1797
|
], $.prototype, "triggerVisible");
|
|
1796
|
-
|
|
1798
|
+
W([
|
|
1797
1799
|
j()
|
|
1798
1800
|
], $.prototype, "loaded");
|
|
1799
|
-
|
|
1801
|
+
W([
|
|
1800
1802
|
j()
|
|
1801
1803
|
], $.prototype, "icon");
|
|
1802
1804
|
var bi = Object.defineProperty, A = (s, t, e, i) => {
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:Ee,defineProperty:Pe,getOwnPropertyDescriptor:Oe,getOwnPropertyNames:ke,getOwnPropertySymbols:Te,getPrototypeOf:Re}=Object,w=globalThis,Nt=w.trustedTypes,Me=Nt?Nt.emptyScript:"",rt=w.reactiveElementPolyfillSupport,
|
|
9
|
+
*/const{is:Ee,defineProperty:Pe,getOwnPropertyDescriptor:Oe,getOwnPropertyNames:ke,getOwnPropertySymbols:Te,getPrototypeOf:Re}=Object,w=globalThis,Nt=w.trustedTypes,Me=Nt?Nt.emptyScript:"",rt=w.reactiveElementPolyfillSupport,L=(s,t)=>s,K={toAttribute(s,t){switch(t){case Boolean:s=s?Me:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},wt=(s,t)=>!Ee(s,t),Lt={attribute:!0,type:String,converter:K,reflect:!1,useDefault:!1,hasChanged:wt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),w.litPropertyMetadata??(w.litPropertyMetadata=new WeakMap);let R=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Lt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Pe(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:o}=Oe(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:r,set(n){const a=r==null?void 0:r.call(this);o==null||o.call(this,n),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Lt}static _$Ei(){if(this.hasOwnProperty(L("elementProperties")))return;const t=Re(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(L("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(L("properties"))){const e=this.properties,i=[...ke(e),...Te(e)];for(const r of i)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,r]of e)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const r=this._$Eu(e,i);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(Ut(r))}else t!==void 0&&e.push(Ut(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Se(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var o;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const n=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:K).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){var o,n;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const a=i.getPropertyOptions(r),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((o=a.converter)==null?void 0:o.fromAttribute)!==void 0?a.converter:K;this._$Em=r,this[r]=c.fromAttribute(e,a.type)??((n=this._$Ej)==null?void 0:n.get(r))??null,this._$Em=null}}requestUpdate(t,e,i){var r;if(t!==void 0){const o=this.constructor,n=this[t];if(i??(i=o.getPropertyOptions(t)),!((i.hasChanged??wt)(n,e)||i.useDefault&&i.reflect&&n===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(o._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:r,wrapped:o},n){i&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??e??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),r===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[o,n]of r){const{wrapped:a}=n,c=this[o];a!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,n,c)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(r=>{var o;return(o=r.hostUpdate)==null?void 0:o.call(r)}),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};R.elementStyles=[],R.shadowRootOptions={mode:"open"},R[L("elementProperties")]=new Map,R[L("finalized")]=new Map,rt==null||rt({ReactiveElement:R}),(w.reactiveElementVersions??(w.reactiveElementVersions=[])).push("2.1.0");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const
|
|
13
|
+
*/const I=globalThis,X=I.trustedTypes,It=X?X.createPolicy("lit-html",{createHTML:s=>s}):void 0,ne="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,ae="?"+_,je=`<${ae}>`,P=document,B=()=>P.createComment(""),F=s=>s===null||typeof s!="object"&&typeof s!="function",xt=Array.isArray,Ue=s=>xt(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",ot=`[
|
|
14
14
|
\f\r]`,N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ht=/-->/g,Bt=/>/g,x=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ft=/'/g,Dt=/"/g,ce=/^(?:script|style|textarea|title)$/i,Ne=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),C=Ne(1),O=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),zt=new WeakMap,S=P.createTreeWalker(P,129);function he(s,t){if(!xt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ft=/'/g,Dt=/"/g,ce=/^(?:script|style|textarea|title)$/i,Ne=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),C=Ne(1),O=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),zt=new WeakMap,S=P.createTreeWalker(P,129);function he(s,t){if(!xt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return It!==void 0?It.createHTML(t):t}const Le=(s,t)=>{const e=s.length-1,i=[];let r,o=t===2?"<svg>":t===3?"<math>":"",n=N;for(let a=0;a<e;a++){const c=s[a];let h,l,u=-1,p=0;for(;p<c.length&&(n.lastIndex=p,l=n.exec(c),l!==null);)p=n.lastIndex,n===N?l[1]==="!--"?n=Ht:l[1]!==void 0?n=Bt:l[2]!==void 0?(ce.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=x):l[3]!==void 0&&(n=x):n===x?l[0]===">"?(n=r??N,u=-1):l[1]===void 0?u=-2:(u=n.lastIndex-l[2].length,h=l[1],n=l[3]===void 0?x:l[3]==='"'?Dt:Ft):n===Dt||n===Ft?n=x:n===Ht||n===Bt?n=N:(n=x,r=void 0);const f=n===x&&s[a+1].startsWith("/>")?" ":"";o+=n===N?c+je:u>=0?(i.push(h),c.slice(0,u)+ne+c.slice(u)+_+f):c+_+(u===-2?a:f)}return[he(s,o+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let dt=class le{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,n=0;const a=t.length-1,c=this.parts,[h,l]=Le(t,e);if(this.el=le.createElement(h,i),S.currentNode=this.el.content,e===2||e===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(r=S.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const u of r.getAttributeNames())if(u.endsWith(ne)){const p=l[n++],f=r.getAttribute(u).split(_),T=/([.?@])?(.*)/.exec(p);c.push({type:1,index:o,name:T[2],strings:f,ctor:T[1]==="."?He:T[1]==="?"?Be:T[1]==="@"?Fe:it}),r.removeAttribute(u)}else u.startsWith(_)&&(c.push({type:6,index:o}),r.removeAttribute(u));if(ce.test(r.tagName)){const u=r.textContent.split(_),p=u.length-1;if(p>0){r.textContent=X?X.emptyScript:"";for(let f=0;f<p;f++)r.append(u[f],B()),S.nextNode(),c.push({type:2,index:++o});r.append(u[p],B())}}}else if(r.nodeType===8)if(r.data===ae)c.push({type:2,index:o});else{let u=-1;for(;(u=r.data.indexOf(_,u+1))!==-1;)c.push({type:7,index:o}),u+=_.length-1}o++}}static createElement(t,e){const i=P.createElement("template");return i.innerHTML=t,i}};function M(s,t,e=s,i){var n,a;if(t===O)return t;let r=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const o=F(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==o&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),o===void 0?r=void 0:(r=new o(s),r._$AT(s,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=r:e._$Cl=r),r!==void 0&&(t=M(s,r._$AS(s,t.values),r,i)),t}class Ie{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,r=((t==null?void 0:t.creationScope)??P).importNode(e,!0);S.currentNode=r;let o=S.nextNode(),n=0,a=0,c=i[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new V(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new De(o,this,t)),this._$AV.push(h),c=i[++a]}n!==(c==null?void 0:c.index)&&(o=S.nextNode(),n++)}return S.currentNode=P,r}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class V{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),F(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==O&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ue(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&F(this._$AH)?this._$AA.nextSibling.data=t:this.T(P.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=dt.createElement(he(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===r)this._$AH.p(e);else{const n=new Ie(r,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=zt.get(t.strings);return e===void 0&&zt.set(t.strings,e=new dt(t)),e}k(t){xt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new V(this.O(B()),this.O(B()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class it{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=d}_$AI(t,e=this,i,r){const o=this.strings;let n=!1;if(o===void 0)t=M(this,t,e,0),n=!F(t)||t!==this._$AH&&t!==O,n&&(this._$AH=t);else{const a=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=M(this,a[i+c],e,c),h===O&&(h=this._$AH[c]),n||(n=!F(h)||h!==this._$AH[c]),h===d?t=d:t!==d&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class He extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Be extends it{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Fe extends it{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??d)===O)return;const i=this._$AH,r=t===d&&i!==d||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==d&&(i===d||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class De{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const nt=I.litHtmlPolyfillSupport;nt==null||nt(dt,V),(I.litHtmlVersions??(I.litHtmlVersions=[])).push("3.3.0");const ze=(s,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const o=(e==null?void 0:e.renderBefore)??null;i._$litPart$=r=new V(t.insertBefore(B(),o),o,void 0,e??{})}return r._$AI(s),r};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
23
|
*/function*ue(s,t){if(s!==void 0){let e=0;for(const i of s)yield t(i,e++)}}var pt=function(s,t){return pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},pt(s,t)};function q(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pt(s,t);function e(){this.constructor=s}s.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ft(s){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&s[t],i=0;if(e)return e.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&i>=s.length&&(s=void 0),{value:s&&s[i++],done:!s}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gt(s,t){var e=typeof Symbol=="function"&&s[Symbol.iterator];if(!e)return s;var i=e.call(s),r,o=[],n;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){n={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return o}function vt(s,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,o;i<r;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return s.concat(o||Array.prototype.slice.call(t))}function b(s){return typeof s=="function"}function de(s){var t=function(i){Error.call(i),i.stack=new Error().stack},e=s(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var ct=de(function(s){return function(e){s(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
24
24
|
`+e.map(function(i,r){return r+1+") "+i.toString()}).join(`
|
|
25
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function mt(s,t){if(s){var e=s.indexOf(t);0<=e&&s.splice(e,1)}}var st=function(){function s(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return s.prototype.unsubscribe=function(){var t,e,i,r,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=ft(n),c=a.next();!c.done;c=a.next()){var h=c.value;h.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else n.remove(this);var l=this.initialTeardown;if(b(l))try{l()}catch(v){o=v instanceof ct?v.errors:[v]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var p=ft(u),f=p.next();!f.done;f=p.next()){var T=f.value;try{Vt(T)}catch(v){o=o??[],v instanceof ct?o=vt(vt([],gt(o)),gt(v.errors)):o.push(v)}}}catch(v){i={error:v}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}}if(o)throw new ct(o)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Vt(t);else{if(t instanceof s){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},s.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},s.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},s.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&mt(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&mt(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=function(){var t=new s;return t.closed=!0,t}(),s}(),pe=st.EMPTY;function fe(s){return s instanceof st||s&&"closed"in s&&b(s.remove)&&b(s.add)&&b(s.unsubscribe)}function Vt(s){b(s)?s():s.unsubscribe()}var Ve={Promise:void 0},qe={setTimeout:function(s,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,vt([s,t],gt(e)))},clearTimeout:function(s){return clearTimeout(s)},delegate:void 0};function
|
|
25
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function mt(s,t){if(s){var e=s.indexOf(t);0<=e&&s.splice(e,1)}}var st=function(){function s(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return s.prototype.unsubscribe=function(){var t,e,i,r,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=ft(n),c=a.next();!c.done;c=a.next()){var h=c.value;h.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else n.remove(this);var l=this.initialTeardown;if(b(l))try{l()}catch(v){o=v instanceof ct?v.errors:[v]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var p=ft(u),f=p.next();!f.done;f=p.next()){var T=f.value;try{Vt(T)}catch(v){o=o??[],v instanceof ct?o=vt(vt([],gt(o)),gt(v.errors)):o.push(v)}}}catch(v){i={error:v}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}}if(o)throw new ct(o)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Vt(t);else{if(t instanceof s){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},s.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},s.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},s.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&mt(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&mt(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=function(){var t=new s;return t.closed=!0,t}(),s}(),pe=st.EMPTY;function fe(s){return s instanceof st||s&&"closed"in s&&b(s.remove)&&b(s.add)&&b(s.unsubscribe)}function Vt(s){b(s)?s():s.unsubscribe()}var Ve={Promise:void 0},qe={setTimeout:function(s,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,vt([s,t],gt(e)))},clearTimeout:function(s){return clearTimeout(s)},delegate:void 0};function We(s){qe.setTimeout(function(){throw s})}function qt(){}function Z(s){s()}var ge=function(s){q(t,s);function t(e){var i=s.call(this)||this;return i.isStopped=!1,e?(i.destination=e,fe(e)&&e.add(i)):i.destination=Ze,i}return t.create=function(e,i,r){return new yt(e,i,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,s.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(st),Ge=function(){function s(t){this.partialObserver=t}return s.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){G(i)}},s.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){G(i)}else G(t)},s.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){G(e)}},s}(),yt=function(s){q(t,s);function t(e,i,r){var o=s.call(this)||this,n;return b(e)||!e?n={next:e??void 0,error:i??void 0,complete:r??void 0}:n=e,o.destination=new Ge(n),o}return t}(ge);function G(s){We(s)}function Ye(s){throw s}var Ze={closed:!0,next:qt,error:Ye,complete:qt},Ke=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Xe(s){return s}function Je(s){return s.length===0?Xe:s.length===1?s[0]:function(e){return s.reduce(function(i,r){return r(i)},e)}}var Wt=function(){function s(t){t&&(this._subscribe=t)}return s.prototype.lift=function(t){var e=new s;return e.source=this,e.operator=t,e},s.prototype.subscribe=function(t,e,i){var r=this,o=ti(t)?t:new yt(t,e,i);return Z(function(){var n=r,a=n.operator,c=n.source;o.add(a?a.call(o,c):c?r._subscribe(o):r._trySubscribe(o))}),o},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(t,e){var i=this;return e=Gt(e),new e(function(r,o){var n=new yt({next:function(a){try{t(a)}catch(c){o(c),n.unsubscribe()}},error:o,complete:r});i.subscribe(n)})},s.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},s.prototype[Ke]=function(){return this},s.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Je(t)(this)},s.prototype.toPromise=function(t){var e=this;return t=Gt(t),new t(function(i,r){var o;e.subscribe(function(n){return o=n},function(n){return r(n)},function(){return i(o)})})},s.create=function(t){return new s(t)},s}();function Gt(s){var t;return(t=s??Ve.Promise)!==null&&t!==void 0?t:Promise}function Qe(s){return s&&b(s.next)&&b(s.error)&&b(s.complete)}function ti(s){return s&&s instanceof ge||Qe(s)&&fe(s)}var ei=de(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),At=function(s){q(t,s);function t(){var e=s.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new Yt(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new ei},t.prototype.next=function(e){var i=this;Z(function(){var r,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var n=ft(i.currentObservers),a=n.next();!a.done;a=n.next()){var c=a.value;c.next(e)}}catch(h){r={error:h}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var i=this;Z(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var r=i.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;Z(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),s.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,r=this,o=r.hasError,n=r.isStopped,a=r.observers;return o||n?pe:(this.currentObservers=null,a.push(e),new st(function(){i.currentObservers=null,mt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,r=i.hasError,o=i.thrownError,n=i.isStopped;r?e.error(o):n&&e.complete()},t.prototype.asObservable=function(){var e=new Wt;return e.source=this,e},t.create=function(e,i){return new Yt(e,i)},t}(Wt),Yt=function(s){q(t,s);function t(e,i){var r=s.call(this)||this;return r.destination=e,r.source=i,r}return t.prototype.next=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,e)},t.prototype.error=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&r!==void 0?r:pe},t}(At),ve=function(s){q(t,s);function t(e){var i=s.call(this)||this;return i._value=e,i}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var i=s.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},t.prototype.getValue=function(){var e=this,i=e.hasError,r=e.thrownError,o=e._value;if(i)throw r;return this._throwIfClosed(),o},t.prototype.next=function(e){s.prototype.next.call(this,this._value=e)},t}(At);/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -66,27 +66,29 @@
|
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2020 Google LLC
|
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
|
-
*/const _e=()=>new mi;class mi{}const ut=new WeakMap,we=St(class extends be{render(s){return d}update(s,[t]){var i;const e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=(i=s.options)==null?void 0:i.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let e=ut.get(t);e===void 0&&(e=new WeakMap,ut.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){var s,t;return typeof this.G=="function"?(s=ut.get(this.ht??globalThis))==null?void 0:s.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var yi=Object.defineProperty,
|
|
69
|
+
*/const _e=()=>new mi;class mi{}const ut=new WeakMap,we=St(class extends be{render(s){return d}update(s,[t]){var i;const e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=(i=s.options)==null?void 0:i.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){const t=this.ht??globalThis;let e=ut.get(t);e===void 0&&(e=new WeakMap,ut.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){var s,t;return typeof this.G=="function"?(s=ut.get(this.ht??globalThis))==null?void 0:s.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var yi=Object.defineProperty,W=(s,t,e,i)=>{for(var r=void 0,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=n(t,e,r)||r);return r&&yi(t,e,r),r};const Ot=class Ot extends m{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=_e(),this.widgetActive$=new ve(!1),this.componentIsDestroyed$=new At}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&$e(this.application.settings.branding,this)}async _renderSymbol(){var a,c,h;const t=(a=this.application)==null?void 0:a.branding(),e=(c=t==null?void 0:t.graphics)==null?void 0:c.trigger;if(e)return C` <img src=${e} class="trigger-icon" alt="" /> `;const i=(h=this.application)==null?void 0:h.triggerIcon;if(!i)return d;const r=async l=>vi,{type:o,content:n}=i;switch(o){case"Telia":{const l=await r();return l?C`<telia-icon
|
|
70
70
|
class="trigger-icon"
|
|
71
71
|
svg=${l.svg}
|
|
72
72
|
size="lg"
|
|
73
|
-
></telia-icon>`:d}default:return d}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var t,e,i,r;return C`<div
|
|
73
|
+
></telia-icon>`:d}default:return d}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var t,e,i,r,o,n,a;return C`<div
|
|
74
74
|
class=${ee({"trigger-container":!0,hidden:!this.triggerVisible})}
|
|
75
75
|
${we(this.containerRef)}
|
|
76
76
|
>
|
|
77
77
|
${!this.active&&((r=(i=(e=(t=this.application)==null?void 0:t.settings)==null?void 0:e.branding)==null?void 0:i.other)!=null&&r.showButtonLabel)?C`
|
|
78
78
|
<button
|
|
79
|
-
|
|
79
|
+
type="button"
|
|
80
|
+
aria-label="${this.application.settings.branding.other.buttonLabelText??"Widget trigger"}"
|
|
80
81
|
class="trigger-label"
|
|
81
82
|
@click=${this.toggleActive}
|
|
82
83
|
${gi({keyframeOptions:{},in:ui,stabilizeOut:!0,skipInitial:!1})}
|
|
83
84
|
>
|
|
84
|
-
${this.application.settings.branding.other.buttonLabelText}
|
|
85
|
+
${this.application.settings.branding.other.buttonLabelText??"Widget trigger"}
|
|
85
86
|
</button>
|
|
86
87
|
`:d}
|
|
87
88
|
|
|
88
89
|
<button
|
|
89
|
-
|
|
90
|
+
type="button"
|
|
91
|
+
aria-label="${((a=(n=(o=this.application)==null?void 0:o.settings)==null?void 0:n.branding.other)==null?void 0:a.buttonLabelText)??"Widget trigger"}"
|
|
90
92
|
class=${ee({trigger:!0,active:this.active,rendered:this.loaded})}
|
|
91
93
|
@click=${this.toggleActive}
|
|
92
94
|
>
|
|
@@ -248,7 +250,7 @@
|
|
|
248
250
|
.trigger-label:hover {
|
|
249
251
|
opacity: 0.8;
|
|
250
252
|
}
|
|
251
|
-
`];let $=Ot;
|
|
253
|
+
`];let $=Ot;W([g({attribute:!1})],$.prototype,"application");W([U()],$.prototype,"active");W([U()],$.prototype,"triggerVisible");W([U()],$.prototype,"loaded");W([U()],$.prototype,"icon");var bi=Object.defineProperty,A=(s,t,e,i)=>{for(var r=void 0,o=s.length-1,n;o>=0;o--)(n=s[o])&&(r=n(t,e,r)||r);return r&&bi(t,e,r),r};const xe=s=>{const e=class e extends s{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(r){this.properties=r}writeLayout(r){this.layout=r}writeContext(r){this.context=r}addChild(r){r.parent=this,this.nodes.push(r)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}};e.styles=[k`
|
|
252
254
|
:host {
|
|
253
255
|
font-family: var(--font-family);
|
|
254
256
|
grid-column: span var(--width);
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-
|
|
1
|
+
"use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-BLhMGjy7.js")))};module.exports=r;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-area-flamingo",
|
|
3
|
-
"version": "1.1.120-rc.
|
|
3
|
+
"version": "1.1.120-rc.22",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@telia-ace/widget-core-flamingo": "1.1.120-rc.
|
|
5
|
+
"@telia-ace/widget-core-flamingo": "1.1.120-rc.22",
|
|
6
6
|
"lit": "^3.0.2"
|
|
7
7
|
},
|
|
8
8
|
"main": "./index.js",
|