import{g,f}from"./links.C572zDFG.js";import{G as $}from"./SeoStatisticsOverview.B3iz67tX.js";import{_ as l}from"./_plugin-vue_export-helper.BLXtEB-G.js";import{v as i,o as c,c as h,B as p,k as _,l as u,a as w,C as S,t as k,b as m}from"./runtime-core.esm-bundler.DMBo7TXk.js";import{C as x}from"./Blur.tZiC08Rv.js";import{C as b}from"./Index.fxoyLS1r.js";import{L as C}from"./LicenseConditions.B7nU39GH.js";const v={setup(){return{searchStatisticsStore:g()}},components:{Graph:$},props:{legendStyle:String},computed:{series(){var n,r,o,a;if(!((r=(n=this.searchStatisticsStore.data)==null?void 0:n.keywords)!=null&&r.distribution)||!((a=(o=this.searchStatisticsStore.data)==null?void 0:o.keywords)!=null&&a.distributionIntervals))return[];const e=this.searchStatisticsStore.data.keywords.distribution,s=this.searchStatisticsStore.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 B(e,s,n,r,o,a){const t=i("graph");return c(),h("div",P,[p(t,{series:a.series,loading:r.searchStatisticsStore.loading.keywords,"legend-style":n.legendStyle},null,8,["series","loading","legend-style"])])}const y=l(v,[["render",B]]),L={components:{CoreBlur:x,KeywordsGraph:y}};function T(e,s,n,r,o,a){const t=i("keywords-graph"),d=i("core-blur");return c(),_(d,null,{default:u(()=>[p(t,{"legend-style":"simple"})]),_:1})}const G=l(L,[["render",T]]),K={components:{Blur:G,Cta:b},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)}}}},U={class:"aioseo-search-statistics-keyword-rankings"},A=["innerHTML"];function H(e,s,n,r,o,a){const t=i("blur"),d=i("cta");return c(),h("div",U,[p(t),p(d,{type:4},{"header-text":u(()=>[w("span",{innerHTML:o.strings.ctaHeader},null,8,A)]),description:u(()=>[S(k(o.strings.ctaDescription),1)]),_:1})])}const N=l(K,[["render",H]]),V={setup(){return{licenseStore:f()}},mixins:[C],props:{redirects:Object},components:{KeywordsGraph:y,Upgrade:N}};function D(e,s,n,r,o,a){const t=i("keywords-graph",!0),d=i("upgrade");return c(),h("div",null,[e.shouldShowMain("search-statistics","keyword-rankings")||r.licenseStore.isUnlicensed?(c(),_(t,{key:0,"legend-style":"simple"})):m("",!0),e.shouldShowUpgrade("search-statistics","keyword-rankings")?(c(),_(d,{key:1})):m("",!0)])}const z=l(V,[["render",D]]);export{z as K};
