import{h as g,b as w,e as x,i as $}from"./app-core.339dde72.js";import{G as b}from"./Graph.c9f57fa3.js";import{_ as f}from"./_plugin-vue_export-helper.eefbdd86.js";import{as as u,f as n,i as m,a0 as d,Q as _,R as h,v as s,ae as v,U as P,j as C,M as y}from"./vendor-vue-ui.33864987.js";import{_ as a,a as U}from"./vendor-other.35999c47.js";import{C as T}from"./Blur.41bf4e46.js";import{C as B}from"./Index.a207a069.js";import{u as L}from"./License.4e370226.js";const p="all-in-one-seo-pack",R={setup(){return{searchStatisticsStore:g()}},components:{Graph:b},props:{legendStyle:String},computed:{series(){if(!this.searchStatisticsStore.data?.keywords?.distribution||!this.searchStatisticsStore.data?.keywords?.distributionIntervals)return[];const o=this.searchStatisticsStore.data.keywords.distribution,e=this.searchStatisticsStore.data.keywords.distributionIntervals;return[{name:a("Top 3 Position",p),data:e.map(t=>({x:t.date,y:t.top3})),legend:{total:o.top3||"0"}},{name:a("4-10 Position",p),data:e.map(t=>({x:t.date,y:t.top10})),legend:{total:o.top10||"0"}},{name:a("11-50 Position",p),data:e.map(t=>({x:t.date,y:t.top50})),legend:{total:o.top50||"0"}},{name:a("50-100 Position",p),data:e.map(t=>({x:t.date,y:t.top100})),legend:{total:o.top100||"0"}}]}}},A={class:"aioseo-search-statistics-keywords-graph"};function G(o,e,t,r,i,c){const l=u("graph");return n(),m("div",A,[d(l,{series:c.series,loading:r.searchStatisticsStore.loading.keywords,"legend-style":t.legendStyle},null,8,["series","loading","legend-style"])])}const S=f(R,[["render",G]]),H={components:{CoreBlur:T,KeywordsGraph:S}};function M(o,e,t,r,i,c){const l=u("keywords-graph"),k=u("core-blur");return n(),_(k,null,{default:h(()=>[d(l,{"legend-style":"simple"})]),_:1})}const N=f(H,[["render",M]]),V={class:"aioseo-search-statistics-keyword-rankings"},D=["innerHTML"],I={__name:"Upgrade",setup(o){const e="all-in-one-seo-pack",t=w(),r={ctaHeader:U(a("%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,t.isPro?"pricing":"liteUpgrade")}" target="_blank">`,"AIOSEO","Pro","</a>"),ctaDescription:a("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(i,c)=>(n(),m("div",V,[d(s(N)),d(s(B),{type:4},{"header-text":h(()=>[C("span",{innerHTML:r.ctaHeader},null,8,D)]),description:h(()=>[v(P(r.ctaDescription),1)]),_:1})]))}},J={__name:"KeywordsGraph",setup(o){const{shouldShowMain:e,shouldShowUpgrade:t}=L(),r=$(),i=g();return(c,l)=>(n(),m("div",null,[s(e)("search-statistics","keyword-rankings")||s(r).isUnlicensed||s(i).shouldShowSampleReports?(n(),_(s(S),{key:0,"legend-style":"simple"})):y("",!0),s(t)("search-statistics","keyword-rankings")&&!s(i).shouldShowSampleReports?(n(),_(s(I),{key:1})):y("",!0)]))}};export{J as _};
