관리-도구
편집 파일: SeoAuditChecklist.dhls9bkw.js
import{G as j}from"./constants.hcfrsngk.js";import{k as R,e as B,r as I,v as N,a as D,u as E,j as U,g as P}from"./index.jlplx4ex.js";import{C as V}from"./Card.m3lmtg1o.js";import{C as F}from"./Tabs.jvzsqe7o.js";import{C as W}from"./SeoSiteAnalysisResults.k7y98kny.js";import{g as G,v as n,o as i,c as S,C as a,b as f,a as s,t as _,F as q,J as Y,k as T,l as d,x as L,w as J,f as K,y as Q,u as m,E as X,G as Z}from"./runtime-dom.esm-bundler.h3clfjuw.js";import{p as $}from"./popup.by9shv56.js";import{u as w}from"./SeoSiteScore.fvflqy2e.js";import{C as ee}from"./Blur.f3nyx4yc.js";import{C as oe}from"./Index.k250we0n.js";import{S as se}from"./Book.f6lktglp.js";import{S as te}from"./Lab.etdhkx39.js";import"./translations.b896ab1m.js";import{_ as H}from"./_plugin-vue_export-helper.oebm7xum.js";import{_ as p,a as x}from"./default-i18n.hohxoesu.js";import{C as re}from"./Tooltip.jx4casvt.js";import{S as ne}from"./Refresh.mu9plox9.js";import{a as ae}from"./index.npoectbv.js";import"./helpers.cti0cl6i.js";import"./Caret.hnvbzqgq.js";import"./Slide.dop8j51m.js";import"./vue-router.eypfdvl5.js";import"./TruSeoScore.kirz7zix.js";import"./postSlug.iva7u65b.js";import"./metabox.imp54zfh.js";import"./cleanForSlug.i05mvw2m.js";import"./toString.fflnj7pf.js";import"./_baseTrim.ohbpllmu.js";import"./_stringToArray.mpukyt2g.js";import"./_baseSet.c1i96bqt.js";import"./ProBadge.ab6jhp8x.js";import"./Information.djrr3pec.js";import"./Ellipse.mhzh8c2h.js";import"./Tags.bchklxw9.js";import"./GoogleSearchPreview.j1gqkkrz.js";import"./Gear.dx9icaxx.js";import"./params.k8e95b6q.js";const O="all-in-one-seo-pack",ie={setup(l){const{errorObject:y,strings:g}=w({score:G(l.score)});return{analyzerStore:R(),composableStrings:g,errorObject:y,links:B}},components:{CoreSiteScore:oe,SvgBook:se,SvgDannieLab:te},props:{score:Number,loading:Boolean,description:String,summary:{type:Object,default(){return{}}}},data(){return{strings:I({yourOverallSiteScore:p("Your Overall Site Score",O),goodResult:x(p("A very good score is between %1$s%3$d and %4$d%2$s.",O),"<strong>","</strong>",50,75),forBestResults:x(p("For best results, you should strive for %1$s%3$d and above%2$s.",O),"<strong>","</strong>",70),readUltimateSeoGuide:p("Read the Ultimate WordPress SEO Guide",O)},this.composableStrings)}}},le={class:"aioseo-seo-analysis"},ce={key:0,class:"seo-analysis-score"},ue={key:1,class:"seo-analysis-description"},me=["innerHTML"],de=["innerHTML"],pe={class:"d-flex"},_e=["href"],ge={key:2,class:"seo-analysis-error"},ye={class:"error-title"},Se=["innerHTML"],he={class:"error-action-buttons"};function fe(l,y,g,e,c,t){const k=n("core-site-score"),r=n("svg-book"),z=n("svg-dannie-lab"),v=n("base-button");return i(),S("div",le,[e.analyzerStore.analyzeError?f("",!0):(i(),S("div",ce,[a(k,{loading:g.loading,score:g.score,description:g.description,strokeWidth:1.75},null,8,["loading","score","description"])])),e.analyzerStore.analyzeError?f("",!0):(i(),S("div",ue,[s("h2",null,_(c.strings.yourOverallSiteScore),1),s("div",{innerHTML:c.strings.goodResult},null,8,me),s("div",{innerHTML:c.strings.forBestResults},null,8,de),s("div",pe,[a(r),s("a",{href:e.links.getDocUrl("ultimateGuide"),target:"_blank"},_(c.strings.readUltimateSeoGuide),9,_e)])])),e.analyzerStore.analyzeError&&e.errorObject?(i(),S("div",ge,[a(z),s("p",ye,_(c.strings.anErrorOccurred),1),s("p",{class:"error-description",innerHTML:e.errorObject.description},null,8,Se),s("div",he,[(i(!0),S(q,null,Y(e.errorObject.buttons,(o,b)=>(i(),T(v,{key:b,type:o.type,tag:o.tag?o.tag:"button",target:"_blank",href:o.url?o.url:"",size:"medium",loading:(o==null?void 0:o.runAgain)&&e.analyzerStore.analyzing,onClick:A=>o!=null&&o.runAgain?e.analyzerStore.runSiteAnalyzer():""},{default:d(()=>[L(_(o.text),1)]),_:2},1032,["type","tag","href","loading","onClick"]))),128))])])):f("",!0)])}const M=H(ie,[["render",fe]]),Ce={class:"aioseo-seo-site-score"},ke={key:1,class:"aioseo-seo-site-score-cta"},ze={__name:"Analyze",setup(l){const y=G(0),{connectWithAioseo:g,description:e,strings:c}=w({score:y}),t=R(),k=N(),r=D(),z=E();J(()=>r.internalOptions.internal.siteAnalysis.score,u=>{y.value=u});const v=K(()=>({recommended:t.recommendedCount(),critical:t.criticalCount(),good:t.goodCount()})),o=u=>{$(u,g,600,630,!0,["token"],b,A)},b=u=>k.saveConnectToken(u.token),A=u=>{u&&t.runSiteAnalyzer(),t.analyzing=!0};return Q(()=>{!r.internalOptions.internal.siteAnalysis.score&&r.internalOptions.internal.siteAnalysis.connectToken&&(t.analyzing=!0,t.runSiteAnalyzer()),y.value=r.internalOptions.internal.siteAnalysis.score}),(u,C)=>(i(),S("div",Ce,[m(r).internalOptions.internal.siteAnalysis.connectToken?f("",!0):(i(),T(m(ee),{key:0},{default:d(()=>[a(m(M),{score:85,description:m(e)},null,8,["description"])]),_:1})),m(r).internalOptions.internal.siteAnalysis.connectToken?f("",!0):(i(),S("div",ke,[s("a",{href:"#",onClick:C[0]||(C[0]=X(Re=>o(m(z).aioseo.urls.connect),["prevent"]))},_(m(g)),1),L(" "+_(m(c).toSeeYourSiteScore),1)])),m(r).internalOptions.internal.siteAnalysis.connectToken?(i(),T(m(M),{key:2,score:y.value,description:m(e),loading:u.analyzing,summary:v.value},null,8,["score","description","loading","summary"])):f("",!0)]))}},h="all-in-one-seo-pack",ve={setup(){return{analyzerStore:R(),licenseStore:U(),optionsStore:D(),rootStore:E(),settingsStore:P()}},components:{CoreCard:V,CoreMainTabs:F,CoreSeoSiteAnalysisResults:W,CoreSeoSiteScoreAnalyze:ze,CoreTooltip:re,SvgCircleQuestionMark:ae,SvgRefresh:ne},data(){return{internalDebounce:!1,strings:{completeSeoChecklist:p("Complete SEO Checklist",h),refreshResults:p("Refresh Results",h),cardDescription:p("These are the results our SEO Analzyer has generated after analyzing the homepage of your website.",h)+" "+B.getDocLink(j.learnMore,"seoAnalyzer",!0)}}},computed:{tabs(){const l=this.optionsStore.internalOptions.internal.siteAnalysis;return[{slug:"all-items",label:p("All Items",h),analyze:{classColor:"black",count:l.score?this.analyzerStore.allItemsCount():0}},{slug:"critical",label:p("Important Issues",h),analyze:{classColor:"red",count:l.score?this.analyzerStore.criticalCount():0}},{slug:"recommended-improvements",label:p("Recommended Improvements",h),analyze:{classColor:"blue",count:l.score?this.analyzerStore.recommendedCount():0}},{slug:"good-results",label:p("Good Results",h),analyze:{classColor:"green",count:l.score?this.analyzerStore.goodCount():0}}]}},methods:{processChangeTab(l){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:"seoAuditChecklist",value:l}),setTimeout(()=>{this.internalDebounce=!1},50))},refresh(){this.analyzerStore.analyzing=!0,this.analyzerStore.runSiteAnalyzer({refresh:!0})}}},be={class:"aioseo-seo-audit-checklist"},Ae=["innerHTML"],Oe={class:"label"};function Te(l,y,g,e,c,t){const k=n("core-seo-site-score-analyze"),r=n("core-card"),z=n("svg-circle-question-mark"),v=n("core-tooltip"),o=n("svg-refresh"),b=n("base-button"),A=n("core-main-tabs"),u=n("core-seo-site-analysis-results");return i(),S("div",be,[a(r,{slug:"connectOrScore","hide-header":"","no-slide":"",toggles:!1},{default:d(()=>[a(k)]),_:1}),(e.rootStore.isPro&&e.licenseStore.licenseKey||e.optionsStore.internalOptions.internal.siteAnalysis.connectToken)&&e.optionsStore.internalOptions.internal.siteAnalysis.score?(i(),T(r,{key:0,slug:"completeSeoChecklist","no-slide":"",toggles:!1},{header:d(()=>[s("span",null,_(c.strings.completeSeoChecklist),1),a(v,null,{tooltip:d(()=>[s("span",{innerHTML:c.strings.cardDescription},null,8,Ae)]),default:d(()=>[a(z)]),_:1})]),"header-extra":d(()=>[a(b,{class:"refresh-results",type:"gray",size:"small",onClick:t.refresh,loading:e.analyzerStore.analyzing},{default:d(()=>[a(o),L(" "+_(c.strings.refreshResults),1)]),_:1},8,["onClick","loading"])]),tabs:d(()=>[a(A,{tabs:t.tabs,showSaveButton:!1,active:e.settingsStore.settings.internalTabs.seoAuditChecklist,internal:"",onChanged:t.processChangeTab,"skinny-tabs":""},{"var-tab":d(({tab:C})=>[s("span",{class:Z(["round",C.analyze.classColor])},_(C.analyze.count||0),3),s("span",Oe,_(C.label),1)]),_:1},8,["tabs","active","onChanged"])]),default:d(()=>[a(u,{section:e.settingsStore.settings.internalTabs.seoAuditChecklist,"all-results":e.analyzerStore.getSiteAnalysisResults,"show-instructions":""},null,8,["section","all-results"])]),_:1})):f("",!0)])}const po=H(ve,[["render",Te]]);export{po as default};