Files
2026-04-28 15:13:50 +02:00

2 lines
5.6 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{b as M,Z as P}from"./app-core.b862f9c8.js";import{_ as E}from"./MiIntro.cb7ef47d.js";import{S as x}from"./External.e3085be4.js";import{_ as A}from"./_plugin-vue_export-helper.eefbdd86.js";import{aq as h,f as r,i as o,j as l,a0 as _,P as y,O as u,ae as p,U as e,M as c,Q as v,R as f}from"./vendor-vue-ui.f00a1236.js";import{a,_ as i}from"./vendor-other.7b559694.js";import"./vendor-lodash.d3ad8b99.js";import"./Card.482ec741.js";import"./Tooltip.cb3a78f6.js";import"./Caret.e6c9f7cc.js";import"./Trash.c3e8db0b.js";import"./Close.de45e465.js";import"./Slide.805812ec.js";import"./LogoGear.2987174d.js";import"./Pencil.1ca5815a.js";import"./em.7625294c.js";const n="all-in-one-seo-pack",z={setup(){return{pluginsStore:P(),rootStore:M()}},components:{CoreMiIntro:E,SvgExternal:x},data(){return{installingPlugin:!1,justInstalled:!1,strings:{miLink:a("<strong>%1$s</strong>",i("Click here",n)),installMi:a(i("Install %1$s",n),"MonsterInsights"),activateMi:a(i("Activate %1$s",n),"MonsterInsights"),activateEm:a(i("Activate %1$s",n),"ExactMetrics"),miInstalled:a(i("%1$s is Installed & Active",n),"MonsterInsights"),emInstalled:a(i("%1$s is Installed & Active",n),"ExactMetrics"),setupGA:i("Launch Setup Wizard",n),emInstallH:a(i("Activate %1$s",n),"ExactMetrics"),emInstallP:a(i("%1$s shows you exactly which content gets the most visits, so you can analyze and optimize it for higher conversions.",n),"ExactMetrics"),miemInstallH:i("Install",n),miInstallH:a(i("Activate %1$s",n),"MonsterInsights"),miInstallP:a(i("%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(i("Setup %1$s",n),"ExactMetrics"),miWizardH:a(i("Setup %1$s",n),"MonsterInsights"),emWizardP:a(i("%1$s has an intuitive setup wizard to guide you through the setup process.",n),"ExactMetrics"),miWizardP:a(i("%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(I=>{console.error(I)})}}},b={class:"aioseo-analytics"},L={id:"aioseo-analytics",class:"aioseo-wrap aioseo-plugin-landing"},j={class:"content"},w={class:"step-title"},H={key:0},W={key:1},C={key:2},B={key:3},N={key:4},U={class:"content"},V={class:"step-title"},O={class:"step-body"},R={class:"step-title"},G={class:"step-body"};function q(I,m,D,g,s,t){const S=h("core-mi-intro"),k=h("svg-external"),d=h("base-button");return r(),o("div",b,[l("div",L,[_(S,{"prefers-em":t.prefersEm},null,8,["prefers-em"]),l("section",{class:y(s.justInstalled||t.gaActivated?"aioseo-card step step--completed":"aioseo-card step step--current")},[m[0]||(m[0]=l("div",{class:"step-count"},[l("span",{class:"step-count__num"},"1")],-1)),l("div",j,[l("h2",w,[t.gaInstalled?c("",!0):(r(),o(u,{key:0},[p(e(s.strings.miemInstallH)+" & ",1)],64)),t.prefersEm?(r(),o(u,{key:1},[p(e(s.strings.emInstallH),1)],64)):(r(),o(u,{key:2},[p(e(s.strings.miInstallH),1)],64))]),l("p",null,[t.prefersEm?(r(),o(u,{key:0},[p(e(s.strings.emInstallP),1)],64)):(r(),o(u,{key:1},[p(e(s.strings.miInstallP),1)],64))]),g.pluginsStore.plugins.miLite.canInstall?c("",!0):(r(),v(d,{key:0,type:"blue",size:"medium",tag:"a",target:"_blank",href:g.pluginsStore.plugins.miLite.wpLink},{default:f(()=>[_(k),p(" "+e(s.strings.installMi),1)]),_:1},8,["href"])),g.pluginsStore.plugins.miLite.canInstall?(r(),v(d,{key:1,loading:s.installingPlugin,type:s.justInstalled||t.gaActivated?"disabled":"blue",size:"medium",onClick:t.installMi},{default:f(()=>[!s.justInstalled&&!t.gaInstalled?(r(),o("span",H,e(s.strings.installMi),1)):c("",!0),(s.justInstalled||t.gaActivated)&&!t.prefersEm?(r(),o("span",W,e(s.strings.miInstalled),1)):c("",!0),(s.justInstalled||t.gaActivated)&&t.prefersEm?(r(),o("span",C,e(s.strings.emInstalled),1)):c("",!0),!s.justInstalled&&t.gaInstalled&&!t.gaActivated&&!t.prefersEm?(r(),o("span",B,e(s.strings.activateMi),1)):c("",!0),!s.justInstalled&&t.gaInstalled&&!t.gaActivated&&t.prefersEm?(r(),o("span",N,e(s.strings.activateEm),1)):c("",!0)]),_:1},8,["loading","type","onClick"])):c("",!0)])],2),l("section",{class:y(s.justInstalled||t.gaActivated?"aioseo-card step step--current":"aioseo-card step step--pending")},[m[1]||(m[1]=l("div",{class:"step-count"},[l("span",{class:"step-count__num"},"2")],-1)),l("div",U,[t.prefersEm?(r(),o(u,{key:0},[l("h2",V,e(s.strings.emWizardH),1),l("p",O,e(s.strings.emWizardP),1)],64)):(r(),o(u,{key:1},[l("h2",R,e(s.strings.miWizardH),1),l("p",G,e(s.strings.miWizardP),1)],64)),_(d,{disabled:!s.justInstalled&&!t.gaActivated,type:"blue",size:"medium",tag:"a",href:t.miOnboardingUrl},{default:f(()=>[p(e(s.strings.setupGA),1)]),_:1},8,["disabled","href"])])],2)])])}const as=A(z,[["render",q]]);export{as as default};