This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,79 +1,89 @@
/* Metro module 7641; source: modules/premium/native/gifting/PremiumGiftBackgroundSelect.tsx; dependencies: [57, 31, 27, 33, 4017, 4501, 697, 1478, 4504, 1305, 7642, 7669, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseWindowDimensionsNative from '../../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import ReanimatedRexport from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
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 NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as TimingModule from '../../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */
import * as NativeGiftContextModule from '../../../payments/native/NativeGiftContext.tsx'; /* Metro dependency 7669 */
function _fun61180(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:6, offset: 0x0171cfea, size: 332 bytes, params: 8, frame: 22
const env0_0 = require;
const closure = GiftBackgroundSelect;
const GiftBackgroundSelect2 = GiftBackgroundSelect;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const ScrollView = (require(27) /* metro dependency 27 */).ScrollView;
let value = require(33) /* metro dependency 33 */;
const ScrollView = (ReactNativeModule).ScrollView;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.Fragment;
const env0_7 = value.jsxs;
const env0_8 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).createAnimatedComponent(ScrollView);
const env0_8 = (ReanimatedRexport).createAnimatedComponent(ScrollView);
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
const PX_24 = (Native).space.PX_24;
const env0_9 = Reflect.apply(createStyles, value, [{scrollView: {flex: 1, marginTop: PX_24},
contentContainer: {justifyContent: 'center'}}]);
object = {code: 'function PremiumGiftBackgroundSelectTsx1(){const{STANDARD_EASING,withTiming,visibility}=this.__closure;const animationSettings={easing:STANDARD_EASING,duration:100};return{opacity:withTiming(visibility.get()?1:0,animationSettings)};}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/gifting/PremiumGiftBackgroundSelect.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/native/gifting/PremiumGiftBackgroundSelect.tsx');
exports.default = PremiumGiftBackgroundSelect;
exports.GiftBackgroundSelect = closure;
}
exports.GiftBackgroundSelect = GiftBackgroundSelect2;
function GiftBackgroundSelect({giftStyle, withConsistentHeight}) { // fn#61181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:578, offset: 0x0171d136, size: 473 bytes, params: 2, frame: 28
withConsistentHeight = withConsistentHeight === undefined || withConsistentHeight;
const styles = useStyles();
const width = (UseWindowDimensionsNative)().width;
const [property, env0_1] = Module00057(ReactModule.useState(), 2);
const value4 = (ReanimatedRexportModule).useSharedValue(false);
ReactModule.useEffect(_fun61182, [property, value4]);
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
const GiftBackgroundSelectN2 = GiftBackgroundSelectN;
object = {};
const STANDARD_EASING = (NativeModule).STANDARD_EASING;
object.STANDARD_EASING = STANDARD_EASING;
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object.visibility = value4;
GiftBackgroundSelectN2.__closure = object;
GiftBackgroundSelectN2.__workletHash = 5743780040676;
GiftBackgroundSelectN2.__initData = env0_10;
return (
<>
{((Component) => <Component giftStyle={giftStyle} withConsistentHeight={withConsistentHeight} />)(importDefault(7642) /* metro dependency 7642: PremiumGiftBackgroundAnimationAndroid */)}
{((Component) => <Component onContentSizeChange={onContentSizeChange} contentContainerStyle={[styles.contentContainer,
property != null && property < width && ({flex: 1})]} style={[styles.scrollView,
Reflect.apply(useAnimatedStyle, ReanimatedRexportModule,
[GiftBackgroundSelectN2])]} horizontal showsHorizontalScrollIndicator={false} />)(env0_8)}
</>
);
function _fun61182() { // fn#61182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:757, offset: 0x0171d30f, size: 31 bytes, params: 1, frame: 12
env0_2.set(env0_0 != null);
}
function GiftBackgroundSelect({giftStyle, withConsistentHeight}) { // fn#61181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:578, offset: 0x0171d136, size: 473 bytes, params: 2, frame: 28
var object2;
withConsistentHeight = withConsistentHeight === undefined || withConsistentHeight;
const styles = useStyles();
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
const [property, env0_1] = env0_3(env0_4.useState(), 2);
const value4 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(false);
env0_4.useEffect(_fun61182, [property, value4]);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = GiftBackgroundSelectN;
object2 = {};
const STANDARD_EASING = (require(1305) /* metro dependency 1305: native */).STANDARD_EASING;
object2.STANDARD_EASING = STANDARD_EASING;
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object2.visibility = value4;
closure.__closure = object2;
closure.__workletHash = 5743780040676;
closure.__initData = env0_10;
return (
<>
{((Component) => <Component giftStyle={giftStyle} withConsistentHeight={withConsistentHeight} />)(importDefault(7642) /* metro dependency 7642: PremiumGiftBackgroundAnimationAndroid */)}
{((Component) => <Component onContentSizeChange={onContentSizeChange} contentContainerStyle={[styles.contentContainer,
property != null && property < width && ({flex: 1})]} style={[styles.scrollView,
Reflect.apply(useAnimatedStyle, reanimatedRexportModule,
[closure])]} horizontal showsHorizontalScrollIndicator={false} />)(env0_8)}
</>
);
}
function GiftBackgroundSelectN() { // fn#61183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:823, owner: GiftBackgroundSelect.N, offset: 0x0171d32e, size: 108 bytes, params: 1, frame: 18
const withTiming = TimingModule.withTiming;
const r2 = env0_2.get() ? 1 : 0;
const STANDARD_EASING = (NativeModule).STANDARD_EASING;
return {opacity: Reflect.apply(withTiming, TimingModule, [r2, {easing: STANDARD_EASING, duration: 100}])};
}
function PremiumGiftBackgroundSelect() { // fn#61185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:1438, offset: 0x0171d3b9, size: 75 bytes, params: 1, frame: 15
const {giftStyle,
setGiftStyle} = (require(7669) /* metro dependency 7669: NativeGiftContext */).useNativeGiftContext();
return <GiftBackgroundSelect giftStyle={giftStyle} setGiftStyle={setGiftStyle} />;
}
function onContentSizeChange(a0) { // fn#61184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:1170, owner: GiftBackgroundSelect.onContentSizeChange, offset: 0x0171d39a, size: 31 bytes, params: 2, frame: 11
if (env0_0 == null) {
env0_1(a0);
}
}
function _fun61182() { // fn#61182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:757, offset: 0x0171d30f, size: 31 bytes, params: 1, frame: 12
env0_2.set(env0_0 != null);
}
function GiftBackgroundSelectN() { // fn#61183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:823, owner: GiftBackgroundSelect.N, offset: 0x0171d32e, size: 108 bytes, params: 1, frame: 18
const timingModule = require(4504) /* metro dependency 4504: timing */;
const withTiming = timingModule.withTiming;
const r2 = env0_2.get() ? 1 : 0;
const STANDARD_EASING = (require(1305) /* metro dependency 1305: native */).STANDARD_EASING;
return {opacity: Reflect.apply(withTiming, timingModule, [r2, {easing: STANDARD_EASING, duration: 100}])};
}
function GiftBackgroundSelectOnContentSizeChange(a0) { // fn#61184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:1170, owner: GiftBackgroundSelect.onContentSizeChange, offset: 0x0171d39a, size: 31 bytes, params: 2, frame: 11
if (env0_0 == null) {
env0_1(a0);
}
function PremiumGiftBackgroundSelect() { // fn#61185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7819:1438, offset: 0x0171d3b9, size: 75 bytes, params: 1, frame: 15
const {giftStyle,
setGiftStyle} = (NativeGiftContextModule).useNativeGiftContext();
return <GiftBackgroundSelect giftStyle={giftStyle} setGiftStyle={setGiftStyle} />;
}
}
global.__d(_fun61180, 7641, [57, 31, 27, 33, 4017, 4501, 697, 1478, 4504, 1305, 7642, 7669,
2]) /* metro module 7641, dependencies: [57, 31, 27, 33, 4017, 4501, 697, 1478, 4504, 1305, 7642, 7669, 2] */;