/* Metro module 13559; source: modules/quests/native/QuestHomeBounties.tsx; dependencies: [57, 31, 27, 7092, 6528, 1376, 33, 697, 13560, 4501, 9949, 1244, 5473, 4573, 6766, 13557, 1365, 7013, 694, 4081, 7110, 7120, 6531, 13515, 5459, 7121, 13561, 10183, 8416, 9483, 566, 13562, 2] */ function _fun102974(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:6, offset: 0x02252450, size: 421 bytes, params: 8, frame: 19 const env0_0 = require; 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 env0_5 = (require(27) /* metro dependency 27 */).View; const bountyStore = importDefault(7092) /* metro dependency 7092: BountyStore */; const env0_7 = (require(6528) /* metro dependency 6528: QuestConstants */).BountyCarouselEmptyStateReason; const env0_8 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType; const value2 = require(33) /* metro dependency 33 */; const env0_9 = value2.jsx; const env0_10 = value2.jsxs; let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; const CARD_WIDTH = (require(13560) /* metro dependency 13560: BountyCard */).CARD_WIDTH; const env0_13 = CARD_WIDTH + PX_16; const env0_14 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun103003); const keyExtractor_103005 = function(a0) { return a0.id; }; value = value.memo(QuestHomeBounties); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestHomeBounties.tsx'); exports.default = value; } function EmptyState_102975({reason}) { // fn#102975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:811, offset: 0x022525f5, size: 529 bytes, params: 2, frame: 26 const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const styles = useStyles(); (require(9949) /* metro dependency 9949: AnalyticsHooks */).useBountyCarouselEmptyStateAnalytics(reason); let COMPLETED = BountyCarouselEmptyStateReason.COMPLETED; const r12 = reason === COMPLETED ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.O2hRaZ) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TKuW8z); COMPLETED = BountyCarouselEmptyStateReason.COMPLETED; const r15 = reason === COMPLETED ? (require(1244) /* metro dependency 1244: indexNative */).t['D/790X'] : (require(1244) /* metro dependency 1244: indexNative */).t.ReqPds; const BountiesPosterIllocon = (require(5473) /* metro dependency 5473: native */).BountiesPosterIllocon; const bountiesPosterIllocon = ; const Text = (require(4573) /* metro dependency 4573: Text */).Text; const text = {r12}; const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround; return ( {bountiesPosterIllocon} {text} {(require(1244) /* metro dependency 1244: indexNative */).intl.format(r15, {onClickLearnMore: function() { importDefault(dependencyMap[15])(); }})} ); } function getSnapIndex({nativeEvent}) { // fn#102977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:1423, offset: 0x02252825, size: 51 bytes, params: 2, frame: 12 const Math = global.Math; return Math.round(nativeEvent.contentOffset.x / env0_13); } function QuestHomeBountiesCarousel({bounties}) { // fn#102978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:1565, offset: 0x02252858, size: 1017 bytes, params: 2, frame: 33 const styles = useStyles(); const value2 = env0_4.useRef(null); const [property, env0_3] = env0_3Binding(env0_4.useState(0), 2); const value6 = env0_3Binding(env0_4.useState(0), 2); const property2 = value6[0]; var env0_4 = property2; const env0_5 = value6[1]; const [property3, env0_7] = env0_3Binding(env0_4.useState(false), 2); const env0_8 = env0_4.useRef(null); const env0_9 = env0_4.useRef(false); const env0_10 = env0_4.useRef({parent: {scrollX: 0}, children: {}, axis: 'horizontal'}); const value9 = env0_4.useCallback(_fun102979, []); const value10 = env0_4.useCallback(_fun102980, [value9]); const value11 = env0_4.useMemo(_fun102981, [bounties.length]); const value12 = env0_4.useCallback(_fun102983, [property]); const env0_12 = env0_4.useRef(property2); const env0_13 = env0_4.useRef(null); const value13 = env0_4.useCallback(_fun102984, [value9]); const env0_14 = env0_4.useRef(false); const env0_15 = env0_4.useRef(null); const value14 = env0_4.useCallback(_fun102985, []); const value15 = env0_4.useCallback(_fun102986, [property2]); const value16 = env0_4.useCallback(_fun102987, []); env0_4.useEffect(function() { return _fun102990; }, []); env0_4.useEffect(_fun102991, [bounties, property2, value16]); const value17 = env0_4.useCallback(_fun102997, []); const {containerRef, isInView} = (importDefault(13561) /* metro dependency 13561: useIsCarouselInView */)(); const value19 = env0_4.useCallback(_fun102998, [property2, value17, isInView, property3]); const value20 = env0_4.useCallback(_fun103000, [bounties, value9]); const value21 = env0_4.useMemo(_fun103002, [isInView, property2, property3]); const FlashList = (require(8416) /* metro dependency 8416: flashList */).FlashList; return ( ); } function _fun103003() { // fn#103003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:347, offset: 0x022535ed, size: 267 bytes, params: 1, frame: 16 const object2 = {}; const PX_48 = (importDefault(697) /* metro dependency 697: native */).space.PX_48; object2.container = {marginBottom: PX_48}; object2.listContentContainer = {paddingLeft: PX_16}; const object3 = {'flexDirection': 'row', 'alignItems': 'center', 'gap': null, 'borderWidth': 1}; const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12; object3.gap = PX_12; const BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED; object3.borderColor = BORDER_MUTED; const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH; object3.backgroundColor = BACKGROUND_SURFACE_HIGH; object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg; object3.overflow = 'hidden'; const PX_162 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object3.paddingHorizontal = PX_162; object3.paddingVertical = 14; const PX_163 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object3.marginHorizontal = PX_163; object2.emptyState = object3; object2.emptyStateText = {'flex': 1, 'gap': 2}; return object2; } function ItemSeparator_103004() { // fn#103004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:1517, offset: 0x022536f8, size: 37 bytes, params: 1, frame: 14 return ; } function QuestHomeBounties({verticalScrollEnabled}) { // fn#103006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:5882, offset: 0x0225371d, size: 352 bytes, params: 2, frame: 24 var r0; var r5; var value; const questHooksModule = require(9483) /* metro dependency 9483: QuestHooks */; const useQuestHomeBounties = questHooksModule.useQuestHomeBounties; const questHomeBounties = Reflect.apply(useQuestHomeBounties, questHooksModule, []).questHomeBounties; const styles = useStyles(); useBountiesNux(questHomeBounties.length > 0); const value3 = questHomeBounties.length === 0; const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([BountyStore], function() { return BountyStore.areAllBountiesCompleted(); }); if (value3) { var viewBindingProps = {style: styles.container}; if (verticalScrollEnabled) { value = importDefault(13562) /* metro dependency 13562: BountiesCtaHeader */; value = ((Component) => )(value); r5 = value; } else { r5 = ; } value = {r5}; r0 = value; } else if (value4) { var viewBindingProps = {style: styles.container}; if (verticalScrollEnabled) { value = importDefault(13562) /* metro dependency 13562: BountiesCtaHeader */; value = ((Component) => )(value); r5 = value; } else { r5 = ; } value = {r5}; r0 = value; } else if (verticalScrollEnabled) { var viewBindingProps = {style: styles.container}; value = importDefault(13562) /* metro dependency 13562: BountiesCtaHeader */; value = {((Component) => )(value)}; r0 = value; } else { r0 = ; } return r0; } function _fun102979(a0) { // fn#102979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:1871, offset: 0x02252c51, size: 205 bytes, params: 2, frame: 16 var r2; var r0; var Object; var value; var property; var value3; var calculateVisibility; var value4; var value5; if (a0 != null) { Object = global.Object; if (Object.hasOwn(env0_10.current.children, a0)) { property = env0_10.current.children[a0]; if (!(property == null || property.calculateVisibility == null)) { property.calculateVisibility(); } return undefined; } } else { Object = global.Object; value = Object.values(env0_10.current.children); var length = value.length; var value2 = 0; if (value2 < length) { r2 = value2; while (true) { property = value[r2]; value3 = property == null; if (value3) { r0 = value3; } else { calculateVisibility = property.calculateVisibility; value4 = calculateVisibility == null; r0 = value4; } if (r0) { continue; } property.calculateVisibility(); value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; length = value.length; if (value5 < length) { r2 = value5; continue; } break; } } } } function _fun102980(a0) { // fn#102980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:2192, offset: 0x02252d1e, size: 76 bytes, params: 2, frame: 13 env0_3(a0.nativeEvent.layout.width); env0_10.current.parent.layout = a0.nativeEvent.layout; env0_11(); } function _fun102981() { // fn#102981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:2295, offset: 0x02252d6a, size: 74 bytes, params: 1, frame: 11 const Array = global.Array; let array = new Array(bounties.length); array = array.fill(0); return array.map(_fun102982); } function _fun102983() { // fn#102983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:2375, offset: 0x02252dc4, size: 99 bytes, params: 1, frame: 20 const Math = global.Math; const max = Math.max; const binding = env0_2; const CARD_WIDTH = (require(13560) /* metro dependency 13560: BountyCard */).CARD_WIDTH; return ; } function _fun102984(a0) { // fn#102984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:2489, offset: 0x02252e27, size: 213 bytes, params: 2, frame: 16 var value4; let value = environment.__proto__; const snapIndex = getSnapIndex(a0); if (snapIndex !== env0_12.current) { env0_12.current = snapIndex; value4 = global.Date.now(); if (env0_13.current == null || value4 - env0_13.current >= 50) { env0_13.current = value4; value = require(4081) /* metro dependency 4081: HapticUtilsNative */; value.triggerHapticFeedback((require(4081) /* metro dependency 4081: HapticUtilsNative */).HapticFeedbackTypes.IMPACT_LIGHT); } } env0_10.current.parent.scrollX = a0.nativeEvent.contentOffset.x; env0_11(); } function _fun102986(a0) { // fn#102986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:2900, offset: 0x02252efc, size: 255 bytes, params: 2, frame: 19 var r7; var moduleValue; var trackBountyCarouselScroll; var object2; var BountyScrollingType; const HorizontalScrollingDirection = (require(7120) /* metro dependency 7120: AnalyticsTypes */).HorizontalScrollingDirection; const snapIndex = getSnapIndex(a0); const binding = env0_14; const current = binding.current; binding.current = false; if (snapIndex !== env0_4) { moduleValue = require(7110) /* metro dependency 7110: AnalyticsActions */; trackBountyCarouselScroll = moduleValue.trackBountyCarouselScroll; object2 = {}; BountyScrollingType = (require(7120) /* metro dependency 7120: AnalyticsTypes */).BountyScrollingType; r7 = current ? BountyScrollingType.AUTO : BountyScrollingType.MANUAL; object2.scrollingType = r7; r7 = snapIndex > env0_4 ? HorizontalScrollingDirection.RIGHT : HorizontalScrollingDirection.LEFT; object2.scrollingDirection = r7; object2.carouselPosition = snapIndex; object2.questContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent.QUEST_HOME_MOBILE_CAROUSEL; Reflect.apply(trackBountyCarouselScroll, moduleValue, [object2]); env0_5(snapIndex); } } function _fun102987(a0) { // fn#102987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:3304, offset: 0x02252ffb, size: 98 bytes, params: 2, frame: 16 var clearTimeout; var binding; const env0_0 = a0; if (env0_15.current != null) { clearTimeout = global.clearTimeout; binding = env0_15; clearTimeout(binding.current); binding.current = null; } env0_15.current = global.setTimeout(_fun102988, 350); } function _fun102989() { // fn#102989, offset: 0x022530b2, size: 11 bytes, params: 1, frame: 1 return _fun102990; } function _fun102991() { // fn#102991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:3603, offset: 0x022530bd, size: 65 bytes, params: 1, frame: 14 var environment; const closure = handleModalClose; const value = environment.__proto__; (importDefault(694) /* metro dependency 694: Dispatcher */).subscribe('MODAL_POP', closure); return _fun102996; } function _fun102997(a0, a1) { // fn#102997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:4104, offset: 0x0225328b, size: 298 bytes, params: 3, frame: 19 let value = environment.__proto__; const analyticsActionsModule = require(7110) /* metro dependency 7110: AnalyticsActions */; const trackAdContentClicked = analyticsActionsModule.trackAdContentClicked; const object2 = {}; object2.adContentId = a0.id; const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType; const BOUNTY = AdCreativeType.BOUNTY; object2.adCreativeType = BOUNTY; const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent; let QUEST_HOME_MOBILE_CAROUSEL = QuestContent.QUEST_HOME_MOBILE_CAROUSEL; object2.questContent = QUEST_HOME_MOBILE_CAROUSEL; const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA; const START_BOUNTY = QuestContentCTA.START_BOUNTY; object2.questContentCTA = START_BOUNTY; QUEST_HOME_MOBILE_CAROUSEL = QuestContent.QUEST_HOME_MOBILE_CAROUSEL; object2.sourceQuestContent = QUEST_HOME_MOBILE_CAROUSEL; object2.questContentPosition = a1; Reflect.apply(trackAdContentClicked, analyticsActionsModule, [object2]); env0_8.current = a0.id; env0_9.current = BountyStore.isBountyCompleted(a0.id); env0_7(true); value = importDefault(13515) /* metro dependency 13515: BountiesModalActionCreators */; const showModal = value.showModal; QUEST_HOME_MOBILE_CAROUSEL = QuestContent.QUEST_HOME_MOBILE_CAROUSEL; Reflect.apply(showModal, value, [{bountyId: a0.id, sourceQuestContent: QUEST_HOME_MOBILE_CAROUSEL}]); } function _fun102998({item, index}) { // fn#102998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:4647, offset: 0x022533b5, size: 223 bytes, params: 2, frame: 21 var environment; let value = environment.__proto__; value = undefined; const QuestContentImpressionTrackerNative = (require(10183) /* metro dependency 10183: QuestContentImpressionTrackerNative */).QuestContentImpressionTrackerNative; const questContentImpressionTrackerNativeProps = {adContentId: item.id}; const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType; const BOUNTY = AdCreativeType.BOUNTY; questContentImpressionTrackerNativeProps.adCreativeType = BOUNTY; const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent; let QUEST_HOME_MOBILE_CAROUSEL = QuestContent.QUEST_HOME_MOBILE_CAROUSEL; questContentImpressionTrackerNativeProps.questContent = QUEST_HOME_MOBILE_CAROUSEL; questContentImpressionTrackerNativeProps.questContentPosition = index; questContentImpressionTrackerNativeProps.trackGuildAndChannelMetadata = false; questContentImpressionTrackerNativeProps.visibilityRef = env0_10; QUEST_HOME_MOBILE_CAROUSEL = QuestContent.QUEST_HOME_MOBILE_CAROUSEL; questContentImpressionTrackerNativeProps.sourceQuestContent = QUEST_HOME_MOBILE_CAROUSEL; const isInViewBinding = isInView; questContentImpressionTrackerNativeProps.overrideVisibility = isInViewBinding ? value : !!isInViewBinding; return ( {children_102999} ); } function _fun103000(a0) { // fn#103000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:5133, offset: 0x022534f0, size: 80 bytes, params: 2, frame: 15 const env0_0 = a0; const CellContainer = (require(8416) /* metro dependency 8416: flashList */).CellContainer; return ; } function _fun103002() { // fn#103002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:5337, offset: 0x022535cb, size: 34 bytes, params: 1, frame: 3 return {isInView: isInView, activeIndex: env0_4, isModalVisible: env0_6}; } function useBountiesNux(a0) { // fn#103007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:5999, owner: QuestHomeBounties.useBountiesNux, offset: 0x0225387d, size: 218 bytes, params: 2, frame: 18 const value3 = env1_3((require(7013) /* metro dependency 7013: useSelectedDismissibleContent */).useSelectedDismissibleContent(a0 ? [(require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.BOUNTIES_NUX_PROMO_SHEET] : []), 2); const property = value3[0]; const property2 = value3[1]; const env0_2 = env1_4.useRef(false); env1_4.useEffect(_fun103008, [property]); env1_4.useEffect(_fun103009, [property, property2]); } function _fun102982(a0, a1) { // fn#102982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:2332, offset: 0x02252db4, size: 16 bytes, params: 3, frame: 2 return a1 * env2_13; } function _fun102988() { // fn#102988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:3388, offset: 0x0225305d, size: 85 bytes, params: 1, frame: 16 var scrollToOffset; var binding; var value3; env1_14.current = true; const current = env1_1.current; if (current != null) { scrollToOffset = current.scrollToOffset; binding = env0_0; value3 = environment.__proto__.__proto__; Reflect.apply(scrollToOffset, current, [{offset: binding * env2_13, animated: true}]); } env1_15.current = null; } function handleModalClose({key}) { // fn#102992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:3608, offset: 0x022530fe, size: 260 bytes, params: 2, frame: 17 var environment; var r3; var value2; var binding; var current; var index2; const value = environment.__proto__.__proto__; const BOUNTIES_MODAL_KEY = (require(13515) /* metro dependency 13515: BountiesModalActionCreators */).BOUNTIES_MODAL_KEY; if (key === BOUNTIES_MODAL_KEY) { value2 = environment.__proto__; env1_7(false); binding = env1_8; current = binding.current; binding.current = null; if (current != null) { r3 = BountyStore.isBountyCompleted(current) && !env1_9.current; env1_9.current = false; if (bounties.findIndex(function({id}) { return id === current; }) !== -1) { index2 = bounties.findIndex(_fun102994); r3 = r3 && index2 !== -1; r3 = r3 && index2 <= env1_4 + 3; if (r3) { (require(5459) /* metro dependency 5459: RunAfterInteractionsUtils */).runAfterInteractions(_fun102995); } } } } } function _fun102996() { // fn#102996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:4013, offset: 0x02253257, size: 52 bytes, params: 1, frame: 14 let value = environment.__proto__.__proto__; value = importDefault(694) /* metro dependency 694: Dispatcher */; value.unsubscribe('MODAL_POP', handleModalClose); } function children_102999() { // fn#102999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:5019, offset: 0x02253494, size: 92 bytes, params: 1, frame: 16 let value = environment.__proto__.__proto__; value = importDefault(13560) /* metro dependency 13560: BountyCard */; const itemBinding = item; const indexBinding = index; return ((Component) => )(value); } function onLayout_103001(a0) { // fn#103001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:5176, offset: 0x02253540, size: 139 bytes, params: 2, frame: 18 var binding; var current; var children; var id; var object2; var children2; const property = bounties[env0_0.index]; if (property != null) { binding = env1_10; current = binding.current; children = current.children; id = property.id; object2 = {}; current = binding.current; children2 = current.children; copyDataProperties(object2, children2[property.id], children2); object2['layout'] = a0.nativeEvent.layout; children[id] = object2; binding = env1_11; id = property.id; binding(id); } env0_0.onLayout(a0); } function _fun103008() { // fn#103008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:6187, offset: 0x02253957, size: 101 bytes, params: 1, frame: 14 const binding = env0_0; const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent; const BOUNTIES_NUX_PROMO_SHEET = DismissibleContent.BOUNTIES_NUX_PROMO_SHEET; if (!(binding !== BOUNTIES_NUX_PROMO_SHEET || env0_2.current)) { env0_2.current = true; (importDefault(13557) /* metro dependency 13557: openBountiesNuxPromoSheet */)(); } } function _fun103009() { // fn#103009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:6309, offset: 0x022539bc, size: 108 bytes, params: 1, frame: 15 var environment; const binding = env0_0; const value = environment.__proto__.__proto__; const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent; const BOUNTIES_NUX_PROMO_SHEET = DismissibleContent.BOUNTIES_NUX_PROMO_SHEET; if (binding === BOUNTIES_NUX_PROMO_SHEET) { (importDefault(694) /* metro dependency 694: Dispatcher */).subscribe('HIDE_ACTION_SHEET', handleHide_103010); return _fun103011; } } function _fun102994(a0, a1) { // fn#102994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:3843, offset: 0x02253202, size: 62 bytes, params: 3, frame: 12 let value = environment.__proto__.__proto__; let r0 = a1 > env2_4 && a1 > env0_1; if (r0) { value = environment.__proto__.__proto__.__proto__; value = !BountyStore.isBountyCompleted(a0.id); r0 = value; } return r0; } function _fun102995() { // fn#102995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:3939, offset: 0x02253240, size: 23 bytes, params: 1, frame: 11 env2_16(env0_2); } function handleHide_103010({key}) { // fn#103010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:6390, offset: 0x02253a28, size: 67 bytes, params: 2, frame: 13 var value2; const PROMO_SHEET_KEY = (require(13557) /* metro dependency 13557: openBountiesNuxPromoSheet */).PROMO_SHEET_KEY; if (key === PROMO_SHEET_KEY) { value2 = environment.__proto__; env1_1(ContentDismissActionType.USER_DISMISS); } } function _fun103011() { // fn#103011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13749:6507, offset: 0x02253a6b, size: 50 bytes, params: 1, frame: 14 let value = environment.__proto__.__proto__.__proto__; value = importDefault(694) /* metro dependency 694: Dispatcher */; value.unsubscribe('HIDE_ACTION_SHEET', handleHide_103010); }