import{s as D,t as R,f as h,ag as M,c1 as _,y as I,aV as v,c2 as g,z as y,aZ as P,Q as m,a1 as b}from"./index-BPRWoLf4.js";import E from"./InputDateRange-88pd9AIh.js";var N=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var a=this.props,F=a.className;a.style;var l=a.classPrefix,u=a.minDate,d=a.maxDate,p=a.minDuration,c=a.maxDuration,o=a.data,r=a.format,f=a.mobileUI,i=a.valueFormat,x=a.inputFormat,C=a.displayFormat,n=a.env,s=R(a,["className","style","classPrefix","minDate","maxDate","minDuration","maxDuration","data","format","mobileUI","valueFormat","inputFormat","displayFormat","env"]);return h.createElement("div",{className:M("".concat(l,"DateRangeControl"),F)},h.createElement(_,I({viewMode:"months",mobileUI:f,valueFormat:i||r,displayFormat:C||x,classPrefix:l,popOverContainer:f?n==null?void 0:n.getModalContainer:s.popOverContainer||n.getModalContainer,popOverContainerSelector:s.popOverContainerSelector,onRef:this.getRef,data:o},s,{minDate:u?v(u,o,i||r):void 0,maxDate:d?v(d,o,i||r):void 0,minDuration:p?g(p):void 0,maxDuration:c?g(c):void 0,onChange:this.handleChange,onFocus:this.dispatchEvent,onBlur:this.dispatchEvent})))},y([P(),m("design:type",Function),m("design:paramtypes",[]),m("design:returntype",void 0)],t.prototype,"render",null),t}(E),Y=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.defaultProps={format:"X",inputFormat:"YYYY-MM",joinValues:!0,delimiter:",",ranges:"",shortcuts:"thismonth,prevmonth",animation:!0},t=y([b({type:"input-month-range"})],t),t}(N);export{Y as MonthRangeControlRenderer,N as default};
