@os1-platform/dispatch-mobile 1.3.11 → 2.0.1

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 (629) hide show
  1. package/README.md +198 -30
  2. package/android/.gradle/7.0.2/fileHashes/fileHashes.lock +0 -0
  3. package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  4. package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
  5. package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
  6. package/android/.gradle/7.2/fileChanges/last-build.bin +0 -0
  7. package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
  8. package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
  9. package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
  10. package/android/.gradle/7.2/gc.properties +0 -0
  11. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  12. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  13. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  14. package/android/.gradle/checksums/checksums.lock +0 -0
  15. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  16. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  17. package/android/.idea/compiler.xml +6 -0
  18. package/android/.idea/gradle.xml +6 -1
  19. package/android/.idea/jarRepositories.xml +35 -0
  20. package/android/.idea/kotlinc.xml +6 -0
  21. package/android/.idea/misc.xml +6 -1
  22. package/android/local.properties +1 -1
  23. package/android/src/main/java/com/dispatchsdk/DispatchSdkPackage.kt +3 -1
  24. package/android/src/main/java/com/dispatchsdk/sharedPref/SharedPreferenceModule.kt +166 -0
  25. package/lib/commonjs/@types/assets/index.d.js +2 -0
  26. package/lib/commonjs/@types/assets/index.d.js.map +1 -0
  27. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +4 -4
  28. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
  29. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +0 -28
  30. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  31. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
  32. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +35 -35
  33. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  34. package/lib/commonjs/components/executiontasks/captureInput/utils.js +13 -0
  35. package/lib/commonjs/components/executiontasks/captureInput/utils.js.map +1 -0
  36. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +3 -7
  37. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
  38. package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  39. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +181 -112
  40. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  41. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -16
  42. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
  43. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +37 -34
  44. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
  45. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +2 -2
  46. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  47. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +52 -52
  48. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  49. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +71 -66
  50. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
  51. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  52. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
  53. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -1
  54. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  55. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  56. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +2 -2
  57. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  58. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +3 -3
  59. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  60. package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  61. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +6 -3
  62. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  63. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +34 -34
  64. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  65. package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  66. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +54 -54
  67. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  68. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +33 -33
  69. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  70. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +33 -33
  71. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  72. package/lib/commonjs/components/executiontasks/pickup/PickupET.js +3 -7
  73. package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
  74. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +106 -47
  75. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  76. package/lib/commonjs/components/executiontasks/scan/ScanET.js +326 -428
  77. package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
  78. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +13 -0
  79. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -1
  80. package/lib/commonjs/components/executiontasks/scan/interfaces.js +15 -1
  81. package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
  82. package/lib/commonjs/components/executiontasks/scan/modalConstant.js +104 -0
  83. package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -0
  84. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  85. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +72 -37
  86. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  87. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +9 -7
  88. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  89. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +1096 -0
  90. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
  91. package/lib/commonjs/components/executiontasks/scan/utils.js +548 -159
  92. package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
  93. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +52 -53
  94. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  95. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +4 -0
  96. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  97. package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
  98. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  99. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
  100. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  101. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +1 -1
  102. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  103. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
  104. package/lib/commonjs/components/utils/index.js +14 -0
  105. package/lib/commonjs/components/utils/index.js.map +1 -0
  106. package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
  107. package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
  108. package/lib/commonjs/components/widgets/Card.js +88 -0
  109. package/lib/commonjs/components/widgets/Card.js.map +1 -0
  110. package/lib/commonjs/components/widgets/GoBackModal.js +48 -0
  111. package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -0
  112. package/lib/commonjs/components/widgets/IconButton.js.map +1 -1
  113. package/lib/commonjs/components/widgets/ModalWidget.js +99 -0
  114. package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -0
  115. package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
  116. package/lib/commonjs/components/widgets/SearchBar.js +74 -0
  117. package/lib/commonjs/components/widgets/SearchBar.js.map +1 -0
  118. package/lib/commonjs/components/widgets/SnackBarCustom.js +12 -4
  119. package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
  120. package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
  121. package/lib/commonjs/components/widgets/TabsComponent.js +64 -0
  122. package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -0
  123. package/lib/commonjs/constants/apiConstants.js +3 -1
  124. package/lib/commonjs/constants/apiConstants.js.map +1 -1
  125. package/lib/commonjs/constants/constants.js +2 -2
  126. package/lib/commonjs/constants/constants.js.map +1 -1
  127. package/lib/commonjs/events/EventDispatcher.js +1 -5
  128. package/lib/commonjs/events/EventDispatcher.js.map +1 -1
  129. package/lib/commonjs/events/constants.js +3 -1
  130. package/lib/commonjs/events/constants.js.map +1 -1
  131. package/lib/commonjs/events/interface.js.map +1 -1
  132. package/lib/commonjs/icons/file.js +24 -0
  133. package/lib/commonjs/icons/file.js.map +1 -0
  134. package/lib/commonjs/icons/interface.js +2 -0
  135. package/lib/commonjs/icons/interface.js.map +1 -0
  136. package/lib/commonjs/index.js +32 -13
  137. package/lib/commonjs/index.js.map +1 -1
  138. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +315 -609
  139. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
  140. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  141. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  142. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  143. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  144. package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +21 -25
  145. package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -1
  146. package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
  147. package/lib/commonjs/manager/sdk/DispatchSDKManager.js +15 -1
  148. package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
  149. package/lib/commonjs/manager/sdk/DispatchSdkCache.js +2 -2
  150. package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
  151. package/lib/commonjs/manager/sdk/callbacksHandler.js +26 -0
  152. package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -0
  153. package/lib/commonjs/manager/syncmanager/AppSyncManager.js +15 -1
  154. package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
  155. package/lib/commonjs/manager/syncmanager/DBConfig.js +36 -3
  156. package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
  157. package/lib/commonjs/manager/syncmanager/constants.js +17 -0
  158. package/lib/commonjs/manager/syncmanager/constants.js.map +1 -0
  159. package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
  160. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +11 -17
  161. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  162. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +5 -6
  163. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
  164. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +16 -6
  165. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  166. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +377 -26
  167. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  168. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +183 -65
  169. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  170. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +150 -37
  171. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  172. package/lib/commonjs/models/DispatchModels.js.map +1 -1
  173. package/lib/commonjs/models/execTasks/ETBaseModels.js +4 -0
  174. package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
  175. package/lib/commonjs/models/sdk.js.map +1 -1
  176. package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
  177. package/lib/commonjs/network/GraphQLClient.js.map +1 -1
  178. package/lib/commonjs/network/NetworkClient.js.map +1 -1
  179. package/lib/commonjs/network/NetworkUtils.js.map +1 -1
  180. package/lib/commonjs/network/client.js.map +1 -1
  181. package/lib/commonjs/resources/Login.js.map +1 -1
  182. package/lib/commonjs/resources/network.js.map +1 -1
  183. package/lib/commonjs/styles/SdkColors.js +4 -2
  184. package/lib/commonjs/styles/SdkColors.js.map +1 -1
  185. package/lib/commonjs/styles/executionTasks/CommonStyles.js +19 -10
  186. package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
  187. package/lib/commonjs/ui/screens/CancellationScreen.js +38 -7
  188. package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
  189. package/lib/commonjs/ui/screens/CaptureInputScreen.js +11 -3
  190. package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
  191. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +11 -4
  192. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  193. package/lib/commonjs/ui/screens/DeliverScreen.js +26 -4
  194. package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
  195. package/lib/commonjs/ui/screens/DisplayScreen.js +11 -2
  196. package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
  197. package/lib/commonjs/ui/screens/DoodleScreen.js +13 -6
  198. package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
  199. package/lib/commonjs/ui/screens/DropCashScreen.js +39 -15
  200. package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
  201. package/lib/commonjs/ui/screens/ETScreensIndex.js +0 -7
  202. package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
  203. package/lib/commonjs/ui/screens/FormsScreen.js +95 -28
  204. package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
  205. package/lib/commonjs/ui/screens/GeofenceScreen.js +10 -2
  206. package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
  207. package/lib/commonjs/ui/screens/HttpRequestScreen.js +10 -2
  208. package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
  209. package/lib/commonjs/ui/screens/ImageCaptureScreen.js +26 -18
  210. package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
  211. package/lib/commonjs/ui/screens/PaymentScreen.js +22 -11
  212. package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
  213. package/lib/commonjs/ui/screens/PickupScreen.js +34 -8
  214. package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
  215. package/lib/commonjs/ui/screens/ScanScreen.js +72 -219
  216. package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
  217. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +51 -16
  218. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
  219. package/lib/commonjs/ui/screens/ValidateOTPScreen.js +13 -7
  220. package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
  221. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  222. package/lib/commonjs/ui/uiConfig/RouteParams.js +20 -5
  223. package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
  224. package/lib/commonjs/utils/ApiUtils.js +16 -2
  225. package/lib/commonjs/utils/ApiUtils.js.map +1 -1
  226. package/lib/commonjs/utils/ExecTaskUtils.js +33 -25
  227. package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
  228. package/lib/commonjs/utils/Logger.js.map +1 -1
  229. package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
  230. package/lib/commonjs/utils/SdkUtils.js.map +1 -1
  231. package/lib/commonjs/utils/SyncManagerUtils.js +37 -4
  232. package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
  233. package/lib/commonjs/utils/fcm/FCM.js +64 -35
  234. package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
  235. package/lib/commonjs/utils/fcm/FcmUtils.js +82 -46
  236. package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
  237. package/lib/commonjs/utils/helper.js.map +1 -1
  238. package/lib/commonjs/utils/hooks/useModal.js +53 -0
  239. package/lib/commonjs/utils/hooks/useModal.js.map +1 -0
  240. package/lib/commonjs/utils/loginHelper.js.map +1 -1
  241. package/lib/commonjs/utils/storage.js +37 -2
  242. package/lib/commonjs/utils/storage.js.map +1 -1
  243. package/lib/commonjs/utils/utils.js.map +1 -1
  244. package/lib/module/@types/assets/index.d.js +2 -0
  245. package/lib/module/@types/assets/index.d.js.map +1 -0
  246. package/lib/module/components/dispatch/DispatchExecNavigator.js +4 -4
  247. package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
  248. package/lib/module/components/executiontasks/ExecutionTasksIndex.js +1 -5
  249. package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  250. package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
  251. package/lib/module/components/executiontasks/captureInput/CaptureText.js +38 -37
  252. package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  253. package/lib/module/components/executiontasks/captureInput/utils.js +7 -0
  254. package/lib/module/components/executiontasks/captureInput/utils.js.map +1 -0
  255. package/lib/module/components/executiontasks/deliver/DeliverET.js +4 -8
  256. package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
  257. package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  258. package/lib/module/components/executiontasks/deliver/SLDeliverET.js +183 -114
  259. package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  260. package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -16
  261. package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
  262. package/lib/module/components/executiontasks/doodle/SignatureET.js +39 -36
  263. package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
  264. package/lib/module/components/executiontasks/dropCash/DropCashET.js +2 -2
  265. package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  266. package/lib/module/components/executiontasks/dropCash/SLDropCash.js +53 -52
  267. package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  268. package/lib/module/components/executiontasks/forms/FormGenerator.js +73 -68
  269. package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
  270. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  271. package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
  272. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -1
  273. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  274. package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  275. package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +3 -3
  276. package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  277. package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +3 -3
  278. package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  279. package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  280. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +6 -3
  281. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  282. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +36 -36
  283. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  284. package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  285. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +55 -54
  286. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  287. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +35 -34
  288. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  289. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +35 -35
  290. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  291. package/lib/module/components/executiontasks/pickup/PickupET.js +4 -8
  292. package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
  293. package/lib/module/components/executiontasks/pickup/SLPickupET.js +108 -49
  294. package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  295. package/lib/module/components/executiontasks/scan/ScanET.js +332 -433
  296. package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
  297. package/lib/module/components/executiontasks/scan/ScanSchema.js +16 -1
  298. package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -1
  299. package/lib/module/components/executiontasks/scan/interfaces.js +12 -0
  300. package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
  301. package/lib/module/components/executiontasks/scan/modalConstant.js +94 -0
  302. package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -0
  303. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  304. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +72 -37
  305. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  306. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +9 -7
  307. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  308. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +1089 -0
  309. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
  310. package/lib/module/components/executiontasks/scan/utils.js +528 -160
  311. package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
  312. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +54 -55
  313. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  314. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +4 -0
  315. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  316. package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -1
  317. package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  318. package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
  319. package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  320. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +2 -2
  321. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  322. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
  323. package/lib/module/components/utils/index.js +8 -0
  324. package/lib/module/components/utils/index.js.map +1 -0
  325. package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
  326. package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
  327. package/lib/module/components/widgets/Card.js +80 -0
  328. package/lib/module/components/widgets/Card.js.map +1 -0
  329. package/lib/module/components/widgets/GoBackModal.js +40 -0
  330. package/lib/module/components/widgets/GoBackModal.js.map +1 -0
  331. package/lib/module/components/widgets/IconButton.js.map +1 -1
  332. package/lib/module/components/widgets/ModalWidget.js +92 -0
  333. package/lib/module/components/widgets/ModalWidget.js.map +1 -0
  334. package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
  335. package/lib/module/components/widgets/SearchBar.js +66 -0
  336. package/lib/module/components/widgets/SearchBar.js.map +1 -0
  337. package/lib/module/components/widgets/SnackBarCustom.js +12 -4
  338. package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
  339. package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
  340. package/lib/module/components/widgets/TabsComponent.js +55 -0
  341. package/lib/module/components/widgets/TabsComponent.js.map +1 -0
  342. package/lib/module/constants/apiConstants.js +3 -1
  343. package/lib/module/constants/apiConstants.js.map +1 -1
  344. package/lib/module/constants/constants.js +2 -2
  345. package/lib/module/constants/constants.js.map +1 -1
  346. package/lib/module/events/EventDispatcher.js +0 -3
  347. package/lib/module/events/EventDispatcher.js.map +1 -1
  348. package/lib/module/events/constants.js +3 -1
  349. package/lib/module/events/constants.js.map +1 -1
  350. package/lib/module/events/interface.js.map +1 -1
  351. package/lib/module/icons/file.js +16 -0
  352. package/lib/module/icons/file.js.map +1 -0
  353. package/lib/module/icons/interface.js +2 -0
  354. package/lib/module/icons/interface.js.map +1 -0
  355. package/lib/module/index.js +6 -3
  356. package/lib/module/index.js.map +1 -1
  357. package/lib/module/manager/dispatch/DispatchStateContainer.js +319 -610
  358. package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
  359. package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  360. package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  361. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  362. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  363. package/lib/module/manager/jobRemoval/JobRemovalManager.js +21 -19
  364. package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -1
  365. package/lib/module/manager/location/LocationManager.js.map +1 -1
  366. package/lib/module/manager/sdk/DispatchSDKManager.js +15 -1
  367. package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
  368. package/lib/module/manager/sdk/DispatchSdkCache.js +2 -2
  369. package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
  370. package/lib/module/manager/sdk/callbacksHandler.js +19 -0
  371. package/lib/module/manager/sdk/callbacksHandler.js.map +1 -0
  372. package/lib/module/manager/syncmanager/AppSyncManager.js +15 -1
  373. package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
  374. package/lib/module/manager/syncmanager/DBConfig.js +32 -2
  375. package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
  376. package/lib/module/manager/syncmanager/constants.js +6 -0
  377. package/lib/module/manager/syncmanager/constants.js.map +1 -0
  378. package/lib/module/manager/syncmanager/database.js.map +1 -1
  379. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +11 -17
  380. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  381. package/lib/module/manager/syncmanager/document/DocumentManager.js +5 -6
  382. package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
  383. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +16 -6
  384. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  385. package/lib/module/manager/syncmanager/events/ETEventsManager.js +377 -25
  386. package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  387. package/lib/module/manager/syncmanager/events/EventsSyncManager.js +183 -65
  388. package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  389. package/lib/module/manager/syncmanager/events/SyncHttpClient.js +147 -34
  390. package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  391. package/lib/module/models/DispatchModels.js.map +1 -1
  392. package/lib/module/models/execTasks/ETBaseModels.js +1 -1
  393. package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
  394. package/lib/module/models/sdk.js.map +1 -1
  395. package/lib/module/native/signature/SignatureCapture.js.map +1 -1
  396. package/lib/module/network/GraphQLClient.js.map +1 -1
  397. package/lib/module/network/NetworkClient.js.map +1 -1
  398. package/lib/module/network/NetworkUtils.js.map +1 -1
  399. package/lib/module/network/client.js.map +1 -1
  400. package/lib/module/resources/Login.js.map +1 -1
  401. package/lib/module/resources/network.js.map +1 -1
  402. package/lib/module/styles/SdkColors.js +4 -2
  403. package/lib/module/styles/SdkColors.js.map +1 -1
  404. package/lib/module/styles/executionTasks/CommonStyles.js +19 -10
  405. package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
  406. package/lib/module/ui/screens/CancellationScreen.js +39 -8
  407. package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
  408. package/lib/module/ui/screens/CaptureInputScreen.js +12 -4
  409. package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
  410. package/lib/module/ui/screens/CompleteObjectiveScreen.js +12 -5
  411. package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  412. package/lib/module/ui/screens/DeliverScreen.js +27 -5
  413. package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
  414. package/lib/module/ui/screens/DisplayScreen.js +12 -3
  415. package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
  416. package/lib/module/ui/screens/DoodleScreen.js +14 -7
  417. package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
  418. package/lib/module/ui/screens/DropCashScreen.js +42 -16
  419. package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
  420. package/lib/module/ui/screens/ETScreensIndex.js +1 -2
  421. package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
  422. package/lib/module/ui/screens/FormsScreen.js +96 -29
  423. package/lib/module/ui/screens/FormsScreen.js.map +1 -1
  424. package/lib/module/ui/screens/GeofenceScreen.js +11 -3
  425. package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
  426. package/lib/module/ui/screens/HttpRequestScreen.js +11 -3
  427. package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
  428. package/lib/module/ui/screens/ImageCaptureScreen.js +27 -19
  429. package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
  430. package/lib/module/ui/screens/PaymentScreen.js +23 -12
  431. package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
  432. package/lib/module/ui/screens/PickupScreen.js +36 -10
  433. package/lib/module/ui/screens/PickupScreen.js.map +1 -1
  434. package/lib/module/ui/screens/ScanScreen.js +74 -222
  435. package/lib/module/ui/screens/ScanScreen.js.map +1 -1
  436. package/lib/module/ui/screens/StartWorkFlowScreen.js +51 -16
  437. package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
  438. package/lib/module/ui/screens/ValidateOTPScreen.js +14 -8
  439. package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
  440. package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  441. package/lib/module/ui/uiConfig/RouteParams.js +19 -5
  442. package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
  443. package/lib/module/utils/ApiUtils.js +17 -2
  444. package/lib/module/utils/ApiUtils.js.map +1 -1
  445. package/lib/module/utils/ExecTaskUtils.js +33 -25
  446. package/lib/module/utils/ExecTaskUtils.js.map +1 -1
  447. package/lib/module/utils/Logger.js.map +1 -1
  448. package/lib/module/utils/NetworkUtil.js.map +1 -1
  449. package/lib/module/utils/SdkUtils.js.map +1 -1
  450. package/lib/module/utils/SyncManagerUtils.js +37 -4
  451. package/lib/module/utils/SyncManagerUtils.js.map +1 -1
  452. package/lib/module/utils/fcm/FCM.js +64 -35
  453. package/lib/module/utils/fcm/FCM.js.map +1 -1
  454. package/lib/module/utils/fcm/FcmUtils.js +82 -46
  455. package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
  456. package/lib/module/utils/helper.js.map +1 -1
  457. package/lib/module/utils/hooks/useModal.js +43 -0
  458. package/lib/module/utils/hooks/useModal.js.map +1 -0
  459. package/lib/module/utils/loginHelper.js.map +1 -1
  460. package/lib/module/utils/storage.js +37 -2
  461. package/lib/module/utils/storage.js.map +1 -1
  462. package/lib/module/utils/utils.js.map +1 -1
  463. package/lib/typescript/components/dispatch/DispatchExecNavigator.d.ts +2 -2
  464. package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +3 -8
  465. package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +2 -2
  466. package/lib/typescript/components/executiontasks/captureInput/CaptureText.d.ts +2 -2
  467. package/lib/typescript/components/executiontasks/captureInput/utils.d.ts +1 -0
  468. package/lib/typescript/components/executiontasks/deliver/DeliverET.d.ts +2 -2
  469. package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +1 -0
  470. package/lib/typescript/components/executiontasks/deliver/SLDeliverET.d.ts +3 -3
  471. package/lib/typescript/components/executiontasks/display/DisplayModalET.d.ts +2 -2
  472. package/lib/typescript/components/executiontasks/doodle/SignatureET.d.ts +2 -2
  473. package/lib/typescript/components/executiontasks/dropCash/DropCashET.d.ts +2 -2
  474. package/lib/typescript/components/executiontasks/dropCash/SLDropCash.d.ts +2 -2
  475. package/lib/typescript/components/executiontasks/forms/FormGenerator.d.ts +2 -2
  476. package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +2 -2
  477. package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +2 -2
  478. package/lib/typescript/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +2 -2
  479. package/lib/typescript/components/executiontasks/forms/widgets/TimeRangeSelector.d.ts +2 -2
  480. package/lib/typescript/components/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
  481. package/lib/typescript/components/executiontasks/httpRequest/HttpRequestET.d.ts +2 -2
  482. package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +1 -0
  483. package/lib/typescript/components/executiontasks/imageCapture/ImageCapture.d.ts +2 -2
  484. package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentET.d.ts +2 -2
  485. package/lib/typescript/components/executiontasks/payments/init/InitPaymentET.d.ts +2 -2
  486. package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +2 -2
  487. package/lib/typescript/components/executiontasks/pickup/PickupET.d.ts +2 -2
  488. package/lib/typescript/components/executiontasks/pickup/SLPickupET.d.ts +3 -3
  489. package/lib/typescript/components/executiontasks/scan/ScanET.d.ts +3 -3
  490. package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +25 -9
  491. package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +54 -1
  492. package/lib/typescript/components/executiontasks/scan/modalConstant.d.ts +37 -0
  493. package/lib/typescript/components/executiontasks/scan/sub_components/CScanner.d.ts +1 -1
  494. package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +1 -1
  495. package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +1 -1
  496. package/lib/typescript/components/executiontasks/scan/sub_components/SummaryPage.d.ts +21 -0
  497. package/lib/typescript/components/executiontasks/scan/utils.d.ts +29 -13
  498. package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +2 -2
  499. package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +2 -2
  500. package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocationET.d.ts +2 -2
  501. package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpET.d.ts +2 -2
  502. package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +3 -3
  503. package/lib/typescript/components/utils/index.d.ts +2 -0
  504. package/lib/typescript/components/widgets/CancelOrderDialog.d.ts +2 -2
  505. package/lib/typescript/components/widgets/Card.d.ts +17 -0
  506. package/lib/typescript/components/widgets/GoBackModal.d.ts +9 -0
  507. package/lib/typescript/components/widgets/IconButton.d.ts +2 -2
  508. package/lib/typescript/components/widgets/ModalWidget.d.ts +30 -0
  509. package/lib/typescript/components/widgets/ProgressDialog.d.ts +2 -2
  510. package/lib/typescript/components/widgets/SearchBar.d.ts +10 -0
  511. package/lib/typescript/components/widgets/SnackBarCustom.d.ts +3 -2
  512. package/lib/typescript/components/widgets/SplitTextInput.d.ts +2 -2
  513. package/lib/typescript/components/widgets/TabsComponent.d.ts +15 -0
  514. package/lib/typescript/constants/apiConstants.d.ts +1 -0
  515. package/lib/typescript/constants/constants.d.ts +2 -2
  516. package/lib/typescript/events/EventDispatcher.d.ts +0 -2
  517. package/lib/typescript/events/constants.d.ts +2 -0
  518. package/lib/typescript/events/interface.d.ts +1 -1
  519. package/lib/typescript/icons/file.d.ts +4 -0
  520. package/lib/typescript/icons/interface.d.ts +5 -0
  521. package/lib/typescript/index.d.ts +8 -6
  522. package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +27 -19
  523. package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +0 -6
  524. package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +0 -1
  525. package/lib/typescript/manager/sdk/callbacksHandler.d.ts +13 -0
  526. package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +2 -1
  527. package/lib/typescript/manager/syncmanager/DBConfig.d.ts +63 -7
  528. package/lib/typescript/manager/syncmanager/constants.d.ts +5 -0
  529. package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +1 -1
  530. package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +1 -1
  531. package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +11 -2
  532. package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +3 -5
  533. package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +4 -3
  534. package/lib/typescript/models/DispatchModels.d.ts +40 -41
  535. package/lib/typescript/models/execTasks/ETBaseModels.d.ts +21 -16
  536. package/lib/typescript/models/sdk.d.ts +7 -0
  537. package/lib/typescript/native/signature/SignatureCapture.d.ts +1 -1
  538. package/lib/typescript/styles/SdkColors.d.ts +1 -0
  539. package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +16 -7
  540. package/lib/typescript/ui/screens/CancellationScreen.d.ts +2 -2
  541. package/lib/typescript/ui/screens/CaptureInputScreen.d.ts +2 -2
  542. package/lib/typescript/ui/screens/CompleteObjectiveScreen.d.ts +2 -2
  543. package/lib/typescript/ui/screens/DeliverScreen.d.ts +2 -2
  544. package/lib/typescript/ui/screens/DisplayScreen.d.ts +2 -2
  545. package/lib/typescript/ui/screens/DoodleScreen.d.ts +2 -2
  546. package/lib/typescript/ui/screens/DropCashScreen.d.ts +2 -2
  547. package/lib/typescript/ui/screens/ETScreensIndex.d.ts +1 -2
  548. package/lib/typescript/ui/screens/FormsScreen.d.ts +2 -2
  549. package/lib/typescript/ui/screens/GeofenceScreen.d.ts +2 -2
  550. package/lib/typescript/ui/screens/HttpRequestScreen.d.ts +1 -1
  551. package/lib/typescript/ui/screens/ImageCaptureScreen.d.ts +2 -2
  552. package/lib/typescript/ui/screens/PaymentScreen.d.ts +2 -2
  553. package/lib/typescript/ui/screens/PickupScreen.d.ts +2 -2
  554. package/lib/typescript/ui/screens/ScanScreen.d.ts +2 -2
  555. package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +2 -2
  556. package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +2 -2
  557. package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +2 -2
  558. package/lib/typescript/ui/uiConfig/RouteParams.d.ts +10 -4
  559. package/lib/typescript/utils/ExecTaskUtils.d.ts +5 -4
  560. package/lib/typescript/utils/SyncManagerUtils.d.ts +4 -5
  561. package/lib/typescript/utils/hooks/useModal.d.ts +6 -0
  562. package/lib/typescript/utils/storage.d.ts +15 -0
  563. package/package.json +5 -4
  564. package/tsconfig.json +0 -1
  565. package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
  566. package/android/.idea/workspace.xml +0 -131
  567. package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -26
  568. package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
  569. package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js +0 -134
  570. package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js.map +0 -1
  571. package/lib/commonjs/components/executiontasks/scanner/CScanner.js +0 -105
  572. package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +0 -1
  573. package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +0 -27
  574. package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
  575. package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +0 -164
  576. package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
  577. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -15
  578. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
  579. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -40
  580. package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
  581. package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -93
  582. package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
  583. package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +0 -278
  584. package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
  585. package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -83
  586. package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
  587. package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -248
  588. package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
  589. package/lib/commonjs/ui/screens/RTScanScreen.js +0 -99
  590. package/lib/commonjs/ui/screens/RTScanScreen.js.map +0 -1
  591. package/lib/module/components/executiontasks/doodle/DoodleUtils.js +0 -19
  592. package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
  593. package/lib/module/components/executiontasks/scan/sub_components/ScanList.js +0 -124
  594. package/lib/module/components/executiontasks/scan/sub_components/ScanList.js.map +0 -1
  595. package/lib/module/components/executiontasks/scanner/CScanner.js +0 -96
  596. package/lib/module/components/executiontasks/scanner/CScanner.js.map +0 -1
  597. package/lib/module/components/executiontasks/scanner/ScannerSchema.js +0 -24
  598. package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
  599. package/lib/module/components/executiontasks/scanner/ScannerUtils.js +0 -146
  600. package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
  601. package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -7
  602. package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
  603. package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -33
  604. package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
  605. package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -83
  606. package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
  607. package/lib/module/components/executiontasks/scanner/returns/RTScan.js +0 -269
  608. package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
  609. package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -73
  610. package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
  611. package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -238
  612. package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
  613. package/lib/module/ui/screens/RTScanScreen.js +0 -89
  614. package/lib/module/ui/screens/RTScanScreen.js.map +0 -1
  615. package/lib/typescript/components/executiontasks/doodle/DoodleUtils.d.ts +0 -3
  616. package/lib/typescript/components/executiontasks/scan/sub_components/ScanList.d.ts +0 -8
  617. package/lib/typescript/components/executiontasks/scanner/CScanner.d.ts +0 -7
  618. package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +0 -75
  619. package/lib/typescript/components/executiontasks/scanner/ScannerUtils.d.ts +0 -15
  620. package/lib/typescript/components/executiontasks/scanner/returns/DropDownSelector.d.ts +0 -3
  621. package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +0 -2
  622. package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +0 -7
  623. package/lib/typescript/components/executiontasks/scanner/returns/RTScan.d.ts +0 -4
  624. package/lib/typescript/components/executiontasks/scanner/returns/ReasonDropDown.d.ts +0 -14
  625. package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +0 -17
  626. package/lib/typescript/ui/screens/RTScanScreen.d.ts +0 -3
  627. /package/android/.gradle/{6.8 → 7.0.2}/fileChanges/last-build.bin +0 -0
  628. /package/android/.gradle/{6.8 → 7.0.2}/gc.properties +0 -0
  629. /package/android/.gradle/{configuration-cache → 7.2/dependencies-accessors}/gc.properties +0 -0
@@ -0,0 +1,1089 @@
1
+ import { View, Text, Dimensions } from 'react-native';
2
+ import React, { useState, useEffect } from 'react';
3
+ import { Button } from 'react-native-paper';
4
+ import { Entypo } from '@expo/vector-icons';
5
+ import { CommonStyles, Fonts } from '../../../../styles/executionTasks/CommonStyles';
6
+ import { PROCEED_STATUS, SummaryPageTabs } from '../interfaces';
7
+ import { StyleSheet } from 'react-native';
8
+ import { TouchableOpacity } from 'react-native';
9
+ import ERDropDown from './ERDropDown';
10
+ import { getErcDropDownItems } from './DropDownUtils';
11
+ import { DataProvider, LayoutProvider, RecyclerListView } from 'recyclerlistview';
12
+ import SnackBarCustom, { SnackBarType } from '../../../widgets/SnackBarCustom';
13
+ import TabsComponent from '../../../widgets/TabsComponent';
14
+ import Card from '../../../widgets/Card';
15
+ import { addScans, filterERCItems, getScanData, getTabCount, removeScan } from '../utils';
16
+ import { AntDesign } from '@expo/vector-icons';
17
+ import ModalWidget from '../../../widgets/ModalWidget';
18
+ import SearchBar from '../../../widgets/SearchBar';
19
+ import { debounce } from 'lodash';
20
+ import { RouteParams } from '../../../../ui/uiConfig/RouteParams';
21
+ import { IDispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';
22
+ import FileIcon from '../../../../icons/file';
23
+ const dimensionsForScreen = Dimensions.get('screen');
24
+ const createNewDataProvider = () => {
25
+ return new DataProvider((r1, r2) => r1.scanId !== r2.scanId);
26
+ };
27
+ const INITIAL_TABS = [{
28
+ title: SummaryPageTabs.ALL,
29
+ count: 0
30
+ }, {
31
+ title: SummaryPageTabs.PENDING,
32
+ count: 0
33
+ }, {
34
+ title: SummaryPageTabs.DELIVERED,
35
+ count: 0
36
+ }, {
37
+ title: SummaryPageTabs.UNDELIVERED,
38
+ count: 0
39
+ }];
40
+ const INITIAL_SEARCH_PARAMS = {
41
+ hasNextPage: true,
42
+ offset: 0,
43
+ limit: 10
44
+ };
45
+ const SummaryPage = props => {
46
+ const [snackBar, setSnackBar] = useState({
47
+ show: false,
48
+ type: SnackBarType.SUCCESS,
49
+ message: ''
50
+ });
51
+ const [tabs, setTabs] = useState(INITIAL_TABS);
52
+
53
+ // START: Modal Handling for Summary Page
54
+
55
+ const [showUnscannedShipmentModal, setShowUnscannedShipmentModal] = useState(false);
56
+ const [showERCModal, setShowERCModal] = useState(false);
57
+ const [showRemoveShipmentModal, setShowRemoveShipmentModal] = useState(false);
58
+ const [selectedEventCode, setSelectedEventCode] = useState();
59
+ const [selectedReason, setSelectedReason] = useState(); // reason code from ercSelector
60
+ const [reasonItems, setReasonItems] = useState(); // list of reason codes
61
+ const [editedReasonItems, setEditedReasonItems] = useState(); // list of reason codes
62
+ let {
63
+ scannedCount,
64
+ totalCount
65
+ } = props.shipmentCount;
66
+ useEffect(() => {
67
+ props.ercSelector && (async () => {
68
+ setSelectedEventCode(props.eventCodeItems[0]);
69
+ setEditedEventCode(props.eventCodeItems[0]);
70
+ })();
71
+ }, [props.eventCodeItems]);
72
+ useEffect(() => {
73
+ (selectedEventCode === null || selectedEventCode === void 0 ? void 0 : selectedEventCode.code) && (async () => {
74
+ let response = await getErcDropDownItems('REASON', props.ercSelector || [], selectedEventCode === null || selectedEventCode === void 0 ? void 0 : selectedEventCode.code);
75
+ if (response.length) {
76
+ setReasonItems(response);
77
+ setSelectedReason(response[0]);
78
+ } else {
79
+ setReasonItems([]);
80
+ setSelectedReason(undefined);
81
+ }
82
+ })();
83
+ }, [selectedEventCode === null || selectedEventCode === void 0 ? void 0 : selectedEventCode.code]);
84
+ const renderActionButtons = () => {
85
+ return /*#__PURE__*/React.createElement(View, {
86
+ style: {
87
+ borderTopWidth: 1,
88
+ borderTopColor: '#E0E3EB',
89
+ padding: 10
90
+ }
91
+ }, /*#__PURE__*/React.createElement(Button, {
92
+ labelStyle: CommonStyles.nextButtonLabel,
93
+ style: CommonStyles.nextButton,
94
+ uppercase: false,
95
+ onPress: () => {
96
+ if (scannedCount < totalCount) {
97
+ setShowUnscannedShipmentModal(true);
98
+ } else {
99
+ props.handleSubmitET(PROCEED_STATUS.DELIVER_NOW, tabs[1].count);
100
+ }
101
+ }
102
+ }, `Proceed`));
103
+ };
104
+ // END: Modal Handling for Summary Page
105
+
106
+ // START: Summary List Handling
107
+ const [searchParams, setSearchParams] = useState(INITIAL_SEARCH_PARAMS);
108
+ const [dataProvider, setDataProvider] = React.useState(createNewDataProvider());
109
+ const _layoutProvider = new LayoutProvider(index => 0, (type, dim) => {
110
+ dim.width = dimensionsForScreen.width / 1;
111
+ dim.height = 180; //dimensionsForScreen.height / 1;
112
+ });
113
+
114
+ const [activeTab, setActiveTab] = useState(SummaryPageTabs.PENDING);
115
+ const [scanList, setScanList] = useState([]);
116
+ const [isLoading, setIsLoading] = useState(false);
117
+ const [isLoadingMore, setIsLoadingMore] = useState(false);
118
+ const [showEditModal, setShowEditModal] = useState(false);
119
+ const [selectedEditItem, setSelectedEditItem] = useState();
120
+ const [editedEventCode, setEditedEventCode] = useState();
121
+ const [editedReason, setEditedReason] = useState(); // reason code from ercSelector
122
+ const [selectedItems, setSelectedItems] = useState({});
123
+ const [searchText, setSearchText] = useState('');
124
+ const [searchQuery, setSearchQuery] = React.useState('');
125
+ const [isSearchCleared, setIsSearchCleared] = React.useState(false);
126
+ const [isRemoved, setIsRemoved] = useState(false);
127
+ const onChangeSearch = query => {
128
+ setSearchQuery(oldQuery => {
129
+ if (oldQuery.length > 1 && query.length === 0) {
130
+ setIsSearchCleared(true);
131
+ }
132
+ // RESET Search Params
133
+ setSearchParams(INITIAL_SEARCH_PARAMS);
134
+ return query;
135
+ });
136
+ };
137
+ const debouncedChangeSearch = debounce(onChangeSearch, 500);
138
+ const updateScanList = async function () {
139
+ let query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
140
+ try {
141
+ if (searchParams.hasNextPage) {
142
+ const {
143
+ data: result,
144
+ totalCount
145
+ } = await getScanData(activeTab, props.scanProps, searchParams.limit, searchParams.offset, query);
146
+ if (query) {
147
+ setSearchParams(searchParams => ({
148
+ hasNextPage: Boolean(totalCount - (searchParams.offset + searchParams.limit) > 0),
149
+ offset: searchParams.offset + result.length,
150
+ limit: searchParams.limit
151
+ }));
152
+ setScanList(scanList => {
153
+ const updatedScanList = result;
154
+ setDataProvider(dataProvider => {
155
+ return createNewDataProvider().cloneWithRows(updatedScanList);
156
+ });
157
+ return updatedScanList;
158
+ });
159
+ } else {
160
+ setSearchParams(searchParams => ({
161
+ hasNextPage: Boolean(totalCount - (searchParams.offset + searchParams.limit) > 0),
162
+ offset: searchParams.offset + result.length,
163
+ limit: searchParams.limit
164
+ }));
165
+ setScanList(scanList => {
166
+ let updatedScanList = [];
167
+ if (isSearchCleared) updatedScanList = [...result];else updatedScanList = dataProvider.getAllData().concat(result);
168
+ setIsSearchCleared(false);
169
+ setDataProvider(dataProvider => {
170
+ if (dataProvider) return dataProvider.cloneWithRows(updatedScanList);else return dataProvider;
171
+ });
172
+ return updatedScanList;
173
+ });
174
+ }
175
+ }
176
+ } catch (error) {} finally {
177
+ props.scanProps.showProgress(false);
178
+ }
179
+ };
180
+ useEffect(() => {
181
+ (async () => {
182
+ const count = await getTabCount(props.scanProps);
183
+ setTabs([{
184
+ title: SummaryPageTabs.ALL,
185
+ count: count[SummaryPageTabs.ALL]
186
+ }, {
187
+ title: SummaryPageTabs.PENDING,
188
+ count: count[SummaryPageTabs.PENDING]
189
+ }, {
190
+ title: SummaryPageTabs.DELIVERED,
191
+ count: count[SummaryPageTabs.DELIVERED]
192
+ }, {
193
+ title: SummaryPageTabs.UNDELIVERED,
194
+ count: count[SummaryPageTabs.UNDELIVERED]
195
+ }]);
196
+ })();
197
+ }, []);
198
+ useEffect(() => {
199
+ (async () => {
200
+ props.scanProps.showProgress(true);
201
+ setIsLoading(true);
202
+ await updateScanList(searchQuery);
203
+ setIsLoading(false);
204
+ props.scanProps.showProgress(false);
205
+ if (isRemoved) setIsRemoved(false);
206
+ })();
207
+ }, [isRemoved, activeTab, searchQuery]);
208
+ useEffect(() => {
209
+ (editedEventCode === null || editedEventCode === void 0 ? void 0 : editedEventCode.code) && (async () => {
210
+ let response = await getErcDropDownItems('REASON', props.ercSelector || [], editedEventCode === null || editedEventCode === void 0 ? void 0 : editedEventCode.code);
211
+ if (response.length) {
212
+ // setReasonItems(response);
213
+ setEditedReasonItems(response);
214
+ setEditedReason(response[0]);
215
+ } else {
216
+ // setReasonItems([]);
217
+ setEditedReasonItems([]);
218
+ setEditedReason(undefined);
219
+ }
220
+ })();
221
+ }, [editedEventCode === null || editedEventCode === void 0 ? void 0 : editedEventCode.code]);
222
+
223
+ // Triggered when the user reaches the end of the list
224
+ const onEndReached = async () => {
225
+ if (searchParams.hasNextPage === false || searchQuery.length > 0) return;
226
+
227
+ // Fetch more data when the user reaches the end of the list
228
+ setIsLoadingMore(true);
229
+ await updateScanList();
230
+ setIsLoadingMore(false);
231
+ };
232
+ const renderEditERCModal = () => {
233
+ return /*#__PURE__*/React.createElement(ModalWidget, {
234
+ showModal: showEditModal,
235
+ contentContainerStyle: {
236
+ marginStart: 40,
237
+ marginEnd: 40
238
+ },
239
+ title: {
240
+ label: 'Update'
241
+ },
242
+ renderChildren: () => {
243
+ return /*#__PURE__*/React.createElement(View, {
244
+ style: {
245
+ marginHorizontal: 16,
246
+ marginBottom: 20
247
+ }
248
+ }, /*#__PURE__*/React.createElement(View, {
249
+ style: {
250
+ marginBottom: 16
251
+ }
252
+ }, /*#__PURE__*/React.createElement(ERDropDown, {
253
+ title: 'Event',
254
+ style: {
255
+ height: 50
256
+ },
257
+ selectedReason: editedEventCode,
258
+ items: props.eventCodeItems,
259
+ onItemChange: eventItem => {
260
+ if (eventItem !== null) setEditedEventCode(eventItem);
261
+ }
262
+ })), /*#__PURE__*/React.createElement(View, {
263
+ style: {
264
+ marginVertical: 20
265
+ }
266
+ }, /*#__PURE__*/React.createElement(ERDropDown, {
267
+ title: 'Reason',
268
+ style: {
269
+ height: 50
270
+ },
271
+ selectedReason: editedReason,
272
+ disabled: !editedReasonItems || !(editedReasonItems !== null && editedReasonItems !== void 0 && editedReasonItems.length) ? true : false,
273
+ items: editedReasonItems ?? [],
274
+ onItemChange: reasonItem => {
275
+ if (reasonItem !== null) setEditedReason(reasonItem);
276
+ }
277
+ })));
278
+ },
279
+ buttonStyle: modalStyles.buttonStyles,
280
+ primaryButton: {
281
+ label: 'Update',
282
+ styles: {
283
+ ...modalStyles.editERCButton,
284
+ marginStart: 5
285
+ },
286
+ onPress: async () => {
287
+ const scan = selectedEditItem;
288
+ props.scanProps.showProgress(true);
289
+ if (scan && editedEventCode && editedEventCode.code) {
290
+ // UPDATE OUTPUT
291
+
292
+ try {
293
+ const {
294
+ status,
295
+ message,
296
+ type,
297
+ data: scanResult
298
+ } = await addScans(scan.scanId, props.scanProps, props.mergedScanETOutput, props.eventCodeItems, editedEventCode, editedReason);
299
+ if (status === true) {
300
+ // UPDATE COUNT OF TABS
301
+ const count = await getTabCount(props.scanProps);
302
+ setTabs([{
303
+ title: SummaryPageTabs.ALL,
304
+ count: count[SummaryPageTabs.ALL]
305
+ }, {
306
+ title: SummaryPageTabs.PENDING,
307
+ count: count[SummaryPageTabs.PENDING]
308
+ }, {
309
+ title: SummaryPageTabs.DELIVERED,
310
+ count: count[SummaryPageTabs.DELIVERED]
311
+ }, {
312
+ title: SummaryPageTabs.UNDELIVERED,
313
+ count: count[SummaryPageTabs.UNDELIVERED]
314
+ }]);
315
+
316
+ // UPDATE THE Count
317
+ props.updateShipmentCount(scanResult.shipmentCount.scannedCount, scanResult.shipmentCount.totalCount);
318
+ if (activeTab === SummaryPageTabs.ALL) {
319
+ setScanList(scanList => {
320
+ const updatedScanList = [...scanList];
321
+ updatedScanList[scan.index] = {
322
+ scanId: scan.scanId,
323
+ orderId: scan.orderId || '--',
324
+ clientName: scan.clientName || '--',
325
+ eventCode: editedEventCode.text,
326
+ reasonCode: (editedReason === null || editedReason === void 0 ? void 0 : editedReason.text) || '--',
327
+ prefixedMergedObjectiveId: scan.prefixedMergedObjectiveId,
328
+ lastStatus: scan.lastStatus
329
+ };
330
+ setDataProvider(dataProvider => {
331
+ if (dataProvider) return dataProvider.cloneWithRows(updatedScanList);else return dataProvider;
332
+ });
333
+ return updatedScanList;
334
+ });
335
+ } else if (activeTab === SummaryPageTabs.PENDING) {
336
+ setSearchParams({
337
+ ...searchParams,
338
+ offset: searchParams.offset - 1
339
+ });
340
+ setScanList(scanList => {
341
+ let updatedScanList = dataProvider.getAllData();
342
+ updatedScanList = updatedScanList.filter(scanItem => scanItem.scanId !== scan.scanId);
343
+ // updatedScanList.splice(scan.index, 1);
344
+
345
+ setDataProvider(dataProvider => {
346
+ if (dataProvider) return dataProvider.cloneWithRows(updatedScanList);else return dataProvider;
347
+ });
348
+ return updatedScanList;
349
+ });
350
+ } else if (activeTab === SummaryPageTabs.DELIVERED) {
351
+ setScanList(scanList => {
352
+ let updatedScanList = dataProvider.getAllData();
353
+ const successEvent = Boolean(editedEventCode.success);
354
+ if (successEvent) {
355
+ updatedScanList[scan.index] = {
356
+ scanId: scan.scanId,
357
+ orderId: scan.orderId || '--',
358
+ clientName: scan.clientName || '--',
359
+ eventCode: editedEventCode.text,
360
+ reasonCode: (editedReason === null || editedReason === void 0 ? void 0 : editedReason.text) || '--',
361
+ prefixedMergedObjectiveId: scan.prefixedMergedObjectiveId,
362
+ lastStatus: scan.lastStatus
363
+ };
364
+ } else {
365
+ setSearchParams({
366
+ ...searchParams,
367
+ offset: searchParams.offset - 1
368
+ });
369
+ updatedScanList = updatedScanList.filter(scanItem => scanItem.scanId !== scan.scanId);
370
+ }
371
+ setDataProvider(dataProvider => {
372
+ if (dataProvider) return dataProvider.cloneWithRows(updatedScanList);else return dataProvider;
373
+ });
374
+ return updatedScanList;
375
+ });
376
+ } else if (activeTab === SummaryPageTabs.UNDELIVERED) {
377
+ setScanList(scanList => {
378
+ let updatedScanList = dataProvider.getAllData();
379
+ const successEvent = Boolean(editedEventCode.success);
380
+ if (!successEvent) {
381
+ updatedScanList[scan.index] = {
382
+ scanId: scan.scanId,
383
+ orderId: scan.orderId || '--',
384
+ clientName: scan.clientName || '--',
385
+ eventCode: editedEventCode.text,
386
+ reasonCode: (editedReason === null || editedReason === void 0 ? void 0 : editedReason.text) || '--',
387
+ prefixedMergedObjectiveId: scan.prefixedMergedObjectiveId,
388
+ lastStatus: scan.lastStatus
389
+ };
390
+ } else {
391
+ setSearchParams({
392
+ ...searchParams,
393
+ offset: searchParams.offset - 1
394
+ });
395
+ updatedScanList = updatedScanList.filter(scanItem => scanItem.scanId !== scan.scanId);
396
+ }
397
+ setDataProvider(dataProvider => {
398
+ if (dataProvider) return dataProvider.cloneWithRows(updatedScanList);else return dataProvider;
399
+ });
400
+ return updatedScanList;
401
+ });
402
+ }
403
+ setSnackBar({
404
+ show: true,
405
+ message: scan.eventCode !== '--' ? `#${scan.scanId}\nShipment updated successfully!` : message,
406
+ type
407
+ });
408
+ } else {
409
+ setSnackBar({
410
+ show: true,
411
+ message,
412
+ type
413
+ });
414
+ }
415
+ } catch (error) {
416
+ setSnackBar({
417
+ show: true,
418
+ message: 'Some error occurred',
419
+ type: SnackBarType.FAILURE
420
+ });
421
+ }
422
+ } else {
423
+ setSnackBar({
424
+ show: true,
425
+ message: 'Some error occurred',
426
+ type: SnackBarType.FAILURE
427
+ });
428
+ }
429
+
430
+ // RESET KEYS
431
+ props.scanProps.showProgress(false);
432
+ setSelectedEditItem(undefined);
433
+ setShowEditModal(false);
434
+ return;
435
+ }
436
+ },
437
+ secondaryButton: {
438
+ label: 'Cancel',
439
+ styles: {
440
+ ...modalStyles.editERCButton,
441
+ marginEnd: 5
442
+ },
443
+ onPress: () => {
444
+ setShowEditModal(false);
445
+ setSelectedEditItem(undefined);
446
+ }
447
+ }
448
+ });
449
+ };
450
+ const renderUnscannedShipmentModal = () => {
451
+ return /*#__PURE__*/React.createElement(ModalWidget, {
452
+ showModal: showUnscannedShipmentModal,
453
+ title: {
454
+ label: 'Pending Shipments'
455
+ },
456
+ subTitle: {
457
+ label: `You still have ${tabs[1].count} unscanned shipment!`,
458
+ styles: {
459
+ textAlign: 'center'
460
+ }
461
+ },
462
+ primaryButton: {
463
+ label: 'Continue without Scanning',
464
+ styles: modalStyles.primaryButtonStyles,
465
+ onPress: () => {
466
+ props.handleSubmitET(PROCEED_STATUS.DELIVER_LATER, tabs[1].count);
467
+ }
468
+ },
469
+ secondaryButton: {
470
+ label: `Keep Scanning`,
471
+ styles: modalStyles.secondaryButtonStyles,
472
+ onPress: () => setShowUnscannedShipmentModal(false)
473
+ }
474
+ // OLD CODE: When you wanted to update Undelivered shipments with a particular ERC got removed after: https://dev.azure.com/DelhiveryPlatform/Solutions/_workitems/edit/15669
475
+ // secondaryButton={{
476
+ // label: `Mark as Undelivered`,
477
+ // styles: modalStyles.secondaryButtonStyles,
478
+ // onPress: () => {
479
+ // setShowUnscannedShipmentModal(false);
480
+ // setShowERCModal(true);
481
+ // },
482
+ // }}
483
+ // renderAdditionalButtons={() => {
484
+ // return (
485
+ // <TouchableOpacity
486
+ // style={{
487
+ // marginBottom: 16,
488
+ // height: 40,
489
+ // borderRadius: 6,
490
+ // justifyContent: 'center',
491
+ // alignItems: 'center',
492
+ // }}
493
+ // onPress={() => setShowUnscannedShipmentModal(false)}
494
+ // >
495
+ // <Text
496
+ // style={[
497
+ // CommonStyles.cancelButtonLabel,
498
+ // { color: SdkColors[ColorTheme.LIGHT].primaryButton },
499
+ // ]}
500
+ // >
501
+ // Continue Scanning
502
+ // </Text>
503
+ // </TouchableOpacity>
504
+ // );
505
+ // }}
506
+ });
507
+ };
508
+
509
+ const renderERCModal = () => {
510
+ return /*#__PURE__*/React.createElement(ModalWidget, {
511
+ showModal: showERCModal,
512
+ contentContainerStyle: {
513
+ marginStart: 40,
514
+ marginEnd: 40
515
+ },
516
+ title: {
517
+ label: 'Mark as Undelivered'
518
+ },
519
+ subTitle: {
520
+ label: `The shipments shall be updated with the following:`
521
+ },
522
+ renderChildren: () => {
523
+ return /*#__PURE__*/React.createElement(View, {
524
+ style: {
525
+ marginHorizontal: 16,
526
+ marginBottom: 20
527
+ }
528
+ }, /*#__PURE__*/React.createElement(View, {
529
+ style: {
530
+ marginBottom: 16
531
+ }
532
+ }, /*#__PURE__*/React.createElement(ERDropDown, {
533
+ title: 'Event',
534
+ style: {
535
+ height: 50
536
+ },
537
+ selectedReason: selectedEventCode,
538
+ items: filterERCItems(props.eventCodeItems, 'FAILURE'),
539
+ onItemChange: eventItem => {
540
+ if (eventItem !== null) setSelectedEventCode(eventItem);
541
+ }
542
+ })), /*#__PURE__*/React.createElement(View, {
543
+ style: {
544
+ marginVertical: 20
545
+ }
546
+ }, /*#__PURE__*/React.createElement(ERDropDown, {
547
+ title: 'Reason',
548
+ style: {
549
+ height: 50
550
+ },
551
+ selectedReason: selectedReason,
552
+ disabled: !reasonItems || !(reasonItems !== null && reasonItems !== void 0 && reasonItems.length) ? true : false,
553
+ items: reasonItems ?? [],
554
+ onItemChange: reasonItem => {
555
+ if (reasonItem !== null) setSelectedReason(reasonItem);
556
+ }
557
+ })));
558
+ },
559
+ buttonStyle: {
560
+ zIndex: -1
561
+ },
562
+ primaryButton: {
563
+ label: 'Proceed',
564
+ styles: modalStyles.primaryButtonStyles,
565
+ onPress: () => {
566
+ props.handleSubmitET(PROCEED_STATUS.DELIVER_NOW, tabs[1].count, {
567
+ ec: (selectedEventCode === null || selectedEventCode === void 0 ? void 0 : selectedEventCode.code) || '',
568
+ rc: (selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) || ''
569
+ });
570
+ setShowERCModal(false);
571
+ }
572
+ },
573
+ secondaryButton: {
574
+ label: `Cancel`,
575
+ styles: modalStyles.secondaryButtonStyles,
576
+ onPress: () => {
577
+ setShowERCModal(false);
578
+ }
579
+ }
580
+ });
581
+ };
582
+ const renderRemoveShipmentModal = () => {
583
+ return /*#__PURE__*/React.createElement(ModalWidget, {
584
+ showModal: showRemoveShipmentModal,
585
+ contentContainerStyle: {
586
+ marginStart: 40,
587
+ marginEnd: 40
588
+ },
589
+ title: {
590
+ label: 'Remove Shipment'
591
+ },
592
+ subTitle: {
593
+ label: `${Object.keys(selectedItems).length > 1 ? `Are you sure you want to remove the ${Object.keys(selectedItems).length} shipments?` : 'Are you sure you want to remove this shipment?'}`,
594
+ styles: modalStyles.subTitleStyles
595
+ },
596
+ primaryButton: {
597
+ label: 'Proceed to Remove',
598
+ styles: modalStyles.primaryButtonStyles,
599
+ onPress: async () => {
600
+ props.scanProps.showProgress(true);
601
+ const prefixedMergedObjectiveId = props.scanProps.route.params[RouteParams.ROOT_META_DATA].prefixedMergedObjectiveId;
602
+ try {
603
+ // REMOVE SCAN
604
+ await removeScan(props.scanProps.taskName || '', Object.keys(selectedItems), props.scanProps.route, props.mergedScanETOutput);
605
+
606
+ // UPDATE THE Count
607
+ props.updateShipmentCount(-Object.keys(selectedItems).length, 0, 'REMOVE');
608
+
609
+ // UPDATE COUNT OF TABS
610
+ const count = await getTabCount(props.scanProps);
611
+ setSearchParams({
612
+ ...searchParams,
613
+ offset: searchParams.offset - Object.keys(selectedItems).length
614
+ });
615
+
616
+ // RESET SCAN LIST
617
+ setScanList(scanList => {
618
+ let updatedScanList;
619
+ const itemsRemoved = [];
620
+ if (activeTab === SummaryPageTabs.ALL) {
621
+ updatedScanList = [...scanList];
622
+ Object.keys(selectedItems).forEach(scanId => {
623
+ const item = selectedItems[scanId]; // returns Display Summary with Index
624
+
625
+ if (item.prefixedMergedObjectiveId !== prefixedMergedObjectiveId || item.lastStatus === IDispatchExecutor.ExecutionStatus.COMPLETED_FAILURE) {
626
+ itemsRemoved.push(item.scanId);
627
+ } else {
628
+ updatedScanList[item.index] = {
629
+ scanId: item.scanId,
630
+ orderId: item.orderId || '--',
631
+ clientName: item.clientName || '--',
632
+ eventCode: '--',
633
+ reasonCode: '--'
634
+ };
635
+ }
636
+ });
637
+ } else if (activeTab === SummaryPageTabs.DELIVERED || activeTab === SummaryPageTabs.UNDELIVERED) {
638
+ const indexes = Object.keys(selectedItems).map(scanId => {
639
+ const item = selectedItems[scanId];
640
+ return item.index;
641
+ });
642
+ updatedScanList = scanList.filter((value, index) => !indexes.includes(index));
643
+ } else {
644
+ updatedScanList = scanList;
645
+ }
646
+ setDataProvider(dataProvider => {
647
+ return dataProvider.cloneWithRows(updatedScanList);
648
+ });
649
+ setTabs([{
650
+ title: SummaryPageTabs.ALL,
651
+ count: count[SummaryPageTabs.ALL]
652
+ }, {
653
+ title: SummaryPageTabs.PENDING,
654
+ count: count[SummaryPageTabs.PENDING]
655
+ }, {
656
+ title: SummaryPageTabs.DELIVERED,
657
+ count: count[SummaryPageTabs.DELIVERED]
658
+ }, {
659
+ title: SummaryPageTabs.UNDELIVERED,
660
+ count: count[SummaryPageTabs.UNDELIVERED]
661
+ }]);
662
+
663
+ // RESET MODAL
664
+ setShowRemoveShipmentModal(false);
665
+
666
+ // RESET SELECTED ITEMS
667
+ setSelectedItems({});
668
+ updatedScanList = updatedScanList.filter(scan => !itemsRemoved.includes(scan.scanId));
669
+ setDataProvider(dataProvider => {
670
+ if (dataProvider) return dataProvider.cloneWithRows(updatedScanList);else return dataProvider;
671
+ });
672
+ return updatedScanList;
673
+ });
674
+
675
+ // RESET MODAL
676
+ setShowRemoveShipmentModal(false);
677
+
678
+ // RESET SELECTED ITEMS
679
+ setSelectedItems({});
680
+
681
+ // RESET Loader
682
+ props.scanProps.showProgress(false);
683
+
684
+ // Show Success Message
685
+ setSnackBar({
686
+ show: true,
687
+ message: 'Selected items removed successfully!',
688
+ type: SnackBarType.SUCCESS
689
+ });
690
+ } catch (error) {
691
+ // RESET MODAL
692
+ setShowRemoveShipmentModal(false);
693
+ setSnackBar({
694
+ show: true,
695
+ message: 'Some error occurred',
696
+ type: SnackBarType.FAILURE
697
+ });
698
+ } finally {
699
+ props.scanProps.showProgress(false);
700
+ }
701
+ }
702
+ },
703
+ secondaryButton: {
704
+ label: `Cancel`,
705
+ styles: modalStyles.secondaryButtonStyles,
706
+ onPress: () => {
707
+ setShowRemoveShipmentModal(false);
708
+ }
709
+ }
710
+ });
711
+ };
712
+ const rowRenderer = (_, scan, index) => {
713
+ const prefixedMergedObjectiveId = props.scanProps.route.params[RouteParams.ROOT_META_DATA].prefixedMergedObjectiveId;
714
+ return /*#__PURE__*/React.createElement(Card, {
715
+ key: scan.scanId,
716
+ title: `#${scan.scanId}`,
717
+ renderAdditionalHeader: () => {
718
+ if (scan.prefixedMergedObjectiveId && prefixedMergedObjectiveId !== scan.prefixedMergedObjectiveId) return /*#__PURE__*/React.createElement(AntDesign, {
719
+ name: "exclamationcircleo",
720
+ size: 16,
721
+ color: "#EA580C"
722
+ });else return /*#__PURE__*/React.createElement(React.Fragment, null);
723
+ },
724
+ Body: /*#__PURE__*/React.createElement(View, {
725
+ style: {
726
+ marginVertical: 10
727
+ }
728
+ }, /*#__PURE__*/React.createElement(Text, {
729
+ style: styles.cardField
730
+ }, /*#__PURE__*/React.createElement(Text, {
731
+ style: styles.cardFieldSubText
732
+ }, "Order ID:"), ' ', scan.orderId), /*#__PURE__*/React.createElement(Text, {
733
+ style: styles.cardField
734
+ }, /*#__PURE__*/React.createElement(Text, {
735
+ style: styles.cardFieldSubText
736
+ }, "Client Name:"), scan.clientName), /*#__PURE__*/React.createElement(Text, {
737
+ style: styles.cardField
738
+ }, /*#__PURE__*/React.createElement(Text, {
739
+ style: styles.cardFieldSubText
740
+ }, "Event:"), ' ', scan.eventCode), /*#__PURE__*/React.createElement(Text, null, /*#__PURE__*/React.createElement(Text, {
741
+ style: styles.cardFieldSubText
742
+ }, "Reason:"), scan.reasonCode || '')),
743
+ editConfig: {
744
+ onEdit: props => {
745
+ if (selectedItems && Object.keys(selectedItems).length > 1) {
746
+ setSnackBar({
747
+ show: true,
748
+ message: 'Cannot Edit Multiple Items',
749
+ type: SnackBarType.FAILURE
750
+ });
751
+ } else {
752
+ setSelectedItems({});
753
+ setShowEditModal(true);
754
+ setSelectedEditItem({
755
+ ...props,
756
+ index
757
+ });
758
+ }
759
+ },
760
+ props: scan
761
+ },
762
+ selectConfig: {
763
+ isSelected: selectedItems[scan.scanId] ? true : false,
764
+ onSelect: props => {
765
+ setSelectedItems(selectedItems => {
766
+ // Unselect
767
+ if (selectedItems[props.scanId]) {
768
+ const _selectedItems = {
769
+ ...selectedItems
770
+ };
771
+ delete _selectedItems[props.scanId];
772
+ return _selectedItems;
773
+ } else {
774
+ return {
775
+ ...selectedItems,
776
+ [props.scanId]: {
777
+ ...props,
778
+ index
779
+ }
780
+ };
781
+ }
782
+ });
783
+ },
784
+ props: scan
785
+ }
786
+ });
787
+ };
788
+ const renderBody = currentTab => {
789
+ return /*#__PURE__*/React.createElement(View, {
790
+ style: {
791
+ flex: 1
792
+ }
793
+ }, /*#__PURE__*/React.createElement(View, {
794
+ style: styles.searchBar
795
+ }, /*#__PURE__*/React.createElement(SearchBar, {
796
+ searchText: searchText,
797
+ setSearchText: setSearchText,
798
+ placeholder: "Shipment ID",
799
+ onChangeSearch: searchText => debouncedChangeSearch(searchText),
800
+ onClear: () => {
801
+ setSearchQuery(() => {
802
+ setIsSearchCleared(true);
803
+ setSearchParams(INITIAL_SEARCH_PARAMS);
804
+ return '';
805
+ });
806
+ }
807
+ })), !isLoading && scanList && scanList.length > 0 ? /*#__PURE__*/React.createElement(RecyclerListView, {
808
+ layoutProvider: _layoutProvider,
809
+ dataProvider: dataProvider,
810
+ rowRenderer: (type, scanData, index) => rowRenderer(type, scanData, index),
811
+ onEndReached: async () => await onEndReached(),
812
+ onEndReachedThreshold: 0.5,
813
+ renderFooter: () => {
814
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isLoadingMore ? /*#__PURE__*/React.createElement(Text, {
815
+ style: {
816
+ padding: 10,
817
+ fontWeight: 'bold',
818
+ textAlign: 'center'
819
+ }
820
+ }, "Loading") : null);
821
+ }
822
+ }) : null, !isLoading && scanList.length === 0 ? /*#__PURE__*/React.createElement(View, {
823
+ style: {
824
+ flex: 1,
825
+ justifyContent: 'center',
826
+ alignItems: 'center'
827
+ }
828
+ }, /*#__PURE__*/React.createElement(FileIcon, null), /*#__PURE__*/React.createElement(Text, {
829
+ style: {
830
+ color: '#3D445C',
831
+ fontFamily: Fonts.IBMPlexSans_500Medium,
832
+ fontStyle: 'normal',
833
+ fontWeight: '500',
834
+ fontSize: 16,
835
+ marginTop: 24
836
+ }
837
+ }, `You do not have any ${activeTab.toLowerCase()} shipments`), activeTab === SummaryPageTabs.PENDING ? /*#__PURE__*/React.createElement(Text, {
838
+ style: {
839
+ color: '#525B7A',
840
+ fontFamily: Fonts.IBMPlexSans_400Regular,
841
+ fontStyle: 'normal',
842
+ fontWeight: '400',
843
+ fontSize: 14
844
+ }
845
+ }, "You can proceed to the next step now") : null) : null);
846
+ };
847
+ const renderTabItem = tab => {
848
+ return /*#__PURE__*/React.createElement(View, {
849
+ style: styles.tabItem
850
+ }, /*#__PURE__*/React.createElement(View, {
851
+ style: styles.tabText
852
+ }, /*#__PURE__*/React.createElement(Text, {
853
+ style: activeTab === tab.title ? {
854
+ color: '#5B80F7'
855
+ } : {}
856
+ }, `${tab.title}`)), /*#__PURE__*/React.createElement(View, {
857
+ style: activeTab !== tab.title ? styles.tabCount : [styles.tabCount, {
858
+ backgroundColor: '#ECF0FF'
859
+ }]
860
+ }, /*#__PURE__*/React.createElement(Text, null, `${tab.count}`)));
861
+ };
862
+ // END: Summary List Handling
863
+
864
+ return /*#__PURE__*/React.createElement(React.Fragment, null, renderERCModal(), renderUnscannedShipmentModal(), renderEditERCModal(), renderRemoveShipmentModal(), /*#__PURE__*/React.createElement(View, {
865
+ style: {
866
+ flex: 1
867
+ }
868
+ }, /*#__PURE__*/React.createElement(TabsComponent, {
869
+ tabs: tabs,
870
+ initialTab: tabs[1],
871
+ onTabChange: currentTab => {
872
+ if (activeTab === currentTab) {
873
+ return;
874
+ }
875
+ // @ts-ignore
876
+ setActiveTab(activeTab => {
877
+ // RESET Search TEXT
878
+ setSearchText('');
879
+ setSearchQuery('');
880
+
881
+ // RESET SEARCH PARAMS
882
+ setSearchParams(INITIAL_SEARCH_PARAMS);
883
+
884
+ // RESET SCAN LIST
885
+ setScanList(scanList => {
886
+ const updatedScanList = [];
887
+ setDataProvider(dataProvider => {
888
+ if (dataProvider) return dataProvider.cloneWithRows(updatedScanList);else return dataProvider;
889
+ });
890
+ return updatedScanList;
891
+ });
892
+
893
+ // RESET SELECTED ITEMS
894
+ setSelectedItems({});
895
+ return currentTab;
896
+ });
897
+ },
898
+ renderTabItem: renderTabItem,
899
+ renderBody: renderBody
900
+ })), /*#__PURE__*/React.createElement(View, {
901
+ style: {
902
+ justifyContent: 'flex-end'
903
+ }
904
+ }, /*#__PURE__*/React.createElement(SnackBarCustom, {
905
+ type: snackBar.type,
906
+ message: `${snackBar.message}`,
907
+ visible: snackBar.show,
908
+ onDismiss: () => {
909
+ setSnackBar({
910
+ show: false,
911
+ message: '',
912
+ type: SnackBarType.SUCCESS
913
+ });
914
+ },
915
+ customBottom: 20
916
+ })), !selectedItems || Object.keys(selectedItems).length === 0 ? /*#__PURE__*/React.createElement(View, {
917
+ style: styles.bottomView
918
+ }, renderActionButtons()) : null, selectedItems && Object.keys(selectedItems).length && activeTab !== SummaryPageTabs.PENDING ? /*#__PURE__*/React.createElement(View, {
919
+ style: styles.removeBtnContainer
920
+ }, /*#__PURE__*/React.createElement(View, {
921
+ style: {
922
+ flexDirection: 'row',
923
+ alignItems: 'center',
924
+ marginLeft: 10
925
+ }
926
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
927
+ onPress: () => setSelectedItems({}),
928
+ style: styles.removeSelection
929
+ }, /*#__PURE__*/React.createElement(Entypo, {
930
+ name: "cross",
931
+ size: 24,
932
+ color: "#3D445C"
933
+ })), /*#__PURE__*/React.createElement(Text, null, `${Object.keys(selectedItems).length} Selected`)), /*#__PURE__*/React.createElement(Button, {
934
+ labelStyle: CommonStyles.mainExitButtonLabel,
935
+ style: [CommonStyles.mainExitButton, styles.removeBtn],
936
+ onPress: () => {
937
+ if (canRemove(selectedItems)) setShowRemoveShipmentModal(true);else {
938
+ setSnackBar({
939
+ show: true,
940
+ message: 'Cannot Remove unscanned shipment(s)',
941
+ type: SnackBarType.FAILURE
942
+ });
943
+ }
944
+ }
945
+ }, "Remove")) : null);
946
+ };
947
+ export default SummaryPage;
948
+ const styles = StyleSheet.create({
949
+ bottomView: {
950
+ paddingBottom: 16,
951
+ justifyContent: 'flex-end',
952
+ marginVertical: 10,
953
+ marginHorizontal: 16
954
+ },
955
+ modalContent: {
956
+ marginStart: 60,
957
+ marginEnd: 60,
958
+ flex: 1,
959
+ marginBottom: 60
960
+ },
961
+ modalView: {
962
+ backgroundColor: 'white',
963
+ padding: 15,
964
+ borderRadius: 9
965
+ },
966
+ titleText: {
967
+ justifyContent: 'center',
968
+ fontFamily: Fonts.IBMPlexSans_600SemiBold,
969
+ fontStyle: 'normal',
970
+ fontSize: 14,
971
+ lineHeight: 20,
972
+ textAlign: 'center',
973
+ color: '#111111',
974
+ marginBottom: 10
975
+ },
976
+ subText: {
977
+ justifyContent: 'center',
978
+ fontFamily: 'IBMPlexSans_400Regular',
979
+ fontStyle: 'normal',
980
+ fontSize: 14,
981
+ letterSpacing: 0.25,
982
+ lineHeight: 20,
983
+ textAlign: 'center',
984
+ color: '#000000',
985
+ marginBottom: 10
986
+ },
987
+ bottomButtons: {
988
+ justifyContent: 'space-between',
989
+ flexDirection: 'row',
990
+ marginTop: 8
991
+ },
992
+ unscannedShipmentModalSubText: {
993
+ justifyContent: 'center',
994
+ fontFamily: 'IBMPlexSans_400Regular',
995
+ fontStyle: 'normal',
996
+ fontSize: 14,
997
+ letterSpacing: 0.25,
998
+ lineHeight: 20,
999
+ color: '#000000',
1000
+ marginBottom: 10
1001
+ },
1002
+ tabItem: {
1003
+ // width: 200,
1004
+ flexDirection: 'row',
1005
+ justifyContent: 'center',
1006
+ alignItems: 'center',
1007
+ paddingVertical: 5,
1008
+ marginHorizontal: 10
1009
+ },
1010
+ activeTab: {
1011
+ borderBottomWidth: 2,
1012
+ borderBottomColor: 'blue'
1013
+ },
1014
+ tabText: {
1015
+ fontSize: 16,
1016
+ fontWeight: '400',
1017
+ color: '#3D445C',
1018
+ marginRight: 12
1019
+ },
1020
+ tabCount: {
1021
+ borderRadius: 50,
1022
+ backgroundColor: '#E0E3EB',
1023
+ paddingHorizontal: 15,
1024
+ textAlign: 'center'
1025
+ },
1026
+ removeBtnContainer: {
1027
+ borderTopWidth: 1,
1028
+ borderTopColor: '#E0E3EB',
1029
+ padding: 10,
1030
+ flexDirection: 'row',
1031
+ alignItems: 'center',
1032
+ justifyContent: 'space-between'
1033
+ },
1034
+ removeSelection: {
1035
+ marginRight: 20
1036
+ },
1037
+ removeBtn: {
1038
+ marginRight: 10
1039
+ },
1040
+ searchBar: {
1041
+ marginTop: 16
1042
+ },
1043
+ cardField: {
1044
+ marginBottom: 8
1045
+ },
1046
+ cardFieldSubText: {
1047
+ color: '#A3AAC2'
1048
+ }
1049
+ });
1050
+ const modalStyles = StyleSheet.create({
1051
+ primaryButtonStyles: {
1052
+ marginTop: 16,
1053
+ height: 40,
1054
+ borderRadius: 6,
1055
+ justifyContent: 'center',
1056
+ alignItems: 'center'
1057
+ },
1058
+ secondaryButtonStyles: {
1059
+ marginVertical: 16,
1060
+ height: 40,
1061
+ borderRadius: 6,
1062
+ justifyContent: 'center',
1063
+ alignItems: 'center'
1064
+ },
1065
+ subTitleStyles: {
1066
+ textAlign: 'center'
1067
+ },
1068
+ buttonStyles: {
1069
+ justifyContent: 'space-between',
1070
+ flexDirection: 'row-reverse',
1071
+ marginTop: 20,
1072
+ zIndex: -1
1073
+ },
1074
+ editERCButton: {
1075
+ justifyContent: 'center',
1076
+ alignItems: 'center',
1077
+ flex: 1,
1078
+ height: 40,
1079
+ borderRadius: 6
1080
+ }
1081
+ });
1082
+ function canRemove(scans) {
1083
+ for (const scanId in scans) {
1084
+ const item = scans[scanId];
1085
+ if (item.eventCode && item.eventCode !== '--') continue;else return false;
1086
+ }
1087
+ return true;
1088
+ }
1089
+ //# sourceMappingURL=SummaryPage.js.map