1import _ from"./Bv4AImM4.js";import{a as h}from"./spU9IHx0.js";import{d as w,r as g,i as x,c as n,f as t,t as i,b as u,e as y,F as k,H as S,a8 as B,o as r}from"./C-4cNrP0.js";import"./we1cOVKh.js";const C={class:"text-6xl font-display block"},V={class:"text-6xl font-display block cursor-pointer relative px-4"},z={class:"capitalize text-cl-brown-900"},F={class:"z-10 bg-white rounded-b shadow-md absolute left-0 p-4 w-full"},L=["onClick"],E=w({__name:"BaseDisplaySelect",props:{name:{type:String},options:{type:Array},initialValue:{default:"",type:String},label:{type:String},noLabel:{type:Boolean}},emits:["change"],setup(p,{emit:d}){const m=d,l=p,o=g(!1),{value:a}=h(()=>l.name,void 0,{initialValue:l.initialValue}),v=x(()=>l.options.find(e=>e.value===a.value));function f(e){o.value=!1,!(!e?.value||e.value===a.value)&&(a.value=e.value,m("change",a.value))}return(e,c)=>{const b=_;return r(),n("div",null,[t("div",{class:B(["flex flex-row items-start gap-2 h-16",u(o)?"overflow-visible":"overflow-hidden"])},[t("label",C,i(e.label?e.label:l.noLabel?void 0:e.name),1),t("div",V,[t("div",{class:"flex items-center gap-1",onClick:c[0]||(c[0]=s=>o.value=!0)},[t("p",z,i(u(v)?.label),1),y(b,{size:"24",name:"mdi:chevron-down",class:"text-cl-brown-900"})]),t("ul",F,[(r(!0),n(k,null,S(e.options,s=>(r(),n("li",{class:"w-auto hover:text-cl-brown-900",onClick:D=>f(s)},[t("p",null,i(s.label),1)],8,L))),256))])])],2)])}}});export{E 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.