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