text: /*
  @license
  dhtmlxScheduler.Net v.3.4.1 Professional Evaluation
  
  This software is covered by DHTMLX Evaluation License. Contact sales@dhtmlx.com to get Commercial or Enterprise license. Usage without proper license is prohibited.
  
  (c) Dinamenta, UAB.
  */
  Scheduler.plugin(function(e){!function(){e.config.all_timed="short",e.config.all_timed_month=!1;var t=function(e){return!((e.end_date-e.start_date)/36e5>=24)};e._safe_copy=function(t){var i=null,a=e._copy_event(t);return t.event_pid&&(i=e.getEvent(t.event_pid)),i&&i.isPrototypeOf(t)&&(delete a.event_length,delete a.event_pid,delete a.rec_pattern,delete a.rec_type),a};var i=e._pre_render_events_line,a=e._pre_render_events_table,n=function(e,t){return this._table_view?a.call(this,e,t):i.call(this,e,t);
  };e._pre_render_events_line=e._pre_render_events_table=function(i,a){function r(e){var t=s(e.start_date);return+e.end_date>+t}function s(t){var i=e.date.add(t,1,"day");return i=e.date.date_part(i)}function d(t,i){var a=e.date.date_part(new Date(t));return a.setHours(i),a}if(!this.config.all_timed||this._table_view&&"month"!=this._mode||"month"==this._mode&&!this.config.all_timed_month)return n.call(this,i,a);for(var o=0;o<i.length;o++){var l=i[o];if(!l._timed)if("short"!=this.config.all_timed||t(l)){
  var _=this._safe_copy(l);_.start_date=new Date(_.start_date),r(l)?(_.end_date=s(_.start_date),24!=this.config.last_hour&&(_.end_date=d(_.start_date,this.config.last_hour))):_.end_date=new Date(l.end_date);var h=!1;_.start_date<this._max_date&&_.end_date>this._min_date&&_.start_date<_.end_date&&(i[o]=_,h=!0);var c=this._safe_copy(l);if(c.end_date=new Date(c.end_date),c.start_date<this._min_date?c.start_date=d(this._min_date,this.config.first_hour):c.start_date=d(s(l.start_date),this.config.first_hour),
  c.start_date<this._max_date&&c.start_date<c.end_date){if(!h){i[o--]=c;continue}i.splice(o+1,0,c)}}else"month"!=this._mode&&i.splice(o--,1)}var u="move"==this._drag_mode?!1:a;return n.call(this,i,u)};var r=e.get_visible_events;e.get_visible_events=function(e){return this.config.all_timed&&this.config.multi_day?r.call(this,!1):r.call(this,e)},e.attachEvent("onBeforeViewChange",function(t,i,a,n){return e._allow_dnd="day"==a||"week"==a,!0}),e._is_main_area_event=function(e){return!!(e._timed||this.config.all_timed===!0||"short"==this.config.all_timed&&t(e));
  };var s=e.updateEvent;e.updateEvent=function(t){var i,a,n=e.getEvent(t);n&&(i=e.config.all_timed&&!(e.isOneDayEvent(e._events[t])||e.getState().drag_id),i&&(a=e.config.update_render,e.config.update_render=!0)),s.apply(e,arguments),n&&i&&(e.config.update_render=a)}}()});