1import{r as m,j as s}from"./vendor-CdyVhcFp.js";import{Es as n,Et as p,Eu as x,Ev as d,Ew as h}from"./cssModules-BUIZcazZ.js";const g=m.forwardRef(({onToggleChange:r,id:c,isOn:e,showStatus:t,name:o,label:a},l)=>{const i=()=>{r&&r(!e)};return s.jsxs("label",{className:[d,a?h:""].join(" "),children:[s.jsx("input",{type:"checkbox",name:o,checked:e,onChange:i,"aria-checked":e,id:c,ref:l}),s.jsx("span",{className:n}),t&&s.jsx("span",{className:p,children:e?"ON":"OFF"}),a&&s.jsx("span",{className:x,children:a})]})});export{g as ToggleSwitch};
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.