import {a as a$2}from'./chunk-4IN2HVLU.js';import {a}from'./chunk-AVKEMR5W.js';import {a as a$1}from'./chunk-SYDG6PPD.js';var l=class extends a{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}setLabelDateFormat(e){return this.labelDateFormat=e,this}async build(e){var a,r;let n=await a$1().workerCommand("labelCaptureBuildPackingDateText",{payload:{name:e,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,patterns:this.valueRegexes,dataTypePatterns:this.anchorRegexes,shouldResetDataTypePatterns:this.shouldResetAnchorRegexes,labelDateFormat:(a=this.labelDateFormat)==null?void 0:a.toJSONObject()}}),t=a$2.forHandle(n);return t._isOptional=this._isOptional,t._name=e,t._valueRegexes=this.valueRegexes,t._dateFormat=this.labelDateFormat,t._anchorRegexes=(r=this.anchorRegexes)!=null?r:[],t}getThis(){return this}};export{l as a};