@timardex/cluemart-shared 1.4.25 → 1.4.27

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.
@@ -13,7 +13,7 @@ import {
13
13
  dateFormat,
14
14
  normalizeUrl,
15
15
  timeFormat
16
- } from "../chunk-S6G7DNEV.mjs";
16
+ } from "../chunk-XUYZ2LYW.mjs";
17
17
  import {
18
18
  EnumEventDateStatus,
19
19
  EnumEventType,
@@ -409,6 +409,11 @@ var eventInfoSchema = yup2.object().shape({
409
409
  }
410
410
  ),
411
411
  paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment method is required").required("Payment info is required")
412
+ /* refundPolicy: yup
413
+ .array()
414
+ .of(yup.string().trim().required("Refund policy item cannot be empty"))
415
+ .min(1, "At least one refund policy item is required")
416
+ .required("Refund policy is required"), */
412
417
  });
413
418
 
414
419
  // src/yupSchema/vendor.ts
@@ -806,6 +811,7 @@ var defaultEventInfoFormValues = {
806
811
  // e.g., 2 hours before event opens
807
812
  paymentDueHours: 12,
808
813
  paymentInfo: [],
814
+ //refundPolicy: [],
809
815
  requirements: []
810
816
  };
811
817
  var defaultVendorFormValues = {
@@ -1154,6 +1160,7 @@ function useEventInfoForm(data) {
1154
1160
  packInTime: data.packInTime,
1155
1161
  paymentDueHours: data.paymentDueHours,
1156
1162
  paymentInfo: data.paymentInfo,
1163
+ //refundPolicy: data.refundPolicy,
1157
1164
  requirements: data.requirements
1158
1165
  });
1159
1166
  } else {
@@ -1168,6 +1175,7 @@ function useEventInfoForm(data) {
1168
1175
  packInTime,
1169
1176
  paymentDueHours,
1170
1177
  paymentInfo,
1178
+ //refundPolicy,
1171
1179
  requirements
1172
1180
  } = getValues();
1173
1181
  return {
@@ -1180,6 +1188,7 @@ function useEventInfoForm(data) {
1180
1188
  packInTime,
1181
1189
  paymentDueHours,
1182
1190
  paymentInfo,
1191
+ //refundPolicy,
1183
1192
  requirements
1184
1193
  },
1185
1194
  formState,