MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / Select

Function Select

source code/components/CustomSelect/select.tsx:194–625  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 11

useSelectStateFunction · 0.85
countFunction · 0.85
useSelectInputFunction · 0.85
getTextContentFunction · 0.85
setMethod · 0.80
maxMethod · 0.80
toStringMethod · 0.65
onChangeFunction · 0.50
onCancelFunction · 0.50
getMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected