@primestyleai/tryon 5.10.128 → 5.10.129
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/react/index.js +776 -776
- package/dist/react/index.js.map +1 -1
- package/dist/storefront/primestyle-tryon.js +2 -6
- package/package.json +1 -1
|
@@ -22879,15 +22879,10 @@ function CreateProfileWizard({ onSave, onCancel, apiUrl, apiKey, onPhotoPreview,
|
|
|
22879
22879
|
return false;
|
|
22880
22880
|
}
|
|
22881
22881
|
const w2 = parseFloat(weightVal);
|
|
22882
|
-
const a = parseFloat(ageVal);
|
|
22883
22882
|
if (!w2 || w2 <= 0) {
|
|
22884
22883
|
setError(t2("Please enter a valid weight"));
|
|
22885
22884
|
return false;
|
|
22886
22885
|
}
|
|
22887
|
-
if (!a || a <= 0) {
|
|
22888
|
-
setError(t2("Please enter a valid age"));
|
|
22889
|
-
return false;
|
|
22890
|
-
}
|
|
22891
22886
|
setError("");
|
|
22892
22887
|
return true;
|
|
22893
22888
|
};
|
|
@@ -22901,6 +22896,7 @@ function CreateProfileWizard({ onSave, onCancel, apiUrl, apiKey, onPhotoPreview,
|
|
|
22901
22896
|
};
|
|
22902
22897
|
const buildManualPayload = () => {
|
|
22903
22898
|
const heightRaw = unit === "in" ? (parseInt(heightFt, 10) || 0) * 12 + (parseInt(heightInch, 10) || 0) : parseFloat(heightVal);
|
|
22899
|
+
const a = parseFloat(ageVal);
|
|
22904
22900
|
return {
|
|
22905
22901
|
name: name.trim(),
|
|
22906
22902
|
gender,
|
|
@@ -22911,7 +22907,7 @@ function CreateProfileWizard({ onSave, onCancel, apiUrl, apiKey, onPhotoPreview,
|
|
|
22911
22907
|
weightKg: parseFloat(weightVal),
|
|
22912
22908
|
height: heightRaw,
|
|
22913
22909
|
weight: parseFloat(weightVal),
|
|
22914
|
-
age:
|
|
22910
|
+
...a > 0 ? { age: a } : {},
|
|
22915
22911
|
chestProfile: chestProfile || void 0,
|
|
22916
22912
|
midsectionProfile: midsectionProfile || void 0,
|
|
22917
22913
|
hipProfile: isWomen ? hipProfile || void 0 : seatProfile || void 0,
|