xactsize-webcomponents 1.0.23 → 1.0.25
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 +148 -127
- package/dist/body-measurer.umd.js +104 -83
- package/package.json +1 -1
package/dist/body-measurer.es.js
CHANGED
|
@@ -16,7 +16,7 @@ const wA = (l, A, t) => {
|
|
|
16
16
|
* Copyright 2019 Google LLC
|
|
17
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
18
|
*/
|
|
19
|
-
const B = globalThis,
|
|
19
|
+
const B = globalThis, yA = B.ShadowRoot && (B.ShadyCSS === void 0 || B.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
22
|
if (this._$cssResult$ = !0, r !== uA) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -25,7 +25,7 @@ let ZA = class {
|
|
|
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
|
}
|
|
@@ -43,12 +43,12 @@ const CA = (l) => new ZA(typeof l == "string" ? l : l + "", void 0, uA), N = (l,
|
|
|
43
43
|
})(e) + l[p + 1], l[0]);
|
|
44
44
|
return new ZA(t, l, uA);
|
|
45
45
|
}, YA = (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
48
|
const r = document.createElement("style"), e = B.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 CA(t);
|
|
@@ -307,10 +307,10 @@ const rt = (l, A) => {
|
|
|
307
307
|
let e, p = A === 2 ? "<svg>" : A === 3 ? "<math>" : "", V = H;
|
|
308
308
|
for (let S = 0; S < t; S++) {
|
|
309
309
|
const q = l[S];
|
|
310
|
-
let u, k,
|
|
311
|
-
for (; x < q.length && (V.lastIndex = x, k = V.exec(q), k !== null); ) x = V.lastIndex, V === H ? k[1] === "!--" ? V = KA : k[1] !== void 0 ? V = UA : k[2] !== void 0 ? (HA.test(k[2]) && (e = RegExp("</" + k[2], "g")), V = W) : k[3] !== void 0 && (V = W) : V === W ? k[0] === ">" ? (V = e ?? H,
|
|
310
|
+
let u, k, d = -1, x = 0;
|
|
311
|
+
for (; x < q.length && (V.lastIndex = x, k = V.exec(q), k !== null); ) x = V.lastIndex, V === H ? k[1] === "!--" ? V = KA : k[1] !== void 0 ? V = UA : k[2] !== void 0 ? (HA.test(k[2]) && (e = RegExp("</" + k[2], "g")), V = W) : k[3] !== void 0 && (V = W) : V === W ? k[0] === ">" ? (V = e ?? H, d = -1) : k[1] === void 0 ? d = -2 : (d = V.lastIndex - k[2].length, u = k[1], V = k[3] === void 0 ? W : k[3] === '"' ? vA : WA) : V === vA || V === WA ? V = W : V === KA || V === UA ? V = H : (V = W, e = void 0);
|
|
312
312
|
const s = V === W && l[S + 1].startsWith("/>") ? " " : "";
|
|
313
|
-
p += V === H ? q + tt :
|
|
313
|
+
p += V === H ? q + tt : d >= 0 ? (r.push(u), q.slice(0, d) + NA + q.slice(d) + K + s) : q + K + (d === -2 ? S : s);
|
|
314
314
|
}
|
|
315
315
|
return [zA(l, p + (l[t] || "<?>") + (A === 2 ? "</svg>" : A === 3 ? "</math>" : "")), r];
|
|
316
316
|
};
|
|
@@ -321,27 +321,27 @@ class h {
|
|
|
321
321
|
let p = 0, V = 0;
|
|
322
322
|
const S = A.length - 1, q = this.parts, [u, k] = rt(A, t);
|
|
323
323
|
if (this.el = h.createElement(u, r), O.currentNode = this.el.content, t === 2 || t === 3) {
|
|
324
|
-
const
|
|
325
|
-
|
|
324
|
+
const d = this.el.content.firstChild;
|
|
325
|
+
d.replaceWith(...d.childNodes);
|
|
326
326
|
}
|
|
327
327
|
for (; (e = O.nextNode()) !== null && q.length < S; ) {
|
|
328
328
|
if (e.nodeType === 1) {
|
|
329
|
-
if (e.hasAttributes()) for (const
|
|
330
|
-
const x = k[V++], s = e.getAttribute(
|
|
331
|
-
q.push({ type: 1, index: p, name: Q[2], strings: s, ctor: Q[1] === "." ? Vt : Q[1] === "?" ? nt : Q[1] === "@" ? qt : lA }), e.removeAttribute(
|
|
332
|
-
} else
|
|
329
|
+
if (e.hasAttributes()) for (const d of e.getAttributeNames()) if (d.endsWith(NA)) {
|
|
330
|
+
const x = k[V++], s = e.getAttribute(d).split(K), Q = /([.?@])?(.*)/.exec(x);
|
|
331
|
+
q.push({ type: 1, index: p, name: Q[2], strings: s, ctor: Q[1] === "." ? Vt : Q[1] === "?" ? nt : Q[1] === "@" ? qt : lA }), e.removeAttribute(d);
|
|
332
|
+
} else d.startsWith(K) && (q.push({ type: 6, index: p }), e.removeAttribute(d));
|
|
333
333
|
if (HA.test(e.tagName)) {
|
|
334
|
-
const
|
|
334
|
+
const d = e.textContent.split(K), x = d.length - 1;
|
|
335
335
|
if (x > 0) {
|
|
336
336
|
e.textContent = $ ? $.emptyScript : "";
|
|
337
|
-
for (let s = 0; s < x; s++) e.append(
|
|
338
|
-
e.append(
|
|
337
|
+
for (let s = 0; s < x; s++) e.append(d[s], F()), O.nextNode(), q.push({ type: 2, index: ++p });
|
|
338
|
+
e.append(d[x], F());
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
} else if (e.nodeType === 8) if (e.data === RA) q.push({ type: 2, index: p });
|
|
342
342
|
else {
|
|
343
|
-
let
|
|
344
|
-
for (; (
|
|
343
|
+
let d = -1;
|
|
344
|
+
for (; (d = e.data.indexOf(K, d + 1)) !== -1; ) q.push({ type: 7, index: p }), d += K.length - 1;
|
|
345
345
|
}
|
|
346
346
|
p++;
|
|
347
347
|
}
|
|
@@ -577,7 +577,7 @@ const R = (l) => (A, t) => {
|
|
|
577
577
|
* Copyright 2017 Google LLC
|
|
578
578
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
579
579
|
*/
|
|
580
|
-
const
|
|
580
|
+
const dt = { attribute: !0, type: String, converter: _, reflect: !1, hasChanged: jA }, yt = (l = dt, A, t) => {
|
|
581
581
|
const { kind: r, metadata: e } = t;
|
|
582
582
|
let p = globalThis.litPropertyMetadata.get(e);
|
|
583
583
|
if (p === void 0 && globalThis.litPropertyMetadata.set(e, p = /* @__PURE__ */ new Map()), r === "setter" && ((l = Object.create(l)).wrapped = !0), p.set(t.name, l), r === "accessor") {
|
|
@@ -599,7 +599,7 @@ const yt = { attribute: !0, type: String, converter: _, reflect: !1, hasChanged:
|
|
|
599
599
|
throw Error("Unsupported decorator location: " + r);
|
|
600
600
|
};
|
|
601
601
|
function j(l) {
|
|
602
|
-
return (A, t) => typeof t == "object" ?
|
|
602
|
+
return (A, t) => typeof t == "object" ? yt(l, A, t) : ((r, e, p) => {
|
|
603
603
|
const V = e.hasOwnProperty(p);
|
|
604
604
|
return e.constructor.createProperty(p, r), V ? Object.getOwnPropertyDescriptor(e, p) : void 0;
|
|
605
605
|
})(l, A, t);
|
|
@@ -1201,104 +1201,125 @@ E.styles = N`
|
|
|
1201
1201
|
margin: 0 auto;
|
|
1202
1202
|
}
|
|
1203
1203
|
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1204
|
+
/* Ajuste da responsividade para mobile */
|
|
1205
|
+
@media (max-width: 754px) {
|
|
1206
|
+
.main-section {
|
|
1207
|
+
flex-direction: column;
|
|
1208
|
+
gap: 5px; /* menor gap */
|
|
1209
|
+
align-items: center;
|
|
1210
|
+
}
|
|
1210
1211
|
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1212
|
+
.images-section {
|
|
1213
|
+
order: -1;
|
|
1214
|
+
width: 100%;
|
|
1215
|
+
}
|
|
1215
1216
|
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1217
|
+
.images-section svg {
|
|
1218
|
+
width: 80%; /* reduzir para não quebrar botão */
|
|
1219
|
+
max-width: 180px; /* altura menor */
|
|
1220
|
+
height: auto;
|
|
1221
|
+
}
|
|
1221
1222
|
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1223
|
+
.tips-section {
|
|
1224
|
+
width: 100%;
|
|
1225
|
+
gap: 6px;
|
|
1226
|
+
align-items: flex-start; /* alinhar à esquerda */
|
|
1227
|
+
}
|
|
1227
1228
|
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1229
|
+
form {
|
|
1230
|
+
align-items: flex-start; /* alinhar labels e inputs à esquerda */
|
|
1231
|
+
width: 100%;
|
|
1232
|
+
}
|
|
1232
1233
|
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1234
|
+
input {
|
|
1235
|
+
max-width: 100%;
|
|
1236
|
+
font-size: 14px;
|
|
1237
|
+
padding: 10px;
|
|
1238
|
+
}
|
|
1238
1239
|
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1240
|
+
label {
|
|
1241
|
+
text-align: left;
|
|
1242
|
+
font-size: 14px;
|
|
1243
|
+
}
|
|
1243
1244
|
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1245
|
+
.xact-button {
|
|
1246
|
+
max-width: 100%;
|
|
1247
|
+
}
|
|
1247
1248
|
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1249
|
+
.header-text {
|
|
1250
|
+
font-size: 20px;
|
|
1251
|
+
text-align: center;
|
|
1252
|
+
}
|
|
1252
1253
|
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1254
|
+
.description-text {
|
|
1255
|
+
font-size: 14px;
|
|
1256
|
+
text-align: center;
|
|
1257
|
+
}
|
|
1257
1258
|
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1259
|
+
.tip-title {
|
|
1260
|
+
font-size: 12px;
|
|
1261
|
+
text-align: left;
|
|
1262
|
+
}
|
|
1261
1263
|
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1264
|
+
.tip-text {
|
|
1265
|
+
font-size: 11px;
|
|
1266
|
+
text-align: left;
|
|
1267
|
+
margin-left: 0; /* remove centralização */
|
|
1268
|
+
}
|
|
1265
1269
|
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
max-width: 100%;
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1270
|
+
.tip-item {
|
|
1271
|
+
margin-bottom: 6px;
|
|
1272
|
+
}
|
|
1272
1273
|
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1274
|
+
.buttons {
|
|
1275
|
+
gap: 8px;
|
|
1276
|
+
width: 100%;
|
|
1277
|
+
max-width: 100%;
|
|
1278
|
+
margin-top: 12px;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1278
1281
|
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
+
/* Ajuste fino para iPhones muito pequenos */
|
|
1283
|
+
@media (max-width: 380px) {
|
|
1284
|
+
:host {
|
|
1285
|
+
padding: 12px;
|
|
1286
|
+
}
|
|
1282
1287
|
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1288
|
+
.images-section svg {
|
|
1289
|
+
max-width: 150px;
|
|
1290
|
+
}
|
|
1286
1291
|
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1292
|
+
.header-text {
|
|
1293
|
+
font-size: 18px;
|
|
1294
|
+
}
|
|
1290
1295
|
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
}
|
|
1296
|
+
.description-text {
|
|
1297
|
+
font-size: 13px;
|
|
1298
|
+
}
|
|
1295
1299
|
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1300
|
+
.tip-title {
|
|
1301
|
+
font-size: 11px;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
.tip-text {
|
|
1305
|
+
font-size: 10px;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
.tip-item {
|
|
1309
|
+
margin-bottom: 4px;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
.xact-button {
|
|
1313
|
+
padding: 8px;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
.buttons {
|
|
1317
|
+
gap: 6px;
|
|
1318
|
+
}
|
|
1301
1319
|
}
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
|
|
1302
1323
|
`;
|
|
1303
1324
|
kA([
|
|
1304
1325
|
j({ type: Number })
|
|
@@ -1315,7 +1336,7 @@ var Ht = Object.getOwnPropertyDescriptor, zt = (l, A, t, r) => {
|
|
|
1315
1336
|
(V = l[p]) && (e = V(e) || e);
|
|
1316
1337
|
return e;
|
|
1317
1338
|
};
|
|
1318
|
-
let
|
|
1339
|
+
let dA = class extends X {
|
|
1319
1340
|
render() {
|
|
1320
1341
|
return T`
|
|
1321
1342
|
<footer class="modal-footer">
|
|
@@ -1363,7 +1384,7 @@ let yA = class extends X {
|
|
|
1363
1384
|
`;
|
|
1364
1385
|
}
|
|
1365
1386
|
};
|
|
1366
|
-
|
|
1387
|
+
dA.styles = N`
|
|
1367
1388
|
.modal-footer {
|
|
1368
1389
|
text-align: center;
|
|
1369
1390
|
font-size: 12px;
|
|
@@ -1400,10 +1421,10 @@ yA.styles = N`
|
|
|
1400
1421
|
outline-offset: 2px;
|
|
1401
1422
|
}
|
|
1402
1423
|
`;
|
|
1403
|
-
|
|
1424
|
+
dA = zt([
|
|
1404
1425
|
R("xact-footer"),
|
|
1405
1426
|
C()
|
|
1406
|
-
],
|
|
1427
|
+
], dA);
|
|
1407
1428
|
var Gt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, D = (l, A, t, r) => {
|
|
1408
1429
|
for (var e = r > 1 ? void 0 : r ? Ft(A, t) : A, p = l.length - 1, V; p >= 0; p--)
|
|
1409
1430
|
(V = l[p]) && (e = (r ? V(A, t, e) : V(e)) || e);
|
|
@@ -1870,7 +1891,7 @@ I = JA([
|
|
|
1870
1891
|
C()
|
|
1871
1892
|
], I);
|
|
1872
1893
|
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";
|
|
1873
|
-
var wt = Object.defineProperty, Ct = Object.getOwnPropertyDescriptor,
|
|
1894
|
+
var wt = Object.defineProperty, Ct = Object.getOwnPropertyDescriptor, y = (l, A, t, r) => {
|
|
1874
1895
|
for (var e = r > 1 ? void 0 : r ? Ct(A, t) : A, p = l.length - 1, V; p >= 0; p--)
|
|
1875
1896
|
(V = l[p]) && (e = (r ? V(A, t, e) : V(e)) || e);
|
|
1876
1897
|
return r && e && wt(A, t, e), e;
|
|
@@ -2556,73 +2577,73 @@ a.styles = N`
|
|
|
2556
2577
|
|
|
2557
2578
|
|
|
2558
2579
|
`;
|
|
2559
|
-
|
|
2580
|
+
y([
|
|
2560
2581
|
j({ type: String, attribute: "api-key" })
|
|
2561
2582
|
], a.prototype, "apiKey", 2);
|
|
2562
|
-
|
|
2583
|
+
y([
|
|
2563
2584
|
j({ type: String, attribute: "tenant-id" })
|
|
2564
2585
|
], a.prototype, "tenantId", 2);
|
|
2565
|
-
|
|
2586
|
+
y([
|
|
2566
2587
|
j({ type: String, attribute: "product-sku" })
|
|
2567
2588
|
], a.prototype, "productSku", 2);
|
|
2568
|
-
|
|
2589
|
+
y([
|
|
2569
2590
|
j({ type: String, attribute: "api-url" })
|
|
2570
2591
|
], a.prototype, "apiUrl", 2);
|
|
2571
|
-
|
|
2592
|
+
y([
|
|
2572
2593
|
j({ type: Function, attribute: "onmeasurementaccepted" })
|
|
2573
2594
|
], a.prototype, "onMeasurementAccepted", 2);
|
|
2574
|
-
|
|
2595
|
+
y([
|
|
2575
2596
|
j({ type: Function, attribute: "onmeasurementcanceled" })
|
|
2576
2597
|
], a.prototype, "onMeasurementCanceled", 2);
|
|
2577
|
-
|
|
2598
|
+
y([
|
|
2578
2599
|
j({ type: String })
|
|
2579
2600
|
], a.prototype, "culture", 1);
|
|
2580
|
-
|
|
2601
|
+
y([
|
|
2581
2602
|
J()
|
|
2582
2603
|
], a.prototype, "errorMap", 1);
|
|
2583
|
-
|
|
2604
|
+
y([
|
|
2584
2605
|
J()
|
|
2585
2606
|
], a.prototype, "measurerKey", 2);
|
|
2586
|
-
|
|
2607
|
+
y([
|
|
2587
2608
|
J()
|
|
2588
2609
|
], a.prototype, "_isLocaleLoading", 2);
|
|
2589
|
-
|
|
2610
|
+
y([
|
|
2590
2611
|
J()
|
|
2591
2612
|
], a.prototype, "showModal", 2);
|
|
2592
|
-
|
|
2613
|
+
y([
|
|
2593
2614
|
J()
|
|
2594
2615
|
], a.prototype, "step", 2);
|
|
2595
|
-
|
|
2616
|
+
y([
|
|
2596
2617
|
J()
|
|
2597
2618
|
], a.prototype, "height", 2);
|
|
2598
|
-
|
|
2619
|
+
y([
|
|
2599
2620
|
J()
|
|
2600
2621
|
], a.prototype, "recommendedSize", 2);
|
|
2601
|
-
|
|
2622
|
+
y([
|
|
2602
2623
|
J()
|
|
2603
2624
|
], a.prototype, "measurements", 2);
|
|
2604
|
-
|
|
2625
|
+
y([
|
|
2605
2626
|
J()
|
|
2606
2627
|
], a.prototype, "errorMessage", 2);
|
|
2607
|
-
|
|
2628
|
+
y([
|
|
2608
2629
|
J()
|
|
2609
2630
|
], a.prototype, "instructionMessage", 2);
|
|
2610
|
-
|
|
2631
|
+
y([
|
|
2611
2632
|
J()
|
|
2612
2633
|
], a.prototype, "shouldStartMeasurement", 2);
|
|
2613
|
-
|
|
2634
|
+
y([
|
|
2614
2635
|
J()
|
|
2615
2636
|
], a.prototype, "isLoading", 2);
|
|
2616
|
-
|
|
2637
|
+
y([
|
|
2617
2638
|
J()
|
|
2618
2639
|
], a.prototype, "isFetching", 2);
|
|
2619
|
-
|
|
2640
|
+
y([
|
|
2620
2641
|
J()
|
|
2621
2642
|
], a.prototype, "cameras", 2);
|
|
2622
|
-
|
|
2643
|
+
y([
|
|
2623
2644
|
J()
|
|
2624
2645
|
], a.prototype, "currentCameraId", 2);
|
|
2625
|
-
a =
|
|
2646
|
+
a = y([
|
|
2626
2647
|
R("body-measurer"),
|
|
2627
2648
|
C()
|
|
2628
2649
|
], a);
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const G=globalThis,_=G.trustedTypes,
|
|
14
|
-
\f\r]`,h=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,bA=/-->/g,oA=/>/g,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),LA=/'/g,fA=/"/g,PA=/^(?:script|style|textarea|title)$/i,et=r=>(A,...t)=>({_$litType$:r,strings:A,values:t}),J=et(1),W=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),mA=new WeakMap,b=
|
|
13
|
+
*/const G=globalThis,_=G.trustedTypes,vA=_?_.createPolicy("lit-html",{createHTML:r=>r}):void 0,OA="$lit$",K=`lit$${Math.random().toFixed(9).slice(2)}$`,WA="?"+K,tt=`<${WA}>`,v=document,F=()=>v.createComment(""),M=r=>r===null||typeof r!="object"&&typeof r!="function",qA=Array.isArray,lt=r=>qA(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",SA=`[
|
|
14
|
+
\f\r]`,h=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,bA=/-->/g,oA=/>/g,O=RegExp(`>|${SA}(?:([^\\s"'>=/]+)(${SA}*=${SA}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),LA=/'/g,fA=/"/g,PA=/^(?:script|style|textarea|title)$/i,et=r=>(A,...t)=>({_$litType$:r,strings:A,values:t}),J=et(1),W=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),mA=new WeakMap,b=v.createTreeWalker(v,129);function ZA(r,A){if(!qA(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return vA!==void 0?vA.createHTML(A):A}const rt=(r,A)=>{const t=r.length-1,l=[];let e,p=A===2?"<svg>":A===3?"<math>":"",n=h;for(let S=0;S<t;S++){const q=r[S];let y,k,d=-1,i=0;for(;i<q.length&&(n.lastIndex=i,k=n.exec(q),k!==null);)i=n.lastIndex,n===h?k[1]==="!--"?n=bA:k[1]!==void 0?n=oA:k[2]!==void 0?(PA.test(k[2])&&(e=RegExp("</"+k[2],"g")),n=O):k[3]!==void 0&&(n=O):n===O?k[0]===">"?(n=e??h,d=-1):k[1]===void 0?d=-2:(d=n.lastIndex-k[2].length,y=k[1],n=k[3]===void 0?O:k[3]==='"'?fA:LA):n===fA||n===LA?n=O:n===bA||n===oA?n=h:(n=O,e=void 0);const U=n===O&&r[S+1].startsWith("/>")?" ":"";p+=n===h?q+tt:d>=0?(l.push(y),q.slice(0,d)+OA+q.slice(d)+K+U):q+K+(d===-2?S:U)}return[ZA(r,p+(r[t]||"<?>")+(A===2?"</svg>":A===3?"</math>":"")),l]};class E{constructor({strings:A,_$litType$:t},l){let e;this.parts=[];let p=0,n=0;const S=A.length-1,q=this.parts,[y,k]=rt(A,t);if(this.el=E.createElement(y,l),b.currentNode=this.el.content,t===2||t===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(e=b.nextNode())!==null&&q.length<S;){if(e.nodeType===1){if(e.hasAttributes())for(const d of e.getAttributeNames())if(d.endsWith(OA)){const i=k[n++],U=e.getAttribute(d).split(K),eA=/([.?@])?(.*)/.exec(i);q.push({type:1,index:p,name:eA[2],strings:U,ctor:eA[1]==="."?nt:eA[1]==="?"?Vt:eA[1]==="@"?qt:$}),e.removeAttribute(d)}else d.startsWith(K)&&(q.push({type:6,index:p}),e.removeAttribute(d));if(PA.test(e.tagName)){const d=e.textContent.split(K),i=d.length-1;if(i>0){e.textContent=_?_.emptyScript:"";for(let U=0;U<i;U++)e.append(d[U],F()),b.nextNode(),q.push({type:2,index:++p});e.append(d[i],F())}}}else if(e.nodeType===8)if(e.data===WA)q.push({type:2,index:p});else{let d=-1;for(;(d=e.data.indexOf(K,d+1))!==-1;)q.push({type:7,index:p}),d+=K.length-1}p++}}static createElement(A,t){const l=v.createElement("template");return l.innerHTML=A,l}}function N(r,A,t=r,l){var n,S;if(A===W)return A;let e=l!==void 0?(n=t._$Co)==null?void 0:n[l]:t._$Cl;const p=M(A)?void 0:A._$litDirective$;return(e==null?void 0:e.constructor)!==p&&((S=e==null?void 0:e._$AO)==null||S.call(e,!1),p===void 0?e=void 0:(e=new p(r),e._$AT(r,t,l)),l!==void 0?(t._$Co??(t._$Co=[]))[l]=e:t._$Cl=e),e!==void 0&&(A=N(r,e._$AS(r,A.values),e,l)),A}class pt{constructor(A,t){this._$AV=[],this._$AN=void 0,this._$AD=A,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(A){const{el:{content:t},parts:l}=this._$AD,e=((A==null?void 0:A.creationScope)??v).importNode(t,!0);b.currentNode=e;let p=b.nextNode(),n=0,S=0,q=l[0];for(;q!==void 0;){if(n===q.index){let y;q.type===2?y=new I(p,p.nextSibling,this,A):q.type===1?y=new q.ctor(p,q.name,q.strings,this,A):q.type===6&&(y=new St(p,this,A)),this._$AV.push(y),q=l[++S]}n!==(q==null?void 0:q.index)&&(p=b.nextNode(),n++)}return b.currentNode=v,e}p(A){let t=0;for(const l of this._$AV)l!==void 0&&(l.strings!==void 0?(l._$AI(A,l,t),t+=l.strings.length-2):l._$AI(A[t])),t++}}class I{get _$AU(){var A;return((A=this._$AM)==null?void 0:A._$AU)??this._$Cv}constructor(A,t,l,e){this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=A,this._$AB=t,this._$AM=l,this.options=e,this._$Cv=(e==null?void 0:e.isConnected)??!0}get parentNode(){let A=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(A==null?void 0:A.nodeType)===11&&(A=t.parentNode),A}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(A,t=this){A=N(this,A,t),M(A)?A===j||A==null||A===""?(this._$AH!==j&&this._$AR(),this._$AH=j):A!==this._$AH&&A!==W&&this._(A):A._$litType$!==void 0?this.$(A):A.nodeType!==void 0?this.T(A):lt(A)?this.k(A):this._(A)}O(A){return this._$AA.parentNode.insertBefore(A,this._$AB)}T(A){this._$AH!==A&&(this._$AR(),this._$AH=this.O(A))}_(A){this._$AH!==j&&M(this._$AH)?this._$AA.nextSibling.data=A:this.T(v.createTextNode(A)),this._$AH=A}$(A){var p;const{values:t,_$litType$:l}=A,e=typeof l=="number"?this._$AC(A):(l.el===void 0&&(l.el=E.createElement(ZA(l.h,l.h[0]),this.options)),l);if(((p=this._$AH)==null?void 0:p._$AD)===e)this._$AH.p(t);else{const n=new pt(e,this),S=n.u(this.options);n.p(t),this.T(S),this._$AH=n}}_$AC(A){let t=mA.get(A.strings);return t===void 0&&mA.set(A.strings,t=new E(A)),t}k(A){qA(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let l,e=0;for(const p of A)e===t.length?t.push(l=new I(this.O(F()),this.O(F()),this,this.options)):l=t[e],l._$AI(p),e++;e<t.length&&(this._$AR(l&&l._$AB.nextSibling,e),t.length=e)}_$AR(A=this._$AA.nextSibling,t){var l;for((l=this._$AP)==null?void 0:l.call(this,!1,!0,t);A&&A!==this._$AB;){const e=A.nextSibling;A.remove(),A=e}}setConnected(A){var t;this._$AM===void 0&&(this._$Cv=A,(t=this._$AP)==null||t.call(this,A))}}class ${get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(A,t,l,e,p){this.type=1,this._$AH=j,this._$AN=void 0,this.element=A,this.name=t,this._$AM=e,this.options=p,l.length>2||l[0]!==""||l[1]!==""?(this._$AH=Array(l.length-1).fill(new String),this.strings=l):this._$AH=j}_$AI(A,t=this,l,e){const p=this.strings;let n=!1;if(p===void 0)A=N(this,A,t,0),n=!M(A)||A!==this._$AH&&A!==W,n&&(this._$AH=A);else{const S=A;let q,y;for(A=p[0],q=0;q<p.length-1;q++)y=N(this,S[l+q],t,q),y===W&&(y=this._$AH[q]),n||(n=!M(y)||y!==this._$AH[q]),y===j?A=j:A!==j&&(A+=(y??"")+p[q+1]),this._$AH[q]=y}n&&!e&&this.j(A)}j(A){A===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,A??"")}}class nt extends ${constructor(){super(...arguments),this.type=3}j(A){this.element[this.name]=A===j?void 0:A}}class Vt extends ${constructor(){super(...arguments),this.type=4}j(A){this.element.toggleAttribute(this.name,!!A&&A!==j)}}class qt extends ${constructor(A,t,l,e,p){super(A,t,l,e,p),this.type=5}_$AI(A,t=this){if((A=N(this,A,t,0)??j)===W)return;const l=this._$AH,e=A===j&&l!==j||A.capture!==l.capture||A.once!==l.once||A.passive!==l.passive,p=A!==j&&(l===j||e);e&&this.element.removeEventListener(this.name,this,l),p&&this.element.addEventListener(this.name,this,A),this._$AH=A}handleEvent(A){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,A):this._$AH.handleEvent(A)}}class St{constructor(A,t,l){this.element=A,this.type=6,this._$AN=void 0,this._$AM=t,this.options=l}get _$AU(){return this._$AM._$AU}_$AI(A){N(this,A)}}const aA=G.litHtmlPolyfillSupport;aA==null||aA(E,I),(G.litHtmlVersions??(G.litHtmlVersions=[])).push("3.3.0");const at=(r,A,t)=>{const l=(t==null?void 0:t.renderBefore)??A;let e=l._$litPart$;if(e===void 0){const p=(t==null?void 0:t.renderBefore)??null;l._$litPart$=e=new I(A.insertBefore(F(),p),p,void 0,t??{})}return e._$AI(r),e};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
* @license
|
|
69
69
|
* Copyright 2021 Google LLC
|
|
70
70
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
71
|
-
*/function yA(r){window.dispatchEvent(new CustomEvent(uA,{detail:r}))}let AA="",cA,MA,tA,jA,hA,L=new zA;L.resolve();let lA=0;const Ut=r=>(ct((A,t)=>xt(hA,A,t)),AA=MA=r.sourceLocale,tA=new Set(r.targetLocales),tA.add(r.sourceLocale),jA=r.loadLocale,{getLocale:
|
|
71
|
+
*/function yA(r){window.dispatchEvent(new CustomEvent(uA,{detail:r}))}let AA="",cA,MA,tA,jA,hA,L=new zA;L.resolve();let lA=0;const Ut=r=>(ct((A,t)=>xt(hA,A,t)),AA=MA=r.sourceLocale,tA=new Set(r.targetLocales),tA.add(r.sourceLocale),jA=r.loadLocale,{getLocale:vt,setLocale:Ot}),vt=()=>AA,Ot=r=>{if(r===(cA??AA))return L.promise;if(!tA||!jA)throw new Error("Internal error");if(!tA.has(r))throw new Error("Invalid locale code");lA++;const A=lA;return cA=r,L.settled&&(L=new zA),yA({status:"loading",loadingLocale:r}),(r===MA?Promise.resolve({templates:void 0}):jA(r)).then(l=>{lA===A&&(AA=r,cA=void 0,hA=l.templates,yA({status:"ready",readyLocale:r}),L.resolve())},l=>{lA===A&&(yA({status:"error",errorLocale:r,errorMessage:l.toString()}),L.reject(l))}),L.promise},EA="en",Wt=["pt-BR"];/**
|
|
72
72
|
* @license
|
|
73
73
|
* Copyright 2017 Google LLC
|
|
74
74
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -397,104 +397,125 @@ label="${V("Let's go!")}"
|
|
|
397
397
|
margin: 0 auto;
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
400
|
+
/* Ajuste da responsividade para mobile */
|
|
401
|
+
@media (max-width: 754px) {
|
|
402
|
+
.main-section {
|
|
403
|
+
flex-direction: column;
|
|
404
|
+
gap: 5px; /* menor gap */
|
|
405
|
+
align-items: center;
|
|
406
|
+
}
|
|
406
407
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
408
|
+
.images-section {
|
|
409
|
+
order: -1;
|
|
410
|
+
width: 100%;
|
|
411
|
+
}
|
|
411
412
|
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
413
|
+
.images-section svg {
|
|
414
|
+
width: 80%; /* reduzir para não quebrar botão */
|
|
415
|
+
max-width: 180px; /* altura menor */
|
|
416
|
+
height: auto;
|
|
417
|
+
}
|
|
417
418
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
419
|
+
.tips-section {
|
|
420
|
+
width: 100%;
|
|
421
|
+
gap: 6px;
|
|
422
|
+
align-items: flex-start; /* alinhar à esquerda */
|
|
423
|
+
}
|
|
423
424
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
425
|
+
form {
|
|
426
|
+
align-items: flex-start; /* alinhar labels e inputs à esquerda */
|
|
427
|
+
width: 100%;
|
|
428
|
+
}
|
|
428
429
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
430
|
+
input {
|
|
431
|
+
max-width: 100%;
|
|
432
|
+
font-size: 14px;
|
|
433
|
+
padding: 10px;
|
|
434
|
+
}
|
|
434
435
|
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
436
|
+
label {
|
|
437
|
+
text-align: left;
|
|
438
|
+
font-size: 14px;
|
|
439
|
+
}
|
|
439
440
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
.xact-button {
|
|
442
|
+
max-width: 100%;
|
|
443
|
+
}
|
|
443
444
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
445
|
+
.header-text {
|
|
446
|
+
font-size: 20px;
|
|
447
|
+
text-align: center;
|
|
448
|
+
}
|
|
448
449
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
450
|
+
.description-text {
|
|
451
|
+
font-size: 14px;
|
|
452
|
+
text-align: center;
|
|
453
|
+
}
|
|
453
454
|
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
455
|
+
.tip-title {
|
|
456
|
+
font-size: 12px;
|
|
457
|
+
text-align: left;
|
|
458
|
+
}
|
|
457
459
|
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
460
|
+
.tip-text {
|
|
461
|
+
font-size: 11px;
|
|
462
|
+
text-align: left;
|
|
463
|
+
margin-left: 0; /* remove centralização */
|
|
464
|
+
}
|
|
461
465
|
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
max-width: 100%;
|
|
466
|
-
}
|
|
467
|
-
}
|
|
466
|
+
.tip-item {
|
|
467
|
+
margin-bottom: 6px;
|
|
468
|
+
}
|
|
468
469
|
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
470
|
+
.buttons {
|
|
471
|
+
gap: 8px;
|
|
472
|
+
width: 100%;
|
|
473
|
+
max-width: 100%;
|
|
474
|
+
margin-top: 12px;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
474
477
|
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
+
/* Ajuste fino para iPhones muito pequenos */
|
|
479
|
+
@media (max-width: 380px) {
|
|
480
|
+
:host {
|
|
481
|
+
padding: 12px;
|
|
482
|
+
}
|
|
478
483
|
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
484
|
+
.images-section svg {
|
|
485
|
+
max-width: 150px;
|
|
486
|
+
}
|
|
482
487
|
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
488
|
+
.header-text {
|
|
489
|
+
font-size: 18px;
|
|
490
|
+
}
|
|
486
491
|
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
492
|
+
.description-text {
|
|
493
|
+
font-size: 13px;
|
|
494
|
+
}
|
|
491
495
|
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
496
|
+
.tip-title {
|
|
497
|
+
font-size: 11px;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.tip-text {
|
|
501
|
+
font-size: 10px;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.tip-item {
|
|
505
|
+
margin-bottom: 4px;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.xact-button {
|
|
509
|
+
padding: 8px;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.buttons {
|
|
513
|
+
gap: 6px;
|
|
514
|
+
}
|
|
497
515
|
}
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
498
519
|
`,kA([c({type:Number})],Y.prototype,"height",2),kA([c({type:Function})],Y.prototype,"onStartMeasurement",2),Y=kA([R("xact-step-one"),w()],Y);var Rt=Object.getOwnPropertyDescriptor,Ht=(r,A,t,l)=>{for(var e=l>1?void 0:l?Rt(A,t):A,p=r.length-1,n;p>=0;p--)(n=r[p])&&(e=n(e)||e);return e};let TA=class extends X{render(){return J`
|
|
499
520
|
<footer class="modal-footer">
|
|
500
521
|
<span>
|
package/package.json
CHANGED