@telia-ace/widget-components-area-flamingo 1.0.14 → 1.1.12-rc.5
Sign up to get free protection for your applications and to get access to all the features.
- package/area-27c914b6.mjs +1289 -0
- package/area-6186125e.js +268 -0
- package/area-component.d.ts +2 -0
- package/area.d.ts +9 -0
- package/get-css-props.d.ts +5 -0
- package/{dist/index-9688347a-02584d39.js → index-5087564d.mjs} +126 -127
- package/index-6dd00f59.js +1 -0
- package/index.d.ts +2 -0
- package/index.js +1 -0
- package/index.mjs +6 -0
- package/package.json +7 -41
- package/dist/area-9cd4a2a2.js +0 -752
- package/dist/area-9cd4a2a2.js.map +0 -1
- package/dist/area-component.d.ts +0 -28
- package/dist/area-component.d.ts.map +0 -1
- package/dist/area.d.ts +0 -10
- package/dist/area.d.ts.map +0 -1
- package/dist/index-40a90aa7.js +0 -2561
- package/dist/index-40a90aa7.js.map +0 -1
- package/dist/index-9688347a-02584d39.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -5
- package/dist/index.js.map +0 -1
@@ -0,0 +1,1289 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2019 Google LLC
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
+
*/
|
6
|
+
const I = globalThis, st = I.ShadowRoot && (I.ShadyCSS === void 0 || I.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, it = Symbol(), ot = /* @__PURE__ */ new WeakMap();
|
7
|
+
let _t = class {
|
8
|
+
constructor(t, e, i) {
|
9
|
+
if (this._$cssResult$ = !0, i !== it)
|
10
|
+
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
11
|
+
this.cssText = t, this.t = e;
|
12
|
+
}
|
13
|
+
get styleSheet() {
|
14
|
+
let t = this.o;
|
15
|
+
const e = this.t;
|
16
|
+
if (st && t === void 0) {
|
17
|
+
const i = e !== void 0 && e.length === 1;
|
18
|
+
i && (t = ot.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && ot.set(e, t));
|
19
|
+
}
|
20
|
+
return t;
|
21
|
+
}
|
22
|
+
toString() {
|
23
|
+
return this.cssText;
|
24
|
+
}
|
25
|
+
};
|
26
|
+
const Ut = (s) => new _t(typeof s == "string" ? s : s + "", void 0, it), P = (s, ...t) => {
|
27
|
+
const e = s.length === 1 ? s[0] : t.reduce((i, r, n) => i + ((o) => {
|
28
|
+
if (o._$cssResult$ === !0)
|
29
|
+
return o.cssText;
|
30
|
+
if (typeof o == "number")
|
31
|
+
return o;
|
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) + s[n + 1], s[0]);
|
34
|
+
return new _t(e, s, it);
|
35
|
+
}, Nt = (s, t) => {
|
36
|
+
if (st)
|
37
|
+
s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
38
|
+
else
|
39
|
+
for (const e of t) {
|
40
|
+
const i = document.createElement("style"), r = I.litNonce;
|
41
|
+
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
42
|
+
}
|
43
|
+
}, at = st ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
44
|
+
let e = "";
|
45
|
+
for (const i of t.cssRules)
|
46
|
+
e += i.cssText;
|
47
|
+
return Ut(e);
|
48
|
+
})(s) : s;
|
49
|
+
/**
|
50
|
+
* @license
|
51
|
+
* Copyright 2017 Google LLC
|
52
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
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 : "", K = m.reactiveElementPolyfillSupport, T = (s, t) => s, G = { toAttribute(s, t) {
|
55
|
+
switch (t) {
|
56
|
+
case Boolean:
|
57
|
+
s = s ? jt : null;
|
58
|
+
break;
|
59
|
+
case Object:
|
60
|
+
case Array:
|
61
|
+
s = s == null ? s : JSON.stringify(s);
|
62
|
+
}
|
63
|
+
return s;
|
64
|
+
}, fromAttribute(s, t) {
|
65
|
+
let e = s;
|
66
|
+
switch (t) {
|
67
|
+
case Boolean:
|
68
|
+
e = s !== null;
|
69
|
+
break;
|
70
|
+
case Number:
|
71
|
+
e = s === null ? null : Number(s);
|
72
|
+
break;
|
73
|
+
case Object:
|
74
|
+
case Array:
|
75
|
+
try {
|
76
|
+
e = JSON.parse(s);
|
77
|
+
} catch {
|
78
|
+
e = null;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
return e;
|
82
|
+
} }, rt = (s, t) => !Mt(s, t), ht = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: rt };
|
83
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), m.litPropertyMetadata ?? (m.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
84
|
+
class C extends HTMLElement {
|
85
|
+
static addInitializer(t) {
|
86
|
+
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
87
|
+
}
|
88
|
+
static get observedAttributes() {
|
89
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
90
|
+
}
|
91
|
+
static createProperty(t, e = ht) {
|
92
|
+
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
93
|
+
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
94
|
+
r !== void 0 && Ht(this.prototype, t, r);
|
95
|
+
}
|
96
|
+
}
|
97
|
+
static getPropertyDescriptor(t, e, i) {
|
98
|
+
const { get: r, set: n } = Rt(this.prototype, t) ?? { get() {
|
99
|
+
return this[e];
|
100
|
+
}, set(o) {
|
101
|
+
this[e] = o;
|
102
|
+
} };
|
103
|
+
return { get() {
|
104
|
+
return r == null ? void 0 : r.call(this);
|
105
|
+
}, set(o) {
|
106
|
+
const c = r == null ? void 0 : r.call(this);
|
107
|
+
n.call(this, o), this.requestUpdate(t, c, i);
|
108
|
+
}, configurable: !0, enumerable: !0 };
|
109
|
+
}
|
110
|
+
static getPropertyOptions(t) {
|
111
|
+
return this.elementProperties.get(t) ?? ht;
|
112
|
+
}
|
113
|
+
static _$Ei() {
|
114
|
+
if (this.hasOwnProperty(T("elementProperties")))
|
115
|
+
return;
|
116
|
+
const t = Lt(this);
|
117
|
+
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
118
|
+
}
|
119
|
+
static finalize() {
|
120
|
+
if (this.hasOwnProperty(T("finalized")))
|
121
|
+
return;
|
122
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(T("properties"))) {
|
123
|
+
const e = this.properties, i = [...kt(e), ...Dt(e)];
|
124
|
+
for (const r of i)
|
125
|
+
this.createProperty(r, e[r]);
|
126
|
+
}
|
127
|
+
const t = this[Symbol.metadata];
|
128
|
+
if (t !== null) {
|
129
|
+
const e = litPropertyMetadata.get(t);
|
130
|
+
if (e !== void 0)
|
131
|
+
for (const [i, r] of e)
|
132
|
+
this.elementProperties.set(i, r);
|
133
|
+
}
|
134
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
135
|
+
for (const [e, i] of this.elementProperties) {
|
136
|
+
const r = this._$Eu(e, i);
|
137
|
+
r !== void 0 && this._$Eh.set(r, e);
|
138
|
+
}
|
139
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
140
|
+
}
|
141
|
+
static finalizeStyles(t) {
|
142
|
+
const e = [];
|
143
|
+
if (Array.isArray(t)) {
|
144
|
+
const i = new Set(t.flat(1 / 0).reverse());
|
145
|
+
for (const r of i)
|
146
|
+
e.unshift(at(r));
|
147
|
+
} else
|
148
|
+
t !== void 0 && e.push(at(t));
|
149
|
+
return e;
|
150
|
+
}
|
151
|
+
static _$Eu(t, e) {
|
152
|
+
const i = e.attribute;
|
153
|
+
return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
|
154
|
+
}
|
155
|
+
constructor() {
|
156
|
+
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
157
|
+
}
|
158
|
+
_$Ev() {
|
159
|
+
var t;
|
160
|
+
this._$Eg = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
161
|
+
}
|
162
|
+
addController(t) {
|
163
|
+
var e;
|
164
|
+
(this._$ES ?? (this._$ES = [])).push(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
165
|
+
}
|
166
|
+
removeController(t) {
|
167
|
+
var e;
|
168
|
+
(e = this._$ES) == null || e.splice(this._$ES.indexOf(t) >>> 0, 1);
|
169
|
+
}
|
170
|
+
_$E_() {
|
171
|
+
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
172
|
+
for (const i of e.keys())
|
173
|
+
this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
|
174
|
+
t.size > 0 && (this._$Ep = t);
|
175
|
+
}
|
176
|
+
createRenderRoot() {
|
177
|
+
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
178
|
+
return Nt(t, this.constructor.elementStyles), t;
|
179
|
+
}
|
180
|
+
connectedCallback() {
|
181
|
+
var t;
|
182
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) == null || t.forEach((e) => {
|
183
|
+
var i;
|
184
|
+
return (i = e.hostConnected) == null ? void 0 : i.call(e);
|
185
|
+
});
|
186
|
+
}
|
187
|
+
enableUpdating(t) {
|
188
|
+
}
|
189
|
+
disconnectedCallback() {
|
190
|
+
var t;
|
191
|
+
(t = this._$ES) == null || t.forEach((e) => {
|
192
|
+
var i;
|
193
|
+
return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
|
194
|
+
});
|
195
|
+
}
|
196
|
+
attributeChangedCallback(t, e, i) {
|
197
|
+
this._$AK(t, i);
|
198
|
+
}
|
199
|
+
_$EO(t, e) {
|
200
|
+
var n;
|
201
|
+
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
202
|
+
if (r !== void 0 && i.reflect === !0) {
|
203
|
+
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : G).toAttribute(e, i.type);
|
204
|
+
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
205
|
+
}
|
206
|
+
}
|
207
|
+
_$AK(t, e) {
|
208
|
+
var n;
|
209
|
+
const i = this.constructor, r = i._$Eh.get(t);
|
210
|
+
if (r !== void 0 && this._$Em !== r) {
|
211
|
+
const o = i.getPropertyOptions(r), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : G;
|
212
|
+
this._$Em = r, this[r] = c.fromAttribute(e, o.type), this._$Em = null;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
requestUpdate(t, e, i, r = !1, n) {
|
216
|
+
if (t !== void 0) {
|
217
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? rt)(r ? n : this[t], e))
|
218
|
+
return;
|
219
|
+
this.C(t, e, i);
|
220
|
+
}
|
221
|
+
this.isUpdatePending === !1 && (this._$Eg = this._$EP());
|
222
|
+
}
|
223
|
+
C(t, e, i) {
|
224
|
+
this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
225
|
+
}
|
226
|
+
async _$EP() {
|
227
|
+
this.isUpdatePending = !0;
|
228
|
+
try {
|
229
|
+
await this._$Eg;
|
230
|
+
} catch (e) {
|
231
|
+
Promise.reject(e);
|
232
|
+
}
|
233
|
+
const t = this.scheduleUpdate();
|
234
|
+
return t != null && await t, !this.isUpdatePending;
|
235
|
+
}
|
236
|
+
scheduleUpdate() {
|
237
|
+
return this.performUpdate();
|
238
|
+
}
|
239
|
+
performUpdate() {
|
240
|
+
var i;
|
241
|
+
if (!this.isUpdatePending)
|
242
|
+
return;
|
243
|
+
if (!this.hasUpdated) {
|
244
|
+
if (this._$Ep) {
|
245
|
+
for (const [n, o] of this._$Ep)
|
246
|
+
this[n] = o;
|
247
|
+
this._$Ep = void 0;
|
248
|
+
}
|
249
|
+
const r = this.constructor.elementProperties;
|
250
|
+
if (r.size > 0)
|
251
|
+
for (const [n, o] of r)
|
252
|
+
o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.C(n, this[n], o);
|
253
|
+
}
|
254
|
+
let t = !1;
|
255
|
+
const e = this._$AL;
|
256
|
+
try {
|
257
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$ES) == null || i.forEach((r) => {
|
258
|
+
var n;
|
259
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
260
|
+
}), this.update(e)) : this._$ET();
|
261
|
+
} catch (r) {
|
262
|
+
throw t = !1, this._$ET(), r;
|
263
|
+
}
|
264
|
+
t && this._$AE(e);
|
265
|
+
}
|
266
|
+
willUpdate(t) {
|
267
|
+
}
|
268
|
+
_$AE(t) {
|
269
|
+
var e;
|
270
|
+
(e = this._$ES) == null || e.forEach((i) => {
|
271
|
+
var r;
|
272
|
+
return (r = i.hostUpdated) == null ? void 0 : r.call(i);
|
273
|
+
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
274
|
+
}
|
275
|
+
_$ET() {
|
276
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
277
|
+
}
|
278
|
+
get updateComplete() {
|
279
|
+
return this.getUpdateComplete();
|
280
|
+
}
|
281
|
+
getUpdateComplete() {
|
282
|
+
return this._$Eg;
|
283
|
+
}
|
284
|
+
shouldUpdate(t) {
|
285
|
+
return !0;
|
286
|
+
}
|
287
|
+
update(t) {
|
288
|
+
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EO(e, this[e]))), this._$ET();
|
289
|
+
}
|
290
|
+
updated(t) {
|
291
|
+
}
|
292
|
+
firstUpdated(t) {
|
293
|
+
}
|
294
|
+
}
|
295
|
+
C.elementStyles = [], C.shadowRootOptions = { mode: "open" }, C[T("elementProperties")] = /* @__PURE__ */ new Map(), C[T("finalized")] = /* @__PURE__ */ new Map(), K == null || K({ ReactiveElement: C }), (m.reactiveElementVersions ?? (m.reactiveElementVersions = [])).push("2.0.1");
|
296
|
+
/**
|
297
|
+
* @license
|
298
|
+
* Copyright 2017 Google LLC
|
299
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
300
|
+
*/
|
301
|
+
const U = globalThis, W = U.trustedTypes, lt = W ? W.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, mt = "$lit$", _ = `lit$${(Math.random() + "").slice(9)}$`, yt = "?" + _, zt = `<${yt}>`, w = document, M = () => w.createComment(""), H = (s) => s === null || typeof s != "object" && typeof s != "function", vt = Array.isArray, Bt = (s) => vt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", Z = `[
|
302
|
+
\f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, dt = /-->/g, pt = />/g, v = RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^
|
303
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ut = /'/g, gt = /"/g, At = /^(?:script|style|textarea|title)$/i, It = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), R = It(1), x = Symbol.for("lit-noChange"), l = Symbol.for("lit-nothing"), ft = /* @__PURE__ */ new WeakMap(), b = w.createTreeWalker(w, 129);
|
304
|
+
function bt(s, t) {
|
305
|
+
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
306
|
+
throw Error("invalid template strings array");
|
307
|
+
return lt !== void 0 ? lt.createHTML(t) : t;
|
308
|
+
}
|
309
|
+
const Gt = (s, t) => {
|
310
|
+
const e = s.length - 1, i = [];
|
311
|
+
let r, n = t === 2 ? "<svg>" : "", o = O;
|
312
|
+
for (let c = 0; c < e; c++) {
|
313
|
+
const a = s[c];
|
314
|
+
let d, p, h = -1, g = 0;
|
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 = v) : p[3] !== void 0 && (o = v) : o === v ? 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 ? v : p[3] === '"' ? gt : ut) : o === gt || o === ut ? o = v : o === dt || o === pt ? o = O : (o = v, r = void 0);
|
317
|
+
const $ = o === v && s[c + 1].startsWith("/>") ? " " : "";
|
318
|
+
n += o === O ? a + zt : h >= 0 ? (i.push(d), a.slice(0, h) + mt + a.slice(h) + _ + $) : a + _ + (h === -2 ? c : $);
|
319
|
+
}
|
320
|
+
return [bt(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
321
|
+
};
|
322
|
+
class k {
|
323
|
+
constructor({ strings: t, _$litType$: e }, i) {
|
324
|
+
let r;
|
325
|
+
this.parts = [];
|
326
|
+
let n = 0, o = 0;
|
327
|
+
const c = t.length - 1, a = this.parts, [d, p] = Gt(t, e);
|
328
|
+
if (this.el = k.createElement(d, i), b.currentNode = this.el.content, e === 2) {
|
329
|
+
const h = this.el.content.firstChild;
|
330
|
+
h.replaceWith(...h.childNodes);
|
331
|
+
}
|
332
|
+
for (; (r = b.nextNode()) !== null && a.length < c; ) {
|
333
|
+
if (r.nodeType === 1) {
|
334
|
+
if (r.hasAttributes())
|
335
|
+
for (const h of r.getAttributeNames())
|
336
|
+
if (h.endsWith(mt)) {
|
337
|
+
const g = p[o++], $ = r.getAttribute(h).split(_), z = /([.?@])?(.*)/.exec(g);
|
338
|
+
a.push({ type: 1, index: n, name: z[2], strings: $, ctor: z[1] === "." ? Vt : z[1] === "?" ? qt : z[1] === "@" ? Yt : Y }), r.removeAttribute(h);
|
339
|
+
} else
|
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
|
+
if (g > 0) {
|
344
|
+
r.textContent = W ? W.emptyScript : "";
|
345
|
+
for (let $ = 0; $ < g; $++)
|
346
|
+
r.append(h[$], M()), b.nextNode(), a.push({ type: 2, index: ++n });
|
347
|
+
r.append(h[g], M());
|
348
|
+
}
|
349
|
+
}
|
350
|
+
} else if (r.nodeType === 8)
|
351
|
+
if (r.data === yt)
|
352
|
+
a.push({ type: 2, index: n });
|
353
|
+
else {
|
354
|
+
let h = -1;
|
355
|
+
for (; (h = r.data.indexOf(_, h + 1)) !== -1; )
|
356
|
+
a.push({ type: 7, index: n }), h += _.length - 1;
|
357
|
+
}
|
358
|
+
n++;
|
359
|
+
}
|
360
|
+
}
|
361
|
+
static createElement(t, e) {
|
362
|
+
const i = w.createElement("template");
|
363
|
+
return i.innerHTML = t, i;
|
364
|
+
}
|
365
|
+
}
|
366
|
+
function E(s, t, e = s, i) {
|
367
|
+
var o, c;
|
368
|
+
if (t === x)
|
369
|
+
return t;
|
370
|
+
let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
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(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = E(s, r._$AS(s, t.values), r, i)), t;
|
373
|
+
}
|
374
|
+
class Wt {
|
375
|
+
constructor(t, e) {
|
376
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
377
|
+
}
|
378
|
+
get parentNode() {
|
379
|
+
return this._$AM.parentNode;
|
380
|
+
}
|
381
|
+
get _$AU() {
|
382
|
+
return this._$AM._$AU;
|
383
|
+
}
|
384
|
+
u(t) {
|
385
|
+
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? w).importNode(e, !0);
|
386
|
+
b.currentNode = r;
|
387
|
+
let n = b.nextNode(), o = 0, c = 0, a = i[0];
|
388
|
+
for (; a !== void 0; ) {
|
389
|
+
if (o === a.index) {
|
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 = i[++c];
|
392
|
+
}
|
393
|
+
o !== (a == null ? void 0 : a.index) && (n = b.nextNode(), o++);
|
394
|
+
}
|
395
|
+
return b.currentNode = w, r;
|
396
|
+
}
|
397
|
+
p(t) {
|
398
|
+
let e = 0;
|
399
|
+
for (const i of this._$AV)
|
400
|
+
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
401
|
+
}
|
402
|
+
}
|
403
|
+
class D {
|
404
|
+
get _$AU() {
|
405
|
+
var t;
|
406
|
+
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
407
|
+
}
|
408
|
+
constructor(t, e, i, r) {
|
409
|
+
this.type = 2, this._$AH = l, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
410
|
+
}
|
411
|
+
get parentNode() {
|
412
|
+
let t = this._$AA.parentNode;
|
413
|
+
const e = this._$AM;
|
414
|
+
return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
|
415
|
+
}
|
416
|
+
get startNode() {
|
417
|
+
return this._$AA;
|
418
|
+
}
|
419
|
+
get endNode() {
|
420
|
+
return this._$AB;
|
421
|
+
}
|
422
|
+
_$AI(t, e = this) {
|
423
|
+
t = E(this, t, e), H(t) ? t === l || t == null || t === "" ? (this._$AH !== l && this._$AR(), this._$AH = l) : t !== this._$AH && t !== x && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Bt(t) ? this.T(t) : this._(t);
|
424
|
+
}
|
425
|
+
k(t) {
|
426
|
+
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
427
|
+
}
|
428
|
+
$(t) {
|
429
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
430
|
+
}
|
431
|
+
_(t) {
|
432
|
+
this._$AH !== l && H(this._$AH) ? this._$AA.nextSibling.data = t : this.$(w.createTextNode(t)), this._$AH = t;
|
433
|
+
}
|
434
|
+
g(t) {
|
435
|
+
var n;
|
436
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = k.createElement(bt(i.h, i.h[0]), this.options)), i);
|
437
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === r)
|
438
|
+
this._$AH.p(e);
|
439
|
+
else {
|
440
|
+
const o = new Wt(r, this), c = o.u(this.options);
|
441
|
+
o.p(e), this.$(c), this._$AH = o;
|
442
|
+
}
|
443
|
+
}
|
444
|
+
_$AC(t) {
|
445
|
+
let e = ft.get(t.strings);
|
446
|
+
return e === void 0 && ft.set(t.strings, e = new k(t)), e;
|
447
|
+
}
|
448
|
+
T(t) {
|
449
|
+
vt(this._$AH) || (this._$AH = [], this._$AR());
|
450
|
+
const e = this._$AH;
|
451
|
+
let i, r = 0;
|
452
|
+
for (const n of t)
|
453
|
+
r === e.length ? e.push(i = new D(this.k(M()), this.k(M()), this, this.options)) : i = e[r], i._$AI(n), r++;
|
454
|
+
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
455
|
+
}
|
456
|
+
_$AR(t = this._$AA.nextSibling, e) {
|
457
|
+
var i;
|
458
|
+
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
459
|
+
const r = t.nextSibling;
|
460
|
+
t.remove(), t = r;
|
461
|
+
}
|
462
|
+
}
|
463
|
+
setConnected(t) {
|
464
|
+
var e;
|
465
|
+
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
466
|
+
}
|
467
|
+
}
|
468
|
+
class Y {
|
469
|
+
get tagName() {
|
470
|
+
return this.element.tagName;
|
471
|
+
}
|
472
|
+
get _$AU() {
|
473
|
+
return this._$AM._$AU;
|
474
|
+
}
|
475
|
+
constructor(t, e, i, 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, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = l;
|
477
|
+
}
|
478
|
+
_$AI(t, e = this, i, r) {
|
479
|
+
const n = this.strings;
|
480
|
+
let o = !1;
|
481
|
+
if (n === void 0)
|
482
|
+
t = E(this, t, e, 0), o = !H(t) || t !== this._$AH && t !== x, o && (this._$AH = t);
|
483
|
+
else {
|
484
|
+
const c = t;
|
485
|
+
let a, d;
|
486
|
+
for (t = n[0], a = 0; a < n.length - 1; a++)
|
487
|
+
d = E(this, c[i + a], e, a), d === x && (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
|
+
}
|
489
|
+
o && !r && this.O(t);
|
490
|
+
}
|
491
|
+
O(t) {
|
492
|
+
t === l ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
|
+
}
|
494
|
+
}
|
495
|
+
class Vt extends Y {
|
496
|
+
constructor() {
|
497
|
+
super(...arguments), this.type = 3;
|
498
|
+
}
|
499
|
+
O(t) {
|
500
|
+
this.element[this.name] = t === l ? void 0 : t;
|
501
|
+
}
|
502
|
+
}
|
503
|
+
class qt extends Y {
|
504
|
+
constructor() {
|
505
|
+
super(...arguments), this.type = 4;
|
506
|
+
}
|
507
|
+
O(t) {
|
508
|
+
this.element.toggleAttribute(this.name, !!t && t !== l);
|
509
|
+
}
|
510
|
+
}
|
511
|
+
class Yt extends Y {
|
512
|
+
constructor(t, e, i, r, n) {
|
513
|
+
super(t, e, i, r, n), this.type = 5;
|
514
|
+
}
|
515
|
+
_$AI(t, e = this) {
|
516
|
+
if ((t = E(this, t, e, 0) ?? l) === x)
|
517
|
+
return;
|
518
|
+
const i = this._$AH, r = t === l && i !== l || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== l && (i === l || r);
|
519
|
+
r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
520
|
+
}
|
521
|
+
handleEvent(t) {
|
522
|
+
var e;
|
523
|
+
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
524
|
+
}
|
525
|
+
}
|
526
|
+
class Ft {
|
527
|
+
constructor(t, e, i) {
|
528
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
529
|
+
}
|
530
|
+
get _$AU() {
|
531
|
+
return this._$AM._$AU;
|
532
|
+
}
|
533
|
+
_$AI(t) {
|
534
|
+
E(this, t);
|
535
|
+
}
|
536
|
+
}
|
537
|
+
const Q = U.litHtmlPolyfillSupport;
|
538
|
+
Q == null || Q(k, D), (U.litHtmlVersions ?? (U.litHtmlVersions = [])).push("3.0.2");
|
539
|
+
const Jt = (s, t, e) => {
|
540
|
+
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
541
|
+
let r = i._$litPart$;
|
542
|
+
if (r === void 0) {
|
543
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
544
|
+
i._$litPart$ = r = new D(t.insertBefore(M(), n), n, void 0, e ?? {});
|
545
|
+
}
|
546
|
+
return r._$AI(s), r;
|
547
|
+
};
|
548
|
+
/**
|
549
|
+
* @license
|
550
|
+
* Copyright 2017 Google LLC
|
551
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
552
|
+
*/
|
553
|
+
let f = class extends C {
|
554
|
+
constructor() {
|
555
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
556
|
+
}
|
557
|
+
createRenderRoot() {
|
558
|
+
var e;
|
559
|
+
const t = super.createRenderRoot();
|
560
|
+
return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
|
561
|
+
}
|
562
|
+
update(t) {
|
563
|
+
const e = this.render();
|
564
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Jt(e, this.renderRoot, this.renderOptions);
|
565
|
+
}
|
566
|
+
connectedCallback() {
|
567
|
+
var t;
|
568
|
+
super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
|
569
|
+
}
|
570
|
+
disconnectedCallback() {
|
571
|
+
var t;
|
572
|
+
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
573
|
+
}
|
574
|
+
render() {
|
575
|
+
return x;
|
576
|
+
}
|
577
|
+
};
|
578
|
+
var $t;
|
579
|
+
f._$litElement$ = !0, f.finalized = !0, ($t = globalThis.litElementHydrateSupport) == null || $t.call(globalThis, { LitElement: f });
|
580
|
+
const X = globalThis.litElementPolyfillSupport;
|
581
|
+
X == null || X({ LitElement: f });
|
582
|
+
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
583
|
+
/**
|
584
|
+
* @license
|
585
|
+
* Copyright 2021 Google LLC
|
586
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
587
|
+
*/
|
588
|
+
function* wt(s, t) {
|
589
|
+
if (s !== void 0) {
|
590
|
+
let e = 0;
|
591
|
+
for (const i of s)
|
592
|
+
yield t(i, e++);
|
593
|
+
}
|
594
|
+
}
|
595
|
+
/**
|
596
|
+
* @license
|
597
|
+
* Copyright 2017 Google LLC
|
598
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
599
|
+
*/
|
600
|
+
const F = (s) => (t, e) => {
|
601
|
+
e !== void 0 ? e.addInitializer(() => {
|
602
|
+
customElements.define(s, t);
|
603
|
+
}) : customElements.define(s, 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: G, reflect: !1, hasChanged: rt }, Zt = (s = Kt, t, e) => {
|
611
|
+
const { kind: i, metadata: r } = e;
|
612
|
+
let n = globalThis.litPropertyMetadata.get(r);
|
613
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), i === "accessor") {
|
614
|
+
const { name: o } = e;
|
615
|
+
return { set(c) {
|
616
|
+
const a = t.get.call(this);
|
617
|
+
t.set.call(this, c), this.requestUpdate(o, a, s);
|
618
|
+
}, init(c) {
|
619
|
+
return c !== void 0 && this.C(o, void 0, s), c;
|
620
|
+
} };
|
621
|
+
}
|
622
|
+
if (i === "setter") {
|
623
|
+
const { name: o } = e;
|
624
|
+
return function(c) {
|
625
|
+
const a = this[o];
|
626
|
+
t.call(this, c), this.requestUpdate(o, a, s);
|
627
|
+
};
|
628
|
+
}
|
629
|
+
throw Error("Unsupported decorator location: " + i);
|
630
|
+
};
|
631
|
+
function u(s) {
|
632
|
+
return (t, e) => typeof e == "object" ? Zt(s, t, e) : ((i, r, n) => {
|
633
|
+
const o = r.hasOwnProperty(n);
|
634
|
+
return r.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
635
|
+
})(s, t, e);
|
636
|
+
}
|
637
|
+
/**
|
638
|
+
* @license
|
639
|
+
* Copyright 2017 Google LLC
|
640
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
641
|
+
*/
|
642
|
+
function L(s) {
|
643
|
+
return u({ ...s, state: !0, attribute: !1 });
|
644
|
+
}
|
645
|
+
/**
|
646
|
+
* @license
|
647
|
+
* Copyright 2017 Google LLC
|
648
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
649
|
+
*/
|
650
|
+
const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ct = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
651
|
+
class Et {
|
652
|
+
constructor(t) {
|
653
|
+
}
|
654
|
+
get _$AU() {
|
655
|
+
return this._$AM._$AU;
|
656
|
+
}
|
657
|
+
_$AT(t, e, i) {
|
658
|
+
this._$Ct = t, this._$AM = e, this._$Ci = i;
|
659
|
+
}
|
660
|
+
_$AS(t, e) {
|
661
|
+
return this.update(t, e);
|
662
|
+
}
|
663
|
+
update(t, e) {
|
664
|
+
return this.render(...e);
|
665
|
+
}
|
666
|
+
}
|
667
|
+
/**
|
668
|
+
* @license
|
669
|
+
* Copyright 2018 Google LLC
|
670
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
671
|
+
*/
|
672
|
+
const Qt = Ct(class extends Et {
|
673
|
+
constructor(s) {
|
674
|
+
var t;
|
675
|
+
if (super(s), s.type !== xt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
|
676
|
+
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
677
|
+
}
|
678
|
+
render(s) {
|
679
|
+
return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
|
680
|
+
}
|
681
|
+
update(s, [t]) {
|
682
|
+
var i, r;
|
683
|
+
if (this.it === void 0) {
|
684
|
+
this.it = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.st = new Set(s.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
685
|
+
for (const n in t)
|
686
|
+
t[n] && !((i = this.st) != null && i.has(n)) && this.it.add(n);
|
687
|
+
return this.render(t);
|
688
|
+
}
|
689
|
+
const e = s.element.classList;
|
690
|
+
for (const n of this.it)
|
691
|
+
n in t || (e.remove(n), this.it.delete(n));
|
692
|
+
for (const n in t) {
|
693
|
+
const o = !!t[n];
|
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
|
+
}
|
696
|
+
return x;
|
697
|
+
}
|
698
|
+
}), B = (s, t, e) => {
|
699
|
+
s && e.style.setProperty(t, s);
|
700
|
+
}, St = (s, t) => {
|
701
|
+
var e, i, r, n;
|
702
|
+
B((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), B(
|
703
|
+
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
704
|
+
"--text-on-primary-background",
|
705
|
+
t
|
706
|
+
), B(
|
707
|
+
(r = s.colors) == null ? void 0 : r.secondaryBackground,
|
708
|
+
"--secondary-background",
|
709
|
+
t
|
710
|
+
), B(
|
711
|
+
(n = s.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
712
|
+
"--text-on-secondary-background",
|
713
|
+
t
|
714
|
+
);
|
715
|
+
};
|
716
|
+
var Xt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, j = (s, t, e, i) => {
|
717
|
+
for (var r = i > 1 ? void 0 : i ? te(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
718
|
+
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
719
|
+
return i && r && Xt(t, e, r), r;
|
720
|
+
};
|
721
|
+
let y = class extends f {
|
722
|
+
constructor() {
|
723
|
+
super(...arguments), this.active = !1, this.loaded = !1;
|
724
|
+
}
|
725
|
+
async connectedCallback() {
|
726
|
+
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
727
|
+
}
|
728
|
+
_toggleActive() {
|
729
|
+
var s;
|
730
|
+
if (!((s = this.application) != null && s.root)) {
|
731
|
+
console.warn(
|
732
|
+
"Could not activate widget. No root element assigned to widget."
|
733
|
+
);
|
734
|
+
return;
|
735
|
+
}
|
736
|
+
this.active = !this.active, this.active ? this.application.appendToDOM() : this.application.removeFromDOM();
|
737
|
+
}
|
738
|
+
_applyBranding() {
|
739
|
+
var s;
|
740
|
+
(s = this.application) != null && s.settings && St(this.application.settings.branding, this);
|
741
|
+
}
|
742
|
+
async _renderSymbol() {
|
743
|
+
var r;
|
744
|
+
const s = (r = this.application) == null ? void 0 : r.triggerIcon;
|
745
|
+
if (!s)
|
746
|
+
return l;
|
747
|
+
const t = async (n) => await import("./index-5087564d.mjs").then(
|
748
|
+
(c) => c[n]
|
749
|
+
), { type: e, content: i } = s;
|
750
|
+
switch (e) {
|
751
|
+
case "Telia": {
|
752
|
+
const n = await t(i);
|
753
|
+
return n ? R`<telia-icon
|
754
|
+
class="trigger-icon"
|
755
|
+
svg=${n.svg}
|
756
|
+
size="lg"
|
757
|
+
></telia-icon>` : l;
|
758
|
+
}
|
759
|
+
default:
|
760
|
+
return l;
|
761
|
+
}
|
762
|
+
}
|
763
|
+
render() {
|
764
|
+
return R`<button
|
765
|
+
class=${Qt({
|
766
|
+
trigger: !0,
|
767
|
+
active: this.active,
|
768
|
+
rendered: this.loaded
|
769
|
+
})}
|
770
|
+
@click=${this._toggleActive}
|
771
|
+
>
|
772
|
+
${this.icon}
|
773
|
+
<span class="trigger-close">
|
774
|
+
<svg
|
775
|
+
width="18"
|
776
|
+
height="9"
|
777
|
+
viewBox="0 0 18 9"
|
778
|
+
fill="none"
|
779
|
+
xmlns="http://www.w3.org/2000/svg"
|
780
|
+
>
|
781
|
+
<path
|
782
|
+
d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z"
|
783
|
+
fill="white"
|
784
|
+
/>
|
785
|
+
</svg>
|
786
|
+
</span>
|
787
|
+
<span class="trigger-loader">
|
788
|
+
<svg viewBox="25 25 50 50">
|
789
|
+
<circle
|
790
|
+
cx="50"
|
791
|
+
cy="50"
|
792
|
+
r="20"
|
793
|
+
fill="none"
|
794
|
+
stroke="#000"
|
795
|
+
stroke-width="2"
|
796
|
+
stroke-miterlimit="10"
|
797
|
+
/>
|
798
|
+
</svg>
|
799
|
+
</span>
|
800
|
+
</button>`;
|
801
|
+
}
|
802
|
+
};
|
803
|
+
y.styles = [
|
804
|
+
P`
|
805
|
+
:host {
|
806
|
+
--voca-rem-multiplier: 0.625;
|
807
|
+
display: block;
|
808
|
+
box-sizing: border-box;
|
809
|
+
}
|
810
|
+
|
811
|
+
.trigger {
|
812
|
+
position: fixed;
|
813
|
+
transform: scale(0);
|
814
|
+
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
815
|
+
bottom: 20px;
|
816
|
+
right: 20px;
|
817
|
+
z-index: 5;
|
818
|
+
display: flex;
|
819
|
+
align-items: center;
|
820
|
+
justify-content: center;
|
821
|
+
border: none;
|
822
|
+
line-height: 55px;
|
823
|
+
height: 55px;
|
824
|
+
width: 55px;
|
825
|
+
border-radius: 55px;
|
826
|
+
cursor: pointer;
|
827
|
+
background-color: var(--trigger-bg, var(--primary-background));
|
828
|
+
font-family: Lato;
|
829
|
+
text-decoration: none;
|
830
|
+
border: 3px dashed transparent;
|
831
|
+
box-sizing: border-box;
|
832
|
+
transition: transform 200ms ease-out;
|
833
|
+
}
|
834
|
+
.trigger:hover {
|
835
|
+
transform: scale(1.1) !important;
|
836
|
+
}
|
837
|
+
.trigger.rendered {
|
838
|
+
transform: scale(1);
|
839
|
+
}
|
840
|
+
.trigger.active .trigger-icon {
|
841
|
+
opacity: 0;
|
842
|
+
transform: rotate(-180deg) scale(0);
|
843
|
+
}
|
844
|
+
.trigger.active .trigger-close {
|
845
|
+
opacity: 1;
|
846
|
+
transform: rotate(0deg) scale(1);
|
847
|
+
}
|
848
|
+
|
849
|
+
.trigger-icon {
|
850
|
+
display: inline-block;
|
851
|
+
line-height: inherit;
|
852
|
+
text-align: center;
|
853
|
+
opacity: 1;
|
854
|
+
transform: rotate(0deg) scale(1);
|
855
|
+
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
856
|
+
color: var(--trigger-text-color, var(--text-on-primary-background));
|
857
|
+
}
|
858
|
+
.trigger-close {
|
859
|
+
opacity: 0;
|
860
|
+
transition: transform 200ms ease-out;
|
861
|
+
transform: rotate(180deg) scale(0);
|
862
|
+
position: absolute;
|
863
|
+
top: 0;
|
864
|
+
bottom: 0;
|
865
|
+
left: 0;
|
866
|
+
right: 0;
|
867
|
+
display: flex;
|
868
|
+
justify-content: center;
|
869
|
+
align-items: center;
|
870
|
+
fill: var(--trigger-text-color, var(--text-on-primary-background));
|
871
|
+
}
|
872
|
+
`
|
873
|
+
];
|
874
|
+
j([
|
875
|
+
u({ attribute: !1 })
|
876
|
+
], y.prototype, "application", 2);
|
877
|
+
j([
|
878
|
+
L()
|
879
|
+
], y.prototype, "active", 2);
|
880
|
+
j([
|
881
|
+
L()
|
882
|
+
], y.prototype, "loaded", 2);
|
883
|
+
j([
|
884
|
+
L()
|
885
|
+
], y.prototype, "icon", 2);
|
886
|
+
y = j([
|
887
|
+
F("ace-trigger")
|
888
|
+
], y);
|
889
|
+
var ee = Object.defineProperty, se = Object.getOwnPropertyDescriptor, A = (s, t, e, i) => {
|
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;
|
893
|
+
};
|
894
|
+
const Pt = (s) => {
|
895
|
+
class t extends s {
|
896
|
+
constructor() {
|
897
|
+
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
898
|
+
}
|
899
|
+
writeProperties(i) {
|
900
|
+
this.properties = i;
|
901
|
+
}
|
902
|
+
writeLayout(i) {
|
903
|
+
this.layout = i;
|
904
|
+
}
|
905
|
+
writeContext(i) {
|
906
|
+
this.context = i;
|
907
|
+
}
|
908
|
+
addChild(i) {
|
909
|
+
i.parent = this, this.nodes.push(i);
|
910
|
+
}
|
911
|
+
connectedCallback() {
|
912
|
+
super.connectedCallback(), this.renderRoot.host.style.setProperty(
|
913
|
+
"--width",
|
914
|
+
this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
|
915
|
+
);
|
916
|
+
}
|
917
|
+
}
|
918
|
+
return t.styles = [
|
919
|
+
// (superClass as unknown as typeof LitElement).styles ?? [],
|
920
|
+
P`
|
921
|
+
:host {
|
922
|
+
font-family: var(--font-family);
|
923
|
+
grid-column: span var(--width);
|
924
|
+
max-width: 100%;
|
925
|
+
overflow: hidden;
|
926
|
+
box-sizing: border-box;
|
927
|
+
display: block;
|
928
|
+
}
|
929
|
+
* {
|
930
|
+
box-sizing: border-box;
|
931
|
+
}
|
932
|
+
`
|
933
|
+
], A([
|
934
|
+
u()
|
935
|
+
], t.prototype, "properties", 2), A([
|
936
|
+
u()
|
937
|
+
], t.prototype, "context", 2), A([
|
938
|
+
u()
|
939
|
+
], t.prototype, "layout", 2), A([
|
940
|
+
u()
|
941
|
+
], t.prototype, "name", 2), A([
|
942
|
+
u()
|
943
|
+
], t.prototype, "type", 2), A([
|
944
|
+
u({ attribute: !1 })
|
945
|
+
], t.prototype, "application", 2), A([
|
946
|
+
u({ attribute: !1 })
|
947
|
+
], t.prototype, "parent", 2), t;
|
948
|
+
};
|
949
|
+
var ie = Object.defineProperty, re = Object.getOwnPropertyDescriptor, ne = (s, t, e, i) => {
|
950
|
+
for (var r = i > 1 ? void 0 : i ? re(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
951
|
+
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
952
|
+
return i && r && ie(t, e, r), r;
|
953
|
+
};
|
954
|
+
let et = class extends Pt(f) {
|
955
|
+
render() {
|
956
|
+
return R`Non resolved component`;
|
957
|
+
}
|
958
|
+
};
|
959
|
+
et.styles = [
|
960
|
+
P`
|
961
|
+
:host {
|
962
|
+
display: block;
|
963
|
+
}
|
964
|
+
`
|
965
|
+
];
|
966
|
+
et = ne([
|
967
|
+
F("ace-unresolved-component")
|
968
|
+
], et);
|
969
|
+
/**
|
970
|
+
* @license
|
971
|
+
* Copyright 2020 Google LLC
|
972
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
973
|
+
*/
|
974
|
+
const oe = (s) => s.strings === void 0;
|
975
|
+
/**
|
976
|
+
* @license
|
977
|
+
* Copyright 2017 Google LLC
|
978
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
979
|
+
*/
|
980
|
+
const N = (s, t) => {
|
981
|
+
var i;
|
982
|
+
const e = s._$AN;
|
983
|
+
if (e === void 0)
|
984
|
+
return !1;
|
985
|
+
for (const r of e)
|
986
|
+
(i = r._$AO) == null || i.call(r, t, !1), N(r, t);
|
987
|
+
return !0;
|
988
|
+
}, V = (s) => {
|
989
|
+
let t, e;
|
990
|
+
do {
|
991
|
+
if ((t = s._$AM) === void 0)
|
992
|
+
break;
|
993
|
+
e = t._$AN, e.delete(s), s = t;
|
994
|
+
} while ((e == null ? void 0 : e.size) === 0);
|
995
|
+
}, Ot = (s) => {
|
996
|
+
for (let t; t = s._$AM; s = t) {
|
997
|
+
let e = t._$AN;
|
998
|
+
if (e === void 0)
|
999
|
+
t._$AN = e = /* @__PURE__ */ new Set();
|
1000
|
+
else if (e.has(s))
|
1001
|
+
break;
|
1002
|
+
e.add(s), he(t);
|
1003
|
+
}
|
1004
|
+
};
|
1005
|
+
function ae(s) {
|
1006
|
+
this._$AN !== void 0 ? (V(this), this._$AM = s, Ot(this)) : this._$AM = s;
|
1007
|
+
}
|
1008
|
+
function ce(s, t = !1, e = 0) {
|
1009
|
+
const i = this._$AH, r = this._$AN;
|
1010
|
+
if (r !== void 0 && r.size !== 0)
|
1011
|
+
if (t)
|
1012
|
+
if (Array.isArray(i))
|
1013
|
+
for (let n = e; n < i.length; n++)
|
1014
|
+
N(i[n], !1), V(i[n]);
|
1015
|
+
else
|
1016
|
+
i != null && (N(i, !1), V(i));
|
1017
|
+
else
|
1018
|
+
N(this, s);
|
1019
|
+
}
|
1020
|
+
const he = (s) => {
|
1021
|
+
s.type == xt.CHILD && (s._$AP ?? (s._$AP = ce), s._$AQ ?? (s._$AQ = ae));
|
1022
|
+
};
|
1023
|
+
class le extends Et {
|
1024
|
+
constructor() {
|
1025
|
+
super(...arguments), this._$AN = void 0;
|
1026
|
+
}
|
1027
|
+
_$AT(t, e, i) {
|
1028
|
+
super._$AT(t, e, i), Ot(this), this.isConnected = t._$AU;
|
1029
|
+
}
|
1030
|
+
_$AO(t, e = !0) {
|
1031
|
+
var i, r;
|
1032
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (N(this, t), V(this));
|
1033
|
+
}
|
1034
|
+
setValue(t) {
|
1035
|
+
if (oe(this._$Ct))
|
1036
|
+
this._$Ct._$AI(t, this);
|
1037
|
+
else {
|
1038
|
+
const e = [...this._$Ct._$AH];
|
1039
|
+
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
1040
|
+
}
|
1041
|
+
}
|
1042
|
+
disconnected() {
|
1043
|
+
}
|
1044
|
+
reconnected() {
|
1045
|
+
}
|
1046
|
+
}
|
1047
|
+
/**
|
1048
|
+
* @license
|
1049
|
+
* Copyright 2020 Google LLC
|
1050
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
1051
|
+
*/
|
1052
|
+
const de = () => new pe();
|
1053
|
+
class pe {
|
1054
|
+
}
|
1055
|
+
const tt = /* @__PURE__ */ new WeakMap(), ue = Ct(class extends le {
|
1056
|
+
render(s) {
|
1057
|
+
return l;
|
1058
|
+
}
|
1059
|
+
update(s, [t]) {
|
1060
|
+
var i;
|
1061
|
+
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 = (i = s.options) == null ? void 0 : i.host, this.ot(this.lt = s.element)), l;
|
1063
|
+
}
|
1064
|
+
ot(s) {
|
1065
|
+
if (typeof this.G == "function") {
|
1066
|
+
const t = this.ct ?? globalThis;
|
1067
|
+
let e = tt.get(t);
|
1068
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), tt.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, s), s !== void 0 && this.G.call(this.ct, s);
|
1069
|
+
} else
|
1070
|
+
this.G.value = s;
|
1071
|
+
}
|
1072
|
+
get rt() {
|
1073
|
+
var s, t;
|
1074
|
+
return typeof this.G == "function" ? (s = tt.get(this.ct ?? globalThis)) == null ? void 0 : s.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
1075
|
+
}
|
1076
|
+
disconnected() {
|
1077
|
+
this.rt === this.lt && this.ot(void 0);
|
1078
|
+
}
|
1079
|
+
reconnected() {
|
1080
|
+
this.ot(this.lt);
|
1081
|
+
}
|
1082
|
+
});
|
1083
|
+
var nt = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(nt || {}), ge = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, Tt = (s, t, e, i) => {
|
1084
|
+
for (var r = i > 1 ? void 0 : i ? fe(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
1085
|
+
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1086
|
+
return i && r && ge(t, e, r), r;
|
1087
|
+
};
|
1088
|
+
let q = class extends f {
|
1089
|
+
constructor() {
|
1090
|
+
super(...arguments), this.nodes = [], this.wrapperRef = de();
|
1091
|
+
}
|
1092
|
+
addChild(s) {
|
1093
|
+
s.parent = this, this.nodes.push(s);
|
1094
|
+
}
|
1095
|
+
applyBranding() {
|
1096
|
+
if (this.wrapperRef.value) {
|
1097
|
+
const s = this.application.settings;
|
1098
|
+
s != null && s.branding && St(s.branding, this.wrapperRef.value);
|
1099
|
+
}
|
1100
|
+
}
|
1101
|
+
firstUpdated(s) {
|
1102
|
+
this.applyBranding();
|
1103
|
+
}
|
1104
|
+
render() {
|
1105
|
+
return this.application.renderStrategy === nt.Trigger && this.renderRoot.host.classList.add("floating"), R`<div class="widget-container" ${ue(this.wrapperRef)}>
|
1106
|
+
${wt(this.nodes, (s) => s)}
|
1107
|
+
</div>`;
|
1108
|
+
}
|
1109
|
+
};
|
1110
|
+
q.styles = P`
|
1111
|
+
:host {
|
1112
|
+
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1113
|
+
--spacing-xs: 0.2rem;
|
1114
|
+
--spacing-sm: 0.5rem;
|
1115
|
+
--spacing-md: 1rem;
|
1116
|
+
--spacing-lg: 1.2rem;
|
1117
|
+
--spacing-xl: 1.8rem;
|
1118
|
+
|
1119
|
+
--text-color: #222222;
|
1120
|
+
--link-color: #990ae3;
|
1121
|
+
--gray-color: #f3f3f8;
|
1122
|
+
--gray-dark-color: #a6a6a6;
|
1123
|
+
|
1124
|
+
--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
1125
|
+
--border-radius: var(--spacing-sm);
|
1126
|
+
--border-radius-sm: var(--spacing-sm);
|
1127
|
+
}
|
1128
|
+
:host {
|
1129
|
+
--voca-rem-multiplier: 0.625;
|
1130
|
+
box-sizing: border-box;
|
1131
|
+
display: block;
|
1132
|
+
}
|
1133
|
+
|
1134
|
+
:host(.floating) {
|
1135
|
+
position: fixed;
|
1136
|
+
z-index: 6;
|
1137
|
+
inset: auto 20px 95px auto;
|
1138
|
+
max-height: calc(100vh - 120px);
|
1139
|
+
width: 400px;
|
1140
|
+
height: 700px;
|
1141
|
+
}
|
1142
|
+
:host(.floating) .widget-container {
|
1143
|
+
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
1144
|
+
border-radius: 0.7rem;
|
1145
|
+
}
|
1146
|
+
:host(.inline) {
|
1147
|
+
height: 100%;
|
1148
|
+
position: fixed;
|
1149
|
+
inset: 0 0 0 0;
|
1150
|
+
}
|
1151
|
+
|
1152
|
+
* {
|
1153
|
+
box-sizing: border-box;
|
1154
|
+
}
|
1155
|
+
.widget-container {
|
1156
|
+
height: 100%;
|
1157
|
+
background-color: var(--primary-background);
|
1158
|
+
padding: 0 var(--spacing-sm);
|
1159
|
+
}
|
1160
|
+
.widget-container.expanded {
|
1161
|
+
opacity: 1;
|
1162
|
+
animation: slideUp 0.5s;
|
1163
|
+
}
|
1164
|
+
.widget-container.hidden {
|
1165
|
+
opacity: 0;
|
1166
|
+
animation: slideDown 0.5s;
|
1167
|
+
}
|
1168
|
+
@keyframes slideDown {
|
1169
|
+
from {
|
1170
|
+
transform: translateY(0);
|
1171
|
+
opacity: 1;
|
1172
|
+
}
|
1173
|
+
to {
|
1174
|
+
transform: translateY(100%);
|
1175
|
+
opacity: 0;
|
1176
|
+
}
|
1177
|
+
}
|
1178
|
+
@keyframes slideUp {
|
1179
|
+
from {
|
1180
|
+
transform: translateY(100%);
|
1181
|
+
opacity: 0;
|
1182
|
+
}
|
1183
|
+
to {
|
1184
|
+
transform: translateY(0);
|
1185
|
+
opacity: 1;
|
1186
|
+
}
|
1187
|
+
}
|
1188
|
+
`;
|
1189
|
+
Tt([
|
1190
|
+
u({ attribute: !1 })
|
1191
|
+
], q.prototype, "application", 2);
|
1192
|
+
q = Tt([
|
1193
|
+
F("ace-wrapper")
|
1194
|
+
], q);
|
1195
|
+
var $e = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, J = (s, t, e, i) => {
|
1196
|
+
for (var r = i > 1 ? void 0 : i ? _e(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
1197
|
+
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1198
|
+
return i && r && $e(t, e, r), r;
|
1199
|
+
};
|
1200
|
+
let S = class extends f {
|
1201
|
+
constructor() {
|
1202
|
+
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
1203
|
+
}
|
1204
|
+
async connectedCallback() {
|
1205
|
+
super.connectedCallback(), await this.getGlobalEnvironment();
|
1206
|
+
}
|
1207
|
+
disconnectedCallback() {
|
1208
|
+
super.disconnectedCallback(), this.removeEventListener("environment-created", this.onEnvironmentCreated);
|
1209
|
+
}
|
1210
|
+
async onEnvironmentCreated(s) {
|
1211
|
+
this.widget = s.detail.widget, await this.activate(), this.requestUpdate();
|
1212
|
+
}
|
1213
|
+
async activate() {
|
1214
|
+
this.widget && (await this.widget.activate(), this.status = "activated");
|
1215
|
+
}
|
1216
|
+
async getGlobalEnvironment() {
|
1217
|
+
const s = globalThis.widgets;
|
1218
|
+
s && (this.widget = s.applications.find(
|
1219
|
+
(t) => t.name === this.name
|
1220
|
+
), await this.activate());
|
1221
|
+
}
|
1222
|
+
render() {
|
1223
|
+
if (!this.widget || this.status !== "activated")
|
1224
|
+
return l;
|
1225
|
+
if (this.widget.renderStrategy === nt.Trigger) {
|
1226
|
+
const s = new y();
|
1227
|
+
return s.application = this.widget, s;
|
1228
|
+
}
|
1229
|
+
return this.widget.render();
|
1230
|
+
}
|
1231
|
+
};
|
1232
|
+
S.styles = [
|
1233
|
+
P`
|
1234
|
+
:host {
|
1235
|
+
display: block;
|
1236
|
+
}
|
1237
|
+
`
|
1238
|
+
];
|
1239
|
+
J([
|
1240
|
+
u({ attribute: !0 })
|
1241
|
+
], S.prototype, "name", 2);
|
1242
|
+
J([
|
1243
|
+
L()
|
1244
|
+
], S.prototype, "widget", 2);
|
1245
|
+
J([
|
1246
|
+
L()
|
1247
|
+
], S.prototype, "status", 2);
|
1248
|
+
S = J([
|
1249
|
+
F("ace-widget")
|
1250
|
+
], S);
|
1251
|
+
const me = (s) => {
|
1252
|
+
const t = {};
|
1253
|
+
return Object.keys(s).forEach((e) => {
|
1254
|
+
e.indexOf("css-") > -1 && (t[e] = s[e]);
|
1255
|
+
}), t;
|
1256
|
+
}, ye = (s, t) => {
|
1257
|
+
const e = me(t);
|
1258
|
+
Object.entries(e).forEach(([i, r]) => {
|
1259
|
+
s.style.setProperty(i.replace("css-", ""), r);
|
1260
|
+
});
|
1261
|
+
};
|
1262
|
+
class ve extends Pt(f) {
|
1263
|
+
constructor() {
|
1264
|
+
super(...arguments), this.nodes = [];
|
1265
|
+
}
|
1266
|
+
render() {
|
1267
|
+
var t;
|
1268
|
+
return ye(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
1269
|
+
"--columns",
|
1270
|
+
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
1271
|
+
), R`${wt(this.nodes, (e) => e)}`;
|
1272
|
+
}
|
1273
|
+
}
|
1274
|
+
ve.styles = [
|
1275
|
+
P`
|
1276
|
+
:host {
|
1277
|
+
height: 100%;
|
1278
|
+
display: grid;
|
1279
|
+
justify-content: center;
|
1280
|
+
grid-auto-rows: max-content;
|
1281
|
+
grid-template-rows: auto;
|
1282
|
+
grid-template-columns: repeat(var(--columns), 1fr);
|
1283
|
+
}
|
1284
|
+
`
|
1285
|
+
];
|
1286
|
+
export {
|
1287
|
+
ve as Area,
|
1288
|
+
ve as default
|
1289
|
+
};
|