import{n as i}from"./vueComponentNormalizer.87056a83.js";var o=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"analyze-main"},[e("div",{staticClass:"analyze-header",domProps:{innerHTML:n._s(n.header)}}),e("div",{staticClass:"analyze-description",domProps:{innerHTML:n._s(n.description)}}),e("div",{staticClass:"analyze-input"},[e("base-input",{class:{"aioseo-error":n.inputError},attrs:{placeholder:n.placeholder},on:{keyup:function(r){return!r.type.indexOf("key")&&n._k(r.keyCode,"enter",13,r.key,"Enter")?null:n.$emit("startAnalyzing",n.input)}},model:{value:n.input,callback:function(r){n.input=r},expression:"input"}}),e("base-button",{attrs:{type:"green",loading:n.isAnalyzing,disabled:!n.input},on:{click:function(r){return n.$emit("startAnalyzing",n.input)}}},[n._v(" "+n._s(n.strings.analyze)+" ")])],1),n._t("errors"),n.isAnalyzing?e("div",{staticClass:"analyze-progress"},[e("div",{staticClass:"analyze-progress-value",style:{animationDuration:n.analyzeTime+"s"}})]):n._e()],2)},l=[];const u={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:"Analyze"}}},watch:{isAnalyzing(n){n||(this.input=null)}}},a={};var c=i(u,o,l,!1,_,null,null,null);function _(n){for(let t in a)this[t]=a[t]}var g=function(){return c.exports}(),p=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"aioseo-analyze-score",class:n.getColorClass},[e("span",[n._v(n._s(n.score)+"/100")])])},y=[];const d={props:{score:{type:Number,required:!0}},computed:{getColorClass(){return 33>=this.score?"red":66>=this.score?"orange":"green"}}},s={};var v=i(d,p,y,!1,f,null,null,null);function f(n){for(let t in s)this[t]=s[t]}var z=function(){return v.exports}();export{g as C,z as a};
