@pisell/private-materials 6.0.25 → 6.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +152 -148
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +12 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +12 -12
- 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 +38 -16
- package/es/components/Sales/Cart/types.d.ts +12 -0
- package/es/components/Sales/Cart/utils.d.ts +63 -0
- package/es/components/Sales/Cart/utils.js +332 -0
- package/es/components/Sales/Checkout/index.d.ts +4 -0
- package/es/components/Sales/Checkout/index.js +52 -8
- package/es/components/Sales/Checkout/serve.d.ts +13 -0
- package/es/components/Sales/Checkout/serve.js +16 -2
- package/es/components/Sales/Checkout/utils.d.ts +14 -1
- package/es/components/Sales/Checkout/utils.js +37 -4
- package/es/components/Sales/Customer/index.d.ts +1 -0
- package/es/components/Sales/Customer/index.js +4 -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/index.d.ts +10 -0
- package/es/components/Sales/Summary/index.js +17 -2
- package/es/components/Sales/Summary/serve.d.ts +1 -0
- package/es/components/Sales/Summary/serve.js +6 -0
- package/es/components/Sales/Summary/utils.d.ts +16 -1
- package/es/components/Sales/Summary/utils.js +44 -1
- 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 +262 -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 +257 -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 +9 -0
- package/es/components/appointmentBooking/components/Deposit/index.js +50 -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 +38 -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 +200 -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 +286 -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 +139 -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 +103 -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 +2 -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 +197 -117
- 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/reloadResourceModal/index.d.ts +8 -0
- package/es/components/booking/components/reloadResourceModal/index.js +73 -0
- package/es/components/booking/components/reloadResourceModal/index.less +6 -0
- 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/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/client/index.js +40 -8
- 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 +69 -0
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/index.js +15 -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 +121 -0
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.js +33 -31
- 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 +16 -11
- 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 +13 -6
- package/es/components/booking/info/service2/utils.js +405 -95
- 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 +54 -22
- 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 +99 -42
- package/es/components/booking/info2/service/addService/utils.d.ts +30 -3
- package/es/components/booking/info2/service/addService/utils.js +192 -75
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info2/service/addTimeModal/index.js +33 -11
- package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +2 -4
- package/es/components/booking/info2/service/editService/Resources/index.js +44 -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 +126 -30
- package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/es/components/booking/info2/service/editService/utils.js +18 -0
- package/es/components/booking/info2/service/index.js +22 -38
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/info2/utils.d.ts +4 -0
- package/es/components/booking/info2/utils.js +42 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +2 -1
- package/es/components/booking/info2/utilsByBooking.js +55 -16
- package/es/components/booking/locales.d.ts +99 -0
- package/es/components/booking/locales.js +120 -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/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/model.d.ts +1 -0
- 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 +5 -2
- 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/const.d.ts +4 -1
- package/es/components/eftposPay/const.js +3 -1
- package/es/components/eftposPay/device.d.ts +1 -2
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/hooks.js +3 -1
- package/es/components/eftposPay/index.js +1 -1
- package/es/components/eftposPay/linkly/const.d.ts +23 -0
- package/es/components/eftposPay/linkly/const.js +82 -0
- package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/hooks/index.js +2 -0
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +273 -0
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/index.js +197 -0
- package/es/components/eftposPay/linkly/service.d.ts +32 -0
- package/es/components/eftposPay/linkly/service.js +81 -0
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +4 -0
- package/es/components/eftposPay/pay.d.ts +1 -1
- package/es/components/eftposPay/pay.js +6 -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 +2 -2
- 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 +325 -61
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- 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 +91 -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 +30 -0
- package/es/components/eventBooking/locales.js +196 -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/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 +43 -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.d.ts +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 +27 -3
- 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 +518 -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 +954 -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 +157 -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 +287 -0
- package/es/components/ticketBooking/serve.js +990 -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 +6 -0
- package/es/index.js +7 -1
- package/es/utils/date.d.ts +11 -0
- package/es/utils/date.js +49 -0
- package/es/utils/index.d.ts +1 -1
- 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 +39 -22
- package/lib/components/Sales/Cart/types.d.ts +12 -0
- package/lib/components/Sales/Cart/utils.d.ts +63 -0
- package/lib/components/Sales/Cart/utils.js +269 -0
- package/lib/components/Sales/Checkout/index.d.ts +4 -0
- package/lib/components/Sales/Checkout/index.js +39 -7
- package/lib/components/Sales/Checkout/serve.d.ts +13 -0
- package/lib/components/Sales/Checkout/serve.js +7 -2
- package/lib/components/Sales/Checkout/utils.d.ts +14 -1
- package/lib/components/Sales/Checkout/utils.js +23 -5
- package/lib/components/Sales/Customer/index.d.ts +1 -0
- package/lib/components/Sales/Customer/index.js +4 -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/index.d.ts +10 -0
- package/lib/components/Sales/Summary/index.js +7 -1
- package/lib/components/Sales/Summary/serve.d.ts +1 -0
- package/lib/components/Sales/Summary/serve.js +32 -0
- package/lib/components/Sales/Summary/utils.d.ts +16 -1
- package/lib/components/Sales/Summary/utils.js +31 -1
- 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 +213 -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 +226 -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 +9 -0
- package/lib/components/appointmentBooking/components/Deposit/index.js +93 -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 +132 -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 +46 -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 +152 -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 +226 -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 +135 -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 +111 -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 +2 -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 +187 -69
- 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/reloadResourceModal/index.d.ts +8 -0
- package/lib/components/booking/components/reloadResourceModal/index.js +74 -0
- package/lib/components/booking/components/reloadResourceModal/index.less +6 -0
- 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/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/client/index.js +34 -8
- package/lib/components/booking/info/client/index.less +39 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +8 -1
- package/lib/components/booking/info/clientVariant/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 +92 -0
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/index.js +10 -4
- 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 +120 -0
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.js +26 -23
- package/lib/components/booking/info/service/editService/index.d.ts +1 -1
- package/lib/components/booking/info/service/editService/index.js +71 -26
- 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 +9 -4
- 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 +13 -6
- package/lib/components/booking/info/service2/utils.js +356 -43
- package/lib/components/booking/info/utils.d.ts +6 -0
- package/lib/components/booking/info/utils.js +97 -1
- package/lib/components/booking/info2/index.js +61 -19
- 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 +81 -37
- package/lib/components/booking/info2/service/addService/utils.d.ts +30 -3
- package/lib/components/booking/info2/service/addService/utils.js +138 -30
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addTimeModal/index.js +27 -12
- package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +1 -2
- package/lib/components/booking/info2/service/editService/Resources/index.js +70 -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 +133 -35
- package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/lib/components/booking/info2/service/editService/utils.js +48 -0
- package/lib/components/booking/info2/service/index.js +20 -28
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/info2/utils.d.ts +4 -0
- package/lib/components/booking/info2/utils.js +51 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +2 -1
- package/lib/components/booking/info2/utilsByBooking.js +36 -15
- package/lib/components/booking/locales.d.ts +99 -0
- package/lib/components/booking/locales.js +120 -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/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/model.d.ts +1 -0
- 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 +5 -2
- 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/const.d.ts +4 -1
- package/lib/components/eftposPay/const.js +2 -0
- package/lib/components/eftposPay/device.d.ts +1 -2
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/hooks.js +11 -4
- package/lib/components/eftposPay/index.js +1 -1
- package/lib/components/eftposPay/linkly/const.d.ts +23 -0
- package/lib/components/eftposPay/linkly/const.js +102 -0
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/hooks/index.js +25 -0
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/index.js +208 -0
- package/lib/components/eftposPay/linkly/service.d.ts +32 -0
- package/lib/components/eftposPay/linkly/service.js +55 -0
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +6 -0
- package/lib/components/eftposPay/pay.d.ts +1 -1
- package/lib/components/eftposPay/pay.js +13 -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 +2 -2
- 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 +174 -16
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- 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 +30 -0
- package/lib/components/eventBooking/locales.js +47 -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/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 +72 -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.d.ts +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 +35 -3
- 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 +443 -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 +914 -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 +195 -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 +287 -0
- package/lib/components/ticketBooking/serve.js +224 -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 +6 -0
- package/lib/index.js +18 -0
- package/lib/utils/date.d.ts +11 -0
- package/lib/utils/date.js +57 -0
- package/lib/utils/index.d.ts +1 -1
- 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/package.json +4 -4
@@ -0,0 +1,125 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __export = (target, all) => {
|
6
|
+
for (var name in all)
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
8
|
+
};
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
}
|
15
|
+
return to;
|
16
|
+
};
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
+
|
19
|
+
// src/components/appointmentBooking/components/Cart/utils.ts
|
20
|
+
var utils_exports = {};
|
21
|
+
__export(utils_exports, {
|
22
|
+
checkHolder: () => checkHolder,
|
23
|
+
checkLogin: () => checkLogin,
|
24
|
+
checkResource: () => checkResource,
|
25
|
+
handleAddHolder: () => handleAddHolder
|
26
|
+
});
|
27
|
+
module.exports = __toCommonJS(utils_exports);
|
28
|
+
var import_utils = require("../../utils");
|
29
|
+
var checkLogin = async ({
|
30
|
+
isLogin,
|
31
|
+
openLoginModal,
|
32
|
+
isFormSubject,
|
33
|
+
utils,
|
34
|
+
accountLists,
|
35
|
+
appointmentBooking,
|
36
|
+
getHolders
|
37
|
+
}) => {
|
38
|
+
if (!isLogin) {
|
39
|
+
openLoginModal({
|
40
|
+
callback: (status) => {
|
41
|
+
var _a;
|
42
|
+
if (status === "success") {
|
43
|
+
if (!isFormSubject) {
|
44
|
+
const user = JSON.parse(((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("customer")) || "{}");
|
45
|
+
const currentUser = (0, import_utils.formatCustomer)(user);
|
46
|
+
const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
|
47
|
+
appointmentBooking.setLoginAccount(meAccount == null ? void 0 : meAccount.id, currentUser);
|
48
|
+
} else {
|
49
|
+
getHolders();
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
});
|
54
|
+
return false;
|
55
|
+
}
|
56
|
+
return true;
|
57
|
+
};
|
58
|
+
var checkHolder = ({ isFormSubject, checkAccount, carts }) => {
|
59
|
+
if (isFormSubject && !checkAccount("holder")) {
|
60
|
+
const newCarts = carts == null ? void 0 : carts.map((item) => {
|
61
|
+
return {
|
62
|
+
...item,
|
63
|
+
isErrorHolder: !(item == null ? void 0 : item.holder_id)
|
64
|
+
};
|
65
|
+
});
|
66
|
+
return newCarts;
|
67
|
+
}
|
68
|
+
return false;
|
69
|
+
};
|
70
|
+
var checkResource = ({ carts, resources }) => {
|
71
|
+
const isEmptyResourceId = carts == null ? void 0 : carts.some((item) => !(item == null ? void 0 : item.resource_id));
|
72
|
+
if (isEmptyResourceId) {
|
73
|
+
const newCarts = carts == null ? void 0 : carts.map((item) => {
|
74
|
+
var _a;
|
75
|
+
let errorText = "";
|
76
|
+
if (!(item == null ? void 0 : item.resource_id)) {
|
77
|
+
const currentCart = resources == null ? void 0 : resources.find((d) => (d == null ? void 0 : d._id) === (item == null ? void 0 : item._id));
|
78
|
+
const currentResources = (currentCart == null ? void 0 : currentCart.resources) || [];
|
79
|
+
errorText = ((_a = currentResources == null ? void 0 : currentResources[0]) == null ? void 0 : _a.title) || "";
|
80
|
+
}
|
81
|
+
return {
|
82
|
+
...item,
|
83
|
+
isErrorResource: !(item == null ? void 0 : item.resource_id),
|
84
|
+
resourceErrorText: errorText
|
85
|
+
};
|
86
|
+
});
|
87
|
+
return newCarts;
|
88
|
+
}
|
89
|
+
return false;
|
90
|
+
};
|
91
|
+
var handleAddHolder = async ({ res, bookingSubject, accountLists, cartItem, getHolders, appointmentBooking }) => {
|
92
|
+
var _a;
|
93
|
+
try {
|
94
|
+
let result = void 0;
|
95
|
+
const relationShipForms = ((_a = res == null ? void 0 : res.values) == null ? void 0 : _a.form_to_form_value) || [];
|
96
|
+
const currentForm = relationShipForms.find(
|
97
|
+
(item) => item.form_id === (bookingSubject == null ? void 0 : bookingSubject.form_id)
|
98
|
+
);
|
99
|
+
const form_record_id = Math.max(
|
100
|
+
...(currentForm == null ? void 0 : currentForm.form_data_value) || []
|
101
|
+
);
|
102
|
+
const oldAccount = accountLists.find(
|
103
|
+
(item) => item.id === form_record_id
|
104
|
+
);
|
105
|
+
await getHolders();
|
106
|
+
const newAccountLists = await appointmentBooking.getAccounts();
|
107
|
+
if (oldAccount) {
|
108
|
+
result = !(cartItem == null ? void 0 : cartItem.holder_id) ? { ...accountLists == null ? void 0 : accountLists[0] } : void 0;
|
109
|
+
} else {
|
110
|
+
const newAccount = newAccountLists.find(
|
111
|
+
(item) => item.id === form_record_id
|
112
|
+
);
|
113
|
+
result = { ...newAccount || (newAccountLists == null ? void 0 : newAccountLists[0]) };
|
114
|
+
}
|
115
|
+
return result;
|
116
|
+
} catch (error) {
|
117
|
+
}
|
118
|
+
};
|
119
|
+
// Annotate the CommonJS export names for ESM import in node:
|
120
|
+
0 && (module.exports = {
|
121
|
+
checkHolder,
|
122
|
+
checkLogin,
|
123
|
+
checkResource,
|
124
|
+
handleAddHolder
|
125
|
+
});
|
@@ -0,0 +1,155 @@
|
|
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/appointmentBooking/components/ConfirmInformation/index.tsx
|
30
|
+
var ConfirmInformation_exports = {};
|
31
|
+
__export(ConfirmInformation_exports, {
|
32
|
+
default: () => ConfirmInformation_default
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(ConfirmInformation_exports);
|
35
|
+
var import_react = __toESM(require("react"));
|
36
|
+
var import_utils = require("@pisell/utils");
|
37
|
+
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
38
|
+
var import_context = require("../../context");
|
39
|
+
var import_hooks = require("../../hooks");
|
40
|
+
var import_Item = __toESM(require("../Cart/Item"));
|
41
|
+
var import_utils2 = require("../../utils");
|
42
|
+
var import_utils3 = require("./utils");
|
43
|
+
var import_index = require("./index.less");
|
44
|
+
var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
45
|
+
var _a, _b;
|
46
|
+
const context = (0, import_useEngineContext.default)();
|
47
|
+
const config = ((_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.constants) == null ? void 0 : _b.config) || {};
|
48
|
+
const utils = (0, import_hooks.contextUtils)();
|
49
|
+
const { appointmentBooking, summary, isAgreeDepositPolicy, setLoading } = (0, import_context.useAppointmentBookingContext)();
|
50
|
+
const { isRetailTemplate } = (0, import_hooks.useAppointmentBookingSetting)();
|
51
|
+
const goPaymentFinish = (order_id, amount) => {
|
52
|
+
var _a2;
|
53
|
+
const url = `/payment-finish/success?order_id=${order_id}&amount=${Number(
|
54
|
+
amount
|
55
|
+
)}`;
|
56
|
+
(_a2 = utils == null ? void 0 : utils.history) == null ? void 0 : _a2.replace(url);
|
57
|
+
setLoading(false);
|
58
|
+
};
|
59
|
+
(0, import_react.useEffect)(() => {
|
60
|
+
if (isRetailTemplate) {
|
61
|
+
handleForm();
|
62
|
+
}
|
63
|
+
}, [isRetailTemplate]);
|
64
|
+
const handleForm = async (isSubmit) => {
|
65
|
+
var _a2;
|
66
|
+
const carts = await appointmentBooking.getCart();
|
67
|
+
const key = "isRetailFormSubmit";
|
68
|
+
const isRetailFormSubmit = appointmentBooking.getOtherData(key);
|
69
|
+
const callback = () => {
|
70
|
+
if (isSubmit) {
|
71
|
+
onCheckout();
|
72
|
+
}
|
73
|
+
};
|
74
|
+
if (isRetailFormSubmit) {
|
75
|
+
return callback();
|
76
|
+
}
|
77
|
+
const params = (0, import_utils3.getFormParams)(carts);
|
78
|
+
(_a2 = utils == null ? void 0 : utils.action) == null ? void 0 : _a2.call(utils, {
|
79
|
+
type: "pisell1.goProductForm",
|
80
|
+
data: params,
|
81
|
+
callback: async (e) => {
|
82
|
+
var _a3;
|
83
|
+
if ((e == null ? void 0 : e.type) !== "close") {
|
84
|
+
await appointmentBooking.updateCart({
|
85
|
+
_id: (_a3 = carts == null ? void 0 : carts[0]) == null ? void 0 : _a3._id,
|
86
|
+
relationForms: e
|
87
|
+
});
|
88
|
+
appointmentBooking.setOtherData(key, true);
|
89
|
+
callback();
|
90
|
+
}
|
91
|
+
setLoading(false);
|
92
|
+
}
|
93
|
+
});
|
94
|
+
};
|
95
|
+
const handleNext = async () => {
|
96
|
+
var _a2;
|
97
|
+
const { deposit } = summary;
|
98
|
+
if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_a2 = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _a2.length) > 0 && !isAgreeDepositPolicy) {
|
99
|
+
return (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.deposit.agree.policy"));
|
100
|
+
}
|
101
|
+
setLoading(true);
|
102
|
+
if (isRetailTemplate) {
|
103
|
+
handleForm(true);
|
104
|
+
return;
|
105
|
+
}
|
106
|
+
onCheckout();
|
107
|
+
};
|
108
|
+
const onCheckout = async () => {
|
109
|
+
try {
|
110
|
+
const { deposit } = summary;
|
111
|
+
const { data } = await appointmentBooking.submitOrder();
|
112
|
+
const { is_deposit, deposit_amount, total_amount, order_id } = data || {};
|
113
|
+
const _total = is_deposit ? deposit_amount : total_amount;
|
114
|
+
if (_total > 0) {
|
115
|
+
utils.action({
|
116
|
+
type: "pisell1.payment",
|
117
|
+
data: { ...data, total_amount: _total },
|
118
|
+
callback: (e) => {
|
119
|
+
}
|
120
|
+
});
|
121
|
+
setTimeout(() => {
|
122
|
+
setLoading(false);
|
123
|
+
}, 200);
|
124
|
+
} else {
|
125
|
+
if (deposit == null ? void 0 : deposit.hasDeposit) {
|
126
|
+
goPaymentFinish(order_id, _total);
|
127
|
+
return;
|
128
|
+
}
|
129
|
+
const freeResult = await appointmentBooking.getFreeProduct(order_id);
|
130
|
+
console.log(freeResult, "freeResult");
|
131
|
+
if (freeResult == null ? void 0 : freeResult.status) {
|
132
|
+
goPaymentFinish(order_id, total_amount);
|
133
|
+
} else {
|
134
|
+
(0, import_utils2.Toast)(freeResult == null ? void 0 : freeResult.message);
|
135
|
+
}
|
136
|
+
}
|
137
|
+
} catch (error) {
|
138
|
+
(0, import_utils2.Toast)((error == null ? void 0 : error.message) || "");
|
139
|
+
setTimeout(() => {
|
140
|
+
setLoading(false);
|
141
|
+
}, 50);
|
142
|
+
}
|
143
|
+
};
|
144
|
+
(0, import_react.useImperativeHandle)(ref, () => ({
|
145
|
+
next: handleNext
|
146
|
+
}));
|
147
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-wrap" }, (0, import_utils.isMobile)() ? /* @__PURE__ */ import_react.default.createElement(import_Item.default, { onNext: handleNext }) : /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "image" }, /* @__PURE__ */ import_react.default.createElement(
|
148
|
+
"img",
|
149
|
+
{
|
150
|
+
src: `${config == null ? void 0 : config.awsStatic}/checkout_confirm.png`,
|
151
|
+
loading: "lazy"
|
152
|
+
}
|
153
|
+
)), /* @__PURE__ */ import_react.default.createElement("span", { className: "tips" }, import_utils.locales.getText("pisell2.appointment.tips")), /* @__PURE__ */ import_react.default.createElement("span", { className: "tips-content" }, import_utils.locales.getText("pisell2.appointment.tips.content"))));
|
154
|
+
});
|
155
|
+
var ConfirmInformation_default = ConfirmInformation;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
.appointment-confirm-information-wrap {
|
2
|
+
padding-top: 20px;
|
3
|
+
height: 100%;
|
4
|
+
|
5
|
+
.appointment-confirm-information-content {
|
6
|
+
display: flex;
|
7
|
+
flex-direction: column;
|
8
|
+
align-items: center;
|
9
|
+
color: #000;
|
10
|
+
text-align: center;
|
11
|
+
font-size: 20px;
|
12
|
+
font-style: normal;
|
13
|
+
font-weight: 600;
|
14
|
+
line-height: 30px;
|
15
|
+
|
16
|
+
.image {
|
17
|
+
display: flex;
|
18
|
+
width: 76%;
|
19
|
+
img {
|
20
|
+
width: 100%;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
.tips {
|
25
|
+
margin-top: 43px;
|
26
|
+
}
|
27
|
+
|
28
|
+
.tips-content {
|
29
|
+
margin-top: 8px;
|
30
|
+
font-size: 16px;
|
31
|
+
font-weight: 500;
|
32
|
+
line-height: 24px;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __export = (target, all) => {
|
6
|
+
for (var name in all)
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
8
|
+
};
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
}
|
15
|
+
return to;
|
16
|
+
};
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
+
|
19
|
+
// src/components/appointmentBooking/components/ConfirmInformation/utils.ts
|
20
|
+
var utils_exports = {};
|
21
|
+
__export(utils_exports, {
|
22
|
+
getFormParams: () => getFormParams
|
23
|
+
});
|
24
|
+
module.exports = __toCommonJS(utils_exports);
|
25
|
+
var getFormParams = (carts) => {
|
26
|
+
const product_id = (carts || []).map((item) => {
|
27
|
+
return item.id;
|
28
|
+
});
|
29
|
+
return {
|
30
|
+
product_id,
|
31
|
+
appointment_type: "virtual"
|
32
|
+
};
|
33
|
+
};
|
34
|
+
// Annotate the CommonJS export names for ESM import in node:
|
35
|
+
0 && (module.exports = {
|
36
|
+
getFormParams
|
37
|
+
});
|
@@ -0,0 +1,226 @@
|
|
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/appointmentBooking/components/Content/index.tsx
|
30
|
+
var Content_exports = {};
|
31
|
+
__export(Content_exports, {
|
32
|
+
default: () => Content_default
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(Content_exports);
|
35
|
+
var import_react = __toESM(require("react"));
|
36
|
+
var import_utils = require("@pisell/utils");
|
37
|
+
var import_Item = __toESM(require("../Cart/Item"));
|
38
|
+
var import_Header = __toESM(require("../Header"));
|
39
|
+
var import_Footer = __toESM(require("../Footer"));
|
40
|
+
var import_Services = __toESM(require("../Services"));
|
41
|
+
var import_Date = __toESM(require("../Date"));
|
42
|
+
var import_Resource = __toESM(require("../Resource"));
|
43
|
+
var import_TimeSlicing = __toESM(require("../TimeSlicing"));
|
44
|
+
var import_Guest = __toESM(require("../Guest"));
|
45
|
+
var import_Form = __toESM(require("../Form"));
|
46
|
+
var import_ConfirmInformation = __toESM(require("../ConfirmInformation"));
|
47
|
+
var import_context = require("../../context");
|
48
|
+
var import_PolicyModal = __toESM(require("../../deposit/components/PolicyModal"));
|
49
|
+
var import_hooks = require("../../hooks");
|
50
|
+
var import_index = require("./index.less");
|
51
|
+
var Layout = () => {
|
52
|
+
var _a, _b, _c, _d, _e;
|
53
|
+
const stepRef = (0, import_react.useRef)();
|
54
|
+
const {
|
55
|
+
currentStep,
|
56
|
+
setResourceOtherParams,
|
57
|
+
resourceOtherParams,
|
58
|
+
setIsAgreeDepositPolicy,
|
59
|
+
appointmentBooking,
|
60
|
+
setLoading,
|
61
|
+
policyParams,
|
62
|
+
closePolicy,
|
63
|
+
currentStepParams,
|
64
|
+
setIsErrorHolder
|
65
|
+
} = (0, import_context.useAppointmentBookingContext)();
|
66
|
+
const { isDateSelectedFirst, isFormSubject, isRetailTemplate } = (0, import_hooks.useAppointmentBookingSetting)();
|
67
|
+
const { isLogin } = (0, import_hooks.useAppointmentBookingLogin)();
|
68
|
+
const { getHolders } = (0, import_hooks.useAppointmentBookingAccount)();
|
69
|
+
const { removeStep } = (0, import_hooks.useAppointmentBookingStep)();
|
70
|
+
const { shopDiscount } = (0, import_hooks.useShopDiscount)();
|
71
|
+
(0, import_hooks.useAppointmentBookingCart)();
|
72
|
+
(0, import_hooks.useAppointmentBookingStep)();
|
73
|
+
const [params, setParams] = (0, import_react.useState)({});
|
74
|
+
(0, import_react.useEffect)(() => {
|
75
|
+
appointmentBooking.removeStep("fill-form");
|
76
|
+
return () => {
|
77
|
+
var _a2;
|
78
|
+
setIsAgreeDepositPolicy(false);
|
79
|
+
appointmentBooking.destroy();
|
80
|
+
(_a2 = shopDiscount == null ? void 0 : shopDiscount.destroy) == null ? void 0 : _a2.call(shopDiscount);
|
81
|
+
};
|
82
|
+
}, []);
|
83
|
+
(0, import_react.useEffect)(() => {
|
84
|
+
var _a2;
|
85
|
+
if ((currentStepParams == null ? void 0 : currentStepParams.index) < 0) return;
|
86
|
+
const resourceStepIndex = (_a2 = currentStepParams == null ? void 0 : currentStepParams.stepLists) == null ? void 0 : _a2.findIndex(
|
87
|
+
(item) => item.key === "select-resource"
|
88
|
+
);
|
89
|
+
if ((currentStepParams == null ? void 0 : currentStepParams.index) < resourceStepIndex) {
|
90
|
+
appointmentBooking.setOtherData("current_selected_resources", null);
|
91
|
+
}
|
92
|
+
}, [currentStepParams]);
|
93
|
+
(0, import_react.useEffect)(() => {
|
94
|
+
var _a2, _b2;
|
95
|
+
try {
|
96
|
+
if (!(appointmentBooking == null ? void 0 : appointmentBooking.otherParams) || isRetailTemplate) return;
|
97
|
+
const showAddGuest = (_b2 = (_a2 = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a2.productModuleParams) == null ? void 0 : _b2.showAddGuest;
|
98
|
+
if (isFormSubject || !showAddGuest) {
|
99
|
+
removeStep("select-guest");
|
100
|
+
} else {
|
101
|
+
appointmentBooking.addStep(
|
102
|
+
{
|
103
|
+
key: "select-guest",
|
104
|
+
description: import_utils.locales.getText("pisell2.appointment.add-guests")
|
105
|
+
},
|
106
|
+
"select-service"
|
107
|
+
);
|
108
|
+
}
|
109
|
+
} catch (error) {
|
110
|
+
}
|
111
|
+
}, [isFormSubject, isRetailTemplate]);
|
112
|
+
(0, import_react.useEffect)(() => {
|
113
|
+
if (isFormSubject && isLogin && !isRetailTemplate) {
|
114
|
+
getHolders();
|
115
|
+
}
|
116
|
+
}, [isFormSubject, isLogin, isRetailTemplate]);
|
117
|
+
(0, import_react.useEffect)(() => {
|
118
|
+
if (!(currentStep == null ? void 0 : currentStep.step)) return;
|
119
|
+
setLoading(false);
|
120
|
+
setResourceOtherParams({
|
121
|
+
...resourceOtherParams,
|
122
|
+
errorList: null
|
123
|
+
});
|
124
|
+
setIsErrorHolder(false);
|
125
|
+
window.scrollTo({
|
126
|
+
top: 0,
|
127
|
+
behavior: "smooth"
|
128
|
+
});
|
129
|
+
}, [(_a = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a.key]);
|
130
|
+
const components = {
|
131
|
+
// 选择服务
|
132
|
+
"select-service": import_Services.default,
|
133
|
+
// 添加客户
|
134
|
+
"select-guest": import_Guest.default,
|
135
|
+
// 选择时间
|
136
|
+
"select-date": import_Date.default,
|
137
|
+
// 时间切片
|
138
|
+
"select-time": import_TimeSlicing.default,
|
139
|
+
// 确认信息
|
140
|
+
"confirm-information": import_ConfirmInformation.default
|
141
|
+
};
|
142
|
+
const Com = (0, import_react.useMemo)(() => {
|
143
|
+
var _a2;
|
144
|
+
const key = (_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key;
|
145
|
+
if (!key) return null;
|
146
|
+
let Com2;
|
147
|
+
if (key.startsWith("select-resource")) {
|
148
|
+
Com2 = import_Resource.default;
|
149
|
+
} else if (key.startsWith("fill-form")) {
|
150
|
+
Com2 = import_Form.default;
|
151
|
+
} else {
|
152
|
+
Com2 = components[key];
|
153
|
+
}
|
154
|
+
return /* @__PURE__ */ import_react.default.createElement(Com2, { onChange: setParams, params, ref: stepRef });
|
155
|
+
}, [(_b = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _b.key]);
|
156
|
+
(0, import_react.useEffect)(() => {
|
157
|
+
var _a2, _b2;
|
158
|
+
if ((0, import_utils.isMobile)()) {
|
159
|
+
const header = document.querySelector(".event-progress-bar");
|
160
|
+
const footer = document.querySelector(".pisell-section-footers-wrapper");
|
161
|
+
const content = document.querySelector(
|
162
|
+
".parallel-content-mobile-wrap"
|
163
|
+
);
|
164
|
+
const headerHeight = ((_a2 = header == null ? void 0 : header.getBoundingClientRect()) == null ? void 0 : _a2.height) || 0;
|
165
|
+
const footerHeight = ((_b2 = footer == null ? void 0 : footer.getBoundingClientRect()) == null ? void 0 : _b2.height) || 0;
|
166
|
+
const windowHeight = window.innerHeight;
|
167
|
+
const contentHeight = windowHeight - headerHeight - footerHeight;
|
168
|
+
if (content && (content == null ? void 0 : content.style)) {
|
169
|
+
content.style.height = `${contentHeight}px`;
|
170
|
+
content.style.overflowY = "auto";
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}, [(_c = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _c.key]);
|
174
|
+
const isShowCartCom = (0, import_react.useMemo)(() => {
|
175
|
+
var _a2;
|
176
|
+
const key = (_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key;
|
177
|
+
if ((0, import_utils.isMobile)()) return null;
|
178
|
+
if (isDateSelectedFirst && key === "select-date") {
|
179
|
+
return null;
|
180
|
+
}
|
181
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "parallel-content-right" }, /* @__PURE__ */ import_react.default.createElement(import_Item.default, { onNext: () => {
|
182
|
+
var _a3, _b2;
|
183
|
+
return (_b2 = (_a3 = stepRef == null ? void 0 : stepRef.current) == null ? void 0 : _a3.next) == null ? void 0 : _b2.call(_a3);
|
184
|
+
} }));
|
185
|
+
}, [isDateSelectedFirst, (_d = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _d.key]);
|
186
|
+
const isFooter = (0, import_react.useMemo)(() => {
|
187
|
+
var _a2;
|
188
|
+
if (!(0, import_utils.isMobile)()) return false;
|
189
|
+
const key = (_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key;
|
190
|
+
if (isDateSelectedFirst && key === "select-date") return false;
|
191
|
+
return key !== "confirm-information";
|
192
|
+
}, [isDateSelectedFirst, (_e = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _e.key]);
|
193
|
+
const depositProtocolRequest = (id) => {
|
194
|
+
var _a2;
|
195
|
+
return (_a2 = appointmentBooking == null ? void 0 : appointmentBooking.getProtocol) == null ? void 0 : _a2.call(appointmentBooking, id);
|
196
|
+
};
|
197
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !isRetailTemplate ? /* @__PURE__ */ import_react.default.createElement(import_Header.default, null) : null, /* @__PURE__ */ import_react.default.createElement(
|
198
|
+
"div",
|
199
|
+
{
|
200
|
+
className: `parallel-content-wrap ${(0, import_utils.isMobile)() ? "parallel-content-mobile-wrap" : ""} ${isRetailTemplate ? "parallel-content-retail-wrap" : ""}`
|
201
|
+
},
|
202
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "parallel-content-left" }, Com),
|
203
|
+
isShowCartCom
|
204
|
+
), isFooter ? /* @__PURE__ */ import_react.default.createElement(
|
205
|
+
import_Footer.default,
|
206
|
+
{
|
207
|
+
onNext: () => {
|
208
|
+
var _a2, _b2;
|
209
|
+
return (_b2 = (_a2 = stepRef == null ? void 0 : stepRef.current) == null ? void 0 : _a2.next) == null ? void 0 : _b2.call(_a2);
|
210
|
+
}
|
211
|
+
}
|
212
|
+
) : null, (policyParams == null ? void 0 : policyParams.open) ? /* @__PURE__ */ import_react.default.createElement(
|
213
|
+
import_PolicyModal.default,
|
214
|
+
{
|
215
|
+
key: policyParams == null ? void 0 : policyParams._ts,
|
216
|
+
open: policyParams == null ? void 0 : policyParams.open,
|
217
|
+
onCancel: () => closePolicy(false),
|
218
|
+
onConfirm: () => closePolicy(true),
|
219
|
+
item: policyParams == null ? void 0 : policyParams.content,
|
220
|
+
onChange: () => setLoading(false),
|
221
|
+
isHideCheckout: false,
|
222
|
+
depositProtocolRequest
|
223
|
+
}
|
224
|
+
) : null);
|
225
|
+
};
|
226
|
+
var Content_default = Layout;
|