import{j as g,a as w,b as x,i as $}from"./index.4b887428.js";import{G as b}from"./Graph.19914f74.js";import"./translations.e71e2202.js";import{_ as f}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as c,a as P}from"./default-i18n.65d58dd6.js";import{a6 as u,o as l,c as h,l as d,a1 as _,a2 as m,R as r,_ as v,a7 as C,$ as T,a4 as y}from"./runtime-core.esm-bundler.ce5add0b.js";import{C as U}from"./Blur.92695742.js";import{C as B}from"./Index.72794c8a.js";import{u as L}from"./License.3e238906.js";const p="all-in-one-seo-pack",R={setup(){return{searchStatisticsStore:g()}},components:{Graph:b},props:{legendStyle:String},computed:{series(){var o,s,n,i;if(!((s=(o=this.searchStatisticsStore.data)==null?void 0:o.keywords)!=null&&s.distribution)||!((i=(n=this.searchStatisticsStore.data)==null?void 0:n.keywords)!=null&&i.distributionIntervals))return[];const a=this.searchStatisticsStore.data.keywords.distribution,e=this.searchStatisticsStore.data.keywords.distributionIntervals;return[{name:c("Top 3 Position",p),data:e.map(t=>({x:t.date,y:t.top3})),legend:{total:a.top3||"0"}},{name:c("4-10 Position",p),data:e.map(t=>({x:t.date,y:t.top10})),legend:{total:a.top10||"0"}},{name:c("11-50 Position",p),data:e.map(t=>({x:t.date,y:t.top50})),legend:{total:a.top50||"0"}},{name:c("50-100 Position",p),data:e.map(t=>({x:t.date,y:t.top100})),legend:{total:a.top100||"0"}}]}}},A={class:"aioseo-search-statistics-keywords-graph"};function G(a,e,o,s,n,i){const t=u("graph");return l(),h("div",A,[d(t,{series:i.series,loading:s.searchStatisticsStore.loading.keywords,"legend-style":o.legendStyle},null,8,["series","loading","legend-style"])])}const S=f(R,[["render",G]]),H={components:{CoreBlur:U,KeywordsGraph:S}};function N(a,e,o,s,n,i){const t=u("keywords-graph"),k=u("core-blur");return l(),_(k,null,{default:m(()=>[d(t,{"legend-style":"simple"})]),_:1})}const V=f(H,[["render",N]]),D={class:"aioseo-search-statistics-keyword-rankings"},I=["innerHTML"],K={__name:"Upgrade",setup(a){const e="all-in-one-seo-pack",o=w(),s={ctaHeader:P(c("%1$sUpgrade your %2$s %3$s%4$s plan to see Keyword Positions",e),`<a href="${x.getPricingUrl("search-statistics","search-statistics-upsell",null,o.isPro?"pricing":"liteUpgrade")}" target="_blank">`,"AIOSEO","Pro","</a>"),ctaDescription:c("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.",e)};return(n,i)=>(l(),h("div",D,[d(r(V)),d(r(B),{type:4},{"header-text":m(()=>[v("span",{innerHTML:s.ctaHeader},null,8,I)]),description:m(()=>[C(T(s.ctaDescription),1)]),_:1})]))}},W={__name:"KeywordsGraph",setup(a){const{shouldShowMain:e,shouldShowUpgrade:o}=L(),s=$(),n=g();return(i,t)=>(l(),h("div",null,[r(e)("search-statistics","keyword-rankings")||r(s).isUnlicensed||r(n).shouldShowSampleReports?(l(),_(r(S),{key:0,"legend-style":"simple"})):y("",!0),r(o)("search-statistics","keyword-rankings")&&!r(n).shouldShowSampleReports?(l(),_(r(K),{key:1})):y("",!0)]))}};export{W as _};
