44 lines
2.3 KiB
TypeScript
44 lines
2.3 KiB
TypeScript
/* Metro module 13564; source: modules/quests/native/BountiesBannerBackground.tsx; dependencies: [31, 27, 4502, 33, 566, 9543, 4589, 2] */
|
|
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 = importAll(31) /* metro dependency 31 */;
|
|
const value2 = require(27) /* metro dependency 27 */;
|
|
const env0_3 = value2.StyleSheet;
|
|
const env0_4 = value2.View;
|
|
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
|
const value3 = require(33) /* metro dependency 33 */;
|
|
const env0_6 = value3.jsx;
|
|
const env0_7 = value3.jsxs;
|
|
const env0_8 = [0, 0.6];
|
|
const env0_9 = ['rgba(0, 0, 0, 0)', 'rgba(0, 0, 0, 0.9)'];
|
|
value = value.memo(BountiesBannerBackground);
|
|
(require(2) /* metro dependency 2 */).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 = (require(9543) /* metro dependency 9543: Video */).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} />)(importDefault(4589) /* metro dependency 4589 */)}
|
|
{children}
|
|
</View>
|
|
);
|
|
}
|
|
|