47 lines
3.8 KiB
TypeScript
47 lines
3.8 KiB
TypeScript
/* Metro module 14671; source: modules/premium/powerups/native/GuildPowerupsGameServerCard.tsx; dependencies: [31, 27, 4502, 8255, 33, 4501, 697, 566, 14672, 12304, 14637, 14663, 3868, 2] */
|
|
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
import AccessibilityStore from '../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
|
|
import GameServerStore from '../../game_server/GameServerStore.tsx'; /* Metro dependency 8255 */
|
|
import UseGameServerPerk from '../../game_server/hooks/useGameServerPerk.tsx'; /* Metro dependency 12304 */
|
|
import UseGameServerPowerupStatus from '../../game_server/hooks/useGameServerPowerupStatus.tsx'; /* Metro dependency 14672 */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
|
|
|
|
function _fun110753(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14868:6, offset: 0x02385dbc, size: 257 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
const createStyles = CreateStylesModule.createStyles;
|
|
const PX_8 = (Native).space.PX_8;
|
|
const env0_7 = Reflect.apply(createStyles, CreateStylesModule, [{riveContainer: {flex: 1, paddingVertical: PX_8}}]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsGameServerCard.tsx');
|
|
exports.default = GuildPowerupsGameServerCard;
|
|
function GuildPowerupsGameServerCard({guildId}) { // fn#110754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14868:345, offset: 0x02385ebd, size: 373 bytes, params: 2, frame: 23
|
|
const styles = useStyles();
|
|
const stateForGuild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GameServerStore],
|
|
function() {
|
|
return GameServerStore.getStateForGuild(guildId);
|
|
});
|
|
const value2 = (UseGameServerPowerupStatus)(guildId);
|
|
const value3 = (UseGameServerPerk)(guildId);
|
|
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
|
function() {
|
|
return AccessibilityStore.useReducedMotion;
|
|
});
|
|
return (
|
|
stateForGuild == null || value3 == null
|
|
? null
|
|
: ((Component) => <Component title={value3.title} description={value3.description} cost={value3.cost} costDecorator="+" riveComponent={<View style={styles.riveContainer}>{((GameServerHostingRive) => <GameServerHostingRive stateMachine="SM_Auto" dataBinding={{reducedMotion: useReducedMotion}} />)((require(3868) /* metro dependency 3868: native */).GameServerHostingRive)}</View>} badge="beta" status={value2} onPress={(importDefault(14637) /* metro dependency 14637: useGuildPowerupOnShowMore */)(guildId,
|
|
value3)} />)(importDefault(14663) /* metro dependency 14663: GuildPowerupsPerkCard */)
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun110753, 14671, [31, 27, 4502, 8255, 33, 4501, 697, 566, 14672, 12304, 14637, 14663, 3868,
|
|
2]) /* metro module 14671, dependencies: [31, 27, 4502, 8255, 33, 4501, 697, 566, 14672, 12304, 14637, 14663, 3868, 2] */;
|