@os1-platform/dispatch-mobile 2.1.9 → 2.1.10

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 (551) hide show
  1. package/android/.gradle/6.8/fileChanges/last-build.bin +0 -0
  2. package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
  3. package/android/.gradle/6.8/gc.properties +0 -0
  4. package/android/.gradle/checksums/checksums.lock +0 -0
  5. package/android/.gradle/configuration-cache/gc.properties +0 -0
  6. package/android/.gradle/vcs-1/gc.properties +0 -0
  7. package/android/.idea/gradle.xml +13 -0
  8. package/android/.idea/misc.xml +10 -0
  9. package/android/.idea/vcs.xml +6 -0
  10. package/lib/commonjs/@types/assets/index.d.js.map +1 -1
  11. package/lib/commonjs/analytics/firebase/FirebaseLogging.js.map +1 -1
  12. package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js +4 -6
  13. package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -1
  14. package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js +9 -14
  15. package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
  16. package/lib/commonjs/analytics/sentry/SentryModels.js.map +1 -1
  17. package/lib/commonjs/analytics/sentry/SentrySdkConstants.js.map +1 -1
  18. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +5 -4
  19. package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
  20. package/lib/commonjs/components/executiontasks/CompletedWFSchema.js.map +1 -1
  21. package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  22. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +9 -7
  23. package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
  24. package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
  25. package/lib/commonjs/components/executiontasks/captureInput/CaptureInputSchema.js.map +1 -1
  26. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +1 -1
  27. package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  28. package/lib/commonjs/components/executiontasks/captureInput/utils.js.map +1 -1
  29. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +20 -14
  30. package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
  31. package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  32. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +21 -15
  33. package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  34. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +1 -1
  35. package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
  36. package/lib/commonjs/components/executiontasks/display/DisplaySchema.js.map +1 -1
  37. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +2 -1
  38. package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
  39. package/lib/commonjs/components/executiontasks/doodle/SignatureSchema.js.map +1 -1
  40. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +1 -1
  41. package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  42. package/lib/commonjs/components/executiontasks/dropCash/DropCashSchema.js.map +1 -1
  43. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +1 -1
  44. package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  45. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +1 -1
  46. package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
  47. package/lib/commonjs/components/executiontasks/forms/FormSchema.js.map +1 -1
  48. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +13 -12
  49. package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  50. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +1 -1
  51. package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
  52. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +11 -10
  53. package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  54. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +1 -1
  55. package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  56. package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  57. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +1 -1
  58. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  59. package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestETSchema.js.map +1 -1
  60. package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  61. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +1 -1
  62. package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  63. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +13 -11
  64. package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  65. package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -1
  66. package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  67. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +1 -1
  68. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  69. package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -1
  70. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +5 -4
  71. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  72. package/lib/commonjs/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -1
  73. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +1 -1
  74. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  75. package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -1
  76. package/lib/commonjs/components/executiontasks/pickup/PickpSchema.js.map +1 -1
  77. package/lib/commonjs/components/executiontasks/pickup/PickupET.js +20 -14
  78. package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
  79. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +21 -15
  80. package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  81. package/lib/commonjs/components/executiontasks/scan/ScanET.js +4 -2
  82. package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
  83. package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -1
  84. package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -1
  85. package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
  86. package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -1
  87. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +5 -4
  88. package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  89. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +1 -0
  90. package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  91. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +3 -1
  92. package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  93. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +5 -2
  94. package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  95. package/lib/commonjs/components/executiontasks/scan/utils.js +1 -1
  96. package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
  97. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +1 -1
  98. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  99. package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
  100. package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -1
  101. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +1 -1
  102. package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  103. package/lib/commonjs/components/executiontasks/validateOTP/utils.js +1 -1
  104. package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
  105. package/lib/commonjs/components/executiontasks/verifyInput/VerifyInputSchema.js.map +1 -1
  106. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +1 -1
  107. package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  108. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocSchema.js.map +1 -1
  109. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
  110. package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  111. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +1 -1
  112. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  113. package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
  114. package/lib/commonjs/components/utils/index.js.map +1 -1
  115. package/lib/commonjs/components/widgets/AlertDisplay.js +1 -1
  116. package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
  117. package/lib/commonjs/components/widgets/CancelOrderDialog.js +1 -1
  118. package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
  119. package/lib/commonjs/components/widgets/Card.js +1 -0
  120. package/lib/commonjs/components/widgets/Card.js.map +1 -1
  121. package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -1
  122. package/lib/commonjs/components/widgets/IconButton.js +22 -19
  123. package/lib/commonjs/components/widgets/IconButton.js.map +1 -1
  124. package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -1
  125. package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
  126. package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
  127. package/lib/commonjs/components/widgets/SnackBarCustom.js +18 -15
  128. package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
  129. package/lib/commonjs/components/widgets/SplitTextInput.js +10 -9
  130. package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
  131. package/lib/commonjs/components/widgets/TabsComponent.js +1 -1
  132. package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
  133. package/lib/commonjs/components/widgets/Toaster.js.map +1 -1
  134. package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -1
  135. package/lib/commonjs/constants/apiConstants.js.map +1 -1
  136. package/lib/commonjs/constants/constants.js.map +1 -1
  137. package/lib/commonjs/constants/statuscode.js.map +1 -1
  138. package/lib/commonjs/errors/BaseError.js +2 -2
  139. package/lib/commonjs/errors/BaseError.js.map +1 -1
  140. package/lib/commonjs/errors/ErrorCodes.js.map +1 -1
  141. package/lib/commonjs/events/EventDispatcher.js.map +1 -1
  142. package/lib/commonjs/events/EventListener.js.map +1 -1
  143. package/lib/commonjs/events/constants.js.map +1 -1
  144. package/lib/commonjs/events/index.js.map +1 -1
  145. package/lib/commonjs/events/interface.js.map +1 -1
  146. package/lib/commonjs/icons/ScanIcon.js.map +1 -1
  147. package/lib/commonjs/icons/file.js.map +1 -1
  148. package/lib/commonjs/icons/interface.js.map +1 -1
  149. package/lib/commonjs/index.js +1 -1
  150. package/lib/commonjs/index.js.map +1 -1
  151. package/lib/commonjs/locale/Str.js.map +1 -1
  152. package/lib/commonjs/locale/i18n.js.map +1 -1
  153. package/lib/commonjs/locale/util.js.map +1 -1
  154. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +5 -5
  155. package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
  156. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +4 -4
  157. package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  158. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +5 -5
  159. package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  160. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +5 -5
  161. package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  162. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +5 -5
  163. package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  164. package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -1
  165. package/lib/commonjs/manager/location/LocationManager.js +5 -5
  166. package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
  167. package/lib/commonjs/manager/sdk/DispatchSDKManager.js +7 -6
  168. package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
  169. package/lib/commonjs/manager/sdk/DispatchSdkCache.js +4 -4
  170. package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
  171. package/lib/commonjs/manager/sdk/callbacksHandler.js +2 -2
  172. package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
  173. package/lib/commonjs/manager/syncmanager/AppSyncManager.js +12 -10
  174. package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
  175. package/lib/commonjs/manager/syncmanager/DBConfig.js +3 -1
  176. package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
  177. package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -1
  178. package/lib/commonjs/manager/syncmanager/constants.js +4 -1
  179. package/lib/commonjs/manager/syncmanager/constants.js.map +1 -1
  180. package/lib/commonjs/manager/syncmanager/database.js +1 -1
  181. package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
  182. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +1 -1
  183. package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  184. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +24 -9
  185. package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
  186. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +191 -35
  187. package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  188. package/lib/commonjs/manager/syncmanager/document/models.js.map +1 -1
  189. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +47 -18
  190. package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  191. package/lib/commonjs/manager/syncmanager/events/EventsGraphQLClient.js.map +1 -1
  192. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +122 -64
  193. package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  194. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +23 -2
  195. package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  196. package/lib/commonjs/models/DispatchModels.js.map +1 -1
  197. package/lib/commonjs/models/ReasonCodes.js.map +1 -1
  198. package/lib/commonjs/models/auth.js.map +1 -1
  199. package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
  200. package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
  201. package/lib/commonjs/models/execution.js.map +1 -1
  202. package/lib/commonjs/models/fcm.js.map +1 -1
  203. package/lib/commonjs/models/sdk.js.map +1 -1
  204. package/lib/commonjs/native/signature/SignatureCapture.js +2 -2
  205. package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
  206. package/lib/commonjs/network/GraphQLClient.js +17 -13
  207. package/lib/commonjs/network/GraphQLClient.js.map +1 -1
  208. package/lib/commonjs/network/NetworkClient.js.map +1 -1
  209. package/lib/commonjs/network/NetworkUtils.js +4 -1
  210. package/lib/commonjs/network/NetworkUtils.js.map +1 -1
  211. package/lib/commonjs/network/Queries.js.map +1 -1
  212. package/lib/commonjs/network/client.js +3 -2
  213. package/lib/commonjs/network/client.js.map +1 -1
  214. package/lib/commonjs/res/strings.js.map +1 -1
  215. package/lib/commonjs/resources/Login.js +2 -2
  216. package/lib/commonjs/resources/Login.js.map +1 -1
  217. package/lib/commonjs/resources/network.js +2 -2
  218. package/lib/commonjs/resources/network.js.map +1 -1
  219. package/lib/commonjs/styles/SdkColors.js.map +1 -1
  220. package/lib/commonjs/styles/executionTasks/CommonStyles.js +1 -1
  221. package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
  222. package/lib/commonjs/ui/screens/CancellationScreen.js +7 -6
  223. package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
  224. package/lib/commonjs/ui/screens/CaptureInputScreen.js +7 -6
  225. package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
  226. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +7 -6
  227. package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  228. package/lib/commonjs/ui/screens/DeliverScreen.js +7 -6
  229. package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
  230. package/lib/commonjs/ui/screens/DisplayScreen.js +7 -6
  231. package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
  232. package/lib/commonjs/ui/screens/DoodleScreen.js +7 -6
  233. package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
  234. package/lib/commonjs/ui/screens/DropCashScreen.js +7 -7
  235. package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
  236. package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
  237. package/lib/commonjs/ui/screens/FormsScreen.js +7 -6
  238. package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
  239. package/lib/commonjs/ui/screens/GeofenceScreen.js +7 -6
  240. package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
  241. package/lib/commonjs/ui/screens/HttpRequestScreen.js +6 -5
  242. package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
  243. package/lib/commonjs/ui/screens/ImageCaptureScreen.js +7 -6
  244. package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
  245. package/lib/commonjs/ui/screens/PaymentScreen.js +7 -6
  246. package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
  247. package/lib/commonjs/ui/screens/PickupScreen.js +7 -6
  248. package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
  249. package/lib/commonjs/ui/screens/ScanScreen.js +8 -6
  250. package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
  251. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +7 -6
  252. package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
  253. package/lib/commonjs/ui/screens/ValidateOTPScreen.js +7 -6
  254. package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
  255. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +1 -1
  256. package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  257. package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
  258. package/lib/commonjs/utils/ApiUtils.js.map +1 -1
  259. package/lib/commonjs/utils/ExecTaskUtils.js +2 -1
  260. package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
  261. package/lib/commonjs/utils/Logger.js +5 -4
  262. package/lib/commonjs/utils/Logger.js.map +1 -1
  263. package/lib/commonjs/utils/NetworkUtil.js +2 -2
  264. package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
  265. package/lib/commonjs/utils/SdkUtils.js +1 -1
  266. package/lib/commonjs/utils/SdkUtils.js.map +1 -1
  267. package/lib/commonjs/utils/SyncManagerUtils.js +30 -3
  268. package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
  269. package/lib/commonjs/utils/fcm/FCM.js +1 -1
  270. package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
  271. package/lib/commonjs/utils/fcm/FcmUtils.js +1 -1
  272. package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
  273. package/lib/commonjs/utils/helper.js +4 -4
  274. package/lib/commonjs/utils/helper.js.map +1 -1
  275. package/lib/commonjs/utils/hooks/useModal.js +1 -2
  276. package/lib/commonjs/utils/hooks/useModal.js.map +1 -1
  277. package/lib/commonjs/utils/hooks/useTimer.js.map +1 -1
  278. package/lib/commonjs/utils/loginHelper.js.map +1 -1
  279. package/lib/commonjs/utils/storage.js +30 -11
  280. package/lib/commonjs/utils/storage.js.map +1 -1
  281. package/lib/commonjs/utils/utils.js +2 -9
  282. package/lib/commonjs/utils/utils.js.map +1 -1
  283. package/lib/module/@types/assets/index.d.js.map +1 -1
  284. package/lib/module/analytics/firebase/FirebaseLogging.js.map +1 -1
  285. package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js +4 -6
  286. package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -1
  287. package/lib/module/analytics/sentry/SentryAnalyticsUtils.js +8 -13
  288. package/lib/module/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
  289. package/lib/module/analytics/sentry/SentryModels.js.map +1 -1
  290. package/lib/module/analytics/sentry/SentrySdkConstants.js.map +1 -1
  291. package/lib/module/components/dispatch/DispatchExecNavigator.js +4 -3
  292. package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
  293. package/lib/module/components/executiontasks/CompletedWFSchema.js.map +1 -1
  294. package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
  295. package/lib/module/components/executiontasks/cancellation/CancelET.js +8 -6
  296. package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
  297. package/lib/module/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
  298. package/lib/module/components/executiontasks/captureInput/CaptureInputSchema.js.map +1 -1
  299. package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
  300. package/lib/module/components/executiontasks/captureInput/utils.js.map +1 -1
  301. package/lib/module/components/executiontasks/deliver/DeliverET.js +19 -13
  302. package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
  303. package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
  304. package/lib/module/components/executiontasks/deliver/SLDeliverET.js +20 -14
  305. package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
  306. package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
  307. package/lib/module/components/executiontasks/display/DisplaySchema.js.map +1 -1
  308. package/lib/module/components/executiontasks/doodle/SignatureET.js +1 -0
  309. package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
  310. package/lib/module/components/executiontasks/doodle/SignatureSchema.js.map +1 -1
  311. package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
  312. package/lib/module/components/executiontasks/dropCash/DropCashSchema.js.map +1 -1
  313. package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
  314. package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
  315. package/lib/module/components/executiontasks/forms/FormSchema.js.map +1 -1
  316. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +12 -11
  317. package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
  318. package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
  319. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +10 -9
  320. package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
  321. package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
  322. package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
  323. package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
  324. package/lib/module/components/executiontasks/httpRequest/HttpRequestETSchema.js.map +1 -1
  325. package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
  326. package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
  327. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +12 -10
  328. package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
  329. package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -1
  330. package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
  331. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
  332. package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -1
  333. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +4 -3
  334. package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
  335. package/lib/module/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -1
  336. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
  337. package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -1
  338. package/lib/module/components/executiontasks/pickup/PickpSchema.js.map +1 -1
  339. package/lib/module/components/executiontasks/pickup/PickupET.js +19 -13
  340. package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
  341. package/lib/module/components/executiontasks/pickup/SLPickupET.js +20 -14
  342. package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
  343. package/lib/module/components/executiontasks/scan/ScanET.js +3 -1
  344. package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
  345. package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -1
  346. package/lib/module/components/executiontasks/scan/constants.js.map +1 -1
  347. package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
  348. package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -1
  349. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +4 -3
  350. package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
  351. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +1 -0
  352. package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
  353. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +2 -0
  354. package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
  355. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +4 -1
  356. package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
  357. package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
  358. package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
  359. package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
  360. package/lib/module/components/executiontasks/validateOTP/constants.js.map +1 -1
  361. package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
  362. package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -1
  363. package/lib/module/components/executiontasks/verifyInput/VerifyInputSchema.js.map +1 -1
  364. package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
  365. package/lib/module/components/executiontasks/verifyLocation/VerifyLocSchema.js.map +1 -1
  366. package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
  367. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
  368. package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
  369. package/lib/module/components/utils/index.js.map +1 -1
  370. package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
  371. package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
  372. package/lib/module/components/widgets/Card.js +1 -0
  373. package/lib/module/components/widgets/Card.js.map +1 -1
  374. package/lib/module/components/widgets/GoBackModal.js.map +1 -1
  375. package/lib/module/components/widgets/IconButton.js +22 -19
  376. package/lib/module/components/widgets/IconButton.js.map +1 -1
  377. package/lib/module/components/widgets/ModalWidget.js.map +1 -1
  378. package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
  379. package/lib/module/components/widgets/SearchBar.js.map +1 -1
  380. package/lib/module/components/widgets/SnackBarCustom.js +18 -15
  381. package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
  382. package/lib/module/components/widgets/SplitTextInput.js +9 -8
  383. package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
  384. package/lib/module/components/widgets/TabsComponent.js.map +1 -1
  385. package/lib/module/components/widgets/Toaster.js.map +1 -1
  386. package/lib/module/config/DispatchSDKConfig.js.map +1 -1
  387. package/lib/module/constants/apiConstants.js.map +1 -1
  388. package/lib/module/constants/constants.js.map +1 -1
  389. package/lib/module/constants/statuscode.js.map +1 -1
  390. package/lib/module/errors/BaseError.js +2 -2
  391. package/lib/module/errors/BaseError.js.map +1 -1
  392. package/lib/module/errors/ErrorCodes.js.map +1 -1
  393. package/lib/module/events/EventDispatcher.js.map +1 -1
  394. package/lib/module/events/EventListener.js.map +1 -1
  395. package/lib/module/events/constants.js.map +1 -1
  396. package/lib/module/events/index.js.map +1 -1
  397. package/lib/module/events/interface.js.map +1 -1
  398. package/lib/module/icons/ScanIcon.js.map +1 -1
  399. package/lib/module/icons/file.js.map +1 -1
  400. package/lib/module/icons/interface.js.map +1 -1
  401. package/lib/module/index.js.map +1 -1
  402. package/lib/module/locale/Str.js.map +1 -1
  403. package/lib/module/locale/i18n.js.map +1 -1
  404. package/lib/module/locale/util.js.map +1 -1
  405. package/lib/module/manager/dispatch/DispatchStateContainer.js +4 -4
  406. package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
  407. package/lib/module/manager/dispatchCodes/EventCodeContainer.js +4 -4
  408. package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
  409. package/lib/module/manager/dispatchCodes/EventCodeRepo.js +4 -4
  410. package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
  411. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +4 -4
  412. package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
  413. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +4 -4
  414. package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
  415. package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -1
  416. package/lib/module/manager/location/LocationManager.js +4 -4
  417. package/lib/module/manager/location/LocationManager.js.map +1 -1
  418. package/lib/module/manager/sdk/DispatchSDKManager.js +6 -5
  419. package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
  420. package/lib/module/manager/sdk/DispatchSdkCache.js +4 -4
  421. package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
  422. package/lib/module/manager/sdk/callbacksHandler.js +2 -2
  423. package/lib/module/manager/sdk/callbacksHandler.js.map +1 -1
  424. package/lib/module/manager/syncmanager/AppSyncManager.js +11 -9
  425. package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
  426. package/lib/module/manager/syncmanager/DBConfig.js +3 -2
  427. package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
  428. package/lib/module/manager/syncmanager/NativeSyncManager.js.map +1 -1
  429. package/lib/module/manager/syncmanager/constants.js +3 -0
  430. package/lib/module/manager/syncmanager/constants.js.map +1 -1
  431. package/lib/module/manager/syncmanager/database.js.map +1 -1
  432. package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
  433. package/lib/module/manager/syncmanager/document/DocumentManager.js +23 -8
  434. package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
  435. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +190 -34
  436. package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
  437. package/lib/module/manager/syncmanager/document/models.js.map +1 -1
  438. package/lib/module/manager/syncmanager/events/ETEventsManager.js +47 -18
  439. package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
  440. package/lib/module/manager/syncmanager/events/EventsGraphQLClient.js.map +1 -1
  441. package/lib/module/manager/syncmanager/events/EventsSyncManager.js +124 -65
  442. package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
  443. package/lib/module/manager/syncmanager/events/SyncHttpClient.js +21 -2
  444. package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
  445. package/lib/module/models/DispatchModels.js.map +1 -1
  446. package/lib/module/models/ReasonCodes.js.map +1 -1
  447. package/lib/module/models/auth.js.map +1 -1
  448. package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
  449. package/lib/module/models/execTasks/ETConfig.js.map +1 -1
  450. package/lib/module/models/execution.js.map +1 -1
  451. package/lib/module/models/fcm.js.map +1 -1
  452. package/lib/module/models/sdk.js.map +1 -1
  453. package/lib/module/native/signature/SignatureCapture.js +2 -2
  454. package/lib/module/native/signature/SignatureCapture.js.map +1 -1
  455. package/lib/module/network/GraphQLClient.js +17 -13
  456. package/lib/module/network/GraphQLClient.js.map +1 -1
  457. package/lib/module/network/NetworkClient.js.map +1 -1
  458. package/lib/module/network/NetworkUtils.js +4 -1
  459. package/lib/module/network/NetworkUtils.js.map +1 -1
  460. package/lib/module/network/Queries.js.map +1 -1
  461. package/lib/module/network/client.js +3 -2
  462. package/lib/module/network/client.js.map +1 -1
  463. package/lib/module/res/strings.js.map +1 -1
  464. package/lib/module/resources/Login.js +2 -2
  465. package/lib/module/resources/Login.js.map +1 -1
  466. package/lib/module/resources/network.js +2 -2
  467. package/lib/module/resources/network.js.map +1 -1
  468. package/lib/module/styles/SdkColors.js.map +1 -1
  469. package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
  470. package/lib/module/ui/screens/CancellationScreen.js +6 -5
  471. package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
  472. package/lib/module/ui/screens/CaptureInputScreen.js +6 -5
  473. package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
  474. package/lib/module/ui/screens/CompleteObjectiveScreen.js +6 -5
  475. package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
  476. package/lib/module/ui/screens/DeliverScreen.js +6 -5
  477. package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
  478. package/lib/module/ui/screens/DisplayScreen.js +6 -5
  479. package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
  480. package/lib/module/ui/screens/DoodleScreen.js +6 -5
  481. package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
  482. package/lib/module/ui/screens/DropCashScreen.js +6 -5
  483. package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
  484. package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
  485. package/lib/module/ui/screens/FormsScreen.js +6 -5
  486. package/lib/module/ui/screens/FormsScreen.js.map +1 -1
  487. package/lib/module/ui/screens/GeofenceScreen.js +6 -5
  488. package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
  489. package/lib/module/ui/screens/HttpRequestScreen.js +6 -5
  490. package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
  491. package/lib/module/ui/screens/ImageCaptureScreen.js +6 -5
  492. package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
  493. package/lib/module/ui/screens/PaymentScreen.js +6 -5
  494. package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
  495. package/lib/module/ui/screens/PickupScreen.js +6 -5
  496. package/lib/module/ui/screens/PickupScreen.js.map +1 -1
  497. package/lib/module/ui/screens/ScanScreen.js +7 -5
  498. package/lib/module/ui/screens/ScanScreen.js.map +1 -1
  499. package/lib/module/ui/screens/StartWorkFlowScreen.js +6 -5
  500. package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
  501. package/lib/module/ui/screens/ValidateOTPScreen.js +6 -5
  502. package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
  503. package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
  504. package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
  505. package/lib/module/utils/ApiUtils.js.map +1 -1
  506. package/lib/module/utils/ExecTaskUtils.js +2 -1
  507. package/lib/module/utils/ExecTaskUtils.js.map +1 -1
  508. package/lib/module/utils/Logger.js +5 -4
  509. package/lib/module/utils/Logger.js.map +1 -1
  510. package/lib/module/utils/NetworkUtil.js +2 -2
  511. package/lib/module/utils/NetworkUtil.js.map +1 -1
  512. package/lib/module/utils/SdkUtils.js.map +1 -1
  513. package/lib/module/utils/SyncManagerUtils.js +30 -3
  514. package/lib/module/utils/SyncManagerUtils.js.map +1 -1
  515. package/lib/module/utils/fcm/FCM.js.map +1 -1
  516. package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
  517. package/lib/module/utils/helper.js +4 -4
  518. package/lib/module/utils/helper.js.map +1 -1
  519. package/lib/module/utils/hooks/useModal.js +0 -1
  520. package/lib/module/utils/hooks/useModal.js.map +1 -1
  521. package/lib/module/utils/hooks/useTimer.js.map +1 -1
  522. package/lib/module/utils/loginHelper.js.map +1 -1
  523. package/lib/module/utils/storage.js +29 -10
  524. package/lib/module/utils/storage.js.map +1 -1
  525. package/lib/module/utils/utils.js +2 -9
  526. package/lib/module/utils/utils.js.map +1 -1
  527. package/lib/typescript/manager/syncmanager/DBConfig.d.ts +4 -0
  528. package/lib/typescript/manager/syncmanager/constants.d.ts +3 -0
  529. package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +1 -0
  530. package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +2 -1
  531. package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +2 -0
  532. package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +1 -1
  533. package/lib/typescript/utils/storage.d.ts +3 -3
  534. package/package.json +5 -5
  535. package/src/analytics/sentry/SentryAnalyticsSingleton.ts +7 -9
  536. package/src/analytics/sentry/SentryAnalyticsUtils.ts +24 -36
  537. package/src/components/executiontasks/imageCapture/ImageCapture.tsx +1 -3
  538. package/src/manager/sdk/DispatchSDKManager.ts +2 -1
  539. package/src/manager/syncmanager/AppSyncManager.ts +15 -13
  540. package/src/manager/syncmanager/DBConfig.ts +4 -0
  541. package/src/manager/syncmanager/constants.ts +3 -0
  542. package/src/manager/syncmanager/document/DocumentManager.ts +33 -7
  543. package/src/manager/syncmanager/document/DocumentSyncManager.ts +238 -29
  544. package/src/manager/syncmanager/events/ETEventsManager.ts +50 -16
  545. package/src/manager/syncmanager/events/EventsSyncManager.ts +157 -74
  546. package/src/manager/syncmanager/events/SyncHttpClient.ts +30 -1
  547. package/src/ui/screens/DeliverScreen.tsx +6 -5
  548. package/src/ui/screens/FormsScreen.tsx +8 -6
  549. package/src/utils/SyncManagerUtils.ts +41 -6
  550. package/src/utils/storage.ts +21 -8
  551. package/src/utils/utils.ts +0 -8
@@ -1 +1 @@
1
- {"version":3,"names":["Location","BaseError","ErrorCodes","verifyLocation","params","status","getForegroundPermissionsAsync","response","geofenceLogic","requestForegroundPermissionsAsync","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,OAAO,KAAKA,QAAQ,MAAM,eAAe;AACzC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,OAAOC,UAAU,MAAM,4BAA4B;AAEnD,OAAO,eAAeC,cAAcA,CAClCC,MAA2B,EACT;EAClB,MAAM;IAAEC;EAAO,CAAC,GAAG,MAAML,QAAQ,CAACM,6BAA6B,CAAC,CAAC;EACjE,IAAIC,QAAiB;EACrB,IAAIF,MAAM,KAAK,SAAS,EAAE;IACxBE,QAAQ,GAAG,MAAMC,aAAa,CAACJ,MAAM,CAAC;EACxC,CAAC,MAAM;IACL,MAAM;MAAEC;IAAO,CAAC,GAAG,MAAML,QAAQ,CAACS,iCAAiC,CAAC,CAAC;IACrE,IAAIJ,MAAM,KAAK,SAAS,EAAE;MACxBE,QAAQ,GAAG,MAAMC,aAAa,CAACJ,MAAM,CAAC;IACxC,CAAC,MAAM;MACL,MAAM,IAAIH,SAAS,CACjBC,UAAU,CAACQ,0BAA0B,EACrC,4BACF,CAAC;IACH;EACF;EACA,OAAOH,QAAQ;AACjB;AAEA,eAAeC,aAAaA,CAACJ,MAA2B,EAAoB;EAC1E,MAAMO,OAAO,GAAG;IACdC,QAAQ,EAAEZ,QAAQ,CAACa,QAAQ,CAACC;EAC9B,CAAC;EACD,MAAMC,QAAQ,GAAG,MAAMf,QAAQ,CAACgB,uBAAuB,CAACL,OAAO,CAAC;EAChE,IACEP,MAAM,CAACa,WAAW,CAACL,QAAQ,IAC3BG,QAAQ,CAACG,MAAM,CAACN,QAAQ,IACxBR,MAAM,CAACa,WAAW,CAACL,QAAQ,GAAGG,QAAQ,CAACG,MAAM,CAACN,QAAQ,EAEtD,OAAO,KAAK,CAAC,KACV;IACH,MAAMO,QAAgB,GAAG,CAACf,MAAM,CAACa,WAAW,CAACE,QAAQ;IACrD,MAAMC,SAAiB,GAAG,CAAChB,MAAM,CAACa,WAAW,CAACG,SAAS;IACvD,MAAMC,OAAO,GAAIC,IAAI,CAACC,EAAE,GAAGJ,QAAQ,GAAI,GAAG;IAC1C,MAAMK,OAAO,GAAIF,IAAI,CAACC,EAAE,GAAGR,QAAQ,CAACG,MAAM,CAACC,QAAQ,GAAI,GAAG;IAC1D,MAAMM,KAAK,GAAGL,SAAS,GAAGL,QAAQ,CAACG,MAAM,CAACE,SAAS;IACnD,MAAMM,QAAQ,GAAIJ,IAAI,CAACC,EAAE,GAAGE,KAAK,GAAI,GAAG;IACxC,IAAIE,IAAI,GACNL,IAAI,CAACM,GAAG,CAACP,OAAO,CAAC,GAAGC,IAAI,CAACM,GAAG,CAACJ,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,OAAO1B,MAAM,CAACa,WAAW,CAACe,UAAU,CAACC,MAAM,IAAIN,IAAI;EACrD;AACF","ignoreList":[]}
1
+ {"version":3,"names":["Location","BaseError","ErrorCodes","verifyLocation","params","status","getForegroundPermissionsAsync","response","geofenceLogic","requestForegroundPermissionsAsync","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,OAAO,KAAKA,QAAQ,MAAM,eAAe;AACzC,SAASC,SAAS,QAAQ,2BAA2B;AACrD,OAAOC,UAAU,MAAM,4BAA4B;AAEnD,OAAO,eAAeC,cAAcA,CAClCC,MAA2B,EACT;EAClB,MAAM;IAAEC;EAAO,CAAC,GAAG,MAAML,QAAQ,CAACM,6BAA6B,CAAC,CAAC;EACjE,IAA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K,GAAI,GAAG;IACxC,IAAIE,IAAI,GACNL,IAAI,CAACM,GAAG,CAACP,OAAO,CAAC,GAAGC,IAAI,CAACM,GAAG,CAACJ,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,OAAO1B,MAAM,CAACa,WAAW,CAACe,UAAU,CAACC,MAAM,IAAIN,IAAI;EACrD;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["VerifyLocSchema.ts"],"sourcesContent":["/**\n * Longitude\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\n\nexport type Longitude = string;\n/**\n * Latitude\n */\nexport type Latitude = string;\n/**\n * Accuracy in meters of the geolocation\n */\nexport type Accuracy = number | null;\n/**\n * Boolean key to enable/disable geofencing feature\n */\nexport type GeofencingEnabled = boolean;\n/**\n * Radius in meters around the verifyLocation for geo-fencing\n */\nexport type Radius = number;\n/**\n * Boolean key to enable manual override the geo-fencing feature\n */\nexport type Override = boolean;\n/**\n * Any manual instruction to display for the Operator to work on\n */\nexport type Instruction = string;\n\nexport type VerifyLocationInput = BaseETRequest & {\n geolocation: GeoLocation;\n address?: string;\n onSubmitET: (value: VerifyLocationOutput) => void;\n};\n/**\n * Details of geo-verifyLocation\n */\nexport interface GeoLocation {\n longitude: Longitude;\n latitude: Latitude;\n accuracy?: Accuracy;\n geofencing: Geofencing;\n}\n/**\n * Details of geo-fencing around the verifyLocation\n */\nexport interface Geofencing {\n radius: Radius;\n}\n\nexport type VerifyLocationOutput = BaseETResponse;\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["VerifyLocSchema.ts"],"sourcesContent":["/**\n * Longitude\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\n\nexport type Longitude = string;\n/**\n * Latitude\n */\nexport type Latitude = string;\n/**\n * Accuracy in meters of the geolocation\n */\nexport type Accuracy = number | null;\n/**\n * Boolean key to enable/disable geofencing feature\n */\nexport type GeofencingEnabled = boolean;\n/**\n * Radius in meters around the verifyLocation for geo-fencing\n */\nexport type Radius = number;\n/**\n * Boolean key to enable manual override the geo-fencing feature\n */\nexport type Override = boolean;\n/**\n * Any manual instruction to display for the Operator to work on\n */\nexport type Instruction = string;\n\nexport type VerifyLocationInput = BaseETRequest & {\n geolocation: GeoLocation;\n address?: string;\n onSubmitET: (value: VerifyLocationOutput) => void;\n};\n/**\n * Details of geo-verifyLocation\n */\nexport interface GeoLocation {\n longitude: Longitude;\n latitude: Latitude;\n accuracy?: Accuracy;\n geofencing: Geofencing;\n}\n/**\n * Details of geo-fencing around the verifyLocation\n */\nexport interface Geofencing {\n radius: Radius;\n}\n\nexport type VerifyLocationOutput = BaseETResponse;\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"names":["View","React","useCallback","useEffect","useState","verifyLocation","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","CommonStyles","ProgressDialog","BaseError","showAlert","SdkUtils","VerifyLocationET","props","geofencing","setGeofencing","submitLocationResponse","response","_props$applicableReas","_props$applicableReas2","_appRC","applicableReasons","success","failure","onSubmitET","VERIFY_LOCATION","mergedObjectiveId","error","openAppSettings","createElement","style","mainContainer","visible","label","message"],"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,SAASA,IAAI,QAAQ,cAAc;AACnC,OAAOC,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAE/D,SAASC,cAAc,QAAQ,iBAAiB;AAChD,SAASC,iBAAiB,QAAQ,8BAA8B;AAChE,SAASC,gBAAgB,QAAQ,mDAAmD;AACpF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EACnB,gEAAgE,EAChE,KAAK,EACL,eAAe,EACf,MAAM;YACJC,QAAQ,CAACiB,eAAe,CAAC,CAAC;UAC5B,CACF,CAAC;QACH,CAAC,MAAM;UACL,MAAMZ,sBAAsB,CAAC,KAAK,CAAC;QACrC;MACF;IACF,CAAC,EAAE,CAAC;EACN,CAAC,EAAE,EAAE,CAAC;EACN,oBACElB,KAAA,CAAA+B,aAAA,CAAChC,IAAI;IAACiC,KAAK,EAAEvB,YAAY,CAACwB;EAAc,gBACtCjC,KAAA,CAAA+B,aAAA,CAACrB,cAAc;IACbwB,OAAO,EAAElB,UAAW;IACpBmB,KAAK,EAAEpB,KAAK,CAACqB,OAAO,IAAI;EAAwB,CACjD,CACG,CAAC;AAEX,CAAC;AACD,eAAetB,gBAAgB","ignoreList":[]}
1
+ {"version":3,"names":["View","React","useCallback","useEffect","useState","verifyLocation","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","CommonStyles","ProgressDialog","BaseError","showAlert","SdkUtils","VerifyLocationET","props","geofencing","setGeofencing","submitLocationResponse","response","_props$applicableReas","_props$applicableReas2","_appRC","applicableReasons","success","failure","onSubmitET","VERIFY_LOCATION","mergedObjectiveId","error","openAppSettings","createElement","style","mainContainer","visible","label","message"],"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,SAASA,IAAI,QAAQ,cAAc;AACnC,OAAOC,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAE/D,SAASC,cAAc,QAAQ,iBAAiB;AAChD,SAASC,iBAAiB,QAAQ,8BAA8B;AAChE,SAASC,gBAAgB,QAAQ,mDAAmD;AACpF,SACEC,UAAU,EACVC,eAAe,QACV,oCAAoC;AAC3C,SAASC,YAAY,QAAQ,6CAA6C;AAC1E,OAAOC,cAAc,MAAM,8BAA8B;AACzD,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,SAAS,QAAQ,4BAA4B;AACtD,OAAOC,QAAQ,MAAM,yBAAyB;AAE9C,MAAMC,gBAAgB,GAAIC,KAA0B,IAAK;EACvD,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAGd,QAAQ,CAAC,IAAI,CAAC;EAClD,MAA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,CAACrB,cAAc;IACbwB,OAAO,EAAElB,UAAW;IACpBmB,KAAK,EAAEpB,KAAK,CAACqB,OAAO,IAAI;EAAwB,CACjD,CACG,CAAC;AAEX,CAAC;AACD,eAAetB,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"names":["BackHandler","Pressable","StyleSheet","Text","View","React","useEffect","useRef","OTPTextView","Colors","showToast","getBaseETResponse","EntityCode","ExecutionTaskID","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","VerifyOtpET","props","otpInput","backButtonHandler","addEventListener","removeEventListener","createElement","style","styles","otpInputTextView","veriOtpText","textInputStyle","otpInputStyle","ref","inputCount","tintColor","blue300","handleTextChange","value","length","onSubmit","VERIFY_INPUT","mergedObjectiveId","otpNotReceivedView","onPress","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","VERIFY_OTP_ET_SCREEN","sendAgainText","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,SAASA,WAAW,EAAEC,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC7E,OAAOC,KAAK,IAAIC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAChD;AACA,OAAOC,WAAW,MAAM,4BAA4B;AACpD,SAASC,MAAM,QAAQ,oBAAoB;AA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E,KAAK;IACpBV,SAAS,EAAE;EACb,CAAC;EACDH,aAAa,EAAE;IACbY,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["BackHandler","Pressable","StyleSheet","Text","View","React","useEffect","useRef","OTPTextView","Colors","showToast","getBaseETResponse","EntityCode","ExecutionTaskID","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","VerifyOtpET","props","otpInput","backButtonHandler","addEventListener","removeEventListener","createElement","style","styles","otpInputTextView","veriOtpText","textInputStyle","otpInputStyle","ref","inputCount","tintColor","blue300","handleTextChange","value","length","onSubmit","VERIFY_INPUT","mergedObjectiveId","otpNotReceivedView","onPress","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","VERIFY_OTP_ET_SCREEN","sendAgainText","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,SAASA,WAAW,EAAEC,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC7E,OAAOC,KAAK,IAAIC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAChD;AACA,OAAOC,WAAW,MAAM,4BAA4B;AACpD,SAASC,MAAM,QAAQ,oBAAoB;AAC3C,SAASC,SAAS,QAAQ,uBAAuB;AAEjD,SAASC,iBA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,EAAE;IACbY,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["VerifyOtpSchema.ts"],"sourcesContent":["/**\n * Otp entered by user\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\n\nexport type InputOtp = string;\n/**\n * Otp Value\n */\nexport type Otp = string;\n\nexport type OtpInputSchema = BaseETRequest & {\n inputCount: number;\n inputOtp: InputOtp;\n otp: Otp;\n onSubmit: (output: OtpOutputSchema) => void;\n};\n\nexport type OtpOutputSchema = BaseETResponse & {\n /**\n * Boolean to represent result of verification\n */\n success: boolean;\n};\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["VerifyOtpSchema.ts"],"sourcesContent":["/**\n * Otp entered by user\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\n\nexport type InputOtp = string;\n/**\n * Otp Value\n */\nexport type Otp = string;\n\nexport type OtpInputSchema = BaseETRequest & {\n inputCount: number;\n inputOtp: InputOtp;\n otp: Otp;\n onSubmit: (output: OtpOutputSchema) => void;\n};\n\nexport type OtpOutputSchema = BaseETResponse & {\n /**\n * Boolean to represent result of verification\n */\n success: boolean;\n};\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"names":["GO_BACK_EVENT_CODE","hasGoBackConnector","applicableReasons","_applicableReasons$go","goBack","hasOwnProperty"],"sources":["index.ts"],"sourcesContent":["import { GO_BACK_EVENT_CODE } from '../../constants/constants';\nimport {\n ApplicableReasons,\n NewApplicableReasons,\n} from '../../models/execTasks/ETBaseModels';\n\nexport function hasGoBackConnector(\n applicableReasons: ApplicableReasons | NewApplicableReasons | undefined\n): boolean {\n if (\n applicableReasons &&\n applicableReasons.goBack &&\n typeof applicableReasons.goBack === 'object' &&\n applicableReasons.goBack?.hasOwnProperty(GO_BACK_EVENT_CODE)\n ) {\n return true;\n } else return false;\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,2BAA2B;AAM9D,OAAO,SAASC,kBAAkBA,CAChCC,iBAAuE,EAC9D;EAAA,IAAAC,qBAAA;EACT,IACED,iBAAiB,IACjBA,iBAAiB,CAACE,MAAM,IACxB,OAAOF,iBAAiB,CAACE,MAAM,KAAK,QAAQ,KAAAD,qBAAA,GAC5CD,iBAAiB,CAACE,MAAM,cAAAD,qBAAA,eAAxBA,qBAAA,CAA0BE,cAAc,CAACL,kBAAkB,CAAC,EAC5D;IACA,OAAO,IAAI;EACb,CAAC,MAAM,OAAO,KAAK;AACrB","ignoreList":[]}
1
+ {"version":3,"names":["GO_BACK_EVENT_CODE","hasGoBackConnector","applicableReasons","_applicableReasons$go","goBack","hasOwnProperty"],"sources":["index.ts"],"sourcesContent":["import { GO_BACK_EVENT_CODE } from '../../constants/constants';\nimport {\n ApplicableReasons,\n NewApplicableReasons,\n} from '../../models/execTasks/ETBaseModels';\n\nexport function hasGoBackConnector(\n applicableReasons: ApplicableReasons | NewApplicableReasons | undefined\n): boolean {\n if (\n applicableReasons &&\n applicableReasons.goBack &&\n typeof applicableReasons.goBack === 'object' &&\n applicableReasons.goBack?.hasOwnProperty(GO_BACK_EVENT_CODE)\n ) {\n return true;\n } else return false;\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,2BAA2B;AAM9D,OAAO,SAASC,kBAAkBA,CAChCC,iBAAuE,EAC9D;EAAA,IAAAC,qBAAA;EACT,IACED,iBAAiB,IACjBA,iBAAiB,CAACE,MAAM,IACxB,OAAOF,iBAAiB,CAACE,MAAM,KAAK,QAAQ,KAAAD,qBAAA,GAC5CD,iBAAiB,CAACE,MAAM,cAAAD,qBAAA,eAAxBA,qBAAA,CAA0BE,cAAc,CAACL,kBAAkB,CAAC,EAC5D;IACA,OAAO,IAAI;EACb,CAAC,MAAM,OAAO,KAAK;AACrB"}
@@ -1 +1 @@
1
- {"version":3,"names":["DispatchUtilsInterface","Logger","LOG_TYPE","Alert","Platform","showAlert","title","message","cancelable","btnPositive","positiveCall","btnNegative","negCall","OS","showAndroidDialog","then","success","catch","error","getInstance","logEvent","SDK_ERROR","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,SAASA,sBAAsB,QAAQ,sBAAsB;AAC7D,OAAOC,MAAM,IAAIC,QAAQ,QAAQ,oBAAoB;AACrD,SAASC,KAAK,EAAEC,QAAQ,QAAQ,cAAc;AAE9C,OAAO,SAASC,SAASA,CACvBC,KAAa,EACbC,OAAe,EACfC,UAAmB,EACnBC,WAAmB,EACnBC,YAAwB,EACxBC,WAAoB,EACpBC,OAAoB,EACpB;EACA,IAAIR,QAAQ,CAACS,EAAE,KAAK,SAAS,EAAE;IAC7Bb,sBAAsB,CAACc,iBAAiB,CACtCR,KAAK,EACLC,OAAO,EACPE,WAAW,EACXE,WAAW,IAAI,IAAI,EACnBH,UACF,CAAC,CACEO,IAAI,CAAEC,OAAgB,IAAK;MAC1B,IAAIA,OAAO,EAAEN,YAAY,CAAC,CAAC,CAAC,KACvB,IAAIE,OAAO,EAAE;QAChBA,OAAO,CAAC,CAAC;MACX;IACF,CAAC,CAAC,CACDK,KAAK,CAAEC,KAA0B,IAAK;MACrCjB,MAAM,CAACkB,WAAW,CAAC,CAAC,CAACC,QAAQ,CAC3B,OAAO,EACPF,KAAK,CAACX,OAAO,EACbL,QAAQ,CAACmB,SACX,CAAC;IACH,CAAC,CAAC;EACN,CAAC,MAAM;IACLlB,KAAK,CAACmB,KAAK,CAAChB,KAAK,EAAEC,OAAO,CAAC;EAC7B;AACF","ignoreList":[]}
1
+ {"version":3,"names":["DispatchUtilsInterface","Logger","LOG_TYPE","Alert","Platform","showAlert","title","message","cancelable","btnPositive","positiveCall","btnNegative","negCall","OS","showAndroidDialog","then","success","catch","error","getInstance","logEvent","SDK_ERROR","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,SAASA,sBAAsB,QAAQ,sBAAsB;AAC7D,OAAOC,MAAM,IAAIC,QAAQ,QAAQ,oBAAoB;AACrD,SAASC,KAAK,EAAEC,QAAQ,QAAQ,cAAc;AAE9C,OAAO,SAASC,SAASA,CACvBC,KAAa,EACbC,OAAe,EACfC,UAAmB,EACnBC,WAAmB,EACnBC,YAAwB,EACxBC,WAAoB,EACpBC,OAAoB,EACpB;EACA,IAAIR,QAAQ,CAACS,EAAE,KAAK,SAAS,EAAE;IAC7Bb,sBAAsB,CAACc,iBAAiB,CACtCR,KAAK,EACLC,OAAO,EACPE,WAAW,EACXE,WAAW,IAAI,IAAI,EACnBH,UACF,CAAC,CACEO,IAAI,CAAEC,OAAgB,IAAK;MAC1B,IAAIA,OAAO,EAAEN,YAAY,CAAC,CAAC,CAAC,KACvB,IAAIE,OAAO,EAAE;QAChBA,OAAO,CAAC,CAAC;MACX;IACF,CAAC,CAAC,CACDK,KAAK,CAAEC,KAA0B,IAAK;MACrCjB,MAAM,CAACkB,WAAW,CAAC,CAAC,CAACC,QAAQ,CAC3B,OAAO,EACPF,KAAK,CAACX,OAAO,EACbL,QAAQ,CAACmB,SACX,CAAC;IACH,CAAC,CAAC;EACN,CAAC,MAAM;IACLlB,KAAK,CAACmB,KAAK,CAAChB,KAAK,EAAEC,OAAO,CAAC;EAC7B;AACF"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","Modal","Platform","StyleSheet","View","CommonStyles","Fonts","Button","Paragraph","Title","Icon","SdkColors","ColorTheme","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","CancelOrderDialog","props","createElement","animationType","transparent","visible","onRequestClose","style","styles","wrapper","content","showIcon","iconName","alignSelf","size","name","color","LIGHT","primaryButton","fontFamily","OS","IBMPlexSans_600SemiBold","marginTop","marginBottom","textAlign","label","message","fontSize","IBMPlexSans_400Regular","mode","uppercase","labelStyle","nextButtonLabel","nextButton","onPress","onSubmit","cta","positiveButtonTitle","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","CANCEL_ORDER_DIALOG_SCREEN","testID","cancelButtonLabel","cancelButton","negativeButtonTitle","create","backgroundColor","padding","borderRadius","width","flex","alignItems","justifyContent"],"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,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAChE,SAASC,YAAY,EAAEC,KAAK,QAAQ,0CAA0C;AAC9E,SAASC,MAAM,EAAEC,SAAS,EAAEC,KAAK,QAAQ,oBAAoB;AAC7D,OAAOC,IAAI,MAAM,kDAAkD;AACnE,OAAOC,SAAS,IAAIC,UAAU,QAAQ,wBAAwB;AAC9D,SAASC,sBAAsB,EAAEC,2BAA2B,EAAEC,kBAAkB,QAAQ,2CAA2C;AACnI,SAASC,uBAAuB,QAAQ,6CAA6C;AAErF,MAAMC,iBAAiB,GAAIC,KAAwB,IAAK;EACtD,oBACElB,KAAA,CAAAmB,aAAA,CAAClB,KAAK;IACJmB,aAAa,EAAC,MAAM;IACpBC,WAAW,EAAE,IAAK;IAClBC,OAAO,EAAEJ,KAAK,CAACI,OAAQ;IACvBC,cAAc,EAAEA,CAAA,KAAM,CAAC;EAAE,gBAEzBvB,KAAA,CAAAmB,aAAA,CAACf,IAAI;IAACoB,KAAK,EAAEC,MAAM,CAACC;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EAAE,EAAE;IACXC,YAAY,EAAE,CAAC;IACfC,KAAK,EAAE;EACT,CAAC;EACD3C,OAAO,EAAE;IACP4C,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBN,eAAe,EAAE;EACnB;AACF,CAAC,CAAC;AAEF,eAAejD,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["React","Modal","Platform","StyleSheet","View","CommonStyles","Fonts","Button","Paragraph","Title","Icon","SdkColors","ColorTheme","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","CancelOrderDialog","props","createElement","animationType","transparent","visible","onRequestClose","style","styles","wrapper","content","showIcon","iconName","alignSelf","size","name","color","LIGHT","primaryButton","fontFamily","OS","IBMPlexSans_600SemiBold","marginTop","marginBottom","textAlign","label","message","fontSize","IBMPlexSans_400Regular","mode","uppercase","labelStyle","nextButtonLabel","nextButton","onPress","onSubmit","cta","positiveButtonTitle","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","CANCEL_ORDER_DIALOG_SCREEN","testID","cancelButtonLabel","cancelButton","negativeButtonTitle","create","backgroundColor","padding","borderRadius","width","flex","alignItems","justifyContent"],"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,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAChE,SAASC,YAAY,EAAEC,KAAK,QAAQ,0CAA0C;AAC9E,SAASC,MAAM,EAAEC,SAAS,EAAEC,KAAK,QAAQ,oBAAoB;AAC7D,OAAOC,IAAI,MAAM,kDAAkD;AACnE,OAAOC,SAAS,IAAIC,UAAU,QAAQ,wBAAwB;AAC9D,SAASC,sBAAsB,EAAEC,2BAA2B,EAAEC,kBAAkB,QAAQ,2CAA2C;AACnI,SAASC,uBAAuB,QAAQ,6CAA6C;AAErF,MAAMC,iBAAiB,GAAIC,KAAwB,IAAK;EACtD,oBACElB,KAAA,CAAAmB,aAAA,CAAClB,KAAK;IACJmB,aAAa,EAAC,MAAM;IACpBC,WAAW,EAAE,IAAK;IAClBC,OAAO,EAAEJ,KAAK,CAACI,OAAQ;IACvBC,cAAc,EAAEA,CAAA,KAAM,CAAC;EAAE,gBAEzBvB,KAAA,CAAAmB,aAAA,CAACf,IAAI;IAACoB,KAAK,EAAEC,MAAM,CAACC;EAAQ,gBAC1B1B,KAAA,CAAAmB,aAAA,CAACf,IAAI;IAACoB,KAAK,EAAEC,MAAM,CAACE;EAAQ,GACzBT,KAAK,CAACU,QAAQ,IAAIV,KAAK,CAACW,QAAQ,iBAC/B7B,KAAA,CAAAmB,aAAA,CAACT,IAAI;IACHc,KAAK,EAAE;MAAEM,SAAS,EAAE;IAAS,CAAE;IAC/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7 @@ const styles = StyleSheet.create({
67
67
  borderRadius: 8
68
68
  // height: 150,
69
69
  },
70
+
70
71
  header: {
71
72
  flexDirection: 'row',
72
73
  alignItems: 'center'
@@ -1 +1 @@
1
- {"version":3,"names":["View","Text","StyleSheet","TouchableOpacity","React","Checkbox","Feather","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","Card","props","_props$selectConfig","_props$renderAddition","isSelected","selectConfig","createElement","style","styles","container","status","onPress","_props$selectConfig2","_props$selectConfig3","onSelect","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","CARD_WIDGET_SCREEN","theme","roundness","body","header","title","renderAdditionalHeader","call","Body","editConfig","Fragment","divider","_props$editConfig","_props$editConfig2","onEdit","icon","name","size","color","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,SAASA,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AACvE,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,S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AI;AAEnB,MAAMQ,MAAM,GAAGjB,UAAU,CAACiD,MAAM,CAAC;EAC/B/B,SAAS,EAAE;IACTgC,aAAa,EAAE,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;EACDzB,MAAM,EAAE;IACNgB,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE;EACd,CAAC;EACDnB,IAAI,EAAE;IACJ2B,IAAI,EAAE;EACR,CAAC;EACDzB,KAAK,EAAE;IACL0B,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE,EAAE;IACdC,WAAW,EAAE;EACf,CAAC;EACDxB,OAAO,EAAE;IACPyB,MAAM,EAAE,KAAK;IACbC,KAAK,EAAE,CAAC;IACRC,eAAe,EAAE,SAAS;IAC1BC,SAAS,EAAE;EACb,CAAC;EACDxB,IAAI,EAAE;IACJwB,SAAS,EAAE,QAAQ;IACnBC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["View","Text","StyleSheet","TouchableOpacity","React","Checkbox","Feather","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","Card","props","_props$selectConfig","_props$renderAddition","isSelected","selectConfig","createElement","style","styles","container","status","onPress","_props$selectConfig2","_props$selectConfig3","onSelect","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","CARD_WIDGET_SCREEN","theme","roundness","body","header","title","renderAdditionalHeader","call","Body","editConfig","Fragment","divider","_props$editConfig","_props$editConfig2","onEdit","icon","name","size","color","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,SAASA,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AACvE,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,sBAAsB,EAAEC,2BAA2B,EAAEC,kBAAkB,QAAQ,2CAA2C;AACnI,SAASC,uBAAuB,QAAQ,6CAA6C;AAiBrF,MAAMC,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,oBACEX,KAAA,CAAAa,aAAA,CAACjB,IAAI;IAACkB,KAAK,EAAEC,MAAM,CAACC;EAAU,GAC3BR,KAAK,CAACI,YAAY,gBACjBZ,KAAA,CAAAa,aAAA,CAACjB,IAAI,qBACHI,KAAA,CAAAa,aAAA,CAACZ,QAAQ;IACPgB,MAAM,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AAE;IACZC,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE,EAAE;IACdC,WAAW,EAAE;EACf,CAAC;EACDxB,OAAO,EAAE;IACPyB,MAAM,EAAE,KAAK;IACbC,KAAK,EAAE,CAAC;IACRC,eAAe,EAAE,SAAS;IAC1BC,SAAS,EAAE;EACb,CAAC;EACDxB,IAAI,EAAE;IACJwB,SAAS,EAAE,QAAQ;IACnBC,MAAM,EAAE;EACV;AACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","ModalWidget","StyleSheet","GoBackModal","props","createElement","dismissable","showModal","title","label","primaryButton","onPress","onSuccess","styles","modalStyles","primaryButtonStyles","secondaryButton","onFailure","secondaryButtonStyles","create","marginTop","height","borderRadius","justifyContent","alignItems","marginVertical"],"sources":["GoBackModal.tsx"],"sourcesContent":["import React from 'react';\nimport ModalWidget from './ModalWidget';\nimport { StyleSheet } from 'react-native';\n\ninterface GoBackModalProps {\n showModal: boolean;\n setShowModal: React.Dispatch<React.SetStateAction<boolean>>;\n onSuccess: () => any;\n onFailure: () => any;\n}\n\nconst GoBackModal = (props: GoBackModalProps) => {\n return (\n <ModalWidget\n dismissable={true}\n showModal={props.showModal}\n title={{ label: 'Are you sure you want to go back?' }}\n primaryButton={{\n label: 'Yes',\n onPress: props.onSuccess,\n styles: modalStyles.primaryButtonStyles,\n }}\n secondaryButton={{\n label: 'No',\n onPress: props.onFailure,\n styles: modalStyles.secondaryButtonStyles,\n }}\n />\n );\n};\n\nexport default GoBackModal;\n\nconst modalStyles = StyleSheet.create({\n primaryButtonStyles: {\n marginTop: 16,\n height: 40,\n borderRadius: 6,\n justifyContent: 'center',\n alignItems: 'center',\n },\n secondaryButtonStyles: {\n marginVertical: 16,\n height: 40,\n borderRadius: 6,\n justifyContent: 'center',\n alignItems: 'center',\n },\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,WAAW,MAAM,eAAe;AACvC,SAASC,UAAU,QAAQ,cAAc;AASzC,MAAMC,WAAW,GAAIC,KAAuB,IAAK;EAC/C,oBACEJ,KAAA,CAAAK,aAAA,CAACJ,WAAW;IACVK,WAAW,EAAE,IAAK;IAClBC,SAAS,EAAEH,KAAK,CAACG,SAAU;IAC3BC,KAAK,EAAE;MAAEC,KAAK,EAAE;IAAoC,CAAE;IACtDC,aAAa,EAAE;MACbD,KAAK,EAAE,KAAK;MACZE,OAAO,EAAEP,KAAK,CAACQ,SAAS;MACxBC,MAAM,EAAEC,WAAW,CAACC;IACtB,CAAE;IACFC,eAAe,EAAE;MACfP,KAAK,EAAE,IAAI;MACXE,OAAO,EAAEP,KAAK,CAACa,SAAS;MACxBJ,MAAM,EAAEC,WAAW,CAACI;IACtB;EAAE,CACH,CAAC;AAEN,CAAC;AAED,eAAef,WAAW;AAE1B,MAAMW,WAAW,GAAGZ,UAAU,CAACiB,MAAM,CAAC;EACpCJ,mBAAmB,EAAE;IACnBK,SAAS,EAAE,EAAE;IACbC,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,CAAC;IACfC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDN,qBAAqB,EAAE;IACrBO,cAAc,EAAE,EAAE;IAClBJ,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,CAAC;IACfC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","ModalWidget","StyleSheet","GoBackModal","props","createElement","dismissable","showModal","title","label","primaryButton","onPress","onSuccess","styles","modalStyles","primaryButtonStyles","secondaryButton","onFailure","secondaryButtonStyles","create","marginTop","height","borderRadius","justifyContent","alignItems","marginVertical"],"sources":["GoBackModal.tsx"],"sourcesContent":["import React from 'react';\nimport ModalWidget from './ModalWidget';\nimport { StyleSheet } from 'react-native';\n\ninterface GoBackModalProps {\n showModal: boolean;\n setShowModal: React.Dispatch<React.SetStateAction<boolean>>;\n onSuccess: () => any;\n onFailure: () => any;\n}\n\nconst GoBackModal = (props: GoBackModalProps) => {\n return (\n <ModalWidget\n dismissable={true}\n showModal={props.showModal}\n title={{ label: 'Are you sure you want to go back?' }}\n primaryButton={{\n label: 'Yes',\n onPress: props.onSuccess,\n styles: modalStyles.primaryButtonStyles,\n }}\n secondaryButton={{\n label: 'No',\n onPress: props.onFailure,\n styles: modalStyles.secondaryButtonStyles,\n }}\n />\n );\n};\n\nexport default GoBackModal;\n\nconst modalStyles = StyleSheet.create({\n primaryButtonStyles: {\n marginTop: 16,\n height: 40,\n borderRadius: 6,\n justifyContent: 'center',\n alignItems: 'center',\n },\n secondaryButtonStyles: {\n marginVertical: 16,\n height: 40,\n borderRadius: 6,\n justifyContent: 'center',\n alignItems: 'center',\n },\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,WAAW,MAAM,eAAe;AACvC,SAASC,UAAU,QAAQ,cAAc;AASzC,MAAMC,WAAW,GAAIC,KAAuB,IAAK;EAC/C,oBACEJ,KAAA,CAAAK,aAAA,CAACJ,WAAW;IACVK,WAAW,EAAE,IAAK;IAClBC,SAAS,EAAEH,KAAK,CAACG,SAAU;IAC3BC,KAAK,EAAE;MAAEC,KAAK,EAAE;IAAoC,CAAE;IACtDC,aAAa,EAAE;MACbD,KAAK,EAAE,KAAK;MACZE,OAAO,EAAEP,KAAK,CAACQ,SAAS;MACxBC,MAAM,EAAEC,WAAW,CAACC;IACtB,CAAE;IACFC,eAAe,EAAE;MACfP,KAAK,EAAE,IAAI;MACXE,OAAO,EAAEP,KAAK,CAACa,SAAS;MACxBJ,MAAM,EAAEC,WAAW,CAACI;IACtB;EAAE,CACH,CAAC;AAEN,CAAC;AAED,eAAef,WAAW;AAE1B,MAAMW,WAAW,GAAGZ,UAAU,CAACiB,MAAM,CAAC;EACpCJ,mBAAmB,EAAE;IACnBK,SAAS,EAAE,EAAE;IACbC,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,CAAC;IACfC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDN,qBAAqB,EAAE;IACrBO,cAAc,EAAE,EAAE;IAClBJ,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,CAAC;IACfC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC"}
@@ -1,23 +1,26 @@
1
1
  import { Text, TouchableOpacity, View } from 'react-native';
2
2
  import React from 'react';
3
- const IconButton = ({
4
- title,
5
- onPress,
6
- icon,
7
- style,
8
- textStyles
9
- }) => /*#__PURE__*/React.createElement(TouchableOpacity, {
10
- style: style,
11
- onPress: onPress
12
- }, /*#__PURE__*/React.createElement(View, {
13
- style: {
14
- flex: 1,
15
- justifyContent: 'space-between',
16
- flexDirection: 'row',
17
- alignItems: 'center'
18
- }
19
- }, /*#__PURE__*/React.createElement(Text, {
20
- style: textStyles
21
- }, title), icon));
3
+ const IconButton = _ref => {
4
+ let {
5
+ title,
6
+ onPress,
7
+ icon,
8
+ style,
9
+ textStyles
10
+ } = _ref;
11
+ return /*#__PURE__*/React.createElement(TouchableOpacity, {
12
+ style: style,
13
+ onPress: onPress
14
+ }, /*#__PURE__*/React.createElement(View, {
15
+ style: {
16
+ flex: 1,
17
+ justifyContent: 'space-between',
18
+ flexDirection: 'row',
19
+ alignItems: 'center'
20
+ }
21
+ }, /*#__PURE__*/React.createElement(Text, {
22
+ style: textStyles
23
+ }, title), icon));
24
+ };
22
25
  export default IconButton;
23
26
  //# sourceMappingURL=IconButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Text","TouchableOpacity","View","React","IconButton","title","onPress","icon","style","textStyles","createElement","flex","justifyContent","flexDirection","alignItems"],"sources":["IconButton.tsx"],"sourcesContent":["import { Text, TouchableOpacity, View } from 'react-native';\nimport React from 'react';\n\nconst IconButton = ({\n title,\n onPress,\n icon,\n style,\n textStyles,\n}: {\n title: string;\n onPress: (e: any) => void;\n icon?: any;\n style?: any;\n textStyles?: any;\n}) => (\n <TouchableOpacity style={style} onPress={onPress}>\n <View\n style={{\n flex: 1,\n justifyContent: 'space-between',\n flexDirection: 'row',\n alignItems: 'center',\n }}\n >\n <Text style={textStyles}>{title}</Text>\n {icon}\n </View>\n </TouchableOpacity>\n);\n\nexport default IconButton;\n"],"mappings":"AAAA,SAASA,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAC3D,OAAOC,KAAK,MAAM,OAAO;AAEzB,MAAMC,UAAU,GAAGA,CAAC;EAClBC,KAAK;EACLC,OAAO;EACPC,IAAI;EACJC,KAAK;EACLC;AAOF,CAAC,kBACCN,KAAA,CAAAO,aAAA,CAACT,gBAAgB;EAACO,KAAK,EAAEA,KAAM;EAACF,OAAO,EAAEA;AAAQ,gBAC/CH,KAAA,CAAAO,aAAA,CAACR,IAAI;EACHM,KAAK,EAAE;IACLG,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,eAAe;IAC/BC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd;AAAE,gBAEFX,KAAA,CAAAO,aAAA,CAACV,IAAI;EAACQ,KAAK,EAAEC;AAAW,GAAEJ,KAAY,CAAC,EACtCE,IACG,CACU,CACnB;AAED,eAAeH,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["Text","TouchableOpacity","View","React","IconButton","_ref","title","onPress","icon","style","textStyles","createElement","flex","justifyContent","flexDirection","alignItems"],"sources":["IconButton.tsx"],"sourcesContent":["import { Text, TouchableOpacity, View } from 'react-native';\nimport React from 'react';\n\nconst IconButton = ({\n title,\n onPress,\n icon,\n style,\n textStyles,\n}: {\n title: string;\n onPress: (e: any) => void;\n icon?: any;\n style?: any;\n textStyles?: any;\n}) => (\n <TouchableOpacity style={style} onPress={onPress}>\n <View\n style={{\n flex: 1,\n justifyContent: 'space-between',\n flexDirection: 'row',\n alignItems: 'center',\n }}\n >\n <Text style={textStyles}>{title}</Text>\n {icon}\n </View>\n </TouchableOpacity>\n);\n\nexport default IconButton;\n"],"mappings":"AAAA,SAASA,IAAI,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAC3D,OAAOC,KAAK,MAAM,OAAO;AAEzB,MAAMC,UAAU,GAAGC,IAAA;EAAA,IAAC;IAClBC,KAAK;IACLC,OAAO;IACPC,IAAI;IACJC,KAAK;IACLC;EAOF,CAAC,GAAAL,IAAA;EAAA,oBACCF,KAAA,CAAAQ,aAAA,CAACV,gBAAgB;IAACQ,KAAK,EAAEA,KAAM;IAACF,OAAO,EAAEA;EAAQ,gBAC/CJ,KAAA,CAAAQ,aAAA,CAACT,IAAI;IACHO,KAAK,EAAE;MACLG,IAAI,EAAE,CAAC;MACPC,cAAc,EAAE,eAAe;MAC/BC,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE;IACd;EAAE,gBAEFZ,KAAA,CAAAQ,aAAA,CAACX,IAAI;IAACS,KAAK,EAAEC;EAAW,GAAEJ,KAAY,CAAC,EACtCE,IACG,CACU,CAAC;AAAA,CACpB;AAED,eAAeJ,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"names":["View","Text","StyleSheet","Platform","React","Portal","Modal","CommonStyles","Fonts","TouchableOpacity","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","ModalWidget","props","_props$renderAddition","_props$renderChildren","_props$renderAddition2","dismissable","contentContainerStyle","modalStyle","title","styles","titleStyle","subTitle","subTitleStyle","bodyStyle","buttonStyle","primaryButton","disabled","primaryButtonDisabled","primaryBtnStyles","labelStyles","primaryBtnLabelStyles","secondaryButton","secondaryButtonDisabled","secondaryBtnStyles","secondaryBtnLabelStyles","createElement","visible","showModal","modalContent","style","modalView","renderAdditionalHeader","call","titleText","label","subTitleText","renderChildren","nextButton","onPress","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","MODEL_WIDGET_SCREEN","nextButtonLabel","cancelButton","cancelButtonLabel","renderAdditionalButtons","create","marginStart","marginEnd","marginBottom","flex","backgroundColor","padding","borderRadius","justifyContent","fontFamily","OS","IBMPlexSans_600SemiBold","fontStyle","fontSize","lineHeight","textAlign","color","IBMPlexSans_400Regular"],"sources":["ModalWidget.tsx"],"sourcesContent":["import { View, Text, StyleSheet, ViewStyle, TextStyle, Platform } from 'react-native';\nimport React from 'react';\nimport { Portal, Modal } from 'react-native-paper';\nimport { CommonStyles, Fonts } from '../../styles/executionTasks/CommonStyles';\nimport { TouchableOpacity } from 'react-native';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\ninterface ButtonProps {\n label: string;\n disabled?: boolean;\n onPress: (() => void) | (() => Promise<any>);\n styles?: ViewStyle;\n labelStyles?: TextStyle;\n}\n\ninterface TitleProps {\n label: string;\n styles?: TextStyle;\n}\n\nexport interface ModalProps {\n showModal: boolean;\n dismissable?: boolean;\n title: TitleProps;\n subTitle?: TitleProps;\n contentContainerStyle?: ViewStyle;\n modalStyle?: ViewStyle;\n bodyStyle?: ViewStyle;\n renderChildren?: () => JSX.Element;\n buttonStyle?: ViewStyle;\n primaryButton: ButtonProps;\n secondaryButton: ButtonProps;\n renderAdditionalButtons?: () => JSX.Element;\n renderAdditionalHeader?: () => JSX.Element;\n}\n\nconst ModalWidget = (props: ModalProps) => {\n const {\n dismissable = true,\n contentContainerStyle = {},\n modalStyle = {},\n title: { styles: titleStyle = {} },\n subTitle: { styles: subTitleStyle = {} } = {},\n bodyStyle = {},\n buttonStyle = {},\n primaryButton: {\n disabled: primaryButtonDisabled = false,\n styles: primaryBtnStyles = {},\n labelStyles: primaryBtnLabelStyles = {},\n },\n secondaryButton: {\n disabled: secondaryButtonDisabled = false,\n styles: secondaryBtnStyles = {},\n labelStyles: secondaryBtnLabelStyles = {},\n },\n } = props;\n return (\n <Portal>\n <Modal\n visible={props.showModal}\n dismissable={dismissable}\n contentContainerStyle={[styles.modalContent, contentContainerStyle]}\n >\n <View style={[styles.modalView, modalStyle]}>\n <View style={bodyStyle}>\n {props.renderAdditionalHeader?.()}\n <Text style={[styles.titleText, titleStyle]}>\n {props.title.label}\n </Text>\n {props.subTitle ? (\n <Text style={[styles.subTitleText, subTitleStyle]}>\n {props.subTitle.label}\n </Text>\n ) : null}\n {props.renderChildren?.()}\n </View>\n\n <View style={buttonStyle}>\n <TouchableOpacity\n style={[CommonStyles.nextButton, primaryBtnStyles]}\n onPress={() => {\n props.primaryButton.onPress();\n const cta = props.primaryButton.label;\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.MODEL_WIDGET_SCREEN, cta: cta });\n \n\n }}\n disabled={primaryButtonDisabled}\n >\n <Text\n style={[CommonStyles.nextButtonLabel, primaryBtnLabelStyles]}\n >\n {props.primaryButton.label}\n </Text>\n </TouchableOpacity>\n <TouchableOpacity\n style={[CommonStyles.cancelButton, secondaryBtnStyles]}\n onPress={() => {\n props.secondaryButton.onPress();\n const cta = props.secondaryButton.label;\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.MODEL_WIDGET_SCREEN, cta: cta });\n \n\n }}\n disabled={secondaryButtonDisabled}\n >\n <Text\n style={[\n CommonStyles.cancelButtonLabel,\n secondaryBtnLabelStyles,\n ]}\n >\n {props.secondaryButton.label}\n </Text>\n </TouchableOpacity>\n {props.renderAdditionalButtons?.()}\n </View>\n </View>\n </Modal>\n </Portal>\n );\n};\n\nexport default ModalWidget;\n\ninterface StyleSheetType {\n modalContent: ViewStyle;\n modalView: ViewStyle;\n titleText: TextStyle;\n subTitleText: TextStyle;\n}\n\nconst styles = StyleSheet.create<StyleSheetType>({\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n marginBottom: 60,\n flex: 1,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n borderRadius: 9,\n },\n titleText: {\n justifyContent: 'center',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#111111',\n marginBottom: 10,\n },\n subTitleText: {\n justifyContent: 'center',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_400Regular\n : 'IBMPlexSans-Regular',\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n color: '#000000',\n marginBottom: 10,\n },\n});\n"],"mappings":"AAAA,SAASA,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAwBC,QAAQ,QAAQ,cAAc;AACrF,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,KAAK,QAAQ,oBAAoB;AAClD,SAASC,YAAY,EAAEC,KAAK,QAAQ,0CAA0C;AAC9E,SAASC,gBAAgB,QAAQ,cAAc;AAC/C,SAASC,sBAAsB,EAAEC,2BAA2B,EAAEC,kBAAkB,QAAQ,2CAA2C;AACnI,SAASC,uBAAuB,QAAQ,6CAA6C;AA+BrF,MAAMC,WAAW,GAAIC,KAAiB,IAAK;EAAA,IAAAC,qBAAA,EAAAC,qBAAA,EAAAC,sBAAA;EACzC,MAAM;IACJC,WAAW,GAAG,IAAI;IAClBC,qBAAqB,GAAG,CAAC,CAAC;IAC1BC,UAAU,GAAG,CAAC,CAAC;IACfC,KAAK,EAAE;MAAEC,MAAM,EAAEC,UAAU,GAAG,CAAC;IAAE,CAAC;IAClCC,QAAQ,EAAE;MAAEF,MAAM,EAAEG,aAAa,GAAG,CAAC;IAAE,CAAC,GAAG,CAAC,CAAC;IAC7CC,SAAS,GAAG,CAAC,CAAC;IACdC,WAAW,GAAG,CAAC,CAAC;IAChBC,aAAa,EAAE;MACbC,QAAQ,EAAEC,qBAAqB,GAAG,KAAK;MACvCR,MAAM,EAAES,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1
+ {"version":3,"names":["View","Text","StyleSheet","Platform","React","Portal","Modal","CommonStyles","Fonts","TouchableOpacity","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","ModalWidget","props","_props$renderAddition","_props$renderChildren","_props$renderAddition2","dismissable","contentContainerStyle","modalStyle","title","styles","titleStyle","subTitle","subTitleStyle","bodyStyle","buttonStyle","primaryButton","disabled","primaryButtonDisabled","primaryBtnStyles","labelStyles","primaryBtnLabelStyles","secondaryButton","secondaryButtonDisabled","secondaryBtnStyles","secondaryBtnLabelStyles","createElement","visible","showModal","modalContent","style","modalView","renderAdditionalHeader","call","titleText","label","subTitleText","renderChildren","nextButton","onPress","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","MODEL_WIDGET_SCREEN","nextButtonLabel","cancelButton","cancelButtonLabel","renderAdditionalButtons","create","marginStart","marginEnd","marginBottom","flex","backgroundColor","padding","borderRadius","justifyContent","fontFamily","OS","IBMPlexSans_600SemiBold","fontStyle","fontSize","lineHeight","textAlign","color","IBMPlexSans_400Regular"],"sources":["ModalWidget.tsx"],"sourcesContent":["import { View, Text, StyleSheet, ViewStyle, TextStyle, Platform } from 'react-native';\nimport React from 'react';\nimport { Portal, Modal } from 'react-native-paper';\nimport { CommonStyles, Fonts } from '../../styles/executionTasks/CommonStyles';\nimport { TouchableOpacity } from 'react-native';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\ninterface ButtonProps {\n label: string;\n disabled?: boolean;\n onPress: (() => void) | (() => Promise<any>);\n styles?: ViewStyle;\n labelStyles?: TextStyle;\n}\n\ninterface TitleProps {\n label: string;\n styles?: TextStyle;\n}\n\nexport interface ModalProps {\n showModal: boolean;\n dismissable?: boolean;\n title: TitleProps;\n subTitle?: TitleProps;\n contentContainerStyle?: ViewStyle;\n modalStyle?: ViewStyle;\n bodyStyle?: ViewStyle;\n renderChildren?: () => JSX.Element;\n buttonStyle?: ViewStyle;\n primaryButton: ButtonProps;\n secondaryButton: ButtonProps;\n renderAdditionalButtons?: () => JSX.Element;\n renderAdditionalHeader?: () => JSX.Element;\n}\n\nconst ModalWidget = (props: ModalProps) => {\n const {\n dismissable = true,\n contentContainerStyle = {},\n modalStyle = {},\n title: { styles: titleStyle = {} },\n subTitle: { styles: subTitleStyle = {} } = {},\n bodyStyle = {},\n buttonStyle = {},\n primaryButton: {\n disabled: primaryButtonDisabled = false,\n styles: primaryBtnStyles = {},\n labelStyles: primaryBtnLabelStyles = {},\n },\n secondaryButton: {\n disabled: secondaryButtonDisabled = false,\n styles: secondaryBtnStyles = {},\n labelStyles: secondaryBtnLabelStyles = {},\n },\n } = props;\n return (\n <Portal>\n <Modal\n visible={props.showModal}\n dismissable={dismissable}\n contentContainerStyle={[styles.modalContent, contentContainerStyle]}\n >\n <View style={[styles.modalView, modalStyle]}>\n <View style={bodyStyle}>\n {props.renderAdditionalHeader?.()}\n <Text style={[styles.titleText, titleStyle]}>\n {props.title.label}\n </Text>\n {props.subTitle ? (\n <Text style={[styles.subTitleText, subTitleStyle]}>\n {props.subTitle.label}\n </Text>\n ) : null}\n {props.renderChildren?.()}\n </View>\n\n <View style={buttonStyle}>\n <TouchableOpacity\n style={[CommonStyles.nextButton, primaryBtnStyles]}\n onPress={() => {\n props.primaryButton.onPress();\n const cta = props.primaryButton.label;\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.MODEL_WIDGET_SCREEN, cta: cta });\n \n\n }}\n disabled={primaryButtonDisabled}\n >\n <Text\n style={[CommonStyles.nextButtonLabel, primaryBtnLabelStyles]}\n >\n {props.primaryButton.label}\n </Text>\n </TouchableOpacity>\n <TouchableOpacity\n style={[CommonStyles.cancelButton, secondaryBtnStyles]}\n onPress={() => {\n props.secondaryButton.onPress();\n const cta = props.secondaryButton.label;\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.MODEL_WIDGET_SCREEN, cta: cta });\n \n\n }}\n disabled={secondaryButtonDisabled}\n >\n <Text\n style={[\n CommonStyles.cancelButtonLabel,\n secondaryBtnLabelStyles,\n ]}\n >\n {props.secondaryButton.label}\n </Text>\n </TouchableOpacity>\n {props.renderAdditionalButtons?.()}\n </View>\n </View>\n </Modal>\n </Portal>\n );\n};\n\nexport default ModalWidget;\n\ninterface StyleSheetType {\n modalContent: ViewStyle;\n modalView: ViewStyle;\n titleText: TextStyle;\n subTitleText: TextStyle;\n}\n\nconst styles = StyleSheet.create<StyleSheetType>({\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n marginBottom: 60,\n flex: 1,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n borderRadius: 9,\n },\n titleText: {\n justifyContent: 'center',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#111111',\n marginBottom: 10,\n },\n subTitleText: {\n justifyContent: 'center',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_400Regular\n : 'IBMPlexSans-Regular',\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n color: '#000000',\n marginBottom: 10,\n },\n});\n"],"mappings":"AAAA,SAASA,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAwBC,QAAQ,QAAQ,cAAc;AACrF,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,KAAK,QAAQ,oBAAoB;AAClD,SAASC,YAAY,EAAEC,KAAK,QAAQ,0CAA0C;AAC9E,SAASC,gBAAgB,QAAQ,cAAc;AAC/C,SAASC,sBAAsB,EAAEC,2BAA2B,EAAEC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C,UAAU,EACRtE,QAAQ,CAACuE,EAAE,KAAK,SAAS,GACrBlE,KAAK,CAACmE,uBAAuB,GAC7B,sBAAsB;IAC5BC,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,SAAS,EAAE,QAAQ;IACnBC,KAAK,EAAE,SAAS;IAChBb,YAAY,EAAE;EAChB,CAAC;EACDlB,YAAY,EAAE;IACZuB,cAAc,EAAE,QAAQ;IACxBC,UAAU,EACRtE,QAAQ,CAACuE,EAAE,KAAK,SAAS,GACrBlE,KAAK,CAACyE,sBAAsB,GAC5B,qBAAqB;IAC3BL,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdE,KAAK,EAAE,SAAS;IAChBb,YAAY,EAAE;EAChB;AACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","ActivityIndicator","Modal","Platform","StyleSheet","Text","View","Fonts","ProgressDialog","props","createElement","animationType","transparent","visible","onRequestClose","style","styles","wrapper","content","size","color","label","create","textAlign","fontStyle","fontSize","fontFamily","OS","IBMPlexSans_600SemiBold","backgroundColor","padding","borderRadius","width","alignItems","flex","justifyContent"],"sources":["ProgressDialog.tsx"],"sourcesContent":["import React from 'react';\nimport { ActivityIndicator, Modal, Platform, StyleSheet, Text, View } from 'react-native';\nimport { Fonts } from '../../styles/executionTasks/CommonStyles';\n\nconst ProgressDialog = (props: ProgressDialogProps) => {\n return (\n <Modal\n animationType=\"none\"\n transparent={true}\n visible={props.visible}\n onRequestClose={() => {}}\n >\n <View style={styles.wrapper}>\n <View style={styles.content}>\n <ActivityIndicator size=\"large\" color=\"rgba(107, 142, 255, 1)\" />\n <Text style={[styles.label]}>{props.label}</Text>\n </View>\n </View>\n </Modal>\n );\n};\n\nconst styles = StyleSheet.create({\n label: {\n color: 'black',\n textAlign: 'center',\n fontStyle: 'normal',\n fontSize: 15,\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n },\n content: {\n backgroundColor: 'white',\n padding: 10,\n borderRadius: 5,\n width: '80%',\n alignItems: 'center',\n },\n wrapper: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'rgba(0,0,0,0.7)',\n },\n});\n\nexport default ProgressDialog;\n\nexport interface ProgressDialogProps {\n visible: boolean;\n label: string;\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,iBAAiB,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzF,SAASC,KAAK,QAAQ,0CAA0C;AAEhE,MAAMC,cAAc,GAAIC,KAA0B,IAAK;EACrD,oBACET,KAAA,CAAAU,aAAA,CAACR,KAAK;IACJS,aAAa,EAAC,MAAM;IACpBC,WAAW,EAAE,IAAK;IAClBC,OAAO,EAAEJ,KAAK,CAACI,OAAQ;IACvBC,cAAc,EAAEA,CAAA,KAAM,CAAC;EAAE,gBAEzBd,KAAA,CAAAU,aAAA,CAACJ,IAAI;IAACS,KAAK,EAAEC,MAAM,CAACC;EAAQ,gBAC1BjB,KAAA,CAAAU,aAAA,CAACJ,IAAI;IAACS,KAAK,EAAEC,MAAM,CAACE;EAAQ,gBAC1BlB,KAAA,CAAAU,aAAA,CAACT,iBAAiB;IAACkB,IAAI,EAAC,OAAO;IAACC,KAAK,EAAC;EAAwB,CAAE,CAAC,eACjEpB,KAAA,CAAAU,aAAA,CAACL,IAAI;IAACU,KAAK,EAAE,CAACC,MAAM,CAACK,KAAK;EAAE,GAAEZ,KAAK,CAACY,KAAY,CAC5C,CACF,CACD,CAAC;AAEZ,CAAC;AAED,MAAML,MAAM,GAAGZ,UAAU,CAACkB,MAAM,CAAC;EAC/BD,KAAK,EAAE;IACLD,KAAK,EAAE,OAAO;IACdG,SAAS,EAAE,QAAQ;IACnBC,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EACRvB,QAAQ,CAACwB,EAAE,KAAK,SAAS,GACrBpB,KAAK,CAACqB,uBAAuB,GAC7B;EACR,CAAC;EACDV,OAAO,EAAE;IACPW,eAAe,EAAE,OAAO;IACxBC,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE,CAAC;IACfC,KAAK,EAAE,KAAK;IACZC,UAAU,EAAE;EACd,CAAC;EACDhB,OAAO,EAAE;IACPiB,IAAI,EAAE,CAAC;IACPD,UAAU,EAAE,QAAQ;IACpBE,cAAc,EAAE,QAAQ;IACxBN,eAAe,EAAE;EACnB;AACF,CAAC,CAAC;AAEF,eAAerB,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["React","ActivityIndicator","Modal","Platform","StyleSheet","Text","View","Fonts","ProgressDialog","props","createElement","animationType","transparent","visible","onRequestClose","style","styles","wrapper","content","size","color","label","create","textAlign","fontStyle","fontSize","fontFamily","OS","IBMPlexSans_600SemiBold","backgroundColor","padding","borderRadius","width","alignItems","flex","justifyContent"],"sources":["ProgressDialog.tsx"],"sourcesContent":["import React from 'react';\nimport { ActivityIndicator, Modal, Platform, StyleSheet, Text, View } from 'react-native';\nimport { Fonts } from '../../styles/executionTasks/CommonStyles';\n\nconst ProgressDialog = (props: ProgressDialogProps) => {\n return (\n <Modal\n animationType=\"none\"\n transparent={true}\n visible={props.visible}\n onRequestClose={() => {}}\n >\n <View style={styles.wrapper}>\n <View style={styles.content}>\n <ActivityIndicator size=\"large\" color=\"rgba(107, 142, 255, 1)\" />\n <Text style={[styles.label]}>{props.label}</Text>\n </View>\n </View>\n </Modal>\n );\n};\n\nconst styles = StyleSheet.create({\n label: {\n color: 'black',\n textAlign: 'center',\n fontStyle: 'normal',\n fontSize: 15,\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n },\n content: {\n backgroundColor: 'white',\n padding: 10,\n borderRadius: 5,\n width: '80%',\n alignItems: 'center',\n },\n wrapper: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'rgba(0,0,0,0.7)',\n },\n});\n\nexport default ProgressDialog;\n\nexport interface ProgressDialogProps {\n visible: boolean;\n label: string;\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,iBAAiB,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzF,SAASC,KAAK,QAAQ,0CAA0C;AAEhE,MAAMC,cAAc,GAAIC,KAA0B,IAAK;EACrD,oBACET,KAAA,CAAAU,aAAA,CAACR,KAAK;IACJS,aAAa,EAAC,MAAM;IACpBC,WAAW,EAAE,IAAK;IAClBC,OAAO,EAAEJ,KAAK,CAACI,OAAQ;IACvBC,cAAc,EAAEA,CAAA,KAAM,CAAC;EAAE,gBAEzBd,KAAA,CAAAU,aAAA,CAACJ,IAAI;IAACS,KAAK,EAAEC,MAAM,CAACC;EAAQ,gBAC1BjB,KAAA,CAAAU,aAAA,CAACJ,IAAI;IAACS,KAAK,EAAEC,MAAM,CAACE;EAAQ,gBAC1BlB,KAAA,CAAAU,aAAA,CAACT,iBAAiB;IAACkB,IAAI,EAAC,OAAO;IAACC,KAAK,EAAC;EAAwB,CAAE,CAAC,eACjEpB,KAAA,CAAAU,aAAA,CAACL,IAAI;IAACU,KAAK,EAAE,CAACC,MAAM,CAACK,KAAK;EAAE,GAAEZ,KAAK,CAACY,KAAY,CAC5C,CACF,CACD,CAAC;AAEZ,CAAC;AAED,MAAML,MAAM,GAAGZ,UAAU,CAACkB,MAAM,CAAC;EAC/BD,KAAK,EAAE;IACLD,KAAK,EAAE,OAAO;IACdG,SAAS,EAAE,QAAQ;IACnBC,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EACRvB,QAAQ,CAACwB,EAAE,KAAK,SAAS,GACrBpB,KAAK,CAACqB,uBAAuB,GAC7B;EACR,CAAC;EACDV,OAAO,EAAE;IACPW,eAAe,EAAE,OAAO;IACxBC,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE,CAAC;IACfC,KAAK,EAAE,KAAK;IACZC,UAAU,EAAE;EACd,CAAC;EACDhB,OAAO,EAAE;IACPiB,IAAI,EAAE,CAAC;IACPD,UAAU,EAAE,QAAQ;IACpBE,cAAc,EAAE,QAAQ;IACxBN,eAAe,EAAE;EACnB;AACF,CAAC,CAAC;AAEF,eAAerB,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","TextInput","TouchableOpacity","StyleSheet","EvilIcons","MaterialIcons","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","SearchBar","props","searchText","setSearchText","handleSearch","text","onChangeSearch","handleClear","onClear","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","SEARCH_BAR_SCREEN","createElement","style","styles","container","iconContainer","name","size","color","inputContainer","input","placeholder","onChangeText","value","onPress","create","flexDirection","alignItems","backgroundColor","borderRadius","paddingHorizontal","borderWidth","borderColor","marginHorizontal","flex","height","paddingLeft","paddingRight"],"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,OAAOA,KAAK,MAAoB,OAAO;AACvC,SAASC,IAAI,EAAEC,SAAS,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AAC5E,SAASC,SAAS,EAAEC,aAAa,QAAQ,oBAAoB;AAC7D,SAASC,sBAAsB,EAAEC,2BAA2B,EAAEC,kBAAkB,QAAQ,2CAA2C;AACnI,SAASC,uBAAuB,QAAQ,6CAA6C;AAUrF,MAAMC,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;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,IACA,CAAC;AAEX,CAAC;AAED,MAAML,MAAM,GAAGzB,UAAU,CAACqC,MAAM,CAAC;EAC/BX,SAAS,EAAE;IACTY,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;EACDd,cAAc,EAAE;IACde,IAAI,EAAE;EACR,CAAC;EACDd,KAAK,EAAE;IACLe,MAAM,EAAE;EACV,CAAC;EACDpB,aAAa,EAAE;IACbqB,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;AAEF,eAAe1C,SAAS","ignoreList":[]}
1
+ {"version":3,"names":["React","View","TextInput","TouchableOpacity","StyleSheet","EvilIcons","MaterialIcons","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","SearchBar","props","searchText","setSearchText","handleSearch","text","onChangeSearch","handleClear","onClear","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","SEARCH_BAR_SCREEN","createElement","style","styles","container","iconContainer","name","size","color","inputContainer","input","placeholder","onChangeText","value","onPress","create","flexDirection","alignItems","backgroundColor","borderRadius","paddingHorizontal","borderWidth","borderColor","marginHorizontal","flex","height","paddingLeft","paddingRight"],"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,OAAOA,KAAK,MAAoB,OAAO;AACvC,SAASC,IAAI,EAAEC,SAAS,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AAC5E,SAASC,SAAS,EAAEC,aAAa,QAAQ,oBAAoB;AAC7D,SAASC,sBAAsB,EAAEC,2BAA2B,EAAEC,kBAAkB,QAAQ,2CAA2C;AACnI,SAASC,uBAAuB,QAAQ,6CAA6C;AAUrF,MAAMC,SAAS,GAAIC,KAAqB,IAAK;EAC3C,MAAM;IAAEC,UAAU;I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AACS,OAAO,EAAEtB;EAAY,gBAClElB,KAAA,CAAA2B,aAAA,CAACrB,aAAa;IAAC0B,IAAI,EAAC,OAAO;IAACC,IAAI,EAAE,EAAG;IAACC,KAAK,EAAC;EAAS,CAAE,CACvC,CAAC,GACjB,IACA,CAAC;AAEX,CAAC;AAED,MAAML,MAAM,GAAGzB,UAAU,CAACqC,MAAM,CAAC;EAC/BX,SAAS,EAAE;IACTY,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;EACDd,cAAc,EAAE;IACde,IAAI,EAAE;EACR,CAAC;EACDd,KAAK,EAAE;IACLe,MAAM,EAAE;EACV,CAAC;EACDpB,aAAa,EAAE;IACbqB,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC;AAEF,eAAe1C,SAAS"}
@@ -12,15 +12,16 @@ export let SnackBarType = /*#__PURE__*/function (SnackBarType) {
12
12
  SnackBarType[SnackBarType["WARNING"] = 2] = "WARNING";
13
13
  return SnackBarType;
14
14
  }({});
15
- const SnackbarCustom = ({
16
- visible,
17
- duration = DURATION_MEDIUM,
18
- onDismiss,
19
- message,
20
- theme,
21
- type,
22
- customBottom = 110
23
- }) => {
15
+ const SnackbarCustom = _ref => {
16
+ let {
17
+ visible,
18
+ duration = DURATION_MEDIUM,
19
+ onDismiss,
20
+ message,
21
+ theme,
22
+ type,
23
+ customBottom = 110
24
+ } = _ref;
24
25
  const {
25
26
  current: opacity
26
27
  } = React.useRef(new Animated.Value(0.0));
@@ -43,9 +44,10 @@ const SnackbarCustom = ({
43
44
  toValue: 1,
44
45
  duration: 200 * scale,
45
46
  useNativeDriver: true
46
- }).start(({
47
- finished
48
- }) => {
47
+ }).start(_ref2 => {
48
+ let {
49
+ finished
50
+ } = _ref2;
49
51
  if (finished) {
50
52
  const isInfinity = duration === Number.POSITIVE_INFINITY || duration === Number.NEGATIVE_INFINITY;
51
53
  if (finished && !isInfinity) {
@@ -60,9 +62,10 @@ const SnackbarCustom = ({
60
62
  toValue: 0,
61
63
  duration: 100 * scale,
62
64
  useNativeDriver: true
63
- }).start(({
64
- finished
65
- }) => {
65
+ }).start(_ref3 => {
66
+ let {
67
+ finished
68
+ } = _ref3;
66
69
  if (finished) setHidden(true);
67
70
  });
68
71
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","Animated","Platform","SafeAreaView","StyleSheet","Text","View","Surface","withTheme","AntDesign","Fonts","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","DURATION_MEDIUM","SnackBarType","SnackbarCustom","visible","duration","onDismiss","message","theme","type","customBottom","current","opacity","useRef","Value","hidden","setHidden","useState","hideTimeout","undefined","scale","animation","useEffect","clearTimeout","useLayoutEffect","timing","toValue","useNativeDriver","start","finished","isInfinity","Number","POSITIVE_INFINITY","NEGATIVE_INFINITY","setTimeout","colors","roundness","createElement","pointerEvents","style","styles","wrapper","bottom","accessibilityLiveRegion","container","borderRadius","transform","interpolate","inputRange","outputRange","backgroundColor","onSurface","FAILURE","fail","WARNING","warn","main","name","size","color","messageStyle","onPress","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","SCAN_BAR_CUSTOM_SCREEN","create","position","width","zIndex","elevation","flexDirection","justifyContent","alignItems","margin","padding","flex","marginStart","marginEnd","fontWeight","fontFamily","OS","IBMPlexSans_600SemiBold"],"sources":["SnackBarCustom.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Animated,\n Platform,\n SafeAreaView,\n StyleProp,\n StyleSheet,\n Text,\n View,\n ViewStyle,\n} from 'react-native';\nimport { Surface, withTheme } from 'react-native-paper';\nimport { AntDesign } from '@expo/vector-icons';\nimport { Fonts } from '../../styles/executionTasks/CommonStyles';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\nexport interface SnackbarProps {\n visible: boolean;\n duration?: number;\n /**\n * Callback called when Snackbar is dismissed. The `visible` prop needs to be updated when this is called.\n */\n onDismiss: () => void;\n /**\n * Text content of the Snackbar.\n */\n message: string;\n type?: SnackBarType;\n theme: ReactNativePaper.Theme;\n customBottom?: number;\n}\nconst DURATION_MEDIUM = 3000;\n\nexport enum SnackBarType {\n SUCCESS,\n FAILURE,\n WARNING,\n}\n\nconst SnackbarCustom = ({\n visible,\n duration = DURATION_MEDIUM,\n onDismiss,\n message,\n theme,\n type,\n customBottom = 110,\n}: SnackbarProps) => {\n const { current: opacity } = React.useRef<Animated.Value>(\n new Animated.Value(0.0)\n );\n const [hidden, setHidden] = React.useState<boolean>(!visible);\n\n const hideTimeout = React.useRef<NodeJS.Timeout | undefined>(undefined);\n const { scale } = theme.animation;\n\n React.useEffect(() => {\n return () => {\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n };\n }, []);\n\n React.useLayoutEffect(() => {\n if (visible) {\n // show\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n setHidden(false);\n Animated.timing(opacity, {\n toValue: 1,\n duration: 200 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) {\n const isInfinity =\n duration === Number.POSITIVE_INFINITY ||\n duration === Number.NEGATIVE_INFINITY;\n\n if (finished && !isInfinity) {\n hideTimeout.current = setTimeout(\n onDismiss,\n duration\n ) as unknown as NodeJS.Timeout;\n }\n }\n });\n } else {\n // hide\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n\n Animated.timing(opacity, {\n toValue: 0,\n duration: 100 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) setHidden(true);\n });\n }\n }, [visible, duration, opacity, scale, onDismiss]);\n\n const { colors, roundness } = theme;\n\n if (hidden) return null;\n\n if (!message) return null;\n\n return (\n <SafeAreaView\n pointerEvents=\"box-none\"\n style={[styles.wrapper, { bottom: customBottom }]}\n >\n <Surface\n pointerEvents=\"box-none\"\n accessibilityLiveRegion=\"polite\"\n style={\n [\n styles.container,\n {\n borderRadius: roundness,\n opacity: opacity,\n transform: [\n {\n scale: visible\n ? opacity.interpolate({\n inputRange: [0, 1],\n outputRange: [0.9, 1],\n })\n : 1,\n },\n ],\n },\n { backgroundColor: colors.onSurface },\n ] as StyleProp<ViewStyle>\n }\n >\n <View\n style={\n type && type === SnackBarType.FAILURE\n ? styles.fail\n : type && type === SnackBarType.WARNING\n ? styles.warn\n : styles.main\n }\n >\n {type && type === SnackBarType.FAILURE ? (\n <AntDesign name=\"exclamationcircleo\" size={20} color=\"white\" />\n ) : (\n <AntDesign name=\"checkcircleo\" size={20} color=\"white\" />\n )}\n <Text style={styles.messageStyle}>{message}</Text>\n <AntDesign\n name=\"close\"\n size={16}\n color=\"white\"\n onPress={() => {\n setHidden(true);\n const cta = \"Close\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_BAR_CUSTOM_SCREEN, cta: cta });\n }}\n />\n </View>\n </Surface>\n </SafeAreaView>\n );\n};\n\nconst styles = StyleSheet.create({\n wrapper: {\n position: 'absolute',\n bottom: 110,\n width: '100%',\n zIndex: 1000,\n },\n container: {\n elevation: 6,\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n margin: 8,\n borderRadius: 4,\n },\n main: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#059669',\n flex: 1,\n },\n fail: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#DC2626',\n flex: 1,\n },\n warn: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#D97706',\n flex: 1,\n },\n messageStyle: {\n flex: 1,\n marginStart: 20,\n marginEnd: 20,\n color: '#ffffff',\n fontWeight: '600',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n },\n});\n\nexport default withTheme(SnackbarCustom);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,QAAQ,EACRC,QAAQ,EACRC,YAAY,EAEZC,UAAU,EACVC,IAAI,EACJC,IAAI,QAEC,cAAc;AACrB,SAASC,OAAO,EAAEC,SAAS,QAAQ,oBAAoB;AACvD,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,KAAK,QAAQ,0CAA0C;AAChE,SAASC,sBAAsB,EAAEC,2BAA2B,EAAEC,kBAAkB,QAAQ,2CAA2C;AACnI,SAASC,uBAAuB,QAAQ,6CAA6C;AAiBrF,MAAMC,eAAe,GAAG,IAAI;AAE5B,WAAYC,YAAY,0BAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAMxB,MAAMC,cAAc,GAAGA,CAAC;EACtBC,OAAO;EACPC,QAAQ,GAAGJ,eAAe;EAC1BK,SAAS;EACTC,OAAO;EACPC,KAAK;EACLC,IAAI;EACJC,YAAY,GAAG;AACF,CAAC,KAAK;EACnB,MAAM;IAAEC,OAAO,EAAEC;EAAQ,CAAC,GAAG1B,KAAK,CAAC2B,MAAM,CACvC,IAAI1B,QAAQ,CAAC2B,KAAK,CAAC,GAAG,CACxB,CAAC;EACD,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAG9B,KAAK,CAAC+B,QAAQ,CAAU,CAACb,OAAO,CAAC;EAE7D,MAAMc,WAAW,GAAGhC,KAAK,CAAC2B,MAAM,CAA6BM,SAAS,CAAC;EACvE,MAAM;IAAEC;EAAM,CAAC,GAAGZ,KAAK,CAACa,SAAS;EAEjCnC,KAAK,CAACoC,S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EACD1B,IAAI,EAAE;IACJyB,OAAO,EAAE,EAAE;IACXJ,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE,QAAQ;IACpB1B,eAAe,EAAE,SAAS;IAC1B6B,IAAI,EAAE;EACR,CAAC;EACDxB,IAAI,EAAE;IACJuB,OAAO,EAAE,EAAE;IACXJ,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE,QAAQ;IACpB1B,eAAe,EAAE,SAAS;IAC1B6B,IAAI,EAAE;EACR,CAAC;EACDnB,YAAY,EAAE;IACZmB,IAAI,EAAE,CAAC;IACPC,WAAW,EAAE,EAAE;IACfC,SAAS,EAAE,EAAE;IACbtB,KAAK,EAAE,SAAS;IAChBuB,UAAU,EAAE,KAAK;IACjBC,UAAU,EACR/F,QAAQ,CAACgG,EAAE,KAAK,SAAS,GACrBxF,KAAK,CAACyF,uBAAuB,GAC7B;EACR;AACF,CAAC,CAAC;AAEF,eAAe3F,SAAS,CAACS,cAAc,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Animated","Platform","SafeAreaView","StyleSheet","Text","View","Surface","withTheme","AntDesign","Fonts","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","DURATION_MEDIUM","SnackBarType","SnackbarCustom","_ref","visible","duration","onDismiss","message","theme","type","customBottom","current","opacity","useRef","Value","hidden","setHidden","useState","hideTimeout","undefined","scale","animation","useEffect","clearTimeout","useLayoutEffect","timing","toValue","useNativeDriver","start","_ref2","finished","isInfinity","Number","POSITIVE_INFINITY","NEGATIVE_INFINITY","setTimeout","_ref3","colors","roundness","createElement","pointerEvents","style","styles","wrapper","bottom","accessibilityLiveRegion","container","borderRadius","transform","interpolate","inputRange","outputRange","backgroundColor","onSurface","FAILURE","fail","WARNING","warn","main","name","size","color","messageStyle","onPress","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","SCAN_BAR_CUSTOM_SCREEN","create","position","width","zIndex","elevation","flexDirection","justifyContent","alignItems","margin","padding","flex","marginStart","marginEnd","fontWeight","fontFamily","OS","IBMPlexSans_600SemiBold"],"sources":["SnackBarCustom.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Animated,\n Platform,\n SafeAreaView,\n StyleProp,\n StyleSheet,\n Text,\n View,\n ViewStyle,\n} from 'react-native';\nimport { Surface, withTheme } from 'react-native-paper';\nimport { AntDesign } from '@expo/vector-icons';\nimport { Fonts } from '../../styles/executionTasks/CommonStyles';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\nexport interface SnackbarProps {\n visible: boolean;\n duration?: number;\n /**\n * Callback called when Snackbar is dismissed. The `visible` prop needs to be updated when this is called.\n */\n onDismiss: () => void;\n /**\n * Text content of the Snackbar.\n */\n message: string;\n type?: SnackBarType;\n theme: ReactNativePaper.Theme;\n customBottom?: number;\n}\nconst DURATION_MEDIUM = 3000;\n\nexport enum SnackBarType {\n SUCCESS,\n FAILURE,\n WARNING,\n}\n\nconst SnackbarCustom = ({\n visible,\n duration = DURATION_MEDIUM,\n onDismiss,\n message,\n theme,\n type,\n customBottom = 110,\n}: SnackbarProps) => {\n const { current: opacity } = React.useRef<Animated.Value>(\n new Animated.Value(0.0)\n );\n const [hidden, setHidden] = React.useState<boolean>(!visible);\n\n const hideTimeout = React.useRef<NodeJS.Timeout | undefined>(undefined);\n const { scale } = theme.animation;\n\n React.useEffect(() => {\n return () => {\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n };\n }, []);\n\n React.useLayoutEffect(() => {\n if (visible) {\n // show\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n setHidden(false);\n Animated.timing(opacity, {\n toValue: 1,\n duration: 200 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) {\n const isInfinity =\n duration === Number.POSITIVE_INFINITY ||\n duration === Number.NEGATIVE_INFINITY;\n\n if (finished && !isInfinity) {\n hideTimeout.current = setTimeout(\n onDismiss,\n duration\n ) as unknown as NodeJS.Timeout;\n }\n }\n });\n } else {\n // hide\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n\n Animated.timing(opacity, {\n toValue: 0,\n duration: 100 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) setHidden(true);\n });\n }\n }, [visible, duration, opacity, scale, onDismiss]);\n\n const { colors, roundness } = theme;\n\n if (hidden) return null;\n\n if (!message) return null;\n\n return (\n <SafeAreaView\n pointerEvents=\"box-none\"\n style={[styles.wrapper, { bottom: customBottom }]}\n >\n <Surface\n pointerEvents=\"box-none\"\n accessibilityLiveRegion=\"polite\"\n style={\n [\n styles.container,\n {\n borderRadius: roundness,\n opacity: opacity,\n transform: [\n {\n scale: visible\n ? opacity.interpolate({\n inputRange: [0, 1],\n outputRange: [0.9, 1],\n })\n : 1,\n },\n ],\n },\n { backgroundColor: colors.onSurface },\n ] as StyleProp<ViewStyle>\n }\n >\n <View\n style={\n type && type === SnackBarType.FAILURE\n ? styles.fail\n : type && type === SnackBarType.WARNING\n ? styles.warn\n : styles.main\n }\n >\n {type && type === SnackBarType.FAILURE ? (\n <AntDesign name=\"exclamationcircleo\" size={20} color=\"white\" />\n ) : (\n <AntDesign name=\"checkcircleo\" size={20} color=\"white\" />\n )}\n <Text style={styles.messageStyle}>{message}</Text>\n <AntDesign\n name=\"close\"\n size={16}\n color=\"white\"\n onPress={() => {\n setHidden(true);\n const cta = \"Close\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_BAR_CUSTOM_SCREEN, cta: cta });\n }}\n />\n </View>\n </Surface>\n </SafeAreaView>\n );\n};\n\nconst styles = StyleSheet.create({\n wrapper: {\n position: 'absolute',\n bottom: 110,\n width: '100%',\n zIndex: 1000,\n },\n container: {\n elevation: 6,\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n margin: 8,\n borderRadius: 4,\n },\n main: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#059669',\n flex: 1,\n },\n fail: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#DC2626',\n flex: 1,\n },\n warn: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#D97706',\n flex: 1,\n },\n messageStyle: {\n flex: 1,\n marginStart: 20,\n marginEnd: 20,\n color: '#ffffff',\n fontWeight: '600',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n },\n});\n\nexport default withTheme(SnackbarCustom);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,QAAQ,EACRC,QAAQ,EACRC,YAAY,EAEZC,UAAU,EACVC,IAAI,EACJC,IAAI,QAEC,cAAc;AACrB,SAASC,OAAO,EAAEC,SAAS,QAAQ,oBAAoB;AACvD,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,KAAK,QAAQ,0CAA0C;AAChE,SAASC,sBAAsB,EAAEC,2BAA2B,EAAEC,kBAAkB,QAAQ,2CAA2C;AACnI,SAASC,uBAAuB,QAAQ,6CAA6C;AAiBrF,MAAMC,eAAe,GAAG,IAAI;AAE5B,WAAYC,YAAY,0BAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAMxB,MAAMC,cAAc,GAAGC,IAAA,IAQF;EAAA,IARG;IACtBC,OAAO;IACPC,QAAQ,GAAGL,eAAe;IAC1BM,SAAS;IACTC,OAAO;IACPC,KAAK;IACLC,IAAI;IACJC,YAAY,GAAG;EACF,CAAC,GAAAP,IAAA;EACd,MAAM;IAAEQ,OAAO,EAAEC;EAAQ,CAAC,GAAG3B,KAAK,CAAC4B,MAAM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AM;IACbC,MAAM,EAAE;EACV,CAAC;EACD5B,SAAS,EAAE;IACT6B,SAAS,EAAE,CAAC;IACZC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE,QAAQ;IACpBC,MAAM,EAAE,CAAC;IACThC,YAAY,EAAE;EAChB,CAAC;EACDW,IAAI,EAAE;IACJsB,OAAO,EAAE,EAAE;IACXJ,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE,QAAQ;IACpB1B,eAAe,EAAE,SAAS;IAC1B6B,IAAI,EAAE;EACR,CAAC;EACD1B,IAAI,EAAE;IACJyB,OAAO,EAAE,EAAE;IACXJ,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE,QAAQ;IACpB1B,eAAe,EAAE,SAAS;IAC1B6B,IAAI,EAAE;EACR,CAAC;EACDxB,IAAI,EAAE;IACJuB,OAAO,EAAE,EAAE;IACXJ,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE,QAAQ;IACpB1B,eAAe,EAAE,SAAS;IAC1B6B,IAAI,EAAE;EACR,CAAC;EACDnB,YAAY,EAAE;IACZmB,IAAI,EAAE,CAAC;IACPC,WAAW,EAAE,EAAE;IACfC,SAAS,EAAE,EAAE;IACbtB,KAAK,EAAE,SAAS;IAChBuB,UAAU,EAAE,KAAK;IACjBC,UAAU,EACRlG,QAAQ,CAACmG,EAAE,KAAK,SAAS,GACrB3F,KAAK,CAAC4F,uBAAuB,GAC7B;EACR;AACF,CAAC,CAAC;AAEF,eAAe9F,SAAS,CAACS,cAAc,CAAC"}
@@ -2,14 +2,15 @@ import { View, Text, Pressable, StyleSheet, TextInput } from 'react-native';
2
2
  import React, { useRef, useState } from 'react';
3
3
  import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
4
4
  import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
5
- const SplitTextInput = ({
6
- styles,
7
- value,
8
- onChange,
9
- maxLength,
10
- keyboardType,
11
- hasError
12
- }) => {
5
+ const SplitTextInput = _ref => {
6
+ let {
7
+ styles,
8
+ value,
9
+ onChange,
10
+ maxLength,
11
+ keyboardType,
12
+ hasError
13
+ } = _ref;
13
14
  const inputRef = useRef();
14
15
  const boxArray = new Array(maxLength).fill(0);
15
16
  const [isInputBoxFocused, setIsInputBoxFocused] = useState(false);