@telia-ace/widget-components-area-flamingo 1.1.12-rc.5 → 1.1.12-rc.6
Sign up to get free protection for your applications and to get access to all the features.
- package/{area-27c914b6.mjs → area-08e4846e.mjs} +320 -322
- package/area-529b76b7.js +268 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/area-6186125e.js +0 -268
@@ -3,19 +3,19 @@
|
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
5
|
*/
|
6
|
-
const
|
6
|
+
const B = globalThis, et = B.ShadowRoot && (B.ShadyCSS === void 0 || B.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, st = Symbol(), ot = /* @__PURE__ */ new WeakMap();
|
7
7
|
let _t = class {
|
8
|
-
constructor(t, e,
|
9
|
-
if (this._$cssResult$ = !0,
|
8
|
+
constructor(t, e, s) {
|
9
|
+
if (this._$cssResult$ = !0, s !== st)
|
10
10
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
11
11
|
this.cssText = t, this.t = e;
|
12
12
|
}
|
13
13
|
get styleSheet() {
|
14
14
|
let t = this.o;
|
15
15
|
const e = this.t;
|
16
|
-
if (
|
17
|
-
const
|
18
|
-
|
16
|
+
if (et && t === void 0) {
|
17
|
+
const s = e !== void 0 && e.length === 1;
|
18
|
+
s && (t = ot.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && ot.set(e, t));
|
19
19
|
}
|
20
20
|
return t;
|
21
21
|
}
|
@@ -23,65 +23,65 @@ let _t = class {
|
|
23
23
|
return this.cssText;
|
24
24
|
}
|
25
25
|
};
|
26
|
-
const Ut = (
|
27
|
-
const e =
|
26
|
+
const Ut = (i) => new _t(typeof i == "string" ? i : i + "", void 0, st), P = (i, ...t) => {
|
27
|
+
const e = i.length === 1 ? i[0] : t.reduce((s, r, n) => s + ((o) => {
|
28
28
|
if (o._$cssResult$ === !0)
|
29
29
|
return o.cssText;
|
30
30
|
if (typeof o == "number")
|
31
31
|
return o;
|
32
32
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
33
|
-
})(r) +
|
34
|
-
return new _t(e,
|
35
|
-
}, Nt = (
|
36
|
-
if (
|
37
|
-
|
33
|
+
})(r) + i[n + 1], i[0]);
|
34
|
+
return new _t(e, i, st);
|
35
|
+
}, Nt = (i, t) => {
|
36
|
+
if (et)
|
37
|
+
i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
38
38
|
else
|
39
39
|
for (const e of t) {
|
40
|
-
const
|
41
|
-
r !== void 0 &&
|
40
|
+
const s = document.createElement("style"), r = B.litNonce;
|
41
|
+
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, i.appendChild(s);
|
42
42
|
}
|
43
|
-
}, at =
|
43
|
+
}, at = et ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
44
44
|
let e = "";
|
45
|
-
for (const
|
46
|
-
e +=
|
45
|
+
for (const s of t.cssRules)
|
46
|
+
e += s.cssText;
|
47
47
|
return Ut(e);
|
48
|
-
})(
|
48
|
+
})(i) : i;
|
49
49
|
/**
|
50
50
|
* @license
|
51
51
|
* Copyright 2017 Google LLC
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
53
53
|
*/
|
54
|
-
const { is: Mt, defineProperty: Ht, getOwnPropertyDescriptor: Rt, getOwnPropertyNames: kt, getOwnPropertySymbols: Dt, getPrototypeOf: Lt } = Object, m = globalThis, ct = m.trustedTypes, jt = ct ? ct.emptyScript : "",
|
54
|
+
const { is: Mt, defineProperty: Ht, getOwnPropertyDescriptor: Rt, getOwnPropertyNames: kt, getOwnPropertySymbols: Dt, getPrototypeOf: Lt } = Object, m = globalThis, ct = m.trustedTypes, jt = ct ? ct.emptyScript : "", J = m.reactiveElementPolyfillSupport, T = (i, t) => i, I = { toAttribute(i, t) {
|
55
55
|
switch (t) {
|
56
56
|
case Boolean:
|
57
|
-
|
57
|
+
i = i ? jt : null;
|
58
58
|
break;
|
59
59
|
case Object:
|
60
60
|
case Array:
|
61
|
-
|
61
|
+
i = i == null ? i : JSON.stringify(i);
|
62
62
|
}
|
63
|
-
return
|
64
|
-
}, fromAttribute(
|
65
|
-
let e =
|
63
|
+
return i;
|
64
|
+
}, fromAttribute(i, t) {
|
65
|
+
let e = i;
|
66
66
|
switch (t) {
|
67
67
|
case Boolean:
|
68
|
-
e =
|
68
|
+
e = i !== null;
|
69
69
|
break;
|
70
70
|
case Number:
|
71
|
-
e =
|
71
|
+
e = i === null ? null : Number(i);
|
72
72
|
break;
|
73
73
|
case Object:
|
74
74
|
case Array:
|
75
75
|
try {
|
76
|
-
e = JSON.parse(
|
76
|
+
e = JSON.parse(i);
|
77
77
|
} catch {
|
78
78
|
e = null;
|
79
79
|
}
|
80
80
|
}
|
81
81
|
return e;
|
82
|
-
} },
|
82
|
+
} }, it = (i, t) => !Mt(i, t), ht = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: it };
|
83
83
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), m.litPropertyMetadata ?? (m.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
84
|
-
class
|
84
|
+
class E extends HTMLElement {
|
85
85
|
static addInitializer(t) {
|
86
86
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
87
87
|
}
|
@@ -90,11 +90,11 @@ class C extends HTMLElement {
|
|
90
90
|
}
|
91
91
|
static createProperty(t, e = ht) {
|
92
92
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
93
|
-
const
|
93
|
+
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
94
94
|
r !== void 0 && Ht(this.prototype, t, r);
|
95
95
|
}
|
96
96
|
}
|
97
|
-
static getPropertyDescriptor(t, e,
|
97
|
+
static getPropertyDescriptor(t, e, s) {
|
98
98
|
const { get: r, set: n } = Rt(this.prototype, t) ?? { get() {
|
99
99
|
return this[e];
|
100
100
|
}, set(o) {
|
@@ -104,7 +104,7 @@ class C extends HTMLElement {
|
|
104
104
|
return r == null ? void 0 : r.call(this);
|
105
105
|
}, set(o) {
|
106
106
|
const c = r == null ? void 0 : r.call(this);
|
107
|
-
n.call(this, o), this.requestUpdate(t, c,
|
107
|
+
n.call(this, o), this.requestUpdate(t, c, s);
|
108
108
|
}, configurable: !0, enumerable: !0 };
|
109
109
|
}
|
110
110
|
static getPropertyOptions(t) {
|
@@ -120,20 +120,20 @@ class C extends HTMLElement {
|
|
120
120
|
if (this.hasOwnProperty(T("finalized")))
|
121
121
|
return;
|
122
122
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(T("properties"))) {
|
123
|
-
const e = this.properties,
|
124
|
-
for (const r of
|
123
|
+
const e = this.properties, s = [...kt(e), ...Dt(e)];
|
124
|
+
for (const r of s)
|
125
125
|
this.createProperty(r, e[r]);
|
126
126
|
}
|
127
127
|
const t = this[Symbol.metadata];
|
128
128
|
if (t !== null) {
|
129
129
|
const e = litPropertyMetadata.get(t);
|
130
130
|
if (e !== void 0)
|
131
|
-
for (const [
|
132
|
-
this.elementProperties.set(
|
131
|
+
for (const [s, r] of e)
|
132
|
+
this.elementProperties.set(s, r);
|
133
133
|
}
|
134
134
|
this._$Eh = /* @__PURE__ */ new Map();
|
135
|
-
for (const [e,
|
136
|
-
const r = this._$Eu(e,
|
135
|
+
for (const [e, s] of this.elementProperties) {
|
136
|
+
const r = this._$Eu(e, s);
|
137
137
|
r !== void 0 && this._$Eh.set(r, e);
|
138
138
|
}
|
139
139
|
this.elementStyles = this.finalizeStyles(this.styles);
|
@@ -141,16 +141,16 @@ class C extends HTMLElement {
|
|
141
141
|
static finalizeStyles(t) {
|
142
142
|
const e = [];
|
143
143
|
if (Array.isArray(t)) {
|
144
|
-
const
|
145
|
-
for (const r of
|
144
|
+
const s = new Set(t.flat(1 / 0).reverse());
|
145
|
+
for (const r of s)
|
146
146
|
e.unshift(at(r));
|
147
147
|
} else
|
148
148
|
t !== void 0 && e.push(at(t));
|
149
149
|
return e;
|
150
150
|
}
|
151
151
|
static _$Eu(t, e) {
|
152
|
-
const
|
153
|
-
return
|
152
|
+
const s = e.attribute;
|
153
|
+
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
154
154
|
}
|
155
155
|
constructor() {
|
156
156
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
@@ -169,8 +169,8 @@ class C extends HTMLElement {
|
|
169
169
|
}
|
170
170
|
_$E_() {
|
171
171
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
172
|
-
for (const
|
173
|
-
this.hasOwnProperty(
|
172
|
+
for (const s of e.keys())
|
173
|
+
this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
174
174
|
t.size > 0 && (this._$Ep = t);
|
175
175
|
}
|
176
176
|
createRenderRoot() {
|
@@ -180,8 +180,8 @@ class C extends HTMLElement {
|
|
180
180
|
connectedCallback() {
|
181
181
|
var t;
|
182
182
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) == null || t.forEach((e) => {
|
183
|
-
var
|
184
|
-
return (
|
183
|
+
var s;
|
184
|
+
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
185
185
|
});
|
186
186
|
}
|
187
187
|
enableUpdating(t) {
|
@@ -189,39 +189,39 @@ class C extends HTMLElement {
|
|
189
189
|
disconnectedCallback() {
|
190
190
|
var t;
|
191
191
|
(t = this._$ES) == null || t.forEach((e) => {
|
192
|
-
var
|
193
|
-
return (
|
192
|
+
var s;
|
193
|
+
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
194
194
|
});
|
195
195
|
}
|
196
|
-
attributeChangedCallback(t, e,
|
197
|
-
this._$AK(t,
|
196
|
+
attributeChangedCallback(t, e, s) {
|
197
|
+
this._$AK(t, s);
|
198
198
|
}
|
199
199
|
_$EO(t, e) {
|
200
200
|
var n;
|
201
|
-
const
|
202
|
-
if (r !== void 0 &&
|
203
|
-
const o = (((n =
|
201
|
+
const s = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, s);
|
202
|
+
if (r !== void 0 && s.reflect === !0) {
|
203
|
+
const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : I).toAttribute(e, s.type);
|
204
204
|
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
205
205
|
}
|
206
206
|
}
|
207
207
|
_$AK(t, e) {
|
208
208
|
var n;
|
209
|
-
const
|
209
|
+
const s = this.constructor, r = s._$Eh.get(t);
|
210
210
|
if (r !== void 0 && this._$Em !== r) {
|
211
|
-
const o =
|
211
|
+
const o = s.getPropertyOptions(r), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : I;
|
212
212
|
this._$Em = r, this[r] = c.fromAttribute(e, o.type), this._$Em = null;
|
213
213
|
}
|
214
214
|
}
|
215
|
-
requestUpdate(t, e,
|
215
|
+
requestUpdate(t, e, s, r = !1, n) {
|
216
216
|
if (t !== void 0) {
|
217
|
-
if (
|
217
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? it)(r ? n : this[t], e))
|
218
218
|
return;
|
219
|
-
this.C(t, e,
|
219
|
+
this.C(t, e, s);
|
220
220
|
}
|
221
221
|
this.isUpdatePending === !1 && (this._$Eg = this._$EP());
|
222
222
|
}
|
223
|
-
C(t, e,
|
224
|
-
this._$AL.has(t) || this._$AL.set(t, e),
|
223
|
+
C(t, e, s) {
|
224
|
+
this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
225
225
|
}
|
226
226
|
async _$EP() {
|
227
227
|
this.isUpdatePending = !0;
|
@@ -237,7 +237,7 @@ class C extends HTMLElement {
|
|
237
237
|
return this.performUpdate();
|
238
238
|
}
|
239
239
|
performUpdate() {
|
240
|
-
var
|
240
|
+
var s;
|
241
241
|
if (!this.isUpdatePending)
|
242
242
|
return;
|
243
243
|
if (!this.hasUpdated) {
|
@@ -254,7 +254,7 @@ class C extends HTMLElement {
|
|
254
254
|
let t = !1;
|
255
255
|
const e = this._$AL;
|
256
256
|
try {
|
257
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (
|
257
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$ES) == null || s.forEach((r) => {
|
258
258
|
var n;
|
259
259
|
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
260
260
|
}), this.update(e)) : this._$ET();
|
@@ -267,9 +267,9 @@ class C extends HTMLElement {
|
|
267
267
|
}
|
268
268
|
_$AE(t) {
|
269
269
|
var e;
|
270
|
-
(e = this._$ES) == null || e.forEach((
|
270
|
+
(e = this._$ES) == null || e.forEach((s) => {
|
271
271
|
var r;
|
272
|
-
return (r =
|
272
|
+
return (r = s.hostUpdated) == null ? void 0 : r.call(s);
|
273
273
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
274
274
|
}
|
275
275
|
_$ET() {
|
@@ -292,58 +292,58 @@ class C extends HTMLElement {
|
|
292
292
|
firstUpdated(t) {
|
293
293
|
}
|
294
294
|
}
|
295
|
-
|
295
|
+
E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[T("elementProperties")] = /* @__PURE__ */ new Map(), E[T("finalized")] = /* @__PURE__ */ new Map(), J == null || J({ ReactiveElement: E }), (m.reactiveElementVersions ?? (m.reactiveElementVersions = [])).push("2.0.1");
|
296
296
|
/**
|
297
297
|
* @license
|
298
298
|
* Copyright 2017 Google LLC
|
299
299
|
* SPDX-License-Identifier: BSD-3-Clause
|
300
300
|
*/
|
301
|
-
const U = globalThis,
|
302
|
-
\f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, dt = /-->/g, pt = />/g,
|
303
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), ut = /'/g, gt = /"/g, At = /^(?:script|style|textarea|title)$/i, It = (
|
304
|
-
function bt(
|
305
|
-
if (!Array.isArray(
|
301
|
+
const U = globalThis, G = U.trustedTypes, lt = G ? G.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, mt = "$lit$", _ = `lit$${(Math.random() + "").slice(9)}$`, yt = "?" + _, zt = `<${yt}>`, b = document, M = () => b.createComment(""), H = (i) => i === null || typeof i != "object" && typeof i != "function", vt = Array.isArray, Bt = (i) => vt(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", K = `[
|
302
|
+
\f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, dt = /-->/g, pt = />/g, y = RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^
|
303
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ut = /'/g, gt = /"/g, At = /^(?:script|style|textarea|title)$/i, It = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), R = It(1), w = Symbol.for("lit-noChange"), l = Symbol.for("lit-nothing"), ft = /* @__PURE__ */ new WeakMap(), A = b.createTreeWalker(b, 129);
|
304
|
+
function bt(i, t) {
|
305
|
+
if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
|
306
306
|
throw Error("invalid template strings array");
|
307
307
|
return lt !== void 0 ? lt.createHTML(t) : t;
|
308
308
|
}
|
309
|
-
const Gt = (
|
310
|
-
const e =
|
309
|
+
const Gt = (i, t) => {
|
310
|
+
const e = i.length - 1, s = [];
|
311
311
|
let r, n = t === 2 ? "<svg>" : "", o = O;
|
312
312
|
for (let c = 0; c < e; c++) {
|
313
|
-
const a =
|
313
|
+
const a = i[c];
|
314
314
|
let d, p, h = -1, g = 0;
|
315
315
|
for (; g < a.length && (o.lastIndex = g, p = o.exec(a), p !== null); )
|
316
|
-
g = o.lastIndex, o === O ? p[1] === "!--" ? o = dt : p[1] !== void 0 ? o = pt : p[2] !== void 0 ? (At.test(p[2]) && (r = RegExp("</" + p[2], "g")), o =
|
317
|
-
const $ = o ===
|
318
|
-
n += o === O ? a + zt : h >= 0 ? (
|
316
|
+
g = o.lastIndex, o === O ? p[1] === "!--" ? o = dt : p[1] !== void 0 ? o = pt : p[2] !== void 0 ? (At.test(p[2]) && (r = RegExp("</" + p[2], "g")), o = y) : p[3] !== void 0 && (o = y) : o === y ? p[0] === ">" ? (o = r ?? O, h = -1) : p[1] === void 0 ? h = -2 : (h = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? y : p[3] === '"' ? gt : ut) : o === gt || o === ut ? o = y : o === dt || o === pt ? o = O : (o = y, r = void 0);
|
317
|
+
const $ = o === y && i[c + 1].startsWith("/>") ? " " : "";
|
318
|
+
n += o === O ? a + zt : h >= 0 ? (s.push(d), a.slice(0, h) + mt + a.slice(h) + _ + $) : a + _ + (h === -2 ? c : $);
|
319
319
|
}
|
320
|
-
return [bt(
|
320
|
+
return [bt(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
321
321
|
};
|
322
322
|
class k {
|
323
|
-
constructor({ strings: t, _$litType$: e },
|
323
|
+
constructor({ strings: t, _$litType$: e }, s) {
|
324
324
|
let r;
|
325
325
|
this.parts = [];
|
326
326
|
let n = 0, o = 0;
|
327
327
|
const c = t.length - 1, a = this.parts, [d, p] = Gt(t, e);
|
328
|
-
if (this.el = k.createElement(d,
|
328
|
+
if (this.el = k.createElement(d, s), A.currentNode = this.el.content, e === 2) {
|
329
329
|
const h = this.el.content.firstChild;
|
330
330
|
h.replaceWith(...h.childNodes);
|
331
331
|
}
|
332
|
-
for (; (r =
|
332
|
+
for (; (r = A.nextNode()) !== null && a.length < c; ) {
|
333
333
|
if (r.nodeType === 1) {
|
334
334
|
if (r.hasAttributes())
|
335
335
|
for (const h of r.getAttributeNames())
|
336
336
|
if (h.endsWith(mt)) {
|
337
|
-
const g = p[o++], $ = r.getAttribute(h).split(_),
|
338
|
-
a.push({ type: 1, index: n, name:
|
337
|
+
const g = p[o++], $ = r.getAttribute(h).split(_), j = /([.?@])?(.*)/.exec(g);
|
338
|
+
a.push({ type: 1, index: n, name: j[2], strings: $, ctor: j[1] === "." ? Vt : j[1] === "?" ? qt : j[1] === "@" ? Yt : q }), r.removeAttribute(h);
|
339
339
|
} else
|
340
340
|
h.startsWith(_) && (a.push({ type: 6, index: n }), r.removeAttribute(h));
|
341
341
|
if (At.test(r.tagName)) {
|
342
342
|
const h = r.textContent.split(_), g = h.length - 1;
|
343
343
|
if (g > 0) {
|
344
|
-
r.textContent =
|
344
|
+
r.textContent = G ? G.emptyScript : "";
|
345
345
|
for (let $ = 0; $ < g; $++)
|
346
|
-
r.append(h[$], M()),
|
346
|
+
r.append(h[$], M()), A.nextNode(), a.push({ type: 2, index: ++n });
|
347
347
|
r.append(h[g], M());
|
348
348
|
}
|
349
349
|
}
|
@@ -359,17 +359,17 @@ class k {
|
|
359
359
|
}
|
360
360
|
}
|
361
361
|
static createElement(t, e) {
|
362
|
-
const
|
363
|
-
return
|
362
|
+
const s = b.createElement("template");
|
363
|
+
return s.innerHTML = t, s;
|
364
364
|
}
|
365
365
|
}
|
366
|
-
function
|
366
|
+
function C(i, t, e = i, s) {
|
367
367
|
var o, c;
|
368
|
-
if (t ===
|
368
|
+
if (t === w)
|
369
369
|
return t;
|
370
|
-
let r =
|
370
|
+
let r = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
371
371
|
const n = H(t) ? void 0 : t._$litDirective$;
|
372
|
-
return (r == null ? void 0 : r.constructor) !== n && ((c = r == null ? void 0 : r._$AO) == null || c.call(r, !1), n === void 0 ? r = void 0 : (r = new n(
|
372
|
+
return (r == null ? void 0 : r.constructor) !== n && ((c = r == null ? void 0 : r._$AO) == null || c.call(r, !1), n === void 0 ? r = void 0 : (r = new n(i), r._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = r : e._$Cl = r), r !== void 0 && (t = C(i, r._$AS(i, t.values), r, s)), t;
|
373
373
|
}
|
374
374
|
class Wt {
|
375
375
|
constructor(t, e) {
|
@@ -382,22 +382,22 @@ class Wt {
|
|
382
382
|
return this._$AM._$AU;
|
383
383
|
}
|
384
384
|
u(t) {
|
385
|
-
const { el: { content: e }, parts:
|
386
|
-
|
387
|
-
let n =
|
385
|
+
const { el: { content: e }, parts: s } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? b).importNode(e, !0);
|
386
|
+
A.currentNode = r;
|
387
|
+
let n = A.nextNode(), o = 0, c = 0, a = s[0];
|
388
388
|
for (; a !== void 0; ) {
|
389
389
|
if (o === a.index) {
|
390
390
|
let d;
|
391
|
-
a.type === 2 ? d = new D(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new Ft(n, this, t)), this._$AV.push(d), a =
|
391
|
+
a.type === 2 ? d = new D(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new Ft(n, this, t)), this._$AV.push(d), a = s[++c];
|
392
392
|
}
|
393
|
-
o !== (a == null ? void 0 : a.index) && (n =
|
393
|
+
o !== (a == null ? void 0 : a.index) && (n = A.nextNode(), o++);
|
394
394
|
}
|
395
|
-
return
|
395
|
+
return A.currentNode = b, r;
|
396
396
|
}
|
397
397
|
p(t) {
|
398
398
|
let e = 0;
|
399
|
-
for (const
|
400
|
-
|
399
|
+
for (const s of this._$AV)
|
400
|
+
s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
401
401
|
}
|
402
402
|
}
|
403
403
|
class D {
|
@@ -405,8 +405,8 @@ class D {
|
|
405
405
|
var t;
|
406
406
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
407
407
|
}
|
408
|
-
constructor(t, e,
|
409
|
-
this.type = 2, this._$AH = l, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM =
|
408
|
+
constructor(t, e, s, r) {
|
409
|
+
this.type = 2, this._$AH = l, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
410
410
|
}
|
411
411
|
get parentNode() {
|
412
412
|
let t = this._$AA.parentNode;
|
@@ -420,7 +420,7 @@ class D {
|
|
420
420
|
return this._$AB;
|
421
421
|
}
|
422
422
|
_$AI(t, e = this) {
|
423
|
-
t =
|
423
|
+
t = C(this, t, e), H(t) ? t === l || t == null || t === "" ? (this._$AH !== l && this._$AR(), this._$AH = l) : t !== this._$AH && t !== w && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Bt(t) ? this.T(t) : this._(t);
|
424
424
|
}
|
425
425
|
k(t) {
|
426
426
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -429,11 +429,11 @@ class D {
|
|
429
429
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
430
430
|
}
|
431
431
|
_(t) {
|
432
|
-
this._$AH !== l && H(this._$AH) ? this._$AA.nextSibling.data = t : this.$(
|
432
|
+
this._$AH !== l && H(this._$AH) ? this._$AA.nextSibling.data = t : this.$(b.createTextNode(t)), this._$AH = t;
|
433
433
|
}
|
434
434
|
g(t) {
|
435
435
|
var n;
|
436
|
-
const { values: e, _$litType$:
|
436
|
+
const { values: e, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = k.createElement(bt(s.h, s.h[0]), this.options)), s);
|
437
437
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === r)
|
438
438
|
this._$AH.p(e);
|
439
439
|
else {
|
@@ -448,14 +448,14 @@ class D {
|
|
448
448
|
T(t) {
|
449
449
|
vt(this._$AH) || (this._$AH = [], this._$AR());
|
450
450
|
const e = this._$AH;
|
451
|
-
let
|
451
|
+
let s, r = 0;
|
452
452
|
for (const n of t)
|
453
|
-
r === e.length ? e.push(
|
454
|
-
r < e.length && (this._$AR(
|
453
|
+
r === e.length ? e.push(s = new D(this.k(M()), this.k(M()), this, this.options)) : s = e[r], s._$AI(n), r++;
|
454
|
+
r < e.length && (this._$AR(s && s._$AB.nextSibling, r), e.length = r);
|
455
455
|
}
|
456
456
|
_$AR(t = this._$AA.nextSibling, e) {
|
457
|
-
var
|
458
|
-
for ((
|
457
|
+
var s;
|
458
|
+
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
459
459
|
const r = t.nextSibling;
|
460
460
|
t.remove(), t = r;
|
461
461
|
}
|
@@ -465,26 +465,26 @@ class D {
|
|
465
465
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
466
466
|
}
|
467
467
|
}
|
468
|
-
class
|
468
|
+
class q {
|
469
469
|
get tagName() {
|
470
470
|
return this.element.tagName;
|
471
471
|
}
|
472
472
|
get _$AU() {
|
473
473
|
return this._$AM._$AU;
|
474
474
|
}
|
475
|
-
constructor(t, e,
|
476
|
-
this.type = 1, this._$AH = l, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n,
|
475
|
+
constructor(t, e, s, r, n) {
|
476
|
+
this.type = 1, this._$AH = l, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = l;
|
477
477
|
}
|
478
|
-
_$AI(t, e = this,
|
478
|
+
_$AI(t, e = this, s, r) {
|
479
479
|
const n = this.strings;
|
480
480
|
let o = !1;
|
481
481
|
if (n === void 0)
|
482
|
-
t =
|
482
|
+
t = C(this, t, e, 0), o = !H(t) || t !== this._$AH && t !== w, o && (this._$AH = t);
|
483
483
|
else {
|
484
484
|
const c = t;
|
485
485
|
let a, d;
|
486
486
|
for (t = n[0], a = 0; a < n.length - 1; a++)
|
487
|
-
d =
|
487
|
+
d = C(this, c[s + a], e, a), d === w && (d = this._$AH[a]), o || (o = !H(d) || d !== this._$AH[a]), d === l ? t = l : t !== l && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
|
488
488
|
}
|
489
489
|
o && !r && this.O(t);
|
490
490
|
}
|
@@ -492,7 +492,7 @@ class Y {
|
|
492
492
|
t === l ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
493
|
}
|
494
494
|
}
|
495
|
-
class Vt extends
|
495
|
+
class Vt extends q {
|
496
496
|
constructor() {
|
497
497
|
super(...arguments), this.type = 3;
|
498
498
|
}
|
@@ -500,7 +500,7 @@ class Vt extends Y {
|
|
500
500
|
this.element[this.name] = t === l ? void 0 : t;
|
501
501
|
}
|
502
502
|
}
|
503
|
-
class qt extends
|
503
|
+
class qt extends q {
|
504
504
|
constructor() {
|
505
505
|
super(...arguments), this.type = 4;
|
506
506
|
}
|
@@ -508,15 +508,15 @@ class qt extends Y {
|
|
508
508
|
this.element.toggleAttribute(this.name, !!t && t !== l);
|
509
509
|
}
|
510
510
|
}
|
511
|
-
class Yt extends
|
512
|
-
constructor(t, e,
|
513
|
-
super(t, e,
|
511
|
+
class Yt extends q {
|
512
|
+
constructor(t, e, s, r, n) {
|
513
|
+
super(t, e, s, r, n), this.type = 5;
|
514
514
|
}
|
515
515
|
_$AI(t, e = this) {
|
516
|
-
if ((t =
|
516
|
+
if ((t = C(this, t, e, 0) ?? l) === w)
|
517
517
|
return;
|
518
|
-
const
|
519
|
-
r && this.element.removeEventListener(this.name, this,
|
518
|
+
const s = this._$AH, r = t === l && s !== l || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== l && (s === l || r);
|
519
|
+
r && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
520
520
|
}
|
521
521
|
handleEvent(t) {
|
522
522
|
var e;
|
@@ -524,33 +524,33 @@ class Yt extends Y {
|
|
524
524
|
}
|
525
525
|
}
|
526
526
|
class Ft {
|
527
|
-
constructor(t, e,
|
528
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options =
|
527
|
+
constructor(t, e, s) {
|
528
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
529
529
|
}
|
530
530
|
get _$AU() {
|
531
531
|
return this._$AM._$AU;
|
532
532
|
}
|
533
533
|
_$AI(t) {
|
534
|
-
|
534
|
+
C(this, t);
|
535
535
|
}
|
536
536
|
}
|
537
|
-
const
|
538
|
-
|
539
|
-
const Jt = (
|
540
|
-
const
|
541
|
-
let r =
|
537
|
+
const Z = U.litHtmlPolyfillSupport;
|
538
|
+
Z == null || Z(k, D), (U.litHtmlVersions ?? (U.litHtmlVersions = [])).push("3.0.2");
|
539
|
+
const Jt = (i, t, e) => {
|
540
|
+
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
541
|
+
let r = s._$litPart$;
|
542
542
|
if (r === void 0) {
|
543
543
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
544
|
-
|
544
|
+
s._$litPart$ = r = new D(t.insertBefore(M(), n), n, void 0, e ?? {});
|
545
545
|
}
|
546
|
-
return r._$AI(
|
546
|
+
return r._$AI(i), r;
|
547
547
|
};
|
548
548
|
/**
|
549
549
|
* @license
|
550
550
|
* Copyright 2017 Google LLC
|
551
551
|
* SPDX-License-Identifier: BSD-3-Clause
|
552
552
|
*/
|
553
|
-
let f = class extends
|
553
|
+
let f = class extends E {
|
554
554
|
constructor() {
|
555
555
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
556
556
|
}
|
@@ -572,24 +572,24 @@ let f = class extends C {
|
|
572
572
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
573
573
|
}
|
574
574
|
render() {
|
575
|
-
return
|
575
|
+
return w;
|
576
576
|
}
|
577
577
|
};
|
578
578
|
var $t;
|
579
579
|
f._$litElement$ = !0, f.finalized = !0, ($t = globalThis.litElementHydrateSupport) == null || $t.call(globalThis, { LitElement: f });
|
580
|
-
const
|
581
|
-
|
580
|
+
const Q = globalThis.litElementPolyfillSupport;
|
581
|
+
Q == null || Q({ LitElement: f });
|
582
582
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
583
583
|
/**
|
584
584
|
* @license
|
585
585
|
* Copyright 2021 Google LLC
|
586
586
|
* SPDX-License-Identifier: BSD-3-Clause
|
587
587
|
*/
|
588
|
-
function* wt(
|
589
|
-
if (
|
588
|
+
function* wt(i, t) {
|
589
|
+
if (i !== void 0) {
|
590
590
|
let e = 0;
|
591
|
-
for (const
|
592
|
-
yield t(
|
591
|
+
for (const s of i)
|
592
|
+
yield t(s, e++);
|
593
593
|
}
|
594
594
|
}
|
595
595
|
/**
|
@@ -597,65 +597,65 @@ function* wt(s, t) {
|
|
597
597
|
* Copyright 2017 Google LLC
|
598
598
|
* SPDX-License-Identifier: BSD-3-Clause
|
599
599
|
*/
|
600
|
-
const
|
600
|
+
const rt = (i) => (t, e) => {
|
601
601
|
e !== void 0 ? e.addInitializer(() => {
|
602
|
-
customElements.define(
|
603
|
-
}) : customElements.define(
|
602
|
+
customElements.define(i, t);
|
603
|
+
}) : customElements.define(i, t);
|
604
604
|
};
|
605
605
|
/**
|
606
606
|
* @license
|
607
607
|
* Copyright 2017 Google LLC
|
608
608
|
* SPDX-License-Identifier: BSD-3-Clause
|
609
609
|
*/
|
610
|
-
const Kt = { attribute: !0, type: String, converter:
|
611
|
-
const { kind:
|
610
|
+
const Kt = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: it }, Zt = (i = Kt, t, e) => {
|
611
|
+
const { kind: s, metadata: r } = e;
|
612
612
|
let n = globalThis.litPropertyMetadata.get(r);
|
613
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name,
|
613
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, i), s === "accessor") {
|
614
614
|
const { name: o } = e;
|
615
615
|
return { set(c) {
|
616
616
|
const a = t.get.call(this);
|
617
|
-
t.set.call(this, c), this.requestUpdate(o, a,
|
617
|
+
t.set.call(this, c), this.requestUpdate(o, a, i);
|
618
618
|
}, init(c) {
|
619
|
-
return c !== void 0 && this.C(o, void 0,
|
619
|
+
return c !== void 0 && this.C(o, void 0, i), c;
|
620
620
|
} };
|
621
621
|
}
|
622
|
-
if (
|
622
|
+
if (s === "setter") {
|
623
623
|
const { name: o } = e;
|
624
624
|
return function(c) {
|
625
625
|
const a = this[o];
|
626
|
-
t.call(this, c), this.requestUpdate(o, a,
|
626
|
+
t.call(this, c), this.requestUpdate(o, a, i);
|
627
627
|
};
|
628
628
|
}
|
629
|
-
throw Error("Unsupported decorator location: " +
|
629
|
+
throw Error("Unsupported decorator location: " + s);
|
630
630
|
};
|
631
|
-
function u(
|
632
|
-
return (t, e) => typeof e == "object" ? Zt(
|
631
|
+
function u(i) {
|
632
|
+
return (t, e) => typeof e == "object" ? Zt(i, t, e) : ((s, r, n) => {
|
633
633
|
const o = r.hasOwnProperty(n);
|
634
|
-
return r.constructor.createProperty(n, o ? { ...
|
635
|
-
})(
|
634
|
+
return r.constructor.createProperty(n, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
635
|
+
})(i, t, e);
|
636
636
|
}
|
637
637
|
/**
|
638
638
|
* @license
|
639
639
|
* Copyright 2017 Google LLC
|
640
640
|
* SPDX-License-Identifier: BSD-3-Clause
|
641
641
|
*/
|
642
|
-
function L(
|
643
|
-
return u({ ...
|
642
|
+
function L(i) {
|
643
|
+
return u({ ...i, state: !0, attribute: !1 });
|
644
644
|
}
|
645
645
|
/**
|
646
646
|
* @license
|
647
647
|
* Copyright 2017 Google LLC
|
648
648
|
* SPDX-License-Identifier: BSD-3-Clause
|
649
649
|
*/
|
650
|
-
const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 },
|
651
|
-
class
|
650
|
+
const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Et = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
651
|
+
class Ct {
|
652
652
|
constructor(t) {
|
653
653
|
}
|
654
654
|
get _$AU() {
|
655
655
|
return this._$AM._$AU;
|
656
656
|
}
|
657
|
-
_$AT(t, e,
|
658
|
-
this._$Ct = t, this._$AM = e, this._$Ci =
|
657
|
+
_$AT(t, e, s) {
|
658
|
+
this._$Ct = t, this._$AM = e, this._$Ci = s;
|
659
659
|
}
|
660
660
|
_$AS(t, e) {
|
661
661
|
return this.update(t, e);
|
@@ -669,56 +669,56 @@ class Et {
|
|
669
669
|
* Copyright 2018 Google LLC
|
670
670
|
* SPDX-License-Identifier: BSD-3-Clause
|
671
671
|
*/
|
672
|
-
const Qt =
|
673
|
-
constructor(
|
672
|
+
const Qt = Et(class extends Ct {
|
673
|
+
constructor(i) {
|
674
674
|
var t;
|
675
|
-
if (super(
|
675
|
+
if (super(i), i.type !== xt.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2)
|
676
676
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
677
677
|
}
|
678
|
-
render(
|
679
|
-
return " " + Object.keys(
|
678
|
+
render(i) {
|
679
|
+
return " " + Object.keys(i).filter((t) => i[t]).join(" ") + " ";
|
680
680
|
}
|
681
|
-
update(
|
682
|
-
var
|
681
|
+
update(i, [t]) {
|
682
|
+
var s, r;
|
683
683
|
if (this.it === void 0) {
|
684
|
-
this.it = /* @__PURE__ */ new Set(),
|
684
|
+
this.it = /* @__PURE__ */ new Set(), i.strings !== void 0 && (this.st = new Set(i.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
685
685
|
for (const n in t)
|
686
|
-
t[n] && !((
|
686
|
+
t[n] && !((s = this.st) != null && s.has(n)) && this.it.add(n);
|
687
687
|
return this.render(t);
|
688
688
|
}
|
689
|
-
const e =
|
689
|
+
const e = i.element.classList;
|
690
690
|
for (const n of this.it)
|
691
691
|
n in t || (e.remove(n), this.it.delete(n));
|
692
692
|
for (const n in t) {
|
693
693
|
const o = !!t[n];
|
694
694
|
o === this.it.has(n) || (r = this.st) != null && r.has(n) || (o ? (e.add(n), this.it.add(n)) : (e.remove(n), this.it.delete(n)));
|
695
695
|
}
|
696
|
-
return
|
697
|
-
}
|
698
|
-
}),
|
699
|
-
|
700
|
-
}, St = (
|
701
|
-
var e,
|
702
|
-
|
703
|
-
(
|
696
|
+
return w;
|
697
|
+
}
|
698
|
+
}), z = (i, t, e) => {
|
699
|
+
i && e.style.setProperty(t, i);
|
700
|
+
}, St = (i, t) => {
|
701
|
+
var e, s, r, n;
|
702
|
+
z((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), z(
|
703
|
+
(s = i.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
704
704
|
"--text-on-primary-background",
|
705
705
|
t
|
706
|
-
),
|
707
|
-
(r =
|
706
|
+
), z(
|
707
|
+
(r = i.colors) == null ? void 0 : r.secondaryBackground,
|
708
708
|
"--secondary-background",
|
709
709
|
t
|
710
|
-
),
|
711
|
-
(n =
|
710
|
+
), z(
|
711
|
+
(n = i.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
712
712
|
"--text-on-secondary-background",
|
713
713
|
t
|
714
714
|
);
|
715
715
|
};
|
716
|
-
var Xt = Object.defineProperty, te = Object.getOwnPropertyDescriptor,
|
717
|
-
for (var r =
|
718
|
-
(o =
|
719
|
-
return
|
716
|
+
var Xt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, Y = (i, t, e, s) => {
|
717
|
+
for (var r = s > 1 ? void 0 : s ? te(t, e) : t, n = i.length - 1, o; n >= 0; n--)
|
718
|
+
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
719
|
+
return s && r && Xt(t, e, r), r;
|
720
720
|
};
|
721
|
-
|
721
|
+
class x extends f {
|
722
722
|
constructor() {
|
723
723
|
super(...arguments), this.active = !1, this.loaded = !1;
|
724
724
|
}
|
@@ -726,8 +726,8 @@ let y = class extends f {
|
|
726
726
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
727
727
|
}
|
728
728
|
_toggleActive() {
|
729
|
-
var
|
730
|
-
if (!((
|
729
|
+
var t;
|
730
|
+
if (!((t = this.application) != null && t.root)) {
|
731
731
|
console.warn(
|
732
732
|
"Could not activate widget. No root element assigned to widget."
|
733
733
|
);
|
@@ -736,23 +736,23 @@ let y = class extends f {
|
|
736
736
|
this.active = !this.active, this.active ? this.application.appendToDOM() : this.application.removeFromDOM();
|
737
737
|
}
|
738
738
|
_applyBranding() {
|
739
|
-
var
|
740
|
-
(
|
739
|
+
var t;
|
740
|
+
(t = this.application) != null && t.settings && St(this.application.settings.branding, this);
|
741
741
|
}
|
742
742
|
async _renderSymbol() {
|
743
|
-
var
|
744
|
-
const
|
745
|
-
if (!
|
743
|
+
var n;
|
744
|
+
const t = (n = this.application) == null ? void 0 : n.triggerIcon;
|
745
|
+
if (!t)
|
746
746
|
return l;
|
747
|
-
const
|
748
|
-
(
|
749
|
-
), { type:
|
750
|
-
switch (
|
747
|
+
const e = async (o) => await import("./index-5087564d.mjs").then(
|
748
|
+
(a) => a[o]
|
749
|
+
), { type: s, content: r } = t;
|
750
|
+
switch (s) {
|
751
751
|
case "Telia": {
|
752
|
-
const
|
753
|
-
return
|
752
|
+
const o = await e(r);
|
753
|
+
return o ? R`<telia-icon
|
754
754
|
class="trigger-icon"
|
755
|
-
svg=${
|
755
|
+
svg=${o.svg}
|
756
756
|
size="lg"
|
757
757
|
></telia-icon>` : l;
|
758
758
|
}
|
@@ -799,8 +799,8 @@ let y = class extends f {
|
|
799
799
|
</span>
|
800
800
|
</button>`;
|
801
801
|
}
|
802
|
-
}
|
803
|
-
|
802
|
+
}
|
803
|
+
x.styles = [
|
804
804
|
P`
|
805
805
|
:host {
|
806
806
|
--voca-rem-multiplier: 0.625;
|
@@ -871,42 +871,39 @@ y.styles = [
|
|
871
871
|
}
|
872
872
|
`
|
873
873
|
];
|
874
|
-
|
874
|
+
Y([
|
875
875
|
u({ attribute: !1 })
|
876
|
-
],
|
877
|
-
|
876
|
+
], x.prototype, "application", 2);
|
877
|
+
Y([
|
878
878
|
L()
|
879
|
-
],
|
880
|
-
|
879
|
+
], x.prototype, "active", 2);
|
880
|
+
Y([
|
881
881
|
L()
|
882
|
-
],
|
883
|
-
|
882
|
+
], x.prototype, "loaded", 2);
|
883
|
+
Y([
|
884
884
|
L()
|
885
|
-
],
|
886
|
-
|
887
|
-
|
888
|
-
],
|
889
|
-
|
890
|
-
for (var r = i > 1 ? void 0 : i ? se(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
891
|
-
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
892
|
-
return i && r && ee(t, e, r), r;
|
885
|
+
], x.prototype, "icon", 2);
|
886
|
+
var ee = Object.defineProperty, se = Object.getOwnPropertyDescriptor, v = (i, t, e, s) => {
|
887
|
+
for (var r = s > 1 ? void 0 : s ? se(t, e) : t, n = i.length - 1, o; n >= 0; n--)
|
888
|
+
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
889
|
+
return s && r && ee(t, e, r), r;
|
893
890
|
};
|
894
|
-
const Pt = (
|
895
|
-
class t extends
|
891
|
+
const Pt = (i) => {
|
892
|
+
class t extends i {
|
896
893
|
constructor() {
|
897
894
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
898
895
|
}
|
899
|
-
writeProperties(
|
900
|
-
this.properties =
|
896
|
+
writeProperties(s) {
|
897
|
+
this.properties = s;
|
901
898
|
}
|
902
|
-
writeLayout(
|
903
|
-
this.layout =
|
899
|
+
writeLayout(s) {
|
900
|
+
this.layout = s;
|
904
901
|
}
|
905
|
-
writeContext(
|
906
|
-
this.context =
|
902
|
+
writeContext(s) {
|
903
|
+
this.context = s;
|
907
904
|
}
|
908
|
-
addChild(
|
909
|
-
|
905
|
+
addChild(s) {
|
906
|
+
s.parent = this, this.nodes.push(s);
|
910
907
|
}
|
911
908
|
connectedCallback() {
|
912
909
|
super.connectedCallback(), this.renderRoot.host.style.setProperty(
|
@@ -930,106 +927,106 @@ const Pt = (s) => {
|
|
930
927
|
box-sizing: border-box;
|
931
928
|
}
|
932
929
|
`
|
933
|
-
],
|
930
|
+
], v([
|
934
931
|
u()
|
935
|
-
], t.prototype, "properties", 2),
|
932
|
+
], t.prototype, "properties", 2), v([
|
936
933
|
u()
|
937
|
-
], t.prototype, "context", 2),
|
934
|
+
], t.prototype, "context", 2), v([
|
938
935
|
u()
|
939
|
-
], t.prototype, "layout", 2),
|
936
|
+
], t.prototype, "layout", 2), v([
|
940
937
|
u()
|
941
|
-
], t.prototype, "name", 2),
|
938
|
+
], t.prototype, "name", 2), v([
|
942
939
|
u()
|
943
|
-
], t.prototype, "type", 2),
|
940
|
+
], t.prototype, "type", 2), v([
|
944
941
|
u({ attribute: !1 })
|
945
|
-
], t.prototype, "application", 2),
|
942
|
+
], t.prototype, "application", 2), v([
|
946
943
|
u({ attribute: !1 })
|
947
944
|
], t.prototype, "parent", 2), t;
|
948
945
|
};
|
949
|
-
var ie = Object.defineProperty, re = Object.getOwnPropertyDescriptor, ne = (
|
950
|
-
for (var r =
|
951
|
-
(o =
|
952
|
-
return
|
946
|
+
var ie = Object.defineProperty, re = Object.getOwnPropertyDescriptor, ne = (i, t, e, s) => {
|
947
|
+
for (var r = s > 1 ? void 0 : s ? re(t, e) : t, n = i.length - 1, o; n >= 0; n--)
|
948
|
+
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
949
|
+
return s && r && ie(t, e, r), r;
|
953
950
|
};
|
954
|
-
let
|
951
|
+
let tt = class extends Pt(f) {
|
955
952
|
render() {
|
956
953
|
return R`Non resolved component`;
|
957
954
|
}
|
958
955
|
};
|
959
|
-
|
956
|
+
tt.styles = [
|
960
957
|
P`
|
961
958
|
:host {
|
962
959
|
display: block;
|
963
960
|
}
|
964
961
|
`
|
965
962
|
];
|
966
|
-
|
967
|
-
|
968
|
-
],
|
963
|
+
tt = ne([
|
964
|
+
rt("ace-unresolved-component")
|
965
|
+
], tt);
|
969
966
|
/**
|
970
967
|
* @license
|
971
968
|
* Copyright 2020 Google LLC
|
972
969
|
* SPDX-License-Identifier: BSD-3-Clause
|
973
970
|
*/
|
974
|
-
const oe = (
|
971
|
+
const oe = (i) => i.strings === void 0;
|
975
972
|
/**
|
976
973
|
* @license
|
977
974
|
* Copyright 2017 Google LLC
|
978
975
|
* SPDX-License-Identifier: BSD-3-Clause
|
979
976
|
*/
|
980
|
-
const N = (
|
981
|
-
var
|
982
|
-
const e =
|
977
|
+
const N = (i, t) => {
|
978
|
+
var s;
|
979
|
+
const e = i._$AN;
|
983
980
|
if (e === void 0)
|
984
981
|
return !1;
|
985
982
|
for (const r of e)
|
986
|
-
(
|
983
|
+
(s = r._$AO) == null || s.call(r, t, !1), N(r, t);
|
987
984
|
return !0;
|
988
|
-
},
|
985
|
+
}, W = (i) => {
|
989
986
|
let t, e;
|
990
987
|
do {
|
991
|
-
if ((t =
|
988
|
+
if ((t = i._$AM) === void 0)
|
992
989
|
break;
|
993
|
-
e = t._$AN, e.delete(
|
990
|
+
e = t._$AN, e.delete(i), i = t;
|
994
991
|
} while ((e == null ? void 0 : e.size) === 0);
|
995
|
-
}, Ot = (
|
996
|
-
for (let t; t =
|
992
|
+
}, Ot = (i) => {
|
993
|
+
for (let t; t = i._$AM; i = t) {
|
997
994
|
let e = t._$AN;
|
998
995
|
if (e === void 0)
|
999
996
|
t._$AN = e = /* @__PURE__ */ new Set();
|
1000
|
-
else if (e.has(
|
997
|
+
else if (e.has(i))
|
1001
998
|
break;
|
1002
|
-
e.add(
|
999
|
+
e.add(i), he(t);
|
1003
1000
|
}
|
1004
1001
|
};
|
1005
|
-
function ae(
|
1006
|
-
this._$AN !== void 0 ? (
|
1002
|
+
function ae(i) {
|
1003
|
+
this._$AN !== void 0 ? (W(this), this._$AM = i, Ot(this)) : this._$AM = i;
|
1007
1004
|
}
|
1008
|
-
function ce(
|
1009
|
-
const
|
1005
|
+
function ce(i, t = !1, e = 0) {
|
1006
|
+
const s = this._$AH, r = this._$AN;
|
1010
1007
|
if (r !== void 0 && r.size !== 0)
|
1011
1008
|
if (t)
|
1012
|
-
if (Array.isArray(
|
1013
|
-
for (let n = e; n <
|
1014
|
-
N(
|
1009
|
+
if (Array.isArray(s))
|
1010
|
+
for (let n = e; n < s.length; n++)
|
1011
|
+
N(s[n], !1), W(s[n]);
|
1015
1012
|
else
|
1016
|
-
|
1013
|
+
s != null && (N(s, !1), W(s));
|
1017
1014
|
else
|
1018
|
-
N(this,
|
1015
|
+
N(this, i);
|
1019
1016
|
}
|
1020
|
-
const he = (
|
1021
|
-
|
1017
|
+
const he = (i) => {
|
1018
|
+
i.type == xt.CHILD && (i._$AP ?? (i._$AP = ce), i._$AQ ?? (i._$AQ = ae));
|
1022
1019
|
};
|
1023
|
-
class le extends
|
1020
|
+
class le extends Ct {
|
1024
1021
|
constructor() {
|
1025
1022
|
super(...arguments), this._$AN = void 0;
|
1026
1023
|
}
|
1027
|
-
_$AT(t, e,
|
1028
|
-
super._$AT(t, e,
|
1024
|
+
_$AT(t, e, s) {
|
1025
|
+
super._$AT(t, e, s), Ot(this), this.isConnected = t._$AU;
|
1029
1026
|
}
|
1030
1027
|
_$AO(t, e = !0) {
|
1031
|
-
var
|
1032
|
-
t !== this.isConnected && (this.isConnected = t, t ? (
|
1028
|
+
var s, r;
|
1029
|
+
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (r = this.disconnected) == null || r.call(this)), e && (N(this, t), W(this));
|
1033
1030
|
}
|
1034
1031
|
setValue(t) {
|
1035
1032
|
if (oe(this._$Ct))
|
@@ -1052,26 +1049,26 @@ class le extends Et {
|
|
1052
1049
|
const de = () => new pe();
|
1053
1050
|
class pe {
|
1054
1051
|
}
|
1055
|
-
const
|
1056
|
-
render(
|
1052
|
+
const X = /* @__PURE__ */ new WeakMap(), ue = Et(class extends le {
|
1053
|
+
render(i) {
|
1057
1054
|
return l;
|
1058
1055
|
}
|
1059
|
-
update(
|
1060
|
-
var
|
1056
|
+
update(i, [t]) {
|
1057
|
+
var s;
|
1061
1058
|
const e = t !== this.G;
|
1062
|
-
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (
|
1059
|
+
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (s = i.options) == null ? void 0 : s.host, this.ot(this.lt = i.element)), l;
|
1063
1060
|
}
|
1064
|
-
ot(
|
1061
|
+
ot(i) {
|
1065
1062
|
if (typeof this.G == "function") {
|
1066
1063
|
const t = this.ct ?? globalThis;
|
1067
|
-
let e =
|
1068
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1064
|
+
let e = X.get(t);
|
1065
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), X.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, i), i !== void 0 && this.G.call(this.ct, i);
|
1069
1066
|
} else
|
1070
|
-
this.G.value =
|
1067
|
+
this.G.value = i;
|
1071
1068
|
}
|
1072
1069
|
get rt() {
|
1073
|
-
var
|
1074
|
-
return typeof this.G == "function" ? (
|
1070
|
+
var i, t;
|
1071
|
+
return typeof this.G == "function" ? (i = X.get(this.ct ?? globalThis)) == null ? void 0 : i.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
1075
1072
|
}
|
1076
1073
|
disconnected() {
|
1077
1074
|
this.rt === this.lt && this.ot(void 0);
|
@@ -1080,34 +1077,34 @@ const tt = /* @__PURE__ */ new WeakMap(), ue = Ct(class extends le {
|
|
1080
1077
|
this.ot(this.lt);
|
1081
1078
|
}
|
1082
1079
|
});
|
1083
|
-
var nt = /* @__PURE__ */ ((
|
1084
|
-
for (var r =
|
1085
|
-
(o =
|
1086
|
-
return
|
1080
|
+
var nt = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(nt || {}), ge = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, Tt = (i, t, e, s) => {
|
1081
|
+
for (var r = s > 1 ? void 0 : s ? fe(t, e) : t, n = i.length - 1, o; n >= 0; n--)
|
1082
|
+
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
1083
|
+
return s && r && ge(t, e, r), r;
|
1087
1084
|
};
|
1088
|
-
let
|
1085
|
+
let V = class extends f {
|
1089
1086
|
constructor() {
|
1090
1087
|
super(...arguments), this.nodes = [], this.wrapperRef = de();
|
1091
1088
|
}
|
1092
|
-
addChild(
|
1093
|
-
|
1089
|
+
addChild(i) {
|
1090
|
+
i.parent = this, this.nodes.push(i);
|
1094
1091
|
}
|
1095
1092
|
applyBranding() {
|
1096
1093
|
if (this.wrapperRef.value) {
|
1097
|
-
const
|
1098
|
-
|
1094
|
+
const i = this.application.settings;
|
1095
|
+
i != null && i.branding && St(i.branding, this.wrapperRef.value);
|
1099
1096
|
}
|
1100
1097
|
}
|
1101
|
-
firstUpdated(
|
1098
|
+
firstUpdated(i) {
|
1102
1099
|
this.applyBranding();
|
1103
1100
|
}
|
1104
1101
|
render() {
|
1105
1102
|
return this.application.renderStrategy === nt.Trigger && this.renderRoot.host.classList.add("floating"), R`<div class="widget-container" ${ue(this.wrapperRef)}>
|
1106
|
-
${wt(this.nodes, (
|
1103
|
+
${wt(this.nodes, (i) => i)}
|
1107
1104
|
</div>`;
|
1108
1105
|
}
|
1109
1106
|
};
|
1110
|
-
|
1107
|
+
V.styles = P`
|
1111
1108
|
:host {
|
1112
1109
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1113
1110
|
--spacing-xs: 0.2rem;
|
@@ -1188,14 +1185,14 @@ q.styles = P`
|
|
1188
1185
|
`;
|
1189
1186
|
Tt([
|
1190
1187
|
u({ attribute: !1 })
|
1191
|
-
],
|
1192
|
-
|
1193
|
-
|
1194
|
-
],
|
1195
|
-
var $e = Object.defineProperty, _e = Object.getOwnPropertyDescriptor,
|
1196
|
-
for (var r =
|
1197
|
-
(o =
|
1198
|
-
return
|
1188
|
+
], V.prototype, "application", 2);
|
1189
|
+
V = Tt([
|
1190
|
+
rt("ace-wrapper")
|
1191
|
+
], V);
|
1192
|
+
var $e = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, F = (i, t, e, s) => {
|
1193
|
+
for (var r = s > 1 ? void 0 : s ? _e(t, e) : t, n = i.length - 1, o; n >= 0; n--)
|
1194
|
+
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
1195
|
+
return s && r && $e(t, e, r), r;
|
1199
1196
|
};
|
1200
1197
|
let S = class extends f {
|
1201
1198
|
constructor() {
|
@@ -1207,15 +1204,15 @@ let S = class extends f {
|
|
1207
1204
|
disconnectedCallback() {
|
1208
1205
|
super.disconnectedCallback(), this.removeEventListener("environment-created", this.onEnvironmentCreated);
|
1209
1206
|
}
|
1210
|
-
async onEnvironmentCreated(
|
1211
|
-
this.widget =
|
1207
|
+
async onEnvironmentCreated(i) {
|
1208
|
+
this.widget = i.detail.widget, await this.activate(), this.requestUpdate();
|
1212
1209
|
}
|
1213
1210
|
async activate() {
|
1214
1211
|
this.widget && (await this.widget.activate(), this.status = "activated");
|
1215
1212
|
}
|
1216
1213
|
async getGlobalEnvironment() {
|
1217
|
-
const
|
1218
|
-
|
1214
|
+
const i = globalThis.widgets;
|
1215
|
+
i && (this.widget = i.applications.find(
|
1219
1216
|
(t) => t.name === this.name
|
1220
1217
|
), await this.activate());
|
1221
1218
|
}
|
@@ -1223,8 +1220,8 @@ let S = class extends f {
|
|
1223
1220
|
if (!this.widget || this.status !== "activated")
|
1224
1221
|
return l;
|
1225
1222
|
if (this.widget.renderStrategy === nt.Trigger) {
|
1226
|
-
const
|
1227
|
-
return
|
1223
|
+
const i = new x();
|
1224
|
+
return i.application = this.widget, i;
|
1228
1225
|
}
|
1229
1226
|
return this.widget.render();
|
1230
1227
|
}
|
@@ -1236,27 +1233,28 @@ S.styles = [
|
|
1236
1233
|
}
|
1237
1234
|
`
|
1238
1235
|
];
|
1239
|
-
|
1236
|
+
F([
|
1240
1237
|
u({ attribute: !0 })
|
1241
1238
|
], S.prototype, "name", 2);
|
1242
|
-
|
1239
|
+
F([
|
1243
1240
|
L()
|
1244
1241
|
], S.prototype, "widget", 2);
|
1245
|
-
|
1242
|
+
F([
|
1246
1243
|
L()
|
1247
1244
|
], S.prototype, "status", 2);
|
1248
|
-
S =
|
1249
|
-
|
1245
|
+
S = F([
|
1246
|
+
rt("ace-widget")
|
1250
1247
|
], S);
|
1251
|
-
|
1248
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", x);
|
1249
|
+
const me = (i) => {
|
1252
1250
|
const t = {};
|
1253
|
-
return Object.keys(
|
1254
|
-
e.indexOf("css-") > -1 && (t[e] =
|
1251
|
+
return Object.keys(i).forEach((e) => {
|
1252
|
+
e.indexOf("css-") > -1 && (t[e] = i[e]);
|
1255
1253
|
}), t;
|
1256
|
-
}, ye = (
|
1254
|
+
}, ye = (i, t) => {
|
1257
1255
|
const e = me(t);
|
1258
|
-
Object.entries(e).forEach(([
|
1259
|
-
|
1256
|
+
Object.entries(e).forEach(([s, r]) => {
|
1257
|
+
i.style.setProperty(s.replace("css-", ""), r);
|
1260
1258
|
});
|
1261
1259
|
};
|
1262
1260
|
class ve extends Pt(f) {
|