@scandit/web-datacapture-core 8.4.0 → 8.5.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY.txt +2 -28
- package/build/electron/constants-D5Av3xIA.js +1 -0
- package/build/electron/constants-Tq_qHFkh.cjs +1 -0
- package/build/electron/main.cjs +1 -1
- package/build/electron/main.d.cts +12 -21
- package/build/electron/main.d.ts +12 -21
- package/build/electron/main.js +1 -1
- package/build/electron/preload.cjs +1 -1
- package/build/electron/preload.d.cts +4 -4
- package/build/electron/preload.d.ts +4 -4
- package/build/electron/preload.js +1 -1
- package/build/js/AdditionalLayerPosition-D_ouQ8wn.d.ts +7 -0
- package/build/js/AimerViewfinder-bCf_UrQu.d.ts +15 -0
- package/build/js/AimerViewfinder.d.ts +2 -22
- package/build/js/AimerViewfinder.js +1 -1
- package/build/js/Anchor-DxO9CbHk.d.ts +14 -0
- package/build/js/AnchorPositions-4M8lB28_.d.ts +42 -0
- package/build/js/AsyncStateMachine-gK_htWdT.d.ts +49 -0
- package/build/js/AudioCache-D893YEVZ.d.ts +37 -0
- package/build/js/BatteryInterface-BYl36ktu.d.ts +81 -0
- package/build/js/Brush-D6WUoW36.d.ts +32 -0
- package/build/js/Brush.d.ts +2 -32
- package/build/js/Brush.js +1 -1
- package/build/js/Camera-C7TNwqRo.d.ts +413 -0
- package/build/js/Camera.d.ts +2 -7
- package/build/js/Camera.js +1 -1
- package/build/js/CameraManager-DskA2C7T.js +35 -0
- package/build/js/CameraRelated.d.ts +2 -7
- package/build/js/CameraRelated.js +1 -1
- package/build/js/CavansDrawerAbstract-E_URl3X1.d.ts +37 -0
- package/build/js/Color-qNIvVO9c.d.ts +28 -0
- package/build/js/ColorType-Dj3_-sLJ.d.ts +7 -0
- package/build/js/CustomLocationsView-BmILmaYk.d.ts +59 -0
- package/build/js/DataCaptureContext-CYDrBO6_.d.ts +2017 -0
- package/build/js/DataCaptureContext-CbQes_57.js +6 -0
- package/build/js/DataCaptureContext.d.ts +2 -39
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +2 -39
- package/build/js/DataCaptureContextRelated.js +1 -1
- package/build/js/DataCaptureContextSettings-jR9ArFal.d.ts +13 -0
- package/build/js/DataCaptureContextSettings.d.ts +2 -13
- package/build/js/DataCaptureContextSettings.js +1 -1
- package/build/js/DataCaptureError-fm19xgXy.d.ts +13 -0
- package/build/js/DataCaptureError.d.ts +2 -13
- package/build/js/DataCaptureError.js +1 -1
- package/build/js/DataCaptureVersion-CoBugUHX.d.ts +6 -0
- package/build/js/DataCaptureVersion.d.ts +2 -6
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +2 -39
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/DataCaptureViewPlusRelated-DcAi6mWY.d.ts +50 -0
- package/build/js/DataCaptureViewPlusRelated.d.ts +2 -3
- package/build/js/DataCaptureViewPlusRelated.js +1 -1
- package/build/js/DefaultViewClassnames.d.ts +13 -13
- package/build/js/DefaultViewClassnames.js +1 -1
- package/build/js/Direction-Cii3d0QY.d.ts +12 -0
- package/build/js/DrawCommandBuffer-TbNqWVhj.d.ts +44 -0
- package/build/js/EventManager-Cr57hTzG.d.ts +9 -0
- package/build/js/Feedback-D4kA2xWA.d.ts +21 -0
- package/build/js/Feedback.d.ts +2 -21
- package/build/js/Feedback.js +1 -1
- package/build/js/FrameData.d.ts +2 -39
- package/build/js/FrameData.js +1 -1
- package/build/js/HtmlElementState-BeRz5m6o.d.ts +35 -0
- package/build/js/ImageFrameSource-YH6FmhqZ.d.ts +43 -0
- package/build/js/ImageFrameSource.d.ts +2 -47
- package/build/js/ImageFrameSource.js +1 -1
- package/build/js/JSONType-BJv7BUtr.d.ts +6 -0
- package/build/js/LaserlineViewfinder-Dkc264QQ.d.ts +17 -0
- package/build/js/LaserlineViewfinder.d.ts +2 -23
- package/build/js/LaserlineViewfinder.js +1 -1
- package/build/js/LoadingStatus-0KzcUFiY.d.ts +23 -0
- package/build/js/LoadingStatus.d.ts +2 -23
- package/build/js/LoadingStatus.js +1 -1
- package/build/js/Localization-LoX2FWJO.d.ts +44 -0
- package/build/js/Localization.d.ts +2 -44
- package/build/js/Localization.js +1 -1
- package/build/js/LocationSelection-BXqyUc16.d.ts +41 -0
- package/build/js/LocationSelection.d.ts +2 -44
- package/build/js/LocationSelection.js +1 -1
- package/build/js/MarginsWithUnit-BHhnV4t0.d.ts +38 -0
- package/build/js/MeasureUnit-D14sZoRp.d.ts +7 -0
- package/build/js/NotificationBuilder-B3uY_ZbG.d.ts +23 -0
- package/build/js/NotificationConfiguration-C-1Vhrpo.d.ts +22 -0
- package/build/js/NotificationPresenter/NotificationBuilder.d.ts +2 -25
- package/build/js/NotificationPresenter/NotificationBuilder.js +1 -1
- package/build/js/NotificationPresenter/NotificationConfiguration.d.ts +2 -24
- package/build/js/NotificationPresenter/NotificationConfiguration.js +1 -1
- package/build/js/NotificationPresenter/NotificationPresenter.d.ts +2 -14
- package/build/js/NotificationPresenter/NotificationStyle.d.ts +2 -9
- package/build/js/NotificationPresenter/NotificationStyle.js +1 -1
- package/build/js/NotificationPresenter/index.d.ts +6 -41
- package/build/js/NotificationPresenter/index.js +1 -1
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +2 -48
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.js +1 -1
- package/build/js/NotificationPresenter/private/presets.d.ts +5 -41
- package/build/js/NotificationPresenter/private/presets.js +1 -1
- package/build/js/NotificationPresenter-D0g_arAJ.d.ts +9 -0
- package/build/js/NotificationStyle-COZXqLGO.d.ts +9 -0
- package/build/js/NumberWithUnit-UGwoucuQ.d.ts +19 -0
- package/build/js/OpenSourceSoftwareLicenseInfo-CpjUKTrl.d.ts +8 -0
- package/build/js/Orientation-BNtNH3yS.d.ts +10 -0
- package/build/js/OverrideState-CGTOUAyb.d.ts +8 -0
- package/build/js/Point-CD9Qi9ID.d.ts +20 -0
- package/build/js/PointWithUnit-C_e8HUvk.d.ts +26 -0
- package/build/js/Quadrilateral-DbJ7LU2U.d.ts +25 -0
- package/build/js/Rect-BVo37EKG.d.ts +19 -0
- package/build/js/RectWithUnit-OJ1xPlBN.d.ts +19 -0
- package/build/js/RectangularViewfinder-j93qfYTd.d.ts +36 -0
- package/build/js/RectangularViewfinder.d.ts +2 -40
- package/build/js/RectangularViewfinder.js +1 -1
- package/build/js/ScanditHTMLElement-CrbGsFpn.d.ts +5 -0
- package/build/js/ScanditIcon-FRMSos7x.d.ts +49 -0
- package/build/js/ScanditIcon.d.ts +2 -50
- package/build/js/ScanditIcon.js +1 -1
- package/build/js/ScanditIconBuilder-BtnTaVeJ.d.ts +66 -0
- package/build/js/ScanditIconBuilder.d.ts +3 -68
- package/build/js/ScanditIconBuilder.js +1 -1
- package/build/js/Serializable-Dbturs7d.d.ts +9 -0
- package/build/js/SingleImageUploader-CRDpQ9PA.d.ts +43 -0
- package/build/js/SingleImageUploader.d.ts +2 -48
- package/build/js/SingleImageUploader.js +1 -1
- package/build/js/SingleImageUploaderSettings-Y-cG1lpl.d.ts +33 -0
- package/build/js/SingleImageUploaderSettings.d.ts +2 -33
- package/build/js/SingleImageUploaderSettings.js +1 -1
- package/build/js/Size-i8Zhfc5b.d.ts +18 -0
- package/build/js/SizeMode-CkAAaxIg.d.ts +9 -0
- package/build/js/SizeWithAspect-Dg-YCV1Q.d.ts +12 -0
- package/build/js/SizeWithUnit-CNgvxsVj.d.ts +26 -0
- package/build/js/SizeWithUnitAndAspect-BrtiXpsG.d.ts +40 -0
- package/build/js/Sound-ByTzZ3ia.d.ts +21 -0
- package/build/js/Sound.d.ts +2 -21
- package/build/js/Sound.js +1 -1
- package/build/js/SvgIcon-CAR8Tf7x.d.ts +23 -0
- package/build/js/Vibration-B1J9JMda.d.ts +21 -0
- package/build/js/Vibration.d.ts +2 -21
- package/build/js/Vibration.js +1 -1
- package/build/js/View-BvEw8Q1D.d.ts +7 -0
- package/build/js/Viewfinder-DTjfkI0v.d.ts +19 -0
- package/build/js/Viewfinder.d.ts +2 -26
- package/build/js/Viewfinder.js +1 -1
- package/build/js/ViewfinderPlusRelated-CuUarlQb.d.ts +72 -0
- package/build/js/ViewfinderPlusRelated.d.ts +2 -76
- package/build/js/ViewfinderPlusRelated.js +1 -1
- package/build/js/WatermarkStack-CDKo8wBr.d.ts +41 -0
- package/build/js/ZoomGestureListener.d.ts +2 -3
- package/build/js/ZoomListener.d.ts +2 -7
- package/build/js/ZoomSwitchOrientation-Deylpp5l.d.ts +8 -0
- package/build/js/ZoomSwitchOrientation.d.ts +2 -8
- package/build/js/ZoomSwitchOrientation.js +1 -1
- package/build/js/areEqualArrays-BpuDaVrU.d.ts +4 -0
- package/build/js/assets/beepSound.d.ts +3 -3
- package/build/js/assets/beepSound.js +1 -1
- package/build/js/assets/folderImage.d.ts +3 -3
- package/build/js/assets/folderImage.js +1 -1
- package/build/js/assets/scanningByScandit.d.ts +3 -3
- package/build/js/assets/scanningByScandit.js +1 -1
- package/build/js/assets/transparentPixelImage.d.ts +3 -3
- package/build/js/assets/transparentPixelImage.js +1 -1
- package/build/js/browserCompatibility-DD4Tvtlv.d.ts +88 -0
- package/build/js/browserCompatibility.d.ts +2 -88
- package/build/js/browserCompatibility.js +1 -1
- package/build/js/browserHelper-BQPnAZ2Y.js +1 -0
- package/build/js/browserHelper-Dno5no9Z.d.ts +224 -0
- package/build/js/browserHelper.d.ts +2 -224
- package/build/js/browserHelper.js +1 -1
- package/build/js/clamp-B71RA4rG.d.ts +4 -0
- package/build/js/common-BisNSU4o.d.ts +25 -0
- package/build/js/commons/Anchor.d.ts +2 -14
- package/build/js/commons/Anchor.js +1 -1
- package/build/js/commons/Color.d.ts +2 -28
- package/build/js/commons/Color.js +1 -1
- package/build/js/commons/Direction.d.ts +2 -12
- package/build/js/commons/Direction.js +1 -1
- package/build/js/commons/JSONType.d.ts +2 -6
- package/build/js/commons/MarginsWithUnit.d.ts +2 -39
- package/build/js/commons/MarginsWithUnit.js +1 -1
- package/build/js/commons/MeasureUnit.d.ts +2 -7
- package/build/js/commons/MeasureUnit.js +1 -1
- package/build/js/commons/NumberWithUnit.d.ts +2 -19
- package/build/js/commons/NumberWithUnit.js +1 -1
- package/build/js/commons/Orientation.d.ts +2 -10
- package/build/js/commons/Orientation.js +1 -1
- package/build/js/commons/Point.d.ts +2 -20
- package/build/js/commons/Point.js +1 -1
- package/build/js/commons/PointWithUnit.d.ts +2 -27
- package/build/js/commons/PointWithUnit.js +1 -1
- package/build/js/commons/Quadrilateral.d.ts +2 -25
- package/build/js/commons/Quadrilateral.js +1 -1
- package/build/js/commons/Rect.d.ts +2 -19
- package/build/js/commons/Rect.js +1 -1
- package/build/js/commons/RectWithUnit.d.ts +2 -21
- package/build/js/commons/RectWithUnit.js +1 -1
- package/build/js/commons/Size.d.ts +2 -18
- package/build/js/commons/Size.js +1 -1
- package/build/js/commons/SizeMode.d.ts +2 -9
- package/build/js/commons/SizeMode.js +1 -1
- package/build/js/commons/SizeWithAspect.d.ts +2 -14
- package/build/js/commons/SizeWithAspect.js +1 -1
- package/build/js/commons/SizeWithUnit.d.ts +2 -27
- package/build/js/commons/SizeWithUnit.js +1 -1
- package/build/js/commons/SizeWithUnitAndAspect.d.ts +2 -42
- package/build/js/commons/SizeWithUnitAndAspect.js +1 -1
- package/build/js/controls/CameraFOVSwitchControl.d.ts +2 -76
- package/build/js/controls/CameraFOVSwitchControl.js +1 -1
- package/build/js/controls/CameraSwitchControl.d.ts +2 -66
- package/build/js/controls/CameraSwitchControl.js +1 -1
- package/build/js/controls/TorchSwitchControl.d.ts +2 -67
- package/build/js/controls/TorchSwitchControl.js +1 -1
- package/build/js/controls/ZoomSwitchControl.d.ts +2 -97
- package/build/js/controls/ZoomSwitchControl.js +1 -1
- package/build/js/controls/common.d.ts +2 -39
- package/build/js/controls/index.d.ts +2 -44
- package/build/js/controls/index.js +1 -1
- package/build/js/css-DUhStyMA.d.ts +4 -0
- package/build/js/debounce-B1bV6NXR.d.ts +4 -0
- package/build/js/defaults/DefaultsBrush.d.ts +4 -6
- package/build/js/defaults/DefaultsBrush.js +1 -1
- package/build/js/defaults/DefaultsCamera.d.ts +13 -51
- package/build/js/defaults/DefaultsCamera.js +1 -1
- package/build/js/defaults/DefaultsCameraSettings.d.ts +9 -14
- package/build/js/defaults/DefaultsCameraSettings.js +1 -1
- package/build/js/defaults/DefaultsDataCaptureView.d.ts +15 -18
- package/build/js/defaults/DefaultsDataCaptureView.js +1 -1
- package/build/js/defaults/DefaultsDeserializers.d.ts +6 -7
- package/build/js/defaults/DefaultsDeserializers.js +1 -1
- package/build/js/defaults/DefaultsFeedback.d.ts +4 -4
- package/build/js/defaults/DefaultsFeedback.js +1 -1
- package/build/js/defaults/DefaultsSingleImageUploader.d.ts +13 -13
- package/build/js/defaults/DefaultsSingleImageUploader.js +1 -1
- package/build/js/defaults/DefaultsViewfinders.d.ts +36 -41
- package/build/js/defaults/DefaultsViewfinders.js +1 -1
- package/build/js/deferred-BAgaHYOv.d.ts +9 -0
- package/build/js/defineCustomElements-D-wGrRhB.d.ts +4 -0
- package/build/js/domIdFromValues-i9GfVUED.d.ts +18 -0
- package/build/js/fromEntries-ByUS4mw-.d.ts +14 -0
- package/build/js/{global.d.d.ts → global.d.ts} +8 -11
- package/build/js/html-D92h5xTe.d.ts +60 -0
- package/build/js/hybridDesktopPlatformHelpers-DPAJQLcX.js +1 -0
- package/build/js/index-CBqIEC2q.d.ts +1 -0
- package/build/js/index-Cpl5B5iN.d.ts +58 -0
- package/build/js/index-PiddVj70.d.ts +9769 -0
- package/build/js/index.d.ts +57 -78
- package/build/js/index.js +1 -1
- package/build/js/isObject-DqOU8mxL.d.ts +4 -0
- package/build/js/isWorkerScope-CBqhEpK_.d.ts +4 -0
- package/build/js/license/OpenSourceSoftwareLicenseInfo.d.ts +2 -8
- package/build/js/license/OpenSourceSoftwareLicenseInfo.js +1 -1
- package/build/js/logger-D9wplwND.d.ts +30 -0
- package/build/js/logger.d.ts +2 -30
- package/build/js/logger.js +1 -1
- package/build/js/moduleLoader.d.ts +2 -39
- package/build/js/multithreadSimdHelper-BrYdWJgw.js +1 -0
- package/build/js/nativeHandle-DlljYL22.d.ts +4 -0
- package/build/js/private/AdditionalLayerPosition.d.ts +2 -6
- package/build/js/private/AdditionalLayerPosition.js +1 -1
- package/build/js/private/AnchorPositions.d.ts +2 -42
- package/build/js/private/AnchorPositions.js +1 -1
- package/build/js/private/BatteryInterface.d.ts +2 -81
- package/build/js/private/BatteryInterface.js +1 -1
- package/build/js/private/CameraAccess.d.ts +2 -7
- package/build/js/private/CameraAccess.js +1 -1
- package/build/js/private/CameraManager.d.ts +2 -39
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CameraPool.d.ts +76 -114
- package/build/js/private/CameraPool.js +1 -1
- package/build/js/private/CanvasDrawer.d.ts +30 -31
- package/build/js/private/CanvasDrawer.js +1 -1
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +27 -66
- package/build/js/private/CanvasDrawerWithMetrics.js +1 -1
- package/build/js/private/CavansDrawerAbstract.d.ts +2 -37
- package/build/js/private/CavansDrawerAbstract.js +1 -1
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +13 -49
- package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
- package/build/js/private/CustomLocationsView.d.ts +2 -64
- package/build/js/private/CustomLocationsView.js +1 -1
- package/build/js/private/CustomLocationsViewStyles.d.ts +4 -4
- package/build/js/private/CustomLocationsViewStyles.js +17 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +7 -44
- package/build/js/private/DrawCommandBuffer.d.ts +2 -44
- package/build/js/private/DrawCommandBuffer.js +1 -1
- package/build/js/private/EventManager.d.ts +2 -9
- package/build/js/private/EventManager.js +1 -1
- package/build/js/private/FrameReaders/ColorType.d.ts +2 -7
- package/build/js/private/FrameReaders/ColorType.js +1 -1
- package/build/js/private/FrameReaders/FrameReader.d.ts +2 -54
- package/build/js/private/FrameReaders/FrameReader.js +1 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +2 -69
- package/build/js/private/FrameReaders/FrameReaderAbstract.js +1 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +2 -74
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/WatermarkStack.d.ts +2 -41
- package/build/js/private/FrameReaders/WatermarkStack.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +3 -43
- package/build/js/private/FrameReaders/index.js +1 -1
- package/build/js/private/FrameReaders/webglUtilities.d.ts +3 -3
- package/build/js/private/FrameReaders/webglUtilities.js +1 -1
- package/build/js/private/GestureRecognizer/GestureRecognizer.d.ts +65 -66
- package/build/js/private/GestureRecognizer/GestureRecognizer.js +1 -1
- package/build/js/private/GestureRecognizer/PointerEventsDetector.d.ts +11 -15
- package/build/js/private/GestureRecognizer/PointerEventsDetector.js +1 -1
- package/build/js/private/GestureRecognizer/index.d.ts +2 -5
- package/build/js/private/GestureRecognizer/index.js +1 -1
- package/build/js/private/Helper.d.ts +7 -7
- package/build/js/private/Helper.js +1 -1
- package/build/js/private/HtmlElementState.d.ts +2 -37
- package/build/js/private/HtmlElementState.js +1 -1
- package/build/js/private/ImageConverterBase.d.ts +40 -40
- package/build/js/private/ImageConverterBase.js +1 -1
- package/build/js/private/ImageConverterMainThread.d.ts +6 -7
- package/build/js/private/ImageConverterMainThread.js +1 -1
- package/build/js/private/ModuleLicenseTextProvider.d.ts +4 -4
- package/build/js/private/NormalizedModuleLoaderOptions.d.ts +10 -46
- package/build/js/private/OrientationObserver.d.ts +26 -26
- package/build/js/private/OrientationObserver.js +1 -1
- package/build/js/private/Serializable.d.ts +2 -9
- package/build/js/private/SingleImageUploaderView.d.ts +52 -89
- package/build/js/private/SingleImageUploaderView.js +1 -1
- package/build/js/private/SingleImageUploaderViewStyles.d.ts +23 -23
- package/build/js/private/SingleImageUploaderViewStyles.js +31 -1
- package/build/js/private/View.d.ts +2 -7
- package/build/js/private/ViewClassNames.d.ts +13 -13
- package/build/js/private/ViewClassNames.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +82 -121
- package/build/js/private/ViewControls_related.js +1 -0
- package/build/js/private/ViewStyles.d.ts +3 -3
- package/build/js/private/ViewStyles.js +1 -1
- package/build/js/private/ViewsRegistry.d.ts +4 -41
- package/build/js/private/ViewsRegistry.js +1 -1
- package/build/js/private/customHowler/AudioCache.d.ts +2 -37
- package/build/js/private/customHowler/AudioCache.js +1 -1
- package/build/js/private/customHowler/Howl.d.ts +141 -141
- package/build/js/private/customHowler/Howl.js +1 -1
- package/build/js/private/customHowler/HowlRegistry.d.ts +3 -3
- package/build/js/private/customHowler/HowlRegistry.js +1 -1
- package/build/js/private/customHowler/Html5Sound.d.ts +45 -45
- package/build/js/private/customHowler/Html5Sound.js +1 -1
- package/build/js/private/customHowler/UnlockManager.d.ts +32 -32
- package/build/js/private/customHowler/UnlockManager.js +1 -1
- package/build/js/private/customHowler/WebAudioContextManager.d.ts +127 -127
- package/build/js/private/customHowler/WebAudioContextManager.js +1 -1
- package/build/js/private/customHowler/debug.d.ts +3 -3
- package/build/js/private/customHowler/debug.js +1 -1
- package/build/js/private/customHowler/index.d.ts +2 -2
- package/build/js/private/customHowler/index.js +1 -1
- package/build/js/private/customHowler/setup.d.ts +4 -5
- package/build/js/private/customHowler/setup.js +1 -1
- package/build/js/private/djinni-types/index.d.ts +2 -57
- package/build/js/private/djinni-types/index.js +1 -1
- package/build/js/private/hybridDesktopPlatformHelpers.d.ts +5 -5
- package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
- package/build/js/private/multithreadSimdHelper.d.ts +3 -3
- package/build/js/private/multithreadSimdHelper.js +1 -1
- package/build/js/private/nativeHandle.d.ts +2 -4
- package/build/js/private/nativeHandle.js +1 -1
- package/build/js/private/privateAccess.d.ts +2 -8
- package/build/js/private/privateAccess.js +1 -1
- package/build/js/private/ui/atoms/AimerSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ArrowsUp.d.ts +13 -13
- package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
- package/build/js/private/ui/atoms/Backdrop.d.ts +29 -23
- package/build/js/private/ui/atoms/Backdrop.js +1 -1
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Card.d.ts +21 -22
- package/build/js/private/ui/atoms/Card.js +1 -1
- package/build/js/private/ui/atoms/CardList.d.ts +49 -51
- package/build/js/private/ui/atoms/CardList.js +1 -1
- package/build/js/private/ui/atoms/CheckSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronDownSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ChevronLeftSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ChevronRightSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ChevronUpSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/CrossSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/DeleteSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/DeleteSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Dot5xSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/GlassSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/KeyboardSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/LowStockSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/OnexSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PauseSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/PauseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PrinterSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ProgressBar.d.ts +22 -22
- package/build/js/private/ui/atoms/ProgressBar.js +1 -1
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RestartSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCrossSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ScanSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ScanSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ShutterButton.d.ts +34 -34
- package/build/js/private/ui/atoms/ShutterButton.js +1 -1
- package/build/js/private/ui/atoms/SlashSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/SlashSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarFilledSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/StarOutlinedSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/SvgIcon.d.ts +2 -23
- package/build/js/private/ui/atoms/SvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ToPickSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Toast.d.ts +41 -76
- package/build/js/private/ui/atoms/Toast.js +1 -1
- package/build/js/private/ui/atoms/TorchOffSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/TorchOffSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/TorchOnSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/TorchOnSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/TwoxSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/WrongItemSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
- package/build/js/private/ui/colors.d.ts +4 -5
- package/build/js/private/ui/colors.js +1 -1
- package/build/js/private/ui/molecules/ButtonEvents.d.ts +18 -18
- package/build/js/private/ui/molecules/ButtonEvents.js +1 -1
- package/build/js/private/ui/molecules/CameraFOVSwitchButton.d.ts +54 -57
- package/build/js/private/ui/molecules/CameraFOVSwitchButton.js +1 -1
- package/build/js/private/ui/molecules/CameraSwitchButton.d.ts +47 -50
- package/build/js/private/ui/molecules/CameraSwitchButton.js +1 -1
- package/build/js/private/ui/molecules/ControlsLayout.d.ts +12 -12
- package/build/js/private/ui/molecules/ControlsLayout.js +1 -1
- package/build/js/private/ui/molecules/HintPresenter.d.ts +2 -39
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.d.ts +20 -20
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/ui/molecules/TorchSwitchIconButton.d.ts +54 -60
- package/build/js/private/ui/molecules/TorchSwitchIconButton.js +1 -1
- package/build/js/private/ui/molecules/ZoomSwitchPill.d.ts +62 -65
- package/build/js/private/ui/molecules/ZoomSwitchPill.js +1 -1
- package/build/js/private/unsupportedBrowserError.d.ts +7 -7
- package/build/js/private/unsupportedBrowserError.js +1 -1
- package/build/js/private/utils/AnimationSimplePolyfill.d.ts +54 -54
- package/build/js/private/utils/AnimationSimplePolyfill.js +1 -1
- package/build/js/private/utils/AsyncStateMachine.d.ts +2 -49
- package/build/js/private/utils/AsyncStateMachine.js +1 -1
- package/build/js/private/utils/ScanditHTMLElement.d.ts +2 -6
- package/build/js/private/utils/ScanditHTMLElement.js +1 -1
- package/build/js/private/utils/areEqualArrays.d.ts +2 -4
- package/build/js/private/utils/areEqualArrays.js +1 -1
- package/build/js/private/utils/clamp.d.ts +2 -4
- package/build/js/private/utils/clamp.js +1 -1
- package/build/js/private/utils/cookieStore.d.ts +3 -3
- package/build/js/private/utils/cookieStore.js +1 -1
- package/build/js/private/utils/cookieStorePolyfill.d.ts +16 -16
- package/build/js/private/utils/cookieStorePolyfill.js +1 -1
- package/build/js/private/utils/css.d.ts +2 -4
- package/build/js/private/utils/css.js +1 -1
- package/build/js/private/utils/debounce.d.ts +2 -4
- package/build/js/private/utils/debounce.js +1 -1
- package/build/js/private/utils/deferred.d.ts +2 -9
- package/build/js/private/utils/deferred.js +1 -1
- package/build/js/private/utils/defineCustomElements.d.ts +2 -4
- package/build/js/private/utils/defineCustomElements.js +1 -1
- package/build/js/private/utils/domIdFromValues.d.ts +2 -18
- package/build/js/private/utils/domIdFromValues.js +1 -1
- package/build/js/private/utils/finalizationRegistryPolyfill.d.ts +3 -3
- package/build/js/private/utils/finalizationRegistryPolyfill.js +1 -1
- package/build/js/private/utils/fromEntries.d.ts +2 -14
- package/build/js/private/utils/fromEntries.js +1 -1
- package/build/js/private/utils/fromGrayScaleToRgba.d.ts +3 -3
- package/build/js/private/utils/fromGrayScaleToRgba.js +1 -1
- package/build/js/private/utils/getTimestamp.d.ts +3 -3
- package/build/js/private/utils/getTimestamp.js +1 -1
- package/build/js/private/utils/globalThisPolyfill.d.ts +3 -3
- package/build/js/private/utils/globalThisPolyfill.js +1 -1
- package/build/js/private/utils/html.d.ts +2 -60
- package/build/js/private/utils/html.js +1 -1
- package/build/js/private/utils/index.d.ts +21 -21
- package/build/js/private/utils/index.js +1 -1
- package/build/js/private/utils/isObject.d.ts +2 -4
- package/build/js/private/utils/isObject.js +1 -1
- package/build/js/private/utils/isPointerTouchEvent.d.ts +3 -3
- package/build/js/private/utils/isPointerTouchEvent.js +1 -1
- package/build/js/private/utils/isWorkerScope.d.ts +2 -4
- package/build/js/private/utils/isWorkerScope.js +1 -1
- package/build/js/private/utils/polyfillLoader.d.ts +11 -11
- package/build/js/private/utils/polyfillLoader.js +1 -1
- package/build/js/private/utils/quadrilateralUtils.d.ts +4 -6
- package/build/js/private/utils/quadrilateralUtils.js +1 -1
- package/build/js/private/utils/replaceImagesInViewUtils.d.ts +7 -43
- package/build/js/private/utils/replaceImagesInViewUtils.js +1 -1
- package/build/js/private/utils/safeCancelAnimation.d.ts +2 -53
- package/build/js/private/utils/safeCancelAnimation.js +1 -1
- package/build/js/private/utils/safeRequestAnimationFrame.d.ts +2 -23
- package/build/js/private/utils/safeRequestAnimationFrame.js +1 -1
- package/build/js/private/utils/safeStorage.d.ts +17 -17
- package/build/js/private/utils/safeStorage.js +1 -1
- package/build/js/private/utils/structuredClonePolyfill.d.ts +3 -3
- package/build/js/private/utils/structuredClonePolyfill.js +1 -1
- package/build/js/private/utils/throttle.d.ts +2 -4
- package/build/js/private/utils/throttle.js +1 -1
- package/build/js/private/utils/timeout.d.ts +2 -14
- package/build/js/private/utils/timeout.js +1 -1
- package/build/js/private/utils/unknownErrorToString.d.ts +2 -4
- package/build/js/private/utils/unknownErrorToString.js +1 -1
- package/build/js/private/utils/wait.d.ts +2 -4
- package/build/js/private/utils/wait.js +1 -1
- package/build/js/private/utils/waitTransitionEndForElement.d.ts +2 -4
- package/build/js/private/utils/waitTransitionEndForElement.js +1 -1
- package/build/js/private/utils/warnMultithreadingUnavailable.d.ts +3 -3
- package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -2
- package/build/js/privateAccess-Cy_yPta4.d.ts +8 -0
- package/build/js/safeCancelAnimation-C9SG0625.d.ts +53 -0
- package/build/js/safeRequestAnimationFrame-CrVl8FPa.d.ts +23 -0
- package/build/js/throttle-ICpoGeaZ.d.ts +4 -0
- package/build/js/timeout-CHMzurwd.d.ts +14 -0
- package/build/js/translations-Bqx7KLdt.d.ts +12 -0
- package/build/js/translations.d.ts +2 -12
- package/build/js/translations.js +1 -1
- package/build/js/tsHelper-N1CSjsuN.d.ts +18 -0
- package/build/js/tsHelper.d.ts +2 -26
- package/build/js/tsHelper.js +1 -1
- package/build/js/unknownErrorToString-BGDQCTvQ.d.ts +4 -0
- package/build/js/wait-CRu1G76q.d.ts +4 -0
- package/build/js/waitTransitionEndForElement-BrVosj17.d.ts +4 -0
- package/build/js/worker/ImageConverterForwarder.d.ts +21 -57
- package/build/js/worker/ImageConverterForwarder.js +1 -1
- package/build/js/worker/ImageConverterWorker.d.ts +6 -7
- package/build/js/worker/ImageConverterWorker.js +1 -1
- package/build/js/worker/OverrideState.d.ts +2 -8
- package/build/js/worker/OverrideState.js +1 -1
- package/build/js/worker/ViewInfoHelper.d.ts +9 -46
- package/build/js/worker/ViewInfoHelper.js +1 -1
- package/build/js/worker/WorkerMain.d.ts +2 -63
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +2 -39
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +2 -39
- package/build/js/worker/dataCaptureLoader.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +2 -39
- package/build/js/worker/dataCaptureWorkerRelated.js +1 -1
- package/build/js/worker/helper.d.ts +22 -13
- package/build/js/worker/helper.js +1 -1
- package/build/js/worker/helperFetch.d.ts +36 -22
- package/build/js/worker/helperFetch.js +1 -1
- package/build/js/worker/helperFs.d.ts +5 -5
- package/build/js/worker/helperFs.js +1 -1
- package/build/js/worker/importWasmScript.d.ts +3 -3
- package/build/js/worker/importWasmScript.js +1 -1
- package/build/js/worker/index.d.ts +2 -40
- package/build/js/worker/index.js +1 -1
- package/package.json +21 -11
- package/build/electron/chunk-6RVAZ75N.js +0 -1
- package/build/electron/common.cjs +0 -1
- package/build/electron/common.js +0 -0
- package/build/electron/constants.cjs +0 -1
- package/build/electron/constants.js +0 -1
- package/build/js/Camera-HgH6fwnW.d.ts +0 -410
- package/build/js/DataCaptureContext-Qg40v7QA.d.ts +0 -1740
- package/build/js/DataCaptureViewPlusRelated-BOrDBPHq.d.ts +0 -49
- package/build/js/chunks/chunk-24MGHMOY.js +0 -1
- package/build/js/chunks/chunk-2HTI5D6Y.js +0 -1
- package/build/js/chunks/chunk-2JIATMSD.js +0 -1
- package/build/js/chunks/chunk-2LSO6JEZ.js +0 -1
- package/build/js/chunks/chunk-3A4KLILV.js +0 -1
- package/build/js/chunks/chunk-3A7LM5JG.js +0 -1
- package/build/js/chunks/chunk-3KKUZY2T.js +0 -1
- package/build/js/chunks/chunk-3MKSI2DV.js +0 -1
- package/build/js/chunks/chunk-43GCMDYV.js +0 -1
- package/build/js/chunks/chunk-4BP7D26M.js +0 -1
- package/build/js/chunks/chunk-4F2Q2P2O.js +0 -1
- package/build/js/chunks/chunk-4KLHTKGW.js +0 -1
- package/build/js/chunks/chunk-4LGQ66HW.js +0 -1
- package/build/js/chunks/chunk-4QJAB4PO.js +0 -1
- package/build/js/chunks/chunk-4W2T3TLN.js +0 -1
- package/build/js/chunks/chunk-4WA2PCJE.js +0 -1
- package/build/js/chunks/chunk-4ZMCJXZS.js +0 -1
- package/build/js/chunks/chunk-5LXHD7FZ.js +0 -1
- package/build/js/chunks/chunk-5RCWM6NI.js +0 -1
- package/build/js/chunks/chunk-6AZW5IIG.js +0 -1
- package/build/js/chunks/chunk-6EEMWSEO.js +0 -1
- package/build/js/chunks/chunk-6H6FKGVE.js +0 -1
- package/build/js/chunks/chunk-6V2N4XHI.js +0 -1
- package/build/js/chunks/chunk-6W7FX6LD.js +0 -1
- package/build/js/chunks/chunk-76IGNICM.js +0 -1
- package/build/js/chunks/chunk-7HYFN4JO.js +0 -1
- package/build/js/chunks/chunk-7LTHFX4E.js +0 -1
- package/build/js/chunks/chunk-7OFC24NE.js +0 -1
- package/build/js/chunks/chunk-7SA74NKD.js +0 -0
- package/build/js/chunks/chunk-7SW2PEHB.js +0 -1
- package/build/js/chunks/chunk-AAEQZ45T.js +0 -1
- package/build/js/chunks/chunk-AAPD5YU3.js +0 -1
- package/build/js/chunks/chunk-ACFJP5SR.js +0 -1
- package/build/js/chunks/chunk-AE2LWVIB.js +0 -1
- package/build/js/chunks/chunk-AIC4H5KG.js +0 -2
- package/build/js/chunks/chunk-AIRWHLJH.js +0 -1
- package/build/js/chunks/chunk-ALQOQOAM.js +0 -1
- package/build/js/chunks/chunk-AZWFNBVA.js +0 -1
- package/build/js/chunks/chunk-BA3RP6L2.js +0 -1
- package/build/js/chunks/chunk-BDGRWHLY.js +0 -1
- package/build/js/chunks/chunk-BDLLVGRH.js +0 -1
- package/build/js/chunks/chunk-BZAQMYII.js +0 -1
- package/build/js/chunks/chunk-CAHJ3YOV.js +0 -1
- package/build/js/chunks/chunk-CAUB35PV.js +0 -1
- package/build/js/chunks/chunk-CD2BU66N.js +0 -1
- package/build/js/chunks/chunk-CERFU73N.js +0 -1
- package/build/js/chunks/chunk-CGK5V6XZ.js +0 -1
- package/build/js/chunks/chunk-CRUOVJHW.js +0 -1
- package/build/js/chunks/chunk-CX2R2XQK.js +0 -1
- package/build/js/chunks/chunk-CZI3JAVS.js +0 -35
- package/build/js/chunks/chunk-D222MT4V.js +0 -1
- package/build/js/chunks/chunk-DGDPZ73X.js +0 -1
- package/build/js/chunks/chunk-DGIQ3GF7.js +0 -1
- package/build/js/chunks/chunk-DN32UPQC.js +0 -1
- package/build/js/chunks/chunk-DZE2EYSZ.js +0 -1
- package/build/js/chunks/chunk-E4XJ4GKD.js +0 -1
- package/build/js/chunks/chunk-EMLXDXWN.js +0 -1
- package/build/js/chunks/chunk-ENYHCJGH.js +0 -1
- package/build/js/chunks/chunk-EP3GI7KA.js +0 -1
- package/build/js/chunks/chunk-EQ6V4W5K.js +0 -1
- package/build/js/chunks/chunk-EQRBQJYM.js +0 -1
- package/build/js/chunks/chunk-EV4OEANA.js +0 -1
- package/build/js/chunks/chunk-F2GMW4LP.js +0 -1
- package/build/js/chunks/chunk-FGO2SSRS.js +0 -1
- package/build/js/chunks/chunk-FHUC75ND.js +0 -1
- package/build/js/chunks/chunk-FR24G4R7.js +0 -1
- package/build/js/chunks/chunk-FTD535WI.js +0 -1
- package/build/js/chunks/chunk-G2BRTVN7.js +0 -1
- package/build/js/chunks/chunk-G7ORIX4S.js +0 -1
- package/build/js/chunks/chunk-GHR3BSUQ.js +0 -1
- package/build/js/chunks/chunk-GHTCNOQN.js +0 -1
- package/build/js/chunks/chunk-GPJEB376.js +0 -1
- package/build/js/chunks/chunk-GPPCTFZF.js +0 -1
- package/build/js/chunks/chunk-GPUTPXQM.js +0 -1
- package/build/js/chunks/chunk-GQ7A6533.js +0 -1
- package/build/js/chunks/chunk-GULNUBED.js +0 -1
- package/build/js/chunks/chunk-GVHXM75D.js +0 -1
- package/build/js/chunks/chunk-HBPGHXF2.js +0 -1
- package/build/js/chunks/chunk-I6SWF3FQ.js +0 -1
- package/build/js/chunks/chunk-IASACVTH.js +0 -1
- package/build/js/chunks/chunk-IJQG3OU6.js +0 -1
- package/build/js/chunks/chunk-IMXMNDKM.js +0 -1
- package/build/js/chunks/chunk-J3HHOJE3.js +0 -1
- package/build/js/chunks/chunk-JCKM5IJO.js +0 -0
- package/build/js/chunks/chunk-JFRSUCMO.js +0 -31
- package/build/js/chunks/chunk-JIGCOX5J.js +0 -1
- package/build/js/chunks/chunk-JS3T7K2Z.js +0 -1
- package/build/js/chunks/chunk-KAFNKP6O.js +0 -1
- package/build/js/chunks/chunk-KSCFPJAW.js +0 -1
- package/build/js/chunks/chunk-KXAJHLEO.js +0 -1
- package/build/js/chunks/chunk-KYNYQBNF.js +0 -17
- package/build/js/chunks/chunk-KZEBJGMU.js +0 -6
- package/build/js/chunks/chunk-L2STPTEN.js +0 -1
- package/build/js/chunks/chunk-L66S4DN2.js +0 -1
- package/build/js/chunks/chunk-LA6TM76R.js +0 -1
- package/build/js/chunks/chunk-LFJUGRQV.js +0 -1
- package/build/js/chunks/chunk-LSZZVJ6B.js +0 -1
- package/build/js/chunks/chunk-LV6LGCDC.js +0 -1
- package/build/js/chunks/chunk-LXOZUOZU.js +0 -1
- package/build/js/chunks/chunk-MA3GV76P.js +0 -1
- package/build/js/chunks/chunk-MA6UDVDJ.js +0 -1
- package/build/js/chunks/chunk-MBQZOWWF.js +0 -1
- package/build/js/chunks/chunk-N5YZEC56.js +0 -1
- package/build/js/chunks/chunk-NIKRAADM.js +0 -1
- package/build/js/chunks/chunk-NQF3GUK2.js +0 -1
- package/build/js/chunks/chunk-NVK73TNL.js +0 -1
- package/build/js/chunks/chunk-NYYGU4ZV.js +0 -1
- package/build/js/chunks/chunk-O4HDBWKK.js +0 -1
- package/build/js/chunks/chunk-O7EM4VIM.js +0 -1
- package/build/js/chunks/chunk-O7TZTIHO.js +0 -1
- package/build/js/chunks/chunk-OLUNDJBC.js +0 -1
- package/build/js/chunks/chunk-ORP45GHJ.js +0 -1
- package/build/js/chunks/chunk-OX64CCOP.js +0 -1
- package/build/js/chunks/chunk-Q7JWDX4U.js +0 -1
- package/build/js/chunks/chunk-QBDQQMQ5.js +0 -1
- package/build/js/chunks/chunk-QCRFVRSS.js +0 -1
- package/build/js/chunks/chunk-QCZSSQAQ.js +0 -1
- package/build/js/chunks/chunk-QFSNPY5Y.js +0 -1
- package/build/js/chunks/chunk-QG3MRQMP.js +0 -1
- package/build/js/chunks/chunk-QHBIT2WY.js +0 -1
- package/build/js/chunks/chunk-QIWPWOQG.js +0 -1
- package/build/js/chunks/chunk-QOCHMKNY.js +0 -1
- package/build/js/chunks/chunk-QQEY536Q.js +0 -1
- package/build/js/chunks/chunk-QUWP3ILW.js +0 -1
- package/build/js/chunks/chunk-R6E4CT22.js +0 -1
- package/build/js/chunks/chunk-R6SUMD5F.js +0 -1
- package/build/js/chunks/chunk-RG272MAJ.js +0 -1
- package/build/js/chunks/chunk-RSQRPDVQ.js +0 -1
- package/build/js/chunks/chunk-RXDVYEE5.js +0 -1
- package/build/js/chunks/chunk-RXPPTQAB.js +0 -1
- package/build/js/chunks/chunk-RXT3JWWR.js +0 -1
- package/build/js/chunks/chunk-RZTXUIJ5.js +0 -0
- package/build/js/chunks/chunk-SBC5K7IT.js +0 -1
- package/build/js/chunks/chunk-SEAVQZN6.js +0 -1
- package/build/js/chunks/chunk-SGL5J2CI.js +0 -1
- package/build/js/chunks/chunk-SHM7SU3B.js +0 -1
- package/build/js/chunks/chunk-SJIN27Q5.js +0 -1
- package/build/js/chunks/chunk-SK6L34IF.js +0 -1
- package/build/js/chunks/chunk-SNP4G4KV.js +0 -0
- package/build/js/chunks/chunk-T3AOBMAS.js +0 -1
- package/build/js/chunks/chunk-TKO5JMMS.js +0 -1
- package/build/js/chunks/chunk-TMIZ6Z75.js +0 -1
- package/build/js/chunks/chunk-TPHGDMKG.js +0 -1
- package/build/js/chunks/chunk-TR3NGINC.js +0 -1
- package/build/js/chunks/chunk-TTGJAMI2.js +0 -1
- package/build/js/chunks/chunk-U2WQ3WDE.js +0 -1
- package/build/js/chunks/chunk-U4IMOTYL.js +0 -1
- package/build/js/chunks/chunk-U6MFAGMG.js +0 -1
- package/build/js/chunks/chunk-U7ETOWGJ.js +0 -1
- package/build/js/chunks/chunk-UNO6YIIA.js +0 -1
- package/build/js/chunks/chunk-UWBNF47P.js +0 -1
- package/build/js/chunks/chunk-UWLAKRB2.js +0 -2
- package/build/js/chunks/chunk-UZWBB65W.js +0 -1
- package/build/js/chunks/chunk-V2OKMBZD.js +0 -1
- package/build/js/chunks/chunk-VJB527QZ.js +0 -1
- package/build/js/chunks/chunk-VSROWPI6.js +0 -1
- package/build/js/chunks/chunk-W33RVR5M.js +0 -1
- package/build/js/chunks/chunk-W3X3ZRQZ.js +0 -1
- package/build/js/chunks/chunk-W7VB532D.js +0 -1
- package/build/js/chunks/chunk-WARGMW7Z.js +0 -1
- package/build/js/chunks/chunk-WFKB322J.js +0 -1
- package/build/js/chunks/chunk-WGLHZXRT.js +0 -1
- package/build/js/chunks/chunk-WUHKODFA.js +0 -1
- package/build/js/chunks/chunk-XFQTFQYR.js +0 -1
- package/build/js/chunks/chunk-XR65N6EG.js +0 -1
- package/build/js/chunks/chunk-Y3TODCJD.js +0 -1
- package/build/js/chunks/chunk-Y7BTRVB4.js +0 -2
- package/build/js/chunks/chunk-Y7V35LNT.js +0 -1
- package/build/js/chunks/chunk-Y7ZNLVR2.js +0 -1
- package/build/js/chunks/chunk-YE2GYNRP.js +0 -1
- package/build/js/chunks/chunk-YJNJGCAN.js +0 -1
- package/build/js/chunks/chunk-YONR3EGV.js +0 -2
- package/build/js/chunks/chunk-YOTQPBO6.js +0 -1
- package/build/js/chunks/chunk-YRNH7TIR.js +0 -0
- package/build/js/chunks/chunk-YUZDO2PC.js +0 -1
- package/build/js/chunks/chunk-Z5LRFYGI.js +0 -1
- package/build/js/chunks/chunk-ZAXZRQYF.js +0 -1
- package/build/js/chunks/chunk-ZCF62ALL.js +0 -1
- package/build/js/chunks/chunk-ZKROZLQ4.js +0 -2
- package/build/js/common-4FJYEFaM.d.ts +0 -25
- package/build/js/global.d.js +0 -0
- package/build/js/private/ViewControls+related.js +0 -1
- package/build/js/worker/coreCapture.inlineWorker.d.ts +0 -46
- package/build/js/worker/coreCapture.inlineWorker.js +0 -1
- package/build/js/worker/inlineWorker.d.d.ts +0 -5
- package/build/js/worker/inlineWorker.d.js +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{t as e}from"./browserHelper-BQPnAZ2Y.js";import{Logger as t}from"./logger.js";import{n,r}from"./multithreadSimdHelper-BrYdWJgw.js";import{isCameraFrameSource as i}from"./CameraRelated.js";import{DataCaptureError as a}from"./DataCaptureError.js";import{UnsupportedBrowserError as o}from"./private/unsupportedBrowserError.js";import"./private/FrameReaders/ColorType.js";import{a as s,t as c}from"./CameraManager-DskA2C7T.js";import{INTERNAL_ACCESS as l}from"./private/privateAccess.js";import{ContextStatus as u}from"./DataCaptureContextRelated.js";import{DataCaptureContextSettings as d}from"./DataCaptureContextSettings.js";import{Localization as f}from"./Localization.js";import{OpenSourceSoftwareLicenseInfo as p}from"./license/OpenSourceSoftwareLicenseInfo.js";import{WebBatteryInterface as m}from"./private/BatteryInterface.js";import{normalizeLibraryLocation as h}from"./private/Helper.js";import{disposeGlobalAudioContext as g,ensureUnlockSetup as _}from"./private/customHowler/index.js";import{loadPolyfills as v}from"./private/utils/polyfillLoader.js";import{translations as y}from"./translations.js";import"./worker/OverrideState.js";import b from"./LoadingStatus.js";import x from"./private/ViewsRegistry.js";import{n as S,r as C,t as w}from"./hybridDesktopPlatformHelpers-DPAJQLcX.js";import{ImageConverterMainThread as T}from"./private/ImageConverterMainThread.js";import{nativeHandle as E}from"./private/nativeHandle.js";import{AsyncStateMachine as D}from"./private/utils/AsyncStateMachine.js";import{isObject as O}from"./private/utils/isObject.js";import{ensureGlobalThisPolyfill as k}from"./private/utils/globalThisPolyfill.js";var A=class{constructor(e=I,n=t,r=globalThis.fetch.bind(globalThis)){this.staticContext=I,this.staticContext=e,this.logger=n,this.fetch=r}get workerCommand(){var e;return(e=this.staticContext.mainDataCaptureLoader)==null?void 0:e.workerCommand.bind(this.staticContext.mainDataCaptureLoader)}async getLicenseText(){var e;let t=this.staticContext.stateMachine.currentState;if(t===`unconfigured`||t===`configuring`)return this.logger.warn(`You must call "DataCaptureContext.forLicenseKey" before retrieving open source license text info.`),``;let n=new URL(`${(this.staticContext.libraryLocation??``).replace(/\/$/,``)}/license/web-core-license.txt`),[r,i]=await Promise.all([(e=this.workerCommand)==null?void 0:e.call(this,`getOpenSourceSoftwareLicenseInfo`,{}),this.fetchWebLicenseText(n.toString())]);return[r==null?void 0:r.licenseText,i].filter(e=>e!=null).join(`
|
|
2
|
+
`)}async fetchWebLicenseText(e){return this.fetch(e,{mode:`cors`,credentials:`include`,headers:{"Content-Type":`text/plain`}}).then(async e=>{if(!e.ok)throw Error(`${e.status} ${e.statusText}`);return e.text()}).catch(t=>(this.logger.warn(`Failed to fetch license from ${e}: ${t.toString()}`),null))}};function j(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}const M=[{from:`unconfigured`,to:`configuring`},{from:`configuring`,to:`configured`},{from:`configuring`,to:`unconfigured`},{from:`configured`,to:`creating-context`},{from:`creating-context`,to:`ready`},{from:`creating-context`,to:`unconfigured`},{from:`ready`,to:`unconfigured`},{from:`configured`,to:`unconfigured`}];function N(e,t,n){let r=n.value;return n.value=function(...e){let n=I.stateMachine;return n.currentState===`ready`&&I.mainDataCaptureLoader!=null?r.apply(this,e):n.isInitializing||n.currentState===`configured`?n.waitForState(`ready`).then(()=>r.apply(this,e)):Promise.reject(Error(`Please call DataCaptureContext.forLicenseKey() before calling ${String(t)}`))},n}function P(e){return e[E]!=null}function F(e){return`skipSerialization`in e||e[E]!=null}var I=class D{constructor(){this._asyncImageConverterInstance=void 0,this.framework=`web`,this.runtimeEnvironment={deviceOS:e.getUserAgentInfo().getOS().name??``,browser:e.getUserAgentInfo().getBrowser().name??``,browserVersion:e.getUserAgentInfo().getBrowser().version??``,get deviceModelName(){let{model:t,vendor:n}=e.getUserAgentInfo().getDevice();return(n==null||n===``)&&(n=`Unknown`),(t==null||t===``)&&(t=`Unknown`),[n,t].join(` `)}},this.settings=new d,this._frameSource=null,this._view=null,this.modes=new Set,this.components=[],this.listeners=[],this.updateListeners=new Set,this.cameraPropertiesReportListener=this.reportCameraProperties.bind(this),this.cameraAccessErrorListener=this.onCameraAccessError.bind(this),this.onWorkerMessageListener=this.onWorkerMessage.bind(this),this.onVisibilityChangeListener=this.onVisibilityChange.bind(this),this.batteryChangeListener=this.onBatteryChange.bind(this),this.pendingWorkerMessageListeners=new Set,this.delayedRegistration=!1,this.highEndBlurryRecognition=!1,this._frameHandlers=[],this._useSynchronousFrameFlow=!1,this[l]={hasModes:this.hasModes.bind(this)}}static get moduleLicenseTextProviders(){return[new A]}static get sharedInstance(){return D._sharedInstance??=new D,D._sharedInstance}static get currentState(){return D.stateMachine.currentState}static get isReady(){return D.stateMachine.currentState===`ready`}static get isInitializing(){return D.stateMachine.isInitializing}static addStateListener(e){D.stateMachine.addListener(e)}static removeStateListener(e){D.stateMachine.removeListener(e)}async initializeWithOptions(t){var n,r;D.deviceID===``&&(D.deviceID=await e.getDeviceId()),this.licenseKey=t.licenseKey??D.userLicenseKey??``,this.deviceName=t.deviceName??``,this.dataCaptureInstance=t.dataCaptureInstance??D.mainDataCaptureLoader,this.delayedRegistration=t.delayedRegistration??!1,t.settings!=null&&(this.settings=t.settings),this.highEndBlurryRecognition=((n=t.dataCaptureInstance)==null?void 0:n.highEndBlurryRecognition)??((r=D.mainDataCaptureLoader)==null?void 0:r.highEndBlurryRecognition)??!1;for(let e of this.pendingWorkerMessageListeners)this.dataCaptureInstance.addWorkerListener(e);this.pendingWorkerMessageListeners.clear(),this.settings!=null&&await this.applySettings(this.settings),await this.createContext()}get frameSource(){return this._frameSource}get workerCommand(){if(this.dataCaptureInstance==null)throw Error(`Cannot call workerCommand before dataCaptureInstance is set`);return this.dataCaptureInstance.workerCommand.bind(this.dataCaptureInstance)}static async forLicenseKey(e,n){return t.debug(`forLicenseKey called, current state: ${D.stateMachine.currentState}`),D.stateMachine.currentState===`ready`?(t.debug(`DataCaptureContext is already ready, returning existing instance`),D.sharedInstance):D.stateMachine.isInitializing?(t.debug(`DataCaptureContext is already initializing, waiting for completion`),await D.stateMachine.waitForState(`ready`),D.sharedInstance):D.stateMachine.currentState===`unconfigured`?(t.debug(`Starting initialization from unconfigured state`),await D.stateMachine.executeAsyncTransition({targetState:`configuring`,action:async()=>{await D.internalConfigure(e,n)},onSuccess:`configured`,onError:`unconfigured`}),await D.stateMachine.executeAsyncTransition({targetState:`creating-context`,action:async()=>{await D.sharedInstance.initializeWithOptions({licenseKey:e,deviceName:n.deviceName,settings:n.settings})},onSuccess:`ready`,onError:`unconfigured`}),D.sharedInstance):D.sharedInstance}static async internalConfigure(i,a){k(),_(),f.getInstance().updateIfMissing(y);let{forceAllPolyfills:s,overrideThreadsSupport:c,overrideSimdSupport:l}=D.getOverridesFromQueryString(),[u,d,p]=await Promise.all([v({forceAllPolyfills:s}),r(),n()]);c!==`auto`&&(t.warn(`Threads support override: was ${p} is now ${c===`on`}`),p=c===`on`),l!==`auto`&&(t.warn(`SIMD support override: was ${d} is now ${l===`on`}`),d=l===`on`),D.capabilityInfo={simdSupport:d,threadsSupport:p},t.debug(`Capability info detected - SIMD: ${d}, Threads: ${p}`),await D.validateOptions({...a,licenseKey:i});let m={licenseKey:i,libraryLocation:h(a.libraryLocation),moduleLoaders:a.moduleLoaders,logLevel:a.logLevel??t.Level.Debug,verifyResponseHash:!0,loadProgressNotifier:b.notify.bind(b),simdSupport:d,threadsSupport:p};t.setLevel(m.logLevel),D.userLicenseKey=m.licenseKey,D.libraryLocation=m.libraryLocation,b.subscribe(D.updateViewsWithProgress);let g=e.checkBrowserCompatibility();if(!g.fullSupport&&!g.scannerSupport)throw new o(g);e.isSupportedIOSVersion()||t.warn(`Warning: Minimum supported iOS version is 14.6.
|
|
3
|
+
Please check the minimum system requirements here:
|
|
4
|
+
https://docs.scandit.com/system-requirements#browser-compatibility`),D.dataCaptureLoaders=await D.loadModules(m.moduleLoaders,m);let x=m.moduleLoaders[0].moduleName;D.mainDataCaptureLoader=D.dataCaptureLoaders.get(x),b.unsubscribe(D.updateViewsWithProgress)}static async forLicenseKeyInElectronPath(e,t){if(!C())throw new a({name:`MisconfigurationError`,message:`forLicenseKeyInElectronPath can only be used in Electron applications`});let n=await S({licenseDataPath:e});if(n==null)throw new a({name:`NoLicenseKeyError`,message:`Cannot retrieve license key for Electron app at ${e}`});return D.forLicenseKey(n.licenseKey,{...t})}static updateViewsWithProgress({percentage:e}){for(let t of x.values())t.setProgressBarPercentage(e)}static getOverridesFromQueryString(){var e,t,n;function r(e){return[`auto`,`off`,`on`].includes(e)}let i=new URLSearchParams(window.location.search),[a=`auto`,o=`auto`,s=!1]=[(e=i.get(`pthreads`))==null?void 0:e.toLowerCase(),(t=i.get(`simd`))==null?void 0:t.toLowerCase(),((n=i.get(`forceAllPolyfills`))==null?void 0:n.toLowerCase())===`true`];return{overrideThreadsSupport:r(a)?a:`auto`,overrideSimdSupport:r(o)?o:`auto`,forceAllPolyfills:s}}static async validateOptions(e){if(e.licenseKey==null||e.licenseKey.trim().length<64)throw new a({name:`NoLicenseKeyError`,message:`No license key provided`});if(typeof e.libraryLocation!=`string`)throw new a({name:`MisconfigurationError`,message:`Option "libraryLocation" was not provided`});if(!Array.isArray(e.moduleLoaders)||e.moduleLoaders.length===0)throw new a({name:`MisconfigurationError`,message:`Option "moduleLoaders" is missing or empty`});let t=e.moduleLoaders.map(e=>e.moduleName);if(![`BarcodeCapture`,`IdCapture`,`LabelCapture`].includes(t[0]))throw new a({name:`MisconfigurationError`,message:`Main modules must be loaded before side modules. For example "BarcodeCapture" must be loaded before "Parser".`})}static async loadModules(e,t){let n=new Map,r=new Map;for(let n of e)r.set(n.moduleName,n.load(t));await Promise.all(r.values());for(let[e,t]of r)n.set(e,await t);return n}static async getOpenSourceSoftwareLicenseInfo(){let e=[];for(let t of D.moduleLicenseTextProviders){let n=await t.getLicenseText();e.push(n)}return new p(e.join(`
|
|
5
|
+
|
|
6
|
+
`))}async setFrameSource(e){let t=e!==this._frameSource;if(this._frameSource!==null&&(this._frameSource.context=null),this._frameSource=e??null,e&&(e.context=this,await this.workerCommand(`setFrameSource`,{mirrorAxis:this.getMirrorAxisForFrameSource(e),isCameraFrameSource:i(e)})),await this.update([{type:`frameSourceState`,newValue:this.frameSource}]),t)for(let e of this.listeners)e.didChangeFrameSource&&e.didChangeFrameSource(this,this._frameSource)}addListener(e){this.listeners.includes(e)||this.listeners.push(e)}async flushAnalytics(){await this.workerCommand(`flushAnalytics`,{})}removeListener(e){this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1)}async addMode(e){this.modes.add(e),await e.attachedToContext(this),this.updateCameraFrameFlow(),await this.update([],{updateContext:!F(e)})}async removeMode(e){this.modes.delete(e),await e.detachedFromContext(),this.updateCameraFrameFlow(),await this.update([],{updateContext:!F(e)})}async setMode(e){this.modes.has(e)||(this.modes.clear(),this.modes.add(e),await e.attachedToContext(this),this.updateCameraFrameFlow(),await this.update())}async removeCurrentMode(){for(let e of this.modes)await e.detachedFromContext();this.modes.clear(),await this.update()}async removeAllModes(){let e=Array.from(this.modes);for(let t of e)await this.removeMode(t)}hasModes(){return this.modes.size>0}async dispose(){if(D.stateMachine.currentState!==`unconfigured`)try{await D.stateMachine.executeAsyncTransition({targetState:`unconfigured`,action:async()=>{c.instance().removeListener(`cameraProperties`,this.cameraPropertiesReportListener),c.instance().removeListener(`cameraAccessError`,this.cameraAccessErrorListener),this.unsubscribeToVisibilityChange(this.onVisibilityChangeListener);for(let e of this.modes)await e.detachedFromContext();this._view&&=(await this._view.setContext(null),null),this.dataCaptureInstance&&=(await this.dataCaptureInstance.terminateDataCaptureWorker(!0).catch(()=>{}),void 0),this.webBatteryInterface&&=(this.webBatteryInterface.dispose(),void 0),D.deviceID=``},onSuccess:`unconfigured`,onError:`unconfigured`})}catch(e){if(D.stateMachine.currentState===`unconfigured`)return;throw e}finally{this.modes.clear(),this.listeners=[],this.components.length=0,this.updateListeners.clear(),this.pendingWorkerMessageListeners.clear(),this.delayedRegistration=!1,this.highEndBlurryRecognition=!1,this._frameHandlers.length=0,this.frameSource&&(this.frameSource.context=null,this._frameSource=null),c.instance().dispose(),this.licenseKey=``,this.deviceName=``,g()}}async applySettings(e){this.settings=e,await this.update()}toJSONObject(){var e;return{licenseKey:this.licenseKey,framework:this.framework,deviceName:this.deviceName,...this.runtimeEnvironment,modes:[...this.modes].filter(e=>!F(e)).map(e=>e.toJSONObject()),components:this.components.map(e=>e.toJSONObject()),frameSource:this.frameSource?this.frameSource.toJSONObject():null,settings:this.settings.toJSONObject(),view:((e=this._view)==null?void 0:e.toJSONObject())??null}}getView(){return this._view}async setView(e){return this._view=e,this.update([{type:`viewSet`,newValue:e}])}async getAppName(){let e=null;if(C()){let t=await w();if((t==null?void 0:t.appName)==null||t.appName===``)throw Error(`Cannot retrieve electron appName. Did you set it up in package.json? https://www.electronjs.org/docs/latest/api/app#appgetname`);e=t.appName}return e}urlToHostname(e){try{return new URL(e??``).hostname}catch{return``}}getParentDomain(){let e=``;if(parent!==window){var t;e||=this.urlToHostname((t=location.ancestorOrigins)==null?void 0:t[0]),e||=this.urlToHostname(document.referrer),e||=``}return e.startsWith(`[`)&&e.endsWith(`]`)&&(e=e.slice(1,-1)),e}async createContext(){this.webBatteryInterface=await m.create();let t=this.webBatteryInterface.getBatteryInfo();await this.workerCommand(`createContext`,{context:this.toJSONObject(),deviceId:D.deviceID,delayedRegistration:this.delayedRegistration,highEndBlurryRecognition:this.highEndBlurryRecognition,appName:await this.getAppName(),parentDomain:this.getParentDomain(),isTablet:e.isTablet(),batteryInfo:t}),this.webBatteryInterface.addBatteryChangeListener(this.batteryChangeListener),this.subscribeToWorkerMessages(this.onWorkerMessageListener),this.subscribeToCameraManagerEvents(),this.subscribeToVisibilityChange(this.onVisibilityChangeListener),this._view!=null&&await this.setView(this._view),this.frameSource!=null&&await this.setFrameSource(this.frameSource)}subscribeToVisibilityChange(e){document.addEventListener(`visibilitychange`,e)}unsubscribeToVisibilityChange(e){document.removeEventListener(`visibilitychange`,e)}async requestFrameData(e){return this.workerCommand(`requestFrameData`,{frameId:e})}performanceMark(e){O(globalThis.performance)&&typeof globalThis.performance.mark==`function`&&performance.mark(e)}async sendFrameToProcessor(e){let t=e instanceof ImageData?{data:e.data,width:e.width,height:e.height,frameId:e.frameId??s(),colorType:e.colorType??`RGBA`}:e,n=await this.sendFrameToHandlers(t);return t.data=n.capture.data,n.skip?n.capture:(this.performanceMark(`processFrameBeforeSDC`),this.sendFrameToSDC(t))}async sendFrameToHandlers(e){for(let t of this._frameHandlers)if((await t(e)).action===`skip`)return{skip:!0,capture:e};return{skip:!1,capture:e}}async sendFrameToSDC(e){return this.workerCommand(`processFrame`,e,[e.data.buffer])}registerFrameHandler(e){this._frameHandlers.includes(e)||this._frameHandlers.push(e)}unregisterFrameHandler(e){this._frameHandlers.includes(e)&&this._frameHandlers.splice(this._frameHandlers.indexOf(e),1)}onBatteryChange(e){this.workerCommand(`updateBatteryInfo`,{batteryInfo:e})}onVisibilityChange(){this.workerCommand(`documentVisibility`,{state:document.visibilityState})}getImageConverterInstance(e){return this._asyncImageConverterInstance??=new T(e),this._asyncImageConverterInstance}onWorkerMessage(e){if(e.type===`contextDidChangeStatus`){e.payload.isValid||t.error(e.payload);for(let t of this.listeners)t.didChangeStatus&&t.didChangeStatus(this,u.fromJSON(e.payload))}if(e.type===`didStartObservingContext`)for(let e of this.listeners)e.didStartObservingContext&&e.didStartObservingContext(this);e.type===`onFrameProcessingFinished`&&this.performanceMark(`processFrameAfterSDC`),e.type===`convertToJPEG`&&this.convertImageToJPEG(e)}async convertImageToJPEG(e){let{imageId:t,width:n,height:r,data:i,planes:a,orientation:o,quality:s}=e,c=await this.getImageConverterInstance({quality:s}).convertToJpeg({getWidth:()=>n,getHeight:()=>r,getPlanes:()=>a,toBitmap:()=>i,getBitmapRepresentationFromYUV:()=>{throw Error(`Not implemented`)},deepCopy:()=>{throw Error(`Not implemented`)}},o);return this.workerCommand(`convertToJPEGResult`,{imageId:t,result:c})}subscribeToCameraManagerEvents(){c.instance().addListener(`cameraProperties`,this.cameraPropertiesReportListener),c.instance().addListener(`cameraAccessError`,this.cameraAccessErrorListener)}async reportCameraProperties(e){return this.workerCommand(`reportCameraProperties`,e)}onCameraAccessError(e){for(let t of this.listeners)t.didChangeStatus&&t.didChangeStatus(this,u.fromJSON({code:33794,isValid:!0,message:typeof(e==null?void 0:e.toString)==`function`?e.toString():`Unknown error`}))}async update(e=[],{updateContext:t=!0}={}){t&&await this.updateContext();for(let t of e){switch(t.type){case`frameSourceState`:var n;await((n=this._view)==null?void 0:n.onFrameSourceChange(this.frameSource));break;case`singleImageModeUploaderSettings`:var r;(r=this._view)==null||r.onSingleImageUploaderSettingsChange(t.newValue);break;case`addOverlay`:await this.addNativeOverlay(t.newValue);break;case`removeOverlay`:await this.removeNativeOverlay(t.newValue);break}for(let e of this.updateListeners){let n=e(t);n instanceof Promise&&await n}}}async updateContext(){await this.workerCommand(`updateContext`,{context:this.toJSONObject(),...this.getViewInfo()}).catch(e=>t.warn(`Error while updating context:`,e,this.toJSONObject()))}getViewInfo(){return this._view==null?{view:null}:{view:{width:this._view.width,height:this._view.height,visible:this._view.width>0&&this._view.height>0,orientation:this._view.orientation}}}getMirrorAxisForFrameSource(e){let t=`None`;return i(e)&&e.getMirrorImageEnabled()&&(t=`Y`),t}async addComponent(e){if(!this.components.includes(e))return this.components.push(e),e._context=this,this.update()}async addNativeOverlay(e){if(P(e))return this.workerCommand(`addNativeOverlay`,{overlayHandle:e[E]})}async removeNativeOverlay(e){if(P(e))return this.workerCommand(`removeNativeOverlay`,{overlayHandle:e[E]})}subscribeToWorkerMessages(e){this.dataCaptureInstance?this.dataCaptureInstance.addWorkerListener(e):this.pendingWorkerMessageListeners.add(e)}unsubscribeToWorkerMessages(e){this.dataCaptureInstance&&this.dataCaptureInstance.removeWorkerListener(e),this.pendingWorkerMessageListeners.delete(e)}hasEnabledMode(){return[...this.modes].some(e=>e.isEnabled())}updateCameraFrameFlow(){let e=[...this.modes].some(e=>e._synchronousFrameFlow===!0);c.instance().setFrameHandling(e)}async isFeatureSupported(e){return(await this.workerCommand(`isFeatureSupported`,{feature:e})).supported}};I.deviceID=``,I.stateMachine=new D(`unconfigured`,M),I.mainDataCaptureLoader=void 0,I.dataCaptureLoaders=new Map,I.libraryLocation=void 0,I.userLicenseKey=null,I.capabilityInfo=void 0,j([N],I.prototype,`setFrameSource`,null),j([N],I.prototype,`addMode`,null),j([N],I.prototype,`removeMode`,null),j([N],I.prototype,`setMode`,null),j([N],I.prototype,`removeCurrentMode`,null),j([N],I.prototype,`isFeatureSupported`,null);export{A as n,I as t};
|
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { b as Change, D as DataCaptureComponent, e as DataCaptureComponentJSON, f as DataCaptureContext, g as DataCaptureContextCreationOptions, h as DataCaptureContextJSON, j as DataCaptureContextState, m as DataCaptureMode, n as DataCaptureModeJSON, t as ModuleLoaderOptions, P as PrivateCapabilityInfo, u as PrivateChangeSet, v as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, x as PrivateDataCaptureContextOptions, y as PrivateDataCaptureMode, z as PrivateFrameHandler, A as PrivateFrameHandlerResponse } from './DataCaptureContext-Qg40v7QA.js';
|
|
4
|
-
import './DataCaptureContextSettings.js';
|
|
5
|
-
import './commons/JSONType.js';
|
|
6
|
-
import './commons/Orientation.js';
|
|
7
|
-
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
8
|
-
import './logger.js';
|
|
9
|
-
import './private/privateAccess.js';
|
|
10
|
-
import './private/HtmlElementState.js';
|
|
11
|
-
import './private/Serializable.js';
|
|
12
|
-
import './private/nativeHandle.js';
|
|
13
|
-
import './private/utils/AsyncStateMachine.js';
|
|
14
|
-
import './tsHelper.js';
|
|
15
|
-
import './commons/Rect.js';
|
|
16
|
-
import './commons/Point.js';
|
|
17
|
-
import './commons/Size.js';
|
|
18
|
-
import './DataCaptureViewPlusRelated-BOrDBPHq.js';
|
|
19
|
-
import './NotificationPresenter/NotificationPresenter.js';
|
|
20
|
-
import './NotificationPresenter/NotificationConfiguration.js';
|
|
21
|
-
import './commons/Color.js';
|
|
22
|
-
import './ScanditIcon.js';
|
|
23
|
-
import './private/utils/ScanditHTMLElement.js';
|
|
24
|
-
import './NotificationPresenter/NotificationStyle.js';
|
|
25
|
-
import './commons/Anchor.js';
|
|
26
|
-
import './commons/MarginsWithUnit.js';
|
|
27
|
-
import './commons/NumberWithUnit.js';
|
|
28
|
-
import './commons/MeasureUnit.js';
|
|
29
|
-
import './commons/PointWithUnit.js';
|
|
30
|
-
import './commons/Quadrilateral.js';
|
|
31
|
-
import './private/CustomLocationsView.js';
|
|
32
|
-
import './private/View.js';
|
|
33
|
-
import './private/AnchorPositions.js';
|
|
34
|
-
import './private/AdditionalLayerPosition.js';
|
|
35
|
-
import './private/FrameReaders/ColorType.js';
|
|
36
|
-
import './private/BatteryInterface.js';
|
|
37
|
-
import './LoadingStatus.js';
|
|
38
|
-
import './private/djinni-types/index.js';
|
|
39
|
-
import './commons/SizeWithUnit.js';
|
|
1
|
+
import { _ as PrivateFrameHandler, a as DataCaptureContextCreationOptions, c as DataCaptureMode, d as PrivateCapabilityInfo, f as PrivateChangeSet, g as PrivateDataCaptureMode, h as PrivateDataCaptureContextOptions, i as DataCaptureContext, l as DataCaptureModeJSON, m as PrivateDataCaptureContext, n as DataCaptureComponent, o as DataCaptureContextJSON, p as PrivateDataCaptureComponent, r as DataCaptureComponentJSON, s as DataCaptureContextState, t as Change, u as ModuleLoaderOptions, v as PrivateFrameHandlerResponse } from "./DataCaptureContext-CYDrBO6_.js";
|
|
2
|
+
export { Change, DataCaptureComponent, DataCaptureComponentJSON, DataCaptureContext, DataCaptureContextCreationOptions, DataCaptureContextJSON, DataCaptureContextState, DataCaptureMode, DataCaptureModeJSON, ModuleLoaderOptions, PrivateCapabilityInfo, PrivateChangeSet, PrivateDataCaptureComponent, PrivateDataCaptureContext, PrivateDataCaptureContextOptions, PrivateDataCaptureMode, PrivateFrameHandler, PrivateFrameHandlerResponse };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{t as e}from"./DataCaptureContext-CbQes_57.js";export{e as DataCaptureContext};
|
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
import './Camera-HgH6fwnW.js';
|
|
4
|
-
import './ScanditIcon.js';
|
|
5
|
-
import './DataCaptureContextSettings.js';
|
|
6
|
-
import './commons/JSONType.js';
|
|
7
|
-
import './private/Serializable.js';
|
|
8
|
-
import './DataCaptureViewPlusRelated-BOrDBPHq.js';
|
|
9
|
-
import './NotificationPresenter/NotificationPresenter.js';
|
|
10
|
-
import './NotificationPresenter/NotificationConfiguration.js';
|
|
11
|
-
import './commons/Color.js';
|
|
12
|
-
import './NotificationPresenter/NotificationStyle.js';
|
|
13
|
-
import './private/utils/ScanditHTMLElement.js';
|
|
14
|
-
import './commons/Anchor.js';
|
|
15
|
-
import './commons/MarginsWithUnit.js';
|
|
16
|
-
import './commons/NumberWithUnit.js';
|
|
17
|
-
import './commons/MeasureUnit.js';
|
|
18
|
-
import './commons/Orientation.js';
|
|
19
|
-
import './commons/Point.js';
|
|
20
|
-
import './commons/PointWithUnit.js';
|
|
21
|
-
import './commons/Quadrilateral.js';
|
|
22
|
-
import './commons/Size.js';
|
|
23
|
-
import './private/CustomLocationsView.js';
|
|
24
|
-
import './private/View.js';
|
|
25
|
-
import './private/AnchorPositions.js';
|
|
26
|
-
import './private/nativeHandle.js';
|
|
27
|
-
import './private/privateAccess.js';
|
|
28
|
-
import './private/AdditionalLayerPosition.js';
|
|
29
|
-
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
30
|
-
import './logger.js';
|
|
31
|
-
import './private/FrameReaders/ColorType.js';
|
|
32
|
-
import './commons/Rect.js';
|
|
33
|
-
import './private/BatteryInterface.js';
|
|
34
|
-
import './LoadingStatus.js';
|
|
35
|
-
import './private/djinni-types/index.js';
|
|
36
|
-
import './private/HtmlElementState.js';
|
|
37
|
-
import './commons/SizeWithUnit.js';
|
|
38
|
-
import './private/utils/AsyncStateMachine.js';
|
|
39
|
-
import './tsHelper.js';
|
|
1
|
+
import { S as PrivateMirrorAxis, b as ContextStatusJSON, x as DataCaptureContextListener, y as ContextStatus } from "./DataCaptureContext-CYDrBO6_.js";
|
|
2
|
+
export { ContextStatus, ContextStatusJSON, DataCaptureContextListener, PrivateMirrorAxis };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
var e=class e{static fromJSON(t){let n=new e;return n._code=t.code,n._message=t.message,n._isValid=t.isValid,n}get message(){return this._message}get code(){return this._code}get isValid(){return this._isValid}};let t=function(e){return e.None=`None`,e.X=`X`,e.Y=`Y`,e}({});export{e as ContextStatus,t as PrivateMirrorAxis};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { t as Serializable } from "./Serializable-Dbturs7d.js";
|
|
2
|
+
import { t as JSONType } from "./JSONType-BJv7BUtr.js";
|
|
3
|
+
|
|
4
|
+
//#region src/main/DataCaptureContextSettings.d.ts
|
|
5
|
+
type DataCaptureContextSettingsJSON = Record<string, JSONType>;
|
|
6
|
+
declare class DataCaptureContextSettings implements Serializable<DataCaptureContextSettingsJSON> {
|
|
7
|
+
constructor();
|
|
8
|
+
setProperty(name: string, value: any): void;
|
|
9
|
+
getProperty(name: string): any;
|
|
10
|
+
toJSONObject(): DataCaptureContextSettingsJSON;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { DataCaptureContextSettingsJSON as n, DataCaptureContextSettings as t };
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { Serializable } from './private/Serializable.js';
|
|
4
|
-
|
|
5
|
-
type DataCaptureContextSettingsJSON = Record<string, JSONType>;
|
|
6
|
-
declare class DataCaptureContextSettings implements Serializable<DataCaptureContextSettingsJSON> {
|
|
7
|
-
constructor();
|
|
8
|
-
setProperty(name: string, value: any): void;
|
|
9
|
-
getProperty(name: string): any;
|
|
10
|
-
toJSONObject(): DataCaptureContextSettingsJSON;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { DataCaptureContextSettings, type DataCaptureContextSettingsJSON };
|
|
1
|
+
import { n as DataCaptureContextSettingsJSON, t as DataCaptureContextSettings } from "./DataCaptureContextSettings-jR9ArFal.js";
|
|
2
|
+
export { DataCaptureContextSettings, DataCaptureContextSettingsJSON };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
var e=class{constructor(){}setProperty(e,t){this[e]=t}getProperty(e){return this[e]}toJSONObject(){return Object.keys(this).reduce((e,t)=>(e[t]=this.getProperty(t),e),{})}};export{e as DataCaptureContextSettings};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/main/DataCaptureError.d.ts
|
|
2
|
+
interface DataCaptureErrorDetails {
|
|
3
|
+
message: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
declare class DataCaptureError extends Error {
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly message: string;
|
|
9
|
+
constructor(details: DataCaptureErrorDetails);
|
|
10
|
+
toString(): string;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { DataCaptureErrorDetails as n, DataCaptureError as t };
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
message: string;
|
|
4
|
-
name: string;
|
|
5
|
-
}
|
|
6
|
-
declare class DataCaptureError extends Error {
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly message: string;
|
|
9
|
-
constructor(details: DataCaptureErrorDetails);
|
|
10
|
-
toString(): string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { DataCaptureError, type DataCaptureErrorDetails };
|
|
1
|
+
import { n as DataCaptureErrorDetails, t as DataCaptureError } from "./DataCaptureError-fm19xgXy.js";
|
|
2
|
+
export { DataCaptureError, DataCaptureErrorDetails };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
var e=class e extends Error{constructor(t){super(t.message),Object.setPrototypeOf(this,e.prototype),this.name=t.name}toString(){return`${this.name}: ${this.message}`}};export{e as DataCaptureError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{DataCaptureError as e}from"./DataCaptureError.js";let t;(function(t){function n(){let t=`8.5.0-beta.1`;if(t==null)throw new e({name:`Invalid library version`,message:`Library version is not defined or empty.`});return t}t.sdkVersion=n})(t||={});export{t as DataCaptureVersion};
|
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { o as DataCaptureOverlay, p as DataCaptureView, q as DataCaptureViewConnectOptions, r as DataCaptureViewJSON, s as DataCaptureViewListener } from './DataCaptureContext-Qg40v7QA.js';
|
|
4
|
-
import './DataCaptureViewPlusRelated-BOrDBPHq.js';
|
|
5
|
-
import './NotificationPresenter/NotificationPresenter.js';
|
|
6
|
-
import './commons/Anchor.js';
|
|
7
|
-
import './commons/MarginsWithUnit.js';
|
|
8
|
-
import './commons/Orientation.js';
|
|
9
|
-
import './commons/Point.js';
|
|
10
|
-
import './commons/PointWithUnit.js';
|
|
11
|
-
import './commons/Quadrilateral.js';
|
|
12
|
-
import './commons/Size.js';
|
|
13
|
-
import './private/CustomLocationsView.js';
|
|
14
|
-
import './private/Serializable.js';
|
|
15
|
-
import './private/nativeHandle.js';
|
|
16
|
-
import './private/AnchorPositions.js';
|
|
17
|
-
import './private/privateAccess.js';
|
|
18
|
-
import './private/AdditionalLayerPosition.js';
|
|
19
|
-
import './commons/Rect.js';
|
|
20
|
-
import './DataCaptureContextSettings.js';
|
|
21
|
-
import './commons/JSONType.js';
|
|
22
|
-
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
23
|
-
import './logger.js';
|
|
24
|
-
import './private/FrameReaders/ColorType.js';
|
|
25
|
-
import './private/BatteryInterface.js';
|
|
26
|
-
import './LoadingStatus.js';
|
|
27
|
-
import './ScanditIcon.js';
|
|
28
|
-
import './commons/Color.js';
|
|
29
|
-
import './private/utils/ScanditHTMLElement.js';
|
|
30
|
-
import './private/djinni-types/index.js';
|
|
31
|
-
import './private/HtmlElementState.js';
|
|
32
|
-
import './commons/SizeWithUnit.js';
|
|
33
|
-
import './commons/NumberWithUnit.js';
|
|
34
|
-
import './commons/MeasureUnit.js';
|
|
35
|
-
import './private/utils/AsyncStateMachine.js';
|
|
36
|
-
import './tsHelper.js';
|
|
37
|
-
import './NotificationPresenter/NotificationConfiguration.js';
|
|
38
|
-
import './NotificationPresenter/NotificationStyle.js';
|
|
39
|
-
import './private/View.js';
|
|
1
|
+
import { Jn as DataCaptureOverlay, Qn as DataCaptureViewListener, Xn as DataCaptureViewConnectOptions, Yn as DataCaptureView, Zn as DataCaptureViewJSON } from "./DataCaptureContext-CYDrBO6_.js";
|
|
2
|
+
export { DataCaptureOverlay, DataCaptureView, DataCaptureViewConnectOptions, DataCaptureViewJSON, DataCaptureViewListener };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureView}from'./chunks/chunk-G7ORIX4S.js';
|
|
1
|
+
import{NumberWithUnit as e}from"./commons/NumberWithUnit.js";import{Logger as t}from"./logger.js";import"./CameraRelated.js";import{t as n}from"./CameraManager-DskA2C7T.js";import{Point as r}from"./commons/Point.js";import{Rect as i}from"./commons/Rect.js";import{Size as a}from"./commons/Size.js";import{INTERNAL_ACCESS as o}from"./private/privateAccess.js";import{ContextStatus as s}from"./DataCaptureContextRelated.js";import{Localization as c}from"./Localization.js";import{translations as l}from"./translations.js";import u from"./private/ViewsRegistry.js";import{Timeout as d}from"./private/utils/timeout.js";import{html as f}from"./private/utils/html.js";import"./worker/dataCaptureWorkerRelated.js";import{ConcreteNotificationPresenter as p}from"./NotificationPresenter/private/ConcreteNotificationPresenter.js";import"./commons/MeasureUnit.js";import{MarginsWithUnit as m}from"./commons/MarginsWithUnit.js";import"./commons/Orientation.js";import{Quadrilateral as h}from"./commons/Quadrilateral.js";import{PrivateCanvasDrawer as g}from"./private/CanvasDrawer.js";import{PrivateCanvasDrawerWithMetrics as _}from"./private/CanvasDrawerWithMetrics.js";import{classNames as v}from"./private/CustomLocationsViewStyles.js";import{GestureRecognizer as y}from"./private/GestureRecognizer/GestureRecognizer.js";import{CustomLocationsView as b}from"./private/CustomLocationsView.js";import{HTMLElementState as x}from"./private/HtmlElementState.js";import{OrientationObserver as S,orientationChangeEvent as C}from"./private/OrientationObserver.js";import{ViewClassNames as w}from"./private/ViewClassNames.js";import{getDataCaptureViewStyles as T}from"./private/ViewStyles.js";import{gray900 as E,neutrals as D}from"./private/ui/colors.js";import{ControlsLayout as O}from"./private/ui/molecules/ControlsLayout.js";import{HintPresenter as k}from"./private/ui/molecules/HintPresenter.js";import{LoadingOverlay as A}from"./private/ui/molecules/LoadingOverlay.js";import{AnchorPositions as j}from"./private/AnchorPositions.js";import{SingleImageUploaderView as M}from"./private/SingleImageUploaderView.js";import{defaultDataCaptureView as N}from"./defaults/DefaultsDataCaptureView.js";import"./private/AdditionalLayerPosition.js";const P=`core.camera.recovery`;var F=class F{get zoomGestures(){return this._zoomGestures}set zoomGestures(e){this.removeSwipeToZoomListener(),this.removePinchToZoomListener(),this._zoomGestures=e,this.addSwipeToZoomListener(),this.addPinchToZoomListener()}get videoElement(){return n.instance().getVideoElement()}constructor(){this.focusGesture=N.focusGesture,this.shouldShowZoomNotification=!0,this._zoomGestures=N.zoomGestures,this.swipeToZoomGesture=null,this.pinchToZoomGesture=null,this._scanAreaMargins=N.scanAreaMargins,this._pointOfInterest=N.pointOfInterest,this._logoStyle=N.logoStyle,this._logoAnchor=N.logoAnchor,this._logoOffset=N.logoOffset,this._context=null,this.overlays=new Set,this.controlMap=new Map,this.frameSourceListener={didChangeState:this.onFrameSourceChange.bind(this)},this._previewCamera=null,this.isConnected=!1,this.controlsElement=void 0,this.frozenFrameCanvas=document.createElement(`canvas`),this.listeners=[],this.isVideoElementDetached=!1,this.orientation=`portrait`,this.hiddenProperties={stopVideoTracksOnVisibilityChange:!0,freezeFrameWhenStoppingFrameSource:!0,forceScanAreaMarginsToPixels:!1},this.orientationObserver=new S,this.onOrientationChangeListener=this.onOrientationChange.bind(this),this.onHintPresenterUpdateHandler=this.onHintPresenterUpdate.bind(this),this.onViewFinderUpdateRequestedHandler=this.onViewFinderUpdateRequested.bind(this),this.onWorkerMessageHandler=this.onWorkerMessage.bind(this),this.htmlElementDidChangeHandler=this.htmlElementDidChange.bind(this),this.htmlElementDisconnectedHandler=this.htmlElementDisconnected.bind(this),this.notificationPresenter=null,this.zoomNotificationDuration=4e3,this.zoomNotificationTimeout=null,this[o]={attachAdditionalLayer:this.attachAdditionalLayer.bind(this),freezeFrame:this.freezeFrame.bind(this),unfreezeFrame:this.unfreezeFrame.bind(this),overlays:this.overlays},this.visibilityListener=this.onVisibilityChange.bind(this),this.cameraRecoveryListener=this.cameraRecovery.bind(this),c.getInstance().updateIfMissing(l),this.zoomGestures=[...N.zoomGestures]}get scanAreaMargins(){return this._scanAreaMargins}set scanAreaMargins(e){var t;let n=this.hiddenProperties.forceScanAreaMarginsToPixels?this.marginsToPixels(e):e,r=this._scanAreaMargins;this._scanAreaMargins=n;for(let e of this.listeners){var i;(i=e.willChangeScanAreaMargins)==null||i.call(e,this,r,n)}(((t=this.privateContext)==null?void 0:t.update())??Promise.resolve()).then(()=>{for(let t of this.listeners){var e;(e=t.didChangeScanAreaMargins)==null||e.call(t,this,n)}})}marginsToPixels(t){let{width:n,height:r}=this;if(n===0&&r===0)return t;let i=(t,n)=>t.unit===`pixel`?t:new e(t.value*n,`pixel`);return new m(i(t.left,n),i(t.top,r),i(t.right,n),i(t.bottom,r))}get pointOfInterest(){return this._pointOfInterest}set pointOfInterest(e){var t;this._pointOfInterest=e,(t=this.privateContext)==null||t.update()}get logoStyle(){return this._logoStyle}set logoStyle(e){var t;this._logoStyle=e,(t=this.privateContext)==null||t.update()}get logoAnchor(){return this._logoAnchor}set logoAnchor(e){var t;this._logoAnchor=e,(t=this.privateContext)==null||t.update()}get logoOffset(){return this._logoOffset}set logoOffset(e){var t;this._logoOffset=e,(t=this.privateContext)==null||t.update()}get cameraRecoveryText(){return c.getInstance().get(P)}get width(){var e;return Math.round(((e=this.htmlElementState)==null?void 0:e.width)??0)}get height(){var e;return Math.round(((e=this.htmlElementState)==null?void 0:e.height)??0)}get canvasDrawer(){return!this._canvasDrawer&&this.canvasElement!=null&&(this._canvasDrawer=new g(this.canvasElement),this._canvasDrawer.startObservingCanvasResize()),this._canvasDrawer}get controls(){return this.controlMap.values()}get privateContext(){return this._context}static async forContext(e){let t=new F;return await t.setContext(e),t}showProgressBar(){var e;(e=this.loadingOverlay)==null||e.show()}hideProgressBar(){var e;(e=this.loadingOverlay)==null||e.hide()}setProgressBarPercentage(e){this.loadingOverlay&&(this.loadingOverlay.progress=e)}setProgressBarMessage(e){this.loadingOverlay&&(this.loadingOverlay.message=e)}getContext(){return this._context}async setContext(e){if(this._context!==e&&(this._context=e,e)){var t,n,r;if(this.overlays.size>0&&!((t=this._context)!=null&&t[o].hasModes()))throw Error([`Cannot assign this view to this context. This view has overlays but the context does not have any mode attached matching these overlays.`,`Remove the overlays first before attaching the view to the context, or add the corresponding mode to the context before attaching this view.`].join(` `));await e.setView(this),(n=this.privateContext)==null||n.subscribeToWorkerMessages(this.onWorkerMessageHandler),(r=this._context)!=null&&r.frameSource&&await this.onFrameSourceChange(this._context.frameSource)}}connectToElement(e,t){var n,r,i;this.isConnected||=(this.orientationObserver.register(),this.setupHtmlElement(e),(n=this.canvasDrawer)==null||n.startObservingCanvasResize(),this.htmlElementDidChange(),u.add(this),this.orientation=this.orientationObserver.orientation.value,this.orientationObserver.addEventListener(C,this.onOrientationChangeListener),(r=this.hintPresenter)==null||r.addEventListener(`hintpresenterupdate`,this.onHintPresenterUpdateHandler),(i=this.hintPresenter)==null||i.addEventListener(`hintpresenterviewfinderupdaterequested`,this.onViewFinderUpdateRequestedHandler),this.localizationSubscription=c.getInstance().subscribe(e=>{e[P]!=null&&(this.cameraRecoveryElement.textContent=e[P])}),this._previewCamera=(t==null?void 0:t.camera)??null,this._previewCamera&&(this._previewCamera.addListener(this.frameSourceListener),this.onFrameSourceChange(this._previewCamera)),this.updateControls(),!0)}detachFromElement(){var e,t,r,i,a,o,s,c,l;if(this.isConnected){(e=this.htmlElementState)==null||e.removeListeners(),this.removeStyles(),(t=this.canvasDrawer)==null||t.endObservingCanvasResize(),document.removeEventListener(`visibilitychange`,this.visibilityListener);for(let e of[`touchend`,`mousedown`])this.cameraRecoveryElement.removeEventListener(e,this.cameraRecoveryListener);(r=this.loadingOverlay)==null||r.remove(),(i=this.customLocationsView)==null||i.unmount(),this.notificationPresenter=null,this.htmlElementDidChange(),this.removeSwipeToZoomListener(),this.removePinchToZoomListener(),(a=this.gestureRecognizer)==null||a.removeListener(this),this.clearHtmlElementContent(),u.delete(this),this.orientationObserver.unregister(),this.orientationObserver.removeEventListener(C,this.onOrientationChangeListener),(o=this.hintPresenter)==null||o.removeEventListener(`hintpresenterupdate`,this.onHintPresenterUpdateHandler),(s=this.hintPresenter)==null||s.removeEventListener(`hintpresenterviewfinderupdaterequested`,this.onViewFinderUpdateRequestedHandler),(c=this.localizationSubscription)==null||c.cancel(),n.instance().disconnectedCallback(),this._previewCamera&&=(this._previewCamera.removeListener(this.frameSourceListener),null),(l=this.zoomNotificationTimeout)==null||l.stop(),this.zoomNotificationTimeout=null;for(let e of this.controls)this.removeControl(e);this.isConnected=!1}}async addOverlay(e){var t;this.overlays.has(e)||(this.overlays.add(e),await((t=this.privateContext)==null?void 0:t.update([{type:`addOverlay`,newValue:e,view:this}])))}async removeOverlay(e){var t;this.overlays.has(e)&&(await((t=this.privateContext)==null?void 0:t.update([{type:`removeOverlay`,newValue:e,view:this}])),this.overlays.delete(e))}addListener(e){this.listeners.includes(e)||this.listeners.push(e)}removeListener(e){this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1)}viewPointForFramePoint(e){var t,n,i,a;let o={width:((t=this.htmlElementState)==null?void 0:t.width)??0,height:((n=this.htmlElementState)==null?void 0:n.height)??0},s={width:((i=this.videoElement)==null?void 0:i.videoWidth)??0,height:((a=this.videoElement)==null?void 0:a.videoHeight)??0},c=o.width/o.height>s.width/s.height?o.width/s.width:o.height/s.height,l={x:e.x*c,y:e.y*c},u=(s.width*c-o.width)/2,d=(s.height*c-o.height)/2;return new r(l.x-u,l.y-d)}viewQuadrilateralForFrameQuadrilateral(e){let t=this.viewPointForFramePoint(e.topLeft),n=this.viewPointForFramePoint(e.topRight),r=this.viewPointForFramePoint(e.bottomLeft);return new h(t,n,this.viewPointForFramePoint(e.bottomRight),r)}addControl(e){let t=e.toJSONObject().type;if(!this.controlMap.has(t)&&!(t===`camera-fov`&&this.controlMap.has(`zoom`))){if(t===`zoom`){let e=this.controlMap.get(`camera-fov`);e&&this.removeControl(e)}this.controlMap.set(t,e),e.install(this).then(t=>{if(t){var n;(n=this.privateContext)==null||n.update([{type:`addControl`,newValue:e}])}})}}removeControl(e){let t=e.toJSONObject().type;if(this.controlMap.has(t)){var n;e.remove(!0),this.controlMap.delete(t),(n=this.privateContext)==null||n.update([{type:`removeControl`,newValue:e}])}}toJSONObject(){return{scanAreaMargins:this.scanAreaMargins.toJSONObject(),pointOfInterest:this.pointOfInterest.toJSONObject(),logoAnchor:this.logoAnchor,logoOffset:this.logoOffset.toJSONObject(),logoHidden:this.logoHidden??!1,logoStyle:this.logoStyle,overlays:[...this.overlays].map(e=>e.toJSONObject()),controls:[...this.controls].map(e=>e.toJSONObject()),focusGesture:this.focusGesture?this.focusGesture.toJSONObject():null,zoomGestures:this._zoomGestures.map(e=>e.toJSONObject())}}isCameraRecoveryVisible(){return!this.cameraRecoveryElement.hidden}setCameraRecoveryVisible(e){this.cameraRecoveryElement.hidden=!e}async allowPictureInPicture(e){await n.instance().allowPictureInPicture(e)}viewAnchorPositionsForFrameAnchorPositions(e){let t=this.viewPointForFramePoint(e.topLeft),n=this.viewPointForFramePoint(e.topRight),r=this.viewPointForFramePoint(e.bottomLeft),i=this.viewPointForFramePoint(e.bottomRight),a=this.viewPointForFramePoint(e.centerLeft),o=this.viewPointForFramePoint(e.centerRight);return new j(t,n,i,r,a,this.viewPointForFramePoint(e.topCenter),o,this.viewPointForFramePoint(e.bottomCenter),this.viewPointForFramePoint(e.center))}setDidTapCustomLocationsViewListener(e){this.customLocationsView&&this.customLocationsView.listener===null&&(this.customLocationsView.listener=e)}renderCustomLocationsView(e){this.customLocationsView!=null&&(this.customLocationsView.setMirrored(n.instance().isMirrorImageEnabled()),Object.keys(e).includes(`removedIds`)?this.customLocationsView.render(e):this.customLocationsView.renderDomView(e))}getNotificationPresenter(){if(!this.notificationPresenter){var e;let t=(e=this.htmlElement)==null?void 0:e.querySelector(k.tag);if(!t)throw Error(`Notification presenter cannot be found. Please ensure the DataCaptureView is connected.`);this.notificationPresenter=new p(t)}return this.notificationPresenter}removeStyles(){for(let e of document.querySelectorAll(`style[scandit]`))e.remove()}onHintPresenterUpdate(e){var t;(t=this.privateContext)==null||t.workerCommand(`hintPresenterV2update`,{})}async onViewFinderUpdateRequested(e){var t;let n=await((t=this.privateContext)==null?void 0:t.workerCommand(`getViewfinderInfo`,{}));n!=null&&this.updateHintPresenterViewFinderRect(n.rect)}clearHtmlElementContent(){if(this.htmlElement){var e;(e=this.canvasDrawer)==null||e.endObservingCanvasResize(),this.htmlElement.innerHTML=``,this.cameraPaintboardElement=void 0,this.singleImageUploaderPaintboardElement=void 0,this.htmlElement=void 0}}setupHtmlElement(e){var t;this.createStyles(),this.htmlElement=e,k.register(),O.register(),A.register();let r=f`<div class="${w.CONTAINER_CLASS_NAME}" role="main" aria-label="Data capture view"><div class="${w.PAINTBOARDS_CONTAINER_CLASS_NAME}"><div data-js-id="loading-overlay"></div><div class="${w.PAINTBOARD_CLASS_NAME}" data-js-id="camera-paintboard"><div data-js-id="video-container"></div><img class="${w.FROZEN_FRAME}" data-js-id="frozen-frame" alt="Last captured camera frame shown while camera is on standby" hidden /><canvas></canvas><div data-js-id="${v.CUSTOM_VIEW_CONTAINER}"></div><${k.tag}></${k.tag}><${O.tag}></${O.tag}><div class="${w.CAMERA_RECOVERY_CLASS_NAME}" role="alert" aria-live="polite" aria-atomic="true" hidden>${this.cameraRecoveryText}</div><div class="${w.ERROR_CLASS_NAME}" role="alert" aria-live="assertive" aria-atomic="true" hidden></div></div><div class="${w.PAINTBOARD_CLASS_NAME}" data-js-id="singleimage-paintboard"></div></div></div>`;this.htmlElement.innerHTML=r,n.instance().connectedCallback(this.htmlElement.querySelector(`[data-js-id="video-container"]`)),this.isVideoElementDetached=!1,this.hintPresenter=this.htmlElement.querySelector(k.tag),this.notificationPresenter=this.hintPresenter?new p(this.hintPresenter):null,this.loadingOverlay&&this.loadingOverlay.remove(),this.loadingOverlay=A.create(),this.loadingOverlay.hide(),(t=this.htmlElement.querySelector(`[data-js-id="loading-overlay"]`))==null||t.replaceWith(this.loadingOverlay),this.customLocationsView&&this.customLocationsView.unmount(),this.customLocationsView=new b,this.customLocationsView.mount(this.htmlElement.querySelector(`[data-js-id="${v.CUSTOM_VIEW_CONTAINER}"]`)),this.customLocationsView.mapViewAnchorPositionsForFramePoint=e=>this.viewAnchorPositionsForFrameAnchorPositions(e),this.containerElement=this.htmlElement.querySelector(`.${w.CONTAINER_CLASS_NAME}`),this.cameraPaintboardElement=this.containerElement.querySelector(`[data-js-id="camera-paintboard"]`),this.singleImageUploaderPaintboardElement=this.containerElement.querySelector(`[data-js-id="singleimage-paintboard"]`);let i=this.cameraPaintboardElement.querySelector(`canvas`);this.canvasElement==null?this.canvasElement=i:i.replaceWith(this.canvasElement);let a=this.cameraPaintboardElement.querySelector(`[data-js-id="frozen-frame"]`);if(this.frozenFrame==null?this.frozenFrame=a:a.replaceWith(this.frozenFrame),this.controlsElement=this.cameraPaintboardElement.querySelector(O.tag),this.cameraRecoveryElement=this.cameraPaintboardElement.querySelector(`.${w.CAMERA_RECOVERY_CLASS_NAME}`),this.errorElement=this.cameraPaintboardElement.querySelector(`.${w.ERROR_CLASS_NAME}`),this.lastFrameSourceState!=null){var o;(o=this._context)==null||(o=o.frameSource)==null||o.switchToDesiredState(this.lastFrameSourceState)}document.addEventListener(`visibilitychange`,this.visibilityListener);for(let e of[`touchend`,`mousedown`])this.cameraRecoveryElement.addEventListener(e,this.cameraRecoveryListener);this.htmlElementState&&this.htmlElementState.removeListeners(),this.htmlElementState=new x(this.htmlElement),this.htmlElementState.onStateChanged(this.htmlElementDidChangeHandler),this.htmlElementState.onDisconnected(this.htmlElementDisconnectedHandler),this.gestureRecognizer=new y(this.htmlElement),this.gestureRecognizer.addListener(this),this.addSwipeToZoomListener(),this.addPinchToZoomListener()}setupHtmlElementSingleImageUploader(e){var n;if(this.singleImageUploaderPaintboardElement==null)return;this.singleImageUploaderView&&this.singleImageUploaderView.unmount(),this.singleImageUploaderView=new M(e),this.singleImageUploaderView.mount(this.containerElement.querySelector(`[data-js-id="singleimage-paintboard"]`));let r=(n=this._context)==null?void 0:n.frameSource;this.singleImageUploaderView.onInputCheck(e=>{r.getCurrentState()!==`starting`&&e.preventDefault()}),this.singleImageUploaderView.onBeforeFileRead(()=>{r._context&&this.singleImageUploaderView&&(this.singleImageUploaderView.canUploadFile=r._context.hasEnabledMode())}),this.singleImageUploaderView.onImageLoadError(()=>{r.currentState=`starting`,t.log(t.Level.Error,`Could not load image from selected file`)}),this.singleImageUploaderView.onFileReaderError(e=>{var n;let i=e.target;r.currentState=`starting`,t.log(t.Level.Error,`Error while reading the file: ${((n=i.error)==null?void 0:n.toString())??``}`)}),this.singleImageUploaderView.onCaptureReady(async e=>{await r.processUploadedFileCapture(e)}),this.singleImageUploaderView.setButtonState(r.getCurrentState()===`starting`?`enabled`:`disabled`),r.addView(this.singleImageUploaderView)}setupHtmlElementVisibility(e){this.cameraPaintboardElement!=null&&(this.cameraPaintboardElement.hidden=e!==`camera`),this.singleImageUploaderPaintboardElement!=null&&(this.singleImageUploaderPaintboardElement.hidden=e!==`singleImageUploader`)}createStyles(){if(document.querySelector(`style[scandit]`)===null){let e=T();for(let[t,n]of Object.entries(e))n.setAttribute(`scandit`,`data-capture-sdk-${t}`),document.head.append(n)}}async onOrientationChange(e){var t,n;this.orientation=e.detail.value,await((t=this.privateContext)==null?void 0:t.update([{type:`viewChange`,newValue:{...(n=this.htmlElementState)==null?void 0:n.toJSONObject(),orientation:this.orientation}}]))}htmlElementDidChange(){var e,t;if(!this.htmlElementState)return;let n=this.htmlElementState,r=n.toJSONObject();if(!x.areEquivalentJSONStates(this.lastHtmlElementState,r)){this.orientation=this.orientationObserver.orientation.value,(e=this.privateContext)==null||e.update([{type:`viewChange`,newValue:{...n.toJSONObject(),orientation:this.orientation}}]),this.lastHtmlElementState=r,(t=this.canvasDrawer)==null||t.updateCanvasSizeAttributes(this.width,this.height),this.handleVideoDisplay(r.visible);for(let e of this.listeners)typeof e.didChangeSize==`function`&&e.didChangeSize(this,new a(r.size.width.value,r.size.height.value),this.orientation)}}async htmlElementDisconnected(){var e,t,r,i;n.instance().disconnectedCallback(),this.lastFrameSourceState=(e=this._context)==null||(e=e.frameSource)==null?void 0:e.getCurrentState(),await((t=this._context)==null||(t=t.frameSource)==null?void 0:t.switchToDesiredState(`off`)),await((r=this.privateContext)==null?void 0:r.update([{type:`viewChange`,newValue:{...(i=this.htmlElementState)==null?void 0:i.toJSONObject(),orientation:this.orientation}}])),this.isConnected=!1}attachAdditionalLayer(e,t){if(t===`above-controls`){var n;(n=this.controlsElement)==null||n.insertAdjacentElement(`afterend`,e)}else t===`overlay-container`&&this.containerElement.append(e)}handleVideoDisplay(e){this.videoElement==null||this.cameraPaintboardElement==null||(!e&&!this.isVideoElementDetached?(this.videoElement.width=0,this.videoElement.height=0,this.videoElement.style.opacity=`0`,this.videoElement.style.visibility=`hidden`,document.body.append(this.videoElement),this.isVideoElementDetached=!0):e&&this.isVideoElementDetached&&(this.cameraPaintboardElement.insertAdjacentElement(`afterbegin`,this.videoElement),this.isVideoElementDetached=!1,this.videoElement.style.removeProperty(`visibility`),this.videoElement.removeAttribute(`width`),this.videoElement.removeAttribute(`height`),this.videoElement.style.removeProperty(`opacity`)))}isCanvasDrawerWithMetrics(e){return e instanceof _}onWorkerMessage(e){switch(e.type){case`draw`:this.drawEngineCommands(e.payload);break;case`performanceMetricsReport`:{let t=this._canvasDrawer;t!=null&&this.isCanvasDrawerWithMetrics(t)&&t.setPerformanceMetrics(e.payload);break}case`contextDidChangeStatus`:{var t;let n=s.fromJSON(e.payload);(t=this.loadingOverlay)==null||t.hide(),n.isValid?(this.clearError(),this.setVideoElementOpacity(`1`)):this.displayError(n);break}case`viewSizeChanged`:{let t=e.payload;if(t==null)return;this.onSDCViewSizeChangedCallback(t);break}default:var n;(n=this.hintPresenter)==null||n.handleMessage(e);break}}onSDCViewSizeChangedCallback(e){this.updateHintPresenterViewFinderRect(e.viewFinderRect)}updateHintPresenterViewFinderRect(e){var t;(t=this.hintPresenter)==null||t.setViewFinderRect(new i(new r(e.origin.x,e.origin.y),new a(e.size.width,e.size.height)))}drawEngineCommands(e){var t;(t=this.canvasDrawer)==null||t.draw(e)}displayError(e){this.errorElement.textContent=`Error ${e.code}: ${e.message}`,this.errorElement.hidden=!1}clearError(){this.errorElement.textContent=``,this.errorElement.hidden=!0}updateControls(){for(let t of this.controls){var e;(e=t.update)==null||e.call(t,this)}}async onFrameSourceChange(e){let t=e==null?void 0:e.type;if(this.setupHtmlElementVisibility(t),t===`camera`){let t=e==null?void 0:e.getCurrentState();t!=null&&await this.onCameraStateChanged(t)}else t===`singleImageUploader`&&this.setupHtmlElementSingleImageUploader(e.settings)}async onCameraStateChanged(e){var r;switch((r=this.cameraPaintboardElement)==null||r.classList.toggle(w.PAINTBOARD_CLASS_NAME_STATE_ON,e===`on`),e){case`stopping`:this.hiddenProperties.freezeFrameWhenStoppingFrameSource&&this.freezeFrame(),this.setVideoElementOpacity(`0`);return;case`starting`:case`bootingUp`:case`wakingUp`:if(!this.htmlElement){t.error(`cannot set frame source stream before connecting view to an HTML element`);return}this.videoElement&&(n.instance().gui.isCameraRecoveryVisible=this.isCameraRecoveryVisible.bind(this),n.instance().gui.setCameraRecoveryVisible=this.setCameraRecoveryVisible.bind(this),this.setVideoElementOpacity(`0`));return;case`off`:this.setVideoElementOpacity(`0`),this.updateControls();return;case`on`:await n.instance().waitForCapabilities(),this.updateControls(),this.unfreezeFrame(),this.setVideoElementOpacity(`1`);break;case`goingToSleep`:this.freezeFrame();break;default:}}setVideoElementOpacity(e){this.videoElement&&(this.videoElement.style.opacity=e),this.canvasElement&&(this.canvasElement.style.opacity=e)}onSingleImageUploaderSettingsChange(e){this.setupHtmlElementSingleImageUploader(e)}setHiddenProperty(e,t){this.hiddenProperties[e]=t}async onVisibilityChange(){var e;let r=(e=this.videoElement)==null?void 0:e.srcObject;if(this.hiddenProperties.stopVideoTracksOnVisibilityChange&&(document.visibilityState===`hidden`&&n.instance().stopVideoTracks(),document.visibilityState===`visible`&&n.instance().activeCamera!=null&&r!=null)){var i;if(!r.active||(i=r.getVideoTracks()[0])!=null&&i.muted)try{t.debug(`Detected visibility change ("visible") event with inactive video source, try to reinitialize camera`),await n.instance().reinitializeCamera()}catch{}else t.debug(`Detected visibility change ("visible") event with active video source, replay video`),n.instance().playVideo()}}async cameraRecovery(e){e.preventDefault(),n.instance().activeCamera=n.instance().selectedCamera,await n.instance().reinitializeCamera()}freezeFrame(){var e;if(!this.frozenFrame)return;let t=n.instance().getCurrentFrame();if(!t)return;let r=new ImageData(t.data,t.width,t.height);this.frozenFrameCanvas.width=r.width,this.frozenFrameCanvas.height=r.height,this.frozenFrame.width=r.width,this.frozenFrame.height=r.height,(e=this.frozenFrameCanvas.getContext(`2d`))==null||e.putImageData(r,0,0),this.frozenFrame.src=this.frozenFrameCanvas.toDataURL(`image/jpeg`,.4),this.frozenFrame.classList.toggle(w.MIRRORED_CLASS_NAME,n.instance().isMirrorImageEnabled()),this.frozenFrame.hidden=!1}unfreezeFrame(){this.frozenFrame&&(this.frozenFrame.src=``,this.frozenFrame.hidden=!0)}onTap(e){var t;(t=this.privateContext)==null||t.workerCommand(`onTap`,{point:e.toJSONObject()})}onSwipeUp(){var e;(e=this.swipeToZoomGesture)==null||e.triggerZoomIn()}onSwipeDown(){var e;(e=this.swipeToZoomGesture)==null||e.triggerZoomOut()}onPinchIn(){var e;(e=this.pinchToZoomGesture)==null||e.triggerZoomIn()}onPinchOut(){var e;(e=this.pinchToZoomGesture)==null||e.triggerZoomOut()}didZoomInGesture(){this.performZoomIn()}didZoomOutGesture(){this.performZoomOut()}addSwipeToZoomListener(){let e=this._zoomGestures.find(e=>e.toJSONObject().type===`swipeToZoom`);e&&(this.swipeToZoomGesture=e,e.addListener(this))}removeSwipeToZoomListener(){var e;(e=this.swipeToZoomGesture)==null||e.removeListener(this),this.swipeToZoomGesture=null}addPinchToZoomListener(){let e=this._zoomGestures.find(e=>e.toJSONObject().type===`pinchToZoom`);e&&(this.pinchToZoomGesture=e,e.addListener(this))}removePinchToZoomListener(){var e;(e=this.pinchToZoomGesture)==null||e.removeListener(this),this.pinchToZoomGesture=null}async performZoomIn(){var e;let t=(e=this._context)==null?void 0:e.frameSource;if(!(t!=null&&t.settings))return;let n=t.settings.zoomFactor,r=[...t.settings.zoomLevels].sort((e,t)=>e-t).find(e=>e>n);r!=null&&(await t.setZoomFactor(r),this.showZoomNotification(r))}async performZoomOut(){var e;let t=(e=this._context)==null?void 0:e.frameSource;if(!(t!=null&&t.settings))return;let n=t.settings.zoomFactor,r=[...[...t.settings.zoomLevels].sort((e,t)=>e-t)].reverse().find(e=>e<n);r!=null&&(await t.setZoomFactor(r),this.showZoomNotification(r))}async showZoomNotification(e){var t,n;if(!this.shouldShowZoomNotification)return;let r=E.toJSON(),i={tag:`zoomNotification`,text:this.formatZoomFactor(e),hintStyle:{textColor:r,backgroundColor:D.neutralWhite.withAlpha(.8).toJSON(),textAlignment:`center`,hintIcon:`none`,iconColor:r,isAnimatedToView:!0,hintAnchor:`top`,hintAnchorOffset:16,horizontalMargin:16,maxWidthFraction:1,textSize:14,textWeight:700,lineHeight:24,maxLines:3,cornerRadius:4,fitToText:!0}};(t=this.zoomNotificationTimeout)==null||t.stop(),this.zoomNotificationTimeout=new d(this.zoomNotificationDuration,()=>{var e;(e=this.hintPresenter)==null||e.hideToast(i)}),await((n=this.hintPresenter)==null?void 0:n.showToast(i)),this.zoomNotificationTimeout.start()}formatZoomFactor(e){let t=Math.ceil(e*100)/100;return parseFloat(t.toPrecision(3))+`x`}};export{F as DataCaptureView};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { t as Serializable } from "./Serializable-Dbturs7d.js";
|
|
2
|
+
|
|
3
|
+
//#region src/main/ZoomGestureListener.d.ts
|
|
4
|
+
interface ZoomGestureListener {
|
|
5
|
+
didZoomInGesture?(zoomGesture: ZoomGesture): void;
|
|
6
|
+
didZoomOutGesture?(zoomGesture: ZoomGesture): void;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/main/DataCaptureViewPlusRelated.d.ts
|
|
10
|
+
declare enum LogoStyle {
|
|
11
|
+
Minimal = "minimal",
|
|
12
|
+
Extended = "extended"
|
|
13
|
+
}
|
|
14
|
+
interface FocusGestureJSON {
|
|
15
|
+
type: string;
|
|
16
|
+
}
|
|
17
|
+
type FocusGesture = Serializable<FocusGestureJSON>;
|
|
18
|
+
declare class TapToFocus implements FocusGesture, Serializable<FocusGestureJSON> {
|
|
19
|
+
private type;
|
|
20
|
+
toJSONObject(): FocusGestureJSON;
|
|
21
|
+
}
|
|
22
|
+
interface ZoomGestureJSON {
|
|
23
|
+
type: string;
|
|
24
|
+
}
|
|
25
|
+
interface ZoomGesture extends Serializable<ZoomGestureJSON> {
|
|
26
|
+
addListener(listener: ZoomGestureListener): void;
|
|
27
|
+
removeListener(listener: ZoomGestureListener): void;
|
|
28
|
+
triggerZoomIn(): void;
|
|
29
|
+
triggerZoomOut(): void;
|
|
30
|
+
}
|
|
31
|
+
declare class SwipeToZoom implements ZoomGesture {
|
|
32
|
+
private readonly type;
|
|
33
|
+
private readonly listeners;
|
|
34
|
+
addListener(listener: ZoomGestureListener): void;
|
|
35
|
+
removeListener(listener: ZoomGestureListener): void;
|
|
36
|
+
triggerZoomIn(): void;
|
|
37
|
+
triggerZoomOut(): void;
|
|
38
|
+
toJSONObject(): ZoomGestureJSON;
|
|
39
|
+
}
|
|
40
|
+
declare class PinchToZoom implements ZoomGesture {
|
|
41
|
+
private readonly type;
|
|
42
|
+
private readonly listeners;
|
|
43
|
+
addListener(listener: ZoomGestureListener): void;
|
|
44
|
+
removeListener(listener: ZoomGestureListener): void;
|
|
45
|
+
triggerZoomIn(): void;
|
|
46
|
+
triggerZoomOut(): void;
|
|
47
|
+
toJSONObject(): ZoomGestureJSON;
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { SwipeToZoom as a, ZoomGestureJSON as c, PinchToZoom as i, ZoomGestureListener as l, FocusGestureJSON as n, TapToFocus as o, LogoStyle as r, ZoomGesture as s, FocusGesture as t };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { F as FocusGesture, a as FocusGestureJSON, L as LogoStyle, P as PinchToZoom, S as SwipeToZoom, T as TapToFocus, Z as ZoomGesture, b as ZoomGestureJSON } from './DataCaptureViewPlusRelated-BOrDBPHq.js';
|
|
1
|
+
import { a as SwipeToZoom, c as ZoomGestureJSON, i as PinchToZoom, n as FocusGestureJSON, o as TapToFocus, r as LogoStyle, s as ZoomGesture, t as FocusGesture } from "./DataCaptureViewPlusRelated-DcAi6mWY.js";
|
|
2
|
+
export { FocusGesture, FocusGestureJSON, LogoStyle, PinchToZoom, SwipeToZoom, TapToFocus, ZoomGesture, ZoomGestureJSON };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
let e=function(e){return e.Minimal=`minimal`,e.Extended=`extended`,e}({});var t=class{constructor(){this.type=`tapToFocus`}toJSONObject(){return{type:this.type}}},n=class{constructor(){this.type=`swipeToZoom`,this.listeners=new Set}addListener(e){this.listeners.add(e)}removeListener(e){this.listeners.delete(e)}triggerZoomIn(){for(let t of this.listeners){var e;(e=t.didZoomInGesture)==null||e.call(t,this)}}triggerZoomOut(){for(let t of this.listeners){var e;(e=t.didZoomOutGesture)==null||e.call(t,this)}}toJSONObject(){return{type:this.type}}},r=class{constructor(){this.type=`pinchToZoom`,this.listeners=new Set}addListener(e){this.listeners.add(e)}removeListener(e){this.listeners.delete(e)}triggerZoomIn(){for(let t of this.listeners){var e;(e=t.didZoomInGesture)==null||e.call(t,this)}}triggerZoomOut(){for(let t of this.listeners){var e;(e=t.didZoomOutGesture)==null||e.call(t,this)}}toJSONObject(){return{type:this.type}}};export{e as LogoStyle,r as PinchToZoom,n as SwipeToZoom,t as TapToFocus};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/main/DefaultViewClassnames.d.ts
|
|
2
2
|
declare const defaultViewClassnames: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
CONTAINER_CLASS_NAME: string;
|
|
4
|
+
PAINTBOARDS_CONTAINER_CLASS_NAME: string;
|
|
5
|
+
PAINTBOARD_CLASS_NAME: string;
|
|
6
|
+
PAINTBOARD_CLASS_NAME_STATE_ON: string;
|
|
7
|
+
MIRRORED_CLASS_NAME: string;
|
|
8
|
+
CAMERA_RECOVERY_CLASS_NAME: string;
|
|
9
|
+
ERROR_CLASS_NAME: string;
|
|
10
|
+
SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME: string;
|
|
11
|
+
CANVAS_VIDEO_PREVIEW_CLASS_NAME: string;
|
|
12
|
+
FROZEN_FRAME: string;
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
export { defaultViewClassnames };
|
|
14
|
+
//#endregion
|
|
15
|
+
export { defaultViewClassnames };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
const e={CONTAINER_CLASS_NAME:`scandit-container`,PAINTBOARDS_CONTAINER_CLASS_NAME:`scandit-paintboards`,PAINTBOARD_CLASS_NAME:`scandit-paintboard`,PAINTBOARD_CLASS_NAME_STATE_ON:`scandit-paintboard--camera-on`,MIRRORED_CLASS_NAME:`scandit-mirrored`,CAMERA_RECOVERY_CLASS_NAME:`scandit-camera-recovery`,ERROR_CLASS_NAME:`scandit-error`,SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME:`scandit-single-image-uploader-container`,CANVAS_VIDEO_PREVIEW_CLASS_NAME:`scandit-canvas-video-preview`,FROZEN_FRAME:`frozen-frame`};export{e as defaultViewClassnames};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/main/commons/Direction.d.ts
|
|
2
|
+
declare enum Direction {
|
|
3
|
+
None = "none",
|
|
4
|
+
Horizontal = "horizontal",
|
|
5
|
+
LeftToRight = "leftToRight",
|
|
6
|
+
RightToLeft = "rightToLeft",
|
|
7
|
+
Vertical = "vertical",
|
|
8
|
+
TopToBottom = "topToBottom",
|
|
9
|
+
BottomToTop = "bottomToTop"
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Direction as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//#region src/main/private/DrawCommandBuffer.d.ts
|
|
2
|
+
declare enum DrawCommandEnum {
|
|
3
|
+
AddLine = 0,
|
|
4
|
+
AddArc = 1,
|
|
5
|
+
AddCircle = 2,
|
|
6
|
+
AddRect = 3,
|
|
7
|
+
AddRoundedRect = 4,
|
|
8
|
+
BeginPath = 5,
|
|
9
|
+
ClosePath = 6,
|
|
10
|
+
Fill = 7,
|
|
11
|
+
Stroke = 8,
|
|
12
|
+
Clear = 9,
|
|
13
|
+
SetStrokeWidth = 10,
|
|
14
|
+
SetFillColor = 11,
|
|
15
|
+
SetStrokeColor = 12,
|
|
16
|
+
MoveTo = 13,
|
|
17
|
+
LineTo = 14,
|
|
18
|
+
SaveState = 15,
|
|
19
|
+
RestoreState = 16,
|
|
20
|
+
Translate = 17,
|
|
21
|
+
ScaleAroundPoint = 18,
|
|
22
|
+
BezierTo = 19,
|
|
23
|
+
Transform = 20,
|
|
24
|
+
Scale = 21,
|
|
25
|
+
AddPathWinding = 22
|
|
26
|
+
}
|
|
27
|
+
interface Color {
|
|
28
|
+
r: number;
|
|
29
|
+
g: number;
|
|
30
|
+
b: number;
|
|
31
|
+
a: number;
|
|
32
|
+
}
|
|
33
|
+
declare class DrawCommandBuffer {
|
|
34
|
+
private _view;
|
|
35
|
+
private _index;
|
|
36
|
+
constructor(stream: Uint8Array);
|
|
37
|
+
extractCommandType(): DrawCommandEnum;
|
|
38
|
+
extractFloat(): number;
|
|
39
|
+
extractBoolean(): boolean;
|
|
40
|
+
extractColor(): Color;
|
|
41
|
+
isConsumed(): boolean;
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { DrawCommandBuffer as n, DrawCommandEnum as r, Color as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/main/private/EventManager.d.ts
|
|
2
|
+
declare class EventManager<ListenerType> {
|
|
3
|
+
protected readonly _listeners: Set<ListenerType>;
|
|
4
|
+
protected get listeners(): ListenerType[];
|
|
5
|
+
addListener(listener: ListenerType): void;
|
|
6
|
+
removeListener(listener: ListenerType): void;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { EventManager as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { t as Serializable } from "./Serializable-Dbturs7d.js";
|
|
2
|
+
import { n as SoundJSON, t as Sound } from "./Sound-ByTzZ3ia.js";
|
|
3
|
+
import { n as VibrationJSON, t as Vibration } from "./Vibration-B1J9JMda.js";
|
|
4
|
+
|
|
5
|
+
//#region src/main/Feedback.d.ts
|
|
6
|
+
interface FeedbackJSON {
|
|
7
|
+
vibration?: VibrationJSON;
|
|
8
|
+
sound?: SoundJSON;
|
|
9
|
+
}
|
|
10
|
+
declare class Feedback implements Serializable<FeedbackJSON> {
|
|
11
|
+
private readonly _vibration;
|
|
12
|
+
private readonly _sound;
|
|
13
|
+
constructor(vibration: Vibration | null, sound: Sound | null);
|
|
14
|
+
static get defaultFeedback(): Feedback;
|
|
15
|
+
get vibration(): Vibration | null;
|
|
16
|
+
get sound(): Sound | null;
|
|
17
|
+
emit(): void;
|
|
18
|
+
toJSONObject(): FeedbackJSON;
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { FeedbackJSON as n, Feedback as t };
|
package/build/js/Feedback.d.ts
CHANGED
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { SoundJSON, Sound } from './Sound.js';
|
|
4
|
-
import { VibrationJSON, Vibration } from './Vibration.js';
|
|
5
|
-
|
|
6
|
-
interface FeedbackJSON {
|
|
7
|
-
vibration?: VibrationJSON;
|
|
8
|
-
sound?: SoundJSON;
|
|
9
|
-
}
|
|
10
|
-
declare class Feedback implements Serializable<FeedbackJSON> {
|
|
11
|
-
private readonly _vibration;
|
|
12
|
-
private readonly _sound;
|
|
13
|
-
constructor(vibration: Vibration | null, sound: Sound | null);
|
|
14
|
-
static get defaultFeedback(): Feedback;
|
|
15
|
-
get vibration(): Vibration | null;
|
|
16
|
-
get sound(): Sound | null;
|
|
17
|
-
emit(): void;
|
|
18
|
-
toJSONObject(): FeedbackJSON;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { Feedback, type FeedbackJSON };
|
|
1
|
+
import { n as FeedbackJSON, t as Feedback } from "./Feedback-D4kA2xWA.js";
|
|
2
|
+
export { Feedback, FeedbackJSON };
|
package/build/js/Feedback.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Sound as e}from"./Sound.js";import{Vibration as t}from"./Vibration.js";var n=class n{constructor(e,t){this._vibration=null,this._sound=null,this._vibration=e,this._sound=t}static get defaultFeedback(){return new n(t.defaultVibration,e.defaultSound)}get vibration(){return this._vibration}get sound(){return this._sound}emit(){this.sound&&this.sound.play(),this.vibration&&this.vibration.vibrate()}toJSONObject(){let e={};return this.sound!==null&&(e.sound=this.sound.toJSONObject()),this.vibration!==null&&(e.vibration=this.vibration.toJSONObject()),e}};export{n as Feedback};
|
package/build/js/FrameData.d.ts
CHANGED
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
import './ScanditIcon.js';
|
|
4
|
-
import './Camera-HgH6fwnW.js';
|
|
5
|
-
import './commons/Rect.js';
|
|
6
|
-
import './private/Serializable.js';
|
|
7
|
-
import './commons/Point.js';
|
|
8
|
-
import './commons/Size.js';
|
|
9
|
-
import './private/privateAccess.js';
|
|
10
|
-
import './DataCaptureContextSettings.js';
|
|
11
|
-
import './commons/JSONType.js';
|
|
12
|
-
import './DataCaptureViewPlusRelated-BOrDBPHq.js';
|
|
13
|
-
import './NotificationPresenter/NotificationPresenter.js';
|
|
14
|
-
import './NotificationPresenter/NotificationConfiguration.js';
|
|
15
|
-
import './commons/Color.js';
|
|
16
|
-
import './NotificationPresenter/NotificationStyle.js';
|
|
17
|
-
import './private/utils/ScanditHTMLElement.js';
|
|
18
|
-
import './commons/Anchor.js';
|
|
19
|
-
import './commons/MarginsWithUnit.js';
|
|
20
|
-
import './commons/NumberWithUnit.js';
|
|
21
|
-
import './commons/MeasureUnit.js';
|
|
22
|
-
import './commons/Orientation.js';
|
|
23
|
-
import './commons/PointWithUnit.js';
|
|
24
|
-
import './commons/Quadrilateral.js';
|
|
25
|
-
import './private/CustomLocationsView.js';
|
|
26
|
-
import './private/View.js';
|
|
27
|
-
import './private/AnchorPositions.js';
|
|
28
|
-
import './private/nativeHandle.js';
|
|
29
|
-
import './private/AdditionalLayerPosition.js';
|
|
30
|
-
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
31
|
-
import './logger.js';
|
|
32
|
-
import './private/FrameReaders/ColorType.js';
|
|
33
|
-
import './private/BatteryInterface.js';
|
|
34
|
-
import './LoadingStatus.js';
|
|
35
|
-
import './private/djinni-types/index.js';
|
|
36
|
-
import './private/HtmlElementState.js';
|
|
37
|
-
import './commons/SizeWithUnit.js';
|
|
38
|
-
import './private/utils/AsyncStateMachine.js';
|
|
39
|
-
import './tsHelper.js';
|
|
1
|
+
import { M as PrivateLoadableFrameData, N as convertToPublicFrameData, j as FrameData } from "./DataCaptureContext-CYDrBO6_.js";
|
|
2
|
+
export { FrameData, PrivateLoadableFrameData, convertToPublicFrameData };
|