/* @license dhtmlxGantt v.6.0.2 Professional This software is covered by DHTMLX Commercial License. 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=200)}({200: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
';a+='
';for(var o=gantt.config.quickinfo_buttons,_={icon_delete:!0,icon_edit:!0},c=0;c
"+gantt.locale.labels[o[c]]+"
"}a+="",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