@tap-payments/auth-jsconnect 2.10.1-development → 2.10.1-sandbox

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 (532) hide show
  1. package/README.md +2 -2
  2. package/build/@types/app.d.ts +17 -17
  3. package/build/@types/config.d.ts +1 -1
  4. package/build/@types/form.d.ts +26 -26
  5. package/build/@types/terminal.d.ts +1 -1
  6. package/build/@types/theme.d.ts +1 -1
  7. package/build/api/account.d.ts +2 -2
  8. package/build/api/auth.d.ts +17 -17
  9. package/build/api/availabilityServices.d.ts +3 -3
  10. package/build/api/axios.js +1 -1
  11. package/build/api/board.d.ts +3 -3
  12. package/build/api/brand.d.ts +1 -1
  13. package/build/api/country.d.ts +1 -1
  14. package/build/api/data.d.ts +8 -8
  15. package/build/api/document.d.ts +2 -2
  16. package/build/api/entity.d.ts +10 -10
  17. package/build/api/file.d.ts +1 -1
  18. package/build/api/firebase.js +1 -1
  19. package/build/api/index.d.ts +1 -2
  20. package/build/api/individual.d.ts +5 -5
  21. package/build/api/init.d.ts +1 -1
  22. package/build/api/lead.d.ts +13 -13
  23. package/build/api/lead.js +1 -1
  24. package/build/api/operator.d.ts +2 -2
  25. package/build/api/operator.js +1 -1
  26. package/build/api/terminal.d.ts +9 -4
  27. package/build/api/terminal.js +15 -30
  28. package/build/api/user.d.ts +3 -3
  29. package/build/app/settings.d.ts +3 -21
  30. package/build/app/settings.js +1 -1
  31. package/build/app/store.d.ts +4 -4
  32. package/build/assets/currencies/AEDSymbol.d.ts +7 -0
  33. package/build/assets/currencies/AEDSymbol.js +28 -0
  34. package/build/assets/currencies/SARSymbol.d.ts +2 -2
  35. package/build/assets/currencies/index.d.ts +2 -2
  36. package/build/assets/currencies/index.js +2 -2
  37. package/build/assets/currencies/utils.d.ts +1 -1
  38. package/build/assets/currencies/utils.js +3 -1
  39. package/build/assets/locales/ar.json +39 -6
  40. package/build/assets/locales/en.json +42 -36
  41. package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
  42. package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
  43. package/build/components/AnimationFlow/Dialog.d.ts +1 -1
  44. package/build/components/AnimationFlow/Error.d.ts +2 -1
  45. package/build/components/AnimationFlow/Loader.d.ts +2 -1
  46. package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
  47. package/build/components/Button/Button.d.ts +1 -1
  48. package/build/components/CheckBox/CheckBox.d.ts +1 -1
  49. package/build/components/Collapse/Collapse.d.ts +2 -1
  50. package/build/components/DatePicker/DatePicker.d.ts +1 -1
  51. package/build/components/DeviceCard/DeviceCard.d.ts +2 -2
  52. package/build/components/ExpandIcon/ExpandIcon.d.ts +2 -1
  53. package/build/components/FileInput/DragAndDrop.d.ts +2 -1
  54. package/build/components/FileInput/UploadInput.d.ts +2 -1
  55. package/build/components/Footer/Footer.d.ts +1 -1
  56. package/build/components/Form/Form.d.ts +1 -1
  57. package/build/components/Input/Input.d.ts +1 -1
  58. package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
  59. package/build/components/List/List.d.ts +1 -1
  60. package/build/components/ListItem/ListItem.d.ts +1 -1
  61. package/build/components/Loader/Loader.d.ts +1 -1
  62. package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
  63. package/build/components/OTPField/OTPField.d.ts +1 -1
  64. package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
  65. package/build/components/ProgressBar/CircularProgressBar.d.ts +2 -1
  66. package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
  67. package/build/components/Providers/ReduxProvider.d.ts +1 -1
  68. package/build/components/Providers/ThemeProvider.d.ts +1 -1
  69. package/build/components/Radio/Radio.d.ts +1 -1
  70. package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
  71. package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
  72. package/build/components/SimpleList/SimpleList.d.ts +1 -1
  73. package/build/components/Slide/Slide.d.ts +1 -1
  74. package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
  75. package/build/components/Text/Text.d.ts +1 -1
  76. package/build/components/TextWithCurrency/TextWithCurrency.d.ts +3 -2
  77. package/build/components/TextWithCurrency/TextWithCurrency.js +1 -1
  78. package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
  79. package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  80. package/build/components/Tooltip/Tooltip.d.ts +1 -1
  81. package/build/components/Tooltip/Tooltip.js +1 -1
  82. package/build/components/Warning/Warning.d.ts +1 -1
  83. package/build/constants/app.d.ts +3 -1
  84. package/build/constants/app.js +15 -7
  85. package/build/constants/assets.d.ts +4 -6
  86. package/build/constants/assets.js +118 -114
  87. package/build/constants/dummy.js +27 -20
  88. package/build/constants/flows.d.ts +2 -1
  89. package/build/constants/flows.js +3 -2
  90. package/build/features/app/auth/authStore.d.ts +22 -211
  91. package/build/features/app/auth/authStore.js +10 -12
  92. package/build/features/app/bank/bankStore.d.ts +12 -93
  93. package/build/features/app/bank/bankStore.js +1 -1
  94. package/build/features/app/board/boardStore.d.ts +5 -41
  95. package/build/features/app/board/boardStore.js +1 -1
  96. package/build/features/app/brand/brandStore.d.ts +17 -143
  97. package/build/features/app/brand/brandStore.js +1 -1
  98. package/build/features/app/business/businessStore.d.ts +21 -192
  99. package/build/features/app/business/businessStore.js +1 -1
  100. package/build/features/app/connect/connectStore.d.ts +19 -181
  101. package/build/features/app/connect/connectStore.js +1 -1
  102. package/build/features/app/connectExpress/connectExpressStore.d.ts +33 -312
  103. package/build/features/app/connectExpress/connectExpressStore.js +1 -1
  104. package/build/features/app/entity/entityStore.d.ts +12 -93
  105. package/build/features/app/entity/entityStore.js +1 -1
  106. package/build/features/app/individual/individualStore.d.ts +24 -186
  107. package/build/features/app/individual/individualStore.js +1 -1
  108. package/build/features/app/kyc/kycStore.d.ts +8 -62
  109. package/build/features/app/kyc/kycStore.js +1 -1
  110. package/build/features/app/password/passwordStore.d.ts +15 -123
  111. package/build/features/app/password/passwordStore.js +1 -1
  112. package/build/features/app/signIn/signInStore.d.ts +7 -61
  113. package/build/features/app/signIn/signInStore.js +1 -1
  114. package/build/features/app/tax/taxStore.d.ts +11 -83
  115. package/build/features/app/tax/taxStore.js +1 -1
  116. package/build/features/app/terminal/terminalStore.d.ts +20 -134
  117. package/build/features/app/terminal/terminalStore.js +72 -37
  118. package/build/features/auth/Auth.d.ts +2 -1
  119. package/build/features/auth/Auth.js +1 -1
  120. package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  121. package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +1 -1
  122. package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  123. package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +1 -1
  124. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  125. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +1 -1
  126. package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +2 -1
  127. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +27 -5
  128. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +1 -1
  129. package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  130. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  131. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -1
  132. package/build/features/auth/screens/CivilID/CivilID.d.ts +1 -1
  133. package/build/features/auth/screens/DOB/DOB.d.ts +2 -1
  134. package/build/features/auth/screens/DOB/DOBForm.d.ts +1 -1
  135. package/build/features/auth/screens/Email/Email.d.ts +1 -1
  136. package/build/features/auth/screens/EmailSent/EmailSent.d.ts +1 -1
  137. package/build/features/auth/screens/MigratingData/MigratingData.d.ts +1 -1
  138. package/build/features/auth/screens/Mobile/Mobile.d.ts +1 -1
  139. package/build/features/auth/screens/NID/NID.d.ts +1 -1
  140. package/build/features/auth/screens/OTP/OTP.d.ts +13 -5
  141. package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
  142. package/build/features/auth/screens/OperatorError/OperatorError.d.ts +1 -1
  143. package/build/features/auth/screens/Passcode/Passcode.d.ts +13 -5
  144. package/build/features/auth/screens/Passcode/PasscodeInput.d.ts +1 -1
  145. package/build/features/auth/screens/Password/Password.d.ts +1 -1
  146. package/build/features/auth/screens/Password/PasswordField.d.ts +1 -1
  147. package/build/features/auth/screens/PreparingData/PreparingData.d.ts +1 -1
  148. package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +1 -1
  149. package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  150. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  151. package/build/features/bank/Bank.d.ts +2 -1
  152. package/build/features/bank/screens/BankDetails/BankDetails.d.ts +2 -1
  153. package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -2
  154. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +3 -2
  155. package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +2 -1
  156. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +3 -2
  157. package/build/features/bank/screens/BankDetails/IBAN.d.ts +2 -1
  158. package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
  159. package/build/features/bank/screens/OperatorError/OperatorError.d.ts +1 -1
  160. package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  161. package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  162. package/build/features/bank/screens/Success/Success.d.ts +1 -1
  163. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  164. package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
  165. package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
  166. package/build/features/board/Board.d.ts +2 -1
  167. package/build/features/board/screens/OperatorError/OperatorError.d.ts +1 -1
  168. package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  169. package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  170. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  171. package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
  172. package/build/features/board/screens/Verify/Verify.d.ts +1 -1
  173. package/build/features/brand/Brand.d.ts +2 -1
  174. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +58 -15
  175. package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +2 -1
  176. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +37 -13
  177. package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +2 -1
  178. package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +2 -1
  179. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +31 -10
  180. package/build/features/brand/screens/BrandActivities/TAC.d.ts +8 -3
  181. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +3 -2
  182. package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +2 -1
  183. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +3 -2
  184. package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
  185. package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
  186. package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +2 -1
  187. package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +2 -1
  188. package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +2 -1
  189. package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +2 -1
  190. package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +2 -1
  191. package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +2 -1
  192. package/build/features/brand/screens/OperatorError/OperatorError.d.ts +1 -1
  193. package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  194. package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  195. package/build/features/brand/screens/Success/Success.d.ts +1 -1
  196. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  197. package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
  198. package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
  199. package/build/features/business/Business.d.ts +2 -1
  200. package/build/features/business/screens/Activities/Activities.d.ts +2 -1
  201. package/build/features/business/screens/Activities/ActivitiesList.d.ts +25 -9
  202. package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
  203. package/build/features/business/screens/Activities/OperationStartDate.d.ts +13 -5
  204. package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
  205. package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
  206. package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
  207. package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
  208. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +13 -5
  209. package/build/features/business/screens/BusinessType/Article.d.ts +3 -2
  210. package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
  211. package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
  212. package/build/features/business/screens/BusinessType/EntityName.d.ts +2 -1
  213. package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +2 -1
  214. package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
  215. package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
  216. package/build/features/business/screens/BusinessType/LicenseType.d.ts +28 -6
  217. package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
  218. package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
  219. package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
  220. package/build/features/business/screens/Customers/CustomerLocations.d.ts +70 -19
  221. package/build/features/business/screens/Customers/Customers.d.ts +1 -1
  222. package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +2 -1
  223. package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +2 -1
  224. package/build/features/business/screens/Customers/RefundPolicy.d.ts +31 -10
  225. package/build/features/business/screens/Customers/TransactionPolicy.d.ts +3 -2
  226. package/build/features/business/screens/DOB/DOB.d.ts +1 -1
  227. package/build/features/business/screens/DOB/DOBForm.d.ts +1 -1
  228. package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
  229. package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
  230. package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
  231. package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.d.ts +2 -1
  232. package/build/features/business/screens/MobileOwnership/MobileNumber.d.ts +1 -1
  233. package/build/features/business/screens/OperatorError/OperatorError.d.ts +1 -1
  234. package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  235. package/build/features/business/screens/Success/Success.d.ts +1 -1
  236. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  237. package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
  238. package/build/features/business/screens/Verify/Verify.d.ts +1 -1
  239. package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  240. package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  241. package/build/features/connect/Connect.d.ts +2 -1
  242. package/build/features/connect/Connect.js +1 -1
  243. package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
  244. package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +2 -1
  245. package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  246. package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
  247. package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
  248. package/build/features/connect/screens/DOB/DOB.d.ts +2 -1
  249. package/build/features/connect/screens/DOB/DOBForm.d.ts +1 -1
  250. package/build/features/connect/screens/Individual/Email.d.ts +1 -1
  251. package/build/features/connect/screens/Individual/Email.js +1 -1
  252. package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
  253. package/build/features/connect/screens/Individual/Name.d.ts +1 -1
  254. package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
  255. package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
  256. package/build/features/connect/screens/Merchant/BrandName.js +1 -1
  257. package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
  258. package/build/features/connect/screens/Merchant/SalesChannels.d.ts +2 -1
  259. package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
  260. package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
  261. package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
  262. package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +2 -1
  263. package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +1 -1
  264. package/build/features/connect/screens/NID/NID.d.ts +1 -1
  265. package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
  266. package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
  267. package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
  268. package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
  269. package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  270. package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  271. package/build/features/connectExpress/ConnectExpress.d.ts +2 -1
  272. package/build/features/connectExpress/ConnectExpress.js +1 -1
  273. package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
  274. package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
  275. package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
  276. package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
  277. package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
  278. package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +2 -1
  279. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +27 -5
  280. package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +1 -1
  281. package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
  282. package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
  283. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
  284. package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -1
  285. package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
  286. package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
  287. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
  288. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
  289. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
  290. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
  291. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
  292. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +28 -6
  293. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +8 -3
  294. package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
  295. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
  296. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
  297. package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
  298. package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
  299. package/build/features/connectExpress/screens/DOB/DOB.d.ts +2 -1
  300. package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +1 -1
  301. package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.d.ts +2 -1
  302. package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +1 -1
  303. package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
  304. package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
  305. package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
  306. package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
  307. package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +2 -1
  308. package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +1 -1
  309. package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
  310. package/build/features/connectExpress/screens/NID/TAC.d.ts +8 -3
  311. package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +2 -1
  312. package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
  313. package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
  314. package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
  315. package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +1 -1
  316. package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +1 -1
  317. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  318. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.d.ts +1 -1
  319. package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.d.ts +1 -1
  320. package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  321. package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
  322. package/build/features/entity/Entity.d.ts +2 -1
  323. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +25 -9
  324. package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
  325. package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
  326. package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
  327. package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +2 -1
  328. package/build/features/entity/screens/EntityName/Article.d.ts +3 -2
  329. package/build/features/entity/screens/EntityName/EntityName.d.ts +2 -1
  330. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +58 -15
  331. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +13 -5
  332. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +13 -5
  333. package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
  334. package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +2 -1
  335. package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
  336. package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
  337. package/build/features/entity/screens/OperatorError/OperatorError.d.ts +1 -1
  338. package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  339. package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  340. package/build/features/entity/screens/Success/Success.d.ts +1 -1
  341. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  342. package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
  343. package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
  344. package/build/features/featuresScreens.js +6 -1
  345. package/build/features/individual/Individual.d.ts +2 -1
  346. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +13 -5
  347. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +3 -2
  348. package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
  349. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +27 -5
  350. package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
  351. package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +2 -1
  352. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +27 -5
  353. package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
  354. package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
  355. package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +2 -1
  356. package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
  357. package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
  358. package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
  359. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  360. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +25 -9
  361. package/build/features/individual/screens/IndividualList/UserList.d.ts +2 -1
  362. package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
  363. package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
  364. package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
  365. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +28 -6
  366. package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
  367. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +13 -5
  368. package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
  369. package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
  370. package/build/features/individual/screens/OperatorError/OperatorError.d.ts +1 -1
  371. package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  372. package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  373. package/build/features/individual/screens/Success/Success.d.ts +1 -1
  374. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  375. package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
  376. package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
  377. package/build/features/kyc/KYC.d.ts +2 -1
  378. package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.d.ts +1 -1
  379. package/build/features/kyc/screens/Loading/Loading.d.ts +2 -2
  380. package/build/features/kyc/screens/OperatorError/OperatorError.d.ts +1 -1
  381. package/build/features/kyc/screens/Success/Success.d.ts +1 -1
  382. package/build/features/kyc/screens/Terms/Header.d.ts +1 -1
  383. package/build/features/kyc/screens/Terms/Terms.d.ts +2 -2
  384. package/build/features/kyc/screens/TokenError/TokenError.d.ts +1 -1
  385. package/build/features/kyc/screens/Users/Users.d.ts +1 -1
  386. package/build/features/kyc/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
  387. package/build/features/kyc/screens/VerifyPaci/VerifyPACI.d.ts +1 -1
  388. package/build/features/password/Password.d.ts +2 -1
  389. package/build/features/password/Password.js +1 -1
  390. package/build/features/password/screens/CreatePassword/ConditionText.d.ts +2 -1
  391. package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
  392. package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
  393. package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
  394. package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +2 -1
  395. package/build/features/password/screens/OTP/OTP.d.ts +1 -1
  396. package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
  397. package/build/features/password/screens/OperatorError/OperatorError.d.ts +1 -1
  398. package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  399. package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  400. package/build/features/password/screens/Success/Success.d.ts +1 -1
  401. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  402. package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
  403. package/build/features/password/screens/Verify/Verify.d.ts +1 -1
  404. package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +2 -1
  405. package/build/features/shared/Address/Address.d.ts +2 -1
  406. package/build/features/shared/Address/CountryList.d.ts +46 -14
  407. package/build/features/shared/Address/InputSelect.d.ts +46 -14
  408. package/build/features/shared/Address/InputSelect.js +1 -1
  409. package/build/features/shared/Address/InputText.d.ts +1 -1
  410. package/build/features/shared/Background/Background.d.ts +1 -1
  411. package/build/features/shared/Background/LogoBackground.d.ts +1 -1
  412. package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +2 -1
  413. package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +2 -1
  414. package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
  415. package/build/features/shared/Button/Button.d.ts +2 -1
  416. package/build/features/shared/Button/EmailProvidersButtons.d.ts +3 -2
  417. package/build/features/shared/Button/FlowsButtons.d.ts +3 -2
  418. package/build/features/shared/Button/FlowsButtons.js +2 -2
  419. package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
  420. package/build/features/shared/Button/MobileButton.d.ts +2 -1
  421. package/build/features/shared/Button/NafathButton.d.ts +2 -1
  422. package/build/features/shared/Button/SuccessButton.d.ts +2 -1
  423. package/build/features/shared/Calender/Calender.d.ts +2 -1
  424. package/build/features/shared/CheckIcon/CheckIcon.d.ts +3 -2
  425. package/build/features/shared/Chip/Chip.d.ts +2 -1
  426. package/build/features/shared/ClearIcon/ClearIcon.d.ts +2 -1
  427. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  428. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  429. package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
  430. package/build/features/shared/DataLoading/DataLoading.d.ts +1 -1
  431. package/build/features/shared/Dialog/CloseDialog.d.ts +2 -1
  432. package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
  433. package/build/features/shared/Dot/Dot.d.ts +2 -1
  434. package/build/features/shared/EndAdornment/EndAdornment.d.ts +2 -1
  435. package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +2 -1
  436. package/build/features/shared/Footer/Footer.d.ts +2 -1
  437. package/build/features/shared/Footer/PoweredByFooter.d.ts +3 -2
  438. package/build/features/shared/GenericError/GenericError.d.ts +1 -1
  439. package/build/features/shared/Input/Input.d.ts +14 -6
  440. package/build/features/shared/InputSelect/InputSelect.d.ts +2 -1
  441. package/build/features/shared/Mandatory/Mandatory.d.ts +2 -1
  442. package/build/features/shared/NafathVerification/NafathVerification.d.ts +1 -1
  443. package/build/features/shared/OTP/OTP.d.ts +1 -1
  444. package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
  445. package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +2 -1
  446. package/build/features/shared/PushNotification/PushNotification.d.ts +1 -1
  447. package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +2 -1
  448. package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
  449. package/build/features/shared/Search/Search.d.ts +2 -1
  450. package/build/features/shared/SearchIcon/SearchIcon.d.ts +2 -1
  451. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
  452. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
  453. package/build/features/shared/UploadFile/FileUpload.d.ts +9 -4
  454. package/build/features/shared/UploadFile/FileUpload.js +1 -1
  455. package/build/features/shared/UploadFile/UploadFile.d.ts +8 -3
  456. package/build/features/shared/UploadFile/UploadWrapper.d.ts +8 -3
  457. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +9 -4
  458. package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
  459. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +8 -3
  460. package/build/features/signIn/SignIn.d.ts +2 -1
  461. package/build/features/signIn/screens/Email/Email.d.ts +1 -1
  462. package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
  463. package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
  464. package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
  465. package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +1 -1
  466. package/build/features/signIn/screens/Password/Password.d.ts +1 -1
  467. package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
  468. package/build/features/tax/Tax.d.ts +2 -1
  469. package/build/features/tax/screens/OperatorError/OperatorError.d.ts +1 -1
  470. package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
  471. package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  472. package/build/features/tax/screens/Success/Success.d.ts +1 -1
  473. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  474. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +3 -2
  475. package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +2 -1
  476. package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +2 -1
  477. package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -2
  478. package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
  479. package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
  480. package/build/features/terminal/Terminal.d.ts +2 -1
  481. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +1 -1
  482. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +5 -4
  483. package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +7 -2
  484. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +1 -1
  485. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +2 -1
  486. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +1 -1
  487. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +1 -1
  488. package/build/features/terminal/screens/Loading/Loading.d.ts +2 -2
  489. package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.d.ts +1 -1
  490. package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.d.ts +31 -6
  491. package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +1 -1
  492. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
  493. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
  494. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +1 -1
  495. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +1 -1
  496. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +39 -24
  497. package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +7 -14
  498. package/build/features/terminal/screens/TerminalDeviceList/styles.js +1 -44
  499. package/build/features/terminal/screens/TerminalListPage/TerminalListPage.d.ts +3 -0
  500. package/build/features/terminal/screens/TerminalListPage/TerminalListPage.js +42 -0
  501. package/build/features/terminal/screens/TerminalListPage/index.d.ts +2 -0
  502. package/build/features/terminal/screens/TerminalListPage/index.js +2 -0
  503. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +1 -1
  504. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +2 -1
  505. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +1 -1
  506. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +2 -2
  507. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +19 -22
  508. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +3 -71
  509. package/build/features/terminal/screens/Verify/OTPInput.d.ts +1 -1
  510. package/build/features/terminal/screens/Verify/Verify.d.ts +1 -1
  511. package/build/features/terminal/screens/shared/Header.d.ts +10 -0
  512. package/build/features/terminal/screens/shared/Header.js +30 -0
  513. package/build/features/terminal/screens/{UnlinkedTerminalInfo → shared}/TerminalList.d.ts +3 -1
  514. package/build/features/terminal/screens/shared/TerminalList.js +25 -0
  515. package/build/features/terminal/screens/shared/index.d.ts +3 -0
  516. package/build/features/terminal/screens/shared/index.js +3 -0
  517. package/build/features/terminal/screens/shared/styles.d.ts +188 -14
  518. package/build/features/terminal/screens/shared/styles.js +105 -0
  519. package/build/hooks/useDataVerified.d.ts +1 -1
  520. package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
  521. package/build/hooks/useFormDirtyCheck.d.ts +3 -3
  522. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
  523. package/build/hooks/useFormReadOnly.d.ts +2 -2
  524. package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
  525. package/build/utils/array.js +1 -1
  526. package/build/utils/common.js +3 -3
  527. package/build/utils/string.d.ts +1 -0
  528. package/build/utils/string.js +7 -1
  529. package/package.json +2 -2
  530. package/build/features/terminal/screens/TerminalDeviceList/Header.d.ts +0 -6
  531. package/build/features/terminal/screens/TerminalDeviceList/Header.js +0 -23
  532. package/build/features/terminal/screens/UnlinkedTerminalInfo/TerminalList.js +0 -16
@@ -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 (g && (g = 0, op[0] && (_ = 0)), _) try {
27
+ while (_) 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]) {
@@ -54,40 +54,39 @@ import { handleNextScreenStep, handlePrevScreenStep } from '../../../../app/sett
54
54
  import { useAppDispatch, useAppSelector } from '../../../../hooks';
55
55
  import Button from '../../../../components/Button';
56
56
  import Loader from '../../../../components/Loader';
57
- import { linkNewTerminal, retrieveBoardDetails, retrieveBoardStatus, retrieveTerminalList, storeSelectedTerminalDevice, terminalSelector } from '../../../app/terminal/terminalStore';
58
- import Header from './Header';
57
+ import { retrieveBoardDetails, retrieveBoardStatus, retrieveTerminalList, storeSelectedTerminalDevice, terminalSelector } from '../../../app/terminal/terminalStore';
58
+ import { Header, Container, TextTypography } from '../shared';
59
59
  import DeviceList from './DeviceList';
60
- import { Container, TextTypography } from '../shared';
61
60
  var TerminalDeviceList = function () {
62
61
  var t = useTranslation().t;
63
62
  var dispatch = useAppDispatch();
64
63
  var _a = useAppSelector(terminalSelector), data = _a.data, loading = _a.loading, terminalListLoading = _a.terminalListLoading;
65
- var _b = data.responseData || {}, boardFlows = _b.boardFlows, authData = _b.authData, boardData = _b.boardData, terminalData = _b.terminalData, terminalList = _b.terminalList;
64
+ var _b = React.useState(false), newLinkClicked = _b[0], setNewLinkClicked = _b[1];
65
+ var _c = data.responseData || {}, boardFlows = _c.boardFlows, authData = _c.authData, boardData = _c.boardData, terminalData = _c.terminalData, terminalList = _c.terminalList;
66
66
  var terminal_devices = (terminalData || {}).terminal_devices;
67
- var _c = React.useMemo(function () {
67
+ var _d = React.useMemo(function () {
68
68
  var linked = terminal_devices === null || terminal_devices === void 0 ? void 0 : terminal_devices.filter(function (d) { return d.linked; });
69
69
  var unLinked = terminal_devices === null || terminal_devices === void 0 ? void 0 : terminal_devices.filter(function (d) { return !d.linked; });
70
70
  return { linkedDevices: linked, unLinkedDevices: unLinked };
71
- }, [terminal_devices]), linkedDevices = _c.linkedDevices, unLinkedDevices = _c.unLinkedDevices;
72
- var handleOnClickNewTerminalLink = function () {
73
- dispatch(linkNewTerminal())
74
- .unwrap()
75
- .then(function (_a) {
76
- var nextScreen = _a.nextScreen;
77
- dispatch(handleNextScreenStep(nextScreen));
78
- })
79
- .catch(function () { });
80
- };
81
- var handleOnClickLinkedTerminal = function (terminal) {
82
- dispatch(storeSelectedTerminalDevice(terminal));
83
- dispatch(handleNextScreenStep(CONNECT_FLOWS.terminal.linkedTerminalInfo));
84
- };
85
- var handleOnClickUnlinkedTerminal = function (terminal) { return __awaiter(void 0, void 0, void 0, function () {
71
+ }, [terminal_devices]), linkedDevices = _d.linkedDevices, unLinkedDevices = _d.unLinkedDevices;
72
+ var handleOnClickNewTerminalLink = function () { return __awaiter(void 0, void 0, void 0, function () {
73
+ return __generator(this, function (_a) {
74
+ switch (_a.label) {
75
+ case 0:
76
+ setNewLinkClicked(true);
77
+ return [4, retrieveTerminalListAsync()];
78
+ case 1:
79
+ _a.sent();
80
+ dispatch(handleNextScreenStep(CONNECT_FLOWS.terminal.terminalList));
81
+ return [2];
82
+ }
83
+ });
84
+ }); };
85
+ var retrieveTerminalListAsync = function () { return __awaiter(void 0, void 0, void 0, function () {
86
86
  var err_1;
87
87
  return __generator(this, function (_a) {
88
88
  switch (_a.label) {
89
89
  case 0:
90
- dispatch(storeSelectedTerminalDevice(terminal));
91
90
  if (!!(terminalList === null || terminalList === void 0 ? void 0 : terminalList.length)) return [3, 4];
92
91
  _a.label = 1;
93
92
  case 1:
@@ -100,7 +99,23 @@ var TerminalDeviceList = function () {
100
99
  err_1 = _a.sent();
101
100
  console.log('Error while retrieving terminal list error', err_1);
102
101
  return [3, 4];
103
- case 4:
102
+ case 4: return [2];
103
+ }
104
+ });
105
+ }); };
106
+ var handleOnClickLinkedTerminal = function (terminal) {
107
+ dispatch(storeSelectedTerminalDevice(terminal));
108
+ dispatch(handleNextScreenStep(CONNECT_FLOWS.terminal.linkedTerminalInfo));
109
+ };
110
+ var handleOnClickUnlinkedTerminal = function (terminal) { return __awaiter(void 0, void 0, void 0, function () {
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ setNewLinkClicked(false);
115
+ dispatch(storeSelectedTerminalDevice(terminal));
116
+ return [4, retrieveTerminalListAsync()];
117
+ case 1:
118
+ _a.sent();
104
119
  dispatch(handleNextScreenStep(CONNECT_FLOWS.terminal.unlinkedTerminalInfo));
105
120
  return [2];
106
121
  }
@@ -124,6 +139,6 @@ var TerminalDeviceList = function () {
124
139
  })
125
140
  .catch(function () { });
126
141
  };
127
- return (_jsxs(ScreenContainer, __assign({ minHeight: 200, sx: { pl: 2.5, pr: 2.5 }, justifyContent: 'space-between' }, { children: [_jsxs(Container, { children: [_jsx(Header, { onLinkClick: handleOnClickNewTerminalLink }), _jsx(DeviceList, { devices: linkedDevices, onClick: handleOnClickLinkedTerminal }), !!(unLinkedDevices === null || unLinkedDevices === void 0 ? void 0 : unLinkedDevices.length) && _jsx(TextTypography, __assign({ sx: { pt: 1, pb: 1 } }, { children: t('terminal_unlinked') })), _jsx(DeviceList, { loading: terminalListLoading, devices: unLinkedDevices, onClick: handleOnClickUnlinkedTerminal })] }), _jsx(Button, __assign({ sx: { mb: 1.5, mt: 1.5 }, onClick: function () { return handleOnBack(); }, variant: 'text' }, { children: loading ? _jsx(Loader, { innerColor: 'black', outerColor: 'black', size: 15, toggleAnimation: !!loading }) : t('back') }))] })));
142
+ return (_jsxs(ScreenContainer, __assign({ minHeight: 200, sx: { pl: 2.5, pr: 2.5 }, justifyContent: 'space-between' }, { children: [_jsxs(Container, { children: [_jsx(Header, { onLinkClick: handleOnClickNewTerminalLink, loading: terminalListLoading && newLinkClicked }), _jsx(DeviceList, { devices: linkedDevices, onClick: handleOnClickLinkedTerminal }), !!(unLinkedDevices === null || unLinkedDevices === void 0 ? void 0 : unLinkedDevices.length) && !!(linkedDevices === null || linkedDevices === void 0 ? void 0 : linkedDevices.length) && _jsx(TextTypography, __assign({ sx: { pt: 1, pb: 1 } }, { children: t('terminal_unlinked') })), _jsx(DeviceList, { loading: terminalListLoading && !newLinkClicked, devices: unLinkedDevices, onClick: handleOnClickUnlinkedTerminal })] }), _jsx(Button, __assign({ sx: { mb: 1.5, mt: 1.5 }, onClick: function () { return handleOnBack(); }, variant: 'text' }, { children: loading ? _jsx(Loader, { innerColor: 'black', outerColor: 'black', size: 15, toggleAnimation: !!loading }) : t('back') }))] })));
128
143
  };
129
144
  export default React.memo(TerminalDeviceList);
@@ -1,16 +1,9 @@
1
1
  /// <reference types="react" />
2
- export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ export declare const DeviceListContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
3
+ children?: import("react").ReactNode;
4
+ component?: import("react").ElementType<any> | undefined;
5
+ ref?: import("react").Ref<unknown> | undefined;
6
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
7
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
3
8
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
5
- export declare const LinkButton: import("@emotion/styled").StyledComponent<import("@mui/material/Button").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
6
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
7
- }, "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "size" | "action" | "disabled" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
8
- export declare const AddIconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
9
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
11
- export declare const LinkText: import("@emotion/styled").StyledComponent<import("@mui/material/Typography").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
12
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
13
- }, "left" | "right" | "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
14
- export declare const DeviceListContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
15
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
16
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
9
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -1,48 +1,5 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import Button from '@mui/material/Button';
13
1
  import Box from '@mui/material/Box';
14
- import { alpha, styled } from '@mui/material/styles';
15
- import Typography from '@mui/material/Typography';
16
- export var Container = styled(Box)(function (_a) {
17
- var spacing = _a.theme.spacing;
18
- return ({
19
- display: 'flex',
20
- justifyContent: 'space-between',
21
- alignItems: 'center',
22
- width: '100%',
23
- paddingBottom: spacing(2)
24
- });
25
- });
26
- export var LinkButton = styled(Button)(function (_a) {
27
- var _b = _a.theme, spacing = _b.spacing, palette = _b.palette, typography = _b.typography;
28
- return (__assign(__assign({}, typography.button_small), { fontWeight: typography.fontWeightRegular, textTransform: 'none', color: palette.primary.main, display: 'flex', alignItems: 'center', gap: spacing(0.5) }));
29
- });
30
- export var AddIconContainer = styled(Box)(function (_a) {
31
- var _b = _a.theme, spacing = _b.spacing, palette = _b.palette;
32
- return ({
33
- background: alpha(palette.primary.main, 0.1),
34
- height: spacing(2.25),
35
- width: spacing(2.25),
36
- display: 'flex',
37
- justifyContent: 'center',
38
- borderRadius: spacing(11.25),
39
- alignItems: 'center'
40
- });
41
- });
42
- export var LinkText = styled(Typography)(function (_a) {
43
- var typography = _a.theme.typography;
44
- return (__assign({}, typography.button_small));
45
- });
2
+ import { styled } from '@mui/material/styles';
46
3
  export var DeviceListContainer = styled(Box)(function (_a) {
47
4
  var spacing = _a.theme.spacing;
48
5
  return ({
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,42 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { useTranslation } from 'react-i18next';
15
+ import { ScreenContainer } from '../../../shared/Containers';
16
+ import { handleNextScreenStep, handlePrevScreenStep } from '../../../../app/settings';
17
+ import { useAppDispatch, useAppSelector } from '../../../../hooks';
18
+ import Button from '../../../../components/Button';
19
+ import Warning from '../../../../components/Warning';
20
+ import { linkNewTerminal, storeSelectedTerminal, terminalSelector } from '../../../app/terminal/terminalStore';
21
+ import { Header, Container, TerminalList } from '../shared';
22
+ var TerminalListPage = function () {
23
+ var t = useTranslation().t;
24
+ var dispatch = useAppDispatch();
25
+ var _a = useAppSelector(terminalSelector), _b = _a.data, selectedTerminal = _b.terminalInfo.selectedTerminal, responseData = _b.responseData, loading = _a.loading, error = _a.error;
26
+ var terminalList = (responseData || {}).terminalList;
27
+ var handleOnSelectTerminal = function (terminal) {
28
+ dispatch(storeSelectedTerminal(terminal));
29
+ dispatch(linkNewTerminal())
30
+ .unwrap()
31
+ .then(function (_a) {
32
+ var nextScreen = _a.nextScreen;
33
+ dispatch(handleNextScreenStep(nextScreen));
34
+ })
35
+ .catch(function () { });
36
+ };
37
+ var handleOnBack = function () {
38
+ dispatch(handlePrevScreenStep());
39
+ };
40
+ return (_jsxs(ScreenContainer, __assign({ sx: { pl: 2.5, pr: 2.5 }, minHeight: 200, justifyContent: 'space-between' }, { children: [_jsxs(Container, { children: [_jsx(Header, { title: 'terminal_select_device', sx: { pb: 0 } }), _jsx(TerminalList, { select: false, loading: loading, selectedTerminal: selectedTerminal, list: terminalList, onClick: handleOnSelectTerminal })] }), error && _jsx(Warning, __assign({ sx: { mt: 2 } }, { children: t(error) })), _jsx(Button, __assign({ sx: { mb: 1.5, mt: 1.5 }, onClick: function () { return handleOnBack(); }, variant: 'text' }, { children: t('back') }))] })));
41
+ };
42
+ export default React.memo(TerminalListPage);
@@ -0,0 +1,2 @@
1
+ import TerminalListPage from './TerminalListPage';
2
+ export default TerminalListPage;
@@ -0,0 +1,2 @@
1
+ import TerminalListPage from './TerminalListPage';
2
+ export default TerminalListPage;
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
- declare const _default: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
2
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
3
3
  export default _default;
@@ -16,7 +16,7 @@ import Box from '@mui/material/Box';
16
16
  import { useAppDispatch, useAppSelector, useLanguage } from '../../../../hooks';
17
17
  import { CONNECT_FLOWS } from '../../../../constants';
18
18
  import { handleNextScreenStep, handlePrevScreenStep } from '../../../../app/settings';
19
- import { retrieveBoardDetails, retrieveBoardStatus, terminalSelector } from '../../../app/terminal/terminalStore';
19
+ import { retrieveBoardDetails, retrieveBoardStatus, retrieveTerminalDeviceList, terminalSelector } from '../../../app/terminal/terminalStore';
20
20
  import SuccessScreen from '../../../shared/SuccessScreen';
21
21
  import Button from '../../../shared/Button';
22
22
  import { SuccessContainerStyled } from '../shared';
@@ -32,6 +32,7 @@ var UnlinkedSuccess = function () {
32
32
  var handleGoToBoard = function () {
33
33
  var board_id = (boardData || {}).id;
34
34
  var _a = (authData === null || authData === void 0 ? void 0 : authData.recipient) || {}, id = _a.id, type = _a.type;
35
+ dispatch(retrieveTerminalDeviceList());
35
36
  dispatch(retrieveBoardStatus({ boardId: board_id }))
36
37
  .unwrap()
37
38
  .then(function () {
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
- declare const _default: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
2
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
3
3
  export default _default;
@@ -26,7 +26,7 @@ import PushNotification from '../../../shared/PushNotification';
26
26
  import Button from '../../../shared/Button';
27
27
  import { Container, getId, getIdLabel, LinkWithText } from '../shared';
28
28
  import { SendRequestContainer } from './styles';
29
- import TerminalList from './TerminalList';
29
+ import { TerminalList } from '../shared';
30
30
  var UnlinkedTerminalInfo = function () {
31
31
  var t = useTranslation().t;
32
32
  var typography = useTheme().typography;
@@ -78,7 +78,7 @@ var UnlinkedTerminalInfo = function () {
78
78
  var handleOnBack = function () {
79
79
  if (error)
80
80
  dispatch(clearError());
81
- dispatch(handlePrevScreenStep(CONNECT_FLOWS.terminal.terminalList));
81
+ dispatch(handlePrevScreenStep(CONNECT_FLOWS.terminal.terminalDeviceList));
82
82
  };
83
83
  var handleOnSelectTerminal = function (terminal) {
84
84
  if (error)
@@ -1,29 +1,26 @@
1
1
  /// <reference types="react" />
2
- export declare const ResendText: import("@emotion/styled").StyledComponent<import("@mui/material/Typography").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
2
+ export declare const ResendText: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
3
+ align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
4
+ children?: import("react").ReactNode;
5
+ classes?: Partial<import("@mui/material/Typography").TypographyClasses> | undefined;
6
+ gutterBottom?: boolean | undefined;
7
+ noWrap?: boolean | undefined;
8
+ paragraph?: boolean | undefined;
9
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
10
+ variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | undefined;
11
+ variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
12
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
3
13
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
4
- }, "left" | "right" | "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
14
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
5
15
  interface SendRequestContainerProps {
6
16
  hasError?: boolean;
7
17
  }
8
- export declare const SendRequestContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
18
+ export declare const SendRequestContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
19
+ children?: import("react").ReactNode;
20
+ component?: import("react").ElementType<any> | undefined;
21
+ ref?: import("react").Ref<unknown> | undefined;
22
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
23
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
9
24
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & SendRequestContainerProps, {}, {}>;
11
- export declare const ScrollContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
12
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
13
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
14
- export declare const TerminalListContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
15
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
16
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
17
- export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
18
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
19
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
20
- export declare const TitleContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
21
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
22
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
23
- export declare const Image: import("@emotion/styled").StyledComponent<import("../../../../components/Icon").IconProps & import("react").RefAttributes<HTMLImageElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
24
- export declare const Title: import("@emotion/styled").StyledComponent<import("@mui/material/Typography").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
25
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
26
- }, "left" | "right" | "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
27
- export declare const ListItem: import("@emotion/styled").StyledComponent<import("../../../../components/DeviceCard").DeviceCardProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
28
- export declare const StyledRadio: import("@emotion/styled").StyledComponent<import("@mui/material/Radio").RadioProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
25
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | ("left" | "right" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "bottom" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & SendRequestContainerProps, {}, {}>;
29
26
  export {};
@@ -12,19 +12,15 @@ var __assign = (this && this.__assign) || function () {
12
12
  import { alpha, styled } from '@mui/material/styles';
13
13
  import Typography from '@mui/material/Typography';
14
14
  import Box from '@mui/material/Box';
15
- import Icon from '../../../../components/Icon';
16
- import DeviceCard from '../../../../components/DeviceCard';
17
- import { QRCodeDescription } from '../shared';
18
- import Radio from '@mui/material/Radio';
19
15
  export var ResendText = styled(Typography)(function (_a) {
20
16
  var _b = _a.theme, palette = _b.palette, typography = _b.typography, spacing = _b.spacing;
21
17
  return (__assign(__assign({ cursor: 'pointer', color: palette.primary.main }, typography.caption), { fontWeight: typography.fontWeightRegular, textAlign: 'end', marginTop: spacing(0.75) }));
22
18
  });
23
- export var SendRequestContainer = styled(QRCodeDescription, {
19
+ export var SendRequestContainer = styled(Box, {
24
20
  shouldForwardProp: function (prop) { return !['hasError'].includes(prop.toString()); }
25
21
  })(function (_a) {
26
- var _b = _a.theme, typography = _b.typography, palette = _b.palette, hasError = _a.hasError;
27
- return (__assign(__assign(__assign({}, typography.button_small), { fontWeight: typography.fontWeightRegular, mt: 2 }), (hasError && {
22
+ var _b = _a.theme, typography = _b.typography, palette = _b.palette, spacing = _b.spacing, hasError = _a.hasError;
23
+ return (__assign(__assign(__assign(__assign({}, typography.button_small), { fontWeight: typography.fontWeightRegular, mt: 2, backgroundColor: palette.common.white, borderWidth: spacing(0.125, 0, 0.125, 0), borderStyle: 'solid', borderColor: palette.divider, padding: spacing(1.5, 2.5, 1.5, 2.5), marginTop: spacing(1), color: palette.text.primary }), typography.body1), (hasError && {
28
24
  background: alpha(palette.error.dark, 0.3),
29
25
  borderWidth: '1px, 0px, 1px, 0px',
30
26
  borderStyle: 'solid',
@@ -32,67 +28,3 @@ export var SendRequestContainer = styled(QRCodeDescription, {
32
28
  color: alpha(palette.error.main, 0.7)
33
29
  })));
34
30
  });
35
- export var ScrollContainer = styled(Box)(function (_a) {
36
- var spacing = _a.theme.spacing;
37
- return ({
38
- maxHeight: spacing(20.625),
39
- overflow: 'scroll'
40
- });
41
- });
42
- export var TerminalListContainer = styled(Box)(function (_a) {
43
- var spacing = _a.theme.spacing;
44
- return ({
45
- display: 'flex',
46
- justifyContent: 'space-between',
47
- flexDirection: 'column',
48
- alignItems: 'center',
49
- width: '100%',
50
- gap: spacing(0.75)
51
- });
52
- });
53
- export var Container = styled(Box)(function (_a) {
54
- var _b = _a.theme, spacing = _b.spacing, _c = _b.palette, common = _c.common, toastDeviceSelectorDropdown = _c.components.toastDeviceSelectorDropdown;
55
- return ({
56
- marginTop: spacing(1),
57
- border: "1px solid ".concat(toastDeviceSelectorDropdown.border),
58
- backgroundColor: common.white,
59
- borderRadius: spacing(1)
60
- });
61
- });
62
- export var TitleContainer = styled(Box)(function (_a) {
63
- var _b = _a.theme, spacing = _b.spacing, toastDeviceSelectorDropdown = _b.palette.components.toastDeviceSelectorDropdown;
64
- return ({
65
- padding: spacing(1.5, 2, 1.5, 2),
66
- display: 'flex',
67
- flexDirection: 'row',
68
- gap: spacing(0.75),
69
- alignItems: 'center',
70
- borderBottom: "1px solid ".concat(toastDeviceSelectorDropdown.border)
71
- });
72
- });
73
- export var Image = styled(Icon)(function (_a) {
74
- var spacing = _a.theme.spacing;
75
- return ({
76
- width: spacing(3),
77
- height: spacing(3)
78
- });
79
- });
80
- export var Title = styled(Typography)(function (_a) {
81
- var _b = _a.theme, typography = _b.typography, palette = _b.palette;
82
- return (__assign(__assign({}, typography.body2), { color: palette.components.deviceCard.title, fontWeight: typography.fontWeightBold }));
83
- });
84
- export var ListItem = styled(DeviceCard)(function (_a) {
85
- var spacing = _a.theme.spacing;
86
- return ({
87
- paddingTop: spacing(1),
88
- paddingBottom: spacing(1)
89
- });
90
- });
91
- export var StyledRadio = styled(Radio)(function (_a) {
92
- var theme = _a.theme;
93
- return ({
94
- '&.Mui-checked': {
95
- color: theme.palette.primary.main
96
- }
97
- });
98
- });
@@ -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 }: OTPProps) => import("react/jsx-runtime").JSX.Element>;
6
+ declare const _default: React.MemoExoticComponent<({ loading }: OTPProps) => 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) => import("react/jsx-runtime").JSX.Element>;
4
+ declare const _default: React.MemoExoticComponent<({}: OTPProps) => JSX.Element>;
5
5
  export default _default;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { SxProps, Theme } from '@mui/material';
3
+ interface HeaderProps {
4
+ onLinkClick?: () => void;
5
+ loading?: boolean;
6
+ title?: string;
7
+ sx?: SxProps<Theme>;
8
+ }
9
+ declare const _default: React.MemoExoticComponent<({ onLinkClick, loading, title, sx }: HeaderProps) => JSX.Element>;
10
+ export default _default;
@@ -0,0 +1,30 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { memo } from 'react';
14
+ import { useTranslation } from 'react-i18next';
15
+ import AddIcon from '@mui/icons-material/Add';
16
+ import Loader from '../../../../components/Loader';
17
+ import { AddIconContainer, HeadContainer, LinkButton, LinkText, TextTypography } from './styles';
18
+ var Header = function (_a) {
19
+ var onLinkClick = _a.onLinkClick, loading = _a.loading, title = _a.title, sx = _a.sx;
20
+ var t = useTranslation().t;
21
+ var getLink = function () {
22
+ if (!onLinkClick)
23
+ return;
24
+ if (loading)
25
+ return _jsx(Loader, { innerColor: 'black', outerColor: 'black', size: 14, style: { height: 28, width: 28, margin: 0 }, toggleAnimation: !!loading });
26
+ return (_jsxs(LinkButton, __assign({ onClick: onLinkClick }, { children: [_jsx(AddIconContainer, { children: _jsx(AddIcon, { fontSize: 'small' }) }), _jsx(LinkText, { children: t('terminal_link_terminal') })] })));
27
+ };
28
+ return (_jsxs(HeadContainer, __assign({ sx: sx }, { children: [_jsx(TextTypography, { children: t(title !== null && title !== void 0 ? title : 'terminal_manage_terminals') }), getLink()] })));
29
+ };
30
+ export default memo(Header);
@@ -3,7 +3,9 @@ import { TerminalInfo } from '../../../../@types';
3
3
  interface TerminalListProps {
4
4
  selectedTerminal: TerminalInfo;
5
5
  list: TerminalInfo[];
6
+ select?: boolean;
7
+ loading?: boolean;
6
8
  onClick: (device: TerminalInfo) => void;
7
9
  }
8
- declare const _default: React.MemoExoticComponent<({ list, onClick, selectedTerminal }: TerminalListProps) => import("react/jsx-runtime").JSX.Element>;
10
+ declare const _default: React.MemoExoticComponent<({ list, onClick, selectedTerminal, select, loading }: TerminalListProps) => JSX.Element>;
9
11
  export default _default;
@@ -0,0 +1,25 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { memo } from 'react';
3
+ import { useTranslation } from 'react-i18next';
4
+ import { ICONS_NAMES } from '../../../../constants';
5
+ import Icon from '../../../../components/Icon';
6
+ import Loader from '../../../../components/Loader';
7
+ import { getTerminalId, getTerminalIdLabel, getTerminalName } from './utils';
8
+ import { ListContainer, TerminalListContainer, TitleContainer, Image, Title, ScrollContainer, ListItem, StyledRadio, ArrowIcon } from './styles';
9
+ var TerminalList = function (_a) {
10
+ var _b, _c, _d, _e, _f, _g, _h, _j;
11
+ var list = _a.list, onClick = _a.onClick, selectedTerminal = _a.selectedTerminal, _k = _a.select, select = _k === void 0 ? true : _k, loading = _a.loading;
12
+ var t = useTranslation().t;
13
+ var platformImage = ((_d = (_c = (_b = list[0]) === null || _b === void 0 ? void 0 : _b.platform) === null || _c === void 0 ? void 0 : _c.brand) === null || _d === void 0 ? void 0 : _d.logo) || ICONS_NAMES.platform_image;
14
+ var platformName = (_j = (_h = (_g = (_f = (_e = list[0]) === null || _e === void 0 ? void 0 : _e.platform) === null || _f === void 0 ? void 0 : _f.brand) === null || _g === void 0 ? void 0 : _g.name) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.text;
15
+ var getEndComponent = function (terminal) {
16
+ if (loading && (selectedTerminal === null || selectedTerminal === void 0 ? void 0 : selectedTerminal.id) === (terminal === null || terminal === void 0 ? void 0 : terminal.id))
17
+ return _jsx(Loader, { innerColor: 'black', outerColor: 'black', size: 10, style: { height: 24, width: 24 }, toggleAnimation: !!loading });
18
+ if (select)
19
+ return (_jsx(StyledRadio, { sx: { paddingInlineEnd: 0 }, disableFocusRipple: true, disableRipple: true, disableTouchRipple: true, onChange: function () { return onClick(terminal); }, checkedIcon: _jsx(Icon, { src: ICONS_NAMES.radio_checked }), checked: (selectedTerminal === null || selectedTerminal === void 0 ? void 0 : selectedTerminal.id) === terminal.id }));
20
+ if (!select)
21
+ return _jsx(ArrowIcon, {});
22
+ };
23
+ return (_jsxs(ListContainer, { children: [_jsxs(TitleContainer, { children: [_jsx(Image, { src: platformImage, alt: 'Device' }), _jsx(Title, { children: t('terminal_devices', { name: platformName }) })] }), _jsx(ScrollContainer, { children: _jsx(TerminalListContainer, { children: list.map(function (terminal, index) { return (_jsx(ListItem, { sx: { minHeight: 'unset' }, onClick: function () { return onClick(terminal); }, name: getTerminalName(terminal), deviceId: getTerminalId(terminal), deviceIdLabel: getTerminalIdLabel(terminal), endAdornment: getEndComponent(terminal) }, index)); }) }) })] }));
24
+ };
25
+ export default memo(TerminalList);
@@ -1,2 +1,5 @@
1
+ import Header from './Header';
2
+ import TerminalList from './TerminalList';
1
3
  export * from './styles';
2
4
  export * from './utils';
5
+ export { Header, TerminalList };
@@ -1,2 +1,5 @@
1
+ import Header from './Header';
2
+ import TerminalList from './TerminalList';
1
3
  export * from './styles';
2
4
  export * from './utils';
5
+ export { Header, TerminalList };