@luzmo/embed 6.4.3 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/README.md +37 -36
- package/index.cjs +11 -12
- package/index.js +9 -10
- package/luzmo-embed.min.js +472 -471
- package/package.json +3 -3
- package/src/lib/dashboard-component/dashboard-base.d.ts +1 -1
- package/src/lib/dashboard-component/dashboard-component.d.ts +4 -4
- package/src/lib/luzmo-iq-components/luzmo-iq-answer.d.ts +2 -1
- package/src/lib/luzmo-iq-components/luzmo-iq-chat.d.ts +4 -3
- package/src/lib/viz-item/viz-item.base.d.ts +1 -1
package/luzmo-embed.min.js
CHANGED
|
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
21
21
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
22
|
-
for (var
|
|
23
|
-
if (decorator = decorators[
|
|
22
|
+
for (var i7 = decorators.length - 1, decorator; i7 >= 0; i7--)
|
|
23
|
+
if (decorator = decorators[i7])
|
|
24
24
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
25
25
|
if (kind && result)
|
|
26
26
|
__defProp(target, key, result);
|
|
@@ -177,7 +177,7 @@ var removeTrailingSlash = (serverUrl) => {
|
|
|
177
177
|
};
|
|
178
178
|
var formatDashboardList = (dashboards, integrationId, user, dashboardComponent) => {
|
|
179
179
|
const combineRights = (securable, user2) => {
|
|
180
|
-
const matchingUser = securable.users.find((
|
|
180
|
+
const matchingUser = securable.users.find((u3) => u3.id === user2.id);
|
|
181
181
|
const securableAccessRights = matchingUser && matchingUser.userAccessRight ? {
|
|
182
182
|
flagRead: matchingUser.userAccessRight.flagRead,
|
|
183
183
|
flagUse: matchingUser.userAccessRight.flagUse,
|
|
@@ -255,28 +255,28 @@ var formatDashboardList = (dashboards, integrationId, user, dashboardComponent)
|
|
|
255
255
|
modifiedAt: dashboard.modified_at,
|
|
256
256
|
name: localize(dashboard.name, dashboardComponent.language),
|
|
257
257
|
slug: null,
|
|
258
|
-
tags: dashboard.tags.map((
|
|
258
|
+
tags: dashboard.tags.map((t4) => t4.tag).sort((t1, t22) => t1.localeCompare(t22))
|
|
259
259
|
};
|
|
260
260
|
const currentIntegration = dashboard.integrations.find(
|
|
261
|
-
(
|
|
261
|
+
(i7) => i7.id === integrationId
|
|
262
262
|
);
|
|
263
263
|
if (currentIntegration?.integrationAccessRight?.slug) {
|
|
264
264
|
treatedDashboard.slug = currentIntegration.integrationAccessRight.slug;
|
|
265
265
|
}
|
|
266
|
-
const users = dashboard.users.map((
|
|
266
|
+
const users = dashboard.users.map((u3) => ({
|
|
267
267
|
model: "User",
|
|
268
|
-
id:
|
|
269
|
-
name: localize(
|
|
268
|
+
id: u3.id,
|
|
269
|
+
name: localize(u3.name, user.locale_id)
|
|
270
270
|
}));
|
|
271
271
|
const groups = dashboard.groups.map((g2) => ({
|
|
272
272
|
model: "Group",
|
|
273
273
|
id: g2.id,
|
|
274
274
|
name: localize(g2.name, user.locale_id) || {}
|
|
275
275
|
}));
|
|
276
|
-
const integrations = dashboard.integrations.map((
|
|
276
|
+
const integrations = dashboard.integrations.map((i7) => ({
|
|
277
277
|
model: "Integration",
|
|
278
|
-
id:
|
|
279
|
-
name: localize(
|
|
278
|
+
id: i7.id,
|
|
279
|
+
name: localize(i7.name, user.locale_id) || {}
|
|
280
280
|
}));
|
|
281
281
|
treatedDashboard.accessibleBy = [...users, ...groups, ...integrations];
|
|
282
282
|
treatedDashboards.push(treatedDashboard);
|
|
@@ -308,7 +308,7 @@ var sanitizeUrl = (url) => {
|
|
|
308
308
|
return sanitizedUrl;
|
|
309
309
|
};
|
|
310
310
|
var cloneDeep = (obj) => JSON.parse(JSON.stringify(obj));
|
|
311
|
-
var isObject = (
|
|
311
|
+
var isObject = (o7) => o7 && typeof o7 === "object";
|
|
312
312
|
var defaultsDeep = (target, defaults) => {
|
|
313
313
|
Object.entries(defaults).forEach(([k2, v2]) => {
|
|
314
314
|
if (k2 in target) {
|
|
@@ -327,8 +327,8 @@ var defaultsDeep = (target, defaults) => {
|
|
|
327
327
|
return target;
|
|
328
328
|
};
|
|
329
329
|
var uuidv4 = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g, function(c4) {
|
|
330
|
-
const
|
|
331
|
-
const v2 = c4 == "x" ?
|
|
330
|
+
const r6 = Math.random() * 16 | 0;
|
|
331
|
+
const v2 = c4 == "x" ? r6 : r6 & 3 | 8;
|
|
332
332
|
return v2.toString(16);
|
|
333
333
|
});
|
|
334
334
|
|
|
@@ -994,7 +994,7 @@ var _setCalculatedDimensions = (dashboardComponent) => {
|
|
|
994
994
|
}
|
|
995
995
|
if (dashboardComponent.params.screenMode === "auto") {
|
|
996
996
|
availableScreenModeExtents.sort(
|
|
997
|
-
(
|
|
997
|
+
(a3, b3) => screenModes.indexOf(a3.mode) - screenModes.indexOf(b3.mode)
|
|
998
998
|
);
|
|
999
999
|
for (const screenModeExtent of availableScreenModeExtents) {
|
|
1000
1000
|
const [screenModeExtentMinWidth, screenModeExtentMaxWidth] = screenModeExtent.width;
|
|
@@ -1047,7 +1047,7 @@ var _setCalculatedDimensions = (dashboardComponent) => {
|
|
|
1047
1047
|
height: chosenModeHeight,
|
|
1048
1048
|
width: [chosenModeMinWidth, chosenModeMaxWidth]
|
|
1049
1049
|
} = availableScreenModeExtents.find(
|
|
1050
|
-
(
|
|
1050
|
+
(d3) => d3.mode === dashboardComponent.params.screenMode
|
|
1051
1051
|
);
|
|
1052
1052
|
currentMode = dashboardComponent.params.screenMode;
|
|
1053
1053
|
currentWidth = Math.max(
|
|
@@ -1343,228 +1343,227 @@ var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "a
|
|
|
1343
1343
|
var s = Symbol();
|
|
1344
1344
|
var o = /* @__PURE__ */ new WeakMap();
|
|
1345
1345
|
var n = class {
|
|
1346
|
-
constructor(
|
|
1347
|
-
if (this._$cssResult$ = true,
|
|
1346
|
+
constructor(t4, e7, o7) {
|
|
1347
|
+
if (this._$cssResult$ = true, o7 !== s)
|
|
1348
1348
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1349
|
-
this.cssText =
|
|
1349
|
+
this.cssText = t4, this.t = e7;
|
|
1350
1350
|
}
|
|
1351
1351
|
get styleSheet() {
|
|
1352
|
-
let
|
|
1353
|
-
const
|
|
1354
|
-
if (e && void 0 ===
|
|
1355
|
-
const
|
|
1356
|
-
|
|
1352
|
+
let t4 = this.o;
|
|
1353
|
+
const s4 = this.t;
|
|
1354
|
+
if (e && void 0 === t4) {
|
|
1355
|
+
const e7 = void 0 !== s4 && 1 === s4.length;
|
|
1356
|
+
e7 && (t4 = o.get(s4)), void 0 === t4 && ((this.o = t4 = new CSSStyleSheet()).replaceSync(this.cssText), e7 && o.set(s4, t4));
|
|
1357
1357
|
}
|
|
1358
|
-
return
|
|
1358
|
+
return t4;
|
|
1359
1359
|
}
|
|
1360
1360
|
toString() {
|
|
1361
1361
|
return this.cssText;
|
|
1362
1362
|
}
|
|
1363
1363
|
};
|
|
1364
|
-
var r = (
|
|
1365
|
-
var i = (
|
|
1366
|
-
const
|
|
1367
|
-
if (true ===
|
|
1368
|
-
return
|
|
1369
|
-
if ("number" == typeof
|
|
1370
|
-
return
|
|
1371
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
|
1372
|
-
})(
|
|
1373
|
-
return new n(
|
|
1364
|
+
var r = (t4) => new n("string" == typeof t4 ? t4 : t4 + "", void 0, s);
|
|
1365
|
+
var i = (t4, ...e7) => {
|
|
1366
|
+
const o7 = 1 === t4.length ? t4[0] : e7.reduce((e8, s4, o8) => e8 + ((t5) => {
|
|
1367
|
+
if (true === t5._$cssResult$)
|
|
1368
|
+
return t5.cssText;
|
|
1369
|
+
if ("number" == typeof t5)
|
|
1370
|
+
return t5;
|
|
1371
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + t5 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
1372
|
+
})(s4) + t4[o8 + 1], t4[0]);
|
|
1373
|
+
return new n(o7, t4, s);
|
|
1374
1374
|
};
|
|
1375
|
-
var S = (
|
|
1375
|
+
var S = (s4, o7) => {
|
|
1376
1376
|
if (e)
|
|
1377
|
-
|
|
1377
|
+
s4.adoptedStyleSheets = o7.map((t4) => t4 instanceof CSSStyleSheet ? t4 : t4.styleSheet);
|
|
1378
1378
|
else
|
|
1379
|
-
for (const
|
|
1380
|
-
const
|
|
1381
|
-
void 0 !==
|
|
1379
|
+
for (const e7 of o7) {
|
|
1380
|
+
const o8 = document.createElement("style"), n6 = t.litNonce;
|
|
1381
|
+
void 0 !== n6 && o8.setAttribute("nonce", n6), o8.textContent = e7.cssText, s4.appendChild(o8);
|
|
1382
1382
|
}
|
|
1383
1383
|
};
|
|
1384
|
-
var c = e ? (
|
|
1385
|
-
let
|
|
1386
|
-
for (const
|
|
1387
|
-
|
|
1388
|
-
return r(
|
|
1389
|
-
})(
|
|
1384
|
+
var c = e ? (t4) => t4 : (t4) => t4 instanceof CSSStyleSheet ? ((t5) => {
|
|
1385
|
+
let e7 = "";
|
|
1386
|
+
for (const s4 of t5.cssRules)
|
|
1387
|
+
e7 += s4.cssText;
|
|
1388
|
+
return r(e7);
|
|
1389
|
+
})(t4) : t4;
|
|
1390
1390
|
|
|
1391
1391
|
// node_modules/@lit/reactive-element/reactive-element.js
|
|
1392
|
-
var { is: i2, defineProperty: e2, getOwnPropertyDescriptor:
|
|
1392
|
+
var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
|
|
1393
1393
|
var a = globalThis;
|
|
1394
1394
|
var c2 = a.trustedTypes;
|
|
1395
1395
|
var l = c2 ? c2.emptyScript : "";
|
|
1396
1396
|
var p = a.reactiveElementPolyfillSupport;
|
|
1397
|
-
var d = (
|
|
1398
|
-
var u = { toAttribute(
|
|
1399
|
-
switch (
|
|
1397
|
+
var d = (t4, s4) => t4;
|
|
1398
|
+
var u = { toAttribute(t4, s4) {
|
|
1399
|
+
switch (s4) {
|
|
1400
1400
|
case Boolean:
|
|
1401
|
-
|
|
1401
|
+
t4 = t4 ? l : null;
|
|
1402
1402
|
break;
|
|
1403
1403
|
case Object:
|
|
1404
1404
|
case Array:
|
|
1405
|
-
|
|
1405
|
+
t4 = null == t4 ? t4 : JSON.stringify(t4);
|
|
1406
1406
|
}
|
|
1407
|
-
return
|
|
1408
|
-
}, fromAttribute(
|
|
1409
|
-
let
|
|
1410
|
-
switch (
|
|
1407
|
+
return t4;
|
|
1408
|
+
}, fromAttribute(t4, s4) {
|
|
1409
|
+
let i7 = t4;
|
|
1410
|
+
switch (s4) {
|
|
1411
1411
|
case Boolean:
|
|
1412
|
-
|
|
1412
|
+
i7 = null !== t4;
|
|
1413
1413
|
break;
|
|
1414
1414
|
case Number:
|
|
1415
|
-
|
|
1415
|
+
i7 = null === t4 ? null : Number(t4);
|
|
1416
1416
|
break;
|
|
1417
1417
|
case Object:
|
|
1418
1418
|
case Array:
|
|
1419
1419
|
try {
|
|
1420
|
-
|
|
1421
|
-
} catch (
|
|
1422
|
-
|
|
1420
|
+
i7 = JSON.parse(t4);
|
|
1421
|
+
} catch (t5) {
|
|
1422
|
+
i7 = null;
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
1425
|
-
return
|
|
1425
|
+
return i7;
|
|
1426
1426
|
} };
|
|
1427
|
-
var f = (
|
|
1428
|
-
var
|
|
1427
|
+
var f = (t4, s4) => !i2(t4, s4);
|
|
1428
|
+
var b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f };
|
|
1429
1429
|
Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
1430
|
-
var
|
|
1431
|
-
static addInitializer(
|
|
1432
|
-
this._$Ei(), (this.l ??= []).push(
|
|
1430
|
+
var y = class extends HTMLElement {
|
|
1431
|
+
static addInitializer(t4) {
|
|
1432
|
+
this._$Ei(), (this.l ??= []).push(t4);
|
|
1433
1433
|
}
|
|
1434
1434
|
static get observedAttributes() {
|
|
1435
1435
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
1436
1436
|
}
|
|
1437
|
-
static createProperty(
|
|
1438
|
-
if (
|
|
1439
|
-
const
|
|
1440
|
-
void 0 !==
|
|
1437
|
+
static createProperty(t4, s4 = b) {
|
|
1438
|
+
if (s4.state && (s4.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t4) && ((s4 = Object.create(s4)).wrapped = true), this.elementProperties.set(t4, s4), !s4.noAccessor) {
|
|
1439
|
+
const i7 = Symbol(), h3 = this.getPropertyDescriptor(t4, i7, s4);
|
|
1440
|
+
void 0 !== h3 && e2(this.prototype, t4, h3);
|
|
1441
1441
|
}
|
|
1442
1442
|
}
|
|
1443
|
-
static getPropertyDescriptor(
|
|
1444
|
-
const { get:
|
|
1445
|
-
return this[
|
|
1446
|
-
}, set(
|
|
1447
|
-
this[
|
|
1443
|
+
static getPropertyDescriptor(t4, s4, i7) {
|
|
1444
|
+
const { get: e7, set: r6 } = h(this.prototype, t4) ?? { get() {
|
|
1445
|
+
return this[s4];
|
|
1446
|
+
}, set(t5) {
|
|
1447
|
+
this[s4] = t5;
|
|
1448
1448
|
} };
|
|
1449
|
-
return { get() {
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
const r5 = e6?.call(this);
|
|
1453
|
-
h4.call(this, s3), this.requestUpdate(t3, r5, i4);
|
|
1449
|
+
return { get: e7, set(s5) {
|
|
1450
|
+
const h3 = e7?.call(this);
|
|
1451
|
+
r6?.call(this, s5), this.requestUpdate(t4, h3, i7);
|
|
1454
1452
|
}, configurable: true, enumerable: true };
|
|
1455
1453
|
}
|
|
1456
|
-
static getPropertyOptions(
|
|
1457
|
-
return this.elementProperties.get(
|
|
1454
|
+
static getPropertyOptions(t4) {
|
|
1455
|
+
return this.elementProperties.get(t4) ?? b;
|
|
1458
1456
|
}
|
|
1459
1457
|
static _$Ei() {
|
|
1460
1458
|
if (this.hasOwnProperty(d("elementProperties")))
|
|
1461
1459
|
return;
|
|
1462
|
-
const
|
|
1463
|
-
|
|
1460
|
+
const t4 = n2(this);
|
|
1461
|
+
t4.finalize(), void 0 !== t4.l && (this.l = [...t4.l]), this.elementProperties = new Map(t4.elementProperties);
|
|
1464
1462
|
}
|
|
1465
1463
|
static finalize() {
|
|
1466
1464
|
if (this.hasOwnProperty(d("finalized")))
|
|
1467
1465
|
return;
|
|
1468
1466
|
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
|
|
1469
|
-
const
|
|
1470
|
-
for (const
|
|
1471
|
-
this.createProperty(
|
|
1467
|
+
const t5 = this.properties, s4 = [...r2(t5), ...o2(t5)];
|
|
1468
|
+
for (const i7 of s4)
|
|
1469
|
+
this.createProperty(i7, t5[i7]);
|
|
1472
1470
|
}
|
|
1473
|
-
const
|
|
1474
|
-
if (null !==
|
|
1475
|
-
const
|
|
1476
|
-
if (void 0 !==
|
|
1477
|
-
for (const [
|
|
1478
|
-
this.elementProperties.set(
|
|
1471
|
+
const t4 = this[Symbol.metadata];
|
|
1472
|
+
if (null !== t4) {
|
|
1473
|
+
const s4 = litPropertyMetadata.get(t4);
|
|
1474
|
+
if (void 0 !== s4)
|
|
1475
|
+
for (const [t5, i7] of s4)
|
|
1476
|
+
this.elementProperties.set(t5, i7);
|
|
1479
1477
|
}
|
|
1480
1478
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
1481
|
-
for (const [
|
|
1482
|
-
const
|
|
1483
|
-
void 0 !==
|
|
1479
|
+
for (const [t5, s4] of this.elementProperties) {
|
|
1480
|
+
const i7 = this._$Eu(t5, s4);
|
|
1481
|
+
void 0 !== i7 && this._$Eh.set(i7, t5);
|
|
1484
1482
|
}
|
|
1485
1483
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
1486
1484
|
}
|
|
1487
|
-
static finalizeStyles(
|
|
1488
|
-
const
|
|
1489
|
-
if (Array.isArray(
|
|
1490
|
-
const
|
|
1491
|
-
for (const
|
|
1492
|
-
|
|
1485
|
+
static finalizeStyles(s4) {
|
|
1486
|
+
const i7 = [];
|
|
1487
|
+
if (Array.isArray(s4)) {
|
|
1488
|
+
const e7 = new Set(s4.flat(1 / 0).reverse());
|
|
1489
|
+
for (const s5 of e7)
|
|
1490
|
+
i7.unshift(c(s5));
|
|
1493
1491
|
} else
|
|
1494
|
-
void 0 !==
|
|
1495
|
-
return
|
|
1492
|
+
void 0 !== s4 && i7.push(c(s4));
|
|
1493
|
+
return i7;
|
|
1496
1494
|
}
|
|
1497
|
-
static _$Eu(
|
|
1498
|
-
const
|
|
1499
|
-
return false ===
|
|
1495
|
+
static _$Eu(t4, s4) {
|
|
1496
|
+
const i7 = s4.attribute;
|
|
1497
|
+
return false === i7 ? void 0 : "string" == typeof i7 ? i7 : "string" == typeof t4 ? t4.toLowerCase() : void 0;
|
|
1500
1498
|
}
|
|
1501
1499
|
constructor() {
|
|
1502
1500
|
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
1503
1501
|
}
|
|
1504
1502
|
_$Ev() {
|
|
1505
|
-
this._$ES = new Promise((
|
|
1503
|
+
this._$ES = new Promise((t4) => this.enableUpdating = t4), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t4) => t4(this));
|
|
1506
1504
|
}
|
|
1507
|
-
addController(
|
|
1508
|
-
(this._$EO ??= /* @__PURE__ */ new Set()).add(
|
|
1505
|
+
addController(t4) {
|
|
1506
|
+
(this._$EO ??= /* @__PURE__ */ new Set()).add(t4), void 0 !== this.renderRoot && this.isConnected && t4.hostConnected?.();
|
|
1509
1507
|
}
|
|
1510
|
-
removeController(
|
|
1511
|
-
this._$EO?.delete(
|
|
1508
|
+
removeController(t4) {
|
|
1509
|
+
this._$EO?.delete(t4);
|
|
1512
1510
|
}
|
|
1513
1511
|
_$E_() {
|
|
1514
|
-
const
|
|
1515
|
-
for (const
|
|
1516
|
-
this.hasOwnProperty(
|
|
1517
|
-
|
|
1512
|
+
const t4 = /* @__PURE__ */ new Map(), s4 = this.constructor.elementProperties;
|
|
1513
|
+
for (const i7 of s4.keys())
|
|
1514
|
+
this.hasOwnProperty(i7) && (t4.set(i7, this[i7]), delete this[i7]);
|
|
1515
|
+
t4.size > 0 && (this._$Ep = t4);
|
|
1518
1516
|
}
|
|
1519
1517
|
createRenderRoot() {
|
|
1520
|
-
const
|
|
1521
|
-
return S(
|
|
1518
|
+
const t4 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1519
|
+
return S(t4, this.constructor.elementStyles), t4;
|
|
1522
1520
|
}
|
|
1523
1521
|
connectedCallback() {
|
|
1524
|
-
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((
|
|
1522
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t4) => t4.hostConnected?.());
|
|
1525
1523
|
}
|
|
1526
|
-
enableUpdating(
|
|
1524
|
+
enableUpdating(t4) {
|
|
1527
1525
|
}
|
|
1528
1526
|
disconnectedCallback() {
|
|
1529
|
-
this._$EO?.forEach((
|
|
1527
|
+
this._$EO?.forEach((t4) => t4.hostDisconnected?.());
|
|
1530
1528
|
}
|
|
1531
|
-
attributeChangedCallback(
|
|
1532
|
-
this._$AK(
|
|
1529
|
+
attributeChangedCallback(t4, s4, i7) {
|
|
1530
|
+
this._$AK(t4, i7);
|
|
1533
1531
|
}
|
|
1534
|
-
_$
|
|
1535
|
-
const
|
|
1536
|
-
if (void 0 !==
|
|
1537
|
-
const
|
|
1538
|
-
this._$Em =
|
|
1532
|
+
_$ET(t4, s4) {
|
|
1533
|
+
const i7 = this.constructor.elementProperties.get(t4), e7 = this.constructor._$Eu(t4, i7);
|
|
1534
|
+
if (void 0 !== e7 && true === i7.reflect) {
|
|
1535
|
+
const h3 = (void 0 !== i7.converter?.toAttribute ? i7.converter : u).toAttribute(s4, i7.type);
|
|
1536
|
+
this._$Em = t4, null == h3 ? this.removeAttribute(e7) : this.setAttribute(e7, h3), this._$Em = null;
|
|
1539
1537
|
}
|
|
1540
1538
|
}
|
|
1541
|
-
_$AK(
|
|
1542
|
-
const
|
|
1543
|
-
if (void 0 !==
|
|
1544
|
-
const
|
|
1545
|
-
this._$Em =
|
|
1539
|
+
_$AK(t4, s4) {
|
|
1540
|
+
const i7 = this.constructor, e7 = i7._$Eh.get(t4);
|
|
1541
|
+
if (void 0 !== e7 && this._$Em !== e7) {
|
|
1542
|
+
const t5 = i7.getPropertyOptions(e7), h3 = "function" == typeof t5.converter ? { fromAttribute: t5.converter } : void 0 !== t5.converter?.fromAttribute ? t5.converter : u;
|
|
1543
|
+
this._$Em = e7, this[e7] = h3.fromAttribute(s4, t5.type) ?? this._$Ej?.get(e7) ?? null, this._$Em = null;
|
|
1546
1544
|
}
|
|
1547
1545
|
}
|
|
1548
|
-
requestUpdate(
|
|
1549
|
-
if (void 0 !==
|
|
1550
|
-
|
|
1546
|
+
requestUpdate(t4, s4, i7) {
|
|
1547
|
+
if (void 0 !== t4) {
|
|
1548
|
+
const e7 = this.constructor, h3 = this[t4];
|
|
1549
|
+
if (i7 ??= e7.getPropertyOptions(t4), !((i7.hasChanged ?? f)(h3, s4) || i7.useDefault && i7.reflect && h3 === this._$Ej?.get(t4) && !this.hasAttribute(e7._$Eu(t4, i7))))
|
|
1551
1550
|
return;
|
|
1552
|
-
this.
|
|
1551
|
+
this.C(t4, s4, i7);
|
|
1553
1552
|
}
|
|
1554
|
-
false === this.isUpdatePending && (this._$ES = this._$
|
|
1553
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
1555
1554
|
}
|
|
1556
|
-
|
|
1557
|
-
this._$AL.has(
|
|
1555
|
+
C(t4, s4, { useDefault: i7, reflect: e7, wrapped: h3 }, r6) {
|
|
1556
|
+
i7 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t4) && (this._$Ej.set(t4, r6 ?? s4 ?? this[t4]), true !== h3 || void 0 !== r6) || (this._$AL.has(t4) || (this.hasUpdated || i7 || (s4 = void 0), this._$AL.set(t4, s4)), true === e7 && this._$Em !== t4 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t4));
|
|
1558
1557
|
}
|
|
1559
|
-
async _$
|
|
1558
|
+
async _$EP() {
|
|
1560
1559
|
this.isUpdatePending = true;
|
|
1561
1560
|
try {
|
|
1562
1561
|
await this._$ES;
|
|
1563
|
-
} catch (
|
|
1564
|
-
Promise.reject(
|
|
1562
|
+
} catch (t5) {
|
|
1563
|
+
Promise.reject(t5);
|
|
1565
1564
|
}
|
|
1566
|
-
const
|
|
1567
|
-
return null !=
|
|
1565
|
+
const t4 = this.scheduleUpdate();
|
|
1566
|
+
return null != t4 && await t4, !this.isUpdatePending;
|
|
1568
1567
|
}
|
|
1569
1568
|
scheduleUpdate() {
|
|
1570
1569
|
return this.performUpdate();
|
|
@@ -1574,30 +1573,32 @@ var b = class extends HTMLElement {
|
|
|
1574
1573
|
return;
|
|
1575
1574
|
if (!this.hasUpdated) {
|
|
1576
1575
|
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
1577
|
-
for (const [
|
|
1578
|
-
this[
|
|
1576
|
+
for (const [t6, s5] of this._$Ep)
|
|
1577
|
+
this[t6] = s5;
|
|
1579
1578
|
this._$Ep = void 0;
|
|
1580
1579
|
}
|
|
1581
|
-
const
|
|
1582
|
-
if (
|
|
1583
|
-
for (const [
|
|
1584
|
-
|
|
1580
|
+
const t5 = this.constructor.elementProperties;
|
|
1581
|
+
if (t5.size > 0)
|
|
1582
|
+
for (const [s5, i7] of t5) {
|
|
1583
|
+
const { wrapped: t6 } = i7, e7 = this[s5];
|
|
1584
|
+
true !== t6 || this._$AL.has(s5) || void 0 === e7 || this.C(s5, void 0, i7, e7);
|
|
1585
|
+
}
|
|
1585
1586
|
}
|
|
1586
|
-
let
|
|
1587
|
-
const
|
|
1587
|
+
let t4 = false;
|
|
1588
|
+
const s4 = this._$AL;
|
|
1588
1589
|
try {
|
|
1589
|
-
|
|
1590
|
-
} catch (
|
|
1591
|
-
throw
|
|
1590
|
+
t4 = this.shouldUpdate(s4), t4 ? (this.willUpdate(s4), this._$EO?.forEach((t5) => t5.hostUpdate?.()), this.update(s4)) : this._$EM();
|
|
1591
|
+
} catch (s5) {
|
|
1592
|
+
throw t4 = false, this._$EM(), s5;
|
|
1592
1593
|
}
|
|
1593
|
-
|
|
1594
|
+
t4 && this._$AE(s4);
|
|
1594
1595
|
}
|
|
1595
|
-
willUpdate(
|
|
1596
|
+
willUpdate(t4) {
|
|
1596
1597
|
}
|
|
1597
|
-
_$AE(
|
|
1598
|
-
this._$EO?.forEach((
|
|
1598
|
+
_$AE(t4) {
|
|
1599
|
+
this._$EO?.forEach((t5) => t5.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t4)), this.updated(t4);
|
|
1599
1600
|
}
|
|
1600
|
-
_$
|
|
1601
|
+
_$EM() {
|
|
1601
1602
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
1602
1603
|
}
|
|
1603
1604
|
get updateComplete() {
|
|
@@ -1606,121 +1607,121 @@ var b = class extends HTMLElement {
|
|
|
1606
1607
|
getUpdateComplete() {
|
|
1607
1608
|
return this._$ES;
|
|
1608
1609
|
}
|
|
1609
|
-
shouldUpdate(
|
|
1610
|
+
shouldUpdate(t4) {
|
|
1610
1611
|
return true;
|
|
1611
1612
|
}
|
|
1612
|
-
update(
|
|
1613
|
-
this._$
|
|
1613
|
+
update(t4) {
|
|
1614
|
+
this._$Eq &&= this._$Eq.forEach((t5) => this._$ET(t5, this[t5])), this._$EM();
|
|
1614
1615
|
}
|
|
1615
|
-
updated(
|
|
1616
|
+
updated(t4) {
|
|
1616
1617
|
}
|
|
1617
|
-
firstUpdated(
|
|
1618
|
+
firstUpdated(t4) {
|
|
1618
1619
|
}
|
|
1619
1620
|
};
|
|
1620
|
-
|
|
1621
|
+
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ??= []).push("2.1.0");
|
|
1621
1622
|
|
|
1622
1623
|
// node_modules/lit-html/lit-html.js
|
|
1623
|
-
var
|
|
1624
|
-
var
|
|
1625
|
-
var
|
|
1626
|
-
var
|
|
1627
|
-
var
|
|
1628
|
-
var
|
|
1629
|
-
var
|
|
1630
|
-
var
|
|
1631
|
-
var
|
|
1632
|
-
var
|
|
1633
|
-
var
|
|
1634
|
-
var
|
|
1635
|
-
var
|
|
1636
|
-
var
|
|
1637
|
-
var
|
|
1638
|
-
var
|
|
1639
|
-
var
|
|
1624
|
+
var t2 = globalThis;
|
|
1625
|
+
var i3 = t2.trustedTypes;
|
|
1626
|
+
var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t4) => t4 }) : void 0;
|
|
1627
|
+
var e3 = "$lit$";
|
|
1628
|
+
var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
1629
|
+
var o3 = "?" + h2;
|
|
1630
|
+
var n3 = `<${o3}>`;
|
|
1631
|
+
var r3 = document;
|
|
1632
|
+
var l2 = () => r3.createComment("");
|
|
1633
|
+
var c3 = (t4) => null === t4 || "object" != typeof t4 && "function" != typeof t4;
|
|
1634
|
+
var a2 = Array.isArray;
|
|
1635
|
+
var u2 = (t4) => a2(t4) || "function" == typeof t4?.[Symbol.iterator];
|
|
1636
|
+
var d2 = "[ \n\f\r]";
|
|
1637
|
+
var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
1638
|
+
var v = /-->/g;
|
|
1639
|
+
var _ = />/g;
|
|
1640
|
+
var m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^
|
|
1640
1641
|
\f\r"'\`<>=]|("|')|))|$)`, "g");
|
|
1641
|
-
var
|
|
1642
|
-
var
|
|
1643
|
-
var
|
|
1644
|
-
var
|
|
1645
|
-
var
|
|
1646
|
-
var
|
|
1647
|
-
var
|
|
1648
|
-
var
|
|
1649
|
-
var
|
|
1650
|
-
var
|
|
1651
|
-
var
|
|
1652
|
-
function
|
|
1653
|
-
if (!
|
|
1642
|
+
var p2 = /'/g;
|
|
1643
|
+
var g = /"/g;
|
|
1644
|
+
var $ = /^(?:script|style|textarea|title)$/i;
|
|
1645
|
+
var y2 = (t4) => (i7, ...s4) => ({ _$litType$: t4, strings: i7, values: s4 });
|
|
1646
|
+
var x = y2(1);
|
|
1647
|
+
var b2 = y2(2);
|
|
1648
|
+
var w = y2(3);
|
|
1649
|
+
var T = Symbol.for("lit-noChange");
|
|
1650
|
+
var E = Symbol.for("lit-nothing");
|
|
1651
|
+
var A = /* @__PURE__ */ new WeakMap();
|
|
1652
|
+
var C = r3.createTreeWalker(r3, 129);
|
|
1653
|
+
function P(t4, i7) {
|
|
1654
|
+
if (!a2(t4) || !t4.hasOwnProperty("raw"))
|
|
1654
1655
|
throw Error("invalid template strings array");
|
|
1655
|
-
return void 0 !==
|
|
1656
|
+
return void 0 !== s2 ? s2.createHTML(i7) : i7;
|
|
1656
1657
|
}
|
|
1657
|
-
var
|
|
1658
|
-
const
|
|
1659
|
-
let
|
|
1660
|
-
for (let
|
|
1661
|
-
const
|
|
1662
|
-
let
|
|
1663
|
-
for (;
|
|
1664
|
-
|
|
1665
|
-
const
|
|
1666
|
-
|
|
1667
|
-
}
|
|
1668
|
-
return [
|
|
1658
|
+
var V = (t4, i7) => {
|
|
1659
|
+
const s4 = t4.length - 1, o7 = [];
|
|
1660
|
+
let r6, l3 = 2 === i7 ? "<svg>" : 3 === i7 ? "<math>" : "", c4 = f2;
|
|
1661
|
+
for (let i8 = 0; i8 < s4; i8++) {
|
|
1662
|
+
const s5 = t4[i8];
|
|
1663
|
+
let a3, u3, d3 = -1, y3 = 0;
|
|
1664
|
+
for (; y3 < s5.length && (c4.lastIndex = y3, u3 = c4.exec(s5), null !== u3); )
|
|
1665
|
+
y3 = c4.lastIndex, c4 === f2 ? "!--" === u3[1] ? c4 = v : void 0 !== u3[1] ? c4 = _ : void 0 !== u3[2] ? ($.test(u3[2]) && (r6 = RegExp("</" + u3[2], "g")), c4 = m) : void 0 !== u3[3] && (c4 = m) : c4 === m ? ">" === u3[0] ? (c4 = r6 ?? f2, d3 = -1) : void 0 === u3[1] ? d3 = -2 : (d3 = c4.lastIndex - u3[2].length, a3 = u3[1], c4 = void 0 === u3[3] ? m : '"' === u3[3] ? g : p2) : c4 === g || c4 === p2 ? c4 = m : c4 === v || c4 === _ ? c4 = f2 : (c4 = m, r6 = void 0);
|
|
1666
|
+
const x2 = c4 === m && t4[i8 + 1].startsWith("/>") ? " " : "";
|
|
1667
|
+
l3 += c4 === f2 ? s5 + n3 : d3 >= 0 ? (o7.push(a3), s5.slice(0, d3) + e3 + s5.slice(d3) + h2 + x2) : s5 + h2 + (-2 === d3 ? i8 : x2);
|
|
1668
|
+
}
|
|
1669
|
+
return [P(t4, l3 + (t4[s4] || "<?>") + (2 === i7 ? "</svg>" : 3 === i7 ? "</math>" : "")), o7];
|
|
1669
1670
|
};
|
|
1670
|
-
var
|
|
1671
|
-
constructor({ strings:
|
|
1672
|
-
let
|
|
1671
|
+
var N = class _N {
|
|
1672
|
+
constructor({ strings: t4, _$litType$: s4 }, n6) {
|
|
1673
|
+
let r6;
|
|
1673
1674
|
this.parts = [];
|
|
1674
|
-
let
|
|
1675
|
-
const
|
|
1676
|
-
if (this.el =
|
|
1677
|
-
const
|
|
1678
|
-
|
|
1679
|
-
}
|
|
1680
|
-
for (; null !== (
|
|
1681
|
-
if (1 ===
|
|
1682
|
-
if (
|
|
1683
|
-
for (const
|
|
1684
|
-
if (
|
|
1685
|
-
const
|
|
1686
|
-
|
|
1675
|
+
let c4 = 0, a3 = 0;
|
|
1676
|
+
const u3 = t4.length - 1, d3 = this.parts, [f3, v2] = V(t4, s4);
|
|
1677
|
+
if (this.el = _N.createElement(f3, n6), C.currentNode = this.el.content, 2 === s4 || 3 === s4) {
|
|
1678
|
+
const t5 = this.el.content.firstChild;
|
|
1679
|
+
t5.replaceWith(...t5.childNodes);
|
|
1680
|
+
}
|
|
1681
|
+
for (; null !== (r6 = C.nextNode()) && d3.length < u3; ) {
|
|
1682
|
+
if (1 === r6.nodeType) {
|
|
1683
|
+
if (r6.hasAttributes())
|
|
1684
|
+
for (const t5 of r6.getAttributeNames())
|
|
1685
|
+
if (t5.endsWith(e3)) {
|
|
1686
|
+
const i7 = v2[a3++], s5 = r6.getAttribute(t5).split(h2), e7 = /([.?@])?(.*)/.exec(i7);
|
|
1687
|
+
d3.push({ type: 1, index: c4, name: e7[2], strings: s5, ctor: "." === e7[1] ? H : "?" === e7[1] ? I : "@" === e7[1] ? L : k }), r6.removeAttribute(t5);
|
|
1687
1688
|
} else
|
|
1688
|
-
|
|
1689
|
-
if (
|
|
1690
|
-
const
|
|
1691
|
-
if (
|
|
1692
|
-
|
|
1693
|
-
for (let
|
|
1694
|
-
|
|
1695
|
-
|
|
1689
|
+
t5.startsWith(h2) && (d3.push({ type: 6, index: c4 }), r6.removeAttribute(t5));
|
|
1690
|
+
if ($.test(r6.tagName)) {
|
|
1691
|
+
const t5 = r6.textContent.split(h2), s5 = t5.length - 1;
|
|
1692
|
+
if (s5 > 0) {
|
|
1693
|
+
r6.textContent = i3 ? i3.emptyScript : "";
|
|
1694
|
+
for (let i7 = 0; i7 < s5; i7++)
|
|
1695
|
+
r6.append(t5[i7], l2()), C.nextNode(), d3.push({ type: 2, index: ++c4 });
|
|
1696
|
+
r6.append(t5[s5], l2());
|
|
1696
1697
|
}
|
|
1697
1698
|
}
|
|
1698
|
-
} else if (8 ===
|
|
1699
|
-
if (
|
|
1700
|
-
|
|
1699
|
+
} else if (8 === r6.nodeType)
|
|
1700
|
+
if (r6.data === o3)
|
|
1701
|
+
d3.push({ type: 2, index: c4 });
|
|
1701
1702
|
else {
|
|
1702
|
-
let
|
|
1703
|
-
for (; -1 !== (
|
|
1704
|
-
|
|
1703
|
+
let t5 = -1;
|
|
1704
|
+
for (; -1 !== (t5 = r6.data.indexOf(h2, t5 + 1)); )
|
|
1705
|
+
d3.push({ type: 7, index: c4 }), t5 += h2.length - 1;
|
|
1705
1706
|
}
|
|
1706
|
-
|
|
1707
|
+
c4++;
|
|
1707
1708
|
}
|
|
1708
1709
|
}
|
|
1709
|
-
static createElement(
|
|
1710
|
-
const
|
|
1711
|
-
return
|
|
1710
|
+
static createElement(t4, i7) {
|
|
1711
|
+
const s4 = r3.createElement("template");
|
|
1712
|
+
return s4.innerHTML = t4, s4;
|
|
1712
1713
|
}
|
|
1713
1714
|
};
|
|
1714
|
-
function
|
|
1715
|
-
if (
|
|
1716
|
-
return
|
|
1717
|
-
let
|
|
1718
|
-
const
|
|
1719
|
-
return
|
|
1715
|
+
function S2(t4, i7, s4 = t4, e7) {
|
|
1716
|
+
if (i7 === T)
|
|
1717
|
+
return i7;
|
|
1718
|
+
let h3 = void 0 !== e7 ? s4._$Co?.[e7] : s4._$Cl;
|
|
1719
|
+
const o7 = c3(i7) ? void 0 : i7._$litDirective$;
|
|
1720
|
+
return h3?.constructor !== o7 && (h3?._$AO?.(false), void 0 === o7 ? h3 = void 0 : (h3 = new o7(t4), h3._$AT(t4, s4, e7)), void 0 !== e7 ? (s4._$Co ??= [])[e7] = h3 : s4._$Cl = h3), void 0 !== h3 && (i7 = S2(t4, h3._$AS(t4, i7.values), h3, e7)), i7;
|
|
1720
1721
|
}
|
|
1721
|
-
var
|
|
1722
|
-
constructor(
|
|
1723
|
-
this._$AV = [], this._$AN = void 0, this._$AD =
|
|
1722
|
+
var M = class {
|
|
1723
|
+
constructor(t4, i7) {
|
|
1724
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t4, this._$AM = i7;
|
|
1724
1725
|
}
|
|
1725
1726
|
get parentNode() {
|
|
1726
1727
|
return this._$AM.parentNode;
|
|
@@ -1728,36 +1729,36 @@ var F = class {
|
|
|
1728
1729
|
get _$AU() {
|
|
1729
1730
|
return this._$AM._$AU;
|
|
1730
1731
|
}
|
|
1731
|
-
u(
|
|
1732
|
-
const { el: { content:
|
|
1733
|
-
|
|
1734
|
-
let
|
|
1735
|
-
for (; void 0 !==
|
|
1736
|
-
if (
|
|
1737
|
-
let
|
|
1738
|
-
2 ===
|
|
1732
|
+
u(t4) {
|
|
1733
|
+
const { el: { content: i7 }, parts: s4 } = this._$AD, e7 = (t4?.creationScope ?? r3).importNode(i7, true);
|
|
1734
|
+
C.currentNode = e7;
|
|
1735
|
+
let h3 = C.nextNode(), o7 = 0, n6 = 0, l3 = s4[0];
|
|
1736
|
+
for (; void 0 !== l3; ) {
|
|
1737
|
+
if (o7 === l3.index) {
|
|
1738
|
+
let i8;
|
|
1739
|
+
2 === l3.type ? i8 = new R(h3, h3.nextSibling, this, t4) : 1 === l3.type ? i8 = new l3.ctor(h3, l3.name, l3.strings, this, t4) : 6 === l3.type && (i8 = new z(h3, this, t4)), this._$AV.push(i8), l3 = s4[++n6];
|
|
1739
1740
|
}
|
|
1740
|
-
|
|
1741
|
+
o7 !== l3?.index && (h3 = C.nextNode(), o7++);
|
|
1741
1742
|
}
|
|
1742
|
-
return
|
|
1743
|
+
return C.currentNode = r3, e7;
|
|
1743
1744
|
}
|
|
1744
|
-
p(
|
|
1745
|
-
let
|
|
1746
|
-
for (const
|
|
1747
|
-
void 0 !==
|
|
1745
|
+
p(t4) {
|
|
1746
|
+
let i7 = 0;
|
|
1747
|
+
for (const s4 of this._$AV)
|
|
1748
|
+
void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(t4, s4, i7), i7 += s4.strings.length - 2) : s4._$AI(t4[i7])), i7++;
|
|
1748
1749
|
}
|
|
1749
1750
|
};
|
|
1750
|
-
var
|
|
1751
|
+
var R = class _R {
|
|
1751
1752
|
get _$AU() {
|
|
1752
|
-
return this._$AM?._$AU ?? this.
|
|
1753
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
1753
1754
|
}
|
|
1754
|
-
constructor(
|
|
1755
|
-
this.type = 2, this._$AH =
|
|
1755
|
+
constructor(t4, i7, s4, e7) {
|
|
1756
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t4, this._$AB = i7, this._$AM = s4, this.options = e7, this._$Cv = e7?.isConnected ?? true;
|
|
1756
1757
|
}
|
|
1757
1758
|
get parentNode() {
|
|
1758
|
-
let
|
|
1759
|
-
const
|
|
1760
|
-
return void 0 !==
|
|
1759
|
+
let t4 = this._$AA.parentNode;
|
|
1760
|
+
const i7 = this._$AM;
|
|
1761
|
+
return void 0 !== i7 && 11 === t4?.nodeType && (t4 = i7.parentNode), t4;
|
|
1761
1762
|
}
|
|
1762
1763
|
get startNode() {
|
|
1763
1764
|
return this._$AA;
|
|
@@ -1765,273 +1766,274 @@ var et = class _et {
|
|
|
1765
1766
|
get endNode() {
|
|
1766
1767
|
return this._$AB;
|
|
1767
1768
|
}
|
|
1768
|
-
_$AI(
|
|
1769
|
-
|
|
1769
|
+
_$AI(t4, i7 = this) {
|
|
1770
|
+
t4 = S2(this, t4, i7), c3(t4) ? t4 === E || null == t4 || "" === t4 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t4 !== this._$AH && t4 !== T && this._(t4) : void 0 !== t4._$litType$ ? this.$(t4) : void 0 !== t4.nodeType ? this.T(t4) : u2(t4) ? this.k(t4) : this._(t4);
|
|
1770
1771
|
}
|
|
1771
|
-
O(
|
|
1772
|
-
return this._$AA.parentNode.insertBefore(
|
|
1772
|
+
O(t4) {
|
|
1773
|
+
return this._$AA.parentNode.insertBefore(t4, this._$AB);
|
|
1773
1774
|
}
|
|
1774
|
-
T(
|
|
1775
|
-
this._$AH !==
|
|
1775
|
+
T(t4) {
|
|
1776
|
+
this._$AH !== t4 && (this._$AR(), this._$AH = this.O(t4));
|
|
1776
1777
|
}
|
|
1777
|
-
_(
|
|
1778
|
-
this._$AH !==
|
|
1778
|
+
_(t4) {
|
|
1779
|
+
this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t4 : this.T(r3.createTextNode(t4)), this._$AH = t4;
|
|
1779
1780
|
}
|
|
1780
|
-
$(
|
|
1781
|
-
const { values:
|
|
1782
|
-
if (this._$AH?._$AD ===
|
|
1783
|
-
this._$AH.p(
|
|
1781
|
+
$(t4) {
|
|
1782
|
+
const { values: i7, _$litType$: s4 } = t4, e7 = "number" == typeof s4 ? this._$AC(t4) : (void 0 === s4.el && (s4.el = N.createElement(P(s4.h, s4.h[0]), this.options)), s4);
|
|
1783
|
+
if (this._$AH?._$AD === e7)
|
|
1784
|
+
this._$AH.p(i7);
|
|
1784
1785
|
else {
|
|
1785
|
-
const
|
|
1786
|
-
|
|
1786
|
+
const t5 = new M(e7, this), s5 = t5.u(this.options);
|
|
1787
|
+
t5.p(i7), this.T(s5), this._$AH = t5;
|
|
1787
1788
|
}
|
|
1788
1789
|
}
|
|
1789
|
-
_$AC(
|
|
1790
|
-
let
|
|
1791
|
-
return void 0 ===
|
|
1790
|
+
_$AC(t4) {
|
|
1791
|
+
let i7 = A.get(t4.strings);
|
|
1792
|
+
return void 0 === i7 && A.set(t4.strings, i7 = new N(t4)), i7;
|
|
1792
1793
|
}
|
|
1793
|
-
k(
|
|
1794
|
-
|
|
1795
|
-
const
|
|
1796
|
-
let
|
|
1797
|
-
for (const
|
|
1798
|
-
|
|
1799
|
-
|
|
1794
|
+
k(t4) {
|
|
1795
|
+
a2(this._$AH) || (this._$AH = [], this._$AR());
|
|
1796
|
+
const i7 = this._$AH;
|
|
1797
|
+
let s4, e7 = 0;
|
|
1798
|
+
for (const h3 of t4)
|
|
1799
|
+
e7 === i7.length ? i7.push(s4 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s4 = i7[e7], s4._$AI(h3), e7++;
|
|
1800
|
+
e7 < i7.length && (this._$AR(s4 && s4._$AB.nextSibling, e7), i7.length = e7);
|
|
1800
1801
|
}
|
|
1801
|
-
_$AR(
|
|
1802
|
-
for (this._$AP?.(false, true,
|
|
1803
|
-
const
|
|
1804
|
-
|
|
1802
|
+
_$AR(t4 = this._$AA.nextSibling, i7) {
|
|
1803
|
+
for (this._$AP?.(false, true, i7); t4 && t4 !== this._$AB; ) {
|
|
1804
|
+
const i8 = t4.nextSibling;
|
|
1805
|
+
t4.remove(), t4 = i8;
|
|
1805
1806
|
}
|
|
1806
1807
|
}
|
|
1807
|
-
setConnected(
|
|
1808
|
-
void 0 === this._$AM && (this.
|
|
1808
|
+
setConnected(t4) {
|
|
1809
|
+
void 0 === this._$AM && (this._$Cv = t4, this._$AP?.(t4));
|
|
1809
1810
|
}
|
|
1810
1811
|
};
|
|
1811
|
-
var
|
|
1812
|
+
var k = class {
|
|
1812
1813
|
get tagName() {
|
|
1813
1814
|
return this.element.tagName;
|
|
1814
1815
|
}
|
|
1815
1816
|
get _$AU() {
|
|
1816
1817
|
return this._$AM._$AU;
|
|
1817
1818
|
}
|
|
1818
|
-
constructor(
|
|
1819
|
-
this.type = 1, this._$AH =
|
|
1819
|
+
constructor(t4, i7, s4, e7, h3) {
|
|
1820
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t4, this.name = i7, this._$AM = e7, this.options = h3, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = E;
|
|
1820
1821
|
}
|
|
1821
|
-
_$AI(
|
|
1822
|
-
const
|
|
1823
|
-
let
|
|
1824
|
-
if (void 0 ===
|
|
1825
|
-
|
|
1822
|
+
_$AI(t4, i7 = this, s4, e7) {
|
|
1823
|
+
const h3 = this.strings;
|
|
1824
|
+
let o7 = false;
|
|
1825
|
+
if (void 0 === h3)
|
|
1826
|
+
t4 = S2(this, t4, i7, 0), o7 = !c3(t4) || t4 !== this._$AH && t4 !== T, o7 && (this._$AH = t4);
|
|
1826
1827
|
else {
|
|
1827
|
-
const
|
|
1828
|
-
let
|
|
1829
|
-
for (
|
|
1830
|
-
|
|
1828
|
+
const e8 = t4;
|
|
1829
|
+
let n6, r6;
|
|
1830
|
+
for (t4 = h3[0], n6 = 0; n6 < h3.length - 1; n6++)
|
|
1831
|
+
r6 = S2(this, e8[s4 + n6], i7, n6), r6 === T && (r6 = this._$AH[n6]), o7 ||= !c3(r6) || r6 !== this._$AH[n6], r6 === E ? t4 = E : t4 !== E && (t4 += (r6 ?? "") + h3[n6 + 1]), this._$AH[n6] = r6;
|
|
1831
1832
|
}
|
|
1832
|
-
|
|
1833
|
+
o7 && !e7 && this.j(t4);
|
|
1833
1834
|
}
|
|
1834
|
-
j(
|
|
1835
|
-
|
|
1835
|
+
j(t4) {
|
|
1836
|
+
t4 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t4 ?? "");
|
|
1836
1837
|
}
|
|
1837
1838
|
};
|
|
1838
|
-
var
|
|
1839
|
+
var H = class extends k {
|
|
1839
1840
|
constructor() {
|
|
1840
1841
|
super(...arguments), this.type = 3;
|
|
1841
1842
|
}
|
|
1842
|
-
j(
|
|
1843
|
-
this.element[this.name] =
|
|
1843
|
+
j(t4) {
|
|
1844
|
+
this.element[this.name] = t4 === E ? void 0 : t4;
|
|
1844
1845
|
}
|
|
1845
1846
|
};
|
|
1846
|
-
var
|
|
1847
|
+
var I = class extends k {
|
|
1847
1848
|
constructor() {
|
|
1848
1849
|
super(...arguments), this.type = 4;
|
|
1849
1850
|
}
|
|
1850
|
-
j(
|
|
1851
|
-
this.element.toggleAttribute(this.name, !!
|
|
1851
|
+
j(t4) {
|
|
1852
|
+
this.element.toggleAttribute(this.name, !!t4 && t4 !== E);
|
|
1852
1853
|
}
|
|
1853
1854
|
};
|
|
1854
|
-
var
|
|
1855
|
-
constructor(
|
|
1856
|
-
super(
|
|
1855
|
+
var L = class extends k {
|
|
1856
|
+
constructor(t4, i7, s4, e7, h3) {
|
|
1857
|
+
super(t4, i7, s4, e7, h3), this.type = 5;
|
|
1857
1858
|
}
|
|
1858
|
-
_$AI(
|
|
1859
|
-
if ((
|
|
1859
|
+
_$AI(t4, i7 = this) {
|
|
1860
|
+
if ((t4 = S2(this, t4, i7, 0) ?? E) === T)
|
|
1860
1861
|
return;
|
|
1861
|
-
const
|
|
1862
|
-
|
|
1862
|
+
const s4 = this._$AH, e7 = t4 === E && s4 !== E || t4.capture !== s4.capture || t4.once !== s4.once || t4.passive !== s4.passive, h3 = t4 !== E && (s4 === E || e7);
|
|
1863
|
+
e7 && this.element.removeEventListener(this.name, this, s4), h3 && this.element.addEventListener(this.name, this, t4), this._$AH = t4;
|
|
1863
1864
|
}
|
|
1864
|
-
handleEvent(
|
|
1865
|
-
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element,
|
|
1865
|
+
handleEvent(t4) {
|
|
1866
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t4) : this._$AH.handleEvent(t4);
|
|
1866
1867
|
}
|
|
1867
1868
|
};
|
|
1868
|
-
var
|
|
1869
|
-
constructor(
|
|
1870
|
-
this.element =
|
|
1869
|
+
var z = class {
|
|
1870
|
+
constructor(t4, i7, s4) {
|
|
1871
|
+
this.element = t4, this.type = 6, this._$AN = void 0, this._$AM = i7, this.options = s4;
|
|
1871
1872
|
}
|
|
1872
1873
|
get _$AU() {
|
|
1873
1874
|
return this._$AM._$AU;
|
|
1874
1875
|
}
|
|
1875
|
-
_$AI(
|
|
1876
|
-
|
|
1876
|
+
_$AI(t4) {
|
|
1877
|
+
S2(this, t4);
|
|
1877
1878
|
}
|
|
1878
1879
|
};
|
|
1879
|
-
var
|
|
1880
|
-
|
|
1881
|
-
var
|
|
1882
|
-
const
|
|
1883
|
-
let
|
|
1884
|
-
if (void 0 ===
|
|
1885
|
-
const
|
|
1886
|
-
|
|
1887
|
-
}
|
|
1888
|
-
return
|
|
1880
|
+
var j = t2.litHtmlPolyfillSupport;
|
|
1881
|
+
j?.(N, R), (t2.litHtmlVersions ??= []).push("3.3.0");
|
|
1882
|
+
var B = (t4, i7, s4) => {
|
|
1883
|
+
const e7 = s4?.renderBefore ?? i7;
|
|
1884
|
+
let h3 = e7._$litPart$;
|
|
1885
|
+
if (void 0 === h3) {
|
|
1886
|
+
const t5 = s4?.renderBefore ?? null;
|
|
1887
|
+
e7._$litPart$ = h3 = new R(i7.insertBefore(l2(), t5), t5, void 0, s4 ?? {});
|
|
1888
|
+
}
|
|
1889
|
+
return h3._$AI(t4), h3;
|
|
1889
1890
|
};
|
|
1890
1891
|
|
|
1891
1892
|
// node_modules/lit-element/lit-element.js
|
|
1892
|
-
var
|
|
1893
|
+
var s3 = globalThis;
|
|
1894
|
+
var i4 = class extends y {
|
|
1893
1895
|
constructor() {
|
|
1894
|
-
super(...arguments), this.renderOptions = { host: this }, this.
|
|
1896
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
1895
1897
|
}
|
|
1896
1898
|
createRenderRoot() {
|
|
1897
|
-
const
|
|
1898
|
-
return this.renderOptions.renderBefore ??=
|
|
1899
|
+
const t4 = super.createRenderRoot();
|
|
1900
|
+
return this.renderOptions.renderBefore ??= t4.firstChild, t4;
|
|
1899
1901
|
}
|
|
1900
|
-
update(
|
|
1901
|
-
const
|
|
1902
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(
|
|
1902
|
+
update(t4) {
|
|
1903
|
+
const r6 = this.render();
|
|
1904
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t4), this._$Do = B(r6, this.renderRoot, this.renderOptions);
|
|
1903
1905
|
}
|
|
1904
1906
|
connectedCallback() {
|
|
1905
|
-
super.connectedCallback(), this.
|
|
1907
|
+
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
1906
1908
|
}
|
|
1907
1909
|
disconnectedCallback() {
|
|
1908
|
-
super.disconnectedCallback(), this.
|
|
1910
|
+
super.disconnectedCallback(), this._$Do?.setConnected(false);
|
|
1909
1911
|
}
|
|
1910
1912
|
render() {
|
|
1911
|
-
return
|
|
1913
|
+
return T;
|
|
1912
1914
|
}
|
|
1913
1915
|
};
|
|
1914
|
-
|
|
1915
|
-
var
|
|
1916
|
-
|
|
1917
|
-
(
|
|
1916
|
+
i4._$litElement$ = true, i4["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i4 });
|
|
1917
|
+
var o4 = s3.litElementPolyfillSupport;
|
|
1918
|
+
o4?.({ LitElement: i4 });
|
|
1919
|
+
(s3.litElementVersions ??= []).push("4.2.0");
|
|
1918
1920
|
|
|
1919
1921
|
// node_modules/@lit/reactive-element/decorators/property.js
|
|
1920
|
-
var
|
|
1921
|
-
var
|
|
1922
|
-
const { kind:
|
|
1923
|
-
let
|
|
1924
|
-
if (void 0 ===
|
|
1925
|
-
const { name:
|
|
1926
|
-
return { set(
|
|
1927
|
-
const
|
|
1928
|
-
|
|
1929
|
-
}, init(
|
|
1930
|
-
return void 0 !==
|
|
1922
|
+
var o5 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
|
|
1923
|
+
var r4 = (t4 = o5, e7, r6) => {
|
|
1924
|
+
const { kind: n6, metadata: i7 } = r6;
|
|
1925
|
+
let s4 = globalThis.litPropertyMetadata.get(i7);
|
|
1926
|
+
if (void 0 === s4 && globalThis.litPropertyMetadata.set(i7, s4 = /* @__PURE__ */ new Map()), "setter" === n6 && ((t4 = Object.create(t4)).wrapped = true), s4.set(r6.name, t4), "accessor" === n6) {
|
|
1927
|
+
const { name: o7 } = r6;
|
|
1928
|
+
return { set(r7) {
|
|
1929
|
+
const n7 = e7.get.call(this);
|
|
1930
|
+
e7.set.call(this, r7), this.requestUpdate(o7, n7, t4);
|
|
1931
|
+
}, init(e8) {
|
|
1932
|
+
return void 0 !== e8 && this.C(o7, void 0, t4, e8), e8;
|
|
1931
1933
|
} };
|
|
1932
1934
|
}
|
|
1933
|
-
if ("setter" ===
|
|
1934
|
-
const { name:
|
|
1935
|
-
return function(
|
|
1936
|
-
const
|
|
1937
|
-
|
|
1935
|
+
if ("setter" === n6) {
|
|
1936
|
+
const { name: o7 } = r6;
|
|
1937
|
+
return function(r7) {
|
|
1938
|
+
const n7 = this[o7];
|
|
1939
|
+
e7.call(this, r7), this.requestUpdate(o7, n7, t4);
|
|
1938
1940
|
};
|
|
1939
1941
|
}
|
|
1940
|
-
throw Error("Unsupported decorator location: " +
|
|
1942
|
+
throw Error("Unsupported decorator location: " + n6);
|
|
1941
1943
|
};
|
|
1942
|
-
function n4(
|
|
1943
|
-
return (
|
|
1944
|
-
const
|
|
1945
|
-
return
|
|
1946
|
-
})(
|
|
1944
|
+
function n4(t4) {
|
|
1945
|
+
return (e7, o7) => "object" == typeof o7 ? r4(t4, e7, o7) : ((t5, e8, o8) => {
|
|
1946
|
+
const r6 = e8.hasOwnProperty(o8);
|
|
1947
|
+
return e8.constructor.createProperty(o8, t5), r6 ? Object.getOwnPropertyDescriptor(e8, o8) : void 0;
|
|
1948
|
+
})(t4, e7, o7);
|
|
1947
1949
|
}
|
|
1948
1950
|
|
|
1949
1951
|
// node_modules/@lit/reactive-element/decorators/state.js
|
|
1950
|
-
function
|
|
1951
|
-
return n4({ ...
|
|
1952
|
+
function r5(r6) {
|
|
1953
|
+
return n4({ ...r6, state: true, attribute: false });
|
|
1952
1954
|
}
|
|
1953
1955
|
|
|
1954
1956
|
// node_modules/@lit/reactive-element/decorators/base.js
|
|
1955
|
-
var
|
|
1957
|
+
var e4 = (e7, t4, c4) => (c4.configurable = true, c4.enumerable = true, Reflect.decorate && "object" != typeof t4 && Object.defineProperty(e7, t4, c4), c4);
|
|
1956
1958
|
|
|
1957
1959
|
// node_modules/@lit/reactive-element/decorators/query.js
|
|
1958
|
-
function
|
|
1959
|
-
return (
|
|
1960
|
-
const
|
|
1961
|
-
if (
|
|
1962
|
-
const { get:
|
|
1963
|
-
const
|
|
1960
|
+
function e5(e7, r6) {
|
|
1961
|
+
return (n6, s4, i7) => {
|
|
1962
|
+
const o7 = (t4) => t4.renderRoot?.querySelector(e7) ?? null;
|
|
1963
|
+
if (r6) {
|
|
1964
|
+
const { get: e8, set: r7 } = "object" == typeof s4 ? n6 : i7 ?? (() => {
|
|
1965
|
+
const t4 = Symbol();
|
|
1964
1966
|
return { get() {
|
|
1965
|
-
return this[
|
|
1966
|
-
}, set(
|
|
1967
|
-
this[
|
|
1967
|
+
return this[t4];
|
|
1968
|
+
}, set(e9) {
|
|
1969
|
+
this[t4] = e9;
|
|
1968
1970
|
} };
|
|
1969
1971
|
})();
|
|
1970
|
-
return
|
|
1971
|
-
let
|
|
1972
|
-
return void 0 ===
|
|
1972
|
+
return e4(n6, s4, { get() {
|
|
1973
|
+
let t4 = e8.call(this);
|
|
1974
|
+
return void 0 === t4 && (t4 = o7(this), (null !== t4 || this.hasUpdated) && r7.call(this, t4)), t4;
|
|
1973
1975
|
} });
|
|
1974
1976
|
}
|
|
1975
|
-
return
|
|
1976
|
-
return
|
|
1977
|
+
return e4(n6, s4, { get() {
|
|
1978
|
+
return o7(this);
|
|
1977
1979
|
} });
|
|
1978
1980
|
};
|
|
1979
1981
|
}
|
|
1980
1982
|
|
|
1981
1983
|
// node_modules/lit-html/directive.js
|
|
1982
|
-
var
|
|
1983
|
-
var
|
|
1984
|
-
var
|
|
1985
|
-
constructor(
|
|
1984
|
+
var t3 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
|
|
1985
|
+
var e6 = (t4) => (...e7) => ({ _$litDirective$: t4, values: e7 });
|
|
1986
|
+
var i5 = class {
|
|
1987
|
+
constructor(t4) {
|
|
1986
1988
|
}
|
|
1987
1989
|
get _$AU() {
|
|
1988
1990
|
return this._$AM._$AU;
|
|
1989
1991
|
}
|
|
1990
|
-
_$AT(
|
|
1991
|
-
this.
|
|
1992
|
+
_$AT(t4, e7, i7) {
|
|
1993
|
+
this._$Ct = t4, this._$AM = e7, this._$Ci = i7;
|
|
1992
1994
|
}
|
|
1993
|
-
_$AS(
|
|
1994
|
-
return this.update(
|
|
1995
|
+
_$AS(t4, e7) {
|
|
1996
|
+
return this.update(t4, e7);
|
|
1995
1997
|
}
|
|
1996
|
-
update(
|
|
1997
|
-
return this.render(...
|
|
1998
|
+
update(t4, e7) {
|
|
1999
|
+
return this.render(...e7);
|
|
1998
2000
|
}
|
|
1999
2001
|
};
|
|
2000
2002
|
|
|
2001
2003
|
// node_modules/lit-html/directives/style-map.js
|
|
2002
|
-
var
|
|
2003
|
-
var
|
|
2004
|
-
var
|
|
2005
|
-
constructor(
|
|
2006
|
-
if (super(
|
|
2004
|
+
var n5 = "important";
|
|
2005
|
+
var i6 = " !" + n5;
|
|
2006
|
+
var o6 = e6(class extends i5 {
|
|
2007
|
+
constructor(t4) {
|
|
2008
|
+
if (super(t4), t4.type !== t3.ATTRIBUTE || "style" !== t4.name || t4.strings?.length > 2)
|
|
2007
2009
|
throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
2008
2010
|
}
|
|
2009
|
-
render(
|
|
2010
|
-
return Object.keys(
|
|
2011
|
-
const
|
|
2012
|
-
return null ==
|
|
2011
|
+
render(t4) {
|
|
2012
|
+
return Object.keys(t4).reduce((e7, r6) => {
|
|
2013
|
+
const s4 = t4[r6];
|
|
2014
|
+
return null == s4 ? e7 : e7 + `${r6 = r6.includes("-") ? r6 : r6.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s4};`;
|
|
2013
2015
|
}, "");
|
|
2014
2016
|
}
|
|
2015
|
-
update(
|
|
2016
|
-
const { style:
|
|
2017
|
+
update(e7, [r6]) {
|
|
2018
|
+
const { style: s4 } = e7.element;
|
|
2017
2019
|
if (void 0 === this.ft)
|
|
2018
|
-
return this.ft = new Set(Object.keys(
|
|
2020
|
+
return this.ft = new Set(Object.keys(r6)), this.render(r6);
|
|
2019
2021
|
for (const t4 of this.ft)
|
|
2020
|
-
null ==
|
|
2021
|
-
for (const t4 in
|
|
2022
|
-
const
|
|
2023
|
-
if (null !=
|
|
2022
|
+
null == r6[t4] && (this.ft.delete(t4), t4.includes("-") ? s4.removeProperty(t4) : s4[t4] = null);
|
|
2023
|
+
for (const t4 in r6) {
|
|
2024
|
+
const e8 = r6[t4];
|
|
2025
|
+
if (null != e8) {
|
|
2024
2026
|
this.ft.add(t4);
|
|
2025
|
-
const
|
|
2026
|
-
t4.includes("-") ||
|
|
2027
|
+
const r7 = "string" == typeof e8 && e8.endsWith(i6);
|
|
2028
|
+
t4.includes("-") || r7 ? s4.setProperty(t4, r7 ? e8.slice(0, -11) : e8, r7 ? n5 : "") : s4[t4] = e8;
|
|
2027
2029
|
}
|
|
2028
2030
|
}
|
|
2029
|
-
return
|
|
2031
|
+
return T;
|
|
2030
2032
|
}
|
|
2031
2033
|
});
|
|
2032
2034
|
|
|
2033
2035
|
// libs/embed-libs/embed/package.json
|
|
2034
|
-
var version = "6.
|
|
2036
|
+
var version = "6.5.0";
|
|
2035
2037
|
|
|
2036
2038
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
2037
2039
|
var LuzmoService = class {
|
|
@@ -2329,7 +2331,7 @@ var dashboardStyles = i`
|
|
|
2329
2331
|
|
|
2330
2332
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-base.ts
|
|
2331
2333
|
var dashboardRemote = "DashboardApp";
|
|
2332
|
-
var LuzmoDashboard = class extends
|
|
2334
|
+
var LuzmoDashboard = class extends i4 {
|
|
2333
2335
|
constructor() {
|
|
2334
2336
|
super();
|
|
2335
2337
|
this.language = "auto";
|
|
@@ -2391,9 +2393,9 @@ var LuzmoDashboard = class extends h3 {
|
|
|
2391
2393
|
if (this.shadowRoot?.querySelector(".dashboard-container")) {
|
|
2392
2394
|
this.containerWidth = this.luzmoEmbedContainer.offsetWidth;
|
|
2393
2395
|
if (this.params.switchScreenModeOnResize && this.params.screenMode === "auto") {
|
|
2394
|
-
for (const
|
|
2395
|
-
if (
|
|
2396
|
-
this.currentScreenMode =
|
|
2396
|
+
for (const d3 of EXTENTS) {
|
|
2397
|
+
if (d3.width[0] <= window.innerWidth && window.innerWidth <= d3.width[1]) {
|
|
2398
|
+
this.currentScreenMode = d3.mode;
|
|
2397
2399
|
}
|
|
2398
2400
|
}
|
|
2399
2401
|
}
|
|
@@ -2694,33 +2696,33 @@ var LuzmoDashboard = class extends h3 {
|
|
|
2694
2696
|
}
|
|
2695
2697
|
render() {
|
|
2696
2698
|
let toBeRenderedHTML;
|
|
2697
|
-
const loader =
|
|
2699
|
+
const loader = x`
|
|
2698
2700
|
<div
|
|
2699
2701
|
class="luzmo-container-loader"
|
|
2700
2702
|
id="luzmo-container-loader-${this._containerId}"
|
|
2701
|
-
style=${
|
|
2703
|
+
style=${o6(
|
|
2702
2704
|
this._containerLoaderStyle
|
|
2703
2705
|
)}
|
|
2704
2706
|
>
|
|
2705
2707
|
<div
|
|
2706
2708
|
class="luzmo-loader"
|
|
2707
2709
|
id="luzmo-loader-${this._containerId}"
|
|
2708
|
-
style=${
|
|
2710
|
+
style=${o6(this._loaderStyle)}
|
|
2709
2711
|
>
|
|
2710
2712
|
<div
|
|
2711
2713
|
class="luzmo-lc"
|
|
2712
|
-
style=${
|
|
2714
|
+
style=${o6(this._lcStyle)}
|
|
2713
2715
|
>
|
|
2714
2716
|
<div
|
|
2715
2717
|
class="luzmo-loading-circle"
|
|
2716
|
-
style=${
|
|
2718
|
+
style=${o6(
|
|
2717
2719
|
this._loadingCircleStyle
|
|
2718
2720
|
)}
|
|
2719
2721
|
></div>
|
|
2720
|
-
${this._itemEmbedding ? "" :
|
|
2722
|
+
${this._itemEmbedding ? "" : x`
|
|
2721
2723
|
<div
|
|
2722
2724
|
class="luzmo-loading-message"
|
|
2723
|
-
style=${
|
|
2725
|
+
style=${o6({ color: this.loaderFontColor })}
|
|
2724
2726
|
>
|
|
2725
2727
|
${this._loaderMsg}
|
|
2726
2728
|
</div>
|
|
@@ -2730,41 +2732,41 @@ var LuzmoDashboard = class extends h3 {
|
|
|
2730
2732
|
</div>
|
|
2731
2733
|
`;
|
|
2732
2734
|
if (this.isWebComponentViewMode()) {
|
|
2733
|
-
toBeRenderedHTML = this.isLibraryLoaded ?
|
|
2734
|
-
${this.dashboardId || this.dashboardSlug ?
|
|
2735
|
+
toBeRenderedHTML = this.isLibraryLoaded ? x`
|
|
2736
|
+
${this.dashboardId || this.dashboardSlug ? x`
|
|
2735
2737
|
<dashboard-component dashboard-id="${this.params.dashboardId}" app-server="${this.params.appServer}"
|
|
2736
2738
|
api-host="${this.params.apiHost}"></dashboard-component>
|
|
2737
|
-
` :
|
|
2739
|
+
` : x`
|
|
2738
2740
|
<div id="luzmo-error-${this._containerId}">
|
|
2739
2741
|
<h3 class="luzmo-error">${this.browserErrorMsg}</h3>
|
|
2740
2742
|
</div>
|
|
2741
2743
|
`}
|
|
2742
|
-
` :
|
|
2744
|
+
` : x`${loader}`;
|
|
2743
2745
|
} else {
|
|
2744
|
-
toBeRenderedHTML =
|
|
2745
|
-
${this.dashboardId || this.dashboardSlug ?
|
|
2746
|
+
toBeRenderedHTML = x`
|
|
2747
|
+
${this.dashboardId || this.dashboardSlug ? x`
|
|
2746
2748
|
${loader}
|
|
2747
2749
|
<iframe
|
|
2748
2750
|
class="luzmo-embed-dashboard ${this.isWebComponentViewMode() ? "" : `luzmo-embed-dashboard-ede`}"
|
|
2749
2751
|
id="${this._iframeId}"
|
|
2750
2752
|
name="${this._iframeId}"
|
|
2751
|
-
style=${
|
|
2753
|
+
style=${o6(this.iframeStyle)}
|
|
2752
2754
|
src="${this._iframeUrl}"
|
|
2753
2755
|
frameborder="0"
|
|
2754
2756
|
></iframe>
|
|
2755
|
-
` :
|
|
2756
|
-
${this.browserError ?
|
|
2757
|
+
` : x`<!-- the dashboard will inititialize when you provide a dashboardSlug or a dashboardId -->`}
|
|
2758
|
+
${this.browserError ? x`
|
|
2757
2759
|
<div id="luzmo-error-${this._containerId}">
|
|
2758
2760
|
<h3 class="luzmo-error">${this.browserErrorMsg}</h3>
|
|
2759
2761
|
</div>
|
|
2760
2762
|
` : ""}
|
|
2761
2763
|
`;
|
|
2762
2764
|
}
|
|
2763
|
-
return
|
|
2765
|
+
return x`
|
|
2764
2766
|
<div class="${luzmoEmbedContainerClass} ${this.isWebComponentViewMode() ? "" : `${luzmoEmbedContainerClass}-ede`}">
|
|
2765
2767
|
<div
|
|
2766
2768
|
class="dashboard-container"
|
|
2767
|
-
style=${
|
|
2769
|
+
style=${o6(Object.assign({}, this._containerStyle, {
|
|
2768
2770
|
width: this.iframeStyle.width ?? "100%",
|
|
2769
2771
|
height: this.iframeStyle.height ?? "100%"
|
|
2770
2772
|
}))}
|
|
@@ -2890,13 +2892,13 @@ var LuzmoDashboard = class extends h3 {
|
|
|
2890
2892
|
}
|
|
2891
2893
|
};
|
|
2892
2894
|
__decorateClass([
|
|
2893
|
-
|
|
2895
|
+
e5(".dashboard-container")
|
|
2894
2896
|
], LuzmoDashboard.prototype, "container", 2);
|
|
2895
2897
|
__decorateClass([
|
|
2896
|
-
|
|
2898
|
+
e5(`.${luzmoEmbedContainerClass}`)
|
|
2897
2899
|
], LuzmoDashboard.prototype, "luzmoEmbedContainer", 2);
|
|
2898
2900
|
__decorateClass([
|
|
2899
|
-
|
|
2901
|
+
e5("iframe")
|
|
2900
2902
|
], LuzmoDashboard.prototype, "iframe", 2);
|
|
2901
2903
|
__decorateClass([
|
|
2902
2904
|
n4()
|
|
@@ -3039,19 +3041,19 @@ __decorateClass([
|
|
|
3039
3041
|
n4()
|
|
3040
3042
|
], LuzmoDashboard.prototype, "libVersion", 2);
|
|
3041
3043
|
__decorateClass([
|
|
3042
|
-
|
|
3044
|
+
r5()
|
|
3043
3045
|
], LuzmoDashboard.prototype, "isLibraryLoaded", 2);
|
|
3044
3046
|
__decorateClass([
|
|
3045
|
-
|
|
3047
|
+
r5()
|
|
3046
3048
|
], LuzmoDashboard.prototype, "dashboardReference", 2);
|
|
3047
3049
|
__decorateClass([
|
|
3048
|
-
|
|
3050
|
+
r5()
|
|
3049
3051
|
], LuzmoDashboard.prototype, "currentAuthKey", 2);
|
|
3050
3052
|
__decorateClass([
|
|
3051
|
-
|
|
3053
|
+
r5()
|
|
3052
3054
|
], LuzmoDashboard.prototype, "currentAuthToken", 2);
|
|
3053
3055
|
__decorateClass([
|
|
3054
|
-
|
|
3056
|
+
r5()
|
|
3055
3057
|
], LuzmoDashboard.prototype, "isInitCalled", 2);
|
|
3056
3058
|
|
|
3057
3059
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.ts
|
|
@@ -3064,7 +3066,7 @@ if (!customElements.get("luzmo-embed-dashboard")) {
|
|
|
3064
3066
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
|
|
3065
3067
|
var dashboardContentsVersion = "0.1.95";
|
|
3066
3068
|
var vizItemRemote = "VizItemApp";
|
|
3067
|
-
var LuzmoBaseVizItem = class extends
|
|
3069
|
+
var LuzmoBaseVizItem = class extends i4 {
|
|
3068
3070
|
constructor() {
|
|
3069
3071
|
super(...arguments);
|
|
3070
3072
|
this.appServer = "https://app.luzmo.com";
|
|
@@ -3197,7 +3199,7 @@ var LuzmoBaseVizItem = class extends h3 {
|
|
|
3197
3199
|
}
|
|
3198
3200
|
}
|
|
3199
3201
|
render() {
|
|
3200
|
-
return
|
|
3202
|
+
return x` `;
|
|
3201
3203
|
}
|
|
3202
3204
|
};
|
|
3203
3205
|
__decorateClass([
|
|
@@ -3280,7 +3282,7 @@ var inputMap = {
|
|
|
3280
3282
|
};
|
|
3281
3283
|
var embedChatTag = "luzmo-iq-embed-chat";
|
|
3282
3284
|
var chatComponentTag = "luzmo-iq-chat-component";
|
|
3283
|
-
var LuzmoIQEmbedChatComponent = class extends
|
|
3285
|
+
var LuzmoIQEmbedChatComponent = class extends i4 {
|
|
3284
3286
|
constructor() {
|
|
3285
3287
|
super(...arguments);
|
|
3286
3288
|
this.appServer = "https://app.luzmo.com";
|
|
@@ -3289,7 +3291,6 @@ var LuzmoIQEmbedChatComponent = class extends h3 {
|
|
|
3289
3291
|
this.libVersion = version + "-wc-luzmo";
|
|
3290
3292
|
this.remoteEntryServer = "http://localhost:4202/";
|
|
3291
3293
|
this.aydHost = "https://ayd.luzmo.com/";
|
|
3292
|
-
this.availableDatasets = [];
|
|
3293
3294
|
}
|
|
3294
3295
|
static {
|
|
3295
3296
|
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
@@ -3347,7 +3348,7 @@ var LuzmoIQEmbedChatComponent = class extends h3 {
|
|
|
3347
3348
|
}
|
|
3348
3349
|
}
|
|
3349
3350
|
render() {
|
|
3350
|
-
return
|
|
3351
|
+
return x``;
|
|
3351
3352
|
}
|
|
3352
3353
|
connectedCallback() {
|
|
3353
3354
|
super.connectedCallback();
|
|
@@ -3422,7 +3423,7 @@ var inputMap2 = {
|
|
|
3422
3423
|
messages: "messages"
|
|
3423
3424
|
};
|
|
3424
3425
|
var componentTag = "luzmo-iq-embed-answer";
|
|
3425
|
-
var LuzmoIQEmbedAnswerComponent = class extends
|
|
3426
|
+
var LuzmoIQEmbedAnswerComponent = class extends i4 {
|
|
3426
3427
|
constructor() {
|
|
3427
3428
|
super(...arguments);
|
|
3428
3429
|
this.appServer = "https://app.luzmo.com";
|
|
@@ -3488,7 +3489,7 @@ var LuzmoIQEmbedAnswerComponent = class extends h3 {
|
|
|
3488
3489
|
}
|
|
3489
3490
|
}
|
|
3490
3491
|
render() {
|
|
3491
|
-
return
|
|
3492
|
+
return x` `;
|
|
3492
3493
|
}
|
|
3493
3494
|
};
|
|
3494
3495
|
__decorateClass([
|
|
@@ -3584,7 +3585,7 @@ var luzmoRefParserOptions = {
|
|
|
3584
3585
|
};
|
|
3585
3586
|
|
|
3586
3587
|
// libs/embed-libs/embed/src/index.ts
|
|
3587
|
-
|
|
3588
|
+
i4.disableWarning?.("change-in-update");
|
|
3588
3589
|
/*! Bundled license information:
|
|
3589
3590
|
|
|
3590
3591
|
@lit/reactive-element/css-tag.js:
|