@pisell/private-materials 6.1.7 → 6.1.8
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 +9 -1
- package/build/lowcode/preview.js +8 -8
- 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/components/Sales/Cart/index.js +14 -4
- package/es/components/Sales/Cart/utils.d.ts +40 -0
- package/es/components/Sales/Cart/utils.js +187 -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 +7 -1
- package/es/components/Sales/Checkout/utils.js +17 -5
- package/es/components/Sales/Customer/index.d.ts +1 -0
- package/es/components/Sales/Customer/index.js +1 -0
- package/es/components/Sales/Event/Detail.d.ts +1 -0
- package/es/components/Sales/Event/Detail.js +45 -11
- package/es/components/Sales/Event/serve.d.ts +10 -0
- package/es/components/Sales/Event/serve.js +25 -0
- 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 +43 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/es/components/appointmentBooking/components/Cart/utils.js +8 -13
- package/es/components/appointmentBooking/components/Content/index.js +120 -20
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
- package/es/components/appointmentBooking/components/Form/index.js +1 -1
- package/es/components/appointmentBooking/components/Form/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Form/utils.js +17 -15
- package/es/components/appointmentBooking/components/Header/index.js +2 -1
- package/es/components/appointmentBooking/components/Resource/index.js +1 -0
- package/es/components/appointmentBooking/components/Services/index.js +7 -2
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
- package/es/components/appointmentBooking/components/Voucher/index.js +10 -10
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
- package/es/components/appointmentBooking/deposit/index.js +4 -2
- package/es/components/appointmentBooking/hooks.js +28 -30
- package/es/components/booking/addons/index.js +4 -1
- package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
- package/es/components/booking/components/actionButtons/index.d.ts +29 -0
- package/es/components/booking/components/actionButtons/index.js +395 -0
- package/es/components/booking/components/actionButtons/index.less +148 -0
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/clearCartModal/index.d.ts +10 -0
- package/es/components/booking/components/clearCartModal/index.js +50 -0
- package/es/components/booking/components/clearCartModal/index.less +109 -0
- package/es/components/booking/components/customiseItemModal/index.d.ts +28 -0
- package/es/components/booking/components/customiseItemModal/index.js +287 -0
- package/es/components/booking/components/customiseItemModal/index.less +593 -0
- package/es/components/booking/components/drawer/index.d.ts +19 -0
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +15 -3
- package/es/components/booking/components/footer/index.js +137 -62
- package/es/components/booking/components/footer/utils.js +52 -24
- 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/tabPane/index.js +86 -5
- package/es/components/booking/components/tabPane/index.less +75 -1
- package/es/components/booking/components/voucher/index.js +21 -10
- package/es/components/booking/components/voucher/index.less +1 -1
- package/es/components/booking/dashboard/index.d.ts +1 -1
- package/es/components/booking/dashboard/index.js +10 -3
- package/es/components/booking/editBookingModal/index.js +58 -29
- package/es/components/booking/editBookingModal/serve.d.ts +1 -0
- package/es/components/booking/editBookingModal/serve.js +19 -11
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
- package/es/components/booking/hooks/useIsBooking4Shop.js +4 -3
- package/es/components/booking/hooks/useQuotation.js +17 -7
- package/es/components/booking/info/addServiceVariant/index.js +2 -2
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.js +15 -14
- package/es/components/booking/info/index.js +3 -4
- package/es/components/booking/info/index.less +18 -2
- package/es/components/booking/info/main.js +14 -15
- package/es/components/booking/info/service/Lists.js +5 -2
- package/es/components/booking/info/service/editService/index.js +1 -1
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service/serviceItem/index.js +2 -2
- package/es/components/booking/info/service/serviceManager/index.js +4 -4
- package/es/components/booking/info/service2/utils.d.ts +4 -0
- package/es/components/booking/info/service2/utils.js +12 -2
- package/es/components/booking/info/utils.d.ts +1 -1
- package/es/components/booking/info/utils.js +5 -3
- package/es/components/booking/info2/cartClientCard/index.d.ts +6 -0
- package/es/components/booking/info2/cartClientCard/index.js +343 -0
- package/es/components/booking/info2/cartClientCard/index.less +6 -0
- package/es/components/booking/info2/cartClientCard/locales.d.ts +21 -0
- package/es/components/booking/info2/cartClientCard/locales.js +26 -0
- package/es/components/booking/info2/cartClientCard/types.d.ts +13 -0
- package/es/components/booking/info2/cartClientCard/types.js +1 -0
- package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/es/components/booking/info2/cartClientCard/utils.js +7 -0
- package/es/components/booking/info2/index.js +104 -32
- package/es/components/booking/info2/service/addService/index.js +21 -8
- package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/es/components/booking/info2/service/addService/utils.js +38 -9
- package/es/components/booking/info2/service/addTimeModal/index.js +33 -9
- package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/es/components/booking/info2/service/editNormalService/index.js +67 -0
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
- package/es/components/booking/info2/service/editService/index.js +6 -7
- package/es/components/booking/info2/service/index.js +12 -6
- package/es/components/booking/info2/service/serviceItem/index.js +2 -2
- package/es/components/booking/info2/utils.js +13 -16
- package/es/components/booking/info2/utilsByBooking.d.ts +1 -0
- package/es/components/booking/info2/utilsByBooking.js +36 -7
- package/es/components/booking/locales.d.ts +84 -0
- package/es/components/booking/locales.js +108 -3
- package/es/components/booking/materiels/duration/index.d.ts +13 -0
- 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.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/addNote/index.d.ts +1 -1
- package/es/components/booking/notes/addNote/index.js +52 -32
- package/es/components/booking/notes/addNote/index.less +53 -0
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/eftposPay/const.d.ts +4 -1
- package/es/components/eftposPay/const.js +3 -1
- 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/store/index.d.ts +1 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +40 -19
- 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/bookingDetailModal/index.js +6 -3
- package/es/components/eventBooking/index.js +14 -0
- package/es/components/eventBooking/index.less +1 -1
- package/es/components/eventBooking/locales.d.ts +24 -0
- package/es/components/eventBooking/locales.js +27 -3
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +18 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +7 -2
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +44 -18
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +18 -3
- package/es/components/pay/toC/PaymentMethods/index.js +70 -21
- package/es/components/pay/toC/index.js +46 -14
- package/es/components/pay/toC/locales.d.ts +3 -0
- package/es/components/pay/toC/locales.js +3 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/productSelect/components/TabProduct/index.js +103 -39
- package/es/components/productSelect/components/TabProduct/tabs/index.less +1 -0
- package/es/components/productSelect/index.d.ts +2 -0
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/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.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- 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/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Cart/Product.js +21 -4
- package/es/components/shoppingCart/type.d.ts +1 -0
- package/es/components/subTotal/index.less +1 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +157 -212
- package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +190 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +33 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +213 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +79 -0
- package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
- package/es/components/ticketBooking/components/bookingDataPanel/constants.js +25 -0
- package/es/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +74 -0
- package/es/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
- package/es/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +71 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
- package/es/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
- package/es/components/ticketBooking/components/floatButtons/index.js +19 -0
- package/es/components/ticketBooking/components/floatButtons/index.less +17 -0
- package/es/components/ticketBooking/components/menuBar/index.js +50 -1
- package/es/components/ticketBooking/components/menuBar/index.less +8 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +195 -26
- package/es/components/ticketBooking/components/ticketBooking/index.less +28 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.js +20 -16
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -0
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
- package/es/components/ticketBooking/hooks/pisellos/index.js +3 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +244 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +52 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +30 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +29 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +49 -0
- package/es/components/ticketBooking/index.js +22 -3
- package/es/components/ticketBooking/locales.d.ts +6 -0
- package/es/components/ticketBooking/locales.js +9 -3
- package/es/components/ticketBooking/serve.js +11 -11
- package/es/components/ticketBooking/utils/index.d.ts +39 -2
- package/es/components/ticketBooking/utils/index.js +104 -11
- package/es/components/walletList/index.js +4 -4
- package/es/hooks/useComponents.js +1 -1
- package/es/hooks/useToast.d.ts +2 -0
- package/es/hooks/useToast.js +9 -0
- package/es/hooks/useTranslationOriginal.d.ts +1 -0
- package/es/hooks/useTranslationOriginal.js +10 -0
- package/es/index.d.ts +4 -0
- package/es/index.js +5 -1
- package/es/plus/clientCard/index.d.ts +7 -0
- package/es/plus/clientCard/index.js +452 -0
- package/es/plus/clientCard/index.less +539 -0
- package/es/plus/clientCard/line/index.d.ts +9 -0
- package/es/plus/clientCard/line/index.js +157 -0
- package/es/plus/clientCard/line/index.less +142 -0
- package/es/plus/clientCard/locales.d.ts +18 -0
- package/es/plus/clientCard/locales.js +17 -0
- package/es/plus/clientCard/types.d.ts +126 -0
- package/es/plus/clientCard/types.js +1 -0
- package/es/plus/clientCard/utils.d.ts +8 -0
- package/es/plus/clientCard/utils.js +59 -0
- package/es/plus/clientName/index.d.ts +4 -0
- package/es/plus/clientName/index.js +18 -0
- package/es/plus/clientName/index.less +10 -0
- package/es/plus/clientName/type.d.ts +13 -0
- package/es/plus/clientName/type.js +1 -0
- package/es/plus/clientName/utils.d.ts +2 -0
- package/es/plus/clientName/utils.js +18 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
- package/es/plus/clinetSearch/Add/index.d.ts +18 -0
- package/es/plus/clinetSearch/Add/index.js +212 -0
- package/es/plus/clinetSearch/Add/index.less +30 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
- package/es/plus/clinetSearch/index.d.ts +18 -0
- package/es/plus/clinetSearch/index.js +214 -0
- package/es/plus/clinetSearch/index.less +91 -0
- package/es/plus/clinetSearch/locales.d.ts +102 -0
- package/es/plus/clinetSearch/locales.js +101 -0
- package/es/plus/clinetSearch/serve.d.ts +1 -0
- package/es/plus/clinetSearch/serve.js +31 -0
- package/es/plus/clinetSearch/types.d.ts +49 -0
- package/es/plus/clinetSearch/types.js +1 -0
- package/es/plus/noteModal/AddTempModal.d.ts +7 -0
- package/es/plus/noteModal/AddTempModal.js +64 -0
- package/es/plus/noteModal/index.d.ts +4 -0
- package/es/plus/noteModal/index.js +199 -0
- package/es/plus/noteModal/index.less +168 -0
- package/es/plus/noteModal/locales.d.ts +33 -0
- package/es/plus/noteModal/locales.js +32 -0
- package/es/plus/noteModal/types.d.ts +17 -0
- package/es/plus/noteModal/types.js +1 -0
- package/es/pro/comprehensiveSearch/camera.svg +4 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
- package/es/pro/comprehensiveSearch/index.d.ts +9 -0
- package/es/pro/comprehensiveSearch/index.js +342 -0
- package/es/pro/comprehensiveSearch/index.less +323 -0
- package/es/pro/comprehensiveSearch/locales.d.ts +18 -0
- package/es/pro/comprehensiveSearch/locales.js +17 -0
- package/es/pro/comprehensiveSearch/types.d.ts +31 -0
- package/es/pro/comprehensiveSearch/types.js +1 -0
- package/es/pro/numberKeyboard/index.d.ts +28 -0
- package/es/pro/numberKeyboard/index.js +155 -0
- package/es/pro/numberKeyboard/index.less +25 -0
- package/es/pro/numberKeyboard/locales.d.ts +12 -0
- package/es/pro/numberKeyboard/locales.js +11 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellNumberSelector/example.js +68 -0
- package/es/pro/pisellNumberSelector/index.d.ts +26 -0
- package/es/pro/pisellNumberSelector/index.js +231 -0
- package/es/pro/pisellNumberSelector/index.less +193 -0
- package/es/pro/pisellPhoneKeyboard/index.d.ts +12 -0
- package/es/pro/pisellPhoneKeyboard/index.js +211 -0
- package/es/pro/pisellPhoneKeyboard/index.less +157 -0
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +157 -0
- package/es/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +9 -0
- package/es/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
- package/es/pro/pisellPriceKeyboardModal/index.js +1 -0
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/es/pro/pisellPriceKeyboardModal/types.js +1 -0
- package/es/pro/pisellPriceRadio/index.d.ts +26 -0
- package/es/pro/pisellPriceRadio/index.js +113 -0
- package/es/pro/pisellPriceRadio/index.less +158 -0
- package/es/pro/skuDetailModal/index.d.ts +5 -0
- package/es/pro/skuDetailModal/index.js +352 -0
- package/es/pro/skuDetailModal/index.less +236 -0
- package/es/pro/skuDetailModal/locales.d.ts +48 -0
- package/es/pro/skuDetailModal/locales.js +47 -0
- package/es/pro/skuDetailModal/types.d.ts +347 -0
- package/es/pro/skuDetailModal/types.js +1 -0
- package/lib/components/Sales/Cart/index.js +10 -4
- package/lib/components/Sales/Cart/utils.d.ts +40 -0
- package/lib/components/Sales/Cart/utils.js +129 -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 +7 -1
- package/lib/components/Sales/Checkout/utils.js +7 -2
- package/lib/components/Sales/Customer/index.d.ts +1 -0
- package/lib/components/Sales/Customer/index.js +1 -0
- package/lib/components/Sales/Event/Detail.d.ts +1 -0
- package/lib/components/Sales/Event/Detail.js +37 -12
- package/lib/components/Sales/Event/serve.d.ts +10 -0
- package/lib/components/Sales/Event/serve.js +7 -0
- 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 +30 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/lib/components/appointmentBooking/components/Cart/utils.js +0 -10
- package/lib/components/appointmentBooking/components/Content/index.js +55 -8
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
- package/lib/components/appointmentBooking/components/Form/index.js +6 -1
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Form/utils.js +9 -12
- package/lib/components/appointmentBooking/components/Header/index.js +1 -0
- package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
- package/lib/components/appointmentBooking/components/Services/index.js +6 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +7 -3
- package/lib/components/appointmentBooking/components/Voucher/index.js +0 -11
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
- package/lib/components/appointmentBooking/deposit/index.js +4 -2
- package/lib/components/appointmentBooking/hooks.js +5 -16
- package/lib/components/booking/addons/index.js +4 -1
- package/lib/components/booking/components/actionButtons/index.d.ts +29 -0
- package/lib/components/booking/components/actionButtons/index.js +325 -0
- package/lib/components/booking/components/actionButtons/index.less +148 -0
- package/lib/components/booking/components/clearCartModal/index.d.ts +10 -0
- package/lib/components/booking/components/clearCartModal/index.js +80 -0
- package/lib/components/booking/components/clearCartModal/index.less +109 -0
- package/lib/components/booking/components/customiseItemModal/index.d.ts +28 -0
- package/lib/components/booking/components/customiseItemModal/index.js +273 -0
- package/lib/components/booking/components/customiseItemModal/index.less +593 -0
- package/lib/components/booking/components/drawer/index.d.ts +19 -0
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +5 -3
- package/lib/components/booking/components/footer/index.js +115 -30
- package/lib/components/booking/components/footer/utils.js +38 -13
- 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/tabPane/index.js +78 -4
- package/lib/components/booking/components/tabPane/index.less +75 -1
- package/lib/components/booking/components/voucher/index.js +18 -9
- package/lib/components/booking/components/voucher/index.less +1 -1
- package/lib/components/booking/dashboard/index.d.ts +1 -1
- package/lib/components/booking/dashboard/index.js +7 -2
- package/lib/components/booking/editBookingModal/index.js +56 -21
- package/lib/components/booking/editBookingModal/serve.d.ts +1 -0
- package/lib/components/booking/editBookingModal/serve.js +12 -6
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -1
- package/lib/components/booking/hooks/useIsBooking4Shop.js +6 -4
- package/lib/components/booking/hooks/useQuotation.js +3 -1
- package/lib/components/booking/info/addServiceVariant/index.js +3 -2
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.js +14 -8
- package/lib/components/booking/info/index.js +7 -4
- package/lib/components/booking/info/index.less +18 -2
- package/lib/components/booking/info/main.js +12 -5
- package/lib/components/booking/info/service/Lists.js +6 -2
- package/lib/components/booking/info/service/editService/index.js +1 -0
- package/lib/components/booking/info/service/serviceItem/index.js +2 -2
- package/lib/components/booking/info/service/serviceManager/index.js +3 -3
- package/lib/components/booking/info/service2/utils.d.ts +4 -0
- package/lib/components/booking/info/service2/utils.js +14 -2
- package/lib/components/booking/info/utils.d.ts +1 -1
- package/lib/components/booking/info/utils.js +6 -3
- package/lib/components/booking/info2/cartClientCard/index.d.ts +6 -0
- package/lib/components/booking/info2/cartClientCard/index.js +298 -0
- package/lib/components/booking/info2/cartClientCard/index.less +6 -0
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +21 -0
- package/lib/components/booking/info2/cartClientCard/locales.js +50 -0
- package/lib/components/booking/info2/cartClientCard/types.d.ts +13 -0
- package/lib/components/booking/info2/cartClientCard/types.js +17 -0
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/lib/components/booking/info2/cartClientCard/utils.js +37 -0
- package/lib/components/booking/info2/index.js +119 -34
- package/lib/components/booking/info2/service/addService/index.js +17 -4
- package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/lib/components/booking/info2/service/addService/utils.js +31 -10
- package/lib/components/booking/info2/service/addTimeModal/index.js +28 -10
- package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/lib/components/booking/info2/service/editNormalService/index.js +100 -0
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
- package/lib/components/booking/info2/service/editService/index.js +5 -10
- package/lib/components/booking/info2/service/index.js +6 -6
- package/lib/components/booking/info2/service/serviceItem/index.js +2 -2
- package/lib/components/booking/info2/utils.js +0 -15
- package/lib/components/booking/info2/utilsByBooking.d.ts +1 -0
- package/lib/components/booking/info2/utilsByBooking.js +28 -6
- package/lib/components/booking/locales.d.ts +84 -0
- package/lib/components/booking/locales.js +102 -3
- package/lib/components/booking/materiels/duration/index.d.ts +13 -0
- package/lib/components/booking/model.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -1
- package/lib/components/booking/notes/addNote/index.js +41 -23
- package/lib/components/booking/notes/addNote/index.less +53 -0
- package/lib/components/eftposPay/const.d.ts +4 -1
- package/lib/components/eftposPay/const.js +2 -0
- 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/store/index.d.ts +1 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -8
- 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/bookingDetailModal/index.js +4 -3
- package/lib/components/eventBooking/index.js +11 -0
- package/lib/components/eventBooking/index.less +1 -1
- package/lib/components/eventBooking/locales.d.ts +24 -0
- package/lib/components/eventBooking/locales.js +27 -3
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +13 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +2 -2
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +8 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +66 -47
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +13 -1
- package/lib/components/pay/toC/PaymentMethods/index.js +30 -2
- package/lib/components/pay/toC/index.js +29 -9
- package/lib/components/pay/toC/locales.d.ts +3 -0
- package/lib/components/pay/toC/locales.js +3 -0
- package/lib/components/productSelect/components/TabProduct/index.js +74 -37
- package/lib/components/productSelect/components/TabProduct/tabs/index.less +1 -0
- package/lib/components/productSelect/index.d.ts +2 -0
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +26 -7
- package/lib/components/shoppingCart/type.d.ts +1 -0
- package/lib/components/subTotal/index.less +1 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +53 -129
- package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +8 -0
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +173 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.js +75 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingDashboard/index.less +5 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.d.ts +12 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.js +210 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/index.less +69 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.js +105 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +22 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.js +57 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/index.d.ts +9 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +113 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/index.less +61 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.d.ts +14 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/pisellFloatingPanel/index.js +84 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.js +0 -0
- package/lib/components/ticketBooking/components/floatButtons/index.d.ts +11 -0
- package/lib/components/ticketBooking/components/floatButtons/index.js +52 -0
- package/lib/components/ticketBooking/components/floatButtons/index.less +17 -0
- package/lib/components/ticketBooking/components/menuBar/index.js +63 -1
- package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +227 -74
- package/lib/components/ticketBooking/components/ticketBooking/index.less +28 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +21 -8
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +1 -0
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +33 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +3 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.js +27 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +144 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +12 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +47 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +5 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +64 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +5 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +65 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.d.ts +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobalHandle.js +83 -0
- package/lib/components/ticketBooking/index.js +19 -3
- package/lib/components/ticketBooking/locales.d.ts +6 -0
- package/lib/components/ticketBooking/locales.js +9 -3
- package/lib/components/ticketBooking/serve.js +11 -11
- package/lib/components/ticketBooking/utils/index.d.ts +39 -2
- package/lib/components/ticketBooking/utils/index.js +71 -10
- package/lib/components/walletList/index.js +3 -3
- package/lib/hooks/useToast.d.ts +2 -0
- package/lib/hooks/useToast.js +42 -0
- package/lib/hooks/useTranslationOriginal.d.ts +1 -0
- package/lib/hooks/useTranslationOriginal.js +42 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +12 -0
- package/lib/plus/clientCard/index.d.ts +7 -0
- package/lib/plus/clientCard/index.js +442 -0
- package/lib/plus/clientCard/index.less +539 -0
- package/lib/plus/clientCard/line/index.d.ts +9 -0
- package/lib/plus/clientCard/line/index.js +153 -0
- package/lib/plus/clientCard/line/index.less +142 -0
- package/lib/plus/clientCard/locales.d.ts +18 -0
- package/lib/plus/clientCard/locales.js +41 -0
- package/lib/plus/clientCard/types.d.ts +126 -0
- package/lib/plus/clientCard/types.js +17 -0
- package/lib/plus/clientCard/utils.d.ts +8 -0
- package/lib/plus/clientCard/utils.js +75 -0
- package/lib/plus/clientName/index.d.ts +4 -0
- package/lib/plus/clientName/index.js +53 -0
- package/lib/plus/clientName/index.less +10 -0
- package/lib/plus/clientName/type.d.ts +13 -0
- package/lib/plus/clientName/type.js +17 -0
- package/lib/plus/clientName/utils.d.ts +2 -0
- package/lib/plus/clientName/utils.js +43 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
- package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
- package/lib/plus/clinetSearch/Add/index.js +243 -0
- package/lib/plus/clinetSearch/Add/index.less +30 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
- package/lib/plus/clinetSearch/index.d.ts +18 -0
- package/lib/plus/clinetSearch/index.js +205 -0
- package/lib/plus/clinetSearch/index.less +91 -0
- package/lib/plus/clinetSearch/locales.d.ts +102 -0
- package/lib/plus/clinetSearch/locales.js +125 -0
- package/lib/plus/clinetSearch/serve.d.ts +1 -0
- package/lib/plus/clinetSearch/serve.js +33 -0
- package/lib/plus/clinetSearch/types.d.ts +49 -0
- package/lib/plus/clinetSearch/types.js +17 -0
- package/lib/plus/noteModal/AddTempModal.d.ts +7 -0
- package/lib/plus/noteModal/AddTempModal.js +95 -0
- package/lib/plus/noteModal/index.d.ts +4 -0
- package/lib/plus/noteModal/index.js +199 -0
- package/lib/plus/noteModal/index.less +168 -0
- package/lib/plus/noteModal/locales.d.ts +33 -0
- package/lib/plus/noteModal/locales.js +56 -0
- package/lib/plus/noteModal/types.d.ts +17 -0
- package/lib/plus/noteModal/types.js +17 -0
- package/lib/pro/comprehensiveSearch/camera.svg +4 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
- package/lib/pro/comprehensiveSearch/index.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/index.js +259 -0
- package/lib/pro/comprehensiveSearch/index.less +323 -0
- package/lib/pro/comprehensiveSearch/locales.d.ts +18 -0
- package/lib/pro/comprehensiveSearch/locales.js +41 -0
- package/lib/pro/comprehensiveSearch/types.d.ts +31 -0
- package/lib/pro/comprehensiveSearch/types.js +17 -0
- package/lib/pro/numberKeyboard/index.d.ts +28 -0
- package/lib/pro/numberKeyboard/index.js +182 -0
- package/lib/pro/numberKeyboard/index.less +25 -0
- package/lib/pro/numberKeyboard/locales.d.ts +12 -0
- package/lib/pro/numberKeyboard/locales.js +35 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellNumberSelector/example.js +93 -0
- package/lib/pro/pisellNumberSelector/index.d.ts +26 -0
- package/lib/pro/pisellNumberSelector/index.js +260 -0
- package/lib/pro/pisellNumberSelector/index.less +193 -0
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +12 -0
- package/lib/pro/pisellPhoneKeyboard/index.js +220 -0
- package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.d.ts +5 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.js +157 -0
- package/lib/pro/pisellPriceKeyboardModal/PisellPriceKeyboardModal.less +9 -0
- package/lib/pro/pisellPriceKeyboardModal/index.d.ts +2 -0
- package/lib/pro/pisellPriceKeyboardModal/index.js +35 -0
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/lib/pro/pisellPriceKeyboardModal/types.js +17 -0
- package/lib/pro/pisellPriceRadio/index.d.ts +26 -0
- package/lib/pro/pisellPriceRadio/index.js +130 -0
- package/lib/pro/pisellPriceRadio/index.less +158 -0
- package/lib/pro/skuDetailModal/index.d.ts +5 -0
- package/lib/pro/skuDetailModal/index.js +311 -0
- package/lib/pro/skuDetailModal/index.less +236 -0
- package/lib/pro/skuDetailModal/locales.d.ts +48 -0
- package/lib/pro/skuDetailModal/locales.js +71 -0
- package/lib/pro/skuDetailModal/types.d.ts +347 -0
- package/lib/pro/skuDetailModal/types.js +17 -0
- package/lowcode/client-card/fragments/cardStyle.ts +63 -0
- package/lowcode/client-card/fragments/nameStyle.ts +34 -0
- package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
- package/lowcode/client-card/fragments/tagConfig.ts +88 -0
- package/lowcode/client-card/meta.ts +337 -0
- package/lowcode/comprehensive-search/meta.ts +261 -0
- package/package.json +26 -26
@@ -41,6 +41,7 @@ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext")
|
|
41
41
|
var import_ahooks = require("ahooks");
|
42
42
|
var import_serve = require("./serve");
|
43
43
|
var import_Cart = require("../Cart");
|
44
|
+
var import_utils = require("../../appointmentBooking/utils");
|
44
45
|
var defaultState = {};
|
45
46
|
var CheckoutContext = (0, import_react.createContext)(
|
46
47
|
void 0
|
@@ -54,6 +55,7 @@ var CheckoutProvider = ({
|
|
54
55
|
const { updateDisabledCartItem } = (0, import_Cart.useCart)();
|
55
56
|
const checkoutCallback = (0, import_react.useRef)(null);
|
56
57
|
const checkRef = (0, import_react.useRef)(null);
|
58
|
+
const payRef = (0, import_react.useRef)(null);
|
57
59
|
const checkBeforeBooking = (0, import_ahooks.useRequest)(import_serve.checkBeforeBookingApi, {
|
58
60
|
manual: true,
|
59
61
|
onSuccess: (res) => {
|
@@ -76,6 +78,17 @@ var CheckoutProvider = ({
|
|
76
78
|
checkoutCallback.current({ success: false, err });
|
77
79
|
}
|
78
80
|
});
|
81
|
+
const freePay = (0, import_ahooks.useRequest)(import_serve.freePayApi, {
|
82
|
+
manual: true,
|
83
|
+
onSuccess: (res) => {
|
84
|
+
var _a, _b;
|
85
|
+
if (res == null ? void 0 : res.status) {
|
86
|
+
goPaymentFinish((_a = payRef.current) == null ? void 0 : _a.order_id, (_b = payRef.current) == null ? void 0 : _b.total_amount);
|
87
|
+
} else {
|
88
|
+
(0, import_utils.Toast)(res == null ? void 0 : res.message);
|
89
|
+
}
|
90
|
+
}
|
91
|
+
});
|
79
92
|
const onCheckBeforeBooking = (data2) => {
|
80
93
|
return new Promise((resolve) => {
|
81
94
|
checkRef.current = (res) => {
|
@@ -94,21 +107,40 @@ var CheckoutProvider = ({
|
|
94
107
|
createBooking.runAsync(data2);
|
95
108
|
});
|
96
109
|
};
|
110
|
+
const goPaymentFinish = (order_id, amount) => {
|
111
|
+
var _a;
|
112
|
+
const url = `/payment-finish/success?order_id=${order_id}&amount=${Number(
|
113
|
+
amount
|
114
|
+
)}`;
|
115
|
+
(_a = utils == null ? void 0 : utils.history) == null ? void 0 : _a.replace(url);
|
116
|
+
};
|
97
117
|
const onPay = (payProps) => {
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
118
|
+
payRef.current = payProps;
|
119
|
+
const { is_deposit, deposit_amount, total_amount } = payProps;
|
120
|
+
const _total = is_deposit ? deposit_amount || 0 : total_amount || 0;
|
121
|
+
if (_total > 0) {
|
122
|
+
utils.action({
|
123
|
+
type: "pisell1.payment",
|
124
|
+
data: { ...payProps, total_amount: _total },
|
125
|
+
callback: (e) => {
|
126
|
+
checkoutCallback.current && checkoutCallback.current(e);
|
127
|
+
}
|
128
|
+
});
|
129
|
+
} else {
|
130
|
+
if (is_deposit) {
|
131
|
+
goPaymentFinish(payProps.order_id, _total);
|
132
|
+
return;
|
103
133
|
}
|
104
|
-
|
134
|
+
freePay.runAsync(payProps.order_id);
|
135
|
+
}
|
105
136
|
};
|
106
137
|
const contextValue = {
|
107
138
|
onCheckBeforeBooking,
|
108
139
|
onCheckout,
|
109
140
|
onPay,
|
110
141
|
createBooking,
|
111
|
-
checkBeforeBooking
|
142
|
+
checkBeforeBooking,
|
143
|
+
freePay
|
112
144
|
};
|
113
145
|
return /* @__PURE__ */ import_react.default.createElement(CheckoutContext.Provider, { value: contextValue }, children);
|
114
146
|
};
|
@@ -1,2 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* @title: 下单前置校验接口
|
3
|
+
* @param {any} data
|
4
|
+
*/
|
1
5
|
export declare const checkBeforeBookingApi: (data: any) => Promise<any>;
|
6
|
+
/**
|
7
|
+
* @title: 创建订单
|
8
|
+
* @param {any} data
|
9
|
+
*/
|
2
10
|
export declare const createBookingApi: (data: any) => Promise<any>;
|
11
|
+
/**
|
12
|
+
* @title: 免费支付
|
13
|
+
* @param {string} orderId
|
14
|
+
*/
|
15
|
+
export declare const freePayApi: (orderId: string) => Promise<any>;
|
@@ -20,7 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
20
20
|
var serve_exports = {};
|
21
21
|
__export(serve_exports, {
|
22
22
|
checkBeforeBookingApi: () => checkBeforeBookingApi,
|
23
|
-
createBookingApi: () => createBookingApi
|
23
|
+
createBookingApi: () => createBookingApi,
|
24
|
+
freePayApi: () => freePayApi
|
24
25
|
});
|
25
26
|
module.exports = __toCommonJS(serve_exports);
|
26
27
|
var import_utils = require("../../../utils");
|
@@ -30,8 +31,12 @@ var checkBeforeBookingApi = (data) => {
|
|
30
31
|
var createBookingApi = (data) => {
|
31
32
|
return import_utils.request.getRequest().post("/h5/eventbookingv2/order", data);
|
32
33
|
};
|
34
|
+
var freePayApi = (orderId) => {
|
35
|
+
return import_utils.request.getRequest().post(`/h5/pay/order/free-pay/${orderId}`, {});
|
36
|
+
};
|
33
37
|
// Annotate the CommonJS export names for ESM import in node:
|
34
38
|
0 && (module.exports = {
|
35
39
|
checkBeforeBookingApi,
|
36
|
-
createBookingApi
|
40
|
+
createBookingApi,
|
41
|
+
freePayApi
|
37
42
|
});
|
@@ -24,7 +24,13 @@ export declare const formatProductBundle: (bundle: any) => any;
|
|
24
24
|
* @Author: xiangfeng.xue
|
25
25
|
* @Date: 2025-01-21 17:57
|
26
26
|
*/
|
27
|
-
export declare const formatValues: (
|
27
|
+
export declare const formatValues: (params: {
|
28
|
+
state: any;
|
29
|
+
platform: 'h5' | 'pc';
|
30
|
+
excludeDisabled?: boolean;
|
31
|
+
extra?: Record<string, any>;
|
32
|
+
otherValue?: Record<string, any>;
|
33
|
+
}) => any;
|
28
34
|
/**
|
29
35
|
* @title: 获取拉开表单弹窗参数
|
30
36
|
* @param state
|
@@ -61,24 +61,29 @@ var formatBookings = (list) => {
|
|
61
61
|
});
|
62
62
|
return bookings;
|
63
63
|
};
|
64
|
-
var formatValues = (
|
64
|
+
var formatValues = (params) => {
|
65
65
|
var _a, _b;
|
66
|
+
const { state, otherValue, platform, excludeDisabled, extra } = params;
|
66
67
|
let values = {
|
67
68
|
type: "event_booking_v2",
|
68
|
-
platform: "H5",
|
69
|
+
platform: platform === "pc" ? "PC" : "H5",
|
69
70
|
sales_channel: "my_pisel",
|
70
71
|
order_sales_channel: "online_store",
|
71
72
|
bookings: [],
|
72
73
|
shop_note: "",
|
73
74
|
schedule_date: "",
|
75
|
+
...extra || {},
|
74
76
|
...otherValue || {}
|
75
77
|
};
|
78
|
+
console.log("values", values);
|
76
79
|
let data = [];
|
77
80
|
if (excludeDisabled) {
|
78
81
|
data = (_b = (_a = state.cartData.cartItems) == null ? void 0 : _a.filter) == null ? void 0 : _b.call(_a, (v) => v.disabled !== true);
|
79
82
|
} else {
|
80
83
|
data = state.cartData.cartItems;
|
81
84
|
}
|
85
|
+
const is_deposit = data.find((v) => v.deposit) ? 1 : 0;
|
86
|
+
values.is_deposit = is_deposit;
|
82
87
|
values.bookings = formatBookings(data);
|
83
88
|
return values;
|
84
89
|
};
|
@@ -14,6 +14,7 @@ interface EventDetailContextType {
|
|
14
14
|
currentBookingOption: any;
|
15
15
|
selectEventDetailProductDetail: (productDetail: any) => void;
|
16
16
|
checkBeforeSelectEventDetail: () => boolean;
|
17
|
+
getProductDetailRequest: any;
|
17
18
|
}
|
18
19
|
interface EventDetailProviderProps {
|
19
20
|
children: React.ReactNode;
|
@@ -196,20 +196,44 @@ var EventDetailProvider = ({
|
|
196
196
|
}
|
197
197
|
}
|
198
198
|
);
|
199
|
+
const getProductDetailRequest = (0, import_ahooks.useRequest)(import_serve.getProductDetailApi, {
|
200
|
+
manual: true,
|
201
|
+
loadingDelay: 200
|
202
|
+
});
|
199
203
|
const selectEventDetailBookingOptions = (id) => {
|
200
|
-
var _a;
|
204
|
+
var _a, _b, _c;
|
201
205
|
const { introduction, bookingOptions } = detailRef.current || {};
|
202
206
|
const option = (_a = bookingOptions == null ? void 0 : bookingOptions.filter((v) => v.value === id)) == null ? void 0 : _a[0];
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
207
|
+
const setSelectedData = (data) => {
|
208
|
+
_setDetail({
|
209
|
+
introduction: {
|
210
|
+
...introduction,
|
211
|
+
price: data == null ? void 0 : data.price,
|
212
|
+
origin_price: data == null ? void 0 : data.original_price
|
213
|
+
},
|
214
|
+
selectedProduct: data
|
215
|
+
// 选中的活动关联的商品
|
216
|
+
});
|
217
|
+
_setCurrentBookingOption(id);
|
218
|
+
};
|
219
|
+
if (((_b = option == null ? void 0 : option._originData) == null ? void 0 : _b.is_eject) === 0) {
|
220
|
+
getProductDetailRequest.runAsync(id, {
|
221
|
+
open_deposit: 1,
|
222
|
+
front_end_cache_id: ((_c = introduction == null ? void 0 : introduction._originData) == null ? void 0 : _c.id) + "_" + id
|
223
|
+
}).then((res) => {
|
224
|
+
var _a2;
|
225
|
+
const custom_deposit_data = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.custom_deposit_data;
|
226
|
+
const newOption = { ...option };
|
227
|
+
if (custom_deposit_data && newOption._originData) {
|
228
|
+
newOption._originData.custom_deposit_data = custom_deposit_data;
|
229
|
+
}
|
230
|
+
setSelectedData(newOption);
|
231
|
+
}).catch(() => {
|
232
|
+
setSelectedData(option);
|
233
|
+
});
|
234
|
+
} else {
|
235
|
+
setSelectedData(option);
|
236
|
+
}
|
213
237
|
};
|
214
238
|
const selectEventDetailProductDetail = (productDetail) => {
|
215
239
|
_setDetail({ productDetail });
|
@@ -233,7 +257,8 @@ var EventDetailProvider = ({
|
|
233
257
|
getEventDetailSelectDate,
|
234
258
|
currentBookingOption,
|
235
259
|
selectEventDetailProductDetail,
|
236
|
-
checkBeforeSelectEventDetail
|
260
|
+
checkBeforeSelectEventDetail,
|
261
|
+
getProductDetailRequest
|
237
262
|
};
|
238
263
|
return /* @__PURE__ */ import_react.default.createElement(EventDetailContext.Provider, { value: contextValue }, children);
|
239
264
|
};
|
@@ -37,3 +37,13 @@ export declare const getProductPrice: (params: {
|
|
37
37
|
customer_id: number;
|
38
38
|
schedule_date?: string;
|
39
39
|
}) => Promise<any>;
|
40
|
+
/**
|
41
|
+
* 获取商品详情
|
42
|
+
* @param id 商品id
|
43
|
+
* @param params 参数
|
44
|
+
* @returns
|
45
|
+
*/
|
46
|
+
export declare const getProductDetailApi: (id: number, params: {
|
47
|
+
open_deposit?: string | number;
|
48
|
+
front_end_cache_id?: string;
|
49
|
+
}) => Promise<any>;
|
@@ -24,6 +24,7 @@ __export(serve_exports, {
|
|
24
24
|
getEventDetailSelectDateApi: () => getEventDetailSelectDateApi,
|
25
25
|
getEventDetailTeacherApi: () => getEventDetailTeacherApi,
|
26
26
|
getEventListApi: () => getEventListApi,
|
27
|
+
getProductDetailApi: () => getProductDetailApi,
|
27
28
|
getProductPrice: () => getProductPrice
|
28
29
|
});
|
29
30
|
module.exports = __toCommonJS(serve_exports);
|
@@ -46,6 +47,11 @@ var getEventDetailSelectDateApi = (id, params) => {
|
|
46
47
|
});
|
47
48
|
};
|
48
49
|
var getProductPrice = async (params) => import_utils.request.getRequest().post(`/h5/product/query/price`, params);
|
50
|
+
var getProductDetailApi = async (id, params) => {
|
51
|
+
return import_utils.request.getRequest().get(`/h5/product/standard/show/${id}`, params, {
|
52
|
+
useCache: true
|
53
|
+
});
|
54
|
+
};
|
49
55
|
// Annotate the CommonJS export names for ESM import in node:
|
50
56
|
0 && (module.exports = {
|
51
57
|
getEventDetailBookingOptionsApi,
|
@@ -53,5 +59,6 @@ var getProductPrice = async (params) => import_utils.request.getRequest().post(`
|
|
53
59
|
getEventDetailSelectDateApi,
|
54
60
|
getEventDetailTeacherApi,
|
55
61
|
getEventListApi,
|
62
|
+
getProductDetailApi,
|
56
63
|
getProductPrice
|
57
64
|
});
|
@@ -7,6 +7,16 @@ interface SummaryContextType {
|
|
7
7
|
taxTitle?: string;
|
8
8
|
totalTaxFee?: string;
|
9
9
|
isPriceIncludeTax?: 0 | 1;
|
10
|
+
deposit?: {
|
11
|
+
total: string;
|
12
|
+
protocols: any[];
|
13
|
+
hasDeposit: boolean;
|
14
|
+
};
|
15
|
+
isAgreeDepositPolicy: boolean;
|
16
|
+
setIsAgreeDepositPolicy: (value: boolean) => void;
|
17
|
+
getDepositProtocol: (params: {
|
18
|
+
id: string;
|
19
|
+
}) => Promise<any>;
|
10
20
|
}
|
11
21
|
interface SummaryProviderProps {
|
12
22
|
children: React.ReactNode;
|
@@ -39,6 +39,7 @@ var import_react = __toESM(require("react"));
|
|
39
39
|
var import_Cart = require("../Cart");
|
40
40
|
var import_utils = require("./utils");
|
41
41
|
var import_Init = require("../Init");
|
42
|
+
var import_serve = require("./serve");
|
42
43
|
var defaultState = {};
|
43
44
|
var SummaryContext = (0, import_react.createContext)(
|
44
45
|
void 0
|
@@ -48,6 +49,7 @@ var SummaryProvider = ({
|
|
48
49
|
}) => {
|
49
50
|
const { cartData } = (0, import_Cart.useCart)();
|
50
51
|
const { initData } = (0, import_Init.useInit)();
|
52
|
+
const [isAgreeDepositPolicy, setIsAgreeDepositPolicy] = (0, import_react.useState)(false);
|
51
53
|
const summaryData = (0, import_react.useMemo)(() => {
|
52
54
|
return (0, import_utils.calculatePriceDetails)(
|
53
55
|
(initData == null ? void 0 : initData.shop) || {},
|
@@ -61,7 +63,11 @@ var SummaryProvider = ({
|
|
61
63
|
total: summaryData.total,
|
62
64
|
taxTitle: summaryData.taxTitle,
|
63
65
|
totalTaxFee: summaryData.totalTaxFee,
|
64
|
-
isPriceIncludeTax: summaryData.isPriceIncludeTax
|
66
|
+
isPriceIncludeTax: summaryData.isPriceIncludeTax,
|
67
|
+
deposit: summaryData.deposit,
|
68
|
+
isAgreeDepositPolicy,
|
69
|
+
setIsAgreeDepositPolicy,
|
70
|
+
getDepositProtocol: import_serve.getDepositProtocolApi
|
65
71
|
};
|
66
72
|
return /* @__PURE__ */ import_react.default.createElement(SummaryContext.Provider, { value: contextValue }, children);
|
67
73
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const getDepositProtocolApi: (id: string) => Promise<any>;
|
@@ -0,0 +1,32 @@
|
|
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/Sales/Summary/serve.ts
|
20
|
+
var serve_exports = {};
|
21
|
+
__export(serve_exports, {
|
22
|
+
getDepositProtocolApi: () => getDepositProtocolApi
|
23
|
+
});
|
24
|
+
module.exports = __toCommonJS(serve_exports);
|
25
|
+
var import_utils = require("../../../utils");
|
26
|
+
var getDepositProtocolApi = (id) => {
|
27
|
+
return import_utils.request.getRequest().get(`/h5/shop-policy/${id}`, {});
|
28
|
+
};
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
30
|
+
0 && (module.exports = {
|
31
|
+
getDepositProtocolApi
|
32
|
+
});
|
@@ -10,6 +10,11 @@ interface PriceDetail {
|
|
10
10
|
taxTitle?: string;
|
11
11
|
totalTaxFee?: string;
|
12
12
|
isPriceIncludeTax?: 0 | 1;
|
13
|
+
deposit?: {
|
14
|
+
total: string;
|
15
|
+
protocols: any[];
|
16
|
+
hasDeposit: boolean;
|
17
|
+
};
|
13
18
|
}
|
14
19
|
/**
|
15
20
|
* 计算商品小计(不含其他费用)
|
@@ -25,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
|
|
25
30
|
* @return {*}
|
26
31
|
* @Author: xiangfeng.xue
|
27
32
|
*/
|
28
|
-
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00"
|
33
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
|
29
34
|
/**
|
30
35
|
* 计算所有价格明细
|
31
36
|
* @param items - 购物车商品数组
|
@@ -33,4 +38,14 @@ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.0
|
|
33
38
|
* @returns 价格明细对象
|
34
39
|
*/
|
35
40
|
export declare const calculatePriceDetails: (shopInfo: any, items: CartItem[]) => PriceDetail;
|
41
|
+
/**
|
42
|
+
* @title: 计算定金
|
43
|
+
* @param items - 购物车商品数组
|
44
|
+
* @returns 定金字符串,保留2位小数
|
45
|
+
*/
|
46
|
+
export declare const calculateDeposit: (items: CartItem[]) => {
|
47
|
+
total: string;
|
48
|
+
protocols: any[];
|
49
|
+
hasDeposit: never;
|
50
|
+
} | undefined;
|
36
51
|
export {};
|
@@ -29,6 +29,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
29
29
|
// src/components/Sales/Summary/utils.ts
|
30
30
|
var utils_exports = {};
|
31
31
|
__export(utils_exports, {
|
32
|
+
calculateDeposit: () => calculateDeposit,
|
32
33
|
calculatePriceDetails: () => calculatePriceDetails,
|
33
34
|
calculateSubtotal: () => calculateSubtotal,
|
34
35
|
calculateTaxFee: () => calculateTaxFee
|
@@ -65,16 +66,44 @@ var calculatePriceDetails = (shopInfo, items) => {
|
|
65
66
|
const totalTaxFee = new import_decimal.default(calculateTaxFee(shopInfo, items));
|
66
67
|
console.log("totalTaxFee", totalTaxFee.toFixed(2));
|
67
68
|
const total = (shopInfo == null ? void 0 : shopInfo.is_price_include_tax) ? subtotal : subtotal.plus(totalTaxFee);
|
69
|
+
const deposit = calculateDeposit(items);
|
68
70
|
return {
|
69
71
|
subtotal: subtotal.toFixed(2),
|
70
72
|
total: total.toFixed(2),
|
71
73
|
taxTitle: shopInfo == null ? void 0 : shopInfo.tax_title,
|
72
74
|
totalTaxFee: totalTaxFee.toFixed(2),
|
73
|
-
isPriceIncludeTax: shopInfo == null ? void 0 : shopInfo.is_price_include_tax
|
75
|
+
isPriceIncludeTax: shopInfo == null ? void 0 : shopInfo.is_price_include_tax,
|
76
|
+
deposit
|
74
77
|
};
|
75
78
|
};
|
79
|
+
var calculateDeposit = (items) => {
|
80
|
+
if (!(items == null ? void 0 : items.length)) {
|
81
|
+
return void 0;
|
82
|
+
}
|
83
|
+
const protocols = [];
|
84
|
+
let hasDeposit = false;
|
85
|
+
const total = items.reduce((sum, item) => {
|
86
|
+
var _a, _b, _c;
|
87
|
+
if (item == null ? void 0 : item.deposit) {
|
88
|
+
hasDeposit = true;
|
89
|
+
const cartItemTotalPrice = new import_decimal.default(((_a = item == null ? void 0 : item.deposit) == null ? void 0 : _a.total) || 0);
|
90
|
+
(_c = (_b = item == null ? void 0 : item.deposit) == null ? void 0 : _b.protocols) == null ? void 0 : _c.forEach((protocol) => {
|
91
|
+
if (protocols.findIndex((p) => p.id === protocol.id) === -1) {
|
92
|
+
protocols.push(protocol);
|
93
|
+
}
|
94
|
+
});
|
95
|
+
return sum.plus(cartItemTotalPrice);
|
96
|
+
}
|
97
|
+
return sum;
|
98
|
+
}, new import_decimal.default(0));
|
99
|
+
if (hasDeposit) {
|
100
|
+
return { total: total.toFixed(2), protocols, hasDeposit };
|
101
|
+
}
|
102
|
+
return void 0;
|
103
|
+
};
|
76
104
|
// Annotate the CommonJS export names for ESM import in node:
|
77
105
|
0 && (module.exports = {
|
106
|
+
calculateDeposit,
|
78
107
|
calculatePriceDetails,
|
79
108
|
calculateSubtotal,
|
80
109
|
calculateTaxFee
|
@@ -98,6 +98,7 @@ var CartItem = ({ onNext }) => {
|
|
98
98
|
...resourceOtherParams,
|
99
99
|
errorList: null
|
100
100
|
});
|
101
|
+
val.like_status = "like";
|
101
102
|
appointmentBooking.updateCart({
|
102
103
|
_id: e == null ? void 0 : e._id,
|
103
104
|
resources: (0, import_utils2.updateCartResources)(e, val, currentSelectedResources)
|
@@ -25,7 +25,6 @@ __export(utils_exports, {
|
|
25
25
|
handleAddHolder: () => handleAddHolder
|
26
26
|
});
|
27
27
|
module.exports = __toCommonJS(utils_exports);
|
28
|
-
var import_utils = require("../../utils");
|
29
28
|
var checkLogin = async ({
|
30
29
|
isLogin,
|
31
30
|
openLoginModal,
|
@@ -38,16 +37,7 @@ var checkLogin = async ({
|
|
38
37
|
if (!isLogin) {
|
39
38
|
openLoginModal({
|
40
39
|
callback: (status) => {
|
41
|
-
var _a;
|
42
40
|
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
41
|
}
|
52
42
|
}
|
53
43
|
});
|
@@ -46,10 +46,14 @@ var import_Form = __toESM(require("../Form"));
|
|
46
46
|
var import_ConfirmInformation = __toESM(require("../ConfirmInformation"));
|
47
47
|
var import_context = require("../../context");
|
48
48
|
var import_PolicyModal = __toESM(require("../../deposit/components/PolicyModal"));
|
49
|
+
var import_utils2 = require("../Resource/utils");
|
49
50
|
var import_hooks = require("../../hooks");
|
50
51
|
var import_index = require("./index.less");
|
52
|
+
var import_useComponents = __toESM(require("../../../../hooks/useComponents"));
|
53
|
+
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
54
|
+
var import_utils3 = require("../../utils");
|
51
55
|
var Layout = () => {
|
52
|
-
var _a, _b, _c, _d, _e;
|
56
|
+
var _a, _b, _c, _d, _e, _f;
|
53
57
|
const stepRef = (0, import_react.useRef)();
|
54
58
|
const {
|
55
59
|
currentStep,
|
@@ -68,9 +72,37 @@ var Layout = () => {
|
|
68
72
|
const { getHolders } = (0, import_hooks.useAppointmentBookingAccount)();
|
69
73
|
const { removeStep } = (0, import_hooks.useAppointmentBookingStep)();
|
70
74
|
const { shopDiscount } = (0, import_hooks.useShopDiscount)();
|
75
|
+
const { customPageData } = (_a = (0, import_useEngineContext.default)().engine) == null ? void 0 : _a.props;
|
76
|
+
const [CustomComponent] = (0, import_useComponents.default)({
|
77
|
+
components: ["CustomComponent"]
|
78
|
+
});
|
79
|
+
console.log("CustomComponent:", CustomComponent, typeof CustomComponent, CustomComponent == null ? void 0 : CustomComponent.$$typeof);
|
71
80
|
(0, import_hooks.useAppointmentBookingCart)();
|
72
81
|
(0, import_hooks.useAppointmentBookingStep)();
|
73
82
|
const [params, setParams] = (0, import_react.useState)({});
|
83
|
+
const utils = (0, import_hooks.contextUtils)();
|
84
|
+
const context = (0, import_useEngineContext.default)();
|
85
|
+
const { pubsub } = context.appHelper.utils;
|
86
|
+
(0, import_react.useEffect)(() => {
|
87
|
+
const handleLoginSuccess = async () => {
|
88
|
+
var _a2;
|
89
|
+
if (!isFormSubject) {
|
90
|
+
const user = JSON.parse(((_a2 = utils == null ? void 0 : utils.storage) == null ? void 0 : _a2.get("customer")) || "{}");
|
91
|
+
const currentUser = (0, import_utils3.formatCustomer)(user);
|
92
|
+
const accountLists = await appointmentBooking.getAccounts();
|
93
|
+
const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
|
94
|
+
appointmentBooking.setLoginAccount(meAccount == null ? void 0 : meAccount.id, currentUser);
|
95
|
+
} else {
|
96
|
+
if (!isRetailTemplate) {
|
97
|
+
getHolders();
|
98
|
+
}
|
99
|
+
}
|
100
|
+
};
|
101
|
+
pubsub.subscribe("pisell1.login.success", handleLoginSuccess);
|
102
|
+
return () => {
|
103
|
+
pubsub.unsubscribe("pisell1.login.success");
|
104
|
+
};
|
105
|
+
}, []);
|
74
106
|
(0, import_react.useEffect)(() => {
|
75
107
|
appointmentBooking.removeStep("fill-form");
|
76
108
|
return () => {
|
@@ -115,6 +147,7 @@ var Layout = () => {
|
|
115
147
|
}
|
116
148
|
}, [isFormSubject, isLogin, isRetailTemplate]);
|
117
149
|
(0, import_react.useEffect)(() => {
|
150
|
+
var _a2;
|
118
151
|
if (!(currentStep == null ? void 0 : currentStep.step)) return;
|
119
152
|
setLoading(false);
|
120
153
|
setResourceOtherParams({
|
@@ -126,7 +159,10 @@ var Layout = () => {
|
|
126
159
|
top: 0,
|
127
160
|
behavior: "smooth"
|
128
161
|
});
|
129
|
-
|
162
|
+
if (((_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key) === "confirm-information") {
|
163
|
+
(0, import_utils2.scrollToFirstErrorCard)(".pisell-lowcode-product-card-error");
|
164
|
+
}
|
165
|
+
}, [(_b = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _b.key]);
|
130
166
|
const components = {
|
131
167
|
// 选择服务
|
132
168
|
"select-service": import_Services.default,
|
@@ -151,8 +187,14 @@ var Layout = () => {
|
|
151
187
|
} else {
|
152
188
|
Com2 = components[key];
|
153
189
|
}
|
154
|
-
|
155
|
-
|
190
|
+
if (key === "select-service") {
|
191
|
+
return /* @__PURE__ */ import_react.default.createElement(CustomComponent, { block: customPageData == null ? void 0 : customPageData.block, customComponents: {
|
192
|
+
product_list: /* @__PURE__ */ import_react.default.createElement(Com2, { onChange: setParams, params, ref: stepRef })
|
193
|
+
} });
|
194
|
+
} else {
|
195
|
+
return /* @__PURE__ */ import_react.default.createElement(Com2, { onChange: setParams, params, ref: stepRef });
|
196
|
+
}
|
197
|
+
}, [(_c = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _c.key]);
|
156
198
|
(0, import_react.useEffect)(() => {
|
157
199
|
var _a2, _b2;
|
158
200
|
if ((0, import_utils.isMobile)()) {
|
@@ -170,7 +212,7 @@ var Layout = () => {
|
|
170
212
|
content.style.overflowY = "auto";
|
171
213
|
}
|
172
214
|
}
|
173
|
-
}, [(
|
215
|
+
}, [(_d = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _d.key]);
|
174
216
|
const isShowCartCom = (0, import_react.useMemo)(() => {
|
175
217
|
var _a2;
|
176
218
|
const key = (_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key;
|
@@ -182,14 +224,18 @@ var Layout = () => {
|
|
182
224
|
var _a3, _b2;
|
183
225
|
return (_b2 = (_a3 = stepRef == null ? void 0 : stepRef.current) == null ? void 0 : _a3.next) == null ? void 0 : _b2.call(_a3);
|
184
226
|
} }));
|
185
|
-
}, [isDateSelectedFirst, (
|
227
|
+
}, [isDateSelectedFirst, (_e = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _e.key]);
|
186
228
|
const isFooter = (0, import_react.useMemo)(() => {
|
187
229
|
var _a2;
|
188
230
|
if (!(0, import_utils.isMobile)()) return false;
|
189
231
|
const key = (_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key;
|
190
232
|
if (isDateSelectedFirst && key === "select-date") return false;
|
191
233
|
return key !== "confirm-information";
|
192
|
-
}, [isDateSelectedFirst, (
|
234
|
+
}, [isDateSelectedFirst, (_f = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _f.key]);
|
235
|
+
const depositProtocolRequest = (id) => {
|
236
|
+
var _a2;
|
237
|
+
return (_a2 = appointmentBooking == null ? void 0 : appointmentBooking.getProtocol) == null ? void 0 : _a2.call(appointmentBooking, id);
|
238
|
+
};
|
193
239
|
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(
|
194
240
|
"div",
|
195
241
|
{
|
@@ -214,7 +260,8 @@ var Layout = () => {
|
|
214
260
|
onConfirm: () => closePolicy(true),
|
215
261
|
item: policyParams == null ? void 0 : policyParams.content,
|
216
262
|
onChange: () => setLoading(false),
|
217
|
-
isHideCheckout: false
|
263
|
+
isHideCheckout: false,
|
264
|
+
depositProtocolRequest
|
218
265
|
}
|
219
266
|
) : null);
|
220
267
|
};
|
@@ -1,3 +1,9 @@
|
|
1
1
|
import './index.less';
|
2
|
+
export declare const DepositContent: (props: {
|
3
|
+
isAgreeDepositPolicy: boolean;
|
4
|
+
setIsAgreeDepositPolicy: (value: boolean) => void;
|
5
|
+
deposit: any;
|
6
|
+
depositProtocolRequest?: any;
|
7
|
+
}) => JSX.Element;
|
2
8
|
declare const Deposit: () => JSX.Element;
|
3
9
|
export default Deposit;
|