| Current Path : /home/users/unlimited/www/whatsapp-crm/public/build/assets/ |
| Current File : /home/users/unlimited/www/whatsapp-crm/public/build/assets/FormToggleSwitch-9b3ff72b.js |
import{o as r,c as u,a as o,n as a}from"./app-f1493ab2.js";const i={__name:"FormToggleSwitch",props:{modelValue:Boolean,className:String,disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(l,{emit:s}){const e=l,t=s,d=n=>{e.disabled==!1&&t("update:modelValue",!e.modelValue)};return(n,m)=>(r(),u("div",{class:a(l.className)},[o("div",{class:a(["w-12 h-6 flex items-center bg-gray-300 rounded-full p-1",{"bg-primary":e.modelValue==!0||e.modelValue==1}]),onClick:d},[o("div",{class:a(["bg-white w-4 h-4 rounded-full shadow-md transform duration-300 ease-in-out",{"translate-x-6":e.modelValue==!0||e.modelValue==1}])},null,2)],2)],2))}};export{i as _};