decord/source/modules/avatar/native/components/PresetAvatarSelect.tsx

202 lines
6.7 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 16187
// Function ID: 125502
2026-07-20 16:05:17 +00:00
// Name: DefaultAvatarButton
2026-07-27 11:26:19 +00:00
// Dependencies: [31, 27, 33, 16188, 16189, 16190, 16191, 16192, 16193, 16194, 16195, 1212, 4131, 689, 4127, 4661, 5085, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 16187 (DefaultAvatarButton)
2026-07-23 10:11:24 +00:00
import "result";
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_4;
let closure_5;
const require = arg1;
2026-07-20 16:05:17 +00:00
function DefaultAvatarButton(selected) {
let accessibilityLabel;
let onSelect;
let source;
selected = selected.selected;
({ source, onSelect, accessibilityLabel } = selected);
const tmp = callback3();
let obj = {};
const items = [tmp.defaultAvatarContainer, ];
let prop;
if (selected) {
prop = tmp.defaultAvatarSelected;
}
items[1] = prop;
obj.style = items;
obj.accessibilityRole = "button";
obj.accessibilityLabel = accessibilityLabel;
obj.accessibilityState = { selected };
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
obj.accessibilityHint = intl.string(require(1212) /* getSystemLocale */.t.vw2RsD);
2026-07-20 16:05:17 +00:00
obj.onPress = onSelect;
obj = { style: tmp.defaultAvatarButton, source: { uri: source } };
2026-07-23 10:11:24 +00:00
obj.children = callback(importDefault(5085), obj);
2026-07-25 08:10:48 +00:00
return callback(require(4661) /* PressableBase */.PressableOpacity, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
({ jsx: closure_4, jsxs: closure_5 } = jsxProd);
let items = [require("set"), require("set"), require("set"), require("set"), require("set"), require("set"), require("set"), require("set")];
2026-07-20 16:05:17 +00:00
let obj = {
2026-07-23 10:11:24 +00:00
avatar: require("set"),
2026-07-20 16:05:17 +00:00
label() {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t["u/VENK"]);
2026-07-20 16:05:17 +00:00
}
};
2026-07-23 10:11:24 +00:00
let items1 = [obj, , , , , , , ];
2026-07-20 16:05:17 +00:00
obj = {
2026-07-23 10:11:24 +00:00
avatar: require("set"),
2026-07-20 16:05:17 +00:00
label() {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t["pBx+d8"]);
2026-07-20 16:05:17 +00:00
}
};
items1[1] = obj;
obj = {
2026-07-23 10:11:24 +00:00
avatar: require("set"),
2026-07-20 16:05:17 +00:00
label() {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t.vbERmz);
2026-07-20 16:05:17 +00:00
}
};
items1[2] = obj;
items1[3] = {
2026-07-23 10:11:24 +00:00
avatar: require("set"),
2026-07-20 16:05:17 +00:00
label() {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t.Ecxz3Z);
2026-07-20 16:05:17 +00:00
}
};
const obj1 = {
2026-07-23 10:11:24 +00:00
avatar: require("set"),
2026-07-20 16:05:17 +00:00
label() {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t.Ecxz3Z);
2026-07-20 16:05:17 +00:00
}
};
items1[4] = {
2026-07-23 10:11:24 +00:00
avatar: require("set"),
2026-07-20 16:05:17 +00:00
label() {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t.Jb8PYM);
2026-07-20 16:05:17 +00:00
}
};
const obj2 = {
2026-07-23 10:11:24 +00:00
avatar: require("set"),
2026-07-20 16:05:17 +00:00
label() {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t.Jb8PYM);
2026-07-20 16:05:17 +00:00
}
};
items1[5] = {
2026-07-23 10:11:24 +00:00
avatar: require("set"),
2026-07-20 16:05:17 +00:00
label() {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t["3h0yoI"]);
2026-07-20 16:05:17 +00:00
}
};
const obj3 = {
2026-07-23 10:11:24 +00:00
avatar: require("set"),
2026-07-20 16:05:17 +00:00
label() {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t["3h0yoI"]);
2026-07-20 16:05:17 +00:00
}
};
items1[6] = {
2026-07-23 10:11:24 +00:00
avatar: require("set"),
2026-07-20 16:05:17 +00:00
label() {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t.frIpZ5);
2026-07-20 16:05:17 +00:00
}
};
const obj4 = {
2026-07-23 10:11:24 +00:00
avatar: require("set"),
2026-07-20 16:05:17 +00:00
label() {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t.frIpZ5);
2026-07-20 16:05:17 +00:00
}
};
items1[7] = {
2026-07-23 10:11:24 +00:00
avatar: require("set"),
2026-07-20 16:05:17 +00:00
label() {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t.zpfUeg);
2026-07-20 16:05:17 +00:00
}
};
2026-07-23 10:11:24 +00:00
const obj6 = { container: { display: "flex", alignItems: "center", flex: 1 }, buttonsContainer: { display: "flex", flexDirection: "row", marginTop: 20, justifyContent: "space-between" } };
const obj7 = { height: 48, width: 48, borderRadius: require("_createForOfIteratorHelperLoose").radii.xl };
obj6.defaultAvatarButton = obj7;
obj6.defaultAvatarContainer = { marginHorizontal: 8, width: 56, height: 56, padding: 2, borderWidth: 2, borderRadius: 28, borderColor: "transparent", display: "flex", alignItems: "center", justifyContent: "center" };
_createForOfIteratorHelperLoose = { borderColor: require("_createForOfIteratorHelperLoose").colors.INTERACTIVE_TEXT_ACTIVE };
obj6.defaultAvatarSelected = _createForOfIteratorHelperLoose;
let closure_7 = _createForOfIteratorHelperLoose.createStyles(obj6);
2026-07-20 16:05:17 +00:00
const obj5 = {
2026-07-23 10:11:24 +00:00
avatar: require("set"),
2026-07-20 16:05:17 +00:00
label() {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t.zpfUeg);
2026-07-20 16:05:17 +00:00
}
};
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/avatar/native/components/PresetAvatarSelect.tsx");
2026-07-20 16:05:17 +00:00
export default function PresetAvatarSelect(arg0) {
2026-07-23 10:11:24 +00:00
let importDefault;
let require;
({ onAvatarSelect: require, selectedAvatar: importDefault } = arg0);
2026-07-20 16:05:17 +00:00
const tmp = callback3();
let obj = { style: tmp.container, accessibilityRole: "list" };
2026-07-23 10:11:24 +00:00
obj = { variant: "text-sm/medium", color: "text-default" };
let intl = require(1212) /* getSystemLocale */.intl;
obj.children = intl.string(require(1212) /* getSystemLocale */.t.yP28YL);
2026-07-25 08:10:48 +00:00
const items = [callback(require(4127) /* Text */.Text, obj), , ];
2026-07-20 16:05:17 +00:00
obj = {
style: tmp.buttonsContainer,
children: items1.map((arg0) => {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
let obj = outer1_6[arg0];
2026-07-20 16:05:17 +00:00
obj = {
source: obj.avatar,
onSelect() {
2026-07-23 10:11:24 +00:00
return callback(callback);
2026-07-20 16:05:17 +00:00
},
selected: closure_1 === arg0
};
2026-07-23 10:11:24 +00:00
const intl = outer1_0(outer1_2[11]).intl;
2026-07-20 16:05:17 +00:00
obj = { index: arg0 + 1 };
obj.description = obj.label();
2026-07-23 10:11:24 +00:00
obj.accessibilityLabel = intl.formatToPlainString(outer1_0(outer1_2[11]).t["1K8jaQ"], obj);
return outer1_4(outer1_8, obj, arg0);
2026-07-20 16:05:17 +00:00
})
};
2026-07-23 10:11:24 +00:00
items1 = [0, 1, 2, 3];
2026-07-20 16:05:17 +00:00
items[1] = callback(View, obj);
2026-07-23 10:11:24 +00:00
const items2 = [4, 5, 6, 7];
2026-07-20 16:05:17 +00:00
items[2] = callback(View, {
style: tmp.buttonsContainer,
children: items2.map((arg0) => {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
let obj = outer1_6[arg0];
2026-07-20 16:05:17 +00:00
obj = {
source: obj.avatar,
onSelect() {
2026-07-23 10:11:24 +00:00
return callback(callback);
2026-07-20 16:05:17 +00:00
},
selected: closure_1 === arg0
};
2026-07-23 10:11:24 +00:00
const intl = outer1_0(outer1_2[11]).intl;
2026-07-20 16:05:17 +00:00
obj = { index: arg0 + 1 };
obj.description = obj.label();
2026-07-23 10:11:24 +00:00
obj.accessibilityLabel = intl.formatToPlainString(outer1_0(outer1_2[11]).t["1K8jaQ"], obj);
return outer1_4(outer1_8, obj, arg0);
2026-07-20 16:05:17 +00:00
})
});
obj.children = items;
return callback2(View, obj);
};
export const DEFAULT_AVATARS = items;
export const DEFAULT_AVATARS_WITH_LABELS = items1;