@pisell/private-materials 6.3.137 → 6.3.139
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 +2 -2
- package/build/lowcode/preview.js +153 -426
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/hooks.d.ts +107 -0
- package/es/components/appointmentBooking/utils.d.ts +227 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +24 -5
- package/es/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/footer/utils.d.ts +47 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +9 -0
- package/es/components/booking/components/voucher/index.d.ts +3 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/editService/index.d.ts +7 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +248 -0
- package/es/components/booking/info2/index.d.ts +12 -0
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +11 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/locales.d.ts +1489 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +120 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +21 -0
- package/es/components/eftposPay/app.d.ts +10 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/es/components/eftposPay/component/fail/index.d.ts +3 -0
- package/es/components/eftposPay/component/fail/network.d.ts +9 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +9 -0
- package/es/components/eftposPay/component/signature/index.d.ts +9 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +23 -0
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/index.d.ts +4 -0
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/pay.d.ts +20 -0
- package/es/components/eftposPay/payo/config.d.ts +13 -0
- package/es/components/eftposPay/payo/hooks.d.ts +10 -0
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eftposPay/tip.d.ts +10 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/utils/payLog.d.ts +81 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +23 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +7 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/kioskSkuDetail/index.d.ts +39 -0
- package/es/components/kioskSkuDetail/locales.d.ts +48 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/pay/toC/index.d.ts +3 -0
- package/es/components/pay/toC/locales.d.ts +631 -0
- package/es/components/pay/toC/payGroup.d.ts +59 -0
- package/es/components/pay/toC/serve.d.ts +87 -0
- package/es/components/pay/toC/utils.d.ts +65 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/ruleSetting/locales.d.ts +78 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/scanOrder/components/Cart/index.d.ts +2 -0
- package/es/components/scanOrder/components/Cart/index.js +58 -24
- package/es/components/scanOrder/components/Cart/index.less +61 -8
- package/es/components/scanOrder/components/Check/index.js +232 -51
- package/es/components/scanOrder/components/Check/index.less +30 -0
- package/es/components/scanOrder/components/Content/index.js +358 -121
- package/es/components/scanOrder/components/Footer/index.d.ts +2 -0
- package/es/components/scanOrder/components/Footer/index.js +4 -2
- package/es/components/scanOrder/components/Footer/index.less +16 -7
- package/es/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
- package/es/components/scanOrder/components/FulfillmentMode/index.js +90 -0
- package/es/components/scanOrder/components/FulfillmentMode/index.less +40 -0
- package/es/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
- package/es/components/scanOrder/components/ManualPickupRefModal/index.js +87 -0
- package/es/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
- package/es/components/scanOrder/context.js +104 -21
- package/es/components/scanOrder/locales.d.ts +55 -0
- package/es/components/scanOrder/locales.js +55 -0
- package/es/components/scanOrder/types.d.ts +23 -0
- package/es/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
- package/es/components/scanOrder/utils/toShoppingCartProducts.js +15 -9
- package/es/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
- package/es/components/scanOrder/utils/transformProductDetail.js +7 -6
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/systemSettings/registry/components/GroupModal.js +8 -1
- package/es/components/systemSettings/registry/components/ItemModal.js +3 -0
- package/es/components/systemSettings/registry/index.js +3 -1
- package/es/components/systemSettings/registry/services.d.ts +2 -0
- package/es/components/systemSettings/registry/types.d.ts +3 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/es/components/ticketBooking/index.d.ts +7 -0
- package/es/components/venueBooking/components/VenueSelection/components/TimeGrid.js +130 -18
- package/es/components/venueBooking/context.js +38 -12
- package/es/components/venueBooking/hooks.d.ts +16 -3
- package/es/components/venueBooking/hooks.js +16 -4
- package/es/components/venueBooking/types.d.ts +19 -2
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/index.d.ts +87 -0
- package/es/index.js +1 -1
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -6
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/es/plus/pisellSalesProductCard/index.js +16 -1
- package/es/plus/pisellSalesProductCard/types.d.ts +21 -1
- package/es/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/index.d.ts +5 -0
- package/es/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/es/plus/skuOptionsSelection/types.d.ts +458 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/pro/Cards/components/SKUCard/index.d.ts +5 -0
- package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/es/pro/NumericStepper/index.d.ts +19 -0
- package/es/pro/NumericStepper/index.js +37 -6
- package/es/pro/Selector/demo.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/hooks.d.ts +107 -0
- package/lib/components/appointmentBooking/utils.d.ts +227 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +19 -4
- package/lib/components/authentication/admin/ChannelAuthSetting/index.js +1 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.d.ts +47 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +9 -0
- package/lib/components/booking/components/voucher/index.d.ts +3 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/editService/index.d.ts +7 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +248 -0
- package/lib/components/booking/info2/index.d.ts +12 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/locales.d.ts +1489 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +120 -0
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +21 -0
- package/lib/components/eftposPay/app.d.ts +10 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +9 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +9 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +9 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +23 -0
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/index.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/pay.d.ts +20 -0
- package/lib/components/eftposPay/payo/config.d.ts +13 -0
- package/lib/components/eftposPay/payo/hooks.d.ts +10 -0
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eftposPay/tip.d.ts +10 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/utils/payLog.d.ts +81 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +23 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +7 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/kioskSkuDetail/index.d.ts +39 -0
- package/lib/components/kioskSkuDetail/locales.d.ts +48 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +16 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +15 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +83 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +22 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +25 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +16 -0
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/pay/toC/index.d.ts +3 -0
- package/lib/components/pay/toC/locales.d.ts +631 -0
- package/lib/components/pay/toC/payGroup.d.ts +59 -0
- package/lib/components/pay/toC/serve.d.ts +87 -0
- package/lib/components/pay/toC/utils.d.ts +65 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/ruleSetting/locales.d.ts +78 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/scanOrder/components/Cart/index.d.ts +2 -0
- package/lib/components/scanOrder/components/Cart/index.js +43 -9
- package/lib/components/scanOrder/components/Cart/index.less +61 -8
- package/lib/components/scanOrder/components/Check/index.js +97 -8
- package/lib/components/scanOrder/components/Check/index.less +30 -0
- package/lib/components/scanOrder/components/Content/index.js +215 -69
- package/lib/components/scanOrder/components/Footer/index.d.ts +2 -0
- package/lib/components/scanOrder/components/Footer/index.js +2 -2
- package/lib/components/scanOrder/components/Footer/index.less +16 -7
- package/lib/components/scanOrder/components/FulfillmentMode/index.d.ts +11 -0
- package/lib/components/scanOrder/components/FulfillmentMode/index.js +96 -0
- package/lib/components/scanOrder/components/FulfillmentMode/index.less +40 -0
- package/lib/components/scanOrder/components/ManualPickupRefModal/index.d.ts +16 -0
- package/lib/components/scanOrder/components/ManualPickupRefModal/index.js +116 -0
- package/lib/components/scanOrder/components/ManualPickupRefModal/index.less +61 -0
- package/lib/components/scanOrder/context.js +80 -12
- package/lib/components/scanOrder/locales.d.ts +55 -0
- package/lib/components/scanOrder/locales.js +55 -0
- package/lib/components/scanOrder/types.d.ts +23 -0
- package/lib/components/scanOrder/utils/toShoppingCartProducts.d.ts +2 -1
- package/lib/components/scanOrder/utils/toShoppingCartProducts.js +8 -5
- package/lib/components/scanOrder/utils/transformProductDetail.d.ts +2 -1
- package/lib/components/scanOrder/utils/transformProductDetail.js +1 -9
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/systemSettings/registry/components/GroupModal.js +71 -72
- package/lib/components/systemSettings/registry/components/ItemModal.js +2 -1
- package/lib/components/systemSettings/registry/index.js +3 -1
- package/lib/components/systemSettings/registry/services.d.ts +2 -0
- package/lib/components/systemSettings/registry/types.d.ts +3 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/lib/components/ticketBooking/index.d.ts +7 -0
- package/lib/components/venueBooking/components/VenueSelection/components/TimeGrid.js +119 -19
- package/lib/components/venueBooking/context.js +16 -7
- package/lib/components/venueBooking/hooks.d.ts +16 -3
- package/lib/components/venueBooking/hooks.js +8 -2
- package/lib/components/venueBooking/types.d.ts +19 -2
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/index.d.ts +87 -0
- package/lib/index.js +2 -0
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -6
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +1 -0
- package/lib/plus/pisellSalesProductCard/index.js +10 -0
- package/lib/plus/pisellSalesProductCard/types.d.ts +21 -1
- package/lib/plus/productSelect/ProductCard/ProductCardV2.js +6 -2
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +15 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +58 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +458 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/lib/pro/Cards/components/SKUCard/index.d.ts +5 -0
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/lib/pro/NumericStepper/index.d.ts +19 -0
- package/lib/pro/NumericStepper/index.js +21 -4
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lowcode/admin-auth-channel-auth/meta.ts +116 -0
- package/lowcode/admin-auth-online-shop-auth/meta.ts +81 -5
- package/package.json +1 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
2
2
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
3
3
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
4
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
5
4
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
5
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
6
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
7
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
12
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
12
13
|
import { isMobile, locales } from '@pisell/utils';
|
|
13
|
-
import { Modal } from 'antd';
|
|
14
|
-
import { Button, PisellModal
|
|
14
|
+
import { message, Modal } from 'antd';
|
|
15
|
+
import { Button, PisellModal } from '@pisell/materials';
|
|
15
16
|
import { useScanOrderContext } from "../../context";
|
|
16
17
|
import Header from "../Header";
|
|
17
18
|
import Footer from "../Footer";
|
|
@@ -24,8 +25,40 @@ import Check from "../Check";
|
|
|
24
25
|
import PolicyModal from "../../../appointmentBooking/deposit/components/PolicyModal";
|
|
25
26
|
import useComponents from "../../../../hooks/useComponents";
|
|
26
27
|
import "./index.less";
|
|
28
|
+
/** 从 pisell1.handlePaxModal 的 callback 入参中解析人数(兼容数字、字符串或对象字段) */
|
|
29
|
+
function extractEntryPaxNumber(payload) {
|
|
30
|
+
if (payload == null) return null;
|
|
31
|
+
if (typeof payload === 'number' && Number.isFinite(payload) && payload >= 1) {
|
|
32
|
+
return Math.floor(payload);
|
|
33
|
+
}
|
|
34
|
+
if (typeof payload === 'string') {
|
|
35
|
+
var n = Number(payload);
|
|
36
|
+
if (Number.isFinite(n) && n >= 1) return Math.floor(n);
|
|
37
|
+
}
|
|
38
|
+
if (_typeof(payload) === 'object') {
|
|
39
|
+
var o = payload;
|
|
40
|
+
var _iterator = _createForOfIteratorHelper(['entryPaxNumber', 'pax', 'num', 'count', 'value']),
|
|
41
|
+
_step;
|
|
42
|
+
try {
|
|
43
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
44
|
+
var k = _step.value;
|
|
45
|
+
var v = o[k];
|
|
46
|
+
if (typeof v === 'number' && Number.isFinite(v) && v >= 1) return Math.floor(v);
|
|
47
|
+
if (typeof v === 'string') {
|
|
48
|
+
var _n = Number(v);
|
|
49
|
+
if (Number.isFinite(_n) && _n >= 1) return Math.floor(_n);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
} catch (err) {
|
|
53
|
+
_iterator.e(err);
|
|
54
|
+
} finally {
|
|
55
|
+
_iterator.f();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
27
60
|
function ReadyState() {
|
|
28
|
-
var _formModal$content, _formModal$content2, _formModal$content3, _formModal$content4;
|
|
61
|
+
var _utils$getApp, _formModal$content, _formModal$content2, _formModal$content3, _formModal$content4;
|
|
29
62
|
var _useScanOrderContext = useScanOrderContext(),
|
|
30
63
|
currentStep = _useScanOrderContext.currentStep,
|
|
31
64
|
prevStep = _useScanOrderContext.prevStep,
|
|
@@ -36,7 +69,16 @@ function ReadyState() {
|
|
|
36
69
|
refreshViewModel = _useScanOrderContext.refreshViewModel,
|
|
37
70
|
footerActionText = _useScanOrderContext.footerActionText,
|
|
38
71
|
setFooterActionText = _useScanOrderContext.setFooterActionText,
|
|
39
|
-
cartValidation = _useScanOrderContext.cartValidation
|
|
72
|
+
cartValidation = _useScanOrderContext.cartValidation,
|
|
73
|
+
setTableName = _useScanOrderContext.setTableName,
|
|
74
|
+
entryMode = _useScanOrderContext.entryMode,
|
|
75
|
+
setEntryMode = _useScanOrderContext.setEntryMode,
|
|
76
|
+
submitDisabledTips = _useScanOrderContext.submitDisabledTips,
|
|
77
|
+
setSubmitDisabledTips = _useScanOrderContext.setSubmitDisabledTips,
|
|
78
|
+
scanOrderModule = _useScanOrderContext.scanOrderModule,
|
|
79
|
+
isCacheHydrated = _useScanOrderContext.isCacheHydrated,
|
|
80
|
+
markGate = _useScanOrderContext.markGate,
|
|
81
|
+
isGatePassed = _useScanOrderContext.isGatePassed;
|
|
40
82
|
var _useScanOrderLogin = useScanOrderLogin(),
|
|
41
83
|
isLogin = _useScanOrderLogin.isLogin,
|
|
42
84
|
openLoginModal = _useScanOrderLogin.openLoginModal;
|
|
@@ -69,6 +111,26 @@ function ReadyState() {
|
|
|
69
111
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
70
112
|
pendingFormPayload = _useState8[0],
|
|
71
113
|
setPendingFormPayload = _useState8[1];
|
|
114
|
+
/** checkResourceAvailable 返回 requestEntryPax === 1 时,在协议/表单之后弹人数并写入 scanOrder otherParams */
|
|
115
|
+
var requestEntryPaxRef = useRef(0);
|
|
116
|
+
var requestPaxMinRef = useRef(1);
|
|
117
|
+
var requestPaxMaxRef = useRef(1);
|
|
118
|
+
var tableFormRecordRef = useRef(null);
|
|
119
|
+
|
|
120
|
+
/** 根据当前语言从多语言 name 对象中取值,兜底 original -> en -> 空串 */
|
|
121
|
+
var getLocalizedName = function getLocalizedName(nameMap) {
|
|
122
|
+
if (!nameMap) return '';
|
|
123
|
+
var currentLocale = locales.getLocale();
|
|
124
|
+
return nameMap[currentLocale] || nameMap.original || nameMap.en || '';
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/** 解析可能是纯字符串或多语言对象的文案,兜底 current locale -> original -> en -> 空串 */
|
|
128
|
+
var resolveLocalizedText = function resolveLocalizedText(value) {
|
|
129
|
+
if (value == null) return '';
|
|
130
|
+
if (typeof value === 'string') return value;
|
|
131
|
+
if (_typeof(value) !== 'object') return String(value);
|
|
132
|
+
return getLocalizedName(value);
|
|
133
|
+
};
|
|
72
134
|
var normalizeFormPayload = function normalizeFormPayload(formPayload, partyroomBookingPayload) {
|
|
73
135
|
var _ref, _ref2, _sourcePayload$id;
|
|
74
136
|
var sourcePayload = formPayload !== null && formPayload !== void 0 ? formPayload : partyroomBookingPayload;
|
|
@@ -85,11 +147,36 @@ function ReadyState() {
|
|
|
85
147
|
setting: sourceDetail === null || sourceDetail === void 0 ? void 0 : sourceDetail.setting
|
|
86
148
|
};
|
|
87
149
|
};
|
|
88
|
-
|
|
150
|
+
var app = utils === null || utils === void 0 || (_utils$getApp = utils.getApp) === null || _utils$getApp === void 0 ? void 0 : _utils$getApp.call(utils);
|
|
89
151
|
// 跳转到订单详情页
|
|
90
152
|
var handleOrderDetail = function handleOrderDetail(order_id) {
|
|
153
|
+
var _app$history, _app$history2;
|
|
91
154
|
var link = "/order/details?id=".concat(order_id);
|
|
92
|
-
|
|
155
|
+
if (app !== null && app !== void 0 && (_app$history = app.history) !== null && _app$history !== void 0 && _app$history.replace) {
|
|
156
|
+
app.history.replace(link);
|
|
157
|
+
} else if (app !== null && app !== void 0 && (_app$history2 = app.history) !== null && _app$history2 !== void 0 && _app$history2.push) {
|
|
158
|
+
app.history.push(link);
|
|
159
|
+
} else {
|
|
160
|
+
location.replace(link);
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
var handleBack = function handleBack() {
|
|
164
|
+
var _app$history3, _app$history4;
|
|
165
|
+
if (currentStep !== 'product') {
|
|
166
|
+
prevStep();
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (entryMode === 'additional_order' && entryContext !== null && entryContext !== void 0 && entryContext.order_id) {
|
|
170
|
+
handleOrderDetail(entryContext.order_id);
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
if (app !== null && app !== void 0 && (_app$history3 = app.history) !== null && _app$history3 !== void 0 && _app$history3.replace) {
|
|
174
|
+
app.history.replace('/');
|
|
175
|
+
} else if (app !== null && app !== void 0 && (_app$history4 = app.history) !== null && _app$history4 !== void 0 && _app$history4.push) {
|
|
176
|
+
app.history.push('/');
|
|
177
|
+
} else {
|
|
178
|
+
location.replace('/');
|
|
179
|
+
}
|
|
93
180
|
};
|
|
94
181
|
var enterProductStep = /*#__PURE__*/function () {
|
|
95
182
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
@@ -111,7 +198,8 @@ function ReadyState() {
|
|
|
111
198
|
console.warn('[scanOrder] applyItemRulePrefill failed', _context.t0);
|
|
112
199
|
case 10:
|
|
113
200
|
_context.prev = 10;
|
|
114
|
-
|
|
201
|
+
// 步骤缓存命中时,currentStep 可能已恢复到 'check';不把它拉回 'product'
|
|
202
|
+
if (currentStep !== 'check') goToStep('product');
|
|
115
203
|
return _context.finish(10);
|
|
116
204
|
case 13:
|
|
117
205
|
case "end":
|
|
@@ -123,6 +211,84 @@ function ReadyState() {
|
|
|
123
211
|
return _ref3.apply(this, arguments);
|
|
124
212
|
};
|
|
125
213
|
}();
|
|
214
|
+
|
|
215
|
+
/** 需要时先走人数弹窗与 setOtherParams(entryPaxNumber),再进入商品步 */
|
|
216
|
+
var runEntryPaxGateThenEnterProduct = /*#__PURE__*/function () {
|
|
217
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
218
|
+
var pax;
|
|
219
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
220
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
221
|
+
case 0:
|
|
222
|
+
if (!(requestEntryPaxRef.current !== 1)) {
|
|
223
|
+
_context2.next = 4;
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
_context2.next = 3;
|
|
227
|
+
return enterProductStep();
|
|
228
|
+
case 3:
|
|
229
|
+
return _context2.abrupt("return");
|
|
230
|
+
case 4:
|
|
231
|
+
if (!isGatePassed('paxEntered')) {
|
|
232
|
+
_context2.next = 8;
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
_context2.next = 7;
|
|
236
|
+
return enterProductStep();
|
|
237
|
+
case 7:
|
|
238
|
+
return _context2.abrupt("return");
|
|
239
|
+
case 8:
|
|
240
|
+
_context2.next = 10;
|
|
241
|
+
return new Promise(function (resolve) {
|
|
242
|
+
var _tableFormRecordRef$c;
|
|
243
|
+
if (typeof (utils === null || utils === void 0 ? void 0 : utils.action) !== 'function') {
|
|
244
|
+
resolve(null);
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
utils.action({
|
|
248
|
+
type: 'pisell1.handlePaxModal',
|
|
249
|
+
data: {
|
|
250
|
+
tableName: getLocalizedName((_tableFormRecordRef$c = tableFormRecordRef.current) === null || _tableFormRecordRef$c === void 0 ? void 0 : _tableFormRecordRef$c.name),
|
|
251
|
+
requestPaxMin: requestPaxMinRef.current,
|
|
252
|
+
requestPaxMax: requestPaxMaxRef.current
|
|
253
|
+
},
|
|
254
|
+
callback: function callback(result) {
|
|
255
|
+
resolve(extractEntryPaxNumber(result));
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
});
|
|
259
|
+
case 10:
|
|
260
|
+
pax = _context2.sent;
|
|
261
|
+
if (!(pax == null)) {
|
|
262
|
+
_context2.next = 14;
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
location.replace('/');
|
|
266
|
+
return _context2.abrupt("return");
|
|
267
|
+
case 14:
|
|
268
|
+
_context2.prev = 14;
|
|
269
|
+
_context2.next = 17;
|
|
270
|
+
return runModuleAction('setEntryPaxNumber', pax);
|
|
271
|
+
case 17:
|
|
272
|
+
markGate('paxEntered');
|
|
273
|
+
_context2.next = 23;
|
|
274
|
+
break;
|
|
275
|
+
case 20:
|
|
276
|
+
_context2.prev = 20;
|
|
277
|
+
_context2.t0 = _context2["catch"](14);
|
|
278
|
+
console.warn('[scanOrder] setOtherParams failed', _context2.t0);
|
|
279
|
+
case 23:
|
|
280
|
+
_context2.next = 25;
|
|
281
|
+
return enterProductStep();
|
|
282
|
+
case 25:
|
|
283
|
+
case "end":
|
|
284
|
+
return _context2.stop();
|
|
285
|
+
}
|
|
286
|
+
}, _callee2, null, [[14, 20]]);
|
|
287
|
+
}));
|
|
288
|
+
return function runEntryPaxGateThenEnterProduct() {
|
|
289
|
+
return _ref4.apply(this, arguments);
|
|
290
|
+
};
|
|
291
|
+
}();
|
|
126
292
|
var closePolicyAndBack = function closePolicyAndBack() {
|
|
127
293
|
setPolicyModal({
|
|
128
294
|
open: false,
|
|
@@ -155,7 +321,8 @@ function ReadyState() {
|
|
|
155
321
|
content: null
|
|
156
322
|
});
|
|
157
323
|
setPendingFormPayload(null);
|
|
158
|
-
|
|
324
|
+
markGate('formSubmitted');
|
|
325
|
+
void runEntryPaxGateThenEnterProduct();
|
|
159
326
|
};
|
|
160
327
|
var handleFormConfirm = function handleFormConfirm() {
|
|
161
328
|
var _formModalRef$current, _formModalRef$current2;
|
|
@@ -168,11 +335,12 @@ function ReadyState() {
|
|
|
168
335
|
open: false,
|
|
169
336
|
content: null
|
|
170
337
|
});
|
|
171
|
-
|
|
338
|
+
markGate('policyAccepted');
|
|
339
|
+
if (pendingFormPayload && !isGatePassed('formSubmitted')) {
|
|
172
340
|
openFormModal(pendingFormPayload);
|
|
173
341
|
return;
|
|
174
342
|
}
|
|
175
|
-
void
|
|
343
|
+
void runEntryPaxGateThenEnterProduct();
|
|
176
344
|
};
|
|
177
345
|
var depositProtocolRequest = function depositProtocolRequest(id) {
|
|
178
346
|
var _utils$request, _utils$request$get;
|
|
@@ -180,36 +348,44 @@ function ReadyState() {
|
|
|
180
348
|
};
|
|
181
349
|
useEffect(function () {
|
|
182
350
|
var checkResourceAvailable = /*#__PURE__*/function () {
|
|
183
|
-
var
|
|
184
|
-
var hasOrderId, _yield$runModuleActio, mode, order_id, errorTips, policy, form, partyroom_booking, normalizedFormPayload, normalizedPolicyPayload, content;
|
|
185
|
-
return _regeneratorRuntime().wrap(function
|
|
186
|
-
while (1) switch (
|
|
351
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
352
|
+
var hasOrderId, _yield$runModuleActio, mode, order_id, errorTips, policy, form, partyroom_booking, requestEntryPax, requestPaxMin, requestPaxMax, table_form_record, normalizedFormPayload, isAdditionalOrder, normalizedPolicyPayload, tips, content;
|
|
353
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
354
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
187
355
|
case 0:
|
|
188
356
|
hasOrderId = !!(entryContext !== null && entryContext !== void 0 && entryContext.order_id);
|
|
189
|
-
|
|
357
|
+
_context3.next = 3;
|
|
190
358
|
return runModuleAction('checkResourceAvailable', entryContext === null || entryContext === void 0 ? void 0 : entryContext.resource_id, hasOrderId);
|
|
191
359
|
case 3:
|
|
192
|
-
_yield$runModuleActio =
|
|
360
|
+
_yield$runModuleActio = _context3.sent;
|
|
193
361
|
mode = _yield$runModuleActio.mode;
|
|
194
362
|
order_id = _yield$runModuleActio.order_id;
|
|
195
363
|
errorTips = _yield$runModuleActio.errorTips;
|
|
196
364
|
policy = _yield$runModuleActio.policy;
|
|
197
365
|
form = _yield$runModuleActio.form;
|
|
198
366
|
partyroom_booking = _yield$runModuleActio.partyroom_booking;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
367
|
+
requestEntryPax = _yield$runModuleActio.requestEntryPax;
|
|
368
|
+
requestPaxMin = _yield$runModuleActio.requestPaxMin;
|
|
369
|
+
requestPaxMax = _yield$runModuleActio.requestPaxMax;
|
|
370
|
+
table_form_record = _yield$runModuleActio.table_form_record;
|
|
371
|
+
requestEntryPaxRef.current = Number(requestEntryPax) === 1 ? 1 : 0;
|
|
372
|
+
requestPaxMinRef.current = Number(requestPaxMin) || 1;
|
|
373
|
+
requestPaxMaxRef.current = Number(requestPaxMax) || 1;
|
|
374
|
+
tableFormRecordRef.current = table_form_record || {};
|
|
375
|
+
setTableName(getLocalizedName(table_form_record === null || table_form_record === void 0 ? void 0 : table_form_record.name));
|
|
376
|
+
normalizedFormPayload = normalizeFormPayload(form, partyroom_booking);
|
|
377
|
+
isAdditionalOrder = mode === 'additional_order' || mode === 'additional_order_with_code';
|
|
378
|
+
setEntryMode(isAdditionalOrder ? 'additional_order' : 'default');
|
|
379
|
+
// 资源空闲:按需依次弹 协议 -> 表单 -> 人数,最后进入商品选择
|
|
380
|
+
if (!(mode === 'idle')) {
|
|
381
|
+
_context3.next = 35;
|
|
202
382
|
break;
|
|
203
383
|
}
|
|
204
384
|
normalizedPolicyPayload = _typeof(policy) === 'object' && policy !== null ? policy : {
|
|
205
385
|
id: policy
|
|
206
|
-
}; //
|
|
207
|
-
if (!(
|
|
208
|
-
|
|
209
|
-
break;
|
|
210
|
-
}
|
|
211
|
-
if (!(normalizedPolicyPayload !== null && normalizedPolicyPayload !== void 0 && normalizedPolicyPayload.id)) {
|
|
212
|
-
_context2.next = 18;
|
|
386
|
+
}; // 步骤缓存:同一 resourceId 会话内已确认过协议则跳过
|
|
387
|
+
if (!(normalizedPolicyPayload !== null && normalizedPolicyPayload !== void 0 && normalizedPolicyPayload.id && !isGatePassed('policyAccepted'))) {
|
|
388
|
+
_context3.next = 28;
|
|
213
389
|
break;
|
|
214
390
|
}
|
|
215
391
|
setPendingFormPayload(normalizedFormPayload);
|
|
@@ -217,67 +393,85 @@ function ReadyState() {
|
|
|
217
393
|
open: true,
|
|
218
394
|
content: normalizedPolicyPayload
|
|
219
395
|
});
|
|
220
|
-
return
|
|
221
|
-
case
|
|
222
|
-
if (!normalizedFormPayload) {
|
|
223
|
-
|
|
396
|
+
return _context3.abrupt("return");
|
|
397
|
+
case 28:
|
|
398
|
+
if (!(normalizedFormPayload && !isGatePassed('formSubmitted'))) {
|
|
399
|
+
_context3.next = 31;
|
|
224
400
|
break;
|
|
225
401
|
}
|
|
226
402
|
openFormModal(normalizedFormPayload);
|
|
227
|
-
return
|
|
228
|
-
case
|
|
229
|
-
|
|
403
|
+
return _context3.abrupt("return");
|
|
404
|
+
case 31:
|
|
405
|
+
_context3.next = 33;
|
|
406
|
+
return runEntryPaxGateThenEnterProduct();
|
|
407
|
+
case 33:
|
|
408
|
+
_context3.next = 54;
|
|
409
|
+
break;
|
|
410
|
+
case 35:
|
|
411
|
+
if (!isAdditionalOrder) {
|
|
412
|
+
_context3.next = 44;
|
|
413
|
+
break;
|
|
414
|
+
}
|
|
415
|
+
if (!hasOrderId) {
|
|
416
|
+
_context3.next = 41;
|
|
417
|
+
break;
|
|
418
|
+
}
|
|
419
|
+
_context3.next = 39;
|
|
420
|
+
return enterProductStep();
|
|
421
|
+
case 39:
|
|
422
|
+
_context3.next = 42;
|
|
423
|
+
break;
|
|
424
|
+
case 41:
|
|
425
|
+
handleOrderDetail(order_id);
|
|
426
|
+
case 42:
|
|
427
|
+
_context3.next = 54;
|
|
428
|
+
break;
|
|
429
|
+
case 44:
|
|
430
|
+
if (!(mode === 'submit_disabled')) {
|
|
431
|
+
_context3.next = 51;
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
// 禁止下单模式:允许进入商品选择,但下一步按钮需被禁用,点击提示 errorTips
|
|
435
|
+
tips = resolveLocalizedText(errorTips) || String(locales.getText('pisell2.scan.order.submit.disabled.default') || '');
|
|
436
|
+
setSubmitDisabledTips(tips);
|
|
437
|
+
_context3.next = 49;
|
|
230
438
|
return enterProductStep();
|
|
231
|
-
case
|
|
232
|
-
|
|
439
|
+
case 49:
|
|
440
|
+
_context3.next = 54;
|
|
233
441
|
break;
|
|
234
|
-
case
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
if (
|
|
239
|
-
|
|
240
|
-
callback: function callback(status) {
|
|
241
|
-
if (status === 'success') {
|
|
242
|
-
handleOrderDetail(order_id);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
});
|
|
442
|
+
case 51:
|
|
443
|
+
// 其他情况,视为不在营业或者异常,返回异常提示
|
|
444
|
+
content = resolveLocalizedText(errorTips);
|
|
445
|
+
if (!content) {
|
|
446
|
+
if (mode === 'resource_busy') {
|
|
447
|
+
content = String(locales.getText('pisell2.scan.order.resource.status.exception') || '');
|
|
246
448
|
} else {
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
} else {
|
|
250
|
-
// 其他情况,视为不在营业或者异常,返回异常提示
|
|
251
|
-
content = errorTips || '';
|
|
252
|
-
if (!content) {
|
|
253
|
-
if (mode === 'resource_block') {
|
|
254
|
-
content = String(locales.getText('pisell2.scan.order.resource.status.exception') || '');
|
|
255
|
-
} else {
|
|
256
|
-
content = String(locales.getText('pisell2.scan.order.store.status.exception') || '');
|
|
257
|
-
}
|
|
449
|
+
content = String(locales.getText('pisell2.scan.order.store.status.exception') || '');
|
|
258
450
|
}
|
|
259
|
-
Modal.info({
|
|
260
|
-
title: locales.getText('pisell2.scan.order.step.error'),
|
|
261
|
-
content: String(content || '').trim(),
|
|
262
|
-
okText: String(locales.getText('pisell2.event.confirm') || 'OK'),
|
|
263
|
-
maskClosable: false,
|
|
264
|
-
onOk: function onOk() {
|
|
265
|
-
location.replace('/');
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
451
|
}
|
|
269
|
-
|
|
452
|
+
Modal.info({
|
|
453
|
+
title: locales.getText('pisell2.scan.order.step.error'),
|
|
454
|
+
content: String(content || '').trim(),
|
|
455
|
+
okText: String(locales.getText('pisell2.event.confirm') || 'OK'),
|
|
456
|
+
maskClosable: false,
|
|
457
|
+
onOk: function onOk() {
|
|
458
|
+
location.replace('/');
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
case 54:
|
|
270
462
|
case "end":
|
|
271
|
-
return
|
|
463
|
+
return _context3.stop();
|
|
272
464
|
}
|
|
273
|
-
},
|
|
465
|
+
}, _callee3);
|
|
274
466
|
}));
|
|
275
467
|
return function checkResourceAvailable() {
|
|
276
|
-
return
|
|
468
|
+
return _ref5.apply(this, arguments);
|
|
277
469
|
};
|
|
278
470
|
}();
|
|
471
|
+
// 等 ScanOrderProvider 的步骤缓存 hydrate 完成再跑,确保 gate 标记已就位
|
|
472
|
+
if (!isCacheHydrated) return;
|
|
279
473
|
checkResourceAvailable();
|
|
280
|
-
}, []);
|
|
474
|
+
}, [isCacheHydrated]);
|
|
281
475
|
useEffect(function () {
|
|
282
476
|
window.scrollTo({
|
|
283
477
|
top: 0,
|
|
@@ -307,63 +501,104 @@ function ReadyState() {
|
|
|
307
501
|
message: locales.getText('pisell2.scan.order.store.status.exception')
|
|
308
502
|
})
|
|
309
503
|
};
|
|
310
|
-
var
|
|
504
|
+
var getFirstFailedProductIds = function getFirstFailedProductIds() {
|
|
311
505
|
var firstFailure = Array.isArray(cartValidation === null || cartValidation === void 0 ? void 0 : cartValidation.failures) ? cartValidation.failures[0] : null;
|
|
312
|
-
var
|
|
313
|
-
var
|
|
314
|
-
|
|
315
|
-
|
|
506
|
+
var targets = Array.isArray(firstFailure === null || firstFailure === void 0 ? void 0 : firstFailure.targets) ? firstFailure.targets : [];
|
|
507
|
+
var ids = [];
|
|
508
|
+
var seen = new Set();
|
|
509
|
+
var _iterator2 = _createForOfIteratorHelper(targets),
|
|
510
|
+
_step2;
|
|
511
|
+
try {
|
|
512
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
513
|
+
var target = _step2.value;
|
|
514
|
+
var id = Number(target === null || target === void 0 ? void 0 : target.product_id);
|
|
515
|
+
if (Number.isFinite(id) && id > 0 && !seen.has(id)) {
|
|
516
|
+
seen.add(id);
|
|
517
|
+
ids.push(id);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
} catch (err) {
|
|
521
|
+
_iterator2.e(err);
|
|
522
|
+
} finally {
|
|
523
|
+
_iterator2.f();
|
|
316
524
|
}
|
|
317
|
-
return
|
|
525
|
+
return ids;
|
|
318
526
|
};
|
|
319
|
-
var
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
527
|
+
var scrollAndHighlightProductsByIds = function scrollAndHighlightProductsByIds(productIds) {
|
|
528
|
+
if (!(productIds !== null && productIds !== void 0 && productIds.length)) return false;
|
|
529
|
+
var scrolled = false;
|
|
530
|
+
var highlighted = false;
|
|
531
|
+
var _iterator3 = _createForOfIteratorHelper(productIds),
|
|
532
|
+
_step3;
|
|
533
|
+
try {
|
|
534
|
+
var _loop = function _loop() {
|
|
535
|
+
var productId = _step3.value;
|
|
536
|
+
var failedProductElement = document.querySelector("[data-product-id=\"".concat(String(productId), "\"]"));
|
|
537
|
+
if (!failedProductElement) return 1; // continue
|
|
538
|
+
failedProductElement.classList.remove('highlight-product-item');
|
|
539
|
+
if (!scrolled) {
|
|
540
|
+
failedProductElement.scrollIntoView({
|
|
541
|
+
behavior: 'smooth',
|
|
542
|
+
block: 'center'
|
|
543
|
+
});
|
|
544
|
+
scrolled = true;
|
|
545
|
+
}
|
|
546
|
+
// 触发重绘,确保动画从头播放
|
|
547
|
+
void failedProductElement.offsetWidth;
|
|
548
|
+
failedProductElement.classList.add('highlight-product-item');
|
|
549
|
+
setTimeout(function () {
|
|
550
|
+
failedProductElement.classList.remove('highlight-product-item');
|
|
551
|
+
}, 3000);
|
|
552
|
+
highlighted = true;
|
|
553
|
+
};
|
|
554
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
555
|
+
if (_loop()) continue;
|
|
556
|
+
}
|
|
557
|
+
} catch (err) {
|
|
558
|
+
_iterator3.e(err);
|
|
559
|
+
} finally {
|
|
560
|
+
_iterator3.f();
|
|
561
|
+
}
|
|
562
|
+
return highlighted;
|
|
332
563
|
};
|
|
333
564
|
|
|
334
565
|
// 跳转到订单确认页
|
|
335
566
|
var gotoCheckOrder = /*#__PURE__*/function () {
|
|
336
|
-
var
|
|
567
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
337
568
|
var _otherParams$dineInCo;
|
|
338
|
-
var firstFailure,
|
|
339
|
-
return _regeneratorRuntime().wrap(function
|
|
340
|
-
while (1) switch (
|
|
569
|
+
var firstFailure, failedProductIds, failureTips, otherParams, dineInConfig, isPauseOrder, _dineInConfig$availab;
|
|
570
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
571
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
341
572
|
case 0:
|
|
573
|
+
if (!submitDisabledTips) {
|
|
574
|
+
_context4.next = 3;
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
message.warning(submitDisabledTips, 2);
|
|
578
|
+
return _context4.abrupt("return");
|
|
579
|
+
case 3:
|
|
342
580
|
firstFailure = Array.isArray(cartValidation === null || cartValidation === void 0 ? void 0 : cartValidation.failures) ? cartValidation.failures[0] : null;
|
|
343
581
|
if (!((cartValidation === null || cartValidation === void 0 ? void 0 : cartValidation.passed) === false)) {
|
|
344
|
-
|
|
582
|
+
_context4.next = 10;
|
|
345
583
|
break;
|
|
346
584
|
}
|
|
347
|
-
|
|
348
|
-
if (
|
|
349
|
-
|
|
585
|
+
failedProductIds = getFirstFailedProductIds();
|
|
586
|
+
if (failedProductIds.length) {
|
|
587
|
+
scrollAndHighlightProductsByIds(failedProductIds);
|
|
350
588
|
}
|
|
351
589
|
failureTips = String((firstFailure === null || firstFailure === void 0 ? void 0 : firstFailure.validationMessage) || '').trim();
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
return _context3.abrupt("return");
|
|
357
|
-
case 7:
|
|
358
|
-
_context3.next = 9;
|
|
590
|
+
message.warning(failureTips, 2);
|
|
591
|
+
return _context4.abrupt("return");
|
|
592
|
+
case 10:
|
|
593
|
+
_context4.next = 12;
|
|
359
594
|
return runModuleAction('getOtherParams');
|
|
360
|
-
case
|
|
361
|
-
otherParams =
|
|
595
|
+
case 12:
|
|
596
|
+
otherParams = _context4.sent;
|
|
362
597
|
console.log('otherParams >>>>> ', otherParams);
|
|
363
598
|
dineInConfig = (_otherParams$dineInCo = otherParams === null || otherParams === void 0 ? void 0 : otherParams.dineInConfig) !== null && _otherParams$dineInCo !== void 0 ? _otherParams$dineInCo : {};
|
|
364
599
|
isPauseOrder = dineInConfig === null || dineInConfig === void 0 ? void 0 : dineInConfig['availability.paused']; // 如果暂停接单直接弹提示,点完确定回首页
|
|
365
600
|
if (!isPauseOrder) {
|
|
366
|
-
|
|
601
|
+
_context4.next = 19;
|
|
367
602
|
break;
|
|
368
603
|
}
|
|
369
604
|
Modal.info({
|
|
@@ -374,8 +609,8 @@ function ReadyState() {
|
|
|
374
609
|
location.replace('/');
|
|
375
610
|
}
|
|
376
611
|
});
|
|
377
|
-
return
|
|
378
|
-
case
|
|
612
|
+
return _context4.abrupt("return");
|
|
613
|
+
case 19:
|
|
379
614
|
// 需要先确认当前是否登录,如果没有则需要登录
|
|
380
615
|
if (!isLogin) {
|
|
381
616
|
openLoginModal({
|
|
@@ -388,14 +623,14 @@ function ReadyState() {
|
|
|
388
623
|
} else {
|
|
389
624
|
goToStep('check');
|
|
390
625
|
}
|
|
391
|
-
case
|
|
626
|
+
case 20:
|
|
392
627
|
case "end":
|
|
393
|
-
return
|
|
628
|
+
return _context4.stop();
|
|
394
629
|
}
|
|
395
|
-
},
|
|
630
|
+
}, _callee4);
|
|
396
631
|
}));
|
|
397
632
|
return function gotoCheckOrder() {
|
|
398
|
-
return
|
|
633
|
+
return _ref6.apply(this, arguments);
|
|
399
634
|
};
|
|
400
635
|
}();
|
|
401
636
|
var isMobileView = isMobile();
|
|
@@ -409,7 +644,7 @@ function ReadyState() {
|
|
|
409
644
|
}, [currentStep, isMobileView]);
|
|
410
645
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, {
|
|
411
646
|
currentStep: currentStep,
|
|
412
|
-
onBack:
|
|
647
|
+
onBack: handleBack
|
|
413
648
|
}), /*#__PURE__*/React.createElement("div", {
|
|
414
649
|
className: "pisell-scan-order-content-wrap ".concat(isMobileView ? 'pisell-scan-order-content-mobile-wrap' : ''),
|
|
415
650
|
"data-cart-validation-passed": String(cartValidation === null || cartValidation === void 0 ? void 0 : cartValidation.passed)
|
|
@@ -423,14 +658,16 @@ function ReadyState() {
|
|
|
423
658
|
onCancel: function onCancel() {},
|
|
424
659
|
onNext: gotoCheckOrder,
|
|
425
660
|
items: (viewModel === null || viewModel === void 0 ? void 0 : viewModel.cartItems) || [],
|
|
426
|
-
summary: (viewModel === null || viewModel === void 0 ? void 0 : viewModel.summary) || {}
|
|
661
|
+
summary: (viewModel === null || viewModel === void 0 ? void 0 : viewModel.summary) || {},
|
|
662
|
+
disabled: !!submitDisabledTips
|
|
427
663
|
})) : null), isShowFooter ? /*#__PURE__*/React.createElement(Footer, {
|
|
428
664
|
cartItems: (viewModel === null || viewModel === void 0 ? void 0 : viewModel.cartItems) || [],
|
|
429
665
|
summary: (viewModel === null || viewModel === void 0 ? void 0 : viewModel.summary) || {},
|
|
430
666
|
actionText: footerActionText,
|
|
431
667
|
onAction: function onAction() {
|
|
432
668
|
return gotoCheckOrder();
|
|
433
|
-
}
|
|
669
|
+
},
|
|
670
|
+
disabled: !!submitDisabledTips
|
|
434
671
|
}) : null, policyModal.open ? /*#__PURE__*/React.createElement(PolicyModal, {
|
|
435
672
|
open: policyModal.open,
|
|
436
673
|
onCancel: closePolicyAndBack,
|