UNPKG

@scandit/web-datacapture-barcode

Version:

Scandit Data Capture SDK for the Web

4 lines (2 loc) 863 B
var a=0,r=class{constructor(t,n){this._content=null;this.uid="";this._searchOptions=t,this._content=n,this.uid=`BarcodeFindItem-${a++}`;}get searchOptions(){return this._searchOptions}get content(){return this._content}toJSONObject(){let t={searchOptions:{barcodeData:this.searchOptions.barcodeData},content:null};return this.content!=null&&(t.content={info:this.content.info,additionalInfo:this.content.additionalInfo,image:this.content.image}),t}},l=class{constructor(t){this._barcodeData=t;}get barcodeData(){return this._barcodeData}},s=class{constructor(t,n,i){this._info=null;this._additionalInfo=null;this._image=null;this._info=t!=null?t:null,this._additionalInfo=n!=null?n:null,this._image=i!=null?i:null;}get image(){return this._image}get additionalInfo(){return this._additionalInfo}get info(){return this._info}}; export { r as a, l as b, s as c };