@pisell/private-materials 6.0.25 → 6.1.2
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 +148 -144
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/businessModel/SalesModel/Sales/index.js +37 -4
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/index.js +26 -13
- package/es/components/Sales/Cart/types.d.ts +12 -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/utils.d.ts +9 -1
- package/es/components/Sales/Checkout/utils.js +25 -3
- package/es/components/Sales/Customer/index.js +3 -1
- package/es/components/Sales/Event/Detail.d.ts +2 -0
- package/es/components/Sales/Event/Detail.js +60 -13
- package/es/components/Sales/Event/index.js +7 -7
- package/es/components/Sales/Event/serve.d.ts +13 -0
- package/es/components/Sales/Event/serve.js +26 -1
- package/es/components/Sales/Init/index.d.ts +1 -0
- package/es/components/Sales/Init/index.js +3 -2
- package/es/components/Sales/Resource/index.js +2 -2
- package/es/components/Sales/Resource/serve.d.ts +7 -0
- package/es/components/Sales/Resource/serve.js +10 -0
- package/es/components/Sales/Step/index.d.ts +2 -0
- package/es/components/Sales/Step/index.js +13 -4
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/Sales/Summary/utils.js +1 -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/index.d.ts +0 -1
- 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.js +3 -0
- 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/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 +5 -4
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +227 -123
- package/es/components/booking/components/footer/index.less +6 -1
- package/es/components/booking/components/footer/utils.d.ts +22 -0
- package/es/components/booking/components/footer/utils.js +213 -62
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- 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/editBookingModal/index.d.ts +5 -0
- package/es/components/booking/editBookingModal/index.js +386 -0
- package/es/components/booking/editBookingModal/index.less +8 -0
- package/es/components/booking/editBookingModal/locales.d.ts +21 -0
- package/es/components/booking/editBookingModal/locales.js +20 -0
- package/es/components/booking/editBookingModal/mock.d.ts +807 -0
- package/es/components/booking/editBookingModal/mock.js +2993 -0
- package/es/components/booking/editBookingModal/serve.d.ts +51 -0
- package/es/components/booking/editBookingModal/serve.js +288 -0
- package/es/components/booking/editBookingModal/type.d.ts +12 -0
- package/es/components/booking/editBookingModal/type.js +1 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/editBookingModal/utils.js +157 -0
- 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/forms/table/index.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.js +11 -8
- 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/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.js +2 -2
- package/es/components/booking/info/client/index.js +43 -10
- 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/hooks/useIsLowSpeedNetwork.d.ts +0 -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.js +17 -2
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.less +17 -0
- package/es/components/booking/info/clientVariant/vertical/index.js +33 -7
- 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/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 +9 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +76 -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 +1 -1
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/pet/index.js +107 -25
- 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 +131 -0
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.js +35 -33
- package/es/components/booking/info/service/editService/index.d.ts +1 -1
- package/es/components/booking/info/service/editService/index.js +115 -61
- package/es/components/booking/info/service/index.js +8 -5
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service/serve.d.ts +9 -0
- package/es/components/booking/info/service/serve.js +21 -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/index.js +12 -7
- package/es/components/booking/info/service2/Group/utils.js +3 -2
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info/service2/hooks/useSelectPet.js +13 -5
- package/es/components/booking/info/service2/index.js +6 -3
- package/es/components/booking/info/service2/utils.d.ts +14 -7
- package/es/components/booking/info/service2/utils.js +421 -112
- package/es/components/booking/info/utils.d.ts +6 -0
- package/es/components/booking/info/utils.js +62 -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 +30 -3
- package/es/components/booking/info2/service/addService/utils.js +198 -78
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/addTimeModal/index.js +7 -5
- package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +2 -4
- package/es/components/booking/info2/service/editService/Resources/index.js +49 -11
- package/es/components/booking/info2/service/editService/Resources/index.less +6 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +26 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.js +308 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
- package/es/components/booking/info2/service/editService/index.js +338 -161
- 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 +30 -42
- 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 +54 -15
- package/es/components/booking/locales.d.ts +90 -0
- package/es/components/booking/locales.js +111 -3
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- package/es/components/booking/materiels/duration/index.d.ts +0 -1
- package/es/components/booking/materiels/duration/index.js +9 -2
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/holder/index.js +2 -2
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.js +1 -1
- 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 +3 -0
- package/es/components/booking/utils.js +66 -21
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.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/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.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 +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -2
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/payo/config.js +44 -6
- package/es/components/eftposPay/payo/hooks.js +12 -1
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tip.d.ts +0 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -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/components/Provider/Cart/ContinueButton/index.js +292 -49
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.js +32 -7
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.js +26 -5
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +1 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +3 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +30 -8
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +6 -3
- package/es/components/eventBooking/components/bookingDetailModal/index.js +89 -16
- package/es/components/eventBooking/components/progressBar/index.js +17 -1
- package/es/components/eventBooking/components/resourceDisplay/index.js +2 -2
- package/es/components/eventBooking/components/resourceDisplay/index.less +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +7 -2
- 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 +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/index.js +30 -21
- package/es/components/eventBooking/components/scheduleCalendar/index.less +2 -0
- package/es/components/eventBooking/components/timeResourceSelector/index.less +0 -1
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/eventBooking/index.js +23 -9
- package/es/components/eventBooking/locales.d.ts +6 -0
- package/es/components/eventBooking/locales.js +172 -166
- package/es/components/eventBooking/utils.js +8 -8
- package/es/components/index.d.ts +4 -1
- package/es/components/index.js +4 -1
- package/es/components/listComponent/index.js +5 -5
- package/es/components/login/index.d.ts +0 -1
- 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 +260 -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 +89 -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 +78 -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 +143 -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/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/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.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/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -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/index.d.ts +0 -1
- 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/calendarItem.d.ts +0 -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.d.ts +0 -1
- 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/RenderScheduleItem/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/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- 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/index.d.ts +0 -1
- 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.d.ts +0 -1
- 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 +1 -1
- package/es/components/shoppingCart/Provider.js +3 -2
- package/es/components/shoppingCart/components/Cart/Product.js +63 -32
- package/es/components/shoppingCart/components/Cart/index.js +21 -18
- package/es/components/shoppingCart/components/Cart/index.less +15 -15
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.js +0 -1
- package/es/components/shoppingCart/components/Render/index.less +15 -0
- package/es/components/shoppingCart/hooks/useAddService.js +7 -1
- package/es/components/shoppingCart/hooks/useClearCart.js +3 -4
- package/es/components/shoppingCart/index.d.ts +1 -2
- package/es/components/shoppingCart/index.js +3 -1
- package/es/components/shoppingCart/status.js +5 -1
- package/es/components/shoppingCart/type.d.ts +8 -0
- package/es/components/stepController/components/Content/index.d.ts +7 -0
- package/es/components/stepController/components/Content/index.js +9 -0
- package/es/components/stepController/components/Content/index.less +8 -0
- package/es/components/stepController/components/Footer/index.d.ts +8 -0
- package/es/components/stepController/components/Footer/index.js +15 -0
- package/es/components/stepController/components/Footer/index.less +39 -0
- package/es/components/stepController/components/Header/index.d.ts +20 -0
- package/es/components/stepController/components/Header/index.js +97 -0
- package/es/components/stepController/components/Header/index.less +21 -0
- package/es/components/stepController/index.d.ts +5 -0
- package/es/components/stepController/index.js +64 -0
- package/es/components/stepController/index.less +11 -0
- package/es/components/stepController/locales.d.ts +27 -0
- package/es/components/stepController/locales.js +32 -0
- package/es/components/stepController/types.d.ts +23 -0
- package/es/components/stepController/types.js +1 -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/taxSelect/index.d.ts +0 -1
- 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 +6 -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 +3 -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 +4 -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 +220 -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/hooks/useWalletCard.d.ts +0 -1
- 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/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/hooks/useWindowSize.d.ts +5 -0
- package/es/hooks/useWindowSize.js +26 -0
- package/es/index.d.ts +7 -0
- package/es/index.js +8 -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.js +22 -8
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/index.js +30 -18
- package/lib/components/Sales/Cart/types.d.ts +12 -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/utils.d.ts +9 -1
- package/lib/components/Sales/Checkout/utils.js +18 -4
- package/lib/components/Sales/Customer/index.js +3 -1
- package/lib/components/Sales/Event/Detail.d.ts +2 -0
- package/lib/components/Sales/Event/Detail.js +38 -10
- package/lib/components/Sales/Event/index.js +1 -5
- package/lib/components/Sales/Event/serve.d.ts +13 -0
- package/lib/components/Sales/Event/serve.js +5 -2
- package/lib/components/Sales/Init/index.d.ts +1 -0
- package/lib/components/Sales/Init/index.js +3 -2
- package/lib/components/Sales/Resource/index.js +1 -1
- package/lib/components/Sales/Resource/serve.d.ts +7 -0
- package/lib/components/Sales/Resource/serve.js +9 -2
- package/lib/components/Sales/Step/index.d.ts +2 -0
- package/lib/components/Sales/Step/index.js +13 -4
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/Sales/Summary/utils.js +1 -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/index.d.ts +0 -1
- 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.js +3 -0
- 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/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 +5 -2
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +208 -71
- package/lib/components/booking/components/footer/index.less +6 -1
- package/lib/components/booking/components/footer/utils.d.ts +22 -0
- package/lib/components/booking/components/footer/utils.js +148 -36
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- 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/editBookingModal/index.d.ts +5 -0
- package/lib/components/booking/editBookingModal/index.js +363 -0
- package/lib/components/booking/editBookingModal/index.less +8 -0
- package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
- package/lib/components/booking/editBookingModal/locales.js +44 -0
- package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
- package/lib/components/booking/editBookingModal/mock.js +3314 -0
- package/lib/components/booking/editBookingModal/serve.d.ts +51 -0
- package/lib/components/booking/editBookingModal/serve.js +178 -0
- package/lib/components/booking/editBookingModal/type.d.ts +12 -0
- package/lib/components/booking/editBookingModal/type.js +17 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/editBookingModal/utils.js +158 -0
- 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/forms/table/index.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.js +16 -13
- 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/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.js +3 -3
- package/lib/components/booking/info/client/index.js +75 -10
- 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/hooks/useIsLowSpeedNetwork.d.ts +0 -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.js +11 -3
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.less +17 -0
- package/lib/components/booking/info/clientVariant/vertical/index.js +32 -7
- 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/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 +9 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +93 -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 +1 -1
- 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/index.js +66 -12
- 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 +132 -0
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.js +29 -26
- package/lib/components/booking/info/service/editService/index.d.ts +1 -1
- package/lib/components/booking/info/service/editService/index.js +71 -27
- package/lib/components/booking/info/service/index.js +5 -3
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service/serve.d.ts +9 -0
- package/lib/components/booking/info/service/serve.js +3 -0
- 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/index.js +6 -1
- package/lib/components/booking/info/service2/Group/utils.js +4 -3
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +13 -6
- package/lib/components/booking/info/service2/index.js +5 -3
- package/lib/components/booking/info/service2/utils.d.ts +14 -7
- package/lib/components/booking/info/service2/utils.js +373 -60
- package/lib/components/booking/info/utils.d.ts +6 -0
- package/lib/components/booking/info/utils.js +96 -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 +30 -3
- package/lib/components/booking/info2/service/addService/utils.js +142 -32
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addTimeModal/index.js +8 -6
- package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +1 -2
- package/lib/components/booking/info2/service/editService/Resources/index.js +72 -9
- package/lib/components/booking/info2/service/editService/Resources/index.less +6 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +53 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +311 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
- package/lib/components/booking/info2/service/editService/index.js +275 -102
- 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 +24 -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 +35 -14
- package/lib/components/booking/locales.d.ts +90 -0
- package/lib/components/booking/locales.js +111 -3
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- package/lib/components/booking/materiels/duration/index.js +7 -2
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/materiels/holder/index.js +2 -2
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- 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 +3 -0
- package/lib/components/booking/utils.js +58 -13
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.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/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.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 +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -2
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/payo/config.js +34 -3
- package/lib/components/eftposPay/payo/hooks.js +10 -0
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tip.d.ts +0 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -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/components/Provider/Cart/ContinueButton/index.js +149 -12
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.js +25 -6
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.js +16 -3
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +7 -7
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +3 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +25 -10
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +4 -2
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +88 -27
- package/lib/components/eventBooking/components/progressBar/index.js +16 -1
- package/lib/components/eventBooking/components/resourceDisplay/index.js +2 -2
- package/lib/components/eventBooking/components/resourceDisplay/index.less +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +6 -5
- 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 +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/index.js +17 -11
- package/lib/components/eventBooking/components/scheduleCalendar/index.less +2 -0
- package/lib/components/eventBooking/components/timeResourceSelector/index.less +0 -1
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/eventBooking/index.js +13 -9
- package/lib/components/eventBooking/locales.d.ts +6 -0
- package/lib/components/eventBooking/locales.js +23 -17
- package/lib/components/eventBooking/utils.js +5 -3
- package/lib/components/index.d.ts +4 -1
- package/lib/components/index.js +9 -0
- package/lib/components/login/index.d.ts +0 -1
- 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 +92 -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 +71 -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 +143 -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/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/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.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/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/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/productExtension/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/calendarItem.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/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/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/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/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/resources/relationProduct/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 +1 -1
- package/lib/components/shoppingCart/Provider.js +3 -2
- package/lib/components/shoppingCart/components/Cart/Product.js +62 -20
- package/lib/components/shoppingCart/components/Cart/index.js +18 -15
- package/lib/components/shoppingCart/components/Cart/index.less +15 -15
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.js +0 -1
- package/lib/components/shoppingCart/components/Render/index.less +15 -0
- package/lib/components/shoppingCart/hooks/useAddService.js +1 -2
- package/lib/components/shoppingCart/hooks/useClearCart.js +3 -3
- package/lib/components/shoppingCart/index.d.ts +1 -2
- package/lib/components/shoppingCart/index.js +2 -0
- package/lib/components/shoppingCart/status.js +5 -1
- package/lib/components/shoppingCart/type.d.ts +8 -0
- package/lib/components/stepController/components/Content/index.d.ts +7 -0
- package/lib/components/stepController/components/Content/index.js +40 -0
- package/lib/components/stepController/components/Content/index.less +8 -0
- package/lib/components/stepController/components/Footer/index.d.ts +8 -0
- package/lib/components/stepController/components/Footer/index.js +49 -0
- package/lib/components/stepController/components/Footer/index.less +39 -0
- package/lib/components/stepController/components/Header/index.d.ts +20 -0
- package/lib/components/stepController/components/Header/index.js +104 -0
- package/lib/components/stepController/components/Header/index.less +21 -0
- package/lib/components/stepController/index.d.ts +5 -0
- package/lib/components/stepController/index.js +89 -0
- package/lib/components/stepController/index.less +11 -0
- package/lib/components/stepController/locales.d.ts +27 -0
- package/lib/components/stepController/locales.js +50 -0
- package/lib/components/stepController/types.d.ts +23 -0
- package/lib/components/stepController/types.js +17 -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/taxSelect/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +431 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -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 +3 -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 +4 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +915 -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 +240 -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/hooks/useWalletCard.d.ts +0 -1
- 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/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/hooks/useWindowSize.d.ts +5 -0
- package/lib/hooks/useWindowSize.js +51 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +21 -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/edit-booking-modal/meta.ts +53 -0
- package/lowcode/parallel-resource-booking/meta.ts +69 -0
- package/lowcode/product-select/meta.ts +201 -0
- package/lowcode/step-controller/meta.ts +88 -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,915 @@
|
|
1
|
+
var __create = Object.create;
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
+
var __export = (target, all) => {
|
8
|
+
for (var name in all)
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
+
};
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
+
for (let key of __getOwnPropNames(from))
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
+
}
|
17
|
+
return to;
|
18
|
+
};
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
25
|
+
mod
|
26
|
+
));
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
28
|
+
|
29
|
+
// src/components/ticketBooking/components/ticketBooking/index.tsx
|
30
|
+
var ticketBooking_exports = {};
|
31
|
+
__export(ticketBooking_exports, {
|
32
|
+
_formatBookingDetail: () => _formatBookingDetail,
|
33
|
+
default: () => ticketBooking_default
|
34
|
+
});
|
35
|
+
module.exports = __toCommonJS(ticketBooking_exports);
|
36
|
+
var import_react = __toESM(require("react"));
|
37
|
+
var import_utils = require("@pisell/utils");
|
38
|
+
var import_antd = require("antd");
|
39
|
+
var import_serve = require("../../serve");
|
40
|
+
var apis = __toESM(require("../../serve"));
|
41
|
+
var import_dayjs = __toESM(require("dayjs"));
|
42
|
+
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
43
|
+
var import_miniRedux = require("../../miniRedux");
|
44
|
+
var import_info = __toESM(require("../../../../components/booking/info"));
|
45
|
+
var import_utils2 = require("../../utils");
|
46
|
+
var import_addServiceVariant = __toESM(require("../addServiceVariant"));
|
47
|
+
var import_timeBar = __toESM(require("../timeBar"));
|
48
|
+
var import_index = require("./index.less");
|
49
|
+
var import_utils3 = require("../../../booking/info/service2/utils");
|
50
|
+
var import_amount = require("../../../booking/components/footer/amount");
|
51
|
+
var import_formatProductMessage = __toESM(require("../../utils/formatProductMessage"));
|
52
|
+
var _formatBookingDetail = (data, modalState) => {
|
53
|
+
var _a, _b, _c, _d;
|
54
|
+
let {
|
55
|
+
customer_id,
|
56
|
+
holder,
|
57
|
+
customer_name,
|
58
|
+
email,
|
59
|
+
phone,
|
60
|
+
country_calling_code,
|
61
|
+
bookings,
|
62
|
+
customer,
|
63
|
+
note,
|
64
|
+
payment_status,
|
65
|
+
is_other_entrance_edited,
|
66
|
+
shop_discount
|
67
|
+
} = data;
|
68
|
+
const clientValue = {
|
69
|
+
name: ((customer == null ? void 0 : customer.display_name) || "").trim() || ((customer == null ? void 0 : customer.nickname) || "").trim() || "",
|
70
|
+
id: customer_id || (customer == null ? void 0 : customer.id) || (customer == null ? void 0 : customer.customer_id) || 1,
|
71
|
+
email: customer == null ? void 0 : customer.email,
|
72
|
+
phone: (customer == null ? void 0 : customer.phone) || "",
|
73
|
+
country_calling_code: (customer == null ? void 0 : customer.country_calling_code) || "",
|
74
|
+
cover: (customer == null ? void 0 : customer.cover) || ""
|
75
|
+
};
|
76
|
+
const start_date = (_b = (_a = bookings == null ? void 0 : bookings.list) == null ? void 0 : _a[0]) == null ? void 0 : _b.start_date;
|
77
|
+
const dateValue = (0, import_dayjs.default)(
|
78
|
+
start_date ? start_date + " " + ((_d = (_c = bookings == null ? void 0 : bookings.list) == null ? void 0 : _c[0]) == null ? void 0 : _d.start_time) : /* @__PURE__ */ new Date()
|
79
|
+
);
|
80
|
+
const petsValue = holder;
|
81
|
+
const getCapacity = (resetD) => {
|
82
|
+
var _a2;
|
83
|
+
return (_a2 = resetD.metadata) == null ? void 0 : _a2.capacity;
|
84
|
+
};
|
85
|
+
const getResource = (resetD) => {
|
86
|
+
var _a2;
|
87
|
+
if (!bookings.relation_type) {
|
88
|
+
try {
|
89
|
+
if ((resetD == null ? void 0 : resetD.event_resources) && ((_a2 = resetD == null ? void 0 : resetD.event_resources) == null ? void 0 : _a2.length)) {
|
90
|
+
return resetD.event_resources.reduce((pre, cur) => {
|
91
|
+
if (pre[cur.form_id]) {
|
92
|
+
pre[cur.form_id].push(cur);
|
93
|
+
} else {
|
94
|
+
pre[cur.form_id] = [cur];
|
95
|
+
}
|
96
|
+
return pre;
|
97
|
+
}, {});
|
98
|
+
}
|
99
|
+
} catch (err) {
|
100
|
+
console.error(err);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
return resetD.relation_id;
|
104
|
+
};
|
105
|
+
const serviceValue = bookings.list.map((d) => {
|
106
|
+
let { detail, product, ...resetD } = d;
|
107
|
+
let _detail = detail || mockProduct;
|
108
|
+
let start_date2 = (0, import_dayjs.default)(resetD.start_date + " " + resetD.start_time);
|
109
|
+
let end_date = (0, import_dayjs.default)(resetD.end_date + " " + resetD.end_time);
|
110
|
+
return {
|
111
|
+
_id: (Math.random() + "").replace(/\D/g, "").substring(0, 11),
|
112
|
+
..._detail,
|
113
|
+
booking_id: resetD.id,
|
114
|
+
id: _detail.product_id,
|
115
|
+
title: _detail.product_title,
|
116
|
+
quantity: Number(_detail.product_quantity),
|
117
|
+
cover: _detail.product_cover,
|
118
|
+
// 商品本身的价格
|
119
|
+
price: Number(_detail.source_product_price),
|
120
|
+
relation_form_name: resetD.relation_form_name,
|
121
|
+
product_resource: product == null ? void 0 : product.product_resource,
|
122
|
+
capacity: product == null ? void 0 : product.capacity,
|
123
|
+
_extend: {
|
124
|
+
...resetD,
|
125
|
+
quantity: Number(_detail.product_quantity),
|
126
|
+
startDate: start_date2,
|
127
|
+
start_date: start_date2,
|
128
|
+
endDate: end_date,
|
129
|
+
end_date,
|
130
|
+
// 商品本身的价格
|
131
|
+
price: Number(_detail.source_product_price),
|
132
|
+
product_name: _detail.product_title,
|
133
|
+
discount_reason: _detail.product_discount_reason,
|
134
|
+
// resource: resetD.relation_id,
|
135
|
+
order_detail_id: _detail.order_detail_id,
|
136
|
+
// 总价: 商品本身价格 + 套餐价格 + 单规格价格 包含折扣
|
137
|
+
total: Number(_detail.selling_price),
|
138
|
+
// 原总价: 商品本身价格 + 套餐价格 + 单规格价格 不包含折扣
|
139
|
+
origin_total: Number(_detail.original_price),
|
140
|
+
payment_price: Number(_detail.payment_price),
|
141
|
+
other: (0, import_utils2.restoreProductOtherData)(d),
|
142
|
+
// 是否编辑了套餐 默认为0 如果编辑之后为1
|
143
|
+
bundle_edit: 0,
|
144
|
+
discount_per: _detail.discount_per,
|
145
|
+
discount_type: _detail.discount_type,
|
146
|
+
discountway: _detail.discountway,
|
147
|
+
capacity: getCapacity(resetD),
|
148
|
+
resource: getResource(resetD)
|
149
|
+
}
|
150
|
+
};
|
151
|
+
});
|
152
|
+
let disabledEdit = (0, import_utils2.getDisabledEdit)(data);
|
153
|
+
let channelDisabledEdit = !!is_other_entrance_edited;
|
154
|
+
return {
|
155
|
+
...modalState,
|
156
|
+
client: {
|
157
|
+
...modalState.client,
|
158
|
+
value: clientValue,
|
159
|
+
edit: false,
|
160
|
+
showModal: false
|
161
|
+
},
|
162
|
+
date: {
|
163
|
+
...modalState.date,
|
164
|
+
value: dateValue,
|
165
|
+
edit: false,
|
166
|
+
showModal: false
|
167
|
+
},
|
168
|
+
pet: {
|
169
|
+
...modalState.pet,
|
170
|
+
showModal: false,
|
171
|
+
edit: false
|
172
|
+
},
|
173
|
+
service: {
|
174
|
+
...modalState.service,
|
175
|
+
value: serviceValue,
|
176
|
+
addModal: false,
|
177
|
+
editModal: false,
|
178
|
+
edit: false
|
179
|
+
},
|
180
|
+
notes: {
|
181
|
+
...modalState.notes,
|
182
|
+
orderNote: note,
|
183
|
+
edit: false
|
184
|
+
},
|
185
|
+
disabledEdit,
|
186
|
+
channelDisabledEdit,
|
187
|
+
appointment_status: bookings == null ? void 0 : bookings.appointment_status
|
188
|
+
};
|
189
|
+
};
|
190
|
+
var TicketBooking = () => {
|
191
|
+
var _a;
|
192
|
+
const [state, setState] = (0, import_miniRedux.useStore)();
|
193
|
+
const engineContext = (0, import_useEngineContext.default)();
|
194
|
+
const { props: engineProps } = engineContext.engine;
|
195
|
+
const {
|
196
|
+
action,
|
197
|
+
isTerminal,
|
198
|
+
lowcodeRef,
|
199
|
+
interaction,
|
200
|
+
store,
|
201
|
+
storage,
|
202
|
+
Toast,
|
203
|
+
getSymbolic,
|
204
|
+
translation,
|
205
|
+
getData
|
206
|
+
} = (_a = engineContext.appHelper) == null ? void 0 : _a.utils;
|
207
|
+
const _persistentRef = (0, import_react.useRef)(false);
|
208
|
+
const _initStateRef = (0, import_react.useRef)({});
|
209
|
+
const _listTimerRef = (0, import_react.useRef)();
|
210
|
+
const _timerRef = (0, import_react.useRef)();
|
211
|
+
const _callbackFnRef = (0, import_react.useRef)();
|
212
|
+
(0, import_react.useEffect)(() => {
|
213
|
+
var _a2, _b, _c, _d, _e, _f;
|
214
|
+
_persistentRef.current = storage.get(`drawer-booking`) === "true" ? true : isTerminal();
|
215
|
+
if (lowcodeRef) {
|
216
|
+
lowcodeRef.onReady(void 0);
|
217
|
+
}
|
218
|
+
if (action) {
|
219
|
+
action({
|
220
|
+
type: "pisell1.registerPlugin",
|
221
|
+
data: {
|
222
|
+
pluginList: ["ProductDetailPlugin"]
|
223
|
+
}
|
224
|
+
});
|
225
|
+
}
|
226
|
+
(_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.mountFunction(
|
227
|
+
"booking",
|
228
|
+
"scanBookingDetailResult",
|
229
|
+
_scanBookingDetailResult
|
230
|
+
);
|
231
|
+
const off = _addVisibilityListener(() => {
|
232
|
+
setState({
|
233
|
+
verticalAddServiceKey: state.verticalAddServiceKey + 1
|
234
|
+
});
|
235
|
+
});
|
236
|
+
setState(
|
237
|
+
{
|
238
|
+
amountSymbol: (getData == null ? void 0 : getData("shop_symbol")) || ((_d = (_c = (_b = store == null ? void 0 : store.getState) == null ? void 0 : _b.call(store)) == null ? void 0 : _c.global) == null ? void 0 : _d.symbol) || "$"
|
239
|
+
},
|
240
|
+
() => {
|
241
|
+
_initStateRef.current = JSON.parse(JSON.stringify(state));
|
242
|
+
_getBoardConfig();
|
243
|
+
}
|
244
|
+
);
|
245
|
+
_setShopOpeningHours();
|
246
|
+
_setIntervalTime(true);
|
247
|
+
(_e = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _e.mountFunction(
|
248
|
+
"booking",
|
249
|
+
"refreshBookingDetail",
|
250
|
+
(type, orderId) => {
|
251
|
+
_initFn(() => {
|
252
|
+
});
|
253
|
+
}
|
254
|
+
);
|
255
|
+
(_f = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _f.mountFunction(
|
256
|
+
"booking",
|
257
|
+
"voidBooking",
|
258
|
+
(orderId) => {
|
259
|
+
(0, import_serve.voidAppointment)(orderId);
|
260
|
+
}
|
261
|
+
);
|
262
|
+
return () => {
|
263
|
+
off == null ? void 0 : off();
|
264
|
+
if (_listTimerRef.current) clearInterval(_listTimerRef.current);
|
265
|
+
};
|
266
|
+
}, []);
|
267
|
+
const _onDateChange = (date, dateString) => {
|
268
|
+
_setIntervalTime(false);
|
269
|
+
setState({
|
270
|
+
isDateChange: true
|
271
|
+
});
|
272
|
+
_setDataChange(date, dateString);
|
273
|
+
};
|
274
|
+
const _setIntervalTime = (isInterval) => {
|
275
|
+
clearInterval(_timerRef.current);
|
276
|
+
if (isInterval) {
|
277
|
+
setState({
|
278
|
+
isTimeChange: false,
|
279
|
+
isDateChange: false
|
280
|
+
});
|
281
|
+
if (state.bookingId) {
|
282
|
+
_openModal({});
|
283
|
+
}
|
284
|
+
_setDataChange((0, import_dayjs.default)());
|
285
|
+
_timerRef.current = setInterval(() => {
|
286
|
+
_setDataChange((0, import_dayjs.default)());
|
287
|
+
}, 1e3 * 60);
|
288
|
+
}
|
289
|
+
setState({
|
290
|
+
intervalSetTime: isInterval
|
291
|
+
});
|
292
|
+
};
|
293
|
+
(0, import_react.useEffect)(() => {
|
294
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
295
|
+
const cartItems = (_b = (_a2 = state == null ? void 0 : state.modalState) == null ? void 0 : _a2.service) == null ? void 0 : _b.value;
|
296
|
+
if (!Array.isArray(cartItems) || cartItems.length === 0) {
|
297
|
+
(_d = (_c = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c.postMessageToApp) == null ? void 0 : _d.call(_c, {
|
298
|
+
module: "cds",
|
299
|
+
key: "cartUpdate",
|
300
|
+
data: {
|
301
|
+
currency_symbol: getSymbolic(),
|
302
|
+
total: "0",
|
303
|
+
// 小计
|
304
|
+
products: [],
|
305
|
+
fees: []
|
306
|
+
}
|
307
|
+
});
|
308
|
+
}
|
309
|
+
const total = (0, import_amount.getSumTotal)(state.modalState, true);
|
310
|
+
let formatedProducts = [];
|
311
|
+
try {
|
312
|
+
formatedProducts = (0, import_utils3.formatProducts)(
|
313
|
+
cartItems,
|
314
|
+
state.modalState,
|
315
|
+
false,
|
316
|
+
true,
|
317
|
+
true
|
318
|
+
);
|
319
|
+
} catch (error) {
|
320
|
+
console.error(error);
|
321
|
+
}
|
322
|
+
console.log("formatedProducts", total, formatedProducts);
|
323
|
+
let fees = [];
|
324
|
+
let products = [];
|
325
|
+
for (const item of formatedProducts) {
|
326
|
+
const { id, name, image, origin_total, total: total2, num, note, _origin } = item;
|
327
|
+
(_e = _origin == null ? void 0 : _origin.discount_list) == null ? void 0 : _e.forEach((dl) => {
|
328
|
+
fees.push({
|
329
|
+
isReduce: dl.type === "good_pass",
|
330
|
+
title: translation(dl == null ? void 0 : dl.discount.title),
|
331
|
+
price: dl.amount,
|
332
|
+
type: dl.type
|
333
|
+
});
|
334
|
+
});
|
335
|
+
let msg = "";
|
336
|
+
try {
|
337
|
+
msg = (0, import_formatProductMessage.default)(
|
338
|
+
{
|
339
|
+
...item,
|
340
|
+
currency_symbol: getSymbolic()
|
341
|
+
},
|
342
|
+
(_f = engineContext.appHelper) == null ? void 0 : _f.utils
|
343
|
+
);
|
344
|
+
} catch (error) {
|
345
|
+
console.error(error);
|
346
|
+
}
|
347
|
+
let _item = {
|
348
|
+
productID: id,
|
349
|
+
title: name,
|
350
|
+
cover: image,
|
351
|
+
// 封面图
|
352
|
+
price: total2,
|
353
|
+
// 售价
|
354
|
+
buyCount: num,
|
355
|
+
// 购买数量
|
356
|
+
productFormatMessage: msg,
|
357
|
+
note
|
358
|
+
};
|
359
|
+
if (origin_total !== total2) _item.modifyPrice = origin_total;
|
360
|
+
products.push(_item);
|
361
|
+
}
|
362
|
+
console.log(
|
363
|
+
"formatedProducts",
|
364
|
+
(_g = import_utils.locales.getText("pisell2.product.card.cart-items")) == null ? void 0 : _g(products.length)
|
365
|
+
);
|
366
|
+
if (products.length > 0) {
|
367
|
+
fees.unshift({
|
368
|
+
title: import_utils.locales.getText("pisell2.product.card.subtotal"),
|
369
|
+
price: total.productAmount,
|
370
|
+
type: "subtotal",
|
371
|
+
message: (_h = import_utils.locales.getText("pisell2.product.card.cart-items")) == null ? void 0 : _h(
|
372
|
+
products.length
|
373
|
+
)
|
374
|
+
});
|
375
|
+
}
|
376
|
+
console.log("start post message, config:", {
|
377
|
+
module: "cds",
|
378
|
+
key: "cartUpdate",
|
379
|
+
data: {
|
380
|
+
currency_symbol: getSymbolic(),
|
381
|
+
total: total.productAmount,
|
382
|
+
// 小计
|
383
|
+
products,
|
384
|
+
fees
|
385
|
+
}
|
386
|
+
});
|
387
|
+
(_j = (_i = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _i.postMessageToApp) == null ? void 0 : _j.call(_i, {
|
388
|
+
module: "cds",
|
389
|
+
key: "cartUpdate",
|
390
|
+
data: {
|
391
|
+
currency_symbol: getSymbolic(),
|
392
|
+
total: total.expectAmount,
|
393
|
+
// 小计
|
394
|
+
products,
|
395
|
+
fees
|
396
|
+
}
|
397
|
+
});
|
398
|
+
}, [state.modalState]);
|
399
|
+
const _setModalState = (props) => {
|
400
|
+
var _a2, _b;
|
401
|
+
console.log("同步state到外层", props);
|
402
|
+
let newVal = { ...props };
|
403
|
+
if (newVal.service) {
|
404
|
+
newVal.service.value = ((_a2 = newVal == null ? void 0 : newVal.service) == null ? void 0 : _a2.value) || [];
|
405
|
+
}
|
406
|
+
console.log((_b = newVal == null ? void 0 : newVal.service) == null ? void 0 : _b.value, "newVal.service.value");
|
407
|
+
setState({
|
408
|
+
modalState: {
|
409
|
+
...state.modalState,
|
410
|
+
...newVal
|
411
|
+
}
|
412
|
+
});
|
413
|
+
};
|
414
|
+
const _setDataChange = (date, dateString, isTimeChange) => {
|
415
|
+
if (state.modalState.disabledEdit) return;
|
416
|
+
_setListState({
|
417
|
+
params: {
|
418
|
+
...state.list.params,
|
419
|
+
booking_time_start_between: (0, import_utils2.formatDateToStr)([
|
420
|
+
date.startOf(isTimeChange ? "minute" : "day"),
|
421
|
+
date.endOf(isTimeChange ? "minute" : "day")
|
422
|
+
])
|
423
|
+
}
|
424
|
+
});
|
425
|
+
_setModalState({
|
426
|
+
date: {
|
427
|
+
...state.modalState.date,
|
428
|
+
value: date,
|
429
|
+
edit: true
|
430
|
+
}
|
431
|
+
});
|
432
|
+
setTimeout(() => {
|
433
|
+
var _a2, _b, _c, _d, _e;
|
434
|
+
if ((_b = (_a2 = state.modalState.service) == null ? void 0 : _a2.value) == null ? void 0 : _b.length) {
|
435
|
+
let _list = (_e = (_c = state.bookingFunctions) == null ? void 0 : _c.updateServiceDate) == null ? void 0 : _e.call(
|
436
|
+
_c,
|
437
|
+
(_d = state.modalState.service) == null ? void 0 : _d.value,
|
438
|
+
date,
|
439
|
+
false
|
440
|
+
);
|
441
|
+
_setModalState({
|
442
|
+
service: {
|
443
|
+
...state.modalState.service,
|
444
|
+
value: _list,
|
445
|
+
edit: true
|
446
|
+
}
|
447
|
+
});
|
448
|
+
}
|
449
|
+
}, 100);
|
450
|
+
};
|
451
|
+
const _setShopOpeningHours = () => {
|
452
|
+
var _a2, _b, _c, _d, _e, _f;
|
453
|
+
let time = ((_a2 = getData == null ? void 0 : getData("operating_day_boundary")) == null ? void 0 : _a2.time) || ((_f = (_e = (_d = (_c = (_b = store == null ? void 0 : store.getState) == null ? void 0 : _b.call(store)) == null ? void 0 : _c.global) == null ? void 0 : _d.shopDetail) == null ? void 0 : _e.operating_day_boundary) == null ? void 0 : _f.time);
|
454
|
+
if (time) {
|
455
|
+
localStorage.setItem("shopOpeningHours", time);
|
456
|
+
}
|
457
|
+
};
|
458
|
+
const _getAddTimeProducts = async () => {
|
459
|
+
const data = await (0, import_serve.getServices)({
|
460
|
+
skip: 1,
|
461
|
+
num: 500,
|
462
|
+
extension_type: ["product_add_time"]
|
463
|
+
});
|
464
|
+
console.log("wwww", data);
|
465
|
+
setState({
|
466
|
+
addTimeProducts: (data == null ? void 0 : data.list) || []
|
467
|
+
});
|
468
|
+
};
|
469
|
+
const _getBoardConfig = async () => {
|
470
|
+
var _a2, _b, _c;
|
471
|
+
const { bookingConfigParams } = state;
|
472
|
+
const data = await (0, import_serve.getBookingConfig)({
|
473
|
+
...bookingConfigParams
|
474
|
+
});
|
475
|
+
if ((_c = (_b = (_a2 = data == null ? void 0 : data.config) == null ? void 0 : _a2.information_tab) == null ? void 0 : _b.appointment_card) == null ? void 0 : _c.quick_time) {
|
476
|
+
_getAddTimeProducts();
|
477
|
+
}
|
478
|
+
setState({
|
479
|
+
bookingConfig: data
|
480
|
+
});
|
481
|
+
};
|
482
|
+
const _addVisibilityListener = (callback) => {
|
483
|
+
const handleVisibilityChange = () => {
|
484
|
+
if (!document.hidden) {
|
485
|
+
callback();
|
486
|
+
}
|
487
|
+
};
|
488
|
+
document.addEventListener("visibilitychange", handleVisibilityChange);
|
489
|
+
return () => {
|
490
|
+
document.removeEventListener("visibilitychange", handleVisibilityChange);
|
491
|
+
};
|
492
|
+
};
|
493
|
+
const _setListState = (data, cb) => {
|
494
|
+
setState(
|
495
|
+
{
|
496
|
+
list: {
|
497
|
+
...state.list,
|
498
|
+
...data
|
499
|
+
}
|
500
|
+
},
|
501
|
+
() => {
|
502
|
+
cb == null ? void 0 : cb();
|
503
|
+
}
|
504
|
+
);
|
505
|
+
};
|
506
|
+
const _getInitState = (resetProps = {}) => {
|
507
|
+
var _a2;
|
508
|
+
const { modalState } = state;
|
509
|
+
let initState = JSON.parse(JSON.stringify(_initStateRef.current || {}));
|
510
|
+
let _state = {
|
511
|
+
...initState,
|
512
|
+
...resetProps
|
513
|
+
};
|
514
|
+
let _modalState = { ...modalState };
|
515
|
+
for (let key in _modalState) {
|
516
|
+
if (key === "notes") {
|
517
|
+
_modalState[key].orderNote = initState.modalState[key].orderNote;
|
518
|
+
_modalState[key].internalNotes = initState.modalState[key].internalNotes;
|
519
|
+
} else {
|
520
|
+
if (typeof _modalState[key] === "object") {
|
521
|
+
if (key !== "date") {
|
522
|
+
_modalState[key].value = (_a2 = initState.modalState[key]) == null ? void 0 : _a2.value;
|
523
|
+
}
|
524
|
+
}
|
525
|
+
}
|
526
|
+
if (typeof _modalState[key] === "object") {
|
527
|
+
if (_modalState[key].showModal) {
|
528
|
+
_modalState[key].showModal = initState.modalState[key].showModal;
|
529
|
+
}
|
530
|
+
if (_modalState[key].addModal) {
|
531
|
+
_modalState[key].addModal = initState.modalState[key].addModal;
|
532
|
+
}
|
533
|
+
if (_modalState[key].editModal) {
|
534
|
+
_modalState[key].editModal = initState.modalState[key].editModal;
|
535
|
+
}
|
536
|
+
if (_modalState[key].edit) {
|
537
|
+
_modalState[key].edit = false;
|
538
|
+
}
|
539
|
+
if (_modalState[key].load) {
|
540
|
+
_modalState[key].load = initState.modalState[key].load;
|
541
|
+
}
|
542
|
+
}
|
543
|
+
}
|
544
|
+
_modalState.service.value = [];
|
545
|
+
_modalState.service.cacheItem = null;
|
546
|
+
_modalState.service.addTimeModal = false;
|
547
|
+
_modalState.service.changeService = false;
|
548
|
+
_modalState.disabledEdit = initState.modalState.disabledEdit;
|
549
|
+
_modalState.channelDisabledEdit = initState.modalState.channelDisabledEdit;
|
550
|
+
_modalState.appointment_status = initState.modalState.appointment_status;
|
551
|
+
_state.modalState = _modalState;
|
552
|
+
return _state;
|
553
|
+
};
|
554
|
+
const _getBookingType = (record) => {
|
555
|
+
const { type } = state;
|
556
|
+
if (record.parent_id > 0 && record.item_type !== "recurring_booking" && !type) {
|
557
|
+
return "pisell2";
|
558
|
+
}
|
559
|
+
return "pisell1";
|
560
|
+
};
|
561
|
+
const _scrollToBooking = (bookingId) => {
|
562
|
+
var _a2;
|
563
|
+
if (bookingId || state.bookingId) {
|
564
|
+
const dom = document.getElementById(bookingId || state.bookingId);
|
565
|
+
(_a2 = dom == null ? void 0 : dom.scrollIntoView) == null ? void 0 : _a2.call(dom, { block: "center", behavior: "smooth" });
|
566
|
+
}
|
567
|
+
};
|
568
|
+
const _initBookingData = (type, data) => {
|
569
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
570
|
+
let initState = _getInitState({
|
571
|
+
bookingDetail: null,
|
572
|
+
bookingConfig: state.bookingConfig,
|
573
|
+
renderType: state.renderType,
|
574
|
+
isShowDeposit: state.isShowDeposit,
|
575
|
+
openRebook: state.openRebook,
|
576
|
+
disableEventBookingEdit: state.disableEventBookingEdit,
|
577
|
+
isShowInfo: state.isShowInfo,
|
578
|
+
persistent: state.persistent,
|
579
|
+
list: state.list,
|
580
|
+
intervalSetTime: state.intervalSetTime,
|
581
|
+
createCount: state.createCount,
|
582
|
+
bookingFunctions: state.bookingFunctions
|
583
|
+
});
|
584
|
+
if (type === "edit") {
|
585
|
+
initState.bookingDetail = data;
|
586
|
+
initState.modalState = _formatBookingDetail(data, state.modalState);
|
587
|
+
}
|
588
|
+
if (type === "create") {
|
589
|
+
if ((_a2 = data == null ? void 0 : data.serviceParams) == null ? void 0 : _a2.start_date) {
|
590
|
+
initState.modalState.date.value = (0, import_dayjs.default)(
|
591
|
+
(_b = data == null ? void 0 : data.serviceParams) == null ? void 0 : _b.start_date
|
592
|
+
);
|
593
|
+
sessionStorage.setItem(
|
594
|
+
"pisell2.booking.serviceParams",
|
595
|
+
JSON.stringify(data)
|
596
|
+
);
|
597
|
+
} else {
|
598
|
+
let timezone = (_f = (_e = (_d = (_c = store == null ? void 0 : store.getState) == null ? void 0 : _c.call(store)) == null ? void 0 : _d.global) == null ? void 0 : _e.globalConfig) == null ? void 0 : _f.timezone;
|
599
|
+
initState.modalState.date.value = import_dayjs.default.tz(/* @__PURE__ */ new Date(), timezone);
|
600
|
+
sessionStorage.removeItem("pisell2.booking.serviceParams");
|
601
|
+
}
|
602
|
+
if ((_g = data == null ? void 0 : data.params) == null ? void 0 : _g.customer) {
|
603
|
+
initState.modalState.client.value = data == null ? void 0 : data.params.customer;
|
604
|
+
}
|
605
|
+
if (data == null ? void 0 : data.eventBookingServiceParams) {
|
606
|
+
}
|
607
|
+
}
|
608
|
+
console.log(initState, "initState");
|
609
|
+
setState({
|
610
|
+
...initState,
|
611
|
+
[state.renderType === "eventBooking" ? "eventOpen" : "open"]: true,
|
612
|
+
bookingId: state.bookingId
|
613
|
+
});
|
614
|
+
};
|
615
|
+
const _rebook = () => {
|
616
|
+
var _a2, _b, _c;
|
617
|
+
let date = (0, import_utils2.getNextTimeSlice)(
|
618
|
+
((_c = (_b = (_a2 = state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.service_time.value) || 10
|
619
|
+
);
|
620
|
+
setState({
|
621
|
+
rebookState: {
|
622
|
+
...state.rebookState,
|
623
|
+
open: true,
|
624
|
+
date
|
625
|
+
}
|
626
|
+
});
|
627
|
+
};
|
628
|
+
const _getBookingDetail = async (bookingId) => {
|
629
|
+
const { renderType, openRebook } = state;
|
630
|
+
setState({ loading: true });
|
631
|
+
const getDetail = renderType === "eventBooking" ? import_serve.getEventBookingDetail : import_serve.getBookingDetail;
|
632
|
+
let data = await getDetail(bookingId || state.bookingId, {});
|
633
|
+
if (renderType === "eventBooking") {
|
634
|
+
data = {
|
635
|
+
...data,
|
636
|
+
bookings: {
|
637
|
+
...data.bookings,
|
638
|
+
list: [data.bookings]
|
639
|
+
}
|
640
|
+
};
|
641
|
+
}
|
642
|
+
console.log("getBookingDetail", data);
|
643
|
+
_initBookingData("edit", data);
|
644
|
+
if (openRebook) {
|
645
|
+
setTimeout(() => {
|
646
|
+
_rebook();
|
647
|
+
});
|
648
|
+
}
|
649
|
+
};
|
650
|
+
const _openModal = (props) => {
|
651
|
+
const {
|
652
|
+
bookingId,
|
653
|
+
serviceParams,
|
654
|
+
params,
|
655
|
+
eventBookingServiceParams,
|
656
|
+
renderType = "booking",
|
657
|
+
openRebook
|
658
|
+
} = props || {};
|
659
|
+
setState({
|
660
|
+
isShowInfo: false
|
661
|
+
});
|
662
|
+
const _isTerminal = isTerminal();
|
663
|
+
const defaultInit = () => {
|
664
|
+
if (renderType === "eventBooking") {
|
665
|
+
_getBoardConfig();
|
666
|
+
}
|
667
|
+
if (bookingId) {
|
668
|
+
_getBookingDetail(bookingId);
|
669
|
+
} else {
|
670
|
+
_initBookingData("create", {
|
671
|
+
serviceParams,
|
672
|
+
params,
|
673
|
+
eventBookingServiceParams
|
674
|
+
});
|
675
|
+
}
|
676
|
+
};
|
677
|
+
const isOpen = state.open;
|
678
|
+
setState(
|
679
|
+
{
|
680
|
+
[renderType === "eventBooking" ? "eventOpen" : "open"]: true,
|
681
|
+
bookingId: bookingId || 0,
|
682
|
+
renderType,
|
683
|
+
openRebook,
|
684
|
+
disableEventBookingEdit: eventBookingServiceParams == null ? void 0 : eventBookingServiceParams.disableEventBookingEdit,
|
685
|
+
modalState: {
|
686
|
+
...state.modalState,
|
687
|
+
eventOtherParams: eventBookingServiceParams
|
688
|
+
},
|
689
|
+
isShowInfo: !_isTerminal,
|
690
|
+
persistent: storage.get(`drawer-booking`) === "true" ? true : _isTerminal
|
691
|
+
},
|
692
|
+
() => {
|
693
|
+
console.log(isOpen, "isOpen");
|
694
|
+
if (isOpen) {
|
695
|
+
setTimeout(() => {
|
696
|
+
setState({
|
697
|
+
isShowInfo: true
|
698
|
+
});
|
699
|
+
});
|
700
|
+
}
|
701
|
+
defaultInit();
|
702
|
+
}
|
703
|
+
);
|
704
|
+
};
|
705
|
+
const _scanBookingDetailResult = async (detail) => {
|
706
|
+
var _a2, _b, _c;
|
707
|
+
(_a2 = Toast == null ? void 0 : Toast.loading) == null ? void 0 : _a2.call(Toast, import_utils.locales.getText("pisell2.ticket-booking.loading"), 6e4);
|
708
|
+
let result = {};
|
709
|
+
try {
|
710
|
+
result = JSON.parse(detail) || {};
|
711
|
+
} catch (err) {
|
712
|
+
}
|
713
|
+
if (!(result == null ? void 0 : result.value)) {
|
714
|
+
(_b = import_antd.message) == null ? void 0 : _b.error(
|
715
|
+
import_utils.locales.getText("pisell2.ticket-booking.appointment-not-found")
|
716
|
+
);
|
717
|
+
Toast == null ? void 0 : Toast.hide();
|
718
|
+
return;
|
719
|
+
}
|
720
|
+
const objDetail = await (0, import_serve.getOrderInfoByCode)({ code: result.value });
|
721
|
+
Toast == null ? void 0 : Toast.hide();
|
722
|
+
if (!(objDetail == null ? void 0 : objDetail.order_id) || (objDetail == null ? void 0 : objDetail.event_id) === 0) {
|
723
|
+
(_c = import_antd.message) == null ? void 0 : _c.error(
|
724
|
+
import_utils.locales.getText("pisell2.ticket-booking.appointment-not-found")
|
725
|
+
);
|
726
|
+
return;
|
727
|
+
}
|
728
|
+
if (_getBookingType(objDetail) === "pisell1") {
|
729
|
+
setState({
|
730
|
+
confirmOpen: true
|
731
|
+
});
|
732
|
+
return;
|
733
|
+
}
|
734
|
+
_scrollToBooking(objDetail.order_id);
|
735
|
+
_openModal({
|
736
|
+
bookingId: objDetail.order_id,
|
737
|
+
id: objDetail.event_id
|
738
|
+
});
|
739
|
+
};
|
740
|
+
const _onAction = (props) => {
|
741
|
+
if (props === "init") {
|
742
|
+
_getBookingDetail(state.bookingId);
|
743
|
+
return;
|
744
|
+
}
|
745
|
+
action == null ? void 0 : action(props);
|
746
|
+
};
|
747
|
+
const _setActiveTab = (key) => {
|
748
|
+
};
|
749
|
+
const _initFn = (callback, open) => {
|
750
|
+
setState(
|
751
|
+
{
|
752
|
+
..._getInitState({
|
753
|
+
bookingDetail: null,
|
754
|
+
bookingConfig: state.bookingConfig,
|
755
|
+
renderType: state.renderType,
|
756
|
+
isShowDeposit: state.isShowDeposit,
|
757
|
+
disableEventBookingEdit: state.disableEventBookingEdit,
|
758
|
+
list: state.list,
|
759
|
+
intervalSetTime: state.intervalSetTime,
|
760
|
+
createCount: state.createCount,
|
761
|
+
bookingFunctions: state.bookingFunctions
|
762
|
+
}),
|
763
|
+
loading: false,
|
764
|
+
open: open ?? false,
|
765
|
+
eventOpen: false,
|
766
|
+
isShowInfo: false,
|
767
|
+
bookingId: 0
|
768
|
+
},
|
769
|
+
() => {
|
770
|
+
callback == null ? void 0 : callback();
|
771
|
+
}
|
772
|
+
);
|
773
|
+
};
|
774
|
+
const _callback = (data, type) => {
|
775
|
+
if (isTerminal() && type === "checkout") {
|
776
|
+
return;
|
777
|
+
}
|
778
|
+
setState({
|
779
|
+
createCount: state.createCount + 1
|
780
|
+
});
|
781
|
+
if (data == null ? void 0 : data.afterCloseUpdate) {
|
782
|
+
return _callbackFnRef.current = () => {
|
783
|
+
lowcodeRef == null ? void 0 : lowcodeRef.onChange({ type: "refresh", ...data });
|
784
|
+
};
|
785
|
+
}
|
786
|
+
const { bookingId, renderType } = state;
|
787
|
+
let cb;
|
788
|
+
if (bookingId && renderType !== "eventBooking") {
|
789
|
+
cb = () => {
|
790
|
+
_openModal({
|
791
|
+
bookingId
|
792
|
+
});
|
793
|
+
};
|
794
|
+
}
|
795
|
+
if (!bookingId) {
|
796
|
+
_setIntervalTime(true);
|
797
|
+
}
|
798
|
+
_initFn(cb);
|
799
|
+
};
|
800
|
+
const _refreshData = () => {
|
801
|
+
if (lowcodeRef) {
|
802
|
+
lowcodeRef.onChange({ type: "refresh" });
|
803
|
+
}
|
804
|
+
};
|
805
|
+
const _clearAllValue = () => {
|
806
|
+
setState({
|
807
|
+
modalState: _getInitState().modalState
|
808
|
+
});
|
809
|
+
};
|
810
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
811
|
+
"div",
|
812
|
+
{
|
813
|
+
style: {
|
814
|
+
flex: 1,
|
815
|
+
overflow: "hidden",
|
816
|
+
display: "flex",
|
817
|
+
flexDirection: "column"
|
818
|
+
}
|
819
|
+
},
|
820
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1, overflow: "hidden" } }, /* @__PURE__ */ import_react.default.createElement(
|
821
|
+
import_addServiceVariant.default,
|
822
|
+
{
|
823
|
+
globalState: {
|
824
|
+
...state.modalState,
|
825
|
+
amountSymbol: state.amountSymbol,
|
826
|
+
bookingConfig: state.bookingConfig,
|
827
|
+
bookingDetail: state.bookingDetail,
|
828
|
+
bookingId: state.bookingId,
|
829
|
+
bookingStatus: state.bookingStatus,
|
830
|
+
apis,
|
831
|
+
action: _onAction,
|
832
|
+
callback: _callback,
|
833
|
+
locale: engineProps.locale,
|
834
|
+
modalOpen: state.open,
|
835
|
+
onRebook: _rebook,
|
836
|
+
refreshData: _refreshData,
|
837
|
+
setActiveTab: _setActiveTab,
|
838
|
+
addTimeProducts: state.addTimeProducts,
|
839
|
+
isBookingCreatePage: true,
|
840
|
+
closeAutoOpenService: true,
|
841
|
+
productExtensionType: state.productExtensionType,
|
842
|
+
isBookingTicket2: true
|
843
|
+
},
|
844
|
+
setGlobalState: _setModalState
|
845
|
+
}
|
846
|
+
)),
|
847
|
+
/* @__PURE__ */ import_react.default.createElement(
|
848
|
+
import_timeBar.default,
|
849
|
+
{
|
850
|
+
setGlobalState: setState,
|
851
|
+
globalState: state,
|
852
|
+
onDateChange: (...args) => {
|
853
|
+
_onDateChange(...args);
|
854
|
+
},
|
855
|
+
onDateTimeChange: (...args) => {
|
856
|
+
_setDataChange(...args, true);
|
857
|
+
},
|
858
|
+
setIntervalTime: _setIntervalTime,
|
859
|
+
locale: engineProps.locale
|
860
|
+
}
|
861
|
+
)
|
862
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
863
|
+
"div",
|
864
|
+
{
|
865
|
+
style: {
|
866
|
+
flexShrink: 0,
|
867
|
+
width: 355
|
868
|
+
}
|
869
|
+
},
|
870
|
+
/* @__PURE__ */ import_react.default.createElement(
|
871
|
+
import_info.default,
|
872
|
+
{
|
873
|
+
key: state.createCount,
|
874
|
+
globalState: {
|
875
|
+
...state.modalState,
|
876
|
+
hideCreateText: true,
|
877
|
+
amountSymbol: state.amountSymbol,
|
878
|
+
bookingConfig: state.bookingConfig,
|
879
|
+
bookingDetail: state.bookingDetail,
|
880
|
+
bookingId: state.bookingId,
|
881
|
+
bookingStatus: state.bookingStatus,
|
882
|
+
apis,
|
883
|
+
modalOpen: state.open,
|
884
|
+
onRebook: _rebook,
|
885
|
+
addTimeProducts: state.addTimeProducts,
|
886
|
+
isBookingCreatePage: true,
|
887
|
+
closeAutoOpenService: true,
|
888
|
+
renderType: "booking",
|
889
|
+
action: _onAction,
|
890
|
+
callback: _callback,
|
891
|
+
locale: engineProps.locale,
|
892
|
+
refreshData: _refreshData,
|
893
|
+
setActiveTab: _setActiveTab,
|
894
|
+
clearAllValue: _clearAllValue,
|
895
|
+
drawerMask: true,
|
896
|
+
isBookingTicket2: true
|
897
|
+
},
|
898
|
+
setGlobalState: _setModalState,
|
899
|
+
setState,
|
900
|
+
modules: {
|
901
|
+
client: 1,
|
902
|
+
date: 0,
|
903
|
+
service: 1,
|
904
|
+
holder: 1,
|
905
|
+
note: 1
|
906
|
+
}
|
907
|
+
}
|
908
|
+
)
|
909
|
+
));
|
910
|
+
};
|
911
|
+
var ticketBooking_default = TicketBooking;
|
912
|
+
// Annotate the CommonJS export names for ESM import in node:
|
913
|
+
0 && (module.exports = {
|
914
|
+
_formatBookingDetail
|
915
|
+
});
|