(function(t){function a(a){for(var n,o,l=a[0],r=a[1],c=a[2],u=0,p=[];u-1:a.default},on:{change:function(e){var n=a.default,s=e.target,i=!!s.checked;if(Array.isArray(n)){var o=null,l=t._i(n,o);s.checked?l<0&&t.$set(a,"default",n.concat([o])):l>-1&&t.$set(a,"default",n.slice(0,l).concat(n.slice(l+1)))}else t.$set(a,"default",i)}}}),t._v("\n "+t._s(a.name)+"\n "),a.installed?e("span",[e("i",[t._v("(installed)")])]):t._e()]),e("p",[t._v("\n "+t._s(a.description)+"\n ")])])])])}),0),!t.$root.$data.metadata.preexisting_install&&t.advanced?e("div",{staticClass:"subtitle is-6"},[t._v("Install Location")]):t._e(),!t.$root.$data.metadata.preexisting_install&&t.advanced?e("div",{staticClass:"field has-addons"},[e("div",{staticClass:"control is-expanded"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.$root.$data.install_location,expression:"$root.$data.install_location"}],staticClass:"input",attrs:{type:"text",placeholder:"Enter a install path here"},domProps:{value:t.$root.$data.install_location},on:{input:function(a){a.target.composing||t.$set(t.$root.$data,"install_location",a.target.value)}}})]),e("div",{staticClass:"control"},[e("a",{staticClass:"button is-dark",on:{click:t.select_file}},[t._v("\n Select\n ")])])]):t._e(),e("div",{staticClass:"is-right-floating is-bottom-floating"},[e("div",{staticClass:"field is-grouped"},[e("p",{staticClass:"control"},[t.$root.$data.config.hide_advanced||t.$root.$data.metadata.preexisting_install||t.advanced?t._e():e("a",{staticClass:"button is-medium",on:{click:function(a){t.advanced=!0}}},[t._v("Advanced...")])]),e("p",{staticClass:"control"},[t.$root.$data.metadata.preexisting_install?t._e():e("a",{staticClass:"button is-dark is-medium",on:{click:t.install}},[t._v("Install")])]),e("p",{staticClass:"control"},[t.$root.$data.metadata.preexisting_install?e("a",{staticClass:"button is-dark is-medium",on:{click:t.install}},[t._v("Modify")]):t._e()])])]),e("div",{staticClass:"field is-grouped is-left-floating is-bottom-floating"},[e("p",{staticClass:"control"},[t.$root.$data.metadata.preexisting_install?e("a",{staticClass:"button is-medium",on:{click:t.go_back}},[t._v("Back")]):t._e()])])])},$=[],k={name:"SelectPackages",data:function(){return{advanced:!1}},methods:{select_file:function(){window.external.invoke(s()({SelectInstallDir:{callback_name:"selectFileCallback"}}))},install:function(){this.$router.push("/install/regular")},go_back:function(){this.$router.go(-1)}}},w=k,C=Object(r["a"])(w,b,$,!1,null,null,null),x=C.exports,y=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"column has-padding"},[e("h4",{staticClass:"subtitle"},[t._v("An error occurred:")]),e("pre",[t._v(t._s(t.msg))]),e("div",{staticClass:"field is-grouped is-right-floating is-bottom-floating"},[e("p",{staticClass:"control"},[t.remaining?e("a",{staticClass:"button is-primary is-medium",on:{click:t.go_back}},[t._v("Back")]):t._e()])])])},O=[],P={name:"ErrorView",data:function(){return{msg:this.$route.params.msg,remaining:window.history.length>1}},methods:{go_back:function(){this.$router.go(-1)}}},T=P,j=Object(r["a"])(T,y,O,!1,null,null,null),E=j.exports,S=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"column has-padding"},[t.$root.$data.metadata.is_launcher||t.is_update?e("h4",{staticClass:"subtitle"},[t._v("Checking for updates...")]):t.is_uninstall?e("h4",{staticClass:"subtitle"},[t._v("Uninstalling...")]):t.is_updater_update?e("h4",{staticClass:"subtitle"},[t._v("Downloading self-update...")]):e("h4",{staticClass:"subtitle"},[t._v("Installing...")]),e("div",{domProps:{innerHTML:t._s(t.$root.$data.config.installing_message)}}),e("br"),e("div",{domProps:{innerHTML:t._s(t.progress_message)}}),e("progress",{staticClass:"progress is-info is-medium",attrs:{max:"100"},domProps:{value:t.progress}},[t._v("\n "+t._s(t.progress)+"%\n ")])])},L=[],I={name:"InstallPackages",data:function(){return{progress:0,progress_message:"Please wait...",is_uninstall:!1,is_updater_update:!1,is_update:!1,failed_with_error:!1,packages_installed:0}},created:function(){this.is_uninstall="uninstall"===this.$route.params.kind,this.is_updater_update="updater"===this.$route.params.kind,this.is_update="update"===this.$route.params.kind,console.log("Installer kind: "+this.$route.params.kind),this.install()},methods:{install:function(){for(var t=this,a=this.$root,e={},n=0;n0}},methods:{exit:function(){this.$root.exit()}}},D=U,J=Object(r["a"])(D,R,q,!1,null,null,null),N=J.exports,G=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"column has-padding"},[e("h4",{staticClass:"subtitle"},[t._v("Choose an option:")]),e("a",{staticClass:"button is-dark is-medium",on:{click:t.update}},[t._v("\n Update\n ")]),e("br"),e("br"),e("a",{staticClass:"button is-dark is-medium",on:{click:t.modify_packages}},[t._v("\n Modify\n ")]),e("br"),e("br"),e("a",{staticClass:"button is-dark is-medium",on:{click:t.prepare_uninstall}},[t._v("\n Uninstall\n ")]),t.show_uninstall?e("div",{staticClass:"modal is-active"},[e("div",{staticClass:"modal-background"}),e("div",{staticClass:"modal-card"},[e("header",{staticClass:"modal-card-head"},[e("p",{staticClass:"modal-card-title"},[t._v("Are you sure you want to uninstall "+t._s(t.$root.$data.attrs.name)+"?")])]),e("footer",{staticClass:"modal-card-foot"},[e("button",{staticClass:"button is-danger",on:{click:t.uninstall}},[t._v("Yes")]),e("button",{staticClass:"button",on:{click:t.cancel_uninstall}},[t._v("No")])])])]):t._e()])},Y=[],B={name:"ModifyView",data:function(){return{show_uninstall:!1}},methods:{update:function(){this.router.push("/install/update")},modify_packages:function(){this.router.push("/packages")},prepare_uninstall:function(){this.show_uninstall=!0},cancel_uninstall:function(){this.show_uninstall=!1},uninstall:function(){this.router.push("/install/uninstall")}}},V=B,W=Object(r["a"])(V,G,Y,!1,null,null,null),X=W.exports;i["a"].use(p["a"]);var F=new p["a"]({routes:[{path:"/config",name:"config",component:v},{path:"/packages",name:"packages",component:x},{path:"/install/:kind",name:"install",component:H},{path:"/showerr",name:"showerr",component:E},{path:"/complete/:uninstall/:update/:packages_installed",name:"complete",component:N},{path:"/modify",name:"modify",component:X},{path:"/",redirect:"/config"}]}),z=0;function K(t,a,e,n){void 0===e&&(e=Z),console.log("Making HTTP request to "+t);var s=new XMLHttpRequest;if(s.addEventListener("load",function(){200===this.status&&-1!==this.getResponseHeader("Content-Type").indexOf("application/json")?a(JSON.parse(this.responseText)):e(this.responseText)}),s.addEventListener("error",e),s.open(null==n?"GET":"POST",t+"?nocache="+z++,!0),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),null!=n){var i="";for(var o in n)n.hasOwnProperty(o)&&(""!==i&&(i+="&"),i+=encodeURIComponent(o)+"="+encodeURIComponent(n[o]));s.send(i)}else s.send()}function Q(t,a,e,n,s){var i=new XMLHttpRequest;console.log("Making streaming HTTP request to "+t),i.addEventListener("load",function(){200===this.status?e(this.responseText):n(this.responseText)});var o="",l=0;if(i.onreadystatechange=function(){if(i.readyState>2){var t;o+=i.responseText.substr(l);while((t=o.indexOf("\n"))>=0){var e=o.substring(0,t).trim();if(o=o.substring(t+1),0!==e.length){var n=JSON.parse(e);a(n)}}l=i.responseText.length}},i.addEventListener("error",n),i.open(null==s?"GET":"POST",t+"?nocache="+z++,!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),null!=s){var r="";for(var c in s)s.hasOwnProperty(c)&&(""!==r&&(r+="&"),r+=encodeURIComponent(c)+"="+encodeURIComponent(s[c]));i.send(r)}else i.send()}function Z(t){console.error("A AJAX request failed, and was not caught:"),console.error(t)}e("5abe");function tt(t){console[t]=function(){var a=Array.prototype.slice.apply(arguments).join(" ");window.external.invoke(s()({Log:{kind:t,msg:a}}))}}if(i["a"].config.productionTip=!1,void 0!==window.external&&void 0!==window.external.invoke){window.onerror=function(t,a,e){old_onerror(t,a,e),window.external.invoke(s()({Log:{kind:"error",msg:t+" @ "+a+":"+e}}))};for(var at=["log","warn","error"],et=0;et