@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
@@ -0,0 +1,425 @@
1
+ {
2
+ "v": "4.8.0",
3
+ "meta": { "g": "LottieFiles AE 3.0.2", "a": "", "k": "", "d": "", "tc": "" },
4
+ "fr": 30,
5
+ "ip": 0,
6
+ "op": 106,
7
+ "w": 640,
8
+ "h": 640,
9
+ "nm": "success",
10
+ "ddd": 0,
11
+ "assets": [],
12
+ "layers": [
13
+ {
14
+ "ddd": 0,
15
+ "ind": 1,
16
+ "ty": 4,
17
+ "nm": "Circle Outlines",
18
+ "sr": 1,
19
+ "ks": {
20
+ "o": {
21
+ "a": 1,
22
+ "k": [
23
+ { "i": { "x": [0.833], "y": [0.833] }, "o": { "x": [0.167], "y": [0.167] }, "t": 48.008, "s": [100] },
24
+ { "t": 53.0126953125, "s": [10] }
25
+ ],
26
+ "ix": 11
27
+ },
28
+ "r": { "a": 0, "k": 0, "ix": 10 },
29
+ "p": { "a": 0, "k": [320, 320, 0], "ix": 2 },
30
+ "a": { "a": 0, "k": [40, 40, 0], "ix": 1 },
31
+ "s": { "a": 0, "k": [197.535, 197.535, 100], "ix": 6 }
32
+ },
33
+ "ao": 0,
34
+ "shapes": [
35
+ {
36
+ "ty": "gr",
37
+ "it": [
38
+ {
39
+ "ind": 0,
40
+ "ty": "sh",
41
+ "ix": 1,
42
+ "ks": {
43
+ "a": 0,
44
+ "k": {
45
+ "i": [
46
+ [0, -20.385],
47
+ [20.385, 0],
48
+ [0, 20.385],
49
+ [-20.385, 0]
50
+ ],
51
+ "o": [
52
+ [0, 20.385],
53
+ [-20.385, 0],
54
+ [0, -20.385],
55
+ [20.385, 0]
56
+ ],
57
+ "v": [
58
+ [36.91, 0],
59
+ [0, 36.91],
60
+ [-36.91, 0],
61
+ [0, -36.91]
62
+ ],
63
+ "c": true
64
+ },
65
+ "ix": 2
66
+ },
67
+ "nm": "Path 1",
68
+ "mn": "ADBE Vector Shape - Group",
69
+ "hd": false
70
+ },
71
+ {
72
+ "ty": "st",
73
+ "c": { "a": 0, "k": [0.117647066303, 0.796078491211, 0.250980392157, 1], "ix": 3 },
74
+ "o": { "a": 0, "k": 100, "ix": 4 },
75
+ "w": { "a": 0, "k": 5, "ix": 5 },
76
+ "lc": 2,
77
+ "lj": 2,
78
+ "bm": 0,
79
+ "nm": "Stroke 1",
80
+ "mn": "ADBE Vector Graphic - Stroke",
81
+ "hd": false
82
+ },
83
+ {
84
+ "ty": "tr",
85
+ "p": { "a": 0, "k": [40, 40], "ix": 2 },
86
+ "a": { "a": 0, "k": [0, 0], "ix": 1 },
87
+ "s": { "a": 0, "k": [100, 100], "ix": 3 },
88
+ "r": { "a": 0, "k": 0, "ix": 6 },
89
+ "o": { "a": 0, "k": 100, "ix": 7 },
90
+ "sk": { "a": 0, "k": 0, "ix": 4 },
91
+ "sa": { "a": 0, "k": 0, "ix": 5 },
92
+ "nm": "Transform"
93
+ }
94
+ ],
95
+ "nm": "Group 1",
96
+ "np": 2,
97
+ "cix": 2,
98
+ "bm": 0,
99
+ "ix": 1,
100
+ "mn": "ADBE Vector Group",
101
+ "hd": false
102
+ },
103
+ {
104
+ "ty": "tm",
105
+ "s": { "a": 0, "k": 0, "ix": 1 },
106
+ "e": {
107
+ "a": 1,
108
+ "k": [
109
+ { "i": { "x": [0.833], "y": [0.833] }, "o": { "x": [0.167], "y": [0.167] }, "t": 40, "s": [0] },
110
+ { "t": 53.0126953125, "s": [100] }
111
+ ],
112
+ "ix": 2
113
+ },
114
+ "o": { "a": 0, "k": 0, "ix": 3 },
115
+ "m": 1,
116
+ "ix": 2,
117
+ "nm": "Trim Paths 1",
118
+ "mn": "ADBE Vector Filter - Trim",
119
+ "hd": false
120
+ }
121
+ ],
122
+ "ip": 40,
123
+ "op": 940.900900900901,
124
+ "st": 40,
125
+ "bm": 0
126
+ },
127
+ {
128
+ "ddd": 0,
129
+ "ind": 2,
130
+ "ty": 4,
131
+ "nm": "Tick Outlines",
132
+ "sr": 1,
133
+ "ks": {
134
+ "o": { "a": 0, "k": 100, "ix": 11 },
135
+ "r": { "a": 0, "k": 0, "ix": 10 },
136
+ "p": { "a": 0, "k": [320, 320, 0], "ix": 2 },
137
+ "a": { "a": 0, "k": [40, 40, 0], "ix": 1 },
138
+ "s": { "a": 0, "k": [197.535, 197.535, 100], "ix": 6 }
139
+ },
140
+ "ao": 0,
141
+ "shapes": [
142
+ {
143
+ "ty": "gr",
144
+ "it": [
145
+ {
146
+ "ind": 0,
147
+ "ty": "sh",
148
+ "ix": 1,
149
+ "ks": {
150
+ "a": 0,
151
+ "k": {
152
+ "i": [
153
+ [0, 0],
154
+ [0, 0],
155
+ [0, 0]
156
+ ],
157
+ "o": [
158
+ [0, 0],
159
+ [0, 0],
160
+ [0, 0]
161
+ ],
162
+ "v": [
163
+ [-12.495, 0.165],
164
+ [-4.189, 8.342],
165
+ [12.495, -8.342]
166
+ ],
167
+ "c": false
168
+ },
169
+ "ix": 2
170
+ },
171
+ "nm": "Path 1",
172
+ "mn": "ADBE Vector Shape - Group",
173
+ "hd": false
174
+ },
175
+ {
176
+ "ty": "st",
177
+ "c": { "a": 0, "k": [0.117647066303, 0.796078491211, 0.250980392157, 1], "ix": 3 },
178
+ "o": { "a": 0, "k": 100, "ix": 4 },
179
+ "w": { "a": 0, "k": 5, "ix": 5 },
180
+ "lc": 2,
181
+ "lj": 2,
182
+ "bm": 0,
183
+ "nm": "Stroke 1",
184
+ "mn": "ADBE Vector Graphic - Stroke",
185
+ "hd": false
186
+ },
187
+ {
188
+ "ty": "tr",
189
+ "p": { "a": 0, "k": [40, 40], "ix": 2 },
190
+ "a": { "a": 0, "k": [0, 0], "ix": 1 },
191
+ "s": { "a": 0, "k": [100, 100], "ix": 3 },
192
+ "r": { "a": 0, "k": 0, "ix": 6 },
193
+ "o": { "a": 0, "k": 100, "ix": 7 },
194
+ "sk": { "a": 0, "k": 0, "ix": 4 },
195
+ "sa": { "a": 0, "k": 0, "ix": 5 },
196
+ "nm": "Transform"
197
+ }
198
+ ],
199
+ "nm": "Group 1",
200
+ "np": 2,
201
+ "cix": 2,
202
+ "bm": 0,
203
+ "ix": 1,
204
+ "mn": "ADBE Vector Group",
205
+ "hd": false
206
+ },
207
+ {
208
+ "ty": "tm",
209
+ "s": { "a": 0, "k": 0, "ix": 1 },
210
+ "e": {
211
+ "a": 1,
212
+ "k": [
213
+ { "i": { "x": [0.833], "y": [0.833] }, "o": { "x": [0.167], "y": [0.167] }, "t": 44.004, "s": [0] },
214
+ { "t": 57.016699316504, "s": [99] }
215
+ ],
216
+ "ix": 2
217
+ },
218
+ "o": { "a": 0, "k": 0, "ix": 3 },
219
+ "m": 1,
220
+ "ix": 2,
221
+ "nm": "Trim Paths 1",
222
+ "mn": "ADBE Vector Filter - Trim",
223
+ "hd": false
224
+ }
225
+ ],
226
+ "ip": 44.004004004004,
227
+ "op": 944.904904904905,
228
+ "st": 44.004004004004,
229
+ "bm": 0
230
+ },
231
+ {
232
+ "ddd": 0,
233
+ "ind": 3,
234
+ "ty": 4,
235
+ "nm": "Shape Layer 2",
236
+ "sr": 1,
237
+ "ks": {
238
+ "o": {
239
+ "a": 1,
240
+ "k": [
241
+ { "i": { "x": [0.833], "y": [0.833] }, "o": { "x": [0.167], "y": [0.167] }, "t": 18, "s": [10] },
242
+ { "i": { "x": [0.833], "y": [0.833] }, "o": { "x": [0.167], "y": [0.167] }, "t": 53, "s": [92.895] },
243
+ { "t": 56, "s": [0] }
244
+ ],
245
+ "ix": 11
246
+ },
247
+ "r": { "a": 0, "k": 0, "ix": 10 },
248
+ "p": { "a": 0, "k": [323.035, 320.203, 0], "ix": 2 },
249
+ "a": { "a": 0, "k": [0, 0, 0], "ix": 1 },
250
+ "s": {
251
+ "a": 1,
252
+ "k": [
253
+ {
254
+ "i": { "x": [0.833, 0.833, 0.833], "y": [0.833, 0.833, 0.833] },
255
+ "o": { "x": [0.167, 0.167, 0.167], "y": [0.167, 0.167, 0.167] },
256
+ "t": 18,
257
+ "s": [100, 100, 100]
258
+ },
259
+ { "t": 56, "s": [25, 25, 100] }
260
+ ],
261
+ "ix": 6
262
+ }
263
+ },
264
+ "ao": 0,
265
+ "shapes": [
266
+ {
267
+ "ty": "gr",
268
+ "it": [
269
+ {
270
+ "d": 1,
271
+ "ty": "el",
272
+ "s": { "a": 0, "k": [604.492, 604.492], "ix": 2 },
273
+ "p": { "a": 0, "k": [0, 0], "ix": 3 },
274
+ "nm": "Ellipse Path 1",
275
+ "mn": "ADBE Vector Shape - Ellipse",
276
+ "hd": false
277
+ },
278
+ {
279
+ "ty": "st",
280
+ "c": { "a": 0, "k": [0.117647058824, 0.796078431373, 0.250980392157, 1], "ix": 3 },
281
+ "o": { "a": 0, "k": 100, "ix": 4 },
282
+ "w": { "a": 0, "k": 2, "ix": 5 },
283
+ "lc": 1,
284
+ "lj": 1,
285
+ "ml": 4,
286
+ "bm": 0,
287
+ "nm": "Stroke 1",
288
+ "mn": "ADBE Vector Graphic - Stroke",
289
+ "hd": false
290
+ },
291
+ {
292
+ "ty": "fl",
293
+ "c": { "a": 0, "k": [0, 0, 0, 1], "ix": 4 },
294
+ "o": { "a": 0, "k": 0, "ix": 5 },
295
+ "r": 1,
296
+ "bm": 0,
297
+ "nm": "Fill 1",
298
+ "mn": "ADBE Vector Graphic - Fill",
299
+ "hd": false
300
+ },
301
+ {
302
+ "ty": "tr",
303
+ "p": { "a": 0, "k": [-3.035, -0.203], "ix": 2 },
304
+ "a": { "a": 0, "k": [0, 0], "ix": 1 },
305
+ "s": { "a": 0, "k": [100, 100], "ix": 3 },
306
+ "r": { "a": 0, "k": 0, "ix": 6 },
307
+ "o": { "a": 0, "k": 100, "ix": 7 },
308
+ "sk": { "a": 0, "k": 0, "ix": 4 },
309
+ "sa": { "a": 0, "k": 0, "ix": 5 },
310
+ "nm": "Transform"
311
+ }
312
+ ],
313
+ "nm": "Ellipse 1",
314
+ "np": 3,
315
+ "cix": 2,
316
+ "bm": 0,
317
+ "ix": 1,
318
+ "mn": "ADBE Vector Group",
319
+ "hd": false
320
+ }
321
+ ],
322
+ "ip": 18,
323
+ "op": 94,
324
+ "st": 18,
325
+ "bm": 0
326
+ },
327
+ {
328
+ "ddd": 0,
329
+ "ind": 4,
330
+ "ty": 4,
331
+ "nm": "Shape Layer 1",
332
+ "sr": 1,
333
+ "ks": {
334
+ "o": {
335
+ "a": 1,
336
+ "k": [
337
+ { "i": { "x": [0.833], "y": [0.833] }, "o": { "x": [0.167], "y": [0.167] }, "t": 0, "s": [10] },
338
+ { "i": { "x": [0.833], "y": [0.833] }, "o": { "x": [0.167], "y": [0.167] }, "t": 35, "s": [92.895] },
339
+ { "t": 38, "s": [0] }
340
+ ],
341
+ "ix": 11
342
+ },
343
+ "r": { "a": 0, "k": 0, "ix": 10 },
344
+ "p": { "a": 0, "k": [323.035, 320.203, 0], "ix": 2 },
345
+ "a": { "a": 0, "k": [0, 0, 0], "ix": 1 },
346
+ "s": {
347
+ "a": 1,
348
+ "k": [
349
+ {
350
+ "i": { "x": [0.833, 0.833, 0.833], "y": [0.833, 0.833, 0.833] },
351
+ "o": { "x": [0.167, 0.167, 0.167], "y": [0.167, 0.167, 0.167] },
352
+ "t": 0,
353
+ "s": [100, 100, 100]
354
+ },
355
+ { "t": 38, "s": [25, 25, 100] }
356
+ ],
357
+ "ix": 6
358
+ }
359
+ },
360
+ "ao": 0,
361
+ "shapes": [
362
+ {
363
+ "ty": "gr",
364
+ "it": [
365
+ {
366
+ "d": 1,
367
+ "ty": "el",
368
+ "s": { "a": 0, "k": [604.492, 604.492], "ix": 2 },
369
+ "p": { "a": 0, "k": [0, 0], "ix": 3 },
370
+ "nm": "Ellipse Path 1",
371
+ "mn": "ADBE Vector Shape - Ellipse",
372
+ "hd": false
373
+ },
374
+ {
375
+ "ty": "st",
376
+ "c": { "a": 0, "k": [0.117647058824, 0.796078431373, 0.250980392157, 1], "ix": 3 },
377
+ "o": { "a": 0, "k": 100, "ix": 4 },
378
+ "w": { "a": 0, "k": 2, "ix": 5 },
379
+ "lc": 1,
380
+ "lj": 1,
381
+ "ml": 4,
382
+ "bm": 0,
383
+ "nm": "Stroke 1",
384
+ "mn": "ADBE Vector Graphic - Stroke",
385
+ "hd": false
386
+ },
387
+ {
388
+ "ty": "fl",
389
+ "c": { "a": 0, "k": [0, 0, 0, 1], "ix": 4 },
390
+ "o": { "a": 0, "k": 0, "ix": 5 },
391
+ "r": 1,
392
+ "bm": 0,
393
+ "nm": "Fill 1",
394
+ "mn": "ADBE Vector Graphic - Fill",
395
+ "hd": false
396
+ },
397
+ {
398
+ "ty": "tr",
399
+ "p": { "a": 0, "k": [-3.035, -0.203], "ix": 2 },
400
+ "a": { "a": 0, "k": [0, 0], "ix": 1 },
401
+ "s": { "a": 0, "k": [100, 100], "ix": 3 },
402
+ "r": { "a": 0, "k": 0, "ix": 6 },
403
+ "o": { "a": 0, "k": 100, "ix": 7 },
404
+ "sk": { "a": 0, "k": 0, "ix": 4 },
405
+ "sa": { "a": 0, "k": 0, "ix": 5 },
406
+ "nm": "Transform"
407
+ }
408
+ ],
409
+ "nm": "Ellipse 1",
410
+ "np": 3,
411
+ "cix": 2,
412
+ "bm": 0,
413
+ "ix": 1,
414
+ "mn": "ADBE Vector Group",
415
+ "hd": false
416
+ }
417
+ ],
418
+ "ip": 0,
419
+ "op": 76,
420
+ "st": 0,
421
+ "bm": 0
422
+ }
423
+ ],
424
+ "markers": []
425
+ }
@@ -0,0 +1,3 @@
1
+ import LottieFile from './Lottie';
2
+ export default LottieFile;
3
+ export { LottieAnimationFiles } from './Lottie';
@@ -0,0 +1,3 @@
1
+ import LottieFile from './Lottie';
2
+ export default LottieFile;
3
+ export { LottieAnimationFiles } from './Lottie';
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import * as React from 'react';
25
25
  import { styled } from '@mui/material/styles';
26
- import Text from '../Text';
26
+ import Text from '@components/Text';
27
27
  import Box from '@mui/material/Box';
28
28
  var OTPTimerStyled = styled(Box)(function (_a) {
29
29
  var theme = _a.theme;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { CircularProgressProps } from '@mui/material/CircularProgress';
3
+ export interface CircularProps extends CircularProgressProps {
4
+ size: number;
5
+ value: number;
6
+ }
7
+ declare function CircularProgressWithLabel({ size, value, ...props }: CircularProps): JSX.Element;
8
+ declare namespace CircularProgressWithLabel {
9
+ var defaultProps: {
10
+ size: number;
11
+ value: number;
12
+ };
13
+ }
14
+ export default CircularProgressWithLabel;
@@ -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
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import CircularProgress from '@mui/material/CircularProgress';
25
+ import Typography from '@mui/material/Typography';
26
+ import Box from '@mui/material/Box';
27
+ import { styled } from '@mui/material/styles';
28
+ var BoxStyled = styled(Box)(function (_a) {
29
+ var theme = _a.theme;
30
+ return ({
31
+ display: 'flex',
32
+ alignItems: 'center',
33
+ justifyContent: 'center',
34
+ top: 0,
35
+ left: 0,
36
+ bottom: 0,
37
+ right: 0,
38
+ position: 'absolute'
39
+ });
40
+ });
41
+ export default function CircularProgressWithLabel(_a) {
42
+ var size = _a.size, value = _a.value, props = __rest(_a, ["size", "value"]);
43
+ return (_jsxs(Box, __assign({ sx: { position: 'relative', display: 'inline-flex' } }, { children: [_jsx(CircularProgress, __assign({ variant: 'determinate', size: size, value: value }, props)), _jsx(BoxStyled, { children: _jsx(Typography, __assign({ variant: 'caption', component: 'div', color: 'text.primary' }, { children: "".concat(Math.round(value), "%") })) })] })));
44
+ }
45
+ CircularProgressWithLabel.defaultProps = {
46
+ size: 54,
47
+ value: 0
48
+ };
@@ -1,4 +1,6 @@
1
1
  import ProgressBar from './ProgressBar';
2
2
  import { ProgressBarProps } from './ProgressBar';
3
+ import CircularProgress from './CircularProgressBar';
4
+ export { CircularProgress };
3
5
  export type { ProgressBarProps };
4
6
  export default ProgressBar;
@@ -1,2 +1,4 @@
1
1
  import ProgressBar from './ProgressBar';
2
+ import CircularProgress from './CircularProgressBar';
3
+ export { CircularProgress };
2
4
  export default ProgressBar;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ThemContext } from '../../@types';
2
+ import { ThemContext } from '@types';
3
3
  interface ThemeProviderProps {
4
4
  children: React.ReactNode;
5
5
  theme?: ThemContext;
@@ -27,7 +27,7 @@ import List from '@mui/material/List';
27
27
  import ListItem from '@mui/material/ListItem';
28
28
  import { styled } from '@mui/material/styles';
29
29
  import get from 'lodash-es/get';
30
- import { useEventListener } from '../../hooks';
30
+ import { useEventListener } from '@hooks';
31
31
  var ListStyled = styled(List)(function (_a) {
32
32
  var _b;
33
33
  var theme = _a.theme;
@@ -1,12 +1,13 @@
1
1
  import * as React from 'react';
2
- import { SocialMediaTypes } from '../../@types';
2
+ import { SocialMediaTypes } from '@types';
3
3
  import { ToggleButtonGroupProps } from '../ToggleButtonGroup';
4
4
  import { ToggleButtonProps } from '../ToggleButton';
5
5
  export interface SocialMediaGroupProps extends ToggleButtonGroupProps {
6
6
  toggleButtonProps?: ToggleButtonProps;
7
+ showSocialMediaTypes?: Array<SocialMediaTypes>;
7
8
  }
8
9
  declare const _default: React.MemoExoticComponent<{
9
- ({ children, defaultValue, onChange, toggleButtonProps, ...rest }: SocialMediaGroupProps): JSX.Element;
10
+ ({ children, defaultValue, onChange, toggleButtonProps, showSocialMediaTypes, ...rest }: SocialMediaGroupProps): JSX.Element;
10
11
  defaultProps: {
11
12
  defaultValue: SocialMediaTypes;
12
13
  };
@@ -23,62 +23,55 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import * as React from 'react';
25
25
  import { styled } from '@mui/material/styles';
26
- import { ICONS_NAMES } from '../../constants';
27
- import { SocialMediaTypes } from '../../@types';
26
+ import { ICONS_NAMES } from '@constants';
27
+ import { SocialMediaTypes } from '@types';
28
+ import Fade from '@mui/material/Fade';
28
29
  import ToggleButtonGroup from '../ToggleButtonGroup';
29
30
  import ToggleButton from '../ToggleButton';
30
31
  import Icon from '../Icon';
31
- var WebToggleButton = styled(ToggleButton, {
32
- shouldForwardProp: function (prop) { return prop !== 'isActive'; }
32
+ var SocialMediaButtonStyled = styled(ToggleButton, {
33
+ shouldForwardProp: function (prop) { return prop !== 'isActive' && prop !== 'isShow'; }
33
34
  })(function (_a) {
34
- var theme = _a.theme, isActive = _a.isActive;
35
+ var theme = _a.theme, isActive = _a.isActive, isShow = _a.isShow;
35
36
  return ({
36
- borderBottom: isActive ? "".concat(theme.spacing(0.25), " solid #3A4154") : 'none'
37
+ borderBottom: isActive ? "".concat(theme.spacing(0.1875), " solid #3478F6") : 'none',
38
+ display: isShow ? 'inherit' : 'none',
39
+ transition: 'display 0.3s'
37
40
  });
38
41
  });
39
- var TwitterToggleButton = styled(ToggleButton, {
40
- shouldForwardProp: function (prop) { return prop !== 'isActive'; }
41
- })(function (_a) {
42
- var theme = _a.theme, isActive = _a.isActive;
43
- return ({
44
- borderBottom: isActive ? "".concat(theme.spacing(0.25), " solid #1DA1F2") : 'none'
45
- });
46
- });
47
- var InstagramToggleButton = styled(ToggleButton, {
48
- shouldForwardProp: function (prop) { return prop !== 'isActive'; }
49
- })(function (_a) {
50
- var theme = _a.theme, isActive = _a.isActive;
51
- return ({
52
- borderBottom: isActive ? "".concat(theme.spacing(0.25), " solid #8A3AB9") : 'none'
53
- });
54
- });
55
- var WebTwitterIconStyled = styled(Icon)(function (_a) {
42
+ var ToggleIconStyled = styled(Icon)(function (_a) {
56
43
  var theme = _a.theme;
57
44
  return ({
58
- width: theme.spacing(5.5),
59
- height: theme.spacing(5.5)
60
- });
61
- });
62
- var InstagramIconStyled = styled(Icon, {
63
- shouldForwardProp: function (prop) { return prop !== 'isActive'; }
64
- })(function (_a) {
65
- var theme = _a.theme, isActive = _a.isActive;
66
- return ({
67
- width: isActive ? '100%' : theme.spacing(5.5),
68
- height: isActive ? '100%' : theme.spacing(5.5)
45
+ width: theme.spacing(2.5),
46
+ height: theme.spacing(2.5)
69
47
  });
70
48
  });
71
49
  var SocialMediaGroupComponent = function (_a) {
72
- var children = _a.children, defaultValue = _a.defaultValue, onChange = _a.onChange, toggleButtonProps = _a.toggleButtonProps, rest = __rest(_a, ["children", "defaultValue", "onChange", "toggleButtonProps"]);
50
+ var children = _a.children, defaultValue = _a.defaultValue, onChange = _a.onChange, toggleButtonProps = _a.toggleButtonProps, showSocialMediaTypes = _a.showSocialMediaTypes, rest = __rest(_a, ["children", "defaultValue", "onChange", "toggleButtonProps", "showSocialMediaTypes"]);
73
51
  var _b = React.useState(defaultValue), socialMediaType = _b[0], setSocialMediaType = _b[1];
74
52
  var isWebActive = socialMediaType === SocialMediaTypes.WEB;
75
53
  var isTwitterActive = socialMediaType === SocialMediaTypes.TWITTER;
76
54
  var isInstagramActive = socialMediaType === SocialMediaTypes.INSTAGRAM;
55
+ var isAppleStoreActive = socialMediaType === SocialMediaTypes.APPLE_STORE;
56
+ var isPlayStoreActive = socialMediaType === SocialMediaTypes.PLAY_STORE;
57
+ var isCallCenterActive = socialMediaType === SocialMediaTypes.CALL_CENTER;
58
+ var isPhysicalStoreActive = socialMediaType === SocialMediaTypes.PHYSICAL_STORE;
77
59
  var handleOnChange = function (event, value) {
78
60
  setSocialMediaType(value);
79
61
  onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
80
62
  };
81
- return (_jsxs(ToggleButtonGroup, __assign({ value: socialMediaType, exclusive: true }, rest, { onChange: handleOnChange }, { children: [children, " ||", _jsx(WebToggleButton, __assign({ isActive: isWebActive }, toggleButtonProps, { value: SocialMediaTypes.WEB }, { children: _jsx(WebTwitterIconStyled, { src: isWebActive ? ICONS_NAMES.WEB_ACTIVE_ICON : ICONS_NAMES.WEB_ICON }) })), _jsx(TwitterToggleButton, __assign({ isActive: isTwitterActive }, toggleButtonProps, { value: SocialMediaTypes.TWITTER }, { children: _jsx(WebTwitterIconStyled, { src: isTwitterActive ? ICONS_NAMES.TWITTER_ACTIVE_ICON : ICONS_NAMES.TWITTER_ICON }) })), _jsx(InstagramToggleButton, __assign({ isActive: isInstagramActive }, toggleButtonProps, { value: SocialMediaTypes.INSTAGRAM }, { children: _jsx(InstagramIconStyled, { isActive: isInstagramActive, src: isInstagramActive ? ICONS_NAMES.INSTAGRAM_ACTIVE_ICON : ICONS_NAMES.INSTAGRAM_ICON }) }))] })));
63
+ React.useEffect(function () {
64
+ if (defaultValue !== socialMediaType)
65
+ setSocialMediaType(defaultValue);
66
+ }, [defaultValue]);
67
+ var isShowWeb = !!(showSocialMediaTypes === null || showSocialMediaTypes === void 0 ? void 0 : showSocialMediaTypes.find(function (icon) { return icon === SocialMediaTypes.WEB; }));
68
+ var isShowTwitter = !!(showSocialMediaTypes === null || showSocialMediaTypes === void 0 ? void 0 : showSocialMediaTypes.find(function (icon) { return icon === SocialMediaTypes.TWITTER || icon === SocialMediaTypes.SOCIAL; }));
69
+ var isShowInstagram = !!(showSocialMediaTypes === null || showSocialMediaTypes === void 0 ? void 0 : showSocialMediaTypes.find(function (icon) { return icon === SocialMediaTypes.INSTAGRAM || icon === SocialMediaTypes.SOCIAL; }));
70
+ var isShowAppleStore = !!(showSocialMediaTypes === null || showSocialMediaTypes === void 0 ? void 0 : showSocialMediaTypes.find(function (icon) { return icon === SocialMediaTypes.APPLE_STORE || icon === SocialMediaTypes.APP; }));
71
+ var isShowPlayStore = !!(showSocialMediaTypes === null || showSocialMediaTypes === void 0 ? void 0 : showSocialMediaTypes.find(function (icon) { return icon === SocialMediaTypes.PLAY_STORE || icon === SocialMediaTypes.APP; }));
72
+ var isShowCallCenter = !!(showSocialMediaTypes === null || showSocialMediaTypes === void 0 ? void 0 : showSocialMediaTypes.find(function (icon) { return icon === SocialMediaTypes.CALL_CENTER; }));
73
+ var isShowPhysicalStore = !!(showSocialMediaTypes === null || showSocialMediaTypes === void 0 ? void 0 : showSocialMediaTypes.find(function (icon) { return icon === SocialMediaTypes.PHYSICAL_STORE; }));
74
+ return (_jsxs(ToggleButtonGroup, __assign({ value: socialMediaType, exclusive: true }, rest, { onChange: handleOnChange }, { children: [children, " ||", _jsx(SocialMediaButtonStyled, __assign({ isShow: isShowWeb, isActive: isWebActive }, toggleButtonProps, { value: SocialMediaTypes.WEB }, { children: _jsx(Fade, __assign({ in: isShowWeb }, { children: _jsx(ToggleIconStyled, { src: isWebActive ? ICONS_NAMES.WEB_ACTIVE_ICON : ICONS_NAMES.WEB_ICON }) })) })), _jsx(SocialMediaButtonStyled, __assign({ isShow: isShowAppleStore, isActive: isAppleStoreActive }, toggleButtonProps, { value: SocialMediaTypes.APPLE_STORE }, { children: _jsx(Fade, __assign({ in: isShowAppleStore }, { children: _jsx(ToggleIconStyled, { src: isAppleStoreActive ? ICONS_NAMES.APP_APPLE_ACTIVE_ICON : ICONS_NAMES.APP_APPLE_ICON }) })) })), _jsx(SocialMediaButtonStyled, __assign({ isShow: isShowPlayStore, isActive: isPlayStoreActive }, toggleButtonProps, { value: SocialMediaTypes.PLAY_STORE }, { children: _jsx(Fade, __assign({ in: isShowPlayStore }, { children: _jsx(ToggleIconStyled, { src: isPlayStoreActive ? ICONS_NAMES.APP_ANDROID_ACTIVE_ICON : ICONS_NAMES.APP_ANDROID_ICON }) })) })), _jsx(SocialMediaButtonStyled, __assign({ isShow: isShowPhysicalStore, isActive: isPhysicalStoreActive }, toggleButtonProps, { value: SocialMediaTypes.PHYSICAL_STORE }, { children: _jsx(Fade, __assign({ in: isShowPhysicalStore }, { children: _jsx(ToggleIconStyled, { src: isPhysicalStoreActive ? ICONS_NAMES.PHYSICAL_STORE_ACTIVE_ICON : ICONS_NAMES.PHYSICAL_STORE_ICON }) })) })), _jsx(SocialMediaButtonStyled, __assign({ isShow: isShowTwitter, isActive: isTwitterActive }, toggleButtonProps, { value: SocialMediaTypes.TWITTER }, { children: _jsx(Fade, __assign({ in: isShowTwitter }, { children: _jsx(ToggleIconStyled, { src: isTwitterActive ? ICONS_NAMES.TWITTER_ACTIVE_ICON : ICONS_NAMES.TWITTER_ICON }) })) })), _jsx(SocialMediaButtonStyled, __assign({ isShow: isShowInstagram, isActive: isInstagramActive }, toggleButtonProps, { value: SocialMediaTypes.INSTAGRAM }, { children: _jsx(Fade, __assign({ in: isShowInstagram }, { children: _jsx(ToggleIconStyled, { src: isInstagramActive ? ICONS_NAMES.INSTAGRAM_ACTIVE_ICON : ICONS_NAMES.INSTAGRAM_ICON }) })) })), _jsx(SocialMediaButtonStyled, __assign({ isShow: isShowCallCenter, isActive: isCallCenterActive }, toggleButtonProps, { value: SocialMediaTypes.CALL_CENTER }, { children: _jsx(Fade, __assign({ in: isShowCallCenter }, { children: _jsx(ToggleIconStyled, { src: isCallCenterActive ? ICONS_NAMES.CALL_CENTER_ACTIVE_ICON : ICONS_NAMES.CALL_CENTER_ICON }) })) }))] })));
82
75
  };
83
76
  export default React.memo(SocialMediaGroupComponent);
84
77
  SocialMediaGroupComponent.defaultProps = {