@luzmo/embed 5.0.5 → 5.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs DELETED
@@ -1,1716 +0,0 @@
1
- var _a;
2
- import * as SharedLib from "@luzmo/shared-embed";
3
- import { remotesMap, __federationMethodGetRemote, __federationMethodWrapDefault } from "@luzmo/shared-embed";
4
- /**
5
- * @license
6
- * Copyright 2019 Google LLC
7
- * SPDX-License-Identifier: BSD-3-Clause
8
- */
9
- const t$3 = globalThis, e$5 = t$3.ShadowRoot && (void 0 === t$3.ShadyCSS || t$3.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$4 = /* @__PURE__ */ new WeakMap();
10
- let n$4 = class n {
11
- constructor(t2, e2, o2) {
12
- if (this._$cssResult$ = true, o2 !== s$2)
13
- throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
14
- this.cssText = t2, this.t = e2;
15
- }
16
- get styleSheet() {
17
- let t2 = this.o;
18
- const s2 = this.t;
19
- if (e$5 && void 0 === t2) {
20
- const e2 = void 0 !== s2 && 1 === s2.length;
21
- e2 && (t2 = o$4.get(s2)), void 0 === t2 && ((this.o = t2 = new CSSStyleSheet()).replaceSync(this.cssText), e2 && o$4.set(s2, t2));
22
- }
23
- return t2;
24
- }
25
- toString() {
26
- return this.cssText;
27
- }
28
- };
29
- const r$5 = (t2) => new n$4("string" == typeof t2 ? t2 : t2 + "", void 0, s$2), i$4 = (t2, ...e2) => {
30
- const o2 = 1 === t2.length ? t2[0] : e2.reduce((e3, s2, o3) => e3 + ((t3) => {
31
- if (true === t3._$cssResult$)
32
- return t3.cssText;
33
- if ("number" == typeof t3)
34
- return t3;
35
- throw Error("Value passed to 'css' function must be a 'css' function result: " + t3 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
36
- })(s2) + t2[o3 + 1], t2[0]);
37
- return new n$4(o2, t2, s$2);
38
- }, S$1 = (s2, o2) => {
39
- if (e$5)
40
- s2.adoptedStyleSheets = o2.map((t2) => t2 instanceof CSSStyleSheet ? t2 : t2.styleSheet);
41
- else
42
- for (const e2 of o2) {
43
- const o3 = document.createElement("style"), n3 = t$3.litNonce;
44
- void 0 !== n3 && o3.setAttribute("nonce", n3), o3.textContent = e2.cssText, s2.appendChild(o3);
45
- }
46
- }, c$2 = e$5 ? (t2) => t2 : (t2) => t2 instanceof CSSStyleSheet ? ((t3) => {
47
- let e2 = "";
48
- for (const s2 of t3.cssRules)
49
- e2 += s2.cssText;
50
- return r$5(e2);
51
- })(t2) : t2;
52
- /**
53
- * @license
54
- * Copyright 2017 Google LLC
55
- * SPDX-License-Identifier: BSD-3-Clause
56
- */
57
- const { is: i$3, defineProperty: e$4, getOwnPropertyDescriptor: r$4, getOwnPropertyNames: h$1, getOwnPropertySymbols: o$3, getPrototypeOf: n$3 } = Object, a$1 = globalThis, c$1 = a$1.trustedTypes, l$1 = c$1 ? c$1.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = (t2, s2) => t2, u$1 = { toAttribute(t2, s2) {
58
- switch (s2) {
59
- case Boolean:
60
- t2 = t2 ? l$1 : null;
61
- break;
62
- case Object:
63
- case Array:
64
- t2 = null == t2 ? t2 : JSON.stringify(t2);
65
- }
66
- return t2;
67
- }, fromAttribute(t2, s2) {
68
- let i3 = t2;
69
- switch (s2) {
70
- case Boolean:
71
- i3 = null !== t2;
72
- break;
73
- case Number:
74
- i3 = null === t2 ? null : Number(t2);
75
- break;
76
- case Object:
77
- case Array:
78
- try {
79
- i3 = JSON.parse(t2);
80
- } catch (t3) {
81
- i3 = null;
82
- }
83
- }
84
- return i3;
85
- } }, f$1 = (t2, s2) => !i$3(t2, s2), y$1 = { attribute: true, type: String, converter: u$1, reflect: false, hasChanged: f$1 };
86
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), a$1.litPropertyMetadata ?? (a$1.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
87
- class b extends HTMLElement {
88
- static addInitializer(t2) {
89
- this._$Ei(), (this.l ?? (this.l = [])).push(t2);
90
- }
91
- static get observedAttributes() {
92
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
93
- }
94
- static createProperty(t2, s2 = y$1) {
95
- if (s2.state && (s2.attribute = false), this._$Ei(), this.elementProperties.set(t2, s2), !s2.noAccessor) {
96
- const i3 = Symbol(), r2 = this.getPropertyDescriptor(t2, i3, s2);
97
- void 0 !== r2 && e$4(this.prototype, t2, r2);
98
- }
99
- }
100
- static getPropertyDescriptor(t2, s2, i3) {
101
- const { get: e2, set: h2 } = r$4(this.prototype, t2) ?? { get() {
102
- return this[s2];
103
- }, set(t3) {
104
- this[s2] = t3;
105
- } };
106
- return { get() {
107
- return e2 == null ? void 0 : e2.call(this);
108
- }, set(s3) {
109
- const r2 = e2 == null ? void 0 : e2.call(this);
110
- h2.call(this, s3), this.requestUpdate(t2, r2, i3);
111
- }, configurable: true, enumerable: true };
112
- }
113
- static getPropertyOptions(t2) {
114
- return this.elementProperties.get(t2) ?? y$1;
115
- }
116
- static _$Ei() {
117
- if (this.hasOwnProperty(d$1("elementProperties")))
118
- return;
119
- const t2 = n$3(this);
120
- t2.finalize(), void 0 !== t2.l && (this.l = [...t2.l]), this.elementProperties = new Map(t2.elementProperties);
121
- }
122
- static finalize() {
123
- if (this.hasOwnProperty(d$1("finalized")))
124
- return;
125
- if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
126
- const t3 = this.properties, s2 = [...h$1(t3), ...o$3(t3)];
127
- for (const i3 of s2)
128
- this.createProperty(i3, t3[i3]);
129
- }
130
- const t2 = this[Symbol.metadata];
131
- if (null !== t2) {
132
- const s2 = litPropertyMetadata.get(t2);
133
- if (void 0 !== s2)
134
- for (const [t3, i3] of s2)
135
- this.elementProperties.set(t3, i3);
136
- }
137
- this._$Eh = /* @__PURE__ */ new Map();
138
- for (const [t3, s2] of this.elementProperties) {
139
- const i3 = this._$Eu(t3, s2);
140
- void 0 !== i3 && this._$Eh.set(i3, t3);
141
- }
142
- this.elementStyles = this.finalizeStyles(this.styles);
143
- }
144
- static finalizeStyles(s2) {
145
- const i3 = [];
146
- if (Array.isArray(s2)) {
147
- const e2 = new Set(s2.flat(1 / 0).reverse());
148
- for (const s3 of e2)
149
- i3.unshift(c$2(s3));
150
- } else
151
- void 0 !== s2 && i3.push(c$2(s2));
152
- return i3;
153
- }
154
- static _$Eu(t2, s2) {
155
- const i3 = s2.attribute;
156
- return false === i3 ? void 0 : "string" == typeof i3 ? i3 : "string" == typeof t2 ? t2.toLowerCase() : void 0;
157
- }
158
- constructor() {
159
- super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
160
- }
161
- _$Ev() {
162
- var _a2;
163
- this._$Eg = new Promise((t2) => this.enableUpdating = t2), this._$AL = /* @__PURE__ */ new Map(), this._$ES(), this.requestUpdate(), (_a2 = this.constructor.l) == null ? void 0 : _a2.forEach((t2) => t2(this));
164
- }
165
- addController(t2) {
166
- var _a2;
167
- (this._$E_ ?? (this._$E_ = /* @__PURE__ */ new Set())).add(t2), void 0 !== this.renderRoot && this.isConnected && ((_a2 = t2.hostConnected) == null ? void 0 : _a2.call(t2));
168
- }
169
- removeController(t2) {
170
- var _a2;
171
- (_a2 = this._$E_) == null ? void 0 : _a2.delete(t2);
172
- }
173
- _$ES() {
174
- const t2 = /* @__PURE__ */ new Map(), s2 = this.constructor.elementProperties;
175
- for (const i3 of s2.keys())
176
- this.hasOwnProperty(i3) && (t2.set(i3, this[i3]), delete this[i3]);
177
- t2.size > 0 && (this._$Ep = t2);
178
- }
179
- createRenderRoot() {
180
- const t2 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
181
- return S$1(t2, this.constructor.elementStyles), t2;
182
- }
183
- connectedCallback() {
184
- var _a2;
185
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), (_a2 = this._$E_) == null ? void 0 : _a2.forEach((t2) => {
186
- var _a3;
187
- return (_a3 = t2.hostConnected) == null ? void 0 : _a3.call(t2);
188
- });
189
- }
190
- enableUpdating(t2) {
191
- }
192
- disconnectedCallback() {
193
- var _a2;
194
- (_a2 = this._$E_) == null ? void 0 : _a2.forEach((t2) => {
195
- var _a3;
196
- return (_a3 = t2.hostDisconnected) == null ? void 0 : _a3.call(t2);
197
- });
198
- }
199
- attributeChangedCallback(t2, s2, i3) {
200
- this._$AK(t2, i3);
201
- }
202
- _$EO(t2, s2) {
203
- var _a2;
204
- const i3 = this.constructor.elementProperties.get(t2), e2 = this.constructor._$Eu(t2, i3);
205
- if (void 0 !== e2 && true === i3.reflect) {
206
- const r2 = (void 0 !== ((_a2 = i3.converter) == null ? void 0 : _a2.toAttribute) ? i3.converter : u$1).toAttribute(s2, i3.type);
207
- this._$Em = t2, null == r2 ? this.removeAttribute(e2) : this.setAttribute(e2, r2), this._$Em = null;
208
- }
209
- }
210
- _$AK(t2, s2) {
211
- var _a2;
212
- const i3 = this.constructor, e2 = i3._$Eh.get(t2);
213
- if (void 0 !== e2 && this._$Em !== e2) {
214
- const t3 = i3.getPropertyOptions(e2), r2 = "function" == typeof t3.converter ? { fromAttribute: t3.converter } : void 0 !== ((_a2 = t3.converter) == null ? void 0 : _a2.fromAttribute) ? t3.converter : u$1;
215
- this._$Em = e2, this[e2] = r2.fromAttribute(s2, t3.type), this._$Em = null;
216
- }
217
- }
218
- requestUpdate(t2, s2, i3) {
219
- if (void 0 !== t2) {
220
- if (i3 ?? (i3 = this.constructor.getPropertyOptions(t2)), !(i3.hasChanged ?? f$1)(this[t2], s2))
221
- return;
222
- this.C(t2, s2, i3);
223
- }
224
- false === this.isUpdatePending && (this._$Eg = this._$EP());
225
- }
226
- C(t2, s2, i3) {
227
- this._$AL.has(t2) || this._$AL.set(t2, s2), true === i3.reflect && this._$Em !== t2 && (this._$ET ?? (this._$ET = /* @__PURE__ */ new Set())).add(t2);
228
- }
229
- async _$EP() {
230
- this.isUpdatePending = true;
231
- try {
232
- await this._$Eg;
233
- } catch (t3) {
234
- Promise.reject(t3);
235
- }
236
- const t2 = this.scheduleUpdate();
237
- return null != t2 && await t2, !this.isUpdatePending;
238
- }
239
- scheduleUpdate() {
240
- return this.performUpdate();
241
- }
242
- performUpdate() {
243
- var _a2;
244
- if (!this.isUpdatePending)
245
- return;
246
- if (!this.hasUpdated) {
247
- if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
248
- for (const [t4, s3] of this._$Ep)
249
- this[t4] = s3;
250
- this._$Ep = void 0;
251
- }
252
- const t3 = this.constructor.elementProperties;
253
- if (t3.size > 0)
254
- for (const [s3, i3] of t3)
255
- true !== i3.wrapped || this._$AL.has(s3) || void 0 === this[s3] || this.C(s3, this[s3], i3);
256
- }
257
- let t2 = false;
258
- const s2 = this._$AL;
259
- try {
260
- t2 = this.shouldUpdate(s2), t2 ? (this.willUpdate(s2), (_a2 = this._$E_) == null ? void 0 : _a2.forEach((t3) => {
261
- var _a3;
262
- return (_a3 = t3.hostUpdate) == null ? void 0 : _a3.call(t3);
263
- }), this.update(s2)) : this._$Ej();
264
- } catch (s3) {
265
- throw t2 = false, this._$Ej(), s3;
266
- }
267
- t2 && this._$AE(s2);
268
- }
269
- willUpdate(t2) {
270
- }
271
- _$AE(t2) {
272
- var _a2;
273
- (_a2 = this._$E_) == null ? void 0 : _a2.forEach((t3) => {
274
- var _a3;
275
- return (_a3 = t3.hostUpdated) == null ? void 0 : _a3.call(t3);
276
- }), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t2)), this.updated(t2);
277
- }
278
- _$Ej() {
279
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
280
- }
281
- get updateComplete() {
282
- return this.getUpdateComplete();
283
- }
284
- getUpdateComplete() {
285
- return this._$Eg;
286
- }
287
- shouldUpdate(t2) {
288
- return true;
289
- }
290
- update(t2) {
291
- this._$ET && (this._$ET = this._$ET.forEach((t3) => this._$EO(t3, this[t3]))), this._$Ej();
292
- }
293
- updated(t2) {
294
- }
295
- firstUpdated(t2) {
296
- }
297
- }
298
- b.elementStyles = [], b.shadowRootOptions = { mode: "open" }, b[d$1("elementProperties")] = /* @__PURE__ */ new Map(), b[d$1("finalized")] = /* @__PURE__ */ new Map(), p$1 == null ? void 0 : p$1({ ReactiveElement: b }), (a$1.reactiveElementVersions ?? (a$1.reactiveElementVersions = [])).push("2.0.3");
299
- /**
300
- * @license
301
- * Copyright 2017 Google LLC
302
- * SPDX-License-Identifier: BSD-3-Clause
303
- */
304
- const t$2 = globalThis, i$2 = t$2.trustedTypes, s$1 = i$2 ? i$2.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e$3 = "$lit$", h = `lit$${(Math.random() + "").slice(9)}$`, o$2 = "?" + h, n$2 = `<${o$2}>`, r$3 = document, l = () => r$3.createComment(""), c = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a = Array.isArray, u = (t2) => a(t2) || "function" == typeof (t2 == null ? void 0 : t2[Symbol.iterator]), d = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^
305
- \f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = (t2) => (i3, ...s2) => ({ _$litType$: t2, strings: i3, values: s2 }), x = y(1), w = Symbol.for("lit-noChange"), T = Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), E = r$3.createTreeWalker(r$3, 129);
306
- function C(t2, i3) {
307
- if (!Array.isArray(t2) || !t2.hasOwnProperty("raw"))
308
- throw Error("invalid template strings array");
309
- return void 0 !== s$1 ? s$1.createHTML(i3) : i3;
310
- }
311
- const P = (t2, i3) => {
312
- const s2 = t2.length - 1, o2 = [];
313
- let r2, l2 = 2 === i3 ? "<svg>" : "", c2 = f;
314
- for (let i4 = 0; i4 < s2; i4++) {
315
- const s3 = t2[i4];
316
- let a2, u2, d2 = -1, y2 = 0;
317
- for (; y2 < s3.length && (c2.lastIndex = y2, u2 = c2.exec(s3), null !== u2); )
318
- y2 = c2.lastIndex, c2 === f ? "!--" === u2[1] ? c2 = v : void 0 !== u2[1] ? c2 = _ : void 0 !== u2[2] ? ($.test(u2[2]) && (r2 = RegExp("</" + u2[2], "g")), c2 = m) : void 0 !== u2[3] && (c2 = m) : c2 === m ? ">" === u2[0] ? (c2 = r2 ?? f, d2 = -1) : void 0 === u2[1] ? d2 = -2 : (d2 = c2.lastIndex - u2[2].length, a2 = u2[1], c2 = void 0 === u2[3] ? m : '"' === u2[3] ? g : p) : c2 === g || c2 === p ? c2 = m : c2 === v || c2 === _ ? c2 = f : (c2 = m, r2 = void 0);
319
- const x2 = c2 === m && t2[i4 + 1].startsWith("/>") ? " " : "";
320
- l2 += c2 === f ? s3 + n$2 : d2 >= 0 ? (o2.push(a2), s3.slice(0, d2) + e$3 + s3.slice(d2) + h + x2) : s3 + h + (-2 === d2 ? i4 : x2);
321
- }
322
- return [C(t2, l2 + (t2[s2] || "<?>") + (2 === i3 ? "</svg>" : "")), o2];
323
- };
324
- class V {
325
- constructor({ strings: t2, _$litType$: s2 }, n3) {
326
- let r2;
327
- this.parts = [];
328
- let c2 = 0, a2 = 0;
329
- const u2 = t2.length - 1, d2 = this.parts, [f2, v2] = P(t2, s2);
330
- if (this.el = V.createElement(f2, n3), E.currentNode = this.el.content, 2 === s2) {
331
- const t3 = this.el.content.firstChild;
332
- t3.replaceWith(...t3.childNodes);
333
- }
334
- for (; null !== (r2 = E.nextNode()) && d2.length < u2; ) {
335
- if (1 === r2.nodeType) {
336
- if (r2.hasAttributes())
337
- for (const t3 of r2.getAttributeNames())
338
- if (t3.endsWith(e$3)) {
339
- const i3 = v2[a2++], s3 = r2.getAttribute(t3).split(h), e2 = /([.?@])?(.*)/.exec(i3);
340
- d2.push({ type: 1, index: c2, name: e2[2], strings: s3, ctor: "." === e2[1] ? k : "?" === e2[1] ? H : "@" === e2[1] ? I : R }), r2.removeAttribute(t3);
341
- } else
342
- t3.startsWith(h) && (d2.push({ type: 6, index: c2 }), r2.removeAttribute(t3));
343
- if ($.test(r2.tagName)) {
344
- const t3 = r2.textContent.split(h), s3 = t3.length - 1;
345
- if (s3 > 0) {
346
- r2.textContent = i$2 ? i$2.emptyScript : "";
347
- for (let i3 = 0; i3 < s3; i3++)
348
- r2.append(t3[i3], l()), E.nextNode(), d2.push({ type: 2, index: ++c2 });
349
- r2.append(t3[s3], l());
350
- }
351
- }
352
- } else if (8 === r2.nodeType)
353
- if (r2.data === o$2)
354
- d2.push({ type: 2, index: c2 });
355
- else {
356
- let t3 = -1;
357
- for (; -1 !== (t3 = r2.data.indexOf(h, t3 + 1)); )
358
- d2.push({ type: 7, index: c2 }), t3 += h.length - 1;
359
- }
360
- c2++;
361
- }
362
- }
363
- static createElement(t2, i3) {
364
- const s2 = r$3.createElement("template");
365
- return s2.innerHTML = t2, s2;
366
- }
367
- }
368
- function N(t2, i3, s2 = t2, e2) {
369
- var _a2, _b;
370
- if (i3 === w)
371
- return i3;
372
- let h2 = void 0 !== e2 ? (_a2 = s2._$Co) == null ? void 0 : _a2[e2] : s2._$Cl;
373
- const o2 = c(i3) ? void 0 : i3._$litDirective$;
374
- return (h2 == null ? void 0 : h2.constructor) !== o2 && ((_b = h2 == null ? void 0 : h2._$AO) == null ? void 0 : _b.call(h2, false), void 0 === o2 ? h2 = void 0 : (h2 = new o2(t2), h2._$AT(t2, s2, e2)), void 0 !== e2 ? (s2._$Co ?? (s2._$Co = []))[e2] = h2 : s2._$Cl = h2), void 0 !== h2 && (i3 = N(t2, h2._$AS(t2, i3.values), h2, e2)), i3;
375
- }
376
- class S {
377
- constructor(t2, i3) {
378
- this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM = i3;
379
- }
380
- get parentNode() {
381
- return this._$AM.parentNode;
382
- }
383
- get _$AU() {
384
- return this._$AM._$AU;
385
- }
386
- u(t2) {
387
- const { el: { content: i3 }, parts: s2 } = this._$AD, e2 = ((t2 == null ? void 0 : t2.creationScope) ?? r$3).importNode(i3, true);
388
- E.currentNode = e2;
389
- let h2 = E.nextNode(), o2 = 0, n3 = 0, l2 = s2[0];
390
- for (; void 0 !== l2; ) {
391
- if (o2 === l2.index) {
392
- let i4;
393
- 2 === l2.type ? i4 = new M(h2, h2.nextSibling, this, t2) : 1 === l2.type ? i4 = new l2.ctor(h2, l2.name, l2.strings, this, t2) : 6 === l2.type && (i4 = new L(h2, this, t2)), this._$AV.push(i4), l2 = s2[++n3];
394
- }
395
- o2 !== (l2 == null ? void 0 : l2.index) && (h2 = E.nextNode(), o2++);
396
- }
397
- return E.currentNode = r$3, e2;
398
- }
399
- p(t2) {
400
- let i3 = 0;
401
- for (const s2 of this._$AV)
402
- void 0 !== s2 && (void 0 !== s2.strings ? (s2._$AI(t2, s2, i3), i3 += s2.strings.length - 2) : s2._$AI(t2[i3])), i3++;
403
- }
404
- }
405
- class M {
406
- get _$AU() {
407
- var _a2;
408
- return ((_a2 = this._$AM) == null ? void 0 : _a2._$AU) ?? this._$Cv;
409
- }
410
- constructor(t2, i3, s2, e2) {
411
- this.type = 2, this._$AH = T, this._$AN = void 0, this._$AA = t2, this._$AB = i3, this._$AM = s2, this.options = e2, this._$Cv = (e2 == null ? void 0 : e2.isConnected) ?? true;
412
- }
413
- get parentNode() {
414
- let t2 = this._$AA.parentNode;
415
- const i3 = this._$AM;
416
- return void 0 !== i3 && 11 === (t2 == null ? void 0 : t2.nodeType) && (t2 = i3.parentNode), t2;
417
- }
418
- get startNode() {
419
- return this._$AA;
420
- }
421
- get endNode() {
422
- return this._$AB;
423
- }
424
- _$AI(t2, i3 = this) {
425
- t2 = N(this, t2, i3), c(t2) ? t2 === T || null == t2 || "" === t2 ? (this._$AH !== T && this._$AR(), this._$AH = T) : t2 !== this._$AH && t2 !== w && this._(t2) : void 0 !== t2._$litType$ ? this.g(t2) : void 0 !== t2.nodeType ? this.$(t2) : u(t2) ? this.T(t2) : this._(t2);
426
- }
427
- k(t2) {
428
- return this._$AA.parentNode.insertBefore(t2, this._$AB);
429
- }
430
- $(t2) {
431
- this._$AH !== t2 && (this._$AR(), this._$AH = this.k(t2));
432
- }
433
- _(t2) {
434
- this._$AH !== T && c(this._$AH) ? this._$AA.nextSibling.data = t2 : this.$(r$3.createTextNode(t2)), this._$AH = t2;
435
- }
436
- g(t2) {
437
- var _a2;
438
- const { values: i3, _$litType$: s2 } = t2, e2 = "number" == typeof s2 ? this._$AC(t2) : (void 0 === s2.el && (s2.el = V.createElement(C(s2.h, s2.h[0]), this.options)), s2);
439
- if (((_a2 = this._$AH) == null ? void 0 : _a2._$AD) === e2)
440
- this._$AH.p(i3);
441
- else {
442
- const t3 = new S(e2, this), s3 = t3.u(this.options);
443
- t3.p(i3), this.$(s3), this._$AH = t3;
444
- }
445
- }
446
- _$AC(t2) {
447
- let i3 = A.get(t2.strings);
448
- return void 0 === i3 && A.set(t2.strings, i3 = new V(t2)), i3;
449
- }
450
- T(t2) {
451
- a(this._$AH) || (this._$AH = [], this._$AR());
452
- const i3 = this._$AH;
453
- let s2, e2 = 0;
454
- for (const h2 of t2)
455
- e2 === i3.length ? i3.push(s2 = new M(this.k(l()), this.k(l()), this, this.options)) : s2 = i3[e2], s2._$AI(h2), e2++;
456
- e2 < i3.length && (this._$AR(s2 && s2._$AB.nextSibling, e2), i3.length = e2);
457
- }
458
- _$AR(t2 = this._$AA.nextSibling, i3) {
459
- var _a2;
460
- for ((_a2 = this._$AP) == null ? void 0 : _a2.call(this, false, true, i3); t2 && t2 !== this._$AB; ) {
461
- const i4 = t2.nextSibling;
462
- t2.remove(), t2 = i4;
463
- }
464
- }
465
- setConnected(t2) {
466
- var _a2;
467
- void 0 === this._$AM && (this._$Cv = t2, (_a2 = this._$AP) == null ? void 0 : _a2.call(this, t2));
468
- }
469
- }
470
- class R {
471
- get tagName() {
472
- return this.element.tagName;
473
- }
474
- get _$AU() {
475
- return this._$AM._$AU;
476
- }
477
- constructor(t2, i3, s2, e2, h2) {
478
- this.type = 1, this._$AH = T, this._$AN = void 0, this.element = t2, this.name = i3, this._$AM = e2, this.options = h2, s2.length > 2 || "" !== s2[0] || "" !== s2[1] ? (this._$AH = Array(s2.length - 1).fill(new String()), this.strings = s2) : this._$AH = T;
479
- }
480
- _$AI(t2, i3 = this, s2, e2) {
481
- const h2 = this.strings;
482
- let o2 = false;
483
- if (void 0 === h2)
484
- t2 = N(this, t2, i3, 0), o2 = !c(t2) || t2 !== this._$AH && t2 !== w, o2 && (this._$AH = t2);
485
- else {
486
- const e3 = t2;
487
- let n3, r2;
488
- for (t2 = h2[0], n3 = 0; n3 < h2.length - 1; n3++)
489
- r2 = N(this, e3[s2 + n3], i3, n3), r2 === w && (r2 = this._$AH[n3]), o2 || (o2 = !c(r2) || r2 !== this._$AH[n3]), r2 === T ? t2 = T : t2 !== T && (t2 += (r2 ?? "") + h2[n3 + 1]), this._$AH[n3] = r2;
490
- }
491
- o2 && !e2 && this.O(t2);
492
- }
493
- O(t2) {
494
- t2 === T ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t2 ?? "");
495
- }
496
- }
497
- class k extends R {
498
- constructor() {
499
- super(...arguments), this.type = 3;
500
- }
501
- O(t2) {
502
- this.element[this.name] = t2 === T ? void 0 : t2;
503
- }
504
- }
505
- class H extends R {
506
- constructor() {
507
- super(...arguments), this.type = 4;
508
- }
509
- O(t2) {
510
- this.element.toggleAttribute(this.name, !!t2 && t2 !== T);
511
- }
512
- }
513
- class I extends R {
514
- constructor(t2, i3, s2, e2, h2) {
515
- super(t2, i3, s2, e2, h2), this.type = 5;
516
- }
517
- _$AI(t2, i3 = this) {
518
- if ((t2 = N(this, t2, i3, 0) ?? T) === w)
519
- return;
520
- const s2 = this._$AH, e2 = t2 === T && s2 !== T || t2.capture !== s2.capture || t2.once !== s2.once || t2.passive !== s2.passive, h2 = t2 !== T && (s2 === T || e2);
521
- e2 && this.element.removeEventListener(this.name, this, s2), h2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
522
- }
523
- handleEvent(t2) {
524
- var _a2;
525
- "function" == typeof this._$AH ? this._$AH.call(((_a2 = this.options) == null ? void 0 : _a2.host) ?? this.element, t2) : this._$AH.handleEvent(t2);
526
- }
527
- }
528
- class L {
529
- constructor(t2, i3, s2) {
530
- this.element = t2, this.type = 6, this._$AN = void 0, this._$AM = i3, this.options = s2;
531
- }
532
- get _$AU() {
533
- return this._$AM._$AU;
534
- }
535
- _$AI(t2) {
536
- N(this, t2);
537
- }
538
- }
539
- const Z = t$2.litHtmlPolyfillSupport;
540
- Z == null ? void 0 : Z(V, M), (t$2.litHtmlVersions ?? (t$2.litHtmlVersions = [])).push("3.1.1");
541
- const j = (t2, i3, s2) => {
542
- const e2 = (s2 == null ? void 0 : s2.renderBefore) ?? i3;
543
- let h2 = e2._$litPart$;
544
- if (void 0 === h2) {
545
- const t3 = (s2 == null ? void 0 : s2.renderBefore) ?? null;
546
- e2._$litPart$ = h2 = new M(i3.insertBefore(l(), t3), t3, void 0, s2 ?? {});
547
- }
548
- return h2._$AI(t2), h2;
549
- };
550
- /**
551
- * @license
552
- * Copyright 2017 Google LLC
553
- * SPDX-License-Identifier: BSD-3-Clause
554
- */
555
- class s extends b {
556
- constructor() {
557
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
558
- }
559
- createRenderRoot() {
560
- var _a2;
561
- const t2 = super.createRenderRoot();
562
- return (_a2 = this.renderOptions).renderBefore ?? (_a2.renderBefore = t2.firstChild), t2;
563
- }
564
- update(t2) {
565
- const i3 = this.render();
566
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t2), this._$Do = j(i3, this.renderRoot, this.renderOptions);
567
- }
568
- connectedCallback() {
569
- var _a2;
570
- super.connectedCallback(), (_a2 = this._$Do) == null ? void 0 : _a2.setConnected(true);
571
- }
572
- disconnectedCallback() {
573
- var _a2;
574
- super.disconnectedCallback(), (_a2 = this._$Do) == null ? void 0 : _a2.setConnected(false);
575
- }
576
- render() {
577
- return w;
578
- }
579
- }
580
- s._$litElement$ = true, s["finalized"] = true, (_a = globalThis.litElementHydrateSupport) == null ? void 0 : _a.call(globalThis, { LitElement: s });
581
- const r$2 = globalThis.litElementPolyfillSupport;
582
- r$2 == null ? void 0 : r$2({ LitElement: s });
583
- (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.3");
584
- /**
585
- * @license
586
- * Copyright 2017 Google LLC
587
- * SPDX-License-Identifier: BSD-3-Clause
588
- */
589
- const t$1 = (t2) => (e2, o2) => {
590
- void 0 !== o2 ? o2.addInitializer(() => {
591
- customElements.define(t2, e2);
592
- }) : customElements.define(t2, e2);
593
- };
594
- /**
595
- * @license
596
- * Copyright 2017 Google LLC
597
- * SPDX-License-Identifier: BSD-3-Clause
598
- */
599
- const o$1 = { attribute: true, type: String, converter: u$1, reflect: false, hasChanged: f$1 }, r$1 = (t2 = o$1, e2, r2) => {
600
- const { kind: n3, metadata: i3 } = r2;
601
- let s2 = globalThis.litPropertyMetadata.get(i3);
602
- if (void 0 === s2 && globalThis.litPropertyMetadata.set(i3, s2 = /* @__PURE__ */ new Map()), s2.set(r2.name, t2), "accessor" === n3) {
603
- const { name: o2 } = r2;
604
- return { set(r3) {
605
- const n4 = e2.get.call(this);
606
- e2.set.call(this, r3), this.requestUpdate(o2, n4, t2);
607
- }, init(e3) {
608
- return void 0 !== e3 && this.C(o2, void 0, t2), e3;
609
- } };
610
- }
611
- if ("setter" === n3) {
612
- const { name: o2 } = r2;
613
- return function(r3) {
614
- const n4 = this[o2];
615
- e2.call(this, r3), this.requestUpdate(o2, n4, t2);
616
- };
617
- }
618
- throw Error("Unsupported decorator location: " + n3);
619
- };
620
- function n$1(t2) {
621
- return (e2, o2) => "object" == typeof o2 ? r$1(t2, e2, o2) : ((t3, e3, o3) => {
622
- const r2 = e3.hasOwnProperty(o3);
623
- return e3.constructor.createProperty(o3, r2 ? { ...t3, wrapped: true } : t3), r2 ? Object.getOwnPropertyDescriptor(e3, o3) : void 0;
624
- })(t2, e2, o2);
625
- }
626
- /**
627
- * @license
628
- * Copyright 2017 Google LLC
629
- * SPDX-License-Identifier: BSD-3-Clause
630
- */
631
- function r(r2) {
632
- return n$1({ ...r2, state: true, attribute: false });
633
- }
634
- /**
635
- * @license
636
- * Copyright 2017 Google LLC
637
- * SPDX-License-Identifier: BSD-3-Clause
638
- */
639
- const e$2 = (e2, t2, c2) => (c2.configurable = true, c2.enumerable = true, Reflect.decorate && "object" != typeof t2 && Object.defineProperty(e2, t2, c2), c2);
640
- /**
641
- * @license
642
- * Copyright 2017 Google LLC
643
- * SPDX-License-Identifier: BSD-3-Clause
644
- */
645
- function e$1(e2, r2) {
646
- return (n3, s2, i3) => {
647
- const o2 = (t2) => {
648
- var _a2;
649
- return ((_a2 = t2.renderRoot) == null ? void 0 : _a2.querySelector(e2)) ?? null;
650
- };
651
- if (r2) {
652
- const { get: e3, set: r3 } = "object" == typeof s2 ? n3 : i3 ?? (() => {
653
- const t2 = Symbol();
654
- return { get() {
655
- return this[t2];
656
- }, set(e4) {
657
- this[t2] = e4;
658
- } };
659
- })();
660
- return e$2(n3, s2, { get() {
661
- let t2 = e3.call(this);
662
- return void 0 === t2 && (t2 = o2(this), (null !== t2 || this.hasUpdated) && r3.call(this, t2)), t2;
663
- } });
664
- }
665
- return e$2(n3, s2, { get() {
666
- return o2(this);
667
- } });
668
- };
669
- }
670
- /**
671
- * @license
672
- * Copyright 2017 Google LLC
673
- * SPDX-License-Identifier: BSD-3-Clause
674
- */
675
- const t = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, e = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
676
- let i$1 = class i {
677
- constructor(t2) {
678
- }
679
- get _$AU() {
680
- return this._$AM._$AU;
681
- }
682
- _$AT(t2, e2, i3) {
683
- this._$Ct = t2, this._$AM = e2, this._$Ci = i3;
684
- }
685
- _$AS(t2, e2) {
686
- return this.update(t2, e2);
687
- }
688
- update(t2, e2) {
689
- return this.render(...e2);
690
- }
691
- };
692
- /**
693
- * @license
694
- * Copyright 2018 Google LLC
695
- * SPDX-License-Identifier: BSD-3-Clause
696
- */
697
- const n2 = "important", i2 = " !" + n2, o = e(class extends i$1 {
698
- constructor(t$12) {
699
- var _a2;
700
- if (super(t$12), t$12.type !== t.ATTRIBUTE || "style" !== t$12.name || ((_a2 = t$12.strings) == null ? void 0 : _a2.length) > 2)
701
- throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
702
- }
703
- render(t2) {
704
- return Object.keys(t2).reduce((e2, r2) => {
705
- const s2 = t2[r2];
706
- return null == s2 ? e2 : e2 + `${r2 = r2.includes("-") ? r2 : r2.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s2};`;
707
- }, "");
708
- }
709
- update(e2, [r2]) {
710
- const { style: s2 } = e2.element;
711
- if (void 0 === this.ut)
712
- return this.ut = new Set(Object.keys(r2)), this.render(r2);
713
- for (const t2 of this.ut)
714
- null == r2[t2] && (this.ut.delete(t2), t2.includes("-") ? s2.removeProperty(t2) : s2[t2] = null);
715
- for (const t2 in r2) {
716
- const e3 = r2[t2];
717
- if (null != e3) {
718
- this.ut.add(t2);
719
- const r3 = "string" == typeof e3 && e3.endsWith(i2);
720
- t2.includes("-") || r3 ? s2.setProperty(t2, r3 ? e3.slice(0, -11) : e3, r3 ? n2 : "") : s2[t2] = e3;
721
- }
722
- }
723
- return w;
724
- }
725
- });
726
- const version = "5.0.5";
727
- class LuzmoService {
728
- constructor() {
729
- this._components = [];
730
- }
731
- }
732
- const LuzmoService$1 = new LuzmoService();
733
- const _setEventHandler = () => {
734
- if (typeof window.__luzmoMessageHandler === "function") {
735
- return;
736
- }
737
- window.__luzmoMessageHandler = (event) => {
738
- var _a2;
739
- const dashboardComponent = LuzmoService$1._components.find(
740
- (c2) => event.data.name === c2._iframeId
741
- );
742
- if (!dashboardComponent) {
743
- return;
744
- }
745
- switch ((_a2 = event.data) == null ? void 0 : _a2.type) {
746
- case "load": {
747
- dashboardComponent.dispatchEvent(
748
- new CustomEvent("load", { detail: { data: event.data } })
749
- );
750
- if (dashboardComponent._loadTimeoutHandle) {
751
- clearTimeout(dashboardComponent._loadTimeoutHandle);
752
- dashboardComponent._loadTimeoutHandle = void 0;
753
- }
754
- dashboardComponent.iframeLoaded = true;
755
- dashboardComponent.dimensions = event.data.dimensions;
756
- dashboardComponent._calculateDimAfterDashboardLoaded();
757
- break;
758
- }
759
- case "error": {
760
- dashboardComponent.dashboardError = true;
761
- if (dashboardComponent._loadTimeoutHandle) {
762
- clearTimeout(dashboardComponent._loadTimeoutHandle);
763
- dashboardComponent._loadTimeoutHandle = void 0;
764
- }
765
- dashboardComponent.iframeLoaded = true;
766
- dashboardComponent._displayError();
767
- break;
768
- }
769
- case "data": {
770
- SharedLib.resolvePromise(
771
- dashboardComponent,
772
- event.data.requestId,
773
- event.data.data
774
- );
775
- break;
776
- }
777
- case "filters": {
778
- SharedLib.resolvePromise(
779
- dashboardComponent,
780
- event.data.requestId,
781
- event.data.filters
782
- );
783
- break;
784
- }
785
- case "getAccessibleDashboards": {
786
- SharedLib.resolvePromise(
787
- dashboardComponent,
788
- event.data.requestId,
789
- event.data.accessibleDashboards
790
- );
791
- break;
792
- }
793
- case "dashboardAction": {
794
- dashboardComponent.dispatchEvent(
795
- new CustomEvent("dashboardAction", { detail: { data: event.data } })
796
- );
797
- break;
798
- }
799
- case "export": {
800
- if (event.data.error) {
801
- SharedLib.rejectPromise(
802
- dashboardComponent,
803
- event.data.requestId,
804
- event.data
805
- );
806
- } else {
807
- dashboardComponent.dispatchEvent(
808
- new CustomEvent("exported", { detail: { data: event.data } })
809
- );
810
- SharedLib.resolvePromise(
811
- dashboardComponent,
812
- event.data.requestId,
813
- event.data
814
- );
815
- }
816
- break;
817
- }
818
- case "changedFilters": {
819
- dashboardComponent.dispatchEvent(
820
- new CustomEvent("changedFilters", { detail: { data: event.data } })
821
- );
822
- break;
823
- }
824
- case "customEvent": {
825
- dashboardComponent.dispatchEvent(
826
- new CustomEvent("customEvent", { detail: { data: event.data } })
827
- );
828
- break;
829
- }
830
- case "chartsRendered":
831
- case "itemsRendered": {
832
- event.data.type = "itemsRendered";
833
- dashboardComponent.dispatchEvent(
834
- new CustomEvent("itemsRendered", { detail: { data: event.data } })
835
- );
836
- break;
837
- }
838
- case "setEditMode": {
839
- if (event.data.error) {
840
- SharedLib.rejectPromise(
841
- dashboardComponent,
842
- event.data.requestId,
843
- event.data
844
- );
845
- } else {
846
- SharedLib.resolvePromise(
847
- dashboardComponent,
848
- event.data.requestId,
849
- event.data
850
- );
851
- dashboardComponent.params.editMode = event.data.editMode;
852
- dashboardComponent._containerStyle = SharedLib.containerStyles(dashboardComponent);
853
- if (dashboardComponent.dimensions) {
854
- SharedLib._setCalculatedDimensions(dashboardComponent);
855
- }
856
- }
857
- break;
858
- }
859
- case "setFilters": {
860
- event.data.error ? SharedLib.rejectPromise(
861
- dashboardComponent,
862
- event.data.requestId,
863
- event.data
864
- ) : SharedLib.resolvePromise(
865
- dashboardComponent,
866
- event.data.requestId,
867
- event.data
868
- );
869
- break;
870
- }
871
- case "setPreview": {
872
- event.data.error ? SharedLib.rejectPromise(
873
- dashboardComponent,
874
- event.data.requestId,
875
- event.data
876
- ) : SharedLib.resolvePromise(
877
- dashboardComponent,
878
- event.data.requestId,
879
- event.data
880
- );
881
- break;
882
- }
883
- }
884
- };
885
- window.addEventListener("message", window.__luzmoMessageHandler, false);
886
- };
887
- const dashboardStyles = i$4`
888
- @-webkit-keyframes spin {
889
- 0% {
890
- -webkit-transform: rotate(0deg);
891
- transform: rotate(0deg);
892
- }
893
- 100% {
894
- -webkit-transform: rotate(360deg);
895
- transform: rotate(360deg);
896
- }
897
- }
898
-
899
- @keyframes spin {
900
- 0% {
901
- -webkit-transform: rotate(0deg);
902
- transform: rotate(0deg);
903
- }
904
- 100% {
905
- -webkit-transform: rotate(360deg);
906
- transform: rotate(360deg);
907
- }
908
- }
909
- :host {
910
- position: relative;
911
- width: 100%;
912
- }
913
-
914
- .luzmo-embed-dashboard {
915
- background: transparent;
916
- padding: 0;
917
- border: 0;
918
- }
919
-
920
- .luzmo-container-loader {
921
- width: 100%;
922
- position: relative;
923
- }
924
-
925
- .luzmo-lc {
926
- margin: 0 auto;
927
- }
928
-
929
- .luzmo-loading-message {
930
- width: 100%;
931
- height: 20px;
932
- text-align: center;
933
- margin-bottom: 16px;
934
- font-family: Helvetica, Arial, sans-serif;
935
- font-size: 14px;
936
- }
937
-
938
- .luzmo-loading-circle {
939
- box-sizing: border-box;
940
- margin: 16px auto;
941
- position: relative;
942
- text-indent: -9999em;
943
- animation: spin 0.6s infinite linear;
944
- }
945
-
946
- .luzmo-loading-circle,
947
- .luzmo-loading-circle:after {
948
- border-radius: 50%;
949
- width: 32px;
950
- height: 32px;
951
- }
952
-
953
- .itemEmbedding:after {
954
- width: 24px;
955
- height: 24px;
956
- }
957
-
958
- .luzmo-error {
959
- background: transparent;
960
- padding: 48px 0;
961
- margin: 0 auto;
962
- width: 80%;
963
- border: 0;
964
- text-align: center;
965
- min-height: 192px;
966
- }
967
-
968
- .dashboard-error {
969
- font-size: 30px;
970
- background: transparent;
971
- padding: 48px 0;
972
- margin: 0 auto;
973
- width: 80%;
974
- border: 0;
975
- text-align: center;
976
- min-height: 192px;
977
- }
978
-
979
- .luzmo-loader {
980
- top: 0;
981
- left: 0;
982
- width: 100%;
983
- min-height: 400px;
984
- position: absolute;
985
- transition-duration: 0.3s;
986
- }
987
- `;
988
- var __defProp = Object.defineProperty;
989
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
990
- var __decorateClass = (decorators, target, key, kind) => {
991
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
992
- for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
993
- if (decorator = decorators[i3])
994
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
995
- if (kind && result)
996
- __defProp(target, key, result);
997
- return result;
998
- };
999
- let LuzmoDashboard = class extends s {
1000
- constructor(inputParameters) {
1001
- super();
1002
- this.language = "auto";
1003
- this.screenMode = "auto";
1004
- this.switchScreenModeOnResize = true;
1005
- this.editMode = "view";
1006
- this.dev = false;
1007
- this.iframeStyle = {};
1008
- this._containerStyle = {};
1009
- this._loaderStyle = {};
1010
- this._lcStyle = {};
1011
- this._loadingCircleStyle = {};
1012
- this._containerLoaderStyle = {};
1013
- this._loaderMsg = "";
1014
- this._itemEmbedding = false;
1015
- this.browserError = false;
1016
- this.browserErrorMsg = "";
1017
- this.dashboardError = false;
1018
- this.browserNotSupported = [];
1019
- this.VERSION = version + "-wc-luzmo";
1020
- this.isLibraryLoaded = false;
1021
- this.attributesMap = {
1022
- dashboardId: "dashboard-id",
1023
- dashboardSlug: "dashboard-slug",
1024
- itemId: "item-id",
1025
- language: "language",
1026
- qeVersion: "qe-version",
1027
- screenMode: "screen-mode",
1028
- switchScreenModeOnResize: "switch-screen-mode-on-resize",
1029
- authKey: "auth-key",
1030
- authToken: "auth-token",
1031
- editMode: "edit-mode",
1032
- mainColor: "main-color",
1033
- accentColor: "accent-color",
1034
- loaderBackground: "loader-background",
1035
- loaderFontColor: "loader-font-color",
1036
- loaderSpinnerColor: "loader-spinner-color",
1037
- loaderSpinnerBackground: "loader-spinner-background",
1038
- appServer: "app-server",
1039
- apiHost: "api-host",
1040
- itemDimensions: "item-dimensions",
1041
- timezoneId: "timezone-id"
1042
- };
1043
- this.loaderSize = 32;
1044
- this.borderWidth = 3;
1045
- this.minHeight = 400;
1046
- this._containerId = SharedLib.uuidv4();
1047
- this._iframeId = `luzmo-dashboard-${this._containerId}`;
1048
- this.iframeLoaded = false;
1049
- this.promises = {};
1050
- this.setInputParameters(inputParameters);
1051
- this.params = this._setOptions();
1052
- this._onResize = () => {
1053
- var _a2;
1054
- if ((_a2 = this.shadowRoot) == null ? void 0 : _a2.querySelector(".dashboard-container")) {
1055
- this.containerWidth = this.container.clientWidth;
1056
- if (this.params.switchScreenModeOnResize && this.params.screenMode === "auto") {
1057
- for (const d2 of SharedLib.EXTENTS) {
1058
- if (d2.width[0] <= window.innerWidth && window.innerWidth <= d2.width[1]) {
1059
- this.currentScreenMode = d2.mode;
1060
- }
1061
- }
1062
- }
1063
- if (this.iframeLoaded) {
1064
- this._calculateDimAfterDashboardLoaded();
1065
- }
1066
- }
1067
- };
1068
- this._resizeObserver = new ResizeObserver((entries) => {
1069
- window.requestAnimationFrame(() => {
1070
- if (!Array.isArray(entries) || entries.length === 0) {
1071
- return;
1072
- }
1073
- this._onResize();
1074
- });
1075
- });
1076
- }
1077
- loadLibrary(appServer) {
1078
- if (remotesMap[appServer]) {
1079
- return Promise.resolve(remotesMap[appServer].module);
1080
- }
1081
- remotesMap[appServer] = { url: (appServer == null ? void 0 : appServer.startsWith("http://localhost")) ? `${SharedLib.removeTrailingSlash(appServer)}/remoteEntry.mjs` : `${SharedLib.removeTrailingSlash(appServer)}/dashboard-app/remoteEntry.mjs`, format: "esm", from: "vite", module: void 0 };
1082
- return __federationMethodGetRemote(appServer, "./DashboardApp").then((module) => {
1083
- const wrappedModule = __federationMethodWrapDefault(module, true);
1084
- remotesMap[appServer].module = wrappedModule;
1085
- return wrappedModule;
1086
- });
1087
- }
1088
- setInputParameters(inputParameters) {
1089
- if (!inputParameters) {
1090
- return;
1091
- }
1092
- const params = [
1093
- "dashboardId",
1094
- "dashboardSlug",
1095
- "itemId",
1096
- "language",
1097
- "qeVersion",
1098
- "screenMode",
1099
- "switchScreenModeOnResize",
1100
- "accentColor",
1101
- "mainColor",
1102
- "authToken",
1103
- "authKey",
1104
- "editMode",
1105
- "loaderBackground",
1106
- "loaderFontColor",
1107
- "loaderSpinnerColor",
1108
- "loaderSpinnerBackground",
1109
- "timezoneId",
1110
- "itemDimensions",
1111
- "apiHost"
1112
- ];
1113
- for (const key of params) {
1114
- const value = inputParameters[key];
1115
- if (value) {
1116
- this[key] = value;
1117
- }
1118
- }
1119
- if (inputParameters.dev) {
1120
- this.dev = inputParameters.dev;
1121
- }
1122
- if (inputParameters.appServer) {
1123
- this.appServer = SharedLib.addTrailingSlash(inputParameters.appServer);
1124
- }
1125
- }
1126
- // Set resize event listener
1127
- connectedCallback() {
1128
- super.connectedCallback();
1129
- }
1130
- // Set resize event listener
1131
- disconnectedCallback() {
1132
- super.disconnectedCallback();
1133
- this._resizeObserver.disconnect();
1134
- for (const promiseKey of Object.keys(this.promises)) {
1135
- this.promises[promiseKey].reject(
1136
- new Error("Dashboard component was removed")
1137
- );
1138
- }
1139
- }
1140
- firstUpdated() {
1141
- var _a2;
1142
- this._loaderMsg = (_a2 = SharedLib.getLoader(this)) == null ? void 0 : _a2.loadingMsg;
1143
- this._loaderStyles();
1144
- LuzmoService$1._components.push(this);
1145
- this.initComponent();
1146
- }
1147
- initComponent() {
1148
- var _a2, _b;
1149
- this.params = this._setOptions();
1150
- if (this.getIsViewMode()) {
1151
- this.loadLibrary(this.params.appServer).then(async () => {
1152
- this.isLibraryLoaded = true;
1153
- await this.updateComplete;
1154
- const oldReference = this.renderRoot.querySelector("dashboard-component");
1155
- this.dashboardReference = oldReference.cloneNode(true);
1156
- oldReference.replaceWith(this.dashboardReference);
1157
- this.dashboardReference.addEventListener("load", (payload) => this.dispatchEvent(new CustomEvent("load", payload)));
1158
- this.dashboardReference.addEventListener("itemsRendered", (payload) => this.dispatchEvent(new CustomEvent("itemsRendered", payload)));
1159
- this.dashboardReference.addEventListener("customEvent", (payload) => this.dispatchEvent(new CustomEvent("customEvent", payload)));
1160
- this.dashboardReference.addEventListener("changedFilters", (payload) => this.dispatchEvent(new CustomEvent("changedFilters", payload)));
1161
- this.dashboardReference.addEventListener("dashboardAction", (payload) => this.dispatchEvent(new CustomEvent("dashboardAction", payload)));
1162
- this.dashboardReference.addEventListener("export", (payload) => this.dispatchEvent(new CustomEvent("exported", payload)));
1163
- this.setAllAttributes();
1164
- });
1165
- } else {
1166
- this.containerWidth = (_a2 = this.container) == null ? void 0 : _a2.clientWidth;
1167
- SharedLib._extendAndValidate(this);
1168
- SharedLib._browserCheck(this);
1169
- this._setupLoader();
1170
- if (!this.params.error) {
1171
- this._loaderStyles();
1172
- _setEventHandler();
1173
- this._iframeUrl = SharedLib.createIframeUrl(this);
1174
- (_b = this.iframe) == null ? void 0 : _b.setAttribute("src", this._iframeUrl);
1175
- this.iframeStyle = SharedLib.calculateIframeStyles(this);
1176
- }
1177
- if (this.container) {
1178
- this._resizeObserver.observe(this.container);
1179
- }
1180
- }
1181
- }
1182
- setAllAttributes() {
1183
- if (this.dashboardReference) {
1184
- for (const key in this.attributesMap) {
1185
- if (!["authKey", "authToken", "apiHost"].includes(key) && this.params[key]) {
1186
- this.dashboardReference.setAttribute(this.attributesMap[key], this.params[key]);
1187
- }
1188
- if (this.params.apiHost) {
1189
- this.dashboardReference.setAttribute("api-host", SharedLib.removeTrailingSlash(this.params.apiHost));
1190
- }
1191
- if (this.params.key) {
1192
- this.dashboardReference.setAttribute("auth-key", this.params.key);
1193
- }
1194
- if (this.params.token) {
1195
- this.dashboardReference.setAttribute("auth-token", this.params.token);
1196
- }
1197
- }
1198
- }
1199
- }
1200
- // Reload dashboard when triggerproperty changes
1201
- updated(changedProperties) {
1202
- const triggerProperties = /* @__PURE__ */ new Set([
1203
- "dashboardId",
1204
- "dashboardSlug",
1205
- "itemId",
1206
- "language",
1207
- "qeVersion",
1208
- "editMode",
1209
- "screenMode",
1210
- "switchScreenModeOnResize",
1211
- "authToken",
1212
- "authKey",
1213
- "appServer",
1214
- "timezoneId",
1215
- "itemDimensions"
1216
- ]);
1217
- if (!this.getIsViewMode()) {
1218
- for (const [propertyName] of changedProperties.entries()) {
1219
- if (triggerProperties.has(propertyName) && propertyName !== "editMode") {
1220
- this.iframeLoaded = false;
1221
- if (this._loadTimeoutHandle) {
1222
- clearTimeout(this._loadTimeoutHandle);
1223
- }
1224
- this._loadTimeoutHandle = setTimeout(() => {
1225
- console.error(
1226
- "Failed to load dashboard, appServer is likely down or unreachable."
1227
- );
1228
- }, 15 * 1e3);
1229
- this.params = this._setOptions();
1230
- SharedLib._extendAndValidate(this);
1231
- this._setupLoader();
1232
- this._loaderStyles();
1233
- this._iframeUrl = SharedLib.createIframeUrl(this);
1234
- if (this.iframe) {
1235
- this._updateIframeUrl();
1236
- }
1237
- this.iframeStyle = SharedLib.calculateIframeStyles(this);
1238
- } else if (triggerProperties.has(propertyName) && propertyName === "editMode") {
1239
- if (this.iframeLoaded) {
1240
- this.setEditMode(this.editMode);
1241
- }
1242
- this.params = this._setOptions();
1243
- }
1244
- }
1245
- } else {
1246
- if (this.dashboardReference) {
1247
- for (const [propertyName] of changedProperties.entries()) {
1248
- if (propertyName === "appSever") {
1249
- this.loadLibrary(changedProperties[propertyName]).then(async () => {
1250
- this.isLibraryLoaded = true;
1251
- await this.updateComplete;
1252
- this.dashboardReference = this.renderRoot.querySelector("dashboard-component");
1253
- this.setAllAttributes();
1254
- });
1255
- } else if (this.attributesMap[propertyName]) {
1256
- this.dashboardReference.setAttribute(this.attributesMap[propertyName] ?? propertyName, this[propertyName]);
1257
- }
1258
- }
1259
- }
1260
- }
1261
- }
1262
- // Set params
1263
- _setOptions() {
1264
- const defaultParameters = {
1265
- dashboardId: this.dashboardId,
1266
- dashboardSlug: this.dashboardSlug
1267
- };
1268
- if (this.itemId) {
1269
- defaultParameters.itemId = this.itemId;
1270
- this._itemEmbedding = true;
1271
- } else {
1272
- this._itemEmbedding = false;
1273
- }
1274
- if (this.language) {
1275
- defaultParameters.language = this.language;
1276
- }
1277
- if (this.qeVersion) {
1278
- defaultParameters.qeVersion = this.qeVersion;
1279
- }
1280
- if (this.screenMode) {
1281
- defaultParameters.screenMode = this.screenMode;
1282
- }
1283
- defaultParameters.switchScreenModeOnResize = this.switchScreenModeOnResize;
1284
- if (this.authToken) {
1285
- defaultParameters.token = this.authToken;
1286
- }
1287
- if (this.authKey) {
1288
- defaultParameters.key = this.authKey;
1289
- }
1290
- if (this.editMode) {
1291
- defaultParameters.editMode = this.editMode;
1292
- }
1293
- if (this.mainColor) {
1294
- defaultParameters.mainColor = this.mainColor;
1295
- }
1296
- if (this.accentColor) {
1297
- defaultParameters.accentColor = this.accentColor;
1298
- }
1299
- if (this.loaderBackground) {
1300
- defaultParameters.loaderBackground = this.loaderBackground;
1301
- }
1302
- if (this.loaderFontColor) {
1303
- defaultParameters.loaderFontColor = this.loaderFontColor;
1304
- }
1305
- if (this.loaderSpinnerColor) {
1306
- defaultParameters.loaderSpinnerColor = this.loaderSpinnerColor;
1307
- }
1308
- if (this.loaderSpinnerBackground) {
1309
- defaultParameters.loaderSpinnerBackground = this.loaderSpinnerBackground;
1310
- }
1311
- if (this.timezoneId) {
1312
- defaultParameters.timezoneId = this.timezoneId;
1313
- }
1314
- if (this.itemDimensions) {
1315
- defaultParameters.itemDimensions = this.itemDimensions;
1316
- }
1317
- if (this.appServer) {
1318
- this.appServer = this.getIsViewMode() ? SharedLib.removeTrailingSlash(this.appServer) : SharedLib.addTrailingSlash(this.appServer);
1319
- defaultParameters.appServer = this.appServer;
1320
- } else {
1321
- this.appServer = SharedLib.addTrailingSlash(
1322
- SharedLib.DEFAULT_PARAMETERS.appServer
1323
- );
1324
- defaultParameters.appServer = this.appServer;
1325
- }
1326
- if (this.apiHost) {
1327
- this.apiHost = this.getIsViewMode() ? SharedLib.removeTrailingSlash(this.apiHost) : SharedLib.addTrailingSlash(this.apiHost);
1328
- defaultParameters.apiHost = this.apiHost;
1329
- } else {
1330
- this.apiHost = this.appServer.endsWith("luzmo.com/") ? this.appServer.replace("app", "api") : this.appServer;
1331
- defaultParameters.apiHost = this.apiHost;
1332
- }
1333
- return defaultParameters;
1334
- }
1335
- _updateIframeUrl() {
1336
- SharedLib.updateIframeUrl(this.iframe, this._iframeUrl);
1337
- }
1338
- // Setup loader / browser error
1339
- _setupLoader() {
1340
- const data = SharedLib.getLoader(this);
1341
- this._loaderMsg = data.loadingMsg;
1342
- if (data.errorMsg) {
1343
- this.browserError = true;
1344
- this.browserErrorMsg = data.errorMsg;
1345
- this._displayError();
1346
- }
1347
- }
1348
- _displayError() {
1349
- if (this.dashboardError) {
1350
- this._loaderStyles();
1351
- this.iframeStyle.opacity = 1;
1352
- }
1353
- if (this.browserError) {
1354
- this._containerStyle.display = "none";
1355
- }
1356
- }
1357
- _calculateDimAfterDashboardLoaded() {
1358
- this.dashboardError = false;
1359
- this._loaderStyles();
1360
- SharedLib._setCalculatedDimensions(this);
1361
- }
1362
- // Set loader styles
1363
- _loaderStyles() {
1364
- this._containerStyle = SharedLib.containerStyles(this);
1365
- this._loaderStyle = SharedLib.loaderStyles(this);
1366
- this._loadingCircleStyle = SharedLib.plStyles(this);
1367
- this._containerLoaderStyle = SharedLib.containerLoaderStyles(this);
1368
- this._lcStyle = SharedLib.lcStyles(this);
1369
- }
1370
- static get styles() {
1371
- return [dashboardStyles];
1372
- }
1373
- render() {
1374
- let toBeRenderedHTML = x``;
1375
- const loader = x`
1376
- <div
1377
- class="luzmo-container-loader"
1378
- id="luzmo-container-loader-${this._containerId}"
1379
- style=${o(
1380
- this._containerLoaderStyle
1381
- )}
1382
- >
1383
- <div
1384
- class="luzmo-loader"
1385
- id="luzmo-loader-${this._containerId}"
1386
- style=${o(this._loaderStyle)}
1387
- >
1388
- <div
1389
- class="luzmo-lc"
1390
- style=${o(this._lcStyle)}
1391
- >
1392
- <div
1393
- class="luzmo-loading-circle"
1394
- style=${o(
1395
- this._loadingCircleStyle
1396
- )}
1397
- ></div>
1398
- ${this._itemEmbedding ? "" : x`
1399
- <div
1400
- class="luzmo-loading-message"
1401
- style=${o({ color: this.loaderFontColor })}
1402
- >
1403
- ${this._loaderMsg}
1404
- </div>
1405
- `}
1406
- </div>
1407
- </div>
1408
- </div>
1409
- `;
1410
- if (!this.getIsViewMode()) {
1411
- toBeRenderedHTML = x`
1412
- ${this.dashboardId || this.dashboardSlug ? x`
1413
- ${loader}
1414
- <iframe
1415
- class="luzmo-embed-dashboard"
1416
- id="${this._iframeId}"
1417
- name="${this._iframeId}"
1418
- style=${o(this.iframeStyle)}
1419
- src="${this._iframeUrl}"
1420
- frameborder="0"
1421
- ></iframe>
1422
- ` : x`<!-- the dashboard will inititialize when you provide a dashboardSlug or a dashboardId -->`}
1423
- ${this.browserError ? x`
1424
- <div id="luzmo-error-${this._containerId}">
1425
- <h3 class="luzmo-error">${this.browserErrorMsg}</h3>
1426
- </div>
1427
- ` : ""}
1428
- `;
1429
- } else {
1430
- toBeRenderedHTML = this.isLibraryLoaded ? x`
1431
- ${this.dashboardId || this.dashboardSlug ? x`<dashboard-component dashboard-id="${this.params.dashboardId}" app-server="${this.params.appServer}" api-host="${this.params.apiHost}"></dashboard-component>` : x`
1432
- <div id="luzmo-error-${this._containerId}">
1433
- <h3 class="luzmo-error">${this.browserErrorMsg}</h3>
1434
- </div>
1435
- `}
1436
- ` : x`${loader}`;
1437
- }
1438
- return x`
1439
- <div
1440
- class="dashboard-container"
1441
- style=${o(this._containerStyle)}
1442
- >
1443
- ${toBeRenderedHTML}
1444
- </div>
1445
- `;
1446
- }
1447
- getDashboards() {
1448
- return new Promise(
1449
- (resolve) => resolve(LuzmoService$1._components)
1450
- );
1451
- }
1452
- // Public methods
1453
- getData(itemId) {
1454
- if (this.getIsViewMode() && this.dashboardReference) {
1455
- return this.dashboardReference.getData(itemId);
1456
- }
1457
- if (!this.getIsViewMode()) {
1458
- return SharedLib.getData(this, this.iframe, itemId);
1459
- }
1460
- return Promise.reject();
1461
- }
1462
- getFilters() {
1463
- if (this.getIsViewMode() && this.dashboardReference) {
1464
- return this.dashboardReference.getFilters();
1465
- }
1466
- if (!this.getIsViewMode()) {
1467
- return SharedLib.getFilters(this, this.iframe);
1468
- }
1469
- return Promise.reject();
1470
- }
1471
- setFilters(itemId, filters) {
1472
- if (this.getIsViewMode() && this.dashboardReference) {
1473
- return Promise.reject();
1474
- }
1475
- if (!this.getIsViewMode()) {
1476
- return SharedLib.setFilters(this, this.iframe, itemId, filters);
1477
- }
1478
- return Promise.reject();
1479
- }
1480
- setAuthorization(key, token) {
1481
- if (this.getIsViewMode() && this.dashboardReference) {
1482
- return this.dashboardReference.setAuthorization(key, token);
1483
- }
1484
- if (!this.getIsViewMode()) {
1485
- return SharedLib.setAuthorization(this, this.iframe, key, token);
1486
- }
1487
- return Promise.reject();
1488
- }
1489
- refreshData(itemId) {
1490
- if (this.getIsViewMode() && this.dashboardReference) {
1491
- return this.dashboardReference.refreshData(itemId);
1492
- }
1493
- if (!this.getIsViewMode()) {
1494
- return itemId ? SharedLib.refreshData(this, this.iframe, itemId) : SharedLib.refreshData(this, this.iframe);
1495
- }
1496
- return Promise.reject();
1497
- }
1498
- reloadDashboard() {
1499
- if (this.getIsViewMode() && this.dashboardReference) {
1500
- return this.dashboardReference.reloadDashboard();
1501
- }
1502
- if (!this.getIsViewMode()) {
1503
- return SharedLib.reloadDashboard(this, this.iframe);
1504
- }
1505
- return Promise.reject();
1506
- }
1507
- exportDashboard(format) {
1508
- if (this.getIsViewMode() && this.dashboardReference) {
1509
- return this.dashboardReference.exportDashboard(format);
1510
- }
1511
- if (!this.getIsViewMode()) {
1512
- return format ? SharedLib.exportDashboard(this, this.iframe, format) : SharedLib.exportDashboard(this, this.iframe);
1513
- }
1514
- return Promise.reject();
1515
- }
1516
- getAccessibleDashboards() {
1517
- if (!this.getIsViewMode()) {
1518
- return SharedLib.getAccessibleDashboards(this, this.iframe);
1519
- }
1520
- if (this.getIsViewMode() && this.dashboardReference) {
1521
- return this.dashboardReference.getAccessibleDashboards();
1522
- }
1523
- return Promise.reject();
1524
- }
1525
- setEditMode(editMode) {
1526
- if (this.dashboardReference && editMode === "view") {
1527
- this.editMode = "view";
1528
- this.params.editMode = "view";
1529
- this.initComponent();
1530
- return Promise.resolve({
1531
- type: "setEditMode",
1532
- editMode
1533
- });
1534
- }
1535
- if (this.dashboardReference && ["editFull", "editLimited"].includes(editMode)) {
1536
- this.editMode = editMode;
1537
- this.params.editMode = editMode;
1538
- this.initComponent();
1539
- return Promise.resolve({
1540
- type: "setEditMode",
1541
- editMode
1542
- });
1543
- }
1544
- if (this.getIsViewMode() && this.dashboardReference) {
1545
- return this.dashboardReference.setEditMode(editMode);
1546
- }
1547
- if (!this.getIsViewMode()) {
1548
- return SharedLib.setEditMode(this, this.iframe, editMode);
1549
- }
1550
- return Promise.reject();
1551
- }
1552
- setPreview(preview) {
1553
- if (this.getIsViewMode() && this.dashboardReference) {
1554
- return this.dashboardReference.setPreview(preview);
1555
- }
1556
- return SharedLib.setPreview(this, this.iframe, preview);
1557
- }
1558
- getIsViewMode() {
1559
- if (this.dev && this.params.editMode === "view" || this.params.editMode === void 0) {
1560
- return true;
1561
- }
1562
- return false;
1563
- }
1564
- };
1565
- __decorateClass([
1566
- e$1(".dashboard-container")
1567
- ], LuzmoDashboard.prototype, "container", 2);
1568
- __decorateClass([
1569
- e$1("iframe")
1570
- ], LuzmoDashboard.prototype, "iframe", 2);
1571
- __decorateClass([
1572
- n$1()
1573
- ], LuzmoDashboard.prototype, "dashboardId", 2);
1574
- __decorateClass([
1575
- n$1()
1576
- ], LuzmoDashboard.prototype, "dashboardSlug", 2);
1577
- __decorateClass([
1578
- n$1()
1579
- ], LuzmoDashboard.prototype, "itemId", 2);
1580
- __decorateClass([
1581
- n$1()
1582
- ], LuzmoDashboard.prototype, "language", 2);
1583
- __decorateClass([
1584
- n$1()
1585
- ], LuzmoDashboard.prototype, "qeVersion", 2);
1586
- __decorateClass([
1587
- n$1()
1588
- ], LuzmoDashboard.prototype, "screenMode", 2);
1589
- __decorateClass([
1590
- n$1({
1591
- converter: {
1592
- fromAttribute: (value) => value === "true",
1593
- toAttribute: String
1594
- }
1595
- })
1596
- ], LuzmoDashboard.prototype, "switchScreenModeOnResize", 2);
1597
- __decorateClass([
1598
- n$1()
1599
- ], LuzmoDashboard.prototype, "editMode", 2);
1600
- __decorateClass([
1601
- n$1()
1602
- ], LuzmoDashboard.prototype, "mainColor", 2);
1603
- __decorateClass([
1604
- n$1()
1605
- ], LuzmoDashboard.prototype, "accentColor", 2);
1606
- __decorateClass([
1607
- n$1()
1608
- ], LuzmoDashboard.prototype, "authToken", 2);
1609
- __decorateClass([
1610
- n$1()
1611
- ], LuzmoDashboard.prototype, "authKey", 2);
1612
- __decorateClass([
1613
- n$1()
1614
- ], LuzmoDashboard.prototype, "loaderBackground", 2);
1615
- __decorateClass([
1616
- n$1()
1617
- ], LuzmoDashboard.prototype, "loaderFontColor", 2);
1618
- __decorateClass([
1619
- n$1()
1620
- ], LuzmoDashboard.prototype, "loaderSpinnerColor", 2);
1621
- __decorateClass([
1622
- n$1()
1623
- ], LuzmoDashboard.prototype, "loaderSpinnerBackground", 2);
1624
- __decorateClass([
1625
- n$1()
1626
- ], LuzmoDashboard.prototype, "appServer", 2);
1627
- __decorateClass([
1628
- n$1()
1629
- ], LuzmoDashboard.prototype, "timezoneId", 2);
1630
- __decorateClass([
1631
- n$1()
1632
- ], LuzmoDashboard.prototype, "apiHost", 2);
1633
- __decorateClass([
1634
- n$1({ type: Object })
1635
- ], LuzmoDashboard.prototype, "itemDimensions", 2);
1636
- __decorateClass([
1637
- n$1()
1638
- ], LuzmoDashboard.prototype, "dev", 2);
1639
- __decorateClass([
1640
- n$1({ attribute: false })
1641
- ], LuzmoDashboard.prototype, "_containerId", 2);
1642
- __decorateClass([
1643
- n$1({ attribute: false })
1644
- ], LuzmoDashboard.prototype, "_iframeId", 2);
1645
- __decorateClass([
1646
- n$1({ attribute: false })
1647
- ], LuzmoDashboard.prototype, "params", 2);
1648
- __decorateClass([
1649
- n$1({ attribute: false })
1650
- ], LuzmoDashboard.prototype, "_iframeUrl", 2);
1651
- __decorateClass([
1652
- n$1({ attribute: false })
1653
- ], LuzmoDashboard.prototype, "iframeLoaded", 2);
1654
- __decorateClass([
1655
- n$1({ attribute: false })
1656
- ], LuzmoDashboard.prototype, "promises", 2);
1657
- __decorateClass([
1658
- n$1({ attribute: false })
1659
- ], LuzmoDashboard.prototype, "iframeStyle", 2);
1660
- __decorateClass([
1661
- n$1({ attribute: false })
1662
- ], LuzmoDashboard.prototype, "_containerStyle", 2);
1663
- __decorateClass([
1664
- n$1({ attribute: false })
1665
- ], LuzmoDashboard.prototype, "_loaderStyle", 2);
1666
- __decorateClass([
1667
- n$1({ attribute: false })
1668
- ], LuzmoDashboard.prototype, "_lcStyle", 2);
1669
- __decorateClass([
1670
- n$1({ attribute: false })
1671
- ], LuzmoDashboard.prototype, "_loadingCircleStyle", 2);
1672
- __decorateClass([
1673
- n$1({ attribute: false })
1674
- ], LuzmoDashboard.prototype, "_containerLoaderStyle", 2);
1675
- __decorateClass([
1676
- n$1({ attribute: false })
1677
- ], LuzmoDashboard.prototype, "_loaderMsg", 2);
1678
- __decorateClass([
1679
- n$1({ attribute: false })
1680
- ], LuzmoDashboard.prototype, "containerWidth", 2);
1681
- __decorateClass([
1682
- n$1({ attribute: false })
1683
- ], LuzmoDashboard.prototype, "dimensions", 2);
1684
- __decorateClass([
1685
- n$1({ attribute: false })
1686
- ], LuzmoDashboard.prototype, "currentScreenMode", 2);
1687
- __decorateClass([
1688
- n$1({ attribute: false })
1689
- ], LuzmoDashboard.prototype, "_itemEmbedding", 2);
1690
- __decorateClass([
1691
- n$1({ attribute: false })
1692
- ], LuzmoDashboard.prototype, "browserError", 2);
1693
- __decorateClass([
1694
- n$1({ attribute: false })
1695
- ], LuzmoDashboard.prototype, "browserErrorMsg", 2);
1696
- __decorateClass([
1697
- n$1({ attribute: false })
1698
- ], LuzmoDashboard.prototype, "dashboardError", 2);
1699
- __decorateClass([
1700
- n$1({ attribute: false })
1701
- ], LuzmoDashboard.prototype, "browserNotSupported", 2);
1702
- __decorateClass([
1703
- n$1({ attribute: false })
1704
- ], LuzmoDashboard.prototype, "VERSION", 2);
1705
- __decorateClass([
1706
- r()
1707
- ], LuzmoDashboard.prototype, "isLibraryLoaded", 2);
1708
- __decorateClass([
1709
- r()
1710
- ], LuzmoDashboard.prototype, "dashboardReference", 2);
1711
- LuzmoDashboard = __decorateClass([
1712
- t$1("luzmo-dashboard")
1713
- ], LuzmoDashboard);
1714
- export {
1715
- LuzmoDashboard
1716
- };