/* @license dhtmlxGantt v.6.3.5 Standard This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects. To use dhtmlxGantt in non-GPL projects (and get Pro version of the product), please obtain Commercial/Enterprise or Ultimate license on our site https://dhtmlx.com/docs/products/dhtmlxGantt/#licensing or contact us at sales@dhtmlx.com (c) XB Software Ltd. */ !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("ext/dhtmlxgantt_quick_info",[],n):"object"==typeof exports?exports["ext/dhtmlxgantt_quick_info"]=n():t["ext/dhtmlxgantt_quick_info"]=n()}(window,function(){return function(t){var n={};function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(i,o,function(n){return t[n]}.bind(null,o));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/codebase/",e(e.s=225)}({225:function(t,n){function e(){var t=gantt.$task_data;return t&&t.offsetHeight&&t.offsetWidth?{parent:t,viewport:gantt.$task}:(t=gantt.$grid_data)&&t.offsetHeight&&t.offsetWidth?{parent:t,viewport:gantt.$grid}:{parent:gantt.$layout,viewport:gantt.$layout}}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},e=0;e
';a+='
';for(var c=gantt.config.quickinfo_buttons,_={icon_delete:!0,icon_edit:!0},f=0;f
"+gantt.locale.labels[c[f]]+"
"}a+="",o.innerHTML=a;if(gantt.event(o,"click",function(t){t=t||event,gantt._qi_button_click(t.target||t.srcElement)}),gantt.event(o,"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){var u=e();gantt.event(u,"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 e=t.className;if(-1!=e.indexOf("_icon")){var i=gantt._quick_info_box_id;gantt.$click.buttons[e.split(" ")[1].replace("icon_","")](i)}else gantt._qi_button_click(t.parentNode)}},gantt._get_event_counter_part=function(t,n,e){var i=gantt.getTaskNode(t);if(!i&&!(i=gantt.getTaskRowNode(t)))return null;var o=0,a=n+i.offsetTop+i.offsetHeight,c=i;if(this.utils.dom.isChildOf(c,e))for(;c&&c!==e;)o+=c.offsetLeft,c=c.offsetParent;var _=this.getScrollState();return c?{left:o,top:a,dx:o+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),e=gantt._quick_info_box;gantt._quick_info_box_id=t;var i={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)},o=e.firstChild.firstChild;o.innerHTML=i.content,o.nextSibling.innerHTML=i.date,gantt._waiAria.quickInfoHeader(e,[i.content,i.date].join(" ")),e.firstChild.nextSibling.innerHTML=gantt.templates.quick_info_content(n.start_date,n.end_date,n)}}})}); //# sourceMappingURL=dhtmlxgantt_quick_info.js.map