(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{380:function(e,t,i){"use strict";i.r(t);var n=i(10),a=i.n(n),o=i(24),s={name:"help-view",props:["website"],data:function(){return{home:this.$Product.getURLForKey("innerHelp"),webview:null,isCanGoBack:!1,isCanGoForward:!1,isOnline:navigator.onLine,url:""}},computed:a()({},Object(o.mapState)(["isTrial"])),methods:{onHome:function(){this.webview.clearHistory(),this.webview.loadURL(this.home+"?t="+(new Date).getTime())}},mounted:function(){var e=this;this.url=this.website||this.home,console.log("[HV] website, home:",this.website,this.home),window.addEventListener("online",function(){this.isOnline=!0}),window.addEventListener("offline",function(){this.isOnline=!1}),this.$nextTick(function(){e.webview=document.getElementById("webview"),e.webview&&e.webview.addEventListener("dom-ready",function(){e.webview&&(e.webview.blur(),e.webview.focus(),e.isCanGoBack=e.webview.canGoBack(),e.isCanGoForward=e.webview.canGoForward())})})}},r=i(3),l=Object(r.a)(s,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{staticClass:"flexColBetween fullContent"},[i("el-header",{staticClass:"flexRowStart app-header",class:e.isTrial?"noTrialHeader":"trialHeader",staticStyle:{"align-items":"center"},attrs:{height:"60px"}},[i("image-button",{staticStyle:{"margin-left":"20px","-webkit-app-region":"no-drag","margin-top":"-2px"},attrs:{disabled:!e.isOnline,src:e.$Image("Home@2x.png")},on:{click:e.onHome}}),e._v(" "),i("image-button",{staticStyle:{"margin-left":"20px","-webkit-app-region":"no-drag"},attrs:{disabled:!e.isOnline||!e.isCanGoBack,src:e.$Image("Previous page@2x.png")},on:{click:function(){e.webview&&e.webview.goBack()}}}),e._v(" "),i("image-button",{staticStyle:{"margin-left":"20px","-webkit-app-region":"no-drag"},attrs:{disabled:!e.isOnline||!e.isCanGoForward,src:e.$Image("Next page@2x.png")},on:{click:function(){e.webview&&e.webview.goForward()}}})],1),e._v(" "),i("el-main",{staticClass:"flexColBetween upload-border",staticStyle:{flex:"1",width:"100%",border:"1px solid #ebeef5","border-right":"0","border-left":"0"}},[e.isOnline?i("webview",{staticStyle:{width:"100%",height:"100%"},attrs:{id:"webview",src:e.url,partition:"persist:webviewsession",plugins:""}}):i("div",{staticClass:"fullContent flexColCenter"},[i("auto-img",{staticStyle:{"margin-bottom":"40px"},attrs:{src:e.$Image("offline-default@2x.png")}}),e._v(" "),i("span",[e._v(e._s(e.$t("It seems that you are offline. Please check your internet connection.")))])],1)],1)],1)},[],!1,null,null,null);t.default=l.exports}}]);