Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,111 @@
|
||||
/* Metro module 13543; source: modules/quests/native/BountiesModal/BountiesScrollEndCard.tsx; dependencies: [31, 27, 33, 4501, 697, 13542, 1244, 13519, 4507, 4017, 4504, 4589, 4573, 10234, 2] */
|
||||
function _fun102913(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13733:6, offset: 0x0224eced, size: 237 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Pressable;
|
||||
const env0_4 = value.StyleSheet;
|
||||
const env0_5 = value.View;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun102914);
|
||||
object = {code: 'function BountiesScrollEndCardTsx1(){const{isScrollingInBoundsSharedValue,withTiming,isActive,timingStandard}=this.__closure;var _isScrollingInBoundsS;const isScrollingInBounds=((_isScrollingInBoundsS=isScrollingInBoundsSharedValue)===null||_isScrollingInBoundsS===void 0?void 0:_isScrollingInBoundsS.get())===true;return{opacity:withTiming(isActive&&!isScrollingInBounds?1:0,timingStandard)};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesScrollEndCard.tsx');
|
||||
exports.default = BountiesScrollEndCard;
|
||||
}
|
||||
|
||||
function _fun102914() { // fn#102914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13733:203, offset: 0x0224edda, size: 242 bytes, params: 1, frame: 17
|
||||
const object6 = {};
|
||||
const object7 = {};
|
||||
copyDataProperties(object7, StyleSheet.absoluteFillObject, undefined);
|
||||
object6.container = object7;
|
||||
const object8 = {};
|
||||
copyDataProperties(object8, StyleSheet.absoluteFillObject, undefined);
|
||||
object8['backgroundColor'] = 'rgba(0, 0, 0, 0.6)';
|
||||
object6.backdropTint = object8;
|
||||
const object9 = {};
|
||||
copyDataProperties(object9, StyleSheet.absoluteFillObject, undefined);
|
||||
object6.backdropGradient = object9;
|
||||
const object10 = {};
|
||||
copyDataProperties(object10, StyleSheet.absoluteFillObject, undefined);
|
||||
object10['justifyContent'] = 'center';
|
||||
object10['alignItems'] = 'center';
|
||||
object6.pressable = object10;
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object6.overlayContent = {alignItems: 'center', gap: PX_4};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object6.textBlock = {alignItems: 'center', gap: PX_4};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.replayIcon = {margin: PX_12};
|
||||
return object6;
|
||||
}
|
||||
|
||||
function BountiesScrollEndCard({bounty, visible, onReplay, isActive, isScrollingInBoundsSharedValue}) { // fn#102915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13733:1015, offset: 0x0224eecc, size: 826 bytes, params: 2, frame: 33
|
||||
var r0;
|
||||
var View2;
|
||||
var items2;
|
||||
var View3;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var items4;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const bountyCtaInfo = (require(13542) /* metro dependency 13542: BountyCtaHelpers */).getBountyCtaInfo(bounty);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const value4 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9UtZAY']);
|
||||
const useVisibilityTransitionModule = require(13519) /* metro dependency 13519: useVisibilityTransition */;
|
||||
const useVisibilityTransition = useVisibilityTransitionModule.useVisibilityTransition;
|
||||
let object2 = {visible: visible};
|
||||
object2.entranceTiming = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
|
||||
object2.exitTiming = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
|
||||
const {opacityStyle, shouldRender} = Reflect.apply(useVisibilityTransition, useVisibilityTransitionModule,
|
||||
[object2]);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = BountiesScrollEndCardH;
|
||||
object2 = {isScrollingInBoundsSharedValue: isScrollingInBoundsSharedValue};
|
||||
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
object2.isActive = isActive;
|
||||
object2.timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 13628650628423;
|
||||
closure.__initData = env0_9;
|
||||
if (shouldRender) {
|
||||
View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
var view2Props = {style: [styles.container, opacityStyle], pointerEvents: 'box-none'};
|
||||
items2 = [<View style={styles.backdropTint} />];
|
||||
items2[1] = ((Component) => <Component colors={['rgba(0, 0, 0, 0.48)',
|
||||
'rgba(0, 0, 0, 0.8)']} style={styles.backdropGradient} />)(importDefault(4589) /* metro dependency 4589 */);
|
||||
var pressableBindingProps = {onPress: isActive ? onReplay : undefined, disabled: !isActive,
|
||||
accessibilityRole: 'button', accessibilityLabel: value4, style: styles.pressable};
|
||||
View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
var view3Props = {style: [styles.overlayContent, Reflect.apply(useAnimatedStyle, reanimatedRexportModule,
|
||||
[closure])]};
|
||||
var viewBindingProps = {style: styles.textBlock};
|
||||
value = <Text variant="heading-md/semibold" color="text-strong">{bountyCtaInfo.label}</Text>;
|
||||
items4 = [value];
|
||||
items4[1] = <Text variant="heading-sm/medium" color="text-default">{value4}</Text>;
|
||||
value = <View {...viewBindingProps}>{items4}</View>;
|
||||
items2[2] = <Pressable {...pressableBindingProps}><View3 {...view3Props}>{value}{((RetryIcon) => <RetryIcon accessible={false} color={(importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_SECONDARY_TEXT_DEFAULT} style={styles.replayIcon} />)((require(10234) /* metro dependency 10234: RetryIcon */).RetryIcon)}</View3></Pressable>;
|
||||
value = <View2 {...view2Props}>{items2}</View2>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = shouldRender;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function BountiesScrollEndCardH() { // fn#102916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13733:1392, owner: BountiesScrollEndCard.h, offset: 0x0224f206, size: 121 bytes, params: 1, frame: 18
|
||||
const r7 = isScrollingInBoundsSharedValue?.get();
|
||||
const object2 = {};
|
||||
const timingModule = require(4504) /* metro dependency 4504: timing */;
|
||||
const withTiming = timingModule.withTiming;
|
||||
const isActiveBinding = isActive;
|
||||
const value = 0;
|
||||
object2.opacity = Reflect.apply(withTiming, timingModule, [isActiveBinding ? r7 === true ? value : 1 : value,
|
||||
(require(4507) /* metro dependency 4507: timingPresets */).timingStandard]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user