import{_ as u}from"./_plugin-vue_export-helper.eefbdd86.js";import{o,c as n,_ as c,ae as k,a6 as l,a1 as _,a4 as r,$ as d}from"./runtime-core.esm-bundler.ce5add0b.js";import{S as f}from"./Loading.ecf9741f.js";import"./translations.e71e2202.js";import{_ as p}from"./default-i18n.65d58dd6.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,i,a){return o(),n("svg",v,[c("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),c("circle",{class:k(["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=c("span",{class:"total"},"/ 100",-1),H=["innerHTML"],M={key:2,class:"score-analyzing"};function T(t,s,e,g,i,a){const m=l("svg-seo-site-score-loading"),h=l("svg-seo-site-score");return o(),n("div",B,[e.loading?(o(),_(m,{key:0})):r("",!0),e.loading?r("",!0):(o(),_(h,{key:1,score:e.score,strokeWidth:e.strokeWidth},null,8,["score","strokeWidth"])),c("div",N,[e.loading?r("",!0):(o(),n("div",z,[c("span",L,d(e.score),1),A])),e.loading?r("",!0):(o(),n("div",{key:1,class:"score-description",innerHTML:e.description},null,8,H)),e.loading?(o(),n("div",M,d(i.strings.analyzing),1)):r("",!0)])])}const P=u(b,[["render",T]]);export{P as C,x as S};
