import{G as A}from"./constants.41876895.js";import{t as v,j as T,a as x,b as D,n as L,c as w}from"./index.6205915e.js";import{C as B}from"./Card.1db76325.js";import{C as I}from"./Tabs.c595cb5a.js";import{_ as O}from"./iphone-frame.5f1a5476.js";import{_ as M}from"./Analyze.5089c4c6.js";import{C as N}from"./Tooltip.e5a30815.js";import{S as G}from"./Refresh.49ba0458.js";import{S as V}from"./Trash.544ebd43.js";import"./translations.e71e2202.js";import{_ as q}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as o}from"./default-i18n.65d58dd6.js";import{a7 as t,o as _,a3 as E,q as r,w as e,c as f,a4 as c,t as u,a as H,ae as P,b as y}from"./runtime-core.esm-bundler.50cb9e6d.js";import"./helpers.7981a424.js";import"./Caret.19d3d4d0.js";import"./Close.650e0e8f.js";import"./Slide.25bc4286.js";import"./runtime-dom.esm-bundler.36191dca.js";import"./vue-router.d5648d95.js";import"./Button.898cae57.js";import"./ProBadge.3bfca56c.js";import"./Information.2306f29d.js";import"./GoogleSearchPreview.3c490476.js";import"./Url.7104ea0a.js";import"./SeoSiteScore.13fd3035.js";import"./utils.8b91fbf4.js";import"./Pencil.1f4e936a.js";import"./Blur.73468424.js";import"./DonutChart.72b027fd.js";import"./AnimatedNumber.1915c79b.js";import"./numbers.cdba2587.js";import"./Index.7d1eb916.js";import"./Index.d517260b.js";import"./Loading.80cd60d2.js";import"./Book.e78c9ce0.js";import"./Lab.5125a4e1.js";const n="all-in-one-seo-pack",j={setup(){return{analyzerStore:v(),licenseStore:T(),optionsStore:x(),rootStore:D(),settingsStore:L()}},components:{CoreCard:B,CoreMainTabs:I,CoreSeoSiteAnalysisResults:O,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)+" "+w.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"),b=t("svg-refresh"),z=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(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",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};
