xactsize-webcomponents 1.0.23 → 1.0.26
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 +180 -169
- package/dist/body-measurer.umd.js +136 -125
- 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);
|
|
@@ -1071,14 +1071,16 @@ label="${n("Let's go!")}"
|
|
|
1071
1071
|
}
|
|
1072
1072
|
};
|
|
1073
1073
|
E.styles = N`
|
|
1074
|
-
|
|
1074
|
+
:host {
|
|
1075
1075
|
display: flex;
|
|
1076
|
-
|
|
1077
|
-
|
|
1076
|
+
flex-direction: column; /* Força coluna para evitar problemas de flex-start */
|
|
1077
|
+
justify-content: flex-start;
|
|
1078
|
+
align-items: stretch; /* Evita que filhos desapareçam no Safari */
|
|
1078
1079
|
font-family: "Lato", sans-serif;
|
|
1079
1080
|
box-sizing: border-box;
|
|
1080
|
-
padding: 16px;
|
|
1081
|
+
padding: 16px;
|
|
1081
1082
|
width: 100%;
|
|
1083
|
+
min-height: 100vh; /* Garante que o conteúdo caiba */
|
|
1082
1084
|
}
|
|
1083
1085
|
|
|
1084
1086
|
.component-content {
|
|
@@ -1087,6 +1089,7 @@ E.styles = N`
|
|
|
1087
1089
|
gap: 12px;
|
|
1088
1090
|
width: 100%;
|
|
1089
1091
|
max-width: 960px;
|
|
1092
|
+
margin: 0 auto;
|
|
1090
1093
|
}
|
|
1091
1094
|
|
|
1092
1095
|
.header-section {
|
|
@@ -1110,12 +1113,14 @@ E.styles = N`
|
|
|
1110
1113
|
|
|
1111
1114
|
.main-section {
|
|
1112
1115
|
display: flex;
|
|
1113
|
-
flex-direction: row;
|
|
1116
|
+
flex-direction: row;
|
|
1114
1117
|
gap: 24px;
|
|
1118
|
+
flex-wrap: wrap; /* Evita overflow de elementos */
|
|
1119
|
+
justify-content: center;
|
|
1115
1120
|
}
|
|
1116
1121
|
|
|
1117
1122
|
.images-section {
|
|
1118
|
-
flex: 1;
|
|
1123
|
+
flex: 1 1 200px; /* flex-grow, flex-shrink, flex-basis */
|
|
1119
1124
|
display: flex;
|
|
1120
1125
|
justify-content: center;
|
|
1121
1126
|
align-items: center;
|
|
@@ -1125,54 +1130,52 @@ E.styles = N`
|
|
|
1125
1130
|
width: 100%;
|
|
1126
1131
|
max-width: 400px;
|
|
1127
1132
|
height: auto;
|
|
1133
|
+
flex-shrink: 0; /* Evita sumir no Safari */
|
|
1128
1134
|
}
|
|
1129
1135
|
|
|
1130
1136
|
.tips-section {
|
|
1131
|
-
flex: 1;
|
|
1137
|
+
flex: 1 1 200px;
|
|
1132
1138
|
display: flex;
|
|
1133
1139
|
flex-direction: column;
|
|
1134
1140
|
gap: 8px;
|
|
1141
|
+
}
|
|
1135
1142
|
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
label {
|
|
1145
|
-
font-size: 16px;
|
|
1146
|
-
color: #333;
|
|
1147
|
-
text-align: start;
|
|
1148
|
-
}
|
|
1143
|
+
.tips-section form {
|
|
1144
|
+
display: flex;
|
|
1145
|
+
flex-direction: column;
|
|
1146
|
+
align-items: flex-start;
|
|
1147
|
+
gap: 16px;
|
|
1148
|
+
width: 100%;
|
|
1149
|
+
}
|
|
1149
1150
|
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
font-size: 16px;
|
|
1155
|
-
border: 1px solid #ccc;
|
|
1156
|
-
border-radius: 6px;
|
|
1157
|
-
box-sizing: border-box;
|
|
1158
|
-
font-family: "Lato", sans-serif;
|
|
1159
|
-
text-align: start;
|
|
1160
|
-
}
|
|
1151
|
+
.tips-section label {
|
|
1152
|
+
font-size: 16px;
|
|
1153
|
+
color: #333;
|
|
1154
|
+
}
|
|
1161
1155
|
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1156
|
+
.tips-section input {
|
|
1157
|
+
width: 100%;
|
|
1158
|
+
max-width: 150px;
|
|
1159
|
+
padding: 12px;
|
|
1160
|
+
font-size: 16px;
|
|
1161
|
+
border: 1px solid #ccc;
|
|
1162
|
+
border-radius: 6px;
|
|
1163
|
+
box-sizing: border-box;
|
|
1166
1164
|
}
|
|
1167
1165
|
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
justify-content: center;
|
|
1173
|
-
align-items: center;
|
|
1166
|
+
.tips-section input:focus {
|
|
1167
|
+
outline: 2px solid var(--brand-primary);
|
|
1168
|
+
outline-offset: 2px;
|
|
1169
|
+
}
|
|
1174
1170
|
|
|
1175
|
-
|
|
1171
|
+
.xact-button {
|
|
1172
|
+
width: 100%;
|
|
1173
|
+
max-width: 150px;
|
|
1174
|
+
display: flex;
|
|
1175
|
+
justify-content: center;
|
|
1176
|
+
align-items: center;
|
|
1177
|
+
flex-shrink: 0; /* Evita sumir no Safari */
|
|
1178
|
+
}
|
|
1176
1179
|
|
|
1177
1180
|
.tip-item {
|
|
1178
1181
|
margin-bottom: 4px;
|
|
@@ -1201,104 +1204,112 @@ E.styles = N`
|
|
|
1201
1204
|
margin: 0 auto;
|
|
1202
1205
|
}
|
|
1203
1206
|
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1207
|
+
/* Responsividade para mobile */
|
|
1208
|
+
@media (max-width: 754px) {
|
|
1209
|
+
.main-section {
|
|
1210
|
+
flex-direction: column;
|
|
1211
|
+
gap: 8px;
|
|
1212
|
+
align-items: center;
|
|
1213
|
+
}
|
|
1210
1214
|
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
+
.images-section {
|
|
1216
|
+
order: -1;
|
|
1217
|
+
width: 100%;
|
|
1218
|
+
}
|
|
1215
1219
|
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
}
|
|
1220
|
+
.images-section svg {
|
|
1221
|
+
width: 80%;
|
|
1222
|
+
max-width: 180px;
|
|
1223
|
+
}
|
|
1221
1224
|
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1225
|
+
.tips-section {
|
|
1226
|
+
width: 100%;
|
|
1227
|
+
gap: 6px;
|
|
1228
|
+
align-items: flex-start;
|
|
1229
|
+
}
|
|
1227
1230
|
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1231
|
+
.tips-section form {
|
|
1232
|
+
width: 100%;
|
|
1233
|
+
align-items: flex-start;
|
|
1234
|
+
}
|
|
1232
1235
|
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1236
|
+
.tips-section input {
|
|
1237
|
+
max-width: 100%;
|
|
1238
|
+
font-size: 14px;
|
|
1239
|
+
padding: 10px;
|
|
1240
|
+
}
|
|
1238
1241
|
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
}
|
|
1242
|
+
.tips-section label {
|
|
1243
|
+
font-size: 14px;
|
|
1244
|
+
}
|
|
1243
1245
|
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1246
|
+
.xact-button {
|
|
1247
|
+
max-width: 100%;
|
|
1248
|
+
}
|
|
1247
1249
|
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1250
|
+
.header-text {
|
|
1251
|
+
font-size: 20px;
|
|
1252
|
+
text-align: center;
|
|
1253
|
+
}
|
|
1252
1254
|
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1255
|
+
.description-text {
|
|
1256
|
+
font-size: 14px;
|
|
1257
|
+
text-align: center;
|
|
1258
|
+
}
|
|
1257
1259
|
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1260
|
+
.tip-title {
|
|
1261
|
+
font-size: 12px;
|
|
1262
|
+
}
|
|
1261
1263
|
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1264
|
+
.tip-text {
|
|
1265
|
+
font-size: 11px;
|
|
1266
|
+
margin-left: 0;
|
|
1267
|
+
}
|
|
1265
1268
|
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1269
|
+
.buttons {
|
|
1270
|
+
width: 100%;
|
|
1271
|
+
max-width: 100%;
|
|
1272
|
+
gap: 8px;
|
|
1273
|
+
margin-top: 12px;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1272
1276
|
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1277
|
+
/* Ajuste fino para iPhones muito pequenos */
|
|
1278
|
+
@media (max-width: 380px) {
|
|
1279
|
+
:host {
|
|
1280
|
+
padding: 12px;
|
|
1281
|
+
}
|
|
1278
1282
|
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1283
|
+
.images-section svg {
|
|
1284
|
+
max-width: 150px;
|
|
1285
|
+
}
|
|
1282
1286
|
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1287
|
+
.header-text {
|
|
1288
|
+
font-size: 18px;
|
|
1289
|
+
}
|
|
1286
1290
|
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1291
|
+
.description-text {
|
|
1292
|
+
font-size: 13px;
|
|
1293
|
+
}
|
|
1290
1294
|
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
}
|
|
1295
|
+
.tip-title {
|
|
1296
|
+
font-size: 11px;
|
|
1297
|
+
}
|
|
1295
1298
|
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1299
|
+
.tip-text {
|
|
1300
|
+
font-size: 10px;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
.xact-button {
|
|
1304
|
+
padding: 8px;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
.buttons {
|
|
1308
|
+
gap: 6px;
|
|
1309
|
+
}
|
|
1301
1310
|
}
|
|
1311
|
+
|
|
1312
|
+
|
|
1302
1313
|
`;
|
|
1303
1314
|
kA([
|
|
1304
1315
|
j({ type: Number })
|
|
@@ -1315,7 +1326,7 @@ var Ht = Object.getOwnPropertyDescriptor, zt = (l, A, t, r) => {
|
|
|
1315
1326
|
(V = l[p]) && (e = V(e) || e);
|
|
1316
1327
|
return e;
|
|
1317
1328
|
};
|
|
1318
|
-
let
|
|
1329
|
+
let dA = class extends X {
|
|
1319
1330
|
render() {
|
|
1320
1331
|
return T`
|
|
1321
1332
|
<footer class="modal-footer">
|
|
@@ -1363,7 +1374,7 @@ let yA = class extends X {
|
|
|
1363
1374
|
`;
|
|
1364
1375
|
}
|
|
1365
1376
|
};
|
|
1366
|
-
|
|
1377
|
+
dA.styles = N`
|
|
1367
1378
|
.modal-footer {
|
|
1368
1379
|
text-align: center;
|
|
1369
1380
|
font-size: 12px;
|
|
@@ -1400,10 +1411,10 @@ yA.styles = N`
|
|
|
1400
1411
|
outline-offset: 2px;
|
|
1401
1412
|
}
|
|
1402
1413
|
`;
|
|
1403
|
-
|
|
1414
|
+
dA = zt([
|
|
1404
1415
|
R("xact-footer"),
|
|
1405
1416
|
C()
|
|
1406
|
-
],
|
|
1417
|
+
], dA);
|
|
1407
1418
|
var Gt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, D = (l, A, t, r) => {
|
|
1408
1419
|
for (var e = r > 1 ? void 0 : r ? Ft(A, t) : A, p = l.length - 1, V; p >= 0; p--)
|
|
1409
1420
|
(V = l[p]) && (e = (r ? V(A, t, e) : V(e)) || e);
|
|
@@ -1870,7 +1881,7 @@ I = JA([
|
|
|
1870
1881
|
C()
|
|
1871
1882
|
], I);
|
|
1872
1883
|
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,
|
|
1884
|
+
var wt = Object.defineProperty, Ct = Object.getOwnPropertyDescriptor, y = (l, A, t, r) => {
|
|
1874
1885
|
for (var e = r > 1 ? void 0 : r ? Ct(A, t) : A, p = l.length - 1, V; p >= 0; p--)
|
|
1875
1886
|
(V = l[p]) && (e = (r ? V(A, t, e) : V(e)) || e);
|
|
1876
1887
|
return r && e && wt(A, t, e), e;
|
|
@@ -2556,73 +2567,73 @@ a.styles = N`
|
|
|
2556
2567
|
|
|
2557
2568
|
|
|
2558
2569
|
`;
|
|
2559
|
-
|
|
2570
|
+
y([
|
|
2560
2571
|
j({ type: String, attribute: "api-key" })
|
|
2561
2572
|
], a.prototype, "apiKey", 2);
|
|
2562
|
-
|
|
2573
|
+
y([
|
|
2563
2574
|
j({ type: String, attribute: "tenant-id" })
|
|
2564
2575
|
], a.prototype, "tenantId", 2);
|
|
2565
|
-
|
|
2576
|
+
y([
|
|
2566
2577
|
j({ type: String, attribute: "product-sku" })
|
|
2567
2578
|
], a.prototype, "productSku", 2);
|
|
2568
|
-
|
|
2579
|
+
y([
|
|
2569
2580
|
j({ type: String, attribute: "api-url" })
|
|
2570
2581
|
], a.prototype, "apiUrl", 2);
|
|
2571
|
-
|
|
2582
|
+
y([
|
|
2572
2583
|
j({ type: Function, attribute: "onmeasurementaccepted" })
|
|
2573
2584
|
], a.prototype, "onMeasurementAccepted", 2);
|
|
2574
|
-
|
|
2585
|
+
y([
|
|
2575
2586
|
j({ type: Function, attribute: "onmeasurementcanceled" })
|
|
2576
2587
|
], a.prototype, "onMeasurementCanceled", 2);
|
|
2577
|
-
|
|
2588
|
+
y([
|
|
2578
2589
|
j({ type: String })
|
|
2579
2590
|
], a.prototype, "culture", 1);
|
|
2580
|
-
|
|
2591
|
+
y([
|
|
2581
2592
|
J()
|
|
2582
2593
|
], a.prototype, "errorMap", 1);
|
|
2583
|
-
|
|
2594
|
+
y([
|
|
2584
2595
|
J()
|
|
2585
2596
|
], a.prototype, "measurerKey", 2);
|
|
2586
|
-
|
|
2597
|
+
y([
|
|
2587
2598
|
J()
|
|
2588
2599
|
], a.prototype, "_isLocaleLoading", 2);
|
|
2589
|
-
|
|
2600
|
+
y([
|
|
2590
2601
|
J()
|
|
2591
2602
|
], a.prototype, "showModal", 2);
|
|
2592
|
-
|
|
2603
|
+
y([
|
|
2593
2604
|
J()
|
|
2594
2605
|
], a.prototype, "step", 2);
|
|
2595
|
-
|
|
2606
|
+
y([
|
|
2596
2607
|
J()
|
|
2597
2608
|
], a.prototype, "height", 2);
|
|
2598
|
-
|
|
2609
|
+
y([
|
|
2599
2610
|
J()
|
|
2600
2611
|
], a.prototype, "recommendedSize", 2);
|
|
2601
|
-
|
|
2612
|
+
y([
|
|
2602
2613
|
J()
|
|
2603
2614
|
], a.prototype, "measurements", 2);
|
|
2604
|
-
|
|
2615
|
+
y([
|
|
2605
2616
|
J()
|
|
2606
2617
|
], a.prototype, "errorMessage", 2);
|
|
2607
|
-
|
|
2618
|
+
y([
|
|
2608
2619
|
J()
|
|
2609
2620
|
], a.prototype, "instructionMessage", 2);
|
|
2610
|
-
|
|
2621
|
+
y([
|
|
2611
2622
|
J()
|
|
2612
2623
|
], a.prototype, "shouldStartMeasurement", 2);
|
|
2613
|
-
|
|
2624
|
+
y([
|
|
2614
2625
|
J()
|
|
2615
2626
|
], a.prototype, "isLoading", 2);
|
|
2616
|
-
|
|
2627
|
+
y([
|
|
2617
2628
|
J()
|
|
2618
2629
|
], a.prototype, "isFetching", 2);
|
|
2619
|
-
|
|
2630
|
+
y([
|
|
2620
2631
|
J()
|
|
2621
2632
|
], a.prototype, "cameras", 2);
|
|
2622
|
-
|
|
2633
|
+
y([
|
|
2623
2634
|
J()
|
|
2624
2635
|
], a.prototype, "currentCameraId", 2);
|
|
2625
|
-
a =
|
|
2636
|
+
a = y([
|
|
2626
2637
|
R("body-measurer"),
|
|
2627
2638
|
C()
|
|
2628
2639
|
], 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
|
|
@@ -267,14 +267,16 @@ label="${V("Let's go!")}"
|
|
|
267
267
|
></xact-button>
|
|
268
268
|
|
|
269
269
|
`}};Y.styles=m`
|
|
270
|
-
|
|
270
|
+
:host {
|
|
271
271
|
display: flex;
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
flex-direction: column; /* Força coluna para evitar problemas de flex-start */
|
|
273
|
+
justify-content: flex-start;
|
|
274
|
+
align-items: stretch; /* Evita que filhos desapareçam no Safari */
|
|
274
275
|
font-family: "Lato", sans-serif;
|
|
275
276
|
box-sizing: border-box;
|
|
276
|
-
padding: 16px;
|
|
277
|
+
padding: 16px;
|
|
277
278
|
width: 100%;
|
|
279
|
+
min-height: 100vh; /* Garante que o conteúdo caiba */
|
|
278
280
|
}
|
|
279
281
|
|
|
280
282
|
.component-content {
|
|
@@ -283,6 +285,7 @@ label="${V("Let's go!")}"
|
|
|
283
285
|
gap: 12px;
|
|
284
286
|
width: 100%;
|
|
285
287
|
max-width: 960px;
|
|
288
|
+
margin: 0 auto;
|
|
286
289
|
}
|
|
287
290
|
|
|
288
291
|
.header-section {
|
|
@@ -306,12 +309,14 @@ label="${V("Let's go!")}"
|
|
|
306
309
|
|
|
307
310
|
.main-section {
|
|
308
311
|
display: flex;
|
|
309
|
-
flex-direction: row;
|
|
312
|
+
flex-direction: row;
|
|
310
313
|
gap: 24px;
|
|
314
|
+
flex-wrap: wrap; /* Evita overflow de elementos */
|
|
315
|
+
justify-content: center;
|
|
311
316
|
}
|
|
312
317
|
|
|
313
318
|
.images-section {
|
|
314
|
-
flex: 1;
|
|
319
|
+
flex: 1 1 200px; /* flex-grow, flex-shrink, flex-basis */
|
|
315
320
|
display: flex;
|
|
316
321
|
justify-content: center;
|
|
317
322
|
align-items: center;
|
|
@@ -321,54 +326,52 @@ label="${V("Let's go!")}"
|
|
|
321
326
|
width: 100%;
|
|
322
327
|
max-width: 400px;
|
|
323
328
|
height: auto;
|
|
329
|
+
flex-shrink: 0; /* Evita sumir no Safari */
|
|
324
330
|
}
|
|
325
331
|
|
|
326
332
|
.tips-section {
|
|
327
|
-
flex: 1;
|
|
333
|
+
flex: 1 1 200px;
|
|
328
334
|
display: flex;
|
|
329
335
|
flex-direction: column;
|
|
330
336
|
gap: 8px;
|
|
337
|
+
}
|
|
331
338
|
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
label {
|
|
341
|
-
font-size: 16px;
|
|
342
|
-
color: #333;
|
|
343
|
-
text-align: start;
|
|
344
|
-
}
|
|
339
|
+
.tips-section form {
|
|
340
|
+
display: flex;
|
|
341
|
+
flex-direction: column;
|
|
342
|
+
align-items: flex-start;
|
|
343
|
+
gap: 16px;
|
|
344
|
+
width: 100%;
|
|
345
|
+
}
|
|
345
346
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
font-size: 16px;
|
|
351
|
-
border: 1px solid #ccc;
|
|
352
|
-
border-radius: 6px;
|
|
353
|
-
box-sizing: border-box;
|
|
354
|
-
font-family: "Lato", sans-serif;
|
|
355
|
-
text-align: start;
|
|
356
|
-
}
|
|
347
|
+
.tips-section label {
|
|
348
|
+
font-size: 16px;
|
|
349
|
+
color: #333;
|
|
350
|
+
}
|
|
357
351
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
352
|
+
.tips-section input {
|
|
353
|
+
width: 100%;
|
|
354
|
+
max-width: 150px;
|
|
355
|
+
padding: 12px;
|
|
356
|
+
font-size: 16px;
|
|
357
|
+
border: 1px solid #ccc;
|
|
358
|
+
border-radius: 6px;
|
|
359
|
+
box-sizing: border-box;
|
|
362
360
|
}
|
|
363
361
|
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
justify-content: center;
|
|
369
|
-
align-items: center;
|
|
362
|
+
.tips-section input:focus {
|
|
363
|
+
outline: 2px solid var(--brand-primary);
|
|
364
|
+
outline-offset: 2px;
|
|
365
|
+
}
|
|
370
366
|
|
|
371
|
-
|
|
367
|
+
.xact-button {
|
|
368
|
+
width: 100%;
|
|
369
|
+
max-width: 150px;
|
|
370
|
+
display: flex;
|
|
371
|
+
justify-content: center;
|
|
372
|
+
align-items: center;
|
|
373
|
+
flex-shrink: 0; /* Evita sumir no Safari */
|
|
374
|
+
}
|
|
372
375
|
|
|
373
376
|
.tip-item {
|
|
374
377
|
margin-bottom: 4px;
|
|
@@ -397,104 +400,112 @@ label="${V("Let's go!")}"
|
|
|
397
400
|
margin: 0 auto;
|
|
398
401
|
}
|
|
399
402
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
403
|
+
/* Responsividade para mobile */
|
|
404
|
+
@media (max-width: 754px) {
|
|
405
|
+
.main-section {
|
|
406
|
+
flex-direction: column;
|
|
407
|
+
gap: 8px;
|
|
408
|
+
align-items: center;
|
|
409
|
+
}
|
|
406
410
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
+
.images-section {
|
|
412
|
+
order: -1;
|
|
413
|
+
width: 100%;
|
|
414
|
+
}
|
|
411
415
|
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
}
|
|
416
|
+
.images-section svg {
|
|
417
|
+
width: 80%;
|
|
418
|
+
max-width: 180px;
|
|
419
|
+
}
|
|
417
420
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
421
|
+
.tips-section {
|
|
422
|
+
width: 100%;
|
|
423
|
+
gap: 6px;
|
|
424
|
+
align-items: flex-start;
|
|
425
|
+
}
|
|
423
426
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
427
|
+
.tips-section form {
|
|
428
|
+
width: 100%;
|
|
429
|
+
align-items: flex-start;
|
|
430
|
+
}
|
|
428
431
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
432
|
+
.tips-section input {
|
|
433
|
+
max-width: 100%;
|
|
434
|
+
font-size: 14px;
|
|
435
|
+
padding: 10px;
|
|
436
|
+
}
|
|
434
437
|
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
}
|
|
438
|
+
.tips-section label {
|
|
439
|
+
font-size: 14px;
|
|
440
|
+
}
|
|
439
441
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
442
|
+
.xact-button {
|
|
443
|
+
max-width: 100%;
|
|
444
|
+
}
|
|
443
445
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
446
|
+
.header-text {
|
|
447
|
+
font-size: 20px;
|
|
448
|
+
text-align: center;
|
|
449
|
+
}
|
|
448
450
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
451
|
+
.description-text {
|
|
452
|
+
font-size: 14px;
|
|
453
|
+
text-align: center;
|
|
454
|
+
}
|
|
453
455
|
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
456
|
+
.tip-title {
|
|
457
|
+
font-size: 12px;
|
|
458
|
+
}
|
|
457
459
|
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
460
|
+
.tip-text {
|
|
461
|
+
font-size: 11px;
|
|
462
|
+
margin-left: 0;
|
|
463
|
+
}
|
|
461
464
|
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
465
|
+
.buttons {
|
|
466
|
+
width: 100%;
|
|
467
|
+
max-width: 100%;
|
|
468
|
+
gap: 8px;
|
|
469
|
+
margin-top: 12px;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
468
472
|
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
473
|
+
/* Ajuste fino para iPhones muito pequenos */
|
|
474
|
+
@media (max-width: 380px) {
|
|
475
|
+
:host {
|
|
476
|
+
padding: 12px;
|
|
477
|
+
}
|
|
474
478
|
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
479
|
+
.images-section svg {
|
|
480
|
+
max-width: 150px;
|
|
481
|
+
}
|
|
478
482
|
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
483
|
+
.header-text {
|
|
484
|
+
font-size: 18px;
|
|
485
|
+
}
|
|
482
486
|
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
487
|
+
.description-text {
|
|
488
|
+
font-size: 13px;
|
|
489
|
+
}
|
|
486
490
|
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
491
|
+
.tip-title {
|
|
492
|
+
font-size: 11px;
|
|
493
|
+
}
|
|
491
494
|
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
495
|
+
.tip-text {
|
|
496
|
+
font-size: 10px;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.xact-button {
|
|
500
|
+
padding: 8px;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.buttons {
|
|
504
|
+
gap: 6px;
|
|
505
|
+
}
|
|
497
506
|
}
|
|
507
|
+
|
|
508
|
+
|
|
498
509
|
`,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
510
|
<footer class="modal-footer">
|
|
500
511
|
<span>
|
package/package.json
CHANGED