import{s as _,aI as h,aX as o,f as D,z as M,D as x}from"./index-BPRWoLf4.js";var N=function(r){_(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(){var n=this.props,s=n.delimiter,g=s===void 0?",":s,d=n.connector,y=d===void 0?"~":d,i=n.value,l=n.valueFormat,m=n.format,c=m===void 0?"YYYY-MM-DD":m,u=n.displayFormat,F=n.classnames,R=n.className,Y=n.style;if(!i)return null;typeof i=="string"&&(i=i.split(g));var f=h(i,2),v=f[0],e=v===void 0?"":v,p=f[1],a=p===void 0?"":p;return l?(e=o(e,l),a=o(a,l)):(e=o(e*1e3),a=o(a*1e3)),e=e!=null&&e.isValid()?e.format(u||c):"",a=a!=null&&a.isValid()?a.format(u||c):"",D.createElement("span",{className:F("DateRangeField",R),style:Y},[e,a].join(" ".concat(y," ")))},t.defaultProps={format:"YYYY-MM-DD",valueFormat:"X",connector:"~"},t}(D.Component),T=function(r){_(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t=M([x({type:"date-range"})],t),t}(N);export{N as DateRangeField,T as DateRangeFieldRenderer};
