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