@ancon/wildcat-utils 1.44.0-terminal-refactor.8 → 1.44.0
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/_baseIsEqual-12d01a44.mjs +169 -0
- package/_baseIsEqual-bcac9024.js +1 -0
- package/_baseIteratee-075c204c.js +1 -0
- package/_baseIteratee-4c4d0995.mjs +97 -0
- package/_baseSlice-4d543985.mjs +10 -0
- package/_baseSlice-e1b41ceb.js +1 -0
- package/_getTag-4e44633b.mjs +382 -0
- package/_getTag-b8923c48.js +1 -0
- package/checkout/checkoutHasWallet.d.ts +3 -0
- package/checkout/getCheckoutOrderStatusTexts.js +1 -1
- package/checkout/getCheckoutOrderStatusTexts.mjs +7 -5
- package/checkout/getCheckoutRequestItemFromCheckoutItem.d.ts +2 -2
- package/checkout/getCheckoutRequestItemFromCheckoutItem.js +1 -1
- package/checkout/getCheckoutRequestItemFromCheckoutItem.mjs +26 -14
- package/checkout/getCheckoutWalletTopUpMetaData.d.ts +7 -0
- package/checkout/getCheckoutWalletTopUpMetaData.js +1 -0
- package/checkout/getCheckoutWalletTopUpMetaData.mjs +15 -0
- package/checkout/getWalletMetaFromCheckout.d.ts +3 -0
- package/checkout/index.d.ts +4 -1
- package/checkout/index.js +1 -1
- package/checkout/index.mjs +49 -41
- package/checkout/isCheckoutItemsAreEqual.js +1 -1
- package/checkout/isCheckoutItemsAreEqual.mjs +14 -13
- package/checkout/isWalletTopUpCheckout.d.ts +2 -0
- package/checkout/isWalletTopUpCheckout.js +1 -0
- package/checkout/isWalletTopUpCheckout.mjs +12 -0
- package/checkout/isWalletTopUpCheckoutItem.d.ts +2 -0
- package/checkout/isWalletTopUpCheckoutItem.js +1 -0
- package/checkout/isWalletTopUpCheckoutItem.mjs +9 -0
- package/date/convertToLocalTimezone.d.ts +8 -0
- package/date/convertToLocalTimezone.js +1 -0
- package/date/convertToLocalTimezone.mjs +12 -0
- package/date/convertToSpecificTimezone.d.ts +9 -0
- package/date/convertToSpecificTimezone.js +1 -0
- package/date/convertToSpecificTimezone.mjs +6 -0
- package/date/createLocalTimezoneDate.d.ts +8 -0
- package/date/createLocalTimezoneDate.js +1 -0
- package/date/createLocalTimezoneDate.mjs +8 -0
- package/date/createLocalTimezoneMoment.d.ts +9 -0
- package/date/createLocalTimezoneMoment.js +1 -0
- package/date/createLocalTimezoneMoment.mjs +8 -0
- package/date/getFormattedUTCDateTime.d.ts +10 -0
- package/date/getFormattedUTCDateTime.js +1 -0
- package/date/getFormattedUTCDateTime.mjs +8 -0
- package/date/getTimezoneUtcOffsetDifference.d.ts +8 -0
- package/date/getTimezoneUtcOffsetDifference.js +1 -0
- package/date/getTimezoneUtcOffsetDifference.mjs +8 -0
- package/date/index.d.ts +8 -0
- package/date/index.js +1 -0
- package/date/index.mjs +17 -0
- package/date/isDSTShiftPresentInRange.d.ts +8 -0
- package/date/isDSTShiftPresentInRange.js +1 -0
- package/date/isDSTShiftPresentInRange.mjs +9 -0
- package/identity-1bae7cf8.js +1 -0
- package/identity-6eafe87b.mjs +64 -0
- package/index.d.ts +2 -0
- package/index.js +1 -1
- package/index.mjs +228 -188
- package/logger/index.js +1 -1
- package/logger/index.mjs +8 -7
- package/logger/pascalCaseFormatter.js +1 -1
- package/logger/pascalCaseFormatter.mjs +21 -27
- package/order/getCheckOrderItemsMappedByTicketItemStatus.js +1 -1
- package/order/getCheckOrderItemsMappedByTicketItemStatus.mjs +15 -13
- package/order/getCheckOrderMinimumStatusTicketItem.js +1 -1
- package/order/getCheckOrderMinimumStatusTicketItem.mjs +19 -17
- package/order/index.js +1 -1
- package/order/index.mjs +11 -9
- package/outlet/getExpressAvailableOrderFormats.js +1 -1
- package/outlet/getExpressAvailableOrderFormats.mjs +27 -26
- package/outlet/getExpressNextAvailabilityShiftTime.d.ts +2 -2
- package/outlet/getExpressNextAvailabilityShiftTime.js +1 -1
- package/outlet/getExpressNextAvailabilityShiftTime.mjs +19 -18
- package/outlet/getExpressServiceIntervalEnd.d.ts +2 -2
- package/outlet/getExpressServiceIntervalEnd.js +1 -1
- package/outlet/getExpressServiceIntervalEnd.mjs +7 -9
- package/outlet/getExpressServiceIntervalStart.d.ts +2 -2
- package/outlet/getExpressServiceIntervalStart.js +1 -1
- package/outlet/getExpressServiceIntervalStart.mjs +7 -9
- package/outlet/getListOutletOpeningHoursTable.d.ts +1 -1
- package/outlet/getListOutletOpeningHoursTable.js +1 -1
- package/outlet/getListOutletOpeningHoursTable.mjs +135 -150
- package/outlet/getOutletActiveOpeningInterval.d.ts +2 -2
- package/outlet/getOutletActiveOpeningInterval.js +1 -1
- package/outlet/getOutletActiveOpeningInterval.mjs +15 -12
- package/outlet/getOutletAvailabilityInfo.js +1 -1
- package/outlet/getOutletAvailabilityInfo.mjs +23 -25
- package/outlet/getOutletCurrentActiveOperatingHour.js +1 -1
- package/outlet/getOutletCurrentActiveOperatingHour.mjs +26 -20
- package/outlet/getOutletCurrentAvailabilityInfo.js +1 -1
- package/outlet/getOutletCurrentAvailabilityInfo.mjs +33 -29
- package/outlet/getOutletCurrentClosingTimeText.js +1 -1
- package/outlet/getOutletCurrentClosingTimeText.mjs +14 -10
- package/outlet/getOutletDeliveryFee.js +1 -1
- package/outlet/getOutletDeliveryFee.mjs +5 -5
- package/outlet/getOutletFormattedAddress.d.ts +9 -1
- package/outlet/getOutletFormattedAddress.js +1 -1
- package/outlet/getOutletFormattedAddress.mjs +9 -4
- package/outlet/getOutletNextOpeningTagInformation.js +1 -1
- package/outlet/getOutletNextOpeningTagInformation.mjs +18 -14
- package/outlet/getOutletNextOpeningTimeText.js +1 -1
- package/outlet/getOutletNextOpeningTimeText.mjs +14 -9
- package/outlet/getOutletNextReadyToOrderTime.js +1 -1
- package/outlet/getOutletNextReadyToOrderTime.mjs +40 -28
- package/outlet/getOutletPickerTimesForDay.js +1 -1
- package/outlet/getOutletPickerTimesForDay.mjs +102 -48
- package/outlet/getOutletPickerTimesForWeek.js +1 -1
- package/outlet/getOutletPickerTimesForWeek.mjs +14 -8
- package/outlet/getOutletTagInformation.d.ts +1 -1
- package/outlet/getOutletTagInformation.js +1 -1
- package/outlet/getOutletTagInformation.mjs +73 -72
- package/outlet/getOutletTodayOpeningTimes.js +1 -1
- package/outlet/getOutletTodayOpeningTimes.mjs +43 -39
- package/outlet/getPartitionedOutletsList.js +1 -1
- package/outlet/getPartitionedOutletsList.mjs +4 -4
- package/outlet/getPickerIntervalsForDay.js +1 -1
- package/outlet/getPickerIntervalsForDay.mjs +20 -12
- package/outlet/getServiceIntervalEnd.d.ts +1 -1
- package/outlet/getServiceIntervalEnd.js +1 -1
- package/outlet/getServiceIntervalEnd.mjs +13 -10
- package/outlet/getServiceIntervalRange.d.ts +1 -2
- package/outlet/getServiceIntervalRange.js +1 -1
- package/outlet/getServiceIntervalRange.mjs +8 -12
- package/outlet/getServiceIntervalStart.d.ts +1 -1
- package/outlet/getServiceIntervalStart.js +1 -1
- package/outlet/getServiceIntervalStart.mjs +7 -7
- package/outlet/getServiceIntervalTimeSpanMoment.d.ts +9 -0
- package/outlet/getServiceIntervalTimeSpanMoment.js +1 -0
- package/outlet/getServiceIntervalTimeSpanMoment.mjs +9 -0
- package/outlet/getServiceIntervalsForOrderFormat.d.ts +7 -8
- package/outlet/getStructuredOutletAddress.js +1 -1
- package/outlet/getStructuredOutletAddress.mjs +7 -7
- package/outlet/getTimezoneAdjustedServiceInterval.d.ts +14 -0
- package/outlet/getTimezoneAdjustedServiceInterval.js +1 -0
- package/outlet/getTimezoneAdjustedServiceInterval.mjs +26 -0
- package/outlet/index.js +1 -1
- package/outlet/index.mjs +78 -70
- package/outlet/searchNextOpeningMoment.d.ts +1 -1
- package/outlet/searchNextOpeningMoment.js +1 -1
- package/outlet/searchNextOpeningMoment.mjs +62 -66
- package/outlet/serviceDateTimesFromOpeningHours.d.ts +3 -5
- package/outlet/serviceDateTimesFromOpeningHours.js +1 -1
- package/outlet/serviceDateTimesFromOpeningHours.mjs +342 -27
- package/outlet/types.d.ts +6 -2
- package/outlet/types.js +1 -1
- package/outlet/types.mjs +3 -2
- package/package.json +76 -11
- package/time/convertSecondsToTimeSpan.d.ts +9 -0
- package/time/convertSecondsToTimeSpan.js +1 -0
- package/time/convertSecondsToTimeSpan.mjs +12 -0
- package/time/convertTimeSpanToSeconds.d.ts +6 -0
- package/time/convertTimeSpanToSeconds.js +1 -0
- package/time/convertTimeSpanToSeconds.mjs +8 -0
- package/time/createTimeSpan.js +1 -1
- package/time/createTimeSpan.mjs +10 -5
- package/time/formatTimeSpan.js +1 -1
- package/time/formatTimeSpan.mjs +5 -4
- package/time/getDurationBetweenTimeSpans.d.ts +2 -2
- package/time/getDurationBetweenTimeSpans.js +1 -1
- package/time/getDurationBetweenTimeSpans.mjs +11 -9
- package/time/getEndTimeSpanOfTimePeriod.js +1 -1
- package/time/getEndTimeSpanOfTimePeriod.mjs +8 -10
- package/time/index.d.ts +3 -1
- package/time/index.js +1 -1
- package/time/index.mjs +16 -12
- package/{toString-e631a957.mjs → toString-3b91b335.mjs} +12 -11
- package/toString-9eae9442.js +1 -0
- package/_baseIsEqual-39cef2eb.mjs +0 -530
- package/_baseIsEqual-b3df9240.js +0 -1
- package/_baseIteratee-13e892b8.mjs +0 -151
- package/_baseIteratee-be26bb18.js +0 -1
- package/outlet/getMomentFromDateAndTimeString.d.ts +0 -3
- package/outlet/getMomentFromDateAndTimeString.js +0 -1
- package/outlet/getMomentFromDateAndTimeString.mjs +0 -17
- package/outlet/getNextTenthMinute.d.ts +0 -2
- package/outlet/getNextTenthMinute.js +0 -1
- package/outlet/getNextTenthMinute.mjs +0 -7
- package/toString-425512fc.js +0 -1
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { OrderFormat, ServiceDateTime } from '@ancon/wildcat-types';
|
|
1
|
+
import { DayOfWeek, IntervalState, IntervalType, OrderFormat, ServiceDateTime } from '@ancon/wildcat-types';
|
|
2
2
|
declare type ModifiedServiceDateTimeInterval = {
|
|
3
|
-
|
|
3
|
+
from: string;
|
|
4
4
|
duration: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type: number;
|
|
5
|
+
periodFrom: string;
|
|
6
|
+
periodTo: string;
|
|
7
|
+
type: IntervalType;
|
|
9
8
|
position: number;
|
|
10
|
-
state:
|
|
11
|
-
dayOfWeek:
|
|
9
|
+
state: IntervalState;
|
|
10
|
+
dayOfWeek: DayOfWeek;
|
|
12
11
|
isDefault: boolean;
|
|
13
12
|
reason: string;
|
|
14
13
|
orderFormats: OrderFormat;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function i(t){return t.filter(Boolean).join(", ")||""}function l(t){if(t){const{street:r,city:
|
|
1
|
+
"use strict";function i(t){return t.filter(Boolean).join(", ")||""}function l(t){if(t){const{street:r,city:o,state:s,zipCode:c,country:u}=t,e=i([r||"",o||""]),n=i([s||"",c||"",u||""]);return{line1:e||n,line2:e?n:""}}return{line1:"",line2:""}}module.exports=l;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
function i(
|
|
2
|
-
return
|
|
1
|
+
function i(e) {
|
|
2
|
+
return e.filter(Boolean).join(", ") || "";
|
|
3
3
|
}
|
|
4
|
-
function l(
|
|
5
|
-
if (
|
|
6
|
-
const { street: r, city: o, state: s,
|
|
4
|
+
function l(e) {
|
|
5
|
+
if (e) {
|
|
6
|
+
const { street: r, city: o, state: s, zipCode: u, country: c } = e, t = i([r || "", o || ""]), n = i([
|
|
7
7
|
s || "",
|
|
8
8
|
u || "",
|
|
9
9
|
c || ""
|
|
10
10
|
]);
|
|
11
11
|
return {
|
|
12
|
-
line1:
|
|
13
|
-
line2:
|
|
12
|
+
line1: t || n,
|
|
13
|
+
line2: t ? n : ""
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
return {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import moment from 'moment';
|
|
2
|
+
import { ServiceDateTimeInterval } from '@ancon/wildcat-types';
|
|
3
|
+
/**
|
|
4
|
+
* This function adjusts the service interval opening and closing time to the specified timezone,
|
|
5
|
+
* if opening and closing time are in different timezone offsets.
|
|
6
|
+
* @param date The date of the service interval
|
|
7
|
+
* @param interval The service interval object
|
|
8
|
+
* @param timezoneOffset The specific timezone offset. If not provided, the local timezone offset will be used.
|
|
9
|
+
* @returns The adjusted service interval opening and closing time
|
|
10
|
+
*/
|
|
11
|
+
export default function getTimezoneAdjustedServiceInterval(date: string, interval: ServiceDateTimeInterval, timezoneOffset?: number): {
|
|
12
|
+
openingTime: moment.Moment;
|
|
13
|
+
closingTime: moment.Moment;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("moment"),f=require("../time/getTimeSpanParts.js"),s=require("../date/getTimezoneUtcOffsetDifference.js"),a=require("../date/convertToSpecificTimezone.js"),m=require("./getServiceIntervalTimeSpanMoment.js");function u(r,i,o){const n=f(i.duration);let e=m(r,i.from),t=e.clone().add(n);return s(e,t)&&(e=a(e,o??c().utcOffset(),!0),t=e.clone().add(n)),{openingTime:e,closingTime:t}}module.exports=u;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import f from "moment";
|
|
2
|
+
import m from "../time/getTimeSpanParts.mjs";
|
|
3
|
+
import c from "../date/getTimezoneUtcOffsetDifference.mjs";
|
|
4
|
+
import a from "../date/convertToSpecificTimezone.mjs";
|
|
5
|
+
import l from "./getServiceIntervalTimeSpanMoment.mjs";
|
|
6
|
+
function v(o, i, r) {
|
|
7
|
+
const n = m(i.duration);
|
|
8
|
+
let e = l(
|
|
9
|
+
o,
|
|
10
|
+
i.from
|
|
11
|
+
), t = e.clone().add(n);
|
|
12
|
+
return c(
|
|
13
|
+
e,
|
|
14
|
+
t
|
|
15
|
+
) && (e = a(
|
|
16
|
+
e,
|
|
17
|
+
r ?? f().utcOffset(),
|
|
18
|
+
!0
|
|
19
|
+
), t = e.clone().add(n)), {
|
|
20
|
+
openingTime: e,
|
|
21
|
+
closingTime: t
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
v as default
|
|
26
|
+
};
|
package/outlet/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./getListOutletOpeningHoursTable.js"),t=require("./getOutletTagInformation.js"),r=require("./getOutletAvailabilityInfo.js"),i=require("./getOutletOfflineOrderFormats.js"),u=require("./getOutletAvailableOrderFormats.js"),o=require("./getOutletFormattedDistance.js"),l=require("./isOutletAcceptingPreOrders.js"),s=require("./getOutletDeliveryFee.js"),n=require("./getOutletTodayOpeningTimes.js"),a=require("./getOutletOrderFormats.js"),O=require("./serviceDateTimesFromOpeningHours.js"),g=require("./getPickerIntervalsForDay.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./getListOutletOpeningHoursTable.js"),t=require("./getOutletTagInformation.js"),r=require("./getOutletAvailabilityInfo.js"),i=require("./getOutletOfflineOrderFormats.js"),u=require("./getOutletAvailableOrderFormats.js"),o=require("./getOutletFormattedDistance.js"),l=require("./isOutletAcceptingPreOrders.js"),s=require("./getOutletDeliveryFee.js"),n=require("./getOutletTodayOpeningTimes.js"),a=require("./getOutletOrderFormats.js"),O=require("./serviceDateTimesFromOpeningHours.js"),g=require("./getPickerIntervalsForDay.js"),q=require("./getServiceIntervalRange.js"),c=require("./getServiceIntervalsForOrderFormat.js"),d=require("./getOutletFormattedAddress.js"),m=require("./getPartitionedOutletsList.js"),T=require("./getOutletPickerTimesForWeek.js"),F=require("./getOutletPickerTimesForDay.js"),_=require("./getOutletOrderPrepTime.js"),v=require("./getStructuredOutletAddress.js"),p=require("./getOutletNextOpeningTimeText.js"),f=require("./getOutletCurrentClosingTimeText.js"),A=require("./getOutletNextReadyToOrderTime.js"),y=require("./getOutletNextOpeningTagInformation.js"),b=require("./getOutletCurrentAvailabilityInfo.js"),x=require("./getExpressAvailableOrderFormats.js"),P=require("./getExpressNextAvailabilityShiftTime.js"),S=require("./getOrderFormatAOTipSettings.js"),I=require("./isAOTippingEnabledForOrderFormat.js"),D=require("./isMenuTreeHierarchyProductAvailable.js"),N=require("./getOutletMenuProductsSortCriteria.js"),k=require("./getOutletNextServiceTimeOffset.js");require("moment");require("@ancon/wildcat-types");require("../shared/isWithinFlag.js");require("../shared/generateId.js");require("react");require("../time/getTimeSpanParts.js");require("../date/createLocalTimezoneMoment.js");require("./constants.js");require("./getOutletCurrentActiveOperatingHour.js");require("./getTimezoneAdjustedServiceInterval.js");require("../date/getTimezoneUtcOffsetDifference.js");require("../date/convertToSpecificTimezone.js");require("./getServiceIntervalTimeSpanMoment.js");require("./searchNextOpeningMoment.js");require("../_baseIteratee-075c204c.js");require("../_getTag-b8923c48.js");require("../isArray-640f9811.js");require("../_baseIsEqual-bcac9024.js");require("../identity-1bae7cf8.js");require("../toString-9eae9442.js");require("../noop-7ea3b37b.js");require("../_baseSlice-e1b41ceb.js");require("../shared/constants.js");require("../time/toMinutes.js");require("../time/getNextTenthMinute.js");require("../string/truncate.js");require("./types.js");require("../date/isDSTShiftPresentInRange.js");require("./getSettingsForOrderFormat.js");require("./getServiceIntervalStart.js");require("./generatePickerTimesForDay.js");require("./getServiceIntervalEnd.js");require("./hoursAndMinutesToMinutes.js");require("./getExpressServiceIntervalStart.js");require("./getExpressServiceIntervalEnd.js");exports.getListOutletOpeningHoursTable=e;exports.getOutletTagInformation=t.default;exports.getOutletAvailabilityInfo=r.default;exports.getOutletOfflineOrderFormats=i;exports.getOutletAvailableOrderFormats=u;exports.getOutletFormattedDistance=o;exports.isOutletAcceptingPreOrders=l;exports.getOutletDeliveryFee=s;exports.getOutletTodayOpeningTimes=n;exports.getOutletOrderFormats=a;exports.serviceDateTimesFromOpeningHours=O;exports.getPickerIntervalsForDay=g;exports.getServiceIntervalRange=q;exports.getServiceIntervalsForOrderFormat=c;exports.getOutletFormattedAddress=d;exports.getPartitionedOutletsList=m;exports.getOutletPickerTimesForWeek=T;exports.getOutletPickerTimesForDay=F;exports.getOutletOrderPreparationTime=_;exports.getStructuredOutletAddress=v;exports.getOutletNextOpeningTimeText=p;exports.getOutletCurrentClosingTimeText=f;exports.getOutletNextReadyToOrderTime=A;exports.getOutletNextOpeningTagInformation=y;exports.getOutletCurrentAvailabilityInfo=b;exports.getExpressAvailableOrderFormats=x;exports.getExpressNextAvailabilityShiftTime=P;exports.getOrderFormatAOTipSettings=S.default;exports.isAOTippingEnabledForOrderFormat=I;exports.isMenuTreeHierarchyProductAvailable=D;exports.getOutletMenuProductsSortCriteria=N;exports.getOutletNextServiceTimeOffset=k;
|
package/outlet/index.mjs
CHANGED
|
@@ -1,93 +1,101 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
1
|
+
import { default as W } from "./getListOutletOpeningHoursTable.mjs";
|
|
2
|
+
import { default as q } from "./getOutletTagInformation.mjs";
|
|
3
|
+
import { default as z } from "./getOutletAvailabilityInfo.mjs";
|
|
4
|
+
import { default as G } from "./getOutletOfflineOrderFormats.mjs";
|
|
5
|
+
import { default as K } from "./getOutletAvailableOrderFormats.mjs";
|
|
6
|
+
import { default as U } from "./getOutletFormattedDistance.mjs";
|
|
7
|
+
import { default as X } from "./isOutletAcceptingPreOrders.mjs";
|
|
8
|
+
import { default as Z } from "./getOutletDeliveryFee.mjs";
|
|
9
|
+
import { default as $ } from "./getOutletTodayOpeningTimes.mjs";
|
|
10
|
+
import { default as et } from "./getOutletOrderFormats.mjs";
|
|
11
|
+
import { default as ot } from "./serviceDateTimesFromOpeningHours.mjs";
|
|
12
|
+
import { default as it } from "./getPickerIntervalsForDay.mjs";
|
|
13
|
+
import { default as pt } from "./getServiceIntervalRange.mjs";
|
|
14
|
+
import { default as ft } from "./getServiceIntervalsForOrderFormat.mjs";
|
|
15
|
+
import { default as ut } from "./getOutletFormattedAddress.mjs";
|
|
16
|
+
import { default as Ot } from "./getPartitionedOutletsList.mjs";
|
|
17
|
+
import { default as gt } from "./getOutletPickerTimesForWeek.mjs";
|
|
18
|
+
import { default as Tt } from "./getOutletPickerTimesForDay.mjs";
|
|
19
|
+
import { default as ct } from "./getOutletOrderPrepTime.mjs";
|
|
20
|
+
import { default as At } from "./getStructuredOutletAddress.mjs";
|
|
21
|
+
import { default as bt } from "./getOutletNextOpeningTimeText.mjs";
|
|
22
|
+
import { default as It } from "./getOutletCurrentClosingTimeText.mjs";
|
|
23
|
+
import { default as Dt } from "./getOutletNextReadyToOrderTime.mjs";
|
|
24
|
+
import { default as kt } from "./getOutletNextOpeningTagInformation.mjs";
|
|
25
|
+
import { default as Et } from "./getOutletCurrentAvailabilityInfo.mjs";
|
|
26
|
+
import { default as ht } from "./getExpressAvailableOrderFormats.mjs";
|
|
27
|
+
import { default as Mt } from "./getExpressNextAvailabilityShiftTime.mjs";
|
|
28
|
+
import { default as Wt } from "./getOrderFormatAOTipSettings.mjs";
|
|
29
|
+
import { default as qt } from "./isAOTippingEnabledForOrderFormat.mjs";
|
|
30
|
+
import { default as zt } from "./isMenuTreeHierarchyProductAvailable.mjs";
|
|
31
|
+
import { default as Gt } from "./getOutletMenuProductsSortCriteria.mjs";
|
|
32
|
+
import { default as Kt } from "./getOutletNextServiceTimeOffset.mjs";
|
|
33
33
|
import "moment";
|
|
34
34
|
import "@ancon/wildcat-types";
|
|
35
35
|
import "../shared/isWithinFlag.mjs";
|
|
36
36
|
import "../shared/generateId.mjs";
|
|
37
37
|
import "react";
|
|
38
|
+
import "../time/getTimeSpanParts.mjs";
|
|
39
|
+
import "../date/createLocalTimezoneMoment.mjs";
|
|
38
40
|
import "./constants.mjs";
|
|
39
41
|
import "./getOutletCurrentActiveOperatingHour.mjs";
|
|
40
|
-
import "./
|
|
42
|
+
import "./getTimezoneAdjustedServiceInterval.mjs";
|
|
43
|
+
import "../date/getTimezoneUtcOffsetDifference.mjs";
|
|
44
|
+
import "../date/convertToSpecificTimezone.mjs";
|
|
45
|
+
import "./getServiceIntervalTimeSpanMoment.mjs";
|
|
41
46
|
import "./searchNextOpeningMoment.mjs";
|
|
42
|
-
import "../_baseIteratee-
|
|
43
|
-
import "../
|
|
47
|
+
import "../_baseIteratee-4c4d0995.mjs";
|
|
48
|
+
import "../_getTag-4e44633b.mjs";
|
|
44
49
|
import "../isArray-0d9c7aaa.mjs";
|
|
45
|
-
import "../
|
|
50
|
+
import "../_baseIsEqual-12d01a44.mjs";
|
|
51
|
+
import "../identity-6eafe87b.mjs";
|
|
52
|
+
import "../toString-3b91b335.mjs";
|
|
46
53
|
import "../noop-378485d5.mjs";
|
|
54
|
+
import "../_baseSlice-4d543985.mjs";
|
|
47
55
|
import "../shared/constants.mjs";
|
|
48
56
|
import "../time/toMinutes.mjs";
|
|
49
57
|
import "../time/getNextTenthMinute.mjs";
|
|
58
|
+
import "../string/truncate.mjs";
|
|
50
59
|
import "./types.mjs";
|
|
60
|
+
import "../date/isDSTShiftPresentInRange.mjs";
|
|
51
61
|
import "./getSettingsForOrderFormat.mjs";
|
|
52
62
|
import "./getServiceIntervalStart.mjs";
|
|
53
|
-
import "./getNextTenthMinute.mjs";
|
|
54
63
|
import "./generatePickerTimesForDay.mjs";
|
|
55
64
|
import "./getServiceIntervalEnd.mjs";
|
|
56
65
|
import "./hoursAndMinutesToMinutes.mjs";
|
|
57
66
|
import "./getExpressServiceIntervalStart.mjs";
|
|
58
|
-
import "../time/getTimeSpanParts.mjs";
|
|
59
67
|
import "./getExpressServiceIntervalEnd.mjs";
|
|
60
68
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
69
|
+
ht as getExpressAvailableOrderFormats,
|
|
70
|
+
Mt as getExpressNextAvailabilityShiftTime,
|
|
71
|
+
W as getListOutletOpeningHoursTable,
|
|
72
|
+
Wt as getOrderFormatAOTipSettings,
|
|
73
|
+
z as getOutletAvailabilityInfo,
|
|
74
|
+
K as getOutletAvailableOrderFormats,
|
|
75
|
+
Et as getOutletCurrentAvailabilityInfo,
|
|
76
|
+
It as getOutletCurrentClosingTimeText,
|
|
77
|
+
Z as getOutletDeliveryFee,
|
|
78
|
+
ut as getOutletFormattedAddress,
|
|
79
|
+
U as getOutletFormattedDistance,
|
|
80
|
+
Gt as getOutletMenuProductsSortCriteria,
|
|
81
|
+
kt as getOutletNextOpeningTagInformation,
|
|
82
|
+
bt as getOutletNextOpeningTimeText,
|
|
83
|
+
Dt as getOutletNextReadyToOrderTime,
|
|
84
|
+
Kt as getOutletNextServiceTimeOffset,
|
|
85
|
+
G as getOutletOfflineOrderFormats,
|
|
86
|
+
et as getOutletOrderFormats,
|
|
87
|
+
ct as getOutletOrderPreparationTime,
|
|
88
|
+
Tt as getOutletPickerTimesForDay,
|
|
89
|
+
gt as getOutletPickerTimesForWeek,
|
|
90
|
+
q as getOutletTagInformation,
|
|
91
|
+
$ as getOutletTodayOpeningTimes,
|
|
92
|
+
Ot as getPartitionedOutletsList,
|
|
93
|
+
it as getPickerIntervalsForDay,
|
|
94
|
+
pt as getServiceIntervalRange,
|
|
95
|
+
ft as getServiceIntervalsForOrderFormat,
|
|
96
|
+
At as getStructuredOutletAddress,
|
|
97
|
+
qt as isAOTippingEnabledForOrderFormat,
|
|
98
|
+
zt as isMenuTreeHierarchyProductAvailable,
|
|
99
|
+
X as isOutletAcceptingPreOrders,
|
|
100
|
+
ot as serviceDateTimesFromOpeningHours
|
|
93
101
|
};
|
|
@@ -10,5 +10,5 @@ import { OperatingHourFormattedMap } from './types';
|
|
|
10
10
|
*
|
|
11
11
|
* @return {Moment}
|
|
12
12
|
*/
|
|
13
|
-
declare function searchNextOpeningMoment(operatingHourMap: OperatingHourFormattedMap, relevantMoment: Moment
|
|
13
|
+
declare function searchNextOpeningMoment(operatingHourMap: OperatingHourFormattedMap, relevantMoment: Moment): Moment | null;
|
|
14
14
|
export default searchNextOpeningMoment;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const m=require("moment"),
|
|
1
|
+
"use strict";const m=require("moment"),O=require("@ancon/wildcat-types"),d=require("../time/getTimeSpanParts.js"),f=require("./constants.js"),c=require("./getTimezoneAdjustedServiceInterval.js");require("../date/getTimezoneUtcOffsetDifference.js");require("../date/convertToSpecificTimezone.js");require("./getServiceIntervalTimeSpanMoment.js");function p(u){let e=null;const{intervals:t,exception:n}=u;if(n){const{state:s}=n;s||(e=n)}else{const s=t.sort((o,i)=>d(o.from).hours-d(i.from).hours),[r]=s;return r}return e}function g(u,e,t){var s,r;const n=[];if(e.exception){if(e.exception.state===O.IntervalState.Opened){const i=c(u,e.exception,t.utcOffset()).openingTime;t.isBefore(i)&&n.push({interval:e.exception,moment:i})}}else for(let o=0;o<e.intervals.length;o+=1){const i=e.intervals[o],l=c(u,i,t.utcOffset()).openingTime;t.isBefore(l)&&n.push({interval:i,moment:l})}return n.length<2?((s=n[0])==null?void 0:s.interval)??null:((r=n.sort((o,i)=>o.moment-t-(i.moment-t))[0])==null?void 0:r.interval)??null}function v(u,e){let t=null;const n=m(e).format(f.OutletMapKeyFormatter),s=g(n,u[n],e);if(s&&(t=c(n,s,e.utcOffset()).openingTime),!t)for(let r=1;r<f.OutletTimelineDayCount;r+=1){const o=m(e).add(r,"d"),i=o.format(f.OutletMapKeyFormatter),a=u[i],l=p(a);if(l){t=c(i,l,o.utcOffset()).openingTime;break}}return t}module.exports=v;
|
|
@@ -1,83 +1,79 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { IntervalState as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function g(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const { intervals: r, exception: t } = o;
|
|
16
|
-
if (t) {
|
|
17
|
-
const { state: i } = t;
|
|
18
|
-
i || (e = t);
|
|
1
|
+
import c from "moment";
|
|
2
|
+
import { IntervalState as p } from "@ancon/wildcat-types";
|
|
3
|
+
import a from "../time/getTimeSpanParts.mjs";
|
|
4
|
+
import { OutletMapKeyFormatter as d, OutletTimelineDayCount as O } from "./constants.mjs";
|
|
5
|
+
import f from "./getTimezoneAdjustedServiceInterval.mjs";
|
|
6
|
+
import "../date/getTimezoneUtcOffsetDifference.mjs";
|
|
7
|
+
import "../date/convertToSpecificTimezone.mjs";
|
|
8
|
+
import "./getServiceIntervalTimeSpanMoment.mjs";
|
|
9
|
+
function g(l) {
|
|
10
|
+
let t = null;
|
|
11
|
+
const { intervals: e, exception: n } = l;
|
|
12
|
+
if (n) {
|
|
13
|
+
const { state: r } = n;
|
|
14
|
+
r || (t = n);
|
|
19
15
|
} else {
|
|
20
|
-
const
|
|
21
|
-
(
|
|
22
|
-
), [
|
|
23
|
-
return
|
|
16
|
+
const r = e.sort(
|
|
17
|
+
(i, o) => a(i.from).hours - a(o.from).hours
|
|
18
|
+
), [s] = r;
|
|
19
|
+
return s;
|
|
24
20
|
}
|
|
25
|
-
return
|
|
21
|
+
return t;
|
|
26
22
|
}
|
|
27
|
-
function
|
|
28
|
-
var
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
if (
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
function v(l, t, e) {
|
|
24
|
+
var r, s;
|
|
25
|
+
const n = [];
|
|
26
|
+
if (t.exception) {
|
|
27
|
+
if (t.exception.state === p.Opened) {
|
|
28
|
+
const o = f(
|
|
29
|
+
l,
|
|
30
|
+
t.exception,
|
|
31
|
+
e.utcOffset()
|
|
32
|
+
).openingTime;
|
|
33
|
+
e.isBefore(o) && n.push({
|
|
34
|
+
interval: t.exception,
|
|
35
|
+
moment: o
|
|
39
36
|
});
|
|
40
37
|
}
|
|
41
38
|
} else
|
|
42
|
-
for (let
|
|
43
|
-
const
|
|
39
|
+
for (let i = 0; i < t.intervals.length; i += 1) {
|
|
40
|
+
const o = t.intervals[i], u = f(
|
|
41
|
+
l,
|
|
44
42
|
o,
|
|
45
|
-
|
|
46
|
-
);
|
|
47
|
-
|
|
43
|
+
e.utcOffset()
|
|
44
|
+
).openingTime;
|
|
45
|
+
e.isBefore(u) && n.push({ interval: o, moment: u });
|
|
48
46
|
}
|
|
49
|
-
return
|
|
47
|
+
return n.length < 2 ? ((r = n[0]) == null ? void 0 : r.interval) ?? null : ((s = n.sort(
|
|
50
48
|
// @ts-ignore TODO
|
|
51
|
-
(
|
|
52
|
-
)[0]) == null ? void 0 :
|
|
49
|
+
(i, o) => i.moment - e - (o.moment - e)
|
|
50
|
+
)[0]) == null ? void 0 : s.interval) ?? null;
|
|
53
51
|
}
|
|
54
|
-
function
|
|
55
|
-
let
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
52
|
+
function K(l, t) {
|
|
53
|
+
let e = null;
|
|
54
|
+
const n = c(t).format(d), r = v(
|
|
55
|
+
n,
|
|
56
|
+
l[n],
|
|
57
|
+
t
|
|
60
58
|
);
|
|
61
|
-
if (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
r
|
|
75
|
-
);
|
|
59
|
+
if (r && (e = f(
|
|
60
|
+
n,
|
|
61
|
+
r,
|
|
62
|
+
t.utcOffset()
|
|
63
|
+
).openingTime), !e)
|
|
64
|
+
for (let s = 1; s < O; s += 1) {
|
|
65
|
+
const i = c(t).add(s, "d"), o = i.format(d), m = l[o], u = g(m);
|
|
66
|
+
if (u) {
|
|
67
|
+
e = f(
|
|
68
|
+
o,
|
|
69
|
+
u,
|
|
70
|
+
i.utcOffset()
|
|
71
|
+
).openingTime;
|
|
76
72
|
break;
|
|
77
73
|
}
|
|
78
74
|
}
|
|
79
|
-
return
|
|
75
|
+
return e;
|
|
80
76
|
}
|
|
81
77
|
export {
|
|
82
|
-
|
|
78
|
+
K as default
|
|
83
79
|
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ServiceDateTime } from '@ancon/wildcat-types';
|
|
1
|
+
import { IntervalState, IntervalType, ServiceDateTime } from '@ancon/wildcat-types';
|
|
2
2
|
export declare type OutletDetailsOpeningHour = {
|
|
3
|
-
type:
|
|
4
|
-
state:
|
|
3
|
+
type: IntervalType.Normal;
|
|
4
|
+
state: IntervalState.Opened;
|
|
5
5
|
orderFormat: 8;
|
|
6
6
|
dayOfWeek: 8;
|
|
7
|
-
unformattedPeriodFrom: '1900-01-01T00:00:00Z';
|
|
8
7
|
periodFrom: '1900-01-01T00:00:00';
|
|
9
|
-
unformattedPeriodTo: '2200-01-01T00:00:00Z';
|
|
10
8
|
periodTo: '2200-01-01T00:00:00';
|
|
11
9
|
from: '23:00:00';
|
|
12
10
|
duration: '06:00:00';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const Q=require("../toString-9eae9442.js"),o=require("../_getTag-b8923c48.js"),f=require("../isArray-640f9811.js"),T=require("../identity-1bae7cf8.js"),X=require("../_baseSlice-e1b41ceb.js");function Z(e,n){for(var r=-1,t=e==null?0:e.length;++r<t&&n(e[r],r,e)!==!1;);return e}var V=function(){try{var e=o.getNative(Object,"defineProperty");return e({},"",{}),e}catch{}}();const v=V;function M(e,n,r){n=="__proto__"&&v?v(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}var z=Object.prototype,k=z.hasOwnProperty;function N(e,n,r){var t=e[n];(!(k.call(e,n)&&o.eq(t,r))||r===void 0&&!(n in e))&&M(e,n,r)}function d(e,n,r,t){var a=!r;r||(r={});for(var c=-1,u=n.length;++c<u;){var s=n[c],l=t?t(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),a?M(r,s,l):N(r,s,l)}return r}function ee(e,n){return e&&d(n,o.keys(n),e)}function ne(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var re=Object.prototype,te=re.hasOwnProperty;function oe(e){if(!o.isObject(e))return ne(e);var n=o.isPrototype(e),r=[];for(var t in e)t=="constructor"&&(n||!te.call(e,t))||r.push(t);return r}function O(e){return o.isArrayLike(e)?o.arrayLikeKeys(e,!0):oe(e)}function ae(e,n){return e&&d(n,O(n),e)}var B=typeof exports=="object"&&exports&&!exports.nodeType&&exports,w=B&&typeof module=="object"&&module&&!module.nodeType&&module,ie=w&&w.exports===B,P=ie?f.root.Buffer:void 0,F=P?P.allocUnsafe:void 0;function ce(e,n){if(n)return e.slice();var r=e.length,t=F?F(r):new e.constructor(r);return e.copy(t),t}function ue(e,n){var r=-1,t=e.length;for(n||(n=Array(t));++r<t;)n[r]=e[r];return n}function se(e,n){return d(e,o.getSymbols(e),n)}var fe=o.overArg(Object.getPrototypeOf,Object);const A=fe;var le=Object.getOwnPropertySymbols,ge=le?function(e){for(var n=[];e;)o.arrayPush(n,o.getSymbols(e)),e=A(e);return n}:o.stubArray;const D=ge;function be(e,n){return d(e,D(e),n)}function G(e){return o.baseGetAllKeys(e,O,D)}var ye=Object.prototype,Te=ye.hasOwnProperty;function de(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Te.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function h(e){var n=new e.constructor(e.byteLength);return new o.Uint8Array(n).set(new o.Uint8Array(e)),n}function pe(e,n){var r=n?h(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var ve=/\w*$/;function Oe(e){var n=new e.constructor(e.source,ve.exec(e));return n.lastIndex=e.lastIndex,n}var C=f.Symbol?f.Symbol.prototype:void 0,L=C?C.valueOf:void 0;function Ae(e){return L?Object(L.call(e)):{}}function he(e,n){var r=n?h(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Se="[object Boolean]",je="[object Date]",$e="[object Map]",me="[object Number]",we="[object RegExp]",Pe="[object Set]",Fe="[object String]",Ce="[object Symbol]",Le="[object ArrayBuffer]",Ie="[object DataView]",Ue="[object Float32Array]",_e="[object Float64Array]",xe="[object Int8Array]",Ee="[object Int16Array]",Me="[object Int32Array]",Ne="[object Uint8Array]",Be="[object Uint8ClampedArray]",De="[object Uint16Array]",Ge="[object Uint32Array]";function Ke(e,n,r){var t=e.constructor;switch(n){case Le:return h(e);case Se:case je:return new t(+e);case Ie:return pe(e,r);case Ue:case _e:case xe:case Ee:case Me:case Ne:case Be:case De:case Ge:return he(e,r);case $e:return new t;case me:case Fe:return new t(e);case we:return Oe(e);case Pe:return new t;case Ce:return Ae(e)}}var I=Object.create,qe=function(){function e(){}return function(n){if(!o.isObject(n))return{};if(I)return I(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}}();const Re=qe;function He(e){return typeof e.constructor=="function"&&!o.isPrototype(e)?Re(A(e)):{}}var Ye="[object Map]";function We(e){return f.isObjectLike(e)&&o.getTag(e)==Ye}var U=o.nodeUtil&&o.nodeUtil.isMap,Je=U?o.baseUnary(U):We;const Qe=Je;var Xe="[object Set]";function Ze(e){return f.isObjectLike(e)&&o.getTag(e)==Xe}var _=o.nodeUtil&&o.nodeUtil.isSet,Ve=_?o.baseUnary(_):Ze;const ze=Ve;var ke=1,en=2,nn=4,K="[object Arguments]",rn="[object Array]",tn="[object Boolean]",on="[object Date]",an="[object Error]",q="[object Function]",cn="[object GeneratorFunction]",un="[object Map]",sn="[object Number]",R="[object Object]",fn="[object RegExp]",ln="[object Set]",gn="[object String]",bn="[object Symbol]",yn="[object WeakMap]",Tn="[object ArrayBuffer]",dn="[object DataView]",pn="[object Float32Array]",vn="[object Float64Array]",On="[object Int8Array]",An="[object Int16Array]",hn="[object Int32Array]",Sn="[object Uint8Array]",jn="[object Uint8ClampedArray]",$n="[object Uint16Array]",mn="[object Uint32Array]",i={};i[K]=i[rn]=i[Tn]=i[dn]=i[tn]=i[on]=i[pn]=i[vn]=i[On]=i[An]=i[hn]=i[un]=i[sn]=i[R]=i[fn]=i[ln]=i[gn]=i[bn]=i[Sn]=i[jn]=i[$n]=i[mn]=!0;i[an]=i[q]=i[yn]=!1;function p(e,n,r,t,a,c){var u,s=n&ke,l=n&en,W=n&nn;if(r&&(u=a?r(e,t,a,c):r(e)),u!==void 0)return u;if(!o.isObject(e))return e;var S=f.isArray(e);if(S){if(u=de(e),!s)return ue(e,u)}else{var y=o.getTag(e),j=y==q||y==cn;if(o.isBuffer(e))return ce(e,s);if(y==R||y==K||j&&!a){if(u=l||j?{}:He(e),!s)return l?be(e,ae(u,e)):se(e,ee(u,e))}else{if(!i[y])return a?e:{};u=Ke(e,y,s)}}c||(c=new o.Stack);var $=c.get(e);if($)return $;c.set(e,u),ze(e)?e.forEach(function(g){u.add(p(g,n,r,g,e,c))}):Qe(e)&&e.forEach(function(g,b){u.set(b,p(g,n,r,b,e,c))});var J=W?l?G:o.getAllKeys:l?O:o.keys,m=S?void 0:J(e);return Z(m||e,function(g,b){m&&(b=g,g=e[b]),N(u,b,p(g,n,r,b,e,c))}),u}function wn(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}function Pn(e,n){return n.length<2?e:T.baseGet(e,X.baseSlice(n,0,-1))}function Fn(e,n){return n=T.castPath(n,e),e=Pn(e,n),e==null||delete e[T.toKey(wn(n))]}var Cn="[object Object]",Ln=Function.prototype,In=Object.prototype,H=Ln.toString,Un=In.hasOwnProperty,_n=H.call(Object);function xn(e){if(!f.isObjectLike(e)||f.baseGetTag(e)!=Cn)return!1;var n=A(e);if(n===null)return!0;var r=Un.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&H.call(r)==_n}function En(e){return xn(e)?void 0:e}var x=f.Symbol?f.Symbol.isConcatSpreadable:void 0;function Mn(e){return f.isArray(e)||o.isArguments(e)||!!(x&&e&&e[x])}function Y(e,n,r,t,a){var c=-1,u=e.length;for(r||(r=Mn),a||(a=[]);++c<u;){var s=e[c];n>0&&r(s)?n>1?Y(s,n-1,r,t,a):o.arrayPush(a,s):t||(a[a.length]=s)}return a}function Nn(e){var n=e==null?0:e.length;return n?Y(e,1):[]}function Bn(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}var E=Math.max;function Dn(e,n,r){return n=E(n===void 0?e.length-1:n,0),function(){for(var t=arguments,a=-1,c=E(t.length-n,0),u=Array(c);++a<c;)u[a]=t[n+a];a=-1;for(var s=Array(n+1);++a<n;)s[a]=t[a];return s[n]=r(u),Bn(e,this,s)}}function Gn(e){return function(){return e}}var Kn=v?function(e,n){return v(e,"toString",{configurable:!0,enumerable:!1,value:Gn(n),writable:!0})}:T.identity;const qn=Kn;var Rn=800,Hn=16,Yn=Date.now;function Wn(e){var n=0,r=0;return function(){var t=Yn(),a=Hn-(t-r);if(r=t,a>0){if(++n>=Rn)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}var Jn=Wn(qn);const Qn=Jn;function Xn(e){return Qn(Dn(e,void 0,Nn),e+"")}var Zn=1,Vn=2,zn=4,kn=Xn(function(e,n){var r={};if(e==null)return r;var t=!1;n=Q.arrayMap(n,function(c){return c=T.castPath(c,e),t||(t=c.length>1),c}),d(e,G(e),r),t&&(r=p(r,Zn|Vn|zn,En));for(var a=n.length;a--;)Fn(r,n[a]);return r});const er=kn;function nr({openingHours:e}){const n=e.reduce((r,t)=>(r[t.orderFormat]||(r[t.orderFormat]={orderFormats:t.orderFormat,intervals:[],isDefault:t.isDefault}),r[t.orderFormat].intervals.push(er(t,"orderFormat")),r),{});return Object.values(n)}module.exports=nr;
|