@tap-payments/auth-jsconnect 2.3.99-test → 2.4.0

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 (493) hide show
  1. package/README.md +1 -1
  2. package/build/@types/app.d.ts +266 -15
  3. package/build/@types/app.js +7 -0
  4. package/build/@types/form.d.ts +31 -23
  5. package/build/@types/theme.d.ts +1 -1
  6. package/build/@types/user.d.ts +39 -3
  7. package/build/api/account.d.ts +2 -2
  8. package/build/api/auth.d.ts +12 -11
  9. package/build/api/auth.js +5 -1
  10. package/build/api/availabilityServices.d.ts +3 -3
  11. package/build/api/axios.js +1 -1
  12. package/build/api/board.d.ts +3 -3
  13. package/build/api/brand.d.ts +1 -1
  14. package/build/api/country.d.ts +2 -1
  15. package/build/api/country.js +8 -1
  16. package/build/api/data.d.ts +17 -10
  17. package/build/api/data.js +26 -2
  18. package/build/api/document.d.ts +2 -2
  19. package/build/api/entity.d.ts +13 -8
  20. package/build/api/entity.js +32 -1
  21. package/build/api/file.d.ts +1 -1
  22. package/build/api/index.d.ts +26 -5
  23. package/build/api/individual.d.ts +29 -11
  24. package/build/api/individual.js +9 -1
  25. package/build/api/init.d.ts +2 -1
  26. package/build/api/lead.d.ts +15 -10
  27. package/build/api/lead.js +58 -1
  28. package/build/api/operator.d.ts +10 -1
  29. package/build/api/operator.js +10 -2
  30. package/build/api/user.d.ts +2 -2
  31. package/build/app/rootReducer.d.ts +1 -0
  32. package/build/app/rootReducer.js +3 -1
  33. package/build/app/settings.d.ts +37 -3
  34. package/build/app/settings.js +116 -39
  35. package/build/app/store.d.ts +6 -4
  36. package/build/assets/locales/ar.json +24 -1
  37. package/build/assets/locales/en.json +24 -1
  38. package/build/components/AnimationFlow/AnimationFlow.d.ts +2 -1
  39. package/build/components/AnimationFlow/AnimationFlow.js +3 -3
  40. package/build/components/AnimationFlow/BottomSheet.js +26 -5
  41. package/build/components/AnimationFlow/Dialog.d.ts +2 -1
  42. package/build/components/AnimationFlow/Dialog.js +2 -2
  43. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +5 -2
  44. package/build/components/ArabicDatePicker/ArabicDatePicker.js +45 -23
  45. package/build/components/ArabicDatePicker/arabicAr.d.ts +8 -0
  46. package/build/components/ArabicDatePicker/arabicAr.js +32 -0
  47. package/build/components/ArabicDatePicker/arabicEn.d.ts +8 -0
  48. package/build/components/ArabicDatePicker/arabicEn.js +32 -0
  49. package/build/components/ArabicDatePicker/style.css +45 -5
  50. package/build/components/DatePicker/DatePicker.d.ts +3 -1
  51. package/build/components/DatePicker/DatePicker.js +23 -17
  52. package/build/components/ExpandIcon/ExpandIcon.d.ts +2 -0
  53. package/build/components/SimpleList/SimpleList.d.ts +2 -1
  54. package/build/components/SimpleList/SimpleList.js +12 -9
  55. package/build/components/Slide/Slide.d.ts +1 -1
  56. package/build/constants/api.d.ts +9 -0
  57. package/build/constants/api.js +18 -1
  58. package/build/constants/app.d.ts +9 -1
  59. package/build/constants/app.js +84 -16
  60. package/build/constants/assets.d.ts +4 -0
  61. package/build/constants/assets.js +4 -0
  62. package/build/constants/dummy.d.ts +62 -0
  63. package/build/constants/dummy.js +603 -0
  64. package/build/constants/validation.d.ts +2 -2
  65. package/build/constants/validation.js +3 -3
  66. package/build/features/app/bank/bankStore.d.ts +94 -10
  67. package/build/features/app/bank/bankStore.js +110 -54
  68. package/build/features/app/board/boardStore.d.ts +66 -0
  69. package/build/features/app/board/boardStore.js +223 -0
  70. package/build/features/app/brand/brandStore.d.ts +161 -18
  71. package/build/features/app/brand/brandStore.js +295 -145
  72. package/build/features/app/business/businessStore.d.ts +171 -18
  73. package/build/features/app/business/businessStore.js +297 -198
  74. package/build/features/app/connect/connectStore.d.ts +180 -14
  75. package/build/features/app/connect/connectStore.js +342 -95
  76. package/build/features/app/connectExpress/connectExpressStore.d.ts +273 -25
  77. package/build/features/app/connectExpress/connectExpressStore.js +453 -71
  78. package/build/features/app/entity/entityStore.d.ts +98 -10
  79. package/build/features/app/entity/entityStore.js +150 -75
  80. package/build/features/app/individual/individualStore.d.ts +200 -28
  81. package/build/features/app/individual/individualStore.js +346 -222
  82. package/build/features/app/password/passwordStore.d.ts +114 -12
  83. package/build/features/app/password/passwordStore.js +113 -43
  84. package/build/features/app/signIn/signInStore.d.ts +61 -7
  85. package/build/features/app/signIn/signInStore.js +1 -1
  86. package/build/features/app/tax/taxStore.d.ts +83 -9
  87. package/build/features/app/tax/taxStore.js +97 -48
  88. package/build/features/bank/Bank.d.ts +1 -0
  89. package/build/features/bank/Bank.js +11 -6
  90. package/build/features/bank/screens/BankDetails/BankDetails.js +19 -14
  91. package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -2
  92. package/build/features/bank/screens/BankDetails/BankName.js +4 -5
  93. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +3 -2
  94. package/build/features/bank/screens/BankDetails/BankStatement.js +5 -4
  95. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +2 -1
  96. package/build/features/bank/screens/BankDetails/Beneficiary.js +8 -10
  97. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +1 -1
  98. package/build/features/bank/screens/BankDetails/IBAN.d.ts +2 -1
  99. package/build/features/bank/screens/BankDetails/IBAN.js +4 -6
  100. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  101. package/build/features/bank/screens/Verify/OTPInput.js +3 -1
  102. package/build/features/bank/screens/Verify/Verify.js +2 -2
  103. package/build/features/board/Board.d.ts +10 -0
  104. package/build/features/board/Board.js +74 -0
  105. package/build/features/board/index.d.ts +1 -0
  106. package/build/features/board/index.js +1 -0
  107. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
  108. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
  109. package/build/features/board/screens/ResetPasswordSuccess/index.d.ts +3 -0
  110. package/build/features/board/screens/ResetPasswordSuccess/index.js +2 -0
  111. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  112. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +35 -0
  113. package/build/features/board/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  114. package/build/features/board/screens/SuccessWithFlowButtons/index.js +2 -0
  115. package/build/features/board/screens/Verify/OTPInput.d.ts +7 -0
  116. package/build/features/board/screens/Verify/OTPInput.js +51 -0
  117. package/build/features/board/screens/Verify/Verify.d.ts +5 -0
  118. package/build/features/board/screens/Verify/Verify.js +74 -0
  119. package/build/features/board/screens/Verify/index.d.ts +2 -0
  120. package/build/features/board/screens/Verify/index.js +2 -0
  121. package/build/features/board/screens/Verify/validation.d.ts +8 -0
  122. package/build/features/board/screens/Verify/validation.js +4 -0
  123. package/build/features/brand/Brand.d.ts +1 -0
  124. package/build/features/brand/Brand.js +11 -6
  125. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +6 -20
  126. package/build/features/brand/screens/BrandActivities/ActivitiesList.js +26 -23
  127. package/build/features/brand/screens/BrandActivities/BrandActivities.js +31 -8
  128. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +7 -30
  129. package/build/features/brand/screens/BrandActivities/CustomerBase.js +13 -25
  130. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +2 -1
  131. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +12 -13
  132. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +2 -1
  133. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +22 -23
  134. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +5 -5
  135. package/build/features/brand/screens/BrandActivities/RefundPolicy.js +3 -3
  136. package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -4
  137. package/build/features/brand/screens/BrandActivities/TAC.js +3 -3
  138. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +1 -1
  139. package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +3 -3
  140. package/build/features/brand/screens/BrandActivities/validation.d.ts +36 -36
  141. package/build/features/brand/screens/BrandActivities/validation.js +5 -10
  142. package/build/features/brand/screens/BrandInfo/BrandInfo.js +18 -31
  143. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +3 -3
  144. package/build/features/brand/screens/BrandInfo/BrandLogo.js +3 -14
  145. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +2 -2
  146. package/build/features/brand/screens/BrandInfo/BrandName.js +4 -7
  147. package/build/features/brand/screens/BrandInfo/SalesChannels.js +17 -6
  148. package/build/features/brand/screens/BrandInfo/validation.d.ts +21 -6
  149. package/build/features/brand/screens/BrandInfo/validation.js +9 -8
  150. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +5 -0
  151. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +103 -0
  152. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +10 -0
  153. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.js +69 -0
  154. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +10 -0
  155. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.js +69 -0
  156. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +10 -0
  157. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.js +69 -0
  158. package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.d.ts +2 -1
  159. package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.js +18 -33
  160. package/build/features/brand/screens/BrandSegmentInfo/index.d.ts +2 -0
  161. package/build/features/brand/screens/BrandSegmentInfo/index.js +2 -0
  162. package/build/features/brand/screens/BrandSegmentInfo/validation.d.ts +17 -0
  163. package/build/features/brand/screens/BrandSegmentInfo/validation.js +9 -0
  164. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  165. package/build/features/brand/screens/Verify/OTPInput.js +3 -1
  166. package/build/features/brand/screens/Verify/Verify.js +2 -2
  167. package/build/features/business/Business.js +4 -1
  168. package/build/features/business/screens/Activities/Activities.js +2 -1
  169. package/build/features/business/screens/Activities/ActivitiesList.d.ts +13 -61
  170. package/build/features/business/screens/Activities/ActivitiesList.js +226 -103
  171. package/build/features/business/screens/Activities/OperationStartDate.d.ts +1 -1
  172. package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
  173. package/build/features/business/screens/Activities/validation.d.ts +165 -30
  174. package/build/features/business/screens/Activities/validation.js +5 -2
  175. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
  176. package/build/features/business/screens/BusinessType/Article.d.ts +1 -1
  177. package/build/features/business/screens/BusinessType/BusinessType.js +14 -6
  178. package/build/features/business/screens/BusinessType/EntityLicenseList.js +3 -6
  179. package/build/features/business/screens/BusinessType/EntityName.js +4 -5
  180. package/build/features/business/screens/BusinessType/LicenseList.js +6 -9
  181. package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -9
  182. package/build/features/business/screens/BusinessType/LicenseType.d.ts +3 -3
  183. package/build/features/business/screens/BusinessType/validation.d.ts +10 -0
  184. package/build/features/business/screens/BusinessType/validation.js +18 -2
  185. package/build/features/business/screens/CivilID/CivilID.js +2 -1
  186. package/build/features/business/screens/CivilID/IDNumber.js +2 -3
  187. package/build/features/business/screens/Customers/CustomerLocations.d.ts +41 -29
  188. package/build/features/business/screens/Customers/CustomerLocations.js +35 -19
  189. package/build/features/business/screens/Customers/Customers.js +29 -17
  190. package/build/features/business/screens/Customers/ExpectedCustomers.js +8 -10
  191. package/build/features/business/screens/Customers/ExpectedSalesRange.js +13 -15
  192. package/build/features/business/screens/Customers/RefundPolicy.d.ts +4 -4
  193. package/build/features/business/screens/Customers/RefundPolicy.js +15 -4
  194. package/build/features/business/screens/Customers/TransactionPolicy.js +19 -9
  195. package/build/features/business/screens/IDBOD/DOB.js +2 -2
  196. package/build/features/business/screens/IDBOD/ID.js +7 -4
  197. package/build/features/business/screens/IDBOD/IDBOD.js +9 -17
  198. package/build/features/business/screens/IDBOD/validation.d.ts +10 -0
  199. package/build/features/business/screens/IDBOD/validation.js +4 -0
  200. package/build/features/business/screens/OTP/OTP.js +2 -2
  201. package/build/features/business/screens/OTP/OTPInput.js +5 -2
  202. package/build/features/business/screens/Verify/OTPInput.js +3 -1
  203. package/build/features/business/screens/Verify/Verify.js +2 -2
  204. package/build/features/connect/Connect.d.ts +2 -0
  205. package/build/features/connect/Connect.js +95 -13
  206. package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +5 -0
  207. package/build/features/connect/screens/BrandSegment/BrandSegment.js +84 -0
  208. package/build/features/connect/screens/BrandSegment/SegmentLocations.d.ts +8 -0
  209. package/build/features/{brand/screens/BrandInfo/Segments.js → connect/screens/BrandSegment/SegmentLocations.js} +19 -37
  210. package/build/features/connect/screens/BrandSegment/SegmentProfits.d.ts +8 -0
  211. package/build/features/connect/screens/{Merchant/Segments.js → BrandSegment/SegmentProfits.js} +17 -30
  212. package/build/features/connect/screens/BrandSegment/SegmentTechs.d.ts +8 -0
  213. package/build/features/connect/screens/BrandSegment/SegmentTechs.js +66 -0
  214. package/build/features/connect/screens/{Merchant → BrandSegment}/TeamSize.js +12 -25
  215. package/build/features/connect/screens/BrandSegment/index.d.ts +3 -0
  216. package/build/features/connect/screens/BrandSegment/index.js +2 -0
  217. package/build/features/connect/screens/BrandSegment/validation.d.ts +17 -0
  218. package/build/features/connect/screens/BrandSegment/validation.js +9 -0
  219. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  220. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +103 -0
  221. package/build/features/connect/screens/BusinessCountry/index.d.ts +3 -0
  222. package/build/features/connect/screens/BusinessCountry/index.js +2 -0
  223. package/build/features/connect/screens/CivilID/CivilID.js +12 -16
  224. package/build/features/connect/screens/CivilID/IDNumber.js +5 -6
  225. package/build/features/connect/screens/Individual/Email.js +9 -11
  226. package/build/features/connect/screens/Individual/Individual.js +9 -2
  227. package/build/features/connect/screens/Individual/MobileNumber.js +6 -9
  228. package/build/features/connect/screens/Individual/Name.js +11 -15
  229. package/build/features/connect/screens/Merchant/BrandList.js +4 -22
  230. package/build/features/connect/screens/Merchant/BrandName.js +3 -5
  231. package/build/features/connect/screens/Merchant/Merchant.js +13 -16
  232. package/build/features/connect/screens/Merchant/SalesChannels.js +6 -6
  233. package/build/features/connect/screens/Merchant/validation.d.ts +0 -6
  234. package/build/features/connect/screens/Merchant/validation.js +8 -12
  235. package/build/features/connect/screens/Mobile/Mobile.js +23 -22
  236. package/build/features/connect/screens/Mobile/MobileNumber.js +22 -15
  237. package/build/features/connect/screens/NID/DOB.js +3 -3
  238. package/build/features/connect/screens/NID/IDNumber.js +6 -7
  239. package/build/features/connect/screens/NID/NID.js +17 -4
  240. package/build/features/connect/screens/OTP/OTP.js +14 -16
  241. package/build/features/connect/screens/OTP/OTPInput.js +14 -2
  242. package/build/features/connect/screens/ThankYou/ThankYou.js +17 -2
  243. package/build/features/connectExpress/ConnectExpress.d.ts +1 -1
  244. package/build/features/connectExpress/ConnectExpress.js +87 -17
  245. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
  246. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +93 -0
  247. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +10 -0
  248. package/build/features/connectExpress/screens/AuthenticationList/BrandList.js +81 -0
  249. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +11 -0
  250. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +96 -0
  251. package/build/features/connectExpress/screens/AuthenticationList/MerchantList.d.ts +10 -0
  252. package/build/features/connectExpress/screens/AuthenticationList/MerchantList.js +107 -0
  253. package/build/features/connectExpress/screens/AuthenticationList/index.d.ts +3 -0
  254. package/build/features/connectExpress/screens/AuthenticationList/index.js +2 -0
  255. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +14 -0
  256. package/build/features/connectExpress/screens/AuthenticationList/validation.js +8 -0
  257. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  258. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +105 -0
  259. package/build/features/connectExpress/screens/BusinessCountry/index.d.ts +3 -0
  260. package/build/features/connectExpress/screens/BusinessCountry/index.js +2 -0
  261. package/build/features/connectExpress/screens/CivilID/CivilID.js +11 -4
  262. package/build/features/connectExpress/screens/CivilID/IDNumber.js +12 -8
  263. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +2 -1
  264. package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +6 -7
  265. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +4 -6
  266. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +13 -5
  267. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +10 -12
  268. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +9 -8
  269. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +3 -3
  270. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +2 -2
  271. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +13 -0
  272. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +71 -4
  273. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +6 -2
  274. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +3 -5
  275. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +2 -3
  276. package/build/features/connectExpress/screens/IdentityOTP/OTP.js +4 -4
  277. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +5 -3
  278. package/build/features/connectExpress/screens/Mobile/Mobile.js +9 -5
  279. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +9 -6
  280. package/build/features/connectExpress/screens/Mobile/TAC.js +1 -1
  281. package/build/features/connectExpress/screens/NID/DOB.js +2 -2
  282. package/build/features/connectExpress/screens/NID/IDNumber.js +2 -3
  283. package/build/features/connectExpress/screens/NID/NID.js +7 -3
  284. package/build/features/connectExpress/screens/NID/TAC.d.ts +2 -2
  285. package/build/features/connectExpress/screens/NIDMissed/DOB.js +2 -2
  286. package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +7 -4
  287. package/build/features/connectExpress/screens/NIDMissed/NID.js +7 -4
  288. package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +10 -0
  289. package/build/features/connectExpress/screens/NIDMissed/validation.js +4 -0
  290. package/build/features/connectExpress/screens/OTP/OTP.js +3 -3
  291. package/build/features/connectExpress/screens/OTP/OTPInput.js +4 -2
  292. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +15 -6
  293. package/build/features/entity/Entity.d.ts +1 -0
  294. package/build/features/entity/Entity.js +11 -6
  295. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +3 -16
  296. package/build/features/entity/screens/EntityCapital/ActivityList.js +53 -35
  297. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +2 -1
  298. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +8 -15
  299. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +2 -1
  300. package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +7 -12
  301. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +2 -1
  302. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +9 -16
  303. package/build/features/entity/screens/EntityCapital/EntityCapital.js +14 -6
  304. package/build/features/entity/screens/EntityCapital/validation.d.ts +90 -90
  305. package/build/features/entity/screens/EntityCapital/validation.js +2 -2
  306. package/build/features/entity/screens/EntityName/Article.d.ts +3 -2
  307. package/build/features/entity/screens/EntityName/Article.js +3 -2
  308. package/build/features/entity/screens/EntityName/EntityName.js +45 -16
  309. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +8 -20
  310. package/build/features/entity/screens/EntityName/EntityTypeList.js +16 -24
  311. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +3 -2
  312. package/build/features/entity/screens/EntityName/ExpiryDate.js +4 -5
  313. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +3 -2
  314. package/build/features/entity/screens/EntityName/IssuingDate.js +4 -5
  315. package/build/features/entity/screens/EntityName/LegalName.d.ts +2 -1
  316. package/build/features/entity/screens/EntityName/LegalName.js +3 -4
  317. package/build/features/entity/screens/EntityName/LicenseCertificate.js +8 -2
  318. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +2 -1
  319. package/build/features/entity/screens/EntityName/LicenseNumber.js +10 -10
  320. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +2 -1
  321. package/build/features/entity/screens/EntityName/UnifiedNumber.js +3 -4
  322. package/build/features/entity/screens/EntityName/validation.d.ts +28 -0
  323. package/build/features/entity/screens/EntityName/validation.js +40 -2
  324. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  325. package/build/features/entity/screens/Verify/OTPInput.js +3 -1
  326. package/build/features/entity/screens/Verify/Verify.js +2 -2
  327. package/build/features/featuresScreens.d.ts +1 -0
  328. package/build/features/featuresScreens.js +42 -0
  329. package/build/features/individual/Individual.d.ts +1 -0
  330. package/build/features/individual/Individual.js +11 -6
  331. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
  332. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +36 -25
  333. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +1 -1
  334. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +10 -4
  335. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +2 -1
  336. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +13 -10
  337. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +19 -30
  338. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
  339. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +87 -48
  340. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -3
  341. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +12 -9
  342. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +2 -1
  343. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +6 -7
  344. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +9 -3
  345. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +17 -27
  346. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +7 -7
  347. package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +8 -7
  348. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  349. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
  350. package/build/features/individual/screens/IndividualList/UserList.js +10 -6
  351. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +1 -0
  352. package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +6 -22
  353. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +1 -0
  354. package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +6 -22
  355. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +2 -1
  356. package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +3 -3
  357. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +2 -1
  358. package/build/features/individual/screens/IndividualPersonalInfo/Email.js +3 -8
  359. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +2 -1
  360. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +3 -4
  361. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +5 -4
  362. package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +3 -2
  363. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +2 -1
  364. package/build/features/individual/screens/IndividualPersonalInfo/ID.js +8 -6
  365. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
  366. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +56 -37
  367. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +1 -0
  368. package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +7 -24
  369. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +1 -0
  370. package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +5 -8
  371. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +2 -1
  372. package/build/features/individual/screens/IndividualPersonalInfo/Name.js +3 -10
  373. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +1 -0
  374. package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +7 -24
  375. package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +1 -1
  376. package/build/features/individual/screens/IndividualPersonalInfo/validation.js +67 -63
  377. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +2 -1
  378. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  379. package/build/features/individual/screens/Verify/OTPInput.js +3 -1
  380. package/build/features/individual/screens/Verify/Verify.js +2 -2
  381. package/build/features/password/Password.d.ts +1 -0
  382. package/build/features/password/Password.js +20 -5
  383. package/build/features/password/screens/CreatePassword/CreatePassword.js +3 -2
  384. package/build/features/password/screens/OTP/OTP.js +2 -2
  385. package/build/features/password/screens/OTP/OTPInput.js +5 -2
  386. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  387. package/build/features/password/screens/Verify/OTPInput.js +3 -1
  388. package/build/features/password/screens/Verify/Verify.js +2 -2
  389. package/build/features/shared/Address/CountryList.d.ts +6 -6
  390. package/build/features/shared/Address/InputSelect.d.ts +6 -6
  391. package/build/features/shared/Address/InputSelect.js +1 -1
  392. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +15 -0
  393. package/build/features/shared/BusinessCountry/BusinessCountry.js +179 -0
  394. package/build/features/shared/BusinessCountry/index.d.ts +2 -0
  395. package/build/features/shared/BusinessCountry/index.js +2 -0
  396. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  397. package/build/features/shared/Button/EmailProvidersButtons.js +9 -2
  398. package/build/features/shared/Button/FlowsButtons.d.ts +4 -2
  399. package/build/features/shared/Button/FlowsButtons.js +17 -13
  400. package/build/features/shared/Button/IndividualActionButtons.d.ts +4 -2
  401. package/build/features/shared/Button/IndividualActionButtons.js +26 -2
  402. package/build/features/shared/Calender/Calender.d.ts +13 -0
  403. package/build/features/shared/Calender/Calender.js +56 -0
  404. package/build/features/shared/Calender/index.d.ts +2 -0
  405. package/build/features/shared/Calender/index.js +2 -0
  406. package/build/features/shared/CheckIcon/CheckIcon.d.ts +7 -1
  407. package/build/features/shared/CheckIcon/CheckIcon.js +7 -6
  408. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  409. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  410. package/build/features/shared/Dot/Dot.d.ts +8 -0
  411. package/build/features/shared/Dot/Dot.js +29 -0
  412. package/build/features/shared/Dot/index.d.ts +2 -0
  413. package/build/features/shared/Dot/index.js +2 -0
  414. package/build/features/shared/EndAdornment/EndAdornment.d.ts +10 -0
  415. package/build/features/shared/EndAdornment/EndAdornment.js +17 -0
  416. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +7 -0
  417. package/build/features/shared/EndAdornment/EndAdornmentExpanded.js +13 -0
  418. package/build/features/shared/EndAdornment/index.d.ts +3 -0
  419. package/build/features/shared/EndAdornment/index.js +3 -0
  420. package/build/features/shared/Footer/Footer.js +10 -1
  421. package/build/features/shared/Footer/PoweredByFooter.d.ts +1 -1
  422. package/build/features/shared/Input/Input.d.ts +4 -5
  423. package/build/features/shared/Input/index.d.ts +2 -1
  424. package/build/features/shared/InputSelect/InputSelect.d.ts +4 -0
  425. package/build/features/shared/InputSelect/InputSelect.js +33 -0
  426. package/build/features/shared/InputSelect/index.d.ts +2 -0
  427. package/build/features/shared/InputSelect/index.js +2 -0
  428. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +2 -1
  429. package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +4 -3
  430. package/build/features/shared/SalesChannels/SalesChannel.d.ts +2 -1
  431. package/build/features/shared/SalesChannels/SalesChannel.js +6 -2
  432. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +3 -1
  433. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +20 -9
  434. package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
  435. package/build/features/shared/UploadFile/FileUpload.d.ts +5 -4
  436. package/build/features/shared/UploadFile/FileUpload.js +4 -4
  437. package/build/features/shared/UploadFile/UploadFile.d.ts +2 -2
  438. package/build/features/shared/UploadFile/UploadWrapper.d.ts +4 -3
  439. package/build/features/shared/UploadFile/UploadWrapper.js +3 -3
  440. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +5 -4
  441. package/build/features/shared/UploadMultipleFile/UploadFile.js +4 -4
  442. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +4 -3
  443. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +2 -2
  444. package/build/features/signIn/screens/Email/Email.js +2 -1
  445. package/build/features/signIn/screens/Mobile/Mobile.js +2 -1
  446. package/build/features/signIn/screens/OTP/OTP.js +2 -2
  447. package/build/features/signIn/screens/OTP/OTPInput.js +4 -2
  448. package/build/features/signIn/screens/Password/Password.js +2 -1
  449. package/build/features/tax/Tax.d.ts +1 -0
  450. package/build/features/tax/Tax.js +11 -6
  451. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
  452. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +1 -1
  453. package/build/features/tax/screens/TaxDetails/TaxDetails.js +10 -7
  454. package/build/features/tax/screens/TaxDetails/TaxDocument.js +8 -2
  455. package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -2
  456. package/build/features/tax/screens/TaxDetails/VATId.js +3 -5
  457. package/build/features/tax/screens/Verify/OTPInput.js +3 -1
  458. package/build/features/tax/screens/Verify/Verify.js +2 -2
  459. package/build/hooks/index.d.ts +1 -0
  460. package/build/hooks/index.js +1 -0
  461. package/build/hooks/useAppConfig.d.ts +4 -2
  462. package/build/hooks/useAppConfig.js +18 -18
  463. package/build/hooks/useAppDispatch.d.ts +1 -0
  464. package/build/hooks/useCountry.d.ts +1 -0
  465. package/build/hooks/useCountry.js +4 -3
  466. package/build/hooks/useDataVerified.d.ts +6 -0
  467. package/build/hooks/useDataVerified.js +19 -0
  468. package/build/hooks/useErrorListener.d.ts +2 -1
  469. package/build/hooks/useErrorListener.js +16 -1
  470. package/build/hooks/useExcludeReadOnlyFelids.d.ts +1 -1
  471. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +1 -1
  472. package/build/hooks/useFormReadOnly.d.ts +1 -1
  473. package/build/hooks/useVerifyToken.js +1 -1
  474. package/build/index.d.ts +3 -2
  475. package/build/index.js +4 -2
  476. package/build/utils/array.d.ts +13 -2
  477. package/build/utils/array.js +115 -2
  478. package/build/utils/common.d.ts +1 -0
  479. package/build/utils/common.js +10 -0
  480. package/build/utils/date.d.ts +1 -0
  481. package/build/utils/date.js +6 -0
  482. package/build/utils/gtm.d.ts +6 -0
  483. package/build/utils/gtm.js +29 -0
  484. package/build/utils/index.d.ts +1 -0
  485. package/build/utils/index.js +1 -0
  486. package/build/utils/object.d.ts +1 -0
  487. package/build/utils/object.js +14 -0
  488. package/build/utils/string.d.ts +1 -0
  489. package/build/utils/string.js +3 -0
  490. package/package.json +4 -2
  491. package/build/features/brand/screens/BrandInfo/Segments.d.ts +0 -9
  492. package/build/features/connect/screens/Merchant/Segments.d.ts +0 -8
  493. /package/build/features/connect/screens/{Merchant → BrandSegment}/TeamSize.d.ts +0 -0
@@ -12,12 +12,12 @@ var __assign = (this && this.__assign) || function () {
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { useTranslation } from 'react-i18next';
14
14
  import { useController, useFormContext } from 'react-hook-form';
15
- import DatePicker from '../../../../components/DatePicker';
16
15
  import Text from '../../../../components/Text';
17
16
  import { ScreenContainer } from '../../../shared/Containers';
18
17
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
19
18
  import { businessSelector, clearError } from '../../../app/business/businessStore';
20
19
  import { alpha, styled } from '@mui/material/styles';
20
+ import Calender from '../../../shared/Calender';
21
21
  export var InputLabelStyled = styled(Text)(function (_a) {
22
22
  var theme = _a.theme;
23
23
  return (__assign({ margin: theme.spacing(2.5, 2.5, 1.5, 2.5), color: alpha(theme.palette.text.primary, 0.6) }, theme.typography.caption));
@@ -40,6 +40,6 @@ var OperationStartDate = function (_a) {
40
40
  oDateControl.field.onChange(data);
41
41
  };
42
42
  var dateValue = (_b = oDateControl === null || oDateControl === void 0 ? void 0 : oDateControl.field) === null || _b === void 0 ? void 0 : _b.value;
43
- return (_jsxs(ScreenContainer, { children: [_jsxs(InputLabelStyled, { children: [t('business_start_date'), _jsx(MandatoryStyled, { children: "*" })] }), _jsx(DatePicker, { readOnly: true, defaultValue: dateValue ? new Date(dateValue) : undefined, dir: 'ltr', locale: 'en', onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); }, onDateChange: handleOperationStartDateChange })] }));
43
+ return (_jsxs(ScreenContainer, { children: [_jsxs(InputLabelStyled, { children: [t('business_start_date'), _jsx(MandatoryStyled, { children: "*" })] }), _jsx(Calender, { defaultValue: dateValue ? new Date(dateValue) : undefined, onDateClicked: onDateClicked, onDateChange: handleOperationStartDateChange })] }));
44
44
  };
45
45
  export default OperationStartDate;
@@ -1,56 +1,191 @@
1
1
  import * as yup from 'yup';
2
2
  export declare const ActivitiesValidationSchema: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
3
  activities: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
4
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
5
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
4
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
5
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
6
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
7
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
8
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
9
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
10
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
11
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
12
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
13
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
14
+ }>>>;
6
15
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
7
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
8
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
16
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
17
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
18
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
19
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
20
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
21
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
22
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
23
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
24
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
25
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
26
+ }>>>;
9
27
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
10
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
11
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
28
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
29
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
30
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
31
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
32
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
33
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
34
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
35
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
36
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
37
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
38
+ }>>>;
12
39
  }>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
13
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
14
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
40
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
41
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
42
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
43
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
44
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
45
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
46
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
47
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
48
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
49
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
50
+ }>>>;
15
51
  }>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
16
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
17
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
52
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
53
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
54
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
55
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
56
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
57
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
58
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
59
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
60
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
61
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
62
+ }>>>;
18
63
  }>>[] | undefined>;
19
64
  operationStartDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
20
65
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
21
66
  activities: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
22
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
23
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
67
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
68
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
69
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
70
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
71
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
72
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
73
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
74
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
75
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
76
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
77
+ }>>>;
24
78
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
25
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
26
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
79
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
80
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
81
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
82
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
83
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
84
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
85
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
86
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
87
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
88
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
89
+ }>>>;
27
90
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
28
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
29
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
91
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
92
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
93
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
94
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
95
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
96
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
97
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
98
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
99
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
100
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
101
+ }>>>;
30
102
  }>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
31
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
32
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
103
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
104
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
105
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
106
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
107
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
108
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
109
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
110
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
111
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
112
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
113
+ }>>>;
33
114
  }>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
34
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
35
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
115
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
116
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
117
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
118
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
119
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
120
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
121
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
122
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
123
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
124
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
125
+ }>>>;
36
126
  }>>[] | undefined>;
37
127
  operationStartDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
38
128
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
39
129
  activities: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
40
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
41
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
130
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
131
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
132
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
133
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
134
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
135
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
136
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
137
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
138
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
139
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
140
+ }>>>;
42
141
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
43
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
44
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
142
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
143
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
144
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
145
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
146
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
147
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
148
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
149
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
150
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
151
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
152
+ }>>>;
45
153
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
46
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
47
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
154
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
155
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
156
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
157
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
158
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
159
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
160
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
161
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
162
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
163
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
164
+ }>>>;
48
165
  }>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
49
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
50
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
166
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
167
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
168
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
169
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
170
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
171
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
172
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
173
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
174
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
175
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
176
+ }>>>;
51
177
  }>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
52
- ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
53
- en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
178
+ id: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
179
+ name: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
180
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
181
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
182
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
183
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
184
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
185
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
186
+ ar: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
187
+ en: yup.StringSchema<string | null | undefined, import("yup/lib/types").AnyObject, string | null | undefined>;
188
+ }>>>;
54
189
  }>>[] | undefined>;
55
190
  operationStartDate: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
56
191
  }>>>;
@@ -4,8 +4,11 @@ export var ActivitiesValidationSchema = yup.object().shape({
4
4
  .array()
5
5
  .min(1, 'activities_list_alert')
6
6
  .of(yup.object().shape({
7
- ar: yup.string(),
8
- en: yup.string()
7
+ id: yup.string(),
8
+ name: yup.object().shape({
9
+ ar: yup.string().nullable(),
10
+ en: yup.string().nullable()
11
+ })
9
12
  })),
10
13
  operationStartDate: yup.string().required('choose_any_business_date')
11
14
  });
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export declare const InputLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
3
- align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
3
+ align?: "right" | "left" | "center" | "inherit" | "justify" | undefined;
4
4
  children?: React.ReactNode;
5
5
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
6
6
  gutterBottom?: boolean | undefined;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { FileDetails } from '../../../../@types';
3
- declare type ArticleProps = {
3
+ type ArticleProps = {
4
4
  show: boolean;
5
5
  defaultFile?: FileDetails;
6
6
  };
@@ -23,8 +23,8 @@ import ScreenContainer from '../../../shared/Containers/ScreenContainer';
23
23
  import { businessSelector, clearError, updateLeadBusinessType } from '../../../app/business/businessStore';
24
24
  import { BusinessType as Type } from '../../../../@types';
25
25
  import Button from '../../../shared/Button';
26
- import { isKW, isOtherLicense, isSA } from '../../../../utils';
27
- import { KWLicenseValidationSchema, LicenseValidationSchema } from './validation';
26
+ import { deepCopy, isKW, isOtherLicense, isOtherThanKWOrSA, isSA } from '../../../../utils';
27
+ import { KWLicenseValidationSchema, LicenseValidationSchema, OtherCountryLicenseValidationSchema } from './validation';
28
28
  import LicenseList from './LicenseList';
29
29
  import LicenseCertificate from './LicenseCertificate';
30
30
  import LicenseType from './LicenseType';
@@ -51,8 +51,16 @@ var BusinessType = function (_a) {
51
51
  };
52
52
  var isSACountry = React.useMemo(function () { return isSA(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
53
53
  var isKWCountry = React.useMemo(function () { return isKW(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
54
+ var isOtherCountry = React.useMemo(function () { return isOtherThanKWOrSA(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
55
+ var getSchema = function () {
56
+ if (isSACountry)
57
+ return LicenseValidationSchema;
58
+ if (isKWCountry)
59
+ return KWLicenseValidationSchema;
60
+ return OtherCountryLicenseValidationSchema;
61
+ };
54
62
  var methods = useForm({
55
- resolver: yupResolver(!isSACountry ? KWLicenseValidationSchema : LicenseValidationSchema),
63
+ resolver: yupResolver(getSchema()),
56
64
  defaultValues: {
57
65
  selectedLicense: selectedLicense,
58
66
  selectedEntityLicense: selectedEntityLicense,
@@ -77,7 +85,7 @@ var BusinessType = function (_a) {
77
85
  certificateId: data.certificateId,
78
86
  articleId: data.articleId
79
87
  };
80
- dispatch(updateLeadBusinessType(dataValues));
88
+ dispatch(updateLeadBusinessType(deepCopy(dataValues)));
81
89
  };
82
90
  var onBack = function () {
83
91
  dispatch(handlePrevScreenStep());
@@ -89,10 +97,10 @@ var BusinessType = function (_a) {
89
97
  var selectedLicenseEntity = methods.getValues('selectedEntityLicense');
90
98
  var isCR = (selected === null || selected === void 0 ? void 0 : selected.type) === Type.CR;
91
99
  var hasEntityList = !!(entityLicenseList === null || entityLicenseList === void 0 ? void 0 : entityLicenseList.length);
92
- var showLicenseList = hasEntityList ? isSACountry && isOtherLicense(selectedLicenseEntity) : isSACountry;
100
+ var showLicenseList = hasEntityList ? (isSACountry || isOtherCountry) && isOtherLicense(selectedLicenseEntity) : isSACountry || isOtherCountry;
93
101
  var showEntityList = isKWCountry ? hasEntityList && !isLicenseListActive && isCR : hasEntityList && !isLicenseListActive;
94
102
  var disabled = !methods.formState.isValid || !!error || uploading || uploadingArticle;
95
103
  var disableBack = !data.otpData.isNID;
96
- return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(LicenseType, { show: !listActive && !isSACountry }), _jsx(EntityLicenseList, { show: showEntityList, onListOpen: function () { return handleMenuClick(ListType.EntityLicenseList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(LicenseList, { show: showLicenseList && !isEntityLicenseListActive, onListOpen: function () { return handleMenuClick(ListType.LicenseList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(EntityName, { show: !isAnyListActive && !isSACountry && isCR }), _jsx(LicenseNumber, { show: !isSACountry ? !isAnyListActive && isCR : !isAnyListActive }), _jsx(LicenseCertificate, { show: !isAnyListActive && !isSACountry && isCR }), _jsx(Article, { show: !isAnyListActive && !isSACountry && isCR }), _jsx(Collapse, __assign({ in: !isAnyListActive, timeout: 500 }, { children: _jsx(Button, __assign({ disableBack: disableBack, onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: disabled, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
104
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(Form, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(LicenseType, { show: !listActive && isKWCountry }), _jsx(EntityLicenseList, { show: showEntityList, onListOpen: function () { return handleMenuClick(ListType.EntityLicenseList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(LicenseList, { show: showLicenseList && !isEntityLicenseListActive, onListOpen: function () { return handleMenuClick(ListType.LicenseList); }, onListClose: function () { return handleMenuClick(); } }), _jsx(EntityName, { show: !isAnyListActive && isKWCountry && isCR }), _jsx(LicenseNumber, { show: isKWCountry ? !isAnyListActive && isCR : !isAnyListActive }), _jsx(LicenseCertificate, { show: !isAnyListActive && isKWCountry && isCR }), _jsx(Article, { show: !isAnyListActive && isKWCountry && isCR }), _jsx(Collapse, __assign({ in: !isAnyListActive, timeout: 500 }, { children: _jsx(Button, __assign({ disableBack: disableBack, onBackClicked: function () { return onBack(); }, isAr: isAr, disabled: disabled, loading: loading, error: t(error || '') }, { children: t('next') })) }))] })) })) }));
97
105
  };
98
106
  export default React.memo(BusinessType);
@@ -29,7 +29,7 @@ import { styled } from '@mui/material/styles';
29
29
  import { useAppDispatch, useLanguage, useAppSelector } from '../../../../hooks';
30
30
  import { BusinessType } from '../../../../@types';
31
31
  import ScreenContainer from '../../../shared/Containers/ScreenContainer';
32
- import Input from '../../../shared/Input';
32
+ import InputSelect from '../../../shared/InputSelect';
33
33
  import CheckIcon from '../../../shared/CheckIcon';
34
34
  import SimpleList from '../../../../components/SimpleList';
35
35
  import { businessSelector, clearError } from '../../../app/business/businessStore';
@@ -39,13 +39,10 @@ import Collapse from '../../../../components/Collapse';
39
39
  import { isKW, isOtherLicense } from '../../../../utils';
40
40
  import { settingsSelector } from '../../../../app/settings';
41
41
  import { OTHER_CR_LICENSE } from '../../../../constants';
42
- var InputStyled = styled(Input)(function (_a) {
42
+ var InputStyled = styled(InputSelect)(function (_a) {
43
43
  var theme = _a.theme;
44
44
  return ({
45
- marginBottom: theme.spacing(2.5),
46
- '& .MuiInputBase-input': {
47
- cursor: 'pointer'
48
- }
45
+ marginBottom: theme.spacing(2.5)
49
46
  });
50
47
  });
51
48
  var LicenseContainer = styled(Box)(function () { return ({
@@ -16,12 +16,11 @@ import { useController, useFormContext } from 'react-hook-form';
16
16
  import { styled } from '@mui/material/styles';
17
17
  import Box from '@mui/material/Box';
18
18
  import { settingsSelector } from '../../../../app/settings';
19
- import { isSA, removeAllOtherThanCharsNumbersAndSpace } from '../../../../utils';
19
+ import { isKW, removeAllOtherThanCharsNumbersAndSpace } from '../../../../utils';
20
20
  import { useAppSelector } from '../../../../hooks';
21
21
  import Collapse from '../../../../components/Collapse';
22
- import ClearIcon from '../../../shared/ClearIcon';
23
- import CheckIcon from '../../../shared/CheckIcon';
24
22
  import Input from '../../../shared/Input';
23
+ import { EndAdornment } from '../../../shared/EndAdornment';
25
24
  var BoxStyled = styled(Box)(function (_a) {
26
25
  var theme = _a.theme;
27
26
  return ({
@@ -42,7 +41,7 @@ var EntityName = function (_a) {
42
41
  var entityNameValue = entityNameControl.field.value;
43
42
  var error = (_b = entityNameControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
44
43
  var settingsData = useAppSelector(settingsSelector).data;
45
- var isSACountry = React.useMemo(function () { return isSA(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
44
+ var isKWCountry = React.useMemo(function () { return isKW(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
46
45
  var handleChange = function (_a) {
47
46
  var target = _a.target;
48
47
  var value = removeAllOtherThanCharsNumbersAndSpace(target.value);
@@ -51,6 +50,6 @@ var EntityName = function (_a) {
51
50
  var clearEntityName = function () {
52
51
  entityNameControl.field.onChange('');
53
52
  };
54
- return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(BoxStyled, { children: _jsx(Input, { label: t('entity_legal_name_title'), onChange: handleChange, value: entityNameValue, required: !isSACountry, endAdornment: !error && entityNameValue ? _jsx(CheckIcon, {}) : entityNameValue && _jsx(ClearIcon, { onClick: clearEntityName }), placeholder: t('entity_legal_name_placeholder'), warningType: 'alert', warningMessage: error && t(error) }) }) })));
53
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(BoxStyled, { children: _jsx(Input, { label: t('entity_legal_name_title'), onChange: handleChange, value: entityNameValue, required: isKWCountry, endAdornment: _jsx(EndAdornment, { value: entityNameValue, error: error, onClear: clearEntityName }), placeholder: t('entity_legal_name_placeholder'), warningType: 'alert', warningMessage: error && t(error) }) }) })));
55
54
  };
56
55
  export default EntityName;
@@ -29,23 +29,20 @@ import { styled } from '@mui/material/styles';
29
29
  import { useAppDispatch, useLanguage, useAppSelector } from '../../../../hooks';
30
30
  import { BusinessType } from '../../../../@types';
31
31
  import ScreenContainer from '../../../shared/Containers/ScreenContainer';
32
- import Input from '../../../shared/Input';
32
+ import InputSelect from '../../../shared/InputSelect';
33
33
  import CheckIcon from '../../../shared/CheckIcon';
34
34
  import SimpleList from '../../../../components/SimpleList';
35
35
  import { businessSelector, clearError } from '../../../app/business/businessStore';
36
36
  import Text from '../../../../components/Text';
37
37
  import ExpandIcon from '../../../../components/ExpandIcon';
38
38
  import Collapse from '../../../../components/Collapse';
39
- import { isOtherLicense, isSA } from '../../../../utils';
39
+ import { isKW, isOtherLicense } from '../../../../utils';
40
40
  import { OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '../../../../constants';
41
41
  import { settingsSelector } from '../../../../app/settings';
42
- var InputStyled = styled(Input)(function (_a) {
42
+ var InputStyled = styled(InputSelect)(function (_a) {
43
43
  var theme = _a.theme;
44
44
  return ({
45
- marginBottom: theme.spacing(2.5),
46
- '& .MuiInputBase-input': {
47
- cursor: 'pointer'
48
- }
45
+ marginBottom: theme.spacing(2.5)
49
46
  });
50
47
  });
51
48
  var LicenseContainer = styled(Box)(function () { return ({
@@ -93,8 +90,8 @@ var LicenseList = function (_a) {
93
90
  }, [licenseList, selectedLicense]);
94
91
  React.useEffect(function () {
95
92
  if (!!country_code) {
96
- var isNonSA = !isSA(country_code);
97
- if (isNonSA) {
93
+ var isKWCountry = isKW(country_code);
94
+ if (isKWCountry) {
98
95
  var license = (selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === BusinessType.CR ? OTHER_CR_LICENSE : OTHER_FL_LICENSE;
99
96
  setValue('selectedLicense', license, { shouldValidate: true });
100
97
  setValue('entityLegalName', entityLegalName, { shouldValidate: true });
@@ -13,8 +13,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
- import { CR_NUMBER_LENGTH, FL_NUMBER_LENGTH, KW_MAX_LICENSE_LENGTH, KW_MIN_LICENSE_LENGTH } from '../../../../constants';
17
- import { removeAllOtherThanCharsAndNumber, isSA, isOtherLicense } from '../../../../utils';
16
+ import { CR_MIN_LICENSE_LENGTH, CR_NUMBER_MAX_LENGTH, FL_MIN_LICENSE_LENGTH, FL_NUMBER_MAX_LENGTH, KW_MAX_LICENSE_LENGTH, KW_MIN_LICENSE_LENGTH } from '../../../../constants';
17
+ import { removeAllOtherThanCharsAndNumber, isOtherLicense, isKW, isOtherThanKWOrSA } from '../../../../utils';
18
18
  import ScreenContainer from '../../../shared/Containers/ScreenContainer';
19
19
  import ClearIcon from '../../../shared/ClearIcon';
20
20
  import CheckIcon from '../../../shared/CheckIcon';
@@ -30,9 +30,10 @@ var LicenseNumber = function (_a) {
30
30
  var _c = useFormContext(), control = _c.control, watch = _c.watch, getValues = _c.getValues;
31
31
  var licenseNumberControl = useController({ control: control, name: 'licenseNumber' });
32
32
  var settingsData = useAppSelector(settingsSelector).data;
33
- var isSACountry = React.useMemo(function () { return isSA(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
34
- var selectedLicense = !isSACountry ? watch('selectedLicense') : getValues('selectedLicense');
35
- var selectedEntityLicense = !isSACountry ? watch('selectedEntityLicense') : getValues('selectedEntityLicense');
33
+ var isKWCountry = React.useMemo(function () { return isKW(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
34
+ var isOtherThanKWOrSACountry = React.useMemo(function () { return isOtherThanKWOrSA(settingsData.businessCountry.iso2); }, [settingsData.businessCountry.iso2]);
35
+ var selectedLicense = isKWCountry ? watch('selectedLicense') : getValues('selectedLicense');
36
+ var selectedEntityLicense = isKWCountry ? watch('selectedEntityLicense') : getValues('selectedEntityLicense');
36
37
  var isCR = (selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === BusinessType.CR;
37
38
  var readOnly = !isOtherLicense(selectedLicense) || (selectedEntityLicense && !isOtherLicense(selectedEntityLicense));
38
39
  var handleFLNumberChange = function (_a) {
@@ -45,10 +46,10 @@ var LicenseNumber = function (_a) {
45
46
  };
46
47
  var licenseNumberValue = licenseNumberControl.field.value;
47
48
  var error = (_b = licenseNumberControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
48
- var length = !isSACountry ? KW_MAX_LICENSE_LENGTH : isCR ? CR_NUMBER_LENGTH : FL_NUMBER_LENGTH;
49
- var minLength = !isSACountry ? KW_MIN_LICENSE_LENGTH : length;
49
+ var length = isKWCountry || isOtherThanKWOrSACountry ? KW_MAX_LICENSE_LENGTH : isCR ? CR_NUMBER_MAX_LENGTH : FL_NUMBER_MAX_LENGTH;
50
+ var minLength = isKWCountry || isOtherThanKWOrSACountry ? KW_MIN_LICENSE_LENGTH : isCR ? CR_MIN_LICENSE_LENGTH : FL_MIN_LICENSE_LENGTH;
50
51
  var label = isCR ? 'cr_number' : 'fl_number';
51
- var showCheckIcon = !isSACountry ? (licenseNumberValue === null || licenseNumberValue === void 0 ? void 0 : licenseNumberValue.length) >= minLength : (licenseNumberValue === null || licenseNumberValue === void 0 ? void 0 : licenseNumberValue.length) === length;
52
- return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(ScreenContainer, { children: _jsx(Input, { readOnly: readOnly, label: t(label), required: !isSACountry, onChange: handleFLNumberChange, inputProps: { maxLength: length }, value: licenseNumberValue, endAdornment: showCheckIcon ? _jsx(CheckIcon, {}) : licenseNumberValue && _jsx(ClearIcon, { onClick: clearLicenseNumber }), placeholder: isCR ? t('cr_number_hint') : t('fl_number_hint'), warningType: 'alert', warningMessage: error && t(error, { length: minLength }) }) }) })));
52
+ var showCheckIcon = isKWCountry || isOtherThanKWOrSACountry ? (licenseNumberValue === null || licenseNumberValue === void 0 ? void 0 : licenseNumberValue.length) >= minLength : (licenseNumberValue === null || licenseNumberValue === void 0 ? void 0 : licenseNumberValue.length) === length;
53
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsx(ScreenContainer, { children: _jsx(Input, { readOnly: readOnly, label: t(label), required: isKWCountry, onChange: handleFLNumberChange, inputProps: { maxLength: length }, value: licenseNumberValue, endAdornment: showCheckIcon ? _jsx(CheckIcon, {}) : licenseNumberValue && _jsx(ClearIcon, { onClick: clearLicenseNumber }), placeholder: isCR ? t('cr_number_hint') : t('fl_number_hint'), warningType: 'alert', warningMessage: error && t(error, { length: minLength }) }) }) })));
53
54
  };
54
55
  export default React.memo(LicenseNumber);