import{m as S,c as x}from"./vuex.esm-bundler.55d3d5b3.js";import{C as B}from"./index.fae5bbc8.js";import{C as R}from"./Blur.17ef7d02.js";import{G as P,a as T}from"./Row.d42459be.js";import{P as U}from"./PostsTable.c98d568a.js";import{_ as m,r as e,o as a,b as u,w as o,a as p,d as n,y as _,t as c,c as b,f as y}from"./_plugin-vue_export-helper.a81c6319.js";import{C as L}from"./Index.3662e61b.js";import{R as q}from"./RequiredPlans.5c16d60d.js";import{L as A}from"./WpTable.3e09f0c1.js";import"./default-i18n.0e8bc810.js";import"./constants.e56e1512.js";import"./index.4dbecc01.js";import"./SaveChanges.c85e9ba4.js";import"./helpers.51e5fd9c.js";import"./Caret.19bf2275.js";import"./PostTypes.9ab32454.js";import"./Statistic.61757e51.js";import"./_arrayEach.56a9f647.js";import"./_getAllKeys.9e267986.js";import"./_getTag.4d7a4b86.js";import"./_commonjsHelpers.f84db168.js";import"./vue.runtime.esm-bundler.bfee71a0.js";import"./Tooltip.c4cc47a2.js";import"./ScoreButton.6fcc0514.js";import"./Table.fb54dbce.js";import"./Slide.4392623f.js";import"./RequiresUpdate.52f5acf2.js";import"./postContent.f08c6962.js";import"./cleanForSlug.d16f1e3a.js";import"./html.a669733f.js";import"./Index.048705a6.js";const G={components:{CoreAlert:B,CoreBlur:R,GridColumn:P,GridRow:T,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}}}},computed:{...S("search-statistics",["data"])}},N={class:"aioseo-search-statistics-content-rankings"},V={class:"aioseo-search-statistics-content-rankings__title"};function D(s,d,h,g,t,f){const r=e("core-alert"),i=e("posts-table"),l=e("grid-column"),w=e("grid-row"),C=e("core-blur");return a(),u(C,null,{default:o(()=>[p("div",N,[n(w,null,{default:o(()=>[n(l,null,{default:o(()=>{var k,$;return[n(r,{class:"description",type:"blue","show-close":""},{default:o(()=>[_(c(t.strings.alert),1)]),_:1}),p("div",V,[p("h2",null,c(t.strings.title),1)]),n(i,{posts:(($=(k=s.data)==null?void 0:k.contentRankings)==null?void 0:$.paginated)||t.defaultPages,columns:["post_title","lastUpdated","loss","drop","performance"],disableSorting:"","show-items-per-page":"","show-table-footer":""},null,8,["posts"])]}),_:1})]),_:1})])]),_:1})}const I=m(G,[["render",D]]);const E={components:{Blur:I,Cta:L,RequiredPlans:q},data(){return{strings:{ctaButtonText:this.$t.sprintf(this.$t.__("Upgrade to %1$s and Unlock Search Statistics",this.$td),"Pro"),ctaHeader:this.$t.sprintf(this.$t.__("Search Statistics is only for licensed %1$s %2$s users.",this.$td),"AIOSEO","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)}}},computed:{...x(["isUnlicensed"])}},H={class:"aioseo-search-statistics-content-rankings"};function O(s,d,h,g,t,f){const r=e("blur"),i=e("required-plans"),l=e("cta");return a(),b("div",H,[n(r),n(l,{"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","home"),"feature-list":[t.strings.feature1,t.strings.feature2,t.strings.feature3,t.strings.feature4],"align-top":""},{"header-text":o(()=>[_(c(t.strings.ctaHeader),1)]),description:o(()=>[n(i,{"core-feature":["search-statistics","content-rankings"]}),_(" "+c(t.strings.ctaDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link","feature-list"])])}const v=m(E,[["render",O]]),z={mixins:[A],components:{ContentRankings:v,Lite:v}},F={class:"aioseo-search-statistics-content-rankings"};function M(s,d,h,g,t,f){const r=e("content-rankings",!0),i=e("lite");return a(),b("div",F,[s.shouldShowMain("search-statistics","content-rankings")?(a(),u(r,{key:0})):y("",!0),s.shouldShowUpgrade("search-statistics","content-rankings")||s.shouldShowLite?(a(),u(i,{key:1})):y("",!0)])}const wt=m(z,[["render",M]]);export{wt as default};
