mozrest-sdk-react-dev 0.2.86 → 0.2.87
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 +64 -58
- package/package.json +1 -1
- package/style.css +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -6493,6 +6493,7 @@ const REVIEWS_DESC = "Get an instant email when you receive a negative review so
|
|
|
6493
6493
|
const REVIEWSREPORT_DESC = "Get a daily report by email to help you keep track of all your activity.";
|
|
6494
6494
|
const StartDate = "Start date";
|
|
6495
6495
|
const EndDate = "End date";
|
|
6496
|
+
const REFERENCE = "Reference";
|
|
6496
6497
|
var en = {
|
|
6497
6498
|
errors,
|
|
6498
6499
|
SPECIALCLOSINGDATES,
|
|
@@ -6873,7 +6874,8 @@ var en = {
|
|
|
6873
6874
|
REVIEWS_DESC,
|
|
6874
6875
|
REVIEWSREPORT_DESC,
|
|
6875
6876
|
StartDate,
|
|
6876
|
-
EndDate
|
|
6877
|
+
EndDate,
|
|
6878
|
+
REFERENCE
|
|
6877
6879
|
};
|
|
6878
6880
|
instance.use(initReactI18next).init({
|
|
6879
6881
|
resources: {
|
|
@@ -103100,50 +103102,52 @@ const ReservationsAnalytics = ({ userEmail, userFullName }) => {
|
|
|
103100
103102
|
totalDays
|
|
103101
103103
|
}));
|
|
103102
103104
|
};
|
|
103103
|
-
const mainConatiner$2 = "
|
|
103104
|
-
const mainTableContainer = "
|
|
103105
|
-
const mainSidebarContainer = "
|
|
103106
|
-
const
|
|
103107
|
-
const
|
|
103108
|
-
const
|
|
103109
|
-
const
|
|
103110
|
-
const
|
|
103111
|
-
const
|
|
103112
|
-
const
|
|
103113
|
-
const
|
|
103114
|
-
const
|
|
103115
|
-
const
|
|
103116
|
-
const
|
|
103117
|
-
const
|
|
103118
|
-
const
|
|
103119
|
-
const
|
|
103120
|
-
const
|
|
103121
|
-
const
|
|
103122
|
-
const
|
|
103123
|
-
const
|
|
103124
|
-
const
|
|
103125
|
-
const
|
|
103126
|
-
const
|
|
103127
|
-
const
|
|
103128
|
-
const
|
|
103129
|
-
const
|
|
103130
|
-
const
|
|
103131
|
-
const
|
|
103132
|
-
const
|
|
103133
|
-
const
|
|
103134
|
-
const
|
|
103135
|
-
const
|
|
103136
|
-
const
|
|
103137
|
-
const
|
|
103138
|
-
const
|
|
103105
|
+
const mainConatiner$2 = "_mainConatiner_19oqa_48";
|
|
103106
|
+
const mainTableContainer = "_mainTableContainer_19oqa_58";
|
|
103107
|
+
const mainSidebarContainer = "_mainSidebarContainer_19oqa_66";
|
|
103108
|
+
const headerReferece = "_headerReferece_19oqa_76";
|
|
103109
|
+
const sidebarCloseIcon = "_sidebarCloseIcon_19oqa_79";
|
|
103110
|
+
const headerContainer = "_headerContainer_19oqa_131";
|
|
103111
|
+
const searchContainer = "_searchContainer_19oqa_137";
|
|
103112
|
+
const buttonList = "_buttonList_19oqa_145";
|
|
103113
|
+
const buttonItem = "_buttonItem_19oqa_150";
|
|
103114
|
+
const addReservationButton = "_addReservationButton_19oqa_159";
|
|
103115
|
+
const tableTopHeader = "_tableTopHeader_19oqa_168";
|
|
103116
|
+
const tableTopHeaderContent = "_tableTopHeaderContent_19oqa_182";
|
|
103117
|
+
const tableTopHeaderContentText = "_tableTopHeaderContentText_19oqa_189";
|
|
103118
|
+
const tableRowContainer = "_tableRowContainer_19oqa_198";
|
|
103119
|
+
const tableRowCard = "_tableRowCard_19oqa_204";
|
|
103120
|
+
const fadeInX = "_fadeInX_19oqa_1";
|
|
103121
|
+
const noData = "_noData_19oqa_212";
|
|
103122
|
+
const tableRowHour = "_tableRowHour_19oqa_219";
|
|
103123
|
+
const tableRowHourText = "_tableRowHourText_19oqa_235";
|
|
103124
|
+
const hours = "_hours_19oqa_243";
|
|
103125
|
+
const tableRowContent = "_tableRowContent_19oqa_249";
|
|
103126
|
+
const rowImage = "_rowImage_19oqa_264";
|
|
103127
|
+
const rowContactContainer = "_rowContactContainer_19oqa_278";
|
|
103128
|
+
const rowContactText = "_rowContactText_19oqa_290";
|
|
103129
|
+
const rowContactPhone = "_rowContactPhone_19oqa_296";
|
|
103130
|
+
const rowSectionContainer = "_rowSectionContainer_19oqa_303";
|
|
103131
|
+
const rowSection = "_rowSection_19oqa_303";
|
|
103132
|
+
const rowSectionText = "_rowSectionText_19oqa_316";
|
|
103133
|
+
const rowSectionSecText = "_rowSectionSecText_19oqa_322";
|
|
103134
|
+
const rowActionButton = "_rowActionButton_19oqa_329";
|
|
103135
|
+
const bookingInfoContainer = "_bookingInfoContainer_19oqa_341";
|
|
103136
|
+
const bookingInfoCardRow = "_bookingInfoCardRow_19oqa_345";
|
|
103137
|
+
const bookingInfoCardContainer = "_bookingInfoCardContainer_19oqa_353";
|
|
103138
|
+
const bookingInfoCard = "_bookingInfoCard_19oqa_345";
|
|
103139
|
+
const bookingInfoCardContent = "_bookingInfoCardContent_19oqa_365";
|
|
103140
|
+
const bookingInfoCardTitle = "_bookingInfoCardTitle_19oqa_371";
|
|
103141
|
+
const bookingInfoCardText = "_bookingInfoCardText_19oqa_374";
|
|
103139
103142
|
var styles$l = {
|
|
103140
103143
|
mainConatiner: mainConatiner$2,
|
|
103141
103144
|
mainTableContainer,
|
|
103142
103145
|
mainSidebarContainer,
|
|
103143
|
-
|
|
103144
|
-
"mainSidebarContainer--close": "_mainSidebarContainer--close_8120h_82",
|
|
103146
|
+
headerReferece,
|
|
103145
103147
|
sidebarCloseIcon,
|
|
103146
|
-
"
|
|
103148
|
+
"mainSidebarContainer--open": "_mainSidebarContainer--open_19oqa_87",
|
|
103149
|
+
"mainSidebarContainer--close": "_mainSidebarContainer--close_19oqa_93",
|
|
103150
|
+
"sidebarCloseIcon--show": "_sidebarCloseIcon--show_19oqa_101",
|
|
103147
103151
|
headerContainer,
|
|
103148
103152
|
searchContainer,
|
|
103149
103153
|
buttonList,
|
|
@@ -106703,22 +106707,22 @@ const Label = ({
|
|
|
106703
106707
|
}, tooltip2));
|
|
106704
106708
|
return isHidden2 ? /* @__PURE__ */ React__default.createElement(SrOnly, null, label2) : label2;
|
|
106705
106709
|
};
|
|
106706
|
-
const inputWrapper = "
|
|
106707
|
-
const input$2 = "
|
|
106708
|
-
const inputIcon = "
|
|
106710
|
+
const inputWrapper = "_inputWrapper_13nfd_1";
|
|
106711
|
+
const input$2 = "_input_13nfd_1";
|
|
106712
|
+
const inputIcon = "_inputIcon_13nfd_74";
|
|
106709
106713
|
var styles$e = {
|
|
106710
106714
|
inputWrapper,
|
|
106711
106715
|
input: input$2,
|
|
106712
|
-
"input--r-md": "_input--r-
|
|
106713
|
-
"input--r-sm": "_input--r-
|
|
106714
|
-
"input--with-icon-left": "_input--with-icon-
|
|
106715
|
-
"input--with-icon-right": "_input--with-icon-
|
|
106716
|
-
"input--filled": "_input--
|
|
106717
|
-
"input--borderless": "_input--
|
|
106718
|
-
"input--rounded": "_input--
|
|
106716
|
+
"input--r-md": "_input--r-md_13nfd_36",
|
|
106717
|
+
"input--r-sm": "_input--r-sm_13nfd_41",
|
|
106718
|
+
"input--with-icon-left": "_input--with-icon-left_13nfd_46",
|
|
106719
|
+
"input--with-icon-right": "_input--with-icon-right_13nfd_49",
|
|
106720
|
+
"input--filled": "_input--filled_13nfd_52",
|
|
106721
|
+
"input--borderless": "_input--borderless_13nfd_55",
|
|
106722
|
+
"input--rounded": "_input--rounded_13nfd_59",
|
|
106719
106723
|
inputIcon,
|
|
106720
|
-
"inputIcon--p-left": "_inputIcon--p-
|
|
106721
|
-
"inputIcon--p-right": "_inputIcon--p-
|
|
106724
|
+
"inputIcon--p-left": "_inputIcon--p-left_13nfd_83",
|
|
106725
|
+
"inputIcon--p-right": "_inputIcon--p-right_13nfd_86"
|
|
106722
106726
|
};
|
|
106723
106727
|
const Input2 = ({
|
|
106724
106728
|
id: id2,
|
|
@@ -107733,7 +107737,7 @@ const ActionButtons = ({ onSubmit, venueId }) => {
|
|
|
107733
107737
|
setAction("no-show");
|
|
107734
107738
|
setShowConfrimationModal(true);
|
|
107735
107739
|
}
|
|
107736
|
-
}, t2("
|
|
107740
|
+
}, t2("NOSHOW"))), (selectedBooking == null ? void 0 : selectedBooking.status) != "canceled" && /* @__PURE__ */ React__default.createElement(Button, {
|
|
107737
107741
|
mode: "success",
|
|
107738
107742
|
type: "submit",
|
|
107739
107743
|
icon: "check",
|
|
@@ -107827,7 +107831,9 @@ const Header = () => {
|
|
|
107827
107831
|
}
|
|
107828
107832
|
})), /* @__PURE__ */ React__default.createElement("hr", {
|
|
107829
107833
|
style: { width: "100%", marginTop: 15 }
|
|
107830
|
-
}))
|
|
107834
|
+
}), selectedBooking && (selectedBooking == null ? void 0 : selectedBooking.id) && /* @__PURE__ */ React__default.createElement("p", {
|
|
107835
|
+
className: styles$l.headerReferece
|
|
107836
|
+
}, t2("REFERENCE"), ": ", (selectedBooking == null ? void 0 : selectedBooking.id) ? selectedBooking.id.slice(-8) : ""));
|
|
107831
107837
|
};
|
|
107832
107838
|
const index$a = ({ filtersData, venueId }) => {
|
|
107833
107839
|
const { t: t2 } = useTranslation();
|
|
@@ -107880,7 +107886,7 @@ const index$a = ({ filtersData, venueId }) => {
|
|
|
107880
107886
|
phone: create$2().nullable().notRequired().test(
|
|
107881
107887
|
"is-valid-phone",
|
|
107882
107888
|
t2("errors.phone"),
|
|
107883
|
-
(value2) => !value2 || new RegExp(
|
|
107889
|
+
(value2) => !value2 || new RegExp(/^\+34[67]\d{8}$/).test(value2)
|
|
107884
107890
|
),
|
|
107885
107891
|
notes: create$2()
|
|
107886
107892
|
});
|
|
@@ -108002,7 +108008,7 @@ const index$a = ({ filtersData, venueId }) => {
|
|
|
108002
108008
|
}
|
|
108003
108009
|
}, [filtersData]);
|
|
108004
108010
|
useEffect(() => {
|
|
108005
|
-
var _a2, _b;
|
|
108011
|
+
var _a2, _b, _c;
|
|
108006
108012
|
if (selectedBooking) {
|
|
108007
108013
|
const formattedTime = new Date(selectedBooking.date).toLocaleTimeString([], {
|
|
108008
108014
|
...(filtersData == null ? void 0 : filtersData.timeZone) ? {
|
|
@@ -108022,7 +108028,7 @@ const index$a = ({ filtersData, venueId }) => {
|
|
|
108022
108028
|
lastName: selectedBooking.contact.lastname,
|
|
108023
108029
|
email: selectedBooking.contact.email,
|
|
108024
108030
|
phone: selectedBooking.contact.telephone,
|
|
108025
|
-
notes: selectedBooking == null ? void 0 : selectedBooking.notes
|
|
108031
|
+
notes: (_c = selectedBooking == null ? void 0 : selectedBooking.notes) != null ? _c : ""
|
|
108026
108032
|
});
|
|
108027
108033
|
} else {
|
|
108028
108034
|
reset(defaultValue2);
|
|
@@ -108156,7 +108162,7 @@ const index$a = ({ filtersData, venueId }) => {
|
|
|
108156
108162
|
id: "phone",
|
|
108157
108163
|
name: "phone",
|
|
108158
108164
|
label: "Phone",
|
|
108159
|
-
placeholder: "
|
|
108165
|
+
placeholder: "+12345678999",
|
|
108160
108166
|
radius: "md",
|
|
108161
108167
|
filled: true
|
|
108162
108168
|
})), /* @__PURE__ */ React__default.createElement("div", {
|