@scandit/web-datacapture-core 8.1.1 → 8.2.0
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/build/js/Camera.js +1 -1
- package/build/js/{DataCaptureContext-fzPdCXUX.d.ts → DataCaptureContext-Dvdr7st4.d.ts} +322 -214
- package/build/js/DataCaptureContext.d.ts +7 -7
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +9 -9
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +7 -7
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/Feedback.js +1 -1
- package/build/js/FrameData.d.ts +8 -8
- package/build/js/FrameData.js +1 -1
- package/build/js/ImageFrameSource.js +1 -1
- package/build/js/NotificationPresenter/index.d.ts +4 -4
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +4 -4
- package/build/js/NotificationPresenter/private/presets.d.ts +8 -8
- package/build/js/ScanditIcon.d.ts +1 -1
- package/build/js/ScanditIcon.js +1 -1
- package/build/js/ScanditIconBuilder.d.ts +2 -1
- package/build/js/ScanditIconBuilder.js +1 -1
- package/build/js/Vibration.js +1 -1
- package/build/js/browserHelper.d.ts +27 -1
- package/build/js/browserHelper.js +1 -1
- package/build/js/chunks/chunk-24MGHMOY.js +1 -0
- package/build/js/chunks/chunk-3A7LM5JG.js +1 -0
- package/build/js/chunks/chunk-3MKSI2DV.js +1 -0
- package/build/js/chunks/{chunk-G2KEAB3J.js → chunk-4J3Y5IIL.js} +1 -1
- package/build/js/chunks/chunk-6EEMWSEO.js +1 -0
- package/build/js/chunks/{chunk-J6LCRGZO.js → chunk-7HYFN4JO.js} +1 -1
- package/build/js/chunks/{chunk-O7QIRKOP.js → chunk-7OFC24NE.js} +1 -1
- package/build/js/chunks/chunk-A225YZFY.js +2 -0
- package/build/js/chunks/chunk-AAEQZ45T.js +1 -0
- package/build/js/chunks/chunk-ACF5LYP7.js +1 -0
- package/build/js/chunks/chunk-BBOKPRKO.js +2 -0
- package/build/js/chunks/chunk-CAUB35PV.js +1 -0
- package/build/js/chunks/chunk-CX2R2XQK.js +1 -0
- package/build/js/chunks/chunk-DGIQ3GF7.js +1 -0
- package/build/js/chunks/chunk-DN32UPQC.js +1 -0
- package/build/js/chunks/chunk-DSFN65OM.js +1 -0
- package/build/js/chunks/{chunk-EC74ZSTB.js → chunk-DTREAYZQ.js} +1 -1
- package/build/js/chunks/chunk-DZKTI5AJ.js +1 -0
- package/build/js/chunks/chunk-ECPEKYII.js +1 -0
- package/build/js/chunks/chunk-EMLXDXWN.js +1 -0
- package/build/js/chunks/chunk-FQYVZGCE.js +1 -0
- package/build/js/chunks/chunk-GLSB4QTY.js +1 -0
- package/build/js/chunks/chunk-GQ7A6533.js +1 -0
- package/build/js/chunks/chunk-I4F6XB6S.js +1 -0
- package/build/js/chunks/chunk-JCP7NQPV.js +1 -0
- package/build/js/chunks/chunk-JIGCOX5J.js +1 -0
- package/build/js/chunks/{chunk-4F5JUHOJ.js → chunk-KSCFPJAW.js} +1 -1
- package/build/js/chunks/chunk-KXAJHLEO.js +1 -0
- package/build/js/chunks/{chunk-UN33F7AA.js → chunk-MX6NS4FA.js} +1 -1
- package/build/js/chunks/chunk-NT5WI2PS.js +1 -0
- package/build/js/chunks/{chunk-Q45KFJIS.js → chunk-NXAYIU7F.js} +1 -1
- package/build/js/chunks/{chunk-4FMQAH4G.js → chunk-NXW6JP4X.js} +1 -1
- package/build/js/chunks/{chunk-24IG7HUA.js → chunk-O4HDBWKK.js} +1 -1
- package/build/js/chunks/chunk-O7EM4VIM.js +1 -0
- package/build/js/chunks/chunk-OFNPZ4HM.js +6 -0
- package/build/js/chunks/chunk-PM5CNTBV.js +1 -0
- package/build/js/chunks/chunk-QFSNPY5Y.js +1 -0
- package/build/js/chunks/{chunk-3LVMEVOI.js → chunk-QIWPWOQG.js} +1 -1
- package/build/js/chunks/chunk-QPR2YHD4.js +1 -0
- package/build/js/chunks/chunk-QUBJJDLC.js +1 -0
- package/build/js/chunks/{chunk-BIJB4K7G.js → chunk-QUWP3ILW.js} +1 -1
- package/build/js/chunks/{chunk-D6JKW7G4.js → chunk-RP4YFAF2.js} +1 -1
- package/build/js/chunks/chunk-SFS4ELLN.js +1 -0
- package/build/js/chunks/chunk-SYGWA3T6.js +35 -0
- package/build/js/chunks/chunk-TTGJAMI2.js +1 -0
- package/build/js/chunks/{chunk-523EQN4Z.js → chunk-U7ETOWGJ.js} +1 -1
- package/build/js/chunks/{chunk-X2ZGBI4S.js → chunk-UERKPMRV.js} +1 -1
- package/build/js/chunks/{chunk-2OCDIZIS.js → chunk-UQVVJP5Z.js} +1 -1
- package/build/js/chunks/{chunk-RHMGLXJ3.js → chunk-V2OKMBZD.js} +1 -1
- package/build/js/chunks/{chunk-TXVFFRVY.js → chunk-VJ7ZYB4V.js} +1 -1
- package/build/js/chunks/chunk-VSROWPI6.js +1 -0
- package/build/js/chunks/chunk-W33RVR5M.js +1 -0
- package/build/js/chunks/{chunk-L7WVCDGR.js → chunk-WVVNJRUA.js} +1 -1
- package/build/js/chunks/chunk-XG6VNDVQ.js +1 -0
- package/build/js/chunks/{chunk-4JH6EEAE.js → chunk-XIAF6V7E.js} +1 -1
- package/build/js/chunks/{chunk-C657OBED.js → chunk-XYZYNUX3.js} +1 -1
- package/build/js/chunks/chunk-Y7V35LNT.js +1 -0
- package/build/js/chunks/{chunk-LORGLY2X.js → chunk-YE2GYNRP.js} +1 -1
- package/build/js/chunks/chunk-ZWO2PAO7.js +1 -0
- package/build/js/controls/CameraFOVSwitchControl.d.ts +8 -8
- package/build/js/controls/CameraFOVSwitchControl.js +1 -1
- package/build/js/controls/CameraSwitchControl.d.ts +8 -8
- package/build/js/controls/CameraSwitchControl.js +1 -1
- package/build/js/controls/TorchSwitchControl.d.ts +8 -8
- package/build/js/controls/TorchSwitchControl.js +1 -1
- package/build/js/controls/common.d.ts +8 -8
- package/build/js/controls/index.d.ts +8 -8
- package/build/js/controls/index.js +1 -1
- package/build/js/defaults/DefaultsCamera.d.ts +30 -0
- package/build/js/defaults/DefaultsDataCaptureView.js +1 -1
- package/build/js/index.d.ts +15 -15
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.d.ts +8 -8
- package/build/js/private/CameraAccess.js +1 -1
- package/build/js/private/CameraManager.d.ts +10 -10
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CameraPool.d.ts +7 -7
- package/build/js/private/CanvasDrawer.d.ts +1 -1
- package/build/js/private/CanvasDrawer.js +1 -1
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +21 -13
- package/build/js/private/CanvasDrawerWithMetrics.js +1 -1
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +8 -8
- package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
- package/build/js/private/CustomLocationsView.js +1 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +8 -8
- package/build/js/private/FrameReaders/FrameReader.d.ts +8 -8
- package/build/js/private/FrameReaders/FrameReader.js +1 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +8 -8
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +8 -8
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +8 -8
- package/build/js/private/FrameReaders/index.js +1 -1
- package/build/js/private/GestureRecognizer/GestureRecognizer.js +1 -1
- package/build/js/private/GestureRecognizer/PointerEventsDetector.d.ts +1 -1
- package/build/js/private/GestureRecognizer/PointerEventsDetector.js +1 -1
- package/build/js/private/GestureRecognizer/index.js +1 -1
- package/build/js/private/ImageConverterBase.d.ts +2 -1
- package/build/js/private/ImageConverterBase.js +1 -1
- package/build/js/private/ImageConverterMainThread.js +1 -1
- package/build/js/private/NormalizedModuleLoaderOptions.d.ts +8 -8
- package/build/js/private/OrientationObserver.js +1 -1
- package/build/js/private/SingleImageUploaderView.d.ts +35 -0
- package/build/js/private/SingleImageUploaderView.js +1 -1
- package/build/js/private/ViewControls+related.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +8 -8
- package/build/js/private/ViewsRegistry.d.ts +8 -8
- package/build/js/private/djinni-types/index.d.ts +10 -1
- package/build/js/private/djinni-types/index.js +1 -1
- package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
- package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
- package/build/js/private/ui/atoms/Backdrop.d.ts +1 -1
- package/build/js/private/ui/atoms/Backdrop.js +1 -1
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Card.js +1 -1
- package/build/js/private/ui/atoms/CardList.js +1 -1
- package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/DeleteSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/GlassSvgIcon.d.ts +1 -1
- package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PauseSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/PauseSvgIcon.js +1 -0
- package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ProgressBar.js +1 -1
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.d.ts +1 -1
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ScanSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ScanSvgIcon.js +1 -0
- package/build/js/private/ui/atoms/ShutterButton.js +1 -1
- package/build/js/private/ui/atoms/SlashSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/SvgIcon.d.ts +1 -0
- package/build/js/private/ui/atoms/SvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Toast.d.ts +11 -16
- package/build/js/private/ui/atoms/Toast.js +1 -1
- package/build/js/private/ui/atoms/TorchOffSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/TorchOnSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
- package/build/js/private/ui/colors.d.ts +5 -1
- package/build/js/private/ui/colors.js +1 -1
- package/build/js/private/ui/molecules/CameraFOVSwitchButton.js +1 -1
- package/build/js/private/ui/molecules/CameraSwitchButton.js +1 -1
- package/build/js/private/ui/molecules/ControlsLayout.js +1 -1
- package/build/js/private/ui/molecules/HintPresenter.d.ts +7 -7
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/ui/molecules/TorchSwitchIconButton.js +1 -1
- package/build/js/private/utils/cookieStore.d.ts +18 -0
- package/build/js/private/utils/cookieStore.js +1 -0
- package/build/js/private/utils/cookieStorePolyfill.d.ts +43 -0
- package/build/js/private/utils/cookieStorePolyfill.js +1 -0
- package/build/js/private/utils/fromGrayScaleToRgba.d.ts +12 -0
- package/build/js/private/utils/fromGrayScaleToRgba.js +1 -0
- package/build/js/private/utils/getTimestamp.d.ts +9 -0
- package/build/js/private/utils/getTimestamp.js +1 -0
- package/build/js/private/utils/globalThisPolyfill.d.ts +2 -2
- package/build/js/private/utils/globalThisPolyfill.js +1 -1
- package/build/js/private/utils/index.d.ts +1 -0
- package/build/js/private/utils/index.js +1 -1
- package/build/js/private/utils/polyfillLoader.d.ts +2 -0
- package/build/js/private/utils/polyfillLoader.js +1 -1
- package/build/js/private/utils/replaceImagesInViewUtils.d.ts +8 -8
- package/build/js/private/utils/safeRequestAnimationFrame.d.ts +23 -0
- package/build/js/private/utils/safeRequestAnimationFrame.js +1 -0
- package/build/js/private/utils/safeStorage.d.ts +4 -3
- package/build/js/private/utils/safeStorage.js +1 -1
- package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -1
- package/build/js/worker/ImageConverterForwarder.d.ts +10 -9
- package/build/js/worker/ImageConverterForwarder.js +1 -1
- package/build/js/worker/ImageConverterWorker.js +1 -1
- package/build/js/worker/ViewInfoHelper.d.ts +47 -0
- package/build/js/worker/ViewInfoHelper.js +1 -0
- package/build/js/worker/WorkerMain.d.ts +8 -8
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/coreCapture.inlineWorker.d.ts +8 -8
- package/build/js/worker/coreCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +7 -7
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +9 -9
- package/build/js/worker/dataCaptureLoader.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +7 -7
- package/build/js/worker/dataCaptureWorkerRelated.js +1 -1
- package/build/js/worker/helperFs.d.ts +11 -1
- package/build/js/worker/helperFs.js +1 -1
- package/build/js/worker/index.d.ts +8 -8
- package/build/js/worker/index.js +1 -1
- package/package.json +4 -6
- package/build/js/chunks/chunk-457L5N2F.js +0 -1
- package/build/js/chunks/chunk-4GKVQAVF.js +0 -1
- package/build/js/chunks/chunk-4QDO6ZMC.js +0 -35
- package/build/js/chunks/chunk-4ZAHOKYN.js +0 -1
- package/build/js/chunks/chunk-56CY5YB3.js +0 -1
- package/build/js/chunks/chunk-5IGOKD23.js +0 -1
- package/build/js/chunks/chunk-5JAPQHXF.js +0 -1
- package/build/js/chunks/chunk-AFCJ24Y3.js +0 -1
- package/build/js/chunks/chunk-C3EY6I75.js +0 -2
- package/build/js/chunks/chunk-DMOXDUF6.js +0 -1
- package/build/js/chunks/chunk-DZKZ6RMW.js +0 -1
- package/build/js/chunks/chunk-F2IJCZAS.js +0 -1
- package/build/js/chunks/chunk-F6TT5US7.js +0 -1
- package/build/js/chunks/chunk-FPCUMIQC.js +0 -1
- package/build/js/chunks/chunk-GHDJPETZ.js +0 -1
- package/build/js/chunks/chunk-HMOFGW5O.js +0 -1
- package/build/js/chunks/chunk-JKKB2J3F.js +0 -1
- package/build/js/chunks/chunk-JVZGAWFX.js +0 -1
- package/build/js/chunks/chunk-MBL5Q2H2.js +0 -1
- package/build/js/chunks/chunk-MKTACV3Q.js +0 -1
- package/build/js/chunks/chunk-NDQQHCZN.js +0 -1
- package/build/js/chunks/chunk-PA2BMEFD.js +0 -1
- package/build/js/chunks/chunk-SOCEWYYO.js +0 -1
- package/build/js/chunks/chunk-SVJ6BU5X.js +0 -1
- package/build/js/chunks/chunk-TU44BW74.js +0 -1
- package/build/js/chunks/chunk-U273RPMS.js +0 -6
- package/build/js/chunks/chunk-V6RG452U.js +0 -1
- package/build/js/chunks/chunk-VBUDN72N.js +0 -2
- package/build/js/chunks/chunk-WL2XKPJD.js +0 -1
- package/build/js/chunks/chunk-XINFYUZW.js +0 -1
- package/build/js/chunks/chunk-XLRKXFUR.js +0 -0
- package/build/js/chunks/chunk-YPAFWBL4.js +0 -1
- package/build/js/chunks/chunk-YRQ34YNY.js +0 -1
- package/build/js/chunks/chunk-ZDSGG7SD.js +0 -1
- package/build/js/chunks/chunk-ZEBGTTCX.js +0 -1
- /package/build/js/chunks/{chunk-3CXYB36D.js → chunk-TU2LKPHV.js} +0 -0
- /package/build/js/chunks/{chunk-ATTDETQP.js → chunk-VFOSFLTM.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import './Camera-DhGjpcjv.js';
|
|
3
|
-
export { b as Change, h as DataCaptureComponent, g as DataCaptureComponentJSON, p as DataCaptureContext, k as DataCaptureContextCreationOptions, m as DataCaptureContextJSON, D as DataCaptureContextState, c as DataCaptureMode, e as DataCaptureModeJSON, M as ModuleLoaderOptions, l as PrivateCapabilityInfo, P as PrivateChangeSet, f as PrivateDataCaptureComponent, j as PrivateDataCaptureContext, i as PrivateDataCaptureContextOptions, d as PrivateDataCaptureMode, o as PrivateFrameHandler, n as PrivateFrameHandlerResponse } from './DataCaptureContext-
|
|
3
|
+
export { b as Change, h as DataCaptureComponent, g as DataCaptureComponentJSON, p as DataCaptureContext, k as DataCaptureContextCreationOptions, m as DataCaptureContextJSON, D as DataCaptureContextState, c as DataCaptureMode, e as DataCaptureModeJSON, M as ModuleLoaderOptions, l as PrivateCapabilityInfo, P as PrivateChangeSet, f as PrivateDataCaptureComponent, j as PrivateDataCaptureContext, i as PrivateDataCaptureContextOptions, d as PrivateDataCaptureMode, o as PrivateFrameHandler, n as PrivateFrameHandlerResponse } from './DataCaptureContext-Dvdr7st4.js';
|
|
4
4
|
import './DataCaptureContextSettings.js';
|
|
5
5
|
import './commons/JSONType.js';
|
|
6
6
|
import './commons/Orientation.js';
|
|
@@ -15,12 +15,6 @@ import './commons/Rect.js';
|
|
|
15
15
|
import './commons/Point.js';
|
|
16
16
|
import './commons/Size.js';
|
|
17
17
|
import './private/privateAccess.js';
|
|
18
|
-
import './commons/MarginsWithUnit.js';
|
|
19
|
-
import './commons/NumberWithUnit.js';
|
|
20
|
-
import './commons/MeasureUnit.js';
|
|
21
|
-
import './commons/PointWithUnit.js';
|
|
22
|
-
import './commons/Anchor.js';
|
|
23
|
-
import './commons/Quadrilateral.js';
|
|
24
18
|
import './DataCaptureViewPlusRelated.js';
|
|
25
19
|
import './NotificationPresenter/NotificationPresenter.js';
|
|
26
20
|
import './NotificationPresenter/NotificationConfiguration.js';
|
|
@@ -28,6 +22,12 @@ import './commons/Color.js';
|
|
|
28
22
|
import './ScanditIcon.js';
|
|
29
23
|
import './private/utils/ScanditHTMLElement.js';
|
|
30
24
|
import './NotificationPresenter/NotificationStyle.js';
|
|
25
|
+
import './commons/Anchor.js';
|
|
26
|
+
import './commons/MarginsWithUnit.js';
|
|
27
|
+
import './commons/NumberWithUnit.js';
|
|
28
|
+
import './commons/MeasureUnit.js';
|
|
29
|
+
import './commons/PointWithUnit.js';
|
|
30
|
+
import './commons/Quadrilateral.js';
|
|
31
31
|
import './private/CustomLocationsView.js';
|
|
32
32
|
import './private/View.js';
|
|
33
33
|
import './private/AnchorPositions.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as DataCaptureContext}from'./chunks/chunk-
|
|
1
|
+
export{b as DataCaptureContext}from'./chunks/chunk-OFNPZ4HM.js';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { s as ContextStatus, r as ContextStatusJSON, q as DataCaptureContextListener, t as PrivateMirrorAxis } from './DataCaptureContext-
|
|
2
|
+
export { s as ContextStatus, r as ContextStatusJSON, q as DataCaptureContextListener, t as PrivateMirrorAxis } from './DataCaptureContext-Dvdr7st4.js';
|
|
3
3
|
import './Camera-DhGjpcjv.js';
|
|
4
4
|
import './ScanditIcon.js';
|
|
5
5
|
import './DataCaptureContextSettings.js';
|
|
6
6
|
import './commons/JSONType.js';
|
|
7
7
|
import './private/Serializable.js';
|
|
8
|
+
import './DataCaptureViewPlusRelated.js';
|
|
9
|
+
import './NotificationPresenter/NotificationPresenter.js';
|
|
10
|
+
import './NotificationPresenter/NotificationConfiguration.js';
|
|
11
|
+
import './commons/Color.js';
|
|
12
|
+
import './NotificationPresenter/NotificationStyle.js';
|
|
13
|
+
import './private/utils/ScanditHTMLElement.js';
|
|
14
|
+
import './commons/Anchor.js';
|
|
8
15
|
import './commons/MarginsWithUnit.js';
|
|
9
16
|
import './commons/NumberWithUnit.js';
|
|
10
17
|
import './commons/MeasureUnit.js';
|
|
11
|
-
import './commons/PointWithUnit.js';
|
|
12
|
-
import './commons/Anchor.js';
|
|
13
18
|
import './commons/Orientation.js';
|
|
14
19
|
import './commons/Point.js';
|
|
20
|
+
import './commons/PointWithUnit.js';
|
|
15
21
|
import './commons/Quadrilateral.js';
|
|
16
22
|
import './commons/Size.js';
|
|
17
|
-
import './DataCaptureViewPlusRelated.js';
|
|
18
|
-
import './NotificationPresenter/NotificationPresenter.js';
|
|
19
|
-
import './NotificationPresenter/NotificationConfiguration.js';
|
|
20
|
-
import './commons/Color.js';
|
|
21
|
-
import './NotificationPresenter/NotificationStyle.js';
|
|
22
|
-
import './private/utils/ScanditHTMLElement.js';
|
|
23
23
|
import './private/CustomLocationsView.js';
|
|
24
24
|
import './private/View.js';
|
|
25
25
|
import './private/AnchorPositions.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureVersion}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureVersion}from'./chunks/chunk-XG6VNDVQ.js';
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import './Camera-DhGjpcjv.js';
|
|
3
|
-
|
|
4
|
-
import './
|
|
3
|
+
export { u as DataCaptureOverlay, y as DataCaptureView, x as DataCaptureViewConnectOptions, w as DataCaptureViewJSON, v as DataCaptureViewListener } from './DataCaptureContext-Dvdr7st4.js';
|
|
4
|
+
import './DataCaptureViewPlusRelated.js';
|
|
5
|
+
import './NotificationPresenter/NotificationPresenter.js';
|
|
5
6
|
import './commons/Anchor.js';
|
|
7
|
+
import './commons/MarginsWithUnit.js';
|
|
6
8
|
import './commons/Orientation.js';
|
|
7
9
|
import './commons/Point.js';
|
|
10
|
+
import './commons/PointWithUnit.js';
|
|
8
11
|
import './commons/Quadrilateral.js';
|
|
9
12
|
import './commons/Size.js';
|
|
10
|
-
export { u as DataCaptureOverlay, y as DataCaptureView, x as DataCaptureViewConnectOptions, w as DataCaptureViewJSON, v as DataCaptureViewListener } from './DataCaptureContext-fzPdCXUX.js';
|
|
11
|
-
import './DataCaptureViewPlusRelated.js';
|
|
12
|
-
import './NotificationPresenter/NotificationPresenter.js';
|
|
13
13
|
import './private/CustomLocationsView.js';
|
|
14
14
|
import './private/Serializable.js';
|
|
15
15
|
import './private/nativeHandle.js';
|
|
16
16
|
import './private/AnchorPositions.js';
|
|
17
17
|
import './commons/Rect.js';
|
|
18
18
|
import './private/privateAccess.js';
|
|
19
|
-
import './commons/NumberWithUnit.js';
|
|
20
|
-
import './commons/MeasureUnit.js';
|
|
21
19
|
import './DataCaptureContextSettings.js';
|
|
22
20
|
import './commons/JSONType.js';
|
|
23
21
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
@@ -30,6 +28,8 @@ import './private/utils/ScanditHTMLElement.js';
|
|
|
30
28
|
import './private/djinni-types/index.js';
|
|
31
29
|
import './private/HtmlElementState.js';
|
|
32
30
|
import './commons/SizeWithUnit.js';
|
|
31
|
+
import './commons/NumberWithUnit.js';
|
|
32
|
+
import './commons/MeasureUnit.js';
|
|
33
33
|
import './private/utils/AsyncStateMachine.js';
|
|
34
34
|
import './tsHelper.js';
|
|
35
35
|
import './NotificationPresenter/NotificationConfiguration.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureView}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureView}from'./chunks/chunk-DSFN65OM.js';
|
package/build/js/Feedback.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Feedback}from'./chunks/chunk-
|
|
1
|
+
export{a as Feedback}from'./chunks/chunk-WVVNJRUA.js';
|
package/build/js/FrameData.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { F as FrameData, z as PrivateLoadableFrameData, A as convertToPublicFrameData } from './DataCaptureContext-
|
|
2
|
+
export { F as FrameData, z as PrivateLoadableFrameData, A as convertToPublicFrameData } from './DataCaptureContext-Dvdr7st4.js';
|
|
3
3
|
import './ScanditIcon.js';
|
|
4
4
|
import './Camera-DhGjpcjv.js';
|
|
5
5
|
import './commons/Rect.js';
|
|
@@ -9,19 +9,19 @@ import './commons/Size.js';
|
|
|
9
9
|
import './private/privateAccess.js';
|
|
10
10
|
import './DataCaptureContextSettings.js';
|
|
11
11
|
import './commons/JSONType.js';
|
|
12
|
-
import './commons/MarginsWithUnit.js';
|
|
13
|
-
import './commons/NumberWithUnit.js';
|
|
14
|
-
import './commons/MeasureUnit.js';
|
|
15
|
-
import './commons/PointWithUnit.js';
|
|
16
|
-
import './commons/Anchor.js';
|
|
17
|
-
import './commons/Orientation.js';
|
|
18
|
-
import './commons/Quadrilateral.js';
|
|
19
12
|
import './DataCaptureViewPlusRelated.js';
|
|
20
13
|
import './NotificationPresenter/NotificationPresenter.js';
|
|
21
14
|
import './NotificationPresenter/NotificationConfiguration.js';
|
|
22
15
|
import './commons/Color.js';
|
|
23
16
|
import './NotificationPresenter/NotificationStyle.js';
|
|
24
17
|
import './private/utils/ScanditHTMLElement.js';
|
|
18
|
+
import './commons/Anchor.js';
|
|
19
|
+
import './commons/MarginsWithUnit.js';
|
|
20
|
+
import './commons/NumberWithUnit.js';
|
|
21
|
+
import './commons/MeasureUnit.js';
|
|
22
|
+
import './commons/Orientation.js';
|
|
23
|
+
import './commons/PointWithUnit.js';
|
|
24
|
+
import './commons/Quadrilateral.js';
|
|
25
25
|
import './private/CustomLocationsView.js';
|
|
26
26
|
import './private/View.js';
|
|
27
27
|
import './private/AnchorPositions.js';
|
package/build/js/FrameData.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as convertToPublicFrameData}from'./chunks/chunk-
|
|
1
|
+
export{a as convertToPublicFrameData}from'./chunks/chunk-W33RVR5M.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ImageFrameSource}from'./chunks/chunk-
|
|
1
|
+
export{a as ImageFrameSource}from'./chunks/chunk-GLSB4QTY.js';
|
|
@@ -8,7 +8,7 @@ import '../commons/Color.js';
|
|
|
8
8
|
import '../private/Serializable.js';
|
|
9
9
|
import '../ScanditIcon.js';
|
|
10
10
|
import '../private/utils/ScanditHTMLElement.js';
|
|
11
|
-
import '../DataCaptureContext-
|
|
11
|
+
import '../DataCaptureContext-Dvdr7st4.js';
|
|
12
12
|
import '../Camera-DhGjpcjv.js';
|
|
13
13
|
import '../commons/Rect.js';
|
|
14
14
|
import '../commons/Point.js';
|
|
@@ -16,14 +16,14 @@ import '../commons/Size.js';
|
|
|
16
16
|
import '../private/privateAccess.js';
|
|
17
17
|
import '../DataCaptureContextSettings.js';
|
|
18
18
|
import '../commons/JSONType.js';
|
|
19
|
+
import '../DataCaptureViewPlusRelated.js';
|
|
20
|
+
import '../commons/Anchor.js';
|
|
19
21
|
import '../commons/MarginsWithUnit.js';
|
|
20
22
|
import '../commons/NumberWithUnit.js';
|
|
21
23
|
import '../commons/MeasureUnit.js';
|
|
22
|
-
import '../commons/PointWithUnit.js';
|
|
23
|
-
import '../commons/Anchor.js';
|
|
24
24
|
import '../commons/Orientation.js';
|
|
25
|
+
import '../commons/PointWithUnit.js';
|
|
25
26
|
import '../commons/Quadrilateral.js';
|
|
26
|
-
import '../DataCaptureViewPlusRelated.js';
|
|
27
27
|
import '../private/CustomLocationsView.js';
|
|
28
28
|
import '../private/View.js';
|
|
29
29
|
import '../private/AnchorPositions.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { H as HintPresenter } from '../../DataCaptureContext-
|
|
2
|
+
import { H as HintPresenter } from '../../DataCaptureContext-Dvdr7st4.js';
|
|
3
3
|
import { NotificationConfiguration } from '../NotificationConfiguration.js';
|
|
4
4
|
import { NotificationPresenter } from '../NotificationPresenter.js';
|
|
5
5
|
import '../../Camera-DhGjpcjv.js';
|
|
@@ -10,14 +10,14 @@ import '../../commons/Size.js';
|
|
|
10
10
|
import '../../private/privateAccess.js';
|
|
11
11
|
import '../../DataCaptureContextSettings.js';
|
|
12
12
|
import '../../commons/JSONType.js';
|
|
13
|
+
import '../../DataCaptureViewPlusRelated.js';
|
|
14
|
+
import '../../commons/Anchor.js';
|
|
13
15
|
import '../../commons/MarginsWithUnit.js';
|
|
14
16
|
import '../../commons/NumberWithUnit.js';
|
|
15
17
|
import '../../commons/MeasureUnit.js';
|
|
16
|
-
import '../../commons/PointWithUnit.js';
|
|
17
|
-
import '../../commons/Anchor.js';
|
|
18
18
|
import '../../commons/Orientation.js';
|
|
19
|
+
import '../../commons/PointWithUnit.js';
|
|
19
20
|
import '../../commons/Quadrilateral.js';
|
|
20
|
-
import '../../DataCaptureViewPlusRelated.js';
|
|
21
21
|
import '../../private/CustomLocationsView.js';
|
|
22
22
|
import '../../private/View.js';
|
|
23
23
|
import '../../private/AnchorPositions.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import {
|
|
2
|
+
import { N as GenericHint } from '../../DataCaptureContext-Dvdr7st4.js';
|
|
3
3
|
import { NotificationConfiguration } from '../NotificationConfiguration.js';
|
|
4
4
|
import '../../Camera-DhGjpcjv.js';
|
|
5
5
|
import '../../commons/Rect.js';
|
|
@@ -9,19 +9,19 @@ import '../../commons/Size.js';
|
|
|
9
9
|
import '../../private/privateAccess.js';
|
|
10
10
|
import '../../DataCaptureContextSettings.js';
|
|
11
11
|
import '../../commons/JSONType.js';
|
|
12
|
-
import '../../commons/MarginsWithUnit.js';
|
|
13
|
-
import '../../commons/NumberWithUnit.js';
|
|
14
|
-
import '../../commons/MeasureUnit.js';
|
|
15
|
-
import '../../commons/PointWithUnit.js';
|
|
16
|
-
import '../../commons/Anchor.js';
|
|
17
|
-
import '../../commons/Orientation.js';
|
|
18
|
-
import '../../commons/Quadrilateral.js';
|
|
19
12
|
import '../../DataCaptureViewPlusRelated.js';
|
|
20
13
|
import '../NotificationPresenter.js';
|
|
21
14
|
import '../../commons/Color.js';
|
|
22
15
|
import '../../ScanditIcon.js';
|
|
23
16
|
import '../../private/utils/ScanditHTMLElement.js';
|
|
24
17
|
import '../NotificationStyle.js';
|
|
18
|
+
import '../../commons/Anchor.js';
|
|
19
|
+
import '../../commons/MarginsWithUnit.js';
|
|
20
|
+
import '../../commons/NumberWithUnit.js';
|
|
21
|
+
import '../../commons/MeasureUnit.js';
|
|
22
|
+
import '../../commons/Orientation.js';
|
|
23
|
+
import '../../commons/PointWithUnit.js';
|
|
24
|
+
import '../../commons/Quadrilateral.js';
|
|
25
25
|
import '../../private/CustomLocationsView.js';
|
|
26
26
|
import '../../private/View.js';
|
|
27
27
|
import '../../private/AnchorPositions.js';
|
|
@@ -8,7 +8,7 @@ declare enum ScanditIconShape {
|
|
|
8
8
|
Square = "square"
|
|
9
9
|
}
|
|
10
10
|
declare class ScanditIcon extends ScanditHTMLElement {
|
|
11
|
-
static tag: "scandit-
|
|
11
|
+
static tag: "scandit-icon-container";
|
|
12
12
|
private static readonly observedAttributes;
|
|
13
13
|
private containerElement;
|
|
14
14
|
private onSlotChangeListener;
|
package/build/js/ScanditIcon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-
|
|
1
|
+
export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-O4HDBWKK.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-
|
|
1
|
+
export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-SFS4ELLN.js';export{a as ScanditIconShape}from'./chunks/chunk-O4HDBWKK.js';
|
package/build/js/Vibration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Vibration}from'./chunks/chunk-
|
|
1
|
+
export{a as Vibration}from'./chunks/chunk-NXAYIU7F.js';
|
|
@@ -67,6 +67,24 @@ declare namespace BrowserHelper {
|
|
|
67
67
|
*/
|
|
68
68
|
export function isDesktopDevice(): boolean;
|
|
69
69
|
export function isIPhone(): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* @hidden
|
|
72
|
+
*
|
|
73
|
+
* @returns Whether the device is an iPad.
|
|
74
|
+
*/
|
|
75
|
+
export function isIPad(): boolean;
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
*
|
|
79
|
+
* @returns Whether the device is a MacBook.
|
|
80
|
+
*/
|
|
81
|
+
export function isMacBook(): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* @hidden
|
|
84
|
+
*
|
|
85
|
+
* @returns Whether the device is an Apple device (iPhone, iPad, or Mac).
|
|
86
|
+
*/
|
|
87
|
+
export function isAppleDevice(): boolean;
|
|
70
88
|
/**
|
|
71
89
|
* @hidden
|
|
72
90
|
*
|
|
@@ -100,7 +118,7 @@ declare namespace BrowserHelper {
|
|
|
100
118
|
*
|
|
101
119
|
* @returns The device id for the current browser.
|
|
102
120
|
*/
|
|
103
|
-
export function getDeviceId(): string
|
|
121
|
+
export function getDeviceId(): Promise<string>;
|
|
104
122
|
/**
|
|
105
123
|
* @hidden
|
|
106
124
|
*
|
|
@@ -170,6 +188,13 @@ declare namespace BrowserHelper {
|
|
|
170
188
|
* @hidden
|
|
171
189
|
*/
|
|
172
190
|
export function isAnimationApiSupported(): boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Check if the browser supports the VirtualKeyboard API.
|
|
193
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/VirtualKeyboard
|
|
194
|
+
* @returns Whether the browser supports the VirtualKeyboard API.
|
|
195
|
+
* @hidden
|
|
196
|
+
*/
|
|
197
|
+
export function hasVirtualKeyboardSupport(): boolean;
|
|
173
198
|
/**
|
|
174
199
|
* Check if the app is running in Progressive Web App (PWA) mode with the specified display mode.
|
|
175
200
|
* See https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest/Reference/display
|
|
@@ -182,6 +207,7 @@ declare namespace BrowserHelper {
|
|
|
182
207
|
* @returns Whether the app is running in PWA mode with the specified display mode.
|
|
183
208
|
*/
|
|
184
209
|
export function isPwaDisplayMode(displayMode: DisplayMode): boolean;
|
|
210
|
+
export function isFixedMemoryRequired(): boolean;
|
|
185
211
|
export { };
|
|
186
212
|
}
|
|
187
213
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as BrowserHelper,a as DisplayMode}from'./chunks/chunk-
|
|
1
|
+
export{b as BrowserHelper,a as DisplayMode}from'./chunks/chunk-A225YZFY.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {b}from'./chunk-QBDQQMQ5.js';import {b as b$1}from'./chunk-LA6TM76R.js';import {a}from'./chunk-CX2R2XQK.js';var v=(e=>(e.Nonzero="nonzero",e.Evenodd="evenodd",e))(v||{}),n=class n extends b{constructor(e){super();this._context=null;this.isNextDrawPending=false;this.latestCommands=new Uint8Array([]);this.canvas=e,this.doDrawLoop=this.doDraw.bind(this);}get context(){if(!this._context&&(this._context=this.canvas.getContext("2d"),!this._context))throw new TypeError("CanvasRenderingContext cannot be retrieved.");return this._context}draw(e){if(this.latestCommands=e,!this.isCanvasReady()){this.postponeDraw();return}this.isNextDrawPending||(this.isNextDrawPending=true,a(this.doDrawLoop));}updateCanvasSizeAttributes(e,s,t=window.devicePixelRatio){let i=Math.round(e*t),r=Math.round(s*t);(i!==this.canvas.width||r!==this.canvas.height)&&(this.canvas.width=i,this.canvas.height=r,this.context.scale(t,t));}startObservingCanvasResize(){if(!this.resizeObserver){if(!n.ResizeObserver)throw new Error("PrivateCanvasDrawer.ResizeObserver is not set");this.resizeObserver=new n.ResizeObserver(e=>{var r;let[s]=e,{width:t,height:i}=(r=s.contentRect)!=null?r:this.canvas;t===0||i===0||(this.updateCanvasSizeAttributes(t,i),this.latestCommands.length!==0&&(this.draw(this.latestCommands),this.latestCommands=new Uint8Array([])));}),this.resizeObserver.observe(this.canvas);}}endObservingCanvasResize(){this.resizeObserver&&this.resizeObserver.unobserve(this.canvas);}doDraw(e){this.context.clearRect(0,0,this.canvas.width,this.canvas.height);let s=new b$1(this.latestCommands);for(;!s.isConsumed();){let t=s.extractCommandType();this.drawSingleCommand(t,s);}this.isNextDrawPending=false;}postponeDraw(){this.startObservingCanvasResize();}isCanvasReady(){return this.canvas.width>0&&this.canvas.height>0}};n.ResizeObserver="ResizeObserver"in globalThis?globalThis.ResizeObserver:void 0;var d=n;export{v as a,d as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(){return performance.now()}export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
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 e.register(),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(24,24)}" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM12 7C11.4477 7 11 7.44772 11 8V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V8C13 7.44772 12.5523 7 12 7ZM12 17C12.5523 17 13 16.5523 13 16C13 15.4477 12.5523 15 12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-rounded-exclamation-mark-icon";var r=e;export{r as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-IBDUCVB4.js';import {a as a$1}from'./chunk-LFJUGRQV.js';import {d as d$2}from'./chunk-HMOFGW5O.js';import {d as d$1}from'./chunk-AFCJ24Y3.js';import {b as b$1}from'./chunk-VBUDN72N.js';import {a as a$3}from'./chunk-XR65N6EG.js';import {g}from'./chunk-3D2HNEVH.js';import {a}from'./chunk-6LHGFWQI.js';import {a as a$2}from'./chunk-QCZSSQAQ.js';d$1.addVideoDevicesListener(w=>{b.integrateIncomingVideoDevices(w.map(e=>d.fromDeviceCamera(e)));});var C;C=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._context=null;this[C]={markAsUnmappedToDeviceCameras:this.markAsUnmappedToDeviceCameras.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:d$2.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$1.getCameras(e!=null?e:false,t!=null?t:false),[...b.get()]}static getOrCreate(e){let{deviceId:t,position:r,bestGuess:i}=e,n=new s;return n._deviceId=t!=null?t:"",n.position=r!=null?r:"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,r;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=(r=(t=this.stateTransitionStrategyMap[this.currentState])==null?void 0:t[e])==null?void 0:r.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);}async applySettings(e){var r;this._settings=new g(e);let t=this.settings.getProperty("grayScaleFrameReader");if(this.cameraManager.setFrameReaderType(t===true?"GRAYSCALE":"RGBA"),this.currentState==="on"||this.currentState==="standby"){let i=this.cameraManager.activeCameraSettings;(i==null?void 0:i.preferredResolution)!==this.settings.preferredResolution&&(await this.cameraManager.applyCameraSettings(this.settings),(r=this.cameraManager.activeCamera)!=null&&r.currentResolution&&(this._currentResolution={width:this.cameraManager.activeCamera.currentResolution.width,height:this.cameraManager.activeCamera.currentResolution.height})),await this.cameraManager.setZoom(this.settings.zoomFactor);let n=this.settings.getProperty("minFrameRate"),h=this.settings.getProperty("maxFrameRate");(n!=null||h!=null)&&await this.cameraManager.setFrameRate({min:n,max:h});let l=this.settings.getProperty("manualLensPosition");l!=null&&await this.cameraManager.setFocus(l);let p=this.settings.getProperty("exposureTargetBias"),S=this.settings.getProperty("exposureDuration");(p!=null||S!=null)&&await this.cameraManager.setExposure({compensation:p,time:S});}return 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$1.getCameras()).find(r=>r.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&&(this._deviceId=this.cameraManager.activeCamera.deviceId,this._label=this.cameraManager.activeCamera.label,this.position=this.cameraManager.activeCamera.position,this._currentResolution=this.cameraManager.activeCamera.currentResolution);}markAsUnmappedToDeviceCameras(){this._notFoundOnDevice=true;}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}isZoomAvailable(){var e;return ((e=this.cameraManager.mediaTrackCapabilities)==null?void 0:e.zoom)!=null}},d=s;export{d as a};
|
|
1
|
+
import {b}from'./chunk-IBDUCVB4.js';import {a as a$1}from'./chunk-LFJUGRQV.js';import {g as g$1}from'./chunk-SYGWA3T6.js';import {d as d$1}from'./chunk-NT5WI2PS.js';import {b as b$1}from'./chunk-A225YZFY.js';import {a as a$3}from'./chunk-XR65N6EG.js';import {g}from'./chunk-3D2HNEVH.js';import {a}from'./chunk-6LHGFWQI.js';import {a as a$2}from'./chunk-QCZSSQAQ.js';d$1.addVideoDevicesListener(w=>{b.integrateIncomingVideoDevices(w.map(e=>d.fromDeviceCamera(e)));});var C;C=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._context=null;this[C]={markAsUnmappedToDeviceCameras:this.markAsUnmappedToDeviceCameras.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$1.getCameras(e!=null?e:false,t!=null?t:false),[...b.get()]}static getOrCreate(e){let{deviceId:t,position:r,bestGuess:i}=e,n=new s;return n._deviceId=t!=null?t:"",n.position=r!=null?r:"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,r;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=(r=(t=this.stateTransitionStrategyMap[this.currentState])==null?void 0:t[e])==null?void 0:r.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);}async applySettings(e){var r;this._settings=new g(e);let t=this.settings.getProperty("grayScaleFrameReader");if(this.cameraManager.setFrameReaderType(t===true?"GRAYSCALE":"RGBA"),this.currentState==="on"||this.currentState==="standby"){let i=this.cameraManager.activeCameraSettings;(i==null?void 0:i.preferredResolution)!==this.settings.preferredResolution&&(await this.cameraManager.applyCameraSettings(this.settings),(r=this.cameraManager.activeCamera)!=null&&r.currentResolution&&(this._currentResolution={width:this.cameraManager.activeCamera.currentResolution.width,height:this.cameraManager.activeCamera.currentResolution.height})),await this.cameraManager.setZoom(this.settings.zoomFactor);let n=this.settings.getProperty("minFrameRate"),h=this.settings.getProperty("maxFrameRate");(n!=null||h!=null)&&await this.cameraManager.setFrameRate({min:n,max:h});let l=this.settings.getProperty("manualLensPosition");l!=null&&await this.cameraManager.setFocus(l);let p=this.settings.getProperty("exposureTargetBias"),S=this.settings.getProperty("exposureDuration");(p!=null||S!=null)&&await this.cameraManager.setExposure({compensation:p,time:S});}return 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$1.getCameras()).find(r=>r.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&&(this._deviceId=this.cameraManager.activeCamera.deviceId,this._label=this.cameraManager.activeCamera.label,this.position=this.cameraManager.activeCamera.position,this._currentResolution=this.cameraManager.activeCamera.currentResolution);}markAsUnmappedToDeviceCameras(){this._notFoundOnDevice=true;}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}isZoomAvailable(){var e;return ((e=this.cameraManager.mediaTrackCapabilities)==null?void 0:e.zoom)!=null}},d=s;export{d as a};
|
|
@@ -0,0 +1 @@
|
|
|
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 e.register(),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(24,24)}" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM16.7337 10.4937C17.0888 10.152 17.0888 9.59799 16.7337 9.25628C16.3787 8.91457 15.8031 8.91457 15.4481 9.25628L10.6364 13.8876L8.55192 11.8813C8.19689 11.5396 7.62129 11.5396 7.26627 11.8813C6.91124 12.223 6.91124 12.777 7.26627 13.1187L9.99354 15.7437C10.3486 16.0854 10.9242 16.0854 11.2792 15.7437L16.7337 10.4937Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-rounded-check-icon";var c=e;export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
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 15C17.3844 15 18 15.6156 18 16.375C18 17.1344 17.3844 17.75 16.625 17.75C15.8656 17.75 15.25 17.1344 15.25 16.375C15.25 15.6156 15.8656 15 16.625 15ZM20.75 16.375C20.75 14.0968 18.9032 12.25 16.625 12.25C14.3468 12.25 12.5 14.0968 12.5 16.375C12.5 18.6532 14.3468 20.5 16.625 20.5C18.9032 20.5 20.75 18.6532 20.75 16.375Z" fill="${this.fill}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.7223 13.2223C10.1853 13.7592 9.3147 13.7592 8.77773 13.2223C8.24076 12.6853 8.24076 11.8147 8.77773 11.2777L9.18046 10.875H8.375C7.61561 10.875 7 11.4906 7 12.25V21.875C7 22.6344 7.61561 23.25 8.375 23.25H16.625C17.3844 23.25 18 23.8656 18 24.625C18 25.3844 17.3844 26 16.625 26H8.375C6.09683 26 4.25 24.1532 4.25 21.875V12.25C4.25 9.97183 6.09683 8.125 8.375 8.125H9.18046L8.77773 7.72227C8.24076 7.1853 8.24076 6.3147 8.77773 5.77773C9.3147 5.24076 10.1853 5.24076 10.7223 5.77773L13.4723 8.52773C13.7301 8.78559 13.875 9.13533 13.875 9.5C13.875 9.86467 13.7301 10.2144 13.4723 10.4723L10.7223 13.2223Z" fill="${this.fill}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.75 7.4375C20.75 7.0578 20.4422 6.75 20.0625 6.75H13.875C13.1156 6.75 12.5 6.13439 12.5 5.375C12.5 4.61561 13.1156 4 13.875 4H20.0625C21.961 4 23.5 5.53902 23.5 7.4375C23.5 7.8172 23.8078 8.125 24.1875 8.125H24.875C27.1532 8.125 29 9.97183 29 12.25V21.875C29 24.1532 27.1532 26 24.875 26H24.0695L24.4723 26.4027C25.0092 26.9397 25.0092 27.8103 24.4723 28.3473C23.9353 28.8842 23.0647 28.8842 22.5277 28.3473L19.7777 25.5973C19.2408 25.0603 19.2408 24.1897 19.7777 23.6527L22.5277 20.9027C23.0647 20.3658 23.9353 20.3658 24.4723 20.9027C25.0092 21.4397 25.0092 22.3103 24.4723 22.8473L24.0695 23.25H24.875C25.6344 23.25 26.25 22.6344 26.25 21.875V12.25C26.25 11.4906 25.6344 10.875 24.875 10.875H24.1875C22.289 10.875 20.75 9.33598 20.75 7.4375Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-camera-switch-icon";var C=e;export{C as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
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 t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`<style>${t.tag}{display:flex}${t.tag}[shadow] svg{filter:drop-shadow(0px 1px 2px rgba(18, 22, 25, .3))}</style><svg width="${this.size}" height="${this.heightForViewbox(32,32)}" viewBox="0 0 32 32" fill="none"><path d="M23.0072 11.0026H18.3321L19.9687 5.27515C20.0113 5.12618 20.0187 4.96936 19.9903 4.81705C19.9619 4.66475 19.8985 4.52112 19.8051 4.39748C19.7118 4.27385 19.5909 4.17359 19.4522 4.10462C19.3135 4.03564 19.1606 3.99983 19.0057 4H12.0031C11.7834 3.9999 11.5699 4.07207 11.3954 4.20538C11.2209 4.33868 11.095 4.52571 11.0374 4.73761L8.03623 15.7378C7.99509 15.8864 7.98889 16.0426 8.01812 16.1941C8.04735 16.3456 8.11122 16.4882 8.20472 16.6109C8.29823 16.7336 8.41884 16.833 8.55714 16.9014C8.69543 16.9697 8.84766 17.0052 9.00192 17.0049H13.8037L12.0191 26.83C11.9767 27.0569 12.0142 27.2915 12.1251 27.494C12.236 27.6964 12.4135 27.8543 12.6276 27.9408C12.8416 28.0273 13.0789 28.0372 13.2994 27.9687C13.5198 27.9002 13.7098 27.7575 13.8371 27.5649L23.8409 12.5592C23.9417 12.4085 23.9997 12.2331 24.0085 12.052C24.0174 11.8708 23.9769 11.6906 23.8912 11.5307C23.8056 11.3708 23.6781 11.2372 23.5224 11.1442C23.3667 11.0512 23.1886 11.0023 23.0072 11.0026Z" fill="${this.fill}"/></svg>`}};t.tag="scandit-torch-on-icon";var r=t;export{r as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$2}from'./chunk-KXAJHLEO.js';import {a as a$3}from'./chunk-AAEQZ45T.js';import {c,d,b as b$1,a as a$1,e}from'./chunk-SBC5K7IT.js';import {a,b}from'./chunk-TR3NGINC.js';var Ae=a((J,le)=>{(function(O,w){var be="1.0.40",V="",_="?",q="function",M="undefined",Q="object",K="string",ee="major",i="model",t="name",e="type",o="vendor",n="version",A="architecture",W="console",b="mobile",u="tablet",k="smarttv",E="wearable",ie="embedded",Y=500,z="Amazon",I="Apple",ce="ASUS",ue="BlackBerry",F="Browser",X="Chrome",pe="Edge",G="Firefox",j="Google",$="Huawei",a="LG",s="Microsoft",r="Motorola",d="Opera",g="Samsung",h="Sharp",x="Sony",y="Xiaomi",B="Zebra",oe="Facebook",P="Chromium OS",L="Mac OS",te=" Browser",ne=function(p,m){var c={};for(var v in p)m[v]&&m[v].length%2===0?c[v]=m[v].concat(p[v]):c[v]=p[v];return c},N=function(p){for(var m={},c=0;c<p.length;c++)m[p[c].toUpperCase()]=p[c];return m},D=function(p,m){return typeof p===K?R(m).indexOf(R(p))!==-1:false},R=function(p){return p.toLowerCase()},re=function(p){return typeof p===K?p.replace(/[^\d\.]/g,V).split(".")[0]:w},we=function(p,m){if(typeof p===K)return p=p.replace(/^\s\s*/,V),typeof m===M?p:p.substring(0,Y)},Z=function(p,m){for(var c=0,v,U,C,f,l,T;c<m.length&&!l;){var de=m[c],ge=m[c+1];for(v=U=0;v<de.length&&!l&&de[v];)if(l=de[v++].exec(p),l)for(C=0;C<ge.length;C++)T=l[++U],f=ge[C],typeof f===Q&&f.length>0?f.length===2?typeof f[1]==q?this[f[0]]=f[1].call(this,T):this[f[0]]=f[1]:f.length===3?typeof f[1]===q&&!(f[1].exec&&f[1].test)?this[f[0]]=T?f[1].call(this,T,f[2]):w:this[f[0]]=T?T.replace(f[1],f[2]):w:f.length===4&&(this[f[0]]=T?f[3].call(this,T.replace(f[1],f[2])):w):this[f]=T||w;c+=2;}},ae=function(p,m){for(var c in m)if(typeof m[c]===Q&&m[c].length>0){for(var v=0;v<m[c].length;v++)if(D(m[c][v],p))return c===_?w:c}else if(D(m[c],p))return c===_?w:c;return m.hasOwnProperty("*")?m["*"]:p},Te={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},me={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},fe={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[n,[t,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[n,[t,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[t,n],[/opios[\/ ]+([\w\.]+)/i],[n,[t,d+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[n,[t,d+" GX"]],[/\bopr\/([\w\.]+)/i],[n,[t,d]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[n,[t,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[n,[t,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[t,n],[/quark(?:pc)?\/([-\w\.]+)/i],[n,[t,"Quark"]],[/\bddg\/([\w\.]+)/i],[n,[t,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[n,[t,"UC"+F]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[n,[t,"WeChat"]],[/konqueror\/([\w\.]+)/i],[n,[t,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[n,[t,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[n,[t,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[n,[t,"Smart Lenovo "+F]],[/(avast|avg)\/([\w\.]+)/i],[[t,/(.+)/,"$1 Secure "+F],n],[/\bfocus\/([\w\.]+)/i],[n,[t,G+" Focus"]],[/\bopt\/([\w\.]+)/i],[n,[t,d+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[n,[t,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[n,[t,"Dolphin"]],[/coast\/([\w\.]+)/i],[n,[t,d+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[n,[t,"MIUI"+te]],[/fxios\/([\w\.-]+)/i],[n,[t,G]],[/\bqihoobrowser\/?([\w\.]*)/i],[n,[t,"360"]],[/\b(qq)\/([\w\.]+)/i],[[t,/(.+)/,"$1Browser"],n],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[t,/(.+)/,"$1"+te],n],[/samsungbrowser\/([\w\.]+)/i],[n,[t,g+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[n,[t,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[t,"Sogou Mobile"],n],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[t,n],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[t],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[n,t],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[t,oe],n],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[t,n],[/\bgsa\/([\w\.]+) .*safari\//i],[n,[t,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[n,[t,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[n,[t,X+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[t,X+" WebView"],n],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[n,[t,"Android "+F]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[t,n],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[n,[t,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[n,t],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[t,[n,ae,Te]],[/(webkit|khtml)\/([\w\.]+)/i],[t,n],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[t,"Netscape"],n],[/(wolvic|librewolf)\/([\w\.]+)/i],[t,n],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[n,[t,G+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[t,[n,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[t,[n,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[A,"amd64"]],[/(ia32(?=;))/i],[[A,R]],[/((?:i[346]|x)86)[;\)]/i],[[A,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[A,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[A,"armhf"]],[/windows (ce|mobile); ppc;/i],[[A,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[A,/ower/,V,R]],[/(sun4\w)[;\)]/i],[[A,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[A,R]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[i,[o,g],[e,u]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[i,[o,g],[e,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[i,[o,I],[e,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[i,[o,I],[e,u]],[/(macintosh);/i],[i,[o,I]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[i,[o,h],[e,b]],[/(?:honor)([-\w ]+)[;\)]/i],[i,[o,"Honor"],[e,b]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[i,[o,$],[e,u]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[i,[o,$],[e,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[i,/_/g," "],[o,y],[e,b]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[i,/_/g," "],[o,y],[e,u]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[i,[o,"OPPO"],[e,b]],[/\b(opd2\d{3}a?) bui/i],[i,[o,"OPPO"],[e,u]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[i,[o,"Vivo"],[e,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[i,[o,"Realme"],[e,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[i,[o,r],[e,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[i,[o,r],[e,u]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[i,[o,a],[e,u]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[i,[o,a],[e,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[i,[o,"Lenovo"],[e,u]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[i,/_/g," "],[o,"Nokia"],[e,b]],[/(pixel c)\b/i],[i,[o,j],[e,u]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[i,[o,j],[e,b]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[i,[o,x],[e,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[i,"Xperia Tablet"],[o,x],[e,u]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[i,[o,"OnePlus"],[e,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[i,[o,z],[e,u]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[i,/(.+)/g,"Fire Phone $1"],[o,z],[e,b]],[/(playbook);[-\w\),; ]+(rim)/i],[i,o,[e,u]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[i,[o,ue],[e,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[i,[o,ce],[e,u]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[i,[o,ce],[e,b]],[/(nexus 9)/i],[i,[o,"HTC"],[e,u]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[o,[i,/_/g," "],[e,b]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[i,[o,"TCL"],[e,u]],[/(itel) ((\w+))/i],[[o,R],i,[e,ae,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[i,[o,"Acer"],[e,u]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[i,[o,"Meizu"],[e,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[i,[o,"Ulefone"],[e,b]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[i,[o,"Energizer"],[e,b]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[i,[o,"Cat"],[e,b]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[i,[o,"Smartfren"],[e,b]],[/droid.+; (a(?:015|06[35]|142p?))/i],[i,[o,"Nothing"],[e,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[o,i,[e,b]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[o,i,[e,u]],[/(surface duo)/i],[i,[o,s],[e,u]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[i,[o,"Fairphone"],[e,b]],[/(u304aa)/i],[i,[o,"AT&T"],[e,b]],[/\bsie-(\w*)/i],[i,[o,"Siemens"],[e,b]],[/\b(rct\w+) b/i],[i,[o,"RCA"],[e,u]],[/\b(venue[\d ]{2,7}) b/i],[i,[o,"Dell"],[e,u]],[/\b(q(?:mv|ta)\w+) b/i],[i,[o,"Verizon"],[e,u]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[i,[o,"Barnes & Noble"],[e,u]],[/\b(tm\d{3}\w+) b/i],[i,[o,"NuVision"],[e,u]],[/\b(k88) b/i],[i,[o,"ZTE"],[e,u]],[/\b(nx\d{3}j) b/i],[i,[o,"ZTE"],[e,b]],[/\b(gen\d{3}) b.+49h/i],[i,[o,"Swiss"],[e,b]],[/\b(zur\d{3}) b/i],[i,[o,"Swiss"],[e,u]],[/\b((zeki)?tb.*\b) b/i],[i,[o,"Zeki"],[e,u]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[o,"Dragon Touch"],i,[e,u]],[/\b(ns-?\w{0,9}) b/i],[i,[o,"Insignia"],[e,u]],[/\b((nxa|next)-?\w{0,9}) b/i],[i,[o,"NextBook"],[e,u]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[o,"Voice"],i,[e,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[o,"LvTel"],i,[e,b]],[/\b(ph-1) /i],[i,[o,"Essential"],[e,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[i,[o,"Envizen"],[e,u]],[/\b(trio[-\w\. ]+) b/i],[i,[o,"MachSpeed"],[e,u]],[/\btu_(1491) b/i],[i,[o,"Rotor"],[e,u]],[/(shield[\w ]+) b/i],[i,[o,"Nvidia"],[e,u]],[/(sprint) (\w+)/i],[o,i,[e,b]],[/(kin\.[onetw]{3})/i],[[i,/\./g," "],[o,s],[e,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[i,[o,B],[e,u]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[i,[o,B],[e,b]],[/smart-tv.+(samsung)/i],[o,[e,k]],[/hbbtv.+maple;(\d+)/i],[[i,/^/,"SmartTV"],[o,g],[e,k]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[o,a],[e,k]],[/(apple) ?tv/i],[o,[i,I+" TV"],[e,k]],[/crkey/i],[[i,X+"cast"],[o,j],[e,k]],[/droid.+aft(\w+)( bui|\))/i],[i,[o,z],[e,k]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[i,[o,h],[e,k]],[/(bravia[\w ]+)( bui|\))/i],[i,[o,x],[e,k]],[/(mitv-\w{5}) bui/i],[i,[o,y],[e,k]],[/Hbbtv.*(technisat) (.*);/i],[o,i,[e,k]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[o,we],[i,we],[e,k]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[e,k]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[o,i,[e,W]],[/droid.+; (shield) bui/i],[i,[o,"Nvidia"],[e,W]],[/(playstation [345portablevi]+)/i],[i,[o,x],[e,W]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[i,[o,s],[e,W]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[i,[o,g],[e,E]],[/((pebble))app/i],[o,i,[e,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[i,[o,I],[e,E]],[/droid.+; (glass) \d/i],[i,[o,j],[e,E]],[/droid.+; (wt63?0{2,3})\)/i],[i,[o,B],[e,E]],[/droid.+; (glass) \d/i],[i,[o,j],[e,E]],[/(pico) (4|neo3(?: link|pro)?)/i],[o,i,[e,E]],[/; (quest( \d| pro)?)/i],[i,[o,oe],[e,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[o,[e,ie]],[/(aeobc)\b/i],[i,[o,z],[e,ie]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[i,[e,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[i,[e,u]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[e,u]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[e,b]],[/(android[-\w\. ]{0,9});.+buil/i],[i,[o,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[n,[t,pe+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[t,n],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[n,[t,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[t,n],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[n,t]],os:[[/microsoft (windows) (vista|xp)/i],[t,n],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[t,[n,ae,me]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[n,ae,me],[t,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[n,/_/g,"."],[t,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[t,L],[n,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[n,t],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[t,n],[/\(bb(10);/i],[n,[t,ue]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[n,[t,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[n,[t,G+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[n,[t,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[n,[t,"watchOS"]],[/crkey\/([\d\.]+)/i],[n,[t,X+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[t,P],n],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[t,n],[/(sunos) ?([\w\.\d]*)/i],[[t,"Solaris"],n],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[t,n]]},S=function(p,m){if(typeof p===Q&&(m=p,p=w),!(this instanceof S))return new S(p,m).getResult();var c=typeof O!==M&&O.navigator?O.navigator:w,v=p||(c&&c.userAgent?c.userAgent:V),U=c&&c.userAgentData?c.userAgentData:w,C=m?ne(fe,m):fe,f=c&&c.userAgent==v;return this.getBrowser=function(){var l={};return l[t]=w,l[n]=w,Z.call(l,v,C.browser),l[ee]=re(l[n]),f&&c&&c.brave&&typeof c.brave.isBrave==q&&(l[t]="Brave"),l},this.getCPU=function(){var l={};return l[A]=w,Z.call(l,v,C.cpu),l},this.getDevice=function(){var l={};return l[o]=w,l[i]=w,l[e]=w,Z.call(l,v,C.device),f&&!l[e]&&U&&U.mobile&&(l[e]=b),f&&l[i]=="Macintosh"&&c&&typeof c.standalone!==M&&c.maxTouchPoints&&c.maxTouchPoints>2&&(l[i]="iPad",l[e]=u),l},this.getEngine=function(){var l={};return l[t]=w,l[n]=w,Z.call(l,v,C.engine),l},this.getOS=function(){var l={};return l[t]=w,l[n]=w,Z.call(l,v,C.os),f&&!l[t]&&U&&U.platform&&U.platform!="Unknown"&&(l[t]=U.platform.replace(/chrome os/i,P).replace(/macos/i,L)),l},this.getResult=function(){return {ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return v},this.setUA=function(l){return v=typeof l===K&&l.length>Y?we(l,Y):l,this},this.setUA(v),this};S.VERSION=be,S.BROWSER=N([t,n,ee]),S.CPU=N([A]),S.DEVICE=N([i,o,e,W,b,k,u,E,ie]),S.ENGINE=S.OS=N([t,n]),typeof J!==M?(typeof le!==M&&le.exports&&(J=le.exports=S),J.UAParser=S):typeof define===q&&define.amd?define(function(){return S}):typeof O!==M&&(O.UAParser=S);var H=typeof O!==M&&(O.jQuery||O.Zepto);if(H&&!H.ua){var se=new S;H.ua=se.getResult(),H.ua.get=function(){return se.getUA()},H.ua.set=function(p){se.setUA(p);var m=se.getResult();for(var c in m)H.ua[c]=m[c];};}})(typeof window=="object"?window:J);});var Ce=b(Ae(),1);var Re=(_=>(_.Standalone="standalone",_.Fullscreen="fullscreen",_.MinimalUI="minimal-ui",_.Browser="browser",_))(Re||{}),Ee;($=>{let O;function w(){return O==null&&(O=new Ce.default(navigator.userAgent)),O}$.getUserAgentInfo=w;function be(){var r;if("orientation"in window)return false;let a="(any-pointer: coarse)",s=(r=window.matchMedia)==null?void 0:r.call(window,a);return navigator.maxTouchPoints===0||(s==null?void 0:s.media)===a&&!(s!=null&&s.matches)}$.isDesktopDevice=be;function V(){return w().getDevice().model==="iPhone"}$.isIPhone=V;function _(){var h,x,y,B;let a=w(),s=(x=(h=a.getOS().name)==null?void 0:h.toLowerCase())!=null?x:"",r=a.getDevice(),d=(B=(y=r.model)==null?void 0:y.toLowerCase())!=null?B:"",g=r.type;return s.includes("ios")&&(g==="tablet"||d.includes("ipad"))}$.isIPad=_;function q(){var g,h,x,y;let a=(h=(g=w().getOS().name)==null?void 0:g.toLowerCase())!=null?h:"",s=w().getDevice(),r=s.type,d=(y=(x=s.model)==null?void 0:x.toLowerCase())!=null?y:"";return a.includes("mac")&&(r==="laptop"||d.includes("macintosh"))}$.isMacBook=q;function M(){return V()||_()||q()}$.isAppleDevice=M;function Q(){let a=w().getOS();return a.name==="iOS"&&a.version!=null&&a.version.localeCompare("16.3",void 0,{numeric:true})>=0}$.isIOSDeviceWithExtendedCameraAccess=Q;function K(){return "document"in window?window.document.createElement("canvas"):null}$.getCanvas=K;function ee(a){return a.name==="iOS"&&a.version!=null&&["11.2.2","11.2.5","11.2.6"].includes(a.version)}async function i(){return c()}$.hasSIMDSupport=i;async function t(){return d()}$.hasThreadsSupport=t;function e$1(a,s,r){let d=a[s[0]];return d==null?false:s.length===1?typeof d===r:(typeof d=="function"||typeof d=="object")&&e$1(d,s.slice(1),r)}function o(){var h;let a=true,s=null,r=null,d=null,g=null;try{if(s=$.getCanvas(),r=$.getCanvas(),d=s==null?void 0:s.getContext("webgl"),g=r==null?void 0:r.getContext("experimental-webgl"),!e$1(window,["WebGLRenderingContext"],"function")||d==null&&g==null)throw new Error("WebGLRenderingContext is not supported")}catch{a=false;}finally{for(let x of [d,g])typeof(x==null?void 0:x.getExtension)=="function"&&((h=x.getExtension("WEBGL_lose_context"))==null||h.loseContext());d=null,g=null,s=null,r=null;}return a}function n(){let a=true,s=true,r=new Set;location.protocol.startsWith("http")||r.add("httpProtocol"),e$1(window,["isSecureContext"],"boolean")&&!window.isSecureContext&&r.add("secureContext"),!e$1(navigator,["mediaDevices","getUserMedia"],"function")&&!e$1(navigator,["enumerateDevices"],"function")&&!e$1(window,["MediaStreamTrack","getSources"],"function")&&(r.add("mediaDevices"),a=false),e$1(window,["Worker"],"function")||(r.add("webWorkers"),a=false,s=false),e$1(window,["WebAssembly"],"object")||(r.add("webAssembly"),a=false,s=false),e$1(window,["Blob"],"function")||(r.add("blob"),a=false,s=false),e$1(window,["URL","createObjectURL"],"function")||(r.add("urlObject"),a=false,s=false),e$1(window,["OffscreenCanvas"],"function")||r.add("offscreenCanvas"),o()||r.add("webGL");let d=w().getOS();return ee(d)&&(r.add("webAssemblyErrorFree"),a=false,s=false),b$1()||r.add("sharedArrayBuffer"),a$1()||r.add("crossOriginIsolated"),F()||r.add("animationApi"),{fullSupport:a,scannerSupport:s,missingFeatures:[...r]}}$.checkBrowserCompatibility=n;async function A(){return e()}$.checkMultithreadingSupport=A;async function W(){let a="scandit-device-id",s=a$2.getInstanceFor("localStorage"),r=s.getItem(a);if(r!=null&&r!=="")return r;let g=await a$3().get(a);if(r=g==null?void 0:g.value,r!=null&&r!=="")return s.setItem(a,r),r;let h=new Uint8Array(20);return crypto.getRandomValues(h),r=[...h].map(x=>{let y=x.toString(16);return y.length===1?`0${y}`:y}).join(""),s.setItem(a,r),r}$.getDeviceId=W;function b(a){return a instanceof HTMLElement||a!=null&&typeof a=="object"&&typeof a.tagName=="string"}$.isValidHTMLElement=b;function u(){var d,g;let a=w().getOS();if(a.name!=="iOS")return true;let[s,r]=(g=(d=a.version)==null?void 0:d.split(".").map(Number))!=null?g:[];return s>14||s===14&&r>=6}$.isSupportedIOSVersion=u;function k(){var a,s;return (s=(a=w().getBrowser().name)==null?void 0:a.toLowerCase().includes("safari"))!=null?s:false}$.isSafari=k;function E(){var s,r;return /iphone|ipod|ipad/.test((r=(s=w().getDevice().model)==null?void 0:s.toLowerCase())!=null?r:"")&&!k()}$.isIosWebView=E;async function ie(){var s;return ((s=w().getOS().name)==null?void 0:s.toLowerCase())!=="android"?false:w().getUA().includes("wv")?true:[...(await fetch(document.location.toString(),{method:"HEAD"})).headers].some(([r])=>r.toLowerCase()==="x-requested-with")}$.isAndroidWebView=ie;function Y(){return w().getOS().name==="Windows"}$.isWindows=Y;function z(){return w().getBrowser().name==="Firefox"}$.isFirefox=z;function I(){if("navigator"in globalThis){for(let a of ["vibrate","webkitVibrate","msVibrate","mozVibrate"])if(typeof navigator[a]=="function")return navigator[a]}}$.getSupportedVibrationMethod=I;function ce(){return I()!=null&&!be()&&!Y()&&!z()}$.isVibrationAvailable=ce;function ue(){return w().getOS().name==="iOS"}$.isIOS=ue;function F(){return typeof globalThis.Animation<"u"&&typeof globalThis.KeyframeEffect<"u"&&typeof globalThis.Element.prototype.animate<"u"}$.isAnimationApiSupported=F;function X(){return "virtualKeyboard"in navigator}$.hasVirtualKeyboardSupport=X;function pe(a){var d;let s=`(display-mode: ${a})`,r=(d=globalThis.matchMedia)==null?void 0:d.call(globalThis,s);return (r==null?void 0:r.matches)===true?true:a==="standalone"&&typeof navigator=="object"&&"standalone"in navigator&&typeof navigator.standalone=="boolean"?navigator.standalone===true:false}$.isPwaDisplayMode=pe;function G(a,s,r){let d=P=>P.split(".").map(L=>Number.parseInt(L,10)||0),g=d(a),h=d(s),x=d(r),y=(P,L)=>{var ne,N;let te=Math.max(P.length,L.length);for(let D=0;D<te;D++){let R=(ne=P[D])!=null?ne:0,re=(N=L[D])!=null?N:0;if(R>re)return 1;if(R<re)return -1}return 0},B=y(g,h)>=0,oe=y(g,x)<0;return B&&oe}function j(){let s="26.3";if(M()){let r=w(),d=r.getOS(),g=r.getBrowser(),h=k()?g.version:d.version;return h?G(h,"26",s):false}return false}$.isFixedMemoryRequired=j;})(Ee||(Ee={}));
|
|
2
|
+
export{Re as a,Ee as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function o(){if(typeof globalThis<"u"&&"cookieStore"in globalThis&&globalThis.cookieStore!=null)return globalThis.cookieStore;throw new Error("CookieStore API is not available. loadPolyfills() call failed?")}export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$3}from'./chunk-EQRBQJYM.js';import {c,a as a$1,b}from'./chunk-JFRSUCMO.js';import {a as a$2}from'./chunk-GHTCNOQN.js';import {e}from'./chunk-SYGWA3T6.js';import {a as a$4}from'./chunk-XR65N6EG.js';var a=class a{constructor(e){this.canUploadFile=false;this._mounted=false;this._loading=false;this._htmlRoot=void 0;this._canvas=void 0;this._onInputCheck=void 0;this._onBeforeFileRead=void 0;this._onImageLoadError=void 0;this._onFileReaderError=void 0;this._onCaptureReady=void 0;this._resizedImageSizeLimit=1440;this._inputElement=void 0;this._buttonElement=void 0;this._informationElement=void 0;this._chooseImageText="";this._localizationSubscription=void 0;this._onLocalizationUpdated=this.onLocalizationUpdated.bind(this);this._settings=e;}get canvas(){return this._canvas||(this._canvas=document.createElement("canvas")),this._canvas}get canvasContext(){return this._canvasContext||(this._canvasContext=this.canvas.getContext("2d",{willReadFrequently:true})),this._canvasContext}mount(e){var g;if(this._mounted)return;if(!document.head.querySelector(`[data-component=${a.componentName}]`)){let s=document.createElement("style");s.dataset.component=a.componentName,s.textContent=c,document.head.append(s);}let t=document.createElement("div");t.className=a$1.SINGLE_IMAGE_UPLOADER_CONTAINER,Object.assign(t.style,b.SINGLE_IMAGE_UPLOADER_CONTAINER_STYLE,this._settings.containerStyle),e.append(t);let{iconElement:n,iconStyle:r,informationElement:i,informationStyle:l,buttonElement:d,buttonStyle:h,onlyCameraCapture:p}=this._settings;Object.assign(n.style,b.SINGLE_IMAGE_UPLOADER_ICON_STYLE,r,{maxWidth:"100px",maxHeight:"100px"}),t.append(n),i.hasAttribute(a.DEFAULT_DOM_ATTRIBUTE)&&(Object.assign(i.style,b.SINGLE_IMAGE_UPLOADER_INFORMATION_STYLE,l),i.textContent=a$2.getInstance().get("core.singleImageUploader.title")),t.append(i);let o=document.createElement("input");o.type="file",o.accept="image/*",p&&(o.capture="environment",o.dataset.onlyCaptureOnMobile="environment"),o.addEventListener("change",s=>{this.onFileUpload(s);}),o.addEventListener("click",s=>{var m;(m=this._onInputCheck)==null||m.call(this,s);}),o.addEventListener("keydown",s=>{var m;(m=this._onInputCheck)==null||m.call(this,s);});let v=document.createElement("label");v.append(o),d.hasAttribute(a.DEFAULT_DOM_ATTRIBUTE)&&Object.assign(d.style,b.SINGLE_IMAGE_UPLOADER_BUTTON_STYLE,h),v.append(d),t.append(v);let E=document.createRange().createContextualFragment(atob(a$3)).firstElementChild;Object.assign(E.style,{position:"absolute",bottom:"1em",right:"1em",width:"10em"}),t.append(E),this._htmlRoot=t,this._mounted=true,this._inputElement=o,this._buttonElement=d,this._chooseImageText=(g=d.textContent)!=null?g:"",this._informationElement=i,this._localizationSubscription=a$2.getInstance().subscribe(this._onLocalizationUpdated);}unmount(){var e,t,n;this._mounted&&((e=this._htmlRoot)==null||e.remove(),(t=document.head.querySelector(`[data-component=${a.componentName}]`))==null||t.remove(),(n=this._localizationSubscription)==null||n.cancel(),this._mounted=false);}setButtonState(e){this._inputElement&&(this._inputElement.disabled=e==="disabled");}getButtonState(){return this._inputElement?this._inputElement.disabled?"disabled":"enabled":"disabled"}onInputCheck(e){this._onInputCheck=e;}onBeforeFileRead(e){this._onBeforeFileRead=e;}onImageLoadError(e){this._onImageLoadError=e;}onFileReaderError(e){this._onFileReaderError=e;}onCaptureReady(e){this._onCaptureReady=e;}onAfterImageProcessed(){this.setLoading(false);}onLocalizationUpdated(){var e,t;(e=this._buttonElement)!=null&&e.hasAttribute(a.DEFAULT_DOM_ATTRIBUTE)&&(this._buttonElement.textContent=a$2.getInstance().get("core.singleImageUploader.button")),(t=this._informationElement)!=null&&t.hasAttribute(a.DEFAULT_DOM_ATTRIBUTE)&&(this._informationElement.textContent=a$2.getInstance().get("core.singleImageUploader.title"));}setLoading(e){this._buttonElement&&(this.setButtonState(e?"disabled":"enabled"),this._buttonElement.textContent=e?"...":this._chooseImageText,this._loading=e);}getResizedImageDimensions(e,t){return e<=this._resizedImageSizeLimit&&t<=this._resizedImageSizeLimit?{width:e,height:t}:e>t?{width:this._resizedImageSizeLimit,height:Math.round(t/e*this._resizedImageSizeLimit)}:{width:Math.round(e/t*this._resizedImageSizeLimit),height:this._resizedImageSizeLimit}}onImageLoad(e$1){var i;let{height:t,width:n}=this.getResizedImageDimensions(e$1.naturalWidth,e$1.naturalHeight);this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=t,this.canvasContext.drawImage(e$1,0,0,n,t);let r={data:this.canvasContext.getImageData(0,0,n,t).data,frameId:e(),width:n,height:t};(i=this._onCaptureReady)==null||i.call(this,r);}onFileReaderLoad(e,t,n){e.value="",t.result!=null&&(n.addEventListener("load",()=>{this.onImageLoad(n);},{once:true}),n.addEventListener("error",r=>{var i;(i=this._onImageLoadError)==null||i.call(this,r),this.setLoading(false);},{once:true}),n.src=t.result);}async onFileUpload(e){var d;this.setLoading(true);let t=e.currentTarget,{files:n}=t;if(n==null||n.length===0){this.setLoading(false);return}let r=(d=this._onBeforeFileRead)==null?void 0:d.call(this,e);if(r instanceof Promise&&await r,!this.canUploadFile){t.value="",a$4.warn("Can't upload file, no capture mode enabled."),this.setLoading(false);return}let i=new Image,l=new FileReader;l.addEventListener("load",()=>{this.onFileReaderLoad(t,l,i);}),l.addEventListener("error",h=>{var p;(p=this._onFileReaderError)==null||p.call(this,h),this.setLoading(false);}),l.readAsDataURL(n[0]);}};a.componentName="SingleImageUploaderView",a.DEFAULT_DOM_ATTRIBUTE="data-scandit-default";var C=a;export{C as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {b}from'./chunk-A225YZFY.js';import {a}from'./chunk-XR65N6EG.js';async function c(l){if(!b.isAnimationApiSupported()||l)try{l?a.debug("Force loading animation polyfill as requested."):a.debug("Web Animation API not fully supported, you might need to add https://www.npmjs.com/package/web-animations-js polyfill to see some animations.");let{polyfill:o}=await import('../private/utils/AnimationSimplePolyfill.js');o();}catch(o){a.warn("Error importing AnimationSimplePolyfill.js, the Animation API will not be polyfilled. This is not a problem for most browsers, but it might be a problem for older browsers like Chrome 75<",o);}}async function d(l){if(typeof globalThis.structuredClone!="function"||l)try{l?a.debug("Force loading structuredClone polyfill as requested."):a.debug("structuredClone API not supported, loading polyfill for older browsers.");let{structuredClonePolyfill:o}=await import('../private/utils/structuredClonePolyfill.js');o();}catch(o){a.warn("Error importing structuredClonePolyfill.js, the structuredClone API will not be polyfilled. This might cause issues in older browsers.",o);}}async function u(l){if(!(typeof globalThis<"u"&&"cookieStore"in globalThis&&globalThis.cookieStore!=null&&!l))try{l?a.debug("Force loading CookieStore polyfill as requested."):a.debug("CookieStore API not supported, loading polyfill for older browsers.");let{installCookieStorePolyfill:o}=await import('../private/utils/cookieStorePolyfill.js');o();}catch(o){a.warn("Error importing cookieStorePolyfill.js, the CookieStore API will not be polyfilled. This might cause issues with cookie management in older browsers.",o);}}async function y(l={}){let{forceAnimationPolyfill:o=false,forceStructuredClonePolyfill:t=false,forceCookieStorePolyfill:n=false,forceAllPolyfills:i=false}=l,s=i||o,a=i||t,f=i||n;await Promise.all([c(s),d(a),u(f)]);}
|
|
2
|
+
export{y as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-O7TZTIHO.js';import {a as a$1}from'./chunk-XR65N6EG.js';var s=class{constructor(e,r){this.workerFunctions=e;this.options=r;this.imageIdCounter=0;this.conversions=new Map;}convertToJpeg(e,r){let t=this.imageIdCounter++,o=new a;this.conversions.set(t,o);let n=e.toBitmap();return this.workerFunctions.postMessage({type:"convertToJPEG",imageId:t,width:e.getWidth(),height:e.getHeight(),data:n,planes:e.getPlanes(),orientation:r,quality:this.options.quality},Array.from(new Set([n.buffer]))),o.promise}convertToBitmap(e){return {data:e.toBitmap(),byteOrder:1}}onConvertToJPEGResult(e,r){let t=this.conversions.get(e);t?(t.resolve(r),this.conversions.delete(e)):a$1.warn(`ImageConverterForwarder: Conversion for imageId ${e} not found in Map`);}};export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(e){return typeof globalThis<"u"&&globalThis.requestAnimationFrame?globalThis.requestAnimationFrame(e):setTimeout(()=>{e(performance.now());},0)}function a(e){typeof globalThis<"u"&&globalThis.cancelAnimationFrame?globalThis.cancelAnimationFrame(e):clearTimeout(e);}export{n as a,a as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$3}from'./chunk-V2OKMBZD.js';import {a as a$5}from'./chunk-GHTCNOQN.js';import {a as a$1}from'./chunk-UWBNF47P.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$4}from'./chunk-LSZZVJ6B.js';var c="scandit-loading-overlay",t=class t extends a{constructor(){super();this._progressBar=null;this._label=null;let e=this.attachShadow({mode:"open"});e.innerHTML=a$1`<div class="loading-overlay"><label for="scandit-progress" class="message">Loading...</label><scandit-progress-bar id="scandit-progress" min="0" max="100"></scandit-progress-bar></div>`,e.append(t.createStyleElement().cloneNode(true));}set progress(e){this._progressBar&&(this._progressBar.value=e);}set message(e){this._label&&(this._label.textContent=e);}get message(){var e,r;return (r=(e=this._label)==null?void 0:e.textContent)!=null?r:""}static create(){return t.register(),document.createElement(t.tag)}static register(){a$2({[c]:t,[a$3.tag]:a$3});}static createStyleElement(){return a$4`@media (prefers-color-scheme:dark){.loading-overlay{--foreground-color:#fff;--background-color:#000000e6}}@media (prefers-color-scheme:light){.loading-overlay{--foreground-color:#000;--background-color:#ffffffe6}}${a$3.tag}{max-width:15rem}.loading-overlay{align-items:center;background-color:var(--background-color);display:flex;flex-direction:column;height:100%;justify-content:center;position:absolute;width:100%;z-index:1}:host([hidden]){display:none}.loading-overlay .message{color:var(--foreground-color);font-family:Open Sans,sans-serif;margin-bottom:1rem;text-align:center}`}connectedCallback(){var e,r;this._progressBar=(e=this.shadowRoot)==null?void 0:e.querySelector(a$3.tag),this._label=(r=this.shadowRoot)==null?void 0:r.querySelector("label"),this.message=a$5.getInstance().get("core.view.loading");}show(){this.removeAttribute("hidden");}hide(){this.setAttribute("hidden","");}};t.tag=c;var d=t;export{d as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function u(t,f,o){let a=f*o,n=new Uint8ClampedArray(a*4),i=new Uint32Array(n.buffer);for(let r=0;r<a;r++){let e=t[r];i[r]=4278190080|e<<16|e<<8|e;}return n}export{u as a};
|