Files
2026-04-28 15:13:50 +02:00

2 lines
2.9 KiB
JavaScript

import{v as g,b as w,d as x,j as $}from"./app-core.ae890a3f.js";import{G as v}from"./Graph.b73a5997.js";import{_ as f}from"./_plugin-vue_export-helper.eefbdd86.js";import{aq as u,f as n,i as m,a0 as d,Q as _,R as h,v as s,ae as b,U as P,j as C,M as y}from"./vendor-vue-ui.de3ab35f.js";import{_ as a,a as U}from"./vendor-other.7b559694.js";import{C as T}from"./Blur.5e231db6.js";import{C as B}from"./Index.43bf246d.js";import{u as L}from"./License.953c0cf0.js";const p="all-in-one-seo-pack",R={setup(){return{searchStatisticsStore:g()}},components:{Graph:v},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(()=>[b(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 _};