(window.webpackJsonp=window.webpackJsonp||[]).push([[100],{zR8U:function(t,e,n){"use strict";n.r(e),n.d(e,"HavocViewModule",(function(){return d}));var o=n("ofXK"),i=n("4ZMo"),r=n("fXoL");function s(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"div",2),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit;r["\u0275\u0275property"]("ngStyle",t.style),r["\u0275\u0275attribute"]("id",t.id),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",t.name," ")}}let a=(()=>{class t{constructor(){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"}]}ngOnInit(){}ngAfterViewInit(){this.initializeJsPlumb()}initializeJsPlumb(){this.container=document.getElementById("bpDig"),this.jsPlumbInstance=i.jsPlumb.getInstance({DragOptions:{cursor:"pointer",zIndex:2e3},ConnectionOverlays:[["Arrow",{location:1}],["Label",{location:.1}]],Container:this.container}),this.jsPlumbInstance.draggable(this.nodes.map(t=>t.id),{containment:"parent"}),this.nodes.forEach(t=>{}),this.connections.forEach(t=>{this.jsPlumbInstance.connect({source:t.source,target:t.target})})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,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(t,e){1&t&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275template"](1,s,2,3,"div",1),r["\u0275\u0275elementEnd"]()),2&t&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",e.nodes))},directives:[o.s,o.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}"]}),t})();var c=n("tyNb");const l=[{path:"",component:a}];let d=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[o.c,c.m.forChild(l)]]}),t})()}}]);