1import{p as x,k as m,D as f,aA as y,o as l,b as c,m as a,d as r,q as w,r as k,s as v,e as d,aq as B,ar as D,aa as h,as as N,av as V}from"./esrQqIgb.js";const $={class:"c-dropdown__list"},q={"data-lenis-preventclass":"c-dropdown__list-inner"},A=["onClick"],I=x({__name:"Dropdown",props:{list:{},selected:{},set:{type:Function}},setup(C){const n=C,i=m(()=>n.list.find(t=>t.id===n.selected)),o=f(!1),_=f();function b(t){var s;(s=n.set)==null||s.call(n,t),o.value=!1}return y(_,()=>o.value=!1),(t,s)=>{const p=N,g=V;return l(),c("div",{ref_key:"container",ref:_,class:h([{opened:d(o)},"c-dropdown"])},[a("button",{onClick:s[0]||(s[0]=e=>o.value=!d(o)),class:"c-dropdown__button"},[r(p,{bold:""},{default:w(()=>{var e;return[k(v((e=d(i))==null?void 0:e.label),1)]}),_:1}),r(g,{theme:"lightdark",orientation:"down"})]),a("div",$,[a("div",q,[(l(!0),c(B,null,D(t.list,e=>{var u;return l(),c("button",{key:e.id,class:h(["c-dropdown__list-item",{selected:(e==null?void 0:e.id)===((u=d(i))==null?void 0:u.id)}]),onClick:()=>b(e==null?void 0:e.id)},[r(p,{bold:""},{default:w(()=>[k(v(e==null?void 0:e.label),1)]),_:2},1024),s[1]||(s[1]=a("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a("path",{d:"M13 5L7 11C7 11 5.5621 9.5621 4 8",stroke:"#161616","stroke-width":"2"})],-1))],10,A)}),128))])])],2)}}});export{I as _};
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.