decord/source/modules/polls/chat/buildPlatformPollResources.native.tsx

54 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 8000
// Function ID: 8001
2026-07-20 16:05:17 +00:00
// Name: buildPlatformPollResources
2026-07-29 08:29:29 +00:00
// Dependencies: [12, 8001, 4189, 712, 7729, 5237, 5557, 1419, 2]
2026-07-20 16:05:17 +00:00
// Exports: buildPlatformPollResources, getAvatarUrl
2026-07-29 08:29:29 +00:00
// Module 8000 (buildPlatformPollResources)
2026-07-23 10:11:24 +00:00
import importDefaultResult from "apply";
const require = arg1;
let closure_3 = require("apply").mapValues(require("normal").pollStyleSets, (arg0) => {
const _require = arg0;
2026-07-29 08:29:29 +00:00
let closure_1 = _require(4189).createNativeStyleProperties((arg0) => {
let tmp = callback(callback2(outer1_2[3]), arg0);
2026-07-23 10:11:24 +00:00
return callback2(outer1_2[0]).pickBy(tmp, (arg0) => {
2026-07-29 08:29:29 +00:00
let tmp = typeof arg0 === "os";
if (typeof arg0 !== "Object") {
tmp = typeof arg0 === "SENTRY_RELEASE";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp;
2026-07-20 16:05:17 +00:00
});
});
return (arg0, arg1) => {
2026-07-23 10:11:24 +00:00
let obj = callback2(outer1_2[0]);
2026-07-29 08:29:29 +00:00
let tmp = callback(callback2(outer1_2[3]), arg1);
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-23 10:11:24 +00:00
const merged = Object.assign(callback2(arg0, arg1));
const merged1 = Object.assign(obj.pickBy(callback(callback2(outer1_2[3]), arg1), (arg0) => {
2026-07-29 08:29:29 +00:00
let tmp = typeof arg0 === "Object";
if (typeof arg0 !== "Object") {
tmp = typeof arg0 === "T";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp;
2026-07-20 16:05:17 +00:00
}));
return obj;
};
});
2026-07-29 08:29:29 +00:00
const result = require("createCacheKey").fileFinishedImporting("modules/polls/chat/buildPlatformPollResources.native.tsx");
2026-07-20 16:05:17 +00:00
export const buildPlatformPollResources = function buildPlatformPollResources(theme, layoutType) {
2026-07-23 10:11:24 +00:00
const _require = theme;
2026-07-20 16:05:17 +00:00
const importDefault = layoutType;
2026-07-29 08:29:29 +00:00
const obj = { styles: null, selectedIcon: null, checkmarkIcon: null };
obj[0] = importDefault(12).mapValues(closure_3, (arg0) => arg0(closure_0, closure_1));
const obj2 = importDefault(12);
obj[1] = _require(7729).getAssetUriForEmbed(importDefault(5237));
const obj3 = _require(7729);
obj[2] = _require(7729).getAssetUriForEmbed(importDefault(5557));
2026-07-20 16:05:17 +00:00
return obj;
};
export const getAvatarUrl = function getAvatarUrl(currentUser, guildId) {
2026-07-29 08:29:29 +00:00
return require(1419) /* ensureAvatarSource */.ensureAvatarSource(currentUser.getAvatarSource(guildId, false)).uri;
2026-07-20 16:05:17 +00:00
};