관리-도구
편집 파일: Monsterinsights.bllldqqm.js
import{w as k,u as M}from"./index.nsvc8vqf.js";import{_ as x}from"./MiIntro.mhex8hfl.js";import{S as E}from"./External.h5te4wqm.js";import"./translations.lf9cwm9a.js";import{_ as P}from"./_plugin-vue_export-helper.oebm7xum.js";import{a,_ as e}from"./default-i18n.hohxoesu.js";import{v as d,c as o,a as l,C as h,G as I,F as u,x as p,t as i,b as c,k as v,l as _,o as r}from"./runtime-dom.esm-bundler.h3clfjuw.js";import"./helpers.fdpg7vgg.js";import"./Card.n68aovsj.js";import"./Tooltip.jx4casvt.js";import"./Caret.hnvbzqgq.js";import"./index.h076fivy.js";import"./Slide.dop8j51m.js";import"./LogoGear.gxsz2m6s.js";import"./em.opcgurq0.js";const n="all-in-one-seo-pack",A={setup(){return{pluginsStore:k(),rootStore:M()}},components:{CoreMiIntro:x,SvgExternal:E},data(){return{installingPlugin:!1,justInstalled:!1,strings:{miLink:a("<strong>%1$s</strong>",e("Click here",n)),installMi:a(e("Install %1$s",n),"MonsterInsights"),activateMi:a(e("Activate %1$s",n),"MonsterInsights"),activateEm:a(e("Activate %1$s",n),"ExactMetrics"),miInstalled:a(e("%1$s is Installed & Active",n),"MonsterInsights"),emInstalled:a(e("%1$s is Installed & Active",n),"ExactMetrics"),setupGA:e("Launch Setup Wizard",n),emInstallH:a(e("Activate %1$s",n),"ExactMetrics"),emInstallP:a(e("%1$s shows you exactly which content gets the most visits, so you can analyze and optimize it for higher conversions.",n),"ExactMetrics"),miemInstallH:e("Install",n),miInstallH:a(e("Activate %1$s",n),"MonsterInsights"),miInstallP:a(e("%1$s shows you exactly which content gets the most visits, so you can analyze and optimize it for higher conversions.",n),"MonsterInsights"),emWizardH:a(e("Setup %1$s",n),"ExactMetrics"),miWizardH:a(e("Setup %1$s",n),"MonsterInsights"),emWizardP:a(e("%1$s has an intuitive setup wizard to guide you through the setup process.",n),"ExactMetrics"),miWizardP:a(e("%1$s has an intuitive setup wizard to guide you through the setup process.",n),"MonsterInsights")}}},computed:{gaActivated(){return this.pluginsStore.plugins.miLite.activated||this.pluginsStore.plugins.emLite.activated||this.pluginsStore.plugins.miPro.activated||this.pluginsStore.plugins.emPro.activated},gaInstalled(){return this.pluginsStore.plugins.miLite.installed||this.pluginsStore.plugins.emLite.installed||this.pluginsStore.plugins.miPro.installed||this.pluginsStore.plugins.emPro.installed},miOnboardingUrl(){return this.prefersEm?`${this.rootStore.aioseo.urls.home}/wp-admin/admin.php?page=exactmetrics-onboarding`:`${this.rootStore.aioseo.urls.home}/wp-admin/admin.php?page=monsterinsights-onboarding`},prefersEm(){return(this.pluginsStore.plugins.emLite.installed||this.pluginsStore.plugins.emPro.installed)&&!this.pluginsStore.plugins.miLite.installed&&!this.pluginsStore.plugins.miPro.installed}},methods:{installMi(){this.installingPlugin=!0,this.pluginsStore.installPlugins([{plugin:this.prefersEm?"emLite":"miLite",type:"plugin"}]).then(()=>{this.installingPlugin=!1,this.justInstalled=!0,this.pluginsStore.plugins.miLite.activated=!0}).catch(f=>{console.error(f)})}}},z={class:"aioseo-analytics"},b={id:"aioseo-analytics",class:"aioseo-wrap aioseo-plugin-landing"},L=l("div",{class:"step-count"},[l("span",{class:"step-count__num"},"1")],-1),w={class:"content"},j={class:"step-title"},H={key:0},C={key:1},W={key:2},B={key:3},N={key:4},V=l("div",{class:"step-count"},[l("span",{class:"step-count__num"},"2")],-1),G={class:"content"},U={class:"step-title"},F={class:"step-body"},O={class:"step-title"},R={class:"step-body"};function D(f,T,q,m,s,t){const y=d("core-mi-intro"),S=d("svg-external"),g=d("base-button");return r(),o("div",z,[l("div",b,[h(y,{"prefers-em":t.prefersEm},null,8,["prefers-em"]),l("section",{class:I(s.justInstalled||t.gaActivated?"aioseo-card step step--completed":"aioseo-card step step--current")},[L,l("div",w,[l("h2",j,[t.gaInstalled?c("",!0):(r(),o(u,{key:0},[p(i(s.strings.miemInstallH)+" & ",1)],64)),t.prefersEm?(r(),o(u,{key:1},[p(i(s.strings.emInstallH),1)],64)):(r(),o(u,{key:2},[p(i(s.strings.miInstallH),1)],64))]),l("p",null,[t.prefersEm?(r(),o(u,{key:0},[p(i(s.strings.emInstallP),1)],64)):(r(),o(u,{key:1},[p(i(s.strings.miInstallP),1)],64))]),m.pluginsStore.plugins.miLite.canInstall?c("",!0):(r(),v(g,{key:0,type:"blue",size:"medium",tag:"a",target:"_blank",href:m.pluginsStore.plugins.miLite.wpLink},{default:_(()=>[h(S),p(" "+i(s.strings.installMi),1)]),_:1},8,["href"])),m.pluginsStore.plugins.miLite.canInstall?(r(),v(g,{key:1,loading:s.installingPlugin,type:s.justInstalled||t.gaActivated?"disabled":"blue",size:"medium",onClick:t.installMi},{default:_(()=>[!s.justInstalled&&!t.gaInstalled?(r(),o("span",H,i(s.strings.installMi),1)):c("",!0),(s.justInstalled||t.gaActivated)&&!t.prefersEm?(r(),o("span",C,i(s.strings.miInstalled),1)):c("",!0),(s.justInstalled||t.gaActivated)&&t.prefersEm?(r(),o("span",W,i(s.strings.emInstalled),1)):c("",!0),!s.justInstalled&&t.gaInstalled&&!t.gaActivated&&!t.prefersEm?(r(),o("span",B,i(s.strings.activateMi),1)):c("",!0),!s.justInstalled&&t.gaInstalled&&!t.gaActivated&&t.prefersEm?(r(),o("span",N,i(s.strings.activateEm),1)):c("",!0)]),_:1},8,["loading","type","onClick"])):c("",!0)])],2),l("section",{class:I(s.justInstalled||t.gaActivated?"aioseo-card step step--current":"aioseo-card step step--pending")},[V,l("div",G,[t.prefersEm?(r(),o(u,{key:0},[l("h2",U,i(s.strings.emWizardH),1),l("p",F,i(s.strings.emWizardP),1)],64)):(r(),o(u,{key:1},[l("h2",O,i(s.strings.miWizardH),1),l("p",R,i(s.strings.miWizardP),1)],64)),h(g,{disabled:!s.justInstalled&&!t.gaActivated,type:"blue",size:"medium",tag:"a",href:t.miOnboardingUrl},{default:_(()=>[p(i(s.strings.setupGA),1)]),_:1},8,["disabled","href"])])],2)])])}const os=P(A,[["render",D]]);export{os as default};