import{d as b,c as o,o as n,a as t,w as m,C as p,n as i,r as a}from"./vendor-3-7-87.js";const x={class:"relative inline-flex cursor-pointer"},g=["value","disabled"],h={class:"flex flex-col gap-1"},y={class:"flex items-center"},v={class:"ml-3 text-xs font-normal text-gray-400"},V={__name:"Switch",props:["modelValue","disabled","value"],emits:["update:modelValue"],setup(e,{emit:l}){const d=e,c=l,u=b({get(){return d.modelValue},set(s){c("update:modelValue",s)}});return(s,r)=>(n(),o("div",null,[t("label",x,[m(t("input",{"onUpdate:modelValue":r[0]||(r[0]=f=>u.value=f),value:e.value,type:"checkbox",class:"sr-only peer",disabled:e.disabled},null,8,g),[[p,u.value]]),r[1]||(r[1]=t("div",{class:"w-11 min-w-[2.75rem] h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"},null,-1)),t("div",h,[t("div",y,[t("span",{class:i(`ml-3 text-sm font-medium ${e.disabled?"text-gray-300":"text-gray-900"}`)},[a(s.$slots,"default")],2)]),t("span",v,[a(s.$slots,"subtitle")])])])]))}},k=["href"],$=["disabled"],_={__name:"OutlineButton",props:{href:{default:"",type:String},disabled:{default:!1,type:Boolean}},setup(e){return(l,d)=>e.href?(n(),o("a",{key:0,href:e.href,class:"!text-blue-700 border border-blue-700 !focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center mr-2"},[a(l.$slots,"default")],8,k)):(n(),o("button",{key:1,disabled:e.disabled,type:"button",class:i(`${e.disabled?"!text-gray-200 border border-gray-200":"!text-blue-700 border border-blue-700"} focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center mr-2`)},[a(l.$slots,"default")],10,$))}};export{V as _,_ as a};
