@pisell/private-materials 6.3.147 → 6.3.150
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +153 -145
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.js +10 -10
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/hooks.js +27 -20
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.js +6 -3
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +0 -1
- package/es/components/ecocup/components/CupActionList/index.d.ts +0 -1
- package/es/components/ecocup/components/CupActionModal/index.d.ts +0 -1
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +0 -1
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -1
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +0 -1
- package/es/components/ecocup/components/SearchBar/index.d.ts +0 -1
- package/es/components/ecocup/components/SettingModal/index.d.ts +0 -1
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +0 -1
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +1 -0
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/venueBooking/context.js +17 -12
- package/es/components/venueBooking/index.js +50 -12
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/plus/orderList/components/HandleActions.d.ts +0 -1
- package/es/plus/orderList/components/QuickFilter.d.ts +0 -1
- package/es/plus/orderList/components/Reset.d.ts +0 -1
- package/es/plus/orderList/components/Toolbar.d.ts +0 -1
- package/es/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
- package/es/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +0 -1
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +0 -1
- package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
- package/es/plus/pisellSalesManagement/config/booking.d.ts +0 -1
- package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -1
- package/es/plus/saasCreateOrganization/index.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/hooks.js +8 -1
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.js +2 -1
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/CupActionList/index.d.ts +0 -1
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +0 -1
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +0 -1
- package/lib/components/ecocup/components/SearchBar/index.d.ts +0 -1
- package/lib/components/ecocup/components/SettingModal/index.d.ts +0 -1
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +0 -1
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +1 -0
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/venueBooking/context.js +4 -2
- package/lib/components/venueBooking/index.js +51 -7
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/plus/orderList/components/HandleActions.d.ts +0 -1
- package/lib/plus/orderList/components/QuickFilter.d.ts +0 -1
- package/lib/plus/orderList/components/Reset.d.ts +0 -1
- package/lib/plus/orderList/components/Toolbar.d.ts +0 -1
- package/lib/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
- package/lib/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +0 -1
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +0 -1
- package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +0 -1
- package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +0 -1
- package/lib/plus/saasCreateOrganization/index.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -1
- package/package.json +1 -1
- package/build/lowcode.zip +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
4
3
|
order: any;
|
|
@@ -30,11 +29,4 @@ export interface PayGroup {
|
|
|
30
29
|
_order: any;
|
|
31
30
|
front_order_uuid?: string;
|
|
32
31
|
}
|
|
33
|
-
export declare const Provider:
|
|
34
|
-
state: FormState;
|
|
35
|
-
} & {
|
|
36
|
-
dispatch: (params: {
|
|
37
|
-
type: string;
|
|
38
|
-
payload: any;
|
|
39
|
-
}) => void;
|
|
40
|
-
}>;
|
|
32
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
3
2
|
import dayjs from "dayjs";
|
|
4
3
|
export interface FormState {
|
|
@@ -69,11 +68,4 @@ export interface FormState {
|
|
|
69
68
|
};
|
|
70
69
|
setGlobalState: Function | null;
|
|
71
70
|
}
|
|
72
|
-
export declare const Provider:
|
|
73
|
-
state: FormState;
|
|
74
|
-
} & {
|
|
75
|
-
dispatch: (params: {
|
|
76
|
-
type: string;
|
|
77
|
-
payload: any;
|
|
78
|
-
}) => void;
|
|
79
|
-
}>;
|
|
71
|
+
export declare const Provider: any, Context: any;
|
|
@@ -751,7 +751,7 @@ export function VenueBookingProvider(_ref) {
|
|
|
751
751
|
|
|
752
752
|
/** 结账步骤提交订单(调用 OS venueBooking.submitOrder) */
|
|
753
753
|
var submitOrder = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
754
|
-
var _result$data, _viewModel$summary, result, orderId, totalAmount, _otherParams$openData
|
|
754
|
+
var _result$data, _viewModel$summary, result, orderId, totalAmount, otherParams, _otherParams$openData;
|
|
755
755
|
return _regeneratorRuntime().wrap(function _callee9$(_context10) {
|
|
756
756
|
while (1) switch (_context10.prev = _context10.next) {
|
|
757
757
|
case 0:
|
|
@@ -783,11 +783,11 @@ export function VenueBookingProvider(_ref) {
|
|
|
783
783
|
console.warn('[venueBooking] submitOrder succeeded but order_id is missing', result);
|
|
784
784
|
return _context10.abrupt("return");
|
|
785
785
|
case 15:
|
|
786
|
-
|
|
787
|
-
|
|
786
|
+
otherParams = getOtherParams(venueBookingModule);
|
|
787
|
+
if (!(typeof (utils === null || utils === void 0 ? void 0 : utils.action) === 'function' && otherParams !== null && otherParams !== void 0 && otherParams.openData['sale.require_payment_on_submit'])) {
|
|
788
|
+
_context10.next = 22;
|
|
788
789
|
break;
|
|
789
790
|
}
|
|
790
|
-
otherParams = getOtherParams(venueBookingModule); // 判断:如果订单金额为 0,或者没有开启支付方式,则直接跳成功页
|
|
791
791
|
if (!(totalAmount === 0 || (otherParams === null || otherParams === void 0 || (_otherParams$openData = otherParams.openData['checkout.checkout_options']) === null || _otherParams$openData === void 0 ? void 0 : _otherParams$openData.length) === 0)) {
|
|
792
792
|
_context10.next = 19;
|
|
793
793
|
break;
|
|
@@ -802,26 +802,31 @@ export function VenueBookingProvider(_ref) {
|
|
|
802
802
|
},
|
|
803
803
|
callback: function callback(e) {}
|
|
804
804
|
});
|
|
805
|
-
|
|
806
|
-
_context10.next = 26;
|
|
805
|
+
_context10.next = 23;
|
|
807
806
|
break;
|
|
808
807
|
case 22:
|
|
809
|
-
|
|
808
|
+
// 跳转到订单详情
|
|
809
|
+
location.replace("/order/details?id=".concat(orderId));
|
|
810
|
+
case 23:
|
|
811
|
+
_context10.next = 29;
|
|
812
|
+
break;
|
|
813
|
+
case 25:
|
|
814
|
+
_context10.prev = 25;
|
|
810
815
|
_context10.t0 = _context10["catch"](2);
|
|
811
816
|
message.error({
|
|
812
817
|
content: getSubmitOrderErrorMessage(_context10.t0),
|
|
813
818
|
duration: 2
|
|
814
819
|
});
|
|
815
820
|
console.warn('[venueBooking] submitOrder failed', _context10.t0);
|
|
816
|
-
case 26:
|
|
817
|
-
_context10.prev = 26;
|
|
818
|
-
setIsSubmittingOrder(false);
|
|
819
|
-
return _context10.finish(26);
|
|
820
821
|
case 29:
|
|
822
|
+
_context10.prev = 29;
|
|
823
|
+
setIsSubmittingOrder(false);
|
|
824
|
+
return _context10.finish(29);
|
|
825
|
+
case 32:
|
|
821
826
|
case "end":
|
|
822
827
|
return _context10.stop();
|
|
823
828
|
}
|
|
824
|
-
}, _callee9, null, [[2,
|
|
829
|
+
}, _callee9, null, [[2, 25, 29, 32]]);
|
|
825
830
|
})), [isSubmittingOrder, venueBookingModule, refreshViewModel, utils, viewModel === null || viewModel === void 0 || (_viewModel$summary2 = viewModel.summary) === null || _viewModel$summary2 === void 0 ? void 0 : _viewModel$summary2.total_amount]);
|
|
826
831
|
|
|
827
832
|
/** 带登录门禁的提交订单入口 */
|
|
@@ -15,6 +15,34 @@ import { VenueBookingProvider } from "./context";
|
|
|
15
15
|
import Content from "./components/Content";
|
|
16
16
|
import { normalizeEntryContext } from "./hooks";
|
|
17
17
|
import localeTexts from "./locales";
|
|
18
|
+
function getViewportHeight() {
|
|
19
|
+
var _window$visualViewpor;
|
|
20
|
+
if (typeof window === 'undefined') return undefined;
|
|
21
|
+
var visualViewportHeight = (_window$visualViewpor = window.visualViewport) === null || _window$visualViewpor === void 0 ? void 0 : _window$visualViewpor.height;
|
|
22
|
+
if (visualViewportHeight && visualViewportHeight > 0) return Math.round(visualViewportHeight);
|
|
23
|
+
if (window.innerHeight > 0) return window.innerHeight;
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
function getViewportHeightFallback() {
|
|
27
|
+
var _CSS$supports, _CSS, _CSS$supports2, _CSS2;
|
|
28
|
+
if (typeof CSS !== 'undefined' && (_CSS$supports = (_CSS = CSS).supports) !== null && _CSS$supports !== void 0 && _CSS$supports.call(_CSS, 'height', '100dvh')) return '100dvh';
|
|
29
|
+
if (typeof CSS !== 'undefined' && (_CSS$supports2 = (_CSS2 = CSS).supports) !== null && _CSS$supports2 !== void 0 && _CSS$supports2.call(_CSS2, 'height', '100svh')) return '100svh';
|
|
30
|
+
return '100%';
|
|
31
|
+
}
|
|
32
|
+
function getViewportStyle(viewportHeight) {
|
|
33
|
+
if (viewportHeight === undefined) {
|
|
34
|
+
var fallbackHeight = getViewportHeightFallback();
|
|
35
|
+
return {
|
|
36
|
+
height: fallbackHeight,
|
|
37
|
+
minHeight: fallbackHeight
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'--vb-viewport-height': "".concat(viewportHeight, "px"),
|
|
42
|
+
height: 'var(--vb-viewport-height)',
|
|
43
|
+
minHeight: 'var(--vb-viewport-height)'
|
|
44
|
+
};
|
|
45
|
+
}
|
|
18
46
|
|
|
19
47
|
/** 场地预订主组件 */
|
|
20
48
|
function VenueBooking(props) {
|
|
@@ -24,28 +52,38 @@ function VenueBooking(props) {
|
|
|
24
52
|
locales.init(localeTexts, (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');
|
|
25
53
|
|
|
26
54
|
// h-full 依赖父链上每一层都有明确高度,但宿主环境(如 KeepAlive wrapper)可能打断此链。
|
|
27
|
-
//
|
|
28
|
-
var _useState = useState(
|
|
55
|
+
// iOS Chrome 的 100vh/innerHeight 容易受地址栏影响,优先用 visualViewport 的动态可见高度。
|
|
56
|
+
var _useState = useState(getViewportHeight),
|
|
29
57
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30
58
|
viewportHeight = _useState2[0],
|
|
31
59
|
setViewportHeight = _useState2[1];
|
|
32
60
|
useEffect(function () {
|
|
33
|
-
|
|
34
|
-
|
|
61
|
+
var _window$visualViewpor2, _window$visualViewpor3;
|
|
62
|
+
var frameId;
|
|
63
|
+
function updateViewportHeight() {
|
|
64
|
+
if (frameId !== undefined) window.cancelAnimationFrame(frameId);
|
|
65
|
+
frameId = window.requestAnimationFrame(function () {
|
|
66
|
+
frameId = undefined;
|
|
67
|
+
setViewportHeight(getViewportHeight());
|
|
68
|
+
});
|
|
35
69
|
}
|
|
36
|
-
|
|
37
|
-
window.addEventListener('resize',
|
|
70
|
+
updateViewportHeight();
|
|
71
|
+
window.addEventListener('resize', updateViewportHeight);
|
|
72
|
+
window.addEventListener('orientationchange', updateViewportHeight);
|
|
73
|
+
(_window$visualViewpor2 = window.visualViewport) === null || _window$visualViewpor2 === void 0 || _window$visualViewpor2.addEventListener('resize', updateViewportHeight);
|
|
74
|
+
(_window$visualViewpor3 = window.visualViewport) === null || _window$visualViewpor3 === void 0 || _window$visualViewpor3.addEventListener('scroll', updateViewportHeight);
|
|
38
75
|
return function () {
|
|
39
|
-
|
|
76
|
+
var _window$visualViewpor4, _window$visualViewpor5;
|
|
77
|
+
if (frameId !== undefined) window.cancelAnimationFrame(frameId);
|
|
78
|
+
window.removeEventListener('resize', updateViewportHeight);
|
|
79
|
+
window.removeEventListener('orientationchange', updateViewportHeight);
|
|
80
|
+
(_window$visualViewpor4 = window.visualViewport) === null || _window$visualViewpor4 === void 0 || _window$visualViewpor4.removeEventListener('resize', updateViewportHeight);
|
|
81
|
+
(_window$visualViewpor5 = window.visualViewport) === null || _window$visualViewpor5 === void 0 || _window$visualViewpor5.removeEventListener('scroll', updateViewportHeight);
|
|
40
82
|
};
|
|
41
83
|
}, []);
|
|
42
84
|
return /*#__PURE__*/React.createElement("div", {
|
|
43
85
|
className: "venue-booking-scope overflow-x-hidden overscroll-none bg-[#f5f5f3] text-zinc-900",
|
|
44
|
-
style: viewportHeight
|
|
45
|
-
height: viewportHeight
|
|
46
|
-
} : {
|
|
47
|
-
height: '100vh'
|
|
48
|
-
}
|
|
86
|
+
style: getViewportStyle(viewportHeight)
|
|
49
87
|
}, /*#__PURE__*/React.createElement(VenueBookingProvider, {
|
|
50
88
|
entryContext: entryContext
|
|
51
89
|
}, /*#__PURE__*/React.createElement(Content, null)));
|
|
@@ -6,8 +6,8 @@ export declare const RESERVATION_DEFAULT_FLOOR_PLAN_ID = 1;
|
|
|
6
6
|
export type { PostShopFloorPlanBody, PutShopFloorPlanBody, ShopFloorPlanByCodeRequestOptions, ShopFloorPlanDetail, ShopFloorPlanLayoutItem, };
|
|
7
7
|
export { buildFloorPlanPutBody, floorMapSavedConfigToRemotePatch, inferCanvasSizeFromScene, mergeFloorPlanViewRemote, parseLayoutFieldToViewConfigPatch, pickFloorPlanDetail, sceneElementsToShopLayout, viewConfigToLayoutPayload, isShopFloorPlanNotFoundResponse, isHttpNotFoundError, } from '@pisell/materials';
|
|
8
8
|
export declare function isFloorPlanDuplicateCodeError(err: unknown): boolean;
|
|
9
|
-
export declare const getShopFloorPlanByCode: (code: string, subscribe?:
|
|
10
|
-
export declare const postShopFloorPlan: (body: PostShopFloorPlanBody) => Promise<
|
|
9
|
+
export declare const getShopFloorPlanByCode: (code: string, subscribe?: ShopFloorPlanByCodeRequestOptions | undefined) => Promise<ShopFloorPlanDetail | null>;
|
|
10
|
+
export declare const postShopFloorPlan: (body: PostShopFloorPlanBody) => Promise<ShopFloorPlanDetail | null>;
|
|
11
11
|
export declare const putShopFloorPlan: (id: number, body: PutShopFloorPlanBody) => Promise<unknown>;
|
|
12
12
|
export declare const unsubscribeShopFloorPlanCodeQuery: (subscriberId: string) => Promise<void>;
|
|
13
13
|
/**
|
|
@@ -546,9 +546,16 @@ var useAppointmentBookingResource = () => {
|
|
|
546
546
|
return { resources: processedResources, resourceCodes };
|
|
547
547
|
};
|
|
548
548
|
const getResourceTimeSlot = async (index) => {
|
|
549
|
+
var _a, _b;
|
|
549
550
|
const { resourceCodes } = getResourceList();
|
|
551
|
+
let split = 10;
|
|
552
|
+
const { basic } = ((_a = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a.appointmentBoard) || {};
|
|
553
|
+
const serviceTime = (_b = basic == null ? void 0 : basic.service_time) == null ? void 0 : _b.value;
|
|
554
|
+
if (serviceTime) {
|
|
555
|
+
split = serviceTime;
|
|
556
|
+
}
|
|
550
557
|
const code = resourceCodes == null ? void 0 : resourceCodes[index || 0];
|
|
551
|
-
const data = await appointmentBooking.getTimeSlotByAllResources(code);
|
|
558
|
+
const data = await appointmentBooking.getTimeSlotByAllResources(code, split);
|
|
552
559
|
setTimes(data || []);
|
|
553
560
|
};
|
|
554
561
|
return { getResourceTimeSlot, getResourceList };
|
|
@@ -47,6 +47,7 @@ var AppointmentBooking = () => {
|
|
|
47
47
|
import_utils.locales.init(import_locales.default, ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en");
|
|
48
48
|
const utils = (0, import_hooks.contextUtils)();
|
|
49
49
|
const appointmentBooking = (0, import_hooks.useAppointmentBooking)();
|
|
50
|
+
const isMobileLayout = (0, import_react.useMemo)(() => (0, import_utils.isMobile)() && !(0, import_utils.isIpad)(), []);
|
|
50
51
|
(0, import_react.useEffect)(() => {
|
|
51
52
|
var _a2;
|
|
52
53
|
const { bookingSubject } = ((_a2 = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a2.productModuleParams) || {};
|
|
@@ -83,7 +84,7 @@ var AppointmentBooking = () => {
|
|
|
83
84
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
84
85
|
"div",
|
|
85
86
|
{
|
|
86
|
-
className: `parallel-booking-wrap ${
|
|
87
|
+
className: `parallel-booking-wrap ${isMobileLayout ? "parallel-booking-mobile-wrap" : ""}`
|
|
87
88
|
},
|
|
88
89
|
/* @__PURE__ */ import_react.default.createElement(import_context.AppointmentBookingProvider, null, /* @__PURE__ */ import_react.default.createElement(import_Content.default, null))
|
|
89
90
|
);
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|