@pisell/private-materials 6.3.140 → 6.3.142
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 +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
- package/es/components/ecocup/components/CupActionList/index.d.ts +1 -0
- package/es/components/ecocup/components/CupActionModal/index.d.ts +1 -0
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +1 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +1 -0
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
- package/es/components/ecocup/components/SearchBar/index.d.ts +1 -0
- package/es/components/ecocup/components/SettingModal/index.d.ts +1 -0
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
- package/es/components/ecocup/cupList/index.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/scanOrder/components/Content/index.js +47 -31
- package/es/components/scanOrder/components/Menu/index.d.ts +1 -0
- package/es/components/scanOrder/components/Menu/index.js +2 -1
- package/es/components/scanOrder/locales.d.ts +5 -0
- package/es/components/scanOrder/locales.js +5 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/plus/orderList/components/HandleActions.d.ts +1 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +1 -0
- package/es/plus/orderList/components/Reset.d.ts +1 -0
- package/es/plus/orderList/components/Toolbar.d.ts +1 -0
- package/es/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +1 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/CupActionList/index.d.ts +1 -0
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
- package/lib/components/ecocup/components/SearchBar/index.d.ts +1 -0
- package/lib/components/ecocup/components/SettingModal/index.d.ts +1 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
- package/lib/components/ecocup/cupList/index.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/scanOrder/components/Content/index.js +8 -0
- package/lib/components/scanOrder/components/Menu/index.d.ts +1 -0
- package/lib/components/scanOrder/components/Menu/index.js +2 -2
- package/lib/components/scanOrder/locales.d.ts +5 -0
- package/lib/components/scanOrder/locales.js +5 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/plus/orderList/components/HandleActions.d.ts +1 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +1 -0
- package/lib/plus/orderList/components/Reset.d.ts +1 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +1 -0
- package/lib/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +1 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
- package/package.json +1 -1
- package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/hooks.d.ts +0 -107
- package/es/components/appointmentBooking/utils.d.ts +0 -227
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +0 -6
- package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +0 -6
- package/es/components/booking/components/footer/utils.d.ts +0 -47
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -9
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/booking/info/service/editService/index.d.ts +0 -7
- package/es/components/booking/info/service2/utils.d.ts +0 -248
- package/es/components/booking/info2/index.d.ts +0 -12
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/locales.d.ts +0 -1489
- package/es/components/booking/model.d.ts +0 -120
- package/es/components/eftposPay/amount.d.ts +0 -21
- package/es/components/eftposPay/app.d.ts +0 -10
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/es/components/eftposPay/component/fail/index.d.ts +0 -3
- package/es/components/eftposPay/component/fail/network.d.ts +0 -9
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -10
- package/es/components/eftposPay/component/manual/index.d.ts +0 -9
- package/es/components/eftposPay/component/signature/index.d.ts +0 -9
- package/es/components/eftposPay/device.d.ts +0 -23
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/es/components/eftposPay/linkly/index.d.ts +0 -2
- package/es/components/eftposPay/pay.d.ts +0 -20
- package/es/components/eftposPay/payo/config.d.ts +0 -13
- package/es/components/eftposPay/payo/hooks.d.ts +0 -10
- package/es/components/eftposPay/payo/payment.d.ts +0 -66
- package/es/components/eftposPay/tip.d.ts +0 -10
- package/es/components/eftposPay/tyro/index.d.ts +0 -9
- package/es/components/eftposPay/utils/payLog.d.ts +0 -81
- package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -23
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -7
- package/es/components/kioskSkuDetail/index.d.ts +0 -39
- package/es/components/kioskSkuDetail/locales.d.ts +0 -48
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +0 -16
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +0 -15
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -83
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -22
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -16
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/pay/toC/index.d.ts +0 -3
- package/es/components/pay/toC/locales.d.ts +0 -631
- package/es/components/pay/toC/payGroup.d.ts +0 -59
- package/es/components/pay/toC/serve.d.ts +0 -87
- package/es/components/pay/toC/utils.d.ts +0 -65
- package/es/components/ruleSetting/locales.d.ts +0 -78
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
- package/es/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
- package/es/components/systemSettings/registry/index.d.ts +0 -5
- package/es/components/systemSettings/registry/services.d.ts +0 -99
- package/es/components/systemSettings/registry/types.d.ts +0 -143
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/es/components/ticketBooking/index.d.ts +0 -7
- package/es/index.d.ts +0 -87
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -6
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -3
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -15
- package/es/plus/skuOptionsSelection/index.d.ts +0 -5
- package/es/plus/skuOptionsSelection/locales.d.ts +0 -58
- package/es/plus/skuOptionsSelection/types.d.ts +0 -458
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
- package/es/pro/Cards/components/SKUCard/index.d.ts +0 -5
- package/es/pro/Login2.0/components/phoneValidation.d.ts +0 -17
- package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/hooks.d.ts +0 -107
- package/lib/components/appointmentBooking/utils.d.ts +0 -227
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +0 -6
- package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +0 -6
- package/lib/components/booking/components/footer/utils.d.ts +0 -47
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -9
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/booking/info/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info/service2/utils.d.ts +0 -248
- package/lib/components/booking/info2/index.d.ts +0 -12
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/locales.d.ts +0 -1489
- package/lib/components/booking/model.d.ts +0 -120
- package/lib/components/eftposPay/amount.d.ts +0 -21
- package/lib/components/eftposPay/app.d.ts +0 -10
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -9
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -10
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -9
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -9
- package/lib/components/eftposPay/device.d.ts +0 -23
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/lib/components/eftposPay/linkly/index.d.ts +0 -2
- package/lib/components/eftposPay/pay.d.ts +0 -20
- package/lib/components/eftposPay/payo/config.d.ts +0 -13
- package/lib/components/eftposPay/payo/hooks.d.ts +0 -10
- package/lib/components/eftposPay/payo/payment.d.ts +0 -66
- package/lib/components/eftposPay/tip.d.ts +0 -10
- package/lib/components/eftposPay/tyro/index.d.ts +0 -9
- package/lib/components/eftposPay/utils/payLog.d.ts +0 -81
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -23
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -7
- package/lib/components/kioskSkuDetail/index.d.ts +0 -39
- package/lib/components/kioskSkuDetail/locales.d.ts +0 -48
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +0 -16
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +0 -15
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -83
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -22
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -16
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/pay/toC/index.d.ts +0 -3
- package/lib/components/pay/toC/locales.d.ts +0 -631
- package/lib/components/pay/toC/payGroup.d.ts +0 -59
- package/lib/components/pay/toC/serve.d.ts +0 -87
- package/lib/components/pay/toC/utils.d.ts +0 -65
- package/lib/components/ruleSetting/locales.d.ts +0 -78
- package/lib/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
- package/lib/components/systemSettings/registry/index.d.ts +0 -5
- package/lib/components/systemSettings/registry/services.d.ts +0 -99
- package/lib/components/systemSettings/registry/types.d.ts +0 -143
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/lib/components/ticketBooking/index.d.ts +0 -7
- package/lib/index.d.ts +0 -87
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -6
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -3
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -15
- package/lib/plus/skuOptionsSelection/index.d.ts +0 -5
- package/lib/plus/skuOptionsSelection/locales.d.ts +0 -58
- package/lib/plus/skuOptionsSelection/types.d.ts +0 -458
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
- package/lib/pro/Cards/components/SKUCard/index.d.ts +0 -5
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +0 -17
|
@@ -124,6 +124,10 @@ function ReadyState() {
|
|
|
124
124
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
125
125
|
productList = _useState10[0],
|
|
126
126
|
setProductList = _useState10[1];
|
|
127
|
+
var _useState11 = useState(false),
|
|
128
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
129
|
+
isProductListLoading = _useState12[0],
|
|
130
|
+
setIsProductListLoading = _useState12[1];
|
|
127
131
|
var productListLoadedRef = useRef(false);
|
|
128
132
|
var productListPromiseRef = useRef(null);
|
|
129
133
|
var ensureProductListLoaded = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
@@ -151,19 +155,20 @@ function ReadyState() {
|
|
|
151
155
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
152
156
|
while (1) switch (_context.prev = _context.next) {
|
|
153
157
|
case 0:
|
|
154
|
-
|
|
155
|
-
_context.
|
|
158
|
+
setIsProductListLoading(true);
|
|
159
|
+
_context.prev = 1;
|
|
160
|
+
_context.next = 4;
|
|
156
161
|
return runModuleAction('getProductList');
|
|
157
|
-
case
|
|
162
|
+
case 4:
|
|
158
163
|
res = _context.sent;
|
|
159
164
|
if (!Array.isArray(res)) {
|
|
160
|
-
_context.next =
|
|
165
|
+
_context.next = 9;
|
|
161
166
|
break;
|
|
162
167
|
}
|
|
163
168
|
productListLoadedRef.current = true;
|
|
164
169
|
setProductList(res);
|
|
165
170
|
return _context.abrupt("return");
|
|
166
|
-
case
|
|
171
|
+
case 9:
|
|
167
172
|
// 非数组错误载荷:沿用原 Menu 内的 Modal.confirm + 跳首页逻辑
|
|
168
173
|
Modal.confirm({
|
|
169
174
|
title: res === null || res === void 0 ? void 0 : res.message,
|
|
@@ -178,21 +183,22 @@ function ReadyState() {
|
|
|
178
183
|
location.replace('/');
|
|
179
184
|
}
|
|
180
185
|
});
|
|
181
|
-
_context.next =
|
|
186
|
+
_context.next = 15;
|
|
182
187
|
break;
|
|
183
|
-
case
|
|
184
|
-
_context.prev =
|
|
185
|
-
_context.t0 = _context["catch"](
|
|
188
|
+
case 12:
|
|
189
|
+
_context.prev = 12;
|
|
190
|
+
_context.t0 = _context["catch"](1);
|
|
186
191
|
console.warn('[scanOrder] getProductList failed', _context.t0);
|
|
187
|
-
case
|
|
188
|
-
_context.prev =
|
|
192
|
+
case 15:
|
|
193
|
+
_context.prev = 15;
|
|
194
|
+
setIsProductListLoading(false);
|
|
189
195
|
productListPromiseRef.current = null;
|
|
190
|
-
return _context.finish(
|
|
191
|
-
case
|
|
196
|
+
return _context.finish(15);
|
|
197
|
+
case 19:
|
|
192
198
|
case "end":
|
|
193
199
|
return _context.stop();
|
|
194
200
|
}
|
|
195
|
-
}, _callee, null, [[
|
|
201
|
+
}, _callee, null, [[1, 12, 15, 19]]);
|
|
196
202
|
}))();
|
|
197
203
|
productListPromiseRef.current = request;
|
|
198
204
|
_context2.next = 10;
|
|
@@ -394,7 +400,7 @@ function ReadyState() {
|
|
|
394
400
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
395
401
|
while (1) switch (_context5.prev = _context5.next) {
|
|
396
402
|
case 0:
|
|
397
|
-
if (!(
|
|
403
|
+
if (!(entryMode === 'additional_order')) {
|
|
398
404
|
_context5.next = 4;
|
|
399
405
|
break;
|
|
400
406
|
}
|
|
@@ -403,7 +409,7 @@ function ReadyState() {
|
|
|
403
409
|
case 3:
|
|
404
410
|
return _context5.abrupt("return");
|
|
405
411
|
case 4:
|
|
406
|
-
if (!
|
|
412
|
+
if (!(requestEntryPaxRef.current !== 1)) {
|
|
407
413
|
_context5.next = 8;
|
|
408
414
|
break;
|
|
409
415
|
}
|
|
@@ -412,37 +418,46 @@ function ReadyState() {
|
|
|
412
418
|
case 7:
|
|
413
419
|
return _context5.abrupt("return");
|
|
414
420
|
case 8:
|
|
415
|
-
|
|
421
|
+
if (!isGatePassed('paxEntered')) {
|
|
422
|
+
_context5.next = 12;
|
|
423
|
+
break;
|
|
424
|
+
}
|
|
416
425
|
_context5.next = 11;
|
|
417
|
-
return
|
|
426
|
+
return enterProductStep();
|
|
418
427
|
case 11:
|
|
428
|
+
return _context5.abrupt("return");
|
|
429
|
+
case 12:
|
|
430
|
+
entryPaxModalWasPresentedRef.current = true;
|
|
431
|
+
_context5.next = 15;
|
|
432
|
+
return requestEntryPaxModal();
|
|
433
|
+
case 15:
|
|
419
434
|
pax = _context5.sent;
|
|
420
435
|
if (!(pax == null)) {
|
|
421
|
-
_context5.next =
|
|
436
|
+
_context5.next = 19;
|
|
422
437
|
break;
|
|
423
438
|
}
|
|
424
439
|
navigateToHome();
|
|
425
440
|
return _context5.abrupt("return");
|
|
426
|
-
case
|
|
427
|
-
_context5.prev =
|
|
428
|
-
_context5.next =
|
|
441
|
+
case 19:
|
|
442
|
+
_context5.prev = 19;
|
|
443
|
+
_context5.next = 22;
|
|
429
444
|
return runModuleAction('setEntryPaxNumber', pax);
|
|
430
|
-
case
|
|
445
|
+
case 22:
|
|
431
446
|
markGate('paxEntered');
|
|
432
|
-
_context5.next =
|
|
447
|
+
_context5.next = 28;
|
|
433
448
|
break;
|
|
434
|
-
case
|
|
435
|
-
_context5.prev =
|
|
436
|
-
_context5.t0 = _context5["catch"](
|
|
449
|
+
case 25:
|
|
450
|
+
_context5.prev = 25;
|
|
451
|
+
_context5.t0 = _context5["catch"](19);
|
|
437
452
|
console.warn('[scanOrder] setOtherParams failed', _context5.t0);
|
|
438
|
-
case
|
|
439
|
-
_context5.next =
|
|
453
|
+
case 28:
|
|
454
|
+
_context5.next = 30;
|
|
440
455
|
return enterProductStep();
|
|
441
|
-
case
|
|
456
|
+
case 30:
|
|
442
457
|
case "end":
|
|
443
458
|
return _context5.stop();
|
|
444
459
|
}
|
|
445
|
-
}, _callee5, null, [[
|
|
460
|
+
}, _callee5, null, [[19, 25]]);
|
|
446
461
|
}));
|
|
447
462
|
return function runEntryPaxGateThenEnterProduct() {
|
|
448
463
|
return _ref7.apply(this, arguments);
|
|
@@ -672,6 +687,7 @@ function ReadyState() {
|
|
|
672
687
|
return goToStep('check');
|
|
673
688
|
},
|
|
674
689
|
productList: productList,
|
|
690
|
+
isProductListLoading: isProductListLoading,
|
|
675
691
|
onEnsureProductList: ensureProductListLoaded
|
|
676
692
|
}),
|
|
677
693
|
check: /*#__PURE__*/React.createElement(Check, null),
|
|
@@ -24,6 +24,7 @@ export default function Menu(props) {
|
|
|
24
24
|
var _scrollRef$current;
|
|
25
25
|
var onCheckout = props.onCheckout,
|
|
26
26
|
productList = props.productList,
|
|
27
|
+
isProductListLoading = props.isProductListLoading,
|
|
27
28
|
onEnsureProductList = props.onEnsureProductList;
|
|
28
29
|
var context = useEngineContext();
|
|
29
30
|
var _ref = context.appHelper || {},
|
|
@@ -349,7 +350,7 @@ export default function Menu(props) {
|
|
|
349
350
|
// _isMobile ? '.parallel-content-wrap' : '.parallel-booking-wrap'
|
|
350
351
|
// }
|
|
351
352
|
,
|
|
352
|
-
loading:
|
|
353
|
+
loading: isProductListLoading,
|
|
353
354
|
emptyDescription: locales.getText('pisell2.scan.order.empty.product'),
|
|
354
355
|
token: {
|
|
355
356
|
colorPrimary: 'var(--theme-color)',
|
|
@@ -9,6 +9,7 @@ declare const _default: {
|
|
|
9
9
|
'pisell2.scan.order.action.select.required': string;
|
|
10
10
|
'pisell2.scan.order.step.init': string;
|
|
11
11
|
'pisell2.scan.order.loading.initializing': string;
|
|
12
|
+
'pisell2.scan.order.loading.products': string;
|
|
12
13
|
'pisell2.scan.order.step.product': string;
|
|
13
14
|
'pisell2.scan.order.step.check': string;
|
|
14
15
|
'pisell2.scan.order.step.error': string;
|
|
@@ -57,6 +58,7 @@ declare const _default: {
|
|
|
57
58
|
'pisell2.scan.order.action.select.required': string;
|
|
58
59
|
'pisell2.scan.order.step.init': string;
|
|
59
60
|
'pisell2.scan.order.loading.initializing': string;
|
|
61
|
+
'pisell2.scan.order.loading.products': string;
|
|
60
62
|
'pisell2.scan.order.step.product': string;
|
|
61
63
|
'pisell2.scan.order.step.check': string;
|
|
62
64
|
'pisell2.scan.order.step.error': string;
|
|
@@ -105,6 +107,7 @@ declare const _default: {
|
|
|
105
107
|
'pisell2.scan.order.action.select.required': string;
|
|
106
108
|
'pisell2.scan.order.step.init': string;
|
|
107
109
|
'pisell2.scan.order.loading.initializing': string;
|
|
110
|
+
'pisell2.scan.order.loading.products': string;
|
|
108
111
|
'pisell2.scan.order.step.product': string;
|
|
109
112
|
'pisell2.scan.order.step.check': string;
|
|
110
113
|
'pisell2.scan.order.step.error': string;
|
|
@@ -153,6 +156,7 @@ declare const _default: {
|
|
|
153
156
|
'pisell2.scan.order.action.select.required': string;
|
|
154
157
|
'pisell2.scan.order.step.init': string;
|
|
155
158
|
'pisell2.scan.order.loading.initializing': string;
|
|
159
|
+
'pisell2.scan.order.loading.products': string;
|
|
156
160
|
'pisell2.scan.order.step.product': string;
|
|
157
161
|
'pisell2.scan.order.step.check': string;
|
|
158
162
|
'pisell2.scan.order.step.error': string;
|
|
@@ -201,6 +205,7 @@ declare const _default: {
|
|
|
201
205
|
'pisell2.scan.order.action.select.required': string;
|
|
202
206
|
'pisell2.scan.order.step.init': string;
|
|
203
207
|
'pisell2.scan.order.loading.initializing': string;
|
|
208
|
+
'pisell2.scan.order.loading.products': string;
|
|
204
209
|
'pisell2.scan.order.step.product': string;
|
|
205
210
|
'pisell2.scan.order.step.check': string;
|
|
206
211
|
'pisell2.scan.order.step.error': string;
|
|
@@ -9,6 +9,7 @@ export default {
|
|
|
9
9
|
'pisell2.scan.order.action.select.required': 'Select Required',
|
|
10
10
|
'pisell2.scan.order.step.init': 'Initialize',
|
|
11
11
|
'pisell2.scan.order.loading.initializing': 'Preparing your order, please wait...',
|
|
12
|
+
'pisell2.scan.order.loading.products': 'Loading products...',
|
|
12
13
|
'pisell2.scan.order.step.product': 'Select product',
|
|
13
14
|
'pisell2.scan.order.step.check': 'Check order',
|
|
14
15
|
'pisell2.scan.order.step.error': 'Unavailable',
|
|
@@ -57,6 +58,7 @@ export default {
|
|
|
57
58
|
'pisell2.scan.order.action.select.required': '请选择',
|
|
58
59
|
'pisell2.scan.order.step.init': '初始化',
|
|
59
60
|
'pisell2.scan.order.loading.initializing': '正在为您准备点餐页面,请稍候...',
|
|
61
|
+
'pisell2.scan.order.loading.products': '正在获取商品中...',
|
|
60
62
|
'pisell2.scan.order.step.product': '选择商品',
|
|
61
63
|
'pisell2.scan.order.step.check': '订单确认',
|
|
62
64
|
'pisell2.scan.order.step.error': '不可用',
|
|
@@ -105,6 +107,7 @@ export default {
|
|
|
105
107
|
'pisell2.scan.order.action.select.required': '請選擇',
|
|
106
108
|
'pisell2.scan.order.step.init': '初始化',
|
|
107
109
|
'pisell2.scan.order.loading.initializing': '正在為您準備點餐頁面,請稍候...',
|
|
110
|
+
'pisell2.scan.order.loading.products': '正在獲取商品中...',
|
|
108
111
|
'pisell2.scan.order.step.product': '選擇商品',
|
|
109
112
|
'pisell2.scan.order.step.check': '訂單確認',
|
|
110
113
|
'pisell2.scan.order.step.error': '不可用',
|
|
@@ -153,6 +156,7 @@ export default {
|
|
|
153
156
|
'pisell2.scan.order.action.select.required': '選択してください',
|
|
154
157
|
'pisell2.scan.order.step.init': '初期化',
|
|
155
158
|
'pisell2.scan.order.loading.initializing': 'ご注文画面を準備しています。しばらくお待ちください。',
|
|
159
|
+
'pisell2.scan.order.loading.products': '商品を取得しています...',
|
|
156
160
|
'pisell2.scan.order.step.product': '商品を選択',
|
|
157
161
|
'pisell2.scan.order.step.check': '注文確認',
|
|
158
162
|
'pisell2.scan.order.step.error': '利用不可',
|
|
@@ -201,6 +205,7 @@ export default {
|
|
|
201
205
|
'pisell2.scan.order.action.select.required': 'Selecionar obrigatório',
|
|
202
206
|
'pisell2.scan.order.step.init': 'Inicializar',
|
|
203
207
|
'pisell2.scan.order.loading.initializing': 'Estamos preparando sua tela de pedido, aguarde...',
|
|
208
|
+
'pisell2.scan.order.loading.products': 'Carregando produtos...',
|
|
204
209
|
'pisell2.scan.order.step.product': 'Selecionar produto',
|
|
205
210
|
'pisell2.scan.order.step.check': 'Verificar pedido',
|
|
206
211
|
'pisell2.scan.order.step.error': 'Indisponível',
|