@scandit/web-datacapture-core 8.0.0-beta.1 → 8.0.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-1YWunZAJ.d.ts → DataCaptureContext-8EuyQSL7.d.ts} +41 -8
- package/build/js/DataCaptureContext.d.ts +2 -1
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +2 -1
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +2 -1
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/Feedback.js +1 -1
- package/build/js/FrameData.d.ts +2 -1
- package/build/js/NotificationPresenter/index.d.ts +2 -1
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +2 -1
- package/build/js/NotificationPresenter/private/presets.d.ts +2 -1
- package/build/js/ScanditIcon.js +1 -1
- package/build/js/ScanditIconBuilder.js +1 -1
- package/build/js/Vibration.js +1 -1
- package/build/js/browserHelper.js +1 -1
- package/build/js/chunks/{chunk-ZEBGTTCX.js → chunk-2BBQRPKY.js} +1 -1
- package/build/js/chunks/{chunk-LMYUYJ3O.js → chunk-2EY4FBA3.js} +1 -1
- package/build/js/chunks/{chunk-D5RWW3H4.js → chunk-2VNXD4FC.js} +1 -1
- package/build/js/chunks/chunk-3HOGSYPB.js +1 -0
- package/build/js/chunks/chunk-4GP73VVU.js +97 -0
- package/build/js/chunks/{chunk-BXINLCBT.js → chunk-5MUFGMII.js} +1 -1
- package/build/js/chunks/{chunk-LYSTK36S.js → chunk-5TW3OTHU.js} +1 -1
- package/build/js/chunks/chunk-5YXBE5P2.js +1 -0
- package/build/js/chunks/{chunk-CXR3G5KR.js → chunk-7RMPOOYQ.js} +1 -1
- package/build/js/chunks/chunk-A5WVN3T4.js +1 -0
- package/build/js/chunks/chunk-AL6GJUID.js +1 -0
- package/build/js/chunks/chunk-B2I3SBRI.js +1 -0
- package/build/js/chunks/{chunk-GJGNNO4O.js → chunk-CF2DKFX2.js} +1 -1
- package/build/js/chunks/{chunk-AUONPF3B.js → chunk-EFFUWK5Z.js} +1 -1
- package/build/js/chunks/{chunk-CJOGOTBU.js → chunk-ELQAIHEQ.js} +1 -1
- package/build/js/chunks/{chunk-TH7Z32LP.js → chunk-GQVOVLRR.js} +1 -1
- package/build/js/chunks/chunk-GZMB3TRK.js +1 -0
- package/build/js/chunks/{chunk-O6PTTJES.js → chunk-HDY35RKY.js} +1 -1
- package/build/js/chunks/chunk-HTQSOUB3.js +6 -0
- package/build/js/chunks/chunk-I3U43DWH.js +1 -0
- package/build/js/chunks/{chunk-F2IJCZAS.js → chunk-IU22MD7N.js} +1 -1
- package/build/js/chunks/chunk-LXOZUOZU.js +1 -0
- package/build/js/chunks/chunk-MKTACV3Q.js +1 -0
- package/build/js/chunks/{chunk-SJOZM6AL.js → chunk-MTNFYUSF.js} +1 -1
- package/build/js/chunks/chunk-NQF3GUK2.js +1 -0
- package/build/js/chunks/{chunk-ULRY4SXF.js → chunk-PAPLDTB7.js} +1 -1
- package/build/js/chunks/{chunk-627VMN74.js → chunk-QDZ6UZHF.js} +1 -1
- package/build/js/chunks/{chunk-TAUJTFZC.js → chunk-RETAUGCJ.js} +1 -1
- package/build/js/chunks/{chunk-UQJHBITP.js → chunk-T3DJYPIP.js} +1 -1
- package/build/js/chunks/{chunk-4GKVQAVF.js → chunk-T4QDTXZN.js} +1 -1
- package/build/js/chunks/{chunk-SJ3K5O2N.js → chunk-TDOKACT7.js} +1 -1
- package/build/js/chunks/{chunk-5JAPQHXF.js → chunk-UBDDFAOX.js} +1 -1
- package/build/js/chunks/{chunk-3KWRROUJ.js → chunk-UMHCVFPN.js} +1 -1
- package/build/js/chunks/{chunk-L674VY5B.js → chunk-WAJ5PI3A.js} +1 -1
- package/build/js/chunks/{chunk-DPJEOND4.js → chunk-WNFUUIF3.js} +1 -1
- package/build/js/chunks/chunk-XVVC3E6G.js +35 -0
- package/build/js/index.d.ts +2 -1
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.d.ts +2 -1
- package/build/js/private/AsyncImageConverterBase.d.ts +44 -0
- package/build/js/private/AsyncImageConverterBase.js +1 -0
- package/build/js/private/AsyncImageConverterMainThread.d.ts +13 -0
- package/build/js/private/AsyncImageConverterMainThread.js +1 -0
- package/build/js/private/CameraAccess.js +1 -1
- package/build/js/private/CameraManager.d.ts +2 -1
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CameraPool.d.ts +2 -1
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +2 -1
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +2 -1
- package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +2 -1
- package/build/js/private/FrameReaders/FrameReader.d.ts +2 -1
- package/build/js/private/FrameReaders/FrameReader.js +1 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +2 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.js +1 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +4 -2
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +2 -1
- package/build/js/private/FrameReaders/index.js +1 -1
- package/build/js/private/NormalizedModuleLoaderOptions.d.ts +2 -1
- package/build/js/private/ViewControls+related.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +2 -1
- package/build/js/private/ViewsRegistry.d.ts +2 -1
- package/build/js/private/djinni-types/index.d.ts +48 -0
- package/build/js/private/djinni-types/index.js +1 -0
- 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.js +1 -1
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.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.d.ts +2 -2
- 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/Dot5xSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +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/PrinterSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ProgressBar.js +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/ShutterButton.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.js +1 -1
- package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Toast.d.ts +2 -1
- package/build/js/private/ui/atoms/Toast.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/molecules/HintPresenter.d.ts +2 -1
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/utils/AsyncStateMachine.d.ts +14 -2
- package/build/js/private/utils/AsyncStateMachine.js +1 -1
- package/build/js/private/utils/index.js +1 -1
- package/build/js/private/utils/polyfillLoader.js +1 -1
- package/build/js/private/utils/replaceImagesInViewUtils.d.ts +2 -1
- package/build/js/private/utils/safeStorage.js +1 -1
- package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -1
- package/build/js/worker/AsyncImageConverterForwarder.d.ts +52 -0
- package/build/js/worker/AsyncImageConverterForwarder.js +1 -0
- package/build/js/worker/AsyncImageConverterWorker.d.ts +13 -0
- package/build/js/worker/AsyncImageConverterWorker.js +1 -0
- package/build/js/worker/WorkerMain.d.ts +2 -1
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/coreCapture.inlineWorker.d.ts +2 -1
- package/build/js/worker/coreCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +2 -1
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +2 -1
- package/build/js/worker/dataCaptureLoader.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +2 -1
- package/build/js/worker/index.d.ts +2 -1
- package/build/js/worker/index.js +1 -1
- package/package.json +1 -1
- package/build/js/chunks/chunk-6HH3HY5J.js +0 -6
- package/build/js/chunks/chunk-7B2VPGLP.js +0 -35
- package/build/js/chunks/chunk-BSIP2HDE.js +0 -1
- package/build/js/chunks/chunk-KMGMYFZI.js +0 -1
- package/build/js/chunks/chunk-MW5PTAU7.js +0 -1
- package/build/js/chunks/chunk-O3GEDPJS.js +0 -1
- package/build/js/chunks/chunk-XZO7D4BC.js +0 -1
- package/build/js/chunks/chunk-YNHLZS7P.js +0 -1
- package/build/js/chunks/chunk-ZNO7QV4M.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-UBDDFAOX.js';import {a as a$2}from'../../../chunks/chunk-UWBNF47P.js';import {a as a$1}from'../../../chunks/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}</style><svg width="${this.size}" height="${this.heightForViewbox(24,24)}" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.1898 10.3216C18.8106 10.3216 19.3139 10.8249 19.3139 11.4457C19.3139 12.0665 18.8106 12.5697 18.1898 12.5697C17.569 12.5697 17.0658 12.0665 17.0658 11.4457C17.0658 10.8249 17.569 10.3216 18.1898 10.3216Z" fill="${this.fill}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8.63557 21.7499C7.60057 21.7499 6.76154 20.9109 6.76154 19.8759V18.3778H5.24807C3.59228 18.3778 2.25 17.0355 2.25 15.3797V10.8836C2.25 9.22781 3.59228 7.88553 5.24807 7.88553H18.7519C20.4077 7.88553 21.75 9.22781 21.75 10.8836V15.3797C21.75 17.0355 20.4077 18.3778 18.7519 18.3778H17.2538V19.8759C17.2538 20.9109 16.4148 21.7499 15.3798 21.7499H8.63557ZM8.26154 19.8759C8.26154 20.0825 8.429 20.2499 8.63557 20.2499H15.3798C15.5864 20.2499 15.7538 20.0825 15.7538 19.8759V15.0042H8.26154V19.8759ZM5.24807 16.8778H6.76154V14.2542C6.76154 13.84 7.09732 13.5042 7.51154 13.5042H16.5038C16.918 13.5042 17.2538 13.84 17.2538 14.2542V16.8778H18.7519C19.5793 16.8778 20.25 16.2071 20.25 15.3797V10.8836C20.25 10.0562 19.5793 9.38553 18.7519 9.38553H5.24807C4.42071 9.38553 3.75 10.0562 3.75 10.8836V15.3797C3.75 16.2071 4.42071 16.8778 5.24807 16.8778Z" fill="${this.fill}"/><path d="M7.51154 7.13749C7.09732 7.13749 6.76154 6.8017 6.76154 6.38749V4.13942C6.76154 3.10442 7.60057 2.26538 8.63557 2.26538H15.3798C16.4148 2.26538 17.2538 3.10442 17.2538 4.13942V6.38749C17.2538 6.8017 16.918 7.13749 16.5038 7.13749C16.0896 7.13749 15.7538 6.8017 15.7538 6.38749V4.13942C15.7538 3.93284 15.5864 3.76538 15.3798 3.76538H8.63557C8.429 3.76538 8.26154 3.93284 8.26154 4.13942V6.38749C8.26154 6.8017 7.92575 7.13749 7.51154 7.13749Z" fill="${this.fill}"/></svg>`}};t.tag="scandit-printer-icon";var r=t;
|
|
2
2
|
export{r as PrinterSvgIcon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ProgressBar}from'../../../chunks/chunk-
|
|
1
|
+
export{a as ProgressBar}from'../../../chunks/chunk-CF2DKFX2.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-UBDDFAOX.js';import {a as a$2}from'../../../chunks/chunk-UWBNF47P.js';import {a as a$1}from'../../../chunks/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}</style><svg width="${this.size}" height="${this.heightForViewbox(24,24)}" viewBox="0 0 24 24" fill="none"><path d="M11.4944 16.8837C11.1727 16.8837 10.9124 16.6083 10.9124 16.2679C10.9124 15.4624 11.0204 14.7667 11.2353 14.1817C11.3929 13.7407 11.6488 13.2963 12.0008 12.8473C12.26 12.5206 12.7242 12.043 13.3958 11.4169C14.0674 10.7897 14.5036 10.2905 14.7056 9.91801C14.9075 9.54556 15.0068 9.13884 15.0068 8.69785C15.0068 7.89926 14.712 7.19893 14.1236 6.59456C13.5351 5.99019 12.8128 5.68858 11.9576 5.68858C11.1316 5.68858 10.4417 5.96277 9.88885 6.51001C9.48503 6.90988 9.18162 7.47426 8.98079 8.20316C8.84259 8.70356 8.38154 9.02345 7.89242 8.96176C7.27265 8.88407 6.86451 8.23515 7.04158 7.60108C7.31368 6.62655 7.76933 5.84167 8.40745 5.2453C9.29392 4.41472 10.4665 4 11.9252 4C13.4693 4 14.7012 4.44442 15.6212 5.33441C16.5411 6.2244 17 7.29946 17 8.56075C17 9.29079 16.838 9.96371 16.5152 10.5784C16.1924 11.1942 15.5596 11.9425 14.6192 12.8245C13.9875 13.4174 13.574 13.855 13.3796 14.136C13.1853 14.4171 13.0417 14.7404 12.9488 15.1048C12.8797 15.3756 12.8322 15.7732 12.8063 16.2953C12.7901 16.6243 12.532 16.8825 12.2211 16.8825H11.4944V16.8837ZM10.8045 19.8313C10.8045 19.1858 11.299 18.6625 11.909 18.6625C12.5191 18.6625 13.0136 19.1858 13.0136 19.8313C13.0136 20.4767 12.5191 21 11.909 21C11.299 21 10.8045 20.4767 10.8045 19.8313Z" fill="${this.fill}"/></svg>`}};t.tag="scandit-question-mark-icon";var e=t;e.register();export{e as QuestionMarkSvgIcon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-UBDDFAOX.js';import {a as a$2}from'../../../chunks/chunk-UWBNF47P.js';import {a as a$1}from'../../../chunks/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}</style><svg width="${this.size}" height="${this.heightForViewbox(17,16)}" viewBox="0 0 17 16" fill="none"><path d="M2.00003 6.76172C1.44774 6.76172 1.00003 6.314 1.00003 5.76172C1.00003 5.20943 1.44774 4.76172 2.00003 4.76172V6.76172ZM2.00003 4.76172H11V6.76172H2.00003V4.76172ZM11 4.76172C12.6783 4.76172 13.9932 5.4615 14.869 6.5363C15.7249 7.58675 16.125 8.9459 16.125 10.2617C16.125 11.5775 15.7249 12.9367 14.869 13.9871C13.9932 15.0619 12.6783 15.7617 11 15.7617V13.7617C12.0718 13.7617 12.8193 13.3365 13.3185 12.7238C13.8376 12.0867 14.125 11.1959 14.125 10.2617C14.125 9.32754 13.8376 8.43669 13.3185 7.79964C12.8193 7.18694 12.0718 6.76172 11 6.76172V4.76172ZM11 15.7617H3.00003V13.7617H11V15.7617Z" fill="${this.fill}"/><path d="M5 9.76172L1 5.76172L5 1.76172" stroke="${this.fill}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`}};t.tag="scandit-restart-icon";var e=t;e.register();export{e as RestartSvgIcon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as RoundedCheckSvgIcon}from'../../../chunks/chunk-
|
|
1
|
+
export{a as RoundedCheckSvgIcon}from'../../../chunks/chunk-T4QDTXZN.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-UBDDFAOX.js';import {a as a$2}from'../../../chunks/chunk-UWBNF47P.js';import {a as a$1}from'../../../chunks/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(24,24)}" viewBox="0 0 24 24" fill="none"><path d="M8 8L16 16M16 8L8 16" stroke="${this.fill}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><circle cx="12" cy="12" r="9" stroke="${this.fill}" stroke-width="2"/></svg>`}};e.tag="scandit-rounded-cross-icon";var t=e;t.register();export{t as RoundedCrossSvgIcon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as RoundedExclamationMarkSvgIcon}from'../../../chunks/chunk-
|
|
1
|
+
export{a as RoundedExclamationMarkSvgIcon}from'../../../chunks/chunk-IU22MD7N.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a
|
|
1
|
+
import {a}from'../../../chunks/chunk-UWBNF47P.js';import {a as a$1}from'../../../chunks/chunk-EV4OEANA.js';import {a as a$2}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$4}from'../../../chunks/chunk-LSZZVJ6B.js';import {a as a$3}from'../../../chunks/chunk-XR65N6EG.js';var c="play",p="pause",b=a`<svg viewBox="0 0 100 100"><defs><mask id="${c}"><rect width="100" height="100" fill="white"/><path d="M40 59.4416V40.5584C40 39.8297 40.7543 39.3457 41.4167 39.6493L62.0166 49.0909C62.7944 49.4474 62.7944 50.5526 62.0166 50.9091L41.4167 60.3507C40.7543 60.6543 40 60.1703 40 59.4416Z" fill="black"/></mask><mask id="${p}"><rect width="100" height="100" fill="white"/><rect x="40" y="38" width="8" height="24" rx="2" fill="black"/><rect x="52" y="38" width="8" height="24" rx="2" fill="black"/></mask></defs><g class=""><circle id="main-circle" class="center" cx="50" cy="50" r="40" fill="white" mask="url(#${c})"/><circle class="border" cx="50" cy="50" r="48" fill="none" stroke-width="3" stroke="white"/></g></svg>`;function f(){return a$4`:host{--button-width:0px;display:inline-block;touch-action:manipulation}:host([hidden]){display:none}button{background:none;border:none;border-radius:100%;line-height:0;margin:0;padding:0;touch-action:manipulation}button.pulse{animation:pulsate 2s infinite;animation-delay:.3s;border-radius:100%;box-shadow:0 0 0 0 #ffffff80}svg{position:relative;width:100%}@keyframes pulsate{0%{transform:scale(1)}5%{box-shadow:0 0 0 0 #ffffff80;transform:scale(.9)}20%{transform:scale(1)}to{box-shadow:0 0 0 calc(var(--button-width)/2) #fff0}}`}function g(){return a$4`.rotating .border{stroke-dasharray:302 301;animation-direction:normal;animation-duration:4s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:rotating-stroke;animation-timing-function:linear;transform-origin:center}@keyframes rotating-stroke{0%{stroke-dasharray:302 301;transform:rotate(0)}50%{stroke-dasharray:1 301}51%{stroke-dasharray:0 291 10}to{stroke-dasharray:0 1 301;transform:rotate(-2turn)}}`}var d={default:"default",play:"play",pause:"pause"},i=class i extends a$1{constructor(){super();this._mainSVGCircle=null;this.shadowRoot||this.attachShadow({mode:"open"});}static get observedAttributes(){return ["variant","pulse","rotating"]}set variant(t){this.checkVariant(t)&&this.setAttribute("variant",t);}get variant(){var t;return (t=this.getAttribute("variant"))!=null?t:"default"}set pulse(t){t?this.setAttribute("pulse",""):this.removeAttribute("pulse");}get pulse(){return this.hasAttribute("pulse")}set rotating(t){t?this.setAttribute("rotating",""):this.removeAttribute("rotating");}get rotating(){return this.hasAttribute("rotating")}static register(){a$2({[i.tag]:i});}static create(){return document.createElement(i.tag)}attributeChangedCallback(t){var e,n,s;if(t==="variant"){if(!this.checkVariant(this.getAttribute("variant"))){this.variant="default";return}this._button&&(this.refreshButtonWidth(),this._button.classList.add(this.variant),(e=this._mainSVGCircle)==null||e.setAttribute("mask",`url(#${this.variant})`));}t==="pulse"&&(this.refreshButtonWidth(),(n=this._button)==null||n.classList.toggle("pulse",this.pulse)),t==="rotating"&&((s=this._button)==null||s.classList.toggle("rotating",this.rotating));}checkVariant(t){return this.isValidState(t)?true:(a$3.warn(`Invalid variant: "${t}". Must be one of ${Object.values(d).toString()}`),false)}refreshButtonWidth(){var e;let{width:t}=this.getBoundingClientRect();(e=this._button)==null||e.style.setProperty("--button-width",`${t}px`);}connectedCallback(){var t;this.hasAttribute("variant")||(this.variant="default"),this._button||(this._button=document.createElement("button"),this._button.innerHTML=b,this._button.classList.add(this.variant),this._button.classList.toggle("pulse",this.pulse),this._button.classList.toggle("rotating",this.rotating),this.shadowRoot.append(this._button),this.appendStyle(),this._mainSVGCircle=this._button.querySelector("#main-circle"),(t=this._mainSVGCircle)==null||t.setAttribute("mask",`url(#${this.variant})`),this.refreshButtonWidth());}isValidState(t){return t==null?false:Object.values(d).includes(t)}appendStyle(){var t;this.shadowRoot.append(f().cloneNode(true)),(t=this.shadowRoot.querySelector("svg"))==null||t.prepend(g().cloneNode(true));}};i.tag="scandit-shutter-button";var r=i;r.register();export{r as ShutterButton,d as VARIANTS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-UBDDFAOX.js';import {a as a$2}from'../../../chunks/chunk-UWBNF47P.js';import {a as a$1}from'../../../chunks/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}</style><svg width="${this.size}" height="${this.heightForViewbox(24,24)}" viewBox="0 0 24 24" fill="none"><path d="M19.7201 10.2996L16.2384 13.6936L17.0606 18.4872C17.0964 18.6968 17.0103 18.9087 16.8382 19.0339C16.7409 19.1049 16.6252 19.1406 16.5095 19.1406C16.4206 19.1406 16.3312 19.1194 16.2496 19.0763L11.9445 16.8131L7.63996 19.0758C7.45215 19.1753 7.22354 19.1591 7.05138 19.0333C6.87922 18.9081 6.79314 18.6963 6.82891 18.4866L7.65114 13.693L4.16883 10.2996C4.0168 10.1509 3.96146 9.92844 4.02742 9.72666C4.09337 9.52488 4.26833 9.37675 4.47905 9.34601L9.29112 8.64731L11.4431 4.28633C11.6315 3.90456 12.2575 3.90456 12.4459 4.28633L14.5979 8.64731L19.4099 9.34601C19.6207 9.37675 19.7956 9.52432 19.8616 9.72666C19.9275 9.929 19.8722 10.1504 19.7201 10.2996Z" fill="${this.fill}"/></svg>`}};t.tag="scandit-star-filled-icon";var e=t;e.register();export{e as StarFilledSvgIcon};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-UBDDFAOX.js';import {a as a$2}from'../../../chunks/chunk-UWBNF47P.js';import {a as a$1}from'../../../chunks/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}</style><svg width="${this.size}" height="${this.heightForViewbox(24,24)}" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="mask0_3285_9429" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="4" y="4" width="16" height="16"><path d="M19.7201 10.2996L16.2384 13.6936L17.0606 18.4872C17.0964 18.6968 17.0103 18.9087 16.8382 19.0339C16.7409 19.1049 16.6252 19.1406 16.5095 19.1406C16.4206 19.1406 16.3312 19.1194 16.2496 19.0763L11.9445 16.8131L7.63996 19.0758C7.45215 19.1753 7.22354 19.1591 7.05138 19.0333C6.87922 18.9081 6.79314 18.6963 6.82891 18.4866L7.65114 13.693L4.16883 10.2996C4.0168 10.1509 3.96146 9.92844 4.02742 9.72666C4.09337 9.52488 4.26833 9.37675 4.47905 9.34601L9.29112 8.64731L11.4431 4.28633C11.6315 3.90456 12.2575 3.90456 12.4459 4.28633L14.5979 8.64731L19.4099 9.34601C19.6207 9.37675 19.7956 9.52432 19.8616 9.72666C19.9275 9.929 19.8722 10.1504 19.7201 10.2996Z" fill="white"/></mask><g mask="url(#mask0_3285_9429)"><rect x="1" y="1" width="11" height="22" fill="${this.fill}"/></g></svg>`}};t.tag="scandit-half-star-icon";var s=t;
|
|
2
2
|
export{s as StarHalfFilledSvgIcon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-UBDDFAOX.js';import {a as a$2}from'../../../chunks/chunk-UWBNF47P.js';import {a as a$1}from'../../../chunks/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}</style><svg width="${this.size}" height="${this.heightForViewbox(24,24)}" viewBox="0 0 24 24" fill="none"><path d="M19.7201 10.2996L16.2384 13.6936L17.0606 18.4872C17.0964 18.6968 17.0103 18.9087 16.8382 19.0339C16.7409 19.1049 16.6252 19.1406 16.5095 19.1406C16.4206 19.1406 16.3312 19.1194 16.2496 19.0763L11.9445 16.8131L7.63996 19.0758C7.45215 19.1753 7.22354 19.1591 7.05138 19.0333C6.87922 18.9081 6.79314 18.6963 6.82891 18.4866L7.65114 13.693L4.16883 10.2996C4.0168 10.1509 3.96146 9.92844 4.02742 9.72666C4.09337 9.52488 4.26833 9.37675 4.47905 9.34601L9.29112 8.64731L11.4431 4.28633C11.6315 3.90456 12.2575 3.90456 12.4459 4.28633L14.5979 8.64731L19.4099 9.34601C19.6207 9.37675 19.7956 9.52432 19.8616 9.72666C19.9275 9.929 19.8722 10.1504 19.7201 10.2996Z" stroke="${this.fill}"/></svg>`}};t.tag="scandit-star-icon";var e=t;e.register();export{e as StarOutlinedSvgIcon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SvgIcon}from'../../../chunks/chunk-
|
|
1
|
+
export{a as SvgIcon}from'../../../chunks/chunk-UBDDFAOX.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-UBDDFAOX.js';import {a as a$2}from'../../../chunks/chunk-UWBNF47P.js';import {a as a$1}from'../../../chunks/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(24,24)}" viewBox="0 0 24 24" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.81609 3.75357L3.5 3.49997C3.00001 3.49997 3.00001 3.51193 3.00002 4.098L3.00002 4.09802L3 10.2442L3 12.8051L3.52512 13.4124C3.60697 13.7646 4.71865 18.1843 4.91217 18.5062L5.9129 19.5037L7.01724 20.5616C7.31194 20.8444 7.70452 21 8.12158 21H16.0212C16.0685 21 16.1149 20.994 16.1586 20.9825C16.2326 20.994 16.3091 21 16.3856 21H17.5415C17.9128 21 18.2127 20.7878 18.4911 20.5H19.25C19.7133 20.4974 20.1569 20.3122 20.4845 19.9845C20.8122 19.6569 20.9974 19.2133 21 18.75V4.75C20.9974 4.28668 20.8122 3.84309 20.4845 3.51546C20.1569 3.18784 19.7133 3.00263 19.25 3H5.25C4.78668 3.00263 4.34308 3.18784 4.01546 3.51546C3.94162 3.58931 3.87501 3.66904 3.81609 3.75357ZM5.00382 4.70645L7.9482 7.06865L13.2981 7.92252C13.8833 8.01629 14.4222 8.30108 14.8158 8.72553L17.5306 11.6512C17.8742 12.0213 18.0414 12.5161 17.9898 13.0084C17.9383 13.5012 17.6712 13.954 17.2578 14.2508C16.5262 14.777 15.4849 14.7071 14.8361 14.0857L13.9499 13.2368L14.4024 14.7535L18.5229 18.9513C18.5363 18.9677 18.5495 18.9839 18.5624 19H19.25C19.3163 19 19.3799 18.9737 19.4268 18.9268C19.4737 18.8799 19.5 18.8163 19.5 18.75V4.75C19.5 4.6837 19.4737 4.62011 19.4268 4.57322C19.3799 4.52634 19.3163 4.5 19.25 4.5H14.25V6C14.2474 6.46332 14 7 13.5 7C13.3596 7 13.1375 6.99979 12.8804 6.99955C12.2217 6.99894 11.3332 6.99811 11 7C10.5 7 10.2523 6.5 10.2523 6V4.5H5.25C5.18369 4.5 5.12011 4.52634 5.07322 4.57322C5.03673 4.60971 5.01269 4.65632 5.00382 4.70645ZM17.5415 20.0025C17.7581 20.0025 17.8461 19.8538 17.8737 19.79C17.9008 19.7262 17.9487 19.5616 17.7956 19.4149L13.5704 15.3675C13.5079 15.3077 13.4621 15.2333 13.4376 15.152L12.8565 13.2029C12.7357 12.7964 12.9096 12.3784 13.2903 12.164C13.6719 11.949 14.1374 12.0064 14.4498 12.3051L15.5723 13.3809C15.8572 13.6528 16.3133 13.6837 16.633 13.4533C16.8167 13.3216 16.9308 13.1281 16.9537 12.9091C16.9766 12.6902 16.9053 12.4797 16.7527 12.3151L14.0379 9.38938C13.8016 9.13501 13.4782 8.96343 13.1268 8.90757L7.60508 8.02577C7.49313 8.00781 7.39004 7.95544 7.31246 7.87664L3.83908 5.12252L3.79847 12.164V12.1814C4.26342 12.546 4.58468 13.0578 4.70287 13.6223L5.47398 17.3172C5.53438 17.6074 5.68172 17.8718 5.90093 18.0818L7.75347 19.8563C7.85031 19.9491 7.98464 20.0025 8.12158 20.0025H10.5937H13.2903H16.0212H17.5415Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-to-pick-icon";var t=e;t.register();export{t as ToPickSvgIcon};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import { ScanditIcon } from '../../../ScanditIcon.js';
|
|
3
3
|
import { ScanditHTMLElement } from '../../utils/ScanditHTMLElement.js';
|
|
4
|
-
import { I as GenericHint } from '../../../DataCaptureContext-
|
|
4
|
+
import { I as GenericHint } from '../../../DataCaptureContext-8EuyQSL7.js';
|
|
5
5
|
import '../../../Common.js';
|
|
6
6
|
import '../../Serializable.js';
|
|
7
7
|
import '../../../Camera-CZ0Hl7v2.js';
|
|
@@ -23,6 +23,7 @@ import '../../../tsHelper.js';
|
|
|
23
23
|
import '../../CameraAccess.js';
|
|
24
24
|
import '../../../LoadingStatus.js';
|
|
25
25
|
import '../../../worker/OverrideState.js';
|
|
26
|
+
import '../../djinni-types/index.js';
|
|
26
27
|
import '../../HtmlElementState.js';
|
|
27
28
|
import '../../utils/AsyncStateMachine.js';
|
|
28
29
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as Toast,a as ToastEvents}from'../../../chunks/chunk-
|
|
1
|
+
export{b as Toast,a as ToastEvents}from'../../../chunks/chunk-WAJ5PI3A.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-UBDDFAOX.js';import {a as a$2}from'../../../chunks/chunk-UWBNF47P.js';import {a as a$1}from'../../../chunks/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}</style><svg width="${this.size}" height="${this.heightForViewbox(32,32)}" viewBox="0 0 32 32" fill="none"><path d="M9.29751 21C8.6481 21 8.32681 20.6377 8.32681 20.1182C8.32681 19.7285 8.4772 19.4688 8.89419 19.0859L11.8336 16.2764C13.0504 15.1074 13.3649 14.6289 13.3649 13.918C13.3649 13.1045 12.736 12.5234 11.8542 12.5234C11.0612 12.5234 10.5143 12.9199 10.1588 13.7129C9.92642 14.123 9.68716 14.3145 9.24282 14.3145C8.68911 14.3145 8.36099 13.9863 8.36099 13.4736C8.36099 13.3164 8.38833 13.1729 8.43618 13.0293C8.77114 11.9355 10.0084 10.917 11.8747 10.917C13.9665 10.917 15.3747 12.0928 15.3747 13.7881C15.3747 14.9912 14.7868 15.7432 13.1735 17.2676L11.0407 19.3184V19.3594H14.7594C15.2926 19.3594 15.6139 19.6807 15.6139 20.1797C15.6139 20.665 15.2926 21 14.7594 21H9.29751ZM18.1637 20.3164C17.7194 20.3164 17.3502 19.9814 17.3502 19.5234C17.3502 19.2158 17.4938 19.0244 17.7331 18.7852L19.4557 17.0488L17.7331 15.3057C17.5006 15.0732 17.3502 14.8818 17.3502 14.5674C17.3502 14.1162 17.7262 13.7744 18.1706 13.7744C18.5124 13.7744 18.6696 13.9043 18.9499 14.1846L20.6247 15.8457L22.2995 14.1846C22.5797 13.9043 22.7438 13.7744 23.0788 13.7744C23.5231 13.7744 23.8991 14.1162 23.8991 14.5674C23.8991 14.875 23.7487 15.0732 23.5163 15.3057L21.7868 17.0488L23.5163 18.7852C23.7487 19.0176 23.8991 19.2158 23.8991 19.5234C23.8991 19.9746 23.5231 20.3164 23.0788 20.3164C22.7438 20.3164 22.5797 20.1865 22.2995 19.9062L20.6247 18.2451L18.943 19.9131C18.6627 20.1865 18.5055 20.3164 18.1637 20.3164Z" fill="${this.fill}"/></svg>`}};t.tag="scandit-twox-icon";var o=t;export{o as TwoxSvgIcon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-UBDDFAOX.js';import {a as a$2}from'../../../chunks/chunk-UWBNF47P.js';import {a as a$1}from'../../../chunks/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(24,24)}" viewBox="0 0 24 24" fill="none"><path d="M17.475 12C17.7487 12 18.0127 12.1008 18.2167 12.2833C18.3991 12.4872 18.5 12.7513 18.5 13.025C18.5 13.2986 18.3991 13.5627 18.2167 13.7666L16.7333 15.25L18.2167 16.7333C18.3991 16.9373 18.5 17.2014 18.5 17.475C18.5 17.7487 18.3991 18.0127 18.2167 18.2167C18.0127 18.3991 17.7487 18.5 17.475 18.5C17.2013 18.5 16.9373 18.3991 16.7333 18.2167L15.25 16.7333L13.7666 18.2167C13.5626 18.3991 13.2986 18.5 13.0249 18.5C12.7513 18.5 12.4872 18.3991 12.2833 18.2167C12.1008 18.0127 12 17.7487 12 17.475C12 17.2014 12.1008 16.9373 12.2833 16.7333L13.7666 15.25L12.2833 13.7666C12.1841 13.559 12.1518 13.3258 12.1907 13.099C12.2296 12.8723 12.3378 12.6632 12.5005 12.5005C12.6632 12.3378 12.8723 12.2296 13.099 12.1907C13.3258 12.1518 13.559 12.1841 13.7666 12.2833L15.25 13.7666L16.7333 12.2833C16.9373 12.1008 17.2013 12 17.475 12Z" fill="${this.fill}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9.56522 19.75H4C3.53668 19.7474 3.09309 19.5622 2.76546 19.2345C2.43784 18.9069 2.25262 18.4633 2.25 18V4C2.25262 3.53668 2.43784 3.09309 2.76546 2.76546C3.09309 2.43784 3.53668 2.25262 4 2.25H18C18.4633 2.25262 18.9069 2.43784 19.2345 2.76546C19.5622 3.09309 19.7474 3.53668 19.75 4V9.56522C21.4254 10.8932 22.5 12.9461 22.5 15.25C22.5 19.2541 19.2541 22.5 15.25 22.5C12.9461 22.5 10.8932 21.4254 9.56522 19.75ZM8.64786 18.25H4C3.9337 18.25 3.87011 18.2237 3.82322 18.1768C3.77634 18.1299 3.75 18.0663 3.75 18V4C3.75 3.9337 3.77634 3.87011 3.82322 3.82322C3.87011 3.77634 3.9337 3.75 4 3.75H9V5C9.00262 5.46332 9.5 6 10 6C10.1514 6 10.352 5.99976 10.571 5.9995C11.0751 5.99889 11.677 5.99817 12 6C12.5 6 12.9977 5.5 12.9977 5V3.75H18C18.0663 3.75 18.1299 3.77634 18.1768 3.82322C18.2237 3.87011 18.25 3.9337 18.25 4C18.25 6.14366 18.2508 7.58699 18.2518 8.64867C17.3371 8.23208 16.3206 8 15.25 8C11.2459 8 8 11.2459 8 15.25C8 16.32 8.23178 17.3358 8.64786 18.25ZM21.25 15.25C21.25 18.5637 18.5637 21.25 15.25 21.25C11.9363 21.25 9.25 18.5637 9.25 15.25C9.25 11.9363 11.9363 9.25 15.25 9.25C18.5637 9.25 21.25 11.9363 21.25 15.25Z" fill="${this.fill}"/></svg>`}};e.tag="scandit-wrong-item-icon";var t=e;t.register();export{t as WrongItemSvgIcon};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import '../../../ScanditIcon.js';
|
|
3
3
|
import '../../utils/ScanditHTMLElement.js';
|
|
4
4
|
import '../../../Common.js';
|
|
5
|
-
export { H as HintPresenter,
|
|
5
|
+
export { H as HintPresenter, bk as HintPresenterEvents } from '../../../DataCaptureContext-8EuyQSL7.js';
|
|
6
6
|
import '../../Serializable.js';
|
|
7
7
|
import '../../../Camera-CZ0Hl7v2.js';
|
|
8
8
|
import '../../privateAccess.js';
|
|
@@ -23,5 +23,6 @@ import '../../../tsHelper.js';
|
|
|
23
23
|
import '../../CameraAccess.js';
|
|
24
24
|
import '../../../LoadingStatus.js';
|
|
25
25
|
import '../../../worker/OverrideState.js';
|
|
26
|
+
import '../../djinni-types/index.js';
|
|
26
27
|
import '../../HtmlElementState.js';
|
|
27
28
|
import '../../utils/AsyncStateMachine.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as HintPresenter,a as HintPresenterEvents}from'../../../chunks/chunk-
|
|
1
|
+
export{b as HintPresenter,a as HintPresenterEvents}from'../../../chunks/chunk-TDOKACT7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LoadingOverlay}from'../../../chunks/chunk-
|
|
1
|
+
export{a as LoadingOverlay}from'../../../chunks/chunk-HDY35RKY.js';
|
|
@@ -13,6 +13,7 @@ interface StateTransitionAction<TState extends string, TResult = any> {
|
|
|
13
13
|
/**
|
|
14
14
|
* Generic async state machine that can be used to manage state transitions
|
|
15
15
|
* with support for async operations, event listeners, and validation.
|
|
16
|
+
* All state transitions are queued and processed sequentially to prevent race conditions.
|
|
16
17
|
*/
|
|
17
18
|
declare class AsyncStateMachine<TState extends string> {
|
|
18
19
|
private _currentState;
|
|
@@ -20,17 +21,28 @@ declare class AsyncStateMachine<TState extends string> {
|
|
|
20
21
|
private _listeners;
|
|
21
22
|
private _pendingTransitions;
|
|
22
23
|
private _validTransitions;
|
|
24
|
+
private _taskQueue;
|
|
25
|
+
private _isProcessingQueue;
|
|
23
26
|
constructor(initialState: TState, validTransitions: StateTransition<TState>[]);
|
|
24
27
|
get currentState(): TState;
|
|
25
|
-
get hasPendingTransitions(): boolean;
|
|
26
28
|
get isInitializing(): boolean;
|
|
27
29
|
addListener(listener: (currentState: TState, previousState: TState, context?: any) => void): void;
|
|
28
30
|
removeListener(listener: (currentState: TState, previousState: TState, context?: any) => void): void;
|
|
29
31
|
canTransitionTo(targetState: TState): boolean;
|
|
30
32
|
transitionTo(targetState: TState, context?: any): void;
|
|
33
|
+
/**
|
|
34
|
+
* Enqueues a task to be executed sequentially.
|
|
35
|
+
* This ensures that all tasks are processed one at a time, preventing race conditions.
|
|
36
|
+
*/
|
|
37
|
+
private enqueueTask;
|
|
38
|
+
/**
|
|
39
|
+
* Processes the task queue sequentially.
|
|
40
|
+
* Only one task is processed at a time to prevent race conditions.
|
|
41
|
+
*/
|
|
42
|
+
private processQueue;
|
|
31
43
|
executeAsyncTransition<TResult>(config: StateTransitionAction<TState, TResult>): Promise<TResult>;
|
|
32
44
|
waitForState(targetState: TState, timeoutMs?: number): Promise<void>;
|
|
33
|
-
reset(initialState: TState): void
|
|
45
|
+
reset(initialState: TState): Promise<void>;
|
|
34
46
|
private notifyListeners;
|
|
35
47
|
}
|
|
36
48
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as AsyncStateMachine}from'../../chunks/chunk-
|
|
1
|
+
export{a as AsyncStateMachine}from'../../chunks/chunk-LXOZUOZU.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as
|
|
1
|
+
export{a as wait}from'../../chunks/chunk-UZWBB65W.js';export{a as waitTransitionEndForElement}from'../../chunks/chunk-2HTI5D6Y.js';export{b as safeAwaitAnimation,a as safeCancelAnimation}from'../../chunks/chunk-EQ6V4W5K.js';export{a as throttle}from'../../chunks/chunk-T3AOBMAS.js';export{a as Timeout}from'../../chunks/chunk-Q7JWDX4U.js';export{a as html,b as renderIf}from'../../chunks/chunk-UWBNF47P.js';export{a as AsyncStateMachine}from'../../chunks/chunk-LXOZUOZU.js';export{a as ScanditHTMLElement}from'../../chunks/chunk-EV4OEANA.js';export{a as clamp}from'../../chunks/chunk-L2STPTEN.js';export{a as defineCustomElements}from'../../chunks/chunk-3A4KLILV.js';export{a as domIdFromValues}from'../../chunks/chunk-2LSO6JEZ.js';export{a as unknownErrorToString}from'../../chunks/chunk-AIRWHLJH.js';export{a as isObject}from'../../chunks/chunk-FGO2SSRS.js';export{a as isWorkerScope}from'../../chunks/chunk-QCRFVRSS.js';export{a as Deferred}from'../../chunks/chunk-O7TZTIHO.js';export{a as css}from'../../chunks/chunk-LSZZVJ6B.js';export{a as fromEntries}from'../../chunks/chunk-RG272MAJ.js';export{a as debounce}from'../../chunks/chunk-R6E4CT22.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as loadPolyfills}from'../../chunks/chunk-
|
|
1
|
+
export{a as loadPolyfills}from'../../chunks/chunk-UMHCVFPN.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Size } from '../../Common.js';
|
|
3
3
|
import '../../ScanditIcon.js';
|
|
4
4
|
import { Optional } from '../../tsHelper.js';
|
|
5
|
-
import '../../DataCaptureContext-
|
|
5
|
+
import '../../DataCaptureContext-8EuyQSL7.js';
|
|
6
6
|
import '../Serializable.js';
|
|
7
7
|
import './ScanditHTMLElement.js';
|
|
8
8
|
import '../../Camera-CZ0Hl7v2.js';
|
|
@@ -23,6 +23,7 @@ import '../FrameReaders/WatermarkStack.js';
|
|
|
23
23
|
import '../CameraAccess.js';
|
|
24
24
|
import '../../LoadingStatus.js';
|
|
25
25
|
import '../../worker/OverrideState.js';
|
|
26
|
+
import '../djinni-types/index.js';
|
|
26
27
|
import '../HtmlElementState.js';
|
|
27
28
|
import './AsyncStateMachine.js';
|
|
28
29
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SafeStorage,b as localStorage,c as sessionStorage}from'../../chunks/chunk-
|
|
1
|
+
export{a as SafeStorage,b as localStorage,c as sessionStorage}from'../../chunks/chunk-MKTACV3Q.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {a as a$1}from'../../chunks/chunk-
|
|
1
|
+
import {a as a$1}from'../../chunks/chunk-MTNFYUSF.js';import {a as a$2}from'../../chunks/chunk-XR65N6EG.js';async function a(){let[{missingFeatures:t},i]=await Promise.all([a$1.checkBrowserCompatibility(),a$1.checkMultithreadingSupport()]);i||(a$2.warn("Multithreading is not supported."),t.includes("crossOriginIsolated")&&a$2.warn("Headers for Multithreading are absent or misconfigured: please check how to configure them properly: https://docs.scandit.com/sdks/web/matrixscan/get-started#enable-browser-multithreading"),t.includes("sharedArrayBuffer")&&a$2.warn("SharedArrayBuffer not supported. Check the requirements here: https://docs.scandit.com/system-requirements#web-sdk"));}
|
|
2
2
|
export{a as warnMultithreadingUnavailable};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { AsyncImageConverterInstance, ImageBuffer } from '../private/djinni-types/index.js';
|
|
3
|
+
import { W as WorkerFunctions } from '../DataCaptureContext-8EuyQSL7.js';
|
|
4
|
+
import '../Camera-CZ0Hl7v2.js';
|
|
5
|
+
import '../Common.js';
|
|
6
|
+
import '../private/Serializable.js';
|
|
7
|
+
import '../private/privateAccess.js';
|
|
8
|
+
import '../DataCaptureContextSettings.js';
|
|
9
|
+
import '../DataCaptureViewPlusRelated.js';
|
|
10
|
+
import '../NotificationPresenter/NotificationPresenter.js';
|
|
11
|
+
import '../NotificationPresenter/NotificationConfiguration.js';
|
|
12
|
+
import '../ScanditIcon.js';
|
|
13
|
+
import '../private/utils/ScanditHTMLElement.js';
|
|
14
|
+
import '../NotificationPresenter/NotificationStyle.js';
|
|
15
|
+
import '../ViewControls.js';
|
|
16
|
+
import '../private/CustomLocationsView.js';
|
|
17
|
+
import '../private/View.js';
|
|
18
|
+
import '../private/AnchorPositions.js';
|
|
19
|
+
import '../private/nativeHandle.js';
|
|
20
|
+
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
21
|
+
import '../logger.js';
|
|
22
|
+
import '../private/FrameReaders/WatermarkStack.js';
|
|
23
|
+
import '../tsHelper.js';
|
|
24
|
+
import '../private/CameraAccess.js';
|
|
25
|
+
import '../LoadingStatus.js';
|
|
26
|
+
import './OverrideState.js';
|
|
27
|
+
import '../private/HtmlElementState.js';
|
|
28
|
+
import '../private/utils/AsyncStateMachine.js';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* This class is just forwards conversion request to the main thread.
|
|
32
|
+
* It is meant to be used when OffscreenCanvas is not available in the worker thread.
|
|
33
|
+
*/
|
|
34
|
+
declare class AsyncImageConverterForwarder implements AsyncImageConverterInstance {
|
|
35
|
+
private readonly workerFunctions;
|
|
36
|
+
private options;
|
|
37
|
+
private imageIdCounter;
|
|
38
|
+
private conversions;
|
|
39
|
+
constructor(workerFunctions: WorkerFunctions, options: {
|
|
40
|
+
quality: number;
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* The conversion will be performed in the main thread.
|
|
44
|
+
*/
|
|
45
|
+
convertToJpeg(imageBuffer: ImageBuffer, orientation: number): Promise<Uint8Array>;
|
|
46
|
+
/**
|
|
47
|
+
* Called by the main thread when the conversion has finished.
|
|
48
|
+
*/
|
|
49
|
+
onConvertToJPEGResult(imageId: number, result: Uint8Array): void;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { AsyncImageConverterForwarder };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as AsyncImageConverterForwarder}from'../chunks/chunk-3HOGSYPB.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { AsyncImageConverterBase } from '../private/AsyncImageConverterBase.js';
|
|
3
|
+
import '../private/djinni-types/index.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A converter safe to be used in the worker thread.
|
|
7
|
+
*/
|
|
8
|
+
declare class AsyncImageConverterWorker extends AsyncImageConverterBase {
|
|
9
|
+
protected getNewCanvas(width: number, height: number): OffscreenCanvas;
|
|
10
|
+
protected canvasToBlob(canvas: OffscreenCanvas): Promise<Blob | null>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { AsyncImageConverterWorker };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as AsyncImageConverterWorker}from'../chunks/chunk-5YXBE5P2.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import {
|
|
2
|
+
import { E as DataCaptureEngine, G as Module, J as AnyDataCaptureActionMessage, K as AugmentedWorker, L as ModuleHandler, N as DataCaptureCallbackMessage, O as DataCaptureActionMessageKey, Q as EngineWorkerResponse } from '../DataCaptureContext-8EuyQSL7.js';
|
|
3
3
|
import '../Camera-CZ0Hl7v2.js';
|
|
4
4
|
import '../Common.js';
|
|
5
5
|
import '../private/Serializable.js';
|
|
@@ -23,6 +23,7 @@ import '../tsHelper.js';
|
|
|
23
23
|
import '../private/CameraAccess.js';
|
|
24
24
|
import '../LoadingStatus.js';
|
|
25
25
|
import './OverrideState.js';
|
|
26
|
+
import '../private/djinni-types/index.js';
|
|
26
27
|
import '../private/HtmlElementState.js';
|
|
27
28
|
import '../private/utils/AsyncStateMachine.js';
|
|
28
29
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as WorkerMain}from'../chunks/chunk-
|
|
1
|
+
export{a as WorkerMain}from'../chunks/chunk-QDZ6UZHF.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import {
|
|
2
|
+
import { E as DataCaptureEngine, G as Module } from '../DataCaptureContext-8EuyQSL7.js';
|
|
3
3
|
import { WorkerMain } from './WorkerMain.js';
|
|
4
4
|
import '../Camera-CZ0Hl7v2.js';
|
|
5
5
|
import '../Common.js';
|
|
@@ -24,6 +24,7 @@ import '../tsHelper.js';
|
|
|
24
24
|
import '../private/CameraAccess.js';
|
|
25
25
|
import '../LoadingStatus.js';
|
|
26
26
|
import './OverrideState.js';
|
|
27
|
+
import '../private/djinni-types/index.js';
|
|
27
28
|
import '../private/HtmlElementState.js';
|
|
28
29
|
import '../private/utils/AsyncStateMachine.js';
|
|
29
30
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as InlineWorker,a as workerInstance}from'../chunks/chunk-
|
|
1
|
+
export{b as InlineWorker,a as workerInstance}from'../chunks/chunk-B2I3SBRI.js';
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import '../LoadingStatus.js';
|
|
3
3
|
import './OverrideState.js';
|
|
4
4
|
import '../Common.js';
|
|
5
|
-
export {
|
|
5
|
+
export { b2 as CreateContextParameters, E as DataCaptureEngine, b1 as LoadLibraryParameters, b5 as ProcessFrameParameters, b6 as ReportCameraPropertiesParameters, b4 as SetFrameSourceParameters, b3 as UpdateContextParameters, W as WorkerFunctions } from '../DataCaptureContext-8EuyQSL7.js';
|
|
6
6
|
import '../ScanditIcon.js';
|
|
7
|
+
import '../private/djinni-types/index.js';
|
|
7
8
|
import '../private/Serializable.js';
|
|
8
9
|
import '../Camera-CZ0Hl7v2.js';
|
|
9
10
|
import '../private/privateAccess.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureEngine}from'../chunks/chunk-
|
|
1
|
+
export{a as DataCaptureEngine}from'../chunks/chunk-I3U43DWH.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import './OverrideState.js';
|
|
3
|
-
export { A as DataCaptureLoader, z as DataCaptureLoaderOptions } from '../DataCaptureContext-
|
|
3
|
+
export { A as DataCaptureLoader, z as DataCaptureLoaderOptions } from '../DataCaptureContext-8EuyQSL7.js';
|
|
4
4
|
import '../LoadingStatus.js';
|
|
5
5
|
import '../ScanditIcon.js';
|
|
6
6
|
import '../logger.js';
|
|
@@ -23,5 +23,6 @@ import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
|
23
23
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
24
24
|
import '../tsHelper.js';
|
|
25
25
|
import '../private/CameraAccess.js';
|
|
26
|
+
import '../private/djinni-types/index.js';
|
|
26
27
|
import '../private/HtmlElementState.js';
|
|
27
28
|
import '../private/utils/AsyncStateMachine.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureLoader}from'../chunks/chunk-
|
|
1
|
+
export{a as DataCaptureLoader}from'../chunks/chunk-7RMPOOYQ.js';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import '../Common.js';
|
|
3
|
-
export {
|
|
3
|
+
export { af as AddNativeOverlayAction, J as AnyDataCaptureActionMessage, K as AugmentedWorker, aJ as CaptureModeDeserializerInstance, Z as ConvertToJPEGResultDataCaptureAction, _ as CreateContextDataCaptureAction, O as DataCaptureActionMessageKey, N as DataCaptureCallbackMessage, ah as DataCaptureCallbackMessageKeys, aB as DataCaptureContext, aI as DataCaptureContextDeserializer, aH as DataCaptureContextDeserializerResult, aC as DataCaptureImageBufferFrameSource, aF as DataCaptureView, az as DataCaptureWorker, a2 as DeleteFrameDataDataCaptureAction, ao as DidTapTrackedBarcode, a6 as DisposeDataCaptureAction, aA as EmscriptenClassHandle, Q as EngineWorkerResponse, aa as ExtractCentaurusLicenseDataCaptureAction, R as ExtractCentaurusLicenseResponse, a7 as FlushAnalyticsDataCaptureAction, I as GenericHint, aD as GestureListener, aE as GestureRecognizer, ae as GetOpenSourceSoftwareLicenseInfoAction, V as GetOpenSourceSoftwareLicenseInfoResponse, U as GetViewfinderInfo, ad as GetViewfinderInfoAction, aX as GuidanceHint, aV as GuidanceHintAnchor, aW as GuidanceHintStyle, av as HideGuidanceMessage, am as HideHintWorkerMessage, at as HideToastMessage, aT as HintAnchor, aR as HintCornerStyle, aN as HintFont, aQ as HintHeight, aS as HintIcon, a$ as HintPresenterV2, ac as HintPresenterV2updateAction, aU as HintStyle, aO as HintTextAlignment, aP as HintWidth, a4 as IsFeatureSupportedAction, al as IsFeatureSupportedMessage, T as IsFeatureSupportedResponse, aG as JSONParseable, a_ as LicensedFeature, Y as LoadLibraryDataCaptureAction, G as Module, L as ModuleHandler, aK as ModuleMirrorAxis, aq as OnFrameProcessingFinishedMessage, ap as OnFrameProcessingStartedMessage, ar as OnFrameSkippedMessage, ab as OnTapAction, ay as PayloadForCommand, B as PerformanceMetrics, an as PerformanceMetricsReportMessage, b0 as PlatformHintPresenter, a0 as ProcessFrameDataCaptureAction, ag as RemoveNativeOverlayAction, a8 as ReportCameraPropertiesDataCaptureAction, a1 as RequestFrameDataDataCaptureAction, S as RequestFrameDataResponse, $ as SetFrameSourceDataCaptureAction, a9 as SetLogLevelDataCaptureAction, au as ShowGuidanceMessage, aj as ShowHintWorkerMessage, as as ShowToastMessage, aw as StartUpdateTimerMessage, ax as StopUpdateTimerMessage, ai as SuccessFeedbackWorkerMessage, aZ as ToastHint, aY as ToastHintStyle, a5 as UpdateContextDataCaptureAction, ak as UpdateHintWorkerMessage, aL as Vector, a3 as VisibilityChangeAction, aM as WasmFrameData, X as WorkerResponse } from '../DataCaptureContext-8EuyQSL7.js';
|
|
4
4
|
import '../LoadingStatus.js';
|
|
5
5
|
import '../logger.js';
|
|
6
|
+
import '../private/djinni-types/index.js';
|
|
6
7
|
import '../private/Serializable.js';
|
|
7
8
|
import '../Camera-CZ0Hl7v2.js';
|
|
8
9
|
import '../private/privateAccess.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
export { WorkerMain } from './WorkerMain.js';
|
|
3
|
-
export {
|
|
3
|
+
export { af as AddNativeOverlayAction, J as AnyDataCaptureActionMessage, K as AugmentedWorker, aJ as CaptureModeDeserializerInstance, Z as ConvertToJPEGResultDataCaptureAction, _ as CreateContextDataCaptureAction, b2 as CreateContextParameters, O as DataCaptureActionMessageKey, N as DataCaptureCallbackMessage, ah as DataCaptureCallbackMessageKeys, aB as DataCaptureContext, aI as DataCaptureContextDeserializer, aH as DataCaptureContextDeserializerResult, E as DataCaptureEngine, aC as DataCaptureImageBufferFrameSource, A as DataCaptureLoader, z as DataCaptureLoaderOptions, aF as DataCaptureView, az as DataCaptureWorker, a2 as DeleteFrameDataDataCaptureAction, ao as DidTapTrackedBarcode, a6 as DisposeDataCaptureAction, aA as EmscriptenClassHandle, Q as EngineWorkerResponse, aa as ExtractCentaurusLicenseDataCaptureAction, R as ExtractCentaurusLicenseResponse, a7 as FlushAnalyticsDataCaptureAction, I as GenericHint, aD as GestureListener, aE as GestureRecognizer, ae as GetOpenSourceSoftwareLicenseInfoAction, V as GetOpenSourceSoftwareLicenseInfoResponse, U as GetViewfinderInfo, ad as GetViewfinderInfoAction, aX as GuidanceHint, aV as GuidanceHintAnchor, aW as GuidanceHintStyle, av as HideGuidanceMessage, am as HideHintWorkerMessage, at as HideToastMessage, aT as HintAnchor, aR as HintCornerStyle, aN as HintFont, aQ as HintHeight, aS as HintIcon, a$ as HintPresenterV2, ac as HintPresenterV2updateAction, aU as HintStyle, aO as HintTextAlignment, aP as HintWidth, a4 as IsFeatureSupportedAction, al as IsFeatureSupportedMessage, T as IsFeatureSupportedResponse, aG as JSONParseable, a_ as LicensedFeature, Y as LoadLibraryDataCaptureAction, b1 as LoadLibraryParameters, G as Module, L as ModuleHandler, aK as ModuleMirrorAxis, aq as OnFrameProcessingFinishedMessage, ap as OnFrameProcessingStartedMessage, ar as OnFrameSkippedMessage, ab as OnTapAction, ay as PayloadForCommand, B as PerformanceMetrics, an as PerformanceMetricsReportMessage, b0 as PlatformHintPresenter, a0 as ProcessFrameDataCaptureAction, b5 as ProcessFrameParameters, ag as RemoveNativeOverlayAction, a8 as ReportCameraPropertiesDataCaptureAction, b6 as ReportCameraPropertiesParameters, a1 as RequestFrameDataDataCaptureAction, S as RequestFrameDataResponse, $ as SetFrameSourceDataCaptureAction, b4 as SetFrameSourceParameters, a9 as SetLogLevelDataCaptureAction, au as ShowGuidanceMessage, aj as ShowHintWorkerMessage, as as ShowToastMessage, aw as StartUpdateTimerMessage, ax as StopUpdateTimerMessage, ai as SuccessFeedbackWorkerMessage, aZ as ToastHint, aY as ToastHintStyle, a5 as UpdateContextDataCaptureAction, b3 as UpdateContextParameters, ak as UpdateHintWorkerMessage, aL as Vector, a3 as VisibilityChangeAction, aM as WasmFrameData, W as WorkerFunctions, X as WorkerResponse } from '../DataCaptureContext-8EuyQSL7.js';
|
|
4
4
|
import '../Camera-CZ0Hl7v2.js';
|
|
5
5
|
import '../Common.js';
|
|
6
6
|
import '../private/Serializable.js';
|
|
@@ -24,5 +24,6 @@ import '../tsHelper.js';
|
|
|
24
24
|
import '../private/CameraAccess.js';
|
|
25
25
|
import '../LoadingStatus.js';
|
|
26
26
|
import './OverrideState.js';
|
|
27
|
+
import '../private/djinni-types/index.js';
|
|
27
28
|
import '../private/HtmlElementState.js';
|
|
28
29
|
import '../private/utils/AsyncStateMachine.js';
|
package/build/js/worker/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureLoader}from'../chunks/chunk-
|
|
1
|
+
export{a as DataCaptureLoader}from'../chunks/chunk-7RMPOOYQ.js';export{a as WorkerMain}from'../chunks/chunk-QDZ6UZHF.js';export{a as DataCaptureEngine}from'../chunks/chunk-I3U43DWH.js';export{h as GuidanceHintAnchor,i as GuidanceHintStyle,g as HintAnchor,e as HintCornerStyle,a as HintFont,d as HintHeight,f as HintIcon,b as HintTextAlignment,c as HintWidth,k as LicensedFeature,j as ToastHintStyle}from'../chunks/chunk-56CY5YB3.js';
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import {a as a$7}from'./chunk-3KWRROUJ.js';import {a as a$a,c as c$1,b as b$1}from'./chunk-TAUJTFZC.js';import {a as a$g}from'./chunk-BA3RP6L2.js';import {a as a$8}from'./chunk-AIC4H5KG.js';import {a as a$d}from'./chunk-JS3T7K2Z.js';import {b}from'./chunk-6H6FKGVE.js';import {a as a$c}from'./chunk-N5YZEC56.js';import {a as a$6}from'./chunk-VJB527QZ.js';import {a as a$5}from'./chunk-GHTCNOQN.js';import {a as a$2}from'./chunk-YNHLZS7P.js';import {a as a$e}from'./chunk-FGO2SSRS.js';import {d}from'./chunk-LYSTK36S.js';import {a as a$9}from'./chunk-GPJEB376.js';import {a as a$b}from'./chunk-QCZSSQAQ.js';import {a as a$1}from'./chunk-SJOZM6AL.js';import {a as a$4}from'./chunk-XR65N6EG.js';import {f}from'./chunk-25EQ6RFI.js';import {a as a$f}from'./chunk-WUHKODFA.js';import {a as a$3}from'./chunk-7SW2PEHB.js';import {c}from'./chunk-TR3NGINC.js';var j=[{from:"unconfigured",to:"configuring"},{from:"configuring",to:"configured"},{from:"configuring",to:"unconfigured"},{from:"configured",to:"creating-context"},{from:"creating-context",to:"ready"},{from:"creating-context",to:"configured"},{from:"ready",to:"unconfigured"},{from:"configured",to:"unconfigured"},{from:"configuring",to:"unconfigured"},{from:"creating-context",to:"unconfigured"}];function C(h,e,t){let r=t.value;return t.value=function(...n){let i=m.stateMachine;return i.currentState==="ready"&&m.mainDataCaptureLoader!=null?r.apply(this,n):i.isInitializing||i.currentState==="configured"?i.waitForState("ready").then(()=>r.apply(this,n)):Promise.reject(new Error(`Please call DataCaptureContext.forLicenseKey() before calling ${String(e)}`))},t}function W(h){return h[a$g]!=null}function x(h){return "skipSerialization"in h||h[a$g]!=null}var H,J,K,a=class a{constructor(){this.framework="web";this.runtimeEnvironment={deviceOS:(H=a$1.getUserAgentInfo().getOS().name)!=null?H:"",browser:(J=a$1.getUserAgentInfo().getBrowser().name)!=null?J:"",browserVersion:(K=a$1.getUserAgentInfo().getBrowser().version)!=null?K:"",get deviceModelName(){let{model:e,vendor:t}=a$1.getUserAgentInfo().getDevice();return (t==null||t==="")&&(t="Unknown"),(e==null||e==="")&&(e="Unknown"),[t,e].join(" ")}};this.settings=new a$3;this._frameSource=null;this._view=null;this.modes=new Set;this.components=[];this.listeners=[];this.updateListeners=new Set;this.cameraPropertiesReportListener=this.reportCameraProperties.bind(this);this.cameraAccessErrorListener=this.onCameraAccessError.bind(this);this.onWorkerMessageListener=this.onWorkerMessage.bind(this);this.onVisibilityChangeListener=this.onVisibilityChange.bind(this);this.pendingWorkerMessageListeners=new Set;this.delayedRegistration=false;this.highEndBlurryRecognition=false;this._frameHandlers=[];this._useSynchronousFrameFlow=false;}static get moduleLicenseTextProviders(){return [new w]}static get sharedInstance(){return a._sharedInstance==null&&(a._sharedInstance=new a),a._sharedInstance}static get currentState(){return a.stateMachine.currentState}static get isReady(){return a.stateMachine.currentState==="ready"}static get isInitializing(){return a.stateMachine.isInitializing}static addStateListener(e){a.stateMachine.addListener(e);}static removeStateListener(e){a.stateMachine.removeListener(e);}async initializeWithOptions(e){var t,r,n,i,o,d,u,y,M;this.licenseKey=(r=(t=e.licenseKey)!=null?t:a.userLicenseKey)!=null?r:"",this.deviceName=(n=e.deviceName)!=null?n:"",this.dataCaptureInstance=(i=e.dataCaptureInstance)!=null?i:a.mainDataCaptureLoader,this.delayedRegistration=(o=e.delayedRegistration)!=null?o:false,e.settings!=null&&(this.settings=e.settings),this.highEndBlurryRecognition=(M=(y=(d=e.dataCaptureInstance)==null?void 0:d.highEndBlurryRecognition)!=null?y:(u=a.mainDataCaptureLoader)==null?void 0:u.highEndBlurryRecognition)!=null?M:false;for(let z of this.pendingWorkerMessageListeners)this.dataCaptureInstance.addWorkerListener(z);this.pendingWorkerMessageListeners.clear(),this.settings!=null&&await this.applySettings(this.settings),await this.createContext();}get frameSource(){return this._frameSource}get workerCommand(){if(this.dataCaptureInstance==null)throw new Error("Cannot call workerCommand before dataCaptureInstance is set");return this.dataCaptureInstance.workerCommand.bind(this.dataCaptureInstance)}static async forLicenseKey(e,t){if(a$4.info(`forLicenseKey called, current state: ${a.stateMachine.currentState}`),a.stateMachine.currentState==="ready")return a$4.info("DataCaptureContext is already ready, returning existing instance"),a.sharedInstance;if(a.stateMachine.isInitializing)return a$4.info("DataCaptureContext is already initializing, waiting for completion"),await a.stateMachine.waitForState("ready"),a.sharedInstance;if(a.stateMachine.currentState==="unconfigured"){a$4.info("Starting initialization from unconfigured state");try{return await a.stateMachine.executeAsyncTransition({targetState:"configuring",action:async()=>{await a.internalConfigure(e,t);},onSuccess:"configured",onError:"unconfigured"}),await a.stateMachine.executeAsyncTransition({targetState:"creating-context",action:async()=>{a._sharedInstance&&await a._sharedInstance.dispose(),await a.sharedInstance.initializeWithOptions({licenseKey:e,deviceName:t.deviceName,settings:t.settings});},onSuccess:"ready",onError:"configured"}),a.sharedInstance}catch(r){throw await a.resetInitialization(),r}}return a.sharedInstance}static async internalConfigure(e,t){var u;a$5.getInstance().updateIfMissing(a$6);let{forceAllPolyfills:r,overrideThreadsSupport:n,overrideSimdSupport:i}=a.getOverridesFromQueryString();await a$7({forceAllPolyfills:r}),await a.validateOptions({...t,licenseKey:e});let o={licenseKey:e,libraryLocation:a$8(t.libraryLocation),moduleLoaders:t.moduleLoaders,logLevel:(u=t.logLevel)!=null?u:a$4.Level.Debug,overrideThreadsSupport:n,overrideSimdSupport:i,verifyResponseHash:true,loadProgressNotifier:b.notify.bind(b)};a$4.setLevel(o.logLevel),a.userLicenseKey=o.licenseKey,a.libraryLocation=o.libraryLocation,b.subscribe(a.updateViewsWithProgress);let d=a$1.checkBrowserCompatibility();if(!d.fullSupport&&!d.scannerSupport)throw new a$9(d);a$1.isSupportedIOSVersion()||a$4.warn(`Warning: Minimum supported iOS version is 14.6.
|
|
2
|
-
Please check the minimum system requirements here:
|
|
3
|
-
https://docs.scandit.com/system-requirements#browser-compatibility`),a.dataCaptureLoaders=await a.loadModules(o.moduleLoaders,o),a.mainDataCaptureLoader=[...a.dataCaptureLoaders.entries()][0][1],b.unsubscribe(a.updateViewsWithProgress);}static async forLicenseKeyInElectronPath(e,t){if(!a$a())throw new a$b({name:"MisconfigurationError",message:"forLicenseKeyInElectronPath can only be used in Electron applications"});let r=await c$1({licenseDataPath:e});if(r==null)throw new a$b({name:"NoLicenseKeyError",message:`Cannot retrieve license key for Electron app at ${e}`});return a.forLicenseKey(r.licenseKey,{...t})}static updateViewsWithProgress({percentage:e}){for(let t of a$c.values())t.setProgressBarPercentage(e);}static getOverridesFromQueryString(){var o,d,u;function e(y){return ["auto","off","on"].includes(y)}let t=new URLSearchParams(window.location.search),[r="auto",n="auto",i=false]=[(o=t.get("pthreads"))==null?void 0:o.toLowerCase(),(d=t.get("simd"))==null?void 0:d.toLowerCase(),((u=t.get("forceAllPolyfills"))==null?void 0:u.toLowerCase())==="true"];return {overrideThreadsSupport:e(r)?r:"auto",overrideSimdSupport:e(n)?n:"auto",forceAllPolyfills:i}}static async validateOptions(e){if(e.licenseKey==null||e.licenseKey.trim().length<64)throw new a$b({name:"NoLicenseKeyError",message:"No license key provided"});if(typeof e.libraryLocation!="string")throw new a$b({name:"MisconfigurationError",message:'Option "libraryLocation" was not provided'});if(!Array.isArray(e.moduleLoaders)||e.moduleLoaders.length===0)throw new a$b({name:"MisconfigurationError",message:'Option "moduleLoaders" is missing or empty'});let t=e.moduleLoaders.map(r=>r.moduleName);if(!["BarcodeCapture","IdCapture","LabelCapture"].includes(t[0]))throw new a$b({name:"MisconfigurationError",message:'Main modules must be loaded before side modules. For example "BarcodeCapture" must be loaded before "Parser".'})}static async loadModules(e,t){let r=new Map,n=new Map;for(let i of e)n.set(i.moduleName,i.load(t));await Promise.all(n.values());for(let[i,o]of n)r.set(i,await o);return r}static async resetInitialization(){var e;await a.sharedInstance.dispose(),a.stateMachine.reset("unconfigured"),a.userLicenseKey=null,a.libraryLocation=void 0,a.dataCaptureLoaders.clear(),a._sharedInstance=void 0,await((e=a.mainDataCaptureLoader)==null?void 0:e.terminateDataCaptureWorker()),a.mainDataCaptureLoader=void 0;}static async getOpenSourceSoftwareLicenseInfo(){let e=[];for(let r of a.moduleLicenseTextProviders){let n=await r.getLicenseText();e.push(n);}let t=e.join(`
|
|
4
|
-
|
|
5
|
-
`);return new a$d(t)}async setFrameSource(e){let t=e!==this._frameSource;if(this._frameSource!==null&&(this._frameSource.context=null),this._frameSource=e!=null?e:null,e&&(e.context=this,await this.workerCommand("setFrameSource",{mirrorAxis:this.getMirrorAxisForFrameSource(e),isCameraFrameSource:f(e)})),await this.update([{type:"frameSourceState",newValue:this.frameSource}]),t)for(let r of this.listeners)r.didChangeFrameSource&&r.didChangeFrameSource(this,this._frameSource);}addListener(e){this.listeners.includes(e)||this.listeners.push(e);}async flushAnalytics(){await this.workerCommand("flushAnalytics",{});}removeListener(e){this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}async addMode(e){this.modes.add(e),await e.attachedToContext(this),this.updateCameraFrameFlow(),await this.update([],{updateContext:!x(e)});}async removeMode(e){this.modes.delete(e),await e.detachedFromContext(),this.updateCameraFrameFlow(),await this.update([],{updateContext:!x(e)});}async setMode(e){this.modes.has(e)||(this.modes.clear(),this.modes.add(e),await e.attachedToContext(this),this.updateCameraFrameFlow(),await this.update());}async removeCurrentMode(){for(let e of this.modes)await e.detachedFromContext();this.modes.clear(),await this.update();}async removeAllModes(){for(let e of this.modes)await this.removeMode(e);}async dispose(){d.instance().removeListener("cameraProperties",this.cameraPropertiesReportListener),d.instance().removeListener("cameraAccessError",this.cameraAccessErrorListener),this.unsubscribeToVisibilityChange(this.onVisibilityChangeListener),await this.removeAllModes(),this.dataCaptureInstance&&await this.workerCommand("dispose",{}).catch(()=>{}),this.listeners=[],this.modes.clear(),this.components.length=0,this.updateListeners.clear(),this.pendingWorkerMessageListeners.clear(),this.dataCaptureInstance=void 0,this.delayedRegistration=false,this.highEndBlurryRecognition=false,this._frameHandlers.length=0,this.frameSource&&(this.frameSource.context=null,this._frameSource=null),this._view&&(this._view.setContext(null),this._view=null),this.licenseKey="",this.deviceName="";}async applySettings(e){this.settings=e,await this.update();}toJSONObject(){var e,t;return {licenseKey:this.licenseKey,framework:this.framework,deviceName:this.deviceName,...this.runtimeEnvironment,modes:[...this.modes].filter(r=>!x(r)).map(r=>r.toJSONObject()),components:this.components.map(r=>r.toJSONObject()),frameSource:this.frameSource?this.frameSource.toJSONObject():null,settings:this.settings.toJSONObject(),view:(t=(e=this._view)==null?void 0:e.toJSONObject())!=null?t:null}}getView(){return this._view}async setView(e){return this._view=e,this.update([{type:"viewSet",newValue:e}])}async getAppName(){let e=null;if(a$a()){let t=await b$1();if((t==null?void 0:t.appName)==null||t.appName==="")throw new Error("Cannot retrieve electron appName. Did you set it up in package.json? https://www.electronjs.org/docs/latest/api/app#appgetname");e=t.appName;}return e}urlToHostname(e){try{return new URL(e!=null?e:"").hostname}catch{return ""}}getParentDomain(){var t;let e="";return parent!==window&&(e||(e=this.urlToHostname((t=location.ancestorOrigins)==null?void 0:t[0])),e||(e=this.urlToHostname(document.referrer)),e||(e="")),e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e}async createContext(){await this.workerCommand("createContext",{context:this.toJSONObject(),deviceId:a.deviceID,delayedRegistration:this.delayedRegistration,highEndBlurryRecognition:this.highEndBlurryRecognition,appName:await this.getAppName(),parentDomain:this.getParentDomain()}),this.subscribeToWorkerMessages(this.onWorkerMessageListener),this.subscribeToCameraManagerEvents(),this.subscribeToVisibilityChange(this.onVisibilityChangeListener),this._view!=null&&await this.setView(this._view),this.frameSource!=null&&await this.setFrameSource(this.frameSource);}subscribeToVisibilityChange(e){document.addEventListener("visibilitychange",e);}unsubscribeToVisibilityChange(e){document.removeEventListener("visibilitychange",e);}async requestFrameData(e){return this.workerCommand("requestFrameData",{frameId:e})}performanceMark(e){a$e(globalThis.performance)&&typeof globalThis.performance.mark=="function"&&performance.mark(e);}async sendFrameToProcessor(e){let t=e instanceof ImageData?{data:e.data,width:e.width,height:e.height}:e,r=await this.sendFrameToHandlers(t);return t.data=r.capture.data,r.skip?r.capture:(this.performanceMark("processFrameBeforeSDC"),this.sendFrameToSDC(t))}async sendFrameToHandlers(e){for(let t of this._frameHandlers)if((await t(e)).action==="skip")return {skip:true,capture:e};return {skip:false,capture:e}}async sendFrameToSDC(e){return this.workerCommand("processFrame",e,[e.data.buffer])}registerFrameHandler(e){this._frameHandlers.includes(e)||this._frameHandlers.push(e);}unregisterFrameHandler(e){this._frameHandlers.includes(e)&&this._frameHandlers.splice(this._frameHandlers.indexOf(e),1);}onVisibilityChange(){this.workerCommand("documentVisibility",{state:document.visibilityState});}onWorkerMessage(e){if(e.type==="contextDidChangeStatus"){e.payload.isValid||a$4.error(e.payload);for(let t of this.listeners)t.didChangeStatus&&t.didChangeStatus(this,a$f.fromJSON(e.payload));}if(e.type==="didStartObservingContext")for(let t of this.listeners)t.didStartObservingContext&&t.didStartObservingContext(this);e.type==="onFrameProcessingFinished"&&this.performanceMark("processFrameAfterSDC");}subscribeToCameraManagerEvents(){d.instance().addListener("cameraProperties",this.cameraPropertiesReportListener),d.instance().addListener("cameraAccessError",this.cameraAccessErrorListener);}async reportCameraProperties(e){return this.workerCommand("reportCameraProperties",e)}onCameraAccessError(e){for(let t of this.listeners)t.didChangeStatus&&t.didChangeStatus(this,a$f.fromJSON({code:33794,isValid:true,message:typeof(e==null?void 0:e.toString)=="function"?e.toString():"Unknown error"}));}async update(e=[],{updateContext:t=true}={}){var r,n;t&&await this.updateContext();for(let i of e){switch(i.type){case "frameSourceState":{await((r=this._view)==null?void 0:r.onFrameSourceChange(this.frameSource));break}case "singleImageModeUploaderSettings":{(n=this._view)==null||n.onSingleImageUploaderSettingsChange(i.newValue);break}case "addOverlay":{await this.addNativeOverlay(i.newValue);break}case "removeOverlay":{await this.removeNativeOverlay(i.newValue);break}}for(let o of this.updateListeners)o(i);}}async updateContext(){await this.workerCommand("updateContext",{context:this.toJSONObject(),...this.getViewInfo()}).catch(e=>a$4.warn("Error while updating context:",e,this.toJSONObject()));}getViewInfo(){return this._view!=null?{view:{width:this._view.width,height:this._view.height,visible:this._view.width>0&&this._view.height>0,orientation:this._view.orientation}}:{view:null}}getMirrorAxisForFrameSource(e){let t="None";return f(e)&&e.getMirrorImageEnabled()&&(t="Y"),t}async addComponent(e){if(!this.components.includes(e))return this.components.push(e),e._context=this,this.update()}async addNativeOverlay(e){if(W(e))return this.workerCommand("addNativeOverlay",{overlayHandle:e[a$g]})}async removeNativeOverlay(e){if(W(e))return this.workerCommand("removeNativeOverlay",{overlayHandle:e[a$g]})}subscribeToWorkerMessages(e){this.dataCaptureInstance?this.dataCaptureInstance.addWorkerListener(e):this.pendingWorkerMessageListeners.add(e);}unsubscribeToWorkerMessages(e){this.dataCaptureInstance&&this.dataCaptureInstance.removeWorkerListener(e),this.pendingWorkerMessageListeners.delete(e);}hasEnabledMode(){return [...this.modes].some(e=>e.isEnabled())}updateCameraFrameFlow(){let e=[...this.modes].some(t=>t._synchronousFrameFlow===true);d.instance().setFrameHandling(e);}async isFeatureSupported(e){return (await this.workerCommand("isFeatureSupported",{feature:e})).supported}};a.deviceID=a$1.getDeviceId(),a.stateMachine=new a$2("unconfigured",j),a.mainDataCaptureLoader=void 0,a.dataCaptureLoaders=new Map,a.libraryLocation=void 0,a.userLicenseKey=null,c([C],a.prototype,"setFrameSource",1),c([C],a.prototype,"addMode",1),c([C],a.prototype,"removeMode",1),c([C],a.prototype,"setMode",1),c([C],a.prototype,"removeCurrentMode",1),c([C],a.prototype,"isFeatureSupported",1);var m=a;var w=class{constructor(e=m,t=a$4,r=globalThis.fetch.bind(globalThis)){this.staticContext=m;this.staticContext=e,this.logger=t,this.fetch=r;}get workerCommand(){var e;return (e=this.staticContext.mainDataCaptureLoader)==null?void 0:e.workerCommand.bind(this.staticContext.mainDataCaptureLoader)}async getLicenseText(){var i,o;let e=this.staticContext.stateMachine.currentState;if(e==="unconfigured"||e==="configuring")return this.logger.warn('You must call "DataCaptureContext.forLicenseKey" before retrieving open source license text info.'),"";let t=new URL(`${((i=this.staticContext.libraryLocation)!=null?i:"").replace(/\/$/,"")}/license/web-core-license.txt`),[r,n]=await Promise.all([(o=this.workerCommand)==null?void 0:o.call(this,"getOpenSourceSoftwareLicenseInfo",{}),this.fetchWebLicenseText(t.toString())]);return [r==null?void 0:r.licenseText,n].filter(d=>d!=null).join(`
|
|
6
|
-
`)}async fetchWebLicenseText(e){return this.fetch(e,{mode:"cors",credentials:"include",headers:{"Content-Type":"text/plain"}}).then(async t=>{if(!t.ok)throw new Error(`${t.status} ${t.statusText}`);return t.text()}).catch(t=>(this.logger.warn(`Failed to fetch license from ${e}: ${t.toString()}`),null))}};export{w as a,m as b};
|