@tap-payments/auth-jsconnect 1.0.16 → 1.0.22
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 +156 -105
- package/build/@types/app.js +11 -11
- package/build/@types/form.d.ts +31 -0
- package/build/@types/form.js +1 -0
- package/build/@types/index.d.ts +4 -3
- package/build/@types/index.js +4 -3
- package/build/@types/redux.d.ts +15 -9
- 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/auth.d.ts +40 -0
- package/build/api/auth.js +13 -0
- package/build/api/availabilityServices.d.ts +12 -0
- package/build/api/availabilityServices.js +13 -0
- package/build/api/axios.d.ts +4 -0
- package/build/api/axios.js +18 -0
- package/build/api/country.d.ts +5 -0
- package/build/api/country.js +13 -0
- package/build/api/index.d.ts +29 -0
- package/build/api/index.js +15 -0
- package/build/api/ip.d.ts +4 -0
- package/build/api/ip.js +9 -0
- package/build/api/lead.d.ts +62 -0
- package/build/api/lead.js +9 -0
- package/build/api/operator.d.ts +12 -0
- package/build/api/operator.js +9 -0
- package/build/app/rootReducer.d.ts +5 -5
- package/build/app/rootReducer.js +7 -7
- package/build/app/settings.d.ts +33 -21
- package/build/app/settings.js +198 -62
- package/build/app/store.d.ts +11 -11
- package/build/app/store.js +11 -11
- package/build/assets/locales/ar.json +213 -210
- package/build/assets/locales/en.json +227 -224
- 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 +62 -62
- 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 +100 -100
- 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 +83 -83
- 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 +42 -42
- package/build/components/Warning/index.d.ts +4 -4
- package/build/components/Warning/index.js +2 -2
- package/build/constants/api.d.ts +11 -0
- package/build/constants/api.js +20 -0
- package/build/constants/app.d.ts +85 -19
- package/build/constants/app.js +234 -162
- package/build/constants/assets.d.ts +35 -34
- package/build/constants/assets.js +35 -34
- package/build/constants/dummy.d.ts +343 -343
- package/build/constants/dummy.js +6434 -6434
- package/build/constants/index.d.ts +5 -4
- package/build/constants/index.js +5 -4
- package/build/constants/validation.d.ts +6 -6
- package/build/constants/validation.js +6 -6
- package/build/features/app/business/midStore.d.ts +10 -10
- package/build/features/app/business/midStore.js +18 -18
- package/build/features/app/connect/connectStore.d.ts +77 -0
- package/build/features/app/connect/connectStore.js +583 -0
- 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 +27 -27
- 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 +14 -14
- package/build/features/bank/screens/Success/Success.d.ts +5 -5
- package/build/features/bank/screens/Success/Success.js +14 -14
- 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 +6 -6
- package/build/features/business/Business.js +61 -61
- 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 +60 -57
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +54 -54
- package/build/features/business/screens/Activities/ActivitiesList.js +122 -122
- 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 +101 -100
- 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 +12 -12
- package/build/features/business/screens/BusinessType/BusinessType.js +88 -85
- 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 +109 -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 +112 -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 -53
- 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 +68 -68
- 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 +60 -56
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +7 -7
- package/build/features/business/screens/Customers/ExpectedCustomers.js +74 -74
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +7 -7
- 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 +53 -53
- 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 +10 -10
- package/build/features/business/screens/OTP/OTP.d.ts +11 -11
- package/build/features/business/screens/OTP/OTP.js +72 -72
- package/build/features/business/screens/OTP/OTPInput.d.ts +5 -5
- package/build/features/business/screens/OTP/OTPInput.js +39 -39
- 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 +14 -14
- 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/VerifyNumber/OTPInput.d.ts +5 -5
- package/build/features/business/screens/VerifyNumber/OTPInput.js +39 -39
- package/build/features/business/screens/VerifyNumber/VerifyNumber.d.ts +13 -13
- package/build/features/business/screens/VerifyNumber/VerifyNumber.js +76 -73
- package/build/features/business/screens/VerifyNumber/index.d.ts +3 -3
- package/build/features/business/screens/VerifyNumber/index.js +2 -2
- package/build/features/business/screens/VerifyNumber/validation.d.ts +8 -8
- package/build/features/business/screens/VerifyNumber/validation.js +4 -4
- package/build/features/connect/Connect.d.ts +9 -6
- package/build/features/connect/Connect.js +51 -48
- 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 -5
- package/build/features/connect/screens/Individual/Email.js +48 -37
- package/build/features/connect/screens/Individual/Individual.d.ts +5 -5
- package/build/features/connect/screens/Individual/Individual.js +71 -49
- package/build/features/{owner/screens/AdditionalOwnerInfo/EmployerLocation.d.ts → connect/screens/Individual/MobileNumber.d.ts} +11 -10
- package/build/features/connect/screens/Individual/MobileNumber.js +124 -0
- package/build/features/connect/screens/Individual/Name.d.ts +6 -5
- package/build/features/connect/screens/Individual/Name.js +39 -37
- 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 -11
- package/build/features/connect/screens/Individual/validation.js +20 -8
- package/build/features/connect/screens/Merchant/BrandName.d.ts +5 -5
- package/build/features/connect/screens/Merchant/BrandName.js +84 -75
- package/build/features/connect/screens/Merchant/Merchant.d.ts +5 -5
- package/build/features/connect/screens/Merchant/Merchant.js +58 -50
- 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 -54
- package/build/features/connect/screens/{MID → Mobile}/BusinessCountry.d.ts +11 -11
- package/build/features/connect/screens/{MID → Mobile}/BusinessCountry.js +93 -92
- package/build/features/connect/screens/Mobile/Mobile.d.ts +5 -0
- package/build/features/connect/screens/Mobile/Mobile.js +110 -0
- package/build/features/connect/screens/{MID → Mobile}/MobileNumber.d.ts +12 -12
- package/build/features/connect/screens/{MID → Mobile}/MobileNumber.js +142 -148
- package/build/features/connect/screens/{MID/MIDTitle.d.ts → Mobile/Title.d.ts} +8 -8
- package/build/features/connect/screens/{MID/MIDTitle.js → Mobile/Title.js} +29 -29
- package/build/features/connect/screens/Mobile/index.d.ts +3 -0
- package/build/features/connect/screens/Mobile/index.js +2 -0
- package/build/features/connect/screens/Mobile/validation.d.ts +8 -0
- package/build/features/connect/screens/Mobile/validation.js +6 -0
- package/build/features/connect/screens/{MID → NID}/DOB.d.ts +6 -6
- package/build/features/connect/screens/{MID → NID}/DOB.js +38 -38
- package/build/features/connect/screens/{MID → NID}/IDNumber.d.ts +7 -7
- package/build/features/connect/screens/{MID → NID}/IDNumber.js +60 -70
- package/build/features/connect/screens/NID/NID.d.ts +5 -0
- package/build/features/connect/screens/NID/NID.js +61 -0
- package/build/features/connect/screens/NID/index.d.ts +3 -0
- package/build/features/connect/screens/NID/index.js +2 -0
- package/build/features/connect/screens/{MID → NID}/validation.d.ts +11 -18
- package/build/features/connect/screens/{MID → NID}/validation.js +10 -15
- package/build/features/connect/screens/OTP/OTP.d.ts +5 -11
- package/build/features/connect/screens/OTP/OTP.js +78 -72
- package/build/features/connect/screens/OTP/OTPInput.d.ts +5 -5
- package/build/features/connect/screens/OTP/OTPInput.js +65 -39
- 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 +58 -49
- 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 +15 -14
- 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 -124
- 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 -81
- 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 +35 -35
- 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 +14 -14
- 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 +14 -14
- 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 +8 -0
- package/build/features/shared/Button/AbsherButton.js +70 -0
- package/build/features/shared/Button/Button.d.ts +11 -8
- package/build/features/shared/Button/Button.js +83 -53
- package/build/features/shared/Button/index.d.ts +4 -2
- package/build/features/shared/Button/index.js +4 -2
- 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 -28
- 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 +63 -63
- 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 +14 -14
- 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 +9 -8
- package/build/hooks/index.js +9 -8
- package/build/hooks/useAppConfig.d.ts +11 -0
- package/build/hooks/useAppConfig.js +34 -0
- package/build/hooks/useAppDispatch.d.ts +4 -4
- 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/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 +64 -63
- 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 -0
- package/build/utils/device.js +13 -0
- package/build/utils/html.d.ts +4 -4
- package/build/utils/html.js +26 -26
- package/build/utils/index.d.ts +8 -7
- package/build/utils/index.js +8 -7
- package/build/utils/object.d.ts +1 -1
- package/build/utils/object.js +7 -7
- package/build/utils/storage.d.ts +5 -5
- package/build/utils/storage.js +21 -21
- package/build/utils/string.d.ts +8 -3
- package/build/utils/string.js +39 -12
- package/build/utils/style.d.ts +1 -1
- package/build/utils/style.js +1 -1
- package/build/utils/validation.d.ts +14 -13
- package/build/utils/validation.js +42 -39
- package/package.json +123 -120
- package/build/features/app/connect/midStore.d.ts +0 -10
- package/build/features/app/connect/midStore.js +0 -18
- 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/index.d.ts +0 -3
- package/build/features/connect/screens/MID/index.js +0 -2
- 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.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
package/package.json
CHANGED
|
@@ -1,120 +1,123 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "connect library, auth",
|
|
5
|
-
"private": false,
|
|
6
|
-
"main": "build/index.js",
|
|
7
|
-
"module": "build/index.js",
|
|
8
|
-
"types": "build/index.d.ts",
|
|
9
|
-
"files": [
|
|
10
|
-
"build",
|
|
11
|
-
"README.md"
|
|
12
|
-
],
|
|
13
|
-
"scripts": {
|
|
14
|
-
"husky:setup": "npx husky install",
|
|
15
|
-
"prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\" *.json *.js",
|
|
16
|
-
"prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\" *.json *.js",
|
|
17
|
-
"lint": "eslint src --color --ext .js,.jsx,.ts,.tsx,.json",
|
|
18
|
-
"lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
|
|
19
|
-
"start": "cross-env NODE_ENV=development webpack serve",
|
|
20
|
-
"build": "cross-env NODE_ENV=production webpack",
|
|
21
|
-
"copy:files": "copyfiles -u 1 src/**/*.css build/",
|
|
22
|
-
"tsc:alias": "tsc-alias -p tsconfig.json",
|
|
23
|
-
"ts:build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json && yarn copy:files",
|
|
24
|
-
"push": "npm publish --access public"
|
|
25
|
-
},
|
|
26
|
-
"keywords": [],
|
|
27
|
-
"author": {
|
|
28
|
-
"name": "Ahmed Elsharkawy",
|
|
29
|
-
"email": "a.elsharkawy@tap.company"
|
|
30
|
-
},
|
|
31
|
-
"license": "ISC",
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@babel/core": "^7.18.6",
|
|
34
|
-
"@babel/preset-env": "^7.18.6",
|
|
35
|
-
"@babel/preset-react": "^7.18.6",
|
|
36
|
-
"@babel/preset-typescript": "^7.18.6",
|
|
37
|
-
"@types/lodash-es": "^4.17.6",
|
|
38
|
-
"@types/react": "^18.0.15",
|
|
39
|
-
"@types/react-calendar": "~3.5.1",
|
|
40
|
-
"@types/react-dom": "^18.0.6",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
|
42
|
-
"@typescript-eslint/parser": "^5.30.5",
|
|
43
|
-
"babel-loader": "^8.2.5",
|
|
44
|
-
"copyfiles": "^2.4.1",
|
|
45
|
-
"cross-env": "^7.0.3",
|
|
46
|
-
"css-loader": "^6.7.1",
|
|
47
|
-
"css-minimizer-webpack-plugin": "^4.0.0",
|
|
48
|
-
"eslint": "^8.19.0",
|
|
49
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
50
|
-
"eslint-config-prettier": "^8.5.0",
|
|
51
|
-
"eslint-plugin-import": "^2.26.0",
|
|
52
|
-
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
53
|
-
"eslint-plugin-node": "^11.1.0",
|
|
54
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
55
|
-
"eslint-plugin-react": "^7.30.1",
|
|
56
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
57
|
-
"file-loader": "^6.2.0",
|
|
58
|
-
"fork-ts-checker-webpack-plugin": "^7.2.12",
|
|
59
|
-
"html-loader": "^3.1.2",
|
|
60
|
-
"html-webpack-plugin": "^5.5.0",
|
|
61
|
-
"husky": "^8.0.1",
|
|
62
|
-
"lint-staged": "^13.0.3",
|
|
63
|
-
"mini-css-extract-plugin": "^2.6.1",
|
|
64
|
-
"prettier": "^2.7.1",
|
|
65
|
-
"sass": "^1.53.0",
|
|
66
|
-
"sass-loader": "^13.0.2",
|
|
67
|
-
"style-loader": "^3.3.1",
|
|
68
|
-
"terser-webpack-plugin": "^5.3.3",
|
|
69
|
-
"tsc-alias": "^1.6.11",
|
|
70
|
-
"typescript": "^4.7.4",
|
|
71
|
-
"webpack": "^5.73.0",
|
|
72
|
-
"webpack-cli": "^4.10.0",
|
|
73
|
-
"webpack-dev-server": "^4.9.3",
|
|
74
|
-
"webpack-merge": "^5.8.0"
|
|
75
|
-
},
|
|
76
|
-
"dependencies": {
|
|
77
|
-
"@emotion/react": "^11.9.3",
|
|
78
|
-
"@emotion/styled": "^11.9.3",
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"@mui/material": "^5.8.
|
|
82
|
-
"@
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"react
|
|
91
|
-
"react-
|
|
92
|
-
"react-
|
|
93
|
-
"react-
|
|
94
|
-
"react-
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
+
"version": "1.0.22",
|
|
4
|
+
"description": "connect library, auth",
|
|
5
|
+
"private": false,
|
|
6
|
+
"main": "build/index.js",
|
|
7
|
+
"module": "build/index.js",
|
|
8
|
+
"types": "build/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"build",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"husky:setup": "npx husky install",
|
|
15
|
+
"prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\" *.json *.js",
|
|
16
|
+
"prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\" *.json *.js",
|
|
17
|
+
"lint": "eslint src --color --ext .js,.jsx,.ts,.tsx,.json",
|
|
18
|
+
"lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
|
|
19
|
+
"start": "cross-env NODE_ENV=development webpack serve",
|
|
20
|
+
"build": "cross-env NODE_ENV=production webpack",
|
|
21
|
+
"copy:files": "copyfiles -u 1 src/**/*.css build/",
|
|
22
|
+
"tsc:alias": "tsc-alias -p tsconfig.json",
|
|
23
|
+
"ts:build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json && yarn copy:files",
|
|
24
|
+
"push": "npm publish --access public"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [],
|
|
27
|
+
"author": {
|
|
28
|
+
"name": "Ahmed Elsharkawy",
|
|
29
|
+
"email": "a.elsharkawy@tap.company"
|
|
30
|
+
},
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@babel/core": "^7.18.6",
|
|
34
|
+
"@babel/preset-env": "^7.18.6",
|
|
35
|
+
"@babel/preset-react": "^7.18.6",
|
|
36
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
37
|
+
"@types/lodash-es": "^4.17.6",
|
|
38
|
+
"@types/react": "^18.0.15",
|
|
39
|
+
"@types/react-calendar": "~3.5.1",
|
|
40
|
+
"@types/react-dom": "^18.0.6",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
|
42
|
+
"@typescript-eslint/parser": "^5.30.5",
|
|
43
|
+
"babel-loader": "^8.2.5",
|
|
44
|
+
"copyfiles": "^2.4.1",
|
|
45
|
+
"cross-env": "^7.0.3",
|
|
46
|
+
"css-loader": "^6.7.1",
|
|
47
|
+
"css-minimizer-webpack-plugin": "^4.0.0",
|
|
48
|
+
"eslint": "^8.19.0",
|
|
49
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
50
|
+
"eslint-config-prettier": "^8.5.0",
|
|
51
|
+
"eslint-plugin-import": "^2.26.0",
|
|
52
|
+
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
53
|
+
"eslint-plugin-node": "^11.1.0",
|
|
54
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
55
|
+
"eslint-plugin-react": "^7.30.1",
|
|
56
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
57
|
+
"file-loader": "^6.2.0",
|
|
58
|
+
"fork-ts-checker-webpack-plugin": "^7.2.12",
|
|
59
|
+
"html-loader": "^3.1.2",
|
|
60
|
+
"html-webpack-plugin": "^5.5.0",
|
|
61
|
+
"husky": "^8.0.1",
|
|
62
|
+
"lint-staged": "^13.0.3",
|
|
63
|
+
"mini-css-extract-plugin": "^2.6.1",
|
|
64
|
+
"prettier": "^2.7.1",
|
|
65
|
+
"sass": "^1.53.0",
|
|
66
|
+
"sass-loader": "^13.0.2",
|
|
67
|
+
"style-loader": "^3.3.1",
|
|
68
|
+
"terser-webpack-plugin": "^5.3.3",
|
|
69
|
+
"tsc-alias": "^1.6.11",
|
|
70
|
+
"typescript": "^4.7.4",
|
|
71
|
+
"webpack": "^5.73.0",
|
|
72
|
+
"webpack-cli": "^4.10.0",
|
|
73
|
+
"webpack-dev-server": "^4.9.3",
|
|
74
|
+
"webpack-merge": "^5.8.0"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"@emotion/react": "^11.9.3",
|
|
78
|
+
"@emotion/styled": "^11.9.3",
|
|
79
|
+
"@fingerprintjs/fingerprintjs": "~3.3.4",
|
|
80
|
+
"@hookform/resolvers": "^2.9.6",
|
|
81
|
+
"@mui/icons-material": "^5.8.4",
|
|
82
|
+
"@mui/material": "^5.8.7",
|
|
83
|
+
"@reduxjs/toolkit": "^1.8.3",
|
|
84
|
+
"axios": "^0.27.2",
|
|
85
|
+
"device-detector-js": "^3.0.3",
|
|
86
|
+
"i18next": "^21.8.14",
|
|
87
|
+
"i18next-browser-languagedetector": "^6.1.4",
|
|
88
|
+
"i18next-http-backend": "^1.4.1",
|
|
89
|
+
"lodash-es": "^4.17.21",
|
|
90
|
+
"react": "^18.2.0",
|
|
91
|
+
"react-calendar": "~3.7.0",
|
|
92
|
+
"react-dom": "^18.2.0",
|
|
93
|
+
"react-hook-form": "^7.33.1",
|
|
94
|
+
"react-i18next": "^11.18.1",
|
|
95
|
+
"react-otp-input": "^2.4.0",
|
|
96
|
+
"react-redux": "^8.0.2",
|
|
97
|
+
"react-spring-bottom-sheet": "^3.4.1",
|
|
98
|
+
"yup": "^0.32.11"
|
|
99
|
+
},
|
|
100
|
+
"peerDependencies": {
|
|
101
|
+
"react": "^18.2.0",
|
|
102
|
+
"react-dom": "^18.2.0"
|
|
103
|
+
},
|
|
104
|
+
"lint-staged": {
|
|
105
|
+
"src/**/*.{ts,tsx,json,js,jsx}": [
|
|
106
|
+
"yarn run prettier:fix",
|
|
107
|
+
"yarn run lint",
|
|
108
|
+
"git add ."
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"browserslist": {
|
|
112
|
+
"production": [
|
|
113
|
+
">0.2%",
|
|
114
|
+
"not dead",
|
|
115
|
+
"not op_mini all"
|
|
116
|
+
],
|
|
117
|
+
"development": [
|
|
118
|
+
"last 1 chrome version",
|
|
119
|
+
"last 1 firefox version",
|
|
120
|
+
"last 1 safari version"
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { RootState } from '../../../app/store';
|
|
2
|
-
import { SharedState } from '../../../@types';
|
|
3
|
-
export interface MIDData {
|
|
4
|
-
}
|
|
5
|
-
export interface MIDState extends SharedState<MIDData> {
|
|
6
|
-
}
|
|
7
|
-
export declare const midSlice: import("@reduxjs/toolkit").Slice<MIDState, {}, "connect/mid">;
|
|
8
|
-
declare const _default: import("redux").Reducer<MIDState, import("redux").AnyAction>;
|
|
9
|
-
export default _default;
|
|
10
|
-
export declare const midSelector: (state: RootState) => MIDState;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var _a;
|
|
2
|
-
import { createSlice } from '@reduxjs/toolkit';
|
|
3
|
-
var initialState = {
|
|
4
|
-
error: null,
|
|
5
|
-
loading: false,
|
|
6
|
-
data: {}
|
|
7
|
-
};
|
|
8
|
-
export var midSlice = createSlice({
|
|
9
|
-
name: 'connect/mid',
|
|
10
|
-
initialState: initialState,
|
|
11
|
-
reducers: {},
|
|
12
|
-
extraReducers: function (builder) {
|
|
13
|
-
console.log(builder);
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
export var _b = _a = midSlice.actions;
|
|
17
|
-
export default midSlice.reducer;
|
|
18
|
-
export var midSelector = function (state) { return state.mid; };
|
|
@@ -1,87 +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 Box from '@mui/material/Box';
|
|
15
|
-
import { useForm, FormProvider } from 'react-hook-form';
|
|
16
|
-
import { yupResolver } from '@hookform/resolvers/yup';
|
|
17
|
-
import { useTranslation } from 'react-i18next';
|
|
18
|
-
import { styled } from '@mui/material/styles';
|
|
19
|
-
import Collapse from '../../../../components/Collapse';
|
|
20
|
-
import Form from '../../../../components/Form';
|
|
21
|
-
import Button from '../../../shared/Button';
|
|
22
|
-
import { useAppDispatch } from '../../../../hooks';
|
|
23
|
-
import { handleNextScreenStep } from '../../../../app/settings';
|
|
24
|
-
import ScreenContainer from '../../../shared/Containers/ScreenContainer';
|
|
25
|
-
import { useLanguage } from '../../../../hooks';
|
|
26
|
-
import MIDTitle from './MIDTitle';
|
|
27
|
-
import MobileNumber from './MobileNumber';
|
|
28
|
-
import IDNumber from './IDNumber';
|
|
29
|
-
import BusinessCountry from './BusinessCountry';
|
|
30
|
-
import { NIDValidationSchema, PhoneValidationSchema } from './validation';
|
|
31
|
-
import { countriesCode, defaultCountry, businessCountries } from '../../../../constants/dummy';
|
|
32
|
-
import DOB from './DOB';
|
|
33
|
-
var FormStyled = styled(Form)(function () { return ({
|
|
34
|
-
display: 'flex',
|
|
35
|
-
flexDirection: 'column'
|
|
36
|
-
}); });
|
|
37
|
-
var InputsContainerStyled = styled(Box)(function (_a) {
|
|
38
|
-
var _b;
|
|
39
|
-
var theme = _a.theme, listActive = _a.listActive;
|
|
40
|
-
return (_b = {
|
|
41
|
-
paddingBottom: theme.spacing(listActive ? 0 : 5)
|
|
42
|
-
},
|
|
43
|
-
_b[theme.transitions.create(['padding-bottom'])] = {
|
|
44
|
-
duration: theme.transitions.duration.standard
|
|
45
|
-
},
|
|
46
|
-
_b);
|
|
47
|
-
});
|
|
48
|
-
var ListType;
|
|
49
|
-
(function (ListType) {
|
|
50
|
-
ListType["BusinessList"] = "BusinessList";
|
|
51
|
-
ListType["CountryCodeList"] = "CountryCodeList";
|
|
52
|
-
})(ListType || (ListType = {}));
|
|
53
|
-
var MID = function (_a) {
|
|
54
|
-
var _b = React.useState(false), collapse = _b[0], setCollapse = _b[1];
|
|
55
|
-
var _c = React.useState(false), isNID = _c[0], setIsNID = _c[1];
|
|
56
|
-
var _d = React.useState(10), mobileLength = _d[0], setMobileLength = _d[1];
|
|
57
|
-
var _e = React.useState(), listType = _e[0], setListType = _e[1];
|
|
58
|
-
var dispatch = useAppDispatch();
|
|
59
|
-
var methods = useForm({
|
|
60
|
-
resolver: yupResolver(isNID ? NIDValidationSchema : PhoneValidationSchema(mobileLength)),
|
|
61
|
-
defaultValues: {
|
|
62
|
-
countryCode: defaultCountry,
|
|
63
|
-
businessCountry: defaultCountry,
|
|
64
|
-
nid: '',
|
|
65
|
-
dob: '1998-08-22',
|
|
66
|
-
mobile: null
|
|
67
|
-
},
|
|
68
|
-
mode: 'onChange'
|
|
69
|
-
});
|
|
70
|
-
var t = useTranslation().t;
|
|
71
|
-
var isAr = useLanguage().isAr;
|
|
72
|
-
var handleMenuListClick = function (flag) {
|
|
73
|
-
setListType(flag);
|
|
74
|
-
};
|
|
75
|
-
var onSubmit = function (data) {
|
|
76
|
-
console.log('data', data);
|
|
77
|
-
dispatch(handleNextScreenStep());
|
|
78
|
-
};
|
|
79
|
-
var handleCollapseOpenClose = function (flag) {
|
|
80
|
-
setCollapse(flag);
|
|
81
|
-
};
|
|
82
|
-
var isBusinessListActive = listType === ListType.BusinessList;
|
|
83
|
-
var isCountryListActive = listType === ListType.CountryCodeList;
|
|
84
|
-
var listActive = isBusinessListActive || isCountryListActive;
|
|
85
|
-
return (_jsxs(ScreenContainer, { children: [_jsx(MIDTitle, { show: !listActive, title: t('join_our_community'), description: t('ide_terms_and_conditions_description') }), _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsxs(InputsContainerStyled, __assign({ listActive: listActive }, { children: [_jsx(Collapse, __assign({ in: !collapse }, { children: _jsx(BusinessCountry, { show: !isCountryListActive, setMobileLength: setMobileLength, countries: businessCountries, onListOpen: function () { return handleMenuListClick(ListType.BusinessList); }, onListClose: function () { return handleMenuListClick(); } }) })), _jsx(Collapse, __assign({ in: !isNID }, { children: _jsx(MobileNumber, { show: !isBusinessListActive, setMobileLength: setMobileLength, countries: countriesCode, onSwitchToIdNumber: function () { return setIsNID(true); }, onListOpen: function () { return handleMenuListClick(ListType.CountryCodeList); }, onListClose: function () { return handleMenuListClick(); } }) })), _jsxs(Collapse, __assign({ in: isNID }, { children: [_jsx(Collapse, __assign({ in: !collapse }, { children: _jsx(IDNumber, { show: !listActive, onSwitchToMobileNumber: function () { return setIsNID(false); } }) })), _jsx(Collapse, __assign({ in: !listActive }, { children: _jsx(DOB, { onDateClicked: handleCollapseOpenClose }) }))] }))] })), _jsx(Collapse, __assign({ in: !listActive && !collapse }, { children: _jsx(Button, __assign({ isAr: isAr, disabled: !methods.formState.isValid, loading: false }, { children: t('next') })) }))] })) }))] }));
|
|
86
|
-
};
|
|
87
|
-
export default React.memo(MID);
|
|
@@ -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,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);
|