decord/source/modules/gif_picker/native/GIFPickerSearchSuggestions.tsx

62 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 9543
2026-07-27 11:26:19 +00:00
// Function ID: 74483
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 27, 9532, 33, 4131, 689, 566, 4127, 1212, 4544, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 9543
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
import importAllResult from "result";
let closure_5;
let closure_6;
const require = arg1;
({ jsx: closure_5, jsxs: closure_6 } = jsxProd);
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { justifyContent: "center", flexDirection: "row", flexWrap: "wrap", gap: require("_createForOfIteratorHelperLoose").space.PX_8 };
2026-07-20 16:05:17 +00:00
obj.suggestionsContainer = obj;
2026-07-23 10:11:24 +00:00
_createForOfIteratorHelperLoose = { justifyContent: "flex-start", paddingVertical: require("_createForOfIteratorHelperLoose").space.PX_16 };
obj.footerSuggestionsContainer = _createForOfIteratorHelperLoose;
obj.footerSuggestionsTitle = { marginBottom: require("_createForOfIteratorHelperLoose").space.PX_16, textAlign: "center" };
let closure_7 = _createForOfIteratorHelperLoose.createStyles(obj);
const obj2 = { marginBottom: require("_createForOfIteratorHelperLoose").space.PX_16, textAlign: "center" };
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo(function GIFPickerSearchSuggestions(onClickSuggestion) {
2026-07-23 10:11:24 +00:00
onClickSuggestion = onClickSuggestion.onClickSuggestion;
2026-07-20 16:05:17 +00:00
const tmp = callback3();
2026-07-23 10:11:24 +00:00
let obj = onClickSuggestion(566);
const items = [_isNativeReflectConstruct];
const stateFromStoresArray = obj.useStateFromStoresArray(items, () => outer1_4.getSuggestions());
2026-07-20 16:05:17 +00:00
let tmp2 = null;
if (0 !== stateFromStoresArray.length) {
obj = { style: tmp.footerSuggestionsContainer };
2026-07-23 10:11:24 +00:00
obj = { style: tmp.footerSuggestionsTitle, variant: "text-md/medium", color: "text-default" };
const intl = onClickSuggestion(1212).intl;
obj.children = intl.string(onClickSuggestion(1212).t["3JGJo2"]);
2026-07-25 08:10:48 +00:00
const items1 = [callback(onClickSuggestion(4127).Text, obj), ];
2026-07-20 16:05:17 +00:00
const obj1 = {
style: tmp.suggestionsContainer,
children: stateFromStoresArray.map((text) => {
2026-07-23 10:11:24 +00:00
let closure_0 = text;
2026-07-20 16:05:17 +00:00
const obj = {
2026-07-23 10:11:24 +00:00
size: "sm",
variant: "secondary",
hitSlop: outer1_1(outer1_2[5]).space.PX_8,
2026-07-20 16:05:17 +00:00
text,
onPress() {
2026-07-23 10:11:24 +00:00
return text(text);
2026-07-20 16:05:17 +00:00
}
};
2026-07-23 10:11:24 +00:00
return outer1_5(onClickSuggestion(outer1_2[9]).Button, obj, text);
2026-07-20 16:05:17 +00:00
})
};
items1[1] = callback(View, obj1);
obj.children = items1;
tmp2 = callback2(View, obj);
}
return tmp2;
});
2026-07-23 10:11:24 +00:00
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/gif_picker/native/GIFPickerSearchSuggestions.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;