mozrest-sdk-react-dev 0.2.75 → 0.2.77
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 +35 -33
- package/package.json +1 -1
- package/style.css +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -102516,34 +102516,34 @@ const ReservationsAnalytics = ({ userEmail, userFullName }) => {
|
|
|
102516
102516
|
totalDays
|
|
102517
102517
|
}));
|
|
102518
102518
|
};
|
|
102519
|
-
const mainConatiner$1 = "
|
|
102520
|
-
const mainTableContainer = "
|
|
102521
|
-
const mainSidebarContainer = "
|
|
102522
|
-
const headerContainer = "
|
|
102523
|
-
const buttonList = "
|
|
102524
|
-
const tableTopHeader = "
|
|
102525
|
-
const tableTopHeaderContent = "
|
|
102526
|
-
const tableRowContainer = "
|
|
102527
|
-
const tableRowCard = "
|
|
102528
|
-
const noData = "
|
|
102529
|
-
const tableRowHour = "
|
|
102530
|
-
const hours = "
|
|
102531
|
-
const tableRowContent = "
|
|
102532
|
-
const rowImage = "
|
|
102533
|
-
const rowContactContainer = "
|
|
102534
|
-
const rowContactText = "
|
|
102535
|
-
const rowContactPhone = "
|
|
102536
|
-
const rowSectionContainer = "
|
|
102537
|
-
const rowSectionText = "
|
|
102538
|
-
const rowSectionSecText = "
|
|
102539
|
-
const rowActionButton = "
|
|
102540
|
-
const bookingInfoContainer = "
|
|
102541
|
-
const bookingInfoCardRow = "
|
|
102542
|
-
const bookingInfoCardContainer = "
|
|
102543
|
-
const bookingInfoCard = "
|
|
102544
|
-
const bookingInfoCardContent = "
|
|
102545
|
-
const bookingInfoCardTitle = "
|
|
102546
|
-
const bookingInfoCardText = "
|
|
102519
|
+
const mainConatiner$1 = "_mainConatiner_lnm3d_48";
|
|
102520
|
+
const mainTableContainer = "_mainTableContainer_lnm3d_58";
|
|
102521
|
+
const mainSidebarContainer = "_mainSidebarContainer_lnm3d_65";
|
|
102522
|
+
const headerContainer = "_headerContainer_lnm3d_74";
|
|
102523
|
+
const buttonList = "_buttonList_lnm3d_79";
|
|
102524
|
+
const tableTopHeader = "_tableTopHeader_lnm3d_85";
|
|
102525
|
+
const tableTopHeaderContent = "_tableTopHeaderContent_lnm3d_93";
|
|
102526
|
+
const tableRowContainer = "_tableRowContainer_lnm3d_101";
|
|
102527
|
+
const tableRowCard = "_tableRowCard_lnm3d_107";
|
|
102528
|
+
const noData = "_noData_lnm3d_112";
|
|
102529
|
+
const tableRowHour = "_tableRowHour_lnm3d_119";
|
|
102530
|
+
const hours = "_hours_lnm3d_130";
|
|
102531
|
+
const tableRowContent = "_tableRowContent_lnm3d_136";
|
|
102532
|
+
const rowImage = "_rowImage_lnm3d_145";
|
|
102533
|
+
const rowContactContainer = "_rowContactContainer_lnm3d_151";
|
|
102534
|
+
const rowContactText = "_rowContactText_lnm3d_158";
|
|
102535
|
+
const rowContactPhone = "_rowContactPhone_lnm3d_164";
|
|
102536
|
+
const rowSectionContainer = "_rowSectionContainer_lnm3d_171";
|
|
102537
|
+
const rowSectionText = "_rowSectionText_lnm3d_177";
|
|
102538
|
+
const rowSectionSecText = "_rowSectionSecText_lnm3d_183";
|
|
102539
|
+
const rowActionButton = "_rowActionButton_lnm3d_190";
|
|
102540
|
+
const bookingInfoContainer = "_bookingInfoContainer_lnm3d_196";
|
|
102541
|
+
const bookingInfoCardRow = "_bookingInfoCardRow_lnm3d_200";
|
|
102542
|
+
const bookingInfoCardContainer = "_bookingInfoCardContainer_lnm3d_208";
|
|
102543
|
+
const bookingInfoCard = "_bookingInfoCard_lnm3d_200";
|
|
102544
|
+
const bookingInfoCardContent = "_bookingInfoCardContent_lnm3d_220";
|
|
102545
|
+
const bookingInfoCardTitle = "_bookingInfoCardTitle_lnm3d_226";
|
|
102546
|
+
const bookingInfoCardText = "_bookingInfoCardText_lnm3d_229";
|
|
102547
102547
|
var styles$f = {
|
|
102548
102548
|
mainConatiner: mainConatiner$1,
|
|
102549
102549
|
mainTableContainer,
|
|
@@ -106448,7 +106448,7 @@ const TableTopHeader = ({ date: date4, total }) => {
|
|
|
106448
106448
|
const { t: t2 } = useTranslation();
|
|
106449
106449
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
106450
106450
|
className: styles$f.tableTopHeader
|
|
106451
|
-
}, /* @__PURE__ */ React__default.createElement("h1", null, date4), /* @__PURE__ */ React__default.createElement("h1", null, total, " ", t2("RESERVATIONS")));
|
|
106451
|
+
}, /* @__PURE__ */ React__default.createElement("h1", null, hooks(date4).format("DD.MM.YYYY")), /* @__PURE__ */ React__default.createElement("h1", null, total, " ", t2("RESERVATIONS")));
|
|
106452
106452
|
};
|
|
106453
106453
|
const TimeFormat = ({ dateTime, currentTimeZone }) => {
|
|
106454
106454
|
const formattedTime = new Date(dateTime).toLocaleTimeString([], {
|
|
@@ -106591,20 +106591,22 @@ const TableBody = ({ data: data2, filtersData, venueId }) => {
|
|
|
106591
106591
|
if (data2 && filtersData) {
|
|
106592
106592
|
const groupedByHour = _23.groupBy(data2, (item2) => {
|
|
106593
106593
|
const formattedTime = new Date(item2.date).toLocaleTimeString([], {
|
|
106594
|
-
...(filtersData == null ? void 0 : filtersData.timeZone) ? {
|
|
106595
|
-
timeZone: filtersData == null ? void 0 : filtersData.timeZone
|
|
106596
|
-
} : {},
|
|
106594
|
+
...(filtersData == null ? void 0 : filtersData.timeZone) ? { timeZone: filtersData == null ? void 0 : filtersData.timeZone } : {},
|
|
106597
106595
|
hour: "2-digit",
|
|
106598
106596
|
minute: void 0,
|
|
106599
106597
|
hour12: false
|
|
106600
106598
|
});
|
|
106601
106599
|
return `${formattedTime}:00`;
|
|
106602
106600
|
});
|
|
106603
|
-
const sortedGroupedByHour = _23(groupedByHour).toPairs().
|
|
106601
|
+
const sortedGroupedByHour = _23(groupedByHour).toPairs().map(([hour2, reservations]) => [
|
|
106602
|
+
hour2,
|
|
106603
|
+
_23.orderBy(reservations, (r2) => new Date(r2.date), ["desc"])
|
|
106604
|
+
]).orderBy(
|
|
106604
106605
|
([hour2]) => parseInt(hour2.split(":")[0], 10),
|
|
106605
106606
|
["asc"]
|
|
106606
106607
|
).fromPairs().value();
|
|
106607
106608
|
setFormattedData(sortedGroupedByHour);
|
|
106609
|
+
console.log(sortedGroupedByHour, "sortedGroupedByHour");
|
|
106608
106610
|
}
|
|
106609
106611
|
}, [data2, filtersData]);
|
|
106610
106612
|
return /* @__PURE__ */ React__default.createElement("div", null, _23.isEmpty(formattedData) ? /* @__PURE__ */ React__default.createElement("div", {
|