@tap-payments/auth-jsconnect 1.0.36 → 1.0.37
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/LICENSE +21 -21
- package/build/@types/app.d.ts +179 -179
- package/build/@types/app.js +11 -11
- package/build/@types/form.d.ts +52 -52
- package/build/@types/form.js +1 -1
- package/build/@types/index.d.ts +4 -4
- package/build/@types/index.js +4 -4
- package/build/@types/redux.d.ts +15 -15
- package/build/@types/redux.js +1 -1
- package/build/@types/theme.d.ts +14 -14
- package/build/@types/theme.js +15 -15
- package/build/api/account.d.ts +15 -15
- package/build/api/account.js +9 -9
- package/build/api/auth.d.ts +40 -40
- package/build/api/auth.js +13 -13
- package/build/api/availabilityServices.d.ts +12 -12
- package/build/api/availabilityServices.js +13 -13
- package/build/api/axios.d.ts +4 -4
- package/build/api/axios.js +44 -44
- package/build/api/country.d.ts +5 -5
- package/build/api/country.js +13 -13
- package/build/api/data.d.ts +6 -6
- package/build/api/data.js +17 -17
- package/build/api/entity.d.ts +20 -20
- package/build/api/entity.js +9 -9
- package/build/api/firebase.d.ts +4 -4
- package/build/api/firebase.js +9 -9
- package/build/api/index.d.ts +54 -54
- package/build/api/index.js +25 -25
- package/build/api/ip.d.ts +4 -4
- package/build/api/ip.js +9 -9
- package/build/api/lead.d.ts +91 -91
- package/build/api/lead.js +37 -37
- package/build/api/operator.d.ts +12 -12
- package/build/api/operator.js +9 -9
- package/build/app/rootReducer.d.ts +6 -6
- package/build/app/rootReducer.js +9 -9
- package/build/app/settings.d.ts +36 -36
- package/build/app/settings.js +252 -252
- package/build/app/store.d.ts +13 -13
- package/build/app/store.js +11 -11
- package/build/assets/locales/ar.json +215 -215
- package/build/assets/locales/en.json +229 -229
- package/build/components/AnimationFlow/AnimationFlow.d.ts +9 -9
- package/build/components/AnimationFlow/AnimationFlow.js +28 -28
- package/build/components/AnimationFlow/BottomSheet.d.ts +9 -9
- package/build/components/AnimationFlow/BottomSheet.js +59 -59
- package/build/components/AnimationFlow/Dialog.d.ts +10 -10
- package/build/components/AnimationFlow/Dialog.js +103 -103
- package/build/components/AnimationFlow/index.d.ts +2 -2
- package/build/components/AnimationFlow/index.js +2 -2
- package/build/components/Button/Button.d.ts +9 -9
- package/build/components/Button/Button.js +63 -63
- package/build/components/Button/index.d.ts +4 -4
- package/build/components/Button/index.js +2 -2
- package/build/components/CheckBox/CheckBox.d.ts +5 -5
- package/build/components/CheckBox/CheckBox.js +39 -39
- package/build/components/CheckBox/index.d.ts +4 -4
- package/build/components/CheckBox/index.js +2 -2
- package/build/components/Collapse/Collapse.d.ts +5 -5
- package/build/components/Collapse/Collapse.js +28 -28
- package/build/components/Collapse/index.d.ts +3 -3
- package/build/components/Collapse/index.js +2 -2
- package/build/components/DatePicker/DatePicker.d.ts +14 -14
- package/build/components/DatePicker/DatePicker.js +101 -101
- package/build/components/DatePicker/index.d.ts +3 -3
- package/build/components/DatePicker/index.js +2 -2
- package/build/components/ExpandIcon/ExpandIcon.d.ts +7 -7
- package/build/components/ExpandIcon/ExpandIcon.js +24 -24
- package/build/components/ExpandIcon/index.d.ts +2 -2
- package/build/components/ExpandIcon/index.js +2 -2
- package/build/components/Footer/Footer.d.ts +15 -15
- package/build/components/Footer/Footer.js +99 -99
- package/build/components/Footer/index.d.ts +4 -4
- package/build/components/Footer/index.js +2 -2
- package/build/components/Form/Form.d.ts +11 -11
- package/build/components/Form/Form.js +38 -38
- package/build/components/Form/index.d.ts +3 -3
- package/build/components/Form/index.js +2 -2
- package/build/components/Icon/Icon.d.ts +11 -11
- package/build/components/Icon/Icon.js +26 -26
- package/build/components/Icon/index.d.ts +3 -3
- package/build/components/Icon/index.js +2 -2
- package/build/components/Input/Input.d.ts +19 -19
- package/build/components/Input/Input.js +84 -84
- package/build/components/Input/index.d.ts +3 -3
- package/build/components/Input/index.js +2 -2
- package/build/components/InputAdornment/InputAdornment.d.ts +10 -10
- package/build/components/InputAdornment/InputAdornment.js +46 -46
- package/build/components/InputAdornment/index.d.ts +3 -3
- package/build/components/InputAdornment/index.js +2 -2
- package/build/components/List/List.d.ts +5 -5
- package/build/components/List/List.js +52 -52
- package/build/components/List/index.d.ts +3 -3
- package/build/components/List/index.js +2 -2
- package/build/components/ListItem/ListItem.d.ts +5 -5
- package/build/components/ListItem/ListItem.js +35 -35
- package/build/components/ListItem/index.d.ts +3 -3
- package/build/components/ListItem/index.js +2 -2
- package/build/components/Loader/Loader.d.ts +23 -23
- package/build/components/Loader/Loader.js +41 -41
- package/build/components/Loader/index.d.ts +4 -4
- package/build/components/Loader/index.js +2 -2
- package/build/components/LogoBadge/LogoBadge.d.ts +7 -7
- package/build/components/LogoBadge/LogoBadge.js +61 -61
- package/build/components/LogoBadge/index.d.ts +3 -3
- package/build/components/LogoBadge/index.js +2 -2
- package/build/components/OTPField/OTPField.d.ts +17 -17
- package/build/components/OTPField/OTPField.js +45 -45
- package/build/components/OTPField/index.d.ts +4 -4
- package/build/components/OTPField/index.js +2 -2
- package/build/components/OTPTimer/OTPTimer.d.ts +14 -14
- package/build/components/OTPTimer/OTPTimer.js +68 -68
- package/build/components/OTPTimer/index.d.ts +4 -4
- package/build/components/OTPTimer/index.js +2 -2
- package/build/components/ProgressBar/ProgressBar.d.ts +6 -6
- package/build/components/ProgressBar/ProgressBar.js +45 -45
- package/build/components/ProgressBar/index.d.ts +4 -4
- package/build/components/ProgressBar/index.js +2 -2
- package/build/components/Providers/ReduxProvider.d.ts +7 -7
- package/build/components/Providers/ReduxProvider.js +17 -17
- package/build/components/Providers/ThemeProvider.d.ts +8 -8
- package/build/components/Providers/ThemeProvider.js +22 -22
- package/build/components/Providers/index.d.ts +3 -3
- package/build/components/Providers/index.js +3 -3
- package/build/components/Radio/Radio.d.ts +5 -5
- package/build/components/Radio/Radio.js +31 -31
- package/build/components/Radio/index.d.ts +3 -3
- package/build/components/Radio/index.js +2 -2
- package/build/components/RadioGroup/RadioGroup.d.ts +5 -5
- package/build/components/RadioGroup/RadioGroup.js +41 -41
- package/build/components/RadioGroup/index.d.ts +3 -3
- package/build/components/RadioGroup/index.js +2 -2
- package/build/components/RadioLabel/RadioLabel.d.ts +7 -7
- package/build/components/RadioLabel/RadioLabel.js +34 -34
- package/build/components/RadioLabel/index.d.ts +3 -3
- package/build/components/RadioLabel/index.js +2 -2
- package/build/components/SimpleList/SimpleList.d.ts +18 -18
- package/build/components/SimpleList/SimpleList.js +100 -100
- package/build/components/SimpleList/index.d.ts +3 -3
- package/build/components/SimpleList/index.js +2 -2
- package/build/components/Slide/Slide.d.ts +6 -6
- package/build/components/Slide/Slide.js +30 -30
- package/build/components/Slide/index.d.ts +3 -3
- package/build/components/Slide/index.js +2 -2
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +14 -14
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +86 -86
- package/build/components/SocialMediaGroup/index.d.ts +3 -3
- package/build/components/SocialMediaGroup/index.js +2 -2
- package/build/components/Text/Text.d.ts +5 -5
- package/build/components/Text/Text.js +35 -35
- package/build/components/Text/index.d.ts +3 -3
- package/build/components/Text/index.js +2 -2
- package/build/components/ToggleButton/ToggleButton.d.ts +5 -5
- package/build/components/ToggleButton/ToggleButton.js +44 -44
- package/build/components/ToggleButton/index.d.ts +3 -3
- package/build/components/ToggleButton/index.js +2 -2
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +5 -5
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +37 -37
- package/build/components/ToggleButtonGroup/index.d.ts +3 -3
- package/build/components/ToggleButtonGroup/index.js +2 -2
- package/build/components/Tooltip/Tooltip.d.ts +10 -10
- package/build/components/Tooltip/Tooltip.js +44 -44
- package/build/components/Tooltip/index.d.ts +3 -3
- package/build/components/Tooltip/index.js +2 -2
- package/build/components/Warning/Warning.d.ts +13 -13
- package/build/components/Warning/Warning.js +53 -53
- package/build/components/Warning/index.d.ts +4 -4
- package/build/components/Warning/index.js +2 -2
- package/build/constants/api.d.ts +21 -21
- package/build/constants/api.js +40 -40
- package/build/constants/app.d.ts +94 -94
- package/build/constants/app.js +243 -243
- package/build/constants/assets.d.ts +36 -36
- package/build/constants/assets.js +36 -36
- package/build/constants/dummy.d.ts +343 -343
- package/build/constants/dummy.js +6434 -6434
- package/build/constants/index.d.ts +5 -5
- package/build/constants/index.js +5 -5
- package/build/constants/validation.d.ts +8 -8
- package/build/constants/validation.js +8 -8
- package/build/features/app/business/businessStore.d.ts +98 -98
- package/build/features/app/business/businessStore.js +639 -636
- package/build/features/app/connect/connectStore.d.ts +86 -86
- package/build/features/app/connect/connectStore.js +666 -666
- package/build/features/bank/Bank.d.ts +6 -6
- package/build/features/bank/Bank.js +48 -48
- package/build/features/bank/index.d.ts +1 -1
- package/build/features/bank/index.js +1 -1
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +5 -5
- package/build/features/bank/screens/BankDetails/BankDetails.js +57 -57
- package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -3
- package/build/features/bank/screens/BankDetails/BankName.js +32 -32
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +5 -5
- package/build/features/bank/screens/BankDetails/Beneficiary.js +34 -34
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +5 -5
- package/build/features/bank/screens/BankDetails/IBAN.js +35 -35
- package/build/features/bank/screens/BankDetails/index.d.ts +3 -3
- package/build/features/bank/screens/BankDetails/index.js +2 -2
- package/build/features/bank/screens/BankDetails/validation.d.ts +14 -14
- package/build/features/bank/screens/BankDetails/validation.js +15 -15
- package/build/features/bank/screens/Success/Success.d.ts +5 -5
- package/build/features/bank/screens/Success/Success.js +12 -12
- package/build/features/bank/screens/Success/index.d.ts +3 -3
- package/build/features/bank/screens/Success/index.js +2 -2
- package/build/features/business/Business.d.ts +7 -7
- package/build/features/business/Business.js +74 -74
- package/build/features/business/index.d.ts +1 -1
- package/build/features/business/index.js +1 -1
- package/build/features/business/screens/Activities/Activities.d.ts +5 -5
- package/build/features/business/screens/Activities/Activities.js +64 -64
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +54 -54
- package/build/features/business/screens/Activities/ActivitiesList.js +132 -132
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +6 -6
- package/build/features/business/screens/Activities/OperationStartDate.js +31 -31
- package/build/features/business/screens/Activities/SalesChannels.d.ts +5 -5
- package/build/features/business/screens/Activities/SalesChannels.js +110 -110
- package/build/features/business/screens/Activities/index.d.ts +3 -3
- package/build/features/business/screens/Activities/index.js +2 -2
- package/build/features/business/screens/Activities/validation.d.ts +122 -122
- package/build/features/business/screens/Activities/validation.js +18 -18
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +5 -5
- package/build/features/business/screens/BusinessType/BusinessType.js +79 -86
- package/build/features/business/screens/BusinessType/CRNumber.d.ts +6 -6
- package/build/features/business/screens/BusinessType/CRNumber.js +41 -41
- package/build/features/business/screens/BusinessType/CompanyLicense.d.ts +11 -11
- package/build/features/business/screens/BusinessType/CompanyLicense.js +123 -109
- package/build/features/business/screens/BusinessType/FLNumber.d.ts +6 -6
- package/build/features/business/screens/BusinessType/FLNumber.js +41 -41
- package/build/features/business/screens/BusinessType/FreelanceLicense.d.ts +11 -11
- package/build/features/business/screens/BusinessType/FreelanceLicense.js +126 -112
- package/build/features/business/screens/BusinessType/SelectType.d.ts +8 -8
- package/build/features/business/screens/BusinessType/SelectType.js +106 -106
- package/build/features/business/screens/BusinessType/Switch.d.ts +7 -7
- package/build/features/business/screens/BusinessType/Switch.js +35 -35
- package/build/features/business/screens/BusinessType/index.d.ts +3 -3
- package/build/features/business/screens/BusinessType/index.js +2 -2
- package/build/features/business/screens/BusinessType/validation.d.ts +15 -15
- package/build/features/business/screens/BusinessType/validation.js +8 -8
- package/build/features/business/screens/Confirm/Confirm.d.ts +5 -5
- package/build/features/business/screens/Confirm/Confirm.js +56 -55
- package/build/features/business/screens/Confirm/index.d.ts +3 -3
- package/build/features/business/screens/Confirm/index.js +2 -2
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +69 -69
- package/build/features/business/screens/Customers/CustomerLocations.js +108 -108
- package/build/features/business/screens/Customers/Customers.d.ts +5 -5
- package/build/features/business/screens/Customers/Customers.js +79 -79
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +8 -8
- package/build/features/business/screens/Customers/ExpectedCustomers.js +74 -74
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +8 -8
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +75 -75
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +36 -36
- package/build/features/business/screens/Customers/RefundPolicy.js +78 -78
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +3 -3
- package/build/features/business/screens/Customers/TransactionPolicy.js +38 -38
- package/build/features/business/screens/Customers/index.d.ts +3 -3
- package/build/features/business/screens/Customers/index.js +2 -2
- package/build/features/business/screens/Customers/validation.d.ts +20 -20
- package/build/features/business/screens/Customers/validation.js +13 -13
- package/build/features/business/screens/IDBOD/DOB.d.ts +6 -6
- package/build/features/business/screens/IDBOD/DOB.js +39 -39
- package/build/features/business/screens/IDBOD/ID.d.ts +5 -5
- package/build/features/business/screens/IDBOD/ID.js +28 -28
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +5 -5
- package/build/features/business/screens/IDBOD/IDBOD.js +60 -60
- package/build/features/business/screens/IDBOD/index.d.ts +3 -3
- package/build/features/business/screens/IDBOD/index.js +2 -2
- package/build/features/business/screens/IDBOD/validation.d.ts +11 -11
- package/build/features/business/screens/IDBOD/validation.js +9 -9
- package/build/features/business/screens/OTP/OTP.d.ts +8 -8
- package/build/features/business/screens/OTP/OTP.js +75 -75
- package/build/features/business/screens/OTP/OTPInput.d.ts +5 -5
- package/build/features/business/screens/OTP/OTPInput.js +53 -54
- package/build/features/business/screens/OTP/index.d.ts +3 -3
- package/build/features/business/screens/OTP/index.js +2 -2
- package/build/features/business/screens/OTP/validation.d.ts +8 -8
- package/build/features/business/screens/OTP/validation.js +4 -4
- package/build/features/business/screens/Success/Success.d.ts +5 -5
- package/build/features/business/screens/Success/Success.js +18 -18
- package/build/features/business/screens/Success/index.d.ts +3 -3
- package/build/features/business/screens/Success/index.js +2 -2
- package/build/features/business/screens/Verify/OTPInput.d.ts +5 -5
- package/build/features/business/screens/Verify/OTPInput.js +42 -43
- package/build/features/business/screens/Verify/Verify.d.ts +5 -5
- package/build/features/business/screens/Verify/Verify.js +75 -75
- package/build/features/business/screens/Verify/index.d.ts +2 -2
- package/build/features/business/screens/Verify/index.js +2 -2
- package/build/features/business/screens/Verify/validation.d.ts +8 -8
- package/build/features/business/screens/Verify/validation.js +4 -4
- package/build/features/connect/Connect.d.ts +7 -7
- package/build/features/connect/Connect.js +51 -51
- package/build/features/connect/index.d.ts +1 -1
- package/build/features/connect/index.js +1 -1
- package/build/features/connect/screens/Individual/Email.d.ts +6 -6
- package/build/features/connect/screens/Individual/Email.js +50 -50
- package/build/features/connect/screens/Individual/Individual.d.ts +5 -5
- package/build/features/connect/screens/Individual/Individual.js +89 -89
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +11 -11
- package/build/features/connect/screens/Individual/MobileNumber.js +136 -136
- package/build/features/connect/screens/Individual/Name.d.ts +6 -6
- package/build/features/connect/screens/Individual/Name.js +48 -48
- package/build/features/connect/screens/Individual/index.d.ts +3 -3
- package/build/features/connect/screens/Individual/index.js +2 -2
- package/build/features/connect/screens/Individual/validation.d.ts +24 -24
- package/build/features/connect/screens/Individual/validation.js +21 -21
- package/build/features/connect/screens/Merchant/BrandName.d.ts +5 -5
- package/build/features/connect/screens/Merchant/BrandName.js +87 -87
- package/build/features/connect/screens/Merchant/Merchant.d.ts +5 -5
- package/build/features/connect/screens/Merchant/Merchant.js +64 -64
- package/build/features/connect/screens/Merchant/SocialMedia.d.ts +5 -5
- package/build/features/connect/screens/Merchant/SocialMedia.js +84 -84
- package/build/features/connect/screens/Merchant/TAC.d.ts +5 -5
- package/build/features/connect/screens/Merchant/TAC.js +79 -79
- package/build/features/connect/screens/Merchant/index.d.ts +3 -3
- package/build/features/connect/screens/Merchant/index.js +2 -2
- package/build/features/connect/screens/Merchant/validation.d.ts +50 -50
- package/build/features/connect/screens/Merchant/validation.js +58 -58
- package/build/features/connect/screens/Mobile/BusinessCountry.d.ts +8 -8
- package/build/features/connect/screens/Mobile/BusinessCountry.js +40 -40
- package/build/features/connect/screens/Mobile/Mobile.d.ts +5 -5
- package/build/features/connect/screens/Mobile/Mobile.js +121 -121
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +12 -12
- package/build/features/connect/screens/Mobile/MobileNumber.js +136 -136
- package/build/features/connect/screens/Mobile/Title.d.ts +8 -8
- package/build/features/connect/screens/Mobile/Title.js +29 -29
- package/build/features/connect/screens/Mobile/index.d.ts +3 -3
- package/build/features/connect/screens/Mobile/index.js +2 -2
- package/build/features/connect/screens/Mobile/validation.d.ts +8 -8
- package/build/features/connect/screens/Mobile/validation.js +6 -6
- package/build/features/connect/screens/NID/DOB.d.ts +6 -6
- package/build/features/connect/screens/NID/DOB.js +48 -48
- package/build/features/connect/screens/NID/IDNumber.d.ts +7 -7
- package/build/features/connect/screens/NID/IDNumber.js +60 -60
- package/build/features/connect/screens/NID/NID.d.ts +5 -5
- package/build/features/connect/screens/NID/NID.js +97 -97
- package/build/features/connect/screens/NID/index.d.ts +3 -3
- package/build/features/connect/screens/NID/index.js +2 -2
- package/build/features/connect/screens/NID/validation.d.ts +11 -11
- package/build/features/connect/screens/NID/validation.js +9 -9
- package/build/features/connect/screens/OTP/OTP.d.ts +5 -5
- package/build/features/connect/screens/OTP/OTP.js +83 -83
- package/build/features/connect/screens/OTP/OTPInput.d.ts +5 -5
- package/build/features/connect/screens/OTP/OTPInput.js +64 -64
- package/build/features/connect/screens/OTP/index.d.ts +3 -3
- package/build/features/connect/screens/OTP/index.js +2 -2
- package/build/features/connect/screens/OTP/validation.d.ts +8 -8
- package/build/features/connect/screens/OTP/validation.js +4 -4
- package/build/features/connect/screens/Password/Password.d.ts +5 -5
- package/build/features/connect/screens/Password/Password.js +63 -63
- package/build/features/connect/screens/Password/PasswordInput.d.ts +5 -5
- package/build/features/connect/screens/Password/PasswordInput.js +39 -39
- package/build/features/connect/screens/Password/index.d.ts +3 -3
- package/build/features/connect/screens/Password/index.js +2 -2
- package/build/features/connect/screens/Password/validation.d.ts +8 -8
- package/build/features/connect/screens/Password/validation.js +4 -4
- package/build/features/connect/screens/ThankYou/ThankYou.d.ts +5 -5
- package/build/features/connect/screens/ThankYou/ThankYou.js +18 -18
- package/build/features/connect/screens/ThankYou/index.d.ts +3 -3
- package/build/features/connect/screens/ThankYou/index.js +2 -2
- package/build/features/featuresScreens.d.ts +7 -7
- package/build/features/featuresScreens.js +129 -129
- package/build/features/individual/Individual.d.ts +6 -6
- package/build/features/individual/Individual.js +50 -50
- package/build/features/individual/index.d.ts +1 -1
- package/build/features/individual/index.js +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +84 -84
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +81 -81
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.d.ts +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +40 -40
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +45 -45
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +36 -36
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +45 -45
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +9 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +87 -87
- package/build/features/individual/screens/AdditionalIndividualInfo/index.d.ts +3 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/index.js +2 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +25 -25
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +33 -33
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.d.ts +19 -19
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +52 -52
- package/build/features/individual/screens/ShowIndividualInfo/index.d.ts +3 -3
- package/build/features/individual/screens/ShowIndividualInfo/index.js +2 -2
- package/build/features/individual/screens/ShowIndividualInfo/info.d.ts +7 -7
- package/build/features/individual/screens/ShowIndividualInfo/info.js +28 -28
- package/build/features/individual/screens/Success/Success.d.ts +5 -5
- package/build/features/individual/screens/Success/Success.js +12 -12
- package/build/features/individual/screens/Success/index.d.ts +3 -3
- package/build/features/individual/screens/Success/index.js +2 -2
- package/build/features/password/Password.d.ts +6 -6
- package/build/features/password/Password.js +50 -50
- package/build/features/password/index.d.ts +1 -1
- package/build/features/password/index.js +1 -1
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +7 -7
- package/build/features/password/screens/CreatePassword/ConditionText.js +23 -23
- package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +8 -8
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +22 -22
- package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +5 -5
- package/build/features/password/screens/CreatePassword/CreatePassword.js +51 -51
- package/build/features/password/screens/CreatePassword/Password.d.ts +5 -5
- package/build/features/password/screens/CreatePassword/Password.js +76 -76
- package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +7 -7
- package/build/features/password/screens/CreatePassword/PasswordBar.js +29 -29
- package/build/features/password/screens/CreatePassword/index.d.ts +3 -3
- package/build/features/password/screens/CreatePassword/index.js +2 -2
- package/build/features/password/screens/CreatePassword/validation.d.ts +11 -11
- package/build/features/password/screens/CreatePassword/validation.js +8 -8
- package/build/features/password/screens/Success/Success.d.ts +5 -5
- package/build/features/password/screens/Success/Success.js +12 -12
- package/build/features/password/screens/Success/index.d.ts +3 -3
- package/build/features/password/screens/Success/index.js +2 -2
- package/build/features/shared/Button/AbsherButton.d.ts +9 -9
- package/build/features/shared/Button/AbsherButton.js +69 -69
- package/build/features/shared/Button/Button.d.ts +11 -11
- package/build/features/shared/Button/Button.js +89 -89
- package/build/features/shared/Button/index.d.ts +4 -4
- package/build/features/shared/Button/index.js +4 -4
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -2
- package/build/features/shared/CheckIcon/CheckIcon.js +14 -14
- package/build/features/shared/CheckIcon/index.d.ts +2 -2
- package/build/features/shared/CheckIcon/index.js +2 -2
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +6 -6
- package/build/features/shared/ClearIcon/ClearIcon.js +26 -26
- package/build/features/shared/ClearIcon/index.d.ts +2 -2
- package/build/features/shared/ClearIcon/index.js +2 -2
- package/build/features/shared/Containers/FeatureContainer.d.ts +4 -4
- package/build/features/shared/Containers/FeatureContainer.js +33 -33
- package/build/features/shared/Containers/ScreenContainer.d.ts +4 -4
- package/build/features/shared/Containers/ScreenContainer.js +29 -29
- package/build/features/shared/Containers/index.d.ts +3 -3
- package/build/features/shared/Containers/index.js +3 -3
- package/build/features/shared/Footer/Footer.d.ts +2 -2
- package/build/features/shared/Footer/Footer.js +16 -16
- package/build/features/shared/Footer/index.d.ts +2 -2
- package/build/features/shared/Footer/index.js +2 -2
- package/build/features/shared/Input/Input.d.ts +26 -26
- package/build/features/shared/Input/Input.js +56 -56
- package/build/features/shared/Input/index.d.ts +2 -2
- package/build/features/shared/Input/index.js +2 -2
- package/build/features/shared/Mandatory/Mandatory.d.ts +2 -2
- package/build/features/shared/Mandatory/Mandatory.js +20 -20
- package/build/features/shared/Mandatory/index.d.ts +2 -2
- package/build/features/shared/Mandatory/index.js +2 -2
- package/build/features/shared/OTP/OTP.d.ts +9 -9
- package/build/features/shared/OTP/OTP.js +85 -85
- package/build/features/shared/OTP/index.d.ts +2 -2
- package/build/features/shared/OTP/index.js +2 -2
- package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +8 -8
- package/build/features/shared/PasswordIcon/PasswordIcon.js +37 -37
- package/build/features/shared/PasswordIcon/index.d.ts +2 -2
- package/build/features/shared/PasswordIcon/index.js +2 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +7 -7
- package/build/features/shared/SuccessScreen/SuccessScreen.js +67 -67
- package/build/features/shared/SuccessScreen/index.d.ts +2 -2
- package/build/features/shared/SuccessScreen/index.js +2 -2
- package/build/features/tax/Tax.d.ts +6 -6
- package/build/features/tax/Tax.js +50 -50
- package/build/features/tax/index.d.ts +1 -1
- package/build/features/tax/index.js +1 -1
- package/build/features/tax/screens/Success/Success.d.ts +5 -5
- package/build/features/tax/screens/Success/Success.js +12 -12
- package/build/features/tax/screens/Success/index.d.ts +3 -3
- package/build/features/tax/screens/Success/index.js +2 -2
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +5 -5
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +45 -45
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -3
- package/build/features/tax/screens/TaxDetails/VATId.js +26 -26
- package/build/features/tax/screens/TaxDetails/index.d.ts +3 -3
- package/build/features/tax/screens/TaxDetails/index.js +2 -2
- package/build/features/tax/screens/TaxDetails/validation.d.ts +8 -8
- package/build/features/tax/screens/TaxDetails/validation.js +4 -4
- package/build/hooks/index.d.ts +10 -10
- package/build/hooks/index.js +10 -10
- package/build/hooks/useAppConfig.d.ts +9 -9
- package/build/hooks/useAppConfig.js +137 -137
- package/build/hooks/useAppDispatch.d.ts +5 -5
- package/build/hooks/useAppDispatch.js +2 -2
- package/build/hooks/useAppSelector.d.ts +3 -3
- package/build/hooks/useAppSelector.js +2 -2
- package/build/hooks/useAppTheme.d.ts +4 -4
- package/build/hooks/useAppTheme.js +14 -14
- package/build/hooks/useContainerDimensions.d.ts +4 -4
- package/build/hooks/useContainerDimensions.js +21 -21
- package/build/hooks/useErrorListener.d.ts +1 -1
- package/build/hooks/useErrorListener.js +19 -19
- package/build/hooks/useEventListener.d.ts +5 -5
- package/build/hooks/useEventListener.js +20 -20
- package/build/hooks/useLanguage.d.ts +4 -4
- package/build/hooks/useLanguage.js +8 -8
- package/build/hooks/useThemeMode.d.ts +4 -4
- package/build/hooks/useThemeMode.js +7 -7
- package/build/i18n.d.ts +2 -2
- package/build/i18n.js +34 -34
- package/build/index.d.ts +10 -10
- package/build/index.js +23 -23
- package/build/theme/components.d.ts +2 -2
- package/build/theme/components.js +10 -10
- package/build/theme/index.d.ts +1 -1
- package/build/theme/index.js +1 -1
- package/build/theme/palette.d.ts +3 -3
- package/build/theme/palette.js +68 -68
- package/build/theme/shadows.d.ts +2 -2
- package/build/theme/shadows.js +27 -27
- package/build/theme/theme.d.ts +2 -2
- package/build/theme/theme.js +34 -34
- package/build/theme/typography.d.ts +2 -2
- package/build/theme/typography.js +31 -31
- package/build/utils/array.d.ts +8 -8
- package/build/utils/array.js +38 -38
- package/build/utils/device.d.ts +4 -4
- package/build/utils/device.js +13 -13
- package/build/utils/html.d.ts +4 -4
- package/build/utils/html.js +26 -26
- package/build/utils/index.d.ts +9 -9
- package/build/utils/index.js +9 -9
- package/build/utils/locale.d.ts +2 -2
- package/build/utils/locale.js +21 -21
- package/build/utils/object.d.ts +1 -1
- package/build/utils/object.js +7 -7
- package/build/utils/rsa.d.ts +2 -2
- package/build/utils/rsa.js +19 -19
- package/build/utils/storage.d.ts +5 -5
- package/build/utils/storage.js +21 -21
- package/build/utils/string.d.ts +36 -36
- package/build/utils/string.js +115 -115
- package/build/utils/style.d.ts +1 -1
- package/build/utils/style.js +1 -1
- package/build/utils/validation.d.ts +14 -14
- package/build/utils/validation.js +42 -42
- package/package.json +1 -1
- package/build/features/app/business/midStore.d.ts +0 -10
- package/build/features/app/business/midStore.js +0 -18
- package/build/features/app/connect/midStore.d.ts +0 -10
- package/build/features/app/connect/midStore.js +0 -18
- package/build/features/business/screens/VerifyNumber/OTPInput.d.ts +0 -5
- package/build/features/business/screens/VerifyNumber/OTPInput.js +0 -39
- package/build/features/business/screens/VerifyNumber/VerifyNumber.d.ts +0 -13
- package/build/features/business/screens/VerifyNumber/VerifyNumber.js +0 -76
- package/build/features/business/screens/VerifyNumber/index.d.ts +0 -3
- package/build/features/business/screens/VerifyNumber/index.js +0 -2
- package/build/features/business/screens/VerifyNumber/validation.d.ts +0 -8
- package/build/features/business/screens/VerifyNumber/validation.js +0 -4
- package/build/features/connect/screens/MID/BusinessCountry.d.ts +0 -11
- package/build/features/connect/screens/MID/BusinessCountry.js +0 -92
- package/build/features/connect/screens/MID/DOB.d.ts +0 -6
- package/build/features/connect/screens/MID/DOB.js +0 -38
- package/build/features/connect/screens/MID/IDNumber.d.ts +0 -7
- package/build/features/connect/screens/MID/IDNumber.js +0 -70
- package/build/features/connect/screens/MID/MID.d.ts +0 -5
- package/build/features/connect/screens/MID/MID.js +0 -87
- package/build/features/connect/screens/MID/MIDTitle.d.ts +0 -8
- package/build/features/connect/screens/MID/MIDTitle.js +0 -29
- package/build/features/connect/screens/MID/MobileNumber.d.ts +0 -12
- package/build/features/connect/screens/MID/MobileNumber.js +0 -148
- package/build/features/connect/screens/MID/index.d.ts +0 -3
- package/build/features/connect/screens/MID/index.js +0 -2
- package/build/features/connect/screens/MID/validation.d.ts +0 -18
- package/build/features/connect/screens/MID/validation.js +0 -15
- package/build/features/owner/Owner.d.ts +0 -6
- package/build/features/owner/Owner.js +0 -50
- package/build/features/owner/index.d.ts +0 -1
- package/build/features/owner/index.js +0 -1
- package/build/features/owner/screens/AdditionalOwnerInfo/AdditionalOwnerInfo.d.ts +0 -8
- package/build/features/owner/screens/AdditionalOwnerInfo/AdditionalOwnerInfo.js +0 -77
- package/build/features/owner/screens/AdditionalOwnerInfo/EmployerLocation.d.ts +0 -10
- package/build/features/owner/screens/AdditionalOwnerInfo/EmployerLocation.js +0 -80
- package/build/features/owner/screens/AdditionalOwnerInfo/EmployerName.d.ts +0 -6
- package/build/features/owner/screens/AdditionalOwnerInfo/EmployerName.js +0 -40
- package/build/features/owner/screens/AdditionalOwnerInfo/InfluencerSwitch.d.ts +0 -6
- package/build/features/owner/screens/AdditionalOwnerInfo/InfluencerSwitch.js +0 -45
- package/build/features/owner/screens/AdditionalOwnerInfo/MonthlyIncome.d.ts +0 -6
- package/build/features/owner/screens/AdditionalOwnerInfo/MonthlyIncome.js +0 -35
- package/build/features/owner/screens/AdditionalOwnerInfo/PEPSwitch.d.ts +0 -6
- package/build/features/owner/screens/AdditionalOwnerInfo/PEPSwitch.js +0 -45
- package/build/features/owner/screens/AdditionalOwnerInfo/SourceOfIncome.d.ts +0 -9
- package/build/features/owner/screens/AdditionalOwnerInfo/SourceOfIncome.js +0 -85
- package/build/features/owner/screens/AdditionalOwnerInfo/index.d.ts +0 -3
- package/build/features/owner/screens/AdditionalOwnerInfo/index.js +0 -2
- package/build/features/owner/screens/AdditionalOwnerInfo/validation.d.ts +0 -25
- package/build/features/owner/screens/AdditionalOwnerInfo/validation.js +0 -35
- package/build/features/owner/screens/ShowOwnerInfo/ShowOwnerInfo.d.ts +0 -19
- package/build/features/owner/screens/ShowOwnerInfo/ShowOwnerInfo.js +0 -52
- package/build/features/owner/screens/ShowOwnerInfo/index.d.ts +0 -3
- package/build/features/owner/screens/ShowOwnerInfo/index.js +0 -2
- package/build/features/owner/screens/ShowOwnerInfo/info.d.ts +0 -7
- package/build/features/owner/screens/ShowOwnerInfo/info.js +0 -28
- package/build/features/owner/screens/Success/Success.d.ts +0 -5
- package/build/features/owner/screens/Success/Success.js +0 -14
- package/build/features/owner/screens/Success/index.d.ts +0 -3
- package/build/features/owner/screens/Success/index.js +0 -2
- package/build/features/shared/ExpandIcon/ExpandIcon.d.ts +0 -7
- package/build/features/shared/ExpandIcon/ExpandIcon.js +0 -24
- package/build/features/shared/ExpandIcon/index.d.ts +0 -2
- package/build/features/shared/ExpandIcon/index.js +0 -2
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import * as React from 'react';
|
|
14
|
-
import { styled, alpha } from '@mui/material/styles';
|
|
15
|
-
import Collapse from '../../../../components/Collapse';
|
|
16
|
-
import Text from '../../../../components/Text';
|
|
17
|
-
var TitleStyled = styled(Text)(function (_a) {
|
|
18
|
-
var theme = _a.theme;
|
|
19
|
-
return (__assign(__assign({ color: theme.palette.text.primary, textAlign: 'center' }, theme.typography.body1), { fontWeight: theme.typography.fontWeightMedium, lineHeight: 1.21, padding: theme.spacing(0, 3, 0, 3) }));
|
|
20
|
-
});
|
|
21
|
-
var DescriptionStyled = styled(Text)(function (_a) {
|
|
22
|
-
var theme = _a.theme;
|
|
23
|
-
return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.4) }, theme.typography.caption), { fontWeight: theme.typography.fontWeightRegular, lineHeight: 1.6, padding: theme.spacing(2, 3, 3, 3) }));
|
|
24
|
-
});
|
|
25
|
-
var MIDTitle = function (_a) {
|
|
26
|
-
var description = _a.description, show = _a.show, title = _a.title;
|
|
27
|
-
return (_jsxs(Collapse, __assign({ in: show }, { children: [_jsx(TitleStyled, { children: title }), _jsx(DescriptionStyled, { children: description })] })));
|
|
28
|
-
};
|
|
29
|
-
export default React.memo(MIDTitle);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { CountryCode } from '../../../../@types';
|
|
3
|
-
interface MobileNumberProps {
|
|
4
|
-
countries: Array<CountryCode>;
|
|
5
|
-
show: boolean;
|
|
6
|
-
setMobileLength?: (length: number) => void;
|
|
7
|
-
onSwitchToIdNumber?: () => void;
|
|
8
|
-
onListOpen?: () => void;
|
|
9
|
-
onListClose?: () => void;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<MobileNumberProps & React.RefAttributes<unknown>>>;
|
|
12
|
-
export default _default;
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
|
-
import * as React from 'react';
|
|
25
|
-
import Box from '@mui/material/Box';
|
|
26
|
-
import { useTranslation } from 'react-i18next';
|
|
27
|
-
import { useController, useFormContext } from 'react-hook-form';
|
|
28
|
-
import { styled, alpha } from '@mui/material/styles';
|
|
29
|
-
import Text from '../../../../components/Text';
|
|
30
|
-
import Collapse from '../../../../components/Collapse';
|
|
31
|
-
import Tooltip from '@mui/material/Tooltip';
|
|
32
|
-
import ClearIcon from '../../../shared/ClearIcon';
|
|
33
|
-
import CheckIcon from '../../../shared/CheckIcon';
|
|
34
|
-
import ScreenContainer from '../../../shared/Containers/ScreenContainer';
|
|
35
|
-
import Icon from '../../../../components/Icon';
|
|
36
|
-
import ExpandIcon from '../../../../components/ExpandIcon';
|
|
37
|
-
import Input from '../../../shared/Input';
|
|
38
|
-
import SimpleList from '../../../../components/SimpleList';
|
|
39
|
-
import { ICONS_NAMES } from '../../../../constants';
|
|
40
|
-
import { removeAllCharsFromNumber } from '../../../../utils';
|
|
41
|
-
import { useLanguage } from '../../../../hooks';
|
|
42
|
-
var IconStyled = styled(Icon)(function (_a) {
|
|
43
|
-
var theme = _a.theme;
|
|
44
|
-
return ({
|
|
45
|
-
width: theme.spacing(2.75),
|
|
46
|
-
height: theme.spacing(2.125),
|
|
47
|
-
cursor: 'pointer'
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
var LabelContainerStyled = styled(Box)(function (_a) {
|
|
51
|
-
var theme = _a.theme;
|
|
52
|
-
return ({
|
|
53
|
-
display: 'flex',
|
|
54
|
-
justifyContent: 'space-between',
|
|
55
|
-
padding: theme.spacing(0, 2.5, 1.25, 2.5)
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
var CountryItemContainer = styled(Box)(function () { return ({
|
|
59
|
-
display: 'flex'
|
|
60
|
-
}); });
|
|
61
|
-
var CountryCodeText = styled(Text, {
|
|
62
|
-
shouldForwardProp: function (prop) { return prop !== 'isSelected'; }
|
|
63
|
-
})(function (_a) {
|
|
64
|
-
var theme = _a.theme, isSelected = _a.isSelected;
|
|
65
|
-
return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { width: theme.spacing(10), textAlign: 'start', fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight }));
|
|
66
|
-
});
|
|
67
|
-
var CountryNameText = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isSelected'; } })(function (_a) {
|
|
68
|
-
var theme = _a.theme, isSelected = _a.isSelected;
|
|
69
|
-
return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25) }));
|
|
70
|
-
});
|
|
71
|
-
var CountryCodeStyled = styled(Text)(function (_a) {
|
|
72
|
-
var theme = _a.theme;
|
|
73
|
-
return (__assign(__assign({ cursor: 'pointer' }, theme.typography.body2), { fontWeight: theme.typography.fontWeightRegular, display: 'flex', alignItems: 'center', minWidth: theme.spacing(8.75) }));
|
|
74
|
-
});
|
|
75
|
-
var InputLabelStyled = styled(Text)(function (_a) {
|
|
76
|
-
var theme = _a.theme;
|
|
77
|
-
return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }, theme.typography.caption), { lineHeight: theme.spacing(2.5) }));
|
|
78
|
-
});
|
|
79
|
-
var ExpandIconStyled = styled(ExpandIcon)(function (_a) {
|
|
80
|
-
var theme = _a.theme;
|
|
81
|
-
return ({
|
|
82
|
-
marginInlineStart: theme.spacing(1)
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
var MobileNumber = React.forwardRef(function (_a, ref) {
|
|
86
|
-
var _b, _c, _d;
|
|
87
|
-
var countries = _a.countries, rest = __rest(_a, ["countries"]);
|
|
88
|
-
var countriesCode = React.useState(countries)[0];
|
|
89
|
-
var _e = React.useState(null), anchorEl = _e[0], setAnchorEl = _e[1];
|
|
90
|
-
var t = useTranslation().t;
|
|
91
|
-
var isAr = useLanguage().isAr;
|
|
92
|
-
var _f = useFormContext(), control = _f.control, setValue = _f.setValue, getValues = _f.getValues;
|
|
93
|
-
var phoneControl = useController({ name: 'mobile', control: control });
|
|
94
|
-
var countryCodeControl = useController({ name: 'countryCode', control: control });
|
|
95
|
-
var businessCountry = getValues('businessCountry');
|
|
96
|
-
React.useEffect(function () {
|
|
97
|
-
var _a;
|
|
98
|
-
if (phoneControl.field.value) {
|
|
99
|
-
setValue('mobile', phoneControl.field.value, { shouldValidate: true });
|
|
100
|
-
}
|
|
101
|
-
if (countryCodeControl.field.value) {
|
|
102
|
-
var country = countryCodeControl.field.value;
|
|
103
|
-
setValue('countryCode', country, { shouldValidate: true });
|
|
104
|
-
(_a = rest.setMobileLength) === null || _a === void 0 ? void 0 : _a.call(rest, (country === null || country === void 0 ? void 0 : country.digits) || 10);
|
|
105
|
-
}
|
|
106
|
-
}, []);
|
|
107
|
-
React.useEffect(function () {
|
|
108
|
-
var _a;
|
|
109
|
-
var mobile = phoneControl.field.value;
|
|
110
|
-
if (mobile == null) {
|
|
111
|
-
setValue('countryCode', businessCountry);
|
|
112
|
-
(_a = rest.setMobileLength) === null || _a === void 0 ? void 0 : _a.call(rest, (businessCountry === null || businessCountry === void 0 ? void 0 : businessCountry.digits) || 10);
|
|
113
|
-
}
|
|
114
|
-
}, [businessCountry]);
|
|
115
|
-
var onPhoneNumberChange = function (_a) {
|
|
116
|
-
var target = _a.target;
|
|
117
|
-
var value = removeAllCharsFromNumber(target.value);
|
|
118
|
-
phoneControl.field.onChange(value);
|
|
119
|
-
};
|
|
120
|
-
var clearMobileNumber = function () {
|
|
121
|
-
phoneControl.field.onChange('');
|
|
122
|
-
};
|
|
123
|
-
var onOpenCountryList = function (event) {
|
|
124
|
-
var _a;
|
|
125
|
-
setAnchorEl(event.currentTarget);
|
|
126
|
-
(_a = rest.onListOpen) === null || _a === void 0 ? void 0 : _a.call(rest);
|
|
127
|
-
};
|
|
128
|
-
var onCloseCountryList = function () {
|
|
129
|
-
var _a;
|
|
130
|
-
setAnchorEl(null);
|
|
131
|
-
(_a = rest.onListClose) === null || _a === void 0 ? void 0 : _a.call(rest);
|
|
132
|
-
};
|
|
133
|
-
var onSelectItem = function (country) {
|
|
134
|
-
var _a;
|
|
135
|
-
onCloseCountryList();
|
|
136
|
-
setValue('mobile', '');
|
|
137
|
-
(_a = rest.setMobileLength) === null || _a === void 0 ? void 0 : _a.call(rest, (country === null || country === void 0 ? void 0 : country.digits) || 10);
|
|
138
|
-
countryCodeControl.field.onChange(country);
|
|
139
|
-
};
|
|
140
|
-
var countryCodeValue = countryCodeControl.field.value;
|
|
141
|
-
var mobileValue = phoneControl.field.value || '';
|
|
142
|
-
var countryName = (isAr ? (_b = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.name) === null || _b === void 0 ? void 0 : _b.arabic : (_c = countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.name) === null || _c === void 0 ? void 0 : _c.english) || '';
|
|
143
|
-
var error = (_d = phoneControl.fieldState.error) === null || _d === void 0 ? void 0 : _d.message;
|
|
144
|
-
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, __assign({ ref: ref }, { children: [_jsxs(LabelContainerStyled, { children: [_jsx(InputLabelStyled, { children: t('signup_enter_mobile') }), _jsx(Collapse, __assign({ in: !anchorEl }, { children: _jsx(Tooltip, __assign({ title: t('switch_to_id') }, { children: _jsx(IconStyled, { onClick: rest.onSwitchToIdNumber, alt: 'switcher icon', src: ICONS_NAMES.ID_IMAGE }) })) }))] }), _jsx(Input, { sx: { direction: 'ltr' }, inputProps: { maxLength: (countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.digits) || 10 }, onChange: onPhoneNumberChange, value: !!anchorEl ? countryName : mobileValue, startAdornment: _jsxs(CountryCodeStyled, __assign({ onClick: onOpenCountryList }, { children: ["+".concat(countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix), !anchorEl && _jsx(ExpandIconStyled, { anchorEl: !!anchorEl })] })), endAdornment: !!anchorEl ? (_jsx(ExpandIconStyled, { anchorEl: !!anchorEl })) : !error && mobileValue ? (_jsx(CheckIcon, {})) : (mobileValue && _jsx(ClearIcon, { onClick: clearMobileNumber })), placeholder: "".concat((countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.iso2) === 'SA' ? '5' : '0', "00000000"), warningType: 'alert', warningMessage: error && t(error, { length: countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.digits }) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'name.english', list: countriesCode, onSelectItem: onSelectItem, renderItem: function (item) {
|
|
145
|
-
return (_jsxs(_Fragment, { children: [_jsxs(CountryItemContainer, { children: [_jsxs(CountryCodeText, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.idd_prefix) === (countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix) }, { children: ["+", item.idd_prefix] })), _jsx(CountryNameText, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.idd_prefix) === (countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix) }, { children: isAr ? item.name.arabic : item.name.english }))] }), item.idd_prefix === (countryCodeValue === null || countryCodeValue === void 0 ? void 0 : countryCodeValue.idd_prefix) && _jsx(CheckIcon, {})] }));
|
|
146
|
-
} }) }))] })) })));
|
|
147
|
-
});
|
|
148
|
-
export default React.memo(MobileNumber);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as yup from 'yup';
|
|
2
|
-
export declare const NIDValidationSchema: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
3
|
-
dob: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
4
|
-
nid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
5
|
-
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
6
|
-
dob: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
7
|
-
nid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
8
|
-
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
9
|
-
dob: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
10
|
-
nid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
11
|
-
}>>>;
|
|
12
|
-
export declare const PhoneValidationSchema: (length: number) => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
13
|
-
mobile: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
14
|
-
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
15
|
-
mobile: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
16
|
-
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
17
|
-
mobile: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
18
|
-
}>>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as yup from 'yup';
|
|
2
|
-
export var NIDValidationSchema = yup.object().shape({
|
|
3
|
-
dob: yup.string().min(5).required('enter_valid_birth_date'),
|
|
4
|
-
nid: yup
|
|
5
|
-
.string()
|
|
6
|
-
.matches(/^(1)([0-9]{1,})$/g, 'signup_invalid_national_id_format')
|
|
7
|
-
.min(8, 'signup_invalid_national_id_format')
|
|
8
|
-
.max(10, 'signup_invalid_national_id_format')
|
|
9
|
-
.required('signup_invalid_national_id')
|
|
10
|
-
});
|
|
11
|
-
export var PhoneValidationSchema = function (length) {
|
|
12
|
-
return yup.object().shape({
|
|
13
|
-
mobile: yup.string().length(length, 'enter_valid_mobile_number').required('mobile_number_error')
|
|
14
|
-
});
|
|
15
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface OwnerLibProps {
|
|
3
|
-
}
|
|
4
|
-
export declare function OwnerLib(props: OwnerLibProps): JSX.Element;
|
|
5
|
-
export declare function renderOwnerLib(config: OwnerLibProps, elementId: string): void;
|
|
6
|
-
export declare function unmountOwnerLib(elementId: string): void;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import React, { memo, useEffect } from 'react';
|
|
14
|
-
import { useTranslation } from 'react-i18next';
|
|
15
|
-
import { useAppTheme, useAppDispatch, useAppSelector } from '../../hooks';
|
|
16
|
-
import { handleActiveFlowScreens, settingsSelector } from '../../app/settings';
|
|
17
|
-
import AnimationFlow from '../../components/AnimationFlow';
|
|
18
|
-
import { store } from '../../app/store';
|
|
19
|
-
import { ReduxProvider, ThemeProvider } from '../../components/Providers';
|
|
20
|
-
import Collapse from '../../components/Collapse';
|
|
21
|
-
import { reactElement } from '../../utils';
|
|
22
|
-
import { OWNER_SCREENS_NAVIGATION } from '../../constants';
|
|
23
|
-
import { ownerFeatureScreens } from '../featuresScreens';
|
|
24
|
-
import CustomFooter from '../shared/Footer';
|
|
25
|
-
import { FeatureContainer } from '../shared/Containers';
|
|
26
|
-
var Owner = memo(function (props) {
|
|
27
|
-
var open = React.useState(true)[0];
|
|
28
|
-
var t = useTranslation().t;
|
|
29
|
-
var theme = useAppTheme().theme;
|
|
30
|
-
var dispatch = useAppDispatch();
|
|
31
|
-
var data = useAppSelector(settingsSelector).data;
|
|
32
|
-
var activeScreen = data.activeScreen;
|
|
33
|
-
useEffect(function () {
|
|
34
|
-
dispatch(handleActiveFlowScreens(OWNER_SCREENS_NAVIGATION));
|
|
35
|
-
}, []);
|
|
36
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(AnimationFlow, __assign({ open: open, breakpoint: 'sm', footer: _jsx(CustomFooter, {}) }, { children: _jsx(FeatureContainer, { children: ownerFeatureScreens.map(function (_a, index) {
|
|
37
|
-
var Element = _a.element, name = _a.name;
|
|
38
|
-
var isActive = activeScreen.name === name;
|
|
39
|
-
return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
|
|
40
|
-
}) }) })) })));
|
|
41
|
-
});
|
|
42
|
-
export function OwnerLib(props) {
|
|
43
|
-
return (_jsx(ReduxProvider, __assign({ store: store }, { children: _jsx(Owner, __assign({}, props)) })));
|
|
44
|
-
}
|
|
45
|
-
export function renderOwnerLib(config, elementId) {
|
|
46
|
-
reactElement(elementId).render(_jsx(OwnerLib, __assign({}, config)));
|
|
47
|
-
}
|
|
48
|
-
export function unmountOwnerLib(elementId) {
|
|
49
|
-
reactElement(elementId).unmount();
|
|
50
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Owner';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Owner';
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import * as React from 'react';
|
|
14
|
-
import { yupResolver } from '@hookform/resolvers/yup';
|
|
15
|
-
import { useForm, FormProvider } from 'react-hook-form';
|
|
16
|
-
import Box from '@mui/material/Box';
|
|
17
|
-
import { useTranslation } from 'react-i18next';
|
|
18
|
-
import { useAppDispatch } from '../../../../hooks';
|
|
19
|
-
import { handleNextScreenStep } from '../../../../app/settings';
|
|
20
|
-
import { styled } from '@mui/material/styles';
|
|
21
|
-
import Form from '../../../../components/Form';
|
|
22
|
-
import Collapse from '../../../../components/Collapse';
|
|
23
|
-
import Button from '../../../shared/Button';
|
|
24
|
-
import ScreenContainer from '../../../shared/Containers/ScreenContainer';
|
|
25
|
-
import { useLanguage } from '../../../../hooks';
|
|
26
|
-
import PEPSwitch from './PEPSwitch';
|
|
27
|
-
import { OwnerInfoValidationSchema } from './validation';
|
|
28
|
-
import InfluencerSwitch from './InfluencerSwitch';
|
|
29
|
-
import MonthlyIncome from './MonthlyIncome';
|
|
30
|
-
import EmployerName from './EmployerName';
|
|
31
|
-
import EmployerLocation from './EmployerLocation';
|
|
32
|
-
import SourceOfIncome from './SourceOfIncome';
|
|
33
|
-
import { countriesCode, SOURCE_OF_INCOME } from '../../../../constants';
|
|
34
|
-
var InputsContainerStyled = styled(Box)(function (_a) {
|
|
35
|
-
var _b;
|
|
36
|
-
var theme = _a.theme, listActive = _a.listActive;
|
|
37
|
-
return (_b = {
|
|
38
|
-
paddingBottom: theme.spacing(listActive ? 0 : 5),
|
|
39
|
-
overflow: 'hidden',
|
|
40
|
-
maxHeight: 'calc(100vh - 250px)'
|
|
41
|
-
},
|
|
42
|
-
_b[theme.transitions.create(['padding-bottom'])] = {
|
|
43
|
-
duration: theme.transitions.duration.standard
|
|
44
|
-
},
|
|
45
|
-
_b);
|
|
46
|
-
});
|
|
47
|
-
var AdditionalOwnerInfo = function (_a) {
|
|
48
|
-
var methods = useForm({
|
|
49
|
-
resolver: yupResolver(OwnerInfoValidationSchema),
|
|
50
|
-
defaultValues: {
|
|
51
|
-
monthlyIncome: '',
|
|
52
|
-
employerName: '',
|
|
53
|
-
isPEP: null,
|
|
54
|
-
isInfluencer: null
|
|
55
|
-
},
|
|
56
|
-
mode: 'onChange'
|
|
57
|
-
});
|
|
58
|
-
var t = useTranslation().t;
|
|
59
|
-
var isAr = useLanguage().isAr;
|
|
60
|
-
var dispatch = useAppDispatch();
|
|
61
|
-
var _b = React.useState(false), listActive = _b[0], setListActive = _b[1];
|
|
62
|
-
var _c = React.useState(false), employerFieldsActive = _c[0], setEmployerFieldsActive = _c[1];
|
|
63
|
-
var onSubmit = function (data) {
|
|
64
|
-
console.log('data', data);
|
|
65
|
-
dispatch(handleNextScreenStep());
|
|
66
|
-
};
|
|
67
|
-
var handleSelectSource = function (country) {
|
|
68
|
-
var _a;
|
|
69
|
-
if (((_a = country.nameEn) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'salary')
|
|
70
|
-
setEmployerFieldsActive(true);
|
|
71
|
-
else
|
|
72
|
-
setEmployerFieldsActive(false);
|
|
73
|
-
};
|
|
74
|
-
return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(InputsContainerStyled, __assign({ listActive: listActive }, { children: [_jsx(SourceOfIncome, { show: !listActive, list: SOURCE_OF_INCOME, onSelectSource: handleSelectSource }), _jsx(MonthlyIncome, { show: !listActive }), _jsx(EmployerName, { show: !listActive && employerFieldsActive }), _jsx(EmployerLocation, { show: employerFieldsActive, countries: countriesCode, onListOpen: function () { return setListActive(true); }, onListClose: function () { return setListActive(false); } }), _jsx(PEPSwitch, { show: !listActive }), _jsx(InfluencerSwitch, { show: !listActive })] })), _jsx(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: _jsx(Button, __assign({ isAr: isAr, disabled: !methods.formState.isValid, loading: false }, { children: t('next') })) }))] })) })) }));
|
|
75
|
-
};
|
|
76
|
-
export default React.memo(AdditionalOwnerInfo);
|
|
77
|
-
AdditionalOwnerInfo.defaultProps = {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { CountryCode } from '../../../../@types';
|
|
3
|
-
interface EmployerLocationProps {
|
|
4
|
-
countries: Array<CountryCode>;
|
|
5
|
-
show: boolean;
|
|
6
|
-
onListOpen?: () => void;
|
|
7
|
-
onListClose?: () => void;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<EmployerLocationProps & React.RefAttributes<unknown>>>;
|
|
10
|
-
export default _default;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import * as React from 'react';
|
|
25
|
-
import Box from '@mui/material/Box';
|
|
26
|
-
import { styled } from '@mui/material/styles';
|
|
27
|
-
import { useTranslation } from 'react-i18next';
|
|
28
|
-
import { useController, useFormContext } from 'react-hook-form';
|
|
29
|
-
import Text from '../../../../components/Text';
|
|
30
|
-
import Collapse from '../../../../components/Collapse';
|
|
31
|
-
import CheckIcon from '@mui/icons-material/Check';
|
|
32
|
-
import ScreenContainer from '../../../shared/Containers/ScreenContainer';
|
|
33
|
-
import Input from '../../../shared/Input';
|
|
34
|
-
import ExpandIcon from '../../../shared/ExpandIcon';
|
|
35
|
-
import SimpleList from '../../../../components/SimpleList';
|
|
36
|
-
import { useLanguage } from '../../../../hooks';
|
|
37
|
-
var CountryItemContainer = styled(Box)(function () { return ({
|
|
38
|
-
display: 'flex'
|
|
39
|
-
}); });
|
|
40
|
-
var CountryNameText = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isSelected'; } })(function (_a) {
|
|
41
|
-
var theme = _a.theme, isSelected = _a.isSelected;
|
|
42
|
-
return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25) }));
|
|
43
|
-
});
|
|
44
|
-
var CheckIconStyled = styled(CheckIcon)(function (_a) {
|
|
45
|
-
var theme = _a.theme;
|
|
46
|
-
return ({
|
|
47
|
-
color: theme.palette.success.main,
|
|
48
|
-
display: 'flex',
|
|
49
|
-
alignItems: 'flex-end'
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
var EmployerLocation = React.forwardRef(function (_a, ref) {
|
|
53
|
-
var _b, _c;
|
|
54
|
-
var countries = _a.countries, rest = __rest(_a, ["countries"]);
|
|
55
|
-
var locationCountries = React.useState(countries)[0];
|
|
56
|
-
var _d = React.useState(null), anchorEl = _d[0], setAnchorEl = _d[1];
|
|
57
|
-
var t = useTranslation().t;
|
|
58
|
-
var isAr = useLanguage().isAr;
|
|
59
|
-
var control = useFormContext().control;
|
|
60
|
-
var employerLocationControl = useController({ control: control, name: 'employerLocation' });
|
|
61
|
-
var onOpenCountrySelect = function (event) {
|
|
62
|
-
var _a;
|
|
63
|
-
setAnchorEl(event.currentTarget);
|
|
64
|
-
(_a = rest.onListOpen) === null || _a === void 0 ? void 0 : _a.call(rest);
|
|
65
|
-
};
|
|
66
|
-
var onCloseCountrySelect = function () {
|
|
67
|
-
var _a;
|
|
68
|
-
setAnchorEl(null);
|
|
69
|
-
(_a = rest.onListClose) === null || _a === void 0 ? void 0 : _a.call(rest);
|
|
70
|
-
};
|
|
71
|
-
var onSelectItem = function (country) {
|
|
72
|
-
onCloseCountrySelect();
|
|
73
|
-
employerLocationControl.field.onChange(country);
|
|
74
|
-
};
|
|
75
|
-
var location = employerLocationControl.field.value;
|
|
76
|
-
return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, __assign({ ref: ref, sx: { pt: 2.5 } }, { children: [_jsx(Input, { required: true, label: t('tap_js_employer_address_city'), readOnly: true, onClick: !!anchorEl ? function () { return onCloseCountrySelect(); } : onOpenCountrySelect, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }), placeholder: t('choose_employee_location'), value: (isAr ? (_b = location === null || location === void 0 ? void 0 : location.name) === null || _b === void 0 ? void 0 : _b.arabic : (_c = location === null || location === void 0 ? void 0 : location.name) === null || _c === void 0 ? void 0 : _c.english) || '' }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'name.english', list: locationCountries, onSelectItem: onSelectItem, renderItem: function (item) {
|
|
77
|
-
return (_jsxs(_Fragment, { children: [_jsx(CountryItemContainer, { children: _jsx(CountryNameText, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.idd_prefix) === (location === null || location === void 0 ? void 0 : location.idd_prefix) }, { children: isAr ? item.name.arabic : item.name.english })) }), item.idd_prefix === (location === null || location === void 0 ? void 0 : location.idd_prefix) && _jsx(CheckIconStyled, {})] }));
|
|
78
|
-
} }) }))] })) })));
|
|
79
|
-
});
|
|
80
|
-
export default React.memo(EmployerLocation);
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import * as React from 'react';
|
|
14
|
-
import { useTranslation } from 'react-i18next';
|
|
15
|
-
import { useController, useFormContext } from 'react-hook-form';
|
|
16
|
-
import { removeOnlyNumbers } from '../../../../utils';
|
|
17
|
-
import { ScreenContainer } from '../../../shared/Containers';
|
|
18
|
-
import Input from '../../../shared/Input';
|
|
19
|
-
import CheckIcon from '../../../shared/CheckIcon';
|
|
20
|
-
import Collapse from '../../../../components/Collapse';
|
|
21
|
-
import ClearIcon from '../../../shared/ClearIcon';
|
|
22
|
-
var EmployerName = function (_a) {
|
|
23
|
-
var _b, _c;
|
|
24
|
-
var show = _a.show;
|
|
25
|
-
var t = useTranslation().t;
|
|
26
|
-
var control = useFormContext().control;
|
|
27
|
-
var employerNameControl = useController({ control: control, name: 'employerName' });
|
|
28
|
-
var handleEmployerNameChange = function (_a) {
|
|
29
|
-
var target = _a.target;
|
|
30
|
-
var value = removeOnlyNumbers(target.value);
|
|
31
|
-
employerNameControl.field.onChange(value);
|
|
32
|
-
};
|
|
33
|
-
var employerNameValue = employerNameControl.field.value;
|
|
34
|
-
var error = (_b = employerNameControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
|
|
35
|
-
var clearValue = function () {
|
|
36
|
-
employerNameControl.field.onChange('');
|
|
37
|
-
};
|
|
38
|
-
return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(ScreenContainer, __assign({ sx: { pt: 2.5 } }, { children: _jsx(Input, { required: true, label: t('tap_js_employer_name'), onChange: handleEmployerNameChange, value: employerNameValue, endAdornment: !error && employerNameValue ? _jsx(CheckIcon, {}) : employerNameValue && _jsx(ClearIcon, { onClick: clearValue }), placeholder: t('tap_js_enter_employer_name'), warningType: 'alert', warningMessage: (_c = employerNameControl.fieldState.error) === null || _c === void 0 ? void 0 : _c.message }) })) })));
|
|
39
|
-
};
|
|
40
|
-
export default React.memo(EmployerName);
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import * as React from 'react';
|
|
14
|
-
import { useTranslation } from 'react-i18next';
|
|
15
|
-
import { useFormContext, useController } from 'react-hook-form';
|
|
16
|
-
import { ScreenContainer } from '../../../shared/Containers';
|
|
17
|
-
import Collapse from '../../../../components/Collapse';
|
|
18
|
-
import { styled, alpha } from '@mui/material/styles';
|
|
19
|
-
import Mandatory from '../../../shared/Mandatory';
|
|
20
|
-
import Text from '../../../../components/Text';
|
|
21
|
-
import RadioGroup from '../../../../components/RadioGroup';
|
|
22
|
-
import RadioLabel from '../../../../components/RadioLabel';
|
|
23
|
-
var LabelTextStyled = styled(Text)(function (_a) {
|
|
24
|
-
var theme = _a.theme;
|
|
25
|
-
return (__assign(__assign({}, theme.typography.caption), { color: alpha(theme.palette.text.primary, 0.6), marginBlockEnd: theme.spacing(0.625) }));
|
|
26
|
-
});
|
|
27
|
-
var RadioGroupStyled = styled(RadioGroup)(function (_a) {
|
|
28
|
-
var theme = _a.theme;
|
|
29
|
-
return ({
|
|
30
|
-
marginInlineStart: theme.spacing(0.25)
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
var InfluencerSwitch = function (_a) {
|
|
34
|
-
var show = _a.show;
|
|
35
|
-
var control = useFormContext().control;
|
|
36
|
-
var t = useTranslation().t;
|
|
37
|
-
var influencerControl = useController({ name: 'isInfluencer', control: control });
|
|
38
|
-
var handleOnChange = function (_a) {
|
|
39
|
-
var target = _a.target;
|
|
40
|
-
influencerControl.field.onChange(target.value === 'yes');
|
|
41
|
-
};
|
|
42
|
-
var influencerValue = influencerControl.field.value;
|
|
43
|
-
return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { pt: 2.5, pl: 2.5, pr: 2.5 } }, { children: [_jsxs(LabelTextStyled, { children: [t('tap_js_are_you_an_influencer'), _jsx(Mandatory, {})] }), _jsxs(RadioGroupStyled, __assign({ value: influencerValue != null ? (influencerValue ? 'yes' : 'no') : false, onChange: handleOnChange }, { children: [_jsx(RadioLabel, { value: 'yes', label: t('yes') }), _jsx(RadioLabel, { value: 'no', label: t('no') })] }))] })) })));
|
|
44
|
-
};
|
|
45
|
-
export default React.memo(InfluencerSwitch);
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import * as React from 'react';
|
|
14
|
-
import { useTranslation } from 'react-i18next';
|
|
15
|
-
import { useController, useFormContext } from 'react-hook-form';
|
|
16
|
-
import { removeAllCharsFromNumber } from '../../../../utils';
|
|
17
|
-
import { ScreenContainer } from '../../../shared/Containers';
|
|
18
|
-
import Input from '../../../shared/Input';
|
|
19
|
-
import CheckIcon from '../../../shared/CheckIcon';
|
|
20
|
-
import Collapse from '../../../../components/Collapse';
|
|
21
|
-
var MonthlyIncome = function (_a) {
|
|
22
|
-
var _b;
|
|
23
|
-
var show = _a.show;
|
|
24
|
-
var t = useTranslation().t;
|
|
25
|
-
var control = useFormContext().control;
|
|
26
|
-
var monthlyIncomeControl = useController({ control: control, name: 'monthlyIncome' });
|
|
27
|
-
var handleMonthlyIncomeChange = function (_a) {
|
|
28
|
-
var target = _a.target;
|
|
29
|
-
var value = removeAllCharsFromNumber(target.value);
|
|
30
|
-
monthlyIncomeControl.field.onChange(value);
|
|
31
|
-
};
|
|
32
|
-
var monthlyIncomeValue = monthlyIncomeControl.field.value;
|
|
33
|
-
return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(ScreenContainer, { children: _jsx(Input, { label: t('please_enter_actual_income'), onChange: handleMonthlyIncomeChange, value: monthlyIncomeValue, endAdornment: monthlyIncomeValue && _jsx(CheckIcon, {}), placeholder: '0', warningType: 'alert', warningMessage: (_b = monthlyIncomeControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message }) }) })));
|
|
34
|
-
};
|
|
35
|
-
export default React.memo(MonthlyIncome);
|