xactsize-webcomponents 1.0.17 → 1.0.18
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/dist/body-measurer.es.js +219 -225
- package/dist/body-measurer.umd.js +31 -31
- package/package.json +1 -1
package/dist/body-measurer.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const wA = (l, A, t) => {
|
|
2
2
|
const r = l[A];
|
|
3
|
-
return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((e,
|
|
3
|
+
return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((e, V) => {
|
|
4
4
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
5
|
-
|
|
5
|
+
V.bind(
|
|
6
6
|
null,
|
|
7
7
|
new Error(
|
|
8
8
|
"Unknown variable dynamic import: " + A + (A.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
|
|
@@ -16,16 +16,16 @@ const wA = (l, A, t) => {
|
|
|
16
16
|
* Copyright 2019 Google LLC
|
|
17
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
18
|
*/
|
|
19
|
-
const
|
|
19
|
+
const g = globalThis, yA = g.ShadowRoot && (g.ShadyCSS === void 0 || g.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, uA = Symbol(), TA = /* @__PURE__ */ new WeakMap();
|
|
20
20
|
let ZA = class {
|
|
21
21
|
constructor(A, t, r) {
|
|
22
|
-
if (this._$cssResult$ = !0, r !==
|
|
22
|
+
if (this._$cssResult$ = !0, r !== uA) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
23
23
|
this.cssText = A, this.t = t;
|
|
24
24
|
}
|
|
25
25
|
get styleSheet() {
|
|
26
26
|
let A = this.o;
|
|
27
27
|
const t = this.t;
|
|
28
|
-
if (
|
|
28
|
+
if (yA && A === void 0) {
|
|
29
29
|
const r = t !== void 0 && t.length === 1;
|
|
30
30
|
r && (A = TA.get(t)), A === void 0 && ((this.o = A = new CSSStyleSheet()).replaceSync(this.cssText), r && TA.set(t, A));
|
|
31
31
|
}
|
|
@@ -35,20 +35,20 @@ let ZA = class {
|
|
|
35
35
|
return this.cssText;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
const YA = (l) => new ZA(typeof l == "string" ? l : l + "", void 0,
|
|
39
|
-
const t = l.length === 1 ? l[0] : A.reduce((r, e,
|
|
40
|
-
if (
|
|
41
|
-
if (typeof
|
|
42
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
|
43
|
-
})(e) + l[
|
|
44
|
-
return new ZA(t, l,
|
|
38
|
+
const YA = (l) => new ZA(typeof l == "string" ? l : l + "", void 0, uA), Z = (l, ...A) => {
|
|
39
|
+
const t = l.length === 1 ? l[0] : A.reduce((r, e, V) => r + ((p) => {
|
|
40
|
+
if (p._$cssResult$ === !0) return p.cssText;
|
|
41
|
+
if (typeof p == "number") return p;
|
|
42
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + p + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
43
|
+
})(e) + l[V + 1], l[0]);
|
|
44
|
+
return new ZA(t, l, uA);
|
|
45
45
|
}, CA = (l, A) => {
|
|
46
|
-
if (
|
|
46
|
+
if (yA) l.adoptedStyleSheets = A.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
|
47
47
|
else for (const t of A) {
|
|
48
|
-
const r = document.createElement("style"), e =
|
|
48
|
+
const r = document.createElement("style"), e = g.litNonce;
|
|
49
49
|
e !== void 0 && r.setAttribute("nonce", e), r.textContent = t.cssText, l.appendChild(r);
|
|
50
50
|
}
|
|
51
|
-
}, XA =
|
|
51
|
+
}, XA = yA ? (l) => l : (l) => l instanceof CSSStyleSheet ? ((A) => {
|
|
52
52
|
let t = "";
|
|
53
53
|
for (const r of A.cssRules) t += r.cssText;
|
|
54
54
|
return YA(t);
|
|
@@ -58,7 +58,7 @@ const YA = (l) => new ZA(typeof l == "string" ? l : l + "", void 0, dA), N = (l,
|
|
|
58
58
|
* Copyright 2017 Google LLC
|
|
59
59
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
60
60
|
*/
|
|
61
|
-
const { is: DA, defineProperty: QA, getOwnPropertyDescriptor: gA, getOwnPropertyNames: BA, getOwnPropertySymbols: _A, getPrototypeOf: $A } = Object, s = globalThis, xA = s.trustedTypes, At = xA ? xA.emptyScript : "",
|
|
61
|
+
const { is: DA, defineProperty: QA, getOwnPropertyDescriptor: gA, getOwnPropertyNames: BA, getOwnPropertySymbols: _A, getPrototypeOf: $A } = Object, s = globalThis, xA = s.trustedTypes, At = xA ? xA.emptyScript : "", lA = s.reactiveElementPolyfillSupport, H = (l, A) => l, B = { toAttribute(l, A) {
|
|
62
62
|
switch (A) {
|
|
63
63
|
case Boolean:
|
|
64
64
|
l = l ? At : null;
|
|
@@ -86,9 +86,9 @@ const { is: DA, defineProperty: QA, getOwnPropertyDescriptor: gA, getOwnProperty
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
return t;
|
|
89
|
-
} },
|
|
89
|
+
} }, dA = (l, A) => !DA(l, A), KA = { attribute: !0, type: String, converter: B, reflect: !1, useDefault: !1, hasChanged: dA };
|
|
90
90
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), s.litPropertyMetadata ?? (s.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
91
|
-
let
|
|
91
|
+
let P = class extends HTMLElement {
|
|
92
92
|
static addInitializer(A) {
|
|
93
93
|
this._$Ei(), (this.l ?? (this.l = [])).push(A);
|
|
94
94
|
}
|
|
@@ -102,27 +102,27 @@ let m = class extends HTMLElement {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
static getPropertyDescriptor(A, t, r) {
|
|
105
|
-
const { get: e, set:
|
|
105
|
+
const { get: e, set: V } = gA(this.prototype, A) ?? { get() {
|
|
106
106
|
return this[t];
|
|
107
|
-
}, set(
|
|
108
|
-
this[t] =
|
|
107
|
+
}, set(p) {
|
|
108
|
+
this[t] = p;
|
|
109
109
|
} };
|
|
110
|
-
return { get: e, set(
|
|
110
|
+
return { get: e, set(p) {
|
|
111
111
|
const S = e == null ? void 0 : e.call(this);
|
|
112
|
-
|
|
112
|
+
V == null || V.call(this, p), this.requestUpdate(A, S, r);
|
|
113
113
|
}, configurable: !0, enumerable: !0 };
|
|
114
114
|
}
|
|
115
115
|
static getPropertyOptions(A) {
|
|
116
116
|
return this.elementProperties.get(A) ?? KA;
|
|
117
117
|
}
|
|
118
118
|
static _$Ei() {
|
|
119
|
-
if (this.hasOwnProperty(
|
|
119
|
+
if (this.hasOwnProperty(H("elementProperties"))) return;
|
|
120
120
|
const A = $A(this);
|
|
121
121
|
A.finalize(), A.l !== void 0 && (this.l = [...A.l]), this.elementProperties = new Map(A.elementProperties);
|
|
122
122
|
}
|
|
123
123
|
static finalize() {
|
|
124
|
-
if (this.hasOwnProperty(
|
|
125
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
124
|
+
if (this.hasOwnProperty(H("finalized"))) return;
|
|
125
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(H("properties"))) {
|
|
126
126
|
const t = this.properties, r = [...BA(t), ..._A(t)];
|
|
127
127
|
for (const e of r) this.createProperty(e, t[e]);
|
|
128
128
|
}
|
|
@@ -194,32 +194,32 @@ let m = class extends HTMLElement {
|
|
|
194
194
|
this._$AK(A, r);
|
|
195
195
|
}
|
|
196
196
|
_$ET(A, t) {
|
|
197
|
-
var
|
|
197
|
+
var V;
|
|
198
198
|
const r = this.constructor.elementProperties.get(A), e = this.constructor._$Eu(A, r);
|
|
199
199
|
if (e !== void 0 && r.reflect === !0) {
|
|
200
|
-
const
|
|
201
|
-
this._$Em = A,
|
|
200
|
+
const p = (((V = r.converter) == null ? void 0 : V.toAttribute) !== void 0 ? r.converter : B).toAttribute(t, r.type);
|
|
201
|
+
this._$Em = A, p == null ? this.removeAttribute(e) : this.setAttribute(e, p), this._$Em = null;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
_$AK(A, t) {
|
|
205
|
-
var
|
|
205
|
+
var V, p;
|
|
206
206
|
const r = this.constructor, e = r._$Eh.get(A);
|
|
207
207
|
if (e !== void 0 && this._$Em !== e) {
|
|
208
|
-
const S = r.getPropertyOptions(e), n = typeof S.converter == "function" ? { fromAttribute: S.converter } : ((
|
|
209
|
-
this._$Em = e, this[e] = n.fromAttribute(t, S.type) ?? ((
|
|
208
|
+
const S = r.getPropertyOptions(e), n = typeof S.converter == "function" ? { fromAttribute: S.converter } : ((V = S.converter) == null ? void 0 : V.fromAttribute) !== void 0 ? S.converter : B;
|
|
209
|
+
this._$Em = e, this[e] = n.fromAttribute(t, S.type) ?? ((p = this._$Ej) == null ? void 0 : p.get(e)) ?? null, this._$Em = null;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
requestUpdate(A, t, r) {
|
|
213
213
|
var e;
|
|
214
214
|
if (A !== void 0) {
|
|
215
|
-
const
|
|
216
|
-
if (r ?? (r =
|
|
215
|
+
const V = this.constructor, p = this[A];
|
|
216
|
+
if (r ?? (r = V.getPropertyOptions(A)), !((r.hasChanged ?? dA)(p, t) || r.useDefault && r.reflect && p === ((e = this._$Ej) == null ? void 0 : e.get(A)) && !this.hasAttribute(V._$Eu(A, r)))) return;
|
|
217
217
|
this.C(A, t, r);
|
|
218
218
|
}
|
|
219
219
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
220
220
|
}
|
|
221
|
-
C(A, t, { useDefault: r, reflect: e, wrapped:
|
|
222
|
-
r && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(A) && (this._$Ej.set(A,
|
|
221
|
+
C(A, t, { useDefault: r, reflect: e, wrapped: V }, p) {
|
|
222
|
+
r && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(A) && (this._$Ej.set(A, p ?? t ?? this[A]), V !== !0 || p !== void 0) || (this._$AL.has(A) || (this.hasUpdated || r || (t = void 0), this._$AL.set(A, t)), e === !0 && this._$Em !== A && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(A));
|
|
223
223
|
}
|
|
224
224
|
async _$EP() {
|
|
225
225
|
this.isUpdatePending = !0;
|
|
@@ -239,21 +239,21 @@ let m = class extends HTMLElement {
|
|
|
239
239
|
if (!this.isUpdatePending) return;
|
|
240
240
|
if (!this.hasUpdated) {
|
|
241
241
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
242
|
-
for (const [
|
|
242
|
+
for (const [V, p] of this._$Ep) this[V] = p;
|
|
243
243
|
this._$Ep = void 0;
|
|
244
244
|
}
|
|
245
245
|
const e = this.constructor.elementProperties;
|
|
246
|
-
if (e.size > 0) for (const [
|
|
247
|
-
const { wrapped: S } =
|
|
248
|
-
S !== !0 || this._$AL.has(
|
|
246
|
+
if (e.size > 0) for (const [V, p] of e) {
|
|
247
|
+
const { wrapped: S } = p, n = this[V];
|
|
248
|
+
S !== !0 || this._$AL.has(V) || n === void 0 || this.C(V, void 0, p, n);
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
let A = !1;
|
|
252
252
|
const t = this._$AL;
|
|
253
253
|
try {
|
|
254
254
|
A = this.shouldUpdate(t), A ? (this.willUpdate(t), (r = this._$EO) == null || r.forEach((e) => {
|
|
255
|
-
var
|
|
256
|
-
return (
|
|
255
|
+
var V;
|
|
256
|
+
return (V = e.hostUpdate) == null ? void 0 : V.call(e);
|
|
257
257
|
}), this.update(t)) : this._$EM();
|
|
258
258
|
} catch (e) {
|
|
259
259
|
throw A = !1, this._$EM(), e;
|
|
@@ -289,61 +289,61 @@ let m = class extends HTMLElement {
|
|
|
289
289
|
firstUpdated(A) {
|
|
290
290
|
}
|
|
291
291
|
};
|
|
292
|
-
|
|
292
|
+
P.elementStyles = [], P.shadowRootOptions = { mode: "open" }, P[H("elementProperties")] = /* @__PURE__ */ new Map(), P[H("finalized")] = /* @__PURE__ */ new Map(), lA == null || lA({ ReactiveElement: P }), (s.reactiveElementVersions ?? (s.reactiveElementVersions = [])).push("2.1.0");
|
|
293
293
|
/**
|
|
294
294
|
* @license
|
|
295
295
|
* Copyright 2017 Google LLC
|
|
296
296
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
297
297
|
*/
|
|
298
|
-
const
|
|
299
|
-
\f\r]`,
|
|
300
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), iA = /'/g, vA = /"/g, HA = /^(?:script|style|textarea|title)$/i, et = (l) => (A, ...t) => ({ _$litType$: l, strings: A, values: t }), T = et(1), f = Symbol.for("lit-noChange"),
|
|
298
|
+
const z = globalThis, _ = z.trustedTypes, UA = _ ? _.createPolicy("lit-html", { createHTML: (l) => l }) : void 0, NA = "$lit$", W = `lit$${Math.random().toFixed(9).slice(2)}$`, RA = "?" + W, tt = `<${RA}>`, L = document, G = () => L.createComment(""), F = (l) => l === null || typeof l != "object" && typeof l != "function", jA = Array.isArray, lt = (l) => jA(l) || typeof (l == null ? void 0 : l[Symbol.iterator]) == "function", eA = `[
|
|
299
|
+
\f\r]`, R = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, WA = /-->/g, sA = />/g, i = RegExp(`>|${eA}(?:([^\\s"'>=/]+)(${eA}*=${eA}*(?:[^
|
|
300
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), iA = /'/g, vA = /"/g, HA = /^(?:script|style|textarea|title)$/i, et = (l) => (A, ...t) => ({ _$litType$: l, strings: A, values: t }), T = et(1), f = Symbol.for("lit-noChange"), j = Symbol.for("lit-nothing"), OA = /* @__PURE__ */ new WeakMap(), O = L.createTreeWalker(L, 129);
|
|
301
301
|
function zA(l, A) {
|
|
302
|
-
if (!
|
|
302
|
+
if (!jA(l) || !l.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
303
303
|
return UA !== void 0 ? UA.createHTML(A) : A;
|
|
304
304
|
}
|
|
305
305
|
const rt = (l, A) => {
|
|
306
306
|
const t = l.length - 1, r = [];
|
|
307
|
-
let e,
|
|
307
|
+
let e, V = A === 2 ? "<svg>" : A === 3 ? "<math>" : "", p = R;
|
|
308
308
|
for (let S = 0; S < t; S++) {
|
|
309
309
|
const n = l[S];
|
|
310
310
|
let d, k, y = -1, x = 0;
|
|
311
|
-
for (; x < n.length && (
|
|
312
|
-
const U =
|
|
313
|
-
|
|
311
|
+
for (; x < n.length && (p.lastIndex = x, k = p.exec(n), k !== null); ) x = p.lastIndex, p === R ? k[1] === "!--" ? p = WA : k[1] !== void 0 ? p = sA : k[2] !== void 0 ? (HA.test(k[2]) && (e = RegExp("</" + k[2], "g")), p = i) : k[3] !== void 0 && (p = i) : p === i ? k[0] === ">" ? (p = e ?? R, y = -1) : k[1] === void 0 ? y = -2 : (y = p.lastIndex - k[2].length, d = k[1], p = k[3] === void 0 ? i : k[3] === '"' ? vA : iA) : p === vA || p === iA ? p = i : p === WA || p === sA ? p = R : (p = i, e = void 0);
|
|
312
|
+
const U = p === i && l[S + 1].startsWith("/>") ? " " : "";
|
|
313
|
+
V += p === R ? n + tt : y >= 0 ? (r.push(d), n.slice(0, y) + NA + n.slice(y) + W + U) : n + W + (y === -2 ? S : U);
|
|
314
314
|
}
|
|
315
|
-
return [zA(l,
|
|
315
|
+
return [zA(l, V + (l[t] || "<?>") + (A === 2 ? "</svg>" : A === 3 ? "</math>" : "")), r];
|
|
316
316
|
};
|
|
317
|
-
class
|
|
317
|
+
class M {
|
|
318
318
|
constructor({ strings: A, _$litType$: t }, r) {
|
|
319
319
|
let e;
|
|
320
320
|
this.parts = [];
|
|
321
|
-
let
|
|
321
|
+
let V = 0, p = 0;
|
|
322
322
|
const S = A.length - 1, n = this.parts, [d, k] = rt(A, t);
|
|
323
|
-
if (this.el =
|
|
323
|
+
if (this.el = M.createElement(d, r), O.currentNode = this.el.content, t === 2 || t === 3) {
|
|
324
324
|
const y = this.el.content.firstChild;
|
|
325
325
|
y.replaceWith(...y.childNodes);
|
|
326
326
|
}
|
|
327
327
|
for (; (e = O.nextNode()) !== null && n.length < S; ) {
|
|
328
328
|
if (e.nodeType === 1) {
|
|
329
329
|
if (e.hasAttributes()) for (const y of e.getAttributeNames()) if (y.endsWith(NA)) {
|
|
330
|
-
const x = k[
|
|
331
|
-
n.push({ type: 1, index:
|
|
332
|
-
} else y.startsWith(W) && (n.push({ type: 6, index:
|
|
330
|
+
const x = k[p++], U = e.getAttribute(y).split(W), D = /([.?@])?(.*)/.exec(x);
|
|
331
|
+
n.push({ type: 1, index: V, name: D[2], strings: U, ctor: D[1] === "." ? pt : D[1] === "?" ? qt : D[1] === "@" ? nt : tA }), e.removeAttribute(y);
|
|
332
|
+
} else y.startsWith(W) && (n.push({ type: 6, index: V }), e.removeAttribute(y));
|
|
333
333
|
if (HA.test(e.tagName)) {
|
|
334
334
|
const y = e.textContent.split(W), x = y.length - 1;
|
|
335
335
|
if (x > 0) {
|
|
336
|
-
e.textContent =
|
|
337
|
-
for (let U = 0; U < x; U++) e.append(y[U],
|
|
338
|
-
e.append(y[x],
|
|
336
|
+
e.textContent = _ ? _.emptyScript : "";
|
|
337
|
+
for (let U = 0; U < x; U++) e.append(y[U], G()), O.nextNode(), n.push({ type: 2, index: ++V });
|
|
338
|
+
e.append(y[x], G());
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
} else if (e.nodeType === 8) if (e.data === RA) n.push({ type: 2, index:
|
|
341
|
+
} else if (e.nodeType === 8) if (e.data === RA) n.push({ type: 2, index: V });
|
|
342
342
|
else {
|
|
343
343
|
let y = -1;
|
|
344
|
-
for (; (y = e.data.indexOf(W, y + 1)) !== -1; ) n.push({ type: 7, index:
|
|
344
|
+
for (; (y = e.data.indexOf(W, y + 1)) !== -1; ) n.push({ type: 7, index: V }), y += W.length - 1;
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
V++;
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
static createElement(A, t) {
|
|
@@ -351,14 +351,14 @@ class h {
|
|
|
351
351
|
return r.innerHTML = A, r;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
var
|
|
354
|
+
function m(l, A, t = l, r) {
|
|
355
|
+
var p, S;
|
|
356
356
|
if (A === f) return A;
|
|
357
|
-
let e = r !== void 0 ? (
|
|
358
|
-
const
|
|
359
|
-
return (e == null ? void 0 : e.constructor) !==
|
|
357
|
+
let e = r !== void 0 ? (p = t._$Co) == null ? void 0 : p[r] : t._$Cl;
|
|
358
|
+
const V = F(A) ? void 0 : A._$litDirective$;
|
|
359
|
+
return (e == null ? void 0 : e.constructor) !== V && ((S = e == null ? void 0 : e._$AO) == null || S.call(e, !1), V === void 0 ? e = void 0 : (e = new V(l), e._$AT(l, t, r)), r !== void 0 ? (t._$Co ?? (t._$Co = []))[r] = e : t._$Cl = e), e !== void 0 && (A = m(l, e._$AS(l, A.values), e, r)), A;
|
|
360
360
|
}
|
|
361
|
-
class
|
|
361
|
+
class Vt {
|
|
362
362
|
constructor(A, t) {
|
|
363
363
|
this._$AV = [], this._$AN = void 0, this._$AD = A, this._$AM = t;
|
|
364
364
|
}
|
|
@@ -371,13 +371,13 @@ class pt {
|
|
|
371
371
|
u(A) {
|
|
372
372
|
const { el: { content: t }, parts: r } = this._$AD, e = ((A == null ? void 0 : A.creationScope) ?? L).importNode(t, !0);
|
|
373
373
|
O.currentNode = e;
|
|
374
|
-
let
|
|
374
|
+
let V = O.nextNode(), p = 0, S = 0, n = r[0];
|
|
375
375
|
for (; n !== void 0; ) {
|
|
376
|
-
if (
|
|
376
|
+
if (p === n.index) {
|
|
377
377
|
let d;
|
|
378
|
-
n.type === 2 ? d = new w(
|
|
378
|
+
n.type === 2 ? d = new w(V, V.nextSibling, this, A) : n.type === 1 ? d = new n.ctor(V, n.name, n.strings, this, A) : n.type === 6 && (d = new St(V, this, A)), this._$AV.push(d), n = r[++S];
|
|
379
379
|
}
|
|
380
|
-
|
|
380
|
+
p !== (n == null ? void 0 : n.index) && (V = O.nextNode(), p++);
|
|
381
381
|
}
|
|
382
382
|
return O.currentNode = L, e;
|
|
383
383
|
}
|
|
@@ -392,7 +392,7 @@ class w {
|
|
|
392
392
|
return ((A = this._$AM) == null ? void 0 : A._$AU) ?? this._$Cv;
|
|
393
393
|
}
|
|
394
394
|
constructor(A, t, r, e) {
|
|
395
|
-
this.type = 2, this._$AH =
|
|
395
|
+
this.type = 2, this._$AH = j, this._$AN = void 0, this._$AA = A, this._$AB = t, this._$AM = r, this.options = e, this._$Cv = (e == null ? void 0 : e.isConnected) ?? !0;
|
|
396
396
|
}
|
|
397
397
|
get parentNode() {
|
|
398
398
|
let A = this._$AA.parentNode;
|
|
@@ -406,7 +406,7 @@ class w {
|
|
|
406
406
|
return this._$AB;
|
|
407
407
|
}
|
|
408
408
|
_$AI(A, t = this) {
|
|
409
|
-
A =
|
|
409
|
+
A = m(this, A, t), F(A) ? A === j || A == null || A === "" ? (this._$AH !== j && this._$AR(), this._$AH = j) : A !== this._$AH && A !== f && this._(A) : A._$litType$ !== void 0 ? this.$(A) : A.nodeType !== void 0 ? this.T(A) : lt(A) ? this.k(A) : this._(A);
|
|
410
410
|
}
|
|
411
411
|
O(A) {
|
|
412
412
|
return this._$AA.parentNode.insertBefore(A, this._$AB);
|
|
@@ -415,26 +415,26 @@ class w {
|
|
|
415
415
|
this._$AH !== A && (this._$AR(), this._$AH = this.O(A));
|
|
416
416
|
}
|
|
417
417
|
_(A) {
|
|
418
|
-
this._$AH !==
|
|
418
|
+
this._$AH !== j && F(this._$AH) ? this._$AA.nextSibling.data = A : this.T(L.createTextNode(A)), this._$AH = A;
|
|
419
419
|
}
|
|
420
420
|
$(A) {
|
|
421
|
-
var
|
|
422
|
-
const { values: t, _$litType$: r } = A, e = typeof r == "number" ? this._$AC(A) : (r.el === void 0 && (r.el =
|
|
423
|
-
if (((
|
|
421
|
+
var V;
|
|
422
|
+
const { values: t, _$litType$: r } = A, e = typeof r == "number" ? this._$AC(A) : (r.el === void 0 && (r.el = M.createElement(zA(r.h, r.h[0]), this.options)), r);
|
|
423
|
+
if (((V = this._$AH) == null ? void 0 : V._$AD) === e) this._$AH.p(t);
|
|
424
424
|
else {
|
|
425
|
-
const
|
|
426
|
-
|
|
425
|
+
const p = new Vt(e, this), S = p.u(this.options);
|
|
426
|
+
p.p(t), this.T(S), this._$AH = p;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
_$AC(A) {
|
|
430
430
|
let t = OA.get(A.strings);
|
|
431
|
-
return t === void 0 && OA.set(A.strings, t = new
|
|
431
|
+
return t === void 0 && OA.set(A.strings, t = new M(A)), t;
|
|
432
432
|
}
|
|
433
433
|
k(A) {
|
|
434
|
-
|
|
434
|
+
jA(this._$AH) || (this._$AH = [], this._$AR());
|
|
435
435
|
const t = this._$AH;
|
|
436
436
|
let r, e = 0;
|
|
437
|
-
for (const
|
|
437
|
+
for (const V of A) e === t.length ? t.push(r = new w(this.O(G()), this.O(G()), this, this.options)) : r = t[e], r._$AI(V), e++;
|
|
438
438
|
e < t.length && (this._$AR(r && r._$AB.nextSibling, e), t.length = e);
|
|
439
439
|
}
|
|
440
440
|
_$AR(A = this._$AA.nextSibling, t) {
|
|
@@ -449,55 +449,55 @@ class w {
|
|
|
449
449
|
this._$AM === void 0 && (this._$Cv = A, (t = this._$AP) == null || t.call(this, A));
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
class
|
|
452
|
+
class tA {
|
|
453
453
|
get tagName() {
|
|
454
454
|
return this.element.tagName;
|
|
455
455
|
}
|
|
456
456
|
get _$AU() {
|
|
457
457
|
return this._$AM._$AU;
|
|
458
458
|
}
|
|
459
|
-
constructor(A, t, r, e,
|
|
460
|
-
this.type = 1, this._$AH =
|
|
459
|
+
constructor(A, t, r, e, V) {
|
|
460
|
+
this.type = 1, this._$AH = j, this._$AN = void 0, this.element = A, this.name = t, this._$AM = e, this.options = V, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = j;
|
|
461
461
|
}
|
|
462
462
|
_$AI(A, t = this, r, e) {
|
|
463
|
-
const
|
|
464
|
-
let
|
|
465
|
-
if (
|
|
463
|
+
const V = this.strings;
|
|
464
|
+
let p = !1;
|
|
465
|
+
if (V === void 0) A = m(this, A, t, 0), p = !F(A) || A !== this._$AH && A !== f, p && (this._$AH = A);
|
|
466
466
|
else {
|
|
467
467
|
const S = A;
|
|
468
468
|
let n, d;
|
|
469
|
-
for (A =
|
|
469
|
+
for (A = V[0], n = 0; n < V.length - 1; n++) d = m(this, S[r + n], t, n), d === f && (d = this._$AH[n]), p || (p = !F(d) || d !== this._$AH[n]), d === j ? A = j : A !== j && (A += (d ?? "") + V[n + 1]), this._$AH[n] = d;
|
|
470
470
|
}
|
|
471
|
-
|
|
471
|
+
p && !e && this.j(A);
|
|
472
472
|
}
|
|
473
473
|
j(A) {
|
|
474
|
-
A ===
|
|
474
|
+
A === j ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, A ?? "");
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
class
|
|
477
|
+
class pt extends tA {
|
|
478
478
|
constructor() {
|
|
479
479
|
super(...arguments), this.type = 3;
|
|
480
480
|
}
|
|
481
481
|
j(A) {
|
|
482
|
-
this.element[this.name] = A ===
|
|
482
|
+
this.element[this.name] = A === j ? void 0 : A;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
class qt extends
|
|
485
|
+
class qt extends tA {
|
|
486
486
|
constructor() {
|
|
487
487
|
super(...arguments), this.type = 4;
|
|
488
488
|
}
|
|
489
489
|
j(A) {
|
|
490
|
-
this.element.toggleAttribute(this.name, !!A && A !==
|
|
490
|
+
this.element.toggleAttribute(this.name, !!A && A !== j);
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
class nt extends
|
|
494
|
-
constructor(A, t, r, e,
|
|
495
|
-
super(A, t, r, e,
|
|
493
|
+
class nt extends tA {
|
|
494
|
+
constructor(A, t, r, e, V) {
|
|
495
|
+
super(A, t, r, e, V), this.type = 5;
|
|
496
496
|
}
|
|
497
497
|
_$AI(A, t = this) {
|
|
498
|
-
if ((A =
|
|
499
|
-
const r = this._$AH, e = A ===
|
|
500
|
-
e && this.element.removeEventListener(this.name, this, r),
|
|
498
|
+
if ((A = m(this, A, t, 0) ?? j) === f) return;
|
|
499
|
+
const r = this._$AH, e = A === j && r !== j || A.capture !== r.capture || A.once !== r.once || A.passive !== r.passive, V = A !== j && (r === j || e);
|
|
500
|
+
e && this.element.removeEventListener(this.name, this, r), V && this.element.addEventListener(this.name, this, A), this._$AH = A;
|
|
501
501
|
}
|
|
502
502
|
handleEvent(A) {
|
|
503
503
|
var t;
|
|
@@ -512,17 +512,17 @@ class St {
|
|
|
512
512
|
return this._$AM._$AU;
|
|
513
513
|
}
|
|
514
514
|
_$AI(A) {
|
|
515
|
-
|
|
515
|
+
m(this, A);
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
const
|
|
519
|
-
|
|
518
|
+
const rA = z.litHtmlPolyfillSupport;
|
|
519
|
+
rA == null || rA(M, w), (z.litHtmlVersions ?? (z.litHtmlVersions = [])).push("3.3.0");
|
|
520
520
|
const at = (l, A, t) => {
|
|
521
521
|
const r = (t == null ? void 0 : t.renderBefore) ?? A;
|
|
522
522
|
let e = r._$litPart$;
|
|
523
523
|
if (e === void 0) {
|
|
524
|
-
const
|
|
525
|
-
r._$litPart$ = e = new w(A.insertBefore(
|
|
524
|
+
const V = (t == null ? void 0 : t.renderBefore) ?? null;
|
|
525
|
+
r._$litPart$ = e = new w(A.insertBefore(G(), V), V, void 0, t ?? {});
|
|
526
526
|
}
|
|
527
527
|
return e._$AI(l), e;
|
|
528
528
|
};
|
|
@@ -532,7 +532,7 @@ const at = (l, A, t) => {
|
|
|
532
532
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
533
533
|
*/
|
|
534
534
|
const b = globalThis;
|
|
535
|
-
let X = class extends
|
|
535
|
+
let X = class extends P {
|
|
536
536
|
constructor() {
|
|
537
537
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
538
538
|
}
|
|
@@ -567,7 +567,7 @@ VA == null || VA({ LitElement: X });
|
|
|
567
567
|
* Copyright 2017 Google LLC
|
|
568
568
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
569
569
|
*/
|
|
570
|
-
const
|
|
570
|
+
const N = (l) => (A, t) => {
|
|
571
571
|
t !== void 0 ? t.addInitializer(() => {
|
|
572
572
|
customElements.define(l, A);
|
|
573
573
|
}) : customElements.define(l, A);
|
|
@@ -577,31 +577,31 @@ const R = (l) => (A, t) => {
|
|
|
577
577
|
* Copyright 2017 Google LLC
|
|
578
578
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
579
579
|
*/
|
|
580
|
-
const yt = { attribute: !0, type: String, converter:
|
|
580
|
+
const yt = { attribute: !0, type: String, converter: B, reflect: !1, hasChanged: dA }, ut = (l = yt, A, t) => {
|
|
581
581
|
const { kind: r, metadata: e } = t;
|
|
582
|
-
let
|
|
583
|
-
if (
|
|
584
|
-
const { name:
|
|
582
|
+
let V = globalThis.litPropertyMetadata.get(e);
|
|
583
|
+
if (V === void 0 && globalThis.litPropertyMetadata.set(e, V = /* @__PURE__ */ new Map()), r === "setter" && ((l = Object.create(l)).wrapped = !0), V.set(t.name, l), r === "accessor") {
|
|
584
|
+
const { name: p } = t;
|
|
585
585
|
return { set(S) {
|
|
586
586
|
const n = A.get.call(this);
|
|
587
|
-
A.set.call(this, S), this.requestUpdate(
|
|
587
|
+
A.set.call(this, S), this.requestUpdate(p, n, l);
|
|
588
588
|
}, init(S) {
|
|
589
|
-
return S !== void 0 && this.C(
|
|
589
|
+
return S !== void 0 && this.C(p, void 0, l, S), S;
|
|
590
590
|
} };
|
|
591
591
|
}
|
|
592
592
|
if (r === "setter") {
|
|
593
|
-
const { name:
|
|
593
|
+
const { name: p } = t;
|
|
594
594
|
return function(S) {
|
|
595
|
-
const n = this[
|
|
596
|
-
A.call(this, S), this.requestUpdate(
|
|
595
|
+
const n = this[p];
|
|
596
|
+
A.call(this, S), this.requestUpdate(p, n, l);
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
599
|
throw Error("Unsupported decorator location: " + r);
|
|
600
600
|
};
|
|
601
|
-
function
|
|
602
|
-
return (A, t) => typeof t == "object" ? ut(l, A, t) : ((r, e,
|
|
603
|
-
const
|
|
604
|
-
return e.constructor.createProperty(
|
|
601
|
+
function c(l) {
|
|
602
|
+
return (A, t) => typeof t == "object" ? ut(l, A, t) : ((r, e, V) => {
|
|
603
|
+
const p = e.hasOwnProperty(V);
|
|
604
|
+
return e.constructor.createProperty(V, r), p ? Object.getOwnPropertyDescriptor(e, V) : void 0;
|
|
605
605
|
})(l, A, t);
|
|
606
606
|
}
|
|
607
607
|
/**
|
|
@@ -610,14 +610,14 @@ function j(l) {
|
|
|
610
610
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
611
611
|
*/
|
|
612
612
|
function J(l) {
|
|
613
|
-
return
|
|
613
|
+
return c({ ...l, state: !0, attribute: !1 });
|
|
614
614
|
}
|
|
615
615
|
/**
|
|
616
616
|
* @license
|
|
617
617
|
* Copyright 2021 Google LLC
|
|
618
618
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
619
619
|
*/
|
|
620
|
-
const
|
|
620
|
+
const nA = "lit-localize-status";
|
|
621
621
|
/**
|
|
622
622
|
* @license
|
|
623
623
|
* Copyright 2021 Google LLC
|
|
@@ -653,10 +653,10 @@ class ct {
|
|
|
653
653
|
}, this.host = A;
|
|
654
654
|
}
|
|
655
655
|
hostConnected() {
|
|
656
|
-
window.addEventListener(
|
|
656
|
+
window.addEventListener(nA, this.__litLocalizeEventHandler);
|
|
657
657
|
}
|
|
658
658
|
hostDisconnected() {
|
|
659
|
-
window.removeEventListener(
|
|
659
|
+
window.removeEventListener(nA, this.__litLocalizeEventHandler);
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
const kt = (l) => l.addController(new ct(l)), Jt = kt;
|
|
@@ -693,10 +693,10 @@ const K = [];
|
|
|
693
693
|
for (let l = 0; l < 256; l++)
|
|
694
694
|
K[l] = (l >> 4 & 15).toString(16) + (l & 15).toString(16);
|
|
695
695
|
function Tt(l) {
|
|
696
|
-
let A = 0, t = 8997, r = 0, e = 33826,
|
|
696
|
+
let A = 0, t = 8997, r = 0, e = 33826, V = 0, p = 40164, S = 0, n = 52210;
|
|
697
697
|
for (let d = 0; d < l.length; d++)
|
|
698
|
-
t ^= l.charCodeAt(d), A = t * 435, r = e * 435,
|
|
699
|
-
return K[n >> 8] + K[n & 255] + K[
|
|
698
|
+
t ^= l.charCodeAt(d), A = t * 435, r = e * 435, V = p * 435, S = n * 435, V += t << 8, S += e << 8, r += A >>> 16, t = A & 65535, V += r >>> 16, e = r & 65535, n = S + (V >>> 16) & 65535, p = V & 65535;
|
|
699
|
+
return K[n >> 8] + K[n & 255] + K[p >> 8] + K[p & 255] + K[e >> 8] + K[e & 255] + K[t >> 8] + K[t & 255];
|
|
700
700
|
}
|
|
701
701
|
/**
|
|
702
702
|
* @license
|
|
@@ -728,10 +728,10 @@ function Wt(l, A, t) {
|
|
|
728
728
|
e.values
|
|
729
729
|
);
|
|
730
730
|
{
|
|
731
|
-
let
|
|
732
|
-
return
|
|
731
|
+
let V = LA.get(e);
|
|
732
|
+
return V === void 0 && (V = e.values, LA.set(e, V)), {
|
|
733
733
|
...e,
|
|
734
|
-
values:
|
|
734
|
+
values: V.map((p) => A.values[p])
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
737
|
}
|
|
@@ -748,30 +748,30 @@ function st(l) {
|
|
|
748
748
|
* Copyright 2021 Google LLC
|
|
749
749
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
750
750
|
*/
|
|
751
|
-
function
|
|
752
|
-
window.dispatchEvent(new CustomEvent(
|
|
751
|
+
function pA(l) {
|
|
752
|
+
window.dispatchEvent(new CustomEvent(nA, { detail: l }));
|
|
753
753
|
}
|
|
754
|
-
let
|
|
754
|
+
let $ = "", qA, hA, AA, SA, EA, v = new MA();
|
|
755
755
|
v.resolve();
|
|
756
|
-
let
|
|
757
|
-
const it = (l) => (jt((A, t) => Wt(EA, A, t)),
|
|
758
|
-
if (l === (
|
|
756
|
+
let Q = 0;
|
|
757
|
+
const it = (l) => (jt((A, t) => Wt(EA, A, t)), $ = hA = l.sourceLocale, AA = new Set(l.targetLocales), AA.add(l.sourceLocale), SA = l.loadLocale, { getLocale: vt, setLocale: Ot }), vt = () => $, Ot = (l) => {
|
|
758
|
+
if (l === (qA ?? $))
|
|
759
759
|
return v.promise;
|
|
760
|
-
if (!
|
|
760
|
+
if (!AA || !SA)
|
|
761
761
|
throw new Error("Internal error");
|
|
762
|
-
if (!
|
|
762
|
+
if (!AA.has(l))
|
|
763
763
|
throw new Error("Invalid locale code");
|
|
764
|
-
|
|
765
|
-
const A =
|
|
766
|
-
return
|
|
764
|
+
Q++;
|
|
765
|
+
const A = Q;
|
|
766
|
+
return qA = l, v.settled && (v = new MA()), pA({ status: "loading", loadingLocale: l }), (l === hA ? (
|
|
767
767
|
// We could switch to the source locale synchronously, but we prefer to
|
|
768
768
|
// queue it on a microtask so that switching locales is consistently
|
|
769
769
|
// asynchronous.
|
|
770
770
|
Promise.resolve({ templates: void 0 })
|
|
771
|
-
) :
|
|
772
|
-
|
|
771
|
+
) : SA(l)).then((r) => {
|
|
772
|
+
Q === A && ($ = l, qA = void 0, EA = r.templates, pA({ status: "ready", readyLocale: l }), v.resolve());
|
|
773
773
|
}, (r) => {
|
|
774
|
-
|
|
774
|
+
Q === A && (pA({
|
|
775
775
|
status: "error",
|
|
776
776
|
errorLocale: l,
|
|
777
777
|
errorMessage: r.toString()
|
|
@@ -818,22 +818,22 @@ const Pt = ft(class extends ot {
|
|
|
818
818
|
update(l, [A]) {
|
|
819
819
|
var r, e;
|
|
820
820
|
if (this.st === void 0) {
|
|
821
|
-
this.st = /* @__PURE__ */ new Set(), l.strings !== void 0 && (this.nt = new Set(l.strings.join(" ").split(/\s/).filter((
|
|
822
|
-
for (const
|
|
821
|
+
this.st = /* @__PURE__ */ new Set(), l.strings !== void 0 && (this.nt = new Set(l.strings.join(" ").split(/\s/).filter((V) => V !== "")));
|
|
822
|
+
for (const V in A) A[V] && !((r = this.nt) != null && r.has(V)) && this.st.add(V);
|
|
823
823
|
return this.render(A);
|
|
824
824
|
}
|
|
825
825
|
const t = l.element.classList;
|
|
826
|
-
for (const
|
|
827
|
-
for (const
|
|
828
|
-
const
|
|
829
|
-
|
|
826
|
+
for (const V of this.st) V in A || (t.remove(V), this.st.delete(V));
|
|
827
|
+
for (const V in A) {
|
|
828
|
+
const p = !!A[V];
|
|
829
|
+
p === this.st.has(V) || (e = this.nt) != null && e.has(V) || (p ? (t.add(V), this.st.add(V)) : (t.remove(V), this.st.delete(V)));
|
|
830
830
|
}
|
|
831
831
|
return f;
|
|
832
832
|
}
|
|
833
833
|
});
|
|
834
834
|
var mt = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, C = (l, A, t, r) => {
|
|
835
|
-
for (var e = r > 1 ? void 0 : r ? Zt(A, t) : A,
|
|
836
|
-
(
|
|
835
|
+
for (var e = r > 1 ? void 0 : r ? Zt(A, t) : A, V = l.length - 1, p; V >= 0; V--)
|
|
836
|
+
(p = l[V]) && (e = (r ? p(A, t, e) : p(e)) || e);
|
|
837
837
|
return r && e && mt(A, t, e), e;
|
|
838
838
|
};
|
|
839
839
|
let o = class extends X {
|
|
@@ -855,7 +855,7 @@ let o = class extends X {
|
|
|
855
855
|
`;
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
|
-
o.styles =
|
|
858
|
+
o.styles = Z`
|
|
859
859
|
:host {
|
|
860
860
|
display: block;
|
|
861
861
|
width: 100%;
|
|
@@ -928,26 +928,26 @@ o.styles = N`
|
|
|
928
928
|
}
|
|
929
929
|
`;
|
|
930
930
|
C([
|
|
931
|
-
|
|
931
|
+
c({ type: String })
|
|
932
932
|
], o.prototype, "type", 2);
|
|
933
933
|
C([
|
|
934
|
-
|
|
934
|
+
c({ type: String })
|
|
935
935
|
], o.prototype, "label", 2);
|
|
936
936
|
C([
|
|
937
|
-
|
|
937
|
+
c({ type: Boolean })
|
|
938
938
|
], o.prototype, "disabled", 2);
|
|
939
939
|
C([
|
|
940
|
-
|
|
940
|
+
c({ type: String })
|
|
941
941
|
], o.prototype, "variant", 2);
|
|
942
942
|
o = C([
|
|
943
|
-
|
|
943
|
+
N("xact-button")
|
|
944
944
|
], o);
|
|
945
|
-
var Nt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor,
|
|
946
|
-
for (var e = r > 1 ? void 0 : r ? Rt(A, t) : A,
|
|
947
|
-
(
|
|
945
|
+
var Nt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, cA = (l, A, t, r) => {
|
|
946
|
+
for (var e = r > 1 ? void 0 : r ? Rt(A, t) : A, V = l.length - 1, p; V >= 0; V--)
|
|
947
|
+
(p = l[V]) && (e = (r ? p(A, t, e) : p(e)) || e);
|
|
948
948
|
return r && e && Nt(A, t, e), e;
|
|
949
949
|
};
|
|
950
|
-
let
|
|
950
|
+
let h = class extends X {
|
|
951
951
|
constructor() {
|
|
952
952
|
super(...arguments), this.height = 0;
|
|
953
953
|
}
|
|
@@ -982,7 +982,7 @@ let E = class extends X {
|
|
|
982
982
|
`;
|
|
983
983
|
}
|
|
984
984
|
};
|
|
985
|
-
|
|
985
|
+
h.styles = Z`
|
|
986
986
|
:host {
|
|
987
987
|
display: block;
|
|
988
988
|
font-family: "Lato", sans-serif;
|
|
@@ -1067,22 +1067,22 @@ E.styles = N`
|
|
|
1067
1067
|
color: inherit;
|
|
1068
1068
|
}
|
|
1069
1069
|
`;
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
],
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
],
|
|
1076
|
-
|
|
1077
|
-
|
|
1070
|
+
cA([
|
|
1071
|
+
c({ type: Number })
|
|
1072
|
+
], h.prototype, "height", 2);
|
|
1073
|
+
cA([
|
|
1074
|
+
c({ type: Function })
|
|
1075
|
+
], h.prototype, "onStartMeasurement", 2);
|
|
1076
|
+
h = cA([
|
|
1077
|
+
N("xact-step-one"),
|
|
1078
1078
|
Y()
|
|
1079
|
-
],
|
|
1079
|
+
], h);
|
|
1080
1080
|
var Ht = Object.getOwnPropertyDescriptor, zt = (l, A, t, r) => {
|
|
1081
|
-
for (var e = r > 1 ? void 0 : r ? Ht(A, t) : A,
|
|
1082
|
-
(
|
|
1081
|
+
for (var e = r > 1 ? void 0 : r ? Ht(A, t) : A, V = l.length - 1, p; V >= 0; V--)
|
|
1082
|
+
(p = l[V]) && (e = p(e) || e);
|
|
1083
1083
|
return e;
|
|
1084
1084
|
};
|
|
1085
|
-
let
|
|
1085
|
+
let aA = class extends X {
|
|
1086
1086
|
render() {
|
|
1087
1087
|
return T`
|
|
1088
1088
|
<footer class="modal-footer">
|
|
@@ -1130,7 +1130,7 @@ let yA = class extends X {
|
|
|
1130
1130
|
`;
|
|
1131
1131
|
}
|
|
1132
1132
|
};
|
|
1133
|
-
|
|
1133
|
+
aA.styles = Z`
|
|
1134
1134
|
.modal-footer {
|
|
1135
1135
|
text-align: center;
|
|
1136
1136
|
font-size: 12px;
|
|
@@ -1167,16 +1167,16 @@ yA.styles = N`
|
|
|
1167
1167
|
outline-offset: 2px;
|
|
1168
1168
|
}
|
|
1169
1169
|
`;
|
|
1170
|
-
|
|
1171
|
-
|
|
1170
|
+
aA = zt([
|
|
1171
|
+
N("xact-footer"),
|
|
1172
1172
|
Y()
|
|
1173
|
-
],
|
|
1174
|
-
var Gt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor,
|
|
1175
|
-
for (var e = r > 1 ? void 0 : r ? Ft(A, t) : A,
|
|
1176
|
-
(
|
|
1173
|
+
], aA);
|
|
1174
|
+
var Gt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, kA = (l, A, t, r) => {
|
|
1175
|
+
for (var e = r > 1 ? void 0 : r ? Ft(A, t) : A, V = l.length - 1, p; V >= 0; V--)
|
|
1176
|
+
(p = l[V]) && (e = (r ? p(A, t, e) : p(e)) || e);
|
|
1177
1177
|
return r && e && Gt(A, t, e), e;
|
|
1178
1178
|
};
|
|
1179
|
-
let
|
|
1179
|
+
let E = class extends X {
|
|
1180
1180
|
constructor() {
|
|
1181
1181
|
super(...arguments), this.productName = "", this.recommendedSize = "";
|
|
1182
1182
|
}
|
|
@@ -1213,7 +1213,7 @@ let P = class extends X {
|
|
|
1213
1213
|
|
|
1214
1214
|
<!-- Texto centralizado -->
|
|
1215
1215
|
<text x="50%" y="55%" dominant-baseline="middle" text-anchor="middle" fill="white" font-size="20" font-weight="bold">
|
|
1216
|
-
${this.recommendedSize}
|
|
1216
|
+
-> ${this.recommendedSize} <-
|
|
1217
1217
|
</text>
|
|
1218
1218
|
</svg>
|
|
1219
1219
|
</div>
|
|
@@ -1240,7 +1240,7 @@ let P = class extends X {
|
|
|
1240
1240
|
`;
|
|
1241
1241
|
}
|
|
1242
1242
|
};
|
|
1243
|
-
|
|
1243
|
+
E.styles = Z`
|
|
1244
1244
|
:host {
|
|
1245
1245
|
display: flex;
|
|
1246
1246
|
flex-direction: column;
|
|
@@ -1315,25 +1315,19 @@ P.styles = N`
|
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
1317
|
`;
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
],
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
],
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
], P.prototype, "onAccept", 2);
|
|
1327
|
-
D([
|
|
1328
|
-
j({ type: Function })
|
|
1329
|
-
], P.prototype, "onRetry", 2);
|
|
1330
|
-
P = D([
|
|
1331
|
-
R("xact-step-result"),
|
|
1318
|
+
kA([
|
|
1319
|
+
c({ type: String })
|
|
1320
|
+
], E.prototype, "productName", 2);
|
|
1321
|
+
kA([
|
|
1322
|
+
c({ type: String })
|
|
1323
|
+
], E.prototype, "recommendedSize", 2);
|
|
1324
|
+
E = kA([
|
|
1325
|
+
N("xact-step-result"),
|
|
1332
1326
|
Y()
|
|
1333
|
-
],
|
|
1327
|
+
], E);
|
|
1334
1328
|
var Mt = Object.defineProperty, ht = Object.getOwnPropertyDescriptor, JA = (l, A, t, r) => {
|
|
1335
|
-
for (var e = r > 1 ? void 0 : r ? ht(A, t) : A,
|
|
1336
|
-
(
|
|
1329
|
+
for (var e = r > 1 ? void 0 : r ? ht(A, t) : A, V = l.length - 1, p; V >= 0; V--)
|
|
1330
|
+
(p = l[V]) && (e = (r ? p(A, t, e) : p(e)) || e);
|
|
1337
1331
|
return r && e && Mt(A, t, e), e;
|
|
1338
1332
|
};
|
|
1339
1333
|
let I = class extends X {
|
|
@@ -1485,7 +1479,7 @@ let I = class extends X {
|
|
|
1485
1479
|
`;
|
|
1486
1480
|
}
|
|
1487
1481
|
};
|
|
1488
|
-
I.styles =
|
|
1482
|
+
I.styles = Z`
|
|
1489
1483
|
:host {
|
|
1490
1484
|
display: flex;
|
|
1491
1485
|
justify-content: center;
|
|
@@ -1627,19 +1621,19 @@ I.styles = N`
|
|
|
1627
1621
|
|
|
1628
1622
|
`;
|
|
1629
1623
|
JA([
|
|
1630
|
-
|
|
1624
|
+
c({ type: Number })
|
|
1631
1625
|
], I.prototype, "height", 2);
|
|
1632
1626
|
JA([
|
|
1633
|
-
|
|
1627
|
+
c({ type: Function })
|
|
1634
1628
|
], I.prototype, "onStep2advancement", 2);
|
|
1635
1629
|
I = JA([
|
|
1636
|
-
|
|
1630
|
+
N("xact-step-informs"),
|
|
1637
1631
|
Y()
|
|
1638
1632
|
], I);
|
|
1639
1633
|
const oA = "data:image/svg+xml,%3csvg%20width='22'%20height='40'%20viewBox='0%200%2022%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21.517%200L0%2013.3362V0H21.517Z'%20fill='white'/%3e%3cpath%20d='M21.517%2013.339L0%2026.6724V13.3362H21.517V13.339Z'%20fill='white'/%3e%3cpath%20d='M21.517%2026.6755L0%2040.0089V26.6726H21.517V26.6755Z'%20fill='%231C28BA'/%3e%3c/svg%3e", Et = "data:image/svg+xml,%3csvg%20width='22'%20height='41'%20viewBox='0%200%2022%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21.517%200.00878906L0%2013.345V0.00878906H21.517Z'%20fill='white'/%3e%3cpath%20d='M21.517%2013.3478L0%2026.6812V13.345H21.517V13.3478Z'%20fill='%231C28BA'/%3e%3cpath%20d='M21.517%2026.6843L0%2040.0176V26.6814H21.517V26.6843Z'%20fill='white'/%3e%3c/svg%3e", It = "data:image/svg+xml,%3csvg%20width='22'%20height='41'%20viewBox='0%200%2022%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21.517%200.0204381L0%2013.3538V0.0175781H21.517V0.0204381Z'%20fill='%231C28BA'/%3e%3cpath%20d='M21.517%2013.3538L0%2026.69V13.3538H21.517Z'%20fill='white'/%3e%3cpath%20d='M21.517%2026.693L0%2040.0264V26.6902H21.517V26.693Z'%20fill='white'/%3e%3c/svg%3e";
|
|
1640
1634
|
var wt = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, u = (l, A, t, r) => {
|
|
1641
|
-
for (var e = r > 1 ? void 0 : r ? Yt(A, t) : A,
|
|
1642
|
-
(
|
|
1635
|
+
for (var e = r > 1 ? void 0 : r ? Yt(A, t) : A, V = l.length - 1, p; V >= 0; V--)
|
|
1636
|
+
(p = l[V]) && (e = (r ? p(A, t, e) : p(e)) || e);
|
|
1643
1637
|
return r && e && wt(A, t, e), e;
|
|
1644
1638
|
};
|
|
1645
1639
|
const { getLocale: gt, setLocale: PA } = it({
|
|
@@ -1788,14 +1782,14 @@ let a = class extends X {
|
|
|
1788
1782
|
const t = A.getContext("2d");
|
|
1789
1783
|
t == null || t.drawImage(this.videoElement, 0, 0, A.width, A.height);
|
|
1790
1784
|
const r = await new Promise(
|
|
1791
|
-
(
|
|
1792
|
-
), e = new File([r], "frame.jpg", { type: "image/jpeg" }),
|
|
1793
|
-
|
|
1785
|
+
(p) => A.toBlob((S) => p(S), "image/jpeg")
|
|
1786
|
+
), e = new File([r], "frame.jpg", { type: "image/jpeg" }), V = new FormData();
|
|
1787
|
+
V.append("image", e), V.append("height", this.height.toString()), V.append("product_sku", this.productSku), this.measurerKey && V.append("measurerKey", this.measurerKey);
|
|
1794
1788
|
try {
|
|
1795
1789
|
this.isFetching = !0, this.isLoading = !0, this.poolingTimeout !== null && (clearTimeout(this.poolingTimeout), this.poolingTimeout = null), this.instructionMessageTimeout !== null && (clearTimeout(this.instructionMessageTimeout), this.instructionMessageTimeout = null);
|
|
1796
1790
|
const S = await (await fetch(this.apiUrl, {
|
|
1797
1791
|
method: "POST",
|
|
1798
|
-
body:
|
|
1792
|
+
body: V,
|
|
1799
1793
|
headers: {
|
|
1800
1794
|
Accept: "application/json",
|
|
1801
1795
|
"Cache-Control": "no-store",
|
|
@@ -1895,7 +1889,7 @@ let a = class extends X {
|
|
|
1895
1889
|
`;
|
|
1896
1890
|
}
|
|
1897
1891
|
};
|
|
1898
|
-
a.styles =
|
|
1892
|
+
a.styles = Z`
|
|
1899
1893
|
:host {
|
|
1900
1894
|
display: block;
|
|
1901
1895
|
font-family: Arial, sans-serif;
|
|
@@ -2323,25 +2317,25 @@ a.styles = N`
|
|
|
2323
2317
|
|
|
2324
2318
|
`;
|
|
2325
2319
|
u([
|
|
2326
|
-
|
|
2320
|
+
c({ type: String, attribute: "api-key" })
|
|
2327
2321
|
], a.prototype, "apiKey", 2);
|
|
2328
2322
|
u([
|
|
2329
|
-
|
|
2323
|
+
c({ type: String, attribute: "tenant-id" })
|
|
2330
2324
|
], a.prototype, "tenantId", 2);
|
|
2331
2325
|
u([
|
|
2332
|
-
|
|
2326
|
+
c({ type: String, attribute: "product-sku" })
|
|
2333
2327
|
], a.prototype, "productSku", 2);
|
|
2334
2328
|
u([
|
|
2335
|
-
|
|
2329
|
+
c({ type: String, attribute: "api-url" })
|
|
2336
2330
|
], a.prototype, "apiUrl", 2);
|
|
2337
2331
|
u([
|
|
2338
|
-
|
|
2332
|
+
c({ type: Function, attribute: "onmeasurementaccepted" })
|
|
2339
2333
|
], a.prototype, "onMeasurementAccepted", 2);
|
|
2340
2334
|
u([
|
|
2341
|
-
|
|
2335
|
+
c({ type: Function, attribute: "onmeasurementcanceled" })
|
|
2342
2336
|
], a.prototype, "onMeasurementCanceled", 2);
|
|
2343
2337
|
u([
|
|
2344
|
-
|
|
2338
|
+
c({ type: String })
|
|
2345
2339
|
], a.prototype, "culture", 1);
|
|
2346
2340
|
u([
|
|
2347
2341
|
J()
|
|
@@ -2389,7 +2383,7 @@ u([
|
|
|
2389
2383
|
J()
|
|
2390
2384
|
], a.prototype, "currentCameraId", 2);
|
|
2391
2385
|
a = u([
|
|
2392
|
-
|
|
2386
|
+
N("body-measurer"),
|
|
2393
2387
|
Y()
|
|
2394
2388
|
], a);
|
|
2395
2389
|
export {
|