import{a as g,d as $}from"./vuex.esm-bundler.8589b2dd.js";import{G as f}from"./SeoStatisticsOverview.30c3feba.js";import{_ as l,r as a,o as c,c as h,d as p,h as _,w as u,f as w,e as k,t as x,a as m}from"./_plugin-vue_export-helper.2d9794a3.js";import{C as b}from"./Blur.a27209d0.js";import{C as v}from"./Index.a5b2ee90.js";import{L as C}from"./WpTable.4d19dc46.js";import"./default-i18n.ab92175e.js";import"./constants.7044c894.js";import"./index.02a5ed9a.js";import"./SaveChanges.bc66cd69.js";const G={components:{Graph:f},props:{legendStyle:String},computed:{...g("search-statistics",["data","loading"]),series(){var o,i,n,r;if(!((i=(o=this.data)==null?void 0:o.keywords)!=null&&i.distribution)||!((r=(n=this.data)==null?void 0:n.keywords)!=null&&r.distributionIntervals))return[];const e=this.data.keywords.distribution,s=this.data.keywords.distributionIntervals;return[{name:this.$t.__("Top 3 Position",this.$td),data:s.map(t=>({x:t.date,y:t.top3})),legend:{total:e.top3||"0"}},{name:this.$t.__("4-10 Position",this.$td),data:s.map(t=>({x:t.date,y:t.top10})),legend:{total:e.top10||"0"}},{name:this.$t.__("11-50 Position",this.$td),data:s.map(t=>({x:t.date,y:t.top50})),legend:{total:e.top50||"0"}},{name:this.$t.__("50-100 Position",this.$td),data:s.map(t=>({x:t.date,y:t.top100})),legend:{total:e.top100||"0"}}]}}},P={class:"aioseo-search-statistics-keywords-graph"};function S(e,s,o,i,n,r){const t=a("graph");return c(),h("div",P,[p(t,{series:r.series,loading:e.loading.keywords,"legend-style":o.legendStyle},null,8,["series","loading","legend-style"])])}const y=l(G,[["render",S]]),K={components:{CoreBlur:b,KeywordsGraph:y}};function T(e,s,o,i,n,r){const t=a("keywords-graph"),d=a("core-blur");return c(),_(d,null,{default:u(()=>[p(t,{"legend-style":"simple"})]),_:1})}const U=l(K,[["render",T]]),B={components:{Blur:U,Cta:v},data(){return{strings:{ctaHeader:this.$t.sprintf(this.$t.__("%1$sUpgrade your %2$s %3$s%4$s plan to see Keyword Positions",this.$td),`<a href="${this.$links.getPricingUrl("search-statistics","search-statistics-upsell")}" target="_blank">`,"AIOSEO","Pro","</a>"),ctaDescription:this.$t.__("Track how well keywords are ranking in search results over time based on their position and average CTR. This can help you understand the performance of keywords and identify any trends or fluctuations.",this.$td)}}}},L={class:"aioseo-search-statistics-keyword-rankings"},A=["innerHTML"];function H(e,s,o,i,n,r){const t=a("blur"),d=a("cta");return c(),h("div",L,[p(t),p(d,{type:4},{"header-text":u(()=>[w("span",{innerHTML:n.strings.ctaHeader},null,8,A)]),description:u(()=>[k(x(n.strings.ctaDescription),1)]),_:1})])}const N=l(B,[["render",H]]);const V={mixins:[C],props:{redirects:Object},components:{KeywordsGraph:y,Upgrade:N},computed:{...$(["isUnlicensed"])}};function D(e,s,o,i,n,r){const t=a("keywords-graph",!0),d=a("upgrade");return c(),h("div",null,[e.shouldShowMain("search-statistics","keyword-rankings")||e.isUnlicensed?(c(),_(t,{key:0,"legend-style":"simple"})):m("",!0),e.shouldShowUpgrade("search-statistics","keyword-rankings")?(c(),_(d,{key:1})):m("",!0)])}const Q=l(V,[["render",D]]);export{Q as K};
