import{G as A}from"./constants.bc5863fe.js";import{s as v,i as T,e as x,a as D,k as L,b as B}from"./index.4b887428.js";import{C as I}from"./Card.597c7ae2.js";import{C as O}from"./Tabs.13bb57b9.js";import{_ as w}from"./iphone-frame.af4f65aa.js";import{_ as M}from"./Analyze.bd0d8b1d.js";import{C as N}from"./Tooltip.23c7170d.js";import{S as G}from"./Refresh.f06a7e16.js";import{S as V}from"./Trash.87a7d946.js";import"./translations.e71e2202.js";import{_ as E}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as o}from"./default-i18n.65d58dd6.js";import{a6 as t,o as _,c as q,l as r,a2 as e,a1 as f,_ as c,$ as u,a7 as H,ae as P,a4 as y}from"./runtime-core.esm-bundler.ce5add0b.js";import"./helpers.633a054c.js";import"./Caret.cd869c5d.js";import"./Close.ccd53ef3.js";import"./Slide.3003ef51.js";import"./runtime-dom.esm-bundler.dc49ee3e.js";import"./vue-router.41e9d860.js";import"./Button.9a301412.js";import"./ProBadge.e6ec5f9a.js";import"./Information.98ebb530.js";import"./GoogleSearchPreview.ea4e7828.js";import"./Url.9f0afcb2.js";import"./popup.92105c51.js";import"./params.af7ed354.js";import"./SeoSiteScore.67f514f9.js";import"./utils.87f13de5.js";import"./Pencil.d82df6a1.js";import"./Blur.92695742.js";import"./DonutChart.16da12c9.js";import"./AnimatedNumber.97e7e241.js";import"./numbers.cdba2587.js";import"./Index.a4d7633a.js";import"./Loading.ecf9741f.js";import"./Book.f0bec69d.js";import"./Lab.39cf16a2.js";import"./ConnectStore.f1902987.js";import"./SetupWizardStore.f23d0bfe.js";const n="all-in-one-seo-pack",K={setup(){return{analyzerStore:v(),licenseStore:T(),optionsStore:x(),rootStore:D(),settingsStore:L()}},components:{CoreCard:I,CoreMainTabs:O,CoreSeoSiteAnalysisResults:w,CoreSeoSiteScoreAnalyze:M,CoreTooltip:N,SvgCircleQuestionMark:V,SvgRefresh:G},data(){return{internalDebounce:!1,homeResults:{results:[],score:null},strings:{completeSeoChecklist:o("Complete SEO Checklist",n),refreshResults:o("Refresh Results",n),cardDescription:o("These are the results our SEO Analzyer has generated after analyzing the homepage of your website.",n)+" "+B.getDocLink(A.learnMore,"seoAnalyzer",!0)}}},computed:{tabs(){var m;const s=(m=this.homeResults)==null?void 0:m.score;return[{slug:"all-items",label:o("All Items",n),analyze:{classColor:"black",count:s?this.analyzerStore.allItemsCount():0}},{slug:"critical",label:o("Important Issues",n),analyze:{classColor:"red",count:s?this.analyzerStore.criticalCount():0}},{slug:"recommended-improvements",label:o("Recommended Improvements",n),analyze:{classColor:"blue",count:s?this.analyzerStore.recommendedCount():0}},{slug:"good-results",label:o("Good Results",n),analyze:{classColor:"green",count:s?this.analyzerStore.goodCount():0}}]}},methods:{processChangeTab(s){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:"seoAuditChecklist",value:s}),setTimeout(()=>{this.internalDebounce=!1},50))},async refresh(){this.analyzerStore.analyzing=!0,await this.analyzerStore.runSiteAnalyzer({refresh:!0}),this.analyzerStore.getSiteAnalysisResults().then(()=>{this.homeResults=this.analyzerStore.homeResults,this.analyzerStore.analyzing=!1})}},mounted(){this.homeResults=this.analyzerStore.homeResults}},Q={class:"aioseo-seo-audit-checklist"},U=["innerHTML"],j={class:"label"};function F(s,m,J,a,l,p){var g;const S=t("core-seo-site-score-analyze"),h=t("core-card"),d=t("svg-circle-question-mark"),C=t("core-tooltip"),b=t("svg-refresh"),z=t("base-button"),k=t("core-main-tabs"),R=t("core-seo-site-analysis-results");return _(),q("div",Q,[r(h,{slug:"connectOrScore","hide-header":"","no-slide":"",toggles:!1},{default:e(()=>[r(S)]),_:1}),(a.rootStore.isPro&&a.licenseStore.licenseKey||a.optionsStore.internalOptions.internal.siteAnalysis.connectToken)&&((g=l.homeResults)!=null&&g.score)?(_(),f(h,{key:0,slug:"completeSeoChecklist","no-slide":"",toggles:!1},{header:e(()=>[c("span",null,u(l.strings.completeSeoChecklist),1),r(C,null,{tooltip:e(()=>[c("span",{innerHTML:l.strings.cardDescription},null,8,U)]),default:e(()=>[r(d)]),_:1})]),"header-extra":e(()=>[r(z,{class:"refresh-results",type:"gray",size:"small",onClick:p.refresh,loading:a.analyzerStore.analyzing},{default:e(()=>[r(b),H(" "+u(l.strings.refreshResults),1)]),_:1},8,["onClick","loading"])]),tabs:e(()=>[r(k,{tabs:p.tabs,showSaveButton:!1,active:a.settingsStore.settings.internalTabs.seoAuditChecklist,internal:"",onChanged:p.processChangeTab,"skinny-tabs":""},{"var-tab":e(({tab:i})=>[c("span",{class:P(["round",i.analyze.classColor])},u(i.analyze.count||0),3),c("span",j,u(i.label),1)]),_:1},8,["tabs","active","onChanged"])]),default:e(()=>{var i;return[((i=l.homeResults)==null?void 0:i.results)!==null?(_(),f(R,{key:0,section:a.settingsStore.settings.internalTabs.seoAuditChecklist,"all-results":l.homeResults.results,"show-instructions":""},null,8,["section","all-results"])):y("",!0)]}),_:1})):y("",!0)])}const we=E(K,[["render",F]]);export{we as default};
