@tap-payments/auth-jsconnect 2.0.54-test → 2.0.55-test

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/build/@types/app.d.ts +39 -14
  2. package/build/@types/app.js +9 -0
  3. package/build/@types/form.d.ts +11 -0
  4. package/build/api/account.js +1 -1
  5. package/build/api/auth.d.ts +15 -2
  6. package/build/api/auth.js +25 -2
  7. package/build/api/availabilityServices.js +1 -1
  8. package/build/api/axios.js +4 -4
  9. package/build/api/board.js +1 -1
  10. package/build/api/brand.d.ts +1 -1
  11. package/build/api/brand.js +1 -1
  12. package/build/api/country.js +1 -1
  13. package/build/api/data.d.ts +33 -7
  14. package/build/api/data.js +42 -17
  15. package/build/api/entity.d.ts +2 -0
  16. package/build/api/entity.js +1 -1
  17. package/build/api/firebase.js +1 -1
  18. package/build/api/individual.d.ts +1 -1
  19. package/build/api/individual.js +1 -1
  20. package/build/api/ip.js +1 -1
  21. package/build/api/lead.d.ts +1 -1
  22. package/build/api/lead.js +1 -1
  23. package/build/api/operator.js +1 -1
  24. package/build/api/user.js +1 -1
  25. package/build/app/rootReducer.d.ts +10 -7
  26. package/build/app/rootReducer.js +14 -8
  27. package/build/app/settings.d.ts +2 -2
  28. package/build/app/settings.js +11 -5
  29. package/build/app/store.d.ts +6 -0
  30. package/build/assets/locales/ar.json +14 -4
  31. package/build/assets/locales/en.json +14 -4
  32. package/build/components/AnimationFlow/AnimationFlow.d.ts +4 -1
  33. package/build/components/AnimationFlow/AnimationFlow.js +5 -7
  34. package/build/components/AnimationFlow/BottomSheet.js +2 -1
  35. package/build/components/AnimationFlow/Dialog.d.ts +4 -1
  36. package/build/components/AnimationFlow/Dialog.js +10 -5
  37. package/build/components/DatePicker/DatePicker.js +3 -3
  38. package/build/components/FileInput/DragAndDrop.d.ts +9 -1
  39. package/build/components/FileInput/DragAndDrop.js +115 -10
  40. package/build/components/FileInput/UploadInput.js +2 -2
  41. package/build/components/Footer/Footer.js +3 -3
  42. package/build/components/Input/Input.js +2 -2
  43. package/build/components/Lottie/Lottie.d.ts +878 -0
  44. package/build/components/Lottie/Lottie.js +58 -0
  45. package/build/components/Lottie/files/pulsating_circle_waves.json +236 -0
  46. package/build/components/Lottie/files/success.json +425 -0
  47. package/build/components/Lottie/index.d.ts +3 -0
  48. package/build/components/Lottie/index.js +3 -0
  49. package/build/components/OTPTimer/OTPTimer.js +1 -1
  50. package/build/components/ProgressBar/CircularProgressBar.d.ts +14 -0
  51. package/build/components/ProgressBar/CircularProgressBar.js +48 -0
  52. package/build/components/ProgressBar/index.d.ts +2 -0
  53. package/build/components/ProgressBar/index.js +2 -0
  54. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  55. package/build/components/SimpleList/SimpleList.js +1 -1
  56. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +3 -2
  57. package/build/components/SocialMediaGroup/SocialMediaGroup.js +29 -36
  58. package/build/constants/api.d.ts +1 -0
  59. package/build/constants/api.js +10 -7
  60. package/build/constants/app.d.ts +16 -1
  61. package/build/constants/app.js +76 -4
  62. package/build/constants/assets.d.ts +17 -1
  63. package/build/constants/assets.js +22 -6
  64. package/build/constants/validation.d.ts +1 -0
  65. package/build/constants/validation.js +1 -0
  66. package/build/features/app/auth/authStore.d.ts +35 -0
  67. package/build/features/app/auth/authStore.js +148 -0
  68. package/build/features/app/bank/bankStore.d.ts +6 -2
  69. package/build/features/app/bank/bankStore.js +46 -26
  70. package/build/features/app/business/businessStore.d.ts +2 -2
  71. package/build/features/app/business/businessStore.js +58 -48
  72. package/build/features/app/connect/connectStore.d.ts +14 -2
  73. package/build/features/app/connect/connectStore.js +170 -10
  74. package/build/features/app/entity/entityStore.d.ts +53 -0
  75. package/build/features/app/entity/entityStore.js +461 -0
  76. package/build/features/app/individual/individualStore.d.ts +2 -2
  77. package/build/features/app/individual/individualStore.js +23 -15
  78. package/build/features/app/otp/otpStore.d.ts +28 -0
  79. package/build/features/app/otp/otpStore.js +153 -0
  80. package/build/features/app/password/passwordStore.d.ts +2 -2
  81. package/build/features/app/password/passwordStore.js +4 -4
  82. package/build/features/app/signIn/signInStore.d.ts +2 -2
  83. package/build/features/app/signIn/signInStore.js +6 -6
  84. package/build/features/app/tax/taxStore.d.ts +2 -2
  85. package/build/features/app/tax/taxStore.js +5 -5
  86. package/build/features/auth/Auth.d.ts +10 -0
  87. package/build/features/auth/Auth.js +87 -0
  88. package/build/features/auth/index.d.ts +1 -0
  89. package/build/features/auth/index.js +1 -0
  90. package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
  91. package/build/features/auth/screens/OTP/OTP.js +72 -0
  92. package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
  93. package/build/features/auth/screens/OTP/OTPInput.js +44 -0
  94. package/build/features/auth/screens/OTP/index.d.ts +3 -0
  95. package/build/features/auth/screens/OTP/index.js +2 -0
  96. package/build/features/auth/screens/OTP/validation.d.ts +8 -0
  97. package/build/features/auth/screens/OTP/validation.js +4 -0
  98. package/build/features/bank/Bank.d.ts +1 -1
  99. package/build/features/bank/Bank.js +18 -12
  100. package/build/features/bank/screens/BankDetails/BankDetails.js +9 -9
  101. package/build/features/bank/screens/BankDetails/BankName.js +8 -8
  102. package/build/features/bank/screens/BankDetails/BankStatement.js +35 -10
  103. package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
  104. package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
  105. package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
  106. package/build/features/bank/screens/BankDetails/validation.js +1 -1
  107. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  108. package/build/features/bank/screens/Success/Success.js +3 -3
  109. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  110. package/build/features/bank/screens/Verify/OTPInput.js +4 -4
  111. package/build/features/bank/screens/Verify/Verify.js +9 -9
  112. package/build/features/business/Business.d.ts +2 -2
  113. package/build/features/business/Business.js +20 -13
  114. package/build/features/business/screens/Activities/Activities.js +7 -7
  115. package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
  116. package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
  117. package/build/features/business/screens/Activities/LicenseName.js +6 -6
  118. package/build/features/business/screens/Activities/OperationStartDate.js +4 -4
  119. package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
  120. package/build/features/business/screens/Activities/SalesChannels.js +8 -8
  121. package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
  122. package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
  123. package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
  124. package/build/features/business/screens/BusinessType/SelectType.js +6 -6
  125. package/build/features/business/screens/BusinessType/validation.js +2 -2
  126. package/build/features/business/screens/Customers/CustomerLocations.d.ts +3 -3
  127. package/build/features/business/screens/Customers/CustomerLocations.js +33 -15
  128. package/build/features/business/screens/Customers/Customers.js +8 -8
  129. package/build/features/business/screens/Customers/ExpectedCustomers.js +22 -10
  130. package/build/features/business/screens/Customers/ExpectedSalesRange.js +39 -21
  131. package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
  132. package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
  133. package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
  134. package/build/features/business/screens/IDBOD/DOB.js +5 -5
  135. package/build/features/business/screens/IDBOD/ID.js +6 -6
  136. package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
  137. package/build/features/business/screens/OTP/OTP.js +9 -9
  138. package/build/features/business/screens/OTP/OTPInput.js +4 -4
  139. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  140. package/build/features/business/screens/Success/Success.js +3 -3
  141. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  142. package/build/features/business/screens/Verify/OTPInput.js +4 -4
  143. package/build/features/business/screens/Verify/Verify.js +9 -9
  144. package/build/features/connect/Connect.d.ts +3 -2
  145. package/build/features/connect/Connect.js +46 -16
  146. package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
  147. package/build/features/connect/screens/CivilID/CivilID.js +85 -0
  148. package/build/features/connect/screens/CivilID/IDNumber.d.ts +7 -0
  149. package/build/features/connect/screens/CivilID/IDNumber.js +59 -0
  150. package/build/features/connect/screens/CivilID/index.d.ts +3 -0
  151. package/build/features/connect/screens/CivilID/index.js +2 -0
  152. package/build/features/connect/screens/CivilID/validation.d.ts +8 -0
  153. package/build/features/connect/screens/CivilID/validation.js +4 -0
  154. package/build/features/connect/screens/Individual/Email.js +7 -7
  155. package/build/features/connect/screens/Individual/Individual.js +14 -10
  156. package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
  157. package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
  158. package/build/features/connect/screens/Individual/Name.js +6 -6
  159. package/build/features/connect/screens/Individual/validation.js +1 -1
  160. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  161. package/build/features/connect/screens/Merchant/BrandList.js +8 -8
  162. package/build/features/connect/screens/Merchant/BrandName.js +10 -10
  163. package/build/features/connect/screens/Merchant/Merchant.js +42 -18
  164. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +5 -0
  165. package/build/features/connect/screens/Merchant/SalesChannels.js +114 -0
  166. package/build/features/connect/screens/Merchant/SocialMedia.js +65 -20
  167. package/build/features/connect/screens/Merchant/TAC.js +7 -7
  168. package/build/features/connect/screens/Merchant/validation.d.ts +87 -0
  169. package/build/features/connect/screens/Merchant/validation.js +69 -3
  170. package/build/features/connect/screens/Mobile/Mobile.js +16 -13
  171. package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
  172. package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
  173. package/build/features/connect/screens/Mobile/Title.js +2 -2
  174. package/build/features/connect/screens/NID/DOB.js +5 -5
  175. package/build/features/connect/screens/NID/IDNumber.js +8 -8
  176. package/build/features/connect/screens/NID/NID.js +8 -8
  177. package/build/features/connect/screens/OTP/OTP.js +9 -9
  178. package/build/features/connect/screens/OTP/OTPInput.js +4 -4
  179. package/build/features/connect/screens/ThankYou/ThankYou.js +1 -1
  180. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
  181. package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +169 -0
  182. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.d.ts +5 -0
  183. package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +22 -0
  184. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +5 -0
  185. package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +8 -0
  186. package/build/features/connect/screens/VerifyPACI/index.d.ts +3 -0
  187. package/build/features/connect/screens/VerifyPACI/index.js +2 -0
  188. package/build/features/entity/Entity.d.ts +7 -0
  189. package/build/features/entity/Entity.js +70 -0
  190. package/build/features/entity/index.d.ts +1 -0
  191. package/build/features/entity/index.js +1 -0
  192. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +54 -0
  193. package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +139 -0
  194. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +5 -0
  195. package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +56 -0
  196. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +5 -0
  197. package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +17 -0
  198. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +5 -0
  199. package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +28 -0
  200. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +6 -0
  201. package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +38 -0
  202. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +5 -0
  203. package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +112 -0
  204. package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +2 -0
  205. package/build/features/entity/screens/EntityInfoConfirm/index.js +2 -0
  206. package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +107 -0
  207. package/build/features/entity/screens/EntityInfoConfirm/validation.js +17 -0
  208. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
  209. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
  210. package/build/features/entity/screens/ResetPasswordSuccess/index.d.ts +3 -0
  211. package/build/features/entity/screens/ResetPasswordSuccess/index.js +2 -0
  212. package/build/features/entity/screens/Success/Success.d.ts +5 -0
  213. package/build/features/entity/screens/Success/Success.js +16 -0
  214. package/build/features/entity/screens/Success/index.d.ts +3 -0
  215. package/build/features/entity/screens/Success/index.js +2 -0
  216. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  217. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +109 -0
  218. package/build/features/entity/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  219. package/build/features/entity/screens/SuccessWithFlowButtons/index.js +2 -0
  220. package/build/features/entity/screens/Verify/OTPInput.d.ts +7 -0
  221. package/build/features/entity/screens/Verify/OTPInput.js +47 -0
  222. package/build/features/entity/screens/Verify/Verify.d.ts +5 -0
  223. package/build/features/entity/screens/Verify/Verify.js +78 -0
  224. package/build/features/entity/screens/Verify/index.d.ts +2 -0
  225. package/build/features/entity/screens/Verify/index.js +2 -0
  226. package/build/features/entity/screens/Verify/validation.d.ts +8 -0
  227. package/build/features/entity/screens/Verify/validation.js +4 -0
  228. package/build/features/featuresScreens.d.ts +4 -1
  229. package/build/features/featuresScreens.js +88 -40
  230. package/build/features/individual/Individual.d.ts +2 -2
  231. package/build/features/individual/Individual.js +20 -13
  232. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +9 -9
  233. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
  234. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
  235. package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
  236. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
  237. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  238. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +23 -12
  239. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
  240. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +19 -11
  241. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
  242. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  243. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +10 -10
  244. package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
  245. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  246. package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
  247. package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
  248. package/build/features/individual/screens/Success/Success.js +3 -3
  249. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  250. package/build/features/individual/screens/Verify/OTPInput.js +4 -4
  251. package/build/features/individual/screens/Verify/Verify.js +9 -9
  252. package/build/features/otp/OTP.d.ts +7 -0
  253. package/build/features/otp/OTP.js +58 -0
  254. package/build/features/otp/index.d.ts +0 -0
  255. package/build/features/otp/index.js +1 -0
  256. package/build/features/otp/screens/OTPVerify/OTPInput.d.ts +6 -0
  257. package/build/features/otp/screens/OTPVerify/OTPInput.js +47 -0
  258. package/build/features/otp/screens/OTPVerify/Verify.d.ts +5 -0
  259. package/build/features/otp/screens/OTPVerify/Verify.js +49 -0
  260. package/build/features/otp/screens/OTPVerify/index.d.ts +2 -0
  261. package/build/features/otp/screens/OTPVerify/index.js +2 -0
  262. package/build/features/otp/screens/OTPVerify/validation.d.ts +8 -0
  263. package/build/features/otp/screens/OTPVerify/validation.js +4 -0
  264. package/build/features/password/Password.d.ts +2 -2
  265. package/build/features/password/Password.js +20 -13
  266. package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
  267. package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
  268. package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -8
  269. package/build/features/password/screens/CreatePassword/Password.js +6 -6
  270. package/build/features/password/screens/OTP/OTP.js +9 -9
  271. package/build/features/password/screens/OTP/OTPInput.js +4 -4
  272. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  273. package/build/features/password/screens/Success/Success.js +4 -4
  274. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  275. package/build/features/password/screens/Verify/OTPInput.js +4 -4
  276. package/build/features/password/screens/Verify/Verify.js +9 -9
  277. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
  278. package/build/features/shared/Background/Background.d.ts +7 -5
  279. package/build/features/shared/Background/Background.js +16 -5
  280. package/build/features/shared/Background/LogoBackground.js +3 -3
  281. package/build/features/shared/Button/AbsherButton.d.ts +1 -1
  282. package/build/features/shared/Button/AbsherButton.js +3 -3
  283. package/build/features/shared/Button/Button.d.ts +1 -1
  284. package/build/features/shared/Button/Button.js +7 -7
  285. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  286. package/build/features/shared/Button/EmailProvidersButtons.js +2 -2
  287. package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
  288. package/build/features/shared/Button/FlowsButtons.js +6 -6
  289. package/build/features/shared/Button/MobileButton.d.ts +1 -1
  290. package/build/features/shared/Button/MobileButton.js +3 -3
  291. package/build/features/shared/Dialog/CloseDialog.d.ts +11 -0
  292. package/build/features/shared/Dialog/CloseDialog.js +62 -0
  293. package/build/features/shared/Dialog/DialogContainer.d.ts +8 -0
  294. package/build/features/shared/Dialog/DialogContainer.js +56 -0
  295. package/build/features/shared/Dialog/index.d.ts +4 -0
  296. package/build/features/shared/Dialog/index.js +4 -0
  297. package/build/features/shared/Footer/Footer.js +4 -4
  298. package/build/features/shared/Input/Input.d.ts +2 -2
  299. package/build/features/shared/Input/Input.js +4 -4
  300. package/build/features/shared/OTP/OTP.d.ts +1 -1
  301. package/build/features/shared/OTP/OTP.js +3 -3
  302. package/build/features/shared/Search/Search.js +1 -1
  303. package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
  304. package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
  305. package/build/features/shared/UploadFile/UploadFile.d.ts +8 -3
  306. package/build/features/shared/UploadFile/UploadFile.js +27 -12
  307. package/build/features/signIn/SignIn.d.ts +2 -2
  308. package/build/features/signIn/SignIn.js +21 -13
  309. package/build/features/signIn/screens/Email/Email.js +8 -8
  310. package/build/features/signIn/screens/Email/EmailField.js +5 -5
  311. package/build/features/signIn/screens/Email/validation.js +1 -1
  312. package/build/features/signIn/screens/Mobile/Mobile.js +9 -9
  313. package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +1 -1
  314. package/build/features/signIn/screens/Mobile/MobileNumber.js +12 -12
  315. package/build/features/signIn/screens/OTP/OTP.js +9 -9
  316. package/build/features/signIn/screens/OTP/OTPInput.js +4 -4
  317. package/build/features/signIn/screens/Password/Password.js +7 -7
  318. package/build/features/signIn/screens/Password/PasswordInput.js +3 -3
  319. package/build/features/tax/Tax.d.ts +2 -2
  320. package/build/features/tax/Tax.js +21 -13
  321. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
  322. package/build/features/tax/screens/Success/Success.js +3 -3
  323. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
  324. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
  325. package/build/features/tax/screens/TaxDetails/TaxDetails.js +6 -6
  326. package/build/features/tax/screens/TaxDetails/VATId.js +5 -5
  327. package/build/features/tax/screens/Verify/OTPInput.js +4 -4
  328. package/build/features/tax/screens/Verify/Verify.js +9 -9
  329. package/build/hooks/index.d.ts +1 -0
  330. package/build/hooks/index.js +1 -0
  331. package/build/hooks/useAppConfig.d.ts +1 -1
  332. package/build/hooks/useAppConfig.js +6 -4
  333. package/build/hooks/useAppDispatch.d.ts +3 -0
  334. package/build/hooks/useAppSelector.d.ts +1 -1
  335. package/build/hooks/useAppTheme.d.ts +1 -1
  336. package/build/hooks/useAppTheme.js +3 -3
  337. package/build/hooks/useErrorListener.js +4 -3
  338. package/build/hooks/useLanguage.js +1 -1
  339. package/build/hooks/useRedirectionListener.js +1 -1
  340. package/build/hooks/useScreen.d.ts +3 -0
  341. package/build/hooks/useScreen.js +14 -0
  342. package/build/hooks/useStepStartedListener.js +1 -1
  343. package/build/i18n.js +1 -1
  344. package/build/index.d.ts +12 -9
  345. package/build/index.js +18 -9
  346. package/build/theme/theme.d.ts +1 -1
  347. package/build/utils/array.d.ts +1 -1
  348. package/build/utils/device.d.ts +1 -0
  349. package/build/utils/device.js +13 -0
  350. package/build/utils/html.d.ts +1 -0
  351. package/build/utils/html.js +6 -0
  352. package/build/utils/locale.d.ts +1 -1
  353. package/build/utils/locale.js +2 -2
  354. package/build/utils/rsa.d.ts +2 -2
  355. package/build/utils/rsa.js +2 -2
  356. package/build/utils/string.d.ts +23 -21
  357. package/build/utils/string.js +13 -4
  358. package/package.json +1 -1
  359. package/build/api/index.d.ts +0 -83
  360. package/build/components/DatePicker/customStyle.css +0 -86
  361. package/build/index.css +0 -140
@@ -13,14 +13,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
- import { CR_NUMBER_LENGTH, FL_NUMBER_LENGTH } from '../../../../constants';
17
- import { removeAllOtherThanCharsAndNumber } from '../../../../utils';
18
- import ScreenContainer from '../../../shared/Containers/ScreenContainer';
19
- import ClearIcon from '../../../shared/ClearIcon';
20
- import CheckIcon from '../../../shared/CheckIcon';
21
- import Input from '../../../shared/Input';
22
- import Collapse from '../../../../components/Collapse';
23
- import { BusinessType } from '../../../../@types';
16
+ import { CR_NUMBER_LENGTH, FL_NUMBER_LENGTH } from '@constants';
17
+ import { removeAllOtherThanCharsAndNumber } from '@utils';
18
+ import ScreenContainer from '@features/shared/Containers/ScreenContainer';
19
+ import ClearIcon from '@features/shared/ClearIcon';
20
+ import CheckIcon from '@features/shared/CheckIcon';
21
+ import Input from '@features/shared/Input';
22
+ import Collapse from '@components/Collapse';
23
+ import { BusinessType } from '@types';
24
24
  var LicenseNumber = function (_a) {
25
25
  var _b;
26
26
  var show = _a.show, readOnly = _a.readOnly;
@@ -17,12 +17,12 @@ import Box from '@mui/material/Box';
17
17
  import { styled } from '@mui/material/styles';
18
18
  import RadioGroup from '@mui/material/RadioGroup';
19
19
  import Radio from '@mui/material/Radio';
20
- import ScreenContainer from '../../../shared/Containers/ScreenContainer';
21
- import Text from '../../../../components/Text';
22
- import Collapse from '../../../../components/Collapse';
23
- import Icon from '../../../../components/Icon/Icon';
24
- import { ICONS_NAMES } from '../../../../constants';
25
- import { BusinessType } from '../../../../@types';
20
+ import ScreenContainer from '@features/shared/Containers/ScreenContainer';
21
+ import Text from '@components/Text';
22
+ import Collapse from '@components/Collapse';
23
+ import Icon from '@components/Icon/Icon';
24
+ import { ICONS_NAMES } from '@constants';
25
+ import { BusinessType } from '@types';
26
26
  import BTypeSwitch from './Switch';
27
27
  var TitleStyled = styled(Text)(function (_a) {
28
28
  var theme = _a.theme;
@@ -1,6 +1,6 @@
1
1
  import * as yup from 'yup';
2
- import { FL_NUMBER_LENGTH, CR_NUMBER_LENGTH } from '../../../../constants';
3
- import { BusinessType } from '../../../../@types';
2
+ import { FL_NUMBER_LENGTH, CR_NUMBER_LENGTH } from '@constants';
3
+ import { BusinessType } from '@src/@types';
4
4
  var objectElements = {
5
5
  legal_name: yup.object().shape({
6
6
  ar: yup.string(),
@@ -12,7 +12,7 @@ export declare const InputLabelStyled: import("@emotion/styled").StyledComponent
12
12
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
13
13
  ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
14
14
  }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
15
- export declare const InputStyled: import("@emotion/styled").StyledComponent<Pick<import("../../../../components/Input").InputProps, "name" | "type" | "className" | "style" | "classes" | "color" | "margin" | "translate" | "slot" | "title" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "sx" | "size" | "disabled" | "error" | "components" | "componentsProps" | "value" | "autoFocus" | "fullWidth" | "required" | "rows" | "inputProps" | "inputRef" | "readOnly" | "autoComplete" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "multiline" | "renderSuffix" | "maxRows" | "minRows" | "startAdornment" | "disableUnderline" | "onEnterPressed" | "warningMessage"> & {
15
+ export declare const InputStyled: import("@emotion/styled").StyledComponent<Pick<import("@components/Input").InputProps, "name" | "type" | "className" | "style" | "classes" | "color" | "margin" | "translate" | "slot" | "title" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "sx" | "size" | "disabled" | "error" | "components" | "componentsProps" | "value" | "autoFocus" | "fullWidth" | "required" | "rows" | "inputProps" | "inputRef" | "readOnly" | "autoComplete" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "multiline" | "renderSuffix" | "maxRows" | "minRows" | "startAdornment" | "disableUnderline" | "onEnterPressed" | "warningMessage"> & {
16
16
  placeholder?: string | undefined;
17
17
  hide?: boolean | undefined;
18
18
  warningType?: "alert" | "error" | "hint" | undefined;
@@ -35,7 +35,7 @@ export declare const NameContainer: import("@emotion/styled").StyledComponent<im
35
35
  export declare const CheckIconStyled: import("@emotion/styled").StyledComponent<{
36
36
  children?: React.ReactNode;
37
37
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
38
- color?: "inherit" | "disabled" | "error" | "info" | "primary" | "secondary" | "action" | "success" | "warning" | undefined;
38
+ color?: "inherit" | "disabled" | "error" | "success" | "info" | "primary" | "secondary" | "action" | "warning" | undefined;
39
39
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
40
40
  htmlColor?: string | undefined;
41
41
  inheritViewBox?: boolean | undefined;
@@ -49,7 +49,7 @@ export declare const CheckIconStyled: import("@emotion/styled").StyledComponent<
49
49
  export declare const RemainingCheck: import("@emotion/styled").StyledComponent<{
50
50
  children?: React.ReactNode;
51
51
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
52
- color?: "inherit" | "disabled" | "error" | "info" | "primary" | "secondary" | "action" | "success" | "warning" | undefined;
52
+ color?: "inherit" | "disabled" | "error" | "success" | "info" | "primary" | "secondary" | "action" | "warning" | undefined;
53
53
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
54
54
  htmlColor?: string | undefined;
55
55
  inheritViewBox?: boolean | undefined;
@@ -26,15 +26,16 @@ import Box from '@mui/material/Box';
26
26
  import { useTranslation } from 'react-i18next';
27
27
  import { useController, useFormContext } from 'react-hook-form';
28
28
  import { styled, alpha } from '@mui/material/styles';
29
- import Text from '../../../../components/Text';
30
- import Collapse from '../../../../components/Collapse';
29
+ import Text from '@components/Text';
30
+ import Collapse from '@components/Collapse';
31
31
  import CheckIcon from '@mui/icons-material/Check';
32
- import ExpandIcon from '../../../../components/ExpandIcon';
33
- import Input from '../../../../components/Input';
34
- import SimpleList from '../../../../components/SimpleList';
35
- import { ScreenContainer } from '../../../shared/Containers';
36
- import { useLanguage, useAppSelector, useAppDispatch } from '../../../../hooks';
37
- import { businessSelector, clearError } from '../../../app/business/businessStore';
32
+ import ExpandIcon from '@components/ExpandIcon';
33
+ import Input from '@components/Input';
34
+ import SimpleList from '@components/SimpleList';
35
+ import { ScreenContainer } from '@features/shared/Containers';
36
+ import { useLanguage, useAppSelector, useAppDispatch } from '@hooks';
37
+ import { businessSelector, clearError } from '@features/app/business/businessStore';
38
+ import Search from '@src/features/shared/Search';
38
39
  export var InputLabelStyled = styled(Text)(function (_a) {
39
40
  var theme = _a.theme;
40
41
  return (__assign({ margin: theme.spacing(2.5, 2.5, 1.5, 2.5), color: alpha(theme.palette.text.primary, 0.4) }, theme.typography.caption));
@@ -89,9 +90,12 @@ var customerLocations = function (_a) {
89
90
  (_a = rest.onListOpen) === null || _a === void 0 ? void 0 : _a.call(rest);
90
91
  };
91
92
  var onCloseList = function () {
92
- var _a;
93
+ var _a, _b;
93
94
  setAnchorEl(null);
94
95
  (_a = rest.onListClose) === null || _a === void 0 ? void 0 : _a.call(rest);
96
+ if (((_b = response === null || response === void 0 ? void 0 : response.customerBases) === null || _b === void 0 ? void 0 : _b.length) > 0) {
97
+ setCustomerLocationsList(response === null || response === void 0 ? void 0 : response.customerBases);
98
+ }
95
99
  };
96
100
  React.useEffect(function () {
97
101
  var _a;
@@ -106,15 +110,29 @@ var customerLocations = function (_a) {
106
110
  };
107
111
  var onSelectItem = function (customerLocations) {
108
112
  onCloseList();
109
- var remaining = customerLocationsList.filter(function (location) { return location.id <= customerLocations.id; });
113
+ var checked = customerLocationsList.filter(function (location) { return location.id === customerLocations.id; });
114
+ if (customerLocations.id === 'cba_zHyD6221116meEv257b93818')
115
+ customerLocationsControl.field.onChange(checked.concat(customerLocationsList.filter(function (location) { return location.id === 'cba_PKZd19221115ub9D25H493833'; })));
116
+ else if (customerLocations.id === 'cba_NnUL20221116g2QG25Na9n129')
117
+ customerLocationsControl.field.onChange(checked.concat(customerLocationsList.filter(function (location) { return location.id != customerLocations.id; })));
118
+ else if (customerLocations.id === 'cba_PKZd19221115ub9D25H493833')
119
+ customerLocationsControl.field.onChange(checked);
110
120
  if (error)
111
121
  dispatch(clearError());
112
- customerLocationsControl.field.onChange(remaining);
122
+ };
123
+ var handleSearch = function (value) {
124
+ var _a;
125
+ var filteredList = (_a = response === null || response === void 0 ? void 0 : response.customerBases) === null || _a === void 0 ? void 0 : _a.filter(function (location) {
126
+ return location.name.en.toLowerCase().startsWith(value.toLowerCase()) ||
127
+ location.name.ar.toLowerCase().startsWith(value.toLowerCase());
128
+ });
129
+ setCustomerLocationsList(filteredList);
113
130
  };
114
131
  var customerLocationsValue = customerLocationsControl.field.value;
115
- var customerLocationSelected = customerLocationsValue[customerLocationsValue.length - 1];
116
- return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('select_customer_base') }), _jsx(InputStyled, { readOnly: true, value: isAr ? customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.name_ar : customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.name_en, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: _jsx(SimpleListStyled, { searchKeyPath: 'name', list: customerLocationsList, placeholder: 'choose_customer_base', onSelectItem: onSelectItem, renderItem: function (item) {
117
- return (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ display: 'flex' }, { children: _jsx(NameContainer, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.id) === (customerLocationsValue === null || customerLocationsValue === void 0 ? void 0 : customerLocationsValue.id) }, { children: isAr ? item.name_ar : item.name_en })) })), item.id === (customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.id) && _jsx(CheckIconStyled, {}), checkRemainingCondition(item) && item.id != (customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.id) && _jsx(RemainingCheck, {})] }));
118
- } }) }))] }) })));
132
+ var customerLocationSelected = customerLocationsValue === null || customerLocationsValue === void 0 ? void 0 : customerLocationsValue[0];
133
+ console.log(customerLocationSelected, 'sele');
134
+ return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('select_customer_base') }), _jsx(InputStyled, { readOnly: true, value: isAr ? customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.name.ar : customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.name.en, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsxs(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleListStyled, { searchKeyPath: 'name.en', list: customerLocationsList, placeholder: 'choose_customer_base', onSelectItem: onSelectItem, renderItem: function (item) {
135
+ return (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ display: 'flex' }, { children: _jsx(NameContainer, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.id) === (customerLocationsValue === null || customerLocationsValue === void 0 ? void 0 : customerLocationsValue.id) }, { children: isAr ? item.name.ar : item.name.en })) })), item.id === (customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.id) && _jsx(CheckIconStyled, {}), checkRemainingCondition(item) && item.id != (customerLocationSelected === null || customerLocationSelected === void 0 ? void 0 : customerLocationSelected.id) && _jsx(RemainingCheck, {})] }));
136
+ } })] }))] }) })));
119
137
  };
120
138
  export default React.memo(customerLocations);
@@ -16,20 +16,20 @@ import * as React from 'react';
16
16
  import { useTranslation } from 'react-i18next';
17
17
  import { useForm, FormProvider } from 'react-hook-form';
18
18
  import { yupResolver } from '@hookform/resolvers/yup';
19
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
20
- import { handlePrevScreenStep } from '../../../../app/settings';
19
+ import { useAppDispatch, useAppSelector } from '@hooks';
20
+ import { handlePrevScreenStep } from '@app/settings';
21
21
  import { CustomerInfoValidation } from './validation';
22
- import Form from '../../../../components/Form';
23
- import Button from '../../../shared/Button';
24
- import { useLanguage } from '../../../../hooks';
22
+ import Form from '@components/Form';
23
+ import Button from '@features/shared/Button';
24
+ import { useLanguage } from '@hooks';
25
25
  import CustomerLocations from './CustomerLocations';
26
26
  import ExpectedCustomers from './ExpectedCustomers';
27
27
  import ExpectedSales from './ExpectedSalesRange';
28
28
  import RefundPolicy from './RefundPolicy';
29
29
  import TransactionPolicy from './TransactionPolicy';
30
- import { ScreenContainer } from '../../../shared/Containers';
31
- import Collapse from '../../../../components/Collapse';
32
- import { businessSelector, clearError, updateCustomersInfo } from '../../../app/business/businessStore';
30
+ import { ScreenContainer } from '@features/shared/Containers';
31
+ import Collapse from '@components/Collapse';
32
+ import { businessSelector, clearError, updateCustomersInfo } from '@features/app/business/businessStore';
33
33
  var FormStyled = styled(Form)(function () { return ({
34
34
  display: 'flex',
35
35
  flexDirection: 'column'
@@ -26,13 +26,14 @@ import Box from '@mui/material/Box';
26
26
  import { styled } from '@mui/material/styles';
27
27
  import { useTranslation } from 'react-i18next';
28
28
  import { useController, useFormContext } from 'react-hook-form';
29
- import { useLanguage, useAppSelector, useAppDispatch } from '../../../../hooks';
30
- import SimpleList from '../../../../components/SimpleList';
31
- import Collapse from '../../../../components/Collapse';
32
- import ExpandIcon from '../../../../components/ExpandIcon';
33
- import { ScreenContainer } from '../../../shared/Containers';
29
+ import { useLanguage, useAppSelector, useAppDispatch } from '@hooks';
30
+ import SimpleList from '@components/SimpleList';
31
+ import Collapse from '@components/Collapse';
32
+ import ExpandIcon from '@components/ExpandIcon';
33
+ import { ScreenContainer } from '@features/shared/Containers';
34
34
  import { CheckIconStyled, InputLabelStyled, InputStyled, NameContainer } from './CustomerLocations';
35
- import { businessSelector, clearError } from '../../../app/business/businessStore';
35
+ import { businessSelector, clearError } from '@features/app/business/businessStore';
36
+ import Search from '@src/features/shared/Search';
36
37
  var ListItemContainer = styled(Box)(function (_a) {
37
38
  var theme = _a.theme;
38
39
  return ({
@@ -61,9 +62,12 @@ var ExpectedCustomers = function (_a) {
61
62
  (_a = rest.onListOpen) === null || _a === void 0 ? void 0 : _a.call(rest);
62
63
  };
63
64
  var onCloseList = function () {
64
- var _a;
65
+ var _a, _b;
65
66
  setAnchorEl(null);
66
67
  (_a = rest.onListClose) === null || _a === void 0 ? void 0 : _a.call(rest);
68
+ if (((_b = response === null || response === void 0 ? void 0 : response.expectedCustomerSales) === null || _b === void 0 ? void 0 : _b.length) > 0) {
69
+ setExpectedCustomersList(response === null || response === void 0 ? void 0 : response.expectedCustomerSales);
70
+ }
67
71
  };
68
72
  React.useEffect(function () {
69
73
  var _a;
@@ -77,10 +81,18 @@ var ExpectedCustomers = function (_a) {
77
81
  dispatch(clearError());
78
82
  onCloseList();
79
83
  };
84
+ var handleSearch = function (value) {
85
+ var _a;
86
+ var filteredList = (_a = response === null || response === void 0 ? void 0 : response.expectedCustomerSales) === null || _a === void 0 ? void 0 : _a.filter(function (customer) {
87
+ return customer.name.en.toLowerCase().startsWith(value.toLowerCase()) ||
88
+ customer.name.ar.toLowerCase().startsWith(value.toLowerCase());
89
+ });
90
+ setExpectedCustomersList(filteredList);
91
+ };
80
92
  var expectedCustomersValue = expectedCustomerControl.field.value;
81
93
  var expectedCustomersSelected = expectedCustomersValue;
82
- return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('expected_customers_to_serve') }), _jsx(InputStyled, { readOnly: true, value: isAr ? expectedCustomersSelected === null || expectedCustomersSelected === void 0 ? void 0 : expectedCustomersSelected.name_ar : expectedCustomersSelected === null || expectedCustomersSelected === void 0 ? void 0 : expectedCustomersSelected.name_en, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: _jsx(SimpleListStyled, { searchKeyPath: 'name', list: expectedCustomersList, onSelectItem: onSelectItem, renderItem: function (item) {
83
- return (_jsxs(_Fragment, { children: [_jsx(ListItemContainer, { children: _jsx(NameContainer, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.id) === (expectedCustomersValue === null || expectedCustomersValue === void 0 ? void 0 : expectedCustomersValue.id) }, { children: isAr ? item.name_ar : item.name_en })) }), item.id === (expectedCustomersSelected === null || expectedCustomersSelected === void 0 ? void 0 : expectedCustomersSelected.id) && _jsx(CheckIconStyled, {})] }));
84
- } }) }))] }) })));
94
+ return (_jsx(Collapse, __assign({ in: rest.show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('expected_customers_to_serve') }), _jsx(InputStyled, { readOnly: true, value: isAr ? expectedCustomersSelected === null || expectedCustomersSelected === void 0 ? void 0 : expectedCustomersSelected.name.ar : expectedCustomersSelected === null || expectedCustomersSelected === void 0 ? void 0 : expectedCustomersSelected.name.en, onClick: !!anchorEl ? function () { return onCloseList(); } : onOpenList, endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsxs(Collapse, __assign({ in: !!anchorEl, timeout: 300 }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleListStyled, { searchKeyPath: 'name', list: expectedCustomersList, onSelectItem: onSelectItem, renderItem: function (item) {
95
+ return (_jsxs(_Fragment, { children: [_jsx(ListItemContainer, { children: _jsx(NameContainer, __assign({ isSelected: (item === null || item === void 0 ? void 0 : item.id) === (expectedCustomersValue === null || expectedCustomersValue === void 0 ? void 0 : expectedCustomersValue.id) }, { children: isAr ? item.name.ar : item.name.en })) }), item.id === (expectedCustomersSelected === null || expectedCustomersSelected === void 0 ? void 0 : expectedCustomersSelected.id) && _jsx(CheckIconStyled, {})] }));
96
+ } })] }))] }) })));
85
97
  };
86
98
  export default ExpectedCustomers;
@@ -15,14 +15,15 @@ import Box from '@mui/material/Box';
15
15
  import { styled } from '@mui/material/styles';
16
16
  import { useTranslation } from 'react-i18next';
17
17
  import { useController, useFormContext } from 'react-hook-form';
18
- import { useLanguage, useAppSelector, useAppDispatch } from '../../../../hooks';
19
- import SimpleList from '../../../../components/SimpleList';
20
- import Collapse from '../../../../components/Collapse';
21
- import ExpandIcon from '../../../../components/ExpandIcon';
22
- import { businessSelector, clearError } from '../../../app/business/businessStore';
23
- import { isExist } from '../../../../utils';
24
- import { ScreenContainer } from '../../../shared/Containers';
18
+ import { useLanguage, useAppSelector, useAppDispatch } from '@hooks';
19
+ import SimpleList from '@components/SimpleList';
20
+ import Collapse from '@components/Collapse';
21
+ import ExpandIcon from '@components/ExpandIcon';
22
+ import { businessSelector, clearError } from '@features/app/business/businessStore';
23
+ import { isExist } from '@utils';
24
+ import { ScreenContainer } from '@features/shared/Containers';
25
25
  import { InputLabelStyled, CheckIconStyled, InputStyled, NameContainer } from './CustomerLocations';
26
+ import Search from '@src/features/shared/Search';
26
27
  var ListItem = styled(Box)(function (_a) {
27
28
  var theme = _a.theme;
28
29
  return ({
@@ -65,6 +66,9 @@ var ExpectedSalesRange = function (_a) {
65
66
  setAnchorEl(null);
66
67
  onListClose === null || onListClose === void 0 ? void 0 : onListClose();
67
68
  handleCloseSubMenu();
69
+ if ((expectedSales === null || expectedSales === void 0 ? void 0 : expectedSales.length) > 0) {
70
+ setExpectedSalesRangeList(expectedSales);
71
+ }
68
72
  };
69
73
  var handleOpenSubMenu = function (index) {
70
74
  if (subIndex === index)
@@ -86,24 +90,38 @@ var ExpectedSalesRange = function (_a) {
86
90
  dispatch(clearError());
87
91
  expectedSaleControl.field.onChange(expectedSalesRange);
88
92
  };
93
+ var handleSearch = function (value) {
94
+ var filteredSubList = expectedSales === null || expectedSales === void 0 ? void 0 : expectedSales.filter(function (salesRange) {
95
+ var _a;
96
+ return (_a = salesRange.sub) === null || _a === void 0 ? void 0 : _a.find(function (obj) { return obj.name.en.toLowerCase().startsWith(value.toLowerCase()); });
97
+ });
98
+ var filteredList = expectedSales === null || expectedSales === void 0 ? void 0 : expectedSales.filter(function (salesRange) {
99
+ var _a, _b;
100
+ return salesRange.name.en.toLowerCase().includes(value.toLowerCase()) ||
101
+ salesRange.name.ar.toLowerCase().includes(value.toLowerCase()) ||
102
+ ((_a = salesRange.sub) === null || _a === void 0 ? void 0 : _a.find(function (obj) { return obj.name.en.toLowerCase().includes(value.toLowerCase()); })) ||
103
+ ((_b = salesRange.sub) === null || _b === void 0 ? void 0 : _b.find(function (obj) { return obj.name.ar.toLowerCase().includes(value.toLowerCase()); }));
104
+ });
105
+ setExpectedSalesRangeList(filteredList);
106
+ };
89
107
  React.useEffect(function () {
90
108
  var item = isExist(expectedSales || [], expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id);
91
109
  if (item)
92
110
  setSubIndex(item.id);
93
111
  }, [anchorEl, expectedSalesRangeValue]);
94
- return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('expected_sales_yearly') }), _jsx(InputStyled, { readOnly: true, value: (isAr ? expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.name_ar : expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.name_en) || '', onClick: !!anchorEl ? handleCloseMainMenu : handleOpenMainMenu, placeholder: t('choose_expected_sales'), endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleListStyled, { sx: { maxHeight: '350px', paddingTop: 0 }, list: expectedSalesRangeList, listItemProps: { sx: { padding: 0 } }, onSelectItem: function (item) {
95
- var isOnlyOneItem = !item.sub || item.sub.length === 1;
96
- if (isOnlyOneItem)
97
- onSelectItem(item);
98
- else
99
- handleOpenSubMenu(item.id);
100
- }, renderItem: function (item) {
101
- var _a;
102
- var isOnlyOneItem = !item.sub || ((_a = item.sub) === null || _a === void 0 ? void 0 : _a.length) === 1;
103
- var showCheck = item.id === (expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id) && isOnlyOneItem;
104
- return (_jsxs(ListItemContainer, { children: [_jsxs(ListItem, __assign({ sx: __assign({ bgcolor: 'rgb(196 184 184 / 8%)', borderBottom: '1px solid rgba(227, 232, 238, 0.8)' }, (isOnlyOneItem && { bgcolor: 'inherit', borderBottom: 'none' })) }, { children: [_jsx(NameContainer, __assign({ isSelected: item.id === (expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id), sx: __assign({}, (isOnlyOneItem && { paddingInlineStart: '5px' })) }, { children: isAr ? item.name_ar : item.name_en })), showCheck ? _jsx(CheckIconStyled, {}) : !isOnlyOneItem && _jsx(ExpandIcon, { anchorEl: subIndex === item.id })] })), _jsx(Collapse, __assign({ in: item.id === subIndex && !isOnlyOneItem }, { children: _jsx(SimpleListStyled, { sx: { pt: 0, pb: 0 }, list: (!isOnlyOneItem && item.sub) || [], onSelectItem: onSelectItem, listItemProps: { sx: { padding: 0, '&:last-child': { paddingBottom: 0 } } }, renderItem: function (item, idx) {
105
- return (_jsxs(ListItem, __assign({ sx: { mt: idx === 0 ? 1 : 0 } }, { children: [_jsx(NameContainer, __assign({ isSelected: item.id === (expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id) }, { children: isAr ? item.name_ar : item.name_en })), item.id === (expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id) && _jsx(CheckIconStyled, {})] })));
106
- } }) }))] }));
107
- } }) }))] }) })));
112
+ return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('expected_sales_yearly') }), _jsx(InputStyled, { readOnly: true, value: (isAr ? expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.name.ar : expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.name.en) || '', onClick: !!anchorEl ? handleCloseMainMenu : handleOpenMainMenu, placeholder: t('choose_expected_sales'), endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsxs(Collapse, __assign({ in: !!anchorEl }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleListStyled, { sx: { maxHeight: '350px', paddingTop: 0 }, list: expectedSalesRangeList, listItemProps: { sx: { padding: 0 } }, onSelectItem: function (item) {
113
+ var isOnlyOneItem = !item.sub || item.sub.length === 1;
114
+ if (isOnlyOneItem)
115
+ onSelectItem(item);
116
+ else
117
+ handleOpenSubMenu(item.id);
118
+ }, renderItem: function (item) {
119
+ var _a;
120
+ var isOnlyOneItem = !item.sub || ((_a = item.sub) === null || _a === void 0 ? void 0 : _a.length) === 1;
121
+ var showCheck = item.id === (expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id) && isOnlyOneItem;
122
+ return (_jsxs(ListItemContainer, { children: [_jsxs(ListItem, __assign({ sx: __assign({ bgcolor: 'rgb(196 184 184 / 8%)', borderBottom: '1px solid rgba(227, 232, 238, 0.8)' }, (isOnlyOneItem && { bgcolor: 'inherit', borderBottom: 'none' })) }, { children: [_jsx(NameContainer, __assign({ isSelected: item.id === (expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id), sx: __assign({}, (isOnlyOneItem && { paddingInlineStart: '5px' })) }, { children: isAr ? item.name.ar : item.name.en })), showCheck ? _jsx(CheckIconStyled, {}) : !isOnlyOneItem && _jsx(ExpandIcon, { anchorEl: subIndex === item.id })] })), _jsx(Collapse, __assign({ in: item.id === subIndex && !isOnlyOneItem }, { children: _jsx(SimpleListStyled, { sx: { pt: 0, pb: 0 }, list: (!isOnlyOneItem && item.sub) || [], onSelectItem: onSelectItem, listItemProps: { sx: { padding: 0, '&:last-child': { paddingBottom: 0 } } }, renderItem: function (item, idx) {
123
+ return (_jsxs(ListItem, __assign({ sx: { mt: idx === 0 ? 1 : 0 } }, { children: [_jsx(NameContainer, __assign({ isSelected: item.id === (expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id) }, { children: isAr ? item.name.ar : item.name.en })), item.id === (expectedSalesRangeValue === null || expectedSalesRangeValue === void 0 ? void 0 : expectedSalesRangeValue.id) && _jsx(CheckIconStyled, {})] })));
124
+ } }) }))] }));
125
+ } })] }))] }) })));
108
126
  };
109
127
  export default ExpectedSalesRange;
@@ -7,7 +7,7 @@ export declare const ContainerStyled: import("@emotion/styled").StyledComponent<
7
7
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
8
8
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
9
9
  }, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "ref" | "children" | "component" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
10
- export declare const CheckboxStyled: import("@emotion/styled").StyledComponent<import("../../../../components/CheckBox").CheckboxProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
10
+ export declare const CheckboxStyled: import("@emotion/styled").StyledComponent<import("@components/CheckBox").CheckboxProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
11
11
  export declare const TextStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
12
12
  align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
13
13
  children?: React.ReactNode;
@@ -12,16 +12,16 @@ var __assign = (this && this.__assign) || function () {
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import Box from '@mui/material/Box';
14
14
  import { styled, alpha } from '@mui/material/styles';
15
- import CheckBox from '../../../../components/CheckBox';
16
- import Collapse from '../../../../components/Collapse';
15
+ import CheckBox from '@components/CheckBox';
16
+ import Collapse from '@components/Collapse';
17
17
  import { useTranslation } from 'react-i18next';
18
- import { useLanguage } from '../../../../hooks';
18
+ import { useLanguage } from '@hooks';
19
19
  import { useController, useFormContext } from 'react-hook-form';
20
- import Text from '../../../../components/Text';
20
+ import Text from '@components/Text';
21
21
  import Link from '@mui/material/Link';
22
- import Warning from '../../../../components/Warning';
23
- import { EXTERNAL_LINKS } from '../../../../constants';
24
- import { ScreenContainer } from '../../../shared/Containers';
22
+ import Warning from '@components/Warning';
23
+ import { EXTERNAL_LINKS } from '@constants';
24
+ import { ScreenContainer } from '@features/shared/Containers';
25
25
  export var ContainerStyled = styled(Box)(function (_a) {
26
26
  var theme = _a.theme;
27
27
  return ({
@@ -11,14 +11,14 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { styled } from '@mui/material/styles';
14
- import Collapse from '../../../../components/Collapse';
14
+ import Collapse from '@components/Collapse';
15
15
  import { useTranslation } from 'react-i18next';
16
- import { useLanguage } from '../../../../hooks';
16
+ import { useLanguage } from '@hooks';
17
17
  import { useController, useFormContext } from 'react-hook-form';
18
- import Warning from '../../../../components/Warning';
19
- import { EXTERNAL_LINKS } from '../../../../constants';
18
+ import Warning from '@components/Warning';
19
+ import { EXTERNAL_LINKS } from '@constants';
20
20
  import { ContainerStyled, CheckboxStyled, TextStyled, LinkStyled } from './RefundPolicy';
21
- import { ScreenContainer } from '../../../shared/Containers';
21
+ import { ScreenContainer } from '@features/shared/Containers';
22
22
  var CollapseStyled = styled(Collapse)(function () { return ({
23
23
  width: '100%'
24
24
  }); });
@@ -13,12 +13,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
14
  import { useTranslation } from 'react-i18next';
15
15
  import { useController, useFormContext } from 'react-hook-form';
16
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
16
+ import { useAppDispatch, useAppSelector } from '@hooks';
17
17
  import { styled, alpha } from '@mui/material/styles';
18
- import Text from '../../../../components/Text';
19
- import DatePicker from '../../../../components/DatePicker';
20
- import { ScreenContainer } from '../../../shared/Containers';
21
- import { businessSelector, clearError } from '../../../app/business/businessStore';
18
+ import Text from '@components/Text';
19
+ import DatePicker from '@components/DatePicker';
20
+ import { ScreenContainer } from '@features/shared/Containers';
21
+ import { businessSelector, clearError } from '@features/app/business/businessStore';
22
22
  var InputLabelStyled = styled(Text)(function (_a) {
23
23
  var theme = _a.theme;
24
24
  return (__assign(__assign({ color: alpha(theme.palette.text.primary, 0.4) }, theme.typography.caption), { cursor: 'pointer' }));
@@ -2,12 +2,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import { useController, useFormContext } from 'react-hook-form';
5
- import { ScreenContainer } from '../../../shared/Containers';
6
- import Input from '../../../shared/Input';
7
- import ClearIcon from '../../../shared/ClearIcon';
8
- import CheckIcon from '../../../shared/CheckIcon';
9
- import { removeAllCharsFromNumber } from '../../../../utils';
10
- import { ID_NUMBER_LENGTH } from '../../../../constants';
5
+ import { ScreenContainer } from '@features/shared/Containers';
6
+ import Input from '@features/shared/Input';
7
+ import ClearIcon from '@features/shared/ClearIcon';
8
+ import CheckIcon from '@features/shared/CheckIcon';
9
+ import { removeAllCharsFromNumber } from '@utils';
10
+ import { ID_NUMBER_LENGTH } from '@constants';
11
11
  var IDNumber = function (_a) {
12
12
  var _b;
13
13
  var t = useTranslation().t;
@@ -15,12 +15,12 @@ import { useTranslation } from 'react-i18next';
15
15
  import { useForm, FormProvider } from 'react-hook-form';
16
16
  import { styled } from '@mui/material/styles';
17
17
  import { yupResolver } from '@hookform/resolvers/yup';
18
- import { useAppDispatch, useLanguage, useAppSelector } from '../../../../hooks';
19
- import Form from '../../../../components/Form';
20
- import Button from '../../../shared/Button';
21
- import { ScreenContainer } from '../../../shared/Containers';
22
- import { businessSelector, clearError, updateLeadIdentity } from '../../../app/business/businessStore';
23
- import Collapse from '../../../../components/Collapse';
18
+ import { useAppDispatch, useLanguage, useAppSelector } from '@hooks';
19
+ import Form from '@components/Form';
20
+ import Button from '@features/shared/Button';
21
+ import { ScreenContainer } from '@features/shared/Containers';
22
+ import { businessSelector, clearError, updateLeadIdentity } from '@features/app/business/businessStore';
23
+ import Collapse from '@components/Collapse';
24
24
  import { NIDValidationSchema } from './validation';
25
25
  import ID from './ID';
26
26
  import DOB from './DOB';
@@ -11,20 +11,20 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import * as React from 'react';
14
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
14
+ import { useAppDispatch, useAppSelector } from '@hooks';
15
15
  import { useTranslation } from 'react-i18next';
16
16
  import { useForm, FormProvider } from 'react-hook-form';
17
17
  import { yupResolver } from '@hookform/resolvers/yup';
18
18
  import Box from '@mui/material/Box/Box';
19
19
  import { styled } from '@mui/material/styles';
20
- import { handlePrevScreenStep } from '../../../../app/settings';
21
- import { useLanguage } from '../../../../hooks';
22
- import Form from '../../../../components/Form';
23
- import Text from '../../../../components/Text';
24
- import { ScreenContainer } from '../../../shared/Containers';
25
- import { businessSelector, clearError, resetOTPScreen, verifyLeadOTP } from '../../../app/business/businessStore';
26
- import Button from '../../../shared/Button';
27
- import { maskID } from '../../../../utils';
20
+ import { handlePrevScreenStep } from '@app/settings';
21
+ import { useLanguage } from '@hooks';
22
+ import Form from '@components/Form';
23
+ import Text from '@components/Text';
24
+ import { ScreenContainer } from '@features/shared/Containers';
25
+ import { businessSelector, clearError, resetOTPScreen, verifyLeadOTP } from '@features/app/business/businessStore';
26
+ import Button from '@features/shared/Button';
27
+ import { maskID } from '@utils';
28
28
  import { OTPValidation } from './validation';
29
29
  import OTPInput from './OTPInput';
30
30
  var OTPTitleContainerStyled = styled(Box)(function (_a) {
@@ -15,10 +15,10 @@ import { useController, useFormContext } from 'react-hook-form';
15
15
  import { useTranslation } from 'react-i18next';
16
16
  import Box from '@mui/material/Box/Box';
17
17
  import { styled } from '@mui/material/styles';
18
- import OTPField from '../../../shared/OTP';
19
- import { DEFAULT_TIMER_VALUE } from '../../../../constants';
20
- import { resendOTPLeadIdentity } from '../../../app/business/businessStore';
21
- import { useAppDispatch } from '../../../../hooks';
18
+ import OTPField from '@features/shared/OTP';
19
+ import { DEFAULT_TIMER_VALUE } from '@constants';
20
+ import { resendOTPLeadIdentity } from '@features/app/business/businessStore';
21
+ import { useAppDispatch } from '@hooks';
22
22
  var BoxStyled = styled(Box)(function (_a) {
23
23
  var theme = _a.theme;
24
24
  return ({
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
- import SuccessScreen from '../../../shared/SuccessScreen';
4
+ import SuccessScreen from '@features/shared/SuccessScreen';
5
5
  var ResetPasswordSuccess = function (_a) {
6
6
  var t = useTranslation().t;
7
7
  return (_jsx(SuccessScreen, { title: t("reset_password_success_title"), description: t("reset_password_success_description"), showEmailProviders: true }));
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
3
+ import { useAppDispatch, useAppSelector } from '@hooks';
4
4
  import { useTranslation } from 'react-i18next';
5
- import SuccessScreen from '../../../shared/SuccessScreen';
6
- import { businessSelector, updateLeadSuccess } from '../../../app/business/businessStore';
5
+ import SuccessScreen from '@features/shared/SuccessScreen';
6
+ import { businessSelector, updateLeadSuccess } from '@features/app/business/businessStore';
7
7
  var Success = function (_a) {
8
8
  var t = useTranslation().t;
9
9
  var dispatch = useAppDispatch();