import{k as g,u as w,b as x,j as $}from"./index.bd66e758.js";import{G as b}from"./Graph.4d14b842.js";import"./translations.d159963e.js";import{_ as f}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as c,s as P}from"./default-i18n.20001971.js";import{x as u,o as l,c as h,H as d,l as _,m,u as r,a as v,y as C,t as T,b as y}from"./runtime-dom.esm-bundler.5d5e6b71.js";import{C as U}from"./Blur.4fe4b9a3.js";import{C as B}from"./Index.1a358ca4.js";import{u as L}from"./License.f568d1d3.js";const p="all-in-one-seo-pack",H={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"}}]}}},R={class:"aioseo-search-statistics-keywords-graph"};function A(a,e,o,s,n,i){const t=u("graph");return l(),h("div",R,[d(t,{series:i.series,loading:s.searchStatisticsStore.loading.keywords,"legend-style":o.legendStyle},null,8,["series","loading","legend-style"])])}const S=f(H,[["render",A]]),G={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(G,[["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 _};
