@pisell/private-materials 6.3.29 → 6.3.31
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 +9 -1
- package/build/lowcode/preview.js +144 -144
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -2
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +267 -76
- package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/es/components/appointmentBooking/hooks.js +30 -30
- package/es/components/appointmentBooking/locales.js +9 -6
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +4 -1
- package/es/components/booking/components/footer/utils.js +62 -46
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +2 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
- package/es/components/booking/info/main.js +3 -2
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info2/index.js +3 -2
- package/es/components/booking/info2/service/contactInfoMode/index.js +93 -0
- package/es/components/booking/locales.js +9 -3
- package/es/components/booking/model.js +3 -0
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/index.d.ts +3 -0
- package/es/index.js +4 -1
- package/es/plus/clientName/index.js +18 -0
- package/es/plus/clientName/index.less +10 -0
- package/es/plus/clientName/type.js +1 -0
- package/es/plus/clientName/utils.js +18 -0
- package/es/plus/contactInfo/components/Avatar/index.js +30 -0
- package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
- package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/es/plus/contactInfo/index.js +198 -0
- package/es/plus/contactInfo/index.less +621 -0
- package/es/plus/contactInfo/locales.js +14 -0
- package/es/plus/contactInfo/types.js +1 -0
- package/es/plus/contactInfo/utils.js +50 -0
- package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
- package/es/plus/contactInfoModal/index.js +154 -0
- package/es/plus/contactInfoModal/index.less +19 -0
- package/es/plus/contactInfoModal/locales.js +65 -0
- package/es/pro/Login2.0/AuthModal.d.ts +143 -0
- package/es/pro/Login2.0/AuthModal.js +624 -0
- package/es/pro/Login2.0/Login2.d.ts +61 -0
- package/es/pro/Login2.0/Login2.js +2157 -0
- package/es/pro/Login2.0/Register2.d.ts +65 -0
- package/es/pro/Login2.0/Register2.js +1501 -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.js +207 -0
- package/es/pro/Login2.0/components/OAuthButtonGroup.js +55 -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.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.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 +993 -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.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.js +209 -0
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.js +35 -0
- package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +25 -0
- package/es/pro/Login2.0/steps/EmailLinkExpired.js +33 -0
- package/es/pro/Login2.0/steps/SetPassword.js +148 -0
- package/es/pro/Login2.0/steps/VerificationSuccess.js +35 -0
- package/es/pro/Login2.0/steps/VerifyingEmailLink.js +17 -0
- package/es/pro/Login2.0/steps/WaitEmailLink.js +54 -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.js +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +151 -13
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/lib/components/appointmentBooking/hooks.js +73 -35
- package/lib/components/appointmentBooking/locales.js +6 -3
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +4 -1
- package/lib/components/booking/components/footer/utils.js +70 -38
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +1 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
- package/lib/components/booking/info/main.js +5 -4
- package/lib/components/booking/info/model.js +5 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info2/index.js +5 -4
- package/lib/components/booking/info2/service/contactInfoMode/index.js +104 -0
- package/lib/components/booking/locales.js +9 -3
- package/lib/components/booking/model.js +3 -0
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +13 -0
- package/lib/plus/clientName/index.js +53 -0
- package/lib/plus/clientName/index.less +10 -0
- package/lib/plus/clientName/type.js +17 -0
- package/lib/plus/clientName/utils.js +43 -0
- package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/lib/plus/contactInfo/index.js +226 -0
- package/lib/plus/contactInfo/index.less +621 -0
- package/lib/plus/contactInfo/locales.js +38 -0
- package/lib/plus/contactInfo/types.js +17 -0
- package/lib/plus/contactInfo/utils.js +64 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
- package/lib/plus/contactInfoModal/index.js +138 -0
- package/lib/plus/contactInfoModal/index.less +19 -0
- package/lib/plus/contactInfoModal/locales.js +89 -0
- package/lib/pro/Login2.0/AuthModal.d.ts +143 -0
- package/lib/pro/Login2.0/AuthModal.js +498 -0
- package/lib/pro/Login2.0/Login2.d.ts +61 -0
- package/lib/pro/Login2.0/Login2.js +1468 -0
- package/lib/pro/Login2.0/Register2.d.ts +65 -0
- package/lib/pro/Login2.0/Register2.js +1062 -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.js +161 -0
- package/lib/pro/Login2.0/components/OAuthButtonGroup.js +87 -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.js +153 -0
- package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
- package/lib/pro/Login2.0/hooks/index.js +29 -0
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.js +140 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.js +149 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.js +51 -0
- package/lib/pro/Login2.0/index.js +45 -0
- package/lib/pro/Login2.0/index.less +993 -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.js +235 -0
- package/lib/pro/Login2.0/shared/types.d.ts +232 -0
- package/lib/pro/Login2.0/shared/types.js +17 -0
- package/lib/pro/Login2.0/steps/CodeInput.js +160 -0
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.js +46 -0
- package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +51 -0
- package/lib/pro/Login2.0/steps/EmailLinkExpired.js +51 -0
- package/lib/pro/Login2.0/steps/SetPassword.js +131 -0
- package/lib/pro/Login2.0/steps/VerificationSuccess.js +49 -0
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.js +41 -0
- package/lib/pro/Login2.0/steps/WaitEmailLink.js +67 -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.js +17 -0
- package/lowcode/authmodal/meta.ts +395 -0
- package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
- package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
- package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
- package/lowcode/contact-info/fragments/textStyle.ts +33 -0
- package/lowcode/contact-info/meta.ts +199 -0
- package/lowcode/contact-info-modal/meta.ts +98 -0
- package/lowcode/login2/CONFIG.md +447 -0
- package/lowcode/login2/TEST_CONFIG.md +324 -0
- package/lowcode/login2/VERIFICATION_METHODS.md +364 -0
- package/lowcode/login2/meta.ts +560 -0
- package/lowcode/login2/snippets.ts +124 -0
- package/lowcode/register2/meta.ts +562 -0
- package/lowcode/register2/snippets.ts +257 -0
- package/package.json +7 -5
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/hooks.d.ts +0 -106
- package/es/components/appointmentBooking/locales.d.ts +0 -360
- package/es/components/booking/components/footer/utils.d.ts +0 -41
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -43
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/es/components/booking/info/main.d.ts +0 -12
- package/es/components/booking/info/model.d.ts +0 -14
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/booking/info/service/editService/index.d.ts +0 -7
- package/es/components/booking/info2/index.d.ts +0 -12
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/locales.d.ts +0 -837
- package/es/components/booking/model.d.ts +0 -116
- package/es/components/eftposPay/component/fail/index.d.ts +0 -3
- package/es/components/index.d.ts +0 -22
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +0 -9
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/ruleSetting/locales.d.ts +0 -48
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/es/components/ticketBooking/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/index.d.ts +0 -47
- package/es/plus/productSelect/index.d.ts +0 -32
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/hooks.d.ts +0 -106
- package/lib/components/appointmentBooking/locales.d.ts +0 -360
- package/lib/components/booking/components/footer/utils.d.ts +0 -41
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -43
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/lib/components/booking/info/main.d.ts +0 -12
- package/lib/components/booking/info/model.d.ts +0 -14
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/booking/info/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info2/index.d.ts +0 -12
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/locales.d.ts +0 -837
- package/lib/components/booking/model.d.ts +0 -116
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
- package/lib/components/index.d.ts +0 -22
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +0 -9
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/ruleSetting/locales.d.ts +0 -48
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/lib/components/ticketBooking/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/index.d.ts +0 -47
- package/lib/plus/productSelect/index.d.ts +0 -32
|
@@ -0,0 +1,160 @@
|
|
|
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/pro/Login2.0/steps/CodeInput.tsx
|
|
30
|
+
var CodeInput_exports = {};
|
|
31
|
+
__export(CodeInput_exports, {
|
|
32
|
+
default: () => CodeInput_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(CodeInput_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_utils = require("@pisell/utils");
|
|
38
|
+
var import_iconfont = __toESM(require("@pisell/materials/src/components/iconfont"));
|
|
39
|
+
function CodeInput({
|
|
40
|
+
flowData,
|
|
41
|
+
codeLength = 4,
|
|
42
|
+
onSubmit,
|
|
43
|
+
onResend,
|
|
44
|
+
onBack,
|
|
45
|
+
countdown = 0,
|
|
46
|
+
loading = false,
|
|
47
|
+
error,
|
|
48
|
+
onClearError
|
|
49
|
+
}) {
|
|
50
|
+
const [code, setCode] = (0, import_react.useState)(Array(codeLength).fill(""));
|
|
51
|
+
const inputRefs = (0, import_react.useRef)([]);
|
|
52
|
+
const canResend = countdown === 0;
|
|
53
|
+
(0, import_react.useEffect)(() => {
|
|
54
|
+
var _a;
|
|
55
|
+
(_a = inputRefs.current[0]) == null ? void 0 : _a.focus();
|
|
56
|
+
}, []);
|
|
57
|
+
(0, import_react.useEffect)(() => {
|
|
58
|
+
var _a;
|
|
59
|
+
if (error) {
|
|
60
|
+
setCode(Array(codeLength).fill(""));
|
|
61
|
+
(_a = inputRefs.current[0]) == null ? void 0 : _a.focus();
|
|
62
|
+
}
|
|
63
|
+
}, [error, codeLength]);
|
|
64
|
+
const handleInputChange = (index, value) => {
|
|
65
|
+
var _a;
|
|
66
|
+
if (!/^\d*$/.test(value)) return;
|
|
67
|
+
if (value && error && onClearError) {
|
|
68
|
+
onClearError();
|
|
69
|
+
}
|
|
70
|
+
const newCode = [...code];
|
|
71
|
+
newCode[index] = value.slice(-1);
|
|
72
|
+
setCode(newCode);
|
|
73
|
+
if (value && index < codeLength - 1) {
|
|
74
|
+
(_a = inputRefs.current[index + 1]) == null ? void 0 : _a.focus();
|
|
75
|
+
}
|
|
76
|
+
if (newCode.every((digit) => digit !== "")) {
|
|
77
|
+
const fullCode = newCode.join("");
|
|
78
|
+
onSubmit == null ? void 0 : onSubmit(fullCode);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const handleKeyDown = (index, e) => {
|
|
82
|
+
var _a;
|
|
83
|
+
if (e.key === "Backspace" && !code[index] && index > 0) {
|
|
84
|
+
(_a = inputRefs.current[index - 1]) == null ? void 0 : _a.focus();
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const handlePaste = (e) => {
|
|
88
|
+
e.preventDefault();
|
|
89
|
+
const pastedData = e.clipboardData.getData("text").trim();
|
|
90
|
+
if (!/^\d+$/.test(pastedData)) return;
|
|
91
|
+
if (pastedData && error && onClearError) {
|
|
92
|
+
onClearError();
|
|
93
|
+
}
|
|
94
|
+
const newCode = pastedData.slice(0, codeLength).split("");
|
|
95
|
+
while (newCode.length < codeLength) {
|
|
96
|
+
newCode.push("");
|
|
97
|
+
}
|
|
98
|
+
setCode(newCode);
|
|
99
|
+
if (newCode.every((digit) => digit !== "")) {
|
|
100
|
+
onSubmit == null ? void 0 : onSubmit(newCode.join(""));
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
const handleSubmit = () => {
|
|
104
|
+
const fullCode = code.join("");
|
|
105
|
+
if (fullCode.length === codeLength) {
|
|
106
|
+
onSubmit == null ? void 0 : onSubmit(fullCode);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
const title = flowData.accountType === "email" ? import_utils.locales.getText("pisell-register2-check-email-title") : import_utils.locales.getText("pisell-register2-check-phone-title");
|
|
110
|
+
const description = flowData.accountType === "email" ? import_utils.locales.getText("pisell-register2-check-email-desc") : import_utils.locales.getText("pisell-register2-check-phone-desc");
|
|
111
|
+
const displayAccount = typeof flowData.account === "object" && "phone" in flowData.account ? `+${flowData.account.country_calling_code}${flowData.account.phone}` : flowData.account;
|
|
112
|
+
const noReceiveText = flowData.accountType === "email" ? import_utils.locales.getText("pisell-register2-no-email-received") : import_utils.locales.getText("pisell-register2-no-message-received");
|
|
113
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-container code-input-page" }, /* @__PURE__ */ import_react.default.createElement("button", { className: "back-button-top", onClick: onBack, "aria-label": "Go back" }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-arrow-left" })), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ import_react.default.createElement("h2", { className: "register-step-title" }, title), /* @__PURE__ */ import_react.default.createElement("p", { className: "register-step-desc" }, description, /* @__PURE__ */ import_react.default.createElement("br", null), displayAccount), /* @__PURE__ */ import_react.default.createElement("div", { className: "code-input-group", onPaste: handlePaste }, code.map((digit, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
114
|
+
"input",
|
|
115
|
+
{
|
|
116
|
+
key: index,
|
|
117
|
+
ref: (el) => inputRefs.current[index] = el,
|
|
118
|
+
type: "text",
|
|
119
|
+
inputMode: "numeric",
|
|
120
|
+
maxLength: 1,
|
|
121
|
+
className: `code-input-box ${digit ? "has-value" : ""} ${error ? "has-error" : ""}`,
|
|
122
|
+
value: digit,
|
|
123
|
+
onChange: (e) => handleInputChange(index, e.target.value),
|
|
124
|
+
onKeyDown: (e) => handleKeyDown(index, e),
|
|
125
|
+
disabled: loading
|
|
126
|
+
}
|
|
127
|
+
))), error && /* @__PURE__ */ import_react.default.createElement("div", { className: "code-input-error" }, error), /* @__PURE__ */ import_react.default.createElement(
|
|
128
|
+
import_materials.Button,
|
|
129
|
+
{
|
|
130
|
+
type: "primary",
|
|
131
|
+
size: "large",
|
|
132
|
+
block: true,
|
|
133
|
+
onClick: handleSubmit,
|
|
134
|
+
loading,
|
|
135
|
+
disabled: code.some((digit) => !digit),
|
|
136
|
+
className: "register-submit-btn"
|
|
137
|
+
},
|
|
138
|
+
import_utils.locales.getText("pisell-common-verify")
|
|
139
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
140
|
+
import_materials.Button,
|
|
141
|
+
{
|
|
142
|
+
type: "default",
|
|
143
|
+
size: "large",
|
|
144
|
+
block: true,
|
|
145
|
+
onClick: onBack,
|
|
146
|
+
className: "register-back-btn"
|
|
147
|
+
},
|
|
148
|
+
import_utils.locales.getText("pisell-common-back")
|
|
149
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-resend-section" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "resend-text" }, noReceiveText, " "), /* @__PURE__ */ import_react.default.createElement(
|
|
150
|
+
"button",
|
|
151
|
+
{
|
|
152
|
+
className: "resend-link",
|
|
153
|
+
onClick: onResend,
|
|
154
|
+
disabled: !canResend
|
|
155
|
+
},
|
|
156
|
+
import_utils.locales.getText("pisell-common-resend"),
|
|
157
|
+
countdown > 0 && ` (${countdown} s)`
|
|
158
|
+
))));
|
|
159
|
+
}
|
|
160
|
+
var CodeInput_default = CodeInput;
|
|
@@ -0,0 +1,46 @@
|
|
|
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/pro/Login2.0/steps/EmailAlreadyRegistered.tsx
|
|
30
|
+
var EmailAlreadyRegistered_exports = {};
|
|
31
|
+
__export(EmailAlreadyRegistered_exports, {
|
|
32
|
+
default: () => EmailAlreadyRegistered_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(EmailAlreadyRegistered_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
37
|
+
var import_iconfont = __toESM(require("@pisell/materials/src/components/iconfont"));
|
|
38
|
+
function EmailAlreadyRegistered({
|
|
39
|
+
flowData,
|
|
40
|
+
onGoToLogin,
|
|
41
|
+
onBack
|
|
42
|
+
}) {
|
|
43
|
+
const message = flowData.accountType === "email" ? import_utils.locales.getText("pisell-register2-email-already-registered") : import_utils.locales.getText("pisell-register2-phone-already-registered");
|
|
44
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-container email-already-registered-page" }, /* @__PURE__ */ import_react.default.createElement("button", { className: "back-button-top", onClick: onBack, "aria-label": "Go back" }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-arrow-left" })), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ import_react.default.createElement("p", { className: "email-already-registered-message" }, message), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-login-prompt" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "prompt-text" }, import_utils.locales.getText("pisell-register2-have-account"), " "), /* @__PURE__ */ import_react.default.createElement("button", { className: "login-link", onClick: onGoToLogin }, import_utils.locales.getText("pisell-register2-login-link")))));
|
|
45
|
+
}
|
|
46
|
+
var EmailAlreadyRegistered_default = EmailAlreadyRegistered;
|
|
@@ -0,0 +1,51 @@
|
|
|
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/pro/Login2.0/steps/EmailLinkAlreadyUsed.tsx
|
|
30
|
+
var EmailLinkAlreadyUsed_exports = {};
|
|
31
|
+
__export(EmailLinkAlreadyUsed_exports, {
|
|
32
|
+
default: () => EmailLinkAlreadyUsed_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(EmailLinkAlreadyUsed_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_utils = require("@pisell/utils");
|
|
38
|
+
function EmailLinkAlreadyUsed({ onGoToLogin }) {
|
|
39
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-container email-link-already-used-page" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ import_react.default.createElement("h2", { className: "email-link-result-title" }, import_utils.locales.getText("pisell-register2-link-already-used-title")), /* @__PURE__ */ import_react.default.createElement("p", { className: "email-link-result-desc" }, import_utils.locales.getText("pisell-register2-link-already-used-desc")), /* @__PURE__ */ import_react.default.createElement(
|
|
40
|
+
import_materials.Button,
|
|
41
|
+
{
|
|
42
|
+
type: "primary",
|
|
43
|
+
size: "large",
|
|
44
|
+
block: true,
|
|
45
|
+
onClick: onGoToLogin,
|
|
46
|
+
className: "register-submit-btn"
|
|
47
|
+
},
|
|
48
|
+
import_utils.locales.getText("pisell-register2-login-button")
|
|
49
|
+
)));
|
|
50
|
+
}
|
|
51
|
+
var EmailLinkAlreadyUsed_default = EmailLinkAlreadyUsed;
|
|
@@ -0,0 +1,51 @@
|
|
|
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/pro/Login2.0/steps/EmailLinkExpired.tsx
|
|
30
|
+
var EmailLinkExpired_exports = {};
|
|
31
|
+
__export(EmailLinkExpired_exports, {
|
|
32
|
+
default: () => EmailLinkExpired_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(EmailLinkExpired_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_utils = require("@pisell/utils");
|
|
38
|
+
function EmailLinkExpired({ onBackToRegistration, onGoToLogin }) {
|
|
39
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-container email-link-expired-page" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ import_react.default.createElement("h2", { className: "email-link-result-title" }, import_utils.locales.getText("pisell-register2-link-expired-title")), /* @__PURE__ */ import_react.default.createElement("p", { className: "email-link-result-desc" }, import_utils.locales.getText("pisell-register2-link-expired-desc")), /* @__PURE__ */ import_react.default.createElement(
|
|
40
|
+
import_materials.Button,
|
|
41
|
+
{
|
|
42
|
+
type: "primary",
|
|
43
|
+
size: "large",
|
|
44
|
+
block: true,
|
|
45
|
+
onClick: onBackToRegistration,
|
|
46
|
+
className: "register-submit-btn"
|
|
47
|
+
},
|
|
48
|
+
import_utils.locales.getText("pisell-register2-back-to-registration")
|
|
49
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-footer-prompt" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "prompt-text" }, import_utils.locales.getText("pisell-register2-have-account"), " "), /* @__PURE__ */ import_react.default.createElement("button", { className: "prompt-link", onClick: onGoToLogin }, import_utils.locales.getText("pisell-register2-login-link")))));
|
|
50
|
+
}
|
|
51
|
+
var EmailLinkExpired_default = EmailLinkExpired;
|
|
@@ -0,0 +1,131 @@
|
|
|
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/pro/Login2.0/steps/SetPassword.tsx
|
|
30
|
+
var SetPassword_exports = {};
|
|
31
|
+
__export(SetPassword_exports, {
|
|
32
|
+
default: () => SetPassword_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(SetPassword_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_materials = require("@pisell/materials");
|
|
38
|
+
var import_icons = require("@ant-design/icons");
|
|
39
|
+
var import_utils = require("@pisell/utils");
|
|
40
|
+
var import_usePasswordValidationRules = __toESM(require("../hooks/usePasswordValidationRules"));
|
|
41
|
+
function SetPassword({
|
|
42
|
+
flowData,
|
|
43
|
+
onSubmit,
|
|
44
|
+
onBack,
|
|
45
|
+
loading = false,
|
|
46
|
+
passwordRules = {
|
|
47
|
+
minLength: 8,
|
|
48
|
+
requireNumber: true
|
|
49
|
+
},
|
|
50
|
+
scenario = "create"
|
|
51
|
+
}) {
|
|
52
|
+
const [form] = import_antd.Form.useForm();
|
|
53
|
+
const [showPassword, setShowPassword] = (0, import_react.useState)(false);
|
|
54
|
+
const [showConfirmPassword, setShowConfirmPassword] = (0, import_react.useState)(false);
|
|
55
|
+
const handleSubmit = async () => {
|
|
56
|
+
try {
|
|
57
|
+
const values = await form.validateFields();
|
|
58
|
+
await (onSubmit == null ? void 0 : onSubmit(values.password, values.confirmPassword));
|
|
59
|
+
} catch (error) {
|
|
60
|
+
if (error.errorFields) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
import_antd.message.error((error == null ? void 0 : error.message) || import_utils.locales.getText("pisell-set-password-failed"));
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const passwordValidationRules = (0, import_usePasswordValidationRules.default)(passwordRules, {
|
|
67
|
+
translate: import_utils.locales.getText,
|
|
68
|
+
fallbackMinLength: 8,
|
|
69
|
+
messageKeys: {
|
|
70
|
+
required: "pisell-set-password-required",
|
|
71
|
+
minLength: "pisell-set-password-min-length",
|
|
72
|
+
requireUppercase: "pisell-set-password-require-uppercase",
|
|
73
|
+
requireLowercase: "pisell-set-password-require-lowercase",
|
|
74
|
+
requireNumber: "pisell-set-password-require-number",
|
|
75
|
+
requireSpecialCharacters: "pisell-set-password-require-special",
|
|
76
|
+
summary: "pisell-set-password-must-contain"
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-container" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ import_react.default.createElement("h2", { className: "register-step-title" }, scenario === "create" ? import_utils.locales.getText("pisell-set-password-create-title") : import_utils.locales.getText("pisell-set-password-reset-title")), /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { form, layout: "vertical", className: "password-set-form" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "password", rules: passwordValidationRules }, /* @__PURE__ */ import_react.default.createElement(
|
|
80
|
+
import_materials.Input.Password,
|
|
81
|
+
{
|
|
82
|
+
size: "large",
|
|
83
|
+
placeholder: import_utils.locales.getText("pisell-set-password-placeholder"),
|
|
84
|
+
className: "password-input",
|
|
85
|
+
autoComplete: "new-password",
|
|
86
|
+
iconRender: (visible) => visible ? /* @__PURE__ */ import_react.default.createElement(import_icons.EyeOutlined, null) : /* @__PURE__ */ import_react.default.createElement(import_icons.EyeInvisibleOutlined, null)
|
|
87
|
+
}
|
|
88
|
+
)), /* @__PURE__ */ import_react.default.createElement(
|
|
89
|
+
import_antd.Form.Item,
|
|
90
|
+
{
|
|
91
|
+
name: "confirmPassword",
|
|
92
|
+
dependencies: ["password"],
|
|
93
|
+
rules: [
|
|
94
|
+
{
|
|
95
|
+
required: true,
|
|
96
|
+
message: import_utils.locales.getText("pisell-set-password-confirm-required")
|
|
97
|
+
},
|
|
98
|
+
({ getFieldValue }) => ({
|
|
99
|
+
validator(_, value) {
|
|
100
|
+
if (!value || getFieldValue("password") === value) {
|
|
101
|
+
return Promise.resolve();
|
|
102
|
+
}
|
|
103
|
+
return Promise.reject(new Error(import_utils.locales.getText("pisell-set-password-not-match")));
|
|
104
|
+
}
|
|
105
|
+
})
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
109
|
+
import_materials.Input.Password,
|
|
110
|
+
{
|
|
111
|
+
size: "large",
|
|
112
|
+
placeholder: import_utils.locales.getText("pisell-set-password-confirm-placeholder"),
|
|
113
|
+
className: "password-input",
|
|
114
|
+
autoComplete: "new-password",
|
|
115
|
+
iconRender: (visible) => visible ? /* @__PURE__ */ import_react.default.createElement(import_icons.EyeOutlined, null) : /* @__PURE__ */ import_react.default.createElement(import_icons.EyeInvisibleOutlined, null)
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
119
|
+
import_materials.Button,
|
|
120
|
+
{
|
|
121
|
+
type: "primary",
|
|
122
|
+
size: "large",
|
|
123
|
+
block: true,
|
|
124
|
+
onClick: handleSubmit,
|
|
125
|
+
loading,
|
|
126
|
+
className: "register-submit-btn"
|
|
127
|
+
},
|
|
128
|
+
scenario === "create" ? import_utils.locales.getText("pisell-set-password-submit") : import_utils.locales.getText("pisell-common-confirm")
|
|
129
|
+
))));
|
|
130
|
+
}
|
|
131
|
+
var SetPassword_default = SetPassword;
|
|
@@ -0,0 +1,49 @@
|
|
|
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/pro/Login2.0/steps/VerificationSuccess.tsx
|
|
30
|
+
var VerificationSuccess_exports = {};
|
|
31
|
+
__export(VerificationSuccess_exports, {
|
|
32
|
+
default: () => VerificationSuccess_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(VerificationSuccess_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
37
|
+
function VerificationSuccess({ flowData }) {
|
|
38
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-container" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "success-icon-wrapper" }, /* @__PURE__ */ import_react.default.createElement("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none" }, /* @__PURE__ */ import_react.default.createElement("circle", { cx: "32", cy: "32", r: "32", fill: "#10B981", fillOpacity: "0.1" }), /* @__PURE__ */ import_react.default.createElement(
|
|
39
|
+
"path",
|
|
40
|
+
{
|
|
41
|
+
d: "M22 32L28 38L42 24",
|
|
42
|
+
stroke: "#10B981",
|
|
43
|
+
strokeWidth: "3",
|
|
44
|
+
strokeLinecap: "round",
|
|
45
|
+
strokeLinejoin: "round"
|
|
46
|
+
}
|
|
47
|
+
))), /* @__PURE__ */ import_react.default.createElement("h2", { className: "register-step-title" }, import_utils.locales.getText("pisell-verification-success-title"))));
|
|
48
|
+
}
|
|
49
|
+
var VerificationSuccess_default = VerificationSuccess;
|
|
@@ -0,0 +1,41 @@
|
|
|
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/pro/Login2.0/steps/VerifyingEmailLink.tsx
|
|
30
|
+
var VerifyingEmailLink_exports = {};
|
|
31
|
+
__export(VerifyingEmailLink_exports, {
|
|
32
|
+
default: () => VerifyingEmailLink_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(VerifyingEmailLink_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
37
|
+
function VerifyingEmailLink({ loadingText }) {
|
|
38
|
+
const text = loadingText || import_utils.locales.getText("pisell-register2-verifying-email");
|
|
39
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-container verifying-email-link-page" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ import_react.default.createElement("p", { className: "verifying-text" }, text)));
|
|
40
|
+
}
|
|
41
|
+
var VerifyingEmailLink_default = VerifyingEmailLink;
|
|
@@ -0,0 +1,67 @@
|
|
|
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/pro/Login2.0/steps/WaitEmailLink.tsx
|
|
30
|
+
var WaitEmailLink_exports = {};
|
|
31
|
+
__export(WaitEmailLink_exports, {
|
|
32
|
+
default: () => WaitEmailLink_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(WaitEmailLink_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_utils = require("@pisell/utils");
|
|
37
|
+
var import_iconfont = __toESM(require("@pisell/materials/src/components/iconfont"));
|
|
38
|
+
function WaitEmailLink({
|
|
39
|
+
flowData,
|
|
40
|
+
onResend,
|
|
41
|
+
onBack,
|
|
42
|
+
onEditEmail,
|
|
43
|
+
countdown = 0,
|
|
44
|
+
verificationMethod
|
|
45
|
+
}) {
|
|
46
|
+
const canResend = countdown === 0;
|
|
47
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-container" }, onBack && /* @__PURE__ */ import_react.default.createElement("button", { className: "back-button-top", onClick: onBack, "aria-label": "Go back" }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-arrow-left" })), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-title-verify-email" }, import_utils.locales.getText("pisell-register2-verify-email-title")), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-desc-verify-email" }, import_utils.locales.getText("pisell-register2-verify-email-desc")), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-email-display" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "email-text" }, flowData.account), onEditEmail && /* @__PURE__ */ import_react.default.createElement(
|
|
48
|
+
"button",
|
|
49
|
+
{
|
|
50
|
+
className: "edit-email-btn",
|
|
51
|
+
onClick: onEditEmail,
|
|
52
|
+
"aria-label": "Edit email"
|
|
53
|
+
},
|
|
54
|
+
/* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-edit-05", style: { fontSize: "20px", color: "#7F56D9" } })
|
|
55
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-resend-section" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "resend-text" }, import_utils.locales.getText("pisell-register2-no-link-received"), " "), /* @__PURE__ */ import_react.default.createElement(
|
|
56
|
+
"button",
|
|
57
|
+
{
|
|
58
|
+
className: "resend-link",
|
|
59
|
+
onClick: onResend,
|
|
60
|
+
disabled: !canResend
|
|
61
|
+
},
|
|
62
|
+
import_utils.locales.getText("pisell-common-resend"),
|
|
63
|
+
" ",
|
|
64
|
+
countdown > 0 && `(${countdown} s)`
|
|
65
|
+
))));
|
|
66
|
+
}
|
|
67
|
+
var WaitEmailLink_default = WaitEmailLink;
|