@tap-payments/auth-jsconnect 2.4.29-test → 2.4.31-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/api/account.js +1 -1
- package/build/api/auth.d.ts +1 -1
- package/build/api/auth.js +1 -1
- package/build/api/availabilityServices.js +1 -1
- package/build/api/axios.js +2 -2
- package/build/api/board.js +1 -1
- package/build/api/brand.d.ts +1 -1
- package/build/api/brand.js +1 -1
- package/build/api/country.js +1 -1
- package/build/api/data.js +1 -1
- package/build/api/document.js +1 -1
- package/build/api/entity.js +1 -1
- package/build/api/file.js +1 -1
- package/build/api/firebase.js +1 -1
- package/build/api/individual.js +1 -1
- package/build/api/init.js +1 -1
- package/build/api/lead.d.ts +1 -1
- package/build/api/lead.js +1 -1
- package/build/api/location.js +1 -1
- package/build/api/operator.js +1 -1
- package/build/api/user.js +1 -1
- package/build/app/rootReducer.d.ts +10 -10
- package/build/app/rootReducer.js +10 -10
- package/build/app/settings.d.ts +2 -2
- package/build/app/settings.js +5 -5
- package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
- package/build/components/AnimationFlow/AnimationFlow.js +1 -1
- package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
- package/build/components/AnimationFlow/BottomSheet.js +3 -3
- package/build/components/AnimationFlow/Dialog.d.ts +1 -1
- package/build/components/AnimationFlow/Dialog.js +4 -4
- package/build/components/ArabicDatePicker/ArabicDatePicker.js +2 -2
- package/build/components/ArabicDatePicker/style.css +24 -0
- package/build/components/DatePicker/DatePicker.js +3 -3
- package/build/components/DatePicker/customStyle.css +86 -0
- package/build/components/FileInput/DragAndDrop.js +6 -6
- package/build/components/FileInput/UploadInput.js +2 -2
- package/build/components/Footer/Footer.js +3 -3
- package/build/components/Input/Input.js +2 -2
- package/build/components/OTPTimer/OTPTimer.js +1 -1
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.js +2 -2
- package/build/components/Tooltip/Tooltip.js +2 -2
- package/build/constants/app.d.ts +1 -1
- package/build/constants/app.js +1 -1
- package/build/features/app/bank/bankStore.d.ts +3 -2
- package/build/features/app/bank/bankStore.js +35 -23
- package/build/features/app/brand/brandStore.d.ts +4 -2
- package/build/features/app/brand/brandStore.js +71 -51
- package/build/features/app/business/businessStore.d.ts +2 -2
- package/build/features/app/business/businessStore.js +5 -5
- package/build/features/app/connect/connectStore.d.ts +2 -2
- package/build/features/app/connect/connectStore.js +5 -5
- package/build/features/app/connectExpress/connectExpressStore.d.ts +2 -2
- package/build/features/app/connectExpress/connectExpressStore.js +6 -6
- package/build/features/app/entity/entityStore.d.ts +6 -2
- package/build/features/app/entity/entityStore.js +92 -58
- package/build/features/app/individual/individualStore.d.ts +147 -0
- package/build/features/app/individual/individualStore.js +22 -22
- package/build/features/app/password/passwordStore.d.ts +4 -2
- package/build/features/app/password/passwordStore.js +74 -38
- package/build/features/app/signIn/signInStore.d.ts +2 -2
- package/build/features/app/signIn/signInStore.js +3 -3
- package/build/features/app/tax/taxStore.d.ts +3 -2
- package/build/features/app/tax/taxStore.js +34 -23
- package/build/features/bank/Bank.d.ts +1 -1
- package/build/features/bank/Bank.js +10 -10
- package/build/features/bank/screens/BankDetails/BankDetails.js +9 -9
- package/build/features/bank/screens/BankDetails/BankName.js +8 -8
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +1 -1
- package/build/features/bank/screens/BankDetails/BankStatement.js +6 -6
- package/build/features/bank/screens/BankDetails/Beneficiary.js +6 -6
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
- package/build/features/bank/screens/BankDetails/IBAN.js +10 -10
- package/build/features/bank/screens/BankDetails/validation.js +1 -1
- package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/bank/screens/Success/Success.js +3 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/bank/screens/Verify/OTPInput.js +5 -5
- package/build/features/bank/screens/Verify/Verify.js +8 -8
- package/build/features/brand/Brand.d.ts +1 -1
- package/build/features/brand/Brand.js +10 -10
- package/build/features/brand/screens/BrandActivities/ActivitiesList.js +12 -12
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +7 -7
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +11 -11
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +8 -8
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +12 -12
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +10 -10
- package/build/features/brand/screens/BrandActivities/TAC.js +10 -10
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +8 -8
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +9 -9
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +1 -1
- package/build/features/brand/screens/BrandInfo/BrandLogo.js +7 -7
- package/build/features/brand/screens/BrandInfo/BrandName.js +9 -9
- package/build/features/brand/screens/BrandInfo/SalesChannels.js +4 -4
- package/build/features/brand/screens/BrandInfo/Segments.js +9 -9
- package/build/features/brand/screens/BrandInfo/TeamSize.js +9 -9
- package/build/features/brand/screens/BrandInfo/validation.js +1 -1
- package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/brand/screens/Success/Success.js +3 -3
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/brand/screens/Verify/OTPInput.js +5 -5
- package/build/features/brand/screens/Verify/Verify.js +8 -8
- package/build/features/business/Business.d.ts +1 -1
- package/build/features/business/Business.js +10 -10
- package/build/features/business/screens/Activities/Activities.js +7 -7
- package/build/features/business/screens/Activities/ActivitiesList.js +12 -12
- package/build/features/business/screens/Activities/LicenseName.js +6 -6
- package/build/features/business/screens/Activities/OperationStartDate.js +5 -5
- package/build/features/business/screens/BrandDetails/BrandDetails.js +7 -7
- package/build/features/business/screens/BrandDetails/BrandName.js +4 -4
- package/build/features/business/screens/BrandDetails/Header.js +5 -5
- package/build/features/business/screens/BrandDetails/LicenseInfo.js +4 -4
- package/build/features/business/screens/BrandDetails/SalesChannel.js +5 -5
- package/build/features/business/screens/BusinessType/Article.d.ts +1 -1
- package/build/features/business/screens/BusinessType/Article.js +7 -7
- package/build/features/business/screens/BusinessType/BusinessType.js +10 -10
- package/build/features/business/screens/BusinessType/EntityLicenseList.js +13 -13
- package/build/features/business/screens/BusinessType/EntityName.js +6 -6
- package/build/features/business/screens/BusinessType/LicenseCertificate.js +7 -7
- package/build/features/business/screens/BusinessType/LicenseList.js +13 -13
- package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -10
- package/build/features/business/screens/BusinessType/LicenseType.js +14 -14
- package/build/features/business/screens/BusinessType/SelectType.js +6 -6
- package/build/features/business/screens/BusinessType/validation.js +2 -2
- package/build/features/business/screens/CivilID/CivilID.js +6 -6
- package/build/features/business/screens/CivilID/IDNumber.js +6 -6
- package/build/features/business/screens/Customers/CustomerLocations.js +11 -11
- package/build/features/business/screens/Customers/Customers.js +8 -8
- package/build/features/business/screens/Customers/ExpectedCustomers.js +9 -9
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +11 -11
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/Customers/RefundPolicy.js +10 -10
- package/build/features/business/screens/Customers/TransactionPolicy.js +7 -7
- package/build/features/business/screens/IDBOD/DOB.js +5 -5
- package/build/features/business/screens/IDBOD/ID.js +5 -5
- package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
- package/build/features/business/screens/OTP/OTP.js +9 -9
- package/build/features/business/screens/OTP/OTPInput.js +4 -4
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/business/screens/Success/Success.js +3 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/business/screens/Verify/OTPInput.js +5 -5
- package/build/features/business/screens/Verify/Verify.js +9 -9
- package/build/features/business/screens/VerifyPACI/VerifyPACI.js +4 -4
- package/build/features/connect/Connect.d.ts +1 -1
- package/build/features/connect/Connect.js +10 -10
- package/build/features/connect/screens/CivilID/CivilID.js +8 -8
- package/build/features/connect/screens/CivilID/IDNumber.js +6 -6
- package/build/features/connect/screens/Individual/Email.js +6 -6
- package/build/features/connect/screens/Individual/Individual.js +11 -11
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Individual/MobileNumber.js +12 -12
- package/build/features/connect/screens/Individual/Name.js +5 -5
- package/build/features/connect/screens/Individual/validation.js +1 -1
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +10 -10
- package/build/features/connect/screens/Merchant/BrandName.js +8 -8
- package/build/features/connect/screens/Merchant/Merchant.js +8 -8
- package/build/features/connect/screens/Merchant/SalesChannels.js +4 -4
- package/build/features/connect/screens/Merchant/Segments.js +9 -9
- package/build/features/connect/screens/Merchant/TAC.js +9 -9
- package/build/features/connect/screens/Merchant/TeamSize.js +9 -9
- package/build/features/connect/screens/Merchant/validation.js +1 -1
- package/build/features/connect/screens/Mobile/Mobile.js +11 -11
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/connect/screens/Mobile/Title.js +2 -2
- package/build/features/connect/screens/NID/DOB.js +5 -5
- package/build/features/connect/screens/NID/IDNumber.js +7 -7
- package/build/features/connect/screens/NID/NID.js +8 -8
- package/build/features/connect/screens/OTP/OTP.js +10 -10
- package/build/features/connect/screens/OTP/OTPInput.js +5 -5
- package/build/features/connect/screens/ThankYou/ThankYou.js +4 -4
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +5 -5
- package/build/features/connectExpress/ConnectExpress.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.js +10 -10
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +3 -3
- package/build/features/connectExpress/screens/Brand/Brand.js +9 -9
- package/build/features/connectExpress/screens/CivilID/CivilID.js +8 -8
- package/build/features/connectExpress/screens/CivilID/IDNumber.js +6 -6
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +6 -6
- package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +6 -6
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +8 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +8 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +13 -13
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +10 -10
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +12 -12
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +8 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +2 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +11 -11
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +6 -6
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +11 -11
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +5 -5
- package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +1 -1
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +5 -5
- package/build/features/connectExpress/screens/IdentityOTP/OTP.js +10 -10
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +5 -5
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +4 -4
- package/build/features/connectExpress/screens/Mobile/Mobile.js +10 -10
- package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/connectExpress/screens/Mobile/TAC.js +8 -8
- package/build/features/connectExpress/screens/Mobile/Title.js +2 -2
- package/build/features/connectExpress/screens/NID/DOB.js +5 -5
- package/build/features/connectExpress/screens/NID/IDNumber.js +9 -9
- package/build/features/connectExpress/screens/NID/NID.js +8 -8
- package/build/features/connectExpress/screens/NID/TAC.js +8 -8
- package/build/features/connectExpress/screens/NIDMissed/DOB.js +5 -5
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +7 -7
- package/build/features/connectExpress/screens/NIDMissed/NID.js +7 -7
- package/build/features/connectExpress/screens/OTP/OTP.js +10 -10
- package/build/features/connectExpress/screens/OTP/OTPInput.js +5 -5
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +4 -4
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.js +4 -4
- package/build/features/entity/Entity.d.ts +1 -1
- package/build/features/entity/Entity.js +10 -10
- package/build/features/entity/screens/EntityCapital/ActivityList.js +12 -12
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +7 -7
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +6 -6
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +7 -7
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +7 -7
- package/build/features/entity/screens/EntityName/Article.d.ts +1 -1
- package/build/features/entity/screens/EntityName/Article.js +7 -7
- package/build/features/entity/screens/EntityName/EntityName.js +9 -9
- package/build/features/entity/screens/EntityName/EntityTypeList.js +12 -12
- package/build/features/entity/screens/EntityName/ExpiryDate.js +6 -6
- package/build/features/entity/screens/EntityName/IssuingDate.js +5 -5
- package/build/features/entity/screens/EntityName/LegalName.js +6 -6
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -1
- package/build/features/entity/screens/EntityName/LicenseCertificate.js +8 -8
- package/build/features/entity/screens/EntityName/LicenseNumber.js +10 -10
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +7 -7
- package/build/features/entity/screens/EntityName/validation.js +2 -2
- package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/entity/screens/Success/Success.js +3 -3
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/entity/screens/Verify/OTPInput.js +5 -5
- package/build/features/entity/screens/Verify/Verify.js +8 -8
- package/build/features/featuresScreens.d.ts +1 -1
- package/build/features/featuresScreens.js +79 -79
- package/build/features/individual/Individual.d.ts +1 -1
- package/build/features/individual/Individual.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +11 -11
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +11 -11
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +9 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +7 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +1 -1
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.js +3 -3
- package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.js +8 -8
- package/build/features/individual/screens/IndividualList/IndividualList.js +8 -8
- package/build/features/individual/screens/IndividualList/MobileNumber.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/MobileNumber.js +11 -11
- package/build/features/individual/screens/IndividualList/UserList.js +11 -11
- package/build/features/individual/screens/IndividualList/validation.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/validation.js +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +9 -9
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +8 -8
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +6 -6
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +4 -4
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +7 -7
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +8 -8
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +6 -6
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +9 -9
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +8 -8
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +10 -10
- package/build/features/individual/screens/IndividualPersonalInfo/Name.js +5 -5
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +8 -8
- package/build/features/individual/screens/IndividualPersonalInfo/validation.js +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.d.ts +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +11 -11
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +8 -8
- package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/individual/screens/Success/Success.js +3 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/individual/screens/Verify/OTPInput.js +5 -5
- package/build/features/individual/screens/Verify/Verify.js +8 -8
- package/build/features/password/Password.d.ts +1 -1
- package/build/features/password/Password.js +10 -10
- package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
- package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -8
- package/build/features/password/screens/CreatePassword/Password.js +6 -6
- package/build/features/password/screens/OTP/OTP.js +9 -9
- package/build/features/password/screens/OTP/OTPInput.js +4 -4
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/password/screens/Success/Success.js +4 -4
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/password/screens/Verify/OTPInput.js +5 -5
- package/build/features/password/screens/Verify/Verify.js +8 -8
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
- package/build/features/shared/Address/Address.d.ts +1 -1
- package/build/features/shared/Address/Address.js +2 -2
- package/build/features/shared/Address/CountryList.d.ts +2 -2
- package/build/features/shared/Address/CountryList.js +7 -7
- package/build/features/shared/Address/InputSelect.d.ts +1 -1
- package/build/features/shared/Address/InputSelect.js +7 -7
- package/build/features/shared/Background/Background.js +2 -2
- package/build/features/shared/Background/LogoBackground.js +3 -3
- package/build/features/shared/Button/AbsherButton.d.ts +1 -1
- package/build/features/shared/Button/AbsherButton.js +3 -3
- package/build/features/shared/Button/Button.d.ts +1 -1
- package/build/features/shared/Button/Button.js +7 -7
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
- package/build/features/shared/Button/EmailProvidersButtons.js +3 -3
- package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
- package/build/features/shared/Button/FlowsButtons.js +7 -7
- package/build/features/shared/Button/IndividualActionButtons.d.ts +1 -1
- package/build/features/shared/Button/IndividualActionButtons.js +5 -5
- package/build/features/shared/Button/MobileButton.d.ts +1 -1
- package/build/features/shared/Button/MobileButton.js +3 -3
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.js +4 -4
- package/build/features/shared/DataLoading/DataLoading.js +4 -4
- package/build/features/shared/Dialog/CloseDialog.js +2 -2
- package/build/features/shared/Dialog/DialogContainer.js +2 -2
- package/build/features/shared/EndAdornment/EndAdornment.js +2 -2
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.js +2 -2
- package/build/features/shared/Footer/Footer.js +4 -4
- package/build/features/shared/Footer/PoweredByFooter.js +3 -3
- package/build/features/shared/GenericError/GenericError.js +4 -4
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/shared/Input/Input.js +2 -2
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/OTP/OTP.js +3 -3
- package/build/features/shared/PaciVerification/PaciVerification.js +5 -5
- package/build/features/shared/PaciVerification/VerifyPACILoading.js +3 -3
- package/build/features/shared/PaciVerification/VerifyPACISuccess.js +1 -1
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -1
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +9 -9
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
- package/build/features/shared/SalesChannels/SalesChannel.js +6 -6
- package/build/features/shared/Search/Search.js +1 -1
- package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +6 -6
- package/build/features/shared/SuccessScreen/SuccessScreen.js +6 -6
- package/build/features/shared/UploadFile/FileUpload.d.ts +1 -1
- package/build/features/shared/UploadFile/FileUpload.js +8 -8
- package/build/features/shared/UploadFile/UploadFile.js +10 -10
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +2 -2
- package/build/features/shared/UploadFile/UploadWrapper.js +7 -7
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +1 -1
- package/build/features/shared/UploadMultipleFile/UploadFile.js +8 -8
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +2 -2
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +7 -7
- package/build/features/signIn/SignIn.d.ts +1 -1
- package/build/features/signIn/SignIn.js +10 -10
- package/build/features/signIn/screens/Email/Email.js +8 -8
- package/build/features/signIn/screens/Email/EmailField.js +5 -5
- package/build/features/signIn/screens/Email/validation.js +1 -1
- package/build/features/signIn/screens/Mobile/Mobile.js +9 -9
- package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/signIn/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/signIn/screens/OTP/OTP.js +9 -9
- package/build/features/signIn/screens/OTP/OTPInput.js +4 -4
- package/build/features/signIn/screens/Password/Password.js +7 -7
- package/build/features/signIn/screens/Password/PasswordInput.js +3 -3
- package/build/features/tax/Tax.d.ts +1 -1
- package/build/features/tax/Tax.js +10 -10
- package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/tax/screens/Success/Success.js +3 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +8 -8
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -1
- package/build/features/tax/screens/TaxDetails/TaxDocument.js +8 -8
- package/build/features/tax/screens/TaxDetails/VATId.js +6 -6
- package/build/features/tax/screens/Verify/OTPInput.js +5 -5
- package/build/features/tax/screens/Verify/Verify.js +8 -8
- package/build/hooks/useAppConfig.d.ts +1 -1
- package/build/hooks/useAppConfig.js +4 -4
- package/build/hooks/useAppSelector.d.ts +1 -1
- package/build/hooks/useAppTheme.d.ts +1 -1
- package/build/hooks/useAppTheme.js +3 -3
- package/build/hooks/useCountry.js +1 -1
- package/build/hooks/useDataNoneEditable.d.ts +1 -1
- package/build/hooks/useDataNoneEditable.js +1 -1
- package/build/hooks/useDataVerified.d.ts +1 -1
- package/build/hooks/useDataVerified.js +1 -1
- package/build/hooks/useErrorListener.js +1 -1
- package/build/hooks/useExcludeReadOnlyFelids.js +1 -1
- package/build/hooks/useFormReadOnly.js +1 -1
- package/build/hooks/useLanguage.js +1 -1
- package/build/hooks/useRedirectionListener.js +1 -1
- package/build/hooks/useScreen.js +1 -1
- package/build/hooks/useStepStartedListener.js +1 -1
- package/build/hooks/useVerifyToken.d.ts +1 -1
- package/build/hooks/useVerifyToken.js +2 -2
- package/build/i18n.js +1 -1
- package/build/index.css +140 -0
- package/build/index.d.ts +10 -10
- package/build/index.js +10 -10
- package/build/theme/theme.d.ts +1 -1
- package/build/utils/array.d.ts +4 -3
- package/build/utils/array.js +67 -1
- package/build/utils/locale.d.ts +1 -1
- package/build/utils/locale.js +1 -1
- package/build/utils/object.js +1 -1
- package/build/utils/rsa.js +1 -1
- package/build/utils/string.d.ts +1 -1
- package/build/utils/string.js +4 -4
- package/package.json +1 -1
|
@@ -21,12 +21,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { useEffect } from 'react';
|
|
24
|
-
import { handleActiveFlowScreens, handleSetAppConfig, handleLanguage, handleOpen, handleIsTapOrigin, fetchAppSettingsSync, handelBoardMaturity, settingsSelector } from '
|
|
24
|
+
import { handleActiveFlowScreens, handleSetAppConfig, handleLanguage, handleOpen, handleIsTapOrigin, fetchAppSettingsSync, handelBoardMaturity, settingsSelector } from '../app/settings';
|
|
25
25
|
import { useAppDispatch } from './useAppDispatch';
|
|
26
26
|
import { useAppSelector } from './useAppSelector';
|
|
27
|
-
import { axiosInstance } from '
|
|
28
|
-
import { isTapDomain, removeRequestHeaders } from '
|
|
29
|
-
import { ENDPOINT_PATHS } from '
|
|
27
|
+
import { axiosInstance } from '../api';
|
|
28
|
+
import { isTapDomain, removeRequestHeaders } from '../utils';
|
|
29
|
+
import { ENDPOINT_PATHS } from '../constants';
|
|
30
30
|
export var useAppConfig = function (_a) {
|
|
31
31
|
var appInfo = _a.appInfo, navigation = _a.navigation, publicKey = _a.publicKey, disableCountries = _a.disableCountries, disableLocale = _a.disableLocale, disableSettingFetching = _a.disableSettingFetching, maturity = _a.maturity, boardMaturity = _a.boardMaturity, rest = __rest(_a, ["appInfo", "navigation", "publicKey", "disableCountries", "disableLocale", "disableSettingFetching", "maturity", "boardMaturity"]);
|
|
32
32
|
var dispatch = useAppDispatch();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
import { LanguageMode, DirectionMode } from '
|
|
3
|
-
import { settingsSelector } from '
|
|
2
|
+
import { LanguageMode, DirectionMode } from '../@types';
|
|
3
|
+
import { settingsSelector } from '../app/settings';
|
|
4
4
|
import { isMobile } from 'react-device-detect';
|
|
5
5
|
import { useAppSelector } from './useAppSelector';
|
|
6
|
-
import { appTheme } from '
|
|
6
|
+
import { appTheme } from '../theme';
|
|
7
7
|
export var useAppTheme = function () {
|
|
8
8
|
var _a = useState(), theme = _a[0], setTheme = _a[1];
|
|
9
9
|
var data = useAppSelector(settingsSelector).data;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldType } from '
|
|
1
|
+
import { FieldType } from '../@types';
|
|
2
2
|
export declare const useDataNoneEditable: <T = undefined>(dataStatus: Record<keyof T, FieldType>, noneEditableKeys: (keyof T)[]) => { [key in keyof T]: boolean; };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from 'react';
|
|
2
|
-
import { hasNoneEditableValue } from '
|
|
2
|
+
import { hasNoneEditableValue } from '../utils';
|
|
3
3
|
export var useDataNoneEditable = function (dataStatus, noneEditableKeys) {
|
|
4
4
|
var _a = useState({}), dataNoneEditable = _a[0], setDataNoneEditable = _a[1];
|
|
5
5
|
var setNoneEditableValue = useCallback(function () {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from 'react';
|
|
2
|
-
import { hasVerifiedValue } from '
|
|
2
|
+
import { hasVerifiedValue } from '../utils';
|
|
3
3
|
export var useDataVerified = function (dataVerification, verifiedKeys) {
|
|
4
4
|
var _a = useState({}), dataVerified = _a[0], setVerified = _a[1];
|
|
5
5
|
var setVerifiedValue = useCallback(function () {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
-
import { settingsSelector } from '
|
|
2
|
+
import { settingsSelector } from '../app/settings';
|
|
3
3
|
import { useAppSelector } from './useAppSelector';
|
|
4
4
|
export var useErrorListener = function (error) {
|
|
5
5
|
var settings = useAppSelector(settingsSelector);
|
|
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { settingsSelector } from '
|
|
12
|
+
import { settingsSelector } from '../app/settings';
|
|
13
13
|
import { useAppSelector } from './useAppSelector';
|
|
14
14
|
export var useExcludeReadOnlyFelids = function (_a, readOnly) {
|
|
15
15
|
var formState = _a.formState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from 'react';
|
|
2
|
-
import { settingsSelector } from '
|
|
2
|
+
import { settingsSelector } from '../app/settings';
|
|
3
3
|
import { useAppSelector } from './useAppSelector';
|
|
4
4
|
var isValidData = function (data) {
|
|
5
5
|
if (data === null || data === undefined)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { decodeObjectBase64, getParameterByName } from '
|
|
1
|
+
import { decodeObjectBase64, getParameterByName } from '../utils';
|
|
2
2
|
export var useRedirectionData = function (dataKey) {
|
|
3
3
|
if (dataKey === void 0) { dataKey = 'data'; }
|
|
4
4
|
var dataToken = getParameterByName(dataKey);
|
package/build/hooks/useScreen.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
import { useWindowSize } from '
|
|
2
|
+
import { useWindowSize } from '.';
|
|
3
3
|
import { useTheme } from '@mui/material/styles';
|
|
4
4
|
export var useScreen = function (breakpoint) {
|
|
5
5
|
if (breakpoint === void 0) { breakpoint = 'sm'; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
-
import { settingsSelector } from '
|
|
2
|
+
import { settingsSelector } from '../app/settings';
|
|
3
3
|
import { useAppSelector } from './useAppSelector';
|
|
4
4
|
export var useStepStartedListener = function () {
|
|
5
5
|
var settings = useAppSelector(settingsSelector);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { handleCurrentActiveScreen, handleLanguage } from '
|
|
2
|
-
import { getParameterByName } from '
|
|
1
|
+
import { handleCurrentActiveScreen, handleLanguage } from '../app/settings';
|
|
2
|
+
import { getParameterByName } from '../utils';
|
|
3
3
|
import { useAppDispatch } from './useAppDispatch';
|
|
4
4
|
import { useEffect } from 'react';
|
|
5
5
|
export var useVerifyToken = function (_a) {
|
package/build/i18n.js
CHANGED
|
@@ -2,7 +2,7 @@ import i18n from 'i18next';
|
|
|
2
2
|
import { initReactI18next } from 'react-i18next';
|
|
3
3
|
import Backend from 'i18next-http-backend';
|
|
4
4
|
import LanguageDetector from 'i18next-browser-languagedetector';
|
|
5
|
-
import { LOCAL_STORAGE_KEYS } from '
|
|
5
|
+
import { LOCAL_STORAGE_KEYS } from './constants';
|
|
6
6
|
import translationEN from './assets/locales/en.json';
|
|
7
7
|
import translationAR from './assets/locales/ar.json';
|
|
8
8
|
var resources = {
|
package/build/index.css
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
|
|
2
|
+
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');
|
|
3
|
+
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
|
|
4
|
+
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
|
|
5
|
+
@import url('https://fonts.googleapis.com/css?family=Tajawal&display=swap');
|
|
6
|
+
|
|
7
|
+
/* http://meyerweb.com/eric/tools/css/reset/
|
|
8
|
+
v2.0 | 20110126
|
|
9
|
+
License: none (public domain)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
html,
|
|
13
|
+
body,
|
|
14
|
+
div,
|
|
15
|
+
span,
|
|
16
|
+
applet,
|
|
17
|
+
object,
|
|
18
|
+
iframe,
|
|
19
|
+
h1,
|
|
20
|
+
h2,
|
|
21
|
+
h3,
|
|
22
|
+
h4,
|
|
23
|
+
h5,
|
|
24
|
+
h6,
|
|
25
|
+
p,
|
|
26
|
+
blockquote,
|
|
27
|
+
pre,
|
|
28
|
+
a,
|
|
29
|
+
abbr,
|
|
30
|
+
acronym,
|
|
31
|
+
address,
|
|
32
|
+
big,
|
|
33
|
+
cite,
|
|
34
|
+
code,
|
|
35
|
+
del,
|
|
36
|
+
dfn,
|
|
37
|
+
em,
|
|
38
|
+
img,
|
|
39
|
+
ins,
|
|
40
|
+
kbd,
|
|
41
|
+
q,
|
|
42
|
+
s,
|
|
43
|
+
samp,
|
|
44
|
+
small,
|
|
45
|
+
strike,
|
|
46
|
+
strong,
|
|
47
|
+
sub,
|
|
48
|
+
sup,
|
|
49
|
+
tt,
|
|
50
|
+
var,
|
|
51
|
+
b,
|
|
52
|
+
u,
|
|
53
|
+
i,
|
|
54
|
+
center,
|
|
55
|
+
dl,
|
|
56
|
+
dt,
|
|
57
|
+
dd,
|
|
58
|
+
ol,
|
|
59
|
+
ul,
|
|
60
|
+
li,
|
|
61
|
+
fieldset,
|
|
62
|
+
form,
|
|
63
|
+
label,
|
|
64
|
+
legend,
|
|
65
|
+
table,
|
|
66
|
+
caption,
|
|
67
|
+
tbody,
|
|
68
|
+
tfoot,
|
|
69
|
+
thead,
|
|
70
|
+
tr,
|
|
71
|
+
th,
|
|
72
|
+
td,
|
|
73
|
+
article,
|
|
74
|
+
aside,
|
|
75
|
+
canvas,
|
|
76
|
+
details,
|
|
77
|
+
embed,
|
|
78
|
+
figure,
|
|
79
|
+
figcaption,
|
|
80
|
+
footer,
|
|
81
|
+
header,
|
|
82
|
+
hgroup,
|
|
83
|
+
menu,
|
|
84
|
+
nav,
|
|
85
|
+
output,
|
|
86
|
+
ruby,
|
|
87
|
+
section,
|
|
88
|
+
summary,
|
|
89
|
+
time,
|
|
90
|
+
mark,
|
|
91
|
+
audio,
|
|
92
|
+
video {
|
|
93
|
+
margin: 0;
|
|
94
|
+
padding: 0;
|
|
95
|
+
border: 0;
|
|
96
|
+
font-size: 100%;
|
|
97
|
+
font: inherit;
|
|
98
|
+
vertical-align: baseline;
|
|
99
|
+
}
|
|
100
|
+
/* HTML5 display-role reset for older browsers */
|
|
101
|
+
article,
|
|
102
|
+
aside,
|
|
103
|
+
details,
|
|
104
|
+
figcaption,
|
|
105
|
+
figure,
|
|
106
|
+
footer,
|
|
107
|
+
header,
|
|
108
|
+
hgroup,
|
|
109
|
+
menu,
|
|
110
|
+
nav,
|
|
111
|
+
section {
|
|
112
|
+
display: block;
|
|
113
|
+
}
|
|
114
|
+
body {
|
|
115
|
+
line-height: 1;
|
|
116
|
+
overflow-y: hidden;
|
|
117
|
+
}
|
|
118
|
+
ol,
|
|
119
|
+
ul {
|
|
120
|
+
list-style: none;
|
|
121
|
+
}
|
|
122
|
+
blockquote,
|
|
123
|
+
q {
|
|
124
|
+
quotes: none;
|
|
125
|
+
}
|
|
126
|
+
blockquote:before,
|
|
127
|
+
blockquote:after,
|
|
128
|
+
q:before,
|
|
129
|
+
q:after {
|
|
130
|
+
content: '';
|
|
131
|
+
content: none;
|
|
132
|
+
}
|
|
133
|
+
table {
|
|
134
|
+
border-collapse: collapse;
|
|
135
|
+
border-spacing: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
* {
|
|
139
|
+
box-sizing: border-box;
|
|
140
|
+
}
|
package/build/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
import './i18n';
|
|
3
|
-
import { ConnectElement, ConnectLibProps } from '
|
|
4
|
-
import { ConnectExpressElement, ConnectExpressLibProps } from '
|
|
5
|
-
import { BusinessElement, BusinessLibProps } from '
|
|
6
|
-
import { PasswordElement, PasswordLibProps } from '
|
|
7
|
-
import { IndividualElement, IndividualLibProps } from '
|
|
8
|
-
import { BankElement, BankLibProps } from '
|
|
9
|
-
import { TaxElement, TaxLibProps } from '
|
|
10
|
-
import { SignInElement, SignInLibProps } from '
|
|
11
|
-
import { EntityElement, EntityLibProps } from '
|
|
12
|
-
import { BrandElement, BrandLibProps } from '
|
|
3
|
+
import { ConnectElement, ConnectLibProps } from './features/connect';
|
|
4
|
+
import { ConnectExpressElement, ConnectExpressLibProps } from './features/connectExpress';
|
|
5
|
+
import { BusinessElement, BusinessLibProps } from './features/business';
|
|
6
|
+
import { PasswordElement, PasswordLibProps } from './features/password';
|
|
7
|
+
import { IndividualElement, IndividualLibProps } from './features/individual';
|
|
8
|
+
import { BankElement, BankLibProps } from './features/bank';
|
|
9
|
+
import { TaxElement, TaxLibProps } from './features/tax';
|
|
10
|
+
import { SignInElement, SignInLibProps } from './features/signIn';
|
|
11
|
+
import { EntityElement, EntityLibProps } from './features/entity';
|
|
12
|
+
import { BrandElement, BrandLibProps } from './features/brand';
|
|
13
13
|
export type { ConnectLibProps, ConnectExpressLibProps, BusinessLibProps, PasswordLibProps, IndividualLibProps, BankLibProps, TaxLibProps, EntityLibProps, BrandLibProps, SignInLibProps };
|
|
14
14
|
export { ConnectElement, ConnectExpressElement, BusinessElement, PasswordElement, IndividualElement, BankElement, TaxElement, EntityElement, BrandElement, SignInElement };
|
package/build/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
import './i18n';
|
|
3
|
-
import { ConnectElement, renderConnectLib } from '
|
|
4
|
-
import { ConnectExpressElement, renderConnectExpressLib } from '
|
|
5
|
-
import { BusinessElement, renderBusinessLib } from '
|
|
6
|
-
import { PasswordElement, renderPasswordLib } from '
|
|
7
|
-
import { IndividualElement, renderIndividualLib } from '
|
|
8
|
-
import { BankElement, renderBankLib } from '
|
|
9
|
-
import { TaxElement, renderTaxLib } from '
|
|
10
|
-
import { SignInElement, renderSignInLib } from '
|
|
11
|
-
import { EntityElement, renderEntityLib } from '
|
|
12
|
-
import { BrandElement, renderBrandLib } from '
|
|
3
|
+
import { ConnectElement, renderConnectLib } from './features/connect';
|
|
4
|
+
import { ConnectExpressElement, renderConnectExpressLib } from './features/connectExpress';
|
|
5
|
+
import { BusinessElement, renderBusinessLib } from './features/business';
|
|
6
|
+
import { PasswordElement, renderPasswordLib } from './features/password';
|
|
7
|
+
import { IndividualElement, renderIndividualLib } from './features/individual';
|
|
8
|
+
import { BankElement, renderBankLib } from './features/bank';
|
|
9
|
+
import { TaxElement, renderTaxLib } from './features/tax';
|
|
10
|
+
import { SignInElement, renderSignInLib } from './features/signIn';
|
|
11
|
+
import { EntityElement, renderEntityLib } from './features/entity';
|
|
12
|
+
import { BrandElement, renderBrandLib } from './features/brand';
|
|
13
13
|
export { ConnectElement, ConnectExpressElement, BusinessElement, PasswordElement, IndividualElement, BankElement, TaxElement, EntityElement, BrandElement, SignInElement };
|
|
14
14
|
window['TapAuth'] = {
|
|
15
15
|
renderConnectLib: renderConnectLib,
|
package/build/theme/theme.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DirectionMode, ThemeMode } from '
|
|
1
|
+
import { DirectionMode, ThemeMode } from '../@types';
|
|
2
2
|
export declare const appTheme: (mode: ThemeMode, isMobile: boolean, dir: DirectionMode) => import("@mui/material/styles").Theme;
|
package/build/utils/array.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActivitiesIsIc, Activity, ActivityParams, CountryCode, SaleChannel, User } from '
|
|
1
|
+
import { ActivitiesIsIc, Activity, ActivityParams, CountryCode, SaleChannel, User } from '../@types';
|
|
2
2
|
export declare const isArray: (value: any) => value is any[];
|
|
3
3
|
export declare const joinArray: (items: Array<any>, joiner?: string) => string;
|
|
4
4
|
export declare const replaceStringArrayItems: (items: Array<string>, include: string, withThis: string) => string[];
|
|
@@ -14,7 +14,7 @@ export declare const findCountryByIso2: (countries: Array<CountryCode>, iso2: st
|
|
|
14
14
|
export declare const findCurrencyByIso2: (code: string) => "" | "SAR" | "KD";
|
|
15
15
|
export declare const findCountryByIddPrefix: (countries: Array<CountryCode>, iddPrefix: string) => CountryCode | undefined;
|
|
16
16
|
export declare const mapSalesChannel: (salesChannel: Array<SaleChannel>) => {
|
|
17
|
-
sub?: import("
|
|
17
|
+
sub?: import("../@types").SubSaleChannel[] | undefined;
|
|
18
18
|
address: string;
|
|
19
19
|
id: string;
|
|
20
20
|
code: string;
|
|
@@ -44,7 +44,7 @@ export declare const mapBrandSalesChannel: (salesChannel: Array<SaleChannel>, br
|
|
|
44
44
|
address?: string | undefined;
|
|
45
45
|
logo?: string | undefined;
|
|
46
46
|
} | {
|
|
47
|
-
sub?: import("
|
|
47
|
+
sub?: import("../@types").SubSaleChannel[] | undefined;
|
|
48
48
|
id: string;
|
|
49
49
|
code: string;
|
|
50
50
|
name?: {
|
|
@@ -76,3 +76,4 @@ export declare const getIndividualType: (objects: Array<string>) => {
|
|
|
76
76
|
isBuyer: boolean;
|
|
77
77
|
isCustomer: boolean;
|
|
78
78
|
};
|
|
79
|
+
export declare function retrieveIndividualData(type: string, boardData: any, serviceCallback: () => Promise<any>): Promise<any>;
|
package/build/utils/array.js
CHANGED
|
@@ -9,6 +9,42 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (_) try {
|
|
28
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
12
48
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
49
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
50
|
if (ar || !(i in from)) {
|
|
@@ -19,7 +55,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
19
55
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
56
|
};
|
|
21
57
|
import get from 'lodash-es/get';
|
|
22
|
-
import { IndividualType } from '
|
|
58
|
+
import { IndividualType } from '../@types';
|
|
23
59
|
export var isArray = function (value) { return Array.isArray(value); };
|
|
24
60
|
export var joinArray = function (items, joiner) {
|
|
25
61
|
if (joiner === void 0) { joiner = '__'; }
|
|
@@ -298,3 +334,33 @@ export var getIndividualType = function (objects) {
|
|
|
298
334
|
});
|
|
299
335
|
return { isUser: isUser, isShareholder: isShareholder, isBoardMember: isBoardMember, isBuyer: isBuyer, isCustomer: isCustomer };
|
|
300
336
|
};
|
|
337
|
+
export function retrieveIndividualData(type, boardData, serviceCallback) {
|
|
338
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
339
|
+
var _a, isShareholder, isBoardMember, isBuyer, isCustomer, data, individualRes, _b, data_state, is_authorized, boardRes, individuals;
|
|
340
|
+
return __generator(this, function (_c) {
|
|
341
|
+
switch (_c.label) {
|
|
342
|
+
case 0:
|
|
343
|
+
_a = getIndividualType([type]), isShareholder = _a.isShareholder, isBoardMember = _a.isBoardMember, isBuyer = _a.isBuyer, isCustomer = _a.isCustomer;
|
|
344
|
+
return [4, serviceCallback()];
|
|
345
|
+
case 1:
|
|
346
|
+
data = _c.sent();
|
|
347
|
+
individualRes = data === null || data === void 0 ? void 0 : data.user;
|
|
348
|
+
if (isShareholder)
|
|
349
|
+
individualRes = data === null || data === void 0 ? void 0 : data.shareholder;
|
|
350
|
+
else if (isBoardMember)
|
|
351
|
+
individualRes = data === null || data === void 0 ? void 0 : data.board_member;
|
|
352
|
+
else if (isBuyer)
|
|
353
|
+
individualRes = data === null || data === void 0 ? void 0 : data.buyer;
|
|
354
|
+
else if (isCustomer)
|
|
355
|
+
individualRes = data === null || data === void 0 ? void 0 : data.customer;
|
|
356
|
+
_b = individualRes || {}, data_state = _b.data_state, is_authorized = _b.is_authorized;
|
|
357
|
+
boardRes = boardData || {};
|
|
358
|
+
if (!is_authorized) {
|
|
359
|
+
individuals = (boardRes || {}).individuals;
|
|
360
|
+
boardRes = __assign(__assign(__assign({}, boardRes), (!is_authorized && { user: individualRes })), { individuals: __assign(__assign({}, individuals), (!!data_state && { data_state: data_state })) });
|
|
361
|
+
}
|
|
362
|
+
return [2, { boardRes: boardRes, individualRes: individualRes }];
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
});
|
|
366
|
+
}
|
package/build/utils/locale.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LocalProps } from '
|
|
1
|
+
import { LocalProps } from '../@types';
|
|
2
2
|
export declare const updateLocale: (locale: LocalProps, country: string) => void;
|
package/build/utils/locale.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initReactI18next } from 'react-i18next';
|
|
2
|
-
import i18n from '
|
|
2
|
+
import i18n from '../i18n';
|
|
3
3
|
export var updateLocale = function (locale, country) {
|
|
4
4
|
var data = locale['SA'] || locale[country.toUpperCase()] || locale['default'];
|
|
5
5
|
if (i18n.isInitialized) {
|
package/build/utils/object.js
CHANGED
package/build/utils/rsa.js
CHANGED
package/build/utils/string.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeviceInfo, License, User } from '
|
|
1
|
+
import { DeviceInfo, License, User } from '../@types';
|
|
2
2
|
export declare const maskPhone: (str?: string) => string;
|
|
3
3
|
export declare const shortenString: (str: string, length: number) => string;
|
|
4
4
|
export declare const maskID: (str: string) => string;
|
package/build/utils/string.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FlowsTypes } from '
|
|
2
|
-
import { concatenateObjectValues, encryptString } from '
|
|
3
|
-
import { removeAxiosGlobalHeaders } from '
|
|
4
|
-
import { ENDPOINT_PATHS, ICONS_FULL_PATH } from '
|
|
1
|
+
import { FlowsTypes } from '../@types';
|
|
2
|
+
import { concatenateObjectValues, encryptString } from '.';
|
|
3
|
+
import { removeAxiosGlobalHeaders } from '../api';
|
|
4
|
+
import { ENDPOINT_PATHS, ICONS_FULL_PATH } from '../constants';
|
|
5
5
|
import moment from 'moment';
|
|
6
6
|
export var maskPhone = function (str) {
|
|
7
7
|
if (str === void 0) { str = ''; }
|