@os1-platform/dispatch-mobile 2.1.21 → 2.1.23

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 (614) hide show
  1. package/README.md +122 -11
  2. package/lib/commonjs/analytics/firebase/FirebaseLogging.js +1 -1
  3. package/lib/commonjs/analytics/firebase/FirebaseLogging.js.map +1 -1
  4. package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js +5 -5
  5. package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -1
  6. package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js +9 -10
  7. package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
  8. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +16 -6
  9. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
  10. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +8 -1
  11. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  12. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +8 -10
  13. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
  14. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +2 -2
  15. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  16. package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js +40 -0
  17. package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js.map +1 -0
  18. package/lib/commonjs/components/executiontasks/collectPayment/CollectPaymentSchema.js +35 -0
  19. package/lib/commonjs/components/executiontasks/collectPayment/CollectPaymentSchema.js.map +1 -0
  20. package/lib/commonjs/components/executiontasks/collectPayment/PaymentStyles.js +102 -0
  21. package/lib/commonjs/components/executiontasks/collectPayment/PaymentStyles.js.map +1 -0
  22. package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js +151 -0
  23. package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js.map +1 -0
  24. package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js +188 -0
  25. package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -0
  26. package/lib/commonjs/components/executiontasks/collectPayment/components/CustomContactsModal.js +2 -0
  27. package/lib/commonjs/components/executiontasks/collectPayment/components/CustomContactsModal.js.map +1 -0
  28. package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js +442 -0
  29. package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -0
  30. package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js +538 -0
  31. package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -0
  32. package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js +887 -0
  33. package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -0
  34. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +14 -20
  35. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
  36. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +24 -27
  37. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  38. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +1 -1
  39. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
  40. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +2 -3
  41. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
  42. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +1 -1
  43. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  44. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +9 -3
  45. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  46. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +2 -2
  47. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
  48. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +13 -14
  49. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  50. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +2 -2
  51. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
  52. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +11 -12
  53. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  54. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +3 -3
  55. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  56. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +1 -1
  57. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  58. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +2 -2
  59. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  60. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +2 -2
  61. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  62. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +11 -13
  63. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  64. package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js +11 -2
  65. package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  66. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +2 -2
  67. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  68. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +5 -6
  69. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  70. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +2 -2
  71. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  72. package/lib/commonjs/components/executiontasks/pickup/PickupET.js +14 -20
  73. package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
  74. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +18 -24
  75. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  76. package/lib/commonjs/components/executiontasks/scan/ScanET.js +4 -6
  77. package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
  78. package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -1
  79. package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
  80. package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -1
  81. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +4 -5
  82. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  83. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +1 -2
  84. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  85. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +2 -4
  86. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  87. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +3 -6
  88. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  89. package/lib/commonjs/components/executiontasks/scan/utils.js +14 -8
  90. package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
  91. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +2 -2
  92. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  93. package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -1
  94. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +2 -2
  95. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  96. package/lib/commonjs/components/executiontasks/validateOTP/utils.js +1 -1
  97. package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
  98. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +2 -2
  99. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  100. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +2 -2
  101. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  102. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +2 -2
  103. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  104. package/lib/commonjs/components/widgets/AlertDisplay.js +1 -1
  105. package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
  106. package/lib/commonjs/components/widgets/CancelOrderDialog.js +2 -2
  107. package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
  108. package/lib/commonjs/components/widgets/Card.js +1 -2
  109. package/lib/commonjs/components/widgets/Card.js.map +1 -1
  110. package/lib/commonjs/components/widgets/GoBackModal.js +1 -1
  111. package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -1
  112. package/lib/commonjs/components/widgets/IconButton.js +20 -23
  113. package/lib/commonjs/components/widgets/IconButton.js.map +1 -1
  114. package/lib/commonjs/components/widgets/ModalWidget.js +3 -1
  115. package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -1
  116. package/lib/commonjs/components/widgets/ProgressDialog.js +3 -3
  117. package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
  118. package/lib/commonjs/components/widgets/SearchBar.js +1 -1
  119. package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
  120. package/lib/commonjs/components/widgets/SnackBarCustom.js +22 -21
  121. package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
  122. package/lib/commonjs/components/widgets/SplitTextInput.js +10 -11
  123. package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
  124. package/lib/commonjs/components/widgets/TabsComponent.js +1 -1
  125. package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
  126. package/lib/commonjs/components/widgets/Timer.js +40 -0
  127. package/lib/commonjs/components/widgets/Timer.js.map +1 -0
  128. package/lib/commonjs/constants/apiConstants.js +4 -1
  129. package/lib/commonjs/constants/apiConstants.js.map +1 -1
  130. package/lib/commonjs/constants/constants.js +4 -1
  131. package/lib/commonjs/constants/constants.js.map +1 -1
  132. package/lib/commonjs/errors/BaseError.js +3 -3
  133. package/lib/commonjs/events/EventDispatcher.js +5 -1
  134. package/lib/commonjs/events/EventDispatcher.js.map +1 -1
  135. package/lib/commonjs/events/constants.js +2 -1
  136. package/lib/commonjs/events/constants.js.map +1 -1
  137. package/lib/commonjs/events/index.js +1 -1
  138. package/lib/commonjs/events/index.js.map +1 -1
  139. package/lib/commonjs/events/interface.js.map +1 -1
  140. package/lib/commonjs/icons/CircleMark.js +27 -0
  141. package/lib/commonjs/icons/CircleMark.js.map +1 -0
  142. package/lib/commonjs/icons/FailedIcon.js +69 -0
  143. package/lib/commonjs/icons/FailedIcon.js.map +1 -0
  144. package/lib/commonjs/icons/FailureCloseIcon.js +42 -0
  145. package/lib/commonjs/icons/FailureCloseIcon.js.map +1 -0
  146. package/lib/commonjs/icons/ScanIcon.js +1 -1
  147. package/lib/commonjs/icons/ScanIcon.js.map +1 -1
  148. package/lib/commonjs/icons/SuccessCompleteIcon.js +42 -0
  149. package/lib/commonjs/icons/SuccessCompleteIcon.js.map +1 -0
  150. package/lib/commonjs/icons/file.js +1 -1
  151. package/lib/commonjs/icons/file.js.map +1 -1
  152. package/lib/commonjs/index.js +2 -2
  153. package/lib/commonjs/index.js.map +1 -1
  154. package/lib/commonjs/locale/i18n.js +1 -1
  155. package/lib/commonjs/locale/i18n.js.map +1 -1
  156. package/lib/commonjs/locale/util.js +1 -1
  157. package/lib/commonjs/locale/util.js.map +1 -1
  158. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +11 -9
  159. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
  160. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +6 -6
  161. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  162. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +6 -6
  163. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  164. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +7 -7
  165. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  166. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +6 -6
  167. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  168. package/lib/commonjs/manager/location/LocationManager.js +6 -6
  169. package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
  170. package/lib/commonjs/manager/sdk/DispatchSDKManager.js +8 -8
  171. package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
  172. package/lib/commonjs/manager/sdk/DispatchSdkCache.js +6 -6
  173. package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
  174. package/lib/commonjs/manager/sdk/callbacksHandler.js +4 -4
  175. package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
  176. package/lib/commonjs/manager/syncmanager/AppSyncManager.js +7 -7
  177. package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
  178. package/lib/commonjs/manager/syncmanager/database.js +2 -2
  179. package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
  180. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +2 -2
  181. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  182. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +6 -6
  183. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
  184. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +8 -16
  185. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  186. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +6 -7
  187. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  188. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +7 -8
  189. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  190. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +5 -9
  191. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  192. package/lib/commonjs/models/DispatchModels.js.map +1 -1
  193. package/lib/commonjs/models/execTasks/ETConfig.js +3 -0
  194. package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
  195. package/lib/commonjs/models/sdk.js.map +1 -1
  196. package/lib/commonjs/native/signature/SignatureCapture.js +5 -5
  197. package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
  198. package/lib/commonjs/network/GraphQLClient.js +15 -19
  199. package/lib/commonjs/network/GraphQLClient.js.map +1 -1
  200. package/lib/commonjs/network/NetworkClient.js +30 -3
  201. package/lib/commonjs/network/NetworkClient.js.map +1 -1
  202. package/lib/commonjs/network/NetworkUtils.js +2 -5
  203. package/lib/commonjs/network/NetworkUtils.js.map +1 -1
  204. package/lib/commonjs/network/Queries.js.map +1 -1
  205. package/lib/commonjs/network/client.js +5 -5
  206. package/lib/commonjs/network/client.js.map +1 -1
  207. package/lib/commonjs/resources/Login.js +4 -4
  208. package/lib/commonjs/resources/Login.js.map +1 -1
  209. package/lib/commonjs/resources/network.js +4 -4
  210. package/lib/commonjs/resources/network.js.map +1 -1
  211. package/lib/commonjs/styles/executionTasks/CommonStyles.js +13 -3
  212. package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
  213. package/lib/commonjs/ui/screens/CancellationScreen.js +7 -8
  214. package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
  215. package/lib/commonjs/ui/screens/CaptureInputScreen.js +8 -9
  216. package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
  217. package/lib/commonjs/ui/screens/CollectPaymentScreen.js +251 -0
  218. package/lib/commonjs/ui/screens/CollectPaymentScreen.js.map +1 -0
  219. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +7 -8
  220. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  221. package/lib/commonjs/ui/screens/DeliverScreen.js +8 -9
  222. package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
  223. package/lib/commonjs/ui/screens/DisplayScreen.js +8 -9
  224. package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
  225. package/lib/commonjs/ui/screens/DoodleScreen.js +8 -9
  226. package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
  227. package/lib/commonjs/ui/screens/DropCashScreen.js +43 -11
  228. package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
  229. package/lib/commonjs/ui/screens/ETScreensIndex.js +8 -1
  230. package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
  231. package/lib/commonjs/ui/screens/FormsScreen.js +8 -9
  232. package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
  233. package/lib/commonjs/ui/screens/GeofenceScreen.js +8 -9
  234. package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
  235. package/lib/commonjs/ui/screens/HttpRequestScreen.js +7 -8
  236. package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
  237. package/lib/commonjs/ui/screens/ImageCaptureScreen.js +8 -9
  238. package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
  239. package/lib/commonjs/ui/screens/PaymentScreen.js +9 -9
  240. package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
  241. package/lib/commonjs/ui/screens/PickupScreen.js +8 -9
  242. package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
  243. package/lib/commonjs/ui/screens/ScanScreen.js +8 -10
  244. package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
  245. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +13 -9
  246. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
  247. package/lib/commonjs/ui/screens/ValidateOTPScreen.js +8 -9
  248. package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
  249. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +3 -3
  250. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  251. package/lib/commonjs/ui/uiConfig/RouteParams.js +2 -1
  252. package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
  253. package/lib/commonjs/utils/ApiUtils.js +3 -1
  254. package/lib/commonjs/utils/ApiUtils.js.map +1 -1
  255. package/lib/commonjs/utils/ExecTaskUtils.js +35 -5
  256. package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
  257. package/lib/commonjs/utils/Logger.js +6 -7
  258. package/lib/commonjs/utils/Logger.js.map +1 -1
  259. package/lib/commonjs/utils/NetworkUtil.js +4 -4
  260. package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
  261. package/lib/commonjs/utils/SdkUtils.js +2 -2
  262. package/lib/commonjs/utils/SdkUtils.js.map +1 -1
  263. package/lib/commonjs/utils/SyncManagerUtils.js +3 -3
  264. package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
  265. package/lib/commonjs/utils/context/paymentContext.js +9 -0
  266. package/lib/commonjs/utils/context/paymentContext.js.map +1 -0
  267. package/lib/commonjs/utils/fcm/FCM.js +22 -4
  268. package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
  269. package/lib/commonjs/utils/fcm/FcmUtils.js +12 -2
  270. package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
  271. package/lib/commonjs/utils/helper.js +6 -6
  272. package/lib/commonjs/utils/helper.js.map +1 -1
  273. package/lib/commonjs/utils/hooks/useModal.js +4 -3
  274. package/lib/commonjs/utils/hooks/useModal.js.map +1 -1
  275. package/lib/commonjs/utils/hooks/useTimer.js.map +1 -1
  276. package/lib/commonjs/utils/loginHelper.js +1 -1
  277. package/lib/commonjs/utils/loginHelper.js.map +1 -1
  278. package/lib/commonjs/utils/storage.js +11 -17
  279. package/lib/commonjs/utils/storage.js.map +1 -1
  280. package/lib/commonjs/utils/utils.js +2 -3
  281. package/lib/commonjs/utils/utils.js.map +1 -1
  282. package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js +5 -5
  283. package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -1
  284. package/lib/module/analytics/sentry/SentryAnalyticsUtils.js +7 -8
  285. package/lib/module/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
  286. package/lib/module/components/dispatch/DispatchExecNavigator.js +14 -4
  287. package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
  288. package/lib/module/components/executiontasks/ExecutionTasksIndex.js +2 -1
  289. package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  290. package/lib/module/components/executiontasks/cancellation/CancelET.js +6 -8
  291. package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
  292. package/lib/module/components/executiontasks/collectPayment/CollectPayment.js +32 -0
  293. package/lib/module/components/executiontasks/collectPayment/CollectPayment.js.map +1 -0
  294. package/lib/module/components/executiontasks/collectPayment/CollectPaymentSchema.js +29 -0
  295. package/lib/module/components/executiontasks/collectPayment/CollectPaymentSchema.js.map +1 -0
  296. package/lib/module/components/executiontasks/collectPayment/PaymentStyles.js +96 -0
  297. package/lib/module/components/executiontasks/collectPayment/PaymentStyles.js.map +1 -0
  298. package/lib/module/components/executiontasks/collectPayment/PaymentUtils.js +132 -0
  299. package/lib/module/components/executiontasks/collectPayment/PaymentUtils.js.map +1 -0
  300. package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js +179 -0
  301. package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -0
  302. package/lib/module/components/executiontasks/collectPayment/components/CustomContactsModal.js +2 -0
  303. package/lib/module/components/executiontasks/collectPayment/components/CustomContactsModal.js.map +1 -0
  304. package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js +433 -0
  305. package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -0
  306. package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js +531 -0
  307. package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -0
  308. package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js +880 -0
  309. package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -0
  310. package/lib/module/components/executiontasks/deliver/DeliverET.js +13 -19
  311. package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
  312. package/lib/module/components/executiontasks/deliver/SLDeliverET.js +21 -24
  313. package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  314. package/lib/module/components/executiontasks/doodle/SignatureET.js +0 -1
  315. package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
  316. package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  317. package/lib/module/components/executiontasks/dropCash/SLDropCash.js +6 -1
  318. package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  319. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +11 -12
  320. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  321. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +9 -10
  322. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  323. package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js +1 -1
  324. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  325. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +9 -11
  326. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  327. package/lib/module/components/executiontasks/payments/PaymentUtils.js +11 -2
  328. package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  329. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +3 -4
  330. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  331. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  332. package/lib/module/components/executiontasks/pickup/PickupET.js +13 -19
  333. package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
  334. package/lib/module/components/executiontasks/pickup/SLPickupET.js +15 -21
  335. package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  336. package/lib/module/components/executiontasks/scan/ScanET.js +2 -4
  337. package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
  338. package/lib/module/components/executiontasks/scan/constants.js.map +1 -1
  339. package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
  340. package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -1
  341. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +3 -4
  342. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  343. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +0 -1
  344. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  345. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +0 -2
  346. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  347. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +1 -4
  348. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  349. package/lib/module/components/executiontasks/scan/utils.js +11 -6
  350. package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
  351. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  352. package/lib/module/components/executiontasks/validateOTP/constants.js.map +1 -1
  353. package/lib/module/components/widgets/Card.js +0 -1
  354. package/lib/module/components/widgets/Card.js.map +1 -1
  355. package/lib/module/components/widgets/IconButton.js +19 -22
  356. package/lib/module/components/widgets/IconButton.js.map +1 -1
  357. package/lib/module/components/widgets/ModalWidget.js +1 -0
  358. package/lib/module/components/widgets/ModalWidget.js.map +1 -1
  359. package/lib/module/components/widgets/ProgressDialog.js +2 -2
  360. package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
  361. package/lib/module/components/widgets/SnackBarCustom.js +21 -20
  362. package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
  363. package/lib/module/components/widgets/SplitTextInput.js +9 -10
  364. package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
  365. package/lib/module/components/widgets/Timer.js +32 -0
  366. package/lib/module/components/widgets/Timer.js.map +1 -0
  367. package/lib/module/constants/apiConstants.js +4 -1
  368. package/lib/module/constants/apiConstants.js.map +1 -1
  369. package/lib/module/constants/constants.js +3 -0
  370. package/lib/module/constants/constants.js.map +1 -1
  371. package/lib/module/errors/BaseError.js +3 -3
  372. package/lib/module/events/EventDispatcher.js +3 -0
  373. package/lib/module/events/EventDispatcher.js.map +1 -1
  374. package/lib/module/events/constants.js +2 -1
  375. package/lib/module/events/constants.js.map +1 -1
  376. package/lib/module/events/interface.js.map +1 -1
  377. package/lib/module/icons/CircleMark.js +20 -0
  378. package/lib/module/icons/CircleMark.js.map +1 -0
  379. package/lib/module/icons/FailedIcon.js +62 -0
  380. package/lib/module/icons/FailedIcon.js.map +1 -0
  381. package/lib/module/icons/FailureCloseIcon.js +35 -0
  382. package/lib/module/icons/FailureCloseIcon.js.map +1 -0
  383. package/lib/module/icons/SuccessCompleteIcon.js +35 -0
  384. package/lib/module/icons/SuccessCompleteIcon.js.map +1 -0
  385. package/lib/module/manager/dispatch/DispatchStateContainer.js +10 -8
  386. package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
  387. package/lib/module/manager/dispatchCodes/EventCodeContainer.js +5 -5
  388. package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  389. package/lib/module/manager/dispatchCodes/EventCodeRepo.js +5 -5
  390. package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  391. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +5 -5
  392. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  393. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +5 -5
  394. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  395. package/lib/module/manager/location/LocationManager.js +5 -5
  396. package/lib/module/manager/location/LocationManager.js.map +1 -1
  397. package/lib/module/manager/sdk/DispatchSDKManager.js +6 -6
  398. package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
  399. package/lib/module/manager/sdk/DispatchSdkCache.js +5 -5
  400. package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
  401. package/lib/module/manager/sdk/callbacksHandler.js +3 -3
  402. package/lib/module/manager/syncmanager/AppSyncManager.js +5 -5
  403. package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
  404. package/lib/module/manager/syncmanager/DBConfig.js +1 -0
  405. package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
  406. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  407. package/lib/module/manager/syncmanager/document/DocumentManager.js +5 -5
  408. package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
  409. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +6 -14
  410. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  411. package/lib/module/manager/syncmanager/events/ETEventsManager.js +5 -6
  412. package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  413. package/lib/module/manager/syncmanager/events/EventsSyncManager.js +5 -6
  414. package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  415. package/lib/module/manager/syncmanager/events/SyncHttpClient.js +3 -7
  416. package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  417. package/lib/module/models/DispatchModels.js.map +1 -1
  418. package/lib/module/models/execTasks/ETConfig.js +3 -0
  419. package/lib/module/models/execTasks/ETConfig.js.map +1 -1
  420. package/lib/module/models/sdk.js.map +1 -1
  421. package/lib/module/native/signature/SignatureCapture.js +4 -4
  422. package/lib/module/network/GraphQLClient.js +14 -18
  423. package/lib/module/network/GraphQLClient.js.map +1 -1
  424. package/lib/module/network/NetworkClient.js +29 -2
  425. package/lib/module/network/NetworkClient.js.map +1 -1
  426. package/lib/module/network/NetworkUtils.js +1 -4
  427. package/lib/module/network/NetworkUtils.js.map +1 -1
  428. package/lib/module/network/Queries.js.map +1 -1
  429. package/lib/module/network/client.js +4 -4
  430. package/lib/module/network/client.js.map +1 -1
  431. package/lib/module/resources/Login.js +3 -3
  432. package/lib/module/resources/network.js +3 -3
  433. package/lib/module/styles/executionTasks/CommonStyles.js +12 -2
  434. package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
  435. package/lib/module/ui/screens/CancellationScreen.js +5 -6
  436. package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
  437. package/lib/module/ui/screens/CaptureInputScreen.js +6 -7
  438. package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
  439. package/lib/module/ui/screens/CollectPaymentScreen.js +244 -0
  440. package/lib/module/ui/screens/CollectPaymentScreen.js.map +1 -0
  441. package/lib/module/ui/screens/CompleteObjectiveScreen.js +5 -6
  442. package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  443. package/lib/module/ui/screens/DeliverScreen.js +6 -7
  444. package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
  445. package/lib/module/ui/screens/DisplayScreen.js +6 -7
  446. package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
  447. package/lib/module/ui/screens/DoodleScreen.js +6 -7
  448. package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
  449. package/lib/module/ui/screens/DropCashScreen.js +41 -10
  450. package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
  451. package/lib/module/ui/screens/ETScreensIndex.js +2 -1
  452. package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
  453. package/lib/module/ui/screens/FormsScreen.js +6 -7
  454. package/lib/module/ui/screens/FormsScreen.js.map +1 -1
  455. package/lib/module/ui/screens/GeofenceScreen.js +6 -7
  456. package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
  457. package/lib/module/ui/screens/HttpRequestScreen.js +6 -7
  458. package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
  459. package/lib/module/ui/screens/ImageCaptureScreen.js +6 -7
  460. package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
  461. package/lib/module/ui/screens/PaymentScreen.js +7 -7
  462. package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
  463. package/lib/module/ui/screens/PickupScreen.js +6 -7
  464. package/lib/module/ui/screens/PickupScreen.js.map +1 -1
  465. package/lib/module/ui/screens/ScanScreen.js +6 -8
  466. package/lib/module/ui/screens/ScanScreen.js.map +1 -1
  467. package/lib/module/ui/screens/StartWorkFlowScreen.js +11 -7
  468. package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
  469. package/lib/module/ui/screens/ValidateOTPScreen.js +6 -7
  470. package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
  471. package/lib/module/ui/screens/WithBaseDispatchScreen.js +1 -1
  472. package/lib/module/ui/uiConfig/RouteParams.js +2 -1
  473. package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
  474. package/lib/module/utils/ApiUtils.js +2 -0
  475. package/lib/module/utils/ApiUtils.js.map +1 -1
  476. package/lib/module/utils/ExecTaskUtils.js +31 -4
  477. package/lib/module/utils/ExecTaskUtils.js.map +1 -1
  478. package/lib/module/utils/Logger.js +5 -6
  479. package/lib/module/utils/Logger.js.map +1 -1
  480. package/lib/module/utils/NetworkUtil.js +3 -3
  481. package/lib/module/utils/NetworkUtil.js.map +1 -1
  482. package/lib/module/utils/SdkUtils.js.map +1 -1
  483. package/lib/module/utils/SyncManagerUtils.js +1 -1
  484. package/lib/module/utils/SyncManagerUtils.js.map +1 -1
  485. package/lib/module/utils/context/paymentContext.js +3 -0
  486. package/lib/module/utils/context/paymentContext.js.map +1 -0
  487. package/lib/module/utils/fcm/FCM.js +20 -2
  488. package/lib/module/utils/fcm/FCM.js.map +1 -1
  489. package/lib/module/utils/fcm/FcmUtils.js +10 -0
  490. package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
  491. package/lib/module/utils/helper.js +5 -5
  492. package/lib/module/utils/helper.js.map +1 -1
  493. package/lib/module/utils/hooks/useModal.js +2 -1
  494. package/lib/module/utils/hooks/useModal.js.map +1 -1
  495. package/lib/module/utils/hooks/useTimer.js.map +1 -1
  496. package/lib/module/utils/storage.js +9 -15
  497. package/lib/module/utils/storage.js.map +1 -1
  498. package/lib/module/utils/utils.js +1 -2
  499. package/lib/module/utils/utils.js.map +1 -1
  500. package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +4 -2
  501. package/lib/typescript/components/executiontasks/collectPayment/CollectPayment.d.ts +4 -0
  502. package/lib/typescript/components/executiontasks/collectPayment/CollectPaymentSchema.d.ts +155 -0
  503. package/lib/typescript/components/executiontasks/collectPayment/PaymentStyles.d.ts +92 -0
  504. package/lib/typescript/components/executiontasks/collectPayment/PaymentUtils.d.ts +16 -0
  505. package/lib/typescript/components/executiontasks/collectPayment/components/CompletePayment.d.ts +4 -0
  506. package/lib/typescript/components/executiontasks/collectPayment/components/InitPayment.d.ts +4 -0
  507. package/lib/typescript/components/executiontasks/collectPayment/components/PaymentContactDetails.d.ts +4 -0
  508. package/lib/typescript/components/executiontasks/collectPayment/components/ProcessPayment.d.ts +4 -0
  509. package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +1 -1
  510. package/lib/typescript/components/executiontasks/scan/utils.d.ts +1 -0
  511. package/lib/typescript/components/widgets/ProgressDialog.d.ts +3 -0
  512. package/lib/typescript/components/widgets/SnackBarCustom.d.ts +3 -2
  513. package/lib/typescript/components/widgets/Timer.d.ts +7 -0
  514. package/lib/typescript/constants/apiConstants.d.ts +3 -0
  515. package/lib/typescript/constants/constants.d.ts +3 -0
  516. package/lib/typescript/events/EventDispatcher.d.ts +1 -0
  517. package/lib/typescript/events/constants.d.ts +1 -0
  518. package/lib/typescript/events/interface.d.ts +1 -1
  519. package/lib/typescript/icons/CircleMark.d.ts +3 -0
  520. package/lib/typescript/icons/FailedIcon.d.ts +4 -0
  521. package/lib/typescript/icons/FailureCloseIcon.d.ts +4 -0
  522. package/lib/typescript/icons/SuccessCompleteIcon.d.ts +4 -0
  523. package/lib/typescript/models/DispatchModels.d.ts +11 -0
  524. package/lib/typescript/models/execTasks/ETConfig.d.ts +6 -3
  525. package/lib/typescript/models/sdk.d.ts +12 -0
  526. package/lib/typescript/network/NetworkClient.d.ts +3 -1
  527. package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +10 -1
  528. package/lib/typescript/ui/screens/CollectPaymentScreen.d.ts +3 -0
  529. package/lib/typescript/ui/screens/ETScreensIndex.d.ts +2 -1
  530. package/lib/typescript/ui/uiConfig/RouteParams.d.ts +1 -0
  531. package/lib/typescript/utils/ExecTaskUtils.d.ts +2 -0
  532. package/lib/typescript/utils/context/paymentContext.d.ts +7 -0
  533. package/package.json +6 -5
  534. package/src/components/dispatch/DispatchExecNavigator.tsx +14 -0
  535. package/src/components/executiontasks/ExecutionTasksIndex.ts +8 -0
  536. package/src/components/executiontasks/collectPayment/CollectPayment.tsx +60 -0
  537. package/src/components/executiontasks/collectPayment/CollectPaymentSchema.ts +182 -0
  538. package/src/components/executiontasks/collectPayment/PaymentStyles.ts +102 -0
  539. package/src/components/executiontasks/collectPayment/PaymentUtils.ts +200 -0
  540. package/src/components/executiontasks/collectPayment/components/CompletePayment.tsx +273 -0
  541. package/src/components/executiontasks/collectPayment/components/InitPayment.tsx +658 -0
  542. package/src/components/executiontasks/collectPayment/components/PaymentContactDetails.tsx +790 -0
  543. package/src/components/executiontasks/collectPayment/components/ProcessPayment.tsx +1352 -0
  544. package/src/components/executiontasks/deliver/SLDeliverET.tsx +132 -60
  545. package/src/components/executiontasks/dropCash/SLDropCash.tsx +35 -12
  546. package/src/components/executiontasks/payments/PaymentUtils.ts +10 -2
  547. package/src/components/executiontasks/pickup/SLPickupET.tsx +6 -3
  548. package/src/components/executiontasks/scan/ScanET.tsx +1 -1
  549. package/src/components/executiontasks/scan/interfaces.ts +1 -1
  550. package/src/components/executiontasks/scan/utils.ts +16 -8
  551. package/src/components/widgets/ModalWidget.tsx +26 -8
  552. package/src/components/widgets/ProgressDialog.tsx +23 -3
  553. package/src/components/widgets/SnackBarCustom.tsx +8 -1
  554. package/src/components/widgets/SplitTextInput.tsx +1 -1
  555. package/src/components/widgets/Timer.tsx +53 -0
  556. package/src/constants/apiConstants.ts +3 -0
  557. package/src/constants/constants.ts +3 -0
  558. package/src/events/EventDispatcher.ts +4 -0
  559. package/src/events/constants.ts +1 -0
  560. package/src/events/interface.ts +7 -1
  561. package/src/icons/CircleMark.tsx +18 -0
  562. package/src/icons/FailedIcon.tsx +80 -0
  563. package/src/icons/FailureCloseIcon.tsx +35 -0
  564. package/src/icons/SuccessCompleteIcon.tsx +35 -0
  565. package/src/manager/dispatch/DispatchStateContainer.tsx +6 -4
  566. package/src/manager/sdk/DispatchSDKManager.ts +1 -0
  567. package/src/models/DispatchModels.ts +12 -0
  568. package/src/models/execTasks/ETConfig.ts +3 -0
  569. package/src/models/sdk.ts +13 -0
  570. package/src/network/NetworkClient.ts +34 -1
  571. package/src/network/client.ts +1 -0
  572. package/src/styles/executionTasks/CommonStyles.ts +32 -8
  573. package/src/ui/screens/CollectPaymentScreen.tsx +315 -0
  574. package/src/ui/screens/DropCashScreen.tsx +49 -2
  575. package/src/ui/screens/ETScreensIndex.ts +2 -0
  576. package/src/ui/screens/PaymentScreen.tsx +1 -0
  577. package/src/ui/screens/StartWorkFlowScreen.tsx +15 -0
  578. package/src/ui/uiConfig/RouteParams.ts +8 -1
  579. package/src/utils/ApiUtils.ts +1 -0
  580. package/src/utils/ExecTaskUtils.ts +44 -3
  581. package/src/utils/SyncManagerUtils.ts +1 -0
  582. package/src/utils/context/paymentContext.ts +8 -0
  583. package/src/utils/fcm/FCM.ts +30 -0
  584. package/src/utils/fcm/FcmUtils.ts +53 -29
  585. package/android/.gradle/6.8/fileChanges/last-build.bin +0 -0
  586. package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
  587. package/android/.gradle/7.5/checksums/checksums.lock +0 -0
  588. package/android/.gradle/7.5/checksums/md5-checksums.bin +0 -0
  589. package/android/.gradle/7.5/checksums/sha1-checksums.bin +0 -0
  590. package/android/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  591. package/android/.gradle/7.5/executionHistory/executionHistory.lock +0 -0
  592. package/android/.gradle/7.5/fileChanges/last-build.bin +0 -0
  593. package/android/.gradle/7.5/fileHashes/fileHashes.bin +0 -0
  594. package/android/.gradle/7.5/fileHashes/fileHashes.lock +0 -0
  595. package/android/.gradle/7.5/gc.properties +0 -0
  596. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  597. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  598. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  599. package/android/.gradle/checksums/checksums.lock +0 -0
  600. package/android/.gradle/config.properties +0 -2
  601. package/android/.gradle/configuration-cache/gc.properties +0 -0
  602. package/android/.gradle/vcs-1/gc.properties +0 -0
  603. package/android/.idea/compiler.xml +0 -6
  604. package/android/.idea/gradle.xml +0 -18
  605. package/android/.idea/kotlinc.xml +0 -6
  606. package/android/.idea/migrations.xml +0 -10
  607. package/android/.idea/misc.xml +0 -10
  608. package/android/.idea/other.xml +0 -263
  609. package/android/.idea/vcs.xml +0 -6
  610. package/lib/commonjs/icons/circleMark.svg +0 -3
  611. package/lib/module/icons/circleMark.svg +0 -3
  612. package/src/icons/circleMark.svg +0 -3
  613. /package/{android/.gradle/6.8/gc.properties → lib/typescript/components/executiontasks/collectPayment/components/CustomContactsModal.d.ts} +0 -0
  614. /package/{android/.gradle/7.5/dependencies-accessors/gc.properties → src/components/executiontasks/collectPayment/components/CustomContactsModal.tsx} +0 -0
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
1
2
  import { View, Text, StyleSheet, Platform } from 'react-native';
2
3
  import React from 'react';
3
4
  import { Portal, Modal } from 'react-native-paper';
@@ -1 +1 @@
1
- {"version":3,"names":["View","Text","StyleSheet","Platform","React","Portal","Modal","CommonStyles","Fonts","TouchableOpacity","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","ModalWidget","props","_props$renderAddition","_props$renderChildren","_props$renderAddition2","dismissable","contentContainerStyle","modalStyle","title","styles","titleStyle","subTitle","subTitleStyle","bodyStyle","buttonStyle","primaryButton","disabled","primaryButtonDisabled","primaryBtnStyles","labelStyles","primaryBtnLabelStyles","secondaryButton","secondaryButtonDisabled","secondaryBtnStyles","secondaryBtnLabelStyles","createElement","visible","showModal","modalContent","style","modalView","renderAdditionalHeader","call","titleText","label","subTitleText","renderChildren","nextButton","onPress","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","MODEL_WIDGET_SCREEN","nextButtonLabel","cancelButton","cancelButtonLabel","renderAdditionalButtons","create","marginStart","marginEnd","marginBottom","flex","backgroundColor","padding","borderRadius","justifyContent","fontFamily","OS","IBMPlexSans_600SemiBold","fontStyle","fontSize","lineHeight","textAlign","color","IBMPlexSans_400Regular"],"sources":["ModalWidget.tsx"],"sourcesContent":["import { View, Text, StyleSheet, ViewStyle, TextStyle, Platform } from 'react-native';\nimport React from 'react';\nimport { Portal, Modal } from 'react-native-paper';\nimport { CommonStyles, Fonts } from '../../styles/executionTasks/CommonStyles';\nimport { TouchableOpacity } from 'react-native';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\ninterface ButtonProps {\n label: string;\n disabled?: boolean;\n onPress: (() => void) | (() => Promise<any>);\n styles?: ViewStyle;\n labelStyles?: TextStyle;\n}\n\ninterface TitleProps {\n label: string;\n styles?: TextStyle;\n}\n\nexport interface ModalProps {\n showModal: boolean;\n dismissable?: boolean;\n title: TitleProps;\n subTitle?: TitleProps;\n contentContainerStyle?: ViewStyle;\n modalStyle?: ViewStyle;\n bodyStyle?: ViewStyle;\n renderChildren?: () => JSX.Element;\n buttonStyle?: ViewStyle;\n primaryButton: ButtonProps;\n secondaryButton: ButtonProps;\n renderAdditionalButtons?: () => JSX.Element;\n renderAdditionalHeader?: () => JSX.Element;\n}\n\nconst ModalWidget = (props: ModalProps) => {\n const {\n dismissable = true,\n contentContainerStyle = {},\n modalStyle = {},\n title: { styles: titleStyle = {} },\n subTitle: { styles: subTitleStyle = {} } = {},\n bodyStyle = {},\n buttonStyle = {},\n primaryButton: {\n disabled: primaryButtonDisabled = false,\n styles: primaryBtnStyles = {},\n labelStyles: primaryBtnLabelStyles = {},\n },\n secondaryButton: {\n disabled: secondaryButtonDisabled = false,\n styles: secondaryBtnStyles = {},\n labelStyles: secondaryBtnLabelStyles = {},\n },\n } = props;\n return (\n <Portal>\n <Modal\n visible={props.showModal}\n dismissable={dismissable}\n contentContainerStyle={[styles.modalContent, contentContainerStyle]}\n >\n <View style={[styles.modalView, modalStyle]}>\n <View style={bodyStyle}>\n {props.renderAdditionalHeader?.()}\n <Text style={[styles.titleText, titleStyle]}>\n {props.title.label}\n </Text>\n {props.subTitle ? (\n <Text style={[styles.subTitleText, subTitleStyle]}>\n {props.subTitle.label}\n </Text>\n ) : null}\n {props.renderChildren?.()}\n </View>\n\n <View style={buttonStyle}>\n <TouchableOpacity\n style={[CommonStyles.nextButton, primaryBtnStyles]}\n onPress={() => {\n props.primaryButton.onPress();\n const cta = props.primaryButton.label;\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.MODEL_WIDGET_SCREEN, cta: cta });\n \n\n }}\n disabled={primaryButtonDisabled}\n >\n <Text\n style={[CommonStyles.nextButtonLabel, primaryBtnLabelStyles]}\n >\n {props.primaryButton.label}\n </Text>\n </TouchableOpacity>\n <TouchableOpacity\n style={[CommonStyles.cancelButton, secondaryBtnStyles]}\n onPress={() => {\n props.secondaryButton.onPress();\n const cta = props.secondaryButton.label;\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.MODEL_WIDGET_SCREEN, cta: cta });\n \n\n }}\n disabled={secondaryButtonDisabled}\n >\n <Text\n style={[\n CommonStyles.cancelButtonLabel,\n secondaryBtnLabelStyles,\n ]}\n >\n {props.secondaryButton.label}\n </Text>\n </TouchableOpacity>\n {props.renderAdditionalButtons?.()}\n </View>\n </View>\n </Modal>\n </Portal>\n );\n};\n\nexport default ModalWidget;\n\ninterface StyleSheetType {\n modalContent: ViewStyle;\n modalView: ViewStyle;\n titleText: TextStyle;\n subTitleText: TextStyle;\n}\n\nconst styles = StyleSheet.create<StyleSheetType>({\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n marginBottom: 60,\n flex: 1,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n borderRadius: 9,\n },\n titleText: {\n justifyContent: 'center',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#111111',\n marginBottom: 10,\n },\n subTitleText: {\n justifyContent: 'center',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_400Regular\n : 'IBMPlexSans-Regular',\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n color: '#000000',\n marginBottom: 10,\n },\n});\n"],"mappings":"AAAA,SAASA,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAwBC,QAAQ,QAAQ,cAAc;A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bC,YAAY,EAAE,EAAE;IAChBC,IAAI,EAAE;EACR,CAAC;EACDxB,SAAS,EAAE;IACTyB,eAAe,EAAE,OAAO;IACxBC,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE;EAChB,CAAC;EACDxB,SAAS,EAAE;IACTyB,cAAc,EAAE,QAAQ;IACxBC,UAAU,EACRtE,QAAQ,CAACuE,EAAE,KAAK,SAAS,GACrBlE,KAAK,CAACmE,uBAAuB,GAC7B,sBAAsB;IAC5BC,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,SAAS,EAAE,QAAQ;IACnBC,KAAK,EAAE,SAAS;IAChBb,YAAY,EAAE;EAChB,CAAC;EACDlB,YAAY,EAAE;IACZuB,cAAc,EAAE,QAAQ;IACxBC,UAAU,EACRtE,QAAQ,CAACuE,EAAE,KAAK,SAAS,GACrBlE,KAAK,CAACyE,sBAAsB,GAC5B,qBAAqB;IAC3BL,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdE,KAAK,EAAE,SAAS;IAChBb,YAAY,EAAE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["View","Text","StyleSheet","Platform","React","Portal","Modal","CommonStyles","Fonts","TouchableOpacity","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","ModalWidget","props","_props$renderAddition","_props$renderChildren","_props$renderAddition2","dismissable","contentContainerStyle","modalStyle","title","styles","titleStyle","subTitle","subTitleStyle","bodyStyle","buttonStyle","primaryButton","disabled","primaryButtonDisabled","primaryBtnStyles","labelStyles","primaryBtnLabelStyles","secondaryButton","secondaryButtonDisabled","secondaryBtnStyles","secondaryBtnLabelStyles","createElement","visible","showModal","modalContent","style","modalView","renderAdditionalHeader","call","titleText","label","subTitleText","renderChildren","nextButton","onPress","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","MODEL_WIDGET_SCREEN","nextButtonLabel","cancelButton","cancelButtonLabel","renderAdditionalButtons","create","marginStart","marginEnd","marginBottom","flex","backgroundColor","padding","borderRadius","justifyContent","fontFamily","OS","IBMPlexSans_600SemiBold","fontStyle","fontSize","lineHeight","textAlign","color","IBMPlexSans_400Regular"],"sources":["ModalWidget.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\nimport {\n View,\n Text,\n StyleSheet,\n ViewStyle,\n TextStyle,\n Platform,\n} from 'react-native';\nimport React from 'react';\nimport { Portal, Modal } from 'react-native-paper';\nimport { CommonStyles, Fonts } from '../../styles/executionTasks/CommonStyles';\nimport { TouchableOpacity } from 'react-native';\nimport {\n ScreenNameSdkConstants,\n SentryEventNameSdkConstants,\n SeverityLevelValue,\n} from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\ninterface ButtonProps {\n label: string;\n disabled?: boolean;\n onPress: (() => void) | (() => Promise<any>);\n styles?: ViewStyle;\n labelStyles?: TextStyle;\n}\n\ninterface TitleProps {\n label: string;\n styles?: TextStyle;\n}\n\nexport interface ModalProps {\n showModal: boolean;\n dismissable?: boolean;\n title: TitleProps;\n subTitle?: TitleProps;\n contentContainerStyle?: ViewStyle;\n modalStyle?: ViewStyle;\n bodyStyle?: ViewStyle;\n renderChildren?: () => JSX.Element;\n buttonStyle?: ViewStyle;\n primaryButton: ButtonProps;\n secondaryButton: ButtonProps;\n renderAdditionalButtons?: () => JSX.Element;\n renderAdditionalHeader?: () => JSX.Element;\n}\n\nconst ModalWidget = (props: ModalProps) => {\n const {\n dismissable = true,\n contentContainerStyle = {},\n modalStyle = {},\n title: { styles: titleStyle = {} },\n subTitle: { styles: subTitleStyle = {} } = {},\n bodyStyle = {},\n buttonStyle = {},\n primaryButton: {\n disabled: primaryButtonDisabled = false,\n styles: primaryBtnStyles = {},\n labelStyles: primaryBtnLabelStyles = {},\n },\n secondaryButton: {\n disabled: secondaryButtonDisabled = false,\n styles: secondaryBtnStyles = {},\n labelStyles: secondaryBtnLabelStyles = {},\n },\n } = props;\n return (\n <Portal>\n <Modal\n visible={props.showModal}\n dismissable={dismissable}\n contentContainerStyle={[styles.modalContent, contentContainerStyle]}\n >\n <View style={[styles.modalView, modalStyle]}>\n <View style={bodyStyle}>\n {props.renderAdditionalHeader?.()}\n <Text style={[styles.titleText, titleStyle]}>\n {props.title.label}\n </Text>\n {props.subTitle ? (\n <Text style={[styles.subTitleText, subTitleStyle]}>\n {props.subTitle.label}\n </Text>\n ) : null}\n {props.renderChildren?.()}\n </View>\n\n <View style={buttonStyle}>\n <TouchableOpacity\n style={[CommonStyles.nextButton, primaryBtnStyles]}\n onPress={() => {\n props.primaryButton.onPress();\n const cta = props.primaryButton.label;\n fireEventWithScreenName({\n severityLevel: SeverityLevelValue.LOG,\n eventName: SentryEventNameSdkConstants.BUTTON_CLICKED,\n screenName: ScreenNameSdkConstants.MODEL_WIDGET_SCREEN,\n cta: cta,\n });\n }}\n disabled={primaryButtonDisabled}\n >\n <Text\n style={[CommonStyles.nextButtonLabel, primaryBtnLabelStyles]}\n >\n {props.primaryButton.label}\n </Text>\n </TouchableOpacity>\n <TouchableOpacity\n style={[CommonStyles.cancelButton, secondaryBtnStyles]}\n onPress={() => {\n props.secondaryButton.onPress();\n const cta = props.secondaryButton.label;\n fireEventWithScreenName({\n severityLevel: SeverityLevelValue.LOG,\n eventName: SentryEventNameSdkConstants.BUTTON_CLICKED,\n screenName: ScreenNameSdkConstants.MODEL_WIDGET_SCREEN,\n cta: cta,\n });\n }}\n disabled={secondaryButtonDisabled}\n >\n <Text\n style={[\n CommonStyles.cancelButtonLabel,\n secondaryBtnLabelStyles,\n ]}\n >\n {props.secondaryButton.label}\n </Text>\n </TouchableOpacity>\n {props.renderAdditionalButtons?.()}\n </View>\n </View>\n </Modal>\n </Portal>\n );\n};\n\nexport default ModalWidget;\n\ninterface StyleSheetType {\n modalContent: ViewStyle;\n modalView: ViewStyle;\n titleText: TextStyle;\n subTitleText: TextStyle;\n}\n\nconst styles = StyleSheet.create<StyleSheetType>({\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n marginBottom: 60,\n flex: 1,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n borderRadius: 9,\n },\n titleText: {\n justifyContent: 'center',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#111111',\n marginBottom: 10,\n },\n subTitleText: {\n justifyContent: 'center',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_400Regular\n : 'IBMPlexSans-Regular',\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n color: '#000000',\n marginBottom: 10,\n },\n});\n"],"mappings":"AAAA;AACA,SACEA,IAAI,EACJC,IAAI,EACJC,UAAU,EAGVC,QAAQ,QACH,cAAc;AACrB,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,KAAK,QAAQ,oBAAoB;AAClD,SAASC,YAAY,EAAEC,KAAK,QAAQ,0CAA0C;AAC9E,SAASC,gBAAgB,QAAQ,cAAc;AAC/C,SACEC,sBAAsB,EACtBC,2BAA2B,EAC3BC,kBAAkB,QACb,2CAA2C;AAClD,SAASC,uBAAuB,QAAQ,6CAA6C;AA+BrF,MAAMC,WAAW,GAAIC,KAAiB,IAAK;EAAA,IAAAC,qBAAA,EAAAC,qBAAA,EAAAC,sBAAA;EACzC,MAAM;IACJC,WAAW,GAAG,IAAI;IAClBC,qBAAqB,GAAG,CAAC,CAAC;IAC1BC,UAAU,GAAG,CAAC,CAAC;IACfC,KAAK,EAAE;MAAEC,MAAM,EAAEC,UAAU,GAAG,CAAC;IAAE,CAAC;IAClCC,QAAQ,EAAE;MAAEF,MAAM,EAAEG,aAAa,GAAG,CAAC;IAAE,CAAC,GAAG,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AAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdE,KAAK,EAAE,SAAS;IAChBb,YAAY,EAAE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -10,12 +10,12 @@ const ProgressDialog = props => {
10
10
  }, /*#__PURE__*/React.createElement(View, {
11
11
  style: styles.wrapper
12
12
  }, /*#__PURE__*/React.createElement(View, {
13
- style: styles.content
13
+ style: [styles.content, (props === null || props === void 0 ? void 0 : props.customModalContentStyle) && (props === null || props === void 0 ? void 0 : props.customModalContentStyle)]
14
14
  }, /*#__PURE__*/React.createElement(ActivityIndicator, {
15
15
  size: "large",
16
16
  color: "rgba(107, 142, 255, 1)"
17
17
  }), /*#__PURE__*/React.createElement(Text, {
18
- style: [styles.label]
18
+ style: [styles.label, props.labelStyle ? props.labelStyle : {}]
19
19
  }, props.label))));
20
20
  };
21
21
  const styles = StyleSheet.create({
@@ -1 +1 @@
1
- {"version":3,"names":["React","ActivityIndicator","Modal","Platform","StyleSheet","Text","View","Fonts","ProgressDialog","props","createElement","animationType","transparent","visible","onRequestClose","style","styles","wrapper","content","size","color","label","create","textAlign","fontStyle","fontSize","fontFamily","OS","IBMPlexSans_600SemiBold","backgroundColor","padding","borderRadius","width","alignItems","flex","justifyContent"],"sources":["ProgressDialog.tsx"],"sourcesContent":["import React from 'react';\nimport { ActivityIndicator, Modal, Platform, StyleSheet, Text, View } from 'react-native';\nimport { Fonts } from '../../styles/executionTasks/CommonStyles';\n\nconst ProgressDialog = (props: ProgressDialogProps) => {\n return (\n <Modal\n animationType=\"none\"\n transparent={true}\n visible={props.visible}\n onRequestClose={() => {}}\n >\n <View style={styles.wrapper}>\n <View style={styles.content}>\n <ActivityIndicator size=\"large\" color=\"rgba(107, 142, 255, 1)\" />\n <Text style={[styles.label]}>{props.label}</Text>\n </View>\n </View>\n </Modal>\n );\n};\n\nconst styles = StyleSheet.create({\n label: {\n color: 'black',\n textAlign: 'center',\n fontStyle: 'normal',\n fontSize: 15,\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n },\n content: {\n backgroundColor: 'white',\n padding: 10,\n borderRadius: 5,\n width: '80%',\n alignItems: 'center',\n },\n wrapper: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'rgba(0,0,0,0.7)',\n },\n});\n\nexport default ProgressDialog;\n\nexport interface ProgressDialogProps {\n visible: boolean;\n label: string;\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,iBAAiB,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzF,SAASC,KAAK,QAAQ,0CAA0C;AAEhE,MAAMC,cAAc,GAAIC,KAA0B,IAAK;EACrD,oBACET,KAAA,CAAAU,aAAA,CAACR,KAAK;IACJS,aAAa,EAAC,MAAM;IACpBC,WAAW,EAAE,IAAK;IAClBC,OAAO,EAAEJ,KAAK,CAACI,OAAQ;IACvBC,cAAc,EAAEA,CAAA,KAAM,CAAC;EAAE,gBAEzBd,KAAA,CAAAU,aAAA,CAACJ,IAAI;IAACS,KAAK,EAAEC,MAAM,CAACC;EAAQ,gBAC1BjB,KAAA,CAAAU,aAAA,CAACJ,IAAI;IAACS,KAAK,EAAEC,MAAM,CAACE;EAAQ,gBAC1BlB,KAAA,CAAAU,aAAA,CAACT,iBAAiB;IAACkB,IAAI,EAAC,OAAO;IAACC,KAAK,EAAC;EAAwB,CAAE,CAAC,eACjEpB,KAAA,CAAAU,aAAA,CAACL,IAAI;IAACU,KAAK,EAAE,CAACC,MAAM,CAACK,KAAK;EAAE,GAAEZ,KAAK,CAACY,KAAY,CAC5C,CACF,CACD,CAAC;AAEZ,CAAC;AAED,MAAML,MAAM,GAAGZ,UAAU,CAACkB,MAAM,CAAC;EAC/BD,KAAK,EAAE;IACLD,KAAK,EAAE,OAAO;IACdG,SAAS,EAAE,QAAQ;IACnBC,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EACRvB,QAAQ,CAACwB,EAAE,KAAK,SAAS,GACrBpB,KAAK,CAACqB,uBAAuB,GAC7B;EACR,CAAC;EACDV,OAAO,EAAE;IACPW,eAAe,EAAE,OAAO;IACxBC,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE,CAAC;IACfC,KAAK,EAAE,KAAK;IACZC,UAAU,EAAE;EACd,CAAC;EACDhB,OAAO,EAAE;IACPiB,IAAI,EAAE,CAAC;IACPD,UAAU,EAAE,QAAQ;IACpBE,cAAc,EAAE,QAAQ;IACxBN,eAAe,EAAE;EACnB;AACF,CAAC,CAAC;AAEF,eAAerB,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["React","ActivityIndicator","Modal","Platform","StyleSheet","Text","View","Fonts","ProgressDialog","props","createElement","animationType","transparent","visible","onRequestClose","style","styles","wrapper","content","customModalContentStyle","size","color","label","labelStyle","create","textAlign","fontStyle","fontSize","fontFamily","OS","IBMPlexSans_600SemiBold","backgroundColor","padding","borderRadius","width","alignItems","flex","justifyContent"],"sources":["ProgressDialog.tsx"],"sourcesContent":["import React from 'react';\nimport {\n ActivityIndicator,\n Modal,\n Platform,\n StyleProp,\n StyleSheet,\n Text,\n TextStyle,\n View,\n} from 'react-native';\nimport { Fonts } from '../../styles/executionTasks/CommonStyles';\n\nconst ProgressDialog = (props: ProgressDialogProps) => {\n return (\n <Modal\n animationType=\"none\"\n transparent={true}\n visible={props.visible}\n onRequestClose={() => {}}\n >\n <View style={styles.wrapper}>\n <View\n style={[\n styles.content,\n props?.customModalContentStyle && props?.customModalContentStyle,\n ]}\n >\n <ActivityIndicator size=\"large\" color=\"rgba(107, 142, 255, 1)\" />\n <Text\n style={[styles.label, props.labelStyle ? props.labelStyle : {}]}\n >\n {props.label}\n </Text>\n </View>\n </View>\n </Modal>\n );\n};\n\nconst styles = StyleSheet.create({\n label: {\n color: 'black',\n textAlign: 'center',\n fontStyle: 'normal',\n fontSize: 15,\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n },\n content: {\n backgroundColor: 'white',\n padding: 10,\n borderRadius: 5,\n width: '80%',\n alignItems: 'center',\n },\n wrapper: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'rgba(0,0,0,0.7)',\n },\n});\n\nexport default ProgressDialog;\n\nexport interface ProgressDialogProps {\n visible: boolean;\n label: string;\n labelStyle?: StyleProp<TextStyle>;\n customModalContentStyle?: StyleProp<TextStyle>;\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,iBAAiB,EACjBC,KAAK,EACLC,QAAQ,EAERC,UAAU,EACVC,IAAI,EAEJC,IAAI,QACC,cAAc;AACrB,SAASC,KAAK,QAAQ,0CAA0C;AAEhE,MAAMC,cAAc,GAAIC,KAA0B,IAAK;EACrD,oBACET,KAAA,CAAAU,aAAA,CAACR,KAAK;IACJS,aAAa,EAAC,MAAM;IACpBC,WAAW,EAAE,IAAK;IAClBC,OAAO,EAAEJ,KAAK,CAACI,OAAQ;IACvBC,cAAc,EAAEA,CAAA,KAAM,CAAC;EAAE,gBAEzBd,KAAA,CAAAU,aAAA,CAACJ,IAAI;IAACS,KAAK,EAAEC,MAAM,CAACC;EAAQ,gBAC1BjB,KAAA,CAAAU,aAAA,CAACJ,IAAI;IACHS,KAAK,EAAE,CACLC,MAAM,CAACE,OAAO,EACd,CAAAT,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEU,uBAAuB,MAAIV,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEU,uBAAuB;EAChE,gBAEFnB,KAAA,CAAAU,aAAA,CAACT,iBAAiB;IAACmB,IAAI,EAAC,OAAO;IAACC,KAAK,EAAC;EAAwB,CAAE,CAAC,eACjErB,KAAA,CAAAU,aAAA,CAACL,IAAI;IACHU,KAAK,EAAE,CAACC,MAAM,CAACM,KAAK,EAAEb,KAAK,CAACc,UAAU,GAAGd,KAAK,CAACc,UAAU,GAAG,CAAC,CAAC;EAAE,GAE/Dd,KAAK,CAACa,KACH,CACF,CACF,CACD,CAAC;AAEZ,CAAC;AAED,MAAMN,MAAM,GAAGZ,UAAU,CAACoB,MAAM,CAAC;EAC/BF,KAAK,EAAE;IACLD,KAAK,EAAE,OAAO;IACdI,SAAS,EAAE,QAAQ;IACnBC,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EACRzB,QAAQ,CAAC0B,EAAE,KAAK,SAAS,GACrBtB,KAAK,CAACuB,uBAAuB,GAC7B;EACR,CAAC;EACDZ,OAAO,EAAE;IACPa,eAAe,EAAE,OAAO;IACxBC,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE,CAAC;IACfC,KAAK,EAAE,KAAK;IACZC,UAAU,EAAE;EACd,CAAC;EACDlB,OAAO,EAAE;IACPmB,IAAI,EAAE,CAAC;IACPD,UAAU,EAAE,QAAQ;IACpBE,cAAc,EAAE,QAAQ;IACxBN,eAAe,EAAE;EACnB;AACF,CAAC,CAAC;AAEF,eAAevB,cAAc","ignoreList":[]}
@@ -12,16 +12,16 @@ export let SnackBarType = /*#__PURE__*/function (SnackBarType) {
12
12
  SnackBarType[SnackBarType["WARNING"] = 2] = "WARNING";
13
13
  return SnackBarType;
14
14
  }({});
15
- const SnackbarCustom = _ref => {
16
- let {
17
- visible,
18
- duration = DURATION_MEDIUM,
19
- onDismiss,
20
- message,
21
- theme,
22
- type,
23
- customBottom = 110
24
- } = _ref;
15
+ const SnackbarCustom = ({
16
+ visible,
17
+ duration = DURATION_MEDIUM,
18
+ onDismiss,
19
+ message,
20
+ theme,
21
+ type,
22
+ customBottom = 110,
23
+ customTop
24
+ }) => {
25
25
  const {
26
26
  current: opacity
27
27
  } = React.useRef(new Animated.Value(0.0));
@@ -44,10 +44,9 @@ const SnackbarCustom = _ref => {
44
44
  toValue: 1,
45
45
  duration: 200 * scale,
46
46
  useNativeDriver: true
47
- }).start(_ref2 => {
48
- let {
49
- finished
50
- } = _ref2;
47
+ }).start(({
48
+ finished
49
+ }) => {
51
50
  if (finished) {
52
51
  const isInfinity = duration === Number.POSITIVE_INFINITY || duration === Number.NEGATIVE_INFINITY;
53
52
  if (finished && !isInfinity) {
@@ -62,10 +61,9 @@ const SnackbarCustom = _ref => {
62
61
  toValue: 0,
63
62
  duration: 100 * scale,
64
63
  useNativeDriver: true
65
- }).start(_ref3 => {
66
- let {
67
- finished
68
- } = _ref3;
64
+ }).start(({
65
+ finished
66
+ }) => {
69
67
  if (finished) setHidden(true);
70
68
  });
71
69
  }
@@ -80,7 +78,9 @@ const SnackbarCustom = _ref => {
80
78
  pointerEvents: "box-none",
81
79
  style: [styles.wrapper, {
82
80
  bottom: customBottom
83
- }]
81
+ }, customTop !== undefined ? {
82
+ top: customTop
83
+ } : {}]
84
84
  }, /*#__PURE__*/React.createElement(Surface, {
85
85
  pointerEvents: "box-none",
86
86
  accessibilityLiveRegion: "polite",
@@ -144,7 +144,8 @@ const styles = StyleSheet.create({
144
144
  flexDirection: 'row',
145
145
  alignItems: 'center',
146
146
  backgroundColor: '#059669',
147
- flex: 1
147
+ flex: 1,
148
+ borderRadius: 4
148
149
  },
149
150
  fail: {
150
151
  padding: 16,
@@ -1 +1 @@
1
- {"version":3,"names":["React","Animated","Platform","SafeAreaView","StyleSheet","Text","View","Surface","withTheme","AntDesign","Fonts","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","DURATION_MEDIUM","SnackBarType","SnackbarCustom","_ref","visible","duration","onDismiss","message","theme","type","customBottom","current","opacity","useRef","Value","hidden","setHidden","useState","hideTimeout","undefined","scale","animation","useEffect","clearTimeout","useLayoutEffect","timing","toValue","useNativeDriver","start","_ref2","finished","isInfinity","Number","POSITIVE_INFINITY","NEGATIVE_INFINITY","setTimeout","_ref3","colors","roundness","createElement","pointerEvents","style","styles","wrapper","bottom","accessibilityLiveRegion","container","borderRadius","transform","interpolate","inputRange","outputRange","backgroundColor","onSurface","FAILURE","fail","WARNING","warn","main","name","size","color","messageStyle","onPress","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","SCAN_BAR_CUSTOM_SCREEN","create","position","width","zIndex","elevation","flexDirection","justifyContent","alignItems","margin","padding","flex","marginStart","marginEnd","fontWeight","fontFamily","OS","IBMPlexSans_600SemiBold"],"sources":["SnackBarCustom.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Animated,\n Platform,\n SafeAreaView,\n StyleProp,\n StyleSheet,\n Text,\n View,\n ViewStyle,\n} from 'react-native';\nimport { Surface, withTheme } from 'react-native-paper';\nimport { AntDesign } from '@expo/vector-icons';\nimport { Fonts } from '../../styles/executionTasks/CommonStyles';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\nexport interface SnackbarProps {\n visible: boolean;\n duration?: number;\n /**\n * Callback called when Snackbar is dismissed. The `visible` prop needs to be updated when this is called.\n */\n onDismiss: () => void;\n /**\n * Text content of the Snackbar.\n */\n message: string;\n type?: SnackBarType;\n theme: ReactNativePaper.Theme;\n customBottom?: number;\n}\nconst DURATION_MEDIUM = 3000;\n\nexport enum SnackBarType {\n SUCCESS,\n FAILURE,\n WARNING,\n}\n\nconst SnackbarCustom = ({\n visible,\n duration = DURATION_MEDIUM,\n onDismiss,\n message,\n theme,\n type,\n customBottom = 110,\n}: SnackbarProps) => {\n const { current: opacity } = React.useRef<Animated.Value>(\n new Animated.Value(0.0)\n );\n const [hidden, setHidden] = React.useState<boolean>(!visible);\n\n const hideTimeout = React.useRef<NodeJS.Timeout | undefined>(undefined);\n const { scale } = theme.animation;\n\n React.useEffect(() => {\n return () => {\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n };\n }, []);\n\n React.useLayoutEffect(() => {\n if (visible) {\n // show\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n setHidden(false);\n Animated.timing(opacity, {\n toValue: 1,\n duration: 200 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) {\n const isInfinity =\n duration === Number.POSITIVE_INFINITY ||\n duration === Number.NEGATIVE_INFINITY;\n\n if (finished && !isInfinity) {\n hideTimeout.current = setTimeout(\n onDismiss,\n duration\n ) as unknown as NodeJS.Timeout;\n }\n }\n });\n } else {\n // hide\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n\n Animated.timing(opacity, {\n toValue: 0,\n duration: 100 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) setHidden(true);\n });\n }\n }, [visible, duration, opacity, scale, onDismiss]);\n\n const { colors, roundness } = theme;\n\n if (hidden) return null;\n\n if (!message) return null;\n\n return (\n <SafeAreaView\n pointerEvents=\"box-none\"\n style={[styles.wrapper, { bottom: customBottom }]}\n >\n <Surface\n pointerEvents=\"box-none\"\n accessibilityLiveRegion=\"polite\"\n style={\n [\n styles.container,\n {\n borderRadius: roundness,\n opacity: opacity,\n transform: [\n {\n scale: visible\n ? opacity.interpolate({\n inputRange: [0, 1],\n outputRange: [0.9, 1],\n })\n : 1,\n },\n ],\n },\n { backgroundColor: colors.onSurface },\n ] as StyleProp<ViewStyle>\n }\n >\n <View\n style={\n type && type === SnackBarType.FAILURE\n ? styles.fail\n : type && type === SnackBarType.WARNING\n ? styles.warn\n : styles.main\n }\n >\n {type && type === SnackBarType.FAILURE ? (\n <AntDesign name=\"exclamationcircleo\" size={20} color=\"white\" />\n ) : (\n <AntDesign name=\"checkcircleo\" size={20} color=\"white\" />\n )}\n <Text style={styles.messageStyle}>{message}</Text>\n <AntDesign\n name=\"close\"\n size={16}\n color=\"white\"\n onPress={() => {\n setHidden(true);\n const cta = \"Close\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_BAR_CUSTOM_SCREEN, cta: cta });\n }}\n />\n </View>\n </Surface>\n </SafeAreaView>\n );\n};\n\nconst styles = StyleSheet.create({\n wrapper: {\n position: 'absolute',\n bottom: 110,\n width: '100%',\n zIndex: 1000,\n },\n container: {\n elevation: 6,\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n margin: 8,\n borderRadius: 4,\n },\n main: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#059669',\n flex: 1,\n },\n fail: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#DC2626',\n flex: 1,\n },\n warn: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#D97706',\n flex: 1,\n },\n messageStyle: {\n flex: 1,\n marginStart: 20,\n marginEnd: 20,\n color: '#ffffff',\n fontWeight: '600',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n },\n});\n\nexport default withTheme(SnackbarCustom);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,QAAQ,EACRC,QAAQ,EACRC,YAAY,EAEZC,UAAU,EACVC,IAAI,EACJC,IAAI,QAEC,cAAc;AACrB,SAASC,OAAO,EAAEC,SAAS,QAAQ,oBAAoB;AACvD,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,KAAK,QAAQ,0CAA0C;AAChE,SAASC,sBAAsB,EAAEC,2BAA2B,EAAEC,kBAAkB,QAAQ,2CAA2C;AACnI,SAASC,uBAAuB,QAAQ,6CAA6C;AAiBrF,MAAMC,eAAe,GAAG,IAAI;AAE5B,WAAYC,YAAY,0BAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAMxB,MAAMC,cA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,"names":["React","Animated","Platform","SafeAreaView","StyleSheet","Text","View","Surface","withTheme","AntDesign","Fonts","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","DURATION_MEDIUM","SnackBarType","SnackbarCustom","visible","duration","onDismiss","message","theme","type","customBottom","customTop","current","opacity","useRef","Value","hidden","setHidden","useState","hideTimeout","undefined","scale","animation","useEffect","clearTimeout","useLayoutEffect","timing","toValue","useNativeDriver","start","finished","isInfinity","Number","POSITIVE_INFINITY","NEGATIVE_INFINITY","setTimeout","colors","roundness","createElement","pointerEvents","style","styles","wrapper","bottom","top","accessibilityLiveRegion","container","borderRadius","transform","interpolate","inputRange","outputRange","backgroundColor","onSurface","FAILURE","fail","WARNING","warn","main","name","size","color","messageStyle","onPress","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","SCAN_BAR_CUSTOM_SCREEN","create","position","width","zIndex","elevation","flexDirection","justifyContent","alignItems","margin","padding","flex","marginStart","marginEnd","fontWeight","fontFamily","OS","IBMPlexSans_600SemiBold"],"sources":["SnackBarCustom.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Animated,\n Platform,\n SafeAreaView,\n StyleProp,\n StyleSheet,\n Text,\n View,\n ViewStyle,\n} from 'react-native';\nimport { Surface, withTheme } from 'react-native-paper';\nimport { AntDesign } from '@expo/vector-icons';\nimport { Fonts } from '../../styles/executionTasks/CommonStyles';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\nexport interface SnackbarProps {\n visible: boolean;\n duration?: number;\n /**\n * Callback called when Snackbar is dismissed. The `visible` prop needs to be updated when this is called.\n */\n onDismiss: () => void;\n /**\n * Text content of the Snackbar.\n */\n message: string;\n type?: SnackBarType;\n theme: ReactNativePaper.Theme;\n customBottom?: number;\n customTop?: number;\n}\nconst DURATION_MEDIUM = 3000;\n\nexport enum SnackBarType {\n SUCCESS,\n FAILURE,\n WARNING,\n}\n\nconst SnackbarCustom = ({\n visible,\n duration = DURATION_MEDIUM,\n onDismiss,\n message,\n theme,\n type,\n customBottom = 110,\n customTop,\n}: SnackbarProps) => {\n const { current: opacity } = React.useRef<Animated.Value>(\n new Animated.Value(0.0)\n );\n const [hidden, setHidden] = React.useState<boolean>(!visible);\n\n const hideTimeout = React.useRef<NodeJS.Timeout | undefined>(undefined);\n const { scale } = theme.animation;\n\n React.useEffect(() => {\n return () => {\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n };\n }, []);\n\n React.useLayoutEffect(() => {\n if (visible) {\n // show\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n setHidden(false);\n Animated.timing(opacity, {\n toValue: 1,\n duration: 200 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) {\n const isInfinity =\n duration === Number.POSITIVE_INFINITY ||\n duration === Number.NEGATIVE_INFINITY;\n\n if (finished && !isInfinity) {\n hideTimeout.current = setTimeout(\n onDismiss,\n duration\n ) as unknown as NodeJS.Timeout;\n }\n }\n });\n } else {\n // hide\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n\n Animated.timing(opacity, {\n toValue: 0,\n duration: 100 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) setHidden(true);\n });\n }\n }, [visible, duration, opacity, scale, onDismiss]);\n\n const { colors, roundness } = theme;\n\n if (hidden) return null;\n\n if (!message) return null;\n\n return (\n <SafeAreaView\n pointerEvents=\"box-none\"\n style={[\n styles.wrapper,\n { bottom: customBottom },\n customTop !== undefined ? { top: customTop } : {},\n ]}\n >\n <Surface\n pointerEvents=\"box-none\"\n accessibilityLiveRegion=\"polite\"\n style={\n [\n styles.container,\n {\n borderRadius: roundness,\n opacity: opacity,\n transform: [\n {\n scale: visible\n ? opacity.interpolate({\n inputRange: [0, 1],\n outputRange: [0.9, 1],\n })\n : 1,\n },\n ],\n },\n { backgroundColor: colors.onSurface },\n ] as StyleProp<ViewStyle>\n }\n >\n <View\n style={\n type && type === SnackBarType.FAILURE\n ? styles.fail\n : type && type === SnackBarType.WARNING\n ? styles.warn\n : styles.main\n }\n >\n {type && type === SnackBarType.FAILURE ? (\n <AntDesign name=\"exclamationcircleo\" size={20} color=\"white\" />\n ) : (\n <AntDesign name=\"checkcircleo\" size={20} color=\"white\" />\n )}\n <Text style={styles.messageStyle}>{message}</Text>\n <AntDesign\n name=\"close\"\n size={16}\n color=\"white\"\n onPress={() => {\n setHidden(true);\n const cta = \"Close\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_BAR_CUSTOM_SCREEN, cta: cta });\n }}\n />\n </View>\n </Surface>\n </SafeAreaView>\n );\n};\n\nconst styles = StyleSheet.create({\n wrapper: {\n position: 'absolute',\n bottom: 110,\n width: '100%',\n zIndex: 1000,\n },\n container: {\n elevation: 6,\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n margin: 8,\n borderRadius: 4,\n },\n main: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#059669',\n flex: 1,\n borderRadius: 4,\n },\n fail: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#DC2626',\n flex: 1,\n },\n warn: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#D97706',\n flex: 1,\n },\n messageStyle: {\n flex: 1,\n marginStart: 20,\n marginEnd: 20,\n color: '#ffffff',\n fontWeight: '600',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n },\n});\n\nexport default withTheme(SnackbarCustom);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,QAAQ,EACRC,QAAQ,EACRC,YAAY,EAEZC,UAAU,EACVC,IAAI,EACJC,IAAI,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IAAI,EAAE;IACJuB,OAAO,EAAE,EAAE;IACXJ,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE,QAAQ;IACpB1B,eAAe,EAAE,SAAS;IAC1B6B,IAAI,EAAE;EACR,CAAC;EACDnB,YAAY,EAAE;IACZmB,IAAI,EAAE,CAAC;IACPC,WAAW,EAAE,EAAE;IACfC,SAAS,EAAE,EAAE;IACbtB,KAAK,EAAE,SAAS;IAChBuB,UAAU,EAAE,KAAK;IACjBC,UAAU,EACRjG,QAAQ,CAACkG,EAAE,KAAK,SAAS,GACrB1F,KAAK,CAAC2F,uBAAuB,GAC7B;EACR;AACF,CAAC,CAAC;AAEF,eAAe7F,SAAS,CAACS,cAAc,CAAC","ignoreList":[]}
@@ -2,15 +2,14 @@ import { View, Text, Pressable, StyleSheet, TextInput } from 'react-native';
2
2
  import React, { useRef, useState } from 'react';
3
3
  import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
4
4
  import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
5
- const SplitTextInput = _ref => {
6
- let {
7
- styles,
8
- value,
9
- onChange,
10
- maxLength,
11
- keyboardType,
12
- hasError
13
- } = _ref;
5
+ const SplitTextInput = ({
6
+ styles,
7
+ value,
8
+ onChange,
9
+ maxLength,
10
+ keyboardType,
11
+ hasError
12
+ }) => {
14
13
  const inputRef = useRef();
15
14
  const boxArray = new Array(maxLength).fill(0);
16
15
  const [isInputBoxFocused, setIsInputBoxFocused] = useState(false);
@@ -34,7 +33,7 @@ const SplitTextInput = _ref => {
34
33
  const isLastValue = index === maxLength - 1;
35
34
  const isCodeComplete = value.length === maxLength;
36
35
  const isValueFocused = isCurrentValue || isLastValue && isCodeComplete;
37
- const splitBoxesStyle = Boolean(hasError) ? widgetStyles.errorSplitBoxes : isInputBoxFocused && isValueFocused || value[index] ? widgetStyles.focusedSplitBoxes : widgetStyles.splitBoxes;
36
+ const splitBoxesStyle = hasError ? widgetStyles.errorSplitBoxes : isInputBoxFocused && isValueFocused || value[index] ? widgetStyles.focusedSplitBoxes : widgetStyles.splitBoxes;
38
37
  return /*#__PURE__*/React.createElement(View, {
39
38
  style: splitBoxesStyle,
40
39
  key: index
@@ -1 +1 @@
1
- {"version":3,"names":["View","Text","Pressable","StyleSheet","TextInput","React","useRef","useState","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","SplitTextInput","_ref","styles","value","onChange","maxLength","keyboardType","hasError","inputRef","boxArray","Array","fill","isInputBoxFocused","setIsInputBoxFocused","handleOnPress","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","SPLIT_TEXT_INPUT_SCREEN","current","focus","handleOnBlur","boxDigit","_","index","digit","isCurrentValue","length","isLastValue","isCodeComplete","isValueFocused","splitBoxesStyle","Boolean","widgetStyles","errorSplitBoxes","focusedSplitBoxes","splitBoxes","createElement","style","key","Fragment","onPress","splitContainer","map","textInputHidden","onChangeText","ref","onBlur","create","width","flexDirection","justifyContent","borderColor","borderWidth","borderRadius","padding","minWidth","height","position","opacity"],"sources":["SplitTextInput.tsx"],"sourcesContent":["import {\n View,\n Text,\n Pressable,\n StyleSheet,\n TextInput,\n KeyboardTypeOptions,\n} from 'react-native';\nimport React, { useRef, useState } from 'react';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\nexport interface SplitTextInputProps {\n styles: any;\n value: string;\n onChange: (text: string) => void;\n maxLength: number;\n keyboardType: KeyboardTypeOptions;\n hasError: boolean;\n}\n\nconst SplitTextInput = ({\n styles,\n value,\n onChange,\n maxLength,\n keyboardType,\n hasError,\n}: SplitTextInputProps) => {\n const inputRef: any = useRef();\n const boxArray = new Array(maxLength).fill(0);\n const [isInputBoxFocused, setIsInputBoxFocused] = useState(false);\n\n const handleOnPress = () => {\n const cta = \"Split Text Input\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SPLIT_TEXT_INPUT_SCREEN, cta: cta }); \n\n setIsInputBoxFocused(true);\n inputRef.current.focus();\n };\n\n const handleOnBlur = () => {\n \n setIsInputBoxFocused(false);\n };\n\n const boxDigit = (_: number, index: number) => {\n const digit = value[index] || '';\n\n const isCurrentValue = index === value.length;\n const isLastValue = index === maxLength - 1;\n const isCodeComplete = value.length === maxLength;\n\n const isValueFocused = isCurrentValue || (isLastValue && isCodeComplete);\n\n const splitBoxesStyle = Boolean(hasError)\n ? widgetStyles.errorSplitBoxes\n : (isInputBoxFocused && isValueFocused) || value[index]\n ? widgetStyles.focusedSplitBoxes\n : widgetStyles.splitBoxes;\n\n return (\n <View style={splitBoxesStyle} key={index}>\n <Text style={styles}>{digit}</Text>\n </View>\n );\n };\n\n return (\n <>\n <Pressable onPress={handleOnPress} style={widgetStyles.splitContainer}>\n {boxArray.map(boxDigit)}\n </Pressable>\n <TextInput\n style={widgetStyles.textInputHidden}\n value={value}\n onChangeText={onChange}\n maxLength={maxLength}\n ref={inputRef}\n onBlur={handleOnBlur}\n keyboardType={keyboardType}\n />\n </>\n );\n};\n\nexport default SplitTextInput;\n\nconst widgetStyles = StyleSheet.create({\n splitContainer: {\n width: '100%',\n flexDirection: 'row',\n justifyContent: 'space-evenly',\n },\n splitBoxes: {\n borderColor: '#dddddd',\n borderWidth: 2,\n borderRadius: 5,\n padding: 12,\n minWidth: 50,\n },\n focusedSplitBoxes: {\n borderColor: '#666666',\n borderWidth: 2,\n borderRadius: 5,\n padding: 12,\n minWidth: 50,\n },\n errorSplitBoxes: {\n borderColor: '#DC2626',\n borderWidth: 2,\n borderRadius: 5,\n padding: 12,\n minWidth: 50,\n },\n textInputHidden: {\n height: 30,\n width: 300,\n position: 'absolute',\n opacity: 0,\n },\n});\n"],"mappings":"AAAA,SACEA,IA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EAAE,KAAK;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDf,UAAU,EAAE;IACVgB,WAAW,EAAE,SAAS;IACtBC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,CAAC;IACfC,OAAO,EAAE,EAAE;IACXC,QAAQ,EAAE;EACZ,CAAC;EACDrB,iBAAiB,EAAE;IACjBiB,WAAW,EAAE,SAAS;IACtBC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,CAAC;IACfC,OAAO,EAAE,EAAE;IACXC,QAAQ,EAAE;EACZ,CAAC;EACDtB,eAAe,EAAE;IACfkB,WAAW,EAAE,SAAS;IACtBC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,CAAC;IACfC,OAAO,EAAE,EAAE;IACXC,QAAQ,EAAE;EACZ,CAAC;EACDZ,eAAe,EAAE;IACfa,MAAM,EAAE,EAAE;IACVR,KAAK,EAAE,GAAG;IACVS,QAAQ,EAAE,UAAU;IACpBC,OAAO,EAAE;EACX;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["View","Text","Pressable","StyleSheet","TextInput","React","useRef","useState","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","SplitTextInput","styles","value","onChange","maxLength","keyboardType","hasError","inputRef","boxArray","Array","fill","isInputBoxFocused","setIsInputBoxFocused","handleOnPress","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","SPLIT_TEXT_INPUT_SCREEN","current","focus","handleOnBlur","boxDigit","_","index","digit","isCurrentValue","length","isLastValue","isCodeComplete","isValueFocused","splitBoxesStyle","widgetStyles","errorSplitBoxes","focusedSplitBoxes","splitBoxes","createElement","style","key","Fragment","onPress","splitContainer","map","textInputHidden","onChangeText","ref","onBlur","create","width","flexDirection","justifyContent","borderColor","borderWidth","borderRadius","padding","minWidth","height","position","opacity"],"sources":["SplitTextInput.tsx"],"sourcesContent":["import {\n View,\n Text,\n Pressable,\n StyleSheet,\n TextInput,\n KeyboardTypeOptions,\n} from 'react-native';\nimport React, { useRef, useState } from 'react';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\nexport interface SplitTextInputProps {\n styles: any;\n value: string;\n onChange: (text: string) => void;\n maxLength: number;\n keyboardType: KeyboardTypeOptions;\n hasError: boolean;\n}\n\nconst SplitTextInput = ({\n styles,\n value,\n onChange,\n maxLength,\n keyboardType,\n hasError,\n}: SplitTextInputProps) => {\n const inputRef: any = useRef();\n const boxArray = new Array(maxLength).fill(0);\n const [isInputBoxFocused, setIsInputBoxFocused] = useState(false);\n\n const handleOnPress = () => {\n const cta = \"Split Text Input\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SPLIT_TEXT_INPUT_SCREEN, cta: cta }); \n\n setIsInputBoxFocused(true);\n inputRef.current.focus();\n };\n\n const handleOnBlur = () => {\n \n setIsInputBoxFocused(false);\n };\n\n const boxDigit = (_: number, index: number) => {\n const digit = value[index] || '';\n\n const isCurrentValue = index === value.length;\n const isLastValue = index === maxLength - 1;\n const isCodeComplete = value.length === maxLength;\n\n const isValueFocused = isCurrentValue || (isLastValue && isCodeComplete);\n\n const splitBoxesStyle = hasError\n ? widgetStyles.errorSplitBoxes\n : (isInputBoxFocused && isValueFocused) || value[index]\n ? widgetStyles.focusedSplitBoxes\n : widgetStyles.splitBoxes;\n\n return (\n <View style={splitBoxesStyle} key={index}>\n <Text style={styles}>{digit}</Text>\n </View>\n );\n };\n\n return (\n <>\n <Pressable onPress={handleOnPress} style={widgetStyles.splitContainer}>\n {boxArray.map(boxDigit)}\n </Pressable>\n <TextInput\n style={widgetStyles.textInputHidden}\n value={value}\n onChangeText={onChange}\n maxLength={maxLength}\n ref={inputRef}\n onBlur={handleOnBlur}\n keyboardType={keyboardType}\n />\n </>\n );\n};\n\nexport default SplitTextInput;\n\nconst widgetStyles = StyleSheet.create({\n splitContainer: {\n width: '100%',\n flexDirection: 'row',\n justifyContent: 'space-evenly',\n },\n splitBoxes: {\n borderColor: '#dddddd',\n borderWidth: 2,\n borderRadius: 5,\n padding: 12,\n minWidth: 50,\n },\n focusedSplitBoxes: {\n borderColor: '#666666',\n borderWidth: 2,\n borderRadius: 5,\n padding: 12,\n minWidth: 50,\n },\n errorSplitBoxes: {\n borderColor: '#DC2626',\n borderWidth: 2,\n borderRadius: 5,\n padding: 12,\n minWidth: 50,\n },\n textInputHidden: {\n height: 30,\n width: 300,\n position: 'absolute',\n opacity: 0,\n },\n});\n"],"mappings":"AAAA,SACEA,IAAI,EACJC,IAAI,EACJC,SAAS,EACTC,UAAU,EACVC,SAAS,QAEJ,cAAc;AACrB,OAAOC,KAAK,IAAIC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC/C,SAASC,sBAAsB,EAAEC,2BAA2B,EAAEC,kBAAkB,QAAQ,2CAA2C;AACnI,SAASC,uBAAuB,QAAQ,6CAA6C;AAWrF,MAAMC,cAAc,GAAGA,CAAC;EACtBC,MAAM;EACNC,KAAK;EACLC,QAAQ;EACRC,SAAS;EACTC,YAAY;EACZC;AACmB,CAAC,KAAK;EACzB,MAAMC,QAAa,GAAGb,MAAM,CAAC,CAAC;EAC9B,MAAMc,QAAQ,GAAG,IAAIC,KAAK,CAACL,SAAS,CAAC,CAACM,IAAI,CAAC,CAAC,CAAC;EAC7C,MAAM,CAACC,iBAAiB,EAAEC,oBAAoB,CAAC,GAAGjB,QAAQ,CAAC,KAAK,CAAC;EAEjE,MAAMkB,aAAa,GAAGA,CAAA,KAAM;IAC1B,MAAMC,GAAG,GAAG,kBAAkB;IAC9Bf,uBAAuB,CAAC;MAAEgB,aAAa,EAAEjB,kBAAkB,CAACkB,GAAG;MAAEC,SAAS,EAAEpB,2BAA2B,CAACqB,cAAc;MAAEC,UAAU,EAAEvB,sBAAs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AAC,eACZ/B,KAAA,CAAA6C,aAAA,CAAC9C,SAAS;IACR+C,KAAK,EAAEL,YAAY,CAACW,eAAgB;IACpC3C,KAAK,EAAEA,KAAM;IACb4C,YAAY,EAAE3C,QAAS;IACvBC,SAAS,EAAEA,SAAU;IACrB2C,GAAG,EAAExC,QAAS;IACdyC,MAAM,EAAEzB,YAAa;IACrBlB,YAAY,EAAEA;EAAa,CAC5B,CACD,CAAC;AAEP,CAAC;AAED,eAAeL,cAAc;AAE7B,MAAMkC,YAAY,GAAG3C,UAAU,CAAC0D,MAAM,CAAC;EACrCN,cAAc,EAAE;IACdO,KAAK,EAAE,MAAM;IACbC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDf,UAAU,EAAE;IACVgB,WAAW,EAAE,SAAS;IACtBC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,CAAC;IACfC,OAAO,EAAE,EAAE;IACXC,QAAQ,EAAE;EACZ,CAAC;EACDrB,iBAAiB,EAAE;IACjBiB,WAAW,EAAE,SAAS;IACtBC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,CAAC;IACfC,OAAO,EAAE,EAAE;IACXC,QAAQ,EAAE;EACZ,CAAC;EACDtB,eAAe,EAAE;IACfkB,WAAW,EAAE,SAAS;IACtBC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,CAAC;IACfC,OAAO,EAAE,EAAE;IACXC,QAAQ,EAAE;EACZ,CAAC;EACDZ,eAAe,EAAE;IACfa,MAAM,EAAE,EAAE;IACVR,KAAK,EAAE,GAAG;IACVS,QAAQ,EAAE,UAAU;IACpBC,OAAO,EAAE;EACX;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ import React, { forwardRef, useEffect, useImperativeHandle, useState } from 'react';
2
+ import { Text } from 'react-native';
3
+ import { CommonStyles } from '../../styles/executionTasks/CommonStyles';
4
+ import { formatTime } from '../executiontasks/collectPayment/PaymentUtils';
5
+ const DEFAULT_TIMER = 120;
6
+ export const Timer = /*#__PURE__*/forwardRef((props, ref) => {
7
+ const {
8
+ onTimerEnd,
9
+ timer = DEFAULT_TIMER,
10
+ singleValue = false
11
+ } = props;
12
+ const [backDisableCounter, setBackDisableCounter] = useState(timer);
13
+ useImperativeHandle(ref, () => ({
14
+ resetTimer: () => setBackDisableCounter(timer)
15
+ }));
16
+ useEffect(() => {
17
+ const clearDisableCounter = setTimeout(() => {
18
+ backDisableCounter > 0 && setBackDisableCounter(prev => prev - 1);
19
+ }, 1000);
20
+ if (backDisableCounter === 0) {
21
+ onTimerEnd && onTimerEnd();
22
+ clearTimeout(clearDisableCounter);
23
+ }
24
+ return () => clearTimeout(clearDisableCounter);
25
+ }, [backDisableCounter]);
26
+ return backDisableCounter > 0 ? singleValue ? /*#__PURE__*/React.createElement(Text, null, backDisableCounter) : /*#__PURE__*/React.createElement(Text, {
27
+ style: [CommonStyles.subText, {
28
+ color: '#0891B2'
29
+ }]
30
+ }, formatTime(backDisableCounter)) : null;
31
+ });
32
+ //# sourceMappingURL=Timer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","useEffect","useImperativeHandle","useState","Text","CommonStyles","formatTime","DEFAULT_TIMER","Timer","props","ref","onTimerEnd","timer","singleValue","backDisableCounter","setBackDisableCounter","resetTimer","clearDisableCounter","setTimeout","prev","clearTimeout","createElement","style","subText","color"],"sources":["Timer.tsx"],"sourcesContent":["import React, {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useState,\n} from 'react';\nimport { Text } from 'react-native';\nimport { CommonStyles } from '../../styles/executionTasks/CommonStyles';\nimport { formatTime } from '../executiontasks/collectPayment/PaymentUtils';\n\nconst DEFAULT_TIMER = 120;\n\nexport const Timer = forwardRef(\n (\n props: {\n ref: any;\n singleValue?: boolean;\n timer?: number;\n onTimerEnd?: () => void;\n },\n ref: any\n ) => {\n const { onTimerEnd, timer = DEFAULT_TIMER, singleValue = false } = props;\n const [backDisableCounter, setBackDisableCounter] = useState(timer);\n\n useImperativeHandle(ref, () => ({\n resetTimer: () => setBackDisableCounter(timer),\n }));\n\n useEffect(() => {\n const clearDisableCounter = setTimeout(() => {\n backDisableCounter > 0 && setBackDisableCounter((prev) => prev - 1);\n }, 1000);\n\n if (backDisableCounter === 0) {\n onTimerEnd && onTimerEnd();\n clearTimeout(clearDisableCounter);\n }\n\n return () => clearTimeout(clearDisableCounter);\n }, [backDisableCounter]);\n\n return backDisableCounter > 0 ? (\n singleValue ? (\n <Text>{backDisableCounter}</Text>\n ) : (\n <Text style={[CommonStyles.subText, { color: '#0891B2' }]}>\n {formatTime(backDisableCounter)}\n </Text>\n )\n ) : null;\n }\n);\n"],"mappings":"AAAA,OAAOA,KAAK,IACVC,UAAU,EACVC,SAAS,EACTC,mBAAmB,EACnBC,QAAQ,QACH,OAAO;AACd,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,YAAY,QAAQ,0CAA0C;AACvE,SAASC,UAAU,QAAQ,+CAA+C;AAE1E,MAAMC,aAAa,GAAG,GAAG;AAEzB,OAAO,MAAMC,KAAK,gBAAGR,UAAU,CAC7B,CACES,KAKC,EACDC,GAAQ,KACL;EACH,MAAM;IAAEC,UAAU;IAAEC,KAAK,GAAGL,aAAa;IAAEM,WAAW,GAAG;EAAM,CAAC,GAAGJ,KAAK;EACxE,MAAM,CAACK,kBAAkB,EAAEC,qBAAqB,CAAC,GAAGZ,QAAQ,CAACS,KAAK,CAAC;EAEnEV,mBAAmB,CAACQ,GAAG,EAAE,OAAO;IAC9BM,UAAU,EAAEA,CAAA,KAAMD,qBAAqB,CAACH,KAAK;EAC/C,CAAC,CAAC,CAAC;EAEHX,SAAS,CAAC,MAAM;IACd,MAAMgB,mBAAmB,GAAGC,UAAU,CAAC,MAAM;MAC3CJ,kBAAkB,GAAG,CAAC,IAAIC,qBAAqB,CAAEI,IAAI,IAAKA,IAAI,GAAG,CAAC,CAAC;IACrE,CAAC,EAAE,IAAI,CAAC;IAER,IAAIL,kBAAkB,KAAK,CAAC,EAAE;MAC5BH,UAAU,IAAIA,UAAU,CAAC,CAAC;MAC1BS,YAAY,CAACH,mBAAmB,CAAC;IACnC;IAEA,OAAO,MAAMG,YAAY,CAACH,mBAAmB,CAAC;EAChD,CAAC,EAAE,CAACH,kBAAkB,CAAC,CAAC;EAExB,OAAOA,kBAAkB,GAAG,CAAC,GAC3BD,WAAW,gBACTd,KAAA,CAAAsB,aAAA,CAACjB,IAAI,QAAEU,kBAAyB,CAAC,gBAEjCf,KAAA,CAAAsB,aAAA,CAACjB,IAAI;IAACkB,KAAK,EAAE,CAACjB,YAAY,CAACkB,OAAO,EAAE;MAAEC,KAAK,EAAE;IAAU,CAAC;EAAE,GACvDlB,UAAU,CAACQ,kBAAkB,CAC1B,CACP,GACC,IAAI;AACV,CACF,CAAC","ignoreList":[]}
@@ -1,7 +1,10 @@
1
1
  export const ENDPOINTS = {
2
2
  JOB_REMOVAL: dispatchId => `/dispatches/${dispatchId}/multiple-jobs`,
3
3
  // NEW CODE
4
- BULK_JOB_UPDATE: dispatchId => `/api/v2/produce/${dispatchId}/job-bulk-update`
4
+ BULK_JOB_UPDATE: dispatchId => `/api/v2/produce/${dispatchId}/job-bulk-update`,
5
+ GENERATE_QR: '/core/api/v1/payment-service/qrCode',
6
+ PAYMENT_STATUS: '/core/api/v1/payment-service/status/',
7
+ PAYMENT_MODES: '/core/api/v1/payment-service/config?isDefault=true'
5
8
  };
6
9
  export const API_CONFIG = {
7
10
  timeout: 15000 // timeout in millis i.e 15s
@@ -1 +1 @@
1
- {"version":3,"names":["ENDPOINTS","JOB_REMOVAL","dispatchId","BULK_JOB_UPDATE","API_CONFIG","timeout"],"sources":["apiConstants.ts"],"sourcesContent":["export const ENDPOINTS = {\n JOB_REMOVAL: (dispatchId: string) =>\n `/dispatches/${dispatchId}/multiple-jobs`,\n // NEW CODE\n BULK_JOB_UPDATE: (dispatchId: string) =>\n `/api/v2/produce/${dispatchId}/job-bulk-update`,\n};\n\nexport const API_CONFIG = {\n timeout: 15000, // timeout in millis i.e 15s\n};\n"],"mappings":"AAAA,OAAO,MAAMA,SAAS,GAAG;EACvBC,WAAW,EAAGC,UAAkB,IAC7B,eAAcA,UAAW,gBAAe;EAC3C;EACAC,eAAe,EAAGD,UAAkB,IACjC,mBAAkBA,UAAW;AAClC,CAAC;AAED,OAAO,MAAME,UAAU,GAAG;EACxBC,OAAO,EAAE,KAAK,CAAE;AAClB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["ENDPOINTS","JOB_REMOVAL","dispatchId","BULK_JOB_UPDATE","GENERATE_QR","PAYMENT_STATUS","PAYMENT_MODES","API_CONFIG","timeout"],"sources":["apiConstants.ts"],"sourcesContent":["export const ENDPOINTS = {\n JOB_REMOVAL: (dispatchId: string) =>\n `/dispatches/${dispatchId}/multiple-jobs`,\n // NEW CODE\n BULK_JOB_UPDATE: (dispatchId: string) =>\n `/api/v2/produce/${dispatchId}/job-bulk-update`,\n GENERATE_QR: '/core/api/v1/payment-service/qrCode',\n PAYMENT_STATUS: '/core/api/v1/payment-service/status/',\n PAYMENT_MODES: '/core/api/v1/payment-service/config?isDefault=true',\n};\n\nexport const API_CONFIG = {\n timeout: 15000, // timeout in millis i.e 15s\n};\n"],"mappings":"AAAA,OAAO,MAAMA,SAAS,GAAG;EACvBC,WAAW,EAAGC,UAAkB,IAC9B,eAAeA,UAAU,gBAAgB;EAC3C;EACAC,eAAe,EAAGD,UAAkB,IAClC,mBAAmBA,UAAU,kBAAkB;EACjDE,WAAW,EAAE,qCAAqC;EAClDC,cAAc,EAAE,sCAAsC;EACtDC,aAAa,EAAE;AACjB,CAAC;AAED,OAAO,MAAMC,UAAU,GAAG;EACxBC,OAAO,EAAE,KAAK,CAAE;AAClB,CAAC","ignoreList":[]}
@@ -9,4 +9,7 @@ export const DEFAULT_DELIVER_MESSAGE = 'Confirm Drop of $ orders';
9
9
  export const DEFAULT_SIGN_ET_MESSAGE = 'Please sign here';
10
10
  export const REASON_NOT_USED = 'NOT_TO_BE_USED';
11
11
  export const GO_BACK_EVENT_CODE = 'E-099';
12
+ export const PAYMENT_NOTIFICATION = 'PAYMENT_COMPLETED';
13
+ export const EMAIL_REGEX = '^([a-z0-9_.+-]+)@([da-z.-]+).([a-z.]{2,6})$';
14
+ export const PAYMENT_SUCCESS_DEFAULT_TIMEOUT = 3000;
12
15
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["LOCAL_STORAGE_KEY_PREFIX","DEFAULT_NOTIFICATION_TITLE","DEFAULT_NOTIFICATION_DESCRIPTION","DEFAULT_INTERVAL","DEFAULT_PICKUP_TITLE","DEFAULT_PICKUP_MESSAGE","DEFAULT_DELIVER_TITLE","DEFAULT_DELIVER_MESSAGE","DEFAULT_SIGN_ET_MESSAGE","REASON_NOT_USED","GO_BACK_EVENT_CODE"],"sources":["constants.ts"],"sourcesContent":["export const LOCAL_STORAGE_KEY_PREFIX = '@dispatch-sdk:';\nexport const DEFAULT_NOTIFICATION_TITLE = 'Dispatch Sync Manager';\nexport const DEFAULT_NOTIFICATION_DESCRIPTION = 'Syncing Events & Files';\nexport const DEFAULT_INTERVAL = 10000;\nexport const DEFAULT_PICKUP_TITLE = 'Pickup Order';\nexport const DEFAULT_PICKUP_MESSAGE = 'Confirm Pickup of $ orders';\nexport const DEFAULT_DELIVER_TITLE = 'Drop Order';\nexport const DEFAULT_DELIVER_MESSAGE = 'Confirm Drop of $ orders';\nexport const DEFAULT_SIGN_ET_MESSAGE =\n 'Please sign here';\nexport const REASON_NOT_USED = 'NOT_TO_BE_USED';\nexport const GO_BACK_EVENT_CODE = 'E-099';\n"],"mappings":"AAAA,OAAO,MAAMA,wBAAwB,GAAG,gBAAgB;AACxD,OAAO,MAAMC,0BAA0B,GAAG,uBAAuB;AACjE,OAAO,MAAMC,gCAAgC,GAAG,wBAAwB;AACxE,OAAO,MAAMC,gBAAgB,GAAG,KAAK;AACrC,OAAO,MAAMC,oBAAoB,GAAG,cAAc;AAClD,OAAO,MAAMC,sBAAsB,GAAG,4BAA4B;AAClE,OAAO,MAAMC,qBAAqB,GAAG,YAAY;AACjD,OAAO,MAAMC,uBAAuB,GAAG,0BAA0B;AACjE,OAAO,MAAMC,uBAAuB,GAClC,kBAAkB;AACpB,OAAO,MAAMC,eAAe,GAAG,gBAAgB;AAC/C,OAAO,MAAMC,kBAAkB,GAAG,OAAO","ignoreList":[]}
1
+ {"version":3,"names":["LOCAL_STORAGE_KEY_PREFIX","DEFAULT_NOTIFICATION_TITLE","DEFAULT_NOTIFICATION_DESCRIPTION","DEFAULT_INTERVAL","DEFAULT_PICKUP_TITLE","DEFAULT_PICKUP_MESSAGE","DEFAULT_DELIVER_TITLE","DEFAULT_DELIVER_MESSAGE","DEFAULT_SIGN_ET_MESSAGE","REASON_NOT_USED","GO_BACK_EVENT_CODE","PAYMENT_NOTIFICATION","EMAIL_REGEX","PAYMENT_SUCCESS_DEFAULT_TIMEOUT"],"sources":["constants.ts"],"sourcesContent":["export const LOCAL_STORAGE_KEY_PREFIX = '@dispatch-sdk:';\nexport const DEFAULT_NOTIFICATION_TITLE = 'Dispatch Sync Manager';\nexport const DEFAULT_NOTIFICATION_DESCRIPTION = 'Syncing Events & Files';\nexport const DEFAULT_INTERVAL = 10000;\nexport const DEFAULT_PICKUP_TITLE = 'Pickup Order';\nexport const DEFAULT_PICKUP_MESSAGE = 'Confirm Pickup of $ orders';\nexport const DEFAULT_DELIVER_TITLE = 'Drop Order';\nexport const DEFAULT_DELIVER_MESSAGE = 'Confirm Drop of $ orders';\nexport const DEFAULT_SIGN_ET_MESSAGE =\n 'Please sign here';\nexport const REASON_NOT_USED = 'NOT_TO_BE_USED';\nexport const GO_BACK_EVENT_CODE = 'E-099';\nexport const PAYMENT_NOTIFICATION = 'PAYMENT_COMPLETED';\nexport const EMAIL_REGEX = '^([a-z0-9_.+-]+)@([da-z.-]+).([a-z.]{2,6})$';\nexport const PAYMENT_SUCCESS_DEFAULT_TIMEOUT = 3000;\n"],"mappings":"AAAA,OAAO,MAAMA,wBAAwB,GAAG,gBAAgB;AACxD,OAAO,MAAMC,0BAA0B,GAAG,uBAAuB;AACjE,OAAO,MAAMC,gCAAgC,GAAG,wBAAwB;AACxE,OAAO,MAAMC,gBAAgB,GAAG,KAAK;AACrC,OAAO,MAAMC,oBAAoB,GAAG,cAAc;AAClD,OAAO,MAAMC,sBAAsB,GAAG,4BAA4B;AAClE,OAAO,MAAMC,qBAAqB,GAAG,YAAY;AACjD,OAAO,MAAMC,uBAAuB,GAAG,0BAA0B;AACjE,OAAO,MAAMC,uBAAuB,GAClC,kBAAkB;AACpB,OAAO,MAAMC,eAAe,GAAG,gBAAgB;AAC/C,OAAO,MAAMC,kBAAkB,GAAG,OAAO;AACzC,OAAO,MAAMC,oBAAoB,GAAG,mBAAmB;AACvD,OAAO,MAAMC,WAAW,GAAG,6CAA6C;AACxE,OAAO,MAAMC,+BAA+B,GAAG,IAAI","ignoreList":[]}
@@ -1,6 +1,6 @@
1
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  /**
5
5
  * A general error class that should be used for all errors in Expo modules.
6
6
  * Guarantees a `code` field that can be used to differentiate between different
@@ -15,5 +15,8 @@ const dispatchEvent = (type, customEtName, data) => {
15
15
  ); */
16
16
  eventEmitter.emit(events(type, customEtName), data);
17
17
  };
18
+ export const dispatch = (type, data) => {
19
+ eventEmitter.emit(type, data);
20
+ };
18
21
  export default dispatchEvent;
19
22
  //# sourceMappingURL=EventDispatcher.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["NativeEventEmitter","NativeModules","BaseEvents","RNEventEmitter","eventEmitter","events","type","customEtName","dispatchEvent","data","emit"],"sources":["EventDispatcher.ts"],"sourcesContent":["import { NativeEventEmitter, NativeModules } from 'react-native';\nimport { BaseEvents } from './constants';\nimport type { eventType } from './interface';\nimport Logger, { LOG_TYPE } from '../utils/Logger';\n\nconst { RNEventEmitter } = NativeModules;\nconst eventEmitter = new NativeEventEmitter(RNEventEmitter);\n\nconst events = (type: eventType, customEtName: string) => {\n return `${BaseEvents[type]}:${customEtName}`;\n};\n\nconst dispatchEvent = (type: eventType, customEtName: string, data: any) => {\n /* Logger.getInstance().logEvent(\n 'eventOutputData: ',\n JSON.stringify({ type, customEtName, data }),\n LOG_TYPE.SDK_INFO\n ); */\n eventEmitter.emit(events(type, customEtName), data);\n};\n\nexport default dispatchEvent;\n"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAChE,SAASC,UAAU,QAAQ,aAAa;AAIxC,MAAM;EAAEC;AAAe,CAAC,GAAGF,aAAa;AACxC,MAAMG,YAAY,GAAG,IAAIJ,kBAAkB,CAACG,cAAc,CAAC;AAE3D,MAAME,MAAM,GAAGA,CAACC,IAAe,EAAEC,YAAoB,KAAK;EACxD,OAAQ,GAAEL,UAAU,CAACI,IAAI,CAAE,IAAGC,YAAa,EAAC;AAC9C,CAAC;AAED,MAAMC,aAAa,GAAGA,CAACF,IAAe,EAAEC,YAAoB,EAAEE,IAAS,KAAK;EAC1E;AACF;AACA;AACA;AACA;EACEL,YAAY,CAACM,IAAI,CAACL,MAAM,CAACC,IAAI,EAAEC,YAAY,CAAC,EAAEE,IAAI,CAAC;AACrD,CAAC;AAED,eAAeD,aAAa","ignoreList":[]}
1
+ {"version":3,"names":["NativeEventEmitter","NativeModules","BaseEvents","RNEventEmitter","eventEmitter","events","type","customEtName","dispatchEvent","data","emit","dispatch"],"sources":["EventDispatcher.ts"],"sourcesContent":["import { NativeEventEmitter, NativeModules } from 'react-native';\nimport { BaseEvents } from './constants';\nimport type { eventType } from './interface';\nimport Logger, { LOG_TYPE } from '../utils/Logger';\n\nconst { RNEventEmitter } = NativeModules;\nconst eventEmitter = new NativeEventEmitter(RNEventEmitter);\n\nconst events = (type: eventType, customEtName: string) => {\n return `${BaseEvents[type]}:${customEtName}`;\n};\n\nconst dispatchEvent = (type: eventType, customEtName: string, data: any) => {\n /* Logger.getInstance().logEvent(\n 'eventOutputData: ',\n JSON.stringify({ type, customEtName, data }),\n LOG_TYPE.SDK_INFO\n ); */\n eventEmitter.emit(events(type, customEtName), data);\n};\n\nexport const dispatch = (type: string, data: any) => {\n eventEmitter.emit(type, data);\n};\n\nexport default dispatchEvent;\n"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAChE,SAASC,UAAU,QAAQ,aAAa;AAIxC,MAAM;EAAEC;AAAe,CAAC,GAAGF,aAAa;AACxC,MAAMG,YAAY,GAAG,IAAIJ,kBAAkB,CAACG,cAAc,CAAC;AAE3D,MAAME,MAAM,GAAGA,CAACC,IAAe,EAAEC,YAAoB,KAAK;EACxD,OAAO,GAAGL,UAAU,CAACI,IAAI,CAAC,IAAIC,YAAY,EAAE;AAC9C,CAAC;AAED,MAAMC,aAAa,GAAGA,CAACF,IAAe,EAAEC,YAAoB,EAAEE,IAAS,KAAK;EAC1E;AACF;AACA;AACA;AACA;EACEL,YAAY,CAACM,IAAI,CAACL,MAAM,CAACC,IAAI,EAAEC,YAAY,CAAC,EAAEE,IAAI,CAAC;AACrD,CAAC;AAED,OAAO,MAAME,QAAQ,GAAGA,CAACL,IAAY,EAAEG,IAAS,KAAK;EACnDL,YAAY,CAACM,IAAI,CAACJ,IAAI,EAAEG,IAAI,CAAC;AAC/B,CAAC;AAED,eAAeD,aAAa","ignoreList":[]}
@@ -3,6 +3,7 @@ export const BaseEvents = {
3
3
  END: `onTaskEnd`,
4
4
  BACK: `onTaskBack`,
5
5
  ON_SCAN: `onScan`,
6
- ON_SCAN_REMOVE: `onScanRemove`
6
+ ON_SCAN_REMOVE: `onScanRemove`,
7
+ ON_CLICK: `onClick`
7
8
  };
8
9
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseEvents","START","END","BACK","ON_SCAN","ON_SCAN_REMOVE"],"sources":["constants.ts"],"sourcesContent":["export const BaseEvents = {\n START: `onTaskStart`,\n END: `onTaskEnd`,\n BACK: `onTaskBack`,\n ON_SCAN: `onScan`,\n ON_SCAN_REMOVE: `onScanRemove`,\n};\n"],"mappings":"AAAA,OAAO,MAAMA,UAAU,GAAG;EACxBC,KAAK,EAAG,aAAY;EACpBC,GAAG,EAAG,WAAU;EAChBC,IAAI,EAAG,YAAW;EAClBC,OAAO,EAAG,QAAO;EACjBC,cAAc,EAAG;AACnB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["BaseEvents","START","END","BACK","ON_SCAN","ON_SCAN_REMOVE","ON_CLICK"],"sources":["constants.ts"],"sourcesContent":["export const BaseEvents = {\n START: `onTaskStart`,\n END: `onTaskEnd`,\n BACK: `onTaskBack`,\n ON_SCAN: `onScan`,\n ON_SCAN_REMOVE: `onScanRemove`,\n ON_CLICK: `onClick`,\n};\n"],"mappings":"AAAA,OAAO,MAAMA,UAAU,GAAG;EACxBC,KAAK,EAAE,aAAa;EACpBC,GAAG,EAAE,WAAW;EAChBC,IAAI,EAAE,YAAY;EAClBC,OAAO,EAAE,QAAQ;EACjBC,cAAc,EAAE,cAAc;EAC9BC,QAAQ,EAAE;AACZ,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["interface.ts"],"sourcesContent":["export type eventType = 'START' | 'END' | 'BACK' | 'ON_SCAN' | 'ON_SCAN_REMOVE';\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["interface.ts"],"sourcesContent":["export type eventType =\n | 'START'\n | 'END'\n | 'BACK'\n | 'ON_SCAN'\n | 'ON_SCAN_REMOVE'\n | 'ON_CLICK';\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { Path, Svg } from 'react-native-svg';
3
+ import { View } from 'react-native';
4
+ const CircleMark = () => {
5
+ return /*#__PURE__*/React.createElement(View, {
6
+ style: {
7
+ alignSelf: 'center'
8
+ }
9
+ }, /*#__PURE__*/React.createElement(Svg, {
10
+ width: "20",
11
+ height: "20",
12
+ viewBox: "0 0 20 20",
13
+ fill: "none"
14
+ }, /*#__PURE__*/React.createElement(Path, {
15
+ d: "M12.9414 7.06434C12.6973 6.82067 12.3016 6.82067 12.0578 7.06434L10 9.11891L7.94141 7.06434C7.69727 6.82067 7.30156 6.82067 7.05781 7.06434C6.81406 7.308 6.81367 7.70293 7.05781 7.94621L9.11719 10L7.05859 12.0546C6.81445 12.2982 6.81445 12.6932 7.05859 12.9364C7.30258 13.1799 7.69805 13.1803 7.94219 12.9364L10 10.8811L12.0582 12.9353C12.3022 13.1788 12.6977 13.1791 12.9418 12.9353C13.1859 12.6916 13.1859 12.2967 12.9418 12.0534L10.8828 10L12.941 7.94582C13.1875 7.70371 13.1875 7.30605 12.9414 7.06434ZM10 0.0195312C4.47656 0.0195312 0 4.48735 0 10C0 15.5126 4.47656 19.9805 10 19.9805C15.5234 19.9805 20 15.5126 20 10C20 4.48735 15.5234 0.0195312 10 0.0195312ZM10 18.7329C5.17578 18.7329 1.25 14.8148 1.25 10C1.25 5.1852 5.17578 1.26709 10 1.26709C14.8242 1.26709 18.75 5.1852 18.75 10C18.75 14.8148 14.8242 18.7329 10 18.7329Z",
16
+ fill: "#A3AAC2"
17
+ })));
18
+ };
19
+ export default CircleMark;
20
+ //# sourceMappingURL=CircleMark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Path","Svg","View","CircleMark","createElement","style","alignSelf","width","height","viewBox","fill","d"],"sources":["CircleMark.tsx"],"sourcesContent":["import React from 'react';\nimport { Path, Svg } from 'react-native-svg';\nimport { View } from 'react-native';\n\nconst CircleMark = () => {\n return (\n <View style={{ alignSelf: 'center' }}>\n <Svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\n <Path\n d=\"M12.9414 7.06434C12.6973 6.82067 12.3016 6.82067 12.0578 7.06434L10 9.11891L7.94141 7.06434C7.69727 6.82067 7.30156 6.82067 7.05781 7.06434C6.81406 7.308 6.81367 7.70293 7.05781 7.94621L9.11719 10L7.05859 12.0546C6.81445 12.2982 6.81445 12.6932 7.05859 12.9364C7.30258 13.1799 7.69805 13.1803 7.94219 12.9364L10 10.8811L12.0582 12.9353C12.3022 13.1788 12.6977 13.1791 12.9418 12.9353C13.1859 12.6916 13.1859 12.2967 12.9418 12.0534L10.8828 10L12.941 7.94582C13.1875 7.70371 13.1875 7.30605 12.9414 7.06434ZM10 0.0195312C4.47656 0.0195312 0 4.48735 0 10C0 15.5126 4.47656 19.9805 10 19.9805C15.5234 19.9805 20 15.5126 20 10C20 4.48735 15.5234 0.0195312 10 0.0195312ZM10 18.7329C5.17578 18.7329 1.25 14.8148 1.25 10C1.25 5.1852 5.17578 1.26709 10 1.26709C14.8242 1.26709 18.75 5.1852 18.75 10C18.75 14.8148 14.8242 18.7329 10 18.7329Z\"\n fill=\"#A3AAC2\"\n />\n </Svg>\n </View>\n );\n};\n\nexport default CircleMark;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAC5C,SAASC,IAAI,QAAQ,cAAc;AAEnC,MAAMC,UAAU,GAAGA,CAAA,KAAM;EACvB,oBACEJ,KAAA,CAAAK,aAAA,CAACF,IAAI;IAACG,KAAK,EAAE;MAAEC,SAAS,EAAE;IAAS;EAAE,gBACnCP,KAAA,CAAAK,aAAA,CAACH,GAAG;IAACM,KAAK,EAAC,IAAI;IAACC,MAAM,EAAC,IAAI;IAACC,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBACzDX,KAAA,CAAAK,aAAA,CAACJ,IAAI;IACHW,CAAC,EAAC,k0BAAk0B;IACp0BD,IAAI,EAAC;EAAS,CACf,CACE,CACD,CAAC;AAEX,CAAC;AAED,eAAeP,UAAU","ignoreList":[]}
@@ -0,0 +1,62 @@
1
+ import React from 'react';
2
+ import { Path, Svg } from 'react-native-svg';
3
+ import { View } from 'react-native';
4
+ const FailedIcon = props => {
5
+ return /*#__PURE__*/React.createElement(View, {
6
+ style: {
7
+ alignSelf: 'center'
8
+ }
9
+ }, /*#__PURE__*/React.createElement(Svg, {
10
+ width: props.width || '116',
11
+ height: props.height || '116',
12
+ viewBox: "0 0 116 116",
13
+ fill: "none"
14
+ }, /*#__PURE__*/React.createElement(Path, {
15
+ d: "M98.8211 78.6368L67.1932 24.6945C62.2744 16.3069 50.1479 16.3069 45.2291 24.6945L13.599 78.6368C8.62216 87.1249 14.7434 97.808 24.5811 97.808H87.8412C97.6789 97.808 103.798 87.1249 98.8211 78.6368Z",
16
+ fill: "#FCA5A5"
17
+ }), /*#__PURE__*/React.createElement(Path, {
18
+ d: "M97.4808 32.9039C101.177 32.9039 104.173 29.9076 104.173 26.2116C104.173 22.5155 101.177 19.5193 97.4808 19.5193C93.7847 19.5193 90.7885 22.5155 90.7885 26.2116C90.7885 29.9076 93.7847 32.9039 97.4808 32.9039Z",
19
+ fill: "#99EDF6"
20
+ }), /*#__PURE__*/React.createElement(Path, {
21
+ d: "M21.0766 29.5577C23.8472 29.5577 26.0958 31.8041 26.0958 34.577C26.0958 37.3498 23.8472 39.5962 21.0766 39.5962C18.3038 39.5962 16.0574 37.3498 16.0574 34.577C16.0574 31.8041 18.3038 29.5577 21.0766 29.5577Z",
22
+ fill: "#99EDF6"
23
+ }), /*#__PURE__*/React.createElement(Path, {
24
+ d: "M60.1528 74.6907C61.1633 75.699 61.7879 77.0952 61.7879 78.6347C61.7879 80.1741 61.1633 81.5704 60.1528 82.5787C59.1445 83.5872 57.7502 84.2116 56.2112 84.2116C53.1305 84.2116 50.6343 81.7154 50.6343 78.6347C50.6343 77.0954 51.2589 75.699 52.2672 74.6907C53.2777 73.6821 54.6697 73.0577 56.2112 73.0577C57.7504 73.0577 59.1447 73.6824 60.1528 74.6907Z",
25
+ fill: "#1F347A"
26
+ }), /*#__PURE__*/React.createElement(Path, {
27
+ d: "M61.7884 36.2499V63.0192C61.7884 66.0998 59.2899 68.5961 56.2114 68.5961C53.1308 68.5961 50.6345 66.0998 50.6345 63.0192V36.2499C50.6345 33.1692 53.1308 30.673 56.2114 30.673C57.7507 30.673 59.1449 31.2976 60.153 32.3059C61.164 33.3142 61.7884 34.7107 61.7884 36.2499Z",
28
+ fill: "#1F347A"
29
+ }), /*#__PURE__*/React.createElement(Path, {
30
+ d: "M101.384 104.288C102.309 104.288 103.058 103.539 103.058 102.615C103.058 101.691 102.309 100.942 101.384 100.942C100.46 100.942 99.7114 101.691 99.7114 102.615C99.7114 103.539 100.46 104.288 101.384 104.288Z",
31
+ fill: "#1F347A"
32
+ }), /*#__PURE__*/React.createElement(Path, {
33
+ d: "M100.269 46.2884C101.193 46.2884 101.942 45.5394 101.942 44.6153C101.942 43.6913 101.193 42.9423 100.269 42.9423C99.3446 42.9423 98.5956 43.6913 98.5956 44.6153C98.5956 45.5394 99.3446 46.2884 100.269 46.2884Z",
34
+ fill: "#1F347A"
35
+ }), /*#__PURE__*/React.createElement(Path, {
36
+ d: "M87.9996 13.9424C88.9236 13.9424 89.6727 13.1933 89.6727 12.2693C89.6727 11.3453 88.9236 10.5962 87.9996 10.5962C87.0756 10.5962 86.3265 11.3453 86.3265 12.2693C86.3265 13.1933 87.0756 13.9424 87.9996 13.9424Z",
37
+ fill: "#1F347A"
38
+ }), /*#__PURE__*/React.createElement(Path, {
39
+ d: "M39.4805 105.404C40.4045 105.404 41.1535 104.655 41.1535 103.731C41.1535 102.807 40.4045 102.058 39.4805 102.058C38.5564 102.058 37.8074 102.807 37.8074 103.731C37.8074 104.655 38.5564 105.404 39.4805 105.404Z",
40
+ fill: "#1F347A"
41
+ }), /*#__PURE__*/React.createElement(Path, {
42
+ d: "M26.6534 15.0577C27.5774 15.0577 28.3265 14.3086 28.3265 13.3846C28.3265 12.4606 27.5774 11.7115 26.6534 11.7115C25.7294 11.7115 24.9803 12.4606 24.9803 13.3846C24.9803 14.3086 25.7294 15.0577 26.6534 15.0577Z",
43
+ fill: "#1F347A"
44
+ }), /*#__PURE__*/React.createElement(Path, {
45
+ d: "M13.2693 51.8654C14.1933 51.8654 14.9423 51.1163 14.9423 50.1923C14.9423 49.2683 14.1933 48.5192 13.2693 48.5192C12.3453 48.5192 11.5962 49.2683 11.5962 50.1923C11.5962 51.1163 12.3453 51.8654 13.2693 51.8654Z",
46
+ fill: "#1F347A"
47
+ }), /*#__PURE__*/React.createElement(Path, {
48
+ d: "M87.8411 98.9235H24.5809C19.5559 98.9235 15.0645 96.3202 12.5667 91.9599C10.0687 87.5992 10.0948 82.408 12.6367 78.0725L44.267 24.1303C46.7793 19.8463 51.2444 17.2885 56.2112 17.2885C61.1778 17.2885 65.6432 19.8463 68.1552 24.1305L99.7833 78.0727C102.325 82.4089 102.352 87.6008 99.8536 91.9615C97.3562 96.3208 92.8655 98.9235 87.8411 98.9235ZM56.2112 19.5193C52.0446 19.5193 48.2989 21.665 46.1913 25.2588L14.5612 79.201C12.4288 82.8378 12.4067 87.193 14.5026 90.851C16.5981 94.5088 20.3659 96.6929 24.5812 96.6929H87.8413C92.0561 96.6929 95.823 94.5097 97.9182 90.8523C100.014 87.1943 99.9919 82.8385 97.859 79.2012L66.2312 25.259C64.1233 21.665 60.3776 19.5193 56.2112 19.5193Z",
49
+ fill: "#1F347A"
50
+ }), /*#__PURE__*/React.createElement(Path, {
51
+ d: "M78.5189 94.25H35.0189C34.403 94.25 33.9036 93.7508 33.9036 93.1346C33.9036 92.5185 34.403 92.0193 35.0189 92.0193H78.5189C79.1351 92.0193 79.6343 92.5185 79.6343 93.1346C79.6343 93.7508 79.1351 94.25 78.5189 94.25Z",
52
+ fill: "#1F347A"
53
+ }), /*#__PURE__*/React.createElement(Path, {
54
+ d: "M97.4803 34.0192C93.1751 34.0192 89.6726 30.5166 89.6726 26.2115C89.6726 21.9063 93.1751 18.4038 97.4803 18.4038C101.785 18.4038 105.288 21.9063 105.288 26.2115C105.288 30.5166 101.785 34.0192 97.4803 34.0192ZM97.4803 20.6345C94.4052 20.6345 91.9034 23.1364 91.9034 26.2115C91.9034 29.2866 94.4052 31.7884 97.4803 31.7884C100.555 31.7884 103.057 29.2866 103.057 26.2115C103.057 23.1364 100.556 20.6345 97.4803 20.6345Z",
55
+ fill: "#1F347A"
56
+ }), /*#__PURE__*/React.createElement(Path, {
57
+ d: "M21.0769 40.7115C17.6941 40.7115 14.9423 37.9596 14.9423 34.5769C14.9423 31.1941 17.6941 28.4423 21.0769 28.4423C24.4596 28.4423 27.2115 31.1941 27.2115 34.5769C27.2115 37.9596 24.4596 40.7115 21.0769 40.7115ZM21.0769 30.673C18.9244 30.673 17.173 32.4244 17.173 34.5769C17.173 36.7294 18.9244 38.4807 21.0769 38.4807C23.2293 38.4807 24.9807 36.7294 24.9807 34.5769C24.9807 32.4244 23.2293 30.673 21.0769 30.673Z",
58
+ fill: "#1F347A"
59
+ })));
60
+ };
61
+ export default FailedIcon;
62
+ //# sourceMappingURL=FailedIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Path","Svg","View","FailedIcon","props","createElement","style","alignSelf","width","height","viewBox","fill","d"],"sources":["FailedIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Path, Svg } from 'react-native-svg';\nimport { IconProps } from './interface';\nimport { View } from 'react-native';\n\nconst FailedIcon = (props: IconProps) => {\n return (\n <View style={{ alignSelf: 'center' }}>\n <Svg\n width={props.width || '116'}\n height={props.height || '116'}\n viewBox=\"0 0 116 116\"\n fill=\"none\"\n >\n <Path\n d=\"M98.8211 78.6368L67.1932 24.6945C62.2744 16.3069 50.1479 16.3069 45.2291 24.6945L13.599 78.6368C8.62216 87.1249 14.7434 97.808 24.5811 97.808H87.8412C97.6789 97.808 103.798 87.1249 98.8211 78.6368Z\"\n fill=\"#FCA5A5\"\n />\n <Path\n d=\"M97.4808 32.9039C101.177 32.9039 104.173 29.9076 104.173 26.2116C104.173 22.5155 101.177 19.5193 97.4808 19.5193C93.7847 19.5193 90.7885 22.5155 90.7885 26.2116C90.7885 29.9076 93.7847 32.9039 97.4808 32.9039Z\"\n fill=\"#99EDF6\"\n />\n <Path\n d=\"M21.0766 29.5577C23.8472 29.5577 26.0958 31.8041 26.0958 34.577C26.0958 37.3498 23.8472 39.5962 21.0766 39.5962C18.3038 39.5962 16.0574 37.3498 16.0574 34.577C16.0574 31.8041 18.3038 29.5577 21.0766 29.5577Z\"\n fill=\"#99EDF6\"\n />\n <Path\n d=\"M60.1528 74.6907C61.1633 75.699 61.7879 77.0952 61.7879 78.6347C61.7879 80.1741 61.1633 81.5704 60.1528 82.5787C59.1445 83.5872 57.7502 84.2116 56.2112 84.2116C53.1305 84.2116 50.6343 81.7154 50.6343 78.6347C50.6343 77.0954 51.2589 75.699 52.2672 74.6907C53.2777 73.6821 54.6697 73.0577 56.2112 73.0577C57.7504 73.0577 59.1447 73.6824 60.1528 74.6907Z\"\n fill=\"#1F347A\"\n />\n <Path\n d=\"M61.7884 36.2499V63.0192C61.7884 66.0998 59.2899 68.5961 56.2114 68.5961C53.1308 68.5961 50.6345 66.0998 50.6345 63.0192V36.2499C50.6345 33.1692 53.1308 30.673 56.2114 30.673C57.7507 30.673 59.1449 31.2976 60.153 32.3059C61.164 33.3142 61.7884 34.7107 61.7884 36.2499Z\"\n fill=\"#1F347A\"\n />\n <Path\n d=\"M101.384 104.288C102.309 104.288 103.058 103.539 103.058 102.615C103.058 101.691 102.309 100.942 101.384 100.942C100.46 100.942 99.7114 101.691 99.7114 102.615C99.7114 103.539 100.46 104.288 101.384 104.288Z\"\n fill=\"#1F347A\"\n />\n <Path\n d=\"M100.269 46.2884C101.193 46.2884 101.942 45.5394 101.942 44.6153C101.942 43.6913 101.193 42.9423 100.269 42.9423C99.3446 42.9423 98.5956 43.6913 98.5956 44.6153C98.5956 45.5394 99.3446 46.2884 100.269 46.2884Z\"\n fill=\"#1F347A\"\n />\n <Path\n d=\"M87.9996 13.9424C88.9236 13.9424 89.6727 13.1933 89.6727 12.2693C89.6727 11.3453 88.9236 10.5962 87.9996 10.5962C87.0756 10.5962 86.3265 11.3453 86.3265 12.2693C86.3265 13.1933 87.0756 13.9424 87.9996 13.9424Z\"\n fill=\"#1F347A\"\n />\n <Path\n d=\"M39.4805 105.404C40.4045 105.404 41.1535 104.655 41.1535 103.731C41.1535 102.807 40.4045 102.058 39.4805 102.058C38.5564 102.058 37.8074 102.807 37.8074 103.731C37.8074 104.655 38.5564 105.404 39.4805 105.404Z\"\n fill=\"#1F347A\"\n />\n <Path\n d=\"M26.6534 15.0577C27.5774 15.0577 28.3265 14.3086 28.3265 13.3846C28.3265 12.4606 27.5774 11.7115 26.6534 11.7115C25.7294 11.7115 24.9803 12.4606 24.9803 13.3846C24.9803 14.3086 25.7294 15.0577 26.6534 15.0577Z\"\n fill=\"#1F347A\"\n />\n <Path\n d=\"M13.2693 51.8654C14.1933 51.8654 14.9423 51.1163 14.9423 50.1923C14.9423 49.2683 14.1933 48.5192 13.2693 48.5192C12.3453 48.5192 11.5962 49.2683 11.5962 50.1923C11.5962 51.1163 12.3453 51.8654 13.2693 51.8654Z\"\n fill=\"#1F347A\"\n />\n <Path\n d=\"M87.8411 98.9235H24.5809C19.5559 98.9235 15.0645 96.3202 12.5667 91.9599C10.0687 87.5992 10.0948 82.408 12.6367 78.0725L44.267 24.1303C46.7793 19.8463 51.2444 17.2885 56.2112 17.2885C61.1778 17.2885 65.6432 19.8463 68.1552 24.1305L99.7833 78.0727C102.325 82.4089 102.352 87.6008 99.8536 91.9615C97.3562 96.3208 92.8655 98.9235 87.8411 98.9235ZM56.2112 19.5193C52.0446 19.5193 48.2989 21.665 46.1913 25.2588L14.5612 79.201C12.4288 82.8378 12.4067 87.193 14.5026 90.851C16.5981 94.5088 20.3659 96.6929 24.5812 96.6929H87.8413C92.0561 96.6929 95.823 94.5097 97.9182 90.8523C100.014 87.1943 99.9919 82.8385 97.859 79.2012L66.2312 25.259C64.1233 21.665 60.3776 19.5193 56.2112 19.5193Z\"\n fill=\"#1F347A\"\n />\n <Path\n d=\"M78.5189 94.25H35.0189C34.403 94.25 33.9036 93.7508 33.9036 93.1346C33.9036 92.5185 34.403 92.0193 35.0189 92.0193H78.5189C79.1351 92.0193 79.6343 92.5185 79.6343 93.1346C79.6343 93.7508 79.1351 94.25 78.5189 94.25Z\"\n fill=\"#1F347A\"\n />\n <Path\n d=\"M97.4803 34.0192C93.1751 34.0192 89.6726 30.5166 89.6726 26.2115C89.6726 21.9063 93.1751 18.4038 97.4803 18.4038C101.785 18.4038 105.288 21.9063 105.288 26.2115C105.288 30.5166 101.785 34.0192 97.4803 34.0192ZM97.4803 20.6345C94.4052 20.6345 91.9034 23.1364 91.9034 26.2115C91.9034 29.2866 94.4052 31.7884 97.4803 31.7884C100.555 31.7884 103.057 29.2866 103.057 26.2115C103.057 23.1364 100.556 20.6345 97.4803 20.6345Z\"\n fill=\"#1F347A\"\n />\n <Path\n d=\"M21.0769 40.7115C17.6941 40.7115 14.9423 37.9596 14.9423 34.5769C14.9423 31.1941 17.6941 28.4423 21.0769 28.4423C24.4596 28.4423 27.2115 31.1941 27.2115 34.5769C27.2115 37.9596 24.4596 40.7115 21.0769 40.7115ZM21.0769 30.673C18.9244 30.673 17.173 32.4244 17.173 34.5769C17.173 36.7294 18.9244 38.4807 21.0769 38.4807C23.2293 38.4807 24.9807 36.7294 24.9807 34.5769C24.9807 32.4244 23.2293 30.673 21.0769 30.673Z\"\n fill=\"#1F347A\"\n />\n </Svg>\n </View>\n );\n};\n\nexport default FailedIcon;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAE5C,SAASC,IAAI,QAAQ,cAAc;AAEnC,MAAMC,UAAU,GAAIC,KAAgB,IAAK;EACvC,oBACEL,KAAA,CAAAM,aAAA,CAACH,IAAI;IAACI,KAAK,EAAE;MAAEC,SAAS,EAAE;IAAS;EAAE,gBACnCR,KAAA,CAAAM,aAAA,CAACJ,GAAG;IACFO,KAAK,EAAEJ,KAAK,CAACI,KAAK,IAAI,KAAM;IAC5BC,MAAM,EAAEL,KAAK,CAACK,MAAM,IAAI,KAAM;IAC9BC,OAAO,EAAC,aAAa;IACrBC,IAAI,EAAC;EAAM,gBAEXZ,KAAA,CAAAM,aAAA,CAACL,IAAI;IACHY,CAAC,EAAC,uMAAuM;IACzMD,IAAI,EAAC;EAAS,CACf,CAAC,eACFZ,KAAA,CAAAM,aAAA,CAACL,IAAI;IACHY,CAAC,EAAC,mNAAmN;IACrND,IAAI,EAAC;EAAS,CACf,CAAC,eACFZ,KAAA,CAAAM,aAAA,CAACL,IAAI;IACHY,CAAC,EAAC,iNAAiN;IACnND,IAAI,EAAC;EAAS,CACf,CAAC,eACFZ,KAAA,CAAAM,aAAA,CAACL,IAAI;IACHY,CAAC,EAAC,iWAAiW;IACnWD,IAAI,EAAC;EAAS,CACf,CAAC,eACFZ,KAAA,CAAAM,aAAA,CAACL,IAAI;IACHY,CAAC,EAAC,8QAA8Q;IAChRD,IAAI,EAAC;EAAS,CACf,CAAC,eACFZ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