Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,76 @@
/* Metro module 15498; source: modules/activities/native/ActivitiesDebugOverlay.tsx; dependencies: [31, 27, 33, 4501, 4000, 697, 8095, 1585, 4573, 2] */
function _fun118674(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15695:6, offset: 0x024e761f, size: 292 bytes, params: 8, frame: 23
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsxs;
const env0_5 = value.jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
const hexWithOpacity = colorUtilsModule.hexWithOpacity;
const BLACK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLACK;
const env0_6 = Reflect.apply(createStyles, value, [{container: {'position': 'absolute', 'top': 0, 'left': 0,
'backgroundColor': null, 'paddingRight': 16, 'paddingBottom': 16, backgroundColor: Reflect.apply(hexWithOpacity,
colorUtilsModule, [BLACK, 0.7])}, row: {flexDirection: 'row'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivitiesDebugOverlay.tsx');
exports.default = ActivitiesDebugOverlay;
}
function ActivitiesDebugOverlay() { // fn#118675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15695:446, offset: 0x024e7743, size: 508 bytes, params: 1, frame: 24
var r9;
var r10;
var SERIOUS;
var value10;
var value11;
const value2 = undefined;
const styles = useStyles();
const value3 = (importDefault(8095) /* metro dependency 8095: useThermalState */)();
const ThermalStates = (require(8095) /* metro dependency 8095: useThermalState */).ThermalStates;
const UNHANDLED = ThermalStates.UNHANDLED;
if (UNHANDLED === value3) {
r9 = '';
r10 = 'always-white';
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.NOMINAL === value3) {
r9 = 'nominal';
r10 = 'text-feedback-positive';
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.FAIR === value3) {
r9 = 'fair';
r10 = 'text-feedback-warning';
} else {
SERIOUS = (require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.SERIOUS;
value10 = 'serious';
value11 = 'text-feedback-critical';
if (SERIOUS === value3) {
r9 = value10;
r10 = value11;
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.CRITICAL !== value3) {
r9 = value2;
r10 = value2;
} else {
r9 = 'critical';
r10 = value11;
}
}
const {top, left} = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
const items2 = [styles.container];
items2[1] = {paddingTop: top + 16, paddingLeft: left + 16};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={items2} pointerEvents="none">
<View style={styles.row}>
<Text variant="text-md/normal" color="always-white">
{'thermal state:'}
{' '}
</Text>
<Text variant="text-md/normal" color={r10}>
{r9}
</Text>
</View>
</View>
);
}
@@ -0,0 +1,85 @@
/* Metro module 12071; source: modules/activities/native/ActivitiesPrivateChannelCallTooltip.tsx; dependencies: [31, 27, 4502, 4237, 33, 4501, 566, 4017, 4504, 1305, 1244, 4578, 2] */
function _fun92739(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12257:6, offset: 0x020974ff, size: 367 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const env0_5 = (require(4237) /* metro dependency 4237: Constants */).EMBEDDED_ACTIVITIES_BLOG_POST_URL;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
object = {duration: 500};
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({arrow: {'marginLeft': 200,
'top': 9, 'position': 'relative', 'borderTopWidth': 0, 'borderRightWidth': 0, 'borderBottomWidth': 16,
'borderLeftWidth': 16, transform: [{rotateZ: '225deg'}]}, tooltip: {padding: 16},
tooltipContainer: {'position': 'absolute', 'width': 280, 'zIndex': 2, 'right': -48, 'top': -8},
tooltipText: {'textAlign': 'center', 'fontSize': 14}, closeButtonWrapper: {marginTop: 14}});
object = {code: 'function ActivitiesPrivateChannelCallTooltipTsx1(){const{withRepeat,withSequence,withTiming,OFFSET,translateBounceOffset,TIMING_CONFIG}=this.__closure;return{transform:[{translateY:withRepeat(withSequence(withTiming(OFFSET,{duration:0}),withTiming(OFFSET+translateBounceOffset,TIMING_CONFIG),withTiming(OFFSET,TIMING_CONFIG)),10)}]};}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivitiesPrivateChannelCallTooltip.tsx');
exports.default = ActivitiesPrivateChannelCallTooltip;
}
function ActivitiesPrivateChannelCallTooltip({onClosePress}) { // fn#92740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12257:1017, offset: 0x0209766e, size: 612 bytes, params: 2, frame: 26
const styles = useStyles();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const r7 = useReducedMotion ? 0 : 4;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = ActivitiesPrivateChannelCallTooltipT;
closure.__closure = {withRepeat: reanimatedRexportModule.withRepeat,
withSequence: reanimatedRexportModule.withSequence,
withTiming: (require(4504) /* metro dependency 4504: timing */).withTiming, OFFSET: 40,
translateBounceOffset: r7, TIMING_CONFIG: env0_7};
closure.__workletHash = 4621705591670;
closure.__initData = env0_9;
const value4 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const items2 = [styles.tooltipContainer, value4];
const Tooltip = (require(1305) /* metro dependency 1305: native */).Tooltip;
const tooltipProps = {containerStyle: styles.tooltip, labelStyle: styles.tooltipText, arrowStyle: [styles.arrow]};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
tooltipProps.label = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.xAW71b,
{helpdeskUrl: EMBEDDED_ACTIVITIES_BLOG_POST_URL});
const string = intl.string;
const HOPqzR = (require(1244) /* metro dependency 1244: indexNative */).t.HOPqzR;
tooltipProps.title = Reflect.apply(string, intl, [HOPqzR]);
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<View2 style={items2}>
<Tooltip {...tooltipProps}>
<View style={styles.closeButtonWrapper}>
<Button
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])}
onPress={onClosePress}
variant="secondary"
size="sm"
grow
/>
</View>
</Tooltip>
</View2>
);
}
function ActivitiesPrivateChannelCallTooltipT() { // fn#92742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12257:1186, owner: ActivitiesPrivateChannelCallTooltip.T, offset: 0x020978d2, size: 174 bytes, params: 1, frame: 26
let value = environment.__proto__;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const withRepeat = reanimatedRexportModule.withRepeat;
const moduleValue2 = reanimatedRexportModule;
const withSequence = moduleValue2.withSequence;
const timingModule = require(4504) /* metro dependency 4504: timing */;
let withTiming = timingModule.withTiming;
const value2 = Reflect.apply(withTiming, timingModule, [40, {duration: 0}]);
const moduleValue4 = timingModule;
withTiming = moduleValue4.withTiming;
const value4 = 40 + env0_0;
const binding = env1_7;
value = Reflect.apply(withTiming, moduleValue4, [value4, binding]);
const moduleValue5 = timingModule;
value = Reflect.apply(withSequence, moduleValue2, [value2, value, moduleValue5.withTiming(40, binding)]);
return {transform: [{translateY: Reflect.apply(withRepeat, reanimatedRexportModule, [value, 10])}]};
}
@@ -0,0 +1,86 @@
/* Metro module 10650; source: modules/activities/native/ActivityAnnouncement.tsx; dependencies: [31, 33, 7744, 2] */
function _fun81931(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10836:6, offset: 0x01ee40ea, size: 147 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivityAnnouncement.tsx');
exports.default = _default_81932;
}
function _default_81932(a0) { // fn#81932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10836:140, offset: 0x01ee417d, size: 3044 bytes, params: 2, frame: 27
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
const defaultImportProps = {'width': 324, 'height': 227, 'fill': 'none', ...a0};
const Path = (require(7744) /* metro dependency 7744 */).Path;
const items2 = [<Path fill="#5865F2" d="m180.747 219.024 29.309.136s-13.284-17.969-30.586-3.674a2.005 2.005 0 0 0-.598 2.215 2.006 2.006 0 0 0 1.875 1.323ZM279.165 161.961l20.489 16.006a2.122 2.122 0 0 1-.058 3.413 2.13 2.13 0 0 1-1.238.397c-6.35-.045-16.711-1.75-23.911-11.113l4.718-8.703Z" />];
items2[1] = <Path fill="#242145" d="m190.667 112.195-2.682 37.96a138.277 138.277 0 0 0 .097 20.736s.279 37.15 3.564 39.126c6.765.959 13.802 9.143 13.802 9.143h9.895a2.08 2.08 0 0 0 1.509-.643 2.073 2.073 0 0 0 .578-1.534l-.246-5.333-2.806-60.621 23.892 34.072a8.718 8.718 0 0 0 9.02 3.467l30.054-6.648a2.896 2.896 0 0 0 2.236-2.495l2.086-18.792a1.985 1.985 0 0 0-1.475-2.138 1.984 1.984 0 0 0-.935-.014l-27.988 6.293-20.865-27.398a7.256 7.256 0 0 1-1.257-6.26c.991-3.654 1.723-9.895-2.294-15.467l-36.185-3.454Z" />;
items2[2] = <Path fill="url(#a)" d="M203.738 112.24c-10.264 46.727 8.242 106.92 8.242 106.92h-4.419c-17.386-53.11-7.329-107.568-7.329-108.19l3.506 1.27Z" />;
items2[3] = <Path fill="#000" d="m245.41 73.425 30.126 4.095a3.057 3.057 0 0 1 2.541 3.86 3.057 3.057 0 0 1-.915 1.46c-3.24 2.839-8.56 5.457-16.323 2.67l4.322 3.61a2.41 2.41 0 0 1 .793 2.5 2.416 2.416 0 0 1-1.953 1.75c-3.35.474-8.339-.388-13.841-6.693l-.35 2.637a3.06 3.06 0 0 1-4.536 2.274 16.336 16.336 0 0 1-7.458-8.89 7.04 7.04 0 0 1 4.075-8.844 7.043 7.043 0 0 1 3.519-.429Z" />;
items2[4] = <Path fill="#8CD9FF" d="m192.968 47.66-.136-3.052c2.249-1.587 2.139-6.033 2.139-6.033l-16.2-.382c.11 3.836 3.622 6.195 3.622 6.195l.039 3.493s-.11 15.889 9.908 23.84l12.312-5.664s-10.485-5.987-11.684-18.397Z" />;
items2[5] = <Path fill="#29CC7A" d="m192.968 47.66-.136-3.052c2.249-1.587 2.139-6.033 2.139-6.033l-16.2-.382c.11 3.836 3.622 6.195 3.622 6.195l.039 3.493s-.11 15.889 9.908 23.84l12.312-5.664s-10.485-5.987-11.684-18.397Z" />;
items2[6] = <Path fill="#91FFAD" d="M194.082 52.857a16.847 16.847 0 0 0-9.24 7.99 30.555 30.555 0 0 0 1.743 3.888c1.944-4.912 6.422-7.594 8.819-8.728a23.45 23.45 0 0 1-1.322-3.15Z" />;
items2[7] = <Path fill="#8CD9FF" d="m192.968 47.66-.136-3.052c2.249-1.587 2.139-6.033 2.139-6.033l-16.2-.382c.11 3.836 3.622 6.195 3.622 6.195l.039 3.493c.105 4.423.928 8.8 2.436 12.96a16.846 16.846 0 0 1 9.241-7.99 23.063 23.063 0 0 1-1.141-5.19Z" />;
items2[8] = <Path fill="#8CD9FF" d="M195.696 35.73c-1.549 2.852-1.445 5.496-3.065 5.107-1.737-.421-2.003-4.082-.454-6.927 1.549-2.845 4.834-4.692 6.059-3.39 1.225 1.303-1.024 2.366-2.54 5.21ZM262.246 136.553l.732 16.66c0 3.065-.732 5.067-3.052 7.018a25.312 25.312 0 0 1-5.437 3.739l12.027-2.702v-24.624l-4.27-.091Z" />;
items2[9] = <Path fill="#8CD9FF" d="m265.408 137.914 8.34 13.608 14.904-5.703a1.837 1.837 0 0 1 2.033.492c.165.185.292.401.371.636l1.562 4.646a.698.698 0 0 0 1.03.343.7.7 0 0 0 .266-.311c.745-1.944 2.261-4.685 5.067-5.637a.7.7 0 0 0 .071-1.296l-7.426-3.311a1.791 1.791 0 0 0-1.296-.065l-15.202 6.732-5.495-11.553-4.225 1.419Z" />;
items2[10] = <Path fill="url(#b)" d="M213.976 56.61a18.402 18.402 0 0 0 14.853 2.242 10.256 10.256 0 0 1 12.026 5.106c3.299 6.668 3.156 20.12-12.461 47.181l-1.542 4.484-36.184-3.428-.596-6.908c-5.832-9.843-1.899-19.88 2.145-23.075l21.759-25.603" />;
items2[11] = <Path fill="#5865F2" d="m240.519 67.165 35.892-12.046a3.81 3.81 0 0 1 4.75 5.041c-2.015 4.945-6.551 10.815-16.757 11.982l6.817 1.646a3.021 3.021 0 0 1 1.05 5.391c-3.474 2.378-9.526 4.167-19.142.156l1.062 3.136c.862 2.553-1.14 4.633-3.803 5.041-3.163.48-9.468-.959-12.649-6.227-6.532-10.802-3.415-12.04 2.78-14.12Z" />;
items2[12] = <Path fill="#3442D9" d="M69.277 30.184s30.897 30.994 67.263 6.143c0 0-19.622 84.765 8.314 146.059 0 0-28.979-12.493-42.846-49.384 0 0-12.033 19.971-13.2 47.641 0 0-34.415-53.486-19.53-150.46Z" />;
items2[13] = <Path fill="url(#c)" d="M132.879 163.477s-19.531-32.581-2.975-123.184c-23.386 12.033-43.72 2.268-53.849-4.653a23.975 23.975 0 0 1-2.183-1.484c-2.275 18.43-6.428 80.657 12.409 122.258 0 0 3.402-22.498 17.269-36.89.026 0 11.275 32.445 29.329 43.953Z" />;
items2[14] = <Path fill="#91FFAD" d="M190.071 105.287s13.738 7.938 38.323 5.832l-1.542 4.484s-17.943 2.592-36.185-3.428l-.596-6.888Z" />;
items2[15] = <Path fill="#3442D9" d="M87.596 175.329s-9.13 21.255 3.24 20.678a7.99 7.99 0 0 0 4.362-1.445c2.844-2.106 5.631-7.387-7.602-19.233ZM141.037 178.103s1.471 23.082 12.234 16.977a7.89 7.89 0 0 0 3.24-3.24c1.601-3.188 1.685-9.162-15.474-13.737Z" />;
items2[16] = <Path fill="url(#d)" d="m248.482 183.851 31.33-6.48.804-7.252-30.417 8.956a8.706 8.706 0 0 1-9.416-3.124l-27.216-35.601.448 5.23 25.66 34.895a8.726 8.726 0 0 0 3.907 2.982 8.728 8.728 0 0 0 4.9.394Z" />;
items2[17] = <Path fill="#000" d="M256.057 82.659a.976.976 0 0 1-.421-.097 40.245 40.245 0 0 1-5.729-3.558.975.975 0 0 1-.194-1.36.973.973 0 0 1 1.361-.195 39.139 39.139 0 0 0 5.404 3.363.976.976 0 0 1 .524 1.091.972.972 0 0 1-.945.756Z" />;
items2[18] = <Path fill="#EB459F" d="M242.488 14.684c-.059.22 8.288-8.651 1.03-11.14-7.258-2.488.959 4.07-1.03 11.14Z" />;
items2[19] = <Path fill="#EB459F" d="M242.397 14.509s9.202-11.38 15.838-3.713c6.635 7.665-9.111.687-15.838 3.713Z" />;
items2[20] = <Path fill="url(#e)" d="M223.016 61.203c11.849 0 21.455-9.605 21.455-21.455 0-11.85-9.606-21.455-21.455-21.455-11.85 0-21.455 9.606-21.455 21.455 0 11.85 9.605 21.456 21.455 21.456Z" />;
items2[21] = <Path fill="#EB459F" d="M254.534 41.57s6.889 11.436-.414 15.454c-15.481 8.424-19.019-20.004-19.019-20.004-11.988 19.291-13.012-14.074-13.012-14.074s-28.784 5.637-22.771-11.282c0 0 3.474-8.534 14.84-.356 0 0 3.59 3.272 10.419-.227 9.131-4.685 21.929-1.523 24.469 11.016 0 0 2.644 10.09 13.064 9.201 10.419-.887 4.412 19.706-7.576 10.271Z" />;
items2[22] = <Path fill="#000" d="M218.175 38.575c-.7-.53-1.497-.919-2.345-1.147a6.975 6.975 0 0 0-7.867 3.189 7.461 7.461 0 0 1-3.83-.525.97.97 0 0 0-1.389 1.08.97.97 0 0 0 .404.592c1.23.61 2.594.9 3.966.842h.058a6.997 6.997 0 0 0 4.958 8.314c.363.098.734.167 1.108.207h.11a.97.97 0 0 0 1.02-.923.973.973 0 0 0-.923-1.02 5.053 5.053 0 0 1-4.479-4.389 5.046 5.046 0 0 1 2.516-5.02 4.995 4.995 0 0 1 3.836-.487 5.059 5.059 0 0 1 1.698.83.97.97 0 0 0 1.575-.518.973.973 0 0 0-.416-1.038v.013ZM212.959 30.456c.985-1.063 1.84-1.555 1.464-2.184-.479-.784-2.436.11-3.622 1.653-1.069 1.393-1.445 3.24-.862 3.784h.032c.558.473 1.64-.5 3.351-.953 1.892-.499 3.278 0 3.343-1.043.065-1.043-1.885-1.633-3.706-1.257Z" />;
items2[23] = <Path fill="url(#f)" d="M202.091 33.696a1.807 1.807 0 0 0-1.25.402 7.946 7.946 0 0 1-5.45 1.691L73.931 24.624a56.118 56.118 0 0 1-22.15-6.817L36.69 9.383a5.787 5.787 0 0 0-7.776 2.048c-5.184 8.612-3.713 17.95-1.945 23.69a5.83 5.83 0 0 0 7.375 3.765l15.947-5.365a56.099 56.099 0 0 1 23.03-2.696l120.528 11.062a7.662 7.662 0 0 1 5.586 3.35 2.006 2.006 0 0 0 1.445.991c1.665.162 3.285-2.514 3.622-5.974.337-3.46-.739-6.39-2.411-6.558Z" />;
items2[24] = <Path fill="#000" d="M36.937 24.277c.476-6.543-1.135-11.992-3.598-12.17-2.463-.18-4.845 4.979-5.321 11.521-.476 6.543 1.135 11.992 3.598 12.171 2.462.18 4.845-4.98 5.32-11.522Z" />;
items2[25] = <Path fill="#8CD9FF" d="M179.982 28.862c-1.944-.26-3.356 1.983-2.903 3.888.571 2.398 1.944 5.249 5.139 6.013 1.569.37 3.171.574 4.782.61a6.96 6.96 0 0 0 7.083-6.001c.253-1.866.123-4.432-2.262-4.121-6.292.823-6.123.362-11.839-.39Z" />;
items2[26] = <Path fill="#57F287" d="M212.414 58.463c-11.56-4.62-17.865 11.268-17.865 11.268-15.753-9.622-21.384-25.92-21.384-25.92l-.111-1.691a14.975 14.975 0 0 1 .098-3.188 20.99 20.99 0 0 0-.136-7.44 4.933 4.933 0 0 0-2.315-3.124 4.925 4.925 0 0 0-3.861-.472l-.939.273a11.365 11.365 0 0 1-4.692.324l-1.801-.247a4.34 4.34 0 0 0-3.475 1.04 4.33 4.33 0 0 0-1.47 3.316c.059 7.516 6.817 15.778 6.817 15.778s8.385 44.77 31.506 42.71c27.495-2.457 29.251-28.772 19.628-32.627Z" />;
items2[27] = <Path fill="#91FFAD" d="M177.351 52.183c-5.832 3.059-9.02 10.699-10.407 14.982a80.718 80.718 0 0 0 2.242 5.048c1.886-8.903 8.055-13.977 10.958-15.908a50.157 50.157 0 0 1-2.793-4.122Z" />;
items2[28] = <Path fill="#29CC7A" d="M209.654 86.832a.81.81 0 0 1-.512-1.439c7.212-5.76 8.722-14.288 8.735-14.372a.814.814 0 0 1 .933-.668.81.81 0 0 1 .667.933 27.116 27.116 0 0 1-9.318 15.37.783.783 0 0 1-.505.176Z" />;
items2[29] = <Path fill="#8CD9FF" d="M173.054 42.12a14.975 14.975 0 0 1 .098-3.188 20.99 20.99 0 0 0-.136-7.44 4.933 4.933 0 0 0-2.315-3.124 4.925 4.925 0 0 0-3.861-.472l-.939.273a11.365 11.365 0 0 1-4.692.324l-1.801-.247a4.34 4.34 0 0 0-3.475 1.04 4.33 4.33 0 0 0-1.47 3.316c.059 7.516 6.817 15.778 6.817 15.778a110.157 110.157 0 0 0 5.651 18.792c1.387-4.284 4.588-11.923 10.407-14.982a47.609 47.609 0 0 1-4.154-8.353l-.13-1.717Z" />;
items2[30] = <Path fill="#3F99F2" d="M184.032 39.113a19.099 19.099 0 0 1-.693-6.09.816.816 0 0 0-.458-.778.808.808 0 0 0-.307-.078.805.805 0 0 0-.855.758c-.086 1.96.095 3.921.538 5.832.596.162 1.186.266 1.775.356ZM189.216 39.074a19.622 19.622 0 0 1-.57-5.65.812.812 0 0 0-.758-.91.807.807 0 0 0-.793.495.818.818 0 0 0-.063.324c-.09 2.028.104 4.059.577 6.033a7.323 7.323 0 0 0 1.607-.292Z" />;
items2[31] = <Path fill="#000" d="m266.516 136.65-4.27-.097.376 8.573c1.069.266 2.21.084 3.888-.421l.006-8.055Z" />;
items2[32] = <Path fill="#000" d="m269.627 136.469-4.219 1.445 3.921 6.389a6.62 6.62 0 0 0 3.7-.687l-3.402-7.147Z" />;
items2[33] = <Path fill="#EB459F" d="m272.893 101.036 2.592-4.043a3.882 3.882 0 0 1 4.197-1.71c.524.126 1.017.36 1.447.686l2.592 1.944a1 1 0 0 1-.875 1.756l-2.041-.583a5.346 5.346 0 0 0-3.467.175l-4.445 1.775Z" />;
items2[34] = <Path fill="url(#g)" d="M260.832 108.125s-16.031-1.367-13.983 15.688c2.047 17.056 39.884 27.54 48.431-8.359 2.56-10.744-15.688-.168-15.688-.168s.68-31.208-18.76-7.161Z" />;
items2[35] = <Path fill="url(#h)" d="m263.678 106.499-3.033-.875a22.842 22.842 0 0 1-8.294-4.536l-5.741-4.886a1.887 1.887 0 0 0-2.489 0c-3.492 3.175-3.376 7.854-2.987 10.368a1.877 1.877 0 0 0 2.106 1.568l7.271-.926a22.865 22.865 0 0 1 9.409.764l3.032.901a1.298 1.298 0 0 0 1.581-.868 1.294 1.294 0 0 0-.855-1.51Z" />;
items2[36] = <Path fill="#000" d="M245.891 103.128c.766-2.724.543-5.17-.498-5.463-1.041-.293-2.506 1.679-3.272 4.403-.766 2.725-.544 5.171.497 5.463 1.041.293 2.506-1.678 3.273-4.403Z" />;
items2[37] = <Path fill="#5865F2" d="M288.528 118.94c.707 1.296-.557 3.305-2.592 4.88-1.814 5.722-4.892 6.732-6.875 7.342-2.644.803-6.311.337-7.951-2.631-1.639-2.968-1.166-6.37 2.022-8.126 3.188-1.756 13.763-4.413 15.396-1.465Z" />;
items2[38] = <Path fill="#000" d="M268.408 108.404a.969.969 0 0 1-.863-.527.978.978 0 0 1 .073-1.009c.097-.13 2.384-3.298 6.395-2.702a.993.993 0 0 1 .362.128.98.98 0 0 1 .339 1.348.981.981 0 0 1-.986.468 4.947 4.947 0 0 0-4.536 1.912.963.963 0 0 1-.784.382ZM285.956 123.82c-2.184 1.49-5.236 1.393-5.269 1.393a.958.958 0 0 0-1.01.927.96.96 0 0 0 .257.699.985.985 0 0 0 .676.312h.246a13.118 13.118 0 0 0 3.979-.648c.456-.858.832-1.756 1.121-2.683Z" />;
items2[39] = <Path fill="#91FFAD" d="M40.824 159.168a10.869 10.869 0 0 1-4.931-7.646l-.817-5.34a.57.57 0 0 0-.175-.337.493.493 0 0 0-.35-.148.495.495 0 0 0-.35.148.61.61 0 0 0-.174.337l-.817 5.34a11.017 11.017 0 0 1-4.931 7.646l-.706.447a.564.564 0 0 0-.169.707.54.54 0 0 0 .169.194l.706.447a11.026 11.026 0 0 1 4.931 7.647l.817 5.339a.53.53 0 0 0 1.05 0l.816-5.339c.225-1.553.78-3.04 1.626-4.362a10.88 10.88 0 0 1 3.305-3.285l.706-.447a.538.538 0 0 0 .227-.447.556.556 0 0 0-.227-.454l-.706-.447Z" />;
items2[40] = <Path fill="#8CD9FF" d="M155.229 119.796a8.415 8.415 0 0 1-2.545-2.534 8.415 8.415 0 0 1-1.259-3.363l-.648-4.115a.42.42 0 0 0-.136-.259.36.36 0 0 0-.269-.116.367.367 0 0 0-.269.116.42.42 0 0 0-.136.259l-.648 4.115a8.562 8.562 0 0 1-3.804 5.897l-.544.343a.342.342 0 0 0-.13.156.435.435 0 0 0 0 .388.361.361 0 0 0 .13.149l.544.344a8.563 8.563 0 0 1 3.804 5.903l.648 4.115a.423.423 0 0 0 .136.246.406.406 0 0 0 .266.097.41.41 0 0 0 .272-.097.423.423 0 0 0 .136-.246l.648-4.115a8.504 8.504 0 0 1 1.257-3.369 8.432 8.432 0 0 1 2.547-2.534l.544-.344a.348.348 0 0 0 .13-.149.422.422 0 0 0 .045-.194.383.383 0 0 0-.045-.194.336.336 0 0 0-.13-.156l-.544-.343Z" />;
items2[41] = <Path fill="#FF78B9" d="M306.31 106.343a8.555 8.555 0 0 1-2.547-2.533 8.377 8.377 0 0 1-1.251-3.364l-.648-4.114a.392.392 0 0 0-.136-.26.413.413 0 0 0-.265-.116.438.438 0 0 0-.273.116.411.411 0 0 0-.129.26l-.648 4.114a8.597 8.597 0 0 1-1.264 3.357 8.463 8.463 0 0 1-2.54 2.54l-.544.344a.398.398 0 0 0-.13.149.435.435 0 0 0-.045.201.422.422 0 0 0 .045.194c.03.06.075.111.13.149l.544.343a8.51 8.51 0 0 1 3.804 5.897l.648 4.115a.397.397 0 0 0 .402.35.408.408 0 0 0 .265-.097.417.417 0 0 0 .136-.253l.648-4.115a8.378 8.378 0 0 1 1.251-3.363 8.559 8.559 0 0 1 2.547-2.534l.55-.343a.476.476 0 0 0 .13-.149.42.42 0 0 0 .039-.194.433.433 0 0 0-.039-.201.476.476 0 0 0-.13-.149l-.55-.344ZM48.302 84.694a8.458 8.458 0 0 1-2.54-2.534 8.289 8.289 0 0 1-1.258-3.363l-.648-4.115a.414.414 0 0 0-.13-.26.446.446 0 0 0-.271-.116.402.402 0 0 0-.266.117.395.395 0 0 0-.136.259l-.648 4.115a8.521 8.521 0 0 1-3.797 5.897l-.551.343a.48.48 0 0 0-.13.15.364.364 0 0 0-.039.2.35.35 0 0 0 .04.194.48.48 0 0 0 .129.15l.55.343a8.605 8.605 0 0 1 2.534 2.54 8.495 8.495 0 0 1 1.296 3.357l.648 4.114a.408.408 0 0 0 .804 0l.648-4.114a8.289 8.289 0 0 1 1.257-3.364 8.458 8.458 0 0 1 2.54-2.533l.55-.344a.48.48 0 0 0 .13-.149.35.35 0 0 0 .04-.194.362.362 0 0 0-.04-.2.48.48 0 0 0-.13-.15l-.582-.343Z" />;
items2[42] = <Path fill="#FFE75C" d="M58.222 139.275a7.139 7.139 0 0 1-3.24-5.042l-.55-3.512a.366.366 0 0 0-.117-.22.315.315 0 0 0-.355-.071.309.309 0 0 0-.105.071.366.366 0 0 0-.117.22l-.538 3.512a7.296 7.296 0 0 1-3.24 5.042l-.466.291a.355.355 0 0 0-.11.13.374.374 0 0 0 0 .33.355.355 0 0 0 .11.13l.466.298a7.128 7.128 0 0 1 2.165 2.171c.56.866.93 1.843 1.082 2.864l.538 3.512a.37.37 0 0 0 .116.214.358.358 0 0 0 .46 0 .371.371 0 0 0 .117-.214l.538-3.512a7.125 7.125 0 0 1 3.24-5.035l.466-.298a.355.355 0 0 0 .11-.13.374.374 0 0 0 0-.33.355.355 0 0 0-.11-.13l-.46-.291Z" />;
items2[43] = <Path fill="#fff" d="M88.341 88.128c-1.367 1.374-1.82 6.713-1.82 6.713s5.346-.447 6.72-1.814a3.48 3.48 0 0 0 1.004-2.3H90.66v-3.59c-.87.029-1.697.382-2.32.99Z" />;
items2[44] = <Path fill="#fff" fillRule="evenodd" d="m90.292 83.8 7.284 7.276 1.82-1.82 1.368 5.922 2.274-2.28v-7.284l4.536-4.536c1.821-1.821 5.463-6.195 3.642-10.925-4.737-1.821-9.072 1.82-10.925 3.641L90.292 83.8Zm14.34-4.485a2.59 2.59 0 0 0 1.833-4.425 2.59 2.59 0 0 0-3.988.393 2.59 2.59 0 0 0 2.155 4.032Z" clipRule="evenodd" />;
items2[45] = <Path fill="#fff" d="M95.755 78.33H88.47l-2.287 2.281 5.916 1.361 3.655-3.642Z" />;
items2[46] = <Path fill="#29CC7A" d="M199.098 71.28h.071a.81.81 0 1 0 .065-1.62 10.545 10.545 0 0 1-3.986-1.458c-.408.803-.648 1.348-.686 1.47a11.822 11.822 0 0 0 4.536 1.608Z" />;
items2[47] = <Path fill="#000" d="m268.92 73.224-4.498-1.089a11.725 11.725 0 0 1-3.816-.37.974.974 0 0 0-1.136 1.347c.104.225.29.402.52.494 1.203.353 2.453.522 3.707.5a16.275 16.275 0 0 0 5.074-.824c.05-.016.1-.036.149-.058Z" />;
const Defs = (require(7744) /* metro dependency 7744 */).Defs;
const LinearGradient = (require(7744) /* metro dependency 7744 */).LinearGradient;
const Stop = (require(7744) /* metro dependency 7744 */).Stop;
let value = <Stop stopColor="#FFE75C" />;
value = <LinearGradient id="a" x1={204.665} x2={204.665} y1={110.97} y2={219.147} gradientUnits="userSpaceOnUse">{value}<Stop offset={1} stopColor="#FFC619" /></LinearGradient>;
const items3 = [value];
items3[1] = <LinearGradient id="b" x1={221.642} x2={205.481} y1={54.413} y2={125.699} gradientUnits="userSpaceOnUse"><Stop offset={0.24} stopColor="#57F287" /><Stop offset={0.66} stopColor="#29CC7A" /></LinearGradient>;
const items5 = [<Stop offset={0.29} stopColor="#5865F2" />];
items5[1] = <Stop offset={0.51} stopColor="#5D6AF4" />;
items5[2] = <Stop offset={0.76} stopColor="#6C77F8" />;
items5[3] = <Stop offset={1} stopColor="#808AFF" />;
items3[2] = <LinearGradient id="c" x1={102.364} x2={102.364} y1={163.477} y2={34.156} gradientUnits="userSpaceOnUse">{items5}</LinearGradient>;
items3[3] = <LinearGradient id="d" x1={247.101} x2={247.101} y1={140.357} y2={184.032} gradientUnits="userSpaceOnUse"><Stop stopColor="#FFE75C" /><Stop offset={1} stopColor="#FFC619" /></LinearGradient>;
items3[4] = <LinearGradient id="e" x1={223.016} x2={223.016} y1={61.203} y2={18.287} gradientUnits="userSpaceOnUse"><Stop stopColor="#66BCFF" /><Stop offset={1} stopColor="#8CD9FF" /></LinearGradient>;
items3[5] = <LinearGradient id="f" x1={114.955} x2={114.955} y1={8.677} y2={46.235} gradientUnits="userSpaceOnUse"><Stop stopColor="#FFE75C" /><Stop offset={1} stopColor="#FFC619" /></LinearGradient>;
items3[6] = <LinearGradient id="g" x1={268.375} x2={279.113} y1={107.996} y2={148.729} gradientUnits="userSpaceOnUse"><Stop offset={0.24} stopColor="#57F287" /><Stop offset={0.66} stopColor="#29CC7A" /></LinearGradient>;
items3[7] = <LinearGradient id="h" x1={252.766} x2={252.766} y1={95.755} y2={108.987} gradientUnits="userSpaceOnUse"><Stop stopColor="#FFE75C" /><Stop offset={1} stopColor="#FFC619" /></LinearGradient>;
items2[48] = <Defs>{items3}</Defs>;
return ((Component) => <Component {...defaultImportProps}>{items2}</Component>)(defaultImport);
}
@@ -0,0 +1,76 @@
/* Metro module 15702; source: modules/activities/native/ActivityFeedbackActionSheet.tsx; dependencies: [31, 4237, 661, 9906, 33, 683, 15703, 9927, 1244, 9909, 3856, 15704, 2] */
function _fun120528(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15910:6, offset: 0x0252e186, size: 242 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const ActivityFeedbackReasons = (require(4237) /* metro dependency 4237: Constants */).ActivityFeedbackReasons;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const env0_5 = (require(9906) /* metro dependency 9906: Constants */).FeedbackType;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
const OTHER = ActivityFeedbackReasons.OTHER;
items = [OTHER];
const ADS = ActivityFeedbackReasons.ADS;
items[1] = ADS;
const NOT_FUN = ActivityFeedbackReasons.NOT_FUN;
items[2] = NOT_FUN;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivityFeedbackActionSheet.tsx');
exports.default = ActivityFeedbackActionSheet;
}
function ActivityFeedbackActionSheet({activityApplication, channel, embeddedActivityLocation, analyticsData}) { // fn#120529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15910:330, offset: 0x0252e278, size: 359 bytes, params: 2, frame: 25
const value3 = (importDefault(15703) /* metro dependency 15703: getActivityReportOptions */)(true,
activityApplication.embeddedActivityConfig?.displays_advertisements === true);
const FeedbackActionSheet = importDefault(9927) /* metro dependency 9927: FeedbackActionSheet */;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
const QXYwoD = (require(1244) /* metro dependency 1244: indexNative */).t.QXYwoD;
object2.headerLabel = Reflect.apply(formatToPlainString, intl, [QXYwoD,
{applicationName: activityApplication.name}]);
object2.showHeaderCloseButton = true;
object2.ratingsBodyLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9hk2KF']);
object2.reasonsHeaderLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.g1q5fr);
object2.reasons = value3;
object2.feedbackReasons = env0_7;
const OTHER = ActivityFeedbackReasons.OTHER;
object2.otherKey = OTHER;
object2.trackOpen = function() {
var activityApplicationBinding = activityApplication;
var defaultImport = importDefault(dependencyMap[5]);
var OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
defaultImport.track(OPEN_POPOUT, {type: 'Activity Feedback Sheet',
application_id: activityApplicationBinding.id,
application_name: activityApplicationBinding.name, game_id: activityApplicationBinding.id,
source: 'Activity End'});
};
object2.trackReport = trackReport;
return <FeedbackActionSheet {...object2} />;
}
function ActivityFeedbackActionSheetTrackReport({rating, reason, feedback, dontShowAgain}) { // fn#120531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15910:1026, owner: ActivityFeedbackActionSheet.trackReport, offset: 0x0252e44c, size: 319 bytes, params: 2, frame: 21
var value3;
var defaultImport;
var value5;
var defaultImport2;
let value = null;
const r4 = value != reason ? reason.value : value;
if (dontShowAgain) {
value3 = environment.__proto__;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.ACTIVITY_REPORT_DONT_SHOW, {application_id: activityApplication.id,
rating: rating});
(require(9909) /* metro dependency 9909: FeedbackUtils */).processOptOut({feedbackType: FeedbackType.ACTIVITY,
location: 'ActivityFeedbackActionSheet'});
}
if (value != rating) {
value5 = environment.__proto__;
(require(3856) /* metro dependency 3856: ToastUtils */).presentFeedbackSent();
defaultImport2 = importDefault(15704) /* metro dependency 15704: trackActivityProblem */;
value = '';
defaultImport2({problem: r4, channel: channel, embeddedActivityLocation: embeddedActivityLocation,
feedback: value != feedback ? feedback : value, activityApplication: activityApplication,
analyticsData: analyticsData, location: 'Activity End', rating: rating});
}
}
@@ -0,0 +1,237 @@
/* Metro module 13034; source: modules/activities/native/ActivityShareLinkModal.tsx; dependencies: [5, 57, 31, 27, 1379, 1878, 1378, 7690, 4503, 33, 4501, 697, 566, 7232, 8809, 13033, 6777, 1360, 13035, 7067, 7076, 3857, 1244, 6797, 3856, 1478, 477, 5287, 9603, 5282, 5277, 4056, 7704, 9761, 9789, 2] */
function _fun99485(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:6, offset: 0x021ca902, size: 465 bytes, params: 8, frame: 22
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(27) /* metro dependency 27 */).View;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
const env0_10 = (require(7690) /* metro dependency 7690: UserRowConstants */).UserRowModes;
const env0_11 = (require(4503) /* metro dependency 4503: MessageConstants */).MessageSendLocation;
let value = require(33) /* metro dependency 33 */;
const env0_12 = value.jsx;
const env0_13 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.paddingVertical = PX_8;
let BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object4.backgroundColor = BACKGROUND_BASE_LOWER;
object3.headerContainer = object4;
object3.header = {'borderBottomWidth': 0, 'shadowColor': 'transparent', 'backgroundColor': 'transparent'};
BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object3.container = {'flex': 1, 'display': 'flex', backgroundColor: BACKGROUND_BASE_LOWER};
const env0_14 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivityShareLinkModal.tsx');
exports.default = ActivityShareLinkModal;
}
function ActivityShareLinkModal({applicationId, customId, linkId, message, onShare}) { // fn#99486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:695, offset: 0x021caad3, size: 1220 bytes, params: 2, frame: 36
const env0_3 = message;
const env0_4 = onShare;
const styles = useStyles();
const connectedActivityChannelId = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
function() {
return EmbeddedActivitiesStore.getConnectedActivityChannelId();
});
const binding = connectedActivityChannelId;
const value3 = binding.useMemo(_fun99488, [connectedActivityChannelId]);
let useState = binding.useState;
const value4 = Reflect.apply(useState, binding, [false]);
const binding2 = env0_4;
const value5 = binding2(value4, 2);
const property = value5[0];
const env0_6 = value5[1];
useState = binding.useState;
const value7 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property2 = value7[0];
const env0_8 = value7[1];
useState = binding.useState;
const value8 = binding2(Reflect.apply(useState, binding, [[]]), 2);
const property3 = value8[0];
const env0_10 = value8[1];
const length = property3.length;
const value9 = binding.useCallback(_fun99489, []);
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
useState = binding.useState;
const value10 = binding2(Reflect.apply(useState, binding, ['']), 2);
const property4 = value10[0];
binding.useEffect(_fun99491, [applicationId, currentUser, customId, linkId, value10[1]]);
const value11 = binding.useCallback(_fun99492, [property2, onShare]);
const value13 = binding.useCallback(env0_3(_fun99494),
[binding2((importDefault(6777) /* metro dependency 6777: useGetOrFetchApplications */)([applicationId]), 1)[0],
property2, property4, message, onShare, property3]);
const env0_15 = binding.useCallback(_fun99499, [property4]);
const value14 = binding.useMemo(_fun99500,
[(importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)({ignoreKeyboard: true}).height]);
const Header = (require(5287) /* metro dependency 5287 */).Header;
const headerProps = {headerStyle: styles.header};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
headerProps.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.r9qKow);
headerProps.headerTitle = headerTitle_99501;
headerProps.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(value11);
headerProps.headerRight = headerRight_99502;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
headerProps.headerStatusBarHeight = platformUtilsModule.isIOS() ? 0 : undefined;
headerProps.headerTitleAlign = 'center';
const view = <View style={styles.headerContainer}><Header {...headerProps} /></View>;
const viewBinding2Props = {style: styles.container};
const items2 = [((Component) => <Component absolute />)(importDefault(7704) /* metro dependency 7704: ThemedGradient */)];
const SearchableDestinationList = importDefault(9761) /* metro dependency 9761: SearchableDestinationList */;
const TOGGLE = UserRowModes.TOGGLE;
items2[1] = <SearchableDestinationList disableGradient disableStickySections initialSelectedDestinations={[]} insetEnd={0} onSelectedDestinationChange={value9} originDestination={value3} rowMode={TOGGLE} />;
const ModalFloatingAction = (require(9789) /* metro dependency 9789: ModalFloatingActionNative */).ModalFloatingAction;
items2[2] = <ModalFloatingAction disabled={property} floatingBackgroundColor={styles.container.backgroundColor} isVisible={length > 0} loading={property} onPress={property ? undefined : value13} text={length === 1 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TXNS7S) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.jWtYUm,
{count: length})} />;
return (
<View style={value14}>
{view}
<View {...viewBinding2Props}>
{items2}
</View>
</View>
);
}
function _fun99488() { // fn#99488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:884, offset: 0x021cafaa, size: 60 bytes, params: 1, frame: 14
var r0;
var value3;
var moduleValue;
if (connectedActivityChannelId != null) {
value3 = environment.__proto__;
moduleValue = require(7232) /* metro dependency 7232: formatResults */;
r0 = moduleValue.getDestinationIdFromChannelId(connectedActivityChannelId);
} else {
r0 = undefined;
}
return r0;
}
function _fun99491() { // fn#99491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1227, offset: 0x021cafe6, size: 107 bytes, params: 1, frame: 16
const binding = env0_13;
const value3 = undefined;
const getApplicationInstallURLModule = require(8809) /* metro dependency 8809: getApplicationInstallURL */;
const getActivityLaunchURL = getApplicationInstallURLModule.getActivityLaunchURL;
binding(Reflect.apply(getActivityLaunchURL, getApplicationInstallURLModule, [{applicationId: applicationId,
referrerId: currentUser == null ? value3 : currentUser.id, customId: customId, linkId: linkId}]));
return value3;
}
function _fun99492() { // fn#99492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1371, offset: 0x021cb051, size: 56 bytes, params: 1, frame: 13
onShare(false, env0_7);
const value = environment.__proto__;
(require(13033) /* metro dependency 13033: openActivityShareLinkModalNative */).closeActivityShareLinkModal();
}
function* _fun99494() { // fn#99494, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1479, offset: 0x021cb094, size: 368 bytes, params: 1, frame: 25
var environment;
if (true) {
var env0_0;
value = environment.__proto__;
if (useStyles != null) {
var Promise = global.Promise;
var all = Promise.all;
var map = EmbeddedActivitiesStore.map;
var binding = env2_0;
var getOrResolveChannelIdFromDestinationId = binding(env2_2[13]).getOrResolveChannelIdFromDestinationId;
yield Reflect.apply(all, Promise, [Reflect.apply(map, EmbeddedActivitiesStore,
[getOrResolveChannelIdFromDestinationId])]);
var value4 = undefined;
if (false) {
return value4;
}
var filter = value4.filter;
binding = env2_0;
var binding2 = env2_2;
var value6 = Reflect.apply(filter, value4, [binding(binding2[17]).isNotNullish]);
var value7 = binding(binding2[18]);
env0_0 = value7.resolveActivityShareMessageContent(env1_3, useStyles, env1_12);
View(true);
value6.forEach(_fun99495());
var value8 = env2_1(binding2[21]);
var open = value8.open;
var intl = binding(binding2[22]).intl;
Reflect.apply(open, value8, [{key: 'ACTIVITY_SHARE_LINK_SUCCESS',
content: intl.formatToPlainString(binding(binding2[22]).t.jQULqL, {applicationName: useStyles.name})}]);
env1_4(true, ChannelStore);
binding(binding2[15]).closeActivityShareLinkModal();
}
}
}
function _fun99499() { // fn#99499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2108, offset: 0x021cb2c6, size: 78 bytes, params: 1, frame: 15
const value = environment.__proto__;
(require(6797) /* metro dependency 6797: ClipboardUtilsNative */).copy(env0_12);
env0_8(true);
(require(3856) /* metro dependency 3856: ToastUtils */).presentLinkCopied();
}
function _fun99500() { // fn#99500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2224, offset: 0x021cb314, size: 59 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
return {height: value ? height : '100%'};
}
function ActivityShareLinkModalHeaderTitle({children}) { // fn#99501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2441, owner: ActivityShareLinkModal.headerTitle, offset: 0x021cb34f, size: 79 bytes, params: 2, frame: 14
const GenericHeaderTitle = (require(9603) /* metro dependency 9603: HeaderShared */).GenericHeaderTitle;
return (
<GenericHeaderTitle
title={children}
subtitle={message}
variant="redesign/heading-18/bold"
/>
);
}
function ActivityShareLinkModalHeaderRight(a0) { // fn#99502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:2600, owner: ActivityShareLinkModal.headerRight, offset: 0x021cb39e, size: 154 bytes, params: 2, frame: 18
const value = environment.__proto__;
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const headerActionButtonProps = {...a0};
headerActionButtonProps['onPress'] = env0_15;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const Xrt5Po = (require(1244) /* metro dependency 1244: indexNative */).t.Xrt5Po;
headerActionButtonProps['accessibilityLabel'] = Reflect.apply(string, intl, [Xrt5Po]);
const LinkIcon = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
headerActionButtonProps['IconComponent'] = LinkIcon;
return <HeaderActionButton {...headerActionButtonProps} />;
}
function _fun99495() { // fn#99495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1684, offset: 0x021cb204, size: 36 bytes, params: 1, frame: 12
const env0_0 = env3_3(_fun99497);
return _fun99498;
}
function* _fun99497(a0) { // fn#99497, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13224:1704, offset: 0x021cb233, size: 147 bytes, params: 2, frame: 21
if (true) {
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
var binding = env5_7;
var channel = binding.getChannel(a0);
if (channel != null) {
binding = env5_1;
var binding2 = env5_2;
var value4 = binding(binding2[19]);
var sendMessage = value4.sendMessage;
var value5 = binding(binding2[20]);
var value7 = value5.parse(channel, applicationId);
var ACTIVITY_SHARE = env5_11.ACTIVITY_SHARE;
yield Reflect.apply(sendMessage, value4, [a0, value7, false, {location: ACTIVITY_SHARE}]);
if (false) {
return undefined;
}
}
}
}
@@ -0,0 +1,51 @@
/* Metro module 11627; source: modules/activities/native/ActivityShelfBadge.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 1305, 1909, 4573, 1244, 2] */
function _fun89193(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11813:6, offset: 0x020037f7, size: 459 bytes, params: 8, frame: 24
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {};
const STATUS_POSITIVE_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE_BACKGROUND;
object2.badge = {'position': 'absolute', 'top': 4, 'right': 4, 'display': 'flex', 'flexDirection': 'row',
'alignItems': 'center', backgroundColor: STATUS_POSITIVE_BACKGROUND};
const object5 = {'paddingLeft': 4, 'paddingRight': 6, 'borderRadius': null, 'height': 16};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const BADGE_NOTIFICATION_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.BADGE_NOTIFICATION_BACKGROUND;
object5.backgroundColor = BADGE_NOTIFICATION_BACKGROUND;
object2.newBadge = object5;
const object6 = {'paddingLeft': 4, 'paddingRight': 6, 'borderRadius': null, 'height': 16};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const BADGE_BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BADGE_BACKGROUND_BRAND;
object6.backgroundColor = BADGE_BACKGROUND_BRAND;
object2.updatedBadge = object6;
const nativeModule = require(1305) /* metro dependency 1305: native */;
const generateBoxShadowStyle = nativeModule.generateBoxShadowStyle;
const FOUR_DP_ELEVATION_SHADOW_PARAMS = nativeModule.FOUR_DP_ELEVATION_SHADOW_PARAMS;
object2.elevationShadow = Reflect.apply(generateBoxShadowStyle, nativeModule, [FOUR_DP_ELEVATION_SHADOW_PARAMS]);
const DISPLAY_EXTRABOLD = Fonts.DISPLAY_EXTRABOLD;
object2.badgeText = {'textTransform': 'uppercase', 'marginLeft': 2, 'fontFamily': null, 'lineHeight': 16,
'fontSize': 12, fontFamily: DISPLAY_EXTRABOLD};
const env0_4 = Reflect.apply(createStyles, createStylesModule, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/ActivityShelfBadge.tsx');
exports.default = ActivityShelfBadge;
}
function ActivityShelfBadge({labelType, replacementStyles}) { // fn#89194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11813:898, offset: 0x020039c2, size: 446 bytes, params: 2, frame: 24
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const r8 = replacementStyles ?? styles.badge;
const EmbeddedActivityLabelTypes = (require(1909) /* metro dependency 1909: Server */).EmbeddedActivityLabelTypes;
const NEW = EmbeddedActivityLabelTypes.NEW;
return labelType === NEW ? <View style={[r8, styles.newBadge,
styles.elevationShadow]}><Text variant="text-xs/semibold" style={styles.badgeText} color="always-white">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.y2b7CA)}</Text></View> : labelType !== (require(1909) /* metro dependency 1909: Server */).EmbeddedActivityLabelTypes.UPDATED ? null : <View style={[r8,
styles.updatedBadge,
styles.elevationShadow]}><Text variant="text-xs/semibold" style={styles.badgeText} color="always-white">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/qdhkk'])}</Text></View>;
}
@@ -0,0 +1,479 @@
/* Metro module 8092; source: modules/activities/native/EmbeddedActivitiesNativeManager.tsx; dependencies: [6, 7, 15, 17, 102, 18, 5, 27, 1379, 4294, 1378, 4237, 661, 5269, 477, 8070, 8071, 1216, 8072, 4496, 1244, 8093, 3774, 683, 694, 8095, 7860, 3857, 8096, 1239, 1360, 491, 8097, 2] */
function _fun64844(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:6, offset: 0x01bb6cf3, size: 505 bytes, params: 8, frame: 21
var nativeEventEmitter;
const env0_0 = require;
const postMessageToWebView_64850 = function() {
return _postMessageToWebView_64851.apply(this, arguments);
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(102) /* metro dependency 102 */;
const env0_8 = importDefault(18) /* metro dependency 18 */;
const env0_9 = importDefault(5) /* metro dependency 5 */;
const NativeEventEmitter = (require(27) /* metro dependency 27 */).NativeEventEmitter;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
const env0_13 = (require(4237) /* metro dependency 4237: Constants */).DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY;
let value = require(661) /* metro dependency 661: Constants */;
const env0_14 = value.AnalyticEvents;
const env0_15 = value.ComponentActions;
const env0_16 = (require(5269) /* metro dependency 5269 */).getWebViewProxy('EMBEDDED_ACTIVITY_WEB_VIEW_KEY');
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isAndroid();
if (value) {
nativeEventEmitter = new NativeEventEmitter(importDefault(8070) /* metro dependency 8070: NativeAppLifecycleModule */);
}
value = importDefault(8097) /* metro dependency 8097: EmbeddedActivitiesManager */;
value = _fun64854(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/EmbeddedActivitiesNativeManager.tsx');
exports.default = value;
exports.EMBEDDED_ACTIVITY_WEB_VIEW_KEY = 'EMBEDDED_ACTIVITY_WEB_VIEW_KEY';
}
function _isNativeReflectConstruct_64845() { // fn#64845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:337, offset: 0x01bb6eec, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_64845_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _superPropGet_64848(a0, a1, a2, a3) { // fn#64848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:530, offset: 0x01bb6f4a, size: 99 bytes, params: 5, frame: 18
let value = a0;
const env0_0 = a2;
const binding = env0_7;
value = env0_6(1 & 3 ? value.prototype : value);
value = binding(value, a1, a2);
return 2 & 3 ? typeof value !== 'function' ? value : _fun64849 : value;
}
function _postMessageToWebView_64851() { // fn#64851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:862, offset: 0x01bb6fad, size: 48 bytes, params: 1, frame: 14
return env0_9(_fun64853).apply(this, arguments);
}
function _fun64854(a0) { // fn#64854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1057, offset: 0x01bb705a, size: 329 bytes, params: 2, frame: 16
const closure = EmbeddedActivitiesNativeManager;
env0_8(closure, a0);
return env0_4(closure, [{key: '_initialize', value: value_64857}, {key: '_terminate', value: value_64861},
{key: 'showErrorModal', value: function({code, message}) {
var defaultImport = importDefault(dependencyMap[19]);
var object = {};
object.title = require(dependencyMap[20]).intl.formatToPlainString(require(dependencyMap[20]).t.hbiAO6,
{code: code});
object.body = message;
defaultImport.show(object);
}}, {key: 'showLaunchErrorModal', value: function(a0) {
var defaultImport = importDefault(dependencyMap[19]);
var object = {};
object.title = require(dependencyMap[20]).intl.string(require(dependencyMap[20]).t.PtobXW);
object.body = a0;
defaultImport.show(object);
}}, {key: 'showDevShelfOverrideEnabled', value: value_64864}, {key: 'releaseWebView', value: value_64865},
{key: 'leaveActivity', value: function({location, applicationId, showFeedback}) {
var clearEmbeddedActivityState;
var value = this.releaseWebView();
if (location != null && require(dependencyMap[30]).isNotNullish(applicationId)) {
clearEmbeddedActivityState = this.clearEmbeddedActivityState;
value = value != null;
Reflect.apply(clearEmbeddedActivityState, this, [location, applicationId, value && showFeedback]);
}
}}, {key: 'hidePIPEmbed', value: function(a0) {
if (a0 == null) {
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", a0);
throw undefined;
}
}}, {key: 'clearEmbeddedActivityState', value: value_64868}, {key: 'releaseFrameId', value: function() {
var frameId = this.frameId;
this.frameId = undefined;
return frameId;
}}, {key: 'hasFrameId', value: function() {
return this.frameId != null;
}}, {key: 'getOrCreateFrameId', value: value_64871}]);
}
function* _fun64853(a0) { // fn#64853, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:927, offset: 0x01bb6fe6, size: 116 bytes, params: 2, frame: 15
var binding;
var injectJavaScript;
var binding2;
var binding3;
var property;
var value3;
var value4;
var value5;
var value6;
var value7;
var error;
if (true) {
value = environment.__proto__.__proto__;
try {
binding = env2_16;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
injectJavaScript = binding.injectJavaScript;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
binding2 = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
property = binding3[16];
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
value3 = binding2(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
value4 = value3(a0);
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
try {
value5 = Reflect.apply(injectJavaScript, binding, [value4]);
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[17]);
value.captureException(error);
return undefined;
}
if (value7) {
return value6;
}
}
}
function EmbeddedActivitiesNativeManager(a0) { // fn#64855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1069, offset: 0x01bb71a3, size: 143 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, EmbeddedActivitiesNativeManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(EmbeddedActivitiesNativeManager);
binding = env1_5;
if (_isNativeReflectConstruct_64845()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.handleRPCDisconnect = handleRPCDisconnect;
return value;
}
function value_64857() { // fn#64857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1666, offset: 0x01bb7297, size: 228 bytes, params: 1, frame: 21
var environment;
let value = environment.__proto__;
const _superPropGet_64848Binding = _superPropGet_64848;
const value3 = undefined;
_superPropGet_64848Binding(EmbeddedActivitiesNativeManager, '_initialize', this, 3)([]);
const lifecycleSubscription = this.lifecycleSubscription;
if (lifecycleSubscription != null) {
lifecycleSubscription.remove();
}
this.lifecycleSubscription = env1_17 == null ? value3 : env1_17.addListener('onHostDestroy', _fun64858);
const scriptMessageSubscription = this.scriptMessageSubscription;
if (scriptMessageSubscription != null) {
scriptMessageSubscription.remove();
}
const binding = env1_16;
this.scriptMessageSubscription = binding.addOnMessageListener(_fun64859);
const thermalStateSubscription = this.thermalStateSubscription;
if (thermalStateSubscription != null) {
thermalStateSubscription.remove();
}
value = importDefault(8093) /* metro dependency 8093: ThermalUtilsNative */;
this.thermalStateSubscription = value.addListener(_fun64860);
return value3;
}
function value_64861() { // fn#64861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:3597, offset: 0x01bb7745, size: 108 bytes, params: 1, frame: 17
const value = environment.__proto__;
_superPropGet_64848(EmbeddedActivitiesNativeManager, '_terminate', this, 3)([]);
const lifecycleSubscription = this.lifecycleSubscription;
if (lifecycleSubscription != null) {
lifecycleSubscription.remove();
}
const scriptMessageSubscription = this.scriptMessageSubscription;
if (scriptMessageSubscription != null) {
scriptMessageSubscription.remove();
}
const thermalStateSubscription = this.thermalStateSubscription;
if (thermalStateSubscription != null) {
thermalStateSubscription.remove();
}
}
function value_64864() { // fn#64864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:4159, offset: 0x01bb788e, size: 134 bytes, params: 1, frame: 18
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'EMBEDDED_ACTIVITIES_DEV_SHELF_URL_OVERRIDE_ENABLED'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const JfA7IK = (require(1244) /* metro dependency 1244: indexNative */).t.JfA7IK;
object2.content = Reflect.apply(string, intl, [JfA7IK]);
object2.icon = importDefault(8096) /* metro dependency 8096 */;
object2.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object2]);
}
function value_64865() { // fn#64865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:4366, offset: 0x01bb7914, size: 93 bytes, params: 1, frame: 16
var value2;
var ComponentDispatch;
const value = this.releaseFrameId();
if (value != null) {
value2 = environment.__proto__;
ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
ComponentDispatch.dispatch(ComponentActions.IFRAME_UNMOUNT, {id: value});
env1_16.releaseWebView();
}
return value;
}
function value_64868(a0, a1, a2) { // fn#64868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:4785, offset: 0x01bb79fc, size: 108 bytes, params: 4, frame: 16
const value = environment.__proto__;
(require(7860) /* metro dependency 7860: EmbeddedActivitiesActionCreators */).stopEmbeddedActivity({location: a0,
applicationId: a1, showFeedback: a2});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'EMBEDDED_ACTIVITY_SET_ORIENTATION_LOCK_STATE',
'applicationId': null, 'lockState': null, 'pictureInPictureLockState': null, applicationId: a1});
}
function value_64871() { // fn#64871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:5198, offset: 0x01bb7a68, size: 60 bytes, params: 1, frame: 13
const frameId = this.frameId;
if (frameId != null) {
return frameId;
}
let value = environment.__proto__;
value = require(491) /* metro dependency 491 */;
value = value.v4();
this.frameId = value;
return value;
}
function EmbeddedActivitiesNativeManagerHandleRPCDisconnect({reason, application}) { // fn#64856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1370, owner: EmbeddedActivitiesNativeManager.handleRPCDisconnect, offset: 0x01bb7232, size: 101 bytes, params: 2, frame: 16
let value = environment.__proto__.__proto__;
value = EmbeddedActivitiesStore.getConnectedActivityLocation();
const id = application?.id;
const binding = env0_0;
binding.leaveActivity({location: value, applicationId: id});
binding.superHandleRPCDisconnect({reason: reason, application: application});
}
function _fun64858() { // fn#64858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:1881, offset: 0x01bb737b, size: 94 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__;
const connectedActivityLocation = EmbeddedActivitiesStore.getConnectedActivityLocation();
const value3 = null;
const r3 = value3 != connectedActivityLocation ? EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation) : value3;
if (value3 != r3 && value3 != connectedActivityLocation) {
env0_0.leaveActivity({location: connectedActivityLocation, applicationId: r3.applicationId});
}
}
function _fun64859(a0) { // fn#64859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:2172, offset: 0x01bb73d9, size: 494 bytes, params: 2, frame: 25
var r9;
var url;
var applicationId;
var r1;
var r12;
var JSON;
var parse;
var data;
var value2;
var value3;
var connectedActivityLocation;
var value5;
var value6;
var selfEmbeddedActivityForLocation;
var value8;
var value9;
var value10;
var property;
var defaultImport;
var error;
var SyntaxError;
var value11;
var connectedActivityLocation2;
var selfEmbeddedActivityForLocation2;
var value14;
var value15;
var value16;
var binding;
var object2;
var defaultImport2;
var show;
const intl = require(dependencyMap[20]).intl;
var string;
const t = require(dependencyMap[20]).t;
var tYBBWz;
var BddRzS;
const value = undefined;
try {
JSON = global.JSON;
parse = JSON.parse;
data = a0.data;
value2 = Reflect.apply(parse, JSON, [data]);
value3 = environment.__proto__.__proto__;
connectedActivityLocation = EmbeddedActivitiesStore.getConnectedActivityLocation();
value5 = null;
value6 = value5 != connectedActivityLocation;
if (value6) {
selfEmbeddedActivityForLocation = EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation);
r9 = selfEmbeddedActivityForLocation;
} else {
r9 = value5;
}
value8 = value5 == r9;
url = value8 ? value : r9.url;
value9 = typeof value2 === 'object';
if (value9) {
value10 = value5 != url;
r9 = value10;
} else {
r9 = value9;
}
if (r9) {
property = dependencyMap[18];
defaultImport = importDefault(property);
defaultImport.handleMessage(value2, url, postMessageToWebView_64850);
}
} catch (error) {
SyntaxError = global.SyntaxError;
if (!(error instanceof SyntaxError)) {
throw error;
}
data = a0.data;
value11 = environment.__proto__.__proto__;
if (data === DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY) {
connectedActivityLocation2 = EmbeddedActivitiesStore.getConnectedActivityLocation();
if (connectedActivityLocation2 != null) {
selfEmbeddedActivityForLocation2 = EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation2);
applicationId = selfEmbeddedActivityForLocation2 == null ? value : selfEmbeddedActivityForLocation2.applicationId;
r1 = applicationId;
} else {
r1 = value;
}
value14 = connectedActivityLocation2 != null;
if (value14) {
value15 = r1 != null;
r12 = value15;
} else {
r12 = value14;
}
if (r12) {
value16 = environment;
binding = env0_0;
binding.leaveActivity({location: connectedActivityLocation2, applicationId: r1, showFeedback: false});
defaultImport2 = importDefault(dependencyMap[19]);
show = defaultImport2.show;
object2 = {};
string = intl.string;
tYBBWz = t.tYBBWz;
object2.body = Reflect.apply(string, intl, [tYBBWz]);
string = intl.string;
BddRzS = t.BddRzS;
object2.confirmText = Reflect.apply(string, intl, [BddRzS]);
Reflect.apply(show, defaultImport2, [object2]);
}
}
}
return value;
}
function _fun64860({rawThermalState}) { // fn#64860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8277:2902, offset: 0x01bb75c7, size: 382 bytes, params: 2, frame: 21
const value = environment.__proto__.__proto__;
const connectedActivityLocation = EmbeddedActivitiesStore.getConnectedActivityLocation();
const r4 = connectedActivityLocation != null ? EmbeddedActivitiesStore.getSelfEmbeddedActivityForLocation(connectedActivityLocation) : null;
const embeddedActivityLocationChannelId = (require(3774) /* metro dependency 3774: embeddedActivityLocationUtils */).getEmbeddedActivityLocationChannelId(connectedActivityLocation);
const basicChannel = ChannelStore.getBasicChannel(embeddedActivityLocationChannelId);
const compositeInstanceId = r4?.compositeInstanceId;
const applicationId = r4?.applicationId;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const ACTIVITY_DEVICE_THERMAL_STATE_CHANGED = AnalyticEvents.ACTIVITY_DEVICE_THERMAL_STATE_CHANGED;
const object2 = {channel_id: embeddedActivityLocationChannelId, application_id: applicationId,
activity_session_id: compositeInstanceId, thermal_state: rawThermalState};
object2.guild_id = basicChannel?.guild_id;
object2.media_session_id = RTCConnectionStore.getMediaSessionId();
Reflect.apply(track, defaultImport, [ACTIVITY_DEVICE_THERMAL_STATE_CHANGED, object2]);
const defaultImport2 = importDefault(694) /* metro dependency 694: Dispatcher */;
defaultImport2.dispatch({type: 'THERMAL_STATE_CHANGE', applicationId: applicationId});
if (compositeInstanceId != null && applicationId != null && (require(8095) /* metro dependency 8095: useThermalState */).getThermalState() >= (require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.SERIOUS) {
(require(7860) /* metro dependency 7860: EmbeddedActivitiesActionCreators */).requestRespondToSeriousThermalState();
}
}
@@ -0,0 +1,45 @@
/* Metro module 10717; source: modules/activities/native/EmbeddedActivityBackgroundImageWithOverlay.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 10718, 2] */
function _fun82348(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10903:6, offset: 0x01ef3e8a, size: 283 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_4 = value.ImageBackground;
const env0_5 = value.View;
const env0_6 = value.StyleSheet;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
const env0_8 = Reflect.apply(createStyles, value, [{overlay: {'flex': 1, 'opacity': 0.6, backgroundColor: BLACK}}]);
const env0_9 = ['embedded_background'];
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/EmbeddedActivityBackgroundImageWithOverlay.tsx');
exports.default = EmbeddedActivityBackgroundImageWithOverlay;
}
function EmbeddedActivityBackgroundImageWithOverlay({application, dimensionsStyle, borderRadius, resizeMode}) { // fn#82349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10903:417, offset: 0x01ef3fa5, size: 346 bytes, params: 2, frame: 24
var r0;
let value = undefined;
resizeMode = resizeMode === value ? 'contain' : resizeMode;
const styles = useStyles();
const [property, env0_0] = env0_2(env0_3.useState(false), 2);
const defaultImport = importDefault(10718) /* metro dependency 10718: useEmbeddedActivityBackground */;
const id = application == null ? value : application.id;
const value7 = '';
const url = defaultImport({applicationId: id ?? value7, names: env0_9, size: 1024}).url;
if (property) {
r0 = null;
} else if (url == null) {
r0 = null;
} else if (value7 === url) {
r0 = null;
} else {
value = <ImageBackground resizeMode={resizeMode} source={{uri: url ?? value}} style={dimensionsStyle ?? StyleSheet.absoluteFillObject} imageStyle={{borderRadius: borderRadius}} onError={onError}><View style={[styles.overlay,
{borderRadius: borderRadius}]} /></ImageBackground>;
r0 = value;
}
return r0;
}
@@ -0,0 +1,226 @@
/* Metro module 10704; source: modules/activities/native/EmbeddedActivityView.tsx; dependencies: [57, 31, 27, 1378, 4237, 4238, 33, 4501, 10703, 1478, 694, 10705, 10706, 10701, 566, 10708, 8092, 10709, 10716, 2] */
function _fun82249(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:6, offset: 0x01ef097a, size: 396 bytes, params: 8, frame: 23
const env0_0 = require;
const closure = useBaseActivityView;
const closure2 = ActivityViewLoadingIndicator;
const closure3 = BaseActivityView;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const env0_5 = value2.ActivityIndicator;
const env0_6 = value2.View;
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
const constantsModule = require(4237) /* metro dependency 4237: Constants */;
const env0_8 = constantsModule.ActivityLayoutMode;
const env0_9 = constantsModule.ActivityScreenOrientation;
const env0_10 = (require(4238) /* metro dependency 4238: ApplicationConstants */).OBEY_SILENT_HARDWARE_SWITCH_APP_IDS;
const value4 = require(33) /* metro dependency 33 */;
const env0_11 = value4.jsx;
const env0_12 = value4.Fragment;
const env0_13 = value4.jsxs;
const env0_14 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({loadingContainer: {'flex': 1,
'justifyContent': 'center'}});
value = value.memo(EmbeddedActivityViewInner);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/EmbeddedActivityView.tsx');
exports.default = value;
exports.useBaseActivityView = closure;
exports.ActivityViewLoadingIndicator = closure2;
exports.BaseActivityView = closure3;
exports.EmbeddedActivityView = value;
}
function useBaseActivityView({orientationLockState, showLoadingIndicator, setShowLoadingStateForLockingOrientation, application, setOrientationLockState}) { // fn#82250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:392, offset: 0x01ef0b06, size: 460 bytes, params: 2, frame: 27
const env0_3 = application;
const env0_4 = setOrientationLockState;
let value = undefined;
const [property, property2] = env0_3(env0_4.useState(false), 2);
const defaultOrientationLockState = (require(10703) /* metro dependency 10703: getDefaultOrientationLockState */).getDefaultOrientationLockState(application);
const id = application == null ? value : application.id;
const [property3, env0_8] = env0_3(env0_4.useState(false), 2);
value = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
value = value.width > value.height;
env0_4.useLayoutEffect(_fun82251, [value]);
env0_4.useLayoutEffect(_fun82252, [id]);
env0_4.useLayoutEffect(_fun82253, [defaultOrientationLockState, application, orientationLockState, value, property3,
setShowLoadingStateForLockingOrientation, setOrientationLockState]);
env0_4.useLayoutEffect(_fun82254, [orientationLockState, value, setShowLoadingStateForLockingOrientation]);
env0_4.useLayoutEffect(_fun82255, [showLoadingIndicator, property]);
return {isResetting: property, setIsResetting: property2, isLandscape: value};
}
function ActivityViewLoadingIndicator() { // fn#82256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1168, offset: 0x01ef0e0c, size: 69 bytes, params: 1, frame: 17
const styles = useStyles();
return (
<View style={styles.loadingContainer}>
<ActivityIndicator size="large" />
</View>
);
}
function BaseActivityView(a0) { // fn#82257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1286, offset: 0x01ef0e51, size: 133 bytes, params: 2, frame: 19
var r0;
var value;
var jsxRuntimeEnv0_12Binding;
if (a0.showLoadingIndicator) {
r0 = <ActivityViewLoadingIndicator />;
} else {
value = null;
if (a0.isResetting) {
r0 = value;
} else {
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
value = importDefault(10706) /* metro dependency 10706: WakeLock */;
value = ((Component) => <Component wakeLockKey={a0.wakeLockKey} />)(value);
value = <>{value}{a0.children}</>;
r0 = value;
}
}
return r0;
}
function EmbeddedActivityViewInner({channel, layoutMode, portraitSafeAreasConfig, landscapeSafeAreasConfig}) { // fn#82258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1490, offset: 0x01ef0ed6, size: 1004 bytes, params: 2, frame: 32
var object2;
var r7;
var r14;
var r0;
var location;
var EmbeddedActivityWebView;
let value = undefined;
let env0_3 = value;
const currentEmbeddedActivity2 = EmbeddedActivitiesStore.getCurrentEmbeddedActivity();
const value4 = (importDefault(10701) /* metro dependency 10701: useCurrentEmbeddedApplication */)();
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
_fun82259, [value4]);
const [property, property2] = env0_3(env0_4.useState(true), 2);
object2 = {currentEmbeddedActivity: currentEmbeddedActivity2, channel: channel};
const currentEmbeddedActivity = object2.currentEmbeddedActivity;
const channel2 = object2.channel;
if (currentEmbeddedActivity == null) {
r14 = {instance_id: ''};
} else {
object2 = {};
object2.instance_id = currentEmbeddedActivity.compositeInstanceId ?? currentEmbeddedActivity.launchId;
location = currentEmbeddedActivity.location;
object2.location_id = location == null ? value : location.id;
object2.launch_id = currentEmbeddedActivity.launchId;
if (currentEmbeddedActivity.proxyTicket != null) {
object2.discord_proxy_ticket = currentEmbeddedActivity.proxyTicket;
}
r7 = channel2 != null && channel2.id != null;
r7 = r7 && channel2.id !== '';
if (r7) {
object2.channel_id = channel2.id;
}
r7 = (channel2 == null ? value : channel2.guild_id) != null && (channel2 == null ? value : channel2.guild_id) !== '';
if (r7) {
object2.guild_id = channel2 == null ? value : channel2.guild_id;
r14 = object2;
} else {
r14 = object2;
}
}
(importDefault(10708) /* metro dependency 10708: useDispatchOpenActivity */)({connectedEmbeddedActivity: currentEmbeddedActivity2});
env0_4.useLayoutEffect(_fun82260, [layoutMode, currentEmbeddedActivity2]);
const value14 = env0_4.useCallback(_fun82261, [value4, currentEmbeddedActivity2]);
const id = value4 == null ? value : value4.id;
let r6 = currentEmbeddedActivity2 == null || (currentEmbeddedActivity2 == null ? value : currentEmbeddedActivity2.launchId) == null;
r6 = !r6 ? property : r6;
r6 = !r6 ? id == null : r6;
r6 = !r6 ? value4 == null : r6;
object2 = {orientationLockState: value5, showLoadingIndicator: r6,
setShowLoadingStateForLockingOrientation: property2, application: value4};
object2.setOrientationLockState = (require(10703) /* metro dependency 10703: getDefaultOrientationLockState */).setOrientationLockState;
const value19 = useBaseActivityView(object2);
const isResetting = value19.isResetting;
env0_3 = value19.setIsResetting;
if (currentEmbeddedActivity2 == null) {
r0 = null;
} else if (id == null) {
r0 = null;
} else {
object2 = {wakeLockKey: 'EmbeddedActivities', showLoadingIndicator: r6, isResetting: isResetting};
EmbeddedActivityWebView = importDefault(10709) /* metro dependency 10709: EmbeddedActivityWebView */;
value = <BaseActivityView {...object2}><EmbeddedActivityWebView onActivityCrash={function() {
setIsResetting(true);
global.setTimeout(_fun82263, 0);
}} applicationId={id} channelId={channel == null ? value : channel.id} guildId={channel == null ? value : channel.guild_id} activityUrl={currentEmbeddedActivity2.url} currentEmbeddedActivity={currentEmbeddedActivity2} activitySessionId={currentEmbeddedActivity2 == null ? value : currentEmbeddedActivity2.compositeInstanceId} queryParams={r14} onLoadError={value14} allowPopups={(require(10716) /* metro dependency 10716: allowPopups */).allowPopups(value4)} referrerPolicy="origin" isPipOrGridMode={layoutMode === ActivityLayoutMode.PIP || layoutMode === ActivityLayoutMode.GRID} webViewKey={(require(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).EMBEDDED_ACTIVITY_WEB_VIEW_KEY} safeAreasConfig={value19.isLandscape ? landscapeSafeAreasConfig : portraitSafeAreasConfig} ignoreSilentHardwareSwitch={!OBEY_SILENT_HARDWARE_SWITCH_APP_IDS.has(id)} /></BaseActivityView>;
r0 = value;
}
return r0;
}
function _fun82251() { // fn#82251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:760, offset: 0x01ef0cd2, size: 82 bytes, params: 1, frame: 14
const binding = env0_9;
let value = environment.__proto__;
const r4 = binding ? ActivityScreenOrientation.LANDSCAPE : ActivityScreenOrientation.PORTRAIT;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'ACTIVITY_SCREEN_ORIENTATION_UPDATE', screenOrientation: r4});
}
function _fun82252() { // fn#82252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:905, offset: 0x01ef0d24, size: 18 bytes, params: 1, frame: 11
env0_8(false);
}
function _fun82253() { // fn#82253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:942, offset: 0x01ef0d36, size: 122 bytes, params: 1, frame: 14
var value2;
if (env0_7) {
setShowLoadingStateForLockingOrientation(false);
} else if (orientationLockState != null) {
setShowLoadingStateForLockingOrientation(false);
} else {
value2 = environment.__proto__;
if ((importDefault(10705) /* metro dependency 10705: doesOrientationMatchLockState */)(env0_9, env0_6)) {
setShowLoadingStateForLockingOrientation(false);
} else {
setShowLoadingStateForLockingOrientation(true);
}
}
if (application != null) {
setOrientationLockState(application, orientationLockState);
}
}
function _fun82254() { // fn#82254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1039, offset: 0x01ef0db0, size: 58 bytes, params: 1, frame: 14
const value = environment.__proto__;
if ((importDefault(10705) /* metro dependency 10705: doesOrientationMatchLockState */)(env0_9,
orientationLockState)) {
setShowLoadingStateForLockingOrientation(false);
}
}
function _fun82255() { // fn#82255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1095, offset: 0x01ef0dea, size: 34 bytes, params: 1, frame: 11
if (!(showLoadingIndicator || env0_5)) {
env0_8(true);
}
}
function _fun82259() { // fn#82259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:1689, offset: 0x01ef12c2, size: 47 bytes, params: 1, frame: 12
return env0_2 != null ? EmbeddedActivitiesStore.getOrientationLockStateForApp(env0_2.id) : undefined;
}
function _fun82260() { // fn#82260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:2358, offset: 0x01ef12f1, size: 84 bytes, params: 1, frame: 13
var value2;
if (env0_1 != null) {
value2 = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACTIVITY_LAYOUT_MODE_UPDATE',
layoutMode: layoutMode, applicationId: env0_1.applicationId});
}
}
function _fun82261() { // fn#82261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:2501, offset: 0x01ef1345, size: 97 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = undefined;
(importDefault(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).leaveActivity({location: env0_1 == null ? value : env0_1.location,
applicationId: env0_2 == null ? value : env0_2.id});
return value;
}
function EmbeddedActivityViewInnerOnActivityCrash() { // fn#82262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10890:3089, owner: EmbeddedActivityViewInner.onActivityCrash, offset: 0x01ef13a6, size: 43 bytes, params: 1, frame: 13
setIsResetting(true);
global.setTimeout(function() {
return setIsResetting(false);
}, 0);
}
@@ -0,0 +1,924 @@
/* Metro module 10709; source: modules/activities/native/EmbeddedActivityWebView.tsx; dependencies: [5, 57, 31, 27, 7503, 4237, 661, 33, 4501, 3, 477, 10710, 491, 5269, 1239, 10711, 1582, 10713, 10714, 683, 632, 4647, 1244, 507, 10715, 1471, 8071, 8072, 6266, 7712, 8092, 2] */
function _fun82275(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:6, offset: 0x01ef180a, size: 458 bytes, params: 8, frame: 23
const env0_0 = require;
const _arrayLikeToArray_82278 = function(a0, a1) {
var r0;
var r1;
var r2;
var value3;
var length;
var value5;
var value = undefined;
var value2 = value == null;
reducibleJoin2: while (true) {
if (value2) {
r0 = value2;
break reducibleJoin2;
}
value3 = value > a0.length;
r0 = value3;
break reducibleJoin2;
}
reducibleJoin4: while (true) {
if (r0) {
length = a0.length;
r1 = length;
break reducibleJoin4;
}
r1 = value;
break reducibleJoin4;
}
value = (0, global.Array)(r1);
var value4 = 0;
if (value4 < r1) {
r2 = value4;
reducibleLoop5: while (true) {
value[r2] = a0[r2];
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value5 < r1) {
r2 = value5;
continue reducibleLoop5;
}
break reducibleLoop5;
}
}
return value;
};
const getSafeArea = function(a0, a1) {
var r2;
var r1;
var r0;
var value2;
var value = a1;
if (a0 == null) {
r0 = value;
} else {
value2 = 0;
if (a0.disable) {
r1 = value2;
} else {
if (a0.override != null) {
r2 = global.Math.max(value2, a0.override);
} else if (a0.offset == null) {
r2 = value;
} else {
value = global.Math.max(value2, value + a0.offset);
r2 = value;
}
r1 = r2;
}
r0 = r1;
}
return r0;
};
const closure = BaseActivityWebView;
const closure2 = useHasInvalidUrlErrorState;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(5) /* metro dependency 5 */;
const env0_5 = importDefault(57) /* metro dependency 57 */;
const env0_6 = importAll(31) /* metro dependency 31 */;
const env0_7 = (require(27) /* metro dependency 27 */).Linking;
const developerActivityShelfStore = importDefault(7503) /* metro dependency 7503: DeveloperActivityShelfStore */;
let value = require(4237) /* metro dependency 4237: Constants */;
const env0_9 = value.ActivityPlatform;
const env0_10 = value.DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY;
value = require(661) /* metro dependency 661: Constants */;
const env0_11 = value.ComponentActions;
const env0_12 = value.AnalyticEvents;
const env0_13 = (require(33) /* metro dependency 33 */).jsx;
const env0_14 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({webView: {backgroundColor: 'transparent'}});
value = importDefault(3) /* metro dependency 3: Logger */;
value = new value('EmbeddedActivityWebView');
const env0_16 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/EmbeddedActivityWebView.tsx');
exports.default = EmbeddedActivityWebView;
exports.BaseActivityWebView = closure;
exports.useHasInvalidUrlErrorState = closure2;
}
function _createForOfIteratorHelperLoose_82276(a0, a1) { // fn#82276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:305, offset: 0x01ef19d4, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun82277;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_82278(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_82278(a0, value);
r6 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_82278(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun82277;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function BaseActivityWebView({hasFrameId, getOrCreateFrameId, releaseFrameId, hasInvalidUrlError, setHasInvalidUrlError, hadInvalidUrlError, deepLinkQueryParams = {}, activityUrl, applicationId, queryParams, onActivityCrash, onLoadError, allowPopups, referrerPolicy, isPipOrGridMode, webViewKey, ignoreSilentHardwareSwitch, safeAreasConfig, channelId, guildId, activitySessionId}) { // fn#82280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:1483, offset: 0x01ef1bbb, size: 2206 bytes, params: 2, frame: 50
var r1;
var WebView;
const env0_5 = hadInvalidUrlError;
let value = undefined;
const env0_6 = applicationId;
ignoreSilentHardwareSwitch = ignoreSilentHardwareSwitch === value || ignoreSilentHardwareSwitch;
const styles = useStyles();
let binding = env0_6;
const useContext = binding.useContext;
const WebViewContext = (require(10710) /* metro dependency 10710: WebViewContext */).WebViewContext;
const value4 = Reflect.apply(useContext, binding, [WebViewContext]);
var property = env0_5(env0_6.useState(function() {
return hasFrameId();
}), 1)[0];
const env0_16 = property;
const property2 = env0_5(env0_6.useState(_fun82282), 1)[0];
const [property3, env0_19] = env0_5(env0_6.useState(null), 2);
const value12 = env0_6.useMemo(_fun82283, [webViewKey]);
const [property4, env0_21] = env0_5(env0_6.useState(null), 2);
env0_6.useEffect(_fun82284, [property, property2, webViewKey]);
env0_6.useEffect(function() {
return _fun82286;
}, [webViewKey, property2]);
const value15 = (importDefault(10711) /* metro dependency 10711: useStableSafeAreaInsetsNative */)();
const constants = (importAll(1582) /* metro dependency 1582: ClientInfoUtils */).getConstants();
let object2 = {};
copyDataProperties(object2, queryParams, undefined);
copyDataProperties(object2, deepLinkQueryParams, undefined);
object2['frame_id'] = property2;
const MOBILE = ActivityPlatform.MOBILE;
object2['platform'] = MOBILE;
const Version = constants.Version;
object2['mobile_app_version'] = Version;
const value17 = (importDefault(10713) /* metro dependency 10713: getIFrameSandboxAttributes */)({allowPopups: allowPopups});
const URLSearchParams = global.URLSearchParams;
const value18 = Object.create(URLSearchParams.prototype, {constructor: {value: URLSearchParams}});
const uRLSearchParams = new URLSearchParams(object2);
const value20 = '' + activityUrl + '?' + (uRLSearchParams instanceof Object ? uRLSearchParams : value18);
const env0_25 = env0_6.useRef(safeAreasConfig);
env0_6.useEffect(function() {
_fun82288()();
}, [value20, value17, onLoadError, referrerPolicy]);
const value21 = env0_6.useCallback(_fun82292, [applicationId]);
const value22 = env0_6.useCallback(_fun82293, [applicationId]);
const value23 = env0_6.useCallback(_fun82294, [applicationId, channelId, guildId, activitySessionId, property2,
releaseFrameId, value12, onActivityCrash]);
const useActivityUrlOverride = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([DeveloperActivityShelfStore],
function() {
return DeveloperActivityShelfStore.getUseActivityUrlOverride();
});
env0_6.useEffect(_fun82296, [value20, useActivityUrlOverride, setHasInvalidUrlError]);
env0_6.useEffect(_fun82297, [hadInvalidUrlError, hasInvalidUrlError]);
let r24 = property3 != null ? env0_16 ? 'file://' + property4 : '' + property3.origin + '/' + property2 + '/activity.html' : null;
binding = env0_16;
var [property, env0_29] = env0_5(env0_6.useState(false), 2);
const [property5, env0_31] = env0_5(env0_6.useState([]), 2);
env0_6.useEffect(_fun82298, [applicationId, binding]);
const value30 = env0_6.useCallback(_fun82306, [r24, property5]);
const r32 = r24 != null && property3 != null && property4 != null;
const value34 = env0_6.useRef(null);
const value35 = env0_6.useCallback(_fun82307, []);
const value36 = env0_6.useCallback(_fun82308, [webViewKey, property3 == null ? value : property3.origin, value35]);
env0_6.useEffect(_fun82309, [value15, isPipOrGridMode, r32, value12, value35, safeAreasConfig]);
if (r24 == null) {
return null;
}
if (property3 == null) {
return null;
}
if (binding) {
if (property === false) {
return null;
}
}
object2 = {left: getSafeArea(safeAreasConfig == null ? value : safeAreasConfig.left,
(value15 == null ? value : value15.left) ?? 0),
right: getSafeArea(safeAreasConfig == null ? value : safeAreasConfig.right,
(value15 == null ? value : value15.right) ?? 0),
top: getSafeArea(safeAreasConfig == null ? value : safeAreasConfig.top,
(value15 == null ? value : value15.top) ?? 0),
bottom: getSafeArea(safeAreasConfig == null ? value : safeAreasConfig.bottom,
(value15 == null ? value : value15.bottom) ?? 0)};
if (property4 == null) {
r1 = null;
} else {
WebView = (require(5269) /* metro dependency 5269 */).WebView;
var webViewProps = {style: styles.webView, ref: value34, source: {uri: r24}};
r24 = property3.port === '' ? property3.host : '' + property3.hostname + ':' + property3.port;
webViewProps.androidAssetLoaderConfig = {domain: r24, httpAllowed: property3.protocol === 'http:',
pathHandlers: [{type: 'internal', path: '/' + property2 + '/', directory: property4.substring(0,
property4.lastIndexOf('/'))}]};
webViewProps.originWhitelist = ['*'];
webViewProps.overScrollMode = 'never';
webViewProps.scrollEnabled = false;
webViewProps.cacheEnabled = true;
webViewProps.onError = value21;
webViewProps.onContentProcessDidTerminate = value23;
webViewProps.onRenderProcessGone = value22;
webViewProps.webViewKey = webViewKey;
webViewProps.temporaryParentNodeTag = value4;
webViewProps.messagingWithWebViewKeyEnabled = webViewKey != null;
webViewProps.onMessage = value36;
webViewProps.allowFileAccess = env0_16;
webViewProps.injectedJavaScript = env0_16 ? (require(10714) /* metro dependency 10714: createWebviewHtmlFile */).createInjectedJavascriptForIOS(webViewProps) : value;
webViewProps.injectedJavaScriptForMainFrameOnly = false;
webViewProps.onShouldStartLoadWithRequest = env0_16 ? value30 : value;
webViewProps.mediaPlaybackRequiresUserAction = false;
webViewProps.ignoreSilentHardwareSwitch = ignoreSilentHardwareSwitch;
webViewProps.allowsInlineMediaPlayback = true;
webViewProps.minimumFontSize = 1;
webViewProps.bounces = false;
webViewProps.allowsProtectedMedia = true;
value = <WebView {...webViewProps} />;
r1 = value;
}
return r1;
}
function useHasInvalidUrlErrorState() { // fn#82314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:7586, offset: 0x01ef308d, size: 91 bytes, params: 1, frame: 15
const value3 = env0_5(env0_6.useState(false), 2);
const property = value3[0];
const object2 = {hasInvalidUrlError: property, setHasInvalidUrlError: value3[1]};
object2.hadInvalidUrlError = (importDefault(6266) /* metro dependency 6266: usePrevious */)(property);
return object2;
}
function EmbeddedActivityWebView(a0) { // fn#82315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:7754, offset: 0x01ef30e8, size: 293 bytes, params: 2, frame: 25
const channelId = a0.channelId;
const currentEmbeddedActivity = a0.currentEmbeddedActivity;
const applicationId = a0.applicationId;
const object3 = {'channelId': 0, 'currentEmbeddedActivity': 0, 'applicationId': 0};
silentSetPrototypeOf(object3, null, undefined);
const value = copyDataProperties({}, a0, object3, undefined);
const {hasInvalidUrlError, setHasInvalidUrlError, hadInvalidUrlError} = useHasInvalidUrlErrorState();
const object4 = {};
if (currentEmbeddedActivity != null) {
if (currentEmbeddedActivity.customId != null) {
object4.custom_id = currentEmbeddedActivity.customId;
}
if (currentEmbeddedActivity.referrerId != null) {
object4.referrer_id = currentEmbeddedActivity.referrerId;
}
}
env0_6.useEffect(_fun82316, [hasInvalidUrlError, hadInvalidUrlError, channelId, applicationId,
currentEmbeddedActivity]);
return (
<BaseActivityWebView
hasFrameId={hasFrameId}
getOrCreateFrameId={getOrCreateFrameId}
releaseFrameId={releaseFrameId}
hasInvalidUrlError={hasInvalidUrlError}
setHasInvalidUrlError={setHasInvalidUrlError}
hadInvalidUrlError={hadInvalidUrlError}
deepLinkQueryParams={object4}
applicationId={applicationId}
channelId={channelId}
{...value}
/>
);
}
function _fun82282() { // fn#82282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:1996, offset: 0x01ef2459, size: 62 bytes, params: 1, frame: 12
var r0;
var value;
if (webViewKey != null) {
r0 = getOrCreateFrameId();
} else {
value = environment.__proto__;
value = require(491) /* metro dependency 491 */;
value = value.v4();
r0 = value;
}
return r0;
}
function _fun82283() { // fn#82283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:2096, offset: 0x01ef2497, size: 60 bytes, params: 1, frame: 14
var r0;
var value3;
var moduleValue;
if (webViewKey != null) {
value3 = environment.__proto__;
moduleValue = require(5269) /* metro dependency 5269 */;
r0 = moduleValue.getWebViewProxy(webViewKey);
} else {
r0 = undefined;
}
return r0;
}
function _fun82284() { // fn#82284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:2210, offset: 0x01ef24d3, size: 89 bytes, params: 1, frame: 14
var value3;
var ComponentDispatch;
if (!(env0_16 && webViewKey != null)) {
value3 = environment.__proto__;
ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
ComponentDispatch.dispatch(ComponentActions.IFRAME_MOUNT, {id: env0_17});
}
}
function _fun82285() { // fn#82285, offset: 0x01ef252c, size: 11 bytes, params: 1, frame: 1
return _fun82286;
}
function _fun82287() { // fn#82287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:2614, offset: 0x01ef2586, size: 21 bytes, params: 1, frame: 9
_fun82288()();
}
function _fun82292({nativeEvent}) { // fn#82292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:3282, offset: 0x01ef2756, size: 86 bytes, params: 2, frame: 17
const value = environment.__proto__;
const binding = env1_15;
const warn = binding.warn;
const applicationIdBinding = applicationId;
const JSON = global.JSON;
Reflect.apply(warn, binding,
['activity WebView error for appId ' + applicationIdBinding + '. ' + JSON.stringify(nativeEvent)]);
}
function _fun82293({nativeEvent}) { // fn#82293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:3401, offset: 0x01ef27ac, size: 86 bytes, params: 2, frame: 17
const value = environment.__proto__;
const binding = env1_15;
const warn = binding.warn;
const applicationIdBinding = applicationId;
const JSON = global.JSON;
Reflect.apply(warn, binding,
['activity WebView render process gone for appId ' + applicationIdBinding + '. ' + JSON.stringify(nativeEvent)]);
}
function _fun82294() { // fn#82294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:3534, offset: 0x01ef2802, size: 218 bytes, params: 1, frame: 18
const binding = env1_15;
const warn = binding.warn;
const applicationIdBinding = applicationId;
Reflect.apply(warn, binding, ['activity WebView content process terminated for appId ' + applicationIdBinding]);
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const ACTIVITY_WEB_VIEW_CONTENT_PROCESS_TERMINATED = AnalyticEvents.ACTIVITY_WEB_VIEW_CONTENT_PROCESS_TERMINATED;
Reflect.apply(track, defaultImport, [ACTIVITY_WEB_VIEW_CONTENT_PROCESS_TERMINATED,
{application_id: applicationIdBinding, channel_id: channelId, guild_id: guildId,
activity_session_id: activitySessionId}]);
const ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
const dispatch = ComponentDispatch.dispatch;
const IFRAME_UNMOUNT = ComponentActions.IFRAME_UNMOUNT;
Reflect.apply(dispatch, ComponentDispatch, [IFRAME_UNMOUNT, {id: env0_17}]);
releaseFrameId();
if (env0_20 != null) {
env0_20.releaseWebView();
}
onActivityCrash();
}
function _fun82296() { // fn#82296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:3941, offset: 0x01ef28ef, size: 79 bytes, params: 1, frame: 13
var URL;
var value;
var binding;
var prototype;
var value2;
var uRL;
var value3;
var error;
try {
URL = global.URL;
value = environment;
binding = env0_24;
prototype = URL.prototype;
value2 = Object.create(prototype, {constructor: {value: URL}});
uRL = new URL();
value3 = uRL instanceof Object ? uRL : value2;
binding = env0_19;
binding(value3);
} catch (error) {
value = environment;
if (!useActivityUrlOverride) {
throw error;
}
setHasInvalidUrlError(true);
}
}
function _fun82297() { // fn#82297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4030, offset: 0x01ef293e, size: 219 bytes, params: 1, frame: 18
var defaultImport;
var show;
var object2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
if (!hadInvalidUrlError && hasInvalidUrlError) {
value = environment.__proto__;
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport.show;
object2 = {};
object2.title = intl.string(t.PtobXW);
object2.body = intl.string(t['55iAUT']);
object2.confirmText = intl.string(t.BddRzS);
Reflect.apply(show, defaultImport, [object2]);
}
}
function _fun82298() { // fn#82298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4412, offset: 0x01ef2a19, size: 58 bytes, params: 1, frame: 9
if (env0_28) {
var env0_0 = ["'self'"];
var parseCsp = function(a0, a1) {
var r0;
var value = a1.match(a0);
if (value === null) {
r0 = [];
} else if (value.length >= 2) {
value = value[1].split(' ');
value = value.filter(_fun82300);
r0 = value;
} else {
r0 = [];
}
return r0;
};
_fun82301()();
}
}
function _fun82306(a0) { // fn#82306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4997, offset: 0x01ef2c69, size: 310 bytes, params: 2, frame: 18
var r3;
var r1;
var value4;
var RegExp;
var prototype;
var value5;
var regExp;
var value6;
var test;
var url;
var value7;
var value12;
var origin;
var pathname;
const mainDocumentURL = a0.mainDocumentURL;
var value;
if (env0_27 != null) {
reducibleJoin3: while (true) {
if (mainDocumentURL == null) {
break reducibleJoin3;
}
if (mainDocumentURL !== env0_27) {
value = environment.__proto__;
Linking.openURL(a0.url);
return false;
}
break reducibleJoin3;
}
}
value = _createForOfIteratorHelperLoose_82276(env0_30);
const value3 = value();
let done = value3.done;
if (!done) {
r3 = value3;
reducibleLoop4: while (true) {
value4 = r3.value;
RegExp = global.RegExp;
prototype = RegExp.prototype;
value5 = Object.create(prototype, {constructor: {value: RegExp}});
regExp = new RegExp();
value6 = regExp instanceof Object ? regExp : value5;
test = value6.test;
url = a0.url;
if (Reflect.apply(test, value6, [url])) {
return true;
}
value7 = value();
done = value7.done;
if (done) {
break reducibleLoop4;
}
r3 = value7;
continue reducibleLoop4;
}
}
value = Reflect.apply((importDefault(1471) /* metro dependency 1471: URLUtils */).toURLSafe, value,
[DeveloperActivityShelfStore.getActivityUrlOverride() ?? '']);
const defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */;
const value10 = defaultImport.toURLSafe(a0.url);
const value11 = value != null;
reducibleJoin10: while (true) {
if (value11) {
value12 = value10 != null;
r1 = value12;
break reducibleJoin10;
}
r1 = value11;
break reducibleJoin10;
}
reducibleJoin12: while (true) {
if (r1) {
origin = value.origin;
pathname = value.pathname;
value = origin + pathname;
origin = value10.origin;
pathname = value10.pathname;
value = value === origin + pathname;
r1 = value;
break reducibleJoin12;
}
break reducibleJoin12;
}
return r1;
}
function _fun82307(a0) { // fn#82307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:5440, offset: 0x01ef2d9f, size: 66 bytes, params: 2, frame: 13
var injectJavaScript;
var value;
const current = env0_33.current;
if (current != null) {
injectJavaScript = current.injectJavaScript;
value = environment.__proto__;
value = importDefault(8071) /* metro dependency 8071: getPostMessageJavaScript */;
Reflect.apply(injectJavaScript, current, [value(a0)]);
}
}
function _fun82308(a0) { // fn#82308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:5528, offset: 0x01ef2de1, size: 160 bytes, params: 2, frame: 17
var JSON;
var value2;
var value6;
var value7;
var defaultImport;
if (webViewKey == null) {
JSON = global.JSON;
value2 = JSON.parse(a0.nativeEvent.data);
if (typeof value2 === 'object' && env0_18?.origin != null) {
value6 = environment.__proto__;
value7 = undefined;
defaultImport = importDefault(8072) /* metro dependency 8072: WebViewPostMessageTransport */;
defaultImport.handleMessage(value2, env0_18 == null ? value7 : env0_18.origin, env0_34);
}
}
}
function _fun82309() { // fn#82309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:5738, offset: 0x01ef2e81, size: 43 bytes, params: 1, frame: 9
if (env0_32) {
if (env0_20 != null) {
_fun82310()();
}
}
}
function _fun82316() { // fn#82316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:8084, offset: 0x01ef320d, size: 155 bytes, params: 1, frame: 16
var value3;
var defaultImport;
var value4;
if (!hadInvalidUrlError && hasInvalidUrlError) {
if (channelId != null) {
value3 = environment.__proto__;
defaultImport = importDefault(7712) /* metro dependency 7712: ChannelRTCActionCreators */;
defaultImport.selectParticipant(channelId, null);
}
value4 = environment.__proto__;
(importDefault(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).leaveActivity({location: currentEmbeddedActivity?.location,
applicationId: applicationId, showFeedback: false});
}
}
function EmbeddedActivityWebViewHasFrameId() { // fn#82317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:8284, owner: EmbeddedActivityWebView.hasFrameId, offset: 0x01ef32a8, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).hasFrameId();
}
function EmbeddedActivityWebViewGetOrCreateFrameId() { // fn#82318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:8329, owner: EmbeddedActivityWebView.getOrCreateFrameId, offset: 0x01ef32cd, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).getOrCreateFrameId();
}
function EmbeddedActivityWebViewReleaseFrameId() { // fn#82319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:8378, owner: EmbeddedActivityWebView.releaseFrameId, offset: 0x01ef32f2, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(8092) /* metro dependency 8092: EmbeddedActivitiesNativeManager */).releaseFrameId();
}
function _fun82286() { // fn#82286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:2315, offset: 0x01ef2537, size: 79 bytes, params: 1, frame: 14
var value2;
var ComponentDispatch;
if (webViewKey == null) {
value2 = environment.__proto__.__proto__;
ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
ComponentDispatch.dispatch(ComponentActions.IFRAME_UNMOUNT, {id: env1_17});
}
}
function _fun82288() { // fn#82288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:2625, offset: 0x01ef259b, size: 36 bytes, params: 1, frame: 12
const env0_0 = env2_4(_fun82290);
return _fun82291;
}
function parseCsp(a0, a1) { // fn#82299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4450, offset: 0x01ef2a53, size: 85 bytes, params: 3, frame: 12
var r0;
let value = a1.match(a0);
if (value === null) {
r0 = [];
} else if (value.length >= 2) {
value = value[1].split(' ');
value = value.filter(_fun82300);
r0 = value;
} else {
r0 = [];
}
return r0;
}
function _fun82301() { // fn#82301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4554, offset: 0x01ef2ac1, size: 36 bytes, params: 1, frame: 12
const env0_0 = env2_4(_fun82303);
return _fun82305;
}
function _fun82310() { // fn#82310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:5765, offset: 0x01ef2eac, size: 36 bytes, params: 1, frame: 12
const env0_0 = env2_4(_fun82312);
return _fun82313;
}
function* _fun82290() { // fn#82290, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:2645, offset: 0x01ef25ca, size: 396 bytes, params: 1, frame: 23
if (false) {
return undefined;
}
value = environment.__proto__.__proto__.__proto__.__proto__;
let binding = env4_0;
const value3 = undefined;
const stableSafeAreaInsets = binding(env4_3[15]).getStableSafeAreaInsets();
const current = env3_25.current;
const object2 = {};
binding = env4_19;
const left = current == null ? value3 : current.left;
const left2 = stableSafeAreaInsets == null ? value3 : stableSafeAreaInsets.left;
const value7 = 0;
object2.left = binding(left, left2 ?? value7);
object2.right = env4_19(current == null ? value3 : current.right,
(stableSafeAreaInsets == null ? value3 : stableSafeAreaInsets.right) ?? value7);
object2.top = env4_19(current == null ? value3 : current.top,
(stableSafeAreaInsets == null ? value3 : stableSafeAreaInsets.top) ?? value7);
object2.bottom = env4_19(current == null ? value3 : current.bottom,
(stableSafeAreaInsets == null ? value3 : stableSafeAreaInsets.bottom) ?? value7);
yield env4_1(env4_3[18])({iFrameUri: env3_24, iFrameSandboxAttributes: env3_23, referrerPolicy: ActivityPlatform,
insets: object2, messageForDisallowedNavigationError: env4_16 ? value3 : env4_10});
value = undefined;
if (false) {
return value;
}
if (value != null) {
useHasInvalidUrlErrorState(value);
} else {
DeveloperActivityShelfStore();
}
return value3;
}
function _fun82300(a0) { // fn#82300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4528, offset: 0x01ef2aa8, size: 25 bytes, params: 2, frame: 11
const binding = env1_0;
return !binding.includes(a0);
}
function* _fun82303() { // fn#82303, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4574, offset: 0x01ef2af0, size: 289 bytes, params: 1, frame: 20
var environment;
if (true) {
value = environment.__proto__.__proto__.__proto__;
var binding = env3_6;
var HermesInternal = global.HermesInternal;
var concat = HermesInternal.concat;
var value3 = 'https://' + binding + '.' + 'discordsays.com';
var HTTP = env4_0(env4_3[23]).HTTP;
var get = HTTP.get;
HermesInternal = global.HermesInternal;
concat = HermesInternal.concat;
yield Reflect.apply(get, HTTP, [{url: '' + value3 + '/.discord/csp', rejectWithError: false}]);
var value5 = undefined;
if (false) {
return value5;
}
var property = value5.headers['content-security-policy'];
items = ['about:blank', 'file://*'];
items[2] = value3;
arraySpread(items, getOrCreateFrameId(RegExp('child-src (.*?);', ''), property), arraySpread(items,
getOrCreateFrameId(RegExp('frame-src (.*?);', ''), property), 3, concat), concat);
env3_31(items.map(_fun82304));
env3_29(true);
}
}
function* _fun82312() { // fn#82312, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:5785, offset: 0x01ef2edb, size: 434 bytes, params: 1, frame: 25
var left;
var left2;
var right;
var right2;
var top;
var top2;
var bottom;
var bottom2;
var left3;
var right3;
var top3;
var bottom3;
var injectJavaScript;
var binding2;
var property;
var value6;
var value7;
var value8;
var value9;
var value10;
var error;
var current;
var binding3;
if (false) {
return undefined;
}
value = undefined;
const r13 = DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY ? {'top': 0, 'bottom': 0, 'left': 0, 'right': 0} : env3_22;
const object2 = {type: 'safeAreaUpdateEvent'};
const object4 = {};
let binding = env4_19;
reducibleJoin6: while (true) {
if (AnalyticEvents == null) {
left = value;
break reducibleJoin6;
}
left = AnalyticEvents.left;
break reducibleJoin6;
}
reducibleJoin8: while (true) {
if (r13 == null) {
left2 = value;
break reducibleJoin8;
}
left3 = r13.left;
left2 = left3;
break reducibleJoin8;
}
const value5 = 0;
object4.left = binding(left, left2 ?? value5);
binding = env4_19;
reducibleJoin11: while (true) {
if (AnalyticEvents == null) {
right = value;
break reducibleJoin11;
}
right = AnalyticEvents.right;
break reducibleJoin11;
}
reducibleJoin13: while (true) {
if (r13 == null) {
right2 = value;
break reducibleJoin13;
}
right3 = r13.right;
right2 = right3;
break reducibleJoin13;
}
object4.right = binding(right, right2 ?? value5);
binding = env4_19;
reducibleJoin16: while (true) {
if (AnalyticEvents == null) {
top = value;
break reducibleJoin16;
}
top = AnalyticEvents.top;
break reducibleJoin16;
}
reducibleJoin18: while (true) {
if (r13 == null) {
top2 = value;
break reducibleJoin18;
}
top3 = r13.top;
top2 = top3;
break reducibleJoin18;
}
object4.top = binding(top, top2 ?? value5);
binding = env4_19;
reducibleJoin21: while (true) {
if (AnalyticEvents == null) {
bottom = value;
break reducibleJoin21;
}
bottom = AnalyticEvents.bottom;
break reducibleJoin21;
}
reducibleJoin23: while (true) {
if (r13 == null) {
bottom2 = value;
break reducibleJoin23;
}
bottom3 = r13.bottom;
bottom2 = bottom3;
break reducibleJoin23;
}
object4.bottom = binding(bottom, bottom2 ?? value5);
object2.data = {insets: object4};
reducibleJoin26: while (true) {
reduciblePort41: while (true) {
exceptionLanding39: while (true) {
try {
} catch (error) {
break exceptionLanding39;
}
break reducibleJoin26;
}
current = env3_33.current;
reducibleJoin41: while (true) {
if (current == null) {
break reducibleJoin41;
}
binding = env3_34;
binding3 = env4_1;
binding(binding3(env4_3[26])(object2));
break reducibleJoin41;
}
break reduciblePort41;
}
return value;
}
try {
injectJavaScript = BaseActivityWebView.injectJavaScript;
} catch (error) {
break exceptionLanding39;
}
try {
binding = env4_1;
} catch (error) {
break exceptionLanding39;
}
try {
binding2 = env4_3;
} catch (error) {
break exceptionLanding39;
}
try {
property = binding2[26];
} catch (error) {
break exceptionLanding39;
}
try {
value6 = binding(property);
} catch (error) {
break exceptionLanding39;
}
try {
value7 = value6(object2);
} catch (error) {
break exceptionLanding39;
}
try {
value8 = Reflect.apply(injectJavaScript, BaseActivityWebView, [value7]);
} catch (error) {
break exceptionLanding39;
}
yield value8;
try {
value9 = undefined;
value10 = false;
} catch (error) {
break exceptionLanding39;
}
return value10 ? value9 : value;
}
function _fun82304(a0) { // fn#82304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10895:4851, offset: 0x01ef2c11, size: 88 bytes, params: 2, frame: 13
let value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
value = env5_1(env5_3[24]);
value = value(a0);
value = value.replace(RegExp('\\\\\\*', 'g'), '.*');
return '^' + value;
}
@@ -0,0 +1,51 @@
/* Metro module 10662; source: modules/activities/native/IgnoreThermalStateAlert.tsx; dependencies: [31, 33, 4501, 4596, 1244, 7860, 4573, 2] */
function _fun81998(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10848:6, offset: 0x01ee6a12, size: 207 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({text: {'marginTop': 16,
'lineHeight': 20, 'textAlign': 'center'}, header: {textAlign: 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/IgnoreThermalStateAlert.tsx');
exports.IgnoreThermalStateAlert = IgnoreThermalStateAlert;
}
function IgnoreThermalStateAlert(a0) { // fn#81999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10848:351, offset: 0x01ee6ae1, size: 434 bytes, params: 2, frame: 25
const env0_0 = a0.onConfirm;
let value = Object.create(null);
value.onConfirm = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const styles = useStyles();
const Alert = importDefault(4596) /* metro dependency 4596: Alert */;
const defaultImportProps = {...value2};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
defaultImportProps['cancelText'] = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['1fRDnT']]);
defaultImportProps['onCancel'] = IgnoreThermalStateAlertOnCancel;
defaultImportProps['confirmText'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oEAioF);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
value = <Text style={styles.header} variant="heading-lg/extrabold" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.v5X4fZ)}</Text>;
string = intl.string;
const VOgTjy = (require(1244) /* metro dependency 1244: indexNative */).t.VOgTjy;
return (
<Alert {...defaultImportProps}>
{value}
<Text style={styles.text} variant="text-md/medium">
{Reflect.apply(string, intl, [VOgTjy])}
</Text>
</Alert>
);
}
function IgnoreThermalStateAlertOnCancel() { // fn#82000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10848:498, owner: IgnoreThermalStateAlert.onCancel, offset: 0x01ee6c93, size: 60 bytes, params: 1, frame: 11
if (onConfirm != null) {
onConfirm();
}
const value = environment.__proto__;
(require(7860) /* metro dependency 7860: EmbeddedActivitiesActionCreators */).disregardSeriousThermalState();
}
@@ -0,0 +1,65 @@
/* Metro module 15451; source: modules/activities/native/VoiceControlsToggleNuxActionSheet.tsx; dependencies: [57, 31, 27, 4502, 1376, 33, 4501, 697, 8750, 566, 6275, 9543, 4573, 1244, 4578, 2] */
function _fun118260(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15648:6, offset: 0x024d343e, size: 383 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const env0_7 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
let value = require(33) /* metro dependency 33 */;
const env0_8 = value.jsx;
const env0_9 = value.jsxs;
object = {videoURI: 'https://cdn.discordapp.com/assets/activities/platform/activities_pipfab_tutorial_redesign.mp4'};
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object3 = {};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object3.overflow = 'hidden';
const env0_11 = Reflect.apply(createStyles, value, [{videoContainer: object3,
bottomSheetWrapper: {paddingHorizontal: 24}, contentContainer: {'flex': 1, 'alignItems': 'center',
'paddingTop': 24, 'paddingBottom': 16}, title: {'marginTop': 16, 'textAlign': 'center'}, body: {'marginTop': 8,
'marginBottom': 24, 'textAlign': 'center'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/VoiceControlsToggleNuxActionSheet.tsx');
exports.default = VoiceControlsToggleActionSheet;
}
function VoiceControlsToggleActionSheet({markAsDismissed}) { // fn#118261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15648:724, offset: 0x024d35bd, size: 670 bytes, params: 2, frame: 29
const styles = useStyles();
const [property, env0_1] = env0_3(env0_4.useState(0), 2);
const value4 = (require(8750) /* metro dependency 8750: useIsScreenLandscapeNative */).useIsScreenLandscape();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const r16 = value4 ? 2.0875 : 1.5;
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const viewBindingProps = {style: styles.contentContainer, onLayout: onLayout_118264};
const items2 = [((Component) => <Component style={styles.videoContainer} src={env0_10} poster="https://cdn.discordapp.com/assets/activities/platform/activities_pipfab_tutorial_redesign.png" width={property} height={property / r16} muted paused={useReducedMotion} />)(importDefault(9543) /* metro dependency 9543: Video */)];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = <Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pT6hue)}</Text>;
items2[2] = <Text style={styles.body} variant="text-sm/normal">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tNm8AZ)}</Text>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[3] = <Button onPress={function() {
return markAsDismissed(ContentDismissActionType.UNKNOWN);
}} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])} />;
return (
<BottomSheet startExpanded onDismiss={function() {
return markAsDismissed(ContentDismissActionType.UNKNOWN);
}}>
<View style={styles.bottomSheetWrapper}>
<View {...viewBindingProps}>
{items2}
</View>
</View>
</BottomSheet>
);
}
function VoiceControlsToggleActionSheetOnLayout({nativeEvent}) { // fn#118264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15648:1105, owner: VoiceControlsToggleActionSheet.onLayout, offset: 0x024d3878, size: 55 bytes, params: 2, frame: 12
const width = nativeEvent.layout.width;
env0_1(env0_2 ? width / 2 : width);
}
@@ -0,0 +1,43 @@
/* Metro module 10710; source: modules/activities/native/WebViewContext.tsx; dependencies: [57, 31, 27, 33, 4501, 2] */
function _fun82320(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10896:6, offset: 0x01ef3317, size: 244 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const value2 = require(33) /* metro dependency 33 */;
const env0_3 = value2.jsx;
const env0_4 = value2.jsxs;
value = value.createContext(0);
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({placeholderWebView: {'width': 2,
'height': 2, 'position': 'absolute', 'opacity': 0}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/WebViewContext.tsx');
exports.WebViewContext = value;
exports.WebViewContextProvider = WebViewContextProvider;
}
function WebViewContextProvider({children}) { // fn#82321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10896:395, offset: 0x01ef340b, size: 176 bytes, params: 2, frame: 19
const styles = useStyles();
const binding = env0_1;
const value3 = env0_0(binding.useState(0), 2);
const property = value3[0];
const value4 = binding.useCallback(_fun82322, [value3[1]]);
const Provider = env0_5.Provider;
return (
<Provider value={property}>
<View
style={styles.placeholderWebView}
ref={value4}
pointerEvents="none"
/>
{children}
</Provider>
);
}
function _fun82322(a0) { // fn#82322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10896:507, offset: 0x01ef34bb, size: 30 bytes, params: 2, frame: 11
if (a0) {
env0_0(a0._nativeTag);
}
}
@@ -0,0 +1,24 @@
/* Metro module 15362; source: modules/activities/native/applyActivityOrientationLock.tsx; dependencies: [4237, 10703, 7717, 2] */
function _fun117442(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15559:6, offset: 0x024b320f, size: 117 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(4237) /* metro dependency 4237: Constants */).OrientationLockState;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/applyActivityOrientationLock.tsx');
exports.default = applyActivityOrientationLock;
}
function applyActivityOrientationLock(a0) { // fn#117443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15559:229, offset: 0x024b3284, size: 208 bytes, params: 2, frame: 15
const getDefaultOrientationLockStateModule = require(10703) /* metro dependency 10703: getDefaultOrientationLockState */;
const getIsTabletActivitySurface = getDefaultOrientationLockStateModule.getIsTabletActivitySurface;
if (!Reflect.apply(getIsTabletActivitySurface, getDefaultOrientationLockStateModule, [])) {
if (OrientationLockState.UNLOCKED === a0) {
(require(7717) /* metro dependency 7717: DeviceOrientation */).unlockOrientation({unlockAfterRotatingToPreviousLock: true});
} else if (OrientationLockState.PORTRAIT === a0) {
(require(7717) /* metro dependency 7717: DeviceOrientation */).lockOrientation('PORTRAIT', true);
} else if (OrientationLockState.LANDSCAPE === a0) {
(require(7717) /* metro dependency 7717: DeviceOrientation */).lockOrientation('LANDSCAPE', true);
}
}
}
@@ -0,0 +1,301 @@
/* Metro module 10714; source: modules/activities/native/createWebviewHtmlFile.tsx; dependencies: [5, 27, 477, 1279, 1216, 2] */
function _fun82335(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:6, offset: 0x01ef3893, size: 186 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = (require(27) /* metro dependency 27 */).NativeModules;
const safeAreasUpdateListenerJs = function({iframeWindowVarName, isIframeLoadedVarName}) {
return '\n function updateSafeAreaVars(insets) {\n var iframeDoc = ' + iframeWindowVarName + ".document;\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-left', `${insets.left}px`);\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-right', `${insets.right}px`);\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-top', `${insets.top}px`);\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-bottom', `${insets.bottom}px`);\n " + iframeWindowVarName + ".dispatchEvent(new Event('resize'));\n // Force redraw\n iframeDoc.documentElement.offsetHeight;\n }\n " + iframeWindowVarName + ".addEventListener('message', function (e) {\n const messageData = e.data;\n const {type, data} = messageData;\n if (type === 'safeAreaUpdateEvent') {\n const {insets} = data;\n if (" + isIframeLoadedVarName + ') {\n updateSafeAreaVars(insets);\n } else {\n ' + iframeWindowVarName + '.addEventListener("load", () => {\n updateSafeAreaVars(insets);\n });\n }\n }\n });\n';
};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/createWebviewHtmlFile.tsx');
exports.default = function() {
return _createWebviewHtmlFile.apply(this, arguments);
};
exports.createInjectedJavascriptForIOS = createInjectedJavascriptForIOS;
}
function _createWebviewHtmlFile() { // fn#82336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:1868, offset: 0x01ef394d, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun82338).apply(this, arguments);
}
function safeAreaInitJs({insets, iframeWindowVarName, isIframeLoadedVarName}) { // fn#82340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:147, offset: 0x01ef3c2d, size: 133 bytes, params: 2, frame: 36
const r0 = insets ?? ({'top': 0, 'bottom': 0, 'left': 0, 'right': 0});
return '\n ' + iframeWindowVarName + '.addEventListener("load", () => {\n var iframeDoc = ' + iframeWindowVarName + ".document;\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-left', '" + r0.left + "px');\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-right', '" + r0.right + "px');\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-top', '" + r0.top + "px');\n iframeDoc.documentElement.style.setProperty('--discord-safe-area-inset-bottom', '" + r0.bottom + "px');\n " + isIframeLoadedVarName + ' = true;\n });\n';
}
function createInjectedJavascriptForIOS(a0) { // fn#82343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:4771, offset: 0x01ef3d04, size: 98 bytes, params: 2, frame: 16
return '\nvar iframeWindow = window;\nvar isIframeLoaded = false;\n' + safeAreaInitJs({'insets': null,
'iframeWindowVarName': 'iframeWindow', 'isIframeLoadedVarName': 'isIframeLoaded',
insets: a0}) + '\n' + safeAreasUpdateListenerJs({'iframeWindowVarName': 'iframeWindow',
'isIframeLoadedVarName': 'isIframeLoaded'}) + '\n';
}
async function _fun82338({iFrameUri, iFrameSandboxAttributes, referrerPolicy, insets, messageForDisallowedNavigationError}) { // fn#82338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:1935, offset: 0x01ef3993, size: 346 bytes, params: 2, frame: 23
var r2;
var binding;
var binding2;
var property;
var value7;
var isAndroid;
var isAndroid2;
var DCDFileManager;
var writeFile;
var value8;
var value9;
var value10;
var binding3;
var value11;
var value12;
var binding4;
var value13;
var value14;
var value15;
var value16;
var error;
if (false) {
return undefined;
}
await undefined;
if (false) {
return undefined;
}
const value5 = _fun82339({iFrameUri: iFrameUri, iFrameSandboxAttributes: iFrameSandboxAttributes,
referrerPolicy: referrerPolicy, insets: insets,
messageForDisallowedNavigationError: messageForDisallowedNavigationError});
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
binding2 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
property = binding2[2];
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value7 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
isAndroid = value7.isAndroid;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
isAndroid2 = Reflect.apply(isAndroid, value7, []);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
if (isAndroid2) {
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
property = binding3[3];
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value11 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value12 = value11 == null;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
if (value12) {
r2 = value;
} else {
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
binding4 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
property = binding4[3];
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value13 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
writeFile = value13.writeFile;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value14 = Reflect.apply(writeFile, value13, ['cache', 'discord_activity_data/activity.html', value5,
'utf8']);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
r2 = value14;
}
await r2;
try {
value15 = undefined;
value16 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
if (value16) {
return value15;
}
return value15;
}
try {
binding = env2_4;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
DCDFileManager = binding.DCDFileManager;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
writeFile = DCDFileManager.writeFile;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
try {
value8 = Reflect.apply(writeFile, DCDFileManager, ['cache', 'discord_activity_data/activity.html', value5,
'utf8']);
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
await value8;
try {
value9 = undefined;
value10 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[4]);
value.captureException(error);
return null;
}
if (value10) {
}
return value9;
}
function _fun82339({iFrameUri, iFrameSandboxAttributes, referrerPolicy, insets, messageForDisallowedNavigationError}) { // fn#82339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10900:2097, offset: 0x01ef3aed, size: 320 bytes, params: 2, frame: 29
var r7;
var r8;
var value4;
let value = environment.__proto__.__proto__.__proto__;
let binding = env3_0;
const isAndroid2 = binding(env3_2[2]).isAndroid();
const value3 = '';
if (isAndroid2) {
binding = env3_5;
value4 = binding({'insets': null, 'iframeWindowVarName': 'iframeWindow',
'isIframeLoadedVarName': 'isIframeLoaded',
insets: insets});
binding = env3_6;
value = binding({'iframeWindowVarName': 'iframeWindow', 'isIframeLoadedVarName': 'isIframeLoaded'});
value = '\n <script type="text/javascript">\n var iframe = document.getElementById("activityFrame");\n var iframeWindow = iframe.contentWindow;\n var isIframeLoaded = false;\n ' + value4 + '\n ' + value + '\n </script>\n ';
r7 = value;
} else {
r7 = value3;
}
if (messageForDisallowedNavigationError != null) {
value = '\n ' + 'iframeWindow' + ".addEventListener('beforeunload', function (e) {\n window.ReactNativeWebView.postMessage('" + messageForDisallowedNavigationError + "');\n e.preventDefault();\n });\n";
value = '\n <script type="text/javascript">\n var iframe = document.getElementById("activityFrame");\n var iframeWindow = iframe.contentWindow;\n ' + value + '\n </script>\n ';
r8 = value;
} else {
r8 = value3;
}
return '\n <html>\n <head>\n <style>\n body {\n padding: 0;\n margin: 0;\n width: 100vw;\n min-height: 100vh; /* This keeps a small white gap at the bottom of the screen, the options below help prevent this. */\n min-height: -moz-available; /* See: https://ilxanlar.medium.com/you-shouldnt-rely-on-css-100vh-and-here-s-why-1b4721e74487 for more info */\n min-height: -webkit-fill-available;\n min-height: fill-available;\n }\n </style>\n <meta\n name="viewport"\n content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover"\n />\n </head>\n <body>\n <script type="text/javascript">\n window.addEventListener(\'message\', e => {\n window.ReactNativeWebView.postMessage(JSON.stringify(e.data));\n });\n </script>\n <iframe id="activityFrame" width="100%" height="100%" src="' + iFrameUri + '" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen sandbox="' + iFrameSandboxAttributes + '" referrerPolicy="' + referrerPolicy + '">\n </iframe>\n ' + r7 + '\n ' + r8 + '\n </body>\n </html>\n';
}
@@ -0,0 +1,17 @@
/* Metro module 10705; source: modules/activities/native/doesOrientationMatchLockState.tsx; dependencies: [4237, 2] */
function _fun82264(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10891:6, offset: 0x01ef13e3, size: 109 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(4237) /* metro dependency 4237: Constants */).OrientationLockState;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/doesOrientationMatchLockState.tsx');
exports.default = doesOrientationMatchLockState;
}
function doesOrientationMatchLockState(a0, a1) { // fn#82265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10891:230, offset: 0x01ef1450, size: 89 bytes, params: 3, frame: 5
const value = a0;
let r0 = a1 == null || a1 === OrientationLockState.UNLOCKED;
r0 = !r0 ? !value && a1 === OrientationLockState.PORTRAIT : r0;
r0 = !r0 ? value && a1 === OrientationLockState.LANDSCAPE : r0;
return r0;
}
@@ -0,0 +1,43 @@
/* Metro module 10703; source: modules/activities/native/getDefaultOrientationLockState.tsx; dependencies: [4092, 1581, 694, 2] */
function _fun82245(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10889:6, offset: 0x01ef080f, size: 184 bytes, params: 8, frame: 20
const closure = getIsTabletActivitySurface;
const closure2 = getDefaultOrientationLockState;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(4092) /* metro dependency 4092: DeviceUtils */).isIpadOS();
const env0_3 = (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/getDefaultOrientationLockState.tsx');
exports.getIsTabletActivitySurface = closure;
exports.setOrientationLockState = setOrientationLockState;
exports.getDefaultOrientationLockState = closure2;
}
function getIsTabletActivitySurface() { // fn#82246, offset: 0x01ef08c7, size: 16 bytes, params: 1, frame: 3
return env0_2 || env0_3;
}
function getDefaultOrientationLockState(a0) { // fn#82247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10889:191, offset: 0x01ef08d7, size: 68 bytes, params: 2, frame: 12
var value;
var getIsTabletActivitySurfaceBinding;
var isTabletActivitySurfaceBinding;
var embeddedActivityConfig;
var value3;
if (a0 != null) {
getIsTabletActivitySurfaceBinding = getIsTabletActivitySurface;
value = undefined;
isTabletActivitySurfaceBinding = getIsTabletActivitySurfaceBinding();
embeddedActivityConfig = a0.embeddedActivityConfig;
value3 = embeddedActivityConfig == null;
return isTabletActivitySurfaceBinding ? value3 ? value : embeddedActivityConfig.tablet_default_orientation_lock_state : value3 ? value : embeddedActivityConfig.default_orientation_lock_state;
}
}
function setOrientationLockState(a0, a1) { // fn#82248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10889:622, offset: 0x01ef091b, size: 95 bytes, params: 3, frame: 14
const r3 = a1 ?? getDefaultOrientationLockState(a0);
if (r3 != null) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMBEDDED_ACTIVITY_SET_ORIENTATION_LOCK_STATE',
applicationId: a0.id, lockState: r3});
}
}
@@ -0,0 +1,11 @@
/* Metro module 8071; source: modules/activities/native/getPostMessageJavaScript.tsx; dependencies: [2] */
function _fun64075(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8249:6, offset: 0x01b9a96d, size: 85 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/getPostMessageJavaScript.tsx');
exports.default = function(a0) {
var JSON = global.JSON;
return "\n (function() {\n const iFrame = document.getElementById('activityFrame');\n iFrame.contentWindow.postMessage(" + JSON.stringify(a0) + ", '*');\n })()\n ";
};
}
@@ -0,0 +1,88 @@
/* Metro module 12705; source: modules/activities/native/openActivityDMLauncher.tsx; dependencies: [5, 1483, 6772, 4603, 9468, 9472, 6789, 5068, 4015, 1583, 2] */
function _fun97348(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12895:6, offset: 0x0217cb3e, size: 151 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = (require(1483) /* metro dependency 1483: AppLauncherNativeConstants */).AppLauncherRouteName;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/openActivityDMLauncher.tsx');
exports.default = function() {
return _openActivityDMLauncher.apply(this, arguments);
};
}
function _openActivityDMLauncher() { // fn#97349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12895:137, offset: 0x0217cbd5, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun97351).apply(this, arguments);
}
async function _fun97351(a0, a1, a2, a3) { // fn#97351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12895:206, offset: 0x0217cc1b, size: 504 bytes, params: 5, frame: 25
var bestActiveInput;
var openCustomKeyboard;
let value = a4;
if (false) {
return undefined;
}
const value4 = undefined;
const r7 = value !== value4 ? value : false;
await value4;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_1;
const value6 = binding(env2_2[2]);
await value6.fetchApplication(a0);
const value7 = undefined;
if (false) {
return value7;
}
const bot = value7.bot;
const id = bot == null ? value4 : bot.id;
if (value7 != null) {
if (id == null) {
return value4;
}
var value9 = env2_1(env2_2[3]);
var openPrivateChannel = value9.openPrivateChannel;
var object2 = {recipientIds: id};
await Reflect.apply(openPrivateChannel, value9, [object2]);
var value10 = undefined;
if (false) {
return value10;
}
var value12 = env2_0(env2_2[4]);
var getCustomActivityLinkParams = value12.getCustomActivityLinkParams;
await Reflect.apply(getCustomActivityLinkParams, value12, [a0, a3, a2]);
var value13 = undefined;
if (false) {
return value13;
}
var customId = value13.customId;
if (r7) {
bestActiveInput = env2_0(env2_2[8]).getBestActiveInput();
if (bestActiveInput != null) {
openCustomKeyboard = bestActiveInput.openCustomKeyboard;
object2 = {};
object2.type = env2_0(env2_2[9]).KeyboardTypes.APP_LAUNCHER;
object2.context = {application: value7, initialRouteName: env2_4.APPLICATION_VIEW, customId: customId,
referrerId: a1};
Reflect.apply(openCustomKeyboard, bestActiveInput, [object2]);
}
return value4;
}
binding = env2_1;
var binding2 = env2_2;
var value15 = binding(binding2[5]);
object2 = {targetApplicationId: a0, locationObject: {}, channelId: value10};
var ACTIVITY_BOOKMARK = binding(binding2[6]).ACTIVITY_BOOKMARK;
object2.analyticsLocations = [ACTIVITY_BOOKMARK];
var CommandOrigin = env2_0(binding2[7]).CommandOrigin;
var ACTIVITY_BOOKMARK_EMBED = CommandOrigin.ACTIVITY_BOOKMARK_EMBED;
object2.commandOrigin = ACTIVITY_BOOKMARK_EMBED;
object2.referrerId = a1;
object2.customId = customId;
await value15(object2);
}
return value4;
}
@@ -0,0 +1,35 @@
/* Metro module 10661; source: modules/activities/native/openIgnoreThermalStateAlert.tsx; dependencies: [31, 33, 4496, 10662, 1962, 2] */
function _fun81993(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:6, offset: 0x01ee68bf, size: 138 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/openIgnoreThermalStateAlert.tsx');
exports.openIgnoreThermalStateAlert = openIgnoreThermalStateAlert;
}
function openIgnoreThermalStateAlert(a0) { // fn#81994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:239, offset: 0x01ee6949, size: 61 bytes, params: 2, frame: 13
const env0_0 = a0;
const value = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
value.openLazy({importer: importer_81995});
}
function openIgnoreThermalStateAlertImporter() { // fn#81995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:306, owner: openIgnoreThermalStateAlert.importer, offset: 0x01ee6986, size: 64 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__;
value = require(dependencyMap[4]);
value = value(dependencyMap[3], dependencyMap.paths);
return value.then(function({IgnoreThermalStateAlert}) {
return _fun81997;
});
}
function _fun81996({IgnoreThermalStateAlert}) { // fn#81996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:338, offset: 0x01ee69c6, size: 24 bytes, params: 2, frame: 2
return _fun81997;
}
function _fun81997(a0) { // fn#81997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10847:369, offset: 0x01ee69de, size: 52 bytes, params: 2, frame: 14
return <IgnoreThermalStateAlert {...a0} {...{['onConfirm']: env2_0}} />;
}
@@ -0,0 +1,17 @@
/* Metro module 7737; source: modules/activities/native/useIsViewingActivity.tsx; dependencies: [4606, 7724, 4007, 7714, 566, 2] */
function _fun61932(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7915:6, offset: 0x01b4ee3a, size: 116 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelRTCStore = importDefault(4606) /* metro dependency 4606: ChannelRTCStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/useIsViewingActivity.tsx');
exports.useIsViewingActivity = useIsViewingActivity;
}
function useIsViewingActivity({channelId}) { // fn#61933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7915:213, offset: 0x01b4eeae, size: 146 bytes, params: 2, frame: 21
return (importDefault(7724) /* metro dependency 7724: useIsActivityFocused */)(channelId) && (require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).useIsModalOpen(importDefault(7714) /* metro dependency 7714: ChannelCallModal */) && !(require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelRTCStore],
function() {
return ChannelRTCStore.getChatOpen(channelId);
}, [channelId]);
}