@mailstep/design-system 0.7.31-beta.1 → 0.7.31-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.7.31-beta.1",
3
+ "version": "0.7.31-beta.2",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -47,5 +47,5 @@ export var Timepicker = function (_a) {
47
47
  var timeValue = "".concat(hours.toString().padStart(2, '0'), ":").concat(minutes.toString().padStart(2, '0'));
48
48
  var staticTimerValue = isSecondDatePicker ? TimePickerRepeat.TO : TimePickerRepeat.FROM;
49
49
  var timeTypeRepeaterValue = (others === null || others === void 0 ? void 0 : others.dateTypeRepeater) ? others === null || others === void 0 ? void 0 : others.timeTypeRepeater : staticTimerValue;
50
- return (_jsx(x.div, { borderTop: "1px solid", borderColor: "lightGray2", pt: "8px", mb: "8px", children: _jsxs(FooterRow, { disabled: disabled, children: [_jsxs(x.div, { children: [_jsx(Icon, { icon: "clock" }), _jsx(FooterRowLabel, { children: i18n._({ id: 'dataGrid.filterCell.time', message: 'Time' }) })] }), _jsxs(x.div, { display: "flex", alignItems: "center", children: [_jsxs(x.select, { onChange: handleChangeTimer, value: timeTypeRepeaterValue, textAlign: "right", disabled: disabled || !(others === null || others === void 0 ? void 0 : others.dateTypeRepeater), border: "none", children: [_jsx("option", { value: TimePickerRepeat.AT, children: TimePickerRepeatTrans[TimePickerRepeat.AT] }), _jsx("option", { value: TimePickerRepeat.FROM, children: TimePickerRepeatTrans[TimePickerRepeat.FROM] }), _jsx("option", { value: TimePickerRepeat.TO, children: TimePickerRepeatTrans[TimePickerRepeat.TO] })] }), _jsx(TimeInput, { type: "time", onChange: onChange, disabled: disabled, value: timeValue })] })] }) }));
50
+ return (_jsx(x.div, { borderTop: "1px solid", borderColor: "lightGray2", pt: "8px", mb: "8px", children: _jsxs(FooterRow, { disabled: disabled, children: [_jsxs(x.div, { children: [_jsx(Icon, { icon: "clock" }), _jsx(FooterRowLabel, { children: i18n._({ id: 'dataGrid.filterCell.time', message: 'Time' }) })] }), _jsxs(x.div, { display: "flex", alignItems: "center", children: [_jsxs(x.select, { onChange: handleChangeTimer, value: timeTypeRepeaterValue, textAlign: "right", disabled: disabled || !(others === null || others === void 0 ? void 0 : others.dateTypeRepeater), border: "none", children: [_jsx("option", { value: TimePickerRepeat.AT, children: TimePickerRepeatTrans[TimePickerRepeat.AT] }), isSecondDatePicker ? (_jsx("option", { value: TimePickerRepeat.TO, children: TimePickerRepeatTrans[TimePickerRepeat.TO] })) : (_jsx("option", { value: TimePickerRepeat.FROM, children: TimePickerRepeatTrans[TimePickerRepeat.FROM] }))] }), _jsx(TimeInput, { type: "time", onChange: onChange, disabled: disabled, value: timeValue })] })] }) }));
51
51
  };
package/ui/index.es.js CHANGED
@@ -22889,8 +22889,7 @@ const E3 = {
22889
22889
  /* @__PURE__ */ g.jsxs(Ye.div, { display: "flex", alignItems: "center", children: [
22890
22890
  /* @__PURE__ */ g.jsxs(Ye.select, { onChange: m, value: x, textAlign: "right", disabled: i || !(t != null && t.dateTypeRepeater), border: "none", children: [
22891
22891
  /* @__PURE__ */ g.jsx("option", { value: ki.AT, children: I3[ki.AT] }),
22892
- /* @__PURE__ */ g.jsx("option", { value: ki.FROM, children: I3[ki.FROM] }),
22893
- /* @__PURE__ */ g.jsx("option", { value: ki.TO, children: I3[ki.TO] })
22892
+ o ? /* @__PURE__ */ g.jsx("option", { value: ki.TO, children: I3[ki.TO] }) : /* @__PURE__ */ g.jsx("option", { value: ki.FROM, children: I3[ki.FROM] })
22894
22893
  ] }),
22895
22894
  /* @__PURE__ */ g.jsx(VAe, { type: "time", onChange: v, disabled: i, value: y })
22896
22895
  ] })
package/ui/index.umd.js CHANGED
@@ -1730,7 +1730,7 @@ Me.version="2.30.1",Cfe(fr),Me.fn=Pe,Me.min=cpe,Me.max=upe,Me.now=dpe,Me.utc=ho,
1730
1730
  &::-webkit-calendar-picker-indicator {
1731
1731
  display: none;
1732
1732
  }
1733
- `,Nhe=({setTime:e,others:t,onChangeOthers:r,value:n,disabled:i,isSecondDatePicker:o})=>{var w,k,T,P;const l=((w=n==null?void 0:n.getHours)==null?void 0:w.call(n))||((k=t==null?void 0:t.time)==null?void 0:k.h)||0,c=((T=n==null?void 0:n.getMinutes)==null?void 0:T.call(n))||((P=t==null?void 0:t.time)==null?void 0:P.m)||0,[u,f]=I.useState(l),[p,A]=I.useState(c),v=I.useCallback(L=>{const F=L.target.value,[V,H]=F.split(":"),G=o?Un.TO:Un.FROM,Z=t!=null&&t.dateTypeRepeater?(t==null?void 0:t.timeTypeRepeater)||G:void 0;f(Number(V)),A(Number(H)),r==null||r({...t,timeTypeRepeater:Z,time:{h:Number(V),m:Number(H)}})},[r,t,o]),m=I.useCallback(L=>{r==null||r({...t,timeTypeRepeater:L.target.value})},[r,t]);I.useEffect(()=>{n&&e("hours",u)},[u]),I.useEffect(()=>{n&&e("minutes",p)},[p]);const y=`${u.toString().padStart(2,"0")}:${p.toString().padStart(2,"0")}`,C=o?Un.TO:Un.FROM,x=t!=null&&t.dateTypeRepeater?t==null?void 0:t.timeTypeRepeater:C;return g.jsx(_e.div,{borderTop:"1px solid",borderColor:"lightGray2",pt:"8px",mb:"8px",children:g.jsxs(wD,{disabled:i,children:[g.jsxs(_e.div,{children:[g.jsx(ht,{icon:"clock"}),g.jsx(xD,{children:He._({id:"dataGrid.filterCell.time",message:"Time"})})]}),g.jsxs(_e.div,{display:"flex",alignItems:"center",children:[g.jsxs(_e.select,{onChange:m,value:x,textAlign:"right",disabled:i||!(t!=null&&t.dateTypeRepeater),border:"none",children:[g.jsx("option",{value:Un.AT,children:yh[Un.AT]}),g.jsx("option",{value:Un.FROM,children:yh[Un.FROM]}),g.jsx("option",{value:Un.TO,children:yh[Un.TO]})]}),g.jsx(Dhe,{type:"time",onChange:v,disabled:i,value:y})]})]})})};function zm({onClickPrev:e,onClickSwitch:t,onClickNext:r,switchContent:n,switchColSpan:i,switchProps:o,label:l}){return g.jsxs("tr",{children:[g.jsx("th",{className:"rdtPrev",onClick:e,children:g.jsx("span",{children:"‹"})}),g.jsx("th",{className:"rdtSwitch",colSpan:i,onClick:t,...o,children:n}),g.jsx("th",{className:"rdtNext",onClick:r,children:g.jsx("span",{children:"›"})}),g.jsx("th",{colSpan:2,className:"rdtLabel",children:l&&l})]})}const F9=class F9 extends I.Component{constructor(){super(...arguments),this._setDate=t=>{this.props.updateDate(t)}}render(){return g.jsx("div",{className:"rdtDays",children:g.jsxs("table",{children:[g.jsxs("thead",{children:[this.renderNavigation(),this.renderDayHeaders()]}),g.jsx("tbody",{children:this.renderDays()}),this.renderFooter()]})})}renderNavigation(){const t=this.props.viewDate,r=t.localeData(),n=this.props.label;return g.jsx(zm,{onClickPrev:()=>this.props.navigate(-1,"months"),onClickSwitch:()=>this.props.showView("months"),onClickNext:()=>this.props.navigate(1,"months"),switchContent:r.months(t,"DD[]MMMM")+" "+t.year(),switchColSpan:3,label:n,switchProps:{"data-value":this.props.viewDate.month()}})}renderDayHeaders(){const t=this.props.viewDate.localeData();let r=Rhe(t).map((n,i)=>g.jsx("th",{className:"dow",children:n},n+i));return g.jsx("tr",{children:r})}renderDays(){const t=this.props.viewDate,r=t.clone().startOf("month"),n=t.clone().endOf("month");let i=[[],[],[],[],[],[]],o=t.clone().subtract(1,"months");o.date(o.daysInMonth()).startOf("week");let l=o.clone().add(42,"d"),c=0;for(;o.isBefore(l);)Bhe(i,c++).push(this.renderDay(o,r,n)),o.add(1,"d");return i.map((u,f)=>g.jsx("tr",{children:u},`${l.month()}_${f}`))}renderDay(t,r,n){var u,f;let i=this.props.selectedDate,o=this.props.secondValue,l={key:t.format("M_D"),"data-value":t.date(),"data-month":t.month(),"data-year":t.year()},c="rdtDay";return t.isBefore(r)?c+=" rdtOld":t.isAfter(n)&&(c+=" rdtNew"),o&&t.isBefore(o)&&t.isAfter(i)&&(c+=" rdtActiveRange"),o&&t.isAfter(o)&&t.isBefore(i)&&(c+=" rdtActiveRange"),i&&t.isSame(i,"day")&&(c+=" rdtActive"),o&&t.isSame(o,"day")&&(c+=" rdtActiveSecond"),t.isSame(this.props.moment(),"day")&&(c+=" rdtToday"),this.props.isValidDate(t)&&!((u=this.props.others)!=null&&u.dateTypeRepeater)&&!this.props.disabled?l.onClick=this._setDate:c+=" rdtDisabled",((f=this.props.others)!=null&&f.dateTypeRepeater||this.props.disabled)&&(c+=" rdtDisabled"),l.className=c,this.props.renderDay(l,t.clone(),i&&i.clone())}renderFooter(){const t=this.props.setTime,r=this.props.onChangeOthers,n=this.props.reset,i=this.props.value,o=this.props.others,l=this.props.disabled;return console.log("foooter: ",o),g.jsx("tfoot",{children:g.jsx("tr",{children:g.jsxs("td",{colSpan:7,children:[r&&g.jsx(Lhe,{onChangeOthers:r,others:o,reset:n}),this.props.timeFormat&&g.jsx(Nhe,{setTime:t,value:i,disabled:l||!i&&!(o!=null&&o.dateTypeRepeater),others:o,onChangeOthers:r,isSecondDatePicker:this.props.isSecondDatePicker})]})})})}};F9.defaultProps={isValidDate:()=>!0,renderDay:(t,r)=>g.jsx("td",{...t,children:r.date()})};let Ch=F9;function Bhe(e,t){return e[Math.floor(t/7)]}function Rhe(e){const t=e.firstDayOfWeek();let r=[],n=0;return e._weekdaysMin.forEach(function(i){r[(7+n++-t)%7]=i}),r}class Fhe extends I.Component{constructor(){super(...arguments),this._updateSelectedMonth=t=>{this.props.updateDate(t)}}render(){return g.jsxs("div",{className:"rdtMonths",children:[g.jsx("table",{children:g.jsx("thead",{children:this.renderNavigation()})}),g.jsx("table",{children:g.jsx("tbody",{children:this.renderMonths()})})]})}renderNavigation(){let t=this.props.viewDate.year();return g.jsx(zm,{onClickPrev:()=>this.props.navigate(-1,"years"),onClickSwitch:()=>this.props.showView("years"),onClickNext:()=>this.props.navigate(1,"years"),switchContent:t,switchColSpan:"2"})}renderMonths(){let t=[[],[],[]];for(let r=0;r<12;r++)Vhe(t,r).push(this.renderMonth(r));return t.map((r,n)=>g.jsx("tr",{children:r},n))}renderMonth(t){const r=this.props.selectedDate;let n="rdtMonth",i;this.isDisabledMonth(t)?n+=" rdtDisabled":i=this._updateSelectedMonth,r&&r.year()===this.props.viewDate.year()&&r.month()===t&&(n+=" rdtActive");let o={key:t,className:n,"data-value":t,onClick:i};return this.props.renderMonth?this.props.renderMonth(o,t,this.props.viewDate.year(),this.props.selectedDate&&this.props.selectedDate.clone()):g.jsx("td",{...o,children:this.getMonthText(t)})}isDisabledMonth(t){let r=this.props.isValidDate;if(!r)return!1;let n=this.props.viewDate.clone().set({month:t}),i=n.endOf("month").date()+1;for(;i-- >1;)if(r(n.date(i)))return!1;return!0}getMonthText(t){const r=this.props.viewDate,n=r.localeData().monthsShort(r.month(t));return jhe(n.substring(0,3))}}function Vhe(e,t){return t<4?e[0]:t<8?e[1]:e[2]}function jhe(e){return e.charAt(0).toUpperCase()+e.slice(1)}const V9=class V9 extends I.Component{constructor(){super(...arguments),this.disabledYearsCache={},this._updateSelectedYear=t=>{this.props.updateDate(t)}}render(){return g.jsxs("div",{className:"rdtYears",children:[g.jsx("table",{children:g.jsx("thead",{children:this.renderNavigation()})}),g.jsx("table",{children:g.jsx("tbody",{children:this.renderYears()})})]})}renderNavigation(){const t=this.getViewYear();return g.jsx(zm,{onClickPrev:()=>this.props.navigate(-10,"years"),onClickSwitch:()=>this.props.showView("years"),onClickNext:()=>this.props.navigate(10,"years"),switchContent:`${t}-${t+9}`})}renderYears(){const t=this.getViewYear();let r=[[],[],[]];for(let n=t-1;n<t+11;n++)Whe(r,n-t).push(this.renderYear(n));return r.map((n,i)=>g.jsx("tr",{children:n},i))}renderYear(t){const r=this.getSelectedYear();let n="rdtYear",i;this.isDisabledYear(t)?n+=" rdtDisabled":i=this._updateSelectedYear,r===t&&(n+=" rdtActive");let o={key:t,className:n,"data-value":t,onClick:i};return this.props.renderYear(o,t,this.props.selectedDate&&this.props.selectedDate.clone())}getViewYear(){return parseInt(this.props.viewDate.year()/10,10)*10}getSelectedYear(){return this.props.selectedDate&&this.props.selectedDate.year()}isDisabledYear(t){let r=this.disabledYearsCache;if(r[t]!==void 0)return r[t];let n=this.props.isValidDate;if(!n)return!1;let i=this.props.viewDate.clone().set({year:t}),o=i.endOf("year").dayOfYear()+1;for(;o-- >1;)if(n(i.dayOfYear(o)))return r[t]=!1,!1;return r[t]=!0,!0}};V9.defaultProps={renderYear:(t,r)=>g.jsx("td",{...t,children:r})};let Gm=V9;function Whe(e,t){return t<3?e[0]:t<7?e[1]:e[2]}const Hs={YEARS:"years",MONTHS:"months",DAYS:"days",TIME:"time"},zs=function(){},H3=class H3 extends I.Component{constructor(t){super(t),this._renderCalendar=()=>{const r=this.props,n=this.state;let i={viewDate:n.viewDate.clone(),label:r.label,isSecondDatePicker:r.isSecondDatePicker,secondValue:r.secondValue,selectedDate:this.getSelectedDate(),isValidDate:r.isValidDate,updateDate:this._updateDate,others:r.others,onChangeOthers:r.onChangeOthers,reset:this._reset,navigate:this._viewNavigate,moment:Me,showView:this._showView};switch(n.currentView){case Hs.YEARS:return i.renderYear=r.renderYear,g.jsx(Gm,{...i});case Hs.MONTHS:return i.renderMonth=r.renderMonth,g.jsx(Fhe,{...i});case Hs.DAYS:return i.renderDay=r.renderDay,i.timeFormat=this.getFormat("time"),i.setTime=this._setTime,i.value=this.props.value,i.disabled=this.props.disabled,g.jsx(Ch,{...i});default:return i.renderDay=r.renderDay,i.timeFormat=this.getFormat("time"),i.setTime=this._setTime,i.value=this.props.value,g.jsx(Ch,{...i})}},this._showView=(r,n)=>{const i=(n||this.state.viewDate).clone(),o=this.props.onBeforeNavigate(r,this.state.currentView,i);o&&this.state.currentView!==o&&(this.props.onNavigate(o),this.setState({currentView:o}))},this.viewToMethod={days:"date",months:"month",years:"year"},this.nextView={days:"time",months:"days",years:"months"},this._updateDate=r=>{let i=this.state.currentView,o=this.getUpdateOn(this.getFormat("date")),l=this.state.viewDate.clone();l[this.viewToMethod[i]](parseInt(r.target.getAttribute("data-value"),10)),i==="days"&&(l.month(parseInt(r.target.getAttribute("data-month"),10)),l.year(parseInt(r.target.getAttribute("data-year"),10)));let c={viewDate:l};i===o?(c.selectedDate=l.clone(),c.inputValue=l.format(this.getFormat("datetime")),this.props.open===void 0&&this.props.input&&this.props.closeOnSelect&&this._closeCalendar(),this.props.onChange(l.clone())):this._showView(this.nextView[i],l),this.setState(c)},this._viewNavigate=(r,n)=>{let i=this.state.viewDate.clone();i.add(r,n),r>0?this.props.onNavigateForward(r,n):this.props.onNavigateBack(-r,n),this.setState({viewDate:i})},this._setTime=(r,n)=>{let i=(this.getSelectedDate()||this.state.viewDate).clone();i[r](n),this.props.value||this.setState({selectedDate:i,viewDate:i.clone(),inputValue:i.format(this.getFormat("datetime"))}),this.props.onChange(i)},this._reset=()=>{this.props.onChange(void 0)},this._openCalendar=()=>{this.isOpen()||this.setState({open:!0},this.props.onOpen)},this._closeCalendar=()=>{this.isOpen()&&this.setState({open:!1},()=>{this.props.onClose(this.state.selectedDate||this.state.inputValue)})},this._handleClickOutside=()=>{let r=this.props;r.input&&this.state.open&&r.open===void 0&&r.closeOnClickOutside&&this._closeCalendar()},this._onInputFocus=r=>{this.callHandler(this.props.inputProps.onFocus,r)&&this._openCalendar()},this._onInputChange=r=>{if(!this.callHandler(this.props.inputProps.onChange,r))return;const n=r.target?r.target.value:r,i=this.localMoment(n,this.getFormat("datetime"));let o={inputValue:n};i.isValid()?(o.selectedDate=i,o.viewDate=i.clone().startOf("month")):o.selectedDate=null,this.setState(o,()=>{this.props.onChange(i.isValid()?i:this.state.inputValue)})},this._onInputKeyDown=r=>{this.callHandler(this.props.inputProps.onKeyDown,r)&&r.which===9&&this.props.closeOnTab&&this._closeCalendar()},this._onInputClick=r=>{this.callHandler(this.props.inputProps.onClick,r)&&this._openCalendar()},this.state=this.getInitialState()}render(){return g.jsxs(zhe,{className:this.getClassName(),onClickOut:this._handleClickOutside,children:[this.renderInput(),g.jsx("div",{className:"rdtPicker",children:this.renderView()})]})}renderInput(){if(!this.props.input)return;const t={type:"text",className:"form-control",value:this.getInputValue(),...this.props.inputProps,onFocus:this._onInputFocus,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onClick:this._onInputClick};return this.props.renderInput?g.jsx("div",{children:this.props.renderInput(t,this._openCalendar,this._closeCalendar)}):g.jsx("input",{...t})}renderView(){return this.props.renderView(this.state.currentView,this._renderCalendar)}getInitialState(){let t=this.props,r=this.getFormat("datetime"),n=this.parseDate(t.value||t.initialValue,r);return this.checkTZ(),{open:!t.input,currentView:t.initialViewMode||this.getInitialView(),viewDate:this.getInitialViewDate(n),selectedDate:n&&n.isValid()?n:void 0,inputValue:this.getInitialInputValue(n)}}getInitialViewDate(t){const r=this.props.initialViewDate;let n;if(r){if(n=this.parseDate(r,this.getFormat("datetime")),n&&n.isValid())return n;console.log('The initialViewDated given "'+r+'" is not valid. Using current date instead.')}else if(t&&t.isValid())return t.clone();return this.getInitialDate()}getInitialDate(){let t=this.localMoment();return t.hour(0).minute(0).second(0).millisecond(0),t}getInitialView(){const t=this.getFormat("date");return t?this.getUpdateOn(t):Hs.TIME}parseDate(t,r){let n;return t&&typeof t=="string"?n=this.localMoment(t,r):t&&(n=this.localMoment(t)),n&&!n.isValid()&&(n=null),n}getClassName(){let t="rdt",r=this.props,n=r.className;return Array.isArray(n)?t+=" "+n.join(" "):n&&(t+=" "+n),r.input||(t+=" rdtStatic"),this.isOpen()&&(t+=" rdtOpen"),t}isOpen(){return!this.props.input||(this.props.open===void 0?this.state.open:this.props.open)}getUpdateOn(t){return this.props.updateOnView?this.props.updateOnView:t.match(/[lLD]/)?Hs.DAYS:t.indexOf("M")!==-1?Hs.MONTHS:t.indexOf("Y")!==-1?Hs.YEARS:Hs.DAYS}getLocaleData(){let t=this.props;return this.localMoment(t.value||t.defaultValue||new Date).localeData()}getDateFormat(){const t=this.getLocaleData();let r=this.props.dateFormat;return r===!0?t.longDateFormat("L"):r||""}getTimeFormat(){const t=this.getLocaleData();let r=this.props.timeFormat;return r===!0?t.longDateFormat("LT"):r||""}getFormat(t){if(t==="date")return this.getDateFormat();if(t==="time")return this.getTimeFormat();let r=this.getDateFormat(),n=this.getTimeFormat();return r&&n?r+" "+n:r||n}updateTime(t,r,n,i){let o={};const l=i?"selectedDate":"viewDate";o[l]=this.state[l].clone()[t](r,n),this.setState(o)}localMoment(t,r,n){n=n||this.props;let i=null;return n.utc?i=Me.utc(t,r,n.strictParsing):n.displayTimeZone?i=Me.tz(t,r,n.displayTimeZone):i=Me(t,r,n.strictParsing),n.locale&&i.locale(n.locale),i}checkTZ(){const{displayTimeZone:t}=this.props;t&&!this.tzWarning&&!Me.tz&&(this.tzWarning=!0)}componentDidUpdate(t){if(t===this.props)return;let r=!1,n=this.props;["locale","utc","displayZone","dateFormat","timeFormat"].forEach(function(i){t[i]!==n[i]&&(r=!0)}),r&&this.regenerateDates(),n.value&&n.value!==t.value&&this.setViewDate(n.value),this.checkTZ()}regenerateDates(){const t=this.props;let r=this.state.viewDate.clone(),n=this.state.selectedDate&&this.state.selectedDate.clone();t.locale&&(r.locale(t.locale),n&&n.locale(t.locale)),t.utc?(r.utc(),n&&n.utc()):t.displayTimeZone?(r.tz(t.displayTimeZone),n&&n.tz(t.displayTimeZone)):(r.locale(),n&&n.locale());let i={viewDate:r,selectedDate:n};n&&n.isValid()&&(i.inputValue=n.format(this.getFormat("datetime"))),this.setState(i)}getSelectedDate(){if(this.props.value===void 0)return this.state.selectedDate;let t=this.parseDate(this.props.value,this.getFormat("datetime"));return t&&t.isValid()?t:!1}getInitialInputValue(t){const r=this.props;return r.inputProps.value?r.inputProps.value:t&&t.isValid()?t.format(this.getFormat("datetime")):r.value&&typeof r.value=="string"?r.value:r.initialValue&&typeof r.initialValue=="string"?r.initialValue:""}getInputValue(){let t=this.getSelectedDate();return t?t.format(this.getFormat("datetime")):this.state.inputValue}setViewDate(t){let r=function(){return console.log("Invalid date passed to the `setViewDate` method: "+t)};if(!t)return r();let n;if(typeof t=="string"?n=this.localMoment(t,this.getFormat("datetime")):n=this.localMoment(t),!n||!n.isValid())return r();this.setState({viewDate:n})}navigate(t){this._showView(t)}callHandler(t,r){return t?t(r)!==!1:!0}};H3.defaultProps={onOpen:zs,onClose:zs,onCalendarOpen:zs,onCalendarClose:zs,onChange:zs,onNavigate:zs,onBeforeNavigate:function(t){return t},onNavigateBack:zs,onNavigateForward:zs,dateFormat:!0,timeFormat:!0,utc:!1,className:"",input:!0,inputProps:{},timeConstraints:{},isValidDate:function(){return!0},strictParsing:!0,closeOnSelect:!1,closeOnTab:!0,closeOnClickOutside:!0,renderView:(t,r)=>r()},H3.moment=Me;let _m=H3;class Hhe extends I.Component{constructor(){super(...arguments),this.container=I.createRef()}render(){return g.jsx("div",{className:this.props.className,ref:this.container,children:this.props.children})}handleClickOutside(t){this.props.onClickOut(t)}setClickOutsideRef(){return this.container.current}}const zhe=Mhe(Hhe);//! moment.js locale configuration
1733
+ `,Nhe=({setTime:e,others:t,onChangeOthers:r,value:n,disabled:i,isSecondDatePicker:o})=>{var w,k,T,P;const l=((w=n==null?void 0:n.getHours)==null?void 0:w.call(n))||((k=t==null?void 0:t.time)==null?void 0:k.h)||0,c=((T=n==null?void 0:n.getMinutes)==null?void 0:T.call(n))||((P=t==null?void 0:t.time)==null?void 0:P.m)||0,[u,f]=I.useState(l),[p,A]=I.useState(c),v=I.useCallback(L=>{const F=L.target.value,[V,H]=F.split(":"),G=o?Un.TO:Un.FROM,Z=t!=null&&t.dateTypeRepeater?(t==null?void 0:t.timeTypeRepeater)||G:void 0;f(Number(V)),A(Number(H)),r==null||r({...t,timeTypeRepeater:Z,time:{h:Number(V),m:Number(H)}})},[r,t,o]),m=I.useCallback(L=>{r==null||r({...t,timeTypeRepeater:L.target.value})},[r,t]);I.useEffect(()=>{n&&e("hours",u)},[u]),I.useEffect(()=>{n&&e("minutes",p)},[p]);const y=`${u.toString().padStart(2,"0")}:${p.toString().padStart(2,"0")}`,C=o?Un.TO:Un.FROM,x=t!=null&&t.dateTypeRepeater?t==null?void 0:t.timeTypeRepeater:C;return g.jsx(_e.div,{borderTop:"1px solid",borderColor:"lightGray2",pt:"8px",mb:"8px",children:g.jsxs(wD,{disabled:i,children:[g.jsxs(_e.div,{children:[g.jsx(ht,{icon:"clock"}),g.jsx(xD,{children:He._({id:"dataGrid.filterCell.time",message:"Time"})})]}),g.jsxs(_e.div,{display:"flex",alignItems:"center",children:[g.jsxs(_e.select,{onChange:m,value:x,textAlign:"right",disabled:i||!(t!=null&&t.dateTypeRepeater),border:"none",children:[g.jsx("option",{value:Un.AT,children:yh[Un.AT]}),o?g.jsx("option",{value:Un.TO,children:yh[Un.TO]}):g.jsx("option",{value:Un.FROM,children:yh[Un.FROM]})]}),g.jsx(Dhe,{type:"time",onChange:v,disabled:i,value:y})]})]})})};function zm({onClickPrev:e,onClickSwitch:t,onClickNext:r,switchContent:n,switchColSpan:i,switchProps:o,label:l}){return g.jsxs("tr",{children:[g.jsx("th",{className:"rdtPrev",onClick:e,children:g.jsx("span",{children:"‹"})}),g.jsx("th",{className:"rdtSwitch",colSpan:i,onClick:t,...o,children:n}),g.jsx("th",{className:"rdtNext",onClick:r,children:g.jsx("span",{children:"›"})}),g.jsx("th",{colSpan:2,className:"rdtLabel",children:l&&l})]})}const F9=class F9 extends I.Component{constructor(){super(...arguments),this._setDate=t=>{this.props.updateDate(t)}}render(){return g.jsx("div",{className:"rdtDays",children:g.jsxs("table",{children:[g.jsxs("thead",{children:[this.renderNavigation(),this.renderDayHeaders()]}),g.jsx("tbody",{children:this.renderDays()}),this.renderFooter()]})})}renderNavigation(){const t=this.props.viewDate,r=t.localeData(),n=this.props.label;return g.jsx(zm,{onClickPrev:()=>this.props.navigate(-1,"months"),onClickSwitch:()=>this.props.showView("months"),onClickNext:()=>this.props.navigate(1,"months"),switchContent:r.months(t,"DD[]MMMM")+" "+t.year(),switchColSpan:3,label:n,switchProps:{"data-value":this.props.viewDate.month()}})}renderDayHeaders(){const t=this.props.viewDate.localeData();let r=Rhe(t).map((n,i)=>g.jsx("th",{className:"dow",children:n},n+i));return g.jsx("tr",{children:r})}renderDays(){const t=this.props.viewDate,r=t.clone().startOf("month"),n=t.clone().endOf("month");let i=[[],[],[],[],[],[]],o=t.clone().subtract(1,"months");o.date(o.daysInMonth()).startOf("week");let l=o.clone().add(42,"d"),c=0;for(;o.isBefore(l);)Bhe(i,c++).push(this.renderDay(o,r,n)),o.add(1,"d");return i.map((u,f)=>g.jsx("tr",{children:u},`${l.month()}_${f}`))}renderDay(t,r,n){var u,f;let i=this.props.selectedDate,o=this.props.secondValue,l={key:t.format("M_D"),"data-value":t.date(),"data-month":t.month(),"data-year":t.year()},c="rdtDay";return t.isBefore(r)?c+=" rdtOld":t.isAfter(n)&&(c+=" rdtNew"),o&&t.isBefore(o)&&t.isAfter(i)&&(c+=" rdtActiveRange"),o&&t.isAfter(o)&&t.isBefore(i)&&(c+=" rdtActiveRange"),i&&t.isSame(i,"day")&&(c+=" rdtActive"),o&&t.isSame(o,"day")&&(c+=" rdtActiveSecond"),t.isSame(this.props.moment(),"day")&&(c+=" rdtToday"),this.props.isValidDate(t)&&!((u=this.props.others)!=null&&u.dateTypeRepeater)&&!this.props.disabled?l.onClick=this._setDate:c+=" rdtDisabled",((f=this.props.others)!=null&&f.dateTypeRepeater||this.props.disabled)&&(c+=" rdtDisabled"),l.className=c,this.props.renderDay(l,t.clone(),i&&i.clone())}renderFooter(){const t=this.props.setTime,r=this.props.onChangeOthers,n=this.props.reset,i=this.props.value,o=this.props.others,l=this.props.disabled;return console.log("foooter: ",o),g.jsx("tfoot",{children:g.jsx("tr",{children:g.jsxs("td",{colSpan:7,children:[r&&g.jsx(Lhe,{onChangeOthers:r,others:o,reset:n}),this.props.timeFormat&&g.jsx(Nhe,{setTime:t,value:i,disabled:l||!i&&!(o!=null&&o.dateTypeRepeater),others:o,onChangeOthers:r,isSecondDatePicker:this.props.isSecondDatePicker})]})})})}};F9.defaultProps={isValidDate:()=>!0,renderDay:(t,r)=>g.jsx("td",{...t,children:r.date()})};let Ch=F9;function Bhe(e,t){return e[Math.floor(t/7)]}function Rhe(e){const t=e.firstDayOfWeek();let r=[],n=0;return e._weekdaysMin.forEach(function(i){r[(7+n++-t)%7]=i}),r}class Fhe extends I.Component{constructor(){super(...arguments),this._updateSelectedMonth=t=>{this.props.updateDate(t)}}render(){return g.jsxs("div",{className:"rdtMonths",children:[g.jsx("table",{children:g.jsx("thead",{children:this.renderNavigation()})}),g.jsx("table",{children:g.jsx("tbody",{children:this.renderMonths()})})]})}renderNavigation(){let t=this.props.viewDate.year();return g.jsx(zm,{onClickPrev:()=>this.props.navigate(-1,"years"),onClickSwitch:()=>this.props.showView("years"),onClickNext:()=>this.props.navigate(1,"years"),switchContent:t,switchColSpan:"2"})}renderMonths(){let t=[[],[],[]];for(let r=0;r<12;r++)Vhe(t,r).push(this.renderMonth(r));return t.map((r,n)=>g.jsx("tr",{children:r},n))}renderMonth(t){const r=this.props.selectedDate;let n="rdtMonth",i;this.isDisabledMonth(t)?n+=" rdtDisabled":i=this._updateSelectedMonth,r&&r.year()===this.props.viewDate.year()&&r.month()===t&&(n+=" rdtActive");let o={key:t,className:n,"data-value":t,onClick:i};return this.props.renderMonth?this.props.renderMonth(o,t,this.props.viewDate.year(),this.props.selectedDate&&this.props.selectedDate.clone()):g.jsx("td",{...o,children:this.getMonthText(t)})}isDisabledMonth(t){let r=this.props.isValidDate;if(!r)return!1;let n=this.props.viewDate.clone().set({month:t}),i=n.endOf("month").date()+1;for(;i-- >1;)if(r(n.date(i)))return!1;return!0}getMonthText(t){const r=this.props.viewDate,n=r.localeData().monthsShort(r.month(t));return jhe(n.substring(0,3))}}function Vhe(e,t){return t<4?e[0]:t<8?e[1]:e[2]}function jhe(e){return e.charAt(0).toUpperCase()+e.slice(1)}const V9=class V9 extends I.Component{constructor(){super(...arguments),this.disabledYearsCache={},this._updateSelectedYear=t=>{this.props.updateDate(t)}}render(){return g.jsxs("div",{className:"rdtYears",children:[g.jsx("table",{children:g.jsx("thead",{children:this.renderNavigation()})}),g.jsx("table",{children:g.jsx("tbody",{children:this.renderYears()})})]})}renderNavigation(){const t=this.getViewYear();return g.jsx(zm,{onClickPrev:()=>this.props.navigate(-10,"years"),onClickSwitch:()=>this.props.showView("years"),onClickNext:()=>this.props.navigate(10,"years"),switchContent:`${t}-${t+9}`})}renderYears(){const t=this.getViewYear();let r=[[],[],[]];for(let n=t-1;n<t+11;n++)Whe(r,n-t).push(this.renderYear(n));return r.map((n,i)=>g.jsx("tr",{children:n},i))}renderYear(t){const r=this.getSelectedYear();let n="rdtYear",i;this.isDisabledYear(t)?n+=" rdtDisabled":i=this._updateSelectedYear,r===t&&(n+=" rdtActive");let o={key:t,className:n,"data-value":t,onClick:i};return this.props.renderYear(o,t,this.props.selectedDate&&this.props.selectedDate.clone())}getViewYear(){return parseInt(this.props.viewDate.year()/10,10)*10}getSelectedYear(){return this.props.selectedDate&&this.props.selectedDate.year()}isDisabledYear(t){let r=this.disabledYearsCache;if(r[t]!==void 0)return r[t];let n=this.props.isValidDate;if(!n)return!1;let i=this.props.viewDate.clone().set({year:t}),o=i.endOf("year").dayOfYear()+1;for(;o-- >1;)if(n(i.dayOfYear(o)))return r[t]=!1,!1;return r[t]=!0,!0}};V9.defaultProps={renderYear:(t,r)=>g.jsx("td",{...t,children:r})};let Gm=V9;function Whe(e,t){return t<3?e[0]:t<7?e[1]:e[2]}const Hs={YEARS:"years",MONTHS:"months",DAYS:"days",TIME:"time"},zs=function(){},H3=class H3 extends I.Component{constructor(t){super(t),this._renderCalendar=()=>{const r=this.props,n=this.state;let i={viewDate:n.viewDate.clone(),label:r.label,isSecondDatePicker:r.isSecondDatePicker,secondValue:r.secondValue,selectedDate:this.getSelectedDate(),isValidDate:r.isValidDate,updateDate:this._updateDate,others:r.others,onChangeOthers:r.onChangeOthers,reset:this._reset,navigate:this._viewNavigate,moment:Me,showView:this._showView};switch(n.currentView){case Hs.YEARS:return i.renderYear=r.renderYear,g.jsx(Gm,{...i});case Hs.MONTHS:return i.renderMonth=r.renderMonth,g.jsx(Fhe,{...i});case Hs.DAYS:return i.renderDay=r.renderDay,i.timeFormat=this.getFormat("time"),i.setTime=this._setTime,i.value=this.props.value,i.disabled=this.props.disabled,g.jsx(Ch,{...i});default:return i.renderDay=r.renderDay,i.timeFormat=this.getFormat("time"),i.setTime=this._setTime,i.value=this.props.value,g.jsx(Ch,{...i})}},this._showView=(r,n)=>{const i=(n||this.state.viewDate).clone(),o=this.props.onBeforeNavigate(r,this.state.currentView,i);o&&this.state.currentView!==o&&(this.props.onNavigate(o),this.setState({currentView:o}))},this.viewToMethod={days:"date",months:"month",years:"year"},this.nextView={days:"time",months:"days",years:"months"},this._updateDate=r=>{let i=this.state.currentView,o=this.getUpdateOn(this.getFormat("date")),l=this.state.viewDate.clone();l[this.viewToMethod[i]](parseInt(r.target.getAttribute("data-value"),10)),i==="days"&&(l.month(parseInt(r.target.getAttribute("data-month"),10)),l.year(parseInt(r.target.getAttribute("data-year"),10)));let c={viewDate:l};i===o?(c.selectedDate=l.clone(),c.inputValue=l.format(this.getFormat("datetime")),this.props.open===void 0&&this.props.input&&this.props.closeOnSelect&&this._closeCalendar(),this.props.onChange(l.clone())):this._showView(this.nextView[i],l),this.setState(c)},this._viewNavigate=(r,n)=>{let i=this.state.viewDate.clone();i.add(r,n),r>0?this.props.onNavigateForward(r,n):this.props.onNavigateBack(-r,n),this.setState({viewDate:i})},this._setTime=(r,n)=>{let i=(this.getSelectedDate()||this.state.viewDate).clone();i[r](n),this.props.value||this.setState({selectedDate:i,viewDate:i.clone(),inputValue:i.format(this.getFormat("datetime"))}),this.props.onChange(i)},this._reset=()=>{this.props.onChange(void 0)},this._openCalendar=()=>{this.isOpen()||this.setState({open:!0},this.props.onOpen)},this._closeCalendar=()=>{this.isOpen()&&this.setState({open:!1},()=>{this.props.onClose(this.state.selectedDate||this.state.inputValue)})},this._handleClickOutside=()=>{let r=this.props;r.input&&this.state.open&&r.open===void 0&&r.closeOnClickOutside&&this._closeCalendar()},this._onInputFocus=r=>{this.callHandler(this.props.inputProps.onFocus,r)&&this._openCalendar()},this._onInputChange=r=>{if(!this.callHandler(this.props.inputProps.onChange,r))return;const n=r.target?r.target.value:r,i=this.localMoment(n,this.getFormat("datetime"));let o={inputValue:n};i.isValid()?(o.selectedDate=i,o.viewDate=i.clone().startOf("month")):o.selectedDate=null,this.setState(o,()=>{this.props.onChange(i.isValid()?i:this.state.inputValue)})},this._onInputKeyDown=r=>{this.callHandler(this.props.inputProps.onKeyDown,r)&&r.which===9&&this.props.closeOnTab&&this._closeCalendar()},this._onInputClick=r=>{this.callHandler(this.props.inputProps.onClick,r)&&this._openCalendar()},this.state=this.getInitialState()}render(){return g.jsxs(zhe,{className:this.getClassName(),onClickOut:this._handleClickOutside,children:[this.renderInput(),g.jsx("div",{className:"rdtPicker",children:this.renderView()})]})}renderInput(){if(!this.props.input)return;const t={type:"text",className:"form-control",value:this.getInputValue(),...this.props.inputProps,onFocus:this._onInputFocus,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onClick:this._onInputClick};return this.props.renderInput?g.jsx("div",{children:this.props.renderInput(t,this._openCalendar,this._closeCalendar)}):g.jsx("input",{...t})}renderView(){return this.props.renderView(this.state.currentView,this._renderCalendar)}getInitialState(){let t=this.props,r=this.getFormat("datetime"),n=this.parseDate(t.value||t.initialValue,r);return this.checkTZ(),{open:!t.input,currentView:t.initialViewMode||this.getInitialView(),viewDate:this.getInitialViewDate(n),selectedDate:n&&n.isValid()?n:void 0,inputValue:this.getInitialInputValue(n)}}getInitialViewDate(t){const r=this.props.initialViewDate;let n;if(r){if(n=this.parseDate(r,this.getFormat("datetime")),n&&n.isValid())return n;console.log('The initialViewDated given "'+r+'" is not valid. Using current date instead.')}else if(t&&t.isValid())return t.clone();return this.getInitialDate()}getInitialDate(){let t=this.localMoment();return t.hour(0).minute(0).second(0).millisecond(0),t}getInitialView(){const t=this.getFormat("date");return t?this.getUpdateOn(t):Hs.TIME}parseDate(t,r){let n;return t&&typeof t=="string"?n=this.localMoment(t,r):t&&(n=this.localMoment(t)),n&&!n.isValid()&&(n=null),n}getClassName(){let t="rdt",r=this.props,n=r.className;return Array.isArray(n)?t+=" "+n.join(" "):n&&(t+=" "+n),r.input||(t+=" rdtStatic"),this.isOpen()&&(t+=" rdtOpen"),t}isOpen(){return!this.props.input||(this.props.open===void 0?this.state.open:this.props.open)}getUpdateOn(t){return this.props.updateOnView?this.props.updateOnView:t.match(/[lLD]/)?Hs.DAYS:t.indexOf("M")!==-1?Hs.MONTHS:t.indexOf("Y")!==-1?Hs.YEARS:Hs.DAYS}getLocaleData(){let t=this.props;return this.localMoment(t.value||t.defaultValue||new Date).localeData()}getDateFormat(){const t=this.getLocaleData();let r=this.props.dateFormat;return r===!0?t.longDateFormat("L"):r||""}getTimeFormat(){const t=this.getLocaleData();let r=this.props.timeFormat;return r===!0?t.longDateFormat("LT"):r||""}getFormat(t){if(t==="date")return this.getDateFormat();if(t==="time")return this.getTimeFormat();let r=this.getDateFormat(),n=this.getTimeFormat();return r&&n?r+" "+n:r||n}updateTime(t,r,n,i){let o={};const l=i?"selectedDate":"viewDate";o[l]=this.state[l].clone()[t](r,n),this.setState(o)}localMoment(t,r,n){n=n||this.props;let i=null;return n.utc?i=Me.utc(t,r,n.strictParsing):n.displayTimeZone?i=Me.tz(t,r,n.displayTimeZone):i=Me(t,r,n.strictParsing),n.locale&&i.locale(n.locale),i}checkTZ(){const{displayTimeZone:t}=this.props;t&&!this.tzWarning&&!Me.tz&&(this.tzWarning=!0)}componentDidUpdate(t){if(t===this.props)return;let r=!1,n=this.props;["locale","utc","displayZone","dateFormat","timeFormat"].forEach(function(i){t[i]!==n[i]&&(r=!0)}),r&&this.regenerateDates(),n.value&&n.value!==t.value&&this.setViewDate(n.value),this.checkTZ()}regenerateDates(){const t=this.props;let r=this.state.viewDate.clone(),n=this.state.selectedDate&&this.state.selectedDate.clone();t.locale&&(r.locale(t.locale),n&&n.locale(t.locale)),t.utc?(r.utc(),n&&n.utc()):t.displayTimeZone?(r.tz(t.displayTimeZone),n&&n.tz(t.displayTimeZone)):(r.locale(),n&&n.locale());let i={viewDate:r,selectedDate:n};n&&n.isValid()&&(i.inputValue=n.format(this.getFormat("datetime"))),this.setState(i)}getSelectedDate(){if(this.props.value===void 0)return this.state.selectedDate;let t=this.parseDate(this.props.value,this.getFormat("datetime"));return t&&t.isValid()?t:!1}getInitialInputValue(t){const r=this.props;return r.inputProps.value?r.inputProps.value:t&&t.isValid()?t.format(this.getFormat("datetime")):r.value&&typeof r.value=="string"?r.value:r.initialValue&&typeof r.initialValue=="string"?r.initialValue:""}getInputValue(){let t=this.getSelectedDate();return t?t.format(this.getFormat("datetime")):this.state.inputValue}setViewDate(t){let r=function(){return console.log("Invalid date passed to the `setViewDate` method: "+t)};if(!t)return r();let n;if(typeof t=="string"?n=this.localMoment(t,this.getFormat("datetime")):n=this.localMoment(t),!n||!n.isValid())return r();this.setState({viewDate:n})}navigate(t){this._showView(t)}callHandler(t,r){return t?t(r)!==!1:!0}};H3.defaultProps={onOpen:zs,onClose:zs,onCalendarOpen:zs,onCalendarClose:zs,onChange:zs,onNavigate:zs,onBeforeNavigate:function(t){return t},onNavigateBack:zs,onNavigateForward:zs,dateFormat:!0,timeFormat:!0,utc:!1,className:"",input:!0,inputProps:{},timeConstraints:{},isValidDate:function(){return!0},strictParsing:!0,closeOnSelect:!1,closeOnTab:!0,closeOnClickOutside:!0,renderView:(t,r)=>r()},H3.moment=Me;let _m=H3;class Hhe extends I.Component{constructor(){super(...arguments),this.container=I.createRef()}render(){return g.jsx("div",{className:this.props.className,ref:this.container,children:this.props.children})}handleClickOutside(t){this.props.onClickOut(t)}setClickOutsideRef(){return this.container.current}}const zhe=Mhe(Hhe);//! moment.js locale configuration
1734
1734
  //! locale : Czech [cs]
1735
1735
  //! author : petrbela : https://github.com/petrbela
1736
1736
  var Ghe={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},_he="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),Um=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],SD=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function Ru(e){return e>1&&e<5&&~~(e/10)!==1}function da(e,t,r,n){var i=e+" ";switch(r){case"s":return t||n?"pár sekund":"pár sekundami";case"ss":return t||n?i+(Ru(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?i+(Ru(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?i+(Ru(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?i+(Ru(e)?"dny":"dní"):i+"dny";case"M":return t||n?"měsíc":"měsícem";case"MM":return t||n?i+(Ru(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?i+(Ru(e)?"roky":"let"):i+"lety"}}Me.defineLocale("cs",{months:Ghe,monthsShort:_he,monthsRegex:SD,monthsShortRegex:SD,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:Um,longMonthsParse:Um,shortMonthsParse:Um,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:da,ss:da,m:da,mm:da,h:da,hh:da,d:da,dd:da,M:da,MM:da,y:da,yy:da},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});//! moment.js locale configuration