@pisell/private-materials 6.9.2 → 6.9.4
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/README.md +5 -1
- 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 +2 -2
- package/build/lowcode/preview.js +150 -164
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/Sales/Cart/index.js +20 -3
- package/es/components/Sales/Cart/utils.d.ts +5 -0
- package/es/components/Sales/Cart/utils.js +16 -0
- package/es/components/Sales/Summary/utils.js +5 -4
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Header/index.js +12 -12
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +3 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +82 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +46 -5
- package/es/components/appointmentBooking/components/Voucher/index.js +26 -5
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/hooks.d.ts +1 -1
- package/es/components/appointmentBooking/hooks.js +6 -13
- package/es/components/appointmentBooking/locales.d.ts +3 -0
- package/es/components/appointmentBooking/locales.js +3 -0
- package/es/components/appointmentBooking/utils.d.ts +23 -0
- package/es/components/appointmentBooking/utils.js +159 -0
- package/es/components/booking/addons/index.js +3 -2
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/actionButtons/index.js +10 -0
- package/es/components/booking/components/customiseItemModal/index.js +4 -7
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +358 -165
- package/es/components/booking/components/footer/index.js +496 -170
- package/es/components/booking/components/footer/utils.d.ts +1 -1
- package/es/components/booking/components/footer/utils.js +142 -82
- package/es/components/booking/components/voucher/index.js +15 -6
- package/es/components/booking/components/voucher/index.less +4 -1
- package/es/components/booking/components/voucherModal/index.less +1 -0
- package/es/components/booking/dashboard/index.js +78 -92
- package/es/components/booking/dashboard/serve.d.ts +1 -0
- package/es/components/booking/dashboard/serve.js +22 -0
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/hooks/useQuotation.js +32 -10
- package/es/components/booking/info/client/index.js +16 -6
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/header/index.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service2/Group/utils.js +2 -2
- package/es/components/booking/info/service2/utils.js +45 -41
- package/es/components/booking/info2/cartClientCard/index.js +16 -10
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/info2/service/editNormalService/index.js +21 -18
- package/es/components/booking/info2/service/editService/index.js +33 -2
- package/es/components/booking/info2/service/editService/utils.js +9 -5
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +6 -3
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/booking/utils.js +4 -4
- package/es/components/checkout/PaymentModal.d.ts +1 -0
- package/es/components/checkout/PaymentModal.js +172 -65
- package/es/components/checkout/components/PaymentDetailModal/index.less +426 -429
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +1 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.js +3 -2
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +0 -1
- package/es/components/checkout/components/PaymentResultToast/index.js +2 -0
- package/es/components/checkout/components/WalletPassModule/index.js +1 -0
- package/es/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
- package/es/components/checkout/components/WalletPassModule/utils.js +17 -3
- package/es/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/es/components/checkout/hooks/useWalletPass.js +324 -198
- package/es/components/checkout/index.less +6 -0
- package/es/components/checkout/plugin.js +59 -12
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +10 -0
- package/es/components/ecocup/components/AddCustomerModal/index.js +216 -0
- package/es/components/ecocup/components/AddCustomerModal/index.less +9 -0
- package/es/components/ecocup/components/CupActionList/index.d.ts +14 -0
- package/es/components/ecocup/components/CupActionList/index.js +91 -0
- package/es/components/ecocup/components/CupActionList/index.less +102 -0
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupActionModal/hooks.js +68 -0
- package/es/components/ecocup/components/CupActionModal/index.d.ts +15 -0
- package/es/components/ecocup/components/CupActionModal/index.js +92 -0
- package/es/components/ecocup/components/CupActionModal/index.less +38 -0
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
- package/es/components/ecocup/components/CupInfoCard/index.js +12 -0
- package/es/components/ecocup/components/CupInfoCard/index.less +11 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.js +68 -0
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +14 -0
- package/es/components/ecocup/components/CupStatusModal/index.js +147 -0
- package/es/components/ecocup/components/CupStatusModal/index.less +35 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +133 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +17 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +227 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +7 -0
- package/es/components/ecocup/components/CustomerCard/index.js +34 -0
- package/es/components/ecocup/components/CustomerCard/index.less +50 -0
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +9 -0
- package/es/components/ecocup/components/MoreDropdown/index.js +33 -0
- package/es/components/ecocup/components/PageHeader/index.d.ts +6 -0
- package/es/components/ecocup/components/PageHeader/index.js +37 -0
- package/es/components/ecocup/components/PageHeader/index.less +19 -0
- package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/es/components/ecocup/components/SearchBar/const.js +16 -0
- package/es/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
- package/es/components/ecocup/components/SearchBar/hooks.js +184 -0
- package/es/components/ecocup/components/SearchBar/index.d.ts +13 -0
- package/es/components/ecocup/components/SearchBar/index.js +218 -0
- package/es/components/ecocup/components/SearchBar/index.less +88 -0
- package/es/components/ecocup/cupList/const.d.ts +133 -0
- package/es/components/ecocup/cupList/const.js +306 -0
- package/es/components/ecocup/cupList/hooks/index.d.ts +4 -0
- package/es/components/ecocup/cupList/hooks/index.js +4 -0
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
- package/es/components/ecocup/cupList/hooks/useColumns.js +168 -0
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
- package/es/{plus/myTeamLogin/index.js → components/ecocup/cupList/hooks/useCupApi.js} +129 -259
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +3 -0
- package/es/components/ecocup/cupList/hooks/useSummary.js +40 -0
- package/es/components/ecocup/cupList/index.d.ts +6 -0
- package/es/components/ecocup/cupList/index.js +220 -0
- package/es/components/ecocup/cupList/index.less +113 -0
- package/es/components/ecocup/cupProject/const.d.ts +7 -0
- package/es/components/ecocup/cupProject/const.js +27 -0
- package/es/components/ecocup/cupProject/index.d.ts +3 -0
- package/es/components/ecocup/cupProject/index.js +103 -0
- package/es/components/ecocup/cupProject/index.less +41 -0
- package/es/components/ecocup/customerList/const.d.ts +44 -0
- package/es/components/ecocup/customerList/const.js +67 -0
- package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/es/components/ecocup/customerList/hooks/index.js +3 -0
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useColumns.js +44 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.js +70 -0
- package/es/components/ecocup/customerList/index.d.ts +7 -0
- package/es/components/ecocup/customerList/index.js +127 -0
- package/es/components/ecocup/customerList/index.less +15 -0
- package/es/components/ecocup/hooks.d.ts +49 -0
- package/es/components/ecocup/hooks.js +151 -0
- package/es/components/ecocup/locales.d.ts +339 -0
- package/es/components/ecocup/locales.js +372 -0
- package/es/components/ecocup/types.d.ts +103 -0
- package/es/components/ecocup/types.js +36 -0
- package/es/components/ecocup/utils/scanListener.d.ts +20 -0
- package/es/components/ecocup/utils/scanListener.js +107 -0
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/EFTPos.js +15 -6
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.js +120 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/index.js +3 -0
- package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/es/components/eftposPay/aggregatePayment/service.js +69 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/es/components/eftposPay/aggregatePayment/types.js +65 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +371 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +1138 -0
- package/es/components/eftposPay/app.js +5 -0
- package/es/components/eftposPay/component/fail/failCustom.js +16 -12
- package/es/components/eftposPay/component/fail/index.js +12 -5
- package/es/components/eftposPay/const.d.ts +6 -1
- package/es/components/eftposPay/const.js +3 -0
- package/es/components/eftposPay/hooks.d.ts +3 -2
- package/es/components/eftposPay/hooks.js +12 -0
- package/es/components/eftposPay/huifu/Action.d.ts +8 -0
- package/es/components/eftposPay/huifu/Action.js +146 -0
- package/es/components/eftposPay/huifu/const.d.ts +5 -0
- package/es/components/eftposPay/huifu/const.js +70 -0
- package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/es/components/eftposPay/huifu/hooks.js +184 -0
- package/es/components/eftposPay/huifu/index.d.ts +5 -0
- package/es/components/eftposPay/huifu/index.js +196 -0
- package/es/components/eftposPay/huifu/index.less +180 -0
- package/es/components/eftposPay/huifu/types.d.ts +14 -0
- package/es/components/eftposPay/huifu/types.js +1 -0
- package/es/components/eftposPay/index.js +5 -1
- package/es/components/eftposPay/locales.d.ts +36 -0
- package/es/components/eftposPay/locales.js +42 -3
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +5 -0
- package/es/components/eftposPay/pay.js +6 -2
- package/es/components/eftposPay/store/index.d.ts +12 -5
- package/es/components/eftposPay/tyro/index.js +97 -4
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
- package/es/components/eventBooking/components/Voucher/components/Voucher.js +99 -0
- package/es/components/eventBooking/components/Voucher/components/index.less +124 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/es/components/eventBooking/components/Voucher/components/locales.js +38 -0
- package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/es/components/eventBooking/components/Voucher/hooks.js +212 -0
- package/es/components/eventBooking/components/Voucher/index.d.ts +2 -0
- package/es/components/eventBooking/components/Voucher/index.js +266 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/kioskSkuDetail/index.d.ts +3 -0
- package/es/components/kioskSkuDetail/index.js +268 -173
- package/es/components/kioskSkuDetail/index.less +49 -7
- package/es/components/kioskSkuDetail/locales.d.ts +6 -0
- package/es/components/kioskSkuDetail/locales.js +9 -3
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -1
- package/es/components/pay/toB/components/EFTPOS/index.js +8 -1
- package/es/components/pay/toB/components/MX51/index.js +2 -1
- package/es/components/pay/toB/paymentMethods/index.js +2 -1
- package/es/components/pay/toB/types/index.d.ts +9 -0
- package/es/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/index.js +54 -5
- package/es/components/pay/toC/PaymentList/index.less +58 -1
- package/es/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/es/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/serve.js +22 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +26 -0
- package/es/components/pay/toC/PaymentList/utils.js +188 -6
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +139 -42
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/es/components/pay/toC/index.js +68 -28
- package/es/components/pay/toC/locales.d.ts +6 -0
- package/es/components/pay/toC/locales.js +9 -3
- package/es/components/pay/toC/model.d.ts +10 -1
- package/es/components/pay/toC/serve.d.ts +18 -0
- package/es/components/pay/toC/serve.js +29 -1
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pay/toC/utils.js +4 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.js +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.js +1 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/systemSettings/registry/components/SectionList.js +5 -1
- package/es/components/taxSelect/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +5 -8
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +142 -63
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +2 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +18 -4
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +3 -0
- package/es/components/ticketBooking/context/OsKeyContext.js +12 -2
- package/es/components/ticketBooking/context/index.d.ts +1 -1
- package/es/components/ticketBooking/context/index.js +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +14 -11
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +69 -10
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/index.js +2 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/walletList/index.js +7 -2
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/index.d.ts +7 -4
- package/es/index.js +7 -4
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
- package/es/plus/clinetSearch/index.d.ts +1 -0
- package/es/plus/clinetSearch/index.js +27 -5
- package/es/plus/clinetSearch/locales.d.ts +3 -0
- package/es/plus/clinetSearch/locales.js +6 -3
- package/es/plus/clinetSearch/types.d.ts +9 -0
- package/es/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/es/plus/orderList/components/BatchActionBar.js +861 -0
- package/es/plus/orderList/components/FilterList.d.ts +8 -0
- package/es/plus/orderList/components/FilterList.js +78 -0
- package/es/plus/orderList/components/HandleActions.d.ts +5 -0
- package/es/plus/orderList/components/HandleActions.js +24 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +5 -0
- package/es/plus/orderList/components/QuickFilter.js +14 -0
- package/es/plus/orderList/components/Reset.d.ts +7 -0
- package/es/plus/orderList/components/Reset.js +23 -0
- package/es/plus/orderList/components/Toolbar.d.ts +6 -0
- package/es/plus/orderList/components/Toolbar.js +57 -0
- package/es/plus/orderList/config.d.ts +152 -0
- package/es/plus/orderList/config.js +785 -0
- package/es/plus/orderList/index.d.ts +9 -0
- package/es/plus/orderList/index.js +128 -0
- package/es/plus/orderList/index.less +125 -0
- package/es/plus/orderList/locales.d.ts +372 -0
- package/es/plus/orderList/locales.js +459 -0
- package/es/plus/orderList/serve.d.ts +42 -0
- package/es/plus/orderList/serve.js +351 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/index.js +12 -3
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +6 -4
- package/es/plus/productSelect/ProductList/gridComponents.js +30 -10
- package/es/plus/productSelect/index.d.ts +3 -1
- package/es/plus/productSelect/index.js +85 -14
- package/es/plus/saasCreateOrganization/index.d.ts +0 -1
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +1 -1
- package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/es/plus/skuOptionsSelection/locales.js +3 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +11 -2
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +2 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +10 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +6 -5
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +9 -3
- package/es/plus/walletPassGallery/index.js +2 -2
- package/es/plus/walletPassGallery/index.less +1 -1
- package/es/plus/walletPassGallery/serve.d.ts +8 -0
- package/es/plus/walletPassGallery/serve.js +78 -50
- package/es/plus/webPosLogin/WebPosLogin.d.ts +2 -2
- package/es/plus/webPosLogin/WebPosLogin.js +7 -2
- package/es/plus/webPosLogin/components/MediaDisplay/index.js +5 -5
- package/es/plus/webPosLogin/components/MediaDisplay/index.less +10 -6
- package/es/plus/webPosLogin/service.js +2 -1
- package/es/pro/Login2.0/AuthModal.js +12 -4
- package/es/pro/Login2.0/Login2.js +7 -0
- package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
- package/es/pro/Login2.0/index.less +15 -3
- package/es/pro/Login2.0/steps/CodeInput.js +37 -7
- package/es/pro/NumericStepper/index.d.ts +27 -1
- package/es/pro/NumericStepper/index.js +84 -68
- package/es/pro/NumericStepper/index.less +261 -136
- package/es/pro/Selector/Selector.js +17 -10
- package/es/pro/Selector/demo.d.ts +1 -0
- package/es/pro/Selector/hooks/usePresetItemProps.js +2 -0
- package/es/pro/Selector/hooks/usePresetProps.js +4 -2
- package/es/pro/Selector/types.d.ts +1 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/keyboards/index.d.ts +2 -0
- package/es/pro/keyboards/index.js +1 -0
- package/es/pro/keyboards/locales.d.ts +24 -0
- package/es/pro/keyboards/locales.js +35 -0
- package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/es/pro/keyboards/numberKeyboard/index.js +523 -0
- package/es/pro/keyboards/numberKeyboard/index.less +59 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/keyboards/numberKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
- package/es/pro/skuDetailModal/index.js +57 -55
- package/es/pro/skuDetailModal/index.less +46 -4
- package/es/pro/skuDetailModal/types.d.ts +7 -0
- package/lib/components/Sales/Cart/index.js +25 -7
- package/lib/components/Sales/Cart/utils.d.ts +5 -0
- package/lib/components/Sales/Cart/utils.js +13 -1
- package/lib/components/Sales/Summary/utils.js +2 -4
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Header/index.js +3 -8
- package/lib/components/appointmentBooking/components/Services/index.js +5 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +3 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +89 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +27 -7
- package/lib/components/appointmentBooking/components/Voucher/index.js +37 -6
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/hooks.d.ts +1 -1
- package/lib/components/appointmentBooking/hooks.js +6 -11
- package/lib/components/appointmentBooking/locales.d.ts +3 -0
- package/lib/components/appointmentBooking/locales.js +3 -0
- package/lib/components/appointmentBooking/utils.d.ts +23 -0
- package/lib/components/appointmentBooking/utils.js +103 -0
- package/lib/components/booking/addons/index.js +3 -2
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/actionButtons/index.js +10 -0
- package/lib/components/booking/components/customiseItemModal/index.js +4 -5
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +122 -25
- package/lib/components/booking/components/footer/index.js +243 -5
- package/lib/components/booking/components/footer/utils.d.ts +1 -1
- package/lib/components/booking/components/footer/utils.js +58 -21
- package/lib/components/booking/components/voucher/index.js +18 -4
- package/lib/components/booking/components/voucher/index.less +4 -1
- package/lib/components/booking/components/voucherModal/index.less +1 -0
- package/lib/components/booking/dashboard/index.js +38 -59
- package/lib/components/booking/dashboard/serve.d.ts +1 -0
- package/lib/components/booking/dashboard/serve.js +8 -2
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/hooks/useQuotation.js +65 -21
- package/lib/components/booking/info/client/index.js +16 -8
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/header/index.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service2/Group/utils.js +2 -2
- package/lib/components/booking/info/service2/utils.js +6 -2
- package/lib/components/booking/info2/cartClientCard/index.js +17 -11
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/info2/service/editNormalService/index.js +20 -17
- package/lib/components/booking/info2/service/editService/index.js +48 -24
- package/lib/components/booking/info2/service/editService/utils.js +7 -4
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +6 -3
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/booking/utils.js +3 -3
- package/lib/components/checkout/PaymentModal.d.ts +1 -0
- package/lib/components/checkout/PaymentModal.js +105 -31
- package/lib/components/checkout/components/PaymentDetailModal/index.less +426 -429
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +1 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -2
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +0 -1
- package/lib/components/checkout/components/PaymentResultToast/index.js +2 -0
- package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
- package/lib/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
- package/lib/components/checkout/components/WalletPassModule/utils.js +18 -2
- package/lib/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/lib/components/checkout/hooks/useWalletPass.js +160 -109
- package/lib/components/checkout/index.less +6 -0
- package/lib/components/checkout/plugin.js +195 -150
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +10 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.js +212 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.less +9 -0
- package/lib/components/ecocup/components/CupActionList/index.d.ts +14 -0
- package/lib/components/ecocup/components/CupActionList/index.js +116 -0
- package/lib/components/ecocup/components/CupActionList/index.less +102 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.js +55 -0
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +15 -0
- package/lib/components/ecocup/components/CupActionModal/index.js +125 -0
- package/lib/components/ecocup/components/CupActionModal/index.less +38 -0
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
- package/lib/components/ecocup/components/CupInfoCard/index.js +43 -0
- package/lib/components/ecocup/components/CupInfoCard/index.less +11 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +55 -0
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +14 -0
- package/lib/components/ecocup/components/CupStatusModal/index.js +140 -0
- package/lib/components/ecocup/components/CupStatusModal/index.less +35 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +89 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +17 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +178 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +7 -0
- package/lib/components/ecocup/components/CustomerCard/index.js +48 -0
- package/lib/components/ecocup/components/CustomerCard/index.less +50 -0
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +9 -0
- package/lib/components/ecocup/components/MoreDropdown/index.js +68 -0
- package/lib/components/ecocup/components/PageHeader/index.d.ts +6 -0
- package/lib/components/ecocup/components/PageHeader/index.js +59 -0
- package/lib/components/ecocup/components/PageHeader/index.less +19 -0
- package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/lib/components/ecocup/components/SearchBar/const.js +50 -0
- package/lib/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
- package/lib/components/ecocup/components/SearchBar/hooks.js +135 -0
- package/lib/components/ecocup/components/SearchBar/index.d.ts +13 -0
- package/lib/components/ecocup/components/SearchBar/index.js +213 -0
- package/lib/components/ecocup/components/SearchBar/index.less +88 -0
- package/lib/components/ecocup/cupList/const.d.ts +133 -0
- package/lib/components/ecocup/cupList/const.js +326 -0
- package/lib/components/ecocup/cupList/hooks/index.d.ts +4 -0
- package/lib/components/ecocup/cupList/hooks/index.js +39 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.js +202 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +112 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +3 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.js +75 -0
- package/lib/components/ecocup/cupList/index.d.ts +6 -0
- package/lib/components/ecocup/cupList/index.js +208 -0
- package/lib/components/ecocup/cupList/index.less +113 -0
- package/lib/components/ecocup/cupProject/const.d.ts +7 -0
- package/lib/components/ecocup/cupProject/const.js +58 -0
- package/lib/components/ecocup/cupProject/index.d.ts +3 -0
- package/lib/components/ecocup/cupProject/index.js +126 -0
- package/lib/components/ecocup/cupProject/index.less +41 -0
- package/lib/components/ecocup/customerList/const.d.ts +44 -0
- package/lib/components/ecocup/customerList/const.js +93 -0
- package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/lib/components/ecocup/customerList/hooks/index.js +32 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.js +89 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +56 -0
- package/lib/components/ecocup/customerList/index.d.ts +7 -0
- package/lib/components/ecocup/customerList/index.js +138 -0
- package/lib/components/ecocup/customerList/index.less +15 -0
- package/lib/components/ecocup/hooks.d.ts +49 -0
- package/lib/components/ecocup/hooks.js +155 -0
- package/lib/components/ecocup/locales.d.ts +339 -0
- package/lib/components/ecocup/locales.js +389 -0
- package/lib/components/ecocup/types.d.ts +103 -0
- package/lib/components/ecocup/types.js +57 -0
- package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
- package/lib/components/ecocup/utils/scanListener.js +90 -0
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/EFTPos.js +11 -7
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.js +133 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/index.js +42 -0
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +294 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +752 -0
- package/lib/components/eftposPay/app.js +5 -0
- package/lib/components/eftposPay/component/fail/failCustom.js +15 -9
- package/lib/components/eftposPay/component/fail/index.js +4 -1
- package/lib/components/eftposPay/const.d.ts +6 -1
- package/lib/components/eftposPay/const.js +3 -0
- package/lib/components/eftposPay/hooks.d.ts +3 -2
- package/lib/components/eftposPay/hooks.js +16 -0
- package/lib/components/eftposPay/huifu/Action.d.ts +8 -0
- package/lib/components/eftposPay/huifu/Action.js +174 -0
- package/lib/components/eftposPay/huifu/const.d.ts +5 -0
- package/lib/components/eftposPay/huifu/const.js +86 -0
- package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/lib/components/eftposPay/huifu/hooks.js +186 -0
- package/lib/components/eftposPay/huifu/index.d.ts +5 -0
- package/lib/components/eftposPay/huifu/index.js +200 -0
- package/lib/components/eftposPay/huifu/index.less +180 -0
- package/lib/components/eftposPay/huifu/types.d.ts +14 -0
- package/lib/components/eftposPay/huifu/types.js +17 -0
- package/lib/components/eftposPay/index.js +5 -1
- package/lib/components/eftposPay/locales.d.ts +36 -0
- package/lib/components/eftposPay/locales.js +42 -3
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +7 -0
- package/lib/components/eftposPay/pay.js +3 -2
- package/lib/components/eftposPay/store/index.d.ts +12 -5
- package/lib/components/eftposPay/tyro/index.js +64 -7
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
- package/lib/components/eventBooking/components/Voucher/components/Voucher.js +116 -0
- package/lib/components/eventBooking/components/Voucher/components/index.less +124 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.js +59 -0
- package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/lib/components/eventBooking/components/Voucher/hooks.js +176 -0
- package/lib/components/eventBooking/components/Voucher/index.d.ts +2 -0
- package/lib/components/eventBooking/components/Voucher/index.js +197 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/kioskSkuDetail/index.d.ts +3 -0
- package/lib/components/kioskSkuDetail/index.js +180 -113
- package/lib/components/kioskSkuDetail/index.less +49 -7
- package/lib/components/kioskSkuDetail/locales.d.ts +6 -0
- package/lib/components/kioskSkuDetail/locales.js +9 -3
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -1
- package/lib/components/pay/toB/components/EFTPOS/index.js +8 -1
- package/lib/components/pay/toB/components/MX51/index.js +2 -1
- package/lib/components/pay/toB/paymentMethods/index.js +2 -1
- package/lib/components/pay/toB/types/index.d.ts +9 -0
- package/lib/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/index.js +36 -5
- package/lib/components/pay/toC/PaymentList/index.less +58 -1
- package/lib/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/lib/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/serve.js +21 -1
- package/lib/components/pay/toC/PaymentList/utils.d.ts +26 -0
- package/lib/components/pay/toC/PaymentList/utils.js +156 -7
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +97 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/lib/components/pay/toC/index.js +53 -11
- package/lib/components/pay/toC/locales.d.ts +6 -0
- package/lib/components/pay/toC/locales.js +9 -3
- package/lib/components/pay/toC/model.d.ts +10 -1
- package/lib/components/pay/toC/serve.d.ts +18 -0
- package/lib/components/pay/toC/serve.js +6 -0
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pay/toC/utils.js +4 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.js +1 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/systemSettings/registry/components/SectionList.js +4 -1
- package/lib/components/taxSelect/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +3 -7
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +46 -16
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +3 -2
- package/lib/components/ticketBooking/components/ticketBooking/index.js +20 -6
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +3 -0
- package/lib/components/ticketBooking/context/OsKeyContext.js +13 -3
- package/lib/components/ticketBooking/context/index.d.ts +1 -1
- package/lib/components/ticketBooking/context/index.js +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +3 -2
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +59 -0
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.js +1 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/walletList/index.js +5 -1
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/index.d.ts +7 -4
- package/lib/index.js +15 -6
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
- package/lib/plus/clinetSearch/index.d.ts +1 -0
- package/lib/plus/clinetSearch/index.js +31 -7
- package/lib/plus/clinetSearch/locales.d.ts +3 -0
- package/lib/plus/clinetSearch/locales.js +6 -3
- package/lib/plus/clinetSearch/types.d.ts +9 -0
- package/lib/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/lib/plus/orderList/components/BatchActionBar.js +584 -0
- package/lib/plus/orderList/components/FilterList.d.ts +8 -0
- package/lib/plus/orderList/components/FilterList.js +121 -0
- package/lib/plus/orderList/components/HandleActions.d.ts +5 -0
- package/lib/plus/orderList/components/HandleActions.js +52 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +5 -0
- package/lib/plus/orderList/components/QuickFilter.js +43 -0
- package/lib/plus/orderList/components/Reset.d.ts +7 -0
- package/lib/plus/orderList/components/Reset.js +58 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +6 -0
- package/lib/plus/orderList/components/Toolbar.js +68 -0
- package/lib/plus/orderList/config.d.ts +152 -0
- package/lib/plus/orderList/config.js +763 -0
- package/lib/plus/orderList/index.d.ts +9 -0
- package/lib/plus/orderList/index.js +132 -0
- package/lib/plus/orderList/index.less +125 -0
- package/lib/plus/orderList/locales.d.ts +372 -0
- package/lib/plus/orderList/locales.js +471 -0
- package/lib/plus/orderList/serve.d.ts +42 -0
- package/lib/plus/orderList/serve.js +177 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/index.js +3 -3
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +6 -4
- package/lib/plus/productSelect/ProductList/gridComponents.js +7 -1
- package/lib/plus/productSelect/index.d.ts +3 -1
- package/lib/plus/productSelect/index.js +56 -11
- package/lib/plus/saasCreateOrganization/index.d.ts +0 -1
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +2 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/locales.js +3 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +10 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +2 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +10 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +24 -6
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -10
- package/lib/plus/walletPassGallery/index.js +2 -2
- package/lib/plus/walletPassGallery/index.less +1 -1
- package/lib/plus/walletPassGallery/serve.d.ts +8 -0
- package/lib/plus/walletPassGallery/serve.js +23 -8
- package/lib/plus/webPosLogin/WebPosLogin.d.ts +2 -2
- package/lib/plus/webPosLogin/WebPosLogin.js +7 -2
- package/lib/plus/webPosLogin/components/MediaDisplay/index.js +1 -1
- package/lib/plus/webPosLogin/components/MediaDisplay/index.less +10 -6
- package/lib/plus/webPosLogin/service.js +2 -1
- package/lib/pro/Login2.0/AuthModal.js +15 -7
- package/lib/pro/Login2.0/Login2.js +7 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
- package/lib/pro/Login2.0/index.less +15 -3
- package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
- package/lib/pro/NumericStepper/index.d.ts +27 -1
- package/lib/pro/NumericStepper/index.js +73 -70
- package/lib/pro/NumericStepper/index.less +261 -136
- package/lib/pro/Selector/Selector.js +11 -4
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.js +2 -0
- package/lib/pro/Selector/hooks/usePresetProps.js +4 -2
- package/lib/pro/Selector/types.d.ts +1 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/keyboards/index.d.ts +2 -0
- package/lib/pro/keyboards/index.js +39 -0
- package/lib/pro/keyboards/locales.d.ts +24 -0
- package/lib/pro/keyboards/locales.js +47 -0
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
- package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
- package/lib/pro/skuDetailModal/index.js +114 -64
- package/lib/pro/skuDetailModal/index.less +46 -4
- package/lib/pro/skuDetailModal/types.d.ts +7 -0
- package/lowcode/eco-cup-list/meta.ts +63 -0
- package/lowcode/eco-customer-list/meta.ts +63 -0
- package/lowcode/ecocup-cup-list/meta.ts +38 -0
- package/lowcode/ecocup-cup-project/meta.ts +35 -0
- package/lowcode/ecocup-customer-list/meta.ts +38 -0
- package/lowcode/kiosk-sku-detail/meta.ts +229 -94
- package/lowcode/login2/meta.ts +15 -0
- package/lowcode/order-list/meta.ts +87 -0
- package/package.json +8 -23
- package/es/plus/myTeamLogin/MyTeamLoginCpt.d.ts +0 -9
- package/es/plus/myTeamLogin/MyTeamLoginCpt.js +0 -157
- package/es/plus/myTeamLogin/index.d.ts +0 -11
- package/es/pro/pisellNumberSelector/example.d.ts +0 -3
- package/es/pro/pisellNumberSelector/example.js +0 -68
- package/lib/plus/myTeamLogin/MyTeamLoginCpt.d.ts +0 -9
- package/lib/plus/myTeamLogin/MyTeamLoginCpt.js +0 -156
- package/lib/plus/myTeamLogin/index.d.ts +0 -11
- package/lib/plus/myTeamLogin/index.js +0 -198
- package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
- package/lib/pro/pisellNumberSelector/example.js +0 -93
- package/lowcode/my-team-login/meta.ts +0 -71
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.tsx
|
|
30
|
+
var SelectDateOS_exports = {};
|
|
31
|
+
__export(SelectDateOS_exports, {
|
|
32
|
+
default: () => SelectDateOS_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(SelectDateOS_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_hooks = require("../../../hooks");
|
|
37
|
+
var import_context = require("../../../context");
|
|
38
|
+
var import_useComponents = __toESM(require("../../../../../hooks/useComponents"));
|
|
39
|
+
var import_utils = require("../../../utils");
|
|
40
|
+
var import_hooks2 = require("../../../hooks");
|
|
41
|
+
var import_utils2 = require("../../../utils");
|
|
42
|
+
var SelectDate = (props) => {
|
|
43
|
+
const { onDateChange, times, currentDate } = props;
|
|
44
|
+
const appointmentBooking = (0, import_hooks.useAppointmentBooking)();
|
|
45
|
+
const { currentSelectedResources, setTimes } = (0, import_context.useAppointmentBookingContext)();
|
|
46
|
+
const utils = (0, import_hooks2.contextUtils)();
|
|
47
|
+
const [SelectDateOS] = (0, import_useComponents.default)({
|
|
48
|
+
components: ["SelectDateOS"]
|
|
49
|
+
});
|
|
50
|
+
const resourceCode = (0, import_react.useMemo)(() => {
|
|
51
|
+
const { resourceSort } = (appointmentBooking == null ? void 0 : appointmentBooking.otherParams) || {};
|
|
52
|
+
const resources = appointmentBooking.getResourcesList();
|
|
53
|
+
const { resourceCodes } = (0, import_utils.processResourceList)(resources, resourceSort);
|
|
54
|
+
return (resourceCodes == null ? void 0 : resourceCodes[0]) || "";
|
|
55
|
+
}, []);
|
|
56
|
+
const currentResourceName = (0, import_react.useMemo)(() => {
|
|
57
|
+
var _a;
|
|
58
|
+
const currentResource = (_a = currentSelectedResources == null ? void 0 : currentSelectedResources[0]) == null ? void 0 : _a.currentSelectedResource;
|
|
59
|
+
const resourceItem = (currentResource == null ? void 0 : currentResource.resourceItem) || {};
|
|
60
|
+
const name = (0, import_utils.getResourceTitle)(
|
|
61
|
+
appointmentBooking,
|
|
62
|
+
resourceItem == null ? void 0 : resourceItem.code,
|
|
63
|
+
utils,
|
|
64
|
+
resourceItem
|
|
65
|
+
);
|
|
66
|
+
return name;
|
|
67
|
+
}, [currentSelectedResources]);
|
|
68
|
+
const onStepChange = () => {
|
|
69
|
+
(0, import_utils2.clearDataByStepKey)("select-service", appointmentBooking, setTimes);
|
|
70
|
+
const stepLists = appointmentBooking.getStepList();
|
|
71
|
+
const serviceIndex = stepLists.findIndex(
|
|
72
|
+
(item) => (item == null ? void 0 : item.key) === "select-service"
|
|
73
|
+
);
|
|
74
|
+
appointmentBooking.gotoStep(serviceIndex);
|
|
75
|
+
};
|
|
76
|
+
return SelectDateOS ? /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
|
|
77
|
+
SelectDateOS,
|
|
78
|
+
{
|
|
79
|
+
isTimeSlicing: true,
|
|
80
|
+
currentDate,
|
|
81
|
+
resourceCode,
|
|
82
|
+
resourceName: currentResourceName,
|
|
83
|
+
onDateChange,
|
|
84
|
+
onStepChange,
|
|
85
|
+
times
|
|
86
|
+
}
|
|
87
|
+
)) : null;
|
|
88
|
+
};
|
|
89
|
+
var SelectDateOS_default = SelectDate;
|
|
@@ -39,6 +39,7 @@ var import_context = require("../../context");
|
|
|
39
39
|
var import_utils2 = require("../Resource/utils");
|
|
40
40
|
var import_hooks = require("../../hooks");
|
|
41
41
|
var import_utils3 = require("../../utils");
|
|
42
|
+
var import_SelectDateOS = __toESM(require("./components/SelectDateOS"));
|
|
42
43
|
var import_index = require("./index.less");
|
|
43
44
|
var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
|
|
44
45
|
const [selectedResource, setSelectedResource] = (0, import_react.useState)("");
|
|
@@ -51,6 +52,7 @@ var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
|
|
|
51
52
|
} = (0, import_context.useAppointmentBookingContext)();
|
|
52
53
|
const { getResourceTimeSlot, getResourceList } = (0, import_hooks.useAppointmentBookingResource)();
|
|
53
54
|
const { nextStep } = (0, import_hooks.useAppointmentBookingStep)();
|
|
55
|
+
const [currentDate, setCurrentDate] = (0, import_react.useState)(void 0);
|
|
54
56
|
(0, import_react.useImperativeHandle)(ref, () => ({
|
|
55
57
|
next: () => {
|
|
56
58
|
const isUnSelectedTimes = appointmentBooking.checkCartItems("date");
|
|
@@ -85,7 +87,30 @@ var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
|
|
|
85
87
|
setSelectedResource(e == null ? void 0 : e.start_time);
|
|
86
88
|
getAutoSelect(e);
|
|
87
89
|
};
|
|
88
|
-
|
|
90
|
+
(0, import_react.useEffect)(() => {
|
|
91
|
+
const getCurrentDate = async () => {
|
|
92
|
+
var _a;
|
|
93
|
+
const res = await appointmentBooking.getDateRange();
|
|
94
|
+
const date = (_a = res == null ? void 0 : res[0]) == null ? void 0 : _a.date;
|
|
95
|
+
setCurrentDate(date);
|
|
96
|
+
};
|
|
97
|
+
getCurrentDate();
|
|
98
|
+
}, []);
|
|
99
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
100
|
+
import_SelectDateOS.default,
|
|
101
|
+
{
|
|
102
|
+
onDateChange: (currentData) => {
|
|
103
|
+
if ((times == null ? void 0 : times.length) > 0) {
|
|
104
|
+
appointmentBooking.deleteCartItemInfo("time");
|
|
105
|
+
}
|
|
106
|
+
setCurrentDate(currentData == null ? void 0 : currentData.date);
|
|
107
|
+
appointmentBooking.setDateRange([currentData]);
|
|
108
|
+
getResourceTimeSlot();
|
|
109
|
+
},
|
|
110
|
+
times,
|
|
111
|
+
currentDate
|
|
112
|
+
}
|
|
113
|
+
), (times == null ? void 0 : times.length) > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-time-slicing-wrap" }, times.map((item, index) => {
|
|
89
114
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
90
115
|
"div",
|
|
91
116
|
{
|
|
@@ -96,11 +121,6 @@ var TimeSlicing = (0, import_react.forwardRef)((props, ref) => {
|
|
|
96
121
|
/* @__PURE__ */ import_react.default.createElement("span", null, item == null ? void 0 : item.start_time),
|
|
97
122
|
/* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-chevron-right", className: `icon` })
|
|
98
123
|
);
|
|
99
|
-
})) :
|
|
100
|
-
import_materials.PisellEmpty,
|
|
101
|
-
{
|
|
102
|
-
description: import_utils.locales.getText("pisell2.appointment.unselect.time")
|
|
103
|
-
}
|
|
104
|
-
);
|
|
124
|
+
})) : null);
|
|
105
125
|
});
|
|
106
126
|
var TimeSlicing_default = TimeSlicing;
|
|
@@ -43,6 +43,8 @@ var import_materials = require("@pisell/materials");
|
|
|
43
43
|
var import_hooks = require("../../hooks");
|
|
44
44
|
var import_voucher = require("../../../booking/components/voucher/index.less");
|
|
45
45
|
var import_index = require("./index.less");
|
|
46
|
+
var import_ahooks = require("ahooks");
|
|
47
|
+
var import_context = require("../../context");
|
|
46
48
|
var ShopDiscountHooks = {
|
|
47
49
|
onInited: "shopDiscount:onInited",
|
|
48
50
|
onDestroy: "shopDiscount:onDestroy",
|
|
@@ -66,11 +68,17 @@ var VoucherCard = (props) => {
|
|
|
66
68
|
const productRef = (0, import_react.useRef)(products);
|
|
67
69
|
const { openLoginModal } = (0, import_hooks.useAppointmentBookingLogin)();
|
|
68
70
|
const { accountLists } = (0, import_hooks.useAppointmentBookingAccount)();
|
|
71
|
+
const { summary } = (0, import_context.useAppointmentBookingContext)();
|
|
72
|
+
const { originTotal, total } = summary;
|
|
69
73
|
const cart = (_b = appointmentBooking == null ? void 0 : appointmentBooking.store) == null ? void 0 : _b.cart;
|
|
70
74
|
const isUserLoggedIn = (0, import_react.useMemo)(() => {
|
|
71
75
|
var _a2, _b2;
|
|
72
76
|
return !!((_b2 = (_a2 = utils == null ? void 0 : utils.token) == null ? void 0 : _a2.get) == null ? void 0 : _b2.call(_a2)) || false;
|
|
73
77
|
}, [store]);
|
|
78
|
+
(0, import_react.useEffect)(() => {
|
|
79
|
+
const shopDiscount2 = pisellos.getModule("shopDiscount");
|
|
80
|
+
shopDiscount2.setOriginTotalAmount(originTotal);
|
|
81
|
+
}, [originTotal]);
|
|
74
82
|
const availableData = (0, import_react.useMemo)(() => {
|
|
75
83
|
return discountList.filter((item) => !!item.isAvailable).map((discount) => {
|
|
76
84
|
return {
|
|
@@ -89,6 +97,12 @@ var VoucherCard = (props) => {
|
|
|
89
97
|
(0, import_react.useEffect)(() => {
|
|
90
98
|
shopDiscount.setProductList(products);
|
|
91
99
|
}, [products]);
|
|
100
|
+
const { run: onCartChange } = (0, import_ahooks.useDebounceFn)(
|
|
101
|
+
() => {
|
|
102
|
+
onCartChangeFn();
|
|
103
|
+
},
|
|
104
|
+
{ wait: 300 }
|
|
105
|
+
);
|
|
92
106
|
const batchUpdateCart = (productList) => {
|
|
93
107
|
var _a2;
|
|
94
108
|
const items = productList.map((item) => {
|
|
@@ -106,13 +120,16 @@ var VoucherCard = (props) => {
|
|
|
106
120
|
});
|
|
107
121
|
(_a2 = appointmentBooking == null ? void 0 : appointmentBooking.batchUpdateCart) == null ? void 0 : _a2.call(appointmentBooking, items);
|
|
108
122
|
};
|
|
109
|
-
const
|
|
110
|
-
var _a2, _b2, _c;
|
|
123
|
+
const onCartChangeFn = () => {
|
|
124
|
+
var _a2, _b2, _c, _d;
|
|
111
125
|
const products2 = cart == null ? void 0 : cart.getItems();
|
|
112
126
|
(_c = shopDiscount == null ? void 0 : shopDiscount.setBookingSubject) == null ? void 0 : _c.call(
|
|
113
127
|
shopDiscount,
|
|
114
128
|
(_b2 = (_a2 = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a2.bookingSetting) == null ? void 0 : _b2.bookingSubject
|
|
115
129
|
);
|
|
130
|
+
if (Array.isArray((_d = shopDiscount == null ? void 0 : shopDiscount.getDiscountList) == null ? void 0 : _d.call(shopDiscount)) && !(shopDiscount == null ? void 0 : shopDiscount.getDiscountList().length)) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
116
133
|
const val = shopDiscount.calcDiscount(products2);
|
|
117
134
|
batchUpdateCart(val.productList);
|
|
118
135
|
};
|
|
@@ -138,9 +155,18 @@ var VoucherCard = (props) => {
|
|
|
138
155
|
}
|
|
139
156
|
);
|
|
140
157
|
pisellos.effects.on("appointmentBooking_cart:onAddItem", onCartChange);
|
|
141
|
-
pisellos.effects.on(
|
|
142
|
-
|
|
143
|
-
|
|
158
|
+
pisellos.effects.on(
|
|
159
|
+
"appointmentBooking_cart:onUpdateQuotationPrice",
|
|
160
|
+
onCartChange
|
|
161
|
+
);
|
|
162
|
+
pisellos.effects.on(
|
|
163
|
+
"appointmentBooking_cart:onUpdateBookingDate",
|
|
164
|
+
onCartChange
|
|
165
|
+
);
|
|
166
|
+
pisellos.effects.on(
|
|
167
|
+
"appointmentBooking_cart:onUpdateCartItemNums",
|
|
168
|
+
onCartChange
|
|
169
|
+
);
|
|
144
170
|
pisellos.effects.on("appointmentBooking_cart:onRemoveItem", onCartChange);
|
|
145
171
|
pisellos.effects.on(
|
|
146
172
|
ShopDiscountHooks.onDiscountListChange,
|
|
@@ -157,8 +183,13 @@ var VoucherCard = (props) => {
|
|
|
157
183
|
batchUpdateCart(val.productList);
|
|
158
184
|
setCode("");
|
|
159
185
|
} else {
|
|
186
|
+
const content = {
|
|
187
|
+
time_limit: import_utils.locales.getText(
|
|
188
|
+
"pisell2.text.goodpass.code-invalid-expired"
|
|
189
|
+
)
|
|
190
|
+
};
|
|
160
191
|
(0, import_materials.PisellToast)({
|
|
161
|
-
content: val.type === "server" ? import_utils.locales.getText("pisell2.text.goodpass.code-invalid") : import_utils.locales.getText("pisell2.text.goodpass.code-invalid-cart")
|
|
192
|
+
content: val.type === "server" ? import_utils.locales.getText("pisell2.text.goodpass.code-invalid") : content[val == null ? void 0 : val.unavailableReason] || import_utils.locales.getText("pisell2.text.goodpass.code-invalid-cart")
|
|
162
193
|
});
|
|
163
194
|
}
|
|
164
195
|
};
|
|
@@ -72,7 +72,7 @@ export declare const useAppointmentBookingAccount: () => {
|
|
|
72
72
|
export declare const useAppointmentBookingResource: () => {
|
|
73
73
|
getResourceTimeSlot: (index?: number) => Promise<void>;
|
|
74
74
|
getResourceList: () => {
|
|
75
|
-
resources: any;
|
|
75
|
+
resources: any[];
|
|
76
76
|
resourceCodes: any;
|
|
77
77
|
};
|
|
78
78
|
};
|
|
@@ -489,18 +489,13 @@ var useAppointmentBookingResource = () => {
|
|
|
489
489
|
const { appointmentBooking, setResources, setTimes } = (0, import_context.useAppointmentBookingContext)();
|
|
490
490
|
const { resourceSort } = (appointmentBooking == null ? void 0 : appointmentBooking.otherParams) || {};
|
|
491
491
|
const getResourceList = () => {
|
|
492
|
-
var _a;
|
|
493
492
|
let resources = appointmentBooking.getResourcesList();
|
|
494
|
-
resources =
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
}
|
|
500
|
-
const _resources = ((_a = resources == null ? void 0 : resources[0]) == null ? void 0 : _a.resources) || [];
|
|
501
|
-
const resourceCodes = _resources.map((item) => item.code);
|
|
502
|
-
setResources(resources || []);
|
|
503
|
-
return { resources, resourceCodes };
|
|
493
|
+
const { resources: processedResources, resourceCodes } = (0, import_utils2.processResourceList)(
|
|
494
|
+
resources,
|
|
495
|
+
resourceSort
|
|
496
|
+
);
|
|
497
|
+
setResources(processedResources || []);
|
|
498
|
+
return { resources: processedResources, resourceCodes };
|
|
504
499
|
};
|
|
505
500
|
const getResourceTimeSlot = async (index) => {
|
|
506
501
|
const { resourceCodes } = getResourceList();
|
|
@@ -115,6 +115,7 @@ declare const _default: {
|
|
|
115
115
|
'pisell2.text.goodpass.enter-code': string;
|
|
116
116
|
'pisell2.text.goodpass.code-invalid': string;
|
|
117
117
|
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
118
|
+
'pisell2.text.goodpass.code-invalid-expired': string;
|
|
118
119
|
'pisell2.text.goodpass.login': string;
|
|
119
120
|
'pisell2.text.goodpass.login-tip': string;
|
|
120
121
|
'pisell2.text.contact-info.title': string;
|
|
@@ -235,6 +236,7 @@ declare const _default: {
|
|
|
235
236
|
'pisell2.text.goodpass.enter-code': string;
|
|
236
237
|
'pisell2.text.goodpass.code-invalid': string;
|
|
237
238
|
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
239
|
+
'pisell2.text.goodpass.code-invalid-expired': string;
|
|
238
240
|
'pisell2.text.goodpass.login': string;
|
|
239
241
|
'pisell2.text.goodpass.login-tip': string;
|
|
240
242
|
'pisell2.text.contact-info.title': string;
|
|
@@ -355,6 +357,7 @@ declare const _default: {
|
|
|
355
357
|
'pisell2.text.goodpass.enter-code': string;
|
|
356
358
|
'pisell2.text.goodpass.code-invalid': string;
|
|
357
359
|
'pisell2.text.goodpass.code-invalid-cart': string;
|
|
360
|
+
'pisell2.text.goodpass.code-invalid-expired': string;
|
|
358
361
|
'pisell2.text.goodpass.login': string;
|
|
359
362
|
'pisell2.text.goodpass.login-tip': string;
|
|
360
363
|
'pisell2.text.contact-info.title': string;
|
|
@@ -139,6 +139,7 @@ var locales_default = {
|
|
|
139
139
|
"pisell2.text.goodpass.enter-code": "Enter Code",
|
|
140
140
|
"pisell2.text.goodpass.code-invalid": "Current code is invalid",
|
|
141
141
|
"pisell2.text.goodpass.code-invalid-cart": "No eligible items in the cart",
|
|
142
|
+
"pisell2.text.goodpass.code-invalid-expired": "Current coupon is not valid in use",
|
|
142
143
|
"pisell2.text.goodpass.login": "Login",
|
|
143
144
|
"pisell2.text.goodpass.login-tip": " for member benefit Or use account credit",
|
|
144
145
|
"pisell2.text.contact-info.title": "Contact info"
|
|
@@ -259,6 +260,7 @@ var locales_default = {
|
|
|
259
260
|
"pisell2.text.goodpass.enter-code": "请输入券码",
|
|
260
261
|
"pisell2.text.goodpass.code-invalid": "当前券码不可用",
|
|
261
262
|
"pisell2.text.goodpass.code-invalid-cart": "当前购物车中无可用商品",
|
|
263
|
+
"pisell2.text.goodpass.code-invalid-expired": "当前优惠券不在使用期限内",
|
|
262
264
|
"pisell2.text.goodpass.login": "登录",
|
|
263
265
|
"pisell2.text.goodpass.login-tip": "以获取会员福利或使用账户积分",
|
|
264
266
|
"pisell2.text.contact-info.title": "联系信息"
|
|
@@ -379,6 +381,7 @@ var locales_default = {
|
|
|
379
381
|
"pisell2.text.goodpass.enter-code": "請輸入券碼",
|
|
380
382
|
"pisell2.text.goodpass.code-invalid": "當前券碼不可用",
|
|
381
383
|
"pisell2.text.goodpass.code-invalid-cart": "當前購物車中無可用商品",
|
|
384
|
+
"pisell2.text.goodpass.code-invalid-expired": "當前優惠券不在使用期限內",
|
|
382
385
|
"pisell2.text.goodpass.login": "登錄",
|
|
383
386
|
"pisell2.text.goodpass.login-tip": "以獲取會員福利或使用賬戶積分",
|
|
384
387
|
"pisell2.text.contact-info.title": "聯繫信息"
|
|
@@ -39,6 +39,19 @@ export declare const formatCarts: (data: any[], resources: any[], utils: any, ac
|
|
|
39
39
|
* @Date: 2025-04-14 11:16
|
|
40
40
|
*/
|
|
41
41
|
export declare const sortResources: (resources: any[], resourceSort: any[]) => any[] | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* @title: 处理资源列表并提取资源代码
|
|
44
|
+
* @description: 对资源列表进行排序,并提取 resourceCodes
|
|
45
|
+
* @param {any[]} resources - 原始资源列表
|
|
46
|
+
* @param {any[]} resourceSort - 资源排序配置
|
|
47
|
+
* @return {*} 返回处理后的资源列表和资源代码数组
|
|
48
|
+
* @Author: WangHan
|
|
49
|
+
* @Date: 2025-11-21 15:33
|
|
50
|
+
*/
|
|
51
|
+
export declare const processResourceList: (resources: any[], resourceSort: any[]) => {
|
|
52
|
+
resources: any[];
|
|
53
|
+
resourceCodes: any;
|
|
54
|
+
};
|
|
42
55
|
export declare const getMeAccount: (val: any[]) => any;
|
|
43
56
|
export declare const getCustomer: (utils: any) => any;
|
|
44
57
|
export declare const formatCustomer: (val: any) => {
|
|
@@ -201,3 +214,13 @@ export declare const currentRenderLists: (resources: any[], code: any) => any;
|
|
|
201
214
|
* @Date: 2025-05-25 23:17
|
|
202
215
|
*/
|
|
203
216
|
export declare const updateCartResources: (item: any, value?: any, currentSelectedResources?: any) => any;
|
|
217
|
+
/**
|
|
218
|
+
* @title: 根据步骤key清空数据
|
|
219
|
+
* @param {string} key - 当前步骤的key
|
|
220
|
+
* @param {any} appointmentBooking - 预约预订实例
|
|
221
|
+
* @param {(times: any[]) => void} setTimes - 设置时间列表的回调函数
|
|
222
|
+
* @return {string[]} 返回需要清空的数据类型数组
|
|
223
|
+
* @Author: WangHan
|
|
224
|
+
* @Date: 2025-11-21 15:40
|
|
225
|
+
*/
|
|
226
|
+
export declare const clearDataByStepKey: (key: string, appointmentBooking: any, setTimes?: ((times: any[]) => void) | undefined) => string[] | undefined;
|
|
@@ -23,6 +23,7 @@ __export(utils_exports, {
|
|
|
23
23
|
checkAndGoNext: () => checkAndGoNext,
|
|
24
24
|
checkAndMarkCartRenderError: () => checkAndMarkCartRenderError,
|
|
25
25
|
checkHasFormStep: () => checkHasFormStep,
|
|
26
|
+
clearDataByStepKey: () => clearDataByStepKey,
|
|
26
27
|
currentAppointmentBoard: () => currentAppointmentBoard,
|
|
27
28
|
currentRenderLists: () => currentRenderLists,
|
|
28
29
|
formatCarts: () => formatCarts,
|
|
@@ -42,6 +43,7 @@ __export(utils_exports, {
|
|
|
42
43
|
getResourceTitle: () => getResourceTitle,
|
|
43
44
|
hasResourceFormId: () => hasResourceFormId,
|
|
44
45
|
openForm: () => openForm,
|
|
46
|
+
processResourceList: () => processResourceList,
|
|
45
47
|
sortResources: () => sortResources,
|
|
46
48
|
updateBookingFormStorage: () => updateBookingFormStorage,
|
|
47
49
|
updateCartResources: () => updateCartResources,
|
|
@@ -165,6 +167,18 @@ var sortResources = (resources, resourceSort) => {
|
|
|
165
167
|
console.log(error, "wh2222");
|
|
166
168
|
}
|
|
167
169
|
};
|
|
170
|
+
var processResourceList = (resources, resourceSort) => {
|
|
171
|
+
var _a;
|
|
172
|
+
const processedResources = resources.map((item) => {
|
|
173
|
+
return {
|
|
174
|
+
...item,
|
|
175
|
+
resources: sortResources((item == null ? void 0 : item.resources) || [], resourceSort)
|
|
176
|
+
};
|
|
177
|
+
});
|
|
178
|
+
const _resources = ((_a = processedResources == null ? void 0 : processedResources[0]) == null ? void 0 : _a.resources) || [];
|
|
179
|
+
const resourceCodes = _resources.map((item) => item.code);
|
|
180
|
+
return { resources: processedResources, resourceCodes };
|
|
181
|
+
};
|
|
168
182
|
var getMeAccount = (val) => {
|
|
169
183
|
return val == null ? void 0 : val.find((d) => !(d == null ? void 0 : d.isGuest));
|
|
170
184
|
};
|
|
@@ -487,12 +501,100 @@ var updateCartResources = (item, value, currentSelectedResources) => {
|
|
|
487
501
|
}
|
|
488
502
|
return newResource || [];
|
|
489
503
|
};
|
|
504
|
+
var STEP_CLEAR_CONFIG = {
|
|
505
|
+
"select-time": ["time"],
|
|
506
|
+
"fill-form": ["time", "form"],
|
|
507
|
+
"select-resource": ["time", "form", "resource"],
|
|
508
|
+
"select-date": ["time", "form", "resource", "date"],
|
|
509
|
+
"select-service": ["time", "form", "resource", "date"]
|
|
510
|
+
};
|
|
511
|
+
var getMatchedStepKey = (key) => {
|
|
512
|
+
if (STEP_CLEAR_CONFIG[key]) {
|
|
513
|
+
return key;
|
|
514
|
+
}
|
|
515
|
+
const matchedKey = Object.keys(STEP_CLEAR_CONFIG).find(
|
|
516
|
+
(stepKey) => key.startsWith(stepKey)
|
|
517
|
+
);
|
|
518
|
+
return matchedKey || null;
|
|
519
|
+
};
|
|
520
|
+
var createClearActions = (appointmentBooking, setTimes) => {
|
|
521
|
+
return {
|
|
522
|
+
time: () => {
|
|
523
|
+
appointmentBooking.deleteCartItemInfo("time");
|
|
524
|
+
setTimes == null ? void 0 : setTimes([]);
|
|
525
|
+
},
|
|
526
|
+
resource: () => {
|
|
527
|
+
appointmentBooking.deleteCartItemInfo("resource");
|
|
528
|
+
},
|
|
529
|
+
form: () => {
|
|
530
|
+
appointmentBooking.deleteCartItemInfo("relationForms");
|
|
531
|
+
appointmentBooking.removeStep("fill-form");
|
|
532
|
+
},
|
|
533
|
+
date: () => {
|
|
534
|
+
var _a;
|
|
535
|
+
const { bookingProcess } = ((_a = appointmentBooking == null ? void 0 : appointmentBooking.otherParams) == null ? void 0 : _a.productModuleParams) || {};
|
|
536
|
+
if (bookingProcess !== "date_first") {
|
|
537
|
+
appointmentBooking.clearDateRange();
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
var clearServiceRelatedSteps = (appointmentBooking) => {
|
|
543
|
+
const stepList = (appointmentBooking == null ? void 0 : appointmentBooking.getStepList()) || [];
|
|
544
|
+
const stepKeysToRemove = ["select-resource_", "fill-form_"];
|
|
545
|
+
stepList.forEach((item) => {
|
|
546
|
+
if (item == null ? void 0 : item.isSkip) {
|
|
547
|
+
appointmentBooking.updateStep(item.key, {
|
|
548
|
+
key: item.key,
|
|
549
|
+
isSkip: false
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
const shouldRemove = stepKeysToRemove.some(
|
|
553
|
+
(prefix) => {
|
|
554
|
+
var _a;
|
|
555
|
+
return (_a = item.key) == null ? void 0 : _a.startsWith(prefix);
|
|
556
|
+
}
|
|
557
|
+
);
|
|
558
|
+
if (shouldRemove) {
|
|
559
|
+
appointmentBooking.removeStep(item.key);
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
};
|
|
563
|
+
var executeClearActions = (dataTypes, clearActions) => {
|
|
564
|
+
const uniqueTypes = Array.from(new Set(dataTypes));
|
|
565
|
+
uniqueTypes.forEach((type) => {
|
|
566
|
+
const action = clearActions[type];
|
|
567
|
+
if (action) {
|
|
568
|
+
action();
|
|
569
|
+
}
|
|
570
|
+
});
|
|
571
|
+
};
|
|
572
|
+
var clearDataByStepKey = (key, appointmentBooking, setTimes) => {
|
|
573
|
+
if (!key || !appointmentBooking) {
|
|
574
|
+
return;
|
|
575
|
+
}
|
|
576
|
+
if (key === "select-service") {
|
|
577
|
+
clearServiceRelatedSteps(appointmentBooking);
|
|
578
|
+
}
|
|
579
|
+
const stepKey = getMatchedStepKey(key);
|
|
580
|
+
if (!stepKey) {
|
|
581
|
+
return;
|
|
582
|
+
}
|
|
583
|
+
const clearDataTypes = STEP_CLEAR_CONFIG[stepKey] || [];
|
|
584
|
+
if (clearDataTypes.length === 0) {
|
|
585
|
+
return clearDataTypes;
|
|
586
|
+
}
|
|
587
|
+
const clearActions = createClearActions(appointmentBooking, setTimes);
|
|
588
|
+
executeClearActions(clearDataTypes, clearActions);
|
|
589
|
+
return clearDataTypes;
|
|
590
|
+
};
|
|
490
591
|
// Annotate the CommonJS export names for ESM import in node:
|
|
491
592
|
0 && (module.exports = {
|
|
492
593
|
Toast,
|
|
493
594
|
checkAndGoNext,
|
|
494
595
|
checkAndMarkCartRenderError,
|
|
495
596
|
checkHasFormStep,
|
|
597
|
+
clearDataByStepKey,
|
|
496
598
|
currentAppointmentBoard,
|
|
497
599
|
currentRenderLists,
|
|
498
600
|
formatCarts,
|
|
@@ -512,6 +614,7 @@ var updateCartResources = (item, value, currentSelectedResources) => {
|
|
|
512
614
|
getResourceTitle,
|
|
513
615
|
hasResourceFormId,
|
|
514
616
|
openForm,
|
|
617
|
+
processResourceList,
|
|
515
618
|
sortResources,
|
|
516
619
|
updateBookingFormStorage,
|
|
517
620
|
updateCartResources,
|
|
@@ -68,14 +68,15 @@ var formatProducts = (values) => {
|
|
|
68
68
|
discountway: "num",
|
|
69
69
|
discount_type: "discount",
|
|
70
70
|
bundle_edit: (_c = item._extend) == null ? void 0 : _c.bundle_edit,
|
|
71
|
-
product_bundle: (0, import_utils.formatProductBundle)((_e = (_d = item._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.bundle),
|
|
71
|
+
product_bundle: (0, import_utils.formatProductBundle)((_e = (_d = item._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.bundle, item.is_price_include_tax),
|
|
72
72
|
"product_option_item": (0, import_utils.formatProductOption)((_g = (_f = item._extend) == null ? void 0 : _f.other) == null ? void 0 : _g.option),
|
|
73
73
|
"product_variant_id": ((_i = (_h = item._extend) == null ? void 0 : _h.other) == null ? void 0 : _i.product_variant_id) || 0,
|
|
74
74
|
"source_product_price": (0, import_utils.getSourceProductPrice)(item),
|
|
75
75
|
"main_product_selling_price": (0, import_utils.getMainProductSellingPrice)(item) ?? (0, import_utils.formatProductPrice)(item),
|
|
76
76
|
"calculated_original_price": (0, import_utils.formatOriginalPrice)(item),
|
|
77
77
|
"calculated_selling_price": (0, import_utils.formatSellingPrice)(item),
|
|
78
|
-
"tax_fee": item._extend.tax_fee
|
|
78
|
+
"tax_fee": item._extend.tax_fee,
|
|
79
|
+
is_price_include_tax: item.is_price_include_tax
|
|
79
80
|
};
|
|
80
81
|
});
|
|
81
82
|
return arr;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -49,6 +49,7 @@ var import_useScanManager = __toESM(require("../../../ticketBooking/hooks/pisell
|
|
|
49
49
|
var import_priceKeyboard = require("../../../../pro/priceKeyboard");
|
|
50
50
|
var import_pisellos = require("../../../ticketBooking/hooks/pisellos");
|
|
51
51
|
var import_useShopDiscountModule = require("../../../ticketBooking/hooks/pisellos/useShopDiscountModule");
|
|
52
|
+
var import_useLogger = __toESM(require("../../../../hooks/useLogger"));
|
|
52
53
|
var createToastContent = (text) => /* @__PURE__ */ import_react.default.createElement("div", { className: "action-buttons-toast-content" }, text);
|
|
53
54
|
var ActionButtons = ({
|
|
54
55
|
state,
|
|
@@ -69,6 +70,7 @@ var ActionButtons = ({
|
|
|
69
70
|
const bookingTicket = (0, import_pisellos.useBookingTicket)();
|
|
70
71
|
const { ScheduleModule } = pisellosAllModule;
|
|
71
72
|
const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
|
|
73
|
+
const logger = (0, import_useLogger.default)();
|
|
72
74
|
const { clearAllScanListenersTaskQueue } = (0, import_useScanManager.default)();
|
|
73
75
|
(0, import_react.useEffect)(() => {
|
|
74
76
|
if (!bookingTicket) return;
|
|
@@ -187,6 +189,10 @@ var ActionButtons = ({
|
|
|
187
189
|
setShowClearModal(true);
|
|
188
190
|
};
|
|
189
191
|
const handleClearItemsOnly = () => {
|
|
192
|
+
logger.addLog({
|
|
193
|
+
title: "ActionButtons: handleClearItemsOnly 调用",
|
|
194
|
+
metadata: {}
|
|
195
|
+
});
|
|
190
196
|
clearAllScanListenersTaskQueue();
|
|
191
197
|
if (!hasCartItems) {
|
|
192
198
|
Toast == null ? void 0 : Toast.info(
|
|
@@ -229,6 +235,10 @@ var ActionButtons = ({
|
|
|
229
235
|
};
|
|
230
236
|
const handleClearAllAndReset = () => {
|
|
231
237
|
var _a2, _b2;
|
|
238
|
+
logger.addLog({
|
|
239
|
+
title: "ActionButtons: handleClearAllAndReset 调用",
|
|
240
|
+
metadata: {}
|
|
241
|
+
});
|
|
232
242
|
clearAllScanListenersTaskQueue();
|
|
233
243
|
(_b2 = (_a2 = window == null ? void 0 : window.shopApi) == null ? void 0 : _a2.bookingTicket) == null ? void 0 : _b2.clearAllCart();
|
|
234
244
|
setShowClearModal(false);
|
|
@@ -36,7 +36,7 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_antd = require("antd");
|
|
37
37
|
var import_utils = require("@pisell/utils");
|
|
38
38
|
var import_materials = require("@pisell/materials");
|
|
39
|
-
var
|
|
39
|
+
var import_NumericStepper = __toESM(require("../../../../pro/NumericStepper"));
|
|
40
40
|
var import_pisellPriceKeyboardModal = __toESM(require("../../../../pro/pisellPriceKeyboardModal"));
|
|
41
41
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
42
42
|
var import_index = require("./index.less");
|
|
@@ -244,8 +244,9 @@ var CustomiseItemModal = ({
|
|
|
244
244
|
},
|
|
245
245
|
import_utils.locales.getText("pisell2.customise-item.save")
|
|
246
246
|
)))), /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-quantity-selector-fixed" }, /* @__PURE__ */ import_react.default.createElement(
|
|
247
|
-
|
|
247
|
+
import_NumericStepper.default,
|
|
248
248
|
{
|
|
249
|
+
variant: "capsule",
|
|
249
250
|
value: quantity,
|
|
250
251
|
min: 1,
|
|
251
252
|
max: 999,
|
|
@@ -257,9 +258,7 @@ var CustomiseItemModal = ({
|
|
|
257
258
|
} else {
|
|
258
259
|
setQuantity(value);
|
|
259
260
|
}
|
|
260
|
-
}
|
|
261
|
-
size: "middle",
|
|
262
|
-
enablePriceAdjust: true
|
|
261
|
+
}
|
|
263
262
|
}
|
|
264
263
|
))),
|
|
265
264
|
/* @__PURE__ */ import_react.default.createElement(
|