@tap-payments/auth-jsconnect 1.0.4 → 1.0.7

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 (335) hide show
  1. package/build/@types/app.d.ts +74 -0
  2. package/build/@types/app.js +11 -1
  3. package/build/@types/theme.d.ts +12 -3
  4. package/build/@types/theme.js +15 -1
  5. package/build/app/rootReducer.d.ts +1 -1
  6. package/build/app/rootReducer.js +1 -1
  7. package/build/app/settings.d.ts +7 -2
  8. package/build/app/settings.js +36 -6
  9. package/build/app/store.d.ts +2 -2
  10. package/build/assets/locales/ar.json +70 -3
  11. package/build/assets/locales/en.json +69 -2
  12. package/build/components/AnimationFlow/BottomSheet.d.ts +3 -2
  13. package/build/components/AnimationFlow/BottomSheet.js +30 -3
  14. package/build/components/AnimationFlow/Dialog.d.ts +3 -2
  15. package/build/components/AnimationFlow/Dialog.js +26 -18
  16. package/build/components/Button/Button.d.ts +7 -3
  17. package/build/components/Button/Button.js +20 -2
  18. package/build/components/Collapse/Collapse.d.ts +5 -0
  19. package/build/components/Collapse/Collapse.js +28 -0
  20. package/build/components/Collapse/index.d.ts +3 -0
  21. package/build/components/Collapse/index.js +2 -0
  22. package/build/components/DatePicker/DatePicker.js +3 -3
  23. package/build/components/Footer/Footer.js +1 -1
  24. package/build/components/Input/Input.d.ts +4 -1
  25. package/build/components/Input/Input.js +7 -5
  26. package/build/components/Loader/Loader.d.ts +10 -8
  27. package/build/components/Loader/Loader.js +21 -41
  28. package/build/components/OTPField/OTPField.js +3 -23
  29. package/build/components/OTPTimer/OTPTimer.d.ts +4 -2
  30. package/build/components/OTPTimer/OTPTimer.js +20 -8
  31. package/build/components/Providers/ThemeProvider.js +6 -9
  32. package/build/components/SimpleList/SimpleList.d.ts +11 -3
  33. package/build/components/SimpleList/SimpleList.js +51 -22
  34. package/build/components/Slide/Slide.d.ts +6 -0
  35. package/build/components/Slide/Slide.js +30 -0
  36. package/build/components/Slide/index.d.ts +3 -0
  37. package/build/components/Slide/index.js +2 -0
  38. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +14 -0
  39. package/build/components/SocialMediaGroup/SocialMediaGroup.js +86 -0
  40. package/build/components/SocialMediaGroup/index.d.ts +3 -0
  41. package/build/components/SocialMediaGroup/index.js +2 -0
  42. package/build/components/ToggleButton/ToggleButton.d.ts +5 -0
  43. package/build/components/ToggleButton/ToggleButton.js +44 -0
  44. package/build/components/ToggleButton/index.d.ts +3 -0
  45. package/build/components/ToggleButton/index.js +2 -0
  46. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +5 -0
  47. package/build/components/ToggleButtonGroup/ToggleButtonGroup.js +37 -0
  48. package/build/components/ToggleButtonGroup/index.d.ts +3 -0
  49. package/build/components/ToggleButtonGroup/index.js +2 -0
  50. package/build/components/Tooltip/Tooltip.d.ts +10 -0
  51. package/build/components/Tooltip/Tooltip.js +44 -0
  52. package/build/components/Tooltip/index.d.ts +3 -0
  53. package/build/components/Tooltip/index.js +2 -0
  54. package/build/components/Warning/Warning.d.ts +2 -1
  55. package/build/components/Warning/Warning.js +4 -19
  56. package/build/constants/app.d.ts +14 -4
  57. package/build/constants/app.js +145 -4
  58. package/build/constants/assets.d.ts +11 -0
  59. package/build/constants/assets.js +12 -1
  60. package/build/constants/dummy.d.ts +103 -0
  61. package/build/constants/dummy.js +219 -0
  62. package/build/constants/index.d.ts +1 -0
  63. package/build/constants/index.js +1 -0
  64. package/build/constants/validation.d.ts +6 -0
  65. package/build/constants/validation.js +6 -0
  66. package/build/features/app/{midStore.d.ts → business/midStore.d.ts} +2 -2
  67. package/build/features/app/{midStore.js → business/midStore.js} +0 -0
  68. package/build/features/app/connect/midStore.d.ts +10 -0
  69. package/build/features/app/connect/midStore.js +18 -0
  70. package/build/features/bank/Bank.d.ts +6 -0
  71. package/build/features/bank/Bank.js +48 -0
  72. package/build/features/bank/index.d.ts +1 -0
  73. package/build/features/bank/index.js +1 -0
  74. package/build/features/bank/screens/BankDetails/BankDetails.d.ts +5 -0
  75. package/build/features/bank/screens/BankDetails/BankDetails.js +57 -0
  76. package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -0
  77. package/build/features/bank/screens/BankDetails/BankName.js +27 -0
  78. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +5 -0
  79. package/build/features/bank/screens/BankDetails/Beneficiary.js +34 -0
  80. package/build/features/bank/screens/BankDetails/IBAN.d.ts +5 -0
  81. package/build/features/bank/screens/BankDetails/IBAN.js +35 -0
  82. package/build/features/bank/screens/BankDetails/index.d.ts +3 -0
  83. package/build/features/bank/screens/BankDetails/index.js +2 -0
  84. package/build/features/bank/screens/BankDetails/validation.d.ts +14 -0
  85. package/build/features/bank/screens/BankDetails/validation.js +9 -0
  86. package/build/features/business/Business.d.ts +6 -0
  87. package/build/features/business/Business.js +61 -0
  88. package/build/features/business/index.d.ts +1 -0
  89. package/build/features/business/index.js +1 -0
  90. package/build/features/business/screens/Activities/Activities.d.ts +5 -0
  91. package/build/features/business/screens/Activities/Activities.js +83 -0
  92. package/build/features/business/screens/Activities/ActivitiesList.d.ts +70 -0
  93. package/build/features/business/screens/Activities/ActivitiesList.js +136 -0
  94. package/build/features/business/screens/Activities/SalesChannels.d.ts +5 -0
  95. package/build/features/business/screens/Activities/SalesChannels.js +107 -0
  96. package/build/features/business/screens/Activities/index.d.ts +3 -0
  97. package/build/features/business/screens/Activities/index.js +2 -0
  98. package/build/features/business/screens/Activities/validation.d.ts +119 -0
  99. package/build/features/business/screens/Activities/validation.js +17 -0
  100. package/build/features/business/screens/BusinessType/BusinessType.d.ts +12 -0
  101. package/build/features/business/screens/BusinessType/BusinessType.js +85 -0
  102. package/build/features/business/screens/BusinessType/CRNumber.d.ts +6 -0
  103. package/build/features/business/screens/BusinessType/CRNumber.js +40 -0
  104. package/build/features/business/screens/BusinessType/CompanyLicense.d.ts +11 -0
  105. package/build/features/business/screens/BusinessType/CompanyLicense.js +109 -0
  106. package/build/features/business/screens/BusinessType/FLNumber.d.ts +6 -0
  107. package/build/features/business/screens/BusinessType/FLNumber.js +40 -0
  108. package/build/features/business/screens/BusinessType/FreelanceLicense.d.ts +11 -0
  109. package/build/features/business/screens/BusinessType/FreelanceLicense.js +112 -0
  110. package/build/features/business/screens/BusinessType/SelectType.d.ts +8 -0
  111. package/build/features/business/screens/BusinessType/SelectType.js +106 -0
  112. package/build/features/business/screens/BusinessType/Switch.d.ts +7 -0
  113. package/build/features/business/screens/BusinessType/Switch.js +35 -0
  114. package/build/features/business/screens/BusinessType/index.d.ts +3 -0
  115. package/build/features/business/screens/BusinessType/index.js +2 -0
  116. package/build/features/business/screens/BusinessType/validation.d.ts +15 -0
  117. package/build/features/business/screens/BusinessType/validation.js +14 -0
  118. package/build/features/business/screens/Confirm/Confirm.d.ts +5 -0
  119. package/build/features/business/screens/Confirm/Confirm.js +53 -0
  120. package/build/features/business/screens/Confirm/index.d.ts +3 -0
  121. package/build/features/business/screens/Confirm/index.js +2 -0
  122. package/build/features/business/screens/Customers/CustomerLocations.d.ts +92 -0
  123. package/build/features/business/screens/Customers/CustomerLocations.js +122 -0
  124. package/build/features/business/screens/Customers/Customers.d.ts +5 -0
  125. package/build/features/business/screens/Customers/Customers.js +92 -0
  126. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +7 -0
  127. package/build/features/business/screens/Customers/ExpectedCustomers.js +78 -0
  128. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +7 -0
  129. package/build/features/business/screens/Customers/ExpectedSalesRange.js +74 -0
  130. package/build/features/business/screens/Customers/RefundPolicy.d.ts +44 -0
  131. package/build/features/business/screens/Customers/RefundPolicy.js +86 -0
  132. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +3 -0
  133. package/build/features/business/screens/Customers/TransactionPolicy.js +37 -0
  134. package/build/features/business/screens/Customers/index.d.ts +3 -0
  135. package/build/features/business/screens/Customers/index.js +2 -0
  136. package/build/features/business/screens/Customers/validation.d.ts +20 -0
  137. package/build/features/business/screens/Customers/validation.js +8 -0
  138. package/build/features/business/screens/IDBOD/DOB.d.ts +5 -0
  139. package/build/features/business/screens/IDBOD/DOB.js +44 -0
  140. package/build/features/business/screens/IDBOD/ID.d.ts +5 -0
  141. package/build/features/business/screens/IDBOD/ID.js +69 -0
  142. package/build/features/business/screens/IDBOD/IDBOD.d.ts +5 -0
  143. package/build/features/business/screens/IDBOD/IDBOD.js +85 -0
  144. package/build/features/business/screens/IDBOD/index.d.ts +3 -0
  145. package/build/features/business/screens/IDBOD/index.js +2 -0
  146. package/build/features/business/screens/IDBOD/validation.d.ts +11 -0
  147. package/build/features/business/screens/IDBOD/validation.js +5 -0
  148. package/build/features/business/screens/OTP/OTP.d.ts +11 -0
  149. package/build/features/business/screens/OTP/OTP.js +112 -0
  150. package/build/features/business/screens/OTP/OTPInput.d.ts +5 -0
  151. package/build/features/business/screens/OTP/OTPInput.js +51 -0
  152. package/build/features/business/screens/OTP/OTPTimer.d.ts +5 -0
  153. package/build/features/business/screens/OTP/OTPTimer.js +20 -0
  154. package/build/features/business/screens/OTP/index.d.ts +3 -0
  155. package/build/features/business/screens/OTP/index.js +2 -0
  156. package/build/features/business/screens/OTP/validation.d.ts +8 -0
  157. package/build/features/business/screens/OTP/validation.js +4 -0
  158. package/build/features/business/screens/Success/Success.d.ts +5 -0
  159. package/build/features/business/screens/Success/Success.js +15 -0
  160. package/build/features/business/screens/Success/index.d.ts +3 -0
  161. package/build/features/business/screens/Success/index.js +2 -0
  162. package/build/features/business/screens/VerifyNumber/OTPInput.d.ts +6 -0
  163. package/build/features/business/screens/VerifyNumber/OTPInput.js +68 -0
  164. package/build/features/business/screens/VerifyNumber/OTPTimer.d.ts +5 -0
  165. package/build/features/business/screens/VerifyNumber/OTPTimer.js +20 -0
  166. package/build/features/business/screens/VerifyNumber/VerifyNumber.d.ts +13 -0
  167. package/build/features/business/screens/VerifyNumber/VerifyNumber.js +119 -0
  168. package/build/features/business/screens/VerifyNumber/index.d.ts +3 -0
  169. package/build/features/business/screens/VerifyNumber/index.js +2 -0
  170. package/build/features/business/screens/VerifyNumber/validation.d.ts +8 -0
  171. package/build/features/business/screens/VerifyNumber/validation.js +4 -0
  172. package/build/features/connect/Connect.js +20 -22
  173. package/build/features/connect/screens/Individual/Email.d.ts +5 -0
  174. package/build/features/connect/screens/Individual/Email.js +31 -0
  175. package/build/features/connect/screens/Individual/Individual.d.ts +5 -0
  176. package/build/features/connect/screens/Individual/Individual.js +77 -0
  177. package/build/features/connect/screens/Individual/Name.d.ts +5 -0
  178. package/build/features/connect/screens/Individual/Name.js +31 -0
  179. package/build/features/connect/screens/Individual/index.d.ts +3 -0
  180. package/build/features/connect/screens/Individual/index.js +2 -0
  181. package/build/features/connect/screens/Individual/validation.d.ts +11 -0
  182. package/build/features/connect/screens/Individual/validation.js +5 -0
  183. package/build/features/connect/screens/MID/BusinessCountry.d.ts +2 -6
  184. package/build/features/connect/screens/MID/BusinessCountry.js +20 -79
  185. package/build/features/connect/screens/MID/IDNumber.d.ts +0 -4
  186. package/build/features/connect/screens/MID/IDNumber.js +24 -36
  187. package/build/features/connect/screens/MID/MID.js +41 -24
  188. package/build/features/connect/screens/MID/MIDTitle.js +2 -2
  189. package/build/features/connect/screens/MID/MobileNumber.d.ts +2 -7
  190. package/build/features/connect/screens/MID/MobileNumber.js +40 -84
  191. package/build/features/connect/screens/MID/validation.d.ts +18 -0
  192. package/build/features/connect/screens/MID/validation.js +8 -0
  193. package/build/features/connect/screens/Merchant/BrandName.d.ts +5 -0
  194. package/build/features/connect/screens/Merchant/BrandName.js +73 -0
  195. package/build/features/connect/screens/Merchant/Merchant.d.ts +5 -0
  196. package/build/features/connect/screens/Merchant/Merchant.js +50 -0
  197. package/build/features/connect/screens/Merchant/SocialMedia.d.ts +5 -0
  198. package/build/features/connect/screens/Merchant/SocialMedia.js +79 -0
  199. package/build/features/connect/screens/Merchant/TAC.d.ts +5 -0
  200. package/build/features/connect/screens/Merchant/TAC.js +79 -0
  201. package/build/features/connect/screens/Merchant/index.d.ts +3 -0
  202. package/build/features/connect/screens/Merchant/index.js +2 -0
  203. package/build/features/connect/screens/Merchant/validation.d.ts +50 -0
  204. package/build/features/connect/screens/Merchant/validation.js +23 -0
  205. package/build/features/connect/screens/OTP/OTP.d.ts +6 -2
  206. package/build/features/connect/screens/OTP/OTP.js +41 -46
  207. package/build/features/connect/screens/OTP/OTPInput.d.ts +5 -0
  208. package/build/features/connect/screens/OTP/OTPInput.js +38 -0
  209. package/build/features/connect/screens/OTP/validation.d.ts +8 -0
  210. package/build/features/connect/screens/OTP/validation.js +4 -0
  211. package/build/features/connect/screens/Password/Password.d.ts +5 -0
  212. package/build/features/connect/screens/Password/Password.js +49 -0
  213. package/build/features/connect/screens/Password/PasswordInput.d.ts +5 -0
  214. package/build/features/connect/screens/Password/PasswordInput.js +38 -0
  215. package/build/features/connect/screens/Password/index.d.ts +3 -0
  216. package/build/features/connect/screens/Password/index.js +2 -0
  217. package/build/features/connect/screens/Password/validation.d.ts +8 -0
  218. package/build/features/connect/screens/Password/validation.js +4 -0
  219. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +5 -0
  220. package/build/features/connect/screens/ThankYou/ThankYou.js +15 -0
  221. package/build/features/connect/screens/ThankYou/index.d.ts +3 -0
  222. package/build/features/connect/screens/ThankYou/index.js +2 -0
  223. package/build/features/featuresScreens.d.ts +7 -0
  224. package/build/features/featuresScreens.js +99 -0
  225. package/build/features/owner/Owner.d.ts +6 -0
  226. package/build/features/owner/Owner.js +50 -0
  227. package/build/features/owner/index.d.ts +1 -0
  228. package/build/features/owner/index.js +1 -0
  229. package/build/features/owner/screens/ShowOwnerInfo/ShowOwnerInfo.d.ts +19 -0
  230. package/build/features/owner/screens/ShowOwnerInfo/ShowOwnerInfo.js +52 -0
  231. package/build/features/owner/screens/ShowOwnerInfo/index.d.ts +3 -0
  232. package/build/features/owner/screens/ShowOwnerInfo/index.js +2 -0
  233. package/build/features/owner/screens/ShowOwnerInfo/info.d.ts +7 -0
  234. package/build/features/owner/screens/ShowOwnerInfo/info.js +28 -0
  235. package/build/features/password/Password.d.ts +6 -0
  236. package/build/features/password/Password.js +50 -0
  237. package/build/features/password/index.d.ts +1 -0
  238. package/build/features/password/index.js +1 -0
  239. package/build/features/password/screens/CreatePassword/ConditionText.d.ts +7 -0
  240. package/build/features/password/screens/CreatePassword/ConditionText.js +23 -0
  241. package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +5 -0
  242. package/build/features/password/screens/CreatePassword/ConfirmPassword.js +27 -0
  243. package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +5 -0
  244. package/build/features/password/screens/CreatePassword/CreatePassword.js +51 -0
  245. package/build/features/password/screens/CreatePassword/Password.d.ts +5 -0
  246. package/build/features/password/screens/CreatePassword/Password.js +75 -0
  247. package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +7 -0
  248. package/build/features/password/screens/CreatePassword/PasswordBar.js +29 -0
  249. package/build/features/password/screens/CreatePassword/index.d.ts +3 -0
  250. package/build/features/password/screens/CreatePassword/index.js +2 -0
  251. package/build/features/password/screens/CreatePassword/validation.d.ts +11 -0
  252. package/build/features/password/screens/CreatePassword/validation.js +8 -0
  253. package/build/features/shared/Button/Button.d.ts +8 -0
  254. package/build/features/shared/Button/Button.js +49 -0
  255. package/build/features/shared/Button/index.d.ts +2 -0
  256. package/build/features/shared/Button/index.js +2 -0
  257. package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -0
  258. package/build/features/shared/CheckIcon/CheckIcon.js +14 -0
  259. package/build/features/shared/CheckIcon/index.d.ts +2 -0
  260. package/build/features/shared/CheckIcon/index.js +2 -0
  261. package/build/features/shared/ClearIcon/ClearIcon.d.ts +6 -0
  262. package/build/features/shared/ClearIcon/ClearIcon.js +26 -0
  263. package/build/features/shared/ClearIcon/index.d.ts +2 -0
  264. package/build/features/shared/ClearIcon/index.js +2 -0
  265. package/build/features/shared/Containers/FeatureContainer.d.ts +4 -0
  266. package/build/features/shared/Containers/FeatureContainer.js +33 -0
  267. package/build/features/shared/Containers/ScreenContainer.d.ts +4 -0
  268. package/build/features/shared/Containers/ScreenContainer.js +28 -0
  269. package/build/features/shared/Containers/index.d.ts +3 -0
  270. package/build/features/shared/Containers/index.js +3 -0
  271. package/build/features/shared/ExpandIcon/ExpandIcon.d.ts +7 -0
  272. package/build/features/shared/ExpandIcon/ExpandIcon.js +24 -0
  273. package/build/features/shared/ExpandIcon/index.d.ts +2 -0
  274. package/build/features/shared/ExpandIcon/index.js +2 -0
  275. package/build/features/shared/Footer/Footer.d.ts +2 -0
  276. package/build/features/shared/Footer/Footer.js +16 -0
  277. package/build/features/shared/Footer/index.d.ts +2 -0
  278. package/build/features/shared/Footer/index.js +2 -0
  279. package/build/features/shared/Input/Input.d.ts +27 -0
  280. package/build/features/shared/Input/Input.js +59 -0
  281. package/build/features/shared/Input/index.d.ts +2 -0
  282. package/build/features/shared/Input/index.js +2 -0
  283. package/build/features/shared/OTP/OTP.d.ts +9 -0
  284. package/build/features/shared/OTP/OTP.js +85 -0
  285. package/build/features/shared/OTP/index.d.ts +2 -0
  286. package/build/features/shared/OTP/index.js +2 -0
  287. package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +8 -0
  288. package/build/features/shared/PasswordIcon/PasswordIcon.js +37 -0
  289. package/build/features/shared/PasswordIcon/index.d.ts +2 -0
  290. package/build/features/shared/PasswordIcon/index.js +2 -0
  291. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +7 -0
  292. package/build/features/shared/SuccessScreen/SuccessScreen.js +54 -0
  293. package/build/features/shared/SuccessScreen/index.d.ts +2 -0
  294. package/build/features/shared/SuccessScreen/index.js +2 -0
  295. package/build/features/tax/Tax.d.ts +6 -0
  296. package/build/features/tax/Tax.js +50 -0
  297. package/build/features/tax/index.d.ts +1 -0
  298. package/build/features/tax/index.js +1 -0
  299. package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +5 -0
  300. package/build/features/tax/screens/TaxDetails/TaxDetails.js +45 -0
  301. package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -0
  302. package/build/features/tax/screens/TaxDetails/VATId.js +27 -0
  303. package/build/features/tax/screens/TaxDetails/index.d.ts +3 -0
  304. package/build/features/tax/screens/TaxDetails/index.js +2 -0
  305. package/build/features/tax/screens/TaxDetails/validation.d.ts +8 -0
  306. package/build/features/tax/screens/TaxDetails/validation.js +4 -0
  307. package/build/hooks/index.d.ts +5 -0
  308. package/build/hooks/index.js +5 -0
  309. package/build/hooks/useAppDispatch.d.ts +4 -0
  310. package/build/hooks/useAppDispatch.js +2 -0
  311. package/build/hooks/useAppSelector.d.ts +3 -0
  312. package/build/hooks/useAppSelector.js +2 -0
  313. package/build/hooks/useAppTheme.js +3 -2
  314. package/build/hooks/useContainerDimensions.d.ts +4 -0
  315. package/build/hooks/useContainerDimensions.js +21 -0
  316. package/build/hooks/useEventListener.d.ts +5 -0
  317. package/build/hooks/useEventListener.js +20 -0
  318. package/build/hooks/useLanguage.d.ts +4 -0
  319. package/build/hooks/useLanguage.js +8 -0
  320. package/build/index.css +6 -1
  321. package/build/index.d.ts +7 -2
  322. package/build/index.js +17 -2
  323. package/build/theme/palette.js +11 -4
  324. package/build/theme/theme.d.ts +1 -1
  325. package/build/theme/theme.js +0 -1
  326. package/build/theme/typography.js +2 -2
  327. package/build/utils/array.d.ts +3 -1
  328. package/build/utils/array.js +7 -3
  329. package/build/utils/string.d.ts +3 -1
  330. package/build/utils/string.js +11 -2
  331. package/build/utils/validation.d.ts +10 -0
  332. package/build/utils/validation.js +30 -0
  333. package/package.json +120 -116
  334. package/build/app/hooks.d.ts +0 -7
  335. package/build/app/hooks.js +0 -3
@@ -1,3 +1,36 @@
1
+ export var OTHER_FL_LICENSE = {
2
+ number: 'other',
3
+ status: 'other',
4
+ canceled_at: '',
5
+ license_specialities: [
6
+ {
7
+ speciality: {
8
+ id: '',
9
+ name: 'other',
10
+ name_en: 'other',
11
+ category: {
12
+ id: '',
13
+ name: 'other',
14
+ name_en: 'other'
15
+ }
16
+ }
17
+ }
18
+ ]
19
+ };
20
+ export var OTHER_CR_LICENSE = {
21
+ crName: 'other',
22
+ crNumber: 'other',
23
+ crEntityNumber: 'other',
24
+ isMain: '',
25
+ businessType: {
26
+ id: 0,
27
+ name: ''
28
+ },
29
+ relation: {
30
+ id: 0,
31
+ name: ''
32
+ }
33
+ };
1
34
  export var defaultCountry = {
2
35
  created: 1577690965000,
3
36
  updated: 1577691209000,
@@ -6205,3 +6238,189 @@ export var SOCIAL_MEDIA_LINKS = {
6205
6238
  linkedin: 'https://www.linkedin.com/company/tappayments/mycompany/',
6206
6239
  instagram: 'https://www.instagram.com/tappayments/'
6207
6240
  };
6241
+ export var CUSTOMER_LOCATIONS = [
6242
+ { id: 1, name: 'Local', nameAR: 'محلي' },
6243
+ { id: 2, name: 'Regional', nameAR: 'إقليمي' },
6244
+ { id: 3, name: 'Global', nameAR: 'عالمي' }
6245
+ ];
6246
+ export var EXPECTED_CUSTOMERS = [
6247
+ { id: 1, name: '0 customers', nameAR: '0 عميل' },
6248
+ { id: 2, name: '1,000 customers', nameAR: '1,000 عميل' },
6249
+ { id: 3, name: '5,000 customers', nameAR: '5,000 عميل' },
6250
+ { id: 4, name: '10,000 customers', nameAR: '10,000 عميل' },
6251
+ { id: 5, name: '50,000 customers', nameAR: '50,000 عميل' },
6252
+ { id: 6, name: '100,000 customers', nameAR: '100,000 عميل' },
6253
+ { id: 7, name: 'more than 200,000 customers', nameAR: 'اكثر من 200,000 عميل' }
6254
+ ];
6255
+ export var EXPECTED_SALES_RANGE = [
6256
+ { id: 1, name: '0-500,000', nameAR: '0 إلى 500 الف' },
6257
+ { id: 2, name: '500,001-3M', nameAR: '500 ألف إلى 3 مليون' },
6258
+ { id: 3, name: '3M – 6M', nameAR: '3 مليون إلى 6 مليون' },
6259
+ { id: 4, name: '6M - 15M', nameAR: '6 مليون إلى 15 مليون' },
6260
+ { id: 5, name: '15 M- 40M', nameAR: '15 مليون إلى 40 مليون' },
6261
+ { id: 6, name: '40M – 200M', nameAR: '40 مليون إلى 200 مليون' },
6262
+ { id: 7, name: 'higher than 200M', nameAR: ' اكثر من 200 مليون' }
6263
+ ];
6264
+ export var FL_LIST = [
6265
+ {
6266
+ number: '14d26e62',
6267
+ status: 'canceled',
6268
+ license_specialities: [
6269
+ {
6270
+ speciality: {
6271
+ id: '71',
6272
+ name: 'برمجة وتطوير المواقع الالكترونية',
6273
+ name_en: 'Websites Programming and Developing',
6274
+ category: {
6275
+ id: '6',
6276
+ name: 'تطوير تطبيقات الجوال والويب',
6277
+ name_en: 'Web, Mobile & Software '
6278
+ }
6279
+ }
6280
+ }
6281
+ ],
6282
+ canceled_at: '2021-09-02'
6283
+ },
6284
+ {
6285
+ number: '3dd7be74',
6286
+ status: 'rejected',
6287
+ license_specialities: [
6288
+ {
6289
+ speciality: {
6290
+ id: '71',
6291
+ name: 'برمجة وتطوير المواقع الالكترونية',
6292
+ name_en: 'Websites Programming and Developing',
6293
+ category: {
6294
+ id: '6',
6295
+ name: 'تطوير تطبيقات الجوال والويب',
6296
+ name_en: 'Web, Mobile & Software '
6297
+ }
6298
+ }
6299
+ }
6300
+ ]
6301
+ },
6302
+ {
6303
+ number: '3dd7be44',
6304
+ status: 'rejected',
6305
+ license_specialities: [
6306
+ {
6307
+ speciality: {
6308
+ id: '71',
6309
+ name: 'برمجة وتطوير المواقع الالكترونية',
6310
+ name_en: 'Programming and Developing',
6311
+ category: {
6312
+ id: '6',
6313
+ name: 'تطوير تطبيقات الجوال والويب',
6314
+ name_en: 'Web, Mobile & Software '
6315
+ }
6316
+ }
6317
+ }
6318
+ ]
6319
+ }
6320
+ ];
6321
+ export var CR_LIST = [
6322
+ {
6323
+ crName: 'مؤسسة ناصر محمد عبدالرحمن السالم للتجارة',
6324
+ crNumber: '1010651287',
6325
+ crEntityNumber: '7017825428',
6326
+ isMain: 'true',
6327
+ businessType: {
6328
+ id: 101,
6329
+ name: 'مؤســـسة فـــردية'
6330
+ },
6331
+ relation: {
6332
+ id: 1,
6333
+ name: 'مالك المؤسسة'
6334
+ }
6335
+ },
6336
+ {
6337
+ crName: 'مؤسسة ناصر محمد عبدالرحمن السالم للتجارة',
6338
+ crNumber: '2010651287',
6339
+ crEntityNumber: '7017825428',
6340
+ isMain: 'true',
6341
+ businessType: {
6342
+ id: 101,
6343
+ name: 'مؤســـسة فـــردية'
6344
+ },
6345
+ relation: {
6346
+ id: 1,
6347
+ name: 'مالك المؤسسة'
6348
+ }
6349
+ },
6350
+ {
6351
+ crName: 'مؤسسة ناصر محمد عبدالرحمن السالم للتجارة',
6352
+ crNumber: '3010651287',
6353
+ crEntityNumber: '7017825428',
6354
+ isMain: 'true',
6355
+ businessType: {
6356
+ id: 101,
6357
+ name: 'مؤســـسة فـــردية'
6358
+ },
6359
+ relation: {
6360
+ id: 1,
6361
+ name: 'مالك المؤسسة'
6362
+ }
6363
+ },
6364
+ {
6365
+ crName: 'مؤسسة ناصر محمد عبدالرحمن السالم للتجارة',
6366
+ crNumber: '1010551287',
6367
+ crEntityNumber: '7017825428',
6368
+ isMain: 'true',
6369
+ businessType: {
6370
+ id: 101,
6371
+ name: 'مؤســـسة فـــردية'
6372
+ },
6373
+ relation: {
6374
+ id: 1,
6375
+ name: 'مالك المؤسسة'
6376
+ }
6377
+ },
6378
+ {
6379
+ crName: 'مؤسسة ناصر محمد عبدالرحمن السالم للتجارة',
6380
+ crNumber: '3010631287',
6381
+ crEntityNumber: '7017825428',
6382
+ isMain: 'true',
6383
+ businessType: {
6384
+ id: 101,
6385
+ name: 'مؤســـسة فـــردية'
6386
+ },
6387
+ relation: {
6388
+ id: 1,
6389
+ name: 'مالك المؤسسة'
6390
+ }
6391
+ }
6392
+ ];
6393
+ export var ACTIVITIES = [
6394
+ {
6395
+ id: 477222,
6396
+ name: 'نشاط 1',
6397
+ nameEn: 'Repair and maintenance of motorways, streets, roads, other vehicular and pedestrian ways'
6398
+ },
6399
+ {
6400
+ id: 477223,
6401
+ name: 'نشاط 2',
6402
+ nameEn: 'Repair and maintenance of water distribution stations, networks and main lines'
6403
+ },
6404
+ {
6405
+ id: 477224,
6406
+ name: 'نشاط 3',
6407
+ nameEn: 'Repair and maintenance of sewer systems, sewage disposal plants and pumping station'
6408
+ },
6409
+ {
6410
+ id: 477225,
6411
+ name: 'نشاط 3',
6412
+ nameEn: 'Repair and maintenance of power plants'
6413
+ },
6414
+ {
6415
+ id: 477226,
6416
+ name: 'نشاط 3',
6417
+ nameEn: 'Demolition or wrecking of buildings and other structures'
6418
+ }
6419
+ ];
6420
+ export var SALES_CHANNELS = [
6421
+ { id: 1, nameEn: 'Website', name: 'موقع' },
6422
+ { id: 2, nameEn: 'Mobile app', name: 'تطبيق' },
6423
+ { id: 3, nameEn: 'Physical Store', name: 'متجر' },
6424
+ { id: 4, nameEn: 'Social Media', name: 'مواقع تواصل اجتماعي' },
6425
+ { id: 5, nameEn: 'Call Center', name: 'مركز اتصال' }
6426
+ ];
@@ -1,3 +1,4 @@
1
1
  export * from './assets';
2
2
  export * from './app';
3
3
  export * from './dummy';
4
+ export * from './validation';
@@ -1,3 +1,4 @@
1
1
  export * from './assets';
2
2
  export * from './app';
3
3
  export * from './dummy';
4
+ export * from './validation';
@@ -0,0 +1,6 @@
1
+ export declare const ID_NUMBER_LENGTH = 10;
2
+ export declare const DEFAULT_TIMER_VALUE = 59;
3
+ export declare const VAT_ID_LENGTH = 15;
4
+ export declare const MAX_IBAN_VALUE = 34;
5
+ export declare const FL_NUMBER_LENGTH = 8;
6
+ export declare const CR_NUMBER_LENGTH = 10;
@@ -0,0 +1,6 @@
1
+ export var ID_NUMBER_LENGTH = 10;
2
+ export var DEFAULT_TIMER_VALUE = 59;
3
+ export var VAT_ID_LENGTH = 15;
4
+ export var MAX_IBAN_VALUE = 34;
5
+ export var FL_NUMBER_LENGTH = 8;
6
+ export var CR_NUMBER_LENGTH = 10;
@@ -1,5 +1,5 @@
1
- import { RootState } from '../../app/store';
2
- import { SharedState } from '../../@types';
1
+ import { RootState } from '../../../app/store';
2
+ import { SharedState } from '../../../@types';
3
3
  export interface MIDData {
4
4
  }
5
5
  export interface MIDState extends SharedState<MIDData> {
@@ -0,0 +1,10 @@
1
+ import { RootState } from '../../../app/store';
2
+ import { SharedState } from '../../../@types';
3
+ export interface MIDData {
4
+ }
5
+ export interface MIDState extends SharedState<MIDData> {
6
+ }
7
+ export declare const midSlice: import("@reduxjs/toolkit").Slice<MIDState, {}, "connect/mid">;
8
+ declare const _default: import("redux").Reducer<MIDState, import("redux").AnyAction>;
9
+ export default _default;
10
+ export declare const midSelector: (state: RootState) => MIDState;
@@ -0,0 +1,18 @@
1
+ var _a;
2
+ import { createSlice } from '@reduxjs/toolkit';
3
+ var initialState = {
4
+ error: null,
5
+ loading: false,
6
+ data: {}
7
+ };
8
+ export var midSlice = createSlice({
9
+ name: 'connect/mid',
10
+ initialState: initialState,
11
+ reducers: {},
12
+ extraReducers: function (builder) {
13
+ console.log(builder);
14
+ }
15
+ });
16
+ export var _b = _a = midSlice.actions;
17
+ export default midSlice.reducer;
18
+ export var midSelector = function (state) { return state.mid; };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export interface BankLibProps {
3
+ }
4
+ export declare function BankLib(props: BankLibProps): JSX.Element;
5
+ export declare function renderBankLib(config: BankLibProps, elementId: string): void;
6
+ export declare function unmountBankLib(elementId: string): void;
@@ -0,0 +1,48 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import React, { memo, useEffect } from 'react';
14
+ import { useAppTheme, useAppDispatch, useAppSelector } from '../../hooks';
15
+ import { handleActiveFlowScreens, settingsSelector } from '../../app/settings';
16
+ import AnimationFlow from '../../components/AnimationFlow';
17
+ import { store } from '../../app/store';
18
+ import { ReduxProvider, ThemeProvider } from '../../components/Providers';
19
+ import Collapse from '../../components/Collapse';
20
+ import { reactElement } from '../../utils';
21
+ import { BANK_SCREENS_NAVIGATION } from '../../constants';
22
+ import { bankFeatureScreens } from '../featuresScreens';
23
+ import CustomFooter from '../shared/Footer';
24
+ import { FeatureContainer } from '../shared/Containers';
25
+ var Bank = memo(function (props) {
26
+ var open = React.useState(true)[0];
27
+ var theme = useAppTheme().theme;
28
+ var dispatch = useAppDispatch();
29
+ var data = useAppSelector(settingsSelector).data;
30
+ var activeScreen = data.activeScreen;
31
+ useEffect(function () {
32
+ dispatch(handleActiveFlowScreens(BANK_SCREENS_NAVIGATION));
33
+ }, []);
34
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(AnimationFlow, __assign({ open: open, breakpoint: 'sm', footer: _jsx(CustomFooter, {}) }, { children: _jsx(FeatureContainer, { children: bankFeatureScreens.map(function (_a, index) {
35
+ var Element = _a.element, name = _a.name;
36
+ var isActive = activeScreen.name === name;
37
+ return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 600, exit: 400, appear: 600 } }, { children: _jsx(Element, {}) }), index));
38
+ }) }) })) })));
39
+ });
40
+ export function BankLib(props) {
41
+ return (_jsx(ReduxProvider, __assign({ store: store }, { children: _jsx(Bank, __assign({}, props)) })));
42
+ }
43
+ export function renderBankLib(config, elementId) {
44
+ reactElement(elementId).render(_jsx(BankLib, __assign({}, config)));
45
+ }
46
+ export function unmountBankLib(elementId) {
47
+ reactElement(elementId).unmount();
48
+ }
@@ -0,0 +1 @@
1
+ export * from './Bank';
@@ -0,0 +1 @@
1
+ export * from './Bank';
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export interface BankDetailsProps {
3
+ }
4
+ declare const BankDetails: () => JSX.Element;
5
+ export default BankDetails;
@@ -0,0 +1,57 @@
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 { ScreenContainer } from '../../../shared/Containers';
14
+ import Beneficiary from './Beneficiary';
15
+ import IBAN from './IBAN';
16
+ import BankName from './BankName';
17
+ import Button from '../../../shared/Button';
18
+ import { useAppDispatch } from '../../../../hooks';
19
+ import { handleNextScreenStep } from '../../../../app/settings';
20
+ import { BankValidation } from './validation';
21
+ import { useTranslation } from 'react-i18next';
22
+ import { useForm, FormProvider } from 'react-hook-form';
23
+ import { yupResolver } from '@hookform/resolvers/yup';
24
+ import { useLanguage } from '../../../../hooks';
25
+ import { styled } from '@mui/material/styles';
26
+ import Form from '../../../../components/Form';
27
+ var FormStyled = styled(Form)(function () { return ({
28
+ display: 'flex',
29
+ flexDirection: 'column',
30
+ overflow: 'hidden'
31
+ }); });
32
+ var ButtonStyled = styled(Button)(function (_a) {
33
+ var theme = _a.theme;
34
+ return ({
35
+ marginBlockStart: theme.spacing(1)
36
+ });
37
+ });
38
+ var BankDetails = function () {
39
+ var dispatch = useAppDispatch();
40
+ var methods = useForm({
41
+ resolver: yupResolver(BankValidation),
42
+ defaultValues: {
43
+ iban: '',
44
+ beneficiaryName: '',
45
+ bankName: 'National Bank'
46
+ },
47
+ mode: 'onChange'
48
+ });
49
+ var onSubmit = function (data) {
50
+ console.log('data', data);
51
+ dispatch(handleNextScreenStep());
52
+ };
53
+ var t = useTranslation().t;
54
+ var isAr = useLanguage().isAr;
55
+ return (_jsx(ScreenContainer, { children: _jsx(FormProvider, __assign({}, methods, { children: _jsxs(FormStyled, __assign({ onSubmit: methods.handleSubmit(onSubmit) }, { children: [_jsx(IBAN, {}), _jsx(Beneficiary, {}), _jsx(BankName, {}), _jsx(ButtonStyled, __assign({ disabled: !methods.formState.isValid, isAr: isAr }, { children: t('confirm') }))] })) })) }));
56
+ };
57
+ export default BankDetails;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const BankName: () => JSX.Element;
3
+ export default BankName;
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ScreenContainer } from '../../../shared/Containers';
3
+ import Input from '../../../shared/Input';
4
+ import { useTranslation } from 'react-i18next';
5
+ import { useController, useFormContext } from 'react-hook-form';
6
+ import { styled } from '@mui/material/styles';
7
+ import ClearIcon from '../../../shared/ClearIcon';
8
+ import CheckIcon from '../../../shared/CheckIcon';
9
+ var FeatureStyled = styled(ScreenContainer)(function (_a) {
10
+ var theme = _a.theme;
11
+ return ({
12
+ marginBlockEnd: theme.spacing(3)
13
+ });
14
+ });
15
+ var BankName = function () {
16
+ var _a;
17
+ var t = useTranslation().t;
18
+ var control = useFormContext().control;
19
+ var bankNameControl = useController({ name: 'bankName', control: control });
20
+ var bankNameValue = bankNameControl.field.value;
21
+ var hasError = !!((_a = bankNameControl.fieldState.error) === null || _a === void 0 ? void 0 : _a.message);
22
+ var clearValue = function () {
23
+ bankNameControl.field.onChange('');
24
+ };
25
+ return (_jsx(FeatureStyled, { children: _jsx(Input, { label: t('bank_name_label'), placeholder: t('bank_name_label'), value: bankNameValue, required: true, endAdornment: !hasError && bankNameValue ? _jsx(CheckIcon, {}) : bankNameValue && _jsx(ClearIcon, { onClick: clearValue }) }) }));
26
+ };
27
+ export default BankName;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export interface BeneficiaryProps {
3
+ }
4
+ declare const Beneficiary: () => JSX.Element;
5
+ export default Beneficiary;
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import Input from '../../../shared/Input';
3
+ import { useTranslation } from 'react-i18next';
4
+ import { useController, useFormContext } from 'react-hook-form';
5
+ import { styled } from '@mui/material';
6
+ import { keepLettersAndSpace } from '../../../../utils';
7
+ import { ScreenContainer } from '../../../shared/Containers';
8
+ import ClearIcon from '../../../shared/ClearIcon';
9
+ import CheckIcon from '../../../shared/CheckIcon';
10
+ var FeatureStyled = styled(ScreenContainer)(function (_a) {
11
+ var theme = _a.theme;
12
+ return ({
13
+ marginBlockEnd: theme.spacing(3)
14
+ });
15
+ });
16
+ var Beneficiary = function () {
17
+ var _a;
18
+ var t = useTranslation().t;
19
+ var control = useFormContext().control;
20
+ var beneficiaryControl = useController({ name: 'beneficiaryName', control: control });
21
+ var beneficiaryValue = beneficiaryControl.field.value;
22
+ var hasError = (_a = beneficiaryControl.fieldState.error) === null || _a === void 0 ? void 0 : _a.message;
23
+ var errorMessage = hasError ? t('beneficiary_error') : '';
24
+ var handleBeneficiaryChange = function (_a) {
25
+ var target = _a.target;
26
+ var value = keepLettersAndSpace(target.value);
27
+ beneficiaryControl.field.onChange(value);
28
+ };
29
+ var clearValue = function () {
30
+ beneficiaryControl.field.onChange('');
31
+ };
32
+ return (_jsx(FeatureStyled, { children: _jsx(Input, { label: t('beneficiary_name_label'), onChange: handleBeneficiaryChange, value: beneficiaryValue, placeholder: t('beneficiary_name_placeholder'), warningType: 'alert', warningMessage: errorMessage, required: true, endAdornment: !hasError && beneficiaryValue ? _jsx(CheckIcon, {}) : beneficiaryValue && _jsx(ClearIcon, { onClick: clearValue }) }) }));
33
+ };
34
+ export default Beneficiary;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export interface IBANProps {
3
+ }
4
+ declare const IBAN: () => JSX.Element;
5
+ export default IBAN;
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import Input from '../../../shared/Input';
3
+ import { useTranslation } from 'react-i18next';
4
+ import { useController, useFormContext } from 'react-hook-form';
5
+ import { removeAllOtherThanCharsAndNumber } from '../../../../utils';
6
+ import { styled } from '@mui/material';
7
+ import { MAX_IBAN_VALUE } from '../../../../constants';
8
+ import { ScreenContainer } from '../../../shared/Containers';
9
+ import ClearIcon from '../../../shared/ClearIcon';
10
+ import CheckIcon from '../../../shared/CheckIcon';
11
+ var FeatureStyled = styled(ScreenContainer)(function (_a) {
12
+ var theme = _a.theme;
13
+ return ({
14
+ marginBlockEnd: theme.spacing(3)
15
+ });
16
+ });
17
+ var IBAN = function () {
18
+ var _a;
19
+ var t = useTranslation().t;
20
+ var control = useFormContext().control;
21
+ var ibanControl = useController({ name: 'iban', control: control });
22
+ var ibanValue = ibanControl.field.value;
23
+ var hasError = !!((_a = ibanControl.fieldState.error) === null || _a === void 0 ? void 0 : _a.message);
24
+ var errorMessage = hasError ? t('iban_error') : '';
25
+ var handleIbanChange = function (_a) {
26
+ var target = _a.target;
27
+ var value = removeAllOtherThanCharsAndNumber(target.value);
28
+ ibanControl.field.onChange(value);
29
+ };
30
+ var clearValue = function () {
31
+ ibanControl.field.onChange('');
32
+ };
33
+ return (_jsx(FeatureStyled, { children: _jsx(Input, { label: t('iban'), inputProps: { maxLength: MAX_IBAN_VALUE }, onChange: handleIbanChange, value: ibanValue, placeholder: 'SA44#########10', warningType: 'alert', warningMessage: errorMessage, required: true, endAdornment: !hasError && ibanValue ? _jsx(CheckIcon, {}) : ibanValue && _jsx(ClearIcon, { onClick: clearValue }) }) }));
34
+ };
35
+ export default IBAN;
@@ -0,0 +1,3 @@
1
+ import BankDetails, { BankDetailsProps } from './BankDetails';
2
+ export type { BankDetailsProps };
3
+ export default BankDetails;
@@ -0,0 +1,2 @@
1
+ import BankDetails from './BankDetails';
2
+ export default BankDetails;
@@ -0,0 +1,14 @@
1
+ import * as yup from 'yup';
2
+ export declare const BankValidation: yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
3
+ iban: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
+ bankName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
5
+ beneficiaryName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
6
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
7
+ iban: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
8
+ bankName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
9
+ beneficiaryName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
10
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
11
+ iban: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
12
+ bankName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
13
+ beneficiaryName: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
14
+ }>>>;
@@ -0,0 +1,9 @@
1
+ import * as yup from 'yup';
2
+ export var BankValidation = yup.object().shape({
3
+ iban: yup.string().min(16).max(34).required(''),
4
+ bankName: yup.string().required(),
5
+ beneficiaryName: yup
6
+ .string()
7
+ .matches(/^([a-zA-Z0-9]+\s{1}[a-zA-Z0-9]{2,}|[a-zA-Z0-9]+\s{1}[a-zA-Z0-9]{1,}\s{1}[a-zA-Z0-9]{2,})$/g)
8
+ .required('')
9
+ });
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export interface BusinessLibProps {
3
+ }
4
+ export declare function BusinessLib(props: BusinessLibProps): JSX.Element;
5
+ export declare function renderBusinessLib(config: BusinessLibProps, elementId: string): void;
6
+ export declare function unmountBusinessLib(elementId: string): void;
@@ -0,0 +1,61 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import React, { memo, useEffect } from 'react';
14
+ import { styled } from '@mui/material/styles';
15
+ import Box from '@mui/material/Box';
16
+ import { useAppTheme, useAppDispatch, useAppSelector } from '../../hooks';
17
+ import { handleActiveFlowScreens, settingsSelector } from '../../app/settings';
18
+ import AnimationFlow from '../../components/AnimationFlow';
19
+ import { store } from '../../app/store';
20
+ import { ReduxProvider, ThemeProvider } from '../../components/Providers';
21
+ import Collapse from '../../components/Collapse';
22
+ import { reactElement } from '../../utils';
23
+ import { BUSINESS_SCREENS_NAVIGATION } from '../../constants';
24
+ import { businessFeatureScreens } from '../featuresScreens';
25
+ import CustomFooter from '../shared/Footer';
26
+ var Container = styled(Box)(function (_a) {
27
+ var _b;
28
+ var theme = _a.theme;
29
+ return (_b = {
30
+ width: '100%',
31
+ minHeight: theme.spacing(20)
32
+ },
33
+ _b[theme.transitions.create('height')] = {
34
+ duration: theme.transitions.duration.enteringScreen
35
+ },
36
+ _b);
37
+ });
38
+ var Business = memo(function (props) {
39
+ var open = React.useState(true)[0];
40
+ var theme = useAppTheme().theme;
41
+ var dispatch = useAppDispatch();
42
+ var data = useAppSelector(settingsSelector).data;
43
+ var activeScreen = data.activeScreen;
44
+ useEffect(function () {
45
+ dispatch(handleActiveFlowScreens(BUSINESS_SCREENS_NAVIGATION));
46
+ }, []);
47
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(AnimationFlow, __assign({ open: open, breakpoint: 'sm', footer: _jsx(CustomFooter, {}) }, { children: _jsx(Container, { children: businessFeatureScreens.map(function (_a, index) {
48
+ var Element = _a.element, name = _a.name;
49
+ var isActive = activeScreen.name === name;
50
+ return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 600, exit: 400, appear: 600 } }, { children: _jsx(Element, {}) }), index));
51
+ }) }) })) })));
52
+ });
53
+ export function BusinessLib(props) {
54
+ return (_jsx(ReduxProvider, __assign({ store: store }, { children: _jsx(Business, __assign({}, props)) })));
55
+ }
56
+ export function renderBusinessLib(config, elementId) {
57
+ reactElement(elementId).render(_jsx(BusinessLib, __assign({}, config)));
58
+ }
59
+ export function unmountBusinessLib(elementId) {
60
+ reactElement(elementId).unmount();
61
+ }
@@ -0,0 +1 @@
1
+ export * from './Business';
@@ -0,0 +1 @@
1
+ export * from './Business';