관리-도구
편집 파일: SeoStatistics.72582a25.js
import{j as v,m as H,u as q,l as B}from"./index.5a710757.js";import{u as z}from"./vue3-apexcharts.8b5abfad.js";import{C as I}from"./Blur.31bfcf06.js";import{C as M}from"./Card.2a757b17.js";import{G as U}from"./Graph.4f83fda6.js";import{G as E,a as G}from"./Row.f01f32cd.js";import{P as O}from"./PostsTable.7ad3344c.js";import{S as N}from"./SeoStatisticsOverview.6d9fb182.js";import"./translations.12335a6a.js";import{_ as D}from"./_plugin-vue_export-helper.249dac1d.js";import{_ as l}from"./default-i18n.54b5d8cd.js";import{v as n,o as d,k as b,l as o,a as L,C as a,x as y,t as w,c as F,u as s,b as x}from"./runtime-dom.esm-bundler.6789c400.js";import{C as V}from"./Index.c0a0a208.js";import{R as A}from"./RequiredPlans.7723218f.js";import{r as W}from"./params.764403f6.js";import{u as $}from"./License.0d80c86e.js";import"./helpers.f95d5840.js";import"./Tooltip.b6b45c85.js";import"./Caret.662da1f3.js";import"./index.01e1b194.js";import"./Slide.d0517fb0.js";import"./numbers.b55b32c5.js";import"./PostTypes.dc684c4f.js";import"./Statistic.c0b0ca91.js";import"./_baseClone.50c6045c.js";import"./_arrayEach.f4f00336.js";import"./_getTag.8dc22eac.js";import"./vue-router.fc4966b9.js";import"./datetime.cb3980ce.js";import"./WpTable.40f759ac.js";import"./ScrollTo.97c9805f.js";import"./license.03044dbc.js";import"./upperFirst.96c04516.js";import"./_stringToArray.08127ca9.js";import"./toString.1401d490.js";import"./ScoreButton.e2a31604.js";import"./Table.9be344df.js";import"./Download.6a0d8455.js";import"./IndexStatus.d0fe7619.js";import"./CheckSolid.9e151b0e.js";import"./Calendar.4686ac3f.js";import"./Mobile.3fcac169.js";import"./Checkmark.32f79576.js";import"./ExclamationSolid.8e60a4a3.js";import"./Link.dc972d1e.js";import"./constants.2019bcb3.js";import"./addons.ef42f038.js";const m="all-in-one-seo-pack",j={setup(){return{searchStatisticsStore:v()}},components:{CoreBlur:I,CoreCard:M,Graph:U,GridColumn:E,GridRow:G,PostsTable:O,SeoStatisticsOverview:N},data(){return{strings:{seoStatisticsCard:l("SEO Statistics",m),seoStatisticsTooltip:l("The following SEO Statistics graphs are useful metrics for understanding the visibility of your website or pages in search results and can help you identify trends or changes over time.<br /><br />Note: This data is capped at the top 100 keywords per day to speed up processing and to help you prioritize your SEO efforts, so while the data may seem inconsistent with Google Search Console, this is intentional.",m),contentCard:l("Content",m),postsTooltip:l("These lists can be useful for understanding the performance of specific pages or posts and identifying opportunities for improvement. For example, the top winning content may be good candidates for further optimization or promotion, while the top losing may need to be reevaluated and potentially updated.",m)},defaultPages:{rows:[],totals:{page:0,pages:0,total:0}}}},computed:{series(){var c,e,r,i;return!((e=(c=this.searchStatisticsStore.data)==null?void 0:c.seoStatistics)!=null&&e.statistics)||!((i=(r=this.searchStatisticsStore.data)==null?void 0:r.seoStatistics)!=null&&i.intervals)?[]:[{name:l("Search Impressions",m),data:this.searchStatisticsStore.data.seoStatistics.intervals.map(t=>({x:t.date,y:t.impressions})),legend:{total:this.searchStatisticsStore.data.seoStatistics.statistics.impressions}},{name:l("Search Clicks",m),data:this.searchStatisticsStore.data.seoStatistics.intervals.map(t=>({x:t.date,y:t.clicks})),legend:{total:this.searchStatisticsStore.data.seoStatistics.statistics.clicks}}]}}},J={class:"aioseo-search-statistics-dashboard"},K=["innerHTML"];function Q(c,e,r,i,t,S){const f=n("seo-statistics-overview"),C=n("graph"),g=n("core-card"),T=n("posts-table"),k=n("grid-column"),P=n("grid-row"),u=n("core-blur");return d(),b(u,null,{default:o(()=>[L("div",J,[a(P,null,{default:o(()=>[a(k,null,{default:o(()=>[a(g,{class:"aioseo-seo-statistics-card",slug:"seoPerformance","header-text":t.strings.seoStatisticsCard,toggles:!1,"no-slide":""},{tooltip:o(()=>[L("span",{innerHTML:t.strings.seoStatisticsTooltip},null,8,K)]),default:o(()=>[a(f,{statistics:["impressions","clicks","ctr","position"],"show-graph":!1,view:"side-by-side"}),a(C,{"multi-axis":"",series:S.series,"legend-style":"simple"},null,8,["series"])]),_:1},8,["header-text"]),a(g,{slug:"posts","header-text":t.strings.contentCard,toggles:!1,"no-slide":""},{tooltip:o(()=>[y(w(t.strings.postsTooltip),1)]),default:o(()=>{var p,_,R;return[a(T,{posts:((R=(_=(p=i.searchStatisticsStore.data)==null?void 0:p.seoStatistics)==null?void 0:_.pages)==null?void 0:R.paginated)||t.defaultPages,columns:["postTitle","indexStatus","seoScore","clicksSortable","impressionsSortable","positionSortable","diffPositionSortable"],"show-items-per-page":"","show-table-footer":""},null,8,["posts"])]}),_:1},8,["header-text"])]),_:1})]),_:1})])]),_:1})}const X=D(j,[["render",Q]]),Y={class:"aioseo-search-statistics-seo-statistics"},Z={__name:"Index",setup(c){const{strings:e}=z(),r=H(),i=v(),t=q();return(S,f)=>(d(),F("div",Y,[s(i).shouldShowSampleReports?x("",!0):(d(),b(s(X),{key:0})),s(i).shouldShowSampleReports?x("",!0):(d(),b(s(V),{key:1,"cta-link":s(B).getPricingUrl("search-statistics","search-statistics-upsell","seo-statistics"),"button-text":s(e).ctaButtonText,"learn-more-link":s(B).getUpsellUrl("search-statistics","seo-statistics",s(t).isPro?"pricing":"liteUpgrade"),"cta-second-button-action":"",onCtaSecondButtonClick:s(i).showSampleReports,"second-button-text":s(e).ctaSecondButtonText,"cta-second-button-new-badge":"","cta-second-button-visible":"","feature-list":[s(e).feature1,s(e).feature2,s(e).feature3,s(e).feature4],"align-top":"","hide-bonus":!s(r).isUnlicensed},{"header-text":o(()=>[y(w(s(e).ctaHeader),1)]),description:o(()=>[a(s(A),{"core-feature":["search-statistics"]}),y(" "+w(s(e).ctaDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link","onCtaSecondButtonClick","second-button-text","feature-list","hide-bonus"]))]))}},h="all-in-one-seo-pack",tt={setup(){return{searchStatisticsStore:v()}},components:{CoreCard:M,Graph:U,GridColumn:E,GridRow:G,PostsTable:O,SeoStatisticsOverview:N},data(){return{initialTableFilter:"",strings:{seoStatisticsCard:l("SEO Statistics",h),seoStatisticsTooltip:l("The following SEO Statistics graphs are useful metrics for understanding the visibility of your website or pages in search results and can help you identify trends or changes over time.<br /><br />Note: This data is capped at the top 100 keywords per day to speed up processing and to help you prioritize your SEO efforts, so while the data may seem inconsistent with Google Search Console, this is intentional.",h),contentCard:l("Content Performance",h),postsTooltip:l("These lists can be useful for understanding the performance of specific pages or posts and identifying opportunities for improvement. For example, the top winning content may be good candidates for further optimization or promotion, while the top losing may need to be reevaluated and potentially updated.",h)},defaultPages:{rows:[],totals:{page:0,pages:0,total:0}}}},computed:{series(){var c,e,r,i;return!((e=(c=this.searchStatisticsStore.data)==null?void 0:c.seoStatistics)!=null&&e.statistics)||!((i=(r=this.searchStatisticsStore.data)==null?void 0:r.seoStatistics)!=null&&i.intervals)?[]:[{name:l("Search Impressions",h),data:this.searchStatisticsStore.data.seoStatistics.intervals.map(t=>({x:t.date,y:t.impressions})),legend:{total:this.searchStatisticsStore.data.seoStatistics.statistics.impressions}},{name:l("Search Clicks",h),data:this.searchStatisticsStore.data.seoStatistics.intervals.map(t=>({x:t.date,y:t.clicks})),legend:{total:this.searchStatisticsStore.data.seoStatistics.statistics.clicks}}]}},beforeMount(){var e,r,i;const c=new URLSearchParams(((e=window.location)==null?void 0:e.search)||"")||{};if(c.has("table-filter")||(i=(r=this.$route)==null?void 0:r.query)!=null&&i.tab){switch(c.get("table-filter")||this.$route.query.tab){case"TopLosingPages":this.initialTableFilter="topLosing";break;case"TopWinningPages":this.initialTableFilter="topWinning";break;default:this.initialTableFilter="all"}this.$route.query["table-filter"]=void 0,W("table-filter")}},mounted(){this.searchStatisticsStore.isConnected&&this.searchStatisticsStore.loadInitialData()}},st={class:"aioseo-search-statistics-site-statistics"},et=["innerHTML"];function it(c,e,r,i,t,S){const f=n("seo-statistics-overview"),C=n("graph"),g=n("core-card"),T=n("posts-table"),k=n("grid-column"),P=n("grid-row");return d(),F("div",st,[a(P,null,{default:o(()=>[a(k,null,{default:o(()=>[a(g,{class:"aioseo-seo-statistics-card",slug:"seoPerformance","header-text":t.strings.seoStatisticsCard,toggles:!1,"no-slide":""},{tooltip:o(()=>[L("span",{innerHTML:t.strings.seoStatisticsTooltip},null,8,et)]),default:o(()=>{var u,p;return[a(f,{statistics:["impressions","clicks","ctr","position"],"show-graph":!1,view:"side-by-side"}),a(C,{"multi-axis":"",series:S.series,loading:i.searchStatisticsStore.loading.seoStatistics,"legend-style":"simple",timelineMarkers:(p=(u=i.searchStatisticsStore.data)==null?void 0:u.seoStatistics)==null?void 0:p.timelineMarkers},null,8,["series","loading","timelineMarkers"])]}),_:1},8,["header-text"]),a(g,{slug:"posts","header-text":t.strings.contentCard,toggles:!1,"no-slide":""},{tooltip:o(()=>[y(w(t.strings.postsTooltip),1)]),default:o(()=>{var u,p,_;return[a(T,{posts:((_=(p=(u=i.searchStatisticsStore.data)==null?void 0:u.seoStatistics)==null?void 0:p.pages)==null?void 0:_.paginated)||t.defaultPages,columns:["postTitle","indexStatus","seoScore","clicksSortable","impressionsSortable","positionSortable"],"append-columns":{all:"diffPosition",topLosing:"diffDecay",topWinning:"diffDecay"},isLoading:i.searchStatisticsStore.loading.seoStatistics,initialFilter:t.initialTableFilter,"show-items-per-page":"","show-table-footer":""},null,8,["posts","isLoading","initialFilter"])]}),_:1},8,["header-text"])]),_:1})]),_:1})])}const ot=D(tt,[["render",it]]),at={class:"aioseo-search-statistics-seo-statistics"},Zt={__name:"SeoStatistics",setup(c){const e=v(),{shouldShowLite:r,shouldShowMain:i,shouldShowUpgrade:t}=$();return(S,f)=>(d(),F("div",at,[s(i)("search-statistics","seo-statistics")||s(e).shouldShowSampleReports?(d(),b(s(ot),{key:0})):x("",!0),(s(t)("search-statistics","seo-statistics")||s(r))&&!s(e).shouldShowSampleReports?(d(),b(s(Z),{key:1})):x("",!0)]))}};export{Zt as default};