@pisell/private-materials 6.12.437 → 6.12.438
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.js +2 -2
- package/build/lowcode/view.js +2 -2
- 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/useBigSaleProductListConfig.js +0 -1
- 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/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.js +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
- package/es/components/venueBookingSales/availability/catalogPreview.js +112 -69
- package/es/components/venueBookingSales/catalogPresentation.js +0 -1
- package/es/components/venueBookingSales/checkout/VenueBookingHolderStep.js +1 -0
- package/es/components/venueBookingSales/checkout/useVenueBookingCheckout.js +1 -0
- package/es/components/venueBookingSales/checkout/useVenueCustomerAccess.js +1 -0
- package/es/components/venueBookingSales/checkout/useVenueKioskCheckout.js +1 -0
- package/es/components/venueBookingSales/extras/VenueExtraDetailModal.js +1 -0
- package/es/components/venueBookingSales/previewPolicy.js +36 -21
- package/es/components/venueBookingSales/useVenueBookingSession.js +1 -0
- package/es/components/venueBookingSales/useVenueCatalog.js +1 -0
- package/es/components/venueBookingSales/useVenueDates.js +3 -1
- 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/pisellReservation/utils/calendarBookingSelection.js +4 -4
- 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/hooks/useSalesSettings.js +10 -5
- 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/walletPassGallery/components/timelineSection/index.js +4 -4
- 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/es/pro/skuDetailModal/flow/calendarEntry.js +2 -2
- package/lib/components/venueBookingSales/availability/catalogPreview.js +112 -69
- package/lib/components/venueBookingSales/previewPolicy.js +36 -21
- package/lib/components/venueBookingSales/useVenueCatalog.js +1 -0
- package/lib/components/venueBookingSales/useVenueDates.js +3 -1
- package/lib/plus/salesSdk/hooks/useSalesSettings.js +12 -6
- package/package.json +4 -4
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +0 -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
|
|
@@ -20,6 +20,7 @@ import { showAddToCartToast } from "../../../../plus/salesSdk/components/showAdd
|
|
|
20
20
|
import { mergeBookingsForDisplay } from "../../../../plus/salesSdk/utils/mergeBookingsForDisplay.js";
|
|
21
21
|
import useSalesSdkGlobalScanHandler from "../../../../plus/salesSdk/hooks/useSalesSdkGlobalScanHandler.js";
|
|
22
22
|
import { useSalesSdkGlobalScanActivity } from "../../../../plus/salesSdk/context/SalesSdkGlobalScanActivityContext.js";
|
|
23
|
+
import "../../../../plus/salesSdk/index.js";
|
|
23
24
|
import { buildBigSaleProductListPreferencesKey, readBigSaleProductListPreferences, readStoredBigSaleProductListPreferences, removeBigSaleProductListPreferences, resolveBigSaleAutoProductListPreferences, writeBigSaleProductListPreferences } from "../../utils/productListPreferences.js";
|
|
24
25
|
import { resolveBigSaleProductDisplayConfig, useBigSaleProductListConfig } from "../../hooks/useBigSaleProductListConfig.js";
|
|
25
26
|
import { showSalesGuardErrorToast } from "../../../../plus/salesSdk/utils/salesGuard.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
|
/**
|
|
@@ -2,7 +2,6 @@ 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";
|
|
6
5
|
import { mergeBigSaleProductListPreferences } from "../utils/productListPreferences.js";
|
|
7
6
|
import { useMemo, useRef } from "react";
|
|
8
7
|
import isEqual from "lodash/isEqual";
|
|
@@ -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 { resolveKioskPlatformSource, resolveKioskPresentation } from "../kioskSale/resolveKioskPresentation.js";
|
|
12
13
|
import { resolveCustomerDetailAppearance } from "../../pro/skuDetailModal/customerDetailPolicy.js";
|
|
13
14
|
import { isVenueKioskRuntime } from "../venueBookingSales/kiosk/customer.js";
|
|
@@ -13,6 +13,7 @@ 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";
|
|
16
17
|
import { usePickSaleDetailContext } from "../../hooks/usePickSaleDetailContext.js";
|
|
17
18
|
import { resolveBigSaleAutoProductListPreferences } from "../../utils/productListPreferences.js";
|
|
18
19
|
import { resolveBigSaleProductDisplayConfig } from "../../hooks/useBigSaleProductListConfig.js";
|
|
@@ -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 { TEMP_ORDER_SYNC_REQUEST_MESSAGE_TYPE, getTempOrderSyncPayload, shouldApplySharedTempOrderPayload } from "../../plus/salesSdk/tempOrderSync.js";
|
|
5
|
+
import "../../plus/salesSdk/index.js";
|
|
5
6
|
import { useEffect, useRef, useState } from "react";
|
|
6
7
|
//#region src/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.tsx
|
|
7
8
|
function createRequestId() {
|
|
@@ -20,7 +20,6 @@ import { useProducts } from "../../hooks/pisellos/useProducts.js";
|
|
|
20
20
|
import { useService } from "../../../booking/info/service/serviceManager/index.js";
|
|
21
21
|
import ProductDisplayAdapter_default from "../ProductDisplayAdapter/ProductDisplayAdapter.js";
|
|
22
22
|
import { resolveProductDisplayConfig } from "../ProductDisplayAdapter/types.js";
|
|
23
|
-
import "../ProductDisplayAdapter/index.js";
|
|
24
23
|
import notAvailable_default from "../notAvailable/index.js";
|
|
25
24
|
import MultiDayTimeSelectModal from "./MultiDayTimeSelectModal.js";
|
|
26
25
|
import dayjs from "dayjs";
|
|
@@ -357,94 +357,137 @@ function prepareCatalogPreview(detail, policy) {
|
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
/** Resolve products locally from the session pool; date OR can stop at its first real witness. */
|
|
360
|
-
function queryCatalogPreview(
|
|
360
|
+
function queryCatalogPreview(_x2, _x3) {
|
|
361
361
|
return _queryCatalogPreview.apply(this, arguments);
|
|
362
362
|
}
|
|
363
363
|
function _queryCatalogPreview() {
|
|
364
364
|
_queryCatalogPreview = _asyncToGenerator(function* (os, input) {
|
|
365
|
+
var _input$resolvePolicy$, _input$resolvePolicy$2, _input$resolvePolicy;
|
|
365
366
|
const result = {
|
|
366
367
|
available: false,
|
|
367
368
|
availability: {}
|
|
368
369
|
};
|
|
370
|
+
let failed = false;
|
|
369
371
|
const current = () => {
|
|
370
372
|
var _input$isCurrent;
|
|
371
|
-
return ((_input$isCurrent = input.isCurrent) === null || _input$isCurrent === void 0 ? void 0 : _input$isCurrent.call(input)) !== false;
|
|
373
|
+
return !failed && ((_input$isCurrent = input.isCurrent) === null || _input$isCurrent === void 0 ? void 0 : _input$isCurrent.call(input)) !== false;
|
|
372
374
|
};
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
375
|
+
const resolvePolicy = (_input$resolvePolicy$ = (_input$resolvePolicy$2 = (_input$resolvePolicy = input.resolvePolicy).createBatch) === null || _input$resolvePolicy$2 === void 0 ? void 0 : _input$resolvePolicy$2.call(_input$resolvePolicy)) !== null && _input$resolvePolicy$ !== void 0 ? _input$resolvePolicy$ : input.resolvePolicy;
|
|
376
|
+
const checkProduct = function() {
|
|
377
|
+
var _ref = _asyncToGenerator(function* (listed) {
|
|
378
|
+
var _listed$id, _detail$id2;
|
|
379
|
+
if (!current()) return;
|
|
380
|
+
const id = (_listed$id = listed.id) !== null && _listed$id !== void 0 ? _listed$id : listed.product_id;
|
|
381
|
+
if (!Number.isSafeInteger(Number(id)) || Number(id) <= 0) return {
|
|
382
|
+
id: String(id),
|
|
383
|
+
state: {
|
|
384
|
+
available: false,
|
|
385
|
+
reasons: ["INVALID_PRODUCT_ID"]
|
|
386
|
+
}
|
|
381
387
|
};
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
388
|
+
if (!input.catalogParams.menu_list_ids.length) throw new PreviewError("PREVIEW_MENU_CONFIGURATION_REQUIRED");
|
|
389
|
+
const detail = input.productsFromSessionSnapshot ? listed : yield input.queries.queryCatalogProductDetail(_objectSpread2(_objectSpread2({}, input.catalogParams), {}, {
|
|
390
|
+
product_id: Number(id),
|
|
391
|
+
schedule_date: input.date,
|
|
392
|
+
with_count: ["bundleGroup", "optionGroup"],
|
|
393
|
+
with_schedule: 1
|
|
394
|
+
}));
|
|
395
|
+
if (!current()) return;
|
|
396
|
+
if (!detail) return {
|
|
397
|
+
id: String(id),
|
|
398
|
+
state: {
|
|
399
|
+
available: false,
|
|
400
|
+
reasons: ["PRODUCT_NOT_IN_MENU"]
|
|
401
|
+
}
|
|
396
402
|
};
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
403
|
+
if (String((_detail$id2 = detail.id) !== null && _detail$id2 !== void 0 ? _detail$id2 : detail.product_id) !== String(id)) return {
|
|
404
|
+
id: String(id),
|
|
405
|
+
state: {
|
|
406
|
+
available: false,
|
|
407
|
+
reasons: ["PRODUCT_MISMATCH"]
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
const preview = prepareCatalogPreview(detail, yield resolvePolicy(detail));
|
|
411
|
+
if (!current()) return;
|
|
412
|
+
const state = {
|
|
401
413
|
available: false,
|
|
402
|
-
reasons: [
|
|
414
|
+
reasons: [...preview.reasonCodes]
|
|
403
415
|
};
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
available: false,
|
|
410
|
-
reasons: [...preview.reasonCodes]
|
|
411
|
-
};
|
|
412
|
-
result.availability[String(id)] = state;
|
|
413
|
-
if (preview.status !== "ready" && preview.status !== "requires-configuration") continue;
|
|
414
|
-
for (const candidate of preview.candidates) {
|
|
415
|
-
let projection;
|
|
416
|
-
try {
|
|
417
|
-
projection = yield prepareBookingProjection({
|
|
418
|
-
os,
|
|
419
|
-
mode: input.mode || "ticket",
|
|
420
|
-
date: input.date,
|
|
421
|
-
product: candidate.product,
|
|
422
|
-
quantity: 1
|
|
423
|
-
}, { projectionDateRange: input.projectionDateRange });
|
|
416
|
+
if (preview.status !== "ready" && preview.status !== "requires-configuration") return {
|
|
417
|
+
id: String(id),
|
|
418
|
+
state
|
|
419
|
+
};
|
|
420
|
+
for (const candidate of preview.candidates) {
|
|
424
421
|
if (!current()) break;
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
422
|
+
let projection;
|
|
423
|
+
try {
|
|
424
|
+
projection = yield prepareBookingProjection({
|
|
425
|
+
os,
|
|
426
|
+
mode: input.mode || "ticket",
|
|
427
|
+
date: input.date,
|
|
428
|
+
product: candidate.product,
|
|
429
|
+
quantity: 1
|
|
430
|
+
}, { projectionDateRange: input.projectionDateRange });
|
|
431
|
+
if (!current()) break;
|
|
432
|
+
const usable = projection.times.filter((time) => selectable(time, candidate.partySize));
|
|
433
|
+
if (usable.some((time) => {
|
|
434
|
+
const groups = time.requirementGroups || [];
|
|
435
|
+
return groups.every((group) => Math.max(group.required ? 1 : 0, group.min || 0) <= 1 && (!(group.required || group.min > 0) || group.max >= 1 && group.options.some((option) => selectable(option, candidate.partySize)))) && (input.mode !== "party" || groups.some((group) => group.max >= 1 && group.options.some((option) => selectable(option, candidate.partySize))));
|
|
436
|
+
})) {
|
|
437
|
+
if (preview.status === "requires-configuration") state.requiresConfiguration = true;
|
|
438
|
+
else state.available = true;
|
|
439
|
+
state.reasons = [];
|
|
440
|
+
break;
|
|
441
|
+
}
|
|
442
|
+
state.reasons.push(...projection.times.flatMap((time) => time.reasonCodes || []));
|
|
443
|
+
if (!state.reasons.length) state.reasons.push(usable.length ? "UNSUPPORTED_RESOURCE_GROUP" : "NO_AVAILABLE_BOOKING");
|
|
444
|
+
} catch (error) {
|
|
445
|
+
if (error instanceof BookingSelectionError) state.reasons.push(...error.reasonCodes);
|
|
446
|
+
else throw error;
|
|
447
|
+
} finally {
|
|
448
|
+
releaseProjection(os, projection);
|
|
434
449
|
}
|
|
435
|
-
state.reasons.push(...projection.times.flatMap((time) => time.reasonCodes || []));
|
|
436
|
-
if (!state.reasons.length) state.reasons.push(usable.length ? "UNSUPPORTED_RESOURCE_GROUP" : "NO_AVAILABLE_BOOKING");
|
|
437
|
-
} catch (error) {
|
|
438
|
-
if (error instanceof BookingSelectionError) state.reasons.push(...error.reasonCodes);
|
|
439
|
-
else throw error;
|
|
440
|
-
} finally {
|
|
441
|
-
releaseProjection(os, projection);
|
|
442
450
|
}
|
|
451
|
+
state.reasons = [...new Set(state.reasons)];
|
|
452
|
+
return {
|
|
453
|
+
id: String(id),
|
|
454
|
+
state,
|
|
455
|
+
evaluated: true
|
|
456
|
+
};
|
|
457
|
+
});
|
|
458
|
+
return function checkProduct(_x) {
|
|
459
|
+
return _ref.apply(this, arguments);
|
|
460
|
+
};
|
|
461
|
+
}();
|
|
462
|
+
const states = new Array(input.products.length);
|
|
463
|
+
let nextIndex = 0;
|
|
464
|
+
const worker = function() {
|
|
465
|
+
var _ref2 = _asyncToGenerator(function* () {
|
|
466
|
+
while (current() && nextIndex < input.products.length) {
|
|
467
|
+
const index = nextIndex++;
|
|
468
|
+
try {
|
|
469
|
+
const entry = yield checkProduct(input.products[index]);
|
|
470
|
+
states[index] = entry;
|
|
471
|
+
if (input.stopAtFirstAvailable && ((entry === null || entry === void 0 ? void 0 : entry.state.available) || (entry === null || entry === void 0 ? void 0 : entry.state.requiresConfiguration))) return;
|
|
472
|
+
} catch (error) {
|
|
473
|
+
failed = true;
|
|
474
|
+
throw error;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
return function worker() {
|
|
479
|
+
return _ref2.apply(this, arguments);
|
|
480
|
+
};
|
|
481
|
+
}();
|
|
482
|
+
const concurrency = !input.stopAtFirstAvailable && input.concurrency === 2 ? 2 : 1;
|
|
483
|
+
yield Promise.all(Array.from({ length: Math.min(concurrency, input.products.length) }, () => worker()));
|
|
484
|
+
for (const entry of states) {
|
|
485
|
+
if (!entry) continue;
|
|
486
|
+
result.availability[entry.id] = entry.state;
|
|
487
|
+
if (entry.evaluated) {
|
|
488
|
+
result.available || (result.available = entry.state.available);
|
|
489
|
+
result.requiresConfiguration || (result.requiresConfiguration = entry.state.requiresConfiguration);
|
|
443
490
|
}
|
|
444
|
-
state.reasons = [...new Set(state.reasons)];
|
|
445
|
-
result.available || (result.available = state.available);
|
|
446
|
-
result.requiresConfiguration || (result.requiresConfiguration = state.requiresConfiguration);
|
|
447
|
-
if ((result.available || result.requiresConfiguration) && input.stopAtFirstAvailable) break;
|
|
448
491
|
}
|
|
449
492
|
return result;
|
|
450
493
|
});
|
|
@@ -3,7 +3,6 @@ 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";
|
|
7
6
|
import { DEFAULT_BIG_SALE_PRODUCT_LIST_PREFERENCES } from "../bigSale/utils/productListPreferences.js";
|
|
8
7
|
import { translate } from "../../plus/venueBookingDesign/i18n.js";
|
|
9
8
|
import { ProductCard as ProductCard$1 } from "../../plus/venueBookingDesign/shared/ProductCard.js";
|
|
@@ -7,6 +7,7 @@ import { useSalesSdkHolder } from "../../../plus/salesSdk/context/SalesSdkHolder
|
|
|
7
7
|
import { assignHolderToCartLine } from "../../../plus/salesSdk/utils/assignHolderToCartLine.js";
|
|
8
8
|
import { resolveLineByProductUid } from "../../../plus/salesSdk/utils/holderSubmitValidation.js";
|
|
9
9
|
import { createOpenCustomerAuthHost } from "../../../plus/salesSdk/hosts/createOpenCustomerAuthHost.js";
|
|
10
|
+
import "../../../plus/salesSdk/index.js";
|
|
10
11
|
import { isProgressTarget } from "../../../plus/venueBookingDesign/shared/booking-progress.js";
|
|
11
12
|
import { useBookingProgress } from "../../../plus/venueBookingDesign/shared/useBookingProgress.js";
|
|
12
13
|
import { Button as Button$1 } from "../../../plus/venueBookingDesign/shared/Controls.js";
|
|
@@ -7,6 +7,7 @@ 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";
|
|
10
11
|
import { isSalesOrderSubmitSuccess } from "../../../plus/saleDetail/components/DetailActions/utils.js";
|
|
11
12
|
import { isH5ZeroAmountValue, toFiniteKioskAmount } from "../../bigSale/templates/Kiosk/zeroAmountCheckout.js";
|
|
12
13
|
import { resolveKioskDeferredSubmission } from "../../bigSale/templates/Kiosk/deferredCheckout.js";
|
|
@@ -2,6 +2,7 @@ import { _asyncToGenerator } from "../../../_virtual/_@oxc-project_runtime@0.122
|
|
|
2
2
|
import useSalesUserLogin from "../../../hooks/useSalesUserLogin.js";
|
|
3
3
|
import { useSalesSdkHostBridges } from "../../../plus/salesSdk/context/SalesSdkHostBridgesContext.js";
|
|
4
4
|
import { createOpenCustomerAuthHost } from "../../../plus/salesSdk/hosts/createOpenCustomerAuthHost.js";
|
|
5
|
+
import "../../../plus/salesSdk/index.js";
|
|
5
6
|
import { orderIdentity } from "../presentation.js";
|
|
6
7
|
import { ensureVenueKioskCustomer, isVenueKioskRuntime, venueKioskCustomerAuthRequest } from "../kiosk/customer.js";
|
|
7
8
|
import { confirmationErrorMessage } from "./errorMessage.js";
|
|
@@ -3,6 +3,7 @@ import { _asyncToGenerator } from "../../../_virtual/_@oxc-project_runtime@0.122
|
|
|
3
3
|
import useInitLocalesOnce from "../../../hooks/useInitLocalesOnce.js";
|
|
4
4
|
import { isHolderConfirmCancelled } from "../../../plus/salesSdk/holderConfirm/createHolderConfirmBridge.js";
|
|
5
5
|
import { useSalesSdkBusinessAvailability } from "../../../plus/salesSdk/context/SalesSdkBusinessAvailabilityContext.js";
|
|
6
|
+
import "../../../plus/salesSdk/index.js";
|
|
6
7
|
import { usePaymentScreenProtection } from "../../checkout/paymentRuntime/usePaymentScreenProtection.js";
|
|
7
8
|
import { isSalesOrderSubmitSuccess } from "../../../plus/saleDetail/components/DetailActions/utils.js";
|
|
8
9
|
import locales_default from "../../bigSale/locales/index.js";
|
|
@@ -10,6 +10,7 @@ import immersive from "../../../pro/skuDetailModal/appearances/immersive/index.j
|
|
|
10
10
|
import { resolveEffectiveHolderConfig } from "../../../plus/salesSdk/utils/productHolderConfig.js";
|
|
11
11
|
import { useSalesSdkHostBridges } from "../../../plus/salesSdk/context/SalesSdkHostBridgesContext.js";
|
|
12
12
|
import { createOpenCustomerAuthHost } from "../../../plus/salesSdk/hosts/createOpenCustomerAuthHost.js";
|
|
13
|
+
import "../../../plus/salesSdk/index.js";
|
|
13
14
|
import { localizedText, orderIdentity } from "../presentation.js";
|
|
14
15
|
import { ensureVenueKioskCustomer, isVenueKioskRuntime, venueKioskCustomerId } from "../kiosk/customer.js";
|
|
15
16
|
import { ProductDescription } from "../../../plus/venueBookingDesign/shared/ProductDescription.js";
|
|
@@ -8,36 +8,51 @@ function previewSalesSettingsKey(settings) {
|
|
|
8
8
|
return Object.fromEntries(Object.keys(value).sort().map((key) => [key, value[key]]));
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
/**
|
|
11
|
+
/** Independent actions stay fresh; a directory/calendar request owns one snapshot. */
|
|
12
12
|
function createPreviewPolicyResolver(input) {
|
|
13
13
|
let pending;
|
|
14
|
-
|
|
14
|
+
const readSnapshot = () => {
|
|
15
|
+
if (pending) return pending;
|
|
16
|
+
const request = Promise.resolve().then(_asyncToGenerator(function* () {
|
|
17
|
+
const settings = yield input.ensureSalesSettings();
|
|
18
|
+
if (!settings) throw new Error("The booking sales settings are unavailable.");
|
|
19
|
+
return {
|
|
20
|
+
settings,
|
|
21
|
+
platform: input.getPlatform()
|
|
22
|
+
};
|
|
23
|
+
}));
|
|
24
|
+
pending = request;
|
|
25
|
+
const clear = () => {
|
|
26
|
+
if (pending === request) pending = void 0;
|
|
27
|
+
};
|
|
28
|
+
request.then(clear, clear);
|
|
29
|
+
return request;
|
|
30
|
+
};
|
|
31
|
+
const resolver = (read) => function() {
|
|
15
32
|
var _ref = _asyncToGenerator(function* (product) {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
requiredOptionValidation: settings.product.checkRequiredOptions,
|
|
27
|
-
overSold: resolveSkuSelectionOverSold({
|
|
28
|
-
productOverSold: product.over_sold,
|
|
29
|
-
runtimePolicy
|
|
30
|
-
}) === 1,
|
|
33
|
+
const { settings, platform } = yield read();
|
|
34
|
+
const runtimePolicy = {
|
|
35
|
+
source: "picoding",
|
|
36
|
+
settings,
|
|
37
|
+
platform
|
|
38
|
+
};
|
|
39
|
+
return {
|
|
40
|
+
requiredOptionValidation: settings.product.checkRequiredOptions,
|
|
41
|
+
overSold: resolveSkuSelectionOverSold({
|
|
42
|
+
productOverSold: product.over_sold,
|
|
31
43
|
runtimePolicy
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
44
|
+
}) === 1,
|
|
45
|
+
runtimePolicy
|
|
46
|
+
};
|
|
36
47
|
});
|
|
37
48
|
return function(_x) {
|
|
38
49
|
return _ref.apply(this, arguments);
|
|
39
50
|
};
|
|
40
51
|
}();
|
|
52
|
+
return Object.assign(resolver(readSnapshot), { createBatch() {
|
|
53
|
+
let snapshot;
|
|
54
|
+
return resolver(() => snapshot || (snapshot = readSnapshot()));
|
|
55
|
+
} });
|
|
41
56
|
}
|
|
42
57
|
//#endregion
|
|
43
58
|
export { createPreviewPolicyResolver, previewSalesSettingsKey };
|
|
@@ -11,6 +11,7 @@ import { useSalesSdkHostBridges } from "../../plus/salesSdk/context/SalesSdkHost
|
|
|
11
11
|
import { formatTempOrderSettlementAmount } from "../../plus/multiCurrencySettlement/index.js";
|
|
12
12
|
import { useSalesSdkBusinessAvailability } from "../../plus/salesSdk/context/SalesSdkBusinessAvailabilityContext.js";
|
|
13
13
|
import { pickIdentity } from "../../plus/salesSdk/utils/identity.js";
|
|
14
|
+
import "../../plus/salesSdk/index.js";
|
|
14
15
|
import { resolveEffectiveSaleDetailAmountDue } from "../../plus/saleDetail/utils.js";
|
|
15
16
|
import { useBookingUI } from "../../plus/venueBookingDesign/context.js";
|
|
16
17
|
import { useBookingProgress } from "../../plus/venueBookingDesign/shared/useBookingProgress.js";
|
|
@@ -111,6 +111,7 @@ function useVenueCatalog({ os, ready, catalog, date, datetime, customerId, scope
|
|
|
111
111
|
const preview = yield queryCatalogPreview(os, _objectSpread2(_objectSpread2({
|
|
112
112
|
products,
|
|
113
113
|
productsFromSessionSnapshot: true,
|
|
114
|
+
concurrency: 2,
|
|
114
115
|
date,
|
|
115
116
|
mode,
|
|
116
117
|
resolvePolicy,
|
|
@@ -75,6 +75,7 @@ function useVenueDates(input) {
|
|
|
75
75
|
const inFlight = useRef(0);
|
|
76
76
|
const currentPump = useRef();
|
|
77
77
|
useEffect(() => {
|
|
78
|
+
var _request$resolvePolic, _request$resolvePolic2, _request$resolvePolic3;
|
|
78
79
|
let active = true;
|
|
79
80
|
const isCurrent = () => active && currentRequest.current === request;
|
|
80
81
|
setSnapshot({
|
|
@@ -84,6 +85,7 @@ function useVenueDates(input) {
|
|
|
84
85
|
if (!request.ready || !request.menuIds.length) return () => {
|
|
85
86
|
active = false;
|
|
86
87
|
};
|
|
88
|
+
const resolvePolicy = (_request$resolvePolic = (_request$resolvePolic2 = (_request$resolvePolic3 = request.resolvePolicy).createBatch) === null || _request$resolvePolic2 === void 0 ? void 0 : _request$resolvePolic2.call(_request$resolvePolic3)) !== null && _request$resolvePolic !== void 0 ? _request$resolvePolic : request.resolvePolicy;
|
|
87
89
|
const publish = (date, state) => {
|
|
88
90
|
if (!isCurrent()) return;
|
|
89
91
|
work.states[date] = state;
|
|
@@ -112,7 +114,7 @@ function useVenueDates(input) {
|
|
|
112
114
|
queries: request.queries,
|
|
113
115
|
projectionDateRange: resolvePreviewProjectionDateRange(date, projectionDates),
|
|
114
116
|
catalogParams: _objectSpread2({ menu_list_ids: request.menuIds }, request.customerId ? { customer_id: request.customerId } : {}),
|
|
115
|
-
resolvePolicy
|
|
117
|
+
resolvePolicy,
|
|
116
118
|
isCurrent,
|
|
117
119
|
stopAtFirstAvailable: true
|
|
118
120
|
});
|
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";
|
|
@@ -153,6 +154,7 @@ import PisellVenueControlPage from "./plus/pisellReservation/PisellVenueControlP
|
|
|
153
154
|
import PisellVenueWallPage from "./plus/pisellReservation/PisellVenueWallPage.js";
|
|
154
155
|
import PisellReservationTablePage from "./plus/pisellReservation/PisellReservationTablePage.js";
|
|
155
156
|
import SelectFloorMapResourceDialog from "./plus/pisellReservation/components/SelectFloorMapResourceDialog.js";
|
|
157
|
+
import "./plus/pisellReservation/index.js";
|
|
156
158
|
import { PisellTopology, PisellTopologyCore } from "./plus/pisellTopology/PisellTopology.js";
|
|
157
159
|
import cupProject_default from "./components/ecocup/cupProject/index.js";
|
|
158
160
|
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,9 +1,9 @@
|
|
|
1
1
|
import dayjs from "dayjs";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import utc from "dayjs/plugin/utc";
|
|
3
|
+
import timezone from "dayjs/plugin/timezone";
|
|
4
4
|
//#region src/plus/pisellReservation/utils/calendarBookingSelection.ts
|
|
5
|
-
dayjs.extend(
|
|
6
|
-
dayjs.extend(
|
|
5
|
+
dayjs.extend(utc);
|
|
6
|
+
dayjs.extend(timezone);
|
|
7
7
|
/** Resolve the same shop clock used by the POS host; previews use the device clock. */
|
|
8
8
|
function resolveReservationTimeZone(utils) {
|
|
9
9
|
var _utils$getStore$getSt, _utils$getStore, _utils$getStore$getSt2, _utils$store, _utils$store$getState, _utils$getApp, _utils$getApp$getStor, _utils$getApp$getStor2, _core$tenant, _core$core, _core$core2, _state$core, _state$core2, _utils$getData, _state$global, _state$global2, _state$global3;
|
|
@@ -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 utc from "dayjs/plugin/utc";
|
|
4
|
+
import timezone from "dayjs/plugin/timezone";
|
|
5
5
|
//#region src/plus/saasDevice/devicePasscodes/model.ts
|
|
6
|
-
dayjs.extend(
|
|
7
|
-
dayjs.extend(
|
|
6
|
+
dayjs.extend(utc);
|
|
7
|
+
dayjs.extend(timezone);
|
|
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";
|
|
@@ -2,6 +2,7 @@ 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";
|
|
5
6
|
import { useMemo } from "react";
|
|
6
7
|
import { useMemoizedFn } from "ahooks";
|
|
7
8
|
//#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";
|