import{A as g,d as f}from"./links.6d4c0bdb.js";import{G as $}from"./SeoStatisticsOverview.1169cf3e.js";import{r as i,o as c,c as h,d,b as _,w as u,a as w,g as S,t as k,f as m}from"./vue.runtime.esm-bundler.b39e1078.js";import{_ as l}from"./_plugin-vue_export-helper.b97bdf23.js";import{C as x}from"./Blur.8cc39c73.js";import{C as b}from"./Index.f7bbb33f.js";import"./index.0eabb636.js";import"./Caret.164d8058.js";/* empty css                                            *//* empty css                                              */import"./default-i18n.3881921e.js";import"./constants.1758f66e.js";import{L as v}from"./Statistic.47948f6f.js";import"./TruSeoHighlighter.3c8290a7.js";/* empty css                                              */const C={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 G(e,s,n,r,o,a){const t=i("graph");return c(),h("div",P,[d(t,{series:a.series,loading:r.searchStatisticsStore.loading.keywords,"legend-style":n.legendStyle},null,8,["series","loading","legend-style"])])}const y=l(C,[["render",G]]),K={components:{CoreBlur:x,KeywordsGraph:y}};function L(e,s,n,r,o,a){const t=i("keywords-graph"),p=i("core-blur");return c(),_(p,null,{default:u(()=>[d(t,{"legend-style":"simple"})]),_:1})}const T=l(K,[["render",L]]),B={components:{Blur:T,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"),p=i("cta");return c(),h("div",U,[d(t),d(p,{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(B,[["render",H]]);const V={setup(){return{licenseStore:f()}},mixins:[v],props:{redirects:Object},components:{KeywordsGraph:y,Upgrade:N}};function D(e,s,n,r,o,a){const t=i("keywords-graph",!0),p=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(),_(p,{key:1})):m("",!0)])}const tt=l(V,[["render",D]]);export{tt as K};
