@pisell/private-materials 6.6.1 → 6.7.1
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +23 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -8
- package/es/components/Sales/Event/Detail.js +4 -3
- package/es/components/appointmentBooking/components/Cart/Item/index.js +0 -1
- package/es/components/appointmentBooking/components/Services/index.js +22 -8
- package/es/components/appointmentBooking/hooks.js +5 -0
- 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/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/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/{pro/multiDayTimeSelect/MultiDayTimeSelect.js → components/authentication/admin/ChannelAuthSetting/PageSetting/index.js} +149 -321
- 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/booking/components/actionButtons/index.js +20 -34
- package/es/components/booking/components/customSelect/index.js +22 -3
- package/es/components/booking/components/footer/amount.js +8 -25
- package/es/components/booking/components/footer/index.js +32 -62
- package/es/components/booking/components/footer/utils.d.ts +0 -7
- package/es/components/booking/components/footer/utils.js +87 -101
- package/es/components/booking/components/voucher/index.js +9 -25
- package/es/components/booking/dashboard/serve.js +6 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/serve.js +12 -2
- package/es/components/booking/hooks/useQuotation.js +21 -69
- package/es/components/booking/info/client/serve.js +11 -2
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -1
- package/es/components/booking/info/hooks/useHolderConfig.js +2 -9
- package/es/components/booking/info/pet/serve.js +6 -1
- package/es/components/booking/info/service/Lists.d.ts +1 -1
- package/es/components/booking/info/service/Lists.js +4 -10
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/serve.js +11 -1
- package/es/components/booking/info/service/serve.d.ts +0 -14
- package/es/components/booking/info/service/serve.js +18 -25
- package/es/components/booking/info/service2/Group/utils.js +0 -2
- package/es/components/booking/info/service2/utils.d.ts +33 -1
- package/es/components/booking/info/service2/utils.js +56 -92
- package/es/components/booking/info/utils.js +0 -5
- package/es/components/booking/info2/cartClientCard/index.js +9 -49
- package/es/components/booking/info2/index.js +1 -1
- package/es/components/booking/info2/serve.js +6 -1
- package/es/components/booking/info2/service/addService/index.js +89 -146
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -9
- package/es/components/booking/info2/service/addService/utils.js +14 -83
- package/es/components/booking/info2/service/editService/index.js +57 -313
- package/es/components/booking/info2/utilsByBooking.js +14 -19
- package/es/components/booking/locales.d.ts +0 -30
- package/es/components/booking/locales.js +3 -39
- package/es/components/booking/utils.d.ts +7 -16
- package/es/components/booking/utils.js +37 -26
- package/es/components/checkout/PaymentModal.js +30 -61
- package/es/components/checkout/components/CashPaymentModule/index.js +7 -1
- package/es/components/checkout/components/ScrollableList/index.js +1 -0
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/locales.d.ts +0 -3
- package/es/components/checkout/locales.js +0 -3
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tyro/index.js +0 -12
- package/es/components/index.d.ts +3 -2
- package/es/components/index.js +3 -2
- package/es/components/list/List.js +0 -3
- package/es/components/pay/toB/components/MX51/index.js +44 -14
- package/es/components/pay/toB/types/index.d.ts +12 -0
- package/es/components/pay/toB/types/index.js +4 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +68 -35
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +70 -42
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +72 -41
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +143 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +34 -0
- package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/es/components/{ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js → pay/toC/PaymentMethods/hooks/index.js} +98 -91
- package/es/components/pay/toC/index.js +26 -22
- package/es/components/pay/toC/locales.d.ts +9 -0
- package/es/components/pay/toC/locales.js +12 -3
- package/es/components/pay/toC/model.d.ts +1 -0
- package/es/components/pay/toC/serve.d.ts +5 -0
- package/es/components/pay/toC/serve.js +9 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/serve.js +5 -1
- package/es/components/shoppingCart/components/Cart/Product.js +3 -6
- package/es/components/shoppingCart/type.d.ts +0 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +12 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +2 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +794 -419
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +2 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -4
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +2 -1
- package/es/components/ticketBooking/components/menuBar/index.js +12 -109
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -2
- package/es/components/ticketBooking/components/ticketBooking/index.js +61 -32
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.js +4 -1
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +4 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +170 -122
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/index.js +2 -0
- package/es/components/ticketBooking/serve.js +119 -17
- package/es/components/ticketBooking/utils/index.d.ts +2 -8
- package/es/components/ticketBooking/utils/index.js +28 -44
- package/es/components/walletList/index.js +92 -56
- 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/printer.d.ts +4 -0
- package/es/hooks/printer.js +35 -0
- package/es/hooks/useEngineContext.d.ts +1 -0
- package/es/hooks/useEngineContext.js +7 -0
- package/es/index.d.ts +5 -3
- package/es/index.js +4 -3
- package/es/plus/clientCard/locales.js +3 -3
- package/es/plus/clinetSearch/index.js +30 -28
- package/es/plus/clinetSearch/locales.d.ts +0 -3
- package/es/plus/clinetSearch/locales.js +4 -7
- package/es/plus/clinetSearch/types.d.ts +0 -12
- package/es/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/es/plus/productSelect/CategoryTabs/index.js +6 -3
- 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/CardWrapper/index.js +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- 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/index.d.ts +3 -1
- package/es/plus/productSelect/ProductCard/index.js +10 -2
- 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/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/{components/booking/info2/service/editService/Holder → plus/walletPassGallery/components/footerButton}/index.js +220 -166
- package/es/plus/walletPassGallery/components/footerButton/index.less +93 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +274 -0
- package/es/plus/walletPassGallery/components/passDetail/index.less +57 -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 +134 -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 +602 -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 +1002 -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/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/comprehensiveSearch/locales.js +1 -1
- package/es/pro/pisellPaymentList/example.d.ts +19 -0
- package/es/pro/pisellPaymentList/example.js +434 -0
- package/es/pro/skuDetailModal/types.d.ts +0 -1
- package/lib/components/Sales/Event/Detail.js +3 -2
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +0 -1
- package/lib/components/appointmentBooking/components/Services/index.js +8 -3
- package/lib/components/appointmentBooking/hooks.js +3 -0
- 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/{plus/selectHolder/components/HolderList/index.js → components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js} +10 -31
- 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/components/actionButtons/index.js +2 -11
- package/lib/components/booking/components/customSelect/index.js +26 -3
- package/lib/components/booking/components/footer/amount.js +6 -23
- package/lib/components/booking/components/footer/index.js +4 -22
- package/lib/components/booking/components/footer/utils.d.ts +0 -7
- package/lib/components/booking/components/footer/utils.js +72 -79
- package/lib/components/booking/components/voucher/index.js +1 -10
- package/lib/components/booking/dashboard/serve.js +6 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/serve.js +12 -2
- package/lib/components/booking/hooks/useQuotation.js +13 -45
- package/lib/components/booking/info/client/serve.js +13 -2
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -1
- package/lib/components/booking/info/hooks/useHolderConfig.js +3 -8
- package/lib/components/booking/info/pet/serve.js +6 -1
- package/lib/components/booking/info/service/Lists.d.ts +1 -1
- package/lib/components/booking/info/service/Lists.js +3 -5
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/serve.js +7 -1
- package/lib/components/booking/info/service/serve.d.ts +0 -14
- package/lib/components/booking/info/service/serve.js +17 -8
- package/lib/components/booking/info/service2/Group/utils.js +0 -2
- package/lib/components/booking/info/service2/utils.d.ts +33 -1
- package/lib/components/booking/info/service2/utils.js +29 -38
- package/lib/components/booking/info/utils.js +0 -4
- package/lib/components/booking/info2/cartClientCard/index.js +5 -34
- package/lib/components/booking/info2/index.js +2 -7
- package/lib/components/booking/info2/serve.js +6 -1
- package/lib/components/booking/info2/service/addService/index.js +3 -22
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -9
- package/lib/components/booking/info2/service/addService/utils.js +11 -48
- package/lib/components/booking/info2/service/editService/index.js +32 -254
- package/lib/components/booking/info2/utilsByBooking.js +19 -26
- package/lib/components/booking/locales.d.ts +0 -30
- package/lib/components/booking/locales.js +3 -33
- package/lib/components/booking/utils.d.ts +7 -16
- package/lib/components/booking/utils.js +21 -18
- package/lib/components/checkout/PaymentModal.js +18 -41
- package/lib/components/checkout/components/CashPaymentModule/index.js +7 -1
- package/lib/components/checkout/components/ScrollableList/index.js +1 -0
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/locales.d.ts +0 -3
- package/lib/components/checkout/locales.js +0 -3
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tyro/index.js +0 -12
- package/lib/components/index.d.ts +3 -2
- package/lib/components/index.js +20 -1
- package/lib/components/list/List.js +0 -3
- package/lib/components/pay/toB/components/MX51/index.js +37 -12
- package/lib/components/pay/toB/types/index.d.ts +12 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +27 -7
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +32 -8
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +30 -4
- 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 +34 -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 +11 -2
- package/lib/components/pay/toC/locales.d.ts +9 -0
- package/lib/components/pay/toC/locales.js +12 -3
- package/lib/components/pay/toC/model.d.ts +1 -0
- package/lib/components/pay/toC/serve.d.ts +5 -0
- package/lib/components/pay/toC/serve.js +3 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/serve.js +8 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +3 -7
- package/lib/components/shoppingCart/type.d.ts +0 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +12 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +2 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +313 -279
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +2 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -5
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +2 -1
- package/lib/components/ticketBooking/components/menuBar/index.js +6 -42
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -2
- package/lib/components/ticketBooking/components/ticketBooking/index.js +49 -12
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +3 -1
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +4 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +98 -69
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.js +2 -0
- package/lib/components/ticketBooking/serve.js +117 -15
- package/lib/components/ticketBooking/utils/index.d.ts +2 -8
- package/lib/components/ticketBooking/utils/index.js +23 -29
- 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/printer.d.ts +4 -0
- package/lib/hooks/printer.js +60 -0
- package/lib/hooks/useEngineContext.d.ts +1 -0
- package/lib/hooks/useEngineContext.js +10 -2
- package/lib/index.d.ts +5 -3
- package/lib/index.js +32 -9
- package/lib/plus/clientCard/locales.js +3 -3
- package/lib/plus/clinetSearch/index.js +8 -17
- package/lib/plus/clinetSearch/locales.d.ts +0 -3
- package/lib/plus/clinetSearch/locales.js +4 -7
- package/lib/plus/clinetSearch/types.d.ts +0 -12
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/lib/plus/productSelect/CategoryTabs/index.js +86 -71
- 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/CardWrapper/index.js +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- 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/index.d.ts +3 -1
- package/lib/plus/productSelect/ProductCard/index.js +19 -2
- 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/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/{selectHolder → walletEditor}/types.js +1 -1
- 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 +93 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +287 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.less +57 -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 +146 -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 +498 -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/{plus/selectHolder/utils.js → pro/Login2.0/hooks/index.js} +7 -12
- 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/{multiDayTimeSelect → Login2.0}/index.js +16 -6
- package/lib/pro/Login2.0/index.less +1002 -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/{multiDayTimeSelect → Login2.0/shared}/types.js +1 -1
- 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/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/comprehensiveSearch/locales.js +1 -1
- package/lib/pro/pisellPaymentList/example.d.ts +19 -0
- package/lib/pro/pisellPaymentList/example.js +416 -0
- package/lib/pro/skuDetailModal/types.d.ts +0 -1
- 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/event-select-holder/meta.ts +2 -2
- 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/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 +13 -13
- package/es/components/booking/info2/service/editService/Holder/index.d.ts +0 -12
- package/es/components/booking/info2/service/editService/Holder/index.less +0 -63
- package/es/components/booking/utils/confirmHolderModal.d.ts +0 -13
- package/es/components/booking/utils/confirmHolderModal.js +0 -318
- package/es/components/booking/utils/confirmHolderModal.less +0 -40
- package/es/components/booking/utils/selectHolderModal.d.ts +0 -24
- package/es/components/booking/utils/selectHolderModal.js +0 -407
- package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +0 -18
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -3
- package/es/plus/selectHolder/components/ErrorTip/index.js +0 -14
- package/es/plus/selectHolder/components/ErrorTip/index.less +0 -51
- package/es/plus/selectHolder/components/HolderItem/index.d.ts +0 -6
- package/es/plus/selectHolder/components/HolderItem/index.js +0 -77
- package/es/plus/selectHolder/components/HolderItem/index.less +0 -105
- package/es/plus/selectHolder/components/HolderList/index.d.ts +0 -30
- package/es/plus/selectHolder/components/HolderList/index.js +0 -43
- package/es/plus/selectHolder/index.d.ts +0 -7
- package/es/plus/selectHolder/index.js +0 -273
- package/es/plus/selectHolder/index.less +0 -137
- package/es/plus/selectHolder/locales.d.ts +0 -24
- package/es/plus/selectHolder/locales.js +0 -29
- package/es/plus/selectHolder/types.d.ts +0 -104
- package/es/plus/selectHolder/utils.d.ts +0 -9
- package/es/plus/selectHolder/utils.js +0 -16
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +0 -9
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.less +0 -8
- package/es/pro/multiDayTimeSelect/index.d.ts +0 -3
- package/es/pro/multiDayTimeSelect/index.js +0 -1
- package/es/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/lib/components/booking/info2/service/editService/Holder/index.d.ts +0 -12
- package/lib/components/booking/info2/service/editService/Holder/index.js +0 -199
- package/lib/components/booking/info2/service/editService/Holder/index.less +0 -63
- package/lib/components/booking/utils/confirmHolderModal.d.ts +0 -13
- package/lib/components/booking/utils/confirmHolderModal.js +0 -253
- package/lib/components/booking/utils/confirmHolderModal.less +0 -40
- package/lib/components/booking/utils/selectHolderModal.d.ts +0 -24
- package/lib/components/booking/utils/selectHolderModal.js +0 -319
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +0 -18
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +0 -118
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -3
- package/lib/plus/selectHolder/components/ErrorTip/index.js +0 -30
- package/lib/plus/selectHolder/components/ErrorTip/index.less +0 -51
- package/lib/plus/selectHolder/components/HolderItem/index.d.ts +0 -6
- package/lib/plus/selectHolder/components/HolderItem/index.js +0 -101
- package/lib/plus/selectHolder/components/HolderItem/index.less +0 -105
- package/lib/plus/selectHolder/components/HolderList/index.d.ts +0 -30
- package/lib/plus/selectHolder/index.d.ts +0 -7
- package/lib/plus/selectHolder/index.js +0 -223
- package/lib/plus/selectHolder/index.less +0 -137
- package/lib/plus/selectHolder/locales.d.ts +0 -24
- package/lib/plus/selectHolder/locales.js +0 -47
- package/lib/plus/selectHolder/types.d.ts +0 -104
- package/lib/plus/selectHolder/utils.d.ts +0 -9
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +0 -9
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.js +0 -304
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.less +0 -8
- package/lib/pro/multiDayTimeSelect/index.d.ts +0 -3
- package/lib/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/lowcode/select-holder/meta.ts +0 -220
- package/lowcode/select-holder/snippets.ts +0 -41
- package/lowcode/wallet/meta.ts +0 -79
- /package/es/{plus/selectHolder → components/authentication/admin/ChannelAuthSetting/AuthenticationMethods}/types.js +0 -0
- /package/es/{pro/multiDayTimeSelect → components/authentication/admin/ChannelAuthSetting/CollectInfo}/types.js +0 -0
- /package/es/components/{ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less → authentication/index.d.ts} +0 -0
- /package/{lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less → es/components/authentication/index.js} +0 -0
|
@@ -0,0 +1,331 @@
|
|
|
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/authentication/admin/CustomerOAuthConfig/index.tsx
|
|
30
|
+
var CustomerOAuthConfig_exports = {};
|
|
31
|
+
__export(CustomerOAuthConfig_exports, {
|
|
32
|
+
default: () => CustomerOAuthConfig_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(CustomerOAuthConfig_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_utils = require("@pisell/utils");
|
|
38
|
+
var import_icons = require("@ant-design/icons");
|
|
39
|
+
var import_types = require("../AuthMethods/types");
|
|
40
|
+
var import_SettingList = __toESM(require("../AuthMethods/SettingList"));
|
|
41
|
+
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
42
|
+
var import_locales = __toESM(require("./locales"));
|
|
43
|
+
var import_CustomerOAuthConfig = require("./CustomerOAuthConfig.less");
|
|
44
|
+
var { Title, Paragraph } = import_antd.Typography;
|
|
45
|
+
var CustomerOAuthConfig = ({ className, style, onSave }) => {
|
|
46
|
+
var _a, _b;
|
|
47
|
+
const context = (0, import_useEngineContext.default)();
|
|
48
|
+
const app = context.appHelper.utils.getApp();
|
|
49
|
+
const { request, data } = context.appHelper.utils.getApp();
|
|
50
|
+
import_utils.locales.init(import_locales.default, ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en");
|
|
51
|
+
const [form] = import_antd.Form.useForm();
|
|
52
|
+
const [loading, setLoading] = (0, import_react.useState)(true);
|
|
53
|
+
const [drawerOpen, setDrawerOpen] = (0, import_react.useState)(false);
|
|
54
|
+
const [currentProvider, setCurrentProvider] = (0, import_react.useState)(null);
|
|
55
|
+
const [tenantId, setTenantId] = (0, import_react.useState)(null);
|
|
56
|
+
const initialProviders = [
|
|
57
|
+
// 暂时注释 google
|
|
58
|
+
// {
|
|
59
|
+
// id: 'google',
|
|
60
|
+
// name: locales.getText('oauth.provider.google'),
|
|
61
|
+
// description: locales.getText('oauth.provider.google.description'),
|
|
62
|
+
// icon: <GoogleOutlined style={{ fontSize: 24, color: '#4285F4' }} />,
|
|
63
|
+
// configured: false,
|
|
64
|
+
// },
|
|
65
|
+
{
|
|
66
|
+
id: "apple",
|
|
67
|
+
name: import_utils.locales.getText("oauth.provider.apple"),
|
|
68
|
+
description: import_utils.locales.getText("oauth.provider.apple.description"),
|
|
69
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.AppleOutlined, { style: { fontSize: 24, color: "#000000" } }),
|
|
70
|
+
configured: false
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: "facebook",
|
|
74
|
+
name: import_utils.locales.getText("oauth.provider.facebook"),
|
|
75
|
+
description: import_utils.locales.getText("oauth.provider.facebook.description"),
|
|
76
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.FacebookOutlined, { style: { fontSize: 24, color: "#1877F2" } }),
|
|
77
|
+
configured: false
|
|
78
|
+
}
|
|
79
|
+
];
|
|
80
|
+
const [providers, setProviders] = (0, import_react.useState)(initialProviders);
|
|
81
|
+
(0, import_react.useEffect)(() => {
|
|
82
|
+
console.log("app_init_customer_oauth_config", app, context, data.storage);
|
|
83
|
+
}, []);
|
|
84
|
+
(0, import_react.useEffect)(() => {
|
|
85
|
+
var _a2;
|
|
86
|
+
const coreData = data.storage.getStorage("core");
|
|
87
|
+
console.log("coreData from storage:", coreData);
|
|
88
|
+
if (coreData) {
|
|
89
|
+
try {
|
|
90
|
+
const coreDataJson = JSON.parse(coreData);
|
|
91
|
+
console.log("parsed coreDataJson:", coreDataJson);
|
|
92
|
+
if ((_a2 = coreDataJson == null ? void 0 : coreDataJson.tenant) == null ? void 0 : _a2.id) {
|
|
93
|
+
console.log("setting tenantId:", coreDataJson.tenant.id);
|
|
94
|
+
setTenantId(coreDataJson.tenant.id);
|
|
95
|
+
} else {
|
|
96
|
+
console.log("tenant.id not found in coreData");
|
|
97
|
+
}
|
|
98
|
+
} catch (error) {
|
|
99
|
+
console.error("Error parsing core data:", error);
|
|
100
|
+
}
|
|
101
|
+
} else {
|
|
102
|
+
console.log("No coreData found in storage");
|
|
103
|
+
}
|
|
104
|
+
}, [data.storage]);
|
|
105
|
+
const checkAllProvidersStatus = async () => {
|
|
106
|
+
console.log("checkAllProvidersStatus called, tenantId:", tenantId);
|
|
107
|
+
if (!tenantId) {
|
|
108
|
+
console.log("No tenantId, skipping status check");
|
|
109
|
+
setLoading(false);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
setLoading(true);
|
|
113
|
+
console.log("Starting to check providers status...");
|
|
114
|
+
const updatedProviders = await Promise.all(
|
|
115
|
+
initialProviders.map(async (provider) => {
|
|
116
|
+
var _a2, _b2;
|
|
117
|
+
const dataKey = `auth.oauth.${provider.id}`;
|
|
118
|
+
console.log(`Checking ${provider.id} with dataKey:`, dataKey);
|
|
119
|
+
try {
|
|
120
|
+
const url = `/tenant/core/meta?key=${dataKey}&metable_type=tenant&metable_id=${tenantId}`;
|
|
121
|
+
console.log(`Requesting URL:`, url);
|
|
122
|
+
const res = await request.get(url);
|
|
123
|
+
console.log(`check_status_${provider.id}`, res);
|
|
124
|
+
let hasConfig = false;
|
|
125
|
+
if (((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.length) > 0 && ((_b2 = res.data[0]) == null ? void 0 : _b2.value)) {
|
|
126
|
+
const configData = res.data[0].value;
|
|
127
|
+
console.log(`${provider.id} configData:`, configData);
|
|
128
|
+
if (typeof configData === "object" && configData !== null) {
|
|
129
|
+
const hasValidValue = Object.values(configData).some(
|
|
130
|
+
(val) => val !== null && val !== void 0 && val !== ""
|
|
131
|
+
);
|
|
132
|
+
hasConfig = hasValidValue;
|
|
133
|
+
console.log(`${provider.id} hasValidValue:`, hasValidValue);
|
|
134
|
+
} else {
|
|
135
|
+
hasConfig = !!configData;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
console.log(`${provider.id} hasConfig:`, hasConfig);
|
|
139
|
+
return {
|
|
140
|
+
...provider,
|
|
141
|
+
configured: hasConfig
|
|
142
|
+
};
|
|
143
|
+
} catch (error) {
|
|
144
|
+
console.error(`Error checking ${provider.id} status:`, error);
|
|
145
|
+
return {
|
|
146
|
+
...provider,
|
|
147
|
+
configured: false
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
})
|
|
151
|
+
);
|
|
152
|
+
console.log("Updated providers:", updatedProviders);
|
|
153
|
+
setProviders(updatedProviders);
|
|
154
|
+
setLoading(false);
|
|
155
|
+
};
|
|
156
|
+
(0, import_react.useEffect)(() => {
|
|
157
|
+
console.log("tenantId useEffect triggered, tenantId:", tenantId);
|
|
158
|
+
if (tenantId) {
|
|
159
|
+
console.log("tenantId is valid, calling checkAllProvidersStatus");
|
|
160
|
+
checkAllProvidersStatus();
|
|
161
|
+
} else {
|
|
162
|
+
console.log("tenantId is null or undefined");
|
|
163
|
+
}
|
|
164
|
+
}, [tenantId]);
|
|
165
|
+
const authMethods = (0, import_react.useMemo)(() => {
|
|
166
|
+
return providers.map((provider) => ({
|
|
167
|
+
id: provider.id,
|
|
168
|
+
type: provider.id.toUpperCase(),
|
|
169
|
+
title: provider.name,
|
|
170
|
+
category: import_types.AuthMethodCategory.OAUTH,
|
|
171
|
+
description: provider.description,
|
|
172
|
+
icon: provider.icon,
|
|
173
|
+
enabled: provider.configured,
|
|
174
|
+
hasSettings: true
|
|
175
|
+
}));
|
|
176
|
+
}, [providers]);
|
|
177
|
+
const renderMethodTitle = (method) => {
|
|
178
|
+
const getStatusTag = () => {
|
|
179
|
+
if (method.enabled) {
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
182
|
+
const tagStyle = {
|
|
183
|
+
display: "inline-block",
|
|
184
|
+
padding: "2px 8px",
|
|
185
|
+
borderRadius: "4px",
|
|
186
|
+
fontSize: "12px",
|
|
187
|
+
fontWeight: 500,
|
|
188
|
+
lineHeight: "20px"
|
|
189
|
+
};
|
|
190
|
+
return /* @__PURE__ */ import_react.default.createElement("span", { style: {
|
|
191
|
+
...tagStyle,
|
|
192
|
+
backgroundColor: "#fff7e6",
|
|
193
|
+
color: "#fa8c16",
|
|
194
|
+
border: "1px solid #ffd591"
|
|
195
|
+
} }, import_utils.locales.getText("oauth.status.not.configured"));
|
|
196
|
+
};
|
|
197
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: "8px" } }, /* @__PURE__ */ import_react.default.createElement("span", null, method.title), getStatusTag());
|
|
198
|
+
};
|
|
199
|
+
const loadProviderConfig = async (providerId) => {
|
|
200
|
+
var _a2, _b2;
|
|
201
|
+
if (!tenantId) {
|
|
202
|
+
console.log("No tenantId, cannot load provider config");
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
const dataKey = `auth.oauth.${providerId}`;
|
|
206
|
+
console.log(`Loading config for ${providerId} with dataKey:`, dataKey);
|
|
207
|
+
try {
|
|
208
|
+
const url = `/tenant/core/meta?key=${dataKey}&metable_type=tenant&metable_id=${tenantId}`;
|
|
209
|
+
console.log(`Loading from URL:`, url);
|
|
210
|
+
const res = await request.get(url);
|
|
211
|
+
console.log(`load_config_${providerId}`, res);
|
|
212
|
+
if (((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.length) > 0 && ((_b2 = res.data[0]) == null ? void 0 : _b2.value)) {
|
|
213
|
+
const configData = res.data[0].value;
|
|
214
|
+
console.log(`${providerId} loaded configData:`, configData);
|
|
215
|
+
if (configData && typeof configData === "object") {
|
|
216
|
+
form.setFieldsValue(configData);
|
|
217
|
+
console.log("Form fields set with:", configData);
|
|
218
|
+
}
|
|
219
|
+
} else {
|
|
220
|
+
console.log(`No config data found for ${providerId}`);
|
|
221
|
+
form.resetFields();
|
|
222
|
+
}
|
|
223
|
+
} catch (error) {
|
|
224
|
+
console.error(`Error loading ${providerId} config:`, error);
|
|
225
|
+
form.resetFields();
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
const handleSettings = async (method) => {
|
|
229
|
+
console.log("handleSettings called for method:", method);
|
|
230
|
+
const provider = providers.find((p) => p.id === method.id);
|
|
231
|
+
console.log("Found provider:", provider);
|
|
232
|
+
if (provider) {
|
|
233
|
+
setCurrentProvider(provider);
|
|
234
|
+
setDrawerOpen(true);
|
|
235
|
+
await loadProviderConfig(provider.id);
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
const handleDrawerClose = () => {
|
|
239
|
+
setDrawerOpen(false);
|
|
240
|
+
setCurrentProvider(null);
|
|
241
|
+
form.resetFields();
|
|
242
|
+
};
|
|
243
|
+
const handleSaveSettings = async () => {
|
|
244
|
+
if (!currentProvider || !tenantId) return;
|
|
245
|
+
try {
|
|
246
|
+
const values = await form.validateFields();
|
|
247
|
+
console.log("Saving settings:", values);
|
|
248
|
+
const dataKey = `auth.oauth.${currentProvider.id}`;
|
|
249
|
+
let configData = {};
|
|
250
|
+
if (currentProvider.id === "facebook") {
|
|
251
|
+
configData = {
|
|
252
|
+
appid: values.appid,
|
|
253
|
+
secret_key: values.secret_key
|
|
254
|
+
};
|
|
255
|
+
} else if (currentProvider.id === "apple") {
|
|
256
|
+
configData = {
|
|
257
|
+
identifier: values.identifier
|
|
258
|
+
};
|
|
259
|
+
} else if (currentProvider.id === "google") {
|
|
260
|
+
configData = {
|
|
261
|
+
clientId: values.clientId,
|
|
262
|
+
clientSecret: values.clientSecret
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
console.log("Saving to API:", { dataKey, configData });
|
|
266
|
+
await request.post(`/tenant/core/meta/tenant/${tenantId}`, {
|
|
267
|
+
[dataKey]: configData
|
|
268
|
+
});
|
|
269
|
+
import_antd.message.success(import_utils.locales.getText("oauth.save.success") || "保存成功");
|
|
270
|
+
await checkAllProvidersStatus();
|
|
271
|
+
handleDrawerClose();
|
|
272
|
+
} catch (error) {
|
|
273
|
+
console.error("Validation failed or save error:", error);
|
|
274
|
+
import_antd.message.error(import_utils.locales.getText("oauth.save.error") || "保存失败");
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
if (loading) {
|
|
278
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `customer-oauth-config ${className || ""}`, style: { ...style, display: "flex", justifyContent: "center", alignItems: "center", minHeight: "400px" } }, /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { size: "large" }));
|
|
279
|
+
}
|
|
280
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `customer-oauth-config ${className || ""}`, style }, /* @__PURE__ */ import_react.default.createElement("div", { className: "customer-oauth-config-header" }, /* @__PURE__ */ import_react.default.createElement(Title, { level: 1, className: "customer-oauth-config-title" }, import_utils.locales.getText("oauth.config.title")), /* @__PURE__ */ import_react.default.createElement(Paragraph, { className: "customer-oauth-config-description" }, import_utils.locales.getText("oauth.config.description"))), /* @__PURE__ */ import_react.default.createElement("div", { className: "customer-oauth-config-section" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "customer-oauth-config-section-layout" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "customer-oauth-config-section-header" }, /* @__PURE__ */ import_react.default.createElement(Title, { level: 2, className: "customer-oauth-config-section-title" }, import_utils.locales.getText("oauth.providers.title")), /* @__PURE__ */ import_react.default.createElement(Paragraph, { className: "customer-oauth-config-section-description" }, import_utils.locales.getText("oauth.providers.description"))), /* @__PURE__ */ import_react.default.createElement("div", { className: "customer-oauth-config-section-content" }, /* @__PURE__ */ import_react.default.createElement(
|
|
281
|
+
import_SettingList.default,
|
|
282
|
+
{
|
|
283
|
+
methods: authMethods,
|
|
284
|
+
onSettings: handleSettings,
|
|
285
|
+
enableSetting: true,
|
|
286
|
+
renderTitle: renderMethodTitle
|
|
287
|
+
}
|
|
288
|
+
)))), /* @__PURE__ */ import_react.default.createElement(
|
|
289
|
+
import_antd.Drawer,
|
|
290
|
+
{
|
|
291
|
+
title: currentProvider ? `${currentProvider.name} ${import_utils.locales.getText("oauth.drawer.title")}` : "",
|
|
292
|
+
placement: "right",
|
|
293
|
+
width: 500,
|
|
294
|
+
open: drawerOpen,
|
|
295
|
+
onClose: handleDrawerClose
|
|
296
|
+
},
|
|
297
|
+
/* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", flexDirection: "column", height: "100%" } }, /* @__PURE__ */ import_react.default.createElement("div", { style: { flex: 1 } }, (currentProvider == null ? void 0 : currentProvider.id) === "apple" && /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { form, layout: "vertical" }, /* @__PURE__ */ import_react.default.createElement(
|
|
298
|
+
import_antd.Form.Item,
|
|
299
|
+
{
|
|
300
|
+
label: import_utils.locales.getText("oauth.apple.identifier"),
|
|
301
|
+
name: "identifier",
|
|
302
|
+
rules: [{ required: true, message: import_utils.locales.getText("oauth.apple.identifier.required") }]
|
|
303
|
+
},
|
|
304
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Input, { placeholder: import_utils.locales.getText("oauth.apple.identifier.placeholder") })
|
|
305
|
+
)), (currentProvider == null ? void 0 : currentProvider.id) === "facebook" && /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { form, layout: "vertical" }, /* @__PURE__ */ import_react.default.createElement(
|
|
306
|
+
import_antd.Form.Item,
|
|
307
|
+
{
|
|
308
|
+
label: import_utils.locales.getText("oauth.facebook.appId"),
|
|
309
|
+
name: "appid",
|
|
310
|
+
rules: [{ required: true, message: import_utils.locales.getText("oauth.facebook.appId.required") }]
|
|
311
|
+
},
|
|
312
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Input, { placeholder: import_utils.locales.getText("oauth.facebook.appId.placeholder") })
|
|
313
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
314
|
+
import_antd.Form.Item,
|
|
315
|
+
{
|
|
316
|
+
label: import_utils.locales.getText("oauth.facebook.appSecret"),
|
|
317
|
+
name: "secret_key",
|
|
318
|
+
rules: [{ required: true, message: import_utils.locales.getText("oauth.facebook.appSecret.required") }]
|
|
319
|
+
},
|
|
320
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Input.Password, { placeholder: import_utils.locales.getText("oauth.facebook.appSecret.placeholder") })
|
|
321
|
+
))), /* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
322
|
+
display: "flex",
|
|
323
|
+
gap: "8px",
|
|
324
|
+
justifyContent: "flex-end",
|
|
325
|
+
padding: "16px 0",
|
|
326
|
+
borderTop: "1px solid #f0f0f0",
|
|
327
|
+
marginTop: "auto"
|
|
328
|
+
} }, /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleDrawerClose }, import_utils.locales.getText("oauth.button.cancel")), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "primary", onClick: handleSaveSettings }, import_utils.locales.getText("oauth.button.save"))))
|
|
329
|
+
));
|
|
330
|
+
};
|
|
331
|
+
var CustomerOAuthConfig_default = CustomerOAuthConfig;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'oauth.config.title': string;
|
|
4
|
+
'oauth.config.description': string;
|
|
5
|
+
'oauth.providers.title': string;
|
|
6
|
+
'oauth.providers.description': string;
|
|
7
|
+
'oauth.provider.google': string;
|
|
8
|
+
'oauth.provider.google.description': string;
|
|
9
|
+
'oauth.provider.apple': string;
|
|
10
|
+
'oauth.provider.apple.description': string;
|
|
11
|
+
'oauth.provider.facebook': string;
|
|
12
|
+
'oauth.provider.facebook.description': string;
|
|
13
|
+
'oauth.status.configured': string;
|
|
14
|
+
'oauth.status.not.configured': string;
|
|
15
|
+
'oauth.button.settings': string;
|
|
16
|
+
'oauth.button.save': string;
|
|
17
|
+
'oauth.button.cancel': string;
|
|
18
|
+
'oauth.drawer.title': string;
|
|
19
|
+
'oauth.apple.identifier': string;
|
|
20
|
+
'oauth.apple.identifier.required': string;
|
|
21
|
+
'oauth.apple.identifier.placeholder': string;
|
|
22
|
+
'oauth.facebook.appId': string;
|
|
23
|
+
'oauth.facebook.appId.required': string;
|
|
24
|
+
'oauth.facebook.appId.placeholder': string;
|
|
25
|
+
'oauth.facebook.appSecret': string;
|
|
26
|
+
'oauth.facebook.appSecret.required': string;
|
|
27
|
+
'oauth.facebook.appSecret.placeholder': string;
|
|
28
|
+
'oauth.google.clientId': string;
|
|
29
|
+
'oauth.google.clientId.required': string;
|
|
30
|
+
'oauth.google.clientId.placeholder': string;
|
|
31
|
+
'oauth.google.clientSecret': string;
|
|
32
|
+
'oauth.google.clientSecret.required': string;
|
|
33
|
+
'oauth.google.clientSecret.placeholder': string;
|
|
34
|
+
'oauth.save.success': string;
|
|
35
|
+
'oauth.save.error': string;
|
|
36
|
+
};
|
|
37
|
+
'zh-CN': {
|
|
38
|
+
'oauth.config.title': string;
|
|
39
|
+
'oauth.config.description': string;
|
|
40
|
+
'oauth.providers.title': string;
|
|
41
|
+
'oauth.providers.description': string;
|
|
42
|
+
'oauth.provider.google': string;
|
|
43
|
+
'oauth.provider.google.description': string;
|
|
44
|
+
'oauth.provider.apple': string;
|
|
45
|
+
'oauth.provider.apple.description': string;
|
|
46
|
+
'oauth.provider.facebook': string;
|
|
47
|
+
'oauth.provider.facebook.description': string;
|
|
48
|
+
'oauth.status.configured': string;
|
|
49
|
+
'oauth.status.not.configured': string;
|
|
50
|
+
'oauth.button.settings': string;
|
|
51
|
+
'oauth.button.save': string;
|
|
52
|
+
'oauth.button.cancel': string;
|
|
53
|
+
'oauth.drawer.title': string;
|
|
54
|
+
'oauth.apple.identifier': string;
|
|
55
|
+
'oauth.apple.identifier.required': string;
|
|
56
|
+
'oauth.apple.identifier.placeholder': string;
|
|
57
|
+
'oauth.facebook.appId': string;
|
|
58
|
+
'oauth.facebook.appId.required': string;
|
|
59
|
+
'oauth.facebook.appId.placeholder': string;
|
|
60
|
+
'oauth.facebook.appSecret': string;
|
|
61
|
+
'oauth.facebook.appSecret.required': string;
|
|
62
|
+
'oauth.facebook.appSecret.placeholder': string;
|
|
63
|
+
'oauth.google.clientId': string;
|
|
64
|
+
'oauth.google.clientId.required': string;
|
|
65
|
+
'oauth.google.clientId.placeholder': string;
|
|
66
|
+
'oauth.google.clientSecret': string;
|
|
67
|
+
'oauth.google.clientSecret.required': string;
|
|
68
|
+
'oauth.google.clientSecret.placeholder': string;
|
|
69
|
+
'oauth.save.success': string;
|
|
70
|
+
'oauth.save.error': string;
|
|
71
|
+
};
|
|
72
|
+
'zh-HK': {
|
|
73
|
+
'oauth.config.title': string;
|
|
74
|
+
'oauth.config.description': string;
|
|
75
|
+
'oauth.providers.title': string;
|
|
76
|
+
'oauth.providers.description': string;
|
|
77
|
+
'oauth.provider.google': string;
|
|
78
|
+
'oauth.provider.google.description': string;
|
|
79
|
+
'oauth.provider.apple': string;
|
|
80
|
+
'oauth.provider.apple.description': string;
|
|
81
|
+
'oauth.provider.facebook': string;
|
|
82
|
+
'oauth.provider.facebook.description': string;
|
|
83
|
+
'oauth.status.configured': string;
|
|
84
|
+
'oauth.status.not.configured': string;
|
|
85
|
+
'oauth.button.settings': string;
|
|
86
|
+
'oauth.button.save': string;
|
|
87
|
+
'oauth.button.cancel': string;
|
|
88
|
+
'oauth.drawer.title': string;
|
|
89
|
+
'oauth.apple.identifier': string;
|
|
90
|
+
'oauth.apple.identifier.required': string;
|
|
91
|
+
'oauth.apple.identifier.placeholder': string;
|
|
92
|
+
'oauth.facebook.appId': string;
|
|
93
|
+
'oauth.facebook.appId.required': string;
|
|
94
|
+
'oauth.facebook.appId.placeholder': string;
|
|
95
|
+
'oauth.facebook.appSecret': string;
|
|
96
|
+
'oauth.facebook.appSecret.required': string;
|
|
97
|
+
'oauth.facebook.appSecret.placeholder': string;
|
|
98
|
+
'oauth.google.clientId': string;
|
|
99
|
+
'oauth.google.clientId.required': string;
|
|
100
|
+
'oauth.google.clientId.placeholder': string;
|
|
101
|
+
'oauth.google.clientSecret': string;
|
|
102
|
+
'oauth.google.clientSecret.required': string;
|
|
103
|
+
'oauth.google.clientSecret.placeholder': string;
|
|
104
|
+
'oauth.save.success': string;
|
|
105
|
+
'oauth.save.error': string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
export default _default;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/authentication/admin/CustomerOAuthConfig/locales.ts
|
|
20
|
+
var locales_exports = {};
|
|
21
|
+
__export(locales_exports, {
|
|
22
|
+
default: () => locales_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(locales_exports);
|
|
25
|
+
var locales_default = {
|
|
26
|
+
en: {
|
|
27
|
+
// Page title and description
|
|
28
|
+
"oauth.config.title": "OAuth Configuration",
|
|
29
|
+
"oauth.config.description": "Configure third-party OAuth providers for quick login.",
|
|
30
|
+
// OAuth Providers section
|
|
31
|
+
"oauth.providers.title": "OAuth Providers",
|
|
32
|
+
"oauth.providers.description": "Configure third-party OAuth providers.",
|
|
33
|
+
// Provider names and descriptions
|
|
34
|
+
"oauth.provider.google": "Google",
|
|
35
|
+
"oauth.provider.google.description": "Sign in with Google account",
|
|
36
|
+
"oauth.provider.apple": "Apple",
|
|
37
|
+
"oauth.provider.apple.description": "Sign in with Apple ID",
|
|
38
|
+
"oauth.provider.facebook": "Facebook",
|
|
39
|
+
"oauth.provider.facebook.description": "Sign in with Facebook account",
|
|
40
|
+
// Status
|
|
41
|
+
"oauth.status.configured": "Configured",
|
|
42
|
+
"oauth.status.not.configured": "Not Configured",
|
|
43
|
+
// Buttons
|
|
44
|
+
"oauth.button.settings": "Settings",
|
|
45
|
+
"oauth.button.save": "Save",
|
|
46
|
+
"oauth.button.cancel": "Cancel",
|
|
47
|
+
// Drawer
|
|
48
|
+
"oauth.drawer.title": "Settings",
|
|
49
|
+
// Apple OAuth
|
|
50
|
+
"oauth.apple.identifier": "Identifier",
|
|
51
|
+
"oauth.apple.identifier.required": "Please enter the identifier",
|
|
52
|
+
"oauth.apple.identifier.placeholder": "Please enter the identifier",
|
|
53
|
+
// Facebook OAuth
|
|
54
|
+
"oauth.facebook.appId": "AppId",
|
|
55
|
+
"oauth.facebook.appId.required": "Please enter the AppId",
|
|
56
|
+
"oauth.facebook.appId.placeholder": "Please enter the AppId",
|
|
57
|
+
"oauth.facebook.appSecret": "AppSecret",
|
|
58
|
+
"oauth.facebook.appSecret.required": "Please enter the AppSecret",
|
|
59
|
+
"oauth.facebook.appSecret.placeholder": "Please enter the AppSecret",
|
|
60
|
+
// Google OAuth
|
|
61
|
+
"oauth.google.clientId": "Client ID",
|
|
62
|
+
"oauth.google.clientId.required": "Please enter the Client ID",
|
|
63
|
+
"oauth.google.clientId.placeholder": "Please enter the Client ID",
|
|
64
|
+
"oauth.google.clientSecret": "Client Secret",
|
|
65
|
+
"oauth.google.clientSecret.required": "Please enter the Client Secret",
|
|
66
|
+
"oauth.google.clientSecret.placeholder": "Please enter the Client Secret",
|
|
67
|
+
// Messages
|
|
68
|
+
"oauth.save.success": "Saved successfully",
|
|
69
|
+
"oauth.save.error": "Failed to save"
|
|
70
|
+
},
|
|
71
|
+
"zh-CN": {
|
|
72
|
+
// Page title and description
|
|
73
|
+
"oauth.config.title": "OAuth 配置",
|
|
74
|
+
"oauth.config.description": "配置第三方 OAuth 提供商以实现快速登录。",
|
|
75
|
+
// OAuth Providers section
|
|
76
|
+
"oauth.providers.title": "OAuth 提供商",
|
|
77
|
+
"oauth.providers.description": "配置第三方 OAuth 提供商。",
|
|
78
|
+
// Provider names and descriptions
|
|
79
|
+
"oauth.provider.google": "Google",
|
|
80
|
+
"oauth.provider.google.description": "使用 Google 账号登录",
|
|
81
|
+
"oauth.provider.apple": "Apple",
|
|
82
|
+
"oauth.provider.apple.description": "使用 Apple ID 登录",
|
|
83
|
+
"oauth.provider.facebook": "Facebook",
|
|
84
|
+
"oauth.provider.facebook.description": "使用 Facebook 账号登录",
|
|
85
|
+
// Status
|
|
86
|
+
"oauth.status.configured": "已配置",
|
|
87
|
+
"oauth.status.not.configured": "未配置",
|
|
88
|
+
// Buttons
|
|
89
|
+
"oauth.button.settings": "设置",
|
|
90
|
+
"oauth.button.save": "保存",
|
|
91
|
+
"oauth.button.cancel": "取消",
|
|
92
|
+
// Drawer
|
|
93
|
+
"oauth.drawer.title": "设置",
|
|
94
|
+
// Apple OAuth
|
|
95
|
+
"oauth.apple.identifier": "标识符",
|
|
96
|
+
"oauth.apple.identifier.required": "请输入标识符",
|
|
97
|
+
"oauth.apple.identifier.placeholder": "请输入标识符",
|
|
98
|
+
// Facebook OAuth
|
|
99
|
+
"oauth.facebook.appId": "应用ID",
|
|
100
|
+
"oauth.facebook.appId.required": "请输入应用ID",
|
|
101
|
+
"oauth.facebook.appId.placeholder": "请输入应用ID",
|
|
102
|
+
"oauth.facebook.appSecret": "应用密钥",
|
|
103
|
+
"oauth.facebook.appSecret.required": "请输入应用密钥",
|
|
104
|
+
"oauth.facebook.appSecret.placeholder": "请输入应用密钥",
|
|
105
|
+
// Google OAuth
|
|
106
|
+
"oauth.google.clientId": "客户端ID",
|
|
107
|
+
"oauth.google.clientId.required": "请输入客户端ID",
|
|
108
|
+
"oauth.google.clientId.placeholder": "请输入客户端ID",
|
|
109
|
+
"oauth.google.clientSecret": "客户端密钥",
|
|
110
|
+
"oauth.google.clientSecret.required": "请输入客户端密钥",
|
|
111
|
+
"oauth.google.clientSecret.placeholder": "请输入客户端密钥",
|
|
112
|
+
// Messages
|
|
113
|
+
"oauth.save.success": "保存成功",
|
|
114
|
+
"oauth.save.error": "保存失败"
|
|
115
|
+
},
|
|
116
|
+
"zh-HK": {
|
|
117
|
+
// Page title and description
|
|
118
|
+
"oauth.config.title": "OAuth 配置",
|
|
119
|
+
"oauth.config.description": "配置第三方 OAuth 提供商以實現快速登錄。",
|
|
120
|
+
// OAuth Providers section
|
|
121
|
+
"oauth.providers.title": "OAuth 提供商",
|
|
122
|
+
"oauth.providers.description": "配置第三方 OAuth 提供商。",
|
|
123
|
+
// Provider names and descriptions
|
|
124
|
+
"oauth.provider.google": "Google",
|
|
125
|
+
"oauth.provider.google.description": "使用 Google 賬號登錄",
|
|
126
|
+
"oauth.provider.apple": "Apple",
|
|
127
|
+
"oauth.provider.apple.description": "使用 Apple ID 登錄",
|
|
128
|
+
"oauth.provider.facebook": "Facebook",
|
|
129
|
+
"oauth.provider.facebook.description": "使用 Facebook 賬號登錄",
|
|
130
|
+
// Status
|
|
131
|
+
"oauth.status.configured": "已配置",
|
|
132
|
+
"oauth.status.not.configured": "未配置",
|
|
133
|
+
// Buttons
|
|
134
|
+
"oauth.button.settings": "設置",
|
|
135
|
+
"oauth.button.save": "保存",
|
|
136
|
+
"oauth.button.cancel": "取消",
|
|
137
|
+
// Drawer
|
|
138
|
+
"oauth.drawer.title": "設置",
|
|
139
|
+
// Apple OAuth
|
|
140
|
+
"oauth.apple.identifier": "標識符",
|
|
141
|
+
"oauth.apple.identifier.required": "請輸入標識符",
|
|
142
|
+
"oauth.apple.identifier.placeholder": "請輸入標識符",
|
|
143
|
+
// Facebook OAuth
|
|
144
|
+
"oauth.facebook.appId": "應用ID",
|
|
145
|
+
"oauth.facebook.appId.required": "請輸入應用ID",
|
|
146
|
+
"oauth.facebook.appId.placeholder": "請輸入應用ID",
|
|
147
|
+
"oauth.facebook.appSecret": "應用密鑰",
|
|
148
|
+
"oauth.facebook.appSecret.required": "請輸入應用密鑰",
|
|
149
|
+
"oauth.facebook.appSecret.placeholder": "請輸入應用密鑰",
|
|
150
|
+
// Google OAuth
|
|
151
|
+
"oauth.google.clientId": "客戶端ID",
|
|
152
|
+
"oauth.google.clientId.required": "請輸入客戶端ID",
|
|
153
|
+
"oauth.google.clientId.placeholder": "請輸入客戶端ID",
|
|
154
|
+
"oauth.google.clientSecret": "客戶端密鑰",
|
|
155
|
+
"oauth.google.clientSecret.required": "請輸入客戶端密鑰",
|
|
156
|
+
"oauth.google.clientSecret.placeholder": "請輸入客戶端密鑰",
|
|
157
|
+
// Messages
|
|
158
|
+
"oauth.save.success": "保存成功",
|
|
159
|
+
"oauth.save.error": "保存失敗"
|
|
160
|
+
}
|
|
161
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface CustomerOAuthProvider {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
icon: React.ReactNode;
|
|
7
|
+
configured: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface CustomerOAuthConfigProps {
|
|
10
|
+
/**
|
|
11
|
+
* 自定义类名
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 自定义样式
|
|
16
|
+
*/
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
/**
|
|
19
|
+
* 保存回调
|
|
20
|
+
*/
|
|
21
|
+
onSave?: (providers: CustomerOAuthProvider[]) => void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/components/authentication/admin/CustomerOAuthConfig/types.ts
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|