1import{$ as e,A as t,E as n,J as r,K as i,L as a,O as o,Q as s,S as c,U as l,V as u,Y as d,_ as f,at as p,b as m,d as h,it as g,j as _,k as v,s as y,u as b,w as x,x as S}from"./yOfsseBm.js";import"./xihTtKlq.js";var C=x(`<li role="option"> </li>`),w=x(`<ul class="absolute top-full left-0 z-10 mt-2 min-w-full list-none border border-border bg-background m-0 p-2 shadow-elevated font-heading text-lg text-heading-text" role="listbox"></ul>`),T=x(`<div class="flex flex-wrap items-baseline justify-center gap-3"><span> </span> <div class="relative"><button class="inline-flex items-baseline gap-2 border-0 border-b-2 border-brand-red-text p-0 bg-transparent font-heading text-3xl uppercase text-brand-red-text cursor-pointer" type="button" role="combobox"> <span class="text-xl leading-none" aria-hidden="true">▾</span></button> <!></div></div>`);function E(o,x){let E=n();e(x,!0);let D=`${E}-label`,O=`${E}-trigger`,k=`${E}-listbox`,A=e=>`${E}-option-${e}`,j=r(!1),M=r(0),N=d(()=>x.options.find(e=>e.value===x.selectedValue)?.label??``);function P(){i(M,Math.max(0,x.options.findIndex(e=>e.value===x.selectedValue)),!0),i(j,!0)}function F(){i(j,!1)}function I(e){x.onSelect(e),F()}function L(e){switch(e.key){case`ArrowDown`:e.preventDefault(),_(j)?i(M,Math.min(_(M)+1,x.options.length-1),!0):P();break;case`ArrowUp`:e.preventDefault(),_(j)?i(M,Math.max(_(M)-1,0),!0):P();break;case`Home`:_(j)&&(e.preventDefault(),i(M,0));break;case`End`:_(j)&&(e.preventDefault(),i(M,x.options.length-1));break;case`Enter`:case` `:e.preventDefault(),_(j)?I(x.options[_(M)].value):P();break;case`Escape`:case`Tab`:F();break}}var R=T(),z=u(R),B=u(z,!0);p(z);var V=l(z,2),H=u(V),U=u(H);g(),p(H);var W=l(H,2),G=e=>{var t=w();f(t,23,()=>x.options,e=>e.value,(e,t,n)=>{var r=C();let i;var o=u(r,!0);p(r),a(e=>{y(r,`id`,e),i=b(r,1,`py-2 px-4 whitespace-nowrap cursor-pointer transition-colors duration-150 hover:bg-background-secondary`,null,i,{"bg-background-secondary":_(n)===_(M),"text-brand-red-text":_(t).value===x.selectedValue}),y(r,`aria-selected`,_(t).value===x.selectedValue),S(o,_(t).label)},[()=>A(_(n))]),v(`mousedown`,r,e=>e.preventDefault()),v(`click`,r,()=>I(_(t).value)),c(e,r)}),p(t),a(()=>{y(t,`id`,k),y(t,`aria-labelledby`,D)}),c(e,t)};m(W,e=>{_(j)&&e(G)}),p(V),p(R),a(e=>{y(z,`id`,D),b(z,1,h(x.isLabelVisible?`font-heading text-3xl text-heading-text`:`sr-only`)),S(B,x.label),y(H,`id`,O),y(H,`aria-controls`,k),y(H,`aria-expanded`,_(j)),y(H,`aria-labelledby`,`${D} ${O}`),y(H,`aria-activedescendant`,e),S(U,`${_(N)??``} `)},[()=>_(j)?A(_(M)):void 0]),v(`click`,H,()=>_(j)?F():P()),v(`keydown`,H,L),t(`blur`,H,F),c(o,R),s()}o([`click`,`keydown`,`mousedown`]);export{E as t};
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.