/*
@license
dhtmlxGantt v.6.3.7 Professional
This software can be used only as part of dhtmlx.com site.
You are not allowed to use it on any other site
(c) XB Software Ltd.
*/
Gantt.plugin(function(t){!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("ext/dhtmlxgantt_tooltip",[],e):"object"==typeof exports?exports["ext/dhtmlxgantt_tooltip"]=e():t["ext/dhtmlxgantt_tooltip"]=e()}(window,function(){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/codebase/",o(o.s=242)}({0:function(t,e,o){var n,i=o(2);t.exports={copy:function t(e){var o,n;if(e&&"object"==typeof e)switch(!0){case i.isDate(e):n=new Date(e);break;case i.isArray(e):for(n=new Array(e.length),o=0;o=0}function r(t){return!{a:!0,area:!0}[t.nodeName.loLowerCase()]||!!t.getAttribute("href")}function a(t){return!{input:!0,select:!0,textarea:!0,button:!0,object:!0}[t.nodeName.toLowerCase()]||!t.hasAttribute("disabled")}function c(t){if(!t)return"";var e=t.className||"";return e.baseVal&&(e=e.baseVal),e.indexOf||(e=""),s(e)}var l=document.createElement("div");function u(t){return t.tagName?t:(t=t||window.event).target||t.srcElement}function s(t){return(String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")}).apply(t)}t.exports={getNodePosition:o,getFocusableNodes:function(t){for(var e=t.querySelectorAll(["a[href]","area[href]","input","select","textarea","button","iframe","object","embed","[tabindex]","[contenteditable]"].join(", ")),o=Array.prototype.slice.call(e,0),c=0;c=0){if(!o)return n;var a=0===r||!s(i.charAt(r-1)),l=r+e.length>=i.length||!s(i.charAt(r+e.length));if(a&&l)return n}}n=n.parentNode}return null},locateAttribute:function(t,e){if(e){for(var o=u(t);o;){if(o.getAttribute&&o.getAttribute(e))return o;o=o.parentNode}return null}},getTargetNode:u,getRelativeEventPosition:function(t,e){var n=document.documentElement,i=o(e);return{x:t.clientX+n.scrollLeft-n.clientLeft-i.x+e.scrollLeft,y:t.clientY+n.scrollTop-n.clientTop-i.y+e.scrollTop}},isChildOf:function(t,e){if(!t||!e)return!1;for(;t&&t!=e;)t=t.parentNode;return t===e},hasClass:function(t,e){return"classList"in t?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)},closest:function(t,e){if(t.closest)return t.closest(e);if(t.matches||t.msMatchesSelector||t.webkitMatchesSelector){var o=t;if(!document.documentElement.contains(o))return null;do{if((o.matches||o.msMatchesSelector||o.webkitMatchesSelector).call(o,e))return o;o=o.parentElement||o.parentNode}while(null!==o&&1===o.nodeType);return null}return console.error("Your browser is not supported"),null}}},2:function(t,e){var o={second:1,minute:60,hour:3600,day:86400,week:604800,month:2592e3,quarter:7776e3,year:31536e3};function n(t){return!(!t||"object"!=typeof t)&&!!(t.getFullYear&&t.getMonth&&t.getDate)}function i(t,e){var o=[];if(t.filter)return t.filter(e);for(var n=0;no.bottom&&(r.bottom=o.bottom,r.top=r.bottom-r.height),r.lefto.right&&(r.right=o.right,r.left=r.right-r.width),u.x>=r.left&&u.x<=r.right&&(r.left=u.x-r.width-a,r.right=r.left+r.width),u.y>=r.top&&u.y<=r.bottom&&(r.top=u.y-r.height-c,r.bottom=r.top+r.height),r},e.prototype._getViewPortSize=function(){var e,o=this._getViewPort(),n=o,r=window.scrollY+document.body.scrollTop,a=window.scrollX+document.body.scrollLeft;return o===t.$task_data?(n=t.$task,r=0,a=0,e=i.getNodePosition(t.$task)):e=i.getNodePosition(n),{left:e.x+a,top:e.y+r,width:e.width,height:e.height,bottom:e.y+e.height+r,right:e.x+e.width+a}},e}();o.Tooltip=r},241:function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var i=n(22),r=n(1),a=n(2),c=n(240),l=function(){function e(){this.tooltip=new c.Tooltip,this._listeners={},this._domEvents=i(),this._initDelayedFunctions()}return e.prototype.destructor=function(){this.tooltip.hide(),this._domEvents.detachAll()},e.prototype.hideTooltip=function(){this.delayHide()},e.prototype.attach=function(e){var o=this,n=document.body;e.global||(n=t.$root);var i=null,a=function(t){var n=r.getTargetNode(t),a=r.closest(n,e.selector);if(!r.isChildOf(n,o.tooltip.getNode())){var c=function(){i=a,e.onmouseenter(t,a)};i?a&&a===i?e.onmousemove(t,a):(e.onmouseleave(t,i),i=null,a&&a!==i&&c()):a&&c()}};this.detach(e.selector),this._domEvents.attach(n,"mousemove",a),this._listeners[e.selector]={node:n,handler:a}},e.prototype.detach=function(t){var e=this._listeners[t];e&&this._domEvents.detach(e.node,"mousemove",e.handler)},e.prototype.tooltipFor=function(t){var e=this,o=function(t){var e=t;return document.createEventObject&&!document.createEvent&&(e=document.createEventObject(t)),e};this._initDelayedFunctions(),this.attach({selector:t.selector,global:t.global,onmouseenter:function(n,i){var r=t.html(n,i);r&&e.delayShow(o(n),r)},onmousemove:function(n,i){var r=t.html(n,i);r?e.delayShow(o(n),r):(e.delayShow.$cancelTimeout(),e.delayHide())},onmouseleave:function(){e.delayShow.$cancelTimeout(),e.delayHide()}})},e.prototype._initDelayedFunctions=function(){var e=this;this.delayShow&&this.delayShow.$cancelTimeout(),this.delayHide&&this.delayHide.$cancelTimeout(),this.tooltip.hide(),this.delayShow=a.delay(function(o,n){!1===t.callEvent("onBeforeTooltip",[o])?e.tooltip.hide():(e.tooltip.setContent(n),e.tooltip.show(o))},t.config.tooltip_timeout||1),this.delayHide=a.delay(function(){e.delayShow.$cancelTimeout(),e.tooltip.hide()},t.config.tooltip_hide_timeout||1)},e}();o.TooltipManager=l},242:function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),t.config.tooltip_timeout=30,t.config.tooltip_offset_y=20,t.config.tooltip_offset_x=10,t.config.tooltip_hide_timeout=30;var i=new(n(241).TooltipManager);t.ext.tooltips=i,t.attachEvent("onGanttReady",function(){i.tooltipFor({selector:"["+t.config.task_attribute+"]:not(.gantt_task_row)",html:function(e){if(!t.config.touch||t.config.touch_tooltip){var o=t.locate(e);if(t.isTaskExists(o)){var n=t.getTask(o);return t.templates.tooltip_text(n.start_date,n.end_date,n)}return null}},global:!1})}),t.attachEvent("onDestroy",function(){i.destructor()}),t.attachEvent("onLightbox",function(){i.hideTooltip()});t.attachEvent("onBeforeTooltip",function(){if(t.getState().link_source_id)return!1}),t.attachEvent("onGanttScroll",function(){i.hideTooltip()})}})})});