/* Metro module 10135; source: modules/virtual_currency/native/BalanceWidgetActionSheet.tsx; dependencies: [31, 27, 661, 1376, 33, 10136, 10137, 10138, 1244, 3847, 1948, 3875, 3860, 697, 683, 3968, 1365, 3868, 6275, 5475, 9543, 6515, 10139, 10076, 4573, 4578, 4501, 477, 2] */ function _fun79061(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10321:6, offset: 0x01e42f5a, size: 279 bytes, params: 8, frame: 18 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.TouchableOpacity; value = require(661) /* metro dependency 661: Constants */; const env0_6 = value.AnalyticEvents; const env0_7 = value.Fonts; const env0_8 = value.HelpdeskArticles; const env0_9 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType; value = require(33) /* metro dependency 33 */; const env0_10 = value.jsx; const env0_11 = value.jsxs; const env0_12 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun79062); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/virtual_currency/native/BalanceWidgetActionSheet.tsx'); exports.default = _default_79063; } function _fun79062(a0) { // fn#79062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10321:293, offset: 0x01e43071, size: 676 bytes, params: 2, frame: 19 const object3 = {}; const object5 = {'flex': 1, 'flexDirection': 'column', 'gap': null, 'minWidth': '100%'}; let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12; object5.gap = PX_12; PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12; object5.paddingTop = PX_12; let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object5.paddingHorizontal = PX_16; object3.actions = object5; const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8; object3.balanceHeader = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center', 'gap': null, 'flexWrap': 'wrap', gap: PX_8}; const object11 = {color: a0}; const value2 = 36; object11.fontSize = value2; object11.lineHeight = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? value2 : 44; object11.textAlignVertical = 'center'; object3.balanceText = object11; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object3.content = {'width': '100%', 'height': '100%', 'alignItems': 'center', 'flex': 1, marginBottom: PX_16}; const object12 = {'width': '100%', 'paddingTop': null, 'paddingBottom': null, 'alignItems': 'center', 'position': 'relative', 'flexDirection': 'column'}; PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12; object12.paddingTop = PX_12; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object12.paddingBottom = PX_16; object3.header = object12; const object13 = {'width': 32, 'height': 32, 'backgroundColor': null, 'borderRadius': null, 'justifyContent': 'center', 'alignItems': 'center'}; const REDESIGN_BUTTON_TERTIARY_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_BUTTON_TERTIARY_BACKGROUND; object13.backgroundColor = REDESIGN_BUTTON_TERTIARY_BACKGROUND; object13.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round; object3.infoIconBackground = object13; const object14 = {position: 'absolute'}; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object14.left = PX_16; PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object14.top = PX_16; object14.zIndex = 10; object3.infoIconContainer = object14; const object15 = {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'borderRadius': null, 'bottom': -100}; object15.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl; object3.promotionalBackground = object15; object3.promotionalBackgroundContainer = {'flex': 1, 'height': 428}; object3.promotionalBannerAsset = {'width': '100%', 'height': '100%'}; const object16 = {'width': '100%', 'height': 144}; PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12; object16.gap = PX_12; const PX_64 = (importDefault(697) /* metro dependency 697: native */).space.PX_64; object16.marginBottom = PX_64; object3.promotionalBannerContainer = object16; const PRIMARY_BOLD = Fonts.PRIMARY_BOLD; object3.promotionalBannerText = {'color': null, 'fontFamily': null, 'fontWeight': '600', 'fontSize': 16, 'lineHeight': 20, 'textAlign': 'center', color: a0, fontFamily: PRIMARY_BOLD}; return object3; } function _default_79063({balance, themeOverride, primaryButtonConfig, secondaryButtonConfig, source}) { // fn#79063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10321:1662, offset: 0x01e43315, size: 1565 bytes, params: 2, frame: 42 const Text = (require(4573) /* metro dependency 4573: Text */).Text; var r18; var items4; const binding = env0_3; const value2 = binding.useRef(null); const value3 = binding.useCallback(function() { importDefault(dependencyMap[9])(importDefault(dependencyMap[10]).getArticleURL(HelpdeskArticles.ORBS_FAQ)); }, []); const useContext = binding.useContext; const AccessibilityPreferencesContext = (require(3875) /* metro dependency 3875: AccessibilityPreferencesContext */).AccessibilityPreferencesContext; const enabled = Reflect.apply(useContext, binding, [AccessibilityPreferencesContext]).reducedMotion.enabled; const value4 = binding.useMemo(_fun79065, [balance]); themeOverride = themeOverride === undefined && value4 != null ? 'dark' : themeOverride; const useTokenModule = require(3860) /* metro dependency 3860: useToken */; const useToken = useTokenModule.useToken; const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY; const value8 = Reflect.apply(useToken, useTokenModule, [MOBILE_TEXT_HEADING_PRIMARY, themeOverride]); const styles = useStyles(value8); env0_3.useEffect(_fun79066, []); const ThemeContextProvider = (require(3868) /* metro dependency 3868: native */).ThemeContextProvider; const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet; const object = {ref: value2, startExpanded: true, handleComponent: handleComponent, handleDisabled: false}; const items3 = [styles.content]; let r10 = value4 != null && value4.backgroundVideo != null && value4.backgroundImage != null && styles.promotionalBackgroundContainer; items3[1] = r10; const items2 = [value4 != null && value4.backgroundVideo != null && value4.backgroundImage != null && (enabled ? ((Component) => )(importDefault(5475) /* metro dependency 5475: FastImage */) : ((VideoComponent) => )((require(9543) /* metro dependency 9543: Video */).VideoComponent))]; const ActionSheetHeaderBar = (require(6515) /* metro dependency 6515: ActionSheetHeaderBarNative */).ActionSheetHeaderBar; items2[1] = ; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const string = intl.string; const B1oJtQ = (require(1244) /* metro dependency 1244: indexNative */).t.B1oJtQ; const CircleQuestionIcon = (require(10139) /* metro dependency 10139: CircleQuestionIcon */).CircleQuestionIcon; const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT; items2[2] = ; const OrbsIcon = (require(10076) /* metro dependency 10076: OrbsIcon */).OrbsIcon; const orbsIcon = ; const formatToPlainString = intl.formatToPlainString; const W4DfeF = (require(1244) /* metro dependency 1244: indexNative */).t.W4DfeF; items2[3] = {orbsIcon}{balance ?? 0}; r10 = value4 != null && value4.bannerImage != null; if (r10) { var viewBinding3Props = {style: styles.promotionalBannerContainer}; items4 = [((Component) => )(importDefault(5475) /* metro dependency 5475: FastImage */)]; r18 = value4.bannerText != null && value4.bannerText !== ''; r18 = r18 && {value4.bannerText}; items4[1] = r18; r10 = {items4}; } items2[4] = r10; const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button; items2[5] =