@pisell/private-materials 3.3.10 → 3.3.13
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 +3 -3
- package/build/lowcode/view.js +3 -3
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +42 -242
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +13 -5
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/index.js +5 -2
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -41
- package/es/components/appointmentBooking/components/Cart/utils.js +4 -308
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +2 -1
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +145 -4
- package/es/components/appointmentBooking/components/Content/index.js +35 -28
- package/es/components/appointmentBooking/components/Date/index.d.ts +3 -2
- package/es/components/appointmentBooking/components/Date/index.js +67 -34
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Footer/index.js +12 -10
- package/es/components/appointmentBooking/components/Form/index.js +40 -13
- package/es/components/appointmentBooking/components/Guest/index.d.ts +2 -1
- package/es/components/appointmentBooking/components/Guest/index.js +10 -3
- package/es/components/appointmentBooking/components/Header/index.js +31 -23
- package/es/components/appointmentBooking/components/Resource/index.d.ts +5 -1
- package/es/components/appointmentBooking/components/Resource/index.js +138 -47
- package/es/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
- package/es/components/appointmentBooking/components/Resource/utils.js +16 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +2 -1
- package/es/components/appointmentBooking/components/Services/index.js +17 -72
- package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -2
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +17 -4
- package/es/components/appointmentBooking/context.js +13 -2
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +12 -9
- package/es/components/appointmentBooking/hooks.d.ts +2 -1
- package/es/components/appointmentBooking/hooks.js +71 -22
- package/es/components/appointmentBooking/utils.d.ts +23 -60
- package/es/components/appointmentBooking/utils.js +157 -175
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +4 -2
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +10 -123
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +4 -5
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/index.js +2 -2
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -41
- package/lib/components/appointmentBooking/components/Cart/utils.js +6 -184
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +2 -1
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +65 -3
- package/lib/components/appointmentBooking/components/Content/index.js +36 -22
- package/lib/components/appointmentBooking/components/Date/index.d.ts +3 -2
- package/lib/components/appointmentBooking/components/Date/index.js +13 -3
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Footer/index.js +16 -12
- package/lib/components/appointmentBooking/components/Form/index.js +17 -11
- package/lib/components/appointmentBooking/components/Guest/index.d.ts +2 -1
- package/lib/components/appointmentBooking/components/Guest/index.js +7 -2
- package/lib/components/appointmentBooking/components/Header/index.js +10 -10
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +5 -1
- package/lib/components/appointmentBooking/components/Resource/index.js +83 -30
- package/lib/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
- package/lib/components/appointmentBooking/components/Resource/utils.js +36 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +2 -1
- package/lib/components/appointmentBooking/components/Services/index.js +7 -6
- package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -2
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +14 -3
- package/lib/components/appointmentBooking/context.js +7 -2
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +3 -1
- package/lib/components/appointmentBooking/hooks.d.ts +2 -1
- package/lib/components/appointmentBooking/hooks.js +29 -8
- package/lib/components/appointmentBooking/utils.d.ts +23 -60
- package/lib/components/appointmentBooking/utils.js +84 -82
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info/utils.js +1 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +4 -2
- package/package.json +3 -3
- package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/es/businessModel/SalesModel/index.d.ts +0 -3
- package/es/businessModel/index.d.ts +0 -0
- package/es/components/Sales/Cart/index.d.ts +0 -53
- package/es/components/Sales/Cart/serve.d.ts +0 -2
- package/es/components/Sales/Cart/types.d.ts +0 -19
- package/es/components/Sales/Checkout/index.d.ts +0 -33
- package/es/components/Sales/Checkout/serve.d.ts +0 -2
- package/es/components/Sales/Checkout/utils.d.ts +0 -27
- package/es/components/Sales/Customer/index.d.ts +0 -24
- package/es/components/Sales/Event/Detail.d.ts +0 -27
- package/es/components/Sales/Event/index.d.ts +0 -30
- package/es/components/Sales/Event/serve.d.ts +0 -26
- package/es/components/Sales/Holder/index.d.ts +0 -33
- package/es/components/Sales/Holder/serve.d.ts +0 -8
- package/es/components/Sales/Init/index.d.ts +0 -24
- package/es/components/Sales/Init/serve.d.ts +0 -3
- package/es/components/Sales/Resource/index.d.ts +0 -26
- package/es/components/Sales/Resource/serve.d.ts +0 -5
- package/es/components/Sales/Step/index.d.ts +0 -37
- package/es/components/Sales/Summary/index.d.ts +0 -25
- package/es/components/Sales/Summary/serve.d.ts +0 -0
- package/es/components/Sales/Summary/utils.d.ts +0 -36
- package/es/components/Sales/hooks/index.d.ts +0 -1
- package/es/components/Sales/index.d.ts +0 -20
- package/es/components/Sales/utils/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Date/state.d.ts +0 -62
- package/es/components/appointmentBooking/locales.d.ts +0 -345
- package/es/components/appointmentBooking/mock.d.ts +0 -627
- package/es/components/appointmentBooking/status.d.ts +0 -21
- package/es/components/appointmentBooking/type.d.ts +0 -17
- package/es/components/booking/addons/index.d.ts +0 -17
- package/es/components/booking/components/customSelect/index.d.ts +0 -38
- package/es/components/booking/components/footer/amount.d.ts +0 -23
- package/es/components/booking/components/footer/index.d.ts +0 -11
- package/es/components/booking/components/footer/serve.d.ts +0 -3
- package/es/components/booking/components/footer/utils.d.ts +0 -30
- package/es/components/booking/forms/index.d.ts +0 -9
- package/es/components/booking/forms/serve.d.ts +0 -18
- package/es/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -25
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/es/components/booking/info/hooks/useAddHolder.d.ts +0 -2
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/es/components/booking/info/index.d.ts +0 -3
- package/es/components/booking/info/main.d.ts +0 -12
- package/es/components/booking/info/model.d.ts +0 -14
- package/es/components/booking/info/pet/index.d.ts +0 -14
- package/es/components/booking/info/service/Lists.d.ts +0 -2
- package/es/components/booking/info/service/addService/index.d.ts +0 -11
- package/es/components/booking/info/service/addService/utils.d.ts +0 -71
- package/es/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/es/components/booking/info/service/index.d.ts +0 -4
- package/es/components/booking/info/service/serve.d.ts +0 -11
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -5
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/es/components/booking/info/service2/Lists.d.ts +0 -2
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/es/components/booking/info/service2/index.d.ts +0 -6
- package/es/components/booking/info/service2/status.d.ts +0 -31
- package/es/components/booking/info/service2/utils.d.ts +0 -241
- package/es/components/booking/info2/index.d.ts +0 -12
- package/es/components/booking/info2/serve.d.ts +0 -6
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -88
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
- package/es/components/booking/info2/service/index.d.ts +0 -4
- package/es/components/booking/info2/utils.d.ts +0 -4
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -34
- package/es/components/booking/locales.d.ts +0 -786
- package/es/components/booking/materiels/contacts/index.d.ts +0 -15
- package/es/components/booking/materiels/holder/index.d.ts +0 -6
- package/es/components/booking/model.d.ts +0 -115
- package/es/components/booking/notes/addNote/index.d.ts +0 -3
- package/es/components/booking/payments/index.d.ts +0 -9
- package/es/components/booking/utils.d.ts +0 -172
- package/es/components/eftpos/index.d.ts +0 -46
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -6
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/es/components/eventBooking/index.d.ts +0 -3
- package/es/components/eventBooking/locales.d.ts +0 -216
- package/es/components/eventBooking/mock.d.ts +0 -627
- package/es/components/eventBooking/status.d.ts +0 -21
- package/es/components/eventBooking/type.d.ts +0 -17
- package/es/components/eventBooking/utils.d.ts +0 -45
- package/es/components/index.d.ts +0 -18
- package/es/components/login/index.d.ts +0 -8
- package/es/components/login/locales.d.ts +0 -24
- package/es/components/pay/toC/PaymentList/serve.d.ts +0 -28
- package/es/components/pay/toC/serve.d.ts +0 -34
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/es/components/productExtension/index.d.ts +0 -7
- package/es/components/productSelect/hooks/useToken.d.ts +0 -18
- package/es/components/productSelect/locales.d.ts +0 -18
- package/es/components/productSelect/mock.d.ts +0 -134
- package/es/components/productSelect/theme/token.d.ts +0 -17
- package/es/components/ruleSetting/index.d.ts +0 -9
- package/es/components/schedules/index.d.ts +0 -3
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -3
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -3
- package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -3
- package/es/components/shoppingCart/locales.d.ts +0 -33
- package/es/components/shoppingCart/mock.d.ts +0 -40
- package/es/components/shoppingCart/status.d.ts +0 -2
- package/es/components/shoppingCart/type.d.ts +0 -48
- package/es/components/shoppingCart/utils.d.ts +0 -63
- package/es/components/subTotal/locales.d.ts +0 -42
- package/es/components/taxSelect/index.d.ts +0 -11
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/data.d.ts +0 -58
- package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
- package/es/components/ticketBooking/index.d.ts +0 -3
- package/es/components/ticketBooking/locales.d.ts +0 -144
- package/es/components/ticketBooking/miniRedux.d.ts +0 -22
- package/es/components/ticketBooking/serve.d.ts +0 -282
- package/es/components/ticketBooking/utils/index.d.ts +0 -14
- package/es/components/wallet/Detail/locales.d.ts +0 -96
- package/es/components/wallet/Detail/model.d.ts +0 -13
- package/es/components/wallet/Detail/serve.d.ts +0 -39
- package/es/components/wallet/DetailContext.d.ts +0 -25
- package/es/components/wallet/DiscountCard/model.d.ts +0 -14
- package/es/components/wallet/PointCard/model.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/es/components/wallet/Voucher/locales.d.ts +0 -21
- package/es/components/wallet/Voucher/model.d.ts +0 -13
- package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/es/components/wallet/components/index.d.ts +0 -2
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -33
- package/es/components/wallet/locales.d.ts +0 -132
- package/es/components/wallet/model.d.ts +0 -37
- package/es/components/wallet/serve.d.ts +0 -143
- package/es/components/wallet/utils/formatUtils.d.ts +0 -36
- package/es/components/walletList/model.d.ts +0 -6
- package/es/components/walletList/serve.d.ts +0 -12
- package/es/components/walletList/types/index.d.ts +0 -194
- package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/es/hooks/useEngineContext.d.ts +0 -10
- package/es/index.d.ts +0 -45
- package/es/utils/locales.d.ts +0 -1
- package/es/utils/tasks/index.d.ts +0 -16
- package/es/utils/tasks/type.d.ts +0 -4
- package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -3
- package/lib/businessModel/index.d.ts +0 -0
- package/lib/components/Sales/Cart/index.d.ts +0 -53
- package/lib/components/Sales/Cart/serve.d.ts +0 -2
- package/lib/components/Sales/Cart/types.d.ts +0 -19
- package/lib/components/Sales/Checkout/index.d.ts +0 -33
- package/lib/components/Sales/Checkout/serve.d.ts +0 -2
- package/lib/components/Sales/Checkout/utils.d.ts +0 -27
- package/lib/components/Sales/Customer/index.d.ts +0 -24
- package/lib/components/Sales/Event/Detail.d.ts +0 -27
- package/lib/components/Sales/Event/index.d.ts +0 -30
- package/lib/components/Sales/Event/serve.d.ts +0 -26
- package/lib/components/Sales/Holder/index.d.ts +0 -33
- package/lib/components/Sales/Holder/serve.d.ts +0 -8
- package/lib/components/Sales/Init/index.d.ts +0 -24
- package/lib/components/Sales/Init/serve.d.ts +0 -3
- package/lib/components/Sales/Resource/index.d.ts +0 -26
- package/lib/components/Sales/Resource/serve.d.ts +0 -5
- package/lib/components/Sales/Step/index.d.ts +0 -37
- package/lib/components/Sales/Summary/index.d.ts +0 -25
- package/lib/components/Sales/Summary/serve.d.ts +0 -0
- package/lib/components/Sales/Summary/utils.d.ts +0 -36
- package/lib/components/Sales/hooks/index.d.ts +0 -1
- package/lib/components/Sales/index.d.ts +0 -20
- package/lib/components/Sales/utils/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -62
- package/lib/components/appointmentBooking/locales.d.ts +0 -345
- package/lib/components/appointmentBooking/mock.d.ts +0 -627
- package/lib/components/appointmentBooking/status.d.ts +0 -21
- package/lib/components/appointmentBooking/type.d.ts +0 -17
- package/lib/components/booking/addons/index.d.ts +0 -17
- package/lib/components/booking/components/customSelect/index.d.ts +0 -38
- package/lib/components/booking/components/footer/amount.d.ts +0 -23
- package/lib/components/booking/components/footer/index.d.ts +0 -11
- package/lib/components/booking/components/footer/serve.d.ts +0 -3
- package/lib/components/booking/components/footer/utils.d.ts +0 -30
- package/lib/components/booking/forms/index.d.ts +0 -9
- package/lib/components/booking/forms/serve.d.ts +0 -18
- package/lib/components/booking/hooks/useCreateBookingPageHeader.d.ts +0 -6
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -25
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/lib/components/booking/info/hooks/useAddHolder.d.ts +0 -2
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -9
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -9
- package/lib/components/booking/info/index.d.ts +0 -3
- package/lib/components/booking/info/main.d.ts +0 -12
- package/lib/components/booking/info/model.d.ts +0 -14
- package/lib/components/booking/info/pet/index.d.ts +0 -14
- package/lib/components/booking/info/service/Lists.d.ts +0 -2
- package/lib/components/booking/info/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info/service/addService/utils.d.ts +0 -71
- package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/lib/components/booking/info/service/index.d.ts +0 -4
- package/lib/components/booking/info/service/serve.d.ts +0 -11
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -5
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +0 -14
- package/lib/components/booking/info/service2/Lists.d.ts +0 -2
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
- package/lib/components/booking/info/service2/index.d.ts +0 -6
- package/lib/components/booking/info/service2/status.d.ts +0 -31
- package/lib/components/booking/info/service2/utils.d.ts +0 -241
- package/lib/components/booking/info2/index.d.ts +0 -12
- package/lib/components/booking/info2/serve.d.ts +0 -6
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -88
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -3
- package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
- package/lib/components/booking/info2/service/index.d.ts +0 -4
- package/lib/components/booking/info2/utils.d.ts +0 -4
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -34
- package/lib/components/booking/locales.d.ts +0 -786
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -15
- package/lib/components/booking/materiels/holder/index.d.ts +0 -6
- package/lib/components/booking/model.d.ts +0 -115
- package/lib/components/booking/notes/addNote/index.d.ts +0 -3
- package/lib/components/booking/payments/index.d.ts +0 -9
- package/lib/components/booking/utils.d.ts +0 -172
- package/lib/components/eftpos/index.d.ts +0 -46
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -6
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -2
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -2
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -9
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/lib/components/eventBooking/index.d.ts +0 -3
- package/lib/components/eventBooking/locales.d.ts +0 -216
- package/lib/components/eventBooking/mock.d.ts +0 -627
- package/lib/components/eventBooking/status.d.ts +0 -21
- package/lib/components/eventBooking/type.d.ts +0 -17
- package/lib/components/eventBooking/utils.d.ts +0 -45
- package/lib/components/index.d.ts +0 -18
- package/lib/components/login/index.d.ts +0 -8
- package/lib/components/login/locales.d.ts +0 -24
- package/lib/components/pay/toC/PaymentList/serve.d.ts +0 -28
- package/lib/components/pay/toC/serve.d.ts +0 -34
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/lib/components/productExtension/index.d.ts +0 -7
- package/lib/components/productSelect/hooks/useToken.d.ts +0 -18
- package/lib/components/productSelect/locales.d.ts +0 -18
- package/lib/components/productSelect/mock.d.ts +0 -134
- package/lib/components/productSelect/theme/token.d.ts +0 -17
- package/lib/components/ruleSetting/index.d.ts +0 -9
- package/lib/components/schedules/index.d.ts +0 -3
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -3
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -3
- package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -3
- package/lib/components/shoppingCart/locales.d.ts +0 -33
- package/lib/components/shoppingCart/mock.d.ts +0 -40
- package/lib/components/shoppingCart/status.d.ts +0 -2
- package/lib/components/shoppingCart/type.d.ts +0 -48
- package/lib/components/shoppingCart/utils.d.ts +0 -63
- package/lib/components/subTotal/locales.d.ts +0 -42
- package/lib/components/taxSelect/index.d.ts +0 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/data.d.ts +0 -58
- package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
- package/lib/components/ticketBooking/index.d.ts +0 -3
- package/lib/components/ticketBooking/locales.d.ts +0 -144
- package/lib/components/ticketBooking/miniRedux.d.ts +0 -22
- package/lib/components/ticketBooking/serve.d.ts +0 -282
- package/lib/components/ticketBooking/utils/index.d.ts +0 -14
- package/lib/components/wallet/Detail/locales.d.ts +0 -96
- package/lib/components/wallet/Detail/model.d.ts +0 -13
- package/lib/components/wallet/Detail/serve.d.ts +0 -39
- package/lib/components/wallet/DetailContext.d.ts +0 -25
- package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
- package/lib/components/wallet/PointCard/model.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/lib/components/wallet/Voucher/locales.d.ts +0 -21
- package/lib/components/wallet/Voucher/model.d.ts +0 -13
- package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/lib/components/wallet/components/index.d.ts +0 -2
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -33
- package/lib/components/wallet/locales.d.ts +0 -132
- package/lib/components/wallet/model.d.ts +0 -37
- package/lib/components/wallet/serve.d.ts +0 -143
- package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
- package/lib/components/walletList/model.d.ts +0 -6
- package/lib/components/walletList/serve.d.ts +0 -12
- package/lib/components/walletList/types/index.d.ts +0 -194
- package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/lib/hooks/useEngineContext.d.ts +0 -10
- package/lib/index.d.ts +0 -45
- package/lib/utils/locales.d.ts +0 -1
- package/lib/utils/tasks/index.d.ts +0 -16
- package/lib/utils/tasks/type.d.ts +0 -4
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
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); }
|
|
2
2
|
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; }
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
3
8
|
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); } }
|
|
4
9
|
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); }); }; }
|
|
5
10
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -8,79 +13,172 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
8
13
|
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
14
|
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
15
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
import React, { useState, useEffect, useMemo } from 'react';
|
|
16
|
+
import React, { useState, useEffect, useMemo, forwardRef, useImperativeHandle } from 'react';
|
|
12
17
|
import { Skeleton } from 'antd';
|
|
13
18
|
import ResourceDisplay from "../../../eventBooking/components/resourceDisplay";
|
|
14
19
|
import { PisellCustomCheckboxGroup } from '@pisell/materials';
|
|
15
|
-
import { useAppointmentBookingResource, useIsSkipResourceStep, useAppointmentBookingStep } from "../../hooks";
|
|
20
|
+
import { useAppointmentBookingResource, useIsSkipResourceStep, useAppointmentBookingStep, useAppointmentBookingLogin, contextUtils, useAppointmentBookingAccount, useAppointmentBookingSetting } from "../../hooks";
|
|
16
21
|
import { useAppointmentBookingContext } from "../../context";
|
|
22
|
+
import { checkHasFormStep, formatCartsResources } from "../../utils";
|
|
23
|
+
import { checkResource, checkHolder } from "../../components/Cart/utils";
|
|
24
|
+
import { scrollToFirstErrorCard } from "./utils";
|
|
17
25
|
import guestsImg from "../../assets/guests.svg";
|
|
18
|
-
import { hasResourceFormId, formatCarts } from "../../utils";
|
|
19
26
|
import { isMobile, locales } from '@pisell/utils';
|
|
20
27
|
import "./index.less";
|
|
21
|
-
var Resource = function
|
|
28
|
+
var Resource = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
22
29
|
var _useState = useState(0),
|
|
23
30
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24
31
|
selectedResource = _useState2[0],
|
|
25
32
|
setSelectedResource = _useState2[1];
|
|
26
33
|
var _useAppointmentBookin = useAppointmentBookingContext(),
|
|
27
34
|
appointmentBooking = _useAppointmentBookin.appointmentBooking,
|
|
28
|
-
resources = _useAppointmentBookin.resources,
|
|
29
35
|
carts = _useAppointmentBookin.carts,
|
|
30
36
|
resourceOtherParams = _useAppointmentBookin.resourceOtherParams,
|
|
31
|
-
|
|
37
|
+
setCarts = _useAppointmentBookin.setCarts,
|
|
38
|
+
currentStep = _useAppointmentBookin.currentStep,
|
|
39
|
+
setResourceOtherParams = _useAppointmentBookin.setResourceOtherParams,
|
|
40
|
+
setIsErrorHolder = _useAppointmentBookin.setIsErrorHolder;
|
|
32
41
|
var _useAppointmentBookin2 = useAppointmentBookingResource(),
|
|
33
42
|
getResourceList = _useAppointmentBookin2.getResourceList,
|
|
34
|
-
autoSelectAllProductResources = _useAppointmentBookin2.autoSelectAllProductResources
|
|
43
|
+
autoSelectAllProductResources = _useAppointmentBookin2.autoSelectAllProductResources,
|
|
44
|
+
getResourceTimeSlot = _useAppointmentBookin2.getResourceTimeSlot;
|
|
35
45
|
var _useIsSkipResourceSte = useIsSkipResourceStep(),
|
|
36
46
|
checkSkipResourceStep = _useIsSkipResourceSte.checkSkipResourceStep;
|
|
37
47
|
var _useAppointmentBookin3 = useAppointmentBookingStep(),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
48
|
+
updateStep = _useAppointmentBookin3.updateStep;
|
|
49
|
+
var _useAppointmentBookin4 = useAppointmentBookingLogin(),
|
|
50
|
+
openLoginModal = _useAppointmentBookin4.openLoginModal,
|
|
51
|
+
isLogin = _useAppointmentBookin4.isLogin;
|
|
52
|
+
var _useAppointmentBookin5 = useAppointmentBookingAccount(),
|
|
53
|
+
getHolders = _useAppointmentBookin5.getHolders,
|
|
54
|
+
checkAccount = _useAppointmentBookin5.checkAccount;
|
|
55
|
+
var _useAppointmentBookin6 = useAppointmentBookingSetting(),
|
|
56
|
+
isFormSubject = _useAppointmentBookin6.isFormSubject;
|
|
57
|
+
var utils = contextUtils();
|
|
58
|
+
useImperativeHandle(ref, function () {
|
|
59
|
+
return {
|
|
60
|
+
next: function () {
|
|
61
|
+
var _next2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
62
|
+
var _appointmentBooking$s;
|
|
63
|
+
var result, resultCarts, stepList, accountLists, checkResult;
|
|
64
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
65
|
+
while (1) switch (_context.prev = _context.next) {
|
|
66
|
+
case 0:
|
|
67
|
+
result = checkResource({
|
|
68
|
+
carts: carts,
|
|
69
|
+
resources: resources
|
|
70
|
+
});
|
|
71
|
+
if (result) {
|
|
72
|
+
setCarts(result);
|
|
73
|
+
}
|
|
74
|
+
setIsErrorHolder(!!result);
|
|
75
|
+
|
|
76
|
+
// 验证购物车是否有资源
|
|
77
|
+
if (!result) {
|
|
78
|
+
_context.next = 6;
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
scrollToFirstErrorCard();
|
|
82
|
+
return _context.abrupt("return");
|
|
83
|
+
case 6:
|
|
84
|
+
resultCarts = formatCartsResources(carts, resources);
|
|
85
|
+
stepList = (appointmentBooking === null || appointmentBooking === void 0 || (_appointmentBooking$s = appointmentBooking.store) === null || _appointmentBooking$s === void 0 || (_appointmentBooking$s = _appointmentBooking$s.step) === null || _appointmentBooking$s === void 0 || (_appointmentBooking$s = _appointmentBooking$s.store) === null || _appointmentBooking$s === void 0 ? void 0 : _appointmentBooking$s.stepList) || [];
|
|
86
|
+
_context.next = 10;
|
|
87
|
+
return appointmentBooking.getAccounts();
|
|
88
|
+
case 10:
|
|
89
|
+
accountLists = _context.sent;
|
|
90
|
+
checkResult = checkHasFormStep({
|
|
91
|
+
hasResourceFormId: (resultCarts === null || resultCarts === void 0 ? void 0 : resultCarts.length) > 0,
|
|
92
|
+
currentStep: currentStep,
|
|
93
|
+
stepList: stepList,
|
|
94
|
+
appointmentBooking: appointmentBooking,
|
|
95
|
+
locales: locales,
|
|
96
|
+
openLoginModal: openLoginModal,
|
|
97
|
+
utils: utils,
|
|
98
|
+
accountLists: accountLists,
|
|
99
|
+
getHolders: getHolders,
|
|
100
|
+
checkHolder: checkHolder,
|
|
101
|
+
checkAccount: checkAccount,
|
|
102
|
+
setCarts: setCarts,
|
|
103
|
+
carts: carts,
|
|
104
|
+
isFormSubject: isFormSubject,
|
|
105
|
+
isLogin: isLogin
|
|
106
|
+
});
|
|
107
|
+
if (!checkResult) {
|
|
108
|
+
_context.next = 14;
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
return _context.abrupt("return");
|
|
112
|
+
case 14:
|
|
113
|
+
// 清空资源分配失败数据
|
|
114
|
+
setResourceOtherParams(_objectSpread(_objectSpread({}, resourceOtherParams), {}, {
|
|
115
|
+
errorList: null
|
|
116
|
+
}));
|
|
117
|
+
|
|
118
|
+
// 获取时间切片
|
|
119
|
+
getResourceTimeSlot();
|
|
120
|
+
appointmentBooking.next();
|
|
121
|
+
case 17:
|
|
122
|
+
case "end":
|
|
123
|
+
return _context.stop();
|
|
124
|
+
}
|
|
125
|
+
}, _callee);
|
|
126
|
+
}));
|
|
127
|
+
function next() {
|
|
128
|
+
return _next2.apply(this, arguments);
|
|
129
|
+
}
|
|
130
|
+
return next;
|
|
131
|
+
}()
|
|
132
|
+
};
|
|
133
|
+
});
|
|
134
|
+
var resources = useMemo(function () {
|
|
135
|
+
var _getResourceList = getResourceList(),
|
|
136
|
+
resources = _getResourceList.resources;
|
|
137
|
+
return resources || [];
|
|
138
|
+
}, []);
|
|
41
139
|
useEffect(function () {
|
|
42
140
|
// 检查是否可以跳过资源选择步骤
|
|
43
141
|
var checkAndSkipResourceStep = /*#__PURE__*/function () {
|
|
44
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
45
|
-
var
|
|
46
|
-
return _regeneratorRuntime().wrap(function
|
|
47
|
-
while (1) switch (
|
|
142
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
143
|
+
var _currentStep$step, _resources, skipResourceStep, key;
|
|
144
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
145
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
48
146
|
case 0:
|
|
49
|
-
|
|
50
|
-
return checkSkipResourceStep();
|
|
51
|
-
case 2:
|
|
52
|
-
skipResourceStep = _context.sent;
|
|
147
|
+
_context2.prev = 0;
|
|
53
148
|
// 获取资源列表数据
|
|
54
149
|
_resources = getResourceList(); // 获取自动分配资源
|
|
55
|
-
|
|
56
|
-
|
|
150
|
+
_context2.next = 4;
|
|
151
|
+
return autoSelectAllProductResources();
|
|
152
|
+
case 4:
|
|
57
153
|
// 根据自动分配之后的资源重新拉取资源列表
|
|
58
154
|
getResourceList();
|
|
59
|
-
|
|
155
|
+
|
|
156
|
+
// 检测资源步骤是否跳过
|
|
157
|
+
_context2.next = 7;
|
|
158
|
+
return checkSkipResourceStep();
|
|
159
|
+
case 7:
|
|
160
|
+
skipResourceStep = _context2.sent;
|
|
161
|
+
// 更新步骤是否有跳过标识
|
|
162
|
+
key = currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key;
|
|
163
|
+
updateStep(key, {
|
|
164
|
+
index: currentStep === null || currentStep === void 0 ? void 0 : currentStep.index,
|
|
165
|
+
isSkip: skipResourceStep
|
|
166
|
+
});
|
|
60
167
|
if (!skipResourceStep) {
|
|
61
|
-
|
|
168
|
+
_context2.next = 12;
|
|
62
169
|
break;
|
|
63
170
|
}
|
|
64
|
-
|
|
65
|
-
if (hasResourceFormId(newCarts)) {
|
|
66
|
-
description = locales.getText('pisell2.appointment.fill-form');
|
|
67
|
-
addStep({
|
|
68
|
-
index: index,
|
|
69
|
-
key: 'fill-form',
|
|
70
|
-
description: description
|
|
71
|
-
});
|
|
72
|
-
} else {
|
|
73
|
-
removeStep('fill-form');
|
|
74
|
-
}
|
|
75
|
-
appointmentBooking.next();
|
|
76
|
-
return _context.abrupt("return", true);
|
|
171
|
+
return _context2.abrupt("return", true);
|
|
77
172
|
case 12:
|
|
78
|
-
return
|
|
79
|
-
case
|
|
173
|
+
return _context2.abrupt("return", false);
|
|
174
|
+
case 15:
|
|
175
|
+
_context2.prev = 15;
|
|
176
|
+
_context2.t0 = _context2["catch"](0);
|
|
177
|
+
case 17:
|
|
80
178
|
case "end":
|
|
81
|
-
return
|
|
179
|
+
return _context2.stop();
|
|
82
180
|
}
|
|
83
|
-
},
|
|
181
|
+
}, _callee2, null, [[0, 15]]);
|
|
84
182
|
}));
|
|
85
183
|
return function checkAndSkipResourceStep() {
|
|
86
184
|
return _ref.apply(this, arguments);
|
|
@@ -88,13 +186,6 @@ var Resource = function Resource() {
|
|
|
88
186
|
}();
|
|
89
187
|
checkAndSkipResourceStep();
|
|
90
188
|
}, []);
|
|
91
|
-
useEffect(function () {
|
|
92
|
-
console.log(resourceOtherParams, 'resourceOtherParams');
|
|
93
|
-
// 无可用时间提示
|
|
94
|
-
// if (resourceOtherParams?.errorList?.length > 0) {
|
|
95
|
-
// return Toast(locales.getText('pisell2.appointment.no.available.time'));
|
|
96
|
-
// }
|
|
97
|
-
}, [resourceOtherParams === null || resourceOtherParams === void 0 ? void 0 : resourceOtherParams.errorList]);
|
|
98
189
|
var anyResource = [{
|
|
99
190
|
id: 0,
|
|
100
191
|
image: guestsImg,
|
|
@@ -152,5 +243,5 @@ var Resource = function Resource() {
|
|
|
152
243
|
return _onClick && _onClick(e);
|
|
153
244
|
}
|
|
154
245
|
}));
|
|
155
|
-
};
|
|
246
|
+
});
|
|
156
247
|
export default Resource;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 滚动到第一个错误卡片
|
|
3
|
+
* @param {string} selector - 错误卡片的 class 选择器
|
|
4
|
+
*/
|
|
5
|
+
export var scrollToFirstErrorCard = function scrollToFirstErrorCard() {
|
|
6
|
+
var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '.pisell-lowcode-product-select-resource-error';
|
|
7
|
+
setTimeout(function () {
|
|
8
|
+
var errorCard = document.querySelector(selector);
|
|
9
|
+
if (errorCard) {
|
|
10
|
+
errorCard.scrollIntoView({
|
|
11
|
+
behavior: 'smooth',
|
|
12
|
+
block: 'center'
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}, 0);
|
|
16
|
+
};
|
|
@@ -13,7 +13,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
13
13
|
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; }
|
|
14
14
|
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; } }
|
|
15
15
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
16
|
-
import React, {
|
|
16
|
+
import React, { useState, useEffect, forwardRef, useImperativeHandle } from 'react';
|
|
17
17
|
import dayjs from 'dayjs';
|
|
18
18
|
import { locales } from '@pisell/utils';
|
|
19
19
|
import { PisellToast } from '@pisell/materials';
|
|
@@ -22,12 +22,7 @@ import useEngineContext from "../../../../hooks/useEngineContext";
|
|
|
22
22
|
import { useAppointmentBookingContext } from "../../context";
|
|
23
23
|
import { useAppointmentBooking, useAppointmentBookingSetting, useAppointmentBookingProduct, useAppointmentBookingStep } from "../../hooks";
|
|
24
24
|
import "./index.less";
|
|
25
|
-
var Services = function
|
|
26
|
-
var searchRef = useRef();
|
|
27
|
-
var _useState = useState(''),
|
|
28
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
-
search = _useState2[0],
|
|
30
|
-
setSearch = _useState2[1];
|
|
25
|
+
var Services = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
31
26
|
var context = useEngineContext();
|
|
32
27
|
var _ref = context.appHelper || {},
|
|
33
28
|
utils = _ref.utils;
|
|
@@ -41,14 +36,21 @@ var Services = function Services() {
|
|
|
41
36
|
removeStep = _useAppointmentBookin3.removeStep;
|
|
42
37
|
var _useAppointmentBookin4 = useAppointmentBookingContext(),
|
|
43
38
|
currentStep = _useAppointmentBookin4.currentStep;
|
|
44
|
-
var
|
|
39
|
+
var _useState = useState(null),
|
|
40
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
41
|
+
products = _useState2[0],
|
|
42
|
+
setProducts = _useState2[1];
|
|
43
|
+
var _useState3 = useState(false),
|
|
45
44
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
loading = _useState4[0],
|
|
46
|
+
setLoading = _useState4[1];
|
|
47
|
+
useImperativeHandle(ref, function () {
|
|
48
|
+
return {
|
|
49
|
+
next: function next() {
|
|
50
|
+
appointmentBooking.next();
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
});
|
|
52
54
|
useEffect(function () {
|
|
53
55
|
setLoading(true);
|
|
54
56
|
getProducts().then(function (res) {
|
|
@@ -172,22 +174,6 @@ var Services = function Services() {
|
|
|
172
174
|
return _ref2.apply(this, arguments);
|
|
173
175
|
};
|
|
174
176
|
}();
|
|
175
|
-
|
|
176
|
-
// const renderList = useMemo(() => {
|
|
177
|
-
// let _list = products || [];
|
|
178
|
-
|
|
179
|
-
// if (!_list.length) return [];
|
|
180
|
-
|
|
181
|
-
// const isIncludes = (str: string) => {
|
|
182
|
-
// return str.toLowerCase().indexOf(search.toLowerCase()) !== -1;
|
|
183
|
-
// };
|
|
184
|
-
|
|
185
|
-
// return formatProductListByCategory(
|
|
186
|
-
// _list,
|
|
187
|
-
// search ? (item: any) => isIncludes(item.title) : undefined
|
|
188
|
-
// );
|
|
189
|
-
// }, [search, products]);
|
|
190
|
-
|
|
191
177
|
return /*#__PURE__*/React.createElement("div", {
|
|
192
178
|
className: "appointment-service-wrap"
|
|
193
179
|
}, /*#__PURE__*/React.createElement(ProductSelect, {
|
|
@@ -199,53 +185,12 @@ var Services = function Services() {
|
|
|
199
185
|
token: {
|
|
200
186
|
colorPrimary: 'var(--theme-color)',
|
|
201
187
|
containerBg: '#FFFFFF',
|
|
202
|
-
// tab
|
|
203
188
|
tabItemBg: '#F2F4F7',
|
|
204
189
|
tabItemHoverBg: '#F2F4F7',
|
|
205
190
|
tabItemActiveBg: 'var(--theme-color)',
|
|
206
|
-
// category
|
|
207
191
|
categoryTextColor: '#1B1B1B',
|
|
208
192
|
cardSelectedBg: 'var(--theme-color)'
|
|
209
193
|
}
|
|
210
194
|
}));
|
|
211
|
-
|
|
212
|
-
// return (
|
|
213
|
-
// <div className="appointment-service-wrap">
|
|
214
|
-
// <div className="appointment-service-search-wrap">
|
|
215
|
-
// <Input
|
|
216
|
-
// ref={searchRef}
|
|
217
|
-
// prefix={<SearchLg />}
|
|
218
|
-
// style={{ marginTop: 16, height: 44 }}
|
|
219
|
-
// placeholder={locales.getText('pisell2.event.search')}
|
|
220
|
-
// allowClear
|
|
221
|
-
// value={search}
|
|
222
|
-
// onChange={(e) => {
|
|
223
|
-
// setSearch(e.target.value);
|
|
224
|
-
// }}
|
|
225
|
-
// />
|
|
226
|
-
// </div>
|
|
227
|
-
|
|
228
|
-
// {!products ? (
|
|
229
|
-
// <Skeleton
|
|
230
|
-
// loading={true}
|
|
231
|
-
// active
|
|
232
|
-
// style={{ padding: isMobile() ? '20px' : 0 }}
|
|
233
|
-
// />
|
|
234
|
-
// ) : products?.length > 0 ? (
|
|
235
|
-
// <TabProduct
|
|
236
|
-
// list={renderList}
|
|
237
|
-
// amountSymbol={'$'}
|
|
238
|
-
// onChange={handleSelectProduct}
|
|
239
|
-
// scrollDom={'.parallel-booking-wrap'}
|
|
240
|
-
// />
|
|
241
|
-
// ) : (
|
|
242
|
-
// <PisellEmpty
|
|
243
|
-
// description={locales.getText(
|
|
244
|
-
// 'pisell2.appointment.booking.empty.service'
|
|
245
|
-
// )}
|
|
246
|
-
// />
|
|
247
|
-
// )}
|
|
248
|
-
// </div>
|
|
249
|
-
// );
|
|
250
|
-
};
|
|
195
|
+
});
|
|
251
196
|
export default Services;
|
|
@@ -8,13 +8,14 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
8
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
9
|
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
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
import React, { useEffect, useState } from 'react';
|
|
11
|
+
import React, { useEffect, useState, forwardRef, useImperativeHandle } from 'react';
|
|
12
12
|
import { Iconfont, PisellEmpty } from '@pisell/materials';
|
|
13
13
|
import { locales } from '@pisell/utils';
|
|
14
14
|
import { useAppointmentBookingContext } from "../../context";
|
|
15
15
|
import { useAppointmentBookingResource } from "../../hooks";
|
|
16
|
+
import { Toast } from "../../utils";
|
|
16
17
|
import "./index.less";
|
|
17
|
-
var
|
|
18
|
+
var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
18
19
|
var _useState = useState(''),
|
|
19
20
|
_useState2 = _slicedToArray(_useState, 2),
|
|
20
21
|
selectedResource = _useState2[0],
|
|
@@ -28,6 +29,18 @@ var Resource = function Resource() {
|
|
|
28
29
|
var _useAppointmentBookin2 = useAppointmentBookingResource(),
|
|
29
30
|
getResourceTimeSlot = _useAppointmentBookin2.getResourceTimeSlot,
|
|
30
31
|
getResourceList = _useAppointmentBookin2.getResourceList;
|
|
32
|
+
useImperativeHandle(ref, function () {
|
|
33
|
+
return {
|
|
34
|
+
next: function next() {
|
|
35
|
+
var isUnSelectedTimes = appointmentBooking.checkCartItems('date');
|
|
36
|
+
if ((isUnSelectedTimes === null || isUnSelectedTimes === void 0 ? void 0 : isUnSelectedTimes.length) > 0) {
|
|
37
|
+
Toast(locales.getText('pisell2.appointment.unselect.time'));
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
appointmentBooking.next();
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
});
|
|
31
44
|
useEffect(function () {
|
|
32
45
|
getResourceTimeSlot();
|
|
33
46
|
}, []);
|
|
@@ -103,5 +116,5 @@ var Resource = function Resource() {
|
|
|
103
116
|
})) : /*#__PURE__*/React.createElement(PisellEmpty, {
|
|
104
117
|
description: locales.getText('pisell2.appointment.unselect.time')
|
|
105
118
|
});
|
|
106
|
-
};
|
|
107
|
-
export default
|
|
119
|
+
});
|
|
120
|
+
export default TimeSlicing;
|
|
@@ -53,6 +53,14 @@ export var AppointmentBookingProvider = function AppointmentBookingProvider(_ref
|
|
|
53
53
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
54
54
|
stepParams = _useState20[0],
|
|
55
55
|
setStepParams = _useState20[1];
|
|
56
|
+
var _useState21 = useState(false),
|
|
57
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
58
|
+
loading = _useState22[0],
|
|
59
|
+
setLoading = _useState22[1];
|
|
60
|
+
var _useState23 = useState(false),
|
|
61
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
62
|
+
isErrorHolder = _useState24[0],
|
|
63
|
+
setIsErrorHolder = _useState24[1];
|
|
56
64
|
var _useEngineContext = useEngineContext(),
|
|
57
65
|
appHelper = _useEngineContext.appHelper;
|
|
58
66
|
var symbolic = appHelper === null || appHelper === void 0 || (_appHelper$utils = appHelper.utils) === null || _appHelper$utils === void 0 ? void 0 : _appHelper$utils.getSymbolic();
|
|
@@ -60,7 +68,6 @@ export var AppointmentBookingProvider = function AppointmentBookingProvider(_ref
|
|
|
60
68
|
var currentStep = appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.getCurrentStep();
|
|
61
69
|
setCurrentStep(currentStep);
|
|
62
70
|
}, []);
|
|
63
|
-
console.log(3234234, times, resources);
|
|
64
71
|
var value = {
|
|
65
72
|
appointmentBooking: appointmentBooking,
|
|
66
73
|
times: times,
|
|
@@ -84,7 +91,11 @@ export var AppointmentBookingProvider = function AppointmentBookingProvider(_ref
|
|
|
84
91
|
currentResource: currentResource,
|
|
85
92
|
setCurrentResource: setCurrentResource,
|
|
86
93
|
setStepParams: setStepParams,
|
|
87
|
-
stepParams: stepParams
|
|
94
|
+
stepParams: stepParams,
|
|
95
|
+
loading: loading,
|
|
96
|
+
setLoading: setLoading,
|
|
97
|
+
isErrorHolder: isErrorHolder,
|
|
98
|
+
setIsErrorHolder: setIsErrorHolder
|
|
88
99
|
};
|
|
89
100
|
return /*#__PURE__*/React.createElement(AppointmentBookingContext.Provider, {
|
|
90
101
|
value: value
|
|
@@ -17,7 +17,8 @@ import "./index.less";
|
|
|
17
17
|
var DepositModal = function DepositModal(props) {
|
|
18
18
|
var open = props.open,
|
|
19
19
|
onCancel = props.onCancel,
|
|
20
|
-
item = props.item
|
|
20
|
+
item = props.item,
|
|
21
|
+
onChange = props.onChange;
|
|
21
22
|
var _useAppointmentBookin = useAppointmentBookingContext(),
|
|
22
23
|
appointmentBooking = _useAppointmentBookin.appointmentBooking;
|
|
23
24
|
var _useState = useState(null),
|
|
@@ -51,21 +52,23 @@ var DepositModal = function DepositModal(props) {
|
|
|
51
52
|
_yield$appointmentBoo = _context.sent;
|
|
52
53
|
data = _yield$appointmentBoo.data;
|
|
53
54
|
setPolicy(data);
|
|
54
|
-
|
|
55
|
+
onChange(data);
|
|
56
|
+
_context.next = 14;
|
|
55
57
|
break;
|
|
56
|
-
case
|
|
57
|
-
_context.prev =
|
|
58
|
+
case 10:
|
|
59
|
+
_context.prev = 10;
|
|
58
60
|
_context.t0 = _context["catch"](1);
|
|
59
61
|
console.log(_context.t0);
|
|
60
|
-
|
|
61
|
-
|
|
62
|
+
onChange(_context.t0);
|
|
63
|
+
case 14:
|
|
64
|
+
_context.prev = 14;
|
|
62
65
|
setLoading(false);
|
|
63
|
-
return _context.finish(
|
|
64
|
-
case
|
|
66
|
+
return _context.finish(14);
|
|
67
|
+
case 17:
|
|
65
68
|
case "end":
|
|
66
69
|
return _context.stop();
|
|
67
70
|
}
|
|
68
|
-
}, _callee, null, [[1,
|
|
71
|
+
}, _callee, null, [[1, 10, 14, 17]]);
|
|
69
72
|
}));
|
|
70
73
|
return function getPolicy(_x) {
|
|
71
74
|
return _ref.apply(this, arguments);
|
|
@@ -13,6 +13,7 @@ export declare const useAppointmentBookingStep: () => {
|
|
|
13
13
|
stepList: any;
|
|
14
14
|
removeStep: (key: string) => any;
|
|
15
15
|
addStep: (props: any, stepKey?: string) => any;
|
|
16
|
+
updateStep: (key: string, step: any) => void;
|
|
16
17
|
};
|
|
17
18
|
/**
|
|
18
19
|
* @title: 获取商品数据
|
|
@@ -83,7 +84,7 @@ export declare const useAppointmentBookingResource: () => {
|
|
|
83
84
|
* @Date: 2025-04-21 11:47
|
|
84
85
|
*/
|
|
85
86
|
export declare const useIsSkipResourceStep: () => {
|
|
86
|
-
checkSkipResourceStep: () => Promise<boolean>;
|
|
87
|
+
checkSkipResourceStep: (isSkipUpdateFormStep?: boolean) => Promise<boolean>;
|
|
87
88
|
};
|
|
88
89
|
/**
|
|
89
90
|
* @title: 获取预约配置
|