import {a as a$1}from'./chunk-IEE5MKEA.js';import {a}from'./chunk-J4VFWBJ7.js';import {Quadrilateral}from'@scandit/web-datacapture-core';var l=(a=>(a.EAN13UPCA="ean13Upca",a.UPCE="upce",a.EAN8="ean8",a.Code39="code39",a.Code93="code93",a.Code128="code128",a.Code11="code11",a.Code25="code25",a.Codabar="codabar",a.InterleavedTwoOfFive="interleavedTwoOfFive",a.MSIPlessey="msiPlessey",a.QR="qr",a.DataMatrix="dataMatrix",a.Aztec="aztec",a.MaxiCode="maxicode",a.DotCode="dotcode",a.KIX="kix",a.RM4SCC="rm4scc",a.GS1Databar="databar",a.GS1DatabarExpanded="databarExpanded",a.GS1DatabarLimited="databarLimited",a.PDF417="pdf417",a.MicroPDF417="microPdf417",a.MicroQR="microQr",a.Code32="code32",a.Lapa4SC="lapa4sc",a.IATATwoOfFive="iata2of5",a.MatrixTwoOfFive="matrix2of5",a.USPSIntelligentMail="uspsIntelligentMail",a.ArUco="aruco",a))(l||{}),D=(r=>(r.A="A",r.B="B",r.C="C",r))(D||{}),m=(i=>(i.Mod10="mod10",i.Mod11="mod11",i.Mod16="mod16",i.Mod43="mod43",i.Mod47="mod47",i.Mod103="mod103",i.Mod10AndMod11="mod1110",i.Mod10AndMod10="mod1010",i))(m||{}),g=(n=>(n.None="none",n.Unknown="unknown",n.Linked="linked",n.GS1TypeA="gs1TypeA",n.GS1TypeB="gs1TypeB",n.GS1TypeC="gs1TypeC",n))(g||{}),s=class c{get isStructuredAppend(){return this._structuredAppendData!=null}get structuredAppendData(){return this._structuredAppendData}get addOnData(){return this._addOnData}get compositeData(){return this._compositeData}get compositeFlag(){return this._compositeFlag}get compositeRawData(){return this._compositeRawData}get data(){return this._data}get encodingRanges(){return this._encodingRanges}get frameID(){return this._frameID}get isColorInverted(){return this._isColorInverted}get isGS1DataCarrier(){return this._isGS1DataCarrier}get location(){return this._location}get rawData(){return this._rawData}get symbolCount(){return this._symbolCount}get symbology(){return this._symbology}static fromJSON(e){var r;let t=new c;return t._symbology=e.symbology,t._data=e.data,t._rawData=e.rawData,t._compositeData=e.compositeData,t._compositeRawData=e.compositeRawData,t._addOnData=(r=e.addOnData)!=null?r:null,t._isGS1DataCarrier=e.isGS1DataCarrier,t._compositeFlag=e.compositeFlag,t._isColorInverted=e.isColorInverted,t._symbolCount=e.symbolCount,t._frameID=e.frameId,t._encodingRanges=e.encodingRanges.map(o=>a.fromJSON(o)),t._location=Quadrilateral.fromJSON(e.location),t._structuredAppendData=a$1.fromJSON(e.structuredAppendData),t}toJSONObject(){var e,t,r;return {symbology:this.symbology.toString(),data:this.data,rawData:this.rawData,compositeData:this.compositeData,compositeRawData:this.compositeRawData,addOnData:(e=this.addOnData)!=null?e:null,isGS1DataCarrier:this.isGS1DataCarrier,compositeFlag:this.compositeFlag.toString(),isColorInverted:this.isColorInverted,symbolCount:this.symbolCount,frameId:this.frameID,encodingRanges:this.encodingRanges.map(o=>o.toJSONObject()),location:this.location.toJSONObject(),structuredAppendData:(r=(t=this.structuredAppendData)==null?void 0:t.toJSONObject())!=null?r:null}}};export{l as a,D as b,m as c,g as d,s as e};