import{a as c,c as d}from"./vuex.esm.8fdeb4b6.js";import{G as _}from"./Table.57d1f84a.js";import{n as r}from"./_plugin-vue2_normalizer.61652a7c.js";import{C as p}from"./Blur.f36c594d.js";import{C as u}from"./Index.9cc314cc.js";import{L as m}from"./WpTable.4dea5a68.js";import"./default-i18n.3a91e0e5.js";import"./constants.0d8c074c.js";import"./index.0c44a654.js";import"./SaveChanges.e40a9083.js";const h={components:{Graph:_},props:{legendStyle:String},computed:{...c("search-statistics",["data","loading"]),series(){var s,a,o,i;if(!((a=(s=this.data)==null?void 0:s.keywords)!=null&&a.distribution)||!((i=(o=this.data)==null?void 0:o.keywords)!=null&&i.distributionIntervals))return[];const n=this.data.keywords.distribution,t=this.data.keywords.distributionIntervals;return[{name:this.$t.__("Top 3 Position",this.$td),data:t.map(e=>({x:e.date,y:e.top3})),legend:{total:n.top3||"0"}},{name:this.$t.__("4-10 Position",this.$td),data:t.map(e=>({x:e.date,y:e.top10})),legend:{total:n.top10||"0"}},{name:this.$t.__("11-50 Position",this.$td),data:t.map(e=>({x:e.date,y:e.top50})),legend:{total:n.top50||"0"}},{name:this.$t.__("50-100 Position",this.$td),data:t.map(e=>({x:e.date,y:e.top100})),legend:{total:n.top100||"0"}}]}}};var f=function(){var t=this,s=t._self._c;return s("div",{staticClass:"aioseo-search-statistics-keywords-graph"},[s("graph",{attrs:{series:t.series,loading:t.loading.keywords,"legend-style":t.legendStyle}})],1)},y=[],g=r(h,f,y,!1,null,null,null,null);const l=g.exports,$={components:{CoreBlur:p,KeywordsGraph:l}};var v=function(){var t=this,s=t._self._c;return s("core-blur",[s("keywords-graph",{attrs:{"legend-style":"simple"}})],1)},w=[],k=r($,v,w,!1,null,null,null,null);const x=k.exports,b={components:{Blur:x,Cta:u},data(){return{strings:{ctaHeader:this.$t.sprintf(this.$t.__("%1$sUpgrade your %2$s %3$s%4$s plan to see Keyword Positions",this.$td),`<a href="${this.$links.getPricingUrl("search-statistics","search-statistics-upsell")}" target="_blank">`,"AIOSEO","Pro","</a>"),ctaDescription:this.$t.__("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.",this.$td)}}}};var C=function(){var t=this,s=t._self._c;return s("div",{staticClass:"aioseo-search-statistics-keyword-rankings"},[s("blur"),s("cta",{attrs:{type:4},scopedSlots:t._u([{key:"header-text",fn:function(){return[s("span",{domProps:{innerHTML:t._s(t.strings.ctaHeader)}})]},proxy:!0},{key:"description",fn:function(){return[t._v(" "+t._s(t.strings.ctaDescription)+" ")]},proxy:!0}])})],1)},P=[],G=r(b,C,P,!1,null,null,null,null);const S=G.exports;const K={mixins:[m],props:{redirects:Object},components:{KeywordsGraph:l,Upgrade:S},computed:{...d(["isUnlicensed"])}};var U=function(){var t=this,s=t._self._c;return s("div",[t.shouldShowMain("search-statistics","keyword-rankings")||t.isUnlicensed?s("keywords-graph",{attrs:{"legend-style":"simple"}}):t._e(),t.shouldShowUpgrade("search-statistics","keyword-rankings")?s("upgrade"):t._e()],1)},R=[],L=r(K,U,R,!1,null,null,null,null);const z=L.exports;export{z as K};
