@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.
@@ -1,909 +1,10 @@
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`
1
+ var Dt=Object.defineProperty;var Pt=Object.getOwnPropertyDescriptor;var m=(t,e,r,i)=>{for(var s=i>1?void 0:i?Pt(e,r):e,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=(i?a(e,r,s):a(s))||s);return i&&s&&Dt(e,r,s),s};var P=(t,e)=>{let r="The dashboard component encountered an error";typeof e?.dashboardId=="string"&&(r+=` for dashboard with id ${e.dashboardId}`),typeof e?.dashboardSlug=="string"&&(r+=` for dashboard with slug ${e.dashboardSlug}`),typeof e?.container=="string"&&(r+=` in container ${e.container}`),t&&(r+=`:
2
+ ${t}`,console.error(r))};var Te=t=>{let e=!1,r="",s=(document.body||document.documentElement).style,o={svg:!!("createElementNS"in document&&document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),flexbox:s.webkitFlexWrap===""||s.flexWrap==="",postMessage:!!window.postMessage},a=["svg","flexbox","postMessage"];for(let h of a)o[h]||(e=!0,t.browserNotSupported=t.browserNotSupported||[],t.browserNotSupported.push(h),r+=`Your browser does not support: ${h}
3
+ `);let n=window.navigator.userAgent,d=n.includes("MSIE"),l=n.includes("Trident/");(d||l)&&(e=!0,r="IE is not supported."),e&&P(r)};var w={appServer:"https://app.luzmo.com/",apiHost:"https://api.luzmo.com/",dashboardId:null,dashboardSlug:null,container:null,key:null,token:null,language:"auto",qeVersion:null,editMode:null,screenMode:null,switchScreenModeOnResize:!0,itemId:null,mainColor:"",accentColor:"",itemDimensions:{width:"auto",height:"auto"},loaderBackground:"#f9f9f9",loaderFontColor:"#5a5a5a",loaderSpinnerColor:"rgba(255, 165, 0, 0.7)",loaderSpinnerBackground:"rgba(169, 169, 169, 0.14)",timezoneId:null,contextId:null};var Z=[{mode:"mobile",width:[150,767]},{mode:"tablet",width:[768,1199]},{mode:"desktop",width:[1200,1599]},{mode:"largeScreen",width:[1600,9999]},{mode:"fixed",width:[]}];var Tt={initializing:{en:"Initializing...",nl:"Laden...",fr:"Chargement..."},errorDashboard:{en:"Oops, we could not load this dashboard!",nl:"Oeps, we konden het dashboard niet laden.",fr:"Le chargement a echou\xE9."},errorItem:{en:"Oops, we could not load this item!",nl:"Oeps, we konden de grafiek niet laden.",fr:"Le chargement a echou\xE9."}},ne=Tt;var z=t=>t?t.endsWith("/")?t:`${t}/`:"",T=t=>t?t.endsWith("/")?t.slice(0,-1):t:"",ke=(t,e,r,i)=>{let s=(n,d)=>{let l=n.users.find(f=>f.id===d.id),h=l&&l.userAccessRight?{flagRead:l.userAccessRight.flagRead,flagUse:l.userAccessRight.flagUse,flagModify:l.userAccessRight.flagModify,flagOwn:l.userAccessRight.flagOwn}:{flagRead:!1,flagUse:!1,flagModify:!1,flagOwn:!1},S=n.groups.filter(f=>d.userGroups.includes(f.id)||f.public===!0).map(f=>{if(f.groupAccessRight)return f.groupAccessRight});for(let f of S)!h.flagRead&&f.flagRead&&(h.flagRead=f.flagRead),!h.flagUse&&f.flagUse&&(h.flagUse=f.flagUse),!h.flagModify&&f.flagModify&&(h.flagModify=f.flagModify),!h.flagOwn&&f.flagOwn&&(h.flagOwn=f.flagOwn);let g=n.integrations?.length>0?n.integrations.map(f=>{if(f.integrationAccessRight)return f.integrationAccessRight}):[];for(let f of g)!h.flagRead&&f.flagRead&&(h.flagRead=f.flagRead),!h.flagUse&&f.flagUse&&(h.flagUse=f.flagUse),!h.flagModify&&f.flagModify&&(h.flagModify=f.flagModify);return h},o=(n,d)=>{if(n==null)return"";if(typeof n!="object"||Object.keys(n).length===0)return typeof n=="object"&&Object.keys(n).length===0?"":n;let l;return l=d&&n[d]?n[d]:n[Object.keys(n)[0]],l==null&&(l=""),l},a=[];for(let n of t){let d={accessibleBy:[],accessRights:s(n,r),id:n.id,modifiedAt:n.modified_at,name:o(n.name,i.language),slug:null,tags:n.tags.map(g=>g.tag).sort((g,f)=>g.localeCompare(f))},l=n.integrations.find(g=>g.id===e);l?.integrationAccessRight?.slug&&(d.slug=l.integrationAccessRight.slug);let h=n.users.map(g=>({model:"User",id:g.id,name:o(g.name,r.locale_id)})),p=n.groups.map(g=>({model:"Group",id:g.id,name:o(g.name,r.locale_id)||{}})),S=n.integrations.map(g=>({model:"Integration",id:g.id,name:o(g.name,r.locale_id)||{}}));d.accessibleBy=[...h,...p,...S],a.push(d)}return a},Oe="0.0.0-shared-luzmo",He=t=>{let e=/^(%20|\s)*(javascript|data)/im,r=/[^\u0020-\u007E]/gim,i=/^([^:]+):/gm,s=new Set([".","/"]),o=l=>s.has(l[0]);if(!t)return"about:blank";let a=t.replaceAll(r,"").trim();if(o(a))return a;let n=a.match(i);if(!n)return a;let d=n[0];return e.test(d)?"about:blank":a},de=t=>JSON.parse(JSON.stringify(t)),kt=t=>t&&typeof t=="object",Q=(t,e)=>(Object.entries(e).forEach(([r,i])=>{r in t?t[r]===void 0?t[r]=i:t[r]=kt(i)?Q(t[r],i):t[r]:t[r]=i}),t);var y=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g,function(t){let e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)});var le=t=>{let e=[],{appServer:r,language:i,qeVersion:s,loaderBackground:o,loaderSpinnerColor:a,loaderSpinnerBackground:n,loaderFontColor:d,screenMode:l,key:h,token:p,timezoneId:S,itemEmbedding:g,itemDimensions:f,dashboardId:Ie,dashboardSlug:Ae,itemId:Rt,mainColor:Re,accentColor:Le,editMode:De}=t.params;i&&i!=="auto"&&e.push("language="+i),s&&e.push(`qe_version=${s}`),o&&e.push(`ldrbg=${o}`),d&&e.push(`ldrftclr=${d}`),a&&e.push(`ldrspclr=${a}`),n&&e.push(`ldrspbg=${n}`),Re&&e.push(`mainColor=${Re}`),Le&&e.push(`accentColor=${Le}`),l&&l!=="auto"&&e.push("screenMode="+l),S&&e.push("timezoneId="+S),g&&f&&f.width&&e.push("width="+f.width),g&&f&&f.height&&e.push("height="+f.height),De&&e.push("editMode="+De);let Pe=h&&p?"#"+h+":"+p:"";e.push("version="+(t.VERSION||Oe));let Lt=g?`${r}i/${Ie||Ae}/${Rt}?${encodeURIComponent(e.join("&"))}${Pe}`:`${r}i/${Ie||Ae}?${encodeURIComponent(e.join("&"))}${Pe}`;return He(Lt)};var he=t=>{let e;(t.params.error||t.browserNotSupported.length>0)&&(t.params.error=!0,t.browserNotSupported&&(e="Browser is not supported."));let r=ne.initializing[t.params.language]||ne.initializing.en;return t.browserNotSupported||t.params.error?{loadingMsg:r,errorMsg:e}:{loadingMsg:r,errorMsg:""}};function v(t,e,r){t.promises[e]&&(t.promises[e].resolve(r),delete t.promises[e])}function F(t,e,r){t.promises[e]&&(t.promises[e].reject(r),delete t.promises[e])}function ee(t){let e={};return t.params.loaderBackground&&!t.iframeLoaded&&(e.background=t.params.loaderBackground),e}function Fe(t){let e=t.params.itemDimensions?.height||w.itemDimensions.height,r=t.params.itemEmbedding&&e!=="auto";return{display:t.iframeLoaded?"none":"",height:`${r?e:t.minHeight}px`}}function Ne(t){let e=t.params.loaderBackground||w.loaderBackground;if(t.params.itemEmbedding){t.loaderSize=24,t.borderWidth=4,t.minHeight=200;let r=t.params.itemDimensions?.width||w.itemDimensions.width,i=t.params.itemDimensions?.height||w.itemDimensions.height,s=r!=="auto",o=i!=="auto";return{background:e,width:s?`${r}px`:"100%",height:`${o?i:"200"}px`,"min-height":o?"":"200px"}}return{background:e}}function Ue(t){let{loaderSpinnerColor:e,loaderSpinnerBackground:r}=w,i=ze(t.borderWidth,t.params.loaderSpinnerColor||e),s=ze(t.borderWidth,t.params.loaderSpinnerBackground||r),o=`${t.loaderSize}px`;return{"border-top":i,"border-right":i,"border-bottom":s,"border-left":s,width:o,height:o}}function je(t){let e=t.params.itemDimensions?.height||w.itemDimensions.height,r=t.params.itemEmbedding&&e!=="auto",i=o=>`${(o-t.loaderSize-32)/2}px`;return{padding:`${t.params.itemId?i(r?Number.parseInt(`${e}`,10):t.minHeight):"128px"} 16px`}}function ce(t){let e=t.params.itemDimensions?.height||w.itemDimensions.height,r=t.params.itemDimensions?.width||w.itemDimensions.width;t.params.itemEmbedding&&e!=="auto"?t.iframeHeight=`${e}px`:t.params.itemEmbedding?t.iframeHeight="200px":["editFull","editLimited"].includes(t.params.editMode)?t.iframeHeight="100%":t.iframeHeight="400px",t.iframeWidth=t.params.itemEmbedding&&r!=="auto"?`${r}px`:"100%";let i={height:t.iframeHeight,width:t.iframeWidth};return t.iframeLoaded?i.opacity=1:t.error?(i.opacity=1,i.width="100%",i.height="400px"):i.opacity=0,i}function ze(t,e){return`${t}px solid ${e}`}var Ve=(t,e)=>{t?.contentWindow&&t.contentWindow.location.replace(e)};var me=(t,e,r)=>{let i=y();return e?.contentWindow?(e.contentWindow.postMessage({action:"exportDashboard",format:r||"png",_version:t.VERSION,requestId:i},"*"),new Promise((s,o)=>{t.promises[i]={resolve:s,reject:o},setTimeout(()=>{if(t.promises[i]){let a="exportDashboard request timed out.";t.promises[i].reject(new Error(a)),delete t.promises[i]}},12e5)})):Promise.reject(new Error("Cannot retrieve contentWindow."))};var We=(t,e)=>{if((t.dashboardId||t.dashboardSlug)&&e?.contentWindow){let i=y();return e.contentWindow.postMessage({action:"getAccessibleDashboards",_version:t.VERSION,requestId:i},"*"),new Promise((s,o)=>{t.promises[i]={resolve:s,reject:o},setTimeout(()=>{if(t.promises[i]){let a="getAccessibleDashboards request timed out.";t.promises[i].reject(new Error(a)),delete t.promises[i]}},2e3)})}let r=new Promise((i,s)=>{(()=>{try{window.fetch(`${String(t.params.apiHost)}0.1.0/authorization`,{method:"POST",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json"},redirect:"follow",body:JSON.stringify({action:"get",version:"0.1.0",key:t.authKey,token:t.authToken,find:{where:{id:t.authKey},attributes:["id","integration_id"],include:[{model:"User",attributes:["id","name","locale_id"],include:[{model:"Group"}]}]}})}).then(a=>a.json()).then(a=>{!a||!a.rows||a.rows.length===0||!a.rows[0].user||!a.rows[0].integration_id?s():(a.rows[0].user.userGroups=a.rows[0].user.groups.map(n=>n.id),delete a.rows[0].user.groups,i({integrationId:a.rows[0].integration_id,user:a.rows[0].user}))})}catch(o){s(o)}})()});return new Promise((i,s)=>void(()=>{try{r.then(o=>{window.fetch(`${String(t.params.apiHost)}0.1.0/securable`,{method:"POST",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json"},redirect:"follow",body:JSON.stringify({action:"get",version:"0.1.0",key:t.authKey,token:t.authToken,find:{where:{type:"dashboard",is_variant:!1},attributes:["id","name","modified_at"],order:[["modified_at","desc"]],include:[{model:"Tag",attributes:["tag"]},{model:"User",attributes:["id","name"]},{model:"Group",attributes:["id","name","public"]},{model:"Integration",attributes:["id","name"]}]}})}).then(n=>n.json()).then(n=>{let d=n.rows.length>0?ke(n.rows,o.integrationId,o.user,t):[];i(d)})}).catch(o=>{s(o)})}catch(o){s(o)}})())};var Be=(t,e,r)=>{if(e?.contentWindow){let i=y();return e.contentWindow.postMessage({action:"getData",id:r,_version:t.VERSION,requestId:i},"*"),new Promise((s,o)=>{t.promises[i]={resolve:s,reject:o},setTimeout(()=>{if(t.promises[i]){let a="getData request timed out.";t.promises[i].reject(new Error(a)),delete t.promises[i]}},2e3)})}return Promise.reject(new Error("Cannot retrieve contentWindow."))};var Ce=(t,e)=>{if(e?.contentWindow){let r=y();return e.contentWindow.postMessage({action:"getFilters",_version:t.VERSION,requestId:r},"*"),new Promise((i,s)=>{t.promises[r]={resolve:i,reject:s},setTimeout(()=>{if(t.promises[r]){let o="getFilters request timed out.";t.promises[r].reject(new Error(o)),delete t.promises[r]}},2e3)})}return Promise.reject(new Error("Cannot retrieve contentWindow."))};var ue=(t,e,r)=>e?(e.contentWindow.postMessage({action:"refreshData",id:r??null,_version:t.VERSION},"*"),Promise.resolve()):Promise.reject(new Error("Cannot retrieve contentWindow."));var qe=(t,e)=>e?(e.contentWindow.postMessage({action:"reloadDashboard",_version:t.VERSION},"*"),Promise.resolve()):Promise.reject(new Error("Cannot retrieve contentWindow."));var Ke=(t,e,r,i)=>e?(e.contentWindow.postMessage({action:"setAuthorization",key:r,token:i,_version:t.VERSION},"*"),Promise.resolve()):Promise.reject(new Error("Cannot retrieve contentWindow."));var Ge=(t,e,r)=>{if(e&&e.contentWindow){let i=y();return t.params.editMode===r?Promise.reject(new Error("editMode parameter is currently already set to "+r)):r!=="editFull"&&r!=="editLimited"&&r!=="view"?Promise.reject(new Error("The editMode parameter must be one of the following values: 'editFull', 'editLimited' or 'view'.")):(e.contentWindow.postMessage({action:"setEditMode",editMode:r,_version:t.VERSION,requestId:i},"*"),new Promise((s,o)=>{t.promises[i]={resolve:s,reject:o}}))}return Promise.reject(new Error("Cannot retrieve contentWindow."))};var Je=(t,e,r,i)=>{if(e){let s=y();return e.contentWindow.postMessage({action:"setFilters",itemId:r,filters:i,_version:t.VERSION,requestId:s},"*"),new Promise((o,a)=>{t.promises[s]={resolve:o,reject:a},setTimeout(()=>{if(t.promises[s]){let n="setFilters request timed out.";t.promises[s].reject(new Error(n)),delete t.promises[s]}},2e3)})}return Promise.reject()};var Xe=(t,e,r)=>{if(e){let i=y();return e.contentWindow.postMessage({action:"setPreview",preview:r,requestId:i,_version:t.VERSION},"*"),new Promise((s,o)=>{t.promises[i]={resolve:s,reject:o},setTimeout(()=>{if(t.promises[i]){let a="setPreview request timed out.";t.promises[i].reject(new Error(a)),delete t.promises[i]}},2e3)})}return Promise.reject(new Error("Cannot retrieve contentWindow."))};var N=t=>{if(!t.dimensions){t.params.error=!0,P("Got no valid dimensions.",t.params);return}let e=Object.keys(t.dimensions),r=[],i,s=0,o=0;if(!t.params.switchScreenModeOnResize&&t.currentScreenMode&&(t.params.screenMode=t.currentScreenMode),t.dimensions&&e?.[0]==="fixed")i="fixed",s=t.dimensions.fixed[0],o=t.dimensions.fixed[1];else{let d=["mobile","tablet","desktop","largeScreen"];if(t.params.itemEmbedding){let[l]=e,h=de(l);for(let p of d){let S=e.find(g=>g===p);S?h=de(S):t.dimensions[p]=t.dimensions[h]}}for(let l of e)if(d.includes(l)){let h=Z.find(p=>p.mode===l);r.push({...h,height:t.dimensions[l][1]||50})}if(r.map(l=>l.mode).includes(t.params.screenMode)||(t.params.screenMode="auto"),t.params.screenMode==="auto"){r.sort((l,h)=>d.indexOf(l.mode)-d.indexOf(h.mode));for(let l of r){let[h,p]=l.width;t.params.itemEmbedding&&t.params.itemDimensions&&t.params.itemDimensions.width!=="auto"&&t.params.itemDimensions.height==="auto"?h<t.params.itemDimensions.width&&(i=l.mode,s=Number.parseInt(t.params.itemDimensions.width,10),o=t.dimensions[i][1]):h<t.containerWidth&&(i=l.mode,t.params.itemEmbedding?(s=t.params.itemDimensions?.width&&t.params.itemDimensions?.width!=="auto"?Number.parseInt(t.params.itemDimensions.width,10):Math.min(t.containerWidth,p),o=t.params.itemDimensions?.height&&t.params.itemDimensions?.height!=="auto"?Number.parseInt(t.params.itemDimensions.height,10):t.dimensions[i][1],t.params.itemDimensions&&t.params.itemDimensions.width!=="auto"&&t.params.itemDimensions.height==="auto"&&(s=Number.parseInt(t.params.itemDimensions.width,10),o=t.dimensions[i][1])):(s=Math.max(Math.min(p,t.containerWidth),h),o=l.height))}}else{let{height:l,width:[h,p]}=r.find(S=>S.mode===t.params.screenMode);i=t.params.screenMode,s=Math.max(Math.min(p,t.containerWidth),h),o=l,t.params.itemEmbedding&&(t.params.itemDimensions?.width&&t.params.itemDimensions?.width!=="auto"&&(s=Number.parseInt(t.params.itemDimensions.width,10)),t.params.itemDimensions?.height&&t.params.itemDimensions?.height!=="auto"&&(o=Number.parseInt(t.params.itemDimensions.height,10)))}if(!i&&r.length>0){let[l]=r;i=l.mode,s=l.width[0],o=l.height}}t.currentScreenMode=i;let a={height:o===0?"100%":`${String(o)}px`,width:s===0?"100%":`${String(s)}px`,opacity:1};["editFull","editLimited"].includes(t.params.editMode)?(a.height="100%",a.width="100%"):t.params.itemEmbedding&&t.params.itemDimensions?(a.height=t.params.itemDimensions.height==="auto"?a.height:`${String(t.params.itemDimensions.height).replace("px","")}px`,a.width=t.params.itemDimensions.width==="auto"?a.width:`${String(t.params.itemDimensions.width).replace("px","")}px`):(a.height=o===0?"100%":`${String(o)}px`,a.width=s===0?"100%":`${String(s)}px`),t.currentScreenMode=i,t.iframeStyle=a};var pe=t=>{let e=Object.keys(w),r=[],i=["appServer","language","apiHost"],s=["key","token","screenMode","timezoneId","itemId","container","loaderBackground","loaderFontColor","loaderSpinnerColor","loaderSpinnerBackground"],o=["itemDimensions"],a=["mobile","tablet","desktop","largeScreen","fixed","auto"];for(let n of e)t.params[n]===null&&delete t.params[n];t.params=Q(t.params,w),(!t.params.dashboardId||typeof t.params.dashboardId!="string")&&(!t.params.dashboardSlug||typeof t.params.dashboardSlug!="string")&&(delete t.params.dashboardId,delete t.params.dashboardSlug);for(let n of i)typeof t.params[n]!="string"&&(delete t.params[n],r.push(`${n} needs to be of type string.`));for(let n of s)typeof t.params[n]!="string"&&t.params[n]!==null&&t.params[n]!==void 0&&(delete t.params[n],r.push(`${n} needs to be of type string or empty.`));if(t.params.screenMode&&!a.includes(t.params.screenMode)){let n=a.map(d=>`"${d}"`).join(", ");r.push(`"screenMode" needs should be one of these types: ${n}`),t.params.screenMode="auto"}t.params.itemId&&(t.params.itemEmbedding=!0);for(let n of o)typeof t.params[n]!="object"&&t.params[n]!==null&&(delete t.params[n],r.push(`${n} needs to be of type object or empty.`));if(typeof t.params.switchScreenModeOnResize!="boolean"&&(r.push("switchScreenModeOnResize needs to be of type boolean."),t.params.switchScreenModeOnResize=!0),t.params.itemDimensions){let n=["width","height"];for(let d of n)!["string","number"].includes(typeof t.params.itemDimensions[d])&&t.params.itemDimensions[d]!==null&&r.push(`itemDimensions ${d} needs to be of type string, number or empty.`)}t.params=Q(t.params,w),t.params.screenMode&&t.params.screenMode!=="auto"&&(t.params.switchScreenModeOnResize=!1),t.params.itemDimensions.width!=="auto"&&(t.params.itemDimensions.width=Number.parseInt(`${t.params.itemDimensions.width}`.replace("px",""),10)||"auto"),t.params.itemDimensions.height!=="auto"&&(t.params.itemDimensions.height=Number.parseInt(`${t.params.itemDimensions.height}`.replace("px",""),10)||"auto"),t.params.itemEmbedding=!!t.params.itemId,(t.params.error||r.length>0)&&P(r.join(`
4
+ `),t.params)};var k={},Ot=async(t,e)=>{let r=typeof t=="function"?await t():t,i=document.createElement("script");i.type="text/javascript",i.addEventListener("load",e),i.src=r,document.querySelectorAll("head")[0].append(i)},Ye=t=>({});async function Ht(t){let e=k[t];if(e.inited)return e.lib;if(e.format==="var")return new Promise(r=>{let i=()=>{e.inited||(e.lib=window[t],e.lib.init(Ye(e.from)),e.inited=!0),r(e.lib)};return Ot(e.url,i)});if(["esm","systemjs"].includes(e.format))return new Promise((r,i)=>{(typeof e.url=="function"?e.url:()=>Promise.resolve(e.url))().then(o=>{import(o).then(a=>{if(!e.inited){let n=Ye(e.from);a.init(n),e.lib=a,e.lib.init(n),e.inited=!0}r(e.lib)}).catch(i)})})}function Ze(t,e){if(!t?.default&&e){let r=Object.create(null);return r.default=t,r.__esModule=!0,r}return t}async function Qe(t,e){return Ht(t).then(r=>r.get(e).then(i=>i()))}var tt=class{get shadowRoot(){return this.__host.__shadowRoot}constructor(e){this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBraileLabel="",this.ariaBraileRoleDescription="",this.ariaBusy="",this.ariaChecked="",this.ariaColCount="",this.ariaColIndex="",this.ariaColSpan="",this.ariaCurrent="",this.ariaDescription="",this.ariaDisabled="",this.ariaExpanded="",this.ariaHasPopup="",this.ariaHidden="",this.ariaInvalid="",this.ariaKeyShortcuts="",this.ariaLabel="",this.ariaLevel="",this.ariaLive="",this.ariaModal="",this.ariaMultiLine="",this.ariaMultiSelectable="",this.ariaOrientation="",this.ariaPlaceholder="",this.ariaPosInSet="",this.ariaPressed="",this.ariaReadOnly="",this.ariaRequired="",this.ariaRoleDescription="",this.ariaRowCount="",this.ariaRowIndex="",this.ariaRowSpan="",this.ariaSelected="",this.ariaSetSize="",this.ariaSort="",this.ariaValueMax="",this.ariaValueMin="",this.ariaValueNow="",this.ariaValueText="",this.role="",this.form=null,this.labels=[],this.states=new Set,this.validationMessage="",this.validity={},this.willValidate=!0,this.__host=e}checkValidity(){return console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true."),!0}reportValidity(){return!0}setFormValue(){}setValidity(){}};var rt=new WeakMap,U=t=>{let e=rt.get(t);return e===void 0&&rt.set(t,e=new Map),e},zt=class{constructor(){this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}get attributes(){return Array.from(U(this)).map(([e,r])=>({name:e,value:r}))}get shadowRoot(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}setAttribute(e,r){U(this).set(e,String(r))}removeAttribute(e){U(this).delete(e)}toggleAttribute(e,r){if(this.hasAttribute(e)){if(r===void 0||!r)return this.removeAttribute(e),!1}else return r===void 0||r?(this.setAttribute(e,""),!0):!1;return!0}hasAttribute(e){return U(this).has(e)}attachShadow(e){let r={host:this};return this.__shadowRootMode=e.mode,e&&e.mode==="open"&&(this.__shadowRoot=r),r}attachInternals(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");let e=new tt(this);return this.__internals=e,e}getAttribute(e){return U(this).get(e)??null}};var Ft=class extends zt{},it=Ft;var Nt=class{constructor(){this.__definitions=new Map}define(e,r){if(this.__definitions.has(e))if(process.env.NODE_ENV==="development")console.warn(`'CustomElementRegistry' already has "${e}" defined. This may have been caused by live reload or hot module replacement in which case it can be safely ignored.
5
+ Make sure to test your application with a production build as repeat registrations will throw in production.`);else throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${e}" has already been used with this registry`);this.__definitions.set(e,{ctor:r,observedAttributes:r.observedAttributes??[]})}get(e){return this.__definitions.get(e)?.ctor}},Ut=Nt;var st=new Ut;var j=globalThis,te=j.ShadowRoot&&(j.ShadyCSS===void 0||j.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fe=Symbol(),ot=new WeakMap,V=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==fe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(te&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=ot.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&ot.set(r,e))}return e}toString(){return this.cssText}},at=t=>new V(typeof t=="string"?t:t+"",void 0,fe),ge=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,s,o)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new V(r,t,fe)},Se=(t,e)=>{if(te)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),s=j.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,t.appendChild(i)}},re=te||j.CSSStyleSheet===void 0?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return at(r)})(t):t;var{is:jt,defineProperty:Vt,getOwnPropertyDescriptor:Wt,getOwnPropertyNames:Bt,getOwnPropertySymbols:Ct,getPrototypeOf:qt}=Object,C=globalThis;C.customElements??=st;var nt=C.trustedTypes,Kt=nt?nt.emptyScript:"",Gt=C.reactiveElementPolyfillSupport,W=(t,e)=>t,B={toAttribute(t,e){switch(e){case Boolean:t=t?Kt:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},ie=(t,e)=>!jt(t,e),dt={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:ie};Symbol.metadata??=Symbol("metadata"),C.litPropertyMetadata??=new WeakMap;var x=class extends(globalThis.HTMLElement??it){static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=dt){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),s=this.getPropertyDescriptor(e,i,r);s!==void 0&&Vt(this.prototype,e,s)}}static getPropertyDescriptor(e,r,i){let{get:s,set:o}=Wt(this.prototype,e)??{get(){return this[r]},set(a){this[r]=a}};return{get(){return s?.call(this)},set(a){let n=s?.call(this);o.call(this,a),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??dt}static _$Ei(){if(this.hasOwnProperty(W("elementProperties")))return;let e=qt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(W("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(W("properties"))){let r=this.properties,i=[...Bt(r),...Ct(r)];for(let s of i)this.createProperty(s,r[s])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,s]of r)this.elementProperties.set(i,s)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let s=this._$Eu(r,i);s!==void 0&&this._$Eh.set(s,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let s of i)r.unshift(re(s))}else e!==void 0&&r.push(re(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Se(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EC(e,r){let i=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,i);if(s!==void 0&&i.reflect===!0){let o=(i.converter?.toAttribute!==void 0?i.converter:B).toAttribute(r,i.type);this._$Em=e,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(e,r){let i=this.constructor,s=i._$Eh.get(e);if(s!==void 0&&this._$Em!==s){let o=i.getPropertyOptions(s),a=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:B;this._$Em=s,this[s]=a.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(e,r,i){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??ie)(this[e],r))return;this.P(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,i){this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[s,o]of i)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],o)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EU()}catch(i){throw e=!1,this._$EU(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(e){}firstUpdated(e){}};x.elementStyles=[],x.shadowRootOptions={mode:"open"},x[W("elementProperties")]=new Map,x[W("finalized")]=new Map,Gt?.({ReactiveElement:x}),(C.reactiveElementVersions??=[]).push("2.0.4");var oe=globalThis,se=oe.trustedTypes,lt=se?se.createPolicy("lit-html",{createHTML:t=>t}):void 0,ft="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,gt="?"+M,Jt=`<${gt}>`,L=oe.document===void 0?{createTreeWalker:()=>({})}:document,K=()=>L.createComment(""),G=t=>t===null||typeof t!="object"&&typeof t!="function",St=Array.isArray,Xt=t=>St(t)||typeof t?.[Symbol.iterator]=="function",be=`[
6
+ \f\r]`,q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ht=/-->/g,ct=/>/g,A=RegExp(`>|${be}(?:([^\\s"'>=/]+)(${be}*=${be}*(?:[^
7
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),mt=/'/g,ut=/"/g,bt=/^(?:script|style|textarea|title)$/i,yt=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_=yt(1),os=yt(2),E=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),pt=new WeakMap,R=L.createTreeWalker(L,129);function wt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return lt!==void 0?lt.createHTML(e):e}var Yt=(t,e)=>{let r=t.length-1,i=[],s,o=e===2?"<svg>":"",a=q;for(let n=0;n<r;n++){let d=t[n],l,h,p=-1,S=0;for(;S<d.length&&(a.lastIndex=S,h=a.exec(d),h!==null);)S=a.lastIndex,a===q?h[1]==="!--"?a=ht:h[1]!==void 0?a=ct:h[2]!==void 0?(bt.test(h[2])&&(s=RegExp("</"+h[2],"g")),a=A):h[3]!==void 0&&(a=A):a===A?h[0]===">"?(a=s??q,p=-1):h[1]===void 0?p=-2:(p=a.lastIndex-h[2].length,l=h[1],a=h[3]===void 0?A:h[3]==='"'?ut:mt):a===ut||a===mt?a=A:a===ht||a===ct?a=q:(a=A,s=void 0);let g=a===A&&t[n+1].startsWith("/>")?" ":"";o+=a===q?d+Jt:p>=0?(i.push(l),d.slice(0,p)+ft+d.slice(p)+M+g):d+M+(p===-2?n:g)}return[wt(t,o+(t[r]||"<?>")+(e===2?"</svg>":"")),i]},J=class t{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let o=0,a=0,n=e.length-1,d=this.parts,[l,h]=Yt(e,r);if(this.el=t.createElement(l,i),R.currentNode=this.el.content,r===2){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=R.nextNode())!==null&&d.length<n;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith(ft)){let S=h[a++],g=s.getAttribute(p).split(M),f=/([.?@])?(.*)/.exec(S);d.push({type:1,index:o,name:f[2],strings:g,ctor:f[1]==="."?we:f[1]==="?"?_e:f[1]==="@"?xe:H}),s.removeAttribute(p)}else p.startsWith(M)&&(d.push({type:6,index:o}),s.removeAttribute(p));if(bt.test(s.tagName)){let p=s.textContent.split(M),S=p.length-1;if(S>0){s.textContent=se?se.emptyScript:"";for(let g=0;g<S;g++)s.append(p[g],K()),R.nextNode(),d.push({type:2,index:++o});s.append(p[S],K())}}}else if(s.nodeType===8)if(s.data===gt)d.push({type:2,index:o});else{let p=-1;for(;(p=s.data.indexOf(M,p+1))!==-1;)d.push({type:7,index:o}),p+=M.length-1}o++}}static createElement(e,r){let i=L.createElement("template");return i.innerHTML=e,i}};function O(t,e,r=t,i){if(e===E)return e;let s=i!==void 0?r._$Co?.[i]:r._$Cl,o=G(e)?void 0:e._$litDirective$;return s?.constructor!==o&&(s?._$AO?.(!1),o===void 0?s=void 0:(s=new o(t),s._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=s:r._$Cl=s),s!==void 0&&(e=O(t,s._$AS(t,e.values),s,i)),e}var ye=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,s=(e?.creationScope??L).importNode(r,!0);R.currentNode=s;let o=R.nextNode(),a=0,n=0,d=i[0];for(;d!==void 0;){if(a===d.index){let l;d.type===2?l=new X(o,o.nextSibling,this,e):d.type===1?l=new d.ctor(o,d.name,d.strings,this,e):d.type===6&&(l=new Ee(o,this,e)),this._$AV.push(l),d=i[++n]}a!==d?.index&&(o=R.nextNode(),a++)}return R.currentNode=L,s}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},X=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,s){this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=O(this,e,r),G(e)?e===b||e==null||e===""?(this._$AH!==b&&this._$AR(),this._$AH=b):e!==this._$AH&&e!==E&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Xt(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==b&&G(this._$AH)?this._$AA.nextSibling.data=e:this.T(L.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=J.createElement(wt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let o=new ye(s,this),a=o.u(this.options);o.p(r),this.T(a),this._$AH=o}}_$AC(e){let r=pt.get(e.strings);return r===void 0&&pt.set(e.strings,r=new J(e)),r}k(e){St(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let o of e)s===r.length?r.push(i=new t(this.S(K()),this.S(K()),this,this.options)):i=r[s],i._$AI(o),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},H=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,s,o){this.type=1,this._$AH=b,this._$AN=void 0,this.element=e,this.name=r,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=b}_$AI(e,r=this,i,s){let o=this.strings,a=!1;if(o===void 0)e=O(this,e,r,0),a=!G(e)||e!==this._$AH&&e!==E,a&&(this._$AH=e);else{let n=e,d,l;for(e=o[0],d=0;d<o.length-1;d++)l=O(this,n[i+d],r,d),l===E&&(l=this._$AH[d]),a||=!G(l)||l!==this._$AH[d],l===b?e=b:e!==b&&(e+=(l??"")+o[d+1]),this._$AH[d]=l}a&&!s&&this.j(e)}j(e){e===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},we=class extends H{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===b?void 0:e}},_e=class extends H{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==b)}},xe=class extends H{constructor(e,r,i,s,o){super(e,r,i,s,o),this.type=5}_$AI(e,r=this){if((e=O(this,e,r,0)??b)===E)return;let i=this._$AH,s=e===b&&i!==b||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==b&&(i===b||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ee=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){O(this,e)}};var Zt=oe.litHtmlPolyfillSupport;Zt?.(J,X),(oe.litHtmlVersions??=[]).push("3.1.2");var _t=(t,e,r)=>{let i=r?.renderBefore??e,s=i._$litPart$;if(s===void 0){let o=r?.renderBefore??null;i._$litPart$=s=new X(e.insertBefore(K(),o),o,void 0,r??{})}return s._$AI(t),s};var $=class extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=_t(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return E}};$._$litElement$=!0,$.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:$});var Qt=globalThis.litElementPolyfillSupport;Qt?.({LitElement:$});(globalThis.litElementVersions??=[]).push("4.0.4");var xt=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var er={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:ie},tr=(t=er,e,r)=>{let{kind:i,metadata:s}=r,o=globalThis.litPropertyMetadata.get(s);if(o===void 0&&globalThis.litPropertyMetadata.set(s,o=new Map),o.set(r.name,t),i==="accessor"){let{name:a}=r;return{set(n){let d=e.get.call(this);e.set.call(this,n),this.requestUpdate(a,d,t)},init(n){return n!==void 0&&this.P(a,void 0,t),n}}}if(i==="setter"){let{name:a}=r;return function(n){let d=this[a];e.call(this,n),this.requestUpdate(a,d,t)}}throw Error("Unsupported decorator location: "+i)};function u(t){return(e,r)=>typeof r=="object"?tr(t,e,r):((i,s,o)=>{let a=s.hasOwnProperty(o);return s.constructor.createProperty(o,a?{...i,wrapped:!0}:i),a?Object.getOwnPropertyDescriptor(s,o):void 0})(t,e,r)}function ve(t){return u({...t,state:!0,attribute:!1})}var D=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function Me(t,e){return(r,i,s)=>{let o=a=>a.renderRoot?.querySelector(t)??null;if(e){let{get:a,set:n}=typeof i=="object"?r:s??(()=>{let d=Symbol();return{get(){return this[d]},set(l){this[d]=l}}})();return D(r,i,{get(){let d=a.call(this);return d===void 0&&(d=o(this),(d!==null||this.hasUpdated)&&n.call(this,d)),d}})}return D(r,i,{get(){return o(this)}})}}var Et={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},vt=t=>(...e)=>({_$litDirective$:t,values:e}),ae=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var Mt="important",rr=" !"+Mt,I=vt(class extends ae{constructor(t){if(super(t),t.type!==Et.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let i=t[r];return i==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let s=e[i];if(s!=null){this.ft.add(i);let o=typeof s=="string"&&s.endsWith(rr);i.includes("-")||o?r.setProperty(i,o?s.slice(0,-11):s,o?Mt:""):r[i]=s}}return E}});var $t="5.0.7";var $e=class{constructor(){this._components=[]}},Y=new $e;var It=()=>{typeof window.__luzmoMessageHandler!="function"&&(window.__luzmoMessageHandler=t=>{let e=Y._components.find(r=>t.data.name===r._iframeId);if(e)switch(t.data?.type){case"load":{e.dispatchEvent(new CustomEvent("load",{detail:{data:t.data}})),e._loadTimeoutHandle&&(clearTimeout(e._loadTimeoutHandle),e._loadTimeoutHandle=void 0),e.iframeLoaded=!0,e.dimensions=t.data.dimensions,e._calculateDimAfterDashboardLoaded();break}case"error":{e.dashboardError=!0,e._loadTimeoutHandle&&(clearTimeout(e._loadTimeoutHandle),e._loadTimeoutHandle=void 0),e.iframeLoaded=!0,e._displayError();break}case"data":{v(e,t.data.requestId,t.data.data);break}case"filters":{v(e,t.data.requestId,t.data.filters);break}case"getAccessibleDashboards":{v(e,t.data.requestId,t.data.accessibleDashboards);break}case"dashboardAction":{e.dispatchEvent(new CustomEvent("dashboardAction",{detail:{data:t.data}}));break}case"export":{t.data.error?F(e,t.data.requestId,t.data):(e.dispatchEvent(new CustomEvent("exported",{detail:{data:t.data}})),v(e,t.data.requestId,t.data));break}case"changedFilters":{e.dispatchEvent(new CustomEvent("changedFilters",{detail:{data:t.data}}));break}case"customEvent":{e.dispatchEvent(new CustomEvent("customEvent",{detail:{data:t.data}}));break}case"chartsRendered":case"itemsRendered":{t.data.type="itemsRendered",e.dispatchEvent(new CustomEvent("itemsRendered",{detail:{data:t.data}}));break}case"setEditMode":{t.data.error?F(e,t.data.requestId,t.data):(v(e,t.data.requestId,t.data),e.params.editMode=t.data.editMode,e._containerStyle=ee(e),e.dimensions&&N(e));break}case"setFilters":{t.data.error?F(e,t.data.requestId,t.data):v(e,t.data.requestId,t.data);break}case"setPreview":{t.data.error?F(e,t.data.requestId,t.data):v(e,t.data.requestId,t.data);break}}},window.addEventListener("message",window.__luzmoMessageHandler,!1))};var At=ge`
907
8
  @-webkit-keyframes spin {
908
9
  0% {
909
10
  -webkit-transform: rotate(0deg);
@@ -1003,421 +104,29 @@
1003
104
  position: absolute;
1004
105
  transition-duration: 0.3s;
1005
106
  }
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`
107
+ `;var c=class extends ${constructor(r){super();this.language="auto";this.screenMode="auto";this.switchScreenModeOnResize=!0;this.editMode="view";this.experimental=!1;this.iframeStyle={};this._containerStyle={};this._loaderStyle={};this._lcStyle={};this._loadingCircleStyle={};this._containerLoaderStyle={};this._loaderMsg="";this._itemEmbedding=!1;this.browserError=!1;this.browserErrorMsg="";this.dashboardError=!1;this.browserNotSupported=[];this.VERSION=$t+"-wc-luzmo";this.isLibraryLoaded=!1;this.attributesMap={dashboardId:"dashboard-id",dashboardSlug:"dashboard-slug",itemId:"item-id",language:"language",qeVersion:"qe-version",screenMode:"screen-mode",switchScreenModeOnResize:"switch-screen-mode-on-resize",authKey:"auth-key",authToken:"auth-token",editMode:"edit-mode",mainColor:"main-color",accentColor:"accent-color",loaderBackground:"loader-background",loaderFontColor:"loader-font-color",loaderSpinnerColor:"loader-spinner-color",loaderSpinnerBackground:"loader-spinner-background",appServer:"app-server",apiHost:"api-host",itemDimensions:"item-dimensions",timezoneId:"timezone-id"};this.loaderSize=32;this.borderWidth=3;this.minHeight=400;this._containerId=y(),this._iframeId=`luzmo-dashboard-${this._containerId}`,this.iframeLoaded=!1,this.promises={},this.setInputParameters(r),this.params=this._setOptions(),this._onResize=()=>{if(this.shadowRoot?.querySelector(".dashboard-container")){if(this.containerWidth=this.container.clientWidth,this.params.switchScreenModeOnResize&&this.params.screenMode==="auto")for(let i of Z)i.width[0]<=window.innerWidth&&window.innerWidth<=i.width[1]&&(this.currentScreenMode=i.mode);this.iframeLoaded&&this._calculateDimAfterDashboardLoaded()}},this._resizeObserver=new ResizeObserver(i=>{window.requestAnimationFrame(()=>{!Array.isArray(i)||i.length===0||this._onResize()})})}loadLibrary(r){return k[r]?Promise.resolve(k[r].module):(k[r]={url:r?.startsWith("http://localhost")?`${T(r)}/remoteEntry.mjs`:`${T(r)}/dashboard-app/remoteEntry.mjs`,format:"esm",from:"vite",module:void 0},Qe(r,"./DashboardApp").then(i=>{let s=Ze(i,!0);return k[r].module=s,s}))}setInputParameters(r){if(!r)return;let i=["dashboardId","dashboardSlug","itemId","language","qeVersion","screenMode","switchScreenModeOnResize","accentColor","mainColor","authToken","authKey","editMode","loaderBackground","loaderFontColor","loaderSpinnerColor","loaderSpinnerBackground","timezoneId","itemDimensions","apiHost"];for(let s of i){let o=r[s];o&&(this[s]=o)}r.experimental&&(this.experimental=r.experimental),r.appServer&&(this.appServer=z(r.appServer))}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.disconnect();for(let r of Object.keys(this.promises))this.promises[r].reject(new Error("Dashboard component was removed"))}firstUpdated(){this._loaderMsg=he(this)?.loadingMsg,this._loaderStyles(),Y._components.push(this),this.initComponent()}initComponent(){this.params=this._setOptions(),this.getIsViewMode()?this.loadLibrary(this.params.appServer).then(async()=>{this.isLibraryLoaded=!0,await this.updateComplete;let r=this.renderRoot.querySelector("dashboard-component");this.dashboardReference=r.cloneNode(!0),r.replaceWith(this.dashboardReference),this.dashboardReference.addEventListener("load",i=>{setTimeout(()=>{this.containerWidth=this.dashboardReference.offsetWidth,this.dimensions=i.detail.dimensions,N(this),this.dispatchEvent(new CustomEvent("load",i.detail))})}),this.dashboardReference.addEventListener("itemsRendered",i=>this.dispatchEvent(new CustomEvent("itemsRendered",i.detail))),this.dashboardReference.addEventListener("customEvent",i=>this.dispatchEvent(new CustomEvent("customEvent",i.detail))),this.dashboardReference.addEventListener("changedFilters",i=>this.dispatchEvent(new CustomEvent("changedFilters",i.detail))),this.dashboardReference.addEventListener("dashboardAction",i=>this.dispatchEvent(new CustomEvent("dashboardAction",i.detail))),this.dashboardReference.addEventListener("export",i=>this.dispatchEvent(new CustomEvent("exported",i.detail))),this.setAllAttributes()}):(this.containerWidth=this.container?.clientWidth,pe(this),Te(this),this._setupLoader(),this.params.error||(this._loaderStyles(),It(),this._iframeUrl=le(this),this.iframe?.setAttribute("src",this._iframeUrl),this.iframeStyle=ce(this)),this.container&&this._resizeObserver.observe(this.container))}setAllAttributes(){if(this.dashboardReference)for(let r in this.attributesMap)!["authKey","authToken","apiHost","itemDimensions"].includes(r)&&this.params[r]&&this.dashboardReference.setAttribute(this.attributesMap[r],this.params[r]),this.params.itemDimensions&&this.dashboardReference.setAttribute("item-dimensions",JSON.stringify(this.params.itemDimensions)),this.params.apiHost&&this.dashboardReference.setAttribute("api-host",T(this.params.apiHost)),this.params.key&&this.dashboardReference.setAttribute("auth-key",this.params.key),this.params.token&&this.dashboardReference.setAttribute("auth-token",this.params.token)}updated(r){let i=new Set(["dashboardId","dashboardSlug","itemId","language","qeVersion","editMode","screenMode","switchScreenModeOnResize","authToken","authKey","appServer","timezoneId","itemDimensions"]);if(this.getIsViewMode()){if(this.dashboardReference){for(let[s]of r.entries())if(s==="appSever")this.loadLibrary(r[s]).then(async()=>{this.isLibraryLoaded=!0,await this.updateComplete,this.dashboardReference=this.renderRoot.querySelector("dashboard-component"),this.setAllAttributes()});else if(this.attributesMap[s]){let o=this.attributesMap[s]??s,a=typeof this[s]=="object"?JSON.stringify(this[s]):this[s]?.toString()||this[s];this.dashboardReference.setAttribute(o,a)}}}else for(let[s]of r.entries())i.has(s)&&s!=="editMode"?(this.iframeLoaded=!1,this._loadTimeoutHandle&&clearTimeout(this._loadTimeoutHandle),this._loadTimeoutHandle=setTimeout(()=>{console.error("Failed to load dashboard, appServer is likely down or unreachable.")},15*1e3),this.params=this._setOptions(),pe(this),this._setupLoader(),this._loaderStyles(),this._iframeUrl=le(this),this.iframe&&this._updateIframeUrl(),this.iframeStyle=ce(this)):i.has(s)&&s==="editMode"&&(this.iframeLoaded&&this.setEditMode(this.editMode),this.params=this._setOptions())}_setOptions(){let r={dashboardId:this.dashboardId,dashboardSlug:this.dashboardSlug};return this.itemId?(r.itemId=this.itemId,this._itemEmbedding=!0):this._itemEmbedding=!1,this.language&&(r.language=this.language),this.qeVersion&&(r.qeVersion=this.qeVersion),this.screenMode&&(r.screenMode=this.screenMode),r.switchScreenModeOnResize=this.switchScreenModeOnResize,this.authToken&&(r.token=this.authToken),this.authKey&&(r.key=this.authKey),this.editMode&&(r.editMode=this.editMode),this.mainColor&&(r.mainColor=this.mainColor),this.accentColor&&(r.accentColor=this.accentColor),this.loaderBackground&&(r.loaderBackground=this.loaderBackground),this.loaderFontColor&&(r.loaderFontColor=this.loaderFontColor),this.loaderSpinnerColor&&(r.loaderSpinnerColor=this.loaderSpinnerColor),this.loaderSpinnerBackground&&(r.loaderSpinnerBackground=this.loaderSpinnerBackground),this.timezoneId&&(r.timezoneId=this.timezoneId),this.itemDimensions&&(r.itemDimensions=this.itemDimensions),this.appServer?(this.appServer=this.getIsViewMode()?T(this.appServer):z(this.appServer),r.appServer=this.appServer):(this.appServer=z(w.appServer),r.appServer=this.appServer),this.apiHost?(this.apiHost=this.getIsViewMode()?T(this.apiHost):z(this.apiHost),r.apiHost=this.apiHost):(this.apiHost=this.appServer.includes("luzmo.com")?this.appServer.replace("app","api"):this.appServer,r.apiHost=this.apiHost),r}_updateIframeUrl(){Ve(this.iframe,this._iframeUrl)}_setupLoader(){let r=he(this);this._loaderMsg=r.loadingMsg,r.errorMsg&&(this.browserError=!0,this.browserErrorMsg=r.errorMsg,this._displayError())}_displayError(){this.dashboardError&&(this._loaderStyles(),this.iframeStyle.opacity=1),this.browserError&&(this._containerStyle.display="none")}_calculateDimAfterDashboardLoaded(){this.dashboardError=!1,this._loaderStyles(),N(this)}_loaderStyles(){this._containerStyle=ee(this),this._loaderStyle=Ne(this),this._loadingCircleStyle=Ue(this),this._containerLoaderStyle=Fe(this),this._lcStyle=je(this)}static get styles(){return[At]}render(){let r=_``,i=_`
1395
108
  <div
1396
109
  class="luzmo-container-loader"
1397
110
  id="luzmo-container-loader-${this._containerId}"
1398
- style=${o(
1399
- this._containerLoaderStyle
1400
- )}
111
+ style=${I(this._containerLoaderStyle)}
1401
112
  >
1402
113
  <div
1403
114
  class="luzmo-loader"
1404
115
  id="luzmo-loader-${this._containerId}"
1405
- style=${o(this._loaderStyle)}
116
+ style=${I(this._loaderStyle)}
1406
117
  >
1407
118
  <div
1408
119
  class="luzmo-lc"
1409
- style=${o(this._lcStyle)}
120
+ style=${I(this._lcStyle)}
1410
121
  >
1411
122
  <div
1412
123
  class="luzmo-loading-circle"
1413
- style=${o(
1414
- this._loadingCircleStyle
1415
- )}
124
+ style=${I(this._loadingCircleStyle)}
1416
125
  ></div>
1417
- ${this._itemEmbedding ? "" : x`
126
+ ${this._itemEmbedding?"":_`
1418
127
  <div
1419
128
  class="luzmo-loading-message"
1420
- style=${o({ color: this.loaderFontColor })}
129
+ style=${I({color:this.loaderFontColor})}
1421
130
  >
1422
131
  ${this._loaderMsg}
1423
132
  </div>
@@ -1425,310 +134,162 @@
1425
134
  </div>
1426
135
  </div>
1427
136
  </div>
1428
- `;
1429
- if (!this.getIsViewMode()) {
1430
- toBeRenderedHTML = x`
1431
- ${this.dashboardId || this.dashboardSlug ? x`
1432
- ${loader}
137
+ `;return this.getIsViewMode()?r=this.isLibraryLoaded?_`
138
+ ${this.dashboardId||this.dashboardSlug?_`<dashboard-component dashboard-id="${this.params.dashboardId}" app-server="${this.params.appServer}" api-host="${this.params.apiHost}"></dashboard-component>`:_`
139
+ <div id="luzmo-error-${this._containerId}">
140
+ <h3 class="luzmo-error">${this.browserErrorMsg}</h3>
141
+ </div>
142
+ `}
143
+ `:_`${i}`:r=_`
144
+ ${this.dashboardId||this.dashboardSlug?_`
145
+ ${i}
1433
146
  <iframe
1434
147
  class="luzmo-embed-dashboard"
1435
148
  id="${this._iframeId}"
1436
149
  name="${this._iframeId}"
1437
- style=${o(this.iframeStyle)}
150
+ style=${I(this.iframeStyle)}
1438
151
  src="${this._iframeUrl}"
1439
152
  frameborder="0"
1440
153
  ></iframe>
1441
- ` : x`<!-- the dashboard will inititialize when you provide a dashboardSlug or a dashboardId -->`}
1442
- ${this.browserError ? x`
154
+ `:_`<!-- the dashboard will inititialize when you provide a dashboardSlug or a dashboardId -->`}
155
+ ${this.browserError?_`
1443
156
  <div id="luzmo-error-${this._containerId}">
1444
157
  <h3 class="luzmo-error">${this.browserErrorMsg}</h3>
1445
158
  </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`
159
+ `:""}
160
+ `,_`
1458
161
  <div
1459
162
  class="dashboard-container"
1460
- style=${o(this._containerStyle)}
163
+ style=${I(Object.assign({},this._containerStyle,{width:this.iframeStyle.width??"100%",height:this.iframeStyle.height??"100%"}))}
1461
164
  >
1462
- ${toBeRenderedHTML}
165
+ ${r}
1463
166
  </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
- });
167
+ `}getDashboards(){return new Promise(r=>r(Y._components))}getData(r){return this.getIsViewMode()&&this.dashboardReference?this.dashboardReference.getData(r):this.getIsViewMode()?Promise.reject():Be(this,this.iframe,r)}getFilters(){return this.getIsViewMode()&&this.dashboardReference?this.dashboardReference.getFilters():this.getIsViewMode()?Promise.reject():Ce(this,this.iframe)}setFilters(r,i){return this.getIsViewMode()&&this.dashboardReference?this.dashboardReference.setFilters(r,i):this.getIsViewMode()?Promise.reject():Je(this,this.iframe,r,i)}setAuthorization(r,i){return this.getIsViewMode()&&this.dashboardReference?this.dashboardReference.setAuthorization(r,i):this.getIsViewMode()?Promise.reject():Ke(this,this.iframe,r,i)}refreshData(r){return this.getIsViewMode()&&this.dashboardReference?this.dashboardReference.refreshData(r):this.getIsViewMode()?Promise.reject():r?ue(this,this.iframe,r):ue(this,this.iframe)}reloadDashboard(){return this.getIsViewMode()&&this.dashboardReference?this.dashboardReference.reloadDashboard():this.getIsViewMode()?Promise.reject():qe(this,this.iframe)}exportDashboard(r){return this.getIsViewMode()&&this.dashboardReference?this.dashboardReference.exportDashboard(r):this.getIsViewMode()?Promise.reject():r?me(this,this.iframe,r):me(this,this.iframe)}getAccessibleDashboards(){return this.getIsViewMode()?this.getIsViewMode()&&this.dashboardReference?this.dashboardReference.getAccessibleDashboards():Promise.reject():We(this,this.iframe)}addFilters(r,i){return this.dashboardReference.addFilters(r,i)}setEditMode(r){return this.dashboardReference&&r==="view"?(this.editMode="view",this.params.editMode="view",this.initComponent(),Promise.resolve({type:"setEditMode",editMode:r})):this.dashboardReference&&["editFull","editLimited"].includes(r)?(this.editMode=r,this.params.editMode=r,this.initComponent(),Promise.resolve({type:"setEditMode",editMode:r})):this.getIsViewMode()&&this.dashboardReference?this.dashboardReference.setEditMode(r):this.getIsViewMode()?Promise.reject():Ge(this,this.iframe,r)}setPreview(r){return this.getIsViewMode()&&this.dashboardReference?this.dashboardReference.setPreview(r):Xe(this,this.iframe,r)}getIsViewMode(){return!!(this.experimental&&this.params.editMode==="view"||this.params.editMode===void 0)}};m([Me(".dashboard-container")],c.prototype,"container",2),m([Me("iframe")],c.prototype,"iframe",2),m([u()],c.prototype,"dashboardId",2),m([u()],c.prototype,"dashboardSlug",2),m([u()],c.prototype,"itemId",2),m([u()],c.prototype,"language",2),m([u()],c.prototype,"qeVersion",2),m([u()],c.prototype,"screenMode",2),m([u({converter:{fromAttribute:r=>r==="true",toAttribute:String}})],c.prototype,"switchScreenModeOnResize",2),m([u()],c.prototype,"editMode",2),m([u()],c.prototype,"mainColor",2),m([u()],c.prototype,"accentColor",2),m([u()],c.prototype,"authToken",2),m([u()],c.prototype,"authKey",2),m([u()],c.prototype,"loaderBackground",2),m([u()],c.prototype,"loaderFontColor",2),m([u()],c.prototype,"loaderSpinnerColor",2),m([u()],c.prototype,"loaderSpinnerBackground",2),m([u()],c.prototype,"appServer",2),m([u()],c.prototype,"timezoneId",2),m([u()],c.prototype,"apiHost",2),m([u({type:Object})],c.prototype,"itemDimensions",2),m([u()],c.prototype,"experimental",2),m([u({attribute:!1})],c.prototype,"_containerId",2),m([u({attribute:!1})],c.prototype,"_iframeId",2),m([u({attribute:!1})],c.prototype,"params",2),m([u({attribute:!1})],c.prototype,"_iframeUrl",2),m([u({attribute:!1})],c.prototype,"iframeLoaded",2),m([u({attribute:!1})],c.prototype,"promises",2),m([u({attribute:!1})],c.prototype,"iframeStyle",2),m([u({attribute:!1})],c.prototype,"_containerStyle",2),m([u({attribute:!1})],c.prototype,"_loaderStyle",2),m([u({attribute:!1})],c.prototype,"_lcStyle",2),m([u({attribute:!1})],c.prototype,"_loadingCircleStyle",2),m([u({attribute:!1})],c.prototype,"_containerLoaderStyle",2),m([u({attribute:!1})],c.prototype,"_loaderMsg",2),m([u({attribute:!1})],c.prototype,"containerWidth",2),m([u({attribute:!1})],c.prototype,"dimensions",2),m([u({attribute:!1})],c.prototype,"currentScreenMode",2),m([u({attribute:!1})],c.prototype,"_itemEmbedding",2),m([u({attribute:!1})],c.prototype,"browserError",2),m([u({attribute:!1})],c.prototype,"browserErrorMsg",2),m([u({attribute:!1})],c.prototype,"dashboardError",2),m([u({attribute:!1})],c.prototype,"browserNotSupported",2),m([u({attribute:!1})],c.prototype,"VERSION",2),m([ve()],c.prototype,"isLibraryLoaded",2),m([ve()],c.prototype,"dashboardReference",2),c=m([xt("luzmo-dashboard")],c);export{c as LuzmoDashboard};
168
+ /*! Bundled license information:
169
+
170
+ @lit-labs/ssr-dom-shim/lib/element-internals.js:
171
+ (**
172
+ * @license
173
+ * Copyright 2023 Google LLC
174
+ * SPDX-License-Identifier: BSD-3-Clause
175
+ *)
176
+
177
+ @lit-labs/ssr-dom-shim/index.js:
178
+ (**
179
+ * @license
180
+ * Copyright 2019 Google LLC
181
+ * SPDX-License-Identifier: BSD-3-Clause
182
+ *)
183
+
184
+ @lit/reactive-element/node/css-tag.js:
185
+ (**
186
+ * @license
187
+ * Copyright 2019 Google LLC
188
+ * SPDX-License-Identifier: BSD-3-Clause
189
+ *)
190
+
191
+ lit-html/node/lit-html.js:
192
+ (**
193
+ * @license
194
+ * Copyright 2017 Google LLC
195
+ * SPDX-License-Identifier: BSD-3-Clause
196
+ *)
197
+
198
+ lit-element/lit-element.js:
199
+ (**
200
+ * @license
201
+ * Copyright 2017 Google LLC
202
+ * SPDX-License-Identifier: BSD-3-Clause
203
+ *)
204
+
205
+ lit-html/node/is-server.js:
206
+ (**
207
+ * @license
208
+ * Copyright 2022 Google LLC
209
+ * SPDX-License-Identifier: BSD-3-Clause
210
+ *)
211
+
212
+ @lit/reactive-element/node/decorators/custom-element.js:
213
+ (**
214
+ * @license
215
+ * Copyright 2017 Google LLC
216
+ * SPDX-License-Identifier: BSD-3-Clause
217
+ *)
218
+
219
+ @lit/reactive-element/node/decorators/property.js:
220
+ (**
221
+ * @license
222
+ * Copyright 2017 Google LLC
223
+ * SPDX-License-Identifier: BSD-3-Clause
224
+ *)
225
+
226
+ @lit/reactive-element/node/decorators/state.js:
227
+ (**
228
+ * @license
229
+ * Copyright 2017 Google LLC
230
+ * SPDX-License-Identifier: BSD-3-Clause
231
+ *)
232
+
233
+ @lit/reactive-element/node/decorators/event-options.js:
234
+ (**
235
+ * @license
236
+ * Copyright 2017 Google LLC
237
+ * SPDX-License-Identifier: BSD-3-Clause
238
+ *)
239
+
240
+ @lit/reactive-element/node/decorators/base.js:
241
+ (**
242
+ * @license
243
+ * Copyright 2017 Google LLC
244
+ * SPDX-License-Identifier: BSD-3-Clause
245
+ *)
246
+
247
+ @lit/reactive-element/node/decorators/query.js:
248
+ (**
249
+ * @license
250
+ * Copyright 2017 Google LLC
251
+ * SPDX-License-Identifier: BSD-3-Clause
252
+ *)
253
+
254
+ @lit/reactive-element/node/decorators/query-all.js:
255
+ (**
256
+ * @license
257
+ * Copyright 2017 Google LLC
258
+ * SPDX-License-Identifier: BSD-3-Clause
259
+ *)
260
+
261
+ @lit/reactive-element/node/decorators/query-async.js:
262
+ (**
263
+ * @license
264
+ * Copyright 2017 Google LLC
265
+ * SPDX-License-Identifier: BSD-3-Clause
266
+ *)
267
+
268
+ @lit/reactive-element/node/decorators/query-assigned-elements.js:
269
+ (**
270
+ * @license
271
+ * Copyright 2021 Google LLC
272
+ * SPDX-License-Identifier: BSD-3-Clause
273
+ *)
274
+
275
+ @lit/reactive-element/node/decorators/query-assigned-nodes.js:
276
+ (**
277
+ * @license
278
+ * Copyright 2017 Google LLC
279
+ * SPDX-License-Identifier: BSD-3-Clause
280
+ *)
281
+
282
+ lit-html/node/directive.js:
283
+ (**
284
+ * @license
285
+ * Copyright 2017 Google LLC
286
+ * SPDX-License-Identifier: BSD-3-Clause
287
+ *)
288
+
289
+ lit-html/node/directives/style-map.js:
290
+ (**
291
+ * @license
292
+ * Copyright 2018 Google LLC
293
+ * SPDX-License-Identifier: BSD-3-Clause
294
+ *)
295
+ */