import{G as A}from"./constants.cb29e214.js";import{q as v,g as T,c as x,a as D,j as L,l as B}from"./index.e0fdfdc6.js";import{C as I}from"./Card.a415c187.js";import{C as O}from"./Tabs.9cad5d60.js";import{_ as w}from"./iphone-frame.05faf69c.js";import{_ as M}from"./Analyze.0f97d4d1.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.5e539ab1.js";import{_ as q}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as o}from"./default-i18n.368c2d5c.js";import{a6 as t,o as _,c as E,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.b1696305.js";import"./Caret.cd869c5d.js";import"./Close.ccd53ef3.js";import"./Slide.3003ef51.js";import"./runtime-dom.esm-bundler.dc49ee3e.js";import"./vue-router.53cc8f39.js";import"./Button.277f0e3d.js";import"./ProBadge.e6ec5f9a.js";import"./Information.98ebb530.js";import"./GoogleSearchPreview.bbe31655.js";import"./Url.1c574b17.js";import"./popup.92105c51.js";import"./params.af7ed354.js";import"./SeoSiteScore.326bb2a0.js";import"./utils.ba24f4cb.js";import"./Pencil.d82df6a1.js";import"./Blur.92695742.js";import"./DonutChart.2ca39914.js";import"./AnimatedNumber.987856b6.js";import"./numbers.5e9084c0.js";import"./Index.1ea6ab80.js";import"./Loading.ecf9741f.js";import"./Book.f0bec69d.js";import"./Lab.39cf16a2.js";import"./ConnectStore.fa786445.js";import"./SetupWizardStore.fef34770.js";const n="all-in-one-seo-pack",j={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}},K={class:"aioseo-seo-audit-checklist"},Q=["innerHTML"],U={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"),z=t("svg-refresh"),b=t("base-button"),k=t("core-main-tabs"),R=t("core-seo-site-analysis-results");return _(),E("div",K,[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,Q)]),default:e(()=>[r(d)]),_:1})]),"header-extra":e(()=>[r(b,{class:"refresh-results",type:"gray",size:"small",onClick:p.refresh,loading:a.analyzerStore.analyzing},{default:e(()=>[r(z),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",U,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=q(j,[["render",F]]);export{we as default};
