@os1-platform/dispatch-mobile 3.1.9 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (612) hide show
  1. package/README.md +0 -2
  2. package/android/.gradle/8.13/checksums/checksums.lock +0 -0
  3. package/android/.gradle/8.13/checksums/md5-checksums.bin +0 -0
  4. package/android/.gradle/8.13/checksums/sha1-checksums.bin +0 -0
  5. package/android/.gradle/8.13/executionHistory/executionHistory.lock +0 -0
  6. package/android/.gradle/{8.10.2 → 8.13}/fileHashes/fileHashes.bin +0 -0
  7. package/android/.gradle/8.13/fileHashes/fileHashes.lock +0 -0
  8. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  9. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  10. package/android/.idea/caches/deviceStreaming.xml +218 -12
  11. package/android/build.gradle +14 -15
  12. package/android/gradle.properties +9 -4
  13. package/android/src/main/AndroidManifest.xml +4 -1
  14. package/android/src/main/java/com/dispatchsdk/location/LocationModule.kt +3 -3
  15. package/android/src/main/java/com/dispatchsdk/sync/SyncEventService.kt +2 -3
  16. package/android/src/main/java/com/dispatchsdk/utils/DispatchSdkUtils.kt +27 -11
  17. package/babel.config.js +1 -1
  18. package/dispatch-mobile.podspec +1 -1
  19. package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js +1 -2
  20. package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
  21. package/lib/commonjs/analytics/sentry/SentrySdkConstants.js +4 -0
  22. package/lib/commonjs/analytics/sentry/SentrySdkConstants.js.map +1 -1
  23. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +1 -2
  24. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
  25. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +4 -5
  26. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
  27. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +5 -6
  28. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  29. package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js +1 -2
  30. package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js.map +1 -1
  31. package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js +1 -2
  32. package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js.map +1 -1
  33. package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js +3 -4
  34. package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -1
  35. package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js +5 -9
  36. package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -1
  37. package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js +8 -9
  38. package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -1
  39. package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js +24 -25
  40. package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -1
  41. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +1 -2
  42. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
  43. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +5 -6
  44. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  45. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +1 -2
  46. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
  47. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +6 -7
  48. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
  49. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +1 -2
  50. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  51. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +5 -6
  52. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  53. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +13 -35
  54. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
  55. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +1 -2
  56. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  57. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +1 -2
  58. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
  59. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +4 -5
  60. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  61. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +1 -2
  62. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  63. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +1 -2
  64. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  65. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +1 -2
  66. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  67. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +5 -6
  68. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  69. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +5 -6
  70. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  71. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +5 -6
  72. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  73. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +5 -6
  74. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  75. package/lib/commonjs/components/executiontasks/pickup/PickupET.js +1 -2
  76. package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
  77. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +5 -6
  78. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  79. package/lib/commonjs/components/executiontasks/scan/ScanET.js +8 -9
  80. package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
  81. package/lib/commonjs/components/executiontasks/scan/interfaces.js +17 -1
  82. package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
  83. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +5 -6
  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 +1 -1
  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 +1 -2
  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 +6 -6
  90. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  91. package/lib/commonjs/components/executiontasks/scan/utils.js +13 -15
  92. package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
  93. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +1 -2
  94. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  95. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
  96. package/lib/commonjs/components/executiontasks/validateOTP/components/ContactListView.js +5 -7
  97. package/lib/commonjs/components/executiontasks/validateOTP/components/ContactListView.js.map +1 -1
  98. package/lib/commonjs/components/executiontasks/validateOTP/components/OTPView.js +5 -6
  99. package/lib/commonjs/components/executiontasks/validateOTP/components/OTPView.js.map +1 -1
  100. package/lib/commonjs/components/executiontasks/validateOTP/components/VerificationComplete.js +8 -11
  101. package/lib/commonjs/components/executiontasks/validateOTP/components/VerificationComplete.js.map +1 -1
  102. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +1 -2
  103. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  104. package/lib/commonjs/components/executiontasks/validateOTP/utils.js +1 -2
  105. package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
  106. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +1 -2
  107. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  108. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -2
  109. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  110. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +7 -12
  111. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  112. package/lib/commonjs/components/widgets/AlertDisplay.js +1 -2
  113. package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
  114. package/lib/commonjs/components/widgets/CancelOrderDialog.js +3 -4
  115. package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
  116. package/lib/commonjs/components/widgets/Card.js +2 -2
  117. package/lib/commonjs/components/widgets/Card.js.map +1 -1
  118. package/lib/commonjs/components/widgets/SearchBar.js +4 -3
  119. package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
  120. package/lib/commonjs/components/widgets/SnackBarCustom.js +12 -15
  121. package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
  122. package/lib/commonjs/components/widgets/SplitTextInput.js +2 -3
  123. package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
  124. package/lib/commonjs/components/widgets/TabsComponent.js +1 -2
  125. package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
  126. package/lib/commonjs/components/widgets/Timer.js +1 -2
  127. package/lib/commonjs/components/widgets/Timer.js.map +1 -1
  128. package/lib/commonjs/database/DBManager.js +112 -0
  129. package/lib/commonjs/database/DBManager.js.map +1 -0
  130. package/lib/commonjs/database/dbUpdate.json +6 -0
  131. package/lib/commonjs/index.js +1 -2
  132. package/lib/commonjs/index.js.map +1 -1
  133. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +1 -2
  134. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
  135. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +8 -9
  136. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  137. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +5 -6
  138. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  139. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +13 -10
  140. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  141. package/lib/commonjs/manager/location/LocationManager.js +0 -4
  142. package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
  143. package/lib/commonjs/manager/sdk/DispatchSDKManager.js +8 -3
  144. package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
  145. package/lib/commonjs/manager/sdk/callbacksHandler.js +1 -1
  146. package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
  147. package/lib/commonjs/manager/syncmanager/AppSyncManager.js +1 -2
  148. package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
  149. package/lib/commonjs/manager/syncmanager/DBConfig.js +6 -2
  150. package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
  151. package/lib/commonjs/manager/syncmanager/database.js +118 -47
  152. package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
  153. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +1 -2
  154. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  155. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +17 -22
  156. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
  157. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +86 -77
  158. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  159. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +25 -28
  160. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  161. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +1 -2
  162. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  163. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +1 -2
  164. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  165. package/lib/commonjs/models/execTasks/ETConfig.js +1 -0
  166. package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
  167. package/lib/commonjs/models/sdk.js.map +1 -1
  168. package/lib/commonjs/native/signature/SignatureCapture.js +2 -2
  169. package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
  170. package/lib/commonjs/network/client.js.map +1 -1
  171. package/lib/commonjs/styles/executionTasks/CommonStyles.js +1 -2
  172. package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
  173. package/lib/commonjs/ui/screens/CancellationScreen.js +1 -2
  174. package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
  175. package/lib/commonjs/ui/screens/CaptureInputScreen.js +1 -2
  176. package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
  177. package/lib/commonjs/ui/screens/CollectPaymentScreen.js +1 -2
  178. package/lib/commonjs/ui/screens/CollectPaymentScreen.js.map +1 -1
  179. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +1 -2
  180. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  181. package/lib/commonjs/ui/screens/DeliverScreen.js +1 -2
  182. package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
  183. package/lib/commonjs/ui/screens/DisplayScreen.js +1 -2
  184. package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
  185. package/lib/commonjs/ui/screens/DoodleScreen.js +1 -2
  186. package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
  187. package/lib/commonjs/ui/screens/DropCashScreen.js +1 -2
  188. package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
  189. package/lib/commonjs/ui/screens/FormsScreen.js +1 -2
  190. package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
  191. package/lib/commonjs/ui/screens/GeofenceScreen.js +1 -2
  192. package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
  193. package/lib/commonjs/ui/screens/ImageCaptureScreen.js +1 -2
  194. package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
  195. package/lib/commonjs/ui/screens/PaymentScreen.js +1 -2
  196. package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
  197. package/lib/commonjs/ui/screens/PickupScreen.js +1 -2
  198. package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
  199. package/lib/commonjs/ui/screens/ScanScreen.js +1 -2
  200. package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
  201. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +1 -2
  202. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
  203. package/lib/commonjs/ui/screens/ValidateOTPScreen.js +1 -2
  204. package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
  205. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +1 -2
  206. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  207. package/lib/commonjs/utils/Constants.js.map +1 -1
  208. package/lib/commonjs/utils/Logger.js +1 -1
  209. package/lib/commonjs/utils/Logger.js.map +1 -1
  210. package/lib/commonjs/utils/SdkUtils.js +6 -5
  211. package/lib/commonjs/utils/SdkUtils.js.map +1 -1
  212. package/lib/commonjs/utils/SyncManagerUtils.js +3 -2
  213. package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
  214. package/lib/commonjs/utils/fcm/FCM.js +1 -2
  215. package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
  216. package/lib/commonjs/utils/fcm/FcmUtils.js +1 -2
  217. package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
  218. package/lib/commonjs/utils/hooks/useModal.js +1 -2
  219. package/lib/commonjs/utils/hooks/useModal.js.map +1 -1
  220. package/lib/commonjs/utils/storage.js +1 -2
  221. package/lib/commonjs/utils/storage.js.map +1 -1
  222. package/lib/module/analytics/sentry/SentrySdkConstants.js +4 -0
  223. package/lib/module/analytics/sentry/SentrySdkConstants.js.map +1 -1
  224. package/lib/module/components/executiontasks/cancellation/CancelET.js +1 -1
  225. package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
  226. package/lib/module/components/executiontasks/captureInput/CaptureText.js +3 -3
  227. package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  228. package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js +2 -2
  229. package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -1
  230. package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js +3 -6
  231. package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -1
  232. package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js +6 -6
  233. package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -1
  234. package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js +21 -21
  235. package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -1
  236. package/lib/module/components/executiontasks/deliver/SLDeliverET.js +3 -3
  237. package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  238. package/lib/module/components/executiontasks/doodle/SignatureET.js +4 -4
  239. package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
  240. package/lib/module/components/executiontasks/dropCash/SLDropCash.js +3 -3
  241. package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  242. package/lib/module/components/executiontasks/forms/FormGenerator.js +11 -32
  243. package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
  244. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +2 -2
  245. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  246. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +4 -4
  247. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  248. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +3 -3
  249. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  250. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +3 -3
  251. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  252. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +3 -3
  253. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  254. package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
  255. package/lib/module/components/executiontasks/pickup/SLPickupET.js +3 -3
  256. package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  257. package/lib/module/components/executiontasks/scan/ScanET.js +5 -5
  258. package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
  259. package/lib/module/components/executiontasks/scan/interfaces.js +16 -0
  260. package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
  261. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +5 -5
  262. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  263. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +2 -2
  264. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  265. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  266. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +3 -3
  267. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  268. package/lib/module/components/executiontasks/scan/utils.js +13 -14
  269. package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
  270. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  271. package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
  272. package/lib/module/components/executiontasks/validateOTP/components/ContactListView.js +3 -4
  273. package/lib/module/components/executiontasks/validateOTP/components/ContactListView.js.map +1 -1
  274. package/lib/module/components/executiontasks/validateOTP/components/OTPView.js +3 -3
  275. package/lib/module/components/executiontasks/validateOTP/components/OTPView.js.map +1 -1
  276. package/lib/module/components/executiontasks/validateOTP/components/VerificationComplete.js +7 -9
  277. package/lib/module/components/executiontasks/validateOTP/components/VerificationComplete.js.map +1 -1
  278. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +7 -10
  279. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  280. package/lib/module/components/widgets/CancelOrderDialog.js +1 -1
  281. package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
  282. package/lib/module/components/widgets/Card.js +1 -1
  283. package/lib/module/components/widgets/Card.js.map +1 -1
  284. package/lib/module/components/widgets/SearchBar.js +2 -1
  285. package/lib/module/components/widgets/SearchBar.js.map +1 -1
  286. package/lib/module/components/widgets/SnackBarCustom.js +6 -8
  287. package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
  288. package/lib/module/components/widgets/SplitTextInput.js +1 -1
  289. package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
  290. package/lib/module/components/widgets/Timer.js.map +1 -1
  291. package/lib/module/database/DBManager.js +104 -0
  292. package/lib/module/database/DBManager.js.map +1 -0
  293. package/lib/module/database/dbUpdate.json +6 -0
  294. package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
  295. package/lib/module/manager/dispatchCodes/EventCodeRepo.js +7 -7
  296. package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  297. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +4 -4
  298. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  299. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +13 -8
  300. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  301. package/lib/module/manager/location/LocationManager.js +0 -4
  302. package/lib/module/manager/location/LocationManager.js.map +1 -1
  303. package/lib/module/manager/sdk/DispatchSDKManager.js +7 -1
  304. package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
  305. package/lib/module/manager/sdk/callbacksHandler.js +0 -2
  306. package/lib/module/manager/sdk/callbacksHandler.js.map +1 -1
  307. package/lib/module/manager/syncmanager/DBConfig.js +5 -1
  308. package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
  309. package/lib/module/manager/syncmanager/database.js +117 -43
  310. package/lib/module/manager/syncmanager/database.js.map +1 -1
  311. package/lib/module/manager/syncmanager/document/DocumentManager.js +16 -20
  312. package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
  313. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +85 -75
  314. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  315. package/lib/module/manager/syncmanager/events/ETEventsManager.js +20 -22
  316. package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  317. package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  318. package/lib/module/models/execTasks/ETConfig.js +1 -0
  319. package/lib/module/models/execTasks/ETConfig.js.map +1 -1
  320. package/lib/module/models/sdk.js.map +1 -1
  321. package/lib/module/native/signature/SignatureCapture.js +2 -2
  322. package/lib/module/native/signature/SignatureCapture.js.map +1 -1
  323. package/lib/module/network/client.js.map +1 -1
  324. package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
  325. package/lib/module/utils/Constants.js.map +1 -1
  326. package/lib/module/utils/Logger.js +1 -1
  327. package/lib/module/utils/Logger.js.map +1 -1
  328. package/lib/module/utils/SdkUtils.js +5 -3
  329. package/lib/module/utils/SdkUtils.js.map +1 -1
  330. package/lib/module/utils/SyncManagerUtils.js +2 -0
  331. package/lib/module/utils/SyncManagerUtils.js.map +1 -1
  332. package/lib/typescript/babel.config.d.ts +1 -0
  333. package/lib/typescript/jest.config.d.ts +7 -0
  334. package/lib/typescript/jest.setup.d.ts +1 -0
  335. package/lib/typescript/scripts/bootstrap.d.ts +1 -0
  336. package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
  337. package/lib/typescript/{components → src/components}/executiontasks/scan/interfaces.d.ts +15 -0
  338. package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOTPSchema.d.ts +1 -1
  339. package/lib/typescript/{components → src/components}/widgets/CancelOrderDialog.d.ts +1 -1
  340. package/lib/typescript/{components → src/components}/widgets/SnackBarCustom.d.ts +3 -2
  341. package/lib/typescript/src/components/widgets/Timer.d.ts +6 -0
  342. package/lib/typescript/src/database/DBManager.d.ts +1 -0
  343. package/lib/typescript/{manager → src/manager}/dispatchCodes/EventCodeRepo.d.ts +1 -1
  344. package/lib/typescript/{manager → src/manager}/dispatchCodes/ReasonCodeRepo.d.ts +5 -3
  345. package/lib/typescript/{manager → src/manager}/syncmanager/DBConfig.d.ts +5 -1
  346. package/lib/typescript/src/manager/syncmanager/database.d.ts +31 -0
  347. package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentManager.d.ts +2 -3
  348. package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentSyncManager.d.ts +1 -2
  349. package/lib/typescript/{network → src/network}/GraphQLClient.d.ts +5 -5
  350. package/lib/typescript/{network → src/network}/NetworkClient.d.ts +3 -3
  351. package/lib/typescript/{network → src/network}/client.d.ts +3 -3
  352. package/lib/typescript/{resources → src/resources}/Login.d.ts +7 -7
  353. package/lib/typescript/{resources → src/resources}/network.d.ts +1 -1
  354. package/lib/typescript/{utils → src/utils}/ApiUtils.d.ts +2 -2
  355. package/lib/typescript/{utils → src/utils}/Constants.d.ts +4 -0
  356. package/package.json +104 -127
  357. package/src/components/executiontasks/cancellation/CancelET.tsx +1 -1
  358. package/src/components/executiontasks/captureInput/CaptureText.tsx +6 -6
  359. package/src/components/executiontasks/collectPayment/components/CompletePayment.tsx +2 -3
  360. package/src/components/executiontasks/collectPayment/components/InitPayment.tsx +3 -7
  361. package/src/components/executiontasks/collectPayment/components/PaymentContactDetails.tsx +3 -4
  362. package/src/components/executiontasks/collectPayment/components/ProcessPayment.tsx +7 -8
  363. package/src/components/executiontasks/deliver/SLDeliverET.tsx +3 -4
  364. package/src/components/executiontasks/doodle/SignatureET.tsx +5 -5
  365. package/src/components/executiontasks/dropCash/SLDropCash.tsx +3 -4
  366. package/src/components/executiontasks/forms/FormGenerator.tsx +38 -55
  367. package/src/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.tsx +2 -2
  368. package/src/components/executiontasks/imageCapture/ImageCapture.tsx +5 -7
  369. package/src/components/executiontasks/payments/completePayment/CompletePaymentET.tsx +3 -4
  370. package/src/components/executiontasks/payments/init/InitPaymentET.tsx +3 -4
  371. package/src/components/executiontasks/payments/processPayment/ProcessPaymentET.tsx +3 -4
  372. package/src/components/executiontasks/pickup/PickupET.tsx +3 -9
  373. package/src/components/executiontasks/pickup/SLPickupET.tsx +3 -4
  374. package/src/components/executiontasks/scan/ScanET.tsx +5 -6
  375. package/src/components/executiontasks/scan/interfaces.ts +16 -0
  376. package/src/components/executiontasks/scan/sub_components/CScanner.tsx +7 -6
  377. package/src/components/executiontasks/scan/sub_components/DropDownUtils.ts +2 -2
  378. package/src/components/executiontasks/scan/sub_components/ERDropDown.tsx +0 -1
  379. package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +3 -3
  380. package/src/components/executiontasks/scan/utils.ts +13 -13
  381. package/src/components/executiontasks/validateOTP/ValidateOTPET.tsx +5 -0
  382. package/src/components/executiontasks/validateOTP/ValidateOTPSchema.ts +1 -1
  383. package/src/components/executiontasks/validateOTP/components/ContactListView.tsx +3 -11
  384. package/src/components/executiontasks/validateOTP/components/OTPView.tsx +3 -4
  385. package/src/components/executiontasks/validateOTP/components/VerificationComplete.tsx +7 -7
  386. package/src/components/executiontasks/verifyOtp/VerifyOtpET.tsx +9 -17
  387. package/src/components/widgets/CancelOrderDialog.tsx +2 -2
  388. package/src/components/widgets/Card.tsx +1 -1
  389. package/src/components/widgets/SearchBar.tsx +2 -1
  390. package/src/components/widgets/SnackBarCustom.tsx +8 -10
  391. package/src/components/widgets/SplitTextInput.tsx +1 -1
  392. package/src/components/widgets/Timer.tsx +0 -1
  393. package/src/database/DBManager.ts +118 -0
  394. package/src/database/dbUpdate.json +6 -0
  395. package/src/manager/dispatch/DispatchStateContainer.tsx +5 -25
  396. package/src/manager/dispatchCodes/EventCodeRepo.ts +8 -12
  397. package/src/manager/dispatchCodes/ReasonCodeContainer.ts +5 -5
  398. package/src/manager/dispatchCodes/ReasonCodeRepo.ts +17 -15
  399. package/src/manager/location/LocationManager.ts +1 -8
  400. package/src/manager/sdk/DispatchSDKManager.ts +12 -4
  401. package/src/manager/sdk/callbacksHandler.ts +3 -8
  402. package/src/manager/syncmanager/DBConfig.ts +6 -1
  403. package/src/manager/syncmanager/database.ts +130 -71
  404. package/src/manager/syncmanager/document/DocumentManager.ts +19 -24
  405. package/src/manager/syncmanager/document/DocumentSyncManager.ts +95 -82
  406. package/src/manager/syncmanager/events/ETEventsManager.ts +30 -35
  407. package/src/manager/syncmanager/events/EventsSyncManager.ts +1 -1
  408. package/src/models/sdk.ts +2 -6
  409. package/src/native/signature/SignatureCapture.tsx +4 -3
  410. package/src/network/client.ts +2 -2
  411. package/src/ui/screens/ValidateOTPScreen.tsx +2 -4
  412. package/src/utils/Constants.ts +6 -1
  413. package/src/utils/Logger.ts +2 -1
  414. package/src/utils/SdkUtils.ts +6 -7
  415. package/src/utils/SyncManagerUtils.ts +1 -0
  416. package/tsconfig.build.json +1 -1
  417. package/tsconfig.json +2 -3
  418. package/android/.gradle/8.10.2/checksums/checksums.lock +0 -0
  419. package/android/.gradle/8.10.2/checksums/md5-checksums.bin +0 -0
  420. package/android/.gradle/8.10.2/checksums/sha1-checksums.bin +0 -0
  421. package/android/.gradle/8.10.2/executionHistory/executionHistory.lock +0 -0
  422. package/android/.gradle/8.10.2/fileHashes/fileHashes.lock +0 -0
  423. package/android/.gradle/8.10.2/gc.properties +0 -0
  424. package/lib/typescript/components/widgets/Timer.d.ts +0 -7
  425. package/lib/typescript/manager/syncmanager/database.d.ts +0 -7
  426. /package/android/.gradle/{8.10.2 → 8.13}/fileChanges/last-build.bin +0 -0
  427. /package/android/.gradle/{8.10.2 → 8.13}/fileHashes/resourceHashesCache.bin +0 -0
  428. /package/android/.gradle/{8.10.2/dependencies-accessors → 8.13}/gc.properties +0 -0
  429. /package/lib/typescript/{analytics → src/analytics}/firebase/FirebaseLogging.d.ts +0 -0
  430. /package/lib/typescript/{analytics → src/analytics}/sentry/SentryAnalyticsSingleton.d.ts +0 -0
  431. /package/lib/typescript/{analytics → src/analytics}/sentry/SentryAnalyticsUtils.d.ts +0 -0
  432. /package/lib/typescript/{analytics → src/analytics}/sentry/SentryModels.d.ts +0 -0
  433. /package/lib/typescript/{analytics → src/analytics}/sentry/SentrySdkConstants.d.ts +0 -0
  434. /package/lib/typescript/{components → src/components}/dispatch/DispatchExecNavigator.d.ts +0 -0
  435. /package/lib/typescript/{components → src/components}/executiontasks/CompletedWFSchema.d.ts +0 -0
  436. /package/lib/typescript/{components → src/components}/executiontasks/ExecutionTasksIndex.d.ts +0 -0
  437. /package/lib/typescript/{components → src/components}/executiontasks/cancellation/CancelET.d.ts +0 -0
  438. /package/lib/typescript/{components → src/components}/executiontasks/cancellation/CancellationSchema.d.ts +0 -0
  439. /package/lib/typescript/{components → src/components}/executiontasks/captureInput/CaptureInputSchema.d.ts +0 -0
  440. /package/lib/typescript/{components → src/components}/executiontasks/captureInput/CaptureText.d.ts +0 -0
  441. /package/lib/typescript/{components → src/components}/executiontasks/captureInput/utils.d.ts +0 -0
  442. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/CollectPayment.d.ts +0 -0
  443. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/CollectPaymentSchema.d.ts +0 -0
  444. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/PaymentStyles.d.ts +0 -0
  445. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/PaymentUtils.d.ts +0 -0
  446. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/CompletePayment.d.ts +0 -0
  447. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/CustomContactsModal.d.ts +0 -0
  448. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/InitPayment.d.ts +0 -0
  449. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/PaymentContactDetails.d.ts +0 -0
  450. /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/ProcessPayment.d.ts +0 -0
  451. /package/lib/typescript/{components → src/components}/executiontasks/deliver/DeliverET.d.ts +0 -0
  452. /package/lib/typescript/{components → src/components}/executiontasks/deliver/DeliverETInput.d.ts +0 -0
  453. /package/lib/typescript/{components → src/components}/executiontasks/deliver/SLDeliverET.d.ts +0 -0
  454. /package/lib/typescript/{components → src/components}/executiontasks/display/DisplayModalET.d.ts +0 -0
  455. /package/lib/typescript/{components → src/components}/executiontasks/display/DisplaySchema.d.ts +0 -0
  456. /package/lib/typescript/{components → src/components}/executiontasks/doodle/SignatureET.d.ts +0 -0
  457. /package/lib/typescript/{components → src/components}/executiontasks/doodle/SignatureSchema.d.ts +0 -0
  458. /package/lib/typescript/{components → src/components}/executiontasks/dropCash/DropCashET.d.ts +0 -0
  459. /package/lib/typescript/{components → src/components}/executiontasks/dropCash/DropCashSchema.d.ts +0 -0
  460. /package/lib/typescript/{components → src/components}/executiontasks/dropCash/SLDropCash.d.ts +0 -0
  461. /package/lib/typescript/{components → src/components}/executiontasks/forms/FormGenerator.d.ts +0 -0
  462. /package/lib/typescript/{components → src/components}/executiontasks/forms/FormSchema.d.ts +0 -0
  463. /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/DateTimeWidget.d.ts +0 -0
  464. /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/DropdownWidget.d.ts +0 -0
  465. /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +0 -0
  466. /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/TimeRangeSelector.d.ts +0 -0
  467. /package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpRequestET.d.ts +0 -0
  468. /package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpRequestETSchema.d.ts +0 -0
  469. /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/CaptureSchema.d.ts +0 -0
  470. /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/CaptureUtils.d.ts +0 -0
  471. /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/ImageCapture.d.ts +0 -0
  472. /package/lib/typescript/{components → src/components}/executiontasks/payments/PaymentStyles.d.ts +0 -0
  473. /package/lib/typescript/{components → src/components}/executiontasks/payments/PaymentUtils.d.ts +0 -0
  474. /package/lib/typescript/{components → src/components}/executiontasks/payments/completePayment/CompletePaymentET.d.ts +0 -0
  475. /package/lib/typescript/{components → src/components}/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +0 -0
  476. /package/lib/typescript/{components → src/components}/executiontasks/payments/init/InitPaymentET.d.ts +0 -0
  477. /package/lib/typescript/{components → src/components}/executiontasks/payments/init/InitPaymentSchema.d.ts +0 -0
  478. /package/lib/typescript/{components → src/components}/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +0 -0
  479. /package/lib/typescript/{components → src/components}/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +0 -0
  480. /package/lib/typescript/{components → src/components}/executiontasks/pickup/PickpSchema.d.ts +0 -0
  481. /package/lib/typescript/{components → src/components}/executiontasks/pickup/PickupET.d.ts +0 -0
  482. /package/lib/typescript/{components → src/components}/executiontasks/pickup/SLPickupET.d.ts +0 -0
  483. /package/lib/typescript/{components → src/components}/executiontasks/scan/ScanET.d.ts +0 -0
  484. /package/lib/typescript/{components → src/components}/executiontasks/scan/ScanSchema.d.ts +0 -0
  485. /package/lib/typescript/{components → src/components}/executiontasks/scan/constants.d.ts +0 -0
  486. /package/lib/typescript/{components → src/components}/executiontasks/scan/modalConstant.d.ts +0 -0
  487. /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/CScanner.d.ts +0 -0
  488. /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/DropDownUtils.d.ts +0 -0
  489. /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/ERDropDown.d.ts +0 -0
  490. /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/SummaryPage.d.ts +0 -0
  491. /package/lib/typescript/{components → src/components}/executiontasks/scan/utils.d.ts +0 -0
  492. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOTPET.d.ts +0 -0
  493. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOtpStyles.d.ts +0 -0
  494. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/ContactListView.d.ts +0 -0
  495. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/OTPView.d.ts +0 -0
  496. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/VerificationComplete.d.ts +0 -0
  497. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/constants.d.ts +0 -0
  498. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/ContactCard.d.ts +0 -0
  499. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/OTPInput.d.ts +0 -0
  500. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/ResendOTPButton.d.ts +0 -0
  501. /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/utils.d.ts +0 -0
  502. /package/lib/typescript/{components → src/components}/executiontasks/verifyInput/VerifyInputSchema.d.ts +0 -0
  503. /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/GeofenceUtils.d.ts +0 -0
  504. /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/VerifyLocSchema.d.ts +0 -0
  505. /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/VerifyLocationET.d.ts +0 -0
  506. /package/lib/typescript/{components → src/components}/executiontasks/verifyOtp/VerifyOtpET.d.ts +0 -0
  507. /package/lib/typescript/{components → src/components}/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +0 -0
  508. /package/lib/typescript/{components → src/components}/utils/Scale.d.ts +0 -0
  509. /package/lib/typescript/{components → src/components}/utils/index.d.ts +0 -0
  510. /package/lib/typescript/{components → src/components}/widgets/AlertDisplay.d.ts +0 -0
  511. /package/lib/typescript/{components → src/components}/widgets/Card.d.ts +0 -0
  512. /package/lib/typescript/{components → src/components}/widgets/ConfirmCancelModal.d.ts +0 -0
  513. /package/lib/typescript/{components → src/components}/widgets/GoBackModal.d.ts +0 -0
  514. /package/lib/typescript/{components → src/components}/widgets/IconButton.d.ts +0 -0
  515. /package/lib/typescript/{components → src/components}/widgets/ModalWidget.d.ts +0 -0
  516. /package/lib/typescript/{components → src/components}/widgets/ProgressDialog.d.ts +0 -0
  517. /package/lib/typescript/{components → src/components}/widgets/SearchBar.d.ts +0 -0
  518. /package/lib/typescript/{components → src/components}/widgets/SplitTextInput.d.ts +0 -0
  519. /package/lib/typescript/{components → src/components}/widgets/TabsComponent.d.ts +0 -0
  520. /package/lib/typescript/{components → src/components}/widgets/Toaster.d.ts +0 -0
  521. /package/lib/typescript/{config → src/config}/DispatchSDKConfig.d.ts +0 -0
  522. /package/lib/typescript/{constants → src/constants}/apiConstants.d.ts +0 -0
  523. /package/lib/typescript/{constants → src/constants}/constants.d.ts +0 -0
  524. /package/lib/typescript/{constants → src/constants}/statuscode.d.ts +0 -0
  525. /package/lib/typescript/{errors → src/errors}/BaseError.d.ts +0 -0
  526. /package/lib/typescript/{errors → src/errors}/ErrorCodes.d.ts +0 -0
  527. /package/lib/typescript/{events → src/events}/EventDispatcher.d.ts +0 -0
  528. /package/lib/typescript/{events → src/events}/EventListener.d.ts +0 -0
  529. /package/lib/typescript/{events → src/events}/constants.d.ts +0 -0
  530. /package/lib/typescript/{events → src/events}/index.d.ts +0 -0
  531. /package/lib/typescript/{events → src/events}/interface.d.ts +0 -0
  532. /package/lib/typescript/{icons → src/icons}/CircleMark.d.ts +0 -0
  533. /package/lib/typescript/{icons → src/icons}/FailedIcon.d.ts +0 -0
  534. /package/lib/typescript/{icons → src/icons}/FailureCloseIcon.d.ts +0 -0
  535. /package/lib/typescript/{icons → src/icons}/ScanIcon.d.ts +0 -0
  536. /package/lib/typescript/{icons → src/icons}/SuccessCompleteIcon.d.ts +0 -0
  537. /package/lib/typescript/{icons → src/icons}/file.d.ts +0 -0
  538. /package/lib/typescript/{icons → src/icons}/index.d.ts +0 -0
  539. /package/lib/typescript/{icons → src/icons}/interface.d.ts +0 -0
  540. /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
  541. /package/lib/typescript/{locale → src/locale}/Str.d.ts +0 -0
  542. /package/lib/typescript/{locale → src/locale}/i18n.d.ts +0 -0
  543. /package/lib/typescript/{locale → src/locale}/util.d.ts +0 -0
  544. /package/lib/typescript/{manager → src/manager}/dispatch/DispatchStateContainer.d.ts +0 -0
  545. /package/lib/typescript/{manager → src/manager}/dispatchCodes/EventCodeContainer.d.ts +0 -0
  546. /package/lib/typescript/{manager → src/manager}/dispatchCodes/ReasonCodeContainer.d.ts +0 -0
  547. /package/lib/typescript/{manager → src/manager}/jobRemoval/JobRemovalManager.d.ts +0 -0
  548. /package/lib/typescript/{manager → src/manager}/location/LocationManager.d.ts +0 -0
  549. /package/lib/typescript/{manager → src/manager}/sdk/DispatchSDKManager.d.ts +0 -0
  550. /package/lib/typescript/{manager → src/manager}/sdk/DispatchSdkCache.d.ts +0 -0
  551. /package/lib/typescript/{manager → src/manager}/sdk/callbacksHandler.d.ts +0 -0
  552. /package/lib/typescript/{manager → src/manager}/syncmanager/AppSyncManager.d.ts +0 -0
  553. /package/lib/typescript/{manager → src/manager}/syncmanager/NativeSyncManager.d.ts +0 -0
  554. /package/lib/typescript/{manager → src/manager}/syncmanager/constants.d.ts +0 -0
  555. /package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentHttpClient.d.ts +0 -0
  556. /package/lib/typescript/{manager → src/manager}/syncmanager/document/models.d.ts +0 -0
  557. /package/lib/typescript/{manager → src/manager}/syncmanager/events/ETEventsManager.d.ts +0 -0
  558. /package/lib/typescript/{manager → src/manager}/syncmanager/events/EventsGraphQLClient.d.ts +0 -0
  559. /package/lib/typescript/{manager → src/manager}/syncmanager/events/EventsSyncManager.d.ts +0 -0
  560. /package/lib/typescript/{manager → src/manager}/syncmanager/events/SyncHttpClient.d.ts +0 -0
  561. /package/lib/typescript/{models → src/models}/DispatchModels.d.ts +0 -0
  562. /package/lib/typescript/{models → src/models}/ReasonCodes.d.ts +0 -0
  563. /package/lib/typescript/{models → src/models}/auth.d.ts +0 -0
  564. /package/lib/typescript/{models → src/models}/execTasks/ETBaseModels.d.ts +0 -0
  565. /package/lib/typescript/{models → src/models}/execTasks/ETConfig.d.ts +0 -0
  566. /package/lib/typescript/{models → src/models}/execution.d.ts +0 -0
  567. /package/lib/typescript/{models → src/models}/fcm.d.ts +0 -0
  568. /package/lib/typescript/{models → src/models}/sdk.d.ts +0 -0
  569. /package/lib/typescript/{native → src/native}/LocationModule.d.ts +0 -0
  570. /package/lib/typescript/{native → src/native}/PermissionModule.d.ts +0 -0
  571. /package/lib/typescript/{native → src/native}/signature/SignatureCapture.d.ts +0 -0
  572. /package/lib/typescript/{network → src/network}/NetworkUtils.d.ts +0 -0
  573. /package/lib/typescript/{network → src/network}/Queries.d.ts +0 -0
  574. /package/lib/typescript/{res → src/res}/strings.d.ts +0 -0
  575. /package/lib/typescript/{styles → src/styles}/SdkColors.d.ts +0 -0
  576. /package/lib/typescript/{styles → src/styles}/executionTasks/CommonStyles.d.ts +0 -0
  577. /package/lib/typescript/{ui → src/ui}/screens/CancellationScreen.d.ts +0 -0
  578. /package/lib/typescript/{ui → src/ui}/screens/CaptureInputScreen.d.ts +0 -0
  579. /package/lib/typescript/{ui → src/ui}/screens/CollectPaymentScreen.d.ts +0 -0
  580. /package/lib/typescript/{ui → src/ui}/screens/CompleteObjectiveScreen.d.ts +0 -0
  581. /package/lib/typescript/{ui → src/ui}/screens/DeliverScreen.d.ts +0 -0
  582. /package/lib/typescript/{ui → src/ui}/screens/DisplayScreen.d.ts +0 -0
  583. /package/lib/typescript/{ui → src/ui}/screens/DoodleScreen.d.ts +0 -0
  584. /package/lib/typescript/{ui → src/ui}/screens/DropCashScreen.d.ts +0 -0
  585. /package/lib/typescript/{ui → src/ui}/screens/ETScreensIndex.d.ts +0 -0
  586. /package/lib/typescript/{ui → src/ui}/screens/FormsScreen.d.ts +0 -0
  587. /package/lib/typescript/{ui → src/ui}/screens/GeofenceScreen.d.ts +0 -0
  588. /package/lib/typescript/{ui → src/ui}/screens/HttpRequestScreen.d.ts +0 -0
  589. /package/lib/typescript/{ui → src/ui}/screens/ImageCaptureScreen.d.ts +0 -0
  590. /package/lib/typescript/{ui → src/ui}/screens/PaymentScreen.d.ts +0 -0
  591. /package/lib/typescript/{ui → src/ui}/screens/PickupScreen.d.ts +0 -0
  592. /package/lib/typescript/{ui → src/ui}/screens/ScanScreen.d.ts +0 -0
  593. /package/lib/typescript/{ui → src/ui}/screens/StartWorkFlowScreen.d.ts +0 -0
  594. /package/lib/typescript/{ui → src/ui}/screens/ValidateOTPScreen.d.ts +0 -0
  595. /package/lib/typescript/{ui → src/ui}/screens/WithBaseDispatchScreen.d.ts +0 -0
  596. /package/lib/typescript/{ui → src/ui}/uiConfig/RouteParams.d.ts +0 -0
  597. /package/lib/typescript/{utils → src/utils}/Enums.d.ts +0 -0
  598. /package/lib/typescript/{utils → src/utils}/ExecTaskUtils.d.ts +0 -0
  599. /package/lib/typescript/{utils → src/utils}/Logger.d.ts +0 -0
  600. /package/lib/typescript/{utils → src/utils}/NetworkUtil.d.ts +0 -0
  601. /package/lib/typescript/{utils → src/utils}/SdkUtils.d.ts +0 -0
  602. /package/lib/typescript/{utils → src/utils}/SyncManagerUtils.d.ts +0 -0
  603. /package/lib/typescript/{utils → src/utils}/context/paymentContext.d.ts +0 -0
  604. /package/lib/typescript/{utils → src/utils}/context/valdiateOTPContext.d.ts +0 -0
  605. /package/lib/typescript/{utils → src/utils}/fcm/FCM.d.ts +0 -0
  606. /package/lib/typescript/{utils → src/utils}/fcm/FcmUtils.d.ts +0 -0
  607. /package/lib/typescript/{utils → src/utils}/helper.d.ts +0 -0
  608. /package/lib/typescript/{utils → src/utils}/hooks/useModal.d.ts +0 -0
  609. /package/lib/typescript/{utils → src/utils}/hooks/useTimer.d.ts +0 -0
  610. /package/lib/typescript/{utils → src/utils}/loginHelper.d.ts +0 -0
  611. /package/lib/typescript/{utils → src/utils}/storage.d.ts +0 -0
  612. /package/lib/typescript/{utils → src/utils}/utils.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["Location","_interopRequireWildcard","require","_BaseError","_ErrorCodes","_interopRequireDefault","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","verifyLocation","params","status","getForegroundPermissionsAsync","response","geofenceLogic","requestForegroundPermissionsAsync","BaseError","ErrorCodes","LOCATION_PERMISSION_DENIED","options","accuracy","Accuracy","Highest","location","getCurrentPositionAsync","geolocation","coords","latitude","longitude","radlat1","Math","PI","radlat2","theta","radtheta","dist","sin","cos","multiplier","acos","geofencing","radius"],"sources":["GeofenceUtils.ts"],"sourcesContent":["import type { VerifyLocationInput } from './VerifyLocSchema';\nimport * as Location from 'expo-location';\nimport { BaseError } from '../../../errors/BaseError';\nimport ErrorCodes from '../../../errors/ErrorCodes';\n\nexport async function verifyLocation(\n params: VerifyLocationInput\n): Promise<boolean> {\n const { status } = await Location.getForegroundPermissionsAsync();\n let response: boolean;\n if (status === 'granted') {\n response = await geofenceLogic(params);\n } else {\n const { status } = await Location.requestForegroundPermissionsAsync();\n if (status === 'granted') {\n response = await geofenceLogic(params);\n } else {\n throw new BaseError(\n ErrorCodes.LOCATION_PERMISSION_DENIED,\n 'Location Permission denied'\n );\n }\n }\n return response;\n}\n\nasync function geofenceLogic(params: VerifyLocationInput): Promise<boolean> {\n const options = {\n accuracy: Location.Accuracy.Highest,\n };\n const location = await Location.getCurrentPositionAsync(options);\n if (\n params.geolocation.accuracy &&\n location.coords.accuracy &&\n params.geolocation.accuracy < location.coords.accuracy\n )\n return false;\n else {\n const latitude: number = +params.geolocation.latitude;\n const longitude: number = +params.geolocation.longitude;\n const radlat1 = (Math.PI * latitude) / 180;\n const radlat2 = (Math.PI * location.coords.latitude) / 180;\n const theta = longitude - location.coords.longitude;\n const radtheta = (Math.PI * theta) / 180;\n let dist =\n Math.sin(radlat1) * Math.sin(radlat2) +\n Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);\n if (dist > 1) {\n dist = 1;\n }\n const multiplier = (180 * 60 * 1.1515 * 1.609344 * 1000) / Math.PI;\n dist = Math.acos(dist) * multiplier;\n return params.geolocation.geofencing.radius >= dist;\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAoD,SAAAG,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAA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J,OAAO,CAAC,GACrCF,IAAI,CAACO,GAAG,CAACR,OAAO,CAAC,GAAGC,IAAI,CAACO,GAAG,CAACL,OAAO,CAAC,GAAGF,IAAI,CAACO,GAAG,CAACH,QAAQ,CAAC;IAC5D,IAAIC,IAAI,GAAG,CAAC,EAAE;MACZA,IAAI,GAAG,CAAC;IACV;IACA,MAAMG,UAAU,GAAI,GAAG,GAAG,EAAE,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAIR,IAAI,CAACC,EAAE;IAClEI,IAAI,GAAGL,IAAI,CAACS,IAAI,CAACJ,IAAI,CAAC,GAAGG,UAAU;IACnC,OAAO5B,MAAM,CAACe,WAAW,CAACe,UAAU,CAACC,MAAM,IAAIN,IAAI;EACrD;AACF","ignoreList":[]}
1
+ {"version":3,"names":["Location","_interopRequireWildcard","require","_BaseError","_ErrorCodes","_interopRequireDefault","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","verifyLocation","params","status","getForegroundPermissionsAsync","response","geofenceLogic","requestForegroundPermissionsAsync","BaseError","ErrorCodes","LOCATION_PERMISSION_DENIED","options","accuracy","Accuracy","Highest","location","getCurrentPositionAsync","geolocation","coords","latitude","longitude","radlat1","Math","PI","radlat2","theta","radtheta","dist","sin","cos","multiplier","acos","geofencing","radius"],"sources":["GeofenceUtils.ts"],"sourcesContent":["import type { VerifyLocationInput } from './VerifyLocSchema';\nimport * as Location from 'expo-location';\nimport { BaseError } from '../../../errors/BaseError';\nimport ErrorCodes from '../../../errors/ErrorCodes';\n\nexport async function verifyLocation(\n params: VerifyLocationInput\n): Promise<boolean> {\n const { status } = await Location.getForegroundPermissionsAsync();\n let response: boolean;\n if (status === 'granted') {\n response = await geofenceLogic(params);\n } else {\n const { status } = await Location.requestForegroundPermissionsAsync();\n if (status === 'granted') {\n response = await geofenceLogic(params);\n } else {\n throw new BaseError(\n ErrorCodes.LOCATION_PERMISSION_DENIED,\n 'Location Permission denied'\n );\n }\n }\n return response;\n}\n\nasync function geofenceLogic(params: VerifyLocationInput): Promise<boolean> {\n const options = {\n accuracy: Location.Accuracy.Highest,\n };\n const location = await Location.getCurrentPositionAsync(options);\n if (\n params.geolocation.accuracy &&\n location.coords.accuracy &&\n params.geolocation.accuracy < location.coords.accuracy\n )\n return false;\n else {\n const latitude: number = +params.geolocation.latitude;\n const longitude: number = +params.geolocation.longitude;\n const radlat1 = (Math.PI * latitude) / 180;\n const radlat2 = (Math.PI * location.coords.latitude) / 180;\n const theta = longitude - location.coords.longitude;\n const radtheta = (Math.PI * theta) / 180;\n let dist =\n Math.sin(radlat1) * Math.sin(radlat2) +\n Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);\n if (dist > 1) {\n dist = 1;\n }\n const multiplier = (180 * 60 * 1.1515 * 1.609344 * 1000) / Math.PI;\n dist = Math.acos(dist) * multiplier;\n return params.geolocation.geofencing.radius >= dist;\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAoD,SAAAG,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAK,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ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WAAW,CAACe,UAAU,CAACC,MAAM,IAAIN,IAAI;EACrD;AACF","ignoreList":[]}
@@ -16,8 +16,7 @@ var _BaseError = require("../../../errors/BaseError");
16
16
  var _AlertDisplay = require("../../widgets/AlertDisplay");
17
17
  var _SdkUtils = _interopRequireDefault(require("../../../utils/SdkUtils"));
18
18
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
19
- 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); }
20
- 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 && {}.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; }
19
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
21
20
  const VerifyLocationET = props => {
22
21
  const [geofencing, setGeofencing] = (0, _react.useState)(true);
23
22
  const submitLocationResponse = (0, _react.useCallback)(async response => {
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_GeofenceUtils","_ExecTaskUtils","_EventCodeContainer","_ETConfig","_CommonStyles","_ProgressDialog","_interopRequireDefault","_BaseError","_AlertDisplay","_SdkUtils","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","VerifyLocationET","props","geofencing","setGeofencing","useState","submitLocationResponse","useCallback","response","_props$applicableReas","_props$applicableReas2","_appRC","applicableReasons","success","failure","onSubmitET","getBaseETResponse","EntityCode","VERIFY_LOCATION","getEventCodeByET","ExecutionTaskID","mergedObjectiveId","useEffect","verifyLocation","error","BaseError","showAlert","SdkUtils","openAppSettings","createElement","View","style","CommonStyles","mainContainer","visible","label","message","_default","exports"],"sources":["VerifyLocationET.tsx"],"sourcesContent":["import { View } from 'react-native';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport type { VerifyLocationInput } from './VerifyLocSchema';\nimport { verifyLocation } from './GeofenceUtils';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { CommonStyles } from '../../../styles/executionTasks/CommonStyles';\nimport ProgressDialog from '../../widgets/ProgressDialog';\nimport { BaseError } from '../../../errors/BaseError';\nimport { showAlert } from '../../widgets/AlertDisplay';\nimport SdkUtils from '../../../utils/SdkUtils';\n\nconst VerifyLocationET = (props: VerifyLocationInput) => {\n const [geofencing, setGeofencing] = useState(true);\n const submitLocationResponse = useCallback(\n async (response: boolean) => {\n const _appRC = response\n ? props.applicableReasons?.success\n : props.applicableReasons?.failure;\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.VERIFY_LOCATION,\n response,\n getEventCodeByET(ExecutionTaskID.VERIFY_LOCATION, response, _appRC),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.VERIFY_LOCATION\n )),\n });\n },\n [props]\n );\n useEffect(() => {\n (async () => {\n try {\n let response = await verifyLocation(props);\n await submitLocationResponse(response);\n setGeofencing(false);\n } catch (error: any) {\n if (error instanceof BaseError) {\n showAlert(\n 'Permission Denied',\n 'Please enable Location permissions from settings and Try again',\n false,\n 'Open Settings',\n () => {\n SdkUtils.openAppSettings();\n }\n );\n } else {\n await submitLocationResponse(false);\n }\n }\n })();\n }, []);\n return (\n <View style={CommonStyles.mainContainer}>\n <ProgressDialog\n visible={geofencing}\n label={props.message ?? 'Verifying Location...'}\n />\n </View>\n );\n};\nexport default VerifyLocationET;\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AAIA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAC,sBAAA,CAAAT,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AACA,IAAAW,aAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAH,sBAAA,CAAAT,OAAA;AAA+C,SAAAS,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,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gB,EAACC,yBAAe,CAACF,eAAe,EAAEV,QAAQ,EAAEG,MAAM,CAAC,EACnE,EAAE,EACFT,KAAK,CAACmB,iBAAiB,EACvBD,yBAAe,CAACF,eAClB,CAAC;IACH,CAAC,CAAC;EACJ,CAAC,EACD,CAAChB,KAAK,CACR,CAAC;EACD,IAAAoB,gBAAS,EAAC,MAAM;IACd,CAAC,YAAY;MACX,IAAI;QACF,IAAId,QAAQ,GAAG,MAAM,IAAAe,6BAAc,EAACrB,KAAK,CAAC;QAC1C,MAAMI,sBAAsB,CAACE,QAAQ,CAAC;QACtCJ,aAAa,CAAC,KAAK,CAAC;MACtB,CAAC,CAAC,OAAOoB,KAAU,EAAE;QACnB,IAAIA,KAAK,YAAYC,oBAAS,EAAE;UAC9B,IAAAC,uBAAS,EACP,mBAAmB,EACnB,gEAAgE,EAChE,KAAK,EACL,eAAe,EACf,MAAM;YACJC,iBAAQ,CAACC,eAAe,CAAC,CAAC;UAC5B,CACF,CAAC;QACH,CAAC,MAAM;UACL,MAAMtB,sBAAsB,CAAC,KAAK,CAAC;QACrC;MACF;IACF,CAAC,EAAE,CAAC;EACN,CAAC,EAAE,EAAE,CAAC;EACN,oBACErC,MAAA,CAAAc,OAAA,CAAA8C,aAAA,CAAC9D,YAAA,CAAA+D,IAAI;IAACC,KAAK,EAAEC,0BAAY,CAACC;EAAc,gBACtChE,MAAA,CAAAc,OAAA,CAAA8C,aAAA,CAACrD,eAAA,CAAAO,OAAc;IACbmD,OAAO,EAAE/B,UAAW;IACpBgC,KAAK,EAAEjC,KAAK,CAACkC,OAAO,IAAI;EAAwB,CACjD,CACG,CAAC;AAEX,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAvD,OAAA,GACakB,gBAAgB","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_GeofenceUtils","_ExecTaskUtils","_EventCodeContainer","_ETConfig","_CommonStyles","_ProgressDialog","_interopRequireDefault","_BaseError","_AlertDisplay","_SdkUtils","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","VerifyLocationET","props","geofencing","setGeofencing","useState","submitLocationResponse","useCallback","response","_props$applicableReas","_props$applicableReas2","_appRC","applicableReasons","success","failure","onSubmitET","getBaseETResponse","EntityCode","VERIFY_LOCATION","getEventCodeByET","ExecutionTaskID","mergedObjectiveId","useEffect","verifyLocation","error","BaseError","showAlert","SdkUtils","openAppSettings","createElement","View","style","CommonStyles","mainContainer","visible","label","message","_default","exports"],"sources":["VerifyLocationET.tsx"],"sourcesContent":["import { View } from 'react-native';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport type { VerifyLocationInput } from './VerifyLocSchema';\nimport { verifyLocation } from './GeofenceUtils';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { CommonStyles } from '../../../styles/executionTasks/CommonStyles';\nimport ProgressDialog from '../../widgets/ProgressDialog';\nimport { BaseError } from '../../../errors/BaseError';\nimport { showAlert } from '../../widgets/AlertDisplay';\nimport SdkUtils from '../../../utils/SdkUtils';\n\nconst VerifyLocationET = (props: VerifyLocationInput) => {\n const [geofencing, setGeofencing] = useState(true);\n const submitLocationResponse = useCallback(\n async (response: boolean) => {\n const _appRC = response\n ? props.applicableReasons?.success\n : props.applicableReasons?.failure;\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.VERIFY_LOCATION,\n response,\n getEventCodeByET(ExecutionTaskID.VERIFY_LOCATION, response, _appRC),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.VERIFY_LOCATION\n )),\n });\n },\n [props]\n );\n useEffect(() => {\n (async () => {\n try {\n let response = await verifyLocation(props);\n await submitLocationResponse(response);\n setGeofencing(false);\n } catch (error: any) {\n if (error instanceof BaseError) {\n showAlert(\n 'Permission Denied',\n 'Please enable Location permissions from settings and Try again',\n false,\n 'Open Settings',\n () => {\n SdkUtils.openAppSettings();\n }\n );\n } else {\n await submitLocationResponse(false);\n }\n }\n })();\n }, []);\n return (\n <View style={CommonStyles.mainContainer}>\n <ProgressDialog\n visible={geofencing}\n label={props.message ?? 'Verifying Location...'}\n />\n </View>\n );\n};\nexport default VerifyLocationET;\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AAIA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAC,sBAAA,CAAAT,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AACA,IAAAW,aAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAH,sBAAA,CAAAT,OAAA;AAA+C,SAAAS,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAf,uBAAA,YAAAA,CAAAW,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,UAAAO,CAAA,C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,CAAC;EACD,IAAAoB,gBAAS,EAAC,MAAM;IACd,CAAC,YAAY;MACX,IAAI;QACF,IAAId,QAAQ,GAAG,MAAM,IAAAe,6BAAc,EAACrB,KAAK,CAAC;QAC1C,MAAMI,sBAAsB,CAACE,QAAQ,CAAC;QACtCJ,aAAa,CAAC,KAAK,CAAC;MACtB,CAAC,CAAC,OAAOoB,KAAU,EAAE;QACnB,IAAIA,KAAK,YAAYC,oBAAS,EAAE;UAC9B,IAAAC,uBAAS,EACP,mBAAmB,EACnB,gEAAgE,EAChE,KAAK,EACL,eAAe,EACf,MAAM;YACJC,iBAAQ,CAACC,eAAe,CAAC,CAAC;UAC5B,CACF,CAAC;QACH,CAAC,MAAM;UACL,MAAMtB,sBAAsB,CAAC,KAAK,CAAC;QACrC;MACF;IACF,CAAC,EAAE,CAAC;EACN,CAAC,EAAE,EAAE,CAAC;EACN,oBACEpC,MAAA,CAAAc,OAAA,CAAA6C,aAAA,CAAC7D,YAAA,CAAA8D,IAAI;IAACC,KAAK,EAAEC,0BAAY,CAACC;EAAc,gBACtC/D,MAAA,CAAAc,OAAA,CAAA6C,aAAA,CAACpD,eAAA,CAAAO,OAAc;IACbkD,OAAO,EAAE/B,UAAW;IACpBgC,KAAK,EAAEjC,KAAK,CAACkC,OAAO,IAAI;EAAwB,CACjD,CACG,CAAC;AAEX,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAtD,OAAA,GACaiB,gBAAgB","ignoreList":[]}
@@ -14,20 +14,15 @@ var _ETConfig = require("../../../models/execTasks/ETConfig");
14
14
  var _SentrySdkConstants = require("../../../analytics/sentry/SentrySdkConstants");
15
15
  var _SentryAnalyticsUtils = require("../../../analytics/sentry/SentryAnalyticsUtils");
16
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
- 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); }
18
- 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 && {}.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; }
19
- // @ts-ignore
20
-
17
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
21
18
  const VerifyOtpET = props => {
22
- const otpInput = (0, _react.useRef)();
19
+ const otpInput = (0, _react.useRef)(null);
23
20
  function backButtonHandler() {
24
21
  return true;
25
22
  }
26
23
  (0, _react.useEffect)(() => {
27
- _reactNative.BackHandler.addEventListener('hardwareBackPress', backButtonHandler);
28
- return () => {
29
- _reactNative.BackHandler.removeEventListener('hardwareBackPress', backButtonHandler);
30
- };
24
+ const backHandler = _reactNative.BackHandler.addEventListener('hardwareBackPress', backButtonHandler);
25
+ return () => backHandler.remove();
31
26
  }, []);
32
27
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
33
28
  style: styles.otpInputTextView
@@ -35,9 +30,9 @@ const VerifyOtpET = props => {
35
30
  style: styles.veriOtpText
36
31
  }, "Verify OTP"), /*#__PURE__*/_react.default.createElement(_reactNativeOtpTextinput.default, {
37
32
  textInputStyle: styles.otpInputStyle,
38
- ref: otpInput,
33
+ ref: otpInput.current,
39
34
  inputCount: props.inputCount,
40
- tintColor: _reactNativePaper.Colors.blue300,
35
+ tintColor: _reactNativePaper.MD2Colors.blue300,
41
36
  handleTextChange: async value => {
42
37
  if (value.length === props.inputCount) {
43
38
  props.onSubmit({
@@ -69,7 +64,7 @@ const styles = _reactNative.StyleSheet.create({
69
64
  },
70
65
  veriOtpText: {
71
66
  fontSize: 24,
72
- color: _reactNativePaper.Colors.black,
67
+ color: "#000000",
73
68
  marginTop: 40
74
69
  },
75
70
  otpInputStyle: {
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_reactNativeOtpTextinput","_interopRequireDefault","_reactNativePaper","_Toaster","_ExecTaskUtils","_ETConfig","_SentrySdkConstants","_SentryAnalyticsUtils","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","VerifyOtpET","props","otpInput","useRef","backButtonHandler","useEffect","BackHandler","addEventListener","removeEventListener","createElement","View","style","styles","otpInputTextView","Text","veriOtpText","textInputStyle","otpInputStyle","ref","inputCount","tintColor","Colors","blue300","handleTextChange","value","length","onSubmit","getBaseETResponse","EntityCode","VERIFY_INPUT","mergedObjectiveId","ExecutionTaskID","otpNotReceivedView","Pressable","onPress","showToast","cta","fireEventWithScreenName","severityLevel","SeverityLevelValue","LOG","eventName","SentryEventNameSdkConstants","BUTTON_CLICKED","screenName","ScreenNameSdkConstants","VERIFY_OTP_ET_SCREEN","sendAgainText","_default","exports","StyleSheet","create","backIconView","marginTop","marginStart","fontSize","color","black","borderRadius","borderWidth","paddingHorizontal","paddingVertical","marginHorizontal","flexDirection"],"sources":["VerifyOtpET.tsx"],"sourcesContent":["import { BackHandler, Pressable, StyleSheet, Text, View } from 'react-native';\nimport React, { useEffect, useRef } from 'react';\n// @ts-ignore\nimport OTPTextView from 'react-native-otp-textinput';\nimport { Colors } from 'react-native-paper';\nimport { showToast } from '../../widgets/Toaster';\nimport type { OtpInputSchema } from './VerifyOtpSchema';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';\n\nconst VerifyOtpET = (props: OtpInputSchema) => {\n const otpInput = useRef();\n\n function backButtonHandler() {\n return true;\n }\n useEffect(() => {\n BackHandler.addEventListener('hardwareBackPress', backButtonHandler);\n return () => {\n BackHandler.removeEventListener('hardwareBackPress', backButtonHandler);\n };\n }, []);\n\n return (\n <View>\n <View style={styles.otpInputTextView}>\n <Text style={styles.veriOtpText}>Verify OTP</Text>\n <OTPTextView\n textInputStyle={styles.otpInputStyle}\n ref={otpInput}\n inputCount={props.inputCount}\n tintColor={Colors.blue300}\n handleTextChange={async (value: string) => {\n if (value.length === props.inputCount) {\n props.onSubmit({\n ...(await getBaseETResponse(\n EntityCode.VERIFY_INPUT,\n true,\n '',\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.VERIFY_INPUT\n )),\n });\n }\n }}\n />\n <View style={styles.otpNotReceivedView}>\n <Text>Haven't received the sms?</Text>\n\n <Pressable\n onPress={() => {\n showToast('Resending OTP');\n const cta = 'Send again';\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.VERIFY_OTP_ET_SCREEN, cta: cta }); \n \n }}\n style={styles.sendAgainText}\n >\n <Text>Send again</Text>\n </Pressable>\n </View>\n </View>\n </View>\n );\n};\nexport default VerifyOtpET;\n\nconst styles = StyleSheet.create({\n backIconView: {\n marginTop: 22,\n marginStart: 22,\n },\n veriOtpText: {\n fontSize: 24,\n color: Colors.black,\n marginTop: 40,\n },\n otpInputStyle: {\n borderRadius: 4,\n borderWidth: 1,\n paddingHorizontal: 16,\n paddingVertical: 12,\n marginTop: 32,\n },\n otpInputTextView: {\n marginHorizontal: 17,\n },\n otpNotReceivedView: {\n flexDirection: 'row',\n marginTop: 10,\n },\n sendAgainText: {\n marginHorizontal: 8,\n },\n});\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,wBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AAEA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AAIA,IAAAS,mBAAA,GAAAT,OAAA;AACA,IAAAU,qBAAA,GAAAV,OAAA;AAAyF,SAAAI,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAA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QAAC,YAAgB,CACb,CACP,CACF,CACF,CAAC;AAEX,CAAC;AAAC,IAAAkC,QAAA,GAAAC,OAAA,CAAAnE,OAAA,GACakB,WAAW;AAE1B,MAAMY,MAAM,GAAGsC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,YAAY,EAAE;IACZC,SAAS,EAAE,EAAE;IACbC,WAAW,EAAE;EACf,CAAC;EACDvC,WAAW,EAAE;IACXwC,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAEnC,wBAAM,CAACoC,KAAK;IACnBJ,SAAS,EAAE;EACb,CAAC;EACDpC,aAAa,EAAE;IACbyC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,CAAC;IACdC,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,EAAE;IACnBR,SAAS,EAAE;EACb,CAAC;EACDxC,gBAAgB,EAAE;IAChBiD,gBAAgB,EAAE;EACpB,CAAC;EACD9B,kBAAkB,EAAE;IAClB+B,aAAa,EAAE,KAAK;IACpBV,SAAS,EAAE;EACb,CAAC;EACDN,aAAa,EAAE;IACbe,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_reactNativeOtpTextinput","_interopRequireDefault","_reactNativePaper","_Toaster","_ExecTaskUtils","_ETConfig","_SentrySdkConstants","_SentryAnalyticsUtils","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","VerifyOtpET","props","otpInput","useRef","backButtonHandler","useEffect","backHandler","BackHandler","addEventListener","remove","createElement","View","style","styles","otpInputTextView","Text","veriOtpText","textInputStyle","otpInputStyle","ref","current","inputCount","tintColor","MD2Colors","blue300","handleTextChange","value","length","onSubmit","getBaseETResponse","EntityCode","VERIFY_INPUT","mergedObjectiveId","ExecutionTaskID","otpNotReceivedView","Pressable","onPress","showToast","cta","fireEventWithScreenName","severityLevel","SeverityLevelValue","LOG","eventName","SentryEventNameSdkConstants","BUTTON_CLICKED","screenName","ScreenNameSdkConstants","VERIFY_OTP_ET_SCREEN","sendAgainText","_default","exports","StyleSheet","create","backIconView","marginTop","marginStart","fontSize","color","borderRadius","borderWidth","paddingHorizontal","paddingVertical","marginHorizontal","flexDirection"],"sources":["VerifyOtpET.tsx"],"sourcesContent":["import { BackHandler, Pressable, StyleSheet, Text, View } from 'react-native';\nimport React, { useEffect, useRef } from 'react';\nimport OTPTextView from 'react-native-otp-textinput';\nimport { MD2Colors } from 'react-native-paper';\nimport { showToast } from '../../widgets/Toaster';\nimport type { OtpInputSchema } from './VerifyOtpSchema';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';\n\nconst VerifyOtpET = (props: OtpInputSchema) => {\n const otpInput = useRef<any>(null);\n\n function backButtonHandler() {\n return true;\n }\n useEffect(() => {\n const backHandler = BackHandler.addEventListener('hardwareBackPress', backButtonHandler);\n return () => backHandler.remove();\n }, []);\n\n return (\n <View>\n <View style={styles.otpInputTextView}>\n <Text style={styles.veriOtpText}>Verify OTP</Text>\n <OTPTextView\n textInputStyle={styles.otpInputStyle}\n ref={otpInput.current}\n inputCount={props.inputCount}\n tintColor={MD2Colors.blue300}\n handleTextChange={async (value: string) => {\n if (value.length === props.inputCount) {\n props.onSubmit({\n ...(await getBaseETResponse(\n EntityCode.VERIFY_INPUT,\n true,\n '',\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.VERIFY_INPUT\n )),\n });\n }\n }}\n />\n <View style={styles.otpNotReceivedView}>\n <Text>Haven't received the sms?</Text>\n\n <Pressable\n onPress={() => {\n showToast('Resending OTP');\n const cta = 'Send again';\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.VERIFY_OTP_ET_SCREEN, cta: cta }); \n }}\n style={styles.sendAgainText}>\n <Text>Send again</Text>\n </Pressable>\n </View>\n </View>\n </View>\n );\n};\nexport default VerifyOtpET;\n\nconst styles = StyleSheet.create({\n backIconView: {\n marginTop: 22,\n marginStart: 22,\n },\n veriOtpText: {\n fontSize: 24,\n color: \"#000000\",\n marginTop: 40,\n },\n otpInputStyle: {\n borderRadius: 4,\n borderWidth: 1,\n paddingHorizontal: 16,\n paddingVertical: 12,\n marginTop: 32,\n },\n otpInputTextView: {\n marginHorizontal: 17,\n },\n otpNotReceivedView: {\n flexDirection: 'row',\n marginTop: 10,\n },\n sendAgainText: {\n marginHorizontal: 8,\n },\n});\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,wBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AAEA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,mBAAA,GAAAT,OAAA;AACA,IAAAU,qBAAA,GAAAV,OAAA;AAAyF,SAAAI,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,CAAAS,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OA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,CAAC;IAC9L,CAAE;IACF1B,KAAK,EAAEC,MAAM,CAACoC;EAAc,gBAC5B9E,MAAA,CAAAY,OAAA,CAAA2B,aAAA,CAACzC,YAAA,CAAA8C,IAAI,QAAC,YAAgB,CACb,CACP,CACF,CACF,CAAC;AAEX,CAAC;AAAC,IAAAmC,QAAA,GAAAC,OAAA,CAAApE,OAAA,GACaiB,WAAW;AAE1B,MAAMa,MAAM,GAAGuC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,YAAY,EAAE;IACZC,SAAS,EAAE,EAAE;IACbC,WAAW,EAAE;EACf,CAAC;EACDxC,WAAW,EAAE;IACXyC,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAE,SAAS;IAChBH,SAAS,EAAE;EACb,CAAC;EACDrC,aAAa,EAAE;IACbyC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,CAAC;IACdC,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,EAAE;IACnBP,SAAS,EAAE;EACb,CAAC;EACDzC,gBAAgB,EAAE;IAChBiD,gBAAgB,EAAE;EACpB,CAAC;EACD7B,kBAAkB,EAAE;IAClB8B,aAAa,EAAE,KAAK;IACpBT,SAAS,EAAE;EACb,CAAC;EACDN,aAAa,EAAE;IACbc,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -7,8 +7,7 @@ exports.showAlert = showAlert;
7
7
  var _SdkUtils = require("../../utils/SdkUtils");
8
8
  var _Logger = _interopRequireWildcard(require("../../utils/Logger"));
9
9
  var _reactNative = require("react-native");
10
- 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); }
11
- 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 && {}.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; }
10
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
12
11
  function showAlert(title, message, cancelable, btnPositive, positiveCall, btnNegative, negCall) {
13
12
  if (_reactNative.Platform.OS === 'android') {
14
13
  _SdkUtils.DispatchUtilsInterface.showAndroidDialog(title, message, btnPositive, btnNegative ?? null, cancelable).then(success => {
@@ -1 +1 @@
1
- {"version":3,"names":["_SdkUtils","require","_Logger","_interopRequireWildcard","_reactNative","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","showAlert","title","message","cancelable","btnPositive","positiveCall","btnNegative","negCall","Platform","OS","DispatchUtilsInterface","showAndroidDialog","then","success","catch","error","Logger","getInstance","logEvent","LOG_TYPE","SDK_ERROR","Alert","alert"],"sources":["AlertDisplay.tsx"],"sourcesContent":["import { DispatchUtilsInterface } from '../../utils/SdkUtils';\nimport Logger, { LOG_TYPE } from '../../utils/Logger';\nimport { Alert, Platform } from 'react-native';\n\nexport function showAlert(\n title: string,\n message: string,\n cancelable: boolean,\n btnPositive: string,\n positiveCall: () => void,\n btnNegative?: string,\n negCall?: () => void\n) {\n if (Platform.OS === 'android') {\n DispatchUtilsInterface.showAndroidDialog(\n title,\n message,\n btnPositive,\n btnNegative ?? null,\n cancelable\n )\n .then((success: boolean) => {\n if (success) positiveCall();\n else if (negCall) {\n negCall();\n }\n })\n .catch((error: { message: string }) => {\n Logger.getInstance().logEvent(\n 'error',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n });\n } else {\n Alert.alert(title, message);\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAA+C,SAAAI,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAExC,SAASW,SAASA,CACvBC,KAAa,EACbC,OAAe,EACfC,UAAmB,EACnBC,WAAmB,EACnBC,YAAwB,EACxBC,WAAoB,EACpBC,OAAoB,EACpB;EACA,IAAIC,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;IAC7BC,gCAAsB,CAACC,iBAAiB,CACtCV,KAAK,EACLC,OAAO,EACPE,WAAW,EACXE,WAAW,IAAI,IAAI,EACnBH,UACF,CAAC,CACES,IAAI,CAAEC,OAAgB,IAAK;MAC1B,IAAIA,OAAO,EAAER,YAAY,CAAC,CAAC,CAAC,KACvB,IAAIE,OAAO,EAAE;QAChBA,OAAO,CAAC,CAAC;MACX;IACF,CAAC,CAAC,CACDO,KAAK,CAAEC,KAA0B,IAAK;MACrCC,eAAM,CAACC,WAAW,CAAC,CAAC,CAACC,QAAQ,CAC3B,OAAO,EACPH,KAAK,CAACb,OAAO,EACbiB,gBAAQ,CAACC,SACX,CAAC;IACH,CAAC,CAAC;EACN,CAAC,MAAM;IACLC,kBAAK,CAACC,KAAK,CAACrB,KAAK,EAAEC,OAAO,CAAC;EAC7B;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_SdkUtils","require","_Logger","_interopRequireWildcard","_reactNative","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","showAlert","title","message","cancelable","btnPositive","positiveCall","btnNegative","negCall","Platform","OS","DispatchUtilsInterface","showAndroidDialog","then","success","catch","error","Logger","getInstance","logEvent","LOG_TYPE","SDK_ERROR","Alert","alert"],"sources":["AlertDisplay.tsx"],"sourcesContent":["import { DispatchUtilsInterface } from '../../utils/SdkUtils';\nimport Logger, { LOG_TYPE } from '../../utils/Logger';\nimport { Alert, Platform } from 'react-native';\n\nexport function showAlert(\n title: string,\n message: string,\n cancelable: boolean,\n btnPositive: string,\n positiveCall: () => void,\n btnNegative?: string,\n negCall?: () => void\n) {\n if (Platform.OS === 'android') {\n DispatchUtilsInterface.showAndroidDialog(\n title,\n message,\n btnPositive,\n btnNegative ?? null,\n cancelable\n )\n .then((success: boolean) => {\n if (success) positiveCall();\n else if (negCall) {\n negCall();\n }\n })\n .catch((error: { message: string }) => {\n Logger.getInstance().logEvent(\n 'error',\n error.message,\n LOG_TYPE.SDK_ERROR\n );\n });\n } else {\n Alert.alert(title, message);\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAA+C,SAAAE,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAExC,SAASkB,SAASA,CACvBC,KAAa,EACbC,OAAe,EACfC,UAAmB,EACnBC,WAAmB,EACnBC,YAAwB,EACxBC,WAAoB,EACpBC,OAAoB,EACpB;EACA,IAAIC,qBAAQ,CAACC,EAAE,KAAK,SAAS,EAAE;IAC7BC,gCAAsB,CAACC,iBAAiB,CACtCV,KAAK,EACLC,OAAO,EACPE,WAAW,EACXE,WAAW,IAAI,IAAI,EACnBH,UACF,CAAC,CACES,IAAI,CAAEC,OAAgB,IAAK;MAC1B,IAAIA,OAAO,EAAER,YAAY,CAAC,CAAC,CAAC,KACvB,IAAIE,OAAO,EAAE;QAChBA,OAAO,CAAC,CAAC;MACX;IACF,CAAC,CAAC,CACDO,KAAK,CAAEC,KAA0B,IAAK;MACrCC,eAAM,CAACC,WAAW,CAAC,CAAC,CAACC,QAAQ,CAC3B,OAAO,EACPH,KAAK,CAACb,OAAO,EACbiB,gBAAQ,CAACC,SACX,CAAC;IACH,CAAC,CAAC;EACN,CAAC,MAAM;IACLC,kBAAK,CAACC,KAAK,CAACrB,KAAK,EAAEC,OAAO,CAAC;EAC7B;AACF","ignoreList":[]}
@@ -8,12 +8,11 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _CommonStyles = require("../../styles/executionTasks/CommonStyles");
10
10
  var _reactNativePaper = require("react-native-paper");
11
- var _MaterialCommunityIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialCommunityIcons"));
11
+ var _materialDesignIcons = _interopRequireDefault(require("@react-native-vector-icons/material-design-icons"));
12
12
  var _SdkColors = _interopRequireWildcard(require("../../styles/SdkColors"));
13
13
  var _SentrySdkConstants = require("../../analytics/sentry/SentrySdkConstants");
14
14
  var _SentryAnalyticsUtils = require("../../analytics/sentry/SentryAnalyticsUtils");
15
- 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); }
16
- 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 && {}.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; }
15
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
17
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
17
  const CancelOrderDialog = props => {
19
18
  return /*#__PURE__*/_react.default.createElement(_reactNative.Modal, {
@@ -25,7 +24,7 @@ const CancelOrderDialog = props => {
25
24
  style: styles.wrapper
26
25
  }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
27
26
  style: styles.content
28
- }, props.showIcon && props.iconName && /*#__PURE__*/_react.default.createElement(_MaterialCommunityIcons.default, {
27
+ }, props.showIcon && props.iconName && /*#__PURE__*/_react.default.createElement(_materialDesignIcons.default, {
29
28
  style: {
30
29
  alignSelf: 'center'
31
30
  },
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_CommonStyles","_reactNativePaper","_MaterialCommunityIcons","_SdkColors","_interopRequireWildcard","_SentrySdkConstants","_SentryAnalyticsUtils","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CancelOrderDialog","props","createElement","Modal","animationType","transparent","visible","onRequestClose","View","style","styles","wrapper","content","showIcon","iconName","alignSelf","size","name","color","SdkColors","ColorTheme","LIGHT","primaryButton","Title","fontFamily","Platform","OS","Fonts","IBMPlexSans_600SemiBold","marginTop","marginBottom","textAlign","label","message","Paragraph","fontSize","IBMPlexSans_400Regular","Button","mode","uppercase","labelStyle","CommonStyles","nextButtonLabel","nextButton","onPress","onSubmit","cta","positiveButtonTitle","fireEventWithScreenName","severityLevel","SeverityLevelValue","LOG","eventName","SentryEventNameSdkConstants","BUTTON_CLICKED","screenName","ScreenNameSdkConstants","CANCEL_ORDER_DIALOG_SCREEN","testID","cancelButtonLabel","cancelButton","negativeButtonTitle","StyleSheet","create","backgroundColor","padding","borderRadius","width","flex","alignItems","justifyContent","_default","exports"],"sources":["CancelOrderDialog.tsx"],"sourcesContent":["import React from 'react';\nimport { Modal, Platform, StyleSheet, View } from 'react-native';\nimport { CommonStyles, Fonts } from '../../styles/executionTasks/CommonStyles';\nimport { Button, Paragraph, Title } from 'react-native-paper';\nimport Icon from 'react-native-vector-icons/MaterialCommunityIcons';\nimport SdkColors, { ColorTheme } from '../../styles/SdkColors';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\nconst CancelOrderDialog = (props: CancelDialogProps) => {\n return (\n <Modal\n animationType=\"none\"\n transparent={true}\n visible={props.visible}\n onRequestClose={() => {}}\n >\n <View style={styles.wrapper}>\n <View style={styles.content}>\n {props.showIcon && props.iconName && (\n <Icon\n style={{ alignSelf: 'center' }}\n size={34}\n name={props.iconName}\n color={SdkColors[ColorTheme.LIGHT].primaryButton}\n />\n )}\n <Title\n style={{\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: '#000000',\n }}\n >\n {props.label ?? 'Cancel Order'}\n </Title>\n {props.message && (\n <Paragraph\n style={{\n textAlign: 'center',\n fontSize: 14,\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_400Regular\n : 'IBMPlexSans-Regular',\n }}\n >\n {props.message}\n </Paragraph>\n )}\n <View style={{ marginTop: 20 }}>\n <Button\n mode={'outlined'}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={CommonStyles.nextButton}\n onPress={() => {\n props.onSubmit(true);\n const cta = props.positiveButtonTitle ?? 'Yes';\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ORDER_DIALOG_SCREEN, cta: cta }); \n \n }}\n testID=\"primary\"\n >\n {props.positiveButtonTitle ?? 'Yes'}\n </Button>\n <Button\n uppercase={false}\n mode={'outlined'}\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 10 }]}\n onPress={async () => {\n props.onSubmit(false);\n const cta = props.negativeButtonTitle ?? 'No';\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ORDER_DIALOG_SCREEN, cta: cta });\n }}\n testID=\"secondary\"\n >\n {props.negativeButtonTitle ?? 'No'}\n </Button>\n </View>\n </View>\n </View>\n </Modal>\n );\n};\n\nconst styles = StyleSheet.create({\n content: {\n backgroundColor: 'white',\n padding: 20,\n borderRadius: 5,\n width: '80%',\n },\n wrapper: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'rgba(0,0,0,0.7)',\n },\n});\n\nexport default CancelOrderDialog;\n\nexport interface CancelDialogProps {\n visible: boolean;\n onSubmit: (success: boolean) => void;\n label?: string;\n message?: string;\n positiveButtonTitle?: string;\n negativeButtonTitle?: string;\n showIcon?: boolean;\n iconName?: string;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,uBAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,UAAA,GAAAC,uBAAA,CAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,qBAAA,GAAAR,OAAA;AAAsF,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SA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O,EAAE,EAAE;IACXC,YAAY,EAAE,CAAC;IACfC,KAAK,EAAE;EACT,CAAC;EACDxD,OAAO,EAAE;IACPyD,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBN,eAAe,EAAE;EACnB;AACF,CAAC,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAAtF,OAAA,GAEYc,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_CommonStyles","_reactNativePaper","_materialDesignIcons","_SdkColors","_interopRequireWildcard","_SentrySdkConstants","_SentryAnalyticsUtils","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CancelOrderDialog","props","createElement","Modal","animationType","transparent","visible","onRequestClose","View","style","styles","wrapper","content","showIcon","iconName","alignSelf","size","name","color","SdkColors","ColorTheme","LIGHT","primaryButton","Title","fontFamily","Platform","OS","Fonts","IBMPlexSans_600SemiBold","marginTop","marginBottom","textAlign","label","message","Paragraph","fontSize","IBMPlexSans_400Regular","Button","mode","uppercase","labelStyle","CommonStyles","nextButtonLabel","nextButton","onPress","onSubmit","cta","positiveButtonTitle","fireEventWithScreenName","severityLevel","SeverityLevelValue","LOG","eventName","SentryEventNameSdkConstants","BUTTON_CLICKED","screenName","ScreenNameSdkConstants","CANCEL_ORDER_DIALOG_SCREEN","testID","cancelButtonLabel","cancelButton","negativeButtonTitle","StyleSheet","create","backgroundColor","padding","borderRadius","width","flex","alignItems","justifyContent","_default","exports"],"sources":["CancelOrderDialog.tsx"],"sourcesContent":["import React from 'react';\nimport { Modal, Platform, StyleSheet, View } from 'react-native';\nimport { CommonStyles, Fonts } from '../../styles/executionTasks/CommonStyles';\nimport { Button, Paragraph, Title } from 'react-native-paper';\nimport Icon from '@react-native-vector-icons/material-design-icons';\nimport SdkColors, { ColorTheme } from '../../styles/SdkColors';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\nconst CancelOrderDialog = (props: CancelDialogProps) => {\n return (\n <Modal\n animationType=\"none\"\n transparent={true}\n visible={props.visible}\n onRequestClose={() => {}}\n >\n <View style={styles.wrapper}>\n <View style={styles.content}>\n {props.showIcon && props.iconName && (\n <Icon\n style={{ alignSelf: 'center' }}\n size={34}\n name={props.iconName}\n color={SdkColors[ColorTheme.LIGHT].primaryButton}\n />\n )}\n <Title\n style={{\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: '#000000',\n }}\n >\n {props.label ?? 'Cancel Order'}\n </Title>\n {props.message && (\n <Paragraph\n style={{\n textAlign: 'center',\n fontSize: 14,\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_400Regular\n : 'IBMPlexSans-Regular',\n }}\n >\n {props.message}\n </Paragraph>\n )}\n <View style={{ marginTop: 20 }}>\n <Button\n mode={'outlined'}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={CommonStyles.nextButton}\n onPress={() => {\n props.onSubmit(true);\n const cta = props.positiveButtonTitle ?? 'Yes';\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ORDER_DIALOG_SCREEN, cta: cta }); \n \n }}\n testID=\"primary\"\n >\n {props.positiveButtonTitle ?? 'Yes'}\n </Button>\n <Button\n uppercase={false}\n mode={'outlined'}\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 10 }]}\n onPress={async () => {\n props.onSubmit(false);\n const cta = props.negativeButtonTitle ?? 'No';\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ORDER_DIALOG_SCREEN, cta: cta });\n }}\n testID=\"secondary\"\n >\n {props.negativeButtonTitle ?? 'No'}\n </Button>\n </View>\n </View>\n </View>\n </Modal>\n );\n};\n\nconst styles = StyleSheet.create({\n content: {\n backgroundColor: 'white',\n padding: 20,\n borderRadius: 5,\n width: '80%',\n },\n wrapper: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'rgba(0,0,0,0.7)',\n },\n});\n\nexport default CancelOrderDialog;\n\nexport interface CancelDialogProps {\n visible: boolean;\n onSubmit: (success: boolean) => void;\n label?: string;\n message?: string;\n positiveButtonTitle?: string;\n negativeButtonTitle?: string;\n showIcon?: boolean;\n iconName?: any;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,UAAA,GAAAC,uBAAA,CAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,qBAAA,GAAAR,OAAA;AAAsF,SAAAM,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,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XC,YAAY,EAAE,CAAC;IACfC,KAAK,EAAE;EACT,CAAC;EACDxD,OAAO,EAAE;IACPyD,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBN,eAAe,EAAE;EACnB;AACF,CAAC,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAAjF,OAAA,GAEYS,iBAAiB","ignoreList":[]}
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
  var _reactNative = require("react-native");
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _reactNativePaper = require("react-native-paper");
10
- var _vectorIcons = require("@expo/vector-icons");
10
+ var _feather = _interopRequireDefault(require("@react-native-vector-icons/feather"));
11
11
  var _SentrySdkConstants = require("../../analytics/sentry/SentrySdkConstants");
12
12
  var _SentryAnalyticsUtils = require("../../analytics/sentry/SentryAnalyticsUtils");
13
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -53,7 +53,7 @@ const Card = props => {
53
53
  });
54
54
  },
55
55
  style: styles.icon
56
- }, /*#__PURE__*/_react.default.createElement(_vectorIcons.Feather, {
56
+ }, /*#__PURE__*/_react.default.createElement(_feather.default, {
57
57
  name: "edit",
58
58
  size: 24,
59
59
  color: "#5B80F7"
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_react","_interopRequireDefault","_reactNativePaper","_vectorIcons","_SentrySdkConstants","_SentryAnalyticsUtils","e","__esModule","default","Card","props","_props$selectConfig","_props$renderAddition","isSelected","selectConfig","createElement","View","style","styles","container","Checkbox","status","onPress","_props$selectConfig2","_props$selectConfig3","onSelect","cta","fireEventWithScreenName","severityLevel","SeverityLevelValue","LOG","eventName","SentryEventNameSdkConstants","BUTTON_CLICKED","screenName","ScreenNameSdkConstants","CARD_WIDGET_SCREEN","theme","roundness","body","header","Text","title","renderAdditionalHeader","call","Body","editConfig","Fragment","divider","TouchableOpacity","_props$editConfig","_props$editConfig2","onEdit","icon","Feather","name","size","color","_default","exports","StyleSheet","create","flexDirection","justifyContent","alignItems","paddingVertical","paddingHorizontal","marginVertical","marginHorizontal","borderWidth","borderColor","borderRadius","flex","fontSize","fontStyle","fontWeight","lineHeight","marginRight","height","width","backgroundColor","alignSelf","margin"],"sources":["Card.tsx"],"sourcesContent":["import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';\nimport React from 'react';\nimport { Checkbox } from 'react-native-paper';\nimport { Feather } from '@expo/vector-icons';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\ninterface CardProps {\n title: string;\n renderAdditionalHeader?: () => JSX.Element;\n Body: JSX.Element;\n editConfig?: {\n props: any;\n onEdit: (props: any) => void;\n };\n selectConfig?: {\n isSelected: boolean;\n props: any;\n onSelect: (props: any) => void;\n };\n}\n\nconst Card = (props: CardProps) => {\n const isSelected = props.selectConfig?.isSelected ? 'checked' : 'unchecked';\n\n return (\n <View style={styles.container}>\n {props.selectConfig ? (\n <View>\n <Checkbox\n status={isSelected}\n onPress={() => {\n props.selectConfig?.onSelect(props.selectConfig?.props);\n const cta = \"Checkbox checked\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CARD_WIDGET_SCREEN, cta: cta }); \n }}\n theme={{ roundness: 5 }}\n />\n </View>\n ) : null}\n <View style={styles.body}>\n <View style={styles.header}>\n <Text style={styles.title}>{props.title}</Text>\n {props.renderAdditionalHeader?.()}\n </View>\n {props.Body}\n </View>\n {props.editConfig ? (\n <>\n <View style={styles.divider} />\n <TouchableOpacity\n onPress={() => {props.editConfig?.onEdit(props.editConfig?.props)\n const cta = \"Edit\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CARD_WIDGET_SCREEN, cta: cta }); \n \n }}\n style={styles.icon}\n >\n <Feather name=\"edit\" size={24} color=\"#5B80F7\" />\n </TouchableOpacity>\n </>\n ) : null}\n </View>\n );\n};\n\nexport default Card;\n\nconst styles = StyleSheet.create({\n container: {\n flexDirection: 'row',\n justifyContent: 'flex-start',\n alignItems: 'flex-start',\n paddingVertical: 12,\n paddingHorizontal: 16,\n marginVertical: 10,\n marginHorizontal: 16,\n borderWidth: 1,\n borderColor: '#E0E3EB',\n borderRadius: 8,\n // height: 150,\n },\n header: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n body: {\n flex: 1,\n },\n title: {\n fontSize: 16,\n fontStyle: 'normal',\n fontWeight: '500',\n lineHeight: 24,\n marginRight: 8,\n },\n divider: {\n height: '90%',\n width: 2,\n backgroundColor: '#E0E3EB',\n alignSelf: 'center',\n },\n icon: {\n alignSelf: 'center',\n margin: 10,\n },\n});\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AAAsF,SAAAE,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAiBtF,MAAMG,IAAI,GAAIC,KAAgB,IAAK;EAAA,IAAAC,mBAAA,EAAAC,qBAAA;EACjC,MAAMC,UAAU,GAAG,CAAAF,mBAAA,GAAAD,KAAK,CAACI,YAAY,cAAAH,mBAAA,eAAlBA,mBAAA,CAAoBE,UAAU,GAAG,SAAS,GAAG,WAAW;EAE3E,oBACEb,MAAA,CAAAQ,OAAA,CAAAO,aAAA,CAACjB,YAAA,CAAAkB,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC;E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KAAK;IACpBC,cAAc,EAAE,YAAY;IAC5BC,UAAU,EAAE,YAAY;IACxBC,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,EAAE;IACrBC,cAAc,EAAE,EAAE;IAClBC,gBAAgB,EAAE,EAAE;IACpBC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE,SAAS;IACtBC,YAAY,EAAE;IACd;EACF,CAAC;EACD/B,MAAM,EAAE;IACNsB,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE;EACd,CAAC;EACDzB,IAAI,EAAE;IACJiC,IAAI,EAAE;EACR,CAAC;EACD9B,KAAK,EAAE;IACL+B,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE,EAAE;IACdC,WAAW,EAAE;EACf,CAAC;EACD7B,OAAO,EAAE;IACP8B,MAAM,EAAE,KAAK;IACbC,KAAK,EAAE,CAAC;IACRC,eAAe,EAAE,SAAS;IAC1BC,SAAS,EAAE;EACb,CAAC;EACD5B,IAAI,EAAE;IACJ4B,SAAS,EAAE,QAAQ;IACnBC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_react","_interopRequireDefault","_reactNativePaper","_feather","_SentrySdkConstants","_SentryAnalyticsUtils","e","__esModule","default","Card","props","_props$selectConfig","_props$renderAddition","isSelected","selectConfig","createElement","View","style","styles","container","Checkbox","status","onPress","_props$selectConfig2","_props$selectConfig3","onSelect","cta","fireEventWithScreenName","severityLevel","SeverityLevelValue","LOG","eventName","SentryEventNameSdkConstants","BUTTON_CLICKED","screenName","ScreenNameSdkConstants","CARD_WIDGET_SCREEN","theme","roundness","body","header","Text","title","renderAdditionalHeader","call","Body","editConfig","Fragment","divider","TouchableOpacity","_props$editConfig","_props$editConfig2","onEdit","icon","name","size","color","_default","exports","StyleSheet","create","flexDirection","justifyContent","alignItems","paddingVertical","paddingHorizontal","marginVertical","marginHorizontal","borderWidth","borderColor","borderRadius","flex","fontSize","fontStyle","fontWeight","lineHeight","marginRight","height","width","backgroundColor","alignSelf","margin"],"sources":["Card.tsx"],"sourcesContent":["import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';\nimport React from 'react';\nimport { Checkbox } from 'react-native-paper';\nimport Feather from '@react-native-vector-icons/feather';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\ninterface CardProps {\n title: string;\n renderAdditionalHeader?: () => JSX.Element;\n Body: JSX.Element;\n editConfig?: {\n props: any;\n onEdit: (props: any) => void;\n };\n selectConfig?: {\n isSelected: boolean;\n props: any;\n onSelect: (props: any) => void;\n };\n}\n\nconst Card = (props: CardProps) => {\n const isSelected = props.selectConfig?.isSelected ? 'checked' : 'unchecked';\n\n return (\n <View style={styles.container}>\n {props.selectConfig ? (\n <View>\n <Checkbox\n status={isSelected}\n onPress={() => {\n props.selectConfig?.onSelect(props.selectConfig?.props);\n const cta = \"Checkbox checked\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CARD_WIDGET_SCREEN, cta: cta }); \n }}\n theme={{ roundness: 5 }}\n />\n </View>\n ) : null}\n <View style={styles.body}>\n <View style={styles.header}>\n <Text style={styles.title}>{props.title}</Text>\n {props.renderAdditionalHeader?.()}\n </View>\n {props.Body}\n </View>\n {props.editConfig ? (\n <>\n <View style={styles.divider} />\n <TouchableOpacity\n onPress={() => {props.editConfig?.onEdit(props.editConfig?.props)\n const cta = \"Edit\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CARD_WIDGET_SCREEN, cta: cta }); \n \n }}\n style={styles.icon}\n >\n <Feather name=\"edit\" size={24} color=\"#5B80F7\" />\n </TouchableOpacity>\n </>\n ) : null}\n </View>\n );\n};\n\nexport default Card;\n\nconst styles = StyleSheet.create({\n container: {\n flexDirection: 'row',\n justifyContent: 'flex-start',\n alignItems: 'flex-start',\n paddingVertical: 12,\n paddingHorizontal: 16,\n marginVertical: 10,\n marginHorizontal: 16,\n borderWidth: 1,\n borderColor: '#E0E3EB',\n borderRadius: 8,\n // height: 150,\n },\n header: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n body: {\n flex: 1,\n },\n title: {\n fontSize: 16,\n fontStyle: 'normal',\n fontWeight: '500',\n lineHeight: 24,\n marginRight: 8,\n },\n divider: {\n height: '90%',\n width: 2,\n backgroundColor: '#E0E3EB',\n alignSelf: 'center',\n },\n icon: {\n alignSelf: 'center',\n margin: 10,\n },\n});\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AAAsF,SAAAE,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAiBtF,MAAMG,IAAI,GAAIC,KAAgB,IAAK;EAAA,IAAAC,mBAAA,EAAAC,qBAAA;EACjC,MAAMC,UAAU,GAAG,CAAAF,mBAAA,GAAAD,KAAK,CAACI,YAAY,cAAAH,mBAAA,eAAlBA,mBAAA,CAAoBE,UAAU,GAAG,SAAS,GAAG,WAAW;EAE3E,oBACEb,MAAA,CAAAQ,OAAA,CAAAO,aAAA,CAACjB,YAAA,CAAAkB,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC;EAAU,GAC3BT,KAAK,CAACI,YAAY,gBACjBd,MAAA,CAAAQ,OAAA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IACxBC,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,EAAE;IACrBC,cAAc,EAAE,EAAE;IAClBC,gBAAgB,EAAE,EAAE;IACpBC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE,SAAS;IACtBC,YAAY,EAAE;IACd;EACF,CAAC;EACD9B,MAAM,EAAE;IACNqB,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE;EACd,CAAC;EACDxB,IAAI,EAAE;IACJgC,IAAI,EAAE;EACR,CAAC;EACD7B,KAAK,EAAE;IACL8B,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE,EAAE;IACdC,WAAW,EAAE;EACf,CAAC;EACD5B,OAAO,EAAE;IACP6B,MAAM,EAAE,KAAK;IACbC,KAAK,EAAE,CAAC;IACRC,eAAe,EAAE,SAAS;IAC1BC,SAAS,EAAE;EACb,CAAC;EACD3B,IAAI,EAAE;IACJ2B,SAAS,EAAE,QAAQ;IACnBC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
- var _vectorIcons = require("@expo/vector-icons");
9
+ var _evilIcons = _interopRequireDefault(require("@react-native-vector-icons/evil-icons"));
10
+ var _materialIcons = _interopRequireDefault(require("@react-native-vector-icons/material-icons"));
10
11
  var _SentrySdkConstants = require("../../analytics/sentry/SentrySdkConstants");
11
12
  var _SentryAnalyticsUtils = require("../../analytics/sentry/SentryAnalyticsUtils");
12
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -33,7 +34,7 @@ const SearchBar = props => {
33
34
  style: styles.container
34
35
  }, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
35
36
  style: styles.iconContainer
36
- }, /*#__PURE__*/_react.default.createElement(_vectorIcons.EvilIcons, {
37
+ }, /*#__PURE__*/_react.default.createElement(_evilIcons.default, {
37
38
  name: "search",
38
39
  size: 24,
39
40
  color: "#525B7A"
@@ -50,7 +51,7 @@ const SearchBar = props => {
50
51
  })), searchText ? /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
51
52
  style: styles.iconContainer,
52
53
  onPress: handleClear
53
- }, /*#__PURE__*/_react.default.createElement(_vectorIcons.MaterialIcons, {
54
+ }, /*#__PURE__*/_react.default.createElement(_materialIcons.default, {
54
55
  name: "clear",
55
56
  size: 24,
56
57
  color: "#525B7A"
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_vectorIcons","_SentrySdkConstants","_SentryAnalyticsUtils","e","__esModule","default","SearchBar","props","searchText","setSearchText","handleSearch","text","onChangeSearch","handleClear","onClear","cta","fireEventWithScreenName","severityLevel","SeverityLevelValue","LOG","eventName","SentryEventNameSdkConstants","BUTTON_CLICKED","screenName","ScreenNameSdkConstants","SEARCH_BAR_SCREEN","createElement","View","style","styles","container","TouchableOpacity","iconContainer","EvilIcons","name","size","color","inputContainer","TextInput","input","placeholder","onChangeText","value","onPress","MaterialIcons","StyleSheet","create","flexDirection","alignItems","backgroundColor","borderRadius","paddingHorizontal","borderWidth","borderColor","marginHorizontal","flex","height","paddingLeft","paddingRight","_default","exports"],"sources":["SearchBar.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { View, TextInput, TouchableOpacity, StyleSheet } from 'react-native';\nimport { EvilIcons, MaterialIcons } from '@expo/vector-icons';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n \ninterface SearchBarProps {\n searchText: string;\n setSearchText: (searchText: string) => void;\n onChangeSearch: (searchText: string) => any;\n placeholder: string;\n onClear: () => any;\n}\n\nconst SearchBar = (props: SearchBarProps) => {\n const { searchText, setSearchText } = props;\n const handleSearch = (text: string) => {\n props.onChangeSearch(text);\n };\n const handleClear = () => {\n props.onClear();\n setSearchText('');\n const cta = \"Clear\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SEARCH_BAR_SCREEN, cta: cta });\n\n };\n\n return (\n <View style={styles.container}>\n <TouchableOpacity style={styles.iconContainer}>\n <EvilIcons name=\"search\" size={24} color=\"#525B7A\" />\n </TouchableOpacity>\n <View style={styles.inputContainer}>\n <TextInput\n style={styles.input}\n placeholder={props.placeholder}\n onChangeText={(text) => {\n handleSearch(text);\n setSearchText(text);\n }}\n value={searchText}\n />\n </View>\n {searchText ? (\n <TouchableOpacity style={styles.iconContainer} onPress={handleClear}>\n <MaterialIcons name=\"clear\" size={24} color=\"#525B7A\" />\n </TouchableOpacity>\n ) : null}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#ffffff',\n borderRadius: 6,\n paddingHorizontal: 12,\n borderWidth: 1,\n borderColor: '#DDDDDD',\n marginHorizontal: 16,\n },\n inputContainer: {\n flex: 1,\n },\n input: {\n height: 40,\n },\n iconContainer: {\n paddingLeft: 4,\n paddingRight: 8,\n },\n});\n\nexport default SearchBar;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAJ,OAAA;AAAsF,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAUtF,MAAMG,SAAS,GAAIC,KAAqB,IAAK;EAC3C,MAAM;IAAEC,UAAU;IAAEC;EAAc,CAA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;EAAW,CACnB,CACG,CAAC,EACNA,UAAU,gBACTZ,MAAA,CAAAS,OAAA,CAAAqB,aAAA,CAAC3B,YAAA,CAAAgC,gBAAgB;IAACH,KAAK,EAAEC,MAAM,CAACG,aAAc;IAACW,OAAO,EAAE9B;EAAY,gBAClEjB,MAAA,CAAAS,OAAA,CAAAqB,aAAA,CAAC1B,YAAA,CAAA4C,aAAa;IAACV,IAAI,EAAC,OAAO;IAACC,IAAI,EAAE,EAAG;IAACC,KAAK,EAAC;EAAS,CAAE,CACvC,CAAC,GACjB,IACA,CAAC;AAEX,CAAC;AAED,MAAMP,MAAM,GAAGgB,uBAAU,CAACC,MAAM,CAAC;EAC/BhB,SAAS,EAAE;IACTiB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,SAAS;IAC1BC,YAAY,EAAE,CAAC;IACfC,iBAAiB,EAAE,EAAE;IACrBC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE,SAAS;IACtBC,gBAAgB,EAAE;EACpB,CAAC;EACDjB,cAAc,EAAE;IACdkB,IAAI,EAAE;EACR,CAAC;EACDhB,KAAK,EAAE;IACLiB,MAAM,EAAE;EACV,CAAC;EACDxB,aAAa,EAAE;IACbyB,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAvD,OAAA,GAEYC,SAAS","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_evilIcons","_materialIcons","_SentrySdkConstants","_SentryAnalyticsUtils","e","__esModule","default","SearchBar","props","searchText","setSearchText","handleSearch","text","onChangeSearch","handleClear","onClear","cta","fireEventWithScreenName","severityLevel","SeverityLevelValue","LOG","eventName","SentryEventNameSdkConstants","BUTTON_CLICKED","screenName","ScreenNameSdkConstants","SEARCH_BAR_SCREEN","createElement","View","style","styles","container","TouchableOpacity","iconContainer","name","size","color","inputContainer","TextInput","input","placeholder","onChangeText","value","onPress","StyleSheet","create","flexDirection","alignItems","backgroundColor","borderRadius","paddingHorizontal","borderWidth","borderColor","marginHorizontal","flex","height","paddingLeft","paddingRight","_default","exports"],"sources":["SearchBar.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { View, TextInput, TouchableOpacity, StyleSheet } from 'react-native';\nimport EvilIcons from '@react-native-vector-icons/evil-icons';\nimport MaterialIcons from '@react-native-vector-icons/material-icons';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n \ninterface SearchBarProps {\n searchText: string;\n setSearchText: (searchText: string) => void;\n onChangeSearch: (searchText: string) => any;\n placeholder: string;\n onClear: () => any;\n}\n\nconst SearchBar = (props: SearchBarProps) => {\n const { searchText, setSearchText } = props;\n const handleSearch = (text: string) => {\n props.onChangeSearch(text);\n };\n const handleClear = () => {\n props.onClear();\n setSearchText('');\n const cta = \"Clear\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SEARCH_BAR_SCREEN, cta: cta });\n\n };\n\n return (\n <View style={styles.container}>\n <TouchableOpacity style={styles.iconContainer}>\n <EvilIcons name=\"search\" size={24} color=\"#525B7A\" />\n </TouchableOpacity>\n <View style={styles.inputContainer}>\n <TextInput\n style={styles.input}\n placeholder={props.placeholder}\n onChangeText={(text) => {\n handleSearch(text);\n setSearchText(text);\n }}\n value={searchText}\n />\n </View>\n {searchText ? (\n <TouchableOpacity style={styles.iconContainer} onPress={handleClear}>\n <MaterialIcons name=\"clear\" size={24} color=\"#525B7A\" />\n </TouchableOpacity>\n ) : null}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#ffffff',\n borderRadius: 6,\n paddingHorizontal: 12,\n borderWidth: 1,\n borderColor: '#DDDDDD',\n marginHorizontal: 16,\n },\n inputContainer: {\n flex: 1,\n },\n input: {\n height: 40,\n },\n iconContainer: {\n paddingLeft: 4,\n paddingRight: 8,\n },\n});\n\nexport default SearchBar;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,cAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,qBAAA,GAAAL,OAAA;AAAsF,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAUtF,MAAMG,SAAS,GAAIC,KAAqB,IAAK;EAC3C,MAAM;IAAEC,UAAU;IAAEC;EAAc,CAAC,GAAGF,KAAK;EAC3C,MAAMG,YAAY,GAAIC,IAAY,IAAK;IACrCJ,KAAK,CAACK,cAAc,CAACD,IAAI,CAAC;EAC5B,CAAC;EACD,MAAME,WAAW,GAAGA,CAAA,KAAM;IACxBN,KAAK,CAACO,OAAO,CAAC,CAAC;IACfL,aAAa,CAAC,EAAE,CAAC;IACjB,MAAMM,GAAG,GAAG,OAAO;IACnB,IAAAC,6CAAuB,EAAC;MAAEC,aAAa,EAAEC,sCAAkB,CAACC,GAAG;MAAEC,SAAS,EAAEC,+CAA2B,CAACC,cAAc;MAAEC,UAAU,EAAEC,0CAAsB,CAACC,iBAAiB;MAAEV,GAAG,EAAEA;IAAI,CAAC,CAAC;EAE3L,CAAC;EAED,oBACEpB,MAAA,CAAAU,OAAA,CAAAqB,aAAA,CAAC5B,YAAA,CAAA6B,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC;EAAU,gBAC5BnC,MAAA,CAAAU,OAAA,CAAAqB,aAAA,CAAC5B,YAAA,CAAAiC,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AE;EACpB,CAAC;EACDhB,cAAc,EAAE;IACdiB,IAAI,EAAE;EACR,CAAC;EACDf,KAAK,EAAE;IACLgB,MAAM,EAAE;EACV,CAAC;EACDtB,aAAa,EAAE;IACbuB,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAArD,OAAA,GAEYC,SAAS","ignoreList":[]}
@@ -7,14 +7,11 @@ exports.default = exports.SnackBarType = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _reactNativePaper = require("react-native-paper");
10
- var _vectorIcons = require("@expo/vector-icons");
10
+ var _antDesign = _interopRequireDefault(require("@react-native-vector-icons/ant-design"));
11
11
  var _CommonStyles = require("../../styles/executionTasks/CommonStyles");
12
12
  var _SentrySdkConstants = require("../../analytics/sentry/SentrySdkConstants");
13
13
  var _SentryAnalyticsUtils = require("../../analytics/sentry/SentryAnalyticsUtils");
14
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
- /* eslint-disable react-native/no-inline-styles */
16
- /* eslint-disable @typescript-eslint/no-unused-vars */
17
-
18
15
  const DURATION_MEDIUM = 4500;
19
16
  let SnackBarType = exports.SnackBarType = /*#__PURE__*/function (SnackBarType) {
20
17
  SnackBarType[SnackBarType["SUCCESS"] = 0] = "SUCCESS";
@@ -112,24 +109,24 @@ const SnackbarCustom = ({
112
109
  ]
113
110
  }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
114
111
  style: type && type === SnackBarType.FAILURE ? styles.fail : type && type === SnackBarType.WARNING ? styles.warn : type && type === SnackBarType.PAYMENT_WARNING ? styles.paymentWarn : type && type === SnackBarType.OTP_SUCCESS ? styles.otpSuccess : type && type === SnackBarType.OTP_FAILED ? styles.otpFailed : styles.main
115
- }, type && type === SnackBarType.FAILURE ? /*#__PURE__*/_react.default.createElement(_vectorIcons.AntDesign, {
116
- name: "exclamationcircleo",
112
+ }, type && type === SnackBarType.FAILURE ? /*#__PURE__*/_react.default.createElement(_antDesign.default, {
113
+ name: "exclamation-circle",
117
114
  size: 20,
118
115
  color: "white"
119
- }) : type && type === SnackBarType.PAYMENT_WARNING ? /*#__PURE__*/_react.default.createElement(_vectorIcons.AntDesign, {
120
- name: "infocirlceo",
116
+ }) : type && type === SnackBarType.PAYMENT_WARNING ? /*#__PURE__*/_react.default.createElement(_antDesign.default, {
117
+ name: "info-circle",
121
118
  size: 20,
122
119
  color: "#D97706"
123
- }) : type && type === SnackBarType.OTP_SUCCESS ? /*#__PURE__*/_react.default.createElement(_vectorIcons.AntDesign, {
124
- name: "checkcircleo",
120
+ }) : type && type === SnackBarType.OTP_SUCCESS ? /*#__PURE__*/_react.default.createElement(_antDesign.default, {
121
+ name: "check-circle",
125
122
  size: 20,
126
123
  color: "#059669"
127
- }) : type && type === SnackBarType.OTP_FAILED ? /*#__PURE__*/_react.default.createElement(_vectorIcons.AntDesign, {
128
- name: "closecircleo",
124
+ }) : type && type === SnackBarType.OTP_FAILED ? /*#__PURE__*/_react.default.createElement(_antDesign.default, {
125
+ name: "close-circle",
129
126
  size: 20,
130
127
  color: "#DC2626"
131
- }) : /*#__PURE__*/_react.default.createElement(_vectorIcons.AntDesign, {
132
- name: "checkcircleo",
128
+ }) : /*#__PURE__*/_react.default.createElement(_antDesign.default, {
129
+ name: "check-circle",
133
130
  size: 20,
134
131
  color: "white"
135
132
  }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
@@ -140,7 +137,7 @@ const SnackbarCustom = ({
140
137
  }, type === SnackBarType.OTP_FAILED && {
141
138
  color: '#DC2626'
142
139
  }]
143
- }, message), /*#__PURE__*/_react.default.createElement(_vectorIcons.AntDesign, {
140
+ }, message), /*#__PURE__*/_react.default.createElement(_antDesign.default, {
144
141
  name: "close",
145
142
  size: 20,
146
143
  color: isDarkColorType ? '#3D445C' : 'white',