47 lines
2.8 KiB
TypeScript
47 lines
2.8 KiB
TypeScript
/* Metro module 13564; source: modules/quests/native/BountiesBannerBackground.tsx; dependencies: [31, 27, 4502, 33, 566, 9543, 4589, 2] */
|
|
import AccessibilityStore from '../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
|
|
import LinearGradient from '../../../by-id/module-04589-LinearGradient.js'; /* Metro dependency 4589 */
|
|
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 VideoModule from '../../../components_native/common/Video.tsx'; /* Metro dependency 9543 */
|
|
|
|
function _fun103065(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13754:6, offset: 0x02255ed5, size: 232 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactModule;
|
|
const env0_8 = [0, 0.6];
|
|
const env0_9 = ['rgba(0, 0, 0, 0)', 'rgba(0, 0, 0, 0.9)'];
|
|
value = value.memo(BountiesBannerBackground);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/BountiesBannerBackground.tsx');
|
|
exports.default = value;
|
|
function BountiesBannerBackground({children, style, uri}) { // fn#103066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13754:244, offset: 0x02255fbd, size: 244 bytes, params: 2, frame: 22
|
|
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
|
function() {
|
|
return AccessibilityStore.useReducedMotion;
|
|
});
|
|
const VideoComponent = (VideoModule).VideoComponent;
|
|
return (
|
|
<View style={style}>
|
|
<VideoComponent
|
|
source={{uri: uri}}
|
|
style={StyleSheet.absoluteFillObject}
|
|
resizeMode="cover"
|
|
muted
|
|
disableFocus
|
|
paused={useReducedMotion}
|
|
importantForAccessibility="no-hide-descendants"
|
|
/>
|
|
{((Component) => <Component colors={env0_9} locations={env0_8} style={StyleSheet.absoluteFillObject} />)(LinearGradient)}
|
|
{children}
|
|
</View>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun103065, 13564, [31, 27, 4502, 33, 566, 9543, 4589,
|
|
2]) /* metro module 13564, dependencies: [31, 27, 4502, 33, 566, 9543, 4589, 2] */;
|