This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,31 +1,33 @@
/* Metro module 8437; source: modules/polls/chat/PollMessageChatDataTypes.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun67000(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8622:6, offset: 0x01c11d98, size: 243 bytes, params: 8, frame: 19
var object4;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object4 = {NONE: 0};
object4[0] = 'NONE';
object4.LOW = 1;
object4[1] = 'LOW';
object4.HIGH = 2;
object4[2] = 'HIGH';
const object5 = {NONE: 0};
object5[0] = 'NONE';
object5.HOLLOW = 1;
object5[1] = 'HOLLOW';
object5.FILLED = 2;
object5[2] = 'FILLED';
object5.CHECKMARK = 3;
object5[3] = 'CHECKMARK';
const object6 = {LIST: 1};
object6[1] = 'LIST';
object6.CHECKBOXES = 2;
object6[2] = 'CHECKBOXES';
object6.RADIO_BUTTONS = 3;
object6[3] = 'RADIO_BUTTONS';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/polls/chat/PollMessageChatDataTypes.tsx');
exports.NativeShadowType = object4;
exports.PollRadioStyle = object5;
exports.PollChatAnswerInteractionType = object6;
object = {NONE: 0};
object[0] = 'NONE';
object.LOW = 1;
object[1] = 'LOW';
object.HIGH = 2;
object[2] = 'HIGH';
const object2 = {NONE: 0};
object2[0] = 'NONE';
object2.HOLLOW = 1;
object2[1] = 'HOLLOW';
object2.FILLED = 2;
object2[2] = 'FILLED';
object2.CHECKMARK = 3;
object2[3] = 'CHECKMARK';
const object3 = {LIST: 1};
object3[1] = 'LIST';
object3.CHECKBOXES = 2;
object3[2] = 'CHECKBOXES';
object3.RADIO_BUTTONS = 3;
object3[3] = 'RADIO_BUTTONS';
(FileImportTrackerModule).fileFinishedImporting('modules/polls/chat/PollMessageChatDataTypes.tsx');
exports.NativeShadowType = object;
exports.PollRadioStyle = object2;
exports.PollChatAnswerInteractionType = object3;
}
global.__d(_fun67000, 8437, [2]) /* metro module 8437, dependencies: [2] */;
@@ -1,60 +1,71 @@
/* Metro module 8434; source: modules/polls/chat/buildPlatformPollResources.native.tsx; dependencies: [22, 8435, 4501, 697, 8191, 6753, 6810, 1426, 2] */
import Module00022 from '../../../by-id/module-00022.js'; /* Metro dependency 22 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AvatarUtilsModule from '../../../utils/native/AvatarUtils.tsx'; /* Metro dependency 1426 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as PollStylesModule from './native/PollStyles.tsx'; /* Metro dependency 8435 */
function _fun66979(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8619:6, offset: 0x01c11529, size: 168 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = importDefault(22) /* metro dependency 22 */;
const env0_3 = value.mapValues((require(8435) /* metro dependency 8435: PollStyles */).pollStyleSets, _fun66980);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/polls/chat/buildPlatformPollResources.native.tsx');
const env0_3 = Module00022.mapValues((PollStylesModule).pollStyleSets, _fun66980);
(FileImportTrackerModule).fileFinishedImporting('modules/polls/chat/buildPlatformPollResources.native.tsx');
exports.buildPlatformPollResources = buildPlatformPollResources;
exports.getAvatarUrl = getAvatarUrl;
function _fun66980(a0) { // fn#66980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8619:139, offset: 0x01c115d1, size: 65 bytes, params: 2, frame: 12
const env0_0 = a0;
const env0_1 = (CreateStylesModule).createNativeStyleProperties(_fun66981);
return _fun66983;
function _fun66981(a0) { // fn#66981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8619:186, offset: 0x01c11612, size: 75 bytes, params: 2, frame: 15
var environment;
const binding = env0_0;
let value = environment.__proto__;
value = importDefault(697) /* metro dependency 697: native */;
value = binding(value, a0);
return (importDefault(22) /* metro dependency 22 */).pickBy(value, function(a0) {
var value = typeof a0;
return value !== 'number' && value !== 'boolean';
});
}
function _fun66983(a0, a1) { // fn#66983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8619:288, offset: 0x01c11678, size: 107 bytes, params: 3, frame: 16
const value3 = env0_0(Native, a1);
const value4 = (importDefault(22) /* metro dependency 22 */).pickBy(value3, function(a0) {
var value = typeof a0;
return value === 'number' || value === 'boolean';
});
const object = {};
copyDataProperties(object, env0_1(a0, a1), value3);
copyDataProperties(object, value4, value3);
return object;
}
}
function buildPlatformPollResources(a0, a1) { // fn#66985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8619:526, offset: 0x01c116fe, size: 153 bytes, params: 3, frame: 18
const env0_0 = a0;
const env0_1 = a1;
const object = {};
const defaultImport = Module00022;
object.styles = defaultImport.mapValues(env0_3, _fun66986);
object.selectedIcon = (require(8191) /* metro dependency 8191: EmbedUtils */).getAssetUriForEmbed(importDefault(6753) /* metro dependency 6753 */);
object.checkmarkIcon = (require(8191) /* metro dependency 8191: EmbedUtils */).getAssetUriForEmbed(importDefault(6810) /* metro dependency 6810 */);
return object;
function _fun66986(a0) { // fn#66986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8619:602, offset: 0x00e57ee9, size: 24 bytes, params: 2, frame: 13
return a0(env0_0, require);
}
}
function getAvatarUrl(a0, a1) { // fn#66987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8619:732, offset: 0x01c11797, size: 63 bytes, params: 3, frame: 15
const ensureAvatarSource = AvatarUtilsModule.ensureAvatarSource;
const getAvatarSource = a0.getAvatarSource;
return Reflect.apply(ensureAvatarSource, AvatarUtilsModule, [Reflect.apply(getAvatarSource, a0, [a1, false])]).uri;
}
}
function _fun66980(a0) { // fn#66980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8619:139, offset: 0x01c115d1, size: 65 bytes, params: 2, frame: 12
const env0_0 = a0;
const env0_1 = (require(4501) /* metro dependency 4501: createStyles */).createNativeStyleProperties(_fun66981);
return _fun66983;
}
function buildPlatformPollResources(a0, a1) { // fn#66985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8619:526, offset: 0x01c116fe, size: 153 bytes, params: 3, frame: 18
const env0_0 = a0;
const env0_1 = a1;
const object2 = {};
const defaultImport = importDefault(22) /* metro dependency 22 */;
object2.styles = defaultImport.mapValues(env0_3, _fun66986);
object2.selectedIcon = (require(8191) /* metro dependency 8191: EmbedUtils */).getAssetUriForEmbed(importDefault(6753) /* metro dependency 6753 */);
object2.checkmarkIcon = (require(8191) /* metro dependency 8191: EmbedUtils */).getAssetUriForEmbed(importDefault(6810) /* metro dependency 6810 */);
return object2;
}
function getAvatarUrl(a0, a1) { // fn#66987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8619:732, offset: 0x01c11797, size: 63 bytes, params: 3, frame: 15
const value = require(1426) /* metro dependency 1426: AvatarUtils */;
const ensureAvatarSource = value.ensureAvatarSource;
const getAvatarSource = a0.getAvatarSource;
return Reflect.apply(ensureAvatarSource, value, [Reflect.apply(getAvatarSource, a0, [a1, false])]).uri;
}
function _fun66981(a0) { // fn#66981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8619:186, offset: 0x01c11612, size: 75 bytes, params: 2, frame: 15
var environment;
const binding = env0_0;
let value = environment.__proto__;
value = importDefault(697) /* metro dependency 697: native */;
value = binding(value, a0);
return (importDefault(22) /* metro dependency 22 */).pickBy(value, function(a0) {
var value = typeof a0;
return value !== 'number' && value !== 'boolean';
});
}
function _fun66983(a0, a1) { // fn#66983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8619:288, offset: 0x01c11678, size: 107 bytes, params: 3, frame: 16
const value3 = env0_0(importDefault(697) /* metro dependency 697: native */, a1);
const value4 = (importDefault(22) /* metro dependency 22 */).pickBy(value3, function(a0) {
var value = typeof a0;
return value === 'number' || value === 'boolean';
});
const object2 = {};
copyDataProperties(object2, env0_1(a0, a1), value3);
copyDataProperties(object2, value4, value3);
return object2;
}
global.__d(_fun66979, 8434, [22, 8435, 4501, 697, 8191, 6753, 6810, 1426,
2]) /* metro module 8434, dependencies: [22, 8435, 4501, 697, 8191, 6753, 6810, 1426, 2] */;
@@ -1,18 +1,23 @@
/* Metro module 8438; source: modules/polls/chat/buildPollResources.tsx; dependencies: [8434, 22, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module00022Module from '../../../by-id/module-00022.js'; /* Metro dependency 22 */
import * as BuildPlatformPollResourcesNativeModule from './buildPlatformPollResources.native.tsx'; /* Metro dependency 8434 */
function _fun67001(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8623:6, offset: 0x01c11e8b, size: 127 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(22) /* metro dependency 22 */;
let value = Module00022Module;
value = value.memoize(buildPollResources, function({theme, layoutType}) {
return '' + theme + ':' + layoutType;
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/polls/chat/buildPollResources.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/polls/chat/buildPollResources.tsx');
exports.default = value;
function buildPollResources({theme, layoutType}) { // fn#67002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8623:115, offset: 0x01c11f0a, size: 53 bytes, params: 2, frame: 14
return (BuildPlatformPollResourcesNativeModule).buildPlatformPollResources(theme,
layoutType);
}
}
function buildPollResources({theme, layoutType}) { // fn#67002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8623:115, offset: 0x01c11f0a, size: 53 bytes, params: 2, frame: 14
return (require(8434) /* metro dependency 8434: buildPlatformPollResourcesNative */).buildPlatformPollResources(theme,
layoutType);
}
global.__d(_fun67001, 8438, [8434, 22, 2]) /* metro module 8438, dependencies: [8434, 22, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,10 +1,14 @@
/* Metro module 8435; source: modules/polls/chat/native/PollStyles.tsx; dependencies: [4242, 8436, 8437, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module04242Module from '../../../../by-id/module-04242.js'; /* Metro dependency 4242 */
import * as PollLayoutTypesModule from '../../../../external/discord_common/js/shared/shared-constants/PollLayoutTypes.tsx'; /* Metro dependency 8436 */
import * as PollMessageChatDataTypesModule from '../PollMessageChatDataTypes.tsx'; /* Metro dependency 8437 */
function _fun66988(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8620:6, offset: 0x01c117d6, size: 215 bytes, params: 8, frame: 20
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {loserSelected: function(a0, a1) {
object = {loserSelected: function(a0, a1) {
var object = {};
var notVotedBinding = notVoted;
copyDataProperties(object, notVotedBinding(a0, a1), notVotedBinding);
@@ -13,7 +17,7 @@ function _fun66988(global, require, importDefault, importAll, module, exports, d
object['radioBackground'] = a0.colors.INTERACTIVE_TEXT_ACTIVE;
object['radioForeground'] = a0.colors.BACKGROUND_BASE_LOW;
return object;
}, normal: normal, notVoted: function(a0, a1) {
}, normal: normal_66989, notVoted: function(a0, a1) {
var object = {};
var normalVoteBinding = normalVote;
copyDataProperties(object, normalVoteBinding(a0, a1), normalVoteBinding);
@@ -32,100 +36,101 @@ function _fun66988(global, require, importDefault, importAll, module, exports, d
return object;
}, voted: voted, normalVote: function(a0, a1) {
var object = {};
var normalBinding = normal;
copyDataProperties(object, normalBinding(a0, a1), normalBinding);
var normal_66989Binding = normal_66989;
copyDataProperties(object, normal_66989Binding(a0, a1), normal_66989Binding);
object['borderWidth'] = 0;
return object;
}};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/polls/chat/native/PollStyles.tsx');
exports.pollStyleSets = object2;
}
(FileImportTrackerModule).fileFinishedImporting('modules/polls/chat/native/PollStyles.tsx');
exports.pollStyleSets = object;
function normal_66989(a0, a1) { // fn#66989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8620:103, offset: 0x01c118ad, size: 260 bytes, params: 3, frame: 20
const env0_0 = a0;
const object = {};
const BORDER_SUBTLE = a0.colors.BORDER_SUBTLE;
object.border = BORDER_SUBTLE;
object.borderWidth = 1;
const CARD_SECONDARY_BG = a0.colors.CARD_SECONDARY_BG;
object.fill = CARD_SECONDARY_BG;
let value = Module04242Module;
value = value.match(a1);
const PollLayoutTypes = (PollLayoutTypesModule).PollLayoutTypes;
const IMAGE_ONLY_ANSWERS = PollLayoutTypes.IMAGE_ONLY_ANSWERS;
value = value.with(IMAGE_ONLY_ANSWERS, _fun66990);
object.label = value.otherwise(_fun66991);
object.opacity = 1;
const BACKGROUND_MOD_MUTED = a0.colors.BACKGROUND_MOD_MUTED;
object.answerBackground = BACKGROUND_MOD_MUTED;
const BACKGROUND_MOD_SUBTLE = a0.colors.BACKGROUND_MOD_SUBTLE;
object.answerFill = BACKGROUND_MOD_SUBTLE;
const PollRadioStyle = (PollMessageChatDataTypesModule).PollRadioStyle;
const HOLLOW = PollRadioStyle.HOLLOW;
object.radioStyle = HOLLOW;
const INTERACTIVE_TEXT_ACTIVE = a0.colors.INTERACTIVE_TEXT_ACTIVE;
object.radioBackground = INTERACTIVE_TEXT_ACTIVE;
const WHITE = a0.colors.WHITE;
object.radioForeground = WHITE;
return object;
function _fun66990() { // fn#66990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8620:260, offset: 0x01c119b1, size: 20 bytes, params: 1, frame: 1
return env0_0.colors.WHITE;
}
function normal(a0, a1) { // fn#66989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8620:103, offset: 0x01c118ad, size: 260 bytes, params: 3, frame: 20
const env0_0 = a0;
const object2 = {};
const BORDER_SUBTLE = a0.colors.BORDER_SUBTLE;
object2.border = BORDER_SUBTLE;
object2.borderWidth = 1;
const CARD_SECONDARY_BG = a0.colors.CARD_SECONDARY_BG;
object2.fill = CARD_SECONDARY_BG;
let value = require(4242) /* metro dependency 4242 */;
value = value.match(a1);
const PollLayoutTypes = (require(8436) /* metro dependency 8436: PollLayoutTypes */).PollLayoutTypes;
const IMAGE_ONLY_ANSWERS = PollLayoutTypes.IMAGE_ONLY_ANSWERS;
value = value.with(IMAGE_ONLY_ANSWERS, _fun66990);
object2.label = value.otherwise(_fun66991);
object2.opacity = 1;
const BACKGROUND_MOD_MUTED = a0.colors.BACKGROUND_MOD_MUTED;
object2.answerBackground = BACKGROUND_MOD_MUTED;
const BACKGROUND_MOD_SUBTLE = a0.colors.BACKGROUND_MOD_SUBTLE;
object2.answerFill = BACKGROUND_MOD_SUBTLE;
const PollRadioStyle = (require(8437) /* metro dependency 8437: PollMessageChatDataTypes */).PollRadioStyle;
const HOLLOW = PollRadioStyle.HOLLOW;
object2.radioStyle = HOLLOW;
const INTERACTIVE_TEXT_ACTIVE = a0.colors.INTERACTIVE_TEXT_ACTIVE;
object2.radioBackground = INTERACTIVE_TEXT_ACTIVE;
const WHITE = a0.colors.WHITE;
object2.radioForeground = WHITE;
return object2;
}
function _fun66991() { // fn#66991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8620:292, offset: 0x01c119c5, size: 20 bytes, params: 1, frame: 1
return env0_0.colors.TEXT_DEFAULT;
}
function victorNotSelected(a0, a1) { // fn#66994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8620:739, offset: 0x01c11a65, size: 129 bytes, params: 3, frame: 15
const object2 = {};
const normalVoteBinding = normalVote;
copyDataProperties(object2, normalVoteBinding(a0, a1), normalVoteBinding);
const STATUS_POSITIVE = a0.colors.STATUS_POSITIVE;
object2['border'] = STATUS_POSITIVE;
object2['borderWidth'] = 1;
const POLLS_VICTOR_FILL = a0.colors.POLLS_VICTOR_FILL;
object2['answerFill'] = POLLS_VICTOR_FILL;
const PollRadioStyle = (require(8437) /* metro dependency 8437: PollMessageChatDataTypes */).PollRadioStyle;
const NONE = PollRadioStyle.NONE;
object2['radioStyle'] = NONE;
return object2;
}
}
function selected(a0, a1) { // fn#66996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8620:1116, offset: 0x01c11b5d, size: 151 bytes, params: 3, frame: 15
const object2 = {};
const normalVoteBinding = normalVote;
copyDataProperties(object2, normalVoteBinding(a0, a1), normalVoteBinding);
const BACKGROUND_BRAND = a0.colors.BACKGROUND_BRAND;
object2['border'] = BACKGROUND_BRAND;
object2['borderWidth'] = 1;
const PollRadioStyle = (require(8437) /* metro dependency 8437: PollMessageChatDataTypes */).PollRadioStyle;
const FILLED = PollRadioStyle.FILLED;
object2['radioStyle'] = FILLED;
const REDESIGN_INPUT_CONTROL_SELECTED = a0.colors.REDESIGN_INPUT_CONTROL_SELECTED;
object2['radioBackground'] = REDESIGN_INPUT_CONTROL_SELECTED;
const STATUS_POSITIVE_TEXT = a0.colors.STATUS_POSITIVE_TEXT;
object2['radioForeground'] = STATUS_POSITIVE_TEXT;
return object2;
}
function victorNotSelected(a0, a1) { // fn#66994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8620:739, offset: 0x01c11a65, size: 129 bytes, params: 3, frame: 15
const object = {};
const normalVoteBinding = normalVote;
copyDataProperties(object, normalVoteBinding(a0, a1), normalVoteBinding);
const STATUS_POSITIVE = a0.colors.STATUS_POSITIVE;
object['border'] = STATUS_POSITIVE;
object['borderWidth'] = 1;
const POLLS_VICTOR_FILL = a0.colors.POLLS_VICTOR_FILL;
object['answerFill'] = POLLS_VICTOR_FILL;
const PollRadioStyle = (PollMessageChatDataTypesModule).PollRadioStyle;
const NONE = PollRadioStyle.NONE;
object['radioStyle'] = NONE;
return object;
}
function voted(a0, a1) { // fn#66998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8620:1562, offset: 0x01c11c6b, size: 173 bytes, params: 3, frame: 15
const object2 = {};
const normalVoteBinding = normalVote;
copyDataProperties(object2, normalVoteBinding(a0, a1), normalVoteBinding);
const BACKGROUND_BRAND = a0.colors.BACKGROUND_BRAND;
object2['border'] = BACKGROUND_BRAND;
object2['borderWidth'] = 1;
const POLLS_VOTED_FILL = a0.colors.POLLS_VOTED_FILL;
object2['answerFill'] = POLLS_VOTED_FILL;
const PollRadioStyle = (require(8437) /* metro dependency 8437: PollMessageChatDataTypes */).PollRadioStyle;
const CHECKMARK = PollRadioStyle.CHECKMARK;
object2['radioStyle'] = CHECKMARK;
const REDESIGN_INPUT_CONTROL_SELECTED = a0.colors.REDESIGN_INPUT_CONTROL_SELECTED;
object2['radioBackground'] = REDESIGN_INPUT_CONTROL_SELECTED;
const STATUS_POSITIVE_TEXT = a0.colors.STATUS_POSITIVE_TEXT;
object2['radioForeground'] = STATUS_POSITIVE_TEXT;
return object2;
}
function selected(a0, a1) { // fn#66996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8620:1116, offset: 0x01c11b5d, size: 151 bytes, params: 3, frame: 15
const object = {};
const normalVoteBinding = normalVote;
copyDataProperties(object, normalVoteBinding(a0, a1), normalVoteBinding);
const BACKGROUND_BRAND = a0.colors.BACKGROUND_BRAND;
object['border'] = BACKGROUND_BRAND;
object['borderWidth'] = 1;
const PollRadioStyle = (PollMessageChatDataTypesModule).PollRadioStyle;
const FILLED = PollRadioStyle.FILLED;
object['radioStyle'] = FILLED;
const REDESIGN_INPUT_CONTROL_SELECTED = a0.colors.REDESIGN_INPUT_CONTROL_SELECTED;
object['radioBackground'] = REDESIGN_INPUT_CONTROL_SELECTED;
const STATUS_POSITIVE_TEXT = a0.colors.STATUS_POSITIVE_TEXT;
object['radioForeground'] = STATUS_POSITIVE_TEXT;
return object;
}
function _fun66990() { // fn#66990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8620:260, offset: 0x01c119b1, size: 20 bytes, params: 1, frame: 1
return env0_0.colors.WHITE;
}
function voted(a0, a1) { // fn#66998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8620:1562, offset: 0x01c11c6b, size: 173 bytes, params: 3, frame: 15
const object = {};
const normalVoteBinding = normalVote;
copyDataProperties(object, normalVoteBinding(a0, a1), normalVoteBinding);
const BACKGROUND_BRAND = a0.colors.BACKGROUND_BRAND;
object['border'] = BACKGROUND_BRAND;
object['borderWidth'] = 1;
const POLLS_VOTED_FILL = a0.colors.POLLS_VOTED_FILL;
object['answerFill'] = POLLS_VOTED_FILL;
const PollRadioStyle = (PollMessageChatDataTypesModule).PollRadioStyle;
const CHECKMARK = PollRadioStyle.CHECKMARK;
object['radioStyle'] = CHECKMARK;
const REDESIGN_INPUT_CONTROL_SELECTED = a0.colors.REDESIGN_INPUT_CONTROL_SELECTED;
object['radioBackground'] = REDESIGN_INPUT_CONTROL_SELECTED;
const STATUS_POSITIVE_TEXT = a0.colors.STATUS_POSITIVE_TEXT;
object['radioForeground'] = STATUS_POSITIVE_TEXT;
return object;
}
function _fun66991() { // fn#66991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8620:292, offset: 0x01c119c5, size: 20 bytes, params: 1, frame: 1
return env0_0.colors.TEXT_DEFAULT;
}
global.__d(_fun66988, 8435, [4242, 8436, 8437, 2]) /* metro module 8435, dependencies: [4242, 8436, 8437, 2] */;
@@ -1,35 +1,40 @@
/* Metro module 8433; source: modules/polls/chat/useFormattedExpirationLabel.tsx; dependencies: [3738, 1244, 2] */
import Module03738 from '../../../by-id/module-03738.js'; /* Metro dependency 3738 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun66976(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8618:6, offset: 0x01c1136e, size: 120 bytes, params: 8, frame: 19
const env0_0 = require;
const closure = formatExpirationLabel;
const formatExpirationLabel2 = formatExpirationLabel;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/polls/chat/useFormattedExpirationLabel.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/polls/chat/useFormattedExpirationLabel.tsx');
exports.default = useFormattedExpirationLabel;
exports.formatExpirationLabel = closure;
}
function formatExpirationLabel(a0) { // fn#66977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8618:43, offset: 0x01c113e6, size: 294 bytes, params: 2, frame: 19
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const value2 = (importDefault(3738) /* metro dependency 3738 */)();
if (a0 <= value2) {
return undefined;
}
const value3 = a0.diff(value2, 'days');
if (value3 > 1) {
return intl.formatToPlainString(t.dex68a, {days: value3});
exports.formatExpirationLabel = formatExpirationLabel2;
function formatExpirationLabel(a0) { // fn#66977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8618:43, offset: 0x01c113e6, size: 294 bytes, params: 2, frame: 19
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const value2 = (Module03738)();
if (a0 <= value2) {
return undefined;
}
const value3 = a0.diff(value2, 'days');
if (value3 > 1) {
return intl.formatToPlainString(t.dex68a, {days: value3});
}
const value4 = a0.diff(value2, 'hours');
if (value4 > 1) {
return intl.formatToPlainString(t.BWqf0c, {hours: value4});
}
return intl.formatToPlainString(t['3SLXAz'], {minutes: a0.diff(value2, 'minutes')});
}
const value4 = a0.diff(value2, 'hours');
if (value4 > 1) {
return intl.formatToPlainString(t.BWqf0c, {hours: value4});
}
return intl.formatToPlainString(t['3SLXAz'], {minutes: a0.diff(value2, 'minutes')});
}
function useFormattedExpirationLabel(a0) { // fn#66978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8618:544, offset: 0x01c1150c, size: 29 bytes, params: 2, frame: 11
if (a0 != null) {
return formatExpirationLabel(a0);
function useFormattedExpirationLabel(a0) { // fn#66978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8618:544, offset: 0x01c1150c, size: 29 bytes, params: 2, frame: 11
if (a0 != null) {
return formatExpirationLabel(a0);
}
}
}
global.__d(_fun66976, 8433, [3738, 1244, 2]) /* metro module 8433, dependencies: [3738, 1244, 2] */;
@@ -1,42 +1,44 @@
/* Metro module 11404; source: modules/polls/chat/usePollMessageContextItemTypes.tsx; dependencies: [1226, 566, 2] */
import AuthenticationStore from '../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
function _fun87385(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11590:6, offset: 0x01fbcdfb, size: 148 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
object2 = {END_EARLY: 0};
object2[0] = 'END_EARLY';
object = {END_EARLY: 0};
object[0] = 'END_EARLY';
const env0_4 = [];
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/polls/chat/usePollMessageContextItemTypes.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/polls/chat/usePollMessageContextItemTypes.tsx');
exports.default = usePollMessageContextItemTypes;
exports.PollMessageContextItemTypes = object2;
}
function usePollMessageContextItemTypes(a0) { // fn#87386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11590:265, offset: 0x01fbce8f, size: 175 bytes, params: 2, frame: 17
var expiry;
var isSameOrBefore;
var Date;
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
let items2 = [AuthenticationStore];
const id = Reflect.apply(useStateFromStores, fluxModule, [items2, function() {
return AuthenticationStore.getId();
}]);
const poll = a0.poll;
if (a0.isPoll()) {
if (poll == null) {
return env0_4;
exports.PollMessageContextItemTypes = object;
function usePollMessageContextItemTypes(a0) { // fn#87386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11590:265, offset: 0x01fbce8f, size: 175 bytes, params: 2, frame: 17
var expiry;
var isSameOrBefore;
var Date;
const useStateFromStores = FluxModule.useStateFromStores;
let items2 = [AuthenticationStore];
const id = Reflect.apply(useStateFromStores, FluxModule, [items2, function() {
return AuthenticationStore.getId();
}]);
const poll = a0.poll;
if (a0.isPoll()) {
if (poll == null) {
return env0_4;
}
items2 = [];
expiry = poll.expiry;
isSameOrBefore = expiry.isSameOrBefore;
Date = global.Date;
if (!Reflect.apply(isSameOrBefore, expiry, [Date.now()]) && a0.author.id === id) {
items2.push(env0_3.END_EARLY);
}
return items2;
}
items2 = [];
expiry = poll.expiry;
isSameOrBefore = expiry.isSameOrBefore;
Date = global.Date;
if (!Reflect.apply(isSameOrBefore, expiry, [Date.now()]) && a0.author.id === id) {
items2.push(env0_3.END_EARLY);
}
return items2;
return env0_4;
}
return env0_4;
}
global.__d(_fun87385, 11404, [1226, 566, 2]) /* metro module 11404, dependencies: [1226, 566, 2] */;