@os1-platform/dispatch-mobile 3.1.9 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/android/.gradle/8.13/checksums/checksums.lock +0 -0
- package/android/.gradle/8.13/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.13/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.13/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/{8.10.2 → 8.13}/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.13/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.idea/caches/deviceStreaming.xml +218 -12
- package/android/build.gradle +14 -15
- package/android/gradle.properties +9 -4
- package/android/src/main/AndroidManifest.xml +4 -1
- package/android/src/main/java/com/dispatchsdk/location/LocationModule.kt +3 -3
- package/android/src/main/java/com/dispatchsdk/sync/SyncEventService.kt +2 -3
- package/android/src/main/java/com/dispatchsdk/utils/DispatchSdkUtils.kt +27 -11
- package/babel.config.js +1 -1
- package/dispatch-mobile.podspec +1 -1
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js +1 -2
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -1
- package/lib/commonjs/analytics/sentry/SentrySdkConstants.js +4 -0
- package/lib/commonjs/analytics/sentry/SentrySdkConstants.js.map +1 -1
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +1 -2
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +4 -5
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +5 -6
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js +1 -2
- package/lib/commonjs/components/executiontasks/collectPayment/CollectPayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js +1 -2
- package/lib/commonjs/components/executiontasks/collectPayment/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js +3 -4
- package/lib/commonjs/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js +5 -9
- package/lib/commonjs/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js +8 -9
- package/lib/commonjs/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -1
- package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js +24 -25
- package/lib/commonjs/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +1 -2
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +5 -6
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +1 -2
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +6 -7
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +1 -2
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +5 -6
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +13 -35
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +1 -2
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +1 -2
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +4 -5
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +1 -2
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +1 -2
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +1 -2
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +5 -6
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +5 -6
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +5 -6
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +5 -6
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +1 -2
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +5 -6
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +8 -9
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js +17 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +5 -6
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +1 -2
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +6 -6
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/utils.js +13 -15
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +1 -2
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/components/ContactListView.js +5 -7
- package/lib/commonjs/components/executiontasks/validateOTP/components/ContactListView.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/components/OTPView.js +5 -6
- package/lib/commonjs/components/executiontasks/validateOTP/components/OTPView.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/components/VerificationComplete.js +8 -11
- package/lib/commonjs/components/executiontasks/validateOTP/components/VerificationComplete.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +1 -2
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js +1 -2
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +1 -2
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -2
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +7 -12
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/widgets/AlertDisplay.js +1 -2
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +3 -4
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +2 -2
- package/lib/commonjs/components/widgets/Card.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +4 -3
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
- package/lib/commonjs/components/widgets/SnackBarCustom.js +12 -15
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +2 -3
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js +1 -2
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
- package/lib/commonjs/components/widgets/Timer.js +1 -2
- package/lib/commonjs/components/widgets/Timer.js.map +1 -1
- package/lib/commonjs/database/DBManager.js +112 -0
- package/lib/commonjs/database/DBManager.js.map +1 -0
- package/lib/commonjs/database/dbUpdate.json +6 -0
- package/lib/commonjs/index.js +1 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +1 -2
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +8 -9
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +5 -6
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +13 -10
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/location/LocationManager.js +0 -4
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +8 -3
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +1 -2
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +6 -2
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/database.js +118 -47
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +1 -2
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +17 -22
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +86 -77
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +25 -28
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +1 -2
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +1 -2
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETConfig.js +1 -0
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js +2 -2
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +1 -2
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +1 -2
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +1 -2
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CollectPaymentScreen.js +1 -2
- package/lib/commonjs/ui/screens/CollectPaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +1 -2
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +1 -2
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +1 -2
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +1 -2
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +1 -2
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +1 -2
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +1 -2
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +1 -2
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +1 -2
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +1 -2
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +1 -2
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +1 -2
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +1 -2
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +1 -2
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/utils/Constants.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +1 -1
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js +6 -5
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +3 -2
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +1 -2
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +1 -2
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/commonjs/utils/hooks/useModal.js +1 -2
- package/lib/commonjs/utils/hooks/useModal.js.map +1 -1
- package/lib/commonjs/utils/storage.js +1 -2
- package/lib/commonjs/utils/storage.js.map +1 -1
- package/lib/module/analytics/sentry/SentrySdkConstants.js +4 -0
- package/lib/module/analytics/sentry/SentrySdkConstants.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +3 -3
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js +2 -2
- package/lib/module/components/executiontasks/collectPayment/components/CompletePayment.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js +3 -6
- package/lib/module/components/executiontasks/collectPayment/components/InitPayment.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js +6 -6
- package/lib/module/components/executiontasks/collectPayment/components/PaymentContactDetails.js.map +1 -1
- package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js +21 -21
- package/lib/module/components/executiontasks/collectPayment/components/ProcessPayment.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +3 -3
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +4 -4
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +3 -3
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +11 -32
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +2 -2
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +4 -4
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +3 -3
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +3 -3
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +3 -3
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +3 -3
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +5 -5
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/interfaces.js +16 -0
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +5 -5
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +2 -2
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +3 -3
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/module/components/executiontasks/scan/utils.js +13 -14
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/components/ContactListView.js +3 -4
- package/lib/module/components/executiontasks/validateOTP/components/ContactListView.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/components/OTPView.js +3 -3
- package/lib/module/components/executiontasks/validateOTP/components/OTPView.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/components/VerificationComplete.js +7 -9
- package/lib/module/components/executiontasks/validateOTP/components/VerificationComplete.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +7 -10
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/Card.js +1 -1
- package/lib/module/components/widgets/Card.js.map +1 -1
- package/lib/module/components/widgets/SearchBar.js +2 -1
- package/lib/module/components/widgets/SearchBar.js.map +1 -1
- package/lib/module/components/widgets/SnackBarCustom.js +6 -8
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +1 -1
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/module/components/widgets/Timer.js.map +1 -1
- package/lib/module/database/DBManager.js +104 -0
- package/lib/module/database/DBManager.js.map +1 -0
- package/lib/module/database/dbUpdate.json +6 -0
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js +7 -7
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +4 -4
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +13 -8
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/location/LocationManager.js +0 -4
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +7 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/callbacksHandler.js +0 -2
- package/lib/module/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +5 -1
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/database.js +117 -43
- package/lib/module/manager/syncmanager/database.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +16 -20
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +85 -75
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +20 -22
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/models/execTasks/ETConfig.js +1 -0
- package/lib/module/models/execTasks/ETConfig.js.map +1 -1
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js +2 -2
- package/lib/module/native/signature/SignatureCapture.js.map +1 -1
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/module/utils/Constants.js.map +1 -1
- package/lib/module/utils/Logger.js +1 -1
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/SdkUtils.js +5 -3
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +2 -0
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/typescript/babel.config.d.ts +1 -0
- package/lib/typescript/jest.config.d.ts +7 -0
- package/lib/typescript/jest.setup.d.ts +1 -0
- package/lib/typescript/scripts/bootstrap.d.ts +1 -0
- package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
- package/lib/typescript/{components → src/components}/executiontasks/scan/interfaces.d.ts +15 -0
- package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOTPSchema.d.ts +1 -1
- package/lib/typescript/{components → src/components}/widgets/CancelOrderDialog.d.ts +1 -1
- package/lib/typescript/{components → src/components}/widgets/SnackBarCustom.d.ts +3 -2
- package/lib/typescript/src/components/widgets/Timer.d.ts +6 -0
- package/lib/typescript/src/database/DBManager.d.ts +1 -0
- package/lib/typescript/{manager → src/manager}/dispatchCodes/EventCodeRepo.d.ts +1 -1
- package/lib/typescript/{manager → src/manager}/dispatchCodes/ReasonCodeRepo.d.ts +5 -3
- package/lib/typescript/{manager → src/manager}/syncmanager/DBConfig.d.ts +5 -1
- package/lib/typescript/src/manager/syncmanager/database.d.ts +31 -0
- package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentManager.d.ts +2 -3
- package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentSyncManager.d.ts +1 -2
- package/lib/typescript/{network → src/network}/GraphQLClient.d.ts +5 -5
- package/lib/typescript/{network → src/network}/NetworkClient.d.ts +3 -3
- package/lib/typescript/{network → src/network}/client.d.ts +3 -3
- package/lib/typescript/{resources → src/resources}/Login.d.ts +7 -7
- package/lib/typescript/{resources → src/resources}/network.d.ts +1 -1
- package/lib/typescript/{utils → src/utils}/ApiUtils.d.ts +2 -2
- package/lib/typescript/{utils → src/utils}/Constants.d.ts +4 -0
- package/package.json +104 -127
- package/src/components/executiontasks/cancellation/CancelET.tsx +1 -1
- package/src/components/executiontasks/captureInput/CaptureText.tsx +6 -6
- package/src/components/executiontasks/collectPayment/components/CompletePayment.tsx +2 -3
- package/src/components/executiontasks/collectPayment/components/InitPayment.tsx +3 -7
- package/src/components/executiontasks/collectPayment/components/PaymentContactDetails.tsx +3 -4
- package/src/components/executiontasks/collectPayment/components/ProcessPayment.tsx +7 -8
- package/src/components/executiontasks/deliver/SLDeliverET.tsx +3 -4
- package/src/components/executiontasks/doodle/SignatureET.tsx +5 -5
- package/src/components/executiontasks/dropCash/SLDropCash.tsx +3 -4
- package/src/components/executiontasks/forms/FormGenerator.tsx +38 -55
- package/src/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.tsx +2 -2
- package/src/components/executiontasks/imageCapture/ImageCapture.tsx +5 -7
- package/src/components/executiontasks/payments/completePayment/CompletePaymentET.tsx +3 -4
- package/src/components/executiontasks/payments/init/InitPaymentET.tsx +3 -4
- package/src/components/executiontasks/payments/processPayment/ProcessPaymentET.tsx +3 -4
- package/src/components/executiontasks/pickup/PickupET.tsx +3 -9
- package/src/components/executiontasks/pickup/SLPickupET.tsx +3 -4
- package/src/components/executiontasks/scan/ScanET.tsx +5 -6
- package/src/components/executiontasks/scan/interfaces.ts +16 -0
- package/src/components/executiontasks/scan/sub_components/CScanner.tsx +7 -6
- package/src/components/executiontasks/scan/sub_components/DropDownUtils.ts +2 -2
- package/src/components/executiontasks/scan/sub_components/ERDropDown.tsx +0 -1
- package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +3 -3
- package/src/components/executiontasks/scan/utils.ts +13 -13
- package/src/components/executiontasks/validateOTP/ValidateOTPET.tsx +5 -0
- package/src/components/executiontasks/validateOTP/ValidateOTPSchema.ts +1 -1
- package/src/components/executiontasks/validateOTP/components/ContactListView.tsx +3 -11
- package/src/components/executiontasks/validateOTP/components/OTPView.tsx +3 -4
- package/src/components/executiontasks/validateOTP/components/VerificationComplete.tsx +7 -7
- package/src/components/executiontasks/verifyOtp/VerifyOtpET.tsx +9 -17
- package/src/components/widgets/CancelOrderDialog.tsx +2 -2
- package/src/components/widgets/Card.tsx +1 -1
- package/src/components/widgets/SearchBar.tsx +2 -1
- package/src/components/widgets/SnackBarCustom.tsx +8 -10
- package/src/components/widgets/SplitTextInput.tsx +1 -1
- package/src/components/widgets/Timer.tsx +0 -1
- package/src/database/DBManager.ts +118 -0
- package/src/database/dbUpdate.json +6 -0
- package/src/manager/dispatch/DispatchStateContainer.tsx +5 -25
- package/src/manager/dispatchCodes/EventCodeRepo.ts +8 -12
- package/src/manager/dispatchCodes/ReasonCodeContainer.ts +5 -5
- package/src/manager/dispatchCodes/ReasonCodeRepo.ts +17 -15
- package/src/manager/location/LocationManager.ts +1 -8
- package/src/manager/sdk/DispatchSDKManager.ts +12 -4
- package/src/manager/sdk/callbacksHandler.ts +3 -8
- package/src/manager/syncmanager/DBConfig.ts +6 -1
- package/src/manager/syncmanager/database.ts +130 -71
- package/src/manager/syncmanager/document/DocumentManager.ts +19 -24
- package/src/manager/syncmanager/document/DocumentSyncManager.ts +95 -82
- package/src/manager/syncmanager/events/ETEventsManager.ts +30 -35
- package/src/manager/syncmanager/events/EventsSyncManager.ts +1 -1
- package/src/models/sdk.ts +2 -6
- package/src/native/signature/SignatureCapture.tsx +4 -3
- package/src/network/client.ts +2 -2
- package/src/ui/screens/ValidateOTPScreen.tsx +2 -4
- package/src/utils/Constants.ts +6 -1
- package/src/utils/Logger.ts +2 -1
- package/src/utils/SdkUtils.ts +6 -7
- package/src/utils/SyncManagerUtils.ts +1 -0
- package/tsconfig.build.json +1 -1
- package/tsconfig.json +2 -3
- package/android/.gradle/8.10.2/checksums/checksums.lock +0 -0
- package/android/.gradle/8.10.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.10.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.10.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.10.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.10.2/gc.properties +0 -0
- package/lib/typescript/components/widgets/Timer.d.ts +0 -7
- package/lib/typescript/manager/syncmanager/database.d.ts +0 -7
- /package/android/.gradle/{8.10.2 → 8.13}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{8.10.2 → 8.13}/fileHashes/resourceHashesCache.bin +0 -0
- /package/android/.gradle/{8.10.2/dependencies-accessors → 8.13}/gc.properties +0 -0
- /package/lib/typescript/{analytics → src/analytics}/firebase/FirebaseLogging.d.ts +0 -0
- /package/lib/typescript/{analytics → src/analytics}/sentry/SentryAnalyticsSingleton.d.ts +0 -0
- /package/lib/typescript/{analytics → src/analytics}/sentry/SentryAnalyticsUtils.d.ts +0 -0
- /package/lib/typescript/{analytics → src/analytics}/sentry/SentryModels.d.ts +0 -0
- /package/lib/typescript/{analytics → src/analytics}/sentry/SentrySdkConstants.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/dispatch/DispatchExecNavigator.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/CompletedWFSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/ExecutionTasksIndex.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/cancellation/CancelET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/cancellation/CancellationSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/captureInput/CaptureInputSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/captureInput/CaptureText.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/captureInput/utils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/CollectPayment.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/CollectPaymentSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/PaymentStyles.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/PaymentUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/CompletePayment.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/CustomContactsModal.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/InitPayment.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/PaymentContactDetails.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/collectPayment/components/ProcessPayment.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/deliver/DeliverET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/deliver/DeliverETInput.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/deliver/SLDeliverET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/display/DisplayModalET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/display/DisplaySchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/doodle/SignatureET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/doodle/SignatureSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/dropCash/DropCashET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/dropCash/DropCashSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/dropCash/SLDropCash.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/FormGenerator.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/FormSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/DateTimeWidget.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/DropdownWidget.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/forms/widgets/TimeRangeSelector.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpRequestET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/httpRequest/HttpRequestETSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/CaptureSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/CaptureUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/imageCapture/ImageCapture.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/PaymentStyles.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/PaymentUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/completePayment/CompletePaymentET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/init/InitPaymentET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/init/InitPaymentSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/pickup/PickpSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/pickup/PickupET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/pickup/SLPickupET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/ScanET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/ScanSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/constants.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/modalConstant.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/CScanner.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/DropDownUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/ERDropDown.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/sub_components/SummaryPage.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/scan/utils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOTPET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/ValidateOtpStyles.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/ContactListView.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/OTPView.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/components/VerificationComplete.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/constants.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/ContactCard.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/OTPInput.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/sub-components/ResendOTPButton.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/validateOTP/utils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyInput/VerifyInputSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/GeofenceUtils.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/VerifyLocSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyLocation/VerifyLocationET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyOtp/VerifyOtpET.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/utils/Scale.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/utils/index.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/AlertDisplay.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/Card.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/ConfirmCancelModal.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/GoBackModal.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/IconButton.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/ModalWidget.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/ProgressDialog.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/SearchBar.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/SplitTextInput.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/TabsComponent.d.ts +0 -0
- /package/lib/typescript/{components → src/components}/widgets/Toaster.d.ts +0 -0
- /package/lib/typescript/{config → src/config}/DispatchSDKConfig.d.ts +0 -0
- /package/lib/typescript/{constants → src/constants}/apiConstants.d.ts +0 -0
- /package/lib/typescript/{constants → src/constants}/constants.d.ts +0 -0
- /package/lib/typescript/{constants → src/constants}/statuscode.d.ts +0 -0
- /package/lib/typescript/{errors → src/errors}/BaseError.d.ts +0 -0
- /package/lib/typescript/{errors → src/errors}/ErrorCodes.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/EventDispatcher.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/EventListener.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/constants.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/index.d.ts +0 -0
- /package/lib/typescript/{events → src/events}/interface.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/CircleMark.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/FailedIcon.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/FailureCloseIcon.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/ScanIcon.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/SuccessCompleteIcon.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/file.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/index.d.ts +0 -0
- /package/lib/typescript/{icons → src/icons}/interface.d.ts +0 -0
- /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
- /package/lib/typescript/{locale → src/locale}/Str.d.ts +0 -0
- /package/lib/typescript/{locale → src/locale}/i18n.d.ts +0 -0
- /package/lib/typescript/{locale → src/locale}/util.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/dispatch/DispatchStateContainer.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/dispatchCodes/EventCodeContainer.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/dispatchCodes/ReasonCodeContainer.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/jobRemoval/JobRemovalManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/location/LocationManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/sdk/DispatchSDKManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/sdk/DispatchSdkCache.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/sdk/callbacksHandler.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/AppSyncManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/NativeSyncManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/constants.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/document/DocumentHttpClient.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/document/models.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/events/ETEventsManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/events/EventsGraphQLClient.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/events/EventsSyncManager.d.ts +0 -0
- /package/lib/typescript/{manager → src/manager}/syncmanager/events/SyncHttpClient.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/DispatchModels.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/ReasonCodes.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/auth.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/execTasks/ETBaseModels.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/execTasks/ETConfig.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/execution.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/fcm.d.ts +0 -0
- /package/lib/typescript/{models → src/models}/sdk.d.ts +0 -0
- /package/lib/typescript/{native → src/native}/LocationModule.d.ts +0 -0
- /package/lib/typescript/{native → src/native}/PermissionModule.d.ts +0 -0
- /package/lib/typescript/{native → src/native}/signature/SignatureCapture.d.ts +0 -0
- /package/lib/typescript/{network → src/network}/NetworkUtils.d.ts +0 -0
- /package/lib/typescript/{network → src/network}/Queries.d.ts +0 -0
- /package/lib/typescript/{res → src/res}/strings.d.ts +0 -0
- /package/lib/typescript/{styles → src/styles}/SdkColors.d.ts +0 -0
- /package/lib/typescript/{styles → src/styles}/executionTasks/CommonStyles.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/CancellationScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/CaptureInputScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/CollectPaymentScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/CompleteObjectiveScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/DeliverScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/DisplayScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/DoodleScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/DropCashScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/ETScreensIndex.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/FormsScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/GeofenceScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/HttpRequestScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/ImageCaptureScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/PaymentScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/PickupScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/ScanScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/StartWorkFlowScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/ValidateOTPScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/screens/WithBaseDispatchScreen.d.ts +0 -0
- /package/lib/typescript/{ui → src/ui}/uiConfig/RouteParams.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/Enums.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/ExecTaskUtils.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/Logger.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/NetworkUtil.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/SdkUtils.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/SyncManagerUtils.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/context/paymentContext.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/context/valdiateOTPContext.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/fcm/FCM.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/fcm/FcmUtils.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/helper.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/hooks/useModal.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/hooks/useTimer.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/loginHelper.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/storage.d.ts +0 -0
- /package/lib/typescript/{utils → src/utils}/utils.d.ts +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React, { useEffect, useLayoutEffect } from 'react';
|
|
4
4
|
import { BackHandler, FlatList, Text, View } from 'react-native';
|
|
5
5
|
import { useFocusEffect } from '@react-navigation/native';
|
|
6
|
-
import Icon from 'react-native-vector-icons/
|
|
6
|
+
import Icon from '@react-native-vector-icons/material-icons';
|
|
7
7
|
|
|
8
8
|
// Styles
|
|
9
9
|
import styles from '../ValidateOtpStyles';
|
|
@@ -23,9 +23,8 @@ export const ContactListView = props => {
|
|
|
23
23
|
}, [props]);
|
|
24
24
|
// Handle back-button click
|
|
25
25
|
useFocusEffect(React.useCallback(() => {
|
|
26
|
-
BackHandler.addEventListener('hardwareBackPress', props.handleBackNavigation);
|
|
27
|
-
return () =>
|
|
28
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
26
|
+
const backHandler = BackHandler.addEventListener('hardwareBackPress', props.handleBackNavigation);
|
|
27
|
+
return () => backHandler.remove();
|
|
29
28
|
}, []));
|
|
30
29
|
useLayoutEffect(() => {
|
|
31
30
|
props.navigation.setOptions({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useLayoutEffect","BackHandler","FlatList","Text","View","useFocusEffect","Icon","styles","ContactCard","fireEventWithScreenName","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","ContactListView","props","_props$generateMessag","setIsContactVisited","useCallback","addEventListener","handleBackNavigation","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useLayoutEffect","BackHandler","FlatList","Text","View","useFocusEffect","Icon","styles","ContactCard","fireEventWithScreenName","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","ContactListView","props","_props$generateMessag","setIsContactVisited","useCallback","backHandler","addEventListener","handleBackNavigation","remove","navigation","setOptions","title","headerLeft","createElement","onPress","cta","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","VALIDATE_OTP_ET_SCREEN","name","color","size","style","paddingRight","paddingTop","renderItem","item","handleSelectContact","contactDetails","flex","titleContainer","titleText","generateMessage","toString","length","contactListContainer","headingTitle","contactList","data","showsVerticalScrollIndicator","automaticallyAdjustKeyboardInsets","nestedScrollEnabled","keyExtractor","value"],"sources":["ContactListView.tsx"],"sourcesContent":["/* eslint-disable react-native/no-inline-styles */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport React, { FC, useEffect, useLayoutEffect } from 'react';\nimport { BackHandler, FlatList, Text, View } from 'react-native';\nimport { useFocusEffect } from '@react-navigation/native';\nimport Icon from '@react-native-vector-icons/material-icons';\n\n// Styles\nimport styles from '../ValidateOtpStyles';\n\n// Types\nimport { ValidateOTPInput } from '../ValidateOTPSchema';\n\n// Sub-components\nimport { ContactCard } from '../sub-components/ContactCard';\n\n// Analytics\nimport { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';\nimport {\n ScreenNameSdkConstants,\n SentryEventNameSdkConstants,\n SeverityLevelValue,\n} from '../../../../analytics/sentry/SentrySdkConstants';\n\nexport const ContactListView: FC<ValidateOTPInput> = (props) => {\n useEffect(() => {\n props.setIsContactVisited(true);\n }, [props]);\n // Handle back-button click\n useFocusEffect(\n React.useCallback(() => {\n const backHandler = BackHandler.addEventListener('hardwareBackPress', props.handleBackNavigation);\n return () => backHandler.remove();\n }, [])\n );\n\n useLayoutEffect(() => {\n props.navigation.setOptions({\n title: props.title,\n headerLeft: () => {\n return (\n <Icon\n onPress={() => {\n props.handleBackNavigation();\n const cta = 'Arrow Back';\n fireEventWithScreenName({\n severityLevel: SeverityLevelValue.LOG,\n eventName: SentryEventNameSdkConstants.BUTTON_CLICKED,\n screenName: ScreenNameSdkConstants.VALIDATE_OTP_ET_SCREEN,\n cta: cta,\n });\n }}\n name=\"arrow-back\"\n color={'black'}\n size={25}\n style={{\n paddingRight: 15,\n paddingTop: 5,\n }}\n />\n );\n },\n });\n }, [props.navigation, props, props.title]);\n\n // *render contact card\n const renderItem = ({ item }: { item: any }) => {\n return (\n <ContactCard\n handleSelectContact={props.handleSelectContact}\n contactDetails={item}\n />\n );\n };\n\n return (\n <View style={{ flex: 1 }}>\n <View style={styles.titleContainer}>\n <Text style={styles.titleText}>\n {props?.generateMessage?.toString()?.length > 0\n ? props.generateMessage\n : 'Proceed to OTP verification? A verification code will be sent to the customer'}\n </Text>\n </View>\n <View style={styles.contactListContainer}>\n <Text style={[styles.titleText, styles.headingTitle]}>\n Select the contact to receive the OTP\n </Text>\n <FlatList\n style={styles.contactList}\n data={props.contactList}\n showsVerticalScrollIndicator={false}\n automaticallyAdjustKeyboardInsets={true}\n nestedScrollEnabled\n keyExtractor={(item: any) => item.value.toString()}\n renderItem={renderItem}\n />\n </View>\n </View>\n );\n};\n"],"mappings":"AAAA;AACA;AACA,OAAOA,KAAK,IAAQC,SAAS,EAAEC,eAAe,QAAQ,OAAO;AAC7D,SAASC,WAAW,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAChE,SAASC,cAAc,QAAQ,0BAA0B;AACzD,OAAOC,IAAI,MAAM,2CAA2C;;AAE5D;AACA,OAAOC,MAAM,MAAM,sBAAsB;;AAEzC;;AAGA;AACA,SAASC,WAAW,Q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IAAK;IACxCC,mBAAmB;IACnBC,YAAY,EAAGhB,IAAS,IAAKA,IAAI,CAACiB,KAAK,CAACV,QAAQ,CAAC,CAAE;IACnDR,UAAU,EAAEA;EAAW,CACxB,CACG,CACF,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
4
4
|
import React, { useEffect, useLayoutEffect } from 'react';
|
|
5
5
|
import { BackHandler, Text, View } from 'react-native';
|
|
6
6
|
import { useFocusEffect } from '@react-navigation/native';
|
|
7
|
-
import Icon from 'react-native-vector-icons/
|
|
7
|
+
import Icon from '@react-native-vector-icons/material-icons';
|
|
8
8
|
|
|
9
9
|
// Components
|
|
10
10
|
import OTPInput from '../sub-components/OTPInput';
|
|
@@ -120,8 +120,8 @@ export const OTPView = props => {
|
|
|
120
120
|
|
|
121
121
|
// Handle back-button click
|
|
122
122
|
useFocusEffect(React.useCallback(() => {
|
|
123
|
-
BackHandler.addEventListener('hardwareBackPress', handleBackPress);
|
|
124
|
-
return () =>
|
|
123
|
+
const backHandler = BackHandler.addEventListener('hardwareBackPress', handleBackPress);
|
|
124
|
+
return () => backHandler.remove();
|
|
125
125
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
126
126
|
}, []));
|
|
127
127
|
useLayoutEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useLayoutEffect","BackHandler","Text","View","useFocusEffect","Icon","OTPInput","ResendOTPButton","styles","maskContact","resendOTP","updateResendCount","VALIDATE_OTP_SCREENS","useResendOtpTimer","SnackBarType","ERROR_RESEND_OTP","OTP_SENT_SUCCESSFULLY","fireEventWithScreenName","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","OTPView","props","_props$resendConfig","_props$validateMessag","_props$selectedContac","_props$selectedContac2","formattedTime","timer","resetTimer","resendConfig","enableDelay","handleBackPress","doorstepOTP","isContactVisited","setCurrentScreen","CONTACT_LIST","handleBackNavigation","setOTPCode","handleResendOtp","_props$orderData","payload","refId","meta","orderIds","orderData","map","order","_order$displayInfo","displayInfo","orderId","contactInfo","id","selectedContact","mode","type","index","response","domain","status","_response$data","setSnackBar","show","message","data","result","OTP_FAILED","_response$data2","_response$additionalI","resendCountValue","Number","resendCount","additionalInfo","setResendCount","OTP_SUCCESS","cta","buttonTitle","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","VALIDATE_OTP_ET_SCREEN","error","console","useCallback","addEventListener","removeEventListener","navigation","setOptions","title","headerLeft","createElement","onPress","name","color","size","style","paddingRight","paddingTop","renderErrorMessage","errorMessage","renderRetryButton","enableRetry","enableResends","_extends","flex","titleContainer","titleText","validateMessage","toString","length","otpContainer","otpTextMsg","value","input","otpInputConfig","otpCode","hasError","setHasError","setErrorMessage"],"sources":["OTPView.tsx"],"sourcesContent":["/* eslint-disable react-native/no-inline-styles */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport React, { FC, useEffect, useLayoutEffect } from 'react';\nimport { BackHandler, Text, View } from 'react-native';\nimport { useFocusEffect } from '@react-navigation/native';\nimport Icon from 'react-native-vector-icons/MaterialIcons';\n\n// Components\nimport OTPInput from '../sub-components/OTPInput';\nimport { ResendOTPButton } from '../sub-components/ResendOTPButton';\n\n// Styles\nimport styles from '../ValidateOtpStyles';\n\n// Utilities\nimport { maskContact } from '../../../../utils/ExecTaskUtils';\nimport { resendOTP, updateResendCount, VALIDATE_OTP_SCREENS } from '../utils';\nimport useResendOtpTimer from '../../../../utils/hooks/useTimer';\n\n// Types\nimport { ValidateOTPInput } from '../ValidateOTPSchema';\nimport { SnackBarType } from '../../../../components/widgets/SnackBarCustom';\nimport { ERROR_RESEND_OTP, OTP_SENT_SUCCESSFULLY } from '../constants';\n\n// Analytics\nimport { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';\nimport {\n ScreenNameSdkConstants,\n SentryEventNameSdkConstants,\n SeverityLevelValue,\n} from '../../../../analytics/sentry/SentrySdkConstants';\n\nexport const OTPView: FC<ValidateOTPInput> = (props) => {\n const { formattedTime, timer, resetTimer } = useResendOtpTimer(\n props.resendConfig?.enableDelay\n );\n\n const handleBackPress = () => {\n if (props.doorstepOTP && props.isContactVisited) {\n props.setCurrentScreen(VALIDATE_OTP_SCREENS.CONTACT_LIST);\n } else {\n props.handleBackNavigation();\n }\n props.setOTPCode('');\n return true;\n };\n\n const handleResendOtp = async () => {\n const payload = {\n refId: props.refId,\n meta: {\n orderIds: props.orderData?.map((order) => order?.displayInfo?.orderId),\n },\n ...(props.doorstepOTP && {\n contactInfo: {\n id: props.selectedContact.id,\n mode: props.selectedContact.mode,\n type: props.selectedContact.type,\n index: props.selectedContact.index,\n },\n }),\n };\n try {\n // if (props.doorstepOTP && !props.isContactVisited) {\n // props.setCurrentScreen(VALIDATE_OTP_SCREENS.CONTACT_LIST);// required may be in future\n // } else {\n props.setOTPCode('');\n // Attempt to resend OTP\n const response = await resendOTP(payload, {\n ...props,\n domain: props.domain,\n });\n\n if (!response?.status || !response) {\n props.setSnackBar({\n show: true,\n message: response?.data?.result?.message || ERROR_RESEND_OTP,\n type: SnackBarType.OTP_FAILED,\n });\n return;\n } else {\n const resendCountValue =\n Number(\n response?.data?.result?.resendCount ||\n response?.additionalInfo?.resendCount\n ) || props.resendCount + 1;\n\n props.setResendCount(resendCountValue);\n await updateResendCount(resendCountValue);\n\n props.setSnackBar({\n show: true,\n message: OTP_SENT_SUCCESSFULLY,\n type: SnackBarType.OTP_SUCCESS,\n });\n\n // Reset the timer\n resetTimer();\n }\n const cta = props.resendConfig.buttonTitle;\n fireEventWithScreenName({\n severityLevel: SeverityLevelValue.LOG,\n eventName: SentryEventNameSdkConstants.BUTTON_CLICKED,\n screenName: ScreenNameSdkConstants.VALIDATE_OTP_ET_SCREEN,\n cta: cta,\n });\n // }\n } catch (error) {\n console.error('Error during OTP generation or timer reset:', error);\n props.setSnackBar({\n show: true,\n message: ERROR_RESEND_OTP,\n type: SnackBarType.OTP_FAILED,\n });\n }\n return;\n };\n\n // *reset timer on render\n useEffect(() => {\n resetTimer();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n // Handle back-button click\n useFocusEffect(\n React.useCallback(() => {\n BackHandler.addEventListener('hardwareBackPress', handleBackPress);\n return () =>\n BackHandler.removeEventListener('hardwareBackPress', handleBackPress);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n );\n\n useLayoutEffect(() => {\n props.navigation.setOptions({\n title: props.title,\n headerLeft: () => {\n return (\n <Icon\n onPress={() => {\n handleBackPress();\n const cta = 'Arrow Back';\n fireEventWithScreenName({\n severityLevel: SeverityLevelValue.LOG,\n eventName: SentryEventNameSdkConstants.BUTTON_CLICKED,\n screenName: ScreenNameSdkConstants.VALIDATE_OTP_ET_SCREEN,\n cta: cta,\n });\n }}\n name=\"arrow-back\"\n color={'black'}\n size={25}\n style={{\n paddingRight: 15,\n paddingTop: 5,\n }}\n />\n );\n },\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n // *render error message for OTP input\n const renderErrorMessage = () => {\n return props.errorMessage ? (\n <Text style={styles.errorMessage}>{props.errorMessage}</Text>\n ) : null;\n };\n\n // *render retry button\n const renderRetryButton = () => {\n const enableRetry = props.resendOTP.enableResends;\n\n if (enableRetry) {\n return (\n <ResendOTPButton\n {...props}\n formattedTime={formattedTime}\n handleResendOtp={handleResendOtp}\n timer={timer}\n />\n );\n } else return null;\n };\n\n return (\n <View style={{ flex: 1 }}>\n <View style={styles.titleContainer}>\n <Text style={styles.titleText}>\n {props?.validateMessage?.toString()?.length > 0\n ? props.validateMessage\n : 'Enter OTP received by consignee'}\n </Text>\n </View>\n <View style={styles.otpContainer}>\n <Text style={styles.otpTextMsg}>\n OTP sent to{' '}\n {props?.selectedContact?.value &&\n maskContact(props?.selectedContact?.value)}\n </Text>\n <OTPInput\n input={props.otpInputConfig}\n otpCode={props.otpCode}\n setOTPCode={props.setOTPCode}\n hasError={props.hasError}\n setHasError={props.setHasError}\n setErrorMessage={props.setErrorMessage}\n />\n {renderErrorMessage()}\n {renderRetryButton()}\n </View>\n </View>\n );\n};\n"],"mappings":";AAAA;AACA;AACA,OAAOA,KAAK,IAAQC,SAAS,EAAEC,eAAe,QAAQ,OAAO;AAC7D,SAASC,WAAW,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACtD,SAASC,cAAc,QAAQ,0BAA0B;AACzD,OAAOC,IAAI,MAAM,yCAAyC;;AAE1D;AACA,OAAOC,QAAQ,MAAM,4BAA4B;AACjD,SAASC,eAAe,QAAQ,mCAAmC;;AAEnE;AACA,OAAOC,MAAM,MAAM,sBAAsB;;AAEzC;AACA,SAASC,WAAW,QAAQ,iCAAiC;AAC7D,SAASC,SAAS,EAAEC,iBAAiB,EAAEC,oBAAoB,QAAQ,UAAU;AAC7E,OAAOC,iBAAiB,MAAM,kCAAkC;;AAEhE;;AAEA,SAASC,YAAY,QAAQ,+CAA+C;AAC5E,SAASC,gBAAgB,EAAEC,qBAAqB,QAAQ,cAAc;;AAEtE;AACA,SAASC,uBAAuB,QAAQ,mDAAmD;AAC3F,SACEC,sBAAsB,EACtBC,2BAA2B,EAC3BC,kBAAkB,QACb,iDAAiD;AAExD,OAAO,MAAMC,OAA6B,GAAIC,KAAK,IAAK;EAAA,IAAAC,mBAAA,EAAAC,qBAAA,EAAAC,qBAAA,EAAAC,sBAAA;EACtD,MAAM;IAAEC,aAAa;IAAEC,KAAK;IAAEC;EAAW,CAAC,GAAGhB,iBAAiB,EAAAU,mBAAA,GAC5DD,KAAK,CAACQ,YAAY,cAAAP,mBAAA,uBAAlBA,mBAAA,CAAoBQ,WACtB,CAAC;EAED,MAAMC,eAAe,GAAGA,CAAA,KAAM;IAC5B,IAAIV,KAAK,CAACW,WAAW,IAAIX,KAAK,CAACY,gBAAgB,EAAE;MAC/CZ,KAAK,CAACa,gBAAgB,CAACvB,oBAAoB,CAACwB,YAAY,CAAC;IAC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,CAACwG;EAAa,gBAC/BlH,KAAA,CAAA8F,aAAA,CAAC1F,IAAI;IAAC+F,KAAK,EAAEzF,MAAM,CAACyG;EAAW,GAAC,aACnB,EAAC,GAAG,EACd,CAAA3F,KAAK,aAALA,KAAK,gBAAAG,qBAAA,GAALH,KAAK,CAAE+B,eAAe,cAAA5B,qBAAA,uBAAtBA,qBAAA,CAAwByF,KAAK,KAC5BzG,WAAW,CAACa,KAAK,aAALA,KAAK,gBAAAI,sBAAA,GAALJ,KAAK,CAAE+B,eAAe,cAAA3B,sBAAA,uBAAtBA,sBAAA,CAAwBwF,KAAK,CACvC,CAAC,eACPpH,KAAA,CAAA8F,aAAA,CAACtF,QAAQ;IACP6G,KAAK,EAAE7F,KAAK,CAAC8F,cAAe;IAC5BC,OAAO,EAAE/F,KAAK,CAAC+F,OAAQ;IACvB/E,UAAU,EAAEhB,KAAK,CAACgB,UAAW;IAC7BgF,QAAQ,EAAEhG,KAAK,CAACgG,QAAS;IACzBC,WAAW,EAAEjG,KAAK,CAACiG,WAAY;IAC/BC,eAAe,EAAElG,KAAK,CAACkG;EAAgB,CACxC,CAAC,EACDpB,kBAAkB,CAAC,CAAC,EACpBE,iBAAiB,CAAC,CACf,CACF,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","useEffect","useLayoutEffect","BackHandler","Text","View","useFocusEffect","Icon","OTPInput","ResendOTPButton","styles","maskContact","resendOTP","updateResendCount","VALIDATE_OTP_SCREENS","useResendOtpTimer","SnackBarType","ERROR_RESEND_OTP","OTP_SENT_SUCCESSFULLY","fireEventWithScreenName","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","OTPView","props","_props$resendConfig","_props$validateMessag","_props$selectedContac","_props$selectedContac2","formattedTime","timer","resetTimer","resendConfig","enableDelay","handleBackPress","doorstepOTP","isContactVisited","setCurrentScreen","CONTACT_LIST","handleBackNavigation","setOTPCode","handleResendOtp","_props$orderData","payload","refId","meta","orderIds","orderData","map","order","_order$displayInfo","displayInfo","orderId","contactInfo","id","selectedContact","mode","type","index","response","domain","status","_response$data","setSnackBar","show","message","data","result","OTP_FAILED","_response$data2","_response$additionalI","resendCountValue","Number","resendCount","additionalInfo","setResendCount","OTP_SUCCESS","cta","buttonTitle","severityLevel","LOG","eventName","BUTTON_CLICKED","screenName","VALIDATE_OTP_ET_SCREEN","error","console","useCallback","backHandler","addEventListener","remove","navigation","setOptions","title","headerLeft","createElement","onPress","name","color","size","style","paddingRight","paddingTop","renderErrorMessage","errorMessage","renderRetryButton","enableRetry","enableResends","_extends","flex","titleContainer","titleText","validateMessage","toString","length","otpContainer","otpTextMsg","value","input","otpInputConfig","otpCode","hasError","setHasError","setErrorMessage"],"sources":["OTPView.tsx"],"sourcesContent":["/* eslint-disable react-native/no-inline-styles */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport React, { FC, useEffect, useLayoutEffect } from 'react';\nimport { BackHandler, Text, View } from 'react-native';\nimport { useFocusEffect } from '@react-navigation/native';\nimport Icon from '@react-native-vector-icons/material-icons';\n\n// Components\nimport OTPInput from '../sub-components/OTPInput';\nimport { ResendOTPButton } from '../sub-components/ResendOTPButton';\n\n// Styles\nimport styles from '../ValidateOtpStyles';\n\n// Utilities\nimport { maskContact } from '../../../../utils/ExecTaskUtils';\nimport { resendOTP, updateResendCount, VALIDATE_OTP_SCREENS } from '../utils';\nimport useResendOtpTimer from '../../../../utils/hooks/useTimer';\n\n// Types\nimport { ValidateOTPInput } from '../ValidateOTPSchema';\nimport { SnackBarType } from '../../../../components/widgets/SnackBarCustom';\nimport { ERROR_RESEND_OTP, OTP_SENT_SUCCESSFULLY } from '../constants';\n\n// Analytics\nimport { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';\nimport {\n ScreenNameSdkConstants,\n SentryEventNameSdkConstants,\n SeverityLevelValue,\n} from '../../../../analytics/sentry/SentrySdkConstants';\n\nexport const OTPView: FC<ValidateOTPInput> = (props) => {\n const { formattedTime, timer, resetTimer } = useResendOtpTimer(\n props.resendConfig?.enableDelay\n );\n\n const handleBackPress = () => {\n if (props.doorstepOTP && props.isContactVisited) {\n props.setCurrentScreen(VALIDATE_OTP_SCREENS.CONTACT_LIST);\n } else {\n props.handleBackNavigation();\n }\n props.setOTPCode('');\n return true;\n };\n\n const handleResendOtp = async () => {\n const payload = {\n refId: props.refId,\n meta: {\n orderIds: props.orderData?.map((order) => order?.displayInfo?.orderId),\n },\n ...(props.doorstepOTP && {\n contactInfo: {\n id: props.selectedContact.id,\n mode: props.selectedContact.mode,\n type: props.selectedContact.type,\n index: props.selectedContact.index,\n },\n }),\n };\n try {\n // if (props.doorstepOTP && !props.isContactVisited) {\n // props.setCurrentScreen(VALIDATE_OTP_SCREENS.CONTACT_LIST);// required may be in future\n // } else {\n props.setOTPCode('');\n // Attempt to resend OTP\n const response = await resendOTP(payload, {\n ...props,\n domain: props.domain,\n });\n\n if (!response?.status || !response) {\n props.setSnackBar({\n show: true,\n message: response?.data?.result?.message || ERROR_RESEND_OTP,\n type: SnackBarType.OTP_FAILED,\n });\n return;\n } else {\n const resendCountValue =\n Number(\n response?.data?.result?.resendCount ||\n response?.additionalInfo?.resendCount\n ) || props.resendCount + 1;\n\n props.setResendCount(resendCountValue);\n await updateResendCount(resendCountValue);\n\n props.setSnackBar({\n show: true,\n message: OTP_SENT_SUCCESSFULLY,\n type: SnackBarType.OTP_SUCCESS,\n });\n\n // Reset the timer\n resetTimer();\n }\n const cta = props.resendConfig.buttonTitle;\n fireEventWithScreenName({\n severityLevel: SeverityLevelValue.LOG,\n eventName: SentryEventNameSdkConstants.BUTTON_CLICKED,\n screenName: ScreenNameSdkConstants.VALIDATE_OTP_ET_SCREEN,\n cta: cta,\n });\n // }\n } catch (error) {\n console.error('Error during OTP generation or timer reset:', error);\n props.setSnackBar({\n show: true,\n message: ERROR_RESEND_OTP,\n type: SnackBarType.OTP_FAILED,\n });\n }\n return;\n };\n\n // *reset timer on render\n useEffect(() => {\n resetTimer();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n // Handle back-button click\n useFocusEffect(\n React.useCallback(() => {\n const backHandler = BackHandler.addEventListener('hardwareBackPress', handleBackPress);\n return () => backHandler.remove();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n );\n\n useLayoutEffect(() => {\n props.navigation.setOptions({\n title: props.title,\n headerLeft: () => {\n return (\n <Icon\n onPress={() => {\n handleBackPress();\n const cta = 'Arrow Back';\n fireEventWithScreenName({\n severityLevel: SeverityLevelValue.LOG,\n eventName: SentryEventNameSdkConstants.BUTTON_CLICKED,\n screenName: ScreenNameSdkConstants.VALIDATE_OTP_ET_SCREEN,\n cta: cta,\n });\n }}\n name=\"arrow-back\"\n color={'black'}\n size={25}\n style={{\n paddingRight: 15,\n paddingTop: 5,\n }}\n />\n );\n },\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n // *render error message for OTP input\n const renderErrorMessage = () => {\n return props.errorMessage ? (\n <Text style={styles.errorMessage}>{props.errorMessage}</Text>\n ) : null;\n };\n\n // *render retry button\n const renderRetryButton = () => {\n const enableRetry = props.resendOTP.enableResends;\n\n if (enableRetry) {\n return (\n <ResendOTPButton\n {...props}\n formattedTime={formattedTime}\n handleResendOtp={handleResendOtp}\n timer={timer}\n />\n );\n } else return null;\n };\n\n return (\n <View style={{ flex: 1 }}>\n <View style={styles.titleContainer}>\n <Text style={styles.titleText}>\n {props?.validateMessage?.toString()?.length > 0\n ? props.validateMessage\n : 'Enter OTP received by consignee'}\n </Text>\n </View>\n <View style={styles.otpContainer}>\n <Text style={styles.otpTextMsg}>\n OTP sent to{' '}\n {props?.selectedContact?.value &&\n maskContact(props?.selectedContact?.value)}\n </Text>\n <OTPInput\n input={props.otpInputConfig}\n otpCode={props.otpCode}\n setOTPCode={props.setOTPCode}\n hasError={props.hasError}\n setHasError={props.setHasError}\n setErrorMessage={props.setErrorMessage}\n />\n {renderErrorMessage()}\n {renderRetryButton()}\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W,GAAC,aACnB,EAAC,GAAG,EACd,CAAA5F,KAAK,aAALA,KAAK,gBAAAG,qBAAA,GAALH,KAAK,CAAE+B,eAAe,cAAA5B,qBAAA,uBAAtBA,qBAAA,CAAwB0F,KAAK,KAC5B1G,WAAW,CAACa,KAAK,aAALA,KAAK,gBAAAI,sBAAA,GAALJ,KAAK,CAAE+B,eAAe,cAAA3B,sBAAA,uBAAtBA,sBAAA,CAAwByF,KAAK,CACvC,CAAC,eACPrH,KAAA,CAAA+F,aAAA,CAACvF,QAAQ;IACP8G,KAAK,EAAE9F,KAAK,CAAC+F,cAAe;IAC5BC,OAAO,EAAEhG,KAAK,CAACgG,OAAQ;IACvBhF,UAAU,EAAEhB,KAAK,CAACgB,UAAW;IAC7BiF,QAAQ,EAAEjG,KAAK,CAACiG,QAAS;IACzBC,WAAW,EAAElG,KAAK,CAACkG,WAAY;IAC/BC,eAAe,EAAEnG,KAAK,CAACmG;EAAgB,CACxC,CAAC,EACDpB,kBAAkB,CAAC,CAAC,EACpBE,iBAAiB,CAAC,CACf,CACF,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ import { Text, View } from 'react-native';
|
|
|
7
7
|
import styles from '../ValidateOtpStyles';
|
|
8
8
|
|
|
9
9
|
// Components
|
|
10
|
-
import
|
|
10
|
+
import { Image } from 'expo-image';
|
|
11
11
|
|
|
12
12
|
// Utilities
|
|
13
13
|
import { getBaseETResponse } from '../../../../utils/ExecTaskUtils';
|
|
@@ -54,27 +54,25 @@ const VerificationComplete = props => {
|
|
|
54
54
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
55
55
|
}, []);
|
|
56
56
|
const renderSuccessCard = () => {
|
|
57
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
57
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Image, {
|
|
58
58
|
source: require('../../../../icons/icSuccess.gif'),
|
|
59
59
|
style: {
|
|
60
60
|
height: 116,
|
|
61
61
|
width: 116
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
resizeMode: "contain" // Ensures the GIF is displayed properly without distortion
|
|
62
|
+
},
|
|
63
|
+
contentFit: "contain"
|
|
65
64
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
66
65
|
style: styles.otpResponseText
|
|
67
66
|
}, "OTP verified successfully!"));
|
|
68
67
|
};
|
|
69
68
|
const renderFailedCard = () => {
|
|
70
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
69
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Image, {
|
|
71
70
|
source: require('../../../../icons/icFailed.gif'),
|
|
72
71
|
style: {
|
|
73
72
|
height: 116,
|
|
74
73
|
width: 116
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
resizeMode: "contain" // Ensures the GIF is displayed properly without distortion
|
|
74
|
+
},
|
|
75
|
+
contentFit: "contain"
|
|
78
76
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
79
77
|
style: styles.otpResponseText
|
|
80
78
|
}, "OTP verification Failed!"));
|
package/lib/module/components/executiontasks/validateOTP/components/VerificationComplete.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useLayoutEffect","Text","View","styles","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useLayoutEffect","Text","View","styles","Image","getBaseETResponse","getEventCodeByET","RETRY_LIMIT_REACHED_CODE","BaseEventCodes","EntityCode","ExecutionTaskID","DefaultSubmitTimeout","VerificationComplete","props","navigation","setOptions","headerShown","sendSuccessOutput","_props$applicableReas","_etOutput","VALIDATE_OTP_ET","applicableReasons","success","mergedObjectiveId","setTimeout","onSubmitET","retryCount","sendFailedOutput","ENTITY_FAILURE","setLoading","renderSuccessCard","createElement","Fragment","source","require","style","height","width","contentFit","otpResponseText","renderFailedCard","flex","justifyContent","responseCard"],"sources":["VerificationComplete.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable react-native/no-inline-styles */\nimport React, { FC, useEffect, useLayoutEffect } from 'react';\nimport { Text, View } from 'react-native';\n\n// Styles\nimport styles from '../ValidateOtpStyles';\n\n// Components\nimport { Image } from 'expo-image';\n\n// Utilities\nimport { getBaseETResponse } from '../../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../../manager/dispatchCodes/EventCodeContainer';\nimport { RETRY_LIMIT_REACHED_CODE } from '../../../../constants/constants';\n\n// Types\nimport {\n BaseEventCodes,\n EntityCode,\n ExecutionTaskID,\n} from '../../../../models/execTasks/ETConfig';\n\nconst DefaultSubmitTimeout = 3000;\n\nconst VerificationComplete: FC<any> = (props) => {\n // TO hide header for modal screen\n useLayoutEffect(() => {\n props.navigation.setOptions({\n headerShown: false,\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const sendSuccessOutput = async () => {\n const _etOutput = await getBaseETResponse(\n EntityCode.VALIDATE_OTP_ET,\n true,\n getEventCodeByET(\n ExecutionTaskID.VALIDATE_OTP_ET,\n true,\n props.applicableReasons?.success\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.VALIDATE_OTP_ET\n );\n setTimeout(async () => {\n props.onSubmitET({\n ..._etOutput,\n retryCount: props.retryCount,\n });\n }, DefaultSubmitTimeout);\n };\n\n const sendFailedOutput = async () => {\n const _etOutput = await getBaseETResponse(\n EntityCode.VALIDATE_OTP_ET,\n false,\n BaseEventCodes.ENTITY_FAILURE,\n RETRY_LIMIT_REACHED_CODE,\n props.mergedObjectiveId,\n ExecutionTaskID.VALIDATE_OTP_ET\n );\n setTimeout(async () => {\n props.onSubmitET({\n ..._etOutput,\n retryCount: props.retryCount,\n });\n }, DefaultSubmitTimeout);\n };\n\n useEffect(() => {\n props.setLoading(false);\n if (props.success) {\n sendSuccessOutput();\n } else {\n sendFailedOutput();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const renderSuccessCard = () => {\n return (\n <>\n <Image\n source={require('../../../../icons/icSuccess.gif')}\n style={{ height: 116, width: 116 }}\n contentFit=\"contain\"\n />\n <Text style={styles.otpResponseText}>OTP verified successfully!</Text>\n </>\n );\n };\n\n const renderFailedCard = () => {\n return (\n <>\n <Image\n source={require('../../../../icons/icFailed.gif')}\n style={{ height: 116, width: 116 }}\n contentFit=\"contain\"\n />\n <Text style={styles.otpResponseText}>OTP verification Failed!</Text>\n </>\n );\n };\n\n return (\n <View style={{ flex: 1 }}>\n <View\n style={{\n flex: 1,\n justifyContent: 'center',\n }}\n >\n <View style={styles.responseCard}>\n {props.success ? renderSuccessCard() : renderFailedCard()}\n </View>\n </View>\n </View>\n );\n};\nexport default VerificationComplete;\n"],"mappings":"AAAA;AACA;AACA,OAAOA,KAAK,IAAQC,SAAS,EAAEC,eAAe,QAAQ,OAAO;AAC7D,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;;AAEzC;AACA,OAAOC,MAAM,MAAM,sBAAsB;;AAEzC;AACA,SAASC,KAAK,QAAQ,YAAY;;AAElC;AACA,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,gBAAgB,QAAQ,sDAAsD;AACvF,SAASC,wBAAwB,QAAQ,iCAAiC;;AAE1E;AACA,SACEC,cAAc,EACdC,UAAU,EACVC,eAAe,QACV,uCAAuC;AAE9C,MAAMC,oBAAoB,GAAG,IAAI;AAEjC,MAAMC,oBAA6B,GAAIC,KAAK,IAAK;EAC/C;EACAb,eAAe,CAAC,MAAM;IACpBa,KAAK,CAACC,UAAU,CAACC,UAAU,CAAC;MAC1BC,WAAW,EAAE;IACf,CAAC,CAAC;IACF;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMC,iBAAiB,GAAG,MAAAA,CAAA,KAAY;IAAA,IAAAC,qBAAA;IACpC,MAAMC,SAAS,GAAG,MAAMd,iBAAiB,CACvCI,UAAU,CAACW,eAAe,EAC1B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C,MAAM,EAAE,GAAG;QAAEC,KAAK,EAAE;MAAI,CAAE;MACnCC,UAAU,EAAC;IAAS,CACrB,CAAC,eACFxC,KAAA,CAAAiC,aAAA,CAAC9B,IAAI;MAACkC,KAAK,EAAEhC,MAAM,CAACoC;IAAgB,GAAC,4BAAgC,CACrE,CAAC;EAEP,CAAC;EAED,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;IAC7B,oBACE1C,KAAA,CAAAiC,aAAA,CAAAjC,KAAA,CAAAkC,QAAA,qBACElC,KAAA,CAAAiC,aAAA,CAAC3B,KAAK;MACJ6B,MAAM,EAAEC,OAAO,CAAC,gCAAgC,CAAE;MAClDC,KAAK,EAAE;QAAEC,MAAM,EAAE,GAAG;QAAEC,KAAK,EAAE;MAAI,CAAE;MACnCC,UAAU,EAAC;IAAS,CACrB,CAAC,eACFxC,KAAA,CAAAiC,aAAA,CAAC9B,IAAI;MAACkC,KAAK,EAAEhC,MAAM,CAACoC;IAAgB,GAAC,0BAA8B,CACnE,CAAC;EAEP,CAAC;EAED,oBACEzC,KAAA,CAAAiC,aAAA,CAAC7B,IAAI;IAACiC,KAAK,EAAE;MAAEM,IAAI,EAAE;IAAE;EAAE,gBACvB3C,KAAA,CAAAiC,aAAA,CAAC7B,IAAI;IACHiC,KAAK,EAAE;MACLM,IAAI,EAAE,CAAC;MACPC,cAAc,EAAE;IAClB;EAAE,gBAEF5C,KAAA,CAAAiC,aAAA,CAAC7B,IAAI;IAACiC,KAAK,EAAEhC,MAAM,CAACwC;EAAa,GAC9B9B,KAAK,CAACS,OAAO,GAAGQ,iBAAiB,CAAC,CAAC,GAAGU,gBAAgB,CAAC,CACpD,CACF,CACF,CAAC;AAEX,CAAC;AACD,eAAe5B,oBAAoB","ignoreList":[]}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import { BackHandler, Pressable, StyleSheet, Text, View } from 'react-native';
|
|
2
2
|
import React, { useEffect, useRef } from 'react';
|
|
3
|
-
// @ts-ignore
|
|
4
3
|
import OTPTextView from 'react-native-otp-textinput';
|
|
5
|
-
import {
|
|
4
|
+
import { MD2Colors } from 'react-native-paper';
|
|
6
5
|
import { showToast } from '../../widgets/Toaster';
|
|
7
6
|
import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
8
7
|
import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
|
|
9
8
|
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
10
9
|
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
11
10
|
const VerifyOtpET = props => {
|
|
12
|
-
const otpInput = useRef();
|
|
11
|
+
const otpInput = useRef(null);
|
|
13
12
|
function backButtonHandler() {
|
|
14
13
|
return true;
|
|
15
14
|
}
|
|
16
15
|
useEffect(() => {
|
|
17
|
-
BackHandler.addEventListener('hardwareBackPress', backButtonHandler);
|
|
18
|
-
return () =>
|
|
19
|
-
BackHandler.removeEventListener('hardwareBackPress', backButtonHandler);
|
|
20
|
-
};
|
|
16
|
+
const backHandler = BackHandler.addEventListener('hardwareBackPress', backButtonHandler);
|
|
17
|
+
return () => backHandler.remove();
|
|
21
18
|
}, []);
|
|
22
19
|
return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
|
|
23
20
|
style: styles.otpInputTextView
|
|
@@ -25,9 +22,9 @@ const VerifyOtpET = props => {
|
|
|
25
22
|
style: styles.veriOtpText
|
|
26
23
|
}, "Verify OTP"), /*#__PURE__*/React.createElement(OTPTextView, {
|
|
27
24
|
textInputStyle: styles.otpInputStyle,
|
|
28
|
-
ref: otpInput,
|
|
25
|
+
ref: otpInput.current,
|
|
29
26
|
inputCount: props.inputCount,
|
|
30
|
-
tintColor:
|
|
27
|
+
tintColor: MD2Colors.blue300,
|
|
31
28
|
handleTextChange: async value => {
|
|
32
29
|
if (value.length === props.inputCount) {
|
|
33
30
|
props.onSubmit({
|
|
@@ -59,7 +56,7 @@ const styles = StyleSheet.create({
|
|
|
59
56
|
},
|
|
60
57
|
veriOtpText: {
|
|
61
58
|
fontSize: 24,
|
|
62
|
-
color:
|
|
59
|
+
color: "#000000",
|
|
63
60
|
marginTop: 40
|
|
64
61
|
},
|
|
65
62
|
otpInputStyle: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BackHandler","Pressable","StyleSheet","Text","View","React","useEffect","useRef","OTPTextView","
|
|
1
|
+
{"version":3,"names":["BackHandler","Pressable","StyleSheet","Text","View","React","useEffect","useRef","OTPTextView","MD2Colors","showToast","getBaseETResponse","EntityCode","ExecutionTaskID","ScreenNameSdkConstants","SentryEventNameSdkConstants","SeverityLevelValue","fireEventWithScreenName","VerifyOtpET","props","otpInput","backButtonHandler","backHandler","addEventListener","remove","createElement","style","styles","otpInputTextView","veriOtpText","textInputStyle","otpInputStyle","ref","current","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","borderRadius","borderWidth","paddingHorizontal","paddingVertical","marginHorizontal","flexDirection"],"sources":["VerifyOtpET.tsx"],"sourcesContent":["import { BackHandler, Pressable, StyleSheet, Text, View } from 'react-native';\nimport React, { useEffect, useRef } from 'react';\nimport OTPTextView from 'react-native-otp-textinput';\nimport { MD2Colors } from 'react-native-paper';\nimport { showToast } from '../../widgets/Toaster';\nimport type { OtpInputSchema } from './VerifyOtpSchema';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';\n\nconst VerifyOtpET = (props: OtpInputSchema) => {\n const otpInput = useRef<any>(null);\n\n function backButtonHandler() {\n return true;\n }\n useEffect(() => {\n const backHandler = BackHandler.addEventListener('hardwareBackPress', backButtonHandler);\n return () => backHandler.remove();\n }, []);\n\n return (\n <View>\n <View style={styles.otpInputTextView}>\n <Text style={styles.veriOtpText}>Verify OTP</Text>\n <OTPTextView\n textInputStyle={styles.otpInputStyle}\n ref={otpInput.current}\n inputCount={props.inputCount}\n tintColor={MD2Colors.blue300}\n handleTextChange={async (value: string) => {\n if (value.length === props.inputCount) {\n props.onSubmit({\n ...(await getBaseETResponse(\n EntityCode.VERIFY_INPUT,\n true,\n '',\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.VERIFY_INPUT\n )),\n });\n }\n }}\n />\n <View style={styles.otpNotReceivedView}>\n <Text>Haven't received the sms?</Text>\n\n <Pressable\n onPress={() => {\n showToast('Resending OTP');\n const cta = 'Send again';\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.VERIFY_OTP_ET_SCREEN, cta: cta }); \n }}\n style={styles.sendAgainText}>\n <Text>Send again</Text>\n </Pressable>\n </View>\n </View>\n </View>\n );\n};\nexport default VerifyOtpET;\n\nconst styles = StyleSheet.create({\n backIconView: {\n marginTop: 22,\n marginStart: 22,\n },\n veriOtpText: {\n fontSize: 24,\n color: \"#000000\",\n marginTop: 40,\n },\n otpInputStyle: {\n borderRadius: 4,\n borderWidth: 1,\n paddingHorizontal: 16,\n paddingVertical: 12,\n marginTop: 32,\n },\n otpInputTextView: {\n marginHorizontal: 17,\n },\n otpNotReceivedView: {\n flexDirection: 'row',\n marginTop: 10,\n },\n sendAgainText: {\n marginHorizontal: 8,\n },\n});\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC7E,OAAOC,KAAK,IAAIC,SAAS,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gB,EAAE;IAChBmC,gBAAgB,EAAE;EACpB,CAAC;EACDpB,kBAAkB,EAAE;IAClBqB,aAAa,EAAE,KAAK;IACpBT,SAAS,EAAE;EACb,CAAC;EACDH,aAAa,EAAE;IACbW,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Modal, Platform, StyleSheet, View } from 'react-native';
|
|
3
3
|
import { CommonStyles, Fonts } from '../../styles/executionTasks/CommonStyles';
|
|
4
4
|
import { Button, Paragraph, Title } from 'react-native-paper';
|
|
5
|
-
import Icon from 'react-native-vector-icons/
|
|
5
|
+
import Icon from '@react-native-vector-icons/material-design-icons';
|
|
6
6
|
import SdkColors, { ColorTheme } from '../../styles/SdkColors';
|
|
7
7
|
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
8
8
|
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
@@ -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/
|
|
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/material-design-icons';\nimport SdkColors, { ColorTheme } from '../../styles/SdkColors';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\nconst CancelOrderDialog = (props: CancelDialogProps) => {\n return (\n <Modal\n animationType=\"none\"\n transparent={true}\n visible={props.visible}\n onRequestClose={() => {}}\n >\n <View style={styles.wrapper}>\n <View style={styles.content}>\n {props.showIcon && props.iconName && (\n <Icon\n style={{ alignSelf: 'center' }}\n size={34}\n name={props.iconName}\n color={SdkColors[ColorTheme.LIGHT].primaryButton}\n />\n )}\n <Title\n style={{\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: '#000000',\n }}\n >\n {props.label ?? 'Cancel Order'}\n </Title>\n {props.message && (\n <Paragraph\n style={{\n textAlign: 'center',\n fontSize: 14,\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_400Regular\n : 'IBMPlexSans-Regular',\n }}\n >\n {props.message}\n </Paragraph>\n )}\n <View style={{ marginTop: 20 }}>\n <Button\n mode={'outlined'}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={CommonStyles.nextButton}\n onPress={() => {\n props.onSubmit(true);\n const cta = props.positiveButtonTitle ?? 'Yes';\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ORDER_DIALOG_SCREEN, cta: cta }); \n \n }}\n testID=\"primary\"\n >\n {props.positiveButtonTitle ?? 'Yes'}\n </Button>\n <Button\n uppercase={false}\n mode={'outlined'}\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 10 }]}\n onPress={async () => {\n props.onSubmit(false);\n const cta = props.negativeButtonTitle ?? 'No';\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ORDER_DIALOG_SCREEN, cta: cta });\n }}\n testID=\"secondary\"\n >\n {props.negativeButtonTitle ?? 'No'}\n </Button>\n </View>\n </View>\n </View>\n </Modal>\n );\n};\n\nconst styles = StyleSheet.create({\n content: {\n backgroundColor: 'white',\n padding: 20,\n borderRadius: 5,\n width: '80%',\n },\n wrapper: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'rgba(0,0,0,0.7)',\n },\n});\n\nexport default CancelOrderDialog;\n\nexport interface CancelDialogProps {\n visible: boolean;\n onSubmit: (success: boolean) => void;\n label?: string;\n message?: string;\n positiveButtonTitle?: string;\n negativeButtonTitle?: string;\n showIcon?: boolean;\n iconName?: any;\n}\n"],"mappings":"AAAA,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/BC,IAAI,EAAE,EAAG;IACTC,IAAI,EAAEd,KAAK,CAACW,QAAS;IACrBI,KAAK,EAAEtB,SAAS,CAACC,UAA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|
3
3
|
import { Checkbox } from 'react-native-paper';
|
|
4
|
-
import
|
|
4
|
+
import Feather from '@react-native-vector-icons/feather';
|
|
5
5
|
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
6
6
|
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
7
7
|
const Card = props => {
|
|
@@ -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
|
|
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 '@react-native-vector-icons/feather';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\ninterface CardProps {\n title: string;\n renderAdditionalHeader?: () => JSX.Element;\n Body: JSX.Element;\n editConfig?: {\n props: any;\n onEdit: (props: any) => void;\n };\n selectConfig?: {\n isSelected: boolean;\n props: any;\n onSelect: (props: any) => void;\n };\n}\n\nconst Card = (props: CardProps) => {\n const isSelected = props.selectConfig?.isSelected ? 'checked' : 'unchecked';\n\n return (\n <View style={styles.container}>\n {props.selectConfig ? (\n <View>\n <Checkbox\n status={isSelected}\n onPress={() => {\n props.selectConfig?.onSelect(props.selectConfig?.props);\n const cta = \"Checkbox checked\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CARD_WIDGET_SCREEN, cta: cta }); \n }}\n theme={{ roundness: 5 }}\n />\n </View>\n ) : null}\n <View style={styles.body}>\n <View style={styles.header}>\n <Text style={styles.title}>{props.title}</Text>\n {props.renderAdditionalHeader?.()}\n </View>\n {props.Body}\n </View>\n {props.editConfig ? (\n <>\n <View style={styles.divider} />\n <TouchableOpacity\n onPress={() => {props.editConfig?.onEdit(props.editConfig?.props)\n const cta = \"Edit\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CARD_WIDGET_SCREEN, cta: cta }); \n \n }}\n style={styles.icon}\n >\n <Feather name=\"edit\" size={24} color=\"#5B80F7\" />\n </TouchableOpacity>\n </>\n ) : null}\n </View>\n );\n};\n\nexport default Card;\n\nconst styles = StyleSheet.create({\n container: {\n flexDirection: 'row',\n justifyContent: 'flex-start',\n alignItems: 'flex-start',\n paddingVertical: 12,\n paddingHorizontal: 16,\n marginVertical: 10,\n marginHorizontal: 16,\n borderWidth: 1,\n borderColor: '#E0E3EB',\n borderRadius: 8,\n // height: 150,\n },\n header: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n body: {\n flex: 1,\n },\n title: {\n fontSize: 16,\n fontStyle: 'normal',\n fontWeight: '500',\n lineHeight: 24,\n marginRight: 8,\n },\n divider: {\n height: '90%',\n width: 2,\n backgroundColor: '#E0E3EB',\n alignSelf: 'center',\n },\n icon: {\n alignSelf: 'center',\n margin: 10,\n },\n});\n"],"mappings":"AAAA,SAASA,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AACvE,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,OAAOC,OAAO,MAAM,oCAAoC;AACxD,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,KAA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;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,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, TextInput, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import EvilIcons from '@react-native-vector-icons/evil-icons';
|
|
4
|
+
import MaterialIcons from '@react-native-vector-icons/material-icons';
|
|
4
5
|
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
5
6
|
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
6
7
|
const SearchBar = props => {
|
|
@@ -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
|
|
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 from '@react-native-vector-icons/evil-icons';\nimport MaterialIcons from '@react-native-vector-icons/material-icons';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n \ninterface SearchBarProps {\n searchText: string;\n setSearchText: (searchText: string) => void;\n onChangeSearch: (searchText: string) => any;\n placeholder: string;\n onClear: () => any;\n}\n\nconst SearchBar = (props: SearchBarProps) => {\n const { searchText, setSearchText } = props;\n const handleSearch = (text: string) => {\n props.onChangeSearch(text);\n };\n const handleClear = () => {\n props.onClear();\n setSearchText('');\n const cta = \"Clear\";\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SEARCH_BAR_SCREEN, cta: cta });\n\n };\n\n return (\n <View style={styles.container}>\n <TouchableOpacity style={styles.iconContainer}>\n <EvilIcons name=\"search\" size={24} color=\"#525B7A\" />\n </TouchableOpacity>\n <View style={styles.inputContainer}>\n <TextInput\n style={styles.input}\n placeholder={props.placeholder}\n onChangeText={(text) => {\n handleSearch(text);\n setSearchText(text);\n }}\n value={searchText}\n />\n </View>\n {searchText ? (\n <TouchableOpacity style={styles.iconContainer} onPress={handleClear}>\n <MaterialIcons name=\"clear\" size={24} color=\"#525B7A\" />\n </TouchableOpacity>\n ) : null}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#ffffff',\n borderRadius: 6,\n paddingHorizontal: 12,\n borderWidth: 1,\n borderColor: '#DDDDDD',\n marginHorizontal: 16,\n },\n inputContainer: {\n flex: 1,\n },\n input: {\n height: 40,\n },\n iconContainer: {\n paddingLeft: 4,\n paddingRight: 8,\n },\n});\n\nexport default SearchBar;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAoB,OAAO;AACvC,SAASC,IAAI,EAAEC,SAAS,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AAC5E,OAAOC,SAAS,MAAM,uCAAuC;AAC7D,OAAOC,aAAa,MAAM,2CAA2C;AACrE,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;IACxBN,KAAK,CAACO,OAAO,CAAC,CAAC;IACfL,aAAa,CAAC,EAAE,CAAC;IACjB,MAAMM,GAAG,GAAG,OAAO;IACnBV,uBAAuB,CAAC;MAAEW,aAAa,EAAEZ,kBAAkB,CAACa,GAAG;MAAEC,SAAS,EAAEf,2BAA2B,CAACgB,cAAc;MAAEC,UAAU,EAAElB,sBAAsB,CAACmB,iBAAiB;MAAEN,GAAG,EAAEA;IAAI,C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BC,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,9 +1,7 @@
|
|
|
1
|
-
/* eslint-disable react-native/no-inline-styles */
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { Animated, Platform, SafeAreaView, StyleSheet, Text, View } from 'react-native';
|
|
5
3
|
import { Surface, withTheme } from 'react-native-paper';
|
|
6
|
-
import
|
|
4
|
+
import AntDesign from '@react-native-vector-icons/ant-design';
|
|
7
5
|
import { Fonts } from '../../styles/executionTasks/CommonStyles';
|
|
8
6
|
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
9
7
|
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
@@ -105,23 +103,23 @@ const SnackbarCustom = ({
|
|
|
105
103
|
}, /*#__PURE__*/React.createElement(View, {
|
|
106
104
|
style: type && type === SnackBarType.FAILURE ? styles.fail : type && type === SnackBarType.WARNING ? styles.warn : type && type === SnackBarType.PAYMENT_WARNING ? styles.paymentWarn : type && type === SnackBarType.OTP_SUCCESS ? styles.otpSuccess : type && type === SnackBarType.OTP_FAILED ? styles.otpFailed : styles.main
|
|
107
105
|
}, type && type === SnackBarType.FAILURE ? /*#__PURE__*/React.createElement(AntDesign, {
|
|
108
|
-
name: "
|
|
106
|
+
name: "exclamation-circle",
|
|
109
107
|
size: 20,
|
|
110
108
|
color: "white"
|
|
111
109
|
}) : type && type === SnackBarType.PAYMENT_WARNING ? /*#__PURE__*/React.createElement(AntDesign, {
|
|
112
|
-
name: "
|
|
110
|
+
name: "info-circle",
|
|
113
111
|
size: 20,
|
|
114
112
|
color: "#D97706"
|
|
115
113
|
}) : type && type === SnackBarType.OTP_SUCCESS ? /*#__PURE__*/React.createElement(AntDesign, {
|
|
116
|
-
name: "
|
|
114
|
+
name: "check-circle",
|
|
117
115
|
size: 20,
|
|
118
116
|
color: "#059669"
|
|
119
117
|
}) : type && type === SnackBarType.OTP_FAILED ? /*#__PURE__*/React.createElement(AntDesign, {
|
|
120
|
-
name: "
|
|
118
|
+
name: "close-circle",
|
|
121
119
|
size: 20,
|
|
122
120
|
color: "#DC2626"
|
|
123
121
|
}) : /*#__PURE__*/React.createElement(AntDesign, {
|
|
124
|
-
name: "
|
|
122
|
+
name: "check-circle",
|
|
125
123
|
size: 20,
|
|
126
124
|
color: "white"
|
|
127
125
|
}), /*#__PURE__*/React.createElement(Text, {
|