50 lines
2.6 KiB
TypeScript
50 lines
2.6 KiB
TypeScript
/* Metro module 11424; source: modules/guild_templates/useTrackCreateGuildViewed.tsx; dependencies: [31, 6934, 661, 683, 2] */
|
|
function _fun87465(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11610:6, offset: 0x01fbf20f, size: 161 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importAll(31) /* metro dependency 31 */;
|
|
const env0_3 = (require(6934) /* metro dependency 6934: GuildTemplatesConstants */).GuildTemplateStates;
|
|
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_templates/useTrackCreateGuildViewed.tsx');
|
|
exports.default = useTrackCreateGuildViewed;
|
|
}
|
|
|
|
function useTrackCreateGuildViewed(a0) { // fn#87466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11610:258, offset: 0x01fbf2b0, size: 55 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
const binding = env0_2;
|
|
const env0_1 = binding.useRef([]);
|
|
binding.useEffect(_fun87467);
|
|
}
|
|
|
|
function _fun87467() { // fn#87467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11610:328, offset: 0x01fbf2e7, size: 200 bytes, params: 1, frame: 15
|
|
var current;
|
|
var includes;
|
|
var code;
|
|
var push;
|
|
var binding;
|
|
var defaultImport;
|
|
var track;
|
|
var CREATE_GUILD_VIEWED;
|
|
if (env0_0 != null && env0_0.state !== GuildTemplateStates.RESOLVING) {
|
|
current = env0_1.current;
|
|
includes = current.includes;
|
|
code = env0_0.code;
|
|
if (!Reflect.apply(includes, current, [code])) {
|
|
current = env0_1.current;
|
|
push = current.push;
|
|
binding = env0_0;
|
|
code = binding.code;
|
|
Reflect.apply(push, current, [code]);
|
|
value = environment.__proto__;
|
|
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
track = defaultImport.track;
|
|
CREATE_GUILD_VIEWED = AnalyticEvents.CREATE_GUILD_VIEWED;
|
|
code = binding.code;
|
|
Reflect.apply(track, defaultImport, [CREATE_GUILD_VIEWED, {guild_template_code: code,
|
|
guild_template_name: binding.name, guild_template_description: binding.description,
|
|
guild_template_guild_id: binding.sourceGuildId}]);
|
|
}
|
|
}
|
|
}
|
|
|