xactsize-webcomponents 1.0.19 → 1.0.22

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.
@@ -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 B = globalThis, uA = B.ShadowRoot && (B.ShadyCSS === void 0 || B.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, dA = Symbol(), TA = /* @__PURE__ */ new WeakMap();
19
+ const B = globalThis, dA = 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
- if (this._$cssResult$ = !0, r !== dA) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
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 (uA && A === void 0) {
28
+ if (dA && 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,30 +35,30 @@ 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, dA), N = (l, ...A) => {
38
+ const CA = (l) => new ZA(typeof l == "string" ? l : l + "", void 0, uA), N = (l, ...A) => {
39
39
  const t = l.length === 1 ? l[0] : A.reduce((r, e, p) => r + ((V) => {
40
40
  if (V._$cssResult$ === !0) return V.cssText;
41
41
  if (typeof V == "number") return V;
42
42
  throw Error("Value passed to 'css' function must be a 'css' function result: " + V + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
43
43
  })(e) + l[p + 1], l[0]);
44
- return new ZA(t, l, dA);
45
- }, CA = (l, A) => {
46
- if (uA) l.adoptedStyleSheets = A.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
44
+ return new ZA(t, l, uA);
45
+ }, YA = (l, A) => {
46
+ if (dA) 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 = uA ? (l) => l : (l) => l instanceof CSSStyleSheet ? ((A) => {
51
+ }, XA = dA ? (l) => l : (l) => l instanceof CSSStyleSheet ? ((A) => {
52
52
  let t = "";
53
53
  for (const r of A.cssRules) t += r.cssText;
54
- return YA(t);
54
+ return CA(t);
55
55
  })(l) : l;
56
56
  /**
57
57
  * @license
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 : "", eA = s.reactiveElementPolyfillSupport, z = (l, A) => l, _ = { toAttribute(l, A) {
61
+ const { is: DA, defineProperty: QA, getOwnPropertyDescriptor: gA, getOwnPropertyNames: BA, getOwnPropertySymbols: _A, getPrototypeOf: $A } = Object, U = globalThis, xA = U.trustedTypes, At = xA ? xA.emptyScript : "", eA = U.reactiveElementPolyfillSupport, z = (l, A) => l, _ = { toAttribute(l, A) {
62
62
  switch (A) {
63
63
  case Boolean:
64
64
  l = l ? At : null;
@@ -86,8 +86,8 @@ const { is: DA, defineProperty: QA, getOwnPropertyDescriptor: gA, getOwnProperty
86
86
  }
87
87
  }
88
88
  return t;
89
- } }, jA = (l, A) => !DA(l, A), KA = { attribute: !0, type: String, converter: _, reflect: !1, useDefault: !1, hasChanged: jA };
90
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), s.litPropertyMetadata ?? (s.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
89
+ } }, jA = (l, A) => !DA(l, A), iA = { attribute: !0, type: String, converter: _, reflect: !1, useDefault: !1, hasChanged: jA };
90
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), U.litPropertyMetadata ?? (U.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
91
91
  let m = class extends HTMLElement {
92
92
  static addInitializer(A) {
93
93
  this._$Ei(), (this.l ?? (this.l = [])).push(A);
@@ -95,7 +95,7 @@ let m = class extends HTMLElement {
95
95
  static get observedAttributes() {
96
96
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
97
97
  }
98
- static createProperty(A, t = KA) {
98
+ static createProperty(A, t = iA) {
99
99
  if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(A) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(A, t), !t.noAccessor) {
100
100
  const r = Symbol(), e = this.getPropertyDescriptor(A, r, t);
101
101
  e !== void 0 && QA(this.prototype, A, e);
@@ -113,7 +113,7 @@ let m = class extends HTMLElement {
113
113
  }, configurable: !0, enumerable: !0 };
114
114
  }
115
115
  static getPropertyOptions(A) {
116
- return this.elementProperties.get(A) ?? KA;
116
+ return this.elementProperties.get(A) ?? iA;
117
117
  }
118
118
  static _$Ei() {
119
119
  if (this.hasOwnProperty(z("elementProperties"))) return;
@@ -172,7 +172,7 @@ let m = class extends HTMLElement {
172
172
  }
173
173
  createRenderRoot() {
174
174
  const A = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
175
- return CA(A, this.constructor.elementStyles), A;
175
+ return YA(A, this.constructor.elementStyles), A;
176
176
  }
177
177
  connectedCallback() {
178
178
  var A;
@@ -205,8 +205,8 @@ let m = class extends HTMLElement {
205
205
  var p, V;
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 } : ((p = S.converter) == null ? void 0 : p.fromAttribute) !== void 0 ? S.converter : _;
209
- this._$Em = e, this[e] = n.fromAttribute(t, S.type) ?? ((V = this._$Ej) == null ? void 0 : V.get(e)) ?? null, this._$Em = null;
208
+ const S = r.getPropertyOptions(e), q = typeof S.converter == "function" ? { fromAttribute: S.converter } : ((p = S.converter) == null ? void 0 : p.fromAttribute) !== void 0 ? S.converter : _;
209
+ this._$Em = e, this[e] = q.fromAttribute(t, S.type) ?? ((V = this._$Ej) == null ? void 0 : V.get(e)) ?? null, this._$Em = null;
210
210
  }
211
211
  }
212
212
  requestUpdate(A, t, r) {
@@ -244,8 +244,8 @@ let m = class extends HTMLElement {
244
244
  }
245
245
  const e = this.constructor.elementProperties;
246
246
  if (e.size > 0) for (const [p, V] of e) {
247
- const { wrapped: S } = V, n = this[p];
248
- S !== !0 || this._$AL.has(p) || n === void 0 || this.C(p, void 0, V, n);
247
+ const { wrapped: S } = V, q = this[p];
248
+ S !== !0 || this._$AL.has(p) || q === void 0 || this.C(p, void 0, V, q);
249
249
  }
250
250
  }
251
251
  let A = !1;
@@ -289,28 +289,28 @@ let m = class extends HTMLElement {
289
289
  firstUpdated(A) {
290
290
  }
291
291
  };
292
- m.elementStyles = [], m.shadowRootOptions = { mode: "open" }, m[z("elementProperties")] = /* @__PURE__ */ new Map(), m[z("finalized")] = /* @__PURE__ */ new Map(), eA == null || eA({ ReactiveElement: m }), (s.reactiveElementVersions ?? (s.reactiveElementVersions = [])).push("2.1.0");
292
+ m.elementStyles = [], m.shadowRootOptions = { mode: "open" }, m[z("elementProperties")] = /* @__PURE__ */ new Map(), m[z("finalized")] = /* @__PURE__ */ new Map(), eA == null || eA({ ReactiveElement: m }), (U.reactiveElementVersions ?? (U.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 G = globalThis, $ = G.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, F = () => L.createComment(""), M = (l) => l === null || typeof l != "object" && typeof l != "function", cA = Array.isArray, lt = (l) => cA(l) || typeof (l == null ? void 0 : l[Symbol.iterator]) == "function", rA = `[
299
- \f\r]`, H = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, WA = /-->/g, sA = />/g, i = RegExp(`>|${rA}(?:([^\\s"'>=/]+)(${rA}*=${rA}*(?:[^
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"), c = Symbol.for("lit-nothing"), OA = /* @__PURE__ */ new WeakMap(), O = L.createTreeWalker(L, 129);
298
+ const G = globalThis, $ = G.trustedTypes, sA = $ ? $.createPolicy("lit-html", { createHTML: (l) => l }) : void 0, NA = "$lit$", K = `lit$${Math.random().toFixed(9).slice(2)}$`, RA = "?" + K, tt = `<${RA}>`, L = document, F = () => L.createComment(""), M = (l) => l === null || typeof l != "object" && typeof l != "function", cA = Array.isArray, lt = (l) => cA(l) || typeof (l == null ? void 0 : l[Symbol.iterator]) == "function", rA = `[
299
+ \f\r]`, H = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, KA = /-->/g, UA = />/g, W = RegExp(`>|${rA}(?:([^\\s"'>=/]+)(${rA}*=${rA}*(?:[^
300
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), WA = /'/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"), c = Symbol.for("lit-nothing"), OA = /* @__PURE__ */ new WeakMap(), O = L.createTreeWalker(L, 129);
301
301
  function zA(l, A) {
302
302
  if (!cA(l) || !l.hasOwnProperty("raw")) throw Error("invalid template strings array");
303
- return UA !== void 0 ? UA.createHTML(A) : A;
303
+ return sA !== void 0 ? sA.createHTML(A) : A;
304
304
  }
305
305
  const rt = (l, A) => {
306
306
  const t = l.length - 1, r = [];
307
307
  let e, p = A === 2 ? "<svg>" : A === 3 ? "<math>" : "", V = H;
308
308
  for (let S = 0; S < t; S++) {
309
- const n = l[S];
310
- let d, k, y = -1, x = 0;
311
- for (; x < n.length && (V.lastIndex = x, k = V.exec(n), k !== null); ) x = V.lastIndex, V === H ? k[1] === "!--" ? V = WA : k[1] !== void 0 ? V = sA : k[2] !== void 0 ? (HA.test(k[2]) && (e = RegExp("</" + k[2], "g")), V = i) : k[3] !== void 0 && (V = i) : V === i ? k[0] === ">" ? (V = e ?? H, y = -1) : k[1] === void 0 ? y = -2 : (y = V.lastIndex - k[2].length, d = k[1], V = k[3] === void 0 ? i : k[3] === '"' ? vA : iA) : V === vA || V === iA ? V = i : V === WA || V === sA ? V = H : (V = i, e = void 0);
312
- const U = V === i && l[S + 1].startsWith("/>") ? " " : "";
313
- p += V === H ? n + tt : y >= 0 ? (r.push(d), n.slice(0, y) + NA + n.slice(y) + W + U) : n + W + (y === -2 ? S : U);
309
+ const q = l[S];
310
+ let u, k, y = -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, y = -1) : k[1] === void 0 ? y = -2 : (y = 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
+ const s = V === W && l[S + 1].startsWith("/>") ? " " : "";
313
+ p += V === H ? q + tt : y >= 0 ? (r.push(u), q.slice(0, y) + NA + q.slice(y) + K + s) : q + K + (y === -2 ? S : s);
314
314
  }
315
315
  return [zA(l, p + (l[t] || "<?>") + (A === 2 ? "</svg>" : A === 3 ? "</math>" : "")), r];
316
316
  };
@@ -319,29 +319,29 @@ class h {
319
319
  let e;
320
320
  this.parts = [];
321
321
  let p = 0, V = 0;
322
- const S = A.length - 1, n = this.parts, [d, k] = rt(A, t);
323
- if (this.el = h.createElement(d, r), O.currentNode = this.el.content, t === 2 || t === 3) {
322
+ const S = A.length - 1, q = this.parts, [u, k] = rt(A, t);
323
+ if (this.el = h.createElement(u, 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
- for (; (e = O.nextNode()) !== null && n.length < S; ) {
327
+ for (; (e = O.nextNode()) !== null && q.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[V++], U = e.getAttribute(y).split(W), Q = /([.?@])?(.*)/.exec(x);
331
- n.push({ type: 1, index: p, name: Q[2], strings: U, ctor: Q[1] === "." ? Vt : Q[1] === "?" ? qt : Q[1] === "@" ? nt : lA }), e.removeAttribute(y);
332
- } else y.startsWith(W) && (n.push({ type: 6, index: p }), e.removeAttribute(y));
330
+ const x = k[V++], s = e.getAttribute(y).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(y);
332
+ } else y.startsWith(K) && (q.push({ type: 6, index: p }), e.removeAttribute(y));
333
333
  if (HA.test(e.tagName)) {
334
- const y = e.textContent.split(W), x = y.length - 1;
334
+ const y = e.textContent.split(K), x = y.length - 1;
335
335
  if (x > 0) {
336
336
  e.textContent = $ ? $.emptyScript : "";
337
- for (let U = 0; U < x; U++) e.append(y[U], F()), O.nextNode(), n.push({ type: 2, index: ++p });
337
+ for (let s = 0; s < x; s++) e.append(y[s], F()), O.nextNode(), q.push({ type: 2, index: ++p });
338
338
  e.append(y[x], F());
339
339
  }
340
340
  }
341
- } else if (e.nodeType === 8) if (e.data === RA) n.push({ type: 2, index: p });
341
+ } else if (e.nodeType === 8) if (e.data === RA) q.push({ type: 2, index: p });
342
342
  else {
343
343
  let y = -1;
344
- for (; (y = e.data.indexOf(W, y + 1)) !== -1; ) n.push({ type: 7, index: p }), y += W.length - 1;
344
+ for (; (y = e.data.indexOf(K, y + 1)) !== -1; ) q.push({ type: 7, index: p }), y += K.length - 1;
345
345
  }
346
346
  p++;
347
347
  }
@@ -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 p = O.nextNode(), V = 0, S = 0, n = r[0];
375
- for (; n !== void 0; ) {
376
- if (V === n.index) {
377
- let d;
378
- n.type === 2 ? d = new w(p, p.nextSibling, this, A) : n.type === 1 ? d = new n.ctor(p, n.name, n.strings, this, A) : n.type === 6 && (d = new St(p, this, A)), this._$AV.push(d), n = r[++S];
374
+ let p = O.nextNode(), V = 0, S = 0, q = r[0];
375
+ for (; q !== void 0; ) {
376
+ if (V === q.index) {
377
+ let u;
378
+ q.type === 2 ? u = new w(p, p.nextSibling, this, A) : q.type === 1 ? u = new q.ctor(p, q.name, q.strings, this, A) : q.type === 6 && (u = new St(p, this, A)), this._$AV.push(u), q = r[++S];
379
379
  }
380
- V !== (n == null ? void 0 : n.index) && (p = O.nextNode(), V++);
380
+ V !== (q == null ? void 0 : q.index) && (p = O.nextNode(), V++);
381
381
  }
382
382
  return O.currentNode = L, e;
383
383
  }
@@ -465,8 +465,8 @@ class lA {
465
465
  if (p === void 0) A = Z(this, A, t, 0), V = !M(A) || A !== this._$AH && A !== f, V && (this._$AH = A);
466
466
  else {
467
467
  const S = A;
468
- let n, d;
469
- for (A = p[0], n = 0; n < p.length - 1; n++) d = Z(this, S[r + n], t, n), d === f && (d = this._$AH[n]), V || (V = !M(d) || d !== this._$AH[n]), d === c ? A = c : A !== c && (A += (d ?? "") + p[n + 1]), this._$AH[n] = d;
468
+ let q, u;
469
+ for (A = p[0], q = 0; q < p.length - 1; q++) u = Z(this, S[r + q], t, q), u === f && (u = this._$AH[q]), V || (V = !M(u) || u !== this._$AH[q]), u === c ? A = c : A !== c && (A += (u ?? "") + p[q + 1]), this._$AH[q] = u;
470
470
  }
471
471
  V && !e && this.j(A);
472
472
  }
@@ -482,7 +482,7 @@ class Vt extends lA {
482
482
  this.element[this.name] = A === c ? void 0 : A;
483
483
  }
484
484
  }
485
- class qt extends lA {
485
+ class nt extends lA {
486
486
  constructor() {
487
487
  super(...arguments), this.type = 4;
488
488
  }
@@ -490,7 +490,7 @@ class qt extends lA {
490
490
  this.element.toggleAttribute(this.name, !!A && A !== c);
491
491
  }
492
492
  }
493
- class nt extends lA {
493
+ class qt extends lA {
494
494
  constructor(A, t, r, e, p) {
495
495
  super(A, t, r, e, p), this.type = 5;
496
496
  }
@@ -577,14 +577,14 @@ 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: _, reflect: !1, hasChanged: jA }, ut = (l = yt, A, t) => {
580
+ const yt = { attribute: !0, type: String, converter: _, reflect: !1, hasChanged: jA }, dt = (l = yt, 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") {
584
584
  const { name: V } = t;
585
585
  return { set(S) {
586
- const n = A.get.call(this);
587
- A.set.call(this, S), this.requestUpdate(V, n, l);
586
+ const q = A.get.call(this);
587
+ A.set.call(this, S), this.requestUpdate(V, q, l);
588
588
  }, init(S) {
589
589
  return S !== void 0 && this.C(V, void 0, l, S), S;
590
590
  } };
@@ -592,14 +592,14 @@ const yt = { attribute: !0, type: String, converter: _, reflect: !1, hasChanged:
592
592
  if (r === "setter") {
593
593
  const { name: V } = t;
594
594
  return function(S) {
595
- const n = this[V];
596
- A.call(this, S), this.requestUpdate(V, n, l);
595
+ const q = this[V];
596
+ A.call(this, S), this.requestUpdate(V, q, l);
597
597
  };
598
598
  }
599
599
  throw Error("Unsupported decorator location: " + r);
600
600
  };
601
601
  function j(l) {
602
- return (A, t) => typeof t == "object" ? ut(l, A, t) : ((r, e, p) => {
602
+ return (A, t) => typeof t == "object" ? dt(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);
@@ -623,7 +623,7 @@ const SA = "lit-localize-status";
623
623
  * Copyright 2021 Google LLC
624
624
  * SPDX-License-Identifier: BSD-3-Clause
625
625
  */
626
- const dt = (l) => typeof l != "string" && "strTag" in l, GA = (l, A, t) => {
626
+ const ut = (l) => typeof l != "string" && "strTag" in l, GA = (l, A, t) => {
627
627
  let r = l[0];
628
628
  for (let e = 1; e < l.length; e++)
629
629
  r += A[t ? t[e - 1] : e - 1], r += l[e];
@@ -634,12 +634,12 @@ const dt = (l) => typeof l != "string" && "strTag" in l, GA = (l, A, t) => {
634
634
  * Copyright 2021 Google LLC
635
635
  * SPDX-License-Identifier: BSD-3-Clause
636
636
  */
637
- const FA = (l) => dt(l) ? GA(l.strings, l.values) : l;
638
- let q = FA, bA = !1;
637
+ const FA = (l) => ut(l) ? GA(l.strings, l.values) : l;
638
+ let n = FA, bA = !1;
639
639
  function jt(l) {
640
640
  if (bA)
641
641
  throw new Error("lit-localize can only be configured once");
642
- q = l, bA = !0;
642
+ n = l, bA = !0;
643
643
  }
644
644
  /**
645
645
  * @license
@@ -665,7 +665,7 @@ const kt = (l) => l.addController(new ct(l)), Jt = kt;
665
665
  * Copyright 2021 Google LLC
666
666
  * SPDX-License-Identifier: BSD-3-Clause
667
667
  */
668
- const Y = () => (l, A) => (l.addInitializer(Jt), l);
668
+ const C = () => (l, A) => (l.addInitializer(Jt), l);
669
669
  /**
670
670
  * @license
671
671
  * Copyright 2020 Google LLC
@@ -689,23 +689,23 @@ class MA {
689
689
  * Copyright 2014 Travis Webb
690
690
  * SPDX-License-Identifier: MIT
691
691
  */
692
- const K = [];
692
+ const i = [];
693
693
  for (let l = 0; l < 256; l++)
694
- K[l] = (l >> 4 & 15).toString(16) + (l & 15).toString(16);
694
+ i[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, p = 0, V = 40164, S = 0, n = 52210;
697
- for (let d = 0; d < l.length; d++)
698
- t ^= l.charCodeAt(d), A = t * 435, r = e * 435, p = V * 435, S = n * 435, p += t << 8, S += e << 8, r += A >>> 16, t = A & 65535, p += r >>> 16, e = r & 65535, n = S + (p >>> 16) & 65535, V = p & 65535;
699
- return K[n >> 8] + K[n & 255] + K[V >> 8] + K[V & 255] + K[e >> 8] + K[e & 255] + K[t >> 8] + K[t & 255];
696
+ let A = 0, t = 8997, r = 0, e = 33826, p = 0, V = 40164, S = 0, q = 52210;
697
+ for (let u = 0; u < l.length; u++)
698
+ t ^= l.charCodeAt(u), A = t * 435, r = e * 435, p = V * 435, S = q * 435, p += t << 8, S += e << 8, r += A >>> 16, t = A & 65535, p += r >>> 16, e = r & 65535, q = S + (p >>> 16) & 65535, V = p & 65535;
699
+ return i[q >> 8] + i[q & 255] + i[V >> 8] + i[V & 255] + i[e >> 8] + i[e & 255] + i[t >> 8] + i[t & 255];
700
700
  }
701
701
  /**
702
702
  * @license
703
703
  * Copyright 2020 Google LLC
704
704
  * SPDX-License-Identifier: BSD-3-Clause
705
705
  */
706
- const Xt = "", xt = "h", Kt = "s";
707
- function Ut(l, A) {
708
- return (A ? xt : Kt) + Tt(typeof l == "string" ? l : l.join(Xt));
706
+ const Xt = "", xt = "h", it = "s";
707
+ function st(l, A) {
708
+ return (A ? xt : it) + Tt(typeof l == "string" ? l : l.join(Xt));
709
709
  }
710
710
  /**
711
711
  * @license
@@ -713,9 +713,9 @@ function Ut(l, A) {
713
713
  * SPDX-License-Identifier: BSD-3-Clause
714
714
  */
715
715
  const LA = /* @__PURE__ */ new WeakMap(), fA = /* @__PURE__ */ new Map();
716
- function Wt(l, A, t) {
716
+ function Kt(l, A, t) {
717
717
  if (l) {
718
- const r = (t == null ? void 0 : t.id) ?? st(A), e = l[r];
718
+ const r = (t == null ? void 0 : t.id) ?? Ut(A), e = l[r];
719
719
  if (e) {
720
720
  if (typeof e == "string")
721
721
  return e;
@@ -738,24 +738,24 @@ function Wt(l, A, t) {
738
738
  }
739
739
  return FA(A);
740
740
  }
741
- function st(l) {
741
+ function Ut(l) {
742
742
  const A = typeof l == "string" ? l : l.strings;
743
743
  let t = fA.get(A);
744
- return t === void 0 && (t = Ut(A, typeof l != "string" && !("strTag" in l)), fA.set(A, t)), t;
744
+ return t === void 0 && (t = st(A, typeof l != "string" && !("strTag" in l)), fA.set(A, t)), t;
745
745
  }
746
746
  /**
747
747
  * @license
748
748
  * Copyright 2021 Google LLC
749
749
  * SPDX-License-Identifier: BSD-3-Clause
750
750
  */
751
- function qA(l) {
751
+ function nA(l) {
752
752
  window.dispatchEvent(new CustomEvent(SA, { detail: l }));
753
753
  }
754
- let AA = "", nA, hA, tA, aA, EA, v = new MA();
754
+ let AA = "", qA, hA, tA, aA, EA, v = new MA();
755
755
  v.resolve();
756
756
  let g = 0;
757
- const it = (l) => (jt((A, t) => Wt(EA, A, t)), AA = hA = l.sourceLocale, tA = new Set(l.targetLocales), tA.add(l.sourceLocale), aA = l.loadLocale, { getLocale: vt, setLocale: Ot }), vt = () => AA, Ot = (l) => {
758
- if (l === (nA ?? AA))
757
+ const Wt = (l) => (jt((A, t) => Kt(EA, A, t)), AA = hA = l.sourceLocale, tA = new Set(l.targetLocales), tA.add(l.sourceLocale), aA = l.loadLocale, { getLocale: vt, setLocale: Ot }), vt = () => AA, Ot = (l) => {
758
+ if (l === (qA ?? AA))
759
759
  return v.promise;
760
760
  if (!tA || !aA)
761
761
  throw new Error("Internal error");
@@ -763,15 +763,15 @@ const it = (l) => (jt((A, t) => Wt(EA, A, t)), AA = hA = l.sourceLocale, tA = ne
763
763
  throw new Error("Invalid locale code");
764
764
  g++;
765
765
  const A = g;
766
- return nA = l, v.settled && (v = new MA()), qA({ status: "loading", loadingLocale: l }), (l === hA ? (
766
+ return qA = l, v.settled && (v = new MA()), nA({ 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
771
  ) : aA(l)).then((r) => {
772
- g === A && (AA = l, nA = void 0, EA = r.templates, qA({ status: "ready", readyLocale: l }), v.resolve());
772
+ g === A && (AA = l, qA = void 0, EA = r.templates, nA({ status: "ready", readyLocale: l }), v.resolve());
773
773
  }, (r) => {
774
- g === A && (qA({
774
+ g === A && (nA({
775
775
  status: "error",
776
776
  errorLocale: l,
777
777
  errorMessage: r.toString()
@@ -831,7 +831,7 @@ const Pt = ft(class extends ot {
831
831
  return f;
832
832
  }
833
833
  });
834
- var mt = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, C = (l, A, t, r) => {
834
+ var mt = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, Y = (l, A, t, r) => {
835
835
  for (var e = r > 1 ? void 0 : r ? Zt(A, t) : A, p = l.length - 1, V; p >= 0; p--)
836
836
  (V = l[p]) && (e = (r ? V(A, t, e) : V(e)) || e);
837
837
  return r && e && mt(A, t, e), e;
@@ -927,19 +927,19 @@ o.styles = N`
927
927
  box-shadow: none;
928
928
  }
929
929
  `;
930
- C([
930
+ Y([
931
931
  j({ type: String })
932
932
  ], o.prototype, "type", 2);
933
- C([
933
+ Y([
934
934
  j({ type: String })
935
935
  ], o.prototype, "label", 2);
936
- C([
936
+ Y([
937
937
  j({ type: Boolean })
938
938
  ], o.prototype, "disabled", 2);
939
- C([
939
+ Y([
940
940
  j({ type: String })
941
941
  ], o.prototype, "variant", 2);
942
- o = C([
942
+ o = Y([
943
943
  R("xact-button")
944
944
  ], o);
945
945
  var Nt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, kA = (l, A, t, r) => {
@@ -953,22 +953,110 @@ let E = class extends X {
953
953
  }
954
954
  render() {
955
955
  return T`
956
- <div class="step-1">
957
- <div class="step-1-container-right">
958
- <p class="step-1-header">
959
- ${q("Forget the tape.. Find the ideal size with your device")}
960
- </p>
961
- <p class="step-1-description">
962
- ${q("As fast as facial recognition. And don't worry, we don't store or share your image.")}
963
- </p>
964
- <form>
956
+ <div class="component-content">
957
+ <div class="header-section">
958
+ <h2 class="header-text">${n("Before you begin")}</h2>
959
+ <p class="description-text">
960
+ ${n("Maintain an upright posture with your arms away from your body.")}
961
+ </p>
962
+ </div>
963
+
964
+ <div class="main-section">
965
+ <div class="tips-section">
966
+ <h3>${n("Tips")}</h3>
967
+ <div class="tip-item">
968
+ <span class="tip-title">${n("Good Lighting")}</span>
969
+ <p class="tip-text">${n("Choose a well-lit area where you can see your image clearly.")}</p>
970
+ </div>
971
+ <div class="tip-item">
972
+ <span class="tip-title">${n("Clean Background")}</span>
973
+ <p class="tip-text">${n("Position yourself against a plain background.")}</p>
974
+ </div>
975
+ <div class="tip-item">
976
+ <span class="tip-title">${n("Clothes")}</span>
977
+ <p class="tip-text">${n("Wear clothes that you usually wear on a daily basis.")}</p>
978
+ </div>
979
+ <div class="tip-item">
980
+ <span class="tip-title">${n("Framing")}</span>
981
+ <p class="tip-text">${n("Make sure your entire body is visible. The app will guide you.")}</p>
982
+ </div>
983
+
984
+ <form>
965
985
  <label for="height-input">
966
- ${q("To get started, please tell us your height.")}
986
+ ${n("To get started, please tell us your height.")}
967
987
  </label>
968
988
  <input id="height-input" type="number" min="50" max="300"
969
- placeholder=${q("Height (cm)")} required tabindex="1"/>
970
- <xact-button class="xact-button"
971
- @click=${() => {
989
+ placeholder=${n("Height (cm)")} required tabindex="1"/>
990
+ </form>
991
+ </div>
992
+
993
+ <div class="images-section">
994
+ <svg width="300" height="245" viewBox="0 0 300 245" fill="none" xmlns="http://www.w3.org/2000/svg">
995
+ <path d="M162.404 20.4343H136.498V72.1681H162.404V20.4343Z" fill="#6D4A44"/>
996
+ <path d="M136.932 59.7042C137.111 56.7025 134.822 54.1243 131.82 53.9458C128.818 53.7673 126.24 56.0565 126.062 59.0582C126.055 59.1711 126.058 59.2815 126.058 59.3928L124.039 94.2659C123.861 97.2584 126.143 99.8282 129.136 100.007C132.128 100.184 134.698 97.9027 134.876 94.9102L136.896 60.0371C136.909 59.9267 136.926 59.8171 136.932 59.7042Z" fill="#F3A396"/>
997
+ <mask id="mask0_2344_2604" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="124" y="53" width="13" height="48">
998
+ <path d="M136.932 59.7042C137.111 56.7025 134.822 54.1243 131.82 53.9458C128.818 53.7673 126.24 56.0565 126.062 59.0582C126.055 59.1711 126.058 59.2815 126.058 59.3928L124.039 94.2659C123.861 97.2584 126.143 99.8282 129.136 100.007C132.128 100.184 134.698 97.9027 134.876 94.9102L136.896 60.0371C136.909 59.9267 136.926 59.8171 136.932 59.7042Z" fill="white"/>
999
+ </mask>
1000
+ <g mask="url(#mask0_2344_2604)">
1001
+ <path d="M138.204 70.4743C138.204 70.4743 128.75 69.6556 123.107 62.3022C123.107 62.3022 124.147 50.6029 133.085 52.4395C142.023 54.2771 138.204 70.4743 138.204 70.4743Z" fill="#F7E6D5"/>
1002
+ </g>
1003
+ <path d="M134.919 94.4893C135.097 91.4877 132.808 88.9095 129.806 88.731C126.805 88.5524 124.226 90.8417 124.048 93.8433C124.041 93.9562 124.045 94.0667 124.045 94.1771L123.549 131.903L129.384 131.406L134.882 94.8214C134.895 94.711 134.912 94.6022 134.919 94.4893Z" fill="#F3A396"/>
1004
+ <path d="M127.448 128.38C125.338 127.785 124.524 128.711 123.862 129.98L123.867 129.981C123.865 129.984 123.863 129.987 123.861 129.99C120.107 136.961 119.557 140.72 118.696 143.533C117.789 146.491 118.801 151.911 120.051 151.807C121.3 151.702 121.169 149.335 120.874 147.594C120.579 145.852 122.125 143.274 123.483 140.942C124.839 138.615 125.307 139.49 125.307 139.49L125.488 141.923C125.556 142.824 126.291 143.466 127.063 143.259C127.658 143.106 127.975 142.544 128.028 141.932L129.389 131.219C129.387 131.218 129.7 129.014 127.448 128.38Z" fill="#F3A396"/>
1005
+ <path d="M161.996 59.7042C161.818 56.7025 164.107 54.1243 167.108 53.9458C170.11 53.7673 172.688 56.0565 172.867 59.0582C172.873 59.1711 172.87 59.2815 172.87 59.3928L174.889 94.2659C175.067 97.2584 172.785 99.8282 169.793 100.007C166.8 100.184 164.23 97.9027 164.052 94.9102L162.033 60.0371C162.019 59.9267 162.003 59.8171 161.996 59.7042Z" fill="#F3A396"/>
1006
+ <mask id="mask1_2344_2604" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="161" y="53" width="14" height="48">
1007
+ <path d="M161.996 59.7042C161.818 56.7025 164.107 54.1243 167.108 53.9458C170.11 53.7673 172.688 56.0565 172.867 59.0582C172.873 59.1711 172.87 59.2815 172.87 59.3928L174.889 94.2659C175.067 97.2584 172.785 99.8282 169.793 100.007C166.8 100.184 164.23 97.9027 164.052 94.9102L162.033 60.0371C162.019 59.9267 162.003 59.8171 161.996 59.7042Z" fill="white"/>
1008
+ </mask>
1009
+ <g mask="url(#mask1_2344_2604)">
1010
+ <path d="M160.725 70.4743C160.725 70.4743 170.178 69.6556 175.821 62.3022C175.821 62.3022 174.782 50.6029 165.844 52.4395C156.906 54.2771 160.725 70.4743 160.725 70.4743Z" fill="#F7E6D5"/>
1011
+ </g>
1012
+ <path d="M164.008 94.4893C163.829 91.4877 166.119 88.9095 169.12 88.731C172.122 88.5524 174.7 90.8417 174.879 93.8433C174.885 93.9562 174.882 94.0667 174.882 94.1771L175.378 131.903L169.543 131.406L164.045 94.8214C164.031 94.711 164.014 94.6022 164.008 94.4893Z" fill="#F3A396"/>
1013
+ <path d="M180.234 143.533C179.372 140.72 178.822 136.962 175.069 129.99C175.067 129.987 175.065 129.984 175.062 129.981L175.067 129.98C174.405 128.711 173.591 127.786 171.481 128.38C169.229 129.014 169.542 131.218 169.542 131.218L170.902 141.931C170.956 142.543 171.273 143.105 171.868 143.258C172.64 143.466 173.375 142.823 173.442 141.923L173.624 139.489C173.624 139.489 174.092 138.615 175.447 140.941C176.807 143.273 178.352 145.852 178.056 147.593C177.761 149.334 177.63 151.702 178.879 151.806C180.129 151.912 181.141 146.492 180.234 143.533Z" fill="#F3A396"/>
1014
+ <path d="M149.396 46.7827C138.982 46.7827 128.748 54.6318 128.748 54.6318L136 75.7339C137.155 79.0951 137.306 82.7203 136.435 86.1661L133.953 95.9807H165.719L162.7 86.4759C161.629 82.9661 161.669 79.2113 162.815 75.7256L170.54 54.9474C170.54 54.9474 160.432 46.7827 149.396 46.7827Z" fill="#F7E6D5"/>
1015
+ <path d="M134.93 50.8313C134.93 50.8313 145.083 64.5683 165.278 51.4997C165.278 51.4997 158.77 47.0176 149.365 46.6605C142.83 46.4114 134.93 50.8313 134.93 50.8313Z" fill="#F3A396"/>
1016
+ <path d="M133.868 69.5197L131.244 61.8865" stroke="#EFE3D8" stroke-width="1.04569" stroke-miterlimit="10"/>
1017
+ <path d="M165.141 69.5288L167.767 61.8865" stroke="#EFE3D8" stroke-width="1.04569" stroke-miterlimit="10"/>
1018
+ <path d="M165.721 95.9817H150.106H149.573H133.957C133.957 95.9817 127.833 105.494 129.387 122.399H149.573H150.106H170.291C171.352 104.097 165.721 95.9817 165.721 95.9817Z" fill="#242930"/>
1019
+ <path d="M138.972 174.134C144.349 174.134 148.706 169.775 148.706 164.4V121.207C148.706 115.831 144.348 111.473 138.972 111.473C133.596 111.473 129.238 115.832 129.238 121.207V164.4C129.238 169.775 133.597 174.134 138.972 174.134Z" fill="#242930"/>
1020
+ <path d="M134.605 216.849L135.36 228.943H144.237V216.849H134.605Z" fill="#F3A396"/>
1021
+ <path d="M145.192 227.725L145.307 235.072H117.658V234.857C117.658 233.165 118.631 231.624 120.159 230.897L133.707 225.491C134.194 225.259 134.82 225.269 135.191 225.661C136.943 227.508 138.865 230.518 144.21 227.252C144.597 227.016 145.106 227.279 145.192 227.725Z" fill="#131321"/>
1022
+ <path d="M117.661 237H145.311V235.072H117.661V237Z" fill="white"/>
1023
+ <path d="M138.972 155.314C133.596 155.314 129.238 159.672 129.238 165.048V220.255H148.707V165.048C148.706 159.672 144.349 155.314 138.972 155.314Z" fill="#242930"/>
1024
+ <path d="M148.71 211.719H128.131V220.255H148.71V211.719Z" fill="#21262D"/>
1025
+ <path d="M160.554 174.134C165.931 174.134 170.288 169.775 170.288 164.4V121.207C170.288 115.831 165.93 111.473 160.554 111.473C155.178 111.473 150.82 115.832 150.82 121.207V164.4C150.82 169.775 155.179 174.134 160.554 174.134Z" fill="#242930"/>
1026
+ <path d="M165.395 216.849L164.641 228.943H155.764V216.849H165.395Z" fill="#F3A396"/>
1027
+ <path d="M154.807 227.725L154.691 235.072H182.341V234.857C182.341 233.165 181.367 231.624 179.84 230.897L166.292 225.491C165.805 225.259 165.178 225.269 164.807 225.661C163.056 227.508 161.134 230.518 155.789 227.252C155.401 227.016 154.893 227.279 154.807 227.725Z" fill="#131321"/>
1028
+ <path d="M182.341 235.072H154.691V237H182.341V235.072Z" fill="white"/>
1029
+ <path d="M160.554 155.314C155.178 155.314 150.82 159.672 150.82 165.048V220.255H170.289V165.048C170.289 159.672 165.931 155.314 160.554 155.314Z" fill="#242930"/>
1030
+ <path d="M171.399 211.719H150.82V220.255H171.399V211.719Z" fill="#21262D"/>
1031
+ <path d="M149.367 52.5674C146.712 52.5674 144.561 50.416 144.561 47.7615V38.436H154.172V47.7607C154.172 50.4152 152.02 52.5674 149.367 52.5674Z" fill="#F3A396"/>
1032
+ <path d="M143.75 37.7584C143.75 37.7584 145.894 42.0529 148.861 42.9206C149.654 43.1523 150.5 43.0734 151.264 42.7604C152.381 42.3029 153.806 41.0466 154.171 39.8152V37.1133C154.171 37.1133 149.137 41.6236 143.75 37.7584Z" fill="#1A1A1A"/>
1033
+ <path d="M149.425 34.7768C156.588 34.7768 162.396 28.7826 162.396 21.3885C162.396 13.9944 156.588 8.00024 149.425 8.00024C142.261 8.00024 136.453 13.9944 136.453 21.3885C136.453 28.7826 142.261 34.7768 149.425 34.7768Z" fill="#6D4A44"/>
1034
+ <path d="M159.489 32.5309C161.678 34.1476 165.466 26.7942 163.332 25.0521C161.198 23.3109 160.028 26.4994 160.028 26.4994L159.469 28.6466L158.881 31.5744V32.2287L159.489 32.5309Z" fill="#F3A396"/>
1035
+ <path d="M162.643 27.2678C162.643 27.2678 161.056 26.7381 159.93 29.0755" stroke="#D26665" stroke-width="0.514843" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
1036
+ <path d="M160.701 27.9324C160.701 27.9324 162.428 28.8557 161.287 30.2448" stroke="#D26665" stroke-width="0.514843" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
1037
+ <path d="M160.27 21.432C160.27 26.0395 159.629 30.0159 158.989 32.8374C158.362 35.5999 156.599 37.5313 154.108 39.0848L153.655 39.3679C151.019 41.012 147.613 41.051 144.937 39.4659C142.237 37.8675 140.347 35.761 139.765 32.7959C138.707 27.4037 138.592 21.4311 138.592 21.4311C138.592 21.4311 137.586 9.79986 149.277 10.0257C160.967 10.2524 160.27 21.432 160.27 21.432Z" fill="#F3A396"/>
1038
+ <path d="M139.414 32.5307C137.224 34.1474 133.436 26.794 135.57 25.0519C137.704 23.3107 139.073 26.8388 139.073 26.8388L139.461 28.7618L139.962 31.5567V32.2351L139.414 32.5307Z" fill="#F3A396"/>
1039
+ <path d="M136.262 27.2678C136.262 27.2678 137.848 26.7381 138.975 29.0755" stroke="#D26665" stroke-width="0.514843" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
1040
+ <path d="M138.206 27.9324C138.206 27.9324 136.479 28.8557 137.62 30.2448" stroke="#D26665" stroke-width="0.514843" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
1041
+ <path d="M148.387 28.2681V29.5468C148.387 29.6871 148.414 29.8216 148.463 29.9445C148.657 30.4286 149.214 30.6602 149.717 30.5257L150.318 30.2376" stroke="#D26665" stroke-width="0.514843" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
1042
+ <path d="M145.084 25.7994C145.084 26.3266 144.656 26.7542 144.129 26.7542C143.601 26.7542 143.174 26.3266 143.174 25.7994C143.174 25.2721 143.601 24.8445 144.129 24.8445C144.656 24.8445 145.084 25.2721 145.084 25.7994Z" fill="#1A1A1A"/>
1043
+ <path d="M154.888 25.7994C154.888 26.3266 154.461 26.7542 153.933 26.7542C153.406 26.7542 152.979 26.3266 152.979 25.7994C152.979 25.2721 153.406 24.8445 153.933 24.8445C154.461 24.8445 154.888 25.2721 154.888 25.7994Z" fill="#1A1A1A"/>
1044
+ <path d="M145.533 32.0991C145.533 32.0991 147.097 33.0764 149.16 33.0764C151.223 33.0764 152.787 32.0991 152.787 32.0991" stroke="#D26665" stroke-width="0.514843" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
1045
+ <path d="M140.502 24.0441C140.502 24.0441 143.455 23.1307 146.382 22.9763C146.382 22.9763 145.465 21.3928 143.628 21.8196C141.791 22.2472 140.502 24.0441 140.502 24.0441Z" fill="#6D4A44"/>
1046
+ <path d="M157.516 24.0441C157.516 24.0441 154.563 23.1307 151.637 22.9763C151.637 22.9763 152.553 21.3928 154.39 21.8196C156.227 22.2472 157.516 24.0441 157.516 24.0441Z" fill="#6D4A44"/>
1047
+ <path d="M161.634 21.4461C161.634 21.4461 160.281 10.861 151.087 9.6321C151.087 9.6321 143.751 9.07661 141.199 12.6852C140.1 13.5637 138.553 15.6669 137.967 18.5864C137.064 23.0926 138.204 22.895 138.204 22.895C138.204 22.895 141.851 21.3937 142.414 16.3719C144.587 18.5582 150.922 22.1792 161.634 21.4461Z" fill="#6D4A44"/>
1048
+ </svg>
1049
+
1050
+
1051
+
1052
+
1053
+ </div>
1054
+
1055
+
1056
+ </div>
1057
+
1058
+ <xact-button class="xact-button buttons"
1059
+ @click=${() => {
972
1060
  var A;
973
1061
  const l = this.shadowRoot.querySelector("#height-input");
974
1062
  if (l != null && l.value) {
@@ -976,53 +1064,79 @@ let E = class extends X {
976
1064
  this.height = t, (A = this.onStartMeasurement) == null || A.call(this, t);
977
1065
  }
978
1066
  }}
979
- label="${q("Let's go!")}"
980
- ></xact-button>
981
- </div>
1067
+ label="${n("Let's go!")}"
1068
+ ></xact-button>
1069
+
982
1070
  `;
983
1071
  }
984
1072
  };
985
1073
  E.styles = N`
986
- :host {
987
- display: block;
988
- font-family: "Lato", sans-serif;
989
- box-sizing: border-box;
990
- display: flex;
991
- justify-content: center;
992
- align-items: center;
993
- height: 100vh;
994
- }
1074
+ :host {
1075
+ display: flex;
1076
+ justify-content: center;
1077
+ align-items: flex-start;
1078
+ font-family: "Lato", sans-serif;
1079
+ box-sizing: border-box;
1080
+ padding: 16px;
1081
+ width: 100%;
1082
+ }
995
1083
 
996
- .step-1 {
997
- display: flex;
998
- flex-direction: column;
999
- align-items: center;
1000
- justify-content: center;
1001
- gap: 16px;
1002
- padding: 24px;
1003
- max-width: 400px;
1004
- text-align: center;
1005
- }
1084
+ .component-content {
1085
+ display: flex;
1086
+ flex-direction: column;
1087
+ gap: 12px;
1088
+ width: 100%;
1089
+ max-width: 960px;
1090
+ }
1006
1091
 
1007
- .step-1-header {
1008
- font-size: 24px;
1009
- font-weight: 700;
1010
- color: #000;
1011
- line-height: 1.2;
1012
- }
1092
+ .header-section {
1093
+ text-align: left;
1094
+ }
1013
1095
 
1014
- .step-1-description {
1015
- font-size: 16px;
1016
- font-weight: 400;
1017
- color: #333;
1018
- line-height: 1.6;
1019
- margin-bottom: 8px;
1020
- }
1096
+ .header-text {
1097
+ font-size: 24px;
1098
+ font-weight: 700;
1099
+ color: #000;
1100
+ margin-bottom: 8px;
1101
+ line-height: 1.2;
1102
+ }
1103
+
1104
+ .description-text {
1105
+ font-size: 16px;
1106
+ font-weight: 400;
1107
+ color: #333;
1108
+ line-height: 1.6;
1109
+ }
1021
1110
 
1022
- form {
1111
+ .main-section {
1112
+ display: flex;
1113
+ flex-direction: row;
1114
+ gap: 24px;
1115
+ }
1116
+
1117
+ .images-section {
1118
+ flex: 1;
1119
+ display: flex;
1120
+ justify-content: center;
1121
+ align-items: center;
1122
+ }
1123
+
1124
+ .images-section svg {
1125
+ width: 100%;
1126
+ max-width: 400px;
1127
+ height: auto;
1128
+ }
1129
+
1130
+ .tips-section {
1131
+ flex: 1;
1132
+ display: flex;
1133
+ flex-direction: column;
1134
+ gap: 8px;
1135
+
1136
+ form {
1023
1137
  display: flex;
1024
1138
  flex-direction: column;
1025
- align-items: center;
1139
+ align-items: start;
1026
1140
  gap: 16px;
1027
1141
  width: 100%;
1028
1142
  }
@@ -1030,7 +1144,7 @@ E.styles = N`
1030
1144
  label {
1031
1145
  font-size: 16px;
1032
1146
  color: #333;
1033
- text-align: center;
1147
+ text-align: start;
1034
1148
  }
1035
1149
 
1036
1150
  input {
@@ -1042,30 +1156,100 @@ E.styles = N`
1042
1156
  border-radius: 6px;
1043
1157
  box-sizing: border-box;
1044
1158
  font-family: "Lato", sans-serif;
1045
- text-align: center;
1159
+ text-align: start;
1046
1160
  }
1047
1161
 
1048
1162
  input:focus {
1049
1163
  outline: 2px solid var(--brand-primary);
1050
1164
  outline-offset: 2px;
1051
1165
  }
1166
+ }
1052
1167
 
1053
- .xact-button {
1168
+ .xact-button {
1054
1169
  width: 100%;
1055
1170
  max-width: 150px;
1171
+ display: flex;
1172
+ justify-content: center;
1173
+ align-items: center;
1174
+
1056
1175
  }
1057
1176
 
1058
- .footer-link {
1059
- margin-top: 16px;
1060
- font-size: 12px;
1061
- color: #000;
1062
- }
1177
+ .tip-item {
1178
+ margin-bottom: 4px;
1179
+ }
1180
+
1181
+ .tip-title {
1182
+ font-weight: bold;
1183
+ display: inline-block;
1184
+ margin-bottom: 4px;
1185
+ font-size: 14px;
1186
+ }
1187
+
1188
+ .tip-text {
1189
+ margin-top: 0;
1190
+ font-size: 12px;
1191
+ }
1192
+
1193
+ .buttons {
1194
+ display: flex;
1195
+ flex-direction: column;
1196
+ gap: 12px;
1197
+ align-items: center;
1198
+ justify-content: center;
1199
+ width: 100%;
1200
+ max-width: 200px;
1201
+ margin: 0 auto;
1202
+ }
1203
+
1204
+ @media (max-width: 754px) {
1205
+ .main-section {
1206
+ flex-direction: column;
1207
+ gap: 8px;
1208
+ }
1063
1209
 
1064
- .footer-link a {
1065
- text-decoration: none;
1066
- font-weight: bold;
1067
- color: inherit;
1068
- }
1210
+ .images-section {
1211
+ order: -1;
1212
+ max-width: 100%;
1213
+ margin-bottom: 8px;
1214
+ }
1215
+
1216
+ .images-section svg {
1217
+ width: 80%;
1218
+ max-width: 250px;
1219
+ height: auto;
1220
+ margin-bottom: 8px;
1221
+ }
1222
+
1223
+ .tips-section {
1224
+ width: 100%;
1225
+ gap: 4px;
1226
+ }
1227
+
1228
+ .tip-title {
1229
+ font-size: 12px;
1230
+ margin-bottom: 2px;
1231
+ }
1232
+
1233
+ .tip-text {
1234
+ font-size: 10px;
1235
+ line-height: 1.3;
1236
+ }
1237
+
1238
+ .header-text {
1239
+ font-size: 20px;
1240
+ }
1241
+
1242
+ .description-text {
1243
+ font-size: 14px;
1244
+ line-height: 1.4;
1245
+ }
1246
+
1247
+ .buttons {
1248
+ gap: 8px;
1249
+ max-width: 180px;
1250
+ }
1251
+
1252
+ }
1069
1253
  `;
1070
1254
  kA([
1071
1255
  j({ type: Number })
@@ -1075,7 +1259,7 @@ kA([
1075
1259
  ], E.prototype, "onStartMeasurement", 2);
1076
1260
  E = kA([
1077
1261
  R("xact-step-one"),
1078
- Y()
1262
+ C()
1079
1263
  ], E);
1080
1264
  var Ht = Object.getOwnPropertyDescriptor, zt = (l, A, t, r) => {
1081
1265
  for (var e = r > 1 ? void 0 : r ? Ht(A, t) : A, p = l.length - 1, V; p >= 0; p--)
@@ -1087,7 +1271,7 @@ let yA = class extends X {
1087
1271
  return T`
1088
1272
  <footer class="modal-footer">
1089
1273
  <span>
1090
- <span class="powered-by">${q("Powered by")}</span>
1274
+ <span class="powered-by">${n("Powered by")}</span>
1091
1275
  <a tabindex="0" class="xactsize-link" href="http://xactsize.com" target="_blank" rel="noopener">
1092
1276
  <svg class="xactsize-icon" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
1093
1277
  <path d="M5.82764 11.3511L11.5446 7.80768V11.3511H5.82764Z" fill="url(#paint0_linear_2010_6151)"/>
@@ -1169,7 +1353,7 @@ yA.styles = N`
1169
1353
  `;
1170
1354
  yA = zt([
1171
1355
  R("xact-footer"),
1172
- Y()
1356
+ C()
1173
1357
  ], yA);
1174
1358
  var Gt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, D = (l, A, t, r) => {
1175
1359
  for (var e = r > 1 ? void 0 : r ? Ft(A, t) : A, p = l.length - 1, V; p >= 0; p--)
@@ -1220,21 +1404,21 @@ let P = class extends X {
1220
1404
 
1221
1405
 
1222
1406
 
1223
- <h2 class="title">${q("Your ideal size")}</h2>
1407
+ <h2 class="title">${n("Your ideal size")}</h2>
1224
1408
  <p class="description">
1225
- ${q("Based on your measurements and the exact dimensions of the garment, the size recommendation provided is the most accurate for an ideal fit.")}
1409
+ ${n("Based on your measurements and the exact dimensions of the garment, the size recommendation provided is the most accurate for an ideal fit.")}
1226
1410
  </p>
1227
1411
 
1228
1412
  <div class="buttons">
1229
1413
  <xact-button
1230
1414
  variant="outlined"
1231
1415
  @click=${this.onRetry}
1232
- label=${q("Measure Again")}>
1416
+ label=${n("Measure Again")}>
1233
1417
  </xact-button>
1234
1418
 
1235
1419
  <xact-button
1236
1420
  @click=${this.onAccept}
1237
- label=${q("Accept Suggestion")}>
1421
+ label=${n("Accept Suggestion")}>
1238
1422
  </xact-button>
1239
1423
  </div>
1240
1424
  `;
@@ -1329,7 +1513,7 @@ D([
1329
1513
  ], P.prototype, "onRetry", 2);
1330
1514
  P = D([
1331
1515
  R("xact-step-result"),
1332
- Y()
1516
+ C()
1333
1517
  ], P);
1334
1518
  var Mt = Object.defineProperty, ht = Object.getOwnPropertyDescriptor, JA = (l, A, t, r) => {
1335
1519
  for (var e = r > 1 ? void 0 : r ? ht(A, t) : A, p = l.length - 1, V; p >= 0; p--)
@@ -1344,30 +1528,30 @@ let I = class extends X {
1344
1528
  return T`
1345
1529
  <div class="component-content">
1346
1530
  <div class="header-section">
1347
- <h2 class="header-text">${q("Before you begin")}</h2>
1531
+ <h2 class="header-text">${n("Before you begin")}</h2>
1348
1532
  <p class="description-text">
1349
- ${q("To ensure accurate measurements, we'll take two scans: one from the front and one from the side. Maintain an upright posture with your arms slightly away from your body and stretched out. In the side view, stand up straight with your arms straight and aligned with your body.")}
1533
+ ${n("To ensure accurate measurements, we'll take two scans: one from the front and one from the side. Maintain an upright posture with your arms slightly away from your body and stretched out. In the side view, stand up straight with your arms straight and aligned with your body.")}
1350
1534
  </p>
1351
1535
  </div>
1352
1536
 
1353
1537
  <div class="main-section">
1354
1538
  <div class="tips-section">
1355
- <h3>${q("Tips")}</h3>
1539
+ <h3>${n("Tips")}</h3>
1356
1540
  <div class="tip-item">
1357
- <span class="tip-title">${q("Good Lighting")}</span>
1358
- <p class="tip-text">${q("Choose a well-lit area where you can see your image clearly.")}</p>
1541
+ <span class="tip-title">${n("Good Lighting")}</span>
1542
+ <p class="tip-text">${n("Choose a well-lit area where you can see your image clearly.")}</p>
1359
1543
  </div>
1360
1544
  <div class="tip-item">
1361
- <span class="tip-title">${q("Clean Background")}</span>
1362
- <p class="tip-text">${q("Position yourself against a plain background.")}</p>
1545
+ <span class="tip-title">${n("Clean Background")}</span>
1546
+ <p class="tip-text">${n("Position yourself against a plain background.")}</p>
1363
1547
  </div>
1364
1548
  <div class="tip-item">
1365
- <span class="tip-title">${q("Clothes")}</span>
1366
- <p class="tip-text">${q("Wear clothes that you usually wear on a daily basis.")}</p>
1549
+ <span class="tip-title">${n("Clothes")}</span>
1550
+ <p class="tip-text">${n("Wear clothes that you usually wear on a daily basis.")}</p>
1367
1551
  </div>
1368
1552
  <div class="tip-item">
1369
- <span class="tip-title">${q("Framing")}</span>
1370
- <p class="tip-text">${q("Make sure your entire body is visible. The app will guide you.")}</p>
1553
+ <span class="tip-title">${n("Framing")}</span>
1554
+ <p class="tip-text">${n("Make sure your entire body is visible. The app will guide you.")}</p>
1371
1555
  </div>
1372
1556
  </div>
1373
1557
 
@@ -1479,7 +1663,7 @@ let I = class extends X {
1479
1663
  var l;
1480
1664
  (l = this.onStep2advancement) == null || l.call(this);
1481
1665
  }}
1482
- label="${q("To start")}"
1666
+ label="${n("To start")}"
1483
1667
  ></xact-button>
1484
1668
  </div>
1485
1669
  `;
@@ -1634,22 +1818,22 @@ JA([
1634
1818
  ], I.prototype, "onStep2advancement", 2);
1635
1819
  I = JA([
1636
1820
  R("xact-step-informs"),
1637
- Y()
1821
+ C()
1638
1822
  ], I);
1639
1823
  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
- 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, p = l.length - 1, V; p >= 0; p--)
1824
+ var wt = Object.defineProperty, Ct = Object.getOwnPropertyDescriptor, d = (l, A, t, r) => {
1825
+ for (var e = r > 1 ? void 0 : r ? Ct(A, t) : A, p = l.length - 1, V; p >= 0; p--)
1642
1826
  (V = l[p]) && (e = (r ? V(A, t, e) : V(e)) || e);
1643
1827
  return r && e && wt(A, t, e), e;
1644
1828
  };
1645
- const { getLocale: gt, setLocale: PA } = it({
1829
+ const { getLocale: gt, setLocale: PA } = Wt({
1646
1830
  sourceLocale: IA,
1647
1831
  targetLocales: bt,
1648
- loadLocale: (l) => wA(/* @__PURE__ */ Object.assign({ "./generated/locales/pt-BR.ts": () => import("./pt-BR-CKdzgVyT.mjs") }), `./generated/locales/${l}.ts`, 4)
1832
+ loadLocale: (l) => wA(/* @__PURE__ */ Object.assign({ "./generated/locales/pt-BR.ts": () => import("./pt-BR-vVX9MQ4x.mjs") }), `./generated/locales/${l}.ts`, 4)
1649
1833
  });
1650
1834
  let a = class extends X {
1651
1835
  constructor() {
1652
- super(...arguments), this.spinnerFrame = 0, this.apiKey = "DB8mP9gStPfvdyeYbbuCV4Zf3SH745dI", this.tenantId = "1", this.productSku = "", this.apiUrl = "https://xactsize-dotnet-api-923169850574.southamerica-east1.run.app/api/measurer/measure/body", this._culture = "pt-BR", this.measurerKey = "", this._isLocaleLoading = !1, this.showModal = !1, this.step = 1, this.height = 0, this.recommendedSize = "", this.measurements = {}, this.errorMessage = "", this.instructionMessage = q("Position yourself in front of the camera"), this.shouldStartMeasurement = !1, this.isLoading = !1, this.isFetching = !1, this.videoElement = null, this.stream = null, this.poolingTimeout = null, this.instructionMessageTimeout = null, this.cameras = [], this.currentCameraId = null;
1836
+ super(...arguments), this.spinnerFrame = 0, this.apiKey = "DB8mP9gStPfvdyeYbbuCV4Zf3SH745dI", this.tenantId = "1", this.productSku = "123456", this.apiUrl = "https://xactsize-dotnet-api-923169850574.southamerica-east1.run.app/api/measurer/measure/body", this._culture = "pt-BR", this.measurerKey = "", this._isLocaleLoading = !1, this.showModal = !1, this.step = 1, this.height = 0, this.recommendedSize = "", this.measurements = {}, this.errorMessage = "", this.instructionMessage = n("Position yourself in front of the camera"), this.shouldStartMeasurement = !1, this.isLoading = !1, this.isFetching = !1, this.videoElement = null, this.stream = null, this.poolingTimeout = null, this.instructionMessageTimeout = null, this.cameras = [], this.currentCameraId = null;
1653
1837
  }
1654
1838
  firstUpdated() {
1655
1839
  this.startSpinnerAnimation();
@@ -1684,42 +1868,42 @@ let a = class extends X {
1684
1868
  }
1685
1869
  get errorMap() {
1686
1870
  return {
1687
- ERR_RIGHT_ARM_TOO_HIGH: q("Lower your right arm", { id: "ERR_RIGHT_ARM_TOO_HIGH" }),
1688
- ERR_LEFT_ARM_TOO_HIGH: q("Lower your left arm", { id: "ERR_LEFT_ARM_TOO_HIGH" }),
1689
- ERR_ARMS_NOT_RAISED: q("Raise both arms to a 45-degree angle", { id: "ERR_ARMS_NOT_RAISED" }),
1690
- ERR_RIGHT_ARM_NOT_RAISED: q("Raise your right arm to a 45-degree angle", { id: "ERR_RIGHT_ARM_NOT_RAISED" }),
1691
- ERR_LEFT_ARM_NOT_RAISED: q("Raise your left arm to a 45-degree angle", { id: "ERR_LEFT_ARM_NOT_RAISED" }),
1692
- ERR_BODY_LANDMARKS_NOT_DETECTED: q("Ensure your full body is visible in the camera", { id: "ERR_BODY_LANDMARKS_NOT_DETECTED" }),
1693
- ERR_HIPS_NOT_VISIBLE: q("Adjust your position to show your hips", { id: "ERR_HIPS_NOT_VISIBLE" }),
1694
- ERR_TOO_CLOSE_TO_CAMERA: q("Step back from the camera", { id: "ERR_TOO_CLOSE_TO_CAMERA" }),
1695
- ERR_NOT_SIDE_VIEW: q("Turn to show your side profile", { id: "ERR_NOT_SIDE_VIEW" }),
1696
- ERR_INVALID_CLOTHING_TYPE: q("This clothing type is not supported; please contact support", { id: "ERR_INVALID_CLOTHING_TYPE" }),
1697
- ERR_UPPER_BODY_NOT_VISIBLE: q("Adjust your position to show your upper body", { id: "ERR_UPPER_BODY_NOT_VISIBLE" }),
1698
- ERR_HEAD_TOO_CLOSE_TO_EDGE: q("Move your head away from the edge of the frame", { id: "ERR_HEAD_TOO_CLOSE_TO_EDGE" }),
1699
- ERR_LOWER_BODY_NOT_VISIBLE: q("Adjust your position to show your lower body", { id: "ERR_LOWER_BODY_NOT_VISIBLE" }),
1700
- ERR_FEET_TOO_CLOSE_TO_EDGE: q("Move your feet away from the edge of the frame", { id: "ERR_FEET_TOO_CLOSE_TO_EDGE" }),
1701
- ERR_BODY_TOO_CLOSE_TO_EDGE: q("Move your body away from the edge of the frame", { id: "ERR_BODY_TOO_CLOSE_TO_EDGE" }),
1702
- ERR_BODY_TOO_CLOSE_TO_EDGE_MOVE_LEFT: q("Move to the left to center your body", { id: "ERR_BODY_TOO_CLOSE_TO_EDGE_MOVE_LEFT" }),
1703
- ERR_BODY_TOO_CLOSE_TO_EDGE_MOVE_RIGHT: q("Move to the right to center your body", { id: "ERR_BODY_TOO_CLOSE_TO_EDGE_MOVE_RIGHT" }),
1704
- ERR_SHOULDERS_NOT_VISIBLE: q("Adjust your position to show your shoulders", { id: "ERR_SHOULDERS_NOT_VISIBLE" }),
1705
- ERR_HEIGHT_MEASUREMENT_FAILED: q("Stand straight and ensure your full body is visible", { id: "ERR_HEIGHT_MEASUREMENT_FAILED" }),
1706
- ERR_HEAD_POINT_NOT_DETECTED: q("Ensure your head is fully visible in the frame", { id: "ERR_HEAD_POINT_NOT_DETECTED" }),
1707
- ERR_INCORRECT_POSTURE: q("Stand straight with your shoulders back", { id: "ERR_INCORRECT_POSTURE" }),
1708
- ERR_HEM_MEASUREMENT_FAILED: q("Ensure your clothing hem is visible and clear", { id: "ERR_HEM_MEASUREMENT_FAILED" }),
1709
- ERR_SHOULDER_MEASUREMENT_FAILED: q("Keep your shoulders relaxed and visible", { id: "ERR_SHOULDER_MEASUREMENT_FAILED" }),
1710
- ERR_ARM_NOT_STRETCHED: q("Stretch your arms fully", { id: "ERR_ARM_NOT_STRETCHED" }),
1711
- ERR_LEGS_NOT_DETECTED: q("Ensure your legs are fully visible in the frame", { id: "ERR_LEGS_NOT_DETECTED" }),
1712
- ERR_HIPS_MEASUREMENT_FAILED: q("Stand straight and ensure your hips are visible", { id: "ERR_HIPS_MEASUREMENT_FAILED" }),
1713
- ERR_WAIST_MEASUREMENT_FAILED: q("Stand straight and ensure your waist is visible", { id: "ERR_WAIST_MEASUREMENT_FAILED" }),
1714
- ERR_INVALID_MEASURE_SIDE_VIEW: q("Turn to show a clear side profile", { id: "ERR_INVALID_MEASURE_SIDE_VIEW" }),
1715
- ERR_INVALID_BODY_HEIGHT_TYPE: q("Ensure your full body is visible for height measurement", { id: "ERR_INVALID_BODY_HEIGHT_TYPE" }),
1716
- ERR_IMAGE_LOAD_FAILED: q("Try again later; the image could not be processed", { id: "ERR_IMAGE_LOAD_FAILED" }),
1717
- ERR_HEIGHT_INVALID: q("Height must be between 50 and 300 cm", { id: "ERR_HEIGHT_INVALID" })
1871
+ ERR_RIGHT_ARM_TOO_HIGH: n("Lower your right arm", { id: "ERR_RIGHT_ARM_TOO_HIGH" }),
1872
+ ERR_LEFT_ARM_TOO_HIGH: n("Lower your left arm", { id: "ERR_LEFT_ARM_TOO_HIGH" }),
1873
+ ERR_ARMS_NOT_RAISED: n("Raise both arms to a 45-degree angle", { id: "ERR_ARMS_NOT_RAISED" }),
1874
+ ERR_RIGHT_ARM_NOT_RAISED: n("Raise your right arm to a 45-degree angle", { id: "ERR_RIGHT_ARM_NOT_RAISED" }),
1875
+ ERR_LEFT_ARM_NOT_RAISED: n("Raise your left arm to a 45-degree angle", { id: "ERR_LEFT_ARM_NOT_RAISED" }),
1876
+ ERR_BODY_LANDMARKS_NOT_DETECTED: n("Ensure your full body is visible in the camera", { id: "ERR_BODY_LANDMARKS_NOT_DETECTED" }),
1877
+ ERR_HIPS_NOT_VISIBLE: n("Adjust your position to show your hips", { id: "ERR_HIPS_NOT_VISIBLE" }),
1878
+ ERR_TOO_CLOSE_TO_CAMERA: n("Step back from the camera", { id: "ERR_TOO_CLOSE_TO_CAMERA" }),
1879
+ ERR_NOT_SIDE_VIEW: n("Turn to show your side profile", { id: "ERR_NOT_SIDE_VIEW" }),
1880
+ ERR_INVALID_CLOTHING_TYPE: n("This clothing type is not supported; please contact support", { id: "ERR_INVALID_CLOTHING_TYPE" }),
1881
+ ERR_UPPER_BODY_NOT_VISIBLE: n("Adjust your position to show your upper body", { id: "ERR_UPPER_BODY_NOT_VISIBLE" }),
1882
+ ERR_HEAD_TOO_CLOSE_TO_EDGE: n("Move your head away from the edge of the frame", { id: "ERR_HEAD_TOO_CLOSE_TO_EDGE" }),
1883
+ ERR_LOWER_BODY_NOT_VISIBLE: n("Adjust your position to show your lower body", { id: "ERR_LOWER_BODY_NOT_VISIBLE" }),
1884
+ ERR_FEET_TOO_CLOSE_TO_EDGE: n("Move your feet away from the edge of the frame", { id: "ERR_FEET_TOO_CLOSE_TO_EDGE" }),
1885
+ ERR_BODY_TOO_CLOSE_TO_EDGE: n("Move your body away from the edge of the frame", { id: "ERR_BODY_TOO_CLOSE_TO_EDGE" }),
1886
+ ERR_BODY_TOO_CLOSE_TO_EDGE_MOVE_LEFT: n("Move to the left to center your body", { id: "ERR_BODY_TOO_CLOSE_TO_EDGE_MOVE_LEFT" }),
1887
+ ERR_BODY_TOO_CLOSE_TO_EDGE_MOVE_RIGHT: n("Move to the right to center your body", { id: "ERR_BODY_TOO_CLOSE_TO_EDGE_MOVE_RIGHT" }),
1888
+ ERR_SHOULDERS_NOT_VISIBLE: n("Adjust your position to show your shoulders", { id: "ERR_SHOULDERS_NOT_VISIBLE" }),
1889
+ ERR_HEIGHT_MEASUREMENT_FAILED: n("Stand straight and ensure your full body is visible", { id: "ERR_HEIGHT_MEASUREMENT_FAILED" }),
1890
+ ERR_HEAD_POINT_NOT_DETECTED: n("Ensure your head is fully visible in the frame", { id: "ERR_HEAD_POINT_NOT_DETECTED" }),
1891
+ ERR_INCORRECT_POSTURE: n("Stand straight with your shoulders back", { id: "ERR_INCORRECT_POSTURE" }),
1892
+ ERR_HEM_MEASUREMENT_FAILED: n("Ensure your clothing hem is visible and clear", { id: "ERR_HEM_MEASUREMENT_FAILED" }),
1893
+ ERR_SHOULDER_MEASUREMENT_FAILED: n("Keep your shoulders relaxed and visible", { id: "ERR_SHOULDER_MEASUREMENT_FAILED" }),
1894
+ ERR_ARM_NOT_STRETCHED: n("Stretch your arms fully", { id: "ERR_ARM_NOT_STRETCHED" }),
1895
+ ERR_LEGS_NOT_DETECTED: n("Ensure your legs are fully visible in the frame", { id: "ERR_LEGS_NOT_DETECTED" }),
1896
+ ERR_HIPS_MEASUREMENT_FAILED: n("Stand straight and ensure your hips are visible", { id: "ERR_HIPS_MEASUREMENT_FAILED" }),
1897
+ ERR_WAIST_MEASUREMENT_FAILED: n("Stand straight and ensure your waist is visible", { id: "ERR_WAIST_MEASUREMENT_FAILED" }),
1898
+ ERR_INVALID_MEASURE_SIDE_VIEW: n("Turn to show a clear side profile", { id: "ERR_INVALID_MEASURE_SIDE_VIEW" }),
1899
+ ERR_INVALID_BODY_HEIGHT_TYPE: n("Ensure your full body is visible for height measurement", { id: "ERR_INVALID_BODY_HEIGHT_TYPE" }),
1900
+ ERR_IMAGE_LOAD_FAILED: n("Try again later; the image could not be processed", { id: "ERR_IMAGE_LOAD_FAILED" }),
1901
+ ERR_HEIGHT_INVALID: n("Height must be between 50 and 300 cm", { id: "ERR_HEIGHT_INVALID" })
1718
1902
  };
1719
1903
  }
1720
1904
  getTranslatedMessage(l) {
1721
1905
  const A = this.errorMap[l];
1722
- return A || (console.info("Error code is missing", l), q("An unexpected error occurred"));
1906
+ return A || (console.info("Error code is missing", l), n("An unexpected error occurred"));
1723
1907
  }
1724
1908
  connectedCallback() {
1725
1909
  super.connectedCallback(), document.addEventListener("keydown", this.handleEscKey.bind(this));
@@ -1731,7 +1915,7 @@ let a = class extends X {
1731
1915
  l.key === "Escape" && this.showModal && this.closeModal();
1732
1916
  }
1733
1917
  openModal() {
1734
- this.showModal = !0, this.step = 1, this.height = 0, this.instructionMessage = q("Position yourself in front of the camera");
1918
+ this.showModal = !0, this.step = 1, this.height = 0, this.instructionMessage = n("Position yourself in front of the camera");
1735
1919
  }
1736
1920
  closeModal() {
1737
1921
  this.showModal = !1, this.onMeasurementCanceled && typeof this.onMeasurementCanceled == "function" && this.onMeasurementCanceled(), this.stopPolling(), this.dispatchEvent(new CustomEvent("measurementCanceled", { detail: {} }));
@@ -1744,7 +1928,7 @@ let a = class extends X {
1744
1928
  this.step = 3, this.errorMessage = "";
1745
1929
  }
1746
1930
  async startMeasurement() {
1747
- this.step = 2, this.errorMessage = "", this.shouldStartMeasurement = !0;
1931
+ this.step = 3, this.errorMessage = "", this.shouldStartMeasurement = !0;
1748
1932
  }
1749
1933
  updated(l) {
1750
1934
  super.updated(l), l.has("step") && this.step === 3 && this.shouldStartMeasurement && (this.initializeMeasurement(), this.shouldStartMeasurement = !1);
@@ -1754,7 +1938,7 @@ let a = class extends X {
1754
1938
  try {
1755
1939
  this.stream = await navigator.mediaDevices.getUserMedia({ video: !0 }), this.videoElement && (this.videoElement.srcObject = this.stream, await this.videoElement.play(), await this.loadCameras(), this.startPolling());
1756
1940
  } catch {
1757
- this.errorMessage = q("Error accessing webcam");
1941
+ this.errorMessage = n("Error accessing webcam");
1758
1942
  }
1759
1943
  }
1760
1944
  async loadCameras() {
@@ -1775,7 +1959,7 @@ let a = class extends X {
1775
1959
  video: { deviceId: { exact: this.currentCameraId } }
1776
1960
  }), this.videoElement && (this.videoElement.srcObject = this.stream, await this.videoElement.play(), this.startPolling());
1777
1961
  } catch {
1778
- this.errorMessage = q("Error switching camera");
1962
+ this.errorMessage = n("Error switching camera");
1779
1963
  } finally {
1780
1964
  this.isLoading = !1;
1781
1965
  }
@@ -1790,7 +1974,7 @@ let a = class extends X {
1790
1974
  const r = await new Promise(
1791
1975
  (V) => A.toBlob((S) => V(S), "image/jpeg")
1792
1976
  ), e = new File([r], "frame.jpg", { type: "image/jpeg" }), p = new FormData();
1793
- p.append("image", e), p.append("height", this.height.toString()), p.append("product_sku", this.productSku), this.measurerKey && p.append("measurerKey", this.measurerKey);
1977
+ p.append("image", e), p.append("height", this.height.toString()), p.append("productSku", this.productSku), this.measurerKey && p.append("measurerKey", this.measurerKey);
1794
1978
  try {
1795
1979
  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
1980
  const S = await (await fetch(this.apiUrl, {
@@ -1800,16 +1984,15 @@ let a = class extends X {
1800
1984
  Accept: "application/json",
1801
1985
  "Cache-Control": "no-store",
1802
1986
  Pragma: "no-cache",
1803
- "X-Api-Key": this.apiKey,
1804
- "X-Tenant-Id": this.tenantId
1987
+ "X-Api-Key": this.apiKey
1805
1988
  }
1806
1989
  })).json();
1807
- this.isFetching = !1, this.isLoading = !1, this.errorMessage = S, S.success ? (this.measurements = S.measurements, this.recommendedSize = S.ChosenSize, this.instructionMessage = q("Measurement successful!"), this.stopPolling(), this.step = 4) : (this.instructionMessage = this.getTranslatedMessage(S.message || "UNKNOWN_ERROR"), this.instructionMessageTimeout = setTimeout(() => {
1808
- this.recommendedSize || (this.instructionMessage = q("Position yourself in front of the camera"), this.poolingTimeout = setTimeout(l, 0));
1990
+ this.isFetching = !1, this.isLoading = !1, this.errorMessage = JSON.stringify(S), S.success ? (this.measurements = S.measurements, this.recommendedSize = S.chosenSize, this.instructionMessage = n("Measurement successful!"), this.stopPolling(), this.step = 4) : (this.instructionMessage = this.getTranslatedMessage(S.message || "UNKNOWN_ERROR"), this.instructionMessageTimeout = setTimeout(() => {
1991
+ this.recommendedSize || (this.instructionMessage = n("Position yourself in front of the camera"), this.poolingTimeout = setTimeout(l, 0));
1809
1992
  }, 2e3));
1810
1993
  } catch {
1811
- this.isFetching = !1, this.isLoading = !1, this.instructionMessage = q("Error processing measurement"), this.instructionMessageTimeout = setTimeout(() => {
1812
- this.recommendedSize || (this.instructionMessage = q("Position yourself in front of the camera"), this.poolingTimeout = setTimeout(l, 0));
1994
+ this.isFetching = !1, this.isLoading = !1, this.instructionMessage = n("Error processing measurement"), this.instructionMessageTimeout = setTimeout(() => {
1995
+ this.recommendedSize || (this.instructionMessage = n("Position yourself in front of the camera"), this.poolingTimeout = setTimeout(l, 0));
1813
1996
  }, 2e3);
1814
1997
  }
1815
1998
  };
@@ -1829,7 +2012,7 @@ let a = class extends X {
1829
2012
  }
1830
2013
  render() {
1831
2014
  return this._isLocaleLoading ? T`<div hidden></div>` : T`
1832
- <xact-button @click=${this.openModal} label="${q("Find your Xactsize")}"></xact-button>
2015
+ <xact-button @click=${this.openModal} label="${n("Find your Xactsize")}"></xact-button>
1833
2016
 
1834
2017
  ${this.showModal ? T`
1835
2018
  <div class="modal">
@@ -1856,7 +2039,7 @@ let a = class extends X {
1856
2039
  ${this.step === 3 ? T`
1857
2040
  <div class="step-3">
1858
2041
 
1859
- <p>${q("Ensure your full body is visible in the camera")}</p>
2042
+ <p>${n("Ensure your full body is visible in the camera")}</p>
1860
2043
  <div class='video-container'>
1861
2044
  <div class="video-overlay">
1862
2045
  <h2>${this.instructionMessage}</h2>
@@ -1884,10 +2067,7 @@ let a = class extends X {
1884
2067
  .recommendedSize=${this.recommendedSize}
1885
2068
  .onRetry=${() => this.resetMeasurement()}
1886
2069
  .onAccept=${() => this.acceptMeasurement()}>
1887
- </xact-step-result>
1888
- <div>
1889
- <p>${this.errorMessage}</p>
1890
- </div>
2070
+ </xact-step-result>
1891
2071
  </div>
1892
2072
  ` : ""}
1893
2073
  <xact-footer></xact-footer>
@@ -1899,7 +2079,7 @@ let a = class extends X {
1899
2079
  }
1900
2080
  };
1901
2081
  a.styles = N`
1902
- :host {
2082
+ :host {
1903
2083
  display: block;
1904
2084
  font-family: Arial, sans-serif;
1905
2085
  }
@@ -2164,6 +2344,7 @@ a.styles = N`
2164
2344
  border-radius: 8px;
2165
2345
  flex: 1;
2166
2346
  flex-direction: column;
2347
+ max-height: 70vh;
2167
2348
  }
2168
2349
 
2169
2350
  .video-container button {
@@ -2324,76 +2505,77 @@ a.styles = N`
2324
2505
  font-family: "Lato", -apple-system, system-ui, BlinkMacSystemFont, sans-serif;
2325
2506
  }
2326
2507
 
2508
+
2327
2509
  `;
2328
- u([
2510
+ d([
2329
2511
  j({ type: String, attribute: "api-key" })
2330
2512
  ], a.prototype, "apiKey", 2);
2331
- u([
2513
+ d([
2332
2514
  j({ type: String, attribute: "tenant-id" })
2333
2515
  ], a.prototype, "tenantId", 2);
2334
- u([
2516
+ d([
2335
2517
  j({ type: String, attribute: "product-sku" })
2336
2518
  ], a.prototype, "productSku", 2);
2337
- u([
2519
+ d([
2338
2520
  j({ type: String, attribute: "api-url" })
2339
2521
  ], a.prototype, "apiUrl", 2);
2340
- u([
2522
+ d([
2341
2523
  j({ type: Function, attribute: "onmeasurementaccepted" })
2342
2524
  ], a.prototype, "onMeasurementAccepted", 2);
2343
- u([
2525
+ d([
2344
2526
  j({ type: Function, attribute: "onmeasurementcanceled" })
2345
2527
  ], a.prototype, "onMeasurementCanceled", 2);
2346
- u([
2528
+ d([
2347
2529
  j({ type: String })
2348
2530
  ], a.prototype, "culture", 1);
2349
- u([
2531
+ d([
2350
2532
  J()
2351
2533
  ], a.prototype, "errorMap", 1);
2352
- u([
2534
+ d([
2353
2535
  J()
2354
2536
  ], a.prototype, "measurerKey", 2);
2355
- u([
2537
+ d([
2356
2538
  J()
2357
2539
  ], a.prototype, "_isLocaleLoading", 2);
2358
- u([
2540
+ d([
2359
2541
  J()
2360
2542
  ], a.prototype, "showModal", 2);
2361
- u([
2543
+ d([
2362
2544
  J()
2363
2545
  ], a.prototype, "step", 2);
2364
- u([
2546
+ d([
2365
2547
  J()
2366
2548
  ], a.prototype, "height", 2);
2367
- u([
2549
+ d([
2368
2550
  J()
2369
2551
  ], a.prototype, "recommendedSize", 2);
2370
- u([
2552
+ d([
2371
2553
  J()
2372
2554
  ], a.prototype, "measurements", 2);
2373
- u([
2555
+ d([
2374
2556
  J()
2375
2557
  ], a.prototype, "errorMessage", 2);
2376
- u([
2558
+ d([
2377
2559
  J()
2378
2560
  ], a.prototype, "instructionMessage", 2);
2379
- u([
2561
+ d([
2380
2562
  J()
2381
2563
  ], a.prototype, "shouldStartMeasurement", 2);
2382
- u([
2564
+ d([
2383
2565
  J()
2384
2566
  ], a.prototype, "isLoading", 2);
2385
- u([
2567
+ d([
2386
2568
  J()
2387
2569
  ], a.prototype, "isFetching", 2);
2388
- u([
2570
+ d([
2389
2571
  J()
2390
2572
  ], a.prototype, "cameras", 2);
2391
- u([
2573
+ d([
2392
2574
  J()
2393
2575
  ], a.prototype, "currentCameraId", 2);
2394
- a = u([
2576
+ a = d([
2395
2577
  R("body-measurer"),
2396
- Y()
2578
+ C()
2397
2579
  ], a);
2398
2580
  export {
2399
2581
  a as BodyMeasurer,