import"./translations.e71e2202.js";import{w as f}from"./runtime-dom.esm-bundler.36191dca.js";import{_ as p}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as z}from"./default-i18n.65d58dd6.js";import{a7 as u,o,a3 as l,a4 as s,q as c,ae as d,w as h,a as A,t as y,a6 as C,a5 as b,b as v}from"./runtime-core.esm-bundler.50cb9e6d.js";const S="all-in-one-seo-pack",T={emits:["startAnalyzing"],props:{header:String,description:String,isAnalyzing:Boolean,analyzeTime:{type:Number,default(){return 8}},placeholder:{type:String,default(){return""}},inputError:{type:Boolean,default(){return!1}}},data(){return{input:null,strings:{analyze:z("Analyze",S)}}},watch:{isAnalyzing(a){a||(this.input=null)}}},V={class:"analyze-main"},x=["innerHTML"],L=["innerHTML"],N={class:"analyze-input"},k={key:0,class:"analyze-progress"};function w(a,n,e,_,t,i){const m=u("base-input"),g=u("base-button");return o(),l("div",V,[s("div",{class:"analyze-header",innerHTML:e.header},null,8,x),s("div",{class:"analyze-description",innerHTML:e.description},null,8,L),s("div",N,[c(m,{modelValue:t.input,"onUpdate:modelValue":n[0]||(n[0]=r=>t.input=r),placeholder:e.placeholder,class:d({"aioseo-error":e.inputError}),onKeyup:n[1]||(n[1]=f(r=>a.$emit("startAnalyzing",t.input),["enter"]))},null,8,["modelValue","placeholder","class"]),c(g,{type:"green",onClick:n[2]||(n[2]=r=>a.$emit("startAnalyzing",t.input)),loading:e.isAnalyzing,disabled:!t.input},{default:h(()=>[A(y(t.strings.analyze),1)]),_:1},8,["loading","disabled"])]),C(a.$slots,"errors"),e.isAnalyzing?(o(),l("div",k,[s("div",{class:"analyze-progress-value",style:b({animationDuration:`${e.analyzeTime}s`})},null,4)])):v("",!0)])}const U=p(T,[["render",w]]),B={props:{score:{type:Number,required:!0}},computed:{getColorClass(){return 33>=this.score?"red":66>=this.score?"orange":"green"}}};function H(a,n,e,_,t,i){return o(),l("div",{class:d(["aioseo-analyze-score",i.getColorClass])},[s("span",null,y(e.score)+"/100",1)],2)}const P=p(B,[["render",H]]);export{U as C,P as a};
