@timardex/cluemart-shared 1.5.807 → 1.5.808
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/{chunk-5HLIY25H.mjs → chunk-4CGXFFCO.mjs} +42 -2
- package/dist/chunk-4CGXFFCO.mjs.map +1 -0
- package/dist/formFields/index.mjs +1 -1
- package/dist/hooks/index.cjs +43 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +7 -2
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +42 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.mjs +40 -0
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.cjs +42 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +15 -1
- package/dist/utils/index.d.ts +15 -1
- package/dist/utils/index.mjs +5 -1
- package/package.json +1 -1
- package/dist/chunk-5HLIY25H.mjs.map +0 -1
package/dist/hooks/index.mjs
CHANGED
|
@@ -2,8 +2,9 @@ import "../chunk-VA5YN2K3.mjs";
|
|
|
2
2
|
import "../chunk-GJO7X2Y4.mjs";
|
|
3
3
|
import {
|
|
4
4
|
SCHOOL_MIN_STUDENT_COUNT,
|
|
5
|
+
isValidIrdNumber,
|
|
5
6
|
normalizeUrl
|
|
6
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-4CGXFFCO.mjs";
|
|
7
8
|
import {
|
|
8
9
|
EnumAdShowOn,
|
|
9
10
|
EnumAdStatus,
|
|
@@ -2009,7 +2010,11 @@ var affiliateSchema = yup12.object().shape({
|
|
|
2009
2010
|
),
|
|
2010
2011
|
email: yup12.string().trim().required("Email is required"),
|
|
2011
2012
|
firstName: yup12.string().trim().required("First name is required"),
|
|
2012
|
-
irdNumber: yup12.string().trim().required("IRD number is required")
|
|
2013
|
+
irdNumber: yup12.string().trim().required("IRD number is required").test(
|
|
2014
|
+
"ird-number",
|
|
2015
|
+
"Enter a valid IRD number (8\u20139 digits)",
|
|
2016
|
+
(value) => !!value && isValidIrdNumber(value)
|
|
2017
|
+
),
|
|
2013
2018
|
lastName: yup12.string().trim().required("Last name is required"),
|
|
2014
2019
|
location: locationSchema.required("Location is required"),
|
|
2015
2020
|
participantType: yup12.mixed().oneOf(
|