@scandit/web-datacapture-barcode 7.2.0-beta.1 → 7.2.0-beta.2
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/BarcodeBatch.js +1 -1
- package/build/js/BarcodeBatchBasicOverlay.js +1 -1
- package/build/js/BarcodeBatchSettings.js +1 -1
- package/build/js/BarcodeCapture.js +1 -1
- package/build/js/BarcodeCaptureOverlay.js +1 -1
- package/build/js/BarcodeCaptureSettings.js +1 -1
- package/build/js/Defaults.d.ts +0 -16
- package/build/js/Defaults.js +1 -1
- package/build/js/check/BarcodeCheck.js +1 -1
- package/build/js/check/BarcodeCheckFeedback.js +1 -1
- package/build/js/check/BarcodeCheckPresenter.js +1 -1
- package/build/js/check/BarcodeCheckSettings.js +1 -1
- package/build/js/check/BarcodeCheckView.js +1 -1
- package/build/js/chunks/chunk-2RKBANN2.js +1 -0
- package/build/js/chunks/chunk-2ZPG257B.js +1 -0
- package/build/js/chunks/{chunk-RKKRIK37.js → chunk-3RL3H42R.js} +1 -1
- package/build/js/chunks/{chunk-AOU52W7O.js → chunk-5KVH2XIO.js} +1 -1
- package/build/js/chunks/chunk-63KZV5XE.js +1 -0
- package/build/js/chunks/{chunk-EI4V2NZN.js → chunk-75VI6EZ2.js} +1 -1
- package/build/js/chunks/{chunk-GTHRQWPV.js → chunk-BAOM24RT.js} +1 -1
- package/build/js/chunks/{chunk-BZ7BYARP.js → chunk-BG7VNYCV.js} +1 -1
- package/build/js/chunks/{chunk-RSGR6DP3.js → chunk-BPHHLTR2.js} +1 -1
- package/build/js/chunks/{chunk-HWV5BPFU.js → chunk-C53ZMSS3.js} +1 -1
- package/build/js/chunks/{chunk-LFI7LFDQ.js → chunk-EISL6ITI.js} +1 -1
- package/build/js/chunks/chunk-EYEU6COK.js +2 -0
- package/build/js/chunks/{chunk-NAQF3FE4.js → chunk-GDK7SUKY.js} +1 -1
- package/build/js/chunks/{chunk-J3CJTTKO.js → chunk-HKWMKBIV.js} +1 -1
- package/build/js/chunks/{chunk-PJRNZPHO.js → chunk-I22E7AYH.js} +1 -1
- package/build/js/chunks/{chunk-S4DXFXOU.js → chunk-IC4MKVBG.js} +1 -1
- package/build/js/chunks/{chunk-EI32ILEP.js → chunk-J3I6TRKT.js} +1 -1
- package/build/js/chunks/{chunk-KJJNY6TE.js → chunk-JD32AETQ.js} +1 -1
- package/build/js/chunks/chunk-KYQRFAWX.js +1 -0
- package/build/js/chunks/{chunk-KFQQXIWI.js → chunk-LCXQXE27.js} +1 -1
- package/build/js/chunks/{chunk-UYTEE4UD.js → chunk-MIZS6KM5.js} +1 -1
- package/build/js/chunks/{chunk-MFWUTWZR.js → chunk-NENGQZSC.js} +1 -1
- package/build/js/chunks/{chunk-PTOM2RHF.js → chunk-NNMXFRC2.js} +1 -1
- package/build/js/chunks/{chunk-QE4R77EM.js → chunk-OMY3KC7L.js} +1 -1
- package/build/js/chunks/{chunk-RXYSNBJM.js → chunk-Q75IAMGN.js} +1 -1
- package/build/js/chunks/{chunk-GHWLRMU5.js → chunk-R5ROT3AK.js} +1 -1
- package/build/js/chunks/{chunk-A6EZQ6R7.js → chunk-SNJABJAZ.js} +1 -1
- package/build/js/chunks/{chunk-BQT57FBO.js → chunk-TYVQVFM4.js} +1 -1
- package/build/js/chunks/chunk-VSL4PNMP.js +1 -0
- package/build/js/chunks/chunk-W4BE2J2I.js +1 -0
- package/build/js/chunks/{chunk-BRFFJHOE.js → chunk-YXSXALVA.js} +1 -1
- package/build/js/find/BarcodeFind.js +1 -1
- package/build/js/find/BarcodeFindFeedback.js +1 -1
- package/build/js/find/BarcodeFindPresenter.js +1 -1
- package/build/js/find/BarcodeFindSettings.js +1 -1
- package/build/js/find/BarcodeFindView.js +1 -1
- package/build/js/find/index.js +1 -1
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.js +1 -1
- package/build/js/spark/SparkScan.d.ts +1 -0
- package/build/js/spark/SparkScan.js +1 -1
- package/build/js/spark/SparkScanBarcodeFeedback.js +1 -1
- package/build/js/spark/SparkScanOverlay.js +1 -1
- package/build/js/spark/SparkScanSettings.d.ts +0 -5
- package/build/js/spark/SparkScanSettings.js +1 -1
- package/build/js/spark/SparkScanTargetAimerViewfinder.js +1 -1
- package/build/js/spark/index.js +1 -1
- package/build/js/spark/ui/SparkScanView.js +1 -1
- package/build/js/spark/ui/SparkScanViewFeedbackManager.js +1 -1
- package/build/js/spark/ui/SparkScanViewMiniPreview.js +1 -1
- package/build/js/spark/ui/SparkScanViewPresenter.d.ts +4 -2
- package/build/js/spark/ui/SparkScanViewPresenter.js +1 -1
- package/build/js/spark/ui/SparkScanViewSettings.js +1 -1
- package/build/js/spark/ui/SparkScanViewTriggerButton.js +1 -1
- package/build/js/spark/ui/constants/constants.d.ts +2 -1
- package/build/js/spark/ui/constants/constants.js +1 -1
- package/build/js/spark/ui/index.js +1 -1
- package/build/js/worker/BarcodeCaptureWorkerManager.js +1 -1
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/dataCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/package.json +2 -2
- package/sdc-lib/resources/models/barcode_semantics_ocr_detector_default.f383d4282ee9.model +0 -0
- package/sdc-lib/resources/models/ocr_barcode_semantics_default.b8e0fdb8dc2c.model +0 -0
- package/sdc-lib/scandit-datacapture-sdk-barcode-pthreads.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-barcode-pthreads.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-barcode-simd-pthreads.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-barcode-simd-pthreads.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-barcode-simd.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-barcode-simd.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-barcode.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-barcode.wasm +0 -0
- package/build/js/chunks/chunk-A74KUZAS.js +0 -1
- package/build/js/chunks/chunk-D5WE7BQR.js +0 -1
- package/build/js/chunks/chunk-DQT257RV.js +0 -2
- package/build/js/chunks/chunk-T44XGPSD.js +0 -1
- package/build/js/chunks/chunk-WF7OHN7I.js +0 -1
- package/build/js/chunks/chunk-WXMPKNQ2.js +0 -1
- package/build/js/chunks/chunk-YO7QRAX6.js +0 -1
- /package/build/js/chunks/{chunk-UOZAN2H7.js → chunk-PXBSCUOI.js} +0 -0
- /package/build/js/chunks/{chunk-XXN5AMBG.js → chunk-RMCPFLAA.js} +0 -0
- /package/build/js/chunks/{chunk-IVXQPFCR.js → chunk-Y5LNDJE7.js} +0 -0
- /package/sdc-lib/resources/models/{barcode_classification_default_model.b90ecc5d362d6cb82801c877fdde7c3e64b6b5ef.model → barcode_classification_default.b90ecc5d362d.model} +0 -0
- /package/sdc-lib/resources/models/{barcode_localization_default_model.47d1f96d10ccb378344a3009cded24a85c22a5f9.model → barcode_localization_default.47d1f96d10cc.model} +0 -0
- /package/sdc-lib/resources/models/{barcode_localization_dpm_default_model.866e3546778825d3a9bc1f2070c892de9c525092.model → barcode_localization_dpm_default.866e35467788.model} +0 -0
- /package/sdc-lib/resources/models/{barcode_localization_generic_postal_code_default_model.4c1ba34eafc0f30fbafdd458c6eed156bd3b3498.model → barcode_localization_generic_postal_code_default.4c1ba34eafc0.model} +0 -0
- /package/sdc-lib/resources/models/{barcode_localization_oned_default_model.5f2c85a7773b298068deecb49059c7a477c280c4.model → barcode_localization_oned_default.5f2c85a7773b.model} +0 -0
- /package/sdc-lib/resources/models/{barcode_localization_twod_default_model.795c17cef2bf529a00a9e0d235c1b8ddfca66cf5.model → barcode_localization_twod_default.795c17cef2bf.model} +0 -0
- /package/sdc-lib/resources/models/{ocr_barcode_semantics_default_model.4df1cd250f2d31a69eecb30466b7823bbdd06730.model → barcode_ocr_fallback_ocr_default.4df1cd250f2d.model} +0 -0
- /package/sdc-lib/resources/models/{barcode_semantics_ocr_detector_default_model.e440ae4acaf7c7a2f42814ddc46c0920423eb372.model → barcode_ocr_fallback_ocr_detector_default.e440ae4acaf7.model} +0 -0
- /package/sdc-lib/resources/models/{eu_dl_localization_model.e440ae4acaf7c7a2f42814ddc46c0920423eb372.model → eu_dl_localization.e440ae4acaf7.model} +0 -0
- /package/sdc-lib/resources/models/{id_ocr_model.f42a207632c0e54aed010bff4b40df1264e3f304.model → id_ocr.f42a207632c0.model} +0 -0
- /package/sdc-lib/resources/models/{invalidated_id_classification_default.a055873831c99a035fa94bbf7a8568b1e8e004e5.model → invalidated_id_classification_default.a055873831c9.model} +0 -0
- /package/sdc-lib/resources/models/{mrz_line_localization_model.4573c5a05b53d7f5cfac0f0fda2ead609011df50.model → mrz_line_localization.4573c5a05b53.model} +0 -0
- /package/sdc-lib/resources/models/{mrz_localization_model.c6b469e57923be136dfd2b6d3fef354eadda3e04.model → mrz_localization.c6b469e57923.model} +0 -0
- /package/sdc-lib/resources/models/{ocr_mrz_default_model.050ddaa9b8339897a9c7bc8b7dea02f2c6f11856.model → ocr_mrz_default.050ddaa9b833.model} +0 -0
- /package/sdc-lib/resources/models/{uk_dl_code_localization_model.e440ae4acaf7c7a2f42814ddc46c0920423eb372.model → uk_dl_code_localization.e440ae4acaf7.model} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-FPZJIOQH.js';import {b}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-FPZJIOQH.js';import {b}from'./chunk-2RKBANN2.js';import {a}from'./chunk-WPSMXGDG.js';import {CameraSettings,convertToPublicFrameData,Logger}from'@scandit/web-datacapture-core';var p=class u{constructor(){this.type="barcodeCapture";this._isEnabled=!0;this._feedback=a.default;this._context=null;this.listeners=new Set;this.allowedRemainingWorkerMessages=new Set;this.workerMessageListener=this.onWorkerMessage.bind(this);}static get recommendedCameraSettings(){return new CameraSettings(b.BarcodeCapture.RecommendedCameraSettings)}get context(){return this._context}get feedback(){return this._feedback}static async forContext(e,a){let t=new u;return t.settings=a,e&&await e.addMode(t),t}async setFeedback(e){return this._feedback=e,this.notifyContext()}isEnabled(){return this._isEnabled}async setEnabled(e){this._isEnabled=e,await this.notifyContext();}async applySettings(e){return this.settings=e,this.notifyContext()}addListener(e){this.listeners.has(e)||this.listeners.add(e);}removeListener(e){this.listeners.delete(e);}toJSONObject(){return {type:this.type,enabled:this._isEnabled,feedback:this.feedback.toJSONObject(),settings:this.settings.toJSONObject()}}attachedToContext(e){this._context=e,this._context.subscribeToWorkerMessages(this.workerMessageListener);}async detachedFromContext(){var e;(e=this._context)==null||e.unsubscribeToWorkerMessages(this.workerMessageListener),this._context=null;}sendClearFrameDataRequest(e){setTimeout(()=>{var a;(a=this.context)==null||a.workerCommand("deleteFrameData",{frameId:e});},0);}async onDidScan(e){if(this.context==null)return;let a=a$1.fromJSON(e.payload.session),{frameData:t}=e.payload;if(!this._isEnabled){this.sendClearFrameDataRequest(t.frameId),this.allowedRemainingWorkerMessages.clear();return}this.allowedRemainingWorkerMessages.add("successFeedback");let o=[];for(let r of this.listeners)if(r.didScan)try{let s=r.didScan(this,a,convertToPublicFrameData(t,this.context));s instanceof Promise&&await s;}catch(s){o.push(s);}this.sendClearFrameDataRequest(t.frameId),this.allowedRemainingWorkerMessages.add("barcodeCaptureDidUpdateSession");for(let r of o)Logger.log(Logger.Level.Error,r);}onDidUpdateSession(e){let a=a$1.fromJSON(e.payload);if(!(!this._isEnabled&&!this.allowedRemainingWorkerMessages.has(e.type))){this.allowedRemainingWorkerMessages.delete(e.type);for(let t of this.listeners)t.didUpdateSession&&t.didUpdateSession(this,a);}}onSuccessFeedback(e){!this._isEnabled&&!this.allowedRemainingWorkerMessages.has(e.type)||(this.allowedRemainingWorkerMessages.delete(e.type),this.feedback.success.emit());}async onWorkerMessage(e){switch(e.type){case"barcodeCaptureDidScan":{this.onDidScan(e);break}case"barcodeCaptureDidUpdateSession":{this.onDidUpdateSession(e);break}case"successFeedback":{this.onSuccessFeedback(e);break}}}async notifyContext(){this.context!=null&&await this.context.update();}};export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$5}from'./chunk-BBJPGTUG.js';import {a as a$6}from'./chunk-WL3PKWFT.js';import {c as c$1,b,a as a$9,d}from'./chunk-A2FMQ67Y.js';import {a}from'./chunk-UHJ3O2ZT.js';import {a as a$8}from'./chunk-CONYPETL.js';import {a as a$a}from'./chunk-5N7ZBGWC.js';import {a as a$c}from'./chunk-Y2XISTOT.js';import {a as a$7}from'./chunk-JKO4EZPZ.js';import {a as a$b}from'./chunk-PWPSTL4C.js';import {a as a$2}from'./chunk-RXYSNBJM.js';import {a as a$4}from'./chunk-4XFE7YMP.js';import {a as a$1}from'./chunk-I53W7VSB.js';import {a as a$3}from'./chunk-BRFFJHOE.js';import {Anchor,DataCaptureView,Point,Size}from'@scandit/web-datacapture-core';import {ScanditHTMLElement}from'@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js';import {css}from'@scandit/web-datacapture-core/build/js/private/utils/css.js';import {defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js';import {calculateWidth,calculateHeight}from'@scandit/web-datacapture-core/build/js/private/utils/quadrilateralUtils.js';import {Timeout}from'@scandit/web-datacapture-core/build/js/private/utils/timeout.js';var M={async highlightForBarcode(L,A){let t=a$c.create(L);A(t);}},c=class c extends ScanditHTMLElement{constructor(){super(...arguments);this.torchIconButton=null;this.cameraSwitchButton=null;this.zoomButton=null;this.onTorchButtonClickHandler=this.onTorchButtonClick.bind(this);this.onCameraSwitchButtonHandler=this.onCameraSwitchButtonClick.bind(this);this.onZoomButtonHandler=this.onZoomButtonClick.bind(this);this.onLayoutPointerDownHandler=this.onLayoutPointerDown.bind(this);this.onInfoAnnotationTapHandler=this.onInfoAnnotationTap.bind(this);this.onEdgesIntersectionObserverHandler=this.onEdgesIntersectionObserver.bind(this);this.pendingDeletionTimeout=null;}set shouldShowZoomControl(t){this.zoomButton&&(this.zoomButton.hidden=!t);}get shouldShowZoomControl(){return this.zoomButton===null?!1:!this.zoomButton.hidden}set shouldShowCameraSwitchControl(t){this.cameraSwitchButton&&(this.cameraSwitchButton.hidden=!t);}get shouldShowCameraSwitchControl(){return this.cameraSwitchButton===null?!1:!this.cameraSwitchButton.hidden}set shouldShowTorchControl(t){this.torchIconButton!==null&&(this.torchIconButton.hidden=!t);}get shouldShowTorchControl(){return this.torchIconButton===null?!1:!this.torchIconButton.hidden}set torchControlPosition(t){var e;(e=this.torchIconButton)==null||e.setAttribute("slot",`controls-${t===Anchor.Center?Anchor.TopLeft:t}`);}get torchControlPosition(){var e,o;let t=(o=(e=this.torchIconButton)==null?void 0:e.getAttribute("slot"))!=null?o:"";return t===""?Anchor.TopLeft:t.replace("controls-","")}set zoomControlPosition(t){var e;(e=this.zoomButton)==null||e.setAttribute("slot",`controls-${t===Anchor.Center?Anchor.BottomRight:t}`);}get zoomControlPosition(){var e,o;let t=(o=(e=this.zoomButton)==null?void 0:e.getAttribute("slot"))!=null?o:"";return t===""?Anchor.BottomRight:t.replace("controls-","")}set cameraSwitchControlPosition(t){var e;(e=this.cameraSwitchButton)==null||e.setAttribute("slot",`controls-${t===Anchor.Center?Anchor.TopRight:t}`);}get cameraSwitchControlPosition(){var e,o;let t=(o=(e=this.zoomButton)==null?void 0:e.getAttribute("slot"))!=null?o:"";return t===""?Anchor.TopRight:t.replace("controls-","")}static async createWithSettings(t,e,o,i,n){c.register();let r=document.createElement(c.tag);return r.barcodeCheckViewSettings=i,r.layout=a.create(),r.append(r.layout),a$1(t)?(r.dataCaptureView=t,r.dataCaptureView.containerElement.prepend(r),await t.setContext(e)):(r.dataCaptureView=await DataCaptureView.forContext(e),r.dataCaptureView.connectToElement(t),r.dataCaptureView.containerElement.prepend(r)),r.presenter=new a$2(r,e,o,i,n!=null?n:a$3.createRecommendedCameraSettings()),await r.presenter.prepare(),r}static async create(t,e,o){return c.createWithSettings(t,e,o,new a$4)}static register(){defineCustomElements({[a.tag]:a,[a$5.tag]:a$5,[a$6.tag]:a$6,[a$7.tag]:a$7,[c.tag]:c,[a$8.tag]:a$8});}static createStyleElement(){return css`[data-could-be-deleted=true]{display:none!important}[data-on-foreground=true]{z-index:3}${c.tag}{inset:0;position:absolute;z-index:1}`}async start(){return this.presenter.startSearching()}async stop(){return this.presenter.stopSearching()}async pause(){return this.presenter.pauseSearching()}reset(){this.deletePendingViews(),this.deleteAllViews();}toggleTorchIcon(t){this.torchIconButton!==null&&(this.torchIconButton.state=t);}onTorchButtonClick(){this.presenter.onTorchButtonClicked();}onCameraSwitchButtonClick(){this.presenter.onCameraSwitchButtonClicked();}onZoomButtonClick(){this.presenter.onZoomButtonClicked();}changeZoomButtonIcon(t){this.zoomButton&&(this.zoomButton.zoom=`${t}x`);}isValidIntersectionEntry(t){return t.rootBounds!=null&&!t.target.hidden}edgeObserverLandscapeLogic(t,e){t.direction="horizontal",(!t.anchor||c$1(t.anchor))&&(t.anchor=e.left?"left-center":"right-center"),e.left?t.anchor="left-center":e.right&&(t.anchor="right-center");}edgeObserverPortraitLogic(t,e){let o=e.bottom||e.top,i=e.left||e.right;o?(t.direction="vertical",t.anchor=e.bottom?"bottom-center":"top-center"):i&&(t.anchor!=null&&b(t.direction)&&c$1(t.anchor)?(t.anchor=e.left?"left-center":"right-center",t.direction="horizontal"):t.anchor!=null&&a$9(t.direction)&&d(t.anchor)&&(e.left&&t.anchor==="left-center"||e.right&&t.anchor==="right-center"||(t.anchor="top-center",t.direction="vertical")));}onEdgesIntersectionObserver(t){for(let e of t){let o=e.target;if(!this.isPopoverAnnotation(o)||!this.isValidIntersectionEntry(e))continue;let{boundingClientRect:i,rootBounds:n}=e,r=this.getTouchedEdges(i,n);!!(n!=null&&n.width&&(n!=null&&n.height)&&(n==null?void 0:n.width)>(n==null?void 0:n.height))?this.edgeObserverLandscapeLogic(o,r):this.edgeObserverPortraitLogic(o,r);}}connectedCallback(){this.torchIconButton=a$7.create(),this.torchIconButton.slot=`controls-${this.torchControlPosition}`,this.torchIconButton.hidden=!0,this.torchIconButton.addEventListener("pointerdown",this.onTorchButtonClickHandler),this.cameraSwitchButton=a$5.create(),this.cameraSwitchButton.slot=`controls-${this.cameraSwitchControlPosition}`,this.cameraSwitchButton.hidden=!0,this.cameraSwitchButton.addEventListener("pointerdown",this.onCameraSwitchButtonHandler),this.zoomButton=a$6.create(),this.zoomButton.slot=`controls-${this.zoomControlPosition}`,this.zoomButton.hidden=!0,this.zoomButton.addEventListener("pointerdown",this.onZoomButtonHandler),this.layout.append(this.torchIconButton,this.cameraSwitchButton,this.zoomButton),this.layout.addEventListener("pointerdown",this.onLayoutPointerDownHandler),this.layout.addEventListener("BarcodeCheckInfoAnnotationEventTap",this.onInfoAnnotationTapHandler),this.backdrop=a$8.create(),this.layout.append(this.backdrop),this.edgesObserver=new IntersectionObserver(this.onEdgesIntersectionObserverHandler,{root:this,threshold:[1,.75,.5,.25,0],rootMargin:"0px"}),this.pendingDeletionTimeout=new Timeout(1e3,()=>{this.deletePendingViews();}),this.prepend(c.createStyleElement());}disconnectedCallback(){var t,e,o;this.deleteAllViews(),(t=this.torchIconButton)==null||t.removeEventListener("pointerdown",this.onTorchButtonClickHandler),(e=this.cameraSwitchButton)==null||e.removeEventListener("pointerdown",this.onCameraSwitchButtonHandler),(o=this.zoomButton)==null||o.removeEventListener("pointerdown",this.onZoomButtonHandler),this.layout.removeEventListener("pointerdown",this.onLayoutPointerDownHandler),this.layout.removeEventListener("BarcodeCheckInfoAnnotationEventTap",this.onInfoAnnotationTapHandler),this.edgesObserver.disconnect();}isPopoverAnnotation(t){return t instanceof a$a}areMultiplePopoverAllowed(){for(let t of this.layout.querySelectorAll(`${a$a.tag}`))if(t&&this.isPopoverAnnotation(t)&&t.annotationTrigger==="highlightAndBarcodeScan")return !0;return !1}async onLayoutPointerDown(t){let e=t.target,o=e==null?void 0:e.closest("[data-identifier$='-highlight']"),i=e==null?void 0:e.closest(a$a.tag);if((o==null?void 0:o.dataset.id)!=null){await this.handleHighlightClick(o);return}if((i==null?void 0:i.dataset.id)!=null){await this.handleAnnotationClick(i);return}await this.handleClickOutside();}async handleHighlightClick(t){this.presenter.emitTappedFeedback();let e=this.queryAnnotationByDataIdentifier(t.dataset.identifier.replace("-highlight",""));e&&(e instanceof a$a?await this.handlePopoverHighlightClick(e,t):e.hidden=!e.hidden);}async handlePopoverHighlightClick(t,e){var o;if(!this.areMultiplePopoverAllowed()){let i=this.layout.querySelector(`${a$a.tag}[data-on-foreground="true"]`),n=(o=i==null?void 0:i.dataset.identifier)==null?void 0:o.replace("-annotation","-highlight"),r=this.layout.querySelector(`[data-identifier="${n}"]`);i!=null&&r!=null&&await this.hideBarcodeCheckPopover(i,r,!1);}await this.toggleBarcodeCheckPopover(t,e),this.edgesObserver.unobserve(t),this.edgesObserver.observe(t);}async handleAnnotationClick(t){var i;let e=(i=t.dataset.identifier)==null?void 0:i.replace("-annotation","-highlight"),o=this.layout.querySelector(`[data-identifier="${e}"]`);o&&await this.toggleBarcodeCheckPopover(t,o);}async handleClickOutside(){var i;if(this.areMultiplePopoverAllowed())return;let t=this.layout.querySelector(`${a$a.tag}[data-on-foreground="true"]`);if(!t)return;let e=(i=t.dataset.identifier)==null?void 0:i.replace("-annotation","-highlight"),o=this.layout.querySelector(`[data-identifier="${e}"]`);o&&await this.hideBarcodeCheckPopover(t,o);}onInfoAnnotationTap(){this.presenter.emitTappedFeedback();}async showBarcodeCheckPopover(t,e){t.dataset.onForeground="true",t.hidden=!1,e.dataset.onForeground="true",this.backdrop.open=!0;}async hideBarcodeCheckPopover(t,e,o=!0){t.dataset.onForeground="false",t.hidden=!0,e&&(e.dataset.onForeground="false"),o&&this.hideBackdropIfNoPopovers();}hideBackdropIfNoPopovers(){[...this.layout.querySelectorAll(`${a$a.tag}`)].every(e=>e.hidden)&&(this.backdrop.open=!1);}async toggleBarcodeCheckPopover(t,e){t.hidden?await this.showBarcodeCheckPopover(t,e):await this.hideBarcodeCheckPopover(t,e);}deleteAllViews(){for(let t of this.layout.querySelectorAll("[data-identifier]"))this.edgesObserver.unobserve(t),t.remove();}deletePendingViews(){for(let t of this.layout.querySelectorAll("[data-could-be-deleted='true']"))t.remove();this.hideBackdropIfNoPopovers();}identifierForHighlight(t){return `${t}-highlight`}identifierForAnnotation(t){return `${t}-annotation`}async onHighlightsOrAnnotationForTrackedBarcode(t){var e,o,i;await((o=(e=this.highlightProvider)!=null?e:M)==null?void 0:o.highlightForBarcode(t.barcode,async n=>this.onHighlight(t,n))),await((i=this.annotationProvider)==null?void 0:i.annotationForBarcode(t.barcode,async n=>this.onAnnotation(t,n)));}async onAnnotation(t,e){let o=e,i=a$b(t),n=this.queryAnnotationByDataId(i);if(n)n.dataset.couldBeDeleted="false";else {if(o.dataset.id=i,o.dataset.identifier=this.identifierForAnnotation(t.identifier),o.hidden=!0,this.layout.append(o),this.isPopoverAnnotation(o)){if(o.direction="vertical",o.anchor="top-center",this.edgesObserver.observe(o),this.areMultiplePopoverAllowed()||o.annotationTrigger==="highlightAndBarcodeScan"){let r=this.queryHighlightByDataId(i);if(!r)return;this.showBarcodeCheckPopover(o,r);}}else {let r=o;r.hidden=r.annotationTrigger==="highlightTap";}this.updateAnnotationPosition(t,o);}}async onHighlight(t,e){let o=a$b(t),i=this.queryHighlightByDataId(o);i?i.dataset.couldBeDeleted="false":(e.dataset.id=o,e.dataset.identifier=this.identifierForHighlight(t.identifier),this.updateHighlightPosition(t,e),this.layout.append(e));}queryHighlightByDataIdentifier(t){return this.layout.querySelector(`[data-identifier$="${t}-highlight"]`)}queryAnnotationByDataIdentifier(t){return this.layout.querySelector(`[data-identifier$="${t}-annotation"]`)}queryHighlightByDataId(t){return this.layout.querySelector(`[data-identifier$="-highlight"][data-id="${t}"]`)}queryAnnotationByDataId(t){return this.layout.querySelector(`[data-identifier$="-annotation"][data-id="${t}"]`)}updateRemovedTrackedBarcodes(t){var i,n,r,p,u;let e=this.querySelectorAll("[data-identifier]");if(Object.keys(t.allTrackedBarcodes).length===0){for(let l of e)l.dataset.couldBeDeleted="true";(i=this.pendingDeletionTimeout)!=null&&i.running||(n=this.pendingDeletionTimeout)==null||n.start();return}let o=new Set(t.removedTrackedBarcodes);for(let l of e){let a=(r=l.dataset.identifier)==null?void 0:r.replace("-highlight","").replace("-annotation","");a!=null&&o.has(a)&&(l.dataset.couldBeDeleted="true");}(p=this.pendingDeletionTimeout)!=null&&p.running||(u=this.pendingDeletionTimeout)==null||u.start();}render(t){for(let[e,o]of Object.entries(t.allTrackedBarcodes)){t.addedTrackedBarcodes[e]!=null&&this.onHighlightsOrAnnotationForTrackedBarcode(o);let i=a$b(o),n=this.queryAnnotationByDataId(i),r=this.queryHighlightByDataId(i);r&&(r.type==="rectangle"&&this.updateBrushSize(r,o),this.updateHighlightPosition(o,r)),n&&r&&this.updateAnnotationPosition(o,n,r);}this.updateRemovedTrackedBarcodes(t);}updateHighlightPosition(t,e,o="center"){if(e.hidden)return;let i=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(t.anchorPositions),n=this.normalizedViewPointFromFrameAnchorPositions(i,o);this.setPosition(e,n,{x:-50,y:-50},this.calculateRotationAngle(i.topLeft,i.topRight));}updateBrushSize(t,e){let o=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(e.anchorPositions),i=Math.round(calculateWidth(o)),n=Math.round(calculateHeight(o));t.type==="rectangle"&&(t.width!==i&&(t.width=i),t.height!==n&&(t.height=n));}getTransformOrigin(t){return {"top-center":{x:-50,y:0},"bottom-center":{x:-50,y:-100},"left-center":{x:0,y:-50},"right-center":{x:-100,y:-50}}[t]}calculateAnnotationPosition(t,e,o){var l;let n=t.orderVerticesByPosition(),r=this.normalizedViewPointFromFrameAnchorPositions(t,"center"),u={"bottom-center":()=>{let a=this.normalizedViewPointFromFrameAnchorPositions(n,"topCenter");return new Point(a.x,a.y-7)},"top-center":()=>{let a=this.normalizedViewPointFromFrameAnchorPositions(n,"bottomCenter");return new Point(a.x,a.y+7)},"right-center":()=>{let a=this.normalizedViewPointFromFrameAnchorPositions(n,"centerLeft");return new Point(a.x-7,a.y)},"left-center":()=>{let a=this.normalizedViewPointFromFrameAnchorPositions(n,"centerRight");return new Point(a.x+7,a.y)}}[e]();return (o==null?void 0:o.type)==="circle"&&(l={"bottom-center":new Point(r.x,r.y-7-o.clientHeight/2),"top-center":new Point(r.x,r.y+7+o.clientHeight/2),"right-center":new Point(r.x-7-o.clientWidth/2,r.y),"left-center":new Point(r.x+7+o.clientWidth/2,r.y)}[e])!=null?l:u}updateAnnotationPosition(t,e,o){if(e.hidden)return;let i=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(t.anchorPositions);e.anchor||(e.anchor="top-center");let n=this.getTransformOrigin(e.anchor),r=this.calculateAnnotationPosition(i,e.anchor,o);this.setPosition(e,r,n);}setPosition(t,e,o,i=0){t.style.position="absolute",t.style.willChange="transform",t.style.transform=`translate3d(calc(${Math.round(e.x)}px + ${o.x}%), calc(${Math.round(e.y)}px + ${o.y}%), 0px) rotate(${i}deg)`;}getTouchedEdges(t,e){let o=t.top<=e.top,i=t.bottom>=e.bottom,n=t.left<=e.left,r=t.right>=e.right;return {top:o,bottom:i,left:n,right:r}}normalizedViewPointFromFrameAnchorPositions(t,e="center"){let o=this.presenter.currentCamera.getMirrorImageEnabled(),i=new Size(this.dataCaptureView.width,this.dataCaptureView.height);if(o){let r=t[{centerLeft:"centerRight",centerRight:"centerLeft",center:"center",topCenter:"topCenter",bottomCenter:"bottomCenter"}[e]];return Point.mirrorX(r,i)}return t[e]}calculateRotationAngle(t,e){let o=e.x-t.x,i=-(e.y-t.y),n=Math.atan2(i,o);return Math.round(n*(180/Math.PI))}};c.tag="scandit-barcode-check-view";var E=c;export{E as a};
|
|
1
|
+
import {a as a$8}from'./chunk-CONYPETL.js';import {c as c$1,b,a as a$9,d}from'./chunk-A2FMQ67Y.js';import {a}from'./chunk-UHJ3O2ZT.js';import {a as a$5}from'./chunk-BBJPGTUG.js';import {a as a$6}from'./chunk-WL3PKWFT.js';import {a as a$a}from'./chunk-5N7ZBGWC.js';import {a as a$c}from'./chunk-Y2XISTOT.js';import {a as a$7}from'./chunk-JKO4EZPZ.js';import {a as a$b}from'./chunk-PWPSTL4C.js';import {a as a$2}from'./chunk-Q75IAMGN.js';import {a as a$4}from'./chunk-4XFE7YMP.js';import {a as a$1}from'./chunk-I53W7VSB.js';import {a as a$3}from'./chunk-YXSXALVA.js';import {Anchor,DataCaptureView,Point,Size}from'@scandit/web-datacapture-core';import {ScanditHTMLElement}from'@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js';import {css}from'@scandit/web-datacapture-core/build/js/private/utils/css.js';import {defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js';import {calculateWidth,calculateHeight}from'@scandit/web-datacapture-core/build/js/private/utils/quadrilateralUtils.js';import {Timeout}from'@scandit/web-datacapture-core/build/js/private/utils/timeout.js';var M={async highlightForBarcode(L,A){let t=a$c.create(L);A(t);}},c=class c extends ScanditHTMLElement{constructor(){super(...arguments);this.torchIconButton=null;this.cameraSwitchButton=null;this.zoomButton=null;this.onTorchButtonClickHandler=this.onTorchButtonClick.bind(this);this.onCameraSwitchButtonHandler=this.onCameraSwitchButtonClick.bind(this);this.onZoomButtonHandler=this.onZoomButtonClick.bind(this);this.onLayoutPointerDownHandler=this.onLayoutPointerDown.bind(this);this.onInfoAnnotationTapHandler=this.onInfoAnnotationTap.bind(this);this.onEdgesIntersectionObserverHandler=this.onEdgesIntersectionObserver.bind(this);this.pendingDeletionTimeout=null;}set shouldShowZoomControl(t){this.zoomButton&&(this.zoomButton.hidden=!t);}get shouldShowZoomControl(){return this.zoomButton===null?!1:!this.zoomButton.hidden}set shouldShowCameraSwitchControl(t){this.cameraSwitchButton&&(this.cameraSwitchButton.hidden=!t);}get shouldShowCameraSwitchControl(){return this.cameraSwitchButton===null?!1:!this.cameraSwitchButton.hidden}set shouldShowTorchControl(t){this.torchIconButton!==null&&(this.torchIconButton.hidden=!t);}get shouldShowTorchControl(){return this.torchIconButton===null?!1:!this.torchIconButton.hidden}set torchControlPosition(t){var e;(e=this.torchIconButton)==null||e.setAttribute("slot",`controls-${t===Anchor.Center?Anchor.TopLeft:t}`);}get torchControlPosition(){var e,o;let t=(o=(e=this.torchIconButton)==null?void 0:e.getAttribute("slot"))!=null?o:"";return t===""?Anchor.TopLeft:t.replace("controls-","")}set zoomControlPosition(t){var e;(e=this.zoomButton)==null||e.setAttribute("slot",`controls-${t===Anchor.Center?Anchor.BottomRight:t}`);}get zoomControlPosition(){var e,o;let t=(o=(e=this.zoomButton)==null?void 0:e.getAttribute("slot"))!=null?o:"";return t===""?Anchor.BottomRight:t.replace("controls-","")}set cameraSwitchControlPosition(t){var e;(e=this.cameraSwitchButton)==null||e.setAttribute("slot",`controls-${t===Anchor.Center?Anchor.TopRight:t}`);}get cameraSwitchControlPosition(){var e,o;let t=(o=(e=this.zoomButton)==null?void 0:e.getAttribute("slot"))!=null?o:"";return t===""?Anchor.TopRight:t.replace("controls-","")}static async createWithSettings(t,e,o,i,n){c.register();let r=document.createElement(c.tag);return r.barcodeCheckViewSettings=i,r.layout=a.create(),r.append(r.layout),a$1(t)?(r.dataCaptureView=t,r.dataCaptureView.containerElement.prepend(r),await t.setContext(e)):(r.dataCaptureView=await DataCaptureView.forContext(e),r.dataCaptureView.connectToElement(t),r.dataCaptureView.containerElement.prepend(r)),r.presenter=new a$2(r,e,o,i,n!=null?n:a$3.createRecommendedCameraSettings()),await r.presenter.prepare(),r}static async create(t,e,o){return c.createWithSettings(t,e,o,new a$4)}static register(){defineCustomElements({[a.tag]:a,[a$5.tag]:a$5,[a$6.tag]:a$6,[a$7.tag]:a$7,[c.tag]:c,[a$8.tag]:a$8});}static createStyleElement(){return css`[data-could-be-deleted=true]{display:none!important}[data-on-foreground=true]{z-index:3}${c.tag}{inset:0;position:absolute;z-index:1}`}async start(){return this.presenter.startSearching()}async stop(){return this.presenter.stopSearching()}async pause(){return this.presenter.pauseSearching()}reset(){this.deletePendingViews(),this.deleteAllViews();}toggleTorchIcon(t){this.torchIconButton!==null&&(this.torchIconButton.state=t);}onTorchButtonClick(){this.presenter.onTorchButtonClicked();}onCameraSwitchButtonClick(){this.presenter.onCameraSwitchButtonClicked();}onZoomButtonClick(){this.presenter.onZoomButtonClicked();}changeZoomButtonIcon(t){this.zoomButton&&(this.zoomButton.zoom=`${t}x`);}isValidIntersectionEntry(t){return t.rootBounds!=null&&!t.target.hidden}edgeObserverLandscapeLogic(t,e){t.direction="horizontal",(!t.anchor||c$1(t.anchor))&&(t.anchor=e.left?"left-center":"right-center"),e.left?t.anchor="left-center":e.right&&(t.anchor="right-center");}edgeObserverPortraitLogic(t,e){let o=e.bottom||e.top,i=e.left||e.right;o?(t.direction="vertical",t.anchor=e.bottom?"bottom-center":"top-center"):i&&(t.anchor!=null&&b(t.direction)&&c$1(t.anchor)?(t.anchor=e.left?"left-center":"right-center",t.direction="horizontal"):t.anchor!=null&&a$9(t.direction)&&d(t.anchor)&&(e.left&&t.anchor==="left-center"||e.right&&t.anchor==="right-center"||(t.anchor="top-center",t.direction="vertical")));}onEdgesIntersectionObserver(t){for(let e of t){let o=e.target;if(!this.isPopoverAnnotation(o)||!this.isValidIntersectionEntry(e))continue;let{boundingClientRect:i,rootBounds:n}=e,r=this.getTouchedEdges(i,n);!!(n!=null&&n.width&&(n!=null&&n.height)&&(n==null?void 0:n.width)>(n==null?void 0:n.height))?this.edgeObserverLandscapeLogic(o,r):this.edgeObserverPortraitLogic(o,r);}}connectedCallback(){this.torchIconButton=a$7.create(),this.torchIconButton.slot=`controls-${this.torchControlPosition}`,this.torchIconButton.hidden=!0,this.torchIconButton.addEventListener("pointerdown",this.onTorchButtonClickHandler),this.cameraSwitchButton=a$5.create(),this.cameraSwitchButton.slot=`controls-${this.cameraSwitchControlPosition}`,this.cameraSwitchButton.hidden=!0,this.cameraSwitchButton.addEventListener("pointerdown",this.onCameraSwitchButtonHandler),this.zoomButton=a$6.create(),this.zoomButton.slot=`controls-${this.zoomControlPosition}`,this.zoomButton.hidden=!0,this.zoomButton.addEventListener("pointerdown",this.onZoomButtonHandler),this.layout.append(this.torchIconButton,this.cameraSwitchButton,this.zoomButton),this.layout.addEventListener("pointerdown",this.onLayoutPointerDownHandler),this.layout.addEventListener("BarcodeCheckInfoAnnotationEventTap",this.onInfoAnnotationTapHandler),this.backdrop=a$8.create(),this.layout.append(this.backdrop),this.edgesObserver=new IntersectionObserver(this.onEdgesIntersectionObserverHandler,{root:this,threshold:[1,.75,.5,.25,0],rootMargin:"0px"}),this.pendingDeletionTimeout=new Timeout(1e3,()=>{this.deletePendingViews();}),this.prepend(c.createStyleElement());}disconnectedCallback(){var t,e,o;this.deleteAllViews(),(t=this.torchIconButton)==null||t.removeEventListener("pointerdown",this.onTorchButtonClickHandler),(e=this.cameraSwitchButton)==null||e.removeEventListener("pointerdown",this.onCameraSwitchButtonHandler),(o=this.zoomButton)==null||o.removeEventListener("pointerdown",this.onZoomButtonHandler),this.layout.removeEventListener("pointerdown",this.onLayoutPointerDownHandler),this.layout.removeEventListener("BarcodeCheckInfoAnnotationEventTap",this.onInfoAnnotationTapHandler),this.edgesObserver.disconnect();}isPopoverAnnotation(t){return t instanceof a$a}areMultiplePopoverAllowed(){for(let t of this.layout.querySelectorAll(`${a$a.tag}`))if(t&&this.isPopoverAnnotation(t)&&t.annotationTrigger==="highlightAndBarcodeScan")return !0;return !1}async onLayoutPointerDown(t){let e=t.target,o=e==null?void 0:e.closest("[data-identifier$='-highlight']"),i=e==null?void 0:e.closest(a$a.tag);if((o==null?void 0:o.dataset.id)!=null){await this.handleHighlightClick(o);return}if((i==null?void 0:i.dataset.id)!=null){await this.handleAnnotationClick(i);return}await this.handleClickOutside();}async handleHighlightClick(t){this.presenter.emitTappedFeedback();let e=this.queryAnnotationByDataIdentifier(t.dataset.identifier.replace("-highlight",""));e&&(e instanceof a$a?await this.handlePopoverHighlightClick(e,t):e.hidden=!e.hidden);}async handlePopoverHighlightClick(t,e){var o;if(!this.areMultiplePopoverAllowed()){let i=this.layout.querySelector(`${a$a.tag}[data-on-foreground="true"]`),n=(o=i==null?void 0:i.dataset.identifier)==null?void 0:o.replace("-annotation","-highlight"),r=this.layout.querySelector(`[data-identifier="${n}"]`);i!=null&&r!=null&&await this.hideBarcodeCheckPopover(i,r,!1);}await this.toggleBarcodeCheckPopover(t,e),this.edgesObserver.unobserve(t),this.edgesObserver.observe(t);}async handleAnnotationClick(t){var i;let e=(i=t.dataset.identifier)==null?void 0:i.replace("-annotation","-highlight"),o=this.layout.querySelector(`[data-identifier="${e}"]`);o&&await this.toggleBarcodeCheckPopover(t,o);}async handleClickOutside(){var i;if(this.areMultiplePopoverAllowed())return;let t=this.layout.querySelector(`${a$a.tag}[data-on-foreground="true"]`);if(!t)return;let e=(i=t.dataset.identifier)==null?void 0:i.replace("-annotation","-highlight"),o=this.layout.querySelector(`[data-identifier="${e}"]`);o&&await this.hideBarcodeCheckPopover(t,o);}onInfoAnnotationTap(){this.presenter.emitTappedFeedback();}async showBarcodeCheckPopover(t,e){t.dataset.onForeground="true",t.hidden=!1,e.dataset.onForeground="true",this.backdrop.open=!0;}async hideBarcodeCheckPopover(t,e,o=!0){t.dataset.onForeground="false",t.hidden=!0,e&&(e.dataset.onForeground="false"),o&&this.hideBackdropIfNoPopovers();}hideBackdropIfNoPopovers(){[...this.layout.querySelectorAll(`${a$a.tag}`)].every(e=>e.hidden)&&(this.backdrop.open=!1);}async toggleBarcodeCheckPopover(t,e){t.hidden?await this.showBarcodeCheckPopover(t,e):await this.hideBarcodeCheckPopover(t,e);}deleteAllViews(){for(let t of this.layout.querySelectorAll("[data-identifier]"))this.edgesObserver.unobserve(t),t.remove();}deletePendingViews(){for(let t of this.layout.querySelectorAll("[data-could-be-deleted='true']"))t.remove();this.hideBackdropIfNoPopovers();}identifierForHighlight(t){return `${t}-highlight`}identifierForAnnotation(t){return `${t}-annotation`}async onHighlightsOrAnnotationForTrackedBarcode(t){var e,o,i;await((o=(e=this.highlightProvider)!=null?e:M)==null?void 0:o.highlightForBarcode(t.barcode,async n=>this.onHighlight(t,n))),await((i=this.annotationProvider)==null?void 0:i.annotationForBarcode(t.barcode,async n=>this.onAnnotation(t,n)));}async onAnnotation(t,e){let o=e,i=a$b(t),n=this.queryAnnotationByDataId(i);if(n)n.dataset.couldBeDeleted="false";else {if(o.dataset.id=i,o.dataset.identifier=this.identifierForAnnotation(t.identifier),o.hidden=!0,this.layout.append(o),this.isPopoverAnnotation(o)){if(o.direction="vertical",o.anchor="top-center",this.edgesObserver.observe(o),this.areMultiplePopoverAllowed()||o.annotationTrigger==="highlightAndBarcodeScan"){let r=this.queryHighlightByDataId(i);if(!r)return;this.showBarcodeCheckPopover(o,r);}}else {let r=o;r.hidden=r.annotationTrigger==="highlightTap";}this.updateAnnotationPosition(t,o);}}async onHighlight(t,e){let o=a$b(t),i=this.queryHighlightByDataId(o);i?i.dataset.couldBeDeleted="false":(e.dataset.id=o,e.dataset.identifier=this.identifierForHighlight(t.identifier),this.updateHighlightPosition(t,e),this.layout.append(e));}queryHighlightByDataIdentifier(t){return this.layout.querySelector(`[data-identifier$="${t}-highlight"]`)}queryAnnotationByDataIdentifier(t){return this.layout.querySelector(`[data-identifier$="${t}-annotation"]`)}queryHighlightByDataId(t){return this.layout.querySelector(`[data-identifier$="-highlight"][data-id="${t}"]`)}queryAnnotationByDataId(t){return this.layout.querySelector(`[data-identifier$="-annotation"][data-id="${t}"]`)}updateRemovedTrackedBarcodes(t){var i,n,r,p,u;let e=this.querySelectorAll("[data-identifier]");if(Object.keys(t.allTrackedBarcodes).length===0){for(let l of e)l.dataset.couldBeDeleted="true";(i=this.pendingDeletionTimeout)!=null&&i.running||(n=this.pendingDeletionTimeout)==null||n.start();return}let o=new Set(t.removedTrackedBarcodes);for(let l of e){let a=(r=l.dataset.identifier)==null?void 0:r.replace("-highlight","").replace("-annotation","");a!=null&&o.has(a)&&(l.dataset.couldBeDeleted="true");}(p=this.pendingDeletionTimeout)!=null&&p.running||(u=this.pendingDeletionTimeout)==null||u.start();}render(t){for(let[e,o]of Object.entries(t.allTrackedBarcodes)){t.addedTrackedBarcodes[e]!=null&&this.onHighlightsOrAnnotationForTrackedBarcode(o);let i=a$b(o),n=this.queryAnnotationByDataId(i),r=this.queryHighlightByDataId(i);r&&(r.type==="rectangle"&&this.updateBrushSize(r,o),this.updateHighlightPosition(o,r)),n&&r&&this.updateAnnotationPosition(o,n,r);}this.updateRemovedTrackedBarcodes(t);}updateHighlightPosition(t,e,o="center"){if(e.hidden)return;let i=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(t.anchorPositions),n=this.normalizedViewPointFromFrameAnchorPositions(i,o);this.setPosition(e,n,{x:-50,y:-50},this.calculateRotationAngle(i.topLeft,i.topRight));}updateBrushSize(t,e){let o=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(e.anchorPositions),i=Math.round(calculateWidth(o)),n=Math.round(calculateHeight(o));t.type==="rectangle"&&(t.width!==i&&(t.width=i),t.height!==n&&(t.height=n));}getTransformOrigin(t){return {"top-center":{x:-50,y:0},"bottom-center":{x:-50,y:-100},"left-center":{x:0,y:-50},"right-center":{x:-100,y:-50}}[t]}calculateAnnotationPosition(t,e,o){var l;let n=t.orderVerticesByPosition(),r=this.normalizedViewPointFromFrameAnchorPositions(t,"center"),u={"bottom-center":()=>{let a=this.normalizedViewPointFromFrameAnchorPositions(n,"topCenter");return new Point(a.x,a.y-7)},"top-center":()=>{let a=this.normalizedViewPointFromFrameAnchorPositions(n,"bottomCenter");return new Point(a.x,a.y+7)},"right-center":()=>{let a=this.normalizedViewPointFromFrameAnchorPositions(n,"centerLeft");return new Point(a.x-7,a.y)},"left-center":()=>{let a=this.normalizedViewPointFromFrameAnchorPositions(n,"centerRight");return new Point(a.x+7,a.y)}}[e]();return (o==null?void 0:o.type)==="circle"&&(l={"bottom-center":new Point(r.x,r.y-7-o.clientHeight/2),"top-center":new Point(r.x,r.y+7+o.clientHeight/2),"right-center":new Point(r.x-7-o.clientWidth/2,r.y),"left-center":new Point(r.x+7+o.clientWidth/2,r.y)}[e])!=null?l:u}updateAnnotationPosition(t,e,o){if(e.hidden)return;let i=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(t.anchorPositions);e.anchor||(e.anchor="top-center");let n=this.getTransformOrigin(e.anchor),r=this.calculateAnnotationPosition(i,e.anchor,o);this.setPosition(e,r,n);}setPosition(t,e,o,i=0){t.style.position="absolute",t.style.willChange="transform",t.style.transform=`translate3d(calc(${Math.round(e.x)}px + ${o.x}%), calc(${Math.round(e.y)}px + ${o.y}%), 0px) rotate(${i}deg)`;}getTouchedEdges(t,e){let o=t.top<=e.top,i=t.bottom>=e.bottom,n=t.left<=e.left,r=t.right>=e.right;return {top:o,bottom:i,left:n,right:r}}normalizedViewPointFromFrameAnchorPositions(t,e="center"){let o=this.presenter.currentCamera.getMirrorImageEnabled(),i=new Size(this.dataCaptureView.width,this.dataCaptureView.height);if(o){let r=t[{centerLeft:"centerRight",centerRight:"centerLeft",center:"center",topCenter:"topCenter",bottomCenter:"bottomCenter"}[e]];return Point.mirrorX(r,i)}return t[e]}calculateRotationAngle(t,e){let o=e.x-t.x,i=-(e.y-t.y),n=Math.atan2(i,o);return Math.round(n*(180/Math.PI))}};c.tag="scandit-barcode-check-view";var E=c;export{E as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-QHNNJFNX.js';import {b}from'./chunk-2RKBANN2.js';import {CameraSettings,convertToPublicFrameData,Logger}from'@scandit/web-datacapture-core';var p=class c{constructor(){this.type="sparkScan";this._synchronousFrameFlow=!1;this._isEnabled=!0;this._isSuppressed=!1;this._context=null;this.listeners=new Set;this.allowedRemainingWorkerMessages=new Set;this.workerMessageListener=this.onWorkerMessage.bind(this);}static get recommendedCameraSettings(){return new CameraSettings(b.SparkScan.CameraSettings.settings)}get context(){return this._context}static forSettings(e){let a=new c;return a.settings=e,a}isEnabled(){return this._isEnabled&&!this._isSuppressed}async setEnabled(e){this._isEnabled=e,await this.notifyContext();}async setResultSuppressionEnabled(e){this._isSuppressed=e,await this.notifyContext();}async applySettings(e){return this.settings=e,this.notifyContext()}addListener(e){this.listeners.add(e);}removeListener(e){this.listeners.delete(e);}toJSONObject(){return {type:this.type,enabled:this._isEnabled,settings:this.settings.toJSONObject(),isSuppressed:this._isSuppressed}}async workerCommand(e,a){this.context&&await this.context.workerCommand(e,a);}attachedToContext(e){this._context=e,this._context.subscribeToWorkerMessages(this.workerMessageListener);}async detachedFromContext(){var e;(e=this._context)==null||e.unsubscribeToWorkerMessages(this.workerMessageListener),this._context=null;}sendClearFrameDataRequest(e){queueMicrotask(()=>{var a;console.log("sendClearFrameDataRequest: queueMicrotask"),(a=this.context)==null||a.workerCommand("deleteFrameData",{frameId:e});});}async onDidScan(e){if(this.context==null)return;let{frameData:a$1}=e.payload;if(!this._isEnabled){this.sendClearFrameDataRequest(a$1.frameId),this.allowedRemainingWorkerMessages.clear();return}this.allowedRemainingWorkerMessages.add("successFeedback");let t=[],s=a.fromJSON(e.payload.session);for(let r of this.listeners)if(r.didScan)try{let i=r.didScan(this,s,convertToPublicFrameData(a$1,this.context));i instanceof Promise&&await i;}catch(i){t.push(i);}this.sendClearFrameDataRequest(a$1.frameId),this.allowedRemainingWorkerMessages.add("sparkScanDidUpdateSession");for(let r of t)Logger.error(r);}onDidUpdateSession(e){var t;if(!this._isEnabled&&!this.allowedRemainingWorkerMessages.has(e.type))return;this.allowedRemainingWorkerMessages.delete(e.type);let a$1=a.fromJSON(e.payload);for(let s of this.listeners)(t=s.didUpdateSession)==null||t.call(s,this,a$1);}async onWorkerMessage(e){switch(e.type){case"sparkScanDidScan":{this.onDidScan(e);break}case"sparkScanDidUpdateSession":{this.onDidUpdateSession(e);break}}}async notifyContext(){this.context&&await this.context.update();}};export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-NENGQZSC.js';import {b}from'./chunk-2RKBANN2.js';import {Brush}from'@scandit/web-datacapture-core';var s=class o{constructor(){this.type="sparkScan";this._shouldShowScanAreaGuides=!1;this._shouldRemoveLocationsAfterScan=!0;this._shouldDrawViewfinder=!1;this._style=b.SparkScan.SparkScanOverlay.defaultStyle;this._viewfinder=new a;}get style(){return this._style}static async withSparkScanForView(a,r){let t=new o;return t.sparkScan=a,await t.setBrush(new Brush(b.SparkScan.SparkScanOverlay.DefaultBrush.fillColor,b.SparkScan.SparkScanOverlay.DefaultBrush.strokeColor,b.SparkScan.SparkScanOverlay.DefaultBrush.strokeWidth)),r&&await r.addOverlay(t),t}setRadius(a){this._viewfinder.radius=a;}getBrush(){return this._brush}async setBrush(a){this._brush=a,await this.sparkScan.notifyContext();}async overlayReadyForDraw(){await this.sparkScan.workerCommand("sparkScanOverlayReadyForDraw",{});}async setErrorBrush(a){this._errorBrush=a,await this.sparkScan.notifyContext();}async setShouldShowScanAreaGuides(a){this._shouldShowScanAreaGuides=a,await this.sparkScan.notifyContext();}async setShouldRemoveLocationsAfterScan(a){this._shouldRemoveLocationsAfterScan=a,await this.sparkScan.notifyContext();}async setShouldDrawViewfinder(a){this._shouldDrawViewfinder=a,await this.sparkScan.notifyContext();}shouldShowScanAreaGuides(){return this._shouldShowScanAreaGuides}shouldRemoveLocationsAfterScan(){return this._shouldRemoveLocationsAfterScan}toJSONObject(){var a,r;return {type:this.type,brush:this._brush.toJSONObject(),errorBrush:(r=(a=this._errorBrush)==null?void 0:a.toJSONObject())!=null?r:this._brush.toJSONObject(),shouldShowScanAreaGuides:this._shouldShowScanAreaGuides,shouldRemoveLocationsAfterScan:this._shouldRemoveLocationsAfterScan,viewfinder:this._viewfinder.toJSONObject(),style:this.style,shouldDrawViewfinder:this._shouldDrawViewfinder}}};export{s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-EYEU6COK.js';import {a}from'./chunk-LKZBVQXD.js';import {Localization}from'@scandit/web-datacapture-core';import {normalizeLibraryLocation}from'@scandit/web-datacapture-core/build/js/private/Helper.js';function b(r){return Localization.getInstance().updateIfMissing({...a}),r!=null&&r.libraryLocation&&(r.libraryLocation=normalizeLibraryLocation(r.libraryLocation)),{moduleName:"BarcodeCapture",load:async n=>{var e,o;let a=n;return await a$1.create({...a,libraryLocation:(e=r==null?void 0:r.libraryLocation)!=null?e:a.libraryLocation,highEndBlurryRecognition:(o=r==null?void 0:r.highEndBlurryRecognition)!=null?o:!1})}}}export{b as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-2RKBANN2.js';import {NumberWithUnit}from'@scandit/web-datacapture-core';var i=class{constructor(){this.radius=new NumberWithUnit(b.SparkScan.SparkScanSettings.locationSelection.radius,b.SparkScan.SparkScanSettings.locationSelection.unit);this.type="targetAimer";}toJSONObject(){return {type:this.type,radius:this.radius.toJSONObject()}}};export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-2RKBANN2.js';import {PrivateNoneLocationSelection}from'@scandit/web-datacapture-core';var p=class{constructor(){this.codeDuplicateFilter=b.BarcodeCapture.BarcodeCaptureSettings.codeDuplicateFilter;this.locationSelection=null;this.enabledCompositeTypes=[];this.scanIntention="manual";this.properties={};this.symbologies={};}get enabledSymbologies(){return Object.keys(this.symbologies).filter(e=>{var o;return (o=this.symbologies[e])==null?void 0:o.isEnabled})}get compositeTypeDescriptions(){return b.CompositeTypeDescriptions.reduce((e,o)=>(e[o.types[0]]=o,e),{})}settingsForSymbology(e){if(!this.symbologies[e]){let o=b.SymbologySettings[e];o._symbology=e,this.symbologies[e]=o;}return this.symbologies[e]}setProperty(e,o){this.properties[e]=o;}getProperty(e){return this.properties[e]}enableSymbologies(e){for(let o of e)this.enableSymbology(o,!0);}enableSymbology(e,o){this.settingsForSymbology(e).isEnabled=o;}enableSymbologiesForCompositeTypes(e){for(let o of e)this.enableSymbologies(this.compositeTypeDescriptions[o].symbologies);}toJSONObject(){var o,i,s;let e={};return {codeDuplicateFilter:this.codeDuplicateFilter,enabledCompositeTypes:[...this.enabledCompositeTypes],locationSelection:(i=(o=this.locationSelection)==null?void 0:o.toJSONObject())!=null?i:PrivateNoneLocationSelection,properties:{...this.properties},symbologies:Object.keys(this.symbologies).reduce((n,l)=>{var y;let r=(y=this.symbologies[l])==null?void 0:y.toJSONObject();return r&&(n[l]=r),n},e),scanIntention:(s=this.scanIntention)!=null?s:null}}};export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-H5VEANGI.js';import {b}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-H5VEANGI.js';import {b}from'./chunk-2RKBANN2.js';import {CameraSettings}from'@scandit/web-datacapture-core';import {warnMultithreadingUnavailable}from'@scandit/web-datacapture-core/build/js/private/utils/warnMultithreadingUnavailable.js';var o=class n{constructor(){this.type="barcodeTracking";this._isEnabled=!0;this._context=null;this.listeners=[];this.privateListeners=new Set;this.workerMessageListener=this.onWorkerMessage.bind(this);}static get recommendedCameraSettings(){let e=new CameraSettings(b.BarcodeBatch.RecommendedCameraSettings);return e.setProperty("grayScaleFrameReader",!0),e}get context(){return this._context}set context(e){this._context=e;}static async forContext(e,a){warnMultithreadingUnavailable();let t=new n;return t.settings=a,e!=null&&await e.addMode(t),t}isEnabled(){return this._isEnabled}async setEnabled(e){this._isEnabled=e,await this.notifyContext();}async applySettings(e){return this.settings=e,this.notifyContext()}addListener(e){this.listeners.includes(e)||this.listeners.push(e);}removeListener(e){this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}toJSONObject(){return {type:this.type,enabled:this._isEnabled,settings:this.settings.toJSONObject()}}attachedToContext(e){this._context=e,this._context.subscribeToWorkerMessages(this.workerMessageListener);}detachedFromContext(){var e;(e=this._context)==null||e.unsubscribeToWorkerMessages(this.workerMessageListener),this._context=null;}addPrivateListener(e){this.privateListeners.add(e);}removePrivateListener(e){this.privateListeners.delete(e);}async onWorkerMessage(e){var a$1;switch(e.type){case"barcodeBatchDidUpdateSession":{{let t=a.fromJSON(e.payload);if(!this._isEnabled)return;for(let r of [...this.privateListeners,...this.listeners])r.didUpdateSession&&r.didUpdateSession(this,t);}break}case"didTapTrackedBarcode":{for(let t of this.privateListeners)(a$1=t.didTapTrackedBarcode)==null||a$1.call(t,e.payload);break}}}async notifyContext(){if(this.context)return this.context.update()}};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-PXBSCUOI.js';import {TorchState,isCameraFrameSource,Camera,FrameSourceState,CameraPosition}from'@scandit/web-datacapture-core';var h=class{constructor(e,t,c,n,d){this.torchState=TorchState.Off;this.cameraSupportMap=new Map;this.zoomFactor=1;this.view=e,this.context=t,this.barcodeCheck=c,this.viewSettings=n,this.cameraSettings=d;}get currentCamera(){if(isCameraFrameSource(this.context.frameSource))return this.context.frameSource;throw new Error("The current frame source is not a Camera")}async prepare(){await this.barcodeCheck.setEnabled(!1),this.barcodeCheck.feedback=await a.createWithOptions(!0,!0),this.barcodeCheck.addPrivateListener(this);let e=Camera.atPosition(this.viewSettings.defaultCameraPosition);await this.context.setFrameSource(e),await this.currentCamera.applySettings(this.cameraSettings),await this.currentCamera.switchToDesiredState(FrameSourceState.Standby),this.zoomFactor=this.currentCamera.settings.zoomFactor,this.view.changeZoomButtonIcon(this.zoomFactor);}async dispose(){var e;this.view.deleteAllViews(),await this.context.removeMode(this.barcodeCheck),this.barcodeCheck.removePrivateListener(this),await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.Off));}async startSearching(){var e;this.view.deleteAllViews(),await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.On)),await this.barcodeCheck.setEnabled(!0),await this.barcodeCheck.start();}async stopSearching(){var e;this.view.deleteAllViews(),await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.Off)),await this.barcodeCheck.setEnabled(!1),await this.barcodeCheck.stop();}async pauseSearching(){var e;this.view.deletePendingViews(),await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.Standby)),await this.barcodeCheck.setEnabled(!1),await this.barcodeCheck.pause();}emitTappedFeedback(){this.barcodeCheck.feedback.tapped.emit();}didUpdateSession(e,t){Object.keys(t.addedTrackedBarcodes).length>0&&this.barcodeCheck.feedback.scanned.emit(),this.view.render(t);}async onTorchButtonClicked(){var e,t;this.cameraSupportMap.get(this.currentCamera.label)||this.cameraSupportMap.set(this.currentCamera.label,{torch:await this.currentCamera.isTorchAvailable()}),(t=(e=this.cameraSupportMap.get(this.currentCamera.label))==null?void 0:e.torch)!=null&&t&&(await this.currentCamera.setDesiredTorchState(this.torchState===TorchState.Off?TorchState.On:TorchState.Off),this.torchState=this.torchState===TorchState.Off?TorchState.On:TorchState.Off,this.view.toggleTorchIcon(this.torchState));}async onZoomButtonClicked(){var t;if(!this.currentCamera.isZoomAvailable())return;let e=(t={1:2,2:1}[this.zoomFactor])!=null?t:1;this.currentCamera.settings.zoomFactor=e,await this.currentCamera.applySettings(this.currentCamera.settings),this.zoomFactor=e,this.view.changeZoomButtonIcon(e);}async onCameraSwitchButtonClicked(){let e=this.currentCamera.getCurrentState(),t=Camera.atPosition(this.currentCamera.position===CameraPosition.UserFacing?CameraPosition.WorldFacing:CameraPosition.UserFacing);await this.context.setFrameSource(t),await this.currentCamera.switchToDesiredState(e);}};export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-DOA33NUL.js';import {b}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-DOA33NUL.js';import {b}from'./chunk-2RKBANN2.js';import {Brush}from'@scandit/web-datacapture-core';var h=(a=>(a.Frame="frame",a.Dot="dot",a))(h||{}),o=class c{constructor(){this.type="barcodeTrackingBasic";this._style=b.BarcodeBatch.BarcodeBatchBasicOverlay.defaultStyle;this._shouldShowScanAreaGuides=!1;this._brushesForBarcodes=new Map;}get style(){return this._style}get listener(){return this._listener}set listener(e){this._listener=e;}get brush(){return this._brush}static async withBarcodeBatch(e){return c.withBarcodeBatchForView(e,null)}static async withBarcodeBatchForView(e,a){return c.withBarcodeBatchForViewWithStyle(e,a,b.BarcodeBatch.BarcodeBatchBasicOverlay.defaultStyle)}static async withBarcodeBatchForViewWithStyle(e,a$1,s){let r=new c;return r.barcodeBatch=e,r._style=s,r._brush=new Brush(b.BarcodeBatch.BarcodeBatchBasicOverlay.styles[r.style].DefaultBrush.fillColor,b.BarcodeBatch.BarcodeBatchBasicOverlay.styles[r.style].DefaultBrush.strokeColor,b.BarcodeBatch.BarcodeBatchBasicOverlay.styles[r.style].DefaultBrush.strokeWidth),a$1&&await a$1.addOverlay(r),r.privateListener=new a(r),e.addPrivateListener(r.privateListener),r}async setBrush(e){this._brush=e,await this.barcodeBatch.notifyContext();}shouldShowScanAreaGuides(){return this._shouldShowScanAreaGuides}async setShouldShowScanAreaGuides(e){this._shouldShowScanAreaGuides=e,await this.barcodeBatch.notifyContext();}async setBrushForTrackedBarcode(e,a){this._brushesForBarcodes.set(a.identifier,e),await this.barcodeBatch.notifyContext();}async clearTrackedBarcodeBrushes(){this._brushesForBarcodes.clear(),await this.barcodeBatch.notifyContext();}toJSONObject(){return {type:this.type,brush:this._brush.toJSONObject(),shouldShowScanAreaGuides:this._shouldShowScanAreaGuides,style:this._style,brushesForBarcodes:[...this._brushesForBarcodes.entries()].reduce((e,[a,s])=>(e[a]=s.toJSONObject(),e),{})}}};export{h as a,o as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-2RKBANN2.js';import {Brush,NoViewfinder}from'@scandit/web-datacapture-core';var c=(e=>(e.Frame="frame",e))(c||{}),i=class o{constructor(){this.type="barcodeCapture";this._shouldShowScanAreaGuides=!1;this._shouldRemoveLocationsAfterScan=!0;this._style=b.BarcodeCapture.BarcodeCaptureOverlay.defaultStyle;this._viewfinder=null;}get style(){return this._style}static async withBarcodeCapture(e){return o.withBarcodeCaptureForView(e,null)}static async withBarcodeCaptureForView(e,a){return o.withBarcodeCaptureForViewWithStyle(e,a,b.BarcodeCapture.BarcodeCaptureOverlay.defaultStyle)}static async withBarcodeCaptureForViewWithStyle(e,a,u){let r=new o;return r.barcodeCapture=e,r._style=u,await r.setBrush(new Brush(b.BarcodeCapture.BarcodeCaptureOverlay.styles[r.style].DefaultBrush.fillColor,b.BarcodeCapture.BarcodeCaptureOverlay.styles[r.style].DefaultBrush.strokeColor,b.BarcodeCapture.BarcodeCaptureOverlay.styles[r.style].DefaultBrush.strokeWidth)),a&&await a.addOverlay(r),r}getBrush(){return this._brush}getViewfinder(){return this._viewfinder}async setBrush(e){this._brush=e,await this.barcodeCapture.notifyContext();}async setShouldShowScanAreaGuides(e){this._shouldShowScanAreaGuides=e,await this.barcodeCapture.notifyContext();}async setShouldRemoveLocationsAfterScan(e){this._shouldRemoveLocationsAfterScan=e,await this.barcodeCapture.notifyContext();}async setViewfinder(e){this._viewfinder=e,await this.barcodeCapture.notifyContext();}shouldShowScanAreaGuides(){return this._shouldShowScanAreaGuides}shouldRemoveLocationsAfterScan(){return this._shouldRemoveLocationsAfterScan}toJSONObject(){var e,a;return {type:this.type,brush:this._brush.toJSONObject(),drawLocalizedOnlyBarcodes:!1,shouldShowScanAreaGuides:this._shouldShowScanAreaGuides,shouldRemoveLocationsAfterScan:this._shouldRemoveLocationsAfterScan,viewfinder:(a=(e=this._viewfinder)==null?void 0:e.toJSONObject())!=null?a:NoViewfinder.toJSONObject(),style:this.style}}};export{c as a,i as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-2RKBANN2.js';var i=class{constructor(){this.properties={};this.symbologies={};}get enabledSymbologies(){return Object.keys(this.symbologies).filter(e=>this.symbologies[e].isEnabled)}settingsForSymbology(e){if(!this.symbologies[e]){let o=b.SymbologySettings[e];o._symbology=e,this.symbologies[e]=o;}return this.symbologies[e]}setProperty(e,o){this.properties[e]=o;}getProperty(e){return this.properties[e]}enableSymbologies(e){for(let o of e)this.enableSymbology(o,!0);}enableSymbology(e,o){this.settingsForSymbology(e).isEnabled=o;}toJSONObject(){return {properties:this.properties,symbologies:Object.keys(this.symbologies).reduce((e,o)=>(e[o]=this.symbologies[o].toJSONObject(),e),{})}}};export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=500,t=16,o=32,n=400,r=90;export{e as a,t as b,o as c,n as d,r as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c={"scandit-datacapture-sdk-barcode-pthreads.wasm":{bytes:6909996},"scandit-datacapture-sdk-barcode-simd.wasm":{bytes:6705881},"scandit-datacapture-sdk-barcode-simd-pthreads.wasm":{bytes:6826262},"scandit-datacapture-sdk-barcode.wasm":{bytes:6790067}};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-VIFEECK7.js';import {b}from'./chunk-43WBSXOM.js';import {a}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-VIFEECK7.js';import {b}from'./chunk-43WBSXOM.js';import {a}from'./chunk-PXBSCUOI.js';import {CameraSettings,convertToPublicFrameData}from'@scandit/web-datacapture-core';import {warnMultithreadingUnavailable}from'@scandit/web-datacapture-core/build/js/private/utils/warnMultithreadingUnavailable.js';var o=class c{constructor(){this.skipSerialization=!0;this.type="barcodeCheck";this._isEnabled=!0;this._context=null;this.listeners=new Set;this.privateListeners=new Set;this.workerMessageListener=this.onWorkerMessage.bind(this);}get context(){return this._context}static createRecommendedCameraSettings(){let e=new CameraSettings(b);return e.setProperty("grayScaleFrameReader",!0),e}set context(e){this._context=e;}get allListeners(){return [...this.privateListeners,...this.listeners]}static async forContext(e,a$1){warnMultithreadingUnavailable();let t=new c;return t.feedback=await a.createDefaultBarcodeCheckFeedback(),t.settings=a$1,await(e==null?void 0:e.addMode(t)),t}isEnabled(){return this._isEnabled}addListener(e){this.listeners.add(e);}removeListener(e){this.listeners.delete(e);}set feedback(e){this._feedback=e;}get feedback(){return this._feedback}async setEnabled(e){this._isEnabled=e,await this.workerCommand("barcodeCheckSetEnabled",{enabled:e});}async applySettings(e){this.settings=e,await this.workerCommand("barcodeCheckApplySettings",{settings:e.toJSONObject()});}toJSONObject(){return {type:this.type,enabled:this._isEnabled,settings:this.settings.toJSONObject()}}async attachedToContext(e){this._context=e,this._context.subscribeToWorkerMessages(this.workerMessageListener),await this.workerCommand("barcodeCheckForSettings",{settings:this.settings.toJSONObject()});}async detachedFromContext(){var e;await this.workerCommand("barcodeCheckModeRemove",{}),(e=this._context)==null||e.unsubscribeToWorkerMessages(this.workerMessageListener),this._context=null;}async start(){return this.workerCommand("barcodeCheckSearchStart",{})}async stop(){return this.workerCommand("barcodeCheckSearchStop",{})}async pause(){return this.workerCommand("barcodeCheckSearchPause",{})}async workerCommand(e,a){this.context!=null&&await this.context.workerCommand(e,a);}addPrivateListener(e){this.privateListeners.add(e);}removePrivateListener(e){this.privateListeners.delete(e);}async onWorkerMessage(e){var a;switch(e.type){case"barcodeCheckDidUpdateSession":{if(!this._isEnabled||!this._context)return;for(let t of this.allListeners)(a=t.didUpdateSession)==null||a.call(t,this,a$1.fromJSON(e.payload.session),convertToPublicFrameData(e.payload.frameData,this._context));break}}}};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeFind}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeFind}from'../chunks/chunk-5KVH2XIO.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeFindFeedback}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeFindFeedback}from'../chunks/chunk-75VI6EZ2.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as BarcodeFindPresenter,a as ViewState}from'../chunks/chunk-
|
|
1
|
+
export{b as BarcodeFindPresenter,a as ViewState}from'../chunks/chunk-IC4MKVBG.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeFindSettings}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeFindSettings}from'../chunks/chunk-TYVQVFM4.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeFindView}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeFindView}from'../chunks/chunk-GDK7SUKY.js';
|
package/build/js/find/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeFindView}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeFindView}from'../chunks/chunk-GDK7SUKY.js';export{a as BarcodeFind}from'../chunks/chunk-5KVH2XIO.js';export{a as BarcodeFindItem,c as BarcodeFindItemContent,b as BarcodeFindItemSearchOptions}from'../chunks/chunk-HTKUJZG2.js';export{a as BarcodeFindSettings}from'../chunks/chunk-TYVQVFM4.js';export{a as BarcodeFindViewSettings}from'../chunks/chunk-4PTIOBXM.js';
|
package/build/js/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as BarcodeCheckCircleHighlight,a as BarcodeCheckCircleHighlightPreset}from'./chunks/chunk-L6RFD252.js';export{a as BarcodeCheckStatusIconAnnotation}from'./chunks/chunk-3V5ISRFO.js';export{a as BarcodeStatusIconContainer}from'./chunks/chunk-BDRKVLLV.js';export{a as SparkScanView}from'./chunks/chunk-
|
|
1
|
+
export{b as BarcodeCheckCircleHighlight,a as BarcodeCheckCircleHighlightPreset}from'./chunks/chunk-L6RFD252.js';export{a as BarcodeCheckStatusIconAnnotation}from'./chunks/chunk-3V5ISRFO.js';export{a as BarcodeStatusIconContainer}from'./chunks/chunk-BDRKVLLV.js';export{a as SparkScanView}from'./chunks/chunk-BAOM24RT.js';export{a as SparkScanViewSettings}from'./chunks/chunk-BPHHLTR2.js';export{a as SparkScanViewState}from'./chunks/chunk-L6IZLBEM.js';export{a as SparkScanToastSettings}from'./chunks/chunk-BRRT6GC7.js';export{a as SparkScanPreviewBehavior}from'./chunks/chunk-DFK7AQTK.js';export{a as SparkScanScanningBehavior}from'./chunks/chunk-IMYBB4ZA.js';export{a as SparkScanScanningMode,b as SparkScanScanningModeDefault,c as SparkScanScanningModeTarget}from'./chunks/chunk-SZUPDKV5.js';export{a as SparkScanSettings}from'./chunks/chunk-2ZPG257B.js';export{a as BarcodeFindView}from'./chunks/chunk-GDK7SUKY.js';export{a as SparkScan}from'./chunks/chunk-KYQRFAWX.js';export{a as SparkScanSession}from'./chunks/chunk-QHNNJFNX.js';export{b as SparkScanBarcodeErrorFeedback,a as SparkScanBarcodeFeedback,c as SparkScanBarcodeSuccessFeedback}from'./chunks/chunk-HKWMKBIV.js';export{a as BarcodeFind}from'./chunks/chunk-5KVH2XIO.js';export{a as BarcodeFindItem,c as BarcodeFindItemContent,b as BarcodeFindItemSearchOptions}from'./chunks/chunk-HTKUJZG2.js';export{a as BarcodeFindSettings}from'./chunks/chunk-TYVQVFM4.js';export{a as BarcodeCheckSettings}from'./chunks/chunk-EISL6ITI.js';export{a as BarcodeCheckView}from'./chunks/chunk-JD32AETQ.js';export{a as BarcodeCheckPopoverAnnotation}from'./chunks/chunk-5N7ZBGWC.js';export{a as BarcodeCheckPopoverAnnotationButton}from'./chunks/chunk-65DU26S5.js';export{a as BarcodeCheckRectangleHighlight}from'./chunks/chunk-Y2XISTOT.js';export{d as BarcodeCheckInfoAnnotation,a as BarcodeCheckInfoAnnotationAnchor}from'./chunks/chunk-SN5VMVMZ.js';export{a as BarcodeCheckAnnotationTrigger}from'./chunks/chunk-ILGTNFTI.js';export{a as BarcodeCheckInfoAnnotationBodyComponent}from'./chunks/chunk-HFF47NXN.js';export{a as BarcodeCheckInfoAnnotationFooter}from'./chunks/chunk-5DXIU4KL.js';export{a as BarcodeCheckInfoAnnotationHeader}from'./chunks/chunk-DQW2EMPB.js';export{a as BarcodeCheckViewSettings}from'./chunks/chunk-4XFE7YMP.js';export{a as barcodeCaptureLoader}from'./chunks/chunk-MIZS6KM5.js';export{a as BarcodeCheck}from'./chunks/chunk-YXSXALVA.js';export{a as BarcodeCheckSession}from'./chunks/chunk-VIFEECK7.js';export{a as BarcodeCheckFeedback}from'./chunks/chunk-PXBSCUOI.js';export{b as BarcodeCaptureOverlay,a as BarcodeCaptureOverlayStyle}from'./chunks/chunk-SNJABJAZ.js';export{a as BarcodeCaptureSettings}from'./chunks/chunk-NNMXFRC2.js';export{a as ScanIntention}from'./chunks/chunk-NH3EDXZZ.js';export{a as BarcodeBatch}from'./chunks/chunk-OMY3KC7L.js';export{a as BarcodeBatchAdvancedOverlay}from'./chunks/chunk-2FBL4IXV.js';export{a as TrackedBarcodeView}from'./chunks/chunk-EVBEQBF5.js';export{b as BarcodeBatchBasicOverlay,a as BarcodeBatchBasicOverlayStyle}from'./chunks/chunk-R5ROT3AK.js';export{a as BarcodeBatchSession}from'./chunks/chunk-H5VEANGI.js';export{a as TrackedBarcode}from'./chunks/chunk-DORFGC2X.js';export{a as BarcodeBatchSettings}from'./chunks/chunk-I22E7AYH.js';export{a as BarcodeCapture}from'./chunks/chunk-J3I6TRKT.js';export{a as BarcodeCaptureSession}from'./chunks/chunk-FPZJIOQH.js';export{a as LocalizedOnlyBarcode}from'./chunks/chunk-MUX2WWWH.js';export{e as Barcode,c as Checksum,d as CompositeFlag,b as CompositeType,a as Symbology}from'./chunks/chunk-PE6EDL2S.js';export{a as StructuredAppendData}from'./chunks/chunk-IEE5MKEA.js';export{a as EncodingRange}from'./chunks/chunk-J4VFWBJ7.js';export{a as SparkScanMiniPreviewSize}from'./chunks/chunk-MVDPXLVX.js';export{a as BarcodeFindViewSettings}from'./chunks/chunk-4PTIOBXM.js';export{a as SymbologyDescription}from'./chunks/chunk-OEYNGWOX.js';export{a as Range}from'./chunks/chunk-7SWSAHI5.js';export{a as SymbologySettings}from'./chunks/chunk-LBAL6OCN.js';export{a as BarcodeCaptureFeedback}from'./chunks/chunk-WPSMXGDG.js';
|
package/build/js/moduleLoader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as barcodeCaptureLoader}from'./chunks/chunk-
|
|
1
|
+
export{a as barcodeCaptureLoader}from'./chunks/chunk-MIZS6KM5.js';
|
|
@@ -15,6 +15,7 @@ interface SparkScanListener {
|
|
|
15
15
|
type SparkScanJSON = DataCaptureModeJSON<SparkScanSettingsJSON>;
|
|
16
16
|
declare class SparkScan implements DataCaptureMode, Serializable<SparkScanJSON> {
|
|
17
17
|
private readonly type;
|
|
18
|
+
private _synchronousFrameFlow;
|
|
18
19
|
private _isEnabled;
|
|
19
20
|
private _isSuppressed;
|
|
20
21
|
private settings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScan}from'../chunks/chunk-
|
|
1
|
+
export{a as SparkScan}from'../chunks/chunk-KYQRFAWX.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as SparkScanBarcodeErrorFeedback,a as SparkScanBarcodeFeedback,c as SparkScanBarcodeSuccessFeedback}from'../chunks/chunk-
|
|
1
|
+
export{b as SparkScanBarcodeErrorFeedback,a as SparkScanBarcodeFeedback,c as SparkScanBarcodeSuccessFeedback}from'../chunks/chunk-HKWMKBIV.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanOverlay}from'../chunks/chunk-
|
|
1
|
+
export{a as SparkScanOverlay}from'../chunks/chunk-LCXQXE27.js';
|
|
@@ -16,8 +16,6 @@ interface SparkScanSettingsJSON {
|
|
|
16
16
|
declare class SparkScanSettings implements Serializable<SparkScanSettingsJSON> {
|
|
17
17
|
codeDuplicateFilter: number;
|
|
18
18
|
scanIntention?: ScanIntention;
|
|
19
|
-
private _scanIntention?;
|
|
20
|
-
private desiredScanIntention?;
|
|
21
19
|
private locationSelection;
|
|
22
20
|
private properties;
|
|
23
21
|
private symbologies;
|
|
@@ -29,9 +27,6 @@ declare class SparkScanSettings implements Serializable<SparkScanSettingsJSON> {
|
|
|
29
27
|
enableSymbologies(symbologies: Symbology[]): void;
|
|
30
28
|
enableSymbology(symbology: Symbology, enabled: boolean): void;
|
|
31
29
|
toJSONObject(): SparkScanSettingsJSON;
|
|
32
|
-
private setScanIntentionForTargetMode;
|
|
33
|
-
private enableTargetModeHiddenProperties;
|
|
34
|
-
private disableTargetModeHiddenProperties;
|
|
35
30
|
}
|
|
36
31
|
|
|
37
32
|
export { SparkScanSettings, type SparkScanSettingsJSON };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanSettings}from'../chunks/chunk-
|
|
1
|
+
export{a as SparkScanSettings}from'../chunks/chunk-2ZPG257B.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanTargetAimerViewfinder}from'../chunks/chunk-
|
|
1
|
+
export{a as SparkScanTargetAimerViewfinder}from'../chunks/chunk-NENGQZSC.js';
|
package/build/js/spark/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanView}from'../chunks/chunk-
|
|
1
|
+
export{a as SparkScanView}from'../chunks/chunk-BAOM24RT.js';export{a as SparkScanViewSettings}from'../chunks/chunk-BPHHLTR2.js';export{a as SparkScanViewState}from'../chunks/chunk-L6IZLBEM.js';export{a as SparkScanToastSettings}from'../chunks/chunk-BRRT6GC7.js';export{a as SparkScanPreviewBehavior}from'../chunks/chunk-DFK7AQTK.js';export{a as SparkScanScanningBehavior}from'../chunks/chunk-IMYBB4ZA.js';export{a as SparkScanScanningMode,b as SparkScanScanningModeDefault,c as SparkScanScanningModeTarget}from'../chunks/chunk-SZUPDKV5.js';export{a as SparkScanSettings}from'../chunks/chunk-2ZPG257B.js';export{a as SparkScan}from'../chunks/chunk-KYQRFAWX.js';export{a as SparkScanSession}from'../chunks/chunk-QHNNJFNX.js';export{b as SparkScanBarcodeErrorFeedback,a as SparkScanBarcodeFeedback,c as SparkScanBarcodeSuccessFeedback}from'../chunks/chunk-HKWMKBIV.js';export{a as SparkScanMiniPreviewSize}from'../chunks/chunk-MVDPXLVX.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanView}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanView}from'../../chunks/chunk-BAOM24RT.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanViewFeedbackManager}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanViewFeedbackManager}from'../../chunks/chunk-BG7VNYCV.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as SparkScanViewMiniPreview,a as SparkScanViewMiniPreviewButtonType}from'../../chunks/chunk-
|
|
1
|
+
export{b as SparkScanViewMiniPreview,a as SparkScanViewMiniPreviewButtonType}from'../../chunks/chunk-RMCPFLAA.js';
|
|
@@ -52,6 +52,10 @@ declare class SparkScanViewPresenter implements SparkScanListener, DataCaptureCo
|
|
|
52
52
|
get portraitOrientationMiniPreviewTranslateY(): number;
|
|
53
53
|
get landscapeOrientationMiniPreviewTranslateX(): number;
|
|
54
54
|
get landscapeOrientationMiniPreviewTranslateY(): number;
|
|
55
|
+
private get defaultTriggerButtonTranslateX();
|
|
56
|
+
private get defaultTriggerButtonTranslateY();
|
|
57
|
+
private get defaultMiniPreviewTranslateX();
|
|
58
|
+
private get defaultMiniPreviewTranslateY();
|
|
55
59
|
static forView(view: SparkScanView, context: DataCaptureContext, sparkScan: SparkScan, sparkScanViewSettings: SparkScanViewSettings): SparkScanViewPresenter;
|
|
56
60
|
prepareScanning(host: HTMLElement): Promise<void>;
|
|
57
61
|
startScanning(): Promise<void>;
|
|
@@ -90,8 +94,6 @@ declare class SparkScanViewPresenter implements SparkScanListener, DataCaptureCo
|
|
|
90
94
|
private switchToInactiveState;
|
|
91
95
|
private switchToErrorState;
|
|
92
96
|
private enableTargetModeLocationSelection;
|
|
93
|
-
private enableTargetModeScanIntention;
|
|
94
|
-
private enableTargetModeHiddenProperties;
|
|
95
97
|
private enableTargetMode;
|
|
96
98
|
private applyPreferences;
|
|
97
99
|
private setState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanViewPresenter}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanViewPresenter}from'../../chunks/chunk-63KZV5XE.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanViewSettings}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanViewSettings}from'../../chunks/chunk-BPHHLTR2.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanViewTriggerButton}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanViewTriggerButton}from'../../chunks/chunk-Y5LNDJE7.js';
|
|
@@ -2,5 +2,6 @@ declare const miniPreviewTimeoutDuration = 500;
|
|
|
2
2
|
declare const miniPreviewPadding = 16;
|
|
3
3
|
declare const miniPreviewPaddingPerAxis: number;
|
|
4
4
|
declare const triggerButtonLongPressTimeout = 400;
|
|
5
|
+
declare const triggerButtonCollapsedSize = 90;
|
|
5
6
|
|
|
6
|
-
export { miniPreviewPadding, miniPreviewPaddingPerAxis, miniPreviewTimeoutDuration, triggerButtonLongPressTimeout };
|
|
7
|
+
export { miniPreviewPadding, miniPreviewPaddingPerAxis, miniPreviewTimeoutDuration, triggerButtonCollapsedSize, triggerButtonLongPressTimeout };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as miniPreviewPadding,c as miniPreviewPaddingPerAxis,a as miniPreviewTimeoutDuration,d as triggerButtonLongPressTimeout}from'../../../chunks/chunk-
|
|
1
|
+
export{b as miniPreviewPadding,c as miniPreviewPaddingPerAxis,a as miniPreviewTimeoutDuration,e as triggerButtonCollapsedSize,d as triggerButtonLongPressTimeout}from'../../../chunks/chunk-VSL4PNMP.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanView}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanView}from'../../chunks/chunk-BAOM24RT.js';export{a as SparkScanViewTriggerButton}from'../../chunks/chunk-Y5LNDJE7.js';export{a as SparkScanViewVisualFeedback}from'../../chunks/chunk-C5GWADSL.js';export{b as SparkScanViewMiniPreview,a as SparkScanViewMiniPreviewButtonType}from'../../chunks/chunk-RMCPFLAA.js';export{a as SparkScanViewToolbar}from'../../chunks/chunk-YQNNEW67.js';export{a as SparkScanViewIcon}from'../../chunks/chunk-DOA2Q3CZ.js';export{a as SparkScanViewPresenter}from'../../chunks/chunk-63KZV5XE.js';export{a as SparkScanViewPreferenceManager}from'../../chunks/chunk-QCD3RIT4.js';export{a as SparkScanViewSettings}from'../../chunks/chunk-BPHHLTR2.js';export{a as SparkScanViewStateManager}from'../../chunks/chunk-OTZPCIBD.js';export{a as SparkScanViewState}from'../../chunks/chunk-L6IZLBEM.js';export{a as SparkScanViewToast}from'../../chunks/chunk-XSJEGOGN.js';export{a as SparkScanToastSettings}from'../../chunks/chunk-BRRT6GC7.js';export{a as SparkScanViewFeedbackManager}from'../../chunks/chunk-BG7VNYCV.js';export{a as SparkScanMiniPreviewSize}from'../../chunks/chunk-MVDPXLVX.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCaptureWorkerManager}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeCaptureWorkerManager}from'../chunks/chunk-EYEU6COK.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as WorkerMain}from'../chunks/chunk-
|
|
1
|
+
export{a as WorkerMain}from'../chunks/chunk-3RL3H42R.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'../chunks/chunk-
|
|
1
|
+
import {a}from'../chunks/chunk-3RL3H42R.js';new a(globalThis,{get:()=>globalThis.Module,set:e=>{globalThis.Module=e;}});function n(e){}export{n as InlineWorker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureEngine}from'../chunks/chunk-
|
|
1
|
+
export{a as DataCaptureEngine}from'../chunks/chunk-C53ZMSS3.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scandit/web-datacapture-barcode",
|
|
3
|
-
"version": "7.2.0-beta.
|
|
3
|
+
"version": "7.2.0-beta.2",
|
|
4
4
|
"description": "Scandit Data Capture SDK for the Web",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"test-ci-coverage": "jest --ci --coverage"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
|
-
"@scandit/web-datacapture-core": "7.2.0-beta.
|
|
96
|
+
"@scandit/web-datacapture-core": "7.2.0-beta.2"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
99
|
"@types/emscripten": "^1.39.13"
|
|
Binary file
|