import{d as k,G as R,a2 as v,w as A,b as T,a as x,j as L,C as O}from"./app-core.a6d808ce.js";import{C as D}from"./Card.bced93c3.js";import{C as w}from"./Tabs.c5d4ce83.js";import{_ as B}from"./iphone-frame.648d5ac0.js";import{_ as I}from"./Analyze.fa966930.js";import{C as M}from"./Tooltip.ae7a1028.js";import{S as N}from"./Refresh.5f8f183c.js";import{S as G}from"./Trash.d35f8063.js";import{_ as V}from"./_plugin-vue_export-helper.eefbdd86.js";import{aq as s,f as p,i as q,a0 as o,R as e,Q as h,M as S,j as i,P as E,U as c,ae as P}from"./vendor-vue-ui.de3ab35f.js";import{_ as r}from"./vendor-other.7b559694.js";import"./vendor-lodash.8e35bd59.js";import"./Caret.a017b70a.js";import"./Close.098d4b76.js";import"./Slide.e6618126.js";import"./Button.a549093d.js";import"./ProBadge.fd60f711.js";import"./Information.278772ab.js";import"./GoogleSearchPreview.a4e53c44.js";import"./Url.77200c12.js";import"./SeoSiteScore.a4faba55.js";import"./utils.eb306104.js";import"./Pencil.405b16d2.js";import"./Blur.5e231db6.js";import"./DonutChart.2a1276af.js";import"./AnimatedNumber.6652aea8.js";import"./Index.e1472b24.js";import"./Index.ffe21026.js";import"./Loading.56dfaff6.js";import"./Book.d930f5e6.js";import"./Lab.1523a1dc.js";const n="all-in-one-seo-pack",j={setup(){return{analyzerStore:O(),licenseStore:L(),optionsStore:x(),rootStore:T(),settingsStore:A(),sensitiveOptionsStore:v()}},components:{CoreCard:D,CoreMainTabs:w,CoreSeoSiteAnalysisResults:B,CoreSeoSiteScoreAnalyze:I,CoreTooltip:M,SvgCircleQuestionMark:G,SvgRefresh:N},data(){return{internalDebounce:!1,homeResults:{results:[],score:null},strings:{completeSeoChecklist:r("Complete SEO Checklist",n),refreshResults:r("Refresh Results",n),cardDescription:r("These are the results our SEO Analzyer has generated after analyzing the homepage of your website.",n)+" "+k.getDocLink(R.learnMore,"seoAnalyzer",!0)}}},computed:{tabs(){const t=this.homeResults?.score;return[{slug:"all-items",label:r("All Items",n),analyze:{classColor:"black",count:t?this.analyzerStore.allItemsCount():0}},{slug:"critical",label:r("Important Issues",n),analyze:{classColor:"red",count:t?this.analyzerStore.criticalCount():0}},{slug:"recommended-improvements",label:r("Recommended Improvements",n),analyze:{classColor:"blue",count:t?this.analyzerStore.recommendedCount():0}},{slug:"good-results",label:r("Good Results",n),analyze:{classColor:"green",count:t?this.analyzerStore.goodCount():0}}]}},methods:{processChangeTab(t){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:"seoAuditChecklist",value:t}),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}},H={class:"aioseo-seo-audit-checklist"},Q=["innerHTML"],U={class:"label"};function K(t,F,J,a,l,u){const g=s("core-seo-site-score-analyze"),_=s("core-card"),f=s("svg-circle-question-mark"),y=s("core-tooltip"),d=s("svg-refresh"),C=s("base-button"),b=s("core-main-tabs"),z=s("core-seo-site-analysis-results");return p(),q("div",H,[o(_,{slug:"connectOrScore","hide-header":"","no-slide":"",toggles:!1},{default:e(()=>[o(g)]),_:1}),(a.rootStore.isPro&&a.sensitiveOptionsStore.hasLicenseKey||a.sensitiveOptionsStore.hasSiteAnalysisConnectToken)&&l.homeResults?.score?(p(),h(_,{key:0,slug:"completeSeoChecklist","no-slide":"",toggles:!1},{header:e(()=>[i("span",null,c(l.strings.completeSeoChecklist),1),o(y,null,{tooltip:e(()=>[i("span",{innerHTML:l.strings.cardDescription},null,8,Q)]),default:e(()=>[o(f)]),_:1})]),"header-extra":e(()=>[o(C,{class:"refresh-results",type:"gray",size:"small",onClick:u.refresh,loading:a.analyzerStore.analyzing},{default:e(()=>[o(d),P(" "+c(l.strings.refreshResults),1)]),_:1},8,["onClick","loading"])]),tabs:e(()=>[o(b,{tabs:u.tabs,showSaveButton:!1,active:a.settingsStore.settings.internalTabs.seoAuditChecklist,internal:"",onChanged:u.processChangeTab,"skinny-tabs":""},{"var-tab":e(({tab:m})=>[i("span",{class:E(["round",m.analyze.classColor])},c(m.analyze.count||0),3),i("span",U,c(m.label),1)]),_:1},8,["tabs","active","onChanged"])]),default:e(()=>[l.homeResults?.results!==null?(p(),h(z,{key:0,section:a.settingsStore.settings.internalTabs.seoAuditChecklist,"all-results":l.homeResults.results,"show-instructions":""},null,8,["section","all-results"])):S("",!0)]),_:1})):S("",!0)])}const Ae=V(j,[["render",K]]);export{Ae as default};
