(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2d21eb84"],{d783:function(t,e,n){"use strict";n.r(e);var s={name:"Extension",data(){return{new_ver:0,new_ver_ce:"",ext_ver:"",isLoaded:0,intro_tab_index:0,dir_url:this.$cnf.dir_url,content:{tabs:[],conts:[]}}},components:{},mounted(){const e=this;setTimeout(()=>{var t=document.querySelector("body").getAttribute("ext-ver");t?e.ext_ver="(当前安装版本：V"+t+")":setTimeout(()=>{var t=document.body.getAttribute("ext-ver");e.ext_ver=t?"(当前安装版本：V"+t+")":"未检测到浏览器插件，确认是否已安装启用。"},3e3)},3e3)},created(){const n=this;this.$cnf.is_pro&&(this.$verify(t=>{t||(this.is_pro=0,this.$cnf.is_pro=0)}),this.$isPrdActive(this.$WB)),n.$api.getData({_ajax_nonce:n.$cnf._ajax_nonce,action:n.$cnf.action.act,op:"chk_ver_ce"}).then(t=>{t&&(n.new_ver_ce=t)}),window.sessionStorage.getItem("WBE_CONTENT_FOR_OPTIONS")?n.content=JSON.parse(window.sessionStorage.getItem("WBE_CONTENT_FOR_OPTIONS")):n.$api.getData({_ajax_nonce:n.$cnf._ajax_nonce,action:n.$cnf.action.act,op:"get_ce_cont"}).then(t=>{var e;t&&(e=(t=(new DOMParser).parseFromString(t,"text/html").querySelector("#J_pdDetail")).querySelectorAll(".section-title"),t=t.querySelectorAll(".wbe-section"),Array.prototype.forEach.call(e,t=>{t=t.innerHTML;n.content.tabs.push(t)}),Array.prototype.forEach.call(t,t=>{t=t.innerHTML;n.content.conts.push(t)}),e=JSON.stringify(n.content),window.sessionStorage.setItem("WBE_CONTENT_FOR_OPTIONS",e))})},methods:{downExtension(){var t=this;let e="https://www.wbolt.com/wb-api/v1/dl/extension?host="+window.location.href.toString().replace(/^(.*\/\/[^\/?#]*).*$/,"$1").replace(/^(http:\/\/|https:\/\/|\/\/)/i,"")+"&ver=";return t.$cnf.wb_ver&&t.$cnf.wb_ver.ver&&(e+=t.$cnf.wb_ver.ver),location.href=e,!1}}},n=n("2877"),n=Object(n.a)(s,function(){var n=this,t=n.$createElement,s=n._self._c||t;return s("div",{staticClass:"wbs-content-inner extension"},[s("div",{staticClass:"introduce-panel sc-wp wbs-main"},[n._m(0),s("div",{staticClass:"dl-bar"},[s("a",{staticClass:"wbs-btn",on:{click:function(t){return n.downExtension()}}},[n._v("立即下载安装")]),s("p",[n._v(" 最新版本：V"+n._s(n.new_ver_ce)+" "),n.ext_ver?s("span",[n._v(n._s(n.ext_ver))]):n._e()])]),s("div",{staticClass:"wbolt-products tabs-box intro-box"},[s("div",{staticClass:"tab-navs"},n._l(n.content.tabs,function(t,e){return s("div",{staticClass:"tab-nav-item",class:{current:n.intro_tab_index==e},on:{click:function(t){n.intro_tab_index=e}}},[s("span",[n._v(n._s(t))])])}),0),s("div",{staticClass:"tab-conts"},n._l(n.content.conts,function(t,e){return s("div",{staticClass:"tab-cont",class:{current:n.intro_tab_index==e},domProps:{innerHTML:n._s(t)}})}),0)])]),s("wbs-footer")],1)},[function(){var t=this,e=t.$createElement,e=t._self._c||e;return e("div",{staticClass:"ip-hd"},[e("strong",[t._v("插件助手")]),e("span",[t._v("用于配合WordPress插件执行部分任务，以提升站长工作效率。")])])}],!1,null,null,null);e.default=n.exports}}]);