(i)
| 41 | `))}),this._exrule.forEach(function(n){t=t.concat(n.toString().split(` |
| 42 | `).map(function(s){return s.replace(/^RRULE:/,"EXRULE:")}).filter(function(s){return!/^DTSTART/.test(s)}))}),this._rdate.length&&t.push(St("RDATE",this._rdate,this.tzid())),this._exdate.length&&t.push(St("EXDATE",this._exdate,this.tzid())),t},i.prototype.toString=function(){return this.valueOf().join(` |
| 43 | `)},i.prototype.clone=function(){var t=new i(!!this._cache);return this._rrule.forEach(function(n){return t.rrule(n.clone())}),this._exrule.forEach(function(n){return t.exrule(n.clone())}),this._rdate.forEach(function(n){return t.rdate(new Date(n.getTime()))}),this._exdate.forEach(function(n){return t.exdate(new Date(n.getTime()))}),t},i}(z);function Et(e,i){if(!(e instanceof z))throw new TypeError(String(e)+" is not RRule instance");F(i.map(String),String(e))||i.push(e)}function Dt(e,i){if(!(e instanceof Date))throw new TypeError(String(e)+" is not Date instance");F(i.map(Number),Number(e))||(i.push(e),De(i))}function St(e,i,t){var n=!t||t.toUpperCase()==="UTC",s=n?"".concat(e,":"):"".concat(e,";TZID=").concat(t,":"),a=i.map(function(o){return Ie(o.valueOf(),n)}).join(",");return"".concat(s).concat(a)}class Ya{constructor(i){this._scheduler=i}getNode(){const i=this._scheduler;return this._tooltipNode||(this._tooltipNode=document.createElement("div"),this._tooltipNode.className="dhtmlXTooltip scheduler_tooltip tooltip",i._waiAria.tooltipAttr(this._tooltipNode)),i.config.rtl?this._tooltipNode.classList.add("dhtmlXTooltip_rtl"):this._tooltipNode.classList.remove("dhtmlXTooltip_rtl"),this._tooltipNode}setViewport(i){return this._root=i,this}show(i,t){const n=this._scheduler,s=n.$domHelpers,a=document.body,o=this.getNode();if(s.isChildOf(o,a)||(this.hide(),a.appendChild(o)),this._isLikeMouseEvent(i)){const _=this._calculateTooltipPosition(i);t=_.top,i=_.left}return o.style.top=t+"px",o.style.left=i+"px",n._waiAria.tooltipVisibleAttr(o),this}hide(){const i=this._scheduler,t=this.getNode();return t&&t.parentNode&&t.parentNode.removeChild(t),i._waiAria.tooltipHiddenAttr(t),this}setContent(i){return this.getNode().innerHTML=i,this}_isLikeMouseEvent(i){return!(!i||typeof i!="object")&&"clientX"in i&&"clientY"in i}_getViewPort(){return this._root||document.body}_calculateTooltipPosition(i){const t=this._scheduler,n=t.$domHelpers,s=this._getViewPortSize(),a=this.getNode(),o={top:0,left:0,width:a.offsetWidth,height:a.offsetHeight,bottom:0,right:0},_=t.config.tooltip_offset_x,r=t.config.tooltip_offset_y,d=document.body,l=n.getRelativeEventPosition(i,d),h=n.getNodePosition(d);l.y+=h.y,o.top=l.y,o.left=l.x,o.top+=r,o.left+=_,o.bottom=o.top+o.height,o.right=o.left+o.width;const p=window.scrollY+d.scrollTop;return o.top<s.top-p?(o.top=s.top,o.bottom=o.top+o.height):o.bottom>s.bottom&&(o.bottom=s.bottom,o.top=o.bottom-o.height),o.left<s.left?(o.left=s.left,o.right=s.left+o.width):o.right>s.right&&(o.right=s.right,o.left=o.right-o.width),l.x>=o.left&&l.x<=o.right&&(o.left=l.x-o.width-_,o.right=o.left+o.width),l.y>=o.top&&l.y<=o.bottom&&(o.top=l.y-o.height-r,o.bottom=o.top+o.height),o.left<0&&(o.left=0),o.right<0&&(o.right=0),o}_getViewPortSize(){const i=this._scheduler,t=i.$domHelpers,n=this._getViewPort();let s,a=n,o=window.scrollY+document.body.scrollTop,_=window.scrollX+document.body.scrollLeft;return n===i.$event_data?(a=i.$event,o=0,_=0,s=t.getNodePosition(i.$event)):s=t.getNodePosition(a),{left:s.x+_,top:s.y+o,width:s.width,height:s.height,bottom:s.y+s.height+o,right:s.x+s.width+_}}}class Va{constructor(i){this._listeners={},this.tooltip=new Ya(i),this._scheduler=i,this._domEvents=i._createDomEventScope(),this._initDelayedFunctions()}destructor(){this.tooltip.hide(),this._domEvents.detachAll()}hideTooltip(){this.delayHide()}attach(i){let t=document.body;const n=this._scheduler,s=n.$domHelpers;i.global||(t=n.$root);let a=null;const o=_=>{const r=s.getTargetNode(_),d=s.closest(r,i.selector);if(s.isChildOf(r,this.tooltip.getNode()))return;const l=()=>{a=d,i.onmouseenter(_,d)};n._mobile&&n.config.touch_tooltip&&(d?l():i.onmouseleave(_,d)),a?d&&d===a?i.onmousemove(_,d):(i.onmouseleave(_,a),a=null,d&&d!==a&&l()):d&&l()};this.detach(i.selector),this._domEvents.attach(t,"mousemove",o),this._listeners[i.selector]={node:t,handler:o}}detach(i){const t=this._listeners[i];t&&this._domEvents.detach(t.node,"mousemove",t.handler)}tooltipFor(i){const t=n=>{let s=n;return document.createEventObject&&!document.createEvent&&(s=document.createEventObject(n)),s};this._initDelayedFunctions(),this.attach({selector:i.selector,global:i.global,onmouseenter:(n,s)=>{const a=i.html(n,s);a&&this.delayShow(t(n),a)},onmousemove:(n,s)=>{const a=i.html(n,s);a?this.delayShow(t(n),a):(this.delayShow.$cancelTimeout(),this.delayHide())},onmouseleave:()=>{this.delayShow.$cancelTimeout(),this.delayHide()}})}_initDelayedFunctions(){const i=this._scheduler;this.delayShow&&this.delayShow.$cancelTimeout(),this.delayHide&&this.delayHide.$cancelTimeout(),this.tooltip.hide(),this.delayShow=ne.delay((t,n)=>{i.callEvent("onBeforeTooltip",[t])===!1?this.tooltip.hide():(this.tooltip.setContent(n),this.tooltip.show(t))},i.config.tooltip_timeout||1),this.delayHide=ne.delay(()=>{this.delayShow.$cancelTimeout(),this.tooltip.hide()},i.config.tooltip_hide_timeout||1)}}const Fa={active_links:function(e){e.config.active_link_view="day",e._active_link_click=function(i){var t=i.target.getAttribute("data-link-date"),n=e.date.str_to_date(e.config.api_date,!1,!0);if(t)return e.setCurrentView(n(t),e.config.active_link_view),i&&i.preventDefault&&i.preventDefault(),!1},e.attachEvent("onTemplatesReady",function(){var i=function(n,s){s=s||n+"_scale_date",e.templates["_active_links_old_"+s]||(e.templates["_active_links_old_"+s]=e.templates[s]);var a=e.templates["_active_links_old_"+s],o=e.date.date_to_str(e.config.api_date);e.templates[s]=function(_){return"<a data-link-date='"+o(_)+"' href='#'>"+a(_)+"</a>"}};if(i("week"),i("","month_day"),this.matrix)for(var t in this.matrix)i(t);this._detachDomEvent(this._obj,"click",e._active_link_click),e.event(this._obj,"click",e._active_link_click)})},agenda_legacy:function(e){e.date.add_agenda_legacy=function(i){return e.date.add(i,1,"year")},e.templates.agenda_legacy_time=function(i,t,n){return n._timed?this.day_date(n.start_date,n.end_date,n)+" "+this.event_date(i):e.templates.day_date(i)+" – "+e.templates.day_date(t)},e.templates.agenda_legacy_text=function(i,t,n){return n.text},e.templates.agenda_legacy_date=function(){return""},e.date.agenda_legacy_start=function(){return e.date.date_part(e._currentDate())},e.attachEvent("onTemplatesReady",function(){var i=e.dblclick_dhx_cal_data;e.dblclick_dhx_cal_data=function(){if(this._mode=="agenda_legacy")!this.config.readonly&&this.config.dblclick_create&&this.addEventNow();else if(i)return i.apply(this,arguments)};var t=e.render_data;e.render_data=function(a){if(this._mode!="agenda_legacy")return t.apply(this,arguments);s()};var n=e.render_view_data;function s(){var a=e.get_visible_events();a.sort(function(f,y){return f.start_date>y.start_date?1:-1});for(var o,_="<div class='dhx_agenda_area' "+e._waiAria.agendaDataAttrString()+">",r=0;r<a.length;r++){var d=a[r],l=d.color?"--dhx-scheduler-event-background:"+d.color+";":"",h=d.textColor?"--dhx-scheduler-event-color:"+d.textColor+";":"",p=e.templates.event_class(d.start_date,d.end_date,d);o=e._waiAria.agendaEventAttrString(d);var v=e._waiAria.agendaDetailsBtnString();_+="<div "+o+" class='dhx_agenda_line"+(p?" "+p:"")+"' event_id='"+d.id+"' "+e.config.event_attribute+"='"+d.id+"' style='"+h+l+(d._text_style||"")+"'><div class='dhx_agenda_event_time'>"+(e.config.rtl?e.templates.agenda_time(d.end_date,d.start_date,d):e.templates.agenda_time(d.start_date,d.end_date,d))+"</div>",_+=`<div ${v} class='dhx_event_icon icon_details'><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 44 | <path d="M15.4444 16.4H4.55556V7.6H15.4444V16.4ZM13.1111 2V3.6H6.88889V2H5.33333V3.6H4.55556C3.69222 3.6 3 4.312 3 5.2V16.4C3 16.8243 3.16389 17.2313 3.45561 17.5314C3.74733 17.8314 4.143 18 4.55556 18H15.4444C15.857 18 16.2527 17.8314 16.5444 17.5314C16.8361 17.2313 17 16.8243 17 16.4V5.2C17 4.312 16.3 3.6 15.4444 3.6H14.6667V2H13.1111ZM13.8889 10.8H10V14.8H13.8889V10.8Z" fill="#A1A4A6"/> |
| 45 | </svg></div>`,_+="<span>"+e.templates.agenda_text(d.start_date,d.end_date,d)+"</span></div>"}_+="<div class='dhx_v_border'></div></div>",e._els.dhx_cal_data[0].innerHTML=_,e._els.dhx_cal_data[0].childNodes[0].scrollTop=e._agendaScrollTop||0;var g=e._els.dhx_cal_data[0].childNodes[0];g.childNodes[g.childNodes.length-1].style.height=g.offsetHeight<e._els.dhx_cal_data[0].offsetHeight?"100%":g.offsetHeight+"px";var c=e._els.dhx_cal_data[0].firstChild.childNodes,u=e._getNavDateElement();for(u&&(u.innerHTML=e.templates.agenda_date(e._min_date,e._max_date,e._mode)),e._rendered=[],r=0;r<c.length-1;r++)e._rendered[r]=c[r]}e.render_view_data=function(){return this._mode=="agenda_legacy"&&(e._agendaScrollTop=e._els.dhx_cal_data[0].childNodes[0].scrollTop,e._els.dhx_cal_data[0].childNodes[0].scrollTop=0),n.apply(this,arguments)},e.agenda_legacy_view=function(a){e._min_date=e.config.agenda_start||e.date.agenda_legacy_start(e._date),e._max_date=e.config.agenda_end||e.date.add_agenda_legacy(e._min_date,1),function(o){if(o){var _=e.locale.labels,r=e._waiAria.agendaHeadAttrString(),d=e._waiAria.agendaHeadDateString(_.date),l=e._waiAria.agendaHeadDescriptionString(_.description);e._els.dhx_cal_header[0].innerHTML="<div "+r+" class='dhx_agenda_line dhx_agenda_line_header'><div "+d+">"+_.date+"</div><span class = 'description_header' style='padding-left:25px' "+l+">"+_.description+"</span></div>",e._table_view=!0,e.set_sizes()}}(a),a?(e._cols=null,e._colsS=null,e._table_view=!0,s()):e._table_view=!1}})},agenda_view:function(e){e.date.add_agenda=function(s,a){return e.date.add(s,1*a,"month")},e.templates.agenda_time=function(s,a,o){return o._timed?`${this.event_date(s)} - ${this.event_date(a)}`:e.locale.labels.full_day},e.templates.agenda_text=function(s,a,o){return o.text};const i=e.date.date_to_str("%F %j"),t=e.date.date_to_str("%l");e.templates.agenda_day=function(s){return`<div class="dhx_agenda_day_date">${i(s)}</div> |
| 46 | <div class="dhx_agenda_day_dow">${t(s)}</div>`},e.templates.agenda_date=function(s,a){return e.templates.month_date(e.getState().date)},e.date.agenda_start=function(s){return e.date.month_start(new Date(s))};let n=0;e.attachEvent("onTemplatesReady",function(){var s=e.dblclick_dhx_cal_data;e.dblclick_dhx_cal_data=function(){if(this._mode=="agenda")!this.config.readonly&&this.config.dblclick_create&&this.addEventNow();else if(s)return s.apply(this,arguments)};var a=e.render_data;e.render_data=function(d){if(this._mode!="agenda")return a.apply(this,arguments);_()};var o=e.render_view_data;function _(){const d=e.get_visible_events();d.sort(function(u,f){return u.start_date>f.start_date?1:-1});const l={};let h=e.getState().min_date;const p=e.getState().max_date;for(;h.valueOf()<p.valueOf();)l[h.valueOf()]=[],h=e.date.add(h,1,"day");let v=!1;if(d.forEach(u=>{let f=e.date.day_start(new Date(u.start_date));for(;f.valueOf()<u.end_date.valueOf();)l[f.valueOf()]&&(l[f.valueOf()].push(u),v=!0),f=e.date.day_start(e.date.add(f,1,"day"))}),v){let u="";for(let f in l)e.ignore_agenda&&e.ignore_agenda(new Date(1*f))||(u+=r(new Date(1*f),l[f]));e._els.dhx_cal_data[0].innerHTML=u}else e._els.dhx_cal_data[0].innerHTML=`<div class="dhx_cal_agenda_no_events">${e.locale.labels.agenda_tab}</div>`;e._els.dhx_cal_data[0].scrollTop=n;let g=e._els.dhx_cal_data[0].querySelectorAll(".dhx_cal_agenda_event_line");e._rendered=[];for(var c=0;c<g.length-1;c++)e._rendered[c]=g[c]}function r(d,l){if(!l.length)return"";let h=` |
no test coverage detected