@primestyleai/tryon 5.10.193 → 5.10.194

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.
@@ -17,7 +17,7 @@ function P() {
17
17
  for (let o = 0; o < 32; o++) e += r[Math.floor(Math.random() * 16)];
18
18
  return e;
19
19
  }
20
- function I() {
20
+ function T() {
21
21
  if (!E()) return S;
22
22
  try {
23
23
  const r = window.localStorage.getItem(f);
@@ -40,7 +40,7 @@ function g(r) {
40
40
  }
41
41
  }
42
42
  function p() {
43
- const r = Date.now(), e = I();
43
+ const r = Date.now(), e = T();
44
44
  if (e && r - e.lastSeenAt < 2592e6)
45
45
  return r - e.lastSeenAt > 5 * 60 * 1e3 && g({ ...e, lastSeenAt: r }), e.id;
46
46
  const o = { id: P(), issuedAt: r, lastSeenAt: r };
@@ -51,10 +51,10 @@ function y() {
51
51
  const r = (navigator.userAgent || "").toLowerCase();
52
52
  return /ipad|tablet|(android(?!.*mobile))/.test(r) ? "tablet" : /mobile|android|iphone|ipod|blackberry|iemobile|opera mini/.test(r) ? "mobile" : "desktop";
53
53
  }
54
- const T = "http://localhost:4000";
55
- class W {
54
+ const I = "http://localhost:4000";
55
+ class O {
56
56
  constructor(e, o) {
57
- this.apiKey = e || void 0, this.baseUrl = (o || T).replace(/\/+$/, "");
57
+ this.apiKey = e || void 0, this.baseUrl = (o || I).replace(/\/+$/, "");
58
58
  }
59
59
  get headers() {
60
60
  return w(this.apiKey);
@@ -190,9 +190,9 @@ class Y {
190
190
  this.reconnectTimer && (clearTimeout(this.reconnectTimer), this.reconnectTimer = null), this.eventSource && (this.eventSource.close(), this.eventSource = null), this.listeners.clear(), this.reconnectAttempts = 0;
191
191
  }
192
192
  }
193
- const v = 512, C = 0.65;
194
- function z(r, e = {}) {
195
- const o = e.maxDimension ?? v, a = e.quality ?? C;
193
+ const v = 512, U = 0.65;
194
+ function C(r, e = {}) {
195
+ const o = e.maxDimension ?? v, a = e.quality ?? U;
196
196
  return new Promise((s, t) => {
197
197
  const i = new FileReader();
198
198
  i.onload = () => {
@@ -220,9 +220,9 @@ function z(r, e = {}) {
220
220
  function F(r) {
221
221
  return ["image/jpeg", "image/png", "image/webp", "image/avif"].includes(r.type);
222
222
  }
223
- async function K(r, e, o) {
223
+ async function V(r, e, o) {
224
224
  try {
225
- const a = typeof r == "string" ? r : await z(r, { maxDimension: 384, quality: 0.6 }), s = await fetch(`${e}/api/v1/sizing/age-check`, {
225
+ const a = typeof r == "string" ? r : await C(r, { maxDimension: 384, quality: 0.6 }), s = await fetch(`${e}/api/v1/sizing/age-check`, {
226
226
  method: "POST",
227
227
  headers: {
228
228
  "Content-Type": "application/json",
@@ -245,10 +245,10 @@ async function K(r, e, o) {
245
245
  }
246
246
  }
247
247
  const c = {};
248
- function U(r, e) {
248
+ function z(r, e) {
249
249
  c[r] = { ...c[r] || {}, ...e };
250
250
  }
251
- function V(r) {
251
+ function K(r) {
252
252
  const e = r?.toLowerCase().split("-")[0] || "en";
253
253
  return (o) => e === "en" || !c[e] ? o : c[e][o] ?? o;
254
254
  }
@@ -286,7 +286,7 @@ const J = [
286
286
  "Complete Profile",
287
287
  "Check your size, then try it on virtually",
288
288
  "Get Your Size",
289
- "Instant fit recommendation",
289
+ "Instant fit suggestion",
290
290
  "Try It On",
291
291
  "See how it looks on you",
292
292
  "Find My Size",
@@ -312,8 +312,16 @@ const J = [
312
312
  "Please fill in all required fields",
313
313
  "Next",
314
314
  "Analyzing your size...",
315
- "RECOMMENDED SIZE",
316
- "NOT RECOMMENDED",
315
+ "SUGGESTED SIZE",
316
+ "NOT SUGGESTED",
317
+ "SUGGESTED",
318
+ "Suggested",
319
+ "Suggested Size",
320
+ "Not Suggested",
321
+ "Your Choice · Not Suggested",
322
+ "YOUR CHOICE · NOT SUGGESTED",
323
+ "your selection · not suggested",
324
+ "suggested",
317
325
  "Edit measurements",
318
326
  "Size guide",
319
327
  "Your fit",
@@ -432,7 +440,7 @@ const J = [
432
440
  "Loose",
433
441
  "Short",
434
442
  "Long",
435
- "Recommended",
443
+ "Suggested",
436
444
  "Within range",
437
445
  "Within range",
438
446
  "WITHIN RANGE",
@@ -469,7 +477,7 @@ const J = [
469
477
  "See Your Fit": "Ver tu ajuste",
470
478
  "Check your size, then try it on virtually": "Comprueba tu talla y pruébatelo virtualmente",
471
479
  "Get Your Size": "Tu talla",
472
- "Instant fit recommendation": "Recomendación de ajuste instantánea",
480
+ "Instant fit suggestion": "Sugerencia de ajuste instantánea",
473
481
  "Try It On": "Pruébatelo",
474
482
  "See how it looks on you": "Mira cómo te queda",
475
483
  "Find My Size": "Encontrar mi talla",
@@ -497,12 +505,12 @@ const J = [
497
505
  "Please fill in all required fields": "Por favor, completa todos los campos obligatorios",
498
506
  Next: "Siguiente",
499
507
  "Analyzing your size...": "Analizando tu talla...",
500
- "RECOMMENDED SIZE": "TALLA RECOMENDADA",
501
- "NOT RECOMMENDED": "NO RECOMENDADA",
508
+ "SUGGESTED SIZE": "TALLA SUGERIDA",
509
+ "NOT SUGGESTED": "NO SUGERIDA",
502
510
  "Edit measurements": "Editar medidas",
503
511
  "Size guide": "Guía de tallas",
504
512
  "Your fit": "Tu ajuste",
505
- "Your Size Recommendation": "Tu recomendación de talla",
513
+ "Your Suggested Size": "Tu talla sugerida",
506
514
  "Your measure": "Tu medida",
507
515
  "within range": "dentro del rango",
508
516
  "too tight": "demasiado ajustado",
@@ -718,13 +726,13 @@ const J = [
718
726
  // ── Photo step — profile photo preload pill ──
719
727
  "Loaded from profile": "Cargada del perfil",
720
728
  Clear: "Borrar"
721
- }, M = {
729
+ }, G = {
722
730
  "Virtual Try-On": "Essayage Virtuel",
723
731
  "Find Your Size & See It On You": "Trouvez votre taille et essayez-le",
724
732
  "See Your Fit": "Voir votre ajustement",
725
733
  "Check your size, then try it on virtually": "Vérifiez votre taille, puis essayez-le virtuellement",
726
734
  "Get Your Size": "Votre taille",
727
- "Instant fit recommendation": "Recommandation de coupe instantanée",
735
+ "Instant fit suggestion": "Suggestion de coupe instantanée",
728
736
  "Try It On": "Essayer",
729
737
  "See how it looks on you": "Voyez comment ça vous va",
730
738
  "Find My Size": "Trouver ma taille",
@@ -752,12 +760,12 @@ const J = [
752
760
  "Please fill in all required fields": "Veuillez remplir tous les champs obligatoires",
753
761
  Next: "Suivant",
754
762
  "Analyzing your size...": "Analyse de votre taille...",
755
- "RECOMMENDED SIZE": "TAILLE RECOMMANDÉE",
756
- "NOT RECOMMENDED": "NON RECOMMANDÉE",
763
+ "SUGGESTED SIZE": "TAILLE SUGGÉRÉE",
764
+ "NOT SUGGESTED": "NON SUGGÉRÉE",
757
765
  "Edit measurements": "Modifier les mesures",
758
766
  "Size guide": "Guide des tailles",
759
767
  "Your fit": "Votre coupe",
760
- "Your Size Recommendation": "Votre recommandation de taille",
768
+ "Your Suggested Size": "Votre taille suggérée",
761
769
  "Your measure": "Votre mesure",
762
770
  "within range": "dans la plage",
763
771
  "too tight": "trop serré",
@@ -973,13 +981,13 @@ const J = [
973
981
  // ── Photo step — profile photo preload pill ──
974
982
  "Loaded from profile": "Chargée depuis le profil",
975
983
  Clear: "Effacer"
976
- }, N = {
984
+ }, B = {
977
985
  "Virtual Try-On": "Virtuelle Anprobe",
978
986
  "Find Your Size & See It On You": "Finden Sie Ihre Größe und probieren Sie es an",
979
987
  "See Your Fit": "Ihre Passform ansehen",
980
988
  "Check your size, then try it on virtually": "Prüfen Sie Ihre Größe und probieren Sie es virtuell an",
981
989
  "Get Your Size": "Ihre Größe",
982
- "Instant fit recommendation": "Sofortige Passformempfehlung",
990
+ "Instant fit suggestion": "Sofortiger Passformvorschlag",
983
991
  "Try It On": "Anprobieren",
984
992
  "See how it looks on you": "Sehen Sie, wie es Ihnen steht",
985
993
  "Find My Size": "Meine Größe finden",
@@ -1007,12 +1015,12 @@ const J = [
1007
1015
  "Please fill in all required fields": "Bitte alle Pflichtfelder ausfüllen",
1008
1016
  Next: "Weiter",
1009
1017
  "Analyzing your size...": "Ihre Größe wird analysiert...",
1010
- "RECOMMENDED SIZE": "EMPFOHLENE GRÖSSE",
1011
- "NOT RECOMMENDED": "NICHT EMPFOHLEN",
1018
+ "SUGGESTED SIZE": "VORGESCHLAGENE GRÖSSE",
1019
+ "NOT SUGGESTED": "NICHT VORGESCHLAGEN",
1012
1020
  "Edit measurements": "Maße bearbeiten",
1013
1021
  "Size guide": "Größentabelle",
1014
1022
  "Your fit": "Ihre Passform",
1015
- "Your Size Recommendation": "Ihre Größenempfehlung",
1023
+ "Your Suggested Size": "Ihre vorgeschlagene Größe",
1016
1024
  "Your measure": "Ihr Maß",
1017
1025
  "within range": "im Bereich",
1018
1026
  "too tight": "zu eng",
@@ -1228,13 +1236,13 @@ const J = [
1228
1236
  // ── Photo step — profile photo preload pill ──
1229
1237
  "Loaded from profile": "Aus Profil geladen",
1230
1238
  Clear: "Löschen"
1231
- }, B = {
1239
+ }, H = {
1232
1240
  "Virtual Try-On": "Prova Virtuale",
1233
1241
  "Find Your Size & See It On You": "Trova la tua taglia e provalo",
1234
1242
  "See Your Fit": "Vedi la vestibilità",
1235
1243
  "Check your size, then try it on virtually": "Controlla la tua taglia, poi provalo virtualmente",
1236
1244
  "Get Your Size": "La tua taglia",
1237
- "Instant fit recommendation": "Raccomandazione vestibilità istantanea",
1245
+ "Instant fit suggestion": "Suggerimento vestibilità istantaneo",
1238
1246
  "Try It On": "Provalo",
1239
1247
  "See how it looks on you": "Guarda come ti sta",
1240
1248
  "Find My Size": "Trova la mia taglia",
@@ -1262,12 +1270,12 @@ const J = [
1262
1270
  "Please fill in all required fields": "Compila tutti i campi obbligatori",
1263
1271
  Next: "Avanti",
1264
1272
  "Analyzing your size...": "Analisi della tua taglia...",
1265
- "RECOMMENDED SIZE": "TAGLIA CONSIGLIATA",
1266
- "NOT RECOMMENDED": "NON CONSIGLIATA",
1273
+ "SUGGESTED SIZE": "TAGLIA SUGGERITA",
1274
+ "NOT SUGGESTED": "NON SUGGERITA",
1267
1275
  "Edit measurements": "Modifica misure",
1268
1276
  "Size guide": "Guida alle taglie",
1269
1277
  "Your fit": "La tua vestibilità",
1270
- "Your Size Recommendation": "La tua taglia consigliata",
1278
+ "Your Suggested Size": "La tua taglia suggerita",
1271
1279
  "Your measure": "La tua misura",
1272
1280
  "within range": "entro l'intervallo",
1273
1281
  "too tight": "troppo stretto",
@@ -1483,13 +1491,13 @@ const J = [
1483
1491
  // ── Photo step — profile photo preload pill ──
1484
1492
  "Loaded from profile": "Caricata dal profilo",
1485
1493
  Clear: "Cancella"
1486
- }, H = {
1494
+ }, M = {
1487
1495
  "Virtual Try-On": "Provador Virtual",
1488
1496
  "Find Your Size & See It On You": "Encontre seu tamanho e experimente",
1489
1497
  "See Your Fit": "Veja seu ajuste",
1490
1498
  "Check your size, then try it on virtually": "Confira seu tamanho e experimente virtualmente",
1491
1499
  "Get Your Size": "Seu tamanho",
1492
- "Instant fit recommendation": "Recomendação de caimento instantânea",
1500
+ "Instant fit suggestion": "Sugestão de caimento instantânea",
1493
1501
  "Try It On": "Experimentar",
1494
1502
  "See how it looks on you": "Veja como fica em você",
1495
1503
  "Find My Size": "Encontrar meu tamanho",
@@ -1517,12 +1525,12 @@ const J = [
1517
1525
  "Please fill in all required fields": "Por favor, preencha todos os campos obrigatórios",
1518
1526
  Next: "Próximo",
1519
1527
  "Analyzing your size...": "Analisando seu tamanho...",
1520
- "RECOMMENDED SIZE": "TAMANHO RECOMENDADO",
1521
- "NOT RECOMMENDED": "NÃO RECOMENDADO",
1528
+ "SUGGESTED SIZE": "TAMANHO SUGERIDO",
1529
+ "NOT SUGGESTED": "NÃO SUGERIDO",
1522
1530
  "Edit measurements": "Editar medidas",
1523
1531
  "Size guide": "Guia de tamanhos",
1524
1532
  "Your fit": "Seu caimento",
1525
- "Your Size Recommendation": "Sua recomendação de tamanho",
1533
+ "Your Suggested Size": "Seu tamanho sugerido",
1526
1534
  "Your measure": "Sua medida",
1527
1535
  "within range": "dentro da faixa",
1528
1536
  "too tight": "muito apertado",
@@ -1738,13 +1746,13 @@ const J = [
1738
1746
  // ── Photo step — profile photo preload pill ──
1739
1747
  "Loaded from profile": "Carregada do perfil",
1740
1748
  Clear: "Limpar"
1741
- }, R = {
1749
+ }, N = {
1742
1750
  "Virtual Try-On": "バーチャル試着",
1743
1751
  "Find Your Size & See It On You": "あなたのサイズを見つけて試着",
1744
1752
  "See Your Fit": "フィット感を見る",
1745
1753
  "Check your size, then try it on virtually": "サイズを確認して、バーチャルで試着しましょう",
1746
1754
  "Get Your Size": "サイズを確認",
1747
- "Instant fit recommendation": "瞬時にフィット提案",
1755
+ "Instant fit suggestion": "瞬時にフィット提案",
1748
1756
  "Try It On": "試着する",
1749
1757
  "See how it looks on you": "自分に似合うか確認",
1750
1758
  "Find My Size": "自分のサイズを見つける",
@@ -1772,12 +1780,12 @@ const J = [
1772
1780
  "Please fill in all required fields": "すべての必須項目を入力してください",
1773
1781
  Next: "次へ",
1774
1782
  "Analyzing your size...": "サイズを分析中...",
1775
- "RECOMMENDED SIZE": "推奨サイズ",
1776
- "NOT RECOMMENDED": "非推奨",
1783
+ "SUGGESTED SIZE": "提案サイズ",
1784
+ "NOT SUGGESTED": "提案外",
1777
1785
  "Edit measurements": "寸法を編集",
1778
1786
  "Size guide": "サイズガイド",
1779
1787
  "Your fit": "あなたのフィット",
1780
- "Your Size Recommendation": "サイズのおすすめ",
1788
+ "Your Suggested Size": "提案サイズ",
1781
1789
  "Your measure": "あなたの寸法",
1782
1790
  "within range": "範囲内",
1783
1791
  "too tight": "きつすぎる",
@@ -1999,7 +2007,7 @@ const J = [
1999
2007
  "See Your Fit": "查看合身效果",
2000
2008
  "Check your size, then try it on virtually": "确认尺码,然后虚拟试穿",
2001
2009
  "Get Your Size": "获取尺码",
2002
- "Instant fit recommendation": "即时合身推荐",
2010
+ "Instant fit suggestion": "即时合身建议",
2003
2011
  "Try It On": "试穿",
2004
2012
  "See how it looks on you": "看看穿在你身上的效果",
2005
2013
  "Find My Size": "找到我的尺码",
@@ -2027,12 +2035,12 @@ const J = [
2027
2035
  "Please fill in all required fields": "请填写所有必填项",
2028
2036
  Next: "下一步",
2029
2037
  "Analyzing your size...": "正在分析你的尺码...",
2030
- "RECOMMENDED SIZE": "推荐尺码",
2031
- "NOT RECOMMENDED": "不推荐",
2038
+ "SUGGESTED SIZE": "建议尺码",
2039
+ "NOT SUGGESTED": "不建议",
2032
2040
  "Edit measurements": "编辑尺寸",
2033
2041
  "Size guide": "尺码指南",
2034
2042
  "Your fit": "你的合身度",
2035
- "Your Size Recommendation": "你的尺码建议",
2043
+ "Your Suggested Size": "你的建议尺码",
2036
2044
  "Your measure": "你的尺寸",
2037
2045
  "within range": "在范围内",
2038
2046
  "too tight": "太紧",
@@ -2254,7 +2262,7 @@ const J = [
2254
2262
  "See Your Fit": "핏 확인하기",
2255
2263
  "Check your size, then try it on virtually": "사이즈를 확인하고 가상으로 입어보세요",
2256
2264
  "Get Your Size": "사이즈 확인",
2257
- "Instant fit recommendation": "즉시 핏 추천",
2265
+ "Instant fit suggestion": "즉시 핏 제안",
2258
2266
  "Try It On": "입어보기",
2259
2267
  "See how it looks on you": "어떻게 보이는지 확인",
2260
2268
  "Find My Size": "내 사이즈 찾기",
@@ -2282,12 +2290,12 @@ const J = [
2282
2290
  "Please fill in all required fields": "모든 필수 항목을 입력해주세요",
2283
2291
  Next: "다음",
2284
2292
  "Analyzing your size...": "사이즈 분석 중...",
2285
- "RECOMMENDED SIZE": "추천 사이즈",
2286
- "NOT RECOMMENDED": "비추천",
2293
+ "SUGGESTED SIZE": "제안 사이즈",
2294
+ "NOT SUGGESTED": "제안 아님",
2287
2295
  "Edit measurements": "치수 수정",
2288
2296
  "Size guide": "사이즈 가이드",
2289
2297
  "Your fit": "나의 핏",
2290
- "Your Size Recommendation": "사이즈 추천",
2298
+ "Your Suggested Size": "제안 사이즈",
2291
2299
  "Your measure": "내 치수",
2292
2300
  "within range": "범위 내",
2293
2301
  "too tight": "너무 타이트",
@@ -2503,13 +2511,13 @@ const J = [
2503
2511
  // ── Photo step — profile photo preload pill ──
2504
2512
  "Loaded from profile": "프로필에서 불러옴",
2505
2513
  Clear: "지우기"
2506
- }, G = {
2514
+ }, R = {
2507
2515
  "Virtual Try-On": "تجربة افتراضية",
2508
2516
  "Find Your Size & See It On You": "اعثر على مقاسك وجرّبه",
2509
2517
  "See Your Fit": "شاهد الملاءمة",
2510
2518
  "Check your size, then try it on virtually": "تحقق من مقاسك ثم جرّبه افتراضياً",
2511
2519
  "Get Your Size": "مقاسك",
2512
- "Instant fit recommendation": "توصية فورية بالمقاس",
2520
+ "Instant fit suggestion": "اقتراح فوري للمقاس",
2513
2521
  "Try It On": "جرّبه",
2514
2522
  "See how it looks on you": "شاهد كيف يبدو عليك",
2515
2523
  "Find My Size": "اعثر على مقاسي",
@@ -2537,12 +2545,12 @@ const J = [
2537
2545
  "Please fill in all required fields": "يرجى ملء جميع الحقول المطلوبة",
2538
2546
  Next: "التالي",
2539
2547
  "Analyzing your size...": "جارٍ تحليل مقاسك...",
2540
- "RECOMMENDED SIZE": "المقاس الموصى به",
2541
- "NOT RECOMMENDED": "غير موصى به",
2548
+ "SUGGESTED SIZE": "المقاس المقترح",
2549
+ "NOT SUGGESTED": "غير مقترح",
2542
2550
  "Edit measurements": "تعديل القياسات",
2543
2551
  "Size guide": "دليل المقاسات",
2544
2552
  "Your fit": "ملاءمتك",
2545
- "Your Size Recommendation": "توصية المقاس",
2553
+ "Your Suggested Size": "المقاس المقترح",
2546
2554
  "Your measure": "قياسك",
2547
2555
  "within range": "ضمن النطاق",
2548
2556
  "too tight": "ضيق جداً",
@@ -2758,34 +2766,34 @@ const J = [
2758
2766
  // ── Photo step — profile photo preload pill ──
2759
2767
  "Loaded from profile": "تم التحميل من الملف الشخصي",
2760
2768
  Clear: "مسح"
2761
- }, O = {
2769
+ }, W = {
2762
2770
  es: D,
2763
- fr: M,
2764
- de: N,
2765
- it: B,
2766
- pt: H,
2767
- ja: R,
2771
+ fr: G,
2772
+ de: B,
2773
+ it: H,
2774
+ pt: M,
2775
+ ja: N,
2768
2776
  zh: k,
2769
2777
  ko: L,
2770
- ar: G
2778
+ ar: R
2771
2779
  };
2772
- for (const [r, e] of Object.entries(O))
2773
- U(r, e);
2780
+ for (const [r, e] of Object.entries(W))
2781
+ z(r, e);
2774
2782
  export {
2775
- W as A,
2783
+ O as A,
2776
2784
  q as L,
2777
2785
  h as P,
2778
2786
  Y as S,
2779
2787
  Z as T,
2780
- z as a,
2788
+ C as a,
2781
2789
  J as b,
2782
- V as c,
2783
- K as d,
2790
+ K as c,
2791
+ V as d,
2784
2792
  j as e,
2785
2793
  y as f,
2786
2794
  p as g,
2787
2795
  F as i,
2788
2796
  w as j,
2789
- U as r
2797
+ z as r
2790
2798
  };
2791
- //# sourceMappingURL=index-D9sdGV4C.js.map
2799
+ //# sourceMappingURL=index-BiotPzcm.js.map