@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,176 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React, { useMemo, useCallback } from 'react';
|
|
8
|
+
import { useRequest } from 'ahooks';
|
|
9
|
+
import dayjs from 'dayjs';
|
|
10
|
+
import timezonePlugin from 'dayjs/plugin/timezone';
|
|
11
|
+
import utcPlugin from 'dayjs/plugin/utc';
|
|
12
|
+
import { locales } from '@pisell/utils';
|
|
13
|
+
import { Timeline, Skeleton, PisellEmpty, usePisellConfig, PisellModal, PisellStatisticList, Button } from '@pisell/materials';
|
|
14
|
+
import { getAssetList } from "../../serve";
|
|
15
|
+
import "./index.less";
|
|
16
|
+
dayjs.extend(timezonePlugin);
|
|
17
|
+
dayjs.extend(utcPlugin);
|
|
18
|
+
var stateTimeUnix = 1723255863; // 2024.8.10 时间戳
|
|
19
|
+
var TimelineSection = function TimelineSection(props) {
|
|
20
|
+
var code = props.code,
|
|
21
|
+
tag = props.tag,
|
|
22
|
+
timezone = props.timezone;
|
|
23
|
+
var _usePisellConfig = usePisellConfig(),
|
|
24
|
+
_usePisellConfig$symb = _usePisellConfig.symbol,
|
|
25
|
+
symbol = _usePisellConfig$symb === void 0 ? '$' : _usePisellConfig$symb;
|
|
26
|
+
var _React$useState = React.useState(false),
|
|
27
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
28
|
+
isShowtimeLineDetail = _React$useState2[0],
|
|
29
|
+
setIsShowtimeLineDetail = _React$useState2[1];
|
|
30
|
+
var _React$useState3 = React.useState(true),
|
|
31
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
32
|
+
isSpending = _React$useState4[0],
|
|
33
|
+
setIsSpending = _React$useState4[1];
|
|
34
|
+
var _React$useState5 = React.useState(null),
|
|
35
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
36
|
+
timeLineDetail = _React$useState6[0],
|
|
37
|
+
setTimeLineDetail = _React$useState6[1];
|
|
38
|
+
var assetActionEnum = useMemo(function () {
|
|
39
|
+
return {
|
|
40
|
+
recharge: tag === 'point_card' ? locales.getText('wallet-pass-gallery.pointsEarned') : locales.getText('wallet-pass-gallery.recharge'),
|
|
41
|
+
order_expend: tag === 'point_card' ? locales.getText('wallet-pass-gallery.pointsRedeemed') : locales.getText('wallet-pass-gallery.spending'),
|
|
42
|
+
order_refund: locales.getText('wallet-pass-gallery.refund'),
|
|
43
|
+
expire: locales.getText('wallet-pass-gallery.expire')
|
|
44
|
+
};
|
|
45
|
+
}, [tag]);
|
|
46
|
+
var formatCurrencyAmount = useCallback(function () {
|
|
47
|
+
var amount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
48
|
+
var isNegative = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
49
|
+
if (!amount) return '';
|
|
50
|
+
if (tag === 'good_pass') return locales.getText('wallet-pass-gallery.goodPass.usedCredit')(parseInt(amount));
|
|
51
|
+
var absAmount = amount.startsWith('-') ? amount.substring(1) : amount;
|
|
52
|
+
var showSymbol = !['point_card', 'good_pass'].includes(tag);
|
|
53
|
+
return isNegative ? "-".concat(showSymbol ? symbol : '').concat(absAmount) : "".concat(showSymbol ? symbol : '').concat(amount);
|
|
54
|
+
}, [symbol, tag]);
|
|
55
|
+
var timeTreeNode = useCallback(function (data) {
|
|
56
|
+
var _data$action = data.action,
|
|
57
|
+
action = _data$action === void 0 ? '' : _data$action,
|
|
58
|
+
_data$created_at = data.created_at,
|
|
59
|
+
created_at = _data$created_at === void 0 ? '' : _data$created_at,
|
|
60
|
+
_data$amount = data.amount,
|
|
61
|
+
amount = _data$amount === void 0 ? '' : _data$amount,
|
|
62
|
+
_data$currency_symbol = data.currency_symbol,
|
|
63
|
+
currency_symbol = _data$currency_symbol === void 0 ? '' : _data$currency_symbol;
|
|
64
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
className: "pisell-wallet-pass-gallery_timeline-node"
|
|
66
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: "pisell-wallet-pass-gallery_timeline-node-left"
|
|
68
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
69
|
+
className: "pisell-wallet-pass-gallery_timeline-node-action"
|
|
70
|
+
}, action ? assetActionEnum[action] : ''), created_at && /*#__PURE__*/React.createElement("p", {
|
|
71
|
+
className: "pisell-wallet-pass-gallery_timeline-node-time"
|
|
72
|
+
}, created_at, (action === 'recharge' || action === 'order_expend') && /*#__PURE__*/React.createElement("button", {
|
|
73
|
+
type: "button",
|
|
74
|
+
className: "pisell-wallet-pass-gallery_timeline-node-detail-link",
|
|
75
|
+
onClick: function onClick() {
|
|
76
|
+
setIsShowtimeLineDetail(true);
|
|
77
|
+
setIsSpending(action === 'order_expend');
|
|
78
|
+
setTimeLineDetail(data);
|
|
79
|
+
},
|
|
80
|
+
style: {
|
|
81
|
+
background: 'transparent',
|
|
82
|
+
border: 'none',
|
|
83
|
+
padding: 0
|
|
84
|
+
}
|
|
85
|
+
}, locales.getText('wallet-pass-gallery.viewDetails')))), /*#__PURE__*/React.createElement("div", {
|
|
86
|
+
className: "pisell-wallet-pass-gallery_timeline-node-amount".concat(action === 'recharge' ? ' pisell-wallet-pass-gallery_timeline-node-amount-positive' : '').concat(action === 'order_expend' ? ' pisell-wallet-pass-gallery_timeline-node-amount-negative' : '')
|
|
87
|
+
}, amount && currency_symbol ? formatCurrencyAmount(amount, action === 'order_expend') : ''));
|
|
88
|
+
}, [assetActionEnum, formatCurrencyAmount]);
|
|
89
|
+
var assetListReq = useRequest(function () {
|
|
90
|
+
return getAssetList({
|
|
91
|
+
num: '99',
|
|
92
|
+
skip: '1',
|
|
93
|
+
card_id: code,
|
|
94
|
+
sourceType: tag,
|
|
95
|
+
tag: tag,
|
|
96
|
+
business_object: 'customer'
|
|
97
|
+
});
|
|
98
|
+
}, {
|
|
99
|
+
ready: !!code,
|
|
100
|
+
refreshDeps: [code, tag]
|
|
101
|
+
});
|
|
102
|
+
var timelineItems = useMemo(function () {
|
|
103
|
+
var _assetListReq$data;
|
|
104
|
+
var list = ((_assetListReq$data = assetListReq.data) === null || _assetListReq$data === void 0 ? void 0 : _assetListReq$data.list) || [];
|
|
105
|
+
if (!Array.isArray(list) || list.length === 0) return [];
|
|
106
|
+
var filteredByAction = list.filter(function (item) {
|
|
107
|
+
return !!assetActionEnum[item.action || ''];
|
|
108
|
+
});
|
|
109
|
+
var filteredByTime = filteredByAction.filter(function (item) {
|
|
110
|
+
var itemUnix = dayjs.tz((item === null || item === void 0 ? void 0 : item.created_at) || '', timezone).unix();
|
|
111
|
+
if ((item === null || item === void 0 ? void 0 : item.action) === 'order_expend' && itemUnix < stateTimeUnix) return false;
|
|
112
|
+
if ((item === null || item === void 0 ? void 0 : item.tag) === 'point_card' && itemUnix < stateTimeUnix) return false;
|
|
113
|
+
return true;
|
|
114
|
+
});
|
|
115
|
+
var nonZeroPoint = filteredByTime.filter(function (it) {
|
|
116
|
+
return !(it.tag === 'point_card' && (it.amount === '0' || parseFloat(it.amount || '0') === 0));
|
|
117
|
+
});
|
|
118
|
+
return nonZeroPoint.map(function (item) {
|
|
119
|
+
return {
|
|
120
|
+
children: assetActionEnum[(item === null || item === void 0 ? void 0 : item.action) || ''] ? timeTreeNode(item) : null
|
|
121
|
+
};
|
|
122
|
+
});
|
|
123
|
+
}, [assetListReq.data, assetActionEnum, timeTreeNode, timezone, stateTimeUnix]);
|
|
124
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
125
|
+
className: "pisell-wallet-pass-gallery_timeline-subtitle"
|
|
126
|
+
}, locales.getText('wallet-pass-gallery.activelog')), assetListReq.loading ? /*#__PURE__*/React.createElement("div", {
|
|
127
|
+
className: "pisell-wallet-pass-gallery_timeline-loading"
|
|
128
|
+
}, /*#__PURE__*/React.createElement(Skeleton, {
|
|
129
|
+
active: true,
|
|
130
|
+
paragraph: {
|
|
131
|
+
rows: 6
|
|
132
|
+
},
|
|
133
|
+
round: true
|
|
134
|
+
})) : timelineItems.length > 0 ? /*#__PURE__*/React.createElement(Timeline, {
|
|
135
|
+
items: timelineItems,
|
|
136
|
+
className: "pisell-wallet-pass-gallery_timeline-list"
|
|
137
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
138
|
+
className: "pisell-wallet-pass-gallery_timeline-empty"
|
|
139
|
+
}, /*#__PURE__*/React.createElement(PisellEmpty, null)), /*#__PURE__*/React.createElement(PisellModal, {
|
|
140
|
+
platform: 'pc',
|
|
141
|
+
mobileModalHeight: "auto",
|
|
142
|
+
cancelVisible: false,
|
|
143
|
+
destroyOnClose: true,
|
|
144
|
+
onCancel: function onCancel() {
|
|
145
|
+
return setIsShowtimeLineDetail(false);
|
|
146
|
+
},
|
|
147
|
+
title: isSpending ? locales.getText('wallet-pass-gallery.spendingDetails') : locales.getText('wallet-pass-gallery.rechargeDetails'),
|
|
148
|
+
open: isShowtimeLineDetail,
|
|
149
|
+
footer: [/*#__PURE__*/React.createElement(Button, {
|
|
150
|
+
type: "primary",
|
|
151
|
+
block: true,
|
|
152
|
+
size: "large",
|
|
153
|
+
onClick: function onClick() {
|
|
154
|
+
return setIsShowtimeLineDetail(false);
|
|
155
|
+
}
|
|
156
|
+
}, locales.getText('wallet-pass-gallery.done'))]
|
|
157
|
+
}, /*#__PURE__*/React.createElement(PisellStatisticList, {
|
|
158
|
+
data: [{
|
|
159
|
+
label: locales.getText('wallet-pass-gallery.date'),
|
|
160
|
+
value: (timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.created_at) || ''
|
|
161
|
+
}, {
|
|
162
|
+
label: isSpending ? locales.getText('wallet-pass-gallery.spending') : locales.getText('wallet-pass-gallery.recharge'),
|
|
163
|
+
value: formatCurrencyAmount((timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.amount) || '', isSpending)
|
|
164
|
+
}, {
|
|
165
|
+
label: locales.getText('wallet-pass-gallery.viewOrder'),
|
|
166
|
+
value: timeLineDetail && timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.resource_code ? "#".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.resource_code) : timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.transaction_id ? "#".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.transaction_id) : '',
|
|
167
|
+
isLink: !!(timeLineDetail && timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.resource_id),
|
|
168
|
+
link: timeLineDetail && timeLineDetail !== null && timeLineDetail !== void 0 && timeLineDetail.resource_id ? "/order/details?id=".concat(timeLineDetail === null || timeLineDetail === void 0 ? void 0 : timeLineDetail.resource_id) : undefined
|
|
169
|
+
}],
|
|
170
|
+
labelColor: "#101828",
|
|
171
|
+
valueColor: "#101828",
|
|
172
|
+
backgroundColors: ['#fff'],
|
|
173
|
+
isHasBorder: false
|
|
174
|
+
})));
|
|
175
|
+
};
|
|
176
|
+
export default TimelineSection;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.pisell-wallet-pass-gallery_timeline-node {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
|
|
5
|
+
&-left {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&-action {
|
|
11
|
+
color: #101828;
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
margin: 0 0 4px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-time {
|
|
18
|
+
color: #667085;
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
margin: 0;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-detail-link {
|
|
26
|
+
color: var(--theme-color, #7F56D9);
|
|
27
|
+
margin-left: 8px;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
font-size: 12px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-amount {
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
|
|
36
|
+
&-positive {
|
|
37
|
+
color: #12B76A;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-negative {
|
|
41
|
+
color: #F04438;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.pisell-wallet-pass-gallery_timeline-list {
|
|
47
|
+
padding: 8px 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.pisell-wallet-pass-gallery_timeline-subtitle {
|
|
51
|
+
font-size: 16px;
|
|
52
|
+
line-height: 24px;
|
|
53
|
+
font-weight: 600;
|
|
54
|
+
color: #101828;
|
|
55
|
+
margin-bottom: 16px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.pisell-wallet-pass-gallery_timeline-empty {
|
|
59
|
+
display: flex;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
align-items: center;
|
|
62
|
+
min-height: 200px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.pisell-wallet-pass-gallery_timeline-loading {
|
|
66
|
+
min-height: 160px;
|
|
67
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface UsageRulesProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
dataSource?: any;
|
|
7
|
+
}
|
|
8
|
+
declare function UsageRules({ className, style, dataSource }: UsageRulesProps): JSX.Element | null;
|
|
9
|
+
export default UsageRules;
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
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
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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 React, { useMemo } from 'react';
|
|
8
|
+
import { Typography } from '@pisell/materials';
|
|
9
|
+
import { locales } from '@pisell/utils';
|
|
10
|
+
import "./index.less";
|
|
11
|
+
var Text = Typography.Text;
|
|
12
|
+
function UsageRules(_ref) {
|
|
13
|
+
var _ref$className = _ref.className,
|
|
14
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15
|
+
style = _ref.style,
|
|
16
|
+
dataSource = _ref.dataSource;
|
|
17
|
+
var _ref2 = dataSource || {},
|
|
18
|
+
_ref2$extension_data = _ref2.extension_data,
|
|
19
|
+
extension_data = _ref2$extension_data === void 0 ? [] : _ref2$extension_data,
|
|
20
|
+
_ref2$customer_order_ = _ref2.customer_order_behavior_count,
|
|
21
|
+
customer_order_behavior_count = _ref2$customer_order_ === void 0 ? 0 : _ref2$customer_order_,
|
|
22
|
+
_ref2$total_order_beh = _ref2.total_order_behavior_count,
|
|
23
|
+
total_order_behavior_count = _ref2$total_order_beh === void 0 ? 0 : _ref2$total_order_beh;
|
|
24
|
+
var creditsData = useMemo(function () {
|
|
25
|
+
var usageCreditsItem = extension_data.find(function (item) {
|
|
26
|
+
return item.field_key === 'usage_credits';
|
|
27
|
+
});
|
|
28
|
+
return usageCreditsItem === null || usageCreditsItem === void 0 ? void 0 : usageCreditsItem.value;
|
|
29
|
+
}, [extension_data]);
|
|
30
|
+
var rules = useMemo(function () {
|
|
31
|
+
if (!creditsData) return [];
|
|
32
|
+
var rules = [];
|
|
33
|
+
|
|
34
|
+
// Add daily limit if exists
|
|
35
|
+
if (creditsData.max_per_day > 0) {
|
|
36
|
+
rules.push({
|
|
37
|
+
type: 'daily',
|
|
38
|
+
limit: creditsData.max_per_day,
|
|
39
|
+
description: '',
|
|
40
|
+
// Will be filled by localized text
|
|
41
|
+
resetTime: '' // Will be filled by localized text
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Add weekly limit if exists
|
|
46
|
+
if (creditsData.max_per_week > 0) {
|
|
47
|
+
rules.push({
|
|
48
|
+
type: 'weekly',
|
|
49
|
+
limit: creditsData.max_per_week,
|
|
50
|
+
description: '',
|
|
51
|
+
// Will be filled by localized text
|
|
52
|
+
resetTime: '' // Will be filled by localized text
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Add monthly limit if exists
|
|
57
|
+
if (creditsData.max_per_month > 0) {
|
|
58
|
+
rules.push({
|
|
59
|
+
type: 'monthly',
|
|
60
|
+
limit: creditsData.max_per_month,
|
|
61
|
+
description: '',
|
|
62
|
+
// Will be filled by localized text
|
|
63
|
+
resetTime: '' // Will be filled by localized text
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return rules;
|
|
67
|
+
}, [creditsData]);
|
|
68
|
+
|
|
69
|
+
// Generate personal limit data
|
|
70
|
+
var personalLimit = useMemo(function () {
|
|
71
|
+
if (!creditsData) return undefined;
|
|
72
|
+
var totalCredits = creditsData.total_credits || 0;
|
|
73
|
+
var perUserLimit = creditsData.per_user_limit || 0;
|
|
74
|
+
|
|
75
|
+
// 使用 total_credits 和 per_user_limit 中的较小值且非 0 的值作为总数
|
|
76
|
+
// 如果 totalCredits 是 0,则使用 perUserLimit
|
|
77
|
+
var total = 0;
|
|
78
|
+
if (totalCredits > 0 && perUserLimit > 0) {
|
|
79
|
+
total = Math.min(totalCredits, perUserLimit);
|
|
80
|
+
} else {
|
|
81
|
+
total = Math.max(totalCredits, perUserLimit);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// 单张卡剩余多少
|
|
85
|
+
var total_remaining = 0;
|
|
86
|
+
if (totalCredits > 0) {
|
|
87
|
+
total_remaining = totalCredits - (total_order_behavior_count || 0);
|
|
88
|
+
}
|
|
89
|
+
// 个人剩余多少
|
|
90
|
+
var perUser_remaining = 0;
|
|
91
|
+
if (perUserLimit > 0) {
|
|
92
|
+
perUser_remaining = perUserLimit - (customer_order_behavior_count || 0);
|
|
93
|
+
}
|
|
94
|
+
var remaining = 0;
|
|
95
|
+
if (total_remaining > 0 && perUser_remaining > 0) {
|
|
96
|
+
remaining = Math.min(total_remaining, perUser_remaining);
|
|
97
|
+
} else {
|
|
98
|
+
// 如果有一个是 0,还需要看是否是因为配置是 0 才导致的 0
|
|
99
|
+
// 先看总次数是不是剩余 0,是因为什么剩余 0
|
|
100
|
+
if (total_remaining === 0) {
|
|
101
|
+
if (totalCredits === 0) {
|
|
102
|
+
// 代表不限制总使用次数
|
|
103
|
+
remaining = perUser_remaining;
|
|
104
|
+
} else {
|
|
105
|
+
// 代表限制总使用次数,但是总使用次数为 0,则 remaining 为 0
|
|
106
|
+
remaining = 0;
|
|
107
|
+
}
|
|
108
|
+
} else {
|
|
109
|
+
// 如果剩余总使用次数大于 0,个人使用次数为 0,则 remaining 为 0
|
|
110
|
+
if (perUser_remaining === 0) {
|
|
111
|
+
remaining = 0;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
total: total,
|
|
117
|
+
remaining: remaining,
|
|
118
|
+
note: '' // Will be filled by localized text
|
|
119
|
+
};
|
|
120
|
+
}, [creditsData, total_order_behavior_count, customer_order_behavior_count]);
|
|
121
|
+
|
|
122
|
+
// Helper function to interpolate text with variables
|
|
123
|
+
var interpolateText = function interpolateText(text, variables) {
|
|
124
|
+
var ret = text.replace(/\{(\w+)\}/g, function (match, key) {
|
|
125
|
+
return variables[key] !== undefined ? variables[key] : match;
|
|
126
|
+
});
|
|
127
|
+
return ret;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
// Get localized text with fallback
|
|
131
|
+
var getText = function getText(key, fallback) {
|
|
132
|
+
return (locales === null || locales === void 0 ? void 0 : locales.getText(key)) || fallback || key;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
// Generate rule description with limit value
|
|
136
|
+
var getRuleDescription = function getRuleDescription(type, limit) {
|
|
137
|
+
// Handle unlimited case (limit = 0 means unlimited)
|
|
138
|
+
if (limit === 0 && type === 'monthly') {
|
|
139
|
+
return getText('wallet-pass-gallery.monthlyLimitUnlimited', '无限制');
|
|
140
|
+
}
|
|
141
|
+
var templateKey = "wallet-pass-gallery.".concat(type, "LimitDesc");
|
|
142
|
+
var template = getText(templateKey, '');
|
|
143
|
+
return interpolateText(template, {
|
|
144
|
+
limit: limit
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
// Generate rule reset time text
|
|
149
|
+
var getRuleResetTime = function getRuleResetTime(type) {
|
|
150
|
+
var resetKey = "wallet-pass-gallery.".concat(type, "Reset");
|
|
151
|
+
return getText(resetKey, '');
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
// Default rules with localized text
|
|
155
|
+
var defaultRules = [{
|
|
156
|
+
type: 'daily',
|
|
157
|
+
limit: 3,
|
|
158
|
+
description: getRuleDescription('daily', 3),
|
|
159
|
+
resetTime: getRuleResetTime('daily')
|
|
160
|
+
}, {
|
|
161
|
+
type: 'weekly',
|
|
162
|
+
limit: 15,
|
|
163
|
+
description: getRuleDescription('weekly', 15),
|
|
164
|
+
resetTime: getRuleResetTime('weekly')
|
|
165
|
+
}, {
|
|
166
|
+
type: 'monthly',
|
|
167
|
+
limit: 60,
|
|
168
|
+
description: getRuleDescription('monthly', 60),
|
|
169
|
+
resetTime: getRuleResetTime('monthly')
|
|
170
|
+
}];
|
|
171
|
+
|
|
172
|
+
// Process rules to add localized descriptions
|
|
173
|
+
var processedRules = rules ? rules.map(function (rule) {
|
|
174
|
+
return _objectSpread(_objectSpread({}, rule), {}, {
|
|
175
|
+
description: getRuleDescription(rule.type, rule.limit),
|
|
176
|
+
resetTime: getRuleResetTime(rule.type)
|
|
177
|
+
});
|
|
178
|
+
}) : defaultRules;
|
|
179
|
+
var finalRules = processedRules;
|
|
180
|
+
var getRuleLabel = function getRuleLabel(type) {
|
|
181
|
+
switch (type) {
|
|
182
|
+
case 'daily':
|
|
183
|
+
return getText('wallet-pass-gallery.dailyLimit', '每日限制:');
|
|
184
|
+
case 'weekly':
|
|
185
|
+
return getText('wallet-pass-gallery.weeklyLimit', '每周限制:');
|
|
186
|
+
case 'monthly':
|
|
187
|
+
return getText('wallet-pass-gallery.monthlyLimit', '每月限制:');
|
|
188
|
+
default:
|
|
189
|
+
return getText('wallet-pass-gallery.dailyLimit', '限制:');
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
if (!creditsData) return null;
|
|
193
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
194
|
+
className: "pisell-wallet-pass-gallery_usage-rules ".concat(className),
|
|
195
|
+
style: style
|
|
196
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
197
|
+
className: "pisell-wallet-pass-gallery_usage-rules-title"
|
|
198
|
+
}, getText('wallet-pass-gallery.usageRules', '使用规则')), /*#__PURE__*/React.createElement(Text, {
|
|
199
|
+
className: "pisell-wallet-pass-gallery_usage-rules-subtitle"
|
|
200
|
+
}, getText('wallet-pass-gallery.usageRulesSubtitle', '请仔细阅读以下使用条件')), /*#__PURE__*/React.createElement("div", {
|
|
201
|
+
className: "pisell-wallet-pass-gallery_usage-rules-section"
|
|
202
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
203
|
+
className: "pisell-wallet-pass-gallery_usage-rules-section-title"
|
|
204
|
+
}, getText('wallet-pass-gallery.timeUsageLimits', '时间使用限制')), /*#__PURE__*/React.createElement("div", {
|
|
205
|
+
className: "pisell-wallet-pass-gallery_usage-rules-list"
|
|
206
|
+
}, finalRules.length > 0 ? finalRules.map(function (rule, index) {
|
|
207
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
208
|
+
key: index,
|
|
209
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item"
|
|
210
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
211
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item-content"
|
|
212
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
213
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item-main-line"
|
|
214
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
215
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item-label"
|
|
216
|
+
}, getRuleLabel(rule.type)), /*#__PURE__*/React.createElement(Text, {
|
|
217
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item-description"
|
|
218
|
+
}, rule.description)), rule.resetTime && /*#__PURE__*/React.createElement(Text, {
|
|
219
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item-reset"
|
|
220
|
+
}, rule.resetTime)));
|
|
221
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
222
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item"
|
|
223
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
224
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item-content"
|
|
225
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
226
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item-description"
|
|
227
|
+
}, getText('wallet-pass-gallery.monthlyLimitUnlimited', '无限制')))))), /*#__PURE__*/React.createElement("div", {
|
|
228
|
+
className: "pisell-wallet-pass-gallery_usage-rules-section"
|
|
229
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
230
|
+
className: "pisell-wallet-pass-gallery_usage-rules-section-title"
|
|
231
|
+
}, getText('wallet-pass-gallery.totalQuantityControl', '总量控制')), /*#__PURE__*/React.createElement("div", {
|
|
232
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item"
|
|
233
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
234
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item-content"
|
|
235
|
+
}, personalLimit && personalLimit.total > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
|
|
236
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item-label"
|
|
237
|
+
}, getText('wallet-pass-gallery.personalLimit', '个人限额:')), /*#__PURE__*/React.createElement(Text, {
|
|
238
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item-description"
|
|
239
|
+
}, interpolateText(getText('wallet-pass-gallery.personalLimitDesc', '您最多可使用此券{total}次(剩余{remaining}次)'), {
|
|
240
|
+
total: personalLimit.total,
|
|
241
|
+
remaining: personalLimit.remaining
|
|
242
|
+
})), /*#__PURE__*/React.createElement(Text, {
|
|
243
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item-note"
|
|
244
|
+
}, getText('wallet-pass-gallery.voucherExpireNote', '用完后此券将自动失效'))) : /*#__PURE__*/React.createElement(Text, {
|
|
245
|
+
className: "pisell-wallet-pass-gallery_usage-rules-item-description"
|
|
246
|
+
}, getText('wallet-pass-gallery.monthlyLimitUnlimited', '无限制'))))));
|
|
247
|
+
}
|
|
248
|
+
export default UsageRules;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
.pisell-wallet-pass-gallery_usage-rules {
|
|
2
|
+
padding: 16px;
|
|
3
|
+
background: #ffffff;
|
|
4
|
+
border-radius: 8px;
|
|
5
|
+
border: 1px solid #f0f0f0;
|
|
6
|
+
margin-top: 16px;
|
|
7
|
+
margin-bottom: 20px;
|
|
8
|
+
|
|
9
|
+
// 确保所有Text组件都是块级元素
|
|
10
|
+
.ant-typography {
|
|
11
|
+
display: block !important;
|
|
12
|
+
width: 100% !important;
|
|
13
|
+
margin-bottom: 0 !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-title {
|
|
17
|
+
font-size: 18px;
|
|
18
|
+
font-weight: 600;
|
|
19
|
+
color: #000000;
|
|
20
|
+
line-height: 24px;
|
|
21
|
+
margin-bottom: 8px;
|
|
22
|
+
display: block;
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-subtitle {
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
color: #6B7280;
|
|
29
|
+
line-height: 20px;
|
|
30
|
+
margin-bottom: 24px;
|
|
31
|
+
display: block;
|
|
32
|
+
width: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-section {
|
|
36
|
+
margin-bottom: 24px;
|
|
37
|
+
|
|
38
|
+
&:last-child {
|
|
39
|
+
margin-bottom: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&-title {
|
|
43
|
+
font-size: 16px;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
color: #6B7280;
|
|
46
|
+
line-height: 20px;
|
|
47
|
+
margin-bottom: 16px;
|
|
48
|
+
display: block;
|
|
49
|
+
width: 100%;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&-list {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
gap: 16px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-item {
|
|
60
|
+
position: relative;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: flex-start;
|
|
63
|
+
|
|
64
|
+
&::before {
|
|
65
|
+
content: '•';
|
|
66
|
+
color: #697281;
|
|
67
|
+
font-size: 16px;
|
|
68
|
+
line-height: 20px;
|
|
69
|
+
font-weight: bold;
|
|
70
|
+
margin-right: 8px;
|
|
71
|
+
flex-shrink: 0;
|
|
72
|
+
margin-top: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&-content {
|
|
76
|
+
flex: 1;
|
|
77
|
+
min-width: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&-main-line {
|
|
81
|
+
margin-bottom: 4px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&-label {
|
|
85
|
+
font-size: 14px;
|
|
86
|
+
font-weight: 600;
|
|
87
|
+
color: #000000;
|
|
88
|
+
line-height: 20px;
|
|
89
|
+
display: inline;
|
|
90
|
+
margin-right: 4px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&-description {
|
|
94
|
+
font-size: 14px;
|
|
95
|
+
color: #000000;
|
|
96
|
+
line-height: 20px;
|
|
97
|
+
display: inline;
|
|
98
|
+
word-wrap: break-word;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&-reset {
|
|
102
|
+
font-size: 14px;
|
|
103
|
+
color: #000000;
|
|
104
|
+
line-height: 20px;
|
|
105
|
+
display: block;
|
|
106
|
+
width: 100%;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&-note {
|
|
110
|
+
font-size: 14px;
|
|
111
|
+
color: #000000;
|
|
112
|
+
line-height: 20px;
|
|
113
|
+
margin-top: 4px;
|
|
114
|
+
display: block;
|
|
115
|
+
width: 100%;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// 响应式设计
|
|
122
|
+
@media (max-width: 768px) {
|
|
123
|
+
.pisell-wallet-pass-gallery_usage-rules {
|
|
124
|
+
padding: 12px;
|
|
125
|
+
margin-top: 12px;
|
|
126
|
+
|
|
127
|
+
&-title {
|
|
128
|
+
font-size: 16px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&-subtitle {
|
|
132
|
+
font-size: 13px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&-section {
|
|
136
|
+
margin-bottom: 20px;
|
|
137
|
+
|
|
138
|
+
&-title {
|
|
139
|
+
font-size: 15px;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&-item {
|
|
144
|
+
&::before {
|
|
145
|
+
font-size: 14px;
|
|
146
|
+
margin-right: 6px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&-label,
|
|
150
|
+
&-description,
|
|
151
|
+
&-reset,
|
|
152
|
+
&-note {
|
|
153
|
+
font-size: 13px;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|