@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var M="PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNjQuNjIgMTIuMjIiPjxwYXRoIGQ9Ik0xMDEuNTUuOTFhMi4yOCAyLjI4IDAgMCAwLTEuOTcgMS43MSAyLjcyIDIuNzIgMCAwIDAgMCAxLjExIDIuNDIgMi40MiAwIDAgMCAxLjI0IDEuNTRjLjQ2LjIzLjUuMjQgMS43OS4yNmwxLjE1LjAyLjIyLjFhMS41MSAxLjUxIDAgMCAxIC44IDEuNyAxLjQxIDEuNDEgMCAwIDEtMS4wNiAxLjA4Yy0uMTIuMDMtLjguMDQtMi4wOS4wNGE3Ljc0IDcuNzQgMCAwIDAtMS45My4wNSAzLjE5IDMuMTkgMCAwIDAgLjAxLjc3IDE0LjY5IDE0LjY5IDAgMCAwIDIuMS4wM2wyLjA4LS4wMS4yNi0uMWEyLjI3IDIuMjcgMCAwIDAgMS41LTEuNzQgMi41NSAyLjU1IDAgMCAwLS4wOC0xLjIgMi40IDIuNCAwIDAgMC0xLjE0LTEuMzZjLS40Ni0uMjItLjU1LS4yMy0xLjY1LS4yMy0xLjMyIDAtMS41My0uMDYtMS45NS0uNDdhMS40OCAxLjQ4IDAgMCAxLS40NS0uOTQgMS40MyAxLjQzIDAgMCAxIC45NC0xLjRjLjItLjA4LjItLjA4IDIuMDktLjFsMS45LS4wMXYtLjQxYy4wMi0uMzEgMC0uNDItLjAyLS40NC0uMDYtLjA0LTMuNDMtLjAzLTMuNzQgMFptMjAuMDIuMTFjLS4zNCAxLjI0LTIuMiA4LjI3LTIuMTkgOC4yOGExLjg2IDEuODYgMCAwIDAgLjQ0LjAzYy4zOCAwIC40MyAwIC40NC0uMDZsMS0zLjcyLjk4LTMuNyAxIDMuNjcgMSAzLjc1YzAgLjAzLjA2LjA2LjQ1LjA2aC40NWwtLjAyLS4xYy0uMDQtLjE1LTIuMTMtOC0yLjE5LTguMThsLS4wNS0uMTdoLTEuMjdsLS4wNC4xNFptOC4yMyA0LjA4VjkuM2guODNsLjAyLTMuNzcuMDEtMy43NyAyLjIgMy43NyAyLjIgMy43Ny41Mi4wMS41Mi4wMVY1LjEyTDEzNi4wOS45aC0uODZsLS4wMiAzLjQzLS4wMiAzLjQ0LTIuMDItMy40NEwxMzEuMTYuOWwtLjY5LS4wMWgtLjY4Wk0xNTIuNzkuOTNjLS4wMy4wNy0uMDMgOC4yOCAwIDguMzUuMDEuMDQuMDguMDUuNDMuMDVoLjRWLjg4aC0uNGMtLjM1IDAtLjQyLjAxLS40My4wNVptNS4yMi4zNnYuNDJoMi44NHYzLjhsLjAyIDMuOGguMzhhMS4wNSAxLjA1IDAgMCAwIC40Mi0uMDJjLjA0LS4wNC4wNC0uNjMuMDQtMy44MVYxLjdoMi44Vi44OGgtNi41Wk0xMTEuODUuOTZhMy4yNyAzLjI3IDAgMCAwLTIuMDQgMS42NCA0Ljk4IDQuOTggMCAwIDAtLjU1IDEuNzkgOC4yNCA4LjI0IDAgMCAwIC4wOCAyLjA2IDMuMzUgMy4zNSAwIDAgMCAyLjI4IDIuNzkgNy44NSA3Ljg1IDAgMCAwIDIuMS4wN2gxLjgzbC4wMS0uNDIuMDEtLjQyaC0xLjcxYy0xLjkgMC0xLjk0IDAtMi4zNS0uMjFhMi44NSAyLjg1IDAgMCAxLTEuMzUtMi4xIDcuMTcgNy4xNyAwIDAgMS0uMDMtMS43NyAzLjA4IDMuMDggMCAwIDEgMS43LTIuNTNjLjE4LS4wNy4yMS0uMDcgMS45NC0uMWgxLjc1Vi45MmgtMS43NGExNS45NyAxNS45NyAwIDAgMC0xLjkzLjA0Wm0yOS41NyA0LjE1djQuMmwxLjguMDFhOS41NiA5LjU2IDAgMCAwIDIuNjQtLjEzYzEuNTgtLjQ1IDIuNDktMi4xIDIuNDEtNC4zOGE0LjMxIDQuMzEgMCAwIDAtLjQzLTEuODYgMy43NiAzLjc2IDAgMCAwLTEuODctMS44NGMtLjUtLjE5LS41OC0uMi0yLjY2LS4yaC0xLjl2NC4yWm0zLjc5LTMuM2EyLjgxIDIuODEgMCAwIDEgMi4wNCAyLjA1IDMuNDkgMy40OSAwIDAgMSAuMTYgMS4zNkE0LjQ4IDQuNDggMCAwIDEgMTQ3IDcuMWEyLjIzIDIuMjMgMCAwIDEtMS4wNSAxLjEzYy0uNDUuMjItLjQ2LjIyLTIuMTUuMjRoLTEuNTN2LTYuN2gxLjM2Yy44IDAgMS40NS4wMiAxLjU4LjA0WiIgZmlsbD0iIzEyMTYxOSIgc3Ryb2tlPSIjMTIxNjE5IiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS13aWR0aD0iLjIiLz48cGF0aCBkPSJNNS45IDIuOTRoMS4xN2EzLjI3IDMuMjcgMCAwIDAtLjI5LTEuMzJBMi41NyAyLjU3IDAgMCAwIDYuMDUuNyAzIDMgMCAwIDAgNC45OC4xNyA0Ljk2IDQuOTYgMCAwIDAgMy42NSAwYTQuNzYgNC43NiAwIDAgMC0xLjI0LjE3IDMuNDEgMy40MSAwIDAgMC0xLjA4LjQ5IDIuNSAyLjUgMCAwIDAtLjc2Ljg0QTIuNDYgMi40NiAwIDAgMCAuMyAyLjcyYTIuMDMgMi4wMyAwIDAgMCAuMjUgMS4wNiAyLjA2IDIuMDYgMCAwIDAgLjY4LjY5IDMuOTMgMy45MyAwIDAgMCAuOTUuNDNxLjUzLjE2IDEuMDkuMjhsMS4wOC4yNGE0Ljk1IDQuOTUgMCAwIDEgLjk2LjMgMS44NiAxLjg2IDAgMCAxIC42OC41IDEuMTcgMS4xNyAwIDAgMSAuMjUuNzcgMS41MiAxLjUyIDAgMCAxLS4yMS44NCAxLjUxIDEuNTEgMCAwIDEtLjU1LjUgMi40NyAyLjQ3IDAgMCAxLS43Ni4yOCA0LjYxIDQuNjEgMCAwIDEtLjgzLjA3IDMuOTcgMy45NyAwIDAgMS0xLjAyLS4xMyAyLjUyIDIuNTIgMCAwIDEtLjg2LS40IDIuMDcgMi4wNyAwIDAgMS0uNi0uNyAyLjEgMi4xIDAgMCAxLS4yMy0xSDBBMy4yNiAzLjI2IDAgMCAwIC4zIDcuOWEyLjggMi44IDAgMCAwIC44NCAxLjAxIDMuNjQgMy42NCAwIDAgMCAxLjIyLjYgNS40NCA1LjQ0IDAgMCAwIDEuNDguMiA1LjY0IDUuNjQgMCAwIDAgMS4yOC0uMTYgMy43IDMuNyAwIDAgMCAxLjE2LS40OCAyLjczIDIuNzMgMCAwIDAgLjg1LS44NiAyLjMzIDIuMzMgMCAwIDAgLjMzLTEuMjYgMi4zMyAyLjMzIDAgMCAwLS4yNS0xLjE1IDIuMjYgMi4yNiAwIDAgMC0uNjgtLjc1IDMuNTggMy41OCAwIDAgMC0uOTUtLjQ4cS0uNTQtLjE4LTEuMDktLjN0LTEuMDgtLjI0YTUuNjggNS42OCAwIDAgMS0uOTYtLjI4IDEuODggMS44OCAwIDAgMS0uNjgtLjQ0Ljk3Ljk3IDAgMCAxLS4yNS0uNyAxLjUgMS41IDAgMCAxIC4xNy0uNzUgMS4zNiAxLjM2IDAgMCAxIC40Ny0uNSAyLjA0IDIuMDQgMCAwIDEgLjY3LS4yNSAzLjc4IDMuNzggMCAwIDEgLjc3LS4wOCAyLjYyIDIuNjIgMCAwIDEgMS41OC40NSAxLjkzIDEuOTMgMCAwIDEgLjcyIDEuNDVabTkuMzkgMmgxLjE0YTIuNjYgMi42NiAwIDAgMC0uMzEtMS4wNCAyLjMgMi4zIDAgMCAwLS42My0uNzIgMi42MSAyLjYxIDAgMCAwLS44OS0uNDIgNC4wNiA0LjA2IDAgMCAwLTEuMDctLjE0IDMuMjUgMy4yNSAwIDAgMC0xLjM5LjI4IDIuNzggMi43OCAwIDAgMC0xIC43NyAzLjI2IDMuMjYgMCAwIDAtLjU5IDEuMTQgNC45MyA0LjkzIDAgMCAwLS4yIDEuNDIgNC41MyA0LjUzIDAgMCAwIC4yIDEuMzggMy4wNCAzLjA0IDAgMCAwIC42IDEuMDkgMi42MyAyLjYzIDAgMCAwIDEgLjcgMy41IDMuNSAwIDAgMCAxLjM1LjI0IDIuOTIgMi45MiAwIDAgMCAyLjA0LS42NyAzLjEgMy4xIDAgMCAwIC45My0xLjkzaC0xLjEzYTEuOTQgMS45NCAwIDAgMS0uNTcgMS4yMSAxLjggMS44IDAgMCAxLTEuMjguNDMgMS44MyAxLjgzIDAgMCAxLS45LS4yIDEuNzUgMS43NSAwIDAgMS0uNi0uNTYgMi40NCAyLjQ0IDAgMCAxLS4zNS0uNzggMy43NCAzLjc0IDAgMCAxLS4xMS0uOTEgNC41NyA0LjU3IDAgMCAxIC4xLS45OSAyLjQ2IDIuNDYgMCAwIDEgLjM1LS44NCAxLjc4IDEuNzggMCAwIDEgLjY0LS41OCAyLjA2IDIuMDYgMCAwIDEgMS0uMjIgMS42OCAxLjY4IDAgMCAxIDEuMTIuMzUgMS42OCAxLjY4IDAgMCAxIC41NS45OVpNMjUuNiA5LjQ4YTEuNTYgMS41NiAwIDAgMS0uOC4xNy45NS45NSAwIDAgMS0uNjgtLjI1IDEuMDQgMS4wNCAwIDAgMS0uMjUtLjc4IDIuNjQgMi42NCAwIDAgMS0xLjA2Ljc4IDMuNSAzLjUgMCAwIDEtMS4zLjI1IDMuNSAzLjUgMCAwIDEtLjg3LS4xIDIuMDEgMi4wMSAwIDAgMS0uNy0uMzMgMS41NiAxLjU2IDAgMCAxLS40OC0uNTggMS45NSAxLjk1IDAgMCAxLS4xNy0uODYgMS45NyAxLjk3IDAgMCAxIC4yLS45NCAxLjcgMS43IDAgMCAxIC41LS41OSAyLjM1IDIuMzUgMCAwIDEgLjczLS4zNXEuNC0uMTEuODQtLjIuNDUtLjA4Ljg2LS4xM2E0LjgyIDQuODIgMCAwIDAgLjcyLS4xMyAxLjIgMS4yIDAgMCAwIC41LS4yNS42LjYgMCAwIDAgLjE4LS40NyAxLjEgMS4xIDAgMCAwLS4xNC0uNTkuOTQuOTQgMCAwIDAtLjM1LS4zMyAxLjQzIDEuNDMgMCAwIDAtLjQ4LS4xNiAzLjYzIDMuNjMgMCAwIDAtLjUzLS4wNCAyLjM0IDIuMzQgMCAwIDAtMS4xNy4yNyAxLjEzIDEuMTMgMCAwIDAtLjUgMWgtMS4xYTIuMzkgMi4zOSAwIDAgMSAuMjYtMS4wNSAxLjk3IDEuOTcgMCAwIDEgLjYyLS43IDIuNjIgMi42MiAwIDAgMSAuOS0uMzggNC43IDQuNyAwIDAgMSAxLjA3LS4xMiA2LjMgNi4zIDAgMCAxIC45LjA3IDIuMzYgMi4zNiAwIDAgMSAuOC4yNiAxLjU2IDEuNTYgMCAwIDEgLjYuNTcgMS44MSAxLjgxIDAgMCAxIC4yMS45NXYzLjQ1YTIuNTkgMi41OSAwIDAgMCAuMDUuNThxLjA0LjE5LjMuMTlhMS4xIDEuMSAwIDAgMCAuMzQtLjA3Wm0tMS44LTMuNDVhMS4zOCAxLjM4IDAgMCAxLS41NC4yM3EtLjMzLjA3LS43LjEydC0uNzUuMWEyLjc1IDIuNzUgMCAwIDAtLjY4LjE4IDEuMjMgMS4yMyAwIDAgMC0uNDguMzcgMS4wNCAxLjA0IDAgMCAwLS4yLjY2LjkuOSAwIDAgMCAuMTIuNDYuOTIuOTIgMCAwIDAgLjI4LjMgMS4yIDEuMiAwIDAgMCAuNDEuMTggMi4yNyAyLjI3IDAgMCAwIC41LjA1IDIuNjIgMi42MiAwIDAgMCAuOTMtLjE1IDEuOTcgMS45NyAwIDAgMCAuNjQtLjM4IDEuNDkgMS40OSAwIDAgMCAuMzctLjUgMS4yNSAxLjI1IDAgMCAwIC4xMS0uNVptNC43OC0zLjI1VjkuNWgxLjFWNS43YTIuNzIgMi43MiAwIDAgMSAuMTItLjg0IDEuOSAxLjkgMCAwIDEgLjM3LS42NiAxLjY1IDEuNjUgMCAwIDEgLjYyLS40NSAyLjI1IDIuMjUgMCAwIDEgLjg4LS4xNSAxLjM1IDEuMzUgMCAwIDEgMSAuMzYgMS4zMyAxLjMzIDAgMCAxIC4zNi45OVY5LjVoMS4xVjUuMDhhNC4xNiA0LjE2IDAgMCAwLS4xLTEgMS44OCAxLjg4IDAgMCAwLS40LS43NyAxLjgyIDEuODIgMCAwIDAtLjctLjUgMi45MiAyLjkyIDAgMCAwLTEuMS0uMTggMi4zMyAyLjMzIDAgMCAwLTIuMTkgMS4yMmgtLjAzVjIuNzhabTkuMTggMFY5LjVoMS4xVjUuN2EyLjcyIDIuNzIgMCAwIDEgLjEyLS44NCAxLjkgMS45IDAgMCAxIC4zNy0uNjYgMS42NSAxLjY1IDAgMCAxIC42Mi0uNDUgMi4yNSAyLjI1IDAgMCAxIC44OC0uMTUgMS4zNSAxLjM1IDAgMCAxIDEgLjM3IDEuMzMgMS4zMyAwIDAgMSAuMzYuOThWOS41aDEuMVY1LjA4YTQuMTYgNC4xNiAwIDAgMC0uMS0xIDEuODggMS44OCAwIDAgMC0uNC0uNzcgMS44MiAxLjgyIDAgMCAwLS43LS41IDIuOTIgMi45MiAwIDAgMC0xLjEtLjE4IDIuMzMgMi4zMyAwIDAgMC0yLjE5IDEuMjJoLS4wM1YyLjc4Wm0xMC4zNC0xLjJWLjIxaC0xLjF2MS4zNVptLTEuMSAxLjJWOS41aDEuMVYyLjc4Wm00Ljc3IDBWOS41aDEuMVY1LjdhMi43MiAyLjcyIDAgMCAxIC4xMy0uODQgMS45IDEuOSAwIDAgMSAuMzctLjY2IDEuNjUgMS42NSAwIDAgMSAuNjItLjQ1IDIuMjUgMi4yNSAwIDAgMSAuODctLjE1IDEuMzUgMS4zNSAwIDAgMSAxIC4zNiAxLjMzIDEuMzMgMCAwIDEgLjM3Ljk5VjkuNWgxLjFWNS4wOGE0LjE2IDQuMTYgMCAwIDAtLjExLTEgMS44OCAxLjg4IDAgMCAwLS4zOS0uNzcgMS44MiAxLjgyIDAgMCAwLS43MS0uNSAyLjkyIDIuOTIgMCAwIDAtMS4xLS4xOCAyLjMzIDIuMzMgMCAwIDAtMi4xOSAxLjIyaC0uMDJWMi43OFptMTQuOTggNi4xNVYyLjc4aC0xLjA0di45NmgtLjAxYTEuOTcgMS45NyAwIDAgMC0uODQtLjg0IDIuNDggMi40OCAwIDAgMC0xLjE3LS4yOCAzIDMgMCAwIDAtMS40Ni4zNCAyLjg1IDIuODUgMCAwIDAtLjk3Ljg0IDMuMzUgMy4zNSAwIDAgMC0uNTIgMS4xNSA1LjEgNS4xIDAgMCAwLS4xNSAxLjIyIDQuNDUgNC40NSAwIDAgMCAuMTkgMS4zMSAzLjEzIDMuMTMgMCAwIDAgLjU2IDEuMDggMi43NSAyLjc1IDAgMCAwIC45NC43MyAyLjk2IDIuOTYgMCAwIDAgMS4zMS4yOCAyLjY5IDIuNjkgMCAwIDAgMS4yMy0uMyAxLjg2IDEuODYgMCAwIDAgLjg2LS45MWguMDN2LjQ0YTQuNDcgNC40NyAwIDAgMS0uMTIgMS4wMyAyLjE1IDIuMTUgMCAwIDEtLjM1LjggMS43MyAxLjczIDAgMCAxLS42My41MiAyLjA1IDIuMDUgMCAwIDEtLjkyLjE5IDIuOTggMi45OCAwIDAgMS0uNTctLjA2IDIuMDggMi4wOCAwIDAgMS0uNTUtLjIgMS4zOCAxLjM4IDAgMCAxLS40My0uMzMuODIuODIgMCAwIDEtLjItLjVoLTEuMWExLjc0IDEuNzQgMCAwIDAgLjMuOTIgMi4wNiAyLjA2IDAgMCAwIC42NS42IDIuOTMgMi45MyAwIDAgMCAuODkuMzUgNC41NyA0LjU3IDAgMCAwIC45NS4xQTMuMDcgMy4wNyAwIDAgMCA2NiAxMS40YTMuNTQgMy41NCAwIDAgMCAuNzYtMi40N1ptLTMuMS0uMzNhMS42OSAxLjY5IDAgMCAxLS45LS4yMiAxLjc2IDEuNzYgMCAwIDEtLjYtLjYgMi41OSAyLjU5IDAgMCAxLS4zLS44MyA0LjYzIDQuNjMgMCAwIDEtLjEtLjkxIDMuOCAzLjggMCAwIDEgLjExLS45MiAyLjI5IDIuMjkgMCAwIDEgLjM1LS43OCAxLjc3IDEuNzcgMCAwIDEgLjYyLS41NCAxLjkgMS45IDAgMCAxIC45MS0uMiAxLjc1IDEuNzUgMCAwIDEgLjg5LjIgMS43MiAxLjcyIDAgMCAxIC41OS41NiAyLjQzIDIuNDMgMCAwIDEgLjMzLjc3IDMuNjggMy42OCAwIDAgMSAuMS44NyA0LjA2IDQuMDYgMCAwIDEtLjExLjk0IDIuNzMgMi43MyAwIDAgMS0uMzUuODQgMS44MSAxLjgxIDAgMCAxLS42MS42IDEuOCAxLjggMCAwIDEtLjkzLjIyWk03NS45Ny4yMlY5LjVoMS4xdi0uOWguMDNhMS43OCAxLjc4IDAgMCAwIC40NS41IDIuMzYgMi4zNiAwIDAgMCAuNTYuMzIgMy4wNyAzLjA3IDAgMCAwIC42LjE3IDMuMzIgMy4zMiAwIDAgMCAuNTUuMDUgMy4xMiAzLjEyIDAgMCAwIDEuMzYtLjI3IDIuNyAyLjcgMCAwIDAgLjk2LS43NCAzLjE4IDMuMTggMCAwIDAgLjU3LTEuMTIgNC43NCA0Ljc0IDAgMCAwIC4yLTEuMzUgNC42IDQuNiAwIDAgMC0uMi0xLjM1IDMuNDIgMy40MiAwIDAgMC0uNTgtMS4xMyAyLjc2IDIuNzYgMCAwIDAtLjk2LS43NyAzLjAzIDMuMDMgMCAwIDAtMS4zNi0uMjkgMy4yIDMuMiAwIDAgMC0xLjI5LjI2IDEuNjUgMS42NSAwIDAgMC0uODYuODFoLS4wMlYuMjJabTUuMiA1Ljg2YTQuNDIgNC40MiAwIDAgMS0uMS45NyAyLjU0IDIuNTQgMCAwIDEtLjM0LjgzIDEuNzggMS43OCAwIDAgMS0uNjEuNTggMS44OSAxLjg5IDAgMCAxLS45Ni4yMiAyLjA1IDIuMDUgMCAwIDEtLjk3LS4yMSAxLjkgMS45IDAgMCAxLS42Ni0uNTcgMi4zNyAyLjM3IDAgMCAxLS4zNy0uOCAzLjg3IDMuODcgMCAwIDEtLjEyLS45NiAzLjkgMy45IDAgMCAxIC4xMS0uOTMgMi40MiAyLjQyIDAgMCAxIC4zNi0uOCAxLjkgMS45IDAgMCAxIC42NC0uNTkgMS45IDEuOSAwIDAgMSAuOTUtLjIyIDEuOTcgMS45NyAwIDAgMSAuOTMuMiAxLjg1IDEuODUgMCAwIDEgLjY1LjU3IDIuNDcgMi40NyAwIDAgMSAuMzcuOCAzLjQ0IDMuNDQgMCAwIDEgLjEyLjkxWm03LjA2IDQuMzJhNy4wMyA3LjAzIDAgMCAxLS4zOC44NCAyLjI3IDIuMjcgMCAwIDEtLjQyLjU1IDEuNDEgMS40MSAwIDAgMS0uNS4zMSAxLjk1IDEuOTUgMCAwIDEtLjY1LjEgMi45NSAyLjk1IDAgMCAxLS4zOS0uMDMgMS44NCAxLjg0IDAgMCAxLS4zNy0uMDl2LTEuMDJhMS44NiAxLjg2IDAgMCAwIC4zMy4xMSAxLjQgMS40IDAgMCAwIC4zMi4wNS45NS45NSAwIDAgMCAuNTYtLjE2IDEgMSAwIDAgMCAuMzQtLjQ2bC40Ni0xLjE0LTIuNjctNi42OGgxLjI1bDEuOTcgNS41aC4wMkw5MCAyLjc4aDEuMTdaIiBmaWxsPSIjMTIxNjE5Ii8+PC9zdmc+";export{M as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e="HTMLElement"in globalThis?globalThis.HTMLElement:class{constructor(){}},s=class extends e{};export{s as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-ENYHCJGH.js';var e=class r{constructor(t,h){this._width=t,this._height=h;}get width(){return this._width}get height(){return this._height}static fromJSON(t){return new r(a.fromJSON(t.width),a.fromJSON(t.height))}isSameAs(t){return JSON.stringify(this.toJSONObject())===JSON.stringify(t.toJSONObject())}toJSONObject(){return {width:this.width.toJSONObject(),height:this.height.toJSONObject()}}};export{e as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function o(n){return typeof n=="object"&&n!=null}export{o as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function n(e){return "pointerType"in e&&e.pointerType==="touch"}export{n as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=class{constructor(e,i){this._size=e,this._aspect=i;}get size(){return this._size}get aspect(){return this._aspect}};export{t as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function n(e,t){if(e===false)throw new Error(t)}function r(e){console.warn("Reached unexpected case",e);}function o(e){throw new Error("Reached unexpected case")}export{n as a,r as b,o as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {b}from'./chunk-4W2T3TLN.js';import {a}from'./chunk-XR65N6EG.js';async function s(e,o){async function a$1(){return importScripts(e)}try{await b(a$1,250,4e3,n=>{a.log(a.Level.Warn,n),a.log(a.Level.Warn,`Couldn't retrieve Scandit Data Capture library at ${e}, retrying...`);}),self.Module.mainScriptUrlOrBlob=e;let t=globalThis.SDC_WASM_JS_VERSION;return t!==o&&a.log(a.Level.Warn,`The Scandit Data Capture library JS file found at ${e} seems invalid: expected version doesn't match (received: ${t}, expected: ${o}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),true}catch(t){return a.log(a.Level.Error,t),false}}export{s as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$b}from'./chunk-U7ETOWGJ.js';import {b as b$2}from'./chunk-6AZW5IIG.js';import {a as a$c}from'./chunk-DGIQ3GF7.js';import {a as a$l}from'./chunk-AE2LWVIB.js';import {b,a as a$6}from'./chunk-RXDVYEE5.js';import {a as a$j}from'./chunk-Z5LRFYGI.js';import {a as a$d}from'./chunk-TPHGDMKG.js';import {a as a$h}from'./chunk-GPPCTFZF.js';import {a as a$n}from'./chunk-Y7V35LNT.js';import {b as b$1}from'./chunk-24MGHMOY.js';import {a as a$g}from'./chunk-XFQTFQYR.js';import {a as a$i}from'./chunk-U4IMOTYL.js';import {a as a$e}from'./chunk-KYNYQBNF.js';import {a as a$9}from'./chunk-RSQRPDVQ.js';import {a}from'./chunk-6V2N4XHI.js';import {a as a$3}from'./chunk-MA6UDVDJ.js';import {a as a$8}from'./chunk-IJQG3OU6.js';import {a as a$a}from'./chunk-I6SWF3FQ.js';import {e,y}from'./chunk-TTGJAMI2.js';import {a as a$r}from'./chunk-ENYHCJGH.js';import {a as a$5}from'./chunk-N5YZEC56.js';import {a as a$2}from'./chunk-VJB527QZ.js';import {a as a$1}from'./chunk-GHTCNOQN.js';import {a as a$q}from'./chunk-Q7JWDX4U.js';import {a as a$f}from'./chunk-UWBNF47P.js';import {g}from'./chunk-CZI3JAVS.js';import {a as a$4}from'./chunk-LFJUGRQV.js';import {a as a$m}from'./chunk-QOCHMKNY.js';import {a as a$7}from'./chunk-KAFNKP6O.js';import {a as a$p}from'./chunk-E4XJ4GKD.js';import {a as a$k}from'./chunk-XR65N6EG.js';import {a as a$o}from'./chunk-WUHKODFA.js';var L="core.camera.recovery",ee;ee=a$4;var V=class V{constructor(){this.focusGesture=a.focusGesture;this.shouldShowZoomNotification=true;this._zoomGestures=a.zoomGestures;this.swipeToZoomGesture=null;this.pinchToZoomGesture=null;this._scanAreaMargins=a.scanAreaMargins;this._pointOfInterest=a.pointOfInterest;this._logoStyle=a.logoStyle;this._logoAnchor=a.logoAnchor;this._logoOffset=a.logoOffset;this._context=null;this.overlays=new Set;this.controlMap=new Map;this.frameSourceListener={didChangeState:this.onFrameSourceChange.bind(this)};this._previewCamera=null;this.isConnected=false;this.controlsElement=void 0;this.frozenFrameCanvas=document.createElement("canvas");this.listeners=[];this.isVideoElementDetached=false;this.orientation="portrait";this.hiddenProperties={stopVideoTracksOnVisibilityChange:true,freezeFrameWhenStoppingFrameSource:true,forceScanAreaMarginsToPixels:false};this.orientationObserver=new b;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[ee]={attachAdditionalLayer:this.attachAdditionalLayer.bind(this)};this.visibilityListener=this.onVisibilityChange.bind(this),this.cameraRecoveryListener=this.cameraRecovery.bind(this),a$1.getInstance().updateIfMissing(a$2),this.zoomGestures=[...a.zoomGestures];}get zoomGestures(){return this._zoomGestures}set zoomGestures(e){this.removeSwipeToZoomListener(),this.removePinchToZoomListener(),this._zoomGestures=e,this.addSwipeToZoomListener(),this.addPinchToZoomListener();}get videoElement(){return g.instance().getVideoElement()}get scanAreaMargins(){return this._scanAreaMargins}set scanAreaMargins(e){var n,o,a;let t=this.hiddenProperties.forceScanAreaMarginsToPixels?this.marginsToPixels(e):e,i=this._scanAreaMargins;this._scanAreaMargins=t;for(let l of this.listeners)(n=l.willChangeScanAreaMargins)==null||n.call(l,this,i,t);((a=(o=this.privateContext)==null?void 0:o.update())!=null?a:Promise.resolve()).then(()=>{var l;for(let h of this.listeners)(l=h.didChangeScanAreaMargins)==null||l.call(h,this,t);});}marginsToPixels(e){let{width:t,height:i}=this;if(t===0&&i===0)return e;let r=(n,o)=>n.unit==="pixel"?n:new a$r(n.value*o,"pixel");return new a$3(r(e.left,t),r(e.top,i),r(e.right,t),r(e.bottom,i))}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 a$1.getInstance().get(L)}get width(){var e,t;return Math.round((t=(e=this.htmlElementState)==null?void 0:e.width)!=null?t:0)}get height(){var e,t;return Math.round((t=(e=this.htmlElementState)==null?void 0:e.height)!=null?t:0)}get canvasDrawer(){return !this._canvasDrawer&&this.canvasElement!=null&&(this._canvasDrawer=new b$1(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 V;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){var t,i,r;if(this._context!==e&&(this._context=e,e)){if(this.overlays.size>0&&!((t=this._context)!=null&&t[a$4].hasModes()))throw new 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),(i=this.privateContext)==null||i.subscribeToWorkerMessages(this.onWorkerMessageHandler),(r=this._context)!=null&&r.frameSource&&await this.onFrameSourceChange(this._context.frameSource);}}connectToElement(e,t){var i,r,n,o;this.isConnected||(this.orientationObserver.register(),this.setupHtmlElement(e),(i=this.canvasDrawer)==null||i.startObservingCanvasResize(),this.htmlElementDidChange(),a$5.add(this),this.orientation=this.orientationObserver.orientation.value,this.orientationObserver.addEventListener(a$6,this.onOrientationChangeListener),(r=this.hintPresenter)==null||r.addEventListener("hintpresenterupdate",this.onHintPresenterUpdateHandler),(n=this.hintPresenter)==null||n.addEventListener("hintpresenterviewfinderupdaterequested",this.onViewFinderUpdateRequestedHandler),this.localizationSubscription=a$1.getInstance().subscribe(a=>{a[L]!=null&&(this.cameraRecoveryElement.textContent=a[L]);}),this._previewCamera=(o=t==null?void 0:t.camera)!=null?o:null,this._previewCamera&&(this._previewCamera.addListener(this.frameSourceListener),this.onFrameSourceChange(this._previewCamera)),this.updateControls(),this.isConnected=true);}detachFromElement(){var e,t,i,r,n,o,a,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 h of ["touchend","mousedown"])this.cameraRecoveryElement.removeEventListener(h,this.cameraRecoveryListener);(i=this.loadingOverlay)==null||i.remove(),(r=this.customLocationsView)==null||r.unmount(),this.notificationPresenter=null,this.htmlElementDidChange(),this.removeSwipeToZoomListener(),this.removePinchToZoomListener(),(n=this.gestureRecognizer)==null||n.removeListener(this),this.clearHtmlElementContent(),a$5.delete(this),this.orientationObserver.unregister(),this.orientationObserver.removeEventListener(a$6,this.onOrientationChangeListener),(o=this.hintPresenter)==null||o.removeEventListener("hintpresenterupdate",this.onHintPresenterUpdateHandler),(a=this.hintPresenter)==null||a.removeEventListener("hintpresenterviewfinderupdaterequested",this.onViewFinderUpdateRequestedHandler),(l=this.localizationSubscription)==null||l.cancel(),g.instance().disconnectedCallback(),this._previewCamera&&(this._previewCamera.removeListener(this.frameSourceListener),this._previewCamera=null);for(let h of this.controls)this.removeControl(h);this.isConnected=false;}}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 u,D,T,M,F,R,A,N;let t={width:(D=(u=this.htmlElementState)==null?void 0:u.width)!=null?D:0,height:(M=(T=this.htmlElementState)==null?void 0:T.height)!=null?M:0},i={width:(R=(F=this.videoElement)==null?void 0:F.videoWidth)!=null?R:0,height:(N=(A=this.videoElement)==null?void 0:A.videoHeight)!=null?N:0},r=t.width/t.height,n=i.width/i.height,o=r>n?t.width/i.width:t.height/i.height,a={x:e.x*o,y:e.y*o},l=(i.width*o-t.width)/2,h=(i.height*o-t.height)/2;return new a$7(a.x-l,a.y-h)}viewQuadrilateralForFrameQuadrilateral(e){let t=this.viewPointForFramePoint(e.topLeft),i=this.viewPointForFramePoint(e.topRight),r=this.viewPointForFramePoint(e.bottomLeft),n=this.viewPointForFramePoint(e.bottomRight);return new a$8(t,i,n,r)}addControl(e){let t=e.toJSONObject().type;if(!this.controlMap.has(t)&&!(t==="camera-fov"&&this.controlMap.has("zoom"))){if(t==="zoom"){let i=this.controlMap.get("camera-fov");i&&this.removeControl(i);}this.controlMap.set(t,e),e.install(this).then(i=>{var r;i&&((r=this.privateContext)==null||r.update([{type:"addControl",newValue:e}]));});}}removeControl(e){var i;let t=e.toJSONObject().type;this.controlMap.has(t)&&(e.remove(true),this.controlMap.delete(t),(i=this.privateContext)==null||i.update([{type:"removeControl",newValue:e}]));}toJSONObject(){var e;return {scanAreaMargins:this.scanAreaMargins.toJSONObject(),pointOfInterest:this.pointOfInterest.toJSONObject(),logoAnchor:this.logoAnchor,logoOffset:this.logoOffset.toJSONObject(),logoHidden:(e=this.logoHidden)!=null?e:false,logoStyle:this.logoStyle,overlays:[...this.overlays].map(t=>t.toJSONObject()),controls:[...this.controls].map(t=>t.toJSONObject()),focusGesture:this.focusGesture?this.focusGesture.toJSONObject():null,zoomGestures:this._zoomGestures.map(t=>t.toJSONObject())}}isCameraRecoveryVisible(){return !this.cameraRecoveryElement.hidden}setCameraRecoveryVisible(e){this.cameraRecoveryElement.hidden=!e;}async allowPictureInPicture(e){await g.instance().allowPictureInPicture(e);}viewAnchorPositionsForFrameAnchorPositions(e){let t=this.viewPointForFramePoint(e.topLeft),i=this.viewPointForFramePoint(e.topRight),r=this.viewPointForFramePoint(e.bottomLeft),n=this.viewPointForFramePoint(e.bottomRight),o=this.viewPointForFramePoint(e.centerLeft),a=this.viewPointForFramePoint(e.centerRight),l=this.viewPointForFramePoint(e.topCenter),h=this.viewPointForFramePoint(e.bottomCenter),u=this.viewPointForFramePoint(e.center);return new a$9(t,i,n,r,o,l,a,h,u)}setDidTapCustomLocationsViewListener(e){this.customLocationsView&&this.customLocationsView.listener===null&&(this.customLocationsView.listener=e);}renderCustomLocationsView(e){this.customLocationsView!=null&&(this.customLocationsView.setMirrored(g.instance().isMirrorImageEnabled()),Object.keys(e).includes("removedIds")?this.customLocationsView.render(e):this.customLocationsView.renderDomView(e));}getNotificationPresenter(){var e;if(!this.notificationPresenter){let t=(e=this.htmlElement)==null?void 0:e.querySelector(b$2.tag);if(!t)throw new Error("Notification presenter cannot be found. Please ensure the DataCaptureView is connected.");this.notificationPresenter=new a$a(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 i;let t=await((i=this.privateContext)==null?void 0:i.workerCommand("getViewfinderInfo",{}));t!=null&&this.updateHintPresenterViewFinderRect(t.rect);}clearHtmlElementContent(){var e;this.htmlElement&&((e=this.canvasDrawer)==null||e.endObservingCanvasResize(),this.htmlElement.innerHTML="",this.cameraPaintboardElement=void 0,this.singleImageUploaderPaintboardElement=void 0,this.htmlElement=void 0);}setupHtmlElement(e){var n,o,a;this.createStyles(),this.htmlElement=e,b$2.register(),a$b.register(),a$c.register();let t=a$f`<div class="${a$d.CONTAINER_CLASS_NAME}" role="main" aria-label="Data capture view"><div class="${a$d.PAINTBOARDS_CONTAINER_CLASS_NAME}"><div data-js-id="loading-overlay"></div><div class="${a$d.PAINTBOARD_CLASS_NAME}" data-js-id="camera-paintboard"><div data-js-id="video-container"></div><img class="${a$d.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="${a$e.CUSTOM_VIEW_CONTAINER}"></div><${b$2.tag}></${b$2.tag}><${a$b.tag}></${a$b.tag}><div class="${a$d.CAMERA_RECOVERY_CLASS_NAME}" role="alert" aria-live="polite" aria-atomic="true" hidden>${this.cameraRecoveryText}</div><div class="${a$d.ERROR_CLASS_NAME}" role="alert" aria-live="assertive" aria-atomic="true" hidden></div></div><div class="${a$d.PAINTBOARD_CLASS_NAME}" data-js-id="singleimage-paintboard"></div></div></div>`;this.htmlElement.innerHTML=t,g.instance().connectedCallback(this.htmlElement.querySelector('[data-js-id="video-container"]')),this.isVideoElementDetached=false,this.hintPresenter=this.htmlElement.querySelector(b$2.tag),this.notificationPresenter=this.hintPresenter?new a$a(this.hintPresenter):null,this.loadingOverlay&&this.loadingOverlay.remove(),this.loadingOverlay=a$c.create(),this.loadingOverlay.hide(),(n=this.htmlElement.querySelector('[data-js-id="loading-overlay"]'))==null||n.replaceWith(this.loadingOverlay),this.customLocationsView&&this.customLocationsView.unmount(),this.customLocationsView=new a$g,this.customLocationsView.mount(this.htmlElement.querySelector(`[data-js-id="${a$e.CUSTOM_VIEW_CONTAINER}"]`)),this.customLocationsView.mapViewAnchorPositionsForFramePoint=l=>this.viewAnchorPositionsForFrameAnchorPositions(l),this.containerElement=this.htmlElement.querySelector(`.${a$d.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 r=this.cameraPaintboardElement.querySelector('[data-js-id="frozen-frame"]');this.frozenFrame==null?this.frozenFrame=r:r.replaceWith(this.frozenFrame),this.controlsElement=this.cameraPaintboardElement.querySelector(a$b.tag),this.cameraRecoveryElement=this.cameraPaintboardElement.querySelector(`.${a$d.CAMERA_RECOVERY_CLASS_NAME}`),this.errorElement=this.cameraPaintboardElement.querySelector(`.${a$d.ERROR_CLASS_NAME}`),this.lastFrameSourceState!=null&&((a=(o=this._context)==null?void 0:o.frameSource)==null||a.switchToDesiredState(this.lastFrameSourceState)),document.addEventListener("visibilitychange",this.visibilityListener);for(let l of ["touchend","mousedown"])this.cameraRecoveryElement.addEventListener(l,this.cameraRecoveryListener);this.htmlElementState&&this.htmlElementState.removeListeners(),this.htmlElementState=new a$h(this.htmlElement),this.htmlElementState.onStateChanged(this.htmlElementDidChangeHandler),this.htmlElementState.onDisconnected(this.htmlElementDisconnectedHandler),this.gestureRecognizer=new a$i(this.htmlElement),this.gestureRecognizer.addListener(this),this.addSwipeToZoomListener(),this.addPinchToZoomListener();}setupHtmlElementSingleImageUploader(e){var i;if(this.singleImageUploaderPaintboardElement==null)return;this.singleImageUploaderView&&this.singleImageUploaderView.unmount(),this.singleImageUploaderView=new a$j(e),this.singleImageUploaderView.mount(this.containerElement.querySelector('[data-js-id="singleimage-paintboard"]'));let t=(i=this._context)==null?void 0:i.frameSource;this.singleImageUploaderView.onInputCheck(r=>{t.getCurrentState()!=="starting"&&r.preventDefault();}),this.singleImageUploaderView.onBeforeFileRead(()=>{t._context&&this.singleImageUploaderView&&(this.singleImageUploaderView.canUploadFile=t._context.hasEnabledMode());}),this.singleImageUploaderView.onImageLoadError(()=>{t.currentState="starting",a$k.log(a$k.Level.Error,"Could not load image from selected file");}),this.singleImageUploaderView.onFileReaderError(r=>{var o,a;let n=r.target;t.currentState="starting",a$k.log(a$k.Level.Error,`Error while reading the file: ${(a=(o=n.error)==null?void 0:o.toString())!=null?a:""}`);}),this.singleImageUploaderView.onCaptureReady(async r=>{await t.processUploadedFileCapture(r);}),this.singleImageUploaderView.setButtonState(t.getCurrentState()==="starting"?"enabled":"disabled"),t.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=a$l();for(let[t,i]of Object.entries(e))i.setAttribute("scandit",`data-capture-sdk-${t}`),document.head.append(i);}}async onOrientationChange(e){var t,i;this.orientation=e.detail.value,await((i=this.privateContext)==null?void 0:i.update([{type:"viewChange",newValue:{...(t=this.htmlElementState)==null?void 0:t.toJSONObject(),orientation:this.orientation}}]));}htmlElementDidChange(){var i,r;if(!this.htmlElementState)return;let e=this.htmlElementState,t=e.toJSONObject();if(!a$h.areEquivalentJSONStates(this.lastHtmlElementState,t)){this.orientation=this.orientationObserver.orientation.value,(i=this.privateContext)==null||i.update([{type:"viewChange",newValue:{...e.toJSONObject(),orientation:this.orientation}}]),this.lastHtmlElementState=t,(r=this.canvasDrawer)==null||r.updateCanvasSizeAttributes(this.width,this.height),this.handleVideoDisplay(t.visible);for(let n of this.listeners)typeof n.didChangeSize=="function"&&n.didChangeSize(this,new a$m(t.size.width.value,t.size.height.value),this.orientation);}}async htmlElementDisconnected(){var e,t,i,r,n,o;g.instance().disconnectedCallback(),this.lastFrameSourceState=(t=(e=this._context)==null?void 0:e.frameSource)==null?void 0:t.getCurrentState(),await((r=(i=this._context)==null?void 0:i.frameSource)==null?void 0:r.switchToDesiredState("off")),await((o=this.privateContext)==null?void 0:o.update([{type:"viewChange",newValue:{...(n=this.htmlElementState)==null?void 0:n.toJSONObject(),orientation:this.orientation}}])),this.isConnected=false;}attachAdditionalLayer(e,t){var i;t==="above-controls"&&((i=this.controlsElement)==null||i.insertAdjacentElement("afterend",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=true):e&&this.isVideoElementDetached&&(this.cameraPaintboardElement.insertAdjacentElement("afterbegin",this.videoElement),this.isVideoElementDetached=false,this.videoElement.style.removeProperty("visibility"),this.videoElement.removeAttribute("width"),this.videoElement.removeAttribute("height"),this.videoElement.style.removeProperty("opacity")));}isCanvasDrawerWithMetrics(e){return e instanceof a$n}onWorkerMessage(e){var t,i;switch(e.type){case "draw":{this.drawEngineCommands(e.payload);break}case "performanceMetricsReport":{let r=this._canvasDrawer;r!=null&&this.isCanvasDrawerWithMetrics(r)&&r.setPerformanceMetrics(e.payload);break}case "contextDidChangeStatus":{let r=a$o.fromJSON(e.payload);(t=this.loadingOverlay)==null||t.hide(),r.isValid?(this.clearError(),this.setVideoElementOpacity("1")):this.displayError(r);break}case "viewSizeChanged":{let r=e.payload;if(r==null)return;this.onSDCViewSizeChangedCallback(r);break}default:{(i=this.hintPresenter)==null||i.handleMessage(e);break}}}onSDCViewSizeChangedCallback(e){this.updateHintPresenterViewFinderRect(e.viewFinderRect);}updateHintPresenterViewFinderRect(e){var t;(t=this.hintPresenter)==null||t.setViewFinderRect(new a$p(new a$7(e.origin.x,e.origin.y),new a$m(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=false;}clearError(){this.errorElement.textContent="",this.errorElement.hidden=true;}updateControls(){var e;for(let t of this.controls)(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 i=e==null?void 0:e.getCurrentState();i!=null&&await this.onCameraStateChanged(i);}else t==="singleImageUploader"&&this.setupHtmlElementSingleImageUploader(e.settings);}async onCameraStateChanged(e){var t;switch((t=this.cameraPaintboardElement)==null||t.classList.toggle(a$d.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){a$k.error("cannot set frame source stream before connecting view to an HTML element");return}this.videoElement&&(g.instance().gui.isCameraRecoveryVisible=this.isCameraRecoveryVisible.bind(this),g.instance().gui.setCameraRecoveryVisible=this.setCameraRecoveryVisible.bind(this),this.setVideoElementOpacity("0"));return}case "off":{this.setVideoElementOpacity("0"),this.updateControls();return}case "on":{await g.instance().waitForCapabilities(),this.updateControls(),this.unfreezeFrame(),this.setVideoElementOpacity("1");break}case "goingToSleep":{this.freezeFrame();break}}}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 t,i;let e=(t=this.videoElement)==null?void 0:t.srcObject;if(this.hiddenProperties.stopVideoTracksOnVisibilityChange&&(document.visibilityState==="hidden"&&g.instance().stopVideoTracks(),document.visibilityState==="visible"&&g.instance().activeCamera!=null&&e!=null))if(!e.active||(i=e.getVideoTracks()[0])!=null&&i.muted)try{a$k.debug('Detected visibility change ("visible") event with inactive video source, try to reinitialize camera'),await g.instance().reinitializeCamera();}catch{}else a$k.debug('Detected visibility change ("visible") event with active video source, replay video'),g.instance().playVideo();}async cameraRecovery(e){e.preventDefault(),g.instance().activeCamera=g.instance().selectedCamera,await g.instance().reinitializeCamera();}freezeFrame(){var i;if(!this.frozenFrame)return;let e=g.instance().getCurrentFrame();if(!e)return;let t=new ImageData(e.data,e.width,e.height);this.frozenFrameCanvas.width=t.width,this.frozenFrameCanvas.height=t.height,this.frozenFrame.width=t.width,this.frozenFrame.height=t.height,(i=this.frozenFrameCanvas.getContext("2d"))==null||i.putImageData(t,0,0),this.frozenFrame.src=this.frozenFrameCanvas.toDataURL("image/jpeg",.4),this.frozenFrame.classList.toggle(a$d.MIRRORED_CLASS_NAME,g.instance().isMirrorImageEnabled()),this.frozenFrame.hidden=false;}unfreezeFrame(){this.frozenFrame&&(this.frozenFrame.src="",this.frozenFrame.hidden=true);}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(t=>t.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(t=>t.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 n;let e=(n=this._context)==null?void 0:n.frameSource;if(!(e!=null&&e.settings))return;let t=e.settings.zoomFactor,r=[...e.settings.zoomLevels].sort((o,a)=>o-a).find(o=>o>t);r!=null&&(await e.setZoomFactor(r),this.showZoomNotification(r));}async performZoomOut(){var n;let e=(n=this._context)==null?void 0:n.frameSource;if(!(e!=null&&e.settings))return;let t=e.settings.zoomFactor,r=[...[...e.settings.zoomLevels].sort((o,a)=>o-a)].reverse().find(o=>o<t);r!=null&&(await e.setZoomFactor(r),this.showZoomNotification(r));}async showZoomNotification(e$1){var r,n;if(!this.shouldShowZoomNotification)return;let t=e.toJSON(),i={tag:"zoomNotification",text:this.formatZoomFactor(e$1),hintStyle:{textColor:t,backgroundColor:y.neutralWhite.withAlpha(.8).toJSON(),textAlignment:"center",hintIcon:"none",iconColor:t,isAnimatedToView:true,hintAnchor:"top",hintAnchorOffset:16,horizontalMargin:16,maxWidthFraction:1,textSize:14,textWeight:700,lineHeight:24,maxLines:3,cornerRadius:4,fitToText:true}};(r=this.zoomNotificationTimeout)==null||r.stop(),this.zoomNotificationTimeout=new a$q(this.zoomNotificationDuration,()=>{var o;(o=this.hintPresenter)==null||o.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"}},X=V;export{X as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-4KLHTKGW.js';import {g as g$1}from'./chunk-CZI3JAVS.js';import {b}from'./chunk-7LTHFX4E.js';import {a as a$1}from'./chunk-LFJUGRQV.js';import {d}from'./chunk-YUZDO2PC.js';import {b as b$1}from'./chunk-YONR3EGV.js';import {a as a$3}from'./chunk-XR65N6EG.js';import {g}from'./chunk-D222MT4V.js';import {a}from'./chunk-U2WQ3WDE.js';import {a as a$2}from'./chunk-QCZSSQAQ.js';d.addVideoDevicesListener(O=>{b.integrateIncomingVideoDevices(O.map(e=>h.fromDeviceCamera(e)));});var F;F=a$1;var s=class s{constructor(e){this._label="";this._deviceId="";this._notFoundOnDevice=false;this._isBestGuess=false;this.type="camera";this._currentState="off";this._settings=new g;this._desiredTorchState="off";this._desiredState="off";this.listeners=[];this.zoomListeners=new Set;this._context=null;this[F]={markAsUnmappedToDeviceCameras:this.markAsUnmappedToDeviceCameras.bind(this),resetUnmappedState:this.resetUnmappedState.bind(this),setDeviceId:this.setDeviceId.bind(this),setLabel:this.setLabel.bind(this),markAsBestGuess:this.markAsBestGuess.bind(this)};this._captureAndSendBound=this.captureAndSend.bind(this);this.stateTransitionStrategyMap={off:{on:this.transitionFromStateOffToOn.bind(this),standby:this.transitionFromStateOffToStandby.bind(this)},on:{off:this.transitionFromStateOnToOff.bind(this),standby:this.transitionFromStateOnToStandby.bind(this)},standby:{off:this.transitionFromStateStandbyToOff.bind(this),on:this.transitionFromStateStandbyToOn.bind(this)}};this.cameraManager=e!=null?e:g$1.instance();}static pickBestGuess(){return s.getOrCreate({position:"worldFacing",bestGuess:true})}static pickBestGuessForPosition(e){if(!a.availablePositions.includes(e))throw new Error(`Invalid camera position: "${e}"`);return s.getOrCreate({position:e})}static forDeviceId(e){return s.getOrCreate({deviceId:e})}static async getAll(e,t){return await d.getCameras(e!=null?e:false,t!=null?t:false),[...b.get()]}static getOrCreate(e){let{deviceId:t,position:a,bestGuess:i}=e,n=new s;return n._deviceId=t!=null?t:"",n.position=a!=null?a:"worldFacing",i&&n[a$1].markAsBestGuess(),b.getOrCreate(n)}static fromDeviceCamera(e){let t=new s;return t.position=e.position,t._deviceId=e.deviceId,t._label=e.label,t}get deviceId(){return this._deviceId}get label(){return this._label}get desiredState(){return this._desiredState}get settings(){return this._settings}get currentResolution(){var e;return (e=this._currentResolution)!=null?e:null}setDeviceId(e){this._deviceId=e;}setLabel(e){this._label=e;}get context(){return this._context}set context(e){this._context=e,this._context&&this.currentState==="on"&&this.startSendingCapturesToWorker();}get currentState(){return this._currentState}async switchToDesiredState(e){var t,a;if(this.currentTransitionStrategyPromise&&await this.currentTransitionStrategyPromise,this._notFoundOnDevice&&(e==="on"||e==="standby"))throw new a$2({message:`Cannot switch state to ${e}. This camera could not be mapped to a detected camera on the device. Please use another camera and delete this one.`,name:"Unmapped Camera"});return this.currentTransitionStrategyPromise=(a=(t=this.stateTransitionStrategyMap[this.currentState])==null?void 0:t[e])==null?void 0:a.call(t).catch(i=>{if(i instanceof DOMException&&i.message==="The associated Track is in an invalid state"){a$3.log(a$3.Level.Warn,i);return}throw i}),this.currentTransitionStrategyPromise}getDesiredTorchState(){return this._desiredTorchState}async setDesiredTorchState(e){this._desiredTorchState=e,await this.cameraManager.setTorchEnabled(this._desiredTorchState==="on"),await this.notifyContext({type:"torchState",newValue:this._desiredTorchState});}async isTorchAvailable(){return this.cameraManager.isTorchAvailable()}addListener(e){e!=null&&(this.listeners.includes(e)||this.listeners.push(e));}removeListener(e){e!=null&&this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}addZoomListener(e){this.zoomListeners.add(e);}removeZoomListener(e){this.zoomListeners.delete(e);}isZoomAvailable(){var e;return ((e=this.cameraManager.mediaTrackCapabilities)==null?void 0:e.zoom)!=null}async getZoomRange(){var t,a,i;await this.cameraManager.waitForCapabilities();let e=(t=this.cameraManager.mediaTrackCapabilities)==null?void 0:t.zoom;return e?{min:(a=e.min)!=null?a:null,max:(i=e.max)!=null?i:null}:null}async setZoomFactor(e){let t=this._settings.zoomFactor;this._settings.zoomFactor=e,t!==e&&((this._currentState==="on"||this._currentState==="standby")&&await this.cameraManager.setZoom(e),this.notifyZoomListeners(t,e)),await this.notifyContext({type:"cameraSettings",newValue:this._settings});}async applySettings(e){var n;let t=this._settings.zoomFactor,a=this._settings.zoomLevels;this._settings=new g(e);let i=this.settings.getProperty("grayScaleFrameReader");if(this.cameraManager.setFrameReaderType(i===true?"GRAYSCALE":"RGBA"),this.currentState==="on"||this.currentState==="standby"){let c=this.cameraManager.activeCameraSettings;(c==null?void 0:c.preferredResolution)!==this.settings.preferredResolution&&(await this.cameraManager.applyCameraSettings(this.settings),(n=this.cameraManager.activeCamera)!=null&&n.currentResolution&&(this._currentResolution={width:this.cameraManager.activeCamera.currentResolution.width,height:this.cameraManager.activeCamera.currentResolution.height})),await this.cameraManager.setZoom(this.settings.zoomFactor),t!==this.settings.zoomFactor&&this.notifyZoomListeners(t,this.settings.zoomFactor);let l=this.settings.getProperty("minFrameRate"),p=this.settings.getProperty("maxFrameRate");(l!=null||p!=null)&&await this.cameraManager.setFrameRate({min:l,max:p});let S=this.settings.getProperty("manualLensPosition");S!=null&&await this.cameraManager.setFocus(S);let g=this.settings.getProperty("exposureTargetBias"),f=this.settings.getProperty("exposureDuration");(g!=null||f!=null)&&await this.cameraManager.setExposure({compensation:g,time:f});}return this.notifyListenersOfZoomLevelChange(a,this.settings.zoomLevels),this.notifyContext({type:"cameraSettings",newValue:this.settings})}toJSONObject(){return {type:this.type,position:this.position,settings:this.settings.toJSONObject(),desiredState:this.desiredState,desiredTorchState:this._desiredTorchState}}getMirrorImageEnabled(){var e;return (e=this._desiredMirrorImageEnabled)!=null?e:this.cameraManager.isMirrorImageEnabled()}async setMirrorImageEnabled(e){this._desiredMirrorImageEnabled=e,this.cameraManager.setMirrorImageEnabled(e,true),this.context&&await this.context.setFrameSource(this);}getCurrentState(){return this._currentState}async setClipArea(e){await this.cameraManager.setClipArea(e);}async setCurrentState(e){if(e!==this._currentState){this._currentState=e,this.notifyListeners();try{await this.notifyContext({type:"frameSourceState",newValue:e}),e==="on"&&this.startSendingCapturesToWorker();}catch{a$3.warn("Error while notifying context about new state of Camera");}}}async setupCamera(){if(this.cameraManager.setSelectedCameraSettings(this.settings),this.deviceId==="")this.cameraManager.setSelectedCamera(),this.cameraManager.setInitialCameraPosition(this.position);else {let t=(await d.getCameras()).find(a=>a.deviceId===this.deviceId);t&&(this.cameraManager.setInitialCameraPosition(t.position),this.cameraManager.setSelectedCamera(t));}await this.cameraManager.setupCameras(),typeof this._desiredMirrorImageEnabled=="boolean"?this.cameraManager.setMirrorImageEnabled(this._desiredMirrorImageEnabled,true):this.cameraManager.setMirrorImageEnabled(this.cameraManager.isMirrorImageEnabled(),false),this.context&&await this.context.setFrameSource(this),this.cameraManager.activeCamera&&(b.rebindToDeviceId(this,{deviceId:this.cameraManager.activeCamera.deviceId,label:this.cameraManager.activeCamera.label,position:this.cameraManager.activeCamera.position}),this._currentResolution=this.cameraManager.activeCamera.currentResolution);}markAsUnmappedToDeviceCameras(){this._notFoundOnDevice=true;}resetUnmappedState(){this._notFoundOnDevice=false;}markAsBestGuess(){this._isBestGuess=true;}async notifyContext(e){if(this.context)return this.context.update([e])}notifyListeners(){for(let e of this.listeners)e.didChangeState&&e.didChangeState(this,this.currentState);}updateCanvasVideoImage(){this.currentState==="on"&&this.context&&(this.cameraManager.updateCanvasVideoImage(),this._lastCanvasVideoPreviewAnimationFrame=this.cameraManager.requestVideoFrame(this.updateCanvasVideoImage.bind(this)));}async captureAndSend(){if(this.currentState!=="on"||!this.context)return;if(!this.context.hasEnabledMode()){this._lastCaptureRequestAnimationFrame=this.cameraManager.requestVideoFrame(this._captureAndSendBound);return}let e=null;try{e=this.cameraManager.captureImage();}catch(t){a$3.warn("Camera: error while capturing image.",t);}finally{if(e!=null)if(this.cameraManager.synchronousFrameHandling){let t=await this.context.sendFrameToProcessor(e);this.cameraManager.recycle(t.data);}else this.context.sendFrameToProcessor(e).then(t=>(this.cameraManager.recycle(t.data),null)).catch(t=>{a$3.warn("error while recycling uint8array",t);});this._lastCaptureRequestAnimationFrame=this.cameraManager.requestVideoFrame(this._captureAndSendBound);}}startSendingCapturesToWorker(){this.stopSendingCapturesToWorker(),this.captureAndSend();}stopSendingCapturesToWorker(){this._lastCanvasVideoPreviewAnimationFrame!=null&&this.cameraManager.cancelVideoFrame(this._lastCanvasVideoPreviewAnimationFrame),this._lastCaptureRequestAnimationFrame!=null&&this.cameraManager.cancelVideoFrame(this._lastCaptureRequestAnimationFrame);}async transitionFromStateOffToOn(){if(!(this.currentState==="on"||this.currentState==="starting"||this.currentState==="wakingUp")){this._desiredState="on",await this.setCurrentState("starting");try{await this.setupCamera(),await this.setCurrentState("on");}catch(e){throw a$3.log(a$3.Level.Error,e),await this.setCurrentState("off"),e}}}async transitionFromStateOffToStandby(){if(!(this.currentState==="standby"||this.currentState==="bootingUp"||this.currentState==="goingToSleep")){if(await this.isAndroidWebView()){a$3.log(a$3.Level.Warn,'Warning: "Standby" state does not work inside web views. Falling back to state "On".'),await this.transitionFromStateOffToOn();return}this._desiredState="standby",await this.setCurrentState("bootingUp");try{await this.setupCamera(),this.cameraManager.pauseStream(),await this.setCurrentState("standby");}catch(e){throw a$3.log(a$3.Level.Error,e),await this.setCurrentState("off"),e}await this.setCurrentState("standby"),await this.setDesiredTorchState("off");}}async transitionFromStateOnToOff(){this.currentState==="off"||this.currentState==="stopping"||(this._desiredState="off",await this.setCurrentState("stopping"),await this.cameraManager.stopStream(),await this.setCurrentState("off"),await this.setDesiredTorchState("off"));}async transitionFromStateOnToStandby(){if(!(this.currentState==="standby"||this.currentState==="bootingUp"||this.currentState==="goingToSleep")){if(await this.isAndroidWebView()){a$3.log(a$3.Level.Warn,'Warning: "Standby" state does not work inside web views. Falling back to state "Off".'),await this.transitionFromStateOnToOff();return}this._desiredState="standby",await this.setCurrentState("goingToSleep"),this.cameraManager.pauseStream(),await this.setCurrentState("standby"),await this.setDesiredTorchState("off");}}async transitionFromStateStandbyToOff(){this.currentState==="off"||this.currentState==="stopping"||(this._desiredState="off",await this.setCurrentState("shuttingDown"),await this.cameraManager.stopStream(),await this.setCurrentState("off"),await this.setDesiredTorchState("off"));}async transitionFromStateStandbyToOn(){this.currentState==="on"||this.currentState==="starting"||this.currentState==="wakingUp"||(this._desiredState="on",await this.setCurrentState("wakingUp"),this.cameraManager.resumeStream(),await this.setCurrentState("on"));}async isAndroidWebView(){return this._isAndroidWebView==null&&(this._isAndroidWebView=await b$1.isAndroidWebView()),this._isAndroidWebView}notifyZoomListeners(e,t){for(let a of this.zoomListeners)a.onZoomLevelChanged(this,e,t);}notifyListenersOfZoomLevelChange(e,t){var a;if(!a$4(e,t))for(let i of this.zoomListeners)(a=i.onZoomLevelsChanged)==null||a.call(i,this,t);}},h=s;export{h as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-RG272MAJ.js';var n=class r{constructor(){this.translations=new Map;this.subscribers=new Set;}static getInstance(){return r.instance==null&&(r.instance=new r),r.instance}get(t){var i;return (i=this.translations.get(t))!=null?i:""}getAll(){return a(this.translations.entries())}update(t){this.translations=new Map(Object.entries({...a(this.translations),...t}));let i=this.getAll();for(let s of this.subscribers)s(i);}updateIfMissing(t){for(let[s,a]of Object.entries(t))this.translations.has(s)||this.translations.set(s,a);let i=this.getAll();for(let s of this.subscribers)s(i);}subscribe(t){return this.subscribers.add(t),t(this.getAll()),{cancel:()=>this.subscribers.delete(t)}}};export{n as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-QCZSSQAQ.js';var i=class extends a{constructor(r){super({name:"UnsupportedBrowserError",message:`This OS / browser has one or more missing features preventing it from working correctly (${r.missingFeatures.join(", ")})`}),this.data=r;}};export{i as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-F2GMW4LP.js';import {a as a$1}from'./chunk-ENYHCJGH.js';var o=class c{constructor(e){this.element=e,this.setupListeners(),this.cacheDOMRect();}get width(){return this.cachedDOMRect.width}get height(){return this.cachedDOMRect.height}static areEquivalentJSONStates(e,t){return !e||!t?false:e.size.isSameAs(t.size)&&e.visible===t.visible}onStateChanged(e){this.onStateChangedListener=e;}onDisconnected(e){this.onDisconnectedListener=e;}toJSONObject(){return {size:new a(new a$1(this.width,"pixel"),new a$1(this.height,"pixel")),visible:this.isVisible()}}isSameAs(e){return c.areEquivalentJSONStates(this.toJSONObject(),e.toJSONObject())}removeListeners(){this.resizeObserver.disconnect(),this.mutationObserver.disconnect();}isVisible(){return this.width>0&&this.height>0||this.element.getClientRects().length>0}setupListeners(){this.resizeObserver=new ResizeObserver(this.onSizeChange.bind(this)),this.resizeObserver.observe(this.element),this.mutationObserver=new MutationObserver(this.onMutation.bind(this)),this.element.parentElement&&this.mutationObserver.observe(this.element.parentElement,{childList:true});}onSizeChange(e){var t;this.cacheDOMRect(e),document.contains(this.element)&&((t=this.onStateChangedListener)==null||t.call(this));}onMutation(e){var s;let t=e.find(({type:i})=>i==="childList");if(t){for(let i of t.removedNodes)if(i===this.element&&!document.contains(this.element)){(s=this.onDisconnectedListener)==null||s.call(this);return}}}cacheDOMRect(e){let t;Array.isArray(e)&&e.length>0&&(t=e[0].contentRect),t==null&&(t=this.element.getBoundingClientRect()),this.cachedDOMRect=t;}};export{o as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-QG3MRQMP.js';import {a as a$2}from'./chunk-AZWFNBVA.js';import {a as a$3}from'./chunk-ENYHCJGH.js';import {a}from'./chunk-SGL5J2CI.js';var s=class{constructor(i,e){this.type="rectangular";this._disabledColor=a.fromRGBA(0,0,0,0);let n=i!=null?i:a$1.RectangularViewfinder.defaultStyle;this._style=a$1.RectangularViewfinder.styles[n].style,this._lineStyle=a$1.RectangularViewfinder.styles[n].lineStyle,this._dimming=a$1.RectangularViewfinder.styles[n].dimming,this._animation=a$1.RectangularViewfinder.styles[n].animation,this.color=a$1.RectangularViewfinder.styles[n].color,this._sizeWithUnitAndAspect=a$1.RectangularViewfinder.styles[n].size,e!==void 0&&(this._lineStyle=e);}get animation(){return this._animation}set animation(i){this._animation=i;}get dimming(){return this._dimming}set dimming(i){this._dimming=i;}get lineStyle(){return this._lineStyle}get sizeWithUnitAndAspect(){return this._sizeWithUnitAndAspect}get style(){return this._style}get disabledColor(){return this._disabledColor}set disabledColor(i){this._disabledColor=i;}setHeightAndAspectRatio(i,e){this._sizeWithUnitAndAspect=a$2.sizeWithHeightAndAspectRatio(i,e);}setShorterDimensionAndAspectRatio(i,e){this._sizeWithUnitAndAspect=a$2.sizeWithShorterDimensionAndAspectRatio(new a$3(i,"fraction"),e);}setSize(i){this._sizeWithUnitAndAspect=a$2.sizeWithWidthAndHeight(i);}setWidthAndAspectRatio(i,e){this._sizeWithUnitAndAspect=a$2.sizeWithWidthAndAspectRatio(i,e);}toJSONObject(){return {type:this.type,color:this.color.toJSON(),style:this.style,lineStyle:this.lineStyle,dimming:this.dimming,animation:this.animation?this.animation.toJSONObject():null,size:this.sizeWithUnitAndAspect.toJSONObject(),disabledColor:this._disabledColor.toJSON()}}};export{s as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=class{constructor(i){this.viewInfo=null;this.viewInfo=this.cloneViewInfo(i);}isSame(i){return this.viewInfo==null&&i==null?true:this.viewInfo==null&&i!=null||this.viewInfo!=null&&i==null?false:this.viewInfo.width===i.width&&this.viewInfo.height===i.height&&this.viewInfo.orientation===i.orientation&&this.viewInfo.viewFinderRect.origin.x===i.viewFinderRect.origin.x&&this.viewInfo.viewFinderRect.origin.y===i.viewFinderRect.origin.y&&this.viewInfo.viewFinderRect.size.width===i.viewFinderRect.size.width&&this.viewInfo.viewFinderRect.size.height===i.viewFinderRect.size.height}update(i){this.viewInfo=this.cloneViewInfo(i);}cloneViewInfo(i){return i?{...i,viewFinderRect:{origin:{...i.viewFinderRect.origin},size:{...i.viewFinderRect.size}}}:null}};export{e as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-GHR3BSUQ.js';import {d}from'./chunk-YUZDO2PC.js';import {f,g}from'./chunk-D222MT4V.js';var u=class{constructor(){this.type="camera";this.customImages={idle:"",pressed:""};this.cameraSwitchButton=void 0;this.CameraSwitchButtonClass=void 0;this.currentFrameSource=null;this.view=void 0;this.onCameraSwitched=this.handleCameraSwitched.bind(this);this.isTransitioning=false;}get idleImage(){return this.customImages.idle}set idleImage(t){this.customImages.idle=t,this.applyCustomImagesToButton();}get pressedImage(){return this.customImages.pressed}set pressedImage(t){this.customImages.pressed=t,this.applyCustomImagesToButton();}toJSONObject(){return {type:this.type}}async install(t){var i,r,s;this.CameraSwitchButtonClass||(this.CameraSwitchButtonClass=await import('../private/ui/molecules/CameraSwitchButton.js').then(l=>l.CameraSwitchButton),(i=this.CameraSwitchButtonClass)==null||i.register()),this.view=t,this.currentFrameSource=(s=(r=t.getContext())==null?void 0:r.frameSource)!=null?s:null,this.cameraSwitchButton=this.CameraSwitchButtonClass.create(),this.cameraSwitchButton.slot="topRight",this.cameraSwitchButton.hidden=true,this.cameraSwitchButton.addEventListener("camera-switched",this.onCameraSwitched);let e=t.controlsElement;e&&e.append(this.cameraSwitchButton),this.applyCustomImagesToButton();let a=await this.canShow();return this.updateButtonVisibility(a),true}remove(t){t&&this.cameraSwitchButton&&(this.cameraSwitchButton.removeEventListener("camera-switched",this.onCameraSwitched),this.cameraSwitchButton.remove(),this.cameraSwitchButton=null,this.currentFrameSource=null,this.view=void 0);}async update(t){var a,i;this.currentFrameSource=(i=(a=t.getContext())==null?void 0:a.frameSource)!=null?i:null,this.view=t;let e=await this.canShow();this.updateButtonVisibility(e);}updateButtonVisibility(t){this.cameraSwitchButton&&(this.cameraSwitchButton.hidden=!t);}applyCustomImagesToButton(){if(!this.cameraSwitchButton)return;this.customImages.idle||this.customImages.pressed?this.cameraSwitchButton.setCustomImages(this.customImages):this.cameraSwitchButton.useCustomImages=false;}async canShow(){if(!f(this.currentFrameSource)||this.currentFrameSource.getCurrentState()!=="on")return false;try{return (await d.getCameras(false,true)).length>1}catch{return false}}handleCameraSwitched(t){let{currentMode:e}=t.detail,a=e==="back"?"front":"back";this.cameraSwitchButton.mode=a,this.handleCameraSwitch();}async handleCameraSwitch(){if(this.isTransitioning)return;let t=await this.getNextDeviceCamera();t&&await this.switchCameras(t);}async getNextDeviceCamera(){var r;let t=await a.getAll(false,true),e=this.currentFrameSource?this.currentFrameSource:null,a$1=e==null?void 0:e.deviceId,i=t.findIndex(s=>s.deviceId===a$1);return i>-1?(r=t[i+1])!=null?r:t[0]:t.length>0?t[0]:null}async switchCameras(t){var s;this.isTransitioning=true;let e=(s=this.view)==null?void 0:s.getContext(),a=e==null?void 0:e.frameSource,i,r;a!=null&&(i=new g(a.settings),r=a.desiredState),await(a==null?void 0:a.switchToDesiredState("off")),i!=null&&await t.applySettings(i),await(e==null?void 0:e.setFrameSource(t)),await(e==null?void 0:e.frameSource).switchToDesiredState(r!=null?r:"on"),this.isTransitioning=false;}};export{u as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-XR65N6EG.js';import {a as a$1}from'./chunk-QCZSSQAQ.js';async function u(e){let t;try{let s=new Promise((o,i)=>{t=setTimeout(()=>{a.debug(`IndexedDB database is blocked (timed out after ${e}ms). If you are running a Debug wasm build, things are slower and the timeout can be configured via IndexedDBBlockedTimeoutMs in localStorage (requires page reload).`),i(new a$1({name:"BlockedIndexedDB",message:"IndexedDB database is blocked"}));},e);}),d=new Promise((o,i)=>{FS.syncfs(true,r=>{r!=null?i(r):o();});});await Promise.race([d,s]);}finally{t!==void 0&&clearTimeout(t);}}async function l(e){try{FS.mkdir(e.writableDataPath);}catch(t){if(t.code!=="EEXIST")throw t}return FS.mount(IDBFS,{autoPersist:true},e.writableDataPath),u(e.indexedDBTimeoutMs)}export{l as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e;(o=>{function i(){let r="8.4.0";return r}o.sdkVersion=i;})(e||(e={}));export{e as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-CD2BU66N.js';var r=class{constructor(t){this._hintPresenter=t;}async showNotification(t){let e=a(t);return t.icon?this._hintPresenter.showToastWithCustomIcon(e,t.icon):this._hintPresenter.showToast(e)}async hideNotification(t){return this._hintPresenter.hideToast(a(t))}};export{r as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-R6SUMD5F.js';import {b}from'./chunk-YONR3EGV.js';var n=class e{constructor(t,o=a.defaultVibrationPattern){this.type=t,this.pattern=o;let r=b.getSupportedVibrationMethod();r&&(this._vibrate=r.bind(navigator));}static get defaultVibration(){return new e("default")}static withPattern(t){return new e("default",t)}toJSONObject(){return {type:this.type}}vibrate(){var t;return (t=this._vibrate)==null?void 0:t.call(this,this.pattern)}};export{n as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-KAFNKP6O.js';var i=class e{constructor(t,r,p,a){this._topLeft=t,this._topRight=r,this._bottomRight=p,this._bottomLeft=a;}get topLeft(){return this._topLeft}get topRight(){return this._topRight}get bottomRight(){return this._bottomRight}get bottomLeft(){return this._bottomLeft}static fromJSON(t){return new e(a.fromJSON(t.topLeft),a.fromJSON(t.topRight),a.fromJSON(t.bottomRight),a.fromJSON(t.bottomLeft))}toJSONObject(){return {topLeft:this.topLeft.toJSONObject(),topRight:this.topRight.toJSONObject(),bottomLeft:this.bottomLeft.toJSONObject(),bottomRight:this.bottomRight.toJSONObject()}}};export{i as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-BZAQMYII.js';var i=class l{constructor(t){this.iconElement=a.Settings.iconElement;this.informationElement=a.Settings.informationElement;this.buttonElement=a.Settings.buttonElement;this.containerStyle=a.Settings.containerStyle;this.iconStyle=a.Settings.iconStyle;this.informationStyle=a.Settings.informationStyle;this.buttonStyle=a.Settings.buttonStyle;this.onlyCameraCapture=a.Settings.onlyCameraCapture;t!=null&&(this.iconElement=t.iconElement,this.informationElement=t.informationElement,this.buttonElement=t.buttonElement,this.containerStyle=t.containerStyle,this.iconStyle=t.iconStyle,this.informationStyle=t.informationStyle,this.buttonStyle=t.buttonStyle,this.onlyCameraCapture=t.onlyCameraCapture);}static fromJSON(t){let e=new l(null);return e.iconElement=document.createRange().createContextualFragment(t.iconElement).firstElementChild,e.informationElement=document.createRange().createContextualFragment(t.informationElement).firstElementChild,e.buttonElement=document.createRange().createContextualFragment(t.buttonElement).firstElementChild,e.containerStyle=t.containerStyle,e.iconStyle=t.iconStyle,e.informationStyle=t.informationStyle,e.buttonStyle=t.buttonStyle,e.onlyCameraCapture=t.onlyCameraCapture,e}toJSONObject(){return {iconElement:this.iconElement.outerHTML,informationElement:this.informationElement.outerHTML,buttonElement:this.buttonElement.outerHTML,containerStyle:{...this.containerStyle},iconStyle:{...this.iconStyle},informationStyle:{...this.informationStyle},buttonStyle:{...this.buttonStyle},onlyCameraCapture:this.onlyCameraCapture}}};export{i as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {f}from'./chunk-D222MT4V.js';var n=class{constructor(){this.type="torch";this.customImage={on:{idle:"",pressed:""},off:{idle:"",pressed:""}};this.torchSwitchIconButton=void 0;this.TorchSwitchIconButtonClass=void 0;this.view=void 0;this.onTorchToggled=this.handleTorchToggled.bind(this);}get currentCamera(){var e,o;let t=(o=(e=this.view)==null?void 0:e.getContext())==null?void 0:o.frameSource;return f(t)?t:null}get torchOffImage(){return this.customImage.off.idle}set torchOffImage(t){this.customImage.off.idle=t,this.applyCustomImagesToButton();}get torchOffPressedImage(){return this.customImage.off.pressed}set torchOffPressedImage(t){this.customImage.off.pressed=t,this.applyCustomImagesToButton();}get torchOnImage(){return this.customImage.on.idle}set torchOnImage(t){this.customImage.on.idle=t,this.applyCustomImagesToButton();}get torchOnPressedImage(){return this.customImage.on.pressed}set torchOnPressedImage(t){this.customImage.on.pressed=t,this.applyCustomImagesToButton();}toJSONObject(){return {type:this.type}}async install(t){var i;this.TorchSwitchIconButtonClass||(this.TorchSwitchIconButtonClass=await import('../private/ui/molecules/TorchSwitchIconButton.js').then(r=>r.TorchSwitchIconButton),(i=this.TorchSwitchIconButtonClass)==null||i.register()),this.view=t,this.torchSwitchIconButton=this.TorchSwitchIconButtonClass.create(),this.torchSwitchIconButton.slot="topLeft",this.torchSwitchIconButton.state="off",this.torchSwitchIconButton.hidden=true,this.torchSwitchIconButton.addEventListener("torch-toggled",this.onTorchToggled);let e=t.controlsElement;e&&e.append(this.torchSwitchIconButton),this.applyCustomImagesToButton();let o=await this.canShow();return this.updateButtonState(o),true}remove(t){t&&this.torchSwitchIconButton&&(this.torchSwitchIconButton.removeEventListener("torch-toggled",this.onTorchToggled),this.torchSwitchIconButton.remove(),this.torchSwitchIconButton=null,this.view=void 0);}async update(t){this.view=t;let e=await this.canShow();this.updateButtonState(e);}applyCustomImagesToButton(){if(!this.torchSwitchIconButton)return;this.customImage.on.idle||this.customImage.on.pressed||this.customImage.off.idle||this.customImage.off.pressed?this.torchSwitchIconButton.setCustomImages(this.customImage):this.torchSwitchIconButton.useCustomImages=false;}updateButtonState(t){var e,o;this.torchSwitchIconButton&&(this.torchSwitchIconButton.state=(o=(e=this.currentCamera)==null?void 0:e.getDesiredTorchState())!=null?o:"off",this.torchSwitchIconButton.hidden=!t);}async handleTorchToggled(t){var i,r;let e=(r=(i=this.view)==null?void 0:i.getContext())==null?void 0:r.frameSource,o=e?e.getDesiredTorchState()==="on"?"off":"on":"off";await this.setTorchState(o),this.torchSwitchIconButton.state=o;}async canShow(){var t,e;return (e=(t=this.currentCamera)==null?void 0:t.isTorchAvailable())!=null?e:false}async setTorchState(t){var e;await((e=this.currentCamera)==null?void 0:e.setDesiredTorchState(t));}};export{n as a};
|
|
File without changes
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var e={SINGLE_IMAGE_UPLOADER_CONTAINER:"scandit-single-image-uploader-container"},t={SINGLE_IMAGE_UPLOADER_CONTAINER_STYLE:{backgroundColor:"#FFFFFF"},SINGLE_IMAGE_UPLOADER_ICON_STYLE:{fill:"#121619"},SINGLE_IMAGE_UPLOADER_INFORMATION_STYLE:{color:"#121619",marginBottom:"2em"},SINGLE_IMAGE_UPLOADER_BUTTON_STYLE:{color:"#FFFFFF",backgroundColor:"#121619",fontWeight:"bold",padding:"1.25em",width:"12em",textAlign:"center",textTransform:"uppercase"}},E=`
|
|
2
|
-
.${e.SINGLE_IMAGE_UPLOADER_CONTAINER} {
|
|
3
|
-
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
width: 100%;
|
|
9
|
-
height: 100%;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.${e.SINGLE_IMAGE_UPLOADER_CONTAINER} label {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
align-items: center;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.${e.SINGLE_IMAGE_UPLOADER_CONTAINER} label input[type="file"] {
|
|
20
|
-
position: absolute;
|
|
21
|
-
top: -9999px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.${e.SINGLE_IMAGE_UPLOADER_CONTAINER} label div {
|
|
25
|
-
user-select: none;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.${e.SINGLE_IMAGE_UPLOADER_CONTAINER} label input[type="file"]:disabled + div {
|
|
29
|
-
opacity: 0.5;
|
|
30
|
-
}
|
|
31
|
-
`;export{e as a,t as b,E as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=(e=>(e[e.Y=0]="Y",e[e.U=1]="U",e[e.V=2]="V",e[e.R=3]="R",e[e.G=4]="G",e[e.B=5]="B",e[e.A=6]="A",e[e.D=7]="D",e))(t||{}),i=(r=>(r[r.RGBA=0]="RGBA",r[r.BGRA=1]="BGRA",r))(i||{});export{t as a,i as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=class{constructor(e){this._licenseText=e;}get licenseText(){return this._licenseText}};export{t as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=class r{constructor(e,t){this._x=e,this._y=t;}get x(){return this._x}get y(){return this._y}static mirrorX(e,t){let i=e.x-t.width;return i*=-1,new r(i,e.y)}static fromJSON(e){return new r(e.x,e.y)}toJSONObject(){return {x:this.x,y:this.y}}static areEquals(e,t){return e.x===t.x&&e.y===t.y}equals(e){return this.x===e.x&&this.y===e.y}};export{n as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-EMLXDXWN.js';var s=class extends a{getNewCanvas(e,t){let n=document.createElement("canvas");return n.width=e,n.height=t,n}async canvasToBlob(e){return new Promise(t=>{e.toBlob(t,a.JPEG_IMAGE_MIME_TYPE,this.options.quality);})}};export{s as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-XR65N6EG.js';var o=class t{constructor(e){this.memoryFallback=new Map;t.isStorageTypeSupported(e)?(this.storage=e==="localStorage"?globalThis.localStorage:globalThis.sessionStorage,this.isSupported=true):(this.isSupported=false,a.debug(`Failed to access ${e}. Fallback to memory storage.`));}static getInstanceFor(e){return e==="localStorage"?(t.localStorageInstance||(t.localStorageInstance=new t("localStorage")),t.localStorageInstance):(t.sessionStorageInstance||(t.sessionStorageInstance=new t("sessionStorage")),t.sessionStorageInstance)}get length(){return this.storage?this.storage.length:this.memoryFallback.size}static isStorageTypeSupported(e){try{return e==="localStorage"?globalThis.localStorage.setItem("test","test"):globalThis.sessionStorage.setItem("test","test"),e==="localStorage"?globalThis.localStorage.removeItem("test"):globalThis.sessionStorage.removeItem("test"),true}catch{return false}}key(e){return this.storage?this.storage.key(e):Array.from(this.memoryFallback.keys())[e]}getItem(e){var s;return this.storage?this.storage.getItem(e):(s=this.memoryFallback.get(e))!=null?s:null}setItem(e,s){this.storage?this.storage.setItem(e,s):this.memoryFallback.set(e,s);}removeItem(e){this.storage?this.storage.removeItem(e):this.memoryFallback.delete(e);}clear(){this.storage?this.storage.clear():this.memoryFallback.clear();}};export{o as a};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var e={CUSTOM_VIEW_CONTAINER:"scandit-custom-views"},t=`
|
|
2
|
-
.${e.CUSTOM_VIEW_CONTAINER} {
|
|
3
|
-
position: absolute;
|
|
4
|
-
width: 100%;
|
|
5
|
-
height: 100%;
|
|
6
|
-
top: 0;
|
|
7
|
-
left: 0;
|
|
8
|
-
}
|
|
9
|
-
.${e.CUSTOM_VIEW_CONTAINER} img {
|
|
10
|
-
position: absolute;
|
|
11
|
-
-webkit-tap-highlight-color: transparent;
|
|
12
|
-
-webkit-user-select: none;
|
|
13
|
-
-moz-user-select: none;
|
|
14
|
-
-ms-user-select: none;
|
|
15
|
-
user-select: none;
|
|
16
|
-
}
|
|
17
|
-
`,s=t;export{e as a,s as b};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import {a as a$7}from'./chunk-Y7BTRVB4.js';import {a as a$4}from'./chunk-ACFJP5SR.js';import {a as a$a,c as c$3,b as b$3}from'./chunk-L66S4DN2.js';import {a as a$j}from'./chunk-BA3RP6L2.js';import {a as a$h}from'./chunk-KSCFPJAW.js';import {a as a$f}from'./chunk-W3X3ZRQZ.js';import {a as a$8}from'./chunk-AIC4H5KG.js';import {a as a$d}from'./chunk-JS3T7K2Z.js';import {b as b$2}from'./chunk-6H6FKGVE.js';import {a as a$c}from'./chunk-N5YZEC56.js';import {a as a$6}from'./chunk-VJB527QZ.js';import {a as a$5}from'./chunk-GHTCNOQN.js';import {a as a$1}from'./chunk-LXOZUOZU.js';import {a as a$g}from'./chunk-FGO2SSRS.js';import {c as c$1,a as a$e}from'./chunk-4LGQ66HW.js';import {g,e as e$1}from'./chunk-CZI3JAVS.js';import {a as a$k}from'./chunk-LFJUGRQV.js';import {a as a$9}from'./chunk-GPJEB376.js';import {b as b$1}from'./chunk-YONR3EGV.js';import {c as c$2,e}from'./chunk-SBC5K7IT.js';import {a as a$3}from'./chunk-XR65N6EG.js';import {f as f$1}from'./chunk-D222MT4V.js';import {a as a$i}from'./chunk-WUHKODFA.js';import {a as a$2}from'./chunk-7SW2PEHB.js';import {a as a$b}from'./chunk-QCZSSQAQ.js';import {c}from'./chunk-TR3NGINC.js';var Z=[{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 v(C,e,t){let r=t.value;return t.value=function(...n){let i=f.stateMachine;return i.currentState==="ready"&&f.mainDataCaptureLoader!=null?r.apply(this,n):i.isInitializing||i.currentState==="configured"?i.waitForState("ready").then(()=>r.apply(this,n)):Promise.reject(new Error(`Please call DataCaptureContext.forLicenseKey() before calling ${String(e)}`))},t}function q(C){return C[a$j]!=null}function x(C){return "skipSerialization"in C||C[a$j]!=null}var _,Y,Q,X;X=a$k;var a=class a{constructor(){this._asyncImageConverterInstance=void 0;this.framework="web";this.runtimeEnvironment={deviceOS:(_=b$1.getUserAgentInfo().getOS().name)!=null?_:"",browser:(Y=b$1.getUserAgentInfo().getBrowser().name)!=null?Y:"",browserVersion:(Q=b$1.getUserAgentInfo().getBrowser().version)!=null?Q:"",get deviceModelName(){let{model:e,vendor:t}=b$1.getUserAgentInfo().getDevice();return (t==null||t==="")&&(t="Unknown"),(e==null||e==="")&&(e="Unknown"),[t,e].join(" ")}};this.settings=new a$2;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=false;this.highEndBlurryRecognition=false;this._frameHandlers=[];this._useSynchronousFrameFlow=false;this[X]={hasModes:this.hasModes.bind(this)};}static get moduleLicenseTextProviders(){return [new b]}static get sharedInstance(){return a._sharedInstance==null&&(a._sharedInstance=new a),a._sharedInstance}static get currentState(){return a.stateMachine.currentState}static get isReady(){return a.stateMachine.currentState==="ready"}static get isInitializing(){return a.stateMachine.isInitializing}static addStateListener(e){a.stateMachine.addListener(e);}static removeStateListener(e){a.stateMachine.removeListener(e);}async initializeWithOptions(e){var t,r,n,i,s,o,u,c,l;a.deviceID===""&&(a.deviceID=await b$1.getDeviceId()),this.licenseKey=(r=(t=e.licenseKey)!=null?t:a.userLicenseKey)!=null?r:"",this.deviceName=(n=e.deviceName)!=null?n:"",this.dataCaptureInstance=(i=e.dataCaptureInstance)!=null?i:a.mainDataCaptureLoader,this.delayedRegistration=(s=e.delayedRegistration)!=null?s:false,e.settings!=null&&(this.settings=e.settings),this.highEndBlurryRecognition=(l=(c=(o=e.dataCaptureInstance)==null?void 0:o.highEndBlurryRecognition)!=null?c:(u=a.mainDataCaptureLoader)==null?void 0:u.highEndBlurryRecognition)!=null?l:false;for(let S of this.pendingWorkerMessageListeners)this.dataCaptureInstance.addWorkerListener(S);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 new Error("Cannot call workerCommand before dataCaptureInstance is set");return this.dataCaptureInstance.workerCommand.bind(this.dataCaptureInstance)}static async forLicenseKey(e,t){return a$3.debug(`forLicenseKey called, current state: ${a.stateMachine.currentState}`),a.stateMachine.currentState==="ready"?(a$3.debug("DataCaptureContext is already ready, returning existing instance"),a.sharedInstance):a.stateMachine.isInitializing?(a$3.debug("DataCaptureContext is already initializing, waiting for completion"),await a.stateMachine.waitForState("ready"),a.sharedInstance):(a.stateMachine.currentState==="unconfigured"&&(a$3.debug("Starting initialization from unconfigured state"),await a.stateMachine.executeAsyncTransition({targetState:"configuring",action:async()=>{await a.internalConfigure(e,t);},onSuccess:"configured",onError:"unconfigured"}),await a.stateMachine.executeAsyncTransition({targetState:"creating-context",action:async()=>{await a.sharedInstance.initializeWithOptions({licenseKey:e,deviceName:t.deviceName,settings:t.settings});},onSuccess:"ready",onError:"unconfigured"})),a.sharedInstance)}static async internalConfigure(e$1,t){var S;a$4(),c$1(),a$5.getInstance().updateIfMissing(a$6);let{forceAllPolyfills:r,overrideThreadsSupport:n,overrideSimdSupport:i}=a.getOverridesFromQueryString(),[s,o,u]=await Promise.all([a$7({forceAllPolyfills:r}),c$2(),e()]);n!=="auto"&&(a$3.warn(`Threads support override: was ${u} is now ${n==="on"}`),u=n==="on"),i!=="auto"&&(a$3.warn(`SIMD support override: was ${o} is now ${i==="on"}`),o=i==="on"),a.capabilityInfo={simdSupport:o,threadsSupport:u},a$3.debug(`Capability info detected - SIMD: ${o}, Threads: ${u}`),await a.validateOptions({...t,licenseKey:e$1});let c={licenseKey:e$1,libraryLocation:a$8(t.libraryLocation),moduleLoaders:t.moduleLoaders,logLevel:(S=t.logLevel)!=null?S:a$3.Level.Debug,verifyResponseHash:true,loadProgressNotifier:b$2.notify.bind(b$2),simdSupport:o,threadsSupport:u};a$3.setLevel(c.logLevel),a.userLicenseKey=c.licenseKey,a.libraryLocation=c.libraryLocation,b$2.subscribe(a.updateViewsWithProgress);let l=b$1.checkBrowserCompatibility();if(!l.fullSupport&&!l.scannerSupport)throw new a$9(l);b$1.isSupportedIOSVersion()||a$3.warn(`Warning: Minimum supported iOS version is 14.6.
|
|
2
|
-
Please check the minimum system requirements here:
|
|
3
|
-
https://docs.scandit.com/system-requirements#browser-compatibility`),a.dataCaptureLoaders=await a.loadModules(c.moduleLoaders,c),a.mainDataCaptureLoader=[...a.dataCaptureLoaders.entries()][0][1],b$2.unsubscribe(a.updateViewsWithProgress);}static async forLicenseKeyInElectronPath(e,t){if(!a$a())throw new a$b({name:"MisconfigurationError",message:"forLicenseKeyInElectronPath can only be used in Electron applications"});let r=await c$3({licenseDataPath:e});if(r==null)throw new a$b({name:"NoLicenseKeyError",message:`Cannot retrieve license key for Electron app at ${e}`});return a.forLicenseKey(r.licenseKey,{...t})}static updateViewsWithProgress({percentage:e}){for(let t of a$c.values())t.setProgressBarPercentage(e);}static getOverridesFromQueryString(){var s,o,u;function e(c){return ["auto","off","on"].includes(c)}let t=new URLSearchParams(window.location.search),[r="auto",n="auto",i=false]=[(s=t.get("pthreads"))==null?void 0:s.toLowerCase(),(o=t.get("simd"))==null?void 0:o.toLowerCase(),((u=t.get("forceAllPolyfills"))==null?void 0:u.toLowerCase())==="true"];return {overrideThreadsSupport:e(r)?r:"auto",overrideSimdSupport:e(n)?n:"auto",forceAllPolyfills:i}}static async validateOptions(e){if(e.licenseKey==null||e.licenseKey.trim().length<64)throw new a$b({name:"NoLicenseKeyError",message:"No license key provided"});if(typeof e.libraryLocation!="string")throw new a$b({name:"MisconfigurationError",message:'Option "libraryLocation" was not provided'});if(!Array.isArray(e.moduleLoaders)||e.moduleLoaders.length===0)throw new a$b({name:"MisconfigurationError",message:'Option "moduleLoaders" is missing or empty'});let t=e.moduleLoaders.map(r=>r.moduleName);if(!["BarcodeCapture","IdCapture","LabelCapture"].includes(t[0]))throw new a$b({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 r=new Map,n=new Map;for(let i of e)n.set(i.moduleName,i.load(t));await Promise.all(n.values());for(let[i,s]of n)r.set(i,await s);return r}static async getOpenSourceSoftwareLicenseInfo(){let e=[];for(let r of a.moduleLicenseTextProviders){let n=await r.getLicenseText();e.push(n);}let t=e.join(`
|
|
4
|
-
|
|
5
|
-
`);return new a$d(t)}async setFrameSource(e){let t=e!==this._frameSource;if(this._frameSource!==null&&(this._frameSource.context=null),this._frameSource=e!=null?e:null,e&&(e.context=this,await this.workerCommand("setFrameSource",{mirrorAxis:this.getMirrorAxisForFrameSource(e),isCameraFrameSource:f$1(e)})),await this.update([{type:"frameSourceState",newValue:this.frameSource}]),t)for(let r of this.listeners)r.didChangeFrameSource&&r.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:!x(e)});}async removeMode(e){this.modes.delete(e),await e.detachedFromContext(),this.updateCameraFrameFlow(),await this.update([],{updateContext:!x(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(a.stateMachine.currentState!=="unconfigured")try{await a.stateMachine.executeAsyncTransition({targetState:"unconfigured",action:async()=>{g.instance().removeListener("cameraProperties",this.cameraPropertiesReportListener),g.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),this._view=null),this.dataCaptureInstance&&(await this.dataCaptureInstance.terminateDataCaptureWorker(true).catch(()=>{}),this.dataCaptureInstance=void 0),this.webBatteryInterface&&(this.webBatteryInterface.dispose(),this.webBatteryInterface=void 0),a.deviceID="";},onSuccess:"unconfigured",onError:"unconfigured"});}catch(e){if(a.stateMachine.currentState==="unconfigured")return;throw e}finally{this.modes.clear(),this.listeners=[],this.components.length=0,this.updateListeners.clear(),this.pendingWorkerMessageListeners.clear(),this.delayedRegistration=false,this.highEndBlurryRecognition=false,this._frameHandlers.length=0,this.frameSource&&(this.frameSource.context=null,this._frameSource=null),g.instance().dispose(),this.licenseKey="",this.deviceName="",a$e();}}async applySettings(e){this.settings=e,await this.update();}toJSONObject(){var e,t;return {licenseKey:this.licenseKey,framework:this.framework,deviceName:this.deviceName,...this.runtimeEnvironment,modes:[...this.modes].filter(r=>!x(r)).map(r=>r.toJSONObject()),components:this.components.map(r=>r.toJSONObject()),frameSource:this.frameSource?this.frameSource.toJSONObject():null,settings:this.settings.toJSONObject(),view:(t=(e=this._view)==null?void 0:e.toJSONObject())!=null?t:null}}getView(){return this._view}async setView(e){return this._view=e,this.update([{type:"viewSet",newValue:e}])}async getAppName(){let e=null;if(a$a()){let t=await b$3();if((t==null?void 0:t.appName)==null||t.appName==="")throw new 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!=null?e:"").hostname}catch{return ""}}getParentDomain(){var t;let e="";return parent!==window&&(e||(e=this.urlToHostname((t=location.ancestorOrigins)==null?void 0:t[0])),e||(e=this.urlToHostname(document.referrer)),e||(e="")),e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e}async createContext(){this.webBatteryInterface=await a$f.create();let e=this.webBatteryInterface.getBatteryInfo();await this.workerCommand("createContext",{context:this.toJSONObject(),deviceId:a.deviceID,delayedRegistration:this.delayedRegistration,highEndBlurryRecognition:this.highEndBlurryRecognition,appName:await this.getAppName(),parentDomain:this.getParentDomain(),isTablet:b$1.isTablet(),batteryInfo:e}),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){a$g(globalThis.performance)&&typeof globalThis.performance.mark=="function"&&performance.mark(e);}async sendFrameToProcessor(e){var n,i;let t=e instanceof ImageData?{data:e.data,width:e.width,height:e.height,frameId:(n=e.frameId)!=null?n:e$1(),colorType:(i=e.colorType)!=null?i:"RGBA"}:e,r=await this.sendFrameToHandlers(t);return t.data=r.capture.data,r.skip?r.capture:(this.performanceMark("processFrameBeforeSDC"),this.sendFrameToSDC(t))}async sendFrameToHandlers(e){for(let t of this._frameHandlers)if((await t(e)).action==="skip")return {skip:true,capture:e};return {skip:false,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==null&&(this._asyncImageConverterInstance=new a$h(e)),this._asyncImageConverterInstance}onWorkerMessage(e){if(e.type==="contextDidChangeStatus"){e.payload.isValid||a$3.error(e.payload);for(let t of this.listeners)t.didChangeStatus&&t.didChangeStatus(this,a$i.fromJSON(e.payload));}if(e.type==="didStartObservingContext")for(let t of this.listeners)t.didStartObservingContext&&t.didStartObservingContext(this);e.type==="onFrameProcessingFinished"&&this.performanceMark("processFrameAfterSDC"),e.type==="convertToJPEG"&&this.convertImageToJPEG(e);}async convertImageToJPEG(e){let{imageId:t,width:r,height:n,data:i,planes:s,orientation:o,quality:u}=e,c={getWidth:()=>r,getHeight:()=>n,getPlanes:()=>s,toBitmap:()=>i,getBitmapRepresentationFromYUV:()=>{throw new Error("Not implemented")},deepCopy:()=>{throw new Error("Not implemented")}},l=await this.getImageConverterInstance({quality:u}).convertToJpeg(c,o);return this.workerCommand("convertToJPEGResult",{imageId:t,result:l})}subscribeToCameraManagerEvents(){g.instance().addListener("cameraProperties",this.cameraPropertiesReportListener),g.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,a$i.fromJSON({code:33794,isValid:true,message:typeof(e==null?void 0:e.toString)=="function"?e.toString():"Unknown error"}));}async update(e=[],{updateContext:t=true}={}){var r,n;t&&await this.updateContext();for(let i of e){switch(i.type){case "frameSourceState":{await((r=this._view)==null?void 0:r.onFrameSourceChange(this.frameSource));break}case "singleImageModeUploaderSettings":{(n=this._view)==null||n.onSingleImageUploaderSettingsChange(i.newValue);break}case "addOverlay":{await this.addNativeOverlay(i.newValue);break}case "removeOverlay":{await this.removeNativeOverlay(i.newValue);break}}for(let s of this.updateListeners){let o=s(i);o instanceof Promise&&await o;}}}async updateContext(){await this.workerCommand("updateContext",{context:this.toJSONObject(),...this.getViewInfo()}).catch(e=>a$3.warn("Error while updating context:",e,this.toJSONObject()));}getViewInfo(){return this._view!=null?{view:{width:this._view.width,height:this._view.height,visible:this._view.width>0&&this._view.height>0,orientation:this._view.orientation}}:{view:null}}getMirrorAxisForFrameSource(e){let t="None";return f$1(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(q(e))return this.workerCommand("addNativeOverlay",{overlayHandle:e[a$j]})}async removeNativeOverlay(e){if(q(e))return this.workerCommand("removeNativeOverlay",{overlayHandle:e[a$j]})}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(t=>t._synchronousFrameFlow===true);g.instance().setFrameHandling(e);}async isFeatureSupported(e){return (await this.workerCommand("isFeatureSupported",{feature:e})).supported}};a.deviceID="",a.stateMachine=new a$1("unconfigured",Z),a.mainDataCaptureLoader=void 0,a.dataCaptureLoaders=new Map,a.libraryLocation=void 0,a.userLicenseKey=null,a.capabilityInfo=void 0,c([v],a.prototype,"setFrameSource",1),c([v],a.prototype,"addMode",1),c([v],a.prototype,"removeMode",1),c([v],a.prototype,"setMode",1),c([v],a.prototype,"removeCurrentMode",1),c([v],a.prototype,"isFeatureSupported",1);var f=a;var b=class{constructor(e=f,t=a$3,r=globalThis.fetch.bind(globalThis)){this.staticContext=f;this.staticContext=e,this.logger=t,this.fetch=r;}get workerCommand(){var e;return (e=this.staticContext.mainDataCaptureLoader)==null?void 0:e.workerCommand.bind(this.staticContext.mainDataCaptureLoader)}async getLicenseText(){var i,s;let e=this.staticContext.stateMachine.currentState;if(e==="unconfigured"||e==="configuring")return this.logger.warn('You must call "DataCaptureContext.forLicenseKey" before retrieving open source license text info.'),"";let t=new URL(`${((i=this.staticContext.libraryLocation)!=null?i:"").replace(/\/$/,"")}/license/web-core-license.txt`),[r,n]=await Promise.all([(s=this.workerCommand)==null?void 0:s.call(this,"getOpenSourceSoftwareLicenseInfo",{}),this.fetchWebLicenseText(t.toString())]);return [r==null?void 0:r.licenseText,n].filter(o=>o!=null).join(`
|
|
6
|
-
`)}async fetchWebLicenseText(e){return this.fetch(e,{mode:"cors",credentials:"include",headers:{"Content-Type":"text/plain"}}).then(async t=>{if(!t.ok)throw new Error(`${t.status} ${t.statusText}`);return t.text()}).catch(t=>(this.logger.warn(`Failed to fetch license from ${e}: ${t.toString()}`),null))}};export{b as a,f as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function u(r,e,n){return r<e?e:r>n?n:r}export{u as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {b}from'./chunk-YONR3EGV.js';var p=[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108],s=[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57],c=[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94],t=String.fromCodePoint,n=t.apply(String,p);t.apply(String,s);t.apply(String,c);function l(){return globalThis.location.hostname==="localhost"||globalThis.location.hostname==="127.0.0.1"||globalThis.location.hostname===""}function r(o){let e=o;if(e!=null&&typeof e.getAppInfo=="function"&&typeof e.getKey=="function")return e}function m(){let{name:o=""}=b.getUserAgentInfo().getBrowser();return o==="Electron"&&typeof r(window[n])=="object"&&l()}async function y(){var o;return (o=r(window[n]))==null?void 0:o.getAppInfo()}async function A(o){var e;return (e=r(window[n]))==null?void 0:e.getKey(o)}export{m as a,y as b,A as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var h=(e=>(e[e.AddLine=0]="AddLine",e[e.AddArc=1]="AddArc",e[e.AddCircle=2]="AddCircle",e[e.AddRect=3]="AddRect",e[e.AddRoundedRect=4]="AddRoundedRect",e[e.BeginPath=5]="BeginPath",e[e.ClosePath=6]="ClosePath",e[e.Fill=7]="Fill",e[e.Stroke=8]="Stroke",e[e.Clear=9]="Clear",e[e.SetStrokeWidth=10]="SetStrokeWidth",e[e.SetFillColor=11]="SetFillColor",e[e.SetStrokeColor=12]="SetStrokeColor",e[e.MoveTo=13]="MoveTo",e[e.LineTo=14]="LineTo",e[e.SaveState=15]="SaveState",e[e.RestoreState=16]="RestoreState",e[e.Translate=17]="Translate",e[e.ScaleAroundPoint=18]="ScaleAroundPoint",e[e.BezierTo=19]="BezierTo",e[e.Transform=20]="Transform",e[e.Scale=21]="Scale",e[e.AddPathWinding=22]="AddPathWinding",e))(h||{}),i=class{constructor(t){this._index=0;this._view=new DataView(t.buffer),this._index=0;}extractCommandType(){let t=this._view.getUint8(this._index);return this._index+=1,t}extractFloat(){let t=this._view.getFloat32(this._index,true);return this._index+=4,t}extractBoolean(){let t=this._view.getUint8(this._index);return this._index+=1,t!==0}extractColor(){let t=this._view.getUint8(this._index),s=this._view.getUint8(this._index+1),l=this._view.getUint8(this._index+2),c=this._view.getUint8(this._index+3)/256;return this._index+=4,{r:t,g:s,b:l,a:c}}isConsumed(){return this._index>=this._view.byteLength}};export{h as a,i as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=Symbol("internal");export{n as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function o(n,...r){let e=document.createElement("style");return e.innerHTML=n.reduce((c,l,s)=>{var t;let m=(t=r[s])!=null?t:"";return c+l+String(m)},""),e}export{o as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-SJIN27Q5.js';var i=class{constructor(e){this.setupComplete=false;this.handler=null;this.events=["touchstart","touchend","click","keydown"];this.doc=e!=null?e:typeof document<"u"?document:void 0;}isSetupComplete(){return this.setupComplete}markSetupComplete(){this.setupComplete=true;}setup(e){this.handler=e;let n=this.doc;n&&this.events.forEach(t=>{var o;n.addEventListener(t,e,true),(o=a)==null||o(`\u{1F3A7} Added '${t}' listener for audio unlock`);});}reset(){var e;this.removeListeners(),this.handler=null,this.setupComplete=false,(e=a)==null||e("\u{1F3A7} UnlockManager reset");}removeListeners(){var e;this.handler&&this.doc&&(this.events.forEach(n=>{var t;(t=this.doc)==null||t.removeEventListener(n,this.handler,true);}),(e=a)==null||e("\u{1F3A7} Unlock event listeners removed"));}};export{i as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-XR65N6EG.js';var c=class{constructor(t,e){this._listeners=new Set;this._pendingTransitions=new Map;this._taskQueue=[];this._isProcessingQueue=false;this._currentState=t,this._initialState=t,this._validTransitions=new Set(e.map(i=>`${i.from}->${i.to}`));}get currentState(){return this._currentState}get isInitializing(){return this._currentState!==this._initialState}addListener(t){this._listeners.add(t);}removeListener(t){this._listeners.delete(t);}canTransitionTo(t){let e=`${this._currentState}->${t}`;return this._validTransitions.has(e)&&!this._pendingTransitions.has(e)}transitionTo(t,e){if(!this.canTransitionTo(t))throw new Error(`Invalid transition from '${this._currentState}' to '${t}'`);let i=this._currentState;this._currentState=t,this.notifyListeners(this._currentState,i,e);}async enqueueTask(t){return new Promise((e,i)=>{this._taskQueue.push({execute:t,resolve:e,reject:i}),this.processQueue();})}async processQueue(){if(!(this._isProcessingQueue||this._taskQueue.length===0)){for(this._isProcessingQueue=true;this._taskQueue.length>0;){let t=this._taskQueue.shift();try{let e=await t.execute();t.resolve(e);}catch(e){t.reject(e);}}this._isProcessingQueue=false;}}async executeAsyncTransition(t){return this.enqueueTask(async()=>{let{targetState:e,action:i,onSuccess:s,onError:r}=t,a=`${this._currentState}->${e}`;if(!this.canTransitionTo(e))throw new Error(`Invalid async transition from '${this._currentState}' to '${e}'`);this.transitionTo(e);try{let n=i();this._pendingTransitions.set(a,n);let o=await n;return s&&this.canTransitionTo(s)&&this.transitionTo(s,{result:o}),o}catch(n){throw r&&this.canTransitionTo(r)&&this.transitionTo(r,{error:n}),n}finally{this._pendingTransitions.delete(a);}})}async waitForState(t,e){if(this._currentState!==t)return new Promise((i,s)=>{let r;e!==void 0&&(r=setTimeout(()=>{this.removeListener(a),s(new Error(`Timeout waiting for state '${t}' after ${e}ms`));},e));let a=n=>{n===t&&(r&&clearTimeout(r),this.removeListener(a),i());};this.addListener(a);})}async reset(t){return this.enqueueTask(async()=>{let e=this._currentState;this._currentState=t,this._pendingTransitions.clear(),this.notifyListeners(this._currentState,e,{reset:true});})}notifyListeners(t,e,i){for(let s of this._listeners)try{s(t,e,i);}catch(r){a.warn("State machine listener error:",r);}}};export{c as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={preferredResolution:"hd",zoomFactor:1,focusGestureStrategy:"manualUntilCapture",zoomGestureZoomFactor:2,zoomLevels:[1,2]};export{e as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-ENYHCJGH.js';var r=class e{constructor(i,n,o,u){this._left=i,this._top=n,this._right=o,this._bottom=u;}static get zero(){return new e(new a(0,"pixel"),new a(0,"pixel"),new a(0,"pixel"),new a(0,"pixel"))}get left(){return this._left}get right(){return this._right}get top(){return this._top}get bottom(){return this._bottom}static fromJSON(i){return new e(a.fromJSON(i.left),a.fromJSON(i.top),a.fromJSON(i.right),a.fromJSON(i.bottom))}toJSONObject(){return {left:this.left.toJSONObject(),right:this.right.toJSONObject(),top:this.top.toJSONObject(),bottom:this.bottom.toJSONObject()}}};export{r as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-GHR3BSUQ.js';import {a}from'./chunk-L2STPTEN.js';import {d}from'./chunk-YUZDO2PC.js';import {b}from'./chunk-YONR3EGV.js';import {f,g}from'./chunk-D222MT4V.js';var u=.5;function m(c){return Math.round(c*10)/10}var C=class{constructor(){this.type="zoom";this._zoomLevels=new Set;this._orientation="default";this._isAlwaysExpanded=false;this._selectedZoomLevel=1;this._accessibilityLabel="Zoom";this.isApplyingZoomLevel=false;this.handlerForZoomStrategy={setZoomForCurrentCamera:async e=>{await this.currentCamera.setZoomFactor(e);},switchToUltrawideCameraAndSetZoom:async e=>{await this.switchToUltraWideCamera(),await this.currentCamera.setZoomFactor(e/u);},setZoomForUltrawideCamera:async e=>{await this.currentCamera.setZoomFactor(e/u);},switchToWideCameraAndSetZoom:async e=>{await this.switchToWideCamera(),await this.currentCamera.setZoomFactor(e);},setZoomForWideCamera:async e=>{await this.currentCamera.setZoomFactor(e);}};this.onZoomLevelSelected=this.handleZoomLevelSelected.bind(this);}get currentCamera(){var i;let e=(i=this.view)==null?void 0:i.getContext(),t=e==null?void 0:e.frameSource;return f(t)?t:null}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this.zoomSwitchPill&&(this.zoomSwitchPill.orientation=this.resolveOrientation());}get isAlwaysExpanded(){return this._isAlwaysExpanded}set isAlwaysExpanded(e){this._isAlwaysExpanded=e,this.zoomSwitchPill&&(this.zoomSwitchPill.isAlwaysExpanded=e);}get isExpanded(){var e,t;return (t=(e=this.zoomSwitchPill)==null?void 0:e.expanded)!=null?t:false}set isExpanded(e){!this._isAlwaysExpanded&&this.zoomSwitchPill&&(this.zoomSwitchPill.expanded=e);}get selectedZoomLevel(){return this._selectedZoomLevel}get accessibilityLabel(){return this._accessibilityLabel}set accessibilityLabel(e){var t;this._accessibilityLabel=e,(t=this.zoomSwitchPill)==null||t.setAttribute("aria-label",e);}async selectZoomLevel(e){var s,h,d;let t=await((s=this.currentCamera)==null?void 0:s.getZoomRange()),i=[...this._zoomLevels],o=(h=t==null?void 0:t.min)!=null?h:Math.min(...i),r=(d=t==null?void 0:t.max)!=null?d:Math.max(...i),a$1=m(t==null?e:a(e,o,r));return await this.applyZoomLevelToCamera(a$1),this.updateSelectedLevelInUI(a$1),a$1}toJSONObject(){return {type:this.type}}onZoomLevelChanged(e,t,i){this.zoomSwitchPill&&(this.zoomSwitchPill.expanded=false),this.updateSelectedLevelInUI(m(i));}onZoomLevelsChanged(e,t){this._zoomLevels=new Set(t),this.zoomSwitchPill&&(this.zoomSwitchPill.zoomLevels=[...this._zoomLevels]);}async install(e){var o,r;if(!this.ZoomSwitchPill){let{ZoomSwitchPill:a}=await import('../private/ui/molecules/ZoomSwitchPill.js');this.ZoomSwitchPill=a,(o=this.ZoomSwitchPill)==null||o.register();}this.view=e,this.zoomSwitchPill=this.ZoomSwitchPill.create(),this.zoomSwitchPill.slot="bottomRight",this.zoomSwitchPill.hidden=true,this.zoomSwitchPill.zoomLevels=[...this._zoomLevels],this.zoomSwitchPill.selectedLevel=this._selectedZoomLevel,this.zoomSwitchPill.orientation=this.resolveOrientation(),this.zoomSwitchPill.isAlwaysExpanded=this._isAlwaysExpanded,this.zoomSwitchPill.setAttribute("aria-label",this._accessibilityLabel),this.zoomSwitchPill.addEventListener("zoom-level-selected",this.onZoomLevelSelected);let t=await this.canShow();this.zoomSwitchPill.hidden=!t;let i=e.controlsElement;return i==null||i.append(this.zoomSwitchPill),(r=this.currentCamera)==null||r.addZoomListener(this),this.syncZoomLevelsFromCamera(),true}remove(){var e,t,i;(e=this.zoomSwitchPill)==null||e.removeEventListener("zoom-level-selected",this.onZoomLevelSelected),(t=this.currentCamera)==null||t.removeZoomListener(this),(i=this.zoomSwitchPill)==null||i.remove(),this.zoomSwitchPill=void 0,this.view=void 0;}async update(e){let t=this.currentCamera;this.view=e;let i=this.currentCamera;if(t!==i&&(t==null||t.removeZoomListener(this),i==null||i.addZoomListener(this),i!=null&&(this.syncZoomLevelsFromCamera(),this.updateSelectedLevelInUI(m(i.settings.zoomFactor)))),this.zoomSwitchPill&&(this.zoomSwitchPill.zoomLevels=[...this._zoomLevels],this.zoomSwitchPill.selectedLevel=this._selectedZoomLevel,!this.isApplyingZoomLevel)){let o=await this.canShow();this.zoomSwitchPill.hidden=!o;}}async canShow(){let e=this.currentCamera;return await(e==null?void 0:e.getZoomRange())!==null}async handleZoomLevelSelected({detail:{selectedLevel:e}}){this.zoomSwitchPill&&(this._selectedZoomLevel=e,this.zoomSwitchPill.temporaryLevel=null,this.zoomSwitchPill.selectedLevel=e,await this.applyZoomLevelToCamera(e));}updateSelectedLevelInUI(e){if(this.zoomSwitchPill){let t=m(e);this._selectedZoomLevel=t;let i=this._zoomLevels.has(t)?null:t;this.zoomSwitchPill.temporaryLevel=i,this.zoomSwitchPill.selectedLevel=t;}}zoomStrategyForLevel(e){if(!b.isIOSDeviceWithExtendedCameraAccess())return "setZoomForCurrentCamera";let t=d.isIOSUltraWideBackCameraLabel(this.currentCamera.label);return e<1?t?"setZoomForUltrawideCamera":"switchToUltrawideCameraAndSetZoom":t?"switchToWideCameraAndSetZoom":"setZoomForWideCamera"}isCameraSwitchingStrategy(e){return e==="switchToUltrawideCameraAndSetZoom"||e==="switchToWideCameraAndSetZoom"}async applyZoomLevelToCamera(e){if(!this.currentCamera||this.isApplyingZoomLevel)return;this.isApplyingZoomLevel=true;let t=this.zoomStrategyForLevel(e);this.isCameraSwitchingStrategy(t)&&this.zoomSwitchPill&&(this.zoomSwitchPill.loading=true);try{let i=this.handlerForZoomStrategy[t];await i(e);}finally{this.isApplyingZoomLevel=false,this.zoomSwitchPill&&(this.zoomSwitchPill.loading=false);}}async switchToUltraWideCamera(){let t=(await a$1.getAll()).find(i=>d.isIOSUltraWideBackCameraLabel(i.label));t&&await this.switchCameras(t);}async switchToWideCamera(){let t=(await a$1.getAll()).find(i=>d.isIOSBackCameraLabel(i.label));t&&await this.switchCameras(t);}async switchCameras(e){var a,s;let t,i;this.currentCamera!=null&&(t=new g(this.currentCamera.settings),i=this.currentCamera.desiredState),await((a=this.currentCamera)==null?void 0:a.switchToDesiredState("off")),t!=null&&await e.applySettings(t);let o=(s=this.view)==null?void 0:s.getContext();await(o==null?void 0:o.setFrameSource(e));let r=i!=null?i:"on";await e.switchToDesiredState(r);}resolveOrientation(){var t;if(this._orientation!=="default")return this._orientation;let e=(t=this.zoomSwitchPill)==null?void 0:t.slot;return e==="topCenter"||e==="bottomCenter"?"horizontal":"vertical"}syncZoomLevelsFromCamera(){var t,i;let e=(i=(t=this.currentCamera)==null?void 0:t.settings)==null?void 0:i.zoomLevels;e!=null&&e.length>0&&(this._zoomLevels=new Set(e),this.zoomSwitchPill&&(this.zoomSwitchPill.zoomLevels=[...this._zoomLevels]));}};export{C as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=new Set,t=e;export{t as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=class extends CustomEvent{constructor(e){super("camera-fov-changed",{detail:e,bubbles:true,composed:true});}},r=class extends CustomEvent{constructor(e){super("camera-switched",{detail:e,bubbles:true,composed:true});}},a=class extends CustomEvent{constructor(e){super("torch-toggled",{detail:e,bubbles:true,composed:true});}},c=class extends CustomEvent{constructor(e){super("zoom-level-selected",{detail:e,bubbles:true,composed:true});}};export{o as a,r as b,a as c,c as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=class{constructor(r,e){var a,t;this._contextWebGL=r,this._maxPoolCapacity=(a=e==null?void 0:e.maxPoolCapacity)!=null?a:2,this._minPoolCapacity=(t=e==null?void 0:e.minPoolCapacity)!=null?t:1;}recycle(r){var e;r.length===this._frameSize&&((e=this._framePool)==null||e.push(r));}};export{o as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=(o=>(o.Blob="blob",o.MediaDevices="mediaDevices",o.OffscreenCanvas="offscreenCanvas",o.HttpProtocol="httpProtocol",o.SecureContext="secureContext",o.UrlObject="urlObject",o.WebWorkers="webWorkers",o.WebAssembly="webAssembly",o.WebAssemblyErrorFree="webAssemblyErrorFree",o.WebGL="webGL",o.SharedArrayBuffer="sharedArrayBuffer",o.CrossOriginIsolated="crossOriginIsolated",o.AnimationApi="animationApi",o))(e||{});export{e as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-SJIN27Q5.js';var i=class{constructor(){this.cache=new Map;}get(e){return this.cache.get(e)}set(e,s){this.cache.set(e,s);}clear(){var e;this.cache.clear(),(e=a)==null||e("\u{1F3A7} Audio buffer cache cleared");}size(){return this.cache.size}};export{i as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {e}from'./chunk-TTGJAMI2.js';import {a as a$2}from'./chunk-SGL5J2CI.js';import {a as a$1}from'./chunk-UWBNF47P.js';import {a as a$3}from'./chunk-3A4KLILV.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$4}from'./chunk-LSZZVJ6B.js';var v=(e=>(e.Circle="circle",e.Square="square",e))(v||{}),c="--width",l="--height",h="--background-color",d="--stroke-color",p="--stroke-width",n=class n extends a{constructor(){super();this.onSlotChangeListener=this.onSlotChange.bind(this);let e=this.attachShadow({mode:"open"});e.innerHTML=a$1`<div class="container shape-none"><slot></div>`,this.containerElement=e.querySelector(".container"),this.setStylePropertyValue(c,"32px"),this.setStylePropertyValue(l,"32px"),this.setStylePropertyValue(h,"transparent"),this.setStylePropertyValue(d,"#fff"),this.setStylePropertyValue(p,"0px"),e.append(n.createStyleElement().cloneNode(true));}get iconColor(){var o,r;let e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),t=(r=e==null?void 0:e.assignedElements())!=null?r:[];return a$2.fromHex(t[0].fill)}set iconColor(e){this.render({propChanged:"iconcolor",value:`#${e.toJSON()}`});}get backgroundColor(){return a$2.fromHex(this.getStylePropertyValue(h))}set backgroundColor(e){this.render({propChanged:"backgroundcolor",value:`#${e.toJSON()}`});}get backgroundStrokeColor(){return a$2.fromHex(this.getStylePropertyValue(d))}set backgroundStrokeColor(e){this.render({propChanged:"backgroundstrokecolor",value:`#${e.toJSON()}`});}get backgroundStrokeWidth(){let e=this.getStylePropertyValue(p);return Number.parseInt(e,10)}set backgroundStrokeWidth(e){this.render({propChanged:"backgroundstrokewidth",value:String(e)});}get backgroundShape(){var t;let e=(t=/shape-(.*)/.exec(this.containerElement.classList.value))==null?void 0:t[1];return e!=null&&e!=="none"?e:null}set backgroundShape(e){this.render({propChanged:"backgroundshape",value:e!=null?e:"none"});}set width(e){this.render({propChanged:"width",value:String(e)}),this.updateIconSizeProperty(e,this.height);}get width(){let e=this.getStylePropertyValue(c).replace("px","");return Number.parseInt(e,10)}set height(e){this.render({propChanged:"height",value:String(e)}),this.updateIconSizeProperty(this.width,e);}get height(){let e=this.getStylePropertyValue(l).replace("px","");return Number.parseInt(e,10)}static create(){return n.register(),document.createElement(n.tag)}static register(){a$3({[n.tag]:n});}static createStyleElement(){return a$4`:host{display:inline-block;--width:32px;--height:32px;--background-color:#0000;--stroke-color:#fff;--stroke-width:0px}:host([hidden]){display:none}.container{background-color:var(--background-color);box-shadow:0 1px 2px 0 #${e.withAlpha(.3).toJSON()};height:calc(var(--height) - var(--stroke-width));outline:var(--stroke-width) solid var(--stroke-color);position:relative;width:calc(var(--width) - var(--stroke-width))}.container.shape-${"circle"}{border-radius:50%}.container.shape-${"square"}{border-radius:0}.container.shape-none{box-shadow:unset}::slotted(*){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}`}onSlotChange(){this.updateIconSizeProperty(this.width,this.height);}connectedCallback(){var t;let e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",this.onSlotChangeListener);}disconnectedCallback(){var t;let e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.removeEventListener("slotchange",this.onSlotChangeListener);}render({propChanged:e,value:t}){switch(e){case "width":{this.setStylePropertyValue(c,`${t}px`);break}case "height":{this.setStylePropertyValue(l,`${t}px`);break}case "backgroundstrokewidth":{this.setStylePropertyValue(p,`${t}px`);break}case "backgroundstrokecolor":{this.setStylePropertyValue(d,t);break}case "backgroundcolor":{this.setStylePropertyValue(h,t);break}case "iconcolor":{this.updateFillIconColor(a$2.fromHex(t));break}case "backgroundshape":{let o=t;this.containerElement.classList.toggle("shape-circle",o==="circle"),this.containerElement.classList.toggle("shape-square",o==="square"),this.containerElement.classList.toggle("shape-none",o==="none");break}}}attributeChangedCallback(e,t,o){this.render({propChanged:e,value:o});}getStylePropertyValue(e){return this.containerElement.style.getPropertyValue(e)}setStylePropertyValue(e,t){this.containerElement.style.setProperty(e,t);}updateIconSizeProperty(e,t){var a,u;let o=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"),r=(u=o==null?void 0:o.assignedElements())!=null?u:[],s=Math.min(e,t);for(let C of r)C.size=s/2;}setIconSize(e){var r,s;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),o=(s=t==null?void 0:t.assignedElements())!=null?s:[];for(let a of o)a.size=e;}updateFillIconColor(e){var r,s;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),o=(s=t==null?void 0:t.assignedElements())!=null?s:[];for(let a of o)a.fill=`#${e.toJSON()}`;}};n.tag="scandit-icon-container",n.observedAttributes=["width","height","backgroundstrokecolor","backgroundcolor","backgroundstrokewidth","iconcolor","backgroundshape"];var y=n;export{v as a,y as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-3A4KLILV.js';import {a}from'./chunk-EV4OEANA.js';var r="inline-style",e=class e extends a{get fill(){var t;return (t=this.getAttribute("fill"))!=null?t:"black"}set fill(t){this.setAttribute("fill",t);}get size(){var t;return Number((t=this.getAttribute("size"))!=null?t:"32")}set size(t){this.setAttribute("size",t.toString());}get[r](){return this.getAttribute(r)}set[r](t){t==null?this.removeAttribute(r):this.setAttribute(r,t);}static register(){a$1({[e.tag]:e});}static create(){return e.register(),document.createElement(e.tag)}render(){return a$2`<div></div>`}heightForViewbox(t,i){return this.size*this.aspectRatioForViewbox(t,i)}aspectRatioForViewbox(t,i){return i/t}connectedCallback(){this.innerHTML=this.render();}attributeChangedCallback(t,i,b){b!==i&&(this.innerHTML=this.render());}};e.tag="scandit-svg-icon",e.observedAttributes=["fill","size"];var u=e;export{u as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=class{constructor(){this.promise=new Promise((i,o)=>{this.reject=o,this.resolve=i;});}};export{e as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=(l=>(l.Default="default",l.Horizontal="horizontal",l.Vertical="vertical",l))(a||{});export{a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var G=(A=>(A.RGBA="RGBA",A.GRAYSCALE="GRAYSCALE",A))(G||{});export{G as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=class n{constructor(){this.hasApi=false;this.hasTouch=false;this.requiresPrefix=false;}detect(){var e;try{globalThis.PointerEvent?this.hasApi=true:"msPointerEnabled"in navigator&&(this.hasApi=true,this.requiresPrefix=true);let t=(e=navigator.msMaxTouchPoints)!=null?e:navigator.maxTouchPoints;this.hasTouch=t>0;}catch{}}prefixIfNeeded(e){var t;return this.requiresPrefix&&(t=n.prefixEventMap[e])!=null?t:e}};n.prefixEventMap={pointerdown:"MSPointerDown",pointerup:"MSPointerUp",pointercancel:"MSPointerCancel",pointermove:"MSPointerMove",pointerover:"MSPointerOver",pointerout:"MSPointerOut",pointerenter:"MSPointerEnter",pointerleave:"MSPointerLeave",gotpointercapture:"MSGotPointerCapture",lostpointercapture:"MSLostPointerCapture"};var o=n,r=new o;export{r as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=class t{constructor(i,e){this._running=false;this.duration=i>t.maxDurationAllowedByJSEngines?t.maxDurationAllowedByJSEngines:i,this.callback=e;}get running(){return this._running}start(){this.stop(),this.timeout=setTimeout(()=>{this.callback(),this.stop();},this.duration),this._running=true;}stop(){clearTimeout(this.timeout),this._running=false;}};t.maxDurationAllowedByJSEngines=2147483647;var n=t;export{n as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {b}from'./chunk-FTD535WI.js';var l=(e=>(e.Nonzero="nonzero",e.Evenodd="evenodd",e))(l||{}),c=class{constructor(){this.pathWinding="nonzero";}drawSingleCommand(t,e){switch(t){case 0:{this.addLine(e);break}case 1:{this.addArc(e);break}case 2:{this.addCircle(e);break}case 3:{this.addRectangle(e);break}case 4:{this.addRoundedRectangle(e);break}case 5:{this.beginPath(e);break}case 6:{this.closePath(e);break}case 7:{this.fill(e);break}case 8:{this.stroke(e);break}case 10:{this.setStrokeWidth(e);break}case 11:{this.setFillColor(e);break}case 12:{this.setStrokeColor(e);break}case 13:{this.moveTo(e);break}case 14:{this.lineTo(e);break}case 15:{this.saveState(e);break}case 16:{this.restoreState(e);break}case 17:{this.translate(e);break}case 19:{this.bezierTo(e);break}case 20:{this.transform(e);break}case 21:{this.scale(e);break}case 22:{this.addPathWinding(e);break}case 9:case 18:break;default:{b(t);break}}}beginPath(t){this.context.beginPath();}closePath(t){this.context.closePath();}setStrokeColor(t){let e=t.extractColor();this.context.strokeStyle=this.colorToRgbaString(e);}setFillColor(t){let e=t.extractColor();this.context.fillStyle=this.colorToRgbaString(e);}fill(t){this.context.fill(this.pathWinding);}stroke(t){this.context.stroke();}addLine(t){let e=t.extractFloat(),a=t.extractFloat();this.context.moveTo(e,a);let o=t.extractFloat(),r=t.extractFloat();this.context.lineTo(o,r);}lineTo(t){let e=t.extractFloat(),a=t.extractFloat();this.context.lineTo(e,a);}moveTo(t){let e=t.extractFloat(),a=t.extractFloat();this.context.moveTo(e,a);}addRectangle(t){let e=t.extractFloat(),a=t.extractFloat(),o=t.extractFloat(),r=t.extractFloat();this.context.rect(e,a,o,r);}addRoundedRectangle(t){let e=t.extractFloat(),a=t.extractFloat(),o=t.extractFloat(),r=t.extractFloat(),i=t.extractFloat();this.context.moveTo(e+i,a),this.context.lineTo(e+o-i,a),this.context.quadraticCurveTo(e+o,a,e+o,a+i),this.context.lineTo(e+o,a+r-i),this.context.quadraticCurveTo(e+o,a+r,e+o-i,a+r),this.context.lineTo(e+i,a+r),this.context.quadraticCurveTo(e,a+r,e,a+r-i),this.context.lineTo(e,a+i),this.context.quadraticCurveTo(e,a,e+i,a),this.context.closePath();}setStrokeWidth(t){this.context.lineWidth=t.extractFloat();}addArc(t){let e=t.extractFloat(),a=t.extractFloat(),o=t.extractFloat(),r=t.extractFloat(),i=t.extractFloat(),s=t.extractBoolean();this.context.arc(e,a,o,r,i,s);}addCircle(t){let e=t.extractFloat(),a=t.extractFloat(),o=t.extractFloat();this.context.arc(e,a,o,0,Math.PI*2);}bezierTo(t){let e=t.extractFloat(),a=t.extractFloat(),o=t.extractFloat(),r=t.extractFloat(),i=t.extractFloat(),s=t.extractFloat();this.context.bezierCurveTo(e,a,o,r,i,s);}saveState(t){this.context.save();}restoreState(t){this.context.restore();}translate(t){let e=t.extractFloat(),a=t.extractFloat();this.context.translate(e,a);}transform(t){let e=t.extractFloat(),a=t.extractFloat(),o=t.extractFloat(),r=t.extractFloat(),i=t.extractFloat(),s=t.extractFloat();this.context.transform(e,a,o,r,i,s);}scale(t){let e=t.extractFloat();this.context.scale(e,e);}addPathWinding(t){let e=t.extractBoolean();this.pathWinding=e?"nonzero":"evenodd";}colorToRgbaString(t){return `rgba(${t.r},${t.g},${t.b},${t.a})`}};export{l as a,c as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function o(n){return typeof n=="object"&&n!=null&&n.document==null&&"addEventListener"in n&&typeof n.importScripts=="function"}export{o as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=class r extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,r.prototype),this.name=e.name;}toString(){return `${this.name}: ${this.message}`}};export{t as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-UWBNF47P.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$1}from'./chunk-LSZZVJ6B.js';var l="scandit-arrows-up",t=class t extends a{constructor(){super();let e=this.attachShadow({mode:"open"});e.innerHTML=this.render(),e.prepend(t.createStyleElement().cloneNode(true));}static createStyleElement(){return a$1`${t.tag}{display:flex}${t.tag}[hidden]{display:none}.arrow{animation:blink 1.5s infinite;animation-duration:2s}.arrow-1{animation-delay:0s}.arrow-2{animation-delay:.5s}.arrow-3{animation-delay:1s}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}`}static create(){return t.register(),document.createElement(t.tag)}static register(){a$2({[t.tag]:t});}render(){return a$3`<svg width="120" height="45" viewBox="0 0 120 45" fill="none"><path class="arrow arrow-1" opacity="0.8" d="M105.561 45C108.718 45 109.586 40.6607 106.672 39.4467L61.1539 20.4808C60.4154 20.1731 59.5846 20.1731 58.8462 20.4808L13.328 39.4467C10.4143 40.6607 11.2822 45 14.4387 45C14.8094 45 15.1767 44.9286 15.5205 44.7897L58.8762 27.2723C59.5971 26.981 60.4029 26.981 61.1239 27.2723L104.48 44.7897C104.823 44.9286 105.191 45 105.561 45Z" fill="white"></path><path class="arrow arrow-2" opacity="0.6" d="M94.6148 26C96.8169 26 97.4022 22.9609 95.3576 22.143L60.7428 8.29711C60.266 8.10638 59.734 8.10638 59.2572 8.29711L24.6424 22.143C22.5978 22.9609 23.1831 26 25.3852 26H25.6254C25.873 26 26.1184 25.954 26.3492 25.8644L59.2762 13.081C59.7418 12.9002 60.2582 12.9002 60.7238 13.081L93.6508 25.8644C93.8816 25.954 94.127 26 94.3746 26H94.6148Z" fill="white"></path><path class="arrow arrow-3" opacity="0.4" d="M81.2078 10C82.8264 10 83.1945 7.7315 81.659 7.21967L60.6325 0.210819C60.2219 0.073974 59.7781 0.0739735 59.3675 0.210818L38.341 7.21967C36.8055 7.73149 37.1736 10 38.7922 10C38.93 10 39.0671 9.98003 39.1992 9.94072L59.4295 3.91979C59.8018 3.809 60.1982 3.809 60.5705 3.91979L80.8008 9.94072C80.9329 9.98003 81.07 10 81.2078 10Z" fill="white"></path></svg>`}};t.tag=l;var o=t;export{o as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {c}from'./chunk-WGLHZXRT.js';import {a as a$1}from'./chunk-AZWFNBVA.js';import {a as a$2}from'./chunk-ENYHCJGH.js';import {a}from'./chunk-SGL5J2CI.js';var f={LaserlineViewfinder:{width:a$2.fromJSON({unit:"fraction",value:.8}),enabledColor:a.fromJSON("#FFFFFFFF"),disabledColor:a.fromJSON("#00000000")},RectangularViewfinder:{defaultStyle:"rounded",styles:{rounded:{size:a$1.fromJSON({aspect:1,shorterDimension:{unit:"fraction",value:.75}}),color:a.fromJSON("#FFFFFFFF"),style:"rounded",lineStyle:"light",dimming:0,animation:c.fromJSON({looping:true})},square:{size:a$1.fromJSON({aspect:1,shorterDimension:{unit:"fraction",value:.75}}),color:a.fromJSON("#FFFFFFFF"),style:"square",lineStyle:"light",dimming:0,animation:c.fromJSON({looping:true})}}},AimerViewfinder:{frameColor:a.fromJSON("#FFFFFFFF"),dotColor:a.fromJSON("#FFFFFFCC")}};export{f as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r=class{constructor(e){this.items=[];if(e.lowWaterMark>=e.capacity)throw new Error("Invalid Watermark options: lowWaterMark must be less than capacity");this.capacity=e.capacity,this.lowWaterMark=e.lowWaterMark,this.createItem=e.createItem;for(let t=0;t<this.capacity;t++)this.items.push(this.createItem());}get length(){return this.items.length}pop(){for(;this.isBelowOrEqualWaterMark();)this.items.unshift(this.createItem());return this.items.pop()}push(e){if(this.items.length<this.capacity)return this.items.push(e)}empty(){this.items.length=0;}isBelowOrEqualWaterMark(){return this.items.length<=this.lowWaterMark}};export{r as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-EMLXDXWN.js';var t=class extends a{getNewCanvas(e,s){return new OffscreenCanvas(e,s)}canvasToBlob(e){return e.convertToBlob({type:a.JPEG_IMAGE_MIME_TYPE,quality:this.options.quality})}};export{t as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=class t{constructor(e,r){this._width=e,this._height=r;}get width(){return this._width}get height(){return this._height}static fromJSON(e){return new t(e.width,e.height)}toJSONObject(){return {height:this.height,width:this.width}}};export{i as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var x=(o=>(o.Pixel="pixel",o.Fraction="fraction",o))(x||{});export{x as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-O7EM4VIM.js';import {a as a$2}from'./chunk-UWBNF47P.js';import {a as a$1}from'./chunk-3A4KLILV.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`<style>${e.tag}{display:flex}</style><svg width="${this.size}" height="${this.heightForViewbox(32,32)}" viewBox="0 0 32 32" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.625 15C15.8656 15 15.25 15.6156 15.25 16.375C15.25 17.1344 15.8656 17.75 16.625 17.75C17.3844 17.75 18 17.1344 18 16.375C18 15.6156 17.3844 15 16.625 15ZM12.5 16.375C12.5 14.0968 14.3468 12.25 16.625 12.25C18.9032 12.25 20.75 14.0968 20.75 16.375C20.75 18.6532 18.9032 20.5 16.625 20.5C14.3468 20.5 12.5 18.6532 12.5 16.375Z" fill="${this.fill}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.5277 13.2223C23.0647 13.7592 23.9353 13.7592 24.4723 13.2223C25.0092 12.6853 25.0092 11.8147 24.4723 11.2777L24.0695 10.875H24.875C25.6344 10.875 26.25 11.4906 26.25 12.25V21.875C26.25 22.6344 25.6344 23.25 24.875 23.25H16.625C15.8656 23.25 15.25 23.8656 15.25 24.625C15.25 25.3844 15.8656 26 16.625 26H24.875C27.1532 26 29 24.1532 29 21.875V12.25C29 9.97183 27.1532 8.125 24.875 8.125H24.0695L24.4723 7.72227C25.0092 7.1853 25.0092 6.3147 24.4723 5.77773C23.9353 5.24076 23.0647 5.24076 22.5277 5.77773L19.7777 8.52773C19.5199 8.78559 19.375 9.13533 19.375 9.5C19.375 9.86467 19.5199 10.2144 19.7777 10.4723L22.5277 13.2223Z" fill="${this.fill}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5 7.4375C12.5 7.0578 12.8078 6.75 13.1875 6.75H19.375C20.1344 6.75 20.75 6.13439 20.75 5.375C20.75 4.61561 20.1344 4 19.375 4H13.1875C11.289 4 9.75 5.53902 9.75 7.4375C9.75 7.8172 9.4422 8.125 9.0625 8.125H8.375C6.09683 8.125 4.25 9.97183 4.25 12.25V21.875C4.25 24.1532 6.09683 26 8.375 26H9.18046L8.77773 26.4027C8.24076 26.9397 8.24076 27.8103 8.77773 28.3473C9.3147 28.8842 10.1853 28.8842 10.7223 28.3473L13.4723 25.5973C14.0092 25.0603 14.0092 24.1897 13.4723 23.6527L10.7223 20.9027C10.1853 20.3658 9.3147 20.3658 8.77773 20.9027C8.24076 21.4397 8.24076 22.3103 8.77773 22.8473L9.18046 23.25H8.375C7.61561 23.25 7 22.6344 7 21.875V12.25C7 11.4906 7.61561 10.875 8.375 10.875H9.0625C10.961 10.875 12.5 9.33598 12.5 7.4375Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-camera-switch-reverse-icon";var C=e;export{C as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function r(t,n=300){let e=null;return function(...u){e!=null&&clearTimeout(e),e=setTimeout(()=>{t.apply(this,u),e=null;},n);}}export{r as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={defaultVibrationPattern:[300]};export{e as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function o(r){if(Object.fromEntries)return Object.fromEntries(r);let t={};for(let[e,n]of r)t[String(e)]=n;return t}export{o as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-IJQG3OU6.js';import {a as a$1}from'./chunk-KAFNKP6O.js';var b=class f extends a{constructor(n,t,h,e,c,s,r,P,p){super(n,t,h,e),this._centerLeft=c,this._topCenter=s,this._centerRight=r,this._bottomCenter=P,this._center=p;}get centerRight(){return this._centerRight}get center(){return this._center}get centerLeft(){return this._centerLeft}get topCenter(){return this._topCenter}get bottomCenter(){return this._bottomCenter}static fromJSON(n){let{topLeft:t,topRight:h,bottomRight:e,bottomLeft:c,centerLeft:s,topCenter:r,centerRight:P,bottomCenter:p,center:l}=n,i=a$1.fromJSON(t),m=a$1.fromJSON(h),O=a$1.fromJSON(e),S=a$1.fromJSON(c),g=a$1.fromJSON(s),J=a$1.fromJSON(r),N=a$1.fromJSON(P),u=a$1.fromJSON(p),x=a$1.fromJSON(l);return new f(i,m,O,S,g,J,N,u,x)}toJSONObject(){return {...super.toJSONObject(),center:this._center.toJSONObject(),bottomCenter:this._bottomCenter.toJSONObject(),topCenter:this._topCenter.toJSONObject(),centerLeft:this._centerLeft.toJSONObject(),centerRight:this._centerRight.toJSONObject()}}orderVerticesByPosition(){let n=[this.topLeft,this.topRight,this.bottomLeft,this.bottomRight],t=n.reduce((i,m)=>m.y<i.y?m:i),h=n.filter(i=>!i.equals(t));if(h.length===0)return this;let e=h.reduce((i,m)=>m.y<i.y?m:i),c=t.x<=e.x?t:e,s=t.x>e.x?t:e,r=n.filter(i=>!i.equals(c)&&!i.equals(s));if(r.length!==2)return this;let P=r[0].x<=r[1].x?r[0]:r[1],p=r[0].x>r[1].x?r[0]:r[1];return new f(c,s,p,P,new a$1((c.x+P.x)/2,(c.y+P.y)/2),new a$1((c.x+s.x)/2,(c.y+s.y)/2),new a$1((s.x+p.x)/2,(s.y+p.y)/2),new a$1((P.x+p.x)/2,(P.y+p.y)/2),this.center)}getArea(n){let t=[n.topLeft,n.topRight,n.bottomRight,n.bottomLeft,n.topLeft],h=0;for(let e=0;e<t.length-1;e++)h+=t[e].x*t[e+1].y-t[e+1].x*t[e].y;return Math.abs(h)/2}};export{b as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-R6E4CT22.js';import {b}from'./chunk-YONR3EGV.js';import {a as a$1}from'./chunk-XR65N6EG.js';var d="orientationchange",n={"portrait-primary":{type:"portrait-primary",angle:0,value:"portrait"},"portrait-secondary":{type:"portrait-secondary",angle:180,value:"portraitUpsideDown"},"landscape-primary":{type:"landscape-primary",angle:90,value:"landscapeLeft"},"landscape-secondary":{type:"landscape-secondary",angle:270,value:"landscapeRight"}},l=class extends EventTarget{constructor(){super(...arguments);this.orientation={value:"portrait",type:"portrait-primary",angle:0};this._landscapeOrientationMediaQuery=null;this.screenOrientationChangeListener=this.onScreenOrientationChange.bind(this);this.landscapeOrientationMediaQueryChangeListener=this.onLandscapeOrientationMediaQueryChange.bind(this);this.windowResizeListener=a(this.handleWindowResize.bind(this),700);this.lastWidth=null;this.lastHeight=null;}get landscapeOrientationMediaQuery(){return this._landscapeOrientationMediaQuery===null&&(this._landscapeOrientationMediaQuery=globalThis.matchMedia("(orientation: landscape)")),this._landscapeOrientationMediaQuery}get isIosPwaMode(){return b.isIOS()&&(b.isPwaDisplayMode("standalone")||b.isPwaDisplayMode("fullscreen")||b.isPwaDisplayMode("minimal-ui"))}register(){var e,i;this.isScreenOrientationApiSupported()&&!this.isIosPwaMode?(screen.orientation.addEventListener("change",this.screenOrientationChangeListener),this.onScreenOrientationChange()):this.isIosPwaMode?((e=globalThis.addEventListener)==null||e.call(globalThis,"resize",this.windowResizeListener),this.handleWindowResize()):((i=this.landscapeOrientationMediaQuery)==null||i.addEventListener("change",this.landscapeOrientationMediaQueryChangeListener),this.onLandscapeOrientationMediaQueryChange(new MediaQueryListEvent("change",{matches:this.landscapeOrientationMediaQuery.matches})));}unregister(){globalThis.removeEventListener("resize",this.windowResizeListener),this.isScreenOrientationApiSupported()&&screen.orientation.removeEventListener("change",this.screenOrientationChangeListener),this.landscapeOrientationMediaQuery.removeEventListener("change",this.landscapeOrientationMediaQueryChangeListener);}isScreenOrientationApiSupported(){return "screen"in globalThis&&"orientation"in screen&&typeof screen.orientation.addEventListener=="function"}dispatchOrientationChangeEvent(e){this.dispatchEvent(new CustomEvent(d,{detail:e}));}onScreenOrientationChange(){this.orientation=n[screen.orientation.type],this.dispatchOrientationChangeEvent(this.orientation);}onLandscapeOrientationMediaQueryChange(e){let i=e;this.orientation=i.matches?n["landscape-primary"]:n["portrait-primary"],this.dispatchOrientationChangeEvent(this.orientation);}handleWindowResize(){let e=globalThis.innerWidth,i=globalThis.innerHeight,r=this.lastWidth===null||this.lastHeight===null;if(!r&&e===this.lastWidth&&i===this.lastHeight)return;let a=e>i?n["landscape-primary"]:n["portrait-primary"];(r||this.orientation.value!==a.value)&&(a$1.debug("OrientationObserver: dispatching orientation change event",{newOrientation:a,currentOrientation:this.orientation}),this.orientation=a,this.dispatchOrientationChangeEvent(this.orientation)),this.lastWidth=e,this.lastHeight=i;}};export{d as a,l as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-QG3MRQMP.js';var i=class{constructor(){this.type="laserline";this.width=a.LaserlineViewfinder.width,this.enabledColor=a.LaserlineViewfinder.enabledColor,this.disabledColor=a.LaserlineViewfinder.disabledColor;}toJSONObject(){return {type:this.type,width:this.width.toJSONObject(),disabledColor:this.disabledColor.toJSON(),enabledColor:this.enabledColor.toJSON()}}};export{i as a};
|