@pisell/private-materials 6.0.24 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +167 -147
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +12 -27
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +18 -33
- package/es/businessModel/SalesModel/Sales/index.d.ts +24 -0
- package/es/businessModel/SalesModel/Sales/index.js +69 -0
- package/es/businessModel/SalesModel/hooks/index.d.ts +1 -0
- package/es/businessModel/SalesModel/hooks/index.js +7 -0
- package/es/businessModel/SalesModel/index.d.ts +4 -0
- package/es/businessModel/SalesModel/index.js +18 -0
- package/es/businessModel/index.d.ts +0 -0
- package/es/businessModel/index.js +0 -0
- package/es/components/Sales/Cart/index.d.ts +53 -0
- package/es/components/Sales/Cart/index.js +603 -0
- package/es/components/Sales/Cart/serve.d.ts +2 -0
- package/es/components/Sales/Cart/serve.js +11 -0
- package/es/components/Sales/Cart/types.d.ts +31 -0
- package/es/components/Sales/Cart/types.js +1 -0
- package/es/components/Sales/Cart/utils.d.ts +23 -0
- package/es/components/Sales/Cart/utils.js +161 -0
- package/es/components/Sales/Checkout/index.d.ts +33 -0
- package/es/components/Sales/Checkout/index.js +152 -0
- package/es/components/Sales/Checkout/serve.d.ts +2 -0
- package/es/components/Sales/Checkout/serve.js +11 -0
- package/es/components/Sales/Checkout/utils.d.ts +35 -0
- package/es/components/Sales/Checkout/utils.js +126 -0
- package/es/components/Sales/Customer/index.d.ts +24 -0
- package/es/components/Sales/Customer/index.js +61 -0
- package/es/components/Sales/Event/Detail.d.ts +29 -0
- package/es/components/Sales/Event/Detail.js +293 -0
- package/es/components/Sales/Event/index.d.ts +30 -0
- package/es/components/Sales/Event/index.js +123 -0
- package/es/components/Sales/Event/serve.d.ts +39 -0
- package/es/components/Sales/Event/serve.js +58 -0
- package/es/components/Sales/Holder/index.d.ts +33 -0
- package/es/components/Sales/Holder/index.js +229 -0
- package/es/components/Sales/Holder/serve.d.ts +8 -0
- package/es/components/Sales/Holder/serve.js +20 -0
- package/es/components/Sales/Init/index.d.ts +25 -0
- package/es/components/Sales/Init/index.js +118 -0
- package/es/components/Sales/Init/serve.d.ts +3 -0
- package/es/components/Sales/Init/serve.js +11 -0
- package/es/components/Sales/Resource/index.d.ts +26 -0
- package/es/components/Sales/Resource/index.js +128 -0
- package/es/components/Sales/Resource/serve.d.ts +5 -0
- package/es/components/Sales/Resource/serve.js +8 -0
- package/es/components/Sales/Step/index.d.ts +39 -0
- package/es/components/Sales/Step/index.js +204 -0
- package/es/components/Sales/Summary/index.d.ts +25 -0
- package/es/components/Sales/Summary/index.js +50 -0
- package/es/components/Sales/Summary/serve.d.ts +0 -0
- package/es/components/Sales/Summary/serve.js +0 -0
- package/es/components/Sales/Summary/utils.d.ts +36 -0
- package/es/components/Sales/Summary/utils.js +64 -0
- package/es/components/Sales/hooks/index.d.ts +1 -0
- package/es/components/Sales/hooks/index.js +3 -0
- package/es/components/Sales/index.d.ts +20 -0
- package/es/components/Sales/index.js +26 -0
- package/es/components/Sales/utils/index.d.ts +1 -0
- package/es/components/Sales/utils/index.js +18 -0
- package/es/components/appointmentBooking/assets/alert-circle.png +0 -0
- package/es/components/appointmentBooking/assets/calendar-heart.svg +5 -0
- package/es/components/appointmentBooking/assets/compass.svg +13 -0
- package/es/components/appointmentBooking/assets/guests.svg +1 -0
- package/es/components/appointmentBooking/assets/image.svg +5 -0
- package/es/components/appointmentBooking/assets/phone.svg +5 -0
- package/es/components/appointmentBooking/assets/resource.svg +1 -0
- package/es/components/appointmentBooking/assets/shopping-cart.svg +10 -0
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +7 -0
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +152 -0
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.less +0 -0
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +3 -0
- package/es/components/appointmentBooking/components/Cart/Item/Total.js +45 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.js +261 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.less +108 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Cart/index.js +29 -0
- package/es/components/appointmentBooking/components/Cart/index.less +2 -0
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
- package/es/components/appointmentBooking/components/Cart/utils.js +170 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +277 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.less +35 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +12 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/utils.js +17 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Content/index.js +243 -0
- package/es/components/appointmentBooking/components/Content/index.less +113 -0
- package/es/components/appointmentBooking/components/Date/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Date/index.js +403 -0
- package/es/components/appointmentBooking/components/Date/index.less +142 -0
- package/es/components/appointmentBooking/components/Date/state.d.ts +63 -0
- package/es/components/appointmentBooking/components/Date/state.js +223 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Deposit/index.js +30 -0
- package/es/components/appointmentBooking/components/Deposit/index.less +17 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Footer/index.js +63 -0
- package/es/components/appointmentBooking/components/Footer/index.less +64 -0
- package/es/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Form/index.js +157 -0
- package/es/components/appointmentBooking/components/Form/index.less +3 -0
- package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/es/components/appointmentBooking/components/Form/utils.js +36 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.js +50 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.less +28 -0
- package/es/components/appointmentBooking/components/Guest/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Guest/index.js +185 -0
- package/es/components/appointmentBooking/components/Guest/index.less +92 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Header/index.js +199 -0
- package/es/components/appointmentBooking/components/Header/index.less +0 -0
- package/es/components/appointmentBooking/components/Resource/index.d.ts +7 -0
- package/es/components/appointmentBooking/components/Resource/index.js +285 -0
- package/es/components/appointmentBooking/components/Resource/index.less +10 -0
- 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 +4 -0
- package/es/components/appointmentBooking/components/Services/index.js +257 -0
- package/es/components/appointmentBooking/components/Services/index.less +3 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +118 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.less +33 -0
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Voucher/index.js +267 -0
- package/es/components/appointmentBooking/components/Voucher/index.less +116 -0
- package/es/components/appointmentBooking/context.d.ts +35 -0
- package/es/components/appointmentBooking/context.js +241 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +134 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.less +18 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +3 -0
- package/es/components/appointmentBooking/deposit/index.js +101 -0
- package/es/components/appointmentBooking/deposit/index.less +57 -0
- package/es/components/appointmentBooking/hooks.d.ts +106 -0
- package/es/components/appointmentBooking/hooks.js +976 -0
- package/es/components/appointmentBooking/index.d.ts +3 -0
- package/es/components/appointmentBooking/index.js +48 -0
- package/es/components/appointmentBooking/index.less +23 -0
- package/es/components/appointmentBooking/locales.d.ts +360 -0
- package/es/components/appointmentBooking/locales.js +413 -0
- package/es/components/appointmentBooking/mock.d.ts +627 -0
- package/es/components/appointmentBooking/mock.js +1172 -0
- package/es/components/appointmentBooking/status.d.ts +21 -0
- package/es/components/appointmentBooking/status.js +51 -0
- package/es/components/appointmentBooking/type.d.ts +17 -0
- package/es/components/appointmentBooking/type.js +1 -0
- package/es/components/appointmentBooking/utils.d.ts +203 -0
- package/es/components/appointmentBooking/utils.js +768 -0
- package/es/components/booking/addons/index.js +56 -35
- package/es/components/booking/addons/model.js +5 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.js +14 -2
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.js +3 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.less +6 -0
- package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/booking/components/customSelect/index.d.ts +1 -0
- package/es/components/booking/components/customSelect/index.js +8 -2
- package/es/components/booking/components/drawer/index.js +4 -2
- package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
- package/es/components/booking/components/footer/AppointmentProductModal/index.js +38 -0
- package/es/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +48 -23
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +315 -174
- package/es/components/booking/components/footer/index.less +6 -1
- package/es/components/booking/components/footer/serve.d.ts +2 -0
- package/es/components/booking/components/footer/serve.js +44 -0
- package/es/components/booking/components/footer/utils.d.ts +21 -0
- package/es/components/booking/components/footer/utils.js +420 -53
- package/es/components/booking/components/voucher/index.d.ts +3 -0
- package/es/components/booking/components/voucher/index.js +319 -0
- package/es/components/booking/components/voucher/index.less +87 -0
- package/es/components/booking/components/voucher/utils.d.ts +4 -0
- package/es/components/booking/components/voucher/utils.js +15 -0
- package/es/components/booking/deposit/DepositItem/index.js +1 -0
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/deposit/index.js +5 -3
- package/es/components/booking/forms/footer.d.ts +6 -0
- package/es/components/booking/forms/footer.js +88 -0
- package/es/components/booking/forms/forms.d.ts +4 -0
- package/es/components/booking/forms/forms.js +15 -3
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/index.js +25 -20
- package/es/components/booking/forms/index.less +7 -0
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/sendModal/index.d.ts +27 -0
- package/es/components/booking/forms/sendModal/index.js +82 -0
- package/es/components/booking/forms/sendModal/index.less +9 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
- package/es/components/booking/forms/sendModal/useSendModal.js +79 -0
- package/es/components/booking/forms/serve.d.ts +9 -0
- package/es/components/booking/forms/serve.js +20 -0
- package/es/components/booking/forms/single/index.d.ts +1 -2
- package/es/components/booking/forms/single/index.js +83 -27
- package/es/components/booking/hooks/useCreateBookingPageHeader.js +3 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/hooks/useIsBooking4Shop.js +10 -0
- package/es/components/booking/hooks/useQuotation.d.ts +5 -0
- package/es/components/booking/hooks/useQuotation.js +266 -0
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/Provider.js +54 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.js +10 -3
- package/es/components/booking/info/client/index.js +41 -9
- package/es/components/booking/info/client/index.less +39 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +10 -1
- package/es/components/booking/info/clientVariant/utils.d.ts +1 -0
- package/es/components/booking/info/clientVariant/utils.js +6 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +31 -15
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.less +17 -0
- package/es/components/booking/info/clientVariant/vertical/index.js +162 -20
- package/es/components/booking/info/clientVariant/vertical/index.less +18 -0
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +4 -0
- package/es/components/booking/info/dateRange/index.js +98 -0
- package/es/components/booking/info/dateRange/index.less +21 -0
- package/es/components/booking/info/header/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useAddHolder.d.ts +9 -0
- package/es/components/booking/info/hooks/useAddHolder.js +171 -0
- package/es/components/booking/info/hooks/useGetHolderList.d.ts +2 -0
- package/es/components/booking/info/hooks/useGetHolderList.js +48 -0
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/es/components/booking/info/hooks/useHolderConfig.js +40 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +62 -0
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/index.js +16 -2
- package/es/components/booking/info/main.js +45 -29
- package/es/components/booking/info/model.js +3 -0
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
- package/es/components/booking/info/pet/ChangePetModal/index.js +134 -0
- package/es/components/booking/info/pet/ChangePetModal/index.less +4 -0
- package/es/components/booking/info/pet/index.d.ts +1 -1
- package/es/components/booking/info/pet/index.js +199 -58
- package/es/components/booking/info/pet/serve.d.ts +1 -0
- package/es/components/booking/info/pet/serve.js +27 -0
- package/es/components/booking/info/service/Lists.d.ts +2 -0
- package/es/components/booking/info/service/Lists.js +121 -0
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.js +215 -122
- package/es/components/booking/info/service/addService/index.less +13 -3
- package/es/components/booking/info/service/addService/utils.d.ts +12 -2
- package/es/components/booking/info/service/addService/utils.js +103 -26
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +4 -0
- package/es/components/booking/info/service/editService/BookingList/index.js +39 -0
- package/es/components/booking/info/service/editService/EditTabs/index.d.ts +3 -0
- package/es/components/booking/info/service/editService/EditTabs/index.js +35 -0
- package/es/components/booking/info/service/editService/index.d.ts +1 -1
- package/es/components/booking/info/service/editService/index.js +532 -170
- package/es/components/booking/info/service/editService/index.less +18 -13
- package/es/components/booking/info/service/index.js +8 -5
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service/serve.d.ts +19 -0
- package/es/components/booking/info/service/serve.js +49 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceList/index.js +1 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.js +55 -0
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service/serviceManager/index.js +286 -0
- package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/es/components/booking/info/service/serviceManager/utils.js +0 -0
- package/es/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/es/components/booking/info/service2/Group/utils.js +147 -0
- package/es/components/booking/info/service2/Lists.d.ts +3 -0
- package/es/components/booking/info/service2/Lists.js +153 -0
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
- package/es/components/booking/info/service2/hooks/useSelectPet.js +62 -0
- package/es/components/booking/info/service2/index.d.ts +6 -0
- package/es/components/booking/info/service2/index.js +60 -0
- package/es/components/booking/info/service2/status.d.ts +31 -0
- package/es/components/booking/info/service2/status.js +78 -0
- package/es/components/booking/info/service2/utils.d.ts +247 -0
- package/es/components/booking/info/service2/utils.js +1385 -0
- package/es/components/booking/info/utils.d.ts +26 -0
- package/es/components/booking/info/utils.js +99 -1
- package/es/components/booking/info2/index.js +19 -11
- package/es/components/booking/info2/serve.d.ts +2 -2
- package/es/components/booking/info2/serve.js +9 -12
- package/es/components/booking/info2/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.js +81 -37
- package/es/components/booking/info2/service/addService/utils.d.ts +20 -3
- package/es/components/booking/info2/service/addService/utils.js +154 -71
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/addTimeModal/index.js +4 -5
- package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +2 -4
- package/es/components/booking/info2/service/editService/Resources/index.js +26 -7
- package/es/components/booking/info2/service/editService/index.js +134 -35
- package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/es/components/booking/info2/service/editService/utils.js +18 -0
- package/es/components/booking/info2/service/index.js +22 -38
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/info2/utils.d.ts +4 -0
- package/es/components/booking/info2/utils.js +45 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +2 -1
- package/es/components/booking/info2/utilsByBooking.js +45 -16
- package/es/components/booking/locales.d.ts +153 -0
- package/es/components/booking/locales.js +186 -3
- package/es/components/booking/materiels/duration/index.d.ts +0 -1
- package/es/components/booking/materiels/holder/index.d.ts +7 -0
- package/es/components/booking/materiels/holder/index.js +51 -0
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/model.d.ts +5 -1
- package/es/components/booking/model.js +4 -2
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/addNote/index.d.ts +0 -1
- package/es/components/booking/notes/addNote/index.js +1 -1
- package/es/components/booking/notes/addNote/index.less +3 -0
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/index.js +2 -1
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/booking/utils.d.ts +17 -5
- package/es/components/booking/utils.js +196 -34
- package/es/components/eftpos/hooks.d.ts +4 -4
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -2
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +6 -6
- package/es/components/eftposPay/component/step/step.d.ts +4 -4
- package/es/components/eftposPay/device.d.ts +1 -2
- package/es/components/eftposPay/hooks.d.ts +3 -3
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/payo/config.js +14 -3
- package/es/components/eftposPay/payo/hooks.js +12 -1
- package/es/components/eftposPay/store/index.d.ts +6 -6
- package/es/components/eftposPay/tip.d.ts +0 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/es/components/eftposPay/windcave/helper.d.ts +1 -1
- package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eftposPay/windcave/windcave.js +12 -2
- package/es/components/eventBooking/assets/alert-circle.png +0 -0
- package/es/components/eventBooking/assets/calendar-heart.svg +5 -0
- package/es/components/eventBooking/assets/compass.svg +13 -0
- package/es/components/eventBooking/assets/image.svg +5 -0
- package/es/components/eventBooking/assets/phone.svg +5 -0
- package/es/components/eventBooking/assets/shopping-cart.svg +10 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +3 -0
- package/es/components/eventBooking/components/ErrorTip/index.js +14 -0
- package/es/components/eventBooking/components/ErrorTip/index.less +51 -0
- package/es/components/eventBooking/components/OpenCard/index.d.ts +4 -0
- package/es/components/eventBooking/components/OpenCard/index.js +65 -0
- package/es/components/eventBooking/components/OpenCard/index.less +52 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +517 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +46 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +63 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.less +87 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Cart/index.js +30 -0
- package/es/components/eventBooking/components/Provider/Cart/index.less +2 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Content/index.js +65 -0
- package/es/components/eventBooking/components/Provider/Content/index.less +31 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.js +34 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.less +17 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Event/index.js +109 -0
- package/es/components/eventBooking/components/Provider/Event/index.less +20 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Footer/index.js +76 -0
- package/es/components/eventBooking/components/Provider/Footer/index.less +64 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Header/index.js +75 -0
- package/es/components/eventBooking/components/Provider/Header/index.less +2 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Information/index.js +178 -0
- package/es/components/eventBooking/components/Provider/Information/index.less +92 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.js +34 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.less +27 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.js +27 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.less +32 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +31 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +3 -0
- package/es/components/eventBooking/components/Provider/Resource/index.js +100 -0
- package/es/components/eventBooking/components/Provider/Resource/index.less +46 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.js +90 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +26 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +10 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +65 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +31 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +3 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +69 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +12 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +152 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +20 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +38 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +86 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +28 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +269 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +256 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +173 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.js +36 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.less +2 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +4 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +60 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +2 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.js +33 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +2 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +33 -0
- package/es/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
- package/es/components/eventBooking/components/bookingDetailModal/index.js +394 -0
- package/es/components/eventBooking/components/bookingDetailModal/index.less +82 -0
- package/es/components/eventBooking/components/bookingServiceList/index.d.ts +17 -0
- package/es/components/eventBooking/components/bookingServiceList/index.js +52 -0
- package/es/components/eventBooking/components/bookingServiceList/index.less +6 -0
- package/es/components/eventBooking/components/eventCard/index.d.ts +14 -0
- package/es/components/eventBooking/components/eventCard/index.js +116 -0
- package/es/components/eventBooking/components/eventCard/index.less +81 -0
- package/es/components/eventBooking/components/productCard/index.d.ts +16 -0
- package/es/components/eventBooking/components/productCard/index.js +79 -0
- package/es/components/eventBooking/components/productCard/index.less +60 -0
- package/es/components/eventBooking/components/progressBar/index.d.ts +16 -0
- package/es/components/eventBooking/components/progressBar/index.js +109 -0
- package/es/components/eventBooking/components/progressBar/index.less +15 -0
- package/es/components/eventBooking/components/resourceDisplay/index.d.ts +23 -0
- package/es/components/eventBooking/components/resourceDisplay/index.js +148 -0
- package/es/components/eventBooking/components/resourceDisplay/index.less +96 -0
- package/es/components/eventBooking/components/resourceUsability/index.d.ts +12 -0
- package/es/components/eventBooking/components/resourceUsability/index.js +44 -0
- package/es/components/eventBooking/components/resourceUsability/index.less +40 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +9 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +37 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +12 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +132 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +60 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +59 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +14 -0
- package/es/components/eventBooking/components/scheduleCalendar/index.js +151 -0
- package/es/components/eventBooking/components/scheduleCalendar/index.less +224 -0
- package/es/components/eventBooking/components/selectHolder/index.d.ts +22 -0
- package/es/components/eventBooking/components/selectHolder/index.js +118 -0
- package/es/components/eventBooking/components/selectHolder/index.less +70 -0
- package/es/components/eventBooking/components/timeResourceSelector/index.d.ts +20 -0
- package/es/components/eventBooking/components/timeResourceSelector/index.js +168 -0
- package/es/components/eventBooking/components/timeResourceSelector/index.less +73 -0
- package/es/components/eventBooking/index.d.ts +3 -0
- package/es/components/eventBooking/index.js +58 -0
- package/es/components/eventBooking/index.less +22 -0
- package/es/components/eventBooking/locales.d.ts +222 -0
- package/es/components/eventBooking/locales.js +257 -0
- package/es/components/eventBooking/mock.d.ts +627 -0
- package/es/components/eventBooking/mock.js +1172 -0
- package/es/components/eventBooking/status.d.ts +21 -0
- package/es/components/eventBooking/status.js +51 -0
- package/es/components/eventBooking/type.d.ts +17 -0
- package/es/components/eventBooking/type.js +1 -0
- package/es/components/eventBooking/utils.d.ts +45 -0
- package/es/components/eventBooking/utils.js +99 -0
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toB/components/Cache/index.d.ts +10 -0
- package/es/components/pay/toB/components/Cache/index.js +94 -0
- package/es/components/pay/toB/components/Cache/index.less +41 -0
- package/es/components/pay/toB/components/Card/index.d.ts +7 -0
- package/es/components/pay/toB/components/Card/index.js +32 -0
- package/es/components/pay/toB/components/Card/index.less +26 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +7 -0
- package/es/components/pay/toB/components/CardGroup/index.js +22 -0
- package/es/components/pay/toB/components/CardGroup/index.less +18 -0
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +6 -0
- package/es/components/pay/toB/components/ConfirmedPayment/index.js +67 -0
- package/es/components/pay/toB/components/ConfirmedPayment/index.less +69 -0
- package/es/components/pay/toB/components/Content/Footer.d.ts +7 -0
- package/es/components/pay/toB/components/Content/Footer.js +36 -0
- package/es/components/pay/toB/components/Content/Header.d.ts +4 -0
- package/es/components/pay/toB/components/Content/Header.js +12 -0
- package/es/components/pay/toB/components/Content/index.d.ts +4 -0
- package/es/components/pay/toB/components/Content/index.js +277 -0
- package/es/components/pay/toB/components/Content/index.less +9 -0
- package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/es/components/pay/toB/components/Content/utils.js +76 -0
- package/es/components/pay/toB/components/index.d.ts +5 -0
- package/es/components/pay/toB/components/index.js +5 -0
- package/es/components/pay/toB/hooks.d.ts +12 -0
- package/es/components/pay/toB/hooks.js +30 -0
- package/es/components/pay/toB/index.d.ts +3 -0
- package/es/components/pay/toB/index.js +24 -0
- package/es/components/pay/toB/locales.d.ts +54 -0
- package/es/components/pay/toB/locales.js +65 -0
- package/es/components/pay/toB/store/context.d.ts +3 -0
- package/es/components/pay/toB/store/context.js +2 -0
- package/es/components/pay/toB/store/hooks.d.ts +15 -0
- package/es/components/pay/toB/store/hooks.js +80 -0
- package/es/components/pay/toB/store/index.d.ts +3 -0
- package/es/components/pay/toB/store/index.js +3 -0
- package/es/components/pay/toB/store/provider.d.ts +4 -0
- package/es/components/pay/toB/store/provider.js +77 -0
- package/es/components/pay/toB/store/utils.d.ts +13 -0
- package/es/components/pay/toB/store/utils.js +66 -0
- package/es/components/pay/toB/types/index.d.ts +1 -0
- package/es/components/pay/toB/types/index.js +1 -0
- package/es/components/pay/toB/types/storeTypes.d.ts +141 -0
- package/es/components/pay/toB/types/storeTypes.js +24 -0
- package/es/components/pay/toC/PaymentList/index.js +10 -4
- package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/serve.js +9 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +30 -13
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +30 -13
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +3 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +73 -20
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
- package/es/components/pay/toC/PaymentMethods/index.js +29 -2
- package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +60 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +98 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +34 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
- package/es/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
- package/es/components/pay/toC/WalletPassBlock/index.js +119 -21
- package/es/components/pay/toC/WalletPassBlock/index.less +86 -13
- package/es/components/pay/toC/index.js +173 -116
- package/es/components/pay/toC/locales.d.ts +69 -3
- package/es/components/pay/toC/locales.js +132 -6
- package/es/components/pay/toC/model.d.ts +4 -0
- package/es/components/pay/toC/model.js +9 -0
- package/es/components/pay/toC/serve.d.ts +23 -0
- package/es/components/pay/toC/serve.js +36 -4
- package/es/components/pay/toC/utils.d.ts +9 -1
- package/es/components/pay/toC/utils.js +29 -3
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -2
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.js +18 -6
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
- package/es/components/productSelect/components/TabProduct/index.js +196 -0
- package/es/components/productSelect/components/TabProduct/tabs/index.d.ts +21 -0
- package/es/components/productSelect/components/TabProduct/tabs/index.js +243 -0
- package/es/components/productSelect/components/TabProduct/tabs/index.less +126 -0
- package/es/components/productSelect/components/gridLayout/index.d.ts +9 -0
- package/es/components/productSelect/components/gridLayout/index.js +28 -0
- package/es/components/productSelect/components/gridLayout/index.less +6 -0
- package/es/components/productSelect/components/pisellPriceText/index.d.ts +11 -0
- package/es/components/productSelect/components/pisellPriceText/index.js +44 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +38 -0
- package/es/components/productSelect/components/productGroup/index.js +171 -0
- package/es/components/productSelect/components/productGroup/index.less +227 -0
- package/es/components/productSelect/hooks/useToken.d.ts +18 -0
- package/es/components/productSelect/hooks/useToken.js +35 -0
- package/es/components/productSelect/index.d.ts +24 -0
- package/es/components/productSelect/index.js +107 -0
- package/es/components/productSelect/index.less +75 -0
- package/es/components/productSelect/locales.d.ts +18 -0
- package/es/components/productSelect/locales.js +17 -0
- package/es/components/productSelect/mock.d.ts +134 -0
- package/es/components/productSelect/mock.js +202 -0
- package/es/components/productSelect/theme/token.d.ts +17 -0
- package/es/components/productSelect/theme/token.js +19 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/index.d.ts +0 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/index.less +158 -152
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/es/components/schedules/products/list/index.d.ts +0 -1
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/index.d.ts +0 -1
- package/es/components/schedules/resources/list/index.d.ts +0 -1
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/utils.js +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/Provider.d.ts +3 -0
- package/es/components/shoppingCart/Provider.js +87 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/es/components/shoppingCart/components/Cart/Product.js +95 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +3 -0
- package/es/components/shoppingCart/components/Cart/index.js +73 -0
- package/es/components/shoppingCart/components/Cart/index.less +68 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +4 -0
- package/es/components/shoppingCart/components/Empty/index.js +15 -0
- package/es/components/shoppingCart/components/Empty/index.less +19 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +4 -0
- package/es/components/shoppingCart/components/Render/index.js +69 -0
- package/es/components/shoppingCart/components/Render/index.less +17 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.js +132 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +2 -0
- package/es/components/shoppingCart/hooks/useAddService.js +29 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +2 -0
- package/es/components/shoppingCart/hooks/useClearCart.js +58 -0
- package/es/components/shoppingCart/hooks/useContext.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useContext.js +5 -0
- package/es/components/shoppingCart/index.d.ts +3 -0
- package/es/components/shoppingCart/index.js +26 -0
- package/es/components/shoppingCart/locales.d.ts +33 -0
- package/es/components/shoppingCart/locales.js +38 -0
- package/es/components/shoppingCart/mock.d.ts +40 -0
- package/es/components/shoppingCart/mock.js +40 -0
- package/es/components/shoppingCart/status.d.ts +2 -0
- package/es/components/shoppingCart/status.js +26 -0
- package/es/components/shoppingCart/type.d.ts +48 -0
- package/es/components/shoppingCart/type.js +1 -0
- package/es/components/shoppingCart/utils.d.ts +63 -0
- package/es/components/shoppingCart/utils.js +116 -0
- package/es/components/subTotal/index.d.ts +22 -0
- package/es/components/subTotal/index.js +234 -0
- package/es/components/subTotal/index.less +70 -0
- package/es/components/subTotal/locales.d.ts +42 -0
- package/es/components/subTotal/locales.js +41 -0
- package/es/components/tabProduct/tabs/index.less +13 -3
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +508 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +7 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.js +28 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.less +10 -0
- package/es/components/ticketBooking/components/menuBar/index.d.ts +4 -0
- package/es/components/ticketBooking/components/menuBar/index.js +54 -0
- package/es/components/ticketBooking/components/menuBar/index.less +83 -0
- package/es/components/ticketBooking/components/notAvailable/index.d.ts +3 -0
- package/es/components/ticketBooking/components/notAvailable/index.js +39 -0
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +3 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +955 -0
- package/es/components/ticketBooking/components/ticketBooking/index.less +16 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/es/components/ticketBooking/components/timeBar/index.js +115 -0
- package/es/components/ticketBooking/components/timeBar/index.less +22 -0
- package/es/components/ticketBooking/data.d.ts +58 -0
- package/es/components/ticketBooking/data.js +82 -0
- package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
- package/es/components/ticketBooking/hooks/useNetworkStatus.js +52 -0
- package/es/components/ticketBooking/index.d.ts +7 -0
- package/es/components/ticketBooking/index.js +156 -0
- package/es/components/ticketBooking/index.less +4 -0
- package/es/components/ticketBooking/locales.d.ts +171 -0
- package/es/components/ticketBooking/locales.js +206 -0
- package/es/components/ticketBooking/miniRedux.d.ts +22 -0
- package/es/components/ticketBooking/miniRedux.js +105 -0
- package/es/components/ticketBooking/serve.d.ts +288 -0
- package/es/components/ticketBooking/serve.js +1016 -0
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/es/components/ticketBooking/utils/formatProductMessage.js +62 -0
- package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/es/components/ticketBooking/utils/formatTime.js +144 -0
- package/es/components/ticketBooking/utils/index.d.ts +23 -0
- package/es/components/ticketBooking/utils/index.js +219 -0
- package/es/components/wallet/Detail/index.js +21 -15
- package/es/components/wallet/DiscountCard/index.less +0 -1
- package/es/components/wallet/PointCard/index.less +0 -1
- package/es/components/wallet/RechargeableCard/index.less +5 -9
- package/es/components/wallet/Voucher/index.js +1 -0
- package/es/components/wallet/Voucher/index.less +0 -1
- package/es/components/wallet/components/WalletCard.js +2 -2
- package/es/components/wallet/index.js +66 -6
- package/es/components/wallet/index.less +0 -4
- package/es/components/wallet/locales.d.ts +3 -0
- package/es/components/wallet/locales.js +3 -0
- package/es/components/wallet/model.d.ts +1 -1
- package/es/components/wallet/utils/formatUtils.js +1 -1
- package/es/components/walletList/index.js +60 -8
- package/es/components/walletList/index.less +17 -15
- package/es/components/walletList/locales.d.ts +18 -0
- package/es/components/walletList/locales.js +17 -0
- package/es/components/walletList/serve.d.ts +8 -0
- package/es/components/walletList/serve.js +38 -0
- package/es/components/walletList/status.d.ts +38 -0
- package/es/components/walletList/status.js +47 -0
- package/es/components/workSpaceList/components/AppearanceEdit/IconPanel.js +1 -1
- package/es/components/workSpaceList/components/AppearanceEdit/constants.js +1 -11
- package/es/components/workSpaceList/components/Card/constants.js +1 -2
- package/es/components/workSpaceList/components/EditableString/index.js +1 -1
- package/es/components/workSpaceList/components/SearchBar/index.js +1 -4
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.js +1 -1
- package/es/components/workSpaceList/components/Sort/index.js +1 -1
- package/es/components/workSpaceList/components/WorkspaceItem/index.js +1 -1
- package/es/components/workSpaceList/server.d.ts +3 -3
- package/es/hooks/useComponents.js +1 -1
- package/es/hooks/useEngineContext.d.ts +1 -0
- package/es/hooks/useEngineContext.js +7 -0
- package/es/hooks/useLocale.d.ts +2 -0
- package/es/hooks/useLocale.js +7 -0
- package/es/hooks/useLoginUser.d.ts +2 -0
- package/es/hooks/useLoginUser.js +19 -0
- package/es/index.d.ts +18 -0
- package/es/index.js +19 -1
- package/es/utils/date.d.ts +11 -0
- package/es/utils/date.js +49 -0
- package/es/utils/tasks/index.d.ts +16 -0
- package/es/utils/tasks/index.js +114 -0
- package/es/utils/tasks/type.d.ts +4 -0
- package/es/utils/tasks/type.js +1 -0
- package/lib/businessModel/SalesModel/Sales/index.d.ts +24 -0
- package/lib/businessModel/SalesModel/Sales/index.js +104 -0
- package/lib/businessModel/SalesModel/hooks/index.d.ts +1 -0
- package/lib/businessModel/SalesModel/hooks/index.js +34 -0
- package/lib/businessModel/SalesModel/index.d.ts +4 -0
- package/lib/businessModel/SalesModel/index.js +51 -0
- package/lib/businessModel/index.d.ts +0 -0
- package/lib/businessModel/index.js +0 -0
- package/lib/components/Sales/Cart/index.d.ts +53 -0
- package/lib/components/Sales/Cart/index.js +512 -0
- package/lib/components/Sales/Cart/serve.d.ts +2 -0
- package/lib/components/Sales/Cart/serve.js +37 -0
- package/lib/components/Sales/Cart/types.d.ts +31 -0
- package/lib/components/Sales/Cart/types.js +17 -0
- package/lib/components/Sales/Cart/utils.d.ts +23 -0
- package/lib/components/Sales/Cart/utils.js +149 -0
- package/lib/components/Sales/Checkout/index.d.ts +33 -0
- package/lib/components/Sales/Checkout/index.js +130 -0
- package/lib/components/Sales/Checkout/serve.d.ts +2 -0
- package/lib/components/Sales/Checkout/serve.js +37 -0
- package/lib/components/Sales/Checkout/utils.d.ts +35 -0
- package/lib/components/Sales/Checkout/utils.js +102 -0
- package/lib/components/Sales/Customer/index.d.ts +24 -0
- package/lib/components/Sales/Customer/index.js +92 -0
- package/lib/components/Sales/Event/Detail.d.ts +29 -0
- package/lib/components/Sales/Event/Detail.js +252 -0
- package/lib/components/Sales/Event/index.d.ts +30 -0
- package/lib/components/Sales/Event/index.js +132 -0
- package/lib/components/Sales/Event/serve.d.ts +39 -0
- package/lib/components/Sales/Event/serve.js +57 -0
- package/lib/components/Sales/Holder/index.d.ts +33 -0
- package/lib/components/Sales/Holder/index.js +210 -0
- package/lib/components/Sales/Holder/serve.d.ts +8 -0
- package/lib/components/Sales/Holder/serve.js +37 -0
- package/lib/components/Sales/Init/index.d.ts +25 -0
- package/lib/components/Sales/Init/index.js +129 -0
- package/lib/components/Sales/Init/serve.d.ts +3 -0
- package/lib/components/Sales/Init/serve.js +34 -0
- package/lib/components/Sales/Resource/index.d.ts +26 -0
- package/lib/components/Sales/Resource/index.js +133 -0
- package/lib/components/Sales/Resource/serve.d.ts +5 -0
- package/lib/components/Sales/Resource/serve.js +32 -0
- package/lib/components/Sales/Step/index.d.ts +39 -0
- package/lib/components/Sales/Step/index.js +179 -0
- package/lib/components/Sales/Summary/index.d.ts +25 -0
- package/lib/components/Sales/Summary/index.js +83 -0
- package/lib/components/Sales/Summary/serve.d.ts +0 -0
- package/lib/components/Sales/Summary/serve.js +0 -0
- package/lib/components/Sales/Summary/utils.d.ts +36 -0
- package/lib/components/Sales/Summary/utils.js +81 -0
- package/lib/components/Sales/hooks/index.d.ts +1 -0
- package/lib/components/Sales/hooks/index.js +31 -0
- package/lib/components/Sales/index.d.ts +20 -0
- package/lib/components/Sales/index.js +79 -0
- package/lib/components/Sales/utils/index.d.ts +1 -0
- package/lib/components/Sales/utils/index.js +43 -0
- package/lib/components/appointmentBooking/assets/alert-circle.png +0 -0
- package/lib/components/appointmentBooking/assets/calendar-heart.svg +5 -0
- package/lib/components/appointmentBooking/assets/compass.svg +13 -0
- package/lib/components/appointmentBooking/assets/guests.svg +1 -0
- package/lib/components/appointmentBooking/assets/image.svg +5 -0
- package/lib/components/appointmentBooking/assets/phone.svg +5 -0
- package/lib/components/appointmentBooking/assets/resource.svg +1 -0
- package/lib/components/appointmentBooking/assets/shopping-cart.svg +10 -0
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +7 -0
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +113 -0
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.less +0 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.js +79 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +212 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.less +108 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Cart/index.js +60 -0
- package/lib/components/appointmentBooking/components/Cart/index.less +2 -0
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
- package/lib/components/appointmentBooking/components/Cart/utils.js +125 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +155 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +35 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +12 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/utils.js +37 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Content/index.js +221 -0
- package/lib/components/appointmentBooking/components/Content/index.less +113 -0
- package/lib/components/appointmentBooking/components/Date/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Date/index.js +247 -0
- package/lib/components/appointmentBooking/components/Date/index.less +142 -0
- package/lib/components/appointmentBooking/components/Date/state.d.ts +63 -0
- package/lib/components/appointmentBooking/components/Date/state.js +202 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Deposit/index.js +61 -0
- package/lib/components/appointmentBooking/components/Deposit/index.less +17 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Footer/index.js +78 -0
- package/lib/components/appointmentBooking/components/Footer/index.less +64 -0
- package/lib/components/appointmentBooking/components/Form/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Form/index.js +127 -0
- package/lib/components/appointmentBooking/components/Form/index.less +3 -0
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/lib/components/appointmentBooking/components/Form/utils.js +49 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.js +74 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.less +28 -0
- package/lib/components/appointmentBooking/components/Guest/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Guest/index.js +166 -0
- package/lib/components/appointmentBooking/components/Guest/index.less +92 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Header/index.js +151 -0
- package/lib/components/appointmentBooking/components/Header/index.less +0 -0
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +7 -0
- package/lib/components/appointmentBooking/components/Resource/index.js +225 -0
- package/lib/components/appointmentBooking/components/Resource/index.less +10 -0
- 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 +4 -0
- package/lib/components/appointmentBooking/components/Services/index.js +193 -0
- package/lib/components/appointmentBooking/components/Services/index.less +3 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +102 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/index.less +33 -0
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Voucher/index.js +241 -0
- package/lib/components/appointmentBooking/components/Voucher/index.less +116 -0
- package/lib/components/appointmentBooking/context.d.ts +35 -0
- package/lib/components/appointmentBooking/context.js +192 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +131 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.less +18 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +3 -0
- package/lib/components/appointmentBooking/deposit/index.js +109 -0
- package/lib/components/appointmentBooking/deposit/index.less +57 -0
- package/lib/components/appointmentBooking/hooks.d.ts +106 -0
- package/lib/components/appointmentBooking/hooks.js +559 -0
- package/lib/components/appointmentBooking/index.d.ts +3 -0
- package/lib/components/appointmentBooking/index.js +80 -0
- package/lib/components/appointmentBooking/index.less +23 -0
- package/lib/components/appointmentBooking/locales.d.ts +360 -0
- package/lib/components/appointmentBooking/locales.js +383 -0
- package/lib/components/appointmentBooking/mock.d.ts +627 -0
- package/lib/components/appointmentBooking/mock.js +1352 -0
- package/lib/components/appointmentBooking/status.d.ts +21 -0
- package/lib/components/appointmentBooking/status.js +70 -0
- package/lib/components/appointmentBooking/type.d.ts +17 -0
- package/lib/components/appointmentBooking/type.js +17 -0
- package/lib/components/appointmentBooking/utils.d.ts +203 -0
- package/lib/components/appointmentBooking/utils.js +519 -0
- package/lib/components/booking/addons/index.js +53 -31
- package/lib/components/booking/addons/model.js +3 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.js +8 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.js +5 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.less +6 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/booking/components/customSelect/index.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.js +8 -2
- package/lib/components/booking/components/drawer/index.js +2 -2
- package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/lib/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
- package/lib/components/booking/components/footer/AppointmentProductModal/index.js +60 -0
- package/lib/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +30 -8
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +248 -118
- package/lib/components/booking/components/footer/index.less +6 -1
- package/lib/components/booking/components/footer/serve.d.ts +2 -0
- package/lib/components/booking/components/footer/serve.js +12 -0
- package/lib/components/booking/components/footer/utils.d.ts +21 -0
- package/lib/components/booking/components/footer/utils.js +274 -51
- package/lib/components/booking/components/voucher/index.d.ts +3 -0
- package/lib/components/booking/components/voucher/index.js +305 -0
- package/lib/components/booking/components/voucher/index.less +87 -0
- package/lib/components/booking/components/voucher/utils.d.ts +4 -0
- package/lib/components/booking/components/voucher/utils.js +43 -0
- package/lib/components/booking/deposit/DepositItem/index.js +1 -0
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/deposit/index.js +5 -3
- package/lib/components/booking/forms/footer.d.ts +6 -0
- package/lib/components/booking/forms/footer.js +81 -0
- package/lib/components/booking/forms/forms.d.ts +4 -0
- package/lib/components/booking/forms/forms.js +13 -3
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/index.js +4 -2
- package/lib/components/booking/forms/index.less +7 -0
- package/lib/components/booking/forms/sendModal/index.d.ts +27 -0
- package/lib/components/booking/forms/sendModal/index.js +128 -0
- package/lib/components/booking/forms/sendModal/index.less +9 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
- package/lib/components/booking/forms/sendModal/useSendModal.js +70 -0
- package/lib/components/booking/forms/serve.d.ts +9 -0
- package/lib/components/booking/forms/serve.js +5 -2
- package/lib/components/booking/forms/single/index.d.ts +1 -2
- package/lib/components/booking/forms/single/index.js +35 -1
- package/lib/components/booking/hooks/useCreateBookingPageHeader.js +3 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.js +51 -0
- package/lib/components/booking/hooks/useQuotation.d.ts +5 -0
- package/lib/components/booking/hooks/useQuotation.js +214 -0
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/Provider.js +0 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.js +8 -3
- package/lib/components/booking/info/client/index.js +72 -8
- package/lib/components/booking/info/client/index.less +39 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +8 -1
- package/lib/components/booking/info/clientVariant/utils.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/utils.js +34 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +19 -10
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.less +17 -0
- package/lib/components/booking/info/clientVariant/vertical/index.js +123 -22
- package/lib/components/booking/info/clientVariant/vertical/index.less +18 -0
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +4 -0
- package/lib/components/booking/info/dateRange/index.js +111 -0
- package/lib/components/booking/info/dateRange/index.less +21 -0
- package/lib/components/booking/info/header/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useAddHolder.d.ts +9 -0
- package/lib/components/booking/info/hooks/useAddHolder.js +145 -0
- package/lib/components/booking/info/hooks/useGetHolderList.d.ts +2 -0
- package/lib/components/booking/info/hooks/useGetHolderList.js +61 -0
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/lib/components/booking/info/hooks/useHolderConfig.js +59 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +10 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +87 -0
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/index.js +9 -5
- package/lib/components/booking/info/main.js +34 -23
- package/lib/components/booking/info/model.js +3 -0
- package/lib/components/booking/info/notes/index.d.ts +0 -1
- package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
- package/lib/components/booking/info/pet/ChangePetModal/index.js +121 -0
- package/lib/components/booking/info/pet/ChangePetModal/index.less +4 -0
- package/lib/components/booking/info/pet/index.d.ts +1 -1
- package/lib/components/booking/info/pet/index.js +155 -55
- package/lib/components/booking/info/pet/serve.d.ts +1 -0
- package/lib/components/booking/info/pet/serve.js +33 -0
- package/lib/components/booking/info/service/Lists.d.ts +2 -0
- package/lib/components/booking/info/service/Lists.js +120 -0
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.js +148 -115
- package/lib/components/booking/info/service/addService/index.less +13 -3
- package/lib/components/booking/info/service/addService/utils.d.ts +12 -2
- package/lib/components/booking/info/service/addService/utils.js +57 -10
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +4 -0
- package/lib/components/booking/info/service/editService/BookingList/index.js +55 -0
- package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +3 -0
- package/lib/components/booking/info/service/editService/EditTabs/index.js +75 -0
- package/lib/components/booking/info/service/editService/index.d.ts +1 -1
- package/lib/components/booking/info/service/editService/index.js +500 -207
- package/lib/components/booking/info/service/editService/index.less +18 -13
- package/lib/components/booking/info/service/index.js +5 -3
- package/lib/components/booking/info/service/serve.d.ts +19 -0
- package/lib/components/booking/info/service/serve.js +10 -2
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceList/index.js +1 -0
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +70 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service/serviceManager/index.js +216 -0
- package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/lib/components/booking/info/service/serviceManager/utils.js +0 -0
- package/lib/components/booking/info/service2/Group/utils.d.ts +14 -0
- package/lib/components/booking/info/service2/Group/utils.js +143 -0
- package/lib/components/booking/info/service2/Lists.d.ts +3 -0
- package/lib/components/booking/info/service2/Lists.js +116 -0
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +56 -0
- package/lib/components/booking/info/service2/index.d.ts +6 -0
- package/lib/components/booking/info/service2/index.js +77 -0
- package/lib/components/booking/info/service2/status.d.ts +31 -0
- package/lib/components/booking/info/service2/status.js +81 -0
- package/lib/components/booking/info/service2/utils.d.ts +247 -0
- package/lib/components/booking/info/service2/utils.js +998 -0
- package/lib/components/booking/info/utils.d.ts +26 -0
- package/lib/components/booking/info/utils.js +137 -1
- package/lib/components/booking/info2/index.js +12 -4
- package/lib/components/booking/info2/serve.d.ts +2 -2
- package/lib/components/booking/info2/serve.js +3 -10
- package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.js +68 -37
- package/lib/components/booking/info2/service/addService/utils.d.ts +20 -3
- package/lib/components/booking/info2/service/addService/utils.js +108 -27
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addTimeModal/index.js +5 -6
- package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +1 -2
- package/lib/components/booking/info2/service/editService/Resources/index.js +21 -4
- package/lib/components/booking/info2/service/editService/index.js +152 -51
- package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/lib/components/booking/info2/service/editService/utils.js +48 -0
- package/lib/components/booking/info2/service/index.js +20 -28
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/info2/utils.d.ts +4 -0
- package/lib/components/booking/info2/utils.js +66 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +2 -1
- package/lib/components/booking/info2/utilsByBooking.js +29 -14
- package/lib/components/booking/locales.d.ts +153 -0
- package/lib/components/booking/locales.js +174 -3
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- package/lib/components/booking/materiels/holder/index.d.ts +7 -0
- package/lib/components/booking/materiels/holder/index.js +64 -0
- package/lib/components/booking/model.d.ts +5 -1
- package/lib/components/booking/model.js +4 -2
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.d.ts +0 -1
- package/lib/components/booking/notes/addNote/index.js +1 -1
- package/lib/components/booking/notes/addNote/index.less +3 -0
- package/lib/components/booking/payments/index.js +2 -2
- package/lib/components/booking/utils.d.ts +17 -5
- package/lib/components/booking/utils.js +141 -25
- package/lib/components/eftpos/hooks.d.ts +4 -4
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -2
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +6 -6
- package/lib/components/eftposPay/component/step/step.d.ts +4 -4
- package/lib/components/eftposPay/device.d.ts +1 -2
- package/lib/components/eftposPay/hooks.d.ts +3 -3
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/payo/config.js +12 -1
- package/lib/components/eftposPay/payo/hooks.js +10 -0
- package/lib/components/eftposPay/store/index.d.ts +6 -6
- package/lib/components/eftposPay/tip.d.ts +0 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +2 -2
- package/lib/components/eftposPay/windcave/helper.d.ts +1 -1
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eftposPay/windcave/windcave.js +11 -0
- package/lib/components/eventBooking/assets/alert-circle.png +0 -0
- package/lib/components/eventBooking/assets/calendar-heart.svg +5 -0
- package/lib/components/eventBooking/assets/compass.svg +13 -0
- package/lib/components/eventBooking/assets/image.svg +5 -0
- package/lib/components/eventBooking/assets/phone.svg +5 -0
- package/lib/components/eventBooking/assets/shopping-cart.svg +10 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +3 -0
- package/lib/components/eventBooking/components/ErrorTip/index.js +30 -0
- package/lib/components/eventBooking/components/ErrorTip/index.less +51 -0
- package/lib/components/eventBooking/components/OpenCard/index.d.ts +4 -0
- package/lib/components/eventBooking/components/OpenCard/index.js +90 -0
- package/lib/components/eventBooking/components/OpenCard/index.less +52 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +295 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.less +0 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +82 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +92 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.less +87 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.js +59 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.less +2 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Content/index.js +90 -0
- package/lib/components/eventBooking/components/Provider/Content/index.less +31 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.js +60 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.less +17 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Event/index.js +112 -0
- package/lib/components/eventBooking/components/Provider/Event/index.less +20 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.js +87 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.less +64 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Header/index.js +80 -0
- package/lib/components/eventBooking/components/Provider/Header/index.less +2 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Information/index.js +151 -0
- package/lib/components/eventBooking/components/Provider/Information/index.less +92 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.js +67 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.less +27 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.js +57 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.less +32 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +2 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.js +62 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.js +103 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.less +46 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +2 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.js +97 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.js +55 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.less +25 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +10 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.js +78 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +31 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +3 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.js +86 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.less +12 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +12 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.js +121 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.less +35 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.js +37 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.less +28 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +5 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.js +58 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +86 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.js +55 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.less +25 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.js +196 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/index.less +119 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.js +198 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +122 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.less +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +14 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.js +70 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.less +2 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.js +70 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +90 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +2 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.js +66 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +2 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +71 -0
- package/lib/components/eventBooking/components/bookingDetailModal/index.d.ts +7 -0
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +303 -0
- package/lib/components/eventBooking/components/bookingDetailModal/index.less +82 -0
- package/lib/components/eventBooking/components/bookingServiceList/index.d.ts +17 -0
- package/lib/components/eventBooking/components/bookingServiceList/index.js +79 -0
- package/lib/components/eventBooking/components/bookingServiceList/index.less +6 -0
- package/lib/components/eventBooking/components/eventCard/index.d.ts +14 -0
- package/lib/components/eventBooking/components/eventCard/index.js +124 -0
- package/lib/components/eventBooking/components/eventCard/index.less +81 -0
- package/lib/components/eventBooking/components/productCard/index.d.ts +16 -0
- package/lib/components/eventBooking/components/productCard/index.js +77 -0
- package/lib/components/eventBooking/components/productCard/index.less +60 -0
- package/lib/components/eventBooking/components/progressBar/index.d.ts +16 -0
- package/lib/components/eventBooking/components/progressBar/index.js +115 -0
- package/lib/components/eventBooking/components/progressBar/index.less +15 -0
- package/lib/components/eventBooking/components/resourceDisplay/index.d.ts +23 -0
- package/lib/components/eventBooking/components/resourceDisplay/index.js +116 -0
- package/lib/components/eventBooking/components/resourceDisplay/index.less +96 -0
- package/lib/components/eventBooking/components/resourceUsability/index.d.ts +12 -0
- package/lib/components/eventBooking/components/resourceUsability/index.js +76 -0
- package/lib/components/eventBooking/components/resourceUsability/index.less +40 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +9 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.js +73 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.less +58 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +12 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +136 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +75 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +64 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +14 -0
- package/lib/components/eventBooking/components/scheduleCalendar/index.js +131 -0
- package/lib/components/eventBooking/components/scheduleCalendar/index.less +224 -0
- package/lib/components/eventBooking/components/selectHolder/index.d.ts +22 -0
- package/lib/components/eventBooking/components/selectHolder/index.js +106 -0
- package/lib/components/eventBooking/components/selectHolder/index.less +70 -0
- package/lib/components/eventBooking/components/timeResourceSelector/index.d.ts +20 -0
- package/lib/components/eventBooking/components/timeResourceSelector/index.js +146 -0
- package/lib/components/eventBooking/components/timeResourceSelector/index.less +73 -0
- package/lib/components/eventBooking/index.d.ts +3 -0
- package/lib/components/eventBooking/index.js +78 -0
- package/lib/components/eventBooking/index.less +22 -0
- package/lib/components/eventBooking/locales.d.ts +222 -0
- package/lib/components/eventBooking/locales.js +245 -0
- package/lib/components/eventBooking/mock.d.ts +627 -0
- package/lib/components/eventBooking/mock.js +1352 -0
- package/lib/components/eventBooking/status.d.ts +21 -0
- package/lib/components/eventBooking/status.js +70 -0
- package/lib/components/eventBooking/type.d.ts +17 -0
- package/lib/components/eventBooking/type.js +17 -0
- package/lib/components/eventBooking/utils.d.ts +45 -0
- package/lib/components/eventBooking/utils.js +92 -0
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/pay/toB/components/Cache/index.d.ts +10 -0
- package/lib/components/pay/toB/components/Cache/index.js +108 -0
- package/lib/components/pay/toB/components/Cache/index.less +41 -0
- package/lib/components/pay/toB/components/Card/index.d.ts +7 -0
- package/lib/components/pay/toB/components/Card/index.js +66 -0
- package/lib/components/pay/toB/components/Card/index.less +26 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +7 -0
- package/lib/components/pay/toB/components/CardGroup/index.js +43 -0
- package/lib/components/pay/toB/components/CardGroup/index.less +18 -0
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +6 -0
- package/lib/components/pay/toB/components/ConfirmedPayment/index.js +77 -0
- package/lib/components/pay/toB/components/ConfirmedPayment/index.less +69 -0
- package/lib/components/pay/toB/components/Content/Footer.d.ts +7 -0
- package/lib/components/pay/toB/components/Content/Footer.js +63 -0
- package/lib/components/pay/toB/components/Content/Header.d.ts +4 -0
- package/lib/components/pay/toB/components/Content/Header.js +40 -0
- package/lib/components/pay/toB/components/Content/index.d.ts +4 -0
- package/lib/components/pay/toB/components/Content/index.js +209 -0
- package/lib/components/pay/toB/components/Content/index.less +9 -0
- package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/lib/components/pay/toB/components/Content/utils.js +91 -0
- package/lib/components/pay/toB/components/index.d.ts +5 -0
- package/lib/components/pay/toB/components/index.js +51 -0
- package/lib/components/pay/toB/hooks.d.ts +12 -0
- package/lib/components/pay/toB/hooks.js +60 -0
- package/lib/components/pay/toB/index.d.ts +3 -0
- package/lib/components/pay/toB/index.js +54 -0
- package/lib/components/pay/toB/locales.d.ts +54 -0
- package/lib/components/pay/toB/locales.js +77 -0
- package/lib/components/pay/toB/store/context.d.ts +3 -0
- package/lib/components/pay/toB/store/context.js +32 -0
- package/lib/components/pay/toB/store/hooks.d.ts +15 -0
- package/lib/components/pay/toB/store/hooks.js +85 -0
- package/lib/components/pay/toB/store/index.d.ts +3 -0
- package/lib/components/pay/toB/store/index.js +27 -0
- package/lib/components/pay/toB/store/provider.d.ts +4 -0
- package/lib/components/pay/toB/store/provider.js +70 -0
- package/lib/components/pay/toB/store/utils.d.ts +13 -0
- package/lib/components/pay/toB/store/utils.js +72 -0
- package/lib/components/pay/toB/types/index.d.ts +1 -0
- package/lib/components/pay/toB/types/index.js +23 -0
- package/lib/components/pay/toB/types/storeTypes.d.ts +141 -0
- package/lib/components/pay/toB/types/storeTypes.js +36 -0
- package/lib/components/pay/toC/PaymentList/index.js +11 -6
- package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/serve.js +6 -3
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +10 -1
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +10 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +52 -11
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
- package/lib/components/pay/toC/PaymentMethods/index.js +30 -6
- package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +87 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +103 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +52 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
- package/lib/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
- package/lib/components/pay/toC/WalletPassBlock/index.js +115 -20
- package/lib/components/pay/toC/WalletPassBlock/index.less +86 -13
- package/lib/components/pay/toC/index.js +55 -22
- package/lib/components/pay/toC/locales.d.ts +69 -3
- package/lib/components/pay/toC/locales.js +72 -6
- package/lib/components/pay/toC/model.d.ts +4 -0
- package/lib/components/pay/toC/model.js +10 -0
- package/lib/components/pay/toC/serve.d.ts +23 -0
- package/lib/components/pay/toC/serve.js +13 -7
- package/lib/components/pay/toC/utils.d.ts +9 -1
- package/lib/components/pay/toC/utils.js +23 -3
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -2
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.js +8 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
- package/lib/components/productSelect/components/TabProduct/index.js +189 -0
- package/lib/components/productSelect/components/TabProduct/tabs/index.d.ts +21 -0
- package/lib/components/productSelect/components/TabProduct/tabs/index.js +202 -0
- package/lib/components/productSelect/components/TabProduct/tabs/index.less +126 -0
- package/lib/components/productSelect/components/gridLayout/index.d.ts +9 -0
- package/lib/components/productSelect/components/gridLayout/index.js +58 -0
- package/lib/components/productSelect/components/gridLayout/index.less +6 -0
- package/lib/components/productSelect/components/pisellPriceText/index.d.ts +11 -0
- package/lib/components/productSelect/components/pisellPriceText/index.js +78 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +38 -0
- package/lib/components/productSelect/components/productGroup/index.js +144 -0
- package/lib/components/productSelect/components/productGroup/index.less +227 -0
- package/lib/components/productSelect/hooks/useToken.d.ts +18 -0
- package/lib/components/productSelect/hooks/useToken.js +51 -0
- package/lib/components/productSelect/index.d.ts +24 -0
- package/lib/components/productSelect/index.js +133 -0
- package/lib/components/productSelect/index.less +75 -0
- package/lib/components/productSelect/locales.d.ts +18 -0
- package/lib/components/productSelect/locales.js +41 -0
- package/lib/components/productSelect/mock.d.ts +134 -0
- package/lib/components/productSelect/mock.js +276 -0
- package/lib/components/productSelect/theme/token.d.ts +17 -0
- package/lib/components/productSelect/theme/token.js +47 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/lib/components/schedules/calendar/index.d.ts +0 -1
- package/lib/components/schedules/calendar/index.less +158 -152
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/lib/components/schedules/products/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/index.d.ts +0 -1
- package/lib/components/schedules/resources/list/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/utils.js +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/Provider.d.ts +3 -0
- package/lib/components/shoppingCart/Provider.js +111 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +104 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +3 -0
- package/lib/components/shoppingCart/components/Cart/index.js +85 -0
- package/lib/components/shoppingCart/components/Cart/index.less +68 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/Empty/index.js +43 -0
- package/lib/components/shoppingCart/components/Empty/index.less +19 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/Render/index.js +74 -0
- package/lib/components/shoppingCart/components/Render/index.less +17 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.js +124 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +2 -0
- package/lib/components/shoppingCart/hooks/useAddService.js +54 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +2 -0
- package/lib/components/shoppingCart/hooks/useClearCart.js +66 -0
- package/lib/components/shoppingCart/hooks/useContext.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useContext.js +31 -0
- package/lib/components/shoppingCart/index.d.ts +3 -0
- package/lib/components/shoppingCart/index.js +62 -0
- package/lib/components/shoppingCart/locales.d.ts +33 -0
- package/lib/components/shoppingCart/locales.js +56 -0
- package/lib/components/shoppingCart/mock.d.ts +40 -0
- package/lib/components/shoppingCart/mock.js +76 -0
- package/lib/components/shoppingCart/status.d.ts +2 -0
- package/lib/components/shoppingCart/status.js +64 -0
- package/lib/components/shoppingCart/type.d.ts +48 -0
- package/lib/components/shoppingCart/type.js +17 -0
- package/lib/components/shoppingCart/utils.d.ts +63 -0
- package/lib/components/shoppingCart/utils.js +83 -0
- package/lib/components/subTotal/index.d.ts +22 -0
- package/lib/components/subTotal/index.js +175 -0
- package/lib/components/subTotal/index.less +70 -0
- package/lib/components/subTotal/locales.d.ts +42 -0
- package/lib/components/subTotal/locales.js +65 -0
- package/lib/components/tabProduct/tabs/index.less +13 -3
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +432 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +56 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.less +10 -0
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +4 -0
- package/lib/components/ticketBooking/components/menuBar/index.js +87 -0
- package/lib/components/ticketBooking/components/menuBar/index.less +83 -0
- package/lib/components/ticketBooking/components/notAvailable/index.d.ts +3 -0
- package/lib/components/ticketBooking/components/notAvailable/index.js +61 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +3 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +910 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.less +16 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +149 -0
- package/lib/components/ticketBooking/components/timeBar/index.less +22 -0
- package/lib/components/ticketBooking/data.d.ts +58 -0
- package/lib/components/ticketBooking/data.js +0 -0
- package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
- package/lib/components/ticketBooking/hooks/useNetworkStatus.js +80 -0
- package/lib/components/ticketBooking/index.d.ts +7 -0
- package/lib/components/ticketBooking/index.js +206 -0
- package/lib/components/ticketBooking/index.less +4 -0
- package/lib/components/ticketBooking/locales.d.ts +171 -0
- package/lib/components/ticketBooking/locales.js +194 -0
- package/lib/components/ticketBooking/miniRedux.d.ts +22 -0
- package/lib/components/ticketBooking/miniRedux.js +96 -0
- package/lib/components/ticketBooking/serve.d.ts +288 -0
- package/lib/components/ticketBooking/serve.js +235 -0
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/lib/components/ticketBooking/utils/formatProductMessage.js +84 -0
- package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/lib/components/ticketBooking/utils/formatTime.js +139 -0
- package/lib/components/ticketBooking/utils/index.d.ts +23 -0
- package/lib/components/ticketBooking/utils/index.js +239 -0
- package/lib/components/wallet/Detail/index.js +7 -2
- package/lib/components/wallet/DiscountCard/index.less +0 -1
- package/lib/components/wallet/PointCard/index.less +0 -1
- package/lib/components/wallet/RechargeableCard/index.less +5 -9
- package/lib/components/wallet/Voucher/index.js +1 -0
- package/lib/components/wallet/Voucher/index.less +0 -1
- package/lib/components/wallet/components/WalletCard.js +2 -2
- package/lib/components/wallet/index.js +41 -2
- package/lib/components/wallet/index.less +0 -4
- package/lib/components/wallet/locales.d.ts +3 -0
- package/lib/components/wallet/locales.js +3 -0
- package/lib/components/wallet/model.d.ts +1 -1
- package/lib/components/wallet/utils/formatUtils.js +1 -1
- package/lib/components/walletList/index.js +48 -16
- package/lib/components/walletList/index.less +17 -15
- package/lib/components/walletList/locales.d.ts +18 -0
- package/lib/components/walletList/locales.js +41 -0
- package/lib/components/walletList/serve.d.ts +8 -0
- package/lib/components/walletList/serve.js +15 -2
- package/lib/components/walletList/status.d.ts +38 -0
- package/lib/components/walletList/status.js +66 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/IconPanel.js +2 -2
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.js +12 -32
- package/lib/components/workSpaceList/components/Card/constants.js +3 -4
- package/lib/components/workSpaceList/components/EditableString/index.js +2 -2
- package/lib/components/workSpaceList/components/SearchBar/index.js +5 -8
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.js +2 -2
- package/lib/components/workSpaceList/components/Sort/index.js +2 -2
- package/lib/components/workSpaceList/components/WorkspaceItem/index.js +2 -2
- package/lib/components/workSpaceList/server.d.ts +3 -3
- package/lib/hooks/useEngineContext.d.ts +1 -0
- package/lib/hooks/useEngineContext.js +14 -1
- package/lib/hooks/useLocale.d.ts +2 -0
- package/lib/hooks/useLocale.js +41 -0
- package/lib/hooks/useLoginUser.d.ts +2 -0
- package/lib/hooks/useLoginUser.js +50 -0
- package/lib/index.d.ts +18 -0
- package/lib/index.js +54 -0
- package/lib/utils/date.d.ts +11 -0
- package/lib/utils/date.js +57 -0
- package/lib/utils/tasks/index.d.ts +16 -0
- package/lib/utils/tasks/index.js +63 -0
- package/lib/utils/tasks/type.d.ts +4 -0
- package/lib/utils/tasks/type.js +17 -0
- package/lowcode/appointment-deposit/meta.ts +58 -0
- package/lowcode/event-booking/meta.ts +69 -0
- package/lowcode/event-booking-availability-calendar/meta.ts +53 -0
- package/lowcode/event-booking-detail-modal/meta.ts +39 -0
- package/lowcode/event-booking-service-list/meta.ts +77 -0
- package/lowcode/event-card/meta.ts +77 -0
- package/lowcode/event-product-card/meta.ts +79 -0
- package/lowcode/event-progress-bar/meta.ts +65 -0
- package/lowcode/event-resource-display/meta.ts +169 -0
- package/lowcode/event-resource-usability/meta.ts +67 -0
- package/lowcode/event-schedule-calendar/meta.ts +56 -0
- package/lowcode/event-select-holder/meta.ts +84 -0
- package/lowcode/event-time-resource-selector/meta.ts +69 -0
- package/lowcode/parallel-resource-booking/meta.ts +69 -0
- package/lowcode/product-select/meta.ts +201 -0
- package/lowcode/shopping-cart/meta.ts +98 -0
- package/lowcode/sub-total/meta.ts +134 -0
- package/lowcode/ticket-booking/meta.ts +55 -0
- package/lowcode/tob-pay/meta.ts +44 -0
- package/package.json +4 -4
@@ -0,0 +1,998 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
+
mod
|
26
|
+
));
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
+
|
29
|
+
// src/components/booking/info/service2/utils.ts
|
30
|
+
var utils_exports = {};
|
31
|
+
__export(utils_exports, {
|
32
|
+
disabledDate: () => disabledDate,
|
33
|
+
formItems: () => formItems,
|
34
|
+
formatActiveKey: () => formatActiveKey,
|
35
|
+
formatDateTime: () => formatDateTime,
|
36
|
+
formatDayDate: () => formatDayDate,
|
37
|
+
formatDayTime: () => formatDayTime,
|
38
|
+
formatHolderLists: () => formatHolderLists,
|
39
|
+
formatProducts: () => formatProducts,
|
40
|
+
getAppointmentService: () => getAppointmentService,
|
41
|
+
getDayProducts: () => getDayProducts,
|
42
|
+
getErrorMessage: () => getErrorMessage,
|
43
|
+
getIsSubjectRequire: () => getIsSubjectRequire,
|
44
|
+
getPets: () => getPets,
|
45
|
+
getResourceItem: () => getResourceItem,
|
46
|
+
handleChangeHolder: () => handleChangeHolder,
|
47
|
+
holderId: () => holderId,
|
48
|
+
initDate: () => initDate,
|
49
|
+
isAllNormalProduct: () => isAllNormalProduct,
|
50
|
+
isAllNormalProductByState: () => isAllNormalProductByState,
|
51
|
+
isAppointmentProduct: () => isAppointmentProduct,
|
52
|
+
isBookingProduct: () => isBookingProduct,
|
53
|
+
isDayBooking: () => isDayBooking,
|
54
|
+
isDayBookingProduct: () => isDayBookingProduct,
|
55
|
+
isDaysBooking: () => isDaysBooking,
|
56
|
+
isEventBooking: () => isEventBooking,
|
57
|
+
isHasDayAppointmentProduct: () => isHasDayAppointmentProduct,
|
58
|
+
isNormalProductByDurationSchedule: () => isNormalProductByDurationSchedule,
|
59
|
+
isOpenDeletePet: () => isOpenDeletePet,
|
60
|
+
isTerminalDayBooking: () => isTerminalDayBooking,
|
61
|
+
updateAppointmentServicePrice: () => updateAppointmentServicePrice,
|
62
|
+
updateNormalBundlePrice: () => updateNormalBundlePrice,
|
63
|
+
updateServicePrice: () => updateServicePrice,
|
64
|
+
updateServices: () => updateServices
|
65
|
+
});
|
66
|
+
module.exports = __toCommonJS(utils_exports);
|
67
|
+
var import_mock = require("../../mock");
|
68
|
+
var import_utils = require("../../utils");
|
69
|
+
var import_utils2 = require("@pisell/utils");
|
70
|
+
var import_dayjs = __toESM(require("dayjs"));
|
71
|
+
var import_status = require("./status");
|
72
|
+
var import_serve = require("../service/serve");
|
73
|
+
var import_locales = __toESM(require("../../locales"));
|
74
|
+
var import_utils3 = require("./Group/utils");
|
75
|
+
var import_utils4 = require("../utils");
|
76
|
+
var import_utils5 = require("../service/addService/utils");
|
77
|
+
var import_utils6 = require("../../info2/service/addService/utils");
|
78
|
+
var import_utilsByBooking = require("../../info2/utilsByBooking");
|
79
|
+
var import_amount = require("../../components/footer/amount");
|
80
|
+
import_utils2.locales.init(import_locales.default, localStorage.getItem("umi_locale") || "en");
|
81
|
+
var formatActiveKey = (lists, platform, isEdit) => {
|
82
|
+
var _a;
|
83
|
+
if (!(lists == null ? void 0 : lists.length)) return [];
|
84
|
+
if (lists.length === 1 && isEdit) {
|
85
|
+
return [];
|
86
|
+
}
|
87
|
+
if (platform === "shop") {
|
88
|
+
return [(_a = lists[lists.length - 1]) == null ? void 0 : _a.key];
|
89
|
+
}
|
90
|
+
return lists == null ? void 0 : lists.map((cart) => cart == null ? void 0 : cart.key);
|
91
|
+
};
|
92
|
+
var getResourceItem = (id, state) => {
|
93
|
+
var _a;
|
94
|
+
if (id === 0) {
|
95
|
+
return (0, import_mock.getNoResource)();
|
96
|
+
}
|
97
|
+
return (_a = state.service.resources) == null ? void 0 : _a.find((d) => d.form_record_id === id);
|
98
|
+
};
|
99
|
+
var errorTypes = {
|
100
|
+
product: import_utils2.locales.getText("pisell2.text.status.service-error-1"),
|
101
|
+
time: import_utils2.locales.getText("pisell2.text.status.service-error-2"),
|
102
|
+
maxLimit: import_utils2.locales.getText("pisell2.text.status.service-error-3"),
|
103
|
+
limit: import_utils2.locales.getText("pisell2.text.status.service-error-3")
|
104
|
+
};
|
105
|
+
var getErrorMessage = (service, resourceItem, isDay) => {
|
106
|
+
const errorList = (0, import_utils.getErrorList)(resourceItem, service, isDay);
|
107
|
+
let errorMessage = "";
|
108
|
+
if (!service.id) {
|
109
|
+
return errorList[0].label;
|
110
|
+
}
|
111
|
+
if (errorList.length) {
|
112
|
+
if (errorList.length > 1) {
|
113
|
+
errorMessage = `${errorList.length} ${import_utils2.locales.getText(
|
114
|
+
"pisell2.text.warnings"
|
115
|
+
)}`;
|
116
|
+
} else {
|
117
|
+
errorMessage = (resourceItem == null ? void 0 : resourceItem.labelText) + " " + errorTypes[errorList[0].type];
|
118
|
+
}
|
119
|
+
}
|
120
|
+
return errorMessage;
|
121
|
+
};
|
122
|
+
var formatHolderLists = (lists) => {
|
123
|
+
const isOpenGroup = true;
|
124
|
+
const _lists = lists == null ? void 0 : lists.map((item) => {
|
125
|
+
return {
|
126
|
+
...item,
|
127
|
+
id: (item == null ? void 0 : item.id) || (item == null ? void 0 : item.form_record_id),
|
128
|
+
key: (item == null ? void 0 : item.id) || (item == null ? void 0 : item.form_record_id),
|
129
|
+
label: import_utils2.locales.getText("pisell2.text.cart.of")(item == null ? void 0 : item.main_field)
|
130
|
+
};
|
131
|
+
});
|
132
|
+
if (isOpenGroup) {
|
133
|
+
const defaults = [
|
134
|
+
{
|
135
|
+
key: 0,
|
136
|
+
id: 0,
|
137
|
+
label: import_utils2.locales.getText("pisell2.text.open.items"),
|
138
|
+
main_field: import_utils2.locales.getText("pisell2.text.open.items")
|
139
|
+
}
|
140
|
+
];
|
141
|
+
return defaults.concat(_lists);
|
142
|
+
}
|
143
|
+
return _lists;
|
144
|
+
};
|
145
|
+
var getHolderLists = (state) => {
|
146
|
+
var _a, _b, _c, _d, _e, _f;
|
147
|
+
const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
|
148
|
+
const petLists = ((_f = (_e = state == null ? void 0 : state.pet) == null ? void 0 : _e.value) == null ? void 0 : _f[form_id]) || [];
|
149
|
+
const _lists = formatHolderLists(petLists);
|
150
|
+
return _lists;
|
151
|
+
};
|
152
|
+
var getHolderName = (state, id) => {
|
153
|
+
const holderLists = getHolderLists(state);
|
154
|
+
if (!holderLists.length || !id) return "";
|
155
|
+
const resource = holderLists.find((d) => (d == null ? void 0 : d.id) === id);
|
156
|
+
return resource == null ? void 0 : resource.main_field;
|
157
|
+
};
|
158
|
+
var isBookingProduct = (extension_type, bol) => {
|
159
|
+
return import_status.appointmentTypes.includes(extension_type) || bol;
|
160
|
+
};
|
161
|
+
var isDayBookingProduct = (item, state) => {
|
162
|
+
return isBookingProduct(item == null ? void 0 : item.extension_type) && state.renderType === "dayBooking";
|
163
|
+
};
|
164
|
+
var currentResource = (state, useResource, cacheItem) => {
|
165
|
+
const resourcesOrigin = state.service.resourcesOrigin;
|
166
|
+
const resources = (0, import_utils5.formatResources)({
|
167
|
+
cacheItem,
|
168
|
+
resourcesOrigin,
|
169
|
+
isDay: false
|
170
|
+
});
|
171
|
+
let item = resources.find((d) => d.form_record_id == useResource) || {};
|
172
|
+
return item;
|
173
|
+
};
|
174
|
+
var handleChangeHolder = (products, currentItem, other) => {
|
175
|
+
return products.map((item) => {
|
176
|
+
if (item._id === currentItem._id) {
|
177
|
+
return {
|
178
|
+
...item,
|
179
|
+
_extend: {
|
180
|
+
...item._extend,
|
181
|
+
holder_id: (0, import_utils2.isArr)(other) ? other.map((item2) => item2.id) : item._extend.quantity > 1 ? [other.id] : other.id
|
182
|
+
}
|
183
|
+
};
|
184
|
+
}
|
185
|
+
return item;
|
186
|
+
});
|
187
|
+
};
|
188
|
+
var handleLike = (products, currentItem, other) => {
|
189
|
+
return products.map((item) => {
|
190
|
+
var _a, _b;
|
191
|
+
if (currentItem.isParallelResource) {
|
192
|
+
if (item._id === currentItem.serviceId) {
|
193
|
+
return {
|
194
|
+
...item,
|
195
|
+
_extend: {
|
196
|
+
...item._extend,
|
197
|
+
resource: {
|
198
|
+
...(_a = item._extend) == null ? void 0 : _a.resource,
|
199
|
+
[currentItem.resourceId]: (_b = item._extend) == null ? void 0 : _b.resource[currentItem.resourceId].map((item2) => ({
|
200
|
+
...item2,
|
201
|
+
like_status: other.like_status
|
202
|
+
}))
|
203
|
+
}
|
204
|
+
}
|
205
|
+
};
|
206
|
+
}
|
207
|
+
return item;
|
208
|
+
} else {
|
209
|
+
if (item._id === currentItem._id) {
|
210
|
+
return {
|
211
|
+
...item,
|
212
|
+
_extend: {
|
213
|
+
...item._extend,
|
214
|
+
like_status: other.like_status
|
215
|
+
}
|
216
|
+
};
|
217
|
+
}
|
218
|
+
return item;
|
219
|
+
}
|
220
|
+
});
|
221
|
+
};
|
222
|
+
var handleChangeResource = (products, currentItem, other, state) => {
|
223
|
+
return products.map((item) => {
|
224
|
+
var _a;
|
225
|
+
const { props, value } = other || {};
|
226
|
+
const { isParallelResource, resourceId } = props || {};
|
227
|
+
if (isParallelResource) {
|
228
|
+
if (item._id === currentItem._id) {
|
229
|
+
const hasDataItem = (0, import_utils6.getProductExtend)({
|
230
|
+
cacheItem: { ...item, new: 0 },
|
231
|
+
state
|
232
|
+
});
|
233
|
+
const maps = hasDataItem._extend.resource[resourceId] ? hasDataItem._extend.resource[resourceId].reduce((pre, cur) => {
|
234
|
+
pre[cur.relation_id] = cur;
|
235
|
+
return pre;
|
236
|
+
}, {}) : {};
|
237
|
+
item._extend.resource[resourceId] = value.map((d) => {
|
238
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i;
|
239
|
+
const currentForm = ((_a2 = hasDataItem._data.resourceMaps) == null ? void 0 : _a2[resourceId]) || {};
|
240
|
+
return (
|
241
|
+
// maps[d] 为真时, 说明是之前已选择, 否则为新增的值,补充数据
|
242
|
+
maps[d] || {
|
243
|
+
relation_type: ((_c = (_b = currentForm.renderListMaps[d]) == null ? void 0 : _b.usable) == null ? void 0 : _c.relation_type) || "form",
|
244
|
+
form_id: resourceId,
|
245
|
+
relation_id: d,
|
246
|
+
like_status: "common",
|
247
|
+
// 新添加的数据补充错误信息
|
248
|
+
errors: (0, import_utilsByBooking.getErrorList)(
|
249
|
+
(_d = currentForm.renderListMaps) == null ? void 0 : _d[d],
|
250
|
+
hasDataItem
|
251
|
+
),
|
252
|
+
children: (_f = (_e = currentForm.renderListMaps) == null ? void 0 : _e[d]) == null ? void 0 : _f.children,
|
253
|
+
metadata: {
|
254
|
+
...(_h = (_g = currentForm.renderListMaps) == null ? void 0 : _g[d]) == null ? void 0 : _h.metadata,
|
255
|
+
form_name: currentForm.title,
|
256
|
+
resource_name: (_i = currentForm.renderListMaps[d]) == null ? void 0 : _i.main_field
|
257
|
+
}
|
258
|
+
}
|
259
|
+
);
|
260
|
+
});
|
261
|
+
}
|
262
|
+
return item;
|
263
|
+
} else {
|
264
|
+
if (item._id === currentItem._id) {
|
265
|
+
const resourceItem = currentResource(state, other.id, item);
|
266
|
+
const { relation_type, item_id, schedule_id } = ((_a = resourceItem == null ? void 0 : resourceItem._extend) == null ? void 0 : _a.usableTime) || {};
|
267
|
+
return {
|
268
|
+
...item,
|
269
|
+
_extend: {
|
270
|
+
...item._extend,
|
271
|
+
resource: item_id || (resourceItem == null ? void 0 : resourceItem.form_record_id) || 0,
|
272
|
+
relation_type: relation_type || "form",
|
273
|
+
relation_id: item_id || (resourceItem == null ? void 0 : resourceItem.form_record_id) || 0,
|
274
|
+
schedule_id: schedule_id || 0
|
275
|
+
}
|
276
|
+
};
|
277
|
+
}
|
278
|
+
return item;
|
279
|
+
}
|
280
|
+
});
|
281
|
+
};
|
282
|
+
var updateServices = (state, currentItem, type, other, actions) => {
|
283
|
+
var _a, _b, _c;
|
284
|
+
if (!((_a = state == null ? void 0 : state.service) == null ? void 0 : _a.value)) return [];
|
285
|
+
let products = ((_b = state == null ? void 0 : state.service) == null ? void 0 : _b.value) || [];
|
286
|
+
const isGroup = (0, import_utils3.isGroupBooking)(currentItem._id);
|
287
|
+
if (type === "delete") {
|
288
|
+
let deleteIds = [];
|
289
|
+
if (isGroup) {
|
290
|
+
deleteIds = (0, import_utils3.getProductByGroupId)(currentItem._id, products);
|
291
|
+
} else {
|
292
|
+
deleteIds = [currentItem._id];
|
293
|
+
}
|
294
|
+
products = products == null ? void 0 : products.filter((item) => !deleteIds.includes(item == null ? void 0 : item._id));
|
295
|
+
}
|
296
|
+
if (type === "delete_holders") {
|
297
|
+
products = products == null ? void 0 : products.filter(
|
298
|
+
(item) => {
|
299
|
+
var _a2;
|
300
|
+
return ((_a2 = item == null ? void 0 : item._extend) == null ? void 0 : _a2.holder_id) !== other;
|
301
|
+
}
|
302
|
+
);
|
303
|
+
}
|
304
|
+
if (type === "change_holder") {
|
305
|
+
products = handleChangeHolder(products, currentItem, other);
|
306
|
+
return products;
|
307
|
+
}
|
308
|
+
if (type === "add_holder") {
|
309
|
+
(_c = actions == null ? void 0 : actions.handleAddHolder) == null ? void 0 : _c.call(actions, products, currentItem);
|
310
|
+
return products;
|
311
|
+
}
|
312
|
+
if (type === "like") {
|
313
|
+
products = handleLike(products, currentItem, other);
|
314
|
+
}
|
315
|
+
if (type === "change_resource") {
|
316
|
+
products = handleChangeResource(products, currentItem, other, state);
|
317
|
+
return products;
|
318
|
+
}
|
319
|
+
if (type === "update_holders") {
|
320
|
+
products = products == null ? void 0 : products.map((item) => {
|
321
|
+
var _a2;
|
322
|
+
const ids = currentItem.map((d) => d._id);
|
323
|
+
if (ids == null ? void 0 : ids.includes(item == null ? void 0 : item._id)) {
|
324
|
+
let _extend = item._extend || {};
|
325
|
+
if (Array.isArray(other)) {
|
326
|
+
_extend.holder_id = (_a2 = other.find(
|
327
|
+
(other2) => (other2 == null ? void 0 : other2._id) === (item == null ? void 0 : item._id)
|
328
|
+
)) == null ? void 0 : _a2.holder_id;
|
329
|
+
} else {
|
330
|
+
_extend.holder_id = other;
|
331
|
+
}
|
332
|
+
return item;
|
333
|
+
}
|
334
|
+
return item;
|
335
|
+
});
|
336
|
+
} else {
|
337
|
+
products = products == null ? void 0 : products.map((item) => {
|
338
|
+
let updateIds = [];
|
339
|
+
if (isGroup) {
|
340
|
+
updateIds = (0, import_utils3.getProductByGroupId)(currentItem._id, products);
|
341
|
+
} else {
|
342
|
+
updateIds = [currentItem._id];
|
343
|
+
}
|
344
|
+
if (updateIds.includes(item._id)) {
|
345
|
+
if (type === "like") {
|
346
|
+
let _extend = item._extend || {};
|
347
|
+
_extend.like_status = other == null ? void 0 : other.like_status;
|
348
|
+
} else {
|
349
|
+
item = {
|
350
|
+
...item,
|
351
|
+
...other
|
352
|
+
};
|
353
|
+
}
|
354
|
+
return item;
|
355
|
+
}
|
356
|
+
return item;
|
357
|
+
});
|
358
|
+
}
|
359
|
+
return products;
|
360
|
+
};
|
361
|
+
var formatBundle = (bundle) => {
|
362
|
+
if (!(bundle == null ? void 0 : bundle.length)) return [];
|
363
|
+
return bundle.map((item) => {
|
364
|
+
return {
|
365
|
+
id: item == null ? void 0 : item.id,
|
366
|
+
title: item == null ? void 0 : item.title,
|
367
|
+
num: item == null ? void 0 : item.num,
|
368
|
+
price: item == null ? void 0 : item.price,
|
369
|
+
total: item == null ? void 0 : item.price,
|
370
|
+
price_type: item == null ? void 0 : item.price_type,
|
371
|
+
bundle_sum_price: item == null ? void 0 : item.bundle_sum_price,
|
372
|
+
bundle_sum_type: item == null ? void 0 : item.bundle_sum_type,
|
373
|
+
options: formatOptions(item == null ? void 0 : item.option)
|
374
|
+
};
|
375
|
+
});
|
376
|
+
};
|
377
|
+
var formatOptions = (options) => {
|
378
|
+
if (!(options == null ? void 0 : options.length)) return [];
|
379
|
+
return options.map((item) => {
|
380
|
+
return {
|
381
|
+
id: item == null ? void 0 : item.id,
|
382
|
+
name: item == null ? void 0 : item.name,
|
383
|
+
num: item == null ? void 0 : item.num,
|
384
|
+
price: item == null ? void 0 : item.price,
|
385
|
+
total: item == null ? void 0 : item.price,
|
386
|
+
origin_total: item == null ? void 0 : item.original_price
|
387
|
+
};
|
388
|
+
});
|
389
|
+
};
|
390
|
+
var formItems = (items) => {
|
391
|
+
return items.map((d) => {
|
392
|
+
return {
|
393
|
+
...d,
|
394
|
+
start_date: d._extend.start_date,
|
395
|
+
end_date: d._extend.end_date,
|
396
|
+
num: d == null ? void 0 : d._extend.quantity,
|
397
|
+
total: d._extend.total,
|
398
|
+
origin_total: d._extend.origin_total
|
399
|
+
};
|
400
|
+
});
|
401
|
+
};
|
402
|
+
var formatHolders = (items) => {
|
403
|
+
return items.map((d) => {
|
404
|
+
return {
|
405
|
+
id: d == null ? void 0 : d.form_record_id,
|
406
|
+
label: d == null ? void 0 : d.main_field
|
407
|
+
};
|
408
|
+
});
|
409
|
+
};
|
410
|
+
var getErrorMessageInfo2 = (errorList) => {
|
411
|
+
let errorMessage = "";
|
412
|
+
if (errorList == null ? void 0 : errorList.length) {
|
413
|
+
if (errorList.length === 1) {
|
414
|
+
errorMessage = errorList[0].label + " " + errorTypes[errorList[0].type];
|
415
|
+
} else {
|
416
|
+
errorMessage = `${errorList.length} ${import_utils2.locales.getText(
|
417
|
+
"pisell2.text.warnings"
|
418
|
+
)}`;
|
419
|
+
}
|
420
|
+
}
|
421
|
+
return errorMessage;
|
422
|
+
};
|
423
|
+
var getAllErrorList = (item) => {
|
424
|
+
const { resourceMaps } = item._data || {};
|
425
|
+
const { resource } = item._extend || {};
|
426
|
+
const errorList = [];
|
427
|
+
Object.entries(resource).forEach(([key, value]) => {
|
428
|
+
value.forEach((val) => {
|
429
|
+
var _a;
|
430
|
+
const list = (0, import_utilsByBooking.getErrorList)((_a = resourceMaps[key]) == null ? void 0 : _a.renderListMaps[val.relation_id], item);
|
431
|
+
errorList.push(...list);
|
432
|
+
console.log(list, "list");
|
433
|
+
});
|
434
|
+
});
|
435
|
+
return errorList;
|
436
|
+
};
|
437
|
+
var mapListItems = (items) => items.map((item) => ({
|
438
|
+
id: item.id || item.form_record_id,
|
439
|
+
label: item.labelText,
|
440
|
+
isError: !item.usable
|
441
|
+
}));
|
442
|
+
var getIsSubjectRequire = (state) => {
|
443
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
444
|
+
return ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.type) === "form" && ((_g = (_f = (_e = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _e.config) == null ? void 0 : _f.basic) == null ? void 0 : _g.subject_require) === "require";
|
445
|
+
};
|
446
|
+
var isNormalProductByDurationSchedule = (item) => {
|
447
|
+
var _a, _b;
|
448
|
+
return !(item == null ? void 0 : item.duration) && !((_a = item == null ? void 0 : item.schedules) == null ? void 0 : _a.length) && !((_b = item["schedule.ids"]) == null ? void 0 : _b.length);
|
449
|
+
};
|
450
|
+
var isAllNormalProduct = (items) => {
|
451
|
+
return items.every((item) => isNormalProductByDurationSchedule(item));
|
452
|
+
};
|
453
|
+
var isAllNormalProductByState = (state) => {
|
454
|
+
return isAllNormalProduct(state.service.value);
|
455
|
+
};
|
456
|
+
var getGeneralParams = (item, state, isParallelResource) => {
|
457
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
458
|
+
const { pet, service } = state;
|
459
|
+
const { holders = [], formData } = pet || {};
|
460
|
+
const parallelResourceOtherParams = {};
|
461
|
+
let multiResources;
|
462
|
+
if (isParallelResource) {
|
463
|
+
const hasDataItem = (0, import_utils6.getProductExtend)({
|
464
|
+
cacheItem: { ...item, new: 0 },
|
465
|
+
state
|
466
|
+
});
|
467
|
+
const { resourceMaps, resources } = hasDataItem._data || {};
|
468
|
+
parallelResourceOtherParams.errorMessage = getErrorMessageInfo2(getAllErrorList(hasDataItem));
|
469
|
+
multiResources = resources.map((resource) => {
|
470
|
+
var _a2, _b2;
|
471
|
+
const key = resource.form_id;
|
472
|
+
const detail = resourceMaps == null ? void 0 : resourceMaps[key];
|
473
|
+
const isMultiple = ((_a2 = detail == null ? void 0 : detail.select_type) == null ? void 0 : _a2.type) === "multiple";
|
474
|
+
const value = item._extend.resource[key];
|
475
|
+
return {
|
476
|
+
is_hide_like: isMultiple,
|
477
|
+
isParallelResource: true,
|
478
|
+
maxLength: isMultiple && detail.select_type.max,
|
479
|
+
resourceMode: isMultiple ? "multiple" : void 0,
|
480
|
+
serviceId: item._id,
|
481
|
+
resourceId: key,
|
482
|
+
_id: key,
|
483
|
+
id: (value || []).map((val) => val.relation_id),
|
484
|
+
status: ((_b2 = value == null ? void 0 : value[0]) == null ? void 0 : _b2.like_status) || "common",
|
485
|
+
lists: (detail == null ? void 0 : detail.renderList) ? mapListItems(detail == null ? void 0 : detail.renderList) : [],
|
486
|
+
disabled: state.disabledEdit || state.disableEventBookingEdit
|
487
|
+
};
|
488
|
+
});
|
489
|
+
} else {
|
490
|
+
const { resourcesOrigin } = service || {};
|
491
|
+
const resource = (0, import_utils5.formatResources)({
|
492
|
+
cacheItem: item,
|
493
|
+
resourcesOrigin,
|
494
|
+
isDay: false
|
495
|
+
});
|
496
|
+
multiResources = [
|
497
|
+
{
|
498
|
+
_id: item._id,
|
499
|
+
id: item._extend.resource,
|
500
|
+
status: ((_a = item._extend) == null ? void 0 : _a.like_status) || "common",
|
501
|
+
lists: mapListItems(resource)
|
502
|
+
}
|
503
|
+
];
|
504
|
+
}
|
505
|
+
const isNormalProduct = isNormalProductByDurationSchedule(item);
|
506
|
+
return {
|
507
|
+
format: ["HH:mm", "HH:mm"],
|
508
|
+
show_time: true,
|
509
|
+
duration_type: "minutes",
|
510
|
+
// 当前可选择holder列表
|
511
|
+
holders: formatHolders(holders),
|
512
|
+
isShowChangeHolder: !isNormalProduct,
|
513
|
+
isShowAction: (0, import_utils4.isShowAddTime)(state, item),
|
514
|
+
actionText: import_utils2.locales.getText("page.booking.text.add-time"),
|
515
|
+
isMultipleResource: true,
|
516
|
+
multiResources,
|
517
|
+
holderMaxCount: item == null ? void 0 : item._extend.quantity,
|
518
|
+
holderMode: (item == null ? void 0 : item._extend.quantity) > 1 ? "multiple" : void 0,
|
519
|
+
isErrorHolder: getIsSubjectRequire(state),
|
520
|
+
addHolderButtonText: ((_c = (_b = formData == null ? void 0 : formData[0]) == null ? void 0 : _b.form) == null ? void 0 : _c.title) || "",
|
521
|
+
holder_id: (_d = item == null ? void 0 : item._extend) == null ? void 0 : _d.holder_id,
|
522
|
+
start_date: !isNormalProduct ? (_e = item == null ? void 0 : item._extend) == null ? void 0 : _e.startDate : "",
|
523
|
+
end_date: !isNormalProduct ? ((_f = item == null ? void 0 : item._extend) == null ? void 0 : _f.endDate) || ((_g = item == null ? void 0 : item._extend) == null ? void 0 : _g.end_date) : "",
|
524
|
+
rowKey: `rowKey-${(_i = (_h = item == null ? void 0 : item._extend) == null ? void 0 : _h.other) == null ? void 0 : _i.rowKey}`,
|
525
|
+
...parallelResourceOtherParams
|
526
|
+
};
|
527
|
+
};
|
528
|
+
var calcAddTimeTotalPrice = (total, addTimeProducts) => {
|
529
|
+
return (Number(total) || 0) + (0, import_amount.getRelationDetailsTotal)(addTimeProducts || []);
|
530
|
+
};
|
531
|
+
var formatProducts = (lists, state, isRenderGroup = true, isGeneral, isParallelResource) => {
|
532
|
+
if (!(lists == null ? void 0 : lists.length)) return [];
|
533
|
+
const normalList = [];
|
534
|
+
const groupList = [];
|
535
|
+
const formItem = (item) => {
|
536
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
537
|
+
const _isDayBookingProduct = isDayBookingProduct(item, state);
|
538
|
+
const clientTitle = getHolderName(state, (_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.holder_id);
|
539
|
+
const options = formatOptions((_c = (_b = item == null ? void 0 : item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.option);
|
540
|
+
const bundle = formatBundle((_e = (_d = item == null ? void 0 : item._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.bundle);
|
541
|
+
const isNormalProduct = !import_status.appointmentTypes.includes(item == null ? void 0 : item.extension_type) || (state == null ? void 0 : state.renderType) === "eventBooking";
|
542
|
+
let resourceItem = {};
|
543
|
+
let errorMessage = "";
|
544
|
+
if (_isDayBookingProduct || isGeneral) {
|
545
|
+
resourceItem = getResourceItem((_f = item == null ? void 0 : item._extend) == null ? void 0 : _f.resource, state);
|
546
|
+
errorMessage = getErrorMessage(item, resourceItem, isDayBooking(state));
|
547
|
+
}
|
548
|
+
const generalParams = isGeneral ? getGeneralParams(item, state, !!isParallelResource) : {};
|
549
|
+
return {
|
550
|
+
id: item == null ? void 0 : item.id,
|
551
|
+
_id: item == null ? void 0 : item._id,
|
552
|
+
name: item == null ? void 0 : item.title,
|
553
|
+
price: (_g = item == null ? void 0 : item._extend) == null ? void 0 : _g.price,
|
554
|
+
total: calcAddTimeTotalPrice((_h = item == null ? void 0 : item._extend) == null ? void 0 : _h.total, (_i = item == null ? void 0 : item._extend) == null ? void 0 : _i.relation_details),
|
555
|
+
origin_total: calcAddTimeTotalPrice((_j = item == null ? void 0 : item._extend) == null ? void 0 : _j.origin_total, (_k = item == null ? void 0 : item._extend) == null ? void 0 : _k.relation_details),
|
556
|
+
num: item == null ? void 0 : item._extend.quantity,
|
557
|
+
image: item == null ? void 0 : item.cover,
|
558
|
+
isShowNote: true,
|
559
|
+
note: item == null ? void 0 : item.note,
|
560
|
+
like_status: (_l = item == null ? void 0 : item._extend) == null ? void 0 : _l.like_status,
|
561
|
+
bundle,
|
562
|
+
options,
|
563
|
+
errorMessage,
|
564
|
+
product_option_string: (_n = (_m = item == null ? void 0 : item._extend) == null ? void 0 : _m.other) == null ? void 0 : _n.product_option_string,
|
565
|
+
discount_reason: (_o = item == null ? void 0 : item._extend) == null ? void 0 : _o.discount_reason,
|
566
|
+
resource_id: isNormalProduct ? 0 : (_p = item == null ? void 0 : item._extend) == null ? void 0 : _p.resource,
|
567
|
+
relation_form_name: isNormalProduct ? "" : (resourceItem == null ? void 0 : resourceItem.labelText) || item.relation_form_name,
|
568
|
+
holder_title: clientTitle,
|
569
|
+
start_date: !isNormalProduct ? (_q = item == null ? void 0 : item._extend) == null ? void 0 : _q.start_date : "",
|
570
|
+
end_date: !isNormalProduct ? (_r = item == null ? void 0 : item._extend) == null ? void 0 : _r.end_date : "",
|
571
|
+
holder_id: ((_s = item == null ? void 0 : item._extend) == null ? void 0 : _s.holder_id) || 0,
|
572
|
+
isNormalProduct,
|
573
|
+
locale: state.locale,
|
574
|
+
symbol: state.amountSymbol,
|
575
|
+
relation_products: ((_t = item == null ? void 0 : item._extend) == null ? void 0 : _t.relation_details) || [],
|
576
|
+
items: isEventBooking(state) ? [] : formItems(((_u = item == null ? void 0 : item._extend) == null ? void 0 : _u.items) || []),
|
577
|
+
...generalParams,
|
578
|
+
_origin: item
|
579
|
+
};
|
580
|
+
};
|
581
|
+
lists.forEach((item) => {
|
582
|
+
var _a;
|
583
|
+
if (!((_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.groupId)) {
|
584
|
+
normalList.push(formItem(item));
|
585
|
+
} else {
|
586
|
+
groupList.push(item);
|
587
|
+
}
|
588
|
+
});
|
589
|
+
let groups = groupList.reduce((prev, item) => {
|
590
|
+
var _a;
|
591
|
+
const groupId = (_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.groupId;
|
592
|
+
if (!prev[groupId]) {
|
593
|
+
prev[groupId] = [];
|
594
|
+
}
|
595
|
+
prev[groupId].push(item);
|
596
|
+
return prev;
|
597
|
+
}, {});
|
598
|
+
console.log(normalList, "normalList");
|
599
|
+
if (isRenderGroup) {
|
600
|
+
return Object.values(groups).map((d) => formItem((0, import_utils3.concatBookings)(d))).concat(normalList);
|
601
|
+
} else {
|
602
|
+
return lists == null ? void 0 : lists.map((item) => formItem(item));
|
603
|
+
}
|
604
|
+
};
|
605
|
+
var disabledDate = (current, position, currentDate) => {
|
606
|
+
if (!(0, import_dayjs.default)(currentDate).isValid()) return;
|
607
|
+
if (position === "start") {
|
608
|
+
return false;
|
609
|
+
}
|
610
|
+
if (position === "end" && current.endOf("day") && currentDate) {
|
611
|
+
const endDisabled = currentDate.add(8, "months").format("YYYY-MM-DD");
|
612
|
+
return (0, import_dayjs.default)(endDisabled) < current.startOf("day") || current.startOf("day") <= currentDate;
|
613
|
+
}
|
614
|
+
return current && current <= currentDate;
|
615
|
+
};
|
616
|
+
var isDayBooking = (state) => {
|
617
|
+
return (state == null ? void 0 : state.renderType) === "dayBooking" || (state == null ? void 0 : state.renderType) === "eventBooking";
|
618
|
+
};
|
619
|
+
var isDaysBooking = (state) => {
|
620
|
+
return (state == null ? void 0 : state.renderType) === "dayBooking";
|
621
|
+
};
|
622
|
+
var isEventBooking = (state) => {
|
623
|
+
return state.renderType === "eventBooking";
|
624
|
+
};
|
625
|
+
var isAppointmentProduct = (item) => {
|
626
|
+
return import_status.appointmentTypes.includes(item.extension_type);
|
627
|
+
};
|
628
|
+
var isTerminalDayBooking = (state) => {
|
629
|
+
return state.isTerminalDayBookingPage;
|
630
|
+
};
|
631
|
+
var formatDayDate = (_extend) => {
|
632
|
+
let startDate = (0, import_dayjs.default)(_extend == null ? void 0 : _extend.start_date).startOf("day");
|
633
|
+
let endDate = (0, import_dayjs.default)(_extend == null ? void 0 : _extend.end_date).startOf("day");
|
634
|
+
return {
|
635
|
+
..._extend,
|
636
|
+
start_date: startDate,
|
637
|
+
end_date: endDate
|
638
|
+
};
|
639
|
+
};
|
640
|
+
var formatDayTime = ({ startDate, endDate }) => {
|
641
|
+
const shopOpeningTime = localStorage.getItem("shopOpeningHours") || "00:00";
|
642
|
+
let start_date = (0, import_dayjs.default)(startDate).format("YYYY-MM-DD");
|
643
|
+
let end_date = (0, import_dayjs.default)(endDate).format("YYYY-MM-DD");
|
644
|
+
const result = {
|
645
|
+
startDateTime: (0, import_dayjs.default)(`${start_date}T${shopOpeningTime}:00`),
|
646
|
+
// 结束日期根据营业日时间减去一分钟
|
647
|
+
endDateTime: (0, import_dayjs.default)(`${end_date}T${shopOpeningTime}:00`).subtract(
|
648
|
+
1,
|
649
|
+
"minute"
|
650
|
+
)
|
651
|
+
};
|
652
|
+
return result;
|
653
|
+
};
|
654
|
+
var formatDateTime = (start_date, end_date) => {
|
655
|
+
const _openingTime = (0, import_status.openingTime)();
|
656
|
+
const startDate = `${start_date} ${_openingTime}`;
|
657
|
+
let endDate = `${end_date} ${_openingTime}`;
|
658
|
+
const date = {
|
659
|
+
value: (0, import_dayjs.default)(startDate),
|
660
|
+
end_date: (0, import_dayjs.default)(endDate).subtract(1, "minute")
|
661
|
+
};
|
662
|
+
return date;
|
663
|
+
};
|
664
|
+
var initDate = () => {
|
665
|
+
const startDate = (0, import_dayjs.default)().format("YYYY-MM-DD");
|
666
|
+
let endDate = (0, import_dayjs.default)().add(1, "days").format("YYYY-MM-DD");
|
667
|
+
const date = formatDateTime(startDate, endDate);
|
668
|
+
return date;
|
669
|
+
};
|
670
|
+
var isHasDayAppointmentProduct = (state) => {
|
671
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
672
|
+
const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
|
673
|
+
const services = ((_e = state.service) == null ? void 0 : _e.value) || [];
|
674
|
+
const pets = ((_g = (_f = state.pet) == null ? void 0 : _f.value) == null ? void 0 : _g[form_id]) || [];
|
675
|
+
if (!pets.length) return true;
|
676
|
+
const checkType = (extension_type) => {
|
677
|
+
if (isEventBooking(state)) {
|
678
|
+
return true;
|
679
|
+
}
|
680
|
+
return import_status.appointmentTypes.includes(extension_type);
|
681
|
+
};
|
682
|
+
const appointmentServices = services.filter(
|
683
|
+
(d) => checkType(d.extension_type)
|
684
|
+
);
|
685
|
+
if (!appointmentServices.length) return true;
|
686
|
+
let _pets = pets == null ? void 0 : pets.map((d) => {
|
687
|
+
return {
|
688
|
+
...d,
|
689
|
+
// 如果该购物车中没选择任何商品,则不需要验证,所以直接用1来填充
|
690
|
+
// services: !holderProducts?.length ? [1] : holderProducts?.filter((d: any) => appointmentTypes.includes(d.extension_type))
|
691
|
+
services: services.filter(
|
692
|
+
(item) => {
|
693
|
+
var _a2;
|
694
|
+
return ((_a2 = item._extend) == null ? void 0 : _a2.holder_id) == d.form_record_id && checkType(item.extension_type);
|
695
|
+
}
|
696
|
+
)
|
697
|
+
};
|
698
|
+
});
|
699
|
+
_pets = _pets.filter((d) => !d.services.length);
|
700
|
+
return _pets.length > 0;
|
701
|
+
};
|
702
|
+
var getDayProducts = (holderId2, lists, isTerminal) => {
|
703
|
+
let _lists = lists || [];
|
704
|
+
if (!holderId2 && !isTerminal) {
|
705
|
+
_lists = _lists.filter(
|
706
|
+
(item) => !import_status.appointmentTypes.includes(item == null ? void 0 : item.extension_type)
|
707
|
+
);
|
708
|
+
} else {
|
709
|
+
_lists = _lists.filter(
|
710
|
+
(item) => {
|
711
|
+
var _a;
|
712
|
+
return !import_status.appointmentTypes.includes(item == null ? void 0 : item.extension_type) || import_status.appointmentTypes.includes(item == null ? void 0 : item.extension_type) && ((_a = item.duration) == null ? void 0 : _a.type) === "days";
|
713
|
+
}
|
714
|
+
);
|
715
|
+
}
|
716
|
+
return _lists;
|
717
|
+
};
|
718
|
+
var getPets = (state) => {
|
719
|
+
var _a, _b, _c, _d, _e, _f;
|
720
|
+
const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
|
721
|
+
const pets = ((_f = (_e = state == null ? void 0 : state.pet) == null ? void 0 : _e.value) == null ? void 0 : _f[form_id]) || [];
|
722
|
+
return pets;
|
723
|
+
};
|
724
|
+
var getAppointmentService = (state) => {
|
725
|
+
var _a;
|
726
|
+
const services = ((_a = state.service) == null ? void 0 : _a.value) || [];
|
727
|
+
let lists = services.filter(
|
728
|
+
(item) => import_status.appointmentTypes.includes(item.extension_type)
|
729
|
+
);
|
730
|
+
return lists;
|
731
|
+
};
|
732
|
+
var isOpenDeletePet = (state, newVal) => {
|
733
|
+
var _a, _b, _c, _d, _e, _f;
|
734
|
+
const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
|
735
|
+
const oldPets = ((_f = (_e = state == null ? void 0 : state.pet) == null ? void 0 : _e.value) == null ? void 0 : _f[form_id]) || [];
|
736
|
+
const newPets = (newVal == null ? void 0 : newVal[form_id]) || [];
|
737
|
+
const deletePets = oldPets.filter(
|
738
|
+
(item) => !newPets.some(
|
739
|
+
(newItem) => newItem.form_record_id === item.form_record_id
|
740
|
+
)
|
741
|
+
);
|
742
|
+
const servicePets = deletePets.map((item) => {
|
743
|
+
var _a2, _b2;
|
744
|
+
return {
|
745
|
+
...item,
|
746
|
+
services: (_b2 = (_a2 = state.service) == null ? void 0 : _a2.value) == null ? void 0 : _b2.filter(
|
747
|
+
(d) => {
|
748
|
+
var _a3;
|
749
|
+
return ((_a3 = d._extend) == null ? void 0 : _a3.holder_id) == item.form_record_id;
|
750
|
+
}
|
751
|
+
)
|
752
|
+
};
|
753
|
+
});
|
754
|
+
const lists = servicePets.filter((item) => {
|
755
|
+
var _a2;
|
756
|
+
return ((_a2 = item.services) == null ? void 0 : _a2.length) > 0;
|
757
|
+
});
|
758
|
+
return {
|
759
|
+
ids: lists.map((item) => item.form_record_id),
|
760
|
+
lists
|
761
|
+
};
|
762
|
+
};
|
763
|
+
var holderId = (state) => {
|
764
|
+
var _a;
|
765
|
+
return Number(((_a = state == null ? void 0 : state.activeCartId) == null ? void 0 : _a[0]) || 0);
|
766
|
+
};
|
767
|
+
function calculateTotalPrice(data) {
|
768
|
+
const _price = data == null ? void 0 : data.reduce(
|
769
|
+
(total, item) => total + ((item == null ? void 0 : item.price) || (item == null ? void 0 : item.add_price)) * item.num,
|
770
|
+
0
|
771
|
+
);
|
772
|
+
return parseFloat(_price);
|
773
|
+
}
|
774
|
+
function updateSinglePrice(currentValue, single) {
|
775
|
+
const _single = [];
|
776
|
+
for (let index = 0; index < currentValue.length; index++) {
|
777
|
+
const item = currentValue[index];
|
778
|
+
const currentIndex = single.findIndex(
|
779
|
+
(_single2) => _single2.id === item.id
|
780
|
+
);
|
781
|
+
if (currentIndex !== -1) {
|
782
|
+
item.add_price = single[currentIndex].add_price;
|
783
|
+
item.name = single[currentIndex].name;
|
784
|
+
_single.push(item);
|
785
|
+
}
|
786
|
+
}
|
787
|
+
return _single;
|
788
|
+
}
|
789
|
+
function updateBundlePrice(currentValue, [bundle, single]) {
|
790
|
+
var _a;
|
791
|
+
const _bundle = [];
|
792
|
+
for (let index = 0; index < currentValue.length; index++) {
|
793
|
+
const item = currentValue[index];
|
794
|
+
const currentIndex = bundle.findIndex(
|
795
|
+
(_bundle2) => _bundle2.id === item.id
|
796
|
+
);
|
797
|
+
if (currentIndex !== -1 && bundle[currentIndex]) {
|
798
|
+
item.title = bundle[currentIndex].title;
|
799
|
+
item.price_type = bundle[currentIndex].price_type;
|
800
|
+
item._price = bundle[currentIndex].price;
|
801
|
+
const bundle_sum_price = parseFloat(
|
802
|
+
bundle[currentIndex].price_type === "markdown" ? bundle[currentIndex].price * -1 : bundle[currentIndex].price
|
803
|
+
).toFixed(2);
|
804
|
+
item.price = bundle_sum_price;
|
805
|
+
item.bundle_sum_price = bundle_sum_price;
|
806
|
+
if ((_a = item == null ? void 0 : item.option) == null ? void 0 : _a.length) {
|
807
|
+
const _option = JSON.parse(JSON.stringify(item.option));
|
808
|
+
item.option = updateSinglePrice(_option, single);
|
809
|
+
let optionPrice = 0;
|
810
|
+
optionPrice = calculateTotalPrice(item.option);
|
811
|
+
const bundle_sum_price2 = (parseFloat(
|
812
|
+
bundle[currentIndex].price_type === "markdown" ? bundle[currentIndex].price * -1 : bundle[currentIndex].price
|
813
|
+
) + optionPrice).toFixed(2);
|
814
|
+
item.price = bundle_sum_price2;
|
815
|
+
item.bundle_sum_price = bundle_sum_price2;
|
816
|
+
}
|
817
|
+
_bundle.push(item);
|
818
|
+
}
|
819
|
+
}
|
820
|
+
return _bundle;
|
821
|
+
}
|
822
|
+
function flatData(newPackageData) {
|
823
|
+
var _a, _b, _c;
|
824
|
+
let bundle = [];
|
825
|
+
let single = [];
|
826
|
+
for (const group of newPackageData) {
|
827
|
+
if ((_a = group == null ? void 0 : group.bundle_item) == null ? void 0 : _a.length) {
|
828
|
+
for (const item of group.bundle_item) {
|
829
|
+
bundle.push(item);
|
830
|
+
}
|
831
|
+
}
|
832
|
+
}
|
833
|
+
for (const bundleItem of bundle) {
|
834
|
+
if ((_b = bundleItem == null ? void 0 : bundleItem.option_group) == null ? void 0 : _b.length) {
|
835
|
+
for (const group of bundleItem.option_group) {
|
836
|
+
if ((_c = group == null ? void 0 : group.option_item) == null ? void 0 : _c.length) {
|
837
|
+
for (const item of group.option_item) {
|
838
|
+
single.push(item);
|
839
|
+
}
|
840
|
+
}
|
841
|
+
}
|
842
|
+
}
|
843
|
+
}
|
844
|
+
return [bundle, single];
|
845
|
+
}
|
846
|
+
function updateNormalBundlePrice(currentValue, newBundleData) {
|
847
|
+
const _currentValue = JSON.parse(JSON.stringify(currentValue));
|
848
|
+
const _flatData = flatData(newBundleData);
|
849
|
+
const newValue = updateBundlePrice(_currentValue, _flatData);
|
850
|
+
return newValue;
|
851
|
+
}
|
852
|
+
var normalServicePrice = async (ids, state) => {
|
853
|
+
var _a, _b, _c, _d;
|
854
|
+
const services = ((_a = state.service) == null ? void 0 : _a.value) || [];
|
855
|
+
const customerId = ((_c = (_b = state == null ? void 0 : state.client) == null ? void 0 : _b.value) == null ? void 0 : _c.id) || 0;
|
856
|
+
let data = await state.apis.getServices({
|
857
|
+
skip: 1,
|
858
|
+
num: 500,
|
859
|
+
ids,
|
860
|
+
customer_id: customerId,
|
861
|
+
open_quotation: 1,
|
862
|
+
open_bundle: 1,
|
863
|
+
with: ["bundleGroup.bundleItem", "optionGroup.optionItem"],
|
864
|
+
_config: { abort: true }
|
865
|
+
});
|
866
|
+
if (!((_d = data == null ? void 0 : data.list) == null ? void 0 : _d.length)) return;
|
867
|
+
const _lists = services.map((item) => {
|
868
|
+
var _a2, _b2, _c2, _d2;
|
869
|
+
let obj = { ...item };
|
870
|
+
if (!import_status.appointmentTypes.includes(obj.extension_type)) {
|
871
|
+
const product = data.list.find((p) => p.id === (item == null ? void 0 : item.product_id));
|
872
|
+
let _extend = (obj == null ? void 0 : obj._extend) || {};
|
873
|
+
const other = (_extend == null ? void 0 : _extend.other) || {};
|
874
|
+
if (product) {
|
875
|
+
if (((_a2 = product == null ? void 0 : product.variant) == null ? void 0 : _a2.length) && (other == null ? void 0 : other.product_variant_id)) {
|
876
|
+
const _variant = (_b2 = product == null ? void 0 : product.variant) == null ? void 0 : _b2.find(
|
877
|
+
(v) => v.id === (other == null ? void 0 : other.product_variant_id)
|
878
|
+
);
|
879
|
+
obj._extend.price = Number(_variant == null ? void 0 : _variant.price);
|
880
|
+
obj._extend.other.price = Number(_variant == null ? void 0 : _variant.price);
|
881
|
+
} else {
|
882
|
+
obj._extend.price = Number(product == null ? void 0 : product.price);
|
883
|
+
}
|
884
|
+
if (((_c2 = other == null ? void 0 : other.bundle) == null ? void 0 : _c2.length) && ((_d2 = product == null ? void 0 : product.bundle_group) == null ? void 0 : _d2.length)) {
|
885
|
+
let _bundle = updateNormalBundlePrice(
|
886
|
+
other.bundle,
|
887
|
+
product == null ? void 0 : product.bundle_group
|
888
|
+
);
|
889
|
+
obj._extend.other = {
|
890
|
+
...other,
|
891
|
+
bundle: _bundle
|
892
|
+
};
|
893
|
+
}
|
894
|
+
obj._extend.total = (0, import_utils.getProductTotalPrice)(obj);
|
895
|
+
obj._extend.origin_total = (0, import_utils.getProductTotalPrice)(obj);
|
896
|
+
}
|
897
|
+
}
|
898
|
+
return obj;
|
899
|
+
});
|
900
|
+
return _lists;
|
901
|
+
};
|
902
|
+
var updateAppointmentServicePrice = async (state, { start_date, end_date, product_id }) => {
|
903
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
904
|
+
const defaultReturn = {
|
905
|
+
multiDayPrices: [],
|
906
|
+
price: Number((_c = (_b = (_a = state == null ? void 0 : state.service) == null ? void 0 : _a.cacheItem) == null ? void 0 : _b._extend) == null ? void 0 : _c.price) || 0
|
907
|
+
};
|
908
|
+
try {
|
909
|
+
const format = "YYYY-MM-DD";
|
910
|
+
const customer_id = ((_e = (_d = state == null ? void 0 : state.client) == null ? void 0 : _d.value) == null ? void 0 : _e.id) || 1;
|
911
|
+
const _product_id = product_id || ((_f = state.service.cacheItem) == null ? void 0 : _f.product_id) || 0;
|
912
|
+
let multi_day_price = null;
|
913
|
+
if (!product_id) {
|
914
|
+
console.log("updateAppointmentServicePrice", product_id);
|
915
|
+
return defaultReturn;
|
916
|
+
}
|
917
|
+
const startDate = (0, import_dayjs.default)(start_date).format(format);
|
918
|
+
const endDate = (0, import_dayjs.default)(end_date).subtract(1, "days").format(format);
|
919
|
+
const params = {
|
920
|
+
customer_id,
|
921
|
+
multi_day: { start: startDate, end: endDate }
|
922
|
+
};
|
923
|
+
const res = await (0, import_serve.postMultiDay)(_product_id, params);
|
924
|
+
const _prices = ((_g = res == null ? void 0 : res.data) == null ? void 0 : _g.multi_day_price) || [];
|
925
|
+
multi_day_price = _prices == null ? void 0 : _prices.map((p) => {
|
926
|
+
var _a2, _b2;
|
927
|
+
const startDate2 = (0, import_dayjs.default)((_a2 = p == null ? void 0 : p.multi_day) == null ? void 0 : _a2.start);
|
928
|
+
const endDate2 = (0, import_dayjs.default)((_b2 = p == null ? void 0 : p.multi_day) == null ? void 0 : _b2.end).add(1, "day");
|
929
|
+
let duration = (endDate2 == null ? void 0 : endDate2.diff(startDate2, "day")) || 1;
|
930
|
+
return {
|
931
|
+
total: Number(p == null ? void 0 : p.price),
|
932
|
+
origin_total: Number(p == null ? void 0 : p.price),
|
933
|
+
num: duration,
|
934
|
+
quotation_id: (p == null ? void 0 : p.quotation_id) || 0,
|
935
|
+
start_date: startDate2 == null ? void 0 : startDate2.format(format),
|
936
|
+
end_date: endDate2 == null ? void 0 : endDate2.format(format)
|
937
|
+
};
|
938
|
+
});
|
939
|
+
return {
|
940
|
+
multiDayPrices: multi_day_price,
|
941
|
+
price: Number((_h = res == null ? void 0 : res.data) == null ? void 0 : _h.price) || 0
|
942
|
+
};
|
943
|
+
} catch (error) {
|
944
|
+
console.log("updateAppointmentServicePrice", error);
|
945
|
+
}
|
946
|
+
return defaultReturn;
|
947
|
+
};
|
948
|
+
var updateServicePrice = (state) => {
|
949
|
+
var _a;
|
950
|
+
let services = ((_a = state.service) == null ? void 0 : _a.value) || [];
|
951
|
+
let normalServices = services == null ? void 0 : services.filter(
|
952
|
+
(item) => isEventBooking(state) ? true : !import_status.appointmentTypes.includes(item.extension_type)
|
953
|
+
);
|
954
|
+
let newNormalIds = normalServices == null ? void 0 : normalServices.map(
|
955
|
+
(item) => (item == null ? void 0 : item.product_id) || (item == null ? void 0 : item.id)
|
956
|
+
);
|
957
|
+
newNormalIds = [...new Set(newNormalIds)];
|
958
|
+
if (newNormalIds == null ? void 0 : newNormalIds.length) {
|
959
|
+
return normalServicePrice(newNormalIds, state);
|
960
|
+
}
|
961
|
+
return [];
|
962
|
+
};
|
963
|
+
// Annotate the CommonJS export names for ESM import in node:
|
964
|
+
0 && (module.exports = {
|
965
|
+
disabledDate,
|
966
|
+
formItems,
|
967
|
+
formatActiveKey,
|
968
|
+
formatDateTime,
|
969
|
+
formatDayDate,
|
970
|
+
formatDayTime,
|
971
|
+
formatHolderLists,
|
972
|
+
formatProducts,
|
973
|
+
getAppointmentService,
|
974
|
+
getDayProducts,
|
975
|
+
getErrorMessage,
|
976
|
+
getIsSubjectRequire,
|
977
|
+
getPets,
|
978
|
+
getResourceItem,
|
979
|
+
handleChangeHolder,
|
980
|
+
holderId,
|
981
|
+
initDate,
|
982
|
+
isAllNormalProduct,
|
983
|
+
isAllNormalProductByState,
|
984
|
+
isAppointmentProduct,
|
985
|
+
isBookingProduct,
|
986
|
+
isDayBooking,
|
987
|
+
isDayBookingProduct,
|
988
|
+
isDaysBooking,
|
989
|
+
isEventBooking,
|
990
|
+
isHasDayAppointmentProduct,
|
991
|
+
isNormalProductByDurationSchedule,
|
992
|
+
isOpenDeletePet,
|
993
|
+
isTerminalDayBooking,
|
994
|
+
updateAppointmentServicePrice,
|
995
|
+
updateNormalBundlePrice,
|
996
|
+
updateServicePrice,
|
997
|
+
updateServices
|
998
|
+
});
|