import {a}from'./chunk-SYDG6PPD.js';import {nativeHandle}from'@scandit/web-datacapture-core/build/js/private/nativeHandle.js';var o=class o{constructor(i){this._hiddenProperties={};this[nativeHandle]=i;}get name(){return this._name}get fields(){return this._fields}static builder(){return new l}static async createVinLabelDefinition(i){let{handle:r,hiddenProperties:t,fields:n}=await a().workerCommand("labelCaptureBuildVinLabelDefinition",{payload:{name:i}}),e=o.forHandle(r);return e._hiddenProperties=t,e._name=i,e._fields=n,e}static async createPriceCaptureDefinition(i){let{handle:r,hiddenProperties:t,fields:n}=await a().workerCommand("labelCaptureBuildPriceCaptureDefinition",{payload:{name:i}}),e=o.forHandle(r);return e._hiddenProperties=t,e._name=i,e._fields=n,e}static forHandle(i){return new o(i)}},d=o,l=class{constructor(){this.fieldDefinitions=[];this.hiddenProperties={};}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}addCustomText(i){return this.fieldDefinitions.push(i),this}setHiddenProperty(i,r){return this.hiddenProperties[i]=r,this}setHiddenProperties(i){return this.hiddenProperties=i,this}async build(i){let r=await a().workerCommand("labelCaptureBuildLabelDefinition",{payload:{name:i,fieldDefinitionHandles:this.fieldDefinitions.map(n=>n[nativeHandle]),hiddenProperties:this.hiddenProperties}}),t=d.forHandle(r);return t._fields=this.fieldDefinitions,t._hiddenProperties=this.hiddenProperties,t._name=i,t}};export{d as a,l as b};