@pisell/private-materials 6.6.5 → 6.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/businessModel/SalesModel/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Services/index.js +25 -22
- package/es/components/appointmentBooking/components/Voucher/index.js +35 -6
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/booking/addons/index.js +26 -17
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/actionButtons/index.js +3 -1
- package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +548 -84
- package/es/components/booking/components/footer/index.js +43 -33
- package/es/components/booking/components/footer/utils.d.ts +20 -1
- package/es/components/booking/components/footer/utils.js +169 -68
- package/es/components/booking/components/voucher/index.js +59 -15
- package/es/components/booking/components/voucher/index.less +4 -1
- package/es/components/booking/components/voucherModal/index.less +1 -0
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/hooks/useQuotation.js +4 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info/service2/Lists.d.ts +1 -0
- package/es/components/booking/info/service2/utils.js +1 -0
- package/es/components/booking/info2/cartClientCard/index.js +5 -3
- package/es/components/booking/info2/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.js +9 -9
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editNormalService/index.js +6 -0
- package/es/components/booking/info2/service/editService/index.js +60 -19
- package/es/components/booking/info2/service/editService/utils.js +66 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- package/es/components/booking/materiels/duration/index.d.ts +0 -1
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +3 -2
- package/es/components/booking/utils.js +15 -2
- package/es/components/checkout/PaymentModal.js +15 -10
- package/es/components/checkout/PaymentPlugin.d.ts +1 -0
- package/es/components/checkout/components/AmountSummary/index.less +4 -5
- package/es/components/checkout/components/WalletPassModule/index.js +1 -0
- package/es/components/checkout/components/WalletPassModule/utils.js +14 -3
- package/es/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/es/components/checkout/hooks/useWalletPass.js +310 -189
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -2
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/payo/config.js +70 -32
- package/es/components/eftposPay/payo/payment.js +579 -0
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tip.d.ts +0 -1
- package/es/components/eftposPay/utils/log/index.js +371 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/index.d.ts +2 -2
- package/es/components/index.js +2 -2
- package/es/components/login/index.d.ts +0 -1
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -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/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/es/components/pay/toC/index.js +73 -31
- package/es/components/pay/toC/locales.js +6 -3
- package/es/components/pay/toC/serve.d.ts +18 -0
- package/es/components/pay/toC/serve.js +29 -1
- package/es/components/pay/toC/status.js +3 -0
- 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/BirthdayField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/calendar/index.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/es/components/schedules/products/list/index.d.ts +0 -1
- package/es/components/schedules/resources/index.d.ts +0 -1
- package/es/components/schedules/resources/list/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/subTotal/index.js +1 -1
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/es/components/{wallet/serve.js → systemSettings/registry/components/GroupModal.js} +145 -190
- package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
- package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
- package/es/components/systemSettings/registry/components/SectionList.js +174 -0
- package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
- package/es/components/systemSettings/registry/components/index.d.ts +4 -0
- package/es/components/systemSettings/registry/components/index.js +4 -0
- package/es/components/systemSettings/registry/index.d.ts +5 -0
- package/es/components/systemSettings/registry/index.js +1059 -0
- package/es/components/systemSettings/registry/index.less +410 -0
- package/es/components/systemSettings/registry/locales.js +300 -0
- package/es/components/systemSettings/registry/services.js +472 -0
- package/es/components/systemSettings/registry/types.js +1 -0
- package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
- package/es/components/systemSettings/registry/utils/validators.js +44 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +13 -8
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/utils/index.d.ts +5 -1
- package/es/components/ticketBooking/utils/index.js +37 -17
- package/es/components/walletList/index.d.ts +0 -25
- package/es/components/walletList/index.js +173 -41
- package/es/components/walletList/locales.js +12 -3
- package/es/components/walletList/serve.d.ts +19 -0
- package/es/components/walletList/serve.js +94 -5
- package/es/components/walletList/tempHolderSelector/index.d.ts +14 -0
- package/es/components/walletList/tempHolderSelector/index.js +196 -0
- package/es/components/walletList/tempHolderSelector/index.less +63 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/index.d.ts +3 -2
- package/es/index.js +4 -3
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
- package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
- package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
- package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
- package/es/plus/saasRegister/components/Header.d.ts +0 -1
- package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/es/plus/walletEditor/WalletEditor.js +60 -2
- package/es/plus/walletEditor/locales.js +12 -3
- package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
- package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/es/plus/walletPassGallery/components/passDetail/index.js +5 -1
- package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -1
- package/es/plus/walletPassGallery/components/passList/index.js +17 -5
- package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/es/plus/walletPassGallery/index.js +226 -42
- package/es/plus/walletPassGallery/locales.js +29 -5
- package/es/plus/walletPassGallery/serve.d.ts +15 -1
- package/es/plus/walletPassGallery/serve.js +59 -2
- package/es/plus/walletPassGallery/utils.js +342 -0
- package/es/pro/Login2.0/index.less +15 -8
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +35 -30
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Services/index.js +5 -2
- package/lib/components/appointmentBooking/components/Voucher/index.js +23 -3
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/booking/addons/index.js +16 -7
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/actionButtons/index.js +4 -2
- package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +293 -41
- package/lib/components/booking/components/footer/index.js +14 -2
- package/lib/components/booking/components/footer/utils.d.ts +20 -1
- package/lib/components/booking/components/footer/utils.js +114 -36
- package/lib/components/booking/components/voucher/index.js +62 -16
- package/lib/components/booking/components/voucher/index.less +4 -1
- package/lib/components/booking/components/voucherModal/index.less +1 -0
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/hooks/useQuotation.js +2 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Lists.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.js +1 -0
- package/lib/components/booking/info2/cartClientCard/index.js +4 -2
- package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.js +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
- package/lib/components/booking/info2/service/editService/index.js +74 -28
- package/lib/components/booking/info2/service/editService/utils.js +40 -3
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +3 -2
- package/lib/components/booking/utils.js +11 -0
- package/lib/components/checkout/PaymentModal.js +5 -2
- package/lib/components/checkout/PaymentPlugin.d.ts +1 -0
- package/lib/components/checkout/components/AmountSummary/index.less +4 -5
- package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
- package/lib/components/checkout/components/WalletPassModule/utils.js +13 -2
- package/lib/components/checkout/hooks/useWalletPass.d.ts +2 -2
- package/lib/components/checkout/hooks/useWalletPass.js +151 -104
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -2
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/payo/config.js +98 -73
- package/lib/components/eftposPay/payo/payment.js +357 -0
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tip.d.ts +0 -1
- package/lib/components/eftposPay/utils/log/index.js +294 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/index.d.ts +2 -2
- package/lib/components/index.js +3 -3
- package/lib/components/login/index.d.ts +0 -1
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -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/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/lib/components/pay/toC/index.js +56 -12
- package/lib/components/pay/toC/locales.js +6 -3
- package/lib/components/pay/toC/serve.d.ts +18 -0
- package/lib/components/pay/toC/serve.js +6 -0
- package/lib/components/pay/toC/status.js +5 -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/BirthdayField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/calendar/index.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/lib/components/schedules/products/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/index.d.ts +0 -1
- package/lib/components/schedules/resources/list/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/subTotal/index.js +1 -1
- package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
- package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
- package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
- package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
- package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
- package/lib/components/{wallet → systemSettings/registry}/components/index.js +13 -10
- package/lib/components/systemSettings/registry/index.d.ts +5 -0
- package/lib/components/systemSettings/registry/index.js +529 -0
- package/lib/components/systemSettings/registry/index.less +410 -0
- package/lib/components/systemSettings/registry/locales.js +324 -0
- package/lib/components/systemSettings/registry/services.js +290 -0
- package/lib/components/{wallet/RechargeableCard/serve.js → systemSettings/registry/types.js} +3 -19
- package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
- package/lib/components/systemSettings/registry/utils/validators.js +54 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +18 -12
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/utils/index.d.ts +5 -1
- package/lib/components/ticketBooking/utils/index.js +21 -6
- package/lib/components/walletList/index.d.ts +0 -25
- package/lib/components/walletList/index.js +100 -4
- package/lib/components/walletList/locales.js +12 -3
- package/lib/components/walletList/serve.d.ts +19 -0
- package/lib/components/walletList/serve.js +26 -3
- package/lib/components/walletList/tempHolderSelector/index.d.ts +14 -0
- package/lib/components/walletList/tempHolderSelector/index.js +166 -0
- package/lib/components/walletList/tempHolderSelector/index.less +63 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +5 -2
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
- package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
- package/lib/plus/saasRegister/components/Header.d.ts +0 -1
- package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/lib/plus/walletEditor/WalletEditor.js +53 -0
- package/lib/plus/walletEditor/locales.js +12 -3
- package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
- package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/lib/plus/walletPassGallery/components/passDetail/index.js +4 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -1
- package/lib/plus/walletPassGallery/components/passList/index.js +16 -4
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/index.js +157 -28
- package/lib/plus/walletPassGallery/locales.js +32 -5
- package/lib/plus/walletPassGallery/serve.d.ts +15 -1
- package/lib/plus/walletPassGallery/serve.js +17 -5
- package/lib/plus/walletPassGallery/utils.js +287 -0
- package/lib/pro/Login2.0/index.less +15 -8
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +34 -39
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lowcode/settings-registry/meta.ts +29 -0
- package/package.json +4 -4
- package/es/components/booking/components/customSelect/index.d.ts +0 -38
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -9
- package/es/components/booking/deposit/DepositItem/index.d.ts +0 -25
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/clientVariant/utils.d.ts +0 -3
- package/es/components/booking/info/model.d.ts +0 -14
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -21
- package/es/components/booking/info2/cartClientCard/types.d.ts +0 -18
- package/es/components/booking/info2/cartClientCard/utils.d.ts +0 -3
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
- package/es/components/booking/model.d.ts +0 -120
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +0 -36
- package/es/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
- package/es/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/es/components/checkout/components/ScrollableList/types.d.ts +0 -53
- package/es/components/checkout/components/WalletPassModule/types.d.ts +0 -134
- package/es/components/checkout/constants.d.ts +0 -2
- package/es/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
- package/es/components/checkout/locales.d.ts +0 -513
- package/es/components/checkout/styles.d.ts +0 -67
- package/es/components/checkout/types.d.ts +0 -130
- package/es/components/checkout/utils.d.ts +0 -3
- package/es/components/eftposPay/app.d.ts +0 -10
- package/es/components/eftposPay/const.d.ts +0 -190
- package/es/components/eftposPay/device.d.ts +0 -25
- package/es/components/eftposPay/index.d.ts +0 -4
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/es/components/eftposPay/payo/config.d.ts +0 -12
- package/es/components/eftposPay/tyro/index.d.ts +0 -9
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/es/components/list/components/Tab/Tab.d.ts +0 -5
- package/es/components/list/components/Tab/index.d.ts +0 -2
- package/es/components/list/components/Tab/types.d.ts +0 -14
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/es/components/list/components/WaterfallList/index.d.ts +0 -2
- package/es/components/list/hooks/index.d.ts +0 -5
- package/es/components/list/hooks/useDevice.d.ts +0 -24
- package/es/components/list/hooks/useListState.d.ts +0 -43
- package/es/components/list/hooks/useWaterfall.d.ts +0 -34
- package/es/components/list/locales.d.ts +0 -66
- package/es/components/list/types.d.ts +0 -177
- package/es/components/list/utils/getText.d.ts +0 -53
- package/es/components/list/utils/index.d.ts +0 -4
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/es/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/es/components/pay/toB/hooks.d.ts +0 -12
- package/es/components/pay/toB/locales.d.ts +0 -54
- package/es/components/pay/toB/store/context.d.ts +0 -3
- package/es/components/pay/toB/store/utils.d.ts +0 -13
- package/es/components/pay/toB/types/index.d.ts +0 -60
- package/es/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
- package/es/components/pay/toC/locales.d.ts +0 -298
- package/es/components/pay/toC/model.d.ts +0 -40
- package/es/components/pay/toC/status.d.ts +0 -12
- package/es/components/ruleSetting/locales.d.ts +0 -48
- package/es/components/shoppingCart/locales.d.ts +0 -36
- package/es/components/shoppingCart/type.d.ts +0 -50
- package/es/components/subTotal/locales.d.ts +0 -42
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/es/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/es/components/ticketBooking/context/index.d.ts +0 -2
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/es/components/ticketBooking/locales.d.ts +0 -198
- package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/es/components/wallet/Detail/index.d.ts +0 -42
- package/es/components/wallet/Detail/index.js +0 -1182
- package/es/components/wallet/Detail/index.less +0 -386
- package/es/components/wallet/Detail/locales.d.ts +0 -153
- package/es/components/wallet/Detail/locales.js +0 -170
- package/es/components/wallet/Detail/model.d.ts +0 -13
- package/es/components/wallet/Detail/model.js +0 -22
- package/es/components/wallet/Detail/serve.d.ts +0 -39
- package/es/components/wallet/Detail/serve.js +0 -64
- package/es/components/wallet/DetailContext.d.ts +0 -25
- package/es/components/wallet/DetailContext.js +0 -162
- package/es/components/wallet/DiscountCard/index.d.ts +0 -3
- package/es/components/wallet/DiscountCard/index.js +0 -218
- package/es/components/wallet/DiscountCard/index.less +0 -9
- package/es/components/wallet/DiscountCard/model.d.ts +0 -14
- package/es/components/wallet/DiscountCard/model.js +0 -22
- package/es/components/wallet/PointCard/index.d.ts +0 -3
- package/es/components/wallet/PointCard/index.js +0 -169
- package/es/components/wallet/PointCard/index.less +0 -9
- package/es/components/wallet/PointCard/model.d.ts +0 -13
- package/es/components/wallet/PointCard/model.js +0 -22
- package/es/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/index.js +0 -463
- package/es/components/wallet/RechargeableCard/index.less +0 -108
- package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/es/components/wallet/RechargeableCard/model.js +0 -28
- package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/es/components/wallet/RechargeableCard/serve.js +0 -32
- package/es/components/wallet/Voucher/index.d.ts +0 -12
- package/es/components/wallet/Voucher/index.js +0 -131
- package/es/components/wallet/Voucher/index.less +0 -9
- package/es/components/wallet/Voucher/locales.d.ts +0 -21
- package/es/components/wallet/Voucher/locales.js +0 -20
- package/es/components/wallet/Voucher/model.d.ts +0 -13
- package/es/components/wallet/Voucher/model.js +0 -22
- package/es/components/wallet/carouselArrow.png +0 -0
- package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/es/components/wallet/components/FooterButtons/index.js +0 -81
- package/es/components/wallet/components/FooterButtons/index.less +0 -91
- package/es/components/wallet/components/UsageRules/index.d.ts +0 -23
- package/es/components/wallet/components/UsageRules/index.js +0 -147
- package/es/components/wallet/components/UsageRules/index.less +0 -157
- package/es/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/es/components/wallet/components/WalletBar/index.js +0 -19
- package/es/components/wallet/components/WalletBar/index.less +0 -36
- package/es/components/wallet/components/WalletCard.d.ts +0 -11
- package/es/components/wallet/components/WalletCard.js +0 -91
- package/es/components/wallet/components/index.d.ts +0 -3
- package/es/components/wallet/components/index.js +0 -4
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -34
- package/es/components/wallet/hooks/useWalletCard.js +0 -147
- package/es/components/wallet/index.d.ts +0 -10
- package/es/components/wallet/index.js +0 -807
- package/es/components/wallet/index.less +0 -151
- package/es/components/wallet/locales.d.ts +0 -132
- package/es/components/wallet/locales.js +0 -139
- package/es/components/wallet/model.d.ts +0 -37
- package/es/components/wallet/model.js +0 -86
- package/es/components/wallet/serve.d.ts +0 -150
- package/es/components/wallet/utils/formatUtils.d.ts +0 -36
- package/es/components/wallet/utils/formatUtils.js +0 -73
- package/es/components/wallet/utils.d.ts +0 -48
- package/es/components/walletList/locales.d.ts +0 -18
- package/es/components/walletList/types/index.d.ts +0 -194
- package/es/hooks/useEngineContext.d.ts +0 -3
- package/es/hooks/useLogger.d.ts +0 -2
- package/es/hooks/useToast.d.ts +0 -2
- package/es/hooks/useTranslationOriginal.d.ts +0 -1
- package/es/hooks/useWindowSize.d.ts +0 -5
- package/es/plus/clientCard/locales.d.ts +0 -18
- package/es/plus/clientCard/types.d.ts +0 -134
- package/es/plus/clientCard/utils.d.ts +0 -8
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
- package/es/plus/clinetSearch/locales.d.ts +0 -105
- package/es/plus/clinetSearch/types.d.ts +0 -61
- package/es/plus/noteModal/locales.d.ts +0 -33
- package/es/plus/noteModal/types.d.ts +0 -19
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/es/plus/productSelect/utils.d.ts +0 -39
- package/es/plus/selectHolder/locales.d.ts +0 -24
- package/es/plus/selectHolder/types.d.ts +0 -104
- package/es/plus/selectHolder/utils.d.ts +0 -9
- package/es/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +0 -20
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -7
- package/es/plus/walletEditor/locales.d.ts +0 -126
- package/es/plus/walletEditor/types.d.ts +0 -52
- package/es/plus/walletPassGallery/locales.d.ts +0 -270
- package/es/pro/Login2.0/components/LegalTerms.d.ts +0 -8
- package/es/pro/Login2.0/components/PhoneInput.d.ts +0 -53
- package/es/pro/Login2.0/components/phoneValidation.d.ts +0 -17
- package/es/pro/Login2.0/hooks/index.d.ts +0 -2
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
- package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +0 -39
- package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +0 -9
- package/es/pro/Login2.0/locales.d.ts +0 -543
- package/es/pro/Login2.0/shared/Header.d.ts +0 -11
- package/es/pro/Login2.0/shared/registerFlow.d.ts +0 -116
- package/es/pro/Login2.0/shared/types.d.ts +0 -232
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +0 -12
- package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +0 -8
- package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +0 -7
- package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +0 -18
- package/es/pro/Login2.0/types.d.ts +0 -167
- package/es/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/es/pro/comprehensiveSearch/types.d.ts +0 -32
- package/es/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/es/pro/numberKeyboard/locales.d.ts +0 -12
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +0 -5
- package/es/pro/pisellPriceKeyboardPopover/index.d.ts +0 -2
- package/es/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -39
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -42
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -45
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
- package/es/pro/priceKeyboard/hooks/keyActions.d.ts +0 -28
- package/es/pro/priceKeyboard/utils.d.ts +0 -31
- package/es/pro/skuDetailModal/locales.d.ts +0 -48
- package/es/pro/skuDetailModal/types.d.ts +0 -348
- package/lib/components/booking/components/customSelect/index.d.ts +0 -38
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -9
- package/lib/components/booking/deposit/DepositItem/index.d.ts +0 -25
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/utils.d.ts +0 -3
- package/lib/components/booking/info/model.d.ts +0 -14
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -21
- package/lib/components/booking/info2/cartClientCard/types.d.ts +0 -18
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +0 -3
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
- package/lib/components/booking/model.d.ts +0 -120
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +0 -36
- package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +0 -38
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
- package/lib/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/lib/components/checkout/components/ScrollableList/types.d.ts +0 -53
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +0 -134
- package/lib/components/checkout/constants.d.ts +0 -2
- package/lib/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
- package/lib/components/checkout/locales.d.ts +0 -513
- package/lib/components/checkout/styles.d.ts +0 -67
- package/lib/components/checkout/types.d.ts +0 -130
- package/lib/components/checkout/utils.d.ts +0 -3
- package/lib/components/eftposPay/app.d.ts +0 -10
- package/lib/components/eftposPay/const.d.ts +0 -190
- package/lib/components/eftposPay/device.d.ts +0 -25
- package/lib/components/eftposPay/index.d.ts +0 -4
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/lib/components/eftposPay/payo/config.d.ts +0 -12
- package/lib/components/eftposPay/tyro/index.d.ts +0 -9
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/lib/components/list/components/Tab/Tab.d.ts +0 -5
- package/lib/components/list/components/Tab/index.d.ts +0 -2
- package/lib/components/list/components/Tab/types.d.ts +0 -14
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
- package/lib/components/list/hooks/index.d.ts +0 -5
- package/lib/components/list/hooks/useDevice.d.ts +0 -24
- package/lib/components/list/hooks/useListState.d.ts +0 -43
- package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
- package/lib/components/list/locales.d.ts +0 -66
- package/lib/components/list/types.d.ts +0 -177
- package/lib/components/list/utils/getText.d.ts +0 -53
- package/lib/components/list/utils/index.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/lib/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/lib/components/pay/toB/hooks.d.ts +0 -12
- package/lib/components/pay/toB/locales.d.ts +0 -54
- package/lib/components/pay/toB/store/context.d.ts +0 -3
- package/lib/components/pay/toB/store/utils.d.ts +0 -13
- package/lib/components/pay/toB/types/index.d.ts +0 -60
- package/lib/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
- package/lib/components/pay/toC/locales.d.ts +0 -298
- package/lib/components/pay/toC/model.d.ts +0 -40
- package/lib/components/pay/toC/status.d.ts +0 -12
- package/lib/components/ruleSetting/locales.d.ts +0 -48
- package/lib/components/shoppingCart/locales.d.ts +0 -36
- package/lib/components/shoppingCart/type.d.ts +0 -50
- package/lib/components/subTotal/locales.d.ts +0 -42
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/lib/components/ticketBooking/components/bookingDataPanel/constants.d.ts +0 -22
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/index.d.ts +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/lib/components/ticketBooking/locales.d.ts +0 -198
- package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/lib/components/wallet/Detail/index.d.ts +0 -42
- package/lib/components/wallet/Detail/index.js +0 -874
- package/lib/components/wallet/Detail/index.less +0 -386
- package/lib/components/wallet/Detail/locales.d.ts +0 -153
- package/lib/components/wallet/Detail/locales.js +0 -194
- package/lib/components/wallet/Detail/model.d.ts +0 -13
- package/lib/components/wallet/Detail/model.js +0 -43
- package/lib/components/wallet/Detail/serve.d.ts +0 -39
- package/lib/components/wallet/Detail/serve.js +0 -44
- package/lib/components/wallet/DetailContext.d.ts +0 -25
- package/lib/components/wallet/DetailContext.js +0 -118
- package/lib/components/wallet/DiscountCard/index.d.ts +0 -3
- package/lib/components/wallet/DiscountCard/index.js +0 -209
- package/lib/components/wallet/DiscountCard/index.less +0 -9
- package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
- package/lib/components/wallet/DiscountCard/model.js +0 -43
- package/lib/components/wallet/PointCard/index.d.ts +0 -3
- package/lib/components/wallet/PointCard/index.js +0 -190
- package/lib/components/wallet/PointCard/index.less +0 -9
- package/lib/components/wallet/PointCard/model.d.ts +0 -13
- package/lib/components/wallet/PointCard/model.js +0 -43
- package/lib/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/index.js +0 -380
- package/lib/components/wallet/RechargeableCard/index.less +0 -108
- package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/lib/components/wallet/RechargeableCard/model.js +0 -49
- package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/lib/components/wallet/Voucher/index.d.ts +0 -12
- package/lib/components/wallet/Voucher/index.js +0 -146
- package/lib/components/wallet/Voucher/index.less +0 -9
- package/lib/components/wallet/Voucher/locales.d.ts +0 -21
- package/lib/components/wallet/Voucher/locales.js +0 -44
- package/lib/components/wallet/Voucher/model.d.ts +0 -13
- package/lib/components/wallet/Voucher/model.js +0 -43
- package/lib/components/wallet/carouselArrow.png +0 -0
- package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/lib/components/wallet/components/FooterButtons/index.js +0 -109
- package/lib/components/wallet/components/FooterButtons/index.less +0 -91
- package/lib/components/wallet/components/UsageRules/index.d.ts +0 -23
- package/lib/components/wallet/components/UsageRules/index.js +0 -113
- package/lib/components/wallet/components/UsageRules/index.less +0 -157
- package/lib/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/lib/components/wallet/components/WalletBar/index.js +0 -49
- package/lib/components/wallet/components/WalletBar/index.less +0 -36
- package/lib/components/wallet/components/WalletCard.d.ts +0 -11
- package/lib/components/wallet/components/WalletCard.js +0 -97
- package/lib/components/wallet/components/index.d.ts +0 -3
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -34
- package/lib/components/wallet/hooks/useWalletCard.js +0 -111
- package/lib/components/wallet/index.d.ts +0 -10
- package/lib/components/wallet/index.js +0 -580
- package/lib/components/wallet/index.less +0 -151
- package/lib/components/wallet/locales.d.ts +0 -132
- package/lib/components/wallet/locales.js +0 -163
- package/lib/components/wallet/model.d.ts +0 -37
- package/lib/components/wallet/model.js +0 -91
- package/lib/components/wallet/serve.d.ts +0 -150
- package/lib/components/wallet/serve.js +0 -85
- package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
- package/lib/components/wallet/utils/formatUtils.js +0 -73
- package/lib/components/wallet/utils.d.ts +0 -48
- package/lib/components/walletList/locales.d.ts +0 -18
- package/lib/components/walletList/types/index.d.ts +0 -194
- package/lib/hooks/useEngineContext.d.ts +0 -3
- package/lib/hooks/useLogger.d.ts +0 -2
- package/lib/hooks/useToast.d.ts +0 -2
- package/lib/hooks/useTranslationOriginal.d.ts +0 -1
- package/lib/hooks/useWindowSize.d.ts +0 -5
- package/lib/plus/clientCard/locales.d.ts +0 -18
- package/lib/plus/clientCard/types.d.ts +0 -134
- package/lib/plus/clientCard/utils.d.ts +0 -8
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -2
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -2
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +0 -5
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +0 -2
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +0 -46
- package/lib/plus/clinetSearch/locales.d.ts +0 -105
- package/lib/plus/clinetSearch/types.d.ts +0 -61
- package/lib/plus/noteModal/locales.d.ts +0 -33
- package/lib/plus/noteModal/types.d.ts +0 -19
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/lib/plus/productSelect/utils.d.ts +0 -39
- package/lib/plus/selectHolder/locales.d.ts +0 -24
- package/lib/plus/selectHolder/types.d.ts +0 -104
- package/lib/plus/selectHolder/utils.d.ts +0 -9
- package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +0 -11
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +0 -20
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -7
- package/lib/plus/walletEditor/locales.d.ts +0 -126
- package/lib/plus/walletEditor/types.d.ts +0 -52
- package/lib/plus/walletPassGallery/locales.d.ts +0 -270
- package/lib/pro/Login2.0/components/LegalTerms.d.ts +0 -8
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +0 -53
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +0 -17
- package/lib/pro/Login2.0/hooks/index.d.ts +0 -2
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +0 -24
- package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +0 -39
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +0 -9
- package/lib/pro/Login2.0/locales.d.ts +0 -543
- package/lib/pro/Login2.0/shared/Header.d.ts +0 -11
- package/lib/pro/Login2.0/shared/registerFlow.d.ts +0 -116
- package/lib/pro/Login2.0/shared/types.d.ts +0 -232
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +0 -12
- package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +0 -8
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +0 -7
- package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +0 -18
- package/lib/pro/Login2.0/types.d.ts +0 -167
- package/lib/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +0 -5
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/lib/pro/comprehensiveSearch/types.d.ts +0 -32
- package/lib/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/lib/pro/numberKeyboard/locales.d.ts +0 -12
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +0 -12
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +0 -5
- package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +0 -2
- package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -39
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -42
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -45
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
- package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +0 -28
- package/lib/pro/priceKeyboard/utils.d.ts +0 -31
- package/lib/pro/skuDetailModal/locales.d.ts +0 -48
- package/lib/pro/skuDetailModal/types.d.ts +0 -348
|
@@ -51,23 +51,32 @@ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext")
|
|
|
51
51
|
var formatProducts = (values) => {
|
|
52
52
|
let arr = [];
|
|
53
53
|
arr = values.map((item) => {
|
|
54
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
55
|
+
const bundleDiscountList = (0, import_utils.getBundleDiscountList)(((_b = (_a = item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle) || []);
|
|
56
|
+
const discount_list = [...(item == null ? void 0 : item.discount_list) || []];
|
|
57
|
+
discount_list.push(...bundleDiscountList);
|
|
55
58
|
return {
|
|
56
59
|
order_detail_id: item.order_detail_id || 0,
|
|
57
60
|
num: item._extend.quantity,
|
|
58
61
|
price: (0, import_utils.formatProductPrice)(item),
|
|
59
62
|
product_id: item.id,
|
|
60
|
-
discount_list:
|
|
63
|
+
discount_list: discount_list || [],
|
|
61
64
|
discount_amount: 0,
|
|
62
65
|
product_discount_reason: "",
|
|
63
66
|
is_charge_tax: item.is_charge_tax,
|
|
64
67
|
note: "",
|
|
65
68
|
discountway: "num",
|
|
66
69
|
discount_type: "discount",
|
|
67
|
-
bundle_edit: (
|
|
68
|
-
product_bundle: (0, import_utils.formatProductBundle)((
|
|
69
|
-
"product_option_item": (0, import_utils.formatProductOption)((
|
|
70
|
-
"product_variant_id": ((
|
|
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, item.is_price_include_tax),
|
|
72
|
+
"product_option_item": (0, import_utils.formatProductOption)((_g = (_f = item._extend) == null ? void 0 : _f.other) == null ? void 0 : _g.option),
|
|
73
|
+
"product_variant_id": ((_i = (_h = item._extend) == null ? void 0 : _h.other) == null ? void 0 : _i.product_variant_id) || 0,
|
|
74
|
+
"source_product_price": (0, import_utils.getSourceProductPrice)(item),
|
|
75
|
+
"main_product_selling_price": (0, import_utils.getMainProductSellingPrice)(item) ?? (0, import_utils.formatProductPrice)(item),
|
|
76
|
+
"calculated_original_price": (0, import_utils.formatOriginalPrice)(item),
|
|
77
|
+
"calculated_selling_price": (0, import_utils.formatSellingPrice)(item),
|
|
78
|
+
"tax_fee": item._extend.tax_fee,
|
|
79
|
+
is_price_include_tax: item.is_price_include_tax
|
|
71
80
|
};
|
|
72
81
|
});
|
|
73
82
|
return arr;
|
|
@@ -241,12 +250,12 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
241
250
|
isAddons: true,
|
|
242
251
|
_key: e.key,
|
|
243
252
|
_extend: {
|
|
244
|
-
price: _detail.price,
|
|
245
253
|
other: e,
|
|
246
254
|
quantity: (e == null ? void 0 : e.quantity) || 1
|
|
247
255
|
},
|
|
248
256
|
quantity: (e == null ? void 0 : e.quantity) || 1
|
|
249
257
|
};
|
|
258
|
+
product._extend.price = (0, import_utils2.getMainPrice)(product, _detail.price);
|
|
250
259
|
let _total = (0, import_utils2.getProductTotalPrice)(product);
|
|
251
260
|
product._extend.total = _total;
|
|
252
261
|
product._extend.origin_total = _total;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
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
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -72,7 +72,8 @@ var ActionButtons = ({
|
|
|
72
72
|
const { ScheduleModule } = pisellosAllModule;
|
|
73
73
|
const shopDiscount = (0, import_useShopDiscountModule.useShopDiscountModule)();
|
|
74
74
|
const changeCustomerToGlobalState = (0, import_ahooks.useMemoizedFn)((value) => {
|
|
75
|
-
var _a2, _b2;
|
|
75
|
+
var _a2, _b2, _c2;
|
|
76
|
+
const beforeValue = (_a2 = state == null ? void 0 : state.client) == null ? void 0 : _a2.value;
|
|
76
77
|
dispatch({
|
|
77
78
|
type: "setClient",
|
|
78
79
|
payload: {
|
|
@@ -80,7 +81,8 @@ var ActionButtons = ({
|
|
|
80
81
|
edit: true
|
|
81
82
|
}
|
|
82
83
|
});
|
|
83
|
-
if ((
|
|
84
|
+
if ((beforeValue == null ? void 0 : beforeValue.id) === (value == null ? void 0 : value.id)) return;
|
|
85
|
+
if ((_c2 = (_b2 = state == null ? void 0 : state.service) == null ? void 0 : _b2.value) == null ? void 0 : _c2.length) {
|
|
84
86
|
dispatch({
|
|
85
87
|
type: "setService",
|
|
86
88
|
payload: {
|
|
@@ -48,7 +48,7 @@ var getRelationDetailsTotal = (relation_details) => {
|
|
|
48
48
|
}
|
|
49
49
|
return total.toNumber();
|
|
50
50
|
};
|
|
51
|
-
var getProductExpectAmount = (state, isEdit) => {
|
|
51
|
+
var getProductExpectAmount = (state, isEdit, isOriginTotal) => {
|
|
52
52
|
var _a, _b, _c, _d;
|
|
53
53
|
let price = new import_decimal.default(0);
|
|
54
54
|
let duration = new import_decimal.default(0);
|
|
@@ -62,7 +62,8 @@ var getProductExpectAmount = (state, isEdit) => {
|
|
|
62
62
|
if (isDay || (0, import_utils3.isNormalProductByDurationSchedule)(item) || (0, import_utils4.isMultiDayProduct)(item)) {
|
|
63
63
|
const quantity = new import_decimal.default(item._extend.quantity || 1);
|
|
64
64
|
const itemTotal = new import_decimal.default(item._extend.total || 0);
|
|
65
|
-
|
|
65
|
+
const itemOriginTotal = new import_decimal.default(item._extend.origin_total || 0);
|
|
66
|
+
price = price.add((isOriginTotal ? itemOriginTotal : itemTotal).mul(quantity));
|
|
66
67
|
const _duration = !(0, import_utils3.isNormalProductByDurationSchedule)(item) ? new import_decimal.default(item._extend.duration || 0) : new import_decimal.default(0);
|
|
67
68
|
if (isDay || (0, import_utils4.isMultiDayProduct)(item)) {
|
|
68
69
|
dayDuration = dayDuration.add(_duration);
|
|
@@ -72,7 +73,8 @@ var getProductExpectAmount = (state, isEdit) => {
|
|
|
72
73
|
} else {
|
|
73
74
|
const quantity = new import_decimal.default(item._extend.quantity || 1);
|
|
74
75
|
const itemTotal = new import_decimal.default(item._extend.total || 0);
|
|
75
|
-
|
|
76
|
+
const itemOriginTotal = new import_decimal.default(item._extend.origin_total || 0);
|
|
77
|
+
price = price.add((isOriginTotal ? itemOriginTotal : itemTotal).mul(quantity));
|
|
76
78
|
const relationTotal = new import_decimal.default(getRelationDetailsTotal(
|
|
77
79
|
item._extend.relation_details || []
|
|
78
80
|
));
|
|
@@ -91,7 +93,8 @@ var getProductExpectAmount = (state, isEdit) => {
|
|
|
91
93
|
for (let item of state.addons.value) {
|
|
92
94
|
const quantity = new import_decimal.default(item._extend.quantity || 1);
|
|
93
95
|
const itemTotal = new import_decimal.default(item._extend.total || 0);
|
|
94
|
-
|
|
96
|
+
const itemOriginTotal = new import_decimal.default(item._extend.origin_total || 0);
|
|
97
|
+
price = price.add((isOriginTotal ? itemOriginTotal : itemTotal).mul(quantity));
|
|
95
98
|
}
|
|
96
99
|
}
|
|
97
100
|
}
|
|
@@ -147,9 +150,10 @@ var getProductItemTax = (item, state, options) => {
|
|
|
147
150
|
}
|
|
148
151
|
}
|
|
149
152
|
}
|
|
150
|
-
return singleItemTax.times(quantity);
|
|
153
|
+
return singleItemTax.times(quantity).toDecimalPlaces(2, import_decimal.default.ROUND_HALF_UP);
|
|
151
154
|
};
|
|
152
155
|
var processItemsTax = (items, state, options) => {
|
|
156
|
+
var _a, _b, _c;
|
|
153
157
|
const { tax_rate, is_price_include_tax, computed } = options;
|
|
154
158
|
const { shopDiscount, productExpectAmount } = computed;
|
|
155
159
|
let originTax = new import_decimal.default(0);
|
|
@@ -157,10 +161,11 @@ var processItemsTax = (items, state, options) => {
|
|
|
157
161
|
for (let item of items) {
|
|
158
162
|
const quantity = new import_decimal.default(item._extend.quantity || 1);
|
|
159
163
|
const unitPrice = new import_decimal.default(item._extend.total || 0);
|
|
160
|
-
const
|
|
164
|
+
const mainProductPrice = new import_decimal.default(getMainProductTotal(item) || 0);
|
|
165
|
+
let originalTaxPerItem = getProductItemTax(
|
|
161
166
|
{
|
|
162
167
|
...item,
|
|
163
|
-
total:
|
|
168
|
+
total: mainProductPrice.add(((_a = item._extend) == null ? void 0 : _a.surcharge_fee) || 0).toNumber(),
|
|
164
169
|
quantity: 1
|
|
165
170
|
},
|
|
166
171
|
state,
|
|
@@ -170,19 +175,22 @@ var processItemsTax = (items, state, options) => {
|
|
|
170
175
|
if (productExpectAmount > 0) {
|
|
171
176
|
itemDiscount = unitPrice.dividedBy(productExpectAmount).times(shopDiscount);
|
|
172
177
|
}
|
|
173
|
-
|
|
174
|
-
|
|
178
|
+
let mainItemDiscount = new import_decimal.default(0);
|
|
179
|
+
if (unitPrice.greaterThan(0)) {
|
|
180
|
+
mainItemDiscount = mainProductPrice.dividedBy(productExpectAmount).times(shopDiscount);
|
|
181
|
+
}
|
|
182
|
+
const mainItemDiscountedUnitPrice = mainProductPrice.minus(mainItemDiscount).add(((_b = item._extend) == null ? void 0 : _b.surcharge_fee) || 0);
|
|
183
|
+
const maxDiscountedTaxPerItem = getProductItemTax(
|
|
175
184
|
{
|
|
176
185
|
...item,
|
|
177
|
-
total:
|
|
186
|
+
total: mainItemDiscountedUnitPrice.toNumber(),
|
|
178
187
|
price: item._extend.total,
|
|
179
188
|
quantity: 1
|
|
180
189
|
},
|
|
181
190
|
state,
|
|
182
191
|
{ tax_rate, is_price_include_tax }
|
|
183
192
|
);
|
|
184
|
-
item._extend.
|
|
185
|
-
item._extend.tax_fee = discountedTaxPerItem.toNumber();
|
|
193
|
+
item._extend.main_product_attached_bundle_tax_fee = maxDiscountedTaxPerItem.toNumber();
|
|
186
194
|
let addTimeTotalTax = new import_decimal.default(0);
|
|
187
195
|
if (Array.isArray(item._extend.relation_details)) {
|
|
188
196
|
for (let atItem of item._extend.relation_details) {
|
|
@@ -198,8 +206,7 @@ var processItemsTax = (items, state, options) => {
|
|
|
198
206
|
const addTimeTaxPerItem = getProductItemTax(
|
|
199
207
|
{
|
|
200
208
|
...atItem,
|
|
201
|
-
total: _discountedTotal,
|
|
202
|
-
// 可能包含原有数据,或前端临时数据
|
|
209
|
+
total: _discountedTotal.add((atItem == null ? void 0 : atItem.surcharge_fee) || 0).toNumber(),
|
|
203
210
|
quantity: atItem.product_quantity || atItem.num || 1
|
|
204
211
|
},
|
|
205
212
|
state,
|
|
@@ -208,8 +215,51 @@ var processItemsTax = (items, state, options) => {
|
|
|
208
215
|
addTimeTotalTax = addTimeTotalTax.plus(addTimeTaxPerItem);
|
|
209
216
|
}
|
|
210
217
|
}
|
|
211
|
-
|
|
212
|
-
|
|
218
|
+
let bundleTotalOriginTax = new import_decimal.default(0);
|
|
219
|
+
let bundleTotalTax = new import_decimal.default(0);
|
|
220
|
+
if (Array.isArray((_c = item._extend.other) == null ? void 0 : _c.bundle)) {
|
|
221
|
+
for (let bundleItem of item._extend.other.bundle) {
|
|
222
|
+
if (getBundleItemIsOriginalPrice(bundleItem)) {
|
|
223
|
+
const bundleQuantity = new import_decimal.default(bundleItem.quantity || 1);
|
|
224
|
+
const bundleUnitPrice = new import_decimal.default(
|
|
225
|
+
bundleItem.bundle_selling_price ?? bundleItem.price ?? 0
|
|
226
|
+
);
|
|
227
|
+
const bundleOriginalTaxPerItem = getProductItemTax(
|
|
228
|
+
{
|
|
229
|
+
...bundleItem,
|
|
230
|
+
total: bundleUnitPrice.add((bundleItem == null ? void 0 : bundleItem.surcharge_fee) || 0).toNumber(),
|
|
231
|
+
quantity: 1
|
|
232
|
+
},
|
|
233
|
+
state,
|
|
234
|
+
{ tax_rate, is_price_include_tax }
|
|
235
|
+
);
|
|
236
|
+
let bundleItemDiscount = new import_decimal.default(0);
|
|
237
|
+
if (productExpectAmount > 0) {
|
|
238
|
+
bundleItemDiscount = bundleUnitPrice.dividedBy(productExpectAmount).times(shopDiscount);
|
|
239
|
+
}
|
|
240
|
+
const bundleDiscountedUnitPrice = bundleUnitPrice.minus(bundleItemDiscount).add((bundleItem == null ? void 0 : bundleItem.surcharge_fee) || 0);
|
|
241
|
+
const bundleDiscountedTaxPerItem = getProductItemTax(
|
|
242
|
+
{
|
|
243
|
+
...bundleItem,
|
|
244
|
+
total: bundleDiscountedUnitPrice.toNumber(),
|
|
245
|
+
quantity: 1
|
|
246
|
+
},
|
|
247
|
+
state,
|
|
248
|
+
{ tax_rate, is_price_include_tax }
|
|
249
|
+
);
|
|
250
|
+
bundleItem.original_tax_fee = new import_decimal.default(bundleOriginalTaxPerItem).toNumber();
|
|
251
|
+
bundleItem.tax_fee = new import_decimal.default(bundleDiscountedTaxPerItem).toNumber();
|
|
252
|
+
bundleTotalOriginTax = bundleTotalOriginTax.plus(bundleOriginalTaxPerItem.times(bundleQuantity));
|
|
253
|
+
bundleTotalTax = bundleTotalTax.plus(bundleDiscountedTaxPerItem.times(bundleQuantity));
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
const original_tax_fee = originalTaxPerItem.add(bundleTotalOriginTax);
|
|
258
|
+
const tax_fee = maxDiscountedTaxPerItem.add(bundleTotalTax);
|
|
259
|
+
item._extend.original_tax_fee = original_tax_fee.toNumber();
|
|
260
|
+
item._extend.tax_fee = tax_fee.toNumber();
|
|
261
|
+
originTax = originTax.plus(original_tax_fee.times(quantity)).plus(addTimeTotalTax);
|
|
262
|
+
tax = tax.plus(tax_fee.times(quantity)).plus(addTimeTotalTax);
|
|
213
263
|
}
|
|
214
264
|
return { originTax, tax };
|
|
215
265
|
};
|
|
@@ -270,7 +320,7 @@ var isProductMatchSurchargeCondition = (item, options) => {
|
|
|
270
320
|
}
|
|
271
321
|
const isInScheduleByDate = (_a = options.ScheduleModule) == null ? void 0 : _a.isInScheduleByDate;
|
|
272
322
|
const { surchargeConfig, scheduleById = {} } = options;
|
|
273
|
-
const { startDate,
|
|
323
|
+
const { startDate, product_id, isCustomItem } = item;
|
|
274
324
|
const {
|
|
275
325
|
open_product = 0,
|
|
276
326
|
// 1 | 0
|
|
@@ -294,7 +344,6 @@ var isProductMatchSurchargeCondition = (item, options) => {
|
|
|
294
344
|
if (isCustomItem) {
|
|
295
345
|
isProductMatch = false;
|
|
296
346
|
} else {
|
|
297
|
-
const product_id = other == null ? void 0 : other.product_id;
|
|
298
347
|
isProductMatch = available_product_ids.includes(product_id);
|
|
299
348
|
}
|
|
300
349
|
}
|
|
@@ -324,8 +373,71 @@ var isProductMatchSurchargeCondition = (item, options) => {
|
|
|
324
373
|
}
|
|
325
374
|
return isProductMatch && isScheduleMatch;
|
|
326
375
|
};
|
|
376
|
+
var getBundleItemIsOriginalPrice = (item) => {
|
|
377
|
+
return (item == null ? void 0 : item.price_type) === "markup" && (item == null ? void 0 : item.price_type_ext) === "product_price";
|
|
378
|
+
};
|
|
379
|
+
var getBundleItemIsMarkupPrice = (item) => {
|
|
380
|
+
return (item == null ? void 0 : item.price_type) === "markup" && ((item == null ? void 0 : item.price_type_ext) === "" || !(item == null ? void 0 : item.price_type_ext));
|
|
381
|
+
};
|
|
382
|
+
var getBundleItemIsDiscountPrice = (item) => {
|
|
383
|
+
return (item == null ? void 0 : item.price_type) === "markdown" && ((item == null ? void 0 : item.price_type_ext) === "" || !(item == null ? void 0 : item.price_type_ext));
|
|
384
|
+
};
|
|
385
|
+
var getBundleItemIsMarkupOrDiscountPrice = (item) => {
|
|
386
|
+
return getBundleItemIsMarkupPrice(item) || getBundleItemIsDiscountPrice(item);
|
|
387
|
+
};
|
|
388
|
+
var getDiscountAmount = (discounts) => {
|
|
389
|
+
return (discounts || []).reduce((total, discount) => {
|
|
390
|
+
return total.add(new import_decimal.default(discount.amount || 0));
|
|
391
|
+
}, new import_decimal.default(0)).toNumber();
|
|
392
|
+
};
|
|
393
|
+
var getMainProductTotal = (item) => {
|
|
394
|
+
var _a, _b, _c, _d, _e, _f;
|
|
395
|
+
let total = new import_decimal.default(((_a = item._extend) == null ? void 0 : _a.main_product_selling_price) ?? ((_b = item == null ? void 0 : item.metadata) == null ? void 0 : _b.main_product_selling_price) ?? item._extend.price ?? 0);
|
|
396
|
+
if (((_c = item._extend.other) == null ? void 0 : _c.option) && Array.isArray((_d = item._extend.other) == null ? void 0 : _d.option)) {
|
|
397
|
+
total = total.add((_e = item._extend.other) == null ? void 0 : _e.option.reduce((t, option) => {
|
|
398
|
+
return t.add(new import_decimal.default(option.price || 0).mul(option.num || 1));
|
|
399
|
+
}, new import_decimal.default(0)));
|
|
400
|
+
}
|
|
401
|
+
for (let bundleItem of ((_f = item._extend.other) == null ? void 0 : _f.bundle) || []) {
|
|
402
|
+
if (getBundleItemIsMarkupOrDiscountPrice(bundleItem)) {
|
|
403
|
+
const discountAmount = getDiscountAmount(bundleItem.discount_list);
|
|
404
|
+
const bundleItemPrice = new import_decimal.default(bundleItem.bundle_selling_price ?? bundleItem.price ?? 0);
|
|
405
|
+
const bundleItemTotal = bundleItemPrice;
|
|
406
|
+
total = total.add(bundleItemTotal);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
return total.toNumber();
|
|
410
|
+
};
|
|
411
|
+
var clearSurchargeFee = (state) => {
|
|
412
|
+
var _a, _b;
|
|
413
|
+
const { service, addons } = state;
|
|
414
|
+
if (Array.isArray(service == null ? void 0 : service.value)) {
|
|
415
|
+
for (let item of service.value) {
|
|
416
|
+
item._extend.surcharge_fee = 0;
|
|
417
|
+
item._extend.relation_surcharge_ids = [];
|
|
418
|
+
for (let bundleItem of ((_a = item._extend.other) == null ? void 0 : _a.bundle) || []) {
|
|
419
|
+
bundleItem.surcharge_fee = 0;
|
|
420
|
+
bundleItem.relation_surcharge_ids = [];
|
|
421
|
+
}
|
|
422
|
+
for (let relationDetail of item._extend.relation_details || []) {
|
|
423
|
+
relationDetail.surcharge_fee = 0;
|
|
424
|
+
relationDetail.relation_surcharge_ids = [];
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
if (Array.isArray(addons == null ? void 0 : addons.value)) {
|
|
429
|
+
for (let item of addons.value) {
|
|
430
|
+
item._extend.surcharge_fee = 0;
|
|
431
|
+
item._extend.relation_surcharge_ids = [];
|
|
432
|
+
for (let bundleItem of ((_b = item._extend.other) == null ? void 0 : _b.bundle) || []) {
|
|
433
|
+
bundleItem.surcharge_fee = 0;
|
|
434
|
+
bundleItem.relation_surcharge_ids = [];
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
};
|
|
327
439
|
var getSurcharge = (state, options) => {
|
|
328
|
-
var _a;
|
|
440
|
+
var _a, _b, _c, _d, _e;
|
|
329
441
|
const { isEdit, ScheduleModule, surcharge_list, scheduleById } = options;
|
|
330
442
|
const { bookingDetail, bookingId } = state;
|
|
331
443
|
if (!isEdit && bookingId) {
|
|
@@ -350,6 +462,7 @@ var getSurcharge = (state, options) => {
|
|
|
350
462
|
}
|
|
351
463
|
return [];
|
|
352
464
|
}
|
|
465
|
+
clearSurchargeFee(state);
|
|
353
466
|
const { service, addons } = state;
|
|
354
467
|
if (!Array.isArray(surcharge_list) || !(surcharge_list == null ? void 0 : surcharge_list.length)) return [];
|
|
355
468
|
const surchargeWithAmount = [];
|
|
@@ -360,24 +473,89 @@ var getSurcharge = (state, options) => {
|
|
|
360
473
|
fixed = "0",
|
|
361
474
|
id,
|
|
362
475
|
type,
|
|
363
|
-
description
|
|
476
|
+
description,
|
|
477
|
+
open_product
|
|
364
478
|
} = surchargeConfig;
|
|
365
479
|
const matchedItems = [];
|
|
366
480
|
if (Array.isArray(service == null ? void 0 : service.value)) {
|
|
367
481
|
for (let item of service.value) {
|
|
368
|
-
if (isProductMatchSurchargeCondition(
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
482
|
+
if (isProductMatchSurchargeCondition(
|
|
483
|
+
{
|
|
484
|
+
isCustomItem: item.isCustomItem,
|
|
485
|
+
startDate: item._extend.startDate,
|
|
486
|
+
product_id: item.product_id
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
surchargeConfig,
|
|
490
|
+
scheduleById: scheduleById || {},
|
|
491
|
+
ScheduleModule
|
|
492
|
+
}
|
|
493
|
+
)) {
|
|
494
|
+
const total = getMainProductTotal(item);
|
|
495
|
+
const mainQuantity = item._extend.quantity || 1;
|
|
373
496
|
matchedItems.push({
|
|
374
|
-
total
|
|
375
|
-
addTimeTotal: getRelationDetailsTotal(
|
|
376
|
-
|
|
377
|
-
),
|
|
378
|
-
|
|
497
|
+
total,
|
|
498
|
+
// addTimeTotal: getRelationDetailsTotal(
|
|
499
|
+
// item._extend.relation_details || []
|
|
500
|
+
// ),
|
|
501
|
+
isMain: true,
|
|
502
|
+
quantity: mainQuantity,
|
|
503
|
+
item,
|
|
504
|
+
mainQuantity
|
|
505
|
+
// 主商品的mainQuantity等于自己的quantity
|
|
379
506
|
});
|
|
380
507
|
}
|
|
508
|
+
for (let bundleItem of ((_b = item._extend.other) == null ? void 0 : _b.bundle) || []) {
|
|
509
|
+
if (getBundleItemIsOriginalPrice(bundleItem) && isProductMatchSurchargeCondition(
|
|
510
|
+
{
|
|
511
|
+
isCustomItem: false,
|
|
512
|
+
startDate: item._extend.startDate,
|
|
513
|
+
product_id: bundleItem._bundle_product_id
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
surchargeConfig,
|
|
517
|
+
scheduleById: scheduleById || {},
|
|
518
|
+
ScheduleModule
|
|
519
|
+
}
|
|
520
|
+
)) {
|
|
521
|
+
const mainQuantity = item._extend.quantity || 1;
|
|
522
|
+
matchedItems.push({
|
|
523
|
+
isMain: false,
|
|
524
|
+
total: Number(
|
|
525
|
+
bundleItem.bundle_selling_price ?? bundleItem.price ?? 0
|
|
526
|
+
),
|
|
527
|
+
quantity: bundleItem.num || bundleItem.quantity || 1,
|
|
528
|
+
item: bundleItem,
|
|
529
|
+
mainQuantity
|
|
530
|
+
// 子商品的mainQuantity是所属主商品的quantity
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
for (let relationDetail of item._extend.relation_details || []) {
|
|
535
|
+
if (isProductMatchSurchargeCondition(
|
|
536
|
+
{
|
|
537
|
+
isCustomItem: false,
|
|
538
|
+
startDate: item._extend.startDate,
|
|
539
|
+
product_id: relationDetail.product_id
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
surchargeConfig,
|
|
543
|
+
scheduleById: scheduleById || {},
|
|
544
|
+
ScheduleModule
|
|
545
|
+
}
|
|
546
|
+
)) {
|
|
547
|
+
matchedItems.push({
|
|
548
|
+
isMain: false,
|
|
549
|
+
total: Number(
|
|
550
|
+
(relationDetail == null ? void 0 : relationDetail.price) || ((_c = relationDetail == null ? void 0 : relationDetail.metadata) == null ? void 0 : _c.main_product_attached_bundle_selling_price)
|
|
551
|
+
),
|
|
552
|
+
quantity: relationDetail.num || relationDetail.quantity || 1,
|
|
553
|
+
item: relationDetail,
|
|
554
|
+
mainQuantity: 1
|
|
555
|
+
// 加时商品不受主商品数量影响
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
}
|
|
381
559
|
}
|
|
382
560
|
}
|
|
383
561
|
if (Array.isArray(addons == null ? void 0 : addons.value)) {
|
|
@@ -388,28 +566,84 @@ var getSurcharge = (state, options) => {
|
|
|
388
566
|
ScheduleModule
|
|
389
567
|
})) {
|
|
390
568
|
matchedItems.push({
|
|
569
|
+
isMain: true,
|
|
391
570
|
total: Number(item._extend.total),
|
|
392
|
-
quantity: item._extend.quantity || 1
|
|
571
|
+
quantity: item._extend.quantity || 1,
|
|
572
|
+
item,
|
|
573
|
+
mainQuantity: 1
|
|
574
|
+
// addons独立商品,mainQuantity为1
|
|
393
575
|
});
|
|
394
576
|
}
|
|
395
577
|
}
|
|
396
578
|
}
|
|
397
579
|
let finalAmount = 0;
|
|
580
|
+
const productCount = matchedItems.reduce((total, item) => {
|
|
581
|
+
if (item.isMain) {
|
|
582
|
+
return total + (item.quantity || 1);
|
|
583
|
+
} else {
|
|
584
|
+
return total + (item.quantity || 1) * (item.mainQuantity || 1);
|
|
585
|
+
}
|
|
586
|
+
}, 0);
|
|
587
|
+
let fixedTotal = new import_decimal.default(0);
|
|
588
|
+
let productTotalSurcharge = new import_decimal.default(0);
|
|
398
589
|
if (matchedItems.length > 0) {
|
|
399
590
|
let configTotal = new import_decimal.default(0);
|
|
400
|
-
if (
|
|
591
|
+
if (fixed && new import_decimal.default(fixed).gt(0)) {
|
|
592
|
+
configTotal = configTotal.plus(fixed);
|
|
593
|
+
}
|
|
594
|
+
if (percentage && new import_decimal.default(percentage).gt(0) || fixed) {
|
|
401
595
|
const percentageRate = new import_decimal.default(percentage);
|
|
402
|
-
for (let item of matchedItems) {
|
|
596
|
+
for (let [index, item] of matchedItems.entries()) {
|
|
597
|
+
const isLast = index === matchedItems.length - 1;
|
|
403
598
|
const itemPrice = new import_decimal.default(Math.max(0, item.total || 0));
|
|
404
|
-
const itemQuantity = new import_decimal.default(item.quantity || 1);
|
|
599
|
+
const itemQuantity = new import_decimal.default(item.isMain ? item.quantity || 1 : item.quantity * item.mainQuantity || 1);
|
|
405
600
|
const addTimeTotal = new import_decimal.default(item.addTimeTotal || 0);
|
|
406
|
-
const
|
|
407
|
-
configTotal = configTotal.plus(
|
|
601
|
+
const itemTotalSurcharge = itemPrice.times(itemQuantity).plus(addTimeTotal).times(percentageRate);
|
|
602
|
+
configTotal = configTotal.plus(itemTotalSurcharge);
|
|
603
|
+
const itemSurcharge = itemPrice.times(percentageRate);
|
|
604
|
+
const fixedSurcharge = new import_decimal.default(1).div(productCount).times(fixed).times(100).floor().div(100).toFixed(2);
|
|
605
|
+
const quantity = item.isMain ? item.quantity : item.quantity * item.mainQuantity;
|
|
606
|
+
fixedTotal = fixedTotal.plus(new import_decimal.default(fixedSurcharge).times(quantity).toNumber());
|
|
607
|
+
if (isLast && fixedTotal.gt(0)) {
|
|
608
|
+
const remaining = new import_decimal.default(fixed).minus(fixedTotal).toNumber();
|
|
609
|
+
if (remaining > 0) {
|
|
610
|
+
productTotalSurcharge = productTotalSurcharge.plus(remaining);
|
|
611
|
+
if (item.isMain) {
|
|
612
|
+
item.item._extend.surcharge_rounding_remainder = remaining;
|
|
613
|
+
} else {
|
|
614
|
+
item.item.surcharge_rounding_remainder = remaining;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
if (open_product !== 0) {
|
|
619
|
+
if (item.isMain) {
|
|
620
|
+
const originSurchargeFee = new import_decimal.default(item.item._extend.surcharge_fee || 0);
|
|
621
|
+
const surchargeFee = originSurchargeFee.plus(itemSurcharge).plus(fixedSurcharge).toDecimalPlaces(2, import_decimal.default.ROUND_DOWN).toNumber();
|
|
622
|
+
productTotalSurcharge = productTotalSurcharge.plus(new import_decimal.default(surchargeFee).times(itemQuantity).toNumber());
|
|
623
|
+
item.item._extend.surcharge_fee = surchargeFee;
|
|
624
|
+
item.item._extend.relation_surcharge_ids = [...((_d = item.item._extend) == null ? void 0 : _d.relation_surcharge_ids) || [], id];
|
|
625
|
+
} else {
|
|
626
|
+
const originSurchargeFee = new import_decimal.default(item.item.surcharge_fee || 0);
|
|
627
|
+
const surchargeFee = originSurchargeFee.plus(itemSurcharge).plus(fixedSurcharge).toDecimalPlaces(2, import_decimal.default.ROUND_DOWN).toNumber();
|
|
628
|
+
productTotalSurcharge = productTotalSurcharge.plus(new import_decimal.default(surchargeFee).times(itemQuantity).toNumber());
|
|
629
|
+
item.item.surcharge_fee = surchargeFee;
|
|
630
|
+
item.item.relation_surcharge_ids = [...((_e = item.item) == null ? void 0 : _e.relation_surcharge_ids) || [], id];
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
if (isLast && configTotal.minus(productTotalSurcharge).gt(0)) {
|
|
634
|
+
const configTotalRounded = configTotal.toDecimalPlaces(2, import_decimal.default.ROUND_HALF_UP);
|
|
635
|
+
if (item.isMain) {
|
|
636
|
+
let newRoundingRemainder = new import_decimal.default(item.item._extend.surcharge_rounding_remainder || 0);
|
|
637
|
+
newRoundingRemainder = newRoundingRemainder.plus(configTotalRounded.minus(productTotalSurcharge));
|
|
638
|
+
item.item._extend.surcharge_rounding_remainder = newRoundingRemainder.toNumber();
|
|
639
|
+
} else {
|
|
640
|
+
let newRoundingRemainder = new import_decimal.default(item.item.surcharge_rounding_remainder || 0);
|
|
641
|
+
newRoundingRemainder = newRoundingRemainder.plus(configTotalRounded.minus(productTotalSurcharge));
|
|
642
|
+
item.item.surcharge_rounding_remainder = newRoundingRemainder.toNumber();
|
|
643
|
+
}
|
|
644
|
+
}
|
|
408
645
|
}
|
|
409
646
|
}
|
|
410
|
-
if (fixed && new import_decimal.default(fixed).gt(0)) {
|
|
411
|
-
configTotal = configTotal.plus(fixed);
|
|
412
|
-
}
|
|
413
647
|
finalAmount = configTotal.toDecimalPlaces(2, import_decimal.default.ROUND_HALF_UP).toNumber();
|
|
414
648
|
}
|
|
415
649
|
const name = surchargeConfig.name || {};
|
|
@@ -427,7 +661,10 @@ var getSurcharge = (state, options) => {
|
|
|
427
661
|
type: "default",
|
|
428
662
|
fixed,
|
|
429
663
|
amount: finalAmount,
|
|
430
|
-
percentage
|
|
664
|
+
percentage,
|
|
665
|
+
metadata: {
|
|
666
|
+
open_product
|
|
667
|
+
}
|
|
431
668
|
});
|
|
432
669
|
}
|
|
433
670
|
return surchargeWithAmount;
|
|
@@ -537,6 +774,19 @@ var getSumTotal = (state, options) => {
|
|
|
537
774
|
state,
|
|
538
775
|
options
|
|
539
776
|
});
|
|
777
|
+
const { productExpectAmount: productExpectAmountWithoutDiscount } = getProductExpectAmount(
|
|
778
|
+
state,
|
|
779
|
+
options.isEdit,
|
|
780
|
+
true
|
|
781
|
+
);
|
|
782
|
+
const originExpectAmountWithoutDiscount = getExpectAmount({
|
|
783
|
+
price: productExpectAmountWithoutDiscount,
|
|
784
|
+
tax: originTax,
|
|
785
|
+
surchargeAmount,
|
|
786
|
+
shopDiscount: 0,
|
|
787
|
+
state,
|
|
788
|
+
options
|
|
789
|
+
});
|
|
540
790
|
const sumTotalAmount = getSumTotalAmount({ expectAmount, roundingAmount });
|
|
541
791
|
const sumTotalAmountDecimal = new import_decimal.default((0, import_utils2.formatAmount)(sumTotalAmount, 2, "") || 0);
|
|
542
792
|
const orderPaidAmountDecimal = new import_decimal.default(orderPaidAmount || 0);
|
|
@@ -563,7 +813,9 @@ var getSumTotal = (state, options) => {
|
|
|
563
813
|
totalRefundAmount,
|
|
564
814
|
dueAmount,
|
|
565
815
|
roundingAmount,
|
|
566
|
-
originExpectAmount
|
|
816
|
+
originExpectAmount,
|
|
817
|
+
// 订单原价 不包含整单折扣 不包含商品券折扣卡抵扣
|
|
818
|
+
originExpectAmountWithoutDiscount
|
|
567
819
|
};
|
|
568
820
|
};
|
|
569
821
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -270,6 +270,15 @@ var Footer = (props) => {
|
|
|
270
270
|
...getDataFromHost()
|
|
271
271
|
});
|
|
272
272
|
}, [state, isEdit]);
|
|
273
|
+
(0, import_react.useEffect)(() => {
|
|
274
|
+
window.dispatchEvent(
|
|
275
|
+
new CustomEvent("onOriginExpectAmountWithoutDiscountChange", {
|
|
276
|
+
detail: {
|
|
277
|
+
originExpectAmountWithoutDiscount: total == null ? void 0 : total.originExpectAmountWithoutDiscount
|
|
278
|
+
}
|
|
279
|
+
})
|
|
280
|
+
);
|
|
281
|
+
}, [total == null ? void 0 : total.originExpectAmountWithoutDiscount]);
|
|
273
282
|
const orderTotalList = (0, import_react.useMemo)(() => {
|
|
274
283
|
return [
|
|
275
284
|
// 订单已付金额
|
|
@@ -611,6 +620,7 @@ var Footer = (props) => {
|
|
|
611
620
|
const isHasDayProducts = handleDaySubmit();
|
|
612
621
|
if (isHasDayProducts) return;
|
|
613
622
|
}
|
|
623
|
+
debugger;
|
|
614
624
|
const hasUnspecifiedHolderProduct = (_d2 = state.service.value) == null ? void 0 : _d2.some((item) => {
|
|
615
625
|
var _a3, _b3, _c3;
|
|
616
626
|
return (!((_a3 = item._extend) == null ? void 0 : _a3.holder_id) || ((_c3 = (_b3 = item._extend) == null ? void 0 : _b3.holder_id) == null ? void 0 : _c3.length) === 0) && !(0, import_utils2.isNormalProductByDurationSchedule)(item);
|
|
@@ -1260,7 +1270,8 @@ var Footer = (props) => {
|
|
|
1260
1270
|
}
|
|
1261
1271
|
};
|
|
1262
1272
|
const changeCustomerToGlobalState = (0, import_ahooks.useMemoizedFn)((value) => {
|
|
1263
|
-
var _a2, _b2;
|
|
1273
|
+
var _a2, _b2, _c2;
|
|
1274
|
+
const beforeValue = (_a2 = state == null ? void 0 : state.client) == null ? void 0 : _a2.value;
|
|
1264
1275
|
dispatch({
|
|
1265
1276
|
type: "setClient",
|
|
1266
1277
|
payload: {
|
|
@@ -1268,7 +1279,8 @@ var Footer = (props) => {
|
|
|
1268
1279
|
edit: true
|
|
1269
1280
|
}
|
|
1270
1281
|
});
|
|
1271
|
-
if ((
|
|
1282
|
+
if ((beforeValue == null ? void 0 : beforeValue.id) === (value == null ? void 0 : value.id)) return;
|
|
1283
|
+
if ((_c2 = (_b2 = state == null ? void 0 : state.service) == null ? void 0 : _b2.value) == null ? void 0 : _c2.length) {
|
|
1272
1284
|
dispatch({
|
|
1273
1285
|
type: "setService",
|
|
1274
1286
|
payload: {
|