import{o as r,c as u,a as o,n as a}from"./app-a39c937f.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 _};
