import{s as h,t as R,f as v,ag as _,b_ as Q,y as b,aT as g,b$ as D,z as y,aX as q,Q as u,a1 as I}from"./index-DT8qTvyx.js";import P from"./InputDateRange-BVa05dNn.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,b({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([q(),u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],t.prototype,"render",null),t}(P),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([I({type:"input-quarter-range"})],t),t}(E);export{U as QuarterRangeControlRenderer,E as default};
