1import{_ as S}from"./QJhPICLm.js";import{_ as $}from"./JBrWQjDG.js";import{u as I,y as c,U as N,z as _,A as C,o as k,c as x,e as f,f as a,l as n}from"./D5MSjcDl.js";import"./BOvFI5h0.js";import"./B2Vl8tsC.js";import"./Cn0iyh3E.js";const G={__name:"FpcaIsVoterRegistered",props:["leo","stateRules"],emits:["input"],setup(s,{emit:g}){const p=g,e=n(()=>r.selectedLanguage),r=I(),o=r.dictionary,l=c(r.currentRequest.isRegistered),u=n(()=>s.leo),R=n(()=>u.value.n),T=n(()=>[{optionValue:"registered",optionLabel:o["I24_"+e.value]},{optionValue:"notregistered",optionLabel:o["I23_"+e.value]},{optionValue:"unsure",optionLabel:o["F03_"+e.value]}]),i=c(!1);i.value=!1;const m=c(v(u.value)),V=n(()=>s.stateRules["registerstatus_tooltip_"+l.value+"_title"]),b=n(()=>_(s.stateRules["registerstatus_tooltip_"+l.value+"_content"],{state:s.stateRules.name}));N(R,()=>{m.value=v(u.value),i.value=!0,l.value="",p("input","")});function v(t){return t.n?_(o["F02_"+e.value],{jurisdiction:t.t==="All"?C(`states.${t.s}`,o,e.value):`${t.j} ${t.j.includes(t.t)?"":t.t}`}):o["G103_"+e.value]}function B(t){l.value=t,p("input",t)}return(t,d)=>{const F=S,L=$;return k(),x("div",null,[f(F,{fieldName:"voterRegistration",label:a(m),toolTipTitle:a(V),toolTipContent:a(b)},null,8,["label","toolTipTitle","toolTipContent"]),f(L,{groupName:"voterRegistration",initialSelection:a(l),radioOptions:a(T),clearButtons:a(i),onSelectedRadioButton:d[0]||(d[0]=A=>{B(A),i.value=!1})},null,8,["initialSelection","radioOptions","clearButtons"])])}}};export{G 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.