import {a as a$1}from'./chunk-SYDG6PPD.js';import {nativeHandle}from'@scandit/web-datacapture-core/build/js/private/nativeHandle.js';var a=class a{constructor(i){this._hiddenProperties={};this._adaptiveRecognitionMode="off";this[nativeHandle]=i;}get name(){return this._name}get fields(){return this._fields}get adaptiveRecognitionMode(){return this._adaptiveRecognitionMode}async setAdaptiveRecognitionMode(i){await a$1().workerCommand("labelDefinitionSetAdaptiveRecognitionMode",{payload:{labelDefinitionHandle:this[nativeHandle],adaptiveRecognitionMode:i}}),this._adaptiveRecognitionMode=i;}static builder(){return new p}static async createVinLabelDefinition(i,e){let{handle:r,hiddenProperties:n,fields:s}=await a$1().workerCommand("labelCaptureBuildVinLabelDefinition",{payload:{name:i,adaptiveRecognitionMode:e}}),t=a.forHandle(r);return t._hiddenProperties=n,t._name=i,t._fields=s,t._adaptiveRecognitionMode=e!=null?e:"off",t}static async createPriceCaptureDefinition(i,e){let{handle:r,hiddenProperties:n,fields:s}=await a$1().workerCommand("labelCaptureBuildPriceCaptureDefinition",{payload:{name:i,adaptiveRecognitionMode:e}}),t=a.forHandle(r);return t._hiddenProperties=n,t._name=i,t._fields=s,t._adaptiveRecognitionMode=e!=null?e:"off",t}static forHandle(i){return new a(i)}},l=a,p=class{constructor(){this.fieldDefinitions=[];this.hiddenProperties={};this.adaptiveRecognitionMode_="off";}addSerialNumberBarcode(i){return this.fieldDefinitions.push(i),this}addPartNumberBarcode(i){return this.fieldDefinitions.push(i),this}addImeiOneBarcode(i){return this.fieldDefinitions.push(i),this}addImeiTwoBarcode(i){return this.fieldDefinitions.push(i),this}addCustomBarcode(i){return this.fieldDefinitions.push(i),this}addUnitPriceText(i){return this.fieldDefinitions.push(i),this}addTotalPriceText(i){return this.fieldDefinitions.push(i),this}addWeightText(i){return this.fieldDefinitions.push(i),this}addPackingDateText(i){return this.fieldDefinitions.push(i),this}addExpiryDateText(i){return this.fieldDefinitions.push(i),this}addDateText(i){return this.fieldDefinitions.push(i),this}addCustomText(i){return this.fieldDefinitions.push(i),this}setHiddenProperty(i,e){return this.hiddenProperties[i]=e,this}setHiddenProperties(i){return this.hiddenProperties=i,this}adaptiveRecognitionMode(i){return this.adaptiveRecognitionMode_=i,this}async build(i){let e=await a$1().workerCommand("labelCaptureBuildLabelDefinition",{payload:{name:i,fieldDefinitionHandles:this.fieldDefinitions.map(n=>n[nativeHandle]),hiddenProperties:this.hiddenProperties,adaptiveRecognitionMode:this.adaptiveRecognitionMode_}}),r=l.forHandle(e);return r._fields=this.fieldDefinitions,r._hiddenProperties=this.hiddenProperties,r._adaptiveRecognitionMode=this.adaptiveRecognitionMode_,r._name=i,r}};export{l as a,p as b};