@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,4 @@
|
|
|
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
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
2
|
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
3
|
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
4
|
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; }
|
|
@@ -28,13 +27,15 @@ import { useAppointmentBookingCart, useAppointmentBookingStep, useAppointmentBoo
|
|
|
28
27
|
import "./index.less";
|
|
29
28
|
var Layout = function Layout() {
|
|
30
29
|
var _currentStep$step, _currentStep$step3, _currentStep$step4, _currentStep$step6, _currentStep$step7;
|
|
30
|
+
var stepRef = useRef();
|
|
31
31
|
var formRef = useRef();
|
|
32
32
|
var _useAppointmentBookin = useAppointmentBookingContext(),
|
|
33
33
|
currentStep = _useAppointmentBookin.currentStep,
|
|
34
34
|
setResourceOtherParams = _useAppointmentBookin.setResourceOtherParams,
|
|
35
35
|
resourceOtherParams = _useAppointmentBookin.resourceOtherParams,
|
|
36
36
|
setIsAgreeDepositPolicy = _useAppointmentBookin.setIsAgreeDepositPolicy,
|
|
37
|
-
appointmentBooking = _useAppointmentBookin.appointmentBooking
|
|
37
|
+
appointmentBooking = _useAppointmentBookin.appointmentBooking,
|
|
38
|
+
setLoading = _useAppointmentBookin.setLoading;
|
|
38
39
|
var _useAppointmentBookin2 = useAppointmentBookingSetting(),
|
|
39
40
|
getLoadAllSchedule = _useAppointmentBookin2.getLoadAllSchedule,
|
|
40
41
|
isDateSelectedFirst = _useAppointmentBookin2.isDateSelectedFirst,
|
|
@@ -45,7 +46,7 @@ var Layout = function Layout() {
|
|
|
45
46
|
getHolders = _useAppointmentBookin4.getHolders;
|
|
46
47
|
var _useAppointmentBookin5 = useAppointmentBookingStep(),
|
|
47
48
|
removeStep = _useAppointmentBookin5.removeStep,
|
|
48
|
-
|
|
49
|
+
stepList = _useAppointmentBookin5.stepList;
|
|
49
50
|
|
|
50
51
|
// 不要删除
|
|
51
52
|
useAppointmentBookingCart();
|
|
@@ -60,15 +61,17 @@ var Layout = function Layout() {
|
|
|
60
61
|
};
|
|
61
62
|
}, []);
|
|
62
63
|
useEffect(function () {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
try {
|
|
65
|
+
if (isFormSubject) {
|
|
66
|
+
removeStep('select-guest');
|
|
67
|
+
} else {
|
|
68
|
+
appointmentBooking.addStep({
|
|
69
|
+
index: (currentStep === null || currentStep === void 0 ? void 0 : currentStep.index) + 1,
|
|
70
|
+
key: 'select-guest',
|
|
71
|
+
description: locales.getText('pisell2.appointment.add-guests')
|
|
72
|
+
}, 'select-service');
|
|
73
|
+
}
|
|
74
|
+
} catch (error) {}
|
|
72
75
|
}, [isFormSubject]);
|
|
73
76
|
useEffect(function () {
|
|
74
77
|
if (isFormSubject && isLogin) {
|
|
@@ -76,6 +79,11 @@ var Layout = function Layout() {
|
|
|
76
79
|
}
|
|
77
80
|
}, [isFormSubject, isLogin]);
|
|
78
81
|
useEffect(function () {
|
|
82
|
+
if (!(currentStep !== null && currentStep !== void 0 && currentStep.step)) return;
|
|
83
|
+
|
|
84
|
+
// 清空底部按钮的loading
|
|
85
|
+
setLoading(false);
|
|
86
|
+
|
|
79
87
|
// 清空资源分配失败数据
|
|
80
88
|
setResourceOtherParams(_objectSpread(_objectSpread({}, resourceOtherParams), {}, {
|
|
81
89
|
errorList: null
|
|
@@ -85,12 +93,6 @@ var Layout = function Layout() {
|
|
|
85
93
|
behavior: 'smooth'
|
|
86
94
|
});
|
|
87
95
|
}, [currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key]);
|
|
88
|
-
|
|
89
|
-
// 传递 submit 方法给 Footer
|
|
90
|
-
var handleFormSubmit = function handleFormSubmit() {
|
|
91
|
-
var _formRef$current, _formRef$current$subm;
|
|
92
|
-
(_formRef$current = formRef.current) === null || _formRef$current === void 0 || (_formRef$current$subm = _formRef$current.submit) === null || _formRef$current$subm === void 0 || _formRef$current$subm.call(_formRef$current);
|
|
93
|
-
};
|
|
94
96
|
var Com = useMemo(function () {
|
|
95
97
|
var _currentStep$step2;
|
|
96
98
|
var key = currentStep === null || currentStep === void 0 || (_currentStep$step2 = currentStep.step) === null || _currentStep$step2 === void 0 ? void 0 : _currentStep$step2.key;
|
|
@@ -107,20 +109,17 @@ var Layout = function Layout() {
|
|
|
107
109
|
// 时间切片
|
|
108
110
|
'select-time': TimeSlicing,
|
|
109
111
|
// 填写表单
|
|
110
|
-
'fill-form':
|
|
111
|
-
return /*#__PURE__*/React.createElement(Form, _extends({
|
|
112
|
-
ref: formRef
|
|
113
|
-
}, props));
|
|
114
|
-
},
|
|
112
|
+
'fill-form': Form,
|
|
115
113
|
// 确认信息
|
|
116
114
|
'confirm-information': ConfirmInformation
|
|
117
115
|
};
|
|
118
116
|
var Com = components[key];
|
|
119
117
|
return /*#__PURE__*/React.createElement(Com, {
|
|
120
118
|
onChange: setParams,
|
|
121
|
-
params: params
|
|
119
|
+
params: params,
|
|
120
|
+
ref: stepRef
|
|
122
121
|
});
|
|
123
|
-
}, [currentStep === null || currentStep === void 0 || (_currentStep$step3 = currentStep.step) === null || _currentStep$step3 === void 0 ? void 0 : _currentStep$step3.key]);
|
|
122
|
+
}, [currentStep === null || currentStep === void 0 || (_currentStep$step3 = currentStep.step) === null || _currentStep$step3 === void 0 ? void 0 : _currentStep$step3.key, stepRef]);
|
|
124
123
|
|
|
125
124
|
/**
|
|
126
125
|
* @title: 动态计算中间内容区域的高度
|
|
@@ -157,15 +156,23 @@ var Layout = function Layout() {
|
|
|
157
156
|
return /*#__PURE__*/React.createElement("div", {
|
|
158
157
|
className: "parallel-content-right"
|
|
159
158
|
}, /*#__PURE__*/React.createElement(CartItem, {
|
|
160
|
-
|
|
159
|
+
onNext: function onNext() {
|
|
160
|
+
var _stepRef$current, _stepRef$current$next;
|
|
161
|
+
return stepRef === null || stepRef === void 0 || (_stepRef$current = stepRef.current) === null || _stepRef$current === void 0 || (_stepRef$current$next = _stepRef$current.next) === null || _stepRef$current$next === void 0 ? void 0 : _stepRef$current$next.call(_stepRef$current);
|
|
162
|
+
}
|
|
161
163
|
}));
|
|
162
164
|
}, [isDateSelectedFirst, currentStep === null || currentStep === void 0 || (_currentStep$step6 = currentStep.step) === null || _currentStep$step6 === void 0 ? void 0 : _currentStep$step6.key]);
|
|
163
165
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null), /*#__PURE__*/React.createElement("div", {
|
|
164
166
|
className: "parallel-content-wrap ".concat(isMobile() ? 'parallel-content-mobile-wrap' : '')
|
|
165
167
|
}, /*#__PURE__*/React.createElement("div", {
|
|
166
168
|
className: "parallel-content-left"
|
|
167
|
-
}, Com), isShowCartCom), isMobile() && (currentStep === null || currentStep === void 0 || (_currentStep$step7 = currentStep.step) === null || _currentStep$step7 === void 0 ? void 0 : _currentStep$step7.key) !== 'confirm-information' ? /*#__PURE__*/React.createElement(Footer
|
|
168
|
-
|
|
169
|
+
}, Com), isShowCartCom), isMobile() && (currentStep === null || currentStep === void 0 || (_currentStep$step7 = currentStep.step) === null || _currentStep$step7 === void 0 ? void 0 : _currentStep$step7.key) !== 'confirm-information' ? /*#__PURE__*/React.createElement(Footer
|
|
170
|
+
// isOpen={params?.isOpen}
|
|
171
|
+
, {
|
|
172
|
+
onNext: function onNext() {
|
|
173
|
+
var _stepRef$current2, _stepRef$current2$nex;
|
|
174
|
+
return stepRef === null || stepRef === void 0 || (_stepRef$current2 = stepRef.current) === null || _stepRef$current2 === void 0 || (_stepRef$current2$nex = _stepRef$current2.next) === null || _stepRef$current2$nex === void 0 ? void 0 : _stepRef$current2$nex.call(_stepRef$current2);
|
|
175
|
+
}
|
|
169
176
|
}) : null);
|
|
170
177
|
};
|
|
171
178
|
export default Layout;
|
|
@@ -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, { useState, useEffect } from 'react';
|
|
16
|
+
import React, { useState, useEffect, forwardRef, useImperativeHandle } from 'react';
|
|
17
17
|
import { Skeleton } from 'antd';
|
|
18
18
|
import Dayjs from 'dayjs';
|
|
19
19
|
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
|
|
@@ -22,9 +22,10 @@ import classNames from 'classnames';
|
|
|
22
22
|
import { locales, isMobile } from '@pisell/utils';
|
|
23
23
|
import { CaretLeftOutlined, CaretRightOutlined } from '@ant-design/icons';
|
|
24
24
|
import { useAppointmentBookingContext } from "../../context";
|
|
25
|
+
import { Toast } from "../../utils";
|
|
25
26
|
import { useAppointmentBookingSetting } from "../../hooks";
|
|
26
27
|
import "./index.less";
|
|
27
|
-
var
|
|
28
|
+
var Date = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
28
29
|
var _useState = useState(false),
|
|
29
30
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30
31
|
loading = _useState2[0],
|
|
@@ -50,6 +51,38 @@ var CalendarDate = function CalendarDate(props) {
|
|
|
50
51
|
customPageId = _useAppointmentBookin2.customPageId,
|
|
51
52
|
getLoadAllSchedule = _useAppointmentBookin2.getLoadAllSchedule,
|
|
52
53
|
channel = _useAppointmentBookin2.channel;
|
|
54
|
+
useImperativeHandle(ref, function () {
|
|
55
|
+
return {
|
|
56
|
+
next: function () {
|
|
57
|
+
var _next2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
58
|
+
var data;
|
|
59
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
60
|
+
while (1) switch (_context.prev = _context.next) {
|
|
61
|
+
case 0:
|
|
62
|
+
_context.next = 2;
|
|
63
|
+
return appointmentBooking.getDateRange();
|
|
64
|
+
case 2:
|
|
65
|
+
data = _context.sent;
|
|
66
|
+
if (data !== null && data !== void 0 && data.length) {
|
|
67
|
+
_context.next = 5;
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
return _context.abrupt("return", Toast(locales.getText('pisell2.appointment.unselect.date')));
|
|
71
|
+
case 5:
|
|
72
|
+
appointmentBooking.next();
|
|
73
|
+
case 6:
|
|
74
|
+
case "end":
|
|
75
|
+
return _context.stop();
|
|
76
|
+
}
|
|
77
|
+
}, _callee);
|
|
78
|
+
}));
|
|
79
|
+
function next() {
|
|
80
|
+
return _next2.apply(this, arguments);
|
|
81
|
+
}
|
|
82
|
+
return next;
|
|
83
|
+
}()
|
|
84
|
+
};
|
|
85
|
+
});
|
|
53
86
|
var weekListText = [locales.getText('pisell2.appointment.sunday'), locales.getText('pisell2.appointment.monday'), locales.getText('pisell2.appointment.tuesday'), locales.getText('pisell2.appointment.wednesday'), locales.getText('pisell2.appointment.thursday'), locales.getText('pisell2.appointment.friday'), locales.getText('pisell2.appointment.saturday')];
|
|
54
87
|
|
|
55
88
|
// 计算开始渲染的列
|
|
@@ -62,22 +95,22 @@ var CalendarDate = function CalendarDate(props) {
|
|
|
62
95
|
useEffect(function () {
|
|
63
96
|
// 设置当前显示的月份
|
|
64
97
|
var getCurrentMonthData = /*#__PURE__*/function () {
|
|
65
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
98
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
66
99
|
var _data$;
|
|
67
100
|
var data;
|
|
68
|
-
return _regeneratorRuntime().wrap(function
|
|
69
|
-
while (1) switch (
|
|
101
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
102
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
70
103
|
case 0:
|
|
71
|
-
|
|
104
|
+
_context2.next = 2;
|
|
72
105
|
return appointmentBooking.getDateRange();
|
|
73
106
|
case 2:
|
|
74
|
-
data =
|
|
107
|
+
data = _context2.sent;
|
|
75
108
|
setCurrentMonth(Dayjs(data === null || data === void 0 || (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data$.date) || Dayjs());
|
|
76
109
|
case 4:
|
|
77
110
|
case "end":
|
|
78
|
-
return
|
|
111
|
+
return _context2.stop();
|
|
79
112
|
}
|
|
80
|
-
},
|
|
113
|
+
}, _callee2);
|
|
81
114
|
}));
|
|
82
115
|
return function getCurrentMonthData() {
|
|
83
116
|
return _ref.apply(this, arguments);
|
|
@@ -141,56 +174,56 @@ var CalendarDate = function CalendarDate(props) {
|
|
|
141
174
|
* @Date: 2025-04-24 18:31
|
|
142
175
|
*/
|
|
143
176
|
var getDateData = /*#__PURE__*/function () {
|
|
144
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
145
|
-
return _regeneratorRuntime().wrap(function
|
|
146
|
-
while (1) switch (
|
|
177
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
|
|
178
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
179
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
147
180
|
case 0:
|
|
148
181
|
console.log(isDateSelectedFirst, customPageId, params, channel, 'wh7868');
|
|
149
182
|
// 先选日期
|
|
150
183
|
if (!isDateSelectedFirst) {
|
|
151
|
-
|
|
184
|
+
_context3.next = 3;
|
|
152
185
|
break;
|
|
153
186
|
}
|
|
154
|
-
return
|
|
187
|
+
return _context3.abrupt("return", appointmentBooking.loadScheduleAvailableDate(_objectSpread(_objectSpread({}, params), {}, {
|
|
155
188
|
custom_page_id: customPageId,
|
|
156
189
|
channel: channel
|
|
157
190
|
})));
|
|
158
191
|
case 3:
|
|
159
|
-
|
|
192
|
+
_context3.next = 5;
|
|
160
193
|
return appointmentBooking.getAvailableDate(params);
|
|
161
194
|
case 5:
|
|
162
|
-
return
|
|
195
|
+
return _context3.abrupt("return", _context3.sent);
|
|
163
196
|
case 6:
|
|
164
197
|
case "end":
|
|
165
|
-
return
|
|
198
|
+
return _context3.stop();
|
|
166
199
|
}
|
|
167
|
-
},
|
|
200
|
+
}, _callee3);
|
|
168
201
|
}));
|
|
169
202
|
return function getDateData(_x) {
|
|
170
203
|
return _ref2.apply(this, arguments);
|
|
171
204
|
};
|
|
172
205
|
}();
|
|
173
206
|
var getDates = /*#__PURE__*/function () {
|
|
174
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
207
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(date) {
|
|
175
208
|
var startDate, endDate, params, data, selected, _selected$, firstAvailableDate, baseMonthData, updatedDates;
|
|
176
|
-
return _regeneratorRuntime().wrap(function
|
|
177
|
-
while (1) switch (
|
|
209
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
210
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
178
211
|
case 0:
|
|
179
|
-
|
|
212
|
+
_context4.prev = 0;
|
|
180
213
|
startDate = Dayjs(date).startOf('month').format('YYYY-MM-DD');
|
|
181
214
|
endDate = Dayjs(date).endOf('month').format('YYYY-MM-DD');
|
|
182
215
|
params = {
|
|
183
216
|
startDate: startDate,
|
|
184
217
|
endDate: endDate
|
|
185
218
|
};
|
|
186
|
-
|
|
219
|
+
_context4.next = 6;
|
|
187
220
|
return getDateData(params);
|
|
188
221
|
case 6:
|
|
189
|
-
data =
|
|
190
|
-
|
|
222
|
+
data = _context4.sent;
|
|
223
|
+
_context4.next = 9;
|
|
191
224
|
return appointmentBooking.getDateRange();
|
|
192
225
|
case 9:
|
|
193
|
-
selected =
|
|
226
|
+
selected = _context4.sent;
|
|
194
227
|
console.log(data, selected, customPageId, 'getDates');
|
|
195
228
|
if ((selected === null || selected === void 0 ? void 0 : selected.length) > 0) {
|
|
196
229
|
setCurrentDate(selected === null || selected === void 0 || (_selected$ = selected[0]) === null || _selected$ === void 0 ? void 0 : _selected$.date);
|
|
@@ -225,19 +258,19 @@ var CalendarDate = function CalendarDate(props) {
|
|
|
225
258
|
// }
|
|
226
259
|
setLoading(false);
|
|
227
260
|
setDateMonthList(updatedDates);
|
|
228
|
-
|
|
261
|
+
_context4.next = 23;
|
|
229
262
|
break;
|
|
230
263
|
case 18:
|
|
231
|
-
|
|
232
|
-
|
|
264
|
+
_context4.prev = 18;
|
|
265
|
+
_context4.t0 = _context4["catch"](0);
|
|
233
266
|
setLoading(false);
|
|
234
267
|
setDateMonthList([]);
|
|
235
|
-
console.log(
|
|
268
|
+
console.log(_context4.t0, 'wh978968234234');
|
|
236
269
|
case 23:
|
|
237
270
|
case "end":
|
|
238
|
-
return
|
|
271
|
+
return _context4.stop();
|
|
239
272
|
}
|
|
240
|
-
},
|
|
273
|
+
}, _callee4, null, [[0, 18]]);
|
|
241
274
|
}));
|
|
242
275
|
return function getDates(_x2) {
|
|
243
276
|
return _ref3.apply(this, arguments);
|
|
@@ -341,5 +374,5 @@ var CalendarDate = function CalendarDate(props) {
|
|
|
341
374
|
className: classNames('day-text')
|
|
342
375
|
}, Dayjs(day.date).format('D')));
|
|
343
376
|
})))));
|
|
344
|
-
};
|
|
345
|
-
export default
|
|
377
|
+
});
|
|
378
|
+
export default Date;
|
|
@@ -15,17 +15,20 @@ import Total from "../Cart/Item/Total";
|
|
|
15
15
|
import "./index.less";
|
|
16
16
|
var Footer = function Footer(_ref) {
|
|
17
17
|
var _currentStep$step;
|
|
18
|
-
var
|
|
18
|
+
var onNext = _ref.onNext,
|
|
19
|
+
isOpen = _ref.isOpen;
|
|
19
20
|
var _useAppointmentBookin = useAppointmentBookingContext(),
|
|
20
21
|
carts = _useAppointmentBookin.carts,
|
|
21
|
-
currentStep = _useAppointmentBookin.currentStep
|
|
22
|
+
currentStep = _useAppointmentBookin.currentStep,
|
|
23
|
+
isErrorHolder = _useAppointmentBookin.isErrorHolder,
|
|
24
|
+
setIsErrorHolder = _useAppointmentBookin.setIsErrorHolder;
|
|
22
25
|
var _useState = useState(false),
|
|
23
26
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24
27
|
open = _useState2[0],
|
|
25
28
|
setOpen = _useState2[1];
|
|
26
29
|
useEffect(function () {
|
|
27
|
-
setOpen(false);
|
|
28
|
-
}, [currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key]);
|
|
30
|
+
setOpen(isErrorHolder || false);
|
|
31
|
+
}, [currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key, isErrorHolder]);
|
|
29
32
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SectionFooters, {
|
|
30
33
|
className: "section-footer-wrap",
|
|
31
34
|
left: /*#__PURE__*/React.createElement(Total, {
|
|
@@ -46,16 +49,15 @@ var Footer = function Footer(_ref) {
|
|
|
46
49
|
src: shoppingCartSvg,
|
|
47
50
|
preview: false
|
|
48
51
|
}))), /*#__PURE__*/React.createElement(ContinueButton, {
|
|
49
|
-
|
|
50
|
-
onIsErrorResource: function onIsErrorResource(val) {
|
|
51
|
-
return setOpen(val || false);
|
|
52
|
-
}
|
|
52
|
+
onNext: onNext
|
|
53
53
|
}))
|
|
54
54
|
}), /*#__PURE__*/React.createElement(Cart, {
|
|
55
55
|
open: open,
|
|
56
56
|
onCancel: function onCancel() {
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
setOpen(false);
|
|
58
|
+
setIsErrorHolder(false);
|
|
59
|
+
},
|
|
60
|
+
onNext: onNext
|
|
59
61
|
}));
|
|
60
62
|
};
|
|
61
63
|
export default Footer;
|
|
@@ -37,24 +37,52 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37
37
|
setFormStatus = _useState8[1];
|
|
38
38
|
var _useAppointmentBookin = useAppointmentBookingContext(),
|
|
39
39
|
carts = _useAppointmentBookin.carts,
|
|
40
|
-
appointmentBooking = _useAppointmentBookin.appointmentBooking
|
|
40
|
+
appointmentBooking = _useAppointmentBookin.appointmentBooking,
|
|
41
|
+
setLoading = _useAppointmentBookin.setLoading;
|
|
41
42
|
var _useAppointmentBookin2 = useAppointmentBookingResource(),
|
|
42
43
|
getResourceList = _useAppointmentBookin2.getResourceList;
|
|
43
44
|
var _useAppointmentBookin3 = useAppointmentBookingSetting(),
|
|
44
45
|
setOtherData = _useAppointmentBookin3.setOtherData,
|
|
45
46
|
getOtherData = _useAppointmentBookin3.getOtherData;
|
|
47
|
+
useImperativeHandle(ref, function () {
|
|
48
|
+
return {
|
|
49
|
+
next: function next() {
|
|
50
|
+
var _manualRef$current, _manualRef$current$su;
|
|
51
|
+
setLoading(true);
|
|
52
|
+
(_manualRef$current = manualRef.current) === null || _manualRef$current === void 0 || (_manualRef$current$su = _manualRef$current.submit) === null || _manualRef$current$su === void 0 || _manualRef$current$su.call(_manualRef$current);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
});
|
|
46
56
|
var key = 'booking_form';
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @title: 获取资源列表
|
|
60
|
+
* @description:
|
|
61
|
+
* @param {*} useMemo
|
|
62
|
+
* @return {*}
|
|
63
|
+
* @Author: WangHan
|
|
64
|
+
* @Date: 2025-05-06 10:00
|
|
65
|
+
*/
|
|
47
66
|
var resources = useMemo(function () {
|
|
48
67
|
var _resource = getResourceList();
|
|
49
68
|
return (_resource === null || _resource === void 0 ? void 0 : _resource.resources) || [];
|
|
50
69
|
}, []);
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @title: 获取本地存储表单
|
|
73
|
+
* @description:
|
|
74
|
+
* @param {*} useMemo
|
|
75
|
+
* @return {*}
|
|
76
|
+
* @Author: WangHan
|
|
77
|
+
* @Date: 2025-05-06 10:00
|
|
78
|
+
*/
|
|
51
79
|
var formStorage = useMemo(function () {
|
|
52
80
|
return getOtherData(key);
|
|
53
81
|
}, []);
|
|
54
82
|
var newCarts = formatCarts(carts, resources);
|
|
55
83
|
var forms = useMemo(function () {
|
|
56
84
|
if (!(newCarts !== null && newCarts !== void 0 && newCarts.length) || !(resources !== null && resources !== void 0 && resources.length)) return [];
|
|
57
|
-
return formatForms(newCarts);
|
|
85
|
+
return formatForms(newCarts) || [];
|
|
58
86
|
}, [newCarts, resources]);
|
|
59
87
|
var currentForm = useMemo(function () {
|
|
60
88
|
return forms === null || forms === void 0 ? void 0 : forms[currentFormIndex];
|
|
@@ -80,6 +108,7 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
80
108
|
// 如果下一个表单没有id但有协议,直接弹协议
|
|
81
109
|
if (!(forms !== null && forms !== void 0 && (_forms$nextIndex = forms[nextIndex]) !== null && _forms$nextIndex !== void 0 && _forms$nextIndex.form_id) && forms !== null && forms !== void 0 && (_forms$nextIndex2 = forms[nextIndex]) !== null && _forms$nextIndex2 !== void 0 && _forms$nextIndex2.policy_id) {
|
|
82
110
|
var _forms$nextIndex3;
|
|
111
|
+
setLoading(true);
|
|
83
112
|
setAgreementContent({
|
|
84
113
|
id: forms === null || forms === void 0 || (_forms$nextIndex3 = forms[nextIndex]) === null || _forms$nextIndex3 === void 0 ? void 0 : _forms$nextIndex3.policy_id
|
|
85
114
|
});
|
|
@@ -99,6 +128,9 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
99
128
|
* @Date: 2025-04-26 18:39
|
|
100
129
|
*/
|
|
101
130
|
var updateFormStatus = function updateFormStatus(status) {
|
|
131
|
+
if (status === 'error') {
|
|
132
|
+
setLoading(false);
|
|
133
|
+
}
|
|
102
134
|
var newFormStatus = updateLists(formStatus, 'id', currentForm === null || currentForm === void 0 ? void 0 : currentForm.form_id, {
|
|
103
135
|
status: status
|
|
104
136
|
});
|
|
@@ -157,14 +189,6 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
157
189
|
setShowAgreement(false);
|
|
158
190
|
goToNextForm();
|
|
159
191
|
};
|
|
160
|
-
useImperativeHandle(ref, function () {
|
|
161
|
-
return {
|
|
162
|
-
submit: function submit() {
|
|
163
|
-
var _manualRef$current, _manualRef$current$su;
|
|
164
|
-
(_manualRef$current = manualRef.current) === null || _manualRef$current === void 0 || (_manualRef$current$su = _manualRef$current.submit) === null || _manualRef$current$su === void 0 || _manualRef$current$su.call(_manualRef$current);
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
});
|
|
168
192
|
return /*#__PURE__*/React.createElement(React.Fragment, null, currentForm !== null && currentForm !== void 0 && currentForm.form_id ? /*#__PURE__*/React.createElement("div", {
|
|
169
193
|
className: "appointment-form-wrap"
|
|
170
194
|
}, /*#__PURE__*/React.createElement(FormCard, {
|
|
@@ -189,12 +213,15 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
189
213
|
onFormValueChange: function onFormValueChange(values) {
|
|
190
214
|
console.log(values, 'onFormValueChange');
|
|
191
215
|
},
|
|
192
|
-
defaultValues: formStorage === null || formStorage === void 0 ? void 0 : formStorage[currentForm === null || currentForm === void 0 ? void 0 : currentForm.id],
|
|
193
|
-
isClearData:
|
|
216
|
+
defaultValues: (formStorage === null || formStorage === void 0 ? void 0 : formStorage[currentForm === null || currentForm === void 0 ? void 0 : currentForm.id]) || {},
|
|
217
|
+
isClearData: !(formStorage !== null && formStorage !== void 0 && formStorage[currentForm === null || currentForm === void 0 ? void 0 : currentForm.id])
|
|
194
218
|
})) : null, showAgreement ? /*#__PURE__*/React.createElement(PolicyModal, {
|
|
195
219
|
open: showAgreement,
|
|
196
220
|
onCancel: handleAgreementOk,
|
|
197
|
-
item: agreementContent
|
|
221
|
+
item: agreementContent,
|
|
222
|
+
onChange: function onChange() {
|
|
223
|
+
return setLoading(false);
|
|
224
|
+
}
|
|
198
225
|
}) : null);
|
|
199
226
|
});
|
|
200
227
|
export default Form;
|
|
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
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; }
|
|
5
5
|
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; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import React, { useMemo, useState } from 'react';
|
|
7
|
+
import React, { useMemo, useState, forwardRef, useImperativeHandle } from 'react';
|
|
8
8
|
import { Dropdown } from 'antd';
|
|
9
9
|
import { Button, Iconfont, PisellCard, PisellAvatar, PisellToast } from '@pisell/materials';
|
|
10
10
|
import { locales, isMobile, getUniqueId } from '@pisell/utils';
|
|
@@ -13,7 +13,7 @@ import { useAppointmentBookingContext } from "../../context";
|
|
|
13
13
|
import { useAppointmentBookingAccount } from "../../hooks";
|
|
14
14
|
import { formatGuest } from "../../utils";
|
|
15
15
|
import "./index.less";
|
|
16
|
-
var Guest = function
|
|
16
|
+
var Guest = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
17
17
|
var _useState = useState(false),
|
|
18
18
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19
19
|
openOption = _useState2[0],
|
|
@@ -28,6 +28,13 @@ var Guest = function Guest() {
|
|
|
28
28
|
appointmentBooking = _useAppointmentBookin.appointmentBooking;
|
|
29
29
|
var _useAppointmentBookin2 = useAppointmentBookingAccount(),
|
|
30
30
|
accountLists = _useAppointmentBookin2.accountLists;
|
|
31
|
+
useImperativeHandle(ref, function () {
|
|
32
|
+
return {
|
|
33
|
+
next: function next() {
|
|
34
|
+
appointmentBooking.next();
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
});
|
|
31
38
|
var lists = useMemo(function () {
|
|
32
39
|
var _lists = formatGuest(accountLists, carts);
|
|
33
40
|
return _lists;
|
|
@@ -172,5 +179,5 @@ var Guest = function Guest() {
|
|
|
172
179
|
setOpenOption(false);
|
|
173
180
|
}
|
|
174
181
|
}) : null);
|
|
175
|
-
};
|
|
182
|
+
});
|
|
176
183
|
export default Guest;
|
|
@@ -23,7 +23,8 @@ var Header = function Header() {
|
|
|
23
23
|
checkSkipResourceStep = _useIsSkipResourceSte.checkSkipResourceStep;
|
|
24
24
|
var _useAppointmentBookin2 = useAppointmentBookingStep(),
|
|
25
25
|
getStepIndex = _useAppointmentBookin2.getStepIndex,
|
|
26
|
-
stepList = _useAppointmentBookin2.stepList
|
|
26
|
+
stepList = _useAppointmentBookin2.stepList,
|
|
27
|
+
updateStep = _useAppointmentBookin2.updateStep;
|
|
27
28
|
var _useAppointmentBookin3 = useAppointmentBookingSetting(),
|
|
28
29
|
setOtherData = _useAppointmentBookin3.setOtherData;
|
|
29
30
|
var _useAppointmentBookin4 = useAppointmentBookingProduct(),
|
|
@@ -60,7 +61,7 @@ var Header = function Header() {
|
|
|
60
61
|
var handleBack = /*#__PURE__*/function () {
|
|
61
62
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
62
63
|
var _currentStep$step4;
|
|
63
|
-
var key, types, _carts$, type,
|
|
64
|
+
var key, types, _carts$, type, resourceStep;
|
|
64
65
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
65
66
|
while (1) switch (_context.prev = _context.next) {
|
|
66
67
|
case 0:
|
|
@@ -101,30 +102,37 @@ var Header = function Header() {
|
|
|
101
102
|
setOtherData('booking_form', {});
|
|
102
103
|
}
|
|
103
104
|
|
|
104
|
-
// 5. 判断是否需要跳过资源步骤
|
|
105
|
-
isHasForm = stepList
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
if (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
105
|
+
// // 5. 判断是否需要跳过资源步骤
|
|
106
|
+
// const isHasForm = stepList?.some((item: any) => item.key === 'fill-form');
|
|
107
|
+
// const shouldCheckSkip =
|
|
108
|
+
// (isHasForm && key === 'fill-form') || key === 'select-time';
|
|
109
|
+
|
|
110
|
+
// if (shouldCheckSkip) {
|
|
111
|
+
// const skipResourceStep = await checkSkipResourceStep(true);
|
|
112
|
+
// if (skipResourceStep) {
|
|
113
|
+
// appointmentBooking.deleteCartItemInfo('resource');
|
|
114
|
+
// const targetIndex = getStepIndex('prev', 2);
|
|
115
|
+
// return appointmentBooking.gotoStep(targetIndex);
|
|
116
|
+
// }
|
|
117
|
+
// }
|
|
118
|
+
|
|
119
|
+
// 如果前一步是资源步骤,并且被跳过了,则清空资源
|
|
120
|
+
resourceStep = stepList[(currentStep === null || currentStep === void 0 ? void 0 : currentStep.index) - 1];
|
|
121
|
+
if (resourceStep !== null && resourceStep !== void 0 && resourceStep.isSkip && (resourceStep === null || resourceStep === void 0 ? void 0 : resourceStep.key) === 'select-resource') {
|
|
122
|
+
appointmentBooking.deleteCartItemInfo('resource');
|
|
120
123
|
}
|
|
121
|
-
|
|
122
|
-
targetIndex = getStepIndex('prev', 2);
|
|
123
|
-
return _context.abrupt("return", appointmentBooking.gotoStep(targetIndex));
|
|
124
|
-
case 22:
|
|
124
|
+
|
|
125
125
|
// 6. 默认回退一步
|
|
126
126
|
appointmentBooking.back();
|
|
127
|
-
|
|
127
|
+
|
|
128
|
+
// 再次将步骤更新为false
|
|
129
|
+
if (resourceStep !== null && resourceStep !== void 0 && resourceStep.isSkip && (resourceStep === null || resourceStep === void 0 ? void 0 : resourceStep.key) === 'select-resource') {
|
|
130
|
+
updateStep(resourceStep === null || resourceStep === void 0 ? void 0 : resourceStep.key, {
|
|
131
|
+
index: currentStep === null || currentStep === void 0 ? void 0 : currentStep.index,
|
|
132
|
+
isSkip: false
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
case 16:
|
|
128
136
|
case "end":
|
|
129
137
|
return _context.stop();
|
|
130
138
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
|
-
|
|
3
|
+
interface ResourceProps {
|
|
4
|
+
onChange?: (val: any) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const Resource: React.ForwardRefExoticComponent<ResourceProps & React.RefAttributes<any>>;
|
|
3
7
|
export default Resource;
|