import {a as a$3}from'./chunk-N2Q2DERV.js';import {a as a$2}from'./chunk-SYDG6PPD.js';import {a as a$1}from'./chunk-WX63L6GU.js';import {nativeHandle}from'@scandit/web-datacapture-core/build/js/private/nativeHandle.js';var a=class extends a$1{constructor(){super(...arguments);this.anchorRegexes=[];}setAnchorRegexes(e){return this.anchorRegexes=e,this.getThis()}setAnchorRegex(e){return this.anchorRegexes=[String(e)],this.getThis()}setLocation(e){return this.location=e,this.getThis()}async build(e){var i;let n=await a$2().workerCommand("labelCaptureBuildCustomBarcode",{payload:{name:e,dataTypePatterns:this.anchorRegexes.map(l=>l.toString()),hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,patterns:this.valueRegexes,symbologies:this.symbologies,locationHandle:(i=this.location)==null?void 0:i[nativeHandle]}}),t=a$3.forHandle(n);return t._anchorRegexes=this.anchorRegexes,t._isOptional=this._isOptional,t._name=e,t._valueRegexes=this.valueRegexes,t._symbologies=this.symbologySettings,t._location=this.location,t}getThis(){return this}};export{a};