@pisell/private-materials 6.12.361 → 6.12.363
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 +6 -6
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/components/bigSale/components/BookingFloatingPanel/useBookingPanelController.js +1 -0
- package/es/components/bigSale/components/ProductList/index.js +1 -0
- package/es/components/bigSale/components/TimeBar/index.js +1 -0
- package/es/components/bigSale/dialog.js +1 -0
- package/es/components/bigSale/hooks/useBigSaleContext.js +1 -0
- package/es/components/bigSale/hooks/useSelectFloorMapResourceForBigSale.js +1 -0
- package/es/components/bigSale/index.js +1 -0
- package/es/components/bigSale/templates/Kiosk/index.js +1 -0
- package/es/components/scanOrder/components/Check/index.js +95 -84
- package/es/components/scanOrder/locales.js +15 -0
- package/es/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.js +1 -0
- package/es/index.js +2 -0
- 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/pisellReservation/index.js +17 -0
- package/es/plus/saasDevice/devicePasscodes/model.js +4 -4
- package/es/plus/saleDetail/Base.js +1 -0
- package/es/plus/saleDetail/components/Client/hooks/useClientSelectorProps.js +1 -0
- package/es/plus/saleDetail/components/DetailActions/PrintAction.js +1 -0
- package/es/plus/saleDetail/components/DetailActions/index.js +1 -0
- package/es/plus/saleDetail/components/SummaryFinancialSections/index.js +1 -0
- package/es/plus/saleDetail/index.js +1 -0
- package/es/plus/saleDetail/tmpl/B/components/Dish/index.js +1 -0
- package/es/plus/saleDetail/tmpl/B/index.js +1 -0
- package/es/plus/salesSdk/bookingEditService/BookingEditHolderField.js +66 -27
- package/es/plus/salesSdk/index.js +54 -0
- 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/plus/skuOptionsSelection/utils/normalizeSelectorLayout.js +15 -0
- package/es/plus/skuOptionsSelection/utils/resolveCollectionLayout.js +2 -2
- package/es/plus/walletEditor/WalletEditor.js +19 -5
- package/es/plus/walletEditor/components/PassDisplayConfig/index.js +60 -0
- package/es/plus/walletEditor/components/PassDisplayConfig/index.less +27 -0
- package/es/plus/walletEditor/components/PassDisplayConfig/serve.js +18 -0
- package/es/plus/walletEditor/index.d.ts +1 -1
- package/es/plus/walletEditor/locales.js +40 -0
- package/es/plus/walletEditor/types.d.ts +8 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.js +4 -4
- package/es/plus/walletPassGallery/index.js +11 -6
- 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/scanOrder/components/Check/index.js +94 -83
- package/lib/components/scanOrder/locales.js +15 -0
- package/lib/plus/salesSdk/bookingEditService/BookingEditHolderField.js +65 -26
- package/lib/plus/skuOptionsSelection/utils/normalizeSelectorLayout.js +15 -0
- package/lib/plus/skuOptionsSelection/utils/resolveCollectionLayout.js +2 -2
- package/lib/plus/walletEditor/WalletEditor.js +19 -5
- package/lib/plus/walletEditor/components/PassDisplayConfig/index.js +62 -0
- package/lib/plus/walletEditor/components/PassDisplayConfig/index.less +27 -0
- package/lib/plus/walletEditor/components/PassDisplayConfig/serve.js +18 -0
- package/lib/plus/walletEditor/index.d.ts +1 -1
- package/lib/plus/walletEditor/locales.js +40 -0
- package/lib/plus/walletEditor/types.d.ts +8 -1
- package/lib/plus/walletPassGallery/index.js +11 -6
- package/package.json +3 -3
- package/es/private-materials/lowcode/authmodal/meta.d.ts +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import useEngineContext from "../../../../hooks/useEngineContext.js";
|
|
2
2
|
import { subscribeBookingDateChange } from "../../../../plus/salesSdk/utils/bookingDate.js";
|
|
3
|
+
import "../../../../plus/salesSdk/index.js";
|
|
3
4
|
import dayjs from "dayjs";
|
|
4
5
|
import { useCallback, useEffect, useState } from "react";
|
|
5
6
|
//#region src/components/bigSale/components/BookingFloatingPanel/useBookingPanelController.ts
|
|
@@ -15,6 +15,7 @@ import { useSalesSdkBusinessAvailability } from "../../../../plus/salesSdk/conte
|
|
|
15
15
|
import { showAddToCartToast } from "../../../../plus/salesSdk/components/showAddToCartToast.js";
|
|
16
16
|
import { mergeBookingsForDisplay } from "../../../../plus/salesSdk/utils/mergeBookingsForDisplay.js";
|
|
17
17
|
import useSalesSdkGlobalScanHandler from "../../../../plus/salesSdk/hooks/useSalesSdkGlobalScanHandler.js";
|
|
18
|
+
import "../../../../plus/salesSdk/index.js";
|
|
18
19
|
import { buildBigSaleProductListPreferencesKey, readBigSaleProductListPreferences, readStoredBigSaleProductListPreferences, removeBigSaleProductListPreferences, resolveBigSaleAutoProductListPreferences, writeBigSaleProductListPreferences } from "../../utils/productListPreferences.js";
|
|
19
20
|
import { resolveBigSaleProductDisplayConfig, useBigSaleProductListConfig } from "../../hooks/useBigSaleProductListConfig.js";
|
|
20
21
|
import locales_default from "../../locales/index.js";
|
|
@@ -5,6 +5,7 @@ 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";
|
|
8
9
|
import locales_default from "../../locales/index.js";
|
|
9
10
|
import { getPosWeekStartsOn, resolvePosCountryCode } from "../../../../utils/posDateLocale.js";
|
|
10
11
|
import dayjs from "dayjs";
|
|
@@ -6,6 +6,7 @@ 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";
|
|
9
10
|
import { isPersistedBigSaleOrderId } from "./utils/orderIdentity.js";
|
|
10
11
|
import { seedDineInReservationToCart } from "../../plus/pisellReservation/utils/seedDineInReservationToCart.js";
|
|
11
12
|
import BigSale from "./index.js";
|
|
@@ -4,6 +4,7 @@ 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";
|
|
7
8
|
import { useMemo } from "react";
|
|
8
9
|
//#region src/components/bigSale/hooks/useBigSaleContext.ts
|
|
9
10
|
/**
|
|
@@ -3,6 +3,7 @@ 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";
|
|
6
7
|
import { isPersistedBigSaleOrderId } from "../utils/orderIdentity.js";
|
|
7
8
|
import { resolveOrderIdForHostActions } from "../../../plus/pisellReservation/components/bookingDetailModal/bookingDetailHostActions.js";
|
|
8
9
|
import { usePicoCodingOpenData } from "../../../plus/pisellReservation/hooks/usePicoCodingOpenData.js";
|
|
@@ -8,6 +8,7 @@ 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";
|
|
11
12
|
import { resolveCustomerDetailAppearance } from "../../pro/skuDetailModal/customerDetailPolicy.js";
|
|
12
13
|
import { ResponsiveBigSaleBase } from "./Base.js";
|
|
13
14
|
import { isBigSaleProductSelectionFlowScene, resolveBigSaleSelectionFlowConfig } from "./selectionFlowConfig.js";
|
|
@@ -12,6 +12,7 @@ import { useSalesSdkBusinessAvailability } from "../../../../plus/salesSdk/conte
|
|
|
12
12
|
import { collectUnassignedHolderLines } from "../../../../plus/salesSdk/utils/holderSubmitValidation.js";
|
|
13
13
|
import { isFulfillmentTimingBooking } from "../../../../plus/salesSdk/utils/fulfillmentTimingBooking.js";
|
|
14
14
|
import { useSalesSdk } from "../../../../plus/salesSdk/hooks/useSalesSdk.js";
|
|
15
|
+
import "../../../../plus/salesSdk/index.js";
|
|
15
16
|
import { usePickSaleDetailContext } from "../../hooks/usePickSaleDetailContext.js";
|
|
16
17
|
import { resolveBigSaleAutoProductListPreferences } from "../../utils/productListPreferences.js";
|
|
17
18
|
import { resolveBigSaleProductDisplayConfig } from "../../hooks/useBigSaleProductListConfig.js";
|
|
@@ -4,7 +4,7 @@ import { useScanOrderContext } from "../../context.js";
|
|
|
4
4
|
import Cart from "../Cart/index.js";
|
|
5
5
|
import FulfillmentMode from "../FulfillmentMode/index.js";
|
|
6
6
|
import ManualPickupRefModal from "../ManualPickupRefModal/index.js";
|
|
7
|
-
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
7
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
8
8
|
import { Input, Modal, message } from "antd";
|
|
9
9
|
import { locales } from "@pisell/utils";
|
|
10
10
|
import { Button as Button$1, PisellLoading, PisellToast } from "@pisell/materials";
|
|
@@ -14,6 +14,8 @@ function Check() {
|
|
|
14
14
|
const { viewModel, runModuleAction, refreshViewModel, tableName, entryMode, clearStepCache, entryContext } = useScanOrderContext();
|
|
15
15
|
const isAdditionalOrder = entryMode === "additional_order";
|
|
16
16
|
const [submitting, setSubmitting] = useState(false);
|
|
17
|
+
const submittingRef = useRef(false);
|
|
18
|
+
const menuUnavailableRef = useRef(false);
|
|
17
19
|
const [note, setNote] = useState((viewModel === null || viewModel === void 0 ? void 0 : viewModel.note) || "");
|
|
18
20
|
const [pickupRefOpen, setPickupRefOpen] = useState(false);
|
|
19
21
|
const [addOnConfirmOpen, setAddOnConfirmOpen] = useState(false);
|
|
@@ -51,9 +53,52 @@ function Check() {
|
|
|
51
53
|
const showSubmitFailedTip = useCallback((tip) => {
|
|
52
54
|
PisellToast({ content: String(tip || locales.getText("pisell2.scan.order.submit.failed") || "Submit order failed") });
|
|
53
55
|
}, []);
|
|
56
|
+
const handleMenuValidationFailure = (error) => {
|
|
57
|
+
if ((error === null || error === void 0 ? void 0 : error.code) === "SCAN_ORDER_MENU_UNAVAILABLE") {
|
|
58
|
+
if (menuUnavailableRef.current) return true;
|
|
59
|
+
menuUnavailableRef.current = true;
|
|
60
|
+
Modal.info({
|
|
61
|
+
title: String(locales.getText("pisell2.scan.order.menu.unavailable.title") || "Ordering time has ended"),
|
|
62
|
+
content: String(locales.getText("pisell2.scan.order.menu.unavailable.description") || "Some items in your cart are no longer available to order at this time. Select Confirm to refresh the page and choose your items again."),
|
|
63
|
+
okText: String(locales.getText("pisell2.event.confirm") || "OK"),
|
|
64
|
+
maskClosable: false,
|
|
65
|
+
keyboard: false,
|
|
66
|
+
closable: false,
|
|
67
|
+
onOk: () => {
|
|
68
|
+
const url = new URL(window.location.href);
|
|
69
|
+
url.searchParams.delete("cacheId");
|
|
70
|
+
window.location.replace(url.toString());
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
if ((error === null || error === void 0 ? void 0 : error.code) === "SCAN_ORDER_MENU_VALIDATION_FAILED") {
|
|
76
|
+
showSubmitFailedTip(String(locales.getText("pisell2.scan.order.menu.validation.failed") || "Unable to check the ordering time. Please try again. Your cart has been kept."));
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
return false;
|
|
80
|
+
};
|
|
81
|
+
const runSubmitAction = function() {
|
|
82
|
+
var _ref = _asyncToGenerator(function* (action) {
|
|
83
|
+
if (submittingRef.current || menuUnavailableRef.current) return;
|
|
84
|
+
submittingRef.current = true;
|
|
85
|
+
setSubmitting(true);
|
|
86
|
+
try {
|
|
87
|
+
yield action();
|
|
88
|
+
} catch (error) {
|
|
89
|
+
console.error("[scanOrder] submit action failed", error);
|
|
90
|
+
if (!handleMenuValidationFailure(error)) showSubmitFailedTip(error === null || error === void 0 ? void 0 : error.message);
|
|
91
|
+
} finally {
|
|
92
|
+
submittingRef.current = false;
|
|
93
|
+
setSubmitting(false);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
return function runSubmitAction(_x) {
|
|
97
|
+
return _ref.apply(this, arguments);
|
|
98
|
+
};
|
|
99
|
+
}();
|
|
54
100
|
const showInventoryInsufficientModal = useCallback((error) => {
|
|
55
101
|
var _error$data;
|
|
56
|
-
setSubmitting(false);
|
|
57
102
|
const productNames = (Array.isArray(error === null || error === void 0 || (_error$data = error.data) === null || _error$data === void 0 ? void 0 : _error$data.unavailable_products) ? error.data.unavailable_products : []).map((product) => String((product === null || product === void 0 ? void 0 : product.title) || (product === null || product === void 0 ? void 0 : product.product_id) || "").trim()).filter(Boolean);
|
|
58
103
|
const title = String(locales.getText("pisell2.scan.order.inventory.insufficient.title") || "Insufficient inventory");
|
|
59
104
|
const description = String(locales.getText("pisell2.scan.order.inventory.insufficient.description") || "The following items are out of stock or do not have enough inventory. Please adjust your cart and try again.");
|
|
@@ -67,24 +112,22 @@ function Check() {
|
|
|
67
112
|
});
|
|
68
113
|
}, []);
|
|
69
114
|
const doSubmit = function() {
|
|
70
|
-
var
|
|
115
|
+
var _ref3 = _asyncToGenerator(function* () {
|
|
71
116
|
if (((viewModel === null || viewModel === void 0 ? void 0 : viewModel.cartItems) || []).length === 0) {
|
|
72
117
|
showCheckStepEmptyCartTip();
|
|
73
|
-
setSubmitting(false);
|
|
74
118
|
return;
|
|
75
119
|
}
|
|
76
120
|
try {
|
|
77
121
|
var _res$data;
|
|
78
|
-
setSubmitting(true);
|
|
79
122
|
yield runModuleAction("updateTempOrderNote", note);
|
|
80
123
|
const res = yield runModuleAction("submitScanOrder");
|
|
81
124
|
console.log("submitScanOrder >>>>> ", res);
|
|
82
125
|
if ((res === null || res === void 0 ? void 0 : res.status) === false) {
|
|
126
|
+
if (handleMenuValidationFailure(res)) return;
|
|
83
127
|
if ((res === null || res === void 0 ? void 0 : res.code) === 6008) {
|
|
84
128
|
showInventoryInsufficientModal(res);
|
|
85
129
|
return;
|
|
86
130
|
}
|
|
87
|
-
setSubmitting(false);
|
|
88
131
|
showSubmitFailedTip(res === null || res === void 0 ? void 0 : res.message);
|
|
89
132
|
return;
|
|
90
133
|
}
|
|
@@ -102,7 +145,6 @@ function Check() {
|
|
|
102
145
|
}[channel] || channel;
|
|
103
146
|
if (shouldPayOnSubmit) {
|
|
104
147
|
var _res$data2, _viewModel$summary;
|
|
105
|
-
setSubmitting(false);
|
|
106
148
|
utils.action({
|
|
107
149
|
type: "pisell1.payment",
|
|
108
150
|
data: {
|
|
@@ -111,15 +153,15 @@ function Check() {
|
|
|
111
153
|
sale_channel: saleChannel
|
|
112
154
|
},
|
|
113
155
|
callback: function() {
|
|
114
|
-
var
|
|
156
|
+
var _ref2 = _asyncToGenerator(function* (_e) {
|
|
115
157
|
try {
|
|
116
158
|
yield runModuleAction("restoreOrder");
|
|
117
159
|
} catch (error) {
|
|
118
160
|
console.warn("[scanOrder] restoreOrder after payment failed", error);
|
|
119
161
|
}
|
|
120
162
|
});
|
|
121
|
-
return function callback(
|
|
122
|
-
return
|
|
163
|
+
return function callback(_x2) {
|
|
164
|
+
return _ref2.apply(this, arguments);
|
|
123
165
|
};
|
|
124
166
|
}()
|
|
125
167
|
});
|
|
@@ -143,96 +185,65 @@ function Check() {
|
|
|
143
185
|
yield refreshViewModel();
|
|
144
186
|
} catch (error) {
|
|
145
187
|
console.error("[scanOrder] submitScanOrder failed", error);
|
|
146
|
-
if ((error
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
} else if ((error === null || error === void 0 ? void 0 : error.code) === 670007 && (entryContext === null || entryContext === void 0 ? void 0 : entryContext.resource_id)) {
|
|
188
|
+
if (handleMenuValidationFailure(error)) return;
|
|
189
|
+
if ((error === null || error === void 0 ? void 0 : error.code) === 670005) showSubmitFailedTip(String(locales.getText("pisell2.scan.order.settled.cannot.add.tip") || ""));
|
|
190
|
+
else if ((error === null || error === void 0 ? void 0 : error.code) === 670007 && (entryContext === null || entryContext === void 0 ? void 0 : entryContext.resource_id)) {
|
|
150
191
|
const reservationResourceSelectType = yield runModuleAction("getReservationResourceSelectType");
|
|
151
192
|
const allowAddItems = yield runModuleAction("checkAllowAddItems");
|
|
152
193
|
const res = yield runModuleAction("syncAdditionalOrderFromResource", entryContext === null || entryContext === void 0 ? void 0 : entryContext.resource_id);
|
|
153
|
-
if (reservationResourceSelectType.resourceSelectType === "single" && (allowAddItems === null || allowAddItems === void 0 ? void 0 : allowAddItems.enabled) && (res === null || res === void 0 ? void 0 : res.matched))
|
|
154
|
-
|
|
155
|
-
setAddOnConfirmOpen(true);
|
|
156
|
-
} else {
|
|
157
|
-
setSubmitting(false);
|
|
158
|
-
showSubmitFailedTip(error === null || error === void 0 ? void 0 : error.message);
|
|
159
|
-
}
|
|
194
|
+
if (reservationResourceSelectType.resourceSelectType === "single" && (allowAddItems === null || allowAddItems === void 0 ? void 0 : allowAddItems.enabled) && (res === null || res === void 0 ? void 0 : res.matched)) setAddOnConfirmOpen(true);
|
|
195
|
+
else showSubmitFailedTip(error === null || error === void 0 ? void 0 : error.message);
|
|
160
196
|
} else if ((error === null || error === void 0 ? void 0 : error.code) === 6008) showInventoryInsufficientModal(error);
|
|
161
|
-
else
|
|
162
|
-
setSubmitting(false);
|
|
163
|
-
showSubmitFailedTip(error === null || error === void 0 ? void 0 : error.message);
|
|
164
|
-
}
|
|
197
|
+
else showSubmitFailedTip(error === null || error === void 0 ? void 0 : error.message);
|
|
165
198
|
}
|
|
166
199
|
});
|
|
167
200
|
return function doSubmit() {
|
|
168
|
-
return _ref2.apply(this, arguments);
|
|
169
|
-
};
|
|
170
|
-
}();
|
|
171
|
-
const handleSubmit = function() {
|
|
172
|
-
var _ref3 = _asyncToGenerator(function* () {
|
|
173
|
-
if (submitting) return;
|
|
174
|
-
if (((viewModel === null || viewModel === void 0 ? void 0 : viewModel.cartItems) || []).length === 0) {
|
|
175
|
-
showCheckStepEmptyCartTip();
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
if (isAdditionalOrder) {
|
|
179
|
-
yield doSubmit();
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
try {
|
|
183
|
-
setSubmitting(true);
|
|
184
|
-
const manualPickup = yield runModuleAction("checkManualPickupRef");
|
|
185
|
-
if (manualPickup === null || manualPickup === void 0 ? void 0 : manualPickup.enabled) {
|
|
186
|
-
setPickupRefOpen(true);
|
|
187
|
-
setSubmitting(false);
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
} catch (error) {
|
|
191
|
-
console.error("[scanOrder] checkManualPickupRef failed", error);
|
|
192
|
-
message.error((error === null || error === void 0 ? void 0 : error.message) || "Submit order failed");
|
|
193
|
-
setSubmitting(false);
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
yield doSubmit();
|
|
197
|
-
});
|
|
198
|
-
return function handleSubmit() {
|
|
199
201
|
return _ref3.apply(this, arguments);
|
|
200
202
|
};
|
|
201
203
|
}();
|
|
202
|
-
const
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
204
|
+
const handleSubmit = () => runSubmitAction(_asyncToGenerator(function* () {
|
|
205
|
+
if (((viewModel === null || viewModel === void 0 ? void 0 : viewModel.cartItems) || []).length === 0) {
|
|
206
|
+
showCheckStepEmptyCartTip();
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
if (isAdditionalOrder) {
|
|
210
|
+
yield doSubmit();
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
try {
|
|
214
|
+
const manualPickup = yield runModuleAction("checkManualPickupRef");
|
|
215
|
+
if (manualPickup === null || manualPickup === void 0 ? void 0 : manualPickup.enabled) {
|
|
216
|
+
setPickupRefOpen(true);
|
|
211
217
|
return;
|
|
212
218
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}
|
|
219
|
+
} catch (error) {
|
|
220
|
+
console.error("[scanOrder] checkManualPickupRef failed", error);
|
|
221
|
+
message.error((error === null || error === void 0 ? void 0 : error.message) || "Submit order failed");
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
yield doSubmit();
|
|
225
|
+
}));
|
|
226
|
+
const handlePickupRefConfirm = (value) => runSubmitAction(_asyncToGenerator(function* () {
|
|
227
|
+
try {
|
|
228
|
+
yield runModuleAction("setPickupRef", value);
|
|
229
|
+
} catch (error) {
|
|
230
|
+
console.error("[scanOrder] setPickupRef failed", error);
|
|
231
|
+
message.error((error === null || error === void 0 ? void 0 : error.message) || "Submit order failed");
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
setPickupRefOpen(false);
|
|
235
|
+
yield doSubmit();
|
|
236
|
+
}));
|
|
220
237
|
const handlePickupRefCancel = () => {
|
|
221
|
-
if (
|
|
238
|
+
if (submittingRef.current) return;
|
|
222
239
|
setPickupRefOpen(false);
|
|
223
240
|
};
|
|
224
|
-
const handleAddOnConfirm = function() {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
yield doSubmit();
|
|
229
|
-
});
|
|
230
|
-
return function handleAddOnConfirm() {
|
|
231
|
-
return _ref5.apply(this, arguments);
|
|
232
|
-
};
|
|
233
|
-
}();
|
|
241
|
+
const handleAddOnConfirm = () => runSubmitAction(_asyncToGenerator(function* () {
|
|
242
|
+
setAddOnConfirmOpen(false);
|
|
243
|
+
yield doSubmit();
|
|
244
|
+
}));
|
|
234
245
|
const handleAddOnReturn = () => {
|
|
235
|
-
if (
|
|
246
|
+
if (submittingRef.current) return;
|
|
236
247
|
setAddOnConfirmOpen(false);
|
|
237
248
|
};
|
|
238
249
|
const noteContent = /* @__PURE__ */ React.createElement("div", { className: "pisell-scan-order-check-note" }, /* @__PURE__ */ React.createElement("div", { className: "pisell-scan-order-check-note-title" }, noteTitle), /* @__PURE__ */ React.createElement(Input.TextArea, {
|
|
@@ -32,6 +32,9 @@ var locales_default = {
|
|
|
32
32
|
"pisell2.scan.order.check.cart.empty.tip": "Please go back to add products",
|
|
33
33
|
"pisell2.scan.order.submit.disabled.default": "Order submission is currently disabled.",
|
|
34
34
|
"pisell2.scan.order.submit.failed": "Failed to submit order",
|
|
35
|
+
"pisell2.scan.order.menu.unavailable.title": "Ordering time has ended",
|
|
36
|
+
"pisell2.scan.order.menu.unavailable.description": "Some items in your cart are no longer available to order at this time. Select Confirm to refresh the page and choose your items again.",
|
|
37
|
+
"pisell2.scan.order.menu.validation.failed": "Unable to check the ordering time. Please try again. Your cart has been kept.",
|
|
35
38
|
"pisell2.scan.order.multiple.orders.tip": "There are multiple active orders for this table. Please contact staff for add-on orders.",
|
|
36
39
|
"pisell2.scan.order.multiple.orders.confirm": "I Got It",
|
|
37
40
|
"pisell2.scan.order.settled.cannot.add.tip": "This order has already been settled and you cannot add more items. Please scan again to create a new order or contact staff.",
|
|
@@ -97,6 +100,9 @@ var locales_default = {
|
|
|
97
100
|
"pisell2.scan.order.check.cart.empty.tip": "请返回添加商品",
|
|
98
101
|
"pisell2.scan.order.submit.disabled.default": "当前暂不可下单",
|
|
99
102
|
"pisell2.scan.order.submit.failed": "订单提交失败",
|
|
103
|
+
"pisell2.scan.order.menu.unavailable.title": "已过可下单时间",
|
|
104
|
+
"pisell2.scan.order.menu.unavailable.description": "购物车中有商品已不在可下单时间内。点击确定后将刷新页面,请重新选择商品。",
|
|
105
|
+
"pisell2.scan.order.menu.validation.failed": "暂时无法校验商品的可下单时间,请重试。购物车已保留。",
|
|
100
106
|
"pisell2.scan.order.multiple.orders.tip": "当前桌台存在多个进行中的订单,请联系店员处理加餐。",
|
|
101
107
|
"pisell2.scan.order.multiple.orders.confirm": "我知道了",
|
|
102
108
|
"pisell2.scan.order.settled.cannot.add.tip": "当前订单已结账,无法继续加餐。请重新扫码创建新订单或联系店员。",
|
|
@@ -162,6 +168,9 @@ var locales_default = {
|
|
|
162
168
|
"pisell2.scan.order.check.cart.empty.tip": "請返回添加商品",
|
|
163
169
|
"pisell2.scan.order.submit.disabled.default": "當前暫不可下單",
|
|
164
170
|
"pisell2.scan.order.submit.failed": "訂單提交失敗",
|
|
171
|
+
"pisell2.scan.order.menu.unavailable.title": "已過可下單時間",
|
|
172
|
+
"pisell2.scan.order.menu.unavailable.description": "購物車中有商品已不在可下單時間內。點擊確定後將重新整理頁面,請重新選擇商品。",
|
|
173
|
+
"pisell2.scan.order.menu.validation.failed": "暫時無法核實商品的可下單時間,請重試。購物車已保留。",
|
|
165
174
|
"pisell2.scan.order.multiple.orders.tip": "當前桌台存在多個進行中的訂單,請聯繫店員處理加餐。",
|
|
166
175
|
"pisell2.scan.order.multiple.orders.confirm": "我知道了",
|
|
167
176
|
"pisell2.scan.order.settled.cannot.add.tip": "當前訂單已結賬,無法繼續加餐。請重新掃碼創建新訂單或聯繫店員。",
|
|
@@ -227,6 +236,9 @@ var locales_default = {
|
|
|
227
236
|
"pisell2.scan.order.check.cart.empty.tip": "商品を追加するには、前の画面に戻ってください",
|
|
228
237
|
"pisell2.scan.order.submit.disabled.default": "現在、注文を送信できません。",
|
|
229
238
|
"pisell2.scan.order.submit.failed": "注文の送信に失敗しました",
|
|
239
|
+
"pisell2.scan.order.menu.unavailable.title": "注文可能な時間を過ぎています",
|
|
240
|
+
"pisell2.scan.order.menu.unavailable.description": "カートに注文可能な時間を過ぎた商品があります。「確認」を押すとページが再読み込みされます。商品を選び直してください。",
|
|
241
|
+
"pisell2.scan.order.menu.validation.failed": "注文可能な時間を確認できませんでした。もう一度お試しください。カートの内容は保持されています。",
|
|
230
242
|
"pisell2.scan.order.multiple.orders.tip": "現在のテーブルには進行中の注文が複数あります。追加注文についてはスタッフにお問い合わせください。",
|
|
231
243
|
"pisell2.scan.order.multiple.orders.confirm": "了解しました",
|
|
232
244
|
"pisell2.scan.order.settled.cannot.add.tip": "現在の注文はすでに会計済みのため、追加注文できません。再度QRコードをスキャンして新しい注文を作成するか、スタッフにお問い合わせください。",
|
|
@@ -292,6 +304,9 @@ var locales_default = {
|
|
|
292
304
|
"pisell2.scan.order.check.cart.empty.tip": "Volte para adicionar produtos",
|
|
293
305
|
"pisell2.scan.order.submit.disabled.default": "No momento, não é possível enviar pedidos.",
|
|
294
306
|
"pisell2.scan.order.submit.failed": "Falha ao enviar o pedido",
|
|
307
|
+
"pisell2.scan.order.menu.unavailable.title": "O horário para pedidos terminou",
|
|
308
|
+
"pisell2.scan.order.menu.unavailable.description": "Alguns itens no carrinho não estão mais disponíveis para pedido neste horário. Selecione Confirmar para atualizar a página e escolher os itens novamente.",
|
|
309
|
+
"pisell2.scan.order.menu.validation.failed": "Não foi possível verificar o horário para pedidos. Tente novamente. Seu carrinho foi mantido.",
|
|
295
310
|
"pisell2.scan.order.multiple.orders.tip": "Há vários pedidos ativos nesta mesa. Entre em contato com a equipe para adicionar itens.",
|
|
296
311
|
"pisell2.scan.order.multiple.orders.confirm": "Entendi",
|
|
297
312
|
"pisell2.scan.order.settled.cannot.add.tip": "Este pedido já foi finalizado e não é possível adicionar mais itens. Escaneie novamente para criar um novo pedido ou entre em contato com a equipe.",
|
|
@@ -2,6 +2,7 @@ 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 { getTempOrderSyncPayload, shouldApplySharedTempOrderPayload } from "../../plus/salesSdk/tempOrderSync.js";
|
|
5
|
+
import "../../plus/salesSdk/index.js";
|
|
5
6
|
import { useEffect, useRef } from "react";
|
|
6
7
|
import { useMemoizedFn } from "ahooks";
|
|
7
8
|
//#region src/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.tsx
|
package/es/index.js
CHANGED
|
@@ -90,6 +90,7 @@ 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";
|
|
93
94
|
import BigSaleRightActionPanel from "./components/BigSaleRightActionPanel/index.js";
|
|
94
95
|
import ResponsiveWrapper from "./components/list/ResponsiveWrapper.js";
|
|
95
96
|
import { resolveBigSaleSelectionFlowConfig } from "./components/bigSale/selectionFlowConfig.js";
|
|
@@ -144,6 +145,7 @@ import PisellVenueControlPage from "./plus/pisellReservation/PisellVenueControlP
|
|
|
144
145
|
import PisellVenueWallPage from "./plus/pisellReservation/PisellVenueWallPage.js";
|
|
145
146
|
import PisellReservationTablePage from "./plus/pisellReservation/PisellReservationTablePage.js";
|
|
146
147
|
import SelectFloorMapResourceDialog from "./plus/pisellReservation/components/SelectFloorMapResourceDialog.js";
|
|
148
|
+
import "./plus/pisellReservation/index.js";
|
|
147
149
|
import { PisellTopology, PisellTopologyCore } from "./plus/pisellTopology/PisellTopology.js";
|
|
148
150
|
import cupProject_default from "./components/ecocup/cupProject/index.js";
|
|
149
151
|
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, formatSettlementAmount, formatSettlementSelectionTotal, formatTempOrderSettlementAmount, getSettlementKey, getSettlementOptions, hasSettlementOptions, hasSufficientVirtualCurrencyBalance, isVirtualOnlySettlementProduct, isVirtualSettlementTempOrder, resolveConfiguredUnavailableReason, resolveLegalSettlementAddOnUnitPrice, resolveSettlementOptionEntries, resolveVirtualSettlementErrorMessage, showVirtualSettlementErrorToast };
|
|
283
|
+
export { attachSelectedSettlement, buildSettlementPriceRows, createVirtualOnlySkuDisplayProduct, findFirstVirtualCurrencyAsset, formatSettlementAmount, formatSettlementSelectionTotal, formatTempOrderSettlementAmount, getReservedVirtualSettlementAmount, 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, hostBookingUiPatchFromRecord, mergeBookingsForResourceRecord };
|
|
262
|
+
export { applyHostResourceShellToBaseRow, bookingListToReservationTableRows, customerBrief, extractResourceRecordIds, filterBookingsByResourceIds, hostBookingStatusToCardStatus, 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, ensureShopFloorPlanByCode, saveViewConfigToShopFloorPlan, shopLayoutToSceneElements$1 as shopLayoutToSceneElements, toastFloorPlanLoadError, toastFloorPlanSaveError, unsubscribeShopFloorPlanCodeQuery };
|
|
81
|
+
export { PISELL_RESERVATION_FLOOR_PLAN_CODE, buildDefaultReservationFloorPlanPostBody, ensureShopFloorPlanByCode, putShopFloorPlan, 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, defaultReservationTableRows, getDefaultReservationFloorMapConfig, getReservationDataSourceFormColumns, getReservationFloorMapShellConfig, mergeFloorMapElementKindCategoriesWithDefaults, mergeFloorMapElementKindsWithDefaults };
|
|
930
|
+
export { RESERVATION_BOUND_ROUND_TABLE_ELEMENT_KIND, RESERVATION_BOUND_TABLE_ELEMENT_KIND, applyReservationFloorMapLiveLabels, defaultReservationSceneElements, defaultReservationTableRows, getDefaultReservationFloorMapConfig, getReservationDataSourceFormColumns, getReservationFloorMapShellConfig, mergeFloorMapElementKindCategoriesWithDefaults, mergeFloorMapElementKindsWithDefaults };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "./serve/formResourcePage.js";
|
|
2
|
+
import "./floorRoomCard/mapRowToFloorRoomCardData.js";
|
|
3
|
+
import "./floorRoomCard/ReservationFloorRoomCard.js";
|
|
4
|
+
import "./floorMap/reservationMock.js";
|
|
5
|
+
import "./floorMap/floorPlanApi.js";
|
|
6
|
+
import "./reservationConstants.js";
|
|
7
|
+
import "./data/bookingToReservationTables.js";
|
|
8
|
+
import "./data/formResourceToReservationTables.js";
|
|
9
|
+
import "./data/salesEmbeddedResourceToTableRows.js";
|
|
10
|
+
import "./floorMap/reservationCards.js";
|
|
11
|
+
import "./PisellReservation.js";
|
|
12
|
+
import "./PisellReservationBookingPage.js";
|
|
13
|
+
import "./PisellVenueControlPage.js";
|
|
14
|
+
import "./PisellVenueWallPage.js";
|
|
15
|
+
import "./PisellReservationTablePage.js";
|
|
16
|
+
import "./components/SelectFloorMapResourceDialog.js";
|
|
17
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import timezonePlugin from "dayjs/plugin/timezone";
|
|
4
|
+
import utcPlugin from "dayjs/plugin/utc";
|
|
5
5
|
//#region src/plus/saasDevice/devicePasscodes/model.ts
|
|
6
|
-
dayjs.extend(
|
|
7
|
-
dayjs.extend(
|
|
6
|
+
dayjs.extend(utcPlugin);
|
|
7
|
+
dayjs.extend(timezonePlugin);
|
|
8
8
|
const INITIAL_DEVICE_PASSCODE_STATE = {
|
|
9
9
|
deviceIds: [],
|
|
10
10
|
devicesById: {}
|
|
@@ -13,6 +13,7 @@ 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";
|
|
16
17
|
import locales_default$1 from "./components/LineItem/locales.js";
|
|
17
18
|
import { SaleOrderActionBoundary } from "./actions/index.js";
|
|
18
19
|
import { SaleDetailTemplateRenderer } from "./tmpl/index.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
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 { useSalesSdkBookingContext } from "../../../../salesSdk/context/SalesSdkBookingContext.js";
|
|
4
|
+
import "../../../../salesSdk/index.js";
|
|
4
5
|
import { useMemo } from "react";
|
|
5
6
|
import { useMemoizedFn } from "ahooks";
|
|
6
7
|
//#region src/plus/saleDetail/components/Client/hooks/useClientSelectorProps.ts
|
|
@@ -4,6 +4,7 @@ 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";
|
|
7
8
|
import { invokeLocalReceiptPrint, resolveLocalReceiptPrintModule, resolveSaleDetailOrderIdFromSales } from "./utils.js";
|
|
8
9
|
import { getRemotePrintActions, getWristbandList } from "../../serve.js";
|
|
9
10
|
import { EBizPrintType } from "./types.js";
|
|
@@ -10,6 +10,7 @@ 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";
|
|
13
14
|
import { resolveSaleDetailTempOrder } from "../../utils.js";
|
|
14
15
|
import { getNumericAmount, getSalesHostModule, resolveSaleDetailOrderIdFromSales, resolveSaleDetailOrderIdFromSalesResult, shouldCloseDialogAfterCheckout, updateLocalOrder } from "./utils.js";
|
|
15
16
|
import { deriveSaleOrderSubmitState } from "../../actions/state.js";
|
|
@@ -5,6 +5,7 @@ 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";
|
|
8
9
|
import { resolveSaleDetailTempOrder } from "../../utils.js";
|
|
9
10
|
import React, { memo, useMemo } from "react";
|
|
10
11
|
import { formatAmount, locales } from "@pisell/utils";
|
|
@@ -5,6 +5,7 @@ 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";
|
|
8
9
|
import Base_default from "./Base.js";
|
|
9
10
|
import { resolveSaleDetailOsProps } from "./osProps.js";
|
|
10
11
|
import React, { forwardRef, useImperativeHandle } from "react";
|
|
@@ -1,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { SaleDetailStatusOverview } from "../shared/StatusOverview.js";
|
|
5
6
|
import { DishGroupView } from "./DishGroupView.js";
|
|
6
7
|
import dayjs from "dayjs";
|
|
@@ -1,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { getInternalNotesByScheduleEvent } from "../../serve.js";
|
|
5
6
|
import { TEMPLATE_B_PAY_ACTIONS, TEMPLATE_B_SUMMARY_ACTIONS } from "../../components/DetailActions/configs/index.js";
|
|
6
7
|
import { DetailActions } from "../../components/DetailActions/index.js";
|