(function(t){function e(e){for(var i,n,r=e[0],l=e[1],c=e[2],u=0,p=[];u{}),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="

Playbook Images

",e='
Shift-Tab indentLess
Alt-Q wrapLines
Ctrl-Up scrollLineUp
Ctrl-Down scrollLineDown
Ctrl-L selectLine
Esc singleSelectionTop
Ctrl-Enter insertLineAfter
Ctrl-D selectNextOccurrence
Shift-Ctrl-Space selectScope
Shift-Ctrl-M selectBetweenBrackets
Ctrl-M goToBracket
Ctrl-K Ctrl-Y sublimeYank
Ctrl-K Ctrl-C showInCenter
Ctrl-K Ctrl-G clearBookmarks
Ctrl-K Ctrl-Backspace delLineLeft
Ctrl-K Ctrl-0 unfoldAll
Ctrl-K Ctrl-J unfoldAll
Ctrl-Alt-Up addCursorToPrevLine
Ctrl-Alt-Down addCursorToNextLine
Ctrl-F3 findUnder
Shift-Ctrl-F3 findUnderPrevious
Shift-Ctrl-[ fold
Shift-Ctrl-] unfold
Ctrl-F find
',a=(t="","");this.$swal({title:"Key bindings",type:"info",html:e+t+a,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1})},async hotreload(){this.getinfo,await g.dispatch("pipelineLLO/hotreload",{token:this.token,swarmlabname:this.swarmlabname})},runextenderror(){var t='
\n

\n It\'s the total amount of layers; \n

\n

\n The current limit of 125 layers is due to the kernel\'s ARG_MAX, which limits the number of arguments / length of arguments that can be passed when mounting the layers \n \n
(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)\n

\n

\n Note that not every step in a Dockerfile creates a new layer, only (RUN) steps that modify the filesystem will introduce a new layer.\n

\n\n

\n

Solution
\n

\n

\n Delete all local docker images related to your dockerfile using the following:\n
\n
\n docker rmi -f $(docker images -a -q)\n

\n\n

\n

Description
\n
\n Remove unused image
\n - all images not referenced by any container -\n

\n

\n

Filtering
\n
\n docker rmi -f $(docker images -a | grep "IMAGE_NAME" | awk \'{ print $3 }\')\n

\n\n
';this.$swal({title:"Info",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")}}),I=$,L=(a("0b43"),Object(O["a"])(I,y,w,!1,null,null,null)),P=L.exports,R=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("div",{staticClass:"author"},[i("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("div",{staticClass:"row text-center"},[i("div",{staticClass:"col-12"},[i("b",[t._v("Hybrid server config")])])]),i("div",{staticClass:"row text-center"},[i("div",{staticClass:"col-12"},[i("br")])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-3"},[i("b",[t._v("Node ID")])]),i("div",{staticClass:"col-9"},[i("i",[t._v(t._s(t.CONFIG.nodeid))])])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-3"},[i("b",[t._v("Swarmlab key")])]),i("div",{staticClass:"col-9"},[i("i",[t._v(t._s(t.CONFIG.workerkey))])])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-3"},[i("b",[t._v("Swarmlab PublicKey")])]),i("div",{staticClass:"col-9"},[i("i",[t._v(t._s(t.CONFIG.swarmlab_public_wgkey))])])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-3"},[i("b",[t._v("Swarmlab ip")])]),i("div",{staticClass:"col-3"},[i("i",[t._v(t._s(t.CONFIG.server_ip))])]),i("div",{staticClass:"col-2"},[i("b",[t._v("Local IP")])]),i("div",{staticClass:"col-4"},[i("i",[t._v(t._s(t.CONFIG.wg_ip))])])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-3"},[i("b",[t._v("Private key")])]),i("div",{staticClass:"col-3"},[i("i",[t._v(t._s(t.CONFIG.privatekey))])]),i("div",{staticClass:"col-2"},[i("b",[t._v("Public key")])]),i("div",{staticClass:"col-4"},[i("i",[t._v(t._s(t.CONFIG.publickey))])])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-12"},[i("br")])]),i("div",{staticClass:"row"},[i("div",{staticClass:"col-4"},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"ti-info btn btn-outline-success",attrs:{round:"",type:"button",title:"HowTo"},on:{click:function(e){return t.onAction("register")}}}),i("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 ")])])])]),i("div",{staticClass:"col-5"},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("div",{staticClass:"input-group-prepend"},[i("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 ")])]),i("div",{staticClass:"input-group-prepend"},[i("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(" "),i("div",{staticClass:"col-3"},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("div",{staticClass:"input-group-prepend"},[t.isconnect?i("button",{staticClass:"ti-link btn btn-outline-success",attrs:{round:"",type:"button",title:"Connect"}},[t._v(" Status online ")]):i("button",{staticClass:"ti-unlink btn btn-outline-warning",attrs:{round:"",type:"button",title:"Connect"}},[t._v(" Status offline ")])])])])])])],1)},D=[],B=a("af52"),F={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=g.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 g.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 g.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 i="sudo /bin/bash ";i+=a.trim(),i+="/hybrid/connect/join.sh"}else i="no exec file";var s="
Swarmlab Connect

";this.$swal({type:"info",html:s+i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}else if("save"==t){e=await g.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 g.dispatch("pipelineLLO/get_config",{token:this.token});console.log("pwd "+JSON.stringify(e));a=e.data.data;if(e.data.error_msg="ok"){i="sudo /bin/bash ";i+=a.trim(),i+="/hybrid/connect/leave.sh"}else i="no exec file";s="
Swarmlab Disconnect

";this.$swal({type:"info",html:s+i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}else if("register"==t){console.log("start "+JSON.stringify("register"));i="Before you begin\n
\n Before you start using the Swarmlab Hybrid API, you need a hybrid enabled account and the Swarmlab API enabled. \n
\n To learn more, see Get Started with Hybrid Platform. \n ",s="
Get API Key's

";this.$swal({type:"info",html:s+i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,showLoaderOnConfirm:!1,reverseButtons:!0,focusCancel:!0})}}},actions:{}},T=F,G=(a("cd6e"),Object(O["a"])(T,R,D,!1,null,null,null)),V=G.exports,E={components:{AdhocView:P,card:N,MyconnectServer:V},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},J=E,z=Object(O["a"])(J,f,v,!1,null,null,null),j=z.exports,M=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)])])},q=[],H=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("div",{staticClass:"author"},[i("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("div",{staticClass:"input-group-prepend"},[t.$socket.disconnected?i("button",{staticClass:"ti-unlink btn btn-outline-danger",attrs:{round:"",type:"button",title:"You are disconnected from Swarmlab-hybrid",disabled:""}}):i("button",{staticClass:"ti-link btn btn-outline-success",attrs:{round:"",type:"button",title:"You are connected swarmlab-hybrid",disabled:""}})]),i("div",{staticClass:"input-group-prepend"}),i("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.Names?i("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?i("button",{staticClass:"btn btn-outline-danger",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("container-stop")}}},[t._v(" Stop")]):t._e()])])]),i("b-container",{attrs:{fluid:""}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" ID ")]),i("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.ID)+" ")]),i("div",{staticClass:"col-2 text-info"},[t._v(" Image ")]),i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Image)+" ")])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" Names ")]),i("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Names)+" ")]),i("div",{staticClass:"col-2 text-info"},[t._v(" RunningFor ")]),i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.RunningFor)+" ")])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" Networks ")]),i("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Networks)+" ")]),i("div",{staticClass:"col-2 text-info"},[t._v(" CreatedAt ")]),i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.CreatedAt)+" ")])]),t._v(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" Status ")]),i("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Status)+" ")]),i("div",{staticClass:"col-2 text-info"},[t._v(" Ports ")]),i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Ports)+" ")])])])],1)},Y=[],U=a("7bb1"),K=a("4c93");Object(U["b"])("alpha_num",K["a"]),Object(U["b"])("required",{...K["c"],message:"This field is required"});var Z={components:{card:N},props:{},data(){return{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);g.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 g.dispatch("pipelineLLO/getmountinfo",{instance:this.hybridshowdata.Names});console.log("log "+JSON.stringify(a));var i="
You can connect to the same contained process multiple times simultaneously, from different sessions on the Docker host.
\n
\n Open a terminal and Run:\n
\n
\n";i+="docker exec -it -udocker "+this.hybridshowdata.Names+" /bin/bash ",i+="
",i+="
",i+=" Directory Maps",i+=" ",i+="";for(var s=a.data.test[0],o=0;o");i+="
LocalContainer
"+s[o].Source+" "+s[o].Destination+"
",i+="

",this.$swal({type:"Info",title:"Info!",icon:"info",html:i,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";g.dispatch("pipelineLLO/setsocketStatus",{status:"open"})},error(t){console.log("socket error "+JSON.stringify(t)),this.issocket="close";g.dispatch("pipelineLLO/setsocketStatus",{status:"close"})},connect_error(t){console.log("socket connect_error "+JSON.stringify(t)),this.issocket="close";g.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketopen(),this.socketreconnect()},disconnect(t){console.log("socket disconnect "+JSON.stringify(t)),this.issocket="close";g.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketreconnect()},connect_timeout(t){console.log("socket timeout "+JSON.stringify(t)),this.issocket="close";g.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";g.dispatch("pipelineLLO/setsocketStatus",{status:"close"});this.socketreconnect()},unauthorized(t){console.log("socket unauthorized "+JSON.stringify(t)),this.issocket="close";g.dispatch("pipelineLLO/setsocketStatus",{status:"close"})},socket_id_emit(t){console.log("socket id from server "+JSON.stringify(t)),this.issocket="open";g.dispatch("pipelineLLO/setsocketStatus",{status:"open"})},async logdata(t){console.log(" socket from logdata "+JSON.stringify(t));g.dispatch("pipelineLLO/addlog",{log:t});var e=g.getters["pipelineLLO/getlog"];this.log_path=[...new Set(e.map(t=>t.tailed_path))];var a="";for(let s of this.log_path)if(a=e.filter(t=>t.tailed_path===s).length,i["default"].set(this.log_path_lenght,s,a),a>this.loglenghttotal)g.dispatch("pipelineLLO/taillog",{path:s})},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(t)),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){console.log(" message_hybrid_status "+JSON.stringify(t));var e={};e.status=t;g.dispatch("pipelineLLO/setstatus",e);this.$root.$emit("hybrid_server_status",t)}},actions:{}},Q=Z,X=(a("4cf0"),Object(O["a"])(Q,H,Y,!1,null,null,null)),W=X.exports,tt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("v-wait",{attrs:{for:"myRunInstancetutor"}},[i("template",{slot:"waiting"},[i("div",[i("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("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)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),i("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 i("div",{},[t.actionrowindex==e.rowIndex?i("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)}}}):i("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)}}})])}}])}),i("div",{staticClass:"vuetable-pagination ui basic segment grid"},[i("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),i("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},et=[],at=a("127e"),it=a("3568"),st=a("b3c5"),ot={components:{card:N,Vuetable:B["Vuetable"],VuetablePagination:it["a"],VuetablePaginationInfo:at["a"],VuetablePaginationDropdown:B["VuetablePaginationDropdown"]},props:{},data(){return{actionrowindex:"",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:"Names",title:'Name',sortField:"Names",visible:!0,dataClass:"text-left text-wrap text-break break-word",width:"50%"},{name:"Image",title:'Image',sortField:"Image",visible:!0,dataClass:"left aligned w-25",width:"15%",formatter(t){const e=/^ondemand_playground/.test(t);if(e){var a='

Playground

';return a}a='

Lab

';return a}},{name:"_id",title:'mongo',visible:!1},{name:"Status",title:'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:st["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",()=>{i["default"].nextTick(()=>this.$refs.vuetable.refresh())}),this.$root.$on("hybrid_refresh_table",t=>{this.$nextTick((function(){i["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,i="
Bootstrap "+t+"
";this.$swal({type:t,html:i+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},i["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",i["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 Popover: "+ ++this.counter,content:()=>"The date is:
"+new Date+""}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length}},actions:{}},nt=ot,rt=(a("0390"),Object(O["a"])(nt,tt,et,!1,null,null,null)),lt=rt.exports,ct={components:{ViewNetwork:W,AdhocView:P,card:N,DockerServices:lt},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},dt=ct,ut=Object(O["a"])(dt,M,q,!1,null,null,null),pt=ut.exports,mt=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)])])},ht=[],bt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("div",{staticClass:"author"},[i("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("v-wait",{attrs:{for:"myRunInstancetutor"}},[i("template",{slot:"waiting"},[i("div",[i("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),i("div",{staticClass:"input-group input-group-sm sm-3"},[i("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)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),t.viewhybridoptions?i("div",{staticClass:"row"},[i("b-col",{staticClass:"text-center",attrs:{cols:"12",sm:"12",md:"12"}},[i("span",[i("b",[t._v("Lab Service Options")])])])],1):t._e(),t.viewhybridoptions?i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"}},[t._v(" Instaces ")]),i("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)}}}),i("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"}},[t._v(" Port")]),i("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)}}}),i("button",{staticClass:"btn btn-outline-success",attrs:{round:"",type:"button"},on:{click:t.setHybridoptions}},[t._v(" Up")])]):t._e(),i("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 i("div",{},[i("div",{staticClass:"d-flex justify-content-center"},[t.testactionrowindex[e.rowData.swarmlabname]==e.rowIndex?i("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?i("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 i("div",{},[i("div",{staticClass:"d-flex justify-content-center"},[t.testactionrowindex[e.rowIndex]==e.rowIndex?i("button",{staticClass:"ti-trash btn btn-info btn-sm",attrs:{title:"Remove Lab_Instance",round:""}}):t._e()])])}},{key:"actions",fn:function(e){return i("div",{},[i("div",{staticClass:"d-flex justify-content-center"},[t.checkactionrowindex(e.rowData,e.rowIndex)?i("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(),i("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)}}})])])}}])}),i("div",{staticClass:"vuetable-pagination ui basic segment grid"},[i("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),i("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},gt=[],ft={components:{card:N,Vuetable:B["Vuetable"],VuetablePagination:it["a"],VuetablePaginationInfo:at["a"],VuetablePaginationDropdown:B["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:"",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:'Name',sortField:"swarmlabname",visible:!0,dataClass:"left aligned col-3",width:"68%"},{name:"_id",title:'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:st["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",()=>{i["default"].nextTick(()=>this.$refs.vuetable.refresh())}),this.$root.$on("hybrid_refresh_table",t=>{this.$nextTick((function(){i["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,i="
Bootstrap "+t+"
";this.$swal({type:t,html:i+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 s=await g.dispatch("pipelineLLO/getservicesstatus",a);console.log("res8 all "+JSON.stringify(s)),"yes"==s.data.data?(i["default"].set(this.testactionrowindex,t.swarmlabname,e),console.log("res8 YES "+JSON.stringify(s.data))):(console.log("res8 NO "+JSON.stringify(s.data)),i["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 g.dispatch("pipelineLLO/getservicesinfo",a);if("yes"==o.data.data){console.log("resi YES "+JSON.stringify(o)),i["default"].set(this.testactionrowindex,e,e);s=await g.dispatch("pipelineLLO/getservicesstatus",a);console.log("res8 all "+JSON.stringify(s)),"yes"==s.data.data?(i["default"].set(this.testactionrowindex,t.swarmlabname,e),console.log("res8 YES "+JSON.stringify(s.data))):(console.log("res8 NO "+JSON.stringify(s.data)),i["default"].delete(this.testactionrowindex,t.swarmlabname))}else console.log("resi NO "+JSON.stringify(o))}},setFilter(){this.moreParams={filter:this.searchFor,type:this.selected},i["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",i["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 s=this.swarmlab,o=await g.dispatch("pipelineLLO/getswarmlabinfo",s.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='
Swarmlab Service Info
(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!"}),i["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 g.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),i["default"].delete(this.testactionrowindex,this.hybridoptions.index),i["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),i["default"].set(this.testactionrowindex,t.swarmlabname,t.index),i["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 Popover: "+ ++this.counter,content:()=>"The date is:
"+new Date+""}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length}},actions:{}},vt=ft,yt=(a("47a8"),Object(O["a"])(vt,bt,gt,!1,null,null,null)),wt=yt.exports,At={components:{AdhocView:P,card:N,AvailableServices:wt},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},kt=At,Ct=Object(O["a"])(kt,mt,ht,!1,null,null,null),_t=Ct.exports,xt=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-manage-server")],1),a("div",{staticClass:"col-5 order-last"},[a("br")])])])},Ot=[],St=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("div",{staticClass:"author"},[i("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("add")}}},[t._v(" Add Network Node")])]),i("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)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),t.nodeadmin?i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("br"),i("div",{staticClass:"row"},[i("div",{staticClass:"col-3 order-first pr-md-1"},[i("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(" "),i("div",{staticClass:"col-3 pr-md-1"},[t.nodeadminupdate?i("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[i("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)}):i("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[i("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)}}}),i("span",[t._v(t._s(a[0]))])]}}],null,!1,3037502831)})],1),t._v(" "),i("div",{staticClass:"col-3 pr-md-1"},[i("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(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-3 order-first pr-md-1"},[i("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(" "),i("div",{staticClass:"col-3 pr-md-1"},[i("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(" "),i("div",{staticClass:"col-3 pr-md-1"},[i("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(" "),i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 pr-md-1"},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("div",{staticClass:"input-group-append"},[t.nodeadminupdate?i("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("update")}}},[t._v(" update")]):i("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:function(e){return t.onAction("addserver")}}},[t._v(" add")])]),i("div",{staticClass:"input-group-append"},[i("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(" "),i("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[i("div",{staticClass:"table-button-container"},[i("button",{staticClass:"ti-pencil btn btn-outline-secondary btn-sm",on:{click:function(a){return t.onAction("edit",e.rowData,e.rowIndex)}}}),i("button",{staticClass:"ti-trash btn btn-outline-secondary btn-sm",attrs:{round:""},on:{click:function(a){return t.onAction("rm",e.rowData,e.rowIndex)}}})])]}}])}),i("div",{staticClass:"vuetable-pagination ui basic segment grid"},[i("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),i("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},Nt=[];Object(U["b"])("alpha_num",K["a"]),Object(U["b"])("required",{...K["c"],message:"This field is required"});var $t={components:{card:N,Vuetable:B["Vuetable"],VuetablePagination:it["a"],VuetablePaginationInfo:at["a"],VuetablePaginationDropdown:B["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:'Name',sortField:"name",titleClass:"text-center aligned",visible:!0,dataClass:"center aligned",width:"20%"},{name:"nodeid",title:'nodeid',titleClass:"text-center aligned",sortField:"nodeid",visible:!0,width:"20%"},{name:"ip",title:'IP',titleClass:"text-center aligned",sortField:"swarmlabname",visible:!0,width:"13%"},{name:"role",title:'Role',titleClass:"text-center aligned",sortField:"role",visible:!0,width:"15%",formatter(t){const e=/^ondemand_playground/.test(t);if(e){var a='

Playground

';return a}a='

Lab

';return a}},{name:"zones",title:'Zones',sortField:"zones",titleClass:"text-center aligned",visible:!0,width:"20%"},{name:"status",title:'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:'mongo',visible:!1}],apiurl:d.swarmlab_url_80+"/getswarmlabhybrid",css:st["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,i="
Bootstrap "+t+"
";this.$swal({type:t,html:i+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},i["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",i["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 s=await g.dispatch("pipelineLLO/swarmlabhybridjoin",{token:this.token,action:"join"});if(console.log(JSON.stringify(s)),"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 g.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});i["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 g.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});i["default"].nextTick(()=>this.$refs.vuetable.refresh()),console.log(JSON.stringify(o))}}else"cancel"==t&&(this.nodeadmin=!1,this.nodeadminupdate=!1)},async rmAndClose(t){await g.dispatch("pipelineLLO/getswarmlabhybridinfo",{token:this.token,nodezones:this.rowdata.zones});if(t.value){await g.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});i["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 Popover: "+ ++this.counter,content:()=>"The date is:
"+new Date+""}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length}},actions:{}},It=$t,Lt=(a("55b7"),Object(O["a"])(It,St,Nt,!1,null,null,null)),Pt=Lt.exports,Rt={components:{AdhocView:P,card:N,MyconnectManageServer:Pt},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},Dt=Rt,Bt=Object(O["a"])(Dt,xt,Ot,!1,null,null,null),Ft=Bt.exports,Tt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-6 order-first "},[a("br"),a("mydeploy-manage-bootstrap")],1),a("div",{staticClass:"col-6 order-last"},[a("br"),a("mydeploy-manage-view")],1)])])},Gt=[],Vt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("div",{staticClass:"author"},[i("img",{staticClass:"avatar border-white",attrs:{src:a("0ed5"),alt:"..."}})]),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("b-row",[i("b-col",{attrs:{cols:"8"}},[i("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[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("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)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("image")}}})])]),i("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1),i("b-col",{attrs:{cols:"4"}},[i("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[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("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)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("stackname")}}})])]),i("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1)],1),i("b-row",[i("b-col",{attrs:{cols:"8"}},[i("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[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("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)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("name")}}})])]),i("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1),i("b-col",{attrs:{cols:"4"}},[i("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[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("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)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("network")}}})])]),i("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1)],1),i("b-row",[i("b-col",{attrs:{cols:"4"}},[i("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[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("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)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("cpu")}}})])]),i("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1),i("b-col",{attrs:{cols:"4"}},[i("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[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("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)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("memory")}}})])]),i("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1),i("b-col",{attrs:{cols:"4"}},[i("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[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("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)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"ti-info btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:function(e){return t.showInfo("networkport")}}})])]),i("span",{staticClass:"hybrid-field-error"},[t._v(t._s(a[0]))])]}}])})],1)],1),i("b-row",[i("b-col",{attrs:{cols:"6"}},[i("div",{staticClass:"input-group input-group-sm mb-3"},[i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[t._v("Start date ")])]),i("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)]),i("b-col",{attrs:{cols:"6"}},[i("div",{staticClass:"input-group input-group-sm mb-3"},[i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[t._v("Start time")])]),i("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),i("b-row",[i("b-col",{attrs:{cols:"6"}},[i("div",{staticClass:"input-group input-group-sm mb-3"},[i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[t._v("End date ")])]),i("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)]),i("b-col",{attrs:{cols:"6"}},[i("div",{staticClass:"input-group input-group-sm mb-3"},[i("div",{staticClass:"input-group-prepend"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"}},[t._v("End time")])]),i("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),i("b-row",[i("b-col",{attrs:{cols:"6"}},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("div",{staticClass:"input-group-prepend"},[i("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 ")])])])]),i("b-col",{attrs:{cols:"2"}}),i("b-col",{attrs:{cols:"4"}},[i("div",{staticClass:"custom-control custom-switch"},[i("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,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o="true",n=t._i(a,o);i.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",s)}}}),i("label",{staticClass:"custom-control-label",attrs:{for:"customStack"}},[t._v("Users can join the lab instance")])])])],1)],1)],1)},Et=[],Jt=a("ec45");a("411c");Object(U["b"])("alpha_num",K["a"]),Object(U["b"])("mybetween",K["b"]),Object(U["b"])("mybetween",{message:"The {_field_} field must be a number: 1-65535"}),Object(U["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(U["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(U["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(U["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(U["b"])("required",{...K["c"],message:"This field is required"});var zt={components:{DatePicker:Jt["a"],ValidationProvider:U["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,networkport: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,i)=>{this.isValid(i[a][0]),a===i.length-1&&e()})});e.then(()=>{(async()=>{var t=!0;for(const[a,i]of Object.entries(this.isDeployValid))console.log(`${a}: ${i}`),1!=i&&(t=!1);if(t){await g.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='
To start, we need to have a docker image
\n
We have built some. You can find it here: Menu "Images"
\n
More Info here: Wikipedia , Docker
\n
\n
\n The field may contain alphabetic characters, numbers, colons, hyphens, slashes, dots and underscores\n';else if("stackname"==t)e="
To start, we need to have a Stack Name
\n
This will bring up all the services, volumes, networks and everything else
in an isolated environment.\n
\n
\n
\n The field may contain alphabetic characters and numbers\n";else if("network"==t)e="
To start, we need to have a Network
\n
This will bring up all the services, volumes, networks and everything else
in an isolated network environment.\n
\n
\nServices running inside any of this networks containers have access (not limited by any firewall) to all other services.\n
\n
\n
\n
\n The field may contain alphabetic characters and numbers\n\n";else if("networkport"==t)e="
Network Port
\n
\n
\nBy default, when you create a container, it does not publish any of its ports to the outside world. \n
\nTo make a port available to Services which are not connected to the Stack network, we use this port. \n
\n
\n
\n\nTo make a service available we have to know the port number used by these service inside the container.\n\n
\nPlease insert that here.\n
\n
\n
\n(The port for outside connections is automatically generated and you dont have to worry about it!)\n
\n
\n The field may contain numbers\n";else if("cpu"==t)e="
To start, we need to have a CPU Limit
\n
Limit the specific CPUs or cores a container can use\n
\n
\n
\nThe field may contain numbers and dots e.g 0.5\n";else if("memory"==t)e="
To start, we need to have a Memory Limit \n

Limit the specific Memoty a container can use
\ne.g 200\n
\n(MB)\n
\n
\n
\n
\n\nIt is important not to allow a running container to consume too much of the host machine’s memory.\n\n
\n
\n
\n The field may contain numbers\n";else if("name"==t)e="
To start, we need to have a Name
\nThis name is only for your own use. The system completely disregards it!\n
\n
\n
\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("networkport"==t){e=await this.$refs.hybrid_networkport.validate();1==e.valid?this.isDeployValid.networkport=1:this.isDeployValid.networkport=2}else if("cpu"==t){e=await this.$refs.hybrid_cpu.validate();1==e.valid?this.isDeployValid.cpu=1:this.isDeployValid.cpu=2}else if("memory"==t){e=await this.$refs.hybrid_memory.validate();1==e.valid?this.isDeployValid.memory=1:this.isDeployValid.memory=2}else if("name"==t){e=await this.$refs.hybrid_name.validate();1==e.valid?this.isDeployValid.name=1:this.isDeployValid.name=2}}},actions:{}},jt=zt,Mt=(a("aa1b"),Object(O["a"])(jt,Vt,Et,!1,null,null,null)),qt=Mt.exports,Ht=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("card",{staticClass:"card-user",staticStyle:{"max-height":"100%"}},[i("div",{staticClass:"author"},[i("img",{staticClass:"avatar border-white",attrs:{src:a("f467"),alt:"..."}})]),i("v-wait",{attrs:{for:"myRunInstancetutor"}},[i("template",{slot:"waiting"},[i("div",[i("img",{attrs:{src:a("cf1c")}}),t._v(" Enter Lab_room... ")])])],2),i("b-container",{attrs:{fluid:""}},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-3 text-info"},[i("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapstackname?i("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()])]),i("div",{staticClass:"col-3 text-info"},[i("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapstackname?i("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()])]),i("div",{staticClass:"col-3 text-info"},[i("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapnameid&&t.hybridshowdata.status?i("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()])]),i("div",{staticClass:"col-3 text-info"},[i("div",{staticClass:"input-group-prepend"},[t.hybridshowdata.bootstrapnameid&&t.hybridshowdata.status?i("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?i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" Instances ")]),i("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.Replicas)+" ")]),i("div",{staticClass:"col-2 text-info"},[t._v(" Image ")]),i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapimage)+" ")])]):t._e(),t._v(" "),t.hybridshowdata.bootstrapstackname?i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" Names ")]),i("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapname)+" ")]),i("div",{staticClass:"col-2 text-info"},[t._v(" EndAt ")]),i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapdateend)+" ")])]):t._e(),t._v(" "),t.hybridshowdata.bootstrapstackname?i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" Networks ")]),i("div",{staticClass:"col-3 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapnetwork)+" ")]),i("div",{staticClass:"col-2 text-info"},[t._v(" BeginAt ")]),i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.bootstrapdatebegin)+" ")])]):t._e(),t._v(" "),t.hybridshowdata.bootstrapstackname?i("div",{staticClass:"row"},[i("div",{staticClass:"col-2 text-info"},[t._v(" Status ")]),t.hybridshowdata.status?i("div",{staticClass:"col-3 text-secondary"},[i("span",{staticClass:"ti-check text-success"})]):i("div",{staticClass:"col-3 text-secondary"},[i("span")]),i("div",{staticClass:"col-2 text-info"},[t._v(" Ports ")]),0!=t.hybridshowdata.ports?i("div",{staticClass:"col-4 text-secondary"},[t._v(" "+t._s(t.hybridshowdata.ports)+" ")]):i("div",{staticClass:"col-4 text-secondary"})]):t._e()]),i("b-container",{staticClass:"bv-example-row",attrs:{fluid:""}},[i("div",{staticClass:"input-group input-group-sm sm-3"},[i("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)}}}),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-primary",attrs:{round:"",type:"button"},on:{click:t.setFilter}},[t._v(" Go")])]),i("div",{staticClass:"input-group-append"},[i("button",{staticClass:"btn btn-outline-secondary",attrs:{round:"",type:"button"},on:{click:t.resetFilter}},[t._v(" Reset")])])]),i("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 i("div",{},[t.actionrowindex==e.rowIndex?i("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)}}}):i("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)}}})])}}])}),i("div",{staticClass:"vuetable-pagination ui basic segment grid"},[i("vuetable-pagination-info",{ref:"paginationInfo",attrs:{css:t.css.paginationInfo}}),i("vuetable-pagination",{ref:"pagination",attrs:{css:t.css.pagination},on:{"vuetable-pagination:change-page":t.onChangePage}})],1)],1)],1)},Yt=[],Ut={components:{card:N,Vuetable:B["Vuetable"],VuetablePagination:it["a"],VuetablePaginationInfo:at["a"],VuetablePaginationDropdown:B["VuetablePaginationDropdown"]},props:{},data(){return{actionrowindex:"",playbookInfo:{},hybridshowdata:{},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:"bootstrapname",title:'Name',sortField:"bootstrapname",visible:!0,dataClass:"text-left text-wrap text-break break-word",width:"15%"},{name:"bootstrapstackname",title:'StackName',sortField:"bootstrapstackname",visible:!0,dataClass:"left aligned w-25",width:"15%"},{name:"_id",title:'mongo',visible:!1},{name:"bootstrapdatebegin5",title:'Begin',sortField:"bootstrapdatebegin5",titleClass:"center aligned",visible:!0,width:"10%"},{name:"bootstrapusersjoin",title:'Join',sortField:"bootstrapusersjoin",titleClass:"center aligned",visible:!0,width:"5%",callback:function(t){if(1==t){var e=' ';return e}e=" ";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:st["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",()=>{i["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="
This will remove the stack with the name "+this.hybridshowdata.bootstrapstackname+"

Services, networks, and secrets associated with the stack will be removed.
";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 g.dispatch("pipelineLLO/hybrid_servicerm",{token:this.token,bootstrapstackid:this.hybridshowdata.bootstrapstackid,bootstrapnameid:this.hybridshowdata.bootstrapnameid});i["default"].nextTick(()=>this.$refs.vuetable.refresh())}},async onActionHybrid_stackrm(t){if(t.isConfirmed){await g.dispatch("pipelineLLO/stackrm",{token:this.token,bootstrapstackid:this.hybridshowdata.bootstrapstackid});i["default"].nextTick(()=>this.$refs.vuetable.refresh())}},onError(t,e){var a=e,i="
Bootstrap "+t+"
";this.$swal({type:t,html:i+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},i["default"].nextTick(()=>this.$refs.vuetable.refresh())},resetFilter(){this.moreParams={},this.searchFor="",i["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 Popover: "+ ++this.counter,content:()=>"The date is:
"+new Date+""}},loadsuccess(t){var e=t.data.data;this.fielddata=e;e.length}},actions:{}},Kt=Ut,Zt=(a("7296"),Object(O["a"])(Kt,Ht,Yt,!1,null,null,null)),Qt=Zt.exports,Xt={components:{card:N,MydeployManageBootstrap:qt,MydeployManageView:Qt},data(){return{loading:!1,consoleView:"off",productIndex:1}},mounted(){},beforeDestroy(){},created(){}},Wt=Xt,te=Object(O["a"])(Wt,Tt,Gt,!1,null,null,null),ee=te.exports,ae={name:"app",components:{NetworkTable:pt,ServicesTable:_t,ConnectServer:j,ManageServices:Ft,ManageDeploy:ee},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 i="Status
";i+="Agent is "+e+"
",i+="Server is "+a,this.$swal({type:"info",html:i,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1,cancelButtonText:"No, cancel!",showLoaderOnConfirm:!1,focusCancel:!0})}},async serverstatus(t){var e=g.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 g.getters["pipelineLLO/getsocketStatus"]}},watch:{socketStatus(t){console.log("watchok "+t),this.issocket=t}}},ie=ae,se=(a("034f"),Object(O["a"])(ie,s,o,!1,null,null,null)),oe=se.exports,ne=a("5886"),re=a("f2d6"),le=a.n(re),ce=(a("c059"),a("f87c")),de=a("8e27");i["default"].use(ne["default"]),i["default"].use(le.a);var ue=d.url_80;const pe=Object(de["io"])(ue,{autoConnect:!1,reconnection:!0,reconnectionDelay:500,maxReconnectionAttempts:1/0,pingInterval:25e3,pingTimeout:6e4,transports:["websocket","polling"],secure:!0,rejectUnauthorized:!1});i["default"].use(ce["a"],pe),i["default"].use(r["b"]);i["default"].component("ValidationProvider",U["a"]),i["default"].config.productionTip=!1,new i["default"]({el:"#app",store:g,wait:new le.a,render:t=>t(oe)})},"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.b116901b.js.map