(t0)
| 190 | readonly onRemoveImage?: (id: number) => void; |
| 191 | }; |
| 192 | export function Select(t0) { |
| 193 | const $ = _c(72); |
| 194 | const { |
| 195 | isDisabled: t1, |
| 196 | hideIndexes: t2, |
| 197 | visibleOptionCount: t3, |
| 198 | highlightText, |
| 199 | options, |
| 200 | defaultValue, |
| 201 | onCancel, |
| 202 | onChange, |
| 203 | onFocus, |
| 204 | defaultFocusValue, |
| 205 | layout: t4, |
| 206 | disableSelection: t5, |
| 207 | inlineDescriptions: t6, |
| 208 | onUpFromFirstItem, |
| 209 | onDownFromLastItem, |
| 210 | onInputModeToggle, |
| 211 | onOpenEditor, |
| 212 | onImagePaste, |
| 213 | pastedContents, |
| 214 | onRemoveImage |
| 215 | } = t0; |
| 216 | const isDisabled = t1 === undefined ? false : t1; |
| 217 | const hideIndexes = t2 === undefined ? false : t2; |
| 218 | const visibleOptionCount = t3 === undefined ? 5 : t3; |
| 219 | const layout = t4 === undefined ? "compact" : t4; |
| 220 | const disableSelection = t5 === undefined ? false : t5; |
| 221 | const inlineDescriptions = t6 === undefined ? false : t6; |
| 222 | const [imagesSelected, setImagesSelected] = useState(false); |
| 223 | const [selectedImageIndex, setSelectedImageIndex] = useState(0); |
| 224 | let t7; |
| 225 | if ($[0] !== options) { |
| 226 | t7 = () => { |
| 227 | const initialMap = new Map(); |
| 228 | options.forEach(option => { |
| 229 | if (option.type === "input" && option.initialValue) { |
| 230 | initialMap.set(option.value, option.initialValue); |
| 231 | } |
| 232 | }); |
| 233 | return initialMap; |
| 234 | }; |
| 235 | $[0] = options; |
| 236 | $[1] = t7; |
| 237 | } else { |
| 238 | t7 = $[1]; |
| 239 | } |
| 240 | const [inputValues, setInputValues] = useState(t7); |
| 241 | let t8; |
| 242 | if ($[2] === Symbol.for("react.memo_cache_sentinel")) { |
| 243 | t8 = new Map(); |
| 244 | $[2] = t8; |
| 245 | } else { |
| 246 | t8 = $[2]; |
| 247 | } |
| 248 | const lastInitialValues = useRef(t8); |
| 249 | let t10; |
nothing calls this directly
no test coverage detected