@os1-platform/dispatch-mobile 1.0.8 → 1.3.11
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 +116 -48
- package/android/.gradle/6.8/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.8/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/gradle.xml +13 -0
- package/android/.idea/misc.xml +4 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/.idea/workspace.xml +131 -0
- package/android/gradle.properties +1 -1
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +0 -1
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +46 -39
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +14 -24
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +142 -23
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +64 -16
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +6 -16
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +68 -26
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +4 -13
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -2
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +61 -28
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +5 -19
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +62 -18
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +112 -28
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -26
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +49 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -16
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -10
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +4 -13
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +0 -12
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +7 -35
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +74 -49
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js +0 -4
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js +0 -2
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +64 -17
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +63 -24
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +71 -22
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +5 -15
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +60 -19
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +843 -0
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/constants.js +19 -0
- package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/interfaces.js +29 -0
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +103 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +74 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +115 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js +134 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js +373 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js +3 -21
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +4 -9
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +7 -36
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -5
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -9
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -14
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +1 -40
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -17
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -28
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +334 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js +14 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js +37 -0
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +59 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js +147 -0
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -13
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -17
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +3 -18
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/widgets/AlertDisplay.js +0 -5
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +0 -12
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/IconButton.js +34 -0
- package/lib/commonjs/components/widgets/IconButton.js.map +1 -0
- package/lib/commonjs/components/widgets/ProgressDialog.js +0 -7
- package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/SnackBarCustom.js +38 -38
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +93 -0
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -0
- package/lib/commonjs/components/widgets/Toaster.js +0 -2
- package/lib/commonjs/components/widgets/Toaster.js.map +1 -1
- package/lib/commonjs/config/DispatchSDKConfig.js +4 -5
- package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -1
- package/lib/commonjs/constants/apiConstants.js +15 -0
- package/lib/commonjs/constants/apiConstants.js.map +1 -0
- package/lib/commonjs/constants/constants.js +7 -3
- package/lib/commonjs/constants/constants.js.map +1 -1
- package/lib/commonjs/constants/statuscode.js +3 -5
- package/lib/commonjs/constants/statuscode.js.map +1 -1
- package/lib/commonjs/errors/BaseError.js +3 -8
- package/lib/commonjs/errors/BaseError.js.map +1 -1
- package/lib/commonjs/errors/ErrorCodes.js +7 -6
- package/lib/commonjs/errors/ErrorCodes.js.map +1 -1
- package/lib/commonjs/events/EventDispatcher.js +27 -0
- package/lib/commonjs/events/EventDispatcher.js.map +1 -0
- package/lib/commonjs/events/EventListener.js +20 -0
- package/lib/commonjs/events/EventListener.js.map +1 -0
- package/lib/commonjs/events/constants.js +13 -0
- package/lib/commonjs/events/constants.js.map +1 -0
- package/lib/commonjs/events/index.js +11 -0
- package/lib/commonjs/events/index.js.map +1 -0
- package/lib/commonjs/events/interface.js +2 -0
- package/lib/commonjs/events/interface.js.map +1 -0
- package/lib/commonjs/index.js +9 -23
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +527 -177
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +55 -4
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +70 -0
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +3 -29
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +6 -20
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +27 -0
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -0
- package/lib/commonjs/manager/location/LocationManager.js +3 -20
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +8 -36
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +6 -17
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +12 -46
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +13 -7
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js +0 -2
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/database.js +28 -12
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +0 -19
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +3 -20
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +3 -52
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +59 -25
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +77 -90
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +27 -19
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/DispatchModels.js +4 -5
- package/lib/commonjs/models/DispatchModels.js.map +1 -1
- package/lib/commonjs/models/ReasonCodes.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETConfig.js +28 -35
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
- package/lib/commonjs/models/sdk.js +4 -5
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js +3 -24
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/GraphQLClient.js +7 -35
- package/lib/commonjs/network/GraphQLClient.js.map +1 -1
- package/lib/commonjs/network/NetworkClient.js +2 -13
- package/lib/commonjs/network/NetworkClient.js.map +1 -1
- package/lib/commonjs/network/NetworkUtils.js +10 -8
- package/lib/commonjs/network/NetworkUtils.js.map +1 -1
- package/lib/commonjs/network/Queries.js +0 -2
- package/lib/commonjs/network/Queries.js.map +1 -1
- package/lib/commonjs/network/client.js +6 -21
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/res/strings.js.map +1 -1
- package/lib/commonjs/resources/Login.js +4 -15
- package/lib/commonjs/resources/Login.js.map +1 -1
- package/lib/commonjs/resources/network.js +3 -8
- package/lib/commonjs/resources/network.js.map +1 -1
- package/lib/commonjs/styles/SdkColors.js +7 -7
- package/lib/commonjs/styles/SdkColors.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +42 -18
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +36 -27
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +6 -15
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +0 -19
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +6 -15
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +7 -12
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +6 -16
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +6 -18
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js +14 -16
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +36 -15
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +7 -13
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +5 -10
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +27 -14
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +11 -23
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +9 -13
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/RTScanScreen.js +8 -27
- package/lib/commonjs/ui/screens/RTScanScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +268 -0
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +21 -30
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +49 -0
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +0 -10
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js +9 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js +115 -0
- package/lib/commonjs/utils/ApiUtils.js.map +1 -0
- package/lib/commonjs/utils/ExecTaskUtils.js +93 -31
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +10 -29
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js +3 -19
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js +2 -31
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +25 -40
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +35 -16
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +50 -25
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/commonjs/utils/helper.js +0 -5
- package/lib/commonjs/utils/helper.js.map +1 -1
- package/lib/commonjs/utils/hooks/useTimer.js +44 -0
- package/lib/commonjs/utils/hooks/useTimer.js.map +1 -0
- package/lib/commonjs/utils/loginHelper.js +6 -18
- package/lib/commonjs/utils/loginHelper.js.map +1 -1
- package/lib/commonjs/utils/storage.js +53 -32
- package/lib/commonjs/utils/storage.js.map +1 -1
- package/lib/commonjs/utils/utils.js +8 -11
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/components/dispatch/DispatchExecNavigator.js +46 -28
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +3 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js +145 -19
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +66 -9
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/DeliverET.js +6 -7
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +69 -16
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +4 -3
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +64 -14
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +5 -6
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +62 -8
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +114 -14
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -15
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js +39 -0
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -5
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -3
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +4 -2
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +0 -3
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +7 -10
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +75 -35
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +64 -6
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +63 -11
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +71 -10
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +5 -6
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +61 -10
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +833 -0
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -0
- package/lib/module/components/executiontasks/scan/ScanSchema.js +2 -0
- package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -0
- package/lib/module/components/executiontasks/scan/constants.js +7 -0
- package/lib/module/components/executiontasks/scan/constants.js.map +1 -0
- package/lib/module/components/executiontasks/scan/interfaces.js +21 -0
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +94 -0
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +66 -0
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +105 -0
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/ScanList.js +124 -0
- package/lib/module/components/executiontasks/scan/sub_components/ScanList.js.map +1 -0
- package/lib/module/components/executiontasks/scan/utils.js +358 -0
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/CScanner.js +3 -8
- package/lib/module/components/executiontasks/scanner/CScanner.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js +3 -3
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js +6 -18
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -2
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -5
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -3
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js +1 -19
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -7
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -15
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +325 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js +8 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/constants.js +25 -0
- package/lib/module/components/executiontasks/validateOTP/constants.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +49 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/utils.js +133 -0
- package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -0
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -6
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -3
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +4 -8
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js +0 -2
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/IconButton.js +26 -0
- package/lib/module/components/widgets/IconButton.js.map +1 -0
- package/lib/module/components/widgets/ProgressDialog.js +0 -2
- package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/module/components/widgets/SnackBarCustom.js +36 -18
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +84 -0
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -0
- package/lib/module/components/widgets/Toaster.js.map +1 -1
- package/lib/module/config/DispatchSDKConfig.js +3 -4
- package/lib/module/config/DispatchSDKConfig.js.map +1 -1
- package/lib/module/constants/apiConstants.js +7 -0
- package/lib/module/constants/apiConstants.js.map +1 -0
- package/lib/module/constants/constants.js +4 -2
- package/lib/module/constants/constants.js.map +1 -1
- package/lib/module/constants/statuscode.js +3 -5
- package/lib/module/constants/statuscode.js.map +1 -1
- package/lib/module/errors/BaseError.js +3 -6
- package/lib/module/errors/BaseError.js.map +1 -1
- package/lib/module/errors/ErrorCodes.js +5 -5
- package/lib/module/errors/ErrorCodes.js.map +1 -1
- package/lib/module/events/EventDispatcher.js +19 -0
- package/lib/module/events/EventDispatcher.js.map +1 -0
- package/lib/module/events/EventListener.js +13 -0
- package/lib/module/events/EventListener.js.map +1 -0
- package/lib/module/events/constants.js +6 -0
- package/lib/module/events/constants.js.map +1 -0
- package/lib/module/events/index.js +3 -0
- package/lib/module/events/index.js.map +1 -0
- package/lib/module/events/interface.js +2 -0
- package/lib/module/events/interface.js.map +1 -0
- package/lib/module/index.js +4 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/manager/dispatch/DispatchStateContainer.js +529 -151
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js +52 -2
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js +61 -0
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +3 -16
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +6 -14
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/jobRemoval/JobRemovalManager.js +20 -0
- package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -0
- package/lib/module/manager/location/LocationManager.js +3 -14
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +8 -14
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +6 -13
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/manager/syncmanager/AppSyncManager.js +12 -26
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +9 -5
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/database.js +27 -3
- package/lib/module/manager/syncmanager/database.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +0 -7
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +3 -14
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +3 -35
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +59 -18
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +77 -68
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +26 -11
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/module/models/DispatchModels.js +3 -4
- package/lib/module/models/DispatchModels.js.map +1 -1
- package/lib/module/models/ReasonCodes.js.map +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/module/models/execTasks/ETConfig.js +22 -29
- package/lib/module/models/execTasks/ETConfig.js.map +1 -1
- package/lib/module/models/sdk.js +3 -4
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js +3 -18
- package/lib/module/native/signature/SignatureCapture.js.map +1 -1
- package/lib/module/network/GraphQLClient.js +6 -26
- package/lib/module/network/GraphQLClient.js.map +1 -1
- package/lib/module/network/NetworkClient.js +2 -6
- package/lib/module/network/NetworkClient.js.map +1 -1
- package/lib/module/network/NetworkUtils.js +10 -3
- package/lib/module/network/NetworkUtils.js.map +1 -1
- package/lib/module/network/Queries.js.map +1 -1
- package/lib/module/network/client.js +7 -17
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/res/strings.js.map +1 -1
- package/lib/module/resources/Login.js +4 -13
- package/lib/module/resources/Login.js.map +1 -1
- package/lib/module/resources/network.js +3 -6
- package/lib/module/resources/network.js.map +1 -1
- package/lib/module/styles/SdkColors.js +6 -6
- package/lib/module/styles/SdkColors.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +41 -7
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CancellationScreen.js +36 -14
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js +7 -4
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +0 -3
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +7 -4
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DisplayScreen.js +5 -4
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +7 -4
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +7 -7
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/ETScreensIndex.js +3 -1
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +34 -6
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +5 -4
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/HttpRequestScreen.js +5 -3
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +25 -5
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +12 -10
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +7 -5
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/RTScanScreen.js +9 -13
- package/lib/module/ui/screens/RTScanScreen.js.map +1 -1
- package/lib/module/ui/screens/ScanScreen.js +259 -0
- package/lib/module/ui/screens/ScanScreen.js.map +1 -0
- package/lib/module/ui/screens/StartWorkFlowScreen.js +22 -9
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +39 -0
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -0
- package/lib/module/ui/screens/WithBaseDispatchScreen.js +0 -3
- package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/module/ui/uiConfig/RouteParams.js +9 -1
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/module/utils/ApiUtils.js +101 -0
- package/lib/module/utils/ApiUtils.js.map +1 -0
- package/lib/module/utils/ExecTaskUtils.js +92 -21
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js +9 -21
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js +3 -15
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/utils/SdkUtils.js +2 -15
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +25 -10
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/fcm/FCM.js +35 -4
- package/lib/module/utils/fcm/FCM.js.map +1 -1
- package/lib/module/utils/fcm/FcmUtils.js +50 -7
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/module/utils/helper.js +0 -3
- package/lib/module/utils/helper.js.map +1 -1
- package/lib/module/utils/hooks/useTimer.js +37 -0
- package/lib/module/utils/hooks/useTimer.js.map +1 -0
- package/lib/module/utils/loginHelper.js +6 -16
- package/lib/module/utils/loginHelper.js.map +1 -1
- package/lib/module/utils/storage.js +51 -29
- package/lib/module/utils/storage.js.map +1 -1
- package/lib/module/utils/utils.js +8 -6
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/components/executiontasks/CompletedWFSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +6 -2
- package/lib/typescript/components/executiontasks/cancellation/CancellationSchema.d.ts +10 -5
- package/lib/typescript/components/executiontasks/captureInput/CaptureInputSchema.d.ts +7 -7
- package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +7 -7
- package/lib/typescript/components/executiontasks/display/DisplaySchema.d.ts +5 -5
- package/lib/typescript/components/executiontasks/doodle/SignatureSchema.d.ts +7 -7
- package/lib/typescript/components/executiontasks/dropCash/DropCashSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/FormSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +1 -1
- package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +9 -0
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestETSchema.d.ts +6 -6
- package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +16 -11
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentSchema.d.ts +3 -3
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/pickup/PickpSchema.d.ts +3 -3
- package/lib/typescript/components/executiontasks/scan/ScanET.d.ts +16 -0
- package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +70 -0
- package/lib/typescript/components/executiontasks/scan/constants.d.ts +6 -0
- package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +41 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/CScanner.d.ts +7 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +7 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +17 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/ScanList.d.ts +8 -0
- package/lib/typescript/components/executiontasks/scan/utils.d.ts +21 -0
- package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +6 -6
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +1 -2
- package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +1 -1
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPSchema.d.ts +54 -0
- package/lib/typescript/components/executiontasks/validateOTP/constants.d.ts +10 -0
- package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +12 -0
- package/lib/typescript/components/executiontasks/validateOTP/utils.d.ts +7 -0
- package/lib/typescript/components/executiontasks/verifyInput/VerifyInputSchema.d.ts +8 -8
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocSchema.d.ts +9 -9
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +3 -3
- package/lib/typescript/components/widgets/IconButton.d.ts +9 -0
- package/lib/typescript/components/widgets/SnackBarCustom.d.ts +9 -5
- package/lib/typescript/components/widgets/SplitTextInput.d.ts +12 -0
- package/lib/typescript/constants/apiConstants.d.ts +6 -0
- package/lib/typescript/constants/constants.d.ts +4 -2
- package/lib/typescript/errors/ErrorCodes.d.ts +3 -1
- package/lib/typescript/events/EventDispatcher.d.ts +5 -0
- package/lib/typescript/events/EventListener.d.ts +5 -0
- package/lib/typescript/events/constants.d.ts +5 -0
- package/lib/typescript/events/index.d.ts +2 -0
- package/lib/typescript/events/interface.d.ts +1 -0
- package/lib/typescript/index.d.ts +5 -4
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +21 -8
- package/lib/typescript/manager/dispatchCodes/EventCodeContainer.d.ts +12 -1
- package/lib/typescript/manager/dispatchCodes/EventCodeRepo.d.ts +13 -0
- package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +6 -0
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +2 -0
- package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +1 -0
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +22 -2
- package/lib/typescript/manager/syncmanager/database.d.ts +5 -0
- package/lib/typescript/manager/syncmanager/document/models.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +5 -1
- package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +5 -1
- package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +3 -1
- package/lib/typescript/models/DispatchModels.d.ts +56 -1
- package/lib/typescript/models/ReasonCodes.d.ts +5 -0
- package/lib/typescript/models/auth.d.ts +1 -1
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +27 -8
- package/lib/typescript/models/execTasks/ETConfig.d.ts +8 -4
- package/lib/typescript/models/sdk.d.ts +5 -0
- package/lib/typescript/native/signature/SignatureCapture.d.ts +1 -1
- package/lib/typescript/network/NetworkUtils.d.ts +1 -5
- package/lib/typescript/styles/SdkColors.d.ts +1 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +36 -0
- package/lib/typescript/ui/screens/ETScreensIndex.d.ts +3 -1
- package/lib/typescript/ui/screens/ScanScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +3 -0
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +8 -0
- package/lib/typescript/utils/ApiUtils.d.ts +61 -0
- package/lib/typescript/utils/ExecTaskUtils.d.ts +7 -2
- package/lib/typescript/utils/NetworkUtil.d.ts +1 -1
- package/lib/typescript/utils/SyncManagerUtils.d.ts +3 -1
- package/lib/typescript/utils/hooks/useTimer.d.ts +5 -0
- package/lib/typescript/utils/storage.d.ts +17 -0
- package/package.json +23 -24
- package/tsconfig.json +9 -8
- package/file_unzip.js +0 -5
- package/mobile-execution-lib-0.6.4.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["cache","DispatchSdkCache","getInstance","cacheKeys","KEYS","NetworkClient","HttpClient","constructor","baseURL","requestGet","requestPost","endpoint","requestBody","headers","sdkConfig","getObjectFromCache","SDK_CONFIG","instance","post","requestId","accessToken","tenantID","requestPut","put","JSON","stringify","id","userID"],"sources":["NetworkClient.ts"],"sourcesContent":["import HttpClient from './client';\nimport DispatchSdkCache from '../manager/sdk/DispatchSdkCache';\nimport type { DispatchSDKConfig } from '../models/sdk';\nimport type { Headers } from '../models/auth';\n\nconst cache = DispatchSdkCache.getInstance();\nconst cacheKeys = DispatchSdkCache.KEYS;\n\nexport default class NetworkClient extends HttpClient {\n constructor(baseURL: string) {\n super(baseURL);\n }\n\n public async requestGet() {}\n\n public async requestPost(\n endpoint: string,\n requestBody: any,\n headers: Headers\n ) {\n const sdkConfig = (await cache.getObjectFromCache(\n cacheKeys.SDK_CONFIG\n )) as DispatchSDKConfig;\n\n return this.instance.post(endpoint, requestBody, {\n headers: {\n 'accept': 'application/json',\n 'X-COREOS-REQUEST-ID': headers.requestId
|
|
1
|
+
{"version":3,"names":["_client","_interopRequireDefault","require","_DispatchSdkCache","obj","__esModule","default","cache","DispatchSdkCache","getInstance","cacheKeys","KEYS","NetworkClient","HttpClient","constructor","baseURL","requestGet","requestPost","endpoint","requestBody","headers","sdkConfig","getObjectFromCache","SDK_CONFIG","instance","post","requestId","accessToken","tenantID","requestPut","put","JSON","stringify","id","userID","exports"],"sources":["NetworkClient.ts"],"sourcesContent":["import HttpClient from './client';\nimport DispatchSdkCache from '../manager/sdk/DispatchSdkCache';\nimport type { DispatchSDKConfig } from '../models/sdk';\nimport type { Headers } from '../models/auth';\n\nconst cache = DispatchSdkCache.getInstance();\nconst cacheKeys = DispatchSdkCache.KEYS;\n\nexport default class NetworkClient extends HttpClient {\n constructor(baseURL: string) {\n super(baseURL);\n }\n\n public async requestGet() {}\n\n public async requestPost(\n endpoint: string,\n requestBody: any,\n headers: Headers\n ) {\n const sdkConfig = (await cache.getObjectFromCache(\n cacheKeys.SDK_CONFIG\n )) as DispatchSDKConfig;\n\n return this.instance.post(endpoint, requestBody, {\n headers: {\n 'accept': 'application/json',\n 'X-COREOS-REQUEST-ID':\n 'DispatchSdk:' + ((headers && headers.requestId) || ''),\n 'X-COREOS-ACCESS': sdkConfig.accessToken ?? '',\n 'X-COREOS-TID': sdkConfig.tenantID ?? '',\n 'Content-Type': 'application/json',\n },\n });\n }\n\n public async requestPut(\n endpoint: string,\n requestBody: any,\n headers: Headers\n ) {\n const sdkConfig = (await cache.getObjectFromCache(\n cacheKeys.SDK_CONFIG\n )) as DispatchSDKConfig;\n\n return this.instance.put(endpoint, requestBody, {\n headers: {\n 'accept': 'application/json',\n 'X-COREOS-REQUEST-ID':\n 'DispatchSdk:' + ((headers && headers.requestId) || ''),\n 'X-COREOS-ACCESS': sdkConfig.accessToken ?? '',\n 'X-COREOS-TID': sdkConfig.tenantID ?? '',\n 'X-COREOS-USERINFO': JSON.stringify({ id: sdkConfig.userID ?? '' }),\n 'Content-Type': 'application/json',\n },\n });\n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,EAAE;QACP,QAAQ,EAAE,kBAAkB;QAC5B,qBAAqB,EACnB,cAAc,IAAKA,OAAO,IAAIA,OAAO,CAACM,SAAS,IAAK,EAAE,CAAC;QACzD,iBAAiB,EAAEL,SAAS,CAACM,WAAW,IAAI,EAAE;QAC9C,cAAc,EAAEN,SAAS,CAACO,QAAQ,IAAI,EAAE;QACxC,mBAAmB,EAAEG,IAAI,CAACC,SAAS,CAAC;UAAEC,EAAE,EAAEZ,SAAS,CAACa,MAAM,IAAI;QAAG,CAAC,CAAC;QACnE,cAAc,EAAE;MAClB;IACF,CAAC,CAAC;EACJ;AACF;AAACC,OAAA,CAAA7B,OAAA,GAAAM,aAAA"}
|
|
@@ -5,25 +5,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getAddHeaders = getAddHeaders;
|
|
7
7
|
exports.getHeaders = getHeaders;
|
|
8
|
-
|
|
9
8
|
var _DispatchSdkCache = _interopRequireDefault(require("../manager/sdk/DispatchSdkCache"));
|
|
10
|
-
|
|
11
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
|
|
13
10
|
async function getHeaders(contentType) {
|
|
14
11
|
const cache = _DispatchSdkCache.default.getInstance();
|
|
15
|
-
|
|
16
12
|
const sdkConfig = await cache.getObjectFromCache(_DispatchSdkCache.default.KEYS.SDK_CONFIG);
|
|
13
|
+
const newHeadersObj = sdkConfig !== null && sdkConfig !== void 0 && sdkConfig.headers ? Object.fromEntries(Object.entries(sdkConfig.headers || {}).map(_ref => {
|
|
14
|
+
let [k, v] = _ref;
|
|
15
|
+
return [k.toLowerCase(), v];
|
|
16
|
+
})) : {};
|
|
17
17
|
const dspID = await cache.getKeyFromCache(_DispatchSdkCache.default.KEYS.DISPATCH_ID);
|
|
18
|
-
return {
|
|
18
|
+
return Object.keys(newHeadersObj).length ? newHeadersObj : {
|
|
19
19
|
'x-user-id': sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.userID,
|
|
20
20
|
'x-coreos-tid': sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.tenantID,
|
|
21
21
|
'x-coreos-access': sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.accessToken,
|
|
22
|
-
'
|
|
23
|
-
'x-coreos-request-id': dspID ?? (sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.userID)
|
|
22
|
+
'content-type': contentType,
|
|
23
|
+
'x-coreos-request-id': dspID ?? (sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.userID),
|
|
24
|
+
'x-coreos-userinfo': JSON.stringify({
|
|
25
|
+
id: sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.userID
|
|
26
|
+
})
|
|
24
27
|
};
|
|
25
28
|
}
|
|
26
|
-
|
|
27
29
|
function getAddHeaders(headers) {
|
|
28
30
|
if (!headers || headers.length === 0) return {};else {
|
|
29
31
|
const addHeaders = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getHeaders","contentType","cache","DispatchSdkCache","getInstance","sdkConfig","getObjectFromCache","KEYS","SDK_CONFIG","dspID","getKeyFromCache","DISPATCH_ID","userID","tenantID","accessToken","
|
|
1
|
+
{"version":3,"names":["_DispatchSdkCache","_interopRequireDefault","require","obj","__esModule","default","getHeaders","contentType","cache","DispatchSdkCache","getInstance","sdkConfig","getObjectFromCache","KEYS","SDK_CONFIG","newHeadersObj","headers","Object","fromEntries","entries","map","_ref","k","v","toLowerCase","dspID","getKeyFromCache","DISPATCH_ID","keys","length","userID","tenantID","accessToken","JSON","stringify","id","getAddHeaders","addHeaders","forEach","h","key","value"],"sources":["NetworkUtils.ts"],"sourcesContent":["import DispatchSdkCache from '../manager/sdk/DispatchSdkCache';\nimport type { Headers } from '../components/executiontasks/httpRequest/HttpRequestETSchema';\nimport type { DispatchSDKConfig } from '../models/sdk';\n\nexport async function getHeaders(contentType: string) {\n const cache = DispatchSdkCache.getInstance();\n const sdkConfig: DispatchSDKConfig = await cache.getObjectFromCache(\n DispatchSdkCache.KEYS.SDK_CONFIG\n );\n const newHeadersObj = sdkConfig?.headers\n ? Object.fromEntries(\n Object.entries(sdkConfig.headers || {}).map(([k, v]) => [\n k.toLowerCase(),\n v,\n ])\n )\n : {};\n\n const dspID = await cache.getKeyFromCache(DispatchSdkCache.KEYS.DISPATCH_ID);\n return Object.keys(newHeadersObj).length\n ? newHeadersObj\n : {\n 'x-user-id': sdkConfig?.userID,\n 'x-coreos-tid': sdkConfig?.tenantID,\n 'x-coreos-access': sdkConfig?.accessToken,\n 'content-type': contentType,\n 'x-coreos-request-id': dspID ?? sdkConfig?.userID,\n 'x-coreos-userinfo': JSON.stringify({ id: sdkConfig?.userID }),\n };\n}\n\nexport function getAddHeaders(headers?: Headers[]) {\n if (!headers || headers.length === 0) return {};\n else {\n const addHeaders: { [k: string]: string } = {};\n headers.forEach((h) => {\n if (h.key && h.value) addHeaders[h.key] = h.value;\n });\n return addHeaders;\n }\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA+D,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAIxD,eAAeG,UAAUA,CAACC,WAAmB,EAAE;EACpD,MAAMC,KAAK,GAAGC,yBAAgB,CAACC,WAAW,EAAE;EAC5C,MAAMC,SAA4B,GAAG,MAAMH,KAAK,CAACI,kBAAkB,CACjEH,yBAAgB,CAACI,IAAI,CAACC,UAAU,CACjC;EACD,MAAMC,aAAa,GAAGJ,SAAS,aAATA,SAAS,eAATA,SAAS,CAAEK,OAAO,GACpCC,MAAM,CAACC,WAAW,CAChBD,MAAM,CAACE,OAAO,CAACR,SAAS,CAACK,OAAO,IAAI,CAAC,CAAC,CAAC,CAACI,GAAG,CAACC,IAAA;IAAA,IAAC,CAACC,CAAC,EAAEC,CAAC,CAAC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ORKFLOW_UPDATE = exports.FETCH_REASONS = exports.CUSTODY_OUT = exports.CUSTODY_IN = exports.CREATE_FMS_FOLDER = void 0;
|
|
7
|
-
|
|
8
7
|
var _client = require("@apollo/client");
|
|
9
|
-
|
|
10
8
|
const FETCH_REASONS = (0, _client.gql)`
|
|
11
9
|
query ($limit: String, $offset: String) {
|
|
12
10
|
reasonList(limit: $limit, offset: $offset) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FETCH_REASONS","gql","CREATE_FMS_FOLDER","CUSTODY_IN","CUSTODY_OUT","WORKFLOW_UPDATE"],"sources":["Queries.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nexport const FETCH_REASONS = gql`\n query ($limit: String, $offset: String) {\n reasonList(limit: $limit, offset: $offset) {\n data {\n description\n isEnabled\n reasonCode\n isSystemDefined\n }\n }\n }\n`;\n\nexport const CREATE_FMS_FOLDER = gql`\n mutation CreateDispatch($input: Folder!) {\n createFolder(input: $input) {\n id\n }\n }\n`;\n\nexport const CUSTODY_IN = gql`\n mutation CustodyInBatch($input: CustodyBatchInput!) {\n custodyInBatch(input: $input) {\n success\n }\n }\n`;\n\nexport const CUSTODY_OUT = gql`\n mutation CustodyOutBatch($input: CustodyBatchInput!) {\n custodyOutBatch(input: $input) {\n success\n }\n }\n`;\n\nexport const WORKFLOW_UPDATE = gql`\n mutation ($input: WorkflowUpdateStatusInput!) {\n updateWorkflowStatus(input: $input) {\n id\n }\n }\n`;\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_client","require","FETCH_REASONS","gql","exports","CREATE_FMS_FOLDER","CUSTODY_IN","CUSTODY_OUT","WORKFLOW_UPDATE"],"sources":["Queries.ts"],"sourcesContent":["import { gql } from '@apollo/client';\n\nexport const FETCH_REASONS = gql`\n query ($limit: String, $offset: String) {\n reasonList(limit: $limit, offset: $offset) {\n data {\n description\n isEnabled\n reasonCode\n isSystemDefined\n }\n }\n }\n`;\n\nexport const CREATE_FMS_FOLDER = gql`\n mutation CreateDispatch($input: Folder!) {\n createFolder(input: $input) {\n id\n }\n }\n`;\n\nexport const CUSTODY_IN = gql`\n mutation CustodyInBatch($input: CustodyBatchInput!) {\n custodyInBatch(input: $input) {\n success\n }\n }\n`;\n\nexport const CUSTODY_OUT = gql`\n mutation CustodyOutBatch($input: CustodyBatchInput!) {\n custodyOutBatch(input: $input) {\n success\n }\n }\n`;\n\nexport const WORKFLOW_UPDATE = gql`\n mutation ($input: WorkflowUpdateStatusInput!) {\n updateWorkflowStatus(input: $input) {\n id\n }\n }\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEO,MAAMC,aAAa,GAAG,IAAAC,WAAG,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAACC,OAAA,CAAAF,aAAA,GAAAA,aAAA;AAEK,MAAMG,iBAAiB,GAAG,IAAAF,WAAG,CAAC;AACrC;AACA;AACA;AACA;AACA;AACA,CAAC;AAACC,OAAA,CAAAC,iBAAA,GAAAA,iBAAA;AAEK,MAAMC,UAAU,GAAG,IAAAH,WAAG,CAAC;AAC9B;AACA;AACA;AACA;AACA;AACA,CAAC;AAACC,OAAA,CAAAE,UAAA,GAAAA,UAAA;AAEK,MAAMC,WAAW,GAAG,IAAAJ,WAAG,CAAC;AAC/B;AACA;AACA;AACA;AACA;AACA,CAAC;AAACC,OAAA,CAAAG,WAAA,GAAAA,WAAA;AAEK,MAAMC,eAAe,GAAG,IAAAL,WAAG,CAAC;AACnC;AACA;AACA;AACA;AACA;AACA,CAAC;AAACC,OAAA,CAAAI,eAAA,GAAAA,eAAA"}
|
|
@@ -4,49 +4,40 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _axios = _interopRequireDefault(require("axios"));
|
|
9
|
-
|
|
10
8
|
var _statuscode = _interopRequireDefault(require("../constants/statuscode"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
|
|
10
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
12
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16
13
|
// import { handleAccessTokenExpiry } from './utils/helper';
|
|
14
|
+
|
|
17
15
|
class HttpClient {
|
|
18
16
|
constructor(baseURL) {
|
|
19
17
|
_defineProperty(this, "instance", void 0);
|
|
20
|
-
|
|
21
18
|
_defineProperty(this, "_initializeResponseInterceptor", () => {
|
|
22
19
|
this.instance.interceptors.response.use(this._handleResponse, this._handleError);
|
|
23
20
|
});
|
|
24
|
-
|
|
25
21
|
_defineProperty(this, "_handleResponse", response => {
|
|
26
22
|
return response;
|
|
27
23
|
});
|
|
28
|
-
|
|
29
24
|
_defineProperty(this, "_handleError", error => {
|
|
30
25
|
if (error.response) {
|
|
31
26
|
// Request made and server responded
|
|
32
|
-
// console.log('_handleError if', error.response.status);
|
|
33
27
|
const {
|
|
34
28
|
status
|
|
35
29
|
} = error.response;
|
|
36
|
-
|
|
37
30
|
switch (status) {
|
|
38
31
|
case _statuscode.default.InternalServerError:
|
|
39
32
|
{
|
|
40
33
|
// Handle InternalServerError
|
|
41
34
|
break;
|
|
42
35
|
}
|
|
43
|
-
|
|
44
36
|
case _statuscode.default.Forbidden:
|
|
45
37
|
{
|
|
46
38
|
// Handle Forbidden
|
|
47
39
|
break;
|
|
48
40
|
}
|
|
49
|
-
|
|
50
41
|
case _statuscode.default.Unauthorized:
|
|
51
42
|
{
|
|
52
43
|
// Handle Unauthorized
|
|
@@ -54,34 +45,28 @@ class HttpClient {
|
|
|
54
45
|
//cycle: ../src/utils/loginHelper.ts -> ../src/resources/Login.ts -> ../src/network/client.ts -> ../src/utils/loginHelper.ts
|
|
55
46
|
break;
|
|
56
47
|
}
|
|
57
|
-
|
|
58
48
|
case _statuscode.default.TooManyRequests:
|
|
59
49
|
{
|
|
60
50
|
// Handle TooManyRequests
|
|
61
51
|
break;
|
|
62
52
|
}
|
|
63
53
|
}
|
|
64
|
-
} else if (error.request) {
|
|
54
|
+
} else if (error.request) {
|
|
55
|
+
// The request was made but no response was received
|
|
65
56
|
// Network error should be received here
|
|
66
|
-
// console.log('else if ', error.request);
|
|
67
57
|
} else {
|
|
68
58
|
// Something happened in setting up the request that triggered an Error
|
|
69
59
|
console.log('Error else', error.message);
|
|
70
60
|
}
|
|
71
|
-
|
|
72
61
|
return Promise.reject(error);
|
|
73
62
|
});
|
|
74
|
-
|
|
75
63
|
this.instance = _axios.default.create({
|
|
76
64
|
baseURL,
|
|
77
65
|
timeout: 15000 // timeout of 15s
|
|
78
|
-
|
|
79
66
|
});
|
|
80
67
|
|
|
81
68
|
this._initializeResponseInterceptor();
|
|
82
69
|
}
|
|
83
|
-
|
|
84
70
|
}
|
|
85
|
-
|
|
86
71
|
exports.default = HttpClient;
|
|
87
72
|
//# sourceMappingURL=client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HttpClient","constructor","baseURL","instance","interceptors","response","use","_handleResponse","_handleError","error","status","StatusCode","InternalServerError","Forbidden","Unauthorized","TooManyRequests","request","console","log","message","Promise","reject","axios","create","timeout","_initializeResponseInterceptor"],"sources":["client.ts"],"sourcesContent":["import axios, { AxiosInstance, AxiosResponse } from 'axios';\nimport StatusCode from '../constants/statuscode';\n// import { handleAccessTokenExpiry } from './utils/helper';\n\nexport default abstract class HttpClient {\n protected readonly instance: AxiosInstance;\n\n protected constructor(baseURL: string) {\n this.instance = axios.create({\n baseURL,\n timeout: 15000, // timeout of 15s\n });\n\n this._initializeResponseInterceptor();\n }\n\n private _initializeResponseInterceptor = () => {\n this.instance.interceptors.response.use(\n this._handleResponse,\n this._handleError\n );\n };\n\n protected _handleResponse = (response: AxiosResponse) => {\n return response;\n };\n\n protected _handleError = (error: any) => {\n if (error.response) {\n // Request made and server responded\n
|
|
1
|
+
{"version":3,"names":["_axios","_interopRequireDefault","require","_statuscode","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","HttpClient","constructor","baseURL","instance","interceptors","response","use","_handleResponse","_handleError","error","status","StatusCode","InternalServerError","Forbidden","Unauthorized","TooManyRequests","request","console","log","message","Promise","reject","axios","create","timeout","_initializeResponseInterceptor","exports"],"sources":["client.ts"],"sourcesContent":["import axios, { AxiosInstance, AxiosResponse } from 'axios';\nimport StatusCode from '../constants/statuscode';\n// import { handleAccessTokenExpiry } from './utils/helper';\n\nexport default abstract class HttpClient {\n protected readonly instance: AxiosInstance;\n\n protected constructor(baseURL: string) {\n this.instance = axios.create({\n baseURL,\n timeout: 15000, // timeout of 15s\n });\n\n this._initializeResponseInterceptor();\n }\n\n private _initializeResponseInterceptor = () => {\n this.instance.interceptors.response.use(\n this._handleResponse,\n this._handleError\n );\n };\n\n protected _handleResponse = (response: AxiosResponse) => {\n return response;\n };\n\n protected _handleError = (error: any) => {\n if (error.response) {\n // Request made and server responded\n const { status } = error.response;\n switch (status) {\n case StatusCode.InternalServerError: {\n // Handle InternalServerError\n break;\n }\n case StatusCode.Forbidden: {\n // Handle Forbidden\n break;\n }\n case StatusCode.Unauthorized: {\n // Handle Unauthorized\n //LoginHelper.handleAccessTokenExpiry(); //commented out as this was causing cycles\n //cycle: ../src/utils/loginHelper.ts -> ../src/resources/Login.ts -> ../src/network/client.ts -> ../src/utils/loginHelper.ts\n break;\n }\n case StatusCode.TooManyRequests: {\n // Handle TooManyRequests\n break;\n }\n }\n } else if (error.request) {\n // The request was made but no response was received\n // Network error should be received here\n } else {\n // Something happened in setting up the request that triggered an Error\n console.log('Error else', error.message);\n }\n return Promise.reject(error);\n };\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAiD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,gBAAAH,GAAA,EAAAI,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAJ,GAAA,IAAAO,MAAA,CAAAC,cAAA,CAAAR,GAAA,EAAAI,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAX,GAAA,CAAAI,GAAA,IAAAC,KAAA,WAAAL,GAAA;AAAA,SAAAM,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,MAAA,EAAAT,KAAA;AACjD;;AAEe,MAAeU,UAAU,CAAC;EAG7BC,WAAWA,CAACC,OAAe,EAAE;IAAAxB,eAAA;IAAAA,eAAA,yCASE,MAAM;MAC7C,IAAI,CAACyB,QAAQ,CAACC,YAAY,CAACC,QAAQ,CAACC,GAAG,CACrC,IAAI,CAACC,eAAe,EACpB,IAAI,CAACC,YAAY,CAClB;IACH,CAAC;IAAA9B,eAAA,0BAE4B2B,QAAuB,IAAK;MACvD,OAAOA,QAAQ;IACjB,CAAC;IAAA3B,eAAA,uBAEyB+B,KAAU,IAAK;MACvC,IAAIA,KAAK,CAACJ,QAAQ,EAAE;QAClB;QACA,MAAM;UAAEK;QAAO,CAAC,GAAGD,KAAK,CAACJ,QAAQ;QACjC,QAAQK,MAAM;UACZ,KAAKC,mBAAU,CAACC,mBAAmB;YAAE;cACnC;cACA;YACF;UACA,KAAKD,mBAAU,CAACE,SAAS;YAAE;cACzB;cACA;YACF;UACA,KAAKF,mBAAU,CAACG,YAAY;YAAE;cAC5B;cACA;cACA;cACA;YACF;UACA,KAAKH,mBAAU,CAACI,eAAe;YAAE;cAC/B;cACA;YACF;QAAC;MAEL,CAAC,MAAM,IAAIN,KAAK,CAACO,OAAO,EAAE;QACxB;QACA;MAAA,CACD,MAAM;QACL;QACAC,OAAO,CAACC,GAAG,CAAC,YAAY,EAAET,KAAK,CAACU,OAAO,CAAC;MAC1C;MACA,OAAOC,OAAO,CAACC,MAAM,CAACZ,KAAK,CAAC;IAC9B,CAAC;IAnDC,IAAI,CAACN,QAAQ,GAAGmB,cAAK,CAACC,MAAM,CAAC;MAC3BrB,OAAO;MACPsB,OAAO,EAAE,KAAK,CAAE;IAClB,CAAC,CAAC;;IAEF,IAAI,CAACC,8BAA8B,EAAE;EACvC;AA8CF;AAACC,OAAA,CAAAjD,OAAA,GAAAuB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PLEASE_WAIT"],"sources":["strings.ts"],"sourcesContent":["export const PLEASE_WAIT = 'Please wait...';\n"],"mappings":";;;;;;AAAO,MAAMA,WAAW,GAAG,
|
|
1
|
+
{"version":3,"names":["PLEASE_WAIT","exports"],"sources":["strings.ts"],"sourcesContent":["export const PLEASE_WAIT = 'Please wait...';\n"],"mappings":";;;;;;AAAO,MAAMA,WAAW,GAAG,gBAAgB;AAACC,OAAA,CAAAD,WAAA,GAAAA,WAAA"}
|
|
@@ -4,48 +4,37 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _client = _interopRequireDefault(require("../network/client"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
function
|
|
13
|
-
|
|
9
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
11
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
14
12
|
class Login extends _client.default {
|
|
15
13
|
constructor() {
|
|
16
|
-
super('
|
|
17
|
-
|
|
14
|
+
super('https://delhivery.dev.fxtrt.io/core/api/v1/aaa/');
|
|
18
15
|
_defineProperty(this, "loginMobilePassword", payload => {
|
|
19
16
|
return this.instance.post('/auth/login/mobile-password', payload);
|
|
20
17
|
});
|
|
21
|
-
|
|
22
18
|
_defineProperty(this, "loginMobileOtp", payload => {
|
|
23
19
|
return this.instance.post('/auth/login/mobile-otp', payload);
|
|
24
20
|
});
|
|
25
|
-
|
|
26
21
|
_defineProperty(this, "loginMpin", payload => {
|
|
27
22
|
return this.instance.post('/auth/login/mpin', payload);
|
|
28
23
|
});
|
|
29
|
-
|
|
30
24
|
_defineProperty(this, "loginUserName", payload => {
|
|
31
25
|
return this.instance.post('/auth/login/username-password', payload);
|
|
32
26
|
});
|
|
33
|
-
|
|
34
27
|
_defineProperty(this, "loginCredential", payload => {
|
|
35
28
|
return this.instance.post('/auth/client-login', payload);
|
|
36
29
|
});
|
|
37
|
-
|
|
38
30
|
_defineProperty(this, "validateToken", accessToken => {
|
|
39
31
|
return this.instance.post('/auth/validate', accessToken);
|
|
40
32
|
});
|
|
41
|
-
|
|
42
33
|
_defineProperty(this, "refreshToken", refreshTokenPayload => {
|
|
43
34
|
return this.instance.post('/auth/validate', refreshTokenPayload);
|
|
44
35
|
});
|
|
45
36
|
}
|
|
46
|
-
|
|
47
37
|
}
|
|
48
|
-
|
|
49
38
|
const Auth = new Login();
|
|
50
39
|
var _default = Auth;
|
|
51
40
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Login","HttpClient","constructor","payload","instance","post","accessToken","refreshTokenPayload","Auth"],"sources":["Login.ts"],"sourcesContent":["import HttpClient from '../network/client';\nimport type {\n AccessTokenPayload,\n LoginPayload,\n RefreshTokenPayload,\n} from '../models/auth';\n\nclass Login extends HttpClient {\n public constructor() {\n super('
|
|
1
|
+
{"version":3,"names":["_client","_interopRequireDefault","require","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","Login","HttpClient","constructor","payload","instance","post","accessToken","refreshTokenPayload","Auth","_default","exports"],"sources":["Login.ts"],"sourcesContent":["import HttpClient from '../network/client';\nimport type {\n AccessTokenPayload,\n LoginPayload,\n RefreshTokenPayload,\n} from '../models/auth';\n\nclass Login extends HttpClient {\n public constructor() {\n super('https://delhivery.dev.fxtrt.io/core/api/v1/aaa/');\n }\n public loginMobilePassword = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/mobile-password', payload);\n };\n public loginMobileOtp = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/mobile-otp', payload);\n };\n public loginMpin = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/mpin', payload);\n };\n public loginUserName = (payload: LoginPayload) => {\n return this.instance.post('/auth/login/username-password', payload);\n };\n public loginCredential = (payload: LoginPayload) => {\n return this.instance.post('/auth/client-login', payload);\n };\n public validateToken = (accessToken: AccessTokenPayload) => {\n return this.instance.post('/auth/validate', accessToken);\n };\n public refreshToken = (refreshTokenPayload: RefreshTokenPayload) => {\n return this.instance.post('/auth/validate', refreshTokenPayload);\n };\n}\n\nconst Auth = new Login();\nexport default Auth;\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA2C,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,gBAAAH,GAAA,EAAAI,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAJ,GAAA,IAAAO,MAAA,CAAAC,cAAA,CAAAR,GAAA,EAAAI,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAX,GAAA,CAAAI,GAAA,IAAAC,KAAA,WAAAL,GAAA;AAAA,SAAAM,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAA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OAAA,GAAAgC,QAAA"}
|
|
@@ -4,24 +4,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _client = _interopRequireDefault(require("../network/client"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
function
|
|
13
|
-
|
|
9
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
11
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
14
12
|
class Network extends _client.default {
|
|
15
13
|
constructor() {
|
|
16
14
|
super('https://google.com');
|
|
17
|
-
|
|
18
15
|
_defineProperty(this, "heartBeat", () => {
|
|
19
16
|
return this.instance.head('/');
|
|
20
17
|
});
|
|
21
18
|
}
|
|
22
|
-
|
|
23
19
|
}
|
|
24
|
-
|
|
25
20
|
const network = new Network();
|
|
26
21
|
var _default = network;
|
|
27
22
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Network","HttpClient","constructor","instance","head","network"],"sources":["network.ts"],"sourcesContent":["import HttpClient from '../network/client';\n\nclass Network extends HttpClient {\n public constructor() {\n super('https://google.com');\n }\n public heartBeat = () => {\n return this.instance.head('/');\n };\n}\n\nconst network = new Network();\nexport default network;\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_client","_interopRequireDefault","require","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","Network","HttpClient","constructor","instance","head","network","_default","exports"],"sources":["network.ts"],"sourcesContent":["import HttpClient from '../network/client';\n\nclass Network extends HttpClient {\n public constructor() {\n super('https://google.com');\n }\n public heartBeat = () => {\n return this.instance.head('/');\n };\n}\n\nconst network = new Network();\nexport default network;\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA2C,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,gBAAAH,GAAA,EAAAI,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAJ,GAAA,IAAAO,MAAA,CAAAC,cAAA,CAAAR,GAAA,EAAAI,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAX,GAAA,CAAAI,GAAA,IAAAC,KAAA,WAAAL,GAAA;AAAA,SAAAM,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,MAAA,EAAAT,KAAA;AAE3C,MAAMU,OAAO,SAASC,eAAU,CAAC;EACxBC,WAAWA,CAAA,EAAG;IACnB,KAAK,CAAC,oBAAoB,CAAC;IAACxB,eAAA,oBAEX,MAAM;MACvB,OAAO,IAAI,CAACyB,QAAQ,CAACC,IAAI,CAAC,GAAG,CAAC;IAChC,CAAC;EAHD;AAIF;AAEA,MAAMC,OAAO,GAAG,IAAIL,OAAO,EAAE;AAAC,IAAAM,QAAA,GACfD,OAAO;AAAAE,OAAA,CAAA9B,OAAA,GAAA6B,QAAA"}
|
|
@@ -4,22 +4,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.ColorTheme = void 0;
|
|
7
|
-
let ColorTheme
|
|
8
|
-
exports.ColorTheme = ColorTheme;
|
|
9
|
-
|
|
10
|
-
(function (ColorTheme) {
|
|
7
|
+
let ColorTheme = /*#__PURE__*/function (ColorTheme) {
|
|
11
8
|
ColorTheme["LIGHT"] = "light";
|
|
12
9
|
ColorTheme["DARK"] = "dark";
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
return ColorTheme;
|
|
11
|
+
}({});
|
|
12
|
+
exports.ColorTheme = ColorTheme;
|
|
15
13
|
const tintColor = '#4e9bde';
|
|
16
14
|
const darkTintColor = '#1a74b3';
|
|
17
15
|
const primaryButton = '#5B80F8';
|
|
16
|
+
const exitButton = '#DC2626';
|
|
18
17
|
var _default = {
|
|
19
18
|
[ColorTheme.LIGHT]: {
|
|
20
19
|
tintColor,
|
|
21
20
|
darkTintColor,
|
|
22
|
-
primaryButton
|
|
21
|
+
primaryButton,
|
|
22
|
+
exitButton
|
|
23
23
|
},
|
|
24
24
|
[ColorTheme.DARK]: {
|
|
25
25
|
tintColor: darkTintColor,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ColorTheme","tintColor","darkTintColor","primaryButton","LIGHT","DARK"],"sources":["SdkColors.ts"],"sourcesContent":["export enum ColorTheme {\n LIGHT = 'light',\n DARK = 'dark',\n}\n\nconst tintColor = '#4e9bde';\nconst darkTintColor = '#1a74b3';\nconst primaryButton = '#5B80F8';\n\nexport default {\n [ColorTheme.LIGHT]: {\n tintColor,\n darkTintColor,\n primaryButton,\n },\n [ColorTheme.DARK]: {\n tintColor: darkTintColor,\n darkTintColor: tintColor,\n },\n};\n"],"mappings":";;;;;;IAAYA,
|
|
1
|
+
{"version":3,"names":["ColorTheme","exports","tintColor","darkTintColor","primaryButton","exitButton","_default","LIGHT","DARK","default"],"sources":["SdkColors.ts"],"sourcesContent":["export enum ColorTheme {\n LIGHT = 'light',\n DARK = 'dark',\n}\n\nconst tintColor = '#4e9bde';\nconst darkTintColor = '#1a74b3';\nconst primaryButton = '#5B80F8';\nconst exitButton = '#DC2626';\n\nexport default {\n [ColorTheme.LIGHT]: {\n tintColor,\n darkTintColor,\n primaryButton,\n exitButton,\n },\n [ColorTheme.DARK]: {\n tintColor: darkTintColor,\n darkTintColor: tintColor,\n },\n};\n"],"mappings":";;;;;;IAAYA,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAAAC,OAAA,CAAAD,UAAA,GAAAA,UAAA;AAKtB,MAAME,SAAS,GAAG,SAAS;AAC3B,MAAMC,aAAa,GAAG,SAAS;AAC/B,MAAMC,aAAa,GAAG,SAAS;AAC/B,MAAMC,UAAU,GAAG,SAAS;AAAC,IAAAC,QAAA,GAEd;EACb,CAACN,UAAU,CAACO,KAAK,GAAG;IAClBL,SAAS;IACTC,aAAa;IACbC,aAAa;IACbC;EACF,CAAC;EACD,CAACL,UAAU,CAACQ,IAAI,GAAG;IACjBN,SAAS,EAAEC,aAAa;IACxBA,aAAa,EAAED;EACjB;AACF,CAAC;AAAAD,OAAA,CAAAQ,OAAA,GAAAH,QAAA"}
|
|
@@ -4,19 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.deliverETStyles = exports.Fonts = exports.DeliverPickupStyles = exports.CommonStyles = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
var _SdkColors = _interopRequireWildcard(require("../SdkColors"));
|
|
11
|
-
|
|
12
9
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
-
|
|
14
10
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
|
|
16
|
-
let Fonts;
|
|
17
|
-
exports.Fonts = Fonts;
|
|
18
|
-
|
|
19
|
-
(function (Fonts) {
|
|
11
|
+
let Fonts = /*#__PURE__*/function (Fonts) {
|
|
20
12
|
Fonts["IBMPlexSans_400Regular"] = "IBMPlexSans_400Regular";
|
|
21
13
|
Fonts["IBMPlexSans_600SemiBold"] = "IBMPlexSans_600SemiBold";
|
|
22
14
|
Fonts["IBMPlexSans_300Light"] = "IBMPlexSans_300Light";
|
|
@@ -31,8 +23,9 @@ exports.Fonts = Fonts;
|
|
|
31
23
|
Fonts["IBMPlexSans_500Medium_Italic"] = "IBMPlexSans_500Medium_Italic";
|
|
32
24
|
Fonts["IBMPlexSans_600SemiBold_Italic"] = "IBMPlexSans_600SemiBold_Italic";
|
|
33
25
|
Fonts["IBMPlexSans_700Bold_Italic"] = "IBMPlexSans_700Bold_Italic";
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
return Fonts;
|
|
27
|
+
}({});
|
|
28
|
+
exports.Fonts = Fonts;
|
|
36
29
|
const deliverETStyles = _reactNative.StyleSheet.create({
|
|
37
30
|
item: {
|
|
38
31
|
padding: 2,
|
|
@@ -64,9 +57,7 @@ const deliverETStyles = _reactNative.StyleSheet.create({
|
|
|
64
57
|
fontStyle: 'normal'
|
|
65
58
|
}
|
|
66
59
|
});
|
|
67
|
-
|
|
68
60
|
exports.deliverETStyles = deliverETStyles;
|
|
69
|
-
|
|
70
61
|
const CommonStyles = _reactNative.StyleSheet.create({
|
|
71
62
|
alignCenter: {
|
|
72
63
|
flex: 1,
|
|
@@ -86,7 +77,7 @@ const CommonStyles = _reactNative.StyleSheet.create({
|
|
|
86
77
|
nextButtonLabel: {
|
|
87
78
|
color: '#ffffff',
|
|
88
79
|
fontFamily: 'IBMPlexSans_600SemiBold',
|
|
89
|
-
fontSize:
|
|
80
|
+
fontSize: 14,
|
|
90
81
|
lineHeight: 20,
|
|
91
82
|
letterSpacing: 1.56,
|
|
92
83
|
textAlign: 'center',
|
|
@@ -100,7 +91,21 @@ const CommonStyles = _reactNative.StyleSheet.create({
|
|
|
100
91
|
cancelButtonLabel: {
|
|
101
92
|
color: _SdkColors.default[_SdkColors.ColorTheme.LIGHT].primaryButton,
|
|
102
93
|
fontFamily: Fonts.IBMPlexSans_600SemiBold,
|
|
103
|
-
fontSize:
|
|
94
|
+
fontSize: 14,
|
|
95
|
+
fontWeight: '600',
|
|
96
|
+
lineHeight: 20,
|
|
97
|
+
letterSpacing: 1.56,
|
|
98
|
+
textAlign: 'center',
|
|
99
|
+
fontStyle: 'normal'
|
|
100
|
+
},
|
|
101
|
+
exitButton: {
|
|
102
|
+
borderWidth: 1,
|
|
103
|
+
borderColor: _SdkColors.default[_SdkColors.ColorTheme.LIGHT].exitButton
|
|
104
|
+
},
|
|
105
|
+
exitButtonLabel: {
|
|
106
|
+
color: _SdkColors.default[_SdkColors.ColorTheme.LIGHT].exitButton,
|
|
107
|
+
fontFamily: Fonts.IBMPlexSans_600SemiBold,
|
|
108
|
+
fontSize: 14,
|
|
104
109
|
fontWeight: '600',
|
|
105
110
|
lineHeight: 20,
|
|
106
111
|
letterSpacing: 1.56,
|
|
@@ -111,11 +116,31 @@ const CommonStyles = _reactNative.StyleSheet.create({
|
|
|
111
116
|
flex: 1,
|
|
112
117
|
justifyContent: 'flex-end',
|
|
113
118
|
marginBottom: 10
|
|
119
|
+
},
|
|
120
|
+
modalContent: {
|
|
121
|
+
marginStart: 60,
|
|
122
|
+
marginEnd: 60,
|
|
123
|
+
flex: 1,
|
|
124
|
+
marginBottom: 60
|
|
125
|
+
},
|
|
126
|
+
modalView: {
|
|
127
|
+
backgroundColor: 'white',
|
|
128
|
+
padding: 15,
|
|
129
|
+
borderRadius: 9
|
|
130
|
+
},
|
|
131
|
+
subText: {
|
|
132
|
+
justifyContent: 'center',
|
|
133
|
+
fontFamily: 'IBMPlexSans_400Regular',
|
|
134
|
+
fontStyle: 'normal',
|
|
135
|
+
fontSize: 14,
|
|
136
|
+
letterSpacing: 0.25,
|
|
137
|
+
lineHeight: 20,
|
|
138
|
+
textAlign: 'center',
|
|
139
|
+
color: '#000000',
|
|
140
|
+
marginBottom: 10
|
|
114
141
|
}
|
|
115
142
|
});
|
|
116
|
-
|
|
117
143
|
exports.CommonStyles = CommonStyles;
|
|
118
|
-
|
|
119
144
|
const DeliverPickupStyles = _reactNative.StyleSheet.create({
|
|
120
145
|
itemTextStyle: {
|
|
121
146
|
fontFamily: Fonts.IBMPlexSans_400Regular,
|
|
@@ -163,6 +188,5 @@ const DeliverPickupStyles = _reactNative.StyleSheet.create({
|
|
|
163
188
|
color: '#000000'
|
|
164
189
|
}
|
|
165
190
|
});
|
|
166
|
-
|
|
167
191
|
exports.DeliverPickupStyles = DeliverPickupStyles;
|
|
168
192
|
//# sourceMappingURL=CommonStyles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Fonts","deliverETStyles","StyleSheet","create","item","padding","marginTop","title","fontSize","footerButtonStyles","flexDirection","width","input","marginBottom","footerComponent","flex","marginStart","marginEnd","marginRight","position","bottom","errorText","color","fontStyle","CommonStyles","alignCenter","alignItems","flexRow","mainContainer","backgroundColor","nextButton","SdkColors","ColorTheme","LIGHT","primaryButton","nextButtonLabel","fontFamily","lineHeight","letterSpacing","textAlign","fontWeight","cancelButton","borderWidth","borderColor","cancelButtonLabel","IBMPlexSans_600SemiBold","justifyContent","DeliverPickupStyles","itemTextStyle","IBMPlexSans_400Regular","modalContent","flatList","modalView","borderRadius","titleText","messageText"],"sources":["CommonStyles.ts"],"sourcesContent":["import { StyleSheet } from 'react-native';\nimport SdkColors, { ColorTheme } from '../SdkColors';\n\nexport enum Fonts {\n IBMPlexSans_400Regular = 'IBMPlexSans_400Regular',\n IBMPlexSans_600SemiBold = 'IBMPlexSans_600SemiBold',\n IBMPlexSans_300Light = 'IBMPlexSans_300Light',\n IBMPlexSans_700Bold = 'IBMPlexSans_700Bold',\n IBMPlexSans_100Thin = 'IBMPlexSans_100Thin',\n IBMPlexSans_100Thin_Italic = 'IBMPlexSans_100Thin_Italic',\n IBMPlexSans_200ExtraLight = 'IBMPlexSans_200ExtraLight',\n IBMPlexSans_200ExtraLight_Italic = 'IBMPlexSans_200ExtraLight_Italic',\n IBMPlexSans_300Light_Italic = 'IBMPlexSans_300Light_Italic',\n IBMPlexSans_400Regular_Italic = 'IBMPlexSans_400Regular_Italic',\n IBMPlexSans_500Medium = 'IBMPlexSans_500Medium',\n IBMPlexSans_500Medium_Italic = 'IBMPlexSans_500Medium_Italic',\n IBMPlexSans_600SemiBold_Italic = 'IBMPlexSans_600SemiBold_Italic',\n IBMPlexSans_700Bold_Italic = 'IBMPlexSans_700Bold_Italic',\n}\nexport const deliverETStyles = StyleSheet.create({\n item: {\n padding: 2,\n marginTop: 8,\n },\n title: {\n fontSize: 16,\n },\n footerButtonStyles: {\n flexDirection: 'row',\n width: '100%',\n },\n input: {\n marginTop: 12,\n marginBottom: 10,\n },\n footerComponent: {\n flex: 1,\n marginStart: 8,\n marginEnd: 8,\n marginRight: 8,\n width: '100%',\n position: 'absolute',\n bottom: 10,\n },\n errorText: {\n color: 'red',\n fontSize: 16,\n fontStyle: 'normal',\n },\n});\nexport const CommonStyles = StyleSheet.create({\n alignCenter: {\n flex: 1,\n alignItems: 'center',\n },\n flexRow: {\n flex: 1,\n flexDirection: 'row',\n },\n mainContainer: {\n flex: 1,\n backgroundColor: '#f9f9f9',\n },\n nextButton: {\n backgroundColor: SdkColors[ColorTheme.LIGHT].primaryButton,\n },\n nextButtonLabel: {\n color: '#ffffff',\n fontFamily: 'IBMPlexSans_600SemiBold',\n fontSize: 16,\n lineHeight: 20,\n letterSpacing: 1.56,\n textAlign: 'center',\n fontStyle: 'normal',\n fontWeight: '600',\n },\n cancelButton: {\n borderWidth: 1,\n borderColor: SdkColors[ColorTheme.LIGHT].primaryButton,\n },\n cancelButtonLabel: {\n color: SdkColors[ColorTheme.LIGHT].primaryButton,\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n fontSize: 16,\n fontWeight: '600',\n lineHeight: 20,\n letterSpacing: 1.56,\n textAlign: 'center',\n fontStyle: 'normal',\n },\n bottom: {\n flex: 1,\n justifyContent: 'flex-end',\n marginBottom: 10,\n },\n});\nexport const DeliverPickupStyles = StyleSheet.create({\n itemTextStyle: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n color: '#111111',\n textAlign: 'center',\n alignItems: 'center',\n justifyContent: 'center',\n },\n mainContainer: {\n flex: 1,\n backgroundColor: 'rgba(61, 68, 92, 0.7)',\n },\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n flex: 1,\n marginBottom: 60,\n },\n flatList: {\n marginTop: 7,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n borderRadius: 9,\n },\n titleText: {\n justifyContent: 'center',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#111111',\n },\n messageText: {\n marginTop: 10,\n justifyContent: 'center',\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#000000',\n },\n});\n"],"mappings":";;;;;;;AAAA;;AACA;;;;;;IAEYA,K;;;WAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;EAAAA,K;GAAAA,K,qBAAAA,K;;AAgBL,MAAMC,eAAe,GAAGC,uBAAA,CAAWC,MAAX,CAAkB;EAC/CC,IAAI,EAAE;IACJC,OAAO,EAAE,CADL;IAEJC,SAAS,EAAE;EAFP,CADyC;EAK/CC,KAAK,EAAE;IACLC,QAAQ,EAAE;EADL,CALwC;EAQ/CC,kBAAkB,EAAE;IAClBC,aAAa,EAAE,KADG;IAElBC,KAAK,EAAE;EAFW,CAR2B;EAY/CC,KAAK,EAAE;IACLN,SAAS,EAAE,EADN;IAELO,YAAY,EAAE;EAFT,CAZwC;EAgB/CC,eAAe,EAAE;IACfC,IAAI,EAAE,CADS;IAEfC,WAAW,EAAE,CAFE;IAGfC,SAAS,EAAE,CAHI;IAIfC,WAAW,EAAE,CAJE;IAKfP,KAAK,EAAE,MALQ;IAMfQ,QAAQ,EAAE,UANK;IAOfC,MAAM,EAAE;EAPO,CAhB8B;EAyB/CC,SAAS,EAAE;IACTC,KAAK,EAAE,KADE;IAETd,QAAQ,EAAE,EAFD;IAGTe,SAAS,EAAE;EAHF;AAzBoC,CAAlB,CAAxB;;;;AA+BA,MAAMC,YAAY,GAAGtB,uBAAA,CAA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pC,KAAK,CAACiD,sBADL;IAEb3B,KAAK,EAAE,SAFM;IAGbiB,SAAS,EAAE,QAHE;IAIbb,UAAU,EAAE,QAJC;IAKboB,cAAc,EAAE;EALH,CADoC;EAQnDlB,aAAa,EAAE;IACbb,IAAI,EAAE,CADO;IAEbc,eAAe,EAAE;EAFJ,CARoC;EAYnDqB,YAAY,EAAE;IACZlC,WAAW,EAAE,EADD;IAEZC,SAAS,EAAE,EAFC;IAGZF,IAAI,EAAE,CAHM;IAIZF,YAAY,EAAE;EAJF,CAZqC;EAkBnDsC,QAAQ,EAAE;IACR7C,SAAS,EAAE;EADH,CAlByC;EAqBnD8C,SAAS,EAAE;IACTvB,eAAe,EAAE,OADR;IAETxB,OAAO,EAAE,EAFA;IAGTgD,YAAY,EAAE;EAHL,CArBwC;EA0BnDC,SAAS,EAAE;IACTR,cAAc,EAAE,QADP;IAETV,UAAU,EAAEpC,KAAK,CAAC6C,uBAFT;IAGTtB,SAAS,EAAE,QAHF;IAITf,QAAQ,EAAE,EAJD;IAKT6B,UAAU,EAAE,EALH;IAMTE,SAAS,EAAE,QANF;IAOTjB,KAAK,EAAE;EAPE,CA1BwC;EAmCnDiC,WAAW,EAAE;IACXjD,SAAS,EAAE,EADA;IAEXwC,cAAc,EAAE,QAFL;IAGXV,UAAU,EAAEpC,KAAK,CAACiD,sBAHP;IAIX1B,SAAS,EAAE,QAJA;IAKXiB,UAAU,EAAE,KALD;IAMXhC,QAAQ,EAAE,EANC;IAOX6B,UAAU,EAAE,EAPD;IAQXE,SAAS,EAAE,QARA;IASXjB,KAAK,EAAE;EATI;AAnCsC,CAAlB,CAA5B"}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_SdkColors","_interopRequireWildcard","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","Fonts","exports","deliverETStyles","StyleSheet","create","item","padding","marginTop","title","fontSize","footerButtonStyles","flexDirection","width","input","marginBottom","footerComponent","flex","marginStart","marginEnd","marginRight","position","bottom","errorText","color","fontStyle","CommonStyles","alignCenter","alignItems","flexRow","mainContainer","backgroundColor","nextButton","SdkColors","ColorTheme","LIGHT","primaryButton","nextButtonLabel","fontFamily","lineHeight","letterSpacing","textAlign","fontWeight","cancelButton","borderWidth","borderColor","cancelButtonLabel","IBMPlexSans_600SemiBold","exitButton","exitButtonLabel","justifyContent","modalContent","modalView","borderRadius","subText","DeliverPickupStyles","itemTextStyle","IBMPlexSans_400Regular","flatList","titleText","messageText"],"sources":["CommonStyles.ts"],"sourcesContent":["import { StyleSheet } from 'react-native';\nimport SdkColors, { ColorTheme } from '../SdkColors';\n\nexport enum Fonts {\n IBMPlexSans_400Regular = 'IBMPlexSans_400Regular',\n IBMPlexSans_600SemiBold = 'IBMPlexSans_600SemiBold',\n IBMPlexSans_300Light = 'IBMPlexSans_300Light',\n IBMPlexSans_700Bold = 'IBMPlexSans_700Bold',\n IBMPlexSans_100Thin = 'IBMPlexSans_100Thin',\n IBMPlexSans_100Thin_Italic = 'IBMPlexSans_100Thin_Italic',\n IBMPlexSans_200ExtraLight = 'IBMPlexSans_200ExtraLight',\n IBMPlexSans_200ExtraLight_Italic = 'IBMPlexSans_200ExtraLight_Italic',\n IBMPlexSans_300Light_Italic = 'IBMPlexSans_300Light_Italic',\n IBMPlexSans_400Regular_Italic = 'IBMPlexSans_400Regular_Italic',\n IBMPlexSans_500Medium = 'IBMPlexSans_500Medium',\n IBMPlexSans_500Medium_Italic = 'IBMPlexSans_500Medium_Italic',\n IBMPlexSans_600SemiBold_Italic = 'IBMPlexSans_600SemiBold_Italic',\n IBMPlexSans_700Bold_Italic = 'IBMPlexSans_700Bold_Italic',\n}\nexport const deliverETStyles = StyleSheet.create({\n item: {\n padding: 2,\n marginTop: 8,\n },\n title: {\n fontSize: 16,\n },\n footerButtonStyles: {\n flexDirection: 'row',\n width: '100%',\n },\n input: {\n marginTop: 12,\n marginBottom: 10,\n },\n footerComponent: {\n flex: 1,\n marginStart: 8,\n marginEnd: 8,\n marginRight: 8,\n width: '100%',\n position: 'absolute',\n bottom: 10,\n },\n errorText: {\n color: 'red',\n fontSize: 16,\n fontStyle: 'normal',\n },\n});\nexport const CommonStyles = StyleSheet.create({\n alignCenter: {\n flex: 1,\n alignItems: 'center',\n },\n flexRow: {\n flex: 1,\n flexDirection: 'row',\n },\n mainContainer: {\n flex: 1,\n backgroundColor: '#f9f9f9',\n },\n nextButton: {\n backgroundColor: SdkColors[ColorTheme.LIGHT].primaryButton,\n },\n nextButtonLabel: {\n color: '#ffffff',\n fontFamily: 'IBMPlexSans_600SemiBold',\n fontSize: 14,\n lineHeight: 20,\n letterSpacing: 1.56,\n textAlign: 'center',\n fontStyle: 'normal',\n fontWeight: '600',\n },\n cancelButton: {\n borderWidth: 1,\n borderColor: SdkColors[ColorTheme.LIGHT].primaryButton,\n },\n cancelButtonLabel: {\n color: SdkColors[ColorTheme.LIGHT].primaryButton,\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n fontSize: 14,\n fontWeight: '600',\n lineHeight: 20,\n letterSpacing: 1.56,\n textAlign: 'center',\n fontStyle: 'normal',\n },\n exitButton: {\n borderWidth: 1,\n borderColor: SdkColors[ColorTheme.LIGHT].exitButton,\n },\n exitButtonLabel: {\n color: SdkColors[ColorTheme.LIGHT].exitButton,\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n fontSize: 14,\n fontWeight: '600',\n lineHeight: 20,\n letterSpacing: 1.56,\n textAlign: 'center',\n fontStyle: 'normal',\n },\n bottom: {\n flex: 1,\n justifyContent: 'flex-end',\n marginBottom: 10,\n },\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n flex: 1,\n marginBottom: 60,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n borderRadius: 9,\n },\n subText: {\n justifyContent: 'center',\n fontFamily: 'IBMPlexSans_400Regular',\n fontStyle: 'normal',\n fontSize: 14,\n letterSpacing: 0.25,\n lineHeight: 20,\n textAlign: 'center',\n color: '#000000',\n marginBottom: 10,\n },\n});\nexport const DeliverPickupStyles = StyleSheet.create({\n itemTextStyle: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n color: '#111111',\n textAlign: 'center',\n alignItems: 'center',\n justifyContent: 'center',\n },\n mainContainer: {\n flex: 1,\n backgroundColor: 'rgba(61, 68, 92, 0.7)',\n },\n modalContent: {\n marginStart: 60,\n marginEnd: 60,\n flex: 1,\n marginBottom: 60,\n },\n flatList: {\n marginTop: 7,\n },\n modalView: {\n backgroundColor: 'white',\n padding: 15,\n borderRadius: 9,\n },\n titleText: {\n justifyContent: 'center',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n fontStyle: 'normal',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#111111',\n },\n messageText: {\n marginTop: 10,\n justifyContent: 'center',\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n lineHeight: 20,\n textAlign: 'center',\n color: '#000000',\n },\n});\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,uBAAA,CAAAF,OAAA;AAAqD,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAF,wBAAAM,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,K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