@tap-payments/auth-jsconnect 2.6.91-test → 2.6.93-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 (414) hide show
  1. package/build/@types/app.d.ts +19 -19
  2. package/build/@types/form.d.ts +24 -21
  3. package/build/@types/theme.d.ts +1 -1
  4. package/build/api/account.d.ts +2 -2
  5. package/build/api/auth.d.ts +13 -13
  6. package/build/api/availabilityServices.d.ts +3 -3
  7. package/build/api/axios.js +1 -1
  8. package/build/api/board.d.ts +3 -3
  9. package/build/api/brand.d.ts +1 -1
  10. package/build/api/country.d.ts +1 -1
  11. package/build/api/data.d.ts +11 -11
  12. package/build/api/document.d.ts +2 -2
  13. package/build/api/entity.d.ts +10 -10
  14. package/build/api/file.d.ts +1 -1
  15. package/build/api/individual.d.ts +5 -5
  16. package/build/api/init.d.ts +1 -1
  17. package/build/api/lead.d.ts +12 -12
  18. package/build/api/lead.js +1 -1
  19. package/build/api/operator.d.ts +2 -2
  20. package/build/api/operator.js +1 -1
  21. package/build/api/user.d.ts +2 -2
  22. package/build/app/settings.d.ts +21 -3
  23. package/build/app/settings.js +1 -1
  24. package/build/app/store.d.ts +4 -4
  25. package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
  26. package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
  27. package/build/components/AnimationFlow/Dialog.d.ts +1 -1
  28. package/build/components/AnimationFlow/Error.d.ts +1 -2
  29. package/build/components/AnimationFlow/Loader.d.ts +1 -2
  30. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  31. package/build/components/Button/Button.d.ts +1 -1
  32. package/build/components/CheckBox/CheckBox.d.ts +1 -1
  33. package/build/components/Collapse/Collapse.d.ts +1 -2
  34. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  35. package/build/components/ExpandIcon/ExpandIcon.d.ts +1 -2
  36. package/build/components/FileInput/DragAndDrop.d.ts +1 -2
  37. package/build/components/FileInput/UploadInput.d.ts +1 -2
  38. package/build/components/Footer/Footer.d.ts +1 -1
  39. package/build/components/Form/Form.d.ts +1 -1
  40. package/build/components/Input/Input.d.ts +1 -1
  41. package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
  42. package/build/components/List/List.d.ts +1 -1
  43. package/build/components/ListItem/ListItem.d.ts +1 -1
  44. package/build/components/Loader/Loader.d.ts +1 -1
  45. package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
  46. package/build/components/OTPField/OTPField.d.ts +1 -1
  47. package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
  48. package/build/components/ProgressBar/CircularProgressBar.d.ts +1 -2
  49. package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
  50. package/build/components/Providers/ReduxProvider.d.ts +1 -1
  51. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  52. package/build/components/Radio/Radio.d.ts +1 -1
  53. package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
  54. package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
  55. package/build/components/SimpleList/SimpleList.d.ts +1 -1
  56. package/build/components/Slide/Slide.d.ts +1 -1
  57. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  58. package/build/components/Text/Text.d.ts +1 -1
  59. package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
  60. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  61. package/build/components/Tooltip/Tooltip.d.ts +1 -1
  62. package/build/components/Warning/Warning.d.ts +1 -1
  63. package/build/constants/app.d.ts +1 -1
  64. package/build/constants/app.js +13 -1
  65. package/build/features/app/auth/authStore.d.ts +141 -15
  66. package/build/features/app/auth/authStore.js +1 -1
  67. package/build/features/app/bank/bankStore.d.ts +92 -11
  68. package/build/features/app/bank/bankStore.js +1 -1
  69. package/build/features/app/board/boardStore.d.ts +41 -5
  70. package/build/features/app/board/boardStore.js +1 -1
  71. package/build/features/app/brand/brandStore.d.ts +142 -16
  72. package/build/features/app/brand/brandStore.js +1 -1
  73. package/build/features/app/business/businessStore.d.ts +162 -18
  74. package/build/features/app/business/businessStore.js +1 -1
  75. package/build/features/app/connect/connectStore.d.ts +151 -16
  76. package/build/features/app/connect/connectStore.js +1 -1
  77. package/build/features/app/connectExpress/connectExpressStore.d.ts +277 -34
  78. package/build/features/app/connectExpress/connectExpressStore.js +44 -33
  79. package/build/features/app/entity/entityStore.d.ts +92 -11
  80. package/build/features/app/entity/entityStore.js +1 -1
  81. package/build/features/app/individual/individualStore.d.ts +185 -23
  82. package/build/features/app/individual/individualStore.js +1 -1
  83. package/build/features/app/password/passwordStore.d.ts +112 -13
  84. package/build/features/app/password/passwordStore.js +1 -1
  85. package/build/features/app/signIn/signInStore.d.ts +61 -7
  86. package/build/features/app/signIn/signInStore.js +1 -1
  87. package/build/features/app/tax/taxStore.d.ts +82 -10
  88. package/build/features/app/tax/taxStore.js +1 -1
  89. package/build/features/auth/Auth.d.ts +1 -2
  90. package/build/features/auth/Auth.js +1 -1
  91. package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +1 -1
  92. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  93. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +1 -1
  94. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +1 -1
  95. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  96. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -1
  97. package/build/features/auth/screens/CivilID/CivilID.d.ts +1 -1
  98. package/build/features/auth/screens/Mobile/Mobile.d.ts +1 -1
  99. package/build/features/auth/screens/NID/DOB.d.ts +1 -2
  100. package/build/features/auth/screens/NID/NID.d.ts +1 -1
  101. package/build/features/auth/screens/OTP/OTP.d.ts +1 -1
  102. package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
  103. package/build/features/auth/screens/PreparingData/PreparingData.d.ts +1 -1
  104. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  105. package/build/features/bank/Bank.d.ts +1 -2
  106. package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
  107. package/build/features/bank/screens/BankDetails/BankName.d.ts +2 -3
  108. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +2 -3
  109. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +1 -2
  110. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +2 -3
  111. package/build/features/bank/screens/BankDetails/IBAN.d.ts +1 -2
  112. package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
  113. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  114. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  115. package/build/features/bank/screens/Success/Success.d.ts +1 -1
  116. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  117. package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
  118. package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
  119. package/build/features/board/Board.d.ts +1 -2
  120. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  121. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  122. package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
  123. package/build/features/board/screens/Verify/Verify.d.ts +1 -1
  124. package/build/features/brand/Brand.d.ts +1 -2
  125. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +13 -29
  126. package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +1 -2
  127. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
  128. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +1 -2
  129. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +1 -2
  130. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +12 -20
  131. package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -3
  132. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +2 -3
  133. package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
  134. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -3
  135. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
  136. package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
  137. package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
  138. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +1 -2
  139. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +1 -2
  140. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +1 -2
  141. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +1 -2
  142. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +1 -2
  143. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  144. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  145. package/build/features/brand/screens/Success/Success.d.ts +1 -1
  146. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  147. package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
  148. package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
  149. package/build/features/business/Business.d.ts +1 -2
  150. package/build/features/business/screens/Activities/Activities.d.ts +1 -2
  151. package/build/features/business/screens/Activities/ActivitiesList.d.ts +9 -25
  152. package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
  153. package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -13
  154. package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
  155. package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
  156. package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
  157. package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
  158. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +5 -13
  159. package/build/features/business/screens/BusinessType/Article.d.ts +2 -3
  160. package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
  161. package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
  162. package/build/features/business/screens/BusinessType/EntityName.d.ts +1 -2
  163. package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
  164. package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
  165. package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
  166. package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -4
  167. package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
  168. package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
  169. package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
  170. package/build/features/business/screens/Customers/CustomerLocations.d.ts +17 -41
  171. package/build/features/business/screens/Customers/Customers.d.ts +1 -1
  172. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +1 -2
  173. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -2
  174. package/build/features/business/screens/Customers/RefundPolicy.d.ts +11 -19
  175. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +1 -2
  176. package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
  177. package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
  178. package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
  179. package/build/features/business/screens/OTP/OTP.d.ts +1 -1
  180. package/build/features/business/screens/OTP/OTPInput.d.ts +1 -1
  181. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  182. package/build/features/business/screens/Success/Success.d.ts +1 -1
  183. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  184. package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
  185. package/build/features/business/screens/Verify/Verify.d.ts +1 -1
  186. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  187. package/build/features/connect/Connect.d.ts +1 -2
  188. package/build/features/connect/Connect.js +1 -1
  189. package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
  190. package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +1 -2
  191. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  192. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
  193. package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
  194. package/build/features/connect/screens/Individual/Email.d.ts +1 -1
  195. package/build/features/connect/screens/Individual/Email.js +1 -1
  196. package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
  197. package/build/features/connect/screens/Individual/Name.d.ts +1 -1
  198. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  199. package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
  200. package/build/features/connect/screens/Merchant/BrandName.js +1 -1
  201. package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
  202. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
  203. package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
  204. package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
  205. package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
  206. package/build/features/connect/screens/NID/DOB.d.ts +1 -2
  207. package/build/features/connect/screens/NID/NID.d.ts +1 -1
  208. package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
  209. package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
  210. package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
  211. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
  212. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  213. package/build/features/connectExpress/ConnectExpress.d.ts +1 -2
  214. package/build/features/connectExpress/ConnectExpress.js +1 -1
  215. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
  216. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +5 -0
  217. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.js +36 -0
  218. package/build/features/connectExpress/screens/AccountCreatedLoader/index.d.ts +2 -0
  219. package/build/features/connectExpress/screens/AccountCreatedLoader/index.js +2 -0
  220. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +5 -0
  221. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.js +74 -0
  222. package/build/features/connectExpress/screens/{AuthenticationList → AuthMerchant}/MerchantList.d.ts +2 -1
  223. package/build/features/connectExpress/screens/AuthMerchant/MerchantList.js +64 -0
  224. package/build/features/connectExpress/screens/AuthMerchant/index.d.ts +2 -0
  225. package/build/features/connectExpress/screens/AuthMerchant/index.js +2 -0
  226. package/build/features/connectExpress/screens/AuthMerchant/validation.d.ts +8 -0
  227. package/build/features/connectExpress/screens/AuthMerchant/validation.js +4 -0
  228. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  229. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +11 -20
  230. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
  231. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
  232. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +1 -1
  233. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +1 -3
  234. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  235. package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +3 -13
  236. package/build/features/connectExpress/screens/AuthenticationList/validation.js +44 -19
  237. package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
  238. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  239. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -1
  240. package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
  241. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
  242. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
  243. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
  244. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
  245. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
  246. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
  247. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -4
  248. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +3 -3
  249. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
  250. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
  251. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
  252. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
  253. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
  254. package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +1 -1
  255. package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +1 -1
  256. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
  257. package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
  258. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
  259. package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
  260. package/build/features/connectExpress/screens/NID/DOB.d.ts +1 -2
  261. package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
  262. package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -3
  263. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -2
  264. package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
  265. package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
  266. package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
  267. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  268. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  269. package/build/features/entity/Entity.d.ts +1 -2
  270. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +9 -25
  271. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
  272. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
  273. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
  274. package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
  275. package/build/features/entity/screens/EntityName/Article.d.ts +2 -3
  276. package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
  277. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +13 -29
  278. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +5 -13
  279. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +5 -13
  280. package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
  281. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
  282. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
  283. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
  284. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  285. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  286. package/build/features/entity/screens/Success/Success.d.ts +1 -1
  287. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  288. package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
  289. package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
  290. package/build/features/featuresScreens.js +10 -0
  291. package/build/features/individual/Individual.d.ts +1 -2
  292. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
  293. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +2 -3
  294. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
  295. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  296. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
  297. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +3 -3
  298. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
  299. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
  300. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
  301. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  302. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
  303. package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
  304. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  305. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +9 -25
  306. package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
  307. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
  308. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
  309. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
  310. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +4 -4
  311. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
  312. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
  313. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
  314. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
  315. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  316. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  317. package/build/features/individual/screens/Success/Success.d.ts +1 -1
  318. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  319. package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
  320. package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
  321. package/build/features/password/Password.d.ts +1 -2
  322. package/build/features/password/screens/CreatePassword/ConditionText.d.ts +1 -2
  323. package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
  324. package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
  325. package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
  326. package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +1 -2
  327. package/build/features/password/screens/OTP/OTP.d.ts +1 -1
  328. package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
  329. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  330. package/build/features/password/screens/Success/Success.d.ts +1 -1
  331. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  332. package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
  333. package/build/features/password/screens/Verify/Verify.d.ts +1 -1
  334. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +1 -2
  335. package/build/features/shared/Address/Address.d.ts +1 -2
  336. package/build/features/shared/Address/CountryList.d.ts +13 -29
  337. package/build/features/shared/Address/InputSelect.d.ts +13 -29
  338. package/build/features/shared/Address/InputSelect.js +1 -1
  339. package/build/features/shared/Address/InputText.d.ts +1 -1
  340. package/build/features/shared/Background/Background.d.ts +1 -1
  341. package/build/features/shared/Background/LogoBackground.d.ts +1 -1
  342. package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +1 -2
  343. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +1 -2
  344. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  345. package/build/features/shared/Button/AbsherButton.d.ts +1 -2
  346. package/build/features/shared/Button/Button.d.ts +1 -2
  347. package/build/features/shared/Button/EmailProvidersButtons.d.ts +2 -3
  348. package/build/features/shared/Button/FlowsButtons.d.ts +2 -3
  349. package/build/features/shared/Button/FlowsButtons.js +1 -1
  350. package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
  351. package/build/features/shared/Button/MobileButton.d.ts +1 -2
  352. package/build/features/shared/Button/SuccessButton.d.ts +1 -2
  353. package/build/features/shared/Calender/Calender.d.ts +1 -2
  354. package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -3
  355. package/build/features/shared/Chip/Chip.d.ts +1 -2
  356. package/build/features/shared/ClearIcon/ClearIcon.d.ts +1 -2
  357. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  358. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  359. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
  360. package/build/features/shared/DataLoading/DataLoading.d.ts +3 -1
  361. package/build/features/shared/DataLoading/DataLoading.js +2 -2
  362. package/build/features/shared/Dialog/CloseDialog.d.ts +1 -2
  363. package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
  364. package/build/features/shared/Dot/Dot.d.ts +1 -2
  365. package/build/features/shared/EndAdornment/EndAdornment.d.ts +1 -2
  366. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
  367. package/build/features/shared/Footer/Footer.d.ts +1 -2
  368. package/build/features/shared/Footer/PoweredByFooter.d.ts +2 -3
  369. package/build/features/shared/GenericError/GenericError.d.ts +1 -1
  370. package/build/features/shared/Input/Input.d.ts +6 -14
  371. package/build/features/shared/InputSelect/InputSelect.d.ts +1 -2
  372. package/build/features/shared/Mandatory/Mandatory.d.ts +1 -2
  373. package/build/features/shared/OTP/OTP.d.ts +1 -1
  374. package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
  375. package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +1 -2
  376. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -2
  377. package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
  378. package/build/features/shared/Search/Search.d.ts +1 -2
  379. package/build/features/shared/SearchIcon/SearchIcon.d.ts +1 -2
  380. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
  381. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
  382. package/build/features/shared/UploadFile/FileUpload.d.ts +4 -4
  383. package/build/features/shared/UploadFile/FileUpload.js +1 -1
  384. package/build/features/shared/UploadFile/UploadFile.d.ts +3 -3
  385. package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -3
  386. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +4 -4
  387. package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
  388. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +3 -3
  389. package/build/features/signIn/SignIn.d.ts +1 -2
  390. package/build/features/signIn/screens/Email/Email.d.ts +1 -1
  391. package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
  392. package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
  393. package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
  394. package/build/features/signIn/screens/Password/Password.d.ts +1 -1
  395. package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
  396. package/build/features/tax/Tax.d.ts +1 -2
  397. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  398. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  399. package/build/features/tax/screens/Success/Success.d.ts +1 -1
  400. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  401. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +2 -3
  402. package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +1 -2
  403. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
  404. package/build/features/tax/screens/TaxDetails/VATId.d.ts +2 -3
  405. package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
  406. package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
  407. package/build/hooks/useDataVerified.d.ts +1 -1
  408. package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
  409. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
  410. package/build/hooks/useFormReadOnly.d.ts +2 -2
  411. package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
  412. package/build/utils/array.js +1 -1
  413. package/package.json +1 -1
  414. package/build/features/connectExpress/screens/AuthenticationList/MerchantList.js +0 -126
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.MemoExoticComponent<() => JSX.Element>;
2
+ declare const _default: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
3
  export default _default;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
- declare type ConfirmPolicyProps = {
1
+ type ConfirmPolicyProps = {
3
2
  readOnly?: boolean;
4
3
  };
5
- declare const ConfirmPolicy: ({ readOnly }: ConfirmPolicyProps) => JSX.Element;
4
+ declare const ConfirmPolicy: ({ readOnly }: ConfirmPolicyProps) => import("react/jsx-runtime").JSX.Element;
6
5
  export default ConfirmPolicy;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  export interface TaxDetailsProps {
3
2
  }
4
- declare const TaxDetails: () => JSX.Element;
3
+ declare const TaxDetails: () => import("react/jsx-runtime").JSX.Element;
5
4
  export default TaxDetails;
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { FileDetails } from '../../../../@types';
3
2
  interface TaxDocumentProps {
4
3
  show: boolean;
5
4
  readOnly?: boolean;
6
5
  defaultFiles?: Array<FileDetails>;
7
6
  }
8
- declare const TaxDocument: ({ show, readOnly, defaultFiles }: TaxDocumentProps) => JSX.Element;
7
+ declare const TaxDocument: ({ show, readOnly, defaultFiles }: TaxDocumentProps) => import("react/jsx-runtime").JSX.Element;
9
8
  export default TaxDocument;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
- declare type VATIdProps = {
1
+ type VATIdProps = {
3
2
  readOnly?: boolean;
4
3
  isVerified?: boolean;
5
4
  };
6
- declare const VATId: ({ readOnly, isVerified }: VATIdProps) => JSX.Element;
5
+ declare const VATId: ({ readOnly, isVerified }: VATIdProps) => import("react/jsx-runtime").JSX.Element;
7
6
  export default VATId;
@@ -3,5 +3,5 @@ export interface OTPProps {
3
3
  loading: boolean;
4
4
  setLoading: (flag: boolean) => void;
5
5
  }
6
- declare const _default: React.MemoExoticComponent<({ loading, setLoading }: OTPProps) => JSX.Element>;
6
+ declare const _default: React.MemoExoticComponent<({ loading, setLoading }: OTPProps) => import("react/jsx-runtime").JSX.Element>;
7
7
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  export interface OTPProps {
3
3
  }
4
- declare const _default: React.MemoExoticComponent<({}: OTPProps) => JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: OTPProps) => import("react/jsx-runtime").JSX.Element>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { FieldType } from '../@types';
2
- declare type DataVerified<T> = {
2
+ type DataVerified<T> = {
3
3
  [K in keyof T]?: boolean;
4
4
  };
5
5
  export declare const useDataVerified: <T = undefined>(dataVerification: Record<keyof T, FieldType>, verifiedKeys: (keyof T)[]) => DataVerified<T>;
@@ -1,8 +1,8 @@
1
1
  import { FieldValues, UseFormReturn } from 'react-hook-form';
2
- declare type ReadOnly<TF, V> = {
2
+ type ReadOnly<TF, V> = {
3
3
  [key in keyof TF]: V;
4
4
  };
5
- export declare const useExcludeReadOnlyFelids: <TF extends FieldValues = FieldValues>({ formState }: UseFormReturn<TF, any>, readOnly: ReadOnly<TF, boolean>) => {
5
+ export declare const useExcludeReadOnlyFelids: <TF extends FieldValues = FieldValues>({ formState }: UseFormReturn<TF, any, undefined>, readOnly: ReadOnly<TF, boolean>) => {
6
6
  getFelids: <T extends TF = TF>(data: T) => {
7
7
  originalFormData: T;
8
8
  formData: T;
@@ -1,6 +1,6 @@
1
1
  import { FieldValues, UseFormReturn } from 'react-hook-form';
2
- declare type ReadOnly<TF, V> = {
2
+ type ReadOnly<TF, V> = {
3
3
  [key in keyof TF]: V;
4
4
  };
5
- export declare const useFormErrorAndUpdateReadOnly: <TF extends FieldValues = FieldValues>(methods: UseFormReturn<TF, any>, readOnlyData: { [key in keyof TF]: boolean; }, noneEditable?: Record<any, boolean>) => ReadOnly<TF, boolean>;
5
+ export declare const useFormErrorAndUpdateReadOnly: <TF extends FieldValues = FieldValues>(methods: UseFormReturn<TF, any, undefined>, readOnlyData: { [key in keyof TF]: boolean; }, noneEditable?: Record<any, boolean>) => ReadOnly<TF, boolean>;
6
6
  export {};
@@ -1,6 +1,6 @@
1
1
  import { FieldValues, UseFormReturn } from 'react-hook-form';
2
- declare type ReadOnly<TF, V> = {
2
+ type ReadOnly<TF, V> = {
3
3
  [key in keyof TF]: V;
4
4
  };
5
- export declare const useFormReadOnly: <TF extends FieldValues = FieldValues>(methods: UseFormReturn<TF, any>, extraData?: { [key in keyof TF]?: any; }) => ReadOnly<TF, boolean>;
5
+ export declare const useFormReadOnly: <TF extends FieldValues = FieldValues>(methods: UseFormReturn<TF, any, undefined>, extraData?: { [key in keyof TF]?: any; }) => ReadOnly<TF, boolean>;
6
6
  export {};
@@ -1,2 +1,2 @@
1
1
  import { FieldValues, UseFormReturn } from 'react-hook-form';
2
- export declare const useSetFromDefaultValues: <TFieldValues extends FieldValues = FieldValues>(method: UseFormReturn<TFieldValues, any>, defaultValues: TFieldValues, shouldValidate?: boolean) => void;
2
+ export declare const useSetFromDefaultValues: <TFieldValues extends FieldValues = FieldValues>(method: UseFormReturn<TFieldValues, any, undefined>, defaultValues: TFieldValues, shouldValidate?: boolean) => void;
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
24
24
  function verb(n) { return function (v) { return step([n, v]); }; }
25
25
  function step(op) {
26
26
  if (f) throw new TypeError("Generator is already executing.");
27
- while (_) try {
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
28
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
29
  if (y = 0, t) op = [op[0] & 2, t.value];
30
30
  switch (op[0]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.6.91-test",
3
+ "version": "2.6.93-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",
@@ -1,126 +0,0 @@
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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
13
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
14
- if (ar || !(i in from)) {
15
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
16
- ar[i] = from[i];
17
- }
18
- }
19
- return to.concat(ar || Array.prototype.slice.call(from));
20
- };
21
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
22
- import * as React from 'react';
23
- import Box from '@mui/material/Box';
24
- import { useTranslation } from 'react-i18next';
25
- import { useController, useFormContext } from 'react-hook-form';
26
- import { styled } from '@mui/material/styles';
27
- import CircularProgress from '@mui/material/CircularProgress';
28
- import { useAppDispatch, useAppSelector } from '../../../../hooks';
29
- import Collapse from '../../../../components/Collapse';
30
- import Text from '../../../../components/Text';
31
- import SimpleList from '../../../../components/SimpleList';
32
- import ScreenContainer from '../../../shared/Containers/ScreenContainer';
33
- import InputSelect from '../../../shared/InputSelect';
34
- import { getMerchantListAsync, connectExpressSelector } from '../../../app/connectExpress/connectExpressStore';
35
- import { EndAdornmentExpanded } from '../../../shared/EndAdornment';
36
- import CheckIcon from '../../../shared/CheckIcon';
37
- import { ADD_ENTITY } from '../../../../constants';
38
- import { isNetworkError } from '../../../../utils';
39
- var MerchantContainer = styled(Box)(function () { return ({
40
- display: 'flex'
41
- }); });
42
- var MerchantNameText = styled(Text, { shouldForwardProp: function (prop) { return prop !== 'isSelected'; } })(function (_a) {
43
- var theme = _a.theme, isSelected = _a.isSelected;
44
- return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { fontWeight: isSelected ? theme.typography.fontWeightMedium : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25) }));
45
- });
46
- var MerchantList = React.forwardRef(function (_a, ref) {
47
- var _b, _c;
48
- var show = _a.show, onListOpen = _a.onListOpen, onListClose = _a.onListClose, readOnly = _a.readOnly, isVerified = _a.isVerified;
49
- var _d = React.useState([]), list = _d[0], setList = _d[1];
50
- var _e = React.useState(0), count = _e[0], setCount = _e[1];
51
- var _f = React.useState(null), anchorEl = _f[0], setAnchorEl = _f[1];
52
- var t = useTranslation().t;
53
- var dispatch = useAppDispatch();
54
- var _g = useFormContext(), control = _g.control, watch = _g.watch, setValue = _g.setValue, getValues = _g.getValues;
55
- var _h = useAppSelector(connectExpressSelector), data = _h.data, merchantLoading = _h.merchantLoading, bckError = _h.error;
56
- var merchantList = (((_b = data.responseData) === null || _b === void 0 ? void 0 : _b.authenticationData) || {}).merchantList;
57
- var merchantInfoControl = useController({ control: control, name: 'merchantInfo' });
58
- var entityInfo = watch('entityInfo');
59
- var brandInfo = getValues('brandInfo');
60
- var merchantValue = merchantInfoControl.field.value;
61
- var error = (_c = merchantInfoControl.fieldState.error) === null || _c === void 0 ? void 0 : _c.message;
62
- React.useEffect(function () {
63
- if ((merchantList === null || merchantList === void 0 ? void 0 : merchantList.length) > 0) {
64
- var list_1 = __spreadArray([], merchantList, true);
65
- setList(list_1);
66
- }
67
- }, [merchantList]);
68
- React.useEffect(function () {
69
- if (!bckError)
70
- return;
71
- if (!isNetworkError(bckError) || count > 2)
72
- return;
73
- if ((brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id) && (entityInfo === null || entityInfo === void 0 ? void 0 : entityInfo.id)) {
74
- setCount(count + 1);
75
- dispatch(getMerchantListAsync({ entityId: entityInfo.id, brandId: brandInfo.id }));
76
- }
77
- }, [bckError]);
78
- React.useEffect(function () {
79
- var _a;
80
- if (!entityInfo)
81
- return;
82
- if (merchantLoading)
83
- return;
84
- var brandInfoId = brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id;
85
- var entityId = (merchantList === null || merchantList === void 0 ? void 0 : merchantList.length) > 0 ? (_a = merchantList[0]) === null || _a === void 0 ? void 0 : _a.business_entity_id : '';
86
- var id = (entityInfo || {}).id;
87
- if (!id || id === ADD_ENTITY)
88
- return;
89
- if (entityId && id && entityId !== id) {
90
- setValue('merchantInfo', undefined);
91
- dispatch(getMerchantListAsync({ entityId: id, brandId: brandInfoId }));
92
- return;
93
- }
94
- if (entityId && id && entityId === id && (merchantList === null || merchantList === void 0 ? void 0 : merchantList.length)) {
95
- setValue('merchantInfo', merchantList[0], { shouldValidate: true });
96
- return;
97
- }
98
- if (!(merchantList === null || merchantList === void 0 ? void 0 : merchantList.length)) {
99
- dispatch(getMerchantListAsync({ entityId: id, brandId: brandInfoId }));
100
- }
101
- }, [entityInfo, merchantList]);
102
- var onOpenMerchantSelect = function (event) {
103
- if (readOnly)
104
- return;
105
- setAnchorEl(event.currentTarget);
106
- onListOpen === null || onListOpen === void 0 ? void 0 : onListOpen();
107
- };
108
- var onCloseMerchantSelect = function () {
109
- setAnchorEl(null);
110
- onListClose === null || onListClose === void 0 ? void 0 : onListClose();
111
- setList(merchantList);
112
- };
113
- var onSelectItem = function (merchant) {
114
- onCloseMerchantSelect();
115
- merchantInfoControl.field.onChange(merchant);
116
- };
117
- var getName = function (merchant) {
118
- if (!merchant)
119
- return '';
120
- return merchant.display_name;
121
- };
122
- return (_jsx(Collapse, __assign({ in: show && (merchantList === null || merchantList === void 0 ? void 0 : merchantList.length) > 1 }, { children: _jsxs(ScreenContainer, __assign({ ref: ref, sx: { mt: 2.5 } }, { children: [_jsx(InputSelect, { label: t('select_merchant_label'), readOnly: readOnly, placeholder: t('select_merchant_placeholder'), value: getName(getValues('merchantInfo')) || '', warningMessage: error && t(error), onClick: merchantLoading ? undefined : !!anchorEl ? function () { return onCloseMerchantSelect(); } : onOpenMerchantSelect, endAdornment: merchantLoading ? (_jsx(CircularProgress, { size: 25, thickness: 5, sx: { height: 'auto !important' } })) : (_jsx(EndAdornmentExpanded, { anchorEl: anchorEl, isVerified: isVerified })) }), _jsx(Collapse, __assign({ in: !!anchorEl }, { children: _jsx(SimpleList, { list: list || [], onSelectItem: onSelectItem, renderItem: function (item) {
123
- return (_jsxs(_Fragment, { children: [_jsx(MerchantContainer, { children: _jsx(MerchantNameText, __assign({ isSelected: item.id === (merchantValue === null || merchantValue === void 0 ? void 0 : merchantValue.id) }, { children: getName(item) })) }), item.id === (merchantValue === null || merchantValue === void 0 ? void 0 : merchantValue.id) && _jsx(CheckIcon, { isVerified: isVerified })] }));
124
- } }) }))] })) })));
125
- });
126
- export default React.memo(MerchantList);