"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("../../../../_virtual/jsx-runtime.js"),j=require("../../dropdown/styles.js"),u=require("../styles.js"),c=require("../utils.js");function m({searchOptions:i,noResultsText:x,value:n,focusElement:a,onClick:d,setFocusElement:l}){return s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:i.length<1?s.jsxRuntimeExports.jsx(u.NoResultsText,{onMouseDown:e=>e.preventDefault(),children:x}):i.map((e,t)=>{const r=c.getSlicedValue(e,n);return s.jsxRuntimeExports.jsx(j.OptionItem,{"data-testid":e.dataTestId,tabIndex:0,role:"option",isDisabled:e.isDisabled,isHovered:a===t,isSelected:n===e.value,onClick:()=>!e.isDisabled&&d(e),onFocus:()=>l(t),onMouseEnter:()=>l(t),onMouseDown:o=>o.preventDefault(),children:r?s.jsxRuntimeExports.jsxs(u.ItemValue,{children:[s.jsxRuntimeExports.jsx("b",{children:r.bolded}),r.end]}):s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx("div",{children:e.label}),e.altText&&s.jsxRuntimeExports.jsx("div",{children:e.altText})]})},String(e.value))})})}exports.SearchOptions=m;
