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