Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,67 @@
|
||||
/* Metro module 13614; source: modules/quests/native/VideoQuestModal/captions/VideoQuestCaptions.tsx; dependencies: [31, 27, 33, 4501, 697, 674, 13615, 13617, 4564, 4573, 2] */
|
||||
function _fun103994(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13811:6, offset: 0x0227aa56, size: 462 bytes, params: 8, frame: 25
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {'position': 'absolute', 'bottom': null, 'left': null, 'right': null, 'alignItems': 'center',
|
||||
'justifyContent': 'flex-end'};
|
||||
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object5.bottom = PX_32;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.left = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.right = PX_16;
|
||||
object4.container = object5;
|
||||
const object6 = {};
|
||||
const value2 = importDefault(674) /* metro dependency 674 */;
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLACK;
|
||||
object6.backgroundColor = value2(BLACK).alpha(0.35).hex();
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.padding = PX_8;
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object6.overflow = 'hidden';
|
||||
object4.captionBox = object6;
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object4.captionText = {color: WHITE, textAlign: 'center'};
|
||||
const env0_6 = Reflect.apply(createStyles, createStylesModule, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/VideoQuestModal/captions/VideoQuestCaptions.tsx');
|
||||
exports.VideoQuestCaptions = VideoQuestCaptions;
|
||||
}
|
||||
|
||||
function VideoQuestCaptions({quest, currentTime, style, visible}) { // fn#103995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13811:663, offset: 0x0227ac24, size: 341 bytes, params: 2, frame: 21
|
||||
visible = visible === undefined || visible;
|
||||
const styles = useStyles();
|
||||
const {captions,
|
||||
status} = (require(13615) /* metro dependency 13615: useVideoQuestCaptions */).useVideoQuestCaptions(quest);
|
||||
const value3 = env0_3.useMemo(_fun103996, [captions, currentTime, visible]);
|
||||
return status !== 'success' || value3 == null ? null : <View style={[styles.container,
|
||||
style]} importantForAccessibility="no-hide-descendants" accessibilityRole="none" accessible={false}>{((Component) => <Component style={styles.captionBox} blurTheme="dark" blurStyle="default" blurAmount={0.2}>{((Text) => <Text variant="heading-sm/medium" style={styles.captionText}>{value3.text}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</Component>)(importDefault(4564) /* metro dependency 4564: VisualEffectView */)}</View>;
|
||||
}
|
||||
|
||||
function _fun103996() { // fn#103996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13811:794, offset: 0x0227ad79, size: 74 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
const captionsBinding = captions;
|
||||
const value2 = null;
|
||||
if (value2 != captionsBinding) {
|
||||
if (visible) {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(13617) /* metro dependency 13617: VideoQuestCaptionsUtils */;
|
||||
r0 = moduleValue.findActiveCaption(captions, currentTime);
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/* Metro module 13617; source: modules/quests/native/VideoQuestModal/captions/VideoQuestCaptionsUtils.tsx; dependencies: [2] */
|
||||
function _fun104016(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13814:6, offset: 0x0227b955, size: 87 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/VideoQuestModal/captions/VideoQuestCaptionsUtils.tsx');
|
||||
exports.findActiveCaption = function(a0, a1) {
|
||||
var r3;
|
||||
var r4;
|
||||
var r8;
|
||||
var property;
|
||||
var value = a0.length - 1;
|
||||
var value2 = 0;
|
||||
if (value2 <= value) {
|
||||
r3 = value2;
|
||||
r4 = value;
|
||||
reducibleLoop1: while (true) {
|
||||
property = global.Math;
|
||||
value = property.floor((r3 + r4) / 2);
|
||||
property = a0[value];
|
||||
if (a1 >= property.start) {
|
||||
reducibleJoin3: while (true) {
|
||||
if (a1 <= property.end) {
|
||||
return property;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
}
|
||||
if (a1 < property.start) {
|
||||
value -= 1;
|
||||
r4 = value;
|
||||
r8 = r3;
|
||||
} else {
|
||||
value += 1;
|
||||
r8 = value;
|
||||
}
|
||||
if (!(r8 <= r4)) {
|
||||
return null;
|
||||
}
|
||||
r3 = r8;
|
||||
continue reducibleLoop1;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user