import{d as k,G as R,h as A,b as v,x as T,k as x,y as D}from"./app-core.82d0a9b8.js";import{C as L}from"./Card.2051539b.js";import{C as B}from"./Tabs.8e508d9e.js";import{_ as I}from"./iphone-frame.99092a8a.js";import{_ as M}from"./Analyze.97cdae25.js";import{C as O}from"./Tooltip.16bec62e.js";import{S as w}from"./Refresh.77921d7f.js";import{S as N}from"./Trash.9c01fca5.js";import{_ as G}from"./_plugin-vue_export-helper.eefbdd86.js";import{as as s,f as p,i as V,a0 as o,R as e,Q as h,M as g,j as i,P as E,U as c,ae as P}from"./vendor-vue-ui.02763c14.js";import{_ as r}from"./vendor-other.2cdd5822.js";import"./vendor-datetime.430013a3.js";import"./vendor-lodash.f9514987.js";import"./Caret.1dd03f59.js";import"./Close.ed64f0a2.js";import"./Slide.59825bf3.js";import"./Button.b03184b6.js";import"./ProBadge.e8abb23c.js";import"./Information.994a9b26.js";import"./GoogleSearchPreview.d41069ca.js";import"./Url.98506653.js";import"./SeoSiteScore.988d72f6.js";import"./utils.5eebca08.js";import"./Pencil.b091de6b.js";import"./Blur.a74558b3.js";import"./DonutChart.47a3364a.js";import"./AnimatedNumber.88b07a06.js";import"./Index.9b9c860d.js";import"./Loading.d20bba52.js";import"./Book.764f61e7.js";import"./Lab.dd0edba3.js";const n="all-in-one-seo-pack",q={setup(){return{analyzerStore:D(),licenseStore:x(),optionsStore:T(),rootStore:v(),settingsStore:A()}},components:{CoreCard:L,CoreMainTabs:B,CoreSeoSiteAnalysisResults:I,CoreSeoSiteScoreAnalyze:M,CoreTooltip:O,SvgCircleQuestionMark:N,SvgRefresh:w},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 j(t,K,F,a,l,u){const y=s("core-seo-site-score-analyze"),_=s("core-card"),f=s("svg-circle-question-mark"),S=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(),V("div",H,[o(_,{slug:"connectOrScore","hide-header":"","no-slide":"",toggles:!1},{default:e(()=>[o(y)]),_:1}),(a.rootStore.isPro&&a.licenseStore.licenseKey||a.optionsStore.internalOptions.internal.siteAnalysis.connectToken)&&l.homeResults?.score?(p(),h(_,{key:0,slug:"completeSeoChecklist","no-slide":"",toggles:!1},{header:e(()=>[i("span",null,c(l.strings.completeSeoChecklist),1),o(S,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"])):g("",!0)]),_:1})):g("",!0)])}const Ae=G(q,[["render",j]]);export{Ae as default};
