@scandit/web-datacapture-barcode 7.5.0 → 7.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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.js +1 -1
- package/build/js/ar/BarcodeAr.js +1 -1
- package/build/js/ar/BarcodeArFeedback.js +1 -1
- package/build/js/ar/BarcodeArPresenter.js +1 -1
- package/build/js/ar/BarcodeArSettings.js +1 -1
- package/build/js/ar/BarcodeArView.js +1 -1
- package/build/js/ar/ui/atoms/BarcodeArInfoAnnotationFooter.js +1 -1
- package/build/js/ar/ui/atoms/BarcodeArInfoAnnotationHeader.js +1 -1
- package/build/js/ar/ui/atoms/private/BarcodeArInfoAnnotationHeaderFooterUtils.js +1 -1
- package/build/js/ar/ui/atoms/private/BarcodeStatusIconContainer.js +1 -1
- package/build/js/ar/ui/atoms/private/CssArrows.js +1 -1
- package/build/js/ar/ui/organisms/BarcodeArInfoAnnotation.js +1 -1
- package/build/js/ar/ui/organisms/BarcodeArPopoverAnnotation.js +1 -1
- package/build/js/ar/ui/organisms/BarcodeArPopoverAnnotationButton.js +1 -1
- package/build/js/ar/ui/organisms/BarcodeArResponsiveAnnotation.js +1 -1
- package/build/js/ar/ui/organisms/BarcodeArStatusIconAnnotation.js +1 -1
- package/build/js/chunks/chunk-2ASAIH4R.js +1 -0
- package/build/js/chunks/{chunk-EW4BAEBZ.js → chunk-2BRB72K6.js} +1 -1
- package/build/js/chunks/{chunk-LN6NHJTD.js → chunk-3UDJKVMP.js} +1 -1
- package/build/js/chunks/{chunk-NAHMBS3A.js → chunk-42Y6V4GC.js} +1 -1
- package/build/js/chunks/{chunk-UKOWYLLZ.js → chunk-4MCMAHRH.js} +1 -1
- package/build/js/chunks/{chunk-GT4V3BBH.js → chunk-5URXITXR.js} +1 -1
- package/build/js/chunks/{chunk-NW3BYZWA.js → chunk-6BTYJ5FK.js} +1 -1
- package/build/js/chunks/chunk-6KWMOMD7.js +1 -0
- package/build/js/chunks/{chunk-JKO4EZPZ.js → chunk-7GJVUU3G.js} +1 -1
- package/build/js/chunks/chunk-AHHVLMVN.js +1 -0
- package/build/js/chunks/{chunk-DGF7ODRH.js → chunk-B5IOSUX4.js} +1 -1
- package/build/js/chunks/{chunk-FRFBKO7R.js → chunk-CCW3WA5F.js} +1 -1
- package/build/js/chunks/{chunk-ZI75KHWU.js → chunk-EGQKRCPY.js} +1 -1
- package/build/js/chunks/{chunk-MAA4EROF.js → chunk-EWLALL5J.js} +1 -1
- package/build/js/chunks/chunk-F7NAOKPF.js +1 -0
- package/build/js/chunks/{chunk-WXR7X3J5.js → chunk-FBZ5PKNC.js} +2 -2
- package/build/js/chunks/{chunk-XTOFHCOV.js → chunk-FFISQQ67.js} +1 -1
- package/build/js/chunks/{chunk-ISEAB7YQ.js → chunk-GCYGJSSL.js} +1 -1
- package/build/js/chunks/{chunk-K3NQKPWC.js → chunk-GLJCW3XH.js} +1 -1
- package/build/js/chunks/chunk-HFXWQGKV.js +6 -0
- package/build/js/chunks/{chunk-ZF7YEGPW.js → chunk-HRQFPTLO.js} +1 -1
- package/build/js/chunks/{chunk-7MDNYMWU.js → chunk-JFBYWTLE.js} +1 -1
- package/build/js/chunks/{chunk-6BIERYLN.js → chunk-K4D6B66I.js} +1 -1
- package/build/js/chunks/{chunk-VINHRCNE.js → chunk-KCLART6S.js} +1 -1
- package/build/js/chunks/{chunk-O6JPGVIL.js → chunk-LR6JSIOR.js} +1 -1
- package/build/js/chunks/chunk-M7AZ5E5Z.js +1 -0
- package/build/js/chunks/{chunk-2A2DLPAB.js → chunk-OIFWCYQI.js} +1 -1
- package/build/js/chunks/{chunk-P4F5WUAR.js → chunk-ORLJNUNA.js} +1 -1
- package/build/js/chunks/{chunk-KICLFEZA.js → chunk-PQMKOSC7.js} +1 -1
- package/build/js/chunks/{chunk-5CKMOWBK.js → chunk-QCO6TK2S.js} +1 -1
- package/build/js/chunks/{chunk-ZQ3QRLEZ.js → chunk-QD4KRTNG.js} +1 -1
- package/build/js/chunks/chunk-QNZA644V.js +1 -0
- package/build/js/chunks/{chunk-I3E2HP2L.js → chunk-QO2O2C3A.js} +1 -1
- package/build/js/chunks/{chunk-6WNR57VU.js → chunk-QPIZWGIE.js} +1 -1
- package/build/js/chunks/{chunk-C3BYC73L.js → chunk-QSHIXKGN.js} +1 -1
- package/build/js/chunks/{chunk-WYDK7FDG.js → chunk-QWZ3XB2O.js} +1 -1
- package/build/js/chunks/{chunk-BZWA4BPU.js → chunk-QZGFNS2K.js} +1 -1
- package/build/js/chunks/{chunk-D66HVQKO.js → chunk-R2NJCFWO.js} +1 -1
- package/build/js/chunks/{chunk-VU7W53X2.js → chunk-RLKGZ42F.js} +1 -1
- package/build/js/chunks/{chunk-UZD5DJXU.js → chunk-S7ZLCH67.js} +1 -1
- package/build/js/chunks/{chunk-45M2WAHF.js → chunk-SIU6KWL7.js} +1 -1
- package/build/js/chunks/{chunk-5HCHOM4R.js → chunk-SZ3AQK6Y.js} +1 -1
- package/build/js/chunks/{chunk-NKRL5HIU.js → chunk-UCHREILA.js} +1 -1
- package/build/js/chunks/{chunk-Q7LPEF5X.js → chunk-VWW6BAVC.js} +1 -1
- package/build/js/chunks/{chunk-YWCXI7D5.js → chunk-XGY5EQR4.js} +1 -1
- package/build/js/chunks/chunk-XSBIVLTL.js +2 -0
- package/build/js/chunks/{chunk-NE5ADP4U.js → chunk-YD2VGEB5.js} +1 -1
- package/build/js/chunks/{chunk-YZS4FYM4.js → chunk-YWEQCCPA.js} +1 -1
- package/build/js/chunks/{chunk-ACNWENKW.js → chunk-ZWUKKWEI.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/find/ui/atoms/CardListButton.js +1 -1
- package/build/js/find/ui/molecules/CardListContainer.js +1 -1
- package/build/js/find/ui/molecules/ImageAndTextCardLayout.js +1 -1
- package/build/js/find/ui/molecules/TorchIconButton.js +1 -1
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.js +1 -1
- 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.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.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/SparkScanViewVisualFeedback.js +1 -1
- package/build/js/spark/ui/controllers/DragController.js +1 -1
- package/build/js/spark/ui/index.js +1 -1
- package/build/js/spark/ui/utils/html.js +1 -1
- package/build/js/worker/BarcodeCaptureWorkerManager.js +1 -1
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/barcodeCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/package.json +2 -2
- 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-62I36ZHW.js +0 -1
- package/build/js/chunks/chunk-DHCNYKSL.js +0 -1
- package/build/js/chunks/chunk-LAYALN2H.js +0 -1
- package/build/js/chunks/chunk-O2DTDLQ5.js +0 -2
- package/build/js/chunks/chunk-OHSTP7TM.js +0 -1
- package/build/js/chunks/chunk-RWDAYBTQ.js +0 -1
- package/build/js/chunks/chunk-VS7IRHEK.js +0 -1
- package/build/js/chunks/chunk-VZNESTL2.js +0 -6
- /package/build/js/chunks/{chunk-IRAW536A.js → chunk-XDBBLGPM.js} +0 -0
package/build/js/BarcodeBatch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeBatch}from'./chunks/chunk-
|
|
1
|
+
export{a as BarcodeBatch}from'./chunks/chunk-EGQKRCPY.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as BarcodeBatchBasicOverlay,a as BarcodeBatchBasicOverlayStyle}from'./chunks/chunk-
|
|
1
|
+
export{b as BarcodeBatchBasicOverlay,a as BarcodeBatchBasicOverlayStyle}from'./chunks/chunk-KCLART6S.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeBatchSettings}from'./chunks/chunk-
|
|
1
|
+
export{a as BarcodeBatchSettings}from'./chunks/chunk-R2NJCFWO.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCapture}from'./chunks/chunk-
|
|
1
|
+
export{a as BarcodeCapture}from'./chunks/chunk-QWZ3XB2O.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as BarcodeCaptureOverlay,a as BarcodeCaptureOverlayStyle}from'./chunks/chunk-
|
|
1
|
+
export{b as BarcodeCaptureOverlay,a as BarcodeCaptureOverlayStyle}from'./chunks/chunk-SZ3AQK6Y.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCaptureSettings}from'./chunks/chunk-
|
|
1
|
+
export{a as BarcodeCaptureSettings}from'./chunks/chunk-QO2O2C3A.js';
|
package/build/js/Defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as defaultValues,a as defaultsFromJSON,c as setDefaults}from'./chunks/chunk-
|
|
1
|
+
export{b as defaultValues,a as defaultsFromJSON,c as setDefaults}from'./chunks/chunk-QNZA644V.js';
|
package/build/js/ar/BarcodeAr.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeAr}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeAr}from'../chunks/chunk-PQMKOSC7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeArFeedback}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeArFeedback}from'../chunks/chunk-XDBBLGPM.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeArPresenter}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeArPresenter}from'../chunks/chunk-2BRB72K6.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeArSettings}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeArSettings}from'../chunks/chunk-S7ZLCH67.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeArView}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeArView}from'../chunks/chunk-QPIZWGIE.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeArInfoAnnotationFooter}from'../../../chunks/chunk-
|
|
1
|
+
export{a as BarcodeArInfoAnnotationFooter}from'../../../chunks/chunk-LR6JSIOR.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeArInfoAnnotationHeader}from'../../../chunks/chunk-
|
|
1
|
+
export{a as BarcodeArInfoAnnotationHeader}from'../../../chunks/chunk-5URXITXR.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CONTAINER_SELECTOR,b as ICON_TEXT_SELECTOR,c as TEXT_SELECTOR,e as createStyles,d as createTemplate,h as getBackgroundColor,f as getIcon,n as getText,j as getTextColor,l as getTextSize,i as setBackgroundColor,o as setText,k as setTextColor,m as setTextSize,g as updateIcon}from'../../../../chunks/chunk-
|
|
1
|
+
export{a as CONTAINER_SELECTOR,b as ICON_TEXT_SELECTOR,c as TEXT_SELECTOR,e as createStyles,d as createTemplate,h as getBackgroundColor,f as getIcon,n as getText,j as getTextColor,l as getTextSize,i as setBackgroundColor,o as setText,k as setTextColor,m as setTextSize,g as updateIcon}from'../../../../chunks/chunk-HFXWQGKV.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeStatusIconContainer}from'../../../../chunks/chunk-
|
|
1
|
+
export{a as BarcodeStatusIconContainer}from'../../../../chunks/chunk-QZGFNS2K.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as cssArrows}from'../../../../chunks/chunk-
|
|
1
|
+
export{a as cssArrows}from'../../../../chunks/chunk-F7NAOKPF.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as BarcodeArInfoAnnotation,a as BarcodeArInfoAnnotationAnchor,c as BarcodeArInfoAnnotationEvent,b as BarcodeArInfoAnnotationWidthPreset}from'../../../chunks/chunk-
|
|
1
|
+
export{d as BarcodeArInfoAnnotation,a as BarcodeArInfoAnnotationAnchor,c as BarcodeArInfoAnnotationEvent,b as BarcodeArInfoAnnotationWidthPreset}from'../../../chunks/chunk-42Y6V4GC.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as BarcodeArPopoverAnnotation,a as BarcodeArPopoverAnnotationAnchor}from'../../../chunks/chunk-
|
|
1
|
+
export{b as BarcodeArPopoverAnnotation,a as BarcodeArPopoverAnnotationAnchor}from'../../../chunks/chunk-B5IOSUX4.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeArPopoverAnnotationButton}from'../../../chunks/chunk-
|
|
1
|
+
export{a as BarcodeArPopoverAnnotationButton}from'../../../chunks/chunk-OIFWCYQI.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeArResponsiveAnnotation}from'../../../chunks/chunk-
|
|
1
|
+
export{a as BarcodeArResponsiveAnnotation}from'../../../chunks/chunk-RLKGZ42F.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as BarcodeArStatusIconAnnotation,a as BarcodeArStatusIconAnnotationAnchor}from'../../../chunks/chunk-
|
|
1
|
+
export{b as BarcodeArStatusIconAnnotation,a as BarcodeArStatusIconAnnotationAnchor}from'../../../chunks/chunk-YD2VGEB5.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-T2Y2C76P.js';import {Point}from'@scandit/web-datacapture-core';import {clamp}from'@scandit/web-datacapture-core/build/js/private/utils/clamp.js';import {safeAwaitAnimation}from'@scandit/web-datacapture-core/build/js/private/utils/safeCancelAnimation.js';import {Timeout}from'@scandit/web-datacapture-core/build/js/private/utils/timeout.js';var s=class extends Event{constructor(t,e){super(t),this.point=e;}},l=class{constructor(t,e){this.translate=new Point(0,0);this.draggable=false;this.pointerDownListener=this.onPointerDown.bind(this);this.pointerMoveListener=this.onPointerMove.bind(this);this.pointerUpListener=this.onPointerUp.bind(this);this.touchStartListener=this.onTouchStart.bind(this);this.resizeListener=this.onResize.bind(this);this.repositioningTimeout=new Timeout(500,this.repositionIfOutOfBounds.bind(this));this.margin=new Point(0,0);this.element=t,this.boundaryElement=e!=null&&e.clientWidth&&(e!=null&&e.clientHeight)?e:document.body;}get translateWithMargin(){return new Point(this.translate.x+this.margin.x,this.translate.y+this.margin.y)}connect(){this.render(),this.element.addEventListener("pointerdown",this.pointerDownListener),this.element.addEventListener("pointermove",this.pointerMoveListener),this.element.addEventListener("pointerup",this.pointerUpListener),this.element.addEventListener("touchstart",this.touchStartListener),window.addEventListener("resize",this.resizeListener);}disconnect(){this.element.removeEventListener("pointerdown",this.pointerDownListener),this.element.removeEventListener("pointermove",this.pointerMoveListener),this.element.removeEventListener("pointerup",this.pointerUpListener),this.element.removeEventListener("touchstart",this.touchStartListener),window.removeEventListener("resize",this.resizeListener),this.repositioningTimeout.stop();}getBoundedTranslate(){let{width:t,height:e}=this.element.getBoundingClientRect(),n=this.boundaryElement.clientWidth,c=this.boundaryElement.clientHeight,o=clamp(this.translate.x,Math.abs(this.margin.x),n-t-this.margin.x),r=clamp(this.translate.y,Math.abs(this.margin.y),c-e-this.margin.y);if(this.translate.x!==o||this.translate.y!==r)return new Point(o,r)}async translateTo(t,e){if(this.translate=t,e){let n=this.element.animate([{transform:`translate(${this.translate.x}px, ${this.translate.y}px)`}],{duration:200,easing:"ease"});n.play(),await safeAwaitAnimation(n);}this.render(),this.element.dispatchEvent(new s("drag",t));}render(){this.element.style.setProperty("transform",`translate(${this.translate.x}px, ${this.translate.y}px)`);}async repositionIfOutOfBounds(){let t=this.getBoundedTranslate();t&&await this.translateTo(t,true);}onPointerDown(t){t instanceof PointerEvent&&(this.offset=new Point(this.translate.x-t.clientX,this.translate.y-t.clientY),this.pointerDownEvent=t);}onPointerMove(t){t instanceof PointerEvent&&this.offset&&this.draggable&&this.translateTo(new Point(this.offset.x+t.clientX,this.offset.y+t.clientY),false);}async onPointerUp(t){t instanceof PointerEvent&&this.pointerDownEvent&&a(this.pointerDownEvent,t)&&(await this.repositionIfOutOfBounds(),this.offset=void 0,this.draggable=false,this.element.dispatchEvent(new s("dragend",this.translate)));}onTouchStart(t){t.returnValue=false;}onResize(){this.repositioningTimeout.start();}};export{s as a,l as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-XDBBLGPM.js';import {TorchState,isCameraFrameSource,Camera,FrameSourceState,CameraPosition}from'@scandit/web-datacapture-core';var n=class{constructor(e,t,o,d,h){this.torchState=TorchState.Off;this.cameraSupportMap=new Map;this.zoomFactor=1;this.view=e,this.context=t,this.barcodeAr=o,this.viewSettings=d,this.cameraSettings=h;}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.barcodeAr.setEnabled(false),this.barcodeAr.feedback=await a.createWithOptions(true,true),this.barcodeAr.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.barcodeAr),this.barcodeAr.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.barcodeAr.setEnabled(true),await this.barcodeAr.start();}async stopSearching(){var e;this.view.deleteAllViews(),await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.Off)),await this.barcodeAr.setEnabled(false),await this.barcodeAr.stop();}async pauseSearching(){var e;this.view.deletePendingViews(),await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.Standby)),await this.barcodeAr.setEnabled(false),await this.barcodeAr.pause();}emitTappedFeedback(){this.barcodeAr.feedback.tapped.emit();}didUpdateSession(e,t){Object.keys(t.addedTrackedBarcodes).length>0&&this.barcodeAr.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{n as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-QNZA644V.js';import {RadiusLocationSelection,NumberWithUnit}from'@scandit/web-datacapture-core';var S=class{constructor(){this.codeDuplicateFilter=b.SparkScan.SparkScanSettings.codeDuplicateFilter;this.scanIntention="manual";this.locationSelection=new RadiusLocationSelection(new NumberWithUnit(b.SparkScan.SparkScanSettings.locationSelection.radius,b.SparkScan.SparkScanSettings.locationSelection.unit));this.properties={};this.symbologies={};}get enabledSymbologies(){return Object.keys(this.symbologies).filter(t=>{var e;return (e=this.symbologies[t])==null?void 0:e.isEnabled})}settingsForSymbology(o){if(!this.symbologies[o]){let t=b.SymbologySettings[o];t._symbology=o,this.symbologies[o]=t;}return this.symbologies[o]}setProperty(o,t){this.properties[o]=t;}getProperty(o){return this.properties[o]}enableSymbologies(o){for(let t of o)this.enableSymbology(t,true);}enableSymbology(o,t){this.settingsForSymbology(o).isEnabled=t;}toJSONObject(){var e;let o={},t=Object.keys(this.symbologies);return {codeDuplicateFilter:this.codeDuplicateFilter,locationSelection:this.locationSelection.toJSONObject(),properties:{...this.properties},symbologies:t.reduce((n,s)=>{var r;let l=(r=this.symbologies[s])==null?void 0:r.toJSONObject();return l&&(n[s]=l),n},o),scanIntention:(e=this.scanIntention)!=null?e:null}}};export{S as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-F7NAOKPF.js';import {a as a$4}from'./chunk-DVLPRWCY.js';import {a as a$2}from'./chunk-LR6JSIOR.js';import {a as a$3}from'./chunk-5URXITXR.js';import {a as a$1}from'./chunk-CYVVGAZ4.js';import {Color,ScanditIcon}from'@scandit/web-datacapture-core';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var m=(o=>(o[o.Top="top-center"]="Top",o[o.Bottom="bottom-center"]="Bottom",o[o.Left="left-center"]="Left",o[o.Right="right-center"]="Right",o))(m||{}),N=(e=>(e.Small="small",e.Medium="medium",e.Large="large",e))(N||{}),U=(T=>(T.InfoAnnotationTap="BarcodeArInfoAnnotationEventTap",T))(U||{}),p="slot[name='header']",h="slot[name='footer']",v="--arrow-background-color",s=class s extends ScanditHTMLElement{constructor(){super();this.isEntireAnnotationTappable=false;this.annotationTrigger="highlightTapAndBarcodeScan";this.onPointerUpListener=this.onPointerUp.bind(this);this.onSlotChangeListener=this.onSlotChange.bind(this);this.highlightableElementListenerMap=new Map;let t=this.attachShadow({mode:"open"});t.innerHTML=html`<div
|
|
2
2
|
class="container arw-${m.Bottom} ${"small"}"
|
|
3
3
|
>
|
|
4
4
|
<slot name="header"></slot>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-HRQFPTLO.js';import {b}from'./chunk-QNZA644V.js';import {Brush}from'@scandit/web-datacapture-core';var s=class o{constructor(){this.type="sparkScan";this._shouldShowScanAreaGuides=false;this._shouldRemoveLocationsAfterScan=true;this._shouldDrawViewfinder=false;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 {d,e as e$1,a,c,g,f,h,i,n,o,j,k,l,m}from'./chunk-
|
|
1
|
+
import {d,e as e$1,a,c,g,f,h,i,n,o,j,k,l,m}from'./chunk-HFXWQGKV.js';import {Color}from'@scandit/web-datacapture-core';import {defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js';import {ScanditHTMLElement}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var e=class e extends ScanditHTMLElement{constructor(){super();this._defaultBackgroundColor=Color.fromHex("#00FFFF");this._defaultTextColor=Color.fromHex("#000000");let t=this.attachShadow({mode:"open"});t.innerHTML=d(),t.append(e$1()),this.containerElement=t.querySelector(a),this.textElement=t.querySelector(c);}static create(){return e.register(),document.createElement(e.tag)}static register(){defineCustomElements({[e.tag]:e});}set icon(t){g(this,t);}get icon(){return f(this)}get backgroundColor(){return h(this,this._defaultBackgroundColor)}set backgroundColor(t){i(this,t);}get text(){return n(this.textElement)}set text(t){o(this.textElement,t);}get textColor(){return j(this,this._defaultTextColor)}set textColor(t){k(this,t);}get textSize(){return l(this)}set textSize(t){m(this,t);}connectedCallback(){this.backgroundColor=this.backgroundColor,this.textColor=this.textColor;}};e.tag="scandit-barcode-ar-info-annotation-header";var x=e;export{x as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$
|
|
1
|
+
import {a as a$3}from'./chunk-7O2NHA3I.js';import {a as a$2}from'./chunk-LTNZJEG4.js';import {a as a$4}from'./chunk-4QSEBPWB.js';import {a as a$1}from'./chunk-2ZSOWJ2F.js';import {a}from'./chunk-WVIC3JWX.js';import {a as a$5}from'./chunk-AHHVLMVN.js';import {DataCaptureEngine}from'@scandit/web-datacapture-core/build/js/worker/index.js';var c=class extends DataCaptureEngine{constructor(e,r){super(e,r);}getModeDeserializers(){this.barcodeCaptureMode=new a(this,this.Module,this.workerFunctions),this.barcodeBatchMode=new a$1(this,this.Module,this.workerFunctions),this.sparkScanMode=new a$2(this,this.Module,this.workerFunctions),this.barcodeFindMode=new a$3(this,this.Module,this.workerFunctions),this.barcodeArMode=new a$4(this,this.Module,this.workerFunctions);let e=super.getModeDeserializers();return e.push_back(this.barcodeCaptureMode.getCaptureDeserializer()),e.push_back(this.barcodeBatchMode.getBatchDeserializer()),e.push_back(this.sparkScanMode.getSparkScanDeserializer()),e}getWasmSideModuleFileName(){return ""}getWasmCoreFileName(e,r){return r?e?"scandit-datacapture-sdk-barcode-simd-pthreads.wasm":"scandit-datacapture-sdk-barcode-pthreads.wasm":e?"scandit-datacapture-sdk-barcode-simd.wasm":"scandit-datacapture-sdk-barcode.wasm"}getWasmCoreExpectedHash(e,r){return r?e?"591f364b6da52e23fa7c6475c893f06ff3bd2bbdd30680acafe9794551a7faa8":"3cb4cf0914d7b1084f9a67cc452c598efea93ff36ce0b24fff581c6e80411e25":e?"a0fdc0d5f0c18410858dc7db89b3d2b27ba6e8172df48c4cdad9c23977eb0093":"0f4cc07f2a8fc2b0a37c727343c55abd7afcc50b2f1b9c94c8b5ae82b6b986f4"}getWasmMetadata(){return a$5}};export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {j,k}from'./chunk-DVHTYKDX.js';import {g}from'./chunk-YBD5JYCX.js';import {ScanditHTMLElement,css,defineCustomElements,safeAwaitAnimation}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var c=class n extends ScanditHTMLElement{constructor(){super(...arguments);this.styleElement=css`${g}{height:var(--dvh);left:0;opacity:0;pointer-events:none;position:absolute;top:0;user-select:none;width:var(--dvw)}${g}[success]{background:var(${j})}${g}[error]{background:var(${k})}`;}get success(){return this.hasAttribute("success")}set success(e){this.toggleAttribute("error",!e),this.toggleAttribute("success",e);}get error(){return this.hasAttribute("error")}set error(e){this.toggleAttribute("error",e),this.toggleAttribute("success",!e);}static create(){return defineCustomElements({[g]:n}),document.createElement(g)}async fadeIn(e,a){let i=this.animate([{opacity:"0"},{opacity:e}],{duration:a,easing:"linear"});await safeAwaitAnimation(i);}async fadeOut(e,a){let i=this.animate([{opacity:e},{opacity:"0"}],{duration:a,easing:"linear"});await safeAwaitAnimation(i);}async emitSuccessFeedback(){this.success=true,await this.fadeIn("1",200),await this.fadeOut("1",0);}async emitErrorFeedback(){this.error=true,await this.fadeIn("1",100),await this.fadeOut("1",100),await this.fadeIn("0.5",100),await this.fadeOut("0.5",0);}connectedCallback(){this.append(this.styleElement);}};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a
|
|
1
|
+
import {a}from'./chunk-SEJXDETX.js';import {a as a$1}from'./chunk-XLC2JHJV.js';import {Color}from'@scandit/web-datacapture-core';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var o=class o extends ScanditHTMLElement{constructor(){super();this.onIcon=void 0;this.offIcon=void 0;let t=this.attachShadow({mode:"open"});t.innerHTML=html`<button><slot></slot></button>`,t.append(o.createStyleElement().cloneNode(true));}get state(){var t;return (t=this.getAttribute("state"))!=null?t:"off"}set state(t){this.setAttribute("state",t);}static create(){return document.createElement(o.tag)}static register(){defineCustomElements({[o.tag]:o});}static createStyleElement(){return css`:host button{background:none;border:none;display:flex;margin:0;outline:none;padding:0}`}connectedCallback(){let t=Color.fromHex("#FFFFFF");this.onIcon=a.create(),this.offIcon=a$1.create(),this.onIcon.setAttribute("shadow",""),this.offIcon.setAttribute("shadow",""),this.onIcon.size=36,this.offIcon.size=36,this.offIcon.fill=`#${t.withAlpha(.5).toJSON()}`,this.onIcon.fill=`#${t.toJSON()}`;let e="off";(this.getAttribute("state")==="on"||this.getAttribute("state")==="off")&&(e=this.getAttribute("state")),this.state=e;}attributeChangedCallback(t,e,a){t==="state"&&this.render(a);}render(t){t==="on"?(this.offIcon!=null&&this.offIcon.remove(),this.onIcon!=null&&this.append(this.onIcon)):(this.onIcon!=null&&this.onIcon.remove(),this.offIcon!=null&&this.append(this.offIcon));}};o.tag="scandit-find-torch-button",o.observedAttributes=["state"];var n=o;n.register();export{n as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s={"scandit-datacapture-sdk-barcode-pthreads.wasm":{bytes:7046307},"scandit-datacapture-sdk-barcode.wasm":{bytes:6929721},"scandit-datacapture-sdk-barcode-simd-pthreads.wasm":{bytes:6987258},"scandit-datacapture-sdk-barcode-simd.wasm":{bytes:6870402}};export{s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-OIFWCYQI.js';import {a}from'./chunk-CYVVGAZ4.js';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var l=(e=>(e[e.Top="top-center"]="Top",e[e.Bottom="bottom-center"]="Bottom",e[e.Left="left-center"]="Left",e[e.Right="right-center"]="Right",e))(l||{}),r=class r extends ScanditHTMLElement{constructor(){super();this.isEntirePopoverTappable=false;this.annotationTrigger="highlightTap";this.onPointerUpListener=this.onPointerUp.bind(this);this.anchor=l.Bottom;let t=this.attachShadow({mode:"open"});t.innerHTML=html`<div class="container" role="group"><slot></slot></div>`,t.append(r.createStyleElement().cloneNode(true));}updatePosition(t,o,e){a(this,t,o,0);}get barcode(){return this._barcode}set barcode(t){this._barcode=t;}set direction(t){this.setAttribute("direction",t);}get direction(){var t;return (t=this.getAttribute("direction"))!=null?t:"horizontal"}static register(){defineCustomElements({[r.tag]:r});}static create(t){r.register();let o=document.createElement(r.tag);return o.barcode=t,o}static createStyleElement(){return css`:host{background-color:unset;border:none;border-radius:14px;margin:0;overflow:hidden;padding:0}:host([direction=horizontal]) .container{flex-direction:row}:host([direction=vertical]) .container{flex-direction:column}.container{backdrop-filter:blur(16px);background:#ffffffb3;box-shadow:0 6px 10px 4px #12161926;display:flex;gap:14px}`}connectedCallback(){let t=Array.from(this.querySelectorAll(a$1.tag));for(let[o,e]of Object.entries(t))e.setAttribute("data-position",o);this.addEventListener("pointerup",this.onPointerUpListener);}disconnectedCallback(){this.removeEventListener("pointerup",this.onPointerUpListener);}onPointerUp(t){var e,a,p,i,c;if(this.isEntirePopoverTappable){(a=(e=this.listener)==null?void 0:e.onPopoverTapped)==null||a.call(e,this);return}let o=(p=t.target)==null?void 0:p.closest(a$1.tag);o&&((c=(i=this.listener)==null?void 0:i.onPopoverButtonTapped)==null||c.call(i,this,o,Number(o.getAttribute("data-position"))));}};r.tag="scandit-barcode-ar-popover-annotation";var d=r;export{l as a,d as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {b}from'./chunk-YJ42KEYE.js';import {a as a$6}from'./chunk-QCO6TK2S.js';import {a}from'./chunk-WRTJHOS5.js';import {a as a$8}from'./chunk-7J6MRLL2.js';import {a as a$2}from'./chunk-YH5IBNOK.js';import {a as a$7}from'./chunk-5GGUCEGU.js';import {b as b$1}from'./chunk-EWLALL5J.js';import {a as a$4}from'./chunk-GLJCW3XH.js';import {a as a$5}from'./chunk-POONUNDO.js';import {b as b$2}from'./chunk-K4D6B66I.js';import {a as a$1}from'./chunk-7GJVUU3G.js';import {a as a$3}from'./chunk-I53W7VSB.js';import {b as b$3}from'./chunk-QNZA644V.js';import {Anchor,Localization,DataCaptureView,Size,Point}from'@scandit/web-datacapture-core';import {ShutterButton}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/ShutterButton.js';import {ScanditHTMLElement}from'@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js';import {defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js';import {html}from'@scandit/web-datacapture-core/build/js/private/utils/html.js';import {Card}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/Card.js';var d={FinishButton:a$2.tag,ShutterButton:ShutterButton.tag,ProgressBarWithLabel:a.tag,CardListContainer:b$1.tag,TorchIconButton:a$1.tag},c=class c extends ScanditHTMLElement{constructor(){super(...arguments);this.shouldShowCarousel=true;this.shouldShowPauseButton=true;this.shouldShowFinishButton=true;this.shouldShowProgressBar=true;this.shouldShowTorchControl=false;this.torchControlPosition=Anchor.TopLeft;this.textForItemListUpdatedWhenPausedHint=null;this.textForItemListUpdatedHint=null;this.textForTapShutterToResumeSearchHint=null;this.textForTapShutterToPauseScreenHint=null;this.textForMoveCloserToBarcodesHint=null;this.textForPointAtBarcodesToSearchHint=null;this.textForAllItemsFoundSuccessfullyHint=null;this.textForCollapseCardsButton=Localization.getInstance().get("barcode.find.view.textForCollapseCardsButton");this.barcodeFindViewUiListener=null;this.shutterButton=null;this.finishButton=null;this.progressBar=null;this.cardList=null;this.onShutterButtonClickedHandler=this.onShutterButtonClicked.bind(this);this.onFinishButtonClickedHandler=this.onFinishButtonClicked.bind(this);this.onTorchButtonClickedHandler=this.onTorchButtonClicked.bind(this);this.torchIconButton=null;this.onDotClickHandler=this.onDotClick.bind(this);}get camera(){return this.presenter.context.frameSource}static async createWithSettings(t,o,i,s,r){let e=document.createElement(c.tag);return e.barcodeFindViewSettings=s,e.layout=b.create(),e.layout.innerHTML=html`
|
|
2
2
|
<${a.tag} slot="progress" value="0" max="1" ${e.shouldShowProgressBar?"":"hidden"}></${a.tag}>
|
|
3
3
|
<${a$1.tag} slot="top-controls-left" ${e.shouldShowTorchControl?"":"hidden"}></${a$1.tag}>
|
|
4
4
|
<${b$1.tag} slot="card-list" hidden text-for-collapse-cards-button=${e.textForCollapseCardsButton}></${b$1.tag}>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-QNZA644V.js';import {a}from'./chunk-IHTTMWUR.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=true;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",true),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,4 +1,4 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-XGY5EQR4.js';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';import {Card}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/Card.js';import {CardList,CardListEvents}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/CardList.js';var l="cubic-bezier(0.4, 0, 0.2, 1)",L=(n=>(n.TextForCollapseCardsButton="text-for-collapse-cards-button",n))(L||{}),i=class i extends ScanditHTMLElement{constructor(){super();this.onCarListTapHandler=this.onCarListTap.bind(this);this.onCardListWillExpandHandler=this.onCardListWillExpand.bind(this);this.onCarouselButtonClickHandler=this.onCarouselButtonClick.bind(this);this.textNode=document.createTextNode("");let t=this.attachShadow({mode:"open"});t.append(i.createStyleElement().cloneNode(true));let s=document.createElement("div");s.id="root",s.innerHTML=html`
|
|
2
2
|
<${a.tag} class="hide">
|
|
3
3
|
</${a.tag}>
|
|
4
4
|
<${CardList.tag} collapsed></${CardList.tag}>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {css}from'@scandit/web-datacapture-core/build/js/private/utils/css.js';function e(){return css`[class*=arw-]:after{border-color:#0000;border-style:solid;content:" ";height:0;pointer-events:none;position:absolute;width:0}.arw-bottom-center:after{border-top-color:var(--arrow-background-color);border-width:var(--arrow-size);left:50%;top:100%;transform:translate(-50%)}.arw-top-center:after{border-bottom-color:var(--arrow-background-color);border-width:var(--arrow-size);left:50%;top:0;transform:translate(-50%,-100%)}.arw-right-center:after{border-left-color:var(--arrow-background-color);border-width:var(--arrow-size);right:0;top:50%;transform:translate(100%,-50%)}.arw-left-center:after{border-right-color:var(--arrow-background-color);border-width:var(--arrow-size);left:0;top:50%;transform:translate(-100%,-50%)}`}export{e as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-XSJEGOGN.js';import {a as a$1}from'./chunk-YQNNEW67.js';import {a as a$
|
|
1
|
+
import {a as a$2}from'./chunk-XSJEGOGN.js';import {a as a$1}from'./chunk-YQNNEW67.js';import {a as a$6,b as b$3}from'./chunk-2ASAIH4R.js';import {b}from'./chunk-5DP5VNWQ.js';import {a as a$5,b as b$2}from'./chunk-OPL5NVVM.js';import {g as g$2}from'./chunk-3A6GSH7S.js';import {g as g$1}from'./chunk-DVHTYKDX.js';import {a as a$3}from'./chunk-DOA2Q3CZ.js';import {j,i,f,a,g,n}from'./chunk-4JEIREAU.js';import {c,e,a as a$4,b as b$1}from'./chunk-YBD5JYCX.js';import {Point}from'@scandit/web-datacapture-core';import {ScanditHTMLElement,defineCustomElements,safeAwaitAnimation,safeCancelAnimation,html,Timeout}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var F=(i=>(i.ResizeButton="resizeButton",i.ZoomButton="zoomButton",i.TorchButton="torchButton",i.CloseButton="closeButton",i))(F||{}),q=1200,w=class w extends ScanditHTMLElement{constructor(){super(...arguments);this.resizeButtonTapListener=this.onResizeButtonTap.bind(this);this.zoomButtonTapListener=this.onZoomButtonTap.bind(this);this.torchButtonTapListener=this.onTorchButtonTap.bind(this);this.closeButtonTapListener=this.onCloseButtonTap.bind(this);this.pointerDownListener=this.onPointerDown.bind(this);this.longPressStartListener=this.onLongPressStart.bind(this);this.toolbarVisibilityChangeListener=this.onToolbarVisibilityChange.bind(this);this.longPressEndListener=this.onLongPressEnd.bind(this);this.dragEndListener=this.onDragEnd.bind(this);this.fadeOutAnimation=new Animation(new KeyframeEffect(this,[{opacity:1},{opacity:0}],{duration:500,fill:"both"}));this.replayFadeOutTimeout=null;this.longPressController=new b(this);}get visible(){return this.hasAttribute("visible")}set visible(t){this.toggleAttribute("visible",t);}get size(){return this.expanded?"expanded":"regular"}set size(t){var i;this.toggleAttribute("expanded",t==="expanded");let o=this.getNextTranslate();(i=this.dragController)==null||i.translateTo(o,false).then(async()=>{var n;return (n=this.dragController)==null?void 0:n.repositionIfOutOfBounds()});}get expanded(){return this.hasAttribute("expanded")}get[a](){var t;return Number((t=this.getAttribute(a))!=null?t:"1")}set[a](t){this.setAttribute(a,String(t));}get darkened(){return this.hasAttribute("darkened")}set darkened(t){this.toggleAttribute("darkened",t);}get orientation(){var t;return (t=this.getAttribute("orientation"))!=null?t:"portrait-primary"}set orientation(t){this.setAttribute("orientation",t);}get[g](){return this.hasAttribute(g)}set[g](t){this.toggleAttribute(g,t);}get[j](){return this.hasAttribute(j)}set[j](t){this.toggleAttribute(j,t);}get[i](){return this.hasAttribute(i)}set[i](t){this.toggleAttribute(i,t);}get[f](){return this.hasAttribute(f)}set[f](t){this.toggleAttribute(f,t);}get[n](){return this.hasAttribute(n)}set[n](t){this.toggleAttribute(n,t);}get cover(){return this.hasAttribute("cover")}set cover(t){this.toggleAttribute("cover",t);}get pressed(){return this.hasAttribute("pressed")}set pressed(t){this.toggleAttribute("pressed",t);}static create(){return defineCustomElements({[b$1]:w,[a$4]:a$3,[e]:a$2,[c]:a$1}),document.createElement(b$1)}repositionIfOutOfBounds(){var t;(t=this.dragController)==null||t.repositionIfOutOfBounds();}showToast(t,o,i){this.toast.show(t,o,i);}hideToast(){this.toast.hide();}zoomIn(){this.zoomButton&&(this[a]=2,this.zoomButton.textContent="2x",this.showToast("warning","2x zoom",1e3));}zoomOut(){this.zoomButton&&(this[a]=1,this.zoomButton.textContent="1x",this.showToast("info","1x zoom",1e3));}async fadeOut(){this.fadeOutAnimation.play(),await safeAwaitAnimation(this.fadeOutAnimation),this.visible=false;}cancelFadeOut(){var t;(t=this.replayFadeOutTimeout)==null||t.stop(),safeCancelAnimation(this.fadeOutAnimation);}async rewindAnimation(){var t,o;(((t=this.replayFadeOutTimeout)==null?void 0:t.running)===true||this.fadeOutAnimation.playState!=="idle")&&(this.cancelFadeOut(),(o=this.replayFadeOutTimeout)==null||o.start());}translateTo(t){var o;(o=this.dragController)==null||o.translateTo(t,false);}render(){var t,o,i$1,n$1,a$1,l,b;this.innerHTML=html`
|
|
2
2
|
<spark-scan-view-toast></spark-scan-view-toast>
|
|
3
3
|
<div id="host"></div>
|
|
4
4
|
<div id="controls">
|
|
@@ -208,4 +208,4 @@ import {a as a$2}from'./chunk-XSJEGOGN.js';import {a as a$1}from'./chunk-YQNNEW6
|
|
|
208
208
|
opacity: 0.3;
|
|
209
209
|
}
|
|
210
210
|
</style>
|
|
211
|
-
`,this.toast=this.querySelector("spark-scan-view-toast"),this.host=this.querySelector("#host"),this.resizeButton=this.querySelector("#resizeButton"),(t=this.resizeButton)==null||t.addEventListener("pointerup",this.resizeButtonTapListener),this.resizeButtonIcon=(o=this.resizeButton)==null?void 0:o.querySelector("spark-scan-view-icon"),this.zoomButton=this.querySelector("#zoomButton"),(i$1=this.zoomButton)==null||i$1.addEventListener("pointerup",this.zoomButtonTapListener),this.torchButton=this.querySelector("#torchButton"),(n$1=this.torchButton)==null||n$1.addEventListener("pointerup",this.torchButtonTapListener),this.torchButtonIcon=(a$1=this.torchButton)==null?void 0:a$1.querySelector("spark-scan-view-icon"),this.closeButton=this.querySelector("#closeButton"),(l=this.closeButton)==null||l.addEventListener("pointerup",this.closeButtonTapListener),this.toolbar=this.querySelector(c),(b=this.toolbar)==null||b.addEventListener("toolbarvisibilitychange",this.toolbarVisibilityChangeListener),this.buttonContainerList=this.querySelector("#button-container-list");}onResizeButtonTap(t){t.stopPropagation(),this.size={regular:"expanded",expanded:"regular"}[this.size],this.resizeButtonIcon&&(this.resizeButtonIcon.icon=this.expanded?"shrink":"expand"),this.dispatchEvent(new CustomEvent(g$2,{detail:{tapped:"resizeButton",expanded:this.expanded}}));}onZoomButtonTap(t){switch(t.stopPropagation(),this[a]){case 1:{this.zoomIn();break}case 2:{this.zoomOut();break}}this.dispatchEvent(new CustomEvent(g$2,{detail:{tapped:"zoomButton",zoomFactor:this[a]}}));}onTorchButtonTap(t){t.stopPropagation(),this[g]=!this[g],this.torchButtonIcon&&(this.torchButtonIcon.icon=this[g]?"torchOn":"torchOff"),this.dispatchEvent(new CustomEvent(g$2,{detail:{tapped:"torchButton",enabled:this[g]}}));}onCloseButtonTap(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(g$2,{detail:{tapped:"closeButton"}}));}onPointerDown(){this.dragController&&(this.dragController.draggable=false),this.rewindAnimation();}onLongPressStart(){this.dragController&&(this.dragController.draggable=true),this.pressed=true;}onLongPressEnd(){this.pressed=false;}onDragEnd(t){t instanceof a$6&&(this.lastKnownTranslate=t.point);}onToolbarVisibilityChange(){this.cover=!this.toolbar||this.toolbar.hidden;}connectedCallback(){var t,o;this.rootElement=(t=this.parentElement)==null?void 0:t.parentElement,this.dragController=new b$3(this,this.rootElement),this.replayFadeOutTimeout=new Timeout(
|
|
211
|
+
`,this.toast=this.querySelector("spark-scan-view-toast"),this.host=this.querySelector("#host"),this.resizeButton=this.querySelector("#resizeButton"),(t=this.resizeButton)==null||t.addEventListener("pointerup",this.resizeButtonTapListener),this.resizeButtonIcon=(o=this.resizeButton)==null?void 0:o.querySelector("spark-scan-view-icon"),this.zoomButton=this.querySelector("#zoomButton"),(i$1=this.zoomButton)==null||i$1.addEventListener("pointerup",this.zoomButtonTapListener),this.torchButton=this.querySelector("#torchButton"),(n$1=this.torchButton)==null||n$1.addEventListener("pointerup",this.torchButtonTapListener),this.torchButtonIcon=(a$1=this.torchButton)==null?void 0:a$1.querySelector("spark-scan-view-icon"),this.closeButton=this.querySelector("#closeButton"),(l=this.closeButton)==null||l.addEventListener("pointerup",this.closeButtonTapListener),this.toolbar=this.querySelector(c),(b=this.toolbar)==null||b.addEventListener("toolbarvisibilitychange",this.toolbarVisibilityChangeListener),this.buttonContainerList=this.querySelector("#button-container-list");}onResizeButtonTap(t){t.stopPropagation(),this.size={regular:"expanded",expanded:"regular"}[this.size],this.resizeButtonIcon&&(this.resizeButtonIcon.icon=this.expanded?"shrink":"expand"),this.dispatchEvent(new CustomEvent(g$2,{detail:{tapped:"resizeButton",expanded:this.expanded}}));}onZoomButtonTap(t){switch(t.stopPropagation(),this[a]){case 1:{this.zoomIn();break}case 2:{this.zoomOut();break}}this.dispatchEvent(new CustomEvent(g$2,{detail:{tapped:"zoomButton",zoomFactor:this[a]}}));}onTorchButtonTap(t){t.stopPropagation(),this[g]=!this[g],this.torchButtonIcon&&(this.torchButtonIcon.icon=this[g]?"torchOn":"torchOff"),this.dispatchEvent(new CustomEvent(g$2,{detail:{tapped:"torchButton",enabled:this[g]}}));}onCloseButtonTap(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(g$2,{detail:{tapped:"closeButton"}}));}onPointerDown(){this.dragController&&(this.dragController.draggable=false),this.rewindAnimation();}onLongPressStart(){this.dragController&&(this.dragController.draggable=true),this.pressed=true;}onLongPressEnd(){this.pressed=false;}onDragEnd(t){t instanceof a$6&&(this.lastKnownTranslate=t.point);}onToolbarVisibilityChange(){this.cover=!this.toolbar||this.toolbar.hidden;}connectedCallback(){var t,o;this.rootElement=(t=this.parentElement)==null?void 0:t.parentElement,this.dragController=new b$3(this,this.rootElement),this.replayFadeOutTimeout=new Timeout(q,async()=>{await this.fadeOut();}),this.render(),this.addEventListener("pointerdown",this.pointerDownListener),this.addEventListener("longpressstart",this.longPressStartListener),this.addEventListener("longpressend",this.longPressEndListener),this.addEventListener("dragend",this.dragEndListener),this.dragController.connect(),this.longPressController.connect(),this.buttonContainerList&&((o=this.toolbar)!=null&&o.firstElementChild)&&(this.longPressController.elementsAllowedToTriggerLongPressEvents.add(this.buttonContainerList),this.longPressController.elementsAllowedToTriggerLongPressEvents.add(this.toolbar.firstElementChild)),this.dragController.margin=new Point(16,16);}disconnectedCallback(){var t,o,i,n,a,l,b;(t=this.resizeButton)==null||t.removeEventListener("pointerup",this.resizeButtonTapListener),(o=this.zoomButton)==null||o.removeEventListener("pointerup",this.zoomButtonTapListener),(i=this.torchButton)==null||i.removeEventListener("pointerup",this.torchButtonTapListener),(n=this.closeButton)==null||n.removeEventListener("pointerup",this.closeButtonTapListener),(a=this.toolbar)==null||a.removeEventListener("toolbarvisibilitychange",this.toolbarVisibilityChangeListener),this.removeEventListener("pointerdown",this.pointerDownListener),this.removeEventListener("longpressstart",this.longPressStartListener),this.removeEventListener("longpressend",this.longPressEndListener),this.removeEventListener("dragend",this.dragEndListener),safeCancelAnimation(this.fadeOutAnimation),(l=this.replayFadeOutTimeout)==null||l.stop(),(b=this.dragController)==null||b.disconnect(),this.longPressController.disconnect();}getNextTranslate(){var n,a,l;let t=((n=this.rootElement)==null?void 0:n.clientWidth)||document.body.clientWidth,o=((a=this.rootElement)==null?void 0:a.clientHeight)||document.body.clientHeight;if(!this.dragController)return new Point(0,0);if(this.size==="regular")return (l=this.lastKnownTranslate)!=null?l:this.dragController.translate;this.lastKnownTranslate=this.dragController.translate;let i=this.dragController.translate;return (this.orientation==="portrait-primary"||this.orientation==="portrait-secondary")&&this.dragController.translate.x>16&&(i=new Point(16,i.y)),(this.orientation==="landscape-primary"||this.orientation==="landscape-secondary")&&this.dragController.translate.x>t-this.clientWidth-16&&(i=new Point(t-this.clientWidth-16,i.y)),this.dragController.translate.y>o-this.clientHeight-16&&(i=new Point(i.x,o-this.clientHeight-16)),i}};w.observedAttributes=[j,i,f];var P=w;export{F as a,P as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-XS6RV73B.js';import {b}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-XS6RV73B.js';import {b}from'./chunk-QNZA644V.js';import {CameraSettings,convertToPublicFrameData,Logger}from'@scandit/web-datacapture-core';var p=class c{constructor(){this.type="sparkScan";this._synchronousFrameFlow=false;this._isEnabled=true;this._isSuppressed=false;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-6BTYJ5FK.js';import {a as a$1}from'./chunk-KQ3LRAYO.js';import {unknownErrorToString}from'@scandit/web-datacapture-core/build/js/private/utils/unknownErrorToString.js';import {WorkerMain}from'@scandit/web-datacapture-core/build/js/worker/index.js';var i=class extends WorkerMain{constructor(t,a$1){super(t,a$1),this.dataCaptureInstance=new a(a$1,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)});}async respondWith(t,a,r){let d=null,e;try{e=r(),e instanceof Promise&&(e=await e);}catch(c){e=void 0,d=unknownErrorToString(c);}let s={type:"workerTaskId",command:t,id:a,payload:this.hasPayload(e)?e.payload:void 0};d!=null&&(s.error=d),this.postMessage(s,this.hasTransferables(e)?e.transferables:[]);}onMessage(t){switch(t.data.command){case "sparkScanEmitErrorFeedback":{let{data:a}=t;return this.respondWith(a.command,a.id,()=>{this.dataCaptureInstance.sparkScanMode.emitErrorFeedback(a.shouldRemoveBrush);}),true}case "sparkScanOverlayReadyForDraw":{let{data:a}=t;return this.respondWith(a.command,a.id,()=>{this.dataCaptureInstance.sparkScanMode.overlayReadyForDraw();}),true}case "sparkScanAnalyticsManagerPropertyChanged":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.sparkScanMode.analyticsManagerPropertyChanged(a.property);}),true}case "barcodeFindForSettings":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeFindMode.forSettings(a.settings)),true}case "barcodeFindModeRemove":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeFindMode.removeMode()),true}case "barcodeFindSearchStart":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.start();}),true;case "barcodeFindSearchPause":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.pause();}),true;case "barcodeFindSearchStop":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.stop();}),true;case "barcodeFindSetItemList":{let{data:a}=t;return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.setItemList(a.itemList);}),true}case "barcodeFindSetEnabled":{let{data:a}=t;return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.setEnabled(a.enabled);}),true}case "barcodeFindApplySettings":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeFindMode.applySettings(a.settings)),true}case "barcodeFindAddBasicOverlay":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeFindMode.addBasicOverlay();}),true}case "barcodeFindRemoveBasicOverlay":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeFindMode.removeBasicOverlay();}),true}case "barcodeFindUpdateBasicOverlay":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeFindMode.updateBasicOverlay(a.jsonOverlay);}),true}case "barcodeFindSetTransformerFunction":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{let r=a$1(a.functionAsString);this.dataCaptureInstance.barcodeFindMode.setTransformerFunction(r);}),true}case "barcodeArForSettings":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeArMode.forSettings(a.settings)),true}case "barcodeArModeRemove":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeArMode.removeMode()),true}case "barcodeArSearchStart":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeArMode.start();}),true;case "barcodeArSearchPause":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeArMode.pause();}),true;case "barcodeArSearchStop":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeArMode.stop();}),true;case "barcodeArSetEnabled":{let{data:a}=t;return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeArMode.setEnabled(a.enabled);}),true}case "barcodeArApplySettings":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeArMode.applySettings(a.settings);}),true}default:return super.onMessage(t)}}};export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1,b as b$1}from'./chunk-HTKUJZG2.js';import {a
|
|
1
|
+
import {a as a$1,b as b$1}from'./chunk-HTKUJZG2.js';import {a}from'./chunk-ZWUKKWEI.js';import {a as a$2}from'./chunk-7JPCVI74.js';import {b}from'./chunk-QNZA644V.js';import {CameraSettings,convertToPublicFrameData}from'@scandit/web-datacapture-core';import {warnMultithreadingUnavailable}from'@scandit/web-datacapture-core/build/js/private/utils/warnMultithreadingUnavailable.js';var m=class u{constructor(){this.feedback=a.createDefaultFeedback();this.skipSerialization=true;this.type="barcodeFind";this._isEnabled=true;this._context=null;this.listeners=new Set;this.privateListeners=new Set;this.workerMessageListener=this.onWorkerMessage.bind(this);this._transformer=null;}static get recommendedCameraSettings(){let e=new CameraSettings(b.BarcodeFind.CameraSettings.settings);for(let[t,r]of Object.entries(b.BarcodeFind.CameraSettings.hiddenProperties))e.setProperty(t,r);return e}get context(){return this._context}get allListeners(){return [...this.privateListeners,...this.listeners]}static async forSettings(e){warnMultithreadingUnavailable();let t=new u;return t.settings=e,t}isEnabled(){return this._isEnabled}async setEnabled(e){var t;this._isEnabled=e,await this.workerCommand("barcodeFindSetEnabled",{enabled:e}),await((t=this.context)==null?void 0:t.update([{type:"modeEnabled",newValue:e}],{updateContext:false}));}async applySettings(e){this.settings=e,await this.workerCommand("barcodeFindApplySettings",{settings:e.toJSONObject()});}addListener(e){this.listeners.add(e);}removeListener(e){this.listeners.delete(e);}async setItemList(e){var t;for(let r of this.privateListeners)(t=r.onSetItemList)==null||t.call(r,e);return this.workerCommand("barcodeFindSetItemList",{itemList:e.map(r=>r.toJSONObject())})}async setBarcodeTransformer(e){var t;return this._transformer=e,this.workerCommand("barcodeFindSetTransformerFunction",{functionAsString:(t=this._transformer)==null?void 0:t.transformBarcodeData.toString()})}async start(){return this.workerCommand("barcodeFindSearchStart",{})}async stop(){return this.workerCommand("barcodeFindSearchStop",{})}async pause(){return this.workerCommand("barcodeFindSearchPause",{})}toJSONObject(){return {type:this.type,enabled:this.isEnabled(),settings:this.settings.toJSONObject()}}async workerCommand(e,t){this.context!=null&&await this.context.workerCommand(e,t);}async attachedToContext(e){this._context=e,this._context.subscribeToWorkerMessages(this.workerMessageListener),await this.workerCommand("barcodeFindForSettings",{settings:this.settings.toJSONObject()});}async detachedFromContext(){var e;await this.workerCommand("barcodeFindModeRemove",{}),(e=this._context)==null||e.unsubscribeToWorkerMessages(this.workerMessageListener),this._context=null;}async onWorkerMessage(e){var t,r,c;switch(e.type){case "barcodeFindDidUpdateSession":{if(this._context==null)return;for(let a of this.allListeners)(t=a.onDidUpdateSession)==null||t.call(a,this,a$2.fromJSON(e.payload.session),convertToPublicFrameData(e.payload.frameData,this._context));break}case "barcodeFindSearchPaused":{for(let a of this.allListeners){let i=e.payload.foundItems.map(o=>new a$1(new b$1(o),null));a.didPauseSearch(i);}break}case "barcodeFindSearchStarted":{for(let a of this.allListeners)a.didStartSearch();break}case "barcodeFindSearchStopped":{for(let a of this.allListeners){let i=e.payload.foundItems.map(o=>new a$1(new b$1(o),null));a.didStopSearch(i);}break}case "barcodeFindListUpdatedFeedback":{for(let a of this.allListeners)(r=a.onFindListUpdatedFeedback)==null||r.call(a);break}case "barcodeFindFeedback":{for(let a of this.allListeners)(c=a.onFeedback)==null||c.call(a);break}}}addPrivateListener(e){this.privateListeners.add(e);}removePrivateListener(e){this.privateListeners.delete(e);}};export{m as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import {Color}from'@scandit/web-datacapture-core';import {html}from'@scandit/web-datacapture-core/build/js/private/utils/html.js';import {css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var x=".container",u=".icon-text",m=".text";function f(){return html`<div class="container">
|
|
2
|
+
<div class="icon-text">
|
|
3
|
+
<slot name="barcode-icon"></slot>
|
|
4
|
+
<div class="text">Text</div>
|
|
5
|
+
</div>
|
|
6
|
+
</div>`}function g(){return css`:host{--background-color:#0000;--text-color:#000;--top-left-corner-radius:0px;--top-right-corner-radius:0px;--bottom-left-corner-radius:0px;--bottom-right-corner-radius:0px;--text-size:16px}.container{align-items:center;background-color:var(--background-color);border-radius:var(--top-left-corner-radius) var(--top-right-corner-radius) var(--bottom-right-corner-radius) var(--bottom-left-corner-radius);display:flex;flex-direction:row;justify-content:center;overflow:hidden;padding:.75rem;transition:.3s ease}.container.highlighted{opacity:.75}.icon-text{align-items:center;display:flex;gap:.5rem}.text{color:var(--text-color);font-size:var(--text-size);font-weight:600;width:100%}`}var c="[slot='barcode-icon']";function a(e){var t,o;return (o=(t=e.shadowRoot)==null?void 0:t.querySelector(c))==null?void 0:o.assignedElements()[0]}function T(e,t){let o=a(e);o!==t&&(o&&t==null&&o.remove(),t&&(t.slot="barcode-icon",e.append(t)));}function S(e,t){let o=e.style.getPropertyValue("--background-color");return o===""?t:Color.fromHex(o)}function E(e,t){e.style.setProperty("--background-color",`#${t.toJSON()}`);}function y(e,t){let o=e.style.getPropertyValue("--text-color");return o===""?t:Color.fromHex(o)}function C(e,t){e.style.setProperty("--text-color",`#${t.toJSON()}`);}function v(e){return Number.parseFloat(e.style.getPropertyValue("--text-size"))}function b(e,t){e.style.setProperty("--text-size",`${t}px`);}function L(e){var t;return (t=e.textContent)!=null?t:""}function H(e,t){e.textContent=t;}export{x as a,u as b,m as c,f as d,g as e,a as f,T as g,S as h,E as i,y as j,C as k,v as l,b as m,L as n,H as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-QNZA644V.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-QNZA644V.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,true);}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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-ZWUKKWEI.js';import {TorchState,Camera,FrameSourceState}from'@scandit/web-datacapture-core';var h=(t=>(t.Started="started",t.Paused="paused",t.Stopped="stopped",t))(h||{}),c=class{constructor(e,i,t,s,o){this.viewState="paused";this.barcodeFindViewUiListener=null;this.torchState=TorchState.Off;this.sessionState=null;this.barcodeFindView=e,this.barcodeFind=t,this.context=i,this.viewSettings=s,this.cameraSettings=o,t.feedback=a.createWithOptions(this.viewSettings.soundEnabled,this.viewSettings.hapticEnabled);}async prepare(){await this.barcodeFind.setEnabled(false),this.barcodeFind.addPrivateListener(this);let e=Camera.default;await this.context.setFrameSource(e),await this.context.frameSource.applySettings(this.cameraSettings),this.isTorchAvailable=await e.isTorchAvailable();}async dispose(){await this.context.removeMode(this.barcodeFind),this.barcodeFind.removePrivateListener(this);}async didPauseSearch(e){this.barcodeFindView.switchToPaused(Object.values(this.customerItemsListState),e);}async didStartSearch(){this.barcodeFindView.switchToStarted();}async didStopSearch(e){var i;(i=this.barcodeFindViewUiListener)==null||i.didTapFinishButton(e);}async onSetItemList(e){this.customerItemsListState=e.reduce((i,t)=>(i[t.searchOptions.barcodeData]=t,i),{}),this.barcodeFind.feedback.itemListUpdated.emit(),this.barcodeFindView.updateProgressBar(0,Object.values(this.customerItemsListState).length);}onDidUpdateSession(e,i,t){this.sessionState=i,this.barcodeFindView.updateProgressBar(this.sessionState.allFoundItems.length),this.barcodeFindView.renderDots(this.sessionState);}async onShutterButtonClicked(){this.viewState==="paused"||this.viewState==="stopped"?await this.startSearching():await this.pauseSearching();}async onTorchButtonClicked(){this.isTorchAvailable&&(await this.context.frameSource.setDesiredTorchState(this.torchState===TorchState.Off?TorchState.On:TorchState.Off),this.torchState=this.torchState===TorchState.Off?TorchState.On:TorchState.Off,this.barcodeFindView.toggleTorchIcon(this.torchState));}onDotClick(e){var t,s;let i=(t=this.sessionState)==null?void 0:t.trackedBarcodes[e];if(i!=null){let o=this.customerItemsListState[(s=i.barcode.data)!=null?s:""];this.barcodeFindView.moveCardOnTheFront(o);}}onFinishButtonClicked(){this.stopSearching();}onFindListUpdatedFeedback(){this.barcodeFind.feedback.itemListUpdated.emit();}onFeedback(){this.barcodeFind.feedback.found.emit(),this.barcodeFindView.setShutterButtonPulse(true);}async pauseSearching(){var e;this.viewState="paused",await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.Standby)),await this.barcodeFind.setEnabled(false),await this.barcodeFind.pause(),this.barcodeFindView.setShutterButtonPulse(false);}async startSearching(){var e;this.viewState="started",await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.On)),await this.barcodeFind.setEnabled(true),await this.barcodeFind.start();}async stopSearching(){var e;this.viewState="stopped",await this.barcodeFind.setEnabled(false),await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.Off)),await this.barcodeFind.stop(),this.barcodeFindView.setShutterButtonPulse(false),this.sessionState=null;}};export{h as a,c as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-ZBWUSH2F.js';import {b}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-ZBWUSH2F.js';import {b}from'./chunk-QNZA644V.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=false;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 {d,e as e$1,a,c,g,f,h,i,n,o,j,k,l,m}from'./chunk-
|
|
1
|
+
import {d,e as e$1,a,c,g,f,h,i,n,o,j,k,l,m}from'./chunk-HFXWQGKV.js';import {Color}from'@scandit/web-datacapture-core';import {defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js';import {ScanditHTMLElement}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var e=class e extends ScanditHTMLElement{constructor(){super();this._defaultBackgroundColor=Color.fromHex("#000000");this._defaultTextColor=Color.fromHex("#FFFFFF");let t=this.attachShadow({mode:"open"});t.innerHTML=d(),t.append(e$1()),this.containerElement=t.querySelector(a),this.textElement=t.querySelector(c);}static create(){return e.register(),document.createElement(e.tag)}static register(){defineCustomElements({[e.tag]:e});}set icon(t){g(this,t);}get icon(){return f(this)}get backgroundColor(){return h(this,this._defaultBackgroundColor)}set backgroundColor(t){i(this,t);}get text(){return n(this.textElement)}set text(t){o(this.textElement,t);}get textColor(){return j(this,this._defaultTextColor)}set textColor(t){k(this,t);}get textSize(){return l(this)}set textSize(t){m(this,t);}connectedCallback(){this.backgroundColor=this.backgroundColor,this.textColor=this.textColor;}};e.tag="scandit-barcode-ar-info-annotation-footer";var x=e;export{x as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a(r,...t){let e=document.createElement("template");return e.innerHTML=r.reduce((c,o,n)=>{let m=n<t.length?t[n]:"";return c+o+String(m)},""),e.content}export{a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import {Color}from'@scandit/web-datacapture-core';import {gray900}from'@scandit/web-datacapture-core/build/js/private/ui/colors.js';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var a="--text-size",i="--text-color",b="slot[name='text']",e=class e extends ScanditHTMLElement{constructor(){super();let t=this.attachShadow({mode:"open"});t.innerHTML=html`<button type="button" role="button" class="container">
|
|
2
2
|
<slot name="barcode-icon"></slot>
|
|
3
3
|
<slot name="text"></slot>
|
|
4
|
-
</button>`,t.append(e.createStyleElement().cloneNode(true)),this.containerElement=t.querySelector(".container"),this.containerElement.style.setProperty(a,"10px"),this.containerElement.style.setProperty(i,`#${gray900.toJSON()}`);}set textSize(t){this.containerElement.style.setProperty(a,`${t}px`);}get textSize(){let t=this.containerElement.style.getPropertyValue(a).replace("px","");return Number.parseInt(t,10)}set textColor(t){this.containerElement.style.setProperty(i,`#${t.toJSON()}`);}get textColor(){let t=this.containerElement.style.getPropertyValue(i);return Color.fromHex(t)}get text(){var o,n;let t=(o=this.containerElement.querySelector(b))==null?void 0:o.assignedSlot;return (n=t==null?void 0:t.textContent)!=null?n:""}set disabled(t){this.containerElement.disabled=t;}get disabled(){return this.containerElement.disabled}static register(){defineCustomElements({[e.tag]:e});}static create(t,o){e.register();let n=document.createElement(e.tag);if(t.slot="barcode-icon",t.width=24,t.height=24,o!=null){let r=document.createElement("span");r.slot="text",r.textContent=o,n.append(r);}return n.append(t),n}static createStyleElement(){return css`.container{align-items:center;-webkit-appearance:none;background-color:
|
|
4
|
+
</button>`,t.append(e.createStyleElement().cloneNode(true)),this.containerElement=t.querySelector(".container"),this.containerElement.style.setProperty(a,"10px"),this.containerElement.style.setProperty(i,`#${gray900.toJSON()}`);}set textSize(t){this.containerElement.style.setProperty(a,`${t}px`);}get textSize(){let t=this.containerElement.style.getPropertyValue(a).replace("px","");return Number.parseInt(t,10)}set textColor(t){this.containerElement.style.setProperty(i,`#${t.toJSON()}`);}get textColor(){let t=this.containerElement.style.getPropertyValue(i);return Color.fromHex(t)}get text(){var o,n;let t=(o=this.containerElement.querySelector(b))==null?void 0:o.assignedSlot;return (n=t==null?void 0:t.textContent)!=null?n:""}set disabled(t){this.containerElement.disabled=t;}get disabled(){return this.containerElement.disabled}static register(){defineCustomElements({[e.tag]:e});}static create(t,o){e.register();let n=document.createElement(e.tag);if(t.slot="barcode-icon",t.width=24,t.height=24,o!=null){let r=document.createElement("span");r.slot="text",r.textContent=o,n.append(r);}return n.append(t),n}static createStyleElement(){return css`.container{align-items:center;-webkit-appearance:none;background-color:initial;border:none;color:var(--text-color);display:flex;flex-direction:column;font-family:SF Pro Text,sans-serif;font-size:var(--text-size);gap:6px;justify-content:center;margin:0;padding:10px;transition:background-color .1s ease-in-out}.container:hover{background-color:#e0e0e0}.container:active{background-color:#ccc}`}};e.tag="scandit-barcode-ar-popover-button-annotation";var c=e;export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a,b as b$1}from'./chunk-E5OIMFVX.js';import {b}from'./chunk-
|
|
1
|
+
import {a,b as b$1}from'./chunk-E5OIMFVX.js';import {b}from'./chunk-QNZA644V.js';import {Vibration,Feedback,Brush,Color}from'@scandit/web-datacapture-core';var r=class{constructor(e,c){this.visualFeedbackColor=e,this.feedback=c;}static defaultSuccessFeedback(){let e=Vibration.withPattern([300]);return new Feedback(e,a)}static defaultErrorFeedback(){let e=Vibration.withPattern(b.SparkScan.SparkScanFeedback.errorVibrationPattern);return new Feedback(e,b$1)}static defaultSuccessBrush(){return new Brush(Color.fromRGBA(0,0,0,0),Color.fromRGBA(250,250,250,1),3)}static defaultErrorBrush(){return new Brush(Color.fromRGBA(0,0,0,0),Color.fromRGBA(250,68,70,1),1)}static success(){return new u}},k=class extends r{constructor(e,c,a,s,o){super(a!=null?a:Color.fromRGBA(250,68,70,1),o!=null?o:r.defaultErrorFeedback()),this.message=e,this.resumeCapturingDelay=c,this.brush=s!=null?s:r.defaultErrorBrush();}toJSONObject(){return {type:"error",barcodeFeedback:{feedback:this.feedback.toJSONObject(),message:this.message,resumeCapturingDelay:this.resumeCapturingDelay,visualFeedbackColor:this.visualFeedbackColor.toJSON(),brush:this.brush.toJSONObject()}}}},u=class extends r{constructor(e,c,a){super(e!=null?e:Color.fromRGBA(46,193,206,1),a!=null?a:r.defaultSuccessFeedback()),this.brush=c!=null?c:r.defaultSuccessBrush();}toJSONObject(){return {type:"success",barcodeFeedback:{visualFeedbackColor:this.visualFeedbackColor.toJSON(),feedback:this.feedback.toJSONObject(),brush:this.brush.toJSONObject()}}}};export{r as a,k as b,u as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-XDBBLGPM.js';import {a as a$1}from'./chunk-D26TRBZS.js';import {b}from'./chunk-EWNVCDJ6.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 n{constructor(){this.skipSerialization=true;this.type="barcodeAr";this._isEnabled=true;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",true),e}set context(e){this._context=e;}get allListeners(){return [...this.privateListeners,...this.listeners]}static async forContext(e,t){warnMultithreadingUnavailable();let r=new n;return r.feedback=await a.createDefaultBarcodeArFeedback(),r.settings=t,await(e==null?void 0:e.addMode(r)),r}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){var t;this._isEnabled=e,await this.workerCommand("barcodeArSetEnabled",{enabled:e}),await((t=this.context)==null?void 0:t.update([{type:"modeEnabled",newValue:e}],{updateContext:false}));}async applySettings(e){this.settings=e,await this.workerCommand("barcodeArApplySettings",{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("barcodeArForSettings",{settings:this.settings.toJSONObject()});}async detachedFromContext(){var e;await this.workerCommand("barcodeArModeRemove",{}),(e=this._context)==null||e.unsubscribeToWorkerMessages(this.workerMessageListener),this._context=null;}async start(){return this.workerCommand("barcodeArSearchStart",{})}async stop(){return this.workerCommand("barcodeArSearchStop",{})}async pause(){return this.workerCommand("barcodeArSearchPause",{})}async workerCommand(e,t){this.context!=null&&await this.context.workerCommand(e,t);}addPrivateListener(e){this.privateListeners.add(e);}removePrivateListener(e){this.privateListeners.delete(e);}async onWorkerMessage(e){var t;switch(e.type){case "barcodeArDidUpdateSession":{if(!this._isEnabled||!this._context)return;for(let r of this.allListeners)(t=r.didUpdateSession)==null||t.call(r,this,a$1.fromJSON(e.payload.session),convertToPublicFrameData(e.payload.frameData,this._context));break}}}};export{o as a};
|
|
@@ -11,4 +11,4 @@ import {html,ScanditHTMLElement,defineCustomElements,css}from'@scandit/web-datac
|
|
|
11
11
|
<slot name="right"></slot>
|
|
12
12
|
</div>
|
|
13
13
|
</div>
|
|
14
|
-
`,t=class t extends ScanditHTMLElement{constructor(){super();let e=this.attachShadow({mode:"open"});e.innerHTML=c,e.append(t.createStyleElement().cloneNode(true));}set title(e){var a;let i=(a=this.shadowRoot)==null?void 0:a.querySelector(".title");i!=null&&(i.textContent=e);}set subtitle(e){var a;let i=(a=this.shadowRoot)==null?void 0:a.querySelector(".subtitle");i!=null&&(i.textContent=e);}static create(){return document.createElement(t.tag)}static register(){defineCustomElements({[t.tag]:t});}static createStyleElement(){return css`#container{align-items:center;display:flex;flex-direction:row;gap:.625rem;justify-content:center;padding:1rem}.overflow-text-mask{-webkit-mask-image:linear-gradient(90deg,#000 95
|
|
14
|
+
`,t=class t extends ScanditHTMLElement{constructor(){super();let e=this.attachShadow({mode:"open"});e.innerHTML=c,e.append(t.createStyleElement().cloneNode(true));}set title(e){var a;let i=(a=this.shadowRoot)==null?void 0:a.querySelector(".title");i!=null&&(i.textContent=e);}set subtitle(e){var a;let i=(a=this.shadowRoot)==null?void 0:a.querySelector(".subtitle");i!=null&&(i.textContent=e);}static create(){return document.createElement(t.tag)}static register(){defineCustomElements({[t.tag]:t});}static createStyleElement(){return css`#container{align-items:center;display:flex;flex-direction:row;gap:.625rem;justify-content:center;padding:1rem}.overflow-text-mask{-webkit-mask-image:linear-gradient(90deg,#000 95%,#0000);mask-image:linear-gradient(90deg,#000 95%,#0000);overflow-x:auto;padding-right:.3rem}#container>div{display:flex;flex:1 1 17.5%;justify-content:center}#container>div.middle{flex:1 1 65%;flex-direction:column;overflow:hidden}#container>div .rect{background:gray;height:50px;width:50px}#container .title{color:#121619;font-size:.938rem;font-weight:600}#container .subtitle{font-size:.75rem;font-weight:400;margin-top:.25rem}`}};t.tag="scandit-image-and-text-card-layout";var n=t;n.register();export{n as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-BRRT6GC7.js';import {b as b$1}from'./chunk-SZUPDKV5.js';import {b}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-BRRT6GC7.js';import {b as b$1}from'./chunk-SZUPDKV5.js';import {b}from'./chunk-QNZA644V.js';var n=class{constructor(){this.defaultHandMode=b.SparkScan.SparkScanViewSettings.defaultHandMode;this.defaultScanningMode=new b$1("single","default");this.defaultTorchState=b.SparkScan.SparkScanViewSettings.defaultTorchState;this.defaultMiniPreviewSize=b.SparkScan.SparkScanViewSettings.defaultMiniPreviewSize;this.defaultCameraPosition=b.SparkScan.SparkScanViewSettings.defaultCameraPosition;this.hapticEnabled=b.SparkScan.SparkScanViewSettings.hapticEnabled;this.holdToScanEnabled=b.SparkScan.SparkScanViewSettings.holdToScanEnabled;this.inactiveStateTimeout=b.SparkScan.SparkScanViewSettings.inactiveStateTimeout;this.soundEnabled=b.SparkScan.SparkScanViewSettings.soundEnabled;this.toastSettings=new a;this.triggerButtonCollapseTimeout=b.SparkScan.SparkScanViewSettings.triggerButtonCollapseTimeout;this.visualFeedbackEnabled=b.SparkScan.SparkScanViewSettings.visualFeedbackEnabled;this.zoomFactorIn=b.SparkScan.SparkScanViewSettings.zoomFactorIn;this.zoomFactorOut=b.SparkScan.SparkScanViewSettings.zoomFactorOut;}toJSONObject(){return {defaultHandMode:this.defaultHandMode,defaultScanningMode:this.defaultScanningMode.toJSONObject(),defaultTorchState:this.defaultTorchState,defaultMiniPreviewSize:this.defaultMiniPreviewSize,defaultCameraPosition:this.defaultCameraPosition,hapticEnabled:this.hapticEnabled,holdToScanEnabled:this.holdToScanEnabled,inactiveStateTimeout:this.inactiveStateTimeout,soundEnabled:this.soundEnabled,toastSettings:this.toastSettings.toJSONObject(),triggerButtonCollapseTimeout:this.triggerButtonCollapseTimeout,visualFeedbackEnabled:this.visualFeedbackEnabled,zoomFactorIn:this.zoomFactorIn,zoomFactorOut:this.zoomFactorOut}}};export{n as a};
|