53 lines
2.7 KiB
TypeScript
53 lines
2.7 KiB
TypeScript
/* Metro module 11742; source: modules/polls/useTrackPollEvents.tsx; dependencies: [31, 661, 4863, 8436, 2] */
|
|
function _fun90005(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11928:6, offset: 0x020267c8, size: 143 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/polls/useTrackPollEvents.tsx');
|
|
exports.useTrackPollCreationEvents = useTrackPollCreationEvents;
|
|
}
|
|
|
|
function useTrackPollCreationEvents(a0, a1) { // fn#90006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11928:230, offset: 0x02026857, size: 62 bytes, params: 3, frame: 16
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const object2 = {};
|
|
object2.trackPollCreationCancelled = env0_3.useCallback(_fun90007, [a0, a1]);
|
|
return object2;
|
|
}
|
|
|
|
function _fun90007() { // fn#90007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11928:320, offset: 0x02026895, size: 178 bytes, params: 1, frame: 19
|
|
const env0_0 = 0;
|
|
const env0_1 = 0;
|
|
const env0_2 = 0;
|
|
const binding = env0_0;
|
|
binding.forEach(_fun90008);
|
|
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
|
const trackWithMetadata = defaultImport.trackWithMetadata;
|
|
const POLL_CREATION_CANCELLED = AnalyticEvents.POLL_CREATION_CANCELLED;
|
|
const object2 = {};
|
|
object2.answers_count = binding.length;
|
|
object2.attachments_count = env0_0;
|
|
object2.emojis_count = env0_1;
|
|
object2.stickers_count = env0_2;
|
|
object2.allow_multiselect = require;
|
|
const PollLayoutTypes = (require(8436) /* metro dependency 8436: PollLayoutTypes */).PollLayoutTypes;
|
|
const DEFAULT = PollLayoutTypes.DEFAULT;
|
|
object2.layout_type = DEFAULT;
|
|
Reflect.apply(trackWithMetadata, defaultImport, [POLL_CREATION_CANCELLED, object2]);
|
|
}
|
|
|
|
function _fun90008({image}) { // fn#90008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11928:352, offset: 0x02026947, size: 107 bytes, params: 2, frame: 3
|
|
if (image != null) {
|
|
if (image.emoji != null) {
|
|
env0_1 += 1;
|
|
} else if (image.stickerId != null) {
|
|
env0_2 += 1;
|
|
} else if (image.mediaAttachmentState != null) {
|
|
env0_0 += 1;
|
|
}
|
|
}
|
|
}
|
|
|