import a from"./FormGroup.efd02a6a.js";import l from"./Label.9d0d3ee0.js";import s from"./ErrorText.b141a597.js";import i from"./HelperText.14a7ed0b.js";import d from"./IconClipboard.8551be1b.js";import u from"./IconKey.455a255f.js";import{n as p}from"./plugin-vue2_normalizer.000ba15c.js";const n="",f={props:{id:{type:String,required:!1},label:{type:String,required:!0},required:{type:Boolean,default:()=>!1},errors:{type:Array},helperText:{type:String},placeholder:{type:String},value:{required:!1,default:""},loading:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},autofocus:{type:Boolean,required:!1,default:!1}},components:{FormGroup:a,Label:l,ErrorText:s,HelperText:i,IconClipboard:d,IconKey:u},data(){return{defaultClasses:n,copied:!1}},watch:{copied(){let t=this;this.copied&&setTimeout(()=>{t.copied=!1},1250)}},methods:{updateValue(t){this.$emit("input",t)}},computed:{}};var c=function(){var e=this,r=e._self._c;return r("FormGroup",{},[r("div",{staticClass:"flex flex-row items-center"},[r("input",{class:[e.defaultClasses,e.disabled||e.loading?"opacity-50":"",e.loading?"cursor-wait":""],attrs:{id:e.id,type:"checkbox",required:e.required,disabled:e.loading||e.disabled,autofocus:e.autofocus,placeholder:e.placeholder},domProps:{value:e.value},on:{input:function(o){return e.updateValue(o.target.value)}}}),e.errors?r("ErrorText",[e._v(e._s(e.errors[0]))]):e._e(),e.helperText&&!e.errors?r("HelperText",[e._v(e._s(e.helperText))]):e._e(),r("Label",{staticClass:"ml-2",attrs:{errors:e.errors,forId:e.id}},[e._v(e._s(e.label))])],1)])},m=[],_=p(f,c,m,!1,null,null,null,null);const T=_.exports;export{T as default};
