@primestyleai/tryon 5.10.169 → 5.10.171

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.
@@ -307,10 +307,10 @@ function mn(o) {
307
307
  function Pn(o, t, g) {
308
308
  const { min: r, max: B } = un(t);
309
309
  if (r === 0 && B === 0) return "good";
310
- const c = g === "cm" ? 0.25 : g === "mm" ? 2.5 : 0.1, n = g === "cm" ? 1.27 : g === "mm" ? 12.7 : 0.5, w = g === "cm" ? 5.08 : g === "mm" ? 50.8 : 2;
311
- if (o >= r - c && o <= B + c) return "good";
312
- const i = o < r, p = i ? r - o : o - B;
313
- return p > w ? i ? "too-loose" : "too-tight" : p > n ? i ? "loose" : "tight" : i ? "a-bit-loose" : "a-bit-tight";
310
+ const c = g === "cm" ? 1.27 : g === "mm" ? 12.7 : 0.5, n = g === "cm" ? 2.54 : g === "mm" ? 25.4 : 1, w = g === "cm" ? 5.08 : g === "mm" ? 50.8 : 2, i = o >= r && o <= B, p = i ? 0 : o > B ? o - B : r - o;
311
+ if (i || p <= c) return "good";
312
+ const f = o < r;
313
+ return p > w ? f ? "too-loose" : "too-tight" : p > n ? f ? "loose" : "tight" : f ? "a-bit-loose" : "a-bit-tight";
314
314
  }
315
315
  const bn = {
316
316
  chest: "chest",
@@ -12915,7 +12915,7 @@ function Vr({ onSave: o, onCancel: t, apiUrl: g, apiKey: r, onPhotoPreview: B, o
12915
12915
  } catch {
12916
12916
  }
12917
12917
  }
12918
- await ae, H(!1), I("name-photo");
12918
+ await ae, H(!1);
12919
12919
  return;
12920
12920
  }
12921
12921
  if (d === "details") {