9 lines
220 KiB
JavaScript
9 lines
220 KiB
JavaScript
/*!
|
|
* Project: angular-gantt v2.0.0-rc.1 - Gantt chart component for AngularJS
|
|
* Authors: Rémi Alvergnat <toilal.dev@gmail.com> (https://www.pragmasphere.com), Marco Schweighauser
|
|
* License: MIT
|
|
* Homepage: https://www.angular-gantt.com
|
|
* Github: https://github.com/angular-gantt/angular-gantt.git
|
|
*/
|
|
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("angular"),require("moment"),require("ElementQueries"),require("ResizeSensor"),require("angular-native-dragdrop"),require("jsPlumb"),require("ui.tree")):"function"==typeof define&&define.amd?define("angular-gantt",["angular","moment","ElementQueries","ResizeSensor","angular-native-dragdrop","jsPlumb","ui.tree"],e):"object"==typeof exports?exports["angular-gantt"]=e(require("angular"),require("moment"),require("ElementQueries"),require("ResizeSensor"),require("angular-native-dragdrop"),require("jsPlumb"),require("ui.tree")):t["angular-gantt"]=e(t.angular,t.moment,t.ElementQueries,t.ResizeSensor,t["angular-native-dragdrop"],t.jsPlumb,t["ui.tree"])}(this,function(t,e,n,i,a,r,o){return function(t){function e(i){if(n[i])return n[i].exports;var a=n[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get: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,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=266)}([function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(126),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,a.default)(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}()},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){t.exports={default:n(133),__esModule:!0}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var a=n(130),r=i(a),o=n(129),s=i(o),l="function"==typeof s.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(r.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":l(t)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(64),s=i(o),l=n(83),u=i(l),d=n(89),c=i(d),f=n(90),g=i(f),h=n(91),v=i(h),p=n(92),m=i(p),y=n(84),w=i(y),k=n(87),b=i(k),M=n(85),_=i(M),$=n(86),C=i($),T=n(88),S=i(T),x=n(93),O=i(x),j=n(94),P=i(j),F=n(95),R=i(F),D=n(96),E=i(D),G=n(97),B=i(G),I=n(98),H=i(I),W=n(99),A=i(W),L=n(100),z=i(L),V=n(101),U=i(V),q=n(102),N=i(q),Y=n(103),X=i(Y),K=n(104),Q=i(K),J=n(105),Z=i(J),tt=n(106),et=i(tt),nt=n(107),it=i(nt),at=n(108),rt=i(at),ot=n(109),st=i(ot),lt=n(110),ut=i(lt),dt=n(111),ct=i(dt),ft=n(112),gt=i(ft),ht=n(113),vt=i(ht),pt=n(114),mt=i(pt),yt=n(119),wt=i(yt),kt=n(68),bt=i(kt),Mt=n(37),_t=i(Mt),$t=n(38),Ct=i($t),Tt=n(39),St=i(Tt),xt=n(47),Ot=i(xt),jt=n(45),Pt=i(jt),Ft=n(72),Rt=i(Ft),Dt=n(74),Et=i(Dt),Gt=n(71),Bt=i(Gt),It=n(73),Ht=i(It),Wt=n(46),At=i(Wt),Lt=n(75),zt=i(Lt),Vt=n(48),Ut=i(Vt),qt=n(43),Nt=i(qt),Yt=n(70),Xt=i(Yt),Kt=n(69),Qt=i(Kt),Jt=n(44),Zt=i(Jt),te=n(23),ee=i(te),ne=n(65),ie=i(ne),ae=n(41),re=i(ae),oe=n(42),se=i(oe),le=n(76),ue=i(le),de=n(49),ce=i(de),fe=n(40),ge=i(fe),he=n(79),ve=i(he),pe=n(115),me=i(pe),ye=n(123),we=i(ye),ke=n(116),be=i(ke),Me=n(118),_e=i(Me),$e=n(80),Ce=i($e),Te=n(77),Se=i(Te),xe=n(78),Oe=i(xe),je=n(120),Pe=i(je),Fe=n(67),Re=i(Fe),De=n(66),Ee=i(De),Ge=n(117),Be=i(Ge),Ie=n(121),He=i(Ie),We=n(122),Ae=i(We),Le=n(81),ze=i(Le),Ve=n(82),Ue=i(Ve);n(124),n(63);r.default.module("gantt",[]).directive("gantt",s.default).directive("ganttResizer",u.default).directive("ganttContainerWidthListener",g.default).directive("ganttContainerHeightListener",c.default).directive("ganttElementWidthListener",m.default).directive("ganttElementHeightListener",v.default).directive("ganttHorizontalScrollReceiver",w.default).directive("ganttScrollable",b.default).directive("ganttScrollManager",_.default).directive("ganttScrollSender",C.default).directive("ganttVerticalScrollReceiver",S.default).directive("ganttBindCompileHtml",wt.default).directive("ganttBody",O.default).directive("ganttBodyBackground",P.default).directive("ganttBodyColumns",R.default).directive("ganttBodyForeground",E.default).directive("ganttBodyRows",B.default).directive("ganttColumn",H.default).directive("ganttColumnHeader",A.default).directive("ganttHeader",z.default).directive("ganttHeaderColumns",U.default).directive("ganttRow",N.default).directive("ganttRowBackground",X.default).directive("ganttRowLabel",Q.default).directive("ganttScrollableHeader",Z.default).directive("ganttSide",et.default).directive("ganttSideBackground",it.default).directive("ganttSideContent",rt.default).directive("ganttTask",st.default).directive("ganttTaskBackground",ut.default).directive("ganttTaskContent",ct.default).directive("ganttTaskForeground",gt.default).directive("ganttTimeFrame",vt.default).directive("ganttTimespan",mt.default).factory("GanttDirectiveBuilder",be.default).factory("Gantt",bt.default).factory("GanttApi",_t.default).factory("GanttOptions",Ct.default).factory("GanttCalendar",St.default).factory("GanttScroll",Ot.default).factory("GanttBody",Pt.default).factory("GanttBodyColumns",Rt.default).factory("GanttBodyRows",Et.default).factory("GanttBodyBackground",Bt.default).factory("GanttBodyForeground",Ht.default).factory("GanttHeader",At.default).factory("GanttHeaderColumns",zt.default).factory("GanttSide",Ut.default).factory("GanttObjectModel",Nt.default).factory("GanttTask",Xt.default).factory("GanttRow",Qt.default).factory("GanttRowsManager",Zt.default).factory("GanttColumn",ee.default).factory("GanttColumnHeader",re.default).factory("GanttColumnBuilder",ie.default).factory("GanttColumnsManager",se.default).factory("GanttTimespan",ue.default).factory("GanttTimespansManager",ce.default).factory("GanttCurrentDateManager",ge.default).factory("GanttHierarchy",ve.default).factory("ganttDebounce",me.default).factory("GanttSmartEvent",we.default).service("ganttEnableNgAnimate",_e.default).service("ganttUtils",Ce.default).service("ganttArrays",Se.default).service("ganttBinarySearch",Oe.default).service("ganttLayout",Pe.default).service("GanttHeadersGenerator",Re.default).service("GanttColumnGenerator",Ee.default).service("ganttDom",Be.default).service("ganttMouseButton",He.default).service("ganttMouseOffset",Ae.default).filter("ganttColumnLimit",ze.default).filter("ganttTaskLimit",Ue.default),e.default="gantt"},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var i=n(32)("wks"),a=n(22),r=n(8).Symbol,o="function"==typeof r;(t.exports=function(t){return i[t]||(i[t]=o&&r[t]||(o?r:a)("Symbol."+t))}).store=i},function(t,e,n){t.exports=!n(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(14),a=n(52),r=n(34),o=Object.defineProperty;e.f=n(10)?Object.defineProperty:function(t,e,n){if(i(t),e=r(e,!0),i(n),a)try{return o(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(146),a=n(25);t.exports=function(t){return i(a(t))}},function(t,e,n){var i=n(18);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var i=n(8),a=n(7),r=n(50),o=n(16),s=function(t,e,n){var l,u,d,c=t&s.F,f=t&s.G,g=t&s.S,h=t&s.P,v=t&s.B,p=t&s.W,m=f?a:a[e]||(a[e]={}),y=m.prototype,w=f?i:g?i[e]:(i[e]||{}).prototype;f&&(n=e);for(l in n)(u=!c&&w&&void 0!==w[l])&&l in m||(d=u?w[l]:n[l],m[l]=f&&"function"!=typeof w[l]?n[l]:v&&u?r(d,i):p&&w[l]==d?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):h&&"function"==typeof d?r(Function.call,d):d,h&&((m.virtual||(m.virtual={}))[l]=d,t&s.R&&y&&!y[l]&&o(y,l,d)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var i=n(12),a=n(21);t.exports=n(10)?function(t,e,n){return i.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports={}},function(t,e,n){var i=n(58),a=n(26);t.exports=Object.keys||function(t){return i(t,a)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttColumn=void 0;var a=n(4),r=i(a),o=n(0),s=i(o),l=n(1),u=i(l);e.default=function(){"ngInject";return f};var d=n(3),c=i(d),f=e.GanttColumn=function(){function t(e,n,i,a,r,o,l){(0,s.default)(this,t),this.timeFrames=[],this.visibleTimeFrames=[],this.daysTimeFrames={},this.currentDate=!1,this.cropped=!1,this.date=e,this.endDate=n,this.left=i,this.width=a,this.calendar=r,this.duration=this.endDate.diff(this.date,"milliseconds"),this.timeFramesWorkingMode=o,this.timeFramesNonWorkingMode=l,this.timeFrames=[],this.visibleTimeFrames=[],this.daysTimeFrames={},this.originalSize={left:this.left,width:this.width},this.updateTimeFrames()}return(0,u.default)(t,[{key:"getDateKey",value:function(t){return t.year()+"-"+t.month()+"-"+t.date()}},{key:"updateView",value:function(){this.$element&&(this.currentDate?this.$element.addClass("gantt-foreground-col-current-date"):this.$element.removeClass("gantt-foreground-col-current-date"),this.$element.css({left:this.left+"px",width:this.width+"px"}),this.timeFrames.forEach(function(t){return t.updateView()}))}},{key:"updateTimeFrames",value:function(){if(void 0!==this.calendar&&("hidden"!==this.timeFramesNonWorkingMode||"hidden"!==this.timeFramesWorkingMode)){for(var t=this.date,e=(0,c.default)(t).startOf("day"),n=e.add(1,"day"),i=void 0;t<this.endDate;){var a=this.calendar.getTimeFrames(t),o=c.default.min(n,this.endDate);a=this.calendar.solve(a,t,o);var s=[];for(i=0;i<a.length;i++){var l=a[i],u=l.start;void 0===u&&(u=t);var d=l.end;void 0===d&&(d=o),u<this.date&&(u=this.date),d>this.endDate&&(d=this.endDate),l=l.clone(),l.start=(0,c.default)(u),l.end=(0,c.default)(d),s.push(l)}this.timeFrames=this.timeFrames.concat(s);var f=this.getDateKey(t);this.daysTimeFrames[f]=s,t=o,e=(0,c.default)(t).startOf("day"),n=e.add(1,"day")}for(i=0;i<this.timeFrames.length;i++){var g=this.timeFrames[i],h=g.start.diff(this.date,"milliseconds"),v=h/this.duration*this.width,p=g.end.diff(g.start,"milliseconds"),m=p/this.duration*this.width,y=!1;g.working&&"visible"!==this.timeFramesWorkingMode?y=!0:g.working||"visible"===this.timeFramesNonWorkingMode||(y=!0),y||this.visibleTimeFrames.push(g),g.hidden=y,g.left=v,g.width=m,g.originalSize={left:g.left,width:g.width}}if("cropped"===this.timeFramesNonWorkingMode||"cropped"===this.timeFramesWorkingMode){var w=0,k=!0,b=!1,M=void 0;try{for(var _,$=(0,r.default)(this.timeFrames);!(k=(_=$.next()).done);k=!0){var C=_.value;(!C.working&&"cropped"!==this.timeFramesNonWorkingMode||C.working&&"cropped"!==this.timeFramesWorkingMode)&&(w+=C.width)}}catch(t){b=!0,M=t}finally{try{!k&&$.return&&$.return()}finally{if(b)throw M}}if(w!==this.width){var T=this.width/w,S=0,x=0,O=!0,j=!0,P=!1,F=void 0;try{for(var R,D=(0,r.default)(this.timeFrames);!(j=(R=D.next()).done);j=!0){var E=R.value;!E.working&&"cropped"!==this.timeFramesNonWorkingMode||E.working&&"cropped"!==this.timeFramesWorkingMode?(E.left=(E.left-S)*T,E.width=E.width*T,E.originalSize.left=(E.originalSize.left-x)*T,E.originalSize.width=E.originalSize.width*T,E.cropped=!1,O=!1):(S+=E.width,x+=E.originalSize.width,E.left=void 0,E.width=0,E.originalSize={left:void 0,width:0},E.cropped=!0)}}catch(t){P=!0,F=t}finally{try{!j&&D.return&&D.return()}finally{if(P)throw F}}this.cropped=O}else this.cropped=!1}}}},{key:"clone",value:function(){return new t((0,c.default)(this.date),(0,c.default)(this.endDate),this.left,this.width,this.calendar)}},{key:"containsDate",value:function(t){return t>this.date&&t<=this.endDate}},{key:"equals",value:function(t){return this.date===t.date}},{key:"roundTo",value:function(t,e,n,i){"day"===e&&(e="date"),n=n||1;var a=t.get(e);switch(i){case"up":a=Math.ceil(a/n);break;case"down":a=Math.floor(a/n);break;default:a=Math.round(a/n)}var r=["millisecond","second","minute","hour","date","month","year"];t.set(e,a*n);for(var o=r.indexOf(e),s=0;s<o;s++)t.set(r[s],0);return t}},{key:"getMagnetDate",value:function(t,e,n,i){if(e>0&&void 0!==n){var a=t;if(t=(0,c.default)(t),"column"===n){t=this.getPositionByDate(t)<this.width/2?(0,c.default)(this.date):(0,c.default)(this.endDate)}else t=this.roundTo(t,n,e),t<this.date?t=(0,c.default)(this.date):t>this.endDate&&(t=(0,c.default)(this.endDate));if(i)for(var r=Math.abs(a.diff(t,"milliseconds")),o=void 0,s=0;s<this.timeFrames.length;s++){var l=this.timeFrames[s];if(l.magnet){var u=this.timeFrames[s-1],d=this.timeFrames[s+1],f=void 0;void 0!==u&&u.working===l.working||(f=Math.abs(a.diff(l.start,"milliseconds")))<r&&(void 0===o||f<o)&&(o=f,t=l.start),void 0!==d&&d.working===l.working||(f=Math.abs(a.diff(l.end,"milliseconds")))<r&&(void 0===o||f<o)&&(o=f,t=l.end)}}}return t}},{key:"getDateByPositionUsingTimeFrames",value:function(t){var e=!0,n=!1,i=void 0;try{for(var a,o=(0,r.default)(this.timeFrames);!(e=(a=o.next()).done);e=!0){var s=a.value;if(!s.cropped&&t>=s.left&&t<=s.left+s.width){var l=s.getDuration()/s.width*(t-s.left);return(0,c.default)(s.start).add(l,"milliseconds")}}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}}},{key:"getDateByPosition",value:function(t,e,n,i){var a=void 0;if(t<0&&(t=0),t>this.width&&(t=this.width),"cropped"!==this.timeFramesNonWorkingMode&&"cropped"!==this.timeFramesWorkingMode||(a=this.getDateByPositionUsingTimeFrames(t)),void 0===a){var r=this.duration/this.width*t;a=(0,c.default)(this.date).add(r,"milliseconds")}return a=this.getMagnetDate(a,e,n,i)}},{key:"getDayTimeFrame",value:function(t){var e=this.daysTimeFrames[this.getDateKey(t)];return void 0===e?[]:e}},{key:"getPositionByDate",value:function(t){var e=t;if("cropped"===this.timeFramesNonWorkingMode||"cropped"===this.timeFramesWorkingMode)for(var n=this.getDayTimeFrame(e),i=0;i<n.length;i++){var a=n[i];if(e>=a.start&&e<=a.end){if(!a.cropped){var r=e.diff(a.start,"milliseconds"),o=r/a.getDuration()*a.width;return this.left+a.left+o}e=n.length>i+1?n[i+1].start:a.end}}var s=e.diff(this.date,"milliseconds"),l=s/this.duration*this.width;return l<0&&(l=0),l>this.width&&(l=this.width),this.left+l}}]),t}()},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports=!0},function(t,e,n){var i=n(14),a=n(152),r=n(26),o=n(31)("IE_PROTO"),s=function(){},l=function(){var t,e=n(51)("iframe"),i=r.length;for(e.style.display="none",n(145).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;i--;)delete l.prototype[r[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[o]=t):n=l(),void 0===e?n:a(n,e)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(12).f,a=n(11),r=n(9)("toStringTag");t.exports=function(t,e,n){t&&!a(t=n?t:t.prototype,r)&&i(t,r,{configurable:!0,value:e})}},function(t,e,n){var i=n(32)("keys"),a=n(22);t.exports=function(t){return i[t]||(i[t]=a(t))}},function(t,e,n){var i=n(8),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return a[t]||(a[t]={})}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(18);t.exports=function(t,e){if(!i(t))return t;var n,a;if(e&&"function"==typeof(n=t.toString)&&!i(a=n.call(t)))return a;if("function"==typeof(n=t.valueOf)&&!i(a=n.call(t)))return a;if(!e&&"function"==typeof(n=t.toString)&&!i(a=n.call(t)))return a;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(8),a=n(7),r=n(27),o=n(36),s=n(12).f;t.exports=function(t){var e=a.Symbol||(a.Symbol=r?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:o.f(t)})}},function(t,e,n){e.f=n(9)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttApi=void 0;var a=n(4),r=i(a),o=n(0),s=i(o),l=n(1),u=i(l);e.default=["$q","$rootScope","ganttUtils",function(t,e,n){"ngInject";return d.$q=t,d.$rootScope=e,d.ganttUtils=n,d}];var d=e.GanttApi=function(){function t(e){(0,s.default)(this,t),this.gantt=e,this.listeners=[],this.apiId=t.ganttUtils.newId()}return(0,u.default)(t,[{key:"registerEventWithAngular",value:function(e,n,i,a){return t.$rootScope.$on(e,function(){var t=Array.prototype.slice.call(arguments);t.splice(0,1),n.apply(a||i.api,t)})}},{key:"suppressEvents",value:function(t,e){var n=this,i=Array.isArray(t)?t:[t],a=[];i.forEach(function(t){a=n.listeners.filter(function(e){return t===e.handler})}),a.forEach(function(t){return t.dereg()}),e(),a.forEach(function(t){t.dereg=n.registerEventWithAngular(t.eventId,t.handler,n.gantt,t._this)})}},{key:"registerEvent",value:function(e,n){var i=this;this[e]||(this[e]={});var a=this[e];a.on||(a.on={},a.raise={});var r="event:gantt:"+this.apiId+":"+e+":"+n;a.raise[n]=function(){t.$rootScope.$emit.apply(t.$rootScope,[r].concat(Array.prototype.slice.call(arguments)))},a.on[n]=function(t,e,n){var a=i.registerEventWithAngular(r,e,i.gantt,n),o={handler:e,dereg:a,eventId:r,scope:t,_this:n};i.listeners.push(o);var s=function(){o.dereg();var t=i.listeners.indexOf(o);i.listeners.splice(t,1)};return t.$on("$destroy",function(){s()}),s}}},{key:"registerEventsFromObject",value:function(t){var e=this,n=[];for(var i in t){var a=t[i],o={name:i,events:[]};for(var s in a)o.events.push(s);n.push(o)}var l=!0,u=!1,d=void 0;try{for(var c,f=(0,r.default)(n);!(l=(c=f.next()).done);l=!0){var g=c.value;!function(t){t.events.forEach(function(n){e.registerEvent(t.name,n)})}(g)}}catch(t){u=!0,d=t}finally{try{!l&&f.return&&f.return()}finally{if(u)throw d}}}},{key:"registerMethod",value:function(e,n,i,a){this[e]||(this[e]={}),this[e][n]=t.ganttUtils.createBoundedWrapper(a||this.gantt,i)}},{key:"registerMethodsFromObject",value:function(t,e){var n=[];for(var i in t){var a=t[i],o={name:i,methods:[]};for(var s in a){var l=a[s];o.methods.push({name:s,fn:l})}n.push(o)}var u=!0,d=!1,c=void 0;try{for(var f,g=(0,r.default)(n);!(u=(f=g.next()).done);u=!0){var h=f.value,v=!0,p=!1,m=void 0;try{for(var y,w=(0,r.default)(h.methods);!(v=(y=w.next()).done);v=!0){var k=y.value;this.registerMethod(h.name,k.name,k.fn,e)}}catch(t){p=!0,m=t}finally{try{!v&&w.return&&w.return()}finally{if(p)throw m}}}}catch(t){d=!0,c=t}finally{try{!u&&g.return&&g.return()}finally{if(d)throw c}}}}]),t}()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttOptions=void 0;var a=n(0),r=i(a),o=n(1),s=i(o);e.default=function(){"ngInject";return l};var l=e.GanttOptions=function(){function t(e,n){(0,r.default)(this,t),this.defaultValues=n,this.values=e}return(0,s.default)(t,[{key:"defaultValue",value:function(t){var e=this.defaultValues[t];return"function"==typeof e&&(e=e()),e}},{key:"sanitize",value:function(t,e){if(!e){var n=this.defaultValue(t);if(void 0!==n)return void 0!==e&&"boolean"==typeof n?e:n}return e}},{key:"value",value:function(t){return this.sanitize(t,this.values[t])}},{key:"set",value:function(t,e){this.values[t]=e}},{key:"initialize",value:function(){for(var t in this.values)this.values.hasOwnProperty(t)&&(this.values[t]=this.value(t));return this.values}}]),t}()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttCalendar=e.DateFrame=e.TimeFrameMapping=e.TimeFrame=void 0;var a=n(4),r=i(a),o=n(0),s=i(o),l=n(1),u=i(l);e.default=["$filter",function(t){"ngInject";return v.$filter=t,v}];var d=n(3),c=i(d),f=e.TimeFrame=function(){function t(e){(0,s.default)(this,t),void 0===e&&(e={}),this.start=e.start,this.end=e.end,this.working=e.working,this.magnet=void 0===e.magnet||e.magnet,this.default=e.default,this.color=e.color,this.classes=e.classes,this.internal=e.internal}return(0,u.default)(t,[{key:"updateView",value:function(){if(this.$element){var t={};void 0!==this.left?t.left=this.left+"px":t.left="",void 0!==this.width?t.width=this.width+"px":t.width="",void 0!==this.color?t["background-color"]=this.color:t["background-color"]="",this.$element.css(t);var e=["gantt-timeframe"+(this.working?"":"-non")+"-working"];this.classes&&(e=e.concat(this.classes));for(var n=0,i=e.length;n<i;n++)this.$element.toggleClass(e[n],!0)}}},{key:"getDuration",value:function(){if(void 0!==this.end&&void 0!==this.start)return this.end.diff(this.start,"milliseconds")}},{key:"clone",value:function(){return new t(this)}}]),t}(),g=e.TimeFrameMapping=function(){function t(e){(0,s.default)(this,t),this.func=e}return(0,u.default)(t,[{key:"getTimeFrames",value:function(t){var e=this.func(t);return e instanceof Array||(e=[e]),e}},{key:"clone",value:function(){return new t(this.func)}}]),t}(),h=e.DateFrame=function(){function t(e){(0,s.default)(this,t),this.evaluator=e.evaluator,e.date?(this.start=(0,c.default)(e.date).startOf("day"),this.end=(0,c.default)(e.date).endOf("day")):(this.start=e.start,this.end=e.end),e.targets instanceof Array?this.targets=e.targets:this.targets=[e.targets],this.default=e.default}return(0,u.default)(t,[{key:"dateMatch",value:function(t){return this.evaluator?this.evaluator(t):!(!this.start||!this.end)&&(t>=this.start&&t<=this.end)}},{key:"clone",value:function(){return new t(this)}}]),t}(),v=e.GanttCalendar=function(){function t(){(0,s.default)(this,t),this.timeFrames={},this.timeFrameMappings={},this.dateFrames={}}return(0,u.default)(t,[{key:"clear",value:function(){this.timeFrames={},this.timeFrameMappings={},this.dateFrames={}}},{key:"registerTimeFrames",value:function(t){for(var e in t){var n=t[e];this.timeFrames[e]=new f(n)}}},{key:"removeTimeFrames",value:function(t){for(var e in t)delete this.timeFrames[e]}},{key:"clearTimeFrames",value:function(){this.timeFrames={}}},{key:"registerTimeFrameMappings",value:function(t){for(var e in t){var n=t[e];this.timeFrameMappings[e]=new g(n)}}},{key:"removeTimeFrameMappings",value:function(t){for(var e in t)delete this.timeFrameMappings[e]}},{key:"clearTimeFrameMappings",value:function(){this.timeFrameMappings={}}},{key:"registerDateFrames",value:function(t){for(var e in t){var n=t[e];this.dateFrames[e]=new h(n)}}},{key:"removeDateFrames",value:function(t){for(var e in t)delete this.dateFrames[e]}},{key:"clearDateFrames",value:function(){this.dateFrames={}}},{key:"filterDateFrames",value:function(t,e){var n=[];for(var i in t){var a=t[i];a.dateMatch(e)&&n.push(a)}if(0===n.length)for(var r in t){var o=t[r];o.default&&n.push(o)}return n}},{key:"getTimeFrames",value:function(t){var e=[],n=this.filterDateFrames(this.dateFrames,t),i=!0,a=!1,o=void 0;try{for(var s,l=(0,r.default)(n);!(i=(s=l.next()).done);i=!0){var u=s.value;if(void 0!==u){var d=u.targets,f=!0,g=!1,h=void 0;try{for(var v,p=(0,r.default)(d);!(f=(v=p.next()).done);f=!0){var m=v.value,y=this.timeFrameMappings[m];if(void 0!==y){var w=y.getTimeFrames(t),k=!0,b=!1,M=void 0;try{for(var _,$=(0,r.default)(w);!(k=(_=$.next()).done);k=!0){var C=_.value,T=this.timeFrames[C];e.push(T)}}catch(t){b=!0,M=t}finally{try{!k&&$.return&&$.return()}finally{if(b)throw M}}}else{var S=this.timeFrames[m];void 0!==S&&e.push(S)}}}catch(t){g=!0,h=t}finally{try{!f&&p.return&&p.return()}finally{if(g)throw h}}}}}catch(t){a=!0,o=t}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}var x=t.year(),O=t.month(),j=t.date(),P=[];if(0===e.length)for(var F in this.timeFrames){var R=this.timeFrames[F];R.default&&e.push(R)}for(var D in e){var E=e[D],G=E.clone();void 0!==G.start&&(G.start.year(x),G.start.month(O),G.start.date(j)),void 0!==G.end&&(G.end.year(x),G.end.month(O),G.end.date(j),(0,c.default)(G.end).startOf("day")===G.end&&G.end.add(1,"day")),P.push(G)}return P}},{key:"solve",value:function(e,n,i){var a=void 0,o=void 0,s=void 0,l=void 0,u=!0,d=!1,g=void 0;try{for(var h,v=(0,r.default)(e);!(u=(h=v.next()).done);u=!0){var p=h.value;(void 0===s||s>p.start)&&(s=p.start),(void 0===l||l<p.end)&&(l=p.end),void 0===a&&p.color&&(a=p.color),void 0!==p.classes&&(void 0===o&&(o=[]),o=o.concat(p.classes))}}catch(t){d=!0,g=t}finally{try{!u&&v.return&&v.return()}finally{if(d)throw g}}void 0===n&&(n=s),void 0===i&&(i=l);var m=[new f({start:n,end:i,internal:!0})];e=t.$filter("filter")(e,function(t){return(void 0===t.start||t.start<i)&&(void 0===t.end||t.end>n)});var y=!0,w=!1,k=void 0;try{for(var b,M=(0,r.default)(e);!(y=(b=M.next()).done);y=!0){var _=b.value;_.start||(_.start=n),_.end||(_.end=i)}}catch(t){w=!0,k=t}finally{try{!y&&M.return&&M.return()}finally{if(w)throw k}}var $=t.$filter("orderBy")(e,function(t){return-t.getDuration()}),C=void 0,T=!0,S=!1,x=void 0;try{for(var O,j=(0,r.default)($);!(T=(O=j.next()).done);T=!0){var P=O.value,F=m.slice();C=0;var R=!1,D=!1,E=!0,G=!1,B=void 0;try{for(var I,H=(0,r.default)(m);!(E=(I=H.next()).done);E=!0){var W=I.value;if(!D){if(P.end||P.start)if(P.end>W.start&&P.start<W.end){var A=W.clone();W.end=(0,c.default)(P.start),A.start=(0,c.default)(P.end),F.splice(C+1,0,P.clone(),A),D=!0,R=!1}else!R&&P.start<W.end?(W.end=(0,c.default)(P.start),F.splice(C+1,0,P.clone()),R=!0):R&&P.end>W.start&&(W.start=(0,c.default)(P.end),R=!1,D=!0);else F.splice(C,0,P),D=!0,R=!1;C++}}}catch(t){G=!0,B=t}finally{try{!E&&H.return&&H.return()}finally{if(G)throw B}}m=F}}catch(t){S=!0,x=t}finally{try{!T&&j.return&&j.return()}finally{if(S)throw x}}return m=t.$filter("filter")(m,function(t){return!t.internal&&(void 0===t.start||t.start<i)&&(void 0===t.end||t.end>n)})}}]),t}()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttCurrentDateManager=void 0;var a=n(0),r=i(a),o=n(1),s=i(o);e.default=function(){"ngInject";return d};var l=n(3),u=i(l),d=e.GanttCurrentDateManager=function(){function t(e){var n=this;(0,r.default)(this,t),this.gantt=e,this.date=void 0,this.position=void 0,this.currentDateColumn=void 0,this.gantt.$scope.simplifyMoment=function(t){return u.default.isMoment(t)?t.unix():t},this.gantt.$scope.$watchGroup(["currentDate","simplifyMoment(currentDateValue)"],function(t,e){t!==e&&n.setCurrentDate(n.gantt.options.value("currentDateValue"))})}return(0,s.default)(t,[{key:"setCurrentDate",value:function(t){this.date=t;var e=this.currentDateColumn,n=void 0;void 0!==this.date&&"column"===this.gantt.options.value("currentDate")&&(n=this.gantt.columnsManager.getColumnByDate(this.date,!0)),this.currentDateColumn=n,e!==n&&(void 0!==e&&(e.currentDate=!1,e.updateView()),void 0!==n&&(n.currentDate=!0,n.updateView())),this.position=this.gantt.getPositionByDate(this.date,!0)}}]),t}()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttColumnHeader=void 0;var a=n(127),r=i(a),o=n(0),s=i(o),l=n(132),u=i(l),d=n(131),c=i(d);e.default=function(){"ngInject";return g};var f=n(23),g=e.GanttColumnHeader=function(t){function e(t,n,i,a,o,l,d){(0,s.default)(this,e);var c=(0,u.default)(this,(e.__proto__||(0,r.default)(e)).call(this,t,n,a,o));return c.name=d,c.unit=i,c.label="function"==typeof l?l(c):t.format(l),c}return(0,c.default)(e,t),e}(f.GanttColumn)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttColumnsManager=void 0;var a=n(4),r=i(a),o=n(0),s=i(o),l=n(1),u=i(l);e.default=["GanttColumnGenerator","GanttColumnBuilder","GanttHeadersGenerator","$filter","ganttLayout","ganttBinarySearch",function(t,e,n,i,a,r){"ngInject";return f.GanttColumnGenerator=t,f.GanttHeadersGenerator=n,f.ganttBinarySearch=r,f.GanttColumnBuilder=e,f.ganttLayout=a,f.$filter=i,f}];var d=n(3),c=i(d),f=e.GanttColumnsManager=function(){function t(e){var n=this;(0,s.default)(this,t),this.defaultHeadersFormats={year:"YYYY",quarter:"[Q]Q YYYY",month:"MMMM YYYY",week:"w",day:"D",hour:"H",minute:"H:mm",second:"H:mm:ss",millisecond:"H:mm:ss:SSS"},this.defaultDayHeadersFormats={day:"LL",hour:"H",minute:"H:mm",second:"H:mm:ss",millisecond:"H:mm:ss:SSS"},this.defaultYearHeadersFormats={year:"YYYY",quarter:"[Q]Q",month:"MMMM"},this.gantt=e,this.from=void 0,this.to=void 0,this.columns=[],this.visibleColumns=[],this.previousColumns=[],this.nextColumns=[],this.headers=[],this.visibleHeaders=[],this.scrollAnchor=void 0,this.columnBuilder=new t.GanttColumnBuilder(this),this.gantt.$scope.$watchGroup(["viewScale","columnWidth","timeFramesWorkingMode","timeFramesNonWorkingMode","fromDate","toDate","autoExpand","taskOutOfRange"],function(t,e){t!==e&&n.gantt.rendered&&n.generateColumns()}),this.gantt.$scope.$watchCollection("headers",function(t,e){t!==e&&n.gantt.rendered&&n.generateColumns()}),this.gantt.$scope.$watchCollection("headersFormats",function(t,e){t!==e&&n.gantt.rendered&&n.generateColumns()}),this.gantt.$scope.$watchGroup(["ganttElementWidth","showSide","sideWidth","maxHeight","daily"],function(t,e){t!==e&&n.gantt.rendered&&n.updateColumnsMeta()}),this.gantt.api.data.on.load(this.gantt.$scope,function(){(void 0===n.from||void 0===n.to||n.from>n.gantt.rowsManager.getDefaultFrom()||n.to<n.gantt.rowsManager.getDefaultTo())&&n.gantt.rendered&&n.generateColumns(),n.gantt.rowsManager.sortRows()}),this.gantt.api.data.on.remove(this.gantt.$scope,function(){n.gantt.rowsManager.sortRows()}),this.gantt.api.registerMethod("columns","clear",this.clearColumns,this),this.gantt.api.registerMethod("columns","generate",this.generateColumns,this),this.gantt.api.registerMethod("columns","refresh",this.updateColumnsMeta,this),this.gantt.api.registerMethod("columns","getColumnsWidth",this.getColumnsWidth,this),this.gantt.api.registerMethod("columns","getColumnsWidthToFit",this.getColumnsWidthToFit,this),this.gantt.api.registerMethod("columns","getDateRange",this.getDateRange,this),this.gantt.api.registerEvent("columns","clear"),this.gantt.api.registerEvent("columns","generate"),this.gantt.api.registerEvent("columns","refresh")}return(0,u.default)(t,[{key:"setScrollAnchor",value:function(){if(this.gantt.scroll.$element&&this.columns.length>0){var t=this.gantt.scroll.$element[0],e=t.scrollLeft+t.offsetWidth/2;this.scrollAnchor=this.gantt.getDateByPosition(e)}}},{key:"scrollToScrollAnchor",value:function(){var t=this;this.columns.length>0&&void 0!==this.scrollAnchor&&this.gantt.$scope.$$postDigest(function(){t.gantt.api.scroll.toDate(t.scrollAnchor)})}},{key:"clearColumns",value:function(){this.setScrollAnchor(),this.from=void 0,this.to=void 0,this.columns=[],this.visibleColumns=[],this.previousColumns=[],this.nextColumns=[],this.headers=[],this.visibleHeaders=[],this.gantt.api.columns.raise.clear()}},{key:"generateColumns",value:function(e,n){return e||(e=this.gantt.options.value("fromDate")),n||(n=this.gantt.options.value("toDate")),!((!e||c.default.isMoment(e)&&!e.isValid())&&!(e=this.gantt.rowsManager.getDefaultFrom()))&&(!((!n||c.default.isMoment(n)&&!n.isValid())&&!(n=this.gantt.rowsManager.getDefaultTo()))&&(void 0===e||c.default.isMoment(e)||(e=(0,c.default)(e)),void 0===n||c.default.isMoment(n)||(n=(0,c.default)(n)),"expand"===this.gantt.options.value("taskOutOfRange")&&(e=this.gantt.rowsManager.getExpandedFrom(e),n=this.gantt.rowsManager.getExpandedTo(n)),this.setScrollAnchor(),this.from=e,this.to=n,this.previousColumns=[],this.nextColumns=[],this.columns=t.GanttColumnGenerator.generate(this.columnBuilder,this.from,this.to,this.gantt.options.value("viewScale"),this.getColumnsWidth()),this.headers=t.GanttHeadersGenerator.generate(this),this.updateColumnsMeta(),this.scrollToScrollAnchor(),void this.gantt.api.columns.raise.generate(this.columns,this.headers)))}},{key:"updateColumnsMeta",value:function(){this.gantt.isRefreshingColumns=!0;var t=this.getLastColumn();this.gantt.originalWidth=void 0!==t?t.originalSize.left+t.originalSize.width:0;var e=this.updateColumnsWidths(this.columns,this.headers,this.previousColumns,this.nextColumns);this.gantt.width=void 0!==t?t.left+t.width:0;var n=this.gantt.options.value("showSide"),i=this.gantt.side.isShown(),a=n!==i;a&&!n&&this.gantt.side.show(!1),this.gantt.rowsManager.updateTasksPosAndSize(),this.gantt.timespansManager.updateTimespansPosAndSize(),this.updateVisibleColumns(e),this.gantt.rowsManager.updateVisibleObjects();var r=this.gantt.options.value("currentDateValue");this.gantt.currentDateManager.setCurrentDate(r),a&&n&&this.gantt.side.show(!0),this.gantt.isRefreshingColumns=!1,this.gantt.api.columns.raise.refresh(this.columns,this.headers)}},{key:"getLastColumn",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.columns;return t&&(e=this.nextColumns),e&&e.length>0?e[e.length-1]:void 0}},{key:"getFirstColumn",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.columns;return t&&(e=this.previousColumns),e&&e.length>0?e[0]:void 0}},{key:"getColumnByDate",value:function(e,n){n||this.expandExtendedColumnsForDate(e);var i=this.previousColumns.concat(this.columns,this.nextColumns),a=t.ganttBinarySearch.get(i,e,function(t){return t.date},!0);return void 0===a[0]?a[1]:a[0]}},{key:"getColumnByPosition",value:function(e,n){n||this.expandExtendedColumnsForPosition(e);var i=this.previousColumns.concat(this.columns,this.nextColumns),a=t.ganttBinarySearch.get(i,e,function(t){return t.left},!0);return void 0===a[0]?a[1]:a[0]}},{key:"updateColumnsWidths",value:function(e,n,i,a){var o=this.gantt.options.value("columnWidth"),s=this.gantt.options.value("expandToFit"),l=this.gantt.options.value("shrinkToFit");if(void 0===o||s||l){var u=this.gantt.getBodyAvailableWidth(),d=this.gantt.columnsManager.getLastColumn(!1);if(void 0!==d){var c=d.originalSize.left+d.originalSize.width;if(s&&c<u||l&&c>u||void 0===o){var f=u/c;t.ganttLayout.setColumnsWidthFactor(e,f);var g=!0,h=!1,v=void 0;try{for(var p,m=(0,r.default)(n);!(g=(p=m.next()).done);g=!0){var y=p.value;t.ganttLayout.setColumnsWidthFactor(y,f)}}catch(t){h=!0,v=t}finally{try{!g&&m.return&&m.return()}finally{if(h)throw v}}return i.splice(0,this.previousColumns.length),a.splice(0,this.nextColumns.length),!0}}}return!1}},{key:"getColumnsWidth",value:function(){var t=this.gantt.options.value("columnWidth");return void 0===t&&(t=!this.gantt.width||this.gantt.width<=0?20:this.gantt.width/this.columns.length),t}},{key:"getColumnsWidthToFit",value:function(){return this.gantt.getBodyAvailableWidth()/this.columns.length}},{key:"expandExtendedColumnsForPosition",value:function(e){var n=void 0;if(e<0){var i=this.getFirstColumn(),a=i.date,r=this.getFirstColumn(!0);return(!r||r.left>e)&&(n=this.gantt.options.value("viewScale"),this.previousColumns=t.GanttColumnGenerator.generate(this.columnBuilder,a,void 0,n,this.getColumnsWidth(),-e,0,!0)),!0}if(e>this.gantt.width){var o=this.getLastColumn(),s=o.getDateByPosition(o.width),l=this.getLastColumn(!0);return(!l||l.left+l.width<e)&&(n=this.gantt.options.value("viewScale"),this.nextColumns=t.GanttColumnGenerator.generate(this.columnBuilder,s,void 0,n,this.getColumnsWidth(),e-this.gantt.width,this.gantt.width,!1)),!0}return!1}},{key:"expandExtendedColumnsForDate",value:function(e){var n=this.getFirstColumn(),i=void 0;n&&(i=n.date);var a=this.getLastColumn(),r=void 0;a&&(r=a.endDate);var o=void 0;if(i&&e<i){var s=this.getFirstColumn(!0);return(!s||s.date>e)&&(o=this.gantt.options.value("viewScale"),this.previousColumns=t.GanttColumnGenerator.generate(this.columnBuilder,i,e,o,this.getColumnsWidth(),void 0,0,!0)),!0}if(r&&e>=r){var l=this.getLastColumn(!0);return(!l||l.date<r)&&(o=this.gantt.options.value("viewScale"),this.nextColumns=t.GanttColumnGenerator.generate(this.columnBuilder,r,e,o,this.getColumnsWidth(),void 0,this.gantt.width,!1)),!0}return!1}},{key:"getActiveHeadersCount",value:function(){return this.headers.length}},{key:"updateVisibleColumns",value:function(e){var n=this.gantt.options.value("columnLimitThreshold"),i=void 0;if(void 0===n||n>0&&this.columns.length>=n)for(this.visibleColumns=t.$filter("ganttColumnLimit")(this.columns,this.gantt),this.visibleHeaders=[],i=0;i<this.headers.length;i++)this.visibleHeaders.push.apply(this.visibleHeaders,t.$filter("ganttColumnLimit")(this.headers[i],this.gantt));else this.visibleColumns=this.columns,this.visibleHeaders=this.headers;if(e){for(i=0;i<this.visibleColumns.length;i++)this.visibleColumns[i].updateView();for(i=0;i<this.visibleHeaders.length;i++){var a=this.visibleHeaders[i],o=!0,s=!1,l=void 0;try{for(var u,d=(0,r.default)(a);!(o=(u=d.next()).done);o=!0){u.value.updateView()}}catch(t){s=!0,l=t}finally{try{!o&&d.return&&d.return()}finally{if(s)throw l}}}}var c=this.gantt.options.value("currentDateValue");this.gantt.currentDateManager.setCurrentDate(c)}},{key:"getHeaderFormat",value:function(t){var e=void 0,n=this.gantt.options.value("headersFormats");if(void 0!==n&&(e=n[t]),void 0===e){var i=this.gantt.options.value("viewScale");i=i.trim(),"s"===i.charAt(i.length-1)&&(i=i.substring(0,i.length-1));var a=void 0,r=void 0;i&&(r=i.split(" ")),a=r&&r.length>1?r[r.length-1]:i,["millisecond","second","minute","hour"].indexOf(a)>-1?e=this.defaultDayHeadersFormats[t]:["month","quarter","year"].indexOf(a)>-1&&(e=this.defaultYearHeadersFormats[t]),void 0===e&&(e=this.defaultHeadersFormats[t])}return e}},{key:"getHeaderScale",value:function(t){var e=void 0,n=this.gantt.options.value("headersScales");return void 0!==n&&(e=n[t]),void 0===e&&(e=t),-1===["millisecond","second","minute","hour","day","week","month","quarter","year"].indexOf(e)&&(e="day"),e}},{key:"getDateRange",value:function(t){var e=void 0,n=void 0;return t?this.visibleColumns&&this.visibleColumns.length>0&&(e=this.visibleColumns[0],n=this.visibleColumns[this.visibleColumns.length-1]):(e=this.getFirstColumn(),n=this.getLastColumn()),e&&n?[e.date,n.endDate]:void 0}}]),t}()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttObjectModel=void 0;var a=n(0),r=i(a),o=n(1),s=i(o);e.default=["ganttUtils",function(t){"ngInject";return d.ganttUtils=t,d}];var l=n(3),u=i(l),d=e.GanttObjectModel=function(){function t(e){(0,r.default)(this,t),this.api=e,this.api.registerEvent("tasks","clean"),this.api.registerEvent("rows","clean"),this.api.registerEvent("timespans","clean")}return(0,s.default)(t,[{key:"cleanTask",value:function(e){void 0===e.id&&(e.id=t.ganttUtils.randomUuid()),void 0===e.from||u.default.isMoment(e.from)||(e.from=(0,u.default)(e.from)),void 0===e.to||u.default.isMoment(e.to)||(e.to=(0,u.default)(e.to)),this.api.tasks.raise.clean(e)}},{key:"cleanRow",value:function(e){void 0===e.id&&(e.id=t.ganttUtils.randomUuid()),void 0===e.from||u.default.isMoment(e.from)||(e.from=(0,u.default)(e.from)),void 0===e.to||u.default.isMoment(e.to)||(e.to=(0,u.default)(e.to)),this.api.rows.raise.clean(e)}},{key:"cleanTimespan",value:function(e){void 0===e.id&&(e.id=t.ganttUtils.randomUuid()),void 0===e.from||u.default.isMoment(e.from)||(e.from=(0,u.default)(e.from)),void 0===e.to||u.default.isMoment(e.to)||(e.to=(0,u.default)(e.to)),this.api.timespans.raise.clean(e)}}]),t}()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttRowsManager=void 0;var a=n(5),r=i(a),o=n(4),s=i(o),l=n(0),u=i(l),d=n(1),c=i(d);e.default=["GanttRow","ganttArrays","$filter","$timeout",function(t,e,n,i){"ngInject";return p.GanttRow=t,p.$filter=n,p.$timeout=i,p.ganttArrays=e,p}];var f=n(2),g=i(f),h=n(3),v=i(h),p=e.GanttRowsManager=function(){function t(e){var n=this;(0,u.default)(this,t),this.rowsMap={},this.rows=[],this.sortedRows=[],this.filteredRows=[],this.customFilteredRows=[],this.visibleRows=[],this.rowsTaskWatchers=[],this.customRowSorters=[],this.customRowFilters=[],this.gantt=e,this._defaultFilterImpl=function(e,n,i){return t.$filter("filter")(e,n,i)},this.filterImpl=this._defaultFilterImpl,this.customRowSorters=[],this.customRowFilters=[],this.gantt.$scope.$watchGroup(["filterTask","filterTaskComparator"],function(t,e){t!==e&&n.updateVisibleTasks()}),this.gantt.$scope.$watchGroup(["filterRow","filterRowComparator"],function(t,e){t!==e&&n.updateVisibleRows()}),this.gantt.$scope.$watch("sortMode",function(t,e){t!==e&&n.sortRows()});var i=this.gantt.scroll.isVScrollbarVisible();this.gantt.$scope.$watchGroup(["maxHeight","gantt.rowsManager.visibleRows.length"],function(e,a){e!==a&&t.$timeout(function(){var t=n.gantt.scroll.isVScrollbarVisible();t!==i&&(i=t,n.gantt.columnsManager.updateColumnsMeta())})}),this.gantt.api.registerMethod("rows","sort",t.prototype.sortRows,this),this.gantt.api.registerMethod("rows","applySort",t.prototype.applySort,this),this.gantt.api.registerMethod("rows","refresh",t.prototype.updateVisibleObjects,this),this.gantt.api.registerMethod("rows","removeRowSorter",t.prototype.removeCustomRowSorter,this),this.gantt.api.registerMethod("rows","addRowSorter",t.prototype.addCustomRowSorter,this),this.gantt.api.registerMethod("rows","removeRowFilter",t.prototype.removeCustomRowFilter,this),this.gantt.api.registerMethod("rows","addRowFilter",t.prototype.addCustomRowFilter,this),this.gantt.api.registerMethod("rows","setFilterImpl",t.prototype.setFilterImpl,this),this.gantt.api.registerEvent("tasks","add"),this.gantt.api.registerEvent("tasks","change"),this.gantt.api.registerEvent("tasks","viewChange"),this.gantt.api.registerEvent("tasks","beforeRowChange"),this.gantt.api.registerEvent("tasks","beforeViewRowChange"),this.gantt.api.registerEvent("tasks","rowChange"),this.gantt.api.registerEvent("tasks","viewRowChange"),this.gantt.api.registerEvent("tasks","remove"),this.gantt.api.registerEvent("tasks","filter"),this.gantt.api.registerEvent("tasks","displayed"),this.gantt.api.registerEvent("rows","add"),this.gantt.api.registerEvent("rows","change"),this.gantt.api.registerEvent("rows","remove"),this.gantt.api.registerEvent("rows","move"),this.gantt.api.registerEvent("rows","displayed"),this.gantt.api.registerEvent("rows","filter"),this.updateVisibleObjects()}return(0,c.default)(t,[{key:"resetNonModelLists",value:function(){this.rows=[],this.sortedRows=[],this.filteredRows=[],this.customFilteredRows=[],this.visibleRows=[]}},{key:"addRow",value:function(e,n){var i=void 0,a=void 0,r=void 0,o=!1;if(this.gantt.objectModel.cleanRow(e),e.id in this.rowsMap){if(i=this.rowsMap[e.id],n&&(this.rows.push(i),this.sortedRows.push(i),this.filteredRows.push(i),this.customFilteredRows.push(i),this.visibleRows.push(i)),i.model===e)return;var s=t.ganttArrays.getRemovedIds(e.tasks,i.model.tasks);for(a=0,r=s.length;a<r;a++){var l=s[a];i.removeTask(l)}i.model=e,o=!0}else i=new t.GanttRow(this,e),this.rowsMap[e.id]=i,this.rows.push(i),this.sortedRows.push(i),this.filteredRows.push(i),this.customFilteredRows.push(i),this.visibleRows.push(i);if(void 0!==e.tasks&&e.tasks.length>0){for(a=0,r=e.tasks.length;a<r;a++){var u=e.tasks[a];i.addTask(u)}i.updateVisibleTasks()}if(o?this.gantt.api.rows.raise.change(i):this.gantt.api.rows.raise.add(i),!o){var d=this.gantt.$scope.$watchCollection(function(){return e.tasks},function(e,n){if(e!==n){var a=void 0,r=void 0,o=t.ganttArrays.getRemovedIds(e,n);for(a=0,r=o.length;a<r;a++){var s=o[a];i.removeTask(s)}if(void 0!==e){for(a=0,r=e.length;a<r;a++){var l=e[a];i.addTask(l)}i.updateVisibleTasks()}}});this.rowsTaskWatchers.push(d)}return o}},{key:"removeRow",value:function(e){if(e in this.rowsMap){delete this.rowsMap[e];var n=void 0,i=t.ganttArrays.indexOfId(this.rows,e,["model","id"]);if(i>-1){n=this.rows.splice(i,1)[0];var a=this.rowsTaskWatchers.splice(i,1)[0];a&&a()}return t.ganttArrays.removeId(this.sortedRows,e,["model","id"]),t.ganttArrays.removeId(this.filteredRows,e,["model","id"]),t.ganttArrays.removeId(this.customFilteredRows,e,["model","id"]),t.ganttArrays.removeId(this.visibleRows,e,["model","id"]),this.gantt.api.rows.raise.remove(n),n}}},{key:"removeAll",value:function(){this.rowsMap={},this.rows=[],this.sortedRows=[],this.filteredRows=[],this.customFilteredRows=[],this.visibleRows=[];var t=!0,e=!1,n=void 0;try{for(var i,a=(0,s.default)(this.rowsTaskWatchers);!(t=(i=a.next()).done);t=!0){(0,i.value)()}}catch(t){e=!0,n=t}finally{try{!t&&a.return&&a.return()}finally{if(e)throw n}}this.rowsTaskWatchers=[]}},{key:"sortRows",value:function(){var e=this.gantt.options.value("sortMode");if(void 0!==e){var n=!1;("string"==typeof e||e instanceof String)&&"-"===e.charAt(0)&&(n=!0,e=e.substr(1));var i=t.$filter("orderBy");this.sortedRows=i(this.rows,e,n)}else this.sortedRows=this.rows.slice();this.sortedRows=this.applyCustomRowSorters(this.sortedRows),this.updateVisibleRows()}},{key:"removeCustomRowSorter",value:function(t){var e=this.customRowSorters.indexOf(t);e>-1&&this.customRowSorters.splice(e,1)}},{key:"addCustomRowSorter",value:function(t){this.customRowSorters.push(t)}},{key:"applyCustomRowSorters",value:function(t){var e=t,n=!0,i=!1,a=void 0;try{for(var r,o=(0,s.default)(this.customRowSorters);!(n=(r=o.next()).done);n=!0){e=(0,r.value)(e)}}catch(t){i=!0,a=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw a}}return e}},{key:"applySort",value:function(){var t=this.gantt.$scope.data;t.splice(0,t.length);var e=[],n=!0,i=!1,a=void 0;try{for(var r,o=(0,s.default)(this.sortedRows);!(n=(r=o.next()).done);n=!0){var l=r.value;t.push(l.model),e.push(l)}}catch(t){i=!0,a=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw a}}this.rows=e}},{key:"moveRow",value:function(e,n){void 0!==this.gantt.options.value("sortMode")&&(this.applySort(),this.gantt.options.set("sortMode",void 0));var i=this.rows.indexOf(n),a=this.rows.indexOf(e);i>-1&&a>-1&&i!==a&&(t.ganttArrays.moveToIndex(this.rows,a,i),t.ganttArrays.moveToIndex(this.rowsTaskWatchers,a,i),t.ganttArrays.moveToIndex(this.gantt.$scope.data,a,i),this.gantt.api.rows.raise.change(e),this.gantt.api.rows.raise.move(e,a,i),this.updateVisibleObjects(),this.sortRows())}},{key:"updateVisibleObjects",value:function(){this.updateVisibleRows(),this.updateVisibleTasks()}},{key:"updateVisibleRows",value:function(){var t=this.filteredRows,e=this.gantt.options.value("filterRow");if(e){"object"===(void 0===e?"undefined":(0,r.default)(e))&&(e={model:e});var n=this.gantt.options.value("filterRowComparator");if("function"==typeof n){var i=this.gantt;n=function(t,e){return i.options.value("filterRowComparator")(t,e)}}this.filteredRows=this.filterImpl(this.sortedRows,e,n)}else this.filteredRows=this.sortedRows.slice(0);var a=!g.default.equals(t,this.filteredRows);this.customFilteredRows=this.applyCustomRowFilters(this.filteredRows),this.visibleRows=this.customFilteredRows,this.gantt.api.rows.raise.displayed(this.sortedRows,this.filteredRows,this.visibleRows),a&&this.gantt.api.rows.raise.filter(this.sortedRows,this.filteredRows)}},{key:"removeCustomRowFilter",value:function(t){var e=this.customRowFilters.indexOf(t);e>-1&&this.customRowFilters.splice(e,1)}},{key:"addCustomRowFilter",value:function(t){this.customRowFilters.push(t)}},{key:"applyCustomRowFilters",value:function(t){var e=t,n=!0,i=!1,a=void 0;try{for(var r,o=(0,s.default)(this.customRowFilters);!(n=(r=o.next()).done);n=!0){e=(0,r.value)(e)}}catch(t){i=!0,a=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw a}}return e}},{key:"setFilterImpl",value:function(t){this.filterImpl=t||this._defaultFilterImpl}},{key:"updateVisibleTasks",value:function(){var t=[],e=[],n=[],i=[],a=!0,r=!1,o=void 0;try{for(var l,u=(0,s.default)(this.rows);!(a=(l=u.next()).done);a=!0){var d=l.value;t=t.concat(d.filteredTasks),d.updateVisibleTasks(),e=e.concat(d.filteredTasks),i=i.concat(d.visibleTasks),n=n.concat(d.tasks)}}catch(t){r=!0,o=t}finally{try{!a&&u.return&&u.return()}finally{if(r)throw o}}this.gantt.api.tasks.raise.displayed(n,e,i),!g.default.equals(t,e)&&this.gantt.api.tasks.raise.filter(n,e,i)}},{key:"updateTasksPosAndSize",value:function(){var t=!0,e=!1,n=void 0;try{for(var i,a=(0,s.default)(this.rows);!(t=(i=a.next()).done);t=!0){i.value.updateTasksPosAndSize()}}catch(t){e=!0,n=t}finally{try{!t&&a.return&&a.return()}finally{if(e)throw n}}}},{key:"getExpandedFrom",value:function(t){t=t?(0,v.default)(t):t;var e=t,n=!0,i=!1,a=void 0;try{for(var r,o=(0,s.default)(this.rows);!(n=(r=o.next()).done);n=!0){var l=r.value;(void 0===e||e>l.from)&&(e=l.from)}}catch(t){i=!0,a=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw a}}return e&&(!t||e<t)?e:t}},{key:"getExpandedTo",value:function(t){t=t?(0,v.default)(t):t;var e=t,n=!0,i=!1,a=void 0;try{for(var r,o=(0,s.default)(this.rows);!(n=(r=o.next()).done);n=!0){var l=r.value;(void 0===e||e<l.to)&&(e=l.to)}}catch(t){i=!0,a=t}finally{try{!n&&o.return&&o.return()}finally{if(i)throw a}}var u=this.gantt.options.value("toDate");return e&&(!u||e>u)?e:t}},{key:"getDefaultFrom",value:function(){var t=void 0,e=!0,n=!1,i=void 0;try{for(var a,r=(0,s.default)(this.rows);!(e=(a=r.next()).done);e=!0){var o=a.value;(void 0===t||o.from<t)&&(t=o.from)}}catch(t){n=!0,i=t}finally{try{!e&&r.return&&r.return()}finally{if(n)throw i}}return t}},{key:"getDefaultTo",value:function(){var t=void 0,e=!0,n=!1,i=void 0;try{for(var a,r=(0,s.default)(this.rows);!(e=(a=r.next()).done);e=!0){var o=a.value;(void 0===t||o.to>t)&&(t=o.to)}}catch(t){n=!0,i=t}finally{try{!e&&r.return&&r.return()}finally{if(n)throw i}}return t}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GanttBody=void 0;var i=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=["GanttBodyColumns","GanttBodyRows","GanttBodyBackground","GanttBodyForeground",function(t,e,n,i){"ngInject";return r.GanttBodyColumns=t,r.GanttBodyRows=e,r.GanttBodyBackground=n,r.GanttBodyForeground=i,r}];var r=e.GanttBody=function t(e){(0,a.default)(this,t),this.gantt=e,this.background=new t.GanttBodyBackground(this),this.foreground=new t.GanttBodyForeground(this),this.columns=new t.GanttBodyColumns(this),this.rows=new t.GanttBodyRows(this)}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttHeader=void 0;var a=n(0),r=i(a),o=n(1),s=i(o);e.default=["GanttHeaderColumns",function(t){"ngInject";return l.GanttHeaderColumns=t,l}];var l=e.GanttHeader=function(){function t(e){(0,r.default)(this,t),this.gantt=e,this.columns=new t.GanttHeaderColumns(this.gantt)}return(0,s.default)(t,[{key:"getHeight",value:function(){return this.$element[0].offsetHeight}}]),t}()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttScroll=void 0;var a=n(0),r=i(a),o=n(1),s=i(o);e.default=function(){"ngInject";return l};var l=e.GanttScroll=function(){function t(e){(0,r.default)(this,t),this.gantt=e,this.gantt.api.registerEvent("scroll","scroll"),this.gantt.api.registerMethod("scroll","to",this.scrollTo,this),this.gantt.api.registerMethod("scroll","toDate",this.scrollToDate,this),this.gantt.api.registerMethod("scroll","left",this.scrollToLeft,this),this.gantt.api.registerMethod("scroll","right",this.scrollToRight,this),this.gantt.api.registerMethod("scroll","setWidth",this.setWidth,this)}return(0,s.default)(t,[{key:"getScrollLeft",value:function(){return void 0===this.$element?void 0:(void 0===this.cachedScrollLeft&&(this.cachedScrollLeft=this.$element[0].scrollLeft),this.cachedScrollLeft)}},{key:"getScrollWidth",value:function(){return void 0===this.$element?void 0:this.$element[0].scrollWidth}},{key:"getWidth",value:function(){return void 0===this.$element?void 0:this.$element[0].offsetWidth}},{key:"setWidth",value:function(t){this.$element[0]}},{key:"getBordersWidth",value:function(){if(void 0!==this.$element){if(this.$element[0].clientWidth)return this.$element[0].offsetWidth-this.$element[0].clientWidth;var t=window.getComputedStyle(this.$element[0]).getPropertyValue("border-left-width")?window.getComputedStyle(this.$element[0]).getPropertyValue("border-left-width").match(/\d+/)[0]:"0",e=window.getComputedStyle(this.$element[0]).getPropertyValue("border-right-width")?window.getComputedStyle(this.$element[0]).getPropertyValue("border-right-width").match(/\d+/)[0]:"0";return parseInt(t,10)+parseInt(e,10)}}},{key:"getBordersHeight",value:function(){return void 0===this.$element?void 0:this.$element[0].offsetHeight-this.$element[0].clientHeight}},{key:"isVScrollbarVisible",value:function(){if(void 0!==this.$element)return this.$element[0].scrollHeight>this.$element[0].offsetHeight}},{key:"isHScrollbarVisible",value:function(){if(void 0!==this.$element)return this.$element[0].scrollWidth>this.$element[0].offsetWidth}},{key:"scrollTo",value:function(t){this.$element[0].scrollLeft=t,this.$element.triggerHandler("scroll")}},{key:"scrollToLeft",value:function(t){this.$element[0].scrollLeft-=t,this.$element.triggerHandler("scroll")}},{key:"scrollToRight",value:function(t){this.$element[0].scrollLeft+=t,this.$element.triggerHandler("scroll")}},{key:"scrollToDate",value:function(t){var e=this.gantt.getPositionByDate(t);void 0!==e&&(this.$element[0].scrollLeft=e-this.$element[0].offsetWidth/2)}}]),t}()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttSide=void 0;var a=n(0),r=i(a),o=n(1),s=i(o);e.default=function(){"ngInject";return l};var l=e.GanttSide=function(){function t(e){(0,r.default)(this,t),this.gantt=e}return(0,s.default)(t,[{key:"getWidth",value:function(){if(this.gantt.options.value("showSide")){var t=this.gantt.options.value("sideWidth");if(void 0===t&&void 0!==this.$element&&void 0!==this.$element.css("width")&&this.$element.css("width",""),void 0!==this.$element&&(t=this.$element[0].offsetWidth),void 0!==t)return t}return 0}},{key:"show",value:function(t){void 0!==this.$element&&this.$element.toggleClass("ng-hide",!t)}},{key:"isShown",value:function(){if(void 0!==this.$element)return!this.$element.hasClass("ng-hide")}}]),t}()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttTimespansManager=void 0;var a=n(0),r=i(a),o=n(1),s=i(o);e.default=["GanttTimespan",function(t){"ngInject";return l.GanttTimespan=t,l}];var l=e.GanttTimespansManager=function(){function t(e){var n=this;(0,r.default)(this,t),this.timespansMap={},this.timespans=[],this.gantt=e,this.gantt.$scope.$watchCollection("timespans",function(t){n.clearTimespans(),n.loadTimespans(t)}),this.gantt.api.registerMethod("timespans","load",this.loadTimespans,this),this.gantt.api.registerMethod("timespans","remove",this.removeTimespans,this),this.gantt.api.registerMethod("timespans","clear",this.clearTimespans,this),this.gantt.api.registerEvent("timespans","add"),this.gantt.api.registerEvent("timespans","remove"),this.gantt.api.registerEvent("timespans","change")}return(0,s.default)(t,[{key:"loadTimespans",value:function(t){Array.isArray(t)||(t=void 0!==t?[t]:[]),this.gantt.$scope.timespans=t;for(var e=0,n=t.length;e<n;e++){var i=t[e];this.gantt.objectModel.cleanTimespan(i),this.loadTimespan(i)}}},{key:"loadTimespan",value:function(e){var n=void 0,i=!1;return e.id in this.timespansMap?(n=this.timespansMap[e.id],n.model=e,i=!0,this.gantt.api.timespans.raise.change(n)):(n=new t.GanttTimespan(this.gantt,e),this.timespansMap[e.id]=n,this.timespans.push(n),this.gantt.api.timespans.raise.add(n)),n.updatePosAndSize(),i}},{key:"removeTimespans",value:function(t){Array.isArray(t)||(t=[t]);for(var e=0,n=t.length;e<n;e++){var i=t[e];this.removeTimespan(i.id)}}},{key:"removeTimespan",value:function(t){if(t in this.timespansMap){delete this.timespansMap[t];for(var e=void 0,n=void 0,i=this.timespans.length-1;i>=0;i--)if(n=this.timespans[i],n.model.id===t){e=n,this.timespans.splice(i,1);break}return this.gantt.api.timespans.raise.remove(e),e}}},{key:"clearTimespans",value:function(){this.timespansMap={},this.timespans=[]}},{key:"updateTimespansPosAndSize",value:function(){for(var t=0,e=this.timespans.length;t<e;t++)this.timespans[t].updatePosAndSize()}}]),t}()},function(t,e,n){var i=n(140);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,a){return t.call(e,n,i,a)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(18),a=n(8).document,r=i(a)&&i(a.createElement);t.exports=function(t){return r?a.createElement(t):{}}},function(t,e,n){t.exports=!n(10)&&!n(17)(function(){return 7!=Object.defineProperty(n(51)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";var i=n(27),a=n(15),r=n(59),o=n(16),s=n(11),l=n(19),u=n(148),d=n(30),c=n(57),f=n(9)("iterator"),g=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,p,m,y){u(n,e,v);var w,k,b,M=function(t){if(!g&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",$="values"==p,C=!1,T=t.prototype,S=T[f]||T["@@iterator"]||p&&T[p],x=S||M(p),O=p?$?M("entries"):x:void 0,j="Array"==e?T.entries||S:S;if(j&&(b=c(j.call(new t)))!==Object.prototype&&(d(b,_,!0),i||s(b,f)||o(b,f,h)),$&&S&&"values"!==S.name&&(C=!0,x=function(){return S.call(this)}),i&&!y||!g&&!C&&T[f]||o(T,f,x),l[e]=x,l[_]=h,p)if(w={values:$?x:M("values"),keys:m?x:M("keys"),entries:O},y)for(k in w)k in T||r(T,k,w[k]);else a(a.P+a.F*(g||C),e,w);return w}},function(t,e,n){var i=n(29),a=n(21),r=n(13),o=n(34),s=n(11),l=n(52),u=Object.getOwnPropertyDescriptor;e.f=n(10)?u:function(t,e){if(t=r(t),e=o(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return a(!i.f.call(t,e),t[e])}},function(t,e,n){var i=n(58),a=n(26).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,a)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(11),a=n(60),r=n(31)("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=a(t),i(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},function(t,e,n){var i=n(11),a=n(13),r=n(142)(!1),o=n(31)("IE_PROTO");t.exports=function(t,e){var n,s=a(t),l=0,u=[];for(n in s)n!=o&&i(s,n)&&u.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~r(u,n)||u.push(n));return u}},function(t,e,n){t.exports=n(16)},function(t,e,n){var i=n(25);t.exports=function(t){return Object(i(t))}},function(t,e,n){"use strict";var i=n(156)(!0);n(53)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){n(161);for(var i=n(8),a=n(16),r=n(19),o=n(9)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],l=0;l<5;l++){var u=s[l],d=i[u],c=d&&d.prototype;c&&!c[o]&&a(c,o,u),r[u]=r.Array}},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["Gantt","ganttEnableNgAnimate","$timeout","$templateCache",function(t,e,n,i){"ngInject";return{restrict:"A",transclude:!0,templateUrl:function(t,e){var n=void 0;return n=void 0===e.templateUrl?"template/gantt.tmpl.html":e.templateUrl,void 0!==e.template&&i.put(n,e.template),n},scope:{sortMode:"=?",filterTask:"=?",filterTaskComparator:"=?",filterRow:"=?",filterRowComparator:"=?",viewScale:"=?",columnWidth:"=?",expandToFit:"=?",shrinkToFit:"=?",showSide:"=?",allowSideResizing:"=?",fromDate:"=?",toDate:"=?",currentDateValue:"=?",currentDate:"=?",daily:"=?",autoExpand:"=?",taskOutOfRange:"=?",taskContent:"=?",rowContent:"=?",maxHeight:"=?",sideWidth:"=?",headers:"=?",headersFormats:"=?",headersScales:"=?",timeFrames:"=?",dateFrames:"=?",timeFramesWorkingMode:"=?",timeFramesNonWorkingMode:"=?",timespans:"=?",columnMagnet:"=?",shiftColumnMagnet:"=?",timeFramesMagnet:"=?",data:"=?",api:"=?",options:"=?"},controller:["$scope","$element",function(n,i){for(var a in n.options)n[a]=n.options[a];e(i,!1),n.gantt=new t(n,i),this.gantt=n.gantt}],link:function(t,e){t.gantt.api.directives.raise.new("gantt",t,e),t.$on("$destroy",function(){t.gantt.api.directives.raise.destroy("gantt",t,e)}),n(function(){t.gantt.initialized()})}}}]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttColumnBuilder=void 0;var a=n(0),r=i(a),o=n(1),s=i(o);e.default=["GanttColumn",function(t){"ngInject";return u.GanttColumn=t,u}];var l=n(23),u=e.GanttColumnBuilder=function(){function t(e){(0,r.default)(this,t),this.columnsManager=e}return(0,s.default)(t,[{key:"newColumn",value:function(t,e,n,i){var a=this.columnsManager.gantt.calendar,r=this.columnsManager.gantt.options.value("timeFramesWorkingMode"),o=this.columnsManager.gantt.options.value("timeFramesNonWorkingMode");return new l.GanttColumn(t,e,n,i,a,r,o)}}]),t}()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),r=i(a),o=n(1),s=i(o),l=n(3),u=i(l),d=function(){function t(){(0,r.default)(this,t)}return(0,s.default)(t,[{key:"isToDateToExclude",value:function(t,e,n){return(0,u.default)(t).add(e,n).startOf(n)===t}},{key:"getFirstValue",value:function(t){if(["hour","minute","second","millisecond"].indexOf(t)>=0)return 0}},{key:"ensureNoUnitOverflow",value:function(t,e,n){var i=e.get(t),a=n.get(t),r=this.getFirstValue(t);void 0!==r&&a!==r&&a<i&&n.set(t,r)}},{key:"generate",value:function(t,e,n,i,a,r,o,s){if(!n&&!r)throw new Error("to or maximumWidth must be defined");i=i.trim(),"s"===i.charAt(i.length-1)&&(i=i.substring(0,i.length-1));var l=void 0,d=void 0,c=void 0;i&&(c=i.split(" ")),c&&c.length>1?(l=parseFloat(c[0]),d=c[c.length-1]):(l=1,d=i);var f=!1;e=(0,u.default)(e).startOf(d),n&&(f=this.isToDateToExclude(n,l,d),n=(0,u.default)(n).startOf(d));var g=0,h=(0,u.default)(e).startOf(d);s&&(h.subtract(l,d),g-=a);for(var v=[];;){if(r&&Math.abs(g)>r+a)break;var p=(0,u.default)(h),m=(0,u.default)(p).add(l,d);this.ensureNoUnitOverflow(d,p,m);var y=t.newColumn(p,m,o?g+o:g,a);if(y.cropped||(v.push(y),s?g-=a:g+=a),n)if(s){if(f&&h<n||!f&&h<=n)break}else if(f&&h>n||!f&&h>=n)break;s?(h.subtract(l,d),this.ensureNoUnitOverflow(d,h,p)):(h.add(l,d),this.ensureNoUnitOverflow(d,p,h))}return s&&(this.isToDateToExclude(e,l,d)&&v.shift(),v.reverse()),v}}]),t}();e.default=d},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(4),r=i(a),o=n(0),s=i(o),l=n(1),u=i(l),d=n(3),c=i(d),f=n(41),g=function(){function t(){(0,s.default)(this,t)}return(0,u.default)(t,[{key:"generateHeaders",value:function(t,e){var n=[],i=void 0,a=t.getHeaderScale(e),r=void 0,o=void 0,s=void 0;if(a&&(s=a.split(" ")),s&&s.length>1?(r=parseFloat(s[0]),o=s[s.length-1]):(r=1,o=a),t.columns.length>0)for(var l=t.columns[0],u=(0,c.default)(l.date).startOf(o),d=(0,c.default)(t.columns[t.columns.length-1].endDate);;){var g=l.getPositionByDate(u),h=c.default.min((0,c.default)(u).add(r,o),d),v=t.getColumnByDate(h),p=v.getPositionByDate(h),m=p-g;if(m>0){var y=t.getHeaderFormat(e);i=new f.GanttColumnHeader(u,h,o,g,m,y,e),n.push(i)}if(h.isSame(d)||h.isAfter(d))break;l=v,u=h}return n}},{key:"generate",value:function(t){var e=[];if(void 0===t.gantt.options.value("headers")){var n=t.gantt.options.value("viewScale");n=n.trim(),"s"===n.charAt(n.length-1)&&(n=n.substring(0,n.length-1));var i=void 0,a=void 0;n&&(a=n.split(" ")),i=a&&a.length>1?a[a.length-1]:n,["quarter","month"].indexOf(i)>-1&&e.push("year"),["day","week"].indexOf(i)>-1&&e.push("month"),["day"].indexOf(i)>-1&&e.push("week"),["hour"].indexOf(i)>-1&&e.push("day"),["minute","second","millisecond"].indexOf(i)>-1&&e.push("hour"),["second","millisecond"].indexOf(i)>-1&&e.push("minute"),["millisecond"].indexOf(i)>-1&&e.push("second"),e.push(n)}else e=t.gantt.options.value("headers");var o=[],s=!0,l=!1,u=void 0;try{for(var d,c=(0,r.default)(e);!(s=(d=c.next()).done);s=!0){var f=d.value;o.push(this.generateHeaders(t,f))}}catch(t){l=!0,u=t}finally{try{!s&&c.return&&c.return()}finally{if(l)throw u}}return o}}]),t}();e.default=g},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Gantt=void 0;var a=n(0),r=i(a),o=n(1),s=i(o);e.default=["GanttApi","GanttOptions","GanttCalendar","GanttScroll","GanttBody","GanttHeader","GanttSide","GanttObjectModel","GanttRowsManager","GanttColumnsManager","GanttTimespansManager","GanttCurrentDateManager","ganttArrays","$document","$timeout",function(t,e,n,i,a,r,o,s,l,u,d,c,f,g,h){"ngInject";return $.ganttArrays=f,$.$document=g,$.$timeout=h,$}];var l=n(2),u=i(l),d=n(3),c=i(d),f=n(37),g=n(38),h=n(39),v=n(40),p=n(43),m=n(44),y=n(42),w=n(49),k=n(47),b=n(45),M=n(46),_=n(48),$=e.Gantt=function(){function t(e,n){var i=this;(0,r.default)(this,t),this.rendered=!1,this.isRefreshingColumns=!1,this.$scope=e,this.$element=n,this.options=new g.GanttOptions(e,{api:function(){},data:[],timespans:[],viewScale:"day",columnMagnet:"15 minutes",timeFramesMagnet:!0,showSide:!0,allowSideResizing:!0,currentDate:"line",currentDateValue:c.default,autoExpand:"none",taskOutOfRange:"truncate",taskContent:"{{task.model.name}}",rowContent:"{{row.model.name}}",maxHeight:0,timeFrames:[],dateFrames:[],timeFramesWorkingMode:"hidden",timeFramesNonWorkingMode:"visible",taskLimitThreshold:100,columnLimitThreshold:500}),this.api=new f.GanttApi(this),this.api.registerEvent("core","ready"),this.api.registerEvent("core","rendered"),this.api.registerEvent("directives","controller"),this.api.registerEvent("directives","preLink"),this.api.registerEvent("directives","postLink"),this.api.registerEvent("directives","new"),this.api.registerEvent("directives","destroy"),this.api.registerEvent("data","change"),this.api.registerEvent("data","load"),this.api.registerEvent("data","remove"),this.api.registerEvent("data","clear"),this.api.registerMethod("core","getDateByPosition",this.getDateByPosition,this),this.api.registerMethod("core","getPositionByDate",this.getPositionByDate,this),this.api.registerMethod("data","load",this.loadData,this),this.api.registerMethod("data","remove",this.removeData,this),this.api.registerMethod("data","clear",this.clearData,this),this.api.registerMethod("data","get",this.getData,this),this.calendar=new h.GanttCalendar,this.calendar.registerTimeFrames(this.options.value("timeFrames")),this.calendar.registerDateFrames(this.options.value("dateFrames")),this.api.registerMethod("timeframes","registerTimeFrames",this.calendar.registerTimeFrames,this.calendar),this.api.registerMethod("timeframes","clearTimeframes",this.calendar.clearTimeFrames,this.calendar),this.api.registerMethod("timeframes","registerDateFrames",this.calendar.registerDateFrames,this.calendar),this.api.registerMethod("timeframes","clearDateFrames",this.calendar.clearDateFrames,this.calendar),this.api.registerMethod("timeframes","registerTimeFrameMappings",this.calendar.registerTimeFrameMappings,this.calendar),this.api.registerMethod("timeframes","clearTimeFrameMappings",this.calendar.clearTimeFrameMappings,this.calendar),e.$watchGroup(["timeFrames","dateFrames"],function(t,e){if(t!==e){var n=t[0],a=t[1],r=e[0],o=e[1],s=!1;u.default.equals(n,r)||(i.calendar.clearTimeFrames(),i.calendar.registerTimeFrames(n),s=!0),u.default.equals(a,o)||(i.calendar.clearDateFrames(),i.calendar.registerDateFrames(a),s=!0),s&&i.columnsManager.generateColumns()}}),e.$watch("columnMagnet",function(){var t=void 0,e=i.options.value("columnMagnet");e&&(t=e.trim().split(" ")),t&&t.length>1?(i.columnMagnetValue=parseFloat(t[0]),i.columnMagnetUnit=c.default.normalizeUnits(t[t.length-1])):(i.columnMagnetValue=1,i.columnMagnetUnit=c.default.normalizeUnits(e))}),e.$watchGroup(["shiftColumnMagnet","viewScale"],function(){var t=void 0,e=i.options.value("shiftColumnMagnet");e&&(t=e.trim().split(" ")),void 0!==t&&t.length>1?(i.shiftColumnMagnetValue=parseFloat(t[0]),i.shiftColumnMagnetUnit=c.default.normalizeUnits(t[t.length-1])):(i.shiftColumnMagnetValue=1,i.shiftColumnMagnetUnit=c.default.normalizeUnits(e))}),t.$document.on("keyup keydown",this.keyHandler),e.$on("$destroy",function(){t.$document.off("keyup keydown",i.keyHandler)}),this.scroll=new k.GanttScroll(this),this.body=new b.GanttBody(this),this.header=new M.GanttHeader(this),this.side=new _.GanttSide(this),this.objectModel=new p.GanttObjectModel(this.api),this.rowsManager=new m.GanttRowsManager(this),this.columnsManager=new y.GanttColumnsManager(this),this.timespansManager=new w.GanttTimespansManager(this),this.currentDateManager=new v.GanttCurrentDateManager(this),this.originalWidth=0,this.width=0,"function"==typeof this.$scope.api&&this.$scope.api(this.api);var a=function(t,e){if(void 0===e||t.length!==e.length)return!0;for(var n=0,i=t.length;n<i;n++)if(t[n].id!==e[n].id)return!0;return!1};e.$watchCollection("data",function(e,n){if(void 0!==n){var r=t.ganttArrays.getRemovedIds(e,n);if(r.length===n.length)i.rowsManager.removeAll(),i.api.data.raise.clear();else{for(var o=0,s=r.length;o<s;o++){var l=r[o];i.rowsManager.removeRow(l)}for(var u=[],d=0,c=n.length;d<c;d++)r.indexOf(n[d].id)>-1&&u.push(n[d]);i.api.data.raise.remove(u)}}if(void 0!==e){var f=a(e,n);f&&i.rowsManager.resetNonModelLists();for(var g=0,h=e.length;g<h;g++){var v=e[g];i.rowsManager.addRow(v,f)}i.api.data.raise.change(e,n),i.api.data.raise.load(e)}})}return(0,s.default)(t,[{key:"keyHandler",value:function(t){return this.shiftKey=t.shiftKey,!0}},{key:"getMagnetValueAndUnit",value:function(){if(this.shiftKey){if(void 0!==this.shiftColumnMagnetValue&&void 0!==this.shiftColumnMagnetUnit)return[this.shiftColumnMagnetValue,this.shiftColumnMagnetUnit];var t=this.options.value("viewScale");t=t.trim();var e=void 0,n=void 0,i=void 0;return t&&(i=t.split(" ")),i&&i.length>1?(e=parseFloat(i[0]),n=c.default.normalizeUnits(i[i.length-1])):(e=1,n=c.default.normalizeUnits(t)),[.25*e,n]}return[this.columnMagnetValue,this.columnMagnetUnit]}},{key:"getMagnetDate",value:function(t,e){if(void 0!==t){c.default.isMoment(c.default)||(t=(0,c.default)(t));var n=this.columnsManager.getColumnByDate(t,e),i=this.getMagnetValueAndUnit(),a=i[0],r=i[1];return n.getMagnetDate(t,a,r,this.options.value("timeFramesMagnet"))}}},{key:"getDateByPosition",value:function(t,e,n){var i=this.columnsManager.getColumnByPosition(t,n);if(void 0!==i){var a=void 0,r=void 0;if(e){var o=this.getMagnetValueAndUnit();a=o[0],r=o[1]}return i.getDateByPosition(t-i.left,a,r,this.options.value("timeFramesMagnet"))}}},{key:"getBodyAvailableWidth",value:function(){var t=this.getWidth()-this.side.getWidth(),e=this.scroll.getBordersWidth(),n=t-(void 0!==e?this.scroll.getBordersWidth():0);return n-=1}},{key:"getPositionByDate",value:function(t,e){if(void 0!==t){c.default.isMoment(c.default)||(t=(0,c.default)(t));var n=this.columnsManager.getColumnByDate(t,e);return void 0!==n?n.getPositionByDate(t):void 0}}},{key:"loadData",value:function(e){if(Array.isArray(e)||(e=void 0!==e?[e]:[]),void 0===this.$scope.data)this.$scope.data=e;else for(var n=0,i=e.length;n<i;n++){var a=e[n],r=t.ganttArrays.indexOfId(this.$scope.data,a.id);r>-1?this.$scope.data[r]=a:this.$scope.data.push(a)}var o=this.side.getWidth();o>0&&this.options.set("sideWidth",o)}},{key:"getData",value:function(){return this.$scope.data}},{key:"removeData",value:function(e){if(Array.isArray(e)||(e=void 0!==e?[e]:[]),void 0!==this.$scope.data)for(var n=0,i=e.length;n<i;n++){var a=e[n],r=t.ganttArrays.indexOfId(this.$scope.data,a.id);if(r>-1)if(void 0===a.tasks||0===a.tasks.length)this.$scope.data.splice(r,1);else for(var o=this.$scope.data[r],s=0,l=a.tasks.length;s<l;s++){var u=a.tasks[s],d=t.ganttArrays.indexOfId(o.tasks,u.id);d>-1&&o.tasks.splice(d,1)}}}},{key:"clearData",value:function(){this.$scope.data=void 0}},{key:"getWidth",value:function(){return this.$scope.ganttElementWidth}},{key:"getHeight",value:function(){return this.$scope.ganttElementHeight}},{key:"getContainerWidth",value:function(){return this.$scope.ganttContainerWidth}},{key:"getContainerHeight",value:function(){return this.$scope.ganttContainerHeight}},{key:"initialized",value:function(){var e=this;this.api.core.raise.ready(this.api),this.rendered=!0,this.columnsManager.generateColumns(),t.$timeout(function(){var t=e.side.getWidth();t>0&&e.options.set("sideWidth",t),e.api.core.raise.rendered(e.api)})}}]),t}()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttRow=e.GanttRowModel=void 0;var a=n(4),r=i(a),o=n(5),s=i(o),l=n(1),u=i(l),d=n(0),c=i(d);e.default=["GanttTask","$filter",function(t,e){"ngInject";return p.GanttTask=t,p.$filter=e,p}];var f=n(3),g=i(f),h=n(2),v=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(h),p=(e.GanttRowModel=function t(){(0,c.default)(this,t)},e.GanttRow=function(){function t(e,n){(0,c.default)(this,t),this.rowsManager=e,this.model=n,this.from=void 0,this.to=void 0,this.tasksMap={},this.tasks=[],this.filteredTasks=[],this.visibleTasks=[]}return(0,u.default)(t,[{key:"addTaskImpl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.tasksMap[t.model.id]=t,this.tasks.push(t),e||(void 0===this.model.tasks&&(this.model.tasks=[]),-1===this.model.tasks.indexOf(t.model)&&this.model.tasks.push(t.model))}},{key:"addTask",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=void 0,a=!1;if(this.rowsManager.gantt.objectModel.cleanTask(e),e.id in this.tasksMap){if(i=this.tasksMap[e.id],i.model===e)return i;i.model=e,a=!0}else i=new t.GanttTask(this,e),this.addTaskImpl(i,n);return this.sortTasks(),this.setFromToByTask(i),n||(a?this.rowsManager.gantt.api.tasks.raise.change(i):this.rowsManager.gantt.api.tasks.raise.add(i)),i}},{key:"moveTaskToRow",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.rowsManager.gantt.api.tasks.raise.beforeViewRowChange(t,this),e||this.rowsManager.gantt.api.tasks.raise.beforeRowChange(t,this);var n=t.row;n.removeTask(t.model.id,e,!0),t.row=this,this.addTaskImpl(t,e),this.sortTasks(),this.setFromToByTask(t),t.updatePosAndSize(),this.updateVisibleTasks(),n.$scope.$digest(),t.row.$scope.$digest(),this.rowsManager.gantt.api.tasks.raise.viewRowChange(t,n),e||this.rowsManager.gantt.api.tasks.raise.rowChange(t,n)}},{key:"updateVisibleTasks",value:function(){var e=this.rowsManager.gantt.options.value("filterTask");if(e){"object"===(void 0===e?"undefined":(0,s.default)(e))&&(e={model:e});var n=this.rowsManager.gantt.options.value("filterTaskComparator");"function"==typeof n&&(n=function(t,e){return n(t.model,e.model)}),this.filteredTasks=t.$filter("filter")(this.tasks,e,n)}else this.filteredTasks=this.tasks.slice(0);var i=this.rowsManager.gantt.options.value("taskLimitThreshold");void 0===i||i>0&&this.filteredTasks.length>=i?this.visibleTasks=t.$filter("ganttTaskLimit")(this.filteredTasks,this.rowsManager.gantt):this.visibleTasks=this.filteredTasks}},{key:"updateTasksPosAndSize",value:function(){var t=!0,e=!1,n=void 0;try{for(var i,a=(0,r.default)(this.tasks);!(t=(i=a.next()).done);t=!0){i.value.updatePosAndSize()}}catch(t){e=!0,n=t}finally{try{!t&&a.return&&a.return()}finally{if(e)throw n}}}},{key:"removeTask",value:function(t,e,n){if(t in this.tasksMap){var i=this.tasksMap[t],a=void 0,r=void 0;for(r=this.tasks.length-1;r>=0;r--)if(a=this.tasks[r],a.model.id===t){this.tasks.splice(r,1),(this.from&&this.from.isSame((0,g.default)(a.model.from))||this.to&&this.to.isSame((0,g.default)(a.model.to)))&&this.setFromTo();break}for(r=this.filteredTasks.length-1;r>=0;r--)if(a=this.filteredTasks[r],a.model.id===t){this.filteredTasks.splice(r,1);break}for(r=this.visibleTasks.length-1;r>=0;r--)if(a=this.visibleTasks[r],a.model.id===t){this.visibleTasks.splice(r,1);break}if(!e){if(delete this.tasksMap[t],void 0!==this.model.tasks){var o=this.model.tasks.indexOf(i.model);o>-1&&this.model.tasks.splice(o,1)}n||this.rowsManager.gantt.api.tasks.raise.remove(i)}return i}}},{key:"removeAllTasks",value:function(){this.from=void 0,this.to=void 0,this.tasksMap={},this.tasks=[],this.filteredTasks=[],this.visibleTasks=[]}},{key:"setFromTo",value:function(){this.from=void 0,this.to=void 0;var t=!0,e=!1,n=void 0;try{for(var i,a=(0,r.default)(this.tasks);!(t=(i=a.next()).done);t=!0){var o=i.value;this.setFromToByTask(o)}}catch(t){e=!0,n=t}finally{try{!t&&a.return&&a.return()}finally{if(e)throw n}}}},{key:"setFromToByTask",value:function(t){this.setFromToByValues(t.model.from,t.model.to)}},{key:"setFromToByValues",value:function(t,e){void 0!==t&&(void 0===this.from?this.from=(0,g.default)(t):t<this.from&&(this.from=(0,g.default)(t))),void 0!==e&&(void 0===this.to?this.to=(0,g.default)(e):e>this.to&&(this.to=(0,g.default)(e)))}},{key:"sortTasks",value:function(){this.tasks.sort(function(t,e){return t.left-e.left})}},{key:"clone",value:function(){var e=new t(this.rowsManager,v.copy(this.model)),n=!0,i=!1,a=void 0;try{for(var o,s=(0,r.default)(this.tasks);!(n=(o=s.next()).done);n=!0){var l=o.value;e.addTask(l.model)}}catch(t){i=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return e}}]),t}())},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttTask=e.GanttTaskModel=void 0;var a=n(1),r=i(a),o=n(0),s=i(o);e.default=function(){"ngInject";return f};var l=n(2),u=i(l),d=n(3),c=i(d),f=(e.GanttTaskModel=function t(){(0,s.default)(this,t)},e.GanttTask=function(){function t(e,n){(0,s.default)(this,t),this.rowsManager=e.rowsManager,this.row=e,this.model=n,this.truncatedLeft=!1,this.truncatedRight=!1}return(0,r.default)(t,[{key:"isMilestone",value:function(){return!this.model.to||this.model.to.isSame(this.model.from)}},{key:"isOutOfRange",value:function(){var t=this.rowsManager.gantt.columnsManager.getFirstColumn(),e=this.rowsManager.gantt.columnsManager.getLastColumn();return void 0===t||this.model.to<t.date||void 0===e||this.model.from>e.endDate}},{key:"updatePosAndSize",value:function(){var t=this.left,e=this.width,n=this.truncatedRight,i=this.truncatedLeft;!this.isMoving&&this.isOutOfRange()?(this.modelLeft=void 0,this.modelWidth=void 0):(this.modelLeft=this.rowsManager.gantt.getPositionByDate(this.model.from),this.modelWidth=this.rowsManager.gantt.getPositionByDate(this.model.to)-this.modelLeft);var a=this.rowsManager.gantt.columnsManager.getLastColumn(),r=a?a.left+a.width:0,o=this.modelLeft,s=this.modelWidth;this.rowsManager.gantt.options.value("daily")&&(o=this.rowsManager.gantt.getPositionByDate((0,c.default)(this.model.from).startOf("day")),s=this.rowsManager.gantt.getPositionByDate((0,c.default)(this.model.to).endOf("day"))-o);var l=-s;o<l&&(o=l),o>r&&(o=r),void 0===o||void 0===s?(this.left=void 0,this.width=void 0):(this.left=o,this.width=s,o<0?(this.truncatedLeft=!0,this.truncatedLeftOffset=-o,this.truncatedRight=!1,this.truncatedRightOffset=void 0):s+o>this.rowsManager.gantt.width?(this.truncatedRight=!0,this.truncatedRightOffset=s+o-this.rowsManager.gantt.width,this.truncatedLeft=!1,this.truncatedLeftOffset=void 0):(this.truncatedLeft=!1,this.truncatedLeftOffset=void 0,this.truncatedRight=!1,this.truncatedRightOffset=s+o-this.rowsManager.gantt.width),this.width<0&&(this.left=this.left+this.width,this.width=-this.width)),this.updateView(),this.rowsManager.gantt.isRefreshingColumns||t===this.left&&e===this.width&&n===this.truncatedRight&&i===this.truncatedLeft||this.rowsManager.gantt.api.tasks.raise.viewChange(this)}},{key:"updateView",value:function(){if(this.$element)if(void 0===this.left||void 0===this.width)this.$element.css("display","none");else{if(this.$element.css({left:this.left+"px",width:this.width+"px",display:""}),this.model.priority>0){var t=this.model.priority,e=this.$element.children();this.$element.css("z-index",t);for(var n=0;n<e.length;n++)u.default.element(e[n]).css("z-index",t)}this.$element.toggleClass("gantt-task-milestone",this.isMilestone())}}},{key:"getBackgroundElement",value:function(){if(void 0===this.$element);else{var t=this.$element[0].querySelector(".gantt-task-background");if(void 0!==t)return u.default.element(t)}}},{key:"getContentElement",value:function(){if(void 0===this.$element);else{var t=this.$element[0].querySelector(".gantt-task-content");if(void 0!==t)return u.default.element(t)}}},{key:"getForegroundElement",value:function(){if(void 0!==this.$element){var t=this.$element[0].querySelector(".gantt-task-foreground");return void 0!==t?u.default.element(t):t}}},{key:"setFrom",value:function(t,e){this.model.from=this.rowsManager.gantt.getDateByPosition(t,e),this.row.setFromTo(),this.updatePosAndSize()}},{key:"setTo",value:function(t,e){this.model.to=this.rowsManager.gantt.getDateByPosition(t,e),this.row.setFromTo(),this.updatePosAndSize()}},{key:"moveTo",value:function(t,e){var n=void 0,i=void 0;t>this.modelLeft?(this.model.to=this.rowsManager.gantt.getDateByPosition(t+this.modelWidth,e),n=this.rowsManager.gantt.getPositionByDate(this.model.to),i=n-this.modelWidth,this.model.from=this.rowsManager.gantt.getDateByPosition(i,!1)):(this.model.from=this.rowsManager.gantt.getDateByPosition(t,e),i=this.rowsManager.gantt.getPositionByDate(this.model.from),n=i+this.modelWidth,this.model.to=this.rowsManager.gantt.getDateByPosition(n,!1)),this.row.setFromTo(),this.updatePosAndSize()}},{key:"clone",value:function(){return new t(this.row,u.default.copy(this.model))}}]),t}())},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GanttBodyBackground=void 0;var i=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){"ngInject";return r};var r=e.GanttBodyBackground=function t(e){(0,a.default)(this,t),this.body=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GanttBodyColumns=void 0;var i=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){"ngInject";return r};var r=e.GanttBodyColumns=function t(e){(0,a.default)(this,t),this.body=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GanttBodyForeground=void 0;var i=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){"ngInject";return r};var r=e.GanttBodyForeground=function t(e){(0,a.default)(this,t),this.body=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GanttBodyRows=void 0;var i=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){"ngInject";return r};var r=e.GanttBodyRows=function t(e){(0,a.default)(this,t),this.body=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GanttHeaderColumns=void 0;var i=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){"ngInject";return r};var r=e.GanttHeaderColumns=function t(e){(0,a.default)(this,t),this.$element=e}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Timespan=e.TimespanModel=void 0;var a=n(1),r=i(a),o=n(0),s=i(o);e.default=function(){"ngInject";return d};var l=n(2),u=i(l),d=(e.TimespanModel=function t(){(0,s.default)(this,t)},e.Timespan=function(){function t(e,n){(0,s.default)(this,t),this.gantt=e,this.model=n}return(0,r.default)(t,[{key:"updatePosAndSize",value:function(){this.modelLeft=this.gantt.getPositionByDate(this.model.from),this.modelWidth=this.gantt.getPositionByDate(this.model.to)-this.modelLeft;var t=this.gantt.columnsManager.getLastColumn(),e=t?t.left+t.width:0,n=this.modelLeft,i=this.modelWidth,a=-i;n<a&&(n=a),n>e&&(n=e),void 0===n||void 0===i?(this.left=void 0,this.width=void 0):(this.left=n,this.width=i,n<0?(this.truncatedLeft=!0,this.truncatedLeftOffset=-n,this.truncatedRight=!1,this.truncatedRightOffset=void 0):i+n>this.gantt.width?(this.truncatedRight=!0,this.truncatedRightOffset=i+n-this.gantt.width,this.truncatedLeft=!1,this.truncatedLeftOffset=void 0):(this.truncatedLeft=!1,this.truncatedLeftOffset=void 0,this.truncatedRight=!1,this.truncatedRightOffset=i+n-this.gantt.width),this.width<0&&(this.left=this.left+this.width,this.width=-this.width)),this.updateView()}},{key:"updateView",value:function(){this.$element&&(void 0===this.left||void 0===this.width?this.$element.css("display","none"):(this.$element.css("display",""),this.$element.css("left",this.left+"px"),this.$element.css("width",this.width+"px")))}},{key:"setFrom",value:function(t){this.from=this.gantt.getDateByPosition(t),this.updatePosAndSize()}},{key:"setTo",value:function(t){this.to=this.gantt.getDateByPosition(t),this.updatePosAndSize()}},{key:"moveTo",value:function(t){this.from=this.gantt.getDateByPosition(t),this.to=this.gantt.getDateByPosition(t+this.width),this.updatePosAndSize()}},{key:"clone",value:function(){return new t(this.gantt,u.default.copy(this.model))}}]),t}())},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),r=i(a),o=n(1),s=i(o),l=function(){function t(){(0,r.default)(this,t)}return(0,s.default)(t,[{key:"moveToIndex",value:function(t,e,n){if(n>=t.length)for(var i=n-t.length;1+i--;)t.push(void 0);return t.splice(n,0,t.splice(e,1)[0]),t}},{key:"getRemovedIds",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id",i=void 0,a=void 0,r=[];if(void 0!==e)for(i=0,a=e.length;i<a;i++)r.push(e[i][n]);if(void 0!==t)for(i=0,a=t.length;i<a;i++){var o=t[i];if(void 0!==o[n]){var s=r.indexOf(o[n]);s>-1&&r.splice(s,1)}}return r}},{key:"indexOfId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id",i=void 0;if(n instanceof Array){for(i=t.length-1;i>=0;i--){for(var a=t[i],r=0,o=n.length;r<o;r++)a=a[n[r]];if(a===e)return i}return-1}for(i=t.length-1;i>=0;i--)if(t[i][n]===e)return i;return-1}},{key:"removeId",value:function(t,e,n){var i=this.indexOfId(t,e,n);if(i>-1)return t.splice(i,1)[0]}},{key:"remove",value:function(t,e){var n=t.indexOf(e);return n>-1&&(t.splice(n,1),!0)}}]),t}();e.default=l},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),r=i(a),o=n(1),s=i(o),l=function(){function t(){(0,r.default)(this,t)}return(0,s.default)(t,[{key:"getIndicesOnly",value:function(t,e,n,i){for(var a=-1,r=t.length;r-a>1;){var o=Math.floor((a+r)/2);(i?n(t[o])<e:n(t[o])<=e)?a=o:r=o}return i||void 0===t[a]||n(t[a])!==e||(r=a),[a,r]}},{key:"get",value:function(t,e,n,i){var a=this.getIndicesOnly(t,e,n,i);return[t[a[0]],t[a[1]]]}}]),t}();e.default=l},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function a(){"ngInject";return c}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttHierarchy=void 0;var r=n(4),o=i(r),s=n(0),l=i(s),u=n(1),d=i(u);e.default=a;var c=e.GanttHierarchy=function(){function t(){(0,l.default)(this,t),this.nameToRow={},this.idToRow={},this.nameToChildren={},this.idToChildren={},this.nameToParent={},this.idToParent={}}return(0,d.default)(t,[{key:"registerChildRow",value:function(t,e){if(void 0!==e){var n=this.nameToChildren[t.model.name];void 0===n&&(n=[],this.nameToChildren[t.model.name]=n),n.push(e);var i=this.idToChildren[t.model.id];void 0===i&&(i=[],this.idToChildren[t.model.id]=i),i.push(e),this.nameToParent[e.model.name]=t,this.idToParent[e.model.id]=t}}},{key:"refresh",value:function(t){this.nameToRow={},this.idToRow={},this.nameToChildren={},this.idToChildren={},this.nameToParent={},this.idToParent={};for(var e=void 0,n=0;n<t.length;n++)e=t[n],this.nameToRow[e.model.name]=e,this.idToRow[e.model.id]=e;for(var i=0;i<t.length;i++){if(e=t[i],void 0!==e.model.parent){var a=this.nameToRow[e.model.parent];void 0===a&&(a=this.idToRow[e.model.parent]),void 0!==a&&this.registerChildRow(a,e)}if(void 0!==e.model.children){var r=e.model.children,s=!0,l=!1,u=void 0;try{for(var d,c=(0,o.default)(r);!(s=(d=c.next()).done);s=!0){var f=d.value,g=this.nameToRow[f];void 0===g&&(g=this.idToRow[f]),void 0!==g&&this.registerChildRow(e,g)}}catch(t){l=!0,u=t}finally{try{!s&&c.return&&c.return()}finally{if(l)throw u}}}}for(var h=[],v=0;v<t.length;v++)e=t[v],void 0===this.parent(e)&&h.push(e);return h}},{key:"children",value:function(t){return this.idToChildren[t.model.id]}},{key:"descendants",value:function(t){var e=[],n=this.children(t);if(e.push.apply(e,n),void 0!==n){var i=!0,a=!1,r=void 0;try{for(var s,l=(0,o.default)(n);!(i=(s=l.next()).done);i=!0){var u=s.value,d=this.descendants(u);e.push.apply(e,d)}}catch(t){a=!0,r=t}finally{try{!i&&l.return&&l.return()}finally{if(a)throw r}}}return e}},{key:"parent",value:function(t){return this.idToParent[t.model.id]}},{key:"ancestors",value:function(t){for(var e=[],n=this.parent(t);void 0!==n;)e.push(n),n=this.parent(n);return e}}]),t}()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),r=i(a),o=n(1),s=i(o),l=n(2),u=i(l),d=function(){function t(){(0,r.default)(this,t),this.seedId=(new Date).getTime()}return(0,s.default)(t,[{key:"createBoundedWrapper",value:function(t,e){return function(){return e.apply(t,arguments)}}},{key:"firstProperty",value:function(t,e,n){for(var i=0,a=t.length;i<a;i++){var r=t[i];if(void 0!==r&&e in r&&void 0!==r[e])return r[e]}return n}},{key:"angularIndexOf",value:function(t,e){for(var n=0;n<t.length;n++)if(u.default.equals(t[n],e))return n;return-1}},{key:"random4",value:function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}},{key:"randomUuid",value:function(){return this.random4()+this.random4()+"-"+this.random4()+"-"+this.random4()+"-"+this.random4()+"-"+this.random4()+this.random4()+this.random4()}},{key:"newId",value:function(){return this.seedId+=1}}]),t}();e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["ganttBinarySearch",function(t){"ngInject";var e=function(t){return t.left};return function(n,i){var a=i.scroll.getScrollLeft(),r=i.getWidth()-i.side.getWidth();if(r>0){var o=t.getIndicesOnly(n,a,e)[0],s=t.getIndicesOnly(n,a+r,e)[1];return n.slice(o,s)}return n.slice()}}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){"ngInject";return function(t,e){var n=e.columnsManager.getFirstColumn(),i=e.columnsManager.getLastColumn();if(void 0!==n&&void 0!==i){for(var a=n.date,r=i.endDate,o=[],s=e.scroll.getScrollLeft(),l=e.getWidth()-e.side.getWidth(),u=0,d=t.length;u<d;u++){var c=t[u];c.active?o.push(c):c.model.to>=a&&c.model.from<=r&&(void 0===c.left&&c.updatePosAndSize(),(!l||c.left>=s&&c.left<=s+l||c.left+c.width>=s&&c.left+c.width<=s+l||c.left<s&&c.left+c.width>s+l)&&o.push(c))}return o}return t.splice(0)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["$document","$parse","$timeout","ganttMouseOffset",function(t,e,n,i){"ngInject";return{restrict:"A",require:"^gantt",scope:{targetElement:"=ganttResizer",enabled:"@?ganttResizerEnabled"},link:function(a,r,o,s){function l(){return s.gantt.options.value(o.resizerWidth)}function u(t){t!==l()&&(s.gantt.options.set(o.resizerWidth,t),void 0!==v&&h[v].raise.resize(t),n(function(){s.gantt.columnsManager.updateColumnsMeta()}))}function d(t){t.preventDefault(),u(void 0)}function c(t){a.$evalAsync(function(){var e=i.getOffsetForElement(a.targetElement[0],t),n=s.gantt.getWidth()-s.gantt.scroll.getBordersWidth();u(Math.min(Math.max(e.x,0),n))})}function f(){void 0!==v&&h[v].raise.resizeEnd(l()),t.unbind("mousemove",c),t.unbind("mouseup",f)}function g(e){e.preventDefault(),void 0!==v&&h[v].raise.resizeBegin(l()),t.on("mousemove",c),t.on("mouseup",f)}var h=s.gantt.api,v=o.ganttResizerEventTopic;void 0===a.enabled&&(a.enabled=!0),o.$observe("ganttResizerEnabled",function(t){a.enabled=e(t)()}),a.$watch("enabled",function(t){void 0===t&&(t=!0),r.toggleClass("gantt-resizer-enabled",t),t?(r.on("dblclick",d),r.on("mousedown",g)):(r.off("dblclick",d),r.off("mousedown",g))}),a.$watch(function(){return l()},function(t,e){t!==e&&(a.targetElement.css("width",t+"px"),a.targetElement[0].offsetWidth>0&&u(a.targetElement[0].offsetWidth))}),v&&(h.registerEvent(v,"resize"),h.registerEvent(v,"resizeBegin"),h.registerEvent(v,"resizeEnd"),h.registerMethod(v,"setWidth",u,this),h.registerMethod(v,"getWidth",l,this))}}}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){"ngInject";return{restrict:"A",require:"^ganttScrollManager",link:function(t,e,n,i){i.registerHorizontalReceiver(e)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){"ngInject";return{restrict:"A",scope:{},controller:["$scope",function(t){t.horizontal=[],t.vertical=[],this.registerVerticalReceiver=function(e){e.css("position","relative"),t.vertical.push(e[0])},this.registerHorizontalReceiver=function(e){e.css("position","relative"),t.horizontal.push(e[0])},this.getHorizontalRecievers=function(){return t.horizontal},this.getVerticalRecievers=function(){return t.vertical}}]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){"ngInject";return{restrict:"A",require:["^gantt","^ganttScrollManager"],link:function(t,e,n,i){var a=e[0],r=function(){var t=void 0,e=void 0,n=i[1].getVerticalRecievers();for(t=0,e=n.length;t<e;t++){var r=n[t];r.parentNode.scrollTop!==a.scrollTop&&(r.parentNode.scrollTop=a.scrollTop)}var o=i[1].getHorizontalRecievers();for(t=0,e=o.length;t<e;t++){var s=o[t];s.parentNode.scrollLeft!==a.scrollLeft&&(s.parentNode.scrollLeft=a.scrollLeft)}};e.bind("scroll",r),t.$watch(function(){return i[0].gantt.width},function(t,e){if(t!==e)for(var n=i[1].getHorizontalRecievers(),a=0,r=n.length;a<r;a++){var o=n[a];o.style.width=t+"px"}})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder","$timeout","ganttDebounce",function(t,e,n){"ngInject";var i=new t("ganttScrollable");return i.controller=function(t,i){t.gantt.scroll.$element=i;var r=void 0,o=void 0,s=function(e,n,i){var r=t.gantt.options.value("autoExpand");if("both"===r||!0===r||r===i){var o=void 0,s=void 0,l=t.gantt.options.value("viewScale");l=l.trim(),"s"===l.charAt(l.length-1)&&(l=l.substring(0,l.length-1));var u=void 0,d=void 0,c=void 0;l&&(c=l.split(" ")),c&&c.length>1?(u=parseFloat(c[0]),d=c[c.length-1]):(u=1,d=l),"left"===i?(o=(0,a.default)(n).add(-5*u,d),t.fromDate=o):(s=(0,a.default)(n).add(5*u,d),t.toDate=s),t.gantt.api.scroll.raise.scroll(e.scrollLeft,n,i)}};i.bind("scroll",n(function(){var n=i[0],a=n.scrollLeft,l=void 0,u=void 0;t.gantt.scroll.cachedScrollLeft=a,t.gantt.columnsManager.updateVisibleColumns(),t.gantt.rowsManager.updateVisibleObjects(),a<r&&0===a?(l="left",u=t.gantt.columnsManager.from):a>r&&n.offsetWidth+a>=n.scrollWidth-1&&(l="right",u=t.gantt.columnsManager.to),r=a,void 0!==u?(o&&e.cancel(o),o=e(function(){s(n,u,l)},300)):t.gantt.api.scroll.raise.scroll(a)},5)),t.getScrollableCss=function(){var e={},n=t.gantt.options.value("maxHeight");n||(n=t.gantt.getContainerHeight()),n>0&&(e["max-height"]=n-t.gantt.header.getHeight()+"px",e["overflow-y"]="auto",t.gantt.scroll.isVScrollbarVisible()&&(e["border-right"]="none"));var i=this.gantt.options.value("columnWidth"),a=0!==t.gantt.width&&t.gantt.width<t.gantt.getWidth()-t.gantt.side.getWidth();return void 0!==i&&a&&(e.width=t.gantt.width+this.gantt.scroll.getBordersWidth()+"px"),e}},i.build()}];var i=n(3),a=function(t){return t&&t.__esModule?t:{default:t}}(i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){"ngInject";return{restrict:"A",require:"^ganttScrollManager",link:function(t,e,n,i){i.registerVerticalReceiver(e)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){"ngInject";return{restrict:"A",controller:["$scope","$element","$attrs",function(t,e,n){var i=n.ganttContainerHeightListener;""===i&&(i="ganttContainerHeight");for(var a=t;0===i.indexOf("$parent.");)i=i.substring("$parent.".length),a=a.$parent;a.$watch(function(){var t=e[0].parentElement?e[0].parentElement.parentElement:void 0;if(t){var n=t.offsetHeight,i=getComputedStyle(t);return n=n-parseInt(i.marginTop,10)-parseInt(i.marginBottom,10)}return 0},function(t){t>0&&(a[i]=t)})}]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){"ngInject";return{restrict:"A",controller:["$scope","$element","$attrs",function(t,e,n){var i=n.ganttContainerWidthListener;""===i&&(i="ganttContainerWidth");for(var a=t;0===i.indexOf("$parent.");)i=i.substring("$parent.".length),a=a.$parent;a.$watch(function(){var t=e[0].parentElement?e[0].parentElement.parentElement:void 0;if(t){var n=t.offsetWidth,i=getComputedStyle(t);return n=n-parseInt(i.marginLeft,10)-parseInt(i.marginRight,10)}return 0},function(t){t>0&&(a[i]=t)})}]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){"ngInject";return{restrict:"A",controller:["$scope","$element","$attrs",function(t,e,n){var i=n.ganttElementHeightListener;""===i&&(i="ganttElementHeight");for(var a=e[0],r=t;0===i.indexOf("$parent.");)i=i.substring("$parent.".length),r=r.$parent;r.$watch(function(){return a.clientHeight},function(t){t>0&&(r[i]=t)})}]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){"ngInject";return{restrict:"A",controller:["$scope","$element","$attrs",function(t,e,n){var i=n.ganttElementWidthListener;""===i&&(i="ganttElementWidth");for(var a=e[0],r=t;0===i.indexOf("$parent.");)i=i.substring("$parent.".length),r=r.$parent;r.$watch(function(){return a.clientWidth},function(t){t>0&&(r[i]=t)})}]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttBody");return e.controller=function(t,e){t.gantt.body.$element=e,t.gantt.body.$scope=t},e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttBodyBackground");return e.controller=function(t,e){t.gantt.body.background.$element=e,t.gantt.body.background.$scope=t},e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttBodyColumns");return e.controller=function(t,e){t.gantt.body.columns.$element=e,t.gantt.body.background.$scope=t},e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttBodyForeground");return e.controller=function(t,e){t.gantt.body.foreground.$element=e,t.gantt.body.foreground.$scope=t},e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttBodyRows");return e.controller=function(t,e){t.gantt.body.rows.$element=e,t.gantt.body.rows.$scope=t},e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttColumn");return e.controller=function(t,e){t.column.$element=e,t.column.$scope=t,t.column.updateView()},e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttColumnHeader");return e.controller=function(t,e){t.column.$element=e,t.column.$scope=t,t.column.updateView()},e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttHeader");return e.controller=function(t,e){t.gantt.header.$element=e,t.gantt.header.$scope=t},e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttHeaderColumns");return e.controller=function(t,e){t.gantt.header.columns.$element=e,t.gantt.header.columns.$scope=t},e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttRow");return e.controller=function(t,e){t.row.$element=e,t.row.$scope=t},e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";return new t("ganttRowBackground").build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttRowLabel");return e.restrict="A",e.templateUrl=void 0,e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder","ganttLayout",function(t,e){"ngInject";var n=new t("ganttScrollableHeader");return n.controller=function(t){var n=e.getScrollBarWidth();t.getScrollableHeaderCss=function(){var e={},i=t.gantt.scroll.isVScrollbarVisible(),a=i?n:0,r=this.gantt.options.value("columnWidth"),o=0!==t.gantt.width&&t.gantt.width<t.gantt.getWidth()-t.gantt.side.getWidth();return void 0!==r&&o?e.width=t.gantt.width-a+this.gantt.scroll.getBordersWidth()+"px":i&&(e.width=t.gantt.getWidth()-t.gantt.side.getWidth()-a+"px"),e}},n.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttSide");return e.controller=function(t,e){t.gantt.side.$element=e,t.gantt.side.$scope=t},e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder","ganttLayout",function(t,e){"ngInject";var n=new t("ganttSideBackground");return n.controller=function(t){var n=e.getScrollBarHeight();t.getMaxHeightCss=function(){var e={},i=t.maxHeight;i||(i=t.gantt.getContainerHeight());var a=t.gantt.scroll.isHScrollbarVisible()?n:0;return e["max-height"]=i-a-t.gantt.header.getHeight()+"px",e}},n.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";return new t("ganttSideContent").build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttTask");return e.controller=function(t,e){t.task.$element=e,t.task.$scope=t,t.getTaskContent=function(){return void 0!==t.task.model.content?t.task.model.content:t.task.rowsManager.gantt.options.value("taskContent")},t.simplifyMoment=function(t){return a.default.isMoment(t)?t.unix():t},t.$watchGroup(["simplifyMoment(task.model.from)","simplifyMoment(task.model.to)"],function(){t.task.updatePosAndSize()})},e.build()}];var i=n(3),a=function(t){return t&&t.__esModule?t:{default:t}}(i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";return new t("ganttTaskBackground").build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";return new t("ganttTaskContent").build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";return new t("ganttTaskForeground").build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttTimeFrame");return e.controller=function(t,e){t.timeFrame.$element=e,t.timeFrame.$scope=t,t.timeFrame.updateView()},e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttTimespan");return e.controller=function(t,e){t.timespan.$element=e,t.timespan.$scope=t,t.timespan.updateView()},e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["$timeout",function(t){"ngInject";function e(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=0;return function(){var r=this,o=arguments;a++;var s=function(t){return function(){if(t===a)return e.apply(r,o)}}(a);return t(s,n,void 0===i||i)}}return e}]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttDirectiveBuilder=void 0;var a=n(0),r=i(a),o=n(1),s=i(o);e.default=["$templateCache",function(t){"ngInject";return l.$templateCache=t,l}];var l=e.GanttDirectiveBuilder=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"^gantt",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"E";(0,r.default)(this,t),this.directiveName=e,this.templateUrl=void 0===n?"template/"+e+".tmpl.html":n,this.require=void 0===i?"^gantt":i,this.restrict=void 0===a?"E":a,this.scope=!1,this.transclude=!0,this.replace=!0}return(0,s.default)(t,[{key:"build",value:function(){var e=this.directiveName,n=this.templateUrl,i=this.controller,a={restrict:this.restrict,require:this.require,transclude:this.transclude,replace:this.replace,scope:this.scope,templateUrl:function(e,i){return void 0!==i.templateUrl&&(n=i.templateUrl),void 0!==i.template&&t.$templateCache.put(n,i.template),n},compile:function(){return{pre:function(t,n,i,a){t.gantt.api.directives.raise.preLink(e,t,n,i,a)},post:function(t,n,i,a){t.gantt.api.directives.raise.postLink(e,t,n,i,a)}}},controller:["$scope","$element","$attrs",function(t,n,a){"ngInject";var r=this;void 0!==i&&i(t,n,a,r),t.gantt.api.directives.raise.controller(e,t,n,a,r),t.$on("$destroy",function(){t.gantt.api.directives.raise.destroy(e,t,n,a,r)}),t.$applyAsync(function(){t.gantt.api.directives.raise.new(e,t,n,a,r)})}]};return n||(delete a.templateUrl,delete a.replace,delete a.transclude),a}}]),t}()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),r=i(a),o=n(1),s=i(o),l=function(){function t(e){"ngInject";(0,r.default)(this,t),this.$document=e}return t.$inject=["$document"],(0,s.default)(t,[{key:"elementFromPoint",value:function(t,e){return this.$document[0].elementFromPoint(t,e)}},{key:"elementsFromPoint",value:function(t,e,n){for(var i=[],a=[],r=0,o=void 0,s=void 0,l=void 0,u=void 0;(o=this.elementFromPoint(t,e))&&-1===i.indexOf(o)&&null!==o&&(void 0===n||r<n);)i.push(o),a.push({value:o.style.getPropertyValue("visibility"),priority:o.style.getPropertyPriority("visibility")}),o.style.setProperty("visibility","hidden","important"),r++;for(s=0,l=a.length;s<l;s++)u=a[s],i[s].style.setProperty("visibility",u.value?u.value:"",u.priority);return i}},{key:"findElementFromPoint",value:function(t,e,n){for(var i=[],a=[],r=0,o=void 0,s=void 0,l=void 0,u=void 0,d=void 0;(o=this.elementFromPoint(t,e))&&-1===i.indexOf(o)&&null!==o;)if(i.push(o),a.push({value:o.style.getPropertyValue("visibility"),priority:o.style.getPropertyPriority("visibility")}),o.style.setProperty("visibility","hidden","important"),r++,n(o)){s=o;break}for(l=0,u=a.length;l<u;l++)d=a[l],i[l].style.setProperty("visibility",d.value?d.value:"",d.priority);return s}},{key:"isElementVisible",value:function(t){return void 0!==t.offsetParent&&null!==t.offsetParent}}]),t}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["$injector",function(t){"ngInject";var e=void 0;try{e=t.get("$animate")}catch(t){}return void 0!==e?function(t,n){a.default.version.major>=1&&a.default.version.minor>=4?e.enabled(t,n):e.enabled(n,t)}:function(){}}];var i=n(2),a=function(t){return t&&t.__esModule?t:{default:t}}(i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["$compile",function(t){"ngInject";return{restrict:"A",require:"^gantt",link:function(e,n,i,a){e.scope=a.gantt.$scope.$parent,e.$watch(function(){return e.$eval(i.ganttBindCompileHtml)},function(i){n.html(i),t(n.contents())(e)})}}}]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(4),r=i(a),o=n(0),s=i(o),l=n(1),u=i(l),d=function(){function t(e){"ngInject";(0,s.default)(this,t),this.$document=e}return t.$inject=["$document"],(0,u.default)(t,[{key:"getScrollBarWidth",value:function(){var t=this.$document[0].createElement("p");t.style.width="100%",t.style.height="200px";var e=this.$document[0].createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),this.$document[0].body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;return n===i&&(i=e.clientWidth),this.$document[0].body.removeChild(e),n-i}},{key:"getScrollBarHeight",value:function(){var t=this.$document[0].createElement("p");t.style.width="200px;",t.style.height="100%";var e=this.$document[0].createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="150px",e.style.height="200px",e.style.overflow="hidden",e.appendChild(t),this.$document[0].body.appendChild(e);var n=t.offsetHeight;e.style.overflow="scroll";var i=t.offsetHeight;return n===i&&(i=e.clientHeight),this.$document[0].body.removeChild(e),n-i}},{key:"setColumnsWidthFactor",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t){var i=!0,a=!1,o=void 0;try{for(var s,l=(0,r.default)(t);!(i=(s=l.next()).done);i=!0){var u=s.value;u.left=e*(u.originalSize.left+n)-n,u.width=e*u.originalSize.width;var d=!0,c=!1,f=void 0;try{for(var g,h=(0,r.default)(u.timeFrames);!(d=(g=h.next()).done);d=!0){var v=g.value;v.left=e*v.originalSize.left,v.width=e*v.originalSize.width}}catch(t){c=!0,f=t}finally{try{!d&&h.return&&h.return()}finally{if(c)throw f}}}}catch(t){a=!0,o=t}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}}}}]),t}();e.default=d},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),r=i(a),o=n(1),s=i(o),l=function(){function t(){(0,r.default)(this,t)}return(0,s.default)(t,[{key:"getButton",value:function(t){return t=t||window.event,t.which?t.which:void 0===t.button?1:t.button<2?1:4===t.button?2:3}}]),t}();e.default=l},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),r=i(a),o=n(1),s=i(o),l=function(){function t(){(0,r.default)(this,t)}return(0,s.default)(t,[{key:"getTouch",value:function(t){return void 0!==t.touches?t.touches[0]:t}},{key:"getOffset",value:function(t){return t.offsetX&&t.offsetY?{x:t.offsetX,y:t.offsetY}:t.layerX&&t.layerY?{x:t.layerX,y:t.layerY}:this.getOffsetForElement(t.target,t)}},{key:"getOffsetForElement",value:function(t,e){var n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}}]),t}();e.default=l},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.GanttSmartEvent=void 0;var a=n(0),r=i(a),o=n(1),s=i(o);e.default=function(){"ngInject";return l};var l=e.GanttSmartEvent=function(){function t(e,n,i,a){var o=this;(0,r.default)(this,t),this.$element=n,this.event=i,this.fn=a,e.$on("$destroy",function(){o.$element.unbind(o.event,o.fn)})}return(0,s.default)(t,[{key:"bindOnce",value:function(){this.$element.one(this.event,this.fn)}},{key:"bind",value:function(){this.$element.bind(this.event,this.fn)}},{key:"unbind",value:function(){this.$element.unbind(this.event,this.fn)}}]),t}()},function(t,e){var n="template/gantt.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,'<div class="gantt unselectable" ng-cloak gantt-scroll-manager gantt-container-height-listener=ganttContainerHeight gantt-container-width-listener=ganttContainerWidth gantt-element-height-listener=ganttElementHeight gantt-element-width-listener=ganttElementWidth> <gantt-side> <gantt-side-background> </gantt-side-background> <gantt-side-content> </gantt-side-content> <div gantt-resizer=gantt.side.$element gantt-resizer-event-topic=side gantt-resizer-enabled="{{$parent.gantt.options.value(\'allowSideResizing\')}}" resizer-width=sideWidth class=gantt-resizer> <div ng-show="$parent.gantt.options.value(\'allowSideResizing\')" class=gantt-resizer-display></div> </div> </gantt-side> <gantt-scrollable-header> <gantt-header gantt-element-height-listener=$parent.ganttHeaderHeight> <gantt-header-columns> <div ng-repeat="header in gantt.columnsManager.visibleHeaders track by $index"> <div class=gantt-header-row ng-class="{\'gantt-header-row-last\': $last, \'gantt-header-row-first\': $first}"> <gantt-column-header ng-repeat="column in header"></gantt-column-header> </div> </div> </gantt-header-columns> </gantt-header> </gantt-scrollable-header> <gantt-scrollable> <gantt-body> <gantt-body-background> <gantt-row-background ng-repeat="row in gantt.rowsManager.visibleRows track by row.model.id"></gantt-row-background> </gantt-body-background> <gantt-body-foreground> <div class=gantt-current-date-line ng-show="currentDate === \'line\' && gantt.currentDateManager.position >= 0 && gantt.currentDateManager.position <= gantt.width" ng-style="{\'left\': gantt.currentDateManager.position + \'px\' }"></div> </gantt-body-foreground> <gantt-body-columns> <gantt-column ng-repeat="column in gantt.columnsManager.visibleColumns"> <gantt-time-frame ng-repeat="timeFrame in column.visibleTimeFrames"></gantt-time-frame> </gantt-column> </gantt-body-columns> <div ng-if="gantt.columnsManager.visibleColumns == 0" style=background-color:grey></div> <gantt-body-rows> <gantt-timespan ng-repeat="timespan in gantt.timespansManager.timespans track by timespan.model.id"></gantt-timespan> <gantt-row ng-repeat="row in gantt.rowsManager.visibleRows track by row.model.id"> <gantt-task ng-repeat="task in row.visibleTasks track by task.model.id"> </gantt-task> </gantt-row> </gantt-body-rows> </gantt-body> </gantt-scrollable> <ng-transclude></ng-transclude> <script type=text/ng-template id=template/ganttBody.tmpl.html> <div ng-transclude class="gantt-body" ng-style="{\'width\': gantt.width > 0 ? gantt.width +\'px\' : undefined}"></div> <\/script> <script type=text/ng-template id=template/ganttHeader.tmpl.html> <div ng-transclude class="gantt-header"\n ng-show="gantt.columnsManager.columns.length > 0 && gantt.columnsManager.headers.length > 0"></div> <\/script> <script type=text/ng-template id=template/ganttSide.tmpl.html> <div ng-transclude class="gantt-side" style="width: auto;"></div> <\/script> <script type=text/ng-template id=template/ganttSideContent.tmpl.html> <div class="gantt-side-content" ng-style="getSideCss()">\n </div> <\/script> <script type=text/ng-template id=template/ganttHeaderColumns.tmpl.html> <div ng-transclude class="gantt-header-columns"\n gantt-horizontal-scroll-receiver></div> <\/script> <script type=text/ng-template id=template/ganttColumnHeader.tmpl.html> <div class="gantt-column-header" ng-class="{\'gantt-column-header-last\': $last, \'gantt-column-header-first\': $first}">{{::column.label}}</div> <\/script> <script type=text/ng-template id=template/ganttBodyBackground.tmpl.html> <div ng-transclude class="gantt-body-background"></div> <\/script> <script type=text/ng-template id=template/ganttBodyForeground.tmpl.html> <div ng-transclude class="gantt-body-foreground"></div> <\/script> <script type=text/ng-template id=template/ganttBodyColumns.tmpl.html> <div ng-transclude class="gantt-body-columns"></div> <\/script> <script type=text/ng-template id=template/ganttColumn.tmpl.html> <div ng-transclude class="gantt-column gantt-foreground-col" ng-class="{\'gantt-column-last\': $last, \'gantt-column-first\': $first}"></div> <\/script> <script type=text/ng-template id=template/ganttTimeFrame.tmpl.html> <div class="gantt-timeframe"></div> <\/script> <script type=text/ng-template id=template/ganttScrollable.tmpl.html> <div ng-transclude class="gantt-scrollable" gantt-scroll-sender ng-style="getScrollableCss()"></div> <\/script> <script type=text/ng-template id=template/ganttScrollableHeader.tmpl.html> <div ng-transclude class="gantt-scrollable-header" ng-style="getScrollableHeaderCss()"></div> <\/script> <script type=text/ng-template id=template/ganttBodyRows.tmpl.html> <div ng-transclude class="gantt-body-rows"></div> <\/script> <script type=text/ng-template id=template/ganttTimespan.tmpl.html> <div class="gantt-timespan" ng-class="timespan.model.classes">\n </div> <\/script> <script type=text/ng-template id=template/ganttTask.tmpl.html> <div class="gantt-task" ng-class="task.model.classes">\n <gantt-task-background></gantt-task-background>\n <gantt-task-foreground></gantt-task-foreground>\n <gantt-task-content></gantt-task-content>\n </div> <\/script> <script type=text/ng-template id=template/ganttTaskBackground.tmpl.html> <div class="gantt-task-background" ng-style="{\'background-color\': task.model.color}"></div> <\/script> <script type=text/ng-template id=template/ganttTaskForeground.tmpl.html> <div class="gantt-task-foreground">\n <div ng-if="task.truncatedRight" class="gantt-task-truncated-right" ng-style="{\'padding-right\': task.truncatedRightOffset + \'px\'}">></div>\n <div ng-if="task.truncatedLeft" class="gantt-task-truncated-left" ng-style="{\'padding-left\': task.truncatedLeftOffset + \'px\'}"><</div>\n </div> <\/script> <script type=text/ng-template id=template/ganttTaskContent.tmpl.html> <div class="gantt-task-content" unselectable="on"><span unselectable="on" gantt-bind-compile-html="getTaskContent()"/></div> <\/script> <script type=text/ng-template id=template/ganttRowBackground.tmpl.html> <div class="gantt-row gantt-row-height"\n ng-class="row.model.classes"\n ng-class-odd="\'gantt-row-odd\'"\n ng-class-even="\'gantt-row-even\'"\n ng-style="{\'height\': row.model.height}">\n <div class="gantt-row-background"\n ng-style="{\'background-color\': row.model.color}">\n </div>\n </div> <\/script> <script type=text/ng-template id=template/ganttRow.tmpl.html> <div class="gantt-row gantt-row-height"\n ng-class="row.model.classes"\n ng-class-odd="\'gantt-row-odd\'"\n ng-class-even="\'gantt-row-even\'"\n ng-style="{\'height\': row.model.height}">\n <div ng-transclude class="gantt-row-content"></div>\n </div> <\/script> <script type=text/ng-template id=template/ganttSideBackground.tmpl.html> <div class="gantt-side-background">\n <div class="gantt-side-background-header" ng-style="{height: $parent.ganttHeaderHeight + \'px\'}">\n <div ng-show="$parent.ganttHeaderHeight" class="gantt-header-row gantt-side-header-row"></div>\n </div>\n <div class="gantt-side-background-body" ng-style="getMaxHeightCss()">\n <div gantt-vertical-scroll-receiver>\n <div class="gantt-row gantt-row-height "\n ng-class-odd="\'gantt-row-odd\'"\n ng-class-even="\'gantt-row-even\'"\n ng-class="row.model.classes"\n ng-repeat="row in gantt.rowsManager.visibleRows track by row.model.id"\n ng-style="{\'height\': row.model.height}">\n <div class="gantt-row-label gantt-row-background"\n ng-style="{\'background-color\': row.model.color}">\n </div>\n </div>\n </div>\n </div>\n </div> <\/script> </div> ')}]),t.exports=n},function(t,e,n){t.exports={default:n(134),__esModule:!0}},function(t,e,n){t.exports={default:n(135),__esModule:!0}},function(t,e,n){t.exports={default:n(136),__esModule:!0}},function(t,e,n){t.exports={default:n(137),__esModule:!0}},function(t,e,n){t.exports={default:n(138),__esModule:!0}},function(t,e,n){t.exports={default:n(139),__esModule:!0}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var a=n(128),r=i(a),o=n(125),s=i(o),l=n(5),u=i(l);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,u.default)(e)));t.prototype=(0,s.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(r.default?(0,r.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(5),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,a.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){n(62),n(61),t.exports=n(160)},function(t,e,n){n(162);var i=n(7).Object;t.exports=function(t,e){return i.create(t,e)}},function(t,e,n){n(163);var i=n(7).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){n(164),t.exports=n(7).Object.getPrototypeOf},function(t,e,n){n(165),t.exports=n(7).Object.setPrototypeOf},function(t,e,n){n(167),n(166),n(168),n(169),t.exports=n(7).Symbol},function(t,e,n){n(61),n(62),t.exports=n(36).f("iterator")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(){}},function(t,e,n){var i=n(13),a=n(158),r=n(157);t.exports=function(t){return function(e,n,o){var s,l=i(e),u=a(l.length),d=r(o,u);if(t&&n!=n){for(;u>d;)if((s=l[d++])!=s)return!0}else for(;u>d;d++)if((t||d in l)&&l[d]===n)return t||d||0;return!t&&-1}}},function(t,e,n){var i=n(24),a=n(9)("toStringTag"),r="Arguments"==i(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=o(e=Object(t),a))?n:r?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var i=n(20),a=n(56),r=n(29);t.exports=function(t){var e=i(t),n=a.f;if(n)for(var o,s=n(t),l=r.f,u=0;s.length>u;)l.call(t,o=s[u++])&&e.push(o);return e}},function(t,e,n){t.exports=n(8).document&&document.documentElement},function(t,e,n){var i=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(24);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){"use strict";var i=n(28),a=n(21),r=n(30),o={};n(16)(o,n(9)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(o,{next:a(1,n)}),r(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var i=n(20),a=n(13);t.exports=function(t,e){for(var n,r=a(t),o=i(r),s=o.length,l=0;s>l;)if(r[n=o[l++]]===e)return n}},function(t,e,n){var i=n(22)("meta"),a=n(18),r=n(11),o=n(12).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(17)(function(){return l(Object.preventExtensions({}))}),d=function(t){o(t,i,{value:{i:"O"+ ++s,w:{}}})},c=function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,i)){if(!l(t))return"F";if(!e)return"E";d(t)}return t[i].i},f=function(t,e){if(!r(t,i)){if(!l(t))return!0;if(!e)return!1;d(t)}return t[i].w},g=function(t){return u&&h.NEED&&l(t)&&!r(t,i)&&d(t),t},h=t.exports={KEY:i,NEED:!1,fastKey:c,getWeak:f,onFreeze:g}},function(t,e,n){var i=n(12),a=n(14),r=n(20);t.exports=n(10)?Object.defineProperties:function(t,e){a(t);for(var n,o=r(e),s=o.length,l=0;s>l;)i.f(t,n=o[l++],e[n]);return t}},function(t,e,n){var i=n(13),a=n(55).f,r={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return a(t)}catch(t){return o.slice()}};t.exports.f=function(t){return o&&"[object Window]"==r.call(t)?s(t):a(i(t))}},function(t,e,n){var i=n(15),a=n(7),r=n(17);t.exports=function(t,e){var n=(a.Object||{})[t]||Object[t],o={};o[t]=e(n),i(i.S+i.F*r(function(){n(1)}),"Object",o)}},function(t,e,n){var i=n(18),a=n(14),r=function(t,e){if(a(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{i=n(50)(Function.call,n(54).f(Object.prototype,"__proto__").set,2),i(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return r(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:r}},function(t,e,n){var i=n(33),a=n(25);t.exports=function(t){return function(e,n){var r,o,s=String(a(e)),l=i(n),u=s.length;return l<0||l>=u?t?"":void 0:(r=s.charCodeAt(l),r<55296||r>56319||l+1===u||(o=s.charCodeAt(l+1))<56320||o>57343?t?s.charAt(l):r:t?s.slice(l,l+2):o-56320+(r-55296<<10)+65536)}}},function(t,e,n){var i=n(33),a=Math.max,r=Math.min;t.exports=function(t,e){return t=i(t),t<0?a(t+e,0):r(t,e)}},function(t,e,n){var i=n(33),a=Math.min;t.exports=function(t){return t>0?a(i(t),9007199254740991):0}},function(t,e,n){var i=n(143),a=n(9)("iterator"),r=n(19);t.exports=n(7).getIteratorMethod=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||r[i(t)]}},function(t,e,n){var i=n(14),a=n(159);t.exports=n(7).getIterator=function(t){var e=a(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},function(t,e,n){"use strict";var i=n(141),a=n(149),r=n(19),o=n(13);t.exports=n(53)(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,a(1)):"keys"==e?a(0,n):"values"==e?a(0,t[n]):a(0,[n,t[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(t,e,n){var i=n(15);i(i.S,"Object",{create:n(28)})},function(t,e,n){var i=n(15);i(i.S+i.F*!n(10),"Object",{defineProperty:n(12).f})},function(t,e,n){var i=n(60),a=n(57);n(154)("getPrototypeOf",function(){return function(t){return a(i(t))}})},function(t,e,n){var i=n(15);i(i.S,"Object",{setPrototypeOf:n(155).set})},function(t,e){},function(t,e,n){"use strict";var i=n(8),a=n(11),r=n(10),o=n(15),s=n(59),l=n(151).KEY,u=n(17),d=n(32),c=n(30),f=n(22),g=n(9),h=n(36),v=n(35),p=n(150),m=n(144),y=n(147),w=n(14),k=n(13),b=n(34),M=n(21),_=n(28),$=n(153),C=n(54),T=n(12),S=n(20),x=C.f,O=T.f,j=$.f,P=i.Symbol,F=i.JSON,R=F&&F.stringify,D=g("_hidden"),E=g("toPrimitive"),G={}.propertyIsEnumerable,B=d("symbol-registry"),I=d("symbols"),H=d("op-symbols"),W=Object.prototype,A="function"==typeof P,L=i.QObject,z=!L||!L.prototype||!L.prototype.findChild,V=r&&u(function(){return 7!=_(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=x(W,e);i&&delete W[e],O(t,e,n),i&&t!==W&&O(W,e,i)}:O,U=function(t){var e=I[t]=_(P.prototype);return e._k=t,e},q=A&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},N=function(t,e,n){return t===W&&N(H,e,n),w(t),e=b(e,!0),w(n),a(I,e)?(n.enumerable?(a(t,D)&&t[D][e]&&(t[D][e]=!1),n=_(n,{enumerable:M(0,!1)})):(a(t,D)||O(t,D,M(1,{})),t[D][e]=!0),V(t,e,n)):O(t,e,n)},Y=function(t,e){w(t);for(var n,i=m(e=k(e)),a=0,r=i.length;r>a;)N(t,n=i[a++],e[n]);return t},X=function(t,e){return void 0===e?_(t):Y(_(t),e)},K=function(t){var e=G.call(this,t=b(t,!0));return!(this===W&&a(I,t)&&!a(H,t))&&(!(e||!a(this,t)||!a(I,t)||a(this,D)&&this[D][t])||e)},Q=function(t,e){if(t=k(t),e=b(e,!0),t!==W||!a(I,e)||a(H,e)){var n=x(t,e);return!n||!a(I,e)||a(t,D)&&t[D][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=j(k(t)),i=[],r=0;n.length>r;)a(I,e=n[r++])||e==D||e==l||i.push(e);return i},Z=function(t){for(var e,n=t===W,i=j(n?H:k(t)),r=[],o=0;i.length>o;)!a(I,e=i[o++])||n&&!a(W,e)||r.push(I[e]);return r};A||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(H,n),a(this,D)&&a(this[D],t)&&(this[D][t]=!1),V(this,t,M(1,n))};return r&&z&&V(W,t,{configurable:!0,set:e}),U(t)},s(P.prototype,"toString",function(){return this._k}),C.f=Q,T.f=N,n(55).f=$.f=J,n(29).f=K,n(56).f=Z,r&&!n(27)&&s(W,"propertyIsEnumerable",K,!0),h.f=function(t){return U(g(t))}),o(o.G+o.W+o.F*!A,{Symbol:P});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)g(tt[et++]);for(var tt=S(g.store),et=0;tt.length>et;)v(tt[et++]);o(o.S+o.F*!A,"Symbol",{for:function(t){return a(B,t+="")?B[t]:B[t]=P(t)},keyFor:function(t){if(q(t))return p(B,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){z=!0},useSimple:function(){z=!1}}),o(o.S+o.F*!A,"Object",{create:X,defineProperty:N,defineProperties:Y,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:Z}),F&&o(o.S+o.F*(!A||u(function(){var t=P();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!q(t)){for(var e,n,i=[t],a=1;arguments.length>a;)i.push(arguments[a++]);return e=i[1],"function"==typeof e&&(n=e),!n&&y(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!q(e))return e}),i[1]=e,R.apply(F,i)}}}),P.prototype[E]||n(16)(P.prototype,E,P.prototype.valueOf),c(P,"Symbol"),c(Math,"Math",!0),c(i.JSON,"JSON",!0)},function(t,e,n){n(35)("asyncIterator")},function(t,e,n){n(35)("observable")},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(6),s=i(o),l=n(201),u=i(l),d=n(202),c=i(d);n(187),r.default.module("gantt.bounds",[s.default]).directive("ganttBounds",u.default).directive("ganttTaskBounds",c.default),e.default="gantt.bounds"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(6),s=i(o),l=n(203),u=i(l),d=n(204),c=i(d);n(188),r.default.module("gantt.corner",[s.default]).directive("ganttCorner",u.default).directive("ganttCornerArea",c.default),e.default="gantt.corner"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(6),s=i(o),l=n(205),u=i(l),d=n(207),c=i(d),f=n(208),g=i(f),h=n(210),v=i(h),p=n(206),m=i(p),y=n(209),w=i(y);n(189),r.default.module("gantt.dependencies",[s.default]).directive("ganttDependencies",u.default).factory("GanttDependenciesEvents",c.default).factory("GanttDependencyTaskMouseHandler",v.default).factory("GanttDependenciesManager",g.default).factory("GanttDependenciesChecker",m.default).factory("GanttDependency",w.default),e.default="gantt.dependencies"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(6),s=i(o),l=n(211),u=i(l);r.default.module("gantt.drawtask",[s.default]).directive("ganttDrawTask",u.default),e.default="gantt.drawtask"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(6),s=i(o),l=n(213),u=i(l),d=n(214),c=i(d),f=n(215),g=i(f),h=n(216),v=i(h),p=n(212),m=i(p);n(190),r.default.module("gantt.groups",[s.default]).directive("ganttGroups",u.default).directive("ganttTaskGroup",c.default).directive("ganttTaskOverview",v.default).factory("GanttTaskGroup",g.default).controller("GanttGroupController",m.default),e.default="gantt.groups"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(170),r=i(a),o=n(171),s=i(o),l=n(172),u=i(l),d=n(173),c=i(d),f=n(174),g=i(f),h=n(176),v=i(h),p=n(177),m=i(p),y=n(178),w=i(y),k=n(179),b=i(k),M=n(180),_=i(M),$=n(181),C=i($),T=n(182),S=i(T),x=n(183),O=i(x),j=n(184),P=i(j),F=n(185),R=i(F);e.default={bounds:r.default,corner:s.default,dependencies:u.default,drawtask:c.default,groups:g.default,labels:v.default,movable:m.default,overlap:w.default,progress:b.default,resizeSensor:_.default,sections:C.default,sortable:S.default,table:O.default,tooltips:P.default,tree:R.default}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(6),s=i(o),l=n(217),u=i(l),d=n(220),c=i(d),f=n(219),g=i(f),h=n(218),v=i(h);n(191),r.default.module("gantt.labels",[s.default]).directive("ganttLabels",u.default).directive("ganttSideContentLabels",c.default).directive("ganttLabelsHeader",g.default).directive("ganttLabelsBody",v.default),e.default="gantt.labels"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(6),s=i(o),l=n(221),u=i(l),d=n(222),c=i(d);n(192),r.default.module("gantt.movable",[s.default]).directive("ganttMovable",u.default).factory("ganttMovableOptions",c.default),e.default="gantt.movable"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(6),s=i(o),l=n(223),u=i(l);n(193),r.default.module("gantt.overlap",[s.default]).directive("ganttOverlap",u.default),e.default="gantt.overlap"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(6),s=i(o),l=n(224),u=i(l),d=n(225),c=i(d);n(194),r.default.module("gantt.progress",[s.default]).directive("ganttProgress",u.default).directive("ganttTaskProgress",c.default),e.default="gantt.progress"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(6),s=i(o),l=n(226),u=i(l);r.default.module("gantt.resizeSensor",[s.default]).directive("ganttResizeSensor",u.default),e.default="gantt.resizeSensor"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(6),s=i(o),l=n(227),u=i(l),d=n(228),c=i(d),f=n(229),g=i(f);n(195),r.default.module("gantt.sections",[s.default]).directive("ganttSections",u.default).directive("ganttTaskSection",c.default).directive("ganttTaskSections",g.default),e.default="gantt.sections"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a);n(263);var o=n(6),s=i(o),l=n(230),u=i(l);n(196),r.default.module("gantt.sortable",["ang-drag-drop",s.default]).directive("ganttSortable",u.default),e.default="gantt.sortable"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(6),s=i(o),l=n(232),u=i(l),d=n(231),c=i(d),f=n(233),g=i(f),h=n(234),v=i(h);n(197),r.default.module("gantt.table",[s.default]).directive("ganttTable",u.default).directive("ganttSideContentTable",c.default).controller("TableColumnController",g.default).controller("TableColumnRowController",v.default),e.default="gantt.table"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(6),s=i(o),l=n(236),u=i(l),d=n(235),c=i(d);n(198),r.default.module("gantt.tooltips",[s.default]).directive("ganttTooltips",u.default).directive("ganttTooltip",c.default),e.default="gantt.tooltips"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(2),r=i(a),o=n(265),s=i(o),l=n(6),u=i(l),d=n(240),c=i(d),f=n(237),g=i(f),h=n(238),v=i(h),p=n(241),m=i(p),y=n(242),w=i(y),k=n(244),b=i(k),M=n(243),_=i(M),$=n(239),C=i($);n(186),n(199),r.default.module("gantt.tree",[u.default,s.default||"ui.tree"]).directive("ganttTree",c.default).directive("ganttRowTreeLabel",g.default).directive("ganttSideContentTree",v.default).directive("ganttTreeBody",m.default).directive("ganttTreeHeader",w.default).controller("GanttUiTreeController",b.default).controller("GanttTreeNodeController",_.default).controller("GanttTreeController",C.default),e.default="gantt.tree"},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){!function(e,i){t.exports=i(n(3))}(0,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var a=n[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get: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,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=19)}([function(t,e,n){"use strict";t.exports=n(15)()?Symbol:n(17)},function(e,n){e.exports=t},function(t,e,n){"use strict";var i,a=n(3),r=n(10),o=n(6),s=n(12);i=t.exports=function(t,e){var n,i,o,l,u;return arguments.length<2||"string"!=typeof t?(l=e,e=t,t=null):l=arguments[2],null==t?(n=o=!0,i=!1):(n=s.call(t,"c"),i=s.call(t,"e"),o=s.call(t,"w")),u={value:e,configurable:n,enumerable:i,writable:o},l?a(r(l),u):u},i.gs=function(t,e,n){var i,l,u,d;return"string"!=typeof t?(u=n,n=e,e=t,t=null):u=arguments[3],null==e?e=void 0:o(e)?null==n?n=void 0:o(n)||(u=n,n=void 0):(u=e,e=n=void 0),null==t?(i=!0,l=!1):(i=s.call(t,"c"),l=s.call(t,"e")),d={get:e,set:n,configurable:i,enumerable:l},u?a(r(u),d):d}},function(t,e,n){"use strict";t.exports=n(4)()?Object.assign:n(5)},function(t,e,n){"use strict";t.exports=function(){var t,e=Object.assign;return"function"==typeof e&&(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},function(t,e,n){"use strict";var i=n(7),a=n(11),r=Math.max;t.exports=function(t,e){var n,o,s,l=r(arguments.length,2);for(t=Object(a(t)),s=function(i){try{t[i]=e[i]}catch(t){n||(n=t)}},o=1;o<l;++o)e=arguments[o],i(e).forEach(s);if(void 0!==n)throw n;return t}},function(t,e,n){"use strict";t.exports=function(t){return"function"==typeof t}},function(t,e,n){"use strict";t.exports=n(8)()?Object.keys:n(9)},function(t,e,n){"use strict";t.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},function(t,e,n){"use strict";var i=Object.keys;t.exports=function(t){return i(null==t?t:Object(t))}},function(t,e,n){"use strict";var i=Array.prototype.forEach,a=Object.create,r=function(t,e){var n;for(n in t)e[n]=t[n]};t.exports=function(t){var e=a(null);return i.call(arguments,function(t){null!=t&&r(Object(t),e)}),e}},function(t,e,n){"use strict";t.exports=function(t){if(null==t)throw new TypeError("Cannot use null or undefined");return t}},function(t,e,n){"use strict";t.exports=n(13)()?String.prototype.contains:n(14)},function(t,e,n){"use strict";var i="razdwatrzy";t.exports=function(){return"function"==typeof i.contains&&(!0===i.contains("dwa")&&!1===i.contains("foo"))}},function(t,e,n){"use strict";var i=String.prototype.indexOf;t.exports=function(t){return i.call(this,t,arguments[1])>-1}},function(t,e,n){"use strict";var i={object:!0,symbol:!0};t.exports=function(){var t;if("function"!=typeof Symbol)return!1;t=Symbol("test symbol");try{String(t)}catch(t){return!1}return!!i[typeof Symbol.iterator]&&(!!i[typeof Symbol.toPrimitive]&&!!i[typeof Symbol.toStringTag])}},function(t,e,n){"use strict";t.exports=function(t){return!!t&&("symbol"==typeof t||!!t.constructor&&("Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag]))}},function(t,e,n){"use strict";var i,a,r,o,s=n(2),l=n(18),u=Object.create,d=Object.defineProperties,c=Object.defineProperty,f=Object.prototype,g=u(null);if("function"==typeof Symbol){i=Symbol;try{String(i()),o=!0}catch(t){}}var h=function(){var t=u(null);return function(e){for(var n,i,a=0;t[e+(a||"")];)++a;return e+=a||"",t[e]=!0,n="@@"+e,c(f,n,s.gs(null,function(t){i||(i=!0,c(this,n,s(t)),i=!1)})),n}}();r=function(t){if(this instanceof r)throw new TypeError("TypeError: Symbol is not a constructor");return a(t)},t.exports=a=function t(e){var n;if(this instanceof t)throw new TypeError("TypeError: Symbol is not a constructor");return o?i(e):(n=u(r.prototype),e=void 0===e?"":String(e),d(n,{__description__:s("",e),__name__:s("",h(e))}))},d(a,{for:s(function(t){return g[t]?g[t]:g[t]=a(String(t))}),keyFor:s(function(t){var e;l(t);for(e in g)if(g[e]===t)return e}),hasInstance:s("",i&&i.hasInstance||a("hasInstance")),isConcatSpreadable:s("",i&&i.isConcatSpreadable||a("isConcatSpreadable")),iterator:s("",i&&i.iterator||a("iterator")),match:s("",i&&i.match||a("match")),replace:s("",i&&i.replace||a("replace")),search:s("",i&&i.search||a("search")),species:s("",i&&i.species||a("species")),split:s("",i&&i.split||a("split")),toPrimitive:s("",i&&i.toPrimitive||a("toPrimitive")),toStringTag:s("",i&&i.toStringTag||a("toStringTag")),unscopables:s("",i&&i.unscopables||a("unscopables"))}),d(r.prototype,{constructor:s(a),toString:s("",function(){return this.__name__})}),d(a.prototype,{toString:s(function(){return"Symbol ("+l(this).__description__+")"}),valueOf:s(function(){return l(this)})}),c(a.prototype,a.toPrimitive,s("",function(){var t=l(this);return"symbol"==typeof t?t:t.toString()})),c(a.prototype,a.toStringTag,s("c","Symbol")),c(r.prototype,a.toStringTag,s("c",a.prototype[a.toStringTag])),c(r.prototype,a.toPrimitive,s("c",a.prototype[a.toPrimitive]))},function(t,e,n){"use strict";var i=n(16);t.exports=function(t){if(!i(t))throw new TypeError(t+" is not a symbol");return t}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){return t.range=function(e,n){var i=this;return h.hasOwnProperty(e)?new v(t(i).startOf(e),t(i).endOf(e)):new v(e,n)},t.fn.range=t.range,t.range.constructor=v,t.fn.within=function(t){return t.contains(this.toDate())},t}Object.defineProperty(e,"__esModule",{value:!0}),e.DateRange=void 0;var s=function(){function t(t,e){var n=[],i=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){a=!0,r=t}finally{try{!i&&s.return&&s.return()}finally{if(a)throw r}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();e.extendMoment=o;var d=n(1),c=i(d),f=n(0),g=i(f),h={year:!0,quarter:!0,month:!0,week:!0,day:!0,hour:!0,minute:!0,second:!0},v=e.DateRange=function(){function t(e,n){r(this,t);var i=e,a=n;if(1===arguments.length||void 0===n)if("object"===(void 0===e?"undefined":l(e))&&2===e.length){var o=s(e,2);i=o[0],a=o[1]}else if("string"==typeof e){var u=e.split("/"),d=s(u,2);i=d[0],a=d[1]}this.start=null===i?(0,c.default)(-864e13):(0,c.default)(i),this.end=null===a?(0,c.default)(864e13):(0,c.default)(a)}return u(t,[{key:"adjacent",value:function(t){var e=this.start.isSame(t.end),n=this.end.isSame(t.start);return e&&t.start.valueOf()<=this.start.valueOf()||n&&t.end.valueOf()>=this.end.valueOf()}},{key:"add",value:function(t){return this.overlaps(t)?new this.constructor(c.default.min(this.start,t.start),c.default.max(this.end,t.end)):null}},{key:"by",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{exclusive:!1,step:1},n=this;return a({},g.default.iterator,function(){var i=e.exclusive||!1,a=e.step||1,r=Math.abs(n.start.diff(n.end,t))/a,o=0;return{next:function(){var e=n.start.clone().add(o*a,t),s=i?!(o<r):!(o<=r);return o++,{done:s,value:s?void 0:e}}}})}},{key:"byRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{exclusive:!1,step:1},n=this,i=e.step||1,r=this.valueOf()/t.valueOf()/i,o=e.exclusive||!1,s=Math.floor(r),l=0;return a({},g.default.iterator,function(){return s===1/0?{done:!0}:{next:function(){var e=(0,c.default)(n.start.valueOf()+t.valueOf()*l*i),a=s===r&&o?!(l<s):!(l<=s);return l++,{done:a,value:a?void 0:e}}}})}},{key:"center",value:function(){var t=this.start.valueOf()+this.diff()/2;return(0,c.default)(t)}},{key:"clone",value:function(){return new this.constructor(this.start,this.end)}},{key:"contains",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{exclusive:!1},i=this.start.valueOf(),a=this.end.valueOf(),r=e.valueOf(),o=e.valueOf();e instanceof t&&(r=e.start.valueOf(),o=e.end.valueOf());var s=i<r||i<=r&&!n.exclusive,l=a>o||a>=o&&!n.exclusive;return s&&l}},{key:"diff",value:function(t,e){return this.end.diff(this.start,t,e)}},{key:"duration",value:function(t,e){return this.diff(t,e)}},{key:"intersect",value:function(t){var e=this.start.valueOf(),n=this.end.valueOf(),i=t.start.valueOf(),a=t.end.valueOf();return e<=i&&i<n&&n<a?new this.constructor(i,n):i<e&&e<a&&a<=n?new this.constructor(e,a):i<e&&e<=n&&n<a?this:e<=i&&i<=a&&a<=n?t:null}},{key:"isEqual",value:function(t){return this.start.isSame(t.start)&&this.end.isSame(t.end)}},{key:"isSame",value:function(t){return this.isEqual(t)}},{key:"overlaps",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{adjacent:!1},n=null!==this.intersect(t);return e.adjacent&&!n?this.adjacent(t):n}},{key:"reverseBy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{exclusive:!1,step:1},n=this;return a({},g.default.iterator,function(){var i=e.exclusive||!1,a=e.step||1,r=Math.abs(n.start.diff(n.end,t))/a,o=0;return{next:function(){var e=n.end.clone().subtract(o*a,t),s=i?!(o<r):!(o<=r);return o++,{done:s,value:s?void 0:e}}}})}},{key:"reverseByRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{exclusive:!1,step:1},n=this,i=e.step||1,r=this.valueOf()/t.valueOf()/i,o=e.exclusive||!1,s=Math.floor(r),l=0;return a({},g.default.iterator,function(){return s===1/0?{done:!0}:{next:function(){var e=(0,c.default)(n.end.valueOf()-t.valueOf()*l*i),a=s===r&&o?!(l<s):!(l<=s);return l++,{done:a,value:a?void 0:e}}}})}},{key:"subtract",value:function(t){var e=this.start.valueOf(),n=this.end.valueOf(),i=t.start.valueOf(),a=t.end.valueOf();return null===this.intersect(t)?[this]:i<=e&&e<n&&n<=a?[]:i<=e&&e<a&&a<n?[new this.constructor(a,n)]:e<i&&i<n&&n<=a?[new this.constructor(e,i)]:e<i&&i<a&&a<n?[new this.constructor(e,i),new this.constructor(a,n)]:e<i&&i<n&&a<n?[new this.constructor(e,i),new this.constructor(i,n)]:[]}},{key:"toDate",value:function(){return[this.start.toDate(),this.end.toDate()]}},{key:"toString",value:function(){return this.start.format()+"/"+this.end.format()}},{key:"valueOf",value:function(){return this.end.valueOf()-this.start.valueOf()}}]),t}()}])})},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(5),r=i(a);e.default=["$compile","$document",function(t,e){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?"},link:function(n,i,a,o){var l=o.gantt.api;if(n.options&&"object"===(0,r.default)(n.options.bounds))for(var d in n.options.bounds)n[d]=n.options.bounds[d];void 0===n.enabled&&(n.enabled=!0),l.directives.on.new(n,function(i,r,o){if("ganttTask"===i){var l=r.$new();l.pluginScope=n;var u=e[0].createElement("div");s.default.element(u).attr("data-ng-if","task.model.est && task.model.lct && pluginScope.enabled");var d=e[0].createElement("gantt-task-bounds");void 0!==a.templateUrl&&s.default.element(d).attr("data-template-url",a.templateUrl),void 0!==a.template&&s.default.element(d).attr("data-template",a.template),s.default.element(u).append(d),o.append(t(u)(l))}}),l.tasks.on.clean(n,function(t){void 0===t.est||u.default.isMoment(t.est)||(t.est=(0,u.default)(t.est)),void 0===t.lct||u.default.isMoment(t.lct)||(t.lct=(0,u.default)(t.lct))})}}}];var o=n(2),s=i(o),l=n(3),u=i(l)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["$templateCache",function(t){"ngInject";return{restrict:"E",templateUrl:function(e,n){var i=void 0;return i=void 0===n.templateUrl?"plugins/bounds/taskBounds.tmpl.html":n.templateUrl,n.template&&t.put(i,n.template),i},replace:!0,scope:!0,controller:["$scope","$element",function(t,e){e.toggleClass("ng-hide",!0),t.simplifyMoment=function(t){return a.default.isMoment(t)?t.unix():t},t.$watchGroup(["simplifyMoment(task.model.est)","simplifyMoment(task.model.lct)","task.left","task.width"],function(){var n=t.task.rowsManager.gantt.getPositionByDate(t.task.model.est),i=t.task.rowsManager.gantt.getPositionByDate(t.task.model.lct);e.css("left",n-t.task.left+"px"),e.css("width",i-n+"px"),e.toggleClass("gantt-task-bounds-in",!1),e.toggleClass("gantt-task-bounds-out",!1),void 0===t.task.model.est||void 0===t.task.model.lct?e.toggleClass("gantt-task-bounds-in",!0):t.task.model.est>t.task.model.from?e.toggleClass("gantt-task-bounds-out",!0):t.task.model.lct<t.task.model.to?e.toggleClass("gantt-task-bounds-out",!0):e.toggleClass("gantt-task-bounds-in",!0)}),t.task.$element.bind("mouseenter",function(){e.toggleClass("ng-hide",!1)}),t.task.$element.bind("mouseleave",function(){e.toggleClass("ng-hide",!0)}),t.task.rowsManager.gantt.api.directives.raise.new("ganttBounds",t,e),t.$on("$destroy",function(){t.task.rowsManager.gantt.api.directives.raise.destroy("ganttBounds",t,e)})}]}}];var i=n(3),a=function(t){return t&&t.__esModule?t:{default:t}}(i);n(245)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(5),r=i(a);e.default=["ganttUtils","$compile","$document",function(t,e,n){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?",headersLabels:"=?",headersLabelsTemplates:"=?"},link:function(t,i,a,o){var l=o.gantt.api;if(t.options&&"object"===(0,r.default)(t.options.corner))for(var u in t.options.corner)t[u]=t.options.corner[u];void 0===t.enabled&&(t.enabled=!0),l.directives.on.new(t,function(i,a,r){if("ganttSideBackground"===i){var o=a.$new();o.pluginScope=t;var l=n[0].createElement("div");s.default.element(l).attr("data-ng-if","pluginScope.enabled"),s.default.element(l).addClass("gantt-corner-area");var u=n[0].createElement("gantt-corner-area");s.default.element(l).append(u),r[0].parentNode.insertBefore(e(l)(o)[0],r[0].nextSibling)}})}}}];var o=n(2),s=i(o);n(246)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(5),r=i(a),o=n(4),s=i(o);e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttCornerArea","plugins/corner/corner.tmpl.html");return e.controller=function(t){function e(e){var n=[],i=!0,a=!1,r=void 0;try{for(var o,l=(0,s.default)(e);!(i=(o=l.next()).done);i=!0){var u=o.value,d=u[0].name,c=u[0].unit,f={columns:u,unit:c,name:d};n.push(f)}}catch(t){a=!0,r=t}finally{try{!i&&l.return&&l.return()}finally{if(a)throw r}}t.headers=n}e(t.gantt.columnsManager.headers),t.getLabel=function(e){var n=e.name;return t.pluginScope.headersLabels&&e.name in t.pluginScope.headersLabels?"function"==typeof(n=t.pluginScope.headersLabels[e.name])&&(n=n(e.name,e.unit,e.columns)):"function"==typeof t.pluginScope.headersLabels&&(n=t.pluginScope.headersLabels(e.name,e.unit,e.columns)),n},t.getLabelContent=function(e){var n=void 0;return void 0===n&&void 0!==t.pluginScope.headersLabelsTemplates&&(n=t.pluginScope.headersLabelsTemplates,null!==n&&"object"===(void 0===n?"undefined":(0,r.default)(n))&&e.name in n&&(n=n[e.name]),"function"==typeof n&&(n=n(e.name,e.unit,e.columns))),void 0===n?"{{getLabel(header)}}":n},t.gantt.api.columns.on.generate(t,function(t,n){e(n)})},e.build()}]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(4),r=i(a),o=n(5),s=i(o);e.default=["$timeout","$document","ganttDebounce","GanttDependenciesManager","GanttDependenciesChecker",function(t,e,n,i,a){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?",readOnly:"=?",jsPlumbDefaults:"=?",endpoints:"=?",fallbackEndpoints:"=?",conflictChecker:"=?"},link:function(t,e,o,l){function d(){return u.default.element('<span><span class="gantt-endpoint-overlay start-endpoint arrow-right"></span></span>')}function c(){return u.default.element('<span><span class="gantt-endpoint-overlay end-endpoint arrow-right"></span></span>')}function f(){return u.default.element('<span><span class="gantt-endpoint-overlay start-endpoint fallback-endpoint"></span></span>')}function g(){return u.default.element('<span><span class="gantt-endpoint-overlay end-endpoint fallback-endpoint"></span></span>')}var h=l.gantt.api;if(t.options&&"object"===(0,s.default)(t.options.dependencies))for(var v in t.options.dependencies)t[v]=t.options.dependencies[v];void 0===t.enabled&&(t.enabled=!0),void 0===t.readOnly&&(t.readOnly=!1),void 0===t.jsPlumbDefaults&&(t.jsPlumbDefaults={Endpoint:["Dot",{radius:4}],EndpointStyle:{fillStyle:"#456",strokeStyle:"#456",lineWidth:1},PaintStyle:{strokeWidth:3,stroke:"rgb(68, 85, 102)"},Connector:"Flowchart",ConnectionOverlays:[["Arrow",{location:1,length:12,width:12}]]}),void 0===t.endpoints&&(t.endpoints=[{anchor:"Left",isSource:!1,isTarget:!0,maxConnections:-1,cssClass:"gantt-endpoint start-endpoint target-endpoint",overlays:[["Custom",{create:d}]]},{anchor:"Right",isSource:!0,isTarget:!1,maxConnections:-1,cssClass:"gantt-endpoint end-endpoint source-endpoint",overlays:[["Custom",{create:c}]]}]),void 0===t.fallbackEndpoints&&(t.fallbackEndpoints=[{endpoint:"Blank",anchor:"Left",isSource:!1,isTarget:!0,maxConnections:0,cssClass:"gantt-endpoint start-endpoint fallback-endpoint",overlays:[["Custom",{create:f}]]},{endpoint:"Blank",anchor:"Right",isSource:!0,isTarget:!1,maxConnections:0,cssClass:"gantt-endpoint end-endpoint fallback-endpoint",overlays:[["Custom",{create:g}]]}]),void 0===t.conflictChecker&&(t.conflictChecker=!1);var p=new i(l.gantt,t,h),m=new a(p,t,h);t.$watchGroup(["conflictChecker","enabled"],function(e,n){if(e!==n){var i=l.gantt.rowsManager.rows,a=[],o=!0,s=!1,u=void 0;try{for(var d,c=(0,r.default)(i);!(o=(d=c.next()).done);o=!0){var f=d.value;a.push.apply(a,f.tasks)}}catch(t){s=!0,u=t}finally{try{!o&&c.return&&c.return()}finally{if(s)throw u}}t.conflictChecker&&t.enabled?m.refresh(a):m.clear(a)}}),h.directives.on.new(t,function(t,e,n){"ganttBody"===t&&p.plumb.setContainer(n)}),h.tasks.on.add(t,function(t){p.addDependenciesFromTask(t,!0)}),h.tasks.on.remove(t,function(t){p.removeDependenciesFromTask(t)}),h.tasks.on.displayed(t,n(function(e){p.setTasks(e),p.refresh(),t.conflictChecker&&t.enabled&&m.refresh(e)})),h.rows.on.displayed(t,function(){p.refresh()}),h.tasks.on.viewChange(t,function(e){e.$element&&p.plumb.revalidate(e.$element[0]),t.conflictChecker&&t.enabled&&m.refresh([e])}),h.tasks.on.viewRowChange(t,function(e){p.setTask(e),t.conflictChecker&&t.enabled&&m.refresh([e])}),h.dependencies.on.add(t,function(e){t.conflictChecker&&t.enabled&&m.refresh([e.getFromTask(),e.getToTask()])}),h.dependencies.on.change(t,function(e){t.conflictChecker&&t.enabled&&m.refresh([e.getFromTask(),e.getToTask()])}),h.dependencies.on.remove(t,function(e){if(t.conflictChecker&&t.enabled){var n=e.getFromTask(),i=e.getToTask();n&&i?m.refresh([n,i]):n?m.removeConflictClass(n):m.removeConflictClass(i)}})}}}];var l=n(2),u=i(l)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){"ngInject";return function(t){function e(t,e){e.model.id in t||!e.$element||(e.$element.addClass("gantt-task-conflict"),t[e.model.id]=e)}function n(t,e){for(var n=0,i=e.length;n<i;n++){var a=e[n];a.model.id in t||!a.$element||a.$element.removeClass("gantt-task-conflict")}}this.refresh=function(i){var r=i.slice(0),o=[],s=!0,l=!1,u=void 0;try{for(var d,c=(0,a.default)(i);!(s=(d=c.next()).done);s=!0){var f=d.value,g=t.getTaskDependencies(f),h=!0,v=!1,p=void 0;try{for(var m,y=(0,a.default)(g);!(h=(m=y.next()).done);h=!0){var w=m.value,k=w.getFromTask(),b=w.getToTask();k in r||r.push(k),b in r||r.push(b),k.model.to>b.model.from&&(e(o,k),e(o,b))}}catch(t){v=!0,p=t}finally{try{!h&&y.return&&y.return()}finally{if(v)throw p}}}}catch(t){l=!0,u=t}finally{try{!s&&c.return&&c.return()}finally{if(l)throw u}}n(o,r)},this.removeConflictClass=function(t){t.$element.removeClass("gantt-task-conflict")},this.clear=function(t){n([],t.slice(0))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){"ngInject";return function(t){var e=this;this.manager=t;var n=function(){return!e.manager.pluginScope.readOnly};this.manager.plumb.bind("beforeDrag",n),this.manager.plumb.bind("beforeStartDetach",n);var i=function(t){return t.sourceId!==t.targetId};this.manager.plumb.bind("beforeDrop",i),this.manager.plumb.bind("connectionDrag",function(t){e.manager.setDraggingConnection(t)}),this.manager.plumb.bind("connectionDragStop",function(){e.manager.setDraggingConnection(void 0)}),this.manager.plumb.bind("beforeDrop",function(){return e.manager.setDraggingConnection(void 0),!0});var a=function(t,n){if(n){var i=void 0;t.connection.$dependency&&(i=t.connection.$dependency);var a=t.sourceEndpoint,r=t.targetEndpoint,o=a.$task.model,s=o.dependencies;void 0===s&&(s=[],o.dependencies=s);var l={to:r.$task.model.id};s.push(l),i&&(i.removeFromTaskModel(),e.manager.removeDependency(i,!0));var u=e.manager.addDependency(a.$task,l);t.connection.$dependency=u,u.connection=t.connection,u.connection.setParameter("from",a.$task),u.connection.setParameter("to",r.$task),u.connection.canvas.setAttribute("data-fromId",a.$task.model.id),u.connection.canvas.setAttribute("data-toId",r.$task.model.id),e.manager.api.dependencies.raise.add(u)}},r=function(t,n){if(n){var i=void 0;t.connection.$dependency&&(i=t.connection.$dependency);var a=t.newSourceEndpoint,r=t.newTargetEndpoint,o=a.$task.model,s=o.dependencies;void 0===s&&(s=[],o.dependencies=s);var l={to:r.$task.model.id};s.push(l),i&&(i.removeFromTaskModel(),e.manager.removeDependency(i,!0));var u=e.manager.addDependency(a.$task,l);t.connection.$dependency=u,u.connection=t.connection,u.connection.setParameter("from",a.$task),u.connection.setParameter("to",r.$task),u.connection.canvas.setAttribute("data-fromId",a.$task.model.id),u.connection.canvas.setAttribute("data-toId",r.$task.model.id),e.manager.api.dependencies.raise.change(u,i)}},o=function(t,n){if(n){var i=t.connection.$dependency;i.removeFromTaskModel(),e.manager.removeDependency(i,!0),e.manager.api.dependencies.raise.remove(i)}};this.manager.plumb.bind("connectionMoved",r),this.manager.plumb.bind("connection",a),this.manager.plumb.bind("connectionDetached",o)}}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(4),r=i(a);e.default=["GanttDependency","GanttDependenciesEvents","GanttDependencyTaskMouseHandler",function(t,e,n){"ngInject";return function(i,a,o){var l=this;this.gantt=i,this.pluginScope=a,this.api=o,this.api.registerEvent("dependencies","add"),this.api.registerEvent("dependencies","change"),this.api.registerEvent("dependencies","remove"),this.plumb=s.default.jsPlumb?s.default.jsPlumb.getInstance():s.default.getInstance(),this.plumb.importDefaults(this.pluginScope.jsPlumbDefaults),this.dependenciesFrom={},this.dependenciesTo={},this.tasksList=[],this.tasks={},this.events=new e(this),this.pluginScope.$watch("enabled",function(t,e){t!==e&&l.refresh()}),this.pluginScope.$watch("readOnly",function(t,e){t!==e&&(l.setTasks(l.tasksList),l.refresh())}),this.pluginScope.$watch("jsPlumbDefaults",function(t,e){t!==e&&(l.plumb.importDefaults(t),l.refresh())},!0),this.addDependenciesFromTask=function(t,e){if(this.pluginScope.enabled){var n=t.model.dependencies;if(void 0!==n&&n){Array.isArray(n)||(n=[n],t.model.dependencies=n);for(var i=0,a=n.length;i<a;i++){var r=l.addDependency(t,n[i],e);r&&r.connect()}}}},this.removeDependenciesFromTask=function(t,e){var n=this.getTaskDependencies(t);if(n){var i=!0,a=!1,o=void 0;try{for(var s,u=(0,r.default)(n);!(i=(s=u.next()).done);i=!0){var d=s.value;e||d.disconnect(),l.removeDependency(d)}}catch(t){a=!0,o=t}finally{try{!i&&u.return&&u.return()}finally{if(a)throw o}}}},this.addDependency=function(e,n,i){var a=new t(this,e,n),r=a.getFromTaskId(),o=a.getFromTask(),s=a.getToTaskId(),l=a.getToTask(),u=a.manager;return r in this.dependenciesFrom||(this.dependenciesFrom[r]=[]),s in this.dependenciesTo||(this.dependenciesTo[s]=[]),i||l&&o?(r&&this.dependenciesFrom[r].push(a),s&&this.dependenciesTo[s].push(a),a):(this.removeDependency(a,!0),u.api.dependencies.raise.remove(a),null)},this.removeDependency=function(t,e){var n=this.dependenciesFrom[t.getFromTaskId()],i=[],a=void 0;if(n)for(a=0;a<n.length;a++)t===n[a]&&i.push(t);var r=this.dependenciesTo[t.getToTaskId()],o=[];if(r)for(a=0;a<r.length;a++)t===r[a]&&o.push(t);for(a=0;a<i.length;a++)e||i[a].disconnect(),n.splice(n.indexOf(t),1);for(a=0;a<o.length;a++)e||o[a].disconnect(),r.splice(r.indexOf(t),1);this.dependenciesFrom[t.getFromTaskId()]&&0===this.dependenciesFrom[t.getFromTaskId()].length&&delete this.dependenciesFrom[t.getFromTaskId()],this.dependenciesTo[t.getToTaskId()]&&0===this.dependenciesTo[t.getToTaskId()].length&&delete this.dependenciesTo[t.getToTaskId()]},this.getTaskDependencies=function(t){var e=[],n=l.dependenciesFrom[t.model.id];n&&(e=e.concat(n));var i=l.dependenciesTo[t.model.id];return i&&(e=e.concat(i)),e},this.setDraggingConnection=function(t){if(t){l.draggingConnection=t;for(var e in l.tasks){l.tasks[e].dependencies.mouseHandler.release()}}else{l.draggingConnection=void 0;for(var n in l.tasks){l.tasks[n].dependencies.mouseHandler.install()}}};var u=function(t){var e=t.row.model.dependencies;if(void 0!==e)return!1!==e;var n=t.model.dependencies;return void 0===n||!1!==n},d=function(t){if(t.dependencies||(t.dependencies={}),t.dependencies.endpoints=[],l.pluginScope.endpoints&&t.$element){var e=!0,n=!1,i=void 0;try{for(var a,o=(0,r.default)(l.pluginScope.endpoints);!(e=(a=o.next()).done);e=!0){var s=a.value,u=l.plumb.addEndpoint(t.$element,s);u.setVisible(!1,!0,!0),u.$task=t,t.dependencies.endpoints.push(u)}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}}},c=function(t){if(t.dependencies.endpoints){var e=!0,n=!1,i=void 0;try{for(var a,o=(0,r.default)(t.dependencies.endpoints);!(e=(a=o.next()).done);e=!0){var s=a.value;l.plumb.deleteEndpoint(s),s.$task=void 0}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}t.dependencies.endpoints=void 0}},f=function(t){t.dependencies||(t.dependencies={}),l.pluginScope.readOnly||(t.dependencies.mouseHandler=new n(l,t),t.dependencies.mouseHandler.install())},g=function(t){t.dependencies.mouseHandler&&(t.dependencies.mouseHandler.release(),t.dependencies.mouseHandler=void 0)};this.setTasks=function(t){for(var e in l.tasks){var n=l.tasks[e];g(n),c(n)}var i={},a=[],o=!0,s=!1,h=void 0;try{for(var v,p=(0,r.default)(t);!(o=(v=p.next()).done);o=!0){var m=v.value;u(m)&&(i[m.model.id]=m,a.push(m),d(m),f(m))}}catch(t){s=!0,h=t}finally{try{!o&&p.return&&p.return()}finally{if(s)throw h}}l.tasks=i,l.tasksList=t};var h=function(t){var e=l.getTaskDependencies(t);if(e){var n=!0,i=!1,a=void 0;try{for(var o,s=(0,r.default)(e);!(n=(o=s.next()).done);n=!0){o.value.disconnect()}}catch(t){i=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}}return e},v=function(t){var e=l.getTaskDependencies(t);if(e){var n=!0,i=!1,a=void 0;try{for(var o,s=(0,r.default)(e);!(n=(o=s.next()).done);n=!0){o.value.connect()}}catch(t){i=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}}return e};this.setTask=function(t){l.plumb.setSuspendDrawing(!0);try{var e=l.tasks[t.model.id];void 0!==e&&(h(e),g(e),c(e)),u(t)&&(l.tasks[t.model.id]=t,d(t),f(t),v(t))}finally{l.plumb.setSuspendDrawing(!1,!0)}},this.getTask=function(t){return l.tasks[t]};var p=function(t){return t.dependencies.endpoints.filter(function(t){return t.isSource})},m=function(t){return t.dependencies.endpoints.filter(function(t){return t.isTarget})};this.connect=function(t,e,n){var i=p(t),a=m(e);if(i&&a){var r=void 0,o=void 0;r=n.connectParameters&&n.connectParameters.sourceEndpointIndex?i[n.connectParameters.sourceEndpointIndex]:i[0],o=n.connectParameters&&n.connectParameters.targetEndpointIndex?a[n.connectParameters.targetEndpointIndex]:a[0];var s=l.plumb.connect({source:r,target:o,parameters:{from:t,to:e}},n.connectParameters);return s.canvas.setAttribute("data-fromId",t.model.id),s.canvas.setAttribute("data-toId",e.model.id),s}},this.getDependencies=function(){var t=[];for(var e in this.dependenciesFrom){var n=this.dependenciesFrom[e],i=!0,a=!1,o=void 0;try{for(var s,l=(0,r.default)(n);!(i=(s=l.next()).done);i=!0){var u=s.value;u in t||t.push(u)}}catch(t){a=!0,o=t}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}}return t},this.refresh=function(t){l.plumb.setSuspendDrawing(!0);try{var e=void 0,n=void 0;if(t&&!Array.isArray(t)&&(t=[t]),void 0===t)t=this.tasks,e=this.getDependencies();else{e=[];var i=!0,a=!1,o=void 0;try{for(var s,u=(0,r.default)(t);!(i=(s=u.next()).done);i=!0){var d=s.value,c=l.getTaskDependencies(d),f=!0,g=!1,h=void 0;try{for(var v,p=(0,r.default)(c);!(f=(v=p.next()).done);f=!0){var m=v.value;m in e||e.push(m)}}catch(t){g=!0,h=t}finally{try{!f&&p.return&&p.return()}finally{if(g)throw h}}}}catch(t){a=!0,o=t}finally{try{!i&&u.return&&u.return()}finally{if(a)throw o}}}for(n=0;n<e.length;n++)l.removeDependency(e[n]);for(var y in t){var w=t[y];l.addDependenciesFromTask(w)}}finally{l.plumb.setSuspendDrawing(!1,!0)}},this.api.registerMethod("dependencies","refresh",this.refresh,this)}}];var o=n(264),s=i(o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=["ganttUtils","ganttDom",function(t,e){"ngInject";return function(n,i,r){var o=this;this.manager=n,this.task=i,this.model=r,this.connection=void 0,this.fallbackEndpoints=[],this.isConnected=function(){return!!this.connection},this.disconnect=function(){this.connection&&(this.connection.endpoints&&(this.manager.plumb.detach?this.manager.plumb.detach(this.connection):this.manager.plumb.deleteConnection(this.connection)),this.connection.$dependency=void 0,this.connection=void 0),this.deleteFallbackEndpoints()},this.deleteFallbackEndpoints=function(){if(this.fallbackEndpoints){var t=!0,e=!1,n=void 0;try{for(var i,r=(0,a.default)(this.fallbackEndpoints);!(t=(i=r.next()).done);t=!0){var s=i.value;o.manager.plumb.deleteEndpoint(s)}}catch(t){e=!0,n=t}finally{try{!t&&r.return&&r.return()}finally{if(e)throw n}}this.fallbackEndpoints=[]}},this.getFromTaskId=function(){return void 0!==this.model.from?this.model.from:this.task.model.id},this.getToTaskId=function(){return void 0!==this.model.to?this.model.to:this.task.model.id},this.getFromTask=function(){return void 0!==this.model.from?this.manager.getTask(this.model.from):this.task},this.getToTask=function(){return void 0!==this.model.to?this.manager.getTask(this.model.to):this.task},this.removeFromTaskModel=function(){var e=t.angularIndexOf(this.task.model.dependencies,this.model);return e>=0&&this.task.model.dependencies.splice(e,1),e};var s=function(t){if(void 0===t||void 0===t.$element)return!1;var n=t.$element[0];return e.isElementVisible(n)};this.connect=function(){var t=this.getFromTask(),e=this.getToTask();if(s(t)||(t=void 0),s(e)||(e=void 0),t&&e){var n=this.manager.connect(t,e,this.model);if(n)return n.$dependency=this,this.connection=n,!0}if(this.deleteFallbackEndpoints(),void 0!==t){var i=this.manager.pluginScope.fallbackEndpoints[1];this.fallbackEndpoints.push(this.manager.plumb.addEndpoint(t.$element,i))}if(void 0!==e){var a=this.manager.pluginScope.fallbackEndpoints[0];this.fallbackEndpoints.push(this.manager.plumb.addEndpoint(e.$element,a))}return!1}}}]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(4),r=i(a);e.default=["$timeout",function(t){"ngInject";return function(e,n){var i=this;this.manager=e,this.task=n,this.installed=!1,this.elementHandlers=[],this.display=!0,this.hideEndpointsPromise=void 0;var a=function(e){this.element=e,this.mouseExitHandler=function(){t.cancel(i.hideEndpointsPromise),i.hideEndpointsPromise=t(i.hideEndpoints,1e3,!1)},this.mouseEnterHandler=function(){t.cancel(i.hideEndpointsPromise),i.displayEndpoints()},this.install=function(){this.element.bind("mouseenter",this.mouseEnterHandler),this.element.bind("mouseleave",this.mouseExitHandler)},this.release=function(){this.element.unbind("mouseenter",this.mouseEnterHandler),this.element.unbind("mouseleave",this.mouseExitHandler),t.cancel(i.hideEndpointsPromise)}};this.install=function(){if(!i.installed&&(i.hideEndpoints(),i.task.getContentElement())){i.elementHandlers.push(new a(i.task.getContentElement()));var t=!0,e=!1,n=void 0;try{for(var o,l=(0,r.default)(i.task.dependencies.endpoints);!(t=(o=l.next()).done);t=!0){var u=o.value;i.elementHandlers.push(new a(s.default.element(u.canvas)))}}catch(t){e=!0,n=t}finally{try{!t&&l.return&&l.return()}finally{if(e)throw n}}var d=!0,c=!1,f=void 0;try{for(var g,h=(0,r.default)(i.elementHandlers);!(d=(g=h.next()).done);d=!0){g.value.install()}}catch(t){c=!0,f=t}finally{try{!d&&h.return&&h.return()}finally{if(c)throw f}}i.installed=!0}},this.release=function(){if(i.installed){var t=!0,e=!1,n=void 0;try{for(var a,o=(0,r.default)(i.elementHandlers);!(t=(a=o.next()).done);t=!0){a.value.release()}}catch(t){e=!0,n=t}finally{try{!t&&o.return&&o.return()}finally{if(e)throw n}}i.elementHandlers=[],i.displayEndpoints(),i.installed=!1}},this.displayEndpoints=function(){i.display=!0;var t=!0,e=!1,n=void 0;try{for(var a,o=(0,r.default)(i.task.dependencies.endpoints);!(t=(a=o.next()).done);t=!0){a.value.setVisible(!0,!0,!0)}}catch(t){e=!0,n=t}finally{try{!t&&o.return&&o.return()}finally{if(e)throw n}}},this.hideEndpoints=function(){var t=!0,e=!1,n=void 0;try{for(var a,o=(0,r.default)(i.task.dependencies.endpoints);!(t=(a=o.next()).done);t=!0){a.value.setVisible(!1,!0,!0)}}catch(t){e=!0,n=t}finally{try{!t&&o.return&&o.return()}finally{if(e)throw n}}i.display=!1}}}];var o=n(2),s=i(o)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(5),r=i(a);e.default=["$document","ganttMouseOffset","ganttUtils",function(t,e,n){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?",moveThreshold:"=?",taskFactory:"=?"},link:function(i,a,o,l){var u=l.gantt.api;if(i.options&&"object"===(0,r.default)(i.options.drawtask))for(var d in i.options.drawtask)i[d]=i.options.drawtask[d];void 0===i.enabled&&(i.enabled=!0),void 0===i.moveThreshold&&(i.moveThreshold=0),void 0===i.taskFactory&&(i.taskFactory=function(){return{}}),u.registerEvent("tasks","draw"),u.registerEvent("tasks","drawBegin"),u.registerEvent("tasks","drawEnd");var c=function(t){return t.model.drawTask&&"function"==typeof t.model.drawTask.taskFactory?t.model.drawTask.taskFactory():i.taskFactory()};u.directives.on.new(i,function(a,r,o){if("ganttRow"===a){var l=function(t){var e=u.core.getDateByPosition(t,!0),n=(0,s.default)(e),i=c(r.row);i.from=e,i.to=n;var a=r.row.addTask(i);return a.isResizing=!0,a.updatePosAndSize(),r.row.updateVisibleTasks(),r.row.$scope.$digest(),a},d=function(e){var n=function(){r.row.rowsManager.gantt.api.tasks.raise.draw(e)};r.row.rowsManager.gantt.api.tasks.raise.drawBegin(e),t.on("mousemove",n),t.one("mouseup",function(){r.row.rowsManager.gantt.api.tasks.raise.drawEnd(e),t.off("mousemove",n)})},f=function(n){var a=function t(a){var r=e.getOffset(a).x;if(Math.abs(n-r)>=i.moveThreshold){o.off("mousemove",t);var s=l(n);d(s)}};o.on("mousemove",a),t.one("mouseup",function(){o.off("mousemove",a)})},g=function(t){var a=t.target?t.target:t.srcElement,o=r.row.model.drawTask;"boolean"!=typeof o&&"function"!=typeof o||(o={enabled:o});var s=n.firstProperty([o],"enabled",i.enabled);if(("function"==typeof s?s(t,r.row):s)&&a.className.indexOf("gantt-row")>-1){var u=e.getOffset(t).x;if(0===i.moveThreshold){var c=l(u);d(c)}else f(u)}};o.on("mousedown",g),r.drawTaskHandler=g}}),u.directives.on.destroy(i,function(t,e,n){"ganttRow"===t&&(n.off("mousedown",e.drawTaskHandler),delete e.drawTaskHandler)})}}}];var o=n(3),s=i(o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["$scope","GanttTaskGroup","ganttUtils",function(t,e,n){"ngInject";var i=function(){var i=t.row.model.groups;"boolean"==typeof i&&(i={enabled:i}),n.firstProperty([i],"enabled",t.pluginScope.enabled)?(t.display=n.firstProperty([i],"display",t.pluginScope.display),t.taskGroup=new e(t.row,t.pluginScope),t.row.setFromTo(),t.row.setFromToByValues(t.taskGroup.from,t.taskGroup.to)):(t.taskGroup=void 0,t.display=void 0)};t.gantt.api.tasks.on.viewChange(t,function(e){if(void 0!==t.taskGroup)if(t.taskGroup.tasks.indexOf(e)>-1)i(),t.$$phase||t.$root.$$phase||t.$digest();else{var n=t.pluginScope.hierarchy.descendants(t.row);n.indexOf(e.row)>-1&&(i(),t.$$phase||t.$root.$$phase||t.$digest())}});var a=t.pluginScope.$watch("display",i);t.$watchCollection("gantt.rowsManager.filteredRows",i),t.gantt.api.columns.on.refresh(t,i),t.$on("$destroy",a)}]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(5),r=i(a);e.default=["ganttUtils","GanttHierarchy","$compile","$document",function(t,e,n,i){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?",display:"=?"},link:function(t,a,o,l){function u(){t.hierarchy.refresh(l.gantt.rowsManager.filteredRows)}var d=l.gantt.api;if(t.options&&"object"===(0,r.default)(t.options.groups))for(var c in t.options.groups)t[c]=t.options.groups[c];void 0===t.enabled&&(t.enabled=!0),void 0===t.display&&(t.display="group"),t.hierarchy=new e,l.gantt.api.registerMethod("groups","refresh",u,this),l.gantt.$scope.$watchCollection("gantt.rowsManager.filteredRows",function(){u()}),d.directives.on.new(t,function(e,a,r){if("ganttRow"===e){var l=a.$new();l.pluginScope=t;var u=i[0].createElement("div");s.default.element(u).attr("data-ng-if","pluginScope.enabled");var d=i[0].createElement("gantt-task-group");void 0!==o.templateUrl&&s.default.element(d).attr("data-template-url",o.templateUrl),void 0!==o.template&&s.default.element(d).attr("data-template",o.template),s.default.element(u).append(d),r.append(n(u)(l))}})}}}];var o=n(2),s=i(o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";return new t("ganttTaskGroup","plugins/groups/taskGroup.tmpl.html").build()}],n(247)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=["ganttUtils","GanttTask",function(t,e){"ngInject";return function(n,i){var r=this;r.row=n,r.pluginScope=i,r.descendants=r.pluginScope.hierarchy.descendants(r.row),r.tasks=[],r.overviewTasks=[],r.promotedTasks=[],r.showGrouping=!1;var o=r.row.model.groups;"boolean"==typeof o&&(o={enabled:o});var s=!0,l=!1,u=void 0;try{for(var d,c=(0,a.default)(r.descendants);!(s=(d=c.next()).done);s=!0){var f=d.value,g=f.tasks,h=!0,v=!1,p=void 0;try{for(var m,y=(0,a.default)(g);!(h=(m=y.next()).done);h=!0){var w=m.value,k=function(e){var n=e.model.groups;"boolean"==typeof n&&(n={enabled:n});var i=e.row.model.groups;if("boolean"==typeof i&&(i={enabled:i}),t.firstProperty([n,i,o],"enabled",r.pluginScope.enabled))return t.firstProperty([n,i,o],"display",r.pluginScope.display)}(w);if(void 0!==k){r.tasks.push(w);var b=new e(r.row,w.model);"overview"===k?r.overviewTasks.push(b):"promote"===k?r.promotedTasks.push(b):r.showGrouping=!0}}}catch(t){v=!0,p=t}finally{try{!h&&y.return&&y.return()}finally{if(v)throw p}}}}catch(t){l=!0,u=t}finally{try{!s&&c.return&&c.return()}finally{if(l)throw u}}if(r.from=void 0,o&&(r.from=o.from),void 0===r.from){var M=!0,_=!1,$=void 0;try{for(var C,T=(0,a.default)(r.tasks);!(M=(C=T.next()).done);M=!0){var S=C.value;(void 0===r.from||S.model.from<r.from)&&(r.from=S.model.from)}}catch(t){_=!0,$=t}finally{try{!M&&T.return&&T.return()}finally{if(_)throw $}}}if(r.to=void 0,o&&(r.to=o.to),void 0===r.to){var x=!0,O=!1,j=void 0;try{for(var P,F=(0,a.default)(r.tasks);!(x=(P=F.next()).done);x=!0){var R=P.value;(void 0===r.to||R.model.to>r.to)&&(r.to=R.model.to)}}catch(t){O=!0,j=t}finally{try{!x&&F.return&&F.return()}finally{if(O)throw j}}}r.showGrouping&&(r.left=n.rowsManager.gantt.getPositionByDate(r.from),r.width=n.rowsManager.gantt.getPositionByDate(r.to)-r.left)}}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttTaskOverview","plugins/groups/taskOverview.tmpl.html");return e.controller=function(t,e){t.task.$element=e,t.task.$scope=t,t.task.updatePosAndSize()},e.build()}],n(248)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(4),r=i(a),o=n(5),s=i(o);e.default=["ganttUtils","$compile","$document","$log",function(t,e,n,i){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?",header:"=?"},link:function(t,a,o,l){function d(){var t=l.gantt.side.$element[0].getElementsByClassName("gantt-row-label"),e=0,n=!0,i=!1,a=void 0;try{for(var o,s=(0,r.default)(t);!(n=(o=s.next()).done);n=!0){var u=o.value,d=u.children[0].offsetWidth;e=Math.max(e,d)}}catch(t){i=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}e>=0&&c.side.setWidth(e)}var c=l.gantt.api;if(i.warn("Angular Gantt Labels plugin is deprecated. Please use Table plugin instead."),t.options&&"object"===(0,s.default)(t.options.labels))for(var f in t.options.labels)t[f]=t.options.labels[f];void 0===t.enabled&&(t.enabled=!0),void 0===t.header&&(t.header="Name"),c.directives.on.new(t,function(i,a,r){if("ganttSideContent"===i){var o=a.$new();o.pluginScope=t;var s=n[0].createElement("div");u.default.element(s).attr("data-ng-if","pluginScope.enabled"),u.default.element(s).addClass("side-element");var l=n[0].createElement("gantt-side-content-labels");u.default.element(s).append(l),r.append(e(s)(o))}}),c.registerMethod("labels","fitSideWidth",d,this)}}}];var l=n(2),u=i(l)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder","ganttLayout",function(t,e){"ngInject";var n=new t("ganttLabelsBody","plugins/labels/labelsBody.tmpl.html");return n.controller=function(t){var n=e.getScrollBarHeight();t.getLabelsCss=function(){var e={},i=t.maxHeight;i||(i=t.gantt.getContainerHeight());var a=t.gantt.scroll.isHScrollbarVisible()?n:0;return e["max-height"]=i-a-t.gantt.header.getHeight()+"px",e}},n.build()}],n(249)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";return new t("ganttLabelsHeader","plugins/labels/labelsHeader.tmpl.html").build()}],n(250)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";return new t("ganttSideContentLabels","plugins/labels/sideContentLabels.tmpl.html").build()}],n(251)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(5),r=i(a);e.default=["ganttMouseButton","ganttMouseOffset","GanttSmartEvent","ganttMovableOptions","ganttUtils","ganttDom","$window","$document","$timeout",function(t,e,n,i,a,o,l,u,d){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?",allowMoving:"=?",allowResizing:"=?",allowRowSwitching:"=?"},link:function(c,f,g,h){var v=h.gantt.api;if(c.options&&"object"===(0,r.default)(c.options.movable))for(var p in c.options.movable)c[p]=c.options.movable[p];i.initialize(c),v.registerEvent("tasks","move"),v.registerEvent("tasks","moveBegin"),v.registerEvent("tasks","moveEnd"),v.registerEvent("tasks","resize"),v.registerEvent("tasks","resizeBegin"),v.registerEvent("tasks","resizeEnd"),v.registerEvent("tasks","change");var m="ontouchstart"in l||l.DocumentTouch&&u[0]instanceof l.DocumentTouch,y=void 0,w=void 0;v.directives.on.new(c,function(i,r,f){if("ganttTask"===i){var g=s.default.element(l),v=r.row.rowsManager.gantt.body.$element,p=r.row.rowsManager.gantt.scroll.$element,k=!1,b=!1,M=void 0,_=r.task.getForegroundElement(),$=r.task.getContentElement(),C=function(n){n.preventDefault(),m&&(n=e.getTouch(n));var i=r.task.model.movable,o=r.task.row.model.movable;"boolean"!=typeof i&&"function"!=typeof i||(i={enabled:i}),"boolean"!=typeof o&&"function"!=typeof o||(o={enabled:o});var s=a.firstProperty([i,o],"enabled",c.enabled);if("function"==typeof s?s(n,r.task):s){var l=e.getOffsetForElement(_[0],n).x,u=P(l);if(""!==u&&1===t.getButton(n)){var d=e.getOffsetForElement(v[0],n).x;D(u,d)}r.$digest()}};_.on("touchstart mousedown",C),$.on("touchstart mousedown",C);var T=function(t){var n=r.task.model.movable,i=r.task.row.model.movable;"boolean"!=typeof n&&"function"!=typeof n||(n={enabled:n}),"boolean"!=typeof i&&"function"!=typeof i||(i={enabled:i});var o=a.firstProperty([n,i],"enabled",c.enabled);if(("function"==typeof o?o(t,r.task):o)&&!r.task.isMoving){var s=e.getOffsetForElement(_[0],t).x,l=P(s);""!==l&&"M"!==l?(_.css("cursor",F(l)),$.css("cursor",F(l))):(_.css("cursor",""),$.css("cursor",""))}};_.on("mousemove",T),$.on("mousemove",T);var S=function(t){r.task.isMoving&&!r.destroyed&&(j(),x(t),O(t))},x=function(t){var n=k,i=e.getOffsetForElement(v[0],t),l=i.x;r.task.mouseOffsetX=l;var d=r.task.row.rowsManager.gantt.options.value("taskOutOfRange"),f=r.task.model.movable,g=r.task.row.model.movable;if("boolean"!=typeof f&&"function"!=typeof f||(f={enabled:f}),"boolean"!=typeof g&&"function"!=typeof g||(g={enabled:g}),"M"===r.task.moveMode){var m=a.firstProperty([f,g],"allowRowSwitching",c.allowRowSwitching);if(m){var w=p[0].getBoundingClientRect(),M=w.left+w.width/2,_=s.default.element(u[0].querySelectorAll(".gantt-body"));_.css("pointer-events","auto");var $=o.findElementFromPoint(M,t.clientY,function(t){return s.default.element(t).hasClass("gantt-row")});_.css("pointer-events","");for(var C=h.gantt.rowsManager.rows,T=void 0,S=0,x=C.length;S<x;S++)if($===C[S].$element[0]){T=C[S];break}var O=r.task.row;void 0!==T&&O!==T&&("function"!=typeof m||m(r.task,T))&&(T.moveTaskToRow(r.task,!0),k=!0)}a.firstProperty([f,g],"allowMoving",c.allowMoving)&&(l-=y,"truncate"!==d&&(l<0?l=0:l+r.task.width>=r.gantt.width&&(l=r.gantt.width-r.task.width)),r.task.moveTo(l,!0),r.$digest(),k&&r.row.rowsManager.gantt.api.tasks.raise.move(r.task),k=!0)}else"E"===r.task.moveMode?(l<=r.task.left&&(l=r.task.left,r.task.moveMode="W",R(F(r.task.moveMode))),"truncate"!==d&&l>=r.gantt.width&&(l=r.gantt.width),r.task.setTo(l,!0),r.$digest(),k&&r.row.rowsManager.gantt.api.tasks.raise.resize(r.task),k=!0):(l>r.task.left+r.task.width&&(l=r.task.left+r.task.width,r.task.moveMode="E",R(F(r.task.moveMode))),"truncate"!==d&&l<0&&(l=0),r.task.setFrom(l,!0),r.$digest(),k&&r.row.rowsManager.gantt.api.tasks.raise.resize(r.task),k=!0);n||!k||b||("M"===r.task.moveMode?r.row.rowsManager.gantt.api.tasks.raise.moveBegin(r.task):r.row.rowsManager.gantt.api.tasks.raise.resizeBegin(r.task))},O=function(t){var n=e.getOffsetForElement(v[0],t),i=p[0].scrollLeft,a=p[0].offsetWidth,o=p[0].scrollWidth,s=i+a,l=!1;n.x<w?i>0&&n.x<=i+5&&(n.x-=15,l=!0,r.row.rowsManager.gantt.api.scroll.left(15)):s<o&&n.x>=s-5&&(n.x+=15,l=!0,r.row.rowsManager.gantt.api.scroll.right(15)),l&&(M=d(function(){S(t)},100,!0))},j=function(){void 0!==M&&(d.cancel(M),M=void 0)},P=function(t){var e=0,n=r.task.model.movable,i=r.task.row.model.movable;"boolean"==typeof n&&(n={enabled:n}),"boolean"==typeof i&&(i={enabled:i});var o=a.firstProperty([n,i],"allowResizing",c.allowResizing),s=a.firstProperty([n,i],"allowRowSwitching",c.allowRowSwitching),l=a.firstProperty([n,i],"allowMoving",c.allowMoving);return o&&(e=_[0].offsetWidth<15?3:5),o&&t>_[0].offsetWidth-e?"E":o&&t<e?"W":(l||s)&&t>=e&&t<=_[0].offsetWidth-e?"M":""},F=function(t){switch(t){case"E":return"e-resize";case"W":return"w-resize";case"M":return"move"}},R=function(t){f.css("cursor",t),s.default.element(u[0].body).css({"-moz-user-select":""===t?"":"-moz-none","-webkit-user-select":""===t?"":"none","-ms-user-select":""===t?"":"none","user-select":""===t?"":"none",cursor:t})},D=function(t,i){void 0===r.task.originalModel&&(r.task.originalRow=r.task.row,r.task.originalModel=r.task.model,r.task.model=s.default.copy(r.task.originalModel)),b||(w=i,y=i-r.task.modelLeft),k=!1,r.task.moveMode=t,r.task.isMoving=!0,r.task.active=!0;var a=r.task.$element;"M"===r.task.moveMode?a.addClass("gantt-task-resizing"):a.addClass("gantt-task-moving");var o=function(t){t.stopImmediatePropagation(),m&&(t=e.getTouch(t)),S(t)},l=new n(r,g,"touchmove mousemove",o);l.bind(),new n(r,g,"touchend mouseup",function(t){m&&(t=e.getTouch(t)),l.unbind(),E(),r.$digest()}).bindOnce(),R(F(t))},E=function(){if(void 0!==r.task.originalModel){if(r.task.originalModel.from=r.task.model.from,r.task.originalModel.to=r.task.model.to,r.task.originalModel.lct=r.task.model.lct,r.task.originalModel.est=r.task.model.est,r.task.model=r.task.originalModel,r.task.row.model.id!==r.task.originalRow.model.id){var t=r.task.row;t.removeTask(r.task.model.id,!1,!0),r.task.row=r.task.originalRow,t.moveTaskToRow(r.task,!1)}delete r.task.originalModel,delete r.task.originalRow,r.$apply()}b=!1,r.task.isMoving=!1,r.task.active=!1;var e=r.task.$element;e.removeClass("gantt-task-moving"),e.removeClass("gantt-task-resizing"),j(),R(""),!0===k&&("M"===r.task.moveMode?r.row.rowsManager.gantt.api.tasks.raise.moveEnd(r.task):r.row.rowsManager.gantt.api.tasks.raise.resizeEnd(r.task),k=!1,r.task.row.sortTasks(),r.row.rowsManager.gantt.api.tasks.raise.change(r.task)),r.task.moveMode=void 0};r.$on("$destroy",function(){r.destroyed=!0,j()}),r.task.isResizing?(b=!0,D("E",r.task.mouseOffsetX),delete r.task.isResizing):r.task.isMoving&&(b=!0,D("M",r.task.mouseOffsetX))}})}}}];var o=n(2),s=i(o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){"ngInject";return{initialize:function(t){return t.enabled=void 0===t.enabled||t.enabled,t.allowMoving=void 0===t.allowMoving||!!t.allowMoving,t.allowResizing=void 0===t.allowResizing||!!t.allowResizing,"function"!=typeof t.allowRowSwitching&&(t.allowRowSwitching=void 0===t.allowRowSwitching||!!t.allowRowSwitching),t}}}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(4),r=i(a),o=n(5),s=i(o);e.default=["$timeout",function(t){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?",global:"=?"},link:function(e,n,i,a){function o(t){var e=void 0,n=void 0;return t.model.from.isBefore(t.model.to)?(e=t.model.from,n=t.model.to):(e=t.model.to,n=t.model.from),[e,n]}function l(t){var e=o(t);return u().range(e[0],e[1])}function d(t,e){e.model.id in t||!e.$element||(e.$element.addClass("gantt-task-overlaps"),t[e.model.id]=e)}function c(t,e){for(var n=0,i=e.length;n<i;n++){var a=e[n];a.model.id in t||!a.$element||a.$element.removeClass("gantt-task-overlaps")}}function f(t){var e={};if(t.length>1)for(var n=t[0],i=l(n),a=1,r=t.length;a<r;a++){var o=t[a],s=l(o);s.overlaps(i)&&(d(e,o),d(e,n)),n.left+n.width<o.left+o.width&&(n=o,i=s)}c(e,t)}function g(t,e){return t.sort(function(t,n){return e(t)<e(n)?-1:e(t)>e(n)?1:0})}function h(t){var e=[],n=!0,i=!1,a=void 0;try{for(var o,s=(0,r.default)(t);!(n=(o=s.next()).done);n=!0){var l=o.value;e.push.apply(e,l.tasks)}}catch(t){i=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}e=g(e,function(t){return t.model.from}),f(e)}var v=a.gantt.api;if(e.options&&"object"===(0,s.default)(e.options.overlap))for(var p in e.options.overlap)e[p]=e.options.overlap[p];void 0===e.enabled&&(e.enabled=!0),void 0===e.global&&(e.global=!1),e.enabled&&(v.data.on.change(e,function(){t(function(){var t=v.gantt.rowsManager.rows;if(e.global)h(t);else{var n=!0,i=!1,a=void 0;try{for(var o,s=(0,r.default)(t);!(n=(o=s.next()).done);n=!0){f(o.value.tasks)}}catch(t){i=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}}})}),v.tasks.on.change(e,function(t){if(e.global){h(t.row.rowsManager.rows)}else f(t.row.tasks)}),v.tasks.on.rowChange(e,function(t,n){if(e.global){h(t.row.rowsManager.rows)}else f(n.tasks),f(t.row.tasks)}),v.tasks.on.add(e,function(n){t(function(){if(e.global){h(n.row.rowsManager.rows)}else f(n.row.tasks)})}))}}}];var l=n(200),u=(0,l.extendMoment)(n(3))},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(5),r=i(a);e.default=["$compile","$document",function(t,e){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?"},link:function(n,i,a,o){var l=o.gantt.api;if(n.options&&"object"===(0,r.default)(n.options.progress))for(var d in n.options.progress)n[d]=n.options.progress[d];void 0===n.enabled&&(n.enabled=!0),l.directives.on.new(n,function(i,r,o){if("ganttTaskBackground"===i){var l=r.$new();l.pluginScope=n;var u=e[0].createElement("div");s.default.element(u).attr("data-ng-if","task.model.progress !== undefined && pluginScope.enabled");var d=e[0].createElement("gantt-task-progress");void 0!==a.templateUrl&&s.default.element(d).attr("data-template-url",a.templateUrl),void 0!==a.template&&s.default.element(d).attr("data-template",a.template),s.default.element(u).append(d),o.append(t(u)(l))}}),l.tasks.on.clean(n,function(t){void 0===t.est||u.default.isMoment(t.est)||(t.est=(0,u.default)(t.est)),void 0===t.lct||u.default.isMoment(t.lct)||(t.lct=(0,u.default)(t.lct))})}}}];var o=n(2),s=i(o),l=n(3),u=i(l)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=["$templateCache",function(t){"ngInject";return{restrict:"E",requires:"^ganttTask",templateUrl:function(e,n){var i=void 0;return i=void 0===n.templateUrl?"plugins/progress/taskProgress.tmpl.html":n.templateUrl,void 0!==n.template&&t.put(i,n.template),i},replace:!0,scope:!0,controller:["$scope","$element",function(t,e){t.getClasses=function(){var e=[];return"object"===(0,a.default)(t.task.model.progress)&&(e=t.task.model.progress.classes),e},t.getCss=function(){var e={},n=void 0;return void 0!==t.task.model.progress&&(n="object"===(0,a.default)(t.task.model.progress)?t.task.model.progress:{percent:t.task.model.progress}),n&&(n.color?e["background-color"]=n.color:e["background-color"]="#6BC443",e.width=n.percent+"%"),e},t.task.rowsManager.gantt.api.directives.raise.new("ganttTaskProgress",t,e),t.$on("$destroy",function(){t.task.rowsManager.gantt.api.directives.raise.destroy("ganttTaskProgress",t,e)})}]}}],n(252)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(5),r=i(a);e.default=function(){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?"},link:function(t,e,n,i){function a(){var t=i.gantt.$element[0];return[new u.default(t,function(){var e=!1;Math.abs(t.clientWidth-i.gantt.$scope.ganttElementWidth)>1&&(i.gantt.$scope.ganttElementWidth=t.clientWidth,e=!0),Math.abs(t.clientHeight-i.gantt.$scope.ganttElementHeight)>1&&(i.gantt.$scope.ganttElementHeight=t.clientHeight,e=!0),e&&i.gantt.$scope.$apply()}),new u.default(t.parentElement,function(){var e=t.parentElement,n=e.offsetHeight,a=getComputedStyle(e);n=n-parseInt(a.marginTop,10)-parseInt(a.marginBottom,10),i.gantt.$scope.ganttContainerHeight=n;var r=e.offsetWidth;a=getComputedStyle(e),r=r-parseInt(a.marginLeft,10)-parseInt(a.marginRight,10),i.gantt.$scope.ganttContainerWidth=r,i.gantt.$scope.$apply()})]}function o(t){for(var e=0;e<t;e++)t[e].detach()}var l=i.gantt.api;if(t.options&&"object"===(0,r.default)(t.options.resizeSensor))for(var d in t.options.resizeSensor)t[d]=t.options.resizeSensor[d];void 0===t.enabled&&(t.enabled=!0);var c=!1,f=[];l.core.on.rendered(t,function(){c=!0,o(f),t.enabled&&(s.default.update(),f=a())}),t.$watch("enabled",function(t){c&&(t?(s.default.update(),f=a()):t||(o(f),f=[]))})}}};var o=n(261),s=i(o),l=n(262),u=i(l);s.default.listen()},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(5),r=i(a);e.default=["$compile","$document",function(t,e){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?",keepProportions:"=?",disableMagnet:"=?",disableDaily:"=?"},link:function(n,i,a,o){var l=o.gantt.api;if(n.options&&"object"===(0,r.default)(n.options.sections))for(var u in n.options.sections)n[u]=n.options.sections[u];void 0===n.enabled&&(n.enabled=!0),void 0===n.keepProportions&&(n.keepProportions=!0),l.directives.on.new(n,function(i,r,o){if("ganttTaskForeground"===i){var l=r.$new();l.pluginScope=n,l.task=r.task;var u=e[0].createElement("div");s.default.element(u).attr("data-ng-if","task.model.sections !== undefined && pluginScope.enabled"),s.default.element(u).attr("class","gantt-task-foreground-sections");var d=e[0].createElement("gantt-task-sections");void 0!==a.templateUrl&&s.default.element(d).attr("data-template-url",a.templateUrl),void 0!==a.template&&s.default.element(d).attr("data-template",a.template),s.default.element(u).append(d),o.append(t(u)(l))}})}}}];var o=n(2),s=i(o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["$templateCache",function(t){"ngInject";return{restrict:"E",requires:"^ganttTaskSections",templateUrl:function(e,n){var i=void 0;return i=void 0===n.templateUrl?"plugins/sections/taskSection.tmpl.html":n.templateUrl,void 0!==n.template&&t.put(i,n.template),i},replace:!0,scope:{section:"=",task:"=",index:"=",options:"=?"},controller:["$scope","$element","ganttUtils",function(t,e,n){var i=(0,a.default)(t.section.from).isSame((0,a.default)(t.task.model.from)),r=(0,a.default)(t.section.to).isSame((0,a.default)(t.task.model.to));!function(){if(t.task._movingTaskSections){var e=t.task._movingTaskSections,n=e["$$index_"+t.index];t.section=n.section,t.sectionCss=n.sectionCss,i=n.fromTask,r=n.toTask,delete e["$$index_"+t.index]}var a=!0;for(var o in t.task._movingTaskSections)if(t.task._movingTaskSections.hasOwnProperty(o)){a=!1;break}a&&delete t.task._movingTaskSections}();var o=function(){if(i)return 0;var e=t.task.rowsManager.gantt,r=t.task.left,o=void 0;return o=n.firstProperty([t.section,t.options],"disableMagnet",t.$parent.pluginScope.disableMagnet)?t.section.from:e.getMagnetDate(t.section.from),!n.firstProperty([t.section,t.options],"disableDaily",t.$parent.pluginScope.disableDaily)&&e.options.value("daily")&&(o=(0,a.default)(o).startOf("day")),e.getPositionByDate(o)-r},s=function(){var e=n.firstProperty([t.section,t.options],"keepProportions",t.$parent.pluginScope.keepProportions);if(r&&e)return t.task.width;var i=t.task.rowsManager.gantt,o=t.task.left,s=n.firstProperty([t.section,t.options],"disableMagnet",t.$parent.pluginScope.disableMagnet),l=s?t.section.to:i.getMagnetDate(t.section.to);return!n.firstProperty([t.section,t.options],"disableDaily",t.$parent.pluginScope.disableDaily)&&i.options.value("daily")&&(l=(0,a.default)(l).startOf("day")),i.getPositionByDate(l)-o},l=function(e){return e/t.task.width*100},u=function(){var e=o(),i=s()-e;n.firstProperty([t.section,t.options],"keepProportions",t.$parent.pluginScope.keepProportions)?(t.sectionCss.left=l(e)+"%",t.sectionCss.width=l(i)+"%"):(t.sectionCss.left=e+"px",t.sectionCss.width=i+"px")};void 0===t.sectionCss&&(t.sectionCss={},u(),function(){t.section.color?t.sectionCss["background-color"]=t.section.color:t.sectionCss["background-color"]=void 0}());var d=function(a){if(a===t.task){var o=t.task.rowsManager.gantt,s=e[0].offsetLeft,l=n.firstProperty([t.section,t.options],"disableMagnet",t.$parent.pluginScope.disableMagnet),d=void 0;d=i?t.task.model.from:o.getDateByPosition(t.task.modelLeft+s,!l);var c=void 0;if(r)c=t.task.model.to;else{var f=s+e[0].offsetWidth;c=o.getDateByPosition(t.task.modelLeft+f,!l)}t.section.from=d,t.section.to=c,u()}},c=function(e){if(e.id===t.task.model.id){var n=t.section;void 0===n.from||a.default.isMoment(n.from)||(n.from=(0,a.default)(n.from)),void 0===n.to||a.default.isMoment(n.to)||(n.to=(0,a.default)(n.to))}};c(t.task.model),t.task.rowsManager.gantt.api.tasks.on.clean(t,c),t.task.rowsManager.gantt.api.tasks.on.change(t,d);var f=function(e){var n=e._movingTaskSections;n||(n={},e._movingTaskSections=n),n["$$index_"+t.index]={section:t.section,sectionCss:t.sectionCss,fromTask:i,toTask:r}};t.task.rowsManager.gantt.api.tasks.on.beforeViewRowChange(t,f),t.task.rowsManager.gantt.api.directives.raise.new("ganttTaskSection",t,e),t.$on("$destroy",function(){t.task.rowsManager.gantt.api.directives.raise.destroy("ganttTaskSection",t,e)})}]}}];var i=n(3),a=function(t){return t&&t.__esModule?t:{default:t}}(i);n(253)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["$templateCache",function(t){"ngInject";return{restrict:"E",requires:"^ganttTask",templateUrl:function(e,n){var i=void 0;return i=void 0===n.templateUrl?"plugins/sections/taskSections.tmpl.html":n.templateUrl,void 0!==n.template&&t.put(i,n.template),i},replace:!0,scope:!0,controller:["$scope","$element",function(t,e){t.task.rowsManager.gantt.api.directives.raise.new("ganttTaskSections",t,e),t.$on("$destroy",function(){t.task.rowsManager.gantt.api.directives.raise.destroy("ganttTaskSections",t,e)})}]}}],n(254)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=["ganttUtils","$compile",function(t,e){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?"},link:function(n,i,r,o){var s=o.gantt.api;if(n.options&&"object"===(0,a.default)(n.options.sortable))for(var l in n.options.sortable)n[l]=n.options.sortable[l];void 0===n.enabled&&(n.enabled=!0),s.directives.on.new(n,function(i,a,r){"ganttRowLabel"===i&&void 0===r.attr("drag")&&(a.checkDraggable=function(){var e=a.row.model.sortable;return"boolean"==typeof e&&(e={enabled:e}),t.firstProperty([e],"enabled",n.enabled)},a.onDropSuccess=function(){a.$evalAsync()},a.onDrop=function(t,e){var n=a.row.rowsManager.rowsMap[e.id];n!==a&&(a.row.rowsManager.moveRow(n,a.row),a.$evalAsync())},r.attr("ui-draggable","{{checkDraggable()}}"),r.attr("drag-channel","'sortable'"),r.attr("ui-on-drop","onDrop($event, $data)"),r.attr("on-drop-success","onDropSuccess()"),r.attr("drop-channel","'sortable'"),r.attr("drag","row.model"),e(r)(a))})}}}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder","ganttLayout",function(t,e){"ngInject";var n=new t("ganttSideContentTable","plugins/table/sideContentTable.tmpl.html");return n.controller=function(t){var n=e.getScrollBarHeight();t.getMaxHeightCss=function(){var e={},i=t.maxHeight;i||(i=t.gantt.getContainerHeight());var a=t.gantt.scroll.isHScrollbarVisible()?n:0;return e["max-height"]=i-a-t.gantt.header.getHeight()+"px",e}},n.build()}],n(255)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(5),r=i(a);e.default=["ganttUtils","$compile","$document",function(t,e,n){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?",columns:"=?",headers:"=?",classes:"=?",contents:"=?",headerContents:"=?",formatters:"=?",headerFormatter:"=?"},link:function(t,i,a,o){var l=o.gantt.api;if(t.options&&"object"===(0,r.default)(t.options.table))for(var u in t.options.table)t[u]=t.options.table[u];void 0===t.enabled&&(t.enabled=!0),void 0===t.columns&&(t.columns=["model.name"]),void 0===t.headers&&(t.headers={"model.name":"Name"}),void 0===t.contents&&(t.contents={}),void 0===t.headerContents&&(t.headerContents={}),void 0===t.classes&&(t.classes={}),void 0===t.formatters&&(t.formatters={}),l.directives.on.new(t,function(i,a,r){if("ganttSideContent"===i){var o=a.$new();o.pluginScope=t;var l=n[0].createElement("div");s.default.element(l).attr("data-ng-if","pluginScope.enabled"),s.default.element(l).addClass("side-element");var u=n[0].createElement("gantt-side-content-table");s.default.element(l).append(u),r.append(e(l)(o))}})}}}];var o=n(2),s=i(o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["$scope",function(t){"ngInject";t.getHeader=function(){var e=t.pluginScope.headers[t.column];return void 0!==e?e:(void 0!==t.pluginScope.headerFormatter&&(e=t.pluginScope.headerFormatter(t.column)),e)},t.getHeaderContent=function(){var e=t.pluginScope.headerContents[t.column];return void 0===e?"{{getHeader()}}":e},t.getClass=function(){return t.pluginScope.classes[t.column]}}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["$scope",function(t){"ngInject";t.getValue=function(){var e=t.$eval(t.column,t.row),n=t.pluginScope.formatters[t.column];return void 0!==n&&(e=n(e,t.column,t.row)),e},t.getRowContent=function(){var e=void 0;return t.row.model.columnContents&&(e=t.row.model.columnContents[t.column]),void 0===e&&"model.name"===t.column&&(e=t.row.model.content),void 0===e&&(e=t.pluginScope.contents[t.column]),void 0===e&&"model.name"===t.column&&(e=t.row.rowsManager.gantt.options.value("rowContent")),void 0===e&&void 0!==t.pluginScope.content&&(e=t.pluginScope.content),void 0===e?"{{getValue()}}":e}}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["$log","$timeout","$compile","$document","$templateCache","ganttDebounce","GanttSmartEvent",function(t,e,n,i,r,o,s){"ngInject";return{restrict:"E",templateUrl:function(t,e){var n=void 0;return n=void 0===e.templateUrl?"plugins/tooltips/tooltip.tmpl.html":e.templateUrl,void 0!==e.template&&r.put(n,e.template),n},scope:!0,replace:!0,controller:["$scope","$element","ganttUtils",function(t,n,r){var l=a.element(i[0].body),u=t.task.$element,d=void 0,c=!1,f=void 0,g=void 0,h=function(){var t=i[0];return t.documentElement.clientWidth||t.getElementById("body")[0].clientWidth},v=function(e){e+n[0].offsetWidth>h()?(n.css("left",e+20-n[0].offsetWidth+"px"),t.isRightAligned=!0):(n.css("left",e-20+"px"),t.isRightAligned=!1)},p=function(e){c=!0,g.bind(),t.displayed=!0,t.$evalAsync(function(){var i=void 0;n.hasClass("ng-hide")&&(n.removeClass("ng-hide"),i=!0),t.elementHeight=n[0].offsetHeight,i&&n.addClass("ng-hide"),t.taskRect=u[0].getBoundingClientRect(),v(e)})},m=function(){c=!1,g.unbind(),t.$evalAsync(function(){t.displayed=!1})},y=function(n,i){d&&e.cancel(d);var a=t.task.model.tooltips,o=t.task.row.model.tooltips;if("boolean"==typeof a&&(a={enabled:a}),"boolean"==typeof o&&(o={enabled:o}),r.firstProperty([a,o],"enabled",t.pluginScope.enabled)&&!c&&void 0!==f&&n){var s=r.firstProperty([a,o],"content",t.pluginScope.content);t.content=s,i?d=e(function(){p(f)},t.pluginScope.delay,!1):p(f)}else n||t.task.active||m()};g=new s(t,l,"mousemove",o(function(e){c?((!t.taskRect||e.clientX<t.taskRect.left||e.clientX>t.taskRect.right||e.clientY>t.taskRect.bottom||e.clientY<t.taskRect.top)&&y(!1,!1),v(e.clientX)):(f=e.clientX,y(!0,!1))},5,!1)),t.getFromLabel=function(){var e=t.task.model.tooltips,n=t.task.row.model.tooltips;"boolean"==typeof e&&(e={enabled:e}),"boolean"==typeof n&&(n={enabled:n});var i=r.firstProperty([e,n],"dateFormat",t.pluginScope.dateFormat);return t.task.model.from.format(i)},t.getToLabel=function(){var e=t.task.model.tooltips,n=t.task.row.model.tooltips;"boolean"==typeof e&&(e={enabled:e}),"boolean"==typeof n&&(n={enabled:n});var i=r.firstProperty([e,n],"dateFormat",t.pluginScope.dateFormat);return t.task.model.to.format(i)},t.task.getContentElement().bind("mousemove",function(t){f=t.clientX}),t.task.getContentElement().bind("mouseenter",function(t){f=t.clientX,y(!0,!0)}),t.task.getContentElement().bind("mouseleave",function(){y(!1)}),t.pluginScope.api.tasks.on.moveBegin&&(t.pluginScope.api.tasks.on.moveBegin(t,function(e){e===t.task&&y(!0)}),t.pluginScope.api.tasks.on.moveEnd(t,function(e){e===t.task&&y(!1)}),t.pluginScope.api.tasks.on.resizeBegin(t,function(e){e===t.task&&y(!0)}),t.pluginScope.api.tasks.on.resizeEnd(t,function(e){e===t.task&&y(!1)})),t.task.isMoving&&y(!0,!1),t.gantt.api.directives.raise.new("ganttTooltip",t,n),t.$on("$destroy",function(){t.gantt.api.directives.raise.destroy("ganttTooltip",t,n)})}]}}];var i=n(2),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(i);n(256)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(5),r=i(a);e.default=["$compile","$document",function(t,e){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?",dateFormat:"=?",content:"=?",delay:"=?"},link:function(n,i,a,o){var l=o.gantt.api;if(n.options&&"object"===(0,r.default)(n.options.tooltips))for(var u in n.options.tooltips)n[u]=n.options.tooltips[u];void 0===n.enabled&&(n.enabled=!0),void 0===n.dateFormat&&(n.dateFormat="MMM DD, HH:mm"),void 0===n.delay&&(n.delay=500),void 0===n.content&&(n.content="{{task.model.name}}</br><small>{{task.isMilestone() === true && getFromLabel() || getFromLabel() + ' - ' + getToLabel()}}</small>"),n.api=l,l.directives.on.new(n,function(i,r,o){if("ganttTask"===i){var l=r.$new();l.pluginScope=n;var u=e[0].createElement("div");s.default.element(u).attr("data-ng-if","pluginScope.enabled");var d=e[0].createElement("gantt-tooltip");void 0!==a.templateUrl&&s.default.element(d).attr("data-template-url",a.templateUrl),void 0!==a.template&&s.default.element(d).attr("data-template",a.template),s.default.element(u).append(d),o.append(t(u)(l))}})}}}];var o=n(2),s=i(o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";var e=new t("ganttRowTreeLabel");return e.restrict="A",e.templateUrl=void 0,e.build()}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";return new t("ganttSideContentTree","plugins/tree/sideContentTree.tmpl.html").build()}],n(257)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=["$scope","$filter","GanttHierarchy",function(t,e,n){"ngInject";t.rootRows=[],t.getHeader=function(){return t.pluginScope.header};var i=new n;t.pluginScope.$watchGroup(["keepAncestorOnFilterRow","enabled"],function(n){if(n[0]&&n[1]){var r=function(t,n,r){i.refresh(t);var o=[],s=!0,l=!1,u=void 0;try{for(var d,c=(0,a.default)(t);!(s=(d=c.next()).done);s=!0){var f=d.value,g=i.children(f);g&&0!==g.length||o.push(f)}}catch(t){l=!0,u=t}finally{try{!s&&c.return&&c.return()}finally{if(l)throw u}}var h=e("filter")(o,n,r),v=function(t){if(h.indexOf(t)>-1)return!0;var e=i.descendants(t),n=!0,r=!1,o=void 0;try{for(var s,l=(0,a.default)(e);!(n=(s=l.next()).done);n=!0){var u=s.value;if(h.indexOf(u)>-1)return!0}}catch(t){r=!0,o=t}finally{try{!n&&l.return&&l.return()}finally{if(r)throw o}}return!1};return e("filter")(t,v,r)};t.gantt.rowsManager.setFilterImpl(r)}else t.gantt.rowsManager.setFilterImpl(!1)});var r=function(e){for(var n=t.parent(e);void 0!==n;){if(void 0!==n&&n._collapsed)return!1;n=t.parent(n)}return!0},o=function(t){return t.filter(function(t){return r(t)})},s=function(e){var n=[],i=[],r=!0,o=!1,s=void 0;try{for(var l,u=(0,a.default)(e);!(r=(l=u.next()).done);r=!0){var d=l.value;void 0===t.parent(d)?i.push(d):!0}}catch(t){o=!0,s=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw s}}var c=!0,f=!1,g=void 0;try{for(var h,v=(0,a.default)(i);!(c=(h=v.next()).done);c=!0){var p=h.value;!function i(r){n.push(r);var o=t.children(r);if(void 0!==o&&o.length>0){var s=o.sort(function(t,n){return e.indexOf(t)-e.indexOf(n)}),l=!0,u=!1,d=void 0;try{for(var c,f=(0,a.default)(s);!(l=(c=f.next()).done);l=!0){i(c.value)}}catch(t){u=!0,d=t}finally{try{!l&&f.return&&f.return()}finally{if(u)throw d}}}}(p)}}catch(t){f=!0,g=t}finally{try{!c&&v.return&&v.return()}finally{if(f)throw g}}return n};t.gantt.api.rows.addRowSorter(s),t.gantt.api.rows.addRowFilter(o),t.$on("$destroy",function(){t.gantt.api.rows.removeRowSorter(s),t.gantt.api.rows.removeRowFilter(o)});var l=function(){t.rootRows=i.refresh(t.gantt.rowsManager.filteredRows),t.gantt.rowsManager.filteredRows.length>0&&(t.gantt.api.rows.sort(),t.gantt.api.rows.refresh())};t.gantt.api.rows.on.remove(t,l),t.gantt.api.rows.on.add(t,l);var u=function(e){var n=void 0;if(void 0!==(n="string"==typeof e?t.gantt.rowsManager.rowsMap[e]:e))return void 0!==n._collapsed&&n._collapsed},d=function(e){var n=void 0;if(void 0!==(n="string"==typeof e?t.gantt.rowsManager.rowsMap[e]:e)){var i=t.nodeScopes[n.model.id];i.collapsed&&i.toggle()}},c=function(e){var n=void 0;if(void 0!==(n="string"==typeof e?t.gantt.rowsManager.rowsMap[e]:e)){var i=t.nodeScopes[n.model.id];i.collapsed||i.toggle()}},f=function(){return i};t.getHeaderContent=function(){return t.pluginScope.headerContent},t.gantt.api.registerMethod("tree","refresh",l,this),t.gantt.api.registerMethod("tree","isCollapsed",u,this),t.gantt.api.registerMethod("tree","expand",d,this),t.gantt.api.registerMethod("tree","collapse",c,this),t.gantt.api.registerEvent("tree","collapsed"),t.gantt.api.registerMethod("tree","getHierarchy",f,this),t.$watchCollection("gantt.rowsManager.filteredRows",function(){l()}),t.children=function(e){return void 0===e?t.rootRows:i.children(e)},t.parent=function(t){return i.parent(t)},t.nodeScopes={}}]},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(5),r=i(a);e.default=["ganttUtils","$compile","$document",function(t,e,n){"ngInject";return{restrict:"E",require:"^gantt",scope:{enabled:"=?",header:"=?",content:"=?",headerContent:"=?",keepAncestorOnFilterRow:"=?"},link:function(t,i,a,o){var l=o.gantt.api;if(t.options&&"object"===(0,r.default)(t.options.tree))for(var u in t.options.tree)t[u]=t.options.tree[u];void 0===t.enabled&&(t.enabled=!0),void 0===t.header&&(t.header="Name"),void 0===t.headerContent&&(t.headerContent="{{getHeader()}}"),void 0===t.keepAncestorOnFilterRow&&(t.keepAncestorOnFilterRow=!1),l.directives.on.new(t,function(i,a,r){if("ganttSideContent"===i){var o=a.$new();o.pluginScope=t;var l=n[0].createElement("div");s.default.element(l).attr("data-ng-if","pluginScope.enabled"),s.default.element(l).addClass("side-element");var u=n[0].createElement("gantt-side-content-tree");s.default.element(l).append(u),r.append(e(l)(o))}})}}}];var o=n(2),s=i(o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder","ganttLayout",function(t,e){"ngInject";var n=new t("ganttTreeBody","plugins/tree/treeBody.tmpl.html");return n.controller=function(t){var n=e.getScrollBarHeight();t.getLabelsCss=function(){var e={},i=t.maxHeight;i||(i=t.gantt.getContainerHeight());var a=t.gantt.scroll.isHScrollbarVisible()?n:0;return e["max-height"]=i-a-t.gantt.header.getHeight()+"px",e}},n.build()}],n(258),n(259)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["GanttDirectiveBuilder",function(t){"ngInject";return new t("ganttTreeHeader","plugins/tree/treeHeader.tmpl.html").build()}],n(260)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),a=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=["$scope",function(t){"ngInject";t.$parent.nodeScopes[t.row.model.id]=t,t.$on("$destroy",function(){delete t.$parent.nodeScopes[t.row.model.id]}),t.$watch("children(row)",function(e){if(e){var n=t.row.rowsManager.filteredRows,i=[],r=!0,o=!1,s=void 0;try{for(var l,u=(0,a.default)(e);!(r=(l=u.next()).done);r=!0){var d=l.value;n.indexOf(d)>-1&&i.push(d)}}catch(t){o=!0,s=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw s}}t.$parent.childrenRows=i}else t.$parent.childrenRows=e}),t.isCollapseDisabled=function(){return!t.$parent.childrenRows||0===t.$parent.childrenRows.length},t.getValue=function(){return t.row.model.name},t.getRowContent=function(){if(void 0!==t.row.model.content)return t.row.model.content;if(void 0!==t.pluginScope.content)return t.pluginScope.content;var e=t.row.rowsManager.gantt.options.value("rowContent");return void 0===e&&(e="{{row.model.name}}"),e},t.$watch("collapsed",function(e){if(t.$modelValue._collapsed!==e){var n=t.$modelValue._collapsed;t.$modelValue._collapsed=e,void 0!==n&&e!==n&&(t.gantt.api.tree.raise.collapsed(t,t.$modelValue,e),t.gantt.api.rows.refresh())}})}]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["$scope",function(t){"ngInject";var e=function(){t.$broadcast("angular-ui-tree:collapse-all")},n=function(){t.$broadcast("angular-ui-tree:expand-all")};t.gantt.api.registerMethod("tree","collapseAll",e,t),t.gantt.api.registerMethod("tree","expandAll",n,t)}]},function(t,e){var n="plugins/bounds/taskBounds.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,"<div ng-cloak class=gantt-task-bounds ng-style=getCss() ng-class=getClass()></div> ")}]),t.exports=n},function(t,e){var n="plugins/corner/corner.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,'<div class=gantt-corner-area-content> <div ng-show=$parent.ganttHeaderHeight class=gantt-header-row ng-repeat="header in headers"> <div class=gantt-column-header><span class=gantt-label-text gantt-bind-compile-html=getLabelContent(header)></span></div> </div> </div> ')}]),t.exports=n},function(t,e){var n="plugins/groups/taskGroup.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,'<div ng-controller=GanttGroupController> <div class=gantt-task-group-overview ng-if="taskGroup.overviewTasks.length > 0"> <gantt-task-overview ng-repeat="task in taskGroup.overviewTasks"></gantt-task-overview> </div> <div class=gantt-task-group-promote ng-if="taskGroup.row._collapsed && taskGroup.promotedTasks.length > 0"> <gantt-task ng-repeat="task in taskGroup.promotedTasks"></gantt-task> </div> <div class=gantt-task-group ng-if=taskGroup.showGrouping ng-style="{\'left\': taskGroup.left + \'px\', \'width\': taskGroup.width + \'px\'}"> <div class=gantt-task-group-left-main></div> <div class=gantt-task-group-right-main></div> <div class=gantt-task-group-left-symbol></div> <div class=gantt-task-group-right-symbol></div> </div> </div> ')}]),t.exports=n},function(t,e){var n="plugins/groups/taskOverview.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,'<div class="gantt-task gantt-task-overview" ng-class=task.model.classes> <gantt-task-background></gantt-task-background> <gantt-task-content></gantt-task-content> <gantt-task-foreground></gantt-task-foreground> </div> ')}]),t.exports=n},function(t,e){var n="plugins/labels/labelsBody.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,'<div class=gantt-labels-body ng-style=getLabelsCss()> <div gantt-vertical-scroll-receiver> <div ng-repeat="row in gantt.rowsManager.visibleRows track by row.model.id"> <div gantt-row-label class="gantt-row-label gantt-row-height" ng-class=row.model.classes ng-style="{\'height\': row.model.height}"> <span class=gantt-label-text>{{row.model.name}}</span> </div> </div> </div> </div> ')}]),t.exports=n},function(t,e){var n="plugins/labels/labelsHeader.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,'<div class=gantt-labels-header> <div ng-show="gantt.columnsManager.columns.length > 0 && gantt.columnsManager.headers.length > 0"> <div ng-repeat="header in gantt.columnsManager.headers"> <div class=gantt-row-height ng-class="{\'gantt-labels-header-row\': $last, \'gantt-labels-header-row-last\': $last}"><span>{{$last ? pluginScope.header : ""}}</span></div> </div> </div> </div> ')}]),t.exports=n},function(t,e){var n="plugins/labels/sideContentLabels.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,"<div class=gantt-side-content-labels> <gantt-labels-header> </gantt-labels-header> <gantt-labels-body> </gantt-labels-body> </div> ")}]),t.exports=n},function(t,e){var n="plugins/progress/taskProgress.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,"<div ng-cloak class=gantt-task-progress ng-style=getCss() ng-class=getClasses()></div> ")}]),t.exports=n},function(t,e){var n="plugins/sections/taskSection.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,"<div ng-style=sectionCss ng-class=section.classes class=gantt-task-section></div> ")}]),t.exports=n},function(t,e){var n="plugins/sections/taskSections.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,'<div ng-cloak class=gantt-task-sections> <gantt-task-section section=section task=task options=task.model.sections index=$index ng-repeat="section in task.model.sections.items track by $index"> </gantt-task-section> </div> ')}]),t.exports=n},function(t,e){var n="plugins/table/sideContentTable.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,'<div class=gantt-side-content-table> <div class="gantt-table-column {{getClass()}}" ng-repeat="column in pluginScope.columns" ng-controller=TableColumnController> <div class=gantt-table-header ng-style="{height: ganttHeaderHeight + \'px\'}"> <div ng-show=ganttHeaderHeight class="gantt-row-label-header gantt-row-label gantt-table-row gantt-table-header-row"> <span class=gantt-label-text gantt-bind-compile-html=getHeaderContent() /> </div> </div> <div class=gantt-table-content ng-style=getMaxHeightCss()> <div gantt-vertical-scroll-receiver> <div class=gantt-table-row ng-repeat="row in gantt.rowsManager.visibleRows track by row.model.id" ng-controller=TableColumnRowController> <div gantt-row-label class="gantt-row-label gantt-row-height" ng-class=row.model.classes ng-style="{\'height\': row.model.height}"> <div class=gantt-valign-container> <div class=gantt-valign-content> <span class=gantt-label-text gantt-bind-compile-html=getRowContent()></span> </div> </div> </div> </div> </div> </div> </div> </div> ')}]),t.exports=n},function(t,e){var n="plugins/tooltips/tooltip.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,"<div ng-cloak class=gantt-task-info ng-show=displayed ng-class=\"isRightAligned ? 'gantt-task-infoArrowR' : 'gantt-task-infoArrow'\" ng-style=\"{top: taskRect.top + 'px', marginTop: -elementHeight - 8 + 'px'}\"> <div class=gantt-task-info-content> <div gantt-bind-compile-html=content></div> </div> </div> ")}]),t.exports=n},function(t,e){var n="plugins/tree/sideContentTree.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,"<div class=gantt-side-content-tree ng-controller=GanttTreeController> <gantt-tree-header> </gantt-tree-header> <gantt-tree-body> </gantt-tree-body> </div> ")}]),t.exports=n},function(t,e){var n="plugins/tree/treeBody.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,'<div class=gantt-tree-body ng-style=getLabelsCss()> <div gantt-vertical-scroll-receiver> <div class=gantt-row-label-background> <div class="gantt-row-label gantt-row-height" ng-class=row.model.classes ng-style="{\'height\': row.model.height}" ng-repeat="row in gantt.rowsManager.visibleRows track by row.model.id"> </div> </div> <div ui-tree ng-controller=GanttUiTreeController data-drag-enabled=false data-empty-place-holder-enabled=false> <ol class=gantt-tree-root ui-tree-nodes ng-model=rootRows> <li ng-repeat="row in rootRows" ui-tree-node ng-include="\'plugins/tree/treeBodyChildren.tmpl.html\'"> </li> </ol> </div> </div> </div> ')}]),t.exports=n},function(t,e){var n="plugins/tree/treeBodyChildren.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,'<div ng-controller=GanttTreeNodeController class="gantt-row-label gantt-row-height" ng-class=row.model.classes ng-style="{\'height\': row.model.height}"> <div class=gantt-valign-container> <div class=gantt-valign-content> <a ng-disabled=isCollapseDisabled() data-nodrag class="gantt-tree-handle-button btn btn-xs" ng-class="{\'gantt-tree-collapsed\': collapsed, \'gantt-tree-expanded\': !collapsed}" ng-click="!isCollapseDisabled() && toggle()"><span class="gantt-tree-handle glyphicon glyphicon-chevron-down" ng-class="{\n \'glyphicon-chevron-right\': collapsed, \'glyphicon-chevron-down\': !collapsed,\n \'gantt-tree-collapsed\': collapsed, \'gantt-tree-expanded\': !collapsed}"></span> </a> <span gantt-row-label class=gantt-label-text gantt-bind-compile-html=getRowContent() /> </div> </div> </div> <ol ui-tree-nodes ng-class="{hidden: collapsed}" ng-model=childrenRows> <li ng-repeat="row in childrenRows" ui-tree-node> <div ng-include="\'plugins/tree/treeBodyChildren.tmpl.html\'"></div> </li> </ol> ')}]),t.exports=n},function(t,e){var n="plugins/tree/treeHeader.tmpl.html";window.angular.module("ng").run(["$templateCache",function(t){t.put(n,'<div class=gantt-tree-header ng-style="{height: $parent.ganttHeaderHeight + \'px\'}"> <div ng-if=$parent.ganttHeaderHeight class="gantt-row-label gantt-row-label-header gantt-tree-row gantt-tree-header-row"><span class=gantt-label-text gantt-bind-compile-html=getHeaderContent() /></div> </div> ')}]),t.exports=n},function(t,e){t.exports=n},function(t,e){t.exports=i},function(t,e){t.exports=a},function(t,e){t.exports=r},function(t,e){t.exports=o},function(t,e,n){n(6),t.exports=n(175)}])});
|
|
//# sourceMappingURL=angular-gantt.min.js.map
|