text: /*
  @license
  
  dhtmlxGantt v.6.0.7 Standard
  This software is covered by GPL license. You also can obtain Commercial or Enterprise license to use it in non-GPL project - please contact sales@dhtmlx.com. Usage without proper license is prohibited.
  
  (c) Dinamenta, UAB.
  
  */!function(t){var n={};function i(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=t,i.c=n,i.d=function(t,n,e){i.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,n){if(1&n&&(t=i(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(i.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var a in t)i.d(e,a,function(n){return t[n]}.bind(null,a));return e},i.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(n,"a",n),n},i.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},i.p="/codebase/",i(i.s=189)}({189:function(t,n){gantt.config.quickinfo_buttons=["icon_delete","icon_edit"],gantt.config.quick_info_detached=!0,gantt.config.show_quick_info=!0,gantt.attachEvent("onTaskClick",function(t){return setTimeout(function(){gantt.showQuickInfo(t)},0),!0}),function(){for(var t=["onEmptyClick","onViewChange","onLightbox","onBeforeTaskDelete","onBeforeDrag"],n=function(){return gantt._hideQuickInfo(),!0},i=0;i<t.length;i++)gantt.attachEvent(t[i],n)}(),gantt.templates.quick_info_title=function(t,n,i){return i.text.substr(0,50)},gantt.templates.quick_info_content=function(t,n,i){return i.details||i.text},gantt.templates.quick_info_date=function(t,n,i){return gantt.templates.task_time(t,n,i)},gantt.templates.quick_info_class=function(t,n,i){return""},gantt.showQuickInfo=function(t){if(t!=this._quick_info_box_id&&this.config.show_quick_info){this.hideQuickInfo(!0);var n=this._get_event_counter_part(t,6);n&&(this._quick_info_box=this._init_quick_info(n,t),this._quick_info_task=t,this._quick_info_box.className=gantt._prepare_quick_info_classname(t),this._fill_quick_data(t),this._show_quick_info(n,6),this.callEvent("onQuickInfo",[t]))}},gantt._hideQuickInfo=function(){gantt.hideQuickInfo()},gantt.hideQuickInfo=function(t){var n=this._quick_info_box;this._quick_info_box_id=0;var i=this._quick_info_task;if(this._quick_info_task=null,n&&n.parentNode){if(gantt.config.quick_info_detached)return this.callEvent("onAfterQuickInfo",[i]),n.parentNode.removeChild(n);n.className+=" gantt_qi_hidden","auto"==n.style.right?n.style.left="-350px":n.style.right="-350px",t&&(n.style.left=n.style.right="",n.parentNode.removeChild(n)),this.callEvent("onAfterQuickInfo",[i])}},gantt.event(window,"keydown",function(t){27==t.keyCode&&gantt.hideQuickInfo()}),gantt._show_quick_info=function(t,n){var i=gantt._quick_info_box;if(gantt.config.quick_info_detached){i.parentNode&&"#document-fragment"!=i.parentNode.nodeName.toLowerCase()||gantt.$task_data.appendChild(i);var e=i.offsetWidth,a=i.offsetHeight,o=this.getScrollState(),_=this.$task.offsetWidth+o.x-e;i.style.left=Math.min(Math.max(o.x,t.left-t.dx*(e-t.width)),_)+"px",i.style.top=t.top-(t.dy?a+t.height+2*n:0)+"px"}else i.style.top="20px",1==t.dx?(i.style.right="auto",i.style.left="-300px",setTimeout(function(){i.style.left="10px"},1)):(i.style.left="auto",i.style.right="-300px",setTimeout(function(){i.style.right="10px"},1)),i.className+=" gantt_qi_"+(1==t.dx?"left":"right"),gantt.$root.appendChild(i)},gantt._prepare_quick_info_classname=function(t){var n=gantt.getTask(t),i="gantt_cal_quick_info",e=this.templates.quick_info_class(n.start_date,n.end_date,n);return e&&(i+=" "+e),i},gantt._init_quick_info=function(t,n){var i=gantt.getTask(n);if("boolean"==typeof this._quick_info_readonly&&this.isReadonly(i)!==this._quick_info_readonly&&(gantt.hideQuickInfo(!0),this._quick_info_box=null),this._quick_info_readonly=this.isReadonly(i),!this._quick_info_box){var e=this._quick_info_box=document.createElement("div");this._waiAria.quickInfoAttr(e);var a='<div class="gantt_cal_qi_title" '+(f=gantt._waiAria.quickInfoHeaderAttrString())+'><div class="gantt_cal_qi_tcontent"></div><div  class="gantt_cal_qi_tdate"></div></div><div class="gantt_cal_qi_content"></div>';a+='<div class="gantt_cal_qi_controls">';for(var o=gantt.config.quickinfo_buttons,_={icon_delete:!0,icon_edit:!0},c=0;c<o.length;c++)if(!this._quick_info_readonly||!_[o[c]]){var f=gantt._waiAria.quickInfoButtonAttrString(gantt.locale.labels[o[c]]);a+='<div class="gantt_qi_big_icon '+o[c]+'" title="'+gantt.locale.labels[o[c]]+'" '+f+"><div class='gantt_menu_icon "+o[c]+"'></div><div>"+gantt.locale.labels[o[c]]+"</div></div>"}a+="</div>",e.innerHTML=a;gantt.event(e,"click",function(t){t=t||event,gantt._qi_button_click(t.target||t.srcElement)}),gantt.event(e,"keypress",function(t){var n=(t=t||event).which||event.keyCode;13!=n&&32!=n||setTimeout(function(){gantt._qi_button_click(t.target||t.srcElement)},1)}),gantt.config.quick_info_detached&&gantt.event(gantt.$task_data,"scroll",function(){gantt.hideQuickInfo()})}return this._quick_info_box},gantt._qi_button_click=function(t){var n=gantt._quick_info_box;if(t&&t!=n){var i=t.className;if(-1!=i.indexOf("_icon")){var e=gantt._quick_info_box_id;gantt.$click.buttons[i.split(" ")[1].replace("icon_","")](e)}else gantt._qi_button_click(t.parentNode)}},gantt._get_event_counter_part=function(t,n){var i=gantt.getTaskNode(t);if(!i)return null;for(var e=0,a=n+i.offsetTop+i.offsetHeight,o=i;o&&"gantt_task"!=o.className;)e+=o.offsetLeft,o=o.offsetParent;var _=this.getScrollState();return o?{left:e,top:a,dx:e+i.offsetWidth/2-_.x>gantt.$container.offsetWidth/2?1:0,dy:a+i.offsetHeight/2-_.y>gantt.$container.offsetHeight/2?1:0,width:i.offsetWidth,height:i.offsetHeight}:null},gantt._fill_quick_data=function(t){var n=gantt.getTask(t),i=gantt._quick_info_box;gantt._quick_info_box_id=t;var e={content:gantt.templates.quick_info_title(n.start_date,n.end_date,n),date:gantt.templates.quick_info_date(n.start_date,n.end_date,n)},a=i.firstChild.firstChild;a.innerHTML=e.content,a.nextSibling.innerHTML=e.date,gantt._waiAria.quickInfoHeader(i,[e.content,e.date].join(" ")),i.firstChild.nextSibling.innerHTML=gantt.templates.quick_info_content(n.start_date,n.end_date,n)}}});
  //# sourceMappingURL=dhtmlxgantt_quick_info.js.map