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
135 KiB
2 lines
135 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")},"0b43":function(t,e,a){"use strict";a("778e")},"0d35":function(t,e,a){},"0ed5":function(t,e,a){t.exports=a.p+"img/docker.7b56657d.png"},"2bb5":function(t,e,a){},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="},4788:function(t,e,a){"use strict";a("2bb5")},"47a8":function(t,e,a){"use strict";a("ec01")},"4cf0":function(t,e,a){"use strict";a("5dec")},"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,a=t._self._c||e;return a("div",{staticClass:"container-fluid",attrs:{id:"app"}},[a("nav",{staticClass:"navbar navbar-light navbar-expand-md bg-light justify-content-md-center justify-content-start"},[a("b-navbar-brand",{staticClass:"logo simple-text ti-swarmlab text-secondary"},[t._v(" Swarmlab.io ")]),a("div",{staticClass:"navbar-collapse collapse justify-content-between align-items-center w-100",attrs:{id:"collapsingNavbar2"}},[a("ul",{staticClass:"navbar-nav mx-auto text-md-center text-left"},[a("b-nav-item",{attrs:{href:"https://git.swarmlab.io:3000",target:"_swarmlabgit"}},[t._v(" Swarmlab_git ")]),t._m(0),t._m(1),t._m(2),a("b-nav-item",{attrs:{href:"https://api-client.swarmlab.io:8088/?token="+t.token,target:"_swarmlab"}},[t._v(" Swarmlab_Cloud ")])],1),a("ul",{staticClass:"nav navbar-nav flex-row justify-content-md-center justify-content-start flex-nowrap"},[a("b-nav-item",{on:{click:function(e){return t.onAction("check")}}},[t._v("Connection Status:")]),a("b-nav-item",[t._v("Agent")]),"close"===t.issocket?a("li",{staticClass:"nav-item"},[a("a",{staticClass:"ti-link nav-link text-danger",attrs:{href:"#",title:"You are disconnected from hybrid_agent"}})]):a("li",{staticClass:"nav-item"},[a("a",{staticClass:"ti-link nav-link text-success",attrs:{href:"#",title:"You are connected hybrid_agent"},on:{click:function(e){return t.onAction("connect")}}})]),a("b-nav-item",[t._v("Server")]),!0!==t.isconnect?a("li",{staticClass:"nav-item"},[a("a",{staticClass:"ti-link nav-link text-danger",attrs:{href:"#",title:"You are disconnected from hybrid_server"}})]):a("li",{staticClass:"nav-item"},[a("a",{staticClass:"ti-link nav-link text-success",attrs:{href:"#",title:"You are connected hybrid_server"}})]),a("b-nav-item")],1)])],1),a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("div",{staticClass:"d-flex",attrs:{id:"wrapper"}},["max"==t.sidemenou?a("div",{staticClass:" bg-light border-right",staticStyle:{width:"15rem"},attrs:{id:"sidebar-wrapper"}},[a("div",{staticClass:"list-group list-group-flush"},[a("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","")}}},[t._v(" Dashboard")]),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-dashboard",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-view-grid 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")}}},[t._v(" Dashoard")])],1),a("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-profile",modifiers:{"hybrid-profile":!0}}],staticClass:"ti-user list-group-item list-group-item-action",class:{active:t.isActive("profile")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Local"},on:{click:[function(e){return t.setActive("profile","")},function(e){return t.hybrid("connect-server")}]}},[t._v(" Profile")]),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-profile",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-pencil-alt m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("profile_settings")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Settings"},on:{click:[function(e){return t.setActive("settings","profile_settings")},function(e){return t.hybrid("connect-server")}]}},[t._v(" Settings")])],1),a("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-hybrid",modifiers:{"hybrid-hybrid":!0}}],staticClass:"ti-loop 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(" Hybrid")]),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-hybrid",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-target m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_instances")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Hybrid"},on:{click:[function(e){return t.setActive("hybrid","hybrid_instances")},function(e){return t.hybrid("manage_service")}]}},[t._v(" Join")]),a("b-list-group-item",{staticClass:"ti-cloud-up m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_deploy")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Deploy"},on:{click:[function(e){return t.setActive("hybrid","hybrid_deploy")},function(e){return t.hybrid("manage_deploy")}]}},[t._v(" Deploy")])],1),a("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(" Container")]),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-container",accordion:"m-sidebar",role:"tabpanel"}},[a("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),a("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","")},function(e){return t.hybrid("services")}]}},[t._v(" Private")]),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-private",accordion:"m-sidebar",role:"tabpanel"}},[a("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(" Bootstrap")])],1),a("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"},on:{click:function(e){return t.onActionMenu("min")}}})],1)]):t._e(),"min"==t.sidemenou?a("div",{staticClass:" bg-light border-right",attrs:{id:"sidebar-wrapper"}},[a("div",{staticClass:"list-group list-group-flush"},[a("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",title:"Dashboard"},on:{click:function(e){return t.setActive("dashboard","")}}}),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-dashboard",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-view-grid 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:"Dashboard"},on:{click:function(e){return t.setActive("dashboard","dashboard_dashboard")}}})],1),a("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-profile",modifiers:{"hybrid-profile":!0}}],staticClass:"ti-user list-group-item list-group-item-action",class:{active:t.isActive("profile")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Local",title:"Profile"},on:{click:[function(e){return t.setActive("profile","")},function(e){return t.hybrid("connect-server")}]}}),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-profile",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-pencil-alt m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("profile_settings")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Settings",title:"Profile"},on:{click:[function(e){return t.setActive("settings","profile_settings")},function(e){return t.hybrid("connect-server")}]}})],1),a("b-list-group-item",{directives:[{name:"b-toggle",rawName:"v-b-toggle.hybrid-hybrid",modifiers:{"hybrid-hybrid":!0}}],staticClass:"ti-loop list-group-item list-group-item-action",class:{active:t.isActive("hybrid")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Local",title:"Hybrid"},on:{click:[function(e){return t.setActive("hybrid","")},function(e){return t.hybrid("manage_service")}]}}),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-hybrid",accordion:"m-sidebar",role:"tabpanel"}},[a("b-list-group-item",{staticClass:"ti-target m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_instances")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Hybrid",title:"Zones"},on:{click:[function(e){return t.setActive("hybrid","hybrid_instances")},function(e){return t.hybrid("manage_service")}]}}),a("b-list-group-item",{staticClass:"ti-cloud-up m-subm-listgroup list-group-item list-group-item-action",class:{active:t.isActiveSub("hybrid_deploy")},staticStyle:{cursor:"pointer"},attrs:{variant:"light",name:"Deploy"},on:{click:[function(e){return t.setActive("hybrid","hybrid_deploy")},function(e){return t.hybrid("manage_deploy")}]}})],1),a("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",title:"Container"},on:{click:[function(e){return t.setActive("container","")},function(e){return t.hybrid("bootstrap")}]}}),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-container",accordion:"m-sidebar",role:"tabpanel"}},[a("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),a("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",title:"Private"},on:{click:[function(e){return t.setActive("private","")},function(e){return t.hybrid("services")}]}}),a("b-collapse",{staticClass:"m-subm",attrs:{id:"hybrid-private",accordion:"m-sidebar",role:"tabpanel"}},[a("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:"Bootstrap"},on:{click:[function(e){return t.setActive("private","hybrid_private")},function(e){return t.hybrid("services")}]}})],1),a("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"},on:{click:function(e){return t.onActionMenu("max")}}})],1)]):t._e(),a("div",{staticClass:"w-100 p-3",staticStyle:{"background-color":"#eee"}},[a("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?a("manage-services",{staticStyle:{"background-color":"#f8f9fa"}}):t._e(),a("network-table",{directives:[{name:"show",rawName:"v-show",value:"bootstrap"==t.hybridmenou,expression:"hybridmenou == 'bootstrap'"}],staticStyle:{"background-color":"#f8f9fa"}}),a("services-table",{directives:[{name:"show",rawName:"v-show",value:"services"==t.hybridmenou,expression:"hybridmenou == 'services'"}],staticStyle:{"background-color":"#f8f9fa"}}),"manage_deploy"==t.hybridmenou?a("manage-deploy",{staticStyle:{"background-color":"#f8f9fa"}}):t._e()],1)])])],1)],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(" - ")])])}],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:{},config:{}},getters:{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_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){t.statusswarmlab=e}},actions:{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){console.log("from "+JSON.stringify(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",r=await c.a.post(n,i,o);console.log(JSON.stringify(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 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),console.log(JSON.stringify(n))),console.log(JSON.stringify(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),console.log(JSON.stringify(n))),console.log(JSON.stringify(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 getmountinfo({commit:t,rootGetters:e},a){console.log("value "+JSON.stringify(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){console.log("value "+JSON.stringify(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 getserviceshybridstatus({commit:t,rootGetters:e},a){console.log("value "+JSON.stringify(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){console.log("value "+JSON.stringify(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 create_config({commit:t,rootGetters:e},a){console.log("value "+JSON.stringify(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 get_config({commit:t,rootGetters:e},a){console.log("value "+JSON.stringify(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"];console.log("token "+s);var 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){console.error(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),console.log(JSON.stringify(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_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),console.log(JSON.stringify(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 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),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_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),console.log(JSON.stringify(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 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))),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 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),console.log(JSON.stringify(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 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),console.log(JSON.stringify(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"}}}},p=a("ecee"),h=a("c074"),m=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(h["d"],h["e"],h["c"],h["b"],h["a"],m["b"],m["c"],m["d"],h["f"],m["a"]),p["b"].watch();var f=new n["a"].Store({modules:{pipelineLLO:u},state:{},getters:{},mutations:{}}),g=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")],1),a("div",{staticClass:"col-5 order-last"},[a("br"),a("zones-view")],1)])])},v=[],y=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.vuetablekey,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},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)},w=[],A=a("af52"),k=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)},C=[],_={name:"card",props:{title:String,subTitle:String}},x=_,O=a("2877"),S=Object(O["a"])(x,k,C,!1,null,null,null),N=S.exports,$=a("127e"),I=a("3568"),L=a("b3c5"),R=a("7bb1"),P=a("4c93");Object(R["b"])("alpha_num",P["a"]),Object(R["b"])("required",{...P["c"],message:"This field is required"});var D={components:{card:N,Vuetable:A["Vuetable"],VuetablePagination:I["a"],VuetablePaginationInfo:$["a"],VuetablePaginationDropdown:A["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,vuetablekey: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:L["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"),console.log("token "+this.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){var i=await f.dispatch("pipelineLLO/swarmlabhybridjoin",{token:this.token,action:"join"});if(console.log(JSON.stringify(i)),"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,console.log(JSON.stringify(e)),console.log(JSON.stringify(a));else if("update"==t){if(await this.$refs.provider.validate().then(t=>{t.valid?(this.valid=!0,console.log("valid "+JSON.stringify(t))):(this.valid=!1,console.log("no valid"+JSON.stringify(t)))}),this.valid){var o=await f.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,console.log("valid "+JSON.stringify(t))):(this.valid=!1,console.log("no valid"+JSON.stringify(t)))}),this.valid){this.nodeadmin=!1,this.nodeadminupdate=!1;o=await f.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()),console.log(JSON.stringify(o))}}else"cancel"==t&&(this.nodeadmin=!1,this.nodeadminupdate=!1)},async rmAndClose(t){await f.dispatch("pipelineLLO/getswarmlabhybridinfo",{token:this.token,nodezones:this.rowdata.zones});if(t.value){await f.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()),console.log(JSON.stringify(t)),console.log("rowdara "+JSON.stringify(this.rowdata))}},async addAndClose(t){},refreshVuetable(){this.$nextTick(()=>{this.vuetablekey+=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}},actions:{}},B=D,F=(a("55b7"),Object(O["a"])(B,y,w,!1,null,null,null)),T=F.exports,G=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-info btn btn-outline-success",attrs:{round:"",type:"button",title:"HowTo"},on:{click:function(e){return t.onAction("register")}}}),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:"col-5"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[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("div",{staticClass:"input-group-prepend"},[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._v(" "),s("div",{staticClass:"col-3"},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("div",{staticClass:"input-group-prepend"},[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 ")])])])])])])],1)},V=[],E={components:{card:N},props:{},data(){return{isconnect:!1,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=>{console.log("from mytable"+JSON.stringify(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"),console.log("token "+this.token)},beforeDestroy(){this.$root.$off("hybrid_connect_server_view"),this.$root.$off("hybrid_server_status")},computed:{},methods:{async serverstatus(t){var e=f.getters["pipelineLLO/getstatus"];console.log("status log "+JSON.stringify(e)),"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 f.dispatch("pipelineLLO/swarmlabhybridconfig",{token:this.token});console.log("settings "+JSON.stringify(e)),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),console.log("swarm "+JSON.stringify(e.data.data.workerkey)),console.log("start "+JSON.stringify("load")),this.onAction("save")}else if("connect"==t){console.log("start "+JSON.stringify("connect"));e=await f.dispatch("pipelineLLO/get_config",{token:this.token});console.log("pwd "+JSON.stringify(e)),this.isconnect=!0;var a=e.data.data;if(e.data.error_msg="ok"){var s="sudo /bin/bash ";s+=a.trim(),s+="/hybrid/connect/join.sh"}else s="no exec file";var i="<h5>Swarmlab Connect</h5><br>";this.$swal({type:"info",html:i+s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}else if("save"==t){e=await f.dispatch("pipelineLLO/create_config",{token:this.token,value:this.CONFIG});console.log("start "+JSON.stringify(e)),console.log("start "+JSON.stringify("createkey"))}else if("disconnect"==t){console.log("start "+JSON.stringify("disconnect"));e=await f.dispatch("pipelineLLO/get_config",{token:this.token});console.log("pwd "+JSON.stringify(e));a=e.data.data;if(e.data.error_msg="ok"){s="sudo /bin/bash ";s+=a.trim(),s+="/hybrid/connect/leave.sh"}else s="no exec file";i="<h5>Swarmlab Disconnect</h5><br>";this.$swal({type:"info",html:i+s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}else if("register"==t){console.log("start "+JSON.stringify("register"));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:{}},J=E,z=(a("cd6e"),Object(O["a"])(J,G,V,!1,null,null,null)),j=z.exports,M={components:{ZonesView:T,card:N,MyconnectServer:j},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},q=M,H=Object(O["a"])(q,g,v,!1,null,null,null),U=H.exports,Y=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"),a("adhoc-view")],1)])])},K=[],Z=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:"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",disabled:""}})]),s("div",{staticClass:"input-group-prepend"}),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")]):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")]):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-secondary"},[t._v(" "+t._s(t.hybridshowdata.ID)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" Image ")]),s("div",{staticClass:"col-4 text-secondary"},[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-secondary"},[t._v(" "+t._s(t.hybridshowdata.Names)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" RunningFor ")]),s("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.RunningFor)+" ")])]),t._v(" "),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.Networks)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" CreatedAt ")]),s("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.CreatedAt)+" ")])]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-2 text-info"},[t._v(" Status ")]),s("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Status)+" ")]),s("div",{staticClass:"col-2 text-info"},[t._v(" Ports ")]),s("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Ports)+" ")])])])],1)},Q=[];Object(R["b"])("alpha_num",P["a"]),Object(R["b"])("required",{...P["c"],message:"This field is required"});var X={components:{card:N},props:{},data(){return{STATUS:{},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:"",swarmlabname:"swarmlab-sec",swarmlabname_port:"",swarmlabname_size:3,swarmlabname_git:"",hybridshowdata:{},issocket:"close",setFilter:{},searchFor:{},resetFilter:{}}},beforeMount(){this.socketopen(),this.socketauthenticate(),console.log("send")},mounted(){this.$root.$on("hybrid_show_info",t=>{this.$nextTick((function(){this.hybridshowdata=t,console.log(JSON.stringify(this.hybridshowdata))}))}),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),console.log("RUN exec "+JSON.stringify(this.swarmlabname)),this.onAction("start")}),this.$root.$on("hybrid_install_instance",t=>{this.swarmlabname=t.swarmlabname,this.swarmlabname_git=t.git,this.onAction("install")}),this.$root.$on("hybrid_connect_server",t=>{this.$socket.client.emit("get-serverconfig")}),this.$root.$on("hybrid_stop_instance",t=>{this.swarmlabname=t,console.log("RUN exec "+JSON.stringify(this.swarmlabname)),this.onAction("stop")})},created(){var t=window.location.href,e=new URL(t);this.token=e.searchParams.get("token"),console.log("token "+this.token);f.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_stop_instance"),this.$root.$off("hybrid_connect_server"),this.$root.$off("hybrid_install_instance")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{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),console.log("startobj "+JSON.stringify(e))}else if("container-connect"==t){var a=await f.dispatch("pipelineLLO/getmountinfo",{instance:this.hybridshowdata.Names}),s="/bin/sh",i=!1,o=new RegExp("^(hybrid-|HYBRID-)");if(o.test(this.hybridshowdata.Names)){i=!0,s="/bin/bash";var n="docker"}console.log("log "+JSON.stringify(a));var r="<h5>You can connect to the same contained process multiple times simultaneously, from different sessions on the Docker host.<br> \n <br>\n <b>Open a terminal and Run:</b>\n <br>\n <br>\n";r+=i?"docker exec -it -u"+n+" "+this.hybridshowdata.Names+" "+s:"docker exec -it "+this.hybridshowdata.Names+" "+s,r+="<br>",r+="<br>",r+=" Directory Maps",r+=" <table>",r+="<tr><td><b>Local</b></td><td><i>Container</i></td></tr>";for(var l=a.data.test[0],c=0;c<l.length;c++)console.log("test1 "+JSON.stringify(l[c])),"bind"==l[c].Type&&(r+="<tr><td><b>"+l[c].Source+" </b></td><td><i>"+l[c].Destination+" </i></td></tr>");r+=" </table>",r+="</h5><br>",this.$swal({type:"Info",title:"Info!",icon:"info",html:r,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"container-stop"==t?(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 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(){console.log("socket connected socketdatasend"),this.issocket="open";f.dispatch("pipelineLLO/setsocketStatus",{status:"open"})},error(t){console.log("socket error "+JSON.stringify(t)),this.issocket="close";f.dispatch("pipelineLLO/setsocketStatus",{status:"close"})},connect_error(t){console.log("socket connect_error "+JSON.stringify(t)),this.issocket="close";f.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketopen(),this.socketreconnect()},disconnect(t){console.log("socket disconnect "+JSON.stringify(t)),this.issocket="close";f.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketreconnect()},connect_timeout(t){console.log("socket timeout "+JSON.stringify(t)),this.issocket="close";f.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketreconnect()},reconnect(t){console.log("socket reconnect attemptNumber "+JSON.stringify(t)),this.socketreconnect()},reconnect_attempt(t){console.log("socket reconnect_attempt "+JSON.stringify(t)),this.socketreconnect()},reconnecting(t){console.log("socket reconnecting "+JSON.stringify(t)),this.socketreconnect()},reconnect_error(t){console.log("socket reconnect_error "+JSON.stringify(t)),this.issocket="close";f.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketreconnect()},unauthorized(t){console.log("socket unauthorized "+JSON.stringify(t)),this.issocket="close";f.dispatch("pipelineLLO/setsocketStatus",{status:"close"})},socket_id_emit(t){console.log("socket id from server "+JSON.stringify(t)),this.issocket="open";f.dispatch("pipelineLLO/setsocketStatus",{status:"open"})},async logdata(t){console.log(" socket from logdata "+JSON.stringify(t));f.dispatch("pipelineLLO/addlog",{log:t});var e=f.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)f.dispatch("pipelineLLO/taillog",{path:i})},async message(t){console.log(" socket message "+JSON.stringify(t))},async message_config(t){t.data=JSON.parse(t.data),"ok"==t.file?(console.log("server-value-file-ok "+JSON.stringify(t.data.status)),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=""),console.log("server-config "+JSON.stringify(this.CONFIG)),f.dispatch("pipelineLLO/addconfig",this.CONFIG),this.$root.$emit("hybrid_connect_server_view",this.CONFIG)},async message_out(t){console.log(" socket out "+JSON.stringify(t)),this.$root.$emit("hybrid_log_in",t),this.$root.$emit("SERVER_hybrid_table_start"),this.hybridshowdata={}},async message_err(t){console.log(" socket err "+JSON.stringify(t)),this.$root.$emit("hybrid_log_in",t)},async message_close(t){console.log(" socket close "+JSON.stringify(t)),this.$root.$emit("hybrid_log_in",t),this.$root.$emit("hybrid_refresh_table"),this.$root.$emit("SERVER_hybrid_table_stop")},async message_hybrid_status(t){var e={};e.status=t;f.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,f.dispatch("pipelineLLO/addstatusswarmlab",this.STATUS)}},actions:{}},W=X,tt=(a("4cf0"),Object(O["a"])(W,Z,Q,!1,null,null,null)),et=tt.exports,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("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)},st=[],it=a("8f94"),ot=(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("697e"),a("aedd"),a("164b"),a("4895"),a("cbc8"),a("8d70"),a("9f09"),a("a2c1"),a("56b3"),a("d7d5"),{components:{card:N,codemirror:it["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:{socketconnect(){this.$root.$emit("SERVER_socket_connect")},clear(){this.tryConsole=!1,this.code=""},async getdata(){var t=this.getinfo;await f.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 f.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=>{this.code+=t.data,this.code+="\n",this.$refs.myCm.codemirror.setCursor(this.$refs.myCm.codemirror.lineCount(),0);var e=new RegExp("max depth exceeded");e.test(t.data)?(this.extenderror=!0,console.log("find")):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")}))})},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")},created(){this.token=new URL(location.href).searchParams.get("token"),this.swarmlabname=new URL(location.href).searchParams.get("pipelinename")}}),nt=ot,rt=(a("0b43"),Object(O["a"])(nt,at,st,!1,null,null,null)),lt=rt.exports,ct=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("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")])])]),s("vuetable",{key:t.vuetablekey,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},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)},dt=[],ut={components:{card:N,Vuetable:A["Vuetable"],VuetablePagination:I["a"],VuetablePaginationInfo:$["a"],VuetablePaginationDropdown:A["VuetablePaginationDropdown"]},props:{},data(){return{actionrowindex:"",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,vuetablekey:0,fielddata:{},fields:[{name:"Names",title:'<span class="orange"></span>Name',sortField:"Names",visible:!0,dataClass:"text-left text-wrap text-break break-word",width:"50%"},{name:"Image",title:'<span class="orange"></span>Image',sortField:"Image",visible:!0,dataClass:"left aligned w-25",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:"_id",title:'<span class="orange"></span>mongo',visible:!1},{name:"Status",title:'<span class="orange"></span>Status',sortField:"Status",titleClass:"center aligned",visible:!0,width:"10%"},{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.url_80+"/dockerservices",css:L["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_dockerservices",()=>{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"),console.log("token "+this.token)},beforeDestroy(){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!"})},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,this.$root.$emit("hybrid_show_info",e),console.log("index "+this.actionrowindex),"view-item"==t||"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.vuetablekey+=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}},actions:{}},pt=ut,ht=(a("0390"),Object(O["a"])(pt,ct,dt,!1,null,null,null)),mt=ht.exports,bt={components:{ViewNetwork:et,AdhocView:lt,card:N,DockerServices:mt},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},ft=bt,gt=Object(O["a"])(ft,Y,K,!1,null,null,null),vt=gt.exports,yt=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-services")],1),a("div",{staticClass:"col-5 order-last"},[a("br"),a("adhoc-view")],1)])])},wt=[],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("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:"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"},[s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"}},[t._v(" Instaces ")]),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)}}}),s("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"}},[t._v(" Port")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.hybridoptions.port,expression:"hybridoptions.port"}],staticClass:"form-control",attrs:{type:"text","aria-label":"Small","aria-describedby":"inputGroup-sizing-sm",placeholder:"Expose Port"},domProps:{value:t.hybridoptions.port},on:{input:function(e){e.target.composing||t.$set(t.hybridoptions,"port",e.target.value)}}}),s("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:t.setHybridoptions}},[t._v(" Up")])]):t._e(),s("vuetable",{key:t.vuetablekey,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},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-info btn-sm",attrs:{title:"Stop Lan_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-secondary btn-sm",attrs:{title:"Start Lan_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?s("button",{staticClass:"ti-trash btn btn-info btn-sm",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.rowIndex)?s("button",{staticClass:"ti-cloud-down btn btn-outline-secondary btn-sm",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-outline-secondary btn-sm",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)},kt=[],Ct={components:{card:N,Vuetable:A["Vuetable"],VuetablePagination:I["a"],VuetablePaginationInfo:$["a"],VuetablePaginationDropdown:A["VuetablePaginationDropdown"]},props:{},data(){return{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,vuetablekey:0,fielddata:{},fields:[{name:"swarmlabname",title:'<span class="orange"></span>Name',sortField:"swarmlabname",visible:!0,dataClass:"left aligned col-3",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:actionslocal",title:"Installed",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:L["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"),console.log("token "+this.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 f.dispatch("pipelineLLO/getservicesstatus",a);console.log("res8 all "+JSON.stringify(i)),"yes"==i.data.data?(s["default"].set(this.testactionrowindex,t.swarmlabname,e),console.log("res8 YES "+JSON.stringify(i.data))):(console.log("res8 NO "+JSON.stringify(i.data)),s["default"].delete(this.testactionrowindex,t.swarmlabname)),console.log("is set "+e)}else{console.log("not set "+e);a={};a.token=this.token,a.instance=t.swarmlabname;var o=await f.dispatch("pipelineLLO/getservicesinfo",a);if("yes"==o.data.data){console.log("resi YES "+JSON.stringify(o)),s["default"].set(this.testactionrowindex,e,e);i=await f.dispatch("pipelineLLO/getservicesstatus",a);console.log("res8 all "+JSON.stringify(i)),"yes"==i.data.data?(s["default"].set(this.testactionrowindex,t.swarmlabname,e),console.log("res8 YES "+JSON.stringify(i.data))):(console.log("res8 NO "+JSON.stringify(i.data)),s["default"].delete(this.testactionrowindex,t.swarmlabname))}else console.log("resi NO "+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 f.dispatch("pipelineLLO/getswarmlabinfo",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.$swal({type:"info",html:l+r,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.$refs.vuetable.refresh());else if("run-install"==t){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 f.dispatch("pipelineLLO/getswarmlabinfo",t.swarmlabname),n=o.data.swarmlabinfo;t.git=n,console.log("inf git 1 "+JSON.stringify(n)),console.log("inf "+JSON.stringify(t)),this.$root.$emit("hybrid_install_instance",t)}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 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)}),console.log("RUN 1 "+JSON.stringify(e.swarmlabname))}},async rmAndClose(t){if(console.log("value 1 "+JSON.stringify(t)),console.log("value 1 "+JSON.stringify(this.hybridoptions)),t.isConfirmed){console.log("yes");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())}else console.log("no")},async setHybridoptions(){console.log(JSON.stringify(this.hybridoptions));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.vuetablekey+=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}},actions:{}},_t=Ct,xt=(a("47a8"),Object(O["a"])(_t,At,kt,!1,null,null,null)),Ot=xt.exports,St={components:{AdhocView:lt,card:N,AvailableServices:Ot},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},Nt=St,$t=Object(O["a"])(Nt,yt,wt,!1,null,null,null),It=$t.exports,Lt=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)])])},Rt=[],Pt=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("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",{staticClass:"row"},[s("div",{staticClass:"col-3 text-info"},[s("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapstackname&&t.hybridshowdata.status?s("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:function(e){return t.onActionHybrid("stack-start")}}},[t._v(" Start Stack ")]):t._e()])]),s("div",{staticClass:"col-3 text-info"},[s("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapstackname&&t.hybridshowdata.status?s("button",{staticClass:"btn btn-outline-danger",attrs:{round:"",type:"button"},on:{click:function(e){return t.onActionHybrid("stack-stop")}}},[t._v(" Leave Stack ")]):t._e()])]),s("div",{staticClass:"col-3 text-info"},[s("div",{staticClass:"input-group-prepend"})]),s("div",{staticClass:"col-3 text-info"},[s("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapstackname?s("button",{staticClass:"btn btn-outline-info",attrs:{round:"",type:"button"},on:{click:function(e){return t.onActionHybrid("service-info")}}},[t._v(" Service Info ")]):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.vuetablekey,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},scopedSlots:t._u([{key:"actionslocal",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[t.testactionrowindex[e.rowData.bootstrapnameid]?s("button",{staticClass:"ti-thumb-up btn btn-info btn-sm",attrs:{title:"Remove Stack",disabled:"",round:""}}):s("button",{staticClass:"ti-thumb-down btn btn-secondary btn-sm",attrs:{title:"Remove Stack",disabled:"",round:""}})])])}},{key:"actions",fn:function(e){return s("div",{},[s("div",{staticClass:"d-flex justify-content-center"},[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)},Dt=[],Bt={components:{card:N,Vuetable:A["Vuetable"],VuetablePagination:I["a"],VuetablePaginationInfo:$["a"],VuetablePaginationDropdown:A["VuetablePaginationDropdown"]},props:{},data(){return{testactionrowindex:[],actionrowindex:"",playbookInfo:{},hybridshowdata:{},token:"",CONFIG:{},isstatus:"",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,vuetablekey: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:"10%"},{name:"bootstrapstackid",title:'<span class="orange"></span>StackID',sortField:"bootstrapstackid",visible:!0,dataClass:"left aligned w-25",width:"15%",callback:t=>{for(var e=0;e<this.fielddata.length;e++){var a=this.fielddata[e].bootstrapstackid;if(a==t){var s={};s.bootstrapnameid=this.fielddata[e].bootstrapnameid,s.bootstrapstackname=this.fielddata[e].bootstrapstackname,this.checkactionrowindex(s)}}return t}},{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:"status",title:'<span class="orange"></span>Status',sortField:"status",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:actionslocal",title:" Join",titleClass:"center aligned",dataClass:"center aligned",width:"5%",callback:"getstatus"},{name:"__slot:actions",title:"Actions",titleClass:"center aligned",dataClass:"center aligned",width:"5%"}],apiurl:d.swarmlab_url_80+"/swarmlabhybridbootstrapservicesall",css:L["a"],perpage:10,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"),console.log("token "+this.token)},beforeDestroy(){this.$root.$off("hybrid_refresh_bootstrap_view")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{async checkactionrowindex(t){var e={};e.token=this.token,e.bootstrapnameid=t.bootstrapnameid,e.bootstrapstackname=t.bootstrapstackname;var a=await f.dispatch("pipelineLLO/getserviceshybridstatus",e),i=t.bootstrapnameid;"yes"==a.data.data?(s["default"].set(this.testactionrowindex,t.bootstrapnameid,i),console.log("res8 YES "+JSON.stringify(a.data))):(console.log("res8 NO "+JSON.stringify(a.data)),s["default"].delete(this.testactionrowindex,t.bootstrapnameid))},async onActionHybrid(t){if(this.CONFIG=await f.getters["pipelineLLO/getstatusswarmlab"],"Online"==this.CONFIG.hybrid?this.isstatus=!0:this.isstatus=!1,console.log("stack-start1 "+JSON.stringify(this.CONFIG)),"stack-stop"==t){var e="<h5>This will leave the stack with the name<b> "+this.hybridshowdata.bootstrapstackname+"</b> </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("stack-start"==t){if(console.log("stack-start"),"1"==this.isstatus){console.log(this.isstatus);await f.dispatch("pipelineLLO/hybrid_join",{token:this.token,node:this.CONFIG.swarmlabid,bootstrapstackid:this.hybridshowdata.bootstrapstackid,bootstrapnameid:this.hybridshowdata.bootstrapnameid});s["default"].nextTick(()=>this.$refs.vuetable.refresh())}}else if("service-info"==t){console.log(JSON.stringify(t)),console.log("CONFIG "+JSON.stringify(this.hybridshowdata));var a=this.hybridshowdata.bootstrapurl;e=`<h5>You will be redirected to the README page of the repository (OUTSIDE Swarmlab-Hybrid)<br> \n<a href="${a}" target="new">click here to continue</a>\n</h5>\n<br>\n`;this.$swal({type:"Info",title:"README",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(console.log(JSON.stringify(t)),t.isConfirmed&&"1"==this.isstatus){await f.dispatch("pipelineLLO/hybrid_leave",{token:this.token,node:this.CONFIG.swarmlabid,bootstrapstackid:this.hybridshowdata.bootstrapstackid,bootstrapnameid:this.hybridshowdata.bootstrapnameid});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,console.log("index "+this.actionrowindex),"view-item"==t||("run-more"==t?(this.hybridshowdata=e,console.log("hybrid "+JSON.stringify(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.vuetablekey+=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}},actions:{}},Ft=Bt,Tt=(a("4788"),Object(O["a"])(Ft,Pt,Dt,!1,null,null,null)),Gt=Tt.exports,Vt={components:{card:N,MyconnectManageServer:Gt},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},Et=Vt,Jt=Object(O["a"])(Et,Lt,Rt,!1,null,null,null),zt=Jt.exports,jt=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)])])},Mt=[],qt=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("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)},Ht=[],Ut=a("ec45");a("411c");Object(R["b"])("alpha_num",P["a"]),Object(R["b"])("mybetween",P["b"]),Object(R["b"])("mybetween",{message:"The {_field_} field must be a number: 1-65535"}),Object(R["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(R["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(R["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(R["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(R["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(R["b"])("required",{...P["c"],message:"This field is required"});var Yt={components:{DatePicker:Ut["a"],ValidationProvider:R["a"],card:N},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"),console.log("token "+this.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))console.log(`${a}: ${s}`),1!=s&&(t=!1);if(t){await f.dispatch("pipelineLLO/adddeploy",{token:this.token,deploy:this.deploy});this.$root.$emit("hybrid_refresh_bootstrap_view")}else{var 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){console.log(this.deploy.image);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();console.log("port "+JSON.stringify(e)),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:{}},Kt=Yt,Zt=(a("aa1b"),Object(O["a"])(Kt,qt,Ht,!1,null,null,null)),Qt=Zt.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("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",{staticClass:"row"},[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.bootstrapstackname?s("button",{staticClass:"btn btn-outline-warning",attrs:{round:"",type:"button"},on:{click:function(e){return t.onActionHybrid("stack-restart")}}},[t._v(" Restart 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.vuetablekey,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},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)},Wt=[],te={components:{card:N,Vuetable:A["Vuetable"],VuetablePagination:I["a"],VuetablePaginationInfo:$["a"],VuetablePaginationDropdown:A["VuetablePaginationDropdown"]},props:{},data(){return{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,vuetablekey: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:L["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"),console.log("token "+this.token)},beforeDestroy(){this.$root.$off("hybrid_refresh_bootstrap_view")},computed:{httpOptions(){var t=this.token;return{headers:{Authorization:"Bearer "+t}}}},methods:{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){await f.dispatch("pipelineLLO/hybrid_servicerm",{token:this.token,bootstrapstackid:this.hybridshowdata.bootstrapstackid,bootstrapnameid:this.hybridshowdata.bootstrapnameid});s["default"].nextTick(()=>this.$refs.vuetable.refresh())}},async onActionHybrid_stackrm(t){if(t.isConfirmed){await f.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,console.log("index "+this.actionrowindex),"view-item"==t||("run-more"==t?(this.hybridshowdata=e,console.log("hybrid "+JSON.stringify(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.vuetablekey+=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}},actions:{}},ee=te,ae=(a("7296"),Object(O["a"])(ee,Xt,Wt,!1,null,null,null)),se=ae.exports,ie={components:{card:N,MydeployManageBootstrap:Qt,MydeployManageView:se},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},oe=ie,ne=Object(O["a"])(oe,jt,Mt,!1,null,null,null),re=ne.exports,le={name:"app",components:{NetworkTable:vt,ServicesTable:It,ConnectServer:U,ManageServices:zt,ManageDeploy:re},data(){return{setStatusAgent:"",issocket:!1,isconnect:!1,activeItem:"",activeItemSub:"",sidemenou:"max",hybridmenou:"bootstrap",show:!0,token:"",SwarmabAsciiLabTemplate:""}},mounted(){this.$root.$on("hybrid_server_status",t=>{this.serverstatus()})},beforeDestroy(){this.$root.$off("hybrid_server_status")},created(){},methods:{async onAction(t){if("check"==t){if(this.$socket.disconnected)var e="close";else if(this.$socket.connected)e="open";if(this.isconnect)var a="open";else a="close";var s="Status<br>";s+="Agent is "+e+"<br>",s+="Server is "+a,this.$swal({type:"info",html:s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showLoaderOnConfirm:!1,focusCancel:!0})}},async serverstatus(t){var e=f.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_refresh_dockerservices"):"connect-server"==t?this.$root.$emit("hybrid_connect_server"):"services"==t&&this.$root.$emit("hybrid_refresh_availableservices")},isActive:function(t){return this.activeItem===t},isActiveSub:function(t){return this.activeItemSub===t},setActive:function(t,e){this.activeItem=t,this.activeItemSub=e}},computed:{socketStatus(){return f.getters["pipelineLLO/getsocketStatus"]}},watch:{socketStatus(t){console.log("watchok "+t),this.issocket=t}}},ce=le,de=(a("034f"),Object(O["a"])(ce,i,o,!1,null,null,null)),ue=de.exports,pe=a("5886"),he=a("f2d6"),me=a.n(he),be=(a("c059"),a("f87c")),fe=a("8e27");s["default"].use(pe["default"]),s["default"].use(me.a);var ge=d.url_80;const ve=Object(fe["io"])(ge,{autoConnect:!1,reconnection:!0,reconnectionDelay:500,maxReconnectionAttempts:1/0,pingInterval:25e3,pingTimeout:6e4,transports:["websocket","polling"],secure:!0,rejectUnauthorized:!1});s["default"].use(be["a"],ve),s["default"].use(r["b"]);s["default"].component("ValidationProvider",R["a"]),s["default"].config.productionTip=!1,new s["default"]({el:"#app",store:f,wait:new me.a,render:t=>t(ue)})},"5dec":function(t,e,a){},7296:function(t,e,a){"use strict";a("0d35")},"778e":function(t,e,a){},"798c":function(t,e,a){},"85ec":function(t,e,a){},a6d9:function(t,e,a){},aa1b:function(t,e,a){"use strict";a("798c")},b721:function(t,e,a){},c000:function(t,e,a){},c059:function(t,e,a){},cd6e:function(t,e,a){"use strict";a("a6d9")},cf1c:function(t,e,a){t.exports=a.p+"img/loading.f4404720.gif"},e454:function(t,e,a){},ec01:function(t,e,a){},f467:function(t,e,a){t.exports=a.p+"img/hybrid-1.852eef88.png"}});
|
|
//# sourceMappingURL=app.f4c70c34.js.map
|