import{A as e,Ct as t,D as n,F as r,L as i,Nt as a,Pt as o,R as s,U as c,Vt as l,W as u,X as d,ft as f,mt as p,o as m,ot as h,pt as g,v as _,z as v}from"./xY0c-UfG.js";import"./xihTtKlq.js";import{n as y,x as b}from"./D8BnezyQ.js";import{s as x}from"./7-fazrJY2.js";var S=v(`<div class="rcl-row svelte-1fjfk3e" role="option" tabindex="0"><!> <!> <span class="rcl-label svelte-1fjfk3e"> </span></div>`);function C(c,v){o(v,!0);let C=m(v,`ariaLabel`,3,`Choose folders`);var w=s();n(g(w),()=>x,(n,a)=>{a(n,{role:`listbox`,"aria-multiselectable":`true`,get"aria-label"(){return C()},children:(n,a)=>{var o=s();e(g(o),17,()=>v.repos,e=>e.name,(e,n)=>{let a=t(()=>v.selected.includes(d(n).name));var o=S(),s=f(o);y(s,{get checked(){return d(a)},tabindex:-1,"aria-hidden":`true`});var c=p(s,2);b(c,{size:16});var m=p(c,2),g=f(m,!0);l(m),l(o),h(()=>{_(o,`aria-selected`,d(a)),r(g,d(n).displayName)}),u(`click`,o,()=>v.onToggle(d(n).name)),u(`keydown`,o,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),v.onToggle(d(n).name))}),i(e,o)}),i(n,o)},$$slots:{default:!0}})}),i(c,w),a()}c([`click`,`keydown`]);export{C as t};