import{G as A}from"./constants.fe8bda37.js";import{q as v,g as T,c as x,a as D,j as L,l as B}from"./index.ed1fc0db.js";import{C as I}from"./Card.17b56f9a.js";import{C as O}from"./Tabs.fefb55da.js";import{_ as w}from"./iphone-frame.d837f811.js";import{_ as M}from"./Analyze.7ac15f41.js";import{C as N}from"./Tooltip.447e44bb.js";import{S as G}from"./Refresh.1ce2962b.js";import{S as V}from"./Trash.263ee9c7.js";import"./translations.d159963e.js";import{_ as q}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as o}from"./default-i18n.20001971.js";import{a6 as t,o as _,c as E,m as r,a2 as e,a1 as f,a as c,$ as u,a7 as H,ae as P,a4 as y}from"./runtime-core.esm-bundler.4f558f23.js";import"./helpers.2a6f0df7.js";import"./Caret.b694929e.js";import"./Close.8fb798f7.js";import"./Slide.3e3dec13.js";import"./runtime-dom.esm-bundler.f6259c83.js";import"./vue-router.97a610ed.js";import"./Button.e237bb50.js";import"./ProBadge.e183057c.js";import"./Information.2e3d122e.js";import"./GoogleSearchPreview.9c280f08.js";import"./Url.5bd27f81.js";import"./popup.92105c51.js";import"./params.af7ed354.js";import"./SeoSiteScore.88af9c09.js";import"./utils.53e2e8da.js";import"./Pencil.b89246dd.js";import"./Blur.0f162340.js";import"./DonutChart.a3a9bd2d.js";import"./AnimatedNumber.d98413fa.js";import"./numbers.9fc174f3.js";import"./Index.4c34b46f.js";import"./Loading.39bca920.js";import"./Book.6b29a263.js";import"./Lab.a91aaa7d.js";import"./ConnectStore.d1323f77.js";import"./SetupWizardStore.8024d915.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};
