@os1-platform/dispatch-mobile 1.3.11 → 2.0.0

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