@pisell/private-materials 6.7.3 → 6.7.5
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 +2 -2
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/appointmentBooking/components/Voucher/index.js +2 -1
- package/es/components/booking/addons/index.js +25 -17
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +529 -79
- package/es/components/booking/components/footer/index.js +77 -56
- package/es/components/booking/components/footer/utils.d.ts +19 -0
- package/es/components/booking/components/footer/utils.js +151 -52
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.js +20 -6
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- 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 +30 -6
- package/es/components/booking/info2/index.js +1 -1
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.js +2 -3
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- 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.js +16 -3
- package/es/components/checkout/PaymentModal.d.ts +7 -5
- package/es/components/checkout/PaymentModal.js +257 -213
- package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/es/components/checkout/components/AdditionalModule/index.js +52 -12
- package/es/components/checkout/components/AmountSummary/index.js +9 -76
- package/es/components/checkout/components/AmountSummary/index.less +5 -6
- package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
- package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
- package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.js +6 -0
- package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
- package/es/components/eftposPay/pay.d.ts +1 -0
- 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 +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/tyro/index.js +12 -0
- package/es/components/eftposPay/utils/log/index.js +371 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/index.js +2 -1
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
- 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/index.js +7 -4
- package/es/components/pay/toC/locales.js +6 -3
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pay/toC/status.js +3 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/subTotal/index.js +1 -1
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/es/components/{checkout/PaymentPlugin.js → systemSettings/registry/components/GroupModal.js} +132 -171
- 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.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 +2 -86
- package/es/components/ticketBooking/components/menuBar/index.js +109 -12
- package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/es/components/ticketBooking/components/timeBar/index.js +112 -7
- package/es/components/ticketBooking/components/timeBar/index.less +59 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +29 -18
- package/es/components/ticketBooking/locales.js +9 -3
- package/es/components/ticketBooking/utils/index.js +36 -13
- package/es/components/wallet/Detail/index.js +34 -2
- package/es/components/wallet/Detail/index.less +11 -0
- package/es/components/wallet/Detail/locales.js +14 -2
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/index.js +11 -10
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/components/WalletCard.js +5 -1
- package/es/components/wallet/index.js +4 -2
- package/es/components/wallet/model.d.ts +1 -9
- package/es/components/wallet/utils.js +342 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/index.d.ts +4 -0
- package/es/index.js +4 -0
- package/es/plus/clientCard/locales.js +3 -3
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/es/plus/clinetSearch/index.js +28 -30
- package/es/plus/clinetSearch/locales.js +7 -4
- 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/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- 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.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +84 -31
- package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
- package/es/plus/walletPassGallery/index.js +7 -3
- package/es/plus/walletPassGallery/serve.js +4 -2
- package/es/plus/webPosLogin/WebPosLogin.js +5 -8
- package/es/plus/webPosLogin/WebPosLoginCpt.js +1 -1
- package/es/plus/webPosLogin/components/BrandPanel/index.js +7 -37
- package/es/plus/webPosLogin/components/MediaDisplay/index.d.ts +12 -0
- package/es/plus/webPosLogin/components/MediaDisplay/index.js +220 -0
- package/es/plus/webPosLogin/components/MediaDisplay/index.less +141 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.js +1 -0
- package/es/pro/Login2.0/index.less +15 -8
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/comprehensiveSearch/locales.js +1 -1
- package/es/pro/pisellPaymentList/example.d.ts +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +45 -36
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
- package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
- package/lib/components/booking/addons/index.js +15 -7
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +276 -38
- package/lib/components/booking/components/footer/index.js +30 -11
- package/lib/components/booking/components/footer/utils.d.ts +19 -0
- package/lib/components/booking/components/footer/utils.js +97 -21
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.js +21 -7
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- 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 +25 -5
- package/lib/components/booking/info2/index.js +7 -2
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.js +1 -2
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- 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.js +11 -0
- package/lib/components/checkout/PaymentModal.d.ts +7 -5
- package/lib/components/checkout/PaymentModal.js +171 -135
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/lib/components/checkout/components/AdditionalModule/index.js +52 -11
- package/lib/components/checkout/components/AmountSummary/index.js +5 -46
- package/lib/components/checkout/components/AmountSummary/index.less +5 -6
- package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
- package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
- package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.js +6 -0
- package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
- package/lib/components/eftposPay/pay.d.ts +1 -0
- 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 +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/tyro/index.js +12 -0
- package/lib/components/eftposPay/utils/log/index.js +294 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/index.js +3 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Content/Header.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -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/index.js +4 -1
- package/lib/components/pay/toC/locales.js +6 -3
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pay/toC/status.js +5 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- 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.js +48 -0
- 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/systemSettings/registry/types.js +17 -0
- 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 +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
- package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +17 -13
- package/lib/components/ticketBooking/locales.js +9 -3
- package/lib/components/ticketBooking/utils/index.js +20 -6
- package/lib/components/wallet/Detail/index.js +31 -3
- package/lib/components/wallet/Detail/index.less +11 -0
- package/lib/components/wallet/Detail/locales.js +14 -2
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/index.js +8 -8
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/components/WalletCard.js +4 -0
- package/lib/components/wallet/index.js +2 -2
- package/lib/components/wallet/model.d.ts +1 -9
- package/lib/components/wallet/utils.js +287 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +12 -0
- package/lib/plus/clientCard/locales.js +3 -3
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +1 -0
- package/lib/plus/clinetSearch/index.js +17 -8
- package/lib/plus/clinetSearch/locales.js +7 -4
- 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/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- 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.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +54 -15
- package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
- package/lib/plus/walletPassGallery/index.js +7 -3
- package/lib/plus/walletPassGallery/serve.js +3 -2
- package/lib/plus/webPosLogin/WebPosLogin.js +17 -21
- package/lib/plus/webPosLogin/WebPosLoginCpt.js +1 -1
- package/lib/plus/webPosLogin/components/BrandPanel/index.js +2 -22
- package/lib/plus/webPosLogin/components/MediaDisplay/index.d.ts +12 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/index.js +160 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/index.less +141 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.js +17 -0
- package/lib/pro/Login2.0/index.less +15 -8
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/comprehensiveSearch/locales.js +1 -1
- package/lib/pro/pisellPaymentList/example.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +42 -43
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- package/lowcode/settings-registry/meta.ts +29 -0
- package/lowcode/wallet-pass-detail/meta.ts +89 -0
- package/package.json +4 -4
- package/es/components/booking/components/footer/amount.d.ts +0 -36
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/es/components/booking/info/service2/utils.d.ts +0 -251
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/utils.d.ts +0 -173
- package/es/components/checkout/PaymentPlugin.d.ts +0 -2
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +0 -24
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -15
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -81
- package/es/components/checkout/locales.d.ts +0 -507
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -33
- 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/index.d.ts +0 -23
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -149
- package/es/components/pay/toC/locales.d.ts +0 -298
- package/es/components/pay/toC/status.d.ts +0 -12
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- package/es/components/ticketBooking/locales.d.ts +0 -192
- package/es/components/ticketBooking/utils/index.d.ts +0 -90
- package/es/components/wallet/Detail/locales.d.ts +0 -147
- package/es/components/wallet/serve.d.ts +0 -143
- package/es/plus/clientCard/locales.d.ts +0 -18
- package/es/plus/clinetSearch/index.d.ts +0 -17
- package/es/plus/clinetSearch/locales.d.ts +0 -102
- package/es/plus/clinetSearch/types.d.ts +0 -49
- package/es/plus/walletPassGallery/serve.d.ts +0 -218
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
- package/es/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -11
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -97
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -17
- package/lib/components/booking/components/footer/amount.d.ts +0 -36
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/lib/components/booking/info/service2/utils.d.ts +0 -251
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/utils.d.ts +0 -173
- package/lib/components/checkout/PaymentPlugin.d.ts +0 -2
- package/lib/components/checkout/PaymentPlugin.js +0 -181
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +0 -24
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -15
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -81
- package/lib/components/checkout/locales.d.ts +0 -507
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -33
- 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/index.d.ts +0 -23
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -149
- package/lib/components/pay/toC/locales.d.ts +0 -298
- package/lib/components/pay/toC/status.d.ts +0 -12
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- package/lib/components/ticketBooking/locales.d.ts +0 -192
- package/lib/components/ticketBooking/utils/index.d.ts +0 -90
- package/lib/components/wallet/Detail/locales.d.ts +0 -147
- package/lib/components/wallet/serve.d.ts +0 -143
- package/lib/plus/clientCard/locales.d.ts +0 -18
- package/lib/plus/clinetSearch/index.d.ts +0 -17
- package/lib/plus/clinetSearch/locales.d.ts +0 -102
- package/lib/plus/clinetSearch/types.d.ts +0 -49
- package/lib/plus/walletPassGallery/serve.d.ts +0 -218
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +0 -15
- package/lib/pro/comprehensiveSearch/locales.d.ts +0 -15
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -11
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -97
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -17
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
export declare const formatActiveKey: (lists: any[], platform: string, isEdit: boolean) => any[];
|
|
3
|
-
/**
|
|
4
|
-
* @title: 获取资源名称
|
|
5
|
-
* @description:
|
|
6
|
-
* @param {any} id
|
|
7
|
-
* @param {any} state
|
|
8
|
-
* @return {*}
|
|
9
|
-
* @Author: WangHan
|
|
10
|
-
* @Date: 2024-11-29 18:02
|
|
11
|
-
*/
|
|
12
|
-
export declare const getResourceItem: (id: any, state: any) => any;
|
|
13
|
-
/**
|
|
14
|
-
* @title: 错误提示
|
|
15
|
-
* @description:
|
|
16
|
-
* @param {any} service
|
|
17
|
-
* @param {any} resourceItem
|
|
18
|
-
* @return {*}
|
|
19
|
-
* @Author: WangHan
|
|
20
|
-
* @Date: 2024-11-29 18:41
|
|
21
|
-
*/
|
|
22
|
-
export declare const getErrorMessage: (service: any, resourceItem: any, isDay?: boolean) => any;
|
|
23
|
-
/**
|
|
24
|
-
* @title: 格式化主体列表
|
|
25
|
-
* @description:
|
|
26
|
-
* @param {any} lists
|
|
27
|
-
* @param {boolean} isOpenGroup
|
|
28
|
-
* @return {*}
|
|
29
|
-
* @Author: WangHan
|
|
30
|
-
* @Date: 2024-12-04 11:27
|
|
31
|
-
*/
|
|
32
|
-
export declare const formatHolderLists: (lists: any) => any;
|
|
33
|
-
export declare const isBookingProduct: (extension_type: any, bol?: boolean) => boolean | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* @title: 是否是预约商品
|
|
36
|
-
* @description:
|
|
37
|
-
* @return {*}
|
|
38
|
-
* @Author: WangHan
|
|
39
|
-
* @Date: 2024-12-06 11:24
|
|
40
|
-
*/
|
|
41
|
-
export declare const isDayBookingProduct: (item: any, state: any) => boolean | undefined;
|
|
42
|
-
export declare const handleChangeHolder: (products: any[], currentItem: any, other: any) => any[];
|
|
43
|
-
/**
|
|
44
|
-
* @title: 更新商品数据
|
|
45
|
-
* @description:
|
|
46
|
-
* @param {any} state
|
|
47
|
-
* @param currentItem
|
|
48
|
-
* @param {string} type
|
|
49
|
-
* @param {any} other
|
|
50
|
-
* @param actions
|
|
51
|
-
* @return {*}
|
|
52
|
-
* @Author: WangHan
|
|
53
|
-
* @Date: 2025-01-03 15:00
|
|
54
|
-
*/
|
|
55
|
-
export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any;
|
|
56
|
-
export declare const formItems: (items: any[]) => any[];
|
|
57
|
-
export declare const getIsSubjectRequire: (state: any) => boolean;
|
|
58
|
-
export declare const isNormalProductByDurationSchedule: (item: any) => boolean;
|
|
59
|
-
export declare const isAllNormalProduct: (items: any[]) => boolean;
|
|
60
|
-
export declare const isAllNormalProductByState: (state: any) => boolean;
|
|
61
|
-
export declare const genRowKey: (key: string) => string;
|
|
62
|
-
/**
|
|
63
|
-
* @title: 格式化商品数据
|
|
64
|
-
* @description:
|
|
65
|
-
* @param {any} lists
|
|
66
|
-
* @return {*}
|
|
67
|
-
* @Author: WangHan
|
|
68
|
-
* @Date: 2024-11-29 17:36
|
|
69
|
-
*/
|
|
70
|
-
export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => {
|
|
71
|
-
_origin: any;
|
|
72
|
-
id: any;
|
|
73
|
-
_id: any;
|
|
74
|
-
name: any;
|
|
75
|
-
title: any;
|
|
76
|
-
price: any;
|
|
77
|
-
total: number;
|
|
78
|
-
origin_total: number;
|
|
79
|
-
num: any;
|
|
80
|
-
image: any;
|
|
81
|
-
isShowNote: boolean;
|
|
82
|
-
note: any;
|
|
83
|
-
like_status: any;
|
|
84
|
-
bundle: any;
|
|
85
|
-
options: any;
|
|
86
|
-
errorMessage: string;
|
|
87
|
-
product_option_string: any;
|
|
88
|
-
discount_reason: any;
|
|
89
|
-
resource_id: any;
|
|
90
|
-
relation_form_name: any;
|
|
91
|
-
holder_title: any;
|
|
92
|
-
start_date: any;
|
|
93
|
-
end_date: any;
|
|
94
|
-
holder_id: any;
|
|
95
|
-
isNormalProduct: boolean;
|
|
96
|
-
isCustomItem: any;
|
|
97
|
-
vouchersApplicable: any;
|
|
98
|
-
locale: any;
|
|
99
|
-
symbol: any;
|
|
100
|
-
relation_products: any;
|
|
101
|
-
items: any[];
|
|
102
|
-
}[];
|
|
103
|
-
/**
|
|
104
|
-
* @title: 禁用日期
|
|
105
|
-
* @description:
|
|
106
|
-
* @param {any} current
|
|
107
|
-
* @param {string} position
|
|
108
|
-
* @param {any} startDate
|
|
109
|
-
* @return {*}
|
|
110
|
-
* @Author: WangHan
|
|
111
|
-
* @Date: 2024-12-03 17:51
|
|
112
|
-
*/
|
|
113
|
-
export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
|
|
114
|
-
/**
|
|
115
|
-
* @title: 是否是跨日预约
|
|
116
|
-
* @description:
|
|
117
|
-
* @param {any} state
|
|
118
|
-
* @return {*}
|
|
119
|
-
* @Author: WangHan
|
|
120
|
-
* @Date: 2024-12-04 09:49
|
|
121
|
-
*/
|
|
122
|
-
export declare const isDayBooking: (state: any) => boolean;
|
|
123
|
-
export declare const isDaysBooking: (state: any) => boolean;
|
|
124
|
-
export declare const isEventBooking: (state: any) => boolean;
|
|
125
|
-
export declare const isAppointmentProduct: (item: any) => boolean;
|
|
126
|
-
/**
|
|
127
|
-
* @title: 是否是terminal上的跨日预约
|
|
128
|
-
* @description:
|
|
129
|
-
* @param {any} state
|
|
130
|
-
* @return {*}
|
|
131
|
-
* @Author: WangHan
|
|
132
|
-
* @Date: 2024-12-04 15:31
|
|
133
|
-
*/
|
|
134
|
-
export declare const isTerminalDayBooking: (state: any) => any;
|
|
135
|
-
export declare const formatDayDate: (_extend: any) => any;
|
|
136
|
-
/**
|
|
137
|
-
* @title: 根据营业日时间格式化时间
|
|
138
|
-
* @description:
|
|
139
|
-
* @param {any} state
|
|
140
|
-
* @return {*}
|
|
141
|
-
* @Author: WangHan
|
|
142
|
-
* @Date: 2024-12-04 12:07
|
|
143
|
-
*/
|
|
144
|
-
export declare const formatDayTime: ({ startDate, endDate }: any) => {
|
|
145
|
-
startDateTime: dayjs.Dayjs;
|
|
146
|
-
endDateTime: dayjs.Dayjs;
|
|
147
|
-
};
|
|
148
|
-
export declare const formatDateTime: (start_date: any, end_date: any) => {
|
|
149
|
-
value: dayjs.Dayjs;
|
|
150
|
-
end_date: dayjs.Dayjs;
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* @title: 初始化日期
|
|
154
|
-
* @description:
|
|
155
|
-
* @return {*}
|
|
156
|
-
* @Author: WangHan
|
|
157
|
-
* @Date: 2024-12-06 17:24
|
|
158
|
-
*/
|
|
159
|
-
export declare const initDate: () => {
|
|
160
|
-
value: dayjs.Dayjs;
|
|
161
|
-
end_date: dayjs.Dayjs;
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* @title: 是否有预约商品
|
|
165
|
-
* @description:
|
|
166
|
-
* @return {*}
|
|
167
|
-
* @Author: WangHan
|
|
168
|
-
* @Date: 2024-12-12 15:47
|
|
169
|
-
*/
|
|
170
|
-
export declare const isHasDayAppointmentProduct: (state: any) => boolean;
|
|
171
|
-
/**
|
|
172
|
-
* @title: 过滤出如果是预约商品,则只获取跨日的预约商品
|
|
173
|
-
* @description:
|
|
174
|
-
* @param {any} lists
|
|
175
|
-
* @return {*}
|
|
176
|
-
* @Author: WangHan
|
|
177
|
-
* @Date: 2024-12-13 16:44
|
|
178
|
-
*/
|
|
179
|
-
export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
|
|
180
|
-
/**
|
|
181
|
-
* @title: 格式化表单数据
|
|
182
|
-
* @description:
|
|
183
|
-
* @param {any} state
|
|
184
|
-
* @return {*}
|
|
185
|
-
* @Author: WangHan
|
|
186
|
-
* @Date: 2024-12-30 22:19
|
|
187
|
-
*/
|
|
188
|
-
export declare const getPets: (state: any) => any;
|
|
189
|
-
/**
|
|
190
|
-
* @title: 得出预约商品
|
|
191
|
-
* @description:
|
|
192
|
-
* @param {any} state
|
|
193
|
-
* @return {*}
|
|
194
|
-
* @Author: WangHan
|
|
195
|
-
* @Date: 2024-12-30 22:26
|
|
196
|
-
*/
|
|
197
|
-
export declare const getAppointmentService: (state: any) => any;
|
|
198
|
-
/**
|
|
199
|
-
* @title: 判断是否打开删除宠物弹窗
|
|
200
|
-
* @description:
|
|
201
|
-
* @param {any} state
|
|
202
|
-
* @param {any} newVal
|
|
203
|
-
* @return {*}
|
|
204
|
-
* @Author: WangHan
|
|
205
|
-
* @Date: 2024-12-16 16:12
|
|
206
|
-
*/
|
|
207
|
-
export declare const isOpenDeletePet: (state: any, newVal: any) => {
|
|
208
|
-
ids: any;
|
|
209
|
-
lists: any;
|
|
210
|
-
};
|
|
211
|
-
/**
|
|
212
|
-
* @title: 当前选中的表单id
|
|
213
|
-
* @description:
|
|
214
|
-
* @param {any} state
|
|
215
|
-
* @return {*}
|
|
216
|
-
* @Author: WangHan
|
|
217
|
-
* @Date: 2024-12-17 14:40
|
|
218
|
-
*/
|
|
219
|
-
export declare const holderId: (state: any) => number;
|
|
220
|
-
/**
|
|
221
|
-
* @title: 更新套餐的价格
|
|
222
|
-
* @description:
|
|
223
|
-
* @param {any} currentValue
|
|
224
|
-
* @param {any} newBundleData
|
|
225
|
-
* @return {*}
|
|
226
|
-
* @Author: WangHan
|
|
227
|
-
* @Date: 2024-12-31 15:16
|
|
228
|
-
*/
|
|
229
|
-
export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
|
|
230
|
-
/**
|
|
231
|
-
* @title: 更新预约商品报价单
|
|
232
|
-
* @description:
|
|
233
|
-
* @param {any} state
|
|
234
|
-
* @param {any} cacheItem
|
|
235
|
-
* @return {*}
|
|
236
|
-
* @Author: WangHan
|
|
237
|
-
* @Date: 2024-12-25 16:41
|
|
238
|
-
*/
|
|
239
|
-
export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
|
|
240
|
-
multiDayPrices: any;
|
|
241
|
-
price: number;
|
|
242
|
-
}>;
|
|
243
|
-
/**
|
|
244
|
-
* @title: 更新普通商品报价单价格
|
|
245
|
-
* @description:
|
|
246
|
-
* @param {any} state
|
|
247
|
-
* @return {*}
|
|
248
|
-
* @Author: WangHan
|
|
249
|
-
* @Date: 2024-12-24 11:32
|
|
250
|
-
*/
|
|
251
|
-
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PisellDrawerProps } from '../../../components/drawer';
|
|
2
|
-
import '../../../info/service/addService/index.less';
|
|
3
|
-
interface AddServiceProps {
|
|
4
|
-
onEdit: any;
|
|
5
|
-
dispatch?: any;
|
|
6
|
-
state?: any;
|
|
7
|
-
drawerProps?: PisellDrawerProps;
|
|
8
|
-
renderMode?: 'current' | 'drawer';
|
|
9
|
-
}
|
|
10
|
-
declare const Info: (props: AddServiceProps) => JSX.Element;
|
|
11
|
-
export default Info;
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
/**
|
|
3
|
-
* @title: 高阶函数结果缓存(Memoization)
|
|
4
|
-
*/
|
|
5
|
-
export declare function memoize<T extends (...args: any[]) => any>(fn: T): T;
|
|
6
|
-
declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
|
|
7
|
-
declare class Request {
|
|
8
|
-
private request;
|
|
9
|
-
constructor();
|
|
10
|
-
setRequest(val: any): void;
|
|
11
|
-
getRequest(): {
|
|
12
|
-
get: RType;
|
|
13
|
-
post: RType;
|
|
14
|
-
put: RType;
|
|
15
|
-
remove: RType;
|
|
16
|
-
custom: RType;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export declare const request: Request;
|
|
20
|
-
/**
|
|
21
|
-
* @title: 格式化持续时长用于展示
|
|
22
|
-
* @description:
|
|
23
|
-
* @param {number} service_times
|
|
24
|
-
* @return {*}
|
|
25
|
-
* @Author: zhiwei.Wang
|
|
26
|
-
* @Date: 2024-04-26 14:00
|
|
27
|
-
*/
|
|
28
|
-
export declare const getDiscountTime: (service_times: number, isDay?: boolean) => string;
|
|
29
|
-
/**
|
|
30
|
-
* @title: 时间切片(带缓存版本)
|
|
31
|
-
* @description: 使用 memoize 高阶函数包裹 sliceDayIntoFiveMinutes,相同参数时直接返回缓存结果
|
|
32
|
-
*/
|
|
33
|
-
export declare const sliceDayIntoFiveMinutes: (config: any, locale: string, isDay?: boolean) => {
|
|
34
|
-
timeSlices: {
|
|
35
|
-
label: string;
|
|
36
|
-
value: string;
|
|
37
|
-
}[];
|
|
38
|
-
durationSlicesBasedOnTime: {
|
|
39
|
-
label: string;
|
|
40
|
-
value: number;
|
|
41
|
-
}[];
|
|
42
|
-
};
|
|
43
|
-
export declare const getNowTime: () => string;
|
|
44
|
-
export declare const isNowTime: (time: string) => boolean;
|
|
45
|
-
/**
|
|
46
|
-
* @title: 获取服务的开始时间, 如果是now 转换为当前的时间
|
|
47
|
-
* @description:
|
|
48
|
-
* @param {string} start_time
|
|
49
|
-
* @return {*}
|
|
50
|
-
* @Author: zhiwei.Wang
|
|
51
|
-
* @Date: 2024-04-26 14:03
|
|
52
|
-
*/
|
|
53
|
-
export declare const getServeStartTime: (start_time: string) => string;
|
|
54
|
-
/**
|
|
55
|
-
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
|
56
|
-
* @description:
|
|
57
|
-
* @param {any} item
|
|
58
|
-
* @param {any} currentDate
|
|
59
|
-
* @return {*}
|
|
60
|
-
* @Author: zhiwei.Wang
|
|
61
|
-
* @Date: 2024-04-26 14:04
|
|
62
|
-
*/
|
|
63
|
-
export declare const getServiceTime: (item: any, currentDate: any) => string;
|
|
64
|
-
export declare const findNextSlice: ({ timeSlices, index, date, }: {
|
|
65
|
-
timeSlices: any[];
|
|
66
|
-
index?: number | undefined;
|
|
67
|
-
date?: string | undefined;
|
|
68
|
-
}) => any;
|
|
69
|
-
export declare const findNextDuration: (current: any, array: any, defaultValue?: any) => any;
|
|
70
|
-
export declare const formatProductListByCategory: (list: any, filterItem: any) => unknown[];
|
|
71
|
-
export declare const getResourceTimeIsUsable: (item: any, cacheItem: any) => any;
|
|
72
|
-
/**
|
|
73
|
-
* @title: 查找是否有可用的time
|
|
74
|
-
* @description:
|
|
75
|
-
* @param {any} resourceItem
|
|
76
|
-
* @return {*}
|
|
77
|
-
* @Author: zhiwei.Wang
|
|
78
|
-
* @Date: 2024-01-09 13:57
|
|
79
|
-
*/
|
|
80
|
-
export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
|
|
81
|
-
/**
|
|
82
|
-
* @title: 获取店铺的营业结束时间
|
|
83
|
-
* @description:
|
|
84
|
-
* @return {*}
|
|
85
|
-
* @Author: zhiwei.Wang
|
|
86
|
-
* @Date: 2024-02-23 10:00
|
|
87
|
-
*/
|
|
88
|
-
export declare const getShopOpeningHours: () => string;
|
|
89
|
-
/**
|
|
90
|
-
* @title: 对灵活时长进行处理
|
|
91
|
-
* @description:
|
|
92
|
-
* @return {*}
|
|
93
|
-
* @Author: zhiwei.Wang
|
|
94
|
-
* @Date: 2024-02-23 10:00
|
|
95
|
-
*/
|
|
96
|
-
export declare const flexibleObj: {
|
|
97
|
-
create: (num: number) => any;
|
|
98
|
-
getValue: (str: string | number) => number;
|
|
99
|
-
isFlexible: (str: string | number) => boolean;
|
|
100
|
-
add: (current: number | string, duration: number) => any;
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* @title: 获取结束时间
|
|
104
|
-
* @description: 取 endDate | 店铺营业时间 最小的那一个
|
|
105
|
-
* @param {any} startDate
|
|
106
|
-
* @param {string} duration
|
|
107
|
-
* @param {any} endDate
|
|
108
|
-
* @return {*}
|
|
109
|
-
* @Author: zhiwei.Wang
|
|
110
|
-
* @Date: 2024-02-23 10:01
|
|
111
|
-
*/
|
|
112
|
-
export declare const getEndDate: (startDate: any, duration: string | number, endDate: any) => any;
|
|
113
|
-
export declare const getServiceTimes: (service: any) => {
|
|
114
|
-
startDate: dayjs.Dayjs;
|
|
115
|
-
endDate: dayjs.Dayjs;
|
|
116
|
-
};
|
|
117
|
-
export declare const getErrorList: (resource: any, cacheItem: any, isDay?: boolean) => {
|
|
118
|
-
label: any;
|
|
119
|
-
type: string;
|
|
120
|
-
}[];
|
|
121
|
-
/**
|
|
122
|
-
* @title: 格式化资源, 添加自定义参数
|
|
123
|
-
* @description:
|
|
124
|
-
* @param {any} resourceItem
|
|
125
|
-
* @return {*}
|
|
126
|
-
* @Author: zhiwei.Wang
|
|
127
|
-
* @Date: 2024-01-09 13:40
|
|
128
|
-
*/
|
|
129
|
-
export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
|
|
130
|
-
export declare const getLastServer: (list: any) => any;
|
|
131
|
-
export declare const getCacheParams: () => any;
|
|
132
|
-
export declare const deleteCacheParams: () => void;
|
|
133
|
-
/**
|
|
134
|
-
* @title: 获取跨日预约的时长
|
|
135
|
-
* @description:
|
|
136
|
-
* @param {any} cacheItem
|
|
137
|
-
* @return {*}
|
|
138
|
-
* @Author: WangHan
|
|
139
|
-
* @Date: 2024-12-01 22:43
|
|
140
|
-
*/
|
|
141
|
-
export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
|
|
142
|
-
export declare const isSessionProduct: (cacheItem: any) => boolean;
|
|
143
|
-
export declare const getIsEject: (item: any, type: 'select' | 'detail') => boolean;
|
|
144
|
-
export declare const getIsOnlySession: (item: any) => boolean;
|
|
145
|
-
/**
|
|
146
|
-
* @title: 创建一个服务商品
|
|
147
|
-
* @description:
|
|
148
|
-
* @param {any} state
|
|
149
|
-
* @param {any} item
|
|
150
|
-
* @return {*}
|
|
151
|
-
* @Author: zhiwei.Wang
|
|
152
|
-
* @Date: 2024-01-26 14:09
|
|
153
|
-
*/
|
|
154
|
-
export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
|
|
155
|
-
export declare const getProductTotalPrice: (item: any) => number;
|
|
156
|
-
/**
|
|
157
|
-
* @title: 判断 duration
|
|
158
|
-
* @description: 用于处理不同格式的duration
|
|
159
|
-
* @param {number} duration
|
|
160
|
-
* @return {*}
|
|
161
|
-
* @Author: zhiwei.Wang
|
|
162
|
-
* @Date: 2024-02-23 10:02
|
|
163
|
-
*/
|
|
164
|
-
export declare const getDuration: (duration: number | {
|
|
165
|
-
type: string;
|
|
166
|
-
value: number;
|
|
167
|
-
}) => number | "flexible" | {
|
|
168
|
-
type: string;
|
|
169
|
-
value: number;
|
|
170
|
-
};
|
|
171
|
-
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
172
|
-
export declare const getIsEdit: (state: any) => boolean;
|
|
173
|
-
export {};
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/checkout/PaymentPlugin.tsx
|
|
30
|
-
var PaymentPlugin_exports = {};
|
|
31
|
-
__export(PaymentPlugin_exports, {
|
|
32
|
-
default: () => PaymentPlugin_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(PaymentPlugin_exports);
|
|
35
|
-
var import_react = require("react");
|
|
36
|
-
var import_antd = require("antd");
|
|
37
|
-
var import_icons = require("@ant-design/icons");
|
|
38
|
-
var import_useModal = __toESM(require("../../hooks/useModal"));
|
|
39
|
-
var import_content = __toESM(require("./content"));
|
|
40
|
-
var import_utils = require("@pisell/utils");
|
|
41
|
-
var import_locales = __toESM(require("./locales"));
|
|
42
|
-
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
43
|
-
var import_react2 = __toESM(require("react"));
|
|
44
|
-
var modalStyle = document.createElement("style");
|
|
45
|
-
modalStyle.textContent = `
|
|
46
|
-
:where(.payment-modal-wrapper) .ant-modal .ant-modal-content,
|
|
47
|
-
.payment-modal-wrapper .ant-modal .ant-modal-content,
|
|
48
|
-
.payment-modal-wrapper .ant-modal-content {
|
|
49
|
-
padding: 12px 36px 36px 36px !important;
|
|
50
|
-
}
|
|
51
|
-
`;
|
|
52
|
-
if (!document.querySelector(".payment-modal-style")) {
|
|
53
|
-
modalStyle.className = "payment-modal-style";
|
|
54
|
-
document.head.appendChild(modalStyle);
|
|
55
|
-
}
|
|
56
|
-
var PaymentPlugin = () => {
|
|
57
|
-
var _a;
|
|
58
|
-
const context = (0, import_useEngineContext.default)();
|
|
59
|
-
const { pisellos } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
60
|
-
const paymentRef = (0, import_react.useRef)();
|
|
61
|
-
const callback = (0, import_react.useRef)();
|
|
62
|
-
const [totalAmount, setTotalAmount] = (0, import_react.useState)(0);
|
|
63
|
-
const translation = (key, fallback) => {
|
|
64
|
-
var _a2;
|
|
65
|
-
const currentLang = import_utils.locales.locale || "en";
|
|
66
|
-
const checkoutText = (_a2 = import_locales.default[currentLang]) == null ? void 0 : _a2[key];
|
|
67
|
-
if (checkoutText) {
|
|
68
|
-
return checkoutText;
|
|
69
|
-
}
|
|
70
|
-
return import_utils.locales.getText(key) || fallback;
|
|
71
|
-
};
|
|
72
|
-
const handlePaymentComplete = (result) => {
|
|
73
|
-
var _a2;
|
|
74
|
-
console.log("Payment completed:", result);
|
|
75
|
-
(_a2 = callback.current) == null ? void 0 : _a2.call(callback, result);
|
|
76
|
-
hideModal();
|
|
77
|
-
};
|
|
78
|
-
const handlePaymentCancel = () => {
|
|
79
|
-
var _a2;
|
|
80
|
-
console.log("Payment cancelled");
|
|
81
|
-
hideModal();
|
|
82
|
-
(_a2 = callback.current) == null ? void 0 : _a2.call(callback, { status: "cancelled" });
|
|
83
|
-
};
|
|
84
|
-
const CustomHeader = () => /* @__PURE__ */ import_react2.default.createElement("div", { style: {
|
|
85
|
-
display: "flex",
|
|
86
|
-
alignItems: "center",
|
|
87
|
-
justifyContent: "space-between",
|
|
88
|
-
padding: "16px 0",
|
|
89
|
-
marginBottom: "16px",
|
|
90
|
-
borderBottom: "1px solid #f0f0f0",
|
|
91
|
-
backgroundColor: "#fafafa",
|
|
92
|
-
margin: "-12px -36px 16px -36px",
|
|
93
|
-
// 扩展到modal边缘
|
|
94
|
-
paddingLeft: "36px",
|
|
95
|
-
paddingRight: "36px"
|
|
96
|
-
} }, /* @__PURE__ */ import_react2.default.createElement("div", { style: {
|
|
97
|
-
display: "flex",
|
|
98
|
-
alignItems: "center",
|
|
99
|
-
gap: "12px"
|
|
100
|
-
} }, "硬件状态"), /* @__PURE__ */ import_react2.default.createElement("div", null, translation("order.total"), ":", totalAmount), /* @__PURE__ */ import_react2.default.createElement("div", { style: {
|
|
101
|
-
display: "flex",
|
|
102
|
-
alignItems: "center",
|
|
103
|
-
gap: "8px"
|
|
104
|
-
} }, /* @__PURE__ */ import_react2.default.createElement(
|
|
105
|
-
import_antd.Button,
|
|
106
|
-
{
|
|
107
|
-
type: "text",
|
|
108
|
-
size: "small",
|
|
109
|
-
icon: /* @__PURE__ */ import_react2.default.createElement(import_icons.CloseOutlined, null),
|
|
110
|
-
onClick: handlePaymentCancel,
|
|
111
|
-
style: {
|
|
112
|
-
color: "#8c8c8c",
|
|
113
|
-
border: "none",
|
|
114
|
-
boxShadow: "none"
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
)));
|
|
118
|
-
const { showModal, hideModal, content } = (0, import_useModal.default)({
|
|
119
|
-
title: null,
|
|
120
|
-
// 移除默认标题,使用自定义头部
|
|
121
|
-
children: /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, /* @__PURE__ */ import_react2.default.createElement(CustomHeader, null), /* @__PURE__ */ import_react2.default.createElement(
|
|
122
|
-
import_content.default,
|
|
123
|
-
{
|
|
124
|
-
paymentData: paymentRef.current,
|
|
125
|
-
moduleConfig: {
|
|
126
|
-
showWalletPass: true,
|
|
127
|
-
showCashPayment: true,
|
|
128
|
-
showAdditionalModule: true,
|
|
129
|
-
showPaymentOptions: true
|
|
130
|
-
},
|
|
131
|
-
onPaymentComplete: handlePaymentComplete,
|
|
132
|
-
onPaymentCancel: handlePaymentCancel,
|
|
133
|
-
onStatusChange: (status) => console.log("Status changed:", status),
|
|
134
|
-
open_deposit: true
|
|
135
|
-
}
|
|
136
|
-
)),
|
|
137
|
-
width: 880,
|
|
138
|
-
// 808px 内容宽度 + 36px 左右内边距
|
|
139
|
-
destroyOnClose: true,
|
|
140
|
-
maskClosable: false,
|
|
141
|
-
footer: null,
|
|
142
|
-
// 移除默认的确定/取消按钮,让组件内部处理
|
|
143
|
-
closeIcon: null,
|
|
144
|
-
// 移除默认关闭图标,使用自定义的
|
|
145
|
-
onCancel: handlePaymentCancel,
|
|
146
|
-
wrapClassName: "payment-modal-wrapper"
|
|
147
|
-
});
|
|
148
|
-
const onOpen = async (props) => {
|
|
149
|
-
var _a2, _b, _c;
|
|
150
|
-
const checkout = pisellos.getModule("checkout");
|
|
151
|
-
if (checkout) {
|
|
152
|
-
await checkout.createLocalOrderAsync({
|
|
153
|
-
orderData: (_a2 = props.data) == null ? void 0 : _a2.order_info,
|
|
154
|
-
cartSummary: (_c = (_b = props.data) == null ? void 0 : _b.subtotal_info) == null ? void 0 : _c.subTotalList,
|
|
155
|
-
autoPayment: true
|
|
156
|
-
});
|
|
157
|
-
const orderInfo = checkout.getCurrentOrderInfo();
|
|
158
|
-
if (orderInfo && orderInfo.totalAmount) {
|
|
159
|
-
setTotalAmount(orderInfo.totalAmount);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
paymentRef.current = props == null ? void 0 : props.data;
|
|
163
|
-
callback.current = props == null ? void 0 : props.callback;
|
|
164
|
-
showModal();
|
|
165
|
-
};
|
|
166
|
-
const onClose = () => {
|
|
167
|
-
hideModal();
|
|
168
|
-
};
|
|
169
|
-
const init = () => {
|
|
170
|
-
const state = {
|
|
171
|
-
open: onOpen,
|
|
172
|
-
close: onClose
|
|
173
|
-
};
|
|
174
|
-
console.log("PaymentPlugin", state);
|
|
175
|
-
};
|
|
176
|
-
(0, import_react.useEffect)(() => {
|
|
177
|
-
init();
|
|
178
|
-
}, []);
|
|
179
|
-
return /* @__PURE__ */ import_react2.default.createElement(import_react2.default.Fragment, null, content);
|
|
180
|
-
};
|
|
181
|
-
var PaymentPlugin_default = PaymentPlugin;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CurrentOrderInfo } from '../../types';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export interface CashPaymentModuleProps {
|
|
5
|
-
amountSymbol?: string;
|
|
6
|
-
orderInfo?: CurrentOrderInfo;
|
|
7
|
-
onPaymentComplete?: (result: any) => void;
|
|
8
|
-
amountButtons?: number[];
|
|
9
|
-
customAmount?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
roundingFunction?: (amount: number) => Promise<{
|
|
12
|
-
roundedAmount: number;
|
|
13
|
-
roundingDifference: number;
|
|
14
|
-
}>;
|
|
15
|
-
balanceDueAmount?: string;
|
|
16
|
-
balanceDueTotalAmount?: string;
|
|
17
|
-
syncingLock?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare function CashPaymentModule({ amountSymbol, orderInfo, onPaymentComplete, customAmount, amountButtons, // 按钮列表,默认5个推荐金额
|
|
20
|
-
disabled, // 禁用状态
|
|
21
|
-
roundingFunction, balanceDueAmount, // 当前阶段剩余支付金额(定金或普通支付)
|
|
22
|
-
balanceDueTotalAmount, // 完整订单剩余待付金额
|
|
23
|
-
syncingLock, }: CashPaymentModuleProps): JSX.Element;
|
|
24
|
-
export default CashPaymentModule;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ExtendedPaymentMethod } from './PaymentMethodItem';
|
|
3
|
-
import { PaymentOptionsModuleProps } from '../../types';
|
|
4
|
-
import './index.less';
|
|
5
|
-
interface ExtendedPaymentOptionsModuleProps extends PaymentOptionsModuleProps {
|
|
6
|
-
amountSymbol?: string;
|
|
7
|
-
paymentMethods?: ExtendedPaymentMethod[];
|
|
8
|
-
customAmount?: string | number;
|
|
9
|
-
title?: string;
|
|
10
|
-
onClick?: (method: ExtendedPaymentMethod) => void;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
showCashPayment?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare function PaymentOptionsModule({ amountSymbol, orderInfo, onClick, paymentMethods, customAmount, title, disabled, showCashPayment, }: ExtendedPaymentOptionsModuleProps): JSX.Element;
|
|
15
|
-
export default PaymentOptionsModule;
|