@tap-payments/auth-jsconnect 2.10.10-beta → 2.10.10

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 (545) hide show
  1. package/README.md +2 -2
  2. package/build/@types/app.d.ts +25 -18
  3. package/build/@types/app.js +7 -0
  4. package/build/@types/config.d.ts +1 -1
  5. package/build/@types/form.d.ts +32 -27
  6. package/build/@types/theme.d.ts +1 -1
  7. package/build/api/account.d.ts +4 -4
  8. package/build/api/account.js +7 -4
  9. package/build/api/auth.d.ts +17 -16
  10. package/build/api/auth.js +7 -3
  11. package/build/api/availabilityServices.d.ts +3 -3
  12. package/build/api/axios.d.ts +1 -1
  13. package/build/api/axios.js +1 -1
  14. package/build/api/board.d.ts +3 -3
  15. package/build/api/brand.d.ts +1 -1
  16. package/build/api/country.d.ts +1 -1
  17. package/build/api/data.d.ts +8 -8
  18. package/build/api/document.d.ts +2 -2
  19. package/build/api/entity.d.ts +13 -10
  20. package/build/api/file.d.ts +1 -1
  21. package/build/api/firebase.js +1 -1
  22. package/build/api/headers.d.ts +5 -0
  23. package/build/api/headers.js +3 -0
  24. package/build/api/index.d.ts +4 -4
  25. package/build/api/individual.d.ts +5 -5
  26. package/build/api/init.d.ts +1 -1
  27. package/build/api/lead.d.ts +14 -13
  28. package/build/api/lead.js +1 -1
  29. package/build/api/operator.d.ts +3 -3
  30. package/build/api/operator.js +6 -3
  31. package/build/api/user.d.ts +3 -3
  32. package/build/app/settings.d.ts +22 -3
  33. package/build/app/settings.js +9 -6
  34. package/build/app/store.d.ts +4 -4
  35. package/build/assets/currencies/AEDSymbol.d.ts +7 -0
  36. package/build/assets/currencies/AEDSymbol.js +28 -0
  37. package/build/assets/currencies/SARSymbol.d.ts +7 -0
  38. package/build/assets/currencies/SARSymbol.js +28 -0
  39. package/build/assets/currencies/index.d.ts +2 -0
  40. package/build/assets/currencies/index.js +2 -0
  41. package/build/assets/currencies/utils.d.ts +4 -0
  42. package/build/assets/currencies/utils.js +6 -0
  43. package/build/assets/locales/ar.json +53 -7
  44. package/build/assets/locales/en.json +58 -11
  45. package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
  46. package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
  47. package/build/components/AnimationFlow/Dialog.d.ts +1 -1
  48. package/build/components/AnimationFlow/Error.d.ts +1 -2
  49. package/build/components/AnimationFlow/Loader.d.ts +1 -2
  50. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  51. package/build/components/Button/Button.d.ts +1 -1
  52. package/build/components/CheckBox/CheckBox.d.ts +1 -1
  53. package/build/components/Collapse/Collapse.d.ts +1 -2
  54. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  55. package/build/components/ExpandIcon/ExpandIcon.d.ts +1 -2
  56. package/build/components/FileInput/DragAndDrop.d.ts +1 -2
  57. package/build/components/FileInput/UploadInput.d.ts +1 -2
  58. package/build/components/Footer/Footer.d.ts +1 -1
  59. package/build/components/Form/Form.d.ts +1 -1
  60. package/build/components/Input/Input.d.ts +1 -1
  61. package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
  62. package/build/components/List/List.d.ts +1 -1
  63. package/build/components/ListItem/ListItem.d.ts +1 -1
  64. package/build/components/Loader/Loader.d.ts +1 -1
  65. package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
  66. package/build/components/OTPField/OTPField.d.ts +1 -1
  67. package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
  68. package/build/components/ProgressBar/CircularProgressBar.d.ts +1 -2
  69. package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
  70. package/build/components/Providers/ReduxProvider.d.ts +1 -1
  71. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  72. package/build/components/Radio/Radio.d.ts +1 -1
  73. package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
  74. package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
  75. package/build/components/SimpleList/SimpleList.d.ts +1 -1
  76. package/build/components/Slide/Slide.d.ts +1 -1
  77. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  78. package/build/components/Text/Text.d.ts +1 -1
  79. package/build/components/TextWithCurrency/TextWithCurrency.d.ts +6 -0
  80. package/build/components/TextWithCurrency/TextWithCurrency.js +14 -0
  81. package/build/components/TextWithCurrency/index.d.ts +2 -0
  82. package/build/components/TextWithCurrency/index.js +2 -0
  83. package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
  84. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  85. package/build/components/Tooltip/Tooltip.d.ts +1 -1
  86. package/build/components/Warning/Warning.d.ts +1 -1
  87. package/build/constants/api.d.ts +1 -0
  88. package/build/constants/api.js +2 -0
  89. package/build/constants/app.d.ts +13 -1
  90. package/build/constants/app.js +139 -26
  91. package/build/constants/assets.d.ts +12 -3
  92. package/build/constants/assets.js +123 -105
  93. package/build/constants/dummy.js +27 -20
  94. package/build/constants/validation.d.ts +1 -0
  95. package/build/constants/validation.js +1 -0
  96. package/build/features/app/auth/authStore.d.ts +232 -24
  97. package/build/features/app/auth/authStore.js +194 -117
  98. package/build/features/app/bank/bankStore.d.ts +93 -12
  99. package/build/features/app/bank/bankStore.js +25 -21
  100. package/build/features/app/board/boardStore.d.ts +41 -5
  101. package/build/features/app/board/boardStore.js +12 -8
  102. package/build/features/app/brand/brandStore.d.ts +143 -17
  103. package/build/features/app/brand/brandStore.js +23 -19
  104. package/build/features/app/business/businessStore.d.ts +192 -21
  105. package/build/features/app/business/businessStore.js +46 -37
  106. package/build/features/app/connect/connectStore.d.ts +186 -23
  107. package/build/features/app/connect/connectStore.js +49 -32
  108. package/build/features/app/connectExpress/connectExpressStore.d.ts +324 -36
  109. package/build/features/app/connectExpress/connectExpressStore.js +236 -47
  110. package/build/features/app/entity/entityStore.d.ts +93 -12
  111. package/build/features/app/entity/entityStore.js +22 -18
  112. package/build/features/app/individual/individualStore.d.ts +186 -24
  113. package/build/features/app/individual/individualStore.js +34 -29
  114. package/build/features/app/kyc/kycStore.d.ts +62 -8
  115. package/build/features/app/kyc/kycStore.js +1 -1
  116. package/build/features/app/password/passwordStore.d.ts +123 -15
  117. package/build/features/app/password/passwordStore.js +45 -47
  118. package/build/features/app/signIn/signInStore.d.ts +61 -7
  119. package/build/features/app/signIn/signInStore.js +13 -17
  120. package/build/features/app/tax/taxStore.d.ts +83 -11
  121. package/build/features/app/tax/taxStore.js +22 -18
  122. package/build/features/auth/Auth.d.ts +2 -3
  123. package/build/features/auth/Auth.js +1 -1
  124. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  125. package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +1 -1
  126. package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  127. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +1 -1
  128. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  129. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +1 -1
  130. package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
  131. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +3 -3
  132. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +1 -1
  133. package/build/features/auth/screens/AuthenticationList/EntityList.js +2 -2
  134. package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  135. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  136. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -1
  137. package/build/features/auth/screens/CivilID/CivilID.d.ts +1 -1
  138. package/build/features/auth/screens/DOB/DOB.d.ts +1 -2
  139. package/build/features/auth/screens/DOB/DOBForm.d.ts +1 -1
  140. package/build/features/auth/screens/Email/Email.d.ts +1 -1
  141. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +1 -1
  142. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +1 -1
  143. package/build/features/auth/screens/Mobile/Mobile.d.ts +1 -1
  144. package/build/features/auth/screens/NID/NID.d.ts +1 -1
  145. package/build/features/auth/screens/OTP/OTP.d.ts +6 -3
  146. package/build/features/auth/screens/OTP/OTP.js +15 -3
  147. package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
  148. package/build/features/auth/screens/OTP/index.d.ts +1 -2
  149. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +1 -1
  150. package/build/features/auth/screens/Passcode/Passcode.d.ts +8 -0
  151. package/build/features/auth/screens/Passcode/Passcode.js +82 -0
  152. package/build/features/auth/screens/Passcode/PasscodeInput.d.ts +6 -0
  153. package/build/features/auth/screens/Passcode/PasscodeInput.js +42 -0
  154. package/build/features/auth/screens/Passcode/index.d.ts +2 -0
  155. package/build/features/auth/screens/Passcode/index.js +2 -0
  156. package/build/features/auth/screens/Passcode/validation.d.ts +8 -0
  157. package/build/features/auth/screens/Passcode/validation.js +4 -0
  158. package/build/features/auth/screens/Password/Password.d.ts +1 -1
  159. package/build/features/auth/screens/Password/PasswordField.d.ts +1 -1
  160. package/build/features/auth/screens/PreparingData/PreparingData.d.ts +1 -1
  161. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +1 -1
  162. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  163. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  164. package/build/features/bank/Bank.d.ts +1 -2
  165. package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
  166. package/build/features/bank/screens/BankDetails/BankName.d.ts +2 -3
  167. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +2 -3
  168. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +1 -2
  169. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +2 -3
  170. package/build/features/bank/screens/BankDetails/IBAN.d.ts +1 -2
  171. package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
  172. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +1 -1
  173. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  174. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  175. package/build/features/bank/screens/Success/Success.d.ts +1 -1
  176. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  177. package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
  178. package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
  179. package/build/features/board/Board.d.ts +1 -2
  180. package/build/features/board/screens/OperatorError/OperatorError.d.ts +1 -1
  181. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  182. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  183. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  184. package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
  185. package/build/features/board/screens/Verify/Verify.d.ts +1 -1
  186. package/build/features/brand/Brand.d.ts +1 -2
  187. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +13 -29
  188. package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +1 -2
  189. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
  190. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +1 -2
  191. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +1 -2
  192. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +3 -8
  193. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +12 -20
  194. package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -3
  195. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +2 -3
  196. package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
  197. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -3
  198. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
  199. package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
  200. package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
  201. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +1 -2
  202. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +1 -2
  203. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +1 -2
  204. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +1 -2
  205. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +1 -2
  206. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +1 -1
  207. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  208. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  209. package/build/features/brand/screens/Success/Success.d.ts +1 -1
  210. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  211. package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
  212. package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
  213. package/build/features/business/Business.d.ts +1 -2
  214. package/build/features/business/screens/Activities/Activities.d.ts +1 -2
  215. package/build/features/business/screens/Activities/ActivitiesList.d.ts +9 -25
  216. package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
  217. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -13
  218. package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
  219. package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
  220. package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
  221. package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
  222. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +5 -13
  223. package/build/features/business/screens/BusinessType/Article.d.ts +2 -3
  224. package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
  225. package/build/features/business/screens/BusinessType/BusinessType.js +13 -2
  226. package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
  227. package/build/features/business/screens/BusinessType/EntityLicenseList.js +11 -5
  228. package/build/features/business/screens/BusinessType/EntityName.d.ts +1 -2
  229. package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
  230. package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
  231. package/build/features/business/screens/BusinessType/LicenseList.js +15 -7
  232. package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
  233. package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -4
  234. package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
  235. package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
  236. package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +35 -0
  237. package/build/features/business/screens/BusinessType/UnifiedNumber.js +84 -0
  238. package/build/features/business/screens/BusinessType/validation.d.ts +6 -3
  239. package/build/features/business/screens/BusinessType/validation.js +31 -10
  240. package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
  241. package/build/features/business/screens/Customers/CustomerLocations.d.ts +17 -41
  242. package/build/features/business/screens/Customers/Customers.d.ts +1 -1
  243. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +1 -2
  244. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -2
  245. package/build/features/business/screens/Customers/ExpectedSalesRange.js +3 -8
  246. package/build/features/business/screens/Customers/RefundPolicy.d.ts +12 -20
  247. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +2 -3
  248. package/build/features/business/screens/DOB/DOB.d.ts +1 -1
  249. package/build/features/business/screens/DOB/DOBForm.d.ts +1 -1
  250. package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
  251. package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
  252. package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
  253. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.d.ts +1 -2
  254. package/build/features/business/screens/MobileOwnership/MobileNumber.d.ts +1 -1
  255. package/build/features/business/screens/OperatorError/OperatorError.d.ts +1 -1
  256. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  257. package/build/features/business/screens/Success/Success.d.ts +1 -1
  258. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  259. package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
  260. package/build/features/business/screens/Verify/Verify.d.ts +1 -1
  261. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  262. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  263. package/build/features/connect/Connect.d.ts +1 -2
  264. package/build/features/connect/Connect.js +1 -1
  265. package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
  266. package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +1 -2
  267. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  268. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
  269. package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
  270. package/build/features/connect/screens/DOB/DOB.d.ts +1 -2
  271. package/build/features/connect/screens/DOB/DOBForm.d.ts +1 -1
  272. package/build/features/connect/screens/Individual/Email.d.ts +1 -1
  273. package/build/features/connect/screens/Individual/Email.js +1 -1
  274. package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
  275. package/build/features/connect/screens/Individual/Name.d.ts +1 -1
  276. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  277. package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
  278. package/build/features/connect/screens/Merchant/BrandName.js +1 -1
  279. package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
  280. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
  281. package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
  282. package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
  283. package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
  284. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +1 -2
  285. package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +1 -1
  286. package/build/features/connect/screens/NID/NID.d.ts +1 -1
  287. package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
  288. package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
  289. package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
  290. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
  291. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  292. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  293. package/build/features/connectExpress/ConnectExpress.d.ts +1 -2
  294. package/build/features/connectExpress/ConnectExpress.js +1 -1
  295. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
  296. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  297. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  298. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  299. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
  300. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
  301. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +3 -3
  302. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +1 -1
  303. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +2 -2
  304. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  305. package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
  306. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  307. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -1
  308. package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
  309. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
  310. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
  311. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
  312. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
  313. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -0
  314. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
  315. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +23 -7
  316. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
  317. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  318. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -4
  319. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +3 -3
  320. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +1 -1
  321. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +36 -0
  322. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +81 -0
  323. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +6 -3
  324. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +57 -21
  325. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
  326. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
  327. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
  328. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
  329. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
  330. package/build/features/connectExpress/screens/DOB/DOB.d.ts +1 -2
  331. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +1 -1
  332. package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.d.ts +1 -2
  333. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +1 -1
  334. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
  335. package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
  336. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
  337. package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
  338. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +1 -2
  339. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +1 -1
  340. package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
  341. package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -3
  342. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -2
  343. package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
  344. package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
  345. package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
  346. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +1 -1
  347. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +1 -1
  348. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  349. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.d.ts +5 -0
  350. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.js +49 -0
  351. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.d.ts +5 -0
  352. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.js +88 -0
  353. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.d.ts +3 -0
  354. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.js +2 -0
  355. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.d.ts +8 -0
  356. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.js +4 -0
  357. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  358. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  359. package/build/features/entity/Entity.d.ts +1 -2
  360. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +9 -25
  361. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
  362. package/build/features/entity/screens/EntityCapital/CapitalPaid.js +3 -7
  363. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
  364. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
  365. package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +3 -7
  366. package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
  367. package/build/features/entity/screens/EntityName/Article.d.ts +2 -3
  368. package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
  369. package/build/features/entity/screens/EntityName/EntityName.js +16 -15
  370. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +13 -29
  371. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +5 -13
  372. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +5 -13
  373. package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
  374. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
  375. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
  376. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
  377. package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
  378. package/build/features/entity/screens/EntityName/validation.d.ts +50 -48
  379. package/build/features/entity/screens/EntityName/validation.js +100 -85
  380. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +1 -1
  381. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  382. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  383. package/build/features/entity/screens/Success/Success.d.ts +1 -1
  384. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  385. package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
  386. package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
  387. package/build/features/featuresScreens.js +65 -0
  388. package/build/features/individual/Individual.d.ts +1 -2
  389. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
  390. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +2 -3
  391. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
  392. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +3 -3
  393. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  394. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +3 -8
  395. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
  396. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +3 -3
  397. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
  398. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
  399. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -8
  400. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
  401. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  402. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
  403. package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
  404. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  405. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +9 -25
  406. package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
  407. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
  408. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
  409. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
  410. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +4 -4
  411. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
  412. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
  413. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
  414. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
  415. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +1 -1
  416. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  417. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  418. package/build/features/individual/screens/Success/Success.d.ts +1 -1
  419. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  420. package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
  421. package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
  422. package/build/features/kyc/KYC.d.ts +1 -2
  423. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.d.ts +1 -1
  424. package/build/features/kyc/screens/Loading/Loading.d.ts +2 -2
  425. package/build/features/kyc/screens/OperatorError/OperatorError.d.ts +1 -1
  426. package/build/features/kyc/screens/Success/Success.d.ts +1 -1
  427. package/build/features/kyc/screens/Terms/Header.d.ts +1 -1
  428. package/build/features/kyc/screens/Terms/Terms.d.ts +2 -2
  429. package/build/features/kyc/screens/TokenError/TokenError.d.ts +1 -1
  430. package/build/features/kyc/screens/Users/Users.d.ts +1 -1
  431. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  432. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.d.ts +1 -1
  433. package/build/features/password/Password.d.ts +1 -2
  434. package/build/features/password/Password.js +1 -1
  435. package/build/features/password/screens/CreatePassword/ConditionText.d.ts +1 -2
  436. package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
  437. package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
  438. package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
  439. package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +1 -2
  440. package/build/features/password/screens/OTP/OTP.d.ts +1 -1
  441. package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
  442. package/build/features/password/screens/OperatorError/OperatorError.d.ts +1 -1
  443. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  444. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  445. package/build/features/password/screens/Success/Success.d.ts +1 -1
  446. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  447. package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
  448. package/build/features/password/screens/Verify/Verify.d.ts +1 -1
  449. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +1 -2
  450. package/build/features/shared/Address/Address.d.ts +1 -2
  451. package/build/features/shared/Address/CountryList.d.ts +13 -29
  452. package/build/features/shared/Address/InputSelect.d.ts +13 -29
  453. package/build/features/shared/Address/InputSelect.js +1 -1
  454. package/build/features/shared/Address/InputText.d.ts +1 -1
  455. package/build/features/shared/Background/Background.d.ts +1 -1
  456. package/build/features/shared/Background/LogoBackground.d.ts +1 -1
  457. package/build/features/shared/Background/LogoBackground.js +5 -17
  458. package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +1 -2
  459. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +1 -2
  460. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  461. package/build/features/shared/Button/Button.d.ts +1 -2
  462. package/build/features/shared/Button/Button.js +1 -2
  463. package/build/features/shared/Button/EmailProvidersButtons.d.ts +2 -3
  464. package/build/features/shared/Button/FlowsButtons.d.ts +2 -3
  465. package/build/features/shared/Button/FlowsButtons.js +1 -1
  466. package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
  467. package/build/features/shared/Button/MobileButton.d.ts +1 -2
  468. package/build/features/shared/Button/NafathButton.d.ts +1 -2
  469. package/build/features/shared/Button/SuccessButton.d.ts +1 -2
  470. package/build/features/shared/Calender/Calender.d.ts +1 -2
  471. package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -3
  472. package/build/features/shared/Chip/Chip.d.ts +1 -2
  473. package/build/features/shared/ClearIcon/ClearIcon.d.ts +1 -2
  474. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  475. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  476. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
  477. package/build/features/shared/DataLoading/DataLoading.d.ts +1 -1
  478. package/build/features/shared/Dialog/CloseDialog.d.ts +1 -2
  479. package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
  480. package/build/features/shared/Dot/Dot.d.ts +1 -2
  481. package/build/features/shared/EndAdornment/EndAdornment.d.ts +1 -2
  482. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
  483. package/build/features/shared/Footer/Footer.d.ts +1 -2
  484. package/build/features/shared/Footer/PoweredByFooter.d.ts +2 -3
  485. package/build/features/shared/GenericError/GenericError.d.ts +1 -1
  486. package/build/features/shared/Input/Input.d.ts +7 -15
  487. package/build/features/shared/InputSelect/InputSelect.d.ts +1 -2
  488. package/build/features/shared/Mandatory/Mandatory.d.ts +1 -2
  489. package/build/features/shared/NafathVerification/NafathVerification.d.ts +1 -1
  490. package/build/features/shared/OTP/OTP.d.ts +1 -1
  491. package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.d.ts +3 -0
  492. package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.js +9 -0
  493. package/build/features/shared/OTPVerifySecurityError/index.d.ts +2 -0
  494. package/build/features/shared/OTPVerifySecurityError/index.js +2 -0
  495. package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
  496. package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +1 -2
  497. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -2
  498. package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
  499. package/build/features/shared/Search/Search.d.ts +1 -2
  500. package/build/features/shared/SearchIcon/SearchIcon.d.ts +1 -2
  501. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
  502. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
  503. package/build/features/shared/UploadFile/FileUpload.d.ts +4 -4
  504. package/build/features/shared/UploadFile/FileUpload.js +1 -1
  505. package/build/features/shared/UploadFile/UploadFile.d.ts +3 -3
  506. package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -3
  507. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +4 -4
  508. package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
  509. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +3 -3
  510. package/build/features/signIn/SignIn.d.ts +1 -2
  511. package/build/features/signIn/screens/Email/Email.d.ts +1 -1
  512. package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
  513. package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
  514. package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
  515. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +1 -1
  516. package/build/features/signIn/screens/Password/Password.d.ts +1 -1
  517. package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
  518. package/build/features/tax/Tax.d.ts +1 -2
  519. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +1 -1
  520. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  521. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  522. package/build/features/tax/screens/Success/Success.d.ts +1 -1
  523. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  524. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +2 -3
  525. package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +1 -2
  526. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
  527. package/build/features/tax/screens/TaxDetails/VATId.d.ts +2 -3
  528. package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
  529. package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
  530. package/build/hooks/useAppConfig.js +1 -1
  531. package/build/hooks/useDataVerified.d.ts +1 -1
  532. package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
  533. package/build/hooks/useFormDirtyCheck.d.ts +3 -3
  534. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
  535. package/build/hooks/useFormReadOnly.d.ts +2 -2
  536. package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
  537. package/build/utils/array.js +1 -1
  538. package/build/utils/common.d.ts +1 -1
  539. package/build/utils/common.js +14 -8
  540. package/build/utils/error.d.ts +2 -0
  541. package/build/utils/error.js +6 -0
  542. package/build/utils/string.d.ts +3 -2
  543. package/build/utils/string.js +4 -1
  544. package/build/utils/validation.js +1 -1
  545. package/package.json +3 -3
@@ -32,6 +32,7 @@ import Article from './Article';
32
32
  import EntityLicenseList from './EntityLicenseList';
33
33
  import LicenseNumber from './LicenseNumber';
34
34
  import EntityName from './EntityName';
35
+ import UnifiedNumber from './UnifiedNumber';
35
36
  var ListType;
36
37
  (function (ListType) {
37
38
  ListType["LicenseList"] = "LicenseList";
@@ -40,7 +41,7 @@ var ListType;
40
41
  var BusinessType = function (_a) {
41
42
  var _b = useAppSelector(businessSelector), data = _b.data, loading = _b.loading, error = _b.error, uploading = _b.uploading, uploadingArticle = _b.uploadingArticle;
42
43
  var settingsData = useAppSelector(settingsSelector).data;
43
- var _c = data.businessTypeData, selectedLicense = _c.selectedLicense, licenseNumber = _c.licenseNumber, entityLegalName = _c.entityLegalName, certificateId = _c.certificateId, articleId = _c.articleId, selectedEntityLicense = _c.selectedEntityLicense, responseBody = _c.responseBody, isPrevDob = _c.isPrevDob;
44
+ var _c = data.businessTypeData, selectedLicense = _c.selectedLicense, licenseNumber = _c.licenseNumber, entityLegalName = _c.entityLegalName, certificateId = _c.certificateId, articleId = _c.articleId, selectedEntityLicense = _c.selectedEntityLicense, responseBody = _c.responseBody, isPrevDob = _c.isPrevDob, unifiedNumber = _c.unifiedNumber;
44
45
  var entityLicenseList = (responseBody === null || responseBody === void 0 ? void 0 : responseBody.entityLicenseList) || [];
45
46
  var t = useTranslation().t;
46
47
  var isAr = useLanguage().isAr;
@@ -73,6 +74,7 @@ var BusinessType = function (_a) {
73
74
  selectedLicense: selectedLicense,
74
75
  selectedEntityLicense: selectedEntityLicense,
75
76
  licenseNumber: licenseNumber,
77
+ unifiedNumber: unifiedNumber,
76
78
  entityLegalName: entityLegalName,
77
79
  certificateId: certificateId,
78
80
  articleId: articleId
@@ -89,6 +91,7 @@ var BusinessType = function (_a) {
89
91
  selectedLicense: data.selectedLicense,
90
92
  selectedEntityLicense: data.selectedEntityLicense,
91
93
  licenseNumber: data.licenseNumber,
94
+ unifiedNumber: data.unifiedNumber,
92
95
  entityLegalName: data.entityLegalName,
93
96
  certificateId: data.certificateId,
94
97
  articleId: data.articleId
@@ -98,17 +101,25 @@ var BusinessType = function (_a) {
98
101
  var onBack = function () {
99
102
  dispatch(handlePrevScreenStep(isPrevDob ? 'BUSINESS_DOB_STEP' : 'BUSINESS_IDBOD_STEP'));
100
103
  };
104
+ var showLicenseNumber = function () {
105
+ if (isKWCountry)
106
+ return !isAnyListActive && isCR;
107
+ if (isSACountry)
108
+ return !isAnyListActive && isFL;
109
+ return !isAnyListActive;
110
+ };
101
111
  var isLicenseListActive = listActive === ListType.LicenseList;
102
112
  var isEntityLicenseListActive = listActive === ListType.EntityLicenseList;
103
113
  var isAnyListActive = isLicenseListActive || isEntityLicenseListActive;
104
114
  var selected = methods.getValues('selectedLicense');
105
115
  var selectedLicenseEntity = methods.getValues('selectedEntityLicense');
106
116
  var isCR = (selected === null || selected === void 0 ? void 0 : selected.type) === Type.CR;
117
+ var isFL = (selected === null || selected === void 0 ? void 0 : selected.type) === Type.FL;
107
118
  var hasEntityList = !!(entityLicenseList === null || entityLicenseList === void 0 ? void 0 : entityLicenseList.length);
108
119
  var showLicenseList = hasEntityList ? (isSACountry || isOtherCountry) && isOtherLicense(selectedLicenseEntity) : isSACountry || isOtherCountry;
109
120
  var showEntityList = isKWCountry ? hasEntityList && !isLicenseListActive && isCR : hasEntityList && !isLicenseListActive;
110
121
  var disabled = !methods.formState.isValid || uploading || uploadingArticle;
111
122
  var disableBack = !data.otpData.isNID;
112
- 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') })) }))] })) })) }));
123
+ 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: showLicenseNumber() }), _jsx(UnifiedNumber, { show: isSACountry && 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') })) }))] })) })) }));
113
124
  };
114
125
  export default React.memo(BusinessType);
@@ -5,5 +5,5 @@ interface EntityLicenseListProps {
5
5
  onListOpen?: () => void;
6
6
  onListClose?: () => void;
7
7
  }
8
- declare const _default: React.MemoExoticComponent<({ ...rest }: EntityLicenseListProps) => JSX.Element>;
8
+ declare const _default: React.MemoExoticComponent<({ ...rest }: EntityLicenseListProps) => import("react/jsx-runtime").JSX.Element>;
9
9
  export default _default;
@@ -36,7 +36,7 @@ import { businessSelector, clearError } from '../../../app/business/businessStor
36
36
  import Text from '../../../../components/Text';
37
37
  import ExpandIcon from '../../../../components/ExpandIcon';
38
38
  import Collapse from '../../../../components/Collapse';
39
- import { isKW, isOtherLicense } from '../../../../utils';
39
+ import { isKW, isOtherLicense, isSA } from '../../../../utils';
40
40
  import { settingsSelector } from '../../../../app/settings';
41
41
  import { OTHER_CR_LICENSE } from '../../../../constants';
42
42
  var InputStyled = styled(InputSelect)(function (_a) {
@@ -67,6 +67,7 @@ var EntityLicenseList = function (_a) {
67
67
  var entityLicenseList = (responseBody || {}).entityLicenseList;
68
68
  var country_code = settingsData.businessCountry.iso2;
69
69
  var isKWCountry = React.useMemo(function () { return isKW(country_code); }, [country_code]);
70
+ var isSACountry = React.useMemo(function () { return isSA(country_code); }, [country_code]);
70
71
  var onOpenLicenseList = function (event) {
71
72
  var _a;
72
73
  setAnchorEl(event.currentTarget);
@@ -90,8 +91,10 @@ var EntityLicenseList = function (_a) {
90
91
  }
91
92
  }, [entityLicenseList, selectedEntityLicense]);
92
93
  var getLicenseNumber = function (item) {
93
- var _a;
94
- return ((_a = item === null || item === void 0 ? void 0 : item.license) === null || _a === void 0 ? void 0 : _a.number) || '';
94
+ var _a, _b, _c;
95
+ if ((item === null || item === void 0 ? void 0 : item.type) === BusinessType.CR && isSACountry)
96
+ return ((_b = (_a = item === null || item === void 0 ? void 0 : item.license) === null || _a === void 0 ? void 0 : _a.additional_info) === null || _b === void 0 ? void 0 : _b.unified_number) || '';
97
+ return ((_c = item === null || item === void 0 ? void 0 : item.license) === null || _c === void 0 ? void 0 : _c.number) || '';
95
98
  };
96
99
  var getLicenseName = function (item) {
97
100
  var _a, _b;
@@ -100,6 +103,7 @@ var EntityLicenseList = function (_a) {
100
103
  return t((isAr ? (_a = item === null || item === void 0 ? void 0 : item.legal_name) === null || _a === void 0 ? void 0 : _a.ar : (_b = item === null || item === void 0 ? void 0 : item.legal_name) === null || _b === void 0 ? void 0 : _b.en) || '');
101
104
  };
102
105
  var onSelectItem = function (license) {
106
+ var _a, _b, _c;
103
107
  if (error)
104
108
  dispatch(clearError());
105
109
  selectedEntityLicenseControl.field.onChange(license);
@@ -107,10 +111,12 @@ var EntityLicenseList = function (_a) {
107
111
  var license_1 = isKWCountry ? OTHER_CR_LICENSE : {};
108
112
  setValue('selectedLicense', license_1, { shouldValidate: true });
109
113
  setValue('licenseNumber', '', { shouldValidate: true });
114
+ setValue('unifiedNumber', '', { shouldValidate: true });
110
115
  }
111
116
  else {
112
117
  setValue('selectedLicense', license, { shouldValidate: true });
113
- setValue('licenseNumber', getLicenseNumber(license), { shouldValidate: true });
118
+ setValue('licenseNumber', ((_a = license === null || license === void 0 ? void 0 : license.license) === null || _a === void 0 ? void 0 : _a.number) || '', { shouldValidate: true });
119
+ setValue('unifiedNumber', ((_c = (_b = license === null || license === void 0 ? void 0 : license.license) === null || _b === void 0 ? void 0 : _b.additional_info) === null || _c === void 0 ? void 0 : _c.unified_number) || '', { shouldValidate: true });
114
120
  }
115
121
  onCloseLicenseList();
116
122
  };
@@ -122,7 +128,7 @@ var EntityLicenseList = function (_a) {
122
128
  var selected = selectedEntityLicenseControl.field.value;
123
129
  var isCR = (selected === null || selected === void 0 ? void 0 : selected.type) === BusinessType.CR;
124
130
  var flValue = isOtherLicense(selected) ? t(getLicenseName(selected)) : getLicenseNumber(selected);
125
- return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputStyled, { label: t('choose_entity_license'), onClick: !!anchorEl ? function () { return onCloseLicenseList(); } : onOpenLicenseList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }), placeholder: t('choose_license_entity'), value: isCR ? t(getLicenseName(selected)) : flValue }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'legal_name?.en', list: entityLicenseList || [], onSelectItem: onSelectItem, renderItem: function (item) {
131
+ return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputStyled, { label: t('choose_entity_license'), onClick: !!anchorEl ? function () { return onCloseLicenseList(); } : onOpenLicenseList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }), placeholder: t('choose_license_entity'), value: (isCR ? t(getLicenseName(selected)) : flValue) || '' }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'legal_name?.en', list: entityLicenseList || [], onSelectItem: onSelectItem, renderItem: function (item) {
126
132
  return (_jsxs(_Fragment, { children: [_jsx(LicenseContainer, { children: _jsx(LicenseNameText, __assign({ isSelected: getLicenseNumber(item) === getLicenseNumber(selected) }, { children: isOtherLicense(item) ? t(getLicenseName(item)) : getLicenseFullName(item) })) }), getLicenseNumber(item) === getLicenseNumber(selected) && _jsx(CheckIcon, {})] }));
127
133
  } }) }))] }) })));
128
134
  };
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  interface EntityNameProps {
3
2
  show: boolean;
4
3
  }
5
- declare const EntityName: ({ show }: EntityNameProps) => JSX.Element;
4
+ declare const EntityName: ({ show }: EntityNameProps) => import("react/jsx-runtime").JSX.Element;
6
5
  export default EntityName;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  interface LicenseCertificateProps {
3
2
  show: boolean;
4
3
  }
5
- declare const LicenseCertificate: ({ show }: LicenseCertificateProps) => JSX.Element;
4
+ declare const LicenseCertificate: ({ show }: LicenseCertificateProps) => import("react/jsx-runtime").JSX.Element;
6
5
  export default LicenseCertificate;
@@ -5,5 +5,5 @@ interface LicenseListProps {
5
5
  onListOpen?: () => void;
6
6
  onListClose?: () => void;
7
7
  }
8
- declare const _default: React.MemoExoticComponent<({ ...rest }: LicenseListProps) => JSX.Element>;
8
+ declare const _default: React.MemoExoticComponent<({ ...rest }: LicenseListProps) => import("react/jsx-runtime").JSX.Element>;
9
9
  export default _default;
@@ -36,7 +36,7 @@ import { businessSelector, clearError } from '../../../app/business/businessStor
36
36
  import Text from '../../../../components/Text';
37
37
  import ExpandIcon from '../../../../components/ExpandIcon';
38
38
  import Collapse from '../../../../components/Collapse';
39
- import { isKW, isOtherLicense } from '../../../../utils';
39
+ import { isKW, isOtherLicense, isSA } from '../../../../utils';
40
40
  import { OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '../../../../constants';
41
41
  import { settingsSelector } from '../../../../app/settings';
42
42
  var InputStyled = styled(InputSelect)(function (_a) {
@@ -66,6 +66,7 @@ var LicenseList = function (_a) {
66
66
  var responseBody = businessTypeData.responseBody, selectedLicense = businessTypeData.selectedLicense, licenseNumber = businessTypeData.licenseNumber, entityLegalName = businessTypeData.entityLegalName;
67
67
  var licenseList = (responseBody || { licenseList: [] }).licenseList;
68
68
  var country_code = settingsData.businessCountry.iso2;
69
+ var isSACountry = React.useMemo(function () { return isSA(country_code); }, [country_code]);
69
70
  var onOpenLicenseList = function (event) {
70
71
  var _a;
71
72
  setAnchorEl(event.currentTarget);
@@ -99,8 +100,10 @@ var LicenseList = function (_a) {
99
100
  }
100
101
  }, [country_code]);
101
102
  var getLicenseNumber = function (item) {
102
- var _a;
103
- return ((_a = item === null || item === void 0 ? void 0 : item.license) === null || _a === void 0 ? void 0 : _a.number) || '';
103
+ var _a, _b, _c;
104
+ if ((item === null || item === void 0 ? void 0 : item.type) === BusinessType.CR && isSACountry)
105
+ return ((_b = (_a = item === null || item === void 0 ? void 0 : item.license) === null || _a === void 0 ? void 0 : _a.additional_info) === null || _b === void 0 ? void 0 : _b.unified_number) || '';
106
+ return ((_c = item === null || item === void 0 ? void 0 : item.license) === null || _c === void 0 ? void 0 : _c.number) || '';
104
107
  };
105
108
  var getLicenseName = function (item) {
106
109
  var _a, _b;
@@ -109,13 +112,18 @@ var LicenseList = function (_a) {
109
112
  return t((isAr ? (_a = item === null || item === void 0 ? void 0 : item.legal_name) === null || _a === void 0 ? void 0 : _a.ar : (_b = item === null || item === void 0 ? void 0 : item.legal_name) === null || _b === void 0 ? void 0 : _b.en) || '');
110
113
  };
111
114
  var onSelectItem = function (license) {
115
+ var _a, _b, _c;
112
116
  if (error)
113
117
  dispatch(clearError());
114
118
  selectedLicenseControl.field.onChange(license);
115
- if (isOtherLicense(license))
119
+ if (isOtherLicense(license)) {
116
120
  setValue('licenseNumber', '', { shouldValidate: true });
117
- else
118
- setValue('licenseNumber', getLicenseNumber(license), { shouldValidate: true });
121
+ setValue('unifiedNumber', '', { shouldValidate: true });
122
+ }
123
+ else {
124
+ setValue('licenseNumber', ((_a = license === null || license === void 0 ? void 0 : license.license) === null || _a === void 0 ? void 0 : _a.number) || '', { shouldValidate: true });
125
+ setValue('unifiedNumber', ((_c = (_b = license === null || license === void 0 ? void 0 : license.license) === null || _b === void 0 ? void 0 : _b.additional_info) === null || _c === void 0 ? void 0 : _c.unified_number) || '', { shouldValidate: true });
126
+ }
119
127
  onCloseLicenseList();
120
128
  };
121
129
  var getLicenseFullName = function (item) {
@@ -126,7 +134,7 @@ var LicenseList = function (_a) {
126
134
  var selected = selectedLicenseControl.field.value;
127
135
  var isCR = (selected === null || selected === void 0 ? void 0 : selected.type) === BusinessType.CR;
128
136
  var flValue = isOtherLicense(selected) ? t(getLicenseName(selected)) : getLicenseNumber(selected);
129
- return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputStyled, { label: t('choose_any_license'), onClick: !!anchorEl ? function () { return onCloseLicenseList(); } : onOpenLicenseList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }), placeholder: t('choose_license_cr'), value: isCR ? t(getLicenseName(selected)) : flValue }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'legal_name?.en', list: licenseList || [], onSelectItem: onSelectItem, renderItem: function (item) {
137
+ return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputStyled, { label: t('choose_any_license'), onClick: !!anchorEl ? function () { return onCloseLicenseList(); } : onOpenLicenseList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }), placeholder: t('choose_license_cr'), value: (isCR ? t(getLicenseName(selected)) : flValue) || '' }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { searchKeyPath: 'legal_name?.en', list: licenseList || [], onSelectItem: onSelectItem, renderItem: function (item) {
130
138
  return (_jsxs(_Fragment, { children: [_jsx(LicenseContainer, { children: _jsx(LicenseNameText, __assign({ isSelected: getLicenseNumber(item) === getLicenseNumber(selected) }, { children: isOtherLicense(item) ? t(getLicenseName(item)) : getLicenseFullName(item) })) }), getLicenseNumber(item) === getLicenseNumber(selected) && _jsx(CheckIcon, {})] }));
131
139
  } }) }))] }) })));
132
140
  };
@@ -2,5 +2,5 @@ import * as React from 'react';
2
2
  interface LicenseNumberProps {
3
3
  show: boolean;
4
4
  }
5
- declare const _default: React.MemoExoticComponent<({ show }: LicenseNumberProps) => JSX.Element>;
5
+ declare const _default: React.MemoExoticComponent<({ show }: LicenseNumberProps) => import("react/jsx-runtime").JSX.Element>;
6
6
  export default _default;
@@ -10,7 +10,7 @@ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
10
10
  sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
11
11
  titleAccess?: string | undefined;
12
12
  viewBox?: string | undefined;
13
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "fr" | "in" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "mode" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "origin" | "method" | "operator" | "spacing" | "elevation" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
13
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
14
14
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
15
15
  }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
16
16
  export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
@@ -24,11 +24,11 @@ export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledCom
24
24
  sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
25
25
  titleAccess?: string | undefined;
26
26
  viewBox?: string | undefined;
27
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "fr" | "in" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "mode" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "origin" | "method" | "operator" | "spacing" | "elevation" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
27
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
28
28
  ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
29
29
  }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
30
- declare type LicenseTypeProps = {
30
+ type LicenseTypeProps = {
31
31
  show: boolean;
32
32
  };
33
- declare const LicenseType: ({ show }: LicenseTypeProps) => JSX.Element;
33
+ declare const LicenseType: ({ show }: LicenseTypeProps) => import("react/jsx-runtime").JSX.Element;
34
34
  export default LicenseType;
@@ -4,5 +4,5 @@ interface SelectTypeProps {
4
4
  onSwitchToCR?: () => void;
5
5
  onSwitchToFL?: () => void;
6
6
  }
7
- declare const _default: React.MemoExoticComponent<({ show, onSwitchToCR, onSwitchToFL }: SelectTypeProps) => JSX.Element>;
7
+ declare const _default: React.MemoExoticComponent<({ show, onSwitchToCR, onSwitchToFL }: SelectTypeProps) => import("react/jsx-runtime").JSX.Element>;
8
8
  export default _default;
@@ -3,5 +3,5 @@ import { FormControlLabelProps } from '@mui/material/FormControlLabel';
3
3
  interface BTypeSwitchProps extends FormControlLabelProps {
4
4
  active: boolean;
5
5
  }
6
- declare const _default: React.MemoExoticComponent<(props: BTypeSwitchProps) => JSX.Element>;
6
+ declare const _default: React.MemoExoticComponent<(props: BTypeSwitchProps) => import("react/jsx-runtime").JSX.Element>;
7
7
  export default _default;
@@ -0,0 +1,35 @@
1
+ import * as React from 'react';
2
+ export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
3
+ children?: React.ReactNode;
4
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
5
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
6
+ fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
7
+ htmlColor?: string | undefined;
8
+ inheritViewBox?: boolean | undefined;
9
+ shapeRendering?: string | undefined;
10
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
11
+ titleAccess?: string | undefined;
12
+ viewBox?: string | undefined;
13
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
14
+ ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
15
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
16
+ export declare const InfoOutlinedIconStyled: import("@emotion/styled").StyledComponent<{
17
+ children?: React.ReactNode;
18
+ classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
19
+ color?: "inherit" | "disabled" | "error" | "info" | "success" | "action" | "primary" | "secondary" | "warning" | undefined;
20
+ fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
21
+ htmlColor?: string | undefined;
22
+ inheritViewBox?: boolean | undefined;
23
+ shapeRendering?: string | undefined;
24
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
25
+ titleAccess?: string | undefined;
26
+ viewBox?: string | undefined;
27
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
28
+ ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
29
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
30
+ interface UnifiedNumberProps {
31
+ show: boolean;
32
+ isVerified?: boolean;
33
+ }
34
+ declare const _default: React.MemoExoticComponent<({ show, isVerified }: UnifiedNumberProps) => import("react/jsx-runtime").JSX.Element>;
35
+ export default _default;
@@ -0,0 +1,84 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { useTranslation } from 'react-i18next';
15
+ import { useController, useFormContext } from 'react-hook-form';
16
+ import { alpha, styled } from '@mui/material/styles';
17
+ import InfoIcon from '@mui/icons-material/Info';
18
+ import Box from '@mui/material/Box';
19
+ import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
20
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
21
+ import { isOtherLicense, removeAllCharsFromNumber } from '../../../../utils';
22
+ import Collapse from '../../../../components/Collapse';
23
+ import Tooltip from '../../../../components/Tooltip';
24
+ import Text from '../../../../components/Text';
25
+ import { ScreenContainer } from '../../../shared/Containers';
26
+ import Input from '../../../shared/Input';
27
+ import { clearError, businessSelector } from '../../../app/business/businessStore';
28
+ import { EndAdornment } from '../../../shared/EndAdornment';
29
+ var LabelContainerStyled = styled(Box)(function (_a) {
30
+ var theme = _a.theme;
31
+ return ({
32
+ display: 'flex',
33
+ justifyContent: 'space-between',
34
+ padding: theme.spacing(0, 2.5, 1, 2.5)
35
+ });
36
+ });
37
+ var InputLabelStyled = styled(Text)(function (_a) {
38
+ var theme = _a.theme;
39
+ return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.6), fontWeight: theme.typography.fontWeightMedium }, theme.typography.caption), { lineHeight: theme.spacing(2.5) }));
40
+ });
41
+ export var InfoIconStyled = styled(InfoIcon)(function (_a) {
42
+ var theme = _a.theme;
43
+ return ({
44
+ width: theme.spacing(2.75),
45
+ height: theme.spacing(2.125),
46
+ cursor: 'pointer',
47
+ color: alpha(theme.palette.text.primary, 0.4),
48
+ display: 'inline-flex'
49
+ });
50
+ });
51
+ export var InfoOutlinedIconStyled = styled(InfoOutlinedIcon)(function (_a) {
52
+ var theme = _a.theme;
53
+ return ({
54
+ width: theme.spacing(2.75),
55
+ height: theme.spacing(2.125),
56
+ cursor: 'pointer',
57
+ color: alpha(theme.palette.text.primary, 0.4),
58
+ display: 'inline-flex'
59
+ });
60
+ });
61
+ var UnifiedNumber = function (_a) {
62
+ var _b;
63
+ var show = _a.show, isVerified = _a.isVerified;
64
+ var t = useTranslation().t;
65
+ var bckError = useAppSelector(businessSelector).error;
66
+ var _c = useFormContext(), control = _c.control, getValues = _c.getValues;
67
+ var dispatch = useAppDispatch();
68
+ var _d = React.useState(false), hovered = _d[0], setHovered = _d[1];
69
+ var handleChange = function (_a) {
70
+ var target = _a.target;
71
+ if (bckError)
72
+ dispatch(clearError());
73
+ var value = removeAllCharsFromNumber(target.value);
74
+ unifiedNumberControl.field.onChange(value);
75
+ };
76
+ var unifiedNumberControl = useController({ control: control, name: 'unifiedNumber' });
77
+ var selectedLicense = getValues('selectedLicense');
78
+ var selectedEntityLicense = getValues('selectedEntityLicense');
79
+ var unifiedNumberValue = unifiedNumberControl.field.value;
80
+ var error = (_b = unifiedNumberControl.fieldState.error) === null || _b === void 0 ? void 0 : _b.message;
81
+ var readOnly = !isOtherLicense(selectedLicense) || (selectedEntityLicense && !isOtherLicense(selectedEntityLicense));
82
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, __assign({ sx: { mb: 2.5 } }, { children: [_jsxs(LabelContainerStyled, { children: [_jsx(InputLabelStyled, { children: t('v1_company_unified_number_label') }), _jsx(Tooltip, __assign({ title: t('v1_company_unified_number_description'), onMouseOver: function () { return setHovered(true); }, onMouseLeave: function () { return setHovered(false); }, onTouchStartCapture: function () { return setHovered(true); } }, { children: hovered ? _jsx(InfoIconStyled, {}) : _jsx(InfoOutlinedIconStyled, {}) }))] }), _jsx(Input, { readOnly: readOnly, onChange: handleChange, value: unifiedNumberValue, sx: { '& .MuiInputBase-input': { cursor: 'auto' } }, placeholder: t('v1_company_unified_number_hint'), warningType: 'alert', warningMessage: error && t(error), endAdornment: _jsx(EndAdornment, { value: unifiedNumberValue, isVerified: isVerified }) })] })) })));
83
+ };
84
+ export default React.memo(UnifiedNumber);
@@ -1,13 +1,16 @@
1
1
  import * as yup from 'yup';
2
2
  export declare const LicenseValidationSchema: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
3
  selectedLicense: any;
4
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
+ unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
5
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
5
6
  }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
6
7
  selectedLicense: any;
7
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
8
+ unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
9
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
8
10
  }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
9
11
  selectedLicense: any;
10
- licenseNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
12
+ unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
13
+ licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
11
14
  }>>>;
12
15
  export declare const KWLicenseValidationSchema: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
13
16
  selectedLicense: any;
@@ -1,34 +1,55 @@
1
1
  import * as yup from 'yup';
2
- import { REGEX_BRAND_NAME, KW_MIN_LICENSE_LENGTH, MAX_FILE_SIZE, VALID_FILE_FORMATS, FL_MIN_LICENSE_LENGTH, CR_MIN_LICENSE_LENGTH } from '../../../../constants';
2
+ import { REGEX_BRAND_NAME, KW_MIN_LICENSE_LENGTH, MAX_FILE_SIZE, VALID_FILE_FORMATS, FL_MIN_LICENSE_LENGTH, UNIFIED_NUMBER_MIN_LENGTH } from '../../../../constants';
3
3
  import { BusinessType } from '../../../../@types';
4
+ import { isOtherLicense } from '../../../../utils';
4
5
  var objectElements = {
5
6
  legal_name: yup.object().shape({
6
7
  ar: yup.string(),
7
8
  en: yup.string()
8
9
  }),
9
10
  license: yup.object().shape({
10
- number: yup.string()
11
+ number: yup.string().nullable()
11
12
  }),
12
13
  type: yup.string()
13
14
  };
14
15
  export var LicenseValidationSchema = yup.object().shape({
15
16
  selectedLicense: yup.object().shape(objectElements).required(''),
16
- licenseNumber: yup
17
- .string()
18
- .test({
17
+ unifiedNumber: yup.string().test({
18
+ name: 'unifiedNumber',
19
+ message: '',
19
20
  test: function (value) {
21
+ var _a;
22
+ var selectedEntityLicense = this.parent.selectedEntityLicense;
20
23
  var selectedLicense = this.parent.selectedLicense;
21
- var isCR = (selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === BusinessType.CR;
24
+ var isFL = (selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === BusinessType.FL;
22
25
  var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
26
+ if (!((_a = selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === null || _a === void 0 ? void 0 : _a.length))
27
+ return false;
28
+ if (isFL || !isOtherLicense(selectedEntityLicense))
29
+ return true;
23
30
  if (length === 0)
31
+ return this.createError({ message: '' });
32
+ return length >= UNIFIED_NUMBER_MIN_LENGTH ? true : this.createError({ message: 'unified_number_required' });
33
+ }
34
+ }),
35
+ licenseNumber: yup.string().test({
36
+ name: 'licenseNumber',
37
+ message: '',
38
+ test: function (value) {
39
+ var _a;
40
+ var selectedLicense = this.parent.selectedLicense;
41
+ var selectedEntityLicense = this.parent.selectedEntityLicense;
42
+ var isCR = (selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === BusinessType.CR;
43
+ var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
44
+ if (!((_a = selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === null || _a === void 0 ? void 0 : _a.length))
45
+ return false;
46
+ if (isCR || !isOtherLicense(selectedEntityLicense))
24
47
  return true;
25
- if (isCR) {
26
- return length >= CR_MIN_LICENSE_LENGTH ? true : this.createError({ message: 'cr_max_length' });
27
- }
48
+ if (length === 0)
49
+ return this.createError({ message: '' });
28
50
  return length >= FL_MIN_LICENSE_LENGTH ? true : this.createError({ message: 'fl_max_length' });
29
51
  }
30
52
  })
31
- .required('')
32
53
  });
33
54
  export var KWLicenseValidationSchema = yup.object().shape({
34
55
  selectedLicense: yup.object().shape(objectElements).required(''),
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface CivilIDProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: CivilIDProps) => JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: CivilIDProps) => import("react/jsx-runtime").JSX.Element>;
5
5
  export default _default;