@telia-ace/widget-components-area-flamingo 1.1.12-rc.10 → 1.1.12-rc.6
Sign up to get free protection for your applications and to get access to all the features.
- package/{area-24a6c0a9.mjs → area-08e4846e.mjs} +205 -184
- package/{area-f6373f40.js → area-529b76b7.js} +28 -24
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -3,19 +3,19 @@
|
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
5
|
*/
|
6
|
-
const B = globalThis,
|
7
|
-
let
|
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
|
+
let _t = class {
|
8
8
|
constructor(t, e, s) {
|
9
|
-
if (this._$cssResult$ = !0, 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 (
|
16
|
+
if (et && t === void 0) {
|
17
17
|
const s = e !== void 0 && e.length === 1;
|
18
|
-
s && (t =
|
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,7 +23,7 @@ let ft = class {
|
|
23
23
|
return this.cssText;
|
24
24
|
}
|
25
25
|
};
|
26
|
-
const
|
26
|
+
const Ut = (i) => new _t(typeof i == "string" ? i : i + "", void 0, st), P = (i, ...t) => {
|
27
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;
|
@@ -31,30 +31,30 @@ const Ot = (i) => new ft(typeof i == "string" ? i : i + "", void 0, X), S = (i,
|
|
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
33
|
})(r) + i[n + 1], i[0]);
|
34
|
-
return new
|
35
|
-
},
|
36
|
-
if (
|
34
|
+
return new _t(e, i, st);
|
35
|
+
}, Nt = (i, t) => {
|
36
|
+
if (et)
|
37
37
|
i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
38
38
|
else
|
39
39
|
for (const e of t) {
|
40
40
|
const s = document.createElement("style"), r = B.litNonce;
|
41
41
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, i.appendChild(s);
|
42
42
|
}
|
43
|
-
},
|
43
|
+
}, at = et ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
44
44
|
let e = "";
|
45
45
|
for (const s of t.cssRules)
|
46
46
|
e += s.cssText;
|
47
|
-
return
|
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:
|
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
|
-
i = i ?
|
57
|
+
i = i ? jt : null;
|
58
58
|
break;
|
59
59
|
case Object:
|
60
60
|
case Array:
|
@@ -79,8 +79,8 @@ const { is: Ut, defineProperty: Nt, getOwnPropertyDescriptor: Mt, getOwnProperty
|
|
79
79
|
}
|
80
80
|
}
|
81
81
|
return e;
|
82
|
-
} },
|
83
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
82
|
+
} }, it = (i, t) => !Mt(i, t), ht = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: it };
|
83
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), m.litPropertyMetadata ?? (m.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
84
84
|
class E extends HTMLElement {
|
85
85
|
static addInitializer(t) {
|
86
86
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
@@ -88,14 +88,14 @@ class E extends HTMLElement {
|
|
88
88
|
static get observedAttributes() {
|
89
89
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
90
90
|
}
|
91
|
-
static createProperty(t, e =
|
91
|
+
static createProperty(t, e = ht) {
|
92
92
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
93
93
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
94
|
-
r !== void 0 &&
|
94
|
+
r !== void 0 && Ht(this.prototype, t, r);
|
95
95
|
}
|
96
96
|
}
|
97
97
|
static getPropertyDescriptor(t, e, s) {
|
98
|
-
const { get: r, set: n } =
|
98
|
+
const { get: r, set: n } = Rt(this.prototype, t) ?? { get() {
|
99
99
|
return this[e];
|
100
100
|
}, set(o) {
|
101
101
|
this[e] = o;
|
@@ -108,19 +108,19 @@ class E extends HTMLElement {
|
|
108
108
|
}, configurable: !0, enumerable: !0 };
|
109
109
|
}
|
110
110
|
static getPropertyOptions(t) {
|
111
|
-
return this.elementProperties.get(t) ??
|
111
|
+
return this.elementProperties.get(t) ?? ht;
|
112
112
|
}
|
113
113
|
static _$Ei() {
|
114
|
-
if (this.hasOwnProperty(
|
114
|
+
if (this.hasOwnProperty(T("elementProperties")))
|
115
115
|
return;
|
116
|
-
const t =
|
116
|
+
const t = Lt(this);
|
117
117
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
118
118
|
}
|
119
119
|
static finalize() {
|
120
|
-
if (this.hasOwnProperty(
|
120
|
+
if (this.hasOwnProperty(T("finalized")))
|
121
121
|
return;
|
122
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
123
|
-
const e = this.properties, s = [...kt(e), ...
|
122
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(T("properties"))) {
|
123
|
+
const e = this.properties, s = [...kt(e), ...Dt(e)];
|
124
124
|
for (const r of s)
|
125
125
|
this.createProperty(r, e[r]);
|
126
126
|
}
|
@@ -143,9 +143,9 @@ class E extends HTMLElement {
|
|
143
143
|
if (Array.isArray(t)) {
|
144
144
|
const s = new Set(t.flat(1 / 0).reverse());
|
145
145
|
for (const r of s)
|
146
|
-
e.unshift(
|
146
|
+
e.unshift(at(r));
|
147
147
|
} else
|
148
|
-
t !== void 0 && e.push(
|
148
|
+
t !== void 0 && e.push(at(t));
|
149
149
|
return e;
|
150
150
|
}
|
151
151
|
static _$Eu(t, e) {
|
@@ -175,7 +175,7 @@ class E extends HTMLElement {
|
|
175
175
|
}
|
176
176
|
createRenderRoot() {
|
177
177
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
178
|
-
return
|
178
|
+
return Nt(t, this.constructor.elementStyles), t;
|
179
179
|
}
|
180
180
|
connectedCallback() {
|
181
181
|
var t;
|
@@ -214,7 +214,7 @@ class E extends HTMLElement {
|
|
214
214
|
}
|
215
215
|
requestUpdate(t, e, s, r = !1, n) {
|
216
216
|
if (t !== void 0) {
|
217
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
217
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? it)(r ? n : this[t], e))
|
218
218
|
return;
|
219
219
|
this.C(t, e, s);
|
220
220
|
}
|
@@ -292,40 +292,40 @@ class E extends HTMLElement {
|
|
292
292
|
firstUpdated(t) {
|
293
293
|
}
|
294
294
|
}
|
295
|
-
E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[
|
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
|
302
|
-
\f\r]`,
|
303
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
304
|
-
function
|
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
305
|
if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
|
306
306
|
throw Error("invalid template strings array");
|
307
|
-
return
|
307
|
+
return lt !== void 0 ? lt.createHTML(t) : t;
|
308
308
|
}
|
309
|
-
const
|
309
|
+
const Gt = (i, t) => {
|
310
310
|
const e = i.length - 1, s = [];
|
311
|
-
let r, n = t === 2 ? "<svg>" : "", o =
|
311
|
+
let r, n = t === 2 ? "<svg>" : "", o = O;
|
312
312
|
for (let c = 0; c < e; c++) {
|
313
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 ===
|
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
317
|
const $ = o === y && i[c + 1].startsWith("/>") ? " " : "";
|
318
|
-
n += o ===
|
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 [
|
320
|
+
return [bt(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
321
321
|
};
|
322
|
-
class
|
322
|
+
class k {
|
323
323
|
constructor({ strings: t, _$litType$: e }, s) {
|
324
324
|
let r;
|
325
325
|
this.parts = [];
|
326
326
|
let n = 0, o = 0;
|
327
|
-
const c = t.length - 1, a = this.parts, [d, p] =
|
328
|
-
if (this.el =
|
327
|
+
const c = t.length - 1, a = this.parts, [d, p] = Gt(t, e);
|
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
|
}
|
@@ -333,27 +333,27 @@ class H {
|
|
333
333
|
if (r.nodeType === 1) {
|
334
334
|
if (r.hasAttributes())
|
335
335
|
for (const h of r.getAttributeNames())
|
336
|
-
if (h.endsWith(
|
337
|
-
const g = p[o++], $ = r.getAttribute(h).split(
|
338
|
-
a.push({ type: 1, index: n, name: j[2], strings: $, ctor: j[1] === "." ?
|
336
|
+
if (h.endsWith(mt)) {
|
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
|
-
h.startsWith(
|
341
|
-
if (
|
342
|
-
const h = r.textContent.split(
|
340
|
+
h.startsWith(_) && (a.push({ type: 6, index: n }), r.removeAttribute(h));
|
341
|
+
if (At.test(r.tagName)) {
|
342
|
+
const h = r.textContent.split(_), g = h.length - 1;
|
343
343
|
if (g > 0) {
|
344
344
|
r.textContent = G ? G.emptyScript : "";
|
345
345
|
for (let $ = 0; $ < g; $++)
|
346
|
-
r.append(h[$],
|
347
|
-
r.append(h[g],
|
346
|
+
r.append(h[$], M()), A.nextNode(), a.push({ type: 2, index: ++n });
|
347
|
+
r.append(h[g], M());
|
348
348
|
}
|
349
349
|
}
|
350
350
|
} else if (r.nodeType === 8)
|
351
|
-
if (r.data ===
|
351
|
+
if (r.data === yt)
|
352
352
|
a.push({ type: 2, index: n });
|
353
353
|
else {
|
354
354
|
let h = -1;
|
355
|
-
for (; (h = r.data.indexOf(
|
356
|
-
a.push({ type: 7, index: n }), h +=
|
355
|
+
for (; (h = r.data.indexOf(_, h + 1)) !== -1; )
|
356
|
+
a.push({ type: 7, index: n }), h += _.length - 1;
|
357
357
|
}
|
358
358
|
n++;
|
359
359
|
}
|
@@ -368,10 +368,10 @@ function C(i, t, e = i, s) {
|
|
368
368
|
if (t === w)
|
369
369
|
return t;
|
370
370
|
let r = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
371
|
-
const n =
|
371
|
+
const n = H(t) ? void 0 : t._$litDirective$;
|
372
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
|
-
class
|
374
|
+
class Wt {
|
375
375
|
constructor(t, e) {
|
376
376
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
377
377
|
}
|
@@ -388,7 +388,7 @@ class It {
|
|
388
388
|
for (; a !== void 0; ) {
|
389
389
|
if (o === a.index) {
|
390
390
|
let d;
|
391
|
-
a.type === 2 ? d = new
|
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
393
|
o !== (a == null ? void 0 : a.index) && (n = A.nextNode(), o++);
|
394
394
|
}
|
@@ -400,7 +400,7 @@ class It {
|
|
400
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
|
-
class
|
403
|
+
class D {
|
404
404
|
get _$AU() {
|
405
405
|
var t;
|
406
406
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
@@ -420,7 +420,7 @@ class R {
|
|
420
420
|
return this._$AB;
|
421
421
|
}
|
422
422
|
_$AI(t, e = this) {
|
423
|
-
t = C(this, t, e),
|
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,28 +429,28 @@ class R {
|
|
429
429
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
430
430
|
}
|
431
431
|
_(t) {
|
432
|
-
this._$AH !== l &&
|
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$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el =
|
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 {
|
440
|
-
const o = new
|
440
|
+
const o = new Wt(r, this), c = o.u(this.options);
|
441
441
|
o.p(e), this.$(c), this._$AH = o;
|
442
442
|
}
|
443
443
|
}
|
444
444
|
_$AC(t) {
|
445
|
-
let e =
|
446
|
-
return e === void 0 &&
|
445
|
+
let e = ft.get(t.strings);
|
446
|
+
return e === void 0 && ft.set(t.strings, e = new k(t)), e;
|
447
447
|
}
|
448
448
|
T(t) {
|
449
|
-
|
449
|
+
vt(this._$AH) || (this._$AH = [], this._$AR());
|
450
450
|
const e = this._$AH;
|
451
451
|
let s, r = 0;
|
452
452
|
for (const n of t)
|
453
|
-
r === e.length ? e.push(s = new
|
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
454
|
r < e.length && (this._$AR(s && s._$AB.nextSibling, r), e.length = r);
|
455
455
|
}
|
456
456
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -465,7 +465,7 @@ class R {
|
|
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
|
}
|
@@ -479,12 +479,12 @@ class V {
|
|
479
479
|
const n = this.strings;
|
480
480
|
let o = !1;
|
481
481
|
if (n === void 0)
|
482
|
-
t = C(this, t, e, 0), o = !
|
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 = C(this, c[s + a], e, a), d === w && (d = this._$AH[a]), o || (o = !
|
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 V {
|
|
492
492
|
t === l ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
493
|
}
|
494
494
|
}
|
495
|
-
class
|
495
|
+
class Vt extends q {
|
496
496
|
constructor() {
|
497
497
|
super(...arguments), this.type = 3;
|
498
498
|
}
|
@@ -500,7 +500,7 @@ class Gt extends V {
|
|
500
500
|
this.element[this.name] = t === l ? void 0 : t;
|
501
501
|
}
|
502
502
|
}
|
503
|
-
class
|
503
|
+
class qt extends q {
|
504
504
|
constructor() {
|
505
505
|
super(...arguments), this.type = 4;
|
506
506
|
}
|
@@ -508,7 +508,7 @@ class Wt extends V {
|
|
508
508
|
this.element.toggleAttribute(this.name, !!t && t !== l);
|
509
509
|
}
|
510
510
|
}
|
511
|
-
class
|
511
|
+
class Yt extends q {
|
512
512
|
constructor(t, e, s, r, n) {
|
513
513
|
super(t, e, s, r, n), this.type = 5;
|
514
514
|
}
|
@@ -523,7 +523,7 @@ class Vt extends V {
|
|
523
523
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
524
524
|
}
|
525
525
|
}
|
526
|
-
class
|
526
|
+
class Ft {
|
527
527
|
constructor(t, e, s) {
|
528
528
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
529
529
|
}
|
@@ -534,14 +534,14 @@ class qt {
|
|
534
534
|
C(this, t);
|
535
535
|
}
|
536
536
|
}
|
537
|
-
const
|
538
|
-
|
539
|
-
const
|
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
540
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
541
541
|
let r = s._$litPart$;
|
542
542
|
if (r === void 0) {
|
543
543
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
544
|
-
s._$litPart$ = r = new
|
544
|
+
s._$litPart$ = r = new D(t.insertBefore(M(), n), n, void 0, e ?? {});
|
545
545
|
}
|
546
546
|
return r._$AI(i), r;
|
547
547
|
};
|
@@ -561,7 +561,7 @@ let f = class extends E {
|
|
561
561
|
}
|
562
562
|
update(t) {
|
563
563
|
const e = this.render();
|
564
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
564
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Jt(e, this.renderRoot, this.renderOptions);
|
565
565
|
}
|
566
566
|
connectedCallback() {
|
567
567
|
var t;
|
@@ -575,17 +575,17 @@ let f = class extends E {
|
|
575
575
|
return w;
|
576
576
|
}
|
577
577
|
};
|
578
|
-
var
|
579
|
-
f._$litElement$ = !0, f.finalized = !0, (
|
580
|
-
const
|
581
|
-
|
578
|
+
var $t;
|
579
|
+
f._$litElement$ = !0, f.finalized = !0, ($t = globalThis.litElementHydrateSupport) == null || $t.call(globalThis, { LitElement: f });
|
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*
|
588
|
+
function* wt(i, t) {
|
589
589
|
if (i !== void 0) {
|
590
590
|
let e = 0;
|
591
591
|
for (const s of i)
|
@@ -597,7 +597,17 @@ function* At(i, 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
|
+
e !== void 0 ? e.addInitializer(() => {
|
602
|
+
customElements.define(i, t);
|
603
|
+
}) : customElements.define(i, t);
|
604
|
+
};
|
605
|
+
/**
|
606
|
+
* @license
|
607
|
+
* Copyright 2017 Google LLC
|
608
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
609
|
+
*/
|
610
|
+
const Kt = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: it }, Zt = (i = Kt, t, e) => {
|
601
611
|
const { kind: s, metadata: r } = e;
|
602
612
|
let n = globalThis.litPropertyMetadata.get(r);
|
603
613
|
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, i), s === "accessor") {
|
@@ -619,7 +629,7 @@ const Ft = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged:
|
|
619
629
|
throw Error("Unsupported decorator location: " + s);
|
620
630
|
};
|
621
631
|
function u(i) {
|
622
|
-
return (t, e) => typeof e == "object" ?
|
632
|
+
return (t, e) => typeof e == "object" ? Zt(i, t, e) : ((s, r, n) => {
|
623
633
|
const o = r.hasOwnProperty(n);
|
624
634
|
return r.constructor.createProperty(n, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
625
635
|
})(i, t, e);
|
@@ -637,8 +647,8 @@ function L(i) {
|
|
637
647
|
* Copyright 2017 Google LLC
|
638
648
|
* SPDX-License-Identifier: BSD-3-Clause
|
639
649
|
*/
|
640
|
-
const
|
641
|
-
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 {
|
642
652
|
constructor(t) {
|
643
653
|
}
|
644
654
|
get _$AU() {
|
@@ -659,10 +669,10 @@ class xt {
|
|
659
669
|
* Copyright 2018 Google LLC
|
660
670
|
* SPDX-License-Identifier: BSD-3-Clause
|
661
671
|
*/
|
662
|
-
const
|
672
|
+
const Qt = Et(class extends Ct {
|
663
673
|
constructor(i) {
|
664
674
|
var t;
|
665
|
-
if (super(i), i.type !==
|
675
|
+
if (super(i), i.type !== xt.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2)
|
666
676
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
667
677
|
}
|
668
678
|
render(i) {
|
@@ -687,7 +697,7 @@ const Kt = wt(class extends xt {
|
|
687
697
|
}
|
688
698
|
}), z = (i, t, e) => {
|
689
699
|
i && e.style.setProperty(t, i);
|
690
|
-
},
|
700
|
+
}, St = (i, t) => {
|
691
701
|
var e, s, r, n;
|
692
702
|
z((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), z(
|
693
703
|
(s = i.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
@@ -703,10 +713,10 @@ const Kt = wt(class extends xt {
|
|
703
713
|
t
|
704
714
|
);
|
705
715
|
};
|
706
|
-
var
|
707
|
-
for (var r = s > 1 ? void 0 : s ?
|
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--)
|
708
718
|
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
709
|
-
return s && r &&
|
719
|
+
return s && r && Xt(t, e, r), r;
|
710
720
|
};
|
711
721
|
class x extends f {
|
712
722
|
constructor() {
|
@@ -727,7 +737,7 @@ class x extends f {
|
|
727
737
|
}
|
728
738
|
_applyBranding() {
|
729
739
|
var t;
|
730
|
-
(t = this.application) != null && t.settings &&
|
740
|
+
(t = this.application) != null && t.settings && St(this.application.settings.branding, this);
|
731
741
|
}
|
732
742
|
async _renderSymbol() {
|
733
743
|
var n;
|
@@ -740,7 +750,7 @@ class x extends f {
|
|
740
750
|
switch (s) {
|
741
751
|
case "Telia": {
|
742
752
|
const o = await e(r);
|
743
|
-
return o ?
|
753
|
+
return o ? R`<telia-icon
|
744
754
|
class="trigger-icon"
|
745
755
|
svg=${o.svg}
|
746
756
|
size="lg"
|
@@ -751,8 +761,8 @@ class x extends f {
|
|
751
761
|
}
|
752
762
|
}
|
753
763
|
render() {
|
754
|
-
return
|
755
|
-
class=${
|
764
|
+
return R`<button
|
765
|
+
class=${Qt({
|
756
766
|
trigger: !0,
|
757
767
|
active: this.active,
|
758
768
|
rendered: this.loaded
|
@@ -791,7 +801,7 @@ class x extends f {
|
|
791
801
|
}
|
792
802
|
}
|
793
803
|
x.styles = [
|
794
|
-
|
804
|
+
P`
|
795
805
|
:host {
|
796
806
|
--voca-rem-multiplier: 0.625;
|
797
807
|
display: block;
|
@@ -861,24 +871,24 @@ x.styles = [
|
|
861
871
|
}
|
862
872
|
`
|
863
873
|
];
|
864
|
-
|
874
|
+
Y([
|
865
875
|
u({ attribute: !1 })
|
866
876
|
], x.prototype, "application", 2);
|
867
|
-
|
877
|
+
Y([
|
868
878
|
L()
|
869
879
|
], x.prototype, "active", 2);
|
870
|
-
|
880
|
+
Y([
|
871
881
|
L()
|
872
882
|
], x.prototype, "loaded", 2);
|
873
|
-
|
883
|
+
Y([
|
874
884
|
L()
|
875
885
|
], x.prototype, "icon", 2);
|
876
|
-
var
|
877
|
-
for (var r = s > 1 ? void 0 : s ?
|
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--)
|
878
888
|
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
879
|
-
return s && r &&
|
889
|
+
return s && r && ee(t, e, r), r;
|
880
890
|
};
|
881
|
-
const
|
891
|
+
const Pt = (i) => {
|
882
892
|
class t extends i {
|
883
893
|
constructor() {
|
884
894
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -904,7 +914,7 @@ const Ct = (i) => {
|
|
904
914
|
}
|
905
915
|
return t.styles = [
|
906
916
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
907
|
-
|
917
|
+
P`
|
908
918
|
:host {
|
909
919
|
font-family: var(--font-family);
|
910
920
|
grid-column: span var(--width);
|
@@ -933,36 +943,44 @@ const Ct = (i) => {
|
|
933
943
|
u({ attribute: !1 })
|
934
944
|
], t.prototype, "parent", 2), t;
|
935
945
|
};
|
936
|
-
|
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;
|
950
|
+
};
|
951
|
+
let tt = class extends Pt(f) {
|
937
952
|
render() {
|
938
|
-
return
|
953
|
+
return R`Non resolved component`;
|
939
954
|
}
|
940
|
-
}
|
941
|
-
|
942
|
-
|
955
|
+
};
|
956
|
+
tt.styles = [
|
957
|
+
P`
|
943
958
|
:host {
|
944
959
|
display: block;
|
945
960
|
}
|
946
961
|
`
|
947
962
|
];
|
963
|
+
tt = ne([
|
964
|
+
rt("ace-unresolved-component")
|
965
|
+
], tt);
|
948
966
|
/**
|
949
967
|
* @license
|
950
968
|
* Copyright 2020 Google LLC
|
951
969
|
* SPDX-License-Identifier: BSD-3-Clause
|
952
970
|
*/
|
953
|
-
const
|
971
|
+
const oe = (i) => i.strings === void 0;
|
954
972
|
/**
|
955
973
|
* @license
|
956
974
|
* Copyright 2017 Google LLC
|
957
975
|
* SPDX-License-Identifier: BSD-3-Clause
|
958
976
|
*/
|
959
|
-
const
|
977
|
+
const N = (i, t) => {
|
960
978
|
var s;
|
961
979
|
const e = i._$AN;
|
962
980
|
if (e === void 0)
|
963
981
|
return !1;
|
964
982
|
for (const r of e)
|
965
|
-
(s = r._$AO) == null || s.call(r, t, !1),
|
983
|
+
(s = r._$AO) == null || s.call(r, t, !1), N(r, t);
|
966
984
|
return !0;
|
967
985
|
}, W = (i) => {
|
968
986
|
let t, e;
|
@@ -971,47 +989,47 @@ const U = (i, t) => {
|
|
971
989
|
break;
|
972
990
|
e = t._$AN, e.delete(i), i = t;
|
973
991
|
} while ((e == null ? void 0 : e.size) === 0);
|
974
|
-
},
|
992
|
+
}, Ot = (i) => {
|
975
993
|
for (let t; t = i._$AM; i = t) {
|
976
994
|
let e = t._$AN;
|
977
995
|
if (e === void 0)
|
978
996
|
t._$AN = e = /* @__PURE__ */ new Set();
|
979
997
|
else if (e.has(i))
|
980
998
|
break;
|
981
|
-
e.add(i),
|
999
|
+
e.add(i), he(t);
|
982
1000
|
}
|
983
1001
|
};
|
984
|
-
function
|
985
|
-
this._$AN !== void 0 ? (W(this), this._$AM = i,
|
1002
|
+
function ae(i) {
|
1003
|
+
this._$AN !== void 0 ? (W(this), this._$AM = i, Ot(this)) : this._$AM = i;
|
986
1004
|
}
|
987
|
-
function
|
1005
|
+
function ce(i, t = !1, e = 0) {
|
988
1006
|
const s = this._$AH, r = this._$AN;
|
989
1007
|
if (r !== void 0 && r.size !== 0)
|
990
1008
|
if (t)
|
991
1009
|
if (Array.isArray(s))
|
992
1010
|
for (let n = e; n < s.length; n++)
|
993
|
-
|
1011
|
+
N(s[n], !1), W(s[n]);
|
994
1012
|
else
|
995
|
-
s != null && (
|
1013
|
+
s != null && (N(s, !1), W(s));
|
996
1014
|
else
|
997
|
-
|
1015
|
+
N(this, i);
|
998
1016
|
}
|
999
|
-
const
|
1000
|
-
i.type ==
|
1017
|
+
const he = (i) => {
|
1018
|
+
i.type == xt.CHILD && (i._$AP ?? (i._$AP = ce), i._$AQ ?? (i._$AQ = ae));
|
1001
1019
|
};
|
1002
|
-
class
|
1020
|
+
class le extends Ct {
|
1003
1021
|
constructor() {
|
1004
1022
|
super(...arguments), this._$AN = void 0;
|
1005
1023
|
}
|
1006
1024
|
_$AT(t, e, s) {
|
1007
|
-
super._$AT(t, e, s),
|
1025
|
+
super._$AT(t, e, s), Ot(this), this.isConnected = t._$AU;
|
1008
1026
|
}
|
1009
1027
|
_$AO(t, e = !0) {
|
1010
1028
|
var s, r;
|
1011
|
-
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (r = this.disconnected) == null || r.call(this)), e && (
|
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));
|
1012
1030
|
}
|
1013
1031
|
setValue(t) {
|
1014
|
-
if (
|
1032
|
+
if (oe(this._$Ct))
|
1015
1033
|
this._$Ct._$AI(t, this);
|
1016
1034
|
else {
|
1017
1035
|
const e = [...this._$Ct._$AH];
|
@@ -1028,10 +1046,10 @@ class ne extends xt {
|
|
1028
1046
|
* Copyright 2020 Google LLC
|
1029
1047
|
* SPDX-License-Identifier: BSD-3-Clause
|
1030
1048
|
*/
|
1031
|
-
const
|
1032
|
-
class
|
1049
|
+
const de = () => new pe();
|
1050
|
+
class pe {
|
1033
1051
|
}
|
1034
|
-
const
|
1052
|
+
const X = /* @__PURE__ */ new WeakMap(), ue = Et(class extends le {
|
1035
1053
|
render(i) {
|
1036
1054
|
return l;
|
1037
1055
|
}
|
@@ -1043,14 +1061,14 @@ const Z = /* @__PURE__ */ new WeakMap(), ce = wt(class extends ne {
|
|
1043
1061
|
ot(i) {
|
1044
1062
|
if (typeof this.G == "function") {
|
1045
1063
|
const t = this.ct ?? globalThis;
|
1046
|
-
let e =
|
1047
|
-
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);
|
1048
1066
|
} else
|
1049
1067
|
this.G.value = i;
|
1050
1068
|
}
|
1051
1069
|
get rt() {
|
1052
1070
|
var i, t;
|
1053
|
-
return typeof this.G == "function" ? (i =
|
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;
|
1054
1072
|
}
|
1055
1073
|
disconnected() {
|
1056
1074
|
this.rt === this.lt && this.ot(void 0);
|
@@ -1059,34 +1077,34 @@ const Z = /* @__PURE__ */ new WeakMap(), ce = wt(class extends ne {
|
|
1059
1077
|
this.ot(this.lt);
|
1060
1078
|
}
|
1061
1079
|
});
|
1062
|
-
var
|
1063
|
-
for (var r = s > 1 ? void 0 : s ?
|
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--)
|
1064
1082
|
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
1065
|
-
return s && r &&
|
1083
|
+
return s && r && ge(t, e, r), r;
|
1066
1084
|
};
|
1067
|
-
class
|
1085
|
+
let V = class extends f {
|
1068
1086
|
constructor() {
|
1069
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1087
|
+
super(...arguments), this.nodes = [], this.wrapperRef = de();
|
1070
1088
|
}
|
1071
|
-
addChild(
|
1072
|
-
|
1089
|
+
addChild(i) {
|
1090
|
+
i.parent = this, this.nodes.push(i);
|
1073
1091
|
}
|
1074
1092
|
applyBranding() {
|
1075
1093
|
if (this.wrapperRef.value) {
|
1076
|
-
const
|
1077
|
-
|
1094
|
+
const i = this.application.settings;
|
1095
|
+
i != null && i.branding && St(i.branding, this.wrapperRef.value);
|
1078
1096
|
}
|
1079
1097
|
}
|
1080
|
-
firstUpdated(
|
1098
|
+
firstUpdated(i) {
|
1081
1099
|
this.applyBranding();
|
1082
1100
|
}
|
1083
1101
|
render() {
|
1084
|
-
return this.application.renderStrategy ===
|
1085
|
-
${
|
1102
|
+
return this.application.renderStrategy === nt.Trigger && this.renderRoot.host.classList.add("floating"), R`<div class="widget-container" ${ue(this.wrapperRef)}>
|
1103
|
+
${wt(this.nodes, (i) => i)}
|
1086
1104
|
</div>`;
|
1087
1105
|
}
|
1088
|
-
}
|
1089
|
-
|
1106
|
+
};
|
1107
|
+
V.styles = P`
|
1090
1108
|
:host {
|
1091
1109
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1092
1110
|
--spacing-xs: 0.2rem;
|
@@ -1165,15 +1183,18 @@ st.styles = S`
|
|
1165
1183
|
}
|
1166
1184
|
}
|
1167
1185
|
`;
|
1168
|
-
|
1186
|
+
Tt([
|
1169
1187
|
u({ attribute: !1 })
|
1170
|
-
],
|
1171
|
-
|
1172
|
-
|
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--)
|
1173
1194
|
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
1174
|
-
return s && r &&
|
1195
|
+
return s && r && $e(t, e, r), r;
|
1175
1196
|
};
|
1176
|
-
class
|
1197
|
+
let S = class extends f {
|
1177
1198
|
constructor() {
|
1178
1199
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
1179
1200
|
}
|
@@ -1183,73 +1204,73 @@ class D extends f {
|
|
1183
1204
|
disconnectedCallback() {
|
1184
1205
|
super.disconnectedCallback(), this.removeEventListener("environment-created", this.onEnvironmentCreated);
|
1185
1206
|
}
|
1186
|
-
async onEnvironmentCreated(
|
1187
|
-
this.widget =
|
1207
|
+
async onEnvironmentCreated(i) {
|
1208
|
+
this.widget = i.detail.widget, await this.activate(), this.requestUpdate();
|
1188
1209
|
}
|
1189
1210
|
async activate() {
|
1190
1211
|
this.widget && (await this.widget.activate(), this.status = "activated");
|
1191
1212
|
}
|
1192
1213
|
async getGlobalEnvironment() {
|
1193
|
-
const
|
1194
|
-
|
1195
|
-
(
|
1214
|
+
const i = globalThis.widgets;
|
1215
|
+
i && (this.widget = i.applications.find(
|
1216
|
+
(t) => t.name === this.name
|
1196
1217
|
), await this.activate());
|
1197
1218
|
}
|
1198
1219
|
render() {
|
1199
1220
|
if (!this.widget || this.status !== "activated")
|
1200
1221
|
return l;
|
1201
|
-
if (this.widget.renderStrategy ===
|
1202
|
-
const
|
1203
|
-
return
|
1222
|
+
if (this.widget.renderStrategy === nt.Trigger) {
|
1223
|
+
const i = new x();
|
1224
|
+
return i.application = this.widget, i;
|
1204
1225
|
}
|
1205
1226
|
return this.widget.render();
|
1206
1227
|
}
|
1207
|
-
}
|
1208
|
-
|
1209
|
-
|
1228
|
+
};
|
1229
|
+
S.styles = [
|
1230
|
+
P`
|
1210
1231
|
:host {
|
1211
1232
|
display: block;
|
1212
1233
|
}
|
1213
1234
|
`
|
1214
1235
|
];
|
1215
|
-
|
1236
|
+
F([
|
1216
1237
|
u({ attribute: !0 })
|
1217
|
-
],
|
1218
|
-
|
1238
|
+
], S.prototype, "name", 2);
|
1239
|
+
F([
|
1219
1240
|
L()
|
1220
|
-
],
|
1221
|
-
|
1241
|
+
], S.prototype, "widget", 2);
|
1242
|
+
F([
|
1222
1243
|
L()
|
1223
|
-
],
|
1244
|
+
], S.prototype, "status", 2);
|
1245
|
+
S = F([
|
1246
|
+
rt("ace-widget")
|
1247
|
+
], S);
|
1224
1248
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", x);
|
1225
|
-
|
1226
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", st);
|
1227
|
-
customElements.get("ace-widget") || customElements.define("ace-widget", D);
|
1228
|
-
const ge = (i) => {
|
1249
|
+
const me = (i) => {
|
1229
1250
|
const t = {};
|
1230
1251
|
return Object.keys(i).forEach((e) => {
|
1231
1252
|
e.indexOf("css-") > -1 && (t[e] = i[e]);
|
1232
1253
|
}), t;
|
1233
|
-
},
|
1234
|
-
const e =
|
1254
|
+
}, ye = (i, t) => {
|
1255
|
+
const e = me(t);
|
1235
1256
|
Object.entries(e).forEach(([s, r]) => {
|
1236
1257
|
i.style.setProperty(s.replace("css-", ""), r);
|
1237
1258
|
});
|
1238
1259
|
};
|
1239
|
-
class
|
1260
|
+
class ve extends Pt(f) {
|
1240
1261
|
constructor() {
|
1241
1262
|
super(...arguments), this.nodes = [];
|
1242
1263
|
}
|
1243
1264
|
render() {
|
1244
1265
|
var t;
|
1245
|
-
return
|
1266
|
+
return ye(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
1246
1267
|
"--columns",
|
1247
1268
|
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
1248
|
-
),
|
1269
|
+
), R`${wt(this.nodes, (e) => e)}`;
|
1249
1270
|
}
|
1250
1271
|
}
|
1251
|
-
|
1252
|
-
|
1272
|
+
ve.styles = [
|
1273
|
+
P`
|
1253
1274
|
:host {
|
1254
1275
|
height: 100%;
|
1255
1276
|
display: grid;
|
@@ -1261,6 +1282,6 @@ $e.styles = [
|
|
1261
1282
|
`
|
1262
1283
|
];
|
1263
1284
|
export {
|
1264
|
-
|
1265
|
-
|
1285
|
+
ve as Area,
|
1286
|
+
ve as default
|
1266
1287
|
};
|
@@ -2,29 +2,33 @@
|
|
2
2
|
* @license
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
-
*/const B=globalThis,
|
5
|
+
*/const B=globalThis,et=B.ShadowRoot&&(B.ShadyCSS===void 0||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,st=Symbol(),at=new WeakMap;let mt=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==st)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(et&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=at.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&at.set(e,t))}return t}toString(){return this.cssText}};const Mt=i=>new mt(typeof i=="string"?i:i+"",void 0,st),P=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((s,r,n)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[n+1],i[0]);return new mt(e,i,st)},Nt=(i,t)=>{if(et)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=B.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,i.appendChild(s)}},ct=et?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Mt(e)})(i):i;/**
|
6
6
|
* @license
|
7
7
|
* Copyright 2017 Google LLC
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
9
|
-
*/const{is:
|
9
|
+
*/const{is:Ht,defineProperty:Rt,getOwnPropertyDescriptor:kt,getOwnPropertyNames:Dt,getOwnPropertySymbols:Lt,getPrototypeOf:jt}=Object,m=globalThis,ht=m.trustedTypes,zt=ht?ht.emptyScript:"",J=m.reactiveElementPolyfillSupport,T=(i,t)=>i,I={toAttribute(i,t){switch(t){case Boolean:i=i?zt:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},it=(i,t)=>!Ht(i,t),lt={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:it};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),m.litPropertyMetadata??(m.litPropertyMetadata=new WeakMap);class E 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.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&Rt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:n}=kt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const c=r==null?void 0:r.call(this);n.call(this,o),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??lt}static _$Ei(){if(this.hasOwnProperty(T("elementProperties")))return;const t=jt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(T("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(T("properties"))){const e=this.properties,s=[...Dt(e),...Lt(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)e.unshift(ct(r))}else t!==void 0&&e.push(ct(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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._$Eg=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._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$ES)==null||e.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Nt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e){var n;const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:I).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var n;const s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){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;this._$Em=r,this[r]=c.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s,r=!1,n){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??it)(r?n:this[t],e))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,o]of r)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$ES)==null||s.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$ET()}catch(r){throw t=!1,this._$ET(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EO(e,this[e]))),this._$ET()}updated(t){}firstUpdated(t){}}E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[T("elementProperties")]=new Map,E[T("finalized")]=new Map,J==null||J({ReactiveElement:E}),(m.reactiveElementVersions??(m.reactiveElementVersions=[])).push("2.0.1");/**
|
10
10
|
* @license
|
11
11
|
* Copyright 2017 Google LLC
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
13
|
-
*/const
|
14
|
-
\f\r]`,
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
13
|
+
*/const U=globalThis,G=U.trustedTypes,dt=G?G.createPolicy("lit-html",{createHTML:i=>i}):void 0,yt="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,vt="?"+_,Bt=`<${vt}>`,b=document,N=()=>b.createComment(""),H=i=>i===null||typeof i!="object"&&typeof i!="function",At=Array.isArray,It=i=>At(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",K=`[
|
14
|
+
\f\r]`,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pt=/-->/g,ut=/>/g,y=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),gt=/'/g,ft=/"/g,bt=/^(?:script|style|textarea|title)$/i,Gt=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),R=Gt(1),w=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),$t=new WeakMap,A=b.createTreeWalker(b,129);function wt(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return dt!==void 0?dt.createHTML(t):t}const Wt=(i,t)=>{const e=i.length-1,s=[];let r,n=t===2?"<svg>":"",o=O;for(let c=0;c<e;c++){const a=i[c];let d,p,h=-1,g=0;for(;g<a.length&&(o.lastIndex=g,p=o.exec(a),p!==null);)g=o.lastIndex,o===O?p[1]==="!--"?o=pt:p[1]!==void 0?o=ut:p[2]!==void 0?(bt.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]==='"'?ft:gt):o===ft||o===gt?o=y:o===pt||o===ut?o=O:(o=y,r=void 0);const $=o===y&&i[c+1].startsWith("/>")?" ":"";n+=o===O?a+Bt:h>=0?(s.push(d),a.slice(0,h)+yt+a.slice(h)+_+$):a+_+(h===-2?c:$)}return[wt(i,n+(i[e]||"<?>")+(t===2?"</svg>":"")),s]};class k{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let n=0,o=0;const c=t.length-1,a=this.parts,[d,p]=Wt(t,e);if(this.el=k.createElement(d,s),A.currentNode=this.el.content,e===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=A.nextNode())!==null&&a.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(yt)){const g=p[o++],$=r.getAttribute(h).split(_),j=/([.?@])?(.*)/.exec(g);a.push({type:1,index:n,name:j[2],strings:$,ctor:j[1]==="."?qt:j[1]==="?"?Yt:j[1]==="@"?Ft:q}),r.removeAttribute(h)}else h.startsWith(_)&&(a.push({type:6,index:n}),r.removeAttribute(h));if(bt.test(r.tagName)){const h=r.textContent.split(_),g=h.length-1;if(g>0){r.textContent=G?G.emptyScript:"";for(let $=0;$<g;$++)r.append(h[$],N()),A.nextNode(),a.push({type:2,index:++n});r.append(h[g],N())}}}else if(r.nodeType===8)if(r.data===vt)a.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(_,h+1))!==-1;)a.push({type:7,index:n}),h+=_.length-1}n++}}static createElement(t,e){const s=b.createElement("template");return s.innerHTML=t,s}}function C(i,t,e=i,s){var o,c;if(t===w)return t;let r=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const n=H(t)?void 0:t._$litDirective$;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}class Vt{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:s}=this._$AD,r=((t==null?void 0:t.creationScope)??b).importNode(e,!0);A.currentNode=r;let n=A.nextNode(),o=0,c=0,a=s[0];for(;a!==void 0;){if(o===a.index){let d;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 Jt(n,this,t)),this._$AV.push(d),a=s[++c]}o!==(a==null?void 0:a.index)&&(n=A.nextNode(),o++)}return A.currentNode=b,r}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class D{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){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}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=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):It(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==l&&H(this._$AH)?this._$AA.nextSibling.data=t:this.$(b.createTextNode(t)),this._$AH=t}g(t){var n;const{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=k.createElement(wt(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{const o=new Vt(r,this),c=o.u(this.options);o.p(e),this.$(c),this._$AH=o}}_$AC(t){let e=$t.get(t.strings);return e===void 0&&$t.set(t.strings,e=new k(t)),e}T(t){At(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const n of t)r===e.length?e.push(s=new D(this.k(N()),this.k(N()),this,this.options)):s=e[r],s._$AI(n),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.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 q{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,n){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}_$AI(t,e=this,s,r){const n=this.strings;let o=!1;if(n===void 0)t=C(this,t,e,0),o=!H(t)||t!==this._$AH&&t!==w,o&&(this._$AH=t);else{const c=t;let a,d;for(t=n[0],a=0;a<n.length-1;a++)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}o&&!r&&this.O(t)}O(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class qt extends q{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===l?void 0:t}}class Yt extends q{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}}class Ft extends q{constructor(t,e,s,r,n){super(t,e,s,r,n),this.type=5}_$AI(t,e=this){if((t=C(this,t,e,0)??l)===w)return;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);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Jt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){C(this,t)}}const Z=U.litHtmlPolyfillSupport;Z==null||Z(k,D),(U.litHtmlVersions??(U.litHtmlVersions=[])).push("3.0.2");const Kt=(i,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let r=s._$litPart$;if(r===void 0){const n=(e==null?void 0:e.renderBefore)??null;s._$litPart$=r=new D(t.insertBefore(N(),n),n,void 0,e??{})}return r._$AI(i),r};/**
|
16
16
|
* @license
|
17
17
|
* Copyright 2017 Google LLC
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
19
|
-
*/let f=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=
|
19
|
+
*/let f=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Kt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return w}};var _t;f._$litElement$=!0,f.finalized=!0,(_t=globalThis.litElementHydrateSupport)==null||_t.call(globalThis,{LitElement:f});const Q=globalThis.litElementPolyfillSupport;Q==null||Q({LitElement:f});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
|
20
20
|
* @license
|
21
21
|
* Copyright 2021 Google LLC
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
23
|
-
*/function*
|
23
|
+
*/function*xt(i,t){if(i!==void 0){let e=0;for(const s of i)yield t(s,e++)}}/**
|
24
24
|
* @license
|
25
25
|
* Copyright 2017 Google LLC
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
27
|
-
*/const
|
27
|
+
*/const rt=i=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(i,t)}):customElements.define(i,t)};/**
|
28
|
+
* @license
|
29
|
+
* Copyright 2017 Google LLC
|
30
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
31
|
+
*/const Zt={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:it},Qt=(i=Zt,t,e)=>{const{kind:s,metadata:r}=e;let n=globalThis.litPropertyMetadata.get(r);if(n===void 0&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(e.name,i),s==="accessor"){const{name:o}=e;return{set(c){const a=t.get.call(this);t.set.call(this,c),this.requestUpdate(o,a,i)},init(c){return c!==void 0&&this.C(o,void 0,i),c}}}if(s==="setter"){const{name:o}=e;return function(c){const a=this[o];t.call(this,c),this.requestUpdate(o,a,i)}}throw Error("Unsupported decorator location: "+s)};function u(i){return(t,e)=>typeof e=="object"?Qt(i,t,e):((s,r,n)=>{const o=r.hasOwnProperty(n);return r.constructor.createProperty(n,o?{...s,wrapped:!0}:s),o?Object.getOwnPropertyDescriptor(r,n):void 0})(i,t,e)}/**
|
28
32
|
* @license
|
29
33
|
* Copyright 2017 Google LLC
|
30
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
@@ -32,16 +36,16 @@
|
|
32
36
|
* @license
|
33
37
|
* Copyright 2017 Google LLC
|
34
38
|
* SPDX-License-Identifier: BSD-3-Clause
|
35
|
-
*/const
|
39
|
+
*/const Et={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ct=i=>(...t)=>({_$litDirective$:i,values:t});class St{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
|
36
40
|
* @license
|
37
41
|
* Copyright 2018 Google LLC
|
38
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
39
|
-
*/const
|
43
|
+
*/const Xt=Ct(class extends St{constructor(i){var t;if(super(i),i.type!==Et.ATTRIBUTE||i.name!=="class"||((t=i.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var s,r;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.st=new Set(i.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((s=this.st)!=null&&s.has(n))&&this.it.add(n);return this.render(t)}const e=i.element.classList;for(const n of this.it)n in t||(e.remove(n),this.it.delete(n));for(const n in t){const o=!!t[n];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)))}return w}}),z=(i,t,e)=>{i&&e.style.setProperty(t,i)},Pt=(i,t)=>{var e,s,r,n;z((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),z((s=i.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),z((r=i.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),z((n=i.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t)};var te=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,Y=(i,t,e,s)=>{for(var r=s>1?void 0:s?ee(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&te(t,e,r),r};class x extends f{constructor(){super(...arguments),this.active=!1,this.loaded=!1}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}_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.application.removeFromDOM()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&Pt(this.application.settings.branding,this)}async _renderSymbol(){var n;const t=(n=this.application)==null?void 0:n.triggerIcon;if(!t)return l;const e=async o=>await Promise.resolve().then(()=>require("./index-6dd00f59.js")).then(a=>a[o]),{type:s,content:r}=t;switch(s){case"Telia":{const o=await e(r);return o?R`<telia-icon
|
40
44
|
class="trigger-icon"
|
41
45
|
svg=${o.svg}
|
42
46
|
size="lg"
|
43
|
-
></telia-icon>`:l}default:return l}}render(){return
|
44
|
-
class=${
|
47
|
+
></telia-icon>`:l}default:return l}}render(){return R`<button
|
48
|
+
class=${Xt({trigger:!0,active:this.active,rendered:this.loaded})}
|
45
49
|
@click=${this._toggleActive}
|
46
50
|
>
|
47
51
|
${this.icon}
|
@@ -72,7 +76,7 @@
|
|
72
76
|
/>
|
73
77
|
</svg>
|
74
78
|
</span>
|
75
|
-
</button>`}}x.styles=[
|
79
|
+
</button>`}}x.styles=[P`
|
76
80
|
:host {
|
77
81
|
--voca-rem-multiplier: 0.625;
|
78
82
|
display: block;
|
@@ -140,7 +144,7 @@
|
|
140
144
|
align-items: center;
|
141
145
|
fill: var(--trigger-text-color, var(--text-on-primary-background));
|
142
146
|
}
|
143
|
-
`];
|
147
|
+
`];Y([u({attribute:!1})],x.prototype,"application",2);Y([L()],x.prototype,"active",2);Y([L()],x.prototype,"loaded",2);Y([L()],x.prototype,"icon",2);var se=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,v=(i,t,e,s)=>{for(var r=s>1?void 0:s?ie(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&se(t,e,r),r};const Ot=i=>{class t extends i{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(s){this.properties=s}writeLayout(s){this.layout=s}writeContext(s){this.context=s}addChild(s){s.parent=this,this.nodes.push(s)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`)}}return t.styles=[P`
|
144
148
|
:host {
|
145
149
|
font-family: var(--font-family);
|
146
150
|
grid-column: span var(--width);
|
@@ -152,25 +156,25 @@
|
|
152
156
|
* {
|
153
157
|
box-sizing: border-box;
|
154
158
|
}
|
155
|
-
`],v([u()],t.prototype,"properties",2),v([u()],t.prototype,"context",2),v([u()],t.prototype,"layout",2),v([u()],t.prototype,"name",2),v([u()],t.prototype,"type",2),v([u({attribute:!1})],t.prototype,"application",2),v([u({attribute:!1})],t.prototype,"parent",2),t};class
|
159
|
+
`],v([u()],t.prototype,"properties",2),v([u()],t.prototype,"context",2),v([u()],t.prototype,"layout",2),v([u()],t.prototype,"name",2),v([u()],t.prototype,"type",2),v([u({attribute:!1})],t.prototype,"application",2),v([u({attribute:!1})],t.prototype,"parent",2),t};var re=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,oe=(i,t,e,s)=>{for(var r=s>1?void 0:s?ne(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&re(t,e,r),r};let tt=class extends Ot(f){render(){return R`Non resolved component`}};tt.styles=[P`
|
156
160
|
:host {
|
157
161
|
display: block;
|
158
162
|
}
|
159
|
-
`];/**
|
163
|
+
`];tt=oe([rt("ace-unresolved-component")],tt);/**
|
160
164
|
* @license
|
161
165
|
* Copyright 2020 Google LLC
|
162
166
|
* SPDX-License-Identifier: BSD-3-Clause
|
163
|
-
*/const
|
167
|
+
*/const ae=i=>i.strings===void 0;/**
|
164
168
|
* @license
|
165
169
|
* Copyright 2017 Google LLC
|
166
170
|
* SPDX-License-Identifier: BSD-3-Clause
|
167
|
-
*/const
|
171
|
+
*/const M=(i,t)=>{var s;const e=i._$AN;if(e===void 0)return!1;for(const r of e)(s=r._$AO)==null||s.call(r,t,!1),M(r,t);return!0},W=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},Tt=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),le(t)}};function ce(i){this._$AN!==void 0?(W(this),this._$AM=i,Tt(this)):this._$AM=i}function he(i,t=!1,e=0){const s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let n=e;n<s.length;n++)M(s[n],!1),W(s[n]);else s!=null&&(M(s,!1),W(s));else M(this,i)}const le=i=>{i.type==Et.CHILD&&(i._$AP??(i._$AP=he),i._$AQ??(i._$AQ=ce))};class de extends St{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Tt(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,r;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(r=this.disconnected)==null||r.call(this)),e&&(M(this,t),W(this))}setValue(t){if(ae(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}/**
|
168
172
|
* @license
|
169
173
|
* Copyright 2020 Google LLC
|
170
174
|
* SPDX-License-Identifier: BSD-3-Clause
|
171
|
-
*/const
|
172
|
-
${
|
173
|
-
</div>`}}
|
175
|
+
*/const pe=()=>new ue;class ue{}const X=new WeakMap,ge=Ct(class extends de{render(i){return l}update(i,[t]){var s;const e=t!==this.G;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}ot(i){if(typeof this.G=="function"){const t=this.ct??globalThis;let e=X.get(t);e===void 0&&(e=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)}else this.G.value=i}get rt(){var i,t;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}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var nt=(i=>(i.Inline="inline",i.Trigger="trigger",i))(nt||{}),fe=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Ut=(i,t,e,s)=>{for(var r=s>1?void 0:s?$e(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&fe(t,e,r),r};let V=class extends f{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=pe()}addChild(i){i.parent=this,this.nodes.push(i)}applyBranding(){if(this.wrapperRef.value){const i=this.application.settings;i!=null&&i.branding&&Pt(i.branding,this.wrapperRef.value)}}firstUpdated(i){this.applyBranding()}render(){return this.application.renderStrategy===nt.Trigger&&this.renderRoot.host.classList.add("floating"),R`<div class="widget-container" ${ge(this.wrapperRef)}>
|
176
|
+
${xt(this.nodes,i=>i)}
|
177
|
+
</div>`}};V.styles=P`
|
174
178
|
:host {
|
175
179
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
176
180
|
--spacing-xs: 0.2rem;
|
@@ -248,11 +252,11 @@
|
|
248
252
|
opacity: 1;
|
249
253
|
}
|
250
254
|
}
|
251
|
-
`;
|
255
|
+
`;Ut([u({attribute:!1})],V.prototype,"application",2);V=Ut([rt("ace-wrapper")],V);var _e=Object.defineProperty,me=Object.getOwnPropertyDescriptor,F=(i,t,e,s)=>{for(var r=s>1?void 0:s?me(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&_e(t,e,r),r};let S=class extends f{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(i){this.widget=i.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const i=globalThis.widgets;i&&(this.widget=i.applications.find(t=>t.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return l;if(this.widget.renderStrategy===nt.Trigger){const i=new x;return i.application=this.widget,i}return this.widget.render()}};S.styles=[P`
|
252
256
|
:host {
|
253
257
|
display: block;
|
254
258
|
}
|
255
|
-
`];
|
259
|
+
`];F([u({attribute:!0})],S.prototype,"name",2);F([L()],S.prototype,"widget",2);F([L()],S.prototype,"status",2);S=F([rt("ace-widget")],S);customElements.get("ace-trigger")||customElements.define("ace-trigger",x);const ye=i=>{const t={};return Object.keys(i).forEach(e=>{e.indexOf("css-")>-1&&(t[e]=i[e])}),t},ve=(i,t)=>{const e=ye(t);Object.entries(e).forEach(([s,r])=>{i.style.setProperty(s.replace("css-",""),r)})};class ot extends Ot(f){constructor(){super(...arguments),this.nodes=[]}render(){var t;return ve(this.renderRoot.host,this.properties),this.renderRoot.host.style.setProperty("--columns",((t=this.properties.columns)==null?void 0:t.toString())||"1"),R`${xt(this.nodes,e=>e)}`}}ot.styles=[P`
|
256
260
|
:host {
|
257
261
|
height: 100%;
|
258
262
|
display: grid;
|
@@ -261,4 +265,4 @@
|
|
261
265
|
grid-template-rows: auto;
|
262
266
|
grid-template-columns: repeat(var(--columns), 1fr);
|
263
267
|
}
|
264
|
-
`];exports.Area=
|
268
|
+
`];exports.Area=ot;exports.default=ot;
|
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-529b76b7.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.12-rc.
|
3
|
+
"version": "1.1.12-rc.6",
|
4
4
|
"dependencies": {
|
5
|
-
"@telia-ace/widget-core-flamingo": "1.1.12-rc.
|
5
|
+
"@telia-ace/widget-core-flamingo": "1.1.12-rc.6",
|
6
6
|
"lit": "^3.0.2"
|
7
7
|
},
|
8
8
|
"main": "./index.js",
|