%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/public_html/ezone.optisoft.com.ng/
Upload File :
Create Path :
Current File : /home/opti/public_html/ezone.optisoft.com.ng/npm.devexpress.e831c87de158646cf5c9.chunk.js

/*! For license information please see npm.devexpress.e831c87de158646cf5c9.chunk.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"2c86c5e17ed449932b22":function(e,t,n){"use strict";var a,o=(a=n("4f0dfcf9dfa819c812e6"))&&"object"===typeof a&&"default"in a?a.default:a,r=function(){function e(e){var t=void 0===e?{}:e,n=t.locale,a=t.instance,r=t.moment;this.yearFormat="YYYY",this.yearMonthFormat="MMMM YYYY",this.dateTime12hFormat="MMMM Do hh:mm a",this.dateTime24hFormat="MMMM Do HH:mm",this.time12hFormat="hh:mm A",this.time24hFormat="HH:mm",this.dateFormat="MMMM Do",this.moment=a||r||o,this.locale=n}return e.prototype.parse=function(e,t){return""===e?null:this.moment(e,t,!0)},e.prototype.date=function(e){if(null===e)return null;var t=this.moment(e);return t.locale(this.locale),t},e.prototype.isValid=function(e){return this.moment(e).isValid()},e.prototype.isNull=function(e){return null===e},e.prototype.getDiff=function(e,t){return e.diff(t)},e.prototype.isAfter=function(e,t){return e.isAfter(t)},e.prototype.isBefore=function(e,t){return e.isBefore(t)},e.prototype.isAfterDay=function(e,t){return e.isAfter(t,"day")},e.prototype.isBeforeDay=function(e,t){return e.isBefore(t,"day")},e.prototype.isBeforeYear=function(e,t){return e.isBefore(t,"year")},e.prototype.isAfterYear=function(e,t){return e.isAfter(t,"year")},e.prototype.startOfDay=function(e){return e.clone().startOf("day")},e.prototype.endOfDay=function(e){return e.clone().endOf("day")},e.prototype.format=function(e,t){return e.locale(this.locale),e.format(t)},e.prototype.formatNumber=function(e){return e},e.prototype.getHours=function(e){return e.get("hours")},e.prototype.addDays=function(e,t){return t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days")},e.prototype.setHours=function(e,t){return e.clone().hours(t)},e.prototype.getMinutes=function(e){return e.get("minutes")},e.prototype.setMinutes=function(e,t){return e.clone().minutes(t)},e.prototype.getSeconds=function(e){return e.get("seconds")},e.prototype.setSeconds=function(e,t){return e.clone().seconds(t)},e.prototype.getMonth=function(e){return e.get("month")},e.prototype.isSameDay=function(e,t){return e.isSame(t,"day")},e.prototype.isSameMonth=function(e,t){return e.isSame(t,"month")},e.prototype.isSameYear=function(e,t){return e.isSame(t,"year")},e.prototype.isSameHour=function(e,t){return e.isSame(t,"hour")},e.prototype.setMonth=function(e,t){return e.clone().month(t)},e.prototype.getMeridiemText=function(e){return"am"===e?"AM":"PM"},e.prototype.startOfMonth=function(e){return e.clone().startOf("month")},e.prototype.endOfMonth=function(e){return e.clone().endOf("month")},e.prototype.getNextMonth=function(e){return e.clone().add(1,"month")},e.prototype.getPreviousMonth=function(e){return e.clone().subtract(1,"month")},e.prototype.getMonthArray=function(e){for(var t=[e.clone().startOf("year")];t.length<12;){var n=t[t.length-1];t.push(this.getNextMonth(n))}return t},e.prototype.getYear=function(e){return e.get("year")},e.prototype.setYear=function(e,t){return e.clone().set("year",t)},e.prototype.mergeDateAndTime=function(e,t){return this.setMinutes(this.setHours(e,this.getHours(t)),this.getMinutes(t))},e.prototype.getWeekdays=function(){return this.moment.weekdaysShort(!0)},e.prototype.isEqual=function(e,t){return null===e&&null===t||this.moment(e).isSame(t)},e.prototype.getWeekArray=function(e){for(var t=e.clone().startOf("month").startOf("week"),n=e.clone().endOf("month").endOf("week"),a=0,o=t,r=[];o.isBefore(n);){var i=Math.floor(a/7);r[i]=r[i]||[],r[i].push(o),o=o.clone().add(1,"day"),a+=1}return r},e.prototype.getYearRange=function(e,t){for(var n=this.moment(e).startOf("year"),a=this.moment(t).endOf("year"),o=[],r=n;r.isBefore(a);)o.push(r),r=r.clone().add(1,"year");return o},e.prototype.getCalendarHeaderText=function(e){return this.format(e,this.yearMonthFormat)},e.prototype.getYearText=function(e){return this.format(e,"YYYY")},e.prototype.getDatePickerHeaderText=function(e){return this.format(e,"ddd, MMM D")},e.prototype.getDateTimePickerHeaderText=function(e){return this.format(e,"MMM D")},e.prototype.getMonthText=function(e){return this.format(e,"MMMM")},e.prototype.getDayText=function(e){return this.format(e,"D")},e.prototype.getHourText=function(e,t){return this.format(e,t?"hh":"HH")},e.prototype.getMinuteText=function(e){return this.format(e,"mm")},e.prototype.getSecondText=function(e){return this.format(e,"ss")},e}();e.exports=r},"99ffc1a3e7c9f655c544":function(e,t,n){!function(e){"use strict";function t(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function n(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(t(arguments[n]));return e}var a=function(e,t){for(var n=e.position(),a=t.position(),o=0;o<Math.min(n.length,a.length);o+=1){if(n[o]<a[o])return-1;if(n[o]>a[o])return 1}return n.length-a.length},o=function(e,t){return new Error("The '"+e+"' plugin requires '"+t+"' to be defined before it.")},r=function(){function e(){this.gettersCache={},this.knownKeysCache={},this.validationRequired=!0,this.plugins=[],this.subscriptions=new Set}return e.prototype.ensureDependencies=function(){var e=new Set,t=new Map;this.plugins.filter((function(e){return e.container})).forEach((function(n){var a=n.name||"";if(t.has(a))throw o(t.get(a),a);(n.dependencies||[]).forEach((function(n){if(!e.has(n.name)){if(!n.optional)throw o(a,n.name);t.has(n.name)||t.set(n.name,a)}})),e.add(a)}))},e.prototype.registerPlugin=function(e){var t,n,o,r,i,l;this.plugins=(t=this.plugins,n=e,o=t.slice(),r=t.findIndex((function(e){return a(n,e)<=0})),i=r<0?t.length:r,l=i>=0&&i<t.length&&0===a(n,t[i]),o.splice(i,l?1:0,n),o),this.cleanPluginsCache()},e.prototype.unregisterPlugin=function(e){var t,a,o;this.plugins=(t=this.plugins,a=e,(o=t.indexOf(a))>=0?n(t.slice(0,o),t.slice(o+1)):t),this.cleanPluginsCache()},e.prototype.knownKeys=function(e){return this.knownKeysCache[e]||(this.knownKeysCache[e]=Array.from(this.plugins.map((function(e){return Object.keys(e)})).map((function(t){return t.filter((function(t){return t.endsWith(e)}))[0]})).filter((function(e){return!!e})).reduce((function(e,t){return e.add(t)}),new Set)).map((function(t){return t.replace(e,"")}))),this.knownKeysCache[e]},e.prototype.collect=function(e,t){var n=this;if(this.validationRequired&&(this.ensureDependencies(),this.validationRequired=!1),this.gettersCache[e]||(this.gettersCache[e]=this.plugins.map((function(t){return t[e]})).filter((function(e){return!!e}))),!t)return this.gettersCache[e];var a=this.plugins.indexOf(t);return this.gettersCache[e].filter((function(t){return n.plugins.findIndex((function(n){return n[e]===t}))<a}))},e.prototype.get=function(e,t){var n=this.collect(e,t);if(n.length){var a=n[0]();return n.slice(1).forEach((function(e){a=e(a)})),a}},e.prototype.registerSubscription=function(e){this.subscriptions.add(e)},e.prototype.unregisterSubscription=function(e){this.subscriptions.delete(e)},e.prototype.broadcast=function(e,t){this.subscriptions.forEach((function(n){return n[e]&&n[e](t)}))},e.prototype.cleanPluginsCache=function(){this.validationRequired=!0,this.gettersCache={},this.knownKeysCache={}},e}(),i=function(){function e(){this.handlers=[]}return e.prototype.emit=function(e){this.handlers.forEach((function(t){return t(e)}))},e.prototype.subscribe=function(e){this.handlers.push(e)},e.prototype.unsubscribe=function(e){this.handlers.splice(this.handlers.indexOf(e),1)},e}(),l=function(e,t){if(null===e||null===t||e.length!==t.length)return!1;for(var n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0};e.EventEmitter=i,e.PluginHost=r,e.argumentsShallowEqual=l,e.createClickHandlers=function(e,t){var n,a={};return e&&(a.onClick=function(t){n||(n=setTimeout((function(){clearTimeout(n),e(t)}),200))}),t&&(a.onDoubleClick=function(e){clearTimeout(n),t(e)}),a},e.easeInCubic=function(e){return e*e*e},e.easeInOutCubic=function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},e.easeInOutQuad=function(e){return e<.5?2*e*e:(4-2*e)*e-1},e.easeInOutQuart=function(e){return e<.5?8*e*e*e*e:1-8*(e-1)*(e-1)*(e-1)*(e-1)},e.easeInOutQuint=function(e){return e<.5?16*e*e*e*e*e:1+16*(e-1)*(e-1)*(e-1)*(e-1)*(e-1)},e.easeInQuad=function(e){return e*e},e.easeInQuart=function(e){return e*e*e*e},e.easeInQuint=function(e){return e*e*e*e*e},e.easeOutCubic=function(e){return(e-1)*(e-1)*(e-1)+1},e.easeOutQuad=function(e){return e*(2-e)},e.easeOutQuart=function(e){return 1-(e-1)*(e-1)*(e-1)*(e-1)},e.easeOutQuint=function(e){return 1+(e-1)*(e-1)*(e-1)*(e-1)*(e-1)},e.getMessagesFormatter=function(e){return function(t,n){var a=e[t];return"function"===typeof a?a(n):n?function(e,t){return Object.keys(t).reduce((function(e,n){return e.replace("{"+n+"}",t[n])}),e)}(a,n):a}},e.memoize=function(e){var t=null,a=null;return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];return null!==t&&l(t,o)||(a=e.apply(void 0,n(o))),t=o,a}},e.shallowEqual=function(e,t){if(e===t)return!0;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var o=Object.prototype.hasOwnProperty,r=0;r<n.length;r+=1){if(!o.call(t,n[r])||e[n[r]]!==t[n[r]])return!1;if(e[n[r]]!==t[n[r]])return!1}return!0},e.slice=function(e){return Array.prototype.slice.call(e)},Object.defineProperty(e,"__esModule",{value:!0})}(t)},a4bbde9a4d7ae9fa5c4f:function(e,t,n){!function(e,t,n,a,o,r){"use strict";if("undefined"===typeof i)var i={env:{}};r=r&&r.hasOwnProperty("default")?r.default:r;var l=function(e,t){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function c(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var u=function(){return(u=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n}function p(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}var d=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.formatDateTimeGetter=o.memoize((function(e){return a.formatDateTimeGetter(e)})),t}return c(r,e),r.prototype.render=function(){var e=this.props,o=e.data,r=e.rootComponent,i=e.locale,l=e.height,c=e.firstDayOfWeek;return t.createElement(n.Plugin,{name:"SchedulerCore"},t.createElement(n.Getter,{name:"appointments",value:a.appointments(o)}),t.createElement(n.Getter,{name:"formatDate",value:this.formatDateTimeGetter(i)}),t.createElement(n.Getter,{name:"firstDayOfWeek",value:c}),t.createElement(n.Getter,{name:"locale",value:i}),t.createElement(n.Template,{name:"root"},t.createElement(r,{height:l},t.createElement(n.TemplatePlaceholder,{name:"schedulerRoot"}),t.createElement(n.TemplatePlaceholder,{name:"header"}),t.createElement(n.TemplatePlaceholder,{name:"body"}),t.createElement(n.TemplatePlaceholder,{name:"footer"}))))},r}(t.PureComponent),m=function(e){var a=e.data,o=e.rootComponent,r=e.children,i=e.locale,l=e.height,c=e.firstDayOfWeek;return t.createElement(n.PluginHost,null,t.createElement(d,{data:a,rootComponent:o,locale:i,height:l,firstDayOfWeek:c}),r)};m.defaultProps={data:[],locale:"en-US",height:"auto",firstDayOfWeek:0};var f,g=m,h=function(e){return t.createElement(n.TemplatePlaceholder,{name:"cell",params:e})},y=function(){return t.createElement(n.TemplatePlaceholder,{name:"timeTableAppointmentLayer"})},v=function(e){var t=e.viewCellsData;return a.startViewDate(t)},C=function(e){var t=e.viewCellsData;return a.endViewDate(t)},E=function(){return t.createElement(n.TemplatePlaceholder,{name:"timeTable"})},D=function(){return t.createElement(n.TemplatePlaceholder,{name:"dayScale"})},b=function(){return t.createElement(n.TemplatePlaceholder,{name:"dayScaleEmptyCell"})},T=function(){return t.createElement(n.TemplatePlaceholder,{name:"groupingPanel"})},O=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={timeTableElementsMeta:{},scrollingStrategy:{topBoundary:0,bottomBoundary:0,leftBoundary:0,rightBoundary:0,changeVerticalScroll:function(){},changeHorizontalScroll:function(){}},previousTimeTableCell:null,timeTableLayoutKey:0},t.scrollingStrategyComputed=o.memoize((function(e,t){return function(n){return a.computed(n,e,(function(){return t}),n.scrollingStrategy)}})),t.timeTableElementsMetaComputed=o.memoize((function(e,t){return function(n){return a.computed(n,e,(function(){return t}),n.timeTableElementsMeta)}})),t.intervalCountComputed=o.memoize((function(e,t){return function(n){return a.computed(n,e,(function(){return t}),n.intervalCount)}})),t.cellDurationComputed=o.memoize((function(e,t){return function(n){return a.computed(n,e,(function(){return t}),n.cellDuration)}})),t.excludedDaysComputed=o.memoize((function(e,t){return function(n){return a.computed(n,e,(function(){return t}),n.excludedDays)}})),t.availableViewsComputed=o.memoize((function(e,t){return function(n){var o=n.availableViews;return a.availableViews(o,e,t)}})),t.currentViewComputed=o.memoize((function(e,t,n){return function(a){var o=a.currentView;return o&&o.name!==e?o:{name:e,type:n,displayName:t}}})),t.endViewDateComputed=function(e){var n=t.props.name;return a.computed(e,n,C,e.endViewDate)},t.startViewDateComputed=function(e){var n=t.props.name;return a.computed(e,n,v,e.startViewDate)},t.viewCellsDataComputed=o.memoize((function(e,t,n,o,r){return function(i){return a.computed(i,e,r(t,n,o),i.viewCellsData)}})),t.timeTableAppointmentsComputed=o.memoize((function(e,t,n){return function(o){return a.computed(o,e,n(t),o.timeTableAppointments)}})),t.updateCellElementsMeta=o.memoize((function(e){t.setState({timeTableElementsMeta:e})})),t.setScrollingStrategy=function(e){t.setState({scrollingStrategy:e})},t}return c(r,e),r.getDerivedStateFromProps=function(e,t){return e.timeTableCellComponent!==t.previousTimeTableCell?u(u({},t),{previousTimeTableCell:e.timeTableCellComponent,timeTableLayoutKey:Math.random()}):null},r.prototype.render=function(){var e=this,o=this.props,r=o.name,i=o.intervalCount,l=o.displayName,c=o.type,s=o.excludedDays,p=o.cellDuration,d=o.startDayHour,m=o.endDayHour,f=o.viewCellsDataComputed,g=o.calculateAppointmentsIntervals,v=o.dayScaleCellComponent,C=o.dayScaleRowComponent,O=o.dayScaleLayoutComponent,R=o.timeTableCellComponent,N=o.timeTableLayoutComponent,w=o.timeTableRowComponent,S=o.appointmentLayerComponent,A=o.dayScaleEmptyCellComponent,x=o.layoutProps,I=o.layoutComponent,P=this.state,L=P.timeTableElementsMeta,_=P.scrollingStrategy,k=P.timeTableLayoutKey,M=l||r;return t.createElement(n.Plugin,{name:"basicView"},t.createElement(n.Getter,{name:"availableViews",computed:this.availableViewsComputed(r,M)}),t.createElement(n.Getter,{name:"currentView",computed:this.currentViewComputed(r,M,c)}),t.createElement(n.Getter,{name:"intervalCount",computed:this.intervalCountComputed(r,i)}),t.createElement(n.Getter,{name:"excludedDays",computed:this.excludedDaysComputed(r,s)}),t.createElement(n.Getter,{name:"viewCellsData",computed:this.viewCellsDataComputed(r,p,d,m,f)}),t.createElement(n.Getter,{name:"startViewDate",computed:this.startViewDateComputed}),t.createElement(n.Getter,{name:"endViewDate",computed:this.endViewDateComputed}),t.createElement(n.Getter,{name:"cellDuration",computed:this.cellDurationComputed(r,p)}),t.createElement(n.Getter,{name:"timeTableElementsMeta",computed:this.timeTableElementsMetaComputed(r,L)}),t.createElement(n.Getter,{name:"scrollingStrategy",computed:this.scrollingStrategyComputed(r,_)}),t.createElement(n.Getter,{name:"timeTableAppointments",computed:this.timeTableAppointmentsComputed(r,p,g)}),t.createElement(n.Template,{name:"body"},t.createElement(n.TemplateConnector,null,(function(o){var i=o.currentView,l=o.groupOrientation,c=o.groups;if(i.name!==r)return t.createElement(n.TemplatePlaceholder,null);var s=(null===l||void 0===l?void 0:l(r))===a.VERTICAL_GROUP_ORIENTATION;return t.createElement(I,u({dayScaleComponent:D,timeTableComponent:E,setScrollingStrategy:e.setScrollingStrategy,groupingPanelComponent:s?T:void 0,groupingPanelSize:s?null===c||void 0===c?void 0:c.length:0,dayScaleEmptyCellComponent:b},x))}))),t.createElement(n.Template,{name:"dayScale"},t.createElement(n.TemplateConnector,null,(function(e){var o=e.currentView,i=e.viewCellsData,l=e.formatDate,c=e.groupByDate,u=e.groupOrientation;if(o.name!==r)return t.createElement(n.TemplatePlaceholder,null);var s=null===c||void 0===c?void 0:c(r),p=(null===u||void 0===u?void 0:u(r))===a.HORIZONTAL_GROUP_ORIENTATION;return t.createElement(O,{cellComponent:v,rowComponent:C,groupingPanelComponent:p?T:void 0,cellsData:i,formatDate:l,groupedByDate:s})}))),t.createElement(n.Template,{name:"cell"},(function(e){return t.createElement(n.TemplateConnector,null,(function(a){return a.currentView.name!==r?t.createElement(n.TemplatePlaceholder,{params:e}):t.createElement(R,u({},e))}))})),t.createElement(n.Template,{name:"timeTable"},(function(a){return t.createElement(n.TemplateConnector,null,(function(o){var i=o.formatDate,l=o.currentView,c=o.viewCellsData;return l.name!==r?t.createElement(n.TemplatePlaceholder,null):t.createElement(t.Fragment,null,t.createElement(N,u({cellsData:c,rowComponent:w,cellComponent:h,formatDate:i,setCellElementsMeta:e.updateCellElementsMeta,key:k},a)),t.createElement(S,null,t.createElement(y,null)))}))})),t.createElement(n.Template,{name:"dayScaleEmptyCell"},t.createElement(n.TemplateConnector,null,(function(e){return e.currentView.name===r&&A?t.createElement(A,null):t.createElement(n.TemplatePlaceholder,null)}))))},r}(t.PureComponent),R=function(e,t,n){return function(o){var r=o.currentDate,i=o.intervalCount;return a.viewCellsData(r,void 0,i,[],t,n,e,Date.now())}},N=function(e){return function(t){var n=t.appointments,o=t.startViewDate,r=t.endViewDate,i=t.excludedDays;return a.calculateWeekDateIntervals(n,o,r,i,e)}},w=function(){return t.createElement(n.TemplatePlaceholder,{name:"timeScale"})},S=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return c(o,e),o.prototype.render=function(){var e=this.props,o=e.layoutComponent,r=e.dayScaleEmptyCellComponent,i=e.timeScaleLayoutComponent,l=e.timeScaleLabelComponent,c=e.timeScaleTickCellComponent,s=e.timeScaleTicksRowComponent,p=e.dayScaleLayoutComponent,d=e.dayScaleCellComponent,m=e.dayScaleRowComponent,f=e.timeTableLayoutComponent,g=e.timeTableRowComponent,h=e.timeTableCellComponent,y=e.appointmentLayerComponent,v=e.cellDuration,C=e.name,E=e.intervalCount,D=e.displayName,b=e.startDayHour,T=e.endDayHour;return t.createElement(n.Plugin,{name:"DayView"},t.createElement(O,{viewCellsDataComputed:R,type:a.VIEW_TYPES.DAY,cellDuration:v,name:C,intervalCount:E,displayName:D,startDayHour:b,endDayHour:T,calculateAppointmentsIntervals:N,dayScaleEmptyCellComponent:r,dayScaleLayoutComponent:p,dayScaleCellComponent:d,dayScaleRowComponent:m,timeTableCellComponent:h,timeTableLayoutComponent:f,timeTableRowComponent:g,appointmentLayerComponent:y,layoutComponent:o,layoutProps:{timeScaleComponent:w}}),t.createElement(n.Template,{name:"timeScale"},(function(e){return t.createElement(n.TemplateConnector,null,(function(o){var r=o.currentView,p=o.viewCellsData,d=o.groups,m=o.formatDate,f=o.groupOrientation,g=o.timeTableElementsMeta;if(r.name!==C)return t.createElement(n.TemplatePlaceholder,null);var h=null===f||void 0===f?void 0:f(C);return t.createElement(i,u({labelComponent:l,tickCellComponent:c,rowComponent:s,cellsData:p,formatDate:m,groups:d,groupOrientation:h,height:a.getTimeTableHeight(g)},e))}))})))},o.defaultProps={name:"Day",startDayHour:0,endDayHour:24,cellDuration:30,intervalCount:1},o.components={layoutComponent:"Layout",layoutContainer:"LayoutContainer",appointmentLayerComponent:"AppointmentLayer",dayScaleEmptyCellComponent:"DayScaleEmptyCell",timeScaleLayoutComponent:"TimeScaleLayout",timeScaleLabelComponent:"TimeScaleLabel",timeScaleTickCellComponent:"TimeScaleTickCell",timeScaleTicksRowComponent:"TimeScaleTicksRow",dayScaleLayoutComponent:"DayScaleLayout",dayScaleCellComponent:"DayScaleCell",dayScaleRowComponent:"DayScaleRow",timeTableContainerComponent:"TimeTableContainer",timeTableLayoutComponent:"TimeTableLayout",timeTableCellComponent:"TimeTableCell",timeTableRowComponent:"TimeTableRow"},o}(t.PureComponent),A=function(e,t,n){return function(o){var r=o.firstDayOfWeek,i=o.intervalCount,l=o.excludedDays,c=o.currentDate;return a.viewCellsData(c,r,7*i,l,t,n,e,Date.now())}},x=function(e){return function(t){var n=t.appointments,o=t.startViewDate,r=t.endViewDate,i=t.excludedDays;return a.calculateWeekDateIntervals(n,o,r,i,e)}},I=function(){return t.createElement(n.TemplatePlaceholder,{name:"timeScale"})},P=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return c(o,e),o.prototype.render=function(){var e=this.props,o=e.layoutComponent,r=e.dayScaleEmptyCellComponent,i=e.timeScaleLayoutComponent,l=e.timeScaleLabelComponent,c=e.timeScaleTickCellComponent,s=e.timeScaleTicksRowComponent,p=e.dayScaleLayoutComponent,d=e.dayScaleCellComponent,m=e.dayScaleRowComponent,f=e.timeTableLayoutComponent,g=e.timeTableRowComponent,h=e.timeTableCellComponent,y=e.cellDuration,v=e.excludedDays,C=e.name,E=e.appointmentLayerComponent,D=e.intervalCount,b=e.displayName,T=e.startDayHour,R=e.endDayHour;return t.createElement(n.Plugin,{name:"WeekView"},t.createElement(O,{viewCellsDataComputed:A,type:a.VIEW_TYPES.WEEK,cellDuration:y,name:C,intervalCount:D,displayName:b,startDayHour:T,endDayHour:R,excludedDays:v,calculateAppointmentsIntervals:x,dayScaleEmptyCellComponent:r,dayScaleLayoutComponent:p,dayScaleCellComponent:d,dayScaleRowComponent:m,timeTableCellComponent:h,timeTableLayoutComponent:f,timeTableRowComponent:g,appointmentLayerComponent:E,layoutComponent:o,layoutProps:{timeScaleComponent:I}}),t.createElement(n.Template,{name:"timeScale"},(function(e){return t.createElement(n.TemplateConnector,null,(function(o){var r=o.currentView,p=o.viewCellsData,d=o.groups,m=o.formatDate,f=o.groupOrientation,g=o.timeTableElementsMeta;if(r.name!==C)return t.createElement(n.TemplatePlaceholder,null);var h=null===f||void 0===f?void 0:f(C);return t.createElement(i,u({labelComponent:l,tickCellComponent:c,rowComponent:s,cellsData:p,formatDate:m,groups:d,groupOrientation:h,height:a.getTimeTableHeight(g)},e))}))})))},o.defaultProps={startDayHour:0,endDayHour:24,cellDuration:30,intervalCount:1,excludedDays:[],name:"Week"},o.components={layoutComponent:"Layout",layoutContainerComponent:"LayoutContainer",appointmentLayerComponent:"AppointmentLayer",dayScaleEmptyCellComponent:"DayScaleEmptyCell",timeScaleLayoutComponent:"TimeScaleLayout",timeScaleLabelComponent:"TimeScaleLabel",timeScaleTickCellComponent:"TimeScaleTickCell",timeScaleTicksRowComponent:"TimeScaleTicksRow",dayScaleLayoutComponent:"DayScaleLayout",dayScaleCellComponent:"DayScaleCell",dayScaleRowComponent:"DayScaleRow",timeTableContainerComponent:"TimeTableContainer",timeTableLayoutComponent:"TimeTableLayout",timeTableCellComponent:"TimeTableCell",timeTableRowComponent:"TimeTableRow"},o}(t.PureComponent),L=function(e,t,n){return function(e){var t=e.currentDate,n=e.firstDayOfWeek,o=e.intervalCount;return a.monthCellsData(t,n,o,Date.now())}},_=function(e){return function(e){var t=e.appointments,n=e.startViewDate,o=e.endViewDate;return e.excludedDays,a.calculateMonthDateIntervals(t,n,o)}},k=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return c(o,e),o.prototype.render=function(){var e=this.props,o=e.layoutComponent,r=e.dayScaleEmptyCellComponent,i=e.dayScaleLayoutComponent,l=e.dayScaleCellComponent,c=e.dayScaleRowComponent,u=e.timeTableLayoutComponent,s=e.timeTableRowComponent,p=e.timeTableCellComponent,d=e.appointmentLayerComponent,m=e.name,f=e.intervalCount,g=e.displayName;return t.createElement(n.Plugin,{name:"MonthView"},t.createElement(O,{viewCellsDataComputed:L,type:a.VIEW_TYPES.MONTH,name:m,intervalCount:f,displayName:g,calculateAppointmentsIntervals:_,dayScaleEmptyCellComponent:r,dayScaleLayoutComponent:i,dayScaleCellComponent:l,dayScaleRowComponent:c,timeTableCellComponent:p,timeTableLayoutComponent:u,timeTableRowComponent:s,appointmentLayerComponent:d,layoutComponent:o}))},o.defaultProps={intervalCount:1,name:"Month"},o.components={layoutComponent:"Layout",appointmentLayerComponent:"AppointmentLayer",dayScaleEmptyCellComponent:"DayScaleEmptyCell",dayScaleLayoutComponent:"DayScaleLayout",dayScaleCellComponent:"DayScaleCell",dayScaleRowComponent:"DayScaleRow",timeTableContainerComponent:"TimeTableContainer",timeTableLayoutComponent:"TimeTableLayout",timeTableCellComponent:"TimeTableCell",timeTableRowComponent:"TimeTableRow"},o}(t.PureComponent),M=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return c(a,e),a.prototype.render=function(){var e=this.props,a=e.rootComponent,o=e.flexibleSpaceComponent;return t.createElement(n.Plugin,{name:"Toolbar"},t.createElement(n.Template,{name:"header"},t.createElement(a,null,t.createElement(n.TemplatePlaceholder,{name:"toolbarContent"})),t.createElement(n.TemplatePlaceholder,null)),t.createElement(n.Template,{name:"toolbarContent"},t.createElement(o,null)))},a.components={rootComponent:"Root",flexibleSpaceComponent:"FlexibleSpace"},a}(t.PureComponent),B=[{name:"Toolbar"},{name:"ViewState"}],V=function(e,t,n){return function(a,o){return e({direction:a,nextDate:o,amount:n,step:t.type})}},q=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={visible:!1},t.setRootRef=function(e){t.target=e},t.handleVisibilityToggle=function(){t.setState((function(e){return{visible:!e.visible}}))},t.handleHide=function(){t.setState({visible:!1})},t.navigateAction=o.memoize((function(e,t,n,a){return a(e,t,n)})),t}return c(r,e),r.prototype.render=function(){var e=this,o=this.props,r=o.rootComponent,i=o.overlayComponent,l=o.openButtonComponent,c=o.navigationButtonComponent,u=o.calendarComponent,s=o.calendarRowComponent,p=o.calendarCellComponent,d=o.calendarHeaderRowComponent,m=o.calendarHeaderCellComponent,f=o.calendarTextComponent,g=o.calendarNavigationButtonComponent,h=o.calendarNavigatorComponent,y=this.state.visible;return t.createElement(n.Plugin,{name:"DateNavigator",dependencies:B},t.createElement(n.Template,{name:"toolbarContent"},t.createElement(n.TemplateConnector,null,(function(n,o){var v=n.currentDate,C=n.startViewDate,E=n.endViewDate,D=n.firstDayOfWeek,b=n.currentView,T=n.intervalCount,O=n.formatDate,R=o.changeCurrentDate,N=e.navigateAction(R,b,T,V),w=a.viewBoundText(C,E,b.type,v,T,O);return t.createElement(t.Fragment,null,t.createElement(r,{navigationButtonComponent:c,openButtonComponent:l,navigatorText:w,rootRef:e.setRootRef,onVisibilityToggle:e.handleVisibilityToggle,onNavigate:N}),t.createElement(i,{visible:y,target:e.target,onHide:e.handleHide},t.createElement(u,{selectedDate:v,firstDayOfWeek:D,getCells:a.monthCellsData,textComponent:f,navigationButtonComponent:g,rowComponent:s,cellComponent:p,headerRowComponent:d,headerCellComponent:m,navigatorComponent:h,onSelectedDateChange:function(t){N(void 0,t),e.handleHide()},formatDate:O})))})),t.createElement(n.TemplatePlaceholder,null)))},r.components={rootComponent:"Root",overlayComponent:"Overlay",openButtonComponent:"OpenButton",navigationButtonComponent:"NavigationButton",calendarComponent:"Calendar",calendarRowComponent:"CalendarRow",calendarCellComponent:"CalendarCell",calendarHeaderRowComponent:"CalendarHeaderRow",calendarHeaderCellComponent:"CalendarHeaderCell",calendarTextComponent:"CalendarText",calendarNavigatorComponent:"CalendarNavigator",calendarNavigationButtonComponent:"CalendarNavigationButton"},r}(t.PureComponent),G=[{name:"Toolbar"},{name:"ViewState"}],W=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return c(a,e),a.prototype.render=function(){var e=this.props.switcherComponent;return t.createElement(n.Plugin,{name:"ViewSwitcher",dependencies:G},t.createElement(n.Template,{name:"toolbarContent"},t.createElement(n.TemplatePlaceholder,null),t.createElement(n.TemplateConnector,null,(function(n,a){var o=n.currentView,r=n.availableViews,i=a.setCurrentViewName;return t.createElement(e,{currentView:o,availableViews:r,onChange:i})}))))},a.components={switcherComponent:"Switcher"},a}(t.PureComponent),j=function(e){return t.createElement(n.TemplatePlaceholder,{name:"appointment",params:e})},H=function(e){return e.map((function(e){var n=e.dataItem,o=e.type,r=e.fromPrev,i=e.toNext,l=e.durationType,c=e.resources,u=e.key,p=s(e,["dataItem","type","fromPrev","toNext","durationType","resources","key"]);return t.createElement(j,{key:u,type:o,data:n,fromPrev:r,toNext:i,durationType:l,resources:c,style:a.getAppointmentStyle(p)})}))},Y=[{name:"DayView",optional:!0},{name:"WeekView",optional:!0},{name:"MonthView",optional:!0}],F=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.updateTimeTableAppointments=o.memoize((function(e,t,n,o,r,i,l,c,u,s,p){if(!a.isTimeTableElementsMetaActual(t,n))return null;var d=u?u(null===o||void 0===o?void 0:o.name):a.HORIZONTAL_GROUP_ORIENTATION,m=c?a.getGroupsLastRow(c).length:1,f={growDirection:a.VERTICAL_TYPE,multiline:!1},g=a.getVerticalRectByAppointmentData;return o.type===a.VIEW_TYPES.MONTH&&(f={growDirection:a.HORIZONTAL_TYPE,multiline:!0},g=a.getHorizontalRectByAppointmentData),H(a.calculateRectByDateAndGroupIntervals(f,e,g,{startViewDate:r,endViewDate:i,cellDuration:l,viewCellsData:t,cellElementsMeta:n,placeAppointmentsNextToEachOther:p},{groupOrientation:d,groupedByDate:null===s||void 0===s?void 0:s(null===o||void 0===o?void 0:o.name),groupCount:m}))})),t.updateAllDayAppointments=o.memoize((function(e,t,n,o,r,i,l,c,u){var s=c?c(null===o||void 0===o?void 0:o.name):a.HORIZONTAL_GROUP_ORIENTATION,p=l?a.getGroupsLastRow(l).length:1;return a.isAllDayElementsMetaActual(t,n,s,p)?H(a.calculateRectByDateAndGroupIntervals({growDirection:a.HORIZONTAL_TYPE,multiline:!1},e,a.getHorizontalRectByAppointmentData,{startViewDate:r,endViewDate:i,viewCellsData:t,cellElementsMeta:n},{groupOrientation:s,groupedByDate:null===u||void 0===u?void 0:u(null===o||void 0===o?void 0:o.name),groupCount:p})):null})),t}return c(r,e),r.prototype.render=function(){var e=this,r=this.props,i=r.splitIndicatorComponent,l=r.appointmentComponent,c=r.appointmentContentComponent,p=r.containerComponent,d=r.recurringIconComponent,m=r.placeAppointmentsNextToEachOther;return t.createElement(n.Plugin,{name:"Appointments",dependencies:Y},t.createElement(n.Template,{name:"timeTableAppointmentLayer"},t.createElement(n.TemplateConnector,null,(function(t){var n=t.timeTableAppointments,a=t.viewCellsData,o=t.timeTableElementsMeta,r=t.currentView,i=t.startViewDate,l=t.endViewDate,c=t.cellDuration,u=t.groupOrientation,s=t.groups,p=t.groupByDate;return e.updateTimeTableAppointments(n,a,o,r,i,l,c,s,u,p,m)}))),t.createElement(n.Template,{name:"allDayAppointmentLayer"},t.createElement(n.TemplateConnector,null,(function(t){var n=t.allDayAppointments,a=t.viewCellsData,o=t.allDayElementsMeta,r=t.startViewDate,i=t.endViewDate,l=t.groupOrientation,c=t.currentView,u=t.groups,s=t.groupByDate;return e.updateAllDayAppointments(n,a,o,c,r,i,u,l,s)}))),t.createElement(n.Template,{name:"appointment"},(function(e){var a=e.style,o=s(e,["style"]);return t.createElement(n.TemplateConnector,null,(function(e){var r=e.formatDate;return t.createElement(p,{style:a},t.createElement(n.TemplatePlaceholder,{name:"appointmentTop",params:{data:o.data,type:o.type,slice:o.fromPrev}}),t.createElement(n.TemplatePlaceholder,{name:"appointmentContent",params:u(u({},o),{formatDate:r})}),t.createElement(n.TemplatePlaceholder,{name:"appointmentBottom",params:{data:o.data,type:o.type,slice:o.toNext}}))}))})),t.createElement(n.Template,{name:"appointmentContent"},(function(e){var n=e.onClick,r=e.onDoubleClick,p=e.formatDate,m=e.data,f=e.type,g=e.fromPrev,h=e.toNext,y=e.durationType,v=e.resources,C=s(e,["onClick","onDoubleClick","formatDate","data","type","fromPrev","toNext","durationType","resources"]);return t.createElement(l,u({data:m,resources:v},o.createClickHandlers(n,r),C),g&&t.createElement(i,{position:a.POSITION_START,appointmentType:f}),t.createElement(c,{data:m,type:f,durationType:y,recurringIconComponent:d,formatDate:p,resources:v}),h&&t.createElement(i,{position:a.POSITION_END,appointmentType:f}))})))},r.components={splitIndicatorComponent:"SplitIndicator",containerComponent:"Container",appointmentComponent:"Appointment",appointmentContentComponent:"AppointmentContent",recurringIconComponent:"RecurringIcon"},r.defaultProps={placeAppointmentsNextToEachOther:!1},r}(t.PureComponent),z=function(e){return e.type===a.VIEW_TYPES.MONTH},U=function(e,t){return(null===t||void 0===t?void 0:t(e.name))===a.VERTICAL_GROUP_ORIENTATION},K=[{name:"DayView",optional:!0},{name:"WeekView",optional:!0}],Z={allDay:"All Day"},X=function(){return t.createElement(n.TemplatePlaceholder,{name:"allDayAppointmentLayer"})},Q=function(e){return t.createElement(n.TemplatePlaceholder,{name:"allDayPanel",params:e})},J=function(e){return t.createElement(n.TemplatePlaceholder,{name:"allDayPanelCell",params:e})},$=function(e){return t.createElement(n.TemplatePlaceholder,{name:"allDayTitle",params:e})},ee=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={elementsMeta:{},previousCell:null,layoutKey:0},t.allDayCellsDataComputed=o.memoize((function(e){var t=e.viewCellsData;return a.allDayCells(t)})),t.updateCellElementsMeta=o.memoize((function(e){t.setState({elementsMeta:e})})),t.allDayAppointmentsComputed=o.memoize((function(e){var t=e.appointments,n=e.startViewDate,o=e.endViewDate,i=e.excludedDays,l=r(n).hours(0).minutes(0).toDate(),c=r(o).hours(23).minutes(59).toDate();return a.calculateAllDayDateIntervals(t,l,c,i)})),t.allDayPanelExistsComputed=o.memoize((function(e){var t=e.currentView;return!z(t)})),t.getMessageFormatter=o.memoize((function(e,t){return o.getMessagesFormatter(u(u({},t),e))})),t}return c(i,e),i.getDerivedStateFromProps=function(e,t){return e.cellComponent!==t.previousCell?u(u({},t),{previousCell:e.cellComponent,layoutKey:Math.random()}):null},i.prototype.render=function(){var e=this,o=this.props,r=o.appointmentLayerComponent,i=o.layoutComponent,l=o.cellComponent,c=o.rowComponent,s=o.titleCellComponent,p=o.containerComponent,d=o.messages,m=this.state,f=m.elementsMeta,g=m.layoutKey,h=this.getMessageFormatter(d,Z);return t.createElement(n.Plugin,{name:"AllDayPanel",dependencies:K},t.createElement(n.Getter,{name:"allDayElementsMeta",value:f}),t.createElement(n.Getter,{name:"allDayCellsData",computed:this.allDayCellsDataComputed}),t.createElement(n.Getter,{name:"allDayPanelExists",computed:this.allDayPanelExistsComputed}),t.createElement(n.Getter,{name:"allDayAppointments",computed:this.allDayAppointmentsComputed}),t.createElement(n.Template,{name:"timeTable"},(function(e){return t.createElement(n.TemplateConnector,null,(function(a){var o=a.currentView,i=a.groupOrientation,l=a.allDayCellsData;return z(o)||!U(o,i)?t.createElement(n.TemplatePlaceholder,{params:e}):t.createElement(t.Fragment,null,t.createElement(n.TemplatePlaceholder,{params:u(u({},e),{allDayCellComponent:J,allDayRowComponent:c,allDayCellsData:l})}),t.createElement(r,null,t.createElement(X,null)))}))})),t.createElement(n.Template,{name:"dayScaleEmptyCell"},t.createElement(n.TemplateConnector,null,(function(e){var a=e.currentView,o=e.groupOrientation;return z(a)||U(a,o)?t.createElement(n.TemplatePlaceholder,null):t.createElement($,null)}))),t.createElement(n.Template,{name:"timeScale"},(function(e){return t.createElement(n.TemplateConnector,null,(function(a){var o=a.currentView,r=a.groupOrientation;return z(o)||!U(o,r)?t.createElement(n.TemplatePlaceholder,{params:e}):t.createElement(n.TemplatePlaceholder,{params:u(u({},e),{allDayTitleComponent:$,showAllDayTitle:!0})})}))})),t.createElement(n.Template,{name:"dayScale"},t.createElement(n.TemplatePlaceholder,null),t.createElement(n.TemplateConnector,null,(function(e){var n=e.currentView,a=e.groupOrientation;return z(n)||U(n,a)?null:t.createElement(p,null,t.createElement(Q,null))}))),t.createElement(n.Template,{name:"allDayPanel"},t.createElement(n.TemplatePlaceholder,null),t.createElement(n.TemplateConnector,null,(function(n){var o=n.currentView,l=n.formatDate,u=n.allDayCellsData;return o.type===a.VIEW_TYPES.MONTH?null:t.createElement(t.Fragment,null,t.createElement(i,{cellComponent:J,rowComponent:c,cellsData:u[0],setCellElementsMeta:e.updateCellElementsMeta,formatDate:l,key:g}),t.createElement(r,null,t.createElement(X,null)))}))),t.createElement(n.Template,{name:"allDayTitle"},(function(e){return t.createElement(s,u({getMessage:h},e))})),t.createElement(n.Template,{name:"allDayPanelCell"},(function(e){return t.createElement(l,u({},e))})))},i.defaultProps={messages:{}},i.components={appointmentLayerComponent:"AppointmentLayer",layoutComponent:"Layout",layoutContainerComponent:"LayoutContainer",cellComponent:"Cell",rowComponent:"Row",titleCellComponent:"TitleCell",containerComponent:"Container"},i}(t.PureComponent),te=function(e){function r(t){var r=e.call(this,t)||this;r.getCurrentViewComputed=o.memoize((function(e){return function(){return e?{name:e}:void 0}})),r.state={currentDate:t.currentDate||t.defaultCurrentDate,currentViewName:t.currentViewName||t.defaultCurrentViewName};var i=n.createStateHelper(r,{currentDate:function(){return r.props.onCurrentDateChange},currentViewName:function(){return r.props.onCurrentViewNameChange}});return r.changeCurrentDate=i.applyFieldReducer.bind(i,"currentDate",a.changeCurrentDate),r.setCurrentViewName=i.applyFieldReducer.bind(i,"currentViewName",a.setCurrentViewName),r}return c(r,e),r.getDerivedStateFromProps=function(e,t){var n=e.currentDate,a=void 0===n?t.currentDate:n,o=e.currentViewName;return{currentDate:a,currentViewName:void 0===o?t.currentViewName:o}},r.prototype.render=function(){var e=this.state,a=e.currentDate,o=e.currentViewName;return t.createElement(n.Plugin,{name:"ViewState"},t.createElement(n.Getter,{name:"currentDate",value:a}),t.createElement(n.Getter,{name:"currentView",computed:this.getCurrentViewComputed(o)}),t.createElement(n.Action,{name:"changeCurrentDate",action:this.changeCurrentDate}),t.createElement(n.Action,{name:"setCurrentViewName",action:this.setCurrentViewName}))},r.defaultProps={defaultCurrentDate:new Date},r}(t.PureComponent),ne=function(e){function o(t){var o=e.call(this,t)||this;o.state={editingAppointment:t.editingAppointment||t.defaultEditingAppointment,addedAppointment:t.addedAppointment||t.defaultAddedAppointment,appointmentChanges:t.appointmentChanges||t.defaultAppointmentChanges};var r=n.createStateHelper(o,{editingAppointment:function(){return o.props.onEditingAppointmentChange},addedAppointment:function(){return o.props.onAddedAppointmentChange},appointmentChanges:function(){return o.props.onAppointmentChangesChange}});return o.startEditAppointment=r.applyFieldReducer.bind(r,"editingAppointment",a.startEditAppointment),o.stopEditAppointment=r.applyFieldReducer.bind(r,"editingAppointment",a.stopEditAppointment),o.changeAppointment=r.applyFieldReducer.bind(r,"appointmentChanges",a.changeAppointment),o.cancelChangedAppointment=r.applyFieldReducer.bind(r,"appointmentChanges",a.cancelChanges),o.commitChangedAppointment=function(e){void 0===e&&(e=a.RECURRENCE_EDIT_SCOPE.CURRENT);var t=o.state,n=t.appointmentChanges,r=t.editingAppointment,i=o.props,l=i.onCommitChanges,c=i.preCommitChanges;r&&(l(r.rRule?c(n,r,e):{changed:a.changedAppointmentById(n,r.id)}),o.cancelChangedAppointment(),o.stopEditAppointment())},o.addAppointment=r.applyFieldReducer.bind(r,"addedAppointment",a.addAppointment),o.changeAddedAppointment=r.applyFieldReducer.bind(r,"addedAppointment",a.changeAppointment),o.cancelAddedAppointment=r.applyFieldReducer.bind(r,"addedAppointment",a.cancelAddedAppointment),o.commitAddedAppointment=function(){(0,o.props.onCommitChanges)({added:o.state.addedAppointment})},o.commitDeletedAppointment=function(e){var t=e.deletedAppointmentData,n=e.type,a=void 0===n?"current":n,r=o.props,i=r.onCommitChanges,l=r.preCommitChanges;i(t.rRule?l(null,t,a):{deleted:t.id})},o}return c(o,e),o.getDerivedStateFromProps=function(e,t){var n=e.editingAppointment,a=void 0===n?t.editingAppointment:n,o=e.appointmentChanges,r=void 0===o?t.appointmentChanges:o,i=e.addedAppointment;return{editingAppointment:a,appointmentChanges:r,addedAppointment:void 0===i?t.addedAppointment:i}},o.prototype.render=function(){var e=this.state,a=e.addedAppointment,o=e.editingAppointment,r=e.appointmentChanges;return t.createElement(n.Plugin,{name:"EditingState"},t.createElement(n.Getter,{name:"editingAppointment",value:o}),t.createElement(n.Action,{name:"startEditAppointment",action:this.startEditAppointment}),t.createElement(n.Action,{name:"stopEditAppointment",action:this.stopEditAppointment}),t.createElement(n.Getter,{name:"appointmentChanges",value:r}),t.createElement(n.Action,{name:"changeAppointment",action:this.changeAppointment}),t.createElement(n.Action,{name:"cancelChangedAppointment",action:this.cancelChangedAppointment}),t.createElement(n.Action,{name:"commitChangedAppointment",action:this.commitChangedAppointment}),t.createElement(n.Getter,{name:"addedAppointment",value:a}),t.createElement(n.Action,{name:"addAppointment",action:this.addAppointment}),t.createElement(n.Action,{name:"changeAddedAppointment",action:this.changeAddedAppointment}),t.createElement(n.Action,{name:"cancelAddedAppointment",action:this.cancelAddedAppointment}),t.createElement(n.Action,{name:"commitAddedAppointment",action:this.commitAddedAppointment}),t.createElement(n.Action,{name:"commitDeletedAppointment",action:this.commitDeletedAppointment}))},o.defaultProps={defaultEditingAppointment:void 0,defaultAppointmentChanges:{},defaultAddedAppointment:{},preCommitChanges:a.preCommitChanges},o}(t.PureComponent),ae=[{name:"Appointments"},{name:"EditingState",optional:!0},{name:"EditRecurrenceMenu",optional:!0},{name:"IntegratedEditing",optional:!0}],oe={open:a.OPEN_COMMAND_BUTTON,close:a.CLOSE_COMMAND_BUTTON,delete:a.DELETE_COMMAND_BUTTON},re=function(e){function o(t){var o=e.call(this,t)||this;o.state={visible:t.visible,appointmentMeta:t.appointmentMeta};var r=n.createStateHelper(o,{visible:function(){return o.props.onVisibilityChange},appointmentMeta:function(){return o.props.onAppointmentMetaChange}});return o.toggleVisibility=r.applyFieldReducer.bind(r,"visible",(function(){return!o.state.visible})),o.setAppointmentMeta=r.applyFieldReducer.bind(r,"appointmentMeta",a.setAppointmentMeta),o.onAppointmentClick=function(e){var t=e.target,n=e.data;o.setAppointmentMeta({target:t,data:n}),o.toggleVisibility()},o}return c(o,e),o.getDerivedStateFromProps=function(e,t){var n=e.visible,a=void 0===n?t.visible:n,o=e.appointmentMeta;return{appointmentMeta:void 0===o?t.appointmentMeta:o,visible:a}},o.prototype.render=function(){var e=this,o=this.props,r=o.showOpenButton,i=o.showDeleteButton,l=o.showCloseButton,c=o.layoutComponent,s=o.headerComponent,p=o.contentComponent,d=o.commandButtonComponent,m=o.recurringIconComponent,f=this.state,g=f.visible,h=f.appointmentMeta;return t.createElement(n.Plugin,{name:"AppointmentTooltip",dependencies:ae},t.createElement(n.Action,{name:a.TOGGLE_APPOINTMENT_TOOLTIP_VISIBILITY,action:this.toggleVisibility}),t.createElement(n.Template,{name:"timeTable"},t.createElement(n.TemplatePlaceholder,null),t.createElement(n.TemplateConnector,null,(function(o,c){var f=o.formatDate,y=o.resources,v=o.plainResources,C=c.finishDeleteAppointment,E=c.openDeleteConfirmationDialog;return t.createElement(n.TemplatePlaceholder,{name:"tooltip",params:u(u({commandButtonComponent:d,recurringIconComponent:m,showOpenButton:r,showDeleteButton:i,showCloseButton:l,headerComponent:s,contentComponent:p,appointmentMeta:h,appointmentResources:h?a.getAppointmentResources(h.data,y,v):[],visible:g,onHide:e.toggleVisibility,commandButtonIds:oe},C&&{onDeleteButtonClick:function(){E?E({hideActionName:a.TOGGLE_APPOINTMENT_TOOLTIP_VISIBILITY,appointmentData:h.data}):(e.toggleVisibility(),C(h.data))}}),{formatDate:f})})}))),t.createElement(n.Template,{name:"tooltip"},(function(e){return t.createElement(c,u({},e))})),t.createElement(n.Template,{name:"appointment"},(function(a){return t.createElement(n.TemplatePlaceholder,{params:u(u({},a),{onClick:function(t){var n=t.target,a=t.data;return e.onAppointmentClick({target:n,data:a})}})})})))},o.defaultProps={showOpenButton:!1,showDeleteButton:!1,showCloseButton:!1},o.components={layoutComponent:"Layout",headerComponent:"Header",contentComponent:"Content",commandButtonComponent:"CommandButton",recurringIconComponent:"RecurringIcon"},o}(t.PureComponent),ie=function(e,o,r,i,l,c,s,p,d){var m=i?i.reduce((function(e,t){var n;return u(u({},e),((n={})[t.fieldName]=t.id,n))}),{}):{},f=l?a.checkMultipleResourceFields(m,l):m,g=u({title:e,startDate:o,endDate:r,allDay:c},f);return t.createElement(n.TemplatePlaceholder,{params:u(u({},d),{onDoubleClick:function(){s(g),a.callActionIfExists(p,{appointmentData:g})}})})},le={allDayLabel:"All Day",titleLabel:"Title",commitCommand:"Save",detailsLabel:"Details",moreInformationLabel:"More Information",repeatLabel:"Repeat",notesLabel:"Notes",never:"Never",daily:"Daily",weekly:"Weekly",monthly:"Monthly",yearly:"Yearly",repeatEveryLabel:"Repeat every",daysLabel:"day(s)",endRepeatLabel:"End repeat",onLabel:"On",afterLabel:"After",occurrencesLabel:"occurrence(s)",weeksOnLabel:"week(s) on:",monthsLabel:"month(s)",ofEveryMonthLabel:"of every month",theLabel:"The",firstLabel:"First",secondLabel:"Second",thirdLabel:"Third",fourthLabel:"Fourth",lastLabel:"Last",yearsLabel:"year(s)",ofLabel:"of ",everyLabel:"Every"},ce=function(){return t.createElement(n.TemplatePlaceholder,{name:"commandLayout"})},ue=function(){return t.createElement(n.TemplatePlaceholder,{name:"basicLayout"})},se=function(){return t.createElement(n.TemplatePlaceholder,{name:"recurrenceLayout"})},pe=[{name:"EditingState",optional:!0},{name:"Appointments",optional:!0},{name:"AppointmentTooltip",optional:!0},{name:"EditRecurrenceMenu",optional:!0},{name:"IntegratedEditing",optional:!0}],de=function(e,t,n,o,r,i){var l=!t,c=u(u(u({},e),o),l&&n);return{changedAppointment:c,appointmentResources:a.getAppointmentResources(c,r,i),isNew:l,isFormEdited:l||0!==Object.getOwnPropertyNames(o).length}},me=function(e,t,n){return!!t||!e&&!!n},fe=function(e){function r(r){var i=e.call(this,r)||this;i.container=t.createRef(),i.commitChanges=o.memoize((function(e,t,n,o){return function(){i.toggleVisibility(),n?a.callActionIfExists(t,o):e&&e(),i.setState({previousAppointment:o})}})),i.cancelChanges=o.memoize((function(e,t,n,o,r,l,c){return function(){e&&0!==Object.keys(o).length?e(a.TOGGLE_APPOINTMENT_FORM_VISIBILITY):(t?a.callActionIfExists(l,o):(a.callActionIfExists(n,o),a.callActionIfExists(c,o)),i.toggleVisibility()),i.setState({previousAppointment:r})}})),i.deleteAppointment=o.memoize((function(e,t,n,o,r,l,c,u){return function(){n?n({hideActionName:a.TOGGLE_APPOINTMENT_FORM_VISIBILITY,appointmentData:o}):(a.callActionIfExists(e,t),u?a.callActionIfExists(r,t):(a.callActionIfExists(l,t),a.callActionIfExists(c,t)),i.toggleVisibility()),i.setState({previousAppointment:o})}})),i.changeAppointmentField=o.memoize((function(e,t,n){return function(o){o&&o.rRule&&i.setState({previousAppointment:u(u({},i.state.previousAppointment),{rRule:o.rRule})}),e?a.callActionIfExists(t,{change:o}):a.callActionIfExists(n,{change:o})}})),i.getMessage=o.memoize((function(e,t){return o.getMessagesFormatter(u(u({},e),t))})),i.state={visible:r.visible,appointmentData:r.appointmentData||{},previousAppointment:r.appointmentData||{}};var l=n.createStateHelper(i,{visible:function(){return i.props.onVisibilityChange},appointmentData:function(){return i.props.onAppointmentDataChange}});return i.toggleVisibility=l.applyFieldReducer.bind(l,"visible",(function(){return!i.state.visible})),i.setAppointmentData=l.applyFieldReducer.bind(l,"appointmentData",a.setAppointmentData),i.openFormHandler=function(e){i.setAppointmentData({appointmentData:e}),i.toggleVisibility()},i}return c(r,e),r.getDerivedStateFromProps=function(e,t){var n=e.visible,a=void 0===n?t.visible:n,o=e.appointmentData;return{appointmentData:void 0===o?t.appointmentData:o,visible:a}},r.prototype.render=function(){var e=this,o=this.props,r=o.containerComponent,i=o.overlayComponent,l=o.layoutComponent,c=o.commandLayoutComponent,s=o.basicLayoutComponent,p=o.recurrenceLayoutComponent,d=o.commandButtonComponent,m=o.textEditorComponent,f=o.labelComponent,g=o.dateEditorComponent,h=o.booleanEditorComponent,y=o.selectComponent,v=o.radioGroupComponent,C=o.weeklyRecurrenceSelectorComponent,E=o.resourceEditorComponent,D=o.readOnly,b=o.messages,T=this.state,O=T.visible,R=T.appointmentData,N=T.previousAppointment,w=this.getMessage(le,b);return t.createElement(n.Plugin,{name:"AppointmentForm",dependencies:pe},t.createElement(n.Action,{name:a.TOGGLE_APPOINTMENT_FORM_VISIBILITY,action:this.toggleVisibility}),t.createElement(n.Template,{name:"schedulerRoot"},t.createElement(n.TemplateConnector,null,(function(a,o){var c=a.editingAppointment,s=a.addedAppointment,p=a.appointmentChanges,d=a.resources,m=a.plainResources,f=o.openCancelConfirmationDialog,g=o.stopEditAppointment,h=o.cancelAddedAppointment,y=o.cancelChangedAppointment,v=de(R,c,s,p,d,m),C=v.changedAppointment,E=v.isNew,D=me(O,C.rRule,N.rRule);return t.createElement(t.Fragment,null,t.createElement(r,{ref:e.container}),t.createElement(i,{visible:O,onHide:function(){return O&&e.cancelChanges(f,E,g,u(u({},p),s),C,h,y)()},fullSize:D,target:e.container},t.createElement(l,{basicLayoutComponent:ue,commandLayoutComponent:ce,recurrenceLayoutComponent:se,isRecurrence:D})),t.createElement(n.TemplatePlaceholder,null))}))),t.createElement(n.Template,{name:"commandLayout"},t.createElement(n.TemplateConnector,null,(function(n,a){var o=n.editingAppointment,r=n.addedAppointment,i=n.appointmentChanges,l=n.resources,s=n.plainResources,p=a.commitAddedAppointment,m=a.finishCommitAppointment,f=a.finishDeleteAppointment,g=a.stopEditAppointment,h=a.cancelAddedAppointment,y=a.cancelChangedAppointment,v=a.openCancelConfirmationDialog,C=a.openDeleteConfirmationDialog,E=de(R,o,r,i,l,s),b=E.isNew,T=E.changedAppointment,S=E.isFormEdited,A=me(O,T.rRule,N.rRule);return t.createElement(c,{commandButtonComponent:d,onCommitButtonClick:e.commitChanges(m,p,b,T),onCancelButtonClick:e.cancelChanges(v,b,g,u(u({},i),r),T,h,y),onDeleteButtonClick:e.deleteAppointment(f,R,C,T,h,y,g,b),getMessage:w,readOnly:D,fullSize:A,disableSaveButton:!S,hideDeleteButton:b})}))),t.createElement(n.Template,{name:"basicLayout"},t.createElement(n.TemplateConnector,null,(function(n,a){var o=n.editingAppointment,r=n.addedAppointment,i=n.appointmentChanges,l=n.locale,c=n.resources,u=n.plainResources,p=a.changeAppointment,d=a.changeAddedAppointment,v=de(R,o,r,i,c,u),C=v.isNew,b=v.changedAppointment,T=v.appointmentResources;return t.createElement(s,{locale:l,appointmentData:O?b:N,onFieldChange:e.changeAppointmentField(C,d,p),getMessage:w,readOnly:D,textEditorComponent:m,dateEditorComponent:g,booleanEditorComponent:h,selectComponent:y,labelComponent:f,resourceEditorComponent:E,fullSize:!b.rRule,resources:c,appointmentResources:T})}))),t.createElement(n.Template,{name:"recurrenceLayout"},t.createElement(n.TemplateConnector,null,(function(n,a){var o=n.editingAppointment,r=n.addedAppointment,i=n.appointmentChanges,l=n.formatDate,c=n.locale,s=n.firstDayOfWeek,d=a.changeAddedAppointment,h=a.changeAppointment,E=de(R,o,r,i,void 0,void 0),b=E.isNew,T=E.changedAppointment,S=me(O,T.rRule,N.rRule),A=T.rRule?T:u(u({},T),{rRule:N.rRule});return t.createElement(p,{locale:c,appointmentData:O?A:N,onFieldChange:e.changeAppointmentField(b,d,h),getMessage:w,readOnly:D,formatDate:l,textEditorComponent:m,dateEditorComponent:g,radioGroupComponent:v,weeklyRecurrenceSelectorComponent:C,labelComponent:f,selectComponent:y,visible:S,firstDayOfWeek:s})}))),t.createElement(n.Template,{name:"tooltip"},(function(o){return t.createElement(n.TemplateConnector,null,(function(r,i){var l=i.startEditAppointment;return t.createElement(n.TemplatePlaceholder,{params:u(u({},o),{onOpenButtonClick:function(){e.openFormHandler(o.appointmentMeta.data),a.callActionIfExists(l,o.appointmentMeta.data)}})})}))})),t.createElement(n.Template,{name:"appointment"},(function(o){return t.createElement(n.TemplateConnector,null,(function(r,i){var l=i.startEditAppointment;return t.createElement(n.TemplatePlaceholder,{params:u(u({},o),{onDoubleClick:function(){e.openFormHandler(o.data),a.callActionIfExists(l,o.data)}})})}))})),t.createElement(n.Template,{name:"cell"},(function(o){return t.createElement(n.TemplateConnector,null,(function(t,n){var r=t.resources,i=n.addAppointment;return ie(void 0,o.startDate,o.endDate,o.groupingInfo,r,a.isAllDayCell(o.startDate,o.endDate),e.openFormHandler,i,o)}))})),t.createElement(n.Template,{name:"allDayPanelCell"},(function(a){return t.createElement(n.TemplateConnector,null,(function(t,n){var o=t.resources,r=n.addAppointment;return ie(void 0,a.startDate,a.endDate,a.groupingInfo,o,!0,e.openFormHandler,r,a)}))})))},r.defaultProps={messages:{},readOnly:!1,onVisibilityChange:function(){},onAppointmentDataChange:function(){}},r.components={overlayComponent:"Overlay",layoutComponent:"Layout",commandLayoutComponent:"CommandLayout",commandButtonComponent:"CommandButton",basicLayoutComponent:"BasicLayout",textEditorComponent:"TextEditor",labelComponent:"Label",dateEditorComponent:"DateEditor",booleanEditorComponent:"BooleanEditor",selectComponent:"Select",recurrenceLayoutComponent:"RecurrenceLayout",radioGroupComponent:"RadioGroup",weeklyRecurrenceSelectorComponent:"WeeklyRecurrenceSelector",resourceEditorComponent:"ResourceEditor",containerComponent:"Container"},r}(t.PureComponent),ge=function(e,a,o){return e.length>0?t.createElement(a,null,e.map((function(e,a){return t.createElement(n.TemplatePlaceholder,{name:"draftAppointment",key:a.toString(),params:{data:o,draftAppointment:e}})}))):null},he=[{name:"EditingState"},{name:"Appointments"},{name:"EditRecurrenceMenu",optional:!0},{name:"IntegratedEditing",optional:!0},{name:"DayView",optional:!0},{name:"WeekView",optional:!0},{name:"MonthView",optional:!0},{name:"AllDayPanel",optional:!0}],ye=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeTableDraftAppointments=[],t.allDayDraftAppointments=[],t.offsetTimeTop=null,t.appointmentStartTime=null,t.appointmentEndTime=null,t.appointmentGroupingInfo={},t.state={startTime:null,endTime:null,appointmentGroupingInfo:null,payload:null,isOutside:!1,allowDrag:function(){return!0},allowResize:function(){return!0},appointmentContentTemplateKey:0,appointmentTopTemplateKey:0,appointmentBottomTemplateKey:0},t.handleDrop=function(e){var n=e.finishCommitAppointment;return function(){n(),t.resetCache()}},t.handleLeave=function(){t.setState({isOutside:!0})},t}return c(o,e),o.getDerivedStateFromProps=function(e,t){var n=e.allowDrag===t.allowDrag,a=e.allowResize===t.allowResize;return n&&a?null:u(u({},t),{appointmentContentTemplateKey:n?t.appointmentContentTemplateKey:Math.random(),appointmentTopTemplateKey:a?t.appointmentTopTemplateKey:Math.random(),appointmentBottomTemplateKey:a?t.appointmentBottomTemplateKey:Math.random(),allowDrag:e.allowDrag,allowResize:e.allowResize})},o.prototype.onPayloadChange=function(e){var t=this;return function(n){return t.handlePayloadChange(n,e)}},o.prototype.calculateNextBoundaries=function(e,t,n){var a=this;return function(o){return a.calculateBoundaries(o,e,t,n)}},o.prototype.resetCache=function(){this.timeTableDraftAppointments=[],this.allDayDraftAppointments=[],this.offsetTimeTop=null,this.appointmentStartTime=null,this.appointmentEndTime=null,this.appointmentGroupingInfo={},this.setState({payload:null,startTime:null,endTime:null,isOutside:!1})},o.prototype.applyChanges=function(e,t,n,a,o,r){a(n),o({change:u(u({startDate:e,endDate:t},n.allDay&&{allDay:void 0}),this.appointmentGroupingInfo)}),this.setState({startTime:e,endTime:t,payload:n,isOutside:!1,appointmentGroupingInfo:r})},o.prototype.handlePayloadChange=function(e,t){var n=e.payload,a=t.finishCommitAppointment,o=this.state.isOutside;!n&&o&&(a(),this.resetCache())},o.prototype.calculateBoundaries=function(e,t,n,o){var r=e.payload,i=e.clientOffset,l=t.viewCellsData,c=t.allDayCellsData,s=t.startViewDate,p=t.endViewDate,d=t.excludedDays,m=t.currentView,f=t.timeTableElementsMeta,g=t.allDayElementsMeta,h=t.scrollingStrategy,y=t.grouping,v=t.resources,C=t.groups,E=t.groupOrientation,D=t.groupByDate,b=n.changeAppointment,T=n.startEditAppointment;i&&a.autoScroll(i,h,o);var O=f,R=E?E(null===m||void 0===m?void 0:m.name):a.HORIZONTAL_GROUP_ORIENTATION,N=g&&g.getCellRects?g:{getCellRects:[]},w=a.cellIndex(O.getCellRects,i),S=a.cellIndex(N.getCellRects,i);if(-1!==S||-1!==w){var A=a.cellData(w,S,l,c),x=a.cellType(A),I=a.calculateInsidePart(i.y,O.getCellRects,w),P=a.intervalDuration(A,"minutes"),L=a.calculateAppointmentTimeBoundaries(r,A,x,P,I,this.offsetTimeTop),_=L.appointmentStartTime,k=L.appointmentEndTime,M=L.offsetTimeTop,B=a.calculateAppointmentGroups(A.groupingInfo,v,r);this.appointmentStartTime=_||this.appointmentStartTime,this.appointmentEndTime=k||this.appointmentEndTime,this.appointmentGroupingInfo=B||this.appointmentGroupingInfo,this.offsetTimeTop=M;var V=this.state,q=V.startTime,G=V.endTime,W=V.appointmentGroupingInfo;if(a.appointmentDragged(this.appointmentStartTime,q,this.appointmentEndTime,G,this.appointmentGroupingInfo,W)){var j=[{dataItem:u(u(u({},r),{startDate:this.appointmentStartTime,endDate:this.appointmentEndTime}),this.appointmentGroupingInfo),start:this.appointmentStartTime,end:this.appointmentEndTime}],H=a.calculateDraftAppointments(S,j,s,p,d,l,N,x,P,O,y,v,C,R,null===D||void 0===D?void 0:D(null===m||void 0===m?void 0:m.name)),Y=H.allDayDraftAppointments,F=H.timeTableDraftAppointments;this.allDayDraftAppointments=Y,this.timeTableDraftAppointments=F,this.applyChanges(this.appointmentStartTime,this.appointmentEndTime,r,T,b,this.appointmentGroupingInfo)}}},o.prototype.render=function(){var e=this,o=this.state,r=o.payload,i=o.appointmentContentTemplateKey,l=o.appointmentBottomTemplateKey,c=o.appointmentTopTemplateKey,p=this.props,d=p.containerComponent,m=p.draftAppointmentComponent,f=p.sourceAppointmentComponent,g=p.resizeComponent,h=p.allowDrag,y=p.allowResize,v=p.scrollSpeed,C=u(u({},r),{startDate:this.appointmentStartTime,endDate:this.appointmentEndTime});return t.createElement(n.Plugin,{name:"DragDropProvider",dependencies:he},t.createElement(n.Template,{name:"body"},t.createElement(n.TemplateConnector,null,(function(a,o){var r=a.viewCellsData,i=a.allDayCellsData,l=a.startViewDate,c=a.endViewDate,u=a.excludedDays,s=a.timeTableElementsMeta,p=a.allDayElementsMeta,d=a.scrollingStrategy,m=a.grouping,f=a.resources,g=a.groups,h=a.currentView,y=a.groupByDate,C=a.groupOrientation,E=o.changeAppointment,D=o.startEditAppointment,b=o.finishCommitAppointment,T=e.calculateNextBoundaries({viewCellsData:r,allDayCellsData:i,currentView:h,startViewDate:l,endViewDate:c,excludedDays:u,timeTableElementsMeta:s,allDayElementsMeta:p,scrollingStrategy:d,resources:f,grouping:m,groups:g,groupByDate:y,groupOrientation:C},{changeAppointment:E,startEditAppointment:D},v);return t.createElement(n.DragDropProvider,{onChange:e.onPayloadChange({finishCommitAppointment:b})},t.createElement(n.DropTarget,{onOver:T,onEnter:T,onDrop:e.handleDrop({finishCommitAppointment:b}),onLeave:e.handleLeave},t.createElement(n.TemplatePlaceholder,null)))}))),t.createElement(n.Template,{name:"appointmentContent",predicate:function(e){var t=e.data;return h(t)},key:i},(function(e){e.styles;var a=s(e,["styles"]);return t.createElement(n.DragSource,{payload:u(u({},a.data),{type:a.type})},r&&a.data.id===r.id?t.createElement(f,u({},a)):t.createElement(n.TemplatePlaceholder,{params:u(u({},a),{draggable:!0})}))})),t.createElement(n.Template,{name:"appointmentTop",predicate:function(e){return!e.slice&&y(e.data)},key:c},(function(e){var o=e.data,r=e.type;return t.createElement(n.DragSource,{payload:u(u({},o),{type:a.RESIZE_TOP,appointmentType:r})},t.createElement(g,{position:a.POSITION_START,appointmentType:r}))})),t.createElement(n.Template,{name:"appointmentBottom",predicate:function(e){return!e.slice&&y(e.data)},key:l},(function(e){var o=e.data,r=e.type;return t.createElement(n.DragSource,{payload:u(u({},o),{type:a.RESIZE_BOTTOM,appointmentType:r})},t.createElement(g,{position:a.POSITION_END,appointmentType:r}))})),t.createElement(n.Template,{name:"allDayPanel"},t.createElement(n.TemplateConnector,null,(function(o){var r=o.currentView,i=o.groupOrientation;return t.createElement(t.Fragment,null,t.createElement(n.TemplatePlaceholder,null),(null===i||void 0===i?void 0:i(r.name))!==a.VERTICAL_GROUP_ORIENTATION?ge(e.allDayDraftAppointments,d,C):null)}))),t.createElement(n.Template,{name:"timeTable"},t.createElement(n.TemplateConnector,null,(function(o){var r=o.currentView,i=o.groupOrientation;return t.createElement(t.Fragment,null,t.createElement(n.TemplatePlaceholder,null),ge(e.timeTableDraftAppointments,d,C),(null===i||void 0===i?void 0:i(r.name))===a.VERTICAL_GROUP_ORIENTATION?ge(e.allDayDraftAppointments,d,C):null)}))),t.createElement(n.Template,{name:"draftAppointment"},(function(e){var o=e.data,r=e.draftAppointment,i=s(e,["data","draftAppointment"]);return t.createElement(n.TemplateConnector,null,(function(e){var n=e.formatDate,l=e.resources,c=e.plainResources,p=r.dataItem,d=r.type,f=r.fromPrev,g=r.toNext,h=r.durationType,y=s(r,["dataItem","type","fromPrev","toNext","durationType"]);return t.createElement(m,u({data:o,resources:a.getAppointmentResources(p,l,c),durationType:h,style:a.getAppointmentStyle(y),type:d,fromPrev:f,toNext:g,formatDate:n},i))}))})))},o.components={containerComponent:"Container",draftAppointmentComponent:"DraftAppointment",sourceAppointmentComponent:"SourceAppointment",resizeComponent:"Resize"},o.defaultProps={allowDrag:function(){return!0},allowResize:function(){return!0},scrollSpeed:a.SCROLL_SPEED_PX},o}(t.PureComponent),ve=[{name:"Toolbar"},{name:"ViewState"}],Ce={today:"Today"},Ee=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return c(a,e),a.prototype.render=function(){var e=this.props,a=e.buttonComponent,r=e.messages,i=o.getMessagesFormatter(u(u({},Ce),r));return t.createElement(n.Plugin,{name:"TodayButton",dependencies:ve},t.createElement(n.Template,{name:"toolbarContent"},t.createElement(n.TemplateConnector,null,(function(e,n){var o=n.changeCurrentDate;return t.createElement(a,{getMessage:i,setCurrentDate:function(e){return o({nextDate:e})}})})),t.createElement(n.TemplatePlaceholder,null)))},a.components={buttonComponent:"Button"},a}(t.PureComponent),De=[{name:"EditingState"}],be=[{value:a.RECURRENCE_EDIT_SCOPE.CURRENT},{value:a.RECURRENCE_EDIT_SCOPE.CURRENT_AND_FOLLOWING},{value:a.RECURRENCE_EDIT_SCOPE.ALL}],Te=((f={})[a.RECURRENCE_EDIT_SCOPE.CURRENT]="This appointment",f[a.RECURRENCE_EDIT_SCOPE.CURRENT_AND_FOLLOWING]="This and following appointments",f[a.RECURRENCE_EDIT_SCOPE.ALL]="All appointments",f.menuEditingTitle="Edit recurring appointment",f.menuDeletingTitle="Delete recurring appointment",f.cancelButton="Cancel",f.commitButton="OK",f),Oe=function(e){function a(){var n=null!==e&&e.apply(this,arguments)||this;return n.modalContainer=t.createRef(),n.state={isOpen:!1,deletedAppointmentData:null},n.finishCommitAppointment=function(e,t,a){var o=t.editingAppointment,r=a.commitChangedAppointment;o&&!o.rRule?r():n.setState({isOpen:!0,deletedAppointmentData:null})},n.finishDeleteAppointment=function(e,t,a){var o=a.commitDeletedAppointment;e&&!e.rRule?o({deletedAppointmentData:e}):n.setState({isOpen:!0,deletedAppointmentData:e})},n.commit=o.memoize((function(e,t,a){return function(o){a?t({deletedAppointmentData:a,type:o}):e(o),n.closeMenu()}})),n.closeMenu=function(){n.setState({isOpen:!1,deletedAppointmentData:null})},n.cancelEditing=o.memoize((function(e,t){return function(){t(),e(),n.closeMenu()}})),n.availableOperations=o.memoize((function(e,t){return t.map((function(t){var n=t.value;return{value:n,title:e([n])}}))})),n.getMessage=o.memoize((function(e,t){return o.getMessagesFormatter(u(u({},t),e))})),n}return c(a,e),a.prototype.render=function(){var e=this,a=this.state,o=a.isOpen,r=a.deletedAppointmentData,i=this.props,l=i.layoutComponent,c=i.overlayComponent,u=i.containerComponent,s=i.buttonComponent,p=i.messages,d=this.getMessage(p,Te),m=this.availableOperations(d,be);return t.createElement(n.Plugin,{name:"EditRecurrenceMenu",dependencies:De},t.createElement(n.Action,{name:"finishCommitAppointment",action:this.finishCommitAppointment}),t.createElement(n.Action,{name:"finishDeleteAppointment",action:this.finishDeleteAppointment}),t.createElement(n.Template,{name:"schedulerRoot"},t.createElement(n.TemplatePlaceholder,null),t.createElement(u,{ref:this.modalContainer}),t.createElement(n.TemplatePlaceholder,{name:"overlay"})),t.createElement(n.Template,{name:"overlay"},t.createElement(n.TemplateConnector,null,(function(n,a){var i=a.commitChangedAppointment,u=a.commitDeletedAppointment,p=a.cancelChangedAppointment,f=a.stopEditAppointment,g=e.commit(i,u,r),h=e.cancelEditing(p,f);return t.createElement(c,{target:e.modalContainer,visible:o,onHide:e.closeMenu},t.createElement(l,{isDeleting:!!r,buttonComponent:s,handleClose:h,commit:g,availableOperations:m,getMessage:d}))}))))},a.components={layoutComponent:"Layout",overlayComponent:"Overlay",buttonComponent:"Button",containerComponent:"Container"},a}(t.PureComponent),Re=[{name:"EditingState"}],Ne=function(e){function a(){var t=null!==e&&e.apply(this,arguments)||this;return t.finishCommitAppointment=function(e,t,n){(0,n.commitChangedAppointment)()},t.finishDeleteAppointment=function(e,t,n){(0,n.commitDeletedAppointment)({deletedAppointmentData:e})},t}return c(a,e),a.prototype.render=function(){return t.createElement(n.Plugin,{name:"IntegratedEditing",dependencies:Re},t.createElement(n.Action,{name:"finishCommitAppointment",action:this.finishCommitAppointment}),t.createElement(n.Action,{name:"finishDeleteAppointment",action:this.finishDeleteAppointment}))},a.defaultProps={totalCount:0},a}(t.PureComponent),we=[{name:"Appointments"}],Se=function(e){var t=e.timeTableAppointments,n=e.resources,o=e.plainResources;return t&&a.addResourcesToAppointments(t[0],n,o)},Ae=function(e){var t=e.allDayAppointments,n=e.resources,o=e.plainResources;return t&&a.addResourcesToAppointments(t[0],n,o)},xe=t.memo((function(e){var o=e.data,r=e.mainResourceName,i=e.palette;return t.createElement(n.Plugin,{name:"Resources",dependencies:we},t.createElement(n.Getter,{name:"resources",value:a.validateResources(o,r,i)}),t.createElement(n.Getter,{name:"plainResources",computed:function(e){var t=e.resources;return a.convertResourcesToPlain(t)}}),t.createElement(n.Getter,{name:"timeTableAppointments",computed:Se}),t.createElement(n.Getter,{name:"allDayAppointments",computed:Ae}))})),Ie={discardButton:"Discard",deleteButton:"Delete",cancelButton:"Cancel",confirmDeleteMessage:"Are you sure you want to delete this appointment?",confirmCancelMessage:"Discard unsaved changes?"},Pe=[{name:"EditingState"},{name:"EditRecurrenceMenu",optional:!0},{name:"IntegratedEditing",optional:!0}],Le="cancel",_e="delete",ke=function(e){var a=e.messages,r=e.overlayComponent,i=e.layoutComponent,l=e.containerComponent,c=e.buttonComponent,s=e.ignoreDelete,d=e.ignoreCancel,m=o.getMessagesFormatter(u(u({},Ie),a)),f=t.useRef(),g=p(t.useState(!1),2),h=g[0],y=g[1],v=p(t.useState(""),2),C=v[0],E=v[1],D=p(t.useState(""),2),b=D[0],T=D[1],O=p(t.useState({}),2),R=O[0],N=O[1],w=t.useCallback((function(){y(!h)}),[h,y]),S=t.useCallback((function(e){w(),T(e),E(Le)}),[w,T,E]),A=t.useCallback((function(e){var t=e.hideActionName,n=e.appointmentData;w(),T(t),E(_e),N(n)}),[w,T,E,N]),x=t.useCallback((function(e,t,n,a,o,r){return function(){t(),w(),e?o():(n(),r()),C===_e&&a(R)}}),[w,C,R]);return t.createElement(n.Plugin,{name:"ConfirmationDialog",dependencies:Pe},!d&&t.createElement(n.Action,{name:"openCancelConfirmationDialog",action:S}),!s&&t.createElement(n.Action,{name:"openDeleteConfirmationDialog",action:A}),t.createElement(n.Template,{name:"schedulerRoot"},t.createElement(n.TemplatePlaceholder,null),t.createElement(l,{ref:f}),t.createElement(n.TemplatePlaceholder,{name:"confirmationDialogOverlay"})),t.createElement(n.Template,{name:"confirmationDialogOverlay"},t.createElement(n.TemplateConnector,null,(function(e,n){var a=e.editingAppointment,o=x(!a,n[b],n.stopEditAppointment,n.finishDeleteAppointment,n.cancelAddedAppointment,n.cancelChangedAppointment);return t.createElement(r,{target:f,visible:h,onHide:w},t.createElement(i,{buttonComponent:c,handleCancel:w,handleConfirm:o,getMessage:m,isDeleting:C===_e,appointmentData:R}))}))))};ke.components={overlayComponent:"Overlay",containerComponent:"Container",layoutComponent:"Layout",buttonComponent:"Button"},ke.defaultProps={ignoreCancel:!1,ignoreDelete:!1};var Me=ke,Be=function(e){function o(t){var o=e.call(this,t)||this;return o.state={grouping:t.grouping,expandedGroups:t.expandedGroups||t.defaultExpandedGroups},o.stateHelper=n.createStateHelper(o,{expandedGroups:function(){return o.props.onExpandedGroupsChange}}),o.toggleGroupExpanded=o.stateHelper.applyReducer.bind(o.stateHelper,a.toggleExpandedGroups),o}return c(o,e),o.getDerivedStateFromProps=function(e,t){var n=e.grouping,a=void 0===n?t.grouping:n,o=e.expandedGroups;return{grouping:a,expandedGroups:void 0===o?t.expandedGroups:o}},o.prototype.render=function(){var e=this.state,a=e.grouping,o=e.expandedGroups,r=this.props,i=r.groupByDate,l=r.groupOrientation;return t.createElement(n.Plugin,{name:"GroupingState"},t.createElement(n.Getter,{name:"grouping",value:a}),t.createElement(n.Getter,{name:"groupByDate",value:i}),t.createElement(n.Getter,{name:"groupOrientation",value:l}),t.createElement(n.Getter,{name:"expandedGroups",value:o}),t.createElement(n.Action,{name:"toggleGroupExpanded",action:this.toggleGroupExpanded}))},o.defaultProps={defaultExpandedGroups:[],groupByDate:function(){return!1},groupOrientation:function(){return a.HORIZONTAL_GROUP_ORIENTATION}},o}(t.PureComponent),Ve=[{name:"GroupingState"},{name:"IntegratedGrouping"},{name:"DayView",optional:!0},{name:"MonthView",optional:!0},{name:"WeekView",optional:!0},{name:"ViewState",optional:!0}],qe=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return c(o,e),o.prototype.render=function(){var e=this.props,o=e.horizontalLayoutComponent,r=e.verticalLayoutComponent,i=e.rowComponent,l=e.cellComponent;return t.createElement(n.Plugin,{name:"GroupingPanel",dependencies:Ve},t.createElement(n.Template,{name:"groupingPanel"},t.createElement(n.TemplateConnector,null,(function(e){var n=e.viewCellsData,c=e.currentView,u=e.scrollingStrategy,s=e.allDayPanelExists,p=e.groupByDate,d=e.groupOrientation,m=e.groups;return d(null===c||void 0===c?void 0:c.name)===a.HORIZONTAL_GROUP_ORIENTATION?t.createElement(o,{rowComponent:i,cellComponent:l,groups:m,colSpan:n[0].length,cellStyle:{left:u.fixedLeftWidth?u.fixedLeftWidth:(null===c||void 0===c?void 0:c.type)===a.VIEW_TYPES.MONTH?a.HORIZONTAL_VIEW_LEFT_OFFSET:a.VERTICAL_VIEW_LEFT_OFFSET},showHeaderForEveryDate:null===p||void 0===p?void 0:p(c&&c.name)}):t.createElement(r,{rowComponent:i,cellComponent:l,groups:m,rowSpan:n.length,viewType:null===c||void 0===c?void 0:c.type,cellTextTopOffset:null===u||void 0===u?void 0:u.fixedTopHeight,alignWithAllDayRow:s})}))))},o.components={horizontalLayoutComponent:"HorizontalLayout",verticalLayoutComponent:"VerticalLayout",rowComponent:"Row",cellComponent:"Cell"},o}(t.PureComponent),Ge=[{name:"DayView",optional:!0},{name:"WeekView",optional:!0},{name:"MonthView",optional:!0},{name:"DragDropProvider",optional:!0},{name:"Appointments",optional:!0}],We=function(e){var o=e.indicatorComponent,r=e.shadePreviousAppointments,i=e.shadePreviousCells,l=e.updateInterval,c=p(t.useState(Date.now),2),s=c[0],d=c[1];return t.useEffect((function(){var e=l?window.setInterval((function(){return d(Date.now())}),l):void 0;return function(){return window.clearInterval(e)}}),[l]),t.createElement(n.Plugin,{name:"CurrentTimeIndicator",dependencies:Ge},t.createElement(n.Template,{name:"cell",predicate:function(e){var t=e.otherMonth;return!a.isMonthCell(t)}},(function(e){return t.createElement(n.TemplatePlaceholder,{params:u(u({},e),{currentTimeIndicatorPosition:a.getCurrentTimeIndicatorTop(e,s),currentTimeIndicatorComponent:o})})})),t.createElement(n.Template,{name:"cell"},(function(e){return t.createElement(n.TemplatePlaceholder,{params:u(u({},e),{isShaded:a.isCellShaded(e,s,i)})})})),t.createElement(n.Template,{name:"appointmentContent"},(function(e){return t.createElement(n.TemplatePlaceholder,{params:u(u({},e),{isShaded:a.isShadedAppointment(e,s,r)})})})),t.createElement(n.Template,{name:"draftAppointment"},(function(e){return t.createElement(n.TemplatePlaceholder,{params:u(u({},e),{isShaded:a.isShadedAppointment(e,s,r)})})})))};We.defaultProps={updateInterval:6e4,shadePreviousCells:!1,shadePreviousAppointments:!1},We.components={indicatorComponent:"Indicator"};var je=We,He=[{name:"Resources"},{name:"GroupingState"},{name:"DayView",optional:!0},{name:"MonthView",optional:!0},{name:"WeekView",optional:!0}],Ye=function(e){var t=e.viewCellsData,n=e.groups,o=e.resourcesToGroupBy,r=e.groupByDate,i=e.currentView,l=e.groupOrientation;return a.expandViewCellsDataWithGroups(t,n,o,r(i.name),l(i.name))},Fe=function(e){var t=e.allDayCellsData,n=e.groups,o=e.resourcesToGroupBy,r=e.groupByDate,i=e.currentView,l=e.groupOrientation;return t&&a.expandViewCellsDataWithGroups(t,n,o,r(i.name),l(i.name))},ze=function(e){var t=e.resourcesToGroupBy;return a.getGroupsFromResources(t)},Ue=function(e){var t=e.resources,n=e.grouping;return a.sortFilteredResources(a.filterResourcesByGrouping(t,n),n)},Ke=function(e){var t=e.grouping,n=e.resources;return a.updateGroupingWithMainResource(t,n)},Ze=function(e){var t=e.timeTableAppointments,n=e.grouping,o=e.resourcesToGroupBy,r=e.groups,i=e.groupByDate,l=e.currentView,c=e.excludedDays;return t&&a.expandGroups(t,n,o,r,c,i(null===l||void 0===l?void 0:l.name)&&(null===l||void 0===l?void 0:l.type)===a.VIEW_TYPES.MONTH)},Xe=function(e){var t=e.allDayAppointments,n=e.grouping,o=e.resourcesToGroupBy,r=e.groups,i=e.groupByDate,l=e.currentView,c=e.excludedDays;return t&&a.expandGroups(t,n,o,r,c,i(null===l||void 0===l?void 0:l.name))},Qe=function(e){var t=e.currentView,n=e.groupByDate;return(0,e.groupOrientation)(null===t||void 0===t?void 0:t.name)===a.VERTICAL_GROUP_ORIENTATION?function(){return!1}:n},Je=function(e){var t=e.timeTableElementsMeta,n=e.groupOrientation,o=e.groups,r=e.allDayPanelExists,i=e.viewCellsData,l=e.currentView;return a.updateTimeTableCellElementsMeta(t,n,o,r,i,l)},$e=function(e){var t=e.allDayElementsMeta,n=e.timeTableElementsMeta,o=e.groupOrientation,r=e.groups,i=e.allDayPanelExists,l=e.viewCellsData,c=e.currentView;return a.updateAllDayCellElementsMeta(t,n,o,r,i,l,c)},et=t.memo((function(){return t.createElement(n.Plugin,{name:"IntegratedGrouping",dependencies:He},t.createElement(n.Getter,{name:"groupByDate",computed:Qe}),t.createElement(n.Getter,{name:"grouping",computed:Ke}),t.createElement(n.Getter,{name:"resourcesToGroupBy",computed:Ue}),t.createElement(n.Getter,{name:"groups",computed:ze}),t.createElement(n.Getter,{name:"viewCellsData",computed:Ye}),t.createElement(n.Getter,{name:"allDayCellsData",computed:Fe}),t.createElement(n.Getter,{name:"timeTableAppointments",computed:Ze}),t.createElement(n.Getter,{name:"allDayAppointments",computed:Xe}),t.createElement(n.Getter,{name:"allDayElementsMeta",computed:$e}),t.createElement(n.Getter,{name:"timeTableElementsMeta",computed:Je}))}));e.AllDayPanel=ee,e.AppointmentForm=fe,e.AppointmentTooltip=re,e.Appointments=F,e.ConfirmationDialog=Me,e.CurrentTimeIndicator=je,e.DateNavigator=q,e.DayView=S,e.DragDropProvider=ye,e.EditRecurrenceMenu=Oe,e.EditingState=ne,e.GroupingPanel=qe,e.GroupingState=Be,e.IntegratedEditing=Ne,e.IntegratedGrouping=et,e.MonthView=k,e.Resources=xe,e.Scheduler=g,e.TodayButton=Ee,e.Toolbar=M,e.ViewState=te,e.ViewSwitcher=W,e.WeekView=P,Object.defineProperty(e,"__esModule",{value:!0})}(t,n("8af190b70a6bc55c6f1b"),n("cbfe2f6349d8982779a0"),n("c4160044f3a2da0d78ad"),n("99ffc1a3e7c9f655c544"),n("4f0dfcf9dfa819c812e6"))},ac7c9e5bd458a9cc6a6a:function(e,t,n){"use strict";if("undefined"===typeof a)var a={env:{}};function o(e){return e&&"object"===typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var r=n("8af190b70a6bc55c6f1b"),i=o(r),l=n("8a2d1b95e05b6a321e74"),c=n("a4bbde9a4d7ae9fa5c4f"),u=n("6938d226fd372a75cbf9"),s=n("c4160044f3a2da0d78ad"),p=o(n("988b7bbe4d0c07f69a17")),d=n("cbfe2f6349d8982779a0"),m=n("b0c37be7de20d933b466"),f=n("a9d46fa1f298693c7c0e"),g=o(n("a289f12938702445a8e7")),h=o(n("2abb2ecfab271efcf057")),y=o(n("f466c6fac21e2bd173f8")),v=o(n("f0d76769f542545382df")),C=o(n("303f4e6a92aa91e96a0d")),E=o(n("282d5645b44ba868741e")),D=o(n("1fcb8f6d8f8292281b75")),b=o(n("2aea235afd5c55b8b19b")),T=o(n("c9cf21802d514796b22f")),O=o(n("e799c547a20a503b338f")),R=o(n("083d6914129797192aa6")),N=o(n("5e56989cfce2721faf6e")),w=o(n("2de20a79156911f204a2")),S=o(n("921c0b8c557fe6ba5da8")),A=o(n("435859b6b76fb67a754a")),x=o(n("70073af8444cb9485ac8")),I=o(n("2e3d7c444d4c95c6550f")),P=o(n("e68eb59aa96fc65ab714")),L=o(n("ab7ebb4f5c369f043e8f")),_=o(n("e9cb1a74b44c7bf473df")),k=o(n("ae9596d86622312bdbac")),M=o(n("63bac7d5ea40ecc9ba06")),B=o(n("d6ee9608d4696651c3fb")),V=o(n("c7fd554010f79f6c0ef8")),q=o(n("baa88efd5d685b20131b")),G=o(n("2c86c5e17ed449932b22")),W=n("7c3fe2cb581dd1babffa"),j=o(n("c502bee2fd4be3dd7f62")),H=o(n("5c0a236ca4c0b26f32cd")),Y=o(n("2618892602a0e7905b7d")),F=o(n("fee60f331c8753fe01a3")),z=o(n("8e8be3dfc3937f600de1")),U=o(n("d0ba7e69ae965aab0022")),K=o(n("be638c054224589367e1")),Z=o(n("e727e731a9bed8ec3c2a")),X=o(n("10e4c616cb3b01bafafd")),Q=o(n("1551459233b95bf53af9")),J=o(n("eb6b79030a47f0b10efc"));function $(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function te(){return(te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function re(e,t){return(re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ie(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n,a,o={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function le(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ce(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?le(e):t}function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],a=!0,o=!1,r=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function se(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var pe=function(e){var t=e.children,n=e.classes,a=e.className,o=ie(e,["children","classes","className"]);return r.createElement("div",te({className:p(n.container,a)},o),t)};"production"!==a.env.NODE_ENV&&(pe.propTypes={classes:l.object.isRequired,children:l.node.isRequired,className:l.string}),pe.defaultProps={className:void 0};var de=function(e){var t=e.height,n=e.style,a=ie(e,["height","style"]),o=t===s.AUTO_HEIGHT?{height:"100%"}:{height:"".concat(t,"px")};return r.createElement(pe,te({style:ae({},o,{},n)},a))};"production"!==a.env.NODE_ENV&&(de.propTypes={height:l.oneOfType([l.number,l.string]).isRequired,style:l.object}),de.defaultProps={style:null};var me,fe,ge=u.withStyles({container:{WebkitOverflowScrolling:"touch",width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column"}},{name:"Root"})(de),he=function(e){var t=e.children,n=ie(e,["children"]);return r.createElement(c.Scheduler,te({rootComponent:ge},n),t)};he.Root=ge,"production"!==a.env.NODE_ENV&&(he.propTypes={children:l.node.isRequired});var ye=f.blue,ve=[f.red,f.pink,f.purple,f.deepPurple,f.indigo,f.blue,f.lightBlue,f.cyan,f.teal,f.green,f.lightGreen,f.lime,f.yellow,f.amber,f.orange,f.deepOrange],Ce="@media (max-width: ".concat(500,"px)"),Ee="@media (max-width: ".concat(700,"px)"),De=(ee(me={},s.VIEW_TYPES.MONTH,12.5),ee(me,s.VIEW_TYPES.WEEK,6),ee(me,s.VIEW_TYPES.DAY,6),ee(me,s.VIEW_TYPES.ALL_DAY_PANEL,5.75),me),be=(ee(fe={},s.VIEW_TYPES.MONTH,8*De[s.VIEW_TYPES.MONTH]),ee(fe,s.VIEW_TYPES.WEEK,8*De[s.VIEW_TYPES.WEEK]),ee(fe,s.VIEW_TYPES.DAY,8*De[s.VIEW_TYPES.DAY]),ee(fe,s.VIEW_TYPES.ALL_DAY_PANEL,8*De[s.VIEW_TYPES.ALL_DAY_PANEL]),fe),Te=De[s.VIEW_TYPES.WEEK],Oe=function(e){return"1px solid ".concat("light"===e.palette.type?m.lighten(m.fade(e.palette.divider,1),.88):m.darken(m.fade(e.palette.divider,1),.68))},Re=function(e){return"1px solid ".concat("light"===e.palette.type?m.lighten(m.fade(e.palette.divider,1),.72):m.darken(m.fade(e.palette.divider,1),.5))},Ne=function(e){return{parentRect:function(){return e.getBoundingClientRect()},getCellRects:Array.from(e.querySelectorAll("td")).map((function(e){return function(){return e.getBoundingClientRect()}}))}},we=function(e,t){return t[e]||ye[e]},Se=function(e){var t;if(e&&e.length)return null===(t=e.find((function(e){return e.isMain})))||void 0===t?void 0:t.color},Ae=function(e,t,n){return t?"string"===typeof t?t:we(e,t):we(e,n)},xe=function(e,t){return"".concat(e*t,"px")},Ie=function(e,t){return t?t.reduce((function(e,t){return e.concat(t.id)}),e.toString()):e.toString()},Pe=u.makeStyles((function(e){return{container:{overflowY:"auto",position:"relative",tableLayout:"fixed"},stickyElement:{tableLayout:"fixed",position:"sticky",overflow:"visible",background:e.palette.background.paper},header:{top:0,zIndex:2},leftPanel:{left:0,zIndex:1,boxSizing:"border-box"},ordinaryLeftPanelBorder:{borderRight:Oe(e)},brightLeftPanelBorder:{borderRight:Re(e)},ordinaryHeaderBorder:{borderBottom:Oe(e)},brightHeaderBorder:{borderBottom:Re(e)},dayScaleEmptyCell:function(t){var n=t.leftPanelWidth,a=t.calculatedLeftPanelWidth;return{display:"flex",alignItems:"flex-end",width:n||e.spacing(a)+1,minWidth:n||e.spacing(a)+1}},flexRow:{display:"flex",flexDirection:"row"},relativeContainer:{position:"relative"},inlineFlex:{display:"inline-flex"},background:{background:e.palette.background.paper}}})),Le=r.memo((function(e){var t,n,a,o=e.timeScaleComponent,i=e.dayScaleComponent,l=e.timeTableComponent,c=e.dayScaleEmptyCellComponent,u=e.groupingPanelComponent,s=e.groupingPanelSize,d=e.setScrollingStrategy,m=e.className,f=ie(e,["timeScaleComponent","dayScaleComponent","timeTableComponent","dayScaleEmptyCellComponent","groupingPanelComponent","groupingPanelSize","setScrollingStrategy","className"]),g=r.useRef(null),h=r.useRef(null),y=r.useRef(null),v=ue(r.useState(!1),2),C=v[0],E=v[1],D=ue(r.useState(!1),2),b=D[0],T=D[1],O=ue(r.useState(0),2),R=O[0],N=O[1];r.useEffect((function(){var e,t,n,a,o,r=y.current;d((e=g.current,t=h.current,n=r,a=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),{topBoundary:a.height+a.top,bottomBoundary:e.offsetTop+e.clientHeight,fixedTopHeight:a.height,leftBoundary:o?o.width+o.left:e.offsetLeft,rightBoundary:e.offsetLeft+e.clientWidth,fixedLeftWidth:null===o||void 0===o?void 0:o.width,changeVerticalScroll:function(t){e.scrollTop+=t},changeHorizontalScroll:function(t){e.scrollLeft+=t}})),r&&N(r.getBoundingClientRect().width)}),[g,h,y,d,N]);var w=!!o,S=w||!!s,A=Pe({leftPanelWidth:R,calculatedLeftPanelWidth:10+(s?12.5*s:0)}),x=r.useCallback((function(e){!!e.target.scrollLeft^C&&E(!C),!!e.target.scrollTop^b&&T(!b)}),[C,b]);return r.createElement("div",te({ref:g,className:p(A.container,m),onScroll:x},f),r.createElement("div",null,r.createElement("div",{ref:h,className:p(A.stickyElement,A.header,A.flexRow)},r.createElement("div",{className:p((t={},ee(t,A.background,!0),ee(t,A.inlineFlex,!0),ee(t,A.ordinaryHeaderBorder,!b),ee(t,A.brightHeaderBorder,b),t))},S&&r.createElement("div",{className:p((n={},ee(n,A.stickyElement,!0),ee(n,A.leftPanel,!0),ee(n,A.dayScaleEmptyCell,!0),ee(n,A.ordinaryLeftPanelBorder,!C),ee(n,A.brightLeftPanelBorder,C),n))},r.createElement(c,null)),r.createElement("div",null,r.createElement(i,null)))),r.createElement("div",{className:A.flexRow},r.createElement("div",{className:A.inlineFlex},S&&r.createElement("div",{ref:y,className:p((a={},ee(a,A.flexRow,!0),ee(a,A.stickyElement,!0),ee(a,A.leftPanel,!0),ee(a,A.ordinaryLeftPanelBorder,!C),ee(a,A.brightLeftPanelBorder,C),a))},r.createElement(u,null),w&&r.createElement(o,null)),r.createElement("div",{className:A.relativeContainer},r.createElement(l,null))))))}));"production"!==a.env.NODE_ENV&&(Le.propTypes={timeScaleComponent:l.oneOfType([l.func,l.object]),dayScaleComponent:l.oneOfType([l.func,l.object]).isRequired,timeTableComponent:l.oneOfType([l.func,l.object]).isRequired,dayScaleEmptyCellComponent:l.oneOfType([l.func,l.object]).isRequired,groupingPanelComponent:l.oneOfType([l.func,l.object]),groupingPanelSize:l.number,setScrollingStrategy:l.func.isRequired,className:l.string}),Le.defaultProps={groupingPanelComponent:function(){return null},timeScaleComponent:void 0,groupingPanelSize:0,className:void 0};var _e=function(e){var t=e.children,n=ie(e,["children"]);return r.createElement(g,n,t)};"production"!==a.env.NODE_ENV&&(_e.propTypes={children:l.node}),_e.defaultProps={children:null};var ke=function(e){var t=e.classes,n=e.className,a=e.children,o=ie(e,["classes","className","children"]);return r.createElement("div",te({},o,{className:p(t.emptyCell,n)}),a)};"production"!==a.env.NODE_ENV&&(ke.propTypes={classes:l.object.isRequired,className:l.string,children:l.node}),ke.defaultProps={className:void 0,children:void 0};var Me=u.withStyles({emptyCell:{height:"100%",width:"100%"}},{name:"DayScaleEmptyCell"})(ke),Be=u.withStyles({container:{position:"absolute",width:"100%",top:0,left:0}},{name:"AppointmentsContainer"})(pe),Ve=function(e){var t=e.cellComponent,n=e.rowComponent,a=e.cellsData,o=e.classes,i=e.groupOrientation,l=e.className,c=e.groupCount,u=e.includeAllDayCell,d=ie(e,["cellComponent","rowComponent","cellsData","classes","groupOrientation","className","groupCount","includeAllDayCell"]),m=a.length/c;return r.createElement(h,te({},d,{className:p(o.table,l)}),r.createElement(y,null,a.map((function(e,a){var o=ue(e,1)[0];return r.createElement(r.Fragment,{key:a.toString()},a%m===0&&u&&r.createElement(n,{key:(a/m).toString()},r.createElement(t,{key:"all-day-tick ".concat(a/m),isAllDay:!0,startDate:o.startDate,endDate:o.endDate,endOfGroup:!1,groupingInfo:o.groupingInfo})),r.createElement(n,{key:(o.startDate+a).toString()},r.createElement(t,{key:a.toString(),startDate:o.startDate,endDate:o.endDate,endOfGroup:o.endOfGroup&&i===s.VERTICAL_GROUP_ORIENTATION,groupingInfo:o.groupingInfo})))}))))};"production"!==a.env.NODE_ENV&&(Ve.propTypes={cellsData:l.arrayOf(Array).isRequired,cellComponent:l.oneOfType([l.func,l.object]).isRequired,rowComponent:l.oneOfType([l.func,l.object]).isRequired,groupOrientation:l.oneOf([s.HORIZONTAL_GROUP_ORIENTATION,s.VERTICAL_GROUP_ORIENTATION]),groupCount:l.number,includeAllDayCell:l.bool,classes:l.object.isRequired,className:l.string}),Ve.defaultProps={className:void 0,groupOrientation:s.HORIZONTAL_GROUP_ORIENTATION,groupCount:1,includeAllDayCell:!1};var qe=u.withStyles({table:{tableLayout:"fixed",boxSizing:"border-box"}},{name:"TicksLayout"})(Ve),Ge=u.makeStyles((function(e){return{timeScaleContainer:{width:e.spacing(9)},ticks:{width:e.spacing(1)},cell:{boxSizing:"border-box",padding:0,borderBottom:"none"},verticalCell:{borderBottom:Re(e),"tr:last-child &":{borderBottom:"none"},height:function(t){var n=t.height,a=t.defaultHeight;return"".concat(n||e.spacing(a),"px")}},flexRow:{display:"flex",flexDirection:"row"}}})),We=function(e){var t=e.labelComponent,n=e.rowComponent,a=e.tickCellComponent,o=e.allDayTitleComponent,i=e.cellsData,l=e.formatDate,c=e.groupOrientation,u=e.groups,d=e.showAllDayTitle,m=e.height,f=e.className,C=ie(e,["labelComponent","rowComponent","tickCellComponent","allDayTitleComponent","cellsData","formatDate","groupOrientation","groups","showAllDayTitle","height","className"]),E=s.getGroupsLastRow(u).length,D=i.length/E,b=De[s.VIEW_TYPES.WEEK]*D,T=d?b+De[s.VIEW_TYPES.ALL_DAY_PANEL]:b,O=Ge({height:m/E,defaultHeight:T});return r.createElement("div",te({className:p(O.flexRow,f)},C),r.createElement(h,{className:O.timeScaleContainer},r.createElement(y,null,s.getLabelsForAllGroups(i,u,c).map((function(e,n){var a,u=e[0],d=e[e.length-1];return r.createElement(g,{key:n.toString()},r.createElement(v,{className:p((a={},ee(a,O.cell,!0),ee(a,O.verticalCell,c===s.VERTICAL_GROUP_ORIENTATION),a))},r.createElement(o,{fixedHeight:!0}),r.createElement(t,{key:u.startDate,groupingInfo:u.groupingInfo}),e.map((function(e,n){return n!==i.length-1&&r.createElement(t,{time:e.endDate,formatDate:l,key:e.key,groupingInfo:e.groupingInfo})})),r.createElement(t,{key:d.endDate,groupingInfo:d.groupingInfo})))})))),r.createElement(qe,{rowComponent:n,cellComponent:a,cellsData:i,className:O.ticks,groupOrientation:c,groupCount:E,includeAllDayCell:d}))};"production"!==a.env.NODE_ENV&&(We.propTypes={cellsData:l.arrayOf(Array).isRequired,labelComponent:l.oneOfType([l.func,l.object]).isRequired,rowComponent:l.oneOfType([l.func,l.object]).isRequired,allDayTitleComponent:l.oneOfType([l.func,l.object]),tickCellComponent:l.oneOfType([l.func,l.object]).isRequired,formatDate:l.func.isRequired,groups:l.arrayOf(l.arrayOf(l.object)),groupOrientation:l.oneOf([s.HORIZONTAL_GROUP_ORIENTATION,s.VERTICAL_GROUP_ORIENTATION]),showAllDayTitle:l.bool,height:l.number,className:l.string}),We.defaultProps={groups:[[{}]],groupOrientation:s.HORIZONTAL_GROUP_ORIENTATION,allDayTitleComponent:function(){return null},showAllDayTitle:!1,height:0,className:void 0};var je=function(e){var t,n=e.classes,a=e.className,o=e.time,i=e.formatDate,l=(e.groupingInfo,e.endOfGroup,ie(e,["classes","className","time","formatDate","groupingInfo","endOfGroup"]));return r.createElement("div",te({className:p((t={},ee(t,n.label,!0),ee(t,n.emptyLabel,!o),t),a)},l),o&&r.createElement("span",{className:n.text},i(o,s.HOUR_MINUTE_OPTIONS)))};"production"!==a.env.NODE_ENV&&(je.propTypes={formatDate:l.func,time:l.instanceOf(Date),classes:l.object.isRequired,groupingInfo:l.arrayOf(l.object),endOfGroup:l.bool,className:l.string}),je.defaultProps={className:void 0,time:void 0,formatDate:function(){},groupingInfo:void 0,endOfGroup:!1};var He=u.withStyles((function(e){return{label:{userSelect:"none",border:0,height:e.spacing(Te),lineHeight:"".concat(e.spacing(Te),"px"),padding:0,overflow:"hidden",textOverflow:"ellipsis",textAlign:"right",paddingLeft:e.spacing(.25),paddingRight:e.spacing(1)},text:ae({},e.typography.caption,{fontSize:"0.7rem",whiteSpace:"nowrap",color:e.palette.text.secondary}),emptyLabel:{height:e.spacing(Te/2),"&:last-child":{height:"".concat(e.spacing(Te/2)-1,"px")}}}}),{name:"Label"})(je),Ye=function(e){var t,n=e.classes,a=e.className,o=(e.startDate,e.endDate,e.endOfGroup),i=(e.groupingInfo,e.isAllDay),l=ie(e,["classes","className","startDate","endDate","endOfGroup","groupingInfo","isAllDay"]);return r.createElement(v,te({className:p((t={},ee(t,n.cell,!0),ee(t,n.brightBottomBorder,o),ee(t,n.allDayCell,i),t),a)},l))};"production"!==a.env.NODE_ENV&&(Ye.propTypes={classes:l.object.isRequired,startDate:l.instanceOf(Date),endDate:l.instanceOf(Date),endOfGroup:l.bool,groupingInfo:l.arrayOf(l.object),isAllDay:l.bool,className:l.string}),Ye.defaultProps={className:void 0,startDate:void 0,endDate:void 0,endOfGroup:!1,groupingInfo:void 0,isAllDay:!1};var Fe,ze=u.withStyles((function(e){return{cell:{height:e.spacing(De[s.VIEW_TYPES.WEEK]),padding:0,boxSizing:"border-box",borderBottom:Oe(e),"tr:last-child &":{borderBottom:"none"}},brightBottomBorder:{borderBottom:Re(e)},allDayCell:{height:e.spacing(De[s.VIEW_TYPES.ALL_DAY_PANEL])}}}),{name:"TickCell"})(Ye),Ue=u.makeStyles({table:(Fe={tableLayout:"fixed",minWidth:function(e){return xe(e,100)},width:"100%"},ee(Fe,"".concat(Ee),{minWidth:function(e){return xe(e,65)}}),ee(Fe,"".concat(Ce),{minWidth:function(e){return xe(e,50)}}),Fe)}),Ke=r.forwardRef((function(e,t){var n=e.className,a=e.cellsNumber,o=e.children,i=ie(e,["className","cellsNumber","children"]),l=Ue(a);return r.createElement(h,te({ref:t,className:p(l.table,n)},i),r.createElement(y,null,o))}));"production"!==a.env.NODE_ENV&&(Ke.propTypes={cellsNumber:l.number.isRequired,className:l.string,children:l.node.isRequired}),Ke.defaultProps={className:void 0};var Ze=r.memo((function(e){var t=e.setCellElementsMeta,n=e.cellsNumber,a=e.children,o=ie(e,["setCellElementsMeta","cellsNumber","children"]),i=r.useRef(null);return r.useEffect((function(){var e=i.current;t(Ne(e))})),r.createElement(Ke,te({ref:i,cellsNumber:n},o),a)}));"production"!==a.env.NODE_ENV&&(Ze.propTypes={setCellElementsMeta:l.func.isRequired,cellsNumber:l.number.isRequired,children:l.node.isRequired});var Xe=function(e,t,n,a,o,i){return r.createElement(e,{key:Ie(t,o),startDate:t,endDate:n,endOfGroup:a,hasRightBorder:a,groupingInfo:o,groupOrientation:i})},Qe=r.memo((function(e){var t=e.setCellElementsMeta,n=e.cellComponent,a=e.allDayCellComponent,o=e.rowComponent,i=e.allDayRowComponent,l=e.cellsData,c=e.allDayCellsData,u=(e.formatDate,ie(e,["setCellElementsMeta","cellComponent","allDayCellComponent","rowComponent","allDayRowComponent","cellsData","allDayCellsData","formatDate"]));return r.createElement(Ze,te({setCellElementsMeta:t,cellsNumber:l[0].length},u),s.prepareVerticalViewCellsData(l,c).map((function(e,t){return r.createElement(r.Fragment,{key:t.toString()},c&&r.createElement(i,null,c[t].map((function(e){var t=e.startDate,n=e.endDate,o=e.endOfGroup,r=e.groupingInfo,i=e.groupOrientation;return Xe(a,t,n,o,r,i)}))),e.map((function(e,t){return r.createElement(o,{key:t.toString()},e.map((function(e){var t=e.startDate,a=e.endDate,o=e.groupingInfo,r=e.endOfGroup,i=e.groupOrientation;return Xe(n,t,a,r,o,i)})))})))})))}));Qe.propTypes={cellsData:l.arrayOf(Array).isRequired,allDayCellsData:l.arrayOf(Array),cellComponent:l.oneOfType([l.func,l.object]).isRequired,allDayCellComponent:l.oneOfType([l.func,l.object]),rowComponent:l.oneOfType([l.func,l.object]).isRequired,allDayRowComponent:l.oneOfType([l.func,l.object]),formatDate:l.func.isRequired,setCellElementsMeta:l.func.isRequired},Qe.defaultProps={allDayCellComponent:function(){return null},allDayRowComponent:function(){return null},allDayCellsData:void 0};var Je=u.makeStyles((function(e){return{cell:{position:"relative",height:e.spacing(De[s.VIEW_TYPES.WEEK]),padding:0,boxSizing:"border-box",borderRight:Oe(e),"&:last-child":{borderRight:"none",paddingRight:0},"tr:last-child &":{borderBottom:"none"},"&:hover":{backgroundColor:e.palette.action.hover},"&:focus":{backgroundColor:m.fade(e.palette.primary.main,.15),outline:0}},shadedCell:{backgroundColor:m.fade(e.palette.action.disabledBackground,.04),"&:hover":{backgroundColor:e.palette.action.selected},"&:focus":{backgroundColor:m.fade(e.palette.primary.main,.15),outline:0}},shadedPart:{backgroundColor:m.fade(e.palette.action.disabledBackground,.04),position:"absolute",height:function(e){return e.shadedHeight},width:"100%",left:0,top:0,"&:hover":{backgroundColor:e.palette.action.hover},"td:focus &":{opacity:0}},brightRightBorder:{borderRight:Re(e),"&:last-child":{borderRight:"none"}},brightBorderBottom:{borderBottom:Re(e)}}})),$e=function(e){var t,n=e.className,a=e.children,o=(e.startDate,e.endDate,e.currentTimeIndicatorPosition),i=e.currentTimeIndicatorComponent,l=e.isShaded,c=e.endOfGroup,u=(e.groupingInfo,e.groupOrientation),d=e.hasRightBorder,m=ie(e,["className","children","startDate","endDate","currentTimeIndicatorPosition","currentTimeIndicatorComponent","isShaded","endOfGroup","groupingInfo","groupOrientation","hasRightBorder"]),f=Je({shadedHeight:o}),g=!!o;return r.createElement(v,te({tabIndex:0,className:p((t={},ee(t,f.cell,!0),ee(t,f.shadedCell,l&&!g),ee(t,f.brightRightBorder,(c||d)&&u===s.HORIZONTAL_GROUP_ORIENTATION),ee(t,f.brightBorderBottom,c&&u===s.VERTICAL_GROUP_ORIENTATION),t),n)},m),g&&l&&r.createElement("div",{className:f.shadedPart}),g&&r.createElement(i,{top:o}),a)};"production"!==a.env.NODE_ENV&&($e.propTypes={startDate:l.instanceOf(Date),endDate:l.instanceOf(Date),children:l.node,className:l.string,currentTimeIndicatorPosition:l.string,currentTimeIndicatorComponent:l.oneOfType([l.func,l.object]),isShaded:l.bool,endOfGroup:l.bool,hasRightBorder:l.bool,groupingInfo:l.arrayOf(l.object),groupOrientation:l.oneOf([s.HORIZONTAL_GROUP_ORIENTATION,s.VERTICAL_GROUP_ORIENTATION])}),$e.defaultProps={children:null,className:void 0,startDate:new Date,endDate:new Date,currentTimeIndicatorPosition:void 0,currentTimeIndicatorComponent:function(){return null},isShaded:!1,endOfGroup:!1,hasRightBorder:!1,groupingInfo:void 0,groupOrientation:s.HORIZONTAL_GROUP_ORIENTATION};var et=r.memo((function(e){var t=e.cellComponent,n=e.rowComponent,a=e.groupingPanelComponent,o=e.cellsData,i=e.formatDate,l=e.groupedByDate,c=ie(e,["cellComponent","rowComponent","groupingPanelComponent","cellsData","formatDate","groupedByDate"]);return r.createElement(Ke,te({cellsNumber:o[0].length},c),!l&&r.createElement(a,null),r.createElement(n,null,s.getDayScaleCells(o,l).map((function(e){var n=e.startDate,a=e.endDate,o=e.today,l=e.key,c=e.endOfGroup,u=e.groupingInfo,s=e.colSpan;return r.createElement(t,{key:l,startDate:n,endDate:a,today:o,formatDate:i,endOfGroup:c,hasRightBorder:c,groupingInfo:u,colSpan:s})}))),l&&r.createElement(a,null))}));et.propTypes={cellsData:l.arrayOf(Array).isRequired,cellComponent:l.oneOfType([l.func,l.object]).isRequired,rowComponent:l.oneOfType([l.func,l.object]).isRequired,groupingPanelComponent:l.func,formatDate:l.func.isRequired,groupedByDate:l.bool},et.defaultProps={groupingPanelComponent:function(){return null},groupedByDate:!1};var tt=function(e){var t,n,a,o=e.classes,i=e.className,l=e.startDate,c=(e.endDate,e.today),u=e.formatDate,d=e.endOfGroup,m=(e.groupingInfo,e.hasRightBorder),f=ie(e,["classes","className","startDate","endDate","today","formatDate","endOfGroup","groupingInfo","hasRightBorder"]);return r.createElement(v,te({className:p((t={},ee(t,o.cell,!0),ee(t,o.brightRightBorder,d||m),t),i)},f),r.createElement("div",{className:o.dayView},r.createElement("p",{className:p((n={},ee(n,o.dayOfWeek,!0),ee(n,o.highlightedText,c),n))},u(l,s.WEEK_DAY_OPTIONS)),r.createElement("div",{className:p((a={},ee(a,o.dayOfMonth,!0),ee(a,o.highlightedText,c),a))},u(l,s.DAY_OPTIONS))))};"production"!==a.env.NODE_ENV&&(tt.propTypes={classes:l.object.isRequired,formatDate:l.func.isRequired,startDate:l.instanceOf(Date).isRequired,endDate:l.instanceOf(Date),className:l.string,today:l.bool,endOfGroup:l.bool,hasRightBorder:l.bool,groupingInfo:l.arrayOf(l.object)}),tt.defaultProps={className:void 0,endDate:void 0,today:!1,endOfGroup:!1,hasRightBorder:!1,groupingInfo:void 0};var nt=u.withStyles((function(e){var t,n;return{cell:(t={userSelect:"none",paddingBottom:e.spacing(.5),textAlign:"center",borderBottom:"none",paddingRight:0,paddingLeft:0,boxSizing:"border-box"},ee(t,"".concat(Ee),{padding:e.spacing(1),paddingBottom:0}),ee(t,"&:only-child",{textAlign:"left",paddingLeft:e.spacing(2)}),ee(t,"paddingTop",e.spacing(.5)),t),dayOfWeek:ae({},e.typography.caption,{margin:0,color:e.palette.text.secondary,lineHeight:1.17}),dayOfMonth:ae({},e.typography.h4,(n={},ee(n,"".concat(Ee),ae({},e.typography.h6)),ee(n,"color",e.palette.text.secondary),ee(n,"lineHeight",1.2),ee(n,"fontSize","1.8rem"),n)),highlightedText:{color:e.palette.primary.main,fontWeight:"bold"},dayView:{"td:only-child &":{textAlign:"center",width:"auto",display:"inline-block"}},brightRightBorder:{borderRight:Re(e),"&:last-child":{borderRight:"none"}}}}),{name:"Cell"})(tt),at=d.withComponents({Layout:Le,AppointmentLayer:Be,DayScaleEmptyCell:Me,TimeScaleLayout:We,TimeScaleLabel:He,TimeScaleTickCell:ze,TimeScaleTicksRow:_e,DayScaleLayout:et,DayScaleCell:nt,DayScaleRow:_e,TimeTableLayout:Qe,TimeTableCell:$e,TimeTableRow:_e})(c.DayView),ot=d.withComponents({Layout:Le,AppointmentLayer:Be,DayScaleEmptyCell:Me,TimeScaleLayout:We,TimeScaleLabel:He,TimeScaleTickCell:ze,TimeScaleTicksRow:_e,DayScaleLayout:et,DayScaleCell:nt,DayScaleRow:_e,TimeTableLayout:Qe,TimeTableCell:$e,TimeTableRow:_e})(c.WeekView),rt=r.memo((function(e){var t=e.setCellElementsMeta,n=e.cellComponent,a=e.rowComponent,o=e.cellsData,i=e.formatDate,l=ie(e,["setCellElementsMeta","cellComponent","rowComponent","cellsData","formatDate"]);return r.createElement(Ze,te({setCellElementsMeta:t,cellsNumber:o[0].length},l),o.map((function(e,t){return r.createElement(a,{key:t.toString()},e.map((function(e){var t=e.startDate,a=e.endDate,o=e.today,l=e.otherMonth,c=e.groupingInfo,u=e.endOfGroup,s=e.groupOrientation;return r.createElement(n,{key:Ie(t,c),startDate:t,endDate:a,today:o,otherMonth:l,formatDate:i,endOfGroup:u,hasRightBorder:u,groupingInfo:c,groupOrientation:s})})))})))}));rt.propTypes={cellsData:l.arrayOf(Array).isRequired,cellComponent:l.oneOfType([l.func,l.object]).isRequired,rowComponent:l.oneOfType([l.func,l.object]).isRequired,formatDate:l.func.isRequired,setCellElementsMeta:l.func.isRequired};var it=r.memo((function(e){var t,n,a=e.classes,o=e.className,i=e.startDate,l=(e.endDate,e.today),c=e.otherMonth,u=e.formatDate,d=e.isShaded,m=e.endOfGroup,f=(e.groupingInfo,e.groupOrientation),g=e.hasRightBorder,h=ie(e,["classes","className","startDate","endDate","today","otherMonth","formatDate","isShaded","endOfGroup","groupingInfo","groupOrientation","hasRightBorder"]),y=1===i.getDate()&&!l?s.DAY_SHORT_MONTH_OPTIONS:s.DAY_OPTIONS;return r.createElement(v,te({tabIndex:0,className:p((t={},ee(t,a.cell,!0),ee(t,a.shadedCell,d),ee(t,a.brightRightBorder,(m||g)&&f===s.HORIZONTAL_GROUP_ORIENTATION),ee(t,a.brightBorderBottom,m&&f===s.VERTICAL_GROUP_ORIENTATION),t),o)},h),r.createElement("div",{className:p((n={},ee(n,a.text,!l),ee(n,a.today,l),ee(n,a.otherMonth,c&&!l),n))},u(i,y)))}));"production"!==a.env.NODE_ENV&&(it.propTypes={classes:l.object.isRequired,formatDate:l.func.isRequired,startDate:l.instanceOf(Date).isRequired,endDate:l.instanceOf(Date),className:l.string,today:l.bool,otherMonth:l.bool,isShaded:l.bool,endOfGroup:l.bool,hasRightBorder:l.bool,groupingInfo:l.arrayOf(l.object),groupOrientation:l.oneOf([s.HORIZONTAL_GROUP_ORIENTATION,s.VERTICAL_GROUP_ORIENTATION])}),it.defaultProps={endDate:void 0,className:void 0,today:!1,otherMonth:!1,isShaded:!1,endOfGroup:!1,hasRightBorder:!1,groupingInfo:void 0,groupOrientation:s.HORIZONTAL_GROUP_ORIENTATION};var lt=u.withStyles((function(e){return{cell:{userSelect:"none",verticalAlign:"top",padding:0,height:e.spacing(De[s.VIEW_TYPES.MONTH]),borderRight:Oe(e),"&:last-child":{borderRight:"none",paddingRight:0},"tr:last-child &":{borderBottom:"none"},"&:hover":{backgroundColor:e.palette.action.hover},"&:focus":{backgroundColor:m.fade(e.palette.primary.main,.15),outline:0},boxSizing:"border-box"},text:ee({padding:"1em",paddingTop:"0.5em",textAlign:"center"},"".concat(Ce),{padding:"0.5em"}),today:{marginTop:"0.33em",width:"1.72em",height:"1.72em",lineHeight:1.72,textAlign:"center",borderRadius:"50%",background:e.palette.primary.main,color:e.palette.primary.contrastText,cursor:"default",marginRight:"auto",marginLeft:"auto"},otherMonth:{color:e.palette.text.disabled},shadedCell:{backgroundColor:m.fade(e.palette.action.disabledBackground,.04),"&:hover":{backgroundColor:e.palette.action.selected},"&:focus":{backgroundColor:m.fade(e.palette.primary.main,.15),outline:0}},brightRightBorder:{borderRight:Re(e),"&:last-child":{borderRight:"none"}},brightBorderBottom:{borderBottom:Re(e)}}}),{name:"Cell"})(it),ct=function(e){var t,n=e.classes,a=e.className,o=e.startDate,i=(e.endDate,e.today,e.formatDate),l=e.endOfGroup,c=(e.groupingInfo,e.hasRightBorder),u=ie(e,["classes","className","startDate","endDate","today","formatDate","endOfGroup","groupingInfo","hasRightBorder"]);return r.createElement(v,te({className:p((t={},ee(t,n.cell,!0),ee(t,n.brightRightBorder,l||c),t),a)},u),r.createElement("div",{className:n.dayOfWeek},i(o,s.WEEK_DAY_OPTIONS)))};"production"!==a.env.NODE_ENV&&(ct.propTypes={classes:l.object.isRequired,formatDate:l.func.isRequired,startDate:l.instanceOf(Date).isRequired,endDate:l.instanceOf(Date),className:l.string,today:l.bool,endOfGroup:l.bool,hasRightBorder:l.bool,groupingInfo:l.arrayOf(l.object)}),ct.defaultProps={className:void 0,endDate:void 0,today:!1,endOfGroup:!1,hasRightBorder:!1,groupingInfo:void 0};var ut=u.withStyles((function(e){return{cell:{userSelect:"none",padding:0,borderBottom:"none",borderRight:Oe(e),"&:last-child":{borderRight:"none",paddingRight:0},textAlign:"center",boxSizing:"border-box"},dayOfWeek:ae({},e.typography.caption,{margin:0,padding:e.spacing(1),paddingBottom:0,color:e.palette.text.secondary,fontWeight:"bold"}),brightRightBorder:{borderRight:Re(e),"&:last-child":{borderRight:"none"}}}}),{name:"Cell"})(ct),st=d.withComponents({Layout:Le,AppointmentLayer:Be,DayScaleEmptyCell:Me,DayScaleLayout:et,DayScaleCell:ut,DayScaleRow:_e,TimeTableLayout:rt,TimeTableCell:lt,TimeTableRow:_e})(c.MonthView),pt=function(e){var t=e.classes,n=e.data,a=e.children,o=e.className,i=e.recurringIconComponent,l=(e.formatDate,e.durationType,ie(e,["classes","data","children","className","recurringIconComponent","formatDate","durationType"])),c=!!n.rRule;return r.createElement("div",te({className:p(t.content,o)},l),a||r.createElement(r.Fragment,null,r.createElement("div",{className:c?t.recurringContainer:t.container},r.createElement("div",{className:t.title},n.title)),c?r.createElement("div",{className:t.imageContainer},r.createElement(i,{className:t.image})):void 0))};"production"!==a.env.NODE_ENV&&(pt.propTypes={recurringIconComponent:l.oneOfType([l.func,l.object]).isRequired,classes:l.object.isRequired,data:l.object.isRequired,durationType:l.string,children:l.node,className:l.string,formatDate:l.func}),pt.defaultProps={formatDate:function(){return""},children:void 0,className:void 0,durationType:void 0};var dt=u.withStyles((function(e){var t=e.palette,n=e.spacing;return{title:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},content:{color:t.common.white,padding:n(.5),paddingTop:n(.125),paddingLeft:n(.75),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex"},container:{width:"100%"},recurringContainer:{width:"calc(100% - ".concat(n(2),"px)")},imageContainer:{width:n(2),height:n(2)},image:{width:"100%",height:"100%"}}}),{name:"HorizontalAppointment"})(pt),mt=function(e){var t,n,a,o,i=e.classes,l=e.data,c=e.children,u=e.className,d=e.formatDate,m=e.recurringIconComponent,f=e.durationType,g=ie(e,["classes","data","children","className","formatDate","recurringIconComponent","durationType"]),h=!!l.rRule,y="short"===f,v="middle"===f;return r.createElement("div",te({className:p((t={},ee(t,i.content,!0),ee(t,i.shortContent,y||v),t),u)},g),c||r.createElement(r.Fragment,null,r.createElement("div",{className:p((n={},ee(n,i.container,!h),ee(n,i.recurringContainer,h),n))},y?r.createElement("div",{className:i.shortContainer},r.createElement("div",{className:p(i.title,i.shortTitle)},(o=l.title)&&"".concat(o,",\xa0")),r.createElement("div",{className:p(i.time,i.shortTime)},d(l.startDate,s.HOUR_MINUTE_OPTIONS))):r.createElement(r.Fragment,null,r.createElement("div",{className:i.title},l.title),r.createElement("div",{className:p((a={},ee(a,i.textContainer,!0),ee(a,i.middleContainer,v),a))},r.createElement("div",{className:i.time},d(l.startDate,s.HOUR_MINUTE_OPTIONS)),r.createElement("div",{className:i.time},"\xa0 - \xa0"),r.createElement("div",{className:i.time},d(l.endDate,s.HOUR_MINUTE_OPTIONS))))),h?r.createElement("div",{className:i.imageContainer},r.createElement(m,{className:i.image})):void 0))};"production"!==a.env.NODE_ENV&&(mt.propTypes={recurringIconComponent:l.oneOfType([l.func,l.object]).isRequired,classes:l.object.isRequired,data:l.object.isRequired,formatDate:l.func.isRequired,durationType:l.string.isRequired,children:l.node,className:l.string}),mt.defaultProps={children:void 0,className:void 0};var ft=u.withStyles((function(e){var t=e.palette,n=e.spacing;return{title:{fontWeight:"bold",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textContainer:{lineHeight:1,whiteSpace:"pre-wrap",overflow:"hidden",textOverflow:"ellipsis"},middleContainer:{lineHeight:"0.9!important"},time:{display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"},content:ee({color:t.common.white,padding:n(.5,1),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex"},"".concat(Ce),{paddingLeft:n(.5),paddingRight:n(.5)}),shortContent:ee({padding:n(.25,1)},"".concat(Ce),{paddingLeft:n(.5),paddingRight:n(.5)}),shortContainer:{display:"flex"},shortTime:{textOverflow:"initial",flexShrink:0},shortTitle:{flexShrink:3},container:{width:"100%"},recurringContainer:{width:"calc(100% - ".concat(n(2),"px)")},imageContainer:{width:n(2),height:n(2)},image:{width:"100%",height:"100%"}}}),{name:"VerticalAppointment"})(mt),gt=function(e){var t=e.type,n=ie(e,["type"]);return t===s.HORIZONTAL_TYPE?r.createElement(dt,n):r.createElement(ft,n)};"production"!==a.env.NODE_ENV&&(gt.propTypes={type:l.oneOf([s.HORIZONTAL_TYPE,s.VERTICAL_TYPE]).isRequired});var ht=u.makeStyles((function(e){var t=e.palette,n=e.typography,a=e.spacing;return{appointment:ae({userSelect:"none",position:"absolute",height:"100%",width:"100%",overflow:"hidden",boxSizing:"border-box",border:"1px solid ".concat(t.background.paper),backgroundClip:"padding-box",borderRadius:a(.5),backgroundColor:function(e){return Ae(300,Se(e),t.primary)}},n.caption,{"&:hover":{backgroundColor:function(e){return Ae(400,Se(e),t.primary)}},"&:focus":{backgroundColor:function(e){return Ae(100,Se(e),t.primary)},outline:0}}),clickableAppointment:{cursor:"pointer"},shadedAppointment:{backgroundColor:function(e){return Ae(200,Se(e),t.primary)},"&:hover":{backgroundColor:function(e){return Ae(300,Se(e),t.primary)}}}}})),yt=function(e){var t,n=e.className,a=e.children,o=e.data,i=e.onClick,l=e.draggable,c=e.isShaded,u=e.resources,s=ie(e,["className","children","data","onClick","draggable","isShaded","resources"]),d=i?{onClick:function(e){var t=e.target;i({target:t,data:o})}}:null,m=ht(u),f=d||s.onDoubleClick||l;return r.createElement("div",te({className:p((t={},ee(t,m.appointment,!0),ee(t,m.clickableAppointment,f),ee(t,m.shadedAppointment,c),t),n)},d,s),a)};"production"!==a.env.NODE_ENV&&(yt.propTypes={children:l.node.isRequired,resources:l.array,className:l.string,data:l.object,onClick:l.func,draggable:l.bool,isShaded:l.bool}),yt.defaultProps={resources:[],onClick:void 0,className:void 0,data:{},draggable:!1,isShaded:!1};var vt={width:"100%",height:"10px"},Ct={top:0,width:"10px",height:"100%"},Et={slice:{position:"absolute",zIndex:50},verticalStart:ae({},vt,{top:"-10px",boxShadow:"0 10px 15px rgba(0,0,0,0.2)"}),verticalEnd:ae({},vt,{bottom:"-10px",boxShadow:"0 -10px 15px rgba(0,0,0,0.2)"}),horizontalStart:ae({},Ct,{left:"-10px",boxShadow:"10px 0 15px rgba(0,0,0,0.2)"}),horizontalEnd:ae({},Ct,{right:"-10px",boxShadow:"-10px 0 15px rgba(0,0,0,0.2)"})},Dt=r.memo((function(e){var t,n=e.position,a=e.appointmentType,o=e.classes,i=e.className,l=ie(e,["position","appointmentType","classes","className"]),c=a===s.VERTICAL_TYPE,u=n===s.POSITION_START;return r.createElement("div",te({className:p((t={},ee(t,o.slice,!0),ee(t,o.verticalStart,c&&u),ee(t,o.verticalEnd,c&&!u),ee(t,o.horizontalStart,!c&&u),ee(t,o.horizontalEnd,!c&&!u),t),i)},l))}));"production"!==a.env.NODE_ENV&&(Dt.propTypes={classes:l.object.isRequired,appointmentType:l.oneOf([s.VERTICAL_TYPE,s.HORIZONTAL_TYPE]).isRequired,position:l.oneOf([s.POSITION_START,s.POSITION_END]).isRequired,className:l.string}),Dt.defaultProps={className:void 0};var bt=u.withStyles(Et,{name:"AppointmentsContainer"})(Dt),Tt=function(e){var t=e.style,n=e.children,a=ie(e,["style","children"]);return r.createElement("div",te({style:t},a),n)};"production"!==a.env.NODE_ENV&&(Tt.propTypes={children:l.node.isRequired,style:l.object.isRequired});var Ot=d.withComponents({Appointment:yt,AppointmentContent:gt,Container:Tt,SplitIndicator:bt,RecurringIcon:C})(c.Appointments),Rt=function(e){var t=e.children,n=e.classes,a=e.className,o=ie(e,["children","classes","className"]);return r.createElement(E,te({className:p(n.toolbar,a)},o),t)};"production"!==a.env.NODE_ENV&&(Rt.propTypes={children:l.node.isRequired,classes:l.object.isRequired,className:l.string}),Rt.defaultProps={className:void 0};var Nt=u.withStyles((function(e){return{toolbar:{borderBottom:Oe(e)}}}),{name:"Toolbar"})(Rt),wt=function(e){var t=e.children,n=e.classes,a=e.className,o=ie(e,["children","classes","className"]);return r.createElement("div",te({className:p(n.flexibleSpace,a)},o),t)};"production"!==a.env.NODE_ENV&&(wt.propTypes={classes:l.object.isRequired,children:l.node,className:l.string}),wt.defaultProps={children:null,className:void 0};var St=u.withStyles({flexibleSpace:{flex:"0 0 0",marginLeft:"auto"}},{name:"FlexibleSpace"})(wt),At=d.withComponents({Root:Nt,FlexibleSpace:St})(c.Toolbar),xt=function(e){var t=e.navigationButtonComponent,n=e.openButtonComponent,a=e.navigatorText,o=e.rootRef,i=e.onVisibilityToggle,l=e.onNavigate,c=e.className,u=e.classes,s=ie(e,["navigationButtonComponent","openButtonComponent","navigatorText","rootRef","onVisibilityToggle","onNavigate","className","classes"]),d=r.useCallback((function(){return l("back")}),[l]),m=r.useCallback((function(){return l("forward")}),[l]);return r.createElement("div",te({className:p(u.root,c),ref:o},s),r.createElement(t,{type:"back",onClick:d}),r.createElement(t,{type:"forward",onClick:m}),r.createElement(n,{onVisibilityToggle:i,text:a}))};"production"!==a.env.NODE_ENV&&(xt.propTypes={navigationButtonComponent:l.oneOfType([l.func,l.object]).isRequired,openButtonComponent:l.oneOfType([l.func,l.object]).isRequired,onVisibilityToggle:l.func.isRequired,onNavigate:l.func.isRequired,rootRef:l.func.isRequired,navigatorText:l.string,classes:l.object.isRequired,className:l.string}),xt.defaultProps={navigatorText:"",className:void 0};var It=u.withStyles((function(e){return{root:{marginLeft:(0,e.spacing)(.5),"&:first-child":{marginLeft:0}}}}))(xt,{name:"Root"}),Pt={vertical:"top",horizontal:"right"},Lt=function(e){var t=e.visible,n=e.onHide,a=e.children,o=e.target,i=ie(e,["visible","onHide","children","target"]);return r.createElement(D,te({open:t,anchorEl:o,onClose:n,anchorOrigin:Pt,transformOrigin:Pt},i),a)};"production"!==a.env.NODE_ENV&&(Lt.propTypes={onHide:l.func.isRequired,children:l.node.isRequired,visible:l.bool,target:l.oneOfType([l.object,l.func])}),Lt.defaultProps={visible:!1,target:null};var _t=r.memo((function(e){var t=e.text,n=e.onVisibilityToggle,a=e.classes,o=e.className,i=ie(e,["text","onVisibilityToggle","classes","className"]);return r.createElement(r.Fragment,null,r.createElement(b,te({onClick:n,className:p(a.textButton,o)},i),t),r.createElement(O,te({onClick:n,className:p(a.iconButton,o)},i),r.createElement(T,null)))}));_t.propTypes={onVisibilityToggle:l.func.isRequired,text:l.string,className:l.string,classes:l.object.isRequired},_t.defaultProps={text:"",className:void 0};var kt=u.withStyles((function(e){var t=e.spacing;return{textButton:ee({},"".concat(Ee),{display:"none"}),iconButton:ee({"@media (min-width: 700px)":{display:"none"}},"".concat(Ce),{width:t(4),height:t(4),padding:0})}}),{name:"OpenButton"})(_t),Mt=r.memo((function(e){var t=e.type,n=e.onClick,a=e.classes,o=e.className,i=ie(e,["type","onClick","classes","className"]);return r.createElement(O,te({onClick:n,className:p(a.button,o)},i),"back"===t?r.createElement(R,null):r.createElement(N,null))}));Mt.propTypes={type:l.oneOf(["forward","back"]).isRequired,onClick:l.func,classes:l.object.isRequired,className:l.string},Mt.defaultProps={onClick:function(){},className:void 0};var Bt=u.withStyles((function(e){var t=e.spacing;return{button:ee({},"".concat(Ce),{width:t(4),height:t(4),padding:0})}}),{name:"NavigationButton"})(Mt),Vt=function(e){var t=e.rowComponent,n=e.cellComponent,a=e.headerRowComponent,o=e.headerCellComponent,i=e.classes,l=e.className,c=e.cells,u=e.headerCells,d=e.selectedDate,m=e.onCellClick,f=e.formatDate,g=ie(e,["rowComponent","cellComponent","headerRowComponent","headerCellComponent","classes","className","cells","headerCells","selectedDate","onCellClick","formatDate"]);return r.createElement(h,te({className:p(i.table,l)},g),r.createElement(w,null,r.createElement(a,null,u.map((function(e){var t=f(e.startDate,s.WEEK_DAY_OPTIONS);return r.createElement(o,{key:t},t)})))),r.createElement(y,null,c.map((function(e){return r.createElement(t,{key:e[0].startDate.toString()},e.map((function(e){var t=e.startDate,a=e.otherMonth,o=e.today,i=s.areDatesSame(d,t);return r.createElement(n,{key:t.toString(),otherMonth:a,selected:i,today:o,onClick:function(){m(t)}},f(t,s.DAY_OPTIONS))})))}))))};"production"!==a.env.NODE_ENV&&(Vt.propTypes={rowComponent:l.oneOfType([l.func,l.object]).isRequired,cellComponent:l.oneOfType([l.func,l.object]).isRequired,headerRowComponent:l.oneOfType([l.func,l.object]).isRequired,headerCellComponent:l.oneOfType([l.func,l.object]).isRequired,cells:l.array.isRequired,classes:l.object.isRequired,selectedDate:l.oneOfType([l.instanceOf(Date),l.string,l.number]),formatDate:l.func.isRequired,headerCells:l.array,className:l.string,onCellClick:l.func}),Vt.defaultProps={className:void 0,headerCells:[],onCellClick:function(){},selectedDate:void 0};var qt=u.withStyles({table:{width:"320px",tableLayout:"fixed"}},{name:"Table"})(Vt);var Gt=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&re(e,t)}(i,e);var t,n,a,o=function(e){function t(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}return function(){var n,a=oe(e);if(t()){var o=oe(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return ce(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var n=(t=o.call(this,e)).props.selectedDate;return t.state={selectedDate:n,currentDate:n},t.onNavigate=t.onNavigate.bind(le(t)),t.onCellClick=t.onCellClick.bind(le(t)),t}return t=i,(n=[{key:"onNavigate",value:function(e){var t=e.back,n=this.state.currentDate,a=s.navigateByOneMonth(n,t);this.setState({currentDate:a})}},{key:"onCellClick",value:function(e){var t=this.props.onSelectedDateChange;this.setState({selectedDate:e,currentDate:e}),t(e)}},{key:"render",value:function(){var e=this.props,t=(e.selectedDate,e.firstDayOfWeek),n=e.getCells,a=e.textComponent,o=e.navigationButtonComponent,i=e.navigatorComponent,l=e.rowComponent,c=e.cellComponent,u=e.headerRowComponent,s=e.headerCellComponent,p=(e.onSelectedDateChange,e.formatDate),d=ie(e,["selectedDate","firstDayOfWeek","getCells","textComponent","navigationButtonComponent","navigatorComponent","rowComponent","cellComponent","headerRowComponent","headerCellComponent","onSelectedDateChange","formatDate"]),m=this.state,f=m.selectedDate,g=m.currentDate,h=n(g,t,1,Date.now());return r.createElement("div",d,r.createElement(i,{currentDate:g,textComponent:a,navigationButtonComponent:o,onNavigate:this.onNavigate,formatDate:p}),r.createElement(qt,{headerCells:h[0],selectedDate:f,cells:h,rowComponent:l,cellComponent:c,headerRowComponent:u,headerCellComponent:s,onCellClick:this.onCellClick,formatDate:p}))}}])&&$(t.prototype,n),a&&$(t,a),i}(r.PureComponent);"production"!==a.env.NODE_ENV&&(Gt.propTypes={textComponent:l.oneOfType([l.func,l.object]).isRequired,navigationButtonComponent:l.oneOfType([l.func,l.object]).isRequired,headerRowComponent:l.oneOfType([l.func,l.object]).isRequired,headerCellComponent:l.oneOfType([l.func,l.object]).isRequired,navigatorComponent:l.oneOfType([l.func,l.object]).isRequired,rowComponent:l.oneOfType([l.func,l.object]).isRequired,cellComponent:l.oneOfType([l.func,l.object]).isRequired,getCells:l.func.isRequired,selectedDate:l.oneOfType([l.number,l.string,l.instanceOf(Date)]).isRequired,formatDate:l.func.isRequired,firstDayOfWeek:l.number,onSelectedDateChange:l.func}),Gt.defaultProps={onSelectedDateChange:function(){},firstDayOfWeek:0};var Wt=function(e){var t,n,a=e.otherMonth,o=e.selected,i=e.today,l=e.classes,c=e.children,u=e.className,s=ie(e,["otherMonth","selected","today","classes","children","className"]);return r.createElement(v,te({className:p((t={},ee(t,l.cell,!0),ee(t,l.otherMonth,a),t),u)},s),r.createElement("span",{className:p((n={},ee(n,l.selected,o),ee(n,l.today,i&&!o),n))},c))};"production"!==a.env.NODE_ENV&&(Wt.propTypes={children:l.node,otherMonth:l.bool,selected:l.bool,today:l.bool,classes:l.object.isRequired,className:l.string}),Wt.defaultProps={children:void 0,otherMonth:!1,selected:!1,today:!1,className:void 0};var jt=u.withStyles((function(e){var t=e.palette;return{cell:{userSelect:"none",border:"none",cursor:"pointer",padding:0,height:(0,e.spacing)(6),textAlign:"center",verticalAlign:"middle","&:last-child":{padding:0}},otherMonth:{color:t.text.disabled},selected:{background:t.primary.main,color:t.primary.contrastText,display:"inline-block",width:"2.3em",lineHeight:2.3,borderRadius:"50%",cursor:"default"},today:{color:t.primary.main,fontWeight:"bold"}}}),{name:"Cell"})(Wt),Ht=function(e){var t=e.classes,n=e.children,a=e.className,o=ie(e,["classes","children","className"]);return r.createElement(v,te({className:p(ee({},t.cell,!0),a)},o),n)};"production"!==a.env.NODE_ENV&&(Ht.propTypes={children:l.node,classes:l.object.isRequired,className:l.string}),Ht.defaultProps={children:void 0,className:void 0};var Yt=u.withStyles({cell:{userSelect:"none",border:"none",padding:0,textAlign:"center",verticalAlign:"middle","&:last-child":{padding:0}}},{name:"HeaderCell"})(Ht),Ft=function(e){var t=e.children,n=ie(e,["children"]);return r.createElement(g,n,t)};"production"!==a.env.NODE_ENV&&(Ft.propTypes={children:l.node.isRequired});var zt=function(e){var t=e.classes,n=e.className,a=e.currentDate,o=e.textComponent,i=e.navigationButtonComponent,l=e.onNavigate,c=e.formatDate,u=ie(e,["classes","className","currentDate","textComponent","navigationButtonComponent","onNavigate","formatDate"]);return r.createElement(E,te({className:p(t.navigator,n)},u),r.createElement(i,{type:"back",onClick:function(){l({back:!0})}}),r.createElement(o,{currentDate:a,formatDate:c}),r.createElement(i,{type:"forward",onClick:function(){l({back:!1})}}))};"production"!==a.env.NODE_ENV&&(zt.propTypes={classes:l.object.isRequired,textComponent:l.oneOfType([l.func,l.object]).isRequired,navigationButtonComponent:l.oneOfType([l.func,l.object]).isRequired,currentDate:l.oneOfType([l.number,l.string,l.instanceOf(Date)]).isRequired,formatDate:l.func.isRequired,className:l.string,onNavigate:l.func}),zt.defaultProps={className:void 0,onNavigate:function(){}};var Ut=u.withStyles({navigator:{paddingLeft:0,paddingRight:0}},{name:"Navigator"})(zt),Kt=function(e){var t=e.classes,n=e.className,a=e.currentDate,o=e.formatDate,i=ie(e,["classes","className","currentDate","formatDate"]);return r.createElement(S,te({variant:"h6",className:p(ee({},t.text,!0),n)},i),o(a,s.MONTH_YEAR_OPTIONS))};"production"!==a.env.NODE_ENV&&(Kt.propTypes={classes:l.object.isRequired,currentDate:l.oneOfType([l.number,l.string,l.instanceOf(Date)]).isRequired,formatDate:l.func.isRequired,className:l.string}),Kt.defaultProps={className:void 0};var Zt=u.withStyles({text:{userSelect:"none",flex:1,textAlign:"center"}},{name:"Text"})(Kt),Xt=d.withComponents({Root:It,OpenButton:kt,Overlay:Lt,NavigationButton:Bt,Calendar:Gt,CalendarNavigator:Ut,CalendarCell:jt,CalendarRow:Ft,CalendarHeaderCell:Yt,CalendarHeaderRow:Ft,CalendarText:Zt,CalendarNavigationButton:Bt})(c.DateNavigator),Qt={vertical:"top",horizontal:"center"},Jt={popover:ee({borderRadius:"8px",width:"400px"},"".concat(Ce),{width:"300px"})},$t=function(e){var t=e.headerComponent,n=e.contentComponent,a=e.commandButtonComponent,o=e.recurringIconComponent,i=e.appointmentMeta,l=e.appointmentResources,c=e.showOpenButton,u=e.showCloseButton,s=e.showDeleteButton,p=e.visible,d=e.onHide,m=e.commandButtonIds,f=e.onOpenButtonClick,g=e.onDeleteButtonClick,h=e.formatDate,y=e.classes,v=ie(e,["headerComponent","contentComponent","commandButtonComponent","recurringIconComponent","appointmentMeta","appointmentResources","showOpenButton","showCloseButton","showDeleteButton","visible","onHide","commandButtonIds","onOpenButtonClick","onDeleteButtonClick","formatDate","classes"]),C=i.target,E=i.data,b=void 0===E?{}:E;return r.createElement(D,te({open:p,anchorEl:C,onClose:d,anchorOrigin:Qt,transformOrigin:Qt,PaperProps:{className:y.popover}},v),r.createElement(t,{appointmentData:b,commandButtonComponent:a,showOpenButton:c,showCloseButton:u,showDeleteButton:s,commandButtonIds:m,onOpenButtonClick:f,onDeleteButtonClick:g,onHide:d}),r.createElement(n,{appointmentData:b,appointmentResources:l,formatDate:h,recurringIconComponent:o}))};"production"!==a.env.NODE_ENV&&($t.propTypes={commandButtonComponent:l.oneOfType([l.func,l.object]).isRequired,headerComponent:l.oneOfType([l.func,l.object]).isRequired,contentComponent:l.oneOfType([l.func,l.object]).isRequired,recurringIconComponent:l.oneOfType([l.func,l.object]).isRequired,showOpenButton:l.bool.isRequired,showCloseButton:l.bool.isRequired,showDeleteButton:l.bool.isRequired,commandButtonIds:l.object.isRequired,classes:l.object.isRequired,formatDate:l.func.isRequired,onOpenButtonClick:l.func,onDeleteButtonClick:l.func,appointmentMeta:l.shape({target:l.oneOfType([l.object,l.func]),data:l.object}),appointmentResources:l.array,visible:l.bool,onHide:l.func}),$t.defaultProps={onOpenButtonClick:function(){},onDeleteButtonClick:function(){},onHide:function(){},appointmentMeta:{},appointmentResources:[],visible:!1};var en=u.withStyles(Jt,{name:"Layout"})($t),tn=function(e){e.appointmentData;var t=e.commandButtonComponent,n=e.showOpenButton,a=e.showCloseButton,o=e.showDeleteButton,i=e.commandButtonIds,l=e.onOpenButtonClick,c=e.onDeleteButtonClick,u=e.onHide,s=e.classes,d=e.className,m=e.children,f=ie(e,["appointmentData","commandButtonComponent","showOpenButton","showCloseButton","showDeleteButton","commandButtonIds","onOpenButtonClick","onDeleteButtonClick","onHide","classes","className","children"]);return r.createElement("div",te({className:p(s.head,s.flexContainer,d)},f),n&&r.createElement(t,{id:i.open,onExecute:function(){u(),l()}}),o&&r.createElement(t,{id:i.delete,onExecute:c}),m,a&&r.createElement("div",{className:s.flexContainer},r.createElement("div",{className:s.line}),r.createElement(t,{id:i.close,onExecute:u})))};"production"!==a.env.NODE_ENV&&(tn.propTypes={classes:l.object.isRequired,appointmentData:l.object,children:l.node,className:l.string,commandButtonComponent:l.oneOfType([l.func,l.object]).isRequired,showOpenButton:l.bool.isRequired,showCloseButton:l.bool.isRequired,showDeleteButton:l.bool.isRequired,commandButtonIds:l.object.isRequired,onOpenButtonClick:l.func,onDeleteButtonClick:l.func,onHide:l.func}),tn.defaultProps={appointmentData:void 0,className:void 0,children:void 0,onOpenButtonClick:function(){},onDeleteButtonClick:function(){},onHide:function(){}};var nn=u.withStyles((function(e){var t=e.spacing,n=e.palette;return{head:{position:"relative",paddingLeft:t(1),paddingRight:t(.5),paddingTop:t(.25),minHeight:t(1.5)},line:{backgroundColor:n.action.disabledBackground,height:t(3.5),marginLeft:t(1),marginRight:t(1),marginTop:t(1.25),width:"1px"},flexContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"flex-start"}}}),{name:"Header"})(tn),an=u.makeStyles((function(e){var t=e.spacing,n=e.palette,a=e.typography;return{content:ae({padding:t(1.5,1),paddingTop:t(1),backgroundColor:n.background.paper,boxSizing:"border-box"},a.body2),text:{display:"inline-block"},title:ae({},a.h6,{color:n.text.secondary,fontWeight:a.fontWeightBold,overflow:"hidden",textOverflow:"ellipsis"}),icon:{verticalAlign:"middle",color:n.action.active},lens:{color:function(e){return Ae(300,Se(e),n.primary)},width:t(4.5),height:t(4.5),verticalAlign:"super",position:"absolute",left:"50%",transform:"translate(-50%,0)"},lensMini:{width:t(2.5),height:t(2.5)},textCenter:{textAlign:"center",height:t(2.5)},dateAndTitle:{lineHeight:1.4},titleContainer:{paddingBottom:t(2)},contentContainer:{paddingBottom:t(1.5)},resourceContainer:{paddingBottom:t(.25)},recurringIcon:{position:"absolute",paddingTop:t(.875),left:"50%",transform:"translate(-50%,0)",color:n.background.paper,width:t(2.625),height:t(2.625)},relativeContainer:{position:"relative",width:"100%",height:"100%"}}})),on=function(e){var t=e.className,n=e.children,a=e.appointmentData,o=e.appointmentResources,i=e.formatDate,l=e.recurringIconComponent,c=ie(e,["className","children","appointmentData","appointmentResources","formatDate","recurringIconComponent"]),u=an(o),d=s.viewBoundText(a.startDate,a.endDate,s.WEEKDAY_INTERVAL,a.startDate,1,i);return r.createElement("div",te({className:p(u.content,t)},c),r.createElement(A,{container:!0,alignItems:"flex-start",className:u.titleContainer},r.createElement(A,{item:!0,xs:2},r.createElement("div",{className:u.relativeContainer},r.createElement(I,{className:u.lens}),!!a.rRule&&r.createElement(l,{className:u.recurringIcon}))),r.createElement(A,{item:!0,xs:10},r.createElement("div",null,r.createElement("div",{className:p(u.title,u.dateAndTitle)},a.title),r.createElement("div",{className:p(u.text,u.dateAndTitle)},d)))),r.createElement(A,{container:!0,alignItems:"center",className:u.contentContainer},r.createElement(A,{item:!0,xs:2,className:u.textCenter},r.createElement(x,{className:u.icon})),r.createElement(A,{item:!0,xs:10},r.createElement("div",{className:u.text},"".concat(i(a.startDate,s.HOUR_MINUTE_OPTIONS),"\n              - ").concat(i(a.endDate,s.HOUR_MINUTE_OPTIONS))))),o.map((function(e){return r.createElement(A,{container:!0,alignItems:"center",className:u.resourceContainer,key:"".concat(e.fieldName,"_").concat(e.id)},r.createElement(A,{item:!0,xs:2,className:u.textCenter},r.createElement("div",{className:u.relativeContainer},r.createElement(I,{className:p(u.lens,u.lensMini),style:{color:Ae(300,e.color)}}))),r.createElement(A,{item:!0,xs:10},r.createElement("div",{className:u.text},e.text)))})),n)};"production"!==a.env.NODE_ENV&&(on.propTypes={appointmentData:l.object,appointmentResources:l.array,children:l.node,className:l.string,formatDate:l.func.isRequired,recurringIconComponent:l.oneOfType([l.func,l.object]).isRequired}),on.defaultProps={appointmentData:void 0,appointmentResources:[],className:void 0,children:void 0};var rn=function(e){var t=e.id,n=e.onExecute,a=ie(e,["id","onExecute"]);return r.createElement(O,te({onClick:n},a),function(e){return e===s.OPEN_COMMAND_BUTTON?r.createElement(P,null):e===s.CLOSE_COMMAND_BUTTON?r.createElement(L,null):e===s.DELETE_COMMAND_BUTTON?r.createElement(_,null):null}(t))};"production"!==a.env.NODE_ENV&&(rn.propTypes={id:l.string,onExecute:l.func}),rn.defaultProps={onExecute:function(){},id:""};var ln=d.withComponents({Layout:en,Header:nn,Content:on,CommandButton:rn,RecurringIcon:C})(c.AppointmentTooltip),cn=r.memo((function(e){var t=e.value,n=e.availableOptions,a=e.onValueChange,o=e.readOnly,i=e.classes,l=e.inputClasses,c=ie(e,["value","availableOptions","onValueChange","readOnly","classes","inputClasses"]);return r.createElement(k,te({disabled:o,classes:{root:i.root},value:t,onChange:function(e){e.target.value!==t&&a(e.target.value)},input:r.createElement(B,{classes:l||{input:i.input,root:i.inputRoot},labelWidth:0})},c),n.map((function(e){return r.createElement(M,{value:e.id,key:e.id,className:i.menuItem},e.text)})))}));"production"!==a.env.NODE_ENV&&(cn.propTypes={onValueChange:l.func,classes:l.object.isRequired,value:l.oneOfType([l.string,l.number]).isRequired,availableOptions:l.arrayOf(l.shape({id:l.oneOfType([l.string,l.number]),text:l.string.isRequired})),readOnly:l.bool,inputClasses:l.object}),cn.defaultProps={readOnly:!1,onValueChange:function(){},availableOptions:[],inputClasses:null};var un=u.withStyles((function(e){var t=e.typography;return{root:{fontSize:t.fontSize},input:{fontWeight:"bold",textTransform:"uppercase",fontSize:t.fontSize},menuItem:{fontSize:t.fontSize,textTransform:"uppercase"},inputRoot:{width:"100%"}}}))(cn,{name:"OutlinedSelect"}),sn=r.memo((function(e){var t=e.currentView,n=e.availableViews,a=e.onChange,o=e.classes,i=ie(e,["currentView","availableViews","onChange","classes"]),l=n.map((function(e){return{id:e.name,text:e.displayName}}));return r.createElement(un,te({value:t.name,availableOptions:l,onValueChange:a,inputClasses:{input:o.input,root:o.inputRoot}},i))}));"production"!==a.env.NODE_ENV&&(sn.propTypes={onChange:l.func.isRequired,classes:l.object.isRequired,currentView:l.shape({name:l.string.isRequired,displayName:l.string.isRequired}).isRequired,availableViews:l.arrayOf(l.shape({name:l.string.isRequired,displayName:l.string.isRequired}))}),sn.defaultProps={availableViews:[]};var pn=u.withStyles((function(e){var t=e.spacing;return{input:ee({padding:t(1.25,1.75),paddingRight:t(4),textTransform:"uppercase"},"".concat(Ee),{fontSize:"0.75rem"}),inputRoot:{marginLeft:t(.5),"&:first-child":{marginLeft:0}}}}))(sn,{name:"Switcher"}),dn=d.withComponents({Switcher:pn})(c.ViewSwitcher),mn=r.memo((function(e){var t=e.setCellElementsMeta,n=e.cellsData,a=e.classes,o=e.className,i=e.cellComponent,l=e.rowComponent,c=(e.formatDate,ie(e,["setCellElementsMeta","cellsData","classes","className","cellComponent","rowComponent","formatDate"])),u=r.useRef(null);return r.useEffect((function(){var e=u.current;t(Ne(e))})),r.createElement(h,te({ref:u,className:p(a.table,o)},c),r.createElement(y,null,r.createElement(l,null,n.map((function(e){var t=e.startDate,n=e.endDate,a=e.endOfGroup,o=e.groupingInfo;return r.createElement(i,{key:Ie(t,o),startDate:t,endDate:n,endOfGroup:a,hasRightBorder:a,groupingInfo:o})})))))}));"production"!==a.env.NODE_ENV&&(mn.propTypes={classes:l.object.isRequired,formatDate:l.func.isRequired,cellsData:l.arrayOf(Array).isRequired,cellComponent:l.oneOfType([l.func,l.object]).isRequired,rowComponent:l.oneOfType([l.func,l.object]).isRequired,setCellElementsMeta:l.func.isRequired,className:l.string}),mn.defaultProps={className:void 0};var fn=u.withStyles({table:{tableLayout:"fixed"}},{name:"Layout"})(mn),gn=function(e){var t,n=e.classes,a=e.className,o=e.children,i=(e.startDate,e.endDate,e.endOfGroup),l=(e.groupingInfo,e.groupOrientation),c=e.hasRightBorder,u=ie(e,["classes","className","children","startDate","endDate","endOfGroup","groupingInfo","groupOrientation","hasRightBorder"]);return r.createElement(v,te({tabIndex:0,className:p((t={},ee(t,n.cell,!0),ee(t,n.brightRightBorder,l===s.HORIZONTAL_GROUP_ORIENTATION&&(i||c)),t),a)},u),o)};"production"!==a.env.NODE_ENV&&(gn.propTypes={classes:l.object.isRequired,startDate:l.instanceOf(Date),endDate:l.instanceOf(Date),children:l.node,className:l.string,hasRightBorder:l.bool,endOfGroup:l.bool,groupingInfo:l.arrayOf(l.object),groupOrientation:l.oneOf([s.HORIZONTAL_GROUP_ORIENTATION,s.VERTICAL_GROUP_ORIENTATION])}),gn.defaultProps={children:null,startDate:void 0,endDate:void 0,className:void 0,hasRightBorder:!1,endOfGroup:!1,groupingInfo:void 0,groupOrientation:s.HORIZONTAL_GROUP_ORIENTATION};var hn=u.withStyles((function(e){return{cell:{padding:0,height:e.spacing(De[s.VIEW_TYPES.ALL_DAY_PANEL]),boxSizing:"border-box",borderRight:Oe(e),"&:last-child":{borderRight:"none"},"&:hover":{backgroundColor:e.palette.action.hover},"&:focus":{backgroundColor:m.fade(e.palette.primary.main,.15),outline:0},"tr:last-child &":{borderBottom:"none"}},brightRightBorder:{borderRight:Re(e)}}}),{name:"Cell"})(gn),yn=r.memo((function(e){var t,n,a=e.classes,o=e.getMessage,i=e.className,l=e.fixedHeight,c=ie(e,["classes","getMessage","className","fixedHeight"]);return r.createElement("div",te({className:p((t={},ee(t,a.container,!0),ee(t,a.fixedHeight,l),t),i)},c),r.createElement("div",{className:p((n={},ee(n,a.content,!0),ee(n,a.fixedHeight,l),n),i)},r.createElement(S,{className:a.title,variant:"body1"},o("allDay"))))}));yn.propTypes={classes:l.object.isRequired,getMessage:l.func.isRequired,className:l.string,fixedHeight:l.bool},yn.defaultProps={className:void 0,fixedHeight:!1};var vn=u.withStyles((function(e){return{container:{userSelect:"none",height:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-end",position:"relative"},content:{width:e.spacing(10),boxSizing:"border-box",height:e.spacing(5.75),textAlign:"right",display:"flex",alignItems:"center",justifyContent:"flex-end"},title:ae({paddingRight:e.spacing(2)},e.typography.caption,{color:e.palette.text.secondary}),fixedHeight:{height:e.spacing(De[s.VIEW_TYPES.ALL_DAY_PANEL]),width:"100%"}}}),{name:"TitleCell"})(yn),Cn=u.withStyles({container:{position:"relative",display:"table",minWidth:"100%"}},{name:"AllDayContainer"})(pe),En=d.withComponents({AppointmentLayer:Be,Layout:fn,Cell:hn,Row:_e,TitleCell:vn,Container:Cn})(c.AllDayPanel),Dn={root:{height:"100%",margin:"0 auto",overflowY:"auto"},container:ee({display:"flex"},"".concat(Ee),{flexDirection:"column"}),stickyContainer:{display:"flex",position:"sticky",top:0,zIndex:1}},bn=function(e){var t=e.basicLayoutComponent,n=e.commandLayoutComponent,a=e.recurrenceLayoutComponent,o=(e.isRecurrence,e.children),i=e.classes,l=e.className,c=ie(e,["basicLayoutComponent","commandLayoutComponent","recurrenceLayoutComponent","isRecurrence","children","classes","className"]);return r.createElement("div",te({className:p(i.root,l)},c),r.createElement("div",{className:i.stickyContainer},r.createElement(n,null)),r.createElement("div",{className:i.container},r.createElement(t,null),r.createElement(a,null)),o)};"production"!==a.env.NODE_ENV&&(bn.propTypes={basicLayoutComponent:l.oneOfType([l.func,l.object]).isRequired,commandLayoutComponent:l.oneOfType([l.func,l.object]).isRequired,recurrenceLayoutComponent:l.oneOfType([l.func,l.object]).isRequired,children:l.node,className:l.string,classes:l.object.isRequired,isRecurrence:l.bool}),bn.defaultProps={className:void 0,isRecurrence:!1,children:null};var Tn=u.withStyles(Dn)(bn,{name:"Layout"}),On=r.memo((function(e){var t=e.classes,n=e.value,a=e.placeholder,o=e.className,i=e.readOnly,l=e.onValueChange,c=e.type,u=ie(e,["classes","value","placeholder","className","readOnly","onValueChange","type"]),d=c===s.NUMBER_EDITOR?"number":"text",m=c===s.MULTILINE_TEXT_EDITOR;return r.createElement(V,te({className:p(t.editor,o),value:n,variant:m?"outlined":"filled",disabled:i,onChange:function(e){var t=e.target;return l(t.value)},InputProps:{className:p(ee({},t.title,c===s.TITLE_TEXT_EDITOR))},multiline:m,rows:"5",type:d,hiddenLabel:!0,margin:"normal",placeholder:a},u))}));"production"!==a.env.NODE_ENV&&(On.propTypes={classes:l.object.isRequired,value:l.oneOfType([l.string,l.number]),placeholder:l.string,className:l.string,readOnly:l.bool,onValueChange:l.func,type:l.string}),On.defaultProps={value:"",placeholder:void 0,className:void 0,readOnly:!1,onValueChange:function(){},type:s.ORDINARY_TEXT_EDITOR};var Rn=u.withStyles((function(e){return{editor:{width:"100%",marginTop:e.spacing(.375),marginBottom:e.spacing(.125)},title:ae({},e.typography.h6)}}))(On,{name:"TextEditor"}),Nn=function(e){var t,n=e.children,a=e.locale,o=e.classes,i=e.className,l=e.getMessage,c=e.readOnly,u=e.onFieldChange,d=e.appointmentData,m=e.fullSize,f=e.resources,g=e.appointmentResources,h=e.textEditorComponent,y=e.dateEditorComponent,v=(e.selectComponent,e.labelComponent),C=e.booleanEditorComponent,E=e.resourceEditorComponent,D=ie(e,["children","locale","classes","className","getMessage","readOnly","onFieldChange","appointmentData","fullSize","resources","appointmentResources","textEditorComponent","dateEditorComponent","selectComponent","labelComponent","booleanEditorComponent","resourceEditorComponent"]),b=r.useCallback((function(e){return u({title:e})}),[u]),T=r.useCallback((function(e){return u({notes:e})}),[u]),O=r.useCallback((function(e){return u({startDate:e})}),[u]),R=r.useCallback((function(e){return u({endDate:e})}),[u]),N=r.useCallback((function(e){return u({allDay:e})}),[u]),w=r.useCallback((function(e){return u(e)}),[u]),S=d.rRule,x=d.startDate,I=r.useCallback((function(e){return s.handleChangeFrequency(e?s.REPEAT_TYPES.DAILY:s.REPEAT_TYPES.NEVER,S,x,u)}),[S,x,u]);return r.createElement("div",te({className:p((t={},ee(t,o.root,!0),ee(t,o.fullSize,m),ee(t,o.halfSize,!m),t),i)},D),r.createElement(v,{text:l("detailsLabel"),type:s.TITLE}),r.createElement(h,{placeholder:l("titleLabel"),readOnly:c,type:s.TITLE_TEXT_EDITOR,value:d.title,onValueChange:b}),r.createElement(A,{container:!0,alignItems:"center",className:o.dateEditors},r.createElement(y,{className:o.dateEditor,readOnly:c,value:d.startDate,onValueChange:O,locale:a,excludeTime:d.allDay}),r.createElement(v,{text:"-",className:o.dividerLabel}),r.createElement(y,{className:o.dateEditor,readOnly:c,value:d.endDate,onValueChange:R,locale:a,excludeTime:d.allDay})),r.createElement(A,{container:!0,className:o.booleanEditors},r.createElement(C,{label:l("allDayLabel"),readOnly:c,value:d.allDay,onValueChange:N}),r.createElement(C,{label:l("repeatLabel"),readOnly:c,value:!!d.rRule,onValueChange:I})),r.createElement(v,{text:l("moreInformationLabel"),type:s.TITLE,className:o.labelWithMargins}),r.createElement(h,{placeholder:l("notesLabel"),readOnly:c,type:s.MULTILINE_TEXT_EDITOR,value:d.notes,onValueChange:T,className:o.notesEditor}),f.map((function(e){return r.createElement(r.Fragment,{key:e.fieldName},r.createElement(v,{text:e.title,type:s.TITLE,className:o.labelWithMargins}),r.createElement(E,{readOnly:c,resource:e,appointmentResources:g,onResourceChange:w}))})),n)};"production"!==a.env.NODE_ENV&&(Nn.propTypes={textEditorComponent:l.oneOfType([l.func,l.object]).isRequired,dateEditorComponent:l.oneOfType([l.func,l.object]).isRequired,selectComponent:l.oneOfType([l.func,l.object]).isRequired,labelComponent:l.oneOfType([l.func,l.object]).isRequired,booleanEditorComponent:l.oneOfType([l.func,l.object]).isRequired,resourceEditorComponent:l.oneOfType([l.func,l.object]).isRequired,locale:l.oneOfType([l.string,l.arrayOf(l.string)]).isRequired,children:l.node,className:l.string,classes:l.object.isRequired,getMessage:l.func.isRequired,onFieldChange:l.func,appointmentData:l.shape({title:l.string,startDate:l.instanceOf(Date),endDate:l.instanceOf(Date),rRule:l.string,notes:l.string,additionalInformation:l.string,allDay:l.bool}).isRequired,resources:l.array,appointmentResources:l.array,readOnly:l.bool,fullSize:l.bool.isRequired}),Nn.defaultProps={onFieldChange:function(){},resources:[],appointmentResources:[],className:void 0,readOnly:!1,children:null};var wn=u.withStyles((function(e){var t=e.spacing,n=e.typography;return{root:ee({width:"650px",paddingTop:t(3),paddingBottom:t(3),paddingLeft:t(4),paddingRight:t(4),boxSizing:"border-box",transition:"all ".concat(400,"ms cubic-bezier(0, 0, 0.2, 1)")},"".concat(Ee),{width:"100%",maxWidth:"700px",paddingRight:t(2),paddingLeft:t(2),paddingBottom:0}),fullSize:{paddingBottom:t(3)},halfSize:{"@media (min-width: 700px) and (max-width: 850px)":{width:"400px"},"@media (min-width: 850px) and (max-width: 1000px)":{width:"480px"},"@media (min-width: 1000px) and (max-width: 1150px)":{width:"560px"}},labelWithMargins:{marginBottom:t(.5),marginTop:t(.5)},notesEditor:{marginTop:t(0)},dateEditor:{width:"45%",paddingTop:"0px!important",marginTop:t(2),paddingBottom:"0px!important",marginBottom:0},dividerLabel:ae({},n.body2,{width:"10%",textAlign:"center",paddingTop:t(2)}),booleanEditors:{marginTop:t(.875)},"@media (max-width: 570px)":{dateEditors:{flexDirection:"column"},booleanEditors:{flexDirection:"column",marginTop:t(1.875)},dateEditor:{width:"100%","&:first-child":{marginBottom:0},"&:last-child":{marginTop:t(2)}},dividerLabel:{display:"none"}}}}))(Nn,{name:"BasicLayout"}),Sn=function(e){var t,n=e.commandButtonComponent,a=e.onCommitButtonClick,o=e.onCancelButtonClick,i=e.onDeleteButtonClick,l=e.getMessage,c=e.children,u=e.classes,d=e.className,m=e.fullSize,f=e.readOnly,g=e.disableSaveButton,h=e.hideDeleteButton,y=ie(e,["commandButtonComponent","onCommitButtonClick","onCancelButtonClick","onDeleteButtonClick","getMessage","children","classes","className","fullSize","readOnly","disableSaveButton","hideDeleteButton"]);return r.createElement(A,te({className:p((t={},ee(t,u.root,!0),ee(t,u.basic,!m),ee(t,u.fullSize,m),t),d),container:!0,alignItems:"center"},y),r.createElement(n,{onExecute:o,getMessage:l,id:s.CANCEL_BUTTON}),!f&&r.createElement(r.Fragment,null,!h&&r.createElement(r.Fragment,null,r.createElement(n,{onExecute:i,getMessage:l,id:s.DELETE_BUTTON}),r.createElement("div",{className:u.line})),r.createElement(n,{getMessage:l,disabled:g,onExecute:a,id:s.SAVE_BUTTON})),c)};"production"!==a.env.NODE_ENV&&(Sn.propTypes={commandButtonComponent:l.oneOfType([l.func,l.object]).isRequired,classes:l.object.isRequired,onCommitButtonClick:l.func.isRequired,onCancelButtonClick:l.func.isRequired,onDeleteButtonClick:l.func.isRequired,getMessage:l.func.isRequired,className:l.string,fullSize:l.bool,readOnly:l.bool,children:l.node,disableSaveButton:l.bool,hideDeleteButton:l.bool}),Sn.defaultProps={className:void 0,children:void 0,fullSize:!1,readOnly:!1,disableSaveButton:!1,hideDeleteButton:!1};var An=u.withStyles((function(e){var t,n=e.spacing,a=e.palette;return ee(t={root:{display:"flex",justifyContent:"flex-end",paddingTop:n(2),paddingLeft:n(2),paddingRight:n(4),transition:"all ".concat(400,"ms cubic-bezier(0, 0, 0.2, 1)"),backgroundColor:a.background.paper},basic:{width:"650px"},fullSize:{width:"1150px","@media (min-width: 700px) and (max-width: 850px)":{width:"700px"},"@media (min-width: 850px) and (max-width: 1000px)":{width:"850px"},"@media (min-width: 1000px) and (max-width: 1150px)":{width:"1000px"}}},"".concat(Ee),{basic:{maxWidth:"700px",width:"100%"},root:{paddingRight:n(2),paddingLeft:0,paddingTop:n(1),maxWidth:"700px",width:"100%"}}),ee(t,"line",{backgroundColor:a.action.disabledBackground,height:n(4.5),width:"1px"}),t}))(Sn,{name:"Layout"}),xn=r.memo((function(e){var t=e.classes,n=e.getMessage,a=e.className,o=e.onExecute,i=ie(e,["classes","getMessage","className","onExecute"]);return r.createElement(b,te({className:p(t.button,a),onClick:o},i),n("commitCommand"))}));xn.propTypes={classes:l.object.isRequired,className:l.string,getMessage:l.func.isRequired,onExecute:l.func.isRequired},xn.defaultProps={className:void 0};var In=u.withStyles((function(e){var t=e.spacing,n=e.palette;return{button:{padding:t(.5,3.5),marginLeft:t(3),height:t(4.5),"&:first-child":{marginLeft:0},backgroundColor:we(300,n.primary),color:n.primary.contrastText,"&:hover":{backgroundColor:we(400,n.primary)}}}}))(xn,{name:"SaveButton"}),Pn=r.memo((function(e){var t=e.onExecute,n=e.className,a=e.classes,o=ie(e,["onExecute","className","classes"]);return r.createElement(O,te({className:p(a.button,n),onClick:t},o),r.createElement(_,null))}));Pn.propTypes={classes:l.object.isRequired,className:l.string,onExecute:l.func.isRequired},Pn.defaultProps={className:void 0};var Ln=u.withStyles((function(e){return{button:{marginRight:(0,e.spacing)(.5)}}}))(Pn,{name:"DeleteButton"}),_n=r.memo((function(e){var t=e.onExecute,n=e.className,a=e.classes,o=ie(e,["onExecute","className","classes"]);return r.createElement(O,te({className:p(a.button,n),onClick:t},o),r.createElement(L,null))}));_n.propTypes={classes:l.object.isRequired,className:l.string,onExecute:l.func.isRequired},_n.defaultProps={className:void 0};var kn=u.withStyles((function(){return{button:{marginRight:"auto"}}}))(_n,{name:"CancelButton"}),Mn=r.memo((function(e){var t=e.id,n=e.getMessage,a=e.onExecute,o=ie(e,["id","getMessage","onExecute"]);switch(t){case s.SAVE_BUTTON:return r.createElement(In,te({getMessage:n,onExecute:a},o));case s.DELETE_BUTTON:return r.createElement(Ln,te({onExecute:a},o));case s.CANCEL_BUTTON:return r.createElement(kn,te({onExecute:a},o));default:return null}}));"production"!==a.env.NODE_ENV&&(Mn.propTypes={id:l.string.isRequired,onExecute:l.func.isRequired,getMessage:l.func.isRequired});var Bn=function(e){var t,n=e.children,a=e.visible,o=e.classes,i=e.className,l=e.fullSize,c=e.target,u=e.onHide,s=ie(e,["children","visible","classes","className","fullSize","target","onHide"]),d=ue(r.useState(!1),2),m=d[0],f=d[1],g=p((ee(t={},o.absolutePosition,!0),ee(t,o.paper,!0),ee(t,o.fullSize,l),ee(t,o.halfSize,!l),ee(t,o.transition,a&&m),t));return r.createElement(q,te({className:p(o.root,i),PaperProps:{className:g},BackdropProps:{className:o.absolutePosition},ModalProps:{className:o.absolutePosition,container:c.current},SlideProps:{onEntered:function(){return f(!0)},onExited:function(){return f(!1)}},open:a,variant:"temporary",anchor:"left",transitionDuration:400,onBackdropClick:u},s),n)};"production"!==a.env.NODE_ENV&&(Bn.propTypes={children:l.node.isRequired,classes:l.object.isRequired,fullSize:l.bool.isRequired,onHide:l.func.isRequired,visible:l.bool,className:l.string,target:l.object}),Bn.defaultProps={className:void 0,visible:!1,target:null};var Vn=u.withStyles((function(e){return{root:{overflow:"hidden",paddingTop:(0,e.spacing)(2)},absolutePosition:{position:"absolute!important"},paper:{outline:"none"},fullSize:ee({height:"100%",width:"1150px","@media (min-width: 700px) and (max-width: 850px)":{width:"700px"},"@media (min-width: 850px) and (max-width: 1000px)":{width:"850px"},"@media (min-width: 1000px) and (max-width: 1150px)":{width:"1000px"}},"".concat(Ee),{width:"100%",maxWidth:"700px"}),halfSize:ee({height:"100%",width:"650px"},"".concat(Ee),{width:"100%",maxWidth:"700px"}),transition:{transition:"all ".concat(400,"ms cubic-bezier(0, 0, 0.2, 1)!important")}}}))(Bn,{name:"Overlay"}),qn=r.memo((function(e){var t=e.classes,n=e.onValueChange,a=e.value,o=e.readOnly,i=e.className,l=e.locale,c=e.excludeTime,u=ie(e,["classes","onValueChange","value","readOnly","className","locale","excludeTime"]),s=r.useCallback((function(e){return e&&n(e.toDate())}),[n]),d=c?"DD/MM/YYYY":"DD/MM/YYYY hh:mm A";return r.createElement(W.MuiPickersUtilsProvider,{utils:G,locale:l},r.createElement(W.KeyboardDateTimePicker,te({variant:"inline",disabled:o,className:p(t.dateEditor,i),margin:"normal",value:a,onChange:s,format:d,inputVariant:"filled",hiddenLabel:!0},u)))}));"production"!==a.env.NODE_ENV&&(qn.propTypes={classes:l.object.isRequired,value:l.oneOfType([l.number,l.string,l.instanceOf(Date)]),className:l.string,readOnly:l.bool,onValueChange:l.func.isRequired,locale:l.oneOfType([l.string,l.arrayOf(l.string)]),excludeTime:l.bool}),qn.defaultProps={locale:"en-US",value:void 0,className:void 0,readOnly:!1,excludeTime:!1};var Gn=u.withStyles((function(e){return{dateEditor:{paddingBottom:(0,e.spacing)(1.5)}}}))(qn,{name:"DateEditor"}),Wn=r.memo((function(e){var t,n=e.classes,a=e.text,o=e.className,i=e.type,l=ie(e,["classes","text","className","type"]);return r.createElement(S,te({className:p((t={},ee(t,n.label,!0),ee(t,n.titleLabel,i===s.TITLE),t),o)},l),a)}));Wn.propTypes={classes:l.object.isRequired,text:l.string,className:l.string,type:l.string},Wn.defaultProps={text:void 0,className:void 0,type:s.ORDINARY_LABEL};var jn=u.withStyles((function(e){return{label:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},titleLabel:{fontWeight:e.typography.fontWeightBold,fontSize:e.typography.fontSize+5}}}))(Wn,{name:"Label"}),Hn=r.memo((function(e){var t=e.label,n=e.value,a=e.readOnly,o=e.onValueChange,i=e.classes,l=ie(e,["label","value","readOnly","onValueChange","classes"]);return r.createElement(H,te({classes:{label:i.label},control:r.createElement(j,{color:"primary",checked:n,onChange:function(e){var t=e.target;return o(t.checked)}}),disabled:a,label:t},l))}));Hn.propTypes={label:l.string,readOnly:l.bool,value:l.bool,onValueChange:l.func.isRequired,classes:l.object.isRequired},Hn.defaultProps={label:void 0,readOnly:!1,value:!1};var Yn=u.withStyles({label:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",userSelect:"none"}})(Hn,{name:"BooleanEditor"}),Fn=r.memo((function(e){var t=e.value,n=e.availableOptions,a=e.onValueChange,o=e.readOnly,i=e.classes,l=e.className,c=ie(e,["value","availableOptions","onValueChange","readOnly","classes","className"]);return r.createElement(V,te({select:!0,className:p(i.filledSelect,l),value:t,onChange:function(e){e.target.value!==t&&a(e.target.value)},margin:"normal",variant:"filled",hiddenLabel:!0,disabled:o},c),n.map((function(e){return r.createElement(M,{value:e.id,key:e.id,className:i.menuItem},e.text)})))}));"production"!==a.env.NODE_ENV&&(Fn.propTypes={onValueChange:l.func,classes:l.object.isRequired,value:l.oneOfType([l.string,l.number]).isRequired,availableOptions:l.arrayOf(l.shape({id:l.oneOfType([l.string,l.number]),text:l.string.isRequired})),readOnly:l.bool,className:l.string}),Fn.defaultProps={readOnly:!1,onValueChange:function(){},availableOptions:[],className:void 0};var zn=u.withStyles((function(e){var t=e.typography,n=e.spacing;return{filledSelect:{marginTop:n(.375),marginBottom:n(.125)},menuItem:{fontSize:t.fontSize,textTransform:"uppercase"}}}))(Fn,{name:"FilledSelect"}),Un=r.memo((function(e){var t=e.value,n=e.availableOptions,a=e.onValueChange,o=e.readOnly,i=e.type,l=ie(e,["value","availableOptions","onValueChange","readOnly","type"]),c=i===s.STANDARD_SELECT?zn:un;return r.createElement(c,te({value:t,availableOptions:n,onValueChange:a,readOnly:o},l))}));"production"!==a.env.NODE_ENV&&(Un.propTypes={onValueChange:l.func.isRequired,value:l.oneOfType([l.string,l.number]).isRequired,availableOptions:l.arrayOf(l.shape({id:l.oneOfType([l.string,l.number]),text:l.string.isRequired})),readOnly:l.bool,type:l.string}),Un.defaultProps={readOnly:!1,availableOptions:[],type:s.STANDARD_SELECT};var Kn=function(e){var t=e.classes,n=e.className,a=e.labelComponent,o=e.textEditorComponent,i=e.repeatEveryLabel,l=e.repeatIntervalLabel,c=e.readOnly,u=e.interval,d=e.changeRecurrenceInterval,m=ie(e,["classes","className","labelComponent","textEditorComponent","repeatEveryLabel","repeatIntervalLabel","readOnly","interval","changeRecurrenceInterval"]);return r.createElement(A,te({container:!0,direction:"row",justify:"flex-start",alignItems:"center",className:p(t.grid,n)},m),r.createElement(a,{text:i,className:t.label}),r.createElement(o,{readOnly:c,value:u,className:t.textEditor,type:s.NUMBER_EDITOR,onValueChange:d}),r.createElement(a,{text:l,className:t.labelWithMargin}))};"production"!==a.env.NODE_ENV&&(Kn.propTypes={classes:l.object.isRequired,className:l.string,repeatEveryLabel:l.string.isRequired,repeatIntervalLabel:l.string.isRequired,readOnly:l.bool.isRequired,interval:l.number,changeRecurrenceInterval:l.func.isRequired,labelComponent:l.oneOfType([l.func,l.object]).isRequired,textEditorComponent:l.oneOfType([l.func,l.object]).isRequired}),Kn.defaultProps={className:void 0,interval:1};var Zn=u.withStyles((function(e){return{grid:{marginTop:(0,e.spacing)(1.75)},label:{width:"6.5em"},labelWithMargin:{marginLeft:"1em",width:"calc((100% - 7.5em) * 4 / 7)"},textEditor:{width:"calc((100% - 7.5em) * 3 / 7)",maxWidth:"8em"}}}))(Kn,{name:"IntervalEditor"}),Xn=function(e){e.weeklyRecurrenceSelectorComponent,e.radioGroupComponent;var t=e.textEditorComponent,n=e.labelComponent,a=e.getMessage,o=e.readOnly,i=e.onFieldChange,l=e.appointmentData,c=(e.selectComponent,e.formatDate,e.firstDayOfWeek,ie(e,["weeklyRecurrenceSelectorComponent","radioGroupComponent","textEditorComponent","labelComponent","getMessage","readOnly","onFieldChange","appointmentData","selectComponent","formatDate","firstDayOfWeek"])),u=l.rRule,p=r.useMemo((function(){return s.getRecurrenceOptions(u)||{}}),[u]),d=r.useCallback((function(e){return s.checkIsNaturalNumber(e)&&i({rRule:s.changeRecurrenceOptions(ae({},p,{interval:e}))})}),[p,i]);return r.createElement(Zn,te({repeatEveryLabel:a("repeatEveryLabel"),repeatIntervalLabel:a("daysLabel"),textEditorComponent:t,labelComponent:n,changeRecurrenceInterval:d,interval:p.interval,readOnly:o},c))};"production"!==a.env.NODE_ENV&&(Xn.propTypes={labelComponent:l.oneOfType([l.func,l.object]).isRequired,radioGroupComponent:l.oneOfType([l.func,l.object]).isRequired,textEditorComponent:l.oneOfType([l.func,l.object]).isRequired,selectComponent:l.oneOfType([l.func,l.object]).isRequired,weeklyRecurrenceSelectorComponent:l.oneOfType([l.func,l.object]).isRequired,appointmentData:l.shape({title:l.string,startDate:l.instanceOf(Date),endDate:l.instanceOf(Date),rRule:l.string,notes:l.string,additionalInformation:l.string,allDay:l.bool}).isRequired,onFieldChange:l.func,getMessage:l.func.isRequired,readOnly:l.bool,formatDate:l.func.isRequired,firstDayOfWeek:l.number.isRequired}),Xn.defaultProps={onFieldChange:function(){},readOnly:!1};var Qn=function(e){e.radioGroupComponent;var t=e.textEditorComponent,n=e.labelComponent,a=e.classes,o=e.getMessage,i=e.readOnly,l=e.onFieldChange,c=e.appointmentData,u=(e.selectComponent,e.weeklyRecurrenceSelectorComponent),p=e.formatDate,d=e.firstDayOfWeek,m=ie(e,["radioGroupComponent","textEditorComponent","labelComponent","classes","getMessage","readOnly","onFieldChange","appointmentData","selectComponent","weeklyRecurrenceSelectorComponent","formatDate","firstDayOfWeek"]),f=c.rRule,g=r.useMemo((function(){return s.getRecurrenceOptions(f)||{}}),[f]),h=r.useCallback((function(e){return s.checkIsNaturalNumber(e)&&l({rRule:s.changeRecurrenceOptions(ae({},g,{interval:e}))})}),[g,l]);return r.createElement("div",m,r.createElement(Zn,te({className:a.container,repeatEveryLabel:o("repeatEveryLabel"),repeatIntervalLabel:o("weeksOnLabel"),textEditorComponent:t,labelComponent:n,changeRecurrenceInterval:h,interval:g.interval,readOnly:i},m)),r.createElement(u,{rRule:c.rRule,onValueChange:l,readOnly:i,formatDate:p,firstDayOfWeek:d}))};"production"!==a.env.NODE_ENV&&(Qn.propTypes={labelComponent:l.oneOfType([l.func,l.object]).isRequired,radioGroupComponent:l.oneOfType([l.func,l.object]).isRequired,textEditorComponent:l.oneOfType([l.func,l.object]).isRequired,selectComponent:l.oneOfType([l.func,l.object]).isRequired,weeklyRecurrenceSelectorComponent:l.oneOfType([l.func,l.object]).isRequired,appointmentData:l.shape({title:l.string,startDate:l.instanceOf(Date),endDate:l.instanceOf(Date),rRule:l.string,notes:l.string,additionalInformation:l.string,allDay:l.bool}).isRequired,onFieldChange:l.func,classes:l.object.isRequired,getMessage:l.func.isRequired,readOnly:l.bool,formatDate:l.func.isRequired,firstDayOfWeek:l.number.isRequired}),Qn.defaultProps={onFieldChange:function(){},readOnly:!1};var Jn=u.withStyles((function(e){return{container:{marginBottom:e.spacing(2)}}}))(Qn,{name:"Weekly"}),$n=function(e){var t=e.radioGroupComponent,n=e.textEditorComponent,a=e.labelComponent,o=e.classes,i=e.getMessage,l=e.readOnly,c=e.onFieldChange,u=e.appointmentData,p=e.selectComponent,d=(e.weeklyRecurrenceSelectorComponent,e.formatDate),m=e.firstDayOfWeek,f=ie(e,["radioGroupComponent","textEditorComponent","labelComponent","classes","getMessage","readOnly","onFieldChange","appointmentData","selectComponent","weeklyRecurrenceSelectorComponent","formatDate","firstDayOfWeek"]),g=u.rRule,h=r.useMemo((function(){return s.getRecurrenceOptions(g)||{}}),[g]),y=r.useCallback((function(e){return s.checkIsNaturalNumber(e)&&c({rRule:s.changeRecurrenceOptions(ae({},h,{interval:e}))})}),[h,c]);return r.createElement("div",f,r.createElement(Zn,te({className:o.container,repeatEveryLabel:i("repeatEveryLabel"),repeatIntervalLabel:i("monthsLabel"),textEditorComponent:n,labelComponent:a,changeRecurrenceInterval:y,interval:h.interval,readOnly:l},f)),r.createElement(t,{type:s.MONTHLY_RADIO_GROUP,readOnly:l,getMessage:i,textEditorComponent:n,labelComponent:a,onFieldChange:c,appointmentData:u,selectComponent:p,formatDate:d,dateEditorComponent:function(){return null},firstDayOfWeek:m}))};"production"!==a.env.NODE_ENV&&($n.propTypes={labelComponent:l.oneOfType([l.func,l.object]).isRequired,radioGroupComponent:l.oneOfType([l.func,l.object]).isRequired,textEditorComponent:l.oneOfType([l.func,l.object]).isRequired,selectComponent:l.oneOfType([l.func,l.object]).isRequired,weeklyRecurrenceSelectorComponent:l.oneOfType([l.func,l.object]).isRequired,appointmentData:l.shape({title:l.string,startDate:l.instanceOf(Date),endDate:l.instanceOf(Date),rRule:l.string,notes:l.string,additionalInformation:l.string,allDay:l.bool}).isRequired,onFieldChange:l.func,classes:l.object.isRequired,getMessage:l.func.isRequired,readOnly:l.bool,formatDate:l.func.isRequired,firstDayOfWeek:l.number.isRequired}),$n.defaultProps={onFieldChange:function(){},readOnly:!1};var ea=u.withStyles((function(e){return{container:{marginBottom:e.spacing(1)}}}))($n,{name:"Monthly"}),ta=function(e){var t=e.radioGroupComponent,n=e.textEditorComponent,a=e.labelComponent,o=e.classes,i=e.getMessage,l=e.readOnly,c=e.onFieldChange,u=e.appointmentData,p=e.selectComponent,d=(e.weeklyRecurrenceSelectorComponent,e.formatDate),m=e.firstDayOfWeek,f=ie(e,["radioGroupComponent","textEditorComponent","labelComponent","classes","getMessage","readOnly","onFieldChange","appointmentData","selectComponent","weeklyRecurrenceSelectorComponent","formatDate","firstDayOfWeek"]),g=u.rRule,h=r.useMemo((function(){return s.getRecurrenceOptions(g)||{}}),[g]),y=r.useCallback((function(e){return s.checkIsNaturalNumber(e)&&c({rRule:s.changeRecurrenceOptions(ae({},h,{interval:e}))})}),[h,c]);return r.createElement("div",f,r.createElement(Zn,te({repeatEveryLabel:i("repeatEveryLabel"),repeatIntervalLabel:i("yearsLabel"),textEditorComponent:n,labelComponent:a,changeRecurrenceInterval:y,interval:h.interval,readOnly:l},f)),r.createElement(t,{type:s.YEARLY_RADIO_GROUP,readOnly:l,getMessage:i,textEditorComponent:n,labelComponent:a,onFieldChange:c,appointmentData:u,selectComponent:p,formatDate:d,className:o.radioGroup,dateEditorComponent:function(){return null},firstDayOfWeek:m}))};"production"!==a.env.NODE_ENV&&(ta.propTypes={labelComponent:l.oneOfType([l.func,l.object]).isRequired,radioGroupComponent:l.oneOfType([l.func,l.object]).isRequired,textEditorComponent:l.oneOfType([l.func,l.object]).isRequired,selectComponent:l.oneOfType([l.func,l.object]).isRequired,weeklyRecurrenceSelectorComponent:l.oneOfType([l.func,l.object]).isRequired,appointmentData:l.shape({title:l.string,startDate:l.instanceOf(Date),endDate:l.instanceOf(Date),rRule:l.string,notes:l.string,additionalInformation:l.string,allDay:l.bool}).isRequired,onFieldChange:l.func,classes:l.object.isRequired,getMessage:l.func.isRequired,readOnly:l.bool,formatDate:l.func.isRequired,firstDayOfWeek:l.number.isRequired}),ta.defaultProps={onFieldChange:function(){},readOnly:!1};var na=u.withStyles((function(e){return{radioGroup:{marginTop:e.spacing(1)}}}))(ta,{name:"Yearly"}),aa=function(e){var t,n=e.radioGroupComponent,a=e.textEditorComponent,o=e.labelComponent,i=e.dateEditorComponent,l=e.selectComponent,c=e.weeklyRecurrenceSelectorComponent,u=e.children,d=e.classes,m=e.className,f=e.getMessage,g=e.readOnly,h=e.onFieldChange,y=e.appointmentData,v=e.formatDate,C=e.locale,E=e.visible,D=e.firstDayOfWeek,b=ie(e,["radioGroupComponent","textEditorComponent","labelComponent","dateEditorComponent","selectComponent","weeklyRecurrenceSelectorComponent","children","classes","className","getMessage","readOnly","onFieldChange","appointmentData","formatDate","locale","visible","firstDayOfWeek"]);if(!y.rRule)return null;var T=s.getRecurrenceOptions(y.rRule)||{},O=function(e){if(e)switch(e.freq){case s.RRULE_REPEAT_TYPES.DAILY:return Xn;case s.RRULE_REPEAT_TYPES.WEEKLY:return Jn;case s.RRULE_REPEAT_TYPES.MONTHLY:return ea;case s.RRULE_REPEAT_TYPES.YEARLY:return na}return function(){return null}}(T),R=s.getFrequencyString(T.freq),N=y.rRule,w=y.startDate,S=r.useCallback((function(e){return s.handleChangeFrequency(e,N,w,h)}),[N,w,h]),A=r.useMemo((function(){return s.getAvailableRecurrenceOptions(f)}),[f]);return r.createElement("div",te({className:p((t={},ee(t,d.root,!0),ee(t,d.visible,E),ee(t,d.invisible,!E),ee(t,"className",m),t))},b),r.createElement(o,{text:f("repeatLabel"),type:s.TITLE,className:d.repeatLabel}),r.createElement(l,{onValueChange:S,availableOptions:A,value:R,type:s.OUTLINED_SELECT,className:d.select,readOnly:g}),r.createElement(O,{textEditorComponent:a,labelComponent:o,getMessage:f,readOnly:g,radioGroupComponent:n,appointmentData:y,onFieldChange:h,selectComponent:l,weeklyRecurrenceSelectorComponent:c,formatDate:v,firstDayOfWeek:D}),r.createElement(o,{text:f("endRepeatLabel"),className:d.endRepeatLabel}),r.createElement(n,{className:d.radioGroup,type:s.END_REPEAT_RADIO_GROUP,readOnly:g,getMessage:f,textEditorComponent:a,labelComponent:o,dateEditorComponent:i,appointmentData:y,onFieldChange:h,selectComponent:l,formatDate:v,locale:C,firstDayOfWeek:D}),u)};"production"!==a.env.NODE_ENV&&(aa.propTypes={locale:l.oneOfType([l.string,l.arrayOf(l.string)]),labelComponent:l.oneOfType([l.func,l.object]).isRequired,radioGroupComponent:l.oneOfType([l.func,l.object]).isRequired,textEditorComponent:l.oneOfType([l.func,l.object]).isRequired,dateEditorComponent:l.oneOfType([l.func,l.object]).isRequired,selectComponent:l.oneOfType([l.func,l.object]).isRequired,weeklyRecurrenceSelectorComponent:l.oneOfType([l.func,l.object]).isRequired,onFieldChange:l.func,children:l.node,className:l.string,classes:l.object.isRequired,getMessage:l.func.isRequired,readOnly:l.bool,appointmentData:l.shape({title:l.string,startDate:l.instanceOf(Date),endDate:l.instanceOf(Date),rRule:l.string,notes:l.string,additionalInformation:l.string,allDay:l.bool}).isRequired,formatDate:l.func.isRequired,visible:l.bool.isRequired,firstDayOfWeek:l.number.isRequired}),aa.defaultProps={locale:"en-US",onFieldChange:function(){},className:void 0,readOnly:!1,children:null};var oa=u.withStyles((function(e){var t,n=e.spacing;return{root:ee({padding:0,paddingTop:n(3),overflow:"hidden",width:0,transition:"all ".concat(400,"ms cubic-bezier(0, 0, 0.2, 1)"),boxSizing:"border-box",maxWidth:0,opacity:0},"".concat(Ee),{minWidth:"100%",maxHeight:0}),visible:(t={maxWidth:"500px",width:"500px",padding:n(3),paddingRight:n(4),paddingLeft:n(1),opacity:1},ee(t,"".concat(Ee),{width:"100%",maxWidth:"700px",paddingRight:n(2),paddingLeft:n(2),maxHeight:1e3}),ee(t,"@media (min-width: 700px) and (max-width: 850px)",{width:"300px"}),ee(t,"@media (min-width: 850px) and (max-width: 1000px)",{width:"370px"}),ee(t,"@media (min-width: 1000px) and (max-width: 1150px)",{width:"440px"}),t),invisible:{maxHeight:0,"@media (min-width: 700px)":{maxHeight:"500px"}},label:{width:"8em"},repeatLabel:{marginBottom:n(.375)},radioGroup:{marginTop:n(.5)},endRepeatLabel:{marginTop:n(2)},select:{height:"3.8em"}}}))(aa,{name:"RecurrenceLayout"}),ra=function(e){var t,n=e.classes,a=e.getMessage,o=e.labelComponent,i=e.textEditorComponent,l=e.dateEditorComponent,c=e.onFieldChange,u=e.appointmentData,p=e.locale,d=e.readOnly,m=ie(e,["classes","getMessage","labelComponent","textEditorComponent","dateEditorComponent","onFieldChange","appointmentData","locale","readOnly"]),f=ue(r.useState(1),2),g=f[0],h=f[1],y=ue(r.useState(u.endDate),2),v=y[0],C=y[1],E=u.rRule,D=r.useMemo((function(){return s.getRecurrenceOptions(E)||{}}),[E]),b=r.useCallback((function(e){return s.checkIsNaturalNumber(e)&&c({rRule:s.changeRecurrenceOptions(ae({},D,{count:e}))})}),[D,c]),T=r.useCallback((function(e){s.isDateValid(e)&&c({rRule:s.changeRecurrenceOptions(ae({},D,{until:e}))})}),[D,c]),O=r.useMemo((function(){return{endAdornment:r.createElement(z,{position:"end"},a("occurrencesLabel"))}}),[]),R=D.count||g,N=D.until||v;t=D.count?"endAfter":D.until?"endBy":"never";return r.createElement(Y,te({onChange:function(e){var t;switch(e.target.value){case"endAfter":C(D.until||v),t={count:g,until:void 0};break;case"endBy":h(D.count||g),t={count:void 0,until:v};break;case"never":C(D.until||v),h(D.count||g),t={count:void 0,until:void 0}}c({rRule:s.changeRecurrenceOptions(ae({},D,{},t))})},value:t},m),r.createElement(H,{value:"never",control:r.createElement(F,{color:"primary"}),label:a("never"),classes:{label:n.radioLabel},disabled:d}),r.createElement(H,{className:n.formControl,value:"endAfter",classes:{label:n.controlLabel},control:r.createElement(F,{color:"primary"}),disabled:d,label:r.createElement(A,{container:!0,direction:"row",justify:"flex-start",alignItems:"center"},r.createElement(o,{className:n.label,text:a("onLabel")}),r.createElement(i,{readOnly:d||"endAfter"!==t,className:n.textEditor,value:R,type:s.NUMBER_EDITOR,onValueChange:b,InputProps:O}))}),r.createElement(H,{className:n.formControl,classes:{label:n.controlLabel},value:"endBy",disabled:d,control:r.createElement(F,{color:"primary"}),label:r.createElement(A,{container:!0,direction:"row",justify:"flex-start",alignItems:"center"},r.createElement(o,{className:n.label,text:a("afterLabel")}),r.createElement(l,{className:n.dateEditor,readOnly:d||"endBy"!==t,value:N,onValueChange:T,allowKeyboardControl:!1,locale:p,excludeTime:u.allDay}))}))};"production"!==a.env.NODE_ENV&&(ra.propTypes={labelComponent:l.oneOfType([l.func,l.object]).isRequired,textEditorComponent:l.oneOfType([l.func,l.object]).isRequired,dateEditorComponent:l.oneOfType([l.func,l.object]).isRequired,locale:l.oneOfType([l.string,l.arrayOf(l.string)]).isRequired,classes:l.object.isRequired,getMessage:l.func,onFieldChange:l.func,appointmentData:l.shape({title:l.string,startDate:l.instanceOf(Date),endDate:l.instanceOf(Date),rRule:l.string,notes:l.string,additionalInformation:l.string,allDay:l.bool}).isRequired,readOnly:l.bool}),ra.defaultProps={onFieldChange:function(){},getMessage:function(){},readOnly:!1};var ia=u.withStyles((function(e){var t=e.spacing,n=e.typography;return{textEditor:{width:"calc(100% - 4.5em)"},label:{width:"4.5em"},input:{paddingBottom:t(2.75)},radioLabel:{fontSize:n.fontSize+1},dateEditor:{width:"calc(100% - 4.5em)"},formControl:{marginRight:0},controlLabel:{width:"100%"}}}))(ra,{name:"EndRepeatEditor"}),la=function(e){var t=e.classes,n=e.getMessage,a=e.labelComponent,o=e.textEditorComponent,l=e.selectComponent,c=e.readOnly,u=e.appointmentData,p=e.formatDate,d=e.onFieldChange,m=e.firstDayOfWeek,f=ie(e,["classes","getMessage","labelComponent","textEditorComponent","selectComponent","readOnly","appointmentData","formatDate","onFieldChange","firstDayOfWeek"]),g=ue(r.useState(u.startDate.getDate()),2),h=g[0],y=g[1],v=ue(r.useState(Math.trunc((u.startDate.getDate()-1)/7)),2),C=v[0],E=v[1],D=ue(r.useState(u.startDate.getDay()),2),b=D[0],T=D[1],O=u.rRule,R=i.useMemo((function(){return s.getRecurrenceOptions(O)||{}}),[O]),N=i.useCallback((function(e){return d({rRule:s.handleStartDateChange(e,R)})}),[R]),w=s.getRadioGroupDisplayData(R,b,C,h,"onDayNumber","onDayOfWeek"),S=w.dayOfWeek,x=w.weekNumber,I=w.dayNumberTextField,P=w.radioGroupValue,L=i.useCallback((function(e){return d({rRule:s.handleWeekNumberChange(e,R)})}),[R]),_=i.useMemo((function(){return s.getWeekNumberLabels(n)}),[n]),k=i.useCallback((function(e){return d({rRule:s.changeRecurrenceOptions(ae({},R,{byweekday:e>0?e-1:6}))})}),[R]),M=i.useMemo((function(){return s.getDaysOfWeek(p,m)}),[p,m]),B=c||"onDayNumber"!==P,V=c||"onDayOfWeek"!==P;return i.createElement(Y,te({onChange:function(e){switch(e.target.value){case"onDayNumber":E(x),T(S),d({rRule:s.changeRecurrenceOptions(ae({},R,{bymonthday:h,byweekday:void 0}))});break;case"onDayOfWeek":y(R.bymonthday||h),d({rRule:s.handleToDayOfWeekChange(C,b,R)})}},value:P},f),i.createElement(H,{className:t.formControl,value:"onDayNumber",control:i.createElement(F,{color:"primary"}),disabled:c,label:i.createElement(A,{container:!0,direction:"row",justify:"flex-start",alignItems:"center",className:t.grid},i.createElement(a,{text:n("onLabel"),className:t.label}),i.createElement(o,{readOnly:B,value:I,className:t.textEditor,type:s.NUMBER_EDITOR,onValueChange:N}),i.createElement(a,{text:n("ofEveryMonthLabel"),className:t.longLabel}))}),i.createElement(H,{value:"onDayOfWeek",className:t.formControl,classes:{label:t.controlLabel},control:i.createElement(F,{color:"primary"}),disabled:c,label:i.createElement(A,{container:!0,direction:"row",justify:"flex-start",alignItems:"center",className:t.grid},i.createElement(a,{text:n("theLabel"),className:t.label}),i.createElement(l,{readOnly:V,onValueChange:L,value:x,availableOptions:_,className:t.select}),i.createElement(l,{readOnly:V,onValueChange:k,value:S,availableOptions:M,className:t.longSelect}))}))};"production"!==a.env.NODE_ENV&&(la.propTypes={classes:l.object.isRequired,getMessage:l.func,onFieldChange:l.func,labelComponent:l.oneOfType([l.func,l.object]).isRequired,textEditorComponent:l.oneOfType([l.func,l.object]).isRequired,selectComponent:l.oneOfType([l.func,l.object]).isRequired,appointmentData:l.shape({title:l.string,startDate:l.instanceOf(Date),endDate:l.instanceOf(Date),rRule:l.string,notes:l.string,additionalInformation:l.string,allDay:l.bool}).isRequired,readOnly:l.bool,formatDate:l.func.isRequired,firstDayOfWeek:l.number.isRequired}),la.defaultProps={getMessage:function(){},onFieldChange:function(){},readOnly:!1};var ca=u.withStyles((function(e){var t=e.spacing;return{textEditor:{width:"calc((100% - 5.5em) * 3 / 7)",maxWidth:"12em",marginRight:"1em"},input:{paddingBottom:t(2.75)},select:{width:"calc((100% - 5.5em) * 3 / 7)",maxWidth:"8em"},longSelect:{width:"calc((100% - 5.5em) * 4 / 7)",minWidth:"calc(100% - 13.5em)",marginLeft:"1em"},label:{width:"4.5em"},longLabel:{width:"calc((100% - 5.5em) * 4 / 7)",minWidth:"calc(100% - 14em)"},grid:{marginTop:t(1),marginBottom:t(1)},formControl:{marginRight:0},controlLabel:{width:"100%"}}}))(la,{name:"MonthlyEditor"}),ua=i.memo((function(e){var t=e.classes,n=e.getMessage,a=e.labelComponent,o=e.textEditorComponent,r=e.selectComponent,l=e.readOnly,c=e.month,u=e.changeMonth,d=e.months,m=e.dayNumber,f=e.changeByMonthDay,g=e.className,h=ie(e,["classes","getMessage","labelComponent","textEditorComponent","selectComponent","readOnly","month","changeMonth","months","dayNumber","changeByMonthDay","className"]);return i.createElement(H,te({value:"onDayAndMonth",className:p(t.formControl,g),classes:{label:t.controlLabel},control:i.createElement(F,{color:"primary"}),disabled:l},h,{label:i.createElement(A,{container:!0,direction:"row",justify:"flex-start",alignItems:"center"},i.createElement(a,{text:n("everyLabel"),className:t.label}),i.createElement(r,{className:t.select,value:c,onValueChange:u,readOnly:l,availableOptions:d}),i.createElement(o,{className:t.textEditor,readOnly:l,value:m,type:s.NUMBER_EDITOR,onValueChange:f}))}))}));ua.propTypes={classes:l.object.isRequired,getMessage:l.func,labelComponent:l.oneOfType([l.func,l.object]).isRequired,textEditorComponent:l.oneOfType([l.func,l.object]).isRequired,selectComponent:l.oneOfType([l.func,l.object]).isRequired,readOnly:l.bool,month:l.number.isRequired,changeMonth:l.func.isRequired,months:l.arrayOf(l.shape({id:l.number.isRequired,text:l.string.isRequired})).isRequired,dayNumber:l.number.isRequired,changeByMonthDay:l.func.isRequired,className:l.string},ua.defaultProps={getMessage:function(){},readOnly:!1,className:void 0};var sa=u.withStyles((function(e){var t=e.spacing;return{textEditor:{width:"calc((100% - 5.5em) * 4 / 7)",minWidth:"calc(100% - 13.5em)",marginLeft:"1em"},label:{width:"4.5em"},select:{width:"calc((100% - 5.5em) * 3 / 7)",maxWidth:"8em"},formControl:{marginRight:0,marginTop:t(1),marginBottom:t(1)},controlLabel:{width:"100%"}}}))(ua,{name:"ChangeMonthEditor"}),pa=i.memo((function(e){var t=e.classes,n=e.getMessage,a=e.labelComponent,o=e.selectComponent,r=e.readOnly,l=e.className,c=e.weekNumber,u=e.weekNumbers,s=e.changeWeekNumber,d=e.month,m=e.months,f=e.changeMonth,g=e.dayOfWeek,h=e.daysOfWeek,y=e.changeDayOfWeek,v=ie(e,["classes","getMessage","labelComponent","selectComponent","readOnly","className","weekNumber","weekNumbers","changeWeekNumber","month","months","changeMonth","dayOfWeek","daysOfWeek","changeDayOfWeek"]);return i.createElement(H,te({value:"onDayOfWeek",className:p(t.formControlLabel,t.formControl,l),classes:{label:t.controlLabel},control:i.createElement(F,{color:"primary",className:t.radioButton}),disabled:r},v,{label:i.createElement("div",null,i.createElement(A,{container:!0,direction:"row",justify:"flex-start",alignItems:"center"},i.createElement(a,{className:t.label,text:n("theLabel")}),i.createElement(o,{className:t.select,value:c,onValueChange:s,readOnly:r,availableOptions:u}),i.createElement(o,{className:t.longSelect,value:g,onValueChange:y,readOnly:r,availableOptions:h})),i.createElement(o,{className:t.doubleSelect,value:d,onValueChange:f,readOnly:r,availableOptions:m}))}))}));pa.propTypes={classes:l.object.isRequired,getMessage:l.func,labelComponent:l.oneOfType([l.func,l.object]).isRequired,selectComponent:l.oneOfType([l.func,l.object]).isRequired,readOnly:l.bool,month:l.number.isRequired,changeMonth:l.func.isRequired,months:l.arrayOf(l.shape({id:l.number.isRequired,text:l.string.isRequired})).isRequired,weekNumber:l.number.isRequired,changeWeekNumber:l.func.isRequired,weekNumbers:l.arrayOf(l.shape({id:l.number.isRequired,text:l.string.isRequired})).isRequired,dayOfWeek:l.number.isRequired,changeDayOfWeek:l.func.isRequired,daysOfWeek:l.arrayOf(l.shape({id:l.number.isRequired,text:l.string.isRequired})).isRequired,className:l.string},pa.defaultProps={getMessage:function(){},readOnly:!1,className:void 0};var da=u.withStyles((function(e){var t=e.spacing;return{label:{width:"4.5em"},select:{width:"calc((100% - 5.5em) * 3 / 7)",maxWidth:"8em"},longSelect:{width:"calc((100% - 5.5em) * 4 / 7)",minWidth:"calc(100% - 13.5em)",marginLeft:"1em"},formControlLabel:{alignItems:"flex-start"},formControl:{marginRight:0,marginTop:t(1),marginBottom:t(1)},doubleSelect:{marginLeft:"4.5em",width:"calc(100% - 4.5em)",marginTop:t(1)},radioButton:{marginTop:t(.75)},controlLabel:{width:"100%"}}}))(pa,{name:"ChangeWeekNumberEditor"}),ma=function(e){var t=e.getMessage,n=e.labelComponent,a=e.textEditorComponent,o=e.selectComponent,l=e.readOnly,c=e.appointmentData,u=e.formatDate,p=e.onFieldChange,d=e.firstDayOfWeek,m=ie(e,["getMessage","labelComponent","textEditorComponent","selectComponent","readOnly","appointmentData","formatDate","onFieldChange","firstDayOfWeek"]),f=ue(r.useState(c.startDate.getDate()),2),g=f[0],h=f[1],y=ue(r.useState(Math.trunc((c.startDate.getDate()-1)/7)),2),v=y[0],C=y[1],E=ue(r.useState(c.startDate.getDay()),2),D=E[0],b=E[1],T=c.rRule,O=i.useMemo((function(){return s.getRecurrenceOptions(T)||{}}),[T]),R=i.useCallback((function(e){return p({rRule:s.handleStartDateChange(e,O)})}),[O]),N=s.getRadioGroupDisplayData(O,D,v,g,"onDayAndMonth","onDayOfWeek"),w=N.dayOfWeek,S=N.weekNumber,A=N.dayNumberTextField,x=N.radioGroupValue,I=function(e,t){return e.bymonth?e.bymonth:t.startDate.getMonth()+1}(O,c),P=i.useCallback((function(e){return p({rRule:s.changeRecurrenceOptions(ae({},O,{bymonth:e}))})}),[O]),L=i.useMemo((function(){return s.getMonths(u)}),[u]),_=i.useMemo((function(){return s.getMonthsWithOf(t,u)}),[t,u]),k=i.useCallback((function(e){return p({rRule:s.handleWeekNumberChange(e,O)})}),[O]),M=i.useMemo((function(){return s.getWeekNumberLabels(t)}),[t]),B=i.useCallback((function(e){return p({rRule:s.changeRecurrenceOptions(ae({},O,{byweekday:e>0?e-1:6}))})}),[O]),V=i.useMemo((function(){return s.getDaysOfWeek(u,d)}),[u,d]),q=l||"onDayAndMonth"!==x,G=l||"onDayOfWeek"!==x;return i.createElement(Y,te({onChange:function(e){switch(e.target.value){case"onDayAndMonth":C(S),b(w),p({rRule:s.changeRecurrenceOptions(ae({},O,{bymonthday:g,byweekday:void 0}))});break;case"onDayOfWeek":h(O.bymonthday||g),p({rRule:s.handleToDayOfWeekChange(v,D,O)})}},value:x},m),i.createElement(sa,{getMessage:t,labelComponent:n,textEditorComponent:a,selectComponent:o,readOnly:q,month:I,changeMonth:P,months:L,dayNumber:A,changeByMonthDay:R}),i.createElement(da,{getMessage:t,labelComponent:n,selectComponent:o,readOnly:G,month:I,changeMonth:P,months:_,weekNumber:S,weekNumbers:M,changeWeekNumber:k,dayOfWeek:w,daysOfWeek:V,changeDayOfWeek:B}))};"production"!==a.env.NODE_ENV&&(ma.propTypes={getMessage:l.func,onFieldChange:l.func,labelComponent:l.oneOfType([l.func,l.object]).isRequired,textEditorComponent:l.oneOfType([l.func,l.object]).isRequired,selectComponent:l.oneOfType([l.func,l.object]).isRequired,appointmentData:l.shape({title:l.string,startDate:l.instanceOf(Date),endDate:l.instanceOf(Date),rRule:l.string,notes:l.string,additionalInformation:l.string,allDay:l.bool}).isRequired,formatDate:l.func.isRequired,readOnly:l.bool,firstDayOfWeek:l.number.isRequired}),ma.defaultProps={onFieldChange:function(){},getMessage:function(){},readOnly:!1};var fa=function(e){var t=e.dateEditorComponent,n=e.textEditorComponent,a=e.selectComponent,o=e.labelComponent,i=e.getMessage,l=e.readOnly,c=e.appointmentData,u=e.formatDate,p=e.onFieldChange,d=e.type,m=e.locale,f=e.firstDayOfWeek,g=ie(e,["dateEditorComponent","textEditorComponent","selectComponent","labelComponent","getMessage","readOnly","appointmentData","formatDate","onFieldChange","type","locale","firstDayOfWeek"]),h={readOnly:l,getMessage:i,textEditorComponent:n,labelComponent:o,appointmentData:c,onFieldChange:p};switch(d){case s.END_REPEAT_RADIO_GROUP:return r.createElement(ia,te({dateEditorComponent:t,locale:m},h,g));case s.MONTHLY_RADIO_GROUP:return r.createElement(ca,te({selectComponent:a,formatDate:u,firstDayOfWeek:f},h,g));case s.YEARLY_RADIO_GROUP:return r.createElement(ma,te({selectComponent:a,formatDate:u,firstDayOfWeek:f},h,g));default:return function(){return null}}};"production"!==a.env.NODE_ENV&&(fa.propTypes={getMessage:l.func.isRequired,labelComponent:l.oneOfType([l.func,l.object]).isRequired,textEditorComponent:l.oneOfType([l.func,l.object]).isRequired,dateEditorComponent:l.oneOfType([l.func,l.object]).isRequired,selectComponent:l.oneOfType([l.func,l.object]).isRequired,locale:l.oneOfType([l.string,l.arrayOf(l.string)]),readOnly:l.bool,type:l.string.isRequired,appointmentData:l.shape({title:l.string,startDate:l.instanceOf(Date),endDate:l.instanceOf(Date),rRule:l.string,notes:l.string,additionalInformation:l.string,allDay:l.bool}).isRequired,onFieldChange:l.func.isRequired,formatDate:l.func.isRequired,firstDayOfWeek:l.number.isRequired}),fa.defaultProps={locale:void 0,readOnly:!1};var ga=function(e,t){return e.byweekday&&e.byweekday.indexOf(t)>-1},ha=i.memo((function(e){var t=e.formatDate,n=e.rRule,a=e.readOnly,o=e.classes,r=e.className,l=e.onValueChange,c=e.firstDayOfWeek,u=ie(e,["formatDate","rRule","readOnly","classes","className","onValueChange","firstDayOfWeek"]),d=s.getRecurrenceOptions(n),m=s.getDaysOfWeekArray(c),f=s.getDaysOfWeekDates(c);return i.createElement(U,te({variant:"outlined",size:"small",disabled:a,className:p(o.buttonGroup,r),fullWidth:!0},u),m.map((function(e,n){var a;return i.createElement(b,{className:p((a={},ee(a,o.button,!0),ee(a,o.selectedButton,ga(d,e)),a)),key:e,onClick:function(){return l({rRule:s.changeRecurrenceOptions(s.handleWeekDaysChange(d,e,l))})}},t(f[n],s.WEEK_DAY_OPTIONS))})))}));"production"!==a.env.NODE_ENV&&(ha.propTypes={formatDate:l.func.isRequired,classes:l.object.isRequired,rRule:l.string.isRequired,onValueChange:l.func,readOnly:l.bool,className:l.string,firstDayOfWeek:l.number.isRequired}),ha.defaultProps={onValueChange:function(){},readOnly:!1,className:void 0};var ya=u.withStyles((function(e){var t=e.palette,n=e.spacing;return{selectedButton:{backgroundColor:we(400,t.primary),"&:hover":{backgroundColor:we(500,t.primary)},border:"1px solid ".concat(we(400,t.primary),"!important"),borderLeft:"1px solid ".concat(we(50,t.primary),"!important"),"&:first-child":{borderLeft:"1px solid ".concat(we(400,t.primary),"!important")},color:we(50,t.primary)},button:{minWidth:n(3)},buttonGroup:{marginBottom:n(2)}}}))(ha,{name:"WeeklyRecurrenceSelector"}),va=r.forwardRef((function(e,t){var n=e.children,a=e.classes,o=e.className,i=ie(e,["children","classes","className"]);return r.createElement("div",te({ref:t,className:p(a.container,o)},i),n)}));va.propTypes={classes:l.object.isRequired,children:l.node,className:l.string},va.defaultProps={children:null,className:void 0};var Ca=u.withStyles({container:{position:"absolute",width:"100%",height:"100%"}},{name:"OverlayContainer"})(va),Ea=function(e,t){return e.find((function(e){return e.id===t}))},Da=u.makeStyles((function(e){var t=e.spacing;return{select:{padding:t(1)},selectBox:{minHeight:t(6.5),width:"100%"},chips:{display:"flex",flexWrap:"wrap"},chip:{color:"white",margin:2},resourceCircle:{height:t(2),width:t(2),borderRadius:"50%",marginRight:t(1)},itemContainer:{display:"flex",padding:t(.75)},circleContainer:{display:"flex",alignItems:"center"}}})),ba=r.memo((function(e){var t=e.readOnly,n=e.resource,a=e.appointmentResources,o=e.onResourceChange,i=e.className,l=ie(e,["readOnly","resource","appointmentResources","onResourceChange","className"]),c=Da(),u=a.reduce((function(e,t){return t.fieldName===n.fieldName?[].concat(se(e),[t.id]):e}),[]);return r.createElement(k,te({disabled:t,variant:"outlined",value:u,multiple:n.allowMultiple,onChange:function(e){return t=e.target.value,void o(ee({},n.fieldName,t));var t},className:p(c.selectBox,i),classes:{select:c.select},renderValue:function(e){return n.allowMultiple?r.createElement("div",{className:c.chips},e.map((function(e){var t=Ea(n.instances,e);return r.createElement(K,{key:e,label:t.text,className:c.chip,style:{backgroundColor:Ae(300,t.color)}})}))):r.createElement("div",{className:c.itemContainer},r.createElement("div",{className:c.circleContainer},r.createElement("div",{className:c.resourceCircle,style:{backgroundColor:Ae(400,Ea(n.instances,e[0]).color)}})),Ea(n.instances,e[0]).text)}},l),n.instances.map((function(e){return r.createElement(M,{key:e.id,value:e.id},r.createElement("div",{className:c.resourceCircle,style:{backgroundColor:Ae(400,e.color)}}),e.text)})))}));"production"!==a.env.NODE_ENV&&(ba.propTypes={readOnly:l.bool,appointmentResources:l.array,onResourceChange:l.func,resource:l.object,className:l.string}),ba.defaultProps={className:void 0,readOnly:!1,appointmentResources:[],onResourceChange:function(){},resource:{}};var Ta=d.withComponents({Overlay:Vn,Layout:Tn,TextEditor:Rn,BasicLayout:wn,CommandLayout:An,CommandButton:Mn,DateEditor:Gn,Label:jn,BooleanEditor:Yn,Select:Un,RecurrenceLayout:oa,RadioGroup:fa,WeeklyRecurrenceSelector:ya,Container:Ca,ResourceEditor:ba})(c.AppointmentForm),Oa=u.makeStyles((function(e){return{appointment:{boxShadow:e.shadows[3],cursor:"move",overflow:"hidden",backgroundColor:function(t){return Ae(600,Se(t),e.palette.primary)},border:0},shadedAppointment:{backgroundColor:function(t){return Ae(400,Se(t),e.palette.primary)}}}})),Ra=u.makeStyles({appointment:{opacity:.5}}),Na=function(e){var t,n=e.className,a=e.resources,o=e.isShaded,i=ie(e,["className","resources","isShaded"]),l=Oa(a);return r.createElement(Sa,te({className:p((t={},ee(t,l.appointment,!0),ee(t,l.shadedAppointment,o),t),n),resources:a},i))};"production"!==a.env.NODE_ENV&&(Na.propTypes={resources:l.array,className:l.string,isShaded:l.bool}),Na.defaultProps={className:void 0,resources:[],isShaded:!1};var wa=function(e){var t=e.className,n=ie(e,["className"]),a=Ra();return r.createElement(Sa,te({className:p(a.appointment,t)},n))};"production"!==a.env.NODE_ENV&&(wa.propTypes={className:l.string}),wa.defaultProps={className:void 0};var Sa=function(e){var t=e.className,n=e.data,a=e.formatDate,o=e.type,i=e.fromPrev,l=e.toNext,c=e.durationType,u=e.isShaded,p=ie(e,["className","data","formatDate","type","fromPrev","toNext","durationType","isShaded"]);return r.createElement(yt,te({className:t,type:o,isShaded:u},p),i&&r.createElement(bt,{position:s.POSITION_START,appointmentType:o}),r.createElement(gt,{data:n,type:o,recurringIconComponent:C,formatDate:a,durationType:c}),l&&r.createElement(bt,{position:s.POSITION_END,appointmentType:o}))};"production"!==a.env.NODE_ENV&&(Sa.propTypes={data:l.object.isRequired,fromPrev:l.bool.isRequired,toNext:l.bool.isRequired,formatDate:l.func.isRequired,durationType:l.string,className:l.string,type:l.string,isShaded:l.bool}),Sa.defaultProps={durationType:void 0,className:void 0,type:void 0,isShaded:!1};var Aa=u.withStyles({container:{position:"absolute",left:0,top:0,height:"100%",width:"100%",cursor:"move"}},{name:"DragDropContainer"})(pe),xa=r.memo((function(e){var t,n=e.classes,a=e.className,o=e.position,i=e.appointmentType,l=ie(e,["classes","className","position","appointmentType"]),c=i===s.VERTICAL_TYPE,u=o===s.POSITION_START;return r.createElement("div",te({className:p((t={},ee(t,n.resize,!0),ee(t,n.verticalStart,c&&u),ee(t,n.verticalEnd,c&&!u),ee(t,n.horizontalStart,!c&&u),ee(t,n.horizontalEnd,!c&&!u),t),a)},l))}));"production"!==a.env.NODE_ENV&&(xa.propTypes={classes:l.object.isRequired,position:l.oneOf([s.POSITION_START,s.POSITION_END]).isRequired,appointmentType:l.oneOf([s.HORIZONTAL_TYPE,s.VERTICAL_TYPE]).isRequired,className:l.string}),xa.defaultProps={className:void 0};var Ia=u.withStyles((function(e){var t=e.spacing,n=function(e){return{width:"100%",height:e(1),cursor:"ns-resize"}}(t),a=function(e){return{width:e(1),height:"100%",cursor:"ew-resize"}}(t);return{resize:{position:"absolute",zIndex:100},verticalStart:ae({},n,{top:0}),verticalEnd:ae({},n,{bottom:0}),horizontalStart:ae({},a,{left:0}),horizontalEnd:ae({},a,{right:0})}}),{name:"Resize"})(xa),Pa=d.withComponents({DraftAppointment:Na,SourceAppointment:wa,Container:Aa,Resize:Ia})(c.DragDropProvider),La=function(e){var t=e.setCurrentDate,n=e.classes,a=e.getMessage,o=e.className,i=ie(e,["setCurrentDate","classes","getMessage","className"]);return r.createElement(b,te({className:p(n.button,o),variant:"outlined",onClick:function(){t(new Date)}},i),a("today"))};"production"!==a.env.NODE_ENV&&(La.propTypes={setCurrentDate:l.func.isRequired,classes:l.object.isRequired,className:l.string,getMessage:l.func.isRequired}),La.defaultProps={className:void 0};var _a=u.withStyles((function(e){var t=e.spacing;return{button:ee({padding:t(.8,2),marginLeft:t(.5),"&:first-child":{marginLeft:0}},"".concat(Ee),{fontSize:"0.75rem"})}}))(La,{name:"TodayButton"}),ka=d.withComponents({Button:_a})(c.TodayButton),Ma=function(e){var t=e.children,n=e.visible,a=e.onHide,o=e.target,i=e.classes,l=e.className,c=ie(e,["children","visible","onHide","target","classes","className"]);return r.createElement(Z,te({open:n,onClose:a,className:p(i.modal,i.root,l),BackdropProps:{className:i.modal},PaperProps:{className:i.paper},container:o.current,onBackdropClick:a},c),t)};"production"!==a.env.NODE_ENV&&(Ma.propTypes={children:l.node.isRequired,classes:l.object.isRequired,onHide:l.func.isRequired,target:l.object.isRequired,visible:l.bool,className:l.string}),Ma.defaultProps={className:void 0,visible:!1};var Ba=u.withStyles({modal:{position:"absolute!important"},paper:{zIndex:"1302!important"},root:{zIndex:"1301!important"}},{name:"Overlay"})(Ma),Va=r.memo((function(e){var t=e.buttonComponent,n=e.handleClose,a=e.commit,o=e.availableOperations,i=e.getMessage,l=e.isDeleting,c=e.classes,u=ie(e,["buttonComponent","handleClose","commit","availableOperations","getMessage","isDeleting","classes"]),s=ue(r.useState(o[0].value),2),p=s[0],d=s[1],m=r.useCallback((function(e){d(e.target.value)}));return r.createElement("div",u,r.createElement(J,{className:c.title,disableTypography:!0},i(l?"menuDeletingTitle":"menuEditingTitle")),r.createElement(Q,null,r.createElement(Y,{value:p,onChange:m},o.map((function(e){return r.createElement(H,{value:e.value,control:r.createElement(F,null),label:e.title,key:e.value,classes:{label:c.content}})})))),r.createElement(X,null,r.createElement(t,{onClick:n,title:i("cancelButton")}),r.createElement(t,{onClick:function(){a(p)},title:i("commitButton"),color:"primary"})))}));"production"!==a.env.NODE_ENV&&(Va.propTypes={buttonComponent:l.oneOfType([l.func,l.object]).isRequired,availableOperations:l.array.isRequired,handleClose:l.func,commit:l.func,getMessage:l.func,isDeleting:l.bool,classes:l.object.isRequired}),Va.defaultProps={handleClose:function(){},commit:function(){},getMessage:function(){},isDeleting:!1};var qa=u.withStyles((function(e){return ee({title:e.typography.h6,content:{fontSize:"1rem"}},"".concat(Ce),{title:{fontSize:"1.1rem"},content:{fontSize:"0.9rem"}})}),{name:"Layout"})(Va),Ga=function(e){var t=e.onClick,n=e.title,a=ie(e,["onClick","title"]);return r.createElement(b,te({onClick:t},a),n)};"production"!==a.env.NODE_ENV&&(Ga.propTypes={onClick:l.func.isRequired,title:l.string}),Ga.defaultProps={title:""};var Wa=d.withComponents({Layout:qa,Overlay:Ba,Button:Ga,Container:Ca})(c.EditRecurrenceMenu),ja=r.memo((function(e){var t=e.buttonComponent,n=e.handleCancel,a=e.handleConfirm,o=e.getMessage,i=e.isDeleting,l=(e.appointmentData,e.classes),c=ie(e,["buttonComponent","handleCancel","handleConfirm","getMessage","isDeleting","appointmentData","classes"]);return r.createElement("div",c,r.createElement(J,{className:l.title,disableTypography:!0},o(i?"confirmDeleteMessage":"confirmCancelMessage")),r.createElement(X,null,r.createElement(t,{onClick:n,title:o("cancelButton")}),r.createElement(t,{onClick:a,title:o(i?"deleteButton":"discardButton"),color:"primary"})))}));ja.propTypes={buttonComponent:l.oneOfType([l.func,l.object]).isRequired,handleCancel:l.func,handleConfirm:l.func,getMessage:l.func,isDeleting:l.bool,appointmentData:l.shape({title:l.string,startDate:l.instanceOf(Date),endDate:l.instanceOf(Date),rRule:l.string,notes:l.string,additionalInformation:l.string,allDay:l.bool}),classes:l.object.isRequired},ja.defaultProps={handleCancel:function(){},handleConfirm:function(){},getMessage:function(){},isDeleting:!1,appointmentData:{startDate:new Date,endDate:new Date}};var Ha=u.withStyles((function(e){return ee({title:ae({},e.typography.h6)},"".concat(Ce),{title:{fontSize:"1.1rem"}})}),{name:"Layout"})(ja),Ya=d.withComponents({Overlay:Ba,Layout:Ha,Container:Ca,Button:Ga})(c.ConfirmationDialog),Fa=u.makeStyles((function(e){return{line:{height:"2px",width:"100%",transform:"translate(0, -1px)"},circle:{width:e.spacing(1.5),height:e.spacing(1.5),borderRadius:"50%",transform:"translate(-50%, -50%)"},nowIndicator:{position:"absolute",left:0,top:function(e){return e.top},background:e.palette.secondary.main,zIndex:1}}})),za=function(e){var t=e.top,n=ie(e,["top"]),a=Fa({top:t});return r.createElement("div",n,r.createElement("div",{className:p(a.nowIndicator,a.circle)}),r.createElement("div",{className:p(a.nowIndicator,a.line)}))};"production"!==a.env.NODE_ENV&&(za.propTypes={top:l.string}),za.defaultProps={top:0};var Ua=d.withComponents({Indicator:za})(c.CurrentTimeIndicator),Ka=function(e){var t=e.data,n=e.mainResourceName,a=e.palette;return r.createElement(c.Resources,{data:t,mainResourceName:n,palette:a})};"production"!==a.env.NODE_ENV&&(Ka.propTypes={data:l.array,mainResourceName:l.string,palette:l.array}),Ka.defaultProps={data:[],mainResourceName:void 0,palette:ve};var Za=function(e){var t=e.rowComponent,n=e.cellComponent,a=e.groups,o=e.colSpan,i=e.cellStyle,l=e.showHeaderForEveryDate,c=ie(e,["rowComponent","cellComponent","groups","colSpan","cellStyle","showHeaderForEveryDate"]);return r.createElement(r.Fragment,null,a.map((function(e,u){var p=o/e.length;return r.createElement(t,te({key:a[u][0].text},c),!l&&e.map((function(e,t){return r.createElement(n,{group:e,colSpan:p,key:s.getCellKey(a,t,u),left:i.left,endOfGroup:!0,groupedByDate:!1})})),l&&s.getRowFromGroups(o,e,i,a,u).map((function(e){var t=e.group,a=e.colSpan,o=e.key,l=e.endOfGroup;return r.createElement(n,{group:t,colSpan:a,key:o,left:i.left,endOfGroup:l,groupedByDate:!0})})))})))};"production"!==a.env.NODE_ENV&&(Za.propTypes={rowComponent:l.oneOfType([l.func,l.object]).isRequired,cellComponent:l.oneOfType([l.func,l.object]).isRequired,groups:l.arrayOf(l.arrayOf(l.object)).isRequired,colSpan:l.number.isRequired,cellStyle:l.object.isRequired,showHeaderForEveryDate:l.bool}),Za.defaultProps={showHeaderForEveryDate:!1};var Xa=be[s.VIEW_TYPES.ALL_DAY_PANEL],Qa=function(e){var t=e.rowComponent,n=e.cellComponent,a=e.groups,o=e.rowSpan,i=e.viewType,l=e.classes,c=e.className,u=e.cellTextTopOffset,d=e.alignWithAllDayRow,m=ie(e,["rowComponent","cellComponent","groups","rowSpan","viewType","classes","className","cellTextTopOffset","alignWithAllDayRow"]),f=be[i];return r.createElement(h,te({className:p(l.layout,c)},m),r.createElement(y,null,s.getGroupsLastRow(a).map((function(e,i){return r.createElement(t,{key:i.toString()},s.getVerticalRowFromGroups(a,i,o,f,d,Xa).map((function(e){var t=e.group,a=e.rowSpan,o=e.key,i=e.height;return r.createElement(n,{group:t,rowSpan:a,height:i,left:0,colSpan:1,groupOrientation:s.VERTICAL_GROUP_ORIENTATION,topOffset:u,key:o})})))}))))};"production"!==a.env.NODE_ENV&&(Qa.propTypes={rowComponent:l.oneOfType([l.func,l.object]).isRequired,cellComponent:l.oneOfType([l.func,l.object]).isRequired,alignWithAllDayRow:l.bool,groups:l.arrayOf(l.arrayOf(l.object)).isRequired,rowSpan:l.number.isRequired,viewType:l.string.isRequired,cellTextTopOffset:l.number,className:l.string,classes:l.object.isRequired}),Qa.defaultProps={cellTextTopOffset:void 0,className:void 0,alignWithAllDayRow:!1};var Ja=u.withStyles({layout:{width:"auto","&:only-child":{width:"100%"}}},{name:"VerticalLayout"})(Qa),$a=u.makeStyles((function(e){return{cell:{userSelect:"none",padding:0,paddingTop:e.spacing(.5),boxSizing:"border-box",borderRight:Re(e),"&:last-child":{borderRight:"none"},height:function(t){var n=t.height;return n?e.spacing(n):void 0}},text:function(t){var n=t.textStyle,a=t.left;return ae({},e.typography.caption,{padding:e.spacing(1),color:e.palette.text.secondary,fontWeight:"bold",fontSize:"1rem",position:"sticky",display:"inline-block",left:"".concat(a,"px"),lineHeight:1.5,whiteSpace:"pre-wrap",overflow:"hidden",textOverflow:"ellipsis",boxSizing:"border-box"},n)},horizontalCell:{borderBottom:"none",borderTop:Re(e),"tr:first-child &":{borderTop:"none"}},verticalCell:function(t){var n,a=t.rowSpan,o=t.height;return ee(n={borderBottom:Re(e)},"tr:nth-last-child(".concat(a,") &"),{borderBottom:"none"}),ee(n,"verticalAlign","top"),ee(n,"paddingTop",0),ee(n,"width",e.spacing(12.5)),ee(n,"minWidth",e.spacing(12.5)),ee(n,"maxWidth",e.spacing(12.5)),ee(n,"maxHeight",o?e.spacing(o-2):void 0),n},groupedByDate:{borderRight:function(t){return t.endOfGroup?Re(e):Oe(e)},borderTop:Oe(e)},verticalCellText:{top:function(e){var t=e.topOffset;return"".concat(t,"px")},width:"100%"},textContainer:{height:"100%"}}})),eo=r.memo((function(e){var t,n,a=e.className,o=e.group,i=e.colSpan,l=e.rowSpan,c=e.left,u=e.endOfGroup,d=e.groupedByDate,m=e.children,f=e.height,g=e.groupOrientation,h=e.textStyle,y=e.topOffset,C=ie(e,["className","group","colSpan","rowSpan","left","endOfGroup","groupedByDate","children","height","groupOrientation","textStyle","topOffset"]),E=$a({left:c,endOfGroup:u,height:f/8,rowSpan:l,textStyle:h,topOffset:y});return r.createElement(v,te({className:p((t={},ee(t,E.cell,!0),ee(t,E.horizontalCell,g===s.HORIZONTAL_GROUP_ORIENTATION),ee(t,E.verticalCell,g===s.VERTICAL_GROUP_ORIENTATION),ee(t,E.groupedByDate,d&&g!==s.VERTICAL_GROUP_ORIENTATION),t),a),colSpan:i,rowSpan:l},C),r.createElement("div",{className:E.textContainer},r.createElement("div",{className:p((n={},ee(n,E.text,!0),ee(n,E.verticalCellText,g===s.VERTICAL_GROUP_ORIENTATION),n))},o.text,m)))}));"production"!==a.env.NODE_ENV&&(eo.propTypes={className:l.string,group:l.object.isRequired,colSpan:l.number.isRequired,rowSpan:l.number,left:l.number.isRequired,endOfGroup:l.bool,groupedByDate:l.bool,height:l.number,groupOrientation:l.oneOf([s.HORIZONTAL_GROUP_ORIENTATION,s.VERTICAL_GROUP_ORIENTATION]),textStyle:l.object,topOffset:l.number,children:l.node}),eo.defaultProps={className:void 0,endOfGroup:!0,rowSpan:1,height:48,groupOrientation:s.HORIZONTAL_GROUP_ORIENTATION,children:null,groupedByDate:!0,textStyle:{},topOffset:void 0};var to=d.withComponents({HorizontalLayout:Za,VerticalLayout:Ja,Cell:eo,Row:_e})(c.GroupingPanel);t.AllDayPanel=En,t.AppointmentForm=Ta,t.AppointmentTooltip=ln,t.Appointments=Ot,t.ConfirmationDialog=Ya,t.CurrentTimeIndicator=Ua,t.DateNavigator=Xt,t.DayView=at,t.DragDropProvider=Pa,t.EditRecurrenceMenu=Wa,t.GroupingPanel=to,t.MonthView=st,t.Resources=Ka,t.Scheduler=he,t.TodayButton=ka,t.Toolbar=At,t.ViewSwitcher=dn,t.WeekView=ot},c4160044f3a2da0d78ad:function(e,t,n){!function(e,t,n,a){"use strict";if("undefined"===typeof o)var o={env:{}};t=t&&t.hasOwnProperty("default")?t.default:t;var r=function(){return(r=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function i(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n}function l(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}var u,s=function(e,t){return 100*e/t},p=function(e,n){return e.map((function(e){return 0===e?7:e})).sort((function(e,t){return e-t})).reduce((function(e,a,o,r){return o&&a===r[o-1]+1?e[e.length-1][1].day(a):e.push(function(e,n){var a=t(n.day(e));return[a,t(a).hour(n.hour()).endOf("day")]}(a,n)),e}),[])},d=function(e,t){return e.isBetween(t[0],t[1],void 0,"[]")},m=function(e,n,a,o,r){void 0===o&&(o=[]),void 0===r&&(r=!1);var i=e.start,l=e.end,c=l.isAfter(n)&&i.isBefore(a),u=!!p(o,t(n)).find((function(e){return d(i,e)&&d(l,e)})),s=!r||t(l).diff(i,"hours")<24&&!e.allDay;return c&&!u&&s},f=function(e,n,a){void 0===a&&(a=[]);var o=t.locale();t.updateLocale("tmp-locale",{week:{dow:n,doy:1}});var r=t(e).startOf("week");return-1!==a.indexOf(n)&&a.slice().sort().forEach((function(e){e===r.day()&&r.add(1,"days")})),t.locale(o),r.toDate()},g=function(e,a,o,i,l){var c=[e];return e.rRule&&(c=function(e,a,o){var i=t(h(o)).toDate(),l=t(h(a)).toDate(),c=t(e.start).toDate(),u=r(r({},n.RRule.parseString(e.rRule)),{dtstart:t(h(c)).toDate()}),s=u.until?r(r({},u),{until:t(h(u.until)).toDate()}):u,p=y(e.exDate);p.rrule(new n.RRule(s));var d=p.between(l,i,!0).map(v);if(0===d.length)return[];var m=t(e.end).diff(e.start,"minutes");return d.map((function(n,a){return r(r({},e),{dataItem:r(r({},e.dataItem),{startDate:t(n).toDate(),endDate:t(n).add(m,"minutes").toDate(),parentData:e.dataItem}),start:t(n),end:t(n).add(m,"minutes"),key:e.key+"_rec_"+a})}))}(e,a,o)),c.filter((function(e){return m(e,a,o,i,l)}))},h=function(e){return Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes())},y=function(e){var a=new n.RRuleSet;return e&&e.split(",").map((function(e){var n=t(e).toDate();a.exdate(t(h(n)).toDate())})),a},v=function(e){return t.utc(e).format("YYYY-MM-DDTHH:mm")},C=function(e,t){return e+"_"+t.toDate().toString()},E="seconds",D={day:"numeric"},b={month:"short"},T={month:"long",year:"numeric"},O={day:"numeric",month:"short"},R={month:"short",year:"numeric"},N={month:"short",year:"2-digit"},w={day:"numeric",month:"long",year:"numeric"},S={day:"numeric",month:"short",year:"numeric"},A={day:"numeric",month:"short",year:"2-digit"},x={weekday:"long"},I={month:"long"},P={day:"numeric",month:"long"},L={},_={ALL:"all",CURRENT_AND_FOLLOWING:"currentAndFollowing",CURRENT:"current"},k=function(e){var n=t(e);return 0===n.hours()&&0===n.minutes()&&0===n.seconds()},M=function(e,t){return!e.groupingInfo||e.groupingInfo.every((function(e){return e.id===t[e.fieldName]}))},B=function(e){return t(e).subtract(1,"second").toDate()},V=function(e,n,a,o){void 0===o&&(o=[]);for(var r=[],i=t(void 0!==n?f(e,n,o):e),l=0;l<a;l+=1)-1===o.findIndex((function(e){return e===i.day()}))&&r.push(i.toDate()),i.add(1,"days");return r},q=function(e,n,a,o,r,i){for(var l=[],c=void 0!==n?f(e,n,i):e,u=t(c).startOf("day").add(a,"hour"),s=t(c).startOf("day").add(o,"hour");u.isBefore(s);){var p=u.toDate();u.add(r,"minutes"),l.push({start:p,end:u.toDate()})}var d=l.length-1;return k(l[d].end)&&(l[d].end=B(l[d].end)),l},G=function(e,t,n){return!!(null===t||void 0===t?void 0:t.getCellRects)&&n*e[0].length===t.getCellRects.length},W=function(e,t){var n=e.end.clone().diff(e.start,"minutes")/t;return 1===n?"middle":n>1?"long":"short"},j=function(e,t,n){var a=n.rectByDates,o=n.multiline,r=n.rectByDatesMeta,i=a(e,t,{multiline:o,cellElementsMeta:r.cellElementsMeta,viewCellsData:r.viewCellsData}),l=i.top,c=i.left,u=i.width,p=i.height,d=i.parentWidth;return{resources:e.resources,top:l+p/e.reduceValue*e.offset,height:p/e.reduceValue,left:s(c,d),width:s(u,d),dataItem:e.dataItem,fromPrev:e.fromPrev,toNext:e.toNext,type:"horizontal",key:e.key}},H=function(e,t,n){var a=n.rectByDates,o=n.multiline,r=n.rectByDatesMeta,i=r.viewCellsData,l=r.cellDuration,c=r.cellElementsMeta,u=a(e,t,{multiline:o,viewCellsData:i,cellDuration:l,excludedDays:r.excludedDays,cellElementsMeta:c}),p=u.top,d=u.left,m=u.width,f=u.height,g=u.parentWidth,h=e.offset,y=e.width,v=e.left,C=5*y/3+v<=1?5/3:1,E=C===5/3?C*y:y+.02;return E+v>1&&(E=1-v),{resources:e.resources,top:p,height:f,left:s(d+v*m,g),width:s(E*m,g),dataItem:e.dataItem,fromPrev:e.fromPrev,toNext:e.toNext,durationType:W(e,l),type:"vertical",offset:h,key:e.key}},Y=function(e,t,n){var a=n.rectByDates,o=n.multiline,r=n.rectByDatesMeta,i=r.viewCellsData,l=r.cellDuration,c=r.cellElementsMeta,u=a(e,t,{multiline:o,viewCellsData:i,cellDuration:l,excludedDays:r.excludedDays,cellElementsMeta:c,placeAppointmentsNextToEachOther:r.placeAppointmentsNextToEachOther}),p=u.top,d=u.left,m=u.width,f=u.height,g=u.parentWidth,h=m/e.reduceValue;return{resources:e.resources,top:p,height:f,left:s(d+h*e.offset,g),width:s(h,g),dataItem:e.dataItem,fromPrev:e.fromPrev,toNext:e.toNext,durationType:W(e,l),type:"vertical",key:e.key}},F=function(e){return e.slice().sort((function(e,t){return a=t,((n=e).start.isBefore(a.start,"day")?-1:n.start.isAfter(a.start,"day")?1:0)||function(e,t){return e.allDay&&!t.allDay?-1:!e.allDay&&t.allDay?1:0}(e,t)||function(e,t){return e.start.isBefore(t.start)?-1:e.start.isAfter(t.start)||e.end.isBefore(t.end)?1:e.end.isAfter(t.end)?-1:0}(e,t);var n,a}))},z=function(e,t){void 0===t&&(t=!1);for(var n,a,o=e.slice(),r=[],i=0;i<o.length;){r.push([]);var l=o[i],c=r[r.length-1],u=o[i+1],s=l.end;for(c.push(l),i+=1;u&&(s.isAfter(u.start)||t&&(n=s,a=u.start,n.isSameOrAfter(a,"day")&&!n.isSame(n.clone().startOf("day"))));)c.push(u),s.isBefore(u.end)&&(s=u.end),u=o[i+=1]}return r},U=function(e,t){return e.isBefore(t,"day")||(n=e).isSame(n.clone().startOf("day"))&&e.isSame(t,"day");var n},K=function(e,t){return void 0===t&&(t=!1),e.map((function(e){for(var n=0,a=1,o=e.map((function(e){return r({},e)})),i=o.length,l=0;l<i;l+=1){var c=o[l];if(void 0===c.offset){var u=c.end;c.offset=n;for(var s=l+1;s<i;s+=1)void 0===o[s].offset&&(!t&&u.isSameOrBefore(o[s].start)||t&&U(u,o[s].start))&&(u=o[s].end,o[s].offset=n);a<(n+=1)&&(a=n)}}return{items:o,reduceValue:a}}))},Z=function(e){return e.reduce((function(e,n){var a=n.items,o=n.reduceValue;return e.push.apply(e,c(a.map((function(e){var n=e.start,a=e.end,l=e.dataItem,c=e.offset,u=e.resources,s=e.key,p=i(e,["start","end","dataItem","offset","resources","key"]);return r({start:n,end:a,dataItem:l,offset:c,reduceValue:o,resources:u,fromPrev:t(n).diff(l.startDate,"minutes")>1,toNext:t(l.endDate).diff(a,"minutes")>1,key:s},p)})))),e}),[])},X=function(e,t,n){return n.isBetween(e,t,void 0,"[)")},Q=function(e,t){return e.map((function(e){var n,a,o=e.items;if(1===o.length)n=[{data:o[0],children:[],treeDepth:0,isDirectChild:!1,hasDirectChild:!1}],a=[0];else{var i=J(o,t);n=i.appointments,a=i.roots}return r(r({},e),{items:n,roots:a})}))},J=function(e,t){var n=e.map((function(e){return{data:e}})),a=n.reduce((function(e,a,o){return 0===a.data.offset?(o+1===n.length?(a.children=[],a.hasDirectChild=!1,a.treeDepth=0):a.treeDepth=ee(n,o,t,0),a.parent=void 0,a.isDirectChild=!1,c(e,[o])):e}),[]);return{appointments:n,roots:a}},$=function(e,t,n,a,o,r){var i=e[t];i.isDirectChild=o,i.parent=n;var l=r+1,c=i.data.end;if(t===e.length-1||c.isSameOrBefore(e[t+1].data.start))return i.children=[],i.treeDepth=0,i.hasDirectChild=!1,l;var u=ee(e,t,a,r);return i.treeDepth=u,u+1},ee=function(e,n,a,o){for(var r=e[n],i=r.data,l=i.end,c=i.offset,u=i.start,s=t(u).add(a,"minutes"),p=0,d=[],m=n+1;te(e,m,l,c);){var f=e[m].data,g=f.offset,h=f.start;if(g===c+1){var y=X(u,s,h),v=$(e,m,n,a,y,o);p<v&&(p=v),d.push(m)}m+=1}return r.hasDirectChild=0!==d.length&&e[d[0]].isDirectChild,r.children=d,p},te=function(e,t,n,a){var o=e[t];return t<e.length&&o.data.offset!==a&&o.data.start.isBefore(n)},ne=function(e){return e.reduce((function(e,t){var n=t.reduceValue;return e>n?e:n}),1)},ae=function(e,t){return e.map((function(e){var n=e.items,a=e.roots,o=n[0];return r(r({},e),{items:1===n.length?[r(r({},o),{data:r(r({},o.data),{left:0,width:1})})]:oe(n,a,t)})}))},oe=function(e,t,n){var a=e.map((function(e){return r({},e)}));return t.forEach((function(e){var t=a[e],o=ie(a,void 0,t,1,n,void 0),r=o.left,i=o.width;t.data.left=r,t.data.width=i,re(a,t,1,n)})),a},re=function(e,t,n,a){t.children.forEach((function(t){!function(e,t,n,a){var o=e[t],r=ie(e,void 0,o,n,a,void 0),i=r.left,l=r.width;o.data.left=i,o.data.width=l,re(e,o,n,a)}(e,t,n,a)}))},ie=function(e,t,n,a,o,r){var i,l=n,c=l.hasDirectChild,u=l.treeDepth,s=l.isDirectChild,p=l.parent,d=l.children,m=l.blockIndex,f=null===(i=e[d[0]])||void 0===i?void 0:i.blockIndex,g=c&&(void 0===f||m===f||t[f].includedInto===m||1===a);if(void 0===p)return{width:g?a/(u+1):a,left:0};var h=e[p].data,y=h.width,v=h.left,C=s?v+y:v+o,E=void 0!==r?Math.max(r,C):C,D=a-E;return{width:g?D/(u+1):D,left:E}},le=function(e){return e.map((function(e){var t=e.items.map((function(e){return r({},e)}));return t.forEach((function(e,n){if(0!==n){for(var a,o=[],r=e.data,i=r.offset,l=r.end,c=n+1;te(t,c,l,i);){var u=t[c];u.data.offset<i&&void 0===u.maxOffset&&(u.maxOffset=i);var s=o.length>0?t[o[o.length-1]]:void 0;if(ce(e,u,s,a)){o.push(c),u.overlappingSubTreeRoot=!0;var p=ue(t,u);a&&!a.isBefore(p)||(a=p)}c+=1}e.overlappingSubTreeRoots=o}else e.overlappingSubTreeRoots=[]})),r(r({},e),{items:t})}))},ce=function(e,t,n,a){var o=t.overlappingSubTreeRoot,r=t.maxOffset,i=t.data,l=i.offset,c=i.start,u=e.data.offset;return l<u&&!o&&(void 0===r||r>=u)&&(!n||n.data.offset>=l&&c.isSameOrAfter(a))},ue=function(e,t){var n=t.children,a=t.data.end;return n.reduce((function(t,n){var a=e[n],o=ue(e,a);return o.isAfter(t)?o:t}),a)},se=function(e){return e.map((function(e){var t=e.items,n=e.reduceValue,a=t.reduce((function(e,n,a){var o=e.blocks.slice(),i=n.treeDepth,l=n.data,u=n.overlappingSubTreeRoots,s=n.overlappingSubTreeRoot,p=l.offset,d=l.start,m=l.end;0!==u.length&&(s||o.push({start:d,end:m,minOffset:p,maxOffset:p+i,size:i+1,items:[],endForChildren:m}),u.forEach((function(e){var n=t[e],a=n.data;o.push({start:a.start,end:m,minOffset:a.offset,maxOffset:p-1,size:pe(t,n,m),items:[],endForChildren:a.end})})));var f=de(o,n);o[f].items.push(a);var g=r(r({},n),{blockIndex:f});return{blocks:o,appointments:c(e.appointments,[g])}}),{blocks:[{start:t[0].data.start,end:t[0].data.end,minOffset:0,maxOffset:n-1,size:n,items:[],endForChildren:t[0].data.end}],appointments:[]}),o=a.blocks,i=a.appointments;return{blocks:o,appointmentForest:r(r({},e),{items:i})}}))},pe=function(e,t,n){var a=t.children,o=t.data.start;if(0===a.length)return n.isAfter(o)?1:0;var r=Math.max.apply(Math,c(a.map((function(t){return pe(e,e[t],n)}))));return n.isSameOrBefore(o)&&0===r?0:r+1},de=function(e,t){for(var n=t.data,a=n.start,o=n.offset,r=e.length-1;r>0;){var i=e[r];if(X(i.start,i.end,a)&&o>=i.minOffset&&o<=i.maxOffset)break;r-=1}return r},me=function(e){return e.map((function(e){var t=e.blocks,n=e.appointmentForest,a=t.map((function(e){return r({},e)}));return a.forEach((function(e,t){e.includedBlocks=[];for(var n=t+1;n<a.length;n+=1){var o=a[n];fe(e,o)&&(e.includedBlocks.push(n),o.includedInto=t)}})),{blocks:a,appointmentForest:n}}))},fe=function(e,t){var n=e.start,a=e.end,o=e.minOffset,r=e.maxOffset,i=t.start,l=t.end,c=t.minOffset,u=t.maxOffset;return X(n,a,i)&&X(n,a,l)&&u<=r&&c>=o},ge=function(e){return e.map((function(e){var t=e.blocks,n=e.appointmentForest,a=t.map((function(e){return r({},e)}));return a.forEach((function(e,t){e.children=[];for(var n=t+1;n<a.length;n+=1){var o=a[n];he(e,o)&&(e.children.push(n),o.parent=t)}return e})),{appointmentForest:n,blocks:a}}))},he=function(e,t){var n=e.start,a=e.endForChildren,o=e.minOffset,r=e.includedInto,i=t.start,l=t.includedInto,c=t.maxOffset;return X(n,a,i)&&c+1===o&&(void 0===l||l===r)},ye=function(e,t){return e.map((function(e){var t=e.blocks,n=e.appointmentForest,a=ve(t,n.items);return{blocks:Ce(a,n.items),appointmentForest:n}})).map((function(e){var n=e.blocks,a=e.appointmentForest;return r(r({},a),{items:Ee(a.items,n,t)})}))},ve=function(e,t){return we(Re(Te(e),t))},Ce=function(e,t){var n=e.map((function(e){e.right;var t=i(e,["right"]);return r({},t)})),a=Re(Se(n,t),t);return we(a)},Ee=function(e,t,n){var a=e.map((function(e){return r({},e)})),o=t.map((function(e){return r({},e)}));return o.forEach((function(e,t){if(0!==t){var r=e.items,i=e.left,l=e.right,c=e.children,u=be(o,e),s=u*l,p=i*u;r.forEach((function(e,t){var r=a[e];if(0===t){var i=ie(a,o,r,s,n,p),l=i.left,d=i.width;r.data.left=l,r.data.width=d,p!==l&&c.forEach((function(e){De(o,e,l/u)}))}else{var m=ie(a,o,r,s,n,void 0),f=m.left;d=m.width,r.data.left=f,r.data.width=d}}))}})),t[0].items.forEach((function(e){var o=a[e],r=ie(a,t,o,1,n,void 0),i=r.left,l=r.width;o.data.left=i,o.data.width=l})),a},De=function(e,t,n){var a=e[t],o=a.leftOffset,r=a.size,i=a.leftLimit,l=a.children;a.right=n;var c=n-(n-i)*r/(r+o);a.left=c,l.forEach((function(t){De(e,t,c)}))},be=function(e,t){var n=t.includedInto;if(void 0===n)return 1;var a=e[n];return a.right*be(e,a)},Te=function(e){return e.map((function(t){var n=Oe(e,t);return r(r({},t),{totalSize:n,leftOffset:n-t.size})}))},Oe=function(e,t){var n=t.children,a=t.size;return 0===n.length?a:Math.max.apply(Math,c(n.map((function(t){return Oe(e,e[t])}))))+a},Re=function(e,t){return e.map((function(n){var a=Ne(e,t,n);return r(r({},n),{leftLimit:a})}))},Ne=function(e,t,n){var a=n,o=a.children,r=a.items,i=a.left;return 0===o.length?void 0!==i?Math.min(i,t[r[0]].data.left):t[r[0]].data.left:Math.min.apply(Math,c(o.map((function(n){return Ne(e,t,e[n])}))))},we=function(e){var t=e.map((function(e){return r({},e)}));return t.forEach((function(e){var n=e.parent,a=e.leftLimit,o=e.leftOffset,r=e.totalSize;if(void 0===n)return e.right=1,void(e.left=(1-a)*o/r+a);var i=t[n],l=i.left,c=i.totalSize;e.totalSize=c,e.right=l,e.left=(1-a)*o/c+a})),t},Se=function(e,t){return e.map((function(n){var a=n.items,o=n.left,i=t[a[0]].parent;if(void 0===i)return n;var l=t[i],c=e[l.blockIndex];return r(r({},n),{left:void 0===c.parent?o:e[c.parent].left})}))},Ae=function(e,t,n,a,o){var i,l,u=e.growDirection,s=e.multiline,p="horizontal"===u,d=t.map(F).reduce((function(e,t){return c(e,z(t,p))}),[]),m=a.cellDuration,f=a.placeAppointmentsNextToEachOther,g=p?j:f?Y:H,h=K(d,p),y=!p&&!f;return y&&(i=function(e,t){var n=Q(e,t),a=Math.min(1/ne(n),.05),o=ae(n,a),r=le(o),i=se(r),l=me(i),c=ge(l);return ye(c,a)}(h,m)),(y?(l=i.map((function(e){var t=e.items;return{reduceValue:e.reduceValue,items:t.map((function(e){var t=e.data;return r({},t)}))}})),Z(l)):Z(h)).map((function(e){return g(e,o,{rectByDates:n,multiline:s,rectByDatesMeta:a})})).sort((function(e,t){return e.offset>=t.offset?1:-1}))},xe=function(e,t){var n=e.start,a=e.end,o=e.dataItem,r=e.key;if(n.isSame(a,"day"))return[e];var i=t/2,l=n.clone().endOf("day").diff(n,"minutes")<i,c=a.clone().diff(a.clone().startOf("day"),"minutes")<i,u=C(r,n),s=C(r,a);return[l?{start:n.clone().endOf("day").add(-i,"minutes"),end:n.clone().endOf("day"),dataItem:o,key:u}:{start:n,end:n.clone().endOf("day"),dataItem:o,key:u},c?{start:a.clone().startOf("day"),end:a.clone().startOf("day").add(i,"minutes"),dataItem:o,key:s}:{start:a.clone().startOf("day"),end:a,dataItem:o,key:s}]},Ie=function(e,n,a,o){void 0===o&&(o=[]);var r=t(n),i=t(a),l=t(e.start).hour(r.hour()).minutes(r.minutes()),c=t(e.start).hour(i.hour()).minutes(i.minutes());return!e.end.isBefore(r)&&!e.start.isAfter(i)&&-1===o.findIndex((function(n){return n===t(e.start).day()}))&&e.end.isAfter(l)&&e.start.isBefore(c)},Pe=function(e,n,a,o){var i=t(n),l=t(a),c=t(e.start).hour(i.hour()).minutes(i.minutes()).seconds(i.seconds()),u=t(e.start).hour(l.hour()).minutes(l.minutes()).seconds(l.seconds()),s=o/2,p=u.clone().diff(e.start,"minutes")<s,d=e.end.clone().diff(c,"minutes")<s;return p?r(r({},e),{start:u.clone().add(-s,"minutes"),end:u}):d?r(r({},e),{start:c,end:c.clone().add(s,"minutes")}):r(r(r({},e),e.start.isSameOrBefore(c)?{start:c}:null),e.end.isSameOrAfter(u)?{end:u}:null)},Le=function(e,n){var a=n/2,o=t(e.start),i=t(e.end);return i.diff(o,"minutes")>a?r(r({},e),{start:o,end:i}):i.isSame(o.clone().add(a,"minutes"),"day")?r(r({},e),{start:o,end:o.clone().add(a,"minutes")}):r(r({},e),{start:o.clone().endOf("day").add(-a,"minutes"),end:o.clone().endOf("day")})},_e=function(e,n){return e[0].findIndex((function(e){return t(n).isSame(e.startDate,"date")}))},ke=function(e,n,a){return e[0].findIndex((function(e){var o=M(e,n);return t(a).isSame(e.startDate,"date")&&o}))},Me=function(e,t,n,a,o,r){var i=e.length/r,l=Be(e,n,a,o);if(!e[0][0].groupingInfo)return l;for(var c=!M(e[l][a],t);c;)c=!M(e[l+=i][a],t);return l},Be=function(e,n,a,o){return e.findIndex((function(e){return t(n).isBetween(e[a].startDate,e[a].endDate,"seconds",o?"(]":"[)")}))},Ve=function(e,t,n,a,o){return[e.map((function(e){return Le(e,o)})).reduce((function(e,o){return c(e,g(o,t,n,a,!0))}),[]).reduce((function(e,t){return c(e,xe(t,o))}),[]).filter((function(e){return Ie(e,t,n,a)})).map((function(e){return Pe(e,t,n,o)}))]},qe=function(e,t,n,a,o){void 0===o&&(o=!1);var r=n.groupOrientation,i=n.groupCount,l="Vertical"===r?_e(t,a):ke(t,e,a),c="Vertical"===r?Me(t,e,a,l,o,i):Be(t,a,l,o);return{index:c*t[0].length+l,startDate:t[c][l].startDate}},Ge=function(e,n,a,o,r,i,l){var c=qe(n,a,l,e,i),u=c.index,s=c.startDate,p=r.getCellRects[u]();return{top:p.top,left:p.left,width:p.width,topOffset:p.height*(t(e).diff(s,"minutes")/o),parentRect:r.parentRect()}},We=function(e,t,n){var a=n.viewCellsData,o=n.cellDuration,r=n.cellElementsMeta,i=n.placeAppointmentsNextToEachOther,l=Ge(e.start.toDate(),e,a,o,r,!1,t),c=Ge(e.end.toDate(),e,a,o,r,!0,t),u=l.top+l.topOffset,s=c.top+c.topOffset-u;return{width:l.width-10-1,top:u-l.parentRect.top+1,left:l.left-l.parentRect.left+1,parentWidth:l.parentRect.width,height:i?s-4:s}},je=function(e){return e.end.diff(e.start,"hours")>23||!!e.allDay},He=function(e,n,a,o,r){var i=t(a),l=n.groupOrientation,c=n.groupCount,u="Horizontal"===l?Fe(e,i,o):Ye(e,i),s=("Horizontal"===l?0:ze(e,o,c))*e[0].length+u;return r&&i.format()===i.startOf("day").format()&&(s-=1),s},Ye=function(e,t){return e[0].findIndex((function(e){return t.isSame(e.startDate,"date")}))},Fe=function(e,t,n){return e[0].findIndex((function(e){return t.isSame(e.startDate,"date")&&M(e,n)}))},ze=function(e,t,n){return e.findIndex((function(e){return M(e[0],t)}))*n/e.length},Ue=function(e,n,a,o){void 0===o&&(o=[]);var i=e.start.clone(),l=e.end.clone(),c=i.clone(),u=l.clone();if(i.isBefore(n)&&(c=t(n)).startOf("day"),l.isAfter(a)&&(u=t(a)).endOf("day"),-1!==o.findIndex((function(e){return e===i.day()})))for(;-1!==o.findIndex((function(e){return e===c.day()}))&&c.isSameOrBefore(l,"day");)c.add(1,"days").startOf("day");if(-1!==o.findIndex((function(e){return e===l.day()})))for(;-1!==o.findIndex((function(e){return e===u.day()}))&&c.isSameOrAfter(i,"day");)u.add(-1,"days").endOf("day");return[r(r({},e),{start:c,end:u})]},Ke=function(e,n){void 0===n&&(n=[]);for(var a=e.start,o=e.end,i=a.clone(),l=[];i.isBefore(o);)-1===n.findIndex((function(e){return e===i.day()}))&&l.push(r(r({},e),{start:i,end:t(i).endOf("day")})),i=t(i).add(1,"day");return l},Ze={interval:1},Xe={MONDAY:0,TUESDAY:1,WEDNESDAY:2,THURSDAY:3,FRIDAY:4,SATURDAY:5,SUNDAY:6},Qe=[Xe.SUNDAY,Xe.MONDAY,Xe.TUESDAY,Xe.WEDNESDAY,Xe.THURSDAY,Xe.FRIDAY,Xe.SATURDAY],Je={YEARLY:n.RRule.YEARLY,MONTHLY:n.RRule.MONTHLY,WEEKLY:n.RRule.WEEKLY,DAILY:n.RRule.DAILY,HOURLY:n.RRule.HOURLY,MINUTELY:n.RRule.MINUTELY},$e={DAILY:"daily",WEEKLY:"weekly",MONTHLY:"monthly",YEARLY:"yearly",NEVER:"never"},et=[$e.DAILY,$e.WEEKLY,$e.MONTHLY,$e.YEARLY],tt=["firstLabel","secondLabel","thirdLabel","fourthLabel","lastLabel"],nt=new Date(2019,7,11),at=new Date(2019,7,12),ot=new Date(2019,7,13),rt=new Date(2019,7,14),it=new Date(2019,7,15),lt=new Date(2019,7,16),ct=new Date(2019,7,17),ut=[nt,at,ot,rt,it,lt,ct],st=new Date(2019,0,1),pt=new Date(2019,1,1),dt=new Date(2019,2,1),mt=new Date(2019,3,1),ft=new Date(2019,4,1),gt=new Date(2019,5,1),ht=new Date(2019,6,1),yt=new Date(2019,7,1),vt=new Date(2019,8,1),Ct=new Date(2019,9,1),Et=new Date(2019,10,1),Dt=new Date(2019,11,1),bt=[st,pt,dt,mt,ft,gt,ht,yt,vt,Ct,Et,Dt],Tt=function(e,t,n){var a=e.left,o=e.right,l=[],c=t.start,u=t.end,s=t.key,p=i(t,["start","end","key"]),d=c,m=u;d.isBefore(a)&&(d=a.clone()),m.isAfter(o)&&(m=o.clone());for(var f=d.clone(),g=d.clone(),h=0;g.isBefore(m);){var y=a.clone().add(n*h,"days").subtract(1,"second");y.isAfter(d)&&((g=d.clone().add(n*h,"days")).isAfter(y)&&(g=y.clone()),g.isAfter(m)&&(g=m.clone()),f.isSameOrAfter(g)||(l.push(r({start:f,end:g,key:C(s,f)},p)),f=g.clone().add(1,"second"))),h+=1}return l},Ot=function(e,n,a,o,r){void 0===r&&(r=!1);var i=n.groupOrientation,l=n.groupedByDate,c=n.groupCount,u=t(e[0][0].startDate),s=t(a),p=s.diff(u,"days");r&&s.format()===s.startOf("day").format()&&(p-=1);var d=Math.floor(p/7),m=p%7,f="Horizontal"===i?Rt(e,o,d,m,c,l):m;return("Horizontal"===i?d:Nt(e,o,d,m,c))*e[0].length+f},Rt=function(e,t,n,a,o,r){for(var i=-1,l=r?a*o:a,c=r?1:7;-1===i;)M(e[n][l],t)&&(i=l),l+=c;return i},Nt=function(e,t,n,a,o){for(var r=e.length/o,i=-1,l=n;-1===i;)M(e[l][a],t)&&(i=l),l+=r;return i},wt=function(e,t,n,a,o,r,i){var l=i?Ot(n,a,e,t,r):He(n,a,e,t,r),c=o.getCellRects[l]();return{top:c.top,left:c.left,width:c.width,height:c.height,parentRect:o.parentRect()}},St=function(e,t,n){var a=n.multiline,o=n.viewCellsData,r=n.cellElementsMeta,i=wt(e.start.toDate(),e,o,t,r,!1,a),l=wt(e.end.toDate(),e,o,t,r,!0,a),c=i.top+.32*i.height,u=i.height-.32*i.height;return{top:c-i.parentRect.top,left:i.left-i.parentRect.left+1,width:l.left-i.left+i.width-1,height:u,parentWidth:i.parentRect.width}},At=function(e,n,a){return[e.map((function(e){var n=e.start,a=e.end,o=i(e,["start","end"]);return r({start:t(n),end:t(a)},o)})).reduce((function(e,t){return c(e,g(t,n,a,[],!1))}),[]).reduce((function(e,o){return c(e,Tt({left:t(n),right:t(a)},o,7))}),[])]},xt=function(e,n,a,o){return[e.map((function(e){var n=e.start,a=e.end,o=i(e,["start","end"]);return r({start:t(n),end:t(a)},o)})).reduce((function(e,t){return c(e,g(t,n,a,o,!1))}),[]).filter((function(e){return je(e)})).reduce((function(e,t){return c(e,Ue(t,n,a,o))}),[])]},It=function(e){return{id:e.id,fieldName:e.fieldName,text:e.text}},Pt=function(e,t,n,a,o,i,l){return a.map((function(c,u){var s=Lt(e,t,n,c,o,i,l);return u===a.length-1&&"Horizontal"===l?r(r({},s),{endOfGroup:!0}):s}))},Lt=function(e,t,n,a,o,i,l){var u=o,s=t.reduceRight((function(e,a,o){if(o===t.length-1)return e;var r=n[o+1].instances.length,i=a[Math.floor(u/r)];return u=o,c(e,[i])}),[e]);return r(r({},a),{groupingInfo:s,endOfGroup:i,groupOrientation:l})},_t=function(e,t,n){if(!t||!n)return[e.slice()];var a=t.find((function(e){return e.isMain}));return n[n.length-1].map((function(o,i){var l=function(e,t,n,a){var o=n;return e.reduceRight((function(n,a,r){return r===e.length-1?n:c(n,[a[o=Math.floor(o/t[r+1].instances.length)]])}),[a])}(n,t,i,o);return e.reduce((function(e,t){var n;if(!l.reduce((function(e,n){return e&&n.id===t[n.fieldName]}),!0))return e;var o=l.find((function(e){return e.fieldName===a.fieldName})).id;return c(e,[r(r({},t),{dataItem:r(r({},t.dataItem),(n={},n[a.fieldName]=kt(a,t,o),n)),resources:t.resources&&Mt(a,t,o)})])}),[])}))},kt=function(e,t,n){return e.allowMultiple?c([n],t.dataItem[e.fieldName].filter((function(e){return e!==n}))):n},Mt=function(e,t,n){var a;if(!e.allowMultiple)return t.resources;var o=t.resources.slice(),r=o.findIndex((function(e){return e.isMain})),i=o.findIndex((function(e){return e.isMain&&e.id===n}));return a=l([o[i],o[r]],2),o[r]=a[0],o[i]=a[1],o},Bt=function(e,t,n){return n&&t?n.reduce((function(e,n){if(void 0===t.find((function(e){return e.resourceName===n.fieldName})))return e;var a=n.fieldName;return n.allowMultiple?e.reduce((function(e,t){return c(e,t.dataItem[a].map((function(e){var n;return r(r({},t),((n={})[a]=e,n.key=Vt(t.key,e),n))})))}),[]):e.reduce((function(e,t){var n;return c(e,[r(r({},t),(n={},n[a]=t.dataItem[a],n))])}),[])}),[e]):[e]},Vt=function(e,t){return e+"_"+t},qt=function(e){return e[e.length-1]},Gt=function(e,t,n){return e.map((function(e){return e.reduce((function(e,a){var o=qt(t).map((function(e,o){return Lt(e,t,n,a,o,!1,"Horizontal")}));return o[o.length-1]=r(r({},o[o.length-1]),{endOfGroup:!0}),c(e,o)}),[])}))},Wt=function(e,t,n){return qt(t).reduce((function(a,o,r){return 0===r?e.map((function(e){return Pt(o,t,n,e,r,!1,"Horizontal")})):a.map((function(a,i){return c(a,Pt(o,t,n,e[i],r,!1,"Horizontal"))}))}),[[]])},jt=function(e,t,n){return qt(t).reduce((function(a,o,r){return 0===r?e.map((function(a,i){return Pt(o,t,n,a,r,i===e.length-1,"Vertical")})):c(a,e.map((function(a,i){return Pt(o,t,n,a,r,i===e.length-1,"Vertical")})))}),[[]])},Ht=function(e,t,n,a,o,r){void 0===r&&(r=!1);var i=(r?e[0].reduce((function(e,t){return c(e,Ke(t,o))}),[]):e[0]).reduce((function(e,a){return c(e,Bt(a,t,n))}),[]);return _t(i,n,a)},Yt=function(e,t,n,a){return"Horizontal"===t(n.name)||!a||!e.getCellRects},Ft=function(e,t,n){var a=t[0].length,o=qt(n).length;return{groupCount:o,timeTableWidth:a,groupSize:a*(t.length/o),validGetCellRects:e.getCellRects.slice()}},zt=function(e,t,n,a,o,r,i,l,c,u,s){var p=xt(e,t,n,a),d=Ht(p,i,l,c,a,s);return Ae({growDirection:"horizontal",multiline:!1},d,St,{startViewDate:t,endViewDate:n,viewCellsData:o,cellElementsMeta:r,excludedDays:a},{groupOrientation:u,groupedByDate:s,groupCount:c?qt(c).length:1})},Ut=function(e,t,n,a,o,r,i,l,c,u,s,p){var d=Ve(e,t,n,a,r),m=Ht(d,l,c,u,a,!1);return Ae({growDirection:"vertical",multiline:!1},m,We,{startViewDate:t,endViewDate:n,viewCellsData:o,cellDuration:r,cellElementsMeta:i},{groupOrientation:s,groupedByDate:p,groupCount:u?qt(u).length:1})},Kt=function(e,t,n,a,o,r,i,l,c,u){var s=At(e,t,n),p=Ht(s,r,i,l,[],u);return Ae({growDirection:"horizontal",multiline:!0},p,St,{startViewDate:t,endViewDate:n,viewCellsData:a,cellElementsMeta:o},{groupOrientation:c,groupedByDate:u,groupCount:l?qt(l).length:1})},Zt=function(e,t,n){var a=t;return e.reduceRight((function(t,o,r){if(n<r)return t;var i=o[a].id;if(r>0){var l=e[r].length/e[r-1].length;a=Math.floor(a/l)}return t+i}),"")},Xt=function(e,t,n,a){var o=n*a,r=o+a;return t.slice(o,r-1).reduce((function(t,a){return c(t,[{startDate:a[0].startDate,endDate:a[0].endDate,key:a[0].endDate+Zt(e,n,e.length-1),groupingInfo:a[0].groupingInfo}])}),[])},Qt=function(e,t,n){return t("ofLabel")+n(e,P).replace(/[\d.,]/g,"").toString()},Jt=function(e,t){return t(e,I)},$t=function(e,t){return t(e,x)},en=function(e){return e+1},tn=function(e){var t;switch(e){case Je.YEARLY:t=5;break;case Je.MONTHLY:t=12;break;case Je.WEEKLY:t=13;break;case Je.DAILY:t=30}return t},nn=function(e,t,a){if(!e)return t===Je.MONTHLY?new n.RRule(r(r({},Ze),{freq:t,bymonthday:[a.getDate()],count:tn(t)})).toString():t===Je.YEARLY?new n.RRule(r(r({},Ze),{freq:t,bymonthday:[a.getDate()],bymonth:a.getMonth()+1,count:tn(t)})).toString():new n.RRule(r(r({},Ze),{freq:t,count:tn(t)})).toString();var o=n.RRule.parseString(e);return o.freq===t?e:(o.freq=t,o.count=tn(t),t!==Je.MONTHLY&&t!==Je.YEARLY||(o.bymonthday=a.getDate()),t===Je.YEARLY&&(o.bymonth=a.getMonth()+1),t!==Je.DAILY&&t!==Je.WEEKLY||(o.bymonthday=void 0),o.byweekday=void 0,new n.RRule(o).toString())},an=function(e){return e?new n.RRule(r({},e)).toString():void 0},on=function(e){return Je[e.toUpperCase()]},rn=function(e,t){return r(r({},t),e<4?{bymonthday:[7*e+1,7*e+2,7*e+3,7*e+4,7*e+5,7*e+6,7*e+7]}:{bymonthday:[-1,-2,-3,-4,-5,-6,-7]})},ln=function(e){var t=Qe.filter((function(t){return t>=e-1&&t<6})),n=Qe.filter((function(t){return t<e-1||t>=6}));return 0!==e?c(t,n):c(n,t)},cn=function(e){return c(ut.slice(e,ut.length),ut.slice(0,e))},un=function(e,t){var n=r({},e);return delete n.id,delete n.rRule,delete n.exDate,delete n.parentData,r(r({},n),t)},sn=function(e,n){var a=t.utc(n).format("YYYYMMDDTHHmmss")+"Z";return e?e+","+a:a},pn=function(e,a,o,i){var l=y(a),c=n.RRule.parseString(e),u=c.until?r(r({},c),{until:t(h(c.until)).toDate()}):c,s=t(h(o)).toDate();if(l.rrule(new n.RRule(r(r({},u),{dtstart:s}))),c.count||c.until)return l.all().map((function(e){return t(v(e)).toDate()}));var p=s,d=t(h(i)).toDate();return l.between(p,d,!0).map((function(e){return t(v(e)).toDate()}))},dn=function(e,t){var a=new n.RRuleSet;return a.rrule(new n.RRule(r(r({},n.RRule.parseString(e)),t))),a.valueOf()},mn=function(e,n,a){var o,i=e.rRule,l=e.startDate,u=e.parentData,s=e.exDate,p=void 0===s?"":s,d=e.id,m=fn(u.startDate,t.utc(l).toDate(),p,i),f=m.initialSequence,g=m.currentChildIndex;if(0===g)return a(e,n);var h=dn(i,{dtstart:t.utc(u.startDate).toDate(),until:t.utc(f[g-1]).toDate(),count:null}),y=function(e,n){if(e.length>0)return e.split(",").reduce((function(e,a){return t.utc(a).isBefore(n)?c(e,[a]):e}),[]).join(",")}(p,l);return{changed:(o={},o[d]=r({rRule:h[1].slice(6)},y&&p!==y?{exDate:y}:{}),o)}},fn=function(e,n,a,o){var r=pn(o,a,t.utc(e).toDate(),t.utc(n).toDate()),i=r.findIndex((function(e){return t(e).isSame(n)}));return{initialSequence:r,currentChildIndex:i}},gn=function(e){var n;if(1===pn(e.rRule,e.exDate,t.utc(e.parentData.startDate).toDate(),t.utc(e.startDate).toDate()).length)return hn(e);var a=sn(e.exDate,e.startDate);return{changed:(n={},n[e.id]={exDate:a},n)}},hn=function(e){return{deleted:e.id}},yn=function(e){return mn(e,{},hn)},vn=function(e,a){var o,i,l=e.rRule,c=e.id,u=new n.RRule(n.RRule.parseString(l));return a.startDate&&t.utc(a.startDate).isAfter(u.options.until)?{changed:(o={},o[c]=r(r({},a),{rRule:"FREQ=DAILY;COUNT=1",exDate:""}),o)}:{changed:(i={},i[e.id]=a,i)}},Cn=function(e,t){var n;return{changed:(n={},n[e.id]={exDate:sn(e.exDate,e.startDate)},n),added:un(e,t)}},En=function(e,a){var o=e.rRule,i=e.startDate,l=e.exDate,c=void 0===l?"":l,u=e.parentData,s=new n.RRule(n.RRule.parseString(o)),p=fn(u.startDate,t.utc(i).toDate(),c,o),d=p.initialSequence,m=p.currentChildIndex;if(0===m)return vn(e,a);var f=s.options.count||s.options.until?{count:d.length-m}:{},g=dn(e.rRule,r({dtstart:t.utc(i).toDate()},f)),h=t.utc(a.startDate).isAfter(s.options.until)?{rRule:"FREQ=DAILY;COUNT=1",exDate:""}:{rRule:g[1].slice(6)};return{changed:mn(e,a,vn).changed,added:r(r({},h),un(e,a))}},Dn=function(e,t,n){return Math.max(Math.min(e,n),t)},bn=function(e,t,n){return"vertical"===e?t*n*60/2:0},Tn=function(e,n){return t(e.endDate).diff(e.startDate,n)},On=function(e,t,n,a,o){e<t+50&&e>t&&a(-o),n-50<e&&a(+o)},Rn=function(e,n,a,o,r){if(a!==e.appointmentType)return{appointmentStartTime:void 0,appointmentEndTime:void 0};var i,l,c=e.type;if("resize-start"===c){var u=bn(a,r,o);i=t(n.startDate).add(u,E).toDate(),l=t(e.endDate).toDate()}if("resize-end"===c){var s=0===r&&"vertical"===a?60*o/2:0;l=t(n.endDate).add(-s,E).toDate(),i=t(e.startDate).toDate()}return t(l).diff(i,"minutes")<1&&(i=t(e.startDate).toDate(),l=t(e.endDate).toDate()),{appointmentStartTime:i,appointmentEndTime:l}},Nn=function(e,n,a,o,r,i){if("horizontal"===a&&Tn(e,E)<Tn(n,E))return{appointmentStartTime:n.startDate,appointmentEndTime:n.endDate,offsetTimeTop:0};var l,c,u,s=bn(a,r,o),p=t(n.startDate).add(s,E);if(l=null===i?t(n.startDate).diff(e.startDate,E)+s:i,e.type===a){var d=Tn(e,E);c=t(p).add(-1*l,E).toDate(),u=t(p).add(d-l,E).toDate()}else c=t(n.startDate).add(s,E).toDate(),u=t(n.endDate).add(s,E).toDate();return{appointmentStartTime:c,appointmentEndTime:u,offsetTimeTop:l}},wn=function(e,t){var n=t[e.fieldName];return-1!==n.findIndex((function(t){return t===e.id}))?n:[e.id]},Sn=function(e,t){return Object.getOwnPropertyNames(e).every((function(n){return Array.isArray(e[n])&&Array.isArray(t[n])?e[n].every((function(e,a){return e===t[n][a]})):e[n]===t[n]}))},An=function(e){return void 0!==e},xn=function(e,t,n){return t&&0!==t.length&&n&&0!==n.length?t.reduce((function(t,a){var o=e[a.fieldName];return void 0===o||a.allowMultiple&&!Array.isArray(o)||!a.allowMultiple&&Array.isArray(o)?t:a.allowMultiple?c(t,o.reduce((function(e,t){return In(n,e,a,t)}),[])):In(n,t,a,o)}),[]):[]},In=function(e,t,n,a){var o=e.find((function(e){return n.fieldName===e.fieldName&&e.id===a}));return o?c(t,[o]):t},Pn=function(e){for(var n=e[0][0].startDate,a=1;e[0][a]&&t(e[0][a].startDate).isSame(n,"day");)a+=1;return a};(u=e.RecurrenceFrequency||(e.RecurrenceFrequency={}))[u.Daily=Je.DAILY]="Daily",u[u.Weekly=Je.WEEKLY]="Weekly",u[u.Monthly=Je.MONTHLY]="Monthly",u[u.Yearly=Je.YEARLY]="Yearly",e.APRIL_DATE=mt,e.AUGUST_DATE=yt,e.AUTO_HEIGHT="auto",e.BASIC_DAILY_COUNT=30,e.BASIC_MONTHLY_COUNT=12,e.BASIC_WEEKLY_COUNT=13,e.BASIC_YEALY_COUNT=5,e.CANCEL_BUTTON="cancelButton",e.CANCEL_COMMAND_BUTTON="cancel",e.CLOSE_COMMAND_BUTTON="close",e.COMMIT_COMMAND_BUTTON="commit",e.DAYS_IN_WEEK=7,e.DAYS_OF_WEEK=Xe,e.DAYS_OF_WEEK_ARRAY=Qe,e.DAYS_OF_WEEK_DATES=ut,e.DAY_LONG_MONTH_LONG_YEAR_OPTIONS=w,e.DAY_LONG_MONTH_OPTIONS=P,e.DAY_OPTIONS=D,e.DAY_SHORT_MONTH_LONG_YEAR_OPTIONS=S,e.DAY_SHORT_MONTH_OPTIONS=O,e.DAY_SHORT_MONTH_SHORT_YEAR_OPTIONS=A,e.DECEMBER_DATE=Dt,e.DEFAULT_RULE_OBJECT=Ze,e.DELETE_BUTTON="deleteButton",e.DELETE_COMMAND_BUTTON="delete",e.EMPTY_OPTIONS=L,e.END_REPEAT_RADIO_GROUP="endRepeat",e.FEBRUARY_DATE=pt,e.FIRST_WEEK=0,e.FOURTH_WEEK=3,e.FRIDAY_DATE=lt,e.HORIZONTAL_GROUP_ORIENTATION="Horizontal",e.HORIZONTAL_TYPE="horizontal",e.HORIZONTAL_VIEW_LEFT_OFFSET=0,e.HOURS="hours",e.HOUR_MINUTE_OPTIONS={hour:"numeric",minute:"numeric"},e.JANUARY_DATE=st,e.JULY_DATE=ht,e.JUNE_DATE=gt,e.LAST_WEEK=4,e.LONG_MONTH_OPTIONS=I,e.LONG_WEEK_DAY_OPTIONS=x,e.MARCH_DATE=dt,e.MAY_DATE=ft,e.MINUTES="minutes",e.MONDAY_DATE=at,e.MONTHLY_RADIO_GROUP="monthlyRadioGroup",e.MONTHS={JANUARY:1,FEBRUARY:2,MARCH:3,APRIL:4,MAY:5,JUNE:6,JULY:7,AUGUST:8,SEPTEMBER:9,OCTOBER:10,NOVEMBER:11,DECEMBER:12},e.MONTHS_DATES=bt,e.MONTH_YEAR_OPTIONS=T,e.MULTILINE_TEXT_EDITOR="multilineTextEditor",e.NOVEMBER_DATE=Et,e.NUMBER_EDITOR="numberEditor",e.OCTOBER_DATE=Ct,e.OPEN_COMMAND_BUTTON="open",e.ORDINARY_LABEL="ordinaryLabel",e.ORDINARY_TEXT_EDITOR="ordinaryTextEditor",e.OUTLINED_SELECT="outlinedSelect",e.POSITION_END="end",e.POSITION_START="start",e.RECURRENCE_EDIT_SCOPE=_,e.REPEAT_TYPES=$e,e.REPEAT_TYPES_ARRAY=et,e.RESIZE_BOTTOM="resize-end",e.RESIZE_TOP="resize-start",e.RRULE_REPEAT_TYPES=Je,e.SATURDAY_DATE=ct,e.SAVE_BUTTON="saveButton",e.SCROLL_OFFSET=50,e.SCROLL_SPEED_PX=15,e.SECONDS=E,e.SECOND_WEEK=1,e.SEPTEMBER_DATE=vt,e.SHORT_MONTH_LONG_YEAR_OPTIONS=R,e.SHORT_MONTH_OPTIONS=b,e.SHORT_MONTH_SHORT_YEAR_OPTIONS=N,e.STANDARD_SELECT="standardSelect",e.SUNDAY_DATE=nt,e.THIRD_WEEK=2,e.THURSDAY_DATE=it,e.TITLE="title",e.TITLE_TEXT_EDITOR="titleTextEditor",e.TOGGLE_APPOINTMENT_FORM_VISIBILITY="toggleAppointmentFormVisibility",e.TOGGLE_APPOINTMENT_TOOLTIP_VISIBILITY="toggleAppointmentTooltipVisibility",e.TUESDAY_DATE=ot,e.VERTICAL_GROUP_ORIENTATION="Vertical",e.VERTICAL_TYPE="vertical",e.VERTICAL_VIEW_LEFT_OFFSET=80,e.VIEW_TYPES={MONTH:"month",WEEK:"week",DAY:"day",ALL_DAY_PANEL:"allDayPanel"},e.WEDNESDAY_DATE=rt,e.WEEKDAY_INTERVAL="weekdayInterval",e.WEEK_DAY_OPTIONS={weekday:"short"},e.WEEK_NUMBER_LABELS=tt,e.YEARLY_RADIO_GROUP="yearlyRadioGroup",e.addAppointment=function(e,t){return(void 0===t?{appointmentData:{}}:t).appointmentData},e.addDateToKey=C,e.addGroupInfoToCell=Lt,e.addGroupInfoToCells=Pt,e.addResourcesToAppointments=function(e,t,n){return[e.map((function(e){return r(r({},e),{resources:xn(e.dataItem,t,n)})}))]},e.adjustByBlocks=ye,e.allDayCells=function(e){return[e[0].map((function(e){return{startDate:t(e.startDate).startOf("day").toDate(),endDate:t(e.startDate).add(1,"day").startOf("day").toDate(),groupingInfo:e.groupingInfo,endOfGroup:e.endOfGroup}}))]},e.allDayPredicate=je,e.allDayRects=zt,e.appointmentDragged=function(e,n,a,o,r,i){return!(t(e).isSame(n)&&t(a).isSame(o)&&Sn(r,i))},e.appointments=function(e){return e.map((function(e,t){return r(r(r(r(r({dataItem:e,start:e.startDate},void 0!==e.endDate?{end:e.endDate}:{end:e.startDate,dataItem:r(r({},e),{endDate:e.startDate})}),void 0!==e.allDay&&{allDay:e.allDay}),void 0!==e.rRule&&{rRule:e.rRule}),void 0!==e.exDate&&{exDate:e.exDate}),{key:e.id||t})}))},e.areDatesSame=function(e,n){return t(e).isSame(n,"date")},e.autoScroll=function(e,t,n){On(e.y,t.topBoundary,t.bottomBoundary,t.changeVerticalScroll,n),On(e.x,t.leftBoundary,t.rightBoundary,t.changeHorizontalScroll,n)},e.availableViews=function(e,t,n){if(!e)return[{name:t,displayName:n}];if(-1===e.findIndex((function(e){return t===e.name}))){var a=e.slice();return a.push({name:t,displayName:n}),a}return e},e.calculateAllDayDateIntervals=xt,e.calculateAppointmentGroups=function(e,t,n){return e?e.reduce((function(e,a){var o,i=t.find((function(e){return e.fieldName===a.fieldName})).allowMultiple;return r(r({},e),((o={})[a.fieldName]=i?wn(a,n):a.id,o))}),{}):{}},e.calculateAppointmentLeftAndWidth=ie,e.calculateAppointmentOffsets=K,e.calculateAppointmentTimeBoundaries=function(e,t,n,a,o,r){return"vertical"===e.type||"horizontal"===e.type?Nn(e,t,n,a,o,r):Rn(e,t,n,a,o)},e.calculateAppointmentsMetaData=ae,e.calculateBlocksLeftLimit=Re,e.calculateBlocksTotalSize=Te,e.calculateDraftAppointments=function(e,t,n,a,o,i,l,c,u,s,p,d,m,f,g){if(-1!==e||"vertical"===c&&l.getCellRects.length&&Tn(t[0].dataItem,"hours")>23){var h=t.map((function(e){return r(r({},e),{allDay:!0})}));return{allDayDraftAppointments:zt(h,n,a,o,i,l,p,d,m,f,g),timeTableDraftAppointments:[]}}return"vertical"===c||-1!==e?{allDayDraftAppointments:[],timeTableDraftAppointments:Ut(t,n,a,o,i,u,s,p,d,m,f,g)}:{allDayDraftAppointments:[],timeTableDraftAppointments:Kt(t,n,a,i,s,p,d,m,f,g)}},e.calculateFirstDateOfWeek=f,e.calculateIncludedBlockMaxRight=be,e.calculateInsidePart=function(e,t,n){if(void 0!==n&&-1!==n){var a=t[n]();return e>a.top+a.height/2?1:0}return 0},e.calculateMonthDateIntervals=At,e.calculateRectByDateAndGroupIntervals=Ae,e.calculateWeekDateIntervals=Ve,e.callActionIfExists=function(e,t){e&&e(t)},e.cancelAddedAppointment=function(){return{}},e.cancelChanges=function(){return{}},e.cellData=function(e,t,n,a){var o=-1!==t?a:n,r=-1!==t?t:e,i=o[0].length,l=r%i;return o[Math.floor(r/i)][l]},e.cellIndex=function(e,t){return e.findIndex((function(e){var n=e(),a=n.left,o=n.top,r=n.right,i=n.bottom;return t&&Dn(t.x,a,r)===t.x&&Dn(t.y,o,i)===t.y}))},e.cellType=function(e){return t(e.startDate).isSame(e.endDate,"day")?"vertical":"horizontal"},e.changeAppointment=function(e,t){var n=t.change;return r(r({},e),n)},e.changeCurrentDate=function(e,n){var a=n.nextDate,o=n.step,r=n.amount,i=n.direction;return a||t(e)["back"===i?"subtract":"add"](r,o).toDate()||t().subtract(r,o)},e.changeRecurrenceFrequency=nn,e.changeRecurrenceOptions=an,e.changedAppointmentById=function(e,t){var n;return(n={})[t]=e,n},e.checkCellGroupingInfo=M,e.checkIsNaturalNumber=function(e){return e>0&&e<=Number.MAX_SAFE_INTEGER},e.checkMultipleResourceFields=function(e,t){return t.reduce((function(t,n){var a;if(!n.allowMultiple)return t;var o=n.fieldName,i=e[o];return r(r({},t),((a={})[o]=Array.isArray(i)?i:[i],a))}),e)},e.computed=function(e,t,n,a){return e.currentView.name!==t&&a?a:n(e,t)},e.convertResourcesToPlain=function(e){return e.reduce((function(e,t){return c(e,t.instances.map((function(e){return e})))}),[])},e.convertToMoment=function(e){return t(e)},e.createAppointmentForest=Q,e.dayBoundaryPredicate=Ie,e.dayScale=V,e.deleteAll=hn,e.deleteCurrent=gn,e.deleteCurrentAndFollowing=yn,e.editAll=vn,e.editCurrent=Cn,e.editCurrentAndFollowing=En,e.endViewDate=function(e){var t=e.length-1,n=e[t].length-1;return B(e[t][n].endDate)},e.excludedIntervals=p,e.expandGroupedAppointment=Bt,e.expandGroups=Ht,e.expandViewCellsDataWithGroups=function(e,t,n,a,o){return 0===t.length?e:a?Gt(e,t,n):"Horizontal"===o?Wt(e,t,n):jt(e,t,n)},e.filterByViewBoundaries=g,e.filterResourcesByGrouping=function(e,t){return e.filter((function(e){return t.find((function(t){return e.fieldName===t.resourceName}))}))},e.findBlockIndexByAppointment=de,e.findChildBlocks=ge,e.findChildrenMaxEndDate=ue,e.findIncludedBlocks=me,e.findMaxReduceValue=ne,e.findOverlappedAppointments=z,e.formatDateTimeGetter=function(e){var t=new Map;return function(n,a){if(void 0===n)return"";var o=new Date(n),r=t.get(a);return r||(r=function(e,t){return new Intl.DateTimeFormat(e,t)}(e,a),t.set(a,r)),r.format(o)}},e.formatDateToString=v,e.getAllDayCellIndexByAppointmentData=He,e.getAllDayHorizontallyGroupedColumnIndex=Fe,e.getAllDayVerticallyGroupedColumnIndex=Ye,e.getAllDayVerticallyGroupedRowIndex=ze,e.getAppointmentResources=xn,e.getAppointmentStyle=function(e){var t=e.top,n=e.left,a=e.width;return{height:e.height,width:a+"%",transform:"translateY("+t+"px)",msTransform:"translateY("+t+"px)",left:n+"%",position:"absolute"}},e.getAvailableRecurrenceOptions=function(e){return et.map((function(t){return{text:e(t),id:t}}))},e.getCellKey=Zt,e.getCountDependingOnRecurrenceType=tn,e.getCurrentTimeIndicatorTop=function(e,t){var n=100*(t-e.startDate.getTime())/(e.endDate.getTime()-e.startDate.getTime());return n<0||n>100?void 0:n+"%"},e.getDayScaleCellColSpan=Pn,e.getDayScaleCells=function(e,n){if(!n)return e[0].map((function(e,t){var n=e.startDate,a=e.endDate,o=e.today,r=e.endOfGroup,i=e.groupingInfo;return{key:t.toString(),startDate:n,endDate:a,today:o,endOfGroup:r,groupingInfo:i}}));var a,o=Pn(e);return e[0].reduce((function(e,n,r){var i=n.startDate,l=n.endDate,u=n.today,s=t(i);return s.isSame(a)?e:(a=s,c(e,[{key:r.toString(),startDate:i,endDate:l,today:u,colSpan:o,endOfGroup:!0}]))}),[])},e.getDaysOfWeek=function(e,t){var n=ln(t);return cn(t).map((function(t,a){return{text:$t(t,e),id:a+1<7?n[a+1]:n[0]}}))},e.getDaysOfWeekArray=ln,e.getDaysOfWeekDates=cn,e.getFrequencyString=function(e){return e===Je.DAILY?$e.DAILY:e===Je.WEEKLY?$e.WEEKLY:e===Je.MONTHLY?$e.MONTHLY:e===Je.YEARLY?$e.YEARLY:$e.NEVER},e.getGroupFromResourceInstance=It,e.getGroupingInfoFromGroups=function(e,t){var n=t;return e.reduceRight((function(t,a,o){if(o===e.length-1)return t;var r=e[o+1].length/a.length,i=a[Math.floor(n/r)];return n=o,c(t,[i])}),[qt(e)[t]])},e.getGroupsFromResources=function(e){return e.reduce((function(e,t,n){return 0===n?[t.instances.map((function(e){return It(e)}))]:c(e,[e[n-1].reduce((function(e){return c(e,t.instances.map((function(e){return It(e)})))}),[])])}),[])},e.getGroupsLastRow=qt,e.getHorizontalRectByAppointmentData=St,e.getLabelsForAllGroups=function(e,t,n){if("Horizontal"===n)return[e.map((function(e){return{startDate:e[0].startDate,endDate:e[0].endDate,groupingInfo:e[0].groupingInfo,key:e[0].endDate}}))];var a=qt(t).length,o=e.length/a;return qt(t).reduce((function(n,a,r){return c(n,[Xt(t,e,r,o)])}),[])},e.getMonthCellIndexByAppointmentData=Ot,e.getMonthHorizontallyGroupedColumnIndex=Rt,e.getMonthVerticallyGroupedRowIndex=Nt,e.getMonths=function(e){return bt.map((function(t,n){return{text:Jt(t,e),id:en(n)}}))},e.getMonthsWithOf=function(e,t){return bt.map((function(n,a){return{text:Qt(n,e,t),id:en(a)}}))},e.getRRuleFrequency=on,e.getRRuleSetWithExDates=y,e.getRadioGroupDisplayData=function(e,t,n,a,o,r){var i=4;if(e.bymonthday&&!Array.isArray(e.bymonthday))return{dayNumberTextField:e.bymonthday,weekNumber:n,dayOfWeek:t,radioGroupValue:o};if(!e.byweekday)return{dayOfWeek:t,weekNumber:n,radioGroupValue:r,dayNumberTextField:a};var l=e.byweekday[0]<6?e.byweekday[0]+1:0;return e.bymonthday&&e.bymonthday[0]>0&&(i=Math.trunc(e.bymonthday[0]/7)),{dayOfWeek:l,weekNumber:i,radioGroupValue:r,dayNumberTextField:a}},e.getRecurrenceOptions=function(e){if(!e)return null;var t=n.RRule.parseString(e);if(t.byweekday){var a=t.byweekday.map((function(e){return e.weekday}));t.byweekday=a}return t},e.getRowFromGroups=function(e,t,n,a,o){for(var r=[],i=t.length,l=e/qt(a).length,u=qt(a).length/i,s=function(e){r=c(r,t.reduce((function(t,r,l){return c(t,[{group:r,colSpan:u,key:Zt(a,l,o)+e,left:n.left,endOfGroup:l===i-1}])}),[]))},p=0;p<l;p+=1)s(p);return r},e.getTimeTableHeight=function(e){var t;return null===(t=e.parentRect)||void 0===t?void 0:t.call(e).height},e.getUTCDate=h,e.getVerticalCellIndexByAppointmentData=qe,e.getVerticalRectByAppointmentData=We,e.getVerticalRowFromGroups=function(e,t,n,a,o,r){return e.reduce((function(i,l,u){var s=qt(e).length/l.length,p=t/s,d=n*s*a/qt(e).length,m=s*r;return t%s!==0?i:c(i,[{group:l[p],rowSpan:s,height:o?d+m:d,key:Zt(e,p,u)}])}),[])},e.getViewType=function(e){return"month"===e?"horizontal":"vertical"},e.getWeekHorizontallyGroupedColumnIndex=ke,e.getWeekHorizontallyGroupedRowIndex=Be,e.getWeekNumberLabels=function(e){return tt.map((function(t,n){return{text:e(t),id:n}}))},e.getWeekVerticallyGroupedColumnIndex=_e,e.getWeekVerticallyGroupedRowIndex=Me,e.groupAppointments=_t,e.groupAppointmentsIntoBlocks=se,e.handleChangeFrequency=function(e,t,n,a){var o,r=on(e);void 0!==r&&(o=nn(t,r,n)),a({rRule:o})},e.handleStartDateChange=function(e,t){if(e<=31){var n=r(r({},t),{bymonthday:e});return an(n)}return an(t)},e.handleToDayOfWeekChange=function(e,t,n){var a=rn(e,n);return a.byweekday=t>0?t-1:6,an(a)},e.handleWeekDaysChange=function(e,t){var n=e.byweekday||[],a=n.indexOf(t);return a>-1?a>-1&&n.splice(a,1):n.push(t),r(r({},e),0===n?{byweekday:void 0}:{byweekday:n})},e.handleWeekNumberChange=function(e,t){return an(rn(e,t))},e.horizontalTimeTableRects=Kt,e.intervalDuration=Tn,e.intervalIncludes=X,e.isAllDayCell=function(e,n){return t(n).diff(t(e),"days")>=1},e.isAllDayElementsMetaActual=function(e,t,n,a){return G(e,t,"Horizontal"===n?1:a)},e.isCellShaded=function(e,t,n){var a=e.startDate,o=e.endDate,r=e.otherMonth,i=An(r);return(a.getTime()<t&&!i||o.getTime()<t&&i)&&n},e.isDateValid=function(e){return t(e).isValid()},e.isMidnight=k,e.isMonthCell=An,e.isOverlappingSubTreeRoot=ce,e.isPossibleChild=te,e.isShadedAppointment=function(e,n,a){var o=e.data,r=t(n);return o.allDay?r.isAfter(o.endDate,"day")&&a:!!r.isAfter(o.endDate)&&a},e.isTimeTableElementsMetaActual=function(e,t){return G(e,t,e.length)},e.monthCellsData=function(e,n,a,o){void 0===a&&(a=1);for(var r=t(e),i=[r.month()];i.length<a;)i.push(r.add(1,"months").month());for(var l=t(e).date(1),c=l.day()-n,u=l.day(c).day()||7,s=t(e).subtract(1,"months"),p=s.daysInMonth()-(u-1),d=t().year(s.year()).month(s.month()).date(p).startOf("day"),m=[];m.length<Math.trunc(31*a/7)+2;){for(var f=[];f.length<7;)f.push({startDate:d.toDate(),endDate:d.clone().add(1,"day").toDate(),otherMonth:-1===i.findIndex((function(e){return e===d.month()})),today:!!o&&t(o).isSame(d,"date")}),d.add(1,"day");m.push(f)}return m},e.navigateByOneMonth=function(e,n){return t(e)[n?"subtract":"add"](1,"month").toDate()},e.normalizeAppointmentDuration=Le,e.preCommitChanges=function(e,t,n){if(null===e)switch(n){case _.ALL:return hn(t);case _.CURRENT:return gn(t);case _.CURRENT_AND_FOLLOWING:return yn(t)}else switch(n){case _.ALL:return vn(t,e);case _.CURRENT:return Cn(t,e);case _.CURRENT_AND_FOLLOWING:return En(t,e)}return{}},e.prepareToGroupIntoBlocks=le,e.prepareVerticalViewCellsData=function(e,t){for(var n=(null===t||void 0===t?void 0:t.length)||1,a=[],o=e.length/n,r=0;r<n;r+=1)a.push(e.slice(r*o,(r+1)*o));return a},e.rearrangeResources=Mt,e.reduceAppointmentByDayBounds=Pe,e.setAppointmentData=function(e,t){return t.appointmentData},e.setAppointmentMeta=function(e,t){return{target:t.target,data:t.data}},e.setCurrentViewName=function(e,t){return t},e.sliceAppointmentByDay=xe,e.sliceAppointmentByWeek=Tt,e.sliceAppointmentsByBoundaries=Ue,e.sliceAppointmentsByDays=Ke,e.sortAppointments=F,e.sortFilteredResources=function(e,t){return t.map((function(t){var n=t.resourceName;return e.find((function(e){return e.fieldName===n}))}))},e.startEditAppointment=function(e,t){return t},e.startViewDate=function(e){return t(e[0][0].startDate).toDate()},e.stopEditAppointment=function(){},e.timeBoundariesByDrag=Nn,e.timeBoundariesByResize=Rn,e.timeScale=q,e.toPercentage=s,e.toggleExpandedGroups=function(e,t){var n=t.groupKey,o=a.slice(e.expandedGroups),r=o.indexOf(n);return r>-1?o.splice(r,1):o.push(n),{expandedGroups:o}},e.unwrapGroups=Z,e.updateAllDayCellElementsMeta=function(e,t,n,a,o,r,i){if(Yt(t,n,i,o))return e;for(var l=Ft(t,r,a),c=l.groupCount,u=l.timeTableWidth,s=l.groupSize,p=l.validGetCellRects,d=c;d>0;)d-=1,p.splice(s*d+u*(d+1),s);return{parentRect:t.parentRect,getCellRects:p}},e.updateBlocksLeft=Se,e.updateBlocksProportions=we,e.updateGroupingWithMainResource=function(e,t){return e||[{resourceName:t.find((function(e){return e.isMain})).fieldName}]},e.updateTimeTableCellElementsMeta=function(e,t,n,a,o,r){if(Yt(e,t,r,a))return e;for(var i=Ft(e,o,n),l=i.groupCount,c=i.timeTableWidth,u=i.groupSize,s=i.validGetCellRects,p=l;p>0;)p-=1,s.splice(p*(c+u),c);return{parentRect:e.parentRect,getCellRects:s}},e.validateResources=function(e,t,n){var a=!!t,o=0;return e.map((function(e,r){var i=e.fieldName,l=a&&t===i||0===r&&!a,c=e.title||i,u=!!e.allowMultiple;return{fieldName:i,isMain:l,title:c,allowMultiple:u,instances:e.instances.map((function(e){var t=e.color||n[o%n.length];return e.color||(o+=1),{id:e.id,color:t,fieldName:i,text:e.text||c||i,title:c,allowMultiple:u,isMain:l}}))}}))},e.verticalTimeTableRects=Ut,e.viewBoundText=function(e,n,a,o,i,l){return"month"!==a?function(e,n,a,o){var i=t(e),l=t(n);return i.isSame(l,"day")?a(i.toDate(),r(r({},w),o)):i.isSame(l,"year")?i.isSame(l,"month")?a(i.toDate(),D)+"-"+a(l.toDate(),D)+" "+a(l.toDate(),T):a(i.toDate(),O)+" - "+a(l.toDate(),S):a(i.toDate(),A)+" - "+a(l.toDate(),A)}(e,n,l,"weekdayInterval"===a?x:L):function(e,n,a){var o=t(e);if(1===n)return a(o.toDate(),T);var r=o.clone().add(n-1,"month");return o.isSame(r,"year")?a(o.toDate(),b)+"-"+a(r.toDate(),R):a(o.toDate(),N)+" - "+a(r.toDate(),N)}(o,i,l)},e.viewCellsData=function(e,n,a,o,r,i,l,c){var u=V(e,n,a,o),s=q(e,n,r,i,l,o),p=t(c);return s.reduce((function(e,n){var a=t(n.start),o=t(n.end),r=u.reduce((function(e,n){var r=t(n).hours(a.hours()).minutes(a.minutes()).toDate(),i=t(n).hours(o.hours()).minutes(o.minutes()).toDate(),l=p.isSame(r,"day");return e.push({startDate:r,endDate:i,today:l}),e}),[]);return e.push(r),e}),[])},e.viewPredicate=m,Object.defineProperty(e,"__esModule",{value:!0})}(t,n("4f0dfcf9dfa819c812e6"),n("48e5ee888efeba112a23"),n("99ffc1a3e7c9f655c544"))},cbfe2f6349d8982779a0:function(e,t,n){!function(e,t,n,a,o){"use strict";if("undefined"===typeof r)var r={env:{}};var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function l(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c=function(){return(c=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function u(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,o,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(e){o={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function s(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}var p=t.createContext(null),d=t.createContext((function(){return[]})),m=t.createContext(null),f=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.indexes={},t.memoize=function(e,n){if(t.indexes[e])return t.indexes[e];var a=function(){return s(n(),[e])};return t.indexes[e]=a,a},t}return l(n,e),n.prototype.render=function(){var e=this,n=this.props.children;return t.createElement(d.Consumer,null,(function(a){return t.Children.map(n,(function(n,o){if(!n||!n.type)return n;var r=e.memoize(o,a);return t.createElement(d.Provider,{key:String(o),value:r},n)}))}))},n}(t.PureComponent),g="dxcore_pluginHost_context",h="dxcore_position_context",y=Symbol("rerenderTemplate"),v=Symbol("rerenderTemplateScope"),C=Symbol("updateConnection"),E=function(e,n){return function(a){return function(o){return t.createElement(e.Consumer,null,(function(e){var r;return t.createElement(a,c({},o,((r={})[n]=e,r)))}))}}},D=function(e){return E(p,g)(E(d,h)(e))},b=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return l(n,e),n.prototype.componentDidMount=function(){var e=this.props,t=e.dxcore_pluginHost_context,n=e.dxcore_position_context,a=this.props,o=a.name,r=a.dependencies;this.plugin={position:n,name:o,dependencies:r,container:!0},t.registerPlugin(this.plugin),t.ensureDependencies()},n.prototype.componentDidUpdate=function(){var e=this.props;e.dxcore_pluginHost_context.ensureDependencies()},n.prototype.componentWillUnmount=function(){var e=this.props;e.dxcore_pluginHost_context.unregisterPlugin(this.plugin)},n.prototype.render=function(){var e=this.props.children;return t.createElement(f,null,e)},n}(t.PureComponent),T=D(b),O=function(e){var t=e.name,n=e.params;if(t){var a=e.dxcore_pluginHost_context;return{params:n,templates:a.collect(t+"Template").filter((function(e){return e.predicate(n)})).reverse()}}var o=e.dxcore_templateHost_context;return{params:n||o.params(),templates:o.templates()}},R=function(e){function a(){var t,n=null!==e&&e.apply(this,arguments)||this;return n.subscription=((t={})[y]=function(e){n.template&&n.template.id===e&&n.forceUpdate()},t[v]=function(e){n.props.name===e&&n.forceUpdate()},t),n.template=null,n.params={},n}return l(a,e),a.prototype.componentDidMount=function(){var e=this.props;e.dxcore_pluginHost_context.registerSubscription(this.subscription)},a.prototype.shouldComponentUpdate=function(e){var t=O(e),a=t.params,o=t.templates,r=this.props.children,i=u(o,1)[0];return r!==e.children||this.template!==i||!n.shallowEqual(this.params,a)},a.prototype.componentWillUnmount=function(){var e=this.props;e.dxcore_pluginHost_context.unregisterSubscription(this.subscription)},a.prototype.render=function(){var e,n=this,a=O(this.props),o=a.params,r=a.templates;this.params=o,e=u(r,1),this.template=e[0];var i=r.slice(1),l=null;this.template&&(l=(0,this.template.children)()||null)&&"function"===typeof l&&(l=l(o));var c=this.props.children;return t.createElement(m.Provider,{value:{templates:function(){return i},params:function(){return n.params}}},c?c(l):l)},a}(t.Component),N=E(p,g)(E(m,"dxcore_templateHost_context")(R)),w=function(e){function a(t){var a=e.call(this,t)||this;return a.host=new n.PluginHost,a}return l(a,e),a.prototype.render=function(){var e=this.props.children;return t.createElement(p.Provider,{value:this.host},t.createElement(f,null,e),t.createElement(N,{name:"root"}))},a}(t.PureComponent),S=function(e,t){void 0===t&&(t=function(t){return e.get(t+"Getter")});var n={};return{getters:"undefined"!==typeof Proxy?new Proxy({},{get:function(e,a){if("string"===typeof a){var o=t(a);return n[a]=o,o}},getOwnPropertyDescriptor:function(e,t){return{configurable:!0,enumerable:!0,value:this.get(e,t,void 0)}},ownKeys:function(){return e.knownKeys("Getter")}}):e.knownKeys("Getter").reduce((function(e,a){return Object.defineProperty(e,a,{get:function(){var e=t(a);return n[a]=e,e}}),e}),{}),trackedDependencies:n}},A=function(e,t,a){void 0===a&&(a=function(t){return e.get(t+"Getter")});var o=Object.keys(t).reduce((function(e,t){var n;return Object.assign(e,((n={})[t]=a(t),n))}),{});return!n.shallowEqual(t,o)},x=function(e,t){return void 0===t&&(t=function(t){return e.collect(t+"Action").slice().reverse()[0]}),"undefined"!==typeof Proxy?new Proxy({},{get:function(e,n){if("string"===typeof n)return t(n)},getOwnPropertyDescriptor:function(e,t){return{configurable:!0,enumerable:!0,value:this.get(e,t,void 0)}},ownKeys:function(){return e.knownKeys("Action")}}):e.knownKeys("Action").reduce((function(e,n){return Object.defineProperty(e,n,{get:function(){return t(n)}}),e}),{})},I=function(e){function t(t){var n,a=e.call(this,t)||this,o=t,r=o.dxcore_pluginHost_context,i=o.dxcore_position_context,l=t.name;return a.plugin=((n={position:function(){return i()}})[l+"Action"]=function(e){var t=a.props.action,n=S(r,(function(e){return r.get(e+"Getter",a.plugin)})).getters,o=e;t(e,n,x(r,(function(e){return e===l?function(e){o=e}:r.collect(e+"Action",a.plugin).slice().reverse()[0]})));var i=r.collect(l+"Action",a.plugin).slice().reverse()[0];i&&i(o)},n),r.registerPlugin(a.plugin),a}return l(t,e),t.prototype.componentWillUnmount=function(){var e=this.props;e.dxcore_pluginHost_context.unregisterPlugin(this.plugin)},t.prototype.render=function(){return null},t}(t.PureComponent),P=D(I),L=function(e){function t(t){var n,a,o,r=e.call(this,t)||this,i=t,l=i.dxcore_pluginHost_context,c=i.dxcore_position_context,u=t.name,s={};return r.plugin=((n={position:function(){return c()}})[u+"Getter"]=function(e){var t=r.props,n=t.value,i=t.computed;if(void 0===i)return n;var c=function(t){return t===u?e:l.get(t+"Getter",r.plugin)};if(i===a&&!A(l,s,c))return o;var p=S(l,c),d=p.getters,m=p.trackedDependencies,f=x(l);return a=i,s=m,o=i(d,f)},n),l.registerPlugin(r.plugin),r}return l(t,e),t.prototype.componentDidUpdate=function(){var e=this.props;e.dxcore_pluginHost_context.broadcast(C)},t.prototype.componentWillUnmount=function(){var e=this.props;e.dxcore_pluginHost_context.unregisterPlugin(this.plugin)},t.prototype.render=function(){return null},t}(t.PureComponent),_=D(L),k=0,M=function(e){function t(t){var n,a=e.call(this,t)||this;a.children=function(){},k+=1,a.id=k;var o=t,r=o.dxcore_pluginHost_context,i=o.dxcore_position_context,l=t.name,c=t.predicate;return a.plugin=((n={position:function(){return i()}})[l+"Template"]={id:a.id,predicate:function(e){return!c||c(e)},children:function(){return a.props.children}},n),r.registerPlugin(a.plugin),r.broadcast(v,l),a}return l(t,e),t.prototype.componentDidUpdate=function(){var e=this.props;e.dxcore_pluginHost_context.broadcast(y,this.id)},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.dxcore_pluginHost_context,n=this.props.name;t.unregisterPlugin(this.plugin),t.broadcast(v,n)},t.prototype.render=function(){return null},t}(t.PureComponent),B=D(M),V=function(e){function t(t,n){var a,o=e.call(this,t,n)||this;return o.trackedDependencies={},o.subscription=((a={})[C]=function(){return o.updateConnection()},a),o}return l(t,e),t.prototype.componentDidMount=function(){this.context.registerSubscription(this.subscription)},t.prototype.componentWillUnmount=function(){this.context.unregisterSubscription(this.subscription)},t.prototype.updateConnection=function(){var e=this.context;A(e,this.trackedDependencies)&&this.forceUpdate()},t.prototype.render=function(){var e=this.context,t=this.props.children,n=S(e),a=n.getters,o=n.trackedDependencies;return this.trackedDependencies=o,t(a,x(e))},t}(t.Component);V.contextType=p;var q,G,W=V,j=function(){function e(e){this.delegate=e,this.touchStartTimeout=null,this.dragging=!1}return e.prototype.isDragging=function(){return this.dragging},e.prototype.isWaiting=function(){return!!this.touchStartTimeout},e.prototype.cancelWaiting=function(){clearTimeout(this.touchStartTimeout),this.touchStartTimeout=void 0},e.prototype.start=function(e){var t=this,n=e.touches[0],a=n.clientX,o=n.clientY;this.touchStartTimeout=setTimeout((function(){t.delegate.onStart({x:a,y:o}),t.dragging=!0}),180)},e.prototype.move=function(e){if(this.cancelWaiting(),this.dragging){var t=e.touches[0],n=t.clientX,a=t.clientY;e.preventDefault(),this.delegate.onMove({x:n,y:a})}},e.prototype.end=function(e){if(this.cancelWaiting(),this.dragging){var t=e.changedTouches[0],n=t.clientX,a=t.clientY;this.delegate.onEnd({x:n,y:a})}this.mouseInitialOffset=null,this.dragging=!1},e}(),H=function(e,t){var n={pointerEvents:e?"all":"none"};e&&t&&(n=c(c({},n),{cursor:t})),q||(n=c(c({},n),{position:"fixed",top:0,right:0,left:0,bottom:0,opacity:0,zIndex:2147483647}),q=document.createElement("div"),document.body.appendChild(q)),Object.keys(n).forEach((function(e){q.style[e]=n[e]}))},Y=function(){var e=window.getSelection&&window.getSelection();e&&(e.empty?e.empty():e.removeAllRanges&&e.removeAllRanges())},F=function(e,t,n){return Math.max(Math.min(e,n),t)},z=function(){function e(e){this.delegate=e,this.mouseInitialOffset=null,this.dragging=!1}return e.prototype.isDragging=function(){return this.dragging},e.prototype.start=function(e){var t=e.clientX,n=e.clientY;this.e=e,this.mouseInitialOffset={x:t,y:n}},e.prototype.move=function(e){var t=e.clientX,n=e.clientY,a=!1;if(!this.dragging&&this.mouseInitialOffset&&function(e,t){var n=e.x,a=e.y,o=t.x,r=t.y;return F(o,n-10,n+10)!==o||F(r,a-10,a+10)!==r}(this.mouseInitialOffset,{x:t,y:n})&&(this.delegate.onStart(this.mouseInitialOffset),Y(),a=!0,this.dragging=!0),this.dragging&&(e.preventDefault(),this.delegate.onMove({x:t,y:n})),a){var o=document.elementFromPoint(t,n),r=o?window.getComputedStyle(o).cursor:null;H(!0,r)}},e.prototype.end=function(e){if(this.dragging){var t=e.clientX,n=e.clientY;H(!1),this.delegate.onEnd({x:t,y:n})}this.mouseInitialOffset=null,this.dragging=!1},e}(),U=function(){return G||(G=new n.EventEmitter,["mousemove","mouseup","touchmove","touchend","touchcancel"].forEach((function(e){return window.addEventListener(e,(function(t){return G.emit([e,t])}),{passive:!1})}))),G},K=Symbol("draggingHandled"),Z=function(e){function t(t,n){var o=e.call(this,t,n)||this,r={onStart:function(e){var t=e.x,n=e.y,r=o.props.onStart;r&&a.unstable_batchedUpdates((function(){r({x:t,y:n})}))},onMove:function(e){var t=e.x,n=e.y,r=o.props.onUpdate;r&&a.unstable_batchedUpdates((function(){r({x:t,y:n})}))},onEnd:function(e){var t=e.x,n=e.y,r=o.props.onEnd;r&&a.unstable_batchedUpdates((function(){r({x:t,y:n})}))}};return o.mouseStrategy=new z(r),o.touchStrategy=new j(r),o.mouseDownListener=o.mouseDownListener.bind(o),o.touchStartListener=o.touchStartListener.bind(o),o.globalListener=o.globalListener.bind(o),o}return l(t,e),t.prototype.componentDidMount=function(){U().subscribe(this.globalListener),this.setupNodeSubscription()},t.prototype.shouldComponentUpdate=function(e){var t=this.props.children;return e.children!==t},t.prototype.componentDidUpdate=function(){this.setupNodeSubscription()},t.prototype.componentWillUnmount=function(){U().unsubscribe(this.globalListener)},t.prototype.setupNodeSubscription=function(){var e=a.findDOMNode(this);e&&(e.removeEventListener("mousedown",this.mouseDownListener),e.removeEventListener("touchstart",this.touchStartListener),e.addEventListener("mousedown",this.mouseDownListener),e.addEventListener("touchstart",this.touchStartListener,{passive:!0}))},t.prototype.mouseDownListener=function(e){this.touchStrategy.isWaiting()||e[K]||(e.preventDefault(),this.mouseStrategy.start(e),e[K]=!0)},t.prototype.touchStartListener=function(e){e[K]||(this.touchStrategy.start(e),e[K]=!0)},t.prototype.globalListener=function(e){var t=u(e,2),n=t[0],a=t[1];switch(n){case"mousemove":this.mouseStrategy.move(a);break;case"mouseup":this.mouseStrategy.end(a);break;case"touchmove":this.touchStrategy.move(a);break;case"touchend":case"touchcancel":this.touchStrategy.end(a)}(this.mouseStrategy.isDragging()||this.touchStrategy.isDragging())&&Y()},t.prototype.render=function(){return this.props.children},t}(t.Component),X=t.createContext(null),Q=function(){function e(){this.payload=null,this.dragEmitter=new n.EventEmitter}return e.prototype.start=function(e,t){this.payload=e,this.dragEmitter.emit({clientOffset:t,payload:this.payload})},e.prototype.update=function(e){this.dragEmitter.emit({clientOffset:e,payload:this.payload})},e.prototype.end=function(e){this.dragEmitter.emit({clientOffset:e,payload:this.payload,end:!0}),this.payload=null},e}(),J={onChange:function(e){e.payload,e.clientOffset}},$=function(e){function n(t){var n=e.call(this,t)||this,a=n.props.onChange;return n.dragDropProvider=new Q,n.dragDropProvider.dragEmitter.subscribe((function(e){var t=e.payload,n=e.clientOffset,o=e.end;a({payload:o?null:t,clientOffset:o?null:n})})),n}return l(n,e),n.prototype.shouldComponentUpdate=function(e){var t=this.props.children;return e.children!==t},n.prototype.render=function(){var e=this.props.children;return t.createElement(X.Provider,{value:this.dragDropProvider},e)},n.defaultProps=J,n}(t.Component),ee={onStart:function(e){e.clientOffset},onUpdate:function(e){e.clientOffset},onEnd:function(e){e.clientOffset}},te=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return l(n,e),n.prototype.shouldComponentUpdate=function(e){var t=this.props.children;return e.children!==t},n.prototype.render=function(){var e=this.context,n=this.props,a=n.onStart,o=n.onUpdate,r=n.onEnd,i=n.payload,l=n.children;return t.createElement(Z,{onStart:function(t){var n=t.x,o=t.y;e.start(i,{x:n,y:o}),a({clientOffset:{x:n,y:o}})},onUpdate:function(t){var n=t.x,a=t.y;e.update({x:n,y:a}),o({clientOffset:{x:n,y:a}})},onEnd:function(t){var n=t.x,a=t.y;e.end({x:n,y:a}),r({clientOffset:{x:n,y:a}})}},l)},n.defaultProps=ee,n}(t.Component);te.contextType=X;var ne=function(e,t,n){return Math.max(Math.min(e,n),t)},ae={onEnter:function(e){},onOver:function(e){},onLeave:function(e){},onDrop:function(e){}},oe=function(e){function n(t){var n=e.call(this,t)||this;return n.isOver=!1,n.handleDrag=n.handleDrag.bind(n),n}return l(n,e),n.prototype.componentDidMount=function(){this.context.dragEmitter.subscribe(this.handleDrag)},n.prototype.shouldComponentUpdate=function(e){var t=this.props.children;return e.children!==t},n.prototype.componentWillUnmount=function(){this.context.dragEmitter.unsubscribe(this.handleDrag)},n.prototype.handleDrag=function(e){var t=e.payload,n=e.clientOffset,o=e.end,r=a.findDOMNode(this).getBoundingClientRect(),i=r.left,l=r.top,c=r.right,u=r.bottom,s=this.props,p=s.onDrop,d=s.onEnter,m=s.onLeave,f=s.onOver,g=n&&ne(n.x,i,c)===n.x&&ne(n.y,l,u)===n.y;!this.isOver&&g&&d({payload:t,clientOffset:n}),this.isOver&&g&&f({payload:t,clientOffset:n}),this.isOver&&!g&&m({payload:t,clientOffset:n}),g&&o&&p({payload:t,clientOffset:n}),this.isOver=g&&!o},n.prototype.render=function(){var e=this.props.children;return t.Children.only(e)},n.defaultProps=ae,n}(t.Component);oe.contextType=X;var re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.render=function(){return this.props.children},t}(t.PureComponent),ie={root:{position:"relative"},triggersRoot:{position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",zIndex:-1,visibility:"hidden",opacity:0},expandTrigger:{position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"auto"},contractTrigger:{position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"auto",minHeight:"1px",minWidth:"1px"},contractNotifier:{position:"absolute",top:0,left:0,width:"200%",height:"200%",minHeight:"2px",minWidth:"2px"}},le=function(e){function n(n){var a=e.call(this,n)||this;return a.getSize=function(){return{height:a.rootNode.clientHeight,width:a.rootNode.clientWidth}},a.setupListeners=a.setupListeners.bind(a),a.rootRef=t.createRef(),a}return l(n,e),n.prototype.componentDidMount=function(){this.createListeners(),this.setupListeners()},n.prototype.componentDidUpdate=function(){var e=this.props.scrollTop;e>-1&&(this.rootNode.scrollTop=e)},n.prototype.componentWillUnmount=function(){this.expandTrigger.removeEventListener("scroll",this.setupListeners),this.contractTrigger.removeEventListener("scroll",this.setupListeners)},n.prototype.setupListeners=function(){var e=this.getSize(),t=e.width,n=e.height;this.contractTrigger.scrollTop=n,this.contractTrigger.scrollLeft=t,this.expandNotifier.style.width=t+2+"px",this.expandNotifier.style.height=n+2+"px",this.expandTrigger.scrollTop=2,this.expandTrigger.scrollLeft=2,(0,this.props.onSizeChange)(e)},n.prototype.createListeners=function(){this.rootNode=a.findDOMNode(this.rootRef.current),this.triggersRoot=document.createElement("div"),Object.assign(this.triggersRoot.style,ie.triggersRoot),this.rootNode.appendChild(this.triggersRoot),this.expandTrigger=document.createElement("div"),Object.assign(this.expandTrigger.style,ie.expandTrigger),this.expandTrigger.addEventListener("scroll",this.setupListeners),this.triggersRoot.appendChild(this.expandTrigger),this.expandNotifier=document.createElement("div"),this.expandTrigger.appendChild(this.expandNotifier),this.contractTrigger=document.createElement("div"),Object.assign(this.contractTrigger.style,ie.contractTrigger),this.contractTrigger.addEventListener("scroll",this.setupListeners),this.triggersRoot.appendChild(this.contractTrigger),this.contractNotifier=document.createElement("div"),Object.assign(this.contractNotifier.style,ie.contractNotifier),this.contractTrigger.appendChild(this.contractNotifier)},n.prototype.render=function(){var e=this.props,n=(e.onSizeChange,e.containerComponent),a=e.style,o=(e.scrollTop,function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n}(e,["onSizeChange","containerComponent","style","scrollTop"]));return t.createElement(re,{ref:this.rootRef},t.createElement(n,c({style:a?c(c({},ie.root),a):ie.root},o)))},n.defaultProps={containerComponent:"div"},n}(t.PureComponent),ce=o.shape({current:o.instanceOf("undefined"!==typeof Element?Element:Object)});e.Action=P,e.DragDropProvider=$,e.DragSource=te,e.Draggable=Z,e.DropTarget=oe,e.Getter=_,e.Plugin=T,e.PluginHost=w,e.RefHolder=re,e.RefType=ce,e.Sizer=le,e.Template=B,e.TemplateConnector=W,e.TemplatePlaceholder=N,e.clearSelection=Y,e.connectProps=function(e,n){var a=n(),o=new Set,r=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return l(r,n),r.prototype.componentDidMount=function(){o.add(this)},r.prototype.componentWillUnmount=function(){o.delete(this)},r.prototype.render=function(){return t.createElement(e,c({},this.props,a))},r}(t.PureComponent);return r.update=function(){a=n(),Array.from(o.values()).forEach((function(e){return e.forceUpdate()}))},r},e.createStateHelper=function(e,t){void 0===t&&(t={});var n,a=null,o=null,r=null,i=!1,l=function(l,u,s){var p=function(e){null===a&&(a=e);var t=l(c({},e),u),d=c(c({},e),t);return"function"===typeof s&&s(d,e),p===n&&(o!==a&&(r=d,i||(o=a,i=!0)),a=null),t};n=p,e.setState(p,(function(){var e,n;i&&(e=r,n=o,Object.keys(t).forEach((function(a){var o=t[a]();o&&e[a]!==n[a]&&o(e[a])})),i=!1)}))};return{applyReducer:l,applyFieldReducer:function(e,t,n){l((function(a){var o;return(o={})[e]=t(a[e],n),o}))}}},e.withComponents=function(e){return function(n){var a={},o={},r=n.components;return Object.entries(r).forEach((function(t){var r=u(t,2),i=r[0],l=r[1],c=e[l];c&&c!==n[l]&&(a[i]=c),o[l]=c||n[l]})),Object.keys(a).length>0?function(e,n,a){var o=function(a){function o(){return null!==a&&a.apply(this,arguments)||this}return l(o,a),o.prototype.render=function(){return t.createElement(e,c({},n,this.props))},o}(t.PureComponent);return o.components=e.components,Object.assign(o,a),o}(n,a,o):n}},Object.defineProperty(e,"__esModule",{value:!0})}(t,n("8af190b70a6bc55c6f1b"),n("99ffc1a3e7c9f655c544"),n("63f14ac74ce296f77f4d"),n("8a2d1b95e05b6a321e74"))}}]);

Zerion Mini Shell 1.0