@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,171 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
3
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
4
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
5
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
6
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
7
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
8
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
9
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
10
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
11
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
12
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
13
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
14
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
15
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
16
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
17
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
18
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
20
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
21
|
+
import { isWalkIn } from "../../utils";
|
22
|
+
import { useEffect, useMemo, useState } from 'react';
|
23
|
+
import { getFormDetail } from "../pet/serve";
|
24
|
+
import useGetHolderList from "./useGetHolderList";
|
25
|
+
import { handleChangeHolder } from "../service2/utils";
|
26
|
+
export var useFormDataConfig = function useFormDataConfig(state) {
|
27
|
+
var _state$bookingConfig2;
|
28
|
+
var formDataConfig = useMemo(function () {
|
29
|
+
var _state$bookingConfig, _holder$form, _holder$form2;
|
30
|
+
var _holder = state === null || state === void 0 || (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 ? void 0 : _state$bookingConfig.holder;
|
31
|
+
if (!_holder) {
|
32
|
+
return null;
|
33
|
+
}
|
34
|
+
return _objectSpread(_objectSpread(_objectSpread({}, _holder), _holder === null || _holder === void 0 ? void 0 : _holder.form), {}, {
|
35
|
+
options: [],
|
36
|
+
form_id: _holder === null || _holder === void 0 || (_holder$form = _holder.form) === null || _holder$form === void 0 ? void 0 : _holder$form.id,
|
37
|
+
field: _holder === null || _holder === void 0 || (_holder$form2 = _holder.form) === null || _holder$form2 === void 0 ? void 0 : _holder$form2.form_field,
|
38
|
+
relation_type: 'appointment_booking',
|
39
|
+
form_record: []
|
40
|
+
});
|
41
|
+
}, [state === null || state === void 0 || (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 ? void 0 : _state$bookingConfig2.holder]);
|
42
|
+
|
43
|
+
// 是Minor并且与Waiver关联
|
44
|
+
var isMinorAndWaiver = useMemo(function () {
|
45
|
+
if ((formDataConfig === null || formDataConfig === void 0 ? void 0 : formDataConfig.form_type) === "minors") {
|
46
|
+
var detail = formDataConfig === null || formDataConfig === void 0 ? void 0 : formDataConfig.form_field.find(function (item) {
|
47
|
+
return item.filed_type === 'form_to_form' && item.status === 'hide';
|
48
|
+
});
|
49
|
+
if (detail) {
|
50
|
+
var _detail$setting;
|
51
|
+
return detail === null || detail === void 0 || (_detail$setting = detail.setting) === null || _detail$setting === void 0 ? void 0 : _detail$setting.linkedTable;
|
52
|
+
}
|
53
|
+
return false;
|
54
|
+
}
|
55
|
+
return false;
|
56
|
+
}, [formDataConfig]);
|
57
|
+
return {
|
58
|
+
formDataConfig: formDataConfig,
|
59
|
+
isMinorAndWaiver: isMinorAndWaiver
|
60
|
+
};
|
61
|
+
};
|
62
|
+
var useAddHolder = function useAddHolder(state, dispatch) {
|
63
|
+
var _useState = useState(null),
|
64
|
+
_useState2 = _slicedToArray(_useState, 2),
|
65
|
+
waiverForm = _useState2[0],
|
66
|
+
setWaiverForm = _useState2[1];
|
67
|
+
var getHolders = useGetHolderList(state, dispatch);
|
68
|
+
var _useFormDataConfig = useFormDataConfig(state),
|
69
|
+
formDataConfig = _useFormDataConfig.formDataConfig,
|
70
|
+
isMinorAndWaiver = _useFormDataConfig.isMinorAndWaiver;
|
71
|
+
useEffect(function () {
|
72
|
+
if (isMinorAndWaiver) {
|
73
|
+
getFormDetail(isMinorAndWaiver).then(function (res) {
|
74
|
+
setWaiverForm(res);
|
75
|
+
dispatch({
|
76
|
+
type: 'setPet',
|
77
|
+
payload: {
|
78
|
+
waiverForm: res
|
79
|
+
}
|
80
|
+
});
|
81
|
+
});
|
82
|
+
}
|
83
|
+
}, [isMinorAndWaiver]);
|
84
|
+
var handleAddHolder = function handleAddHolder(products, currentItem) {
|
85
|
+
var _state$client, _state$client2;
|
86
|
+
var _data = {
|
87
|
+
formDataConfig: isMinorAndWaiver ? _objectSpread(_objectSpread({}, waiverForm), {}, {
|
88
|
+
customer_id: (_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id,
|
89
|
+
is_franchisor: formDataConfig.is_franchisor
|
90
|
+
}) : _objectSpread({}, formDataConfig)
|
91
|
+
};
|
92
|
+
var isWalkInBol = isWalkIn((_state$client2 = state.client) === null || _state$client2 === void 0 || (_state$client2 = _state$client2.value) === null || _state$client2 === void 0 ? void 0 : _state$client2.id);
|
93
|
+
if (formDataConfig.data_range === 'customer' && !isWalkInBol) {
|
94
|
+
var _state$client3;
|
95
|
+
_data.customerId = (_state$client3 = state.client) === null || _state$client3 === void 0 ? void 0 : _state$client3.value.id;
|
96
|
+
}
|
97
|
+
state.action({
|
98
|
+
type: 'pisell1.goCustomFormAddData',
|
99
|
+
data: _data,
|
100
|
+
callback: function () {
|
101
|
+
var _callback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
102
|
+
var obj, _iterator, _step, item, _state$pet, _find, oldList, formValue, selectId, oldDetail, value;
|
103
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
104
|
+
while (1) switch (_context.prev = _context.next) {
|
105
|
+
case 0:
|
106
|
+
obj = {};
|
107
|
+
_iterator = _createForOfIteratorHelper(res);
|
108
|
+
try {
|
109
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
110
|
+
item = _step.value;
|
111
|
+
obj[item.key] = item.value;
|
112
|
+
}
|
113
|
+
} catch (err) {
|
114
|
+
_iterator.e(err);
|
115
|
+
} finally {
|
116
|
+
_iterator.f();
|
117
|
+
}
|
118
|
+
if (!isMinorAndWaiver) {
|
119
|
+
_context.next = 13;
|
120
|
+
break;
|
121
|
+
}
|
122
|
+
oldList = (state === null || state === void 0 || (_state$pet = state.pet) === null || _state$pet === void 0 ? void 0 : _state$pet.holders) || [];
|
123
|
+
formValue = ((_find = (obj["form_to_form_value"] || []).find(function (item) {
|
124
|
+
return item.form_id === formDataConfig.form_id;
|
125
|
+
})) === null || _find === void 0 ? void 0 : _find.form_data_value) || [];
|
126
|
+
selectId = Math.max.apply(Math, _toConsumableArray(formValue));
|
127
|
+
oldDetail = oldList.find(function (item) {
|
128
|
+
return item.form_record_id === selectId;
|
129
|
+
});
|
130
|
+
_context.next = 10;
|
131
|
+
return getHolders();
|
132
|
+
case 10:
|
133
|
+
if (formValue.length && !oldDetail) {
|
134
|
+
value = handleChangeHolder(products, currentItem, {
|
135
|
+
id: selectId
|
136
|
+
});
|
137
|
+
dispatch({
|
138
|
+
type: 'setService',
|
139
|
+
payload: {
|
140
|
+
value: value
|
141
|
+
}
|
142
|
+
});
|
143
|
+
}
|
144
|
+
_context.next = 14;
|
145
|
+
break;
|
146
|
+
case 13:
|
147
|
+
dispatch({
|
148
|
+
type: 'setPet',
|
149
|
+
payload: {
|
150
|
+
holders: !isWalkInBol ? [obj].concat(_toConsumableArray(state.pet.holders)) : state.pet.holders
|
151
|
+
}
|
152
|
+
});
|
153
|
+
case 14:
|
154
|
+
case "end":
|
155
|
+
return _context.stop();
|
156
|
+
}
|
157
|
+
}, _callee);
|
158
|
+
}));
|
159
|
+
function callback(_x) {
|
160
|
+
return _callback.apply(this, arguments);
|
161
|
+
}
|
162
|
+
return callback;
|
163
|
+
}()
|
164
|
+
});
|
165
|
+
};
|
166
|
+
return {
|
167
|
+
handleAddHolder: handleAddHolder,
|
168
|
+
waiverForm: waiverForm
|
169
|
+
};
|
170
|
+
};
|
171
|
+
export default useAddHolder;
|
@@ -0,0 +1,48 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
5
|
+
import { useMemoizedFn } from "ahooks";
|
6
|
+
import useHolderConfig from "./useHolderConfig";
|
7
|
+
var useGetHolderList = function useGetHolderList(state, dispatch) {
|
8
|
+
var _useHolderConfig = useHolderConfig(state),
|
9
|
+
holder = _useHolderConfig.holder,
|
10
|
+
appointment_subject = _useHolderConfig.appointment_subject;
|
11
|
+
var getHolders = useMemoizedFn( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
12
|
+
var _state$client, _holder$form, _state$client2;
|
13
|
+
var params, data;
|
14
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
15
|
+
while (1) switch (_context.prev = _context.next) {
|
16
|
+
case 0:
|
17
|
+
if (!(holder.data_range === 'customer' && !((_state$client = state.client) !== null && _state$client !== void 0 && (_state$client = _state$client.value) !== null && _state$client !== void 0 && _state$client.id))) {
|
18
|
+
_context.next = 2;
|
19
|
+
break;
|
20
|
+
}
|
21
|
+
return _context.abrupt("return");
|
22
|
+
case 2:
|
23
|
+
params = {
|
24
|
+
form_id: appointment_subject.form_id,
|
25
|
+
source_shop_customer: holder === null || holder === void 0 || (_holder$form = holder.form) === null || _holder$form === void 0 ? void 0 : _holder$form.is_franchisor,
|
26
|
+
customer_id: holder.data_range === 'customer' ? (_state$client2 = state.client) === null || _state$client2 === void 0 || (_state$client2 = _state$client2.value) === null || _state$client2 === void 0 ? void 0 : _state$client2.id : undefined,
|
27
|
+
skip: 1,
|
28
|
+
num: 100
|
29
|
+
};
|
30
|
+
_context.next = 5;
|
31
|
+
return state.apis.getPetsData(params);
|
32
|
+
case 5:
|
33
|
+
data = _context.sent;
|
34
|
+
dispatch({
|
35
|
+
type: 'setPet',
|
36
|
+
payload: {
|
37
|
+
holders: data.list
|
38
|
+
}
|
39
|
+
});
|
40
|
+
case 7:
|
41
|
+
case "end":
|
42
|
+
return _context.stop();
|
43
|
+
}
|
44
|
+
}, _callee);
|
45
|
+
})));
|
46
|
+
return getHolders;
|
47
|
+
};
|
48
|
+
export default useGetHolderList;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { useMemo } from 'react';
|
2
|
+
import { isWalkIn } from "../../utils";
|
3
|
+
var useHolderConfig = function useHolderConfig(state) {
|
4
|
+
var _state$bookingConfig2, _state$bookingConfig4, _state$client2;
|
5
|
+
// board设置, 获取预约主体
|
6
|
+
var appointment_subject = useMemo(function () {
|
7
|
+
var _state$bookingConfig;
|
8
|
+
return (state === null || state === void 0 || (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.config) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.basic) === null || _state$bookingConfig === void 0 ? void 0 : _state$bookingConfig.appointment_subject) || {};
|
9
|
+
}, [state === null || state === void 0 || (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 || (_state$bookingConfig2 = _state$bookingConfig2.config) === null || _state$bookingConfig2 === void 0 || (_state$bookingConfig2 = _state$bookingConfig2.basic) === null || _state$bookingConfig2 === void 0 ? void 0 : _state$bookingConfig2.appointment_subject]);
|
10
|
+
var holder = useMemo(function () {
|
11
|
+
var _state$bookingConfig3;
|
12
|
+
return (state === null || state === void 0 || (_state$bookingConfig3 = state.bookingConfig) === null || _state$bookingConfig3 === void 0 ? void 0 : _state$bookingConfig3.holder) || {};
|
13
|
+
}, [state === null || state === void 0 || (_state$bookingConfig4 = state.bookingConfig) === null || _state$bookingConfig4 === void 0 ? void 0 : _state$bookingConfig4.holder]);
|
14
|
+
|
15
|
+
// 配置主体为特定表单时
|
16
|
+
var isFormSubject = useMemo(function () {
|
17
|
+
return appointment_subject.type === 'form';
|
18
|
+
}, [appointment_subject.type]);
|
19
|
+
var isWalkInBol = useMemo(function () {
|
20
|
+
var _state$client;
|
21
|
+
return isWalkIn(state === null || state === void 0 || (_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id);
|
22
|
+
}, [state === null || state === void 0 || (_state$client2 = state.client) === null || _state$client2 === void 0 || (_state$client2 = _state$client2.value) === null || _state$client2 === void 0 ? void 0 : _state$client2.id]);
|
23
|
+
|
24
|
+
// 配置主体为特定表单时
|
25
|
+
var isCustomerSubject = useMemo(function () {
|
26
|
+
return appointment_subject.type === 'customer';
|
27
|
+
}, [appointment_subject.type]);
|
28
|
+
var isShowChangeHolder = useMemo(function () {
|
29
|
+
return isFormSubject && !isWalkInBol;
|
30
|
+
}, [isFormSubject, isWalkInBol]);
|
31
|
+
return {
|
32
|
+
appointment_subject: appointment_subject,
|
33
|
+
holder: holder,
|
34
|
+
isFormSubject: isFormSubject,
|
35
|
+
isCustomerSubject: isCustomerSubject,
|
36
|
+
isWalkInBol: isWalkInBol,
|
37
|
+
isShowChangeHolder: isShowChangeHolder
|
38
|
+
};
|
39
|
+
};
|
40
|
+
export default useHolderConfig;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { EditServiceRef } from "../service/editService";
|
3
|
+
declare const useInfoHolder: (state: any, dispatch: any) => {
|
4
|
+
detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
|
5
|
+
handleEdit: (cacheItem: any, type?: string) => void;
|
6
|
+
dispatchService: (type: string, payload: any) => void;
|
7
|
+
handleAction: (dataSource: any) => void;
|
8
|
+
showAddTimeModal: boolean;
|
9
|
+
};
|
10
|
+
export default useInfoHolder;
|
@@ -0,0 +1,62 @@
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
7
|
+
import { useEffect, useMemo, useRef } from "react";
|
8
|
+
import useHolderConfig from "./useHolderConfig";
|
9
|
+
import { isOpenAddTime } from "../utils";
|
10
|
+
import useGetHolderList from "./useGetHolderList";
|
11
|
+
var useInfoHolder = function useInfoHolder(state, dispatch) {
|
12
|
+
var _state$client, _state$bookingConfig2;
|
13
|
+
var detailRef = useRef();
|
14
|
+
var _useHolderConfig = useHolderConfig(state),
|
15
|
+
holder = _useHolderConfig.holder,
|
16
|
+
isFormSubject = _useHolderConfig.isFormSubject,
|
17
|
+
appointment_subject = _useHolderConfig.appointment_subject;
|
18
|
+
var getHolders = useGetHolderList(state, dispatch);
|
19
|
+
useEffect(function () {
|
20
|
+
if (isFormSubject) {
|
21
|
+
getHolders();
|
22
|
+
}
|
23
|
+
}, [appointment_subject, holder, (_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id]);
|
24
|
+
var appointment_card = useMemo(function () {
|
25
|
+
var _state$bookingConfig;
|
26
|
+
return (state === null || state === void 0 || (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.config) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.information_tab) === null || _state$bookingConfig === void 0 ? void 0 : _state$bookingConfig.appointment_card) || {
|
27
|
+
quick_time: 1
|
28
|
+
};
|
29
|
+
}, [state === null || state === void 0 || (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 || (_state$bookingConfig2 = _state$bookingConfig2.config) === null || _state$bookingConfig2 === void 0 ? void 0 : _state$bookingConfig2.information_tab]);
|
30
|
+
var showAddTimeModal = useMemo(function () {
|
31
|
+
return isOpenAddTime(state);
|
32
|
+
}, [state, appointment_card.quick_time]);
|
33
|
+
var handleEdit = function handleEdit(cacheItem, type) {
|
34
|
+
setTimeout(function () {
|
35
|
+
var _detailRef$current, _detailRef$current$in;
|
36
|
+
(_detailRef$current = detailRef.current) === null || _detailRef$current === void 0 || (_detailRef$current$in = _detailRef$current.init) === null || _detailRef$current$in === void 0 || _detailRef$current$in.call(_detailRef$current, cacheItem, false, type === 'edit_product');
|
37
|
+
}, 100);
|
38
|
+
};
|
39
|
+
var dispatchService = function dispatchService(type, payload) {
|
40
|
+
dispatch({
|
41
|
+
type: type,
|
42
|
+
payload: _objectSpread({}, payload)
|
43
|
+
});
|
44
|
+
};
|
45
|
+
var handleAction = function handleAction(dataSource) {
|
46
|
+
dispatch({
|
47
|
+
type: "setService",
|
48
|
+
payload: {
|
49
|
+
addTimeModal: true,
|
50
|
+
cacheItem: dataSource._origin
|
51
|
+
}
|
52
|
+
});
|
53
|
+
};
|
54
|
+
return {
|
55
|
+
detailRef: detailRef,
|
56
|
+
handleEdit: handleEdit,
|
57
|
+
dispatchService: dispatchService,
|
58
|
+
handleAction: handleAction,
|
59
|
+
showAddTimeModal: showAddTimeModal
|
60
|
+
};
|
61
|
+
};
|
62
|
+
export default useInfoHolder;
|
@@ -3,10 +3,24 @@ import Info2 from "../info2";
|
|
3
3
|
import Info1 from "./main";
|
4
4
|
import useEngineContext from "../../../hooks/useEngineContext";
|
5
5
|
import { isBooking4Shop } from "./utils";
|
6
|
+
import { Skeleton } from 'antd';
|
6
7
|
var APP = function APP(props) {
|
7
|
-
var _context$appHelper$
|
8
|
+
var _context$appHelper, _context$appHelper$ge, _context$appHelper$ut, _context$appHelper$ut2;
|
8
9
|
var context = useEngineContext();
|
9
|
-
|
10
|
+
var globalState = props.globalState;
|
11
|
+
var shopId = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getData) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper, 'shop_id')) || ((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.global) === null || _context$appHelper$ut2 === void 0 || (_context$appHelper$ut2 = _context$appHelper$ut2.globalConfig) === null || _context$appHelper$ut2 === void 0 ? void 0 : _context$appHelper$ut2.id);
|
12
|
+
var isBooking4 = isBooking4Shop(shopId, globalState === null || globalState === void 0 ? void 0 : globalState.renderType);
|
13
|
+
if (!shopId) {
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
15
|
+
style: {
|
16
|
+
padding: 16
|
17
|
+
}
|
18
|
+
}, /*#__PURE__*/React.createElement(Skeleton, null));
|
19
|
+
}
|
20
|
+
// 当满足以下条件之一时使用 Info2:
|
21
|
+
// 1. 是 Booking4 且没有 bookingId (新建)
|
22
|
+
// 2. 是 Booking4 且有 bookingId 且是并行资源预订 (编辑)
|
23
|
+
if (isBooking4 && (!(globalState !== null && globalState !== void 0 && globalState.bookingId) || globalState !== null && globalState !== void 0 && globalState.isParallelResourcesBooking)) {
|
10
24
|
return /*#__PURE__*/React.createElement(Info2, props);
|
11
25
|
}
|
12
26
|
return /*#__PURE__*/React.createElement(Info1, props);
|
@@ -4,38 +4,40 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
7
|
+
import { locales } from '@pisell/utils';
|
7
8
|
import React, { useContext, useEffect, useMemo } from 'react';
|
8
|
-
import { Provider, Context } from "./model";
|
9
|
-
import Client from "./client";
|
10
|
-
import Service from "./service";
|
11
|
-
import Pet from "./pet";
|
12
|
-
import DateCom from "./date";
|
13
9
|
import Footer from "../components/footer";
|
14
10
|
import TabPane from "../components/tabPane";
|
11
|
+
import localeTexts from "../locales";
|
15
12
|
import AddNote from "../notes/addNote";
|
13
|
+
import Client from "./client";
|
14
|
+
import DateCom from "./date";
|
16
15
|
import Header from "./header";
|
17
|
-
import
|
18
|
-
import
|
19
|
-
import
|
20
|
-
import { updateServiceDate } from "./date";
|
21
|
-
import useEngineContext from "../../../hooks/useEngineContext";
|
22
|
-
import Notes from "./notes";
|
23
|
-
import "./index.less";
|
24
|
-
import classNames from 'classnames';
|
16
|
+
import { Context, Provider } from "./model";
|
17
|
+
import Pet from "./pet";
|
18
|
+
import Service from "./service";
|
25
19
|
import { Skeleton } from 'antd';
|
20
|
+
import classNames from 'classnames';
|
21
|
+
import useEngineContext from "../../../hooks/useEngineContext";
|
26
22
|
import useCreateBookingPageHeader from "../hooks/useCreateBookingPageHeader";
|
23
|
+
import { findNextDuration, flexibleObj, formatResource, getErrorList, request, sliceDayIntoFiveMinutes } from "../utils";
|
24
|
+
import { updateServiceDate } from "./date";
|
27
25
|
import { getLocale } from "../../../utils/locales";
|
26
|
+
import "./index.less";
|
27
|
+
import Notes from "./notes";
|
28
|
+
import { Service2Cart } from "./service2";
|
29
|
+
import { isDayBooking, isEventBooking, isTerminalDayBooking } from "./service2/utils";
|
28
30
|
var defaultModules = {
|
29
31
|
client: 1,
|
30
32
|
date: 1,
|
31
33
|
service: 1,
|
32
34
|
holder: 1,
|
33
|
-
note: 1
|
35
|
+
note: 1,
|
36
|
+
service2: 0
|
34
37
|
};
|
35
38
|
locales.init(localeTexts, getLocale());
|
36
39
|
var Info = Provider(function (props) {
|
37
|
-
var _modal$state2, _modal$
|
38
|
-
// return <Payments {...props} />;
|
40
|
+
var _modal$state2, _modal$state5, _context$appHelper4, _modal$state6;
|
39
41
|
var style = props.style,
|
40
42
|
globalState = props.globalState,
|
41
43
|
_props$modules = props.modules,
|
@@ -78,10 +80,11 @@ var Info = Provider(function (props) {
|
|
78
80
|
}, globalState), {}, {
|
79
81
|
isTerminal: context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.utils) === null || _context$appHelper2 === void 0 || (_context$appHelper2$i = _context$appHelper2.isTerminal) === null || _context$appHelper2$i === void 0 ? void 0 : _context$appHelper2$i.call(_context$appHelper2),
|
80
82
|
isFranchisee: isFranchisee,
|
81
|
-
timezone: context === null || context === void 0 || (_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.utils) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.store) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.getState()) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.global) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.globalConfig) === null || _context$appHelper3 === void 0 ? void 0 : _context$appHelper3.timezone
|
83
|
+
timezone: context === null || context === void 0 || (_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.utils) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.store) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.getState()) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.global) === null || _context$appHelper3 === void 0 || (_context$appHelper3 = _context$appHelper3.globalConfig) === null || _context$appHelper3 === void 0 ? void 0 : _context$appHelper3.timezone,
|
84
|
+
isDayBooking: (globalState === null || globalState === void 0 ? void 0 : globalState.renderType) === 'dayBooking'
|
82
85
|
})
|
83
86
|
});
|
84
|
-
}, [
|
87
|
+
}, [globalState]);
|
85
88
|
var addNote = function addNote(e) {
|
86
89
|
modal.dispatch({
|
87
90
|
type: 'setNotes',
|
@@ -106,28 +109,41 @@ var Info = Provider(function (props) {
|
|
106
109
|
});
|
107
110
|
}, [globalState === null || globalState === void 0 ? void 0 : globalState.bookingId, modal.state, modal.dispatch, globalState === null || globalState === void 0 ? void 0 : globalState.renderType]);
|
108
111
|
var notes = useMemo(function () {
|
109
|
-
var _modal$
|
112
|
+
var _modal$state4;
|
110
113
|
if (!modules.note) {
|
111
114
|
return null;
|
112
115
|
}
|
116
|
+
if (isEventBooking(modal.state)) {
|
117
|
+
return null;
|
118
|
+
}
|
119
|
+
|
120
|
+
// 跨日预约一直显示备注
|
121
|
+
if (isDayBooking(globalState)) {
|
122
|
+
var _modal$state3;
|
123
|
+
return /*#__PURE__*/React.createElement(AddNote, {
|
124
|
+
value: (_modal$state3 = modal.state) === null || _modal$state3 === void 0 || (_modal$state3 = _modal$state3.notes) === null || _modal$state3 === void 0 ? void 0 : _modal$state3.orderNote,
|
125
|
+
onChange: addNote
|
126
|
+
});
|
127
|
+
}
|
113
128
|
return globalState !== null && globalState !== void 0 && globalState.bookingId ? globalState.renderType === 'eventBooking' || globalState.isBookingCreatePage ? /*#__PURE__*/React.createElement(Notes, null) : null : /*#__PURE__*/React.createElement(AddNote, {
|
114
|
-
value: (_modal$
|
129
|
+
value: (_modal$state4 = modal.state) === null || _modal$state4 === void 0 || (_modal$state4 = _modal$state4.notes) === null || _modal$state4 === void 0 ? void 0 : _modal$state4.orderNote,
|
115
130
|
onChange: addNote
|
116
131
|
});
|
117
|
-
}, [modules.note, globalState === null || globalState === void 0 ? void 0 : globalState.bookingId, globalState.render, (_modal$
|
118
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, !!modal.state.setGlobalState ? /*#__PURE__*/React.createElement(TabPane,
|
119
|
-
style: style,
|
132
|
+
}, [modules.note, globalState === null || globalState === void 0 ? void 0 : globalState.bookingId, globalState.render, (_modal$state5 = modal.state) === null || _modal$state5 === void 0 || (_modal$state5 = _modal$state5.notes) === null || _modal$state5 === void 0 ? void 0 : _modal$state5.orderNote]);
|
133
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !!modal.state.setGlobalState ? /*#__PURE__*/React.createElement(TabPane, {
|
134
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
135
|
+
height: context !== null && context !== void 0 && (_context$appHelper4 = context.appHelper) !== null && _context$appHelper4 !== void 0 && (_context$appHelper4 = _context$appHelper4.utils) !== null && _context$appHelper4 !== void 0 && _context$appHelper4.isMobile ? '100%' : '100vh'
|
136
|
+
}),
|
120
137
|
header: header,
|
121
138
|
footer: /*#__PURE__*/React.createElement(Footer, {
|
122
139
|
state: modal.state,
|
123
140
|
dispatch: modal.dispatch,
|
124
141
|
source: "info"
|
125
|
-
})
|
126
|
-
|
127
|
-
|
128
|
-
}), "bodyClassName", classNames('booking-info-warp', _defineProperty(_defineProperty({}, 'create-booking-page-info-wrap', isBookingCreatePage), 'create-booking-page-info-wrap-create', isBookingCreatePageCreateMode))), /*#__PURE__*/React.createElement("div", {
|
142
|
+
}),
|
143
|
+
bodyClassName: classNames('booking-info-warp', _defineProperty(_defineProperty({}, 'create-booking-page-info-wrap', isBookingCreatePage), 'create-booking-page-info-wrap-create', isBookingCreatePageCreateMode && !isTerminalDayBooking(modal.state)))
|
144
|
+
}, /*#__PURE__*/React.createElement("div", {
|
129
145
|
className: "booking-info"
|
130
|
-
}, createHeader, modules.client ? /*#__PURE__*/React.createElement(Client, null) : null, modules.holder && !((_modal$
|
146
|
+
}, createHeader, modules.client ? /*#__PURE__*/React.createElement(Client, null) : null, modules.holder && !((_modal$state6 = modal.state) !== null && _modal$state6 !== void 0 && _modal$state6.disabledEdit) ? /*#__PURE__*/React.createElement(React.Fragment, null, params.type === 'form' ? /*#__PURE__*/React.createElement(Pet, null) : null) : null, modules.date ? /*#__PURE__*/React.createElement(DateCom, null) : null, /*#__PURE__*/React.createElement(Skeleton, {
|
131
147
|
loading: globalState.loading,
|
132
148
|
round: true,
|
133
149
|
active: true,
|
@@ -135,6 +151,6 @@ var Info = Provider(function (props) {
|
|
135
151
|
style: {
|
136
152
|
paddingTop: 20
|
137
153
|
}
|
138
|
-
}, modules.service ? /*#__PURE__*/React.createElement(React.Fragment, null, modal.state.date.value ? /*#__PURE__*/React.createElement(Service, null) : null) : null, notes, slot ? slot : null))) : null);
|
154
|
+
}, modules.service ? /*#__PURE__*/React.createElement(React.Fragment, null, modal.state.date.value ? /*#__PURE__*/React.createElement(Service, null) : null) : null, modules.service2 ? /*#__PURE__*/React.createElement(React.Fragment, null, modal.state.date.value ? /*#__PURE__*/React.createElement(Service2Cart, null) : null) : null, notes, slot ? slot : null))) : null);
|
139
155
|
});
|
140
156
|
export default Info;
|