import{Q as u}from"./chunk-CusLMHK2.js";import{u as i,a as s,b as m}from"./chunk-xxORVLuj.js";import{B as g}from"./app-CPb3bToC.js";import{a as c,l as o}from"./chunk-DhYw-kuD.js";const b=g({name:"QToggle",props:{...i,icon:String,iconColor:String},emits:s,setup(e){function a(t,r){const n=c(()=>(t.value===!0?e.checkedIcon:r.value===!0?e.indeterminateIcon:e.uncheckedIcon)||e.icon),l=c(()=>t.value===!0?e.iconColor:null);return()=>[o("div",{class:"q-toggle__track"}),o("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},n.value!==void 0?[o(u,{name:n.value,color:l.value})]:void 0)]}return m("toggle",a)}});export{b as Q};
