import{i as g,a as w,l as x,g as $}from"./index.ed1fc0db.js";import{G as P}from"./Graph.b7c2e442.js";import"./translations.d159963e.js";import{_ as f}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as c,s as b}from"./default-i18n.20001971.js";import{a6 as u,o as l,c as h,m as d,a1 as _,a2 as m,T as r,a as v,a7 as C,$ as T,a4 as y}from"./runtime-core.esm-bundler.4f558f23.js";import{C as U}from"./Blur.0f162340.js";import{C as B}from"./Index.39bbd6c8.js";import{u as L}from"./License.3dea5c95.js";const p="all-in-one-seo-pack",R={setup(){return{searchStatisticsStore:g()}},components:{Graph:P},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:b(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 _};
