import {a as a$2}from'./chunk-BJSBS5IL.js';import {a as a$1}from'./chunk-BJFWGOUS.js';import {a as a$4}from'./chunk-DHFJ3EFE.js';import {a}from'./chunk-AVKEMR5W.js';import {a as a$3}from'./chunk-SYDG6PPD.js';var n=class h extends a{constructor(){super(...arguments);this.shouldResetAnchorRegexes=false;this.labelDateFormat=h.defaultLabelDateFormat();}static defaultLabelDateFormat(){return new a$1(a$2.DMY,false)}setAnchorRegexes(e){return this.anchorRegexes=e,this}setAnchorRegex(e){return this.anchorRegexes=[e],this}resetAnchorRegexes(){return this.shouldResetAnchorRegexes=true,this}setLabelDateFormat(e){return this.labelDateFormat=e,this}async build(e){var a;let p=await a$3().workerCommand("labelCaptureBuildDateText",{payload:{name:e,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,patterns:this.valueRegexes,dataTypePatterns:this.anchorRegexes,shouldResetDataTypePatterns:this.shouldResetAnchorRegexes,labelDateFormat:this.labelDateFormat.toJSONObject()}}),t=a$4.forHandle(p);return t._isOptional=this._isOptional,t._name=e,t._valueRegexes=this.valueRegexes,t._labelDateFormat=this.labelDateFormat,t._anchorRegexes=(a=this.anchorRegexes)!=null?a:[],t}getThis(){return this}};export{n as a};