@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativePaper","_vectorIcons","_CommonStyles","_SentrySdkConstants","_SentryAnalyticsUtils","e","__esModule","default","DURATION_MEDIUM","SnackBarType","exports","SnackbarCustom","visible","duration","onDismiss","message","theme","type","customBottom","customTop","current","opacity","React","useRef","Animated","Value","hidden","setHidden","useState","hideTimeout","undefined","scale","animation","isDarkColorType","PAYMENT_WARNING","OTP_FAILED","OTP_SUCCESS","useEffect","clearTimeout","useLayoutEffect","timing","toValue","useNativeDriver","start","finished","isInfinity","Number","POSITIVE_INFINITY","NEGATIVE_INFINITY","setTimeout","colors","roundness","createElement","SafeAreaView","pointerEvents","style","styles","wrapper","bottom","top","Surface","accessibilityLiveRegion","container","borderRadius","transform","interpolate","inputRange","outputRange","View","FAILURE","fail","WARNING","warn","paymentWarn","otpSuccess","otpFailed","main","AntDesign","name","size","color","Text","messageStyle","onPress","cta","fireEventWithScreenName","severityLevel","SeverityLevelValue","LOG","eventName","SentryEventNameSdkConstants","BUTTON_CLICKED","screenName","ScreenNameSdkConstants","SCAN_BAR_CUSTOM_SCREEN","StyleSheet","create","position","width","zIndex","elevation","flexDirection","justifyContent","alignItems","margin","padding","backgroundColor","flex","fontSize","marginStart","marginEnd","fontWeight","lineHeight","fontFamily","Platform","OS","Fonts","IBMPlexSans_400Regular","_default","withTheme"],"sources":["SnackBarCustom.tsx"],"sourcesContent":["/* eslint-disable react-native/no-inline-styles */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport React from 'react';\nimport {\n Animated,\n Platform,\n SafeAreaView,\n StyleProp,\n StyleSheet,\n Text,\n View,\n ViewStyle,\n} from 'react-native';\nimport { Surface, withTheme } from 'react-native-paper';\nimport { AntDesign } from '@expo/vector-icons';\nimport { Fonts } from '../../styles/executionTasks/CommonStyles';\nimport {\n ScreenNameSdkConstants,\n SentryEventNameSdkConstants,\n SeverityLevelValue,\n} from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\nexport interface SnackbarProps {\n visible: boolean;\n duration?: number;\n onDismiss: () => void;\n message: string;\n type?: SnackBarType;\n theme: ReactNativePaper.Theme;\n customBottom?: number;\n customTop?: number;\n}\nconst DURATION_MEDIUM = 4500;\n\nexport enum SnackBarType {\n SUCCESS,\n FAILURE,\n WARNING,\n PAYMENT_WARNING,\n OTP_SUCCESS,\n OTP_FAILED,\n}\n\nconst SnackbarCustom = ({\n visible,\n duration = DURATION_MEDIUM,\n onDismiss,\n message,\n theme,\n type,\n customBottom = 110,\n customTop,\n}: SnackbarProps) => {\n const { current: opacity } = React.useRef<Animated.Value>(\n new Animated.Value(0.0)\n );\n const [hidden, setHidden] = React.useState<boolean>(true);\n\n const hideTimeout = React.useRef<NodeJS.Timeout | undefined>(undefined);\n const { scale } = theme.animation;\n\n const isDarkColorType =\n type === SnackBarType.PAYMENT_WARNING ||\n type === SnackBarType.OTP_FAILED ||\n type === SnackBarType.OTP_SUCCESS;\n\n React.useEffect(() => {\n return () => {\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n };\n }, []);\n\n React.useLayoutEffect(() => {\n if (visible) {\n // show\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n setHidden(false);\n Animated.timing(opacity, {\n toValue: 1,\n duration: 200 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) {\n const isInfinity =\n duration === Number.POSITIVE_INFINITY ||\n duration === Number.NEGATIVE_INFINITY;\n\n if (finished && !isInfinity) {\n hideTimeout.current = setTimeout(\n onDismiss,\n duration\n ) as unknown as NodeJS.Timeout;\n }\n }\n });\n } else {\n // hide\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n\n Animated.timing(opacity, {\n toValue: 0,\n duration: 100 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) setHidden(true);\n });\n }\n }, [visible, duration, opacity, scale, onDismiss]);\n\n const { colors, roundness } = theme;\n\n if (hidden) return null;\n\n if (!message) return null;\n\n return (\n <SafeAreaView\n pointerEvents=\"box-none\"\n style={[\n styles.wrapper,\n { bottom: customBottom },\n customTop !== undefined ? { top: customTop } : {},\n ]}\n >\n <Surface\n pointerEvents=\"box-none\"\n accessibilityLiveRegion=\"polite\"\n style={\n [\n styles.container,\n {\n borderRadius: roundness ? roundness : 8,\n opacity: opacity,\n transform: [\n {\n scale: visible\n ? opacity.interpolate({\n inputRange: [0, 1],\n outputRange: [0.9, 1],\n })\n : 1,\n },\n ],\n },\n // { backgroundColor: colors.onSurface },\n ] as StyleProp<ViewStyle>\n }\n >\n <View\n style={\n type && type === SnackBarType.FAILURE\n ? styles.fail\n : type && type === SnackBarType.WARNING\n ? styles.warn\n : type && type === SnackBarType.PAYMENT_WARNING\n ? styles.paymentWarn\n : type && type === SnackBarType.OTP_SUCCESS\n ? styles.otpSuccess\n : type && type === SnackBarType.OTP_FAILED\n ? styles.otpFailed\n : styles.main\n }\n >\n {type && type === SnackBarType.FAILURE ? (\n <AntDesign name=\"exclamationcircleo\" size={20} color=\"white\" />\n ) : type && type === SnackBarType.PAYMENT_WARNING ? (\n <AntDesign name=\"infocirlceo\" size={20} color=\"#D97706\" />\n ) : type && type === SnackBarType.OTP_SUCCESS ? (\n <AntDesign name=\"checkcircleo\" size={20} color=\"#059669\" />\n ) : type && type === SnackBarType.OTP_FAILED ? (\n <AntDesign name=\"closecircleo\" size={20} color=\"#DC2626\" />\n ) : (\n <AntDesign name=\"checkcircleo\" size={20} color=\"white\" />\n )}\n <Text\n style={[\n styles.messageStyle,\n type === SnackBarType.PAYMENT_WARNING && { color: '#B45309' },\n type === SnackBarType.OTP_SUCCESS && { color: '#059669' },\n type === SnackBarType.OTP_FAILED && { color: '#DC2626' },\n ]}\n >\n {message}\n </Text>\n <AntDesign\n name=\"close\"\n size={20}\n color={isDarkColorType ? '#3D445C' : 'white'}\n onPress={() => {\n setHidden(true);\n onDismiss();\n const cta = 'Close';\n fireEventWithScreenName({\n severityLevel: SeverityLevelValue.LOG,\n eventName: SentryEventNameSdkConstants.BUTTON_CLICKED,\n screenName: ScreenNameSdkConstants.SCAN_BAR_CUSTOM_SCREEN,\n cta: cta,\n });\n }}\n />\n </View>\n </Surface>\n </SafeAreaView>\n );\n};\n\nconst styles = StyleSheet.create({\n wrapper: {\n position: 'absolute',\n bottom: 110,\n width: '100%',\n zIndex: 1000,\n },\n container: {\n elevation: 6,\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n margin: 8,\n borderRadius: 8,\n },\n main: {\n padding: 12,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#059669',\n flex: 1,\n borderRadius: 8,\n },\n fail: {\n padding: 12,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#DC2626',\n flex: 1,\n borderRadius: 8,\n },\n warn: {\n padding: 12,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#D97706',\n flex: 1,\n borderRadius: 8,\n },\n paymentWarn: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#FFFBEB',\n flex: 1,\n borderRadius: 8,\n },\n otpSuccess: {\n padding: 12,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#ECFDF5',\n flex: 1,\n borderRadius: 8,\n },\n otpFailed: {\n padding: 12,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#FEF2F2',\n flex: 1,\n borderRadius: 8,\n },\n messageStyle: {\n fontSize: 14,\n marginStart: 8,\n marginEnd: 8,\n width: '80%',\n color: '#ffffff',\n flex: 1,\n fontWeight: '400',\n lineHeight: 20,\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_400Regular\n : 'IBMPlexSans_400Regular',\n },\n});\n\nexport default withTheme(SnackbarCustom);\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AAKA,IAAAM,qBAAA,GAAAN,OAAA;AAAsF,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AArBtF;AACA;;AAgCA,MAAMG,eAAe,GAAG,IAAI;AAAC,IAEjBC,YAAY,GAAAC,OAAA,CAAAD,YAAA,0BAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AASxB,MAAME,cAAc,GAAGA,CAAC;EACtBC,OAAO;EACPC,QAAQ,GAAGL,eAAe;EAC1BM,SAAS;EACTC,OAAO;EACPC,KAAK;EACLC,IAAI;EACJC,YAAY,GAAG,GAAG;EAClBC;AACa,CAAC,KAAK;EACnB,MAAM;IAA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IACP5C,YAAY,EAAE;EAChB,CAAC;EACDW,UAAU,EAAE;IACV+B,OAAO,EAAE,EAAE;IACXJ,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE,QAAQ;IACpBG,eAAe,EAAE,SAAS;IAC1BC,IAAI,EAAE,CAAC;IACP5C,YAAY,EAAE;EAChB,CAAC;EACDY,SAAS,EAAE;IACT8B,OAAO,EAAE,EAAE;IACXJ,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE,QAAQ;IACpBG,eAAe,EAAE,SAAS;IAC1BC,IAAI,EAAE,CAAC;IACP5C,YAAY,EAAE;EAChB,CAAC;EACDmB,YAAY,EAAE;IACZ0B,QAAQ,EAAE,EAAE;IACZC,WAAW,EAAE,CAAC;IACdC,SAAS,EAAE,CAAC;IACZZ,KAAK,EAAE,KAAK;IACZlB,KAAK,EAAE,SAAS;IAChB2B,IAAI,EAAE,CAAC;IACPI,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE,EAAE;IACdC,UAAU,EACRC,qBAAQ,CAACC,EAAE,KAAK,SAAS,GACrBC,mBAAK,CAACC,sBAAsB,GAC5B;EACR;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAA5G,OAAA,CAAAH,OAAA,GAEY,IAAAgH,2BAAS,EAAC5G,cAAc,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativePaper","_antDesign","_CommonStyles","_SentrySdkConstants","_SentryAnalyticsUtils","e","__esModule","default","DURATION_MEDIUM","SnackBarType","exports","SnackbarCustom","visible","duration","onDismiss","message","theme","type","customBottom","customTop","current","opacity","React","useRef","Animated","Value","hidden","setHidden","useState","hideTimeout","undefined","scale","animation","isDarkColorType","PAYMENT_WARNING","OTP_FAILED","OTP_SUCCESS","useEffect","clearTimeout","useLayoutEffect","timing","toValue","useNativeDriver","start","finished","isInfinity","Number","POSITIVE_INFINITY","NEGATIVE_INFINITY","setTimeout","colors","roundness","createElement","SafeAreaView","pointerEvents","style","styles","wrapper","bottom","top","Surface","accessibilityLiveRegion","container","borderRadius","transform","interpolate","inputRange","outputRange","View","FAILURE","fail","WARNING","warn","paymentWarn","otpSuccess","otpFailed","main","name","size","color","Text","messageStyle","onPress","cta","fireEventWithScreenName","severityLevel","SeverityLevelValue","LOG","eventName","SentryEventNameSdkConstants","BUTTON_CLICKED","screenName","ScreenNameSdkConstants","SCAN_BAR_CUSTOM_SCREEN","StyleSheet","create","position","width","zIndex","elevation","flexDirection","justifyContent","alignItems","margin","padding","backgroundColor","flex","fontSize","marginStart","marginEnd","fontWeight","lineHeight","fontFamily","Platform","OS","Fonts","IBMPlexSans_400Regular","_default","withTheme"],"sources":["SnackBarCustom.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Animated,\n Platform,\n SafeAreaView,\n StyleProp,\n StyleSheet,\n Text,\n View,\n ViewStyle,\n} from 'react-native';\nimport { Surface, withTheme, MD3Theme } from 'react-native-paper';\nimport AntDesign from '@react-native-vector-icons/ant-design';\nimport { Fonts } from '../../styles/executionTasks/CommonStyles';\nimport {\n ScreenNameSdkConstants,\n SentryEventNameSdkConstants,\n SeverityLevelValue,\n} from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\nexport interface SnackbarProps {\n visible: boolean;\n duration?: number;\n onDismiss: () => void;\n message: string;\n type?: SnackBarType;\n theme: MD3Theme;\n customBottom?: number;\n customTop?: number;\n}\nconst DURATION_MEDIUM = 4500;\n\nexport enum SnackBarType {\n SUCCESS,\n FAILURE,\n WARNING,\n PAYMENT_WARNING,\n OTP_SUCCESS,\n OTP_FAILED,\n}\n\nconst SnackbarCustom = ({\n visible,\n duration = DURATION_MEDIUM,\n onDismiss,\n message,\n theme,\n type,\n customBottom = 110,\n customTop,\n}: SnackbarProps) => {\n const { current: opacity } = React.useRef<Animated.Value>(\n new Animated.Value(0.0)\n );\n const [hidden, setHidden] = React.useState<boolean>(true);\n\n const hideTimeout = React.useRef<NodeJS.Timeout | undefined>(undefined);\n const { scale } = theme.animation;\n\n const isDarkColorType =\n type === SnackBarType.PAYMENT_WARNING ||\n type === SnackBarType.OTP_FAILED ||\n type === SnackBarType.OTP_SUCCESS;\n\n React.useEffect(() => {\n return () => {\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n };\n }, []);\n\n React.useLayoutEffect(() => {\n if (visible) {\n // show\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n setHidden(false);\n Animated.timing(opacity, {\n toValue: 1,\n duration: 200 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) {\n const isInfinity =\n duration === Number.POSITIVE_INFINITY ||\n duration === Number.NEGATIVE_INFINITY;\n\n if (finished && !isInfinity) {\n hideTimeout.current = setTimeout(\n onDismiss,\n duration\n ) as unknown as NodeJS.Timeout;\n }\n }\n });\n } else {\n // hide\n if (hideTimeout.current) clearTimeout(hideTimeout.current);\n\n Animated.timing(opacity, {\n toValue: 0,\n duration: 100 * scale,\n useNativeDriver: true,\n }).start(({ finished }) => {\n if (finished) setHidden(true);\n });\n }\n }, [visible, duration, opacity, scale, onDismiss]);\n\n const { colors, roundness } = theme;\n\n if (hidden) return null;\n\n if (!message) return null;\n\n return (\n <SafeAreaView\n pointerEvents=\"box-none\"\n style={[\n styles.wrapper,\n { bottom: customBottom },\n customTop !== undefined ? { top: customTop } : {},\n ]}\n >\n <Surface\n pointerEvents=\"box-none\"\n accessibilityLiveRegion=\"polite\"\n style={\n [\n styles.container,\n {\n borderRadius: roundness ? roundness : 8,\n opacity: opacity,\n transform: [\n {\n scale: visible\n ? opacity.interpolate({\n inputRange: [0, 1],\n outputRange: [0.9, 1],\n })\n : 1,\n },\n ],\n },\n // { backgroundColor: colors.onSurface },\n ] as StyleProp<ViewStyle>\n }\n >\n <View\n style={\n type && type === SnackBarType.FAILURE\n ? styles.fail\n : type && type === SnackBarType.WARNING\n ? styles.warn\n : type && type === SnackBarType.PAYMENT_WARNING\n ? styles.paymentWarn\n : type && type === SnackBarType.OTP_SUCCESS\n ? styles.otpSuccess\n : type && type === SnackBarType.OTP_FAILED\n ? styles.otpFailed\n : styles.main\n }\n >\n {type && type === SnackBarType.FAILURE ? (\n <AntDesign name=\"exclamation-circle\" size={20} color=\"white\" />\n ) : type && type === SnackBarType.PAYMENT_WARNING ? (\n <AntDesign name=\"info-circle\" size={20} color=\"#D97706\" />\n ) : type && type === SnackBarType.OTP_SUCCESS ? (\n <AntDesign name=\"check-circle\" size={20} color=\"#059669\" />\n ) : type && type === SnackBarType.OTP_FAILED ? (\n <AntDesign name=\"close-circle\" size={20} color=\"#DC2626\" />\n ) : (\n <AntDesign name=\"check-circle\" size={20} color=\"white\" />\n )}\n <Text\n style={[\n styles.messageStyle,\n type === SnackBarType.PAYMENT_WARNING && { color: '#B45309' },\n type === SnackBarType.OTP_SUCCESS && { color: '#059669' },\n type === SnackBarType.OTP_FAILED && { color: '#DC2626' },\n ]}\n >\n {message}\n </Text>\n <AntDesign\n name=\"close\"\n size={20}\n color={isDarkColorType ? '#3D445C' : 'white'}\n onPress={() => {\n setHidden(true);\n onDismiss();\n const cta = 'Close';\n fireEventWithScreenName({\n severityLevel: SeverityLevelValue.LOG,\n eventName: SentryEventNameSdkConstants.BUTTON_CLICKED,\n screenName: ScreenNameSdkConstants.SCAN_BAR_CUSTOM_SCREEN,\n cta: cta,\n });\n }}\n />\n </View>\n </Surface>\n </SafeAreaView>\n );\n};\n\nconst styles = StyleSheet.create({\n wrapper: {\n position: 'absolute',\n bottom: 110,\n width: '100%',\n zIndex: 1000,\n },\n container: {\n elevation: 6,\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n margin: 8,\n borderRadius: 8,\n },\n main: {\n padding: 12,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#059669',\n flex: 1,\n borderRadius: 8,\n },\n fail: {\n padding: 12,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#DC2626',\n flex: 1,\n borderRadius: 8,\n },\n warn: {\n padding: 12,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#D97706',\n flex: 1,\n borderRadius: 8,\n },\n paymentWarn: {\n padding: 16,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#FFFBEB',\n flex: 1,\n borderRadius: 8,\n },\n otpSuccess: {\n padding: 12,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#ECFDF5',\n flex: 1,\n borderRadius: 8,\n },\n otpFailed: {\n padding: 12,\n flexDirection: 'row',\n alignItems: 'center',\n backgroundColor: '#FEF2F2',\n flex: 1,\n borderRadius: 8,\n },\n messageStyle: {\n fontSize: 14,\n marginStart: 8,\n marginEnd: 8,\n width: '80%',\n color: '#ffffff',\n flex: 1,\n fontWeight: '400',\n lineHeight: 20,\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_400Regular\n : 'IBMPlexSans_400Regular',\n },\n});\n\nexport default withTheme(SnackbarCustom);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AAKA,IAAAM,qBAAA,GAAAN,OAAA;AAAsF,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAYtF,MAAMG,eAAe,GAAG,IAAI;AAAC,IAEjBC,YAAY,GAAAC,OAAA,CAAAD,YAAA,0BAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,Y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pBG,eAAe,EAAE,SAAS;IAC1BC,IAAI,EAAE,CAAC;IACP3C,YAAY,EAAE;EAChB,CAAC;EACDU,WAAW,EAAE;IACX+B,OAAO,EAAE,EAAE;IACXJ,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE,QAAQ;IACpBG,eAAe,EAAE,SAAS;IAC1BC,IAAI,EAAE,CAAC;IACP3C,YAAY,EAAE;EAChB,CAAC;EACDW,UAAU,EAAE;IACV8B,OAAO,EAAE,EAAE;IACXJ,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE,QAAQ;IACpBG,eAAe,EAAE,SAAS;IAC1BC,IAAI,EAAE,CAAC;IACP3C,YAAY,EAAE;EAChB,CAAC;EACDY,SAAS,EAAE;IACT6B,OAAO,EAAE,EAAE;IACXJ,aAAa,EAAE,KAAK;IACpBE,UAAU,EAAE,QAAQ;IACpBG,eAAe,EAAE,SAAS;IAC1BC,IAAI,EAAE,CAAC;IACP3C,YAAY,EAAE;EAChB,CAAC;EACDkB,YAAY,EAAE;IACZ0B,QAAQ,EAAE,EAAE;IACZC,WAAW,EAAE,CAAC;IACdC,SAAS,EAAE,CAAC;IACZZ,KAAK,EAAE,KAAK;IACZlB,KAAK,EAAE,SAAS;IAChB2B,IAAI,EAAE,CAAC;IACPI,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE,EAAE;IACdC,UAAU,EACRC,qBAAQ,CAACC,EAAE,KAAK,SAAS,GACrBC,mBAAK,CAACC,sBAAsB,GAC5B;EACR;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAA3G,OAAA,CAAAH,OAAA,GAEY,IAAA+G,2BAAS,EAAC3G,cAAc,CAAC","ignoreList":[]}
|
|
@@ -9,8 +9,7 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _Scale = require("../utils/Scale");
|
|
10
10
|
var _SentrySdkConstants = require("../../analytics/sentry/SentrySdkConstants");
|
|
11
11
|
var _SentryAnalyticsUtils = require("../../analytics/sentry/SentryAnalyticsUtils");
|
|
12
|
-
function
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
13
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
15
14
|
// External imports
|
|
16
15
|
|
|
@@ -24,7 +23,7 @@ const SplitTextInput = ({
|
|
|
24
23
|
keyboardType,
|
|
25
24
|
hasError
|
|
26
25
|
}) => {
|
|
27
|
-
const inputRef = (0, _react.useRef)();
|
|
26
|
+
const inputRef = (0, _react.useRef)(null);
|
|
28
27
|
const boxArray = new Array(maxLength).fill(0);
|
|
29
28
|
const [isInputBoxFocused, setIsInputBoxFocused] = (0, _react.useState)(false);
|
|
30
29
|
const handleOnPress = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_Scale","_SentrySdkConstants","_SentryAnalyticsUtils","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SplitTextInput","styles","value","onChange","maxLength","keyboardType","hasError","inputRef","useRef","boxArray","Array","fill","isInputBoxFocused","setIsInputBoxFocused","useState","handleOnPress","cta","fireEventWithScreenName","severityLevel","SeverityLevelValue","LOG","eventName","SentryEventNameSdkConstants","BUTTON_CLICKED","screenName","ScreenNameSdkConstants","SPLIT_TEXT_INPUT_SCREEN","current","focus","handleOnBlur","blur","Keyboard","dismiss","useEffect","length","boxDigit","_","index","digit","isCurrentValue","isLastValue","isCodeComplete","isValueFocused","splitBoxesStyle","widgetStyles","errorSplitBoxes","splitBoxes","focusedSplitBoxes","createElement","View","style","key","Text","Fragment","Pressable","onPress","splitContainer","map","TextInput","textInputHidden","onChangeText","ref","onBlur","returnKeyLabel","returnKeyType","onSubmitEditing","onFocus","_default","exports","StyleSheet","create","width","flexDirection","justifyContent","gap","flexWrap","borderColor","borderWidth","borderRadius","padding","sWidth","minWidth","maxWidth","flex","alignSelf","minHeight","sHeight","height","maxHeight","display","alignContent","position","opacity","backgroundColor"],"sources":["SplitTextInput.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n// External imports\nimport React, { useEffect, useRef, useState } from 'react';\nimport {\n View,\n Text,\n Pressable,\n StyleSheet,\n TextInput,\n KeyboardTypeOptions,\n Keyboard,\n} from 'react-native';\n\n// Internal imports\nimport { sHeight, sWidth } from '../utils/Scale';\nimport {\n ScreenNameSdkConstants,\n SentryEventNameSdkConstants,\n SeverityLevelValue,\n} from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\nexport interface SplitTextInputProps {\n styles: any;\n value: string;\n onChange: (text: string) => void;\n maxLength: number;\n keyboardType: KeyboardTypeOptions;\n hasError: boolean;\n}\n\nconst SplitTextInput = ({\n styles,\n value,\n onChange,\n maxLength,\n keyboardType,\n hasError,\n}: SplitTextInputProps) => {\n const inputRef: any = useRef();\n const boxArray = new Array(maxLength).fill(0);\n const [isInputBoxFocused, setIsInputBoxFocused] = useState(false);\n\n const handleOnPress = () => {\n const cta = 'Split Text Input';\n fireEventWithScreenName({\n severityLevel: SeverityLevelValue.LOG,\n eventName: SentryEventNameSdkConstants.BUTTON_CLICKED,\n screenName: ScreenNameSdkConstants.SPLIT_TEXT_INPUT_SCREEN,\n cta: cta,\n });\n\n setIsInputBoxFocused(true);\n inputRef.current.focus();\n };\n\n const handleOnBlur = () => {\n setIsInputBoxFocused(false);\n inputRef.current.blur();\n Keyboard.dismiss();\n };\n\n useEffect(() => {\n if (value?.length === maxLength) {\n setIsInputBoxFocused(false);\n inputRef.current.blur();\n Keyboard.dismiss();\n }\n }, [maxLength, value?.length]);\n const boxDigit = (_: number, index: number) => {\n const digit = value[index] || '';\n\n const isCurrentValue = index === value.length;\n const isLastValue = index === maxLength - 1;\n const isCodeComplete = value.length === maxLength;\n\n const isValueFocused = isCurrentValue || (isLastValue && isCodeComplete);\n\n const splitBoxesStyle = hasError\n ? widgetStyles.errorSplitBoxes\n : isInputBoxFocused && isValueFocused\n ? // || value[index]\n [widgetStyles.splitBoxes, widgetStyles.focusedSplitBoxes]\n : widgetStyles.splitBoxes;\n\n return (\n <View style={splitBoxesStyle} key={index}>\n <Text style={styles}>{digit}</Text>\n </View>\n );\n };\n\n return (\n <>\n <Pressable onPress={handleOnPress} style={widgetStyles.splitContainer}>\n {boxArray.map(boxDigit)}\n </Pressable>\n <TextInput\n style={widgetStyles.textInputHidden}\n value={value}\n onChangeText={onChange}\n maxLength={maxLength}\n ref={inputRef}\n onBlur={handleOnBlur}\n keyboardType={keyboardType}\n returnKeyLabel={'Done'}\n returnKeyType=\"done\"\n onSubmitEditing={() => Keyboard.dismiss()}\n onFocus={handleOnPress}\n />\n </>\n );\n};\n\nexport default SplitTextInput;\nconst widgetStyles = StyleSheet.create({\n splitContainer: {\n width: '100%',\n flexDirection: 'row',\n justifyContent: 'flex-start',\n gap: 16,\n flexWrap: 'wrap',\n },\n splitBoxes: {\n borderColor: '#DDE3F9',\n borderWidth: 1,\n borderRadius: 6,\n padding: 8,\n width: sWidth(36),\n minWidth: sWidth(36),\n maxWidth: sWidth(36),\n flex: 1,\n alignSelf: 'stretch',\n minHeight: sHeight(48),\n height: sHeight(48),\n maxHeight: sHeight(48),\n display: 'flex',\n justifyContent: 'center',\n alignContent: 'center',\n },\n focusedSplitBoxes: {\n borderColor: '#5B80F7', // Override specific properties\n },\n\n errorSplitBoxes: {\n borderColor: '#DC2626',\n borderWidth: 2,\n borderRadius: 5,\n padding: 12,\n minWidth: 50,\n },\n textInputHidden: {\n height: sHeight(48),\n width: '100%',\n position: 'absolute',\n opacity: 0,\n backgroundColor: 'red',\n },\n});\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAWA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAKA,IAAAI,qBAAA,GAAAJ,OAAA;AAAsF,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAA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AAC;IACVR,KAAK,EAAE,IAAAS,aAAM,EAAC,EAAE,CAAC;IACjBC,QAAQ,EAAE,IAAAD,aAAM,EAAC,EAAE,CAAC;IACpBE,QAAQ,EAAE,IAAAF,aAAM,EAAC,EAAE,CAAC;IACpBG,IAAI,EAAE,CAAC;IACPC,SAAS,EAAE,SAAS;IACpBC,SAAS,EAAE,IAAAC,cAAO,EAAC,EAAE,CAAC;IACtBC,MAAM,EAAE,IAAAD,cAAO,EAAC,EAAE,CAAC;IACnBE,SAAS,EAAE,IAAAF,cAAO,EAAC,EAAE,CAAC;IACtBG,OAAO,EAAE,MAAM;IACfhB,cAAc,EAAE,QAAQ;IACxBiB,YAAY,EAAE;EAChB,CAAC;EACD3C,iBAAiB,EAAE;IACjB6B,WAAW,EAAE,SAAS,CAAE;EAC1B,CAAC;EAED/B,eAAe,EAAE;IACf+B,WAAW,EAAE,SAAS;IACtBC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,CAAC;IACfC,OAAO,EAAE,EAAE;IACXE,QAAQ,EAAE;EACZ,CAAC;EACDtB,eAAe,EAAE;IACf4B,MAAM,EAAE,IAAAD,cAAO,EAAC,EAAE,CAAC;IACnBf,KAAK,EAAE,MAAM;IACboB,QAAQ,EAAE,UAAU;IACpBC,OAAO,EAAE,CAAC;IACVC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_Scale","_SentrySdkConstants","_SentryAnalyticsUtils","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SplitTextInput","styles","value","onChange","maxLength","keyboardType","hasError","inputRef","useRef","boxArray","Array","fill","isInputBoxFocused","setIsInputBoxFocused","useState","handleOnPress","cta","fireEventWithScreenName","severityLevel","SeverityLevelValue","LOG","eventName","SentryEventNameSdkConstants","BUTTON_CLICKED","screenName","ScreenNameSdkConstants","SPLIT_TEXT_INPUT_SCREEN","current","focus","handleOnBlur","blur","Keyboard","dismiss","useEffect","length","boxDigit","_","index","digit","isCurrentValue","isLastValue","isCodeComplete","isValueFocused","splitBoxesStyle","widgetStyles","errorSplitBoxes","splitBoxes","focusedSplitBoxes","createElement","View","style","key","Text","Fragment","Pressable","onPress","splitContainer","map","TextInput","textInputHidden","onChangeText","ref","onBlur","returnKeyLabel","returnKeyType","onSubmitEditing","onFocus","_default","exports","StyleSheet","create","width","flexDirection","justifyContent","gap","flexWrap","borderColor","borderWidth","borderRadius","padding","sWidth","minWidth","maxWidth","flex","alignSelf","minHeight","sHeight","height","maxHeight","display","alignContent","position","opacity","backgroundColor"],"sources":["SplitTextInput.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n// External imports\nimport React, { useEffect, useRef, useState } from 'react';\nimport {\n View,\n Text,\n Pressable,\n StyleSheet,\n TextInput,\n KeyboardTypeOptions,\n Keyboard,\n} from 'react-native';\n\n// Internal imports\nimport { sHeight, sWidth } from '../utils/Scale';\nimport {\n ScreenNameSdkConstants,\n SentryEventNameSdkConstants,\n SeverityLevelValue,\n} from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\nexport interface SplitTextInputProps {\n styles: any;\n value: string;\n onChange: (text: string) => void;\n maxLength: number;\n keyboardType: KeyboardTypeOptions;\n hasError: boolean;\n}\n\nconst SplitTextInput = ({\n styles,\n value,\n onChange,\n maxLength,\n keyboardType,\n hasError,\n}: SplitTextInputProps) => {\n const inputRef: any = useRef(null);\n const boxArray = new Array(maxLength).fill(0);\n const [isInputBoxFocused, setIsInputBoxFocused] = useState(false);\n\n const handleOnPress = () => {\n const cta = 'Split Text Input';\n fireEventWithScreenName({\n severityLevel: SeverityLevelValue.LOG,\n eventName: SentryEventNameSdkConstants.BUTTON_CLICKED,\n screenName: ScreenNameSdkConstants.SPLIT_TEXT_INPUT_SCREEN,\n cta: cta,\n });\n\n setIsInputBoxFocused(true);\n inputRef.current.focus();\n };\n\n const handleOnBlur = () => {\n setIsInputBoxFocused(false);\n inputRef.current.blur();\n Keyboard.dismiss();\n };\n\n useEffect(() => {\n if (value?.length === maxLength) {\n setIsInputBoxFocused(false);\n inputRef.current.blur();\n Keyboard.dismiss();\n }\n }, [maxLength, value?.length]);\n const boxDigit = (_: number, index: number) => {\n const digit = value[index] || '';\n\n const isCurrentValue = index === value.length;\n const isLastValue = index === maxLength - 1;\n const isCodeComplete = value.length === maxLength;\n\n const isValueFocused = isCurrentValue || (isLastValue && isCodeComplete);\n\n const splitBoxesStyle = hasError\n ? widgetStyles.errorSplitBoxes\n : isInputBoxFocused && isValueFocused\n ? // || value[index]\n [widgetStyles.splitBoxes, widgetStyles.focusedSplitBoxes]\n : widgetStyles.splitBoxes;\n\n return (\n <View style={splitBoxesStyle} key={index}>\n <Text style={styles}>{digit}</Text>\n </View>\n );\n };\n\n return (\n <>\n <Pressable onPress={handleOnPress} style={widgetStyles.splitContainer}>\n {boxArray.map(boxDigit)}\n </Pressable>\n <TextInput\n style={widgetStyles.textInputHidden}\n value={value}\n onChangeText={onChange}\n maxLength={maxLength}\n ref={inputRef}\n onBlur={handleOnBlur}\n keyboardType={keyboardType}\n returnKeyLabel={'Done'}\n returnKeyType=\"done\"\n onSubmitEditing={() => Keyboard.dismiss()}\n onFocus={handleOnPress}\n />\n </>\n );\n};\n\nexport default SplitTextInput;\nconst widgetStyles = StyleSheet.create({\n splitContainer: {\n width: '100%',\n flexDirection: 'row',\n justifyContent: 'flex-start',\n gap: 16,\n flexWrap: 'wrap',\n },\n splitBoxes: {\n borderColor: '#DDE3F9',\n borderWidth: 1,\n borderRadius: 6,\n padding: 8,\n width: sWidth(36),\n minWidth: sWidth(36),\n maxWidth: sWidth(36),\n flex: 1,\n alignSelf: 'stretch',\n minHeight: sHeight(48),\n height: sHeight(48),\n maxHeight: sHeight(48),\n display: 'flex',\n justifyContent: 'center',\n alignContent: 'center',\n },\n focusedSplitBoxes: {\n borderColor: '#5B80F7', // Override specific properties\n },\n\n errorSplitBoxes: {\n borderColor: '#DC2626',\n borderWidth: 2,\n borderRadius: 5,\n padding: 12,\n minWidth: 50,\n },\n textInputHidden: {\n height: sHeight(48),\n width: '100%',\n position: 'absolute',\n opacity: 0,\n backgroundColor: 'red',\n },\n});\n"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAWA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAKA,IAAAI,qBAAA,GAAAJ,OAAA;AAAsF,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA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IACtBG,OAAO,EAAE,MAAM;IACfhB,cAAc,EAAE,QAAQ;IACxBiB,YAAY,EAAE;EAChB,CAAC;EACD3C,iBAAiB,EAAE;IACjB6B,WAAW,EAAE,SAAS,CAAE;EAC1B,CAAC;EAED/B,eAAe,EAAE;IACf+B,WAAW,EAAE,SAAS;IACtBC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,CAAC;IACfC,OAAO,EAAE,EAAE;IACXE,QAAQ,EAAE;EACZ,CAAC;EACDtB,eAAe,EAAE;IACf4B,MAAM,EAAE,IAAAD,cAAO,EAAC,EAAE,CAAC;IACnBf,KAAK,EAAE,MAAM;IACboB,QAAQ,EAAE,UAAU;IACpBC,OAAO,EAAE,CAAC;IACVC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -8,8 +8,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _SentrySdkConstants = require("../../analytics/sentry/SentrySdkConstants");
|
|
10
10
|
var _SentryAnalyticsUtils = require("../../analytics/sentry/SentryAnalyticsUtils");
|
|
11
|
-
function
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
12
|
const TabsComponent = props => {
|
|
14
13
|
const [activeTab, setActiveTab] = (0, _react.useState)(props.initialTab.title);
|
|
15
14
|
const handleTabPress = tabName => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_SentrySdkConstants","_SentryAnalyticsUtils","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_SentrySdkConstants","_SentryAnalyticsUtils","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TabsComponent","props","activeTab","setActiveTab","useState","initialTab","title","handleTabPress","tabName","onTabChange","createElement","View","style","styles","container","flexDirection","ScrollView","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","tabsContainer","tabs","map","tab","TouchableOpacity","key","tabItem","titleStyle","onPress","cta","fireEventWithScreenName","severityLevel","SeverityLevelValue","LOG","eventName","SentryEventNameSdkConstants","BUTTON_CLICKED","screenName","ScreenNameSdkConstants","TAB_COMPONENT_SCREEN","renderTabItem","contentContainer","renderBody","StyleSheet","create","flex","justifyContent","backgroundColor","flexGrow","paddingHorizontal","alignItems","paddingVertical","marginHorizontal","borderBottomWidth","borderBottomColor","_default","exports"],"sources":["TabsComponent.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { View, TouchableOpacity, StyleSheet, ScrollView } from 'react-native';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';\nimport { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';\n\nexport interface Tab {\n title: string;\n count: number;\n titleStyle?: any;\n}\n\ninterface TabsComponentProps {\n tabs: Array<Tab>;\n initialTab: Tab;\n onTabChange: (currentTab: string) => void;\n renderTabItem: (tab: Tab) => JSX.Element;\n renderBody: (currentTab: string) => JSX.Element | null;\n}\n\nconst TabsComponent = (props: TabsComponentProps) => {\n const [activeTab, setActiveTab] = useState(props.initialTab.title);\n\n const handleTabPress = (tabName: string) => {\n setActiveTab(tabName);\n props.onTabChange(tabName);\n };\n\n return (\n <View style={styles.container}>\n <View style={{ flexDirection: 'row' }}>\n <ScrollView\n horizontal\n showsHorizontalScrollIndicator={false}\n contentContainerStyle={styles.tabsContainer}\n >\n {props.tabs.map((tab: Tab) => {\n return (\n <TouchableOpacity\n key={tab.title}\n style={[\n styles.tabItem,\n activeTab === tab.title && styles.activeTab,\n tab.titleStyle ? tab.titleStyle : {},\n ]}\n onPress={() => {\n handleTabPress(tab.title)\n const cta = tab.title;\n fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.TAB_COMPONENT_SCREEN, cta: cta }); \n }\n }\n >\n {props.renderTabItem(tab)}\n </TouchableOpacity>\n );\n })}\n </ScrollView>\n </View>\n\n {/* Render content based on the active tab */}\n <View style={styles.contentContainer}>{props.renderBody(activeTab)}</View>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n tabsContainer: {\n flexDirection: 'row',\n justifyContent: 'space-around',\n backgroundColor: '#f0f0f0',\n flexGrow: 1,\n paddingHorizontal: 20,\n },\n tabItem: {\n // width: 200,\n alignItems: 'center',\n paddingVertical: 10,\n marginHorizontal: 10,\n },\n activeTab: {\n borderBottomWidth: 2,\n borderBottomColor: 'blue',\n },\n contentContainer: {\n flex: 1,\n },\n});\n\nexport default TabsComponent;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAA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AAmB,aAAA,CAAChC,YAAA,CAAAiC,IAAI;IAACC,KAAK,EAAEC,MAAM,CAAC4B;EAAiB,GAAExC,KAAK,CAACyC,UAAU,CAACxC,SAAS,CAAQ,CACrE,CAAC;AAEX,CAAC;AAED,MAAMW,MAAM,GAAG8B,uBAAU,CAACC,MAAM,CAAC;EAC/B9B,SAAS,EAAE;IACT+B,IAAI,EAAE;EACR,CAAC;EACDzB,aAAa,EAAE;IACbL,aAAa,EAAE,KAAK;IACpB+B,cAAc,EAAE,cAAc;IAC9BC,eAAe,EAAE,SAAS;IAC1BC,QAAQ,EAAE,CAAC;IACXC,iBAAiB,EAAE;EACrB,CAAC;EACDvB,OAAO,EAAE;IACP;IACAwB,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,EAAE;IACnBC,gBAAgB,EAAE;EACpB,CAAC;EACDlD,SAAS,EAAE;IACTmD,iBAAiB,EAAE,CAAC;IACpBC,iBAAiB,EAAE;EACrB,CAAC;EACDb,gBAAgB,EAAE;IAChBI,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,CAAAjE,OAAA,GAEYS,aAAa","ignoreList":[]}
|
|
@@ -8,8 +8,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _CommonStyles = require("../../styles/executionTasks/CommonStyles");
|
|
10
10
|
var _PaymentUtils = require("../executiontasks/collectPayment/PaymentUtils");
|
|
11
|
-
function
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
12
|
const DEFAULT_TIMER = 120;
|
|
14
13
|
const Timer = exports.Timer = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
15
14
|
const {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_CommonStyles","_PaymentUtils","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_CommonStyles","_PaymentUtils","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DEFAULT_TIMER","Timer","exports","forwardRef","props","ref","onTimerEnd","timer","singleValue","backDisableCounter","setBackDisableCounter","useState","useImperativeHandle","resetTimer","useEffect","clearDisableCounter","setTimeout","prev","clearTimeout","createElement","Text","style","CommonStyles","subText","color","formatTime"],"sources":["Timer.tsx"],"sourcesContent":["import React, {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useState,\n} from 'react';\nimport { Text } from 'react-native';\nimport { CommonStyles } from '../../styles/executionTasks/CommonStyles';\nimport { formatTime } from '../executiontasks/collectPayment/PaymentUtils';\n\nconst DEFAULT_TIMER = 120;\n\nexport const Timer = forwardRef(\n (\n props: {\n singleValue?: boolean;\n timer?: number;\n onTimerEnd?: () => void;\n },\n ref: any\n ) => {\n const { onTimerEnd, timer = DEFAULT_TIMER, singleValue = false } = props;\n const [backDisableCounter, setBackDisableCounter] = useState(timer);\n\n useImperativeHandle(ref, () => ({\n resetTimer: () => setBackDisableCounter(timer),\n }));\n\n useEffect(() => {\n const clearDisableCounter = setTimeout(() => {\n backDisableCounter > 0 && setBackDisableCounter((prev) => prev - 1);\n }, 1000);\n\n if (backDisableCounter === 0) {\n onTimerEnd && onTimerEnd();\n clearTimeout(clearDisableCounter);\n }\n\n return () => clearTimeout(clearDisableCounter);\n }, [backDisableCounter]);\n\n return backDisableCounter > 0 ? (\n singleValue ? (\n <Text>{backDisableCounter}</Text>\n ) : (\n <Text style={[CommonStyles.subText, { color: '#0891B2' }]}>\n {formatTime(backDisableCounter)}\n </Text>\n )\n ) : null;\n }\n);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAMA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAA2E,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA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G,CAAC,GAC3BD,WAAW,gBACTjC,MAAA,CAAAgB,OAAA,CAAA4B,aAAA,CAACzC,YAAA,CAAA0C,IAAI,QAAEX,kBAAyB,CAAC,gBAEjClC,MAAA,CAAAgB,OAAA,CAAA4B,aAAA,CAACzC,YAAA,CAAA0C,IAAI;IAACC,KAAK,EAAE,CAACC,0BAAY,CAACC,OAAO,EAAE;MAAEC,KAAK,EAAE;IAAU,CAAC;EAAE,GACvD,IAAAC,wBAAU,EAAChB,kBAAkB,CAC1B,CACP,GACC,IAAI;AACV,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.initAndUpdateDatabase = void 0;
|
|
7
|
+
var _database = _interopRequireDefault(require("../manager/syncmanager/database"));
|
|
8
|
+
var _DBConfig = require("../manager/syncmanager/DBConfig");
|
|
9
|
+
var _dbUpdate = _interopRequireDefault(require("./dbUpdate.json"));
|
|
10
|
+
var _DispatchSdkCache = _interopRequireDefault(require("../manager/sdk/DispatchSdkCache"));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
const initAndUpdateDatabase = async () => {
|
|
13
|
+
try {
|
|
14
|
+
var _rows$_array$;
|
|
15
|
+
const createStmts = [{
|
|
16
|
+
sqlSmt: `CREATE TABLE IF NOT EXISTS ${_DBConfig.VERSION_TABLE}
|
|
17
|
+
(${_DBConfig.VERSION_COLUMNS.VERSION_NO} TEXT NOT NULL);`,
|
|
18
|
+
args: []
|
|
19
|
+
}, {
|
|
20
|
+
sqlSmt: `CREATE TABLE IF NOT EXISTS ${_DBConfig.EVENT_CODES_TABLE} (
|
|
21
|
+
${_DBConfig.EventColumns.CODE} TEXT PRIMARY KEY NOT NULL,
|
|
22
|
+
${_DBConfig.EventColumns.DESCRIPTION} TEXT,
|
|
23
|
+
${_DBConfig.EventColumns.SUCCESS_EVENT} INTEGER);`,
|
|
24
|
+
args: []
|
|
25
|
+
}, {
|
|
26
|
+
sqlSmt: `CREATE TABLE IF NOT EXISTS ${_DBConfig.REASONS_TABLE} (
|
|
27
|
+
${_DBConfig.ReasonColums.CODE} TEXT PRIMARY KEY NOT NULL,
|
|
28
|
+
${_DBConfig.ReasonColums.DESCRIPTION} TEXT,
|
|
29
|
+
${_DBConfig.ReasonColums.IS_ENABLED} INTEGER,
|
|
30
|
+
${_DBConfig.ReasonColums.SYSTEM_DEFINED} INTEGER);`,
|
|
31
|
+
args: []
|
|
32
|
+
}, {
|
|
33
|
+
sqlSmt: `CREATE TABLE IF NOT EXISTS ${_DBConfig.DOCUMENT_TABLE} (
|
|
34
|
+
${_DBConfig.DOCUMENT_COLUMNS.ID} INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
35
|
+
${_DBConfig.DOCUMENT_COLUMNS.DATA} TEXT,
|
|
36
|
+
${_DBConfig.DOCUMENT_COLUMNS.BASE64} INTEGER NOT NULL DEFAULT 0,
|
|
37
|
+
${_DBConfig.DOCUMENT_COLUMNS.FILE_PATH} TEXT,
|
|
38
|
+
${_DBConfig.DOCUMENT_COLUMNS.DISPATCH_ID} TEXT NOT NULL,
|
|
39
|
+
${_DBConfig.DOCUMENT_COLUMNS.FILE_NAME} TEXT,
|
|
40
|
+
${_DBConfig.DOCUMENT_COLUMNS.FILE_TYPE} TEXT,
|
|
41
|
+
${_DBConfig.DOCUMENT_COLUMNS.SYNCED} INTEGER DEFAULT 0 NOT NULL,
|
|
42
|
+
${_DBConfig.DOCUMENT_COLUMNS.FMS_ID} TEXT,
|
|
43
|
+
${_DBConfig.DOCUMENT_COLUMNS.FMS_FOLDER_ID} TEXT,
|
|
44
|
+
${_DBConfig.DOCUMENT_COLUMNS.PRIORITY} INTEGER NOT NULL DEFAULT 1,
|
|
45
|
+
${_DBConfig.DOCUMENT_COLUMNS.SYNC_ERROR} TEXT,
|
|
46
|
+
${_DBConfig.DOCUMENT_COLUMNS.ATTEMPT_COUNT} INTEGER DEFAULT 0 NOT NULL,
|
|
47
|
+
${_DBConfig.DOCUMENT_COLUMNS.GEO_TIMESTAMP} TEXT,
|
|
48
|
+
${_DBConfig.DOCUMENT_COLUMNS.PROCESSED_FILE_PATH} TEXT,
|
|
49
|
+
${_DBConfig.DOCUMENT_COLUMNS.DESCRIPTION} TEXT);`,
|
|
50
|
+
args: []
|
|
51
|
+
}, {
|
|
52
|
+
sqlSmt: `CREATE TABLE IF NOT EXISTS ${_DBConfig.EVENTS_TABLE} (
|
|
53
|
+
${_DBConfig.EVENTS_COLUMNS.ID} INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
54
|
+
${_DBConfig.EVENTS_COLUMNS.DISPATCH_ID} TEXT NOT NULL,
|
|
55
|
+
${_DBConfig.EVENTS_COLUMNS.PAYLOAD} TEXT NOT NULL,
|
|
56
|
+
${_DBConfig.EVENTS_COLUMNS.CONFIG} TEXT,
|
|
57
|
+
${_DBConfig.EVENTS_COLUMNS.SYNC_TYPE} TEXT NOT NULL,
|
|
58
|
+
${_DBConfig.EVENTS_COLUMNS.DATA_LENGTH} INTEGER DEFAULT 0 NOT NULL,
|
|
59
|
+
${_DBConfig.EVENTS_COLUMNS.META} TEXT NOT NULL,
|
|
60
|
+
${_DBConfig.EVENTS_COLUMNS.SYNCED} INTEGER DEFAULT 0 NOT NULL,
|
|
61
|
+
${_DBConfig.EVENTS_COLUMNS.ATTEMPT_COUNT} INTEGER DEFAULT 0 NOT NULL,
|
|
62
|
+
${_DBConfig.EVENTS_COLUMNS.SYNC_ERROR} TEXT);`,
|
|
63
|
+
args: []
|
|
64
|
+
}];
|
|
65
|
+
const initResult = await _database.default.executeStatementsInTxn(createStmts);
|
|
66
|
+
console.debug("Database initialized: ", initResult);
|
|
67
|
+
const versionResult = await _database.default.executeGetDataQuery(`SELECT MAX(${_DBConfig.VERSION_COLUMNS.VERSION_NO}) AS version FROM ${_DBConfig.VERSION_TABLE}`, []);
|
|
68
|
+
console.debug('versionResult SDK', JSON.stringify(versionResult));
|
|
69
|
+
const raw = (_rows$_array$ = versionResult.rows._array[0]) === null || _rows$_array$ === void 0 ? void 0 : _rows$_array$.version;
|
|
70
|
+
const currentVersion = raw != null ? Number(raw) : 0;
|
|
71
|
+
if (currentVersion === 0) {
|
|
72
|
+
console.debug(`no version found, inserting initial version ${_dbUpdate.default.version}`);
|
|
73
|
+
await _DispatchSdkCache.default.getInstance().clearKeys([_DispatchSdkCache.default.KEYS.REASON_FETCH_TIME]);
|
|
74
|
+
await _database.default.executeSetDataQuery(`INSERT OR REPLACE INTO ${_DBConfig.VERSION_TABLE}(${_DBConfig.VERSION_COLUMNS.VERSION_NO}) VALUES (?);`, [_dbUpdate.default.version]);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (currentVersion < _dbUpdate.default.version) {
|
|
78
|
+
console.debug(`migrating DB from v${currentVersion} → v${_dbUpdate.default.version}`);
|
|
79
|
+
await _DispatchSdkCache.default.getInstance().clearKeys([_DispatchSdkCache.default.KEYS.REASON_FETCH_TIME]);
|
|
80
|
+
const migrationStmts = buildMigrationStatements(currentVersion, _dbUpdate.default.version);
|
|
81
|
+
await _database.default.executeStatementsInTxn(migrationStmts);
|
|
82
|
+
}
|
|
83
|
+
console.debug('Database is up to date (v' + _dbUpdate.default.version + ').');
|
|
84
|
+
} catch (err) {
|
|
85
|
+
console.error('initDatabase failed:', err);
|
|
86
|
+
throw new Error('Database initialization error: ' + err.message);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/** Assemble all the SQL statements needed to go from `from v` → `to v`. */
|
|
91
|
+
exports.initAndUpdateDatabase = initAndUpdateDatabase;
|
|
92
|
+
function buildMigrationStatements(from, to) {
|
|
93
|
+
const stmts = [];
|
|
94
|
+
for (let v = from + 1; v <= to; v++) {
|
|
95
|
+
const key = `v${v}`;
|
|
96
|
+
const upgrade = _dbUpdate.default.upgrades[key];
|
|
97
|
+
if (!upgrade) break;
|
|
98
|
+
upgrade.forEach(sql => {
|
|
99
|
+
stmts.push({
|
|
100
|
+
sqlSmt: sql,
|
|
101
|
+
args: []
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
// finally bump the version
|
|
106
|
+
stmts.push({
|
|
107
|
+
sqlSmt: `INSERT OR REPLACE INTO ${_DBConfig.VERSION_TABLE}(${_DBConfig.VERSION_COLUMNS.VERSION_NO}) VALUES (?);`,
|
|
108
|
+
args: [to]
|
|
109
|
+
});
|
|
110
|
+
return stmts;
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=DBManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_database","_interopRequireDefault","require","_DBConfig","_dbUpdate","_DispatchSdkCache","e","__esModule","default","initAndUpdateDatabase","_rows$_array$","createStmts","sqlSmt","VERSION_TABLE","VERSION_COLUMNS","VERSION_NO","args","EVENT_CODES_TABLE","EventColumns","CODE","DESCRIPTION","SUCCESS_EVENT","REASONS_TABLE","ReasonColums","IS_ENABLED","SYSTEM_DEFINED","DOCUMENT_TABLE","DOCUMENT_COLUMNS","ID","DATA","BASE64","FILE_PATH","DISPATCH_ID","FILE_NAME","FILE_TYPE","SYNCED","FMS_ID","FMS_FOLDER_ID","PRIORITY","SYNC_ERROR","ATTEMPT_COUNT","GEO_TIMESTAMP","PROCESSED_FILE_PATH","EVENTS_TABLE","EVENTS_COLUMNS","PAYLOAD","CONFIG","SYNC_TYPE","DATA_LENGTH","META","initResult","Database","executeStatementsInTxn","console","debug","versionResult","executeGetDataQuery","JSON","stringify","raw","rows","_array","version","currentVersion","Number","dbUpdate","DispatchSdkCache","getInstance","clearKeys","KEYS","REASON_FETCH_TIME","executeSetDataQuery","migrationStmts","buildMigrationStatements","err","error","Error","message","exports","from","to","stmts","v","key","upgrade","upgrades","forEach","sql","push"],"sources":["DBManager.ts"],"sourcesContent":["import Database from \"../manager/syncmanager/database\"\nimport {\n EVENT_CODES_TABLE, EventColumns, REASONS_TABLE, ReasonColums,\n DOCUMENT_TABLE, DOCUMENT_COLUMNS, EVENTS_TABLE, EVENTS_COLUMNS,\n VERSION_TABLE, VERSION_COLUMNS\n} from \"../manager/syncmanager/DBConfig\"\nimport dbUpdate from \"./dbUpdate.json\"\nimport DispatchSdkCache from \"../manager/sdk/DispatchSdkCache\"\n\nexport const initAndUpdateDatabase = async () => {\n try {\n const createStmts = [\n {\n sqlSmt: `CREATE TABLE IF NOT EXISTS ${VERSION_TABLE}\n (${VERSION_COLUMNS.VERSION_NO} TEXT NOT NULL);`,\n args: [],\n },\n {\n sqlSmt: `CREATE TABLE IF NOT EXISTS ${EVENT_CODES_TABLE} (\n ${EventColumns.CODE} TEXT PRIMARY KEY NOT NULL,\n ${EventColumns.DESCRIPTION} TEXT,\n ${EventColumns.SUCCESS_EVENT} INTEGER);`,\n args: [],\n },\n {\n sqlSmt: `CREATE TABLE IF NOT EXISTS ${REASONS_TABLE} (\n ${ReasonColums.CODE} TEXT PRIMARY KEY NOT NULL,\n ${ReasonColums.DESCRIPTION} TEXT,\n ${ReasonColums.IS_ENABLED} INTEGER,\n ${ReasonColums.SYSTEM_DEFINED} INTEGER);`,\n args: []\n },\n {\n sqlSmt: `CREATE TABLE IF NOT EXISTS ${DOCUMENT_TABLE} (\n ${DOCUMENT_COLUMNS.ID} INTEGER PRIMARY KEY AUTOINCREMENT,\n ${DOCUMENT_COLUMNS.DATA} TEXT,\n ${DOCUMENT_COLUMNS.BASE64} INTEGER NOT NULL DEFAULT 0,\n ${DOCUMENT_COLUMNS.FILE_PATH} TEXT,\n ${DOCUMENT_COLUMNS.DISPATCH_ID} TEXT NOT NULL,\n ${DOCUMENT_COLUMNS.FILE_NAME} TEXT,\n ${DOCUMENT_COLUMNS.FILE_TYPE} TEXT,\n ${DOCUMENT_COLUMNS.SYNCED} INTEGER DEFAULT 0 NOT NULL,\n ${DOCUMENT_COLUMNS.FMS_ID} TEXT,\n ${DOCUMENT_COLUMNS.FMS_FOLDER_ID} TEXT,\n ${DOCUMENT_COLUMNS.PRIORITY} INTEGER NOT NULL DEFAULT 1,\n ${DOCUMENT_COLUMNS.SYNC_ERROR} TEXT,\n ${DOCUMENT_COLUMNS.ATTEMPT_COUNT} INTEGER DEFAULT 0 NOT NULL,\n ${DOCUMENT_COLUMNS.GEO_TIMESTAMP} TEXT,\n ${DOCUMENT_COLUMNS.PROCESSED_FILE_PATH} TEXT,\n ${DOCUMENT_COLUMNS.DESCRIPTION} TEXT);`,\n args: []\n },\n {\n sqlSmt: `CREATE TABLE IF NOT EXISTS ${EVENTS_TABLE} (\n ${EVENTS_COLUMNS.ID} INTEGER PRIMARY KEY AUTOINCREMENT,\n ${EVENTS_COLUMNS.DISPATCH_ID} TEXT NOT NULL,\n ${EVENTS_COLUMNS.PAYLOAD} TEXT NOT NULL,\n ${EVENTS_COLUMNS.CONFIG} TEXT,\n ${EVENTS_COLUMNS.SYNC_TYPE} TEXT NOT NULL,\n ${EVENTS_COLUMNS.DATA_LENGTH} INTEGER DEFAULT 0 NOT NULL,\n ${EVENTS_COLUMNS.META} TEXT NOT NULL,\n ${EVENTS_COLUMNS.SYNCED} INTEGER DEFAULT 0 NOT NULL,\n ${EVENTS_COLUMNS.ATTEMPT_COUNT} INTEGER DEFAULT 0 NOT NULL,\n ${EVENTS_COLUMNS.SYNC_ERROR} TEXT);`,\n args: []\n }\n ]\n const initResult = await Database.executeStatementsInTxn(createStmts);\n console.debug(\"Database initialized: \", initResult);\n const versionResult = await Database.executeGetDataQuery(\n `SELECT MAX(${VERSION_COLUMNS.VERSION_NO}) AS version FROM ${VERSION_TABLE}`, []);\n console.debug('versionResult SDK', JSON.stringify(versionResult));\n const raw = (versionResult as any).rows._array[0]?.version;\n const currentVersion = raw != null ? Number(raw) : 0;\n\n if (currentVersion === 0) {\n console.debug(`no version found, inserting initial version ${dbUpdate.version}`);\n await DispatchSdkCache.getInstance().clearKeys([DispatchSdkCache.KEYS.REASON_FETCH_TIME]);\n await Database.executeSetDataQuery(\n `INSERT OR REPLACE INTO ${VERSION_TABLE}(${VERSION_COLUMNS.VERSION_NO}) VALUES (?);`,\n [dbUpdate.version]);\n return;\n }\n\n if (currentVersion < dbUpdate.version) {\n console.debug(`migrating DB from v${currentVersion} → v${dbUpdate.version}`);\n await DispatchSdkCache.getInstance().clearKeys([DispatchSdkCache.KEYS.REASON_FETCH_TIME]);\n const migrationStmts = buildMigrationStatements(currentVersion, dbUpdate.version);\n await Database.executeStatementsInTxn(migrationStmts);\n }\n\n console.debug('Database is up to date (v' + dbUpdate.version + ').');\n } catch (err: any) {\n console.error('initDatabase failed:', err);\n throw new Error('Database initialization error: ' + (err as Error).message);\n }\n}\n\n/** Assemble all the SQL statements needed to go from `from v` → `to v`. */\nfunction buildMigrationStatements(from: number, to: number) {\n const stmts: Array<{ sqlSmt: string; args: any[] }> = [];\n\n for (let v = from + 1; v <= to; v++) {\n const key = `v${v}`;\n const upgrade = (dbUpdate.upgrades as Record<string, string[]>)[key];\n if (!upgrade) break;\n\n upgrade.forEach((sql) => {\n stmts.push({ sqlSmt: sql, args: [] });\n });\n }\n // finally bump the version\n stmts.push({\n sqlSmt: `INSERT OR REPLACE INTO ${VERSION_TABLE}(${VERSION_COLUMNS.VERSION_NO}) VALUES (?);`,\n args: [to],\n });\n return stmts;\n}"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAKA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,iBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAA8D,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEvD,MAAMG,qBAAqB,GAAG,MAAAA,CAAA,KAAY;EAC7C,IAAI;IAAA,IAAAC,aAAA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O,CAAEC,GAAG,IAAK;MACrBN,KAAK,CAACO,IAAI,CAAC;QAAE5E,MAAM,EAAE2E,GAAG;QAAEvE,IAAI,EAAE;MAAG,CAAC,CAAC;IACzC,CAAC,CAAC;EACN;EACA;EACAiE,KAAK,CAACO,IAAI,CAAC;IACP5E,MAAM,EAAE,0BAA0BC,uBAAa,IAAIC,yBAAe,CAACC,UAAU,eAAe;IAC5FC,IAAI,EAAE,CAACgE,EAAE;EACb,CAAC,CAAC;EACF,OAAOC,KAAK;AAChB","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -257,7 +257,6 @@ var _SentrySdkConstants = require("./analytics/sentry/SentrySdkConstants");
|
|
|
257
257
|
var _SentryModels = require("./analytics/sentry/SentryModels");
|
|
258
258
|
var _DocumentManager = _interopRequireDefault(require("./manager/syncmanager/document/DocumentManager"));
|
|
259
259
|
var _ValidateOTPSchema = require("./components/executiontasks/validateOTP/ValidateOTPSchema");
|
|
260
|
-
function
|
|
261
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
260
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
262
261
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
263
262
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_storage","_interopRequireDefault","require","ExecutionTask","_interopRequireWildcard","exports","_NativeSyncManager","_DBConfig","_CancelOrderDialog","_FcmUtils","_FCM","_DispatchExecNavigator","_DispatchStateContainer","_DispatchSDKManager","_Logger","_SdkUtils","_AppSyncManager","_DispatchModels","_events","_constants","_platformCoreosExecutionEngineSdk","_helper","_SentryAnalyticsSingleton","_SentryAnalyticsUtils","_SentrySdkConstants","_SentryModels","_DocumentManager","_ValidateOTPSchema","
|
|
1
|
+
{"version":3,"names":["_storage","_interopRequireDefault","require","ExecutionTask","_interopRequireWildcard","exports","_NativeSyncManager","_DBConfig","_CancelOrderDialog","_FcmUtils","_FCM","_DispatchExecNavigator","_DispatchStateContainer","_DispatchSDKManager","_Logger","_SdkUtils","_AppSyncManager","_DispatchModels","_events","_constants","_platformCoreosExecutionEngineSdk","_helper","_SentryAnalyticsSingleton","_SentryAnalyticsUtils","_SentrySdkConstants","_SentryModels","_DocumentManager","_ValidateOTPSchema","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor"],"sources":["index.tsx"],"sourcesContent":["import Storage from './utils/storage';\nimport type * as ETaskSchema from './components/executiontasks/ExecutionTasksIndex';\nimport * as ExecutionTask from './components/executiontasks/ExecutionTasksIndex';\nimport NativeSyncManager from './manager/syncmanager/NativeSyncManager';\nimport type { DocumentRow, EventRow } from './manager/syncmanager/DBConfig';\nimport { SyncMethod, DispatchSyncType } from './manager/syncmanager/DBConfig';\nimport CancelOrderDialog from './components/widgets/CancelOrderDialog';\nimport useFCMMessage, {\n getFCMToken,\n registerBackgroundHandler,\n requestFirebasePermissions,\n onNotificationOpenedApp,\n onTokenRefresh,\n getInitialNotification,\n} from './utils/fcm/FcmUtils';\nimport FCM from './utils/fcm/FCM';\nimport DispatchExecNavigator from './components/dispatch/DispatchExecNavigator';\nimport DispatchStateContainer from './manager/dispatch/DispatchStateContainer';\nimport { DispatchSDKManager } from './manager/sdk/DispatchSDKManager';\nimport Logger, { LOG_TYPE } from './utils/Logger';\nimport type {\n ETSummary,\n CompleteSummary,\n ObjectiveSummary,\n} from './models/execTasks/ETBaseModels';\nimport SdkUtils from './utils/SdkUtils';\nimport AppSyncManager from './manager/syncmanager/AppSyncManager';\nimport type {\n JobObjectiveType,\n endEvent,\n startEvent,\n onScanRemoveEvent,\n onScanEvent,\n} from './models/DispatchModels';\nimport { SdkSyncType } from './models/DispatchModels';\nimport EventListener from './events';\nimport { BaseEvents } from './events/constants';\nimport {\n DispatchExecutor,\n IDispatch,\n IDispatchExecutor,\n} from '@os1-platform/platform-coreos-execution-engine-sdk';\nimport Helper from './utils/helper';\nimport SentryAnalyticsSingleton from './analytics/sentry/SentryAnalyticsSingleton';\nimport { fireEventWithScreenName } from './analytics/sentry/SentryAnalyticsUtils';\nimport { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from './analytics/sentry/SentrySdkConstants';\nimport { DispatchAndUserData, SentryEvent } from './analytics/sentry/SentryModels';\nimport DocumentManager from './manager/syncmanager/document/DocumentManager';\nimport {PhoneType, EmailType, EmailAndPhoneResponse } from './components/executiontasks/validateOTP/ValidateOTPSchema';\nexport { DispatchExecutor, IDispatch, IDispatchExecutor };\nexport { Storage, DispatchExecNavigator };\nexport { ETSummary, CompleteSummary, ObjectiveSummary, DispatchSyncType };\nexport { BaseEvents, endEvent, startEvent, onScanRemoveEvent, onScanEvent };\nexport {\n NativeSyncManager,\n AppSyncManager,\n SdkSyncType,\n EventRow,\n DocumentRow,\n useFCMMessage,\n getFCMToken,\n requestFirebasePermissions,\n FCM,\n registerBackgroundHandler,\n onNotificationOpenedApp,\n onTokenRefresh,\n getInitialNotification,\n DispatchStateContainer,\n SdkUtils,\n Logger,\n LOG_TYPE,\n EventListener,\n};\n//\nexport { SyncMethod, JobObjectiveType };\nexport type { ETaskSchema };\nexport { ExecutionTask, CancelOrderDialog };\nexport { DispatchSDKManager };\n//\nexport { Helper };\n//sentry function export\nexport { SentryAnalyticsSingleton, fireEventWithScreenName, SeverityLevelValue, ScreenNameSdkConstants, SentryEventNameSdkConstants, DispatchAndUserData, SentryEvent };\nexport { DocumentManager };\nexport { PhoneType, EmailType, EmailAndPhoneResponse };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAC,uBAAA,CAAAF,OAAA;AAAiFG,OAAA,CAAAF,aAAA,GAAAA,aAAA;AACjF,IAAAG,kBAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,SAAA,GAAAL,uBAAA,CAAAF,OAAA;AAQA,IAAAQ,IAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,sBAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,uBAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,mBAAA,GAAAX,OAAA;AACA,IAAAY,OAAA,GAAAV,uBAAA,CAAAF,OAAA;AAMA,IAAAa,SAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,e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,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAAA,SAAA5B,uBAAA2B,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAK,UAAA,GAAAL,CAAA,KAAAU,OAAA,EAAAV,CAAA","ignoreList":[]}
|
|
@@ -26,8 +26,7 @@ var _storage = _interopRequireDefault(require("../../utils/storage"));
|
|
|
26
26
|
var _utils = require("../../components/executiontasks/scan/utils");
|
|
27
27
|
var _native = require("@react-navigation/native");
|
|
28
28
|
var _DispatchStateContainer;
|
|
29
|
-
function
|
|
30
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
29
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
31
30
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
32
31
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
33
32
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|