@telia-ace/widget-runtime-flamingo 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/core/get-render-state.d.ts +5 -0
  2. package/dist/core/get-render-state.d.ts.map +1 -0
  3. package/dist/{index-d589d5e4.js → index-8c63c0e1.js} +609 -666
  4. package/dist/index-8c63c0e1.js.map +1 -0
  5. package/dist/index.d.ts +0 -4
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +10 -14
  8. package/dist/render-301f6791.js +1150 -0
  9. package/dist/render-301f6791.js.map +1 -0
  10. package/dist/ui/component.d.ts.map +1 -1
  11. package/dist/ui/get-css-props.d.ts +6 -0
  12. package/dist/ui/get-css-props.d.ts.map +1 -0
  13. package/dist/ui/get-layout-props.d.ts +10 -0
  14. package/dist/ui/get-layout-props.d.ts.map +1 -0
  15. package/dist/ui/render.d.ts.map +1 -1
  16. package/dist/ui/wrapper.d.ts +9 -1
  17. package/dist/ui/wrapper.d.ts.map +1 -1
  18. package/package.json +1 -1
  19. package/dist/area-65adc6a5.js +0 -50
  20. package/dist/area-65adc6a5.js.map +0 -1
  21. package/dist/components/area/area-component.d.ts +0 -28
  22. package/dist/components/area/area-component.d.ts.map +0 -1
  23. package/dist/components/area/area.d.ts +0 -10
  24. package/dist/components/area/area.d.ts.map +0 -1
  25. package/dist/components/copyright/copyright-component.d.ts +0 -4
  26. package/dist/components/copyright/copyright-component.d.ts.map +0 -1
  27. package/dist/components/copyright/copyright.d.ts +0 -8
  28. package/dist/components/copyright/copyright.d.ts.map +0 -1
  29. package/dist/components/widget-header/widget-header-component.d.ts +0 -4
  30. package/dist/components/widget-header/widget-header-component.d.ts.map +0 -1
  31. package/dist/components/widget-header/widget-header.d.ts +0 -8
  32. package/dist/components/widget-header/widget-header.d.ts.map +0 -1
  33. package/dist/copyright-ef48bb60.js +0 -171
  34. package/dist/copyright-ef48bb60.js.map +0 -1
  35. package/dist/core/lock.d.ts +0 -10
  36. package/dist/core/lock.d.ts.map +0 -1
  37. package/dist/index-d589d5e4.js.map +0 -1
  38. package/dist/query-assigned-elements-a9b1c83a.js +0 -668
  39. package/dist/query-assigned-elements-a9b1c83a.js.map +0 -1
  40. package/dist/render-8726e104.js +0 -255
  41. package/dist/render-8726e104.js.map +0 -1
  42. package/dist/widget-header-f222904a.js +0 -55
  43. package/dist/widget-header-f222904a.js.map +0 -1
@@ -0,0 +1,1150 @@
1
+ var Ut = Object.defineProperty, Ht = Object.defineProperties;
2
+ var Mt = Object.getOwnPropertyDescriptors;
3
+ var lt = Object.getOwnPropertySymbols;
4
+ var Lt = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable;
5
+ var at = (i, t, e) => t in i ? Ut(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, _ = (i, t) => {
6
+ for (var e in t || (t = {}))
7
+ Lt.call(t, e) && at(i, e, t[e]);
8
+ if (lt)
9
+ for (var e of lt(t))
10
+ zt.call(t, e) && at(i, e, t[e]);
11
+ return i;
12
+ }, V = (i, t) => Ht(i, Mt(t));
13
+ var N = (i, t, e) => new Promise((s, o) => {
14
+ var n = (l) => {
15
+ try {
16
+ a(e.next(l));
17
+ } catch (h) {
18
+ o(h);
19
+ }
20
+ }, r = (l) => {
21
+ try {
22
+ a(e.throw(l));
23
+ } catch (h) {
24
+ o(h);
25
+ }
26
+ }, a = (l) => l.done ? s(l.value) : Promise.resolve(l.value).then(n, r);
27
+ a((e = e.apply(i, t)).next());
28
+ });
29
+ import { s as Dt, a as Vt, d as jt, c as It, p as Bt, b as Gt, l as Wt, e as At, E as ht, f as wt, m as j } from "./index-8c63c0e1.js";
30
+ /**
31
+ * @license
32
+ * Copyright 2021 Google LLC
33
+ * SPDX-License-Identifier: BSD-3-Clause
34
+ */
35
+ let qt = class {
36
+ constructor(t) {
37
+ this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
38
+ for (const [e, { disposer: s }] of this.subscriptions)
39
+ e(this.o, s);
40
+ }, t !== void 0 && (this.value = t);
41
+ }
42
+ get value() {
43
+ return this.o;
44
+ }
45
+ set value(t) {
46
+ this.setValue(t);
47
+ }
48
+ setValue(t, e = !1) {
49
+ const s = e || !Object.is(t, this.o);
50
+ this.o = t, s && this.updateObservers();
51
+ }
52
+ addCallback(t, e, s) {
53
+ if (!s)
54
+ return void t(this.value);
55
+ this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
56
+ this.subscriptions.delete(t);
57
+ }, consumerHost: e });
58
+ const { disposer: o } = this.subscriptions.get(t);
59
+ t(this.value, o);
60
+ }
61
+ clearCallbacks() {
62
+ this.subscriptions.clear();
63
+ }
64
+ };
65
+ /**
66
+ * @license
67
+ * Copyright 2021 Google LLC
68
+ * SPDX-License-Identifier: BSD-3-Clause
69
+ */
70
+ let Yt = class extends Event {
71
+ constructor(t) {
72
+ super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
73
+ }
74
+ }, C = class extends qt {
75
+ constructor(t, e, s) {
76
+ super(e.context !== void 0 ? e.initialValue : s), this.onContextRequest = (o) => {
77
+ const n = o.composedPath()[0];
78
+ o.context === this.context && n !== this.host && (o.stopPropagation(), this.addCallback(o.callback, n, o.subscribe));
79
+ }, this.onProviderRequest = (o) => {
80
+ const n = o.composedPath()[0];
81
+ if (o.context === this.context && n !== this.host) {
82
+ for (const [r, { consumerHost: a }] of this.subscriptions)
83
+ a.dispatchEvent(new Dt(this.context, r, !0));
84
+ o.stopPropagation();
85
+ }
86
+ }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), this.host.addController(this);
87
+ }
88
+ attachListeners() {
89
+ this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
90
+ }
91
+ hostConnected() {
92
+ this.host.dispatchEvent(new Yt(this.context));
93
+ }
94
+ };
95
+ /**
96
+ * @license
97
+ * Copyright 2017 Google LLC
98
+ * SPDX-License-Identifier: BSD-3-Clause
99
+ */
100
+ const Kt = ({ finisher: i, descriptor: t }) => (e, s) => {
101
+ var o;
102
+ if (s === void 0) {
103
+ const n = (o = e.originalKey) !== null && o !== void 0 ? o : e.key, r = t != null ? { kind: "method", placement: "prototype", key: n, descriptor: t(e.key) } : V(_({}, e), { key: n });
104
+ return i != null && (r.finisher = function(a) {
105
+ i(a, n);
106
+ }), r;
107
+ }
108
+ {
109
+ const n = e.constructor;
110
+ t !== void 0 && Object.defineProperty(e, s, t(s)), i == null || i(n, s);
111
+ }
112
+ };
113
+ /**
114
+ * @license
115
+ * Copyright 2022 Google LLC
116
+ * SPDX-License-Identifier: BSD-3-Clause
117
+ */
118
+ function Zt({ context: i, subscribe: t }) {
119
+ return Kt({ finisher: (e, s) => {
120
+ e.addInitializer((o) => {
121
+ new Vt(o, { context: i, callback: (n) => {
122
+ o[s] = n;
123
+ }, subscribe: t });
124
+ });
125
+ } });
126
+ }
127
+ /**
128
+ * @license
129
+ * Copyright 2019 Google LLC
130
+ * SPDX-License-Identifier: BSD-3-Clause
131
+ */
132
+ const I = window, nt = I.ShadowRoot && (I.ShadyCSS === void 0 || I.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, rt = Symbol(), ct = /* @__PURE__ */ new WeakMap();
133
+ let Et = class {
134
+ constructor(t, e, s) {
135
+ if (this._$cssResult$ = !0, s !== rt)
136
+ throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
137
+ this.cssText = t, this.t = e;
138
+ }
139
+ get styleSheet() {
140
+ let t = this.o;
141
+ const e = this.t;
142
+ if (nt && t === void 0) {
143
+ const s = e !== void 0 && e.length === 1;
144
+ s && (t = ct.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && ct.set(e, t));
145
+ }
146
+ return t;
147
+ }
148
+ toString() {
149
+ return this.cssText;
150
+ }
151
+ };
152
+ const Ft = (i) => new Et(typeof i == "string" ? i : i + "", void 0, rt), Ct = (i, ...t) => {
153
+ const e = i.length === 1 ? i[0] : t.reduce((s, o, n) => s + ((r) => {
154
+ if (r._$cssResult$ === !0)
155
+ return r.cssText;
156
+ if (typeof r == "number")
157
+ return r;
158
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
159
+ })(o) + i[n + 1], i[0]);
160
+ return new Et(e, i, rt);
161
+ }, Jt = (i, t) => {
162
+ nt ? i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
163
+ const s = document.createElement("style"), o = I.litNonce;
164
+ o !== void 0 && s.setAttribute("nonce", o), s.textContent = e.cssText, i.appendChild(s);
165
+ });
166
+ }, dt = nt ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
167
+ let e = "";
168
+ for (const s of t.cssRules)
169
+ e += s.cssText;
170
+ return Ft(e);
171
+ })(i) : i;
172
+ /**
173
+ * @license
174
+ * Copyright 2017 Google LLC
175
+ * SPDX-License-Identifier: BSD-3-Clause
176
+ */
177
+ var K;
178
+ const B = window, pt = B.trustedTypes, Qt = pt ? pt.emptyScript : "", ut = B.reactiveElementPolyfillSupport, st = { toAttribute(i, t) {
179
+ switch (t) {
180
+ case Boolean:
181
+ i = i ? Qt : null;
182
+ break;
183
+ case Object:
184
+ case Array:
185
+ i = i == null ? i : JSON.stringify(i);
186
+ }
187
+ return i;
188
+ }, fromAttribute(i, t) {
189
+ let e = i;
190
+ switch (t) {
191
+ case Boolean:
192
+ e = i !== null;
193
+ break;
194
+ case Number:
195
+ e = i === null ? null : Number(i);
196
+ break;
197
+ case Object:
198
+ case Array:
199
+ try {
200
+ e = JSON.parse(i);
201
+ } catch (s) {
202
+ e = null;
203
+ }
204
+ }
205
+ return e;
206
+ } }, St = (i, t) => t !== i && (t == t || i == i), Z = { attribute: !0, type: String, converter: st, reflect: !1, hasChanged: St }, it = "finalized";
207
+ let S = class extends HTMLElement {
208
+ constructor() {
209
+ super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
210
+ }
211
+ static addInitializer(t) {
212
+ var e;
213
+ this.finalize(), ((e = this.h) !== null && e !== void 0 ? e : this.h = []).push(t);
214
+ }
215
+ static get observedAttributes() {
216
+ this.finalize();
217
+ const t = [];
218
+ return this.elementProperties.forEach((e, s) => {
219
+ const o = this._$Ep(s, e);
220
+ o !== void 0 && (this._$Ev.set(o, s), t.push(o));
221
+ }), t;
222
+ }
223
+ static createProperty(t, e = Z) {
224
+ if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
225
+ const s = typeof t == "symbol" ? Symbol() : "__" + t, o = this.getPropertyDescriptor(t, s, e);
226
+ o !== void 0 && Object.defineProperty(this.prototype, t, o);
227
+ }
228
+ }
229
+ static getPropertyDescriptor(t, e, s) {
230
+ return { get() {
231
+ return this[e];
232
+ }, set(o) {
233
+ const n = this[t];
234
+ this[e] = o, this.requestUpdate(t, n, s);
235
+ }, configurable: !0, enumerable: !0 };
236
+ }
237
+ static getPropertyOptions(t) {
238
+ return this.elementProperties.get(t) || Z;
239
+ }
240
+ static finalize() {
241
+ if (this.hasOwnProperty(it))
242
+ return !1;
243
+ this[it] = !0;
244
+ const t = Object.getPrototypeOf(this);
245
+ if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
246
+ const e = this.properties, s = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
247
+ for (const o of s)
248
+ this.createProperty(o, e[o]);
249
+ }
250
+ return this.elementStyles = this.finalizeStyles(this.styles), !0;
251
+ }
252
+ static finalizeStyles(t) {
253
+ const e = [];
254
+ if (Array.isArray(t)) {
255
+ const s = new Set(t.flat(1 / 0).reverse());
256
+ for (const o of s)
257
+ e.unshift(dt(o));
258
+ } else
259
+ t !== void 0 && e.push(dt(t));
260
+ return e;
261
+ }
262
+ static _$Ep(t, e) {
263
+ const s = e.attribute;
264
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
265
+ }
266
+ _$Eu() {
267
+ var t;
268
+ this._$E_ = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t = this.constructor.h) === null || t === void 0 || t.forEach((e) => e(this));
269
+ }
270
+ addController(t) {
271
+ var e, s;
272
+ ((e = this._$ES) !== null && e !== void 0 ? e : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((s = t.hostConnected) === null || s === void 0 || s.call(t));
273
+ }
274
+ removeController(t) {
275
+ var e;
276
+ (e = this._$ES) === null || e === void 0 || e.splice(this._$ES.indexOf(t) >>> 0, 1);
277
+ }
278
+ _$Eg() {
279
+ this.constructor.elementProperties.forEach((t, e) => {
280
+ this.hasOwnProperty(e) && (this._$Ei.set(e, this[e]), delete this[e]);
281
+ });
282
+ }
283
+ createRenderRoot() {
284
+ var t;
285
+ const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
286
+ return Jt(e, this.constructor.elementStyles), e;
287
+ }
288
+ connectedCallback() {
289
+ var t;
290
+ this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
291
+ var s;
292
+ return (s = e.hostConnected) === null || s === void 0 ? void 0 : s.call(e);
293
+ });
294
+ }
295
+ enableUpdating(t) {
296
+ }
297
+ disconnectedCallback() {
298
+ var t;
299
+ (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
300
+ var s;
301
+ return (s = e.hostDisconnected) === null || s === void 0 ? void 0 : s.call(e);
302
+ });
303
+ }
304
+ attributeChangedCallback(t, e, s) {
305
+ this._$AK(t, s);
306
+ }
307
+ _$EO(t, e, s = Z) {
308
+ var o;
309
+ const n = this.constructor._$Ep(t, s);
310
+ if (n !== void 0 && s.reflect === !0) {
311
+ const r = (((o = s.converter) === null || o === void 0 ? void 0 : o.toAttribute) !== void 0 ? s.converter : st).toAttribute(e, s.type);
312
+ this._$El = t, r == null ? this.removeAttribute(n) : this.setAttribute(n, r), this._$El = null;
313
+ }
314
+ }
315
+ _$AK(t, e) {
316
+ var s;
317
+ const o = this.constructor, n = o._$Ev.get(t);
318
+ if (n !== void 0 && this._$El !== n) {
319
+ const r = o.getPropertyOptions(n), a = typeof r.converter == "function" ? { fromAttribute: r.converter } : ((s = r.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? r.converter : st;
320
+ this._$El = n, this[n] = a.fromAttribute(e, r.type), this._$El = null;
321
+ }
322
+ }
323
+ requestUpdate(t, e, s) {
324
+ let o = !0;
325
+ t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || St)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, s))) : o = !1), !this.isUpdatePending && o && (this._$E_ = this._$Ej());
326
+ }
327
+ _$Ej() {
328
+ return N(this, null, function* () {
329
+ this.isUpdatePending = !0;
330
+ try {
331
+ yield this._$E_;
332
+ } catch (e) {
333
+ Promise.reject(e);
334
+ }
335
+ const t = this.scheduleUpdate();
336
+ return t != null && (yield t), !this.isUpdatePending;
337
+ });
338
+ }
339
+ scheduleUpdate() {
340
+ return this.performUpdate();
341
+ }
342
+ performUpdate() {
343
+ var t;
344
+ if (!this.isUpdatePending)
345
+ return;
346
+ this.hasUpdated, this._$Ei && (this._$Ei.forEach((o, n) => this[n] = o), this._$Ei = void 0);
347
+ let e = !1;
348
+ const s = this._$AL;
349
+ try {
350
+ e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$ES) === null || t === void 0 || t.forEach((o) => {
351
+ var n;
352
+ return (n = o.hostUpdate) === null || n === void 0 ? void 0 : n.call(o);
353
+ }), this.update(s)) : this._$Ek();
354
+ } catch (o) {
355
+ throw e = !1, this._$Ek(), o;
356
+ }
357
+ e && this._$AE(s);
358
+ }
359
+ willUpdate(t) {
360
+ }
361
+ _$AE(t) {
362
+ var e;
363
+ (e = this._$ES) === null || e === void 0 || e.forEach((s) => {
364
+ var o;
365
+ return (o = s.hostUpdated) === null || o === void 0 ? void 0 : o.call(s);
366
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
367
+ }
368
+ _$Ek() {
369
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
370
+ }
371
+ get updateComplete() {
372
+ return this.getUpdateComplete();
373
+ }
374
+ getUpdateComplete() {
375
+ return this._$E_;
376
+ }
377
+ shouldUpdate(t) {
378
+ return !0;
379
+ }
380
+ update(t) {
381
+ this._$EC !== void 0 && (this._$EC.forEach((e, s) => this._$EO(s, this[s], e)), this._$EC = void 0), this._$Ek();
382
+ }
383
+ updated(t) {
384
+ }
385
+ firstUpdated(t) {
386
+ }
387
+ };
388
+ S[it] = !0, S.elementProperties = /* @__PURE__ */ new Map(), S.elementStyles = [], S.shadowRootOptions = { mode: "open" }, ut == null || ut({ ReactiveElement: S }), ((K = B.reactiveElementVersions) !== null && K !== void 0 ? K : B.reactiveElementVersions = []).push("1.6.3");
389
+ /**
390
+ * @license
391
+ * Copyright 2017 Google LLC
392
+ * SPDX-License-Identifier: BSD-3-Clause
393
+ */
394
+ var F;
395
+ const G = window, P = G.trustedTypes, vt = P ? P.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, ot = "$lit$", y = `lit$${(Math.random() + "").slice(9)}$`, xt = "?" + y, Xt = `<${xt}>`, w = document, H = () => w.createComment(""), M = (i) => i === null || typeof i != "object" && typeof i != "function", Pt = Array.isArray, te = (i) => Pt(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", J = `[
396
+ \f\r]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, ft = />/g, b = RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
397
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), _t = /'/g, yt = /"/g, kt = /^(?:script|style|textarea|title)$/i, ee = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), se = ee(1), k = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), mt = /* @__PURE__ */ new WeakMap(), A = w.createTreeWalker(w, 129, null, !1);
398
+ function Rt(i, t) {
399
+ if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
400
+ throw Error("invalid template strings array");
401
+ return vt !== void 0 ? vt.createHTML(t) : t;
402
+ }
403
+ const ie = (i, t) => {
404
+ const e = i.length - 1, s = [];
405
+ let o, n = t === 2 ? "<svg>" : "", r = T;
406
+ for (let a = 0; a < e; a++) {
407
+ const l = i[a];
408
+ let h, c, d = -1, u = 0;
409
+ for (; u < l.length && (r.lastIndex = u, c = r.exec(l), c !== null); )
410
+ u = r.lastIndex, r === T ? c[1] === "!--" ? r = $t : c[1] !== void 0 ? r = ft : c[2] !== void 0 ? (kt.test(c[2]) && (o = RegExp("</" + c[2], "g")), r = b) : c[3] !== void 0 && (r = b) : r === b ? c[0] === ">" ? (r = o != null ? o : T, d = -1) : c[1] === void 0 ? d = -2 : (d = r.lastIndex - c[2].length, h = c[1], r = c[3] === void 0 ? b : c[3] === '"' ? yt : _t) : r === yt || r === _t ? r = b : r === $t || r === ft ? r = T : (r = b, o = void 0);
411
+ const $ = r === b && i[a + 1].startsWith("/>") ? " " : "";
412
+ n += r === T ? l + Xt : d >= 0 ? (s.push(h), l.slice(0, d) + ot + l.slice(d) + y + $) : l + y + (d === -2 ? (s.push(void 0), a) : $);
413
+ }
414
+ return [Rt(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
415
+ };
416
+ class L {
417
+ constructor({ strings: t, _$litType$: e }, s) {
418
+ let o;
419
+ this.parts = [];
420
+ let n = 0, r = 0;
421
+ const a = t.length - 1, l = this.parts, [h, c] = ie(t, e);
422
+ if (this.el = L.createElement(h, s), A.currentNode = this.el.content, e === 2) {
423
+ const d = this.el.content, u = d.firstChild;
424
+ u.remove(), d.append(...u.childNodes);
425
+ }
426
+ for (; (o = A.nextNode()) !== null && l.length < a; ) {
427
+ if (o.nodeType === 1) {
428
+ if (o.hasAttributes()) {
429
+ const d = [];
430
+ for (const u of o.getAttributeNames())
431
+ if (u.endsWith(ot) || u.startsWith(y)) {
432
+ const $ = c[r++];
433
+ if (d.push(u), $ !== void 0) {
434
+ const Tt = o.getAttribute($.toLowerCase() + ot).split(y), D = /([.?@])?(.*)/.exec($);
435
+ l.push({ type: 1, index: n, name: D[2], strings: Tt, ctor: D[1] === "." ? ne : D[1] === "?" ? le : D[1] === "@" ? ae : q });
436
+ } else
437
+ l.push({ type: 6, index: n });
438
+ }
439
+ for (const u of d)
440
+ o.removeAttribute(u);
441
+ }
442
+ if (kt.test(o.tagName)) {
443
+ const d = o.textContent.split(y), u = d.length - 1;
444
+ if (u > 0) {
445
+ o.textContent = P ? P.emptyScript : "";
446
+ for (let $ = 0; $ < u; $++)
447
+ o.append(d[$], H()), A.nextNode(), l.push({ type: 2, index: ++n });
448
+ o.append(d[u], H());
449
+ }
450
+ }
451
+ } else if (o.nodeType === 8)
452
+ if (o.data === xt)
453
+ l.push({ type: 2, index: n });
454
+ else {
455
+ let d = -1;
456
+ for (; (d = o.data.indexOf(y, d + 1)) !== -1; )
457
+ l.push({ type: 7, index: n }), d += y.length - 1;
458
+ }
459
+ n++;
460
+ }
461
+ }
462
+ static createElement(t, e) {
463
+ const s = w.createElement("template");
464
+ return s.innerHTML = t, s;
465
+ }
466
+ }
467
+ function R(i, t, e = i, s) {
468
+ var o, n, r, a;
469
+ if (t === k)
470
+ return t;
471
+ let l = s !== void 0 ? (o = e._$Co) === null || o === void 0 ? void 0 : o[s] : e._$Cl;
472
+ const h = M(t) ? void 0 : t._$litDirective$;
473
+ return (l == null ? void 0 : l.constructor) !== h && ((n = l == null ? void 0 : l._$AO) === null || n === void 0 || n.call(l, !1), h === void 0 ? l = void 0 : (l = new h(i), l._$AT(i, e, s)), s !== void 0 ? ((r = (a = e)._$Co) !== null && r !== void 0 ? r : a._$Co = [])[s] = l : e._$Cl = l), l !== void 0 && (t = R(i, l._$AS(i, t.values), l, s)), t;
474
+ }
475
+ class oe {
476
+ constructor(t, e) {
477
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
478
+ }
479
+ get parentNode() {
480
+ return this._$AM.parentNode;
481
+ }
482
+ get _$AU() {
483
+ return this._$AM._$AU;
484
+ }
485
+ u(t) {
486
+ var e;
487
+ const { el: { content: s }, parts: o } = this._$AD, n = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : w).importNode(s, !0);
488
+ A.currentNode = n;
489
+ let r = A.nextNode(), a = 0, l = 0, h = o[0];
490
+ for (; h !== void 0; ) {
491
+ if (a === h.index) {
492
+ let c;
493
+ h.type === 2 ? c = new z(r, r.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(r, h.name, h.strings, this, t) : h.type === 6 && (c = new he(r, this, t)), this._$AV.push(c), h = o[++l];
494
+ }
495
+ a !== (h == null ? void 0 : h.index) && (r = A.nextNode(), a++);
496
+ }
497
+ return A.currentNode = w, n;
498
+ }
499
+ v(t) {
500
+ let e = 0;
501
+ for (const s of this._$AV)
502
+ s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
503
+ }
504
+ }
505
+ class z {
506
+ constructor(t, e, s, o) {
507
+ var n;
508
+ this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = o, this._$Cp = (n = o == null ? void 0 : o.isConnected) === null || n === void 0 || n;
509
+ }
510
+ get _$AU() {
511
+ var t, e;
512
+ return (e = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && e !== void 0 ? e : this._$Cp;
513
+ }
514
+ get parentNode() {
515
+ let t = this._$AA.parentNode;
516
+ const e = this._$AM;
517
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
518
+ }
519
+ get startNode() {
520
+ return this._$AA;
521
+ }
522
+ get endNode() {
523
+ return this._$AB;
524
+ }
525
+ _$AI(t, e = this) {
526
+ t = R(this, t, e), M(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== k && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : te(t) ? this.T(t) : this._(t);
527
+ }
528
+ k(t) {
529
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
530
+ }
531
+ $(t) {
532
+ this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
533
+ }
534
+ _(t) {
535
+ this._$AH !== p && M(this._$AH) ? this._$AA.nextSibling.data = t : this.$(w.createTextNode(t)), this._$AH = t;
536
+ }
537
+ g(t) {
538
+ var e;
539
+ const { values: s, _$litType$: o } = t, n = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el = L.createElement(Rt(o.h, o.h[0]), this.options)), o);
540
+ if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === n)
541
+ this._$AH.v(s);
542
+ else {
543
+ const r = new oe(n, this), a = r.u(this.options);
544
+ r.v(s), this.$(a), this._$AH = r;
545
+ }
546
+ }
547
+ _$AC(t) {
548
+ let e = mt.get(t.strings);
549
+ return e === void 0 && mt.set(t.strings, e = new L(t)), e;
550
+ }
551
+ T(t) {
552
+ Pt(this._$AH) || (this._$AH = [], this._$AR());
553
+ const e = this._$AH;
554
+ let s, o = 0;
555
+ for (const n of t)
556
+ o === e.length ? e.push(s = new z(this.k(H()), this.k(H()), this, this.options)) : s = e[o], s._$AI(n), o++;
557
+ o < e.length && (this._$AR(s && s._$AB.nextSibling, o), e.length = o);
558
+ }
559
+ _$AR(t = this._$AA.nextSibling, e) {
560
+ var s;
561
+ for ((s = this._$AP) === null || s === void 0 || s.call(this, !1, !0, e); t && t !== this._$AB; ) {
562
+ const o = t.nextSibling;
563
+ t.remove(), t = o;
564
+ }
565
+ }
566
+ setConnected(t) {
567
+ var e;
568
+ this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
569
+ }
570
+ }
571
+ class q {
572
+ constructor(t, e, s, o, n) {
573
+ this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = o, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = p;
574
+ }
575
+ get tagName() {
576
+ return this.element.tagName;
577
+ }
578
+ get _$AU() {
579
+ return this._$AM._$AU;
580
+ }
581
+ _$AI(t, e = this, s, o) {
582
+ const n = this.strings;
583
+ let r = !1;
584
+ if (n === void 0)
585
+ t = R(this, t, e, 0), r = !M(t) || t !== this._$AH && t !== k, r && (this._$AH = t);
586
+ else {
587
+ const a = t;
588
+ let l, h;
589
+ for (t = n[0], l = 0; l < n.length - 1; l++)
590
+ h = R(this, a[s + l], e, l), h === k && (h = this._$AH[l]), r || (r = !M(h) || h !== this._$AH[l]), h === p ? t = p : t !== p && (t += (h != null ? h : "") + n[l + 1]), this._$AH[l] = h;
591
+ }
592
+ r && !o && this.j(t);
593
+ }
594
+ j(t) {
595
+ t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : "");
596
+ }
597
+ }
598
+ class ne extends q {
599
+ constructor() {
600
+ super(...arguments), this.type = 3;
601
+ }
602
+ j(t) {
603
+ this.element[this.name] = t === p ? void 0 : t;
604
+ }
605
+ }
606
+ const re = P ? P.emptyScript : "";
607
+ class le extends q {
608
+ constructor() {
609
+ super(...arguments), this.type = 4;
610
+ }
611
+ j(t) {
612
+ t && t !== p ? this.element.setAttribute(this.name, re) : this.element.removeAttribute(this.name);
613
+ }
614
+ }
615
+ class ae extends q {
616
+ constructor(t, e, s, o, n) {
617
+ super(t, e, s, o, n), this.type = 5;
618
+ }
619
+ _$AI(t, e = this) {
620
+ var s;
621
+ if ((t = (s = R(this, t, e, 0)) !== null && s !== void 0 ? s : p) === k)
622
+ return;
623
+ const o = this._$AH, n = t === p && o !== p || t.capture !== o.capture || t.once !== o.once || t.passive !== o.passive, r = t !== p && (o === p || n);
624
+ n && this.element.removeEventListener(this.name, this, o), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
625
+ }
626
+ handleEvent(t) {
627
+ var e, s;
628
+ typeof this._$AH == "function" ? this._$AH.call((s = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && s !== void 0 ? s : this.element, t) : this._$AH.handleEvent(t);
629
+ }
630
+ }
631
+ class he {
632
+ constructor(t, e, s) {
633
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
634
+ }
635
+ get _$AU() {
636
+ return this._$AM._$AU;
637
+ }
638
+ _$AI(t) {
639
+ R(this, t);
640
+ }
641
+ }
642
+ const gt = G.litHtmlPolyfillSupport;
643
+ gt == null || gt(L, z), ((F = G.litHtmlVersions) !== null && F !== void 0 ? F : G.litHtmlVersions = []).push("2.8.0");
644
+ const ce = (i, t, e) => {
645
+ var s, o;
646
+ const n = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : t;
647
+ let r = n._$litPart$;
648
+ if (r === void 0) {
649
+ const a = (o = e == null ? void 0 : e.renderBefore) !== null && o !== void 0 ? o : null;
650
+ n._$litPart$ = r = new z(t.insertBefore(H(), a), a, void 0, e != null ? e : {});
651
+ }
652
+ return r._$AI(i), r;
653
+ };
654
+ /**
655
+ * @license
656
+ * Copyright 2017 Google LLC
657
+ * SPDX-License-Identifier: BSD-3-Clause
658
+ */
659
+ var Q, X;
660
+ let x = class extends S {
661
+ constructor() {
662
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
663
+ }
664
+ createRenderRoot() {
665
+ var t, e;
666
+ const s = super.createRenderRoot();
667
+ return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = s.firstChild), s;
668
+ }
669
+ update(t) {
670
+ const e = this.render();
671
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ce(e, this.renderRoot, this.renderOptions);
672
+ }
673
+ connectedCallback() {
674
+ var t;
675
+ super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);
676
+ }
677
+ disconnectedCallback() {
678
+ var t;
679
+ super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
680
+ }
681
+ render() {
682
+ return k;
683
+ }
684
+ };
685
+ x.finalized = !0, x._$litElement$ = !0, (Q = globalThis.litElementHydrateSupport) === null || Q === void 0 || Q.call(globalThis, { LitElement: x });
686
+ const bt = globalThis.litElementPolyfillSupport;
687
+ bt == null || bt({ LitElement: x });
688
+ ((X = globalThis.litElementVersions) !== null && X !== void 0 ? X : globalThis.litElementVersions = []).push("3.3.3");
689
+ /**
690
+ * @license
691
+ * Copyright 2017 Google LLC
692
+ * SPDX-License-Identifier: BSD-3-Clause
693
+ */
694
+ const Ot = (i) => (t) => typeof t == "function" ? ((e, s) => (customElements.define(e, s), s))(i, t) : ((e, s) => {
695
+ const { kind: o, elements: n } = s;
696
+ return { kind: o, elements: n, finisher(r) {
697
+ customElements.define(e, r);
698
+ } };
699
+ })(i, t);
700
+ /**
701
+ * @license
702
+ * Copyright 2017 Google LLC
703
+ * SPDX-License-Identifier: BSD-3-Clause
704
+ */
705
+ const de = (i, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? V(_({}, t), { finisher(e) {
706
+ e.createProperty(t.key, i);
707
+ } }) : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
708
+ typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
709
+ }, finisher(e) {
710
+ e.createProperty(t.key, i);
711
+ } }, pe = (i, t, e) => {
712
+ t.constructor.createProperty(e, i);
713
+ };
714
+ function Y(i) {
715
+ return (t, e) => e !== void 0 ? pe(i, t, e) : de(i, t);
716
+ }
717
+ /**
718
+ * @license
719
+ * Copyright 2017 Google LLC
720
+ * SPDX-License-Identifier: BSD-3-Clause
721
+ */
722
+ function g(i) {
723
+ return Y(V(_({}, i), { state: !0 }));
724
+ }
725
+ /**
726
+ * @license
727
+ * Copyright 2021 Google LLC
728
+ * SPDX-License-Identifier: BSD-3-Clause
729
+ */
730
+ var tt;
731
+ ((tt = window.HTMLSlotElement) === null || tt === void 0 ? void 0 : tt.prototype.assignedElements) != null;
732
+ const v = (i, t, e) => {
733
+ i && e.style.setProperty(t, i);
734
+ }, ue = (i, t) => {
735
+ var e, s, o, n, r, a, l, h, c, d, u;
736
+ v((e = i.colors) == null ? void 0 : e.primary, "--primary-color", t), v((s = i.colors) == null ? void 0 : s.secondary, "--secondary-color", t), v((o = i.colors) == null ? void 0 : o.text, "--text-color", t), v((n = i.colors) == null ? void 0 : n.link, "--link-color", t), v((r = i.colors) == null ? void 0 : r.gray, "--gray-color", t), v((a = i.colors) == null ? void 0 : a.grayDark, "--gray-dark-color", t), v((l = i.spacing) == null ? void 0 : l.xs, "--spacing-xs", t), v((h = i.spacing) == null ? void 0 : h.sm, "--spacing-sm", t), v((c = i.spacing) == null ? void 0 : c.md, "--spacing-md", t), v((d = i.spacing) == null ? void 0 : d.lg, "--spacing-lg", t), v((u = i.spacing) == null ? void 0 : u.xl, "--spacing-xl", t), v(i.boxShadow, "--box-shadow", t), v(i.borderRadius, "--border-radius", t), v(i.borderRadiusSm, "--border-radius-sm", t), v(i.fontFamily, "--font-family", t);
737
+ }, ve = (i) => {
738
+ const t = {};
739
+ return Object.keys(i).forEach((e) => {
740
+ e.indexOf("css-") > -1 && (t[e] = i[e]);
741
+ }), t;
742
+ }, $e = (i, t) => {
743
+ const e = ve(t);
744
+ Object.entries(e).forEach(([s, o]) => {
745
+ i.style.setProperty(s.replace("css-", ""), o);
746
+ });
747
+ };
748
+ var fe = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, O = (i, t, e, s) => {
749
+ for (var o = s > 1 ? void 0 : s ? _e(t, e) : t, n = i.length - 1, r; n >= 0; n--)
750
+ (r = i[n]) && (o = (s ? r(t, e, o) : r(o)) || o);
751
+ return s && o && fe(t, e, o), o;
752
+ };
753
+ let m = class extends x {
754
+ constructor() {
755
+ super(...arguments), this._descriptorProvider = new C(
756
+ this,
757
+ jt,
758
+ void 0
759
+ ), this._childrenProvider = new C(this, It, []), this._propertiesProvider = new C(this, Bt, {}), this._contextProvider = new C(this, Gt, {}), this._layoutProvider = new C(this, Wt, {}), this.entry = "";
760
+ }
761
+ connectedCallback() {
762
+ super.connectedCallback(), this.container && At.getInstance(this.container).then(
763
+ (i) => N(this, null, function* () {
764
+ const t = i.nodes.get(this.entry);
765
+ if (t) {
766
+ this._propertyChangeListener = i.events.subscribe(
767
+ "components:properties-changed",
768
+ (r, a) => {
769
+ t.id === a.node.id && this._propertiesProvider.setValue(
770
+ a.node.attributes.properties
771
+ );
772
+ }
773
+ );
774
+ const e = "default";
775
+ this.descriptor = ht(t, e), this._unmountNode = t.mount(this.container), this._descriptorProvider.setValue(this.descriptor), this._propertiesProvider.setValue(
776
+ t.attributes.properties
777
+ ), this._contextProvider.setValue(t.attributes.context), this.layout = t.attributes.layout, this._layoutProvider.setValue(this.layout);
778
+ const s = t.getChildren(e).map((r) => ht(r));
779
+ this._childrenProvider.setValue(s);
780
+ const n = (yield this.container.getAsync("componentResolver")).getComponent(
781
+ this.descriptor.type || ""
782
+ );
783
+ n.then && n.then((r) => {
784
+ this.component = r.default;
785
+ });
786
+ }
787
+ })
788
+ );
789
+ }
790
+ disconnectedCallback() {
791
+ super.disconnectedCallback(), this._propertyChangeListener && this._propertyChangeListener(), this._unmountNode && this._unmountNode();
792
+ }
793
+ render() {
794
+ if (!this.component)
795
+ return p;
796
+ const i = new this.component(), t = this._contextProvider.value;
797
+ return ue(t, this.renderRoot.host), this.renderRoot.host.style.setProperty(
798
+ "--width",
799
+ this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
800
+ ), $e(
801
+ this.renderRoot.host,
802
+ this._propertiesProvider.value
803
+ ), i;
804
+ }
805
+ };
806
+ m.styles = Ct`
807
+ :host {
808
+ grid-column: span var(--width);
809
+ max-width: 100%;
810
+ overflow: hidden;
811
+ box-sizing: border-box;
812
+ display: block;
813
+
814
+ --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
815
+ --spacing-xs: 0.2rem;
816
+ --spacing-sm: 0.5rem;
817
+ --spacing-md: 1rem;
818
+ --spacing-lg: 1.2rem;
819
+ --spacing-xl: 1.8rem;
820
+
821
+ --primary-color: #29003e;
822
+ --secondary-color: #00558f;
823
+ --text-color: #222222;
824
+ --link-color: #990ae3;
825
+ --gray-color: #efefef;
826
+ --gray-dark-color: #a6a6a6;
827
+
828
+ --box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
829
+ --border-radius: 1rem;
830
+ --border-radius-sm: 0.3rem;
831
+ }
832
+ * {
833
+ box-sizing: border-box;
834
+ }
835
+ `;
836
+ O([
837
+ Zt({ context: wt }),
838
+ Y({ attribute: !1 })
839
+ ], m.prototype, "container", 2);
840
+ O([
841
+ Y()
842
+ ], m.prototype, "entry", 2);
843
+ O([
844
+ g()
845
+ ], m.prototype, "descriptor", 2);
846
+ O([
847
+ g()
848
+ ], m.prototype, "component", 2);
849
+ O([
850
+ g()
851
+ ], m.prototype, "layout", 2);
852
+ m = O([
853
+ Ot("widget-component")
854
+ ], m);
855
+ /**
856
+ * @license
857
+ * Copyright 2020 Google LLC
858
+ * SPDX-License-Identifier: BSD-3-Clause
859
+ */
860
+ const ye = (i) => i.strings === void 0;
861
+ /**
862
+ * @license
863
+ * Copyright 2017 Google LLC
864
+ * SPDX-License-Identifier: BSD-3-Clause
865
+ */
866
+ const me = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, ge = (i) => (...t) => ({ _$litDirective$: i, values: t });
867
+ class be {
868
+ constructor(t) {
869
+ }
870
+ get _$AU() {
871
+ return this._$AM._$AU;
872
+ }
873
+ _$AT(t, e, s) {
874
+ this._$Ct = t, this._$AM = e, this._$Ci = s;
875
+ }
876
+ _$AS(t, e) {
877
+ return this.update(t, e);
878
+ }
879
+ update(t, e) {
880
+ return this.render(...e);
881
+ }
882
+ }
883
+ /**
884
+ * @license
885
+ * Copyright 2017 Google LLC
886
+ * SPDX-License-Identifier: BSD-3-Clause
887
+ */
888
+ const U = (i, t) => {
889
+ var e, s;
890
+ const o = i._$AN;
891
+ if (o === void 0)
892
+ return !1;
893
+ for (const n of o)
894
+ (s = (e = n)._$AO) === null || s === void 0 || s.call(e, t, !1), U(n, t);
895
+ return !0;
896
+ }, W = (i) => {
897
+ let t, e;
898
+ do {
899
+ if ((t = i._$AM) === void 0)
900
+ break;
901
+ e = t._$AN, e.delete(i), i = t;
902
+ } while ((e == null ? void 0 : e.size) === 0);
903
+ }, Nt = (i) => {
904
+ for (let t; t = i._$AM; i = t) {
905
+ let e = t._$AN;
906
+ if (e === void 0)
907
+ t._$AN = e = /* @__PURE__ */ new Set();
908
+ else if (e.has(i))
909
+ break;
910
+ e.add(i), Ee(t);
911
+ }
912
+ };
913
+ function Ae(i) {
914
+ this._$AN !== void 0 ? (W(this), this._$AM = i, Nt(this)) : this._$AM = i;
915
+ }
916
+ function we(i, t = !1, e = 0) {
917
+ const s = this._$AH, o = this._$AN;
918
+ if (o !== void 0 && o.size !== 0)
919
+ if (t)
920
+ if (Array.isArray(s))
921
+ for (let n = e; n < s.length; n++)
922
+ U(s[n], !1), W(s[n]);
923
+ else
924
+ s != null && (U(s, !1), W(s));
925
+ else
926
+ U(this, i);
927
+ }
928
+ const Ee = (i) => {
929
+ var t, e, s, o;
930
+ i.type == me.CHILD && ((t = (s = i)._$AP) !== null && t !== void 0 || (s._$AP = we), (e = (o = i)._$AQ) !== null && e !== void 0 || (o._$AQ = Ae));
931
+ };
932
+ class Ce extends be {
933
+ constructor() {
934
+ super(...arguments), this._$AN = void 0;
935
+ }
936
+ _$AT(t, e, s) {
937
+ super._$AT(t, e, s), Nt(this), this.isConnected = t._$AU;
938
+ }
939
+ _$AO(t, e = !0) {
940
+ var s, o;
941
+ t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) === null || s === void 0 || s.call(this) : (o = this.disconnected) === null || o === void 0 || o.call(this)), e && (U(this, t), W(this));
942
+ }
943
+ setValue(t) {
944
+ if (ye(this._$Ct))
945
+ this._$Ct._$AI(t, this);
946
+ else {
947
+ const e = [...this._$Ct._$AH];
948
+ e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
949
+ }
950
+ }
951
+ disconnected() {
952
+ }
953
+ reconnected() {
954
+ }
955
+ }
956
+ /**
957
+ * @license
958
+ * Copyright 2020 Google LLC
959
+ * SPDX-License-Identifier: BSD-3-Clause
960
+ */
961
+ const Se = () => new xe();
962
+ class xe {
963
+ }
964
+ const et = /* @__PURE__ */ new WeakMap(), Pe = ge(class extends Ce {
965
+ render(i) {
966
+ return p;
967
+ }
968
+ update(i, [t]) {
969
+ var e;
970
+ const s = t !== this.G;
971
+ return s && this.G !== void 0 && this.ot(void 0), (s || this.rt !== this.lt) && (this.G = t, this.dt = (e = i.options) === null || e === void 0 ? void 0 : e.host, this.ot(this.lt = i.element)), p;
972
+ }
973
+ ot(i) {
974
+ var t;
975
+ if (typeof this.G == "function") {
976
+ const e = (t = this.dt) !== null && t !== void 0 ? t : globalThis;
977
+ let s = et.get(e);
978
+ s === void 0 && (s = /* @__PURE__ */ new WeakMap(), et.set(e, s)), s.get(this.G) !== void 0 && this.G.call(this.dt, void 0), s.set(this.G, i), i !== void 0 && this.G.call(this.dt, i);
979
+ } else
980
+ this.G.value = i;
981
+ }
982
+ get rt() {
983
+ var i, t, e;
984
+ return typeof this.G == "function" ? (t = et.get((i = this.dt) !== null && i !== void 0 ? i : globalThis)) === null || t === void 0 ? void 0 : t.get(this.G) : (e = this.G) === null || e === void 0 ? void 0 : e.value;
985
+ }
986
+ disconnected() {
987
+ this.rt === this.lt && this.ot(void 0);
988
+ }
989
+ reconnected() {
990
+ this.ot(this.lt);
991
+ }
992
+ }), ke = (i) => N(void 0, null, function* () {
993
+ return yield i.get("$widget").invoke("renderState");
994
+ }), Re = (i, t) => N(void 0, null, function* () {
995
+ const e = i.get("$widget");
996
+ return (yield i.getAsync("actionResolver")).subscribe(e.name, t);
997
+ }), Oe = (i, t, e = !1) => {
998
+ const s = i.reduce(
999
+ (r, { breakpoints: a = [], values: l }) => a.length ? t.some((h) => a.includes(h)) ? _(_({}, r), l) : r : _(_({}, r), l),
1000
+ {}
1001
+ ), o = {};
1002
+ let n = s.type;
1003
+ return o.height = s.height || "", o.width = s.width || "", s.type === "floating" || s.type === "inline" && e && (o.height = "calc(100vh - 120px)"), { type: n, styles: o };
1004
+ };
1005
+ var Ne = Object.defineProperty, Te = Object.getOwnPropertyDescriptor, E = (i, t, e, s) => {
1006
+ for (var o = s > 1 ? void 0 : s ? Te(t, e) : t, n = i.length - 1, r; n >= 0; n--)
1007
+ (r = i[n]) && (o = (s ? r(t, e, o) : r(o)) || o);
1008
+ return s && o && Ne(t, e, o), o;
1009
+ };
1010
+ let f = class extends x {
1011
+ constructor() {
1012
+ super(), this._provider = new C(this, wt, void 0), this.wrapperRef = Se(), this.breakpoints = [], this.breakpointsSet = !1;
1013
+ }
1014
+ connectedCallback() {
1015
+ super.connectedCallback(), this._provider.setValue(this.container), this.container && (ke(this.container).then((i) => {
1016
+ this.renderState = i;
1017
+ }), Re(this.container, (i, t) => {
1018
+ switch (t) {
1019
+ case "close":
1020
+ case "open":
1021
+ this.renderState = t === "open" ? j.open : j.closed;
1022
+ break;
1023
+ case "hide":
1024
+ this.renderState = j.hidden;
1025
+ }
1026
+ }).then((i) => {
1027
+ this._unsubscribeRenderState = i;
1028
+ }), At.getInstance(this.container).then(
1029
+ (i) => {
1030
+ this.componentPlatform = i, this.breakpoints = this.componentPlatform.breakpoints, this.breakpointsSet = !0, this._unsubscribePropChange = this.componentPlatform.events.subscribe(
1031
+ "components:properties-changed",
1032
+ (t, e) => {
1033
+ var s, o;
1034
+ ((s = e == null ? void 0 : e.node) == null ? void 0 : s.type) === "root" && (this.breakpoints = (o = this.componentPlatform) != null && o.breakpoints ? [...this.componentPlatform.breakpoints] : []);
1035
+ }
1036
+ ), this.entry = this.componentPlatform.nodes.root.children.default[0].id || void 0;
1037
+ }
1038
+ ));
1039
+ }
1040
+ disconnectedCallback() {
1041
+ super.disconnectedCallback(), this._unsubscribeRenderState && this._unsubscribeRenderState(), this._unsubscribePropChange && this._unsubscribePropChange();
1042
+ }
1043
+ render() {
1044
+ var t, e, s, o;
1045
+ let i;
1046
+ if (!this.entry || !this.breakpointsSet)
1047
+ return p;
1048
+ if (this.container && this.renderState) {
1049
+ const [n] = this.container.get("widgetDOMElements");
1050
+ n && n.setAttribute("data-state", this.renderState);
1051
+ }
1052
+ if (this.container) {
1053
+ const n = this.container.get("$settings");
1054
+ n != null && n.layout && (i = Oe(
1055
+ n.layout,
1056
+ this.breakpoints,
1057
+ !!n.trigger
1058
+ ), i.type === "floating" ? (this.renderRoot.host.classList.add("floating"), this.renderRoot.host.classList.remove("inline")) : (this.renderRoot.host.classList.add("inline"), this.renderRoot.host.classList.remove("floating")), Object.entries(i.styles).forEach(([r, a]) => {
1059
+ this.renderRoot.host.style.setProperty(r, a);
1060
+ }));
1061
+ }
1062
+ return this.renderState && (this.renderState === j.hidden ? ((t = this.wrapperRef.value) == null || t.classList.add("hidden"), (e = this.wrapperRef.value) == null || e.classList.remove("expanded")) : ((s = this.wrapperRef.value) == null || s.classList.remove("hidden"), (o = this.wrapperRef.value) == null || o.classList.add("expanded"))), se`
1063
+ <div class="widget-container" ${Pe(this.wrapperRef)}>
1064
+ <widget-component entry=${this.entry}></widget-component>
1065
+ </div>
1066
+ `;
1067
+ }
1068
+ };
1069
+ f.styles = Ct`
1070
+ :host {
1071
+ --voca-rem-multiplier: 0.625;
1072
+ box-sizing: border-box;
1073
+ display: block;
1074
+ }
1075
+
1076
+ :host(.floating) {
1077
+ position: fixed;
1078
+ z-index: 6;
1079
+ inset: auto 20px 95px auto;
1080
+ max-height: calc(100vh - 120px);
1081
+ }
1082
+ :host(.floating) .widget-container {
1083
+ box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
1084
+ border-radius: 0.7rem;
1085
+ }
1086
+ :host(.inline) {
1087
+ position: static;
1088
+ }
1089
+
1090
+ * {
1091
+ box-sizing: border-box;
1092
+ }
1093
+ .widget-container.expanded {
1094
+ opacity: 1;
1095
+ animation: slideUp 0.5s;
1096
+ }
1097
+ .widget-container.hidden {
1098
+ opacity: 0;
1099
+ animation: slideDown 0.5s;
1100
+ }
1101
+ @keyframes slideDown {
1102
+ from {
1103
+ transform: translateY(0);
1104
+ opacity: 1;
1105
+ }
1106
+ to {
1107
+ transform: translateY(100%);
1108
+ opacity: 0;
1109
+ }
1110
+ }
1111
+ @keyframes slideUp {
1112
+ from {
1113
+ transform: translateY(100%);
1114
+ opacity: 0;
1115
+ }
1116
+ to {
1117
+ transform: translateY(0);
1118
+ opacity: 1;
1119
+ }
1120
+ }
1121
+ `;
1122
+ E([
1123
+ Y({ attribute: !1 })
1124
+ ], f.prototype, "container", 2);
1125
+ E([
1126
+ g()
1127
+ ], f.prototype, "componentPlatform", 2);
1128
+ E([
1129
+ g()
1130
+ ], f.prototype, "renderState", 2);
1131
+ E([
1132
+ g()
1133
+ ], f.prototype, "breakpoints", 2);
1134
+ E([
1135
+ g()
1136
+ ], f.prototype, "breakpointsSet", 2);
1137
+ E([
1138
+ g()
1139
+ ], f.prototype, "entry", 2);
1140
+ f = E([
1141
+ Ot("wrapper-component")
1142
+ ], f);
1143
+ const Ie = (i, t) => {
1144
+ const e = new f();
1145
+ e.container = i, t.appendChild(e);
1146
+ };
1147
+ export {
1148
+ Ie as default
1149
+ };
1150
+ //# sourceMappingURL=render-301f6791.js.map