@pisell/private-materials 6.12.405 → 6.12.406
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +13 -6
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.less +6 -0
- package/es/components/appointmentBooking/components/Date/index.js +103 -35
- package/es/components/appointmentBooking/components/Services/index.js +123 -58
- package/es/components/appointmentBooking/context.js +72 -10
- package/es/components/appointmentBooking/hooks.js +227 -172
- package/es/components/appointmentBooking/index.js +3 -2
- package/es/components/appointmentBooking/locales.js +10 -0
- package/es/components/bigSale/components/BookingFloatingPanel/useBookingPanelController.js +0 -1
- package/es/components/bigSale/components/ProductList/index.js +0 -1
- package/es/components/bigSale/components/TimeBar/index.js +0 -1
- package/es/components/bigSale/dialog.js +0 -1
- package/es/components/bigSale/hooks/useBigSaleContext.js +0 -1
- package/es/components/bigSale/hooks/useBigSaleProductListConfig.js +1 -0
- package/es/components/bigSale/hooks/useSelectFloorMapResourceForBigSale.js +0 -1
- package/es/components/bigSale/index.js +0 -1
- package/es/components/bigSale/templates/Kiosk/index.js +0 -1
- package/es/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.js +0 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +3 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -0
- package/es/components/venueBookingSales/catalogPresentation.js +1 -0
- package/es/components/venueBookingSales/checkout/useVenueBookingCheckout.js +0 -1
- package/es/index.js +0 -2
- package/es/plus/multiCurrencySettlement/index.js +1 -1
- package/es/plus/pisellReservation/data/bookingToReservationTables.js +1 -1
- package/es/plus/pisellReservation/floorMap/floorPlanApi.js +1 -1
- package/es/plus/pisellReservation/floorMap/reservationMock.js +1 -1
- package/es/plus/saleDetail/Base.js +0 -1
- package/es/plus/saleDetail/components/Client/hooks/useClientSelectorProps.js +0 -1
- package/es/plus/saleDetail/components/DetailActions/PrintAction.js +0 -1
- package/es/plus/saleDetail/components/DetailActions/index.js +0 -1
- package/es/plus/saleDetail/components/SummaryFinancialSections/index.js +0 -1
- package/es/plus/saleDetail/index.js +0 -1
- package/es/plus/saleDetail/tmpl/B/components/Dish/index.js +0 -1
- package/es/plus/saleDetail/tmpl/B/index.js +0 -1
- package/es/plus/salesSdk/utils/addProductWithFlowDebounced.js +1 -1
- package/es/plus/salesSdk/utils/bookingDate.js +1 -1
- package/es/plus/salesSdk/utils/enrichCartLineHolderDisplay.js +1 -1
- package/es/private-materials/lowcode/authmodal/meta.d.ts +1 -0
- package/es/pro/Login2.0/AuthModal.d.ts +1 -1
- package/es/pro/Login2.0/index.d.ts +2 -2
- package/es/pro/Login2.0/shared/types.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +13 -6
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.less +6 -0
- package/lib/components/appointmentBooking/components/Date/index.js +102 -34
- package/lib/components/appointmentBooking/components/Services/index.js +122 -57
- package/lib/components/appointmentBooking/context.js +71 -9
- package/lib/components/appointmentBooking/hooks.js +227 -172
- package/lib/components/appointmentBooking/index.js +2 -1
- package/lib/components/appointmentBooking/locales.js +10 -0
- package/package.json +4 -4
- package/es/plus/pisellReservation/index.js +0 -17
- package/es/plus/salesSdk/index.js +0 -54
|
@@ -5,7 +5,6 @@ import useInitLocalesOnce from "../../../../hooks/useInitLocalesOnce.js";
|
|
|
5
5
|
import { subscribeBookingDateChange } from "../../../../plus/salesSdk/utils/bookingDate.js";
|
|
6
6
|
import { setBookingTimeSelectionIntent } from "../../../../plus/salesSdk/utils/bookingTimeSelection.js";
|
|
7
7
|
import { useSalesSdkBookingContext } from "../../../../plus/salesSdk/context/SalesSdkBookingContext.js";
|
|
8
|
-
import "../../../../plus/salesSdk/index.js";
|
|
9
8
|
import locales_default from "../../locales/index.js";
|
|
10
9
|
import { getPosWeekStartsOn, resolvePosCountryCode } from "../../../../utils/posDateLocale.js";
|
|
11
10
|
import dayjs from "dayjs";
|
|
@@ -6,7 +6,6 @@ import { buildInitBookingContextParams, collectBookingIdsFromTempOrder } from ".
|
|
|
6
6
|
import { useSalesSdk } from "../../plus/salesSdk/hooks/useSalesSdk.js";
|
|
7
7
|
import { useSalesSdkCart } from "../../plus/salesSdk/hooks/useSalesSdkCart.js";
|
|
8
8
|
import { SalesSdkPrepareOrderSwitchContext, SalesSdkRootRefreshContext } from "../../plus/salesSdk/context/SalesSdkProvider.js";
|
|
9
|
-
import "../../plus/salesSdk/index.js";
|
|
10
9
|
import { isPersistedBigSaleOrderId } from "./utils/orderIdentity.js";
|
|
11
10
|
import { seedDineInReservationToCart } from "../../plus/pisellReservation/utils/seedDineInReservationToCart.js";
|
|
12
11
|
import BigSale from "./index.js";
|
|
@@ -4,7 +4,6 @@ import { useSalesSdkCustomer } from "../../../plus/salesSdk/hooks/useSalesSdkCus
|
|
|
4
4
|
import { useSalesSdkBookingContext } from "../../../plus/salesSdk/context/SalesSdkBookingContext.js";
|
|
5
5
|
import { useSalesSdkSummary } from "../../../plus/salesSdk/hooks/useSalesSdkSummary.js";
|
|
6
6
|
import { useSalesSdkProducts } from "../../../plus/salesSdk/hooks/useSalesSdkProducts.js";
|
|
7
|
-
import "../../../plus/salesSdk/index.js";
|
|
8
7
|
import { useMemo } from "react";
|
|
9
8
|
//#region src/components/bigSale/hooks/useBigSaleContext.ts
|
|
10
9
|
/**
|
|
@@ -2,6 +2,7 @@ import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/
|
|
|
2
2
|
import { _objectWithoutProperties } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
|
|
3
3
|
import { generateProductTabs, sortProductsByTabOrder } from "../../ticketBooking/components/ProductDisplayAdapter/utils.js";
|
|
4
4
|
import { ProductDisplayPresets } from "../../ticketBooking/components/ProductDisplayAdapter/types.js";
|
|
5
|
+
import "../../ticketBooking/components/ProductDisplayAdapter/index.js";
|
|
5
6
|
import { mergeBigSaleProductListPreferences } from "../utils/productListPreferences.js";
|
|
6
7
|
import { useMemo, useRef } from "react";
|
|
7
8
|
import isEqual from "lodash/isEqual";
|
|
@@ -3,7 +3,6 @@ import { _asyncToGenerator } from "../../../_virtual/_@oxc-project_runtime@0.122
|
|
|
3
3
|
import { buildInitBookingContextParams, collectBookingIdsFromTempOrder } from "../../../plus/salesSdk/utils/buildDefaultLoadProductsParams.js";
|
|
4
4
|
import { useSalesSdkUIHosts } from "../../../plus/salesSdk/context/SalesSdkUIHostsContext.js";
|
|
5
5
|
import { SalesSdkRootRefreshContext } from "../../../plus/salesSdk/context/SalesSdkProvider.js";
|
|
6
|
-
import "../../../plus/salesSdk/index.js";
|
|
7
6
|
import { isPersistedBigSaleOrderId } from "../utils/orderIdentity.js";
|
|
8
7
|
import { resolveOrderIdForHostActions } from "../../../plus/pisellReservation/components/bookingDetailModal/bookingDetailHostActions.js";
|
|
9
8
|
import { usePicoCodingOpenData } from "../../../plus/pisellReservation/hooks/usePicoCodingOpenData.js";
|
|
@@ -8,7 +8,6 @@ import { useSalesSdk } from "../../plus/salesSdk/hooks/useSalesSdk.js";
|
|
|
8
8
|
import { useSalesSdkCustomer } from "../../plus/salesSdk/hooks/useSalesSdkCustomer.js";
|
|
9
9
|
import { SalesSdkProvider } from "../../plus/salesSdk/context/SalesSdkProvider.js";
|
|
10
10
|
import { SalesSdkBookingContextProvider } from "../../plus/salesSdk/context/SalesSdkBookingContext.js";
|
|
11
|
-
import "../../plus/salesSdk/index.js";
|
|
12
11
|
import { resolveKioskPlatformSource, resolveKioskPresentation } from "../kioskSale/resolveKioskPresentation.js";
|
|
13
12
|
import { resolveCustomerDetailAppearance } from "../../pro/skuDetailModal/customerDetailPolicy.js";
|
|
14
13
|
import { ResponsiveBigSaleBase } from "./Base.js";
|
|
@@ -13,7 +13,6 @@ import { useSalesSdkBusinessAvailability } from "../../../../plus/salesSdk/conte
|
|
|
13
13
|
import { collectUnassignedHolderLines } from "../../../../plus/salesSdk/utils/holderSubmitValidation.js";
|
|
14
14
|
import { isFulfillmentTimingBooking } from "../../../../plus/salesSdk/utils/fulfillmentTimingBooking.js";
|
|
15
15
|
import { useSalesSdkGlobalScanActivity } from "../../../../plus/salesSdk/context/SalesSdkGlobalScanActivityContext.js";
|
|
16
|
-
import "../../../../plus/salesSdk/index.js";
|
|
17
16
|
import { usePickSaleDetailContext } from "../../hooks/usePickSaleDetailContext.js";
|
|
18
17
|
import { resolveBigSaleAutoProductListPreferences } from "../../utils/productListPreferences.js";
|
|
19
18
|
import { resolveBigSaleProductDisplayConfig } from "../../hooks/useBigSaleProductListConfig.js";
|
|
@@ -2,7 +2,6 @@ import useEngineContext from "../../hooks/useEngineContext.js";
|
|
|
2
2
|
import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
|
|
3
3
|
import { useSalesSdk } from "../../plus/salesSdk/hooks/useSalesSdk.js";
|
|
4
4
|
import { TEMP_ORDER_SYNC_REQUEST_MESSAGE_TYPE, getTempOrderSyncPayload, shouldApplySharedTempOrderPayload } from "../../plus/salesSdk/tempOrderSync.js";
|
|
5
|
-
import "../../plus/salesSdk/index.js";
|
|
6
5
|
import { useEffect, useRef, useState } from "react";
|
|
7
6
|
//#region src/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.tsx
|
|
8
7
|
function createRequestId() {
|
|
@@ -19,6 +19,7 @@ import { useProducts } from "../../hooks/pisellos/useProducts.js";
|
|
|
19
19
|
import { useService } from "../../../booking/info/service/serviceManager/index.js";
|
|
20
20
|
import ProductDisplayAdapter_default from "../ProductDisplayAdapter/ProductDisplayAdapter.js";
|
|
21
21
|
import { resolveProductDisplayConfig } from "../ProductDisplayAdapter/types.js";
|
|
22
|
+
import "../ProductDisplayAdapter/index.js";
|
|
22
23
|
import notAvailable_default from "../notAvailable/index.js";
|
|
23
24
|
import MultiDayTimeSelectModal from "./MultiDayTimeSelectModal.js";
|
|
24
25
|
import dayjs from "dayjs";
|
|
@@ -3,6 +3,7 @@ import index from "../../plus/productSelect/components/pisellPriceText/index.js"
|
|
|
3
3
|
import { resolveProductPricePresentation } from "../../plus/productSelect/pricing/pricePresentation.js";
|
|
4
4
|
import SettlementPriceList from "../../plus/multiCurrencySettlement/SettlementPriceList.js";
|
|
5
5
|
import { ProductDisplayPresets } from "../ticketBooking/components/ProductDisplayAdapter/types.js";
|
|
6
|
+
import "../ticketBooking/components/ProductDisplayAdapter/index.js";
|
|
6
7
|
import { DEFAULT_BIG_SALE_PRODUCT_LIST_PREFERENCES } from "../bigSale/utils/productListPreferences.js";
|
|
7
8
|
import { translate } from "../../plus/venueBookingDesign/i18n.js";
|
|
8
9
|
import { ProductCard as ProductCard$1 } from "../../plus/venueBookingDesign/shared/ProductCard.js";
|
|
@@ -7,7 +7,6 @@ import { useSalesSdkHostBridges } from "../../../plus/salesSdk/context/SalesSdkH
|
|
|
7
7
|
import { isVirtualSettlementTempOrder } from "../../../plus/multiCurrencySettlement/index.js";
|
|
8
8
|
import { freePayApi } from "../../Sales/Checkout/serve.js";
|
|
9
9
|
import { useSalesSdkBusinessAvailability } from "../../../plus/salesSdk/context/SalesSdkBusinessAvailabilityContext.js";
|
|
10
|
-
import "../../../plus/salesSdk/index.js";
|
|
11
10
|
import { isSalesOrderSubmitSuccess } from "../../../plus/saleDetail/components/DetailActions/utils.js";
|
|
12
11
|
import { isH5ZeroAmountValue, resolveKioskSubmittedPayableAmount, toFiniteKioskAmount } from "../../bigSale/templates/Kiosk/zeroAmountCheckout.js";
|
|
13
12
|
import { resolveKioskDeferredSubmission } from "../../bigSale/templates/Kiosk/deferredCheckout.js";
|
package/es/index.js
CHANGED
|
@@ -90,7 +90,6 @@ import { useSalesSdkProducts } from "./plus/salesSdk/hooks/useSalesSdkProducts.j
|
|
|
90
90
|
import SalesSdkDemo from "./plus/salesSdk/demo/index.js";
|
|
91
91
|
import { useSalesSdkDish } from "./plus/salesSdk/hooks/useSalesSdkDish.js";
|
|
92
92
|
import { useSyncOsModule } from "./plus/salesSdk/hooks/useSyncOsModule.js";
|
|
93
|
-
import "./plus/salesSdk/index.js";
|
|
94
93
|
import BigSaleRightActionPanel from "./components/BigSaleRightActionPanel/index.js";
|
|
95
94
|
import ResponsiveWrapper from "./components/list/ResponsiveWrapper.js";
|
|
96
95
|
import { resolveBigSaleSelectionFlowConfig } from "./components/bigSale/selectionFlowConfig.js";
|
|
@@ -154,7 +153,6 @@ import PisellVenueControlPage from "./plus/pisellReservation/PisellVenueControlP
|
|
|
154
153
|
import PisellVenueWallPage from "./plus/pisellReservation/PisellVenueWallPage.js";
|
|
155
154
|
import PisellReservationTablePage from "./plus/pisellReservation/PisellReservationTablePage.js";
|
|
156
155
|
import SelectFloorMapResourceDialog from "./plus/pisellReservation/components/SelectFloorMapResourceDialog.js";
|
|
157
|
-
import "./plus/pisellReservation/index.js";
|
|
158
156
|
import { PisellTopology, PisellTopologyCore } from "./plus/pisellTopology/PisellTopology.js";
|
|
159
157
|
import cupProject_default from "./components/ecocup/cupProject/index.js";
|
|
160
158
|
import CupList from "./components/ecocup/cupList/index.js";
|
|
@@ -280,4 +280,4 @@ function attachSelectedSettlement(item, selectedSettlement) {
|
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
282
|
//#endregion
|
|
283
|
-
export { attachSelectedSettlement, buildSettlementPriceRows, createVirtualOnlySkuDisplayProduct,
|
|
283
|
+
export { attachSelectedSettlement, buildSettlementPriceRows, createVirtualOnlySkuDisplayProduct, formatSettlementAmount, formatSettlementSelectionTotal, formatTempOrderSettlementAmount, getSettlementKey, getSettlementOptions, hasSettlementOptions, hasSufficientVirtualCurrencyBalance, isVirtualOnlySettlementProduct, isVirtualSettlementTempOrder, resolveConfiguredUnavailableReason, resolveLegalSettlementAddOnUnitPrice, resolveSettlementOptionEntries, resolveVirtualSettlementErrorMessage, showVirtualSettlementErrorToast };
|
|
@@ -259,4 +259,4 @@ function bookingListToReservationTableRows(bookings) {
|
|
|
259
259
|
return rows;
|
|
260
260
|
}
|
|
261
261
|
//#endregion
|
|
262
|
-
export { applyHostResourceShellToBaseRow, bookingListToReservationTableRows, customerBrief, extractResourceRecordIds, filterBookingsByResourceIds,
|
|
262
|
+
export { applyHostResourceShellToBaseRow, bookingListToReservationTableRows, customerBrief, extractResourceRecordIds, filterBookingsByResourceIds, hostBookingUiPatchFromRecord, mergeBookingsForResourceRecord };
|
|
@@ -78,4 +78,4 @@ function toastFloorPlanLoadError(err) {
|
|
|
78
78
|
PisellToast({ content: err instanceof Error ? err.message : String(err) });
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
|
-
export { PISELL_RESERVATION_FLOOR_PLAN_CODE,
|
|
81
|
+
export { PISELL_RESERVATION_FLOOR_PLAN_CODE, ensureShopFloorPlanByCode, saveViewConfigToShopFloorPlan, shopLayoutToSceneElements$1 as shopLayoutToSceneElements, toastFloorPlanLoadError, toastFloorPlanSaveError, unsubscribeShopFloorPlanCodeQuery };
|
|
@@ -927,4 +927,4 @@ function getReservationDataSourceFormColumns() {
|
|
|
927
927
|
];
|
|
928
928
|
}
|
|
929
929
|
//#endregion
|
|
930
|
-
export { RESERVATION_BOUND_ROUND_TABLE_ELEMENT_KIND, RESERVATION_BOUND_TABLE_ELEMENT_KIND, applyReservationFloorMapLiveLabels,
|
|
930
|
+
export { RESERVATION_BOUND_ROUND_TABLE_ELEMENT_KIND, RESERVATION_BOUND_TABLE_ELEMENT_KIND, applyReservationFloorMapLiveLabels, defaultReservationTableRows, getDefaultReservationFloorMapConfig, getReservationDataSourceFormColumns, getReservationFloorMapShellConfig, mergeFloorMapElementKindCategoriesWithDefaults, mergeFloorMapElementKindsWithDefaults };
|
|
@@ -13,7 +13,6 @@ import { useSalesSdkCustomer } from "../salesSdk/hooks/useSalesSdkCustomer.js";
|
|
|
13
13
|
import locales_default from "./locales.js";
|
|
14
14
|
import { useSalesSdkBookingContext } from "../salesSdk/context/SalesSdkBookingContext.js";
|
|
15
15
|
import { useSalesSdkSummary } from "../salesSdk/hooks/useSalesSdkSummary.js";
|
|
16
|
-
import "../salesSdk/index.js";
|
|
17
16
|
import locales_default$1 from "./components/LineItem/locales.js";
|
|
18
17
|
import { SaleOrderActionBoundary } from "./actions/index.js";
|
|
19
18
|
import { SaleDetailTemplateRenderer } from "./tmpl/index.js";
|
|
@@ -2,7 +2,6 @@ import useEngineContext from "../../../../../hooks/useEngineContext.js";
|
|
|
2
2
|
import { _objectSpread2 } from "../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
3
3
|
import { resolveContactsInfo } from "../utils.js";
|
|
4
4
|
import { useSalesSdkBookingContext } from "../../../../salesSdk/context/SalesSdkBookingContext.js";
|
|
5
|
-
import "../../../../salesSdk/index.js";
|
|
6
5
|
import { useMemo } from "react";
|
|
7
6
|
import { useMemoizedFn } from "ahooks";
|
|
8
7
|
//#region src/plus/saleDetail/components/Client/hooks/useClientSelectorProps.ts
|
|
@@ -4,7 +4,6 @@ import { _asyncToGenerator } from "../../../../_virtual/_@oxc-project_runtime@0.
|
|
|
4
4
|
import { _objectWithoutProperties } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
|
|
5
5
|
import useLogger from "../../../../hooks/useLogger.js";
|
|
6
6
|
import { useSalesSdk } from "../../../salesSdk/hooks/useSalesSdk.js";
|
|
7
|
-
import "../../../salesSdk/index.js";
|
|
8
7
|
import { invokeLocalReceiptPrint, resolveLocalReceiptPrintModule, resolveSaleDetailOrderIdFromSales } from "./utils.js";
|
|
9
8
|
import { getRemotePrintActions, getWristbandList } from "../../serve.js";
|
|
10
9
|
import { EBizPrintType } from "./types.js";
|
|
@@ -10,7 +10,6 @@ import { useSalesSdk } from "../../../salesSdk/hooks/useSalesSdk.js";
|
|
|
10
10
|
import { useSalesSdkCart } from "../../../salesSdk/hooks/useSalesSdkCart.js";
|
|
11
11
|
import { useSalesSdkGlobalScanActivity } from "../../../salesSdk/context/SalesSdkGlobalScanActivityContext.js";
|
|
12
12
|
import { useSalesSdkSummary } from "../../../salesSdk/hooks/useSalesSdkSummary.js";
|
|
13
|
-
import "../../../salesSdk/index.js";
|
|
14
13
|
import { resolveSaleDetailTempOrder } from "../../utils.js";
|
|
15
14
|
import { getNumericAmount, getSalesHostModule, resolveSaleDetailOrderIdFromSales, resolveSaleDetailOrderIdFromSalesResult, shouldCloseDialogAfterCheckout, updateLocalOrder } from "./utils.js";
|
|
16
15
|
import { deriveSaleOrderSubmitState } from "../../actions/state.js";
|
|
@@ -5,7 +5,6 @@ import { isAppliedPaymentRecord } from "../../../salesSdk/utils/paymentStatus.js
|
|
|
5
5
|
import { useSalesSdk } from "../../../salesSdk/hooks/useSalesSdk.js";
|
|
6
6
|
import { useSalesSdkCart } from "../../../salesSdk/hooks/useSalesSdkCart.js";
|
|
7
7
|
import { useSalesSdkSummary } from "../../../salesSdk/hooks/useSalesSdkSummary.js";
|
|
8
|
-
import "../../../salesSdk/index.js";
|
|
9
8
|
import { resolveSaleDetailTempOrder } from "../../utils.js";
|
|
10
9
|
import React, { memo, useMemo } from "react";
|
|
11
10
|
import { formatAmount, locales } from "@pisell/utils";
|
|
@@ -5,7 +5,6 @@ import { useSalesSdk } from "../salesSdk/hooks/useSalesSdk.js";
|
|
|
5
5
|
import { SalesSdkProvider } from "../salesSdk/context/SalesSdkProvider.js";
|
|
6
6
|
import { SalesSdkDishProvider } from "../salesSdk/context/SalesSdkDishContext.js";
|
|
7
7
|
import { SalesSdkBookingContextProvider } from "../salesSdk/context/SalesSdkBookingContext.js";
|
|
8
|
-
import "../salesSdk/index.js";
|
|
9
8
|
import Base_default from "./Base.js";
|
|
10
9
|
import { resolveSaleDetailOsProps } from "./osProps.js";
|
|
11
10
|
import React, { forwardRef, useImperativeHandle } from "react";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import useStableInstanceId from "../../../../../../hooks/useStableInstanceId.js";
|
|
2
2
|
import { useSalesSdkDish } from "../../../../../salesSdk/hooks/useSalesSdkDish.js";
|
|
3
3
|
import { useCurrentSalesSdkDish } from "../../../../../salesSdk/hooks/useCurrentSalesSdkDish.js";
|
|
4
|
-
import "../../../../../salesSdk/index.js";
|
|
5
4
|
import { SaleDetailStatusOverview } from "../shared/StatusOverview.js";
|
|
6
5
|
import { DishGroupView } from "./DishGroupView.js";
|
|
7
6
|
import dayjs from "dayjs";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import useEngineContext from "../../../../hooks/useEngineContext.js";
|
|
2
2
|
import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
3
3
|
import { useCurrentSalesSdkDish } from "../../../salesSdk/hooks/useCurrentSalesSdkDish.js";
|
|
4
|
-
import "../../../salesSdk/index.js";
|
|
5
4
|
import { getInternalNotesByScheduleEvent } from "../../serve.js";
|
|
6
5
|
import { TEMPLATE_B_PAY_ACTIONS, TEMPLATE_B_SUMMARY_ACTIONS } from "../../components/DetailActions/configs/index.js";
|
|
7
6
|
import { DetailActions } from "../../components/DetailActions/index.js";
|
|
@@ -31,4 +31,4 @@ function subscribeBookingDateChange(bookingTicket, callback) {
|
|
|
31
31
|
return typeof off === "function" ? off : () => {};
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
export {
|
|
34
|
+
export { formatBookingDateTime, subscribeBookingDateChange };
|
|
@@ -102,4 +102,4 @@ function buildHolderListRequestKey(params) {
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
//#endregion
|
|
105
|
-
export { buildHolderListRequestKey, buildHolderListRequestParams, enrichCartBookingHolderDisplay, enrichCartProductHolderDisplay,
|
|
105
|
+
export { buildHolderListRequestKey, buildHolderListRequestParams, enrichCartBookingHolderDisplay, enrichCartProductHolderDisplay, resolveHolderDisplayConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthMethodType,
|
|
1
|
+
import { AuthMethodType, VerificationMethod } from "./shared/types.js";
|
|
2
2
|
import { Login2, Login2Config, Login2Events, Login2Props } from "./Login2.js";
|
|
3
3
|
import { Register2, Register2Config, Register2Events, Register2Props } from "./Register2.js";
|
|
4
|
-
import { AuthModal } from "./AuthModal.js";
|
|
4
|
+
import { AuthModal, AuthModalProps } from "./AuthModal.js";
|
|
@@ -226,4 +226,4 @@ interface RegisterFormData {
|
|
|
226
226
|
verification_token?: string;
|
|
227
227
|
}
|
|
228
228
|
//#endregion
|
|
229
|
-
export { AuthMethodType, EmailAuthConfig,
|
|
229
|
+
export { AuthMethodType, EmailAuthConfig, LegalTermsConfig, LoginFormData, LoginMethodItem, OAuthConfig, PhoneAuthConfig, RegisterFormData, RegistrationMethodItem, UIConfig, VerificationMethod };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
|
|
2
2
|
const require_useEngineContext = require("../../../../../hooks/useEngineContext.js");
|
|
3
3
|
const require_asyncToGenerator = require("../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js");
|
|
4
|
+
const require_useInitLocalesOnce = require("../../../../../hooks/useInitLocalesOnce.js");
|
|
5
|
+
const require_locales = require("../../../locales.js");
|
|
4
6
|
const require_utils = require("../../../utils.js");
|
|
5
7
|
const require_hooks = require("../../../hooks.js");
|
|
6
8
|
const require_context = require("../../../context.js");
|
|
@@ -12,11 +14,13 @@ let _pisell_materials = require("@pisell/materials");
|
|
|
12
14
|
require("./index.less");
|
|
13
15
|
//#region src/components/appointmentBooking/components/Cart/ContinueButton/index.tsx
|
|
14
16
|
const ContinueButton = ({ onNext }) => {
|
|
15
|
-
var _appointmentBooking$s2, _currentStep$step2;
|
|
16
|
-
const
|
|
17
|
+
var _context$engine, _appointmentBooking$s2, _currentStep$step2;
|
|
18
|
+
const context = require_useEngineContext.default();
|
|
19
|
+
require_useInitLocalesOnce.default(require_locales.default, (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || "en");
|
|
20
|
+
const utils = context.appHelper.utils || {};
|
|
17
21
|
const { isLogin, openLoginModal } = require_hooks.useAppointmentBookingLogin();
|
|
18
22
|
const { accountLists, getHolders, checkAccount } = require_hooks.useAppointmentBookingAccount();
|
|
19
|
-
const { currentStep, carts, appointmentBooking, setCarts, loading, setIsErrorHolder, isLastStep } = require_context.useAppointmentBookingContext();
|
|
23
|
+
const { currentStep, carts, appointmentBooking, setCarts, loading, availabilityError, setIsErrorHolder, isLastStep } = require_context.useAppointmentBookingContext();
|
|
20
24
|
const { isFormSubject, isRetailTemplate } = require_hooks.useAppointmentBookingSetting();
|
|
21
25
|
const lastButtonStatusRef = (0, react.useRef)();
|
|
22
26
|
(0, react.useMemo)(() => {
|
|
@@ -81,13 +85,16 @@ const ContinueButton = ({ onNext }) => {
|
|
|
81
85
|
if (isLastStep) return _pisell_utils.locales.getText("pisell2.event.checkout");
|
|
82
86
|
else return _pisell_utils.locales.getText("pisell2.event.close.continue");
|
|
83
87
|
}, [isLastStep]);
|
|
84
|
-
return /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, /* @__PURE__ */ react.default.createElement(
|
|
85
|
-
|
|
88
|
+
return /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, availabilityError && /* @__PURE__ */ react.default.createElement("div", {
|
|
89
|
+
role: "alert",
|
|
90
|
+
className: "appointment-continue-error"
|
|
91
|
+
}, _pisell_utils.locales.getText("pisell2.appointment.availability.load.failed")), /* @__PURE__ */ react.default.createElement(_pisell_materials.Button, {
|
|
92
|
+
disabled: !(carts === null || carts === void 0 ? void 0 : carts.length) || loading,
|
|
86
93
|
size: "large",
|
|
87
94
|
type: "primary",
|
|
88
95
|
onClick: () => handleContinue(),
|
|
89
96
|
loading
|
|
90
|
-
}, continueText));
|
|
97
|
+
}, availabilityError ? _pisell_utils.locales.getText("pisell2.appointment.retry") : continueText));
|
|
91
98
|
};
|
|
92
99
|
//#endregion
|
|
93
100
|
exports.default = ContinueButton;
|
|
@@ -2,6 +2,8 @@ const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
|
|
|
2
2
|
const require_useEngineContext = require("../../../../hooks/useEngineContext.js");
|
|
3
3
|
const require_objectSpread2 = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
|
|
4
4
|
const require_asyncToGenerator = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js");
|
|
5
|
+
const require_useInitLocalesOnce = require("../../../../hooks/useInitLocalesOnce.js");
|
|
6
|
+
const require_locales = require("../../locales.js");
|
|
5
7
|
const require_utils = require("../../utils.js");
|
|
6
8
|
const require_hooks = require("../../hooks.js");
|
|
7
9
|
const require_context = require("../../context.js");
|
|
@@ -21,9 +23,13 @@ require("./index.less");
|
|
|
21
23
|
//#region src/components/appointmentBooking/components/Date/index.tsx
|
|
22
24
|
dayjs.default.extend(dayjs_plugin_isSameOrBefore.default);
|
|
23
25
|
const Date = (0, react.forwardRef)((props, ref) => {
|
|
24
|
-
var _context$
|
|
26
|
+
var _context$engine, _context$engine3, _Dayjs$locale;
|
|
25
27
|
const isFetchingDates = (0, react.useRef)(false);
|
|
26
|
-
const
|
|
28
|
+
const requestIdRef = (0, react.useRef)(0);
|
|
29
|
+
const mountedRef = (0, react.useRef)(false);
|
|
30
|
+
const readyMonthRef = (0, react.useRef)("");
|
|
31
|
+
const loadStateRef = (0, react.useRef)("loading");
|
|
32
|
+
const [loadState, setLoadState] = (0, react.useState)("loading");
|
|
27
33
|
const [currentDate, setCurrentDate] = (0, react.useState)();
|
|
28
34
|
const [dateMonthList, setDateMonthList] = (0, react.useState)([]);
|
|
29
35
|
const [currentMonth, setCurrentMonth] = (0, react.useState)();
|
|
@@ -31,6 +37,11 @@ const Date = (0, react.forwardRef)((props, ref) => {
|
|
|
31
37
|
const { isDateSelectedFirst, customPageId, channel } = require_hooks.useAppointmentBookingSetting();
|
|
32
38
|
const { nextStep } = require_hooks.useAppointmentBookingStep();
|
|
33
39
|
const context = require_useEngineContext.default();
|
|
40
|
+
require_useInitLocalesOnce.default(require_locales.default, context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale);
|
|
41
|
+
const updateLoadState = (state) => {
|
|
42
|
+
loadStateRef.current = state;
|
|
43
|
+
setLoadState(state);
|
|
44
|
+
};
|
|
34
45
|
(0, react.useImperativeHandle)(ref, () => ({ next: handleNext }));
|
|
35
46
|
/**
|
|
36
47
|
* @title: 处理进入下一步的逻辑
|
|
@@ -41,9 +52,13 @@ const Date = (0, react.forwardRef)((props, ref) => {
|
|
|
41
52
|
*/
|
|
42
53
|
const handleNext = function() {
|
|
43
54
|
var _ref = require_asyncToGenerator._asyncToGenerator(function* () {
|
|
55
|
+
var _data$;
|
|
56
|
+
if (loadStateRef.current !== "success" || readyMonthRef.current !== (currentMonth === null || currentMonth === void 0 ? void 0 : currentMonth.format("YYYY-MM"))) return;
|
|
57
|
+
const requestId = requestIdRef.current;
|
|
44
58
|
const data = yield appointmentBooking.getDateRange();
|
|
45
|
-
if (!
|
|
46
|
-
|
|
59
|
+
if (!mountedRef.current || requestId !== requestIdRef.current) return;
|
|
60
|
+
if (!(data === null || data === void 0 ? void 0 : data.length) || !currentDate || ((_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data$.date) !== currentDate) return require_utils.Toast(_pisell_utils.locales.getText("pisell2.appointment.unselect.date"));
|
|
61
|
+
yield nextStep();
|
|
47
62
|
});
|
|
48
63
|
return function handleNext() {
|
|
49
64
|
return _ref.apply(this, arguments);
|
|
@@ -61,21 +76,33 @@ const Date = (0, react.forwardRef)((props, ref) => {
|
|
|
61
76
|
const startingColumn = 0;
|
|
62
77
|
const columns = Array.from({ length: 7 }, (_, index) => (index + 7 - startingColumn) % 7);
|
|
63
78
|
(0, react.useEffect)(() => {
|
|
79
|
+
mountedRef.current = true;
|
|
80
|
+
const requestId = ++requestIdRef.current;
|
|
64
81
|
(function() {
|
|
65
82
|
var _ref2 = require_asyncToGenerator._asyncToGenerator(function* () {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
83
|
+
try {
|
|
84
|
+
var _data$2;
|
|
85
|
+
const data = yield appointmentBooking.getDateRange();
|
|
86
|
+
if (!mountedRef.current || requestId !== requestIdRef.current) return;
|
|
87
|
+
const selectedMonth = (0, dayjs.default)(data === null || data === void 0 || (_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : _data$2.date);
|
|
88
|
+
setCurrentMonth(selectedMonth.isValid() ? selectedMonth : (0, dayjs.default)());
|
|
89
|
+
} catch (error) {
|
|
90
|
+
if (mountedRef.current && requestId === requestIdRef.current) updateLoadState("error");
|
|
91
|
+
}
|
|
69
92
|
});
|
|
70
93
|
return function getCurrentMonthData() {
|
|
71
94
|
return _ref2.apply(this, arguments);
|
|
72
95
|
};
|
|
73
96
|
})()();
|
|
97
|
+
return () => {
|
|
98
|
+
mountedRef.current = false;
|
|
99
|
+
requestIdRef.current += 1;
|
|
100
|
+
};
|
|
74
101
|
}, []);
|
|
75
102
|
const locale = (0, react.useMemo)(() => {
|
|
76
|
-
var _context$
|
|
77
|
-
return require_state.localeTypes[context === null || context === void 0 || (_context$
|
|
78
|
-
}, [context === null || context === void 0 || (_context$
|
|
103
|
+
var _context$engine2;
|
|
104
|
+
return require_state.localeTypes[context === null || context === void 0 || (_context$engine2 = context.engine) === null || _context$engine2 === void 0 || (_context$engine2 = _context$engine2.props) === null || _context$engine2 === void 0 ? void 0 : _context$engine2.locale] || "en";
|
|
105
|
+
}, [context === null || context === void 0 || (_context$engine3 = context.engine) === null || _context$engine3 === void 0 || (_context$engine3 = _context$engine3.props) === null || _context$engine3 === void 0 ? void 0 : _context$engine3.locale]);
|
|
79
106
|
/**
|
|
80
107
|
* @title: 获取当前月日期
|
|
81
108
|
* @description:
|
|
@@ -120,7 +147,6 @@ const Date = (0, react.forwardRef)((props, ref) => {
|
|
|
120
147
|
*/
|
|
121
148
|
const getDateData = function() {
|
|
122
149
|
var _ref3 = require_asyncToGenerator._asyncToGenerator(function* (params) {
|
|
123
|
-
console.log(isDateSelectedFirst, customPageId, params, channel, "wh7868");
|
|
124
150
|
if (isDateSelectedFirst) return appointmentBooking.loadScheduleAvailableDate(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, params), {}, {
|
|
125
151
|
custom_page_id: customPageId,
|
|
126
152
|
channel
|
|
@@ -132,24 +158,40 @@ const Date = (0, react.forwardRef)((props, ref) => {
|
|
|
132
158
|
};
|
|
133
159
|
}();
|
|
134
160
|
const getDates = function() {
|
|
135
|
-
var _ref4 = require_asyncToGenerator._asyncToGenerator(function* (date) {
|
|
161
|
+
var _ref4 = require_asyncToGenerator._asyncToGenerator(function* (date, retryAborted = true) {
|
|
162
|
+
const requestId = ++requestIdRef.current;
|
|
163
|
+
const isCurrentRequest = () => mountedRef.current && requestId === requestIdRef.current;
|
|
164
|
+
readyMonthRef.current = "";
|
|
165
|
+
updateLoadState("loading");
|
|
166
|
+
setCurrentDate(void 0);
|
|
136
167
|
try {
|
|
137
168
|
const data = yield getDateData({
|
|
138
169
|
startDate: (0, dayjs.default)(date).startOf("month").format("YYYY-MM-DD"),
|
|
139
|
-
endDate: (0, dayjs.default)(date).endOf("month").format("YYYY-MM-DD")
|
|
170
|
+
endDate: (0, dayjs.default)(date).endOf("month").format("YYYY-MM-DD"),
|
|
171
|
+
assertCurrent: () => {
|
|
172
|
+
if (!isCurrentRequest()) {
|
|
173
|
+
const error = /* @__PURE__ */ new Error("Calendar request superseded");
|
|
174
|
+
error.name = "AbortError";
|
|
175
|
+
throw error;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
140
178
|
});
|
|
141
|
-
|
|
179
|
+
if (!isCurrentRequest()) return;
|
|
180
|
+
if (!Array.isArray(data)) throw new Error("Invalid availability response");
|
|
181
|
+
const firstAvailableDate = data.find((d) => d.status === "available");
|
|
142
182
|
if (!firstAvailableDate && !isFetchingDates.current) {
|
|
143
183
|
isFetchingDates.current = true;
|
|
144
184
|
setCurrentMonth((0, dayjs.default)(date).add(1, "month"));
|
|
145
|
-
setLoading(true);
|
|
146
185
|
return;
|
|
147
186
|
}
|
|
148
187
|
const selected = yield appointmentBooking.getDateRange();
|
|
149
|
-
|
|
188
|
+
if (!isCurrentRequest()) return;
|
|
150
189
|
if ((selected === null || selected === void 0 ? void 0 : selected.length) > 0) {
|
|
151
|
-
|
|
152
|
-
|
|
190
|
+
const selectedDay = data.find((day) => {
|
|
191
|
+
var _selected$;
|
|
192
|
+
return day.date === ((_selected$ = selected[0]) === null || _selected$ === void 0 ? void 0 : _selected$.date);
|
|
193
|
+
});
|
|
194
|
+
setCurrentDate(selectedDay && selectedDay.status !== "unavailable" ? selectedDay.date : void 0);
|
|
153
195
|
} else if (!isDateSelectedFirst) {
|
|
154
196
|
if (date.format("YYYY-MM") === (0, dayjs.default)().format("YYYY-MM") || isFetchingDates.current) {
|
|
155
197
|
if (firstAvailableDate) {
|
|
@@ -158,16 +200,21 @@ const Date = (0, react.forwardRef)((props, ref) => {
|
|
|
158
200
|
}
|
|
159
201
|
}
|
|
160
202
|
}
|
|
161
|
-
|
|
203
|
+
setDateMonthList(getMonthData(date.format("YYYY-MM")).map((day) => {
|
|
162
204
|
const matchedDay = data.find((d) => d.date === day.date);
|
|
163
205
|
if (matchedDay) return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, day), matchedDay), {}, { disabled: matchedDay.status === "unavailable" });
|
|
164
|
-
return day;
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
|
|
206
|
+
return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, day), {}, { disabled: true });
|
|
207
|
+
}));
|
|
208
|
+
readyMonthRef.current = date.format("YYYY-MM");
|
|
209
|
+
updateLoadState("success");
|
|
168
210
|
} catch (error) {
|
|
169
|
-
|
|
170
|
-
|
|
211
|
+
if (!isCurrentRequest()) return;
|
|
212
|
+
if ((error === null || error === void 0 ? void 0 : error.name) === "AbortError") {
|
|
213
|
+
if (retryAborted) return getDates(date, false);
|
|
214
|
+
updateLoadState("idle");
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
updateLoadState("error");
|
|
171
218
|
}
|
|
172
219
|
});
|
|
173
220
|
return function getDates(_x2) {
|
|
@@ -177,7 +224,27 @@ const Date = (0, react.forwardRef)((props, ref) => {
|
|
|
177
224
|
(0, react.useEffect)(() => {
|
|
178
225
|
if (!currentMonth) return;
|
|
179
226
|
getDates(currentMonth);
|
|
180
|
-
|
|
227
|
+
return () => {
|
|
228
|
+
requestIdRef.current += 1;
|
|
229
|
+
};
|
|
230
|
+
}, [
|
|
231
|
+
currentMonth,
|
|
232
|
+
isDateSelectedFirst,
|
|
233
|
+
customPageId,
|
|
234
|
+
channel,
|
|
235
|
+
appointmentBooking
|
|
236
|
+
]);
|
|
237
|
+
const changeMonth = (month) => {
|
|
238
|
+
requestIdRef.current += 1;
|
|
239
|
+
readyMonthRef.current = "";
|
|
240
|
+
updateLoadState("loading");
|
|
241
|
+
setCurrentMonth(month);
|
|
242
|
+
};
|
|
243
|
+
const retry = () => {
|
|
244
|
+
if (loadStateRef.current === "loading") return;
|
|
245
|
+
if (currentMonth) getDates(currentMonth);
|
|
246
|
+
else changeMonth((0, dayjs.default)());
|
|
247
|
+
};
|
|
181
248
|
/**
|
|
182
249
|
* @title: 切换上个月
|
|
183
250
|
* @description:
|
|
@@ -187,7 +254,7 @@ const Date = (0, react.forwardRef)((props, ref) => {
|
|
|
187
254
|
* @Date: 2024-02-01 19:15
|
|
188
255
|
*/
|
|
189
256
|
const lastMonth = () => {
|
|
190
|
-
|
|
257
|
+
changeMonth((0, dayjs.default)(currentMonth === null || currentMonth === void 0 ? void 0 : currentMonth.format("YYYY-MM")).subtract(1, "month"));
|
|
191
258
|
};
|
|
192
259
|
/**
|
|
193
260
|
* @title: 切换下个月
|
|
@@ -198,8 +265,7 @@ const Date = (0, react.forwardRef)((props, ref) => {
|
|
|
198
265
|
* @Date: 2024-02-01 19:15
|
|
199
266
|
*/
|
|
200
267
|
const nextMonth = () => {
|
|
201
|
-
|
|
202
|
-
setLoading(true);
|
|
268
|
+
changeMonth((0, dayjs.default)(currentMonth === null || currentMonth === void 0 ? void 0 : currentMonth.format("YYYY-MM")).add(1, "month"));
|
|
203
269
|
};
|
|
204
270
|
/**
|
|
205
271
|
* @title: 点击某一天日期
|
|
@@ -211,12 +277,15 @@ const Date = (0, react.forwardRef)((props, ref) => {
|
|
|
211
277
|
* @Date: 2025-04-24 18:36
|
|
212
278
|
*/
|
|
213
279
|
const handleClick = (day, date) => {
|
|
214
|
-
if (day === null || day === void 0 ? void 0 : day.disabled) return;
|
|
280
|
+
if ((day === null || day === void 0 ? void 0 : day.disabled) || loadStateRef.current !== "success") return;
|
|
215
281
|
setCurrentDate(date);
|
|
216
282
|
appointmentBooking.setDateRange([day]);
|
|
217
|
-
if (isDateSelectedFirst)
|
|
283
|
+
if (isDateSelectedFirst) nextStep();
|
|
218
284
|
};
|
|
219
|
-
return /* @__PURE__ */ react.default.createElement("div", {
|
|
285
|
+
return /* @__PURE__ */ react.default.createElement("div", {
|
|
286
|
+
className: `calendar-date-box ${(0, _pisell_utils.isMobile)() ? "calendar-date-mobile-box" : ""}`,
|
|
287
|
+
"aria-busy": loadState === "loading"
|
|
288
|
+
}, loadState === "error" || loadState === "idle" ? /* @__PURE__ */ react.default.createElement("div", null, loadState === "error" && /* @__PURE__ */ react.default.createElement("p", { role: "alert" }, _pisell_utils.locales.getText("pisell2.appointment.availability.load.failed")), /* @__PURE__ */ react.default.createElement(antd.Button, { onClick: retry }, _pisell_utils.locales.getText("pisell2.appointment.retry"))) : loadState === "loading" || !currentMonth ? /* @__PURE__ */ react.default.createElement(antd.Skeleton, {
|
|
220
289
|
loading: true,
|
|
221
290
|
active: true,
|
|
222
291
|
style: { paddingTop: "16px" }
|
|
@@ -240,8 +309,7 @@ const Date = (0, react.forwardRef)((props, ref) => {
|
|
|
240
309
|
className: (0, classnames.default)("calendar-days-items", {
|
|
241
310
|
["disabledDate"]: day === null || day === void 0 ? void 0 : day.disabled,
|
|
242
311
|
["selectDate"]: currentDate === date,
|
|
243
|
-
["other-month-days"]: !isCurrentMonth
|
|
244
|
-
["loading-item"]: loading
|
|
312
|
+
["other-month-days"]: !isCurrentMonth
|
|
245
313
|
}),
|
|
246
314
|
onClick: () => handleClick(day, date)
|
|
247
315
|
}, isCurrentMonth && /* @__PURE__ */ react.default.createElement("div", { className: (0, classnames.default)("day-text") }, (0, dayjs.default)(day.date).format("D")));
|