1import{d as r,aB as d,o as i,a as n,z as o,b as s,aE as u}from"./DvgxvNL0.js";const c=["id","aria-checked","disabled"],b=r({__name:"Toggle",props:u({id:{},disabled:{type:Boolean},small:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const l=e,a=d(e,"modelValue");function t(){l.disabled||(a.value=!a.value)}return(p,m)=>(i(),n("button",{id:e.id,type:"button",role:"switch","aria-checked":a.value,disabled:e.disabled,class:o(["group inline-flex shrink-0 touch-manipulation items-center rounded-full m-0 p-1 transition-all duration-200 cursor-pointer border border-solid border-surface-5",[e.small?"h-5 !w-[40px]":"h-6 !w-[48px]",a.value?"bg-brand":"bg-button-bg",e.disabled?"opacity-50 cursor-not-allowed":""]]),onClick:t},[s("span",{class:o(["rounded-full transition-all duration-200",[e.small?"w-3 h-3":"w-4 h-4",a.value?e.small?"translate-x-[20px] bg-black/90":"translate-x-[24px] bg-black/90":"bg-secondary",e.disabled?"":e.small?"group-hover:w-[14px] group-hover:h-[14px] group-hover:m-[-1px] group-active:w-[10px] group-active:h-[10px] group-active:m-[1px]":"group-hover:w-[18px] group-hover:h-[18px] group-hover:m-[-1px] group-active:w-[14px] group-active:h-[14px] group-active:m-[1px]"]])},null,2)],10,c))}});export{b as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.