1import{d as k,D as l,a2 as r,U as w,$ as n,u as t,a0 as g,Q as h,W as c,m as B,a1 as v}from"./B3G2-lE-.js";import{k as $,_ as C}from"./J9IOCGVU.js";import{u as p}from"./Dh348ycp.js";import"./CkpqCWMX.js";import"./C_0NVBaR.js";const L=["id","checked"],q=k({__name:"ToggleSwitch",props:{label:{},toggled:{type:Boolean},showText:{type:Boolean},hideLabel:{type:Boolean},isLightBackground:{type:Boolean,default:!1}},emits:["update:checked"],setup(_,{emit:y}){v(e=>({v38903f93:t(s).sizing[40],v3890388d:t(s).sizing[24],v38904e97:t(s).sizing[80],v3cf55421:t(s).colors.secondary.midGreyBlack,v941bc578:t(s).colors.primary.black,v91cf4d24:t(s).colors.primary.white,v3890350a:t(s).sizing[16],v757002b3:t(s).sizing[8],v638d0e48:t(s).colors.notice.success,v276efdc4:t(s).colors.secondary.darkGrey}));const s=$,o=_,f=y,i=B(!1),u=()=>{i.value=!i.value},d=e=>{const a=e.target;a&&a.type==="checkbox"&&f("update:checked",a.checked)},m=p("toggle-switch-yes",{defaultValue:"yes"}),b=p("toggle-switch-no",{defaultValue:"no"});return(e,a)=>(c(),l("label",{class:n(e.$style.container)},[r("div",{class:n(e.$style.switcherContainer)},[r("input",w({id:o.label},e.$attrs,{class:e.$style.input,checked:o.toggled,type:"checkbox",style:{border:"none"},onFocusin:u,onFocusout:u,onChange:d}),null,16,L),r("span",{id:"toggle-switch",class:n([e.$style.switch,t(i)&&e.$style.focus]),onChange:d},[o.showText&&o.toggled?(c(),l("span",{key:0,class:n(e.$style["toggle-text-left"])},g(t(m)),3)):h("",!0),o.showText&&!o.toggled?(c(),l("span",{key:1,class:n(e.$style["toggle-text-right"])},g(t(b)),3)):h("",!0)],34)],2),o.hideLabel?h("",!0):(c(),l("span",{key:0,class:n([e.$style.label,o.isLightBackgroun
1d&&e.$style.labelOnLightBackground])},g(o.label),3))],2))}}),x="_input_1nq7h_2",z="_focus_1nq7h_24",T="_container_1nq7h_49",V="_switcherContainer_1nq7h_62",O="_label_1nq7h_102",F="_labelOnLightBackground_1nq7h_106",M={input:x,switch:"_switch_1nq7h_10",focus:z,container:T,switcherContainer:V,"toggle-text-right":"_toggle-text-right_1nq7h_81","toggle-text-left":"_toggle-text-left_1nq7h_91",label:O,labelOnLightBackground:F},S={$style:M},P=C(q,[["__cssModules",S]]);export{P as default};
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.