decord/beta/source/modules/polls/native/PollBadge.tsx
2026-10-12 16:32:48 +00:00

110 lines
3.6 KiB
TypeScript

// Module ID: 17424
// Function ID: 17425
// Name: PollBadge
// Dependencies: [19, 17, 21, 5092, 587, 558, 576, 1200, 17425, 1126, 5088, 2]
// Module 17424 (PollBadge)
import react_native from "react-native" /* 17 */;
import react2 from "react" /* 576 */;
import nativeDefault from "native" /* 587 */;
import intl2 from "intl" /* 1126 */;
import native from "native" /* 1200 */;
import Text_Text from "Text/Text" /* 5088 */;
import AssetRegistryDefault from "AssetRegistry" /* 17425 */;
import react from "react" /* 19 */;
import Fragment from "Fragment" /* 21 */;
import createStyles from "createStyles" /* 5092 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
let closure_4;
let hasOwnProperty;
let obj2;
const View = react_native.View;
({ jsx: closure_4, jsxs: hasOwnProperty } = Fragment);
let obj = { container: obj2, text: { marginLeft: 4, textTransform: "uppercase" } };
obj2 = { borderRadius: nativeDefault.radii.round, paddingHorizontal: 8, backgroundColor: nativeDefault.colors.BACKGROUND_SURFACE_HIGH, color: nativeDefault.colors.TEXT_MUTED, flexDirection: "row", alignItems: "center" };
let closure_6 = createStyles.createStyles(obj);
let tmp4 = ReactCompilerGating.isReactCompilerEnabled() ? (function PollBadge(style) {
let items;
const obj = react2;
const cResult = obj.c(10);
style = style.style;
const tmp4 = closure_6();
if (cResult[0] === style) {
let tmp5;
let tmp7;
let tmp11;
let tmp13;
if (cResult[1] === tmp4.container) {
tmp5 = cResult[2];
}
const _Symbol = Symbol;
if (cResult[3] === Symbol.for("react.memo_cache_sentinel")) {
const obj2 = { size: native.IconSizes.EXTRA_SMALL_10, source: AssetRegistryDefault };
const Icon = tmp(1200).Icon;
const tmp10 = React3(Icon, obj2);
cResult[3] = tmp10;
tmp7 = tmp10;
} else {
tmp7 = cResult[3];
}
const _Symbol2 = Symbol;
const text = tmp4.text;
if (cResult[4] === Symbol.for("react.memo_cache_sentinel")) {
const intl = tmp(1126).intl;
const stringResult = intl.string(intl2.t.RgIi2B);
cResult[4] = stringResult;
tmp11 = stringResult;
} else {
tmp11 = cResult[4];
}
if (cResult[5] !== tmp4.text) {
const obj3 = { style: text, variant: "text-xs/semibold", children: tmp11 };
const tmp15 = React3(Text_Text.Text, obj3);
cResult[5] = tmp4.text;
cResult[6] = tmp15;
tmp13 = tmp15;
} else {
tmp13 = cResult[6];
}
if (cResult[7] === tmp5) {
let tmp16;
if (cResult[8] === tmp13) {
tmp16 = cResult[9];
}
return tmp16;
}
const obj4 = { style: tmp5, children: items };
items = [tmp7, tmp13];
const tmp19 = hasOwnProperty(View, obj4);
cResult[7] = tmp5;
cResult[8] = tmp13;
cResult[9] = tmp19;
tmp16 = tmp19;
}
const items1 = [tmp4.container, style];
cResult[0] = style;
cResult[1] = tmp4.container;
cResult[2] = items1;
tmp5 = items1;
}) : (function PollBadge(style) {
let intl;
let items;
let items1;
style = style.style;
const tmp = closure_6();
const obj = { style: items, children: items1 };
items = [tmp.container, style];
const obj2 = { size: native.IconSizes.EXTRA_SMALL_10, source: AssetRegistryDefault };
const Icon = native.Icon;
items1 = [React3(Icon, obj2), ];
const obj3 = { style: tmp.text, variant: "text-xs/semibold", children: intl.string(intl2.t.RgIi2B) };
const Text = Text_Text.Text;
intl = intl2.intl;
items1[1] = React3(Text, obj3);
return hasOwnProperty(View, obj);
});
const result = size.fileFinishedImporting("modules/polls/native/PollBadge.tsx");
export default tmp4;