64 lines
4.6 KiB
TypeScript
64 lines
4.6 KiB
TypeScript
/* Metro module 14563; source: modules/premium/powerups/native/BoostProgressBarCoachmark.tsx; dependencies: [31, 27, 1376, 33, 4501, 9112, 1244, 2256, 3868, 8543, 2] */
|
|
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 DismissibleContentConstantsModule from '../../../dismissible_content/DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
|
|
import * as NativeModule from '../../../../external/discord_common/js/packages/design/native.tsx'; /* Metro dependency 3868 */
|
|
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
|
|
import * as UseCoachmarkNativeModule from '../../../../design/components/Coachmark/native/useCoachmark.native.tsx'; /* Metro dependency 8543 */
|
|
|
|
function _fun110123(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14760:6, offset: 0x0236b5d0, size: 232 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_7 = (CreateStylesModule).createStyles({riveContainer: {'width': 120,
|
|
'height': 80, 'alignSelf': 'center'}});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/premium/powerups/native/BoostProgressBarCoachmark.tsx');
|
|
exports.default = BoostProgressBarCoachmark;
|
|
function BoostProgressBarCoachmark({targetRef, guild, markAsDismissed}) { // fn#110124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14760:357, offset: 0x0236b6b8, size: 196 bytes, params: 2, frame: 20
|
|
const styles = useStyles();
|
|
const value2 = ReactModule.useCallback(function() {
|
|
markAsDismissed(ContentDismissActionType.USER_DISMISS);
|
|
}, [markAsDismissed]);
|
|
const value3 = ReactModule.useCallback(function() {
|
|
markAsDismissed(ContentDismissActionType.TAKE_ACTION);
|
|
importDefault(dependencyMap[5]).saveGuild(guild.id, {premiumProgressBarEnabled: true});
|
|
}, [guild.id, markAsDismissed]);
|
|
const useMemo = ReactModule.useMemo;
|
|
(UseCoachmarkNativeModule).useCoachmark(targetRef, Reflect.apply(useMemo,
|
|
ReactModule, [_fun110127, [value2, value3, styles.riveContainer]]));
|
|
return null;
|
|
function _fun110127() { // fn#110127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14760:609, offset: 0x0236b7e8, size: 228 bytes, params: 1, frame: 18
|
|
const object = {'title': null, 'description': null, 'visible': true, 'position': 'bottom', 'offsetY': 8};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
object.title = Reflect.apply(string, intl,
|
|
[(importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).uwV2dH]);
|
|
string = intl.string;
|
|
const MIwlcR = (importDefault(2256) /* metro dependency 2256: GuildPowerupsMessages */).MIwlcR;
|
|
object.description = Reflect.apply(string, intl, [MIwlcR]);
|
|
object.onDismiss = ReactModule;
|
|
object.renderImgComponent = renderImgComponent_110128;
|
|
object.buttonLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['0CJWP2']);
|
|
object.buttonVariant = 'primary';
|
|
object.onButtonPress = ReactNativeModule.View;
|
|
return object;
|
|
function renderImgComponent_110128() { // fn#110128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14760:775, offset: 0x0236b8cc, size: 89 bytes, params: 1, frame: 16
|
|
const BoostThisServerRive = (NativeModule).BoostThisServerRive;
|
|
return (
|
|
<View style={styles.riveContainer}>
|
|
<BoostThisServerRive stateMachine="State Machine 1" />
|
|
</View>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun110123, 14563, [31, 27, 1376, 33, 4501, 9112, 1244, 2256, 3868, 8543,
|
|
2]) /* metro module 14563, dependencies: [31, 27, 1376, 33, 4501, 9112, 1244, 2256, 3868, 8543, 2] */;
|