You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
424 KiB
2 lines
424 KiB
(function(t){function e(e){for(var s,n,r=e[0],l=e[1],c=e[2],u=0,p=[];u<r.length;u++)n=r[u],Object.prototype.hasOwnProperty.call(i,n)&&i[n]&&p.push(i[n][0]),i[n]=0;for(s in l)Object.prototype.hasOwnProperty.call(l,s)&&(t[s]=l[s]);d&&d(e);while(p.length)p.shift()();return o.push.apply(o,c||[]),a()}function a(){for(var t,e=0;e<o.length;e++){for(var a=o[e],s=!0,r=1;r<a.length;r++){var l=a[r];0!==i[l]&&(s=!1)}s&&(o.splice(e--,1),t=n(n.s=a[0]))}return t}var s={},i={app:0},o=[];function n(e){if(s[e])return s[e].exports;var a=s[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=s,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(a,s,function(e){return t[e]}.bind(null,s));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],l=r.push.bind(r);r.push=e,r=r.slice();for(var c=0;c<r.length;c++)e(r[c]);var d=l;o.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("56d7")},"034f":function(t,e,a){"use strict";a("85ec")},"0390":function(t,e,a){"use strict";a("b721")},"04d6":function(t,e,a){t.exports=a.p+"img/dockernetwork.f3bb6fa3.png"},"08ea":function(t,e,a){},"0a08":function(t,e,a){},"0b43":function(t,e,a){"use strict";a("778e")},"0d35":function(t,e,a){},"0e9a":function(t,e,a){"use strict";a("c385")},"0ed5":function(t,e,a){t.exports=a.p+"img/docker.7b56657d.png"},"10cc":function(t,e,a){t.exports=a.p+"img/penguinfledgling2.d4cb3ed7.png"},"1f3a":function(t,e,a){"use strict";a("9168")},"2bb5":function(t,e,a){},"2e15":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAATWSURBVHhe7Z0tsNw2FIUfKwwMDCwMLAwsDAwsLAzJTGFYYWBhYGBgYGFRJrAwExTYKSpt79mMMhv1eG1p5bv28/fNHOK1Ze31saQr/90BAAAAAAAAAAAAAAAAAAAAAAAAAAAAwH3nu9DT0MvQu9DvaFJvQ4qT4rV7dOB/Df0T+hc166+Q4qc47o4fQn+G3B9DbVIcFc9dUM5690dQv9SK/hLaPL+F3B9AY6TxwWZ5EnKVLtIgR3/gWUjrom/1U0jxUZxc/CS1BJvsDh6EPoZcpXfVh22EH0OfQ1Px3NzA8HXIVVbLdzmK3QA6qZQ2u7hqnLUZHoZcJTfp1J2h2LqWQF3BFmIrk576rrqCEs3+GDRmcvHV8lsh8ykr0VzFafaqrtybEIzjj1AdY2Vct+Dn0HmrZEetahVgHDrb6hhrfJCJpqfd5J4d/SutgXEo+HWMdeJloGPpWqAia4DvQzAOHYQ6xmsbQMfQde+1rAEehWAcmQZQ5jGV1jthgAQyDKCUrufqLQZIYE0DnKd09T6WCAMksJYBlK1NTTmfS63C1FVeDJDAaANMpXROGg9oXCDc7xgggVEGUDnari7LSRlAnc259TBAAtcaYGlKJ6lc7c/h1scACfQaQE330pt01CXM3YzqtsMACbQaoCWl0yBw6dS92x4DJLDUAErpnoeWpHRaR+lfy2VlVw4GSGCJAVpTutO1/EZceRgggUsGUL/9IVT/7nSe0vXgysQACTgDvA/JBPVyJ5fS9eDKxgAJOAMskQyibUfh9oEBEmg1wJKUrge3LwyQwItQHWOnlpSuB7dPDJDA1IWYop6Urge3bwyQwJQBrknpenB1wAAJOAPo4F+T0vVQ10HCAAk4A5zuyU+mroOEARLAAAcHAxwcDHBwMMDBwQAHBwMcHAxwcDDAwcEABwcDHBwMcHAwwMHBAAcHAxwcDHBwnAH+DmVT10HCAAk4A0i67TvzhZyuDhgggSkDFI168GMOt28MkMCcAYr0KPia9wm6fWKABFoeDFnzTmG3PwyQQM+jYcoS9Kj4yGcF3H4wQALOAJ9Co18AMYcrHwMk4AygDKDlFTB6hPza5wVduRgggSkDFFpfAtWbOrryMEACcwYoaD0tr9d16kkdXTkYIIGlBii0vAiyJXV022OABFoNUBj93iC3LQZIoNcAouVl0HOpo9sGAyRwjQEKI94d6NbFAAmMMEBB/f3SD0LUqaNbBwMkMNIAhZ7U0f2GARJYwwAFlX3po1BzwgAJrGmAQkvqeC4MkECGAQr1hyHnhAESyDSAaEkdrQH4bvBY9Dn5OsZrGqCg1PFV6FLqaAcQa7yl8sioWa5jnGGAwqXU8VSReqEmHGAc+hh3HWMdkGweh+rU8e5ltUDSICLr5YX3HY2nXBOsPvpWnKeOJ1fUlZNu4dD7iGthpS0MtL929VMfLHgWgn50YcbFNbP/X4RG/VMjRbUEdAdtKF5Tgy7FOeMZgGbcWKBIYwKNZNe8Z/0+oGZdZ/2liZhb9v0X0eTB0m/XoD5trumvUdPUM5+M5qW47mKGVS3BVP+F+qR5lam7dDaLpi9bLiqg/0tn/a6n1TWa1a1FmslacisS+hInxUsp9O7OegAAAAAAAAAAAAAAAAAAAAAAAAAAAADYEXd3/wFf5K8vCdtHPAAAAABJRU5ErkJggg=="},3606:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAABy1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADb+RESAAAAmHRSTlMAAQIDBAUGBwgKCwwODxESExUXGBkaGx4fICQlKCkqLC0uLzAyNDY4Ojs8P0BBQkNFR0lLTU5RUlVWV1hZXF1eX2BhYmNoaW1vc3R2eXp8fX5/gISFiouPkZWWl5ucoKKmqKytr7Gys7a3uLm6vL2+v8DBw8TFx8jKzM7P0NTV1tfY2dvf4OXm5+nr7e/y9fb3+Pn6+/z9/midA9kAAAPJSURBVHja7Zv5V01RFMf360WklCdjCJlV5lmTyJgImTKmjMlMMhOipOK9/ef6wTune5977zlnn81Zy7rfH+/a+34+bzr1vqsA4sSJEydOnDhx4vw3KWhsLk845CduIOJAx/ZiVwKL8HeGVjoSOJQVwDuOBHqFQK8bftEPIXDEjcA2wcelbgQuCP5HNx/FxCch0OHmCaiUr8BWNwItgj9e5EbgkRC464ZfkhYCB/lvnq9xuu+Sb4GFvuvFSXt+zSBeK1QNXRL8D94P4bRu/LzWlr9uBBHvKQzyvgiBs17+A0T8VsXAVxqskK/Aphy+rUGWj3g/0qBN8Een5vLtDCQf8VbUCftMTN2cOBp75CrdwMNHXBA+l5JD++W1JZ5VqoGPny4LH6yXU/PltTkZawMfH1siJq+IoXeei0fR0sDPb4s6qYbE1OnAdybNQJ8Pa+TYegg1GKn6a3w4KR9mAXAZmPChX8x1hZ4PpgZG/NlycB8wGRjxYa+cnAs8Bn7+cdV4p5h8GXlK6xsY8icPi9FTwGJgyIdqOVsFHAamfGgXs8OTQMegmpkPr8TwVfVPa7WBOX+enG4CewNzPjTL8VlgbeDnH9P6zF4X488BbA0o/Cly5wTYGlD4sEEurAJLAxIfzoiFr8qvIAoDGh/ei43L6lm/QQ0Lv1yu1IKVAZEPB8RKZgbYGPj5rfq/ONwWO0/15kMMyPzCMdMnLdCAzIfNcms50A3ofDgvtgbzgGxgwU8MiLWLBlu5BnS+7KcRdwDZAOj8iX46PR3IBl6BTmo//dBwsStEINPwb/rpJu83Z0iTDaj9tI+fhtoM1YDYT/v5tUA2IPbTf/DJBrR+OoBPNSD104F8ogGlnw7hkwwo/XQon2IQ1k/T+ASD4H6azAeoMzMI7qct+KYGgf20Fd/QIKiftuSbGQT001HZo8M3MQjqp+35BgZB/TQDX98gsJ9m4OsahPTTDHyAeh2D1SH9NANfzyC0n2bgaxnIfrpbdbNGc76GQVQ/zcBXG0T20wx8pUF0P83AVxio+mkGfrSBsp9m4EcaqPtpBj5Ag8+gzqyfzlmn8HNuMVpq1k+nxq35OQYVZv30Mga+z6AvadZP579g4HsMXqdM++mZbxj40sDD1+6nswZ2/KyBl6/fT5e9ZeAD1I1iX4rWT5f14/fdYJ3SiiS1n04uLgH2GPbT/DHtp7lj3k8zh9BP8+YcoZ/mDK2fZsxEP73TjQC1n2ZLD7Wf5soTx38/DVt+ZgUqHQlA+eGeMUR87PJfGQo3trcWQ5w4ceLE4covD6NT8cdAqtUAAAAASUVORK5CYII="},3784:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAURSURBVHhe7ZgtsBRHFEafQyKRSCQSiYxEIpFIJDIOiYyMRCKRkUgkMhKJxCb3UNVVt296l519O5vp2fNVnaoVs9N/p//mzhhjjDHGGGMW51nwPPEm+P0AL4L8LJiNhwFm4BjAP4O/gq/BPyvwI+D9lEN5CPI4mDkPA9rxOsiT4VNAWzNfglG/ZP4O8n8+Bu2dTL42sSh3UR4E/PFt8CFYa5DP5XNAvWgoQi5u4Mp5GvwWUL82URB61JZr0oR5H1C3/8jBgPPA6M9bByloFKvUtUOZ74JTZu0WQQxWj58/Rg/MxveAFeJV8Ci4dHgn76YMyhrVYUZ2I0CFmcnqdp+tgmV95ll+CrsVoME+zJ78JDg17OUc0kbv2xu7FyDDWedlMAqHYJb4rR1+12axABy86EiWRg5g7WRZoUNz6veCdmLO8N5rCEkZbXsAyv4WjJ5dg3bdrbST+jHq9fG+N42jHc7e1+6W1752USYzkkbT0DXEoPPWuKq1AWawqD+y0Z41byvtGg/tYxxb36/67egDvGBLoZF8A/gjWEOIc6Eu3A742LPkrHGNIMKozo2pBKjhKyGdzn12jZl8CM4J9A0r1Na/VO5agBrOFawOa9zTGXSW1jW+MayZmxKghfMKK8N9T/SIhFBbW9aX5CYFyGFVYH8ete8Q3AjouGsffNfIzQvQwl7N1fXY9sA5gmW+XmFnjgKUcD0btRXoi71FAUoUoEcBEgpQUID5owAlCtCjAAkFKCjA/FGAEgXoUYCEAhQUYP4oQIkC9ChAQgEKCjB/FKBEAXoUIKEABQWYPwpQogA9CpBQgIICzB8FKFGAHgVIKEBBAeaPApQoQI8CJBSgoADzRwFKFKBHARIKUFCA+aMAJQrQowAJBSgowPxRgBIF6FGAhAIUFGD+KECJAvQoQEIBCgowfxSgRAF6FCChAAUFmD8KUKIAPQqQUICCAswfBShRgB4FSChAQQHmjwKUKECPAiQUoKAA80cBShSgRwESClBQgPmjACUK0KMACQUoKMD8UYASBehRgIQCFBRg/ihAiQL0KEBCAQoKMH8UoEQBehQgoQAFBZg/ClCiAD0KkFCAggLMHwUoUYAeBUgoQEEB5o8ClChAjwIkFKCgAPNHAUoUoEcBEgpQUID5owAlCtCjAAkFKCjA/FGAEgXoUYCEAhSOCfAgeJ54GVDYKeT/NR4F14gC9BwV4FPA4LwJ3gV03udg9Oyl4P0fAyqOVJSPbJfKtQV4GNCGNkGYVNSh8j0Y1WkEfZT/+yFok6v12eOA3EuALUEH0VgaRAPPDe8YvR/uI8DTIE+UL8GojK0xjQCVHwEr1NuAzj81lxKgDTir1ZLZuzWmFaDCIDAYr4JjW8a5AnBG2cOAV3YjQIbVgb12tFUsEQCR2FNZaUbP74FdCpChfZwb2qHoFAGeBQi0p5l+iN0LkGHwj7WXleOW+gMWN5hOhHbteBGw1MIphzFmV3u+8TrgXeyvvJuBGJW9F74GtLNdd5dSr5KjMk7loAC8+H3AoYpBuuRd/NQgC4JxtVr7+8MlQWD6j3q3/qMta4eDaptUTRbqcazvfgpw7pXq/wiNo57Udwt7NHWgLnQ2srazxhaDhO2DFGJ8CzY/4L8K9WeluubezRJOmchoNpQ1ZWAZ5TvAk8BMELaJ0UCeA0ummSwcvkaDeQ4KMGEU4MajADceBbjxKMCNhyshA3cJvO8bY4wxxpi95O7uX6RC0MISi/00AAAAAElFTkSuQmCC"},"3fc0":function(t,e,a){"use strict";a("b68d")},4341:function(t,e,a){},4788:function(t,e,a){"use strict";a("2bb5")},"47a8":function(t,e,a){"use strict";a("ec01")},4844:function(t,e,a){"use strict";a("4341")},"4c32":function(t,e,a){},"4cc0":function(t,e,a){t.exports=a.p+"img/penguin21a.a2b45b3f.png"},"4cf0":function(t,e,a){"use strict";a("5dec")},"4eb0":function(t,e,a){"use strict";a("c972")},"546d":function(t,e,a){"use strict";a("6d9e")},"55b7":function(t,e,a){"use strict";a("c000")},"56d7":function(t,e,a){"use strict";a.r(e);var s=a("2b0e"),i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"container-fluid",attrs:{id:"app"}},[!0===t.warning?s("div",[s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-3 order-first "},[s("br")]),s("div",{staticClass:"col-8 order-last"},[s("br"),s("h2",[t._v(" Welcome to Swarmlab-hybrid! ")]),s("br"),t._v(" You are now "),s("b",[t._v("connected to the local Swarmlab client.")]),s("br"),t._v(" That means that "),s("b",[t._v("at the moment you are offline")]),t._v(" and can only "),s("b",[t._v("work locally on your PC.")]),s("br"),s("br"),t._v(" To "),s("u",[t._v("connect to the server")]),t._v(" and built on-demand network environments "),s("i",[t._v('visit the "https://git.swarmlab.io:3000/swarmlab/venus-client" and install "Venus".')]),s("br"),s("br"),s("b",[t._v("DISCLAMER:")]),s("br"),t._v(" When connecting to the server "),s("b",[t._v("your host is becoming part of a network")]),t._v(" of multiple other computers that are also connected. "),s("br"),t._v(" This means that communication between those hosts is unlimited. "),s("br"),s("br"),t._v(" Since docker is a contained virtual environment this is "),s("b",[t._v("VERY SAFE")]),s("br"),s("br"),s("b",[t._v("BUT")]),s("br"),t._v(" to be absolutely secure, like when connecting to any network: "),s("br"),s("ul",[s("li",[t._v(" please make sure "),s("b",[t._v("your passwords are strong")]),t._v(" (and obviously "),s("b",[t._v("change all defaults")]),t._v(" like the ones provided for the downloadable docker images or our labs, since they are publicly available) ")]),s("li",[t._v(" don't connect to hosts you don't trust (e.g. when using the hybrid only trust relliable sources) ")]),s("li",[t._v(" be aware that you are in a public network (like an airport e.g.) and act accordingly ")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-5 order-first "},[s("b",[t._v("You can always check your connection status at the top right")])]),s("div",{staticClass:"col-7 order-last"},[s("img",{attrs:{src:a("a2af"),alt:"..."}})])]),s("br"),s("br"),s("h4",{staticClass:"text-warning"},[t._v(" Please make sure all users on your system have a strong password! ")]),s("h5",{staticClass:"text-info"},[s("span",{staticClass:"text-dark"},[t._v("Advice:")]),t._v(" If at all unsure (e.g. "),s("span",{staticClass:"text-primary"},[t._v("if your machine has personal data on it")]),t._v(") you can ofcourse use our image and launch a virtual machine to be absolutely isolated. ")]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-3 order-first "},[s("br")]),s("div",{staticClass:"col-8 order-last"},[s("div",{staticClass:"input-group"},[s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-danger",attrs:{round:"",type:"button"},on:{click:t.setWarning}},[t._v(" Yes I understad and will be careful")])])])])])])])])],1):s("div",[s("nav",{staticClass:"navbar navbar-light navbar-expand-md bg-light justify-content-md-center justify-content-start"},[s("b-navbar-brand",{staticClass:"logo simple-text ti-swarmlab text-secondary"},[t._v(" Swarmlab.io ")]),s("div",{staticClass:"navbar-collapse collapse justify-content-between align-items-center w-100",attrs:{id:"collapsingNavbar2"}},[s("ul",{staticClass:"navbar-nav mx-auto text-md-center text-left"},[s("b-nav-item",{attrs:{href:"http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs",target:"_swarmlabgit"}},[t._v(" Docs ")]),t._m(0),t._m(1),t._m(2),s("b-nav-item",{attrs:{href:"https://vimeo.com/showcase/9022099",target:"_vimeo"}},[t._v(" Follow_us_on_Vimeo ")])],1),s("ul",{staticClass:"nav navbar-nav flex-row justify-content-md-center justify-content-start flex-nowrap"},[s("b-nav-item",{on:{click:function(e){return t.onAction("check")}}},[t._v("Check Connection Status:")]),s("b-nav-item",[t._v("Agent")]),"close"===t.issocket?s("li",{staticClass:"nav-item"},[s("a",{staticClass:"ti-link nav-link text-danger",attrs:{href:"#",title:"You are disconnected from hybrid_agent"}})]):s("li",{staticClass:"nav-item"},[s("a",{staticClass:"ti-link nav-link text-success",attrs:{href:"#",title:"You are connected hybrid_agent"},on:{click:function(e){return t.onAction("connect")}}})]),s("b-nav-item")],1)])],1),s("b-row",[s("b-col",{attrs:{cols:"12"}},[s("div",{staticClass:"d-flex",attrs:{id:"wrapper"}},["max"==t.sidemenou?s("div",{staticClass:" bg-light border-right",staticStyle:{width:"15rem"},attrs:{id:"sidebar-wrapper"}},[s("div",{staticClass:"list-group list-group-flush"},[s("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-dashboard",modifiers:{"hybrid-dashboard":!0}}],staticClass:"ti-dashboard list-group-item list-group-item-action",class:{active:t.isActive("dashboard")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Dashboard"},on:{click:[function(e){return t.setActive("dashboard","")},function(e){return t.hybrid("dashboard")}]}},[t._v(" Dashboard")]),s("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-dashboard",accordion:"m-sidebar",role:"tabpanel"}},[s("b-list-group-item",{staticClass:" ti-face-smile m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("dashboard_dashboard")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"dashboard"},on:{click:[function(e){return t.setActive("dashboard","dashboard_dashboard")},function(e){return t.hybrid("dashboard")}]}},[t._v(" Welcome")]),s("b-list-group-item",{staticClass:" ti-bar-chart-alt m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("dashboard_dashboardall")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"dashboardall"},on:{click:[function(e){return t.setActive("dashboardall","dashboard_dashboardall")},function(e){return t.hybrid("dashboardall")}]}},[t._v(" Usage_Stats")])],1),s("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-container",modifiers:{"hybrid-container":!0}}],staticClass:"ti-package list-group-item list-group-item-action",class:{active:t.isActive("container")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Local"},on:{click:[function(e){return t.setActive("container","")},function(e){return t.hybrid("bootstrap")}]}},[t._v(" RunningInstances")]),s("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-container",accordion:"m-sidebar",role:"tabpanel"}},[s("b-list-group-item",{staticClass:"ti-harddrives m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_container")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Container"},on:{click:[function(e){return t.setActive("container","hybrid_container")},function(e){return t.hybrid("bootstrap")}]}},[t._v(" Container")])],1),s("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-private",modifiers:{"hybrid-private":!0}}],staticClass:"ti-home list-group-item list-group-item-action",class:{active:t.isActive("private")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Private"},on:{click:[function(e){return t.setActive("private","hybrid_microservice")},function(e){return t.hybrid("microservice")}]}},[t._v(" Labs@Home")]),s("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-private",accordion:"m-sidebar",role:"tabpanel"}},[s("b-list-group-item",{staticClass:"ti-cloud m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_microservice")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Microservice"},on:{click:[function(e){return t.setActive("private","hybrid_microservice")},function(e){return t.hybrid("microservice")}]}},[t._v(" MicroServices")]),s("b-list-group-item",{staticClass:"ti-harddrive m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_private")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Container"},on:{click:[function(e){return t.setActive("private","hybrid_private")},function(e){return t.hybrid("services")}]}},[t._v(" LabRoom")]),s("b-list-group-item",{staticClass:"ti-server m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_storage")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Storage"},on:{click:[function(e){return t.setActive("private","hybrid_storage")},function(e){return t.hybrid("storage")}]}},[t._v(" Storage")]),s("b-list-group-item",{staticClass:" ti-light-bulb m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_proofofconcept")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Proof_of_concept"},on:{click:[function(e){return t.setActive("private","hybrid_proofofconcept")},function(e){return t.hybrid("proofofconcept")}]}},[t._v(" Proof_of_concept")])],1),s("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-hybrid",modifiers:{"hybrid-hybrid":!0}}],staticClass:"ti-share list-group-item list-group-item-action",class:{active:t.isActive("hybrid")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Local"},on:{click:[function(e){return t.setActive("hybrid","")},function(e){return t.hybrid("manage_service")}]}},[t._v(" Share")]),s("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-builders",modifiers:{"hybrid-builders":!0}}],staticClass:"ti-settings list-group-item list-group-item-action",class:{active:t.isActive("builders")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Private"},on:{click:[function(e){return t.setActive("builders","")},function(e){return t.hybrid("builders")}]}},[t._v(" Build")]),s("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-builders",accordion:"m-sidebar",role:"tabpanel"}},[s("b-list-group-item",{staticClass:" ti-folder m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_builders")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"build_vmware"},on:{click:[function(e){return t.setActive("builders","hybrid_builders")},function(e){return t.hybrid("builders")}]}},[t._v(" myServices")])],1),s("b-list-group-item",{staticClass:"ti-angle-double-left list-group-item list-group-item-action",class:{active:t.isActive("menou-min")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"menou-min",title:"Minimize"},on:{click:function(e){return t.onActionMenu("min")}}})],1)]):t._e(),"min"==t.sidemenou?s("div",{staticClass:" bg-light border-right",attrs:{id:"sidebar-wrapper1"}},[s("div",{staticClass:"list-group list-group-flush"},[s("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-dashboard1",modifiers:{"hybrid-dashboard1":!0}}],staticClass:"ti-dashboard list-group-item list-group-item-action",class:{active:t.isActive("dashboard")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Dashboard",title:"Dashboard"},on:{click:[function(e){return t.setActive("dashboard","")},function(e){return t.hybrid("dashboard")}]}}),s("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-dashboard1",accordion:"m-sidebar",role:"tabpanel"}},[s("b-list-group-item",{staticClass:" ti-face-smile m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("dashboard_dashboard")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"dashboard",title:"Welcome"},on:{click:[function(e){return t.setActive("dashboard","dashboard_dashboard")},function(e){return t.hybrid("dashboard")}]}}),s("b-list-group-item",{staticClass:" ti-bar-chart-alt m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("dashboard_dashboardall")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"dashboardall",title:"Usage statistics"},on:{click:[function(e){return t.setActive("dashboard","dashboard_dashboardall")},function(e){return t.hybrid("dashboardall")}]}})],1),s("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-container1",modifiers:{"hybrid-container1":!0}}],staticClass:"ti-package list-group-item list-group-item-action",class:{active:t.isActive("container")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Local",title:"Instances"},on:{click:[function(e){return t.setActive("container","")},function(e){return t.hybrid("bootstrap")}]}}),s("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-container1",accordion:"m-sidebar",role:"tabpanel"}},[s("b-list-group-item",{staticClass:"ti-harddrives m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_container")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Container",title:"Show all containers"},on:{click:[function(e){return t.setActive("container","hybrid_container")},function(e){return t.hybrid("bootstrap")}]}})],1),s("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-private1",modifiers:{"hybrid-private1":!0}}],staticClass:"ti-home list-group-item list-group-item-action",class:{active:t.isActive("private")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Private",title:"Private"},on:{click:[function(e){return t.setActive("private","")},function(e){return t.hybrid("services")}]}}),s("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-private1",accordion:"m-sidebar",role:"tabpanel"}},[s("b-list-group-item",{staticClass:"ti-cloud m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_microservice")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Microservice",title:"Microservices"},on:{click:[function(e){return t.setActive("private","hybrid_microservice")},function(e){return t.hybrid("microservice")}]}}),s("b-list-group-item",{staticClass:"ti-harddrive m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_private")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Container",title:"LabRoom"},on:{click:[function(e){return t.setActive("private","hybrid_private")},function(e){return t.hybrid("services")}]}}),s("b-list-group-item",{staticClass:"ti-server m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_storage")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Storage",title:"Storage"},on:{click:[function(e){return t.setActive("private","hybrid_storage")},function(e){return t.hybrid("storage")}]}}),s("b-list-group-item",{staticClass:"ti-light-bulb m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_proofofconcept")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Proof_of_concept",title:"Proof_of_concept"},on:{click:[function(e){return t.setActive("private","hybrid_proofofconcept")},function(e){return t.hybrid("proofofconcept")}]}})],1),s("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-hybrid1",modifiers:{"hybrid-hybrid1":!0}}],staticClass:"ti-share list-group-item list-group-item-action",class:{active:t.isActive("hybrid")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Local",title:"Share"},on:{click:[function(e){return t.setActive("hybrid","")},function(e){return t.hybrid("manage_service")}]}}),s("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-builders",modifiers:{"hybrid-builders":!0}}],staticClass:"ti-settings list-group-item list-group-item-action",class:{active:t.isActive("builders")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Private",title:"Build"},on:{click:[function(e){return t.setActive("builders","")},function(e){return t.hybrid("builders")}]}}),s("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-builders1",accordion:"m-sidebar",role:"tabpanel"}},[s("b-list-group-item",{staticClass:" ti-folder m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_builders")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"build_vmware",title:"Build Service"},on:{click:[function(e){return t.setActive("builders","hybrid_builders")},function(e){return t.hybrid("builders")}]}})],1),s("b-list-group-item",{staticClass:"ti-angle-double-right list-group-item list-group-item-action",staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"menou-max",title:"Maximize"},on:{click:function(e){return t.onActionMenu("max")}}})],1)]):t._e(),s("div",{staticClass:"w-100 p-3",staticStyle:{"background-color":"#eee"}},["dashboardall"==t.hybridmenou?s("view-dashboardall",{staticStyle:{"background-color":"#f8f9fa"}}):t._e(),"dashboard"==t.hybridmenou?s("view-dashboard",{staticStyle:{"background-color":"#f8f9fa"}}):t._e(),s("connect-server",{directives:[{name:"show",rawName:"v-show",value:"connect-server"==t.hybridmenou,expression:"hybridmenou == 'connect-server'"}],staticStyle:{"background-color":"#f8f9fa"}}),"manage_service"==t.hybridmenou?s("manage-services",{key:t.componentKeyreload,staticStyle:{"background-color":"#f8f9fa"}}):t._e(),"llo"==t.hybridmenou?s("manage-llo",{staticStyle:{"background-color":"#f8f9fa"}}):t._e(),s("network-table",{directives:[{name:"show",rawName:"v-show",value:"bootstrap"==t.hybridmenou,expression:"hybridmenou == 'bootstrap'"}],key:t.componentKeyreload1,staticStyle:{"background-color":"#f8f9fa"}}),s("services-table",{directives:[{name:"show",rawName:"v-show",value:"services"==t.hybridmenou,expression:"hybridmenou == 'services'"}],staticStyle:{"background-color":"#f8f9fa"}}),s("manage-storage",{directives:[{name:"show",rawName:"v-show",value:"storage"==t.hybridmenou,expression:"hybridmenou == 'storage'"}],key:t.componentKeyreload2,staticStyle:{"background-color":"#f8f9fa"}}),s("manage-microservices",{directives:[{name:"show",rawName:"v-show",value:"microservice"==t.hybridmenou,expression:"hybridmenou == 'microservice'"}],key:t.componentKeyreload3,staticStyle:{"background-color":"#f8f9fa"}}),s("manage-mymicroservices",{directives:[{name:"show",rawName:"v-show",value:"mymicroservice"==t.hybridmenou,expression:"hybridmenou == 'mymicroservice'"}],key:t.mycomponentKeyreload3,staticStyle:{"background-color":"#f8f9fa"}}),s("manage-proofofconcept",{directives:[{name:"show",rawName:"v-show",value:"proofofconcept"==t.hybridmenou,expression:"hybridmenou == 'proofofconcept'"}],key:t.componentKeyreload4,staticStyle:{"background-color":"#f8f9fa"}}),s("manage-builders",{directives:[{name:"show",rawName:"v-show",value:"builders"==t.hybridmenou,expression:"hybridmenou == 'builders'"}],key:t.componentKeybuilders,staticStyle:{"background-color":"#f8f9fa"}}),"manage_deploy"==t.hybridmenou?s("manage-deploy",{staticStyle:{"background-color":"#f8f9fa"}}):t._e()],1)])])],1),s("footer",{staticClass:"footer"},[s("div",{staticClass:"container",staticStyle:{"max-width":"75%"},attrs:{id:"appfooter"}},[t._m(3),t._v(" | "),s("a",{staticClass:"text-info",attrs:{href:"https://www.gnu.org/licenses/agpl-3.0.html",target:"_blank"}},[t._v(" ©")]),t._v(" Coded with "),s("i",{staticClass:"ti-heart"}),t._v(" by "),s("a",{staticClass:"text-info",attrs:{href:"https://git.swarmlab.io:3000/zeus",target:"_blank"}},[t._v(" zeus")]),t._v(" - Released under the "),s("a",{staticClass:"text-info",attrs:{href:"https://www.gnu.org/licenses/agpl-3.0.html",target:"_blank"}},[t._v(" GNU AGPL License")]),t._v(" | "),s("a",{staticClass:"text-info",attrs:{href:"#"},on:{click:function(e){return t.showdiscl()}}},[t._v("Disclaimer and Notices")]),"llo"==t.hybridmenou||"dashboard"==t.hybridmenou?s("span",[t._v(" | ")]):t._e(),"llo"==t.hybridmenou||"dashboard"==t.hybridmenou?s("a",{staticClass:"external text text-info",attrs:{rel:"nofollow",href:"https://letsgolarval.wordpress.com/open-art/",target:"newl"}},[t._v(" Linux Penguin ")]):t._e(),"llo"==t.hybridmenou||"dashboard"==t.hybridmenou?s("span",[t._v(" by Rebekah Yoder / ")]):t._e(),"llo"==t.hybridmenou||"dashboard"==t.hybridmenou?s("a",{staticClass:"external text text-info",attrs:{rel:"nofollow",href:"https://creativecommons.org/licenses/by/2.0/",target:"newl"}},[t._v("BY-SA ")]):t._e()])])],1)])},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"nav-item"},[a("a",{staticClass:"nav-link",attrs:{href:"#"}},[t._v(" - ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"nav-item my-auto"},[a("a",{staticClass:"nav-link navbar-brand mx-0 d-none d-md-inline",attrs:{href:""}},[t._v("Hybrid")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"nav-item"},[a("a",{staticClass:"nav-link",attrs:{href:"#"}},[t._v(" - ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"jsl10n",attrs:{"data-jsl10n":"license"}},[t._v("Content is available under the "),a("a",{staticClass:"text-info",attrs:{href:"https://creativecommons.org/licenses/by-sa/3.0/",target:"_blank"}},[t._v("Creative Commons License")])])}],n=(a("e454"),a("2f62")),r=a("5f5b"),l=a("bc3a"),c=a.n(l);const d={swarmlab_url_80:"https://api.swarmlab.io",url_80:"http://localhost:3080",url_443:"https://localhost:3080"};var u={namespaced:!0,state:{token:"",socketStatus:"close",status:{},statusswarmlab:{},theme:{},myCmfontSize:11,config:{}},getters:{getmytheme(t,e){return t.theme},getmyCmfontSize(t,e){return t.myCmfontSize},getsocketStatus(t,e){return t.socketStatus},gettoken(t,e){return t.token},getlog(t,e){return t.log},getconfig(t,e){return t.config},getstatus(t,e){return t.status},getstatusswarmlab(t,e){return t.statusswarmlab}},mutations:{set_mytheme(t,e){console.log(e),console.log("data"),t.theme=e},set_myCmfontSize(t,e){t.myCmfontSize=e},set_socketStatus(t,e){t.socketStatus=e},set_token(t,e){t.token=e},set_status(t,e){t.status=e},add_log(t,e){t.log.push(e)},add_config(t,e){t.config=e},add_statusswarmlab(t,e){console.log("status server "+JSON.stringify(e)),t.statusswarmlab=e}},actions:{setmytheme({commit:t},e){console.log("container "+e),t("set_mytheme",e.instance)},setmyCmfontSize({commit:t},e){t("set_myCmfontSize",e.size)},addstatusswarmlab({commit:t},e){t("add_statusswarmlab",e)},addconfig({commit:t},e){t("add_config",e)},addlog({commit:t},e){var a={};a.message=e.log.log.message,a.tailed_path=e.log.log.tailed_path,a.date=e.log.date,t("add_log",a)},setsocketStatus({commit:t},e){t("set_socketStatus",e.status)},settoken({commit:t},e){t("set_token",e.token)},setstatus({commit:t},e){t("set_status",e.status)},async swarmlabstart({commit:t,rootGetters:e},a){try{var s=a.token,i={action:a.action},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/run";await c.a.post(n,i,o)}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async oncompletiontracking({commit:t,rootGetters:e},a){try{var s=a.token,i={action:a.action,track:a.track,course:a.course,chapter:a.chapter,evaluation:a.evaluation},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=await c.a.post("https://api.swarmlab.io/completiontracking",i,o);"invalid_token"==n.error&&console.log(n)}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async rmmycustomservice({commit:t,rootGetters:e},a){try{var s=a.token,i={service:a.service},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=await c.a.post("https://api.swarmlab.io/rmmycustomservice",i,o);return n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async getcompletion({commit:t,rootGetters:e},a){try{var s=e["pipelineLLO/gettoken"],i={course:a.course,chapter:a.chapter},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}};const t=await c.a.get("https://api.swarmlab.io/getcompletion",o);return t}catch(n){"invalid_token"==n.error&&(window.location.href="https://api-login.swarmlab.io:8089")}},async getmyservices({commit:t,rootGetters:e},a){try{var s=e["pipelineLLO/gettoken"],i={service:a.service},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}};const t=await c.a.get("https://api.swarmlab.io/getmyservices",o);return t}catch(n){"invalid_token"==n.error&&(window.location.href="https://api-login.swarmlab.io:8089")}},async addmycustomservice({commit:t,rootGetters:e},a){try{var s=a.token,i={service:a.service,readme:a.readme,baseservice:a.baseservice,visibility:a.visibility,sh:a.sh,packages:a.packages,gitrepo:a.gitrepo,serviceversion:a.serviceversion,rclocal:a.rclocal,port1:a.port1,name1:a.name1,url1:a.url1,port2:a.port2,name2:a.name2,url2:a.url2,port3:a.port3,name3:a.name3,url3:a.url3},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=await c.a.post("https://api.swarmlab.io/addmycustomservice",i,o);return n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async getevents({commit:t,rootGetters:e},a){try{var s=e["pipelineLLO/gettoken"],i={begin:a.begin,end:a.end},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}};const t=await c.a.get("https://api.swarmlab.io/getswarmlabevents",o);return t}catch(n){"invalid_token"==n.error&&(window.location.href="https://api-login.swarmlab.io:8089")}},async swarmlabhybridapi({commit:t,rootGetters:e},a){try{var s=e["pipelineLLO/gettoken"],i=a,o={pipeline:i},n={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},r=await c.a.post("https://api.swarmlab.io/swarmlabhybridapi",o,n);return r}catch(l){"invalid_token"==l.error&&(window.location.href="https://api-login.swarmlab.io:8089"),console.error(l)}},async getprogress({commit:t,rootGetters:e},a){try{var s=e["pipelineLLO/gettoken"],i={course:a.course},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}};const t=await c.a.get("https://api.swarmlab.io/getprogress",o);return t}catch(n){"invalid_token"==n.error&&(window.location.href="https://api-login.swarmlab.io:8089")}},async swarmlabhybridadd({commit:t,rootGetters:e},a){try{var s=a.token,i={action:a.action,nodename:a.nodename,nodeip:a.nodeip,nodeid:a.nodeid,noderole:a.noderole,nodezones:a.nodezones,nodedesc:a.nodedesc},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridadd",i,o);"invalid_token"==n.error&&console.log(n)}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async swarmlabhybridrm({commit:t,rootGetters:e},a){try{var s=a.token,i={action:a.action,nodename:a.nodename,nodeip:a.nodeip,nodeid:a.nodeid,noderole:a.noderole,nodezones:a.nodezones,nodedesc:a.nodedesc},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridrm",i,o);"invalid_token"==n.error&&console.log(n)}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async getjupyterinfo({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getjupyterinfo",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async rungui({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/rungui",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async runguicustom({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance,exec:a.exec,id:a.id},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/runguicustom",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getcustom({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getcustom",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getcustomuser({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getcustomuser",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async savecustom({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance,package:a.package,sh:a.sh},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/savecustom",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async savecustomuser({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a,package:a.package,sh:a.sh},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/savecustomuser",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getservicesinfocustom({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getservicesinfocustom",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async get_stats_imagescontainers({commit:t,rootGetters:e},a){try{var s=a.token,i={action:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/get_stats_imagescontainers",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async get_stats_containers({commit:t,rootGetters:e},a){try{var s=a.token,i={action:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/get_stats_containers",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async runeditor({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/runeditor",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async chown({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/chown",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getlog4gui({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getlog4gui",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async chowncustom({commit:t,rootGetters:e},a){try{var s=a.token,i={user:a.user,service:a.service,baseservice:a.baseservice},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/chowncustom",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async checkowner({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/checkowner",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getinstallcustom({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getinstallcustom",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async checkownercustom({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/checkownercustom",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async runbackup({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/runbackup",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async runbackupinstance({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/runbackupinstance",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async runbackupinstanceuser({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/runbackupinstanceuser",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async hybrid_rmimage({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/hybrid_rmimage",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async hybrid_rmnetworks({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/hybrid_rmnetworks",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async hybrid_inspectnetworks({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/hybrid_inspectnetworks",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async hybrid_inspectimages({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/hybrid_inspectimages",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async hybrid_inspectcontainer({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/hybrid_inspectcontainer",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async hybrid_rmall({commit:t,rootGetters:e},a){try{var s=a.token,i={action:a.action},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/hybrid_rmall",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getmountinfo({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getmountinfo",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getservicesinfo({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getservicesinfo",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getshareinfo({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getshareinfo",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getnetworks({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getnetworks",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async updatenetworks({commit:t,rootGetters:e},a){try{var s=a.token,i={network:a.networks,defaultnetwork:a.defaultnetwork,container:a.container},o={headers:{"content-type":"application/json",Authorization:"Bearer "+s}},n=d.url_80+"/updatenetworks",r=await c.a.post(n,i,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}}},async getlogs({commit:t,rootGetters:e},a){try{var s=a.token,i={container:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getlogs",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getserviceshybridstatus({commit:t,rootGetters:e},a){try{var s=a.token,i={bootstrapnameid:a.bootstrapnameid,bootstrapstackname:a.bootstrapstackname},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getserviceshybridstatus",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getservicesstatus({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getservicesstatus",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getservicesstatusall({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getservicesstatusall",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async stopservice({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/stopservice",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async stopservicecustom({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/stopservicecustom",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getservicesinfoall({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getservicesinfoall",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getservicesinfoallcustom({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getservicesinfoallcustom",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async rmbuildstatus({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/rmbuildstatus",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getbuildstatus({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getbuildstatus",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getstoragestatus({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getstoragestatus",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getpocstatus({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a.instance},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/getpocstatus",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async create_config({commit:t,rootGetters:e},a){try{var s=a.token,i={value:a.value},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/create_config",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async rmswarmlablocal({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/rm_swarmlab",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async rmswarmlablocaluser({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/rm_swarmlabuser",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async rmswarmlablocalpoc({commit:t,rootGetters:e},a){try{var s=a.token,i={instance:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/rm_swarmlabpoc",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async save_llo_asciidoctmp({commit:t,rootGetters:e},a){try{var s=a.token,i={code:a},o={headers:{"content-type":"application/json",Authorization:"Bearer "+s}},n=d.url_80+"/save_course_ascii",r=await c.a.post(n,i,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}}},async getstoragesudoprepare({commit:t,rootGetters:e},a){try{var s=a.token,i={storagename:a},o={headers:{"content-type":"application/json",Authorization:"Bearer "+s}},n=d.url_80+"/check_storage_sudorun",r=await c.a.post(n,i,o);return console.log("error "+JSON.stringify(r)),r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}}},async getstoragesudopreparestop({commit:t,rootGetters:e},a){try{var s=a.token,i={storagename:a},o={headers:{"content-type":"application/json",Authorization:"Bearer "+s}},n=d.url_80+"/check_storage_sudostop",r=await c.a.post(n,i,o);return console.log("error "+JSON.stringify(r)),r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}}},async get_llo_course_ascii({commit:t,rootGetters:e},a){try{var s=a.token,i={dir:a.dir,file:a.file},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/get_course_ascii",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}}},async get_llo_course({commit:t,rootGetters:e},a){try{var s=a.token,i={course:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/get_course",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async get_config({commit:t,rootGetters:e},a){try{var s=a.token,i={value:"get"},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=d.url_80+"/get_config",r=await c.a.get(n,o);return r}catch(u){if("Request failed with status code 401"!=u.message&&!/401/i.test(u.message)){var l={ERROR_str:u,ERROR:"yes"};return l}window.location.href="https://api-login.swarmlab.io:8089"}},async getswarmlabinfo({commit:t,rootGetters:e},a){try{var s=e["pipelineLLO/gettoken"],i={swarmlabname:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}};const t=await c.a.get("https://api.swarmlab.io/getswarmlabhybridservicesinfo",o);return t}catch(n){"invalid_token"==n.error&&(window.location.href="https://api-login.swarmlab.io:8089")}},async getswarmlabstorageinfo({commit:t,rootGetters:e},a){try{var s=e["pipelineLLO/gettoken"],i={swarmlabname:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}};const t=await c.a.get("https://api.swarmlab.io/getswarmlabhybridstorageinfo",o);return t}catch(n){"invalid_token"==n.error&&(window.location.href="https://api-login.swarmlab.io:8089")}},async getswarmlabpocinfo({commit:t,rootGetters:e},a){try{var s=e["pipelineLLO/gettoken"],i={swarmlabname:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}};const t=await c.a.get("https://api.swarmlab.io/getswarmlabhybridpocinfo",o);return t}catch(n){"invalid_token"==n.error&&(window.location.href="https://api-login.swarmlab.io:8089")}},async getswarmlabmicroserviceinfo({commit:t,rootGetters:e},a){try{var s=e["pipelineLLO/gettoken"],i={swarmlabname:a},o={params:i,headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}};const t=await c.a.get("https://api.swarmlab.io/getswarmlabhybridmicroserviceinfo",o);return t}catch(n){"invalid_token"==n.error&&(window.location.href="https://api-login.swarmlab.io:8089")}},async hybrid_join({commit:t,rootGetters:e},a){try{var s=a.token,i={node:a.node,bootstrapstackid:a.bootstrapstackid,bootstrapnameid:a.bootstrapnameid,action:"join"},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridjoinstack",i,o);return"invalid_token"==n.error&&console.log(n),n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async hybrid_leave({commit:t,rootGetters:e},a){try{var s=a.token,i={node:a.node,bootstrapstackid:a.bootstrapstackid,bootstrapnameid:a.bootstrapnameid,action:"leave"},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridjoinstack",i,o);return"invalid_token"==n.error&&console.log(n),n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async swarmlabhybridconfig({commit:t,rootGetters:e},a){try{var s=a.token,i={action:"add"},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridconfiginfo",i,o);return"invalid_token"==n.error&&console.log(n),n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async hybrid_servicerm({commit:t,rootGetters:e},a){try{var s=a.token,i={bootstrapstackid:a.bootstrapstackid,bootstrapnameid:a.bootstrapnameid,action:"servicesrm"},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridrmservice",i,o);return"invalid_token"==n.error&&console.log(n),n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async stackrm({commit:t,rootGetters:e},a){try{var s=a.token,i={bootstrapstackid:a.bootstrapstackid,action:"stackrm"},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridrmstack",i,o);return"invalid_token"==n.error&&(console.log(n),console.log(JSON.stringify(n))),n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async hybrid_servicerestart({commit:t,rootGetters:e},a){try{var s=a.token,i={bootstrapnameid:a.bootstrapnameid,action:"stackrestart"},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridrestartservice",i,o);return"invalid_token"==n.error&&console.log(n),n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async hybrid_servicelog({commit:t,rootGetters:e},a){try{var s=a.token,i={bootstrapnameid:a.bootstrapnameid,action:"stackrestlog"},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridlogservice",i,o);return"invalid_token"==n.error&&console.log(n),n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async swarmlabhybridjoin({commit:t,rootGetters:e},a){try{var s=a.token,i={swarmlabservice:"ondemand_test_spitifgdfgdfkngkndfkngkdfngkdfk",action:"join"},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=await c.a.post("https://api.swarmlab.io/swarmlabhybridjoin",i,o);return"invalid_token"==n.error&&console.log(n),n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}},async adddeploy({commit:t,rootGetters:e},a){try{var s=a.token,i={deploy:a.deploy,action:"deploy"},o={headers:{"content-type":"application/x-www-form-urlencoded",Authorization:"Bearer "+s}},n=await c.a.post("https://api.swarmlab.io/adddeployhybrid",i,o);return"invalid_token"==n.error&&console.log(n),n}catch(l){if("Request failed with status code 401"!=l.message&&!/401/i.test(l.message)){var r={ERROR_str:l,ERROR:"yes"};return r}window.location.href="https://api-login.swarmlab.io:8089"}}}},p=a("ecee"),m=a("c074"),h=a("f2d1"),b=a("ad3d");a("f9e3"),a("2dd8");s["default"].use(n["a"]),s["default"].use(r["a"]),s["default"].component("font-awesome-icon",b["a"]),p["d"].add(m["d"],m["e"],m["c"],m["b"],m["a"],h["b"],h["c"],h["d"],m["f"],h["a"]),p["b"].watch();var v=new n["a"].Store({modules:{pipelineLLO:u},state:{},getters:{},mutations:{}}),f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card"},[t.$slots.image?a("div",{staticClass:"card-image"},[t._t("image")],2):t._e(),t.$slots.header||t.title?a("div",{staticClass:"card-header"},[t._t("header",[a("h4",{staticClass:"card-title"},[t._v(t._s(t.title))]),t.subTitle?a("p",{staticClass:"card-category"},[t._v(t._s(t.subTitle))]):t._e()])],2):t._e(),t.$slots.default?a("div",{staticClass:"card-body"},[t._t("default")],2):t._e(),t._t("raw-content"),t.$slots.footer?a("div",{staticClass:"card-footer"},[a("hr"),t._t("footer")],2):t._e()],2)},w=[],g={name:"card",props:{title:String,subTitle:String}},y=g,_=a("2877"),C=Object(_["a"])(y,f,w,!1,null,null,null),k=C.exports,x=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-7 order-first "},[a("br"),a("myconnect-server"),t.ishybridlab?a("hybrid-lab"):t._e()],1),a("div",{staticClass:"col-5 order-last"},[a("br"),a("zones-view")],1)])])},A=[],O=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[t._v("Swarmlab hybrid zones config")])])]),s("br"),s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("add")}}},[t._v(" Add Network Node")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),t.nodeadmin?s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("br"),s("div",{staticClass:"row"},[s("div",{staticClass:"col-3 order-first pr-md-1"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.nodename,expression:"nodename"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Name"},domProps:{value:t.nodename},on:{input:function(e){e.target.composing||(t.nodename=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"col-3 pr-md-1"},[t.nodeadminupdate?s("ValidationProvider",{ref:"provider",attrs:{name:"nodeid",rules:"required|alpha_num"},scopedSlots:t._u([{key:"default",fn:function(e){e.valid,e.errors,e.ariaMsg,e.ariaInput;return[s("input",{directives:[{name:"model",rawName:"v-model",value:t.nodeid,expression:"nodeid"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"NodeId",disabled:""},domProps:{value:t.nodeid},on:{input:function(e){e.target.composing||(t.nodeid=e.target.value)}}})]}}],null,!1,1653130323)}):s("ValidationProvider",{ref:"provider",attrs:{name:"nodeid",rules:"required|alpha_num"},scopedSlots:t._u([{key:"default",fn:function(e){e.valid;var a=e.errors;e.ariaMsg,e.ariaInput;return[s("input",{directives:[{name:"model",rawName:"v-model",value:t.nodeid,expression:"nodeid"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"NodeId","data-vv-as":'"Node id"',"data-vv-value-path":"nodeid","data-vv-name":"nodeid"},domProps:{value:t.nodeid},on:{input:function(e){e.target.composing||(t.nodeid=e.target.value)}}}),s("span",[t._v(t._s(a[0]))])]}}],null,!1,3037502831)})],1),t._v(" "),s("div",{staticClass:"col-3 pr-md-1"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.nodeip,expression:"nodeip"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"IP"},domProps:{value:t.nodeip},on:{input:function(e){e.target.composing||(t.nodeip=e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-3 order-first pr-md-1"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.noderole,expression:"noderole"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Role"},domProps:{value:t.noderole},on:{input:function(e){e.target.composing||(t.noderole=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"col-3 pr-md-1"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.nodezones,expression:"nodezones"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Zones"},domProps:{value:t.nodezones},on:{input:function(e){e.target.composing||(t.nodezones=e.target.value)}}})]),t._v(" "),s("div",{staticClass:"col-3 pr-md-1"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.nodedesc,expression:"nodedesc"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"nodedesc"},domProps:{value:t.nodedesc},on:{input:function(e){e.target.composing||(t.nodedesc=e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-2 pr-md-1"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-append"},[t.nodeadminupdate?s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("update")}}},[t._v(" update")]):s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("addserver")}}},[t._v(" add")])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("cancel")}}},[t._v(" Cancel")])])])])])]):t._e(),t._v(" "),s("vuetable",{key:t.vuetablekeyc,ref:"vuetable",attrs:{"api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess,"vuetable:load-error":t.onLoadError},scopedSlots:t._u([{key:"actions",fn:function(e){return[s("div",{staticClass:"table-button-container"},[s("button",{staticClass:"ti-pencil btn btn-outline-secondary btn-sm",on:{click:function(a){return t.onAction("edit",e.rowData,e.rowIndex)}}}),s("button",{staticClass:"ti-trash btn btn-outline-secondary btn-sm",attrs:{round:""},on:{click:function(a){return t.onAction("rm",e.rowData,e.rowIndex)}}})])]}}])}),s("div",{staticClass:"vuetable-pagination ui basic segment grid"},[s("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),s("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},R=[],$=a("af52"),L=a("127e"),S=a("3568"),I=a("b3c5"),B=a("7bb1"),N=a("4c93");Object(B["b"])("alpha_num",N["a"]),Object(B["b"])("required",{...N["c"],message:"This field is required"});var E={components:{card:k,Vuetable:$["Vuetable"],VuetablePagination:S["a"],VuetablePaginationInfo:L["a"],VuetablePaginationDropdown:$["VuetablePaginationDropdown"]},props:{},data(){return{token:"",valid:!1,nodeadmin:!1,nodeadminupdate:!1,rowdata:{},nodename:"",nodeid:"",nodeip:"",noderole:"",nodezones:"",nodedesc:"",playbookInfo:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekeyc:0,fielddata:{},fields:[{name:"name",title:'<span class="orange"></span>Name',sortField:"name",titleClass:"text-center aligned",visible:!0,dataClass:"center aligned",width:"20%"},{name:"nodeid",title:'<span class="text-warning">nodeid</span>',titleClass:"text-center aligned",sortField:"nodeid",visible:!0,width:"20%"},{name:"ip",title:'<span class="orange"></span>IP',titleClass:"text-center aligned",sortField:"swarmlabname",visible:!0,width:"13%"},{name:"role",title:'<span class="orange"></span>Role',titleClass:"text-center aligned",sortField:"role",visible:!0,width:"15%",formatter(t){const e=/^ondemand_playground/.test(t);if(e){var a='<p class="text-warning">Playground</p>';return a}a='<p class="text-info">Lab</p>';return a}},{name:"zones",title:'<span class="text-warning">Zones</span>',sortField:"zones",titleClass:"text-center aligned",visible:!0,width:"20%"},{name:"status",title:'<span class="orange"></span>Status',titleClass:"text-center aligned",sortField:"status",visible:!0,width:"5%"},{name:"__slot:actions",title:"Actions",titleClass:"text-center aligned",dataClass:"text-center aligned",width:"10%"},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1}],apiurl:d.swarmlab_url_80+"/getswarmlabhybrid",css:I["a"],perpage:9,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"hybrid"}}},mounted(){},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token")},beforeDestroy(){},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{onError(t,e){var a=e,s="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:s+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",s["default"].nextTick(()=>this.$refs.vuetable.refresh())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t)},onChangePage(t){this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async onAction(t,e,a){await v.dispatch("pipelineLLO/swarmlabhybridjoin",{token:this.token,action:"join"});if("edit"==t)this.nodeadmin=!0,this.nodeadminupdate=!0,this.nodeid=e.nodeid,this.nodeip=e.ip,this.nodename=e.name,this.noderole=e.role,this.nodezones=e.zones,this.nodedesc=e.description;else if("update"==t){if(await this.$refs.provider.validate().then(t=>{t.valid?this.valid=!0:this.valid=!1}),this.valid){await v.dispatch("pipelineLLO/swarmlabhybridadd",{token:this.token,action:"add",nodeid:this.nodeid,nodeip:this.nodeip,nodename:this.nodename,noderole:this.noderole,nodezones:this.nodezones,nodedesc:this.nodedesc});s["default"].nextTick(()=>this.$refs.vuetable.refresh())}}else if("rm"==t)this.rowdata=e,this.$swal({type:"info",html:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Yes, Delete it!"}).then(t=>{this.rmAndClose(t)});else if("add"==t)this.nodeadmin=!0,this.nodeadminupdate=!1;else if("addserver"==t){if(await this.$refs.provider.validate().then(t=>{t.valid?this.valid=!0:this.valid=!1}),this.valid){this.nodeadmin=!1,this.nodeadminupdate=!1;await v.dispatch("pipelineLLO/swarmlabhybridadd",{token:this.token,action:"add",nodeid:this.nodeid,nodeip:this.nodeip,nodename:this.nodename,noderole:this.noderole,nodezones:this.nodezones,nodedesc:this.nodedesc});s["default"].nextTick(()=>this.$refs.vuetable.refresh())}}else"cancel"==t&&(this.nodeadmin=!1,this.nodeadminupdate=!1)},async rmAndClose(t){await v.dispatch("pipelineLLO/getswarmlabhybridinfo",{token:this.token,nodezones:this.rowdata.zones});if(t.value){await v.dispatch("pipelineLLO/swarmlabhybridrm",{token:this.token,action:"rm",nodeid:this.rowdata.nodeid,nodeip:this.rowdata.ip,nodename:this.rowdata.name,noderole:this.rowdata.role,nodezones:this.rowdata.zones,nodedesc:this.rowdata.description});s["default"].nextTick(()=>this.$refs.vuetable.refresh())}},async addAndClose(t){},refreshVuetable(){this.$nextTick(()=>{this.vuetablekeyc+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){return{html:!0,title:()=>"Hello <b>Popover:</b> "+ ++this.counter,content:()=>"The date is:<br><em>"+new Date+"</em>"}},loadsuccess(t){var e=t.data.data;if(this.fielddata=e,e.length){e.length;1}},onLoadError(t){"401"==t.response.status&&(window.location.href="https://api-login.swarmlab.io:8089",s["default"].nextTick(()=>window.location.href="https://api-login.swarmlab.io:8089"))}},actions:{}},P=E,D=(a("55b7"),Object(_["a"])(P,O,R,!1,null,null,null)),T=D.exports,V=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-header",staticStyle:{"max-height":"100%"},attrs:{title:"Hybrid API Request"}},[a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("table",{staticClass:"table table-bordered"},[a("tbody",[a("tr",[a("th",{staticClass:"text-center",attrs:{scope:"row"}},[t._v(" Project ")]),a("td",[a("div",{staticClass:"input-group input-group-sm sm-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.swarmlabhybridapi.project,expression:"swarmlabhybridapi.project"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Project Name (Alphanumeric characters, dashes and underscores, NOT spaces)"},domProps:{value:t.swarmlabhybridapi.project},on:{input:function(e){e.target.composing||t.$set(t.swarmlabhybridapi,"project",e.target.value)}}}),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"ti-info btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showinfo("Project")}}})])])])]),a("tr",[a("th",{staticClass:"text-center",attrs:{scope:"row"}},[t._v(" Category ")]),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.swarmlabhybridapi.faculty,expression:"swarmlabhybridapi.faculty"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Project Category"},domProps:{value:t.swarmlabhybridapi.faculty},on:{input:function(e){e.target.composing||t.$set(t.swarmlabhybridapi,"faculty",e.target.value)}}})])]),a("tr",[a("th",{staticClass:"text-center",attrs:{scope:"row"}},[t._v(" Description ")]),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.swarmlabhybridapi.desc,expression:"swarmlabhybridapi.desc"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"What is the purpose of the project?"},domProps:{value:t.swarmlabhybridapi.desc},on:{input:function(e){e.target.composing||t.$set(t.swarmlabhybridapi,"desc",e.target.value)}}})])])])])])],1),a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:t.getApi}},[t._v(" Request hybrid API ")])])])],1)],1)},F=[],G={components:{},props:{},data(){return{swarmlabhybridapi:{labservices:"services"}}},mounted(){},beforeDestroy(){},computed:{},methods:{showinfo(t){if("Project"==t){var e='We use that "Name" to retrieve the corresponding key values <br> The name assigned here will be needed to connect you to Swarmlab Server. <br> The ProjectName can only contain alphanumeric characters, dashes or underscores.';this.$swal({type:"info",html:e,showCloseButton:!1,showLoaderOnConfirm:!1,allowOutsideClick:!1,showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Ok!"})}},async getApi(){console.log("getApi");var t=await v.dispatch("pipelineLLO/swarmlabhybridapi",{lab:this.swarmlabhybridapi});if("ok"==t.data.action){var e="<h5>OK</h5>";this.$swal({type:"info",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,focusCancel:!0})}else{e="<h5>Error</h5>";this.$swal({type:"error",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,focusCancel:!0})}}},actions:{}},z=G,M=(a("546d"),Object(_["a"])(z,V,F,!1,null,null,null)),j=M.exports,U=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[t._v("Swarmlab hybrid-agent config")])])]),s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("br")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-3"},[s("b",[t._v("Node ID")])]),s("div",{staticClass:"col-9"},[s("i",[t._v(t._s(t.CONFIG.nodeid))])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-3"},[s("b",[t._v("Swarmlab key")])]),s("div",{staticClass:"col-9"},[s("i",[t._v(t._s(t.CONFIG.workerkey))])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-3"},[s("b",[t._v("Swarmlab PublicKey")])]),s("div",{staticClass:"col-9"},[s("i",[t._v(t._s(t.CONFIG.swarmlab_public_wgkey))])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-3"},[s("b",[t._v("Swarmlab ip")])]),s("div",{staticClass:"col-3"},[s("i",[t._v(t._s(t.CONFIG.server_ip))])]),s("div",{staticClass:"col-2"},[s("b",[t._v("Local IP")])]),s("div",{staticClass:"col-4"},[s("i",[t._v(t._s(t.CONFIG.wg_ip))])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-3"},[s("b",[t._v("Private key")])]),s("div",{staticClass:"col-3"},[s("i",[t._v(t._s(t.CONFIG.privatekey))])]),s("div",{staticClass:"col-2"},[s("b",[t._v("Public key")])]),s("div",{staticClass:"col-4"},[s("i",[t._v(t._s(t.CONFIG.publickey))])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-12"},[s("br")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-4"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"ti-settings btn btn-outline-info",attrs:{round:"",type:"button",title:"Load config"},on:{click:function(e){return t.onAction("load")}}},[t._v(" Load Settings ")])]),s("div",{staticClass:"input-group-prepend"})])]),s("div",{staticClass:"col-1"},[s("div",{staticClass:"input-group input-group-sm sm-3"})]),t._v(" "),s("div",{staticClass:"col-7 text-right"},[s("div",{staticClass:"input-group input-group-sm sm-3 text-right"},[s("div",{staticClass:"input-group-append text-right"},[s("button",{staticClass:"ti-link btn btn-outline-success",attrs:{round:"",type:"button",title:"Connect"},on:{click:function(e){return t.onAction("connect")}}},[t._v(" Connect ")]),s("button",{staticClass:"ti-unlink btn btn-outline-warning",attrs:{round:"",type:"button",title:"Connect"},on:{click:function(e){return t.onAction("disconnect")}}},[t._v(" Disconnect ")]),t.isconnect?s("button",{staticClass:"ti-link btn btn-outline-success",attrs:{round:"",type:"button",title:"Connect"}},[t._v(" Status online ")]):s("button",{staticClass:"ti-unlink btn btn-outline-warning",attrs:{round:"",type:"button",title:"Connect"}},[t._v(" Status offline ")])])])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-12"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[t.ishybridlab?s("button",{staticClass:"ti-key btn btn-outline-info",attrs:{round:"",type:"button",title:"Api keys"},on:{click:function(e){return t.onAction("apikeyopen")}}},[t._v(" Enable the Swarmlab hybrid API ")]):s("button",{staticClass:"ti-layout-media-overlay-alt btn btn-outline-warning",attrs:{round:"",type:"button",title:"Api keys"},on:{click:function(e){return t.onAction("apikeyclose")}}},[t._v(" Enable the Swarmlab hybrid API ")]),s("button",{staticClass:"ti-info btn btn-outline-success",attrs:{round:"",type:"button",title:"HowTo"},on:{click:function(e){return t.onAction("register")}}})])])])])])],1)},Y=[],q={components:{card:k},props:{},data(){return{isconnect:!1,ishybridlab:!0,isstatus:!1,CONFIG:{status:"",privatekey:"",publickey:"",server_ip:"",nodeid:"",workerkey:"",allowed_ips:"",swarmlab_public_wgkey:"",wg_ip:"",swarm_ip:"",wg_port:""},token:""}},mounted(){this.$root.$on("hybrid_connect_server_view",t=>{this.CONFIG.status=t.status,this.CONFIG.workerkey=t.workerkey,this.CONFIG.swarmlab_public_wgkey=t.swarmlab_public_wgkey,this.CONFIG.server_ip=t.server_ip,this.CONFIG.allowed_ips=t.allowed_ips,this.CONFIG.wg_port=t.wg_port,this.CONFIG.wg_ip=t.wg_ip,this.CONFIG.swarm_ip=t.swarm_ip,this.CONFIG.privatekey=t.privatekey,this.CONFIG.publickey=t.publickey,"on"==this.CONFIG.status?this.isstatus=!0:"off"==this.CONFIG.status&&(this.isstatus=!1)}),this.$root.$on("hybrid_server_status",t=>{this.serverstatus()})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token")},beforeDestroy(){this.$root.$off("hybrid_connect_server_view"),this.$root.$off("hybrid_server_status")},computed:{},methods:{async serverstatus(t){var e=v.getters["pipelineLLO/getstatus"];"active"==e.data.swarmlab&&"Online"==e.data.hybrid?(this.isstatus=!0,this.isconnect=!0,this.CONFIG.nodeid=e.data.swarmlabid):(this.isstatus=!1,this.isconnect=!1,this.CONFIG.nodeid="null")},async onAction(t){if("load"==t){var e=await v.dispatch("pipelineLLO/swarmlabhybridconfig",{token:this.token});this.CONFIG.status=e.data.data.status,this.CONFIG.workerkey=e.data.data.workerkey,this.CONFIG.swarmlab_public_wgkey=e.data.data.wg_public,this.CONFIG.server_ip=e.data.data.endpoint,this.CONFIG.allowed_ips=e.data.data.allowed_ip,this.CONFIG.wg_port=e.data.data.wg_port,this.CONFIG.wg_ip=e.data.data.wg_ip,this.CONFIG.swarm_ip=e.data.data.swarm_ip,this.CONFIG.privatekey=e.data.data.privatekey,this.CONFIG.publickey=e.data.data.publickey,"on"==this.CONFIG.status?this.isstatus=!0:"off"==this.CONFIG.status&&(this.isstatus=!1),this.onAction("save")}else if("apikeyopen"==t)this.ishybridlab=!1,this.$root.$emit("hybrid_lab_keyview","open");else if("apikeyclose"==t)this.ishybridlab=!0,this.$root.$emit("hybrid_lab_keyview","close");else if("connect"==t){e=await v.dispatch("pipelineLLO/get_config",{token:this.token});this.isconnect=!0;var a=e.data.data;if(e.data.error_msg="ok"){var s='<span class="text-success">sudo /bin/bash ';s+=a.trim(),s+="/hybrid/connect/join.sh </span>"}else s="no exec file";var i='<h4>Swarmlab Connect</h4> <h6 class="text-warning"> You are about to connect with others. Be Careful </h6> <h5><i>Copy-and-run-command </i></h5> <br>';this.$swal({type:"info",html:i+s,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}else if("save"==t)e=await v.dispatch("pipelineLLO/create_config",{token:this.token,value:this.CONFIG});else if("disconnect"==t){e=await v.dispatch("pipelineLLO/get_config",{token:this.token}),a=e.data.data;if(e.data.error_msg="ok"){s='<span class="text-success">sudo /bin/bash ';s+=a.trim(),s+="/hybrid/connect/leave.sh </span>"}else s="no exec file";i="<h4>Swarmlab Disconnect</h4> <h5><i>Copy-and-run-command </i></h5> <br>";this.$swal({type:"info",icon:"info",html:i+s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}else if("register"==t){s="Before you begin\n <br>\n Before you start using the Swarmlab Hybrid API, you need a hybrid enabled account and the Swarmlab API enabled. \n <br>\n To learn more, see Get Started with Hybrid Platform. \n ",i="<h5>Get API Key's</h5><br>";this.$swal({type:"info",html:i+s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}}},actions:{}},H=q,K=(a("cd6e"),Object(_["a"])(H,U,Y,!1,null,null,null)),W=K.exports,Q={components:{HybridLab:j,ZonesView:T,card:k,MyconnectServer:W},data(){return{loading:!1,ishybridlab:!1,consoleView:"off",productIndex:1}},mounted(){this.$root.$on("hybrid_lab_keyview",t=>{"open"==t?this.ishybridlab=!0:"close"==t&&(this.ishybridlab=!1)})},beforeDestroy(){this.$root.$off("hybrid_lab_keyview")},created(){}},J=Q,Z=Object(_["a"])(J,x,A,!1,null,null,null),X=Z.exports,tt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-7 order-first "},[a("br"),a("view-network"),a("docker-services")],1),a("div",{staticClass:"col-5 order-last"},[a("br"),t.viewconsole?a("adhoc-view"):t._e(),a("docker-images",{directives:[{name:"show",rawName:"v-show",value:t.viewimages,expression:"viewimages"}]}),a("docker-networks",{directives:[{name:"show",rawName:"v-show",value:t.viewnetworks,expression:"viewnetworks"}]})],1)])])},et=[],at=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),s("v-wait",{attrs:{for:"myRunInstanceeditor"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Editor... ")])])],2),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[s("span",{staticClass:"text-muted"},[t._v("View and Manage your")]),t._v(" "),s("span",{staticClass:"text-info"},[t._v("Running Instances")])])])]),s("br"),s("div",{staticClass:"row"},[s("div",{staticClass:"col-5"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[t.$socket.disconnected?s("button",{staticClass:"ti-unlink btn btn-outline-danger",attrs:{round:"",type:"button",title:"You are disconnected from Swarmlab-hybrid",disabled:""}}):s("button",{staticClass:"ti-link btn btn-outline-success",attrs:{round:"",type:"button",title:"You are connected swarmlab-hybrid"},on:{click:function(e){return t.onAction("shareinfo")}}})]),s("div",{staticClass:"input-group-prepend"},[t.webinterface?s("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("startweb")}}},[t._v(" Web")]):t._e(),t.webinterfacegeneric&&t.hybridshowdata.Names?s("button",{staticClass:"btn btn-info",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("startwebgeneric")}}},[t._v(" "+t._s(t.webinterfacegeneric_text))]):t._e()]),s("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.Names?s("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("container-connect")}}},[t._v(" Connect")]):s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button",disabled:""}},[t._v(" Connect")]),t.webinterfacegenericedit&&t.hybridshowdata.Names?s("button",{staticClass:"btn btn-outline-info",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("basedireditor")}}},[t._v(" Editor")]):t._e(),t.hybridshowdata.Names?s("button",{staticClass:"btn btn-outline-danger",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("container-stop")}}},[t._v(" Stop")]):s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button",disabled:""}},[t._v(" stop")]),t.actionrowindexconsole?s("button",{staticClass:"btn btn-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("container-logsclose")}}},[t._v(" Close Console")]):t._e()])])]),t._v(" "),s("div",{staticClass:"col-1"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend float-center"})])]),t._v(" "),s("div",{staticClass:"col-1"}),t._v(" "),s("div",{staticClass:"col-5"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend float-right"},[t.actionrowindex&&t.hybridshowdata.Names?s("button",{staticClass:"ti-more-alt btn btn-secondary btn-sm",attrs:{title:"More Options...",round:""},on:{click:function(e){return t.runmore("off")}}}):t._e(),t.actionrowindexselect&&t.hybridshowdata.Names?s("button",{staticClass:"ti-more btn btn-outline-info btn-sm",attrs:{round:"",title:"More Options..."},on:{click:function(e){return t.runmore("on")}}}):t._e(),t.actionrowindex&&t.hybridshowdata.Names?s("button",{staticClass:"btn btn-outline-info",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("basedir")}}},[t._v(" Persistent Data")]):t._e()]),s("div",{staticClass:"input-group-prepend float-right"},[t.actionrowindex&&t.hybridshowdata.Names?s("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("basebackup")}}},[t._v(" Backup")]):t._e()]),s("div",{staticClass:"input-group-prepend float-right"},[t.actionrowindex&&t.hybridshowdata.Names?s("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("basebackupview")}}},[t._v(" BrowseBackups")]):t._e()]),s("div",{staticClass:"input-group-append"},[!t.actionrowindexconsole&&t.actionrowindex&&t.hybridshowdata.Names?s("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("container-logs")}}},[t._v(" Logs")]):t._e(),t.actionrowindexconsole&&t.actionrowindex&&t.hybridshowdata.Names?s("button",{staticClass:"btn btn-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("container-logsclose")}}},[t._v(" Logs")]):t._e()])])])]),t._v(" "),t.webinterfacegeneric&&t.webinterfacegeneric_menou1&&t.hybridshowdata.Names?s("div",{staticClass:"row"},[s("div",{staticClass:"col-12"},[s("hr")])]):t._e(),t.webinterfacegeneric&&t.webinterfacegeneric_menou1&&t.hybridshowdata.Names?s("div",{staticClass:"row"},[s("div",{staticClass:"col-5"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[t.webinterfacegeneric&&t.webinterfacegeneric_menou1&&t.hybridshowdata.Names&&!t.webinterfacegeneric_menou1typelog?s("a",{staticClass:"btn btn-outline-secondary",attrs:{href:t.webinterfacegeneric_menou1_url,target:t.webinterfacegeneric_menou1_url_target1,role:"button"}},[t._v(" "+t._s(t.webinterfacegeneric_menou1_text)+" ")]):t._e(),t.webinterfacegeneric&&t.webinterfacegeneric_menou1&&t.hybridshowdata.Names&&t.webinterfacegeneric_menou1typelog&&!t.webinterfacegeneric_menou1typelog_active?s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.guilogs(1)}}},[t._v(" "+t._s(t.webinterfacegeneric_menou1_text)+" ")]):t._e(),t.webinterfacegeneric&&t.webinterfacegeneric_menou1&&t.hybridshowdata.Names&&t.webinterfacegeneric_menou1typelog&&t.webinterfacegeneric_menou1typelog_active?s("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.guilogsclose(1)}}},[t._v(" "+t._s(t.webinterfacegeneric_menou1_text)+" ")]):t._e()]),s("div",{staticClass:"input-group-prepend"},[t.webinterfacegeneric&&t.webinterfacegeneric_menou2&&t.hybridshowdata.Names&&!t.webinterfacegeneric_menou2typelog?s("a",{staticClass:"btn btn-outline-secondary",attrs:{href:t.webinterfacegeneric_menou2_url,target:t.webinterfacegeneric_menou1_url_target2,role:"button"}},[t._v(" "+t._s(t.webinterfacegeneric_menou2_text)+" ")]):t._e(),t.webinterfacegeneric&&t.webinterfacegeneric_menou2&&t.hybridshowdata.Names&&t.webinterfacegeneric_menou2typelog&&!t.webinterfacegeneric_menou2typelog_active?s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.guilogs(2)}}},[t._v(" "+t._s(t.webinterfacegeneric_menou2_text)+" ")]):t._e(),t.webinterfacegeneric&&t.webinterfacegeneric_menou2&&t.hybridshowdata.Names&&t.webinterfacegeneric_menou2typelog&&t.webinterfacegeneric_menou2typelog_active?s("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.guilogsclose(2)}}},[t._v(" "+t._s(t.webinterfacegeneric_menou2_text)+" ")]):t._e()]),s("div",{staticClass:"input-group-prepend"},[t.webinterfacegeneric&&t.webinterfacegeneric_menou3&&t.hybridshowdata.Names&&!t.webinterfacegeneric_menou3typelog?s("a",{staticClass:"btn btn-outline-secondary",attrs:{href:t.webinterfacegeneric_menou3_url,target:t.webinterfacegeneric_menou1_url_target3,role:"button"}},[t._v(" "+t._s(t.webinterfacegeneric_menou3_text)+" ")]):t._e(),t.webinterfacegeneric&&t.webinterfacegeneric_menou3&&t.hybridshowdata.Names&&t.webinterfacegeneric_menou3typelog&&!t.webinterfacegeneric_menou3typelog_active?s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.guilogs(3)}}},[t._v(" "+t._s(t.webinterfacegeneric_menou3_text)+" ")]):t._e(),t.webinterfacegeneric&&t.webinterfacegeneric_menou3&&t.hybridshowdata.Names&&t.webinterfacegeneric_menou3typelog&&t.webinterfacegeneric_menou3typelog_active?s("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.guilogsclose(3)}}},[t._v(" "+t._s(t.webinterfacegeneric_menou3_text)+" ")]):t._e()])])])]):t._e()]),s("b-container",{attrs:{fluid:""}},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-2 text-info"},[t._v(" ID ")]),s("div",{staticClass:"col-3 text-muted"},[t._v(" "+t._s(t.hybridshowdata.ID)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" Image ")]),s("div",{staticClass:"col-4 text-muted"},[t._v(" "+t._s(t.hybridshowdata.Image)+" ")])]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-2 text-info"},[t._v(" Names ")]),s("div",{staticClass:"col-3 text-muted"},[t._v(" "+t._s(t.hybridshowdata.Names)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" RunningFor ")]),s("div",{staticClass:"col-4 text-muted"},[t._v(" "+t._s(t.hybridshowdata.RunningFor)+" ")])]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-2 text-info"},[t._v(" Status ")]),s("div",{staticClass:"col-3 text-muted"},[t._v(" "+t._s(t.hybridshowdata.Status)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" CreatedAt ")]),s("div",{staticClass:"col-4 text-muted"},[t._v(" "+t._s(t.hybridshowdata.CreatedAt)+" ")])]),t._v(" "),s("div",{staticClass:"row"},[t.actionrowindex?s("div",{staticClass:"col-2 text-info"},[t.hybridshowdata.Networks&&0==t.addNetworkMenou?s("button",{staticClass:"btn btn-primary btn-sm",attrs:{round:"",type:"button"},on:{click:function(e){return t.addNetwork(t.hybridshowdata,"on")}}},[t._v(" Networks")]):t._e(),t.hybridshowdata.Networks&&1==t.addNetworkMenou?s("button",{staticClass:"btn btn-outline-warning btn-sm",attrs:{round:"",type:"button"},on:{click:function(e){return t.addNetwork(t.hybridshowdata,"off")}}},[t._v(" Networks")]):t._e()]):s("div",{staticClass:"col-2 text-info"},[t._v(" Networks ")]),s("div",{staticClass:"col-3 text-muted"},[t._v(" "+t._s(t.hybridshowdata.Networks)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" Ports ")]),s("div",{staticClass:"col-4 text-muted"},[t._v(" "+t._s(t.hybridshowdata.Ports)+" ")])])]),1==t.addNetworkMenou?s("div",{staticClass:"card border-success bg-light mb-3",staticStyle:{"max-width":"100%"}},[s("div",{staticClass:"card-header"}),s("div",{staticClass:"card-body text-info"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-6 text-info"},[s("h5",{staticClass:"card-title"},[t._v("Select network")])]),s("div",{staticClass:"col-6 text-info"},[t._v(" Connect a running container to multiple networks ")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-6 text-info"},[s("b-form-select",{attrs:{options:t.localNetworkoptions,multiple:"","select-size":4},model:{value:t.selectedNetworks,callback:function(e){t.selectedNetworks=e},expression:"selectedNetworks"}}),s("div",{staticClass:"mt-3"},[t._v("Selected: "),s("strong",[t._v(t._s(t.selectedNetworks))])])],1),s("div",{staticClass:"col-6 text-info"},[s("img",{staticClass:"border-white img-thumbnail",attrs:{src:a("04d6"),alt:"..."}})])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-6 text-info"},[s("button",{staticClass:"btn btn-warning btn-sm",attrs:{round:"",type:"button"},on:{click:function(e){return t.updateNetwork(t.hybridshowdata,"update")}}},[t._v(" Update")])])])])]):t._e()],1)},st=[];const it=[{name:"justtemplate",automated:!0,version:0,menou:"xeLatex",menou1:"ViewPDF",menou1url:"docs/main.pdf",menou1server:"http://localhost:3384",menou2:"View2",menou2url:"docs2/main.pdf",menou2type:"log",menou2server:"http://localhost:3384",menou3:"Compile",menou3url:"docs/main111111111111.pdf",menou3server:"http://localhost:3384",port:0},{name:"microservice-firefox",automated:!0,menou:"openGui",version:0,port:0},{name:"microservice-xelatexthesis",automated:!0,exec:'/bin/sh -c "latex-all"',version:0,menou:"Compile",menou1:"View-PDF",menou1url:"docs/main.pdf",menou1server:"http://localhost:3384",menou2:"xeLatex-LOG",menou2type:"log",menou2url:"docs/main.log",menou2server:"http://localhost:3394",port:0},{name:"microservice-wireshark",automated:!0,menou:"openGui",version:0,port:0},{name:"microservice-oletools",automated:!0,menou:"openGui",version:0,port:0}],ot=[{name:"just-test-info-no-service",large:"no or text",custom:"true",customostext:"Base OS: python:3.11-rc-alpine3.15",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!1,ttydport:"3787/tcp",ttydurl:"http",app1:!1,link1:"Click here to open rstudio",url1:"http",port1:"8787/tcp",app2:!1,link2:"Click here to open app text",url2:"http",port2:"8788/tcp",app3:!1,link3:"Click here to open app text",url3:"http",port3:"8789/tcp"},{name:"microservice-etherpad",app:!0,url:"http",port:"9001/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"jitsiweb",app:!0,url:"https",port:"443/tcp",ttyd:!1,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-novncfull",app:!0,url:"http",port:"80/tcp",ttyd:!1,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-novnclite",app:!0,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-mongoexpress",app:!0,url:"http",port:"8081/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-gns3",custom:"true",customostext:"Base OS: ubuntu:18.04.6 LTS ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!0,url:"http",port:"8001/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-ubuntu",custom:"true",customostext:"Base OS: ubuntu:20.04.3 LTS",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"8001/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-ubuntugui",app:!0,url:"http",port:"80/tcp",ttyd:!1,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-numpylite",custom:"true",customostext:"Base OS: debian:buster",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-nodejs",custom:"true",customostext:"Base OS: alpine:3.13",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-nginx",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-ipterm",custom:"true",customostext:"Base OS: debian:jessie ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-firefox",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-haproxy",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-xelatexthesis",custom:"true",customostext:"Base OS: alpine:3.15 ",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-snmpsim",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-ansible",custom:"true",customostext:"Base OS: alpine:3.14 ",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-wireshark",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-redisserver",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-mongoserver",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-filemanager",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-powershell",custom:"true",customostext:"Base OS: alpine:3.14 ",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-dvwa",app:!0,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-hping3",custom:"true",customostext:"Base OS: alpine:3.15 ",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-volatilitylinux",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-volatilitywindows",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-twint",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-twintexplorer",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-octave",large:"The build will take some time, so be patient!",custom:"true",customostext:"Base OS: ubuntu:18.04.6 LTS ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!0,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-r",large:"Note that this image is somewhat heavy (~2GB). It can take some time to build the Instance. If you think the proccess is frosen you can reload the page in your Browser",custom:"true",customostext:"Base OS: ubuntu:18.04.6 LTS ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!0,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http",app1:!0,link1:"Click here to open rstudio",url1:"http",port1:"8787/tcp"},{name:"microservice-rust",large:"no",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-julia",large:"no",custom:"true",customostext:"Base OS: alpine3.15",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-lua",large:"no",custom:"true",customostext:"Base OS: alpine3.12",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-luajit",large:"no",custom:"true",customostext:"Base OS: alpine3.12",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-nodesqlite3",large:"no",custom:"true",customostext:"Base OS: ubuntu:20.04 LTS ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-electron",large:"Note that this image is somewhat heavy (~1.5GB). It can take some time to build the Instance. If you think the proccess is frosen you can reload the page in your Browser",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-rubyfull",large:"Note that this image is somewhat heavy (~1GB). It can take some time to build the Instance. If you think the proccess is frosen you can reload the page in your Browser",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-ruby",large:"no",custom:"true",customostext:"Base OS: alpine3.15",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-golangfull",large:"Note that this image is somewhat heavy (~1GB). It can take some time to build the Instance. If you think the proccess is frosen you can reload the page in your Browser",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-golang",large:"no",custom:"true",customostext:"Base OS: alpine3.15",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-mariadb",large:"no",app:!1,url:"http",port:"6901/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-adminer",large:"no",custom:"true",customostext:"Base OS: alpine3.15",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!0,url:"http",port:"8080/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-gcc",large:"no",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"8080/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-opencv",large:"no",custom:"true",customostext:"Base OS: debian:buster",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"8080/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-phpcli",large:"no",app:!1,url:"http",port:"8080/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-phpapache",large:"no",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http",app2:!0,link2:"Click to run your PHP code over https",url2:"https",port2:"443/tcp",app1:!0,link1:"Click to run your PHP code over http",url1:"http",port1:"80/tcp"},{name:"microservice-wordpress",large:"no",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!0,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-oletools",large:"no",custom:"true",customostext:"Base OS: python:3.11-rc-alpine3.15",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-dfirntfs",large:"no",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-peframe",large:"The build will take some time, so be patient!",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-libvshadow",large:"no",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-regripper",large:"no",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-jsshell",large:"no",custom:"true",customostext:"Base OS: python:3.11-rc-alpine3.15",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-alpine313",large:"no",custom:"true",customostext:"Base OS: alpine3.13",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-alpine314",large:"no",custom:"true",customostext:"Base OS: alpine3.14",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-alpine315",large:"no",custom:"true",customostext:"Base OS: alpine3.15",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-debianbookworm",large:"no",custom:"true",customostext:"Base OS: debian:bookworm ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-debianbullseye",large:"no",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-debianbuster",large:"no",custom:"true",customostext:"Base OS: debian:buster ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-awscli",large:"no",custom:"true",customostext:"Base OS: alpine3.13",customos:"apk add --no-cache net-tools ",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-perl",large:"no",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"},{name:"microservice-perlfull",large:"no",custom:"true",customostext:"Base OS: debian:bullseye ",customos:"apt-get update && apt-get install -y --no-install-recommends net-tools",customshtext:"It is executed after all the normal builds",customsh:" #!/bin/sh",app:!1,url:"http",port:"80/tcp",ttyd:!0,ttydport:"3787/tcp",ttydurl:"http"}],nt=[{name:"microservice-xelatexthesis",automated:!0,url:"http",version:0,port:0},{name:"microservice-ansible",automated:!0,url:"http",version:0,port:0},{name:"microservice-nodejs",automated:!0,url:"http",version:0,port:0},{name:"microservice-numpylite",automated:!0,url:"http",version:0,port:0},{name:"microservice-rust",automated:!0,url:"http",version:0,port:0},{name:"microservice-julia",automated:!0,url:"http",version:0,port:0},{name:"microservice-lua",automated:!0,url:"http",version:0,port:0},{name:"microservice-luajit",automated:!0,url:"http",version:0,port:0},{name:"microservice-nodesqlite3",automated:!0,url:"http",version:0,port:0},{name:"microservice-electron",automated:!0,url:"http",version:0,port:0},{name:"microservice-ruby",automated:!0,url:"http",version:0,port:0},{name:"microservice-rubyfull",automated:!0,url:"http",version:0,port:0},{name:"microservice-golang",automated:!0,url:"http",version:0,port:0},{name:"microservice-golangfull",automated:!0,url:"http",version:0,port:0},{name:"microservice-gcc",automated:!0,url:"http",version:0,port:0},{name:"microservice-opencv",automated:!0,url:"http",version:0,port:0},{name:"microservice-phpcli",automated:!0,url:"http",version:0,port:0},{name:"microservice-jsshell",automated:!0,url:"http",version:0,port:0},{name:"microservice-phpapache",automated:!0,url:"http",version:0,port:0},{name:"microservice-alpine313",automated:!0,url:"http",version:0,port:0},{name:"microservice-alpine314",automated:!0,url:"http",version:0,port:0},{name:"microservice-alpine315",automated:!0,url:"http",version:0,port:0},{name:"microservice-debianbookworm",automated:!0,url:"http",version:0,port:0},{name:"microservice-debianbuster",automated:!0,url:"http",version:0,port:0},{name:"microservice-debianbullseye",automated:!0,url:"http",version:0,port:0},{name:"microservice-awscli",automated:!0,url:"http",version:0,port:0},{name:"microservice-perl",automated:!0,url:"http",version:0,port:0},{name:"microservice-perlfull",automated:!0,url:"http",version:0,port:0}];Object(B["b"])("alpha_num",N["a"]),Object(B["b"])("required",{...N["c"],message:"This field is required"});var rt={components:{card:k},props:{},data(){return{actionrowindexconsole:!1,actionrowindex:!1,actionrowindexselect:!0,addNetworkMenou:!1,localNetworks:[],selectedNetworks:[],localNetworkoptions:[],localNetworkdefault:"",webinterface:!1,webinterfacegeneric:!1,webinterfacegeneric_text:"openGui",webinterfacegeneric_menou1_url_target1:"_blank",webinterfacegeneric_menou1_url_target2:"_blank",webinterfacegeneric_menou1_url_target3:"_blank",webinterfacegeneric_menou_exec:"",webinterfacegeneric_menou_basedir:"",swarmlab_services_type:"swarmlab",webinterfacegeneric_menou1:!1,webinterfacegeneric_menou1_text:"",webinterfacegeneric_menou1_url:"",webinterfacegeneric_menou1typelog:!1,webinterfacegeneric_menou1typelog_active:!1,webinterfacegeneric_menou1typedir:"",webinterfacegeneric_menou1typedir_log:"",webinterfacegeneric_menou2:!1,webinterfacegeneric_menou2_text:"",webinterfacegeneric_menou2_url:"",webinterfacegeneric_menou2typelog:!1,webinterfacegeneric_menou2typelog_active:!1,webinterfacegeneric_menou2typedir:"",webinterfacegeneric_menou2typedir_log:"",webinterfacegeneric_menou3:!1,webinterfacegeneric_menou3_text:"",webinterfacegeneric_menou3_url:"",webinterfacegeneric_menou3typelog:!1,webinterfacegeneric_menou3typelog_active:!1,webinterfacegeneric_menou3typedir:"",webinterfacegeneric_menou3typedir_log:"",webinterfacegenericedit:!1,webinterface_port:"",STATUS:{},editor_instance:{start:"",port:""},CONFIG:{status:"",workerkey:"",swarmlab_public_wgkey:"",server_ip:"",allowed_ips:"",wg_port:"",wg_ip:"",swarm_ip:"",privatekey:"",publickey:"",workerkey:"",privatekey:"",publickey:"",server_ip:""},CONFIGallowed_ips:"",swarmlabnamecustomstart:{},swarmlabnamecustomdata:{},swarmlabnamecustom:"",swarmlabnamecustomservice:"",swarmlabnamecustomuser:"",swarmlabname:"swarmlab-sec",swarmlabname_port:"",swarmlabname_size:3,swarmlabname_git:"",hybridshowdata:{},hybridshowdata_user:{},hybridshowdatashare:{},issocket:"close",setFilter:{},searchFor:{},resetFilter:{}}},beforeMount(){this.socketopen(),this.socketauthenticate()},mounted(){this.$root.$on("hybrid_show_info",t=>{(async()=>{this.actionrowindex=!1,this.actionrowindexselect=!0,this.addNetworkMenou=!1,this.actionrowindexconsole=!1,this.$root.$emit("hybrid_show_instance_images","images"),this.webinterface=!1,this.webinterfacegeneric=!1,this.webinterfacegenericedit=!1,this.hybridshowdata=t;var e="microservice-jupyter",a=new RegExp(e);a.test(t.Networks)&&a.test(t.Names)?(this.webinterface=!0,this.webinterface_port=t.Ports):(this.webinterface=!1,this.webinterface_port="");for(var s=this.hybridshowdata.Names.split("_"),i=0;i<nt.length;i++){var o=nt[i];o.name==s[0]&&(this.webinterfacegenericedit=!0)}var n="_masterservice_1",r=new RegExp(n,"g"),l=this.hybridshowdata.Names.replace(r,""),c=await v.dispatch("pipelineLLO/getinstallcustom",{token:this.token,instance:l});if(c.data&&c.data.data){this.hybridshowdata_user=JSON.parse(c.data.data);s=this.hybridshowdata.Names.split("_");this.webinterfacegenericedit=!0;var d=this.hybridshowdata_user.servicedata.baseservice;this.swarmlab_services_type="custom"}else{var u=this.hybridshowdata.Names.split("_");d=u[0];this.swarmlab_services_type="swarmlab"}for(i=0;i<it.length;i++){var p=it[i];if(p.name==d){if(this.webinterfacegeneric=!0,this.webinterfacegeneric_text=p.menou,this.webinterfacegeneric_menou_exec=p.exec,this.hybridshowdata_user.servicedata&&"custom"==this.swarmlab_services_type){var m=this.hybridshowdata_user.servicedata.user.split("@"),h=`${m[0]}-${this.hybridshowdata_user.servicedata.service}`;this.webinterfacegeneric_menou_basedir=`community/${this.hybridshowdata_user.servicedata.user}_${this.hybridshowdata_user.servicedata.service}_${this.hybridshowdata_user.servicedata.baseservice}/${h}`}else{m=this.hybridshowdata.Names.split("_");this.webinterfacegeneric_menou_basedir=`instance/${m[0]}/${m[0]}`}p.menou1&&(this.webinterfacegeneric_menou1=!0,this.webinterfacegeneric_menou1_text=p.menou1,this.webinterfacegeneric_menou1_url=`${p.menou1server}/${this.webinterfacegeneric_menou_basedir}/${p.menou1url}`,this.webinterfacegeneric_menou1_url_target1=d+"_1","log"==p.menou1type&&(this.webinterfacegeneric_menou1typelog=!0,this.webinterfacegeneric_menou1typedir=`${this.webinterfacegeneric_menou_basedir}/${p.menou2url}`)),p.menou2&&(this.webinterfacegeneric_menou2=!0,this.webinterfacegeneric_menou2_text=p.menou2,this.webinterfacegeneric_menou2_url=`${p.menou2server}/${this.webinterfacegeneric_menou_basedir}/${p.menou2url}`,this.webinterfacegeneric_menou1_url_target2=d+"_2",p.menou2type&&"log"==p.menou2type&&(this.webinterfacegeneric_menou2typelog=!0,this.webinterfacegeneric_menou2typedir=`${this.webinterfacegeneric_menou_basedir}/${p.menou2url}`)),p.menou3&&(this.webinterfacegeneric_menou3=!0,this.webinterfacegeneric_menou3_text=p.menou3,this.webinterfacegeneric_menou3_url=`${p.menou3server}/${this.webinterfacegeneric_menou_basedir}/${p.menou3url}`,this.webinterfacegeneric_menou1_url_target2=d+"_3","log"==p.menou3type&&(this.webinterfacegeneric_menou3typelog=!0,this.webinterfacegeneric_menou3typedir=`${this.webinterfacegeneric_menou_basedir}/${p.menou2url}`))}}this.addNetworkMenou=!1,this.localNetworks=[],this.selectedNetworks=[],this.localNetworkoptions=[],this.localNetworkdefault=""})()}),this.$root.$on("hybrid_start_instance",t=>{this.swarmlabname=t.swarmlabname,t.size&&(this.swarmlabname_size=t.size),t.port&&(this.swarmlabname_port=t.port),this.onAction("start")}),this.$root.$on("hybrid_start_instance_custom",t=>{this.swarmlabnamecustomdata=t.baseservicedata,this.swarmlabnamecustomstart=t,t.size&&(this.swarmlabname_size=t.size),t.port&&(this.swarmlabname_port=t.port),this.onAction("startcustom")}),this.$root.$on("hybrid_start_instance_storage",t=>{var e={action:"up"};e.token=this.token,e.swarmlabname=t.swarmlabname,e.password=t.password,this.$socket.client.open(),this.$socket.client.emit("start_storage",e)}),this.$root.$on("hybrid_start_instance_poc",t=>{var e={action:"up"};e.token=this.token,e.swarmlabname=t.swarmlabname,e.password=t.password,this.$socket.client.open(),this.$socket.client.emit("start_poc",e)}),this.$root.$on("SERVER_build_image",t=>{this.$socket.client.open(),this.$socket.client.emit("build_image",t)}),this.$root.$on("SERVER_build_vmlist",t=>{var e={action:"up"};e.token=this.token,e.kill=2,this.$socket.client.open(),this.$socket.client.emit("build_vmlist",e)}),this.$root.$on("SERVER_build_kill",t=>{var e={action:"up"};e.token=this.token,e.kill=t.pid,this.$socket.client.open(),this.$socket.client.emit("build_kill",e)}),this.$root.$on("hybrid_install_instance",t=>{this.swarmlabname=t.swarmlabname,this.swarmlabname_git=t.git,this.onAction("install")}),this.$root.$on("hybrid_install_instance_custom",t=>{this.swarmlabnamecustomdata=t.baseservicedata,this.swarmlabnamecustom=t.baseservice,this.swarmlabnamecustomservice=t.service,this.swarmlabnamecustomuser=t.user,this.swarmlabname_git=t.git,this.onAction("installcustom")}),this.$root.$on("hybrid_install_instance_storage",t=>{var e={action:"up"};e.token=this.token,e.swarmlabname=t.swarmlabname,e.git=t.git,this.$socket.client.open(),this.$socket.client.emit("installstorage",e)}),this.$root.$on("hybrid_connect_server",t=>{this.$socket.client.emit("get-serverconfig")}),this.$root.$on("hybrid_stop_instance",t=>{this.swarmlabname=t,this.onAction("stop")}),this.$root.$on("hybrid_stop_instance_storage",t=>{this.$socket.client.emit("stop_storage",t)}),this.$root.$on("hybrid_stop_instance_poc",t=>{this.$socket.client.emit("stop_poc",t)})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token");v.dispatch("pipelineLLO/settoken",{token:this.token});this.socketopen()},beforeDestroy(){this.$root.$off("hybrid_show_info"),this.$root.$off("hybrid_start_instance"),this.$root.$off("hybrid_start_instance_custom"),this.$root.$off("hybrid_stop_instance"),this.$root.$off("hybrid_connect_server"),this.$root.$off("hybrid_install_instance"),this.$root.$off("hybrid_install_instance_custom"),this.$root.$off("hybrid_install_instance_storage"),this.$root.$off("SERVER_build_vmlist"),this.$root.$off("SERVER_build_kill"),this.$root.$off("SERVER_build_image")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{async guilogsclose(t){this.webinterfacegeneric_menou1typelog_active=!1,this.webinterfacegeneric_menou2typelog_active=!1,this.webinterfacegeneric_menou3typelog_active=!1,this.actionrowindexconsole=!1,this.$root.$emit("hybrid_show_instance_images","images")},async guilogs(t){var e=await v.dispatch("pipelineLLO/getlog4gui",{token:this.token,instance:this.webinterfacegeneric_menou2typedir});if(!e.data.error&&"no"!=e.data.log)if(1==t){this.webinterfacegeneric_menou1typedir_log=e.data.log,this.webinterfacegeneric_menou1typelog_active=!0,this.actionrowindexconsole=!0,this.$root.$emit("hybrid_show_instance_images","console");var a={};a.data=this.webinterfacegeneric_menou1typedir_log;await v.dispatch("pipelineLLO/getlogs",{container:this.hybridshowdata.ID});this.$root.$emit("hybrid_log_in",a)}else if(2==t){this.webinterfacegeneric_menou2typedir_log=e.data.log,this.webinterfacegeneric_menou2typelog_active=!0,this.actionrowindexconsole=!0,this.$root.$emit("hybrid_show_instance_images","console");a={};a.data=this.webinterfacegeneric_menou2typedir_log;await v.dispatch("pipelineLLO/getlogs",{container:this.hybridshowdata.ID});this.$root.$emit("hybrid_log_in",a)}else if(3==t){this.webinterfacegeneric_menou3typedir_log=e.data.log,this.webinterfacegeneric_menou3typelog_active=!0,this.actionrowindexconsole=!0,this.$root.$emit("hybrid_show_instance_images","console");a={};a.data=this.webinterfacegeneric_menou3typedir_log;await v.dispatch("pipelineLLO/getlogs",{container:this.hybridshowdata.ID});this.$root.$emit("hybrid_log_in",a)}},async updateNetwork(t,e){await v.dispatch("pipelineLLO/updatenetworks",{networks:this.selectedNetworks,defaultnetwork:this.localNetworkdefault,container:t.ID});this.$root.$emit("hybrid_refresh_networktable"),this.hybridshowdata={},this.addNetworkMenou=!1,this.localNetworks=[],this.selectedNetworks=[],this.localNetworkoptions=[],this.localNetworkdefault=""},async addNetwork(t,e){if("on"==e){this.addNetworkMenou=!0;var a=await v.dispatch("pipelineLLO/getnetworks",{instance:t.ID});this.localNetworks=a.data.data;var s="";this.localNetworkoptions=[];for(var i=0;i<this.localNetworks.length;i++){this.localNetworkdefault=this.localNetworks[i].NetworkMode[0];var o={};o.text=this.localNetworks[i].Name,o.value=this.localNetworks[i].Name,s=new RegExp(this.localNetworks[i].NetworkMode[0]),s.test(this.localNetworks[i].Name)?o.disabled=!0:o.disabled=!1,this.localNetworkoptions.push(o)}}else"off"==e&&(this.addNetworkMenou=!1)},async backupAndClose(t){if(t.isConfirmed)await v.dispatch("pipelineLLO/runbackup",{instance:this.hybridshowdata.Names});else console.log("no")},async onAction(t){if("start"==t){var e={action:"up"};e.token=this.token,e.swarmlabname=this.swarmlabname,e.swarmlabname_size=this.swarmlabname_size,e.swarmlabname_port=this.swarmlabname_port,this.$socket.client.open(),this.$socket.client.emit("start",e)}else if("startcustom"==t)this.$socket.client.open(),this.swarmlabnamecustomstart.baseservicedata=this.swarmlabnamecustomdata,this.$socket.client.emit("startcustom",this.swarmlabnamecustomstart);else if("basedireditor"==t){this.$wait.start("myRunInstanceeditor");var a=await v.dispatch("pipelineLLO/runeditor",{token:this.token,instance:this.hybridshowdata.Names});this.$root.$emit("SERVER_hybrid_table_stop")}else if("basebackupview"==t){var s="<h5><b>Backups</b><br> \n <br>\n ";s+='<p class="text-secondary">',s+=" <b>Click on hyperlink opens Directory in new tab</b></p>",s+='<b> <a class="text-info" href="http://127.0.0.1:3383/" target="_blank">View Backups</a></b>',s+="<br>",this.$swal({type:"Info",title:"Info!",icon:"info",html:s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}else if("basebackup"==t){s="Create a full backup of persistent data: <br><br> <p><b>"+this.hybridshowdata.Names;s+="</b></p><br>",this.$swal({type:"info",html:s,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Yes!"}).then(t=>{this.backupAndClose(t)})}else if("basedir"==t){a=await v.dispatch("pipelineLLO/getmountinfo",{instance:this.hybridshowdata.Names});var i=a.data.mypath,o=this.hybridshowdata.Networks.split("_"),n=i+o[0],r="";""!=n&&(r+="<b>Project BaseDir:</b> "+n);s="<h5><b>Base Directory - Persistent data</b><br> \n <br>\n ";var l=this.hybridshowdata.Networks.split("_");s+='<p class="text-primary">',s+=" <b>Click on hyperlink opens Directory in new tab</b></p>",s+=" <table>",s+="<tr><td><b>Local</b></td><td><i>Container</i></td></tr>";for(var c=a.data.test[0],d=new RegExp(l[0]),u=new RegExp("sec_bootstrap"),p=0;p<c.length;p++)if("bind"==c[p].Type&&d.test(c[p].Source)&&!u.test(c[p].Source)){var m=c[p].Source.indexOf(l[0]);s+='<tr style="outline: thin solid"><td><b> <a class="text-info" href="http://127.0.0.1:3382/'+c[p].Source.slice(m)+'" target="_blank">'+c[p].Source+"</a></b></td><td><i>"+c[p].Destination+" </i></td></tr>"}s+=" </table>",s+="<br><p>",s+=r,s+="</p>",this.$swal({type:"Info",icon:"info",html:s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}else if("shareinfo"==t){var h="no",b="microservice-jupyter",f=new RegExp(b);if(f.test(this.hybridshowdata.Names)){a=await v.dispatch("pipelineLLO/getjupyterinfo",{instance:this.hybridshowdata.Names});if(a.data.test){var w=a.data.test.split("?token="),g=w[1],y=g.split(" "),_=y[0],C=this.webinterface_port.split("->"),k=C[0].trim();h=`http://${k}/?token=${_}`}}a=await v.dispatch("pipelineLLO/getshareinfo",{instance:this.hybridshowdata.Names});this.hybridshowdatashare=a.data.network;var x=this.hybridshowdatashare.IPv4Address.split("/"),A="->",O=",",R=new RegExp(A),$=new RegExp(O);s="";if(R.test(this.hybridshowdata.Ports))try{if($.test(this.hybridshowdata.Ports))for(var L=this.hybridshowdata.Ports.split(","),S=0;S<L.length;S++){var I=L[S].split("->"),B=L[S].split("/");s+="no"==h?`<h5>URL: ${x[0]}:${B[0]}</h5>`:`<h5>URL: ${x[0]}:${B[0]}/?token=${_}</h5>`}else{I=this.hybridshowdata.Ports.split("->"),B=I[1].split("/"),s="";s="no"==h?`<h5>URL: ${x[0]}:${B[0]}</h5>`:`<h5>URL: ${x[0]}:${B[0]}/?token=${_}</h5>`}}catch(le){}this.$swal({title:"<strong>Share info</strong>",type:"info",html:s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1})}else if("container-logs"==t){this.actionrowindexconsole=!0,this.$root.$emit("hybrid_show_instance_images","console");a=await v.dispatch("pipelineLLO/getlogs",{container:this.hybridshowdata.ID})}else if("container-logsclose"==t)this.actionrowindexconsole=!1,this.$root.$emit("hybrid_show_instance_images","images"),this.webinterfacegeneric_menou1typelog_active=!1,this.webinterfacegeneric_menou2typelog_active=!1,this.webinterfacegeneric_menou3typelog_active=!1;else if("startwebgeneric"==t){this.$wait.start("myRunInstanceeditor");var N=this.hybridshowdata.Names.split("_");if("swarmlab"==this.swarmlab_services_type)a=await v.dispatch("pipelineLLO/rungui",{instance:N[0]});else if("custom"==this.swarmlab_services_type){var E=this.hybridshowdata_user.servicedata.user.split("@"),P=`${E[0]}-${this.hybridshowdata_user.servicedata.service}`,D=`community/${this.hybridshowdata_user.servicedata.user}_${this.hybridshowdata_user.servicedata.service}_${this.hybridshowdata_user.servicedata.baseservice}/${P}`;a=await v.dispatch("pipelineLLO/runguicustom",{instance:D,exec:this.webinterfacegeneric_menou_exec,id:P})}this.$wait.end("myRunInstanceeditor")}else if("startweb"==t){a=await v.dispatch("pipelineLLO/getjupyterinfo",{instance:this.hybridshowdata.Names});if(a.data.test){w=a.data.test.split("?token="),g=w[1],y=g.split(" "),_=y[0],C=this.webinterface_port.split("->"),k=C[0].trim(),h=`http://${k}/?token=${_}`,s=`<h5> \n <br>\n <b>Click \n <a class="text-info" href="${h}" target="_blank">here to open</a></span>\n </b>\n <br>\n <br>\n `;this.$swal({type:"Info",title:"Info!",icon:"info",html:s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}}else if("container-connect"==t){a=await v.dispatch("pipelineLLO/getmountinfo",{instance:this.hybridshowdata.Names});var T=a.data.mypath,V="/bin/sh",F=!1,G=new RegExp("^(hybrid-|HYBRID-)");if(G.test(this.hybridshowdata.Names)){F=!0,V="/bin/bash";var z="docker"}var M=new RegExp("(/poc-|/POC-)"),j="no",U=this.hybridshowdata.Networks.split("_"),Y=T+U[0];if(M.test(this.hybridshowdata.Image)){var q=new RegExp("(->)");if(q.test(this.hybridshowdata.Ports)){var H=this.hybridshowdata.Ports.split(":"),K=H[1].split("-"),W=new RegExp("^(web)");W.test(this.hybridshowdata.Names)&&(j="http://localhost:"+K[0]+"/?token="+this.token)}}var Q=new RegExp("(microservice-codeserver)"),J="no";if(Q.test(this.hybridshowdata.Names)){var Z=new RegExp("(->)");if(Z.test(this.hybridshowdata.Ports)){var X=this.hybridshowdata.Ports.split(":"),tt=X[1].split("-");J="http://localhost:"+tt[0]+"/?token="+this.token}}G=new RegExp("^(hybrid-|HYBRID-)");if(G.test(this.hybridshowdata.Names)){F=!0,V="/bin/bash";z="docker"}s="<h5> \n <hr>\n <b>Open a terminal and Run*:</b>\n <br>\n <br>\n";F?(s+='<p class="text-success">',s+="docker exec -it -u"+z+" "+this.hybridshowdata.Names+" "+V,s+="</p>"):(s+='<p class="text-success">',s+="docker exec -it "+this.hybridshowdata.Names+" "+V,s+="</p>"),"no"!=j&&(s+='<p class="text-info">',s+='<a href="'+j+'" target="_blank">Click here to open the Web_App</a>',s+="</p>"),"no"!=J&&(s+='<p class="text-info">',s+='<a href="'+J+'" target="_blank">Click here to open the Web_App</a>',s+="</p>");var et=this.hybridshowdata.Names.split("_"),at="no",st="no",it="no",nt="no",rt="no",lt="no",ct="no",dt="no",ut="no",pt="no",mt="no",ht="no",bt="no",vt="no",ft="no",wt="no",gt="no",yt="no";for(p=0;p<ot.length;p++){var _t=ot[p];if(_t.name==et[0]){var Ct=new RegExp("(->)");if(Ct.test(this.hybridshowdata.Ports))for(var kt=this.hybridshowdata.Ports.split(","),xt=0;xt<kt.length;xt++){var At=new RegExp("(0.0.0.0)");if(At.test(kt[xt])){if(_t.app){var Ot=new RegExp(_t.port);if(Ot.test(kt[xt])){var Rt=kt[xt].split(":"),$t=Rt[1].split("-");at=_t.url+"://localhost:"+$t[0]+"/?token="+this.token}}if(_t.ttyd){var Lt=new RegExp(_t.ttydport);if(Lt.test(kt[xt])){var St=kt[xt].split(":"),It=St[1].split("-");st=_t.ttydurl+"://localhost:"+It[0]+"/?token="+this.token}}if(_t.hasOwnProperty("app1")&&_t.app1){var Bt=new RegExp(_t.port1);if(Bt.test(kt[xt])){var Nt=kt[xt].split(":"),Et=Nt[1].split("-");it=_t.url1+"://localhost:"+Et[0]+"/?token="+this.token,nt=_t.link1}}if(_t.hasOwnProperty("app2")&&_t.app2){var Pt=new RegExp(_t.port2);if(Pt.test(kt[xt])){console.log("stringify--------- "+JSON.stringify(kt[xt]));var Dt=kt[xt].split(":"),Tt=Dt[1].split("-");rt=_t.url2+"://localhost:"+Tt[0]+"/?token="+this.token,lt=_t.link2}}if(_t.hasOwnProperty("app3")&&_t.app3){var Vt=new RegExp(_t.port3);if(Vt.test(kt[xt])){var Ft=kt[xt].split(":"),Gt=Ft[1].split("-");ct=_t.url3+"://localhost:"+Gt[0]+"/?token="+this.token,dt=_t.link3}}}}}}var zt="_masterservice_1",Mt=new RegExp(zt,"g"),jt=this.hybridshowdata.Names.replace(Mt,""),Ut=await v.dispatch("pipelineLLO/getinstallcustom",{token:this.token,instance:jt});if(Ut.data&&Ut.data.data){var Yt=JSON.parse(Ut.data.data);Ct=new RegExp("(->)");if(Ct.test(this.hybridshowdata.Ports))for(kt=this.hybridshowdata.Ports.split(","),xt=0;xt<kt.length;xt++){if(Yt.baseservicedata.ttyd){Lt=new RegExp(Yt.baseservicedata.ttydport);if(Lt.test(kt[xt])){St=kt[xt].split(":"),It=St[1].split("-");It[0]&&(st=Yt.baseservicedata.ttydurl+"://localhost:"+It[0]+"/?token="+this.token)}}if(Yt.baseservicedata.app){Ot=new RegExp(Yt.baseservicedata.port);if(Ot.test(kt[xt])){Rt=kt[xt].split(":"),$t=Rt[1].split("-");$t[0]&&(at=Yt.baseservicedata.url+"://localhost:"+$t[0]+"/?token="+this.token)}}if(Yt.baseservicedata.hasOwnProperty("app1")&&Yt.baseservicedata.app1){Bt=new RegExp(Yt.baseservicedata.port1);if(Bt.test(kt[xt])){Nt=kt[xt].split(":"),Et=Nt[1].split("-");Et[0]&&(it=Yt.baseservicedata.url1+"://localhost:"+Et[0]+"/?token="+this.token,nt=Yt.baseservicedata.link1)}}if(Yt.baseservicedata.hasOwnProperty("app2")&&Yt.baseservicedata.app2){Pt=new RegExp(Yt.baseservicedata.port2);if(Pt.test(kt[xt])){Dt=kt[xt].split(":"),Tt=Dt[1].split("-");Tt[0]&&(rt=Yt.baseservicedata.url2+"://localhost:"+Tt[0]+"/?token="+this.token,lt=Yt.baseservicedata.link2)}}if(Yt.baseservicedata.hasOwnProperty("app3")&&Yt.baseservicedata.app3){Vt=new RegExp(Yt.baseservicedata.port3);if(Vt.test(kt[xt])){Ft=kt[xt].split(":"),Gt=Ft[1].split("-");+Gt[0]&&(ct=Yt.baseservicedata.url3+"://localhost:"+Gt[0]+"/?token="+this.token,dt=Yt.baseservicedata.link3)}}var qt="Click to open ";if(Yt.servicedata.hasOwnProperty("port1")&&Yt.servicedata.port1){var Ht=new RegExp(Yt.servicedata.port1);if(Ht.test(kt[xt])){var Kt=kt[xt].split(":"),Wt=Kt[1].split("-");+Wt[0]&&(ut=Yt.servicedata.url1+"://localhost:"+Wt[0]+"/?token="+this.token,pt=qt,pt+=Yt.servicedata.name1)}}if(Yt.servicedata.hasOwnProperty("port2")&&Yt.servicedata.port2){var Qt=new RegExp(Yt.servicedata.port2);if(Qt.test(kt[xt])){var Jt=kt[xt].split(":"),Zt=Jt[1].split("-");+Zt[0]&&(mt=Yt.servicedata.url1+"://localhost:"+Zt[0]+"/?token="+this.token,ht=qt,ht+=Yt.servicedata.name2)}}if(Yt.servicedata.hasOwnProperty("port3")&&Yt.servicedata.port3){var Xt=new RegExp(Yt.servicedata.port3);if(Xt.test(kt[xt])){var te=kt[xt].split(":"),ee=te[1].split("-");+ee[0]&&(bt=Yt.servicedata.url3+"://localhost:"+ee[0]+"/?token="+this.token,vt=qt,vt+=Yt.servicedata.name3)}}if(Yt.servicedata.hasOwnProperty("port4")&&Yt.servicedata.port4){var ae=new RegExp(Yt.servicedata.port4);if(ae.test(kt[xt])){var se=kt[xt].split(":"),ie=se[1].split("-");+ie[0]&&(ft=Yt.servicedata.url4+"://localhost:"+ie[0]+"/?token="+this.token,wt=qt,wt+=Yt.servicedata.name4)}}if(Yt.servicedata.hasOwnProperty("port5")&&Yt.servicedata.port5){var oe=new RegExp(Yt.servicedata.port5);if(oe.test(kt[xt])){var ne=kt[xt].split(":"),re=ne[1].split("-");+re[0]&&(gt=Yt.servicedata.url5+"://localhost:"+re[0]+"/?token="+this.token,yt=qt,yt+=Yt.servicedata.name5)}}}}"no"!=st&&(s+="<hr>",s+='<p class="text-info">',s+='<a class="text-info" href="'+st+'" target="_blank"> - OR -<br>Click to open Terminal emulator</a>',s+="</p>",s+="<hr>"),"no"!=at&&(s+="<hr>",s+='<p class="text-info">',s+='<a class="text-secondary" href="'+at+'" target="_blank">Click here to open Web App</a>',s+="</p>",s+="<hr>"),"no"!=it&&(s+="<hr>",s+='<p class="text-info">',s+='<a class="text-info" href="'+it+'" target="_blank"> '+nt+"</a>",s+="</p>",s+="<hr>"),"no"!=rt&&(s+="<hr>",s+='<p class="text-info">',s+='<a class="text-info" href="'+rt+'" target="_blank"> '+lt+"</a>",s+="</p>",s+="<hr>"),"no"!=ct&&(s+="<hr>",s+='<p class="text-info">',s+='<a class="text-info" href="'+ct+'" target="_blank"> '+dt+"</a>",s+="</p>",s+="<hr>"),"no"!=ut&&(s+="<hr>",s+='<p class="text-info">',s+='<a class="text-info" href="'+ut+'" target="_blank"> '+pt+"</a>",s+="</p>",s+="<hr>"),"no"!=mt&&(s+="<hr>",s+='<p class="text-info">',s+='<a class="text-info" href="'+mt+'" target="_blank"> '+ht+"</a>",s+="</p>",s+="<hr>"),"no"!=bt&&(s+="<hr>",s+='<p class="text-info">',s+='<a class="text-info" href="'+bt+'" target="_blank"> '+vt+"</a>",s+="</p>",s+="<hr>"),"no"!=ft&&(s+="<hr>",s+='<p class="text-info">',s+='<a class="text-info" href="'+ft+'" target="_blank"> '+wt+"</a>",s+="</p>",s+="<hr>"),"no"!=gt&&(s+="<hr>",s+='<p class="text-info">',s+='<a class="text-info" href="'+gt+'" target="_blank"> '+yt+"</a>",s+="</p>",s+="<hr>");""!=Y&&"<b>Project BaseDir:</b> "+Y,this.$swal({type:"Info",icon:"info",html:s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}else if("install"==t){e={action:"up"};e.token=this.token,e.swarmlabname=this.swarmlabname,e.git=this.swarmlabname_git,this.$socket.client.open(),this.$socket.client.emit("install",e)}else if("installcustom"==t){e={action:"up"};e.token=this.token,e.swarmlabname=this.swarmlabnamecustom,e.user=this.swarmlabnamecustomuser,e.service=this.swarmlabnamecustomservice,e.baseservicedata=this.swarmlabnamecustomdata,e.git=this.swarmlabname_git,this.$socket.client.open(),this.$socket.client.emit("installcustom",e)}else"container-stop"==t?(this.actionrowindexconsole=!0,this.$root.$emit("hybrid_show_instance_images","console"),this.$root.$emit("SERVER_hybrid_table_start"),this.$socket.client.emit("container-stop",this.swarmlabname,this.hybridshowdata.ID)):"create-wirequard"==t?this.$socket.client.emit("create-wirequard",this.token):"stop"==t&&this.$socket.client.emit("stop",this.swarmlabname)},async runmore(t){console.log(t),"on"==t?(this.actionrowindex=!0,this.actionrowindexselect=!1):"off"==t&&(this.actionrowindex=!1,this.actionrowindexselect=!0,this.addNetworkMenou=!1,this.actionrowindexconsole=!1,this.$root.$emit("hybrid_show_instance_images","images"))},async socketopen(){this.$socket.client.open(),this.$socket.client.connect()},async socketauthenticate(){this.$socket.client.emit("authenticate",this.token)},async socketreconnect(){await this.socketopen();this.socketauthenticate()},async socketclose(){this.$socket.client.close()}},sockets:{connect(){this.issocket="open";v.dispatch("pipelineLLO/setsocketStatus",{status:"open"})},error(t){this.issocket="close";v.dispatch("pipelineLLO/setsocketStatus",{status:"close"})},connect_error(t){this.issocket="close";v.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketopen(),this.socketreconnect()},disconnect(t){this.issocket="close";v.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketreconnect()},connect_timeout(t){this.issocket="close";v.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketreconnect()},reconnect(t){this.socketreconnect()},reconnect_attempt(t){this.socketreconnect()},reconnecting(t){this.socketreconnect()},reconnect_error(t){this.issocket="close";v.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketreconnect()},unauthorized(t){this.issocket="close";v.dispatch("pipelineLLO/setsocketStatus",{status:"close"})},socket_id_emit(t){this.issocket="open";v.dispatch("pipelineLLO/setsocketStatus",{status:"open"})},async logdata(t){v.dispatch("pipelineLLO/addlog",{log:t});var e=v.getters["pipelineLLO/getlog"];this.log_path=[...new Set(e.map(t=>t.tailed_path))];var a="";for(let i of this.log_path)if(a=e.filter(t=>t.tailed_path===i).length,s["default"].set(this.log_path_lenght,i,a),a>this.loglenghttotal)v.dispatch("pipelineLLO/taillog",{path:i})},async message(t){},async message_config(t){t.data=JSON.parse(t.data),"ok"==t.file?(this.CONFIG.status=t.data.status,this.CONFIG.workerkey=t.data.workerkey,this.CONFIG.swarmlab_public_wgkey=t.data.swarmlab_public_wgkey,this.CONFIG.server_ip=t.data.server_ip,this.CONFIG.allowed_ips=t.data.allowed_ips,this.CONFIG.wg_port=t.data.wg_port,this.CONFIG.wg_ip=t.data.wg_ip,this.CONFIG.swarm_ip=t.data.swarm_ip,this.CONFIG.privatekey=t.data.privatekey,this.CONFIG.publickey=t.data.publickey):"nodata"==t.file&&(this.CONFIG.status="",this.CONFIG.workerkey="",this.CONFIG.swarmlab_public_wgkey="",this.CONFIG.server_ip="",this.CONFIG.allowed_ips="",this.CONFIG.wg_port="",this.CONFIG.wg_ip="",this.CONFIG.swarm_ip="",this.CONFIG.privatekey="",this.CONFIG.publickey=""),v.dispatch("pipelineLLO/addconfig",this.CONFIG),this.$root.$emit("hybrid_connect_server_view",this.CONFIG)},async message_log(t){this.$root.$emit("hybrid_log_in",t)},async message_out(t){this.$root.$emit("hybrid_log_in",t),this.$root.$emit("SERVER_hybrid_table_start"),this.hybridshowdata={}},async message_err(t){var e=new RegExp("error checking context");if(e.test(t.data)){var a=t.cwdpath,s=t.service,i="<b>error checking context:</b> 'no permission to read from ...",o=`<h5><b>You might see an error message:</b></h5><br>\n <samp> ${i} </samp>\n <br>\n <br>\n <b>In this case open Open a terminal and Run:</b>\n <br>\n <br> `;o+='<p class="text-success">',o+="sudo chown -R $USER.$USER "+a+"/instance/"+s+"/"+s,o+="</p>",o+="<br> <br> <b>and try again</b> <br>",this.$swal({type:"info",html:o,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}this.$root.$emit("hybrid_log_in",t)},async message_close(t){0!=t.data&&t.data&&this.$root.$emit("hybrid_log_in",t),this.$root.$emit("hybrid_refresh_table"),this.$root.$emit("SERVER_hybrid_table_stop")},async message_err_storage(t){this.$root.$emit("hybrid_log_in",t)},async message_out_storage(t){this.$root.$emit("hybrid_log_in",t)},async message_close_storage(t){this.$root.$emit("hybrid_log_in",t),this.$root.$emit("hybrid_refresh_table_storage")},async message_err_poc(t){this.$root.$emit("hybrid_log_in",t)},async message_out_poc(t){this.$root.$emit("hybrid_log_in",t)},async message_close_poc(t){this.$root.$emit("hybrid_log_in",t),this.$root.$emit("hybrid_refresh_table_poc")},async message_close_build(t){this.$root.$emit("SERVER_build_closebuild",t)},async message_exec_editor(t){if(t.start){this.$root.$emit("SERVER_hybrid_table_stop"),this.editor_instance.start=t.start,this.editor_instance.start=t.port;var e="<h5><b>Editor</b><br> \n <br>\n ";e+='<p class="text-secondary">',e+=" <b>Click on hyperlink opens Editor in new tab</b></p>",e+='<b> <a class="text-info" href="http://127.0.0.1:'+t.port+'" target="_blank">Open Editor</a></b>',e+="<br>",this.$swal({type:"Info",title:"Info!",icon:"info",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"}),this.$wait.end("myRunInstanceeditor")}},async build_set_sshpid(t){this.$root.$emit("SERVER_build_set_sshpid",t)},async build_set_buildpid(t){this.$root.$emit("SERVER_build_set_buildpid",t)},async message_hybrid_status(t){var e={};e.status=t;v.dispatch("pipelineLLO/setstatus",e);this.$root.$emit("hybrid_server_status",t),this.STATUS.swarmlabid=t.data.swarmlabid,this.STATUS.hybrid=t.data.hybrid,this.STATUS.swarmlab=t.data.swarmlab,v.dispatch("pipelineLLO/addstatusswarmlab",this.STATUS)}},actions:{}},lt=rt,ct=(a("4cf0"),Object(_["a"])(lt,at,st,!1,null,null,null)),dt=ct.exports,ut=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[t.vieconsoleicon?s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("3606"),alt:"..."}})]):t._e(),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"row text-center"},[s("div",{staticClass:" col text-center"},[s("v-wait",{attrs:{for:"myRunInstance1"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c"),width:"50",height:"50"}}),t._v(" Lab_Instance... ")])])],2)],1)])]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12 text-center"},[s("b",[s("span",{staticClass:"text-muted"},[t._v("Your")]),t._v(" "),s("span",{staticClass:"text-info"},[t._v(" System Console")])])])])]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("br"),t.extenderror?s("button",{staticClass:"btn btn-outline-danger btn-sm float-left",attrs:{type:"button",round:""},on:{click:function(e){return t.runextenderror()}}},[t._v(" Error: max depth exceeded")]):t._e(),t.tryConsole?s("button",{staticClass:"btn btn-outline-warning btn-sm float-left",attrs:{type:"button",round:""},on:{click:function(e){return t.clear()}}},[t._v(" Clear")]):t._e(),"sublime"==t.cmOptions.keyMap?s("button",{staticClass:"btn btn-outline-info btn-sm float-left",attrs:{type:"button",round:""},on:{click:t.infoFilter}},[t._v(" i")]):t._e(),s("button",{staticClass:"btn btn-sm float-center",attrs:{round:"",type:"button"}}),s("button",{staticClass:"ti-zoom-out btn btn-lg float-right",attrs:{round:"",type:"button"},on:{click:function(e){return t.viewminus()}}}),s("button",{staticClass:"btn btn-lg text-muted float-right",attrs:{round:"",type:"button"}},[s("b",[t._v(" "+t._s(t.fontsize))]),t._v("px ")]),s("button",{staticClass:"ti-zoom-in btn btn-lg float-right",attrs:{round:"",type:"button"},on:{click:function(e){return t.viewplus()}}})])]),s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("div",{staticClass:"codemirror"},[s("codemirror",{ref:"myCm",attrs:{value:t.code,options:t.cmOptions},on:{cursorActivity:t.onCmCursorActivity,ready:t.onCmReady,focus:t.onCmFocus,input:t.onCmCodeChange}})],1)])])])],1)},pt=[],mt=a("8f94"),ht=(a("c4e3"),a("21a6"),a("a7be"),a("eb8f"),a("b866"),a("31c5"),a("9b74"),a("f6b6"),a("3c98"),a("9c7b"),a("715d"),a("b933"),a("23de"),a("02f0"),a("8c33"),a("7289"),a("2aed"),a("d72f"),a("0b6c"),a("9a48"),a("75f8"),a("697eb"),a("aedd"),a("164b"),a("4895"),a("cbc8"),a("8d70"),a("9f09"),a("a2c1"),a("56b3"),a("d7d5"),{components:{card:k,codemirror:mt["codemirror"]},data(){return{vieconsoleicon:!0,socketonline:!1,extenderror:!1,tryConsole:!1,ssl:{},getinfo:"",token:"",swarmlabname:"",code:"",editchoice:"",optionsedit:[{text:"code",value:"code"},{text:"text",value:"text"}],llodesc:[{llo_url:"",llo_name:"",llo_author:"",llo_intro:""}],llo:[{id:0,rm:!1,data_info:"Asciidoc \n",data_code:"#Your source code",data_service:"",code_datafile:"url",code_name:"",code_exec:"",code_options:"",code_mime:"",code_info:"",code_code:"",code_codeout:"",code_codeoutput:"console",points:"",challenge_question:"",code_challenge_question:"",challenge_answer:"",challenge_answer_hint:"",code_challenge_answer_hint:"",challenge_answer_source:"",challenge_answer_code_out:"",challenge_answer_code:"",code_challenge_answer_code:""}],searchLLO:[],searchLLOactive:!1,ADOC_html_code:"",challenge:[],action:"",tryLLO:[],service:"os2",active:0,activecount:0,remove:"",activeField:"",bootstrap:!1,firstbootstrap:0,htmlasciitmp:"",datafile:"https://git.swarmlab.io:3000/labs/examples-mpi2/raw/branch/master/0_netstat/data",datadir:"0_netstat/data",LearningObject:"",showllo:!0,showlloedit:!0,selected:"sublime",options:[{text:"vim",value:"vim"},{text:"sublime",value:"sublime"}],optionsmime:[{text:"sh",value:"bash"},{text:"javascript",value:"javascript"},{text:"python",value:"python"},{text:"php",value:"php"},{text:"sql",value:"sq;"},{text:"xml",value:"xml"},{text:"c",value:"c"}],pValidate:!1,cmOptions:{tabSize:2,styleActiveLine:!0,lineNumbers:!0,lineSeparator:"\n",line:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:!0},styleSelectedText:!0,mode:"shell",hintOptions:{completeSingle:!1},keyMap:"sublime",matchBrackets:!0,showCursorWhenSelecting:!0,indentUnit:this.ADOC_html_code,lineWrapping:!0,theme:"idea",refresh:!0,readOnly:!0,autofocus:!1,extraKeys:{Ctrl:"autocomplete"}},fontsize:11,ADOC_html:[]}},methods:{setconsolefont(){this.fontsize=v.getters["pipelineLLO/getmyCmfontSize"],document.documentElement.style.setProperty("--myCmfontSize",this.fontsize+"px"),this.$refs.myCm.codemirror.refresh()},viewplus(){this.fontsize=v.getters["pipelineLLO/getmyCmfontSize"],this.fontsize++,document.documentElement.style.setProperty("--myCmfontSize",this.fontsize+"px"),this.$refs.myCm.codemirror.refresh();v.dispatch("pipelineLLO/setmyCmfontSize",{size:this.fontsize})},viewminus(){this.fontsize=v.getters["pipelineLLO/getmyCmfontSize"],this.fontsize--,document.documentElement.style.setProperty("--myCmfontSize",this.fontsize+"px"),this.$refs.myCm.codemirror.refresh();v.dispatch("pipelineLLO/setmyCmfontSize",{size:this.fontsize})},socketconnect(){this.$root.$emit("SERVER_socket_connect")},clear(){this.tryConsole=!1,this.code=""},async getdata(){var t=this.getinfo;await v.dispatch("pipelineLLO/get_data",{code:t})},async showactive(t){this.topwindow(t)},onCmReady(t){t.on("change",(t,e)=>{}),t.on("keypress",()=>{t.showHint({completeSingle:!1})})},onCmCursorActivity(t,e,a){},onCmFocus(t){},onCmCodeChange(t){this.code=t},handleChange(){},setKeymap(){this.cmOptions.keyMap=this.selected},infoFilter(){var t="<h3>Playbook Images</h3>",e='<table class="table table-striped table-sm "><tr><td class="text-left">Shift-Tab</td> <td class="text-left">indentLess</td></tr><tr><td class="text-left">Alt-Q</td> <td class="text-left">wrapLines</td></tr><tr><td class="text-left">Ctrl-Up</td> <td class="text-left">scrollLineUp</td></tr><tr><td class="text-left">Ctrl-Down</td> <td class="text-left">scrollLineDown</td></tr><tr><td class="text-left">Ctrl-L</td> <td class="text-left">selectLine</td></tr><tr><td class="text-left">Esc</td> <td class="text-left">singleSelectionTop</td></tr><tr><td class="text-left">Ctrl-Enter</td> <td class="text-left">insertLineAfter</td></tr><tr><td class="text-left">Ctrl-D</td> <td class="text-left">selectNextOccurrence</td></tr><tr><td class="text-left">Shift-Ctrl-Space</td> <td class="text-left">selectScope</td></tr><tr><td class="text-left">Shift-Ctrl-M</td> <td class="text-left">selectBetweenBrackets</td></tr><tr><td class="text-left">Ctrl-M</td> <td class="text-left">goToBracket</td></tr><tr><td class="text-left">Ctrl-K Ctrl-Y</td> <td class="text-left">sublimeYank</td></tr><tr><td class="text-left">Ctrl-K Ctrl-C</td> <td class="text-left">showInCenter</td></tr><tr><td class="text-left">Ctrl-K Ctrl-G</td> <td class="text-left">clearBookmarks</td></tr><tr><td class="text-left">Ctrl-K Ctrl-Backspace</td> <td class="text-left">delLineLeft</td></tr><tr><td class="text-left">Ctrl-K Ctrl-0</td> <td class="text-left">unfoldAll</td></tr><tr><td class="text-left">Ctrl-K Ctrl-J</td> <td class="text-left">unfoldAll</td></tr><tr><td class="text-left">Ctrl-Alt-Up</td> <td class="text-left">addCursorToPrevLine</td></tr><tr><td class="text-left">Ctrl-Alt-Down</td> <td class="text-left">addCursorToNextLine</td></tr><tr><td class="text-left">Ctrl-F3</td> <td class="text-left">findUnder</td></tr><tr><td class="text-left">Shift-Ctrl-F3</td> <td class="text-left">findUnderPrevious</td></tr><tr><td class="text-left">Shift-Ctrl-[</td> <td class="text-left">fold</td></tr><tr><td class="text-left">Shift-Ctrl-]</td> <td class="text-left">unfold</td></tr><tr><td class="text-left">Ctrl-F</td> <td class="text-left">find</td></tr></table>',a=(t="","");this.$swal({title:"<strong>Key bindings</strong>",type:"info",html:e+t+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1})},async hotreload(){this.getinfo,await v.dispatch("pipelineLLO/hotreload",{token:this.token,swarmlabname:this.swarmlabname})},runextenderror(){var t=' <div style="overflow-x: auto;">\n <p>\n It\'s the total amount of layers; \n </p>\n <p class="text-left">\n <b>The current limit of 125 layers is due to the kernel\'s ARG_MAX</b>, which limits the number of arguments / length of arguments that can be passed when mounting the layers \n \n<br> <i> (this limit can be raised in kernels, but is not something that could be relied on as it would make those images non-interoperable on systems that don\'t have the custom configuration)</i>\n </p>\n <p class="text-left">\n Note that not every step in a Dockerfile creates a new layer, <b>only (RUN) steps that modify the filesystem will introduce a new layer</b>.\n </p>\n\n <p class="text-center">\n <h5> <b>Solution</b> </h5>\n </p>\n <p class="text-left">\n Delete all local docker images related to your dockerfile using the following:\n <br>\n <br>\n <i><b>docker rmi -f $(docker images -a -q)</b></i>\n </p>\n\n <p class="text-left">\n <h5> <b>Description</b> </h5>\n <br>\n Remove unused image <br>\n - all images not referenced by any container -\n </p>\n <p class="text-left">\n <h5> <b>Filtering</b> </h5>\n <br>\n <i><b>docker rmi -f $(docker images -a | grep "IMAGE_NAME" | awk \'{ print $3 }\')</b></i>\n </p>\n\n</div>';this.$swal({title:"<strong>Info</strong>",type:"info",html:t,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1})}},computed:{codemirror(){return this.$refs.myCm.codemirror}},mounted(){this.$root.$on("SERVER_socket_status",t=>{this.$nextTick((function(){"off"==t?this.socketonline=!1:"on"==t&&(this.socketonline=!0)}))}),this.$root.$on("hybrid_log_in",t=>{var e=this.$refs.myCm.codemirror.getDoc(),a=e.getCursor(),s=e.getLine(a.line),i={line:a.line,ch:s.length-1};e.replaceRange(t.data,i),e.replaceRange("\n",i),this.$refs.myCm.codemirror.setCursor(this.$refs.myCm.codemirror.lineCount(),0);var o=new RegExp("max depth exceeded");o.test(t.data)?this.extenderror=!0:console.log("not find"),this.tryConsole=!0}),this.$root.$on("SERVER_hybrid_table_start",t=>{this.$nextTick((function(){this.$wait.start("myRunInstance1")}))}),this.$root.$on("SERVER_hybrid_table_stop",t=>{this.$nextTick((function(){this.$wait.end("myRunInstance1")}))}),this.$root.$on("hybrid_console_not_view",t=>{t?this.vieconsoleicon=!0:t||(this.vieconsoleicon=!1),this.setconsolefont()})},beforeDestroy(){this.$root.$off("SERVER_socket_status"),this.$root.$off("hybrid_log_in"),this.$root.$off("SERVER_hybrid_table_start"),this.$root.$off("SERVER_hybrid_table_stop"),this.$root.$off("hybrid_console_not_view")},created(){this.token=new URL(location.href).searchParams.get("token"),this.swarmlabname=new URL(location.href).searchParams.get("pipelinename")}}),bt=ht,vt=(a("0b43"),Object(_["a"])(bt,ut,pt,!1,null,null,null)),ft=vt.exports,wt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("v-wait",{attrs:{for:"myRunInstancetutor"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:t.setRefresh}},[t._v(" Refresh running instances")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search by Name"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),s("vuetable",{key:t.vuetablekeyb,ref:"vuetable",attrs:{id:"idvuetablekeyb","api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:row-class":t.onRowClass,"vuetable:row-clicked":t.rowClicked,"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess,"vuetable:load-error":t.onLoadError},scopedSlots:t._u([{key:"actions",fn:function(e){return s("div",{},[t.rowvactionrowindex==e.rowData.Names?s("button",{staticClass:"ti-info btn btn-info btn-sm",attrs:{round:""},on:{click:function(a){return t.onAction("view-item",e.rowData,e.rowIndex)}}}):t._e()])}}])}),s("div",{staticClass:"vuetable-pagination ui basic segment grid"},[s("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),s("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},gt=[],yt={components:{card:k,Vuetable:$["Vuetable"],VuetablePagination:S["a"],VuetablePaginationInfo:L["a"],VuetablePaginationDropdown:$["VuetablePaginationDropdown"]},props:{},data(){return{isActive:!1,actionrowindex:"",rowvactionrowindex:"",playbookInfo:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"hybrid",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],vuetablekeyb:0,fielddata:{},fields:[{name:"Names",title:'<span class="orange"></span>Instance',sortField:"Names",visible:!0,dataClass:"text-left text-wrap text-break break-word text-info",width:"50%",callback:function(t){var e=`<button type="button" class="btn btn-link text-muted"\n >${t}</button>`;return e}},{name:"Image",title:'<span class="orange"></span>Image',visible:!0,dataClass:"left aligned text-muted w-25",width:"25%",callback:function(t){var e=`<button type="button" class="btn btn-link text-muted">${t}</button>`;return e}},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"Status",title:'<span class="orange"></span>Status',sortField:"Status",titleClass:"center aligned",dataClass:"left aligned text-muted",visible:!0,width:"35%",callback:function(t){var e=`<button type="button" class="btn btn-link text-muted">${t}</button>`;return e}},{name:"ID",sortField:"ID",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"20%"},{name:"__slot:actions",title:"Info",titleClass:"center aligned",dataClass:"center aligned",width:"5%"}],apiurl:d.url_80+"/dockerservices",css:I["a"],perpage:10,searchFor:"",sortOrder:[{field:"Names",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts",tutor:"yes"}}},mounted(){this.$root.$on("hybrid_refresh_networktable",()=>{s["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.refreshVuetable()}),this.$root.$on("hybrid_refresh_dockerservices",()=>{s["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.refreshVuetable()}),this.$root.$on("hybrid_refresh_table",t=>{this.$nextTick((function(){s["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.viewhybridoptions=!1}))})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token")},beforeDestroy(){this.$root.$off("hybrid_refresh_networktable"),this.$root.$off("hybrid_refresh_dockerservices"),this.$root.$off("hybrid_refresh_table")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{onError(t,e){var a=e,s="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:s+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},setRefresh(){this.moreParams={filter:"",type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",s["default"].nextTick(()=>this.$refs.vuetable.refresh())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t)},onChangePage(t){this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async onAction(t,e,a){if(this.actionrowindex=a,this.$root.$emit("hybrid_show_info",e),"view-item"==t){var s=await v.dispatch("pipelineLLO/hybrid_inspectcontainer",{token:this.token,instance:e.ID}),i="<h5>Instance Info <b> "+e.Names+"</b> <br> id: "+e.ID+"<br></h5>";i+='<div class="overflow-auto" style="width:100%;height:450px;"><samp>'+JSON.stringify(s.data.test[0])+"</samp></div>",this.$swal({type:"Info",title:"Info!",icon:"warning",html:i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}else"delete-item"==t&&this.$swal({type:"info",html:i+winfo,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Yes, Delete it!"})},refreshVuetable(){this.$nextTick(()=>{this.vuetablekeyb+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){this.$root.$emit("hybrid_show_info",t),this.rowvactionrowindex=t.Names},onRowClass(t,e){return t.isOverdue?"color-red":"color-white"},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length},onLoadError(t){"401"==t.response.status&&(window.location.href="https://api-login.swarmlab.io:8089",s["default"].nextTick(()=>window.location.href="https://api-login.swarmlab.io:8089"))}},actions:{}},_t=yt,Ct=(a("0390"),Object(_["a"])(_t,wt,gt,!1,null,null,null)),kt=Ct.exports,xt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("3606"),alt:"..."}})]),s("v-wait",{attrs:{for:"myRunInstancedockerimages"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Clear ... ")])])],2),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"col-12 text-center"},[s("b",[s("span",{staticClass:"text-muted"},[t._v("View and Manage your")]),t._v(" "),s("span",{staticClass:"text-info"},[t._v("Local System")])])])]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"col-12"},[s("br")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-12"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"ti-settings btn btn-outline-success",attrs:{round:"",type:"button"}})]),s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setview}},[t._v(" Networks ")]),s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"}},[t._v(" Images ")])])])])]),t._v(" "),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"col-12"},[s("br")])]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"col-12 text-center"},[s("b",[s("span",{staticClass:"text-info"},[t._v("Images, Containers and Volumes")])])])]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"col-12"},[s("br")])]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"col-12"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-secondary",attrs:{round:"",type:"button",disabled:""}},[t._v(" Clear All: ")]),s("button",{staticClass:"btn btn-outline-danger",attrs:{round:"",type:"button"},on:{click:function(e){return t.rmall_i("images")}}},[t._v(" Images")]),s("button",{staticClass:"btn btn-outline-danger",attrs:{round:"",type:"button"},on:{click:function(e){return t.rmall_i("containers")}}},[t._v(" Containers")]),s("button",{staticClass:"btn btn-outline-danger",attrs:{round:"",type:"button"},on:{click:function(e){return t.rmall_i("volumes")}}},[t._v(" Volumes")])])])])]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"col-12"},[s("br")])]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"col-12"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:t.setRefresh}},[t._v(" Refresh images")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search by Name"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])])])]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("vuetable",{key:t.vuetablekeybimages,ref:"vuetable",attrs:{id:"idvuetablekeybimages","api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess,"vuetable:load-error":t.onLoadError},scopedSlots:t._u([{key:"actions",fn:function(e){return s("div",{},[s("button",{staticClass:"ti-trash btn btn-sm text-warning",attrs:{round:""},on:{click:function(a){return t.onAction("rm-item",e.rowData,e.rowIndex)}}}),s("button",{staticClass:"ti-info btn btn-sm",attrs:{round:""},on:{click:function(a){return t.onAction("info-item",e.rowData,e.rowIndex)}}})])}}])}),s("div",{staticClass:"vuetable-pagination ui basic segment grid"},[s("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),s("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)])],1)},At=[],Ot={components:{card:k,Vuetable:$["Vuetable"],VuetablePagination:S["a"],VuetablePaginationInfo:L["a"],VuetablePaginationDropdown:$["VuetablePaginationDropdown"]},props:{},data(){return{actionrowindex:"",playbookInfo:{},rmactionclear:"",image2rm:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"hybrid",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekeybimages:0,fielddata:{},fields:[{name:"ID",title:'<span class="orange"></span>Image id',visible:!1,dataClass:"text-left text-wrap text-break break-word",width:"15%"},{name:"Repository",title:'<span class="orange"></span>Images',sortField:"Image",visible:!0,dataClass:"left aligned w-25 text-muted",width:"30%"},{name:"Tag",titleClass:"center aligned",dataClass:"left aligned w-15 text-muted",visible:!0,width:"5%"},{name:"CreatedSince",sortField:"CreatedSince",titleClass:"center aligned",dataClass:"left aligned w-20 text-muted",visible:!0,width:"10%"},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"Size",title:'<span class="orange"></span>Size',sortField:"Size",dataClass:"left aligned text-muted",titleClass:"center aligned",visible:!0,width:"5%"},{name:"__slot:actions",title:"Actions",titleClass:"center aligned",dataClass:"center aligned",width:"8%"}],apiurl:d.url_80+"/dockerimages",css:I["a"],perpage:5,searchFor:"",sortOrder:[{field:"Names",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts",tutor:"yes"}}},mounted(){this.$root.$on("hybrid_refresh_networktable",()=>{s["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.refreshVuetable()}),this.$root.$on("hybrid_refresh_dockerservices",()=>{s["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.refreshVuetable()}),this.$root.$on("hybrid_refresh_table",t=>{this.$nextTick((function(){s["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.viewhybridoptions=!1}))})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token")},beforeDestroy(){this.$root.$off("hybrid_refresh_networktable"),this.$root.$off("hybrid_refresh_dockerservices"),this.$root.$off("hybrid_refresh_table")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{onError(t,e){var a=e,s="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:s+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},setRefresh(){this.moreParams={filter:"",type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",s["default"].nextTick(()=>this.$refs.vuetable.refresh())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t)},onChangePage(t){this.$refs.vuetable.changePage(t)},setview(){this.$root.$emit("hybrid_show_instance_images","networks")},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async rmall_i(t){this.rmactionclear=t;var e="<h5>This will remove all unused "+t+" from system. </h5>";this.$swal({type:"Info",title:"Info!",icon:"warning",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"}).then(t=>{this.onActionHybrid_containerrmall(t)})},async onActionHybrid_containerrmall(t){var e=this.rmactionclear;if(t.isConfirmed){this.$wait.start("myRunInstancedockerimages");var a=await v.dispatch("pipelineLLO/hybrid_rmall",{token:this.token,action:e});if(this.$wait.end("myRunInstancedockerimages"),"no"==a.data.error)if("images"!=e){var i='<h5> <div class="overflow-auto">'+a.data.out+"</div></h5>";this.$swal({type:"Info",title:"Info!",icon:"info",html:i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Ok!"})}else s["default"].nextTick(()=>this.$refs.vuetable.refresh());else{i="<h5> "+a.data.error_msg+"</h5>";this.$swal({type:"Info",title:"Error!",icon:"error",html:i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Ok!"})}}},async onAction(t,e,a){if(this.actionrowindex=a,this.image2rm=e,"info-item"==t){var s=await v.dispatch("pipelineLLO/hybrid_inspectimages",{token:this.token,instance:this.image2rm.ID}),i="<h5>Image Info <b> "+e.Repository+"</b> <br> id: "+e.ID+"<br></h5>";i+='<samp class="overflow-auto">'+JSON.stringify(s.data.test[0])+"</samp>",this.$swal({type:"Info",title:"Info!",icon:"warning",html:i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}else if("rm-item"==t){i="test",i="<h5>This will remove the image <b> "+e.Repository+"</b> <br></h5>";this.$swal({type:"Info",title:"Info!",icon:"warning",html:i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"}).then(t=>{this.onActionHybrid_imagerm(t)})}},async onActionHybrid_imagerm(t){if(t.isConfirmed){var e=await v.dispatch("pipelineLLO/hybrid_rmimage",{token:this.token,instance:this.image2rm.ID});if("ok"!=e.data.test){var a="<h5> "+e.data.test+"</h5>";this.$swal({type:"Info",title:"Error!",icon:"error",html:a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Ok!"})}s["default"].nextTick(()=>this.$refs.vuetable.refresh())}},refreshVuetable(){this.$nextTick(()=>{this.vuetablekeybimages+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){return{html:!0,title:()=>"Hello <b>Popover:</b> "+ ++this.counter,content:()=>"The date is:<br><em>"+new Date+"</em>"}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length},onLoadError(t){"401"==t.response.status&&(window.location.href="https://api-login.swarmlab.io:8089",s["default"].nextTick(()=>window.location.href="https://api-login.swarmlab.io:8089"))}},actions:{}},Rt=Ot,$t=(a("d013"),Object(_["a"])(Rt,xt,At,!1,null,null,null)),Lt=$t.exports,St=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("3606"),alt:"..."}})]),s("v-wait",{attrs:{for:"myRunInstancedockerimages1a"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Clear ... ")])])],2),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"col-12 text-center"},[s("b",[s("span",{staticClass:"text-muted"},[t._v("View and Manage your")]),t._v(" "),s("span",{staticClass:"text-info"},[t._v("Local System")])])])]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"col-12"},[s("br")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-12"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"ti-settings btn btn-outline-success",attrs:{round:"",type:"button"}})]),s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"}},[t._v(" Networks ")]),s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setview}},[t._v(" Images ")])])])])]),t._v(" "),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"col-12"},[s("br")])]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"col-12 text-center"},[s("b",[s("span",{staticClass:"text-info"},[t._v("Docker Networks")])])])]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"col-12"},[s("br")])]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:t.setRefresh}},[t._v(" Refresh networks")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search by Name"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])])]),s("vuetable",{key:t.vuetablekeybnetworks1,ref:"vuetable",attrs:{id:"idvuetablekeybnetworks1","api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess,"vuetable:load-error":t.onLoadError},scopedSlots:t._u([{key:"actions",fn:function(e){return s("div",{},[s("button",{staticClass:"ti-trash btn btn-sm text-warning",attrs:{round:""},on:{click:function(a){return t.onAction("rm-item",e.rowData,e.rowIndex)}}}),s("button",{staticClass:"ti-info btn btn-sm",attrs:{round:""},on:{click:function(a){return t.onAction("info-item",e.rowData,e.rowIndex)}}})])}}])}),s("div",{staticClass:"vuetable-pagination ui basic segment grid"},[s("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),s("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)},It=[],Bt={components:{card:k,Vuetable:$["Vuetable"],VuetablePagination:S["a"],VuetablePaginationInfo:L["a"],VuetablePaginationDropdown:$["VuetablePaginationDropdown"]},props:{},data(){return{actionrowindex:"",playbookInfo:{},rmactionclear:"",image2rm:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"hybrid",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekeybnetworks1:0,fielddata:{},fields:[{name:"ID",title:'<span class="orange"></span>Network id',visible:!1,dataClass:"text-left text-wrap text-break break-word",width:"15%"},{name:"Name",title:'<span class="orange"></span>Network',sortField:"Name",visible:!0,dataClass:"left aligned w-50 text-muted",width:"50%"},{name:"Driver",titleClass:"center aligned",dataClass:"left aligned w-20 text-muted",visible:!0,width:"5%"},{name:"CreatedAt",sortField:"CreatedAt",titleClass:"center aligned",dataClass:"left aligned w-15 text-muted",visible:!0,width:"15%",callback:function(t){var e=t.split(" "),a=e[0];return a}},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"Scope",title:'<span class="orange"></span>Scope',sortField:"Scope",titleClass:"center aligned",visible:!1,width:"5%"},{name:"__slot:actions",title:"Actions",titleClass:"center aligned",dataClass:"center aligned",width:"10%"}],apiurl:d.url_80+"/dockernetworks",css:I["a"],perpage:5,searchFor:"",sortOrder:[{field:"Names",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts",tutor:"yes"}}},mounted(){this.$root.$on("hybrid_refresh_networktable",()=>{s["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.refreshVuetable()}),this.$root.$on("hybrid_refresh_dockerservices",()=>{s["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.refreshVuetable()}),this.$root.$on("hybrid_refresh_table",t=>{this.$nextTick((function(){s["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.viewhybridoptions=!1}))})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token")},beforeDestroy(){this.$root.$off("hybrid_refresh_networktable"),this.$root.$off("hybrid_refresh_dockerservices"),this.$root.$off("hybrid_refresh_table")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{onError(t,e){var a=e,s="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:s+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},setRefresh(){this.moreParams={filter:"",type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",s["default"].nextTick(()=>this.$refs.vuetable.refresh())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t)},onChangePage(t){this.$refs.vuetable.changePage(t)},setview(){this.$root.$emit("hybrid_show_instance_images","images")},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async rmall_i(t){this.rmactionclear=t;var e="<h5>This will remove all unused "+t+" from system. </h5>";this.$swal({type:"Info",title:"Info!",icon:"warning",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"}).then(t=>{this.onActionHybrid_containerrmall(t)})},async onActionHybrid_containerrmall(t){var e=this.rmactionclear;if(t.isConfirmed){this.$wait.start("myRunInstancedockerimages1a");var a=await v.dispatch("pipelineLLO/hybrid_rmall",{token:this.token,action:e});if(this.$wait.end("myRunInstancedockerimages1a"),"no"==a.data.error)if("images"!=e){var i='<h5> <div class="overflow-auto">'+a.data.out+"</div></h5>";this.$swal({type:"Info",title:"Info!",icon:"info",html:i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Ok!"})}else s["default"].nextTick(()=>this.$refs.vuetable.refresh());else{i="<h5> "+a.data.error_msg+"</h5>";this.$swal({type:"Info",title:"Error!",icon:"error",html:i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Ok!"})}}},async onAction(t,e,a){if(this.actionrowindex=a,this.image2rm=e,"info-item"==t){var s=await v.dispatch("pipelineLLO/hybrid_inspectnetworks",{token:this.token,instance:this.image2rm.ID}),i="<h5>Network Info <b> "+e.Name+"</b> <br> id: "+e.ID+"<br></h5>";i+='<samp class="overflow-auto">'+JSON.stringify(s.data.test[0])+"</samp>",this.$swal({type:"Info",title:"Info!",icon:"warning",html:i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}else if("rm-item"==t){i="test",i="<h5>This will remove network <b> "+e.Name+"</b> <br> id: "+e.ID+"<br></h5>";this.$swal({type:"Info",title:"Info!",icon:"warning",html:i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"}).then(t=>{this.onActionHybrid_imagerm(t)})}},async onActionHybrid_imagerm(t){if(t.isConfirmed){var e=await v.dispatch("pipelineLLO/hybrid_rmnetworks",{token:this.token,instance:this.image2rm.ID});if("ok"!=e.data.test){var a="<h5> "+e.data.test+"</h5>";this.$swal({type:"Info",title:"Error!",icon:"error",html:a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Ok!"})}s["default"].nextTick(()=>this.$refs.vuetable.refresh())}},refreshVuetable(){this.$nextTick(()=>{this.vuetablekeybnetworks1+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){return{html:!0,title:()=>"Hello <b>Popover:</b> "+ ++this.counter,content:()=>"The date is:<br><em>"+new Date+"</em>"}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length},onLoadError(t){"401"==t.response.status&&(window.location.href="https://api-login.swarmlab.io:8089",s["default"].nextTick(()=>window.location.href="https://api-login.swarmlab.io:8089"))}},actions:{}},Nt=Bt,Et=(a("ea90"),Object(_["a"])(Nt,St,It,!1,null,null,null)),Pt=Et.exports,Dt={components:{ViewNetwork:dt,AdhocView:ft,card:k,DockerServices:kt,DockerImages:Lt,DockerNetworks:Pt},data(){return{viewconsole:!1,viewimages:!0,viewnetworks:!1,loading:!1,consoleView:"off",productIndex:1}},mounted(){this.$root.$on("hybrid_show_instance_images",t=>{"networks"==t?(this.viewnetworks=!0,this.viewimages=!1,this.viewconsole=!1):"images"==t?(this.viewnetworks=!1,this.viewimages=!0,this.viewconsole=!1):"console"==t&&(this.viewnetworks=!1,this.viewimages=!1,this.viewconsole=!0)})},beforeDestroy(){this.$root.$off("hybrid_show_instance_images")},created(){}},Tt=Dt,Vt=Object(_["a"])(Tt,tt,et,!1,null,null,null),Ft=Vt.exports,Gt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{class:"col-1 order-first"},[a("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{round:"",type:"button"},on:{click:function(e){return t.setnewview(12,0)}}},[t._v(" +")]),a("button",{directives:[{name:"show",rawName:"v-show",value:!t.consoleview,expression:"!consoleview"}],staticClass:"btn btn-warning btn-sm",attrs:{round:"",type:"button"},on:{click:function(e){return t.setnewview(7,5)}}},[t._v(" -")])]),a("div",{class:"col-10"}),a("div",{class:"col-1 order-last float-sm-right"},[a("button",{staticClass:"btn btn-outline-info btn-sm float-right",attrs:{round:"",type:"button"},on:{click:function(e){return t.setnewview(0,12)}}},[t._v(" +")]),a("button",{directives:[{name:"show",rawName:"v-show",value:!t.consolemicro,expression:"!consolemicro"}],staticClass:"btn btn-warning btn-sm float-right",attrs:{round:"",type:"button"},on:{click:function(e){return t.setnewview(7,5)}}},[t._v(" -")])])]),a("div",{staticClass:"divider py-1 "},[a("hr")]),a("div",{staticClass:"row"},[a("div",{class:"col-"+t.viewmicroservices+" order-first"},[a("br"),a("available-services",{directives:[{name:"show",rawName:"v-show",value:t.consolemicro,expression:"consolemicro"}],key:t.componentKeyreloadservice})],1),a("div",{class:"col-"+t.viewconsole+" order-last"},[a("br"),a("adhoc-view",{directives:[{name:"show",rawName:"v-show",value:t.consoleview,expression:"consoleview"}]})],1)])])},zt=[],Mt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("v-wait",{attrs:{for:"myRunInstancetutor"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[s("span",{staticClass:"text-muted"},[t._v("Swarmlab")]),t._v(" "),s("span",{staticClass:"text-info"},[t._v("LabRoom")]),t._v(" - "),s("span",{staticClass:"text-muted"},[t._v(" Deploy@Home")])])])]),s("br"),s("div",{staticClass:"input-group input-group-sm sm-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),t.viewhybridoptions?s("div",{staticClass:"row"},[s("b-col",{staticClass:"text-center",attrs:{cols:"12",sm:"12",md:"12"}},[s("span",[s("b",[t._v("Lab Service Options")])])])],1):t._e(),t.viewhybridoptions?s("div",{staticClass:"input-group-append input-group-sm sm-3"},[t.startservice?s("button",{staticClass:"btn btn-success btn-sm",attrs:{round:"",type:"button"},on:{click:t.setHybridoptions}},[t._v(" Start")]):s("button",{staticClass:"btn btn-warning btn-sm",attrs:{round:"",type:"button"},on:{click:t.stopservice}},[t._v(" Stop")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.up_name,expression:"up_name"}],staticClass:"form-control text-info",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",disabled:""},domProps:{value:t.up_name},on:{input:function(e){e.target.composing||(t.up_name=e.target.value)}}}),s("input",{directives:[{name:"model",rawName:"v-model",value:t.hybridoptions.size,expression:"hybridoptions.size"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Number of Instances"},domProps:{value:t.hybridoptions.size},on:{input:function(e){e.target.composing||t.$set(t.hybridoptions,"size",e.target.value)}}}),t.startservice?s("button",{staticClass:" btn btn-outline-danger btn-sm",attrs:{title:"Remove Lab_Instance",round:""},on:{click:function(e){return t.onAction("rm-install",t.hybridoptions,t.hybridoptions._id)}}},[t._v(" Remove ")]):s("button",{staticClass:" btn btn-outline-danger btn-sm",attrs:{title:"Remove Lab_Instance",round:"",disabled:""}},[t._v(" Remove ")])]):t._e(),s("vuetable",{key:t.vuetablekeya,ref:"vuetable",attrs:{id:"idvuetablekeya","api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:row-clicked":t.rowClicked,"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess,"vuetable:load-error":t.onLoadError},scopedSlots:t._u([{key:"actionsenabled",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[t.testactionrowindex[e.rowData.swarmlabname]==e.rowData._id?s("button",{staticClass:" btn btn-sm text-muted",attrs:{round:""}},[s("span",{staticClass:"text-success"},[t._v("Running...")])]):s("button",{staticClass:" btn btn-sm text-muted",attrs:{round:""}},[s("span",{staticClass:"text-success"})])])])}},{key:"actionslocal",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[t.testactionrowindex[e.rowData._id]==e.rowData._id?s("button",{staticClass:"ti-check btn btn-sm text-success",attrs:{title:"Remove Lab_Instance",round:""}}):t._e()])])}},{key:"actions",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[t.checkactionrowindex(e.rowData,e.rowData._id)?s("button",{staticClass:"ti-cloud-down btn btn-sm text-muted",attrs:{title:"Download Lab_Instance",round:""},on:{click:function(a){return t.onAction("run-install",e.rowData,e.rowData._id)}}}):t._e(),s("button",{staticClass:"ti-info btn btn-sm text-muted",attrs:{title:"Lab_Instance Info",round:""},on:{click:function(a){return t.onAction("view-item",e.row,e.row._id)}}})])])}}])}),s("div",{staticClass:"vuetable-pagination ui basic segment grid"},[s("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),s("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},jt=[],Ut={components:{card:k,Vuetable:$["Vuetable"],VuetablePagination:S["a"],VuetablePaginationInfo:L["a"],VuetablePaginationDropdown:$["VuetablePaginationDropdown"]},props:{},data(){return{startservice:!0,swarmlabinfonow:!1,up_name:"",removelabroom:!1,testactionrowindex:[],teststatusindex:[],hybridoptions:{index:"",swarmlabname:"",size:"",port:""},viewhybridoptions:!1,swarmlab:{},playbookInfo:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"hybrid",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekeya:0,fielddata:{},fields:[{name:"__slot:actionslocal",title:"",titleClass:"center",dataClass:"center alignedi text-success",width:"5%"},{name:"swarmlabname",title:'<span class="orange"></span>Labroom',sortField:"swarmlabname",visible:!0,dataClass:"left aligned col-3 text-muted",width:"68%",callback:function(t){var e=t.split("-"),a=e[1];return a}},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"description",sortField:"gitrepoCloneUrl",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"gitrepoFullName",sortField:"gitrepoFullName",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"__slot:actionsenabled",title:"Status",titleClass:"center",dataClass:"center aligned",width:"5%"},{name:"__slot:actions",title:"Download",titleClass:"col text-center",dataClass:"center aligned",width:"10%"}],apiurl:d.swarmlab_url_80+"/swarmlabhybridservices",css:I["a"],perpage:5,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts"}}},mounted(){this.$root.$on("hybrid_refresh_availableservices",()=>{s["default"].nextTick(()=>this.$refs.vuetable.refresh())}),this.$root.$on("hybrid_refresh_table",t=>{this.$nextTick((function(){s["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.viewhybridoptions=!1}))})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token")},beforeDestroy(){this.$root.$off("hybrid_refresh_availableservices"),this.$root.$off("hybrid_refresh_table")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{onError(t,e){var a=e,s="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:s+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},async checkactionrowindex(t,e){if(this.testactionrowindex[e]==e){var a={};a.token=this.token,a.instance=t.swarmlabname;var i=await v.dispatch("pipelineLLO/getservicesstatus",a);"yes"==i.data.data?s["default"].set(this.testactionrowindex,t.swarmlabname,e):s["default"].delete(this.testactionrowindex,t.swarmlabname)}else{a={};a.token=this.token,a.instance=t.swarmlabname;var o=await v.dispatch("pipelineLLO/getservicesinfo",a);if("yes"==o.data.data){s["default"].set(this.testactionrowindex,e,e);i=await v.dispatch("pipelineLLO/getservicesstatus",a);"yes"==i.data.data?s["default"].set(this.testactionrowindex,t.swarmlabname,e):s["default"].delete(this.testactionrowindex,t.swarmlabname)}else console.log("resi NO data ")}},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",this.moreParams={filter:"",type:"scripts"},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t)},onChangePage(t){this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async onAction(t,e,a){if("view-item"==t){this.swarmlabinfonow=!0,this.swarmlab=e;var i=this.swarmlab,o="https://git.swarmlab.io:3000/swarmlab/"+i.swarmlabname,n="",r='<h5>Swarmlab Service <a href="'+o+'" target="_blank" >Info</a></h5>(Open page in new window)';this.$swal({type:"info",html:r+n,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}else if("delete-item"==t)this.$swal({type:"info",html:r+n,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Yes, Delete it!"}),this.refreshVuetable();else if("rm-install"==t){r=`<h5> Labroom: <b> ${this.hybridoptions.swarmlabname} </b> </h5>`;r+="<br>Remove containers, networks, images, and volumes",this.$swal({type:"info",html:r,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Yes!"}).then(t=>{t.isConfirmed&&(async()=>{console.log("remove"),this.hybridoptions.swarmlabname=e.swarmlabname,this.$wait.start("myRunInstancetutor");var t=await v.dispatch("pipelineLLO/rmswarmlablocal",this.hybridoptions.swarmlabname);this.$wait.end("myRunInstancetutor");var a={};a.token=this.token,a.instance=e.swarmlabname;var i=await v.dispatch("pipelineLLO/getservicesinfo",a);if("yes"==i.data.data&&"yes"==i.data.data){var o='<h6 class="text-warning"> swarmlab encountered a problem while deleting your labroom files. <br> This propably means that you have created some files while operating the labroom. <br> To remove those files please run the following command as root. </h6> <h5><i>Copy-and-run-command </i></h5><br> ';o+='<span class="text-success">sudo rm -rf '+t.data.path+"/instance/"+e.swarmlabname+" </span><br><br>",o+='<span class="text-secondary"> You can back up content using: </span><br>',o+='<span class="text-warning">sudo tar -zcvf /home/$USER/swarmlabbackup_'+e.swarmlabname+".tar.gz "+t.data.path+"/instance/"+e.swarmlabname+" </span>";var n="<h5>Labroom remove</h5>";this.$swal({type:"info",html:n+o,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"}),console.log("inf res11111111111 "+JSON.stringify(t.data.path))}s["default"].delete(this.testactionrowindex,e.swarmlabname),this.refreshVuetable(),this.$root.$emit("hybrid_refresh_info_deploy_local")})()})}else if("run-install"==t){this.swarmlabinfonow=!0,this.$wait.start("myRunInstancetutor"),this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;let t={};t.swarmlabname=this.hybridoptions.swarmlabname,t.index=this.hybridoptions.index,t.size=this.hybridoptions.size,t.port=this.hybridoptions.port;var l=await v.dispatch("pipelineLLO/getswarmlabinfo",t.swarmlabname);o=l.data.swarmlabinfo;t.git=o,this.$root.$emit("hybrid_install_instance",t),this.$wait.end("myRunInstancetutor"),this.refreshVuetable()}else if("run-item"==t)this.viewhybridoptions=!0,this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;else if("down-item"==t){this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;r=`<h5> Labroom: <b> ${this.hybridoptions.swarmlabname} </b> </h5>`;r+="<br>Stop and remove containers, networks, images, and volumes",this.$swal({type:"info",html:r,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Yes!"}).then(t=>{this.rmAndClose(t)})}},async rmAndClose(t){if(t.isConfirmed){var e=this.hybridoptions.swarmlabname;this.$root.$emit("hybrid_stop_instance",e),s["default"].delete(this.testactionrowindex,this.hybridoptions.index),s["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.refreshVuetable()}else console.log("no")},async setHybridoptions(){let t={};t.swarmlabname=this.hybridoptions.swarmlabname,t.index=this.hybridoptions.index,t.size=this.hybridoptions.size,t.port=this.hybridoptions.port,this.$root.$emit("hybrid_start_instance",t),s["default"].set(this.testactionrowindex,t.swarmlabname,t.index),s["default"].nextTick(()=>this.$refs.vuetable.refresh())},refreshVuetable(){this.$nextTick(()=>{this.vuetablekeya+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},async rowClicked(t,e){if(console.log(t),console.log(this.testactionrowindex),this.testactionrowindex[t._id]==t._id&&this.testactionrowindex[t.swarmlabname]!=t._id)this.swarmlabinfonow||(this.up_name=t.swarmlabname,this.hybridoptions=t,this.startservice=!0,console.log("start "+t.swarmlabname),await this.onAction("run-item",t,t._id),this.swarmlabinfonow=!1);else if(this.testactionrowindex[t._id]==t._id&&this.testactionrowindex[t.swarmlabname]==t._id)this.up_name=t.swarmlabname,console.log("stop "+t.swarmlabname),this.viewhybridoptions=!1,this.startservice=!1,this.hybridoptions=t,await this.onAction("run-item",t,t._id);else if(this.testactionrowindex[t._id]!=t._id&&this.testactionrowindex[t.swarmlabname]!=t._id&&(console.log("info"),!this.swarmlabinfonow)){var a=`<h5> Labroom <b> ${t.swarmlabname} </b> is Not Installed </h5> <br> \n <b>Use </b>\n <br>\n <br>\n <div class="row" >\n <div class="col-1" >\n <button\n class="ti-cloud-down btn btn-outline-secondary btn-sm"\n round\n >\n </button>\n </div>\n <div class="col-4" >\n To Install\n </div>\n <div class="col-1" >\n <button\n class="ti-info btn btn-outline-secondary btn-sm"\n round\n >\n </button>\n </div>\n <div class="col-6" >\n For More Information \n </div>\n </div>\n `;this.$swal({type:"info",html:a,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Yes!"})}this.swarmlabinfonow=!1},async stopservice(){this.startservice=!1,await this.onAction("down-item",this.hybridoptions,this.hybridoptions._id)},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length},onLoadError(t){"401"==t.response.status&&(window.location.href="https://api-login.swarmlab.io:8089",s["default"].nextTick(()=>window.location.href="https://api-login.swarmlab.io:8089"))}},actions:{}},Yt=Ut,qt=(a("47a8"),Object(_["a"])(Yt,Mt,jt,!1,null,null,null)),Ht=qt.exports,Kt={components:{AdhocView:ft,card:k,AvailableServices:Ht},data(){return{viewmicroservices:7,viewconsole:5,consoleview:!0,consolemicro:!0,componentKeyreloadservice:1,loading:!1,consoleView:"off",productIndex:1}},mounted(){this.$root.$on("hybrid_refresh_info_deploy_local",()=>{this.componentKeyreloadservice+=1})},beforeDestroy(){this.$root.$off("hybrid_refresh_info_deploy_local")},methods:{setnewview(t,e){12==t&&(this.viewmicroservices=t,this.viewconsole=e,this.consoleview=!1,this.consolemicro=!0),12==e&&(this.viewmicroservices=t,this.viewconsole=e,this.consoleview=!0,this.consolemicro=!1),7!=t&&5!=e||(this.viewmicroservices=t,this.viewconsole=e,this.consoleview=!0,this.consolemicro=!0)}},created(){this.setnewview(7,5)}},Wt=Kt,Qt=Object(_["a"])(Wt,Gt,zt,!1,null,null,null),Jt=Qt.exports,Zt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 order-first "},[a("br"),a("myconnect-manage-server")],1)])])},Xt=[],te=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("f467"),alt:"..."}})]),s("div",{staticClass:"card text-center"},[s("div",{staticClass:"card-header"}),s("div",{staticClass:"card-body"},[s("h2",{staticClass:"card-title"},[t._v(" share with your friends ")]),s("br"),s("p",{staticClass:"card-text"}),s("h4",[t._v("Swarmlab uses VENUS to create virtual networks and ensure your data safety. "),s("br"),t._v("If you choose to proceed VENUS will have to be installed on your PC.")]),s("p"),s("a",{staticClass:"btn btn-primary",attrs:{href:"https://git.swarmlab.io:3000/swarmlab/venus-client",target:"newwindow"}},[t._v("Get VENUS here")])]),s("div",{staticClass:"card-footer text-muted"},[s("b",[t._v("VENUS is an open source service developed and maintained by the swarmlab team. ")]),s("br"),s("br"),s("h5",[t._v(" Safety is ensured using wireguard. ")])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-1 text-secondary"}),s("div",{staticClass:"col-10 text-secondary"},[s("br")]),s("div",{staticClass:"col-1 text-secondary"})])])},ee=[],ae={components:{card:k},props:{},data(){return{testactionrowindex:[],actionrowindex:"",playbookInfo:{},hybridshowdata:{},token:"",CONFIG:{},isstatus:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"hybrid",showModal:!1,visibility:[],active:!1,vuetablekey1:0,fielddata:{},perpage:10,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0}},mounted(){},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token")},beforeDestroy(){},computed:{},methods:{},actions:{}},se=ae,ie=(a("4788"),Object(_["a"])(se,te,ee,!1,null,null,null)),oe=ie.exports,ne={components:{card:k,MyconnectManageServer:oe},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},re=ne,le=Object(_["a"])(re,Zt,Xt,!1,null,null,null),ce=le.exports,de=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-7 order-first "},[a("br"),a("available-storage",{key:t.componentKeyreloadstorage})],1),a("div",{staticClass:"col-5 order-last"},[a("br"),a("adhoc-view")],1)])])},ue=[],pe=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("v-wait",{attrs:{for:"myRunInstancetutorstorage"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room storage... ")])])],2),s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[s("span",{staticClass:"text-muted"},[t._v("Swarmlab ")]),t._v(" "),s("span",{staticClass:"text-info"},[t._v("Storage")]),t._v(" - "),s("span",{staticClass:"text-muted"},[t._v("Deploy@Home ")])])])]),s("br"),s("div",{staticClass:"input-group input-group-sm sm-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),t.viewhybridoptions?s("div",{staticClass:"row"},[s("b-col",{staticClass:"text-center",attrs:{cols:"12",sm:"12",md:"12"}},[s("span",[s("b",[t._v("Storage Service Options")])])])],1):t._e(),t.viewhybridoptions?s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"}},[t._v(" Admin ")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.hybridoptions.password,expression:"hybridoptions.password"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"New Password"},domProps:{value:t.hybridoptions.password},on:{input:function(e){e.target.composing||t.$set(t.hybridoptions,"password",e.target.value)}}}),s("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:t.checkHybridoptions}},[t._v(" Up")])]):t._e(),s("vuetable",{key:t.vuetablekeystorage,ref:"vuetable",attrs:{id:"idvuetablekeystorage","api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess,"vuetable:load-error":t.onLoadError},scopedSlots:t._u([{key:"actionsenabled",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[t.testactionrowindex[e.rowData.swarmlabname]==e.rowIndex?s("button",{staticClass:"ti-thumb-up btn btn-sm text-success",attrs:{title:"Stop Lab_Instance",round:""},on:{click:function(a){return t.onAction("down-item",e.rowData,e.rowIndex)}}}):t._e(),t.testactionrowindex[e.rowData.swarmlabname]!=e.rowIndex&&t.testactionrowindex[e.rowIndex]==e.rowIndex?s("button",{staticClass:"ti-thumb-down btn btn-sm text-muted",attrs:{title:"Start Lab_Instance",round:""},on:{click:function(a){return t.onAction("run-item",e.rowData,e.rowIndex)}}}):t._e()])])}},{key:"actionslocal",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[t.testactionrowindex[e.rowIndex]==e.rowIndex&&t.testactionrowindex[e.rowData.swarmlabname]!=e.rowIndex?s("button",{staticClass:"ti-trash btn btn-sm text-warning",attrs:{title:"Remove Lab_Instance",round:""},on:{click:function(a){return t.onAction("delete-item",e.rowData,e.rowIndex)}}}):t._e()])])}},{key:"actions",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[t.checkactionrowindex(e.rowData,e.rowIndex)?s("button",{staticClass:"ti-cloud-down btn btn-sm text-muted",attrs:{title:"Download Lab_Instance",round:""},on:{click:function(a){return t.onAction("run-install",e.rowData,e.rowIndex)}}}):t._e(),s("button",{staticClass:"ti-info btn btn-sm text-muted",attrs:{title:"Lab_Instance Info",round:""},on:{click:function(a){return t.onAction("view-item",e.rowData,e.rowIndex)}}})])])}}])}),s("div",{staticClass:"vuetable-pagination ui basic segment grid"},[s("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),s("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},me=[],he={components:{card:k,Vuetable:$["Vuetable"],VuetablePagination:S["a"],VuetablePaginationInfo:L["a"],VuetablePaginationDropdown:$["VuetablePaginationDropdown"]},props:{},data(){return{testactionrowindex:[],teststatusindex:[],hybridoptions:{index:"",swarmlabname:"",password:"",port:""},viewhybridoptions:!1,swarmlab:{},playbookInfo:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"hybrid",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekeystorage:0,fielddata:{},fields:[{name:"__slot:actionslocal",title:"",titleClass:"center",dataClass:"center aligned",width:"5%"},{name:"swarmlabname",title:'<span class="orange"></span>Name',sortField:"swarmlabname",visible:!0,dataClass:"left aligned col-3 text-muted",width:"68%"},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"description",sortField:"gitrepoCloneUrl",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"gitrepoFullName",sortField:"gitrepoFullName",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"__slot:actionsenabled",title:"Status",titleClass:"center",dataClass:"center aligned",width:"5%"},{name:"__slot:actions",title:"Download",titleClass:"col text-center",dataClass:"center aligned",width:"10%"}],apiurl:d.swarmlab_url_80+"/swarmlabhybridstorage",css:I["a"],perpage:5,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts"}}},mounted(){this.$root.$on("hybrid_refresh_availableservices_storage",()=>{s["default"].nextTick(()=>this.$refs.vuetable.refresh())}),this.$root.$on("hybrid_refresh_table_storage",t=>{this.$nextTick((function(){s["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.viewhybridoptions=!1,this.$wait.end("myRunInstancetutorstorage")}))})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token")},beforeDestroy(){this.$root.$off("hybrid_refresh_availableservices_storage"),this.$root.$off("hybrid_refresh_table_storage")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{onError(t,e){var a=e,s="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:s+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},async checkactionrowindex(t,e){if(this.testactionrowindex[e]==e){var a={};a.token=this.token,a.instance=t.swarmlabname;var i=await v.dispatch("pipelineLLO/getstoragestatus",a);"yes"==i.data.data?s["default"].set(this.testactionrowindex,t.swarmlabname,e):s["default"].delete(this.testactionrowindex,t.swarmlabname)}else{a={};a.token=this.token,a.instance=t.swarmlabname;var o=await v.dispatch("pipelineLLO/getservicesinfo",a);if("yes"==o.data.data){s["default"].set(this.testactionrowindex,e,e);i=await v.dispatch("pipelineLLO/getstoragestatus",a);"yes"==i.data.data?s["default"].set(this.testactionrowindex,t.swarmlabname,e):s["default"].delete(this.testactionrowindex,t.swarmlabname)}else console.log("resi NO1 "+JSON.stringify(o))}},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",s["default"].nextTick(()=>this.$refs.vuetable.refresh())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t)},onChangePage(t){this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async onAction(t,e,a){if("view-item"==t){this.swarmlab=e;var i=this.swarmlab,o=await v.dispatch("pipelineLLO/getswarmlabstorageinfo",i.swarmlabname),n=(JSON.stringify(o.data.swarmlab,null,2),JSON.stringify(o.data.swarmlabinfo,null,2));n=o.data.swarmlabinfo;if("ok"==o.data.error25){var r="",l='<h5>Swarmlab Service <a href="'+n+'" target="_blank" >Info</a></h5>(Open page in new window)';this.$swal({type:"info",html:l+r,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}}else if("delete-item"==t){this.hybridoptions.swarmlabname=e.swarmlabname;l="<h5>This will remove the storage with the name<b> "+e.swarmlabname+"</b> </h5><br>";var c=this.hybridoptions.swarmlabname,d=(r="",await v.dispatch("pipelineLLO/getstoragesudopreparestop",c));if("yes"==d.data.data&&"no"==d.data.error){var u=d.data.path;r='<span class="text-danger">Before continuing RUN the following command </span><br><br>',r+='<span class="text-success">sudo /bin/bash ',r+=u.trim(),r+="/sudorun-storage-stop </span>"}this.$swal({type:"info",html:l+r,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Yes, Delete it!"}).then(t=>{this.rmStorageAndClose(t)}),this.refreshVuetable()}else if("run-install"==t){this.$wait.start("myRunInstancetutorstorage"),this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;let t={};t.swarmlabname=this.hybridoptions.swarmlabname,t.index=this.hybridoptions.index,t.size=this.hybridoptions.size,t.port=this.hybridoptions.port;o=await v.dispatch("pipelineLLO/getswarmlabstorageinfo",t.swarmlabname),n=o.data.swarmlabinfo;t.git=n,this.$root.$emit("hybrid_install_instance_storage",t),this.$wait.end("myRunInstancetutorstorage"),this.refreshVuetable()}else if("run-item"==t)this.viewhybridoptions=!0,this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;else if("down-item"==t){this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;l="Stop and remove storage: containers, networks, images, and volumes";this.$swal({type:"info",html:l,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Yes!"}).then(t=>{this.rmAndClose(t)}),s["default"].nextTick(()=>this.$refs.vuetable.refresh())}},async rmStorageAndClose(t){if(t.isConfirmed){this.$wait.start("myRunInstancetutorstorage");await v.dispatch("pipelineLLO/rmswarmlablocalstorage",this.hybridoptions.swarmlabname);this.$wait.end("myRunInstancetutorstorage"),s["default"].delete(this.testactionrowindex,this.hybridoptions.swarmlabname),this.refreshVuetable(),this.$root.$emit("hybrid_refresh_info_deploy_local")}},async rmAndClose(t){if(t.isConfirmed){this.$wait.start("myRunInstancetutorstorage");var e=this.hybridoptions.swarmlabname;this.$root.$emit("hybrid_stop_instance_storage",e),s["default"].delete(this.testactionrowindex,this.hybridoptions.index),s["default"].nextTick(()=>this.$refs.vuetable.refresh())}else console.log("no");this.refreshVuetable()},async checkHybridoptions(){var t=this.hybridoptions.swarmlabname,e=await v.dispatch("pipelineLLO/getstoragesudoprepare",t);if("yes"==e.data.data&&"no"==e.data.error){var a="<h4>Storage prepare2start</h4> <h5><i>Copy-and-run-command </i></h5> <br>",s=e.data.path,i='<span class="text-success">sudo /bin/bash ';i+=s.trim(),i+="/sudorun-storage-run </span>",this.$swal({type:"info",html:a+i,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Yes, Run it!"}).then(t=>{this.setHybridoptions(t)})}else if("yes"==e.data.data&&"yes"==e.data.error){a="<h4>Storage prepare2start</h4> <h5><i>Copy-and-run-command </i></h5> <br>",s=e.data.path,i="<span class='text-success'>Can't write to file ";i+=s.trim(),i+="/sudorun-storage-run </span>",this.$swal({type:"info",html:a+i,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}else if("nosudo"==e.data.data){var o={isConfirmed:"true"};this.setHybridoptions(o)}else if("error"==e.data.data&&"yes"==e.data.error){o={isConfirmed:"true"};this.setHybridoptions(o)}else{o={isConfirmed:"true"};this.setHybridoptions(o)}},async setHybridoptions(t){if(console.log(JSON.stringify(t)),t.isConfirmed){this.$wait.start("myRunInstancetutorstorage");let t={};t.swarmlabname=this.hybridoptions.swarmlabname,t.index=this.hybridoptions.index,t.password=this.hybridoptions.password,t.port=this.hybridoptions.port,this.$root.$emit("hybrid_start_instance_storage",t),s["default"].set(this.testactionrowindex,t.swarmlabname,t.index),s["default"].nextTick(()=>this.$refs.vuetable.refresh())}},refreshVuetable(){this.$nextTick(()=>{this.vuetablekeystorage+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){return{html:!0,title:()=>"Hello <b>Popover:</b> "+ ++this.counter,content:()=>"The date is:<br><em>"+new Date+"</em>"}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length},onLoadError(t){"401"==t.response.status&&(window.location.href="https://api-login.swarmlab.io:8089",s["default"].nextTick(()=>window.location.href="https://api-login.swarmlab.io:8089"))}},actions:{}},be=he,ve=(a("4eb0"),Object(_["a"])(be,pe,me,!1,null,null,null)),fe=ve.exports,we={components:{AdhocView:ft,card:k,AvailableStorage:fe},data(){return{componentKeyreloadstorage:1,loading:!1,consoleView:"off",productIndex:1}},mounted(){this.$root.$on("hybrid_refresh_info_deploy_local",()=>{this.componentKeyreloadstorage+=1})},beforeDestroy(){this.$root.$off("hybrid_refresh_info_deploy_local")},created(){}},ge=we,ye=Object(_["a"])(ge,de,ue,!1,null,null,null),_e=ye.exports,Ce=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{class:"col-1 order-first"},[a("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{round:"",type:"button"},on:{click:function(e){return t.setnewview(12,0)}}},[t._v(" +")]),a("button",{directives:[{name:"show",rawName:"v-show",value:!t.consoleview,expression:"!consoleview"}],staticClass:"btn btn-warning btn-sm",attrs:{round:"",type:"button"},on:{click:function(e){return t.setnewview(7,5)}}},[t._v(" -")])]),a("div",{class:"col-10"}),a("div",{class:"col-1 order-last float-sm-right"},[a("button",{staticClass:"btn btn-outline-info btn-sm float-right",attrs:{round:"",type:"button"},on:{click:function(e){return t.setnewview(0,12)}}},[t._v(" +")]),a("button",{directives:[{name:"show",rawName:"v-show",value:!t.consolemicro,expression:"!consolemicro"}],staticClass:"btn btn-warning btn-sm float-right",attrs:{round:"",type:"button"},on:{click:function(e){return t.setnewview(7,5)}}},[t._v(" -")])])]),a("div",{staticClass:"divider py-1 "},[a("hr")]),a("div",{staticClass:"row"},[a("div",{class:"col-"+t.viewmicroservices+" order-first"},[a("br"),a("available-microservices",{directives:[{name:"show",rawName:"v-show",value:t.consolemicro,expression:"consolemicro"}],key:t.componentKeyreloadservice5})],1),a("div",{class:"col-"+t.viewconsole+" order-last"},[a("br"),a("available-mymicroservices")],1)]),a("div",{staticClass:"divider py-1 "},[a("hr")]),a("div",{staticClass:"row"},[a("div",{class:"col-12 order-first"},[a("br"),a("adhoc-view",{directives:[{name:"show",rawName:"v-show",value:t.showconsole,expression:"showconsole"}]})],1)])])},ke=[],xe=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("v-wait",{attrs:{for:"myRunInstancetutor"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),s("v-wait",{attrs:{for:"myRunInstancetutorremove"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Remove ... ")])])],2),s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[s("span",{staticClass:"text-muted"},[t._v("Swarmlab ")]),s("span",{staticClass:"text-info"},[t._v("MicroServices")]),t._v(" - "),s("span",{staticClass:"text-muted"},[t._v("Deploy@Home")])])])]),s("br"),s("div",{staticClass:"input-group input-group-sm sm-3"},[s("button",{staticClass:"btn btn-outline-success btn-sm",attrs:{round:"",type:"button"},on:{click:t.refreshVuetableall}},[t._v(" Refresh Table")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),t.viewhybridoptions?s("div",{staticClass:"row"},[s("b-col",{staticClass:"text-center",attrs:{cols:"12",sm:"12"}},[s("span",{staticClass:"text-muted"},[s("b",[t._v("Lab Service Options")])])])],1):t._e(),t.viewhybridoptions&&t.up_name?s("div",{staticClass:"input-group-append input-group input-group-sm sm-3"},[t.startservice?s("button",{staticClass:"btn btn-success btn-sm",attrs:{round:"",type:"button"},on:{click:t.setHybridoptions}},[t._v(" Start")]):s("button",{staticClass:"btn btn-warning btn-sm",attrs:{round:"",type:"button"},on:{click:t.stopservice}},[t._v(" Stop")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.up_name,expression:"up_name"}],staticClass:"form-control text-info",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Number of Instances",disabled:""},domProps:{value:t.up_name},on:{input:function(e){e.target.composing||(t.up_name=e.target.value)}}}),t.viewhybridoptions&&t.up_name&&t.actionrowindex?s("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{round:"",type:"button"},on:{click:t.backup}},[t._v(" Backup")]):t._e(),t.viewhybridoptions&&t.up_name&&t.actionrowindex?s("button",{staticClass:"btn btn-outline-dark btn-sm",attrs:{round:"",type:"button"},on:{click:t.backupview}},[t._v(" BackupView")]):t._e(),t.viewhybridoptions&&t.customedit&&1!=t.custommenouopen&&t.up_name&&t.actionrowindex?s("button",{staticClass:"btn btn-outline-primary btn-sm",attrs:{round:"",type:"button"},on:{click:t.setcustom}},[t._v(" Custom")]):t._e(),t.viewhybridoptions&&t.customedit&&!0===t.custommenouopen&&t.up_name&&t.actionrowindex?s("button",{staticClass:"btn btn-outline-secondary btn-sm",attrs:{round:"",disabled:"",type:"button"},on:{click:t.setcustom}},[t._v(" Custom:")]):t._e(),t.viewhybridoptions&&t.customedit&&t.custommenouopen&&t.up_name&&t.actionrowindex?s("button",{staticClass:"btn btn-outline-warning btn-sm",attrs:{round:"",type:"button"},on:{click:t.setcustomcancel}},[t._v(" Cancel")]):t._e(),t.viewhybridoptions&&t.customedit&&t.custommenouopen&&t.up_name&&t.actionrowindex?s("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{round:"",type:"button"},on:{click:t.setcustomsave}},[t._v(" Save")]):t._e(),t.startservice?s("button",{staticClass:" btn btn-outline-danger btn-sm",attrs:{title:"Remove Lab_Instance",round:""},on:{click:function(e){return t.onActionstopcheck()}}},[t._v(" Remove ")]):s("button",{staticClass:" btn btn-outline-danger btn-sm",attrs:{title:"Remove Lab_Instance",round:"",disabled:""}},[t._v(" Remove ")]),t.actionrowindexmore?s("button",{staticClass:"ti-more btn btn-info btn-sm",attrs:{title:"More Actions...",round:""},on:{click:function(e){return t.onActionmore()}}}):s("button",{staticClass:"ti-more btn btn-secondary btn-sm",attrs:{title:"More Actions...",round:""},on:{click:function(e){return t.onActionmoreclose()}}})]):t._e(),t.viewhybridoptions&&t.custommenou?s("div",{staticClass:"input-group-append"},[s("b-col",{staticClass:"text-center",attrs:{cols:"5",sm:"5"}},[s("div",{staticClass:"form-group"},[s("label",{staticClass:"text-dark",attrs:{for:"custompackages"}},[t._v("Add Extrapackages "),s("br"),s("span",{staticClass:"text-success"},[t._v(" "+t._s(t.customostext)+" ")])]),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.custom.os,expression:"custom.os"}],staticClass:"form-control",attrs:{id:"custompackages",rows:"8"},domProps:{value:t.custom.os},on:{input:function(e){e.target.composing||t.$set(t.custom,"os",e.target.value)}}},[t._v(" "+t._s(t.custom.os)+" ")])])]),s("b-col",{staticClass:"text-center",attrs:{cols:"7",sm:"7",md:"7"}},[s("div",{staticClass:"form-group"},[s("label",{staticClass:"text-dark",attrs:{for:"customshell"}},[t._v("Custom sh script "),s("br"),s("span",{staticClass:"text-success"},[t._v(" "+t._s(t.customshtext)+" ")])]),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.custom.sh,expression:"custom.sh"}],staticClass:"form-control",attrs:{id:"customshell",rows:"8"},domProps:{value:t.custom.sh},on:{input:function(e){e.target.composing||t.$set(t.custom,"sh",e.target.value)}}},[t._v(" "+t._s(t.custom.sh)+" ")])])])],1):t._e(),t.viewhybridoptions&&t.heavy?s("div",{staticClass:"input-group-append"},[s("p",{staticClass:"text-danger"},[t._v(t._s(t.heavytext))])]):t._e(),s("vuetable",{key:t.vuetablekeyg,ref:"vuetable",attrs:{id:"idvuetablekeyg","api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:row-clicked":t.rowClicked,"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess,"vuetable:load-error":t.onLoadError},scopedSlots:t._u([{key:"actionsenabled",fn:function(e){return s("div",{key:t.vuetablekeygslotnew},[s("div",{staticClass:"d-flex justify-content-center"},[t.testtest[e.rowData.swarmlabname]==e.rowData.swarmlabname&&t.testtestdir[e.rowData.swarmlabname]==e.rowData.swarmlabname?s("button",{staticClass:" btn btn-sm text-muted",attrs:{round:""}},[s("span",{staticClass:"text-success"},[t._v("Running...")])]):s("button",{staticClass:" btn btn-sm text-muted",attrs:{round:""}},[s("span",{staticClass:"text-success"})])])])}},{key:"actionslocal",fn:function(e){return s("div",{key:t.vuetablekeygslot,attrs:{actionslocal:""}},[s("div",{staticClass:"d-flex justify-content-center"},[t.testtestdir[e.rowData.swarmlabname]==e.rowData.swarmlabname?s("button",{staticClass:"ti-check btn btn-sm text-success",attrs:{round:""}}):t._e()])])}},{key:"actions",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[s("button",{staticClass:"ti-cloud-down btn btn-sm text-muted",attrs:{title:"Download Lab_Instance",round:""},on:{click:function(a){return t.onAction("run-install",e.rowData,e.rowData._id)}}}),s("button",{staticClass:"ti-info btn btn-sm",attrs:{title:"Lab_Instance Info",name:"Lab_Instance_microservice_Info text-muted",round:""},on:{click:function(a){return t.onAction("view-item",e.rowData,e.rowData._id)}}})])])}}])}),s("div",{staticClass:"vuetable-pagination ui basic segment grid"},[s("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),s("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},Ae=[],Oe={components:{card:k,Vuetable:$["Vuetable"],VuetablePagination:S["a"],VuetablePaginationInfo:L["a"],VuetablePaginationDropdown:$["VuetablePaginationDropdown"]},props:{},data(){return{startservice:!0,actionrowindex:!1,actionrowindexmore:!0,swarmlabinfonow:!1,testactionrowindex:[],teststatusindex:[],testtest:[],testtestdir:[],hybridoptions:{index:"",swarmlabname:"",size:"",port:""},viewhybridoptions:!1,heavy:!1,heavytext:"",customedit:!1,custommenouopen:!1,custommenou:!1,custom:{os:"",sh:""},customostext:"",customshtext:"",up_name:"",swarmlab:{},playbookInfo:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"hybrid",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekeyg:0,vuetablekeygslot:0,vuetablekeygslotnew:0,fielddata:{},fields:[{name:"__slot:actionslocal",title:"",titleClass:"center",dataClass:"center aligned",width:"3%"},{name:"swarmlabname",title:'<span class="orange"></span>Microservice',sortField:"swarmlabname",visible:!0,dataClass:"left aligned col-3",width:"68%",callback:function(t){if(t){var e=t.split("-"),a=`<span class="text-muted">${e[1]} </span> <span class="text-muted"></span>`;return a}a="<span> </span>";return a}},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"description",sortField:"gitrepoCloneUrl",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"gitrepoFullName",sortField:"gitrepoFullName",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"__slot:actionsenabled",title:"Status",titleClass:"center",dataClass:"center aligned",width:"5%"},{name:"__slot:actions",title:"Download",titleClass:"col text-center",dataClass:"center aligned",width:"10%"}],apiurl:d.swarmlab_url_80+"/swarmlabhybridmicroservices",css:I["a"],perpage:8,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",currentpage:"1",currentpagepaginationData:{},dataselect:"",indexselect:"",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts"}}},mounted(){this.$root.$on("hybrid_refresh_availableservices",()=>{s["default"].nextTick(()=>this.refreshVuetable())}),this.$root.$on("hybrid_refresh_table",t=>{this.$nextTick((function(){this.refreshVuetable(),this.viewhybridoptions=!1}))})},async created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token"),await this.checkactionrowindexall()},beforeDestroy(){this.$root.$off("hybrid_refresh_availableservices"),this.$root.$off("hybrid_refresh_table")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{onActionmore(){this.actionrowindex=!0,this.actionrowindexmore=!1},onActionmoreclose(){this.actionrowindex=!1,this.actionrowindexmore=!0},onError(t,e){var a=e,s="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:s+a,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},async checkactionrowindexall(){var t={};t.token=this.token,t.instance="info";var e=await v.dispatch("pipelineLLO/getservicesstatusall",t);if(e.data.data){var a=e.data.data.length;for(var i in this.testtest)s["default"].delete(this.testtest,this.testtest[i]);for(let t=0;t<a;++t){var o=e.data.data[t],n=o.Names.split("_");s["default"].set(this.testtest,n[0],n[0])}}var r=await v.dispatch("pipelineLLO/getservicesinfoall",t);if(r.data.data){for(var i in this.testtestdir)s["default"].delete(this.testtestdir,this.testtestdir[i]);var l=r.data.data.length;for(let t=0;t<l;++t){var c=r.data.data[t];s["default"].set(this.testtestdir,c,c)}}},async checkactionrowindex(t,e){if(this.resetcustom(),t._id==e&&(this.dataselect=t,this.indexselect=e),this.testactionrowindex[e]==e){var a={};a.token=this.token,a.instance=t.swarmlabname;var i=await v.dispatch("pipelineLLO/getservicesstatus",a);"yes"==i.data.data?s["default"].set(this.testactionrowindex,e,t.swarmlabname):s["default"].delete(this.testactionrowindex,e)}else{a={};a.token=this.token,a.instance=t.swarmlabname;var o=await v.dispatch("pipelineLLO/getservicesinfo",a);if("yes"==o.data.data){s["default"].set(this.testactionrowindex,e,t.swarmlabname);i=await v.dispatch("pipelineLLO/getservicesstatus",a);"yes"==i.data.data?s["default"].set(this.testactionrowindex,e,t.swarmlabname):s["default"].delete(this.testactionrowindex,e)}else s["default"].delete(this.testactionrowindex,e)}},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",this.moreParams={filter:"",type:"scripts"},s["default"].nextTick(()=>this.refreshVuetableall())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t),this.currentpagepaginationData=t},onChangePage(t){this.resetcustom(),this.currentpage=t,this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async onAction(t,e,a){if("view-item"==t){this.swarmlabinfonow=!0,this.swarmlab=e;var i=this.swarmlab,o="https://git.swarmlab.io:3000/swarmlab/"+i.swarmlabname,n='<h5>Swarmlab Service <a href="'+o+'" target="_blank" >Info</a></h5>(Open page in new window)';this.$swal({type:"info",html:n,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}else if("delete-item"==t)this.$swal({type:"info",html:n+d,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Yes, Delete it!"}),s["default"].nextTick(()=>this.refreshVuetable());else if("rm-install"==t){this.resetcustom(),this.hybridoptions.swarmlabname=e.swarmlabname,this.$wait.start("myRunInstancetutor");var r=await v.dispatch("pipelineLLO/rmswarmlablocal",this.hybridoptions.swarmlabname);this.$wait.end("myRunInstancetutor");var l={};l.token=this.token,l.instance=e.swarmlabname;var c=await v.dispatch("pipelineLLO/getservicesinfo",l);if("yes"==c.data.data&&"yes"==c.data.data){var d='<h6 class="text-warning"> swarmlab encountered a problem while deleting your labroom files. <br> This propably means that you have created some files while operating the labroom. <br> To remove those files please run the following command as root. </h6> <h5><i>Copy-and-run-command </i></h5><br> ';d+='<span class="text-success">sudo rm -rf '+r.data.path+"/instance/"+e.swarmlabname+" </span><br><br>",d+='<span class="text-secondary"> You can back up content using: </span><br>',d+='<span class="text-warning">sudo tar -zcvf /home/$USER/swarmlabbackup_'+e.swarmlabname+".tar.gz "+r.data.path+"/instance/"+e.swarmlabname+" </span>";n="<h5>Labroom remove</h5>";this.$swal({type:"info",html:n+d,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}this.refreshVuetable(),this.$root.$emit("hybrid_refresh_info_deploy_local")}else if("run-install"==t){this.swarmlabinfonow=!0,this.$wait.start("myRunInstancetutor"),this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;let t={};t.swarmlabname=this.hybridoptions.swarmlabname,t.index=this.hybridoptions.index,t.size=this.hybridoptions.size,t.port=this.hybridoptions.port;r=await v.dispatch("pipelineLLO/getswarmlabmicroserviceinfo",t.swarmlabname),o=r.data.swarmlabinfo;t.git=o;await v.dispatch("pipelineLLO/checkowner",{token:this.token,instance:this.hybridoptions.swarmlabname});this.$root.$emit("hybrid_install_instance",t),this.$wait.end("myRunInstancetutor"),this.refreshVuetable()}else if("run-item"==t){this.resetcustom(),this.heavy=!1,this.heavytext="",this.up_name=this.hybridoptions.swarmlabname;var u="microservice-volatilitywindows",p=new RegExp(u),m="microservice-jupyter";new RegExp(m);if(p.test(this.hybridoptions.swarmlabname))this.viewhybridoptions=!0,this.heavy=!0,this.heavytext="Note that this image is somewhat heavy (~2GB) since they embed some of the kernel debug symbols for Microsoft Windows. It can take some time to build the Instance",this.hybridoptions.swarmlabname=this.hybridoptions.swarmlabname,this.hybridoptions.index=a;else{this.viewhybridoptions=!0,this.hybridoptions.swarmlabname=this.hybridoptions.swarmlabname,this.hybridoptions.index=a;for(var h=0;h<ot.length;h++){var b=ot[h];b.name==this.hybridoptions.swarmlabname&&b.hasOwnProperty("large")&&"no"!=b.large&&(this.heavy=!0,this.heavytext=b.large),b.name==this.hybridoptions.swarmlabname&&b.hasOwnProperty("custom")&&"no"!=b.custom&&(this.customedit=!0,this.custom.os=b.customos,this.custom.sh=b.customsh,this.customostext=b.customostext,this.customshtext=b.customshtext)}}this.refreshVuetable()}else if("down-item"==t){this.up_name="",this.hybridoptions.index=a;n=`<h5> Microservice: <b> ${this.hybridoptions.swarmlabname} </b> </h5>`;n+="<br>Stop and remove containers, networks, images, and volumes",this.$swal({type:"info",html:n,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Yes!"}).then(t=>{this.rmAndClose(t)})}},async rmAndClose(t){if(t.isConfirmed){this.hybridoptions.swarmlabname,await v.dispatch("pipelineLLO/stopservice",{token:this.token,instance:this.hybridoptions.swarmlabname});this.refreshVuetable()}else console.log("no")},async setcustomcancel(){this.custommenouopen=!1,this.custommenou=!1},async setcustomsave(){let t={};t.swarmlabname=this.hybridoptions.swarmlabname;await v.dispatch("pipelineLLO/savecustom",{token:this.token,instance:this.hybridoptions.swarmlabname,package:this.custom.os,sh:this.custom.sh});this.custommenouopen=!1,this.custommenou=!1},async setcustom(){let t={};t.swarmlabname=this.hybridoptions.swarmlabname,this.custommenouopen=!0,this.custommenou=!0;var e=await v.dispatch("pipelineLLO/getcustom",{token:this.token,instance:this.hybridoptions.swarmlabname});if(!1===e.data.error){if("nodir"==e.data.error_msg){var a="<h5><b> Please redownload Microservice and try launching the module again </b><br> \n </h5>\n ";this.$swal({type:"Info",icon:"info",html:a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}"ok"==e.data.error_msg&&(""!=e.data.extrapackagestext&&s["default"].set(this.custom,"os",e.data.extrapackagestext),""!=e.data.extrashtext&&s["default"].set(this.custom,"sh",e.data.extrashtext))}else{a="<h5><b> Please remove and download Microservice and try launching the module again </b><br> \n </h5>\n ";this.$swal({type:"Info",icon:"info",html:a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}},async backup(){await v.dispatch("pipelineLLO/runbackupinstance",{token:this.token,instance:this.hybridoptions.swarmlabname})},async backupview(){var t="<h5><b>Backups</b><br> \n <br>\n ";t+='<p class="text-secondary">',t+=" <b>Click on hyperlink opens Directory in new tab</b></p>",t+='<b> <a class="text-info" href="http://127.0.0.1:3383/" target="_blank">View Backups</a></b>',t+="<br>",this.$swal({type:"Info",title:"Info!",icon:"info",html:t,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},async setHybridoptions(){this.resetcustom();let t={};t.swarmlabname=this.hybridoptions.swarmlabname,t.index=this.hybridoptions.index,t.size=this.hybridoptions.size,t.port=this.hybridoptions.port;await v.dispatch("pipelineLLO/chown",{token:this.token,instance:this.hybridoptions.swarmlabname});this.$root.$emit("hybrid_start_instance",t),await this.refreshVuetable()},async refreshVuetableall(){this.$nextTick(()=>{this.vuetablekeyg+=1})},async resetcustom(){this.customedit=!1,this.custommenouopen=!1,this.custommenou=!1,this.custom.os="",this.custom.sh=""},async refreshVuetable(){await this.checkactionrowindexall(),this.$nextTick(()=>{this.vuetablekeygslot+=1,this.vuetablekeygslotnew+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},async onActionstopcheck(){var t=`<h5> Microservice: <b> ${this.hybridoptions.swarmlabname} </b> </h5>`;t+="<br>Remove containers, networks, images, and volumes",this.$swal({type:"info",html:t,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Yes!"}).then(t=>{this.onActionstop(t)})},async onActionstop(t){if(t.isConfirmed){this.$wait.start("myRunInstancetutorremove"),this.resetcustom(),this.$wait.start("myRunInstancetutor");var e=await v.dispatch("pipelineLLO/rmswarmlablocal",this.hybridoptions.swarmlabname);this.$wait.end("myRunInstancetutor");var a={};a.token=this.token,a.instance=this.hybridoptions.swarmlabname;var s=await v.dispatch("pipelineLLO/getservicesinfo",a);if("yes"==s.data.data&&"yes"==s.data.data){var i='<h6 class="text-warning"> swarmlab encountered a problem while deleting your labroom files. <br> This propably means that you have created some files while operating the labroom. <br> To remove those files please run the following command as root. </h6> <h5><i>Copy-and-run-command </i></h5><br> ';i+='<span class="text-success">sudo rm -rf '+e.data.path+"/instance/"+data.swarmlabname+" </span><br><br>",i+='<span class="text-secondary"> You can back up content using: </span><br>',i+='<span class="text-warning">sudo tar -zcvf /home/$USER/swarmlabbackup_'+data.swarmlabname+".tar.gz "+e.data.path+"/instance/"+data.swarmlabname+" </span>";var o="<h5>Labroom remove</h5>";this.$swal({type:"info",html:o+i,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}this.refreshVuetable(),this.$root.$emit("hybrid_refresh_info_deploy_local"),this.$wait.end("myRunInstancetutorremove")}else console.log("no")},async rowClicked(t,e){if(this.testtest[t.swarmlabname]!=t.swarmlabname&&this.testtestdir[t.swarmlabname]==t.swarmlabname)this.swarmlabinfonow||(this.hybridoptions=t,this.startservice=!0,this.onAction("run-item",t,t._id));else if(this.testtest[t.swarmlabname]==t.swarmlabname&&this.testtestdir[t.swarmlabname]==t.swarmlabname)this.swarmlabinfonow||(this.hybridoptions=t,this.hybridoptions=t,this.startservice=!1,this.onAction("run-item",t,t._id));else if(this.testtest[t.swarmlabname]!=t.swarmlabname&&this.testtestdir[t.swarmlabname]!=t.swarmlabname&&!this.swarmlabinfonow){var a=`<h5> Microservice ${t.swarmlabname} is Not Installed </h5> <br> \n <b>Use </b>\n <br>\n <br>\n <div class="row" >\n <div class="col-1" >\n <button\n class="ti-cloud-down btn btn-outline-secondary btn-sm"\n round\n >\n </button>\n </div>\n <div class="col-4" >\n To Install\n </div>\n <div class="col-1" >\n <button\n class="ti-info btn btn-outline-secondary btn-sm"\n round\n >\n </button>\n </div>\n <div class="col-6" >\n For More Information \n </div>\n </div>\n `;this.$swal({type:"info",html:a,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Yes!"})}this.swarmlabinfonow=!1},async stopservice(){this.startservice=!1,await this.onAction("down-item",this.hybridoptions,this.hybridoptions._id)},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length},onLoadError(t){"401"==t.response.status&&(window.location.href="https://api-login.swarmlab.io:8089",s["default"].nextTick(()=>window.location.href="https://api-login.swarmlab.io:8089"))}},actions:{}},Re=Oe,$e=(a("3fc0"),Object(_["a"])(Re,xe,Ae,!1,null,null,null)),Le=$e.exports,Se=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("v-wait",{attrs:{for:"myRunInstancetutorcustom"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[s("span",{staticClass:"text-muted"},[t._v("Swarmlab ")]),s("span",{staticClass:"text-info"},[t._v("User MicroServices")]),t._v(" - "),s("span",{staticClass:"text-muted"},[t._v(" Deploy@Home ")])])])]),s("br"),s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:t.refreshVuetableall}},[t._v(" Refresh Table")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),t.viewhybridoptions?s("div",{staticClass:"row"},[s("b-col",{staticClass:"text-center",attrs:{cols:"12",sm:"12",md:"12"}},[s("span",[s("b",[t._v("Lab Service Options")])])])],1):t._e(),t.viewhybridoptions?s("div",{staticClass:"input-group-append input-group-sm sm-3"},[t.startservice?s("button",{staticClass:"btn btn-success btn-sm",attrs:{round:"",type:"button"},on:{click:t.setHybridoptions}},[t._v(" Start")]):s("button",{staticClass:"btn btn-warning btn-sm",attrs:{round:"",type:"button"},on:{click:t.stopservice}},[t._v(" Stop")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.up_name,expression:"up_name"}],staticClass:"form-control text-info",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Number of Instances",disabled:""},domProps:{value:t.up_name},on:{input:function(e){e.target.composing||(t.up_name=e.target.value)}}}),t.viewhybridoptions&&t.up_name&&t.actionrowindex?s("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{round:"",type:"button"},on:{click:t.backup}},[t._v(" Backup")]):t._e(),t.viewhybridoptions&&t.up_name&&t.actionrowindex?s("button",{staticClass:"btn btn-outline-dark btn-sm",attrs:{round:"",type:"button"},on:{click:t.backupview}},[t._v(" BackupView")]):t._e(),t.viewhybridoptions&&t.customedit&&1!=t.custommenouopen&&t.up_name&&t.actionrowindex?s("button",{staticClass:"btn btn-outline-primary btn-sm",attrs:{round:"",type:"button"},on:{click:t.setcustom}},[t._v(" Custom")]):t._e(),t.viewhybridoptions&&t.customedit&&!0===t.custommenouopen&&t.up_name&&t.actionrowindex?s("button",{staticClass:"btn btn-outline-secondary btn-sm",attrs:{round:"",disabled:"",type:"button"},on:{click:t.setcustom}},[t._v(" Custom:")]):t._e(),t.viewhybridoptions&&t.customedit&&t.custommenouopen&&t.up_name&&t.actionrowindex?s("button",{staticClass:"btn btn-outline-warning btn-sm",attrs:{round:"",type:"button"},on:{click:t.setcustomcancel}},[t._v(" Cancel")]):t._e(),t.viewhybridoptions&&t.customedit&&t.custommenouopen&&t.up_name&&t.actionrowindex?s("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{round:"",type:"button"},on:{click:t.setcustomsave}},[t._v(" Save")]):t._e(),t.startservice?s("button",{staticClass:" btn btn-outline-danger btn-sm",attrs:{title:"Remove Lab_Instance",round:""},on:{click:function(e){return t.onActionstopcheck()}}},[t._v(" Remove ")]):s("button",{staticClass:" btn btn-outline-danger btn-sm",attrs:{title:"Remove Lab_Instance",round:"",disabled:""}},[t._v(" Remove ")]),t.actionrowindexmore?s("button",{staticClass:"ti-more btn btn-info btn-sm",attrs:{title:"More Actions...",round:""},on:{click:function(e){return t.onActionmore()}}}):s("button",{staticClass:"ti-more btn btn-secondary btn-sm",attrs:{title:"More Actions...",round:""},on:{click:function(e){return t.onActionmoreclose()}}})]):t._e(),t.viewhybridoptions&&t.custommenou?s("div",{staticClass:"input-group-append"},[s("b-col",{staticClass:"text-center",attrs:{cols:"5",sm:"5",md:"5"}},[s("div",{staticClass:"form-group"},[s("label",{staticClass:"text-dark",attrs:{for:"custompackages"}},[t._v("Add Extrapackages "),s("br"),s("span",{staticClass:"text-success"},[t._v(" "+t._s(t.customostext)+" ")])]),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.custom.os,expression:"custom.os"}],staticClass:"form-control",attrs:{id:"custompackages",rows:"8"},domProps:{value:t.custom.os},on:{input:function(e){e.target.composing||t.$set(t.custom,"os",e.target.value)}}},[t._v(" "+t._s(t.custom.os)+" ")])])]),s("b-col",{staticClass:"text-center",attrs:{cols:"7",sm:"7",md:"7"}},[s("div",{staticClass:"form-group"},[s("label",{staticClass:"text-dark",attrs:{for:"customshell"}},[t._v("Custom sh script "),s("br"),s("span",{staticClass:"text-success"},[t._v(" "+t._s(t.customshtext)+" ")])]),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.custom.sh,expression:"custom.sh"}],staticClass:"form-control",attrs:{id:"customshell",rows:"8"},domProps:{value:t.custom.sh},on:{input:function(e){e.target.composing||t.$set(t.custom,"sh",e.target.value)}}},[t._v(" "+t._s(t.custom.sh)+" ")])])])],1):t._e(),t.viewhybridoptions&&t.heavy?s("div",{staticClass:"input-group-append"},[s("p",{staticClass:"text-danger"},[t._v(t._s(t.heavytext))])]):t._e(),s("vuetable",{key:t.vuetablekeygusersservices,ref:"vuetable",attrs:{id:"idvuetablekeygusersservices","api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:row-clicked":t.rowClicked,"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess,"vuetable:load-error":t.onLoadError},scopedSlots:t._u([{key:"actionsenabled",fn:function(e){return s("div",{key:t.vuetablekeygslotcustomnew},[s("div",{staticClass:"d-flex justify-content-center"},[t.testtest[e.rowData.service]==e.rowData.service&&t.testtestdir[e.rowData.service]==e.rowData.service&&t.testtestdiruser[e.rowData.service]==e.rowData.user?s("button",{staticClass:" btn btn-sm text-muted",attrs:{round:""}},[s("span",{staticClass:"text-success"},[t._v("Running...")])]):s("button",{staticClass:" btn btn-sm text-muted",attrs:{round:""}},[s("span",{staticClass:"text-success"})])])])}},{key:"actionslocal",fn:function(e){return s("div",{key:t.vuetablekeygslotcustom,attrs:{actionslocal:""}},[s("div",{staticClass:"d-flex justify-content-center"},[t.testtestdir[e.rowData.service]==e.rowData.service?s("button",{staticClass:"ti-check btn btn-sm text-success",attrs:{title:"Remove Lab_Instance",round:""}}):t._e()])])}},{key:"actions",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[s("button",{staticClass:"ti-cloud-down btn btn-sm text-muted",attrs:{title:"Download Lab_Instance",round:""},on:{click:function(a){return t.onAction("run-install",e.rowData,e.rowData._id)}}}),s("button",{staticClass:"ti-info btn btn-smtext-muted ",attrs:{title:"Lab_Instance Info",round:""},on:{click:function(a){return t.onAction("view-item",e.rowData,e.rowData._id)}}})])])}}])}),s("div",{staticClass:"vuetable-pagination ui basic segment grid"},[s("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),s("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},Ie=[],Be={components:{card:k,Vuetable:$["Vuetable"],VuetablePagination:S["a"],VuetablePaginationInfo:L["a"],VuetablePaginationDropdown:$["VuetablePaginationDropdown"]},props:{},data(){return{startservice:!0,actionrowindex:!1,actionrowindexmore:!0,swarmlabinfonow:!1,testactionrowindex:[],teststatusindex:[],testtest:[],testtestdir:[],testtestdiruser:[],hybridoptions:{index:"",swarmlabname:"",size:"",port:""},viewhybridoptions:!1,heavy:!1,heavytext:"",customedit:!1,custommenouopen:!1,custommenou:!1,custom:{os:"",sh:""},customostext:"",customshtext:"",up_name:"",swarmlab:{},playbookInfo:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"hybrid",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekeygusersservices:0,vuetablekeygslotcustom:0,vuetablekeygslotcustomnew:0,fielddata:{},fields:[{name:"__slot:actionslocal",title:"",titleClass:"center",dataClass:"center aligned",width:"5%"},{name:"service",title:'<span class="orange"></span>Microservice',sortField:"service",visible:!0,dataClass:"left aligned col-3 text-muted",width:"30%"},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"user",title:'<span class="orange"></span>User',sortField:"user",titleClass:"center aligned",dataClass:"left aligned w-25 text-muted",visible:!0,width:"10%",callback:function(t){if(t){var e=t.split("@");if(e[0]){var a='<p class="text-info">'+e[0]+"</p>";return a}a='<p class="text-info"></p>';return a}return t}},{name:"readme",title:'<span class="orange"></span>Info',titleClass:"center aligned",dataClass:"left aligned w-25 text-muted",visible:!0,width:"25%"},{name:"visibility",title:'<span class="orange"></span>Pub',sortField:"gitrepoCloneUrl",dataClass:"center aligned w-10 text-center",visible:!0,width:"10%",callback:function(t){if("Public"==t){var e=' <span \n\t\t\t\t\tclass="ti-check text-info text-center" \n\t\t\t\t\tround\n\t\t\t\t\t>\n\t\t\t\t\t</span>\n';return e}e=' <span \n\t\t\t\t\tclass="ti-lock text-info" \n\t\t\t\t\tround\n\t\t\t\t\t>\n\t\t\t\t\t</span>\n';return e}},{name:"gitrepo",title:'<span class="orange"></span>User repo',sortField:"gitrepo",titleClass:"center aligned",dataClass:"left aligned w-25 text-muted",visible:!1,width:"30%"},{name:"__slot:actionsenabled",title:"Status",titleClass:"center",dataClass:"center aligned",width:"5%"},{name:"__slot:actions",title:"Download",titleClass:"col text-center",dataClass:"center aligned",width:"10%"}],apiurl:d.swarmlab_url_80+"/swarmlabhybridmymicroservicesall",css:I["a"],perpage:8,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",currentpage:"1",currentpagepaginationData:{},dataselect:"",indexselect:"",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts"}}},mounted(){this.$root.$on("hybrid_build_micro_service_menou_refreshtable",()=>{this.refreshVuetable()}),this.$root.$on("hybrid_refresh_availableservices",()=>{s["default"].nextTick(()=>this.refreshVuetable())}),this.$root.$on("hybrid_refresh_table",t=>{this.$nextTick((function(){this.refreshVuetable(),this.viewhybridoptions=!1}))})},async created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token"),await this.refreshVuetable()},beforeDestroy(){this.$root.$off("hybrid_refresh_availableservices"),this.$root.$off("hybrid_build_micro_service_menou_refreshtable"),this.$root.$off("hybrid_refresh_table")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{onActionmore(){this.actionrowindex=!0,this.actionrowindexmore=!1},onActionmoreclose(){this.actionrowindex=!1,this.actionrowindexmore=!0},async onActionstopcheck(){var t=this.hybridoptions.user.split("@"),e=`<h5> Microservice: <b> ${this.hybridoptions.service}-${t[0]} </b> </h5>`;e+="<br>Remove containers, networks, images, and volumes",this.$swal({type:"info",html:e,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Yes!"}).then(t=>{this.onActionstop(t)})},async onActionstop(t){if(t.isConfirmed){this.resetcustom(),this.$wait.start("myRunInstancetutorcustom");var e=await v.dispatch("pipelineLLO/rmswarmlablocaluser",this.hybridoptions);this.$wait.end("myRunInstancetutorcustom");var a={};a.token=this.token,a.instance=this.hybridoptions;var s=await v.dispatch("pipelineLLO/getservicesinfocustom",a);if("yes"==s.data.data&&"yes"==s.data.data){var i='<h6 class="text-warning"> swarmlab encountered a problem while deleting your labroom files. <br> This propably means that you have created some files while operating the labroom. <br> To remove those files please run the following command as root. </h6> <h5><i>Copy-and-run-command </i></h5><br> ';i+='<span class="text-success">sudo rm -rf '+e.data.mydir+"/community/"+e.data.path+" </span><br><br>",i+='<span class="text-secondary"> You can back up content using: </span><br>',i+='<span class="text-warning">sudo tar -zcvf /home/$USER/swarmlabbackup_'+data.service+".tar.gz "+e.data.mydir+"/community/"+e.data.path+" </span>";var o="<h5>Microservice remove</h5>";this.$swal({type:"info",html:o+i,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}this.refreshVuetable(),this.$root.$emit("hybrid_refresh_info_deploy_local")}},onError(t,e){var a=e,s="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:s+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},async checkactionrowindexall(){var t={};t.token=this.token,t.instance="info";var e=await v.dispatch("pipelineLLO/getservicesstatusall",t);if(e.data.data){var a=e.data.data.length;for(var i in this.testtest)s["default"].delete(this.testtest,this.testtest[i]);for(let t=0;t<a;++t){var o=e.data.data[t],n=o.Names.split("_");let a=n[0].lastIndexOf("-");a++;var r=n[0].substring(a);s["default"].set(this.testtest,r,r)}}var l=await v.dispatch("pipelineLLO/getservicesinfoallcustom",t);if(l.data.data){for(var i in this.testtestdir)s["default"].delete(this.testtestdir,this.testtestdir[i]);var c=l.data.data.length;for(let t=0;t<c;++t){var d=l.data.data[t],u=!1;if(u){var p=this.hybridoptions.user+"_",m="_"+this.hybridoptions.baseservice,h=new RegExp(p,"g"),b=d.replace(h,""),f=new RegExp(m,"g"),w=b.replace(f,"");s["default"].set(this.testtestdir,w,w)}else{var g=d.split("@");if(g[1]){var y=g[1].split("_");s["default"].set(this.testtestdir,y[1],y[1]);var _=`${g[0]}@${y[0]}`;s["default"].set(this.testtestdiruser,y[1],_)}}}}},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",this.moreParams={filter:"",type:"scripts"},s["default"].nextTick(()=>this.refreshVuetableall())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t),this.currentpagepaginationData=t},onChangePage(t){this.resetcustom(),this.currentpage=t,this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async onAction(t,e,a){if("view-item"==t){this.swarmlabinfonow=!0,this.swarmlab=e;var i=this.swarmlab.readme,o=`<div style="height: 250px; overflow-y: scroll;"><p>${i}</p></div>\n\t\t\t\t\t\t\t\t`;""!=this.swarmlab.gitrepo&&(o+=`<br><div>\n \t\t\t\t\t\t\t\t\t\t<b> <a class="text-info" href="${this.swarmlab.gitrepo}" target="_blank">Service related - Git repository</a></b>\n\t\t\t\t\t\t\t</div>`);var n='<h5 class="text-muted"><b>Service Info</b></h5>';n+=o,this.$swal({type:"info",html:n,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}else if("delete-item"==t)this.$swal({type:"info",html:n+d,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Yes, Delete it!"}),s["default"].nextTick(()=>this.refreshVuetable());else if("rm-install"==t){this.resetcustom(),this.hybridoptions.swarmlabname=e.swarmlabname,this.$wait.start("myRunInstancetutorcustom");var r=await v.dispatch("pipelineLLO/rmswarmlablocaluser",e);this.$wait.end("myRunInstancetutorcustom");var l={};l.token=this.token,l.instance=this.hybridoptions;var c=await v.dispatch("pipelineLLO/getservicesinfocustom",l);if("yes"==c.data.data&&"yes"==c.data.data){var d='<h6 class="text-warning"> swarmlab encountered a problem while deleting your labroom files. <br> This propably means that you have created some files while operating the labroom. <br> To remove those files please run the following command as root. </h6> <h5><i>Copy-and-run-command </i></h5><br> ';d+='<span class="text-success">sudo rm -rf '+r.data.mydir+"/community/"+r.data.path+" </span><br><br>",d+='<span class="text-secondary"> You can back up content using: </span><br>',d+='<span class="text-warning">sudo tar -zcvf /home/$USER/swarmlabbackup_'+e.service+".tar.gz "+r.data.mydir+"/community/"+r.data.path+" </span>";n="<h5>Microservice remove</h5>";this.$swal({type:"info",html:n+d,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}this.refreshVuetable(),this.$root.$emit("hybrid_refresh_info_deploy_local")}else if("run-install"==t){this.swarmlabinfonow=!0,this.$wait.start("myRunInstancetutorcustom"),this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.baseservice=e.baseservice,this.hybridoptions.service=e.service,this.hybridoptions.user=e.user,this.hybridoptions.index=a;let t={};t.swarmlabname=this.hybridoptions.swarmlabname,t.baseservice=this.hybridoptions.baseservice,t.service=this.hybridoptions.service,t.user=this.hybridoptions.user,t.index=this.hybridoptions.index,t.size=this.hybridoptions.size,t.port=this.hybridoptions.port;await v.dispatch("pipelineLLO/checkownercustom",{token:this.token,instance:this.hybridoptions.swarmlabname});for(var u=0;u<ot.length;u++){var p=ot[u];p.name==this.hybridoptions.baseservice&&(t.baseservicedata=p)}this.$root.$emit("hybrid_install_instance_custom",t),this.$wait.end("myRunInstancetutorcustom"),this.refreshVuetable()}else if("run-item"==t){this.swarmlabinfonow=!0,this.resetcustom(),this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.baseservice=e.baseservice,this.hybridoptions.packages=e.packages,this.hybridoptions.sh=e.sh,this.hybridoptions.rclocal=e.rclocal,this.hybridoptions.service=e.service,this.hybridoptions.user=e.user,this.hybridoptions.index=a,this.hybridoptions.port1=e.port1,this.hybridoptions.url1=e.url1,this.hybridoptions.name1=e.name1,this.hybridoptions.port2=e.port2,this.hybridoptions.url2=e.url2,this.hybridoptions.name2=e.name2,this.hybridoptions.port3=e.port3,this.hybridoptions.url3=e.url3,this.hybridoptions.name3=e.name3,this.heavy=!1,this.heavytext="";var m=this.hybridoptions.user.split("@");this.up_name=`${this.hybridoptions.service}-${m[0]}`;var h="microservice-volatilitywindows",b=new RegExp(h),f="microservice-jupyter",w=new RegExp(f);if(w.test(e.swarmlabname)){this.viewhybridoptions=!1;let t={};t.swarmlabname=e.swarmlabname,t.index=a,t.size=this.hybridoptions.size,t.port=this.hybridoptions.port,this.$root.$emit("hybrid_start_instance",t)}else if(b.test(e.swarmlabname))this.viewhybridoptions=!0,this.heavy=!0,this.heavytext="Note that this image is somewhat heavy (~2GB) since they embed some of the kernel debug symbols for Microsoft Windows. It can take some time to build the Instance",this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;else{this.viewhybridoptions=!0,this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;for(u=0;u<ot.length;u++){p=ot[u];p.name==e.baseservice&&p.hasOwnProperty("large")&&"no"!=p.large&&(this.heavy=!0,this.heavytext=p.large),p.name==e.baseservice&&(this.hybridoptions.baseservicedata=p,p.hasOwnProperty("custom")&&"no"!=p.custom&&(this.customedit=!0,this.custom.os=p.customos,this.custom.sh=p.customsh,this.customostext=p.customostext,this.customshtext=p.customshtext))}}}else if("down-item"==t){this.up_name="",this.hybridoptions=e,this.hybridoptions.index=a;m=this.hybridoptions.user.split("@"),n=`<h5> Microservice: <b> ${this.hybridoptions.service}-${m[0]} </b> </h5>`;n+="<br>Stop and remove containers, networks, images, and volumes",this.$swal({type:"info",html:n,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Yes!"}).then(t=>{this.rmAndClose(t)})}},async rmAndClose(t){if(t.isConfirmed){this.hybridoptions.swarmlabname,await v.dispatch("pipelineLLO/stopservicecustom",{token:this.token,instance:this.hybridoptions});this.refreshVuetable()}else console.log("no")},async setcustomcancel(){this.custommenouopen=!1,this.custommenou=!1},async setcustomsave(){let t={};t.swarmlabname=this.hybridoptions.swarmlabname;await v.dispatch("pipelineLLO/savecustomuser",{token:this.token,instance:this.hybridoptions,package:this.custom.os,sh:this.custom.sh});this.custommenouopen=!1,this.custommenou=!1},async setcustom(){let t={};t.swarmlabname=this.hybridoptions.swarmlabname,this.custommenouopen=!0,this.custommenou=!0;var e=await v.dispatch("pipelineLLO/getcustomuser",{token:this.token,instance:this.hybridoptions});if(!1===e.data.error){if("nodir"==e.data.error_msg){var a="<h5><b> Please redownload Microservice and try launching the module again </b><br> \n </h5>\n ";this.$swal({type:"Info",icon:"info",html:a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}"ok"==e.data.error_msg&&(""!=e.data.extrapackagestext&&s["default"].set(this.custom,"os",e.data.extrapackagestext),""!=e.data.extrashtext&&s["default"].set(this.custom,"sh",e.data.extrashtext))}else{a="<h5><b> Please remove and download Microservice and try launching the module again </b><br> \n </h5>\n ";this.$swal({type:"Info",icon:"info",html:a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}},async backup(){await v.dispatch("pipelineLLO/runbackupinstanceuser",{token:this.token,instance:this.hybridoptions})},async backupview(){var t="<h5><b>Backups</b><br> \n <br>\n ";t+='<p class="text-secondary">',t+=" <b>Click on hyperlink opens Directory in new tab</b></p>",t+='<b> <a class="text-info" href="http://127.0.0.1:3383/" target="_blank">View Backups</a></b>',t+="<br>",this.$swal({type:"Info",title:"Info!",icon:"info",html:t,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},async setHybridoptions(){this.resetcustom();let t={};t.swarmlabname=this.hybridoptions.swarmlabname,t.index=this.hybridoptions.index,t.size=this.hybridoptions.size,t.port=this.hybridoptions.port;await v.dispatch("pipelineLLO/chowncustom",{token:this.token,user:this.hybridoptions.user,service:this.hybridoptions.service,baseservice:this.hybridoptions.baseservice});this.$root.$emit("hybrid_start_instance_custom",this.hybridoptions),await this.refreshVuetable()},async refreshVuetableall(){this.$nextTick(()=>{this.vuetablekeygusersservices+=1})},async resetcustom(){this.customedit=!1,this.custommenouopen=!1,this.custommenou=!1,this.custom.os="",this.custom.sh=""},async refreshVuetable(){await this.checkactionrowindexall(),this.$nextTick(()=>{this.vuetablekeygslotcustom+=1,this.vuetablekeygslotcustomnew+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},async rowClicked(t,e){if(this.testtest[t.service]!=t.service&&this.testtestdir[t.service]==t.service&&this.testtestdiruser[t.service]==t.user)this.swarmlabinfonow||(this.hybridoptions=t,this.startservice=!0,await this.onAction("run-item",t,t._id),this.swarmlabinfonow=!1);else if(this.testtest[t.service]==t.service&&this.testtestdir[t.service]==t.service&&this.testtestdiruser[t.service]==t.user)this.hybridoptions=t,this.startservice=!1,await this.onAction("run-item",t,t._id);else if(this.testtest[t.service]!=t.service&&this.testtestdir[t.service]!=t.service&&(console.log("info"),!this.swarmlabinfonow)){var a=t.user.split("@"),s=`<h5> Microservice <b> ${t.service}-${a[0]} </b> is Not Installed </h5> <br> \n <b>Use </b>\n <br>\n <br>\n <div class="row" >\n <div class="col-1" >\n <button\n class="ti-cloud-down btn btn-outline-secondary btn-sm"\n round\n >\n </button>\n </div>\n <div class="col-4" >\n To Install\n </div>\n <div class="col-1" >\n <button\n class="ti-info btn btn-outline-secondary btn-sm"\n round\n >\n </button>\n </div>\n <div class="col-6" >\n For More Information \n </div>\n </div>\n `;this.$swal({type:"info",html:s,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Yes!"})}this.swarmlabinfonow=!1},async stopservice(){this.startservice=!1,await this.onAction("down-item",this.hybridoptions,this.hybridoptions._id)},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length},onLoadError(t){"401"==t.response.status&&(window.location.href="https://api-login.swarmlab.io:8089",s["default"].nextTick(()=>window.location.href="https://api-login.swarmlab.io:8089"))}},actions:{}},Ne=Be,Ee=(a("b876"),Object(_["a"])(Ne,Se,Ie,!1,null,null,null)),Pe=Ee.exports,De={components:{AvailableMymicroservices:Pe,AdhocView:ft,card:k,AvailableMicroservices:Le},data(){return{viewmicroservices:7,viewconsole:5,consoleview:!0,consolemicro:!0,showconsole:!0,componentKeyreloadservice5:1,loading:!1,consoleView:"off",productIndex:1}},mounted(){this.$root.$on("hybrid_refresh_info_deploy_local",()=>{this.componentKeyreloadservice5+=1})},beforeDestroy(){this.$root.$off("hybrid_refresh_info_deploy_local")},methods:{setnewview(t,e){12==t&&(this.viewmicroservices=t,this.viewconsole=e,this.consoleview=!1,this.consolemicro=!0),12==e&&(this.viewmicroservices=t,this.viewconsole=e,this.consoleview=!0,this.consolemicro=!1),7!=t&&5!=e||(this.viewmicroservices=t,this.viewconsole=e,this.consoleview=!0,this.consolemicro=!0)}},created(){this.setnewview(7,5)}},Te=De,Ve=Object(_["a"])(Te,Ce,ke,!1,null,null,null),Fe=Ve.exports,Ge=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{class:"col-1 order-first"},[a("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{round:"",type:"button"},on:{click:function(e){return t.setnewview(12,0)}}},[t._v(" +")]),a("button",{directives:[{name:"show",rawName:"v-show",value:!t.consoleview,expression:"!consoleview"}],staticClass:"btn btn-warning btn-sm",attrs:{round:"",type:"button"},on:{click:function(e){return t.setnewview(7,5)}}},[t._v(" -")])]),a("div",{class:"col-10"}),a("div",{class:"col-1 order-last float-sm-right"},[a("button",{staticClass:"btn btn-outline-info btn-sm float-right",attrs:{round:"",type:"button"},on:{click:function(e){return t.setnewview(0,12)}}},[t._v(" +")]),a("button",{directives:[{name:"show",rawName:"v-show",value:!t.consolemicro,expression:"!consolemicro"}],staticClass:"btn btn-warning btn-sm float-right",attrs:{round:"",type:"button"},on:{click:function(e){return t.setnewview(7,5)}}},[t._v(" -")])])]),a("div",{staticClass:"divider py-1 "},[a("hr")]),a("div",{staticClass:"row"},[a("div",{class:"col-"+t.viewmicroservices+" order-first"},[a("br"),a("available-mymicroservices",{directives:[{name:"show",rawName:"v-show",value:t.consolemicro,expression:"consolemicro"}],key:t.componentKeyreloadservice5custom1})],1),a("div",{class:"col-"+t.viewconsole+" order-last"},[a("br"),a("adhoc-view",{directives:[{name:"show",rawName:"v-show",value:t.consoleview,expression:"consoleview"}]})],1)])])},ze=[],Me={components:{AdhocView:ft,card:k,AvailableMymicroservices:Pe},data(){return{viewmicroservices:7,viewconsole:5,consoleview:!0,consolemicro:!0,componentKeyreloadservice5custom1:1,loading:!1,consoleView:"off",productIndex:1}},mounted(){this.$root.$on("hybrid_refresh_info_deploy_local",()=>{this.componentKeyreloadservice5custom1+=1})},beforeDestroy(){this.$root.$off("hybrid_refresh_info_deploy_local")},methods:{setnewview(t,e){12==t&&(this.viewmicroservices=t,this.viewconsole=e,this.consoleview=!1,this.consolemicro=!0),12==e&&(this.viewmicroservices=t,this.viewconsole=e,this.consoleview=!0,this.consolemicro=!1),7!=t&&5!=e||(this.viewmicroservices=t,this.viewconsole=e,this.consoleview=!0,this.consolemicro=!0)}},created(){this.setnewview(7,5)}},je=Me,Ue=Object(_["a"])(je,Ge,ze,!1,null,null,null),Ye=Ue.exports,qe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-7 order-first "},[a("br"),a("available-poc",{key:t.componentKeyreloadpoc})],1),a("div",{staticClass:"col-5 order-last"},[a("br"),a("adhoc-view")],1)])])},He=[],Ke=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("v-wait",{attrs:{for:"myRunInstancetutorpoc"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room poc... ")])])],2),s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[s("span",{staticClass:"text-muted"},[t._v("Swarmlab")]),t._v(" "),s("span",{staticClass:"text-info"},[t._v("Proof_of_concept")]),t._v(" "),s("span",{staticClass:"text-muted"},[t._v(" - Deploy@Home")])])])]),s("br"),s("div",{staticClass:"input-group input-group-sm sm-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),t.viewhybridoptions?s("div",{staticClass:"row"},[s("b-col",{staticClass:"text-center",attrs:{cols:"12",sm:"12",md:"12"}},[s("span",[s("b",[t._v("POC Service Options")])])])],1):t._e(),t.viewhybridoptions?s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"}},[t._v(" Admin ")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.hybridoptions.password,expression:"hybridoptions.password"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"New Password"},domProps:{value:t.hybridoptions.password},on:{input:function(e){e.target.composing||t.$set(t.hybridoptions,"password",e.target.value)}}}),s("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:t.checkHybridoptions}},[t._v(" Up")])]):t._e(),s("vuetable",{key:t.vuetablekeypoc,ref:"vuetable",attrs:{id:"idvuetablekeypoc","api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess,"vuetable:load-error":t.onLoadError},scopedSlots:t._u([{key:"actionsenabled",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[t.testactionrowindex[e.rowData.swarmlabname]==e.rowIndex?s("button",{staticClass:"ti-thumb-up btn btn-sm",attrs:{title:"Stop Lab_Instance",round:""},on:{click:function(a){return t.onAction("down-item",e.rowData,e.rowIndex)}}}):t._e(),t.testactionrowindex[e.rowData.swarmlabname]!=e.rowIndex&&t.testactionrowindex[e.rowIndex]==e.rowIndex?s("button",{staticClass:"ti-thumb-down btn btn-sm",attrs:{title:"Start Lab_Instance",round:""},on:{click:function(a){return t.onAction("run-item",e.rowData,e.rowIndex)}}}):t._e()])])}},{key:"actionslocal",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[t.testactionrowindex[e.rowIndex]==e.rowIndex&&t.testactionrowindex[e.rowData.swarmlabname]!=e.rowIndex?s("button",{staticClass:"ti-trash btn btn-sm text-warning",attrs:{title:"Remove Lab_Instance",round:""},on:{click:function(a){return t.onAction("delete-item",e.rowData,e.rowIndex)}}}):t._e()])])}},{key:"actions",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[t.checkactionrowindex(e.rowData,e.rowIndex)?s("button",{staticClass:"ti-cloud-down btn btn-sm text-muted",attrs:{title:"Download Lab_Instance",round:""},on:{click:function(a){return t.onAction("run-install",e.rowData,e.rowIndex)}}}):t._e(),s("button",{staticClass:"ti-info btn btn-sm",attrs:{title:"Lab_Instance Info text-muted",round:""},on:{click:function(a){return t.onAction("view-item",e.rowData,e.rowIndex)}}})])])}}])}),s("div",{staticClass:"vuetable-pagination ui basic segment grid"},[s("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),s("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},We=[],Qe={components:{card:k,Vuetable:$["Vuetable"],VuetablePagination:S["a"],VuetablePaginationInfo:L["a"],VuetablePaginationDropdown:$["VuetablePaginationDropdown"]},props:{},data(){return{testactionrowindex:[],teststatusindex:[],hybridoptions:{index:"",swarmlabname:"",password:"",port:""},viewhybridoptions:!1,swarmlab:{},playbookInfo:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"hybrid",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekeypoc:0,fielddata:{},fields:[{name:"__slot:actionslocal",title:"",titleClass:"center",dataClass:"center aligned",width:"5%"},{name:"swarmlabname",title:'<span class="orange"></span>PoC',sortField:"swarmlabname",visible:!0,dataClass:"left aligned col-3 text-muted",width:"68%"},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"description",sortField:"gitrepoCloneUrl",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"gitrepoFullName",sortField:"gitrepoFullName",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"__slot:actionsenabled",title:"Status",titleClass:"center",dataClass:"center aligned",width:"5%"},{name:"__slot:actions",title:"Download",titleClass:"col text-center",dataClass:"center aligned",width:"10%"}],apiurl:d.swarmlab_url_80+"/swarmlabhybridpoc",css:I["a"],perpage:5,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts"}}},mounted(){this.$root.$on("hybrid_refresh_availableservices_poc",()=>{this.refreshVuetable()}),this.$root.$on("hybrid_refresh_table_poc",t=>{this.$nextTick((function(){this.refreshVuetable(),this.viewhybridoptions=!1,this.$wait.end("myRunInstancetutorpoc")}))})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token")},beforeDestroy(){this.$root.$off("hybrid_refresh_availableservices_poc"),this.$root.$off("hybrid_refresh_table_poc")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{onError(t,e){var a=e,s="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:s+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},async checkactionrowindex(t,e){if(this.testactionrowindex[e]==e){var a={};a.token=this.token,a.instance=t.swarmlabname;var i=await v.dispatch("pipelineLLO/getpocstatus",a);"yes"==i.data.data?s["default"].set(this.testactionrowindex,t.swarmlabname,e):s["default"].delete(this.testactionrowindex,t.swarmlabname)}else{a={};a.token=this.token,a.instance=t.swarmlabname;var o=await v.dispatch("pipelineLLO/getservicesinfo",a);if("yes"==o.data.data){s["default"].set(this.testactionrowindex,e,e);i=await v.dispatch("pipelineLLO/getpocstatus",a);"yes"==i.data.data?s["default"].set(this.testactionrowindex,t.swarmlabname,e):s["default"].delete(this.testactionrowindex,t.swarmlabname)}else console.log("resi NO1 "+JSON.stringify(o))}},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},this.refreshVuetable()},resetFilter(){this.moreParams={},this.searchFor="",this.moreParams={filter:"",type:"scripts"},this.refreshVuetable()},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t)},onChangePage(t){this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async onAction(t,e,a){if("view-item"==t){this.swarmlab=e;this.swarmlab;var s="https://git.swarmlab.io:3000/docs/Documentation",i="",o='<h5>Swarmlab Service <a href="'+s+'" target="_blank" >Info</a></h5>(Open page in new window)';this.$swal({type:"info",html:o+i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}else if("delete-item"==t){this.hybridoptions.swarmlabname=e.swarmlabname;o="<h5>This will remove the storage with the name<b> "+e.swarmlabname+"</b> </h5><br>",this.hybridoptions.swarmlabname,i="";this.$swal({type:"info",html:o+i,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Yes, Delete it!"}).then(t=>{this.rmStorageAndClose(t)}),this.refreshVuetable()}else if("run-install"==t){this.$wait.start("myRunInstancetutorpoc"),this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;let t={};t.swarmlabname=this.hybridoptions.swarmlabname,t.index=this.hybridoptions.index,t.size=this.hybridoptions.size,t.port=this.hybridoptions.port;var n=await v.dispatch("pipelineLLO/getswarmlabpocinfo",t.swarmlabname);s=n.data.swarmlabinfo;t.git=s,this.$root.$emit("hybrid_install_instance_storage",t),this.$wait.end("myRunInstancetutorpoc"),this.refreshVuetable()}else if("run-item"==t)this.viewhybridoptions=!0,this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;else if("down-item"==t){this.hybridoptions.swarmlabname=e.swarmlabname,this.hybridoptions.index=a;o="Stop and remove storage: containers, networks, images, and volumes";this.$swal({type:"info",html:o,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Yes!"}).then(t=>{this.rmAndClose(t)}),this.refreshVuetable()}},async rmStorageAndClose(t){if(t.isConfirmed){this.$wait.start("myRunInstancetutorpoc");await v.dispatch("pipelineLLO/rmswarmlablocalpoc",this.hybridoptions.swarmlabname);this.$wait.end("myRunInstancetutorpoc"),s["default"].delete(this.testactionrowindex,this.hybridoptions.swarmlabname),this.refreshVuetable(),this.$root.$emit("hybrid_refresh_info_deploy_local")}},async rmAndClose(t){if(t.isConfirmed){this.$wait.start("myRunInstancetutorpoc");var e=this.hybridoptions.swarmlabname;this.$root.$emit("hybrid_stop_instance_poc",e),s["default"].delete(this.testactionrowindex,this.hybridoptions.index),this.refreshVuetable()}else console.log("no")},async checkHybridoptions(){this.hybridoptions.swarmlabname;var t={isConfirmed:"true"};this.setHybridoptions(t)},async setHybridoptions(t){this.$wait.start("myRunInstancetutorpoc");let e={};e.swarmlabname=this.hybridoptions.swarmlabname,e.index=this.hybridoptions.index,e.password=this.hybridoptions.password,e.port=this.hybridoptions.port,this.$root.$emit("hybrid_start_instance_poc",e),s["default"].set(this.testactionrowindex,e.swarmlabname,e.index),this.refreshVuetable()},refreshVuetable(){this.$nextTick(()=>{this.vuetablekeypoc+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){return{html:!0,title:()=>"Hello <b>Popover:</b> "+ ++this.counter,content:()=>"The date is:<br><em>"+new Date+"</em>"}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length},onLoadError(t){"401"==t.response.status&&(window.location.href="https://api-login.swarmlab.io:8089",s["default"].nextTick(()=>window.location.href="https://api-login.swarmlab.io:8089"))}},actions:{}},Je=Qe,Ze=(a("e8d2"),Object(_["a"])(Je,Ke,We,!1,null,null,null)),Xe=Ze.exports,ta={components:{AdhocView:ft,card:k,AvailablePoc:Xe},data(){return{componentKeyreloadpoc:1,loading:!1,consoleView:"off",productIndex:1}},mounted(){this.$root.$on("hybrid_refresh_info_deploy_local",()=>{this.componentKeyreloadpoc+=1})},beforeDestroy(){this.$root.$off("hybrid_refresh_info_deploy_local")},created(){}},ea=ta,aa=Object(_["a"])(ea,qe,He,!1,null,null,null),sa=aa.exports,ia=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-7 order-first "},[a("builder-services"),a("br"),a("builder-my-services")],1),a("div",{staticClass:"col-5 order-last"},[a("br"),a("service-view")],1)])])},oa=[],na=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{directives:[{name:"show",rawName:"v-show",value:t.menou,expression:"menou"}],staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[t._v("View and "),s("span",{staticClass:"text-info"},[t._v("Manage your build")])])])]),s("br"),t.menouselect?s("div",{staticClass:"row"},[s("div",{staticClass:"col-sm-12 sm-12"},[s("b-form-select",{staticClass:"mt-3",attrs:{options:t.options,size:"sm"},on:{change:t.setservice},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}},[t._v(" >")])],1)]):t._e(),s("div",{staticClass:"row"},[s("div",{staticClass:"col-sm-12 sm-12"},[s("div",{staticClass:"input-group"},[s("div",{staticClass:"input-group-prepend"},[s("span",{staticClass:"input-group-text",attrs:{name:"validationTooltipUsernamePrepend1"}},[t._v("Base Service Name")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form_baseservice,expression:"form_baseservice"}],staticClass:"form-control text-success",attrs:{type:"text",disabled:"","aria-describedby":"validationTooltipUsernamePrepend1"},domProps:{value:t.form_baseservice},on:{input:function(e){e.target.composing||(t.form_baseservice=e.target.value)}}}),s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"ti-info btn btn-outline-secondary btn-sm",attrs:{title:"Info",round:""},on:{click:function(e){return t.onAction("form_baseservice")}}})])])])]),s("ValidationProvider",{ref:"hybrid_stackname",attrs:{name:"myServicename",rules:"required|alpha_num_name"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[s("div",{staticClass:"row"},[s("div",{staticClass:"col-sm-12 sm-12"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[s("span",{staticClass:"input-group-text"},[t._v("Service Name")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form_myservicename,expression:"form_myservicename"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.stackname,"is-invalid":2==t.isDeployValid.stackname},attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm","data-vv-as":'"nyServicename"',"data-vv-value-path":"form_myservicename","data-vv-name":"form_myservicename"},domProps:{value:t.form_myservicename},on:{keyup:function(e){return t.isValid("stackname")},blur:function(e){return t.isValid("stackname")},input:[function(e){e.target.composing||(t.form_myservicename=e.target.value)},function(e){return t.isValid("stackname")}],change:function(e){return t.isValid("stackname")},focus:function(e){return t.isValid("stackname")}}}),s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"ti-info btn btn-outline-secondary btn-sm",attrs:{title:"Info",round:""},on:{click:function(e){return t.onAction("form_myservicename")}}})])])])]),s("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])}),s("ValidationProvider",{ref:"hybrid_stackversion",attrs:{name:"myVersion",rules:"required|alpha_num_name"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[s("div",{staticClass:"row"},[s("div",{staticClass:"col-sm-12 sm-12"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[s("span",{staticClass:"input-group-text"},[t._v("Service Version")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form_version,expression:"form_version"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.stackversion,"is-invalid":2==t.isDeployValid.stackversion},attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",name:"myVersion"},domProps:{value:t.form_version},on:{keyup:function(e){return t.isValid("stackversion")},blur:function(e){return t.isValid("stackversion")},input:[function(e){e.target.composing||(t.form_version=e.target.value)},function(e){return t.isValid("stackversion")}],change:function(e){return t.isValid("stackversion")},focus:function(e){return t.isValid("stackversion")}}}),s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"ti-info btn btn-outline-secondary btn-sm",attrs:{title:"Info",round:""},on:{click:function(e){return t.onAction("form_version")}}})])])])]),s("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])}),s("ValidationProvider",{ref:"hybrid_stackgitrepo",attrs:{name:"myGitrepo",rules:"required|alpha_num_url"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[s("div",{staticClass:"row"},[s("div",{staticClass:"col-sm-12 sm-12"},[s("div",{staticClass:"input-group"},[s("div",{staticClass:"input-group-prepend"},[s("span",{staticClass:"input-group-text",attrs:{name:"validationTooltipUsernamePrepend"}},[t._v("Git-repo")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form_gitrepo,expression:"form_gitrepo"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.gitrepo,"is-invalid":2==t.isDeployValid.gitrepo},attrs:{type:"text",name:"myGitrepo","aria-describedby":"validationTooltipUsernamePrepend"},domProps:{value:t.form_gitrepo},on:{keyup:function(e){return t.isValid("gitrepo")},blur:function(e){return t.isValid("gitrepo")},input:[function(e){e.target.composing||(t.form_gitrepo=e.target.value)},function(e){return t.isValid("gitrepo")}],change:function(e){return t.isValid("gitrepo")},focus:function(e){return t.isValid("gitrepo")}}}),s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"ti-info btn btn-outline-secondary btn-sm",attrs:{title:"Info",round:""},on:{click:function(e){return t.onAction("form_gitrepo")}}})])])])]),s("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])}),s("div",{staticClass:"row"},[s("div",{staticClass:"col-sm-12 sm-12"},["Public"==t.form_visibility?s("div",{staticClass:"input-group"},[s("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"radio",name:"options"},model:{value:t.form_visibility,callback:function(e){t.form_visibility=e},expression:"form_visibility"}},[s("span",{staticClass:"text-light"},[t._v("Public")])]),s("button",{staticClass:"btn btn-outline-secondary btn-sm",attrs:{type:"radio",name:"options"},on:{click:function(e){return t.onSwitch("Private")}},model:{value:t.form_visibility,callback:function(e){t.form_visibility=e},expression:"form_visibility"}},[s("span",{staticClass:"text-muted"},[t._v("Private")])])]):t._e(),"Private"==t.form_visibility?s("div",{staticClass:"input-group"},[s("button",{staticClass:"btn btn-outline-secondary btn-sm",attrs:{type:"radio",name:"options"},on:{click:function(e){return t.onSwitch("Public")}},model:{value:t.form_visibility,callback:function(e){t.form_visibility=e},expression:"form_visibility"}},[s("span",{staticClass:"text-muted"},[t._v("Public")])]),s("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"radio",name:"options"},model:{value:t.form_visibility,callback:function(e){t.form_visibility=e},expression:"form_visibility"}},[s("span",{staticClass:"text-light"},[t._v("Private")])])]):t._e()])]),s("b-col",{staticClass:"text-center",attrs:{cols:"12",sm:"12",md:"12"}},[s("div",{staticClass:"form-group"},[s("label",{staticClass:"text-dark",attrs:{for:"customreadme"}},[s("b",[s("span",{staticClass:"text-dark"},[t._v("README ")])]),t._v(" "),s("br"),s("button",{staticClass:"ti-info btn btn-outline-secondary btn-sm",attrs:{title:"Info",round:""},on:{click:function(e){return t.onAction("form_readme")}}})]),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form_readme,expression:"form_readme"}],staticClass:"form-control",attrs:{name:"customreadme",rows:"8"},domProps:{value:t.form_readme},on:{input:function(e){e.target.composing||(t.form_readme=e.target.value)}}},[t._v(" "+t._s(t.form_readme)+" ")])])]),s("b-col",{staticClass:"text-center",attrs:{cols:"12",sm:"12",md:"12"}},[s("div",{staticClass:"form-group"},[s("label",{staticClass:"text-dark",attrs:{for:"custompackages"}},[s("b",[s("span",{staticClass:"text-dark"},[t._v("Add Extrapackages")])]),t._v(" (e.g. apt, apk etc) "),s("br"),s("button",{staticClass:"ti-info btn btn-outline-secondary btn-sm",attrs:{title:"Info",round:""},on:{click:function(e){return t.onAction("form_os")}}}),s("span",{staticClass:"text-success"},[t._v(" "+t._s(t.customostext)+" ")])]),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form_os,expression:"form_os"}],staticClass:"form-control",attrs:{name:"custompackages",rows:"8",placeholder:"e.g. apt-get update && apt-get -y install or apk update && apk add --no-cache "},domProps:{value:t.form_os},on:{input:function(e){e.target.composing||(t.form_os=e.target.value)}}},[t._v(" "+t._s(t.form_os)+" ")])])]),s("b-col",{staticClass:"text-center",attrs:{cols:"12",sm:"12",md:"12"}},[s("div",{staticClass:"form-group"},[s("label",{staticClass:"text-dark",attrs:{for:"customshell"}},[s("b",[s("span",{staticClass:"text-dark"},[t._v("Custom sh script ")])]),t._v(" "),s("br"),s("button",{staticClass:"ti-info btn btn-outline-secondary btn-sm",attrs:{title:"Info",round:""},on:{click:function(e){return t.onAction("form_sh")}}}),s("span",{staticClass:"text-success"},[t._v(" "+t._s(t.customshtext)+" ")])]),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form_sh,expression:"form_sh"}],staticClass:"form-control",attrs:{name:"customshell",rows:"8",placeholder:"#!/bin/bash "},domProps:{value:t.form_sh},on:{input:function(e){e.target.composing||(t.form_sh=e.target.value)}}},[t._v(" "+t._s(t.form_sh)+" ")])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-sm-12 sm-12"},[s("div",{staticClass:"text-center"},[s("button",{staticClass:"ti-info btn btn-outline-secondary btn-sm align-center",attrs:{title:"Info",round:""},on:{click:function(e){return t.onAction("port")}}})])]),s("div",{staticClass:"col-sm-3 sm-3"},[s("div",{staticClass:"input-group"},[s("div",{staticClass:"input-group-prepend"},[s("span",{staticClass:"input-group-text",attrs:{name:"validationTooltipUsernamePrepend"}},[t._v("Port")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form_port1,expression:"form_port1"}],staticClass:"form-control",attrs:{type:"text","aria-describedby":"validationTooltipUsernamePrepend"},domProps:{value:t.form_port1},on:{input:function(e){e.target.composing||(t.form_port1=e.target.value)}}})])]),s("div",{staticClass:"col-sm-4 sm-4"},[s("div",{staticClass:"input-group"},[s("div",{staticClass:"input-group-prepend"},[s("span",{staticClass:"input-group-text",attrs:{name:"validationTooltipUsernamePrepend"}},[t._v("URI")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form_url1,expression:"form_url1"}],staticClass:"form-control",attrs:{type:"text",placeholder:"http/https","aria-describedby":"validationTooltipUsernamePrepend"},domProps:{value:t.form_url1},on:{input:function(e){e.target.composing||(t.form_url1=e.target.value)}}})])]),s("div",{staticClass:"col-sm-5 sm-5"},[s("div",{staticClass:"input-group"},[s("div",{staticClass:"input-group-prepend"},[s("span",{staticClass:"input-group-text",attrs:{name:"validationTooltipUsernamePrepend1a"}},[t._v("Name")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form_name1,expression:"form_name1"}],staticClass:"form-control",attrs:{type:"text","aria-describedby":"validationTooltipUsernamePrepend1a"},domProps:{value:t.form_name1},on:{input:function(e){e.target.composing||(t.form_name1=e.target.value)}}})])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-sm-3 sm-3"},[s("div",{staticClass:"input-group"},[s("div",{staticClass:"input-group-prepend"},[s("span",{staticClass:"input-group-text",attrs:{name:"validationTooltipUsernamePrepend2"}},[t._v("Port")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form_port2,expression:"form_port2"}],staticClass:"form-control",attrs:{type:"text","aria-describedby":"validationTooltipUsernamePrepend2"},domProps:{value:t.form_port2},on:{input:function(e){e.target.composing||(t.form_port2=e.target.value)}}})])]),s("div",{staticClass:"col-sm-4 sm-4"},[s("div",{staticClass:"input-group"},[s("div",{staticClass:"input-group-prepend"},[s("span",{staticClass:"input-group-text",attrs:{name:"validationTooltipUsernamePrepend"}},[t._v("URI")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form_url2,expression:"form_url2"}],staticClass:"form-control",attrs:{type:"text",placeholder:"http/https","aria-describedby":"validationTooltipUsernamePrepend"},domProps:{value:t.form_url2},on:{input:function(e){e.target.composing||(t.form_url2=e.target.value)}}})])]),s("div",{staticClass:"col-sm-5 sm-5"},[s("div",{staticClass:"input-group"},[s("div",{staticClass:"input-group-prepend"},[s("span",{staticClass:"input-group-text",attrs:{name:"validationTooltipUsernamePrepend2a"}},[t._v("Name")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form_name2,expression:"form_name2"}],staticClass:"form-control",attrs:{type:"text","aria-describedby":"validationTooltipUsernamePrepend2a"},domProps:{value:t.form_name2},on:{input:function(e){e.target.composing||(t.form_name2=e.target.value)}}})])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-sm-3 sm-3"},[s("div",{staticClass:"input-group"},[s("div",{staticClass:"input-group-prepend"},[s("span",{staticClass:"input-group-text",attrs:{name:"validationTooltipUsernamePrepend3"}},[t._v("Port")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form_port3,expression:"form_port3"}],staticClass:"form-control",attrs:{type:"text","aria-describedby":"validationTooltipUsernamePrepend2"},domProps:{value:t.form_port3},on:{input:function(e){e.target.composing||(t.form_port3=e.target.value)}}})])]),s("div",{staticClass:"col-sm-4 sm-4"},[s("div",{staticClass:"input-group"},[s("div",{staticClass:"input-group-prepend"},[s("span",{staticClass:"input-group-text",attrs:{name:"validationTooltipUsernamePrepend"}},[t._v("URI")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form_url3,expression:"form_url3"}],staticClass:"form-control",attrs:{type:"text",placeholder:"http/https","aria-describedby":"validationTooltipUsernamePrepend"},domProps:{value:t.form_url3},on:{input:function(e){e.target.composing||(t.form_url3=e.target.value)}}})])]),s("div",{staticClass:"col-sm-5 sm-5"},[s("div",{staticClass:"input-group"},[s("div",{staticClass:"input-group-prepend"},[s("span",{staticClass:"input-group-text",attrs:{name:"validationTooltipUsernamePrepend3a"}},[t._v("Name")])]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form_name3,expression:"form_name3"}],staticClass:"form-control",attrs:{type:"text","aria-describedby":"validationTooltipUsernamePrepend3a"},domProps:{value:t.form_name3},on:{input:function(e){e.target.composing||(t.form_name3=e.target.value)}}})])])]),s("b-col",{staticClass:"text-center",attrs:{cols:"12",sm:"12",md:"12"}},[s("div",{staticClass:"form-group"},[s("label",{staticClass:"text-dark",attrs:{for:"rclocal"}},[s("b",[s("span",{staticClass:"text-dark"},[t._v("rc.local")])]),t._v(" "),s("br"),s("button",{staticClass:"ti-info btn btn-outline-secondary btn-sm",attrs:{title:"Info",round:""},on:{click:function(e){return t.onAction("form_rclocal")}}}),s("span",{staticClass:"text-success"},[t._v(" "+t._s(t.customshtext)+" ")])]),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form_rclocal,expression:"form_rclocal"}],staticClass:"form-control",attrs:{name:"rclocal",rows:"8"},domProps:{value:t.form_rclocal},on:{input:function(e){e.target.composing||(t.form_rclocal=e.target.value)}}},[t._v(" "+t._s(t.form_rclocal)+" ")])])]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-sm-12 sm-12 float-right"},[s("button",{staticClass:"btn btn-outline-info btn-sm float-right",attrs:{type:"submit"},on:{click:t.save}},[t._v("Save Microservice")]),s("button",{staticClass:"btn btn-outline-warning btn-sm float-right",attrs:{type:"submit"},on:{click:t.cancel}},[t._v("Cancel")])])])],1)],1)},ra=[];Object(B["b"])("alpha_num",N["a"]),Object(B["b"])("required",{...N["c"],message:"This field is required"}),Object(B["b"])("alpha_num_name",t=>{var e=new RegExp(/^[A-Za-z0-9]+$/,"i");return!!e.test(t)||"The {_field_} field may contain alphabetic characters and numbers"}),Object(B["b"])("alpha_num_url",t=>{var e=new RegExp(/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/,"i");return!!e.test(t)||"The {_field_} field may contain Valid url"});var la={components:{ValidationProvider:B["a"],card:k},props:{},data(){return{customostext:"",customshtext:"",menou:!1,custom:{os:"",sh:""},customserviceall:[],form_baseservice:"",form_myservicename:"",form_os:"",form_sh:"",form_readme:"",form_version:"",form_rclocal:"",form_url1:"",form_url2:"",form_url3:"",form_port1:"",form_name1:"",form_port2:"",form_name2:"",form_port3:"",form_name3:"",form_gitrepo:"",form_visibility:"Public",customservice:{myservicename:"",os:"",sh:"",readme:"",microservice:"",version:"",rclocal:"",url1:"",url2:"",url3:"",port1:"",name1:"",port2:"",name2:"",port3:"",name3:"",gitrepo:""},addNetworkMenou:!1,issocket:"close",isDeployValid:{stackname:3,stackversion:3,gitrepo:3},isDeployError:{},selected:1,menouselect:!1,options:[{value:99999,text:"Please select an option"}]}},beforeMount(){},mounted(){this.$root.$on("hybrid_build_micro_service_menou",()=>{this.menou=!1}),this.$root.$on("hybrid_build_micro_service",t=>{console.log(t),this.setserviceform2null(),this.menou=!0,this.myservicename={},this.customserviceall=[],this.options=[],this.customservice={},this.menouselect=!1,this.customservice.microservice=t.data.swarmlabname,this.form_baseservice=t.data.swarmlabname,this.form_visibility="Public"}),this.$root.$on("hybrid_build_micro_myservice",t=>{console.log(t),this.menou=!0,this.myservicename={},this.customserviceall=[],this.customservice={},this.menouselect=!1,this.customservice.microservice=t.data.swarmlabname,t.log.hasOwnProperty("data")&&t.log.data.hasOwnProperty("data")&&t.log.data.data&&(this.customservice.myservicename=t.log.data.data.service,this.customservice.baseservice=t.log.data.data.baseservice,this.customservice.visibility=t.log.data.data.visibility,this.customservice.sh=t.log.data.data.sh,this.customservice.os=t.log.data.data.packages,this.customservice.readme=t.log.data.data.readme,this.customservice.gitrepo=t.log.data.data.gitrepo,this.customservice.version=t.log.data.data.serviceversion,this.customservice.rclocal=t.log.data.data.rclocal,this.customservice.url1=t.log.data.data.url1,this.customservice.url2=t.log.data.data.url2,this.customservice.url3=t.log.data.data.url3,this.customservice.port1=t.log.data.data.port1,this.customservice.name1=t.log.data.data.name1,this.customservice.port2=t.log.data.data.port2,this.customservice.name2=t.log.data.data.name2,this.customservice.port3=t.log.data.data.port3,this.customservice.name3=t.log.data.data.name3,this.setserviceform(this.customservice))})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token");v.dispatch("pipelineLLO/settoken",{token:this.token})},beforeDestroy(){this.$root.$off("hybrid_build_micro_service"),this.$root.$off("hybrid_build_micro_myservice"),this.$root.$off("hybrid_build_micro_service_menou")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{async onSwitch(t){console.log(t),this.form_visibility=t},async onAction(t){var e="",a="<h5></h5>";"form_myservicename"==t?(a='<h5 class="text-info">Service Name</h5>',e+="The <b>myServicename</b> field may contain alphabetic characters and numbers Service Version.\n "):"form_version"==t?(a='<h5 class="text-info">Service Version</h5>',e+="The <b>Version</b> field may contain alphabetic characters and numbers Service Version.\n "):"form_baseservice"==t?(a='<h5 class="text-info">Docker base image</h5>',e+="<br>\n A base image is the image that is used to create all of your container images. <br>"):"form_gitrepo"==t?(a='<h5 class="text-info">Git-repo</h5>',e+="<b>The git repository associated with your project.</b><br> <br> \n A string that contains a valid URL\n "):"form_rclocal"==t?(a='<h5 class="text-info">rc.local</h5>',e+="<b>Define startup scripts or additional services to start.</b><br><br> It is executed after all build processes are finished."):"form_sh"==t?(a='<h5 class="text-info">Custom sh script </h5>',e+='<b>A sh script intended to be run after a fresh installation in order to automate system update, extra software installation and a couple configuration files setup. </b> <br><br> It is executed after "Add Extrapackages" are finished.'):"form_os"==t?(a='<h5 class="text-info">Add Extrapackages </h5>',e+='<b>sh script to install packages on Base system.</b> <br> \n \n <br>\n <br><b>Examples</b>\n <br>\n <br>\n apt update && apt install -y vim\n <br>\n \n <a href="https://help.ubuntu.com/community/AptGet/Howto?action=show&redirect=AptGetHowto" target="_blank">Info</a>\n <br>\n <br>\n OR\n <br>\n <br>\n apk update && apk add --no-cache vim\n <br>\n <a href="https://wiki.alpinelinux.org/wiki/Package_management" target="_blank">Info</a>\n '):"port"==t&&(a='<h5 class="text-info">Port - URI - Name </h5>',e+='<b>Published ports</b> \n <br>\n <br>\n\n\n By default, when you create or run a container, it does not publish any of its ports to the outside world. \n <br><br>\n To make a port available to services outside of Docker, or to Docker containers which are not connected to the container’s network, use the "Port" field. \n \n '),a+=e,this.$swal({html:a,icon:"info",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})},async save(){(async()=>{var t=!0;for(const[s,i]of Object.entries(this.isDeployValid))1!=i&&(t=!1);if(t){var e=await v.dispatch("pipelineLLO/addmycustomservice",{token:this.token,service:this.form_myservicename,readme:this.form_readme,baseservice:this.form_baseservice,visibility:this.form_visibility,sh:this.form_sh,packages:this.form_os,gitrepo:this.form_gitrepo,serviceversion:this.form_version,rclocal:this.form_rclocal,url1:this.form_url1,url2:this.form_url2,url3:this.form_url3,port1:this.form_port1,name1:this.form_name1,port2:this.form_port2,name2:this.form_name2,port3:this.form_port3,name3:this.form_name3});if("ok"==e.data.action){var a="Your upload was successful!";this.$swal({type:"Info",title:"Info!",icon:"info",html:a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"}),this.$root.$emit("hybrid_build_micro_service_menou_refreshtable")}else{a="Service upload error ";this.$swal({type:"Info",title:"Info!",icon:"error",html:a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}}else{a="Missing required fields";this.$swal({type:"Info",title:"Info!",icon:"info",html:a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}})()},cancel(){this.menou=!1},setserviceform(t){this.form_myservicename=t.myservicename,this.form_baseservice=t.baseservice,this.form_visibility=t.visibility,this.form_sh=t.sh,this.form_os=t.os,this.form_readme=t.readme,this.form_gitrepo=t.gitrepo,this.form_version=t.version,this.form_rclocal=t.rclocal,this.form_url1=t.url1,this.form_url2=t.url2,this.form_url3=t.url3,this.form_port1=t.port1,this.form_name1=t.name1,this.form_port2=t.port2,this.form_name2=t.name2,this.form_port3=t.port3,this.form_name3=t.name3},setserviceform2null(){this.form_myservicename="",this.form_baseservice="",this.form_sh="",this.form_os="",this.form_readme="",this.form_gitrepo="",this.form_version="",this.form_rclocal="",this.form_url1="",this.form_url2="",this.form_url3="",this.form_port1="",this.form_name1="",this.form_port2="",this.form_name2="",this.form_port3="",this.form_name3=""},setservice(){var t=this.selected;this.customservice.myservicename=this.customserviceall[t].service,this.customservice.baseservice=this.customserviceall[t].baseservice,this.customservice.visibility=this.customserviceall[t].visibility,this.customservice.sh=this.customserviceall[t].sh,this.customservice.os=this.customserviceall[t].packages,this.customservice.readme=this.customserviceall[t].readme,this.customservice.gitrepo=this.customserviceall[t].gitrepo,this.customservice.version=this.customserviceall[t].serviceversion,this.customservice.rclocal=this.customserviceall[t].rclocal,this.customservice.url1=this.customserviceall[t].url1,this.customservice.url2=this.customserviceall[t].url2,this.customservice.url3=this.customserviceall[t].url3,this.customservice.port1=this.customserviceall[t].port1,this.customservice.name1=this.customserviceall[t].name1,this.customservice.port2=this.customserviceall[t].port2,this.customservice.name2=this.customserviceall[t].name2,this.customservice.port3=this.customserviceall[t].port3,this.customservice.name3=this.customserviceall[t].name3,this.setserviceform(this.customservice)},async isValid(t){if("stackname"==t){var e=await this.$refs.hybrid_stackname.validate();1==e.valid?this.isDeployValid.stackname=1:this.isDeployValid.stackname=2}else if("stackversion"==t){e=await this.$refs.hybrid_stackversion.validate();1==e.valid?this.isDeployValid.stackversion=1:this.isDeployValid.stackversion=2}else if("gitrepo"==t){e=await this.$refs.hybrid_stackgitrepo.validate();1==e.valid?this.isDeployValid.gitrepo=1:this.isDeployValid.gitrepo=2}}},actions:{}},ca=la,da=(a("f1fa"),Object(_["a"])(ca,na,ra,!1,null,null,null)),ua=da.exports,pa=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("br"),s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),s("v-wait",{attrs:{for:"myRunInstancetutormybuild"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[t._v("Select a "),s("span",{staticClass:"text-info"},[t._v(" Base image")])])])]),s("br"),s("div",{staticClass:"input-group input-group-sm sm-3"}),s("div",{staticClass:"input-group input-group-sm sm-3"},[s("button",{staticClass:"btn btn-outline-success btn-sm",attrs:{round:"",type:"button"},on:{click:t.refreshVuetable}},[t._v(" Refresh Table")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),t.viewhybridoptions&&t.heavy?s("div",{staticClass:"input-group-append"},[s("p",{staticClass:"text-danger"},[t._v(t._s(t.heavytext))])]):t._e(),s("vuetable",{key:t.vuetablekeygmybuildservice1,ref:"vuetable",attrs:{id:"idvuetablekeygmybuildservice1","api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:row-clicked":t.rowClicked,"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess,"vuetable:load-error":t.onLoadError},scopedSlots:t._u([{key:"actions",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[s("button",{staticClass:"ti-cloud-up btn btn-sm",attrs:{title:"Select Base MicroService",round:""},on:{click:function(a){return t.onAction("upload-item",e.rowData,e.rowData._id)}}}),s("button",{staticClass:"ti-info btn btn-sm",attrs:{title:"MicroService Info",round:""},on:{click:function(a){return t.onAction("view-item",e.rowData,e.rowData._id)}}})])])}}])}),s("div",{staticClass:"vuetable-pagination ui basic segment grid"},[s("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),s("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)},ma=[],ha={components:{card:k,Vuetable:$["Vuetable"],VuetablePagination:S["a"],VuetablePaginationInfo:L["a"],VuetablePaginationDropdown:$["VuetablePaginationDropdown"]},props:{},data(){return{testactionrowindex:[],teststatusindex:[],testtest:[],testtestdir:[],hybridoptions:{index:"",swarmlabname:"",size:"",port:""},viewhybridoptions:!1,heavy:!1,heavytext:"",customedit:!1,custommenouopen:!1,custommenou:!1,custom:{os:"",sh:""},customostext:"",customshtext:"",up_name:"",swarmlab:{},playbookInfo:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"hybrid",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekeygmybuildservice1:0,vuetablekeygslot:0,fielddata:{},fields:[{name:"swarmlabname",title:'<span class="orange"></span>Base Image',sortField:"swarmlabname",visible:!0,dataClass:"left aligned col-3 text-muted",width:"68%"},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"description",sortField:"gitrepoCloneUrl",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"gitrepoFullName",sortField:"gitrepoFullName",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"__slot:actions",title:"Actions",titleClass:"col text-center",dataClass:"center aligned",visible:!1,width:"10%"}],apiurl:d.swarmlab_url_80+"/swarmlabhybridmicroservices",css:I["a"],perpage:8,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",currentpage:"1",currentpagepaginationData:{},dataselect:"",indexselect:"",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts"}}},mounted(){},async created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token"),this.$root.$emit("hybrid_build_micro_service_menou")},beforeDestroy(){},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{async refreshVuetable(){this.vuetablekeygmybuildservice1+=1},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",this.moreParams={filter:"",type:"scripts"},s["default"].nextTick(()=>this.refreshVuetableall())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t),this.currentpagepaginationData=t},onChangePage(t){this.currentpage=t,this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async onAction(t,e,a){if("view-item"==t){this.swarmlab=e;var s=this.swarmlab,i=await v.dispatch("pipelineLLO/getswarmlabmicroserviceinfo",s.swarmlabname),o=(JSON.stringify(i.data.swarmlab,null,2),JSON.stringify(i.data.swarmlabinfo,null,2));o=i.data.swarmlabinfo;if("ok"==i.data.error25){var n="",r='<h5>Swarmlab Service <a href="'+o+'" target="_blank" >Info</a></h5>(Open page in new window)';this.$swal({type:"info",html:r+n,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}}else if("upload-item"==t){this.swarmlab=e;var l={data:e};this.$root.$emit("hybrid_build_micro_service",l)}},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){console.log(t),this.onAction("upload-item",t,t._id)},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length},onLoadError(t){"401"==t.response.status&&(window.location.href="https://api-login.swarmlab.io:8089",s["default"].nextTick(()=>window.location.href="https://api-login.swarmlab.io:8089"))}},actions:{}},ba=ha,va=(a("83ff"),Object(_["a"])(ba,pa,ma,!1,null,null,null)),fa=va.exports,wa=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("br"),s("v-wait",{attrs:{for:"myRunInstancetutormybuild"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[t._v("Swarmlab "),s("span",{staticClass:"text-info"},[t._v("my Custom MicroServices")])])])]),s("br"),s("div",{staticClass:"input-group input-group-sm sm-3"}),s("div",{staticClass:"input-group input-group-sm sm-3"},[s("button",{staticClass:"btn btn-outline-success btn-sm",attrs:{round:"",type:"button"},on:{click:t.refreshVuetable}},[t._v(" Refresh Table ")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),t.viewhybridoptions&&t.heavy?s("div",{staticClass:"input-group-append"},[s("p",{staticClass:"text-danger"},[t._v(t._s(t.heavytext))])]):t._e(),s("vuetable",{key:t.vuetablekeygmybuildservice123,ref:"vuetable",attrs:{id:"idvuetablekeygmybuildservice123","api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess,"vuetable:load-error":t.onLoadError},scopedSlots:t._u([{key:"actions",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[s("button",{staticClass:"ti-pencil btn btn-sm",attrs:{title:"Upload MicroService",round:""},on:{click:function(a){return t.onAction("upload-item",e.rowData,e.rowData._id)}}}),s("button",{staticClass:"ti-trash btn btn-sm text-warning",attrs:{title:"MicroService Info",round:""},on:{click:function(a){return t.onAction("rm-item",e.rowData,e.rowData._id)}}})])])}}])}),s("div",{staticClass:"vuetable-pagination ui basic segment grid"},[s("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),s("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)},ga=[],ya={components:{card:k,Vuetable:$["Vuetable"],VuetablePagination:S["a"],VuetablePaginationInfo:L["a"],VuetablePaginationDropdown:$["VuetablePaginationDropdown"]},props:{},data(){return{testactionrowindex:[],teststatusindex:[],testtest:[],testtestdir:[],hybridoptions:{index:"",swarmlabname:"",size:"",port:""},viewhybridoptions:!1,heavy:!1,heavytext:"",customedit:!1,custommenouopen:!1,custommenou:!1,custom:{os:"",sh:""},customostext:"",customshtext:"",up_name:"",swarmlab:{},playbookInfo:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"hybrid",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekeygmybuildservice123:0,vuetablekeygslot:0,fielddata:{},fields:[{name:"service",title:'<span class="orange"></span>Name',sortField:"service",visible:!0,dataClass:"left aligned col-3",width:"30%"},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"readme",title:'<span class="orange"></span>Info',sortField:"gitrepoCloneUrl",dataClass:"left aligned w-25",visible:!0,width:"20%"},{name:"baseservice",title:'<span class="orange"></span>Base',sortField:"baseservice",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!0,width:"30%"},{name:"visibility",title:'<span class="orange"></span>Pub',sortField:"gitrepoCloneUrl",dataClass:"center aligned w-10 text-center",visible:!0,width:"10%",callback:function(t){if("Public"==t){var e=' <span \n\t\t\t\t\tclass="ti-check text-info text-center" \n\t\t\t\t\tround\n\t\t\t\t\t>\n\t\t\t\t\t</span>\n';return e}e=' <span \n\t\t\t\t\tclass="ti-lock text-info" \n\t\t\t\t\tround\n\t\t\t\t\t>\n\t\t\t\t\t</span>\n';return e}},{name:"__slot:actions",title:"Actions",titleClass:"col text-center",dataClass:"center aligned",width:"10%"}],apiurl:d.swarmlab_url_80+"/swarmlabhybridmymicroservices",css:I["a"],perpage:8,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",currentpage:"1",currentpagepaginationData:{},dataselect:"",indexselect:"",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts"}}},mounted(){this.$root.$on("hybrid_build_micro_service_menou_refreshtable",()=>{this.refreshVuetable()})},async created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token"),this.$root.$emit("hybrid_build_micro_service_menou")},beforeDestroy(){this.$root.$off("hybrid_build_micro_service_menou_refreshtable")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{async refreshVuetable(){this.vuetablekeygmybuildservice123+=1},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",this.moreParams={filter:"",type:"scripts"},s["default"].nextTick(()=>this.refreshVuetableall())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t),this.currentpagepaginationData=t},onChangePage(t){this.currentpage=t,this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async rmAndClose(t){if(t.isConfirmed){this.hybridoptions.swarmlabname;var e=await v.dispatch("pipelineLLO/rmmycustomservice",{token:this.token,service:this.swarmlab.service});if(this.refreshVuetable(),"ok"==e.data.action);else{var a="Remove error ";this.$swal({type:"Info",title:"Info!",icon:"error",html:a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}}else console.log("no")},async onAction(t,e,a){if("rm-item"==t){this.swarmlab=e;this.swarmlab;var s="Remove service: <b> "+this.swarmlab.service;s+="</b>",this.$swal({type:"info",html:s,icon:"warning",showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!1,confirmButtonText:"Yes!"}).then(t=>{this.rmAndClose(t)})}else if("upload-item"==t){var i={data:e},o={data:i};this.swarmlab=e;var n={data:e,log:o};this.$root.$emit("hybrid_build_micro_myservice",n)}},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){return{html:!0,title:()=>"Hello <b>Popover:</b> "+ ++this.counter,content:()=>"The date is:<br><em>"+new Date+"</em>"}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length},onLoadError(t){"401"==t.response.status&&(window.location.href="https://api-login.swarmlab.io:8089",s["default"].nextTick(()=>window.location.href="https://api-login.swarmlab.io:8089"))}},actions:{}},_a=ya,Ca=(a("f830"),Object(_["a"])(_a,wa,ga,!1,null,null,null)),ka=Ca.exports,xa={components:{ServiceView:ua,card:k,BuilderServices:fa,BuilderMyServices:ka},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},Aa=xa,Oa=Object(_["a"])(Aa,ia,oa,!1,null,null,null),Ra=Oa.exports,$a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-6 order-first "},[a("br"),a("mydeploy-manage-bootstrap")],1),a("div",{staticClass:"col-6 order-last"},[a("br"),a("mydeploy-manage-view")],1)])])},La=[],Sa=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[t._v("Swarmlab hybrid Deploy")])])]),s("br"),s("b-row",[s("b-col",{attrs:{cols:"8"}},[s("ValidationProvider",{ref:"hybrid_image",attrs:{name:"Image",rules:"required|alpha_num_image"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.image,expression:"deploy.image"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.image,"is-invalid":2==t.isDeployValid.image},attrs:{type:"text",name:"Image","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Image"},domProps:{value:t.deploy.image},on:{keyup:function(e){return t.isValid("image")},input:function(e){e.target.composing||t.$set(t.deploy,"image",e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("image")}}})])]),s("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1),s("b-col",{attrs:{cols:"4"}},[s("ValidationProvider",{ref:"hybrid_stackname",attrs:{name:"StackName",rules:"required|alpha_num_name"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.stackname,expression:"deploy.stackname"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.stackname,"is-invalid":2==t.isDeployValid.stackname},attrs:{type:"text",name:"StackName","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"StackName"},domProps:{value:t.deploy.stackname},on:{keyup:function(e){return t.isValid("stackname")},input:function(e){e.target.composing||t.$set(t.deploy,"stackname",e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("stackname")}}})])]),s("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1)],1),s("b-row",[s("b-col",{attrs:{cols:"8"}},[s("ValidationProvider",{ref:"hybrid_name",attrs:{name:"Name",rules:"required|alpha_num_name"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.name,expression:"deploy.name"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.name,"is-invalid":2==t.isDeployValid.name},attrs:{type:"HybridError",name:"Name","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Name"},domProps:{value:t.deploy.name},on:{keyup:function(e){return t.isValid("name")},input:function(e){e.target.composing||t.$set(t.deploy,"name",e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("name")}}})])]),s("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1),s("b-col",{attrs:{cols:"4"}},[s("ValidationProvider",{ref:"hybrid_network",attrs:{name:"Network",rules:"required|alpha_num_name"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.network,expression:"deploy.network"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.network,"is-invalid":2==t.isDeployValid.network},attrs:{type:"text",name:"Network","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Network Name"},domProps:{value:t.deploy.network},on:{keyup:function(e){return t.isValid("network")},input:function(e){e.target.composing||t.$set(t.deploy,"network",e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("network")}}})])]),s("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1)],1),s("b-row",[s("b-col",{attrs:{cols:"4"}},[s("ValidationProvider",{ref:"hybrid_cpu",attrs:{name:"Cpu",rules:"required|alpha_num_cpu"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.cpu,expression:"deploy.cpu"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.cpu,"is-invalid":2==t.isDeployValid.cpu},attrs:{type:"text",name:"Cpu","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Limit CPU e.g. 0.50"},domProps:{value:t.deploy.cpu},on:{keyup:function(e){return t.isValid("cpu")},input:function(e){e.target.composing||t.$set(t.deploy,"cpu",e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("cpu")}}})])]),s("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1),s("b-col",{attrs:{cols:"4"}},[s("ValidationProvider",{ref:"hybrid_memory",attrs:{name:"Memory",rules:"required|alpha_num_memory"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.memory,expression:"deploy.memory"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.memory,"is-invalid":2==t.isDeployValid.memory},attrs:{type:"text",name:"Memory","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Limit Memory e.g. 500"},domProps:{value:t.deploy.memory},on:{keyup:function(e){return t.isValid("memory")},input:function(e){e.target.composing||t.$set(t.deploy,"memory",e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("memory")}}})])]),s("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1),s("b-col",{attrs:{cols:"4"}},[s("ValidationProvider",{ref:"hybrid_networkport",attrs:{name:"Networkport",rules:"mybetween:1,65535"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.networkport,expression:"deploy.networkport"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.networkport,"is-invalid":2==t.isDeployValid.networkport},attrs:{type:"text",name:"Networkport","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Net Port (inside the container)"},domProps:{value:t.deploy.networkport},on:{keyup:function(e){return t.isValid("networkport")},input:function(e){e.target.composing||t.$set(t.deploy,"networkport",e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("networkport")}}})])]),s("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1)],1),s("b-row",[s("b-col",{attrs:{cols:"12"}},[s("ValidationProvider",{ref:"hybrid_url",attrs:{name:"Url",rules:"required|alpha_url"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.errors;e.ariaMsg,e.ariaInput,e.valid,e.invalid;return[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.url,expression:"deploy.url"}],staticClass:"form-control",class:{"is-valid":1==t.isDeployValid.url,"is-invalid":2==t.isDeployValid.url},attrs:{type:"text",name:"Url","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"link to README file (see info button for more)"},domProps:{value:t.deploy.url},on:{keyup:function(e){return t.isValid("url")},input:function(e){e.target.composing||t.$set(t.deploy,"url",e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("url")}}})])]),s("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1)],1),s("b-row",[s("b-col",{attrs:{cols:"6"}},[s("div",{staticClass:"input-group input-group-sm mb-3"},[s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[t._v("Start date ")])]),s("date-picker",{attrs:{type:"date",autocomplete:"off",format:"YYYY-MM-DD",lang:"en"},model:{value:t.deploy.startdate,callback:function(e){t.$set(t.deploy,"startdate",e)},expression:"deploy.startdate"}})],1)]),s("b-col",{attrs:{cols:"6"}},[s("div",{staticClass:"input-group input-group-sm mb-3"},[s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[t._v("Start time")])]),s("date-picker",{attrs:{type:"time",format:"HH:mm","show-hour":"","show-minute":"","time-picker-options":t.timePickerOptions,lang:"en"},model:{value:t.deploy.starttime,callback:function(e){t.$set(t.deploy,"starttime",e)},expression:"deploy.starttime"}})],1)])],1),s("b-row",[s("b-col",{attrs:{cols:"6"}},[s("div",{staticClass:"input-group input-group-sm mb-3"},[s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[t._v("End date ")])]),s("date-picker",{attrs:{type:"date",autocomplete:"off",format:"YYYY-MM-DD",lang:"en"},model:{value:t.deploy.enddate,callback:function(e){t.$set(t.deploy,"enddate",e)},expression:"deploy.enddate"}})],1)]),s("b-col",{attrs:{cols:"6"}},[s("div",{staticClass:"input-group input-group-sm mb-3"},[s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[t._v("End time")])]),s("date-picker",{attrs:{type:"time",format:"HH:mm","show-hour":"","show-minute":"","time-picker-options":t.timePickerOptions,lang:"en"},model:{value:t.deploy.endtime,callback:function(e){t.$set(t.deploy,"endtime",e)},expression:"deploy.endtime"}})],1)])],1),s("b-row",[s("b-col",{attrs:{cols:"6"}},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[s("button",{staticClass:"ti-cloud-up btn btn-outline-success",attrs:{round:"",type:"button",title:"Deploy"},on:{click:function(e){return t.add_deploy()}}},[t._v(" Deploy ")])])])]),s("b-col",{attrs:{cols:"2"}}),s("b-col",{attrs:{cols:"4"}},[s("div",{staticClass:"custom-control custom-switch"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.deploy.usersjoin,expression:"deploy.usersjoin"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"customStack",value:"true","unchecked-value":"false"},domProps:{checked:Array.isArray(t.deploy.usersjoin)?t._i(t.deploy.usersjoin,"true")>-1:t.deploy.usersjoin},on:{change:function(e){var a=t.deploy.usersjoin,s=e.target,i=!!s.checked;if(Array.isArray(a)){var o="true",n=t._i(a,o);s.checked?n<0&&t.$set(t.deploy,"usersjoin",a.concat([o])):n>-1&&t.$set(t.deploy,"usersjoin",a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.deploy,"usersjoin",i)}}}),s("label",{staticClass:"custom-control-label",attrs:{for:"customStack"}},[t._v("Users can join the lab instance")])])])],1)],1)],1)},Ia=[],Ba=a("ec45");a("411c");Object(B["b"])("alpha_num",N["a"]),Object(B["b"])("mybetween",N["b"]),Object(B["b"])("mybetween",{message:"The {_field_} field must be a number: 1-65535"}),Object(B["b"])("alpha_num_image",t=>{var e=new RegExp(/^[A-Za-z0-9\:\.\-\_\/]+$/,"i");return!!e.test(t)||"The {_field_} field may contain alphabetic characters, numbers, colons, hyphens, slashes, dots and underscores"}),Object(B["b"])("alpha_num_name",t=>{var e=new RegExp(/^[A-Za-z0-9]+$/,"i");return!!e.test(t)||"The {_field_} field may contain alphabetic characters and numbers"}),Object(B["b"])("alpha_num_cpu",t=>{var e=new RegExp(/^(?!0\d)\d+(?:\.\d{1})?$/);return!!e.test(t)||"The {_field_} field may contain numbers and dots e.g 0.5"}),Object(B["b"])("alpha_num_memory",t=>{var e=new RegExp(/^[0-9]+$/,"i");return!!e.test(t)||"The {_field_} field may contain numbers e.g 500"}),Object(B["b"])("alpha_url",t=>{var e=new RegExp(/https?:\/\/(git\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/,"i");return!!e.test(t)||"The {_field_} field may contain url"}),Object(B["b"])("required",{...N["c"],message:"This field is required"});var Na={components:{DatePicker:Ba["a"],ValidationProvider:B["a"],card:k},props:{},data(){return{isHybridError:!1,isHybridSuccess:!1,token:"",timePickerOptions:{start:"00:00",step:"00:30",end:"23:30"},deploy:{usersjoin:!0},isDeployValid:{image:3,name:3,stackname:3,network:3,url:3,cpu:3,memory:3},isDeployError:{}}},mounted(){},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token")},beforeDestroy(){},computed:{},methods:{async add_deploy(){var t=Object.entries(this.deploy),e=new Promise((e,a)=>{t.forEach((t,a,s)=>{this.isValid(s[a][0]),a===s.length-1&&e()})});e.then(()=>{(async()=>{var t=!0;for(const[a,s]of Object.entries(this.isDeployValid))1!=s&&(t=!1);if(t){await v.dispatch("pipelineLLO/adddeploy",{token:this.token,deploy:this.deploy});this.$root.$emit("hybrid_refresh_bootstrap_view");var e='<h5>The deploy process is started</h5> Please wait for it to finish before trying again! <br><br>See also in "Manage your deployments" table';this.$swal({type:"Info",title:"Info!",icon:"info",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}else{e="Missing required fields";this.$swal({type:"Info",title:"Info!",icon:"info",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}})()})},async showInfo(t){if("image"==t)var e='<h5>To start, we need to have a <b>docker image </b> <br>\n<br> We have built some. You can find it here: Menu "Images"</h5>\n<h6>More Info here: <a href="https://en.wikipedia.org/wiki/Docker_(software)" target="new">Wikipedia</a> , <a href="https://www.docker.com/resources/what-container" target="new">Docker</a> </h6>\n<br>\n<br>\n The field may contain alphabetic characters, numbers, colons, hyphens, slashes, dots and underscores\n';else if("stackname"==t)e="<h5>To start, we need to have a <b>Stack Name </b> <br>\n<br> This will bring up all the services, volumes, networks and everything else <br> in an isolated environment.\n</h6>\n<br>\n<br>\n The field may contain alphabetic characters and numbers\n";else if("network"==t)e="<h5>To start, we need to have a <b>Network </b> <br>\n<br> This will bring up all the services, volumes, networks and everything else <br> in an isolated network environment.\n<br>\n<br>\nServices running inside any of this networks containers have access (not limited by any firewall) to all other services.\n<br>\n</h5>\n<br>\n<br>\n The field may contain alphabetic characters and numbers\n\n";else if("url"==t)e="<h5><b>Git Repo url </b></h5>\n<br> The location of the file describing your service. (most comonly README)</br> \n<br>\n</br>\n</h5>\n<br>\n<br>\n The field may contain any valid url BUT it must be under https://git.swarmlab.io\n";else if("networkport"==t)e="<h5><b>Network Port </b></h5>\n<br> \n<h5>\nBy default, when you create a container, <b>it does not publish any of its ports to the outside world. </b>\n<br>\nTo make a port available to Services which are not connected to the Stack network, we use this port. \n</h5>\n<br>\n<h5>\n<u>\nTo make a service available we have to know the port number used by these service inside the container.\n</u>\n<br>\n<b>Please insert that here.</b>\n</h5>\n<br>\n<br>\n(The port for outside connections is automatically generated and you dont have to worry about it!)\n<br>\n<br>\n The field may contain numbers\n";else if("cpu"==t)e="<h5>To start, we need to have a <b>CPU </b> Limit <br>\n<br> Limit the specific CPUs or cores a container can use\n</h6>\n<br>\n<br>\nThe field may contain numbers and dots e.g 0.5\n";else if("memory"==t)e="<h5>To start, we need to have a <b>Memory </b> Limit \n<br> <br> Limit the specific Memoty a container can use <br> \ne.g 200\n<br> \n(MB)\n</h6>\n<br>\n<br>\n<h6>\n<i>\nIt is important <b>not</b> to allow a running container to consume too much of the host machine’s memory.\n</i>\n</h6>\n<br>\n<br>\n The field may contain numbers\n";else if("name"==t)e="<h5>To start, we need to have a <b>Name </b><br> \nThis name is only for your own use. The system completely disregards it!\n</h5>\n<br>\n<br>\n The field may contain alphabetic characters and numbers\n";this.$swal({type:"Info",title:"Info!",icon:"info",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},async isValid(t){if("image"==t){var e=await this.$refs.hybrid_image.validate();1==e.valid?this.isDeployValid.image=1:this.isDeployValid.image=2}else if("stackname"==t){e=await this.$refs.hybrid_stackname.validate();1==e.valid?this.isDeployValid.stackname=1:this.isDeployValid.stackname=2}else if("network"==t){e=await this.$refs.hybrid_network.validate();1==e.valid?this.isDeployValid.network=1:this.isDeployValid.network=2}else if("url"==t){e=await this.$refs.hybrid_url.validate();1==e.valid?this.isDeployValid.url=1:this.isDeployValid.url=2}else if("networkport"==t){e=await this.$refs.hybrid_networkport.validate();1==e.valid?this.isDeployValid.networkport=1:this.isDeployValid.networkport=2}else if("cpu"==t){e=await this.$refs.hybrid_cpu.validate();1==e.valid?this.isDeployValid.cpu=1:this.isDeployValid.cpu=2}else if("memory"==t){e=await this.$refs.hybrid_memory.validate();1==e.valid?this.isDeployValid.memory=1:this.isDeployValid.memory=2}else if("name"==t){e=await this.$refs.hybrid_name.validate();1==e.valid?this.isDeployValid.name=1:this.isDeployValid.name=2}}},actions:{}},Ea=Na,Pa=(a("aa1b"),Object(_["a"])(Ea,Sa,Ia,!1,null,null,null)),Da=Pa.exports,Ta=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:0==t.hybridshowlog,expression:"hybridshowlog==false"}],staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("f467"),alt:"..."}})]),s("v-wait",{attrs:{for:"myRunInstancetutor"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),s("b-container",{attrs:{fluid:""}},[s("div",{directives:[{name:"show",rawName:"v-show",value:0==t.hybridshowlog,expression:"hybridshowlog==false"}],staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[t._v("Manage your deployments")])])]),s("br"),s("div",{directives:[{name:"show",rawName:"v-show",value:t.hybridshowlog,expression:"hybridshowlog"}],staticClass:"row"},[s("div",{staticClass:"col-12"},[s("log-view")],1)]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-3 text-info"},[s("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapstackname&&0==t.hybridshowlog?s("button",{staticClass:"btn btn-outline-info",attrs:{round:"",type:"button"},on:{click:function(e){return t.onActionLog(1)}}},[t._v(" Show logs ")]):t._e(),t.hybridshowdata.bootstrapstackname&&1==t.hybridshowlog?s("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.onActionLog(2)}}},[t._v(" Close logs ")]):t._e()])]),s("div",{staticClass:"col-3 text-info"},[s("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapstackname?s("button",{staticClass:"btn btn-outline-danger",attrs:{round:"",type:"button"},on:{click:function(e){return t.onActionHybrid("stack-stop")}}},[t._v(" Remove Stack ")]):t._e()])]),s("div",{staticClass:"col-3 text-info"},[s("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapnameid&&t.hybridshowdata.status?s("button",{staticClass:"btn btn-outline-danger",attrs:{round:"",type:"button"},on:{click:function(e){return t.onActionHybrid("service-stop")}}},[t._v(" Remove Service ")]):t._e()])]),s("div",{staticClass:"col-3 text-info"},[s("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapnameid&&t.hybridshowdata.status?s("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.onActionHybrid("service-restart")}}},[t._v(" Restart Service ")]):t._e()])])]),t._v(" "),t.hybridshowdata.bootstrapstackname?s("div",{staticClass:"row"},[s("div",{staticClass:"col-2 text-info"},[t._v(" Instances ")]),s("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Replicas)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" Image ")]),s("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapimage)+" ")])]):t._e(),t._v(" "),t.hybridshowdata.bootstrapstackname?s("div",{staticClass:"row"},[s("div",{staticClass:"col-2 text-info"},[t._v(" Names ")]),s("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapname)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" EndAt ")]),s("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapdateend)+" ")])]):t._e(),t._v(" "),t.hybridshowdata.bootstrapstackname?s("div",{staticClass:"row"},[s("div",{staticClass:"col-2 text-info"},[t._v(" Networks ")]),s("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapnetwork)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" BeginAt ")]),s("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapdatebegin)+" ")])]):t._e(),t._v(" "),t.hybridshowdata.bootstrapstackname?s("div",{staticClass:"row"},[s("div",{staticClass:"col-2 text-info"},[t._v(" Status ")]),t.hybridshowdata.status?s("div",{staticClass:"col-3 text-secondary"},[s("span",{staticClass:"ti-check text-success"})]):s("div",{staticClass:"col-3 text-secondary"},[s("span")]),s("div",{staticClass:"col-2 text-info"},[t._v(" Ports ")]),0!=t.hybridshowdata.ports?s("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.ports)+" ")]):s("div",{staticClass:"col-4 text-secondary"})]):t._e()]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search By StackName"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),s("vuetable",{key:t.vuetablekeyd,ref:"vuetable",attrs:{"api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess,"vuetable:load-error":t.onLoadError},scopedSlots:t._u([{key:"actions",fn:function(e){return s("div",{},[t.actionrowindex==e.rowIndex?s("button",{staticClass:"ti-more-alt btn btn-secondary btn-sm",attrs:{round:""},on:{click:function(a){return t.onAction("run-more",e.rowData,e.rowIndex)}}}):s("button",{staticClass:"ti-more btn btn-outline-secondary btn-sm",attrs:{round:""},on:{click:function(a){return t.onAction("run-more",e.rowData,e.rowIndex)}}})])}}])}),s("div",{staticClass:"vuetable-pagination ui basic segment grid"},[s("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),s("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},Va=[],Fa=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[s("img",{staticClass:"avatar border-white",attrs:{src:a("3606"),alt:"..."}})]),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:" col text-center"},[s("v-wait",{attrs:{for:"myRunInstance1"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c"),width:"50",height:"50"}}),t._v(" Lab_Instance... ")])])],2),t.extenderror?s("button",{staticClass:"btn btn-outline-danger btn-sm",attrs:{type:"button",round:""},on:{click:function(e){return t.runextenderror()}}},[t._v(" Error: max depth exceeded")]):t._e(),t.tryConsole?s("button",{staticClass:"btn btn-outline-warning btn-sm",attrs:{type:"button",round:""},on:{click:function(e){return t.clear()}}},[t._v(" Clear")]):t._e(),s("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{type:"button",round:"",disabled:""}},[t._v(" Console")]),"sublime"==t.cmOptions.keyMap?s("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{type:"button",round:""},on:{click:t.infoFilter}},[t._v(" i")]):t._e()],1),s("div",{staticClass:"codemirror"},[s("codemirror",{ref:"myCm",attrs:{value:t.code,options:t.cmOptions},on:{cursorActivity:t.onCmCursorActivity,ready:t.onCmReady,focus:t.onCmFocus,input:t.onCmCodeChange}})],1)])],1)},Ga=[],za={components:{card:k,codemirror:mt["codemirror"]},data(){return{socketonline:!1,extenderror:!1,tryConsole:!1,ssl:{},getinfo:"",token:"",swarmlabname:"",code:"",editchoice:"",optionsedit:[{text:"code",value:"code"},{text:"text",value:"text"}],llodesc:[{llo_url:"",llo_name:"",llo_author:"",llo_intro:""}],llo:[{id:0,rm:!1,data_info:"Asciidoc \n",data_code:"#Your source code",data_service:"",code_datafile:"url",code_name:"",code_exec:"",code_options:"",code_mime:"",code_info:"",code_code:"",code_codeout:"",code_codeoutput:"console",points:"",challenge_question:"",code_challenge_question:"",challenge_answer:"",challenge_answer_hint:"",code_challenge_answer_hint:"",challenge_answer_source:"",challenge_answer_code_out:"",challenge_answer_code:"",code_challenge_answer_code:""}],searchLLO:[],searchLLOactive:!1,ADOC_html_code:"",challenge:[],action:"",tryLLO:[],service:"os2",active:0,activecount:0,remove:"",activeField:"",bootstrap:!1,firstbootstrap:0,htmlasciitmp:"",datafile:"https://git.swarmlab.io:3000/labs/examples-mpi2/raw/branch/master/0_netstat/data",datadir:"0_netstat/data",LearningObject:"",showllo:!0,showlloedit:!0,selected:"sublime",options:[{text:"vim",value:"vim"},{text:"sublime",value:"sublime"}],optionsmime:[{text:"sh",value:"bash"},{text:"javascript",value:"javascript"},{text:"python",value:"python"},{text:"php",value:"php"},{text:"sql",value:"sq;"},{text:"xml",value:"xml"},{text:"c",value:"c"}],pValidate:!1,cmOptions:{tabSize:2,styleActiveLine:!0,lineNumbers:!1,lineSeparator:"\n",line:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:!0},styleSelectedText:!0,mode:"shell",hintOptions:{completeSingle:!1},keyMap:"sublime",matchBrackets:!0,showCursorWhenSelecting:!0,indentUnit:this.ADOC_html_code,lineWrapping:!0,theme:"idea",refresh:!0,readOnly:!0,autofocus:!1,extraKeys:{Ctrl:"autocomplete"}},ADOC_html:[]}},methods:{clear(){this.tryConsole=!1,this.code=""},async getdata(){var t=this.getinfo;await v.dispatch("pipelineLLO/get_data",{code:t})},async showactive(t){this.topwindow(t)},onCmReady(t){t.on("change",(t,e)=>{}),t.on("keypress",()=>{t.showHint({completeSingle:!1})})},onCmCursorActivity(t,e,a){},onCmFocus(t){},onCmCodeChange(t){this.code=t},handleChange(){},setKeymap(){this.cmOptions.keyMap=this.selected},infoFilter(){var t="<h3>Playbook Images</h3>",e='<table class="table table-striped table-sm "><tr><td class="text-left">Shift-Tab</td> <td class="text-left">indentLess</td></tr><tr><td class="text-left">Alt-Q</td> <td class="text-left">wrapLines</td></tr><tr><td class="text-left">Ctrl-Up</td> <td class="text-left">scrollLineUp</td></tr><tr><td class="text-left">Ctrl-Down</td> <td class="text-left">scrollLineDown</td></tr><tr><td class="text-left">Ctrl-L</td> <td class="text-left">selectLine</td></tr><tr><td class="text-left">Esc</td> <td class="text-left">singleSelectionTop</td></tr><tr><td class="text-left">Ctrl-Enter</td> <td class="text-left">insertLineAfter</td></tr><tr><td class="text-left">Ctrl-D</td> <td class="text-left">selectNextOccurrence</td></tr><tr><td class="text-left">Shift-Ctrl-Space</td> <td class="text-left">selectScope</td></tr><tr><td class="text-left">Shift-Ctrl-M</td> <td class="text-left">selectBetweenBrackets</td></tr><tr><td class="text-left">Ctrl-M</td> <td class="text-left">goToBracket</td></tr><tr><td class="text-left">Ctrl-K Ctrl-Y</td> <td class="text-left">sublimeYank</td></tr><tr><td class="text-left">Ctrl-K Ctrl-C</td> <td class="text-left">showInCenter</td></tr><tr><td class="text-left">Ctrl-K Ctrl-G</td> <td class="text-left">clearBookmarks</td></tr><tr><td class="text-left">Ctrl-K Ctrl-Backspace</td> <td class="text-left">delLineLeft</td></tr><tr><td class="text-left">Ctrl-K Ctrl-0</td> <td class="text-left">unfoldAll</td></tr><tr><td class="text-left">Ctrl-K Ctrl-J</td> <td class="text-left">unfoldAll</td></tr><tr><td class="text-left">Ctrl-Alt-Up</td> <td class="text-left">addCursorToPrevLine</td></tr><tr><td class="text-left">Ctrl-Alt-Down</td> <td class="text-left">addCursorToNextLine</td></tr><tr><td class="text-left">Ctrl-F3</td> <td class="text-left">findUnder</td></tr><tr><td class="text-left">Shift-Ctrl-F3</td> <td class="text-left">findUnderPrevious</td></tr><tr><td class="text-left">Shift-Ctrl-[</td> <td class="text-left">fold</td></tr><tr><td class="text-left">Shift-Ctrl-]</td> <td class="text-left">unfold</td></tr><tr><td class="text-left">Ctrl-F</td> <td class="text-left">find</td></tr></table>',a=(t="","");this.$swal({title:"<strong>Key bindings</strong>",type:"info",html:e+t+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1})}},computed:{codemirror(){return this.$refs.myCm.codemirror}},mounted(){this.$root.$on("hybrid_server_log_status",t=>{this.$nextTick((function(){"off"==t?this.socketonline=!1:"on"==t&&(this.socketonline=!0)}))}),this.$root.$on("hybrid_server_log_in",t=>{console.log("logsemiton "+JSON.stringify(t)),this.code+=t,this.code+="\n",this.tryConsole=!0})},beforeDestroy(){this.$root.$off("hybrid_server_log_status"),this.$root.$off("hybrid_server_log_in")},created(){this.token=new URL(location.href).searchParams.get("token"),this.swarmlabname=new URL(location.href).searchParams.get("pipelinename")}},Ma=za,ja=(a("f101"),Object(_["a"])(Ma,Fa,Ga,!1,null,null,null)),Ua=ja.exports,Ya={components:{card:k,Vuetable:$["Vuetable"],VuetablePagination:S["a"],VuetablePaginationInfo:L["a"],VuetablePaginationDropdown:$["VuetablePaginationDropdown"],LogView:Ua},props:{},data(){return{hybridshowlog:!1,actionrowindex:"",playbookInfo:{},hybridshowdata:{},token:"",playbook:{title:"",name:"",description:""},container:{name:"",view:0},pipeline:{},selected:"hybrid",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekeyd:0,fielddata:{},fields:[{name:"bootstrapname",title:'<span class="orange"></span>Name',sortField:"bootstrapname",visible:!0,dataClass:"text-left text-wrap text-break break-word",width:"15%"},{name:"bootstrapstackname",title:'<span class="orange"></span>StackName',sortField:"bootstrapstackname",visible:!0,dataClass:"left aligned w-25",width:"15%"},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"bootstrapdatebegin5",title:'<span class="orange"></span>Begin',sortField:"bootstrapdatebegin5",titleClass:"center aligned",visible:!0,width:"10%"},{name:"bootstrapusersjoin",title:'<span class="orange"></span>Public',sortField:"bootstrapusersjoin",titleClass:"center aligned",visible:!0,width:"5%",callback:function(t){if(1==t){var e='<span class="ti-check text-success"> </span>';return e}e="<span> </span>";return e}},{name:"ID",sortField:"ID",titleClass:"center aligned",dataClass:"left aligned w-25",visible:!1,width:"15%"},{name:"__slot:actions",title:"Actions",titleClass:"center aligned",dataClass:"center aligned",width:"5%"}],apiurl:d.swarmlab_url_80+"/swarmlabhybridbootstrapservices",css:I["a"],perpage:5,searchFor:"",sortOrder:[{field:"pipelinename",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",type:"scripts",tutor:"yes"}}},mounted(){this.$root.$on("hybrid_refresh_bootstrap_view",()=>{s["default"].nextTick(()=>this.$refs.vuetable.refresh())})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token")},beforeDestroy(){this.$root.$off("hybrid_refresh_bootstrap_view")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{async onActionLog(t){if(1==t){var e=await v.dispatch("pipelineLLO/hybrid_servicelog",{token:this.token,bootstrapnameid:this.hybridshowdata.bootstrapnameid}),a=e.data.data.data;if("ok"==e.data.data.errorexec_msg&&e.data.data.data)this.hybridshowlog=!0,this.$root.$emit("hybrid_server_log_in",a);else{var s="No logs are available";this.$swal({type:"Info",title:"LOG",icon:"info",html:s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}}else 2==t&&(this.hybridshowlog=!1)},async onActionHybrid(t){if("stack-stop"==t){var e="<h5>This will remove the stack with the name<b> "+this.hybridshowdata.bootstrapstackname+"</b> <br><br> Services, networks, and secrets associated with the stack will be removed. </h5>";this.$swal({type:"Info",title:"Info!",icon:"warning",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"}).then(t=>{this.onActionHybrid_stackrm(t)})}else if("service-stop"==t){var a=await v.dispatch("pipelineLLO/hybrid_servicerm",{token:this.token,bootstrapstackid:this.hybridshowdata.bootstrapstackid,bootstrapnameid:this.hybridshowdata.bootstrapnameid});s["default"].nextTick(()=>this.$refs.vuetable.refresh())}else if("service-restart"==t){a=await v.dispatch("pipelineLLO/hybrid_servicerestart",{token:this.token,bootstrapnameid:this.hybridshowdata.bootstrapnameid});s["default"].nextTick(()=>this.$refs.vuetable.refresh());e="";e="ok"==a.data.data.errorexec_msg?"<h5>Update existing service: ok!</h5>":"<h5>Update existing service: error!</h5>",this.$swal({type:"Info",title:"INFO",icon:"info",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}},async onActionHybrid_stackrm(t){if(t.isConfirmed){await v.dispatch("pipelineLLO/stackrm",{token:this.token,bootstrapstackid:this.hybridshowdata.bootstrapstackid});s["default"].nextTick(()=>this.$refs.vuetable.refresh())}},onError(t,e){var a=e,s="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:s+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",s["default"].nextTick(()=>this.$refs.vuetable.refresh())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t)},onChangePage(t){this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async onAction(t,e,a){this.actionrowindex=a,"view-item"==t||("run-more"==t?this.hybridshowdata=e:"delete-item"==t&&this.$swal({type:"info",html:info+winfo,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!0,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Yes, Delete it!"}))},refreshVuetable(){this.$nextTick(()=>{this.vuetablekeyd+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){return{html:!0,title:()=>"Hello <b>Popover:</b> "+ ++this.counter,content:()=>"The date is:<br><em>"+new Date+"</em>"}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length},onLoadError(t){"401"==t.response.status&&(window.location.href="https://api-login.swarmlab.io:8089",s["default"].nextTick(()=>window.location.href="https://api-login.swarmlab.io:8089"))}},actions:{}},qa=Ya,Ha=(a("7296"),Object(_["a"])(qa,Ta,Va,!1,null,null,null)),Ka=Ha.exports,Wa={components:{card:k,MydeployManageBootstrap:Da,MydeployManageView:Ka},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},Qa=Wa,Ja=Object(_["a"])(Qa,$a,La,!1,null,null,null),Za=Ja.exports,Xa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-6 order-first "},[a("br"),a("myllo-search")],1),a("div",{staticClass:"col-6 order-last"},[a("br"),a("myllo-view")],1)])])},ts=[],es=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},[t.datadir?s("img",{staticClass:"avatar border-white",attrs:{src:a("b73e"),alt:"..."}}):s("img",{staticClass:"avatar border-white",attrs:{src:a("9f0c"),alt:"..."}})]),s("v-wait",{attrs:{for:"myRunInstancetutor1"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),s("b-container",{directives:[{name:"show",rawName:"v-show",value:t.datadir,expression:"datadir"}],staticClass:"bv-example-row",attrs:{fluid:""}},[s("b-container",{staticClass:"container"},[s("div",{staticClass:"row justify-content-center myscrool"},[s("div",{staticClass:"col-xl-10 col-12"},[s("div",{staticClass:"timeline timeline-line-solid"},[s("span",{staticClass:"timeline-label"},[s("span",{staticClass:"label"},[t._v(t._s(t.datatitle))])]),t._l(t.coursesview,(function(e,i){return s("div",{staticClass:"timeline-item"},[e.exercise_file?t._e():s("div",[s("div",{staticClass:"timeline-point timeline-point"}),s("div",{staticClass:"timeline-event shadow p-3 mb-5 bg-white rounded"},[s("div",{staticClass:"widget has-shadow"},[s("div",{staticClass:"widget-header d-flex align-items-center",class:{active:i===t.activeItem}},[s("div",{staticClass:"user-image"},[s("img",{staticClass:"rounded-circle",attrs:{src:a("7649"),alt:"..."}})]),s("div",{staticClass:"d-flex flex-column mr-auto"},[s("div",{staticClass:"title"},[s("span",{staticClass:"username"},[t._v(t._s(e.title)+" ")])])])]),s("div",{staticClass:"widget-body"},[s("p",[t._v(" "+t._s(e.subtitle)+" ")]),s("small",[t._v(t._s(e.desc))])]),s("div",{staticClass:"widget-footer d-flex align-items-center"},[s("div",{staticClass:"col-12 no-padding d-flex justify-content-end"},[s("div",{staticClass:"meta"},[s("ul",{staticClass:"list-group list-group-horizontal"},[e.doc_file?s("li",[s("a",{attrs:{href:"#"},on:{click:function(a){return t.viewllo(e,"asciidoc",i)}}},[s("small"),t._v(" "),s("span",{staticClass:"rounded-circle bg-dark text-white ti-book",attrs:{title:"doc"}})])]):t._e(),e.code_file?s("li",[s("a",{attrs:{href:"#"},on:{click:function(a){return t.viewllo(e,"asciinema",i)}}},[s("small"),s("span",{staticClass:"rounded-circle text-success ti-shortcode",attrs:{title:"asciinema"}})])]):t._e(),e.video_file?s("li",[s("a",{attrs:{href:"#"},on:{click:function(a){return t.viewllo(e,"video",i)}}},[s("small"),s("span",{staticClass:"text-info ti-video-camera",attrs:{title:"video"}})])]):t._e()])])])])])])])])}))],2)]),s("div",{staticClass:"col-xl-10 col-12"},[s("div",{staticClass:"timeline timeline-line-solid"},[s("span",{staticClass:"timeline-label"},[s("span",{staticClass:"label"},[t._v("Exercises")])]),t._l(t.coursesview,(function(e,i){return s("div",{staticClass:"timeline-item"},[e.exercise_file?s("div",[s("div",{staticClass:"timeline-point timeline-point"}),s("div",{staticClass:"timeline-event shadow p-3 mb-5 bg-white rounded"},[s("div",{staticClass:"widget has-shadow"},[s("div",{staticClass:"widget-header d-flex align-items-center",class:{active:i===t.activeItem}},[s("div",{staticClass:"user-image"},[s("img",{staticClass:"rounded-circle",attrs:{src:a("7649"),alt:"..."}})]),s("div",{staticClass:"d-flex flex-column mr-auto"},[s("div",{staticClass:"title"},[s("span",{staticClass:"username"},[t._v(t._s(e.title)+" ")])])])]),s("div",{staticClass:"widget-body"},[s("p",[t._v(" "+t._s(e.subtitle)+" ")]),s("small",[t._v(t._s(e.desc))])]),s("div",{staticClass:"widget-footer d-flex align-items-center"},[s("div",{staticClass:"col-12 no-padding d-flex justify-content-end"},[s("div",{staticClass:"meta"},[s("ul",{staticClass:"list-group list-group-horizontal"},[e.exercise_file?s("li",[s("a",{attrs:{href:"#"},on:{click:function(a){return t.viewllo(e,"exercise",i)}}},[s("small"),t._v(" "),s("span",{staticClass:"rounded-circle bg-dark text-white ti-book",attrs:{title:"Challenge"}})])]):t._e(),e.exercise_answerfile?s("li",[s("a",{attrs:{href:"#"},on:{click:function(a){return t.viewllo(e,"exerciseanswer",i)}}},[s("small"),s("span",{staticClass:"text-info ti-book",attrs:{title:"Answer"}})])]):t._e()])])])])])])]):t._e()])})),s("span",{staticClass:"timeline-label"},[s("span",{staticClass:"label"},[t._v(t._s(t.datatitle))])])],2)])])])],1),s("br"),s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.datadir,expression:"datadir"}],staticClass:"progress"},[s("div",{staticClass:"progress-bar progress-bar-striped bg-secondary",style:{width:t.progress+"%"},attrs:{role:"progressbar","aria-valuenow":"25","aria-valuemin":"0","aria-valuemax":"100"}},[t._v(t._s(t.progress))])]),s("div",{staticClass:"input-group input-group-sm sm-3"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchFor,expression:"searchFor"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Search by Name"},domProps:{value:t.searchFor},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.setFilter(e)},input:function(e){e.target.composing||(t.searchFor=e.target.value)}}}),s("div",{staticClass:"input-group-prepend"},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.searchcourselang,expression:"searchcourselang"}],staticClass:"custom-select custom-select-sm",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.searchcourselang=e.target.multiple?a:a[0]}}},[s("option",{attrs:{value:"0",selected:""}},[t._v("Lang...")]),s("option",{attrs:{value:"1"}},[t._v("English")]),s("option",{attrs:{value:"2"}},[t._v("Ελληνικά")])])]),s("div",{staticClass:"input-group-prepend"},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.searchcourselevel,expression:"searchcourselevel"}],staticClass:"custom-select custom-select-sm",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.searchcourselevel=e.target.multiple?a:a[0]}}},[s("option",{attrs:{value:"0",selected:""}},[t._v("Level...")]),s("option",{attrs:{value:"1"}},[t._v("Elementary")]),s("option",{attrs:{value:"2"}},[t._v("Intermediate")]),s("option",{attrs:{value:"3"}},[t._v("Advanced")]),s("option",{attrs:{value:"4"}},[t._v("Expert")]),s("option",{attrs:{value:"5"}},[t._v("Guru")])])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),s("div",{staticClass:"input-group-append"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),s("vuetable",{key:t.vuetablekeyf,ref:"vuetable",attrs:{"api-url":t.apiurl,"api-mode":!0,"http-options":t.httpOptions,fields:t.fields,"item-actions":t.itemActions,"sort-order":t.sortOrder,"show-sort-icons":!0,"multi-sort":t.multiSort,"per-page":t.perpage,"pagination-path":"links.pagination","pagination-component":t.paginationComponent,"append-params":t.moreParams,"wrapper-class":"vuetable-wrapper","loading-class":"loading","detail-row-id":"id",css:t.css.table},on:{"vuetable:pagination-data":t.onPaginationData,"vuetable:load-success":t.loadsuccess,"vuetable:load-error":t.onLoadError},scopedSlots:t._u([{key:"actions",fn:function(e){return s("div",{},[t.actionrowindex==e.rowIndex?s("button",{staticClass:"ti-more-alt btn btn-secondary btn-sm",attrs:{title:"View Course Details",round:""},on:{click:function(a){return t.onAction("run-more",e.rowData,e.rowIndex)}}}):s("button",{staticClass:"ti-more btn btn-outline-secondary btn-sm",attrs:{title:"View Course Details",round:""},on:{click:function(a){return t.onAction("run-more",e.rowData,e.rowIndex)}}}),s("button",{staticClass:"ti-info btn btn-outline-secondary btn-sm",attrs:{title:"View Course Info",round:""},on:{click:function(a){return t.onAction("run-info",e.rowData,e.rowIndex)}}})])}}])}),s("div",{staticClass:"vuetable-pagination ui basic segment grid"},[s("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),s("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},as=[],ss={components:{card:k,Vuetable:$["Vuetable"],VuetablePagination:S["a"],VuetablePaginationInfo:L["a"],VuetablePaginationDropdown:$["VuetablePaginationDropdown"]},props:{},data(){return{coursesview:{},actionrowindex:"",activeItem:null,playbookInfo:{},token:"",playbook:{title:"",name:"",description:""},datadir:"",datatitle:"",progress:0,searchcourselevel:0,searchcourselang:0,courses:[],courseshow:!1,container:{name:"",view:0},pipeline:{},selected:"hybrid",options:[{text:"Packages",value:"packages"},{text:"Images",value:"images"},{text:"Scripts",value:"scripts"}],showModal:!1,visibility:[],active:!1,vuetablekeyf:0,fielddata:{},fields:[{name:"title",title:'<span class="orange"></span>Name',sortField:"title",visible:!0,dataClass:"text-left text-wrap text-break break-word",width:"20%"},{name:"subtitle",title:'<span class="orange"></span>Course',visible:!0,dataClass:"left aligned w-25",width:"25%"},{name:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"desc",title:'<span class="orange"></span>Description',titleClass:"center aligned",visible:!0,width:"30%"},{name:"lang",title:'<span class="orange"></span>Lang',sortField:"lang",titleClass:"center aligned",dataClass:"text-center",visible:!0,width:"10%"},{name:"__slot:actions",title:'<span class="d-flex justify-content-center">Actions</span>',titleClass:"center aligned",dataClass:"text-center",width:"15%"}],apiurl:d.url_80+"/get_llo",css:I["a"],perpage:5,searchFor:"",sortOrder:[{field:"title",direction:"asc"}],multiSort:!0,paginationComponent:"vuetable-pagination",itemActions:[{name:"view-item",label:"",icon:"glyphicon glyphicon-zoom-in",class:"btn btn-info",extra:{title:"View","data-toggle":"tooltip","data-placement":"left"}},{name:"edit-item",label:"",icon:"glyphicon glyphicon-pencil",class:"btn btn-warning",extra:{title:"Edit","data-toggle":"tooltip","data-placement":"top"}},{name:"delete-item",label:"",icon:"glyphicon glyphicon-remove",class:"btn btn-danger",extra:{title:"Delete","data-toggle":"tooltip","data-placement":"right"}}],moreParams:{filter:"",level:"",type:"scripts",tutor:"yes"}}},mounted(){this.$root.$on("hybrid_progress_refresh",()=>{s["default"].nextTick(()=>this.getprogress(this.datadir))}),this.$root.$on("hybrid_refresh_dockerservices",()=>{}),this.$root.$on("hybrid_refresh_table",t=>{this.$nextTick((function(){s["default"].nextTick(()=>this.$refs.vuetable.refresh()),this.viewhybridoptions=!1}))})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token")},beforeDestroy(){this.$root.$off("hybrid_progress_refresh"),this.$root.$off("hybrid_refresh_dockerservices"),this.$root.$off("hybrid_refresh_table")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{async getprogress(t){var e={};e.course=this.datadir;var a=await v.dispatch("pipelineLLO/getprogress",e),s=a.data.data.progress.progress,i=this.courses.length,o=Math.floor(s/i*100);this.progress=o},checkClass(t){return"video"==t.type?"text-primary":"asciidoc"==t.type?"text-success":"asciinema"==t.type?"text-info":"exercise"==t.type?"text-warning":"text-secondary"},onError(t,e){var a=e,s="<h5>Bootstrap "+t+"</h5>";this.$swal({type:t,html:s+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})},setFilter(){this.moreParams={filter:this.searchFor,level:this.searchcourselevel,lang:this.searchcourselang,type:this.selected},s["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",s["default"].nextTick(()=>this.$refs.vuetable.refresh())},onPaginationData(t){this.$refs.pagination.setPaginationData(t),this.$refs.paginationInfo.setPaginationData(t)},onChangePage(t){this.$refs.vuetable.changePage(t)},editRow(t){alert("You clicked edit on"+JSON.stringify(t))},async viewllo(t,e,a){if(this.courseshow=!0,"video"==e){var s={};s.type=e,s.course=t.video_file,s.llo=this.datadir,this.$root.$emit("hybrid_llo_viecourse",s)}else if("asciidoc"==e){var i={};i.dir=this.datadir,i.file=t.doc_file;var o=await v.dispatch("pipelineLLO/get_llo_course_ascii",i);s={};s.type=e,s.code=o.data.data,s.course=t.doc_file,s.llo=this.datadir,this.$root.$emit("hybrid_llo_viecourse",s)}else if("asciinema"==e){s={};s.type=e,s.course=t.code_file,s.llo=this.datadir,this.$root.$emit("hybrid_llo_viecourse",s)}else if("exercise"==e){i={};i.dir=this.datadir,i.file=t.exercise_file;o=await v.dispatch("pipelineLLO/get_llo_course_ascii",i),s={type:"asciidoc"};s.code=o.data.data,s.course=t.exercise_file,s.llo=this.datadir,this.$root.$emit("hybrid_llo_viecourse",s)}else if("exerciseanswer"==e){i={};i.dir=this.datadir,i.file=t.exercise_answerfile;o=await v.dispatch("pipelineLLO/get_llo_course_ascii",i),s={type:"asciidoc"};s.code=o.data.data,s.course=t.exercise_answerfile,s.llo=this.datadir,this.$root.$emit("hybrid_llo_viecourse",s)}this.activeItem=a,this.getprogress(this.datadir)},async onAction(t,e,a){if("run-more"==t){this.actionrowindex=a,this.datadir=e.dir,this.datatitle=e.title;var s=await v.dispatch("pipelineLLO/get_llo_course",e.dir);this.courses=s.data;for(var i=Math.max.apply(Math,this.courses.map((function(t){return t.chapter}))),o=[],n=1;n<=i;n++){for(var r={},l=this.courses.filter(t=>t.chapter===n),c=l.length,d=0;d<c;d++)"video"==l[d].type?(r.video_file=l[d].file,r.video_service=l[d].service):"asciidoc"==l[d].type?r.doc_file=l[d].file:"asciinema"==l[d].type?r.code_file=l[d].file:"exercise"==l[d].type&&(r.exercise_file=l[d].file,r.exercise_answerfile=l[d].answerfile,r.exercise_difficulty=l[d].difficulty),""!=r.chapter&&void 0!=r.chapter||(r.chapter=n),""!=r.title&&void 0!=r.title||(r.title=l[d].title),""!=r.subtitle&&void 0!=r.subtitle||(r.subtitle=l[d].subtitle),""!=r.desc&&void 0!=r.desc||(r.desc=l[d].desc),""!=r.course&&void 0!=r.course||(r.course=this.datatitle);o.push(r)}this.coursesview=o}else if("run-info"==t){var u=`\n<table class="table table-hover table-sm text-left">\n <tbody>\n <tr>\n <th ><b>Title</b></th>\n <td>${e.title}</td>\n </tr>\n <tr>\n <td><b>Subtitle</b></td>\n <td>${e.subtitle}</td>\n </tr>\n <tr>\n <th ><b>Level</b></th>\n <td>${e.level}</td>\n </tr>\n <tr>\n <td ><b>Description</b></td>\n <td>${e.desc}</td>\n </tr>\n <tr>\n <td ><b>Language</b></td>\n <td>${e.lang}</td>\n </tr>\n <tr>\n <td ><b>License</b></td>\n <td>${e.license}</td>\n </tr>\n <tr>\n <td ><b>More Info</b></td>\n <td>${e.url}</td>\n </tr>\n </tbody>\n</table>`;this.$swal({type:"Info",title:"Course Info!",icon:"info",html:u,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}this.getprogress(this.datadir)},refreshVuetable(){this.$nextTick(()=>{this.vuetablekeyf+=1})},playbookinfoShow(t){return this.visibility[t]=!0},playbookinfo(t){return this.playbookInfo=t},rowClicked(t,e){return{html:!0,title:()=>"Hello <b>Popover:</b> "+ ++this.counter,content:()=>"The date is:<br><em>"+new Date+"</em>"}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length},onLoadError(t){"401"==t.response.status&&(window.location.href="https://api-login.swarmlab.io:8089",s["default"].nextTick(()=>window.location.href="https://api-login.swarmlab.io:8089"))}},actions:{}},is=ss,os=(a("cc7b"),Object(_["a"])(is,es,as,!1,null,null,null)),ns=os.exports,rs=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"author"},["asciidoc"==t.hybridshow?s("img",{staticClass:"avatar border-white",attrs:{src:a("3784"),alt:"..."}}):t._e(),"asciinema"==t.hybridshow?s("img",{staticClass:"avatar border-white",attrs:{src:a("3606"),alt:"..."}}):t._e(),"video"==t.hybridshow?s("img",{staticClass:"avatar border-white",attrs:{src:a("2e15"),alt:"..."}}):t._e()]),s("v-wait",{attrs:{for:"myRunInstancetutor"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),s("b-container",{attrs:{fluid:""}},["asciinema"==t.hybridshow?s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("b",[t._v("Copy & Paste")]),s("br"),t._v(" Any time you see a command you'd like to try in your own terminal just pause the player "),s("br"),t._v(" and copy-paste the content you want. ")]),s("div",{staticClass:"col-12"},[s("iframe",{attrs:{id:"llo",title:"title",width:"600",height:"700",src:t.asciinemasource,allowfullscreen:"",frameborder:"0"}})])]):t._e(),"video"==t.hybridshow?s("div",{staticClass:"row text-center"},[s("iframe",{attrs:{id:"llo",width:"740",height:"500",src:t.sourcevimeo,allowfullscreen:"",frameborder:"0"},on:{load:function(e){return t.dofin()}}})]):t._e(),"asciidoc"==t.hybridshow?s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("iframe",{attrs:{id:"lloasciiview1",title:"title",width:"100%",height:"700",src:t.asciidocurl,frameborder:"0"}})])]):t._e(),"penguin"==t.hybridshow?s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("img",{attrs:{src:a("4cc0"),width:"400",height:"400"}})])]):t._e()]),s("hr"),"penguin"!=t.hybridshow?s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"col-12"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.completiontracking,expression:"completiontracking"}],staticClass:"custom-select custom-select-sm",on:{change:[function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.completiontracking=e.target.multiple?a:a[0]},function(e){return t.oncompletiontracking()}]}},[s("option",{attrs:{value:"0",selected:""}},[t._v("Completion tracking")]),s("option",{attrs:{value:"1"}},[t._v("Completed")]),s("option",{attrs:{value:"2"}},[t._v("Almost")])]),s("select",{directives:[{name:"model",rawName:"v-model",value:t.courseread,expression:"courseread"}],staticClass:"custom-select custom-select-sm",on:{change:[function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.courseread=e.target.multiple?a:a[0]},function(e){return t.oncompletiontracking()}]}},[s("option",{attrs:{value:"0",selected:""}},[t._v("Did you find this helpful?")]),s("option",{attrs:{value:"1"}},[t._v("No")]),s("option",{attrs:{value:"2"}},[t._v("Not really/A bit")]),s("option",{attrs:{value:"3"}},[t._v("Yes")])])])])]):t._e()],1)},ls=[],cs=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("iframe",{attrs:{id:"llo",title:t.title,width:t.width,height:t.height,src:t.source,allowfullscreen:"",frameborder:"0"}})},ds=[],us={props:{title:"",course:"",llo:""},data(){return{source:`http://localhost:3080/player/aplayer.html?llo=${this.llo}&item=${this.course}`,width:"600",height:"750"}},mounted(){}},ps=us,ms=Object(_["a"])(ps,cs,ds,!1,null,null,null),hs=ms.exports,bs=a("97a1"),vs=a.n(bs),fs={components:{aplayer:hs,card:k},props:{},data(){return{vtype:"",completiontracking:0,courseread:0,hybridshow:"penguin",llo:"",llocourse:"",llochapter:"",asciidocurl:"",asciidoccode:"",course:"",asciinemasource:"",coursevimeo:"",hybridcourse:"",token:""}},mounted(){this.$root.$on("hybrid_llo_viecourse",t=>{this.completiontracking=0,this.courseread=0,this.llocourse=t.llo,this.llochapter=t.course,"asciinema"==t.type?(this.hybridshow=t.type,this.llo=t.llo,this.course=t.course,this.asciinemasource=`http://localhost:3080/player/aplayer.html?llo=${this.llo}&item=${this.course}`,this.getcompletion()):"asciidoc"==t.type?(this.asciidoccode=t.code,this.vtype=t.type,this.addlloascii(),this.getcompletion()):"video"==t.type&&(this.$wait.start("myRunInstancetutor"),this.hybridshow=t.type,this.sourcevimeo="https://player.vimeo.com/video/"+t.course,this.getcompletion())})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token")},beforeDestroy(){this.$root.$off("hybrid_llo_viecourse")},computed:{},methods:{async getcompletion(){var t={};t.token=this.token,t.course=this.llocourse,t.chapter=this.llochapter;var e=await v.dispatch("pipelineLLO/getcompletion",t);console.log("params "+JSON.stringify(e)),"ok"==e.data.action&&e.data.data&&(this.completiontracking=e.data.data.track,this.courseread=e.data.data.evaluation)},async oncompletiontracking(){var t={};t.token=this.token,t.action="track",t.track=this.completiontracking,t.evaluation=this.courseread,t.course=this.llocourse,t.chapter=this.llochapter;await v.dispatch("pipelineLLO/oncompletiontracking",t);this.$root.$emit("hybrid_progress_refresh")},dofin(){this.$wait.end("myRunInstancetutor")},async addlloascii(){var t=this.asciidoccode;try{var e=vs()(),a=e.convert(t,{standalone:!0,backend:"html5",header_footer:!1,doctype:"article",safe:"safe",attributes:{"source-highlighter":"highlightjs",sectnums:!0,icons:"font",copycss:!0,stylesheet:"http://cdnjs.cloudflare.com/ajax/libs/asciidoctor.js/1.5.9/css/asciidoctor.min.css","iconfont-cdn":"http://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css","iconfont-name":"fontawesome-5-14.0","iconfont-remote":!0,linkcss:!0}}),s=await v.dispatch("pipelineLLO/save_llo_asciidoctmp",a);"nofile"==s.data?console.log("no write permission"):(this.asciidocurl=`http://localhost:3080/asciidoc/${s.data.data}.html?token=${this.token}`,this.hybridshow="no",this.hybridshow=this.vtype)}catch(i){return void console.log(" ascerror "+JSON.stringify(i))}}},actions:{}},ws=fs,gs=(a("4844"),Object(_["a"])(ws,rs,ls,!1,null,null,null)),ys=gs.exports,_s={components:{card:k,MylloSearch:ns,MylloView:ys},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},Cs=_s,ks=Object(_["a"])(Cs,Xa,ts,!1,null,null,null),xs=ks.exports,As=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-8 order-first "},[s("br"),s("calendar-view")],1),s("div",{staticClass:"col-4 order-last"},[s("br"),s("b-container",{directives:[{name:"show",rawName:"v-show",value:1==t.hybridshowlog,expression:"hybridshowlog==1"}],attrs:{fluid:""}},[s("div",{staticClass:"row text-center"},[s("div",{staticClass:"col-12"},[s("img",{staticClass:"border-white",attrs:{src:a("10cc"),alt:"..."}})])])])],1)])])},Os=[],Rs=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},$s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"appcalendar"}},[a("div",{staticClass:"calendar-parent overflow-auto"},[a("h1",[t._v("Welcome to Swarmlab!")]),a("h3",[t._v(" An open source work/study-from-home application. ")]),a("br"),a("h5",[t._v(" Swarmlab provides you with all the required tools, tools to teach work or try out demos in a completely virtual environment. ")]),a("br"),a("div",[a("p",[a("b",[t._v("Swarmlab is a collection of services that aims to:")]),a("ul",[a("li",[t._v(" provide "),a("b",[t._v("teachers and professors")]),t._v(" with online remote tools to do their lessons")]),a("li",[t._v(" give "),a("b",[t._v("students")]),t._v(" the opportunity to study real life examples in their chosen area of expertise ")]),a("li",[t._v(" allow "),a("b",[t._v("developers")]),t._v(" to fully test and debug their applications and provide POC’s")])])])]),a("br"),a("p",[t._v("Swarmlab, up and running since 2020, is already used for teaching purposes in a university and has proven itself as a powerful tool in the post covid remote-based situation.")]),a("br"),a("h3",[t._v("As of now the services provided by swarmlab are:")]),a("ul",[a("li",[a("b",[t._v("Labrooms")]),t._v("(virtual classrooms in the form of model applications to be tweaked at will)")]),a("ul",[a("li",[t._v(" linux → base linux system – designed for use as a base to further develop your app")]),a("li",[t._v(" MPI → Instances of Ubuntu Linux with MPICH — portable implementation of Message Passing Interface (MPI) standard. Designed for MPI program development and deployment.")]),a("li",[t._v(" Node.js")]),a("li",[t._v(" sec → a basic linux-based os with security tools – designed as a template for apps")])])]),a("ul",[a("li",[a("b",[t._v("Storage")]),t._v(" to automatically create a cluster of databases.")])]),a("ul",[a("li",[a("b",[t._v("Proof Of Concept")]),t._v(" (POC) options ")]),a("ul",[a("li",[t._v(" datacollector → using provided services a fully developed application may collect data from a swarm and use it for further analysis")])])]),a("li",[a("b",[t._v("Microservices")])]),a("ul",[a("li",[t._v(" Jupyter ")]),a("li",[t._v(" numpy")]),a("li",[t._v(" scipy")]),a("li",[t._v(" nodejs")]),a("li",[t._v(" nginx")]),a("li",[t._v(" haproxy")]),a("li",[t._v(" gns3")]),a("li",[t._v(" wireshark")]),a("li",[t._v(" snmpsim")]),a("li",[t._v(" xelatexthesis")]),a("li",[t._v(" ansible")]),a("li",[t._v(" etherpad")]),a("li",[t._v(" codeserver (vscode)")]),a("li",[t._v(" redisserver")]),a("li",[t._v(" mongoserver")]),a("li",[t._v(" mongoclient (GUI)")])]),a("h5",[a("i",[t._v("to be continued… ")])]),a("h5",[t._v(" And all the above using just the command line and a Browser of your system! ")])])])}],Ls=a("be6a");a("8bb7"),a("88ef");var Ss={components:{card:k,CalendarView:Ls["b"],CalendarViewHeader:Ls["c"]},mixins:[Ls["a"]],data(){return{showDate:this.thisMonth(1),message:"",startingDayOfWeek:1,disablePast:!1,disableFuture:!1,displayPeriodUom:"month",displayPeriodCount:1,displayWeekNumbers:!0,showTimes:!1,selectionStart:null,selectionEnd:null,newItemTitle:"",newItemStartDate:"",newItemEndDate:"",useDefaultTheme:!0,useHolidayTheme:!1,useTodayIcons:!0,timeFormatOptions:{hour:"numeric",minute:"numeric",hour12:!1,timeZone:"Europe/Athens"},begindate:"",enddate:"",items:[]}},computed:{getevents4month(){},userLocale(){return this.getDefaultBrowserLocale},dayNames(){return this.getFormattedWeekdayNames(this.userLocale,"long",0)},themeClasses(){return{"theme-default":this.useDefaultTheme,"holiday-us-traditional":this.useHolidayTheme,"holiday-us-official":this.useHolidayTheme}}},mounted(){this.newItemStartDate=this.isoYearMonthDay(this.today()),this.newItemEndDate=this.isoYearMonthDay(this.today());const t=new Date;let e=t.getFullYear(),a=(t.getMonth()+1).toString().padStart(2,"0"),s="01";this.begindate=`${e}-${a}-${s}`,this.enddate=`${e}-${a}-31`,this.getevents()},methods:{async getevents(){var t={};t.begin=this.begindate,t.end=this.enddate;var e=await v.dispatch("pipelineLLO/getevents",t);this.items=e.data.result},periodChanged(t){let e=t.periodStart,a=e.getFullYear(),s=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");this.begindate=`${a}-${s}-${i}`;let o=t.periodEnd,n=o.getFullYear(),r=(o.getMonth()+1).toString().padStart(2,"0"),l=o.getDate().toString().padStart(2,"0");this.enddate=`${n}-${r}-${l}`,this.getevents()},thisMonth(t,e,a){const s=new Date;return new Date(s.getFullYear(),s.getMonth(),t,e||0,a||0)},onClickDay(t){this.selectionStart=null,this.selectionEnd=null,this.message="You clicked: "+t.toLocaleDateString()},onClickItem(t){this.message="You clicked: "+t.title,this.$root.$emit("hybrid_labobject_view",t)},setShowDate(t){this.message="Changing calendar view to "+t.toLocaleDateString(),this.showDate=t},setSelection(t){this.selectionEnd=t[1],this.selectionStart=t[0]},finishSelection(t){this.setSelection(t),this.message=`You selected: ${this.selectionStart.toLocaleDateString()} -${this.selectionEnd.toLocaleDateString()}`},onDrop(t,e){this.message=`You dropped ${t.id} on ${e.toLocaleDateString()}`;const a=this.dayDiff(t.startDate,e);t.originalItem.startDate=this.addDays(t.startDate,a),t.originalItem.endDate=this.addDays(t.endDate,a)},clickTestAddItem(){this.items.push({startDate:this.newItemStartDate,endDate:this.newItemEndDate,title:this.newItemTitle,id:"e"+Math.random().toString(36).substr(2,10)}),this.message="You added a calendar item!"}}},Is=Ss,Bs=(a("c5ed"),Object(_["a"])(Is,Rs,$s,!1,null,null,null)),Ns=Bs.exports,Es={components:{card:k,CalendarView:Ns},data(){return{hybridshowlog:1,loading:!1,consoleView:"off",productIndex:1}},mounted(){this.$root.$on("hybrid_labobject_view",t=>{this.hybridshowlog=2})},beforeDestroy(){},created(){}},Ps=Es,Ds=Object(_["a"])(Ps,As,Os,!1,null,null,null),Ts=Ds.exports,Vs=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 order-first "},[a("br"),a("dashboard-view")],1)])])},Fs=[],Gs=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[s("div",{staticClass:"row h-50"},[s("div",{staticClass:"col-sm-6 text-center"},[s("v-wait",{attrs:{for:"stats_stats_imagescontainers"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c"),width:"50",height:"50"}}),t._v(" Build Stats... ")])])],2),s("div",{staticClass:"card h-50 shadow p-3 mb-5 bg-white rounded"},[s("v-chart",{key:t.stats_stats_imagescontainers,staticClass:"chart",staticStyle:{"min-width":"100%"},attrs:{option:t.optionsystem}})],1)],1),s("div",{staticClass:"col-sm-6 text-center"},[s("v-wait",{attrs:{for:"wait_stats_stats_container"}},[s("template",{slot:"waiting"},[s("div",[s("img",{attrs:{src:a("cf1c"),width:"50",height:"50"}}),t._v(" Build Stats... ")])])],2),s("div",{staticClass:"card h-50 shadow p-3 mb-5 bg-white rounded"},[s("v-chart",{key:t.stats_stats_container,staticClass:"chart",staticStyle:{"min-width":"100%"},attrs:{option:t.optiondocker}})],1)],1)])])},zs=[],Ms=a("22b4"),js=a("f95e"),Us=a("49bb"),Ys=a("4cb5"),qs=a("9394"),Hs=a("2da7"),Ks=a("ff32"),Ws=a("4b2a"),Qs=a("5c7f");Object(Ms["a"])([js["a"],Us["a"],qs["a"],Hs["a"],Ks["a"],Ws["a"],Ys["a"]]);var Js={components:{card:k,VChart:Qs["b"]},provide:{[Qs["a"]]:"white"},data(){return{stats_stats_imagescontainers:0,stats_stats_container:0,stats_stats_volume:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,optiondocker:{height:"100%",width:"100%",responsive:!0,maintainAspectRatio:!1,title:{text:"Containers Memory",left:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},series:[{name:"Container Memory",type:"pie",radius:"55%",center:["50%","60%"],data:[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},optionsystem:{title:{text:"Images/Containers"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"value",boundaryGap:[0,.01]},yAxis:{type:"category",data:["Containers","Images"]},series:[{name:"TOTAL",type:"bar",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}},{name:"ACTIVE",type:"bar",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}}},mounted(){window.addEventListener("resize",this.getDimensions)},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token"),(async()=>{this.$wait.start("stats_stats_imagescontainers"),this.$wait.start("wait_stats_stats_container"),this.$wait.start("wait_stats_stats_volume");for(var t=await v.dispatch("pipelineLLO/get_stats_imagescontainers",{token:this.token,action:"images_containers"}),e=t.data.data.length,a=t.data.data,s=0;s<e;s++){if("Images"==a[s].Type)var i=a[s].TotalCount,o=a[s].Active;if("Containers"==a[s].Type)var n=a[s].TotalCount,r=a[s].Active;this.optionsystem.series=[{name:"TOTAL",type:"bar",data:[n,i]},{name:"ACTIVE",type:"bar",data:[r,o]}]}this.$wait.end("stats_stats_imagescontainers");var l=await v.dispatch("pipelineLLO/get_stats_containers",{token:this.token,action:"containers"});if(l.data.data){var c=l.data.data.length,d=l.data.data;this.optiondocker.series[0].data=[];for(s=0;s<c;s++){if(d[s].container)var u=d[s].memory.percent.split("%"),p={value:u[0],name:d[s].container};this.optiondocker.series[0].data.push(p)}}this.$wait.end("wait_stats_stats_container"),this.$wait.end("wait_stats_stats_volume")})()},beforeDestroy(){window.removeEventListener("resize",this.getDimensions)},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{async getDimensions(){this.width=document.documentElement.clientWidth,this.height=document.documentElement.clientHeight,this.refresh()},async refresh(){this.stats_stats_imagescontainers+=1,this.stats_stats_container+=1,this.stats_stats_volume+=1}},actions:{}},Zs=Js,Xs=(a("0e9a"),a("1f3a"),Object(_["a"])(Zs,Gs,zs,!1,null,"34a315fc",null)),ti=Xs.exports,ei={components:{card:k,DashboardView:ti},data(){return{hybridshowlog:1,loading:!1,consoleView:"off",productIndex:1}},mounted(){this.$root.$on("hybrid_labobject_view",t=>{this.hybridshowlog=2})},beforeDestroy(){},created(){}},ai=ei,si=Object(_["a"])(ai,Vs,Fs,!1,null,null,null),ii=si.exports,oi={name:"app",components:{card:k,NetworkTable:Ft,ViewDashboard:Ts,ViewDashboardall:ii,ServicesTable:Jt,ConnectServer:X,ManageServices:ce,ManageStorage:_e,ManageMicroservices:Fe,ManageMymicroservices:Ye,ManageProofofconcept:sa,ManageBuilders:Ra,ManageDeploy:Za,ManageLlo:xs},data(){return{warning:!0,componentKeyreload:1,componentKeyreload1:1,componentKeyreload2:1,componentKeyreload3:1,mycomponentKeyreload3:1,componentKeyreload4:1,componentKeybuilders:1,setStatusAgent:"",issocket:!1,isconnect:!1,activeItem:"",activeItemSub:"",sidemenou:"max",hybridmenou:"dashboard",show:!0,token:"",SwarmabAsciiLabTemplate:""}},mounted(){this.$root.$on("hybrid_server_status",t=>{this.serverstatus()})},beforeDestroy(){this.$root.$off("hybrid_server_status")},created(){},methods:{setWarning(){this.warning=!1},async onAction(t){if("check"==t){if(this.$socket.disconnected)var e="close";else if(this.$socket.connected)e="open";if(this.isconnect);else;var a="Status<br>";a+="Agent is "+e+"<br>",this.$swal({type:"info",html:a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showCancelButton:!0,showLoaderOnConfirm:!1,focusCancel:!0,confirmButtonText:"Yes, Reconnect!"}).then(t=>{this.reconnenting(t)})}},async reconnenting(t){t.value&&(this.componentKeyreload+=1,this.componentKeyreload1+=1,this.componentKeyreload2+=1,this.componentKeyreload3+=1,this.mycomponentKeyreload3+=1,this.componentKeyreload4+=1,this.componentKeybuilders+=1)},async serverstatus(t){var e=v.getters["pipelineLLO/getstatus"];"active"==e.data.swarmlab&&"Online"==e.data.hybrid?this.isconnect=!0:this.isconnect=!1},onActionMenu(t){"max"==t?this.sidemenou="max":"min"==t&&(this.sidemenou="min")},hybrid(t){this.hybridmenou=t,"bootstrap"==t?(this.$root.$emit("hybrid_console_not_view",!0),this.$root.$emit("hybrid_refresh_dockerservices")):"dashboard"==t?(this.$root.$emit("hybrid_console_not_view",!0),console.log("dashboard "+t)):"dashboardall"==t?(this.$root.$emit("hybrid_console_not_view",!0),console.log("dashboardall "+t)):"connect-server"==t?(this.$root.$emit("hybrid_console_not_view",!0),this.$root.$emit("hybrid_connect_server")):"llo"==t?(this.$root.$emit("hybrid_console_not_view",!0),console.log("llo "+t)):"services"==t?(this.$root.$emit("hybrid_console_not_view",!0),this.$root.$emit("hybrid_refresh_availableservices")):"manage_service"==t||"storage"==t?this.$root.$emit("hybrid_console_not_view",!0):"microservice"==t?this.$root.$emit("hybrid_console_not_view",!1):"proofofconcept"==t&&this.$root.$emit("hybrid_console_not_view",!0)},isActive:function(t){return this.activeItem===t},isActiveSub:function(t){return this.activeItemSub===t},setActive:function(t,e){this.activeItem=t,this.activeItemSub=e},showdiscl(){var t='<code class="precode text-info" >Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:';t+="<br>",t+="<br>",t+="1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.",t+="<br>",t+="<br>",t+="2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.",t+="<br>",t+="<br>",t+="3. Neither the name of Swarmlab.io nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.",t+="<br>",t+="<br>",t+="THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</code>";let e='<div class="text-left" style="height: 550px; overflow-y: scroll;"><b><p>'+t+"</p></b></div>";this.$swal({type:"Info",title:"Legal Disclaimer and Notices",icon:"info",html:e,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showCancelButton:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0,confirmButtonText:"Ok!"})}},computed:{socketStatus(){return v.getters["pipelineLLO/getsocketStatus"]}},watch:{socketStatus(t){this.issocket=t}}},ni=oi,ri=(a("034f"),Object(_["a"])(ni,i,o,!1,null,null,null)),li=ri.exports,ci=a("5886"),di=(a("4413"),a("f2d6")),ui=a.n(di),pi=(a("c059"),a("f87c")),mi=a("8e27");s["default"].use(ci["a"]),s["default"].use(ui.a);var hi=d.url_80;const bi=Object(mi["io"])(hi,{autoConnect:!1,reconnection:!0,reconnectionDelay:5e3,reconnectionDelayMax:5e3,maxReconnectionAttempts:1/0,pingInterval:25e3,pingTimeout:9e4,timeout:7e4,transports:["websocket","polling"],secure:!0,rejectUnauthorized:!1});s["default"].use(pi["a"],bi),s["default"].use(r["b"]);s["default"].component("ValidationProvider",B["a"]),s["default"].config.productionTip=!1,new s["default"]({el:"#app",store:v,wait:new ui.a,render:t=>t(li)})},"5dec":function(t,e,a){},6413:function(t,e,a){},"6d9e":function(t,e,a){},7296:function(t,e,a){"use strict";a("0d35")},"72c9":function(t,e,a){},7649:function(t,e,a){t.exports=a.p+"img/penguinfledgling.7cf62d54.png"},"778e":function(t,e,a){},"798c":function(t,e,a){},"83ff":function(t,e,a){"use strict";a("d766")},"85ec":function(t,e,a){},9168:function(t,e,a){},"9e07":function(t,e,a){},"9f0c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAySSURBVHhe7Z0/bBtHHoXdubzyypQpU6Z0mdJIZMNdXAYIQqk5wBYNnDuXKl2qdKk/h8BNrBUQi7rO1wlXHFy6dOk2N7/lW/mJeo+7I5Ia0p4P+BAEeTP7OEMuuasAe6dSqVQqlUqlUqlUKpVKpVKpVCqVSqVSqVQqlUpl1Ryenv7t8M3k/uHJ5Hl43Jy/OGomjXE/Mkcnb58cnr691zTNXUyzUuJYh2/e7kz7TV6KXp173es4ejN59Pvp6d8xRaUjFiUWJxbr6GTyLv3zr4U8OXt/1JwdtBt0+u9vcJgbM31Dnj1Oc+8vqd9F+ud+zLmMfhtJLOrRm7NfsBh6oZblyeQ8jpXz6fu86WcHcs5lGm/YdAb7Ks4O/zqdfNueMk8mH+VirN7XcfpGnWvEJzJl9mfG3JrHzdmr4z/+/AF1vhziO739JIoXXciG3wiHp2ff3cqnfahxZkxnLdTbXPCJen3tBa6P6YfaGm38rOk3x/Hp2++xnJtD/Bqf/jqffJIvrJrrXvwuwfKuN/Eddis/7r42TyYf4moJy7wePNp58s2D0dOdB9u7+w+2x00oy+caLzZ+sNE1vhTX4u1pvL38E3OtwoL9unXeGo1f/bS9++Thzvg7bMftMd308UUyCl1Rle41fVXEL+BFb5Z0N5HSnHHNvrwrjTXqp9b8wWj8fmu0+/z+zvPVfk389Nvu/TiYLAFVaW/6ZKRFXdUdvMvFlsce4vr1U2veubU9/pBc/tXDzz//8+6D0e5LddBZVenrnh3EpRemXzn51/fr20+tufBgaWeDmCh9x5+Lg0hVaTZuBmHqWwcLLXt1rns/tebGi/iNhqlvRvvJz9j8UJVmMXUxVCcWsWKoTqxac2v6ul7oTIBf93pyoyrNYupiqE4sYsVQnVi15j02mDqPtPmPxGS9qtIspi+G6sQiVgzViVVr3mu6asP0w4hTf/yilJPNOtr92J4p0kG2dp7dU6VZHMLyn//+769FxDQW1YlFzKKOmSOmsahObKxxd+9l6B5tbe9+evjrP4ZfvuI6X042YzM7sSrNImZRi5YjprGoTixiFnXMHDGNRXViEWvBD/RBX9Nb28/2MKyfvmv91tH4BeJXUKVZxCxq0XLENBbViUXMoo6ZI6axqE4sYldo78+oPSLjLBBndgzxpMm+VRPMaH9YqNIsYha1aDliGovqxCJmUcfMEdNYVCcWsWsMuk8zetr//xrELUU5uDN958/7PlGlWcQsatFyxDQW1YlFzKKOmSOmsahOLGLXmN6s6ztz7+4j7knBg+sDP9v3XaJKs4hZ1KLliGksqhOLmEUdM0dMY1GdWMQk8cchtWed6cP9DlFPepfMvfHz8LfxY0QlqjSLmEUtWo6YxqI6sYhZ1DFzxDQW1YlFTBKneLVnnXHVgKin7zTS9+dHVZpFzKIWLUdMY1GdWMQs6pg5YhqL6sQiJpleFeh960TUowaxiFlUaRaxYqhOLGLFUJ1YxCxqz1jEPGoQi5hFlWYRK4bqxCJWDNWJRcyi9oxFzKMGsYhZVGkWsWKoTixixVCdWMQsas9YxDxqEIuYRZVmESuG6sQiVgzViUXMovaMRcyjBrGIWVRpFrFiqE4sYsVQnVjELGrPWMQ8ahCLmEWVZhErhurEIlYM1YlFzKL2jEXMowaxiFlUaRaxYqhOLGLFUJ1YxCxqz1jEPGoQi5hFlWYRK4bqxCJWDNWJRcyi9oxFzKMGsYhZVGkWMYu6eZIjprGoTixiFnXMHDGNRXViEbOoPWMR86hBLGIWVZpFzKIWLUdMY1GdWMQs6pg5YhqL6sQiZlF7xiLmUYNYxCyqNIuYRS1ajpjGojqxiFnUMXPENBbViUXMovaMRcyjBrGIWVRpFjGLWrQcMY1FdWIRs6hj5ohpLKoTi5hF7RmLmEcNYhGzqNIsYha1aDliGovqxCJmUcfMEdNYVCcWMYvaMxYxjxrEImZRpVnELGrRcsQ0FtWJRcyijpkjprGoTixiFrVnLGIeNYhFzKJKs4hZ1KLliGksqhOLmEUdM0dMY1GdWMQsas9YxDxqEIuYRZVmEbOoRcsR01hUJxYxizpmjpjGojqxiFnUnrGIedQgFjGLKs0iVgzViUWsGKoTi5hF7RmLmEcNYhGzqNIsYsVQnVjEiqE6sYhZ1J6xiHnUIBYxiyrNIlYM1YlFrBiqE4uYRe0Zi5hHDWIRs6jSLGLFUJ1YxIqhOrGIWdSesYh51CAWMYsqzSJWDNWJRawYqhOLmEXtGYuYRw1iEbOo0ixixVCdWMSKoTqxiFnUnrGIedQgFjGLKs0iVgzViUWsGKoTi5hF7RmLmEcNYhGzqNIsYsVQnVjEiqE6sYhZ1J6xiHnUIBYxiyrNImZRN09yxDQW1YlFzKKOmSOmsahOLGIWtWcsYh41iEXMokqziFnUouWIaSyqE4uYRR0zR0xjUZ1YxCxqz1jEPGoQi5hFlWYRs6hFyxHTWFQnFjGLOmaOmMaiOrGIWdSesYh51CAWMYsqzSJmUYuWI6axqE4sYhZ1zBwxjUV1YhGzqD1jEfOoQSxiFlWaRcyiFi1HTGNRnVjELOqYOWIai+rEImZRe8Yi5lGDWMQsqjSLmEUtWo6YxqI6sYhZ1DFzxDQW1YlFzKL2jEXMowaxiFlUaRYxi1q0HDGNRXViEbOoY+aIaSyqE4uYRe0Zi5hHDWIRs6jSLGIWtWg5YhqL6sQiZlHHzBHTWFQnFjGL2jMWMY8axCJmUaVZxIqhOrGIFUN1YhGzqD1jEfOoQSxiFlWaRawYqhOLWDFUJxYxi9ozFjGPGsQiZlGlWcSKoTqxiBVDdWIRs6g9YxHzqEEsYhZVmkWsGKoTi1gxVCcWMYvaMxYxjxrEImZRpVnEiqE6sYgVQ3ViEbOoPWMR86hBLGIWVZpFrBiqE4tYMVQnFjGL2jMWMY8axCJmUaVZxIqhOrGIFUN1YhGzqD1jEfOoQSxiFlWaRawYqhOLWDFUJxYxi9ozFjGPGsQiZlGlWcTmEs/t6Z69F8/QjWfvhe2j2+KBTvj36SPiu+f0DXvIk+rEIjaXde6n9oxFzKMGsYhZVGkWsUviQUmfn8+/hIcrts/jS5uQFl89AEqOIRG7ZN37zaL2jEXMowaxiFlUaXbpC9rnyeTD9KGPZ7/EgssMue79sMwWtWcsYh41iEXMokpXlyeW2aL2jEXMowaxiFlU6eryxDJb1J6xiHnUIBYxiypdXZ5YZovaMxYxjxrEImZRpavLE8tsUXvGIuZRg1jELKp0dXlimS1qz1jEPH3Pout7Hq0qfWNPzi74uvr4jz9/aK+pu+vsZMrtJZv0a/rTlbGrt0nucZfo13bs/j1+3Z9M3s2MW0gss2T6qF+9b52IeuK5MmpgZzyiDFHJQpdO08Xai8eqx7P2MeVg4hKu3YTm/MVSF376mvbiUfLq2n0I8cZFr/Nr8w81vckxneTH0fh7tWeXjnY/IupJZ4DXcnCneV5gx/RumCivTAt73ExexsL+fno6/MmWA4k3RFxfp2PFp1V3cKY3UHyKb7rh82ia5m68ydNx9qZnOXF87dznAA944OcFop54KpgYyF7MewBhu+jzT8eNuwu2Stpe7YLHnTjZq3N/6G3bZUFv1NczXa4YZxEMkfR+eLfHB4h6+p481dpzFsAdLfrUxa3Ps8c3Oa0vm+gQb8D0Rvhw2W/6pthbxVkol+gXZ0T8fph+kNLXRny1ISKJp7nJvSL7nvjWMn0AYTwQWk/SGd83GLKxxGKvw6YvSvwwH7Jngx8gPeQxpPEs2nhQIYZUCtF+8gdsfrL/9N8R75TYYDGJcPc8SvQ9T7CyPGKtY80HfOdfmr0/vc8Q3lDx8ixqzOY74JnBs0xvKsx/jOwmipdnUWM22tH4fTxRFC8vj/hx0XdncNPES7OoMZtqfI0v/NUcEwz8kbER4mVZ1JhNtP0Nly7p8bIWoz0T9Nwi3hTn/S1jyL30jTCd9pf+ozwWZ8Bdwg1w9xFe0jW2dp7d02M2x63R+NWNv/OH0N50SNeUswfeGNOnw93KTv+9uZbfHJtbvTkX9wpw+/EgFnWmzLp7EZ92vJT2r2g519TrYPw4bzuPnu7M+1r76ojT36quXJb+vVpZDQP+LJptfLdi+sq6M/3BuryzQHs9PfQPKZX1IP7PpeF/z5hv/aPXhhI3QhZ9E8TfRDBdZRNZ5E1QP/lfCNM/b2fdxDqov/i/QKZ/3GrfCM2VH4nTv3U08T/C1I2vVCqVSqVSqVQqlUqlUqlUKpVKpVKpVCqVSqWy2dy583/z2anbdD5tZgAAAABJRU5ErkJggg=="},a2af:function(t,e,a){t.exports=a.p+"img/warning.31d7a72d.png"},a6d9:function(t,e,a){},aa1b:function(t,e,a){"use strict";a("798c")},b68d:function(t,e,a){},b721:function(t,e,a){},b73e:function(t,e,a){t.exports=a.p+"img/academy.90116857.png"},b876:function(t,e,a){"use strict";a("c41e")},c000:function(t,e,a){},c059:function(t,e,a){},c385:function(t,e,a){},c40c:function(t,e,a){},c41e:function(t,e,a){},c5ed:function(t,e,a){"use strict";a("08ea")},c972:function(t,e,a){},cc7b:function(t,e,a){"use strict";a("4c32")},cd6e:function(t,e,a){"use strict";a("a6d9")},cf1c:function(t,e,a){t.exports=a.p+"img/loading.f4404720.gif"},d013:function(t,e,a){"use strict";a("0a08")},d766:function(t,e,a){},d929:function(t,e,a){},e454:function(t,e,a){},e8d2:function(t,e,a){"use strict";a("9e07")},ea90:function(t,e,a){"use strict";a("72c9")},ec01:function(t,e,a){},f101:function(t,e,a){"use strict";a("d929")},f1fa:function(t,e,a){"use strict";a("c40c")},f467:function(t,e,a){t.exports=a.p+"img/hybrid-1.852eef88.png"},f830:function(t,e,a){"use strict";a("6413")}});
|
|
//# sourceMappingURL=app.71eb0b0b.js.map
|