UNPKG

@scandit/web-datacapture-barcode

Version:

Scandit Data Capture SDK for the Web

1 lines 653 B
import{Feedback as e,Sound as t,Vibration as n}from"@scandit/web-datacapture-core";import{throttle as r}from"@scandit/web-datacapture-core/build/js/private/utils/throttle.js";const i=n.withPattern([300]);var a=class n{constructor(t,n,a){this.scanned=new e(n?i:null,t?a:null),this.tapped=new e(n?i:null,null),this.scanned.emit=r(this.scanned.emit.bind(this.scanned),500)}static async createWithOptions(e,r){let{scanSound:i}=await import(`./assets/checkSound.js`);return new n(e,r,new t(i))}static async createDefaultBarcodeArFeedback(){let{scanSound:e}=await import(`./assets/checkSound.js`);return new n(!0,!0,new t(e))}};export{a as BarcodeArFeedback};