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.61d75c0b.js";import{C as L}from"./Card.357796d1.js";import{C as B}from"./Tabs.eadf9edf.js";import{_ as I}from"./iphone-frame.d53c95ea.js";import{_ as M}from"./Analyze.e16a478b.js";import{C as O}from"./Tooltip.7f0ce0d2.js";import{S as w}from"./Refresh.a1394131.js";import{S as N}from"./Trash.effd183e.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.d70c869f.js";import{_ as r}from"./vendor-other.2cdd5822.js";import"./vendor-datetime.430013a3.js";import"./vendor-lodash.f9514987.js";import"./Caret.c4a084e6.js";import"./Close.cee3494e.js";import"./Slide.4a56936c.js";import"./Button.7fa2ada4.js";import"./ProBadge.3cd57c7c.js";import"./Information.c3ceadd3.js";import"./GoogleSearchPreview.f7d1d433.js";import"./Url.049479ea.js";import"./SeoSiteScore.a08bd642.js";import"./utils.51785cc7.js";import"./Pencil.acabfd26.js";import"./Blur.d9f10327.js";import"./DonutChart.4dd7eab2.js";import"./AnimatedNumber.4be1f885.js";import"./Index.74a77fdc.js";import"./Loading.feb676f0.js";import"./Book.b8e27bdf.js";import"./Lab.c77a19cd.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};
