1import{a as u}from"/build/_shared/chunk-Y3BPLONU.js";import{a as d}from"/build/_shared/chunk-I5UT2UAU.js";import{a as m}from"/build/_shared/chunk-UXJUA2QE.js";import{a as c}from"/build/_shared/chunk-5OBEDPFR.js";import{d as s}from"/build/_shared/chunk-T36URGAI.js";var e=s(c()),S=({className:g="",label:a,name:p,labelClassName:v,options:b,selectedOption:t,onSelectItem:l,error:n,placeholder:f="-- Please Select --",errorTextClass:o,...x})=>{let i=typeof t=="string"?t:t==null?void 0:t.value;return(0,e.jsxs)("div",{className:`flex flex-col ${g}`,children:[a&&(0,e.jsx)("label",{className:v,htmlFor:a,children:a}),(0,e.jsxs)("div",{className:"relative flex items-center justify-between border border-grey-3 rounded h-[50px] pl-4 py-2 bg-site-background focus:border-black focus:outline-none text-input",children:[(0,e.jsxs)("select",{...x,name:p,id:a,className:`appearance-none w-full focus:outline-none bg-site-background ${i?"":"text-grey-4"}`,onChange:r=>{l&&l(r.target.value)},value:i,children:[(0,e.jsx)("option",{disabled:!0,value:"",children:f}),b.map(r=>(0,e.jsx)("option",{value:r.value,children:r.label},r.value))]}),(0,e.jsx)(d,{className:"absolute right-0 mr-4 pointer-events-none",width:16,height:16,icon:u})]}),n&&(0,e.jsx)("div",{"data-test-id":"validation-error",children:(0,e.jsx)(m,{className:`text-dark-red ${o||""}`,children:n})})]})};export{S as a};
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.