import{_ as u}from"./_plugin-vue_export-helper.eefbdd86.js";import{f as o,i as n,j as i,P as h,aq as l,Q as d,M as r,U as _}from"./vendor-vue-ui.f00a1236.js";import{S as f}from"./Loading.e989752b.js";import"./app-core.b862f9c8.js";import{_ as p}from"./vendor-other.7b559694.js";const y={props:{scoreColor:String,score:{type:Number,required:!0},strokeWidth:{type:Number,default(){return 2}}},computed:{getClass(){let t="",s="";switch(!0){case 33>=this.score:t="fast",s="stroke-red";break;case 66>=this.score:t="medium",s="stroke-orange";break;default:t="slow",s="stroke-green"}return this.scoreColor!==void 0&&(s=`stroke-${this.scoreColor}`),`${t} ${s}`}}},v={class:"aioseo-seo-site-score",viewBox:"0 0 34 34",xmlns:"http://www.w3.org/2000/svg"},S=["stroke-width","r"],w=["stroke-width","stroke-dasharray","r"];function C(t,s,e,g,c,a){return o(),n("svg",v,[i("circle",{class:"aioseo-seo-site-score__background","stroke-width":e.strokeWidth,fill:"none",cx:"17",cy:"17",r:17-e.strokeWidth/2},null,8,S),i("circle",{class:h(["aioseo-seo-site-score__circle",a.getClass]),"stroke-width":e.strokeWidth,"stroke-dasharray":`${e.score},100`,"stroke-linecap":"round",fill:"none",cx:"17",cy:"17",r:17-e.strokeWidth/2},null,10,w)])}const x=u(y,[["render",C]]),W="all-in-one-seo-pack",b={components:{SvgSeoSiteScore:x,SvgSeoSiteScoreLoading:f},props:{score:Number,loading:Boolean,description:String,strokeWidth:{type:Number,default(){return 1.75}}},data(){return{strings:{analyzing:p("Analyzing...",W)}}}},B={class:"aioseo-site-score"},N={class:"aioseo-score-amount-wrapper"},z={key:0,class:"aioseo-score-amount"},L={class:"score"},A=["innerHTML"],M={key:2,class:"score-analyzing"};function q(t,s,e,g,c,a){const m=l("svg-seo-site-score-loading"),k=l("svg-seo-site-score");return o(),n("div",B,[e.loading?(o(),d(m,{key:0})):r("",!0),e.loading?r("",!0):(o(),d(k,{key:1,score:e.score,strokeWidth:e.strokeWidth},null,8,["score","strokeWidth"])),i("div",N,[e.loading?r("",!0):(o(),n("div",z,[i("span",L,_(e.score),1),s[0]||(s[0]=i("span",{class:"total"},"/ 100",-1))])),e.loading?r("",!0):(o(),n("div",{key:1,class:"score-description",innerHTML:e.description},null,8,A)),e.loading?(o(),n("div",M,_(c.strings.analyzing),1)):r("",!0)])])}const j=u(b,[["render",q]]);export{j as C,x as S};
