@pisell/private-materials 6.2.50 → 6.2.52
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 +145 -143
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +24 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +24 -9
- package/es/components/Sales/Event/Detail.js +4 -3
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -2
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +273 -76
- package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/es/components/appointmentBooking/components/Services/index.js +22 -8
- package/es/components/appointmentBooking/hooks.d.ts +1 -0
- package/es/components/appointmentBooking/hooks.js +35 -30
- package/es/components/appointmentBooking/locales.d.ts +3 -0
- package/es/components/appointmentBooking/locales.js +9 -6
- package/es/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
- package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
- package/es/components/authentication/admin/AuthMethods/SettingList.js +62 -0
- package/es/components/authentication/admin/AuthMethods/SettingList.less +85 -0
- package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
- package/es/components/authentication/admin/AuthMethods/SettingsDrawer.js +121 -0
- package/es/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
- package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
- package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +15 -0
- package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +152 -0
- package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +114 -0
- package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
- package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +170 -0
- package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +116 -0
- package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
- package/es/components/authentication/admin/AuthMethods/components/index.js +5 -0
- package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
- package/es/components/authentication/admin/AuthMethods/constants.js +121 -0
- package/es/components/authentication/admin/AuthMethods/index.d.ts +8 -0
- package/es/components/authentication/admin/AuthMethods/index.js +233 -0
- package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
- package/es/components/authentication/admin/AuthMethods/locales.js +290 -0
- package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
- package/es/components/authentication/admin/AuthMethods/types.js +23 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +447 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +107 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +1 -0
- package/es/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +530 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +86 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +1 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +460 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +185 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +32 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +1 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +214 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +71 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +1 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +287 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
- package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/index.js +228 -0
- package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
- package/es/components/authentication/admin/ChannelAuthSetting/locales.js +50 -0
- package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
- package/es/components/authentication/admin/ChannelAuthSetting/types.js +1 -0
- package/es/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
- package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/CustomerAuth/index.js +711 -0
- package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
- package/es/components/authentication/admin/CustomerAuth/locales.js +86 -0
- package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/CustomerAuth/types.js +1 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/index.js +545 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +137 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/types.js +1 -0
- package/es/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
- package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/DeviceAuth/index.js +366 -0
- package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
- package/es/components/authentication/admin/DeviceAuth/locales.js +74 -0
- package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/DeviceAuth/types.js +1 -0
- package/es/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
- package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
- package/es/components/authentication/admin/OAuthConfig/index.js +347 -0
- package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
- package/es/components/authentication/admin/OAuthConfig/locales.js +116 -0
- package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
- package/es/components/authentication/admin/OAuthConfig/types.js +1 -0
- package/es/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
- package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/OrgAdminAuth/index.js +543 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.js +74 -0
- package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/OrgAdminAuth/types.js +1 -0
- package/es/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
- package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/POSOperatorAuth/index.js +374 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.js +65 -0
- package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/POSOperatorAuth/types.js +1 -0
- package/es/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
- package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/SaaSAdminAuth/index.js +625 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.js +74 -0
- package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/SaaSAdminAuth/types.js +1 -0
- package/es/components/authentication/admin/index.d.ts +26 -0
- package/es/components/authentication/admin/index.js +23 -0
- package/es/components/authentication/index.d.ts +0 -0
- package/es/components/authentication/index.js +0 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/customSelect/index.js +23 -4
- package/es/components/booking/components/footer/index.js +4 -1
- package/es/components/booking/components/footer/utils.js +63 -48
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/forms/footer.js +26 -21
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/info/client/index.js +28 -13
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +16 -10
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +10 -2
- package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/main.js +3 -2
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info2/index.js +3 -2
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
- package/es/components/booking/locales.d.ts +6 -0
- package/es/components/booking/locales.js +12 -3
- package/es/components/booking/model.d.ts +13 -1
- package/es/components/booking/model.js +3 -0
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/group/index.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/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.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/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +43 -13
- package/es/components/eftposPay/linkly/index.js +64 -2
- package/es/components/eftposPay/payo/config.js +76 -38
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/payo/payment.js +579 -0
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/utils/log/index.d.ts +110 -0
- package/es/components/eftposPay/utils/log/index.js +371 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/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/index.d.ts +4 -2
- package/es/components/index.js +4 -2
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +100 -21
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +58 -8
- package/es/components/pay/toC/PaymentMethods/CashManual/index.js +74 -12
- package/es/components/pay/toC/PaymentMethods/CustomPayment/index.js +73 -12
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +93 -11
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +90 -12
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +46 -7
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +90 -12
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +107 -28
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.js +73 -8
- package/es/components/pay/toC/PaymentMethods/StripePay/index.js +68 -17
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +126 -23
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +89 -15
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +145 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +44 -0
- package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/es/components/pay/toC/PaymentMethods/hooks/index.js +126 -0
- package/es/components/pay/toC/index.js +290 -123
- package/es/components/pay/toC/locales.d.ts +12 -0
- package/es/components/pay/toC/locales.js +15 -3
- package/es/components/pay/toC/model.d.ts +10 -1
- package/es/components/pay/toC/serve.d.ts +5 -0
- package/es/components/pay/toC/serve.js +9 -1
- package/es/components/pay/toC/status.d.ts +1 -0
- package/es/components/pay/toC/status.js +3 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/es/components/systemSettings/registry/components/GroupModal.js +160 -0
- 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.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
- package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -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.d.ts +272 -0
- package/es/components/systemSettings/registry/locales.js +300 -0
- package/es/components/systemSettings/registry/services.d.ts +77 -0
- package/es/components/systemSettings/registry/services.js +472 -0
- package/es/components/systemSettings/registry/types.d.ts +126 -0
- package/es/components/systemSettings/registry/types.js +1 -0
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
- package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/es/components/systemSettings/registry/utils/validators.js +44 -0
- package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/model.d.ts +9 -1
- package/es/components/walletList/index.d.ts +0 -25
- package/es/components/walletList/index.js +93 -61
- package/es/components/walletList/serve.d.ts +4 -0
- package/es/components/walletList/serve.js +46 -13
- package/es/components/walletList/types/index.d.ts +12 -12
- package/es/components/walletList/types/index.js +2 -2
- package/es/hooks/usePaymentLogger.d.ts +22 -0
- package/es/hooks/usePaymentLogger.js +78 -0
- package/es/index.d.ts +8 -0
- package/es/index.js +8 -1
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/es/plus/contactInfo/components/Avatar/index.js +30 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
- package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/es/plus/contactInfo/index.d.ts +6 -0
- package/es/plus/contactInfo/index.js +198 -0
- package/es/plus/contactInfo/index.less +621 -0
- package/es/plus/contactInfo/locales.d.ts +15 -0
- package/es/plus/contactInfo/locales.js +14 -0
- package/es/plus/contactInfo/types.d.ts +91 -0
- package/es/plus/contactInfo/types.js +1 -0
- package/es/plus/contactInfo/utils.d.ts +7 -0
- package/es/plus/contactInfo/utils.js +50 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
- package/es/plus/contactInfoModal/index.d.ts +41 -0
- package/es/plus/contactInfoModal/index.js +155 -0
- package/es/plus/contactInfoModal/index.less +19 -0
- package/es/plus/contactInfoModal/locales.d.ts +66 -0
- package/es/plus/contactInfoModal/locales.js +65 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/es/plus/productSelect/CategoryTabs/index.js +6 -3
- package/es/plus/productSelect/ProductCard/index.d.ts +3 -1
- package/es/plus/productSelect/ProductCard/index.js +14 -5
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/es/plus/productSelect/index.d.ts +3 -2
- package/es/plus/productSelect/index.js +33 -8
- package/es/plus/productSelect/index.less +4 -0
- package/es/plus/productSelect/utils.js +0 -1
- package/es/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/es/plus/walletEditor/WalletEditor.js +316 -0
- package/es/plus/walletEditor/WalletEditor.less +129 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/es/plus/walletEditor/components/ImageUpload/index.js +223 -0
- package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/es/plus/walletEditor/components/JsonEditor/index.js +68 -0
- package/es/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.js +222 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/es/plus/walletEditor/components/relationProduct/index.js +49 -0
- package/es/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +193 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/es/plus/walletEditor/index.d.ts +3 -0
- package/es/plus/walletEditor/index.js +3 -0
- package/es/plus/walletEditor/locales.d.ts +126 -0
- package/es/plus/walletEditor/locales.js +143 -0
- package/es/plus/walletEditor/types.d.ts +52 -0
- package/es/plus/walletEditor/types.js +1 -0
- package/es/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
- package/es/plus/walletPassGallery/components/footerButton/index.js +245 -0
- package/es/plus/walletPassGallery/components/footerButton/index.less +48 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +278 -0
- package/es/plus/walletPassGallery/components/passDetail/index.less +61 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +11 -0
- package/es/plus/walletPassGallery/components/passList/index.js +115 -0
- package/es/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +145 -0
- package/es/plus/walletPassGallery/components/recharge/index.less +16 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +176 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.less +67 -0
- package/es/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
- package/es/plus/walletPassGallery/components/usageRule/index.js +248 -0
- package/es/plus/walletPassGallery/components/usageRule/index.less +157 -0
- package/es/plus/walletPassGallery/index.d.ts +6 -0
- package/es/plus/walletPassGallery/index.js +604 -0
- package/es/plus/walletPassGallery/index.less +115 -0
- package/es/plus/walletPassGallery/locales.d.ts +270 -0
- package/es/plus/walletPassGallery/locales.js +279 -0
- package/es/plus/walletPassGallery/serve.d.ts +218 -0
- package/es/plus/walletPassGallery/serve.js +289 -0
- package/es/pro/Login2.0/AuthModal.d.ts +143 -0
- package/es/pro/Login2.0/AuthModal.js +630 -0
- package/es/pro/Login2.0/Login2.d.ts +61 -0
- package/es/pro/Login2.0/Login2.js +2236 -0
- package/es/pro/Login2.0/Register2.d.ts +65 -0
- package/es/pro/Login2.0/Register2.js +1502 -0
- package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
- package/es/pro/Login2.0/components/ForgotPasswordFlow.js +330 -0
- package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/es/pro/Login2.0/components/LegalTerms.js +51 -0
- package/es/pro/Login2.0/components/LegalTerms.less +74 -0
- package/es/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
- package/es/pro/Login2.0/components/LoginCodeInput.js +207 -0
- package/es/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
- package/es/pro/Login2.0/components/OAuthButtonGroup.js +55 -0
- package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/es/pro/Login2.0/components/PhoneInput.js +414 -0
- package/es/pro/Login2.0/components/PhoneInput.less +148 -0
- package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/es/pro/Login2.0/components/phoneValidation.js +228 -0
- package/es/pro/Login2.0/hooks/index.d.ts +2 -0
- package/es/pro/Login2.0/hooks/index.js +1 -0
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.js +87 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.js +158 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.js +31 -0
- package/es/pro/Login2.0/index.js +8 -0
- package/es/pro/Login2.0/index.less +1009 -0
- package/es/pro/Login2.0/locales.d.ts +543 -0
- package/es/pro/Login2.0/locales.js +622 -0
- package/es/pro/Login2.0/shared/Header.d.ts +11 -0
- package/es/pro/Login2.0/shared/Header.js +42 -0
- package/es/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
- package/es/pro/Login2.0/shared/OAuthButtons.js +59 -0
- package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
- package/es/pro/Login2.0/shared/registerFlow.js +171 -0
- package/es/pro/Login2.0/shared/types.d.ts +232 -0
- package/es/pro/Login2.0/shared/types.js +1 -0
- package/es/pro/Login2.0/steps/CodeInput.d.ts +24 -0
- package/es/pro/Login2.0/steps/CodeInput.js +209 -0
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.js +35 -0
- package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
- package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +25 -0
- package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
- package/es/pro/Login2.0/steps/EmailLinkExpired.js +33 -0
- package/es/pro/Login2.0/steps/SetPassword.d.ts +19 -0
- package/es/pro/Login2.0/steps/SetPassword.js +148 -0
- package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
- package/es/pro/Login2.0/steps/VerificationSuccess.js +35 -0
- package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
- package/es/pro/Login2.0/steps/VerifyingEmailLink.js +17 -0
- package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
- package/es/pro/Login2.0/steps/WaitEmailLink.js +54 -0
- package/es/pro/Login2.0/steps/index.d.ts +19 -0
- package/es/pro/Login2.0/steps/index.js +11 -0
- package/es/pro/Login2.0/steps/steps.less +423 -0
- package/es/pro/Login2.0/types.d.ts +167 -0
- package/es/pro/Login2.0/types.js +1 -0
- package/es/pro/pisellPaymentList/example.d.ts +20 -0
- package/es/pro/pisellPaymentList/example.js +434 -0
- package/lib/components/Sales/Event/Detail.js +3 -2
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +156 -13
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/lib/components/appointmentBooking/components/Services/index.js +8 -3
- package/lib/components/appointmentBooking/hooks.d.ts +1 -0
- package/lib/components/appointmentBooking/hooks.js +76 -35
- package/lib/components/appointmentBooking/locales.d.ts +3 -0
- package/lib/components/appointmentBooking/locales.js +6 -3
- package/lib/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
- package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
- package/lib/components/authentication/admin/AuthMethods/SettingList.js +75 -0
- package/lib/components/authentication/admin/AuthMethods/SettingList.less +85 -0
- package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
- package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.js +126 -0
- package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
- package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
- package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +42 -0
- package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +108 -0
- package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +108 -0
- package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
- package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +93 -0
- package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +85 -0
- package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
- package/lib/components/authentication/admin/AuthMethods/components/index.js +51 -0
- package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
- package/lib/components/authentication/admin/AuthMethods/constants.js +115 -0
- package/lib/components/authentication/admin/AuthMethods/index.d.ts +8 -0
- package/lib/components/authentication/admin/AuthMethods/index.js +196 -0
- package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
- package/lib/components/authentication/admin/AuthMethods/locales.js +314 -0
- package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
- package/lib/components/authentication/admin/AuthMethods/types.js +53 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +311 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +131 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +17 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +410 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +110 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +17 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +383 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +148 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +56 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +17 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +206 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +95 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +17 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +246 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/index.js +177 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +74 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/types.js +17 -0
- package/lib/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
- package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/CustomerAuth/index.js +507 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.js +110 -0
- package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/CustomerAuth/types.js +17 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/index.js +331 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +161 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/types.js +17 -0
- package/lib/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
- package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/DeviceAuth/index.js +254 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.js +98 -0
- package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/DeviceAuth/types.js +17 -0
- package/lib/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
- package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
- package/lib/components/authentication/admin/OAuthConfig/index.js +226 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.js +140 -0
- package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
- package/lib/components/authentication/admin/OAuthConfig/types.js +17 -0
- package/lib/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
- package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/OrgAdminAuth/index.js +398 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.js +98 -0
- package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/OrgAdminAuth/types.js +17 -0
- package/lib/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
- package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/POSOperatorAuth/index.js +262 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.js +89 -0
- package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/POSOperatorAuth/types.js +17 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/index.js +481 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +98 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/types.js +17 -0
- package/lib/components/authentication/admin/index.d.ts +26 -0
- package/lib/components/authentication/admin/index.js +83 -0
- package/lib/components/authentication/index.d.ts +0 -0
- package/lib/components/authentication/index.js +0 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.js +27 -4
- package/lib/components/booking/components/footer/index.js +4 -1
- package/lib/components/booking/components/footer/utils.js +67 -36
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/forms/footer.js +26 -14
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/info/client/index.js +14 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +7 -2
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -4
- package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/main.js +5 -4
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/model.js +5 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info2/index.js +5 -4
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
- package/lib/components/booking/locales.d.ts +6 -0
- package/lib/components/booking/locales.js +12 -3
- package/lib/components/booking/model.d.ts +13 -1
- package/lib/components/booking/model.js +3 -0
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.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/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.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/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +49 -11
- package/lib/components/eftposPay/linkly/index.js +31 -1
- package/lib/components/eftposPay/payo/config.js +98 -73
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/payo/payment.js +357 -0
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
- package/lib/components/eftposPay/utils/log/index.js +294 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/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/index.d.ts +4 -2
- package/lib/components/index.js +23 -1
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +67 -8
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +52 -15
- package/lib/components/pay/toC/PaymentMethods/CashManual/index.js +60 -2
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.js +60 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +66 -2
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +61 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +29 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +61 -0
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +77 -9
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.js +72 -10
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +47 -5
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +90 -6
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +63 -3
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +88 -0
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +44 -0
- package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/lib/components/pay/toC/PaymentMethods/hooks/index.js +90 -0
- package/lib/components/pay/toC/index.js +198 -51
- package/lib/components/pay/toC/locales.d.ts +12 -0
- package/lib/components/pay/toC/locales.js +15 -3
- package/lib/components/pay/toC/model.d.ts +10 -1
- package/lib/components/pay/toC/serve.d.ts +5 -0
- package/lib/components/pay/toC/serve.js +3 -0
- package/lib/components/pay/toC/status.d.ts +1 -0
- package/lib/components/pay/toC/status.js +5 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +9 -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.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -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/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.d.ts +272 -0
- package/lib/components/systemSettings/registry/locales.js +324 -0
- package/lib/components/systemSettings/registry/services.d.ts +77 -0
- package/lib/components/systemSettings/registry/services.js +290 -0
- package/lib/components/systemSettings/registry/types.d.ts +126 -0
- package/lib/components/systemSettings/registry/types.js +17 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
- package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/lib/components/systemSettings/registry/utils/validators.js +54 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/components/walletList/index.d.ts +0 -25
- package/lib/components/walletList/index.js +88 -47
- package/lib/components/walletList/serve.d.ts +4 -0
- package/lib/components/walletList/serve.js +12 -0
- package/lib/components/walletList/types/index.d.ts +12 -12
- package/lib/hooks/usePaymentLogger.d.ts +22 -0
- package/lib/hooks/usePaymentLogger.js +69 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +41 -0
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/lib/plus/contactInfo/index.d.ts +6 -0
- package/lib/plus/contactInfo/index.js +226 -0
- package/lib/plus/contactInfo/index.less +621 -0
- package/lib/plus/contactInfo/locales.d.ts +15 -0
- package/lib/plus/contactInfo/locales.js +38 -0
- package/lib/plus/contactInfo/types.d.ts +91 -0
- package/lib/plus/contactInfo/types.js +17 -0
- package/lib/plus/contactInfo/utils.d.ts +7 -0
- package/lib/plus/contactInfo/utils.js +64 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
- package/lib/plus/contactInfoModal/index.d.ts +41 -0
- package/lib/plus/contactInfoModal/index.js +139 -0
- package/lib/plus/contactInfoModal/index.less +19 -0
- package/lib/plus/contactInfoModal/locales.d.ts +66 -0
- package/lib/plus/contactInfoModal/locales.js +89 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/lib/plus/productSelect/CategoryTabs/index.js +84 -69
- package/lib/plus/productSelect/ProductCard/index.d.ts +3 -1
- package/lib/plus/productSelect/ProductCard/index.js +18 -4
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/lib/plus/productSelect/index.d.ts +3 -2
- package/lib/plus/productSelect/index.js +20 -6
- package/lib/plus/productSelect/index.less +4 -0
- package/lib/plus/productSelect/utils.js +0 -1
- package/lib/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/lib/plus/walletEditor/WalletEditor.js +354 -0
- package/lib/plus/walletEditor/WalletEditor.less +129 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.js +201 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.js +89 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.js +176 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/lib/plus/walletEditor/components/relationProduct/index.js +73 -0
- package/lib/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +211 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/lib/plus/walletEditor/index.d.ts +3 -0
- package/lib/plus/walletEditor/index.js +42 -0
- package/lib/plus/walletEditor/locales.d.ts +126 -0
- package/lib/plus/walletEditor/locales.js +167 -0
- package/lib/plus/walletEditor/types.d.ts +52 -0
- package/lib/plus/walletEditor/types.js +17 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.js +187 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.less +48 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +290 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.less +61 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +11 -0
- package/lib/plus/walletPassGallery/components/passList/index.js +136 -0
- package/lib/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +152 -0
- package/lib/plus/walletPassGallery/components/recharge/index.less +16 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +212 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.less +67 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.js +209 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.less +157 -0
- package/lib/plus/walletPassGallery/index.d.ts +6 -0
- package/lib/plus/walletPassGallery/index.js +500 -0
- package/lib/plus/walletPassGallery/index.less +115 -0
- package/lib/plus/walletPassGallery/locales.d.ts +270 -0
- package/lib/plus/walletPassGallery/locales.js +299 -0
- package/lib/plus/walletPassGallery/serve.d.ts +218 -0
- package/lib/plus/walletPassGallery/serve.js +98 -0
- package/lib/pro/Login2.0/AuthModal.d.ts +143 -0
- package/lib/pro/Login2.0/AuthModal.js +503 -0
- package/lib/pro/Login2.0/Login2.d.ts +61 -0
- package/lib/pro/Login2.0/Login2.js +1545 -0
- package/lib/pro/Login2.0/Register2.d.ts +65 -0
- package/lib/pro/Login2.0/Register2.js +1063 -0
- package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
- package/lib/pro/Login2.0/components/ForgotPasswordFlow.js +213 -0
- package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/lib/pro/Login2.0/components/LegalTerms.js +76 -0
- package/lib/pro/Login2.0/components/LegalTerms.less +74 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.js +161 -0
- package/lib/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
- package/lib/pro/Login2.0/components/OAuthButtonGroup.js +87 -0
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/lib/pro/Login2.0/components/PhoneInput.js +263 -0
- package/lib/pro/Login2.0/components/PhoneInput.less +148 -0
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/lib/pro/Login2.0/components/phoneValidation.js +153 -0
- package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
- package/lib/pro/Login2.0/hooks/index.js +29 -0
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.js +140 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.js +149 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.js +51 -0
- package/lib/pro/Login2.0/index.js +45 -0
- package/lib/pro/Login2.0/index.less +1009 -0
- package/lib/pro/Login2.0/locales.d.ts +543 -0
- package/lib/pro/Login2.0/locales.js +646 -0
- package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
- package/lib/pro/Login2.0/shared/Header.js +81 -0
- package/lib/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
- package/lib/pro/Login2.0/shared/OAuthButtons.js +78 -0
- package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
- package/lib/pro/Login2.0/shared/registerFlow.js +235 -0
- package/lib/pro/Login2.0/shared/types.d.ts +232 -0
- package/lib/pro/Login2.0/shared/types.js +17 -0
- package/lib/pro/Login2.0/steps/CodeInput.d.ts +24 -0
- package/lib/pro/Login2.0/steps/CodeInput.js +160 -0
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.js +46 -0
- package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
- package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +51 -0
- package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
- package/lib/pro/Login2.0/steps/EmailLinkExpired.js +51 -0
- package/lib/pro/Login2.0/steps/SetPassword.d.ts +19 -0
- package/lib/pro/Login2.0/steps/SetPassword.js +131 -0
- package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
- package/lib/pro/Login2.0/steps/VerificationSuccess.js +49 -0
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.js +41 -0
- package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
- package/lib/pro/Login2.0/steps/WaitEmailLink.js +67 -0
- package/lib/pro/Login2.0/steps/index.d.ts +19 -0
- package/lib/pro/Login2.0/steps/index.js +60 -0
- package/lib/pro/Login2.0/steps/steps.less +423 -0
- package/lib/pro/Login2.0/types.d.ts +167 -0
- package/lib/pro/Login2.0/types.js +17 -0
- package/lib/pro/pisellPaymentList/example.d.ts +20 -0
- package/lib/pro/pisellPaymentList/example.js +416 -0
- package/lowcode/admin-auth-customer-auth/meta.ts +29 -0
- package/lowcode/admin-auth-customer-oauth-config/meta.ts +55 -0
- package/lowcode/admin-auth-device-auth/meta.ts +30 -0
- package/lowcode/admin-auth-methods/meta.ts +385 -0
- package/lowcode/admin-auth-oauth-config/meta.ts +29 -0
- package/lowcode/admin-auth-online-shop-auth/meta.ts +29 -0
- package/lowcode/admin-auth-org-admin-auth/meta.ts +29 -0
- package/lowcode/admin-auth-pos-operator-auth/meta.ts +30 -0
- package/lowcode/admin-auth-saas-admin-auth/meta.ts +29 -0
- package/lowcode/admin-auth-saas-managerment-auth/meta.ts +30 -0
- package/lowcode/admin-setting-list/meta.ts +125 -0
- package/lowcode/authmodal/meta.ts +395 -0
- package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
- package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
- package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
- package/lowcode/contact-info/fragments/textStyle.ts +33 -0
- package/lowcode/contact-info/meta.ts +199 -0
- package/lowcode/contact-info-modal/meta.ts +98 -0
- package/lowcode/login2/CONFIG.md +447 -0
- package/lowcode/login2/TEST_CONFIG.md +324 -0
- package/lowcode/login2/VERIFICATION_METHODS.md +364 -0
- package/lowcode/login2/meta.ts +560 -0
- package/lowcode/login2/snippets.ts +124 -0
- package/lowcode/pro-register/meta.ts +385 -0
- package/lowcode/register2/meta.ts +562 -0
- package/lowcode/register2/snippets.ts +257 -0
- package/lowcode/settings-registry/meta.ts +29 -0
- package/lowcode/sortable-wallet-pass-types/meta.ts +267 -0
- package/lowcode/wallet-editor/meta.ts +57 -0
- package/lowcode/wallet-editor/snippets.ts +13 -0
- package/lowcode/wallet-pass-gallery/meta.ts +35 -0
- package/package.json +7 -5
- package/lowcode/wallet/meta.ts +0 -79
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
en: {
|
|
3
|
+
// Page title and description
|
|
4
|
+
'saas.admin.auth.title': 'SaaS Platform Admin Authentication',
|
|
5
|
+
'saas.admin.auth.description': 'Configure authentication methods for your SaaS platform admin portal and other administrative channels.',
|
|
6
|
+
// Auth Methods section
|
|
7
|
+
'saas.admin.auth.methods.title': 'Auth Methods',
|
|
8
|
+
'saas.admin.auth.methods.description': 'Configure authentication methods that will be available for SaaS platform admins. Drag to reorder by priority.',
|
|
9
|
+
// Password Settings section
|
|
10
|
+
'saas.admin.password.settings.title': 'Password Settings',
|
|
11
|
+
'saas.admin.password.settings.description': 'Configure password requirements specifically for SaaS platform admin accounts. These rules apply to all platform administrative users.',
|
|
12
|
+
// Buttons
|
|
13
|
+
'auth.button.cancel': 'Cancel',
|
|
14
|
+
'auth.button.save': 'Save',
|
|
15
|
+
'auth.button.settings': 'Settings',
|
|
16
|
+
// Messages
|
|
17
|
+
'auth.save.success': 'Settings saved successfully',
|
|
18
|
+
'auth.save.error': 'Failed to save settings',
|
|
19
|
+
// OAuth configuration
|
|
20
|
+
'auth.oauth.config.message': 'Configure OAuth settings in Auth Configuration page first',
|
|
21
|
+
'auth.oauth.config.link': 'click to config',
|
|
22
|
+
// Category badges
|
|
23
|
+
'auth.category.general': 'General',
|
|
24
|
+
'auth.category.oauth': 'OAuth'
|
|
25
|
+
},
|
|
26
|
+
'zh-CN': {
|
|
27
|
+
// Page title and description
|
|
28
|
+
'saas.admin.auth.title': 'SaaS平台管理员认证',
|
|
29
|
+
'saas.admin.auth.description': '为您的SaaS平台管理员门户和其他管理渠道配置认证方法。',
|
|
30
|
+
// Auth Methods section
|
|
31
|
+
'saas.admin.auth.methods.title': '认证方法',
|
|
32
|
+
'saas.admin.auth.methods.description': '配置SaaS平台管理员可用的认证方法。拖动以调整优先级。',
|
|
33
|
+
// Password Settings section
|
|
34
|
+
'saas.admin.password.settings.title': '密码设置',
|
|
35
|
+
'saas.admin.password.settings.description': '专门为SaaS平台管理员账户配置密码要求。这些规则适用于所有平台管理用户。',
|
|
36
|
+
// Buttons
|
|
37
|
+
'auth.button.cancel': '取消',
|
|
38
|
+
'auth.button.save': '保存',
|
|
39
|
+
'auth.button.settings': '设置',
|
|
40
|
+
// Messages
|
|
41
|
+
'auth.save.success': '保存成功',
|
|
42
|
+
'auth.save.error': '保存失败',
|
|
43
|
+
// OAuth configuration
|
|
44
|
+
'auth.oauth.config.message': '请先在OAuth配置页面中配置OAuth设置',
|
|
45
|
+
'auth.oauth.config.link': '点击配置',
|
|
46
|
+
// Category badges
|
|
47
|
+
'auth.category.general': '通用',
|
|
48
|
+
'auth.category.oauth': 'OAuth'
|
|
49
|
+
},
|
|
50
|
+
'zh-HK': {
|
|
51
|
+
// Page title and description
|
|
52
|
+
'saas.admin.auth.title': 'SaaS平台管理員認證',
|
|
53
|
+
'saas.admin.auth.description': '為您的SaaS平台管理員門戶和其他管理渠道配置認證方法。',
|
|
54
|
+
// Auth Methods section
|
|
55
|
+
'saas.admin.auth.methods.title': '認證方法',
|
|
56
|
+
'saas.admin.auth.methods.description': '配置SaaS平台管理員可用的認證方法。拖動以調整優先級。',
|
|
57
|
+
// Password Settings section
|
|
58
|
+
'saas.admin.password.settings.title': '密碼設置',
|
|
59
|
+
'saas.admin.password.settings.description': '專門為SaaS平台管理員賬戶配置密碼要求。這些規則適用於所有平台管理用戶。',
|
|
60
|
+
// Buttons
|
|
61
|
+
'auth.button.cancel': '取消',
|
|
62
|
+
'auth.button.save': '保存',
|
|
63
|
+
'auth.button.settings': '設置',
|
|
64
|
+
// Messages
|
|
65
|
+
'auth.save.success': '保存成功',
|
|
66
|
+
'auth.save.error': '保存失敗',
|
|
67
|
+
// OAuth configuration
|
|
68
|
+
'auth.oauth.config.message': '請先在OAuth配置頁面中配置OAuth設置',
|
|
69
|
+
'auth.oauth.config.link': '點擊配置',
|
|
70
|
+
// Category badges
|
|
71
|
+
'auth.category.general': '通用',
|
|
72
|
+
'auth.category.oauth': 'OAuth'
|
|
73
|
+
}
|
|
74
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AuthMethod } from '../AuthMethods/types';
|
|
3
|
+
export interface SaaSAdminAuthProps {
|
|
4
|
+
/**
|
|
5
|
+
* 自定义类名
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 自定义样式
|
|
10
|
+
*/
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
/**
|
|
13
|
+
* 保存回调
|
|
14
|
+
*/
|
|
15
|
+
onSave?: (authMethods: AuthMethod[], passwordRules: any) => void;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type { AuthMethodsProps, AuthMethod } from './AuthMethods';
|
|
2
|
+
export { AuthMethodType, AuthMethodCategory } from './AuthMethods';
|
|
3
|
+
export { default as ChannelAuthSetting } from './ChannelAuthSetting';
|
|
4
|
+
export type { ChannelAuthSettingProps, ChannelAuthSettingValue, TabKey } from './ChannelAuthSetting';
|
|
5
|
+
export { default as PageSetting } from './ChannelAuthSetting/PageSetting';
|
|
6
|
+
export { default as PageSettingItem } from './ChannelAuthSetting/PageSettingItem';
|
|
7
|
+
export { default as AuthenticationMethods } from './ChannelAuthSetting/AuthenticationMethods';
|
|
8
|
+
export { default as CollectInfo } from './ChannelAuthSetting/CollectInfo';
|
|
9
|
+
export type { PageSettingProps, PageSettingValue, } from './ChannelAuthSetting/PageSetting/types';
|
|
10
|
+
export type { PageSettingItemProps, PageSettingItemValue, TermsCondition, TranslationValue as PageTranslationValue, } from './ChannelAuthSetting/PageSettingItem/types';
|
|
11
|
+
export type { AuthenticationMethodsProps, AuthenticationMethodsValue, GlobalAuthMethod, AuthenticationMethod, AuthenticationSettingsMode, } from './ChannelAuthSetting/AuthenticationMethods/types';
|
|
12
|
+
export type { CollectInfoProps, CollectInfoValue, AccountField, CustomerFormItem, TranslationValue as CollectInfoTranslationValue, } from './ChannelAuthSetting/CollectInfo/types';
|
|
13
|
+
export type { SaaSAdminAuthProps } from './SaaSAdminAuth';
|
|
14
|
+
export type { OrgAdminAuthProps } from './OrgAdminAuth';
|
|
15
|
+
export type { DeviceAuthProps } from './DeviceAuth';
|
|
16
|
+
export type { POSOperatorAuthProps } from './POSOperatorAuth';
|
|
17
|
+
export type { CustomerOAuthConfigProps } from './CustomerOAuthConfig';
|
|
18
|
+
export { default as SaaSAdminAuth } from './SaaSAdminAuth';
|
|
19
|
+
export { default as OrgAdminAuth } from './OrgAdminAuth';
|
|
20
|
+
export { default as OAuthConfig } from './OAuthConfig';
|
|
21
|
+
export { default as CustomerAuth } from './CustomerAuth';
|
|
22
|
+
export { default as CustomerOAuthConfig } from './CustomerOAuthConfig';
|
|
23
|
+
export { default as DeviceAuth } from './DeviceAuth';
|
|
24
|
+
export { default as POSOperatorAuth } from './POSOperatorAuth';
|
|
25
|
+
export { default as OnlineShopAuth } from './ChannelAuthSetting/OnlineShopAuth';
|
|
26
|
+
export { default as SaaSManagermentAuth } from './ChannelAuthSetting/SaaSManagermentAuth';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// export { default as AuthMethods, SettingList } from './AuthMethods';
|
|
2
|
+
|
|
3
|
+
export { AuthMethodType, AuthMethodCategory } from "./AuthMethods";
|
|
4
|
+
|
|
5
|
+
// ChannelAuthSetting 主组件
|
|
6
|
+
export { default as ChannelAuthSetting } from "./ChannelAuthSetting";
|
|
7
|
+
// ChannelAuthSetting 子组件
|
|
8
|
+
export { default as PageSetting } from "./ChannelAuthSetting/PageSetting";
|
|
9
|
+
export { default as PageSettingItem } from "./ChannelAuthSetting/PageSettingItem";
|
|
10
|
+
export { default as AuthenticationMethods } from "./ChannelAuthSetting/AuthenticationMethods";
|
|
11
|
+
export { default as CollectInfo } from "./ChannelAuthSetting/CollectInfo";
|
|
12
|
+
|
|
13
|
+
// ChannelAuthSetting 类型
|
|
14
|
+
|
|
15
|
+
export { default as SaaSAdminAuth } from "./SaaSAdminAuth";
|
|
16
|
+
export { default as OrgAdminAuth } from "./OrgAdminAuth";
|
|
17
|
+
export { default as OAuthConfig } from "./OAuthConfig";
|
|
18
|
+
export { default as CustomerAuth } from "./CustomerAuth";
|
|
19
|
+
export { default as CustomerOAuthConfig } from "./CustomerOAuthConfig";
|
|
20
|
+
export { default as DeviceAuth } from "./DeviceAuth";
|
|
21
|
+
export { default as POSOperatorAuth } from "./POSOperatorAuth";
|
|
22
|
+
export { default as OnlineShopAuth } from "./ChannelAuthSetting/OnlineShopAuth";
|
|
23
|
+
export { default as SaaSManagermentAuth } from "./ChannelAuthSetting/SaaSManagermentAuth";
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -270,15 +270,34 @@ var CustomSelect = function CustomSelect(props, ref) {
|
|
|
270
270
|
var renderList = useMemo(function () {
|
|
271
271
|
var _list = _toConsumableArray(options);
|
|
272
272
|
if (search) {
|
|
273
|
-
var isIncludes = function isIncludes(
|
|
274
|
-
|
|
273
|
+
var isIncludes = function isIncludes(item) {
|
|
274
|
+
try {
|
|
275
|
+
var q = search.toLowerCase();
|
|
276
|
+
var numericKeys = Object.keys(item).filter(function (k) {
|
|
277
|
+
return /^\d+$/.test(k);
|
|
278
|
+
});
|
|
279
|
+
var customerKeys = ['customer_nickname', 'customer_first_name', 'customer_last_name', 'customer_phone', 'customer_email'];
|
|
280
|
+
var allKeys = [].concat(_toConsumableArray(numericKeys), customerKeys);
|
|
281
|
+
return allKeys.some(function (k) {
|
|
282
|
+
var val = item[k];
|
|
283
|
+
if (val === null || val === undefined) return false;
|
|
284
|
+
try {
|
|
285
|
+
var str = JSON.stringify(val);
|
|
286
|
+
return str.includes(q) || str.toLocaleLowerCase().includes(q);
|
|
287
|
+
} catch (error) {
|
|
288
|
+
return false;
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
} catch (e) {
|
|
292
|
+
return false;
|
|
293
|
+
}
|
|
275
294
|
};
|
|
276
295
|
_list = _list.filter(function (d) {
|
|
277
296
|
// 自定义搜索
|
|
278
297
|
if (filterItem) {
|
|
279
298
|
return filterItem(d, search);
|
|
280
299
|
}
|
|
281
|
-
return isIncludes(d
|
|
300
|
+
return isIncludes(d);
|
|
282
301
|
});
|
|
283
302
|
}
|
|
284
303
|
return _list;
|
|
@@ -424,7 +443,7 @@ var CustomSelect = function CustomSelect(props, ref) {
|
|
|
424
443
|
marginTop: 16,
|
|
425
444
|
height: 44
|
|
426
445
|
},
|
|
427
|
-
placeholder: locales.getText('pisell2.text.search'),
|
|
446
|
+
placeholder: locales.getText('pisell2.booking.text.search-placeholder'),
|
|
428
447
|
value: search,
|
|
429
448
|
allowClear: true,
|
|
430
449
|
onChange: function onChange(e) {
|
|
@@ -185,7 +185,7 @@ var Footer = function Footer(props) {
|
|
|
185
185
|
|
|
186
186
|
// info 是否有编辑
|
|
187
187
|
var infoEdit = useMemo(function () {
|
|
188
|
-
var _state$client, _state$date, _state$pet, _state$service, _state$notes, _state$contacts;
|
|
188
|
+
var _state$client, _state$date, _state$pet, _state$service, _state$notes, _state$contacts, _state$contacts_info;
|
|
189
189
|
if (!state.bookingId) {
|
|
190
190
|
return true;
|
|
191
191
|
}
|
|
@@ -207,6 +207,9 @@ var Footer = function Footer(props) {
|
|
|
207
207
|
if ((_state$contacts = state.contacts) !== null && _state$contacts !== void 0 && _state$contacts.edit) {
|
|
208
208
|
return true;
|
|
209
209
|
}
|
|
210
|
+
if ((_state$contacts_info = state.contacts_info) !== null && _state$contacts_info !== void 0 && _state$contacts_info.edit) {
|
|
211
|
+
return true;
|
|
212
|
+
}
|
|
210
213
|
return false;
|
|
211
214
|
}, [state]);
|
|
212
215
|
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import dayjs from
|
|
7
|
+
import dayjs from 'dayjs';
|
|
8
8
|
import { flexibleObj, isNowTime, getNowTime } from "../../utils";
|
|
9
9
|
import { isWalkIn } from "../../utils";
|
|
10
10
|
import { getSumCapacity } from "../../info2/utilsByBooking";
|
|
@@ -12,10 +12,10 @@ import { getDays } from "../../utils";
|
|
|
12
12
|
import { appointmentTypes } from "../../info/service2/status";
|
|
13
13
|
import { isDaysBooking, formatDayTime, isEventBooking, isNormalProductByDurationSchedule, genRowKey } from "../../info/service2/utils";
|
|
14
14
|
import { isArr, locales, sendWarningLog } from '@pisell/utils';
|
|
15
|
-
import { PisellToast } from
|
|
15
|
+
import { PisellToast } from '@pisell/materials';
|
|
16
16
|
var formatNote = function formatNote(data) {
|
|
17
17
|
var _data$notes;
|
|
18
|
-
return ((_data$notes = data.notes) === null || _data$notes === void 0 ? void 0 : _data$notes.orderNote) ||
|
|
18
|
+
return ((_data$notes = data.notes) === null || _data$notes === void 0 ? void 0 : _data$notes.orderNote) || '';
|
|
19
19
|
};
|
|
20
20
|
var formatCustomer = function formatCustomer(data) {
|
|
21
21
|
var _data$client, _data$client2, _data$client3, _data$client4, _data$client5, _data$client6;
|
|
@@ -34,7 +34,7 @@ var formatCustomer = function formatCustomer(data) {
|
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* @title: 套餐单规格信息
|
|
37
|
-
* @description:
|
|
37
|
+
* @description:
|
|
38
38
|
* @param {any} option
|
|
39
39
|
* @return {*}
|
|
40
40
|
* @Author: zhiwei.Wang
|
|
@@ -46,9 +46,9 @@ export var formatProductOption = function formatProductOption(option) {
|
|
|
46
46
|
}
|
|
47
47
|
return option.map(function (d) {
|
|
48
48
|
return {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
num: d.num,
|
|
50
|
+
option_group_item_id: d.product_option_item_id || d.option_group_item_id,
|
|
51
|
+
option_group_id: d.option_group_id
|
|
52
52
|
// "add_price": Number(d?.add_price),
|
|
53
53
|
};
|
|
54
54
|
});
|
|
@@ -56,7 +56,7 @@ export var formatProductOption = function formatProductOption(option) {
|
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
58
|
* @title: 添加套餐警告
|
|
59
|
-
* @description:
|
|
59
|
+
* @description:
|
|
60
60
|
* @param {any} data
|
|
61
61
|
* @return {*}
|
|
62
62
|
* @Author: WangHan
|
|
@@ -77,7 +77,7 @@ var log = function log(data) {
|
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* @title: 套餐信息
|
|
80
|
-
* @description:
|
|
80
|
+
* @description:
|
|
81
81
|
* @param {any} bundle
|
|
82
82
|
* @return {*}
|
|
83
83
|
* @Author: zhiwei.Wang
|
|
@@ -99,16 +99,16 @@ export var formatProductBundle = function formatProductBundle(bundle) {
|
|
|
99
99
|
} catch (error) {}
|
|
100
100
|
return bundle.map(function (d) {
|
|
101
101
|
return {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
bundle_group_id: d.group_id,
|
|
103
|
+
bundle_id: d.id,
|
|
104
|
+
bundle_product_id: (d === null || d === void 0 ? void 0 : d._bundle_product_id) || (d === null || d === void 0 ? void 0 : d.product_id),
|
|
105
|
+
bundle_variant_id: d.bundle_variant_id,
|
|
106
|
+
num: d.num,
|
|
107
|
+
extension_id: d.extension_id,
|
|
108
|
+
extension_type: d.extension_type,
|
|
109
109
|
// "price": Number(d?.price),
|
|
110
110
|
// "price_type": d?.price_type,
|
|
111
|
-
|
|
111
|
+
option: formatProductOption(d.option)
|
|
112
112
|
};
|
|
113
113
|
});
|
|
114
114
|
};
|
|
@@ -189,7 +189,7 @@ var formatResource = function formatResource(service) {
|
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
191
|
* @title: 格式化子预约的holder数据
|
|
192
|
-
* @description:
|
|
192
|
+
* @description:
|
|
193
193
|
* @param {any} state
|
|
194
194
|
* @param {any} item
|
|
195
195
|
* @param {any} values
|
|
@@ -220,7 +220,7 @@ var formatHolders = function formatHolders(state, item, values) {
|
|
|
220
220
|
|
|
221
221
|
/**
|
|
222
222
|
* @title: 格式化商品单价
|
|
223
|
-
* @description:
|
|
223
|
+
* @description:
|
|
224
224
|
* @param {any} item
|
|
225
225
|
* @return {*}
|
|
226
226
|
* @Author: WangHan
|
|
@@ -250,7 +250,7 @@ export var formatProductPrice = function formatProductPrice(item) {
|
|
|
250
250
|
}
|
|
251
251
|
return price;
|
|
252
252
|
};
|
|
253
|
-
var formatMetaData = function formatMetaData(item) {
|
|
253
|
+
var formatMetaData = function formatMetaData(item, isMultiDayPrices) {
|
|
254
254
|
var _item$_extend8, _item$_extend9, _item$_extend11;
|
|
255
255
|
var metadata = {};
|
|
256
256
|
if ((_item$_extend8 = item._extend) !== null && _item$_extend8 !== void 0 && _item$_extend8.capacity) {
|
|
@@ -263,7 +263,7 @@ var formatMetaData = function formatMetaData(item) {
|
|
|
263
263
|
var _item$_extend10;
|
|
264
264
|
metadata.holder_id = (_item$_extend10 = item._extend) === null || _item$_extend10 === void 0 ? void 0 : _item$_extend10.holder_id;
|
|
265
265
|
}
|
|
266
|
-
if ((_item$_extend11 = item._extend) !== null && _item$_extend11 !== void 0 && _item$_extend11.multiDayPrices) {
|
|
266
|
+
if (isMultiDayPrices && (_item$_extend11 = item._extend) !== null && _item$_extend11 !== void 0 && _item$_extend11.multiDayPrices) {
|
|
267
267
|
var _item$_extend12;
|
|
268
268
|
metadata.multiDayPrices = (_item$_extend12 = item._extend) === null || _item$_extend12 === void 0 ? void 0 : _item$_extend12.multiDayPrices;
|
|
269
269
|
}
|
|
@@ -304,7 +304,7 @@ var getSourceProductPrice = function getSourceProductPrice(item) {
|
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
306
|
* @title: 格式化商品数据
|
|
307
|
-
* @description:
|
|
307
|
+
* @description:
|
|
308
308
|
* @param {any} item
|
|
309
309
|
* @return {*}
|
|
310
310
|
* @Author: WangHan
|
|
@@ -352,7 +352,7 @@ var formatProducts = function formatProducts(item, quantity) {
|
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
354
|
* @title: 格式化跨日预约下的普通商品
|
|
355
|
-
* @description:
|
|
355
|
+
* @description:
|
|
356
356
|
* @param {any} data
|
|
357
357
|
* @param {any} booking_item
|
|
358
358
|
* @return {*}
|
|
@@ -378,7 +378,7 @@ var formatDayRelationProducts = function formatDayRelationProducts(data, booking
|
|
|
378
378
|
|
|
379
379
|
/**
|
|
380
380
|
* @title: 格式化跨日预约商品列表
|
|
381
|
-
* @description:
|
|
381
|
+
* @description:
|
|
382
382
|
* @param {any} data
|
|
383
383
|
* @return {*}
|
|
384
384
|
* @Author: WangHan
|
|
@@ -428,7 +428,7 @@ var getHolderByIndex = function getHolderByIndex(holder, index) {
|
|
|
428
428
|
|
|
429
429
|
/**
|
|
430
430
|
* @title: 预约商品信息
|
|
431
|
-
* @description:
|
|
431
|
+
* @description:
|
|
432
432
|
* @param {any} data
|
|
433
433
|
* @return {*}
|
|
434
434
|
* @Author: zhiwei.Wang
|
|
@@ -458,7 +458,9 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
458
458
|
var dayParams = {};
|
|
459
459
|
var eventOtherParams = data.eventOtherParams;
|
|
460
460
|
var bookings = [];
|
|
461
|
+
var obj = {};
|
|
461
462
|
list.forEach(function (item) {
|
|
463
|
+
var _item$_extend26;
|
|
462
464
|
// 自定义商品直接使用 _extend 中的数据,并将 id 转换为 0 提交给后端
|
|
463
465
|
if (item.isCustomItem) {
|
|
464
466
|
bookings.push(_objectSpread(_objectSpread({}, item._extend), {}, {
|
|
@@ -468,8 +470,8 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
468
470
|
}
|
|
469
471
|
var start_date = item._extend.startDate.format('YYYY-MM-DD');
|
|
470
472
|
var end_date = item._extend.endDate.format('YYYY-MM-DD');
|
|
471
|
-
var end_time = item._extend.endDate.format(
|
|
472
|
-
var start_time = item._extend.startDate.format(
|
|
473
|
+
var end_time = item._extend.endDate.format('HH:mm');
|
|
474
|
+
var start_time = item._extend.startDate.format('HH:mm');
|
|
473
475
|
|
|
474
476
|
// 更新当前时间
|
|
475
477
|
if (isNowTime(item._extend.start_time)) {
|
|
@@ -503,6 +505,11 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
503
505
|
}
|
|
504
506
|
}, 'minutes');
|
|
505
507
|
}
|
|
508
|
+
|
|
509
|
+
// 跨日预约处理: 跨日预约所有数据都在list中, 每一组预约通过groupId进行分组
|
|
510
|
+
// 通过obj 记录下每个GroupId第一次出现的时机, 第一次出现需要设置 metadata.multiDayPrices
|
|
511
|
+
// 后续出现不需要设置 metadata.multiDayPrices. 节省体积
|
|
512
|
+
var isSetGroupId = obj[item === null || item === void 0 || (_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.groupId];
|
|
506
513
|
var booking = _objectSpread(_objectSpread({
|
|
507
514
|
"product": formatProducts(item),
|
|
508
515
|
"relation_products": formatRelationDetails(item._extend.relation_details),
|
|
@@ -523,20 +530,25 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
523
530
|
cacheItem: item
|
|
524
531
|
}) : item._extend.number || 1,
|
|
525
532
|
"resources": formatResource(item),
|
|
526
|
-
"metadata": formatMetaData(item),
|
|
533
|
+
"metadata": formatMetaData(item, !isSetGroupId),
|
|
527
534
|
"note": item._extend.note
|
|
528
535
|
}, eventOtherParams || {}), dayParams);
|
|
536
|
+
|
|
537
|
+
// 记录下每个GroupId第一次出现的时机
|
|
538
|
+
if (!isSetGroupId) {
|
|
539
|
+
obj[item._extend.groupId] = true;
|
|
540
|
+
}
|
|
529
541
|
if (isDay) {
|
|
530
542
|
bookings.push(booking);
|
|
531
543
|
return;
|
|
532
544
|
}
|
|
533
545
|
for (var i = 0; i < (item._extend.quantity || 1); i++) {
|
|
534
546
|
bookings.push(_objectSpread(_objectSpread({}, booking), {}, {
|
|
535
|
-
|
|
536
|
-
|
|
547
|
+
product: formatProducts(item, 1),
|
|
548
|
+
number: item._extend.capacity ? getSumCapacity({
|
|
537
549
|
cacheItem: item
|
|
538
550
|
}, false) : item._extend.number || 1,
|
|
539
|
-
|
|
551
|
+
holder: getHolderByIndex(booking.holder, i)
|
|
540
552
|
}));
|
|
541
553
|
}
|
|
542
554
|
});
|
|
@@ -545,7 +557,7 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
545
557
|
|
|
546
558
|
/**
|
|
547
559
|
* @title: 普通商品
|
|
548
|
-
* @description:
|
|
560
|
+
* @description:
|
|
549
561
|
* @param {any} data
|
|
550
562
|
* @return {*}
|
|
551
563
|
* @Author: WangHan
|
|
@@ -556,10 +568,10 @@ var formatRelationProducts = function formatRelationProducts(data, type) {
|
|
|
556
568
|
var list = ((_data$service = data.service) === null || _data$service === void 0 ? void 0 : _data$service.value) || [];
|
|
557
569
|
// open items 下的商品
|
|
558
570
|
list = list.filter(function (item) {
|
|
559
|
-
var _item$
|
|
571
|
+
var _item$_extend27;
|
|
560
572
|
return (
|
|
561
573
|
// 跨日预约把普通商品加在relationProducts 活动预约按之前逻辑
|
|
562
|
-
type === 'day' ? isNormalProductByDurationSchedule(item) : ((_item$
|
|
574
|
+
type === 'day' ? isNormalProductByDurationSchedule(item) : ((_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.holder_id) && appointmentTypes.includes(item.extension_type)
|
|
563
575
|
);
|
|
564
576
|
});
|
|
565
577
|
var relationProducts = [];
|
|
@@ -586,7 +598,7 @@ var formatNormalProducts = function formatNormalProducts(data) {
|
|
|
586
598
|
|
|
587
599
|
/**
|
|
588
600
|
* @title: 预约主体信息
|
|
589
|
-
* @description:
|
|
601
|
+
* @description:
|
|
590
602
|
* @param {any} state
|
|
591
603
|
* @param {any} values
|
|
592
604
|
* @return {*}
|
|
@@ -619,15 +631,15 @@ var formatHolder = function formatHolder(state, values) {
|
|
|
619
631
|
|
|
620
632
|
// https://menutech.w.eolink.com/home/api-studio/inside/K2bI3n465fe7244b3dbd6679d87caedfbb0636bf8c29eda/api/2778666/detail/53001549?spaceKey=menutech
|
|
621
633
|
export var formatValues = function formatValues(state) {
|
|
622
|
-
var _values, _values3;
|
|
634
|
+
var _values, _values3, _state$contacts_info;
|
|
623
635
|
var values = {
|
|
624
|
-
type: state.renderType === 'eventBooking' ?
|
|
625
|
-
platform: state.isBookingTicket2 ?
|
|
626
|
-
sales_channel:
|
|
627
|
-
order_sales_channel: state.isBookingTicket2 ?
|
|
636
|
+
type: state.renderType === 'eventBooking' ? 'event_booking_v2' : 'appointment_booking',
|
|
637
|
+
platform: state.isBookingTicket2 ? 'pos' : 'shop',
|
|
638
|
+
sales_channel: 'my_pisel',
|
|
639
|
+
order_sales_channel: state.isBookingTicket2 ? 'pos' : 'online_store',
|
|
628
640
|
bookings: [],
|
|
629
641
|
customer_id: 1,
|
|
630
|
-
customer_name:
|
|
642
|
+
customer_name: '',
|
|
631
643
|
holder: {},
|
|
632
644
|
relation_products: [],
|
|
633
645
|
metadata: {}
|
|
@@ -656,7 +668,7 @@ export var formatValues = function formatValues(state) {
|
|
|
656
668
|
// 主体
|
|
657
669
|
values.holder = formatHolder(state, values);
|
|
658
670
|
if (isDay || isEvent) {
|
|
659
|
-
values.relation_products = formatRelationProducts(state, isDay ?
|
|
671
|
+
values.relation_products = formatRelationProducts(state, isDay ? 'day' : 'event');
|
|
660
672
|
} else {
|
|
661
673
|
var _values$relation_prod;
|
|
662
674
|
values.relation_products = formatNormalProducts(state);
|
|
@@ -685,6 +697,9 @@ export var formatValues = function formatValues(state) {
|
|
|
685
697
|
if (!((_values3 = values) !== null && _values3 !== void 0 && (_values3 = _values3.bookings) !== null && _values3 !== void 0 && _values3.length)) {
|
|
686
698
|
values.type = 'virtual';
|
|
687
699
|
}
|
|
700
|
+
|
|
701
|
+
// 联系信息
|
|
702
|
+
values.contacts_info = ((_state$contacts_info = state.contacts_info) === null || _state$contacts_info === void 0 ? void 0 : _state$contacts_info.value) || null;
|
|
688
703
|
return values;
|
|
689
704
|
};
|
|
690
705
|
|
|
@@ -693,19 +708,19 @@ export var checkHolderIsError = function checkHolderIsError(state) {
|
|
|
693
708
|
var _state$client;
|
|
694
709
|
var errorRowKey = "";
|
|
695
710
|
var holderError = state.service.value.some(function (item) {
|
|
696
|
-
var _item$
|
|
711
|
+
var _item$_extend29;
|
|
697
712
|
// 普通商品不需要检测holder
|
|
698
713
|
if (isNormalProductByDurationSchedule(item)) {
|
|
699
714
|
return false;
|
|
700
715
|
}
|
|
701
716
|
if (item._extend.quantity === 1 && !item._extend.holder_id) {
|
|
702
|
-
var _item$
|
|
703
|
-
errorRowKey = genRowKey(item === null || item === void 0 || (_item$
|
|
717
|
+
var _item$_extend28;
|
|
718
|
+
errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 || (_item$_extend28 = _item$_extend28.other) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.rowKey);
|
|
704
719
|
return true;
|
|
705
720
|
}
|
|
706
|
-
if (item._extend.quantity > 1 && ((_item$
|
|
707
|
-
var _item$
|
|
708
|
-
errorRowKey = genRowKey(item === null || item === void 0 || (_item$
|
|
721
|
+
if (item._extend.quantity > 1 && ((_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 || (_item$_extend29 = _item$_extend29.holder_id) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.length) !== item._extend.quantity) {
|
|
722
|
+
var _item$_extend30;
|
|
723
|
+
errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend30 = item._extend) === null || _item$_extend30 === void 0 || (_item$_extend30 = _item$_extend30.other) === null || _item$_extend30 === void 0 ? void 0 : _item$_extend30.rowKey);
|
|
709
724
|
return true;
|
|
710
725
|
}
|
|
711
726
|
return false;
|
|
@@ -9,7 +9,7 @@ import useSendModal from "./sendModal/useSendModal";
|
|
|
9
9
|
import SendModal from "./sendModal";
|
|
10
10
|
import { locales } from '@pisell/utils';
|
|
11
11
|
var Footer = function Footer(_ref) {
|
|
12
|
-
var _state$
|
|
12
|
+
var _state$client2, _state$contacts_info2, _state$form, _state$client3;
|
|
13
13
|
var state = _ref.state,
|
|
14
14
|
reload = _ref.reload;
|
|
15
15
|
var _useSendModal = useSendModal(state === null || state === void 0 ? void 0 : state.bookingId),
|
|
@@ -37,27 +37,33 @@ var Footer = function Footer(_ref) {
|
|
|
37
37
|
return _ref2.apply(this, arguments);
|
|
38
38
|
};
|
|
39
39
|
}();
|
|
40
|
-
|
|
41
|
-
// 是否都填写完成
|
|
42
|
-
var isAllCompleted = useMemo(function () {
|
|
43
|
-
var _state$form;
|
|
44
|
-
return Object.values((state === null || state === void 0 || (_state$form = state.form) === null || _state$form === void 0 ? void 0 : _state$form.value) || {}).every(function (item) {
|
|
45
|
-
return item.length > 0;
|
|
46
|
-
});
|
|
47
|
-
}, [state === null || state === void 0 || (_state$form2 = state.form) === null || _state$form2 === void 0 ? void 0 : _state$form2.value]);
|
|
48
40
|
var defaultValues = useMemo(function () {
|
|
49
|
-
var _state$
|
|
41
|
+
var _state$contacts_info, _state$client;
|
|
42
|
+
// 优先取contacts_info中的phone和email,如果不存在则取客户信息中的phone和email
|
|
43
|
+
var _ref3 = ((_state$contacts_info = state.contacts_info) === null || _state$contacts_info === void 0 ? void 0 : _state$contacts_info.value) || {},
|
|
44
|
+
contactsEmail = _ref3.email,
|
|
45
|
+
contactsPhone = _ref3.phone;
|
|
46
|
+
var _ref4 = ((_state$client = state.client) === null || _state$client === void 0 ? void 0 : _state$client.value) || {},
|
|
47
|
+
clientEmail = _ref4.email,
|
|
48
|
+
clientPhone = _ref4.phone,
|
|
49
|
+
clientCode = _ref4.country_calling_code;
|
|
50
|
+
var email = contactsEmail || clientEmail;
|
|
51
|
+
var phone = (contactsPhone === null || contactsPhone === void 0 ? void 0 : contactsPhone.phone) || clientPhone;
|
|
52
|
+
var code = (contactsPhone === null || contactsPhone === void 0 ? void 0 : contactsPhone.country_calling_code) || clientCode || '+61';
|
|
53
|
+
if (!code.startsWith('+')) {
|
|
54
|
+
code = "+".concat(code);
|
|
55
|
+
}
|
|
50
56
|
return {
|
|
51
|
-
sendSms: !!
|
|
52
|
-
sendEmail: !!
|
|
53
|
-
email:
|
|
57
|
+
sendSms: !!phone,
|
|
58
|
+
sendEmail: !!email,
|
|
59
|
+
email: email,
|
|
54
60
|
phone: {
|
|
55
|
-
code:
|
|
56
|
-
phone:
|
|
61
|
+
code: code,
|
|
62
|
+
phone: phone
|
|
57
63
|
}
|
|
58
64
|
};
|
|
59
|
-
}, [(_state$
|
|
60
|
-
if (!state.bookingId || !(state !== null && state !== void 0 && (_state$
|
|
65
|
+
}, [(_state$client2 = state.client) === null || _state$client2 === void 0 ? void 0 : _state$client2.value, (_state$contacts_info2 = state.contacts_info) === null || _state$contacts_info2 === void 0 ? void 0 : _state$contacts_info2.value]);
|
|
66
|
+
if (!state.bookingId || !(state !== null && state !== void 0 && (_state$form = state.form) !== null && _state$form !== void 0 && _state$form.forms.length)) {
|
|
61
67
|
return null;
|
|
62
68
|
}
|
|
63
69
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -72,10 +78,9 @@ var Footer = function Footer(_ref) {
|
|
|
72
78
|
size: "large",
|
|
73
79
|
block: true,
|
|
74
80
|
type: "primary",
|
|
75
|
-
onClick: handleOpen
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
refreshKey: (_state$client7 = state.client) === null || _state$client7 === void 0 || (_state$client7 = _state$client7.value) === null || _state$client7 === void 0 ? void 0 : _state$client7.id,
|
|
81
|
+
onClick: handleOpen
|
|
82
|
+
}, locales.getText('pisell2.text.send-form-reminder')), open && /*#__PURE__*/React.createElement(SendModal, {
|
|
83
|
+
refreshKey: (_state$client3 = state.client) === null || _state$client3 === void 0 || (_state$client3 = _state$client3.value) === null || _state$client3 === void 0 ? void 0 : _state$client3.id,
|
|
79
84
|
open: open,
|
|
80
85
|
onCancel: function onCancel() {
|
|
81
86
|
return setOpen(false);
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|