71 lines
3.7 KiB
TypeScript
71 lines
3.7 KiB
TypeScript
/* Metro module 10497; source: modules/collectibles/native/OrbsBadgeCoachmark.tsx; dependencies: [31, 27, 33, 4501, 10498, 1244, 4008, 8543, 2] */
|
|
function _fun81200(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10683:6, offset: 0x01e9e0c2, size: 276 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
let value = require(27) /* metro dependency 27 */;
|
|
const env0_4 = value.View;
|
|
const env0_5 = value.Image;
|
|
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
|
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({coachmarkImageContainer: {'alignItems': 'center',
|
|
'justifyContent': 'center'}, coachmarkImage: {'width': 80, 'height': 80},
|
|
coachmarkDescription: {marginBottom: -10}});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/native/OrbsBadgeCoachmark.tsx');
|
|
exports.default = function(a0) {
|
|
var r5;
|
|
var badgeRef = a0.badgeRef;
|
|
var value = Object.create(null);
|
|
value.badgeRef = 0;
|
|
value = copyDataProperties({}, a0, value, r5);
|
|
require(dependencyMap[7]).useCoachmark(badgeRef, value);
|
|
return null;
|
|
};
|
|
exports.useOrbsBadgeCoachmark = useOrbsBadgeCoachmark;
|
|
}
|
|
|
|
function OrbsBadgeCoachmarkImg() { // fn#81201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10683:321, offset: 0x01e9e1d6, size: 101 bytes, params: 1, frame: 21
|
|
const styles = useStyles();
|
|
const object = {};
|
|
object.uri = importDefault(10498) /* metro dependency 10498: orbs_badge_assetPng */;
|
|
return (
|
|
<View style={styles.coachmarkImageContainer}>
|
|
<Image source={object} style={styles.coachmarkImage} />
|
|
</View>
|
|
);
|
|
}
|
|
|
|
function useOrbsBadgeCoachmark({disabled}) { // fn#81203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10683:682, offset: 0x01e9e283, size: 87 bytes, params: 2, frame: 16
|
|
const styles = useStyles();
|
|
const binding = env0_3;
|
|
const useMemo = binding.useMemo;
|
|
return disabled ? null : {props: Reflect.apply(useMemo, binding, [_fun81204, [disabled,
|
|
styles.coachmarkDescription]])};
|
|
}
|
|
|
|
function _fun81204() { // fn#81204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10683:750, offset: 0x01e9e2da, size: 153 bytes, params: 1, frame: 18
|
|
const object2 = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4ivm+P']);
|
|
object2.description = <View style={styles.coachmarkDescription} />;
|
|
object2.position = 'bottom';
|
|
object2.visible = !disabled;
|
|
object2.onDismiss = onDismiss_81205;
|
|
object2.renderImgComponent = renderImgComponent_81206;
|
|
return object2;
|
|
}
|
|
|
|
function onDismiss_81205() { // fn#81205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10683:890, offset: 0x01e9e373, size: 78 bytes, params: 1, frame: 13
|
|
let value = environment.__proto__.__proto__;
|
|
value = require(4008) /* metro dependency 4008: RootNavigationRefNative */;
|
|
value = value.getRootNavigationRef();
|
|
if (value != null) {
|
|
if (value.isReady()) {
|
|
value.setParams({showOrbsBadgeCoachmark: undefined});
|
|
return undefined;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|