import {a as a$3}from'./chunk-JF7J7XP2.js';import {a as a$1}from'./chunk-AVKEMR5W.js';import {a as a$2}from'./chunk-SYDG6PPD.js';var a=class extends a$1{constructor(){super(...arguments);this.shouldResetAnchorRegexes=false;}setAnchorRegexes(e){return this.anchorRegexes=e,this}setAnchorRegex(e){return this.anchorRegexes=[e],this}resetAnchorRegexes(){return this.shouldResetAnchorRegexes=true,this}async build(e){var s;let n=await a$2().workerCommand("labelCaptureBuildTotalPriceText",{payload:{name:e,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,patterns:this.valueRegexes,dataTypePatterns:this.anchorRegexes,shouldResetDataTypePatterns:this.shouldResetAnchorRegexes}}),t=a$3.forHandle(n);return t._isOptional=this._isOptional,t._name=e,t._valueRegexes=this.valueRegexes,t._anchorRegexes=(s=this.anchorRegexes)!=null?s:[],t}getThis(){return this}};export{a};