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