/* Metro module 14055; source: modules/collectibles/native/FramesHeroBlock.tsx; dependencies: [31, 27, 5121, 663, 661, 33, 10020, 4501, 697, 14056, 14057, 1484, 10023, 566, 4048, 10154, 14058, 14049, 6771, 6789, 683, 4002, 14060, 14061, 10155, 10089, 4589, 4573, 4578, 1244, 9480, 6533, 5278, 6818, 6517, 14062, 8416, 14065, 2] */ function _fun106582(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#106582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14252:6, offset: 0x022e1367, size: 1123 bytes, params: 8, frame: 28 var object2; 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.Image; const env0_5 = value.View; const collectiblesCategoryStore = importDefault(5121) /* metro dependency 5121: CollectiblesCategoryStore */; const env0_7 = (require(663) /* metro dependency 663: CollectiblesShopConstants */).CollectiblesMobileShopScreen; value = require(661) /* metro dependency 661: Constants */; const env0_8 = value.AnalyticEvents; const env0_9 = value.UserSettingsSections; const env0_10 = value.VerticalGradient; value = require(33) /* metro dependency 33 */; const env0_11 = value.jsx; const env0_12 = value.Fragment; const env0_13 = value.jsxs; const COLLECTIBLES_SHOP_CARD_WIDTH = (require(10020) /* metro dependency 10020: CollectiblesShopCardV2 */).COLLECTIBLES_SHOP_CARD_WIDTH; value = 0.75 * COLLECTIBLES_SHOP_CARD_WIDTH; const createStylesModule = require(4501) /* metro dependency 4501: createStyles */; const createStyles = createStylesModule.createStyles; object2 = {}; object2.heroContainer = {width: '100%'}; const object7 = {'position': 'absolute', 'top': null, 'left': 0, 'right': 0, 'paddingHorizontal': null, 'alignItems': 'flex-start', 'zIndex': 2}; let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24; object7.top = PX_24; let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object7.paddingHorizontal = PX_16; object2.framesBadgeContainer = object7; const object8 = {'marginTop': -250, 'paddingTop': 240, 'paddingBottom': null, 'paddingHorizontal': null, 'flexDirection': 'row', 'alignItems': 'center', 'borderRadius': null, 'overflow': 'hidden', 'zIndex': 0}; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object8.paddingBottom = PX_16; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object8.paddingHorizontal = PX_16; object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg; object2.framesBannerWrapper = object8; const object9 = {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'bottom': 0, 'resizeMode': 'stretch'}; object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg; object2.framesBannerBackgroundImage = object9; const object10 = {flex: 1}; let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4; object10.paddingRight = PX_4; PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24; object10.marginTop = PX_24; object2.framesBannerTextContainer = object10; PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4; object2.framesBannerTitle = {marginBottom: PX_4}; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object2.framesBannerForegroundImage = {'width': 125, 'height': 125, 'resizeMode': 'contain', transform: [{translateY: PX_16}]}; object2.heroBannerContainer = {'position': 'absolute', 'top': 0, 'left': 0, 'width': '100%', 'maxHeight': null, 'aspectRatio': 1.4883720930232558, maxHeight: 240 + value}; object2.heroBannerImage = {'width': '100%', 'height': '100%', 'resizeMode': 'cover'}; object2.orbsBackgroundGradient = {'position': 'absolute', 'top': 0, 'left': 0, 'bottom': 0, 'right': 0}; object2.heroInfoContainer = {'display': 'flex', 'justifyContent': 'center', 'flex': 1, 'minWidth': '100%', 'maxHeight': 240, 'aspectRatio': 2.2}; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object2.innerContainer = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between', 'paddingHorizontal': null, 'width': '100%', 'height': '100%', paddingHorizontal: PX_16}; object2.heroLogoContainer = {'flex': 1, 'maxWidth': '80%', 'maxHeight': '80%'}; object2.heroLogo = {'resizeMode': 'contain', 'maxHeight': '100%', 'maxWidth': '100%', 'aspectRatio': 1}; const object11 = {}; const CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT; object11.backgroundColor = CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT; const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8; object11.padding = PX_8; object11.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round; object2.heroViewAllIcon = object11; const object14 = {}; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object14.paddingHorizontal = PX_16; object14.alignItems = 'flex-start'; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object14.gap = PX_16; object2.orbsInnerContainer = object14; object2.orbsTitle = {'fontSize': 24, 'lineHeight': 30}; object2.productCardsContainer = {zIndex: 1}; const object16 = {flexDirection: 'row'}; const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12; object16.gap = PX_12; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object16.paddingHorizontal = PX_16; object2.skeletonContainer = object16; const env0_14 = Reflect.apply(createStyles, createStylesModule, [object2]); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/native/FramesHeroBlock.tsx'); exports.default = _default_106585; } function SkeletonLoading({accessibilityLabel}) { // fn#106583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14252:2274, offset: 0x022e17ca, size: 129 bytes, params: 2, frame: 17 const styles = useStyles(); const Array = global.Array; return ( {Array.from({length: 10}).map(_fun106584)} ); } function _default_106585({heroBlock, bannerBlock, preferVCPrice, screen}) { // fn#106585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14252:2555, offset: 0x022e1890, size: 2683 bytes, params: 2, frame: 49 var r21; var r26; var r14; var length; var jsxRuntimeEnv0_12Binding; var PressableOpacity; var object11; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const t = (require(1244) /* metro dependency 1244: indexNative */).t; var object; var items4; var items5; var items6; var FlashList; var object27; const COLLECTIBLES_SHOP_CARD_WIDTH = (require(10020) /* metro dependency 10020: CollectiblesShopCardV2 */).COLLECTIBLES_SHOP_CARD_WIDTH; var space; var PX_12; var FeedProductList; var object31; const collectiblesCoachmarkScrollDismissContextModule = require(14057) /* metro dependency 14057: CollectiblesCoachmarkScrollDismissContext */; const useCollectiblesCoachmarkScrollDismissContext = collectiblesCoachmarkScrollDismissContextModule.useCollectiblesCoachmarkScrollDismissContext; const handleDismissCoachmarkOnScroll = Reflect.apply(useCollectiblesCoachmarkScrollDismissContext, collectiblesCoachmarkScrollDismissContextModule, []).handleDismissCoachmarkOnScroll; const env0_2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation(); const env0_3 = (require(10023) /* metro dependency 10023: CollectiblesAnalyticsContext */).useCollectiblesAnalyticsContext(); let r30 = heroBlock.mobileHeroUrl ?? heroBlock.heroBannerUrl; const heroLogoUrl = heroBlock.heroLogoUrl; const category = (require(566) /* metro dependency 566: flux */).useStateFromStores([CollectiblesCategoryStore], function() { return CollectiblesCategoryStore.getCategory(heroBlock.categorySkuId); }); let r17 = category != null && category.isOrbsExclusive; const value3 = (importDefault(4048) /* metro dependency 4048: useTheme */)(); const useTrackProductCardImpressionModule = require(10154) /* metro dependency 10154: useTrackProductCardImpression */; const useTrackProductCardImpression = useTrackProductCardImpressionModule.useTrackProductCardImpression; const handleCardVisibilityChange = Reflect.apply(useTrackProductCardImpression, useTrackProductCardImpressionModule, [heroBlock.categoryStoreListingId, 'mobile_home', 'hero_block']).handleCardVisibilityChange; const styles = useStyles(); const value6 = (require(14049) /* metro dependency 14049: useFilteredAndSortedProducts */).useFilteredAndSortedProducts({products: env0_3.useMemo(_fun106587, [heroBlock.rankedSkuIds, (importDefault(14058) /* metro dependency 14058: useGetProductsFromSkus */)()]), bypassAndroidUnsyncedFilter: r17}); const FEATURED_PAGE = CollectiblesMobileShopScreen.FEATURED_PAGE; const env0_6 = screen === FEATURED_PAGE; const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */; const COLLECTIBLES_SHOP_HERO = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).COLLECTIBLES_SHOP_HERO; const analyticsLocations = defaultImport(COLLECTIBLES_SHOP_HERO).analyticsLocations; if (category === undefined) { return null; } const r32 = heroBlock.mobileTitle ?? heroBlock.title; const r33 = heroBlock.mobileSummary ?? heroBlock.summary; r30 = r17 ? (require(4002) /* metro dependency 4002: shared */).isThemeDark(value3) ? importDefault(14060) /* metro dependency 14060: header_darkJpg */ : importDefault(14061) /* metro dependency 14061: header_lightJpg */ : r30; const AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider; const VisibilitySensor = importDefault(10155) /* metro dependency 10155: VisibilitySensor */; const items2 = [{((Component) => )(importDefault(10089) /* metro dependency 10089: FramesEarlyAccessBadge */)}]; items2[1] = {r30 != null && <>{r17 && ((Component) => )(importDefault(4589) /* metro dependency 4589 */)}}; if (r17) { var viewBinding6Props = {style: styles.orbsInnerContainer}; r26 = r32 != null && {r32}; items5 = [r26]; r26 = r33 != null && r33 !== ''; r26 = r26 && {r33}; items5[1] = r26; items6 = [{items5}]; items6[1] = ((Button) =>