import {a as a$2}from'./chunk-SQONULJF.js';import {a}from'./chunk-QWUV2OFD.js';import {a as a$1}from'./chunk-SYDG6PPD.js';import {nativeHandle}from'@scandit/web-datacapture-core/build/js/private/nativeHandle.js';var o=class extends a{constructor(){super(...arguments);this.dataTypePatterns=[];}setDataTypePatterns(t){return this.dataTypePatterns=t,this.getThis()}setDataTypePattern(t){return this.dataTypePatterns=[String(t)],this.getThis()}setLocation(t){return this.location=t,this.getThis()}async build(t){var i;let n=await a$1().workerCommand("labelCaptureBuildCustomText",{payload:{name:t,dataTypePatterns:this.dataTypePatterns.map(p=>p.toString()),hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,patterns:this.patterns,locationHandle:(i=this.location)==null?void 0:i[nativeHandle]}}),e=a$2.forHandle(n);return e._dataTypePatterns=this.dataTypePatterns,e._isOptional=this._isOptional,e._name=t,e._patterns=this.patterns,e._location=this.location,e}getThis(){return this}};export{o as a};