import {a as a$2}from'./chunk-DNILX7DX.js';import {a}from'./chunk-QWUV2OFD.js';import {a as a$1}from'./chunk-SYDG6PPD.js';var n=class extends a{constructor(){super(...arguments);this.shouldResetDataTypePatterns=false;}setDataTypePatterns(t){return this.dataTypePatterns=t,this}setDataTypePattern(t){return this.dataTypePatterns=[t],this}resetDataTypePatterns(){return this.shouldResetDataTypePatterns=true,this}async build(t){var a;let p=await a$1().workerCommand("labelCaptureBuildWeightText",{payload:{name:t,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,patterns:this.patterns,dataTypePatterns:this.dataTypePatterns,shouldResetDataTypePatterns:this.shouldResetDataTypePatterns}}),e=a$2.forHandle(p);return e._isOptional=this._isOptional,e._name=t,e._patterns=this.patterns,e._dataTypePatterns=(a=this.dataTypePatterns)!=null?a:[],e}getThis(){return this}};export{n as a};