import"./translations.d159963e.js";import{w as f}from"./runtime-dom.esm-bundler.f6259c83.js";import{_ as p}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as z}from"./default-i18n.20001971.js";import{a6 as u,o,c as l,a as s,m as c,ae as d,a2 as h,a7 as A,$ as y,a3 as C,a0 as v,a4 as b}from"./runtime-core.esm-bundler.4f558f23.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 B(a,n,e,m,t,i){const _=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(_,{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:v({animationDuration:`${e.analyzeTime}s`})},null,4)])):b("",!0)])}const $=p(T,[["render",B]]),w={props:{score:{type:Number,required:!0}},computed:{getColorClass(){return 33>=this.score?"red":66>=this.score?"orange":"green"}}};function H(a,n,e,m,t,i){return o(),l("div",{class:d(["aioseo-analyze-score",i.getColorClass])},[s("span",null,y(e.score)+"/100",1)],2)}const q=p(w,[["render",H]]);export{$ as C,q as a};
