@tap-payments/auth-jsconnect 2.6.56-test → 2.6.59-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.
Files changed (455) hide show
  1. package/build/@types/app.d.ts +21 -19
  2. package/build/@types/app.js +1 -1
  3. package/build/@types/form.d.ts +21 -21
  4. package/build/@types/theme.d.ts +1 -1
  5. package/build/api/account.d.ts +3 -2
  6. package/build/api/account.js +8 -1
  7. package/build/api/auth.d.ts +18 -11
  8. package/build/api/auth.js +6 -1
  9. package/build/api/availabilityServices.d.ts +3 -3
  10. package/build/api/axios.js +1 -1
  11. package/build/api/board.d.ts +3 -3
  12. package/build/api/brand.d.ts +1 -1
  13. package/build/api/country.d.ts +1 -1
  14. package/build/api/data.d.ts +11 -11
  15. package/build/api/document.d.ts +2 -2
  16. package/build/api/entity.d.ts +8 -8
  17. package/build/api/file.d.ts +1 -1
  18. package/build/api/index.d.ts +5 -3
  19. package/build/api/individual.d.ts +5 -5
  20. package/build/api/init.d.ts +1 -1
  21. package/build/api/lead.d.ts +14 -11
  22. package/build/api/lead.js +1 -1
  23. package/build/api/operator.d.ts +4 -3
  24. package/build/api/operator.js +3 -3
  25. package/build/api/user.d.ts +2 -2
  26. package/build/app/rootReducer.d.ts +1 -0
  27. package/build/app/rootReducer.js +2 -0
  28. package/build/app/settings.d.ts +21 -3
  29. package/build/app/settings.js +4 -3
  30. package/build/app/store.d.ts +6 -4
  31. package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
  32. package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
  33. package/build/components/AnimationFlow/Dialog.d.ts +1 -1
  34. package/build/components/AnimationFlow/Error.d.ts +1 -2
  35. package/build/components/AnimationFlow/Loader.d.ts +1 -2
  36. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  37. package/build/components/Button/Button.d.ts +1 -1
  38. package/build/components/CheckBox/CheckBox.d.ts +1 -1
  39. package/build/components/Collapse/Collapse.d.ts +1 -2
  40. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  41. package/build/components/ExpandIcon/ExpandIcon.d.ts +1 -2
  42. package/build/components/FileInput/DragAndDrop.d.ts +1 -2
  43. package/build/components/FileInput/UploadInput.d.ts +1 -2
  44. package/build/components/Footer/Footer.d.ts +1 -1
  45. package/build/components/Form/Form.d.ts +1 -1
  46. package/build/components/Input/Input.d.ts +1 -1
  47. package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
  48. package/build/components/List/List.d.ts +1 -1
  49. package/build/components/ListItem/ListItem.d.ts +1 -1
  50. package/build/components/Loader/Loader.d.ts +1 -1
  51. package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
  52. package/build/components/OTPField/OTPField.d.ts +1 -1
  53. package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
  54. package/build/components/ProgressBar/CircularProgressBar.d.ts +1 -2
  55. package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
  56. package/build/components/Providers/ReduxProvider.d.ts +1 -1
  57. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  58. package/build/components/Radio/Radio.d.ts +1 -1
  59. package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
  60. package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
  61. package/build/components/SimpleList/SimpleList.d.ts +1 -1
  62. package/build/components/Slide/Slide.d.ts +1 -1
  63. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  64. package/build/components/Text/Text.d.ts +1 -1
  65. package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
  66. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  67. package/build/components/Tooltip/Tooltip.d.ts +1 -1
  68. package/build/components/Warning/Warning.d.ts +1 -1
  69. package/build/constants/api.d.ts +1 -0
  70. package/build/constants/api.js +2 -0
  71. package/build/constants/app.d.ts +11 -1
  72. package/build/constants/app.js +53 -0
  73. package/build/features/app/auth/authStore.d.ts +189 -0
  74. package/build/features/app/auth/authStore.js +729 -0
  75. package/build/features/app/bank/bankStore.d.ts +92 -11
  76. package/build/features/app/bank/bankStore.js +6 -5
  77. package/build/features/app/board/boardStore.d.ts +41 -5
  78. package/build/features/app/board/boardStore.js +1 -1
  79. package/build/features/app/brand/brandStore.d.ts +142 -16
  80. package/build/features/app/brand/brandStore.js +6 -5
  81. package/build/features/app/business/businessStore.d.ts +162 -18
  82. package/build/features/app/business/businessStore.js +38 -29
  83. package/build/features/app/connect/connectStore.d.ts +151 -16
  84. package/build/features/app/connect/connectStore.js +1 -1
  85. package/build/features/app/connectExpress/connectExpressStore.d.ts +261 -27
  86. package/build/features/app/connectExpress/connectExpressStore.js +50 -40
  87. package/build/features/app/entity/entityStore.d.ts +92 -11
  88. package/build/features/app/entity/entityStore.js +6 -5
  89. package/build/features/app/individual/individualStore.d.ts +185 -23
  90. package/build/features/app/individual/individualStore.js +6 -5
  91. package/build/features/app/password/passwordStore.d.ts +112 -13
  92. package/build/features/app/password/passwordStore.js +1 -1
  93. package/build/features/app/signIn/signInStore.d.ts +61 -7
  94. package/build/features/app/signIn/signInStore.js +1 -1
  95. package/build/features/app/tax/taxStore.d.ts +82 -10
  96. package/build/features/app/tax/taxStore.js +6 -5
  97. package/build/features/auth/Auth.d.ts +8 -0
  98. package/build/features/auth/Auth.js +93 -0
  99. package/build/features/auth/index.d.ts +1 -0
  100. package/build/features/auth/index.js +1 -0
  101. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
  102. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +91 -0
  103. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +10 -0
  104. package/build/features/auth/screens/AuthenticationList/BrandList.js +81 -0
  105. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +11 -0
  106. package/build/features/auth/screens/AuthenticationList/EntityList.js +96 -0
  107. package/build/features/auth/screens/AuthenticationList/MerchantList.d.ts +10 -0
  108. package/build/features/auth/screens/AuthenticationList/MerchantList.js +107 -0
  109. package/build/features/auth/screens/AuthenticationList/index.d.ts +3 -0
  110. package/build/features/auth/screens/AuthenticationList/index.js +2 -0
  111. package/build/features/auth/screens/AuthenticationList/validation.d.ts +14 -0
  112. package/build/features/auth/screens/AuthenticationList/validation.js +8 -0
  113. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  114. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +105 -0
  115. package/build/features/auth/screens/BusinessCountry/index.d.ts +3 -0
  116. package/build/features/auth/screens/BusinessCountry/index.js +2 -0
  117. package/build/features/auth/screens/CivilID/CivilID.d.ts +5 -0
  118. package/build/features/auth/screens/CivilID/CivilID.js +88 -0
  119. package/build/features/auth/screens/CivilID/IDNumber.d.ts +8 -0
  120. package/build/features/auth/screens/CivilID/IDNumber.js +54 -0
  121. package/build/features/auth/screens/CivilID/index.d.ts +3 -0
  122. package/build/features/auth/screens/CivilID/index.js +2 -0
  123. package/build/features/auth/screens/CivilID/validation.d.ts +8 -0
  124. package/build/features/auth/screens/CivilID/validation.js +4 -0
  125. package/build/features/auth/screens/Mobile/Mobile.d.ts +5 -0
  126. package/build/features/auth/screens/Mobile/Mobile.js +108 -0
  127. package/build/features/auth/screens/Mobile/MobileNumber.d.ts +13 -0
  128. package/build/features/auth/screens/Mobile/MobileNumber.js +158 -0
  129. package/build/features/auth/screens/Mobile/index.d.ts +3 -0
  130. package/build/features/auth/screens/Mobile/index.js +2 -0
  131. package/build/features/auth/screens/Mobile/validation.d.ts +8 -0
  132. package/build/features/auth/screens/Mobile/validation.js +30 -0
  133. package/build/features/auth/screens/NID/DOB.d.ts +6 -0
  134. package/build/features/auth/screens/NID/DOB.js +47 -0
  135. package/build/features/auth/screens/NID/IDNumber.d.ts +7 -0
  136. package/build/features/auth/screens/NID/IDNumber.js +55 -0
  137. package/build/features/auth/screens/NID/NID.d.ts +5 -0
  138. package/build/features/auth/screens/NID/NID.js +92 -0
  139. package/build/features/auth/screens/NID/index.d.ts +3 -0
  140. package/build/features/auth/screens/NID/index.js +2 -0
  141. package/build/features/auth/screens/NID/validation.d.ts +11 -0
  142. package/build/features/auth/screens/NID/validation.js +11 -0
  143. package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
  144. package/build/features/auth/screens/OTP/OTP.js +87 -0
  145. package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
  146. package/build/features/auth/screens/OTP/OTPInput.js +57 -0
  147. package/build/features/auth/screens/OTP/index.d.ts +3 -0
  148. package/build/features/auth/screens/OTP/index.js +2 -0
  149. package/build/features/auth/screens/OTP/validation.d.ts +8 -0
  150. package/build/features/auth/screens/OTP/validation.js +4 -0
  151. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
  152. package/build/features/auth/screens/VerifyPACI/VerifyPACI.js +34 -0
  153. package/build/features/auth/screens/VerifyPACI/index.d.ts +3 -0
  154. package/build/features/auth/screens/VerifyPACI/index.js +2 -0
  155. package/build/features/bank/Bank.d.ts +1 -2
  156. package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
  157. package/build/features/bank/screens/BankDetails/BankName.d.ts +2 -3
  158. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +2 -3
  159. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +1 -2
  160. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +2 -3
  161. package/build/features/bank/screens/BankDetails/IBAN.d.ts +1 -2
  162. package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
  163. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  164. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  165. package/build/features/bank/screens/Success/Success.d.ts +1 -1
  166. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  167. package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
  168. package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
  169. package/build/features/board/Board.d.ts +1 -2
  170. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  171. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  172. package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
  173. package/build/features/board/screens/Verify/Verify.d.ts +1 -1
  174. package/build/features/brand/Brand.d.ts +1 -2
  175. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +15 -58
  176. package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +1 -2
  177. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
  178. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +1 -2
  179. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +1 -2
  180. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +10 -31
  181. package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -8
  182. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +2 -3
  183. package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
  184. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -3
  185. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
  186. package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
  187. package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
  188. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +1 -2
  189. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +1 -2
  190. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +1 -2
  191. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +1 -2
  192. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +1 -2
  193. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  194. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  195. package/build/features/brand/screens/Success/Success.d.ts +1 -1
  196. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  197. package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
  198. package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
  199. package/build/features/business/Business.d.ts +1 -2
  200. package/build/features/business/screens/Activities/Activities.d.ts +1 -2
  201. package/build/features/business/screens/Activities/ActivitiesList.d.ts +9 -25
  202. package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
  203. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -13
  204. package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
  205. package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
  206. package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
  207. package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
  208. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +5 -13
  209. package/build/features/business/screens/BusinessType/Article.d.ts +2 -3
  210. package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
  211. package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
  212. package/build/features/business/screens/BusinessType/EntityName.d.ts +1 -2
  213. package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
  214. package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
  215. package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
  216. package/build/features/business/screens/BusinessType/LicenseType.d.ts +6 -28
  217. package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
  218. package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
  219. package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
  220. package/build/features/business/screens/Customers/CustomerLocations.d.ts +19 -70
  221. package/build/features/business/screens/Customers/Customers.d.ts +1 -1
  222. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +1 -2
  223. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -2
  224. package/build/features/business/screens/Customers/RefundPolicy.d.ts +9 -30
  225. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +1 -2
  226. package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
  227. package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
  228. package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
  229. package/build/features/business/screens/OTP/OTP.d.ts +1 -1
  230. package/build/features/business/screens/OTP/OTPInput.d.ts +1 -1
  231. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  232. package/build/features/business/screens/Success/Success.d.ts +1 -1
  233. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  234. package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
  235. package/build/features/business/screens/Verify/Verify.d.ts +1 -1
  236. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  237. package/build/features/connect/Connect.d.ts +1 -2
  238. package/build/features/connect/Connect.js +1 -1
  239. package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
  240. package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +1 -2
  241. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  242. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
  243. package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
  244. package/build/features/connect/screens/Individual/Email.d.ts +1 -1
  245. package/build/features/connect/screens/Individual/Email.js +1 -1
  246. package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
  247. package/build/features/connect/screens/Individual/Name.d.ts +1 -1
  248. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  249. package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
  250. package/build/features/connect/screens/Merchant/BrandName.js +1 -1
  251. package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
  252. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
  253. package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
  254. package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
  255. package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
  256. package/build/features/connect/screens/NID/DOB.d.ts +1 -2
  257. package/build/features/connect/screens/NID/NID.d.ts +1 -1
  258. package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
  259. package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
  260. package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
  261. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
  262. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  263. package/build/features/connectExpress/ConnectExpress.d.ts +1 -2
  264. package/build/features/connectExpress/ConnectExpress.js +1 -1
  265. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
  266. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  267. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
  268. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +1 -1
  269. package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
  270. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  271. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -1
  272. package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
  273. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
  274. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +1 -1
  275. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
  276. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
  277. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
  278. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
  279. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
  280. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +6 -28
  281. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +3 -8
  282. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
  283. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
  284. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
  285. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
  286. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
  287. package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +1 -1
  288. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +1 -1
  289. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
  290. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +2 -2
  291. package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
  292. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +2 -2
  293. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
  294. package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
  295. package/build/features/connectExpress/screens/NID/DOB.d.ts +1 -2
  296. package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
  297. package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -8
  298. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -2
  299. package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
  300. package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
  301. package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
  302. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  303. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  304. package/build/features/entity/Entity.d.ts +1 -2
  305. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +9 -25
  306. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
  307. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
  308. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
  309. package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
  310. package/build/features/entity/screens/EntityName/Article.d.ts +2 -3
  311. package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
  312. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +15 -58
  313. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +5 -13
  314. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +5 -13
  315. package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
  316. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
  317. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
  318. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
  319. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  320. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  321. package/build/features/entity/screens/Success/Success.d.ts +1 -1
  322. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  323. package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
  324. package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
  325. package/build/features/featuresScreens.d.ts +1 -0
  326. package/build/features/featuresScreens.js +40 -3
  327. package/build/features/individual/Individual.d.ts +1 -2
  328. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
  329. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +2 -3
  330. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
  331. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  332. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
  333. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +5 -27
  334. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
  335. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
  336. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
  337. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  338. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
  339. package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
  340. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  341. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +9 -25
  342. package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
  343. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
  344. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
  345. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
  346. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +6 -28
  347. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
  348. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
  349. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
  350. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
  351. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  352. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  353. package/build/features/individual/screens/Success/Success.d.ts +1 -1
  354. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  355. package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
  356. package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
  357. package/build/features/password/Password.d.ts +1 -2
  358. package/build/features/password/screens/CreatePassword/ConditionText.d.ts +1 -2
  359. package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
  360. package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
  361. package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
  362. package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +1 -2
  363. package/build/features/password/screens/OTP/OTP.d.ts +1 -1
  364. package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
  365. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  366. package/build/features/password/screens/Success/Success.d.ts +1 -1
  367. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  368. package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
  369. package/build/features/password/screens/Verify/Verify.d.ts +1 -1
  370. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +1 -2
  371. package/build/features/shared/Address/Address.d.ts +1 -2
  372. package/build/features/shared/Address/CountryList.d.ts +14 -46
  373. package/build/features/shared/Address/InputSelect.d.ts +14 -46
  374. package/build/features/shared/Address/InputSelect.js +1 -1
  375. package/build/features/shared/Address/InputText.d.ts +1 -1
  376. package/build/features/shared/Background/Background.d.ts +1 -1
  377. package/build/features/shared/Background/LogoBackground.d.ts +1 -1
  378. package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +1 -2
  379. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +1 -2
  380. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  381. package/build/features/shared/Button/AbsherButton.d.ts +1 -2
  382. package/build/features/shared/Button/Button.d.ts +1 -2
  383. package/build/features/shared/Button/EmailProvidersButtons.d.ts +2 -3
  384. package/build/features/shared/Button/FlowsButtons.d.ts +2 -3
  385. package/build/features/shared/Button/FlowsButtons.js +1 -1
  386. package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
  387. package/build/features/shared/Button/MobileButton.d.ts +1 -2
  388. package/build/features/shared/Button/SuccessButton.d.ts +1 -2
  389. package/build/features/shared/Calender/Calender.d.ts +1 -2
  390. package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -3
  391. package/build/features/shared/Chip/Chip.d.ts +1 -2
  392. package/build/features/shared/ClearIcon/ClearIcon.d.ts +1 -2
  393. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  394. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  395. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
  396. package/build/features/shared/DataLoading/DataLoading.d.ts +1 -1
  397. package/build/features/shared/Dialog/CloseDialog.d.ts +1 -2
  398. package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
  399. package/build/features/shared/Dot/Dot.d.ts +1 -2
  400. package/build/features/shared/EndAdornment/EndAdornment.d.ts +1 -2
  401. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
  402. package/build/features/shared/Footer/Footer.d.ts +1 -2
  403. package/build/features/shared/Footer/PoweredByFooter.d.ts +2 -3
  404. package/build/features/shared/GenericError/GenericError.d.ts +1 -1
  405. package/build/features/shared/Input/Input.d.ts +6 -14
  406. package/build/features/shared/InputSelect/InputSelect.d.ts +1 -2
  407. package/build/features/shared/Mandatory/Mandatory.d.ts +1 -2
  408. package/build/features/shared/OTP/OTP.d.ts +1 -1
  409. package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
  410. package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +1 -2
  411. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -2
  412. package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
  413. package/build/features/shared/Search/Search.d.ts +1 -2
  414. package/build/features/shared/SearchIcon/SearchIcon.d.ts +1 -2
  415. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
  416. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
  417. package/build/features/shared/UploadFile/FileUpload.d.ts +4 -9
  418. package/build/features/shared/UploadFile/FileUpload.js +1 -1
  419. package/build/features/shared/UploadFile/UploadFile.d.ts +3 -8
  420. package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -8
  421. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +4 -9
  422. package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
  423. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +3 -8
  424. package/build/features/signIn/SignIn.d.ts +1 -2
  425. package/build/features/signIn/screens/Email/Email.d.ts +1 -1
  426. package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
  427. package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
  428. package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
  429. package/build/features/signIn/screens/Password/Password.d.ts +1 -1
  430. package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
  431. package/build/features/tax/Tax.d.ts +1 -2
  432. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  433. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  434. package/build/features/tax/screens/Success/Success.d.ts +1 -1
  435. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  436. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +2 -3
  437. package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +1 -2
  438. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
  439. package/build/features/tax/screens/TaxDetails/VATId.d.ts +2 -3
  440. package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
  441. package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
  442. package/build/hooks/useAppDispatch.d.ts +1 -0
  443. package/build/hooks/useDataVerified.d.ts +1 -1
  444. package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
  445. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
  446. package/build/hooks/useFormReadOnly.d.ts +2 -2
  447. package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
  448. package/build/index.d.ts +3 -2
  449. package/build/index.js +3 -1
  450. package/build/utils/array.js +1 -1
  451. package/build/utils/common.d.ts +1 -0
  452. package/build/utils/common.js +8 -1
  453. package/build/utils/string.d.ts +1 -0
  454. package/build/utils/string.js +3 -0
  455. package/package.json +1 -1
@@ -3,18 +3,72 @@ import { MobileFormValues, SharedState, EmailFormValues, ResponseData, OTPFormVa
3
3
  export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
4
4
  data: any;
5
5
  formData: MobileFormValues;
6
- }, MobileFormValues, {}>;
7
- export declare const resendOTPMobile: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
6
+ }, MobileFormValues, {
7
+ state?: unknown;
8
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
9
+ extra?: unknown;
10
+ rejectValue?: unknown;
11
+ serializedErrorType?: unknown;
12
+ pendingMeta?: unknown;
13
+ fulfilledMeta?: unknown;
14
+ rejectedMeta?: unknown;
15
+ }>;
16
+ export declare const resendOTPMobile: import("@reduxjs/toolkit").AsyncThunk<any, void, {
17
+ state?: unknown;
18
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
19
+ extra?: unknown;
20
+ rejectValue?: unknown;
21
+ serializedErrorType?: unknown;
22
+ pendingMeta?: unknown;
23
+ fulfilledMeta?: unknown;
24
+ rejectedMeta?: unknown;
25
+ }>;
8
26
  export declare const createEmailAuth: import("@reduxjs/toolkit").AsyncThunk<{
9
27
  data: any;
10
28
  formData: EmailFormValues;
11
- }, EmailFormValues, {}>;
12
- export declare const resendOTPEmail: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
29
+ }, EmailFormValues, {
30
+ state?: unknown;
31
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
32
+ extra?: unknown;
33
+ rejectValue?: unknown;
34
+ serializedErrorType?: unknown;
35
+ pendingMeta?: unknown;
36
+ fulfilledMeta?: unknown;
37
+ rejectedMeta?: unknown;
38
+ }>;
39
+ export declare const resendOTPEmail: import("@reduxjs/toolkit").AsyncThunk<any, void, {
40
+ state?: unknown;
41
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
42
+ extra?: unknown;
43
+ rejectValue?: unknown;
44
+ serializedErrorType?: unknown;
45
+ pendingMeta?: unknown;
46
+ fulfilledMeta?: unknown;
47
+ rejectedMeta?: unknown;
48
+ }>;
13
49
  export declare const verifyAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
14
50
  data: any;
15
51
  formData: OTPFormValues;
16
- }, OTPFormValues, {}>;
17
- export declare const verifyAuthPassword: import("@reduxjs/toolkit").AsyncThunk<any, PasswordFormValues, {}>;
52
+ }, OTPFormValues, {
53
+ state?: unknown;
54
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
55
+ extra?: unknown;
56
+ rejectValue?: unknown;
57
+ serializedErrorType?: unknown;
58
+ pendingMeta?: unknown;
59
+ fulfilledMeta?: unknown;
60
+ rejectedMeta?: unknown;
61
+ }>;
62
+ export declare const verifyAuthPassword: import("@reduxjs/toolkit").AsyncThunk<any, PasswordFormValues, {
63
+ state?: unknown;
64
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
65
+ extra?: unknown;
66
+ rejectValue?: unknown;
67
+ serializedErrorType?: unknown;
68
+ pendingMeta?: unknown;
69
+ fulfilledMeta?: unknown;
70
+ rejectedMeta?: unknown;
71
+ }>;
18
72
  export interface SignInData {
19
73
  auth: Partial<MobileFormValues & EmailFormValues> & ResponseData;
20
74
  otpData: OTPFormValues & ResponseData;
@@ -27,7 +81,7 @@ export declare const signInSlice: import("@reduxjs/toolkit").Slice<SignInState,
27
81
  stopLoader: (state: SignInState) => void;
28
82
  resetOTPScreen: (state: SignInState) => void;
29
83
  }, "signIsn/store">;
30
- export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
84
+ export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"signIsn/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"signIsn/store/stopLoader">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"signIsn/store/resetOTPScreen">;
31
85
  declare const _default: import("redux").Reducer<SignInState, import("redux").AnyAction>;
32
86
  export default _default;
33
87
  export declare const signInSelector: (state: RootState) => SignInState;
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
24
24
  function verb(n) { return function (v) { return step([n, v]); }; }
25
25
  function step(op) {
26
26
  if (f) throw new TypeError("Generator is already executing.");
27
- while (_) try {
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
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
29
  if (y = 0, t) op = [op[0] & 2, t.value];
30
30
  switch (op[0]) {
@@ -9,30 +9,102 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
9
9
  individualData: any;
10
10
  boardResponse: any;
11
11
  token: string;
12
- }, VerifyLeadTokenProps, {}>;
12
+ }, VerifyLeadTokenProps, {
13
+ state?: unknown;
14
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
15
+ extra?: unknown;
16
+ rejectValue?: unknown;
17
+ serializedErrorType?: unknown;
18
+ pendingMeta?: unknown;
19
+ fulfilledMeta?: unknown;
20
+ rejectedMeta?: unknown;
21
+ }>;
13
22
  export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
14
23
  data: any;
15
- }, void, {}>;
24
+ }, void, {
25
+ state?: unknown;
26
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
27
+ extra?: unknown;
28
+ rejectValue?: unknown;
29
+ serializedErrorType?: unknown;
30
+ pendingMeta?: unknown;
31
+ fulfilledMeta?: unknown;
32
+ rejectedMeta?: unknown;
33
+ }>;
16
34
  export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<{
17
35
  flows: any;
18
- }, void, {}>;
36
+ }, void, {
37
+ state?: unknown;
38
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
39
+ extra?: unknown;
40
+ rejectValue?: unknown;
41
+ serializedErrorType?: unknown;
42
+ pendingMeta?: unknown;
43
+ fulfilledMeta?: unknown;
44
+ rejectedMeta?: unknown;
45
+ }>;
19
46
  export declare const retrieveEntityInfo: import("@reduxjs/toolkit").AsyncThunk<{
20
47
  data: any;
21
- }, string, {}>;
48
+ }, string, {
49
+ state?: unknown;
50
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
51
+ extra?: unknown;
52
+ rejectValue?: unknown;
53
+ serializedErrorType?: unknown;
54
+ pendingMeta?: unknown;
55
+ fulfilledMeta?: unknown;
56
+ rejectedMeta?: unknown;
57
+ }>;
22
58
  export declare const verifyTaxLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
23
59
  data: any;
24
60
  formData: OTPFormValues;
25
- }, OTPFormValues, {}>;
61
+ }, OTPFormValues, {
62
+ state?: unknown;
63
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
64
+ extra?: unknown;
65
+ rejectValue?: unknown;
66
+ serializedErrorType?: unknown;
67
+ pendingMeta?: unknown;
68
+ fulfilledMeta?: unknown;
69
+ rejectedMeta?: unknown;
70
+ }>;
26
71
  export declare const updateTaxInfo: import("@reduxjs/toolkit").AsyncThunk<{
27
72
  data: any;
28
73
  formData: TaxFormValues;
29
- }, AsyncThunkParams<TaxFormValues>, {}>;
74
+ }, AsyncThunkParams<TaxFormValues>, {
75
+ state?: unknown;
76
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
77
+ extra?: unknown;
78
+ rejectValue?: unknown;
79
+ serializedErrorType?: unknown;
80
+ pendingMeta?: unknown;
81
+ fulfilledMeta?: unknown;
82
+ rejectedMeta?: unknown;
83
+ }>;
30
84
  export declare const updateLeadSuccess: import("@reduxjs/toolkit").AsyncThunk<{
31
85
  response: any;
32
86
  formData: void;
33
- } | undefined, void, {}>;
34
- export declare const onCloseCompleteTax: import("@reduxjs/toolkit").AsyncThunk<void, void, {}>;
35
- declare type VerifyData = {
87
+ } | undefined, void, {
88
+ state?: unknown;
89
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
90
+ extra?: unknown;
91
+ rejectValue?: unknown;
92
+ serializedErrorType?: unknown;
93
+ pendingMeta?: unknown;
94
+ fulfilledMeta?: unknown;
95
+ rejectedMeta?: unknown;
96
+ }>;
97
+ export declare const onCloseCompleteTax: import("@reduxjs/toolkit").AsyncThunk<void, void, {
98
+ state?: unknown;
99
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
100
+ extra?: unknown;
101
+ rejectValue?: unknown;
102
+ serializedErrorType?: unknown;
103
+ pendingMeta?: unknown;
104
+ fulfilledMeta?: unknown;
105
+ rejectedMeta?: unknown;
106
+ }>;
107
+ type VerifyData = {
36
108
  token: string;
37
109
  };
38
110
  export interface TaxData {
@@ -51,7 +123,7 @@ export declare const taxSlice: import("@reduxjs/toolkit").Slice<TaxState, {
51
123
  resetOTPScreen: (state: TaxState) => void;
52
124
  uploadingStatus: (state: TaxState, action: ActionState<boolean>) => void;
53
125
  }, "tax/store">;
54
- export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, uploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>;
126
+ export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"tax/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"tax/store/stopLoader">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"tax/store/resetOTPScreen">, uploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "tax/store/uploadingStatus">;
55
127
  declare const _default: import("redux").Reducer<TaxState, import("redux").AnyAction>;
56
128
  export default _default;
57
129
  export declare const taxSelector: (state: RootState) => TaxState;
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
24
24
  function verb(n) { return function (v) { return step([n, v]); }; }
25
25
  function step(op) {
26
26
  if (f) throw new TypeError("Generator is already executing.");
27
- while (_) try {
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
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
29
  if (y = 0, t) op = [op[0] & 2, t.value];
30
30
  switch (op[0]) {
@@ -60,10 +60,11 @@ export var verifyLeadToken = createAsyncThunk('taxVerifyLeadToken', function (_a
60
60
  return __generator(this, function (_j) {
61
61
  switch (_j.label) {
62
62
  case 0:
63
- payload = {
64
- service_name: 'tap_email',
65
- verify_token: token
66
- };
63
+ payload = __assign({ service_name: 'tap_email', verify_token: token }, (isInternally && {
64
+ notification: {
65
+ sms: false
66
+ }
67
+ }));
67
68
  return [4, API.leadService.verifyLeadToken(payload)];
68
69
  case 1:
69
70
  data = (_j.sent()).data;
@@ -0,0 +1,8 @@
1
+ import { LibConfig } from '../../@types';
2
+ export interface AuthLibProps extends Pick<LibConfig, 'open' | 'mode' | 'scope' | 'merchantDomain' | 'publicKey' | 'redirectUrl' | 'data' | 'postURL' | 'appInfo' | 'businessCountryCode' | 'language' | 'onFlowCompleted' | 'onError' | 'onStepCompleted' | 'onReady' | 'onClose' | 'onStepStarted'> {
3
+ leadId?: string;
4
+ }
5
+ export declare function AuthElement(props: AuthLibProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function renderAuthLib(config: AuthLibProps, elementId: string): {
7
+ unmount: () => void;
8
+ };
@@ -0,0 +1,93 @@
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 } from "react/jsx-runtime";
24
+ import React, { memo } from 'react';
25
+ import { createRoot } from 'react-dom/client';
26
+ import { useAppTheme, useAppSelector, useAppConfig, useErrorListener, useStepStartedListener, useAppDispatch } from '../../hooks';
27
+ import { handleCurrentActiveScreen, settingsSelector } from '../../app/settings';
28
+ import AnimationFlow from '../../components/AnimationFlow';
29
+ import { store } from '../../app/store';
30
+ import { ReduxProvider, ThemeProvider } from '../../components/Providers';
31
+ import Collapse from '../../components/Collapse';
32
+ import { findOrCreateElementAndInject, sendPageView, isSA } from '../../utils';
33
+ import { AUTH_SCREENS_NAVIGATION } from '../../constants';
34
+ import Background from '../shared/Background';
35
+ import { FeatureContainer } from '../shared/Containers';
36
+ import { authSelector, setMobileCountryCode, setLeadId, retrieveLeadIdentityByIdAsync } from '../app/auth/authStore';
37
+ import { authFeatureScreens } from '../featuresScreens';
38
+ var Auth = memo(function (_a) {
39
+ var leadId = _a.leadId, postURL = _a.postURL, props = __rest(_a, ["leadId", "postURL"]);
40
+ var theme = useAppTheme().theme;
41
+ var dispatch = useAppDispatch();
42
+ var _b = useAppSelector(settingsSelector), settingData = _b.data, error = _b.error, settingLoading = _b.loading;
43
+ var _c = useAppSelector(authSelector), authError = _c.error, loading = _c.loading, customLoading = _c.customLoading;
44
+ useAppConfig(__assign({ postURL: postURL, navigation: AUTH_SCREENS_NAVIGATION }, props));
45
+ useErrorListener(authError || error);
46
+ useStepStartedListener();
47
+ var activeScreen = settingData.activeScreen, isTapOrigin = settingData.isTapOrigin, open = settingData.open, merchant = settingData.merchant;
48
+ React.useEffect(function () {
49
+ sendPageView({ title: 'Auth' });
50
+ dispatch(setLeadId(leadId !== null && leadId !== void 0 ? leadId : ''));
51
+ }, []);
52
+ React.useEffect(function () {
53
+ if (leadId) {
54
+ dispatch(retrieveLeadIdentityByIdAsync(leadId));
55
+ }
56
+ }, [leadId]);
57
+ React.useEffect(function () {
58
+ var _a;
59
+ if (settingLoading || !props.open || !settingData.isValidOperator)
60
+ return;
61
+ if (leadId)
62
+ return;
63
+ var iso2 = (_a = settingData.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2;
64
+ if (!iso2) {
65
+ dispatch(handleCurrentActiveScreen('AUTH_BUSINESS_COUNTRY_STEP'));
66
+ return;
67
+ }
68
+ if (iso2 && !isSA(iso2)) {
69
+ dispatch(handleCurrentActiveScreen('AUTH_MOBILE_STEP'));
70
+ }
71
+ }, [settingData.isValidOperator, settingLoading]);
72
+ React.useEffect(function () {
73
+ var _a;
74
+ if (!!((_a = settingData.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2)) {
75
+ dispatch(setMobileCountryCode(settingData.businessCountry));
76
+ }
77
+ }, [settingData.businessCountry]);
78
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: settingLoading || customLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, loading: settingLoading || customLoading, error: error, open: open, screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: !isTapOrigin }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: true }, { children: authFeatureScreens.map(function (_a, index) {
79
+ var Element = _a.element, name = _a.name;
80
+ var isActive = activeScreen.name === name;
81
+ return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
82
+ }) })) })) })) })));
83
+ });
84
+ export function AuthElement(props) {
85
+ return (_jsx(ReduxProvider, __assign({ store: store }, { children: _jsx(Auth, __assign({}, props)) })));
86
+ }
87
+ export function renderAuthLib(config, elementId) {
88
+ var el = findOrCreateElementAndInject(elementId);
89
+ var root = createRoot(el);
90
+ root.render(_jsx(AuthElement, __assign({}, config)));
91
+ var unmount = function () { return root.unmount(); };
92
+ return { unmount: unmount };
93
+ }
@@ -0,0 +1 @@
1
+ export * from './Auth';
@@ -0,0 +1 @@
1
+ export * from './Auth';
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface AuthenticationListProps {
3
+ }
4
+ declare const _default: React.MemoExoticComponent<({}: AuthenticationListProps) => import("react/jsx-runtime").JSX.Element>;
5
+ export default _default;
@@ -0,0 +1,91 @@
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 { useForm, FormProvider } from 'react-hook-form';
15
+ import { useTranslation } from 'react-i18next';
16
+ import Collapse from '@mui/material/Collapse';
17
+ import { yupResolver } from '@hookform/resolvers/yup';
18
+ import { useAppDispatch, useAppSelector, useLanguage } from '../../../../hooks';
19
+ import { handlePrevScreenStep, settingsSelector } from '../../../../app/settings';
20
+ import { deepCopy, isKW, sendCustomEventToGTM } from '../../../../utils';
21
+ import { AuthForType } from '../../../../@types';
22
+ import Form from '../../../../components/Form';
23
+ import { ScreenContainer } from '../../../shared/Containers';
24
+ import Button from '../../../shared/Button';
25
+ import { clearError, authSelector, confirmInfo } from '../../../app/auth/authStore';
26
+ import { AuthenticationListValidationSchema } from './validation';
27
+ import BrandList from './BrandList';
28
+ import EntityList from './EntityList';
29
+ import MerchantList from './MerchantList';
30
+ var ListType;
31
+ (function (ListType) {
32
+ ListType["BrandList"] = "BrandList";
33
+ ListType["EntityList"] = "EntityList";
34
+ ListType["MerchantList"] = "MerchantList";
35
+ })(ListType || (ListType = {}));
36
+ var AuthenticationList = function (_a) {
37
+ var settingsData = useAppSelector(settingsSelector).data;
38
+ var _b = useAppSelector(authSelector), data = _b.data, loading = _b.loading, error = _b.error, merchantLoading = _b.merchantLoading, terminalLoading = _b.terminalLoading;
39
+ var _c = data.authenticationData, brandInfo = _c.brandInfo, entityInfo = _c.entityInfo, merchantInfo = _c.merchantInfo;
40
+ var _d = React.useState(), listActive = _d[0], setListActive = _d[1];
41
+ var _e = data.responseData || {}, brandList = _e.brandList, entityList = _e.entityList;
42
+ var otpData = data.otpData;
43
+ var startWithNID = otpData.authFor === AuthForType.NATIONAL_ID;
44
+ React.useEffect(function () {
45
+ sendCustomEventToGTM({
46
+ event: 'Send Event',
47
+ event_category: 'User Authentication Flow',
48
+ event_action: 'Authentication List Step'
49
+ });
50
+ }, []);
51
+ var methods = useForm({
52
+ resolver: yupResolver(AuthenticationListValidationSchema()),
53
+ defaultValues: {
54
+ brandInfo: brandInfo,
55
+ entityInfo: entityInfo,
56
+ merchantInfo: merchantInfo
57
+ },
58
+ mode: 'onChange'
59
+ });
60
+ var t = useTranslation().t;
61
+ var isAr = useLanguage().isAr;
62
+ var dispatch = useAppDispatch();
63
+ var onSubmit = function (formData) {
64
+ dispatch(confirmInfo(deepCopy(formData)));
65
+ };
66
+ var onBack = function () {
67
+ var _a;
68
+ var code = (_a = settingsData.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2;
69
+ var screen = startWithNID ? (isKW(code) ? 'AUTH_CIVIL_ID_STEP' : 'AUTH_NID_STEP') : 'AUTH_MOBILE_STEP';
70
+ dispatch(handlePrevScreenStep(screen));
71
+ };
72
+ React.useEffect(function () {
73
+ if (merchantInfo && !methods.getValues('merchantInfo'))
74
+ methods.setValue('merchantInfo', merchantInfo, { shouldValidate: true });
75
+ }, [merchantInfo]);
76
+ React.useEffect(function () {
77
+ if (error)
78
+ dispatch(clearError());
79
+ }, [methods.formState.isValid]);
80
+ var disabled = !methods.formState.isValid || merchantLoading || terminalLoading;
81
+ var handleMenuClick = function (flag) {
82
+ if (error)
83
+ dispatch(clearError());
84
+ setListActive(flag);
85
+ };
86
+ var isBrandList = listActive === ListType.BrandList;
87
+ var isEntityList = listActive === ListType.EntityList;
88
+ var isMerchantList = listActive === ListType.MerchantList;
89
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(BrandList, { list: brandList || [], show: !isEntityList && !isMerchantList, onListOpen: function () { return handleMenuClick(ListType.BrandList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(EntityList, { list: entityList || [], countryList: settingsData.countries || [], show: !isBrandList && !isMerchantList, onListOpen: function () { return handleMenuClick(ListType.EntityList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(MerchantList, { show: !isBrandList && !isEntityList, onListOpen: function () { return handleMenuClick(ListType.MerchantList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(Collapse, __assign({ in: !listActive, timeout: 500 }, { children: _jsx(Button, __assign({ onBackClicked: function () { return onBack(); }, disabled: disabled, isAr: isAr, error: t(error || ''), loading: loading }, { children: t('next') })) }))] })) })) }));
90
+ };
91
+ export default React.memo(AuthenticationList);
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { BrandInfo } from '../../../../@types';
3
+ interface BrandListProps {
4
+ show: boolean;
5
+ list: Array<BrandInfo>;
6
+ onListOpen?: () => void;
7
+ onListClose?: () => void;
8
+ }
9
+ declare const _default: React.MemoExoticComponent<({ show, list, ...rest }: BrandListProps) => import("react/jsx-runtime").JSX.Element>;
10
+ export default _default;
@@ -0,0 +1,81 @@
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 { useTranslation } from 'react-i18next';
26
+ import { useFormContext, useController } from 'react-hook-form';
27
+ import Box from '@mui/material/Box';
28
+ import { styled } from '@mui/material/styles';
29
+ import { useLanguage } from '../../../../hooks';
30
+ import SimpleList from '../../../../components/SimpleList';
31
+ import Text from '../../../../components/Text';
32
+ import ExpandIcon from '../../../../components/ExpandIcon';
33
+ import Collapse from '../../../../components/Collapse';
34
+ import ScreenContainer from '../../../shared/Containers/ScreenContainer';
35
+ import InputSelect from '../../../shared/InputSelect';
36
+ import CheckIcon from '../../../shared/CheckIcon';
37
+ var BrandContainer = styled(Box)(function () { return ({
38
+ display: 'flex'
39
+ }); });
40
+ var BrandNameText = 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 }));
43
+ });
44
+ var BrandList = function (_a) {
45
+ var show = _a.show, list = _a.list, rest = __rest(_a, ["show", "list"]);
46
+ var _b = React.useState(null), anchorEl = _b[0], setAnchorEl = _b[1];
47
+ var t = useTranslation().t;
48
+ var isAr = useLanguage().isAr;
49
+ var control = useFormContext().control;
50
+ var brandInfoControl = useController({ control: control, name: 'brandInfo' });
51
+ var brandInfo = brandInfoControl.field.value;
52
+ var onOpenBrandList = function (event) {
53
+ var _a;
54
+ setAnchorEl(event.currentTarget);
55
+ (_a = rest.onListOpen) === null || _a === void 0 ? void 0 : _a.call(rest);
56
+ };
57
+ var onCloseBrandList = function () {
58
+ var _a;
59
+ setAnchorEl(null);
60
+ (_a = rest.onListClose) === null || _a === void 0 ? void 0 : _a.call(rest);
61
+ };
62
+ var getBrandName = function (brand) {
63
+ var _a, _b;
64
+ if (!brand)
65
+ return '';
66
+ return (isAr ? (_a = brand.name) === null || _a === void 0 ? void 0 : _a.ar : (_b = brand.name) === null || _b === void 0 ? void 0 : _b.en) || '';
67
+ };
68
+ var getBrandId = function (brand) {
69
+ if (!brand)
70
+ return '';
71
+ return brand.id || '';
72
+ };
73
+ var onSelectItem = function (brand) {
74
+ brandInfoControl.field.onChange(brand);
75
+ onCloseBrandList();
76
+ };
77
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputSelect, { label: t('select_brand_label'), onClick: !!anchorEl ? onCloseBrandList : onOpenBrandList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }), placeholder: t('choose_brand'), value: t(getBrandName(brandInfo)) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { space: 140, list: list, onSelectItem: onSelectItem, renderItem: function (item) {
78
+ return (_jsxs(_Fragment, { children: [_jsx(BrandContainer, { children: _jsx(BrandNameText, __assign({ isSelected: getBrandId(item) === getBrandId(brandInfo) }, { children: t(getBrandName(item)) })) }), getBrandId(item) === getBrandId(brandInfo) && _jsx(CheckIcon, {})] }));
79
+ } }) }))] }) })));
80
+ };
81
+ export default React.memo(BrandList);
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { CountryCode, EntityLicenseAuth } from '../../../../@types';
3
+ interface EntityListProps {
4
+ show: boolean;
5
+ list: Array<EntityLicenseAuth>;
6
+ countryList: Array<CountryCode>;
7
+ onListOpen?: () => void;
8
+ onListClose?: () => void;
9
+ }
10
+ declare const _default: React.MemoExoticComponent<({ show, list, countryList, ...rest }: EntityListProps) => import("react/jsx-runtime").JSX.Element>;
11
+ export default _default;
@@ -0,0 +1,96 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
24
+ import * as React from 'react';
25
+ import { useTranslation } from 'react-i18next';
26
+ import { useFormContext, useController } from 'react-hook-form';
27
+ import Box from '@mui/material/Box';
28
+ import { styled } from '@mui/material/styles';
29
+ import { useLanguage } from '../../../../hooks';
30
+ import ScreenContainer from '../../../shared/Containers/ScreenContainer';
31
+ import InputSelect from '../../../shared/InputSelect';
32
+ import CheckIcon from '../../../shared/CheckIcon';
33
+ import SimpleList from '../../../../components/SimpleList';
34
+ import Text from '../../../../components/Text';
35
+ import ExpandIcon from '../../../../components/ExpandIcon';
36
+ import Collapse from '../../../../components/Collapse';
37
+ import Icon from '../../../../components/Icon';
38
+ var EntityContainer = styled(Box)(function () { return ({
39
+ display: 'flex',
40
+ alignItems: 'center'
41
+ }); });
42
+ var EntityCountryFlag = styled(Icon)(function (_a) {
43
+ var theme = _a.theme;
44
+ return ({
45
+ display: 'flex',
46
+ marginInlineEnd: theme.spacing(1.25)
47
+ });
48
+ });
49
+ var EntityNameText = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isSelected'; } })(function (_a) {
50
+ var theme = _a.theme, isSelected = _a.isSelected;
51
+ return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight }));
52
+ });
53
+ var EntityList = function (_a) {
54
+ var show = _a.show, list = _a.list, countryList = _a.countryList, rest = __rest(_a, ["show", "list", "countryList"]);
55
+ var _b = React.useState(null), anchorEl = _b[0], setAnchorEl = _b[1];
56
+ var t = useTranslation().t;
57
+ var isAr = useLanguage().isAr;
58
+ var control = useFormContext().control;
59
+ var selectedEntityControl = useController({ control: control, name: 'entityInfo' });
60
+ var selectedEntity = selectedEntityControl.field.value;
61
+ var onOpenEntityList = 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 onCloseEntityList = function () {
67
+ var _a;
68
+ setAnchorEl(null);
69
+ (_a = rest.onListClose) === null || _a === void 0 ? void 0 : _a.call(rest);
70
+ };
71
+ var getLegalName = function (entity) {
72
+ var _a, _b;
73
+ if (!entity)
74
+ return '';
75
+ return (isAr ? (_a = entity.legal_name) === null || _a === void 0 ? void 0 : _a.ar : (_b = entity.legal_name) === null || _b === void 0 ? void 0 : _b.en) || '';
76
+ };
77
+ var getEntityId = function (entity) {
78
+ if (!entity)
79
+ return '';
80
+ return entity.id || '';
81
+ };
82
+ var getCountryFlag = function (entity) {
83
+ var _a;
84
+ if (!entity)
85
+ return '';
86
+ return ((_a = countryList.find(function (country) { return country.iso2.toLocaleLowerCase() === entity.country.toLocaleLowerCase(); })) === null || _a === void 0 ? void 0 : _a.logo) || '';
87
+ };
88
+ var onSelectItem = function (brand) {
89
+ selectedEntityControl.field.onChange(brand);
90
+ onCloseEntityList();
91
+ };
92
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { mt: 2.5 } }, { children: [_jsx(InputSelect, { label: t('select_entity_label'), onClick: !!anchorEl ? onCloseEntityList : onOpenEntityList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }), placeholder: t('select_entity_placeholder'), value: t(getLegalName(selectedEntity)) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { space: 140, list: list, onSelectItem: onSelectItem, renderItem: function (entity) {
93
+ return (_jsxs(_Fragment, { children: [_jsxs(EntityContainer, { children: [_jsx(EntityCountryFlag, { src: getCountryFlag(entity) }), _jsx(EntityNameText, __assign({ isSelected: getEntityId(entity) === getEntityId(selectedEntity) }, { children: t(getLegalName(entity)) }))] }), getEntityId(entity) === getEntityId(selectedEntity) && _jsx(CheckIcon, {})] }));
94
+ } }) }))] })) })));
95
+ };
96
+ export default React.memo(EntityList);