define(['exports', 'preact/jsx-runtime', './IconButton-dc1be00e', './NavLeft-d270ba82', 'preact/hooks', './keyboardUtils-fb6219eb', 'preact/compat', './TextFieldInput-f8635c62', 'css!./ObfuscatedTextFieldInputStyles.styles.css', './useAccessibleContext-23e8a333', './logger-0f873e29', './FormContext-6b0879a0', './FormFieldContext-a024b891', './useFormFieldContext-9260f081', './TabbableModeContext-a9c97640', './useTranslationBundle-e4dd341e', './textAlign-ef924afd', 'css!./FormControlUtilsStyles.styles.css', 'css!./ReadonlyTextFieldInputStyles.styles.css', './UNSAFE_TextField/themes/redwood/ReadonlyTextFieldInputVariants.css', './StyledTextField-2b62c81d', './TextField-c8c71735', 'css!./LiveRegionStyles.styles.css', './LayerHost-0b288129', './UNSAFE_TextField/themes/TextFieldStyles.css', 'css!./SkeletonStyles.styles.css', 'css!./TextFieldLoadingStyles.styles.css', 'css!./TextFieldStyles.styles.css', 'module', './UNSAFE_TextField/themes/redwood/TextFieldVariants.css', './useSelectCommon-f33709d2', './LiveRegion-dbefb95b', 'css!./LabelValueLayoutStyles.styles.css', 'css!./LabelStyles.styles.css', 'module', './UNSAFE_Label/themes/redwood/LabelVariants.css', './UNSAFE_TextField/themes/FormLayoutStyles.css', 'module', './Flex-4b81b412', 'css!./LayoutStyles.styles.css', './InputGroupContext-372087af', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-2bb62284'], (function(e,t,s,o,l,n,i,a,d,r,c,u,F,x,S,y,b,h,m,T,p,C,w,A,L,f,g,v,B,I,_,U,j,k,N,E,V,D,R,$,M,z,O,G,H){"use strict";e.SelectSingleField=function({children:e,hasInsideLabel:l,isBackButtonShown:n,isClearButtonShown:i,isDropdownArrowShown:a,onBackButtonClick:d,onClearButtonClick:r,onDropdownArrowClick:c,...u}){const F=y.useTranslationBundle("@oracle/oraclejet-preact"),{isDisabled:S,isLoading:b}=x.useFormFieldContext(),h=n?t.jsx(s.IconButton,{"aria-label":F.selectMultiple_back(),size:"xs",variant:"ghost",onAction:d,children:t.jsx(o.SvgNavLeft,{})}):null,m=b?void 0:t.jsxs(t.Fragment,{children:[i&&t.jsx(s.IconButton,{"aria-label":F.formControl_clear(),size:"sm",variant:"ghost",onAction:r,children:t.jsx(o.SvgCancelS,{})}),a&&t.jsx(_.DropdownArrow,{isDisabled:S,onClick:c,testId:`${u.testId}_dropdownarrow`})]});return t.jsx(C.TextField,{startContent:h,mainContent:e,endContent:m,...u})},e.SelectSingleFieldInput=function({displayValue:e,isAddToListShown:s,isAdvancedSearchShown:o,isUserFiltering:l,liveRegionText:n,userInput:i,virtualKeyboard:d,...r}){const c=y.useTranslationBundle("@oracle/oraclejet-preact"),u=c.select_addToListAvailable(),F=c.select_moreSearchOptionsAvailable(),x=`${n} ${s?u:""} ${o?F:""}`;return t.jsxs(t.Fragment,{children:[t.jsx(a.TextFieldInput,{...r,hasEndContent:!0,"aria-autocomplete":"list",autoComplete:"off",role:"combobox",spellcheck:!1,type:"auto"===d?"search":d,value:l?i:e}),t.jsx(U.LiveRegion,{children:x})]})},e.useDisplayValue=function(e,t,s="SelectSingle"){return l.useMemo((()=>void 0===t?"":_.renderItemText(t,e,s)??""),[t,e,s])}}));
//# sourceMappingURL=useDisplayValue-9b671893.js.map
