Files
2026-07-28 01:06:53 +03:00

146 lines
8.9 KiB
TypeScript

/* 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] */
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 IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TimingModule from '../../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as UseVisibilityTransitionModule from './useVisibilityTransition.tsx'; /* Metro dependency 13519 */
import * as BountyCtaHelpersModule from './BountyCtaHelpers.tsx'; /* Metro dependency 13542 */
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});
ReactModule;
let value = ReactNativeModule;
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 = (CreateStylesModule).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)};}'};
(FileImportTrackerModule).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 object = {};
const object2 = {};
copyDataProperties(object2, StyleSheet.absoluteFillObject, undefined);
object.container = object2;
const object3 = {};
copyDataProperties(object3, StyleSheet.absoluteFillObject, undefined);
object3['backgroundColor'] = 'rgba(0, 0, 0, 0.6)';
object.backdropTint = object3;
const object4 = {};
copyDataProperties(object4, StyleSheet.absoluteFillObject, undefined);
object.backdropGradient = object4;
const object5 = {};
copyDataProperties(object5, StyleSheet.absoluteFillObject, undefined);
object5['justifyContent'] = 'center';
object5['alignItems'] = 'center';
object.pressable = object5;
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object.overlayContent = {alignItems: 'center', gap: PX_4};
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object.textBlock = {alignItems: 'center', gap: PX_4};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.replayIcon = {margin: PX_12};
return object;
}
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 = (TextModule).Text;
var items4;
var value;
const styles = useStyles();
const bountyCtaInfo = (BountyCtaHelpersModule).getBountyCtaInfo(bounty);
const intl = (IndexNativeModule).intl;
const value4 = intl.string((IndexNativeModule).t['9UtZAY']);
const useVisibilityTransition = UseVisibilityTransitionModule.useVisibilityTransition;
let object = {visible: visible};
object.entranceTiming = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
object.exitTiming = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
const {opacityStyle, shouldRender} = Reflect.apply(useVisibilityTransition, UseVisibilityTransitionModule, [object]);
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
const BountiesScrollEndCardH2 = BountiesScrollEndCardH;
object = {isScrollingInBoundsSharedValue: isScrollingInBoundsSharedValue};
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object.isActive = isActive;
object.timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
BountiesScrollEndCardH2.__closure = object;
BountiesScrollEndCardH2.__workletHash = 13628650628423;
BountiesScrollEndCardH2.__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,
[BountiesScrollEndCardH2])]};
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 object = {};
const withTiming = TimingModule.withTiming;
const isActiveBinding = isActive;
const value = 0;
object.opacity = Reflect.apply(withTiming, TimingModule, [isActiveBinding ? r7 === true ? value : 1 : value,
(require(4507) /* metro dependency 4507: timingPresets */).timingStandard]);
return object;
}
}
}
global.__d(_fun102913, 13543, [31, 27, 33, 4501, 697, 13542, 1244, 13519, 4507, 4017, 4504, 4589, 4573, 10234,
2]) /* metro module 13543, dependencies: [31, 27, 33, 4501, 697, 13542, 1244, 13519, 4507, 4017, 4504, 4589, 4573, 10234, 2] */;