1import{_ as w}from"./N6srsExD.js";import{_ as z,r as C,c as B,a as V,A as O,z as D,o as s,b as n,t as i,i as u,e as d,n as m,h as o,g as f,a0 as N,F as L,d as Z,f as A,Z as F}from"./DsBqIO5m.js";import{u as K}from"./BLI0msjf.js";const T={key:0,class:"z-select__label"},q=["aria-label","aria-expanded"],E={key:0,class:"z-select__options",role:"listbox"},I=["disabled","aria-selected","onClick"],$={__name:"SelectBox",props:{label:{type:String,default:""},ariaLabel:{type:String,default:""},modelValue:{type:[String,Number,Boolean],default:""},ltr:{type:Boolean,default:!1},options:{type:Array,required:!0},placeholder:{type:String,default:"Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯"}},emits:["input","update:modelValue"],setup(t,{emit:g}){const _=t,v=g,{vClickOutside:k}=K(),l=C(!1),p=B(()=>_.options.find(e=>c(e.value))||null);function b(e){return(e==null?void 0:e.title)??(e==null?void 0:e.label)??""}function c(e){return String(e??"")===String(_.modelValue??"")}function x(){l.value=!l.value}function S(e){e.disabled||(v("input",e.value),v("update:modelValue",e.value),r())}function r(){l.value=!1}return(e,j)=>{const h=V("font-awesome-icon"),y=w;return O((s(),n("div",{class:m(["z-select",{"z-select--open":l.value,"z-select--ltr":t.ltr}])},[t.label?(s(),n("span",T,i(t.label),1)):u("",!0),d("button",{type:"button",class:"z-select__trigger","aria-label":t.ariaLabel||t.label||t.placeholder,"aria-expanded":l.value,"aria-haspopup":"listbox",onClick:x,onKeydown:N(r,["esc"])},[d("span",{class:m({"z-select__placeholder":!p.value})},i(b(p.value)||t.placeholder),3),o(y,null,{default:f(()=>[o(h,{icon:"chevron-down"})]),_:1})],40,q),o(F,{name:"z-select-popup"},{default:f(()=>[l.value?(s(),n("div",E,[(s(!0),n(L,null,Z(t.options,a=>(s(),n("button",{key:a.id??String(a.value),type:"button",role:"option",disabled:a.disabled,"aria-selected":c(a.value),class:m({"is-selected":c(a.value)}),onClick:G=>S(a)},[d("span",null,i(b(a)),1),o(y,null,{default:f(()=>[c(a.value)?(s(),A(h,{key:0,icon:"check"})):u("",!0)]),_:2},1024)],10,I))),128))])):u("",!0)]),_:1})],2)),[[D(k),r]])}}},P=z($,[["__scopeId","data-v-ec010644"]]);export{P as Z};
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.