import{n as a}from"./index-DDNMzpZj.js";const s={props:{value:{type:Boolean,required:!0},disabled:{type:Boolean,default:!1},on:{type:Array,default:()=>["fa","toggle-on"]},off:{type:Array,default:()=>["fa","toggle-off"]},iconSize:{type:String,default:"text-4xl"}},methods:{changeValue(){this.disabled||this.$emit("input",!this.value)}},computed:{getClasses(){let t=this.value?"text-blue-300 ":"text-rose-400 ";return this.disabled?t+=" cursor-not-allowed grayscale-70 opacity-70 ":(t+="cursor-pointer hover:underline hover:decoration-2 ",t+=this.value?"hover:text-blue-400 hover:decoration-blue-400 ":"hover:text-rose-600 hover:decoration-rose-600 "),t}}};var r=function(){var e=this,o=e._self._c;return o("div",{staticClass:"select-none flex flex-row flex-nowrap items-center",class:e.getClasses,on:{click:function(i){return e.changeValue()}}},[e.value===!0?o("fa-icon",{class:e.iconSize,attrs:{icon:e.on}}):o("fa-icon",{class:e.iconSize,attrs:{icon:e.off}}),o("span",{staticClass:"ml-1 my-1 text-primary"},[e._t("default")],2)],1)},n=[],l=a(s,r,n,!1,null,null);const u=l.exports;export{u as C};
