function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(window.webpackJsonp=window.webpackJsonp||[]).push([[100],{zR8U:function(e,t,n){"use strict";n.r(t),n.d(t,"HavocViewModule",(function(){return d}));var i=n("ofXK"),r=n("4ZMo"),o=n("fXoL");function a(e,t){if(1&e&&(o["\u0275\u0275elementStart"](0,"div",2),o["\u0275\u0275text"](1),o["\u0275\u0275elementEnd"]()),2&e){var n=t.$implicit;o["\u0275\u0275property"]("ngStyle",n.style),o["\u0275\u0275attribute"]("id",n.id),o["\u0275\u0275advance"](1),o["\u0275\u0275textInterpolate1"](" ",n.name," ")}}var s,c,l=((s=function(){return _createClass((function e(){_classCallCheck(this,e),this.nodes=[{id:"start",name:"Start",style:{top:"50px",left:"50px"}},{id:"h1",name:"CPU Burst",style:{top:"50px",left:"200px"}},{id:"h2",name:"Disk Swindle",style:{top:"150px",left:"200px"}},{id:"h3",name:"Memory Outlay",style:{top:"50px",left:"400px"}},{id:"h4",name:"Disk Swindle",style:{top:"50px",left:"600px"}},{id:"h5",name:"CPU Burst",style:{top:"50px",left:"800px"}}],this.connections=[{source:"start",target:"h1"},{source:"h1",target:"h3"},{source:"h3",target:"h4"},{source:"h4",target:"h5"},{source:"start",target:"h2"}]}),[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){this.initializeJsPlumb()}},{key:"initializeJsPlumb",value:function(){var e=this;this.container=document.getElementById("bpDig"),this.jsPlumbInstance=r.jsPlumb.getInstance({DragOptions:{cursor:"pointer",zIndex:2e3},ConnectionOverlays:[["Arrow",{location:1}],["Label",{location:.1}]],Container:this.container}),this.jsPlumbInstance.draggable(this.nodes.map((function(e){return e.id})),{containment:"parent"}),this.nodes.forEach((function(e){})),this.connections.forEach((function(t){e.jsPlumbInstance.connect({source:t.source,target:t.target})}))}}])}()).\u0275fac=function(e){return new(e||s)},s.\u0275cmp=o["\u0275\u0275defineComponent"]({type:s,selectors:[["app-havoc-view"]],decls:2,vars:1,consts:[["id","diagram-container",2,"position","relative","width","100%","height","600px","border","1px solid black"],["class","node",3,"ngStyle",4,"ngFor","ngForOf"],[1,"node",3,"ngStyle"]],template:function(e,t){1&e&&(o["\u0275\u0275elementStart"](0,"div",0),o["\u0275\u0275template"](1,a,2,3,"div",1),o["\u0275\u0275elementEnd"]()),2&e&&(o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngForOf",t.nodes))},directives:[i.s,i.w],styles:[".node[_ngcontent-%COMP%]{position:absolute;width:100px;height:50px;text-align:center;line-height:50px;border:1px solid grey;border-radius:5px;background-color:#add8e6}"]}),s),p=n("tyNb"),u=[{path:"",component:l}],d=((c=_createClass((function e(){_classCallCheck(this,e)}))).\u0275mod=o["\u0275\u0275defineNgModule"]({type:c}),c.\u0275inj=o["\u0275\u0275defineInjector"]({factory:function(e){return new(e||c)},imports:[[i.c,p.m.forChild(u)]]}),c)}}]);