@os1-platform/dispatch-mobile 2.1.1 → 2.1.2

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 (573) hide show
  1. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  2. package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  3. package/android/gradlew +185 -0
  4. package/android/gradlew.bat +89 -0
  5. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +4 -3
  6. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
  7. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +8 -13
  8. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
  9. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +4 -3
  10. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  11. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +4 -3
  12. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
  13. package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  14. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +25 -105
  15. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  16. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +8 -7
  17. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
  18. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +13 -36
  19. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
  20. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +4 -3
  21. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  22. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +7 -6
  23. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  24. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +6 -5
  25. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
  26. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +5 -4
  27. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  28. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +4 -3
  29. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
  30. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +4 -3
  31. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  32. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +4 -3
  33. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  34. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +4 -3
  35. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  36. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +22 -136
  37. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  38. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +8 -8
  39. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  40. package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js +7 -6
  41. package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -1
  42. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +6 -5
  43. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  44. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +4 -3
  45. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  46. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +4 -3
  47. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  48. package/lib/commonjs/components/executiontasks/pickup/PickpSchema.js.map +1 -1
  49. package/lib/commonjs/components/executiontasks/pickup/PickupET.js +4 -3
  50. package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
  51. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +16 -88
  52. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  53. package/lib/commonjs/components/executiontasks/scan/ScanET.js +15 -14
  54. package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
  55. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +2 -1
  56. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -1
  57. package/lib/commonjs/components/executiontasks/scan/constants.js +12 -6
  58. package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -1
  59. package/lib/commonjs/components/executiontasks/scan/interfaces.js +8 -4
  60. package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
  61. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +5 -4
  62. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  63. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +6 -5
  64. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  65. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +9 -8
  66. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  67. package/lib/commonjs/components/executiontasks/scan/utils.js +2 -2
  68. package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
  69. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +9 -8
  70. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  71. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js +2 -1
  72. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
  73. package/lib/commonjs/components/executiontasks/validateOTP/constants.js +12 -6
  74. package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -1
  75. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +6 -5
  76. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  77. package/lib/commonjs/components/executiontasks/validateOTP/utils.js +2 -2
  78. package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
  79. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +2 -2
  80. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  81. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -3
  82. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  83. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +4 -3
  84. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  85. package/lib/commonjs/components/widgets/AlertDisplay.js +9 -14
  86. package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
  87. package/lib/commonjs/components/widgets/CancelOrderDialog.js +6 -5
  88. package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
  89. package/lib/commonjs/components/widgets/Card.js +3 -2
  90. package/lib/commonjs/components/widgets/Card.js.map +1 -1
  91. package/lib/commonjs/components/widgets/GoBackModal.js +2 -1
  92. package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -1
  93. package/lib/commonjs/components/widgets/IconButton.js +2 -1
  94. package/lib/commonjs/components/widgets/IconButton.js.map +1 -1
  95. package/lib/commonjs/components/widgets/ModalWidget.js +4 -3
  96. package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -1
  97. package/lib/commonjs/components/widgets/ProgressDialog.js +3 -2
  98. package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
  99. package/lib/commonjs/components/widgets/SearchBar.js +2 -1
  100. package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
  101. package/lib/commonjs/components/widgets/SnackBarCustom.js +5 -3
  102. package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
  103. package/lib/commonjs/components/widgets/SplitTextInput.js +4 -3
  104. package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
  105. package/lib/commonjs/components/widgets/TabsComponent.js +4 -3
  106. package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
  107. package/lib/commonjs/config/DispatchSDKConfig.js +2 -1
  108. package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -1
  109. package/lib/commonjs/constants/apiConstants.js +4 -2
  110. package/lib/commonjs/constants/apiConstants.js.map +1 -1
  111. package/lib/commonjs/constants/constants.js +22 -11
  112. package/lib/commonjs/constants/constants.js.map +1 -1
  113. package/lib/commonjs/constants/statuscode.js +2 -1
  114. package/lib/commonjs/constants/statuscode.js.map +1 -1
  115. package/lib/commonjs/errors/ErrorCodes.js +14 -7
  116. package/lib/commonjs/errors/ErrorCodes.js.map +1 -1
  117. package/lib/commonjs/events/EventDispatcher.js +3 -5
  118. package/lib/commonjs/events/EventDispatcher.js.map +1 -1
  119. package/lib/commonjs/events/EventListener.js +2 -1
  120. package/lib/commonjs/events/EventListener.js.map +1 -1
  121. package/lib/commonjs/events/constants.js +2 -1
  122. package/lib/commonjs/events/constants.js.map +1 -1
  123. package/lib/commonjs/events/index.js +2 -1
  124. package/lib/commonjs/events/index.js.map +1 -1
  125. package/lib/commonjs/icons/ScanIcon.js +2 -1
  126. package/lib/commonjs/icons/ScanIcon.js.map +1 -1
  127. package/lib/commonjs/icons/file.js +2 -1
  128. package/lib/commonjs/icons/file.js.map +1 -1
  129. package/lib/commonjs/index.js +2 -8
  130. package/lib/commonjs/index.js.map +1 -1
  131. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +3 -5
  132. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
  133. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +0 -2
  134. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  135. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +2 -4
  136. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  137. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +2 -4
  138. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  139. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +2 -4
  140. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  141. package/lib/commonjs/manager/location/LocationManager.js +4 -7
  142. package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
  143. package/lib/commonjs/manager/sdk/DispatchSDKManager.js +2 -4
  144. package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
  145. package/lib/commonjs/manager/sdk/DispatchSdkCache.js +0 -2
  146. package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
  147. package/lib/commonjs/manager/sdk/callbacksHandler.js +2 -1
  148. package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
  149. package/lib/commonjs/manager/syncmanager/AppSyncManager.js +2 -4
  150. package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
  151. package/lib/commonjs/manager/syncmanager/DBConfig.js +26 -15
  152. package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
  153. package/lib/commonjs/manager/syncmanager/NativeSyncManager.js +2 -1
  154. package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -1
  155. package/lib/commonjs/manager/syncmanager/constants.js +10 -5
  156. package/lib/commonjs/manager/syncmanager/constants.js.map +1 -1
  157. package/lib/commonjs/manager/syncmanager/database.js +2 -2
  158. package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
  159. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +4 -5
  160. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  161. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +2 -4
  162. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
  163. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +2 -4
  164. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  165. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +3 -15
  166. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  167. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +2 -4
  168. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  169. package/lib/commonjs/models/DispatchModels.js +2 -1
  170. package/lib/commonjs/models/DispatchModels.js.map +1 -1
  171. package/lib/commonjs/models/execTasks/ETConfig.js +12 -6
  172. package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
  173. package/lib/commonjs/models/fcm.js.map +1 -1
  174. package/lib/commonjs/models/sdk.js +2 -1
  175. package/lib/commonjs/models/sdk.js.map +1 -1
  176. package/lib/commonjs/native/signature/SignatureCapture.js +2 -1
  177. package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
  178. package/lib/commonjs/network/GraphQLClient.js +4 -48
  179. package/lib/commonjs/network/GraphQLClient.js.map +1 -1
  180. package/lib/commonjs/network/Queries.js +10 -5
  181. package/lib/commonjs/network/Queries.js.map +1 -1
  182. package/lib/commonjs/res/strings.js +2 -1
  183. package/lib/commonjs/res/strings.js.map +1 -1
  184. package/lib/commonjs/resources/Login.js +2 -1
  185. package/lib/commonjs/resources/Login.js.map +1 -1
  186. package/lib/commonjs/resources/network.js +2 -1
  187. package/lib/commonjs/resources/network.js.map +1 -1
  188. package/lib/commonjs/styles/SdkColors.js +4 -2
  189. package/lib/commonjs/styles/SdkColors.js.map +1 -1
  190. package/lib/commonjs/styles/executionTasks/CommonStyles.js +10 -6
  191. package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
  192. package/lib/commonjs/ui/screens/CancellationScreen.js +4 -3
  193. package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
  194. package/lib/commonjs/ui/screens/CaptureInputScreen.js +5 -5
  195. package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
  196. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +4 -3
  197. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  198. package/lib/commonjs/ui/screens/DeliverScreen.js +5 -12
  199. package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
  200. package/lib/commonjs/ui/screens/DisplayScreen.js +4 -3
  201. package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
  202. package/lib/commonjs/ui/screens/DoodleScreen.js +5 -5
  203. package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
  204. package/lib/commonjs/ui/screens/DropCashScreen.js +5 -5
  205. package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
  206. package/lib/commonjs/ui/screens/FormsScreen.js +4 -3
  207. package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
  208. package/lib/commonjs/ui/screens/GeofenceScreen.js +4 -3
  209. package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
  210. package/lib/commonjs/ui/screens/HttpRequestScreen.js +2 -1
  211. package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
  212. package/lib/commonjs/ui/screens/ImageCaptureScreen.js +4 -3
  213. package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
  214. package/lib/commonjs/ui/screens/PaymentScreen.js +6 -6
  215. package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
  216. package/lib/commonjs/ui/screens/PickupScreen.js +5 -7
  217. package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
  218. package/lib/commonjs/ui/screens/ScanScreen.js +4 -3
  219. package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
  220. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +7 -8
  221. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
  222. package/lib/commonjs/ui/screens/ValidateOTPScreen.js +4 -3
  223. package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
  224. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +4 -4
  225. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  226. package/lib/commonjs/ui/uiConfig/RouteParams.js +2 -1
  227. package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
  228. package/lib/commonjs/utils/ApiUtils.js +4 -2
  229. package/lib/commonjs/utils/ApiUtils.js.map +1 -1
  230. package/lib/commonjs/utils/Logger.js +9 -10
  231. package/lib/commonjs/utils/Logger.js.map +1 -1
  232. package/lib/commonjs/utils/NetworkUtil.js +2 -1
  233. package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
  234. package/lib/commonjs/utils/SdkUtils.js +8 -12
  235. package/lib/commonjs/utils/SdkUtils.js.map +1 -1
  236. package/lib/commonjs/utils/SyncManagerUtils.js +2 -2
  237. package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
  238. package/lib/commonjs/utils/fcm/FCM.js +4 -3
  239. package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
  240. package/lib/commonjs/utils/fcm/FcmUtils.js +2 -14
  241. package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
  242. package/lib/commonjs/utils/helper.js +2 -1
  243. package/lib/commonjs/utils/helper.js.map +1 -1
  244. package/lib/commonjs/utils/hooks/useModal.js +4 -3
  245. package/lib/commonjs/utils/hooks/useModal.js.map +1 -1
  246. package/lib/commonjs/utils/hooks/useTimer.js +2 -1
  247. package/lib/commonjs/utils/hooks/useTimer.js.map +1 -1
  248. package/lib/commonjs/utils/loginHelper.js +2 -1
  249. package/lib/commonjs/utils/loginHelper.js.map +1 -1
  250. package/lib/commonjs/utils/storage.js +13 -71
  251. package/lib/commonjs/utils/storage.js.map +1 -1
  252. package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
  253. package/lib/module/components/executiontasks/cancellation/CancelET.js +5 -11
  254. package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
  255. package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  256. package/lib/module/components/executiontasks/deliver/SLDeliverET.js +23 -105
  257. package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  258. package/lib/module/components/executiontasks/display/DisplayModalET.js +5 -5
  259. package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
  260. package/lib/module/components/executiontasks/doodle/SignatureET.js +10 -34
  261. package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
  262. package/lib/module/components/executiontasks/dropCash/SLDropCash.js +4 -4
  263. package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  264. package/lib/module/components/executiontasks/forms/FormGenerator.js +3 -3
  265. package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
  266. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +1 -1
  267. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  268. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +18 -131
  269. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  270. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +3 -3
  271. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  272. package/lib/module/components/executiontasks/payments/PaymentStyles.js +6 -6
  273. package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -1
  274. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +3 -3
  275. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  276. package/lib/module/components/executiontasks/pickup/PickpSchema.js.map +1 -1
  277. package/lib/module/components/executiontasks/pickup/SLPickupET.js +15 -88
  278. package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  279. package/lib/module/components/executiontasks/scan/ScanET.js +12 -12
  280. package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
  281. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +2 -2
  282. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  283. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +3 -3
  284. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  285. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +6 -6
  286. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  287. package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
  288. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +6 -6
  289. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  290. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +3 -3
  291. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  292. package/lib/module/components/widgets/AlertDisplay.js +7 -12
  293. package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
  294. package/lib/module/components/widgets/CancelOrderDialog.js +3 -3
  295. package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
  296. package/lib/module/components/widgets/Card.js +1 -1
  297. package/lib/module/components/widgets/Card.js.map +1 -1
  298. package/lib/module/components/widgets/ModalWidget.js +3 -3
  299. package/lib/module/components/widgets/ModalWidget.js.map +1 -1
  300. package/lib/module/components/widgets/ProgressDialog.js +2 -2
  301. package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
  302. package/lib/module/components/widgets/SnackBarCustom.js +2 -2
  303. package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
  304. package/lib/module/events/EventDispatcher.js +2 -5
  305. package/lib/module/events/EventDispatcher.js.map +1 -1
  306. package/lib/module/index.js +2 -2
  307. package/lib/module/index.js.map +1 -1
  308. package/lib/module/manager/dispatch/DispatchStateContainer.js +1 -3
  309. package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
  310. package/lib/module/manager/dispatchCodes/EventCodeContainer.js +0 -2
  311. package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  312. package/lib/module/manager/dispatchCodes/EventCodeRepo.js +0 -2
  313. package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  314. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +0 -2
  315. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  316. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +0 -2
  317. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  318. package/lib/module/manager/location/LocationManager.js +0 -2
  319. package/lib/module/manager/location/LocationManager.js.map +1 -1
  320. package/lib/module/manager/sdk/DispatchSDKManager.js +0 -2
  321. package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
  322. package/lib/module/manager/sdk/DispatchSdkCache.js +0 -2
  323. package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
  324. package/lib/module/manager/syncmanager/AppSyncManager.js +0 -2
  325. package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
  326. package/lib/module/manager/syncmanager/DBConfig.js +1 -2
  327. package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
  328. package/lib/module/manager/syncmanager/document/DocumentManager.js +0 -2
  329. package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
  330. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +0 -2
  331. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  332. package/lib/module/manager/syncmanager/events/ETEventsManager.js +1 -13
  333. package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  334. package/lib/module/manager/syncmanager/events/EventsSyncManager.js +0 -2
  335. package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  336. package/lib/module/models/fcm.js.map +1 -1
  337. package/lib/module/network/GraphQLClient.js +3 -48
  338. package/lib/module/network/GraphQLClient.js.map +1 -1
  339. package/lib/module/ui/screens/CaptureInputScreen.js +1 -2
  340. package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
  341. package/lib/module/ui/screens/DeliverScreen.js +1 -9
  342. package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
  343. package/lib/module/ui/screens/DoodleScreen.js +1 -2
  344. package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
  345. package/lib/module/ui/screens/DropCashScreen.js +2 -2
  346. package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
  347. package/lib/module/ui/screens/PaymentScreen.js +2 -3
  348. package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
  349. package/lib/module/ui/screens/PickupScreen.js +1 -4
  350. package/lib/module/ui/screens/PickupScreen.js.map +1 -1
  351. package/lib/module/ui/screens/StartWorkFlowScreen.js +4 -6
  352. package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
  353. package/lib/module/ui/screens/WithBaseDispatchScreen.js +0 -1
  354. package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  355. package/lib/module/utils/Logger.js +0 -2
  356. package/lib/module/utils/Logger.js.map +1 -1
  357. package/lib/module/utils/SdkUtils.js +7 -11
  358. package/lib/module/utils/SdkUtils.js.map +1 -1
  359. package/lib/module/utils/fcm/FcmUtils.js +0 -11
  360. package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
  361. package/lib/module/utils/storage.js +10 -69
  362. package/lib/module/utils/storage.js.map +1 -1
  363. package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +0 -4
  364. package/lib/typescript/components/executiontasks/payments/PaymentStyles.d.ts +5 -4
  365. package/lib/typescript/components/executiontasks/pickup/PickpSchema.d.ts +0 -1
  366. package/lib/typescript/components/widgets/SnackBarCustom.d.ts +1 -1
  367. package/lib/typescript/index.d.ts +2 -2
  368. package/lib/typescript/manager/syncmanager/DBConfig.d.ts +2 -3
  369. package/lib/typescript/models/fcm.d.ts +0 -3
  370. package/lib/typescript/utils/fcm/FcmUtils.d.ts +1 -2
  371. package/lib/typescript/utils/storage.d.ts +2 -3
  372. package/package.json +7 -23
  373. package/dispatch-mobile.podspec +0 -35
  374. package/ios/DispatchSdk-Bridging-Header.h +0 -3
  375. package/ios/DispatchSdk.m +0 -9
  376. package/ios/DispatchSdk.swift +0 -8
  377. package/ios/DispatchSdk.xcodeproj/project.pbxproj +0 -317
  378. package/ios/EventEmitter.swift +0 -21
  379. package/ios/EventsConstant.swift +0 -13
  380. package/ios/RNEventEmitter.m +0 -15
  381. package/ios/RNEventEmitter.swift +0 -24
  382. package/lib/commonjs/icons/circleMark.svg +0 -3
  383. package/lib/commonjs/locale/Str.js +0 -19
  384. package/lib/commonjs/locale/Str.js.map +0 -1
  385. package/lib/commonjs/locale/en.json +0 -6
  386. package/lib/commonjs/locale/i18n.js +0 -28
  387. package/lib/commonjs/locale/i18n.js.map +0 -1
  388. package/lib/commonjs/locale/util.js +0 -27
  389. package/lib/commonjs/locale/util.js.map +0 -1
  390. package/lib/module/icons/circleMark.svg +0 -3
  391. package/lib/module/locale/Str.js +0 -13
  392. package/lib/module/locale/Str.js.map +0 -1
  393. package/lib/module/locale/en.json +0 -6
  394. package/lib/module/locale/i18n.js +0 -21
  395. package/lib/module/locale/i18n.js.map +0 -1
  396. package/lib/module/locale/util.js +0 -18
  397. package/lib/module/locale/util.js.map +0 -1
  398. package/lib/typescript/locale/Str.d.ts +0 -11
  399. package/lib/typescript/locale/i18n.d.ts +0 -3
  400. package/lib/typescript/locale/util.d.ts +0 -2
  401. package/src/@types/assets/index.d.ts +0 -6
  402. package/src/components/dispatch/DispatchExecNavigator.tsx +0 -273
  403. package/src/components/executiontasks/CompletedWFSchema.ts +0 -24
  404. package/src/components/executiontasks/ExecutionTasksIndex.ts +0 -137
  405. package/src/components/executiontasks/cancellation/CancelET.tsx +0 -281
  406. package/src/components/executiontasks/cancellation/CancellationSchema.ts +0 -30
  407. package/src/components/executiontasks/captureInput/CaptureInputSchema.ts +0 -52
  408. package/src/components/executiontasks/captureInput/CaptureText.tsx +0 -172
  409. package/src/components/executiontasks/captureInput/utils.ts +0 -9
  410. package/src/components/executiontasks/deliver/DeliverET.tsx +0 -124
  411. package/src/components/executiontasks/deliver/DeliverETInput.ts +0 -51
  412. package/src/components/executiontasks/deliver/SLDeliverET.tsx +0 -515
  413. package/src/components/executiontasks/display/DisplayModalET.tsx +0 -174
  414. package/src/components/executiontasks/display/DisplaySchema.ts +0 -29
  415. package/src/components/executiontasks/doodle/SignatureET.tsx +0 -320
  416. package/src/components/executiontasks/doodle/SignatureSchema.ts +0 -51
  417. package/src/components/executiontasks/dropCash/DropCashET.tsx +0 -145
  418. package/src/components/executiontasks/dropCash/DropCashSchema.ts +0 -22
  419. package/src/components/executiontasks/dropCash/SLDropCash.tsx +0 -286
  420. package/src/components/executiontasks/forms/FormGenerator.tsx +0 -282
  421. package/src/components/executiontasks/forms/FormSchema.ts +0 -29
  422. package/src/components/executiontasks/forms/widgets/DateTimeWidget.tsx +0 -144
  423. package/src/components/executiontasks/forms/widgets/DropdownWidget.tsx +0 -52
  424. package/src/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.tsx +0 -158
  425. package/src/components/executiontasks/forms/widgets/TimeRangeSelector.tsx +0 -38
  426. package/src/components/executiontasks/httpRequest/HttpEtUtils.ts +0 -49
  427. package/src/components/executiontasks/httpRequest/HttpRequestET.tsx +0 -59
  428. package/src/components/executiontasks/httpRequest/HttpRequestETSchema.ts +0 -42
  429. package/src/components/executiontasks/imageCapture/CaptureSchema.ts +0 -93
  430. package/src/components/executiontasks/imageCapture/CaptureUtils.ts +0 -326
  431. package/src/components/executiontasks/imageCapture/ImageCapture.tsx +0 -363
  432. package/src/components/executiontasks/payments/PaymentStyles.ts +0 -93
  433. package/src/components/executiontasks/payments/PaymentUtils.ts +0 -7
  434. package/src/components/executiontasks/payments/completePayment/CompletePaymentET.tsx +0 -237
  435. package/src/components/executiontasks/payments/completePayment/CompletePaymentSchema.ts +0 -23
  436. package/src/components/executiontasks/payments/init/InitPaymentET.tsx +0 -247
  437. package/src/components/executiontasks/payments/init/InitPaymentSchema.ts +0 -37
  438. package/src/components/executiontasks/payments/processPayment/ProcessPaymentET.tsx +0 -272
  439. package/src/components/executiontasks/payments/processPayment/ProcessPaymentSchema.ts +0 -38
  440. package/src/components/executiontasks/pickup/PickpSchema.ts +0 -29
  441. package/src/components/executiontasks/pickup/PickupET.tsx +0 -126
  442. package/src/components/executiontasks/pickup/SLPickupET.tsx +0 -370
  443. package/src/components/executiontasks/scan/ScanET.tsx +0 -1059
  444. package/src/components/executiontasks/scan/ScanSchema.ts +0 -121
  445. package/src/components/executiontasks/scan/constants.ts +0 -6
  446. package/src/components/executiontasks/scan/interfaces.ts +0 -109
  447. package/src/components/executiontasks/scan/modalConstant.ts +0 -120
  448. package/src/components/executiontasks/scan/sub_components/CScanner.tsx +0 -107
  449. package/src/components/executiontasks/scan/sub_components/DropDownUtils.ts +0 -119
  450. package/src/components/executiontasks/scan/sub_components/ERDropDown.tsx +0 -134
  451. package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +0 -1296
  452. package/src/components/executiontasks/scan/utils.ts +0 -1108
  453. package/src/components/executiontasks/validateOTP/ValidateOTPET.tsx +0 -436
  454. package/src/components/executiontasks/validateOTP/ValidateOTPSchema.ts +0 -68
  455. package/src/components/executiontasks/validateOTP/constants.ts +0 -24
  456. package/src/components/executiontasks/validateOTP/sub-components/OTPInput.tsx +0 -83
  457. package/src/components/executiontasks/validateOTP/utils.ts +0 -180
  458. package/src/components/executiontasks/verifyInput/VerifyInputSchema.ts +0 -49
  459. package/src/components/executiontasks/verifyLocation/GeofenceUtils.ts +0 -55
  460. package/src/components/executiontasks/verifyLocation/VerifyLocSchema.ts +0 -56
  461. package/src/components/executiontasks/verifyLocation/VerifyLocationET.tsx +0 -69
  462. package/src/components/executiontasks/verifyOtp/VerifyOtpET.tsx +0 -96
  463. package/src/components/executiontasks/verifyOtp/VerifyOtpSchema.ts +0 -27
  464. package/src/components/utils/index.ts +0 -18
  465. package/src/components/widgets/AlertDisplay.tsx +0 -38
  466. package/src/components/widgets/CancelOrderDialog.tsx +0 -112
  467. package/src/components/widgets/Card.tsx +0 -99
  468. package/src/components/widgets/GoBackModal.tsx +0 -49
  469. package/src/components/widgets/IconButton.tsx +0 -32
  470. package/src/components/widgets/ModalWidget.tsx +0 -157
  471. package/src/components/widgets/ProgressDialog.tsx +0 -54
  472. package/src/components/widgets/SearchBar.tsx +0 -71
  473. package/src/components/widgets/SnackBarCustom.tsx +0 -212
  474. package/src/components/widgets/SplitTextInput.tsx +0 -116
  475. package/src/components/widgets/TabsComponent.tsx +0 -84
  476. package/src/components/widgets/Toaster.ts +0 -8
  477. package/src/config/DispatchSDKConfig.ts +0 -4
  478. package/src/constants/apiConstants.ts +0 -11
  479. package/src/constants/constants.ts +0 -12
  480. package/src/constants/statuscode.ts +0 -8
  481. package/src/errors/BaseError.ts +0 -16
  482. package/src/errors/ErrorCodes.ts +0 -38
  483. package/src/events/EventDispatcher.ts +0 -22
  484. package/src/events/EventListener.ts +0 -14
  485. package/src/events/constants.ts +0 -7
  486. package/src/events/index.ts +0 -3
  487. package/src/events/interface.ts +0 -1
  488. package/src/icons/ScanIcon.tsx +0 -24
  489. package/src/icons/circleMark.svg +0 -3
  490. package/src/icons/file.tsx +0 -24
  491. package/src/icons/interface.ts +0 -5
  492. package/src/index.tsx +0 -80
  493. package/src/locale/Str.ts +0 -13
  494. package/src/locale/en.json +0 -6
  495. package/src/locale/i18n.ts +0 -22
  496. package/src/locale/util.ts +0 -20
  497. package/src/manager/dispatch/DispatchStateContainer.tsx +0 -842
  498. package/src/manager/dispatchCodes/EventCodeContainer.ts +0 -75
  499. package/src/manager/dispatchCodes/EventCodeRepo.ts +0 -82
  500. package/src/manager/dispatchCodes/ReasonCodeContainer.ts +0 -121
  501. package/src/manager/dispatchCodes/ReasonCodeRepo.ts +0 -90
  502. package/src/manager/dispatchCodes/reasonCodes.json +0 -137
  503. package/src/manager/jobRemoval/JobRemovalManager.ts +0 -21
  504. package/src/manager/location/LocationManager.ts +0 -77
  505. package/src/manager/sdk/DispatchSDKManager.ts +0 -99
  506. package/src/manager/sdk/DispatchSdkCache.ts +0 -47
  507. package/src/manager/sdk/callbacksHandler.ts +0 -25
  508. package/src/manager/syncmanager/AppSyncManager.ts +0 -187
  509. package/src/manager/syncmanager/DBConfig.ts +0 -181
  510. package/src/manager/syncmanager/NativeSyncManager.ts +0 -14
  511. package/src/manager/syncmanager/constants.ts +0 -5
  512. package/src/manager/syncmanager/database.ts +0 -93
  513. package/src/manager/syncmanager/document/DocumentHttpClient.ts +0 -111
  514. package/src/manager/syncmanager/document/DocumentManager.ts +0 -143
  515. package/src/manager/syncmanager/document/DocumentSyncManager.ts +0 -233
  516. package/src/manager/syncmanager/document/models.ts +0 -4
  517. package/src/manager/syncmanager/events/ETEventsManager.ts +0 -647
  518. package/src/manager/syncmanager/events/EventsGraphQLClient.ts +0 -0
  519. package/src/manager/syncmanager/events/EventsSyncManager.ts +0 -490
  520. package/src/manager/syncmanager/events/SyncHttpClient.ts +0 -202
  521. package/src/models/DispatchModels.ts +0 -97
  522. package/src/models/ReasonCodes.ts +0 -12
  523. package/src/models/auth.ts +0 -43
  524. package/src/models/execTasks/ETBaseModels.ts +0 -113
  525. package/src/models/execTasks/ETConfig.ts +0 -94
  526. package/src/models/execution.ts +0 -9
  527. package/src/models/fcm.ts +0 -6
  528. package/src/models/sdk.ts +0 -35
  529. package/src/native/signature/SignatureCapture.tsx +0 -110
  530. package/src/network/GraphQLClient.ts +0 -147
  531. package/src/network/NetworkClient.ts +0 -58
  532. package/src/network/NetworkUtils.ts +0 -41
  533. package/src/network/Queries.ts +0 -46
  534. package/src/network/client.ts +0 -61
  535. package/src/res/strings.ts +0 -1
  536. package/src/resources/Login.ts +0 -36
  537. package/src/resources/network.ts +0 -13
  538. package/src/styles/SdkColors.ts +0 -24
  539. package/src/styles/executionTasks/CommonStyles.ts +0 -188
  540. package/src/ui/screens/CancellationScreen.tsx +0 -144
  541. package/src/ui/screens/CaptureInputScreen.tsx +0 -79
  542. package/src/ui/screens/CompleteObjectiveScreen.tsx +0 -72
  543. package/src/ui/screens/DeliverScreen.tsx +0 -117
  544. package/src/ui/screens/DisplayScreen.tsx +0 -52
  545. package/src/ui/screens/DoodleScreen.tsx +0 -84
  546. package/src/ui/screens/DropCashScreen.tsx +0 -113
  547. package/src/ui/screens/ETScreensIndex.ts +0 -35
  548. package/src/ui/screens/FormsScreen.tsx +0 -164
  549. package/src/ui/screens/GeofenceScreen.tsx +0 -54
  550. package/src/ui/screens/HttpRequestScreen.tsx +0 -47
  551. package/src/ui/screens/ImageCaptureScreen.tsx +0 -77
  552. package/src/ui/screens/PaymentScreen.tsx +0 -191
  553. package/src/ui/screens/PickupScreen.tsx +0 -85
  554. package/src/ui/screens/ScanScreen.tsx +0 -159
  555. package/src/ui/screens/StartWorkFlowScreen.tsx +0 -233
  556. package/src/ui/screens/ValidateOTPScreen.tsx +0 -62
  557. package/src/ui/screens/WithBaseDispatchScreen.tsx +0 -33
  558. package/src/ui/uiConfig/RouteParams.ts +0 -28
  559. package/src/utils/ApiUtils.ts +0 -157
  560. package/src/utils/ExecTaskUtils.ts +0 -214
  561. package/src/utils/Logger.ts +0 -110
  562. package/src/utils/NetworkUtil.ts +0 -50
  563. package/src/utils/SdkUtils.ts +0 -155
  564. package/src/utils/SyncManagerUtils.ts +0 -223
  565. package/src/utils/fcm/FCM.ts +0 -118
  566. package/src/utils/fcm/FcmUtils.ts +0 -130
  567. package/src/utils/helper.ts +0 -24
  568. package/src/utils/hooks/useModal.tsx +0 -67
  569. package/src/utils/hooks/useTimer.ts +0 -44
  570. package/src/utils/loginHelper.ts +0 -51
  571. package/src/utils/storage.ts +0 -292
  572. package/src/utils/test.json +0 -17
  573. package/src/utils/utils.ts +0 -30
@@ -16,13 +16,9 @@ var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/M
16
16
  var _utils = require("../../../components/utils");
17
17
  var _GoBackModal = _interopRequireDefault(require("../../../components/widgets/GoBackModal"));
18
18
  var _native = require("@react-navigation/native");
19
- var _util = require("../../../locale/util");
20
- var _Str = _interopRequireDefault(require("../../../locale/Str"));
21
- var _circleMark = _interopRequireDefault(require("../../../icons/circleMark.svg"));
22
- var _ModalWidget = _interopRequireDefault(require("../../../components/widgets/ModalWidget"));
23
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
25
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
26
22
  const ListItem = _ref => {
27
23
  let {
28
24
  lineItem
@@ -37,8 +33,8 @@ const ListItem = _ref => {
37
33
  };
38
34
  const getMessage = (pickupCount, message) => {
39
35
  try {
40
- const msg = message || (0, _util.getStrVal)(_Str.default.DEFAULT_PICKUP_MESSAGE, _Str.default.count, pickupCount);
41
- return msg;
36
+ const msg = message || _constants.DEFAULT_PICKUP_MESSAGE;
37
+ return msg.replace('$', (pickupCount === null || pickupCount === void 0 ? void 0 : pickupCount.toString()) || '');
42
38
  } catch (error) {
43
39
  return message || '';
44
40
  }
@@ -56,8 +52,9 @@ const SLPickupET = props => {
56
52
  const [disableProceed, setDisableProceed] = (0, _react.useState)(false);
57
53
  const [showBackModal, setShowBackModal] = (0, _react.useState)(false);
58
54
  const [showPickupModal, setShowPickupModal] = (0, _react.useState)(true);
59
- const [goBack, setGoBack] = (0, _react.useState)(false);
60
- (0, _native.useFocusEffect)((0, _react.useCallback)(() => {
55
+
56
+ // Handle back-button click
57
+ (0, _native.useFocusEffect)(_react.default.useCallback(() => {
61
58
  const onBackPress = () => {
62
59
  var _props$taskMeta;
63
60
  if ((_props$taskMeta = props.taskMeta) !== null && _props$taskMeta !== void 0 && _props$taskMeta.enableGoBack && (0, _utils.hasGoBackConnector)(props.applicableReasons)) {
@@ -104,52 +101,13 @@ const SLPickupET = props => {
104
101
  onFailure: () => setShowBackModal(false)
105
102
  });
106
103
  };
107
- const renderGoBackModal = () => {
108
- return /*#__PURE__*/_react.default.createElement(_ModalWidget.default, {
109
- dismissable: true,
110
- showModal: goBack,
111
- title: {
112
- label: `Are you sure you want to exit ${_constants.DEFAULT_PICKUP_TITLE}?`
113
- },
114
- subTitle: {
115
- label: 'All progress will be lost',
116
- styles: {
117
- alignSelf: 'center'
118
- }
119
- },
120
- primaryButton: {
121
- label: 'Exit',
122
- onPress: async () => {
123
- var _props$taskMeta3;
124
- if ((_props$taskMeta3 = props.taskMeta) !== null && _props$taskMeta3 !== void 0 && _props$taskMeta3.enableGoBack && (0, _utils.hasGoBackConnector)(props.applicableReasons)) {
125
- props.onSubmitET({
126
- ...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.PICKUP, false, _constants.GO_BACK_EVENT_CODE, '', props.mergedObjectiveId, _ETConfig.ExecutionTaskID.PICKUP))
127
- });
128
- setShowBackModal(false);
129
- } else {
130
- props.navigation.goBack();
131
- }
132
- setShowBackModal(false);
133
- },
134
- styles: styles.primaryButtonStyles
135
- },
136
- secondaryButton: {
137
- label: 'Cancel',
138
- onPress: () => {
139
- setGoBack(false);
140
- setShowPickupModal(true);
141
- },
142
- styles: styles.secondaryButtonStyles
143
- }
144
- });
145
- };
146
- return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, renderModal()), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, renderGoBackModal()), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
104
+ return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, renderModal()), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
147
105
  style: styles.container
148
106
  }, /*#__PURE__*/_react.default.createElement(_reactNative.Modal, {
149
107
  visible: showPickupModal,
150
108
  onRequestClose: () => {
151
- var _props$taskMeta4;
152
- if ((_props$taskMeta4 = props.taskMeta) !== null && _props$taskMeta4 !== void 0 && _props$taskMeta4.enableGoBack && (0, _utils.hasGoBackConnector)(props.applicableReasons)) {
109
+ var _props$taskMeta3;
110
+ if ((_props$taskMeta3 = props.taskMeta) !== null && _props$taskMeta3 !== void 0 && _props$taskMeta3.enableGoBack && (0, _utils.hasGoBackConnector)(props.applicableReasons)) {
153
111
  setShowPickupModal(false);
154
112
  setShowBackModal(true);
155
113
  return true;
@@ -163,27 +121,13 @@ const SLPickupET = props => {
163
121
  style: styles.modalView
164
122
  }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
165
123
  style: styles.modalStyle
166
- }, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
167
- onPress: () => {
168
- setShowPickupModal(false);
169
- setGoBack(true);
170
- },
171
- style: styles.crossIcon,
172
- hitSlop: {
173
- bottom: 10,
174
- top: 10,
175
- right: 10,
176
- left: 10
177
- }
178
- }, /*#__PURE__*/_react.default.createElement(_circleMark.default, null)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
124
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
179
125
  style: styles.modalBody
180
126
  }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
181
127
  style: _CommonStyles.DeliverPickupStyles.titleText
182
128
  }, props.title || _constants.DEFAULT_PICKUP_TITLE), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
183
129
  style: _CommonStyles.DeliverPickupStyles.messageText
184
- }, getMessage(props.pickupCount, props.message)), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
185
- style: _CommonStyles.DeliverPickupStyles.messageText
186
- }, props !== null && props !== void 0 && props.shipCount ? (0, _util.getStrVal)(_Str.default.shipments, _Str.default.count, props.shipCount) : '')), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
130
+ }, getMessage(props.pickupCount, props.message))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
187
131
  style: styles.bottomButtons
188
132
  }, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
189
133
  disabled: disableProceed,
@@ -219,7 +163,8 @@ const SLPickupET = props => {
219
163
  }
220
164
  }, "No")))))));
221
165
  };
222
- var _default = exports.default = SLPickupET;
166
+ var _default = SLPickupET;
167
+ exports.default = _default;
223
168
  const styles = _reactNative.StyleSheet.create({
224
169
  container: {
225
170
  flex: 1
@@ -240,9 +185,6 @@ const styles = _reactNative.StyleSheet.create({
240
185
  paddingHorizontal: 40,
241
186
  alignItems: 'center'
242
187
  },
243
- crossIcon: {
244
- alignSelf: 'flex-end'
245
- },
246
188
  bottomButtons: {
247
189
  marginTop: 12
248
190
  },
@@ -252,7 +194,7 @@ const styles = _reactNative.StyleSheet.create({
252
194
  flexDirection: 'row'
253
195
  },
254
196
  subTitle: {
255
- fontFamily: _reactNative.Platform.OS === 'android' ? _CommonStyles.Fonts.IBMPlexSans_400Regular : 'IBMPlexSans-Regular',
197
+ fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular,
256
198
  fontStyle: 'normal',
257
199
  fontWeight: '400',
258
200
  fontSize: 14,
@@ -267,21 +209,7 @@ const styles = _reactNative.StyleSheet.create({
267
209
  lineHeight: 28,
268
210
  fontStyle: 'normal',
269
211
  color: '#111111',
270
- fontFamily: _reactNative.Platform.OS === 'android' ? _CommonStyles.Fonts.IBMPlexSans_600SemiBold : 'IBMPlexSans-SemiBold'
271
- },
272
- primaryButtonStyles: {
273
- marginTop: 16,
274
- height: 40,
275
- borderRadius: 6,
276
- justifyContent: 'center',
277
- alignItems: 'center'
278
- },
279
- secondaryButtonStyles: {
280
- marginVertical: 16,
281
- height: 40,
282
- borderRadius: 6,
283
- justifyContent: 'center',
284
- alignItems: 'center'
212
+ fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold
285
213
  }
286
214
  });
287
215
  //# sourceMappingURL=SLPickupET.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_reactNativePaper","_CommonStyles","_ExecTaskUtils","_EventCodeContainer","_ETConfig","_constants","_MaterialIcons","_interopRequireDefault","_utils","_GoBackModal","_native","_util","_Str","_circleMark","_ModalWidget","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","ListItem","_ref","lineItem","createElement","View","style","justifyContent","Text","DeliverPickupStyles","itemTextStyle","skuId","getMessage","pickupCount","message","msg","getStrVal","Str","DEFAULT_PICKUP_MESSAGE","count","error","renderItem","_ref2","item","exports","SLPickupET","props","disableProceed","setDisableProceed","useState","showBackModal","setShowBackModal","showPickupModal","setShowPickupModal","goBack","setGoBack","useFocusEffect","useCallback","onBackPress","_props$taskMeta","taskMeta","enableGoBack","hasGoBackConnector","applicableReasons","navigation","BackHandler","addEventListener","removeEventListener","useLayoutEffect","setOptions","title","headerLeft","onPress","_props$taskMeta2","name","color","size","paddingRight","paddingTop","renderModal","showModal","setShowModal","onSuccess","onSubmitET","getBaseETResponse","EntityCode","PICKUP","GO_BACK_EVENT_CODE","mergedObjectiveId","ExecutionTaskID","onFailure","renderGoBackModal","dismissable","label","DEFAULT_PICKUP_TITLE","subTitle","styles","alignSelf","primaryButton","_props$taskMeta3","primaryButtonStyles","secondaryButton","secondaryButtonStyles","Provider","Portal","container","Modal","visible","onRequestClose","_props$taskMeta4","modalView","modalStyle","TouchableOpacity","crossIcon","hitSlop","bottom","top","right","left","modalBody","titleText","messageText","shipCount","shipments","bottomButtons","Button","disabled","uppercase","labelStyle","CommonStyles","nextButtonLabel","nextButton","marginTop","mode","_props$applicableReas","remark","getEventCodeByET","success","cancelButton","cancelButtonLabel","_props$applicableReas2","failure","_default","StyleSheet","create","flex","alignItems","backgroundColor","padding","borderRadius","elevation","paddingHorizontal","returnView","marginBottom","flexDirection","fontFamily","Platform","OS","Fonts","IBMPlexSans_400Regular","fontStyle","fontWeight","fontSize","textAlign","lineHeight","IBMPlexSans_600SemiBold","height","marginVertical"],"sources":["SLPickupET.tsx"],"sourcesContent":["import { BackHandler, StyleSheet, Text, View, Modal, Platform, TouchableOpacity } from 'react-native';\nimport React, { useState, useLayoutEffect, useCallback } from 'react';\nimport { Button, Portal, Provider } from 'react-native-paper';\n\nimport {\n CommonStyles,\n DeliverPickupStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport type { PickupETInput } from './PickpSchema';\nimport type { LineItem } from '../deliver/DeliverETInput';\nimport {\n DEFAULT_PICKUP_MESSAGE,\n DEFAULT_PICKUP_TITLE,\n GO_BACK_EVENT_CODE,\n} from '../../../constants/constants';\nimport Icon from 'react-native-vector-icons/MaterialIcons';\nimport { hasGoBackConnector } from '../../../components/utils';\nimport GoBackModal from '../../../components/widgets/GoBackModal';\nimport { useFocusEffect } from '@react-navigation/native';\nimport { getStrVal } from '../../../locale/util';\nimport Str from '../../../locale/Str';\nimport CircleMark from '../../../icons/circleMark.svg';\nimport ModalWidget from '../../../components/widgets/ModalWidget';\n\nconst ListItem = ({ lineItem }: { lineItem: LineItem }) => (\n <View style={{ justifyContent: 'center' }}>\n <Text style={DeliverPickupStyles.itemTextStyle}>\n {`Order ID: ${lineItem.skuId}`}\n </Text>\n </View>\n);\n\nconst getMessage = (\n pickupCount: number | undefined,\n message: string | undefined\n) => {\n try {\n const msg = message || getStrVal(Str.DEFAULT_PICKUP_MESSAGE, Str.count, pickupCount);\n return msg;\n } catch (error: any) {\n return message || '';\n }\n};\n\nexport const renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\nconst SLPickupET = (props: PickupETInput) => {\n const [disableProceed, setDisableProceed] = useState(false);\n const [showBackModal, setShowBackModal] = useState(false);\n const [showPickupModal, setShowPickupModal] = useState(true);\n const [goBack, setGoBack] = useState(false);\n\n useFocusEffect(\n useCallback(() => {\n const onBackPress = () => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n ) {\n setShowBackModal(true);\n return true;\n } else {\n props.navigation.goBack();\n return true;\n }\n };\n BackHandler.addEventListener('hardwareBackPress', onBackPress);\n return () =>\n BackHandler.removeEventListener('hardwareBackPress', onBackPress);\n }, [])\n );\n\n useLayoutEffect(() => {\n props.navigation.setOptions({\n title: props.title,\n headerLeft: () => {\n return (\n <Icon\n onPress={() => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n )\n setShowBackModal(true);\n else props.navigation.goBack();\n }}\n name=\"arrow-back\"\n color={'black'}\n size={25}\n style={{\n paddingRight: 15,\n paddingTop: 5,\n }}\n />\n );\n },\n });\n }, [props.navigation, props.title]);\n\n const renderModal = () => {\n return (\n <GoBackModal\n showModal={showBackModal}\n setShowModal={setShowBackModal}\n onSuccess={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n GO_BACK_EVENT_CODE,\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n setShowBackModal(false);\n }}\n onFailure={() => setShowBackModal(false)}\n />\n );\n };\n\n const renderGoBackModal = () => {\n return (\n <ModalWidget\n dismissable={true}\n showModal={goBack}\n title={{\n label: `Are you sure you want to exit ${DEFAULT_PICKUP_TITLE}?`,\n }}\n subTitle={{\n label: 'All progress will be lost',\n styles: {\n alignSelf: 'center',\n },\n }}\n primaryButton={{\n label: 'Exit',\n onPress: async () => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n ) {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n GO_BACK_EVENT_CODE,\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n setShowBackModal(false);\n } else {\n props.navigation.goBack();\n }\n setShowBackModal(false);\n },\n styles: styles.primaryButtonStyles,\n }}\n secondaryButton={{\n label: 'Cancel',\n onPress: () => {\n setGoBack(false);\n setShowPickupModal(true);\n },\n styles: styles.secondaryButtonStyles,\n }}\n />\n );\n };\n\n return (\n <Provider>\n <Portal>{renderModal()}</Portal>\n <Portal>{renderGoBackModal()}</Portal>\n <View style={styles.container}>\n <Modal\n visible={showPickupModal}\n onRequestClose={() => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n ) {\n setShowPickupModal(false);\n setShowBackModal(true);\n return true;\n } else {\n setShowPickupModal(false);\n props.navigation.goBack();\n return true;\n }\n }}\n >\n <View style={styles.modalView}>\n <View style={styles.modalStyle}>\n <TouchableOpacity\n onPress={() => {\n setShowPickupModal(false);\n setGoBack(true);\n }}\n style={styles.crossIcon}\n hitSlop={{ bottom: 10, top: 10, right: 10, left: 10 }}\n >\n <CircleMark />\n </TouchableOpacity>\n <View style={styles.modalBody}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_PICKUP_TITLE}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {getMessage(props.pickupCount, props.message)}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {props?.shipCount ? getStrVal(Str.shipments, Str.count, props.shipCount) : ''}\n </Text>\n {/* Removed showing the item when item.length === 1 */}\n {/* {props.pickupCount === 1 && props.items.length ? (\n <View style={{ justifyContent: 'center' }}>\n <Text\n style={DeliverPickupStyles.itemTextStyle}\n >{`Order ID: ${props.items[0].skuId}`}</Text>\n </View>\n ) : null} */}\n </View>\n <View style={styles.bottomButtons}>\n <Button\n disabled={disableProceed}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n mode={'contained'}\n onPress={async () => {\n setDisableProceed(true);\n props.onSubmitET({\n remark: '',\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n true,\n getEventCodeByET(\n ExecutionTaskID.PICKUP,\n true,\n props.applicableReasons?.success\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n }}\n >\n Yes\n </Button>\n <Button\n disabled={disableProceed}\n uppercase={false}\n style={[CommonStyles.cancelButton, { marginTop: 5 }]}\n mode=\"outlined\"\n labelStyle={CommonStyles.cancelButtonLabel}\n onPress={async () => {\n setDisableProceed(true);\n props.onSubmitET({\n remark: '',\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n getEventCodeByET(\n ExecutionTaskID.PICKUP,\n false,\n props.applicableReasons?.failure\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n }}\n >\n No\n </Button>\n </View>\n </View>\n </View>\n </Modal>\n </View>\n </Provider>\n );\n};\n\nexport default SLPickupET;\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n modalView: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n },\n modalStyle: {\n backgroundColor: 'white',\n padding: 20,\n borderRadius: 8,\n elevation: 5,\n },\n modalBody: {\n paddingHorizontal: 40,\n alignItems: 'center',\n },\n crossIcon: {\n alignSelf: 'flex-end',\n },\n bottomButtons: {\n marginTop: 12,\n },\n returnView: {\n marginTop: 15,\n marginBottom: 15,\n flexDirection: 'row',\n },\n subTitle: {\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_400Regular\n : 'IBMPlexSans-Regular',\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n flex: 1,\n textAlign: 'left',\n lineHeight: 28,\n color: '#111111',\n },\n title: {\n textAlign: 'right',\n fontSize: 14,\n lineHeight: 28,\n fontStyle: 'normal',\n color: '#111111',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n },\n primaryButtonStyles: {\n marginTop: 16,\n height: 40,\n borderRadius: 6,\n justifyContent: 'center',\n alignItems: 'center',\n },\n secondaryButtonStyles: {\n marginVertical: 16,\n height: 40,\n borderRadius: 6,\n justifyContent: 'center',\n alignItems: 'center',\n },\n});\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAEA,IAAAI,aAAA,GAAAJ,OAAA;AAKA,IAAAK,c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,EAAE,KAAK;IACjBC,QAAQ,EAAE,EAAE;IACZjB,IAAI,EAAE,CAAC;IACPkB,SAAS,EAAE,MAAM;IACjBC,UAAU,EAAE,EAAE;IACdzF,KAAK,EAAE;EACT,CAAC;EACDL,KAAK,EAAE;IACL6F,SAAS,EAAE,OAAO;IAClBD,QAAQ,EAAE,EAAE;IACZE,UAAU,EAAE,EAAE;IACdJ,SAAS,EAAE,QAAQ;IACnBrF,KAAK,EAAE,SAAS;IAChBgF,UAAU,EACRC,qBAAQ,CAACC,EAAE,KAAK,SAAS,GACrBC,mBAAK,CAACO,uBAAuB,GAC7B;EACR,CAAC;EACDjE,mBAAmB,EAAE;IACnBgC,SAAS,EAAE,EAAE;IACbkC,MAAM,EAAE,EAAE;IACVjB,YAAY,EAAE,CAAC;IACf1H,cAAc,EAAE,QAAQ;IACxBuH,UAAU,EAAE;EACd,CAAC;EACD5C,qBAAqB,EAAE;IACrBiE,cAAc,EAAE,EAAE;IAClBD,MAAM,EAAE,EAAE;IACVjB,YAAY,EAAE,CAAC;IACf1H,cAAc,EAAE,QAAQ;IACxBuH,UAAU,EAAE;EACd;AACF,CAAC,CAAC"}
1
+ {"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_reactNativePaper","_CommonStyles","_ExecTaskUtils","_EventCodeContainer","_ETConfig","_constants","_MaterialIcons","_interopRequireDefault","_utils","_GoBackModal","_native","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ListItem","_ref","lineItem","createElement","View","style","justifyContent","Text","DeliverPickupStyles","itemTextStyle","skuId","getMessage","pickupCount","message","msg","DEFAULT_PICKUP_MESSAGE","replace","toString","error","renderItem","_ref2","item","exports","SLPickupET","props","disableProceed","setDisableProceed","useState","showBackModal","setShowBackModal","showPickupModal","setShowPickupModal","useFocusEffect","React","useCallback","onBackPress","_props$taskMeta","taskMeta","enableGoBack","hasGoBackConnector","applicableReasons","navigation","goBack","BackHandler","addEventListener","removeEventListener","useLayoutEffect","setOptions","title","headerLeft","onPress","_props$taskMeta2","name","color","size","paddingRight","paddingTop","renderModal","showModal","setShowModal","onSuccess","onSubmitET","getBaseETResponse","EntityCode","PICKUP","GO_BACK_EVENT_CODE","mergedObjectiveId","ExecutionTaskID","onFailure","Provider","Portal","styles","container","Modal","visible","onRequestClose","_props$taskMeta3","modalView","modalStyle","modalBody","titleText","DEFAULT_PICKUP_TITLE","messageText","bottomButtons","Button","disabled","uppercase","labelStyle","CommonStyles","nextButtonLabel","nextButton","marginTop","mode","_props$applicableReas","remark","getEventCodeByET","success","cancelButton","cancelButtonLabel","_props$applicableReas2","failure","_default","StyleSheet","create","flex","alignItems","backgroundColor","padding","borderRadius","elevation","paddingHorizontal","returnView","marginBottom","flexDirection","subTitle","fontFamily","Fonts","IBMPlexSans_400Regular","fontStyle","fontWeight","fontSize","textAlign","lineHeight","IBMPlexSans_600SemiBold"],"sources":["SLPickupET.tsx"],"sourcesContent":["import { BackHandler, StyleSheet, Text, View, Modal } from 'react-native';\nimport React, { useState, useLayoutEffect } from 'react';\nimport { Button, Portal, Provider } from 'react-native-paper';\n\nimport {\n CommonStyles,\n DeliverPickupStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport type { PickupETInput } from './PickpSchema';\nimport type { LineItem } from '../deliver/DeliverETInput';\nimport {\n DEFAULT_PICKUP_MESSAGE,\n DEFAULT_PICKUP_TITLE,\n GO_BACK_EVENT_CODE,\n} from '../../../constants/constants';\nimport Icon from 'react-native-vector-icons/MaterialIcons';\nimport { hasGoBackConnector } from '../../../components/utils';\nimport GoBackModal from '../../../components/widgets/GoBackModal';\nimport { useFocusEffect } from '@react-navigation/native';\n\nconst ListItem = ({ lineItem }: { lineItem: LineItem }) => (\n <View style={{ justifyContent: 'center' }}>\n <Text\n style={DeliverPickupStyles.itemTextStyle}\n >{`Order ID: ${lineItem.skuId}`}</Text>\n </View>\n);\n\nconst getMessage = (\n pickupCount: number | undefined,\n message: string | undefined\n) => {\n try {\n const msg = message || DEFAULT_PICKUP_MESSAGE;\n return msg.replace('$', pickupCount?.toString() || '');\n } catch (error: any) {\n return message || '';\n }\n};\n\nexport const renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\nconst SLPickupET = (props: PickupETInput) => {\n const [disableProceed, setDisableProceed] = useState(false);\n const [showBackModal, setShowBackModal] = useState(false);\n const [showPickupModal, setShowPickupModal] = useState(true);\n\n // Handle back-button click\n useFocusEffect(\n React.useCallback(() => {\n const onBackPress = () => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n ) {\n setShowBackModal(true);\n return true;\n } else {\n props.navigation.goBack();\n return true;\n }\n };\n BackHandler.addEventListener('hardwareBackPress', onBackPress);\n return () =>\n BackHandler.removeEventListener('hardwareBackPress', onBackPress);\n }, [])\n );\n\n useLayoutEffect(() => {\n props.navigation.setOptions({\n title: props.title,\n headerLeft: () => {\n return (\n <Icon\n onPress={() => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n )\n setShowBackModal(true);\n else props.navigation.goBack();\n }}\n name=\"arrow-back\"\n color={'black'}\n size={25}\n style={{\n paddingRight: 15,\n paddingTop: 5,\n }}\n />\n );\n },\n });\n }, [props.navigation, props.title]);\n\n const renderModal = () => {\n return (\n <GoBackModal\n showModal={showBackModal}\n setShowModal={setShowBackModal}\n onSuccess={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n GO_BACK_EVENT_CODE,\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n setShowBackModal(false);\n }}\n onFailure={() => setShowBackModal(false)}\n />\n );\n };\n\n return (\n <Provider>\n <Portal>{renderModal()}</Portal>\n <View style={styles.container}>\n <Modal\n visible={showPickupModal}\n onRequestClose={() => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n ) {\n setShowPickupModal(false);\n setShowBackModal(true);\n return true;\n } else {\n setShowPickupModal(false);\n props.navigation.goBack();\n return true;\n }\n }}\n >\n <View style={styles.modalView}>\n <View style={styles.modalStyle}>\n <View style={styles.modalBody}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_PICKUP_TITLE}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {getMessage(props.pickupCount, props.message)}\n </Text>\n {/* Removed showing the item when item.length === 1 */}\n {/* {props.pickupCount === 1 && props.items.length ? (\n <View style={{ justifyContent: 'center' }}>\n <Text\n style={DeliverPickupStyles.itemTextStyle}\n >{`Order ID: ${props.items[0].skuId}`}</Text>\n </View>\n ) : null} */}\n </View>\n <View style={styles.bottomButtons}>\n <Button\n disabled={disableProceed}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n mode={'contained'}\n onPress={async () => {\n setDisableProceed(true);\n props.onSubmitET({\n remark: '',\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n true,\n getEventCodeByET(\n ExecutionTaskID.PICKUP,\n true,\n props.applicableReasons?.success\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n }}\n >\n Yes\n </Button>\n <Button\n disabled={disableProceed}\n uppercase={false}\n style={[CommonStyles.cancelButton, { marginTop: 5 }]}\n mode=\"outlined\"\n labelStyle={CommonStyles.cancelButtonLabel}\n onPress={async () => {\n setDisableProceed(true);\n props.onSubmitET({\n remark: '',\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n getEventCodeByET(\n ExecutionTaskID.PICKUP,\n false,\n props.applicableReasons?.failure\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n }}\n >\n No\n </Button>\n </View>\n </View>\n </View>\n </Modal>\n </View>\n </Provider>\n );\n};\n\nexport default SLPickupET;\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n modalView: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n },\n modalStyle: {\n backgroundColor: 'white',\n padding: 20,\n borderRadius: 8,\n elevation: 5,\n },\n modalBody: {\n paddingHorizontal: 40,\n alignItems: 'center',\n },\n bottomButtons: {\n marginTop: 12,\n },\n returnView: {\n marginTop: 15,\n marginBottom: 15,\n flexDirection: 'row',\n },\n subTitle: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n flex: 1,\n textAlign: 'left',\n lineHeight: 28,\n color: '#111111',\n },\n title: {\n textAlign: 'right',\n fontSize: 14,\n lineHeight: 28,\n fontStyle: 'normal',\n color: '#111111',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n },\n});\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAEA,IAAAI,aAAA,GAAAJ,OAAA;AAKA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AAMA,IAAAQ,UAAA,GAAAR,OAAA;AAKA,IAAAS,cAAA,GAAAC,sBAAA,CAAAV,OAAA;AACA,IAAAW,MAAA,GAAAX,OAAA;AACA,IAAAY,YAAA,GAAAF,sBAAA,CAAAV,OAAA;AACA,IAAAa,OAAA,GAAAb,OAAA;AAA0D,SAAAU,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA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,EAAE,SAAS;IAChB8D,UAAU,EAAEC,mBAAK,CAACO;EACpB;AACF,CAAC,CAAC"}
@@ -34,8 +34,8 @@ var _utils3 = require("../../../components/utils");
34
34
  var _toggleSwitchReactNative = _interopRequireDefault(require("toggle-switch-react-native"));
35
35
  var _ScanIcon = _interopRequireDefault(require("../../../icons/ScanIcon"));
36
36
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
37
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
38
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
37
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
38
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
39
39
  /**
40
40
  *
41
41
  * @param props interface ScannerInput
@@ -184,11 +184,11 @@ const ScanET = props => {
184
184
  setScannedInput('');
185
185
  setScanText('');
186
186
  })();
187
- if (refInput) (_refInput$current = refInput.current) === null || _refInput$current === void 0 || _refInput$current.focus();
187
+ if (refInput) (_refInput$current = refInput.current) === null || _refInput$current === void 0 ? void 0 : _refInput$current.focus();
188
188
  }, [scannedInput]);
189
189
  (0, _react.useEffect)(() => {
190
190
  var _refInput$current2;
191
- if (!showCamera && refInput) (_refInput$current2 = refInput.current) === null || _refInput$current2 === void 0 || _refInput$current2.focus();
191
+ if (!showCamera && refInput) (_refInput$current2 = refInput.current) === null || _refInput$current2 === void 0 ? void 0 : _refInput$current2.focus();
192
192
  }, [showCamera]);
193
193
  const handleSubmitET = async (status, count, erc) => {
194
194
  if (status === _interfaces.PROCEED_STATUS.DELIVER_LATER) {
@@ -598,7 +598,7 @@ const ScanET = props => {
598
598
  }, /*#__PURE__*/_react.default.createElement(_ScanIcon.default, null), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
599
599
  style: {
600
600
  color: '#A3AAC2',
601
- fontFamily: _reactNative.Platform.OS === 'android' ? _CommonStyles.Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',
601
+ fontFamily: _CommonStyles.Fonts.IBMPlexSans_500Medium,
602
602
  fontSize: 14,
603
603
  fontStyle: 'normal',
604
604
  fontWeight: '500'
@@ -622,7 +622,7 @@ const ScanET = props => {
622
622
  marginEnd: 20,
623
623
  flex: 1,
624
624
  fontSize: 16,
625
- fontFamily: _reactNative.Platform.OS === 'android' ? _CommonStyles.Fonts.IBMPlexSans_600SemiBold : 'IBMPlexSans-SemiBold',
625
+ fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold,
626
626
  color: '#A3AAC2'
627
627
  },
628
628
  placeholder: 'Enter Shipment ID'
@@ -647,7 +647,7 @@ const ScanET = props => {
647
647
  }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
648
648
  style: {
649
649
  fontSize: 14,
650
- fontFamily: _reactNative.Platform.OS === 'android' ? _CommonStyles.Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',
650
+ fontFamily: _CommonStyles.Fonts.IBMPlexSans_500Medium,
651
651
  color: '#3D445C'
652
652
  }
653
653
  }, 'Apply')))))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
@@ -671,7 +671,8 @@ const ScanET = props => {
671
671
  }, renderShipmentCount(), renderActionButtons())));
672
672
  }
673
673
  };
674
- var _default = exports.default = ScanET;
674
+ var _default = ScanET;
675
+ exports.default = _default;
675
676
  const styles = _reactNative.StyleSheet.create({
676
677
  cameraContainer: {
677
678
  flex: 1,
@@ -694,7 +695,7 @@ const styles = _reactNative.StyleSheet.create({
694
695
  },
695
696
  addButtonLabel: {
696
697
  color: '#3D445C',
697
- fontFamily: _reactNative.Platform.OS === 'android' ? _CommonStyles.Fonts.IBMPlexSans_600SemiBold : 'IBMPlexSans-SemiBold',
698
+ fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold,
698
699
  fontSize: 16,
699
700
  fontWeight: '600',
700
701
  lineHeight: 20,
@@ -720,7 +721,7 @@ const styles = _reactNative.StyleSheet.create({
720
721
  },
721
722
  titleText: {
722
723
  justifyContent: 'center',
723
- fontFamily: _reactNative.Platform.OS === 'android' ? _CommonStyles.Fonts.IBMPlexSans_600SemiBold : 'IBMPlexSans-SemiBold',
724
+ fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold,
724
725
  fontStyle: 'normal',
725
726
  fontSize: 14,
726
727
  lineHeight: 20,
@@ -730,7 +731,7 @@ const styles = _reactNative.StyleSheet.create({
730
731
  },
731
732
  subText: {
732
733
  justifyContent: 'center',
733
- fontFamily: _reactNative.Platform.OS === 'android' ? _CommonStyles.Fonts.IBMPlexSans_400Regular : 'IBMPlexSans-Regular',
734
+ fontFamily: 'IBMPlexSans_400Regular',
734
735
  fontStyle: 'normal',
735
736
  fontSize: 14,
736
737
  letterSpacing: 0.25,
@@ -746,7 +747,7 @@ const styles = _reactNative.StyleSheet.create({
746
747
  },
747
748
  unscannedShipmentModalSubText: {
748
749
  justifyContent: 'center',
749
- fontFamily: _reactNative.Platform.OS === 'android' ? _CommonStyles.Fonts.IBMPlexSans_400Regular : 'IBMPlexSans-Regular',
750
+ fontFamily: 'IBMPlexSans_400Regular',
750
751
  fontStyle: 'normal',
751
752
  fontSize: 14,
752
753
  letterSpacing: 0.25,
@@ -757,11 +758,11 @@ const styles = _reactNative.StyleSheet.create({
757
758
  modalDefaultERCStyle: {
758
759
  color: '#A3AAC2',
759
760
  fontSize: 14,
760
- fontFamily: _reactNative.Platform.OS === 'android' ? _CommonStyles.Fonts.IBMPlexSans_400Regular : 'IBMPlexSans-Regular'
761
+ fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular
761
762
  },
762
763
  toggleText: {
763
764
  fontSize: 14,
764
- fontFamily: _reactNative.Platform.OS === 'android' ? _CommonStyles.Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',
765
+ fontFamily: _CommonStyles.Fonts.IBMPlexSans_500Medium,
765
766
  color: '#3D445C'
766
767
  },
767
768
  scanIcon: {