@pisell/private-materials 6.1.6 → 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 +54 -2
- 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 +80 -2
- 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
@@ -43,6 +43,7 @@ var import_serve = require("../../../../../Sales/Event/serve");
|
|
43
43
|
var import_ahooks = require("ahooks");
|
44
44
|
var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngineContext"));
|
45
45
|
var import_index = require("./index.less");
|
46
|
+
var import_utils3 = require("../../../../../appointmentBooking/utils");
|
46
47
|
var ContinueButton = () => {
|
47
48
|
var _a, _b;
|
48
49
|
const { data } = (0, import_Sales.useSales)();
|
@@ -53,9 +54,11 @@ var ContinueButton = () => {
|
|
53
54
|
onCheckout,
|
54
55
|
createBooking,
|
55
56
|
onCheckBeforeBooking,
|
56
|
-
checkBeforeBooking
|
57
|
+
checkBeforeBooking,
|
58
|
+
freePay
|
57
59
|
} = (0, import_Sales.useCheckout)();
|
58
60
|
const { openLoginModal, isLogin } = (0, import_Sales.useCustomer)();
|
61
|
+
const { deposit, isAgreeDepositPolicy } = (0, import_Sales.useSummary)();
|
59
62
|
const [openCheckout, setOpenCheckout] = (0, import_react.useState)(false);
|
60
63
|
const [checkedNumber, setCheckedNumber] = (0, import_react.useState)(0);
|
61
64
|
const [openEmptyHolder, setOpenEmptyHolder] = (0, import_react.useState)(false);
|
@@ -68,19 +71,24 @@ var ContinueButton = () => {
|
|
68
71
|
type: "pisell1.goProductForm",
|
69
72
|
data: params,
|
70
73
|
callback: async (e) => {
|
71
|
-
var _a2;
|
74
|
+
var _a2, _b2, _c;
|
72
75
|
if ((e == null ? void 0 : e.type) === "close") {
|
73
76
|
return;
|
74
77
|
}
|
75
|
-
const value = (0, import_utils2.formatValues)(
|
76
|
-
|
78
|
+
const value = (0, import_utils2.formatValues)({
|
79
|
+
state: data,
|
80
|
+
platform: (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.constants) == null ? void 0 : _b2.platform,
|
81
|
+
excludeDisabled: false,
|
82
|
+
extra: {
|
83
|
+
relation_forms: e
|
84
|
+
}
|
77
85
|
});
|
78
86
|
const result = await onCheckout(value);
|
79
87
|
if (result == null ? void 0 : result.success) {
|
80
88
|
removeSessionStorage();
|
81
89
|
} else {
|
82
90
|
(0, import_materials.PisellToast)({
|
83
|
-
content: ((
|
91
|
+
content: ((_c = result == null ? void 0 : result.err) == null ? void 0 : _c.message) || ""
|
84
92
|
});
|
85
93
|
}
|
86
94
|
}
|
@@ -226,8 +234,16 @@ var ContinueButton = () => {
|
|
226
234
|
handleNextStep();
|
227
235
|
};
|
228
236
|
const handleContinue = async () => {
|
237
|
+
var _a2, _b2, _c;
|
229
238
|
if (isLastStep) {
|
230
|
-
const value = (0, import_utils2.formatValues)(
|
239
|
+
const value = (0, import_utils2.formatValues)({
|
240
|
+
state: data,
|
241
|
+
platform: (_b2 = (_a2 = context == null ? void 0 : context.appHelper) == null ? void 0 : _a2.constants) == null ? void 0 : _b2.platform
|
242
|
+
});
|
243
|
+
if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_c = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _c.length) > 0 && !isAgreeDepositPolicy) {
|
244
|
+
(0, import_utils3.Toast)(import_utils.locales.getText("pisell2.appointment.deposit.agree.policy"));
|
245
|
+
return;
|
246
|
+
}
|
231
247
|
const checkRes = await onCheckBeforeBooking(value);
|
232
248
|
if ((checkRes == null ? void 0 : checkRes.result) === false) {
|
233
249
|
setCheckedNumber(checkRes == null ? void 0 : checkRes.num);
|
@@ -263,8 +279,13 @@ var ContinueButton = () => {
|
|
263
279
|
}, [currentStepData == null ? void 0 : currentStepData.key]);
|
264
280
|
const confirmLoading = (0, import_react.useMemo)(() => {
|
265
281
|
if (!isLastStep) return false;
|
266
|
-
return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading);
|
267
|
-
}, [
|
282
|
+
return (createBooking == null ? void 0 : createBooking.loading) || (checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading) || (freePay == null ? void 0 : freePay.loading);
|
283
|
+
}, [
|
284
|
+
isLastStep,
|
285
|
+
createBooking == null ? void 0 : createBooking.loading,
|
286
|
+
checkBeforeBooking == null ? void 0 : checkBeforeBooking.loading,
|
287
|
+
freePay == null ? void 0 : freePay.loading
|
288
|
+
]);
|
268
289
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
269
290
|
import_materials.Button,
|
270
291
|
{
|
@@ -0,0 +1,55 @@
|
|
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/eventBooking/components/Provider/Cart/Deposit/index.tsx
|
30
|
+
var Deposit_exports = {};
|
31
|
+
__export(Deposit_exports, {
|
32
|
+
default: () => Deposit_default
|
33
|
+
});
|
34
|
+
module.exports = __toCommonJS(Deposit_exports);
|
35
|
+
var import_react = __toESM(require("react"));
|
36
|
+
var import_Sales = require("../../../../../Sales");
|
37
|
+
var import_Deposit = require("../../../../../appointmentBooking/components/Deposit");
|
38
|
+
var Deposit = () => {
|
39
|
+
const {
|
40
|
+
deposit,
|
41
|
+
isAgreeDepositPolicy,
|
42
|
+
setIsAgreeDepositPolicy,
|
43
|
+
getDepositProtocol
|
44
|
+
} = (0, import_Sales.useSummary)();
|
45
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
46
|
+
import_Deposit.DepositContent,
|
47
|
+
{
|
48
|
+
isAgreeDepositPolicy: !!isAgreeDepositPolicy,
|
49
|
+
setIsAgreeDepositPolicy,
|
50
|
+
deposit,
|
51
|
+
depositProtocolRequest: getDepositProtocol
|
52
|
+
}
|
53
|
+
);
|
54
|
+
};
|
55
|
+
var Deposit_default = Deposit;
|
@@ -40,8 +40,9 @@ var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngine
|
|
40
40
|
var import_index = require("./index.less");
|
41
41
|
var import_classnames = __toESM(require("classnames"));
|
42
42
|
var Total = ({ className, isFooter }) => {
|
43
|
-
var _a, _b, _c, _d, _e, _f;
|
44
|
-
const {
|
43
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
44
|
+
const { cartData } = (0, import_Sales.useCart)();
|
45
|
+
const { taxTitle, totalTaxFee, isPriceIncludeTax, total, deposit } = (0, import_Sales.useSummary)();
|
45
46
|
const context = (0, import_useEngineContext.default)();
|
46
47
|
console.log(
|
47
48
|
taxTitle,
|
@@ -49,8 +50,10 @@ var Total = ({ className, isFooter }) => {
|
|
49
50
|
totalTaxFee,
|
50
51
|
total,
|
51
52
|
(_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getSymbolic) == null ? void 0 : _c.call(_b),
|
53
|
+
deposit,
|
52
54
|
"wh97978"
|
53
55
|
);
|
56
|
+
const showDeposit = ((_d = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _d.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit);
|
54
57
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: `event-total-wrap ${className}` }, !isPriceIncludeTax && Number(totalTaxFee) > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "gst-wrap" }, /* @__PURE__ */ import_react.default.createElement("span", null, taxTitle, isFooter ? ": " : ""), /* @__PURE__ */ import_react.default.createElement(import_materials.PisellText.Amount, { value: totalTaxFee, showCurrencySymbol: true })) : null, /* @__PURE__ */ import_react.default.createElement(
|
55
58
|
"div",
|
56
59
|
{
|
@@ -58,16 +61,16 @@ var Total = ({ className, isFooter }) => {
|
|
58
61
|
[["total-gst-wrap"]]: !isPriceIncludeTax && Number(totalTaxFee) > 0
|
59
62
|
})
|
60
63
|
},
|
61
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "left" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.event.total"), isFooter ? ": " : ""), isFooter ? /* @__PURE__ */ import_react.default.createElement(
|
64
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "left" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", null, isFooter && showDeposit ? import_utils.locales.getText("pisell2.appointment.deposit") : import_utils.locales.getText("pisell2.event.total"), isFooter ? ": " : ""), isFooter ? /* @__PURE__ */ import_react.default.createElement(
|
62
65
|
import_materials.PisellText.Amount,
|
63
66
|
{
|
64
|
-
value: total,
|
67
|
+
value: ((_e = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _e.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? deposit == null ? void 0 : deposit.total : total,
|
65
68
|
showCurrencySymbol: true,
|
66
69
|
className: "event-amount"
|
67
70
|
}
|
68
71
|
) : null), isPriceIncludeTax && Number(totalTaxFee) > 0 ? /* @__PURE__ */ import_react.default.createElement("span", { className: "gst" }, import_utils.locales.getText("pisell2.event.total.gst")(
|
69
72
|
`${isFooter ? `${taxTitle}: ` : taxTitle}`,
|
70
|
-
`${(
|
73
|
+
`${(_h = (_g = (_f = context == null ? void 0 : context.appHelper) == null ? void 0 : _f.utils) == null ? void 0 : _g.getSymbolic) == null ? void 0 : _h.call(_g)}${totalTaxFee}`
|
71
74
|
)) : null),
|
72
75
|
!isFooter ? /* @__PURE__ */ import_react.default.createElement(
|
73
76
|
import_materials.PisellText.Amount,
|
@@ -39,8 +39,10 @@ var import_Sales = require("../../../../../Sales");
|
|
39
39
|
var import_SelectHolderModal = __toESM(require("../../SelectHolderModal"));
|
40
40
|
var import_ContinueButton = __toESM(require("../ContinueButton"));
|
41
41
|
var import_Total = __toESM(require("./Total"));
|
42
|
+
var import_Deposit = __toESM(require("../Deposit"));
|
42
43
|
var import_index = require("./index.less");
|
43
44
|
var CartItem = () => {
|
45
|
+
var _a;
|
44
46
|
const { open, holderData, selectedHolderIds } = (0, import_Sales.useHolder)();
|
45
47
|
const {
|
46
48
|
deleteCartItem,
|
@@ -48,7 +50,7 @@ var CartItem = () => {
|
|
48
50
|
cartData,
|
49
51
|
addNoteToCartItem
|
50
52
|
} = (0, import_Sales.useCart)();
|
51
|
-
const {
|
53
|
+
const { deposit } = (0, import_Sales.useSummary)();
|
52
54
|
const { isLastStep } = (0, import_Sales.useStep)();
|
53
55
|
const handleClickCard = (e, type, key) => {
|
54
56
|
if (type === "note") {
|
@@ -86,7 +88,7 @@ var CartItem = () => {
|
|
86
88
|
onChange: (e, type, key) => handleClickCard(e, type, key)
|
87
89
|
}
|
88
90
|
)),
|
89
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
|
91
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "event-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), ((_a = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _a.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? /* @__PURE__ */ import_react.default.createElement(import_Deposit.default, null) : null, /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
|
90
92
|
), /* @__PURE__ */ import_react.default.createElement(import_SelectHolderModal.default, { open }));
|
91
93
|
};
|
92
94
|
var Item_default = CartItem;
|
@@ -55,7 +55,8 @@ var BookingDetailModal = (props) => {
|
|
55
55
|
onCloseEventDetail,
|
56
56
|
onSelectEventDetail,
|
57
57
|
selectEventDetailProductDetail,
|
58
|
-
checkBeforeSelectEventDetail
|
58
|
+
checkBeforeSelectEventDetail,
|
59
|
+
getProductDetailRequest
|
59
60
|
} = (0, import_Sales.useEventDetail)();
|
60
61
|
const { addToCart, checkBeforeAddToCart, checkBeforeAddToCartResquest } = (0, import_Sales.useCart)();
|
61
62
|
const { initData } = (0, import_Sales.useInit)();
|
@@ -239,7 +240,7 @@ var BookingDetailModal = (props) => {
|
|
239
240
|
utils == null ? void 0 : utils.action({
|
240
241
|
type: "pisell1.productDetail",
|
241
242
|
data: {
|
242
|
-
detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {} },
|
243
|
+
detail: { ...(bookingOption == null ? void 0 : bookingOption._originData) || {}, open_deposit: 1 },
|
243
244
|
isOS: false
|
244
245
|
},
|
245
246
|
callback: (data) => {
|
@@ -294,7 +295,7 @@ var BookingDetailModal = (props) => {
|
|
294
295
|
onOk: handleOk,
|
295
296
|
width: (0, import_utils.isMobile)() ? "100%" : 600,
|
296
297
|
okButtonProps: {
|
297
|
-
loading: checkBeforeAddToCartResquest == null ? void 0 : checkBeforeAddToCartResquest.loading
|
298
|
+
loading: (getProductDetailRequest == null ? void 0 : getProductDetailRequest.loading) || (checkBeforeAddToCartResquest == null ? void 0 : checkBeforeAddToCartResquest.loading)
|
298
299
|
}
|
299
300
|
},
|
300
301
|
content()
|
@@ -66,6 +66,17 @@ var Content = () => {
|
|
66
66
|
}
|
67
67
|
getResourceList.run(params);
|
68
68
|
}, []);
|
69
|
+
(0, import_react.useEffect)(() => {
|
70
|
+
const setRealVH = () => {
|
71
|
+
const vh = window.innerHeight * 0.01;
|
72
|
+
document.documentElement.style.setProperty("--vh", `${vh}px`);
|
73
|
+
};
|
74
|
+
setRealVH();
|
75
|
+
window.addEventListener("resize", setRealVH);
|
76
|
+
return () => {
|
77
|
+
window.removeEventListener("resize", setRealVH);
|
78
|
+
};
|
79
|
+
}, []);
|
69
80
|
return /* @__PURE__ */ import_react.default.createElement(
|
70
81
|
"div",
|
71
82
|
{
|
@@ -71,6 +71,14 @@ declare const _default: {
|
|
71
71
|
'pisell2.event.capacity.limit.reached.tip': string;
|
72
72
|
'pisell2.event.schedule.item.expand': string;
|
73
73
|
'pisell2.event.schedule.item.collapse': string;
|
74
|
+
'pisell2.appointment.deposit': string;
|
75
|
+
'pisell2.appointment.deposit.agreed': string;
|
76
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
77
|
+
'pisell2.appointment.deposit.and': string;
|
78
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
79
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
80
|
+
'pisell2.appointment.deposit.close': string;
|
81
|
+
'pisell2.appointment.booking.empty.data': string;
|
74
82
|
};
|
75
83
|
'zh-CN': {
|
76
84
|
'pisell2.event.calendar.limit.unavailable': string;
|
@@ -144,6 +152,14 @@ declare const _default: {
|
|
144
152
|
'pisell2.event.capacity.limit.reached.tip': string;
|
145
153
|
'pisell2.event.schedule.item.expand': string;
|
146
154
|
'pisell2.event.schedule.item.collapse': string;
|
155
|
+
'pisell2.appointment.deposit': string;
|
156
|
+
'pisell2.appointment.deposit.agreed': string;
|
157
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
158
|
+
'pisell2.appointment.deposit.and': string;
|
159
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
160
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
161
|
+
'pisell2.appointment.deposit.close': string;
|
162
|
+
'pisell2.appointment.booking.empty.data': string;
|
147
163
|
};
|
148
164
|
'zh-HK': {
|
149
165
|
'pisell2.event.calendar.limit.unavailable': string;
|
@@ -217,6 +233,14 @@ declare const _default: {
|
|
217
233
|
'pisell2.event.capacity.limit.reached.tip': string;
|
218
234
|
'pisell2.event.schedule.item.expand': string;
|
219
235
|
'pisell2.event.schedule.item.collapse': string;
|
236
|
+
'pisell2.appointment.deposit': string;
|
237
|
+
'pisell2.appointment.deposit.agreed': string;
|
238
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
239
|
+
'pisell2.appointment.deposit.and': string;
|
240
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
241
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
242
|
+
'pisell2.appointment.deposit.close': string;
|
243
|
+
'pisell2.appointment.booking.empty.data': string;
|
220
244
|
};
|
221
245
|
};
|
222
246
|
export default _default;
|
@@ -94,7 +94,15 @@ var locales_default = {
|
|
94
94
|
"pisell2.event.capacity.limit.reached.title": "Capacity limit reached",
|
95
95
|
"pisell2.event.capacity.limit.reached.tip": "One or more events in your cart are no longer available due to full capacity. Please remove unavailable events from your cart to complete checkout.",
|
96
96
|
"pisell2.event.schedule.item.expand": "See more",
|
97
|
-
"pisell2.event.schedule.item.collapse": "See less"
|
97
|
+
"pisell2.event.schedule.item.collapse": "See less",
|
98
|
+
"pisell2.appointment.deposit": "Deposit",
|
99
|
+
"pisell2.appointment.deposit.agreed": "I have read and agree to the ",
|
100
|
+
"pisell2.appointment.deposit.agree.policy": "You need to agree the policy to proceed",
|
101
|
+
"pisell2.appointment.deposit.and": " & ",
|
102
|
+
"pisell2.appointment.deposit.amount.tip1": " needs to be paid as deposit.",
|
103
|
+
"pisell2.appointment.deposit.amount.tip2": " ",
|
104
|
+
"pisell2.appointment.deposit.close": "Close",
|
105
|
+
"pisell2.appointment.booking.empty.data": "No data"
|
98
106
|
},
|
99
107
|
"zh-CN": {
|
100
108
|
"pisell2.event.calendar.limit.unavailable": "不可预约",
|
@@ -167,7 +175,15 @@ var locales_default = {
|
|
167
175
|
"pisell2.event.capacity.limit.reached.title": "活动名额已满",
|
168
176
|
"pisell2.event.capacity.limit.reached.tip": "购物车中有一个或多个活动已达预约上限,请将已满额的活动从购物车中移除后再完成结算。",
|
169
177
|
"pisell2.event.schedule.item.expand": "查看更多",
|
170
|
-
"pisell2.event.schedule.item.collapse": "收起"
|
178
|
+
"pisell2.event.schedule.item.collapse": "收起",
|
179
|
+
"pisell2.appointment.deposit": "定金",
|
180
|
+
"pisell2.appointment.deposit.agreed": "我已阅读并同意 ",
|
181
|
+
"pisell2.appointment.deposit.agree.policy": "您需要同意协议才能继续",
|
182
|
+
"pisell2.appointment.deposit.and": " 和 ",
|
183
|
+
"pisell2.appointment.deposit.amount.tip1": "请支付 ",
|
184
|
+
"pisell2.appointment.deposit.amount.tip2": " 定金。",
|
185
|
+
"pisell2.appointment.deposit.close": "关闭",
|
186
|
+
"pisell2.appointment.booking.empty.data": "暂无数据"
|
171
187
|
},
|
172
188
|
"zh-HK": {
|
173
189
|
"pisell2.event.calendar.limit.unavailable": "不可預約",
|
@@ -240,6 +256,14 @@ var locales_default = {
|
|
240
256
|
"pisell2.event.capacity.limit.reached.title": "活動名額已滿",
|
241
257
|
"pisell2.event.capacity.limit.reached.tip": "購物車中有一個或多個活動已達預約上限,請將已滿額的活動從購物車中移除後再完成結算。",
|
242
258
|
"pisell2.event.schedule.item.expand": "查看更多",
|
243
|
-
"pisell2.event.schedule.item.collapse": "收起"
|
259
|
+
"pisell2.event.schedule.item.collapse": "收起",
|
260
|
+
"pisell2.appointment.deposit": "定金",
|
261
|
+
"pisell2.appointment.deposit.agreed": "我已閱讀並同意 ",
|
262
|
+
"pisell2.appointment.deposit.agree.policy": "您需要同意協議才能繼續",
|
263
|
+
"pisell2.appointment.deposit.and": " 和 ",
|
264
|
+
"pisell2.appointment.deposit.amount.tip1": "請支付 ",
|
265
|
+
"pisell2.appointment.deposit.amount.tip2": " 定金。",
|
266
|
+
"pisell2.appointment.deposit.close": "关闭",
|
267
|
+
"pisell2.appointment.booking.empty.data": "暫無數據"
|
244
268
|
}
|
245
269
|
};
|
@@ -37,11 +37,14 @@ var import_materials = require("@pisell/materials");
|
|
37
37
|
var import_utils = require("@pisell/utils");
|
38
38
|
var import_ThreedsLoading = __toESM(require("../MWCreditCard/TDSPay/ThreedsLoading"));
|
39
39
|
var import_serve = require("./serve");
|
40
|
+
var import_model = require("../../model");
|
40
41
|
var import_payGroup = require("../../payGroup");
|
41
42
|
var import_index = require("./index.less");
|
42
43
|
var GlobePayAliPayH5 = (props, ref) => {
|
44
|
+
const { state } = (0, import_react.useContext)(import_model.Context);
|
43
45
|
const { onChange } = props;
|
44
46
|
const [open, setOpen] = (0, import_react.useState)(false);
|
47
|
+
const [showSuccessBackButton, setShowSuccessBackButton] = (0, import_react.useState)(false);
|
45
48
|
const init = async ({ payGroup }) => {
|
46
49
|
setOpen(true);
|
47
50
|
const values = (0, import_payGroup.getPayGroupParamsFromStorage)(payGroup.order_id);
|
@@ -54,6 +57,7 @@ var GlobePayAliPayH5 = (props, ref) => {
|
|
54
57
|
const url = data.url || (data == null ? void 0 : data.pay_url);
|
55
58
|
if (url) {
|
56
59
|
(0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
|
60
|
+
setShowSuccessBackButton(true);
|
57
61
|
window.location.href = url;
|
58
62
|
} else {
|
59
63
|
setOpen(false);
|
@@ -68,6 +72,12 @@ var GlobePayAliPayH5 = (props, ref) => {
|
|
68
72
|
init
|
69
73
|
})
|
70
74
|
);
|
75
|
+
const handleSuccessBack = () => {
|
76
|
+
var _a;
|
77
|
+
(_a = state.payCallback) == null ? void 0 : _a.call(state, {
|
78
|
+
key: "success"
|
79
|
+
});
|
80
|
+
};
|
71
81
|
return /* @__PURE__ */ import_react.default.createElement(
|
72
82
|
import_materials.PisellModal,
|
73
83
|
{
|
@@ -81,7 +91,9 @@ var GlobePayAliPayH5 = (props, ref) => {
|
|
81
91
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(
|
82
92
|
import_ThreedsLoading.default,
|
83
93
|
{
|
84
|
-
title: import_utils.locales.getText("tocPay.text.redirectingToAlipay")
|
94
|
+
title: import_utils.locales.getText("tocPay.text.redirectingToAlipay"),
|
95
|
+
onSuccessBack: handleSuccessBack,
|
96
|
+
showSuccessBackButton
|
85
97
|
}
|
86
98
|
))
|
87
99
|
);
|
@@ -36,7 +36,7 @@ var import_react = __toESM(require("react"));
|
|
36
36
|
var import_useEngineContext = __toESM(require("../../../../../../../hooks/useEngineContext"));
|
37
37
|
var import_index = require("./index.less");
|
38
38
|
var import_utils = require("@pisell/utils");
|
39
|
-
var ThreedsLoading = ({ title }) => {
|
39
|
+
var ThreedsLoading = ({ title, showSuccessBackButton, onSuccessBack }) => {
|
40
40
|
var _a;
|
41
41
|
const context = (0, import_useEngineContext.default)();
|
42
42
|
const { config } = ((_a = context.appHelper) == null ? void 0 : _a.constants) || {};
|
@@ -47,6 +47,6 @@ var ThreedsLoading = ({ title }) => {
|
|
47
47
|
src: config.static + "/static/stripe_loading.gif",
|
48
48
|
alt: ""
|
49
49
|
}
|
50
|
-
), /* @__PURE__ */ import_react.default.createElement("div", { className: "threeds-loading-title" }, title || import_utils.locales.getText("tocPay.text.waitingForBankVerification")));
|
50
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "threeds-loading-title" }, title || import_utils.locales.getText("tocPay.text.waitingForBankVerification")), showSuccessBackButton && /* @__PURE__ */ import_react.default.createElement("div", { onClick: onSuccessBack, className: "threeds-loading-success-back-button" }, import_utils.locales.getText("tocPay.text.successBack")));
|
51
51
|
};
|
52
52
|
var ThreedsLoading_default = ThreedsLoading;
|
@@ -95,7 +95,10 @@ var startPayment = async ({ orderId, cardInfo, payData }, callback) => {
|
|
95
95
|
if (step3 === "N") {
|
96
96
|
return;
|
97
97
|
}
|
98
|
-
const step4 = await checkTDSAuth(step2, step3);
|
98
|
+
const step4 = await checkTDSAuth(step2, step3, callback);
|
99
|
+
if (step4 === 0) {
|
100
|
+
return;
|
101
|
+
}
|
99
102
|
paymentData.step4 = step4;
|
100
103
|
if (step4) {
|
101
104
|
const step5 = await createChallengeIframe(step4, callback);
|
@@ -216,54 +219,70 @@ var createThreeDSMethodIframe = async (threeDSMethodData, callback) => {
|
|
216
219
|
});
|
217
220
|
};
|
218
221
|
var checkTDSAuth = async (step2, step3, callback) => {
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
let { data } = await import_utils.request.getRequest().post("/h5/pay/order/mw-3ds-pay/v2/tds_auth_pay", {
|
227
|
-
order_id,
|
228
|
-
pay_number,
|
229
|
-
mw_data: {
|
230
|
-
accessToken: pay_info.check_tds_auth.access_token,
|
231
|
-
method: "checkTDSAuth",
|
232
|
-
cardID: pay_info.check_tds_auth.card_id,
|
233
|
-
// paymentCardNumber: cardInfo.paymentCardNumber,
|
234
|
-
paymentCardExpiry: pay_info.check_tds_auth.card_expiry,
|
235
|
-
paymentCardName: pay_info.check_tds_auth.card_name,
|
236
|
-
// paymentCardCSC: cardInfo.paymentCardCSC,
|
237
|
-
customerName: pay_info.check_tds_auth.card_name,
|
238
|
-
transactionAmount: amount,
|
239
|
-
transactionCurrency: paymentInfo.transactionInfo.transactionCurrency,
|
240
|
-
transactionProduct: pay_info.check_tds_auth.product_name,
|
241
|
-
browserAcceptHeader: "*/*",
|
242
|
-
browserColorDepth: screen.colorDepth,
|
243
|
-
browserJavaEnabled: navigator.javaEnabled(),
|
244
|
-
browserJavascriptEnabled: true,
|
245
|
-
browserLanguage: navigator.language,
|
246
|
-
browserScreenHeight: screen.height,
|
247
|
-
browserScreenWidth: screen.width,
|
248
|
-
browserTZ: currentData.getTimezoneOffset(),
|
249
|
-
browserUserAgent: navigator.userAgent,
|
250
|
-
purchaseDate: "20220420165834",
|
251
|
-
billAddrCity: paymentInfo.billingAddress.billAddrCity,
|
252
|
-
billAddrCountry: paymentInfo.billingAddress.billAddrCountry,
|
253
|
-
billAddrLine1: paymentInfo.billingAddress.billAddrLine1,
|
254
|
-
billAddrPostCode: paymentInfo.billingAddress.billAddrPostCode,
|
255
|
-
billAddrState: paymentInfo.billingAddress.billAddrState,
|
256
|
-
threeDSCompInd: isPre ? "" : threeDSCompInd,
|
257
|
-
threeDSServerTransID: isPre ? "" : threeDSServerTransID,
|
258
|
-
threeDSRequestorAuthenticationInd: "01",
|
259
|
-
threeDSRequestorURL: window.location.href,
|
260
|
-
notifyURL
|
222
|
+
try {
|
223
|
+
const { pay_number, order_id, pay_info, amount, notifyURL } = step2;
|
224
|
+
const { threeDSServerTransID, threeDSCompInd } = step3;
|
225
|
+
var currentData = /* @__PURE__ */ new Date();
|
226
|
+
let isPre = false;
|
227
|
+
if (REACT_APP_API_ENV === "pre" && pay_info.check_tds_auth.card_name === "aa bb") {
|
228
|
+
isPre = true;
|
261
229
|
}
|
262
|
-
|
263
|
-
|
264
|
-
|
230
|
+
let { data } = await import_utils.request.getRequest().post("/h5/pay/order/mw-3ds-pay/v2/tds_auth_pay", {
|
231
|
+
order_id,
|
232
|
+
pay_number,
|
233
|
+
mw_data: {
|
234
|
+
accessToken: pay_info.check_tds_auth.access_token,
|
235
|
+
method: "checkTDSAuth",
|
236
|
+
cardID: pay_info.check_tds_auth.card_id,
|
237
|
+
// paymentCardNumber: cardInfo.paymentCardNumber,
|
238
|
+
paymentCardExpiry: pay_info.check_tds_auth.card_expiry,
|
239
|
+
paymentCardName: pay_info.check_tds_auth.card_name,
|
240
|
+
// paymentCardCSC: cardInfo.paymentCardCSC,
|
241
|
+
customerName: pay_info.check_tds_auth.card_name,
|
242
|
+
transactionAmount: amount,
|
243
|
+
transactionCurrency: paymentInfo.transactionInfo.transactionCurrency,
|
244
|
+
transactionProduct: pay_info.check_tds_auth.product_name,
|
245
|
+
browserAcceptHeader: "*/*",
|
246
|
+
browserColorDepth: screen.colorDepth,
|
247
|
+
browserJavaEnabled: navigator.javaEnabled(),
|
248
|
+
browserJavascriptEnabled: true,
|
249
|
+
browserLanguage: navigator.language,
|
250
|
+
browserScreenHeight: screen.height,
|
251
|
+
browserScreenWidth: screen.width,
|
252
|
+
browserTZ: currentData.getTimezoneOffset(),
|
253
|
+
browserUserAgent: navigator.userAgent,
|
254
|
+
purchaseDate: "20220420165834",
|
255
|
+
billAddrCity: paymentInfo.billingAddress.billAddrCity,
|
256
|
+
billAddrCountry: paymentInfo.billingAddress.billAddrCountry,
|
257
|
+
billAddrLine1: paymentInfo.billingAddress.billAddrLine1,
|
258
|
+
billAddrPostCode: paymentInfo.billingAddress.billAddrPostCode,
|
259
|
+
billAddrState: paymentInfo.billingAddress.billAddrState,
|
260
|
+
threeDSCompInd: isPre ? "" : threeDSCompInd,
|
261
|
+
threeDSServerTransID: isPre ? "" : threeDSServerTransID,
|
262
|
+
threeDSRequestorAuthenticationInd: "01",
|
263
|
+
threeDSRequestorURL: window.location.href,
|
264
|
+
notifyURL
|
265
|
+
}
|
266
|
+
});
|
267
|
+
if (!data) {
|
268
|
+
return null;
|
269
|
+
}
|
270
|
+
return data;
|
271
|
+
} catch (err) {
|
272
|
+
log({
|
273
|
+
msg: err,
|
274
|
+
data: paymentData
|
275
|
+
});
|
276
|
+
(0, import_materials.PisellToast)({
|
277
|
+
content: (err == null ? void 0 : err.message) || "",
|
278
|
+
duration: 1e3 * 200,
|
279
|
+
onClose() {
|
280
|
+
callback({ key: "hideModal" });
|
281
|
+
closeIframe();
|
282
|
+
}
|
283
|
+
});
|
284
|
+
return 0;
|
265
285
|
}
|
266
|
-
return data;
|
267
286
|
};
|
268
287
|
var createChallengeIframe = (challengeData, callback) => {
|
269
288
|
const displayBox = document.getElementById("threeds-container");
|
@@ -37,14 +37,17 @@ var import_materials = require("@pisell/materials");
|
|
37
37
|
var import_utils = require("@pisell/utils");
|
38
38
|
var import_ThreedsLoading = __toESM(require("../MWCreditCard/TDSPay/ThreedsLoading"));
|
39
39
|
var import_serve = require("./serve");
|
40
|
+
var import_model = require("../../model");
|
40
41
|
var import_payGroup = require("../../payGroup");
|
41
42
|
var import_index = require("./index.less");
|
42
43
|
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
43
44
|
var import_utils2 = require("../../utils");
|
44
45
|
var SuperPayAliPayH5 = (props, ref) => {
|
45
46
|
var _a;
|
47
|
+
const { state } = (0, import_react.useContext)(import_model.Context);
|
46
48
|
const { onChange } = props;
|
47
49
|
const [open, setOpen] = (0, import_react.useState)(false);
|
50
|
+
const [showSuccessBackButton, setShowSuccessBackButton] = (0, import_react.useState)(false);
|
48
51
|
const context = (0, import_useEngineContext.default)();
|
49
52
|
const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
50
53
|
const init = async ({ payGroup }) => {
|
@@ -62,6 +65,7 @@ var SuperPayAliPayH5 = (props, ref) => {
|
|
62
65
|
const data = await (0, import_serve.getAliPayUrl)(payGroup.order_id, values);
|
63
66
|
if (data == null ? void 0 : data.pay_url) {
|
64
67
|
(0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
|
68
|
+
setShowSuccessBackButton(true);
|
65
69
|
window.location.href = data == null ? void 0 : data.pay_url;
|
66
70
|
} else {
|
67
71
|
setOpen(false);
|
@@ -76,6 +80,12 @@ var SuperPayAliPayH5 = (props, ref) => {
|
|
76
80
|
init
|
77
81
|
})
|
78
82
|
);
|
83
|
+
const handleSuccessBack = () => {
|
84
|
+
var _a2;
|
85
|
+
(_a2 = state.payCallback) == null ? void 0 : _a2.call(state, {
|
86
|
+
key: "success"
|
87
|
+
});
|
88
|
+
};
|
79
89
|
return /* @__PURE__ */ import_react.default.createElement(
|
80
90
|
import_materials.PisellModal,
|
81
91
|
{
|
@@ -89,7 +99,9 @@ var SuperPayAliPayH5 = (props, ref) => {
|
|
89
99
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(
|
90
100
|
import_ThreedsLoading.default,
|
91
101
|
{
|
92
|
-
title: import_utils.locales.getText("tocPay.text.redirectingToAlipay")
|
102
|
+
title: import_utils.locales.getText("tocPay.text.redirectingToAlipay"),
|
103
|
+
onSuccessBack: handleSuccessBack,
|
104
|
+
showSuccessBackButton
|
93
105
|
}
|
94
106
|
))
|
95
107
|
);
|