import{A as w,f as x}from"./links.7c59a081.js";import{C as R}from"./index.43a192b7.js";import{C as B}from"./Blur.647f62cf.js";import{G as T,a as P}from"./Row.dbbe567c.js";import{P as U}from"./PostsTable.fb83c27c.js";import{x as e,o as a,k as _,l as o,a as u,C as n,D as m,t as l,c as b,b as $}from"./vue.runtime.esm-bundler.4a881941.js";import{_ as d}from"./_plugin-vue_export-helper.abeb2ae0.js";import{C as L}from"./Index.03e7c6f4.js";import{R as q}from"./RequiredPlans.197cbabd.js";import{L as A}from"./LicenseConditions.5ceeb16a.js";import"./default-i18n.3881921e.js";import"./isArrayLikeObject.ab8f4241.js";import"./Caret.02d7c74a.js";import"./license.6b332f88.js";import"./upperFirst.7faab9f8.js";import"./_stringToArray.4de3b1f3.js";import"./toString.7b877a36.js";import"./numbers.c7cb4085.js";import"./WpTable.84fcbcef.js";import"./ScoreButton.ebdf14dd.js";import"./Table.08a8d42c.js";import"./Tooltip.bcf420d9.js";import"./Slide.7ee1d0f1.js";import"./IndexStatus.21a7e8cc.js";import"./PostTypes.797a4244.js";import"./constants.238e5b7b.js";import"./addons.b148ccf0.js";import"./_arrayEach.56a9f647.js";import"./_getAllKeys.6b3e1125.js";import"./_getTag.e7f511fc.js";import"./vue.runtime.esm-bundler.b465c010.js";const D={setup(){return{searchStatisticsStore:w()}},components:{CoreAlert:R,CoreBlur:B,GridColumn:T,GridRow:P,PostsTable:U},data(){return{strings:{title:this.$t.__("Content Rankings",this.$td),alert:this.$t.__("The Content Rankings report provides valuable insights into the performance of your content in search results and helps you optimize your posts for better results. This report is generated on a monthly basis, covering the past 12 months leading up to the current month. By regularly reviewing this report, you can identify trends in your post rankings and make informed decisions to improve your content's visibility and ultimately increase rankings in search results.",this.$td)},defaultPages:{rows:[],totals:{page:0,pages:0,total:0}}}}},G={class:"aioseo-search-statistics-content-rankings"},N={class:"aioseo-search-statistics-content-rankings__title"};function V(s,h,g,c,t,f){const r=e("core-alert"),i=e("posts-table"),p=e("grid-column"),v=e("grid-row"),C=e("core-blur");return a(),_(C,null,{default:o(()=>[u("div",G,[n(v,null,{default:o(()=>[n(p,null,{default:o(()=>{var k,y;return[n(r,{class:"description",type:"blue","show-close":""},{default:o(()=>[m(l(t.strings.alert),1)]),_:1}),u("div",N,[u("h2",null,l(t.strings.title),1)]),n(i,{posts:((y=(k=c.searchStatisticsStore.data)==null?void 0:k.contentRankings)==null?void 0:y.paginated)||t.defaultPages,columns:["postTitle","indexStatus","lastUpdated","loss","drop","performance"],"show-items-per-page":"","show-table-footer":""},null,8,["posts"])]}),_:1})]),_:1})])]),_:1})}const F=d(D,[["render",V]]);const H={setup(){return{licenseStore:x()}},components:{Blur:F,Cta:L,RequiredPlans:q},data(){return{strings:{ctaButtonText:this.$t.__("Unlock Search Statistics",this.$td),ctaHeader:this.$t.sprintf(this.$t.__("Search Statistics is a %1$s Feature",this.$td),"PRO"),ctaDescription:this.$t.__("Connect your site to Google Search Console to receive insights on how content is being discovered. Identify areas for improvement and drive traffic to your website.",this.$td),thisFeatureRequires:this.$t.__("This feature requires one of the following plans:",this.$td),feature1:this.$t.__("Search traffic insights",this.$td),feature2:this.$t.__("Track page rankings",this.$td),feature3:this.$t.__("Track keyword rankings",this.$td),feature4:this.$t.__("Speed tests for individual pages/posts",this.$td)}}}},I={class:"aioseo-search-statistics-content-rankings"};function z(s,h,g,c,t,f){const r=e("blur"),i=e("required-plans"),p=e("cta");return a(),b("div",I,[n(r),n(p,{"cta-link":s.$links.getPricingUrl("search-statistics","search-statistics-upsell","content-rankings"),"button-text":t.strings.ctaButtonText,"learn-more-link":s.$links.getUpsellUrl("search-statistics","content-rankings",s.$isPro?"pricing":"liteUpgrade"),"feature-list":[t.strings.feature1,t.strings.feature2,t.strings.feature3,t.strings.feature4],"align-top":"","hide-bonus":!c.licenseStore.isUnlicensed},{"header-text":o(()=>[m(l(t.strings.ctaHeader),1)]),description:o(()=>[n(i,{"core-feature":["search-statistics","content-rankings"]}),m(" "+l(t.strings.ctaDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link","feature-list","hide-bonus"])])}const S=d(H,[["render",z]]),E={mixins:[A],components:{ContentRankings:S,Lite:S}},M={class:"aioseo-search-statistics-content-rankings"};function O(s,h,g,c,t,f){const r=e("content-rankings",!0),i=e("lite");return a(),b("div",M,[s.shouldShowMain("search-statistics","content-rankings")?(a(),_(r,{key:0})):$("",!0),s.shouldShowUpgrade("search-statistics","content-rankings")||s.shouldShowLite?(a(),_(i,{key:1})):$("",!0)])}const vt=d(E,[["render",O]]);export{vt as default};
