mozrest-sdk-react-dev 0.1.60 → 0.1.61
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/mozrest-sdk.es.js +6 -4
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -98757,7 +98757,7 @@ const ContactDetailsFormFields = (props) => {
|
|
|
98757
98757
|
disabled: !isValid2
|
|
98758
98758
|
}, t2("CREATERESERVATION"))));
|
|
98759
98759
|
};
|
|
98760
|
-
const ContactDetailsForm = ({ venueId, selectedTable, setSelectedTable, setCreated, bookingValues, reloadMainTable }) => {
|
|
98760
|
+
const ContactDetailsForm = ({ venueId, selectedTable, setSelectedTable, setCreated, bookingValues, currentTimeZone, reloadMainTable }) => {
|
|
98761
98761
|
const { t: t2 } = useTranslation();
|
|
98762
98762
|
const initialValues = {
|
|
98763
98763
|
notes: "",
|
|
@@ -98779,7 +98779,7 @@ const ContactDetailsForm = ({ venueId, selectedTable, setSelectedTable, setCreat
|
|
|
98779
98779
|
const toSend = {
|
|
98780
98780
|
partySize: bookingValues.partySize.id ? bookingValues.partySize.id : selectedTable.maxCapacity,
|
|
98781
98781
|
table: selectedTable.id,
|
|
98782
|
-
date: bookingValues.date ?
|
|
98782
|
+
date: bookingValues.date ? moment$1.tz(`${bookingValues.date} ${bookingValues.time.id}`, currentTimeZone ? currentTimeZone : "").valueOf() / 1e3 : moment$1.tz(moment$1(), currentTimeZone ? currentTimeZone : "").valueOf() / 1e3,
|
|
98783
98783
|
notes: values.notes,
|
|
98784
98784
|
contact: {
|
|
98785
98785
|
firstname: values.firstname,
|
|
@@ -98807,7 +98807,7 @@ const ContactDetailsForm = ({ venueId, selectedTable, setSelectedTable, setCreat
|
|
|
98807
98807
|
validationSchema: bookingSchema
|
|
98808
98808
|
}, /* @__PURE__ */ React__default.createElement(ContactDetailsFormFields, null)));
|
|
98809
98809
|
};
|
|
98810
|
-
const ContactDetails = ({ setSelectedTable, selectedTable, venueId, setCreated, bookingValues, reloadMainTable }) => {
|
|
98810
|
+
const ContactDetails = ({ setSelectedTable, selectedTable, venueId, setCreated, bookingValues, reloadMainTable, currentTimeZone }) => {
|
|
98811
98811
|
var _a2, _b, _c;
|
|
98812
98812
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
98813
98813
|
className: ""
|
|
@@ -98843,6 +98843,7 @@ const ContactDetails = ({ setSelectedTable, selectedTable, venueId, setCreated,
|
|
|
98843
98843
|
setSelectedTable,
|
|
98844
98844
|
setCreated,
|
|
98845
98845
|
bookingValues,
|
|
98846
|
+
currentTimeZone,
|
|
98846
98847
|
reloadMainTable
|
|
98847
98848
|
}));
|
|
98848
98849
|
};
|
|
@@ -98910,7 +98911,8 @@ const CreateReservation = ({ open, onClose: onClose2, venueId, reloadMainTable,
|
|
|
98910
98911
|
selectedTable,
|
|
98911
98912
|
setCreated,
|
|
98912
98913
|
bookingValues,
|
|
98913
|
-
reloadMainTable
|
|
98914
|
+
reloadMainTable,
|
|
98915
|
+
currentTimeZone
|
|
98914
98916
|
}), created && !selectedTable && /* @__PURE__ */ React__default.createElement(BookingConfirmation, {
|
|
98915
98917
|
bookingDetails: created
|
|
98916
98918
|
})));
|