Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,123 @@
|
||||
/* Metro module 11057; source: modules/stickers/native/StickerPackDetailActionSheet.tsx; dependencies: [57, 31, 11028, 661, 6276, 33, 4501, 1478, 1585, 22, 683, 6275, 11058, 11062, 6515, 6277, 11063, 5278, 10970, 2] */
|
||||
function _fun84670(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11243:6, offset: 0x01f525e8, size: 370 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const stickerPickerConstantsModule = require(11028) /* metro dependency 11028: StickerPickerConstants */;
|
||||
const env0_5 = stickerPickerConstantsModule.MIN_MARGIN;
|
||||
const env0_6 = stickerPickerConstantsModule.STICKER_SIZE;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_8 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_MAX_WIDTH;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value3.jsx;
|
||||
const env0_10 = value3.Fragment;
|
||||
const env0_11 = value3.jsxs;
|
||||
const env0_12 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({focusedStickerPreviewContainer: {'position': 'absolute',
|
||||
'left': 0, 'top': 0, 'height': '100%', 'width': '100%', 'alignItems': 'center', 'justifyContent': 'center',
|
||||
'backgroundColor': 'rgba(0, 0, 0, 0.85)'}, header: {'marginHorizontal': 16, 'marginVertical': 8,
|
||||
'backgroundColor': 'transparent', height: undefined}, stickers: {'paddingHorizontal': 16, 'marginBottom': 16},
|
||||
popoutContainer: {'position': 'absolute', 'bottom': 50}});
|
||||
value = value.memo(StickerPackDetailActionSheet);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/stickers/native/StickerPackDetailActionSheet.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function StickerPackDetailActionSheet({stickerPack, analyticsPopoutType, onClose}) { // fn#84671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11243:659, offset: 0x01f5275a, size: 882 bytes, params: 2, frame: 35
|
||||
var r5;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value3 = Reflect.apply(useState, binding, [null]);
|
||||
const binding2 = env0_3;
|
||||
const value4 = binding2(value3, 2);
|
||||
const property = value4[0];
|
||||
var env0_3 = value4[1];
|
||||
useState = binding.useState;
|
||||
const value5 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value5[0];
|
||||
const env0_5 = value5[1];
|
||||
const env0_6 = binding.useRef(null);
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const Math = global.Math;
|
||||
const floor = Math.floor;
|
||||
const Math2 = global.Math;
|
||||
const value7 = Reflect.apply(floor, Math, [Math2.min(ACTION_SHEET_MAX_WIDTH, width) / (STICKER_SIZE + MIN_MARGIN)]);
|
||||
let defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
const value8 = defaultImport.chunk(stickerPack.stickers, value7);
|
||||
const env0_8 = binding.useRef(onClose);
|
||||
const closure = onClose_84673;
|
||||
binding.useEffect(_fun84675, [onClose]);
|
||||
binding.useEffect(function() {
|
||||
return _fun84677;
|
||||
}, []);
|
||||
binding.useEffect(function() {
|
||||
var defaultImport = importDefault(dependencyMap[10]);
|
||||
var OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
|
||||
defaultImport.track(OPEN_POPOUT, {type: analyticsPopoutType, sticker_pack_id: stickerPack.id});
|
||||
}, [analyticsPopoutType, stickerPack.id]);
|
||||
const jsxRuntimeEnv0_10Binding = jsxRuntimeEnv0_10;
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const object = {'scrollable': true, 'startExpanded': true, 'handleDisabled': true};
|
||||
const StickerPackHeader = importDefault(11058) /* metro dependency 11058: StickerPackHeader */;
|
||||
const stickerPackInformationPopoutModule = require(11062) /* metro dependency 11062: StickerPackInformationPopout */;
|
||||
const stickerPackHeader = <StickerPackHeader stickerPack={stickerPack} style={styles.header} onPress={stickerPackInformationPopoutModule.doesStickerPackHavePopoutInformation(stickerPack) ? closure : undefined} withBanner withDescription />;
|
||||
const ActionSheetHeaderBar = (require(6515) /* metro dependency 6515: ActionSheetHeaderBarNative */).ActionSheetHeaderBar;
|
||||
object.header = <>{stickerPackHeader}<ActionSheetHeaderBar variant="floating" /></>;
|
||||
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
|
||||
const bottomSheet = <BottomSheet {...object}><BottomSheetScrollView style={styles.stickers} contentContainerStyle={{paddingBottom: 32 + bottom}}>{value8.map(_fun84679)}</BottomSheetScrollView></BottomSheet>;
|
||||
const r7 = property != null && ((PressableOpacity) => <PressableOpacity accessibilityRole="none" style={styles.focusedStickerPreviewContainer} onPress={onPress_84680}>{((Component) => <Component sticker={property} size={128} />)(importDefault(10970) /* metro dependency 10970: Sticker */)}</PressableOpacity>)((require(5278) /* metro dependency 5278: Pressables */).PressableOpacity);
|
||||
if (property2) {
|
||||
value = importDefault(11062) /* metro dependency 11062: StickerPackInformationPopout */;
|
||||
value = ((Component) => <Component stickerPack={stickerPack} style={styles.popoutContainer} onClose={closure} />)(value);
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = property2;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
{bottomSheet}
|
||||
{r7}
|
||||
{r5}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function StickerPackDetailActionSheetOnClose() { // fn#84673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11243:1026, owner: StickerPackDetailActionSheet.onClose, offset: 0x01f52acc, size: 104 bytes, params: 1, frame: 14
|
||||
if (env0_6.current != null) {
|
||||
global.clearTimeout(env0_6.current);
|
||||
}
|
||||
const binding = env0_4;
|
||||
env0_5(!binding);
|
||||
if (!binding) {
|
||||
env0_6.current = global.setTimeout(_fun84674, 4000);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun84675() { // fn#84675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11243:1150, offset: 0x01f52b34, size: 21 bytes, params: 1, frame: 2
|
||||
env0_8.current = onClose;
|
||||
}
|
||||
|
||||
function _fun84676() { // fn#84676, offset: 0x01f52b49, size: 11 bytes, params: 1, frame: 1
|
||||
return _fun84677;
|
||||
}
|
||||
|
||||
function _fun84679(a0, a1) { // fn#84679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11243:1781, offset: 0x01f52bc5, size: 84 bytes, params: 3, frame: 17
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(11063) /* metro dependency 11063: StickerPickerListRow */;
|
||||
const binding = env0_7;
|
||||
return ((Component) => <Component containerWidth={binding} stickers={a0} rowSize={binding} onPressSticker={StickerPackDetailActionSheetOnPressSticker} nativeRow={false} key={a1} />)(value);
|
||||
}
|
||||
|
||||
function StickerPackDetailActionSheetOnPress() { // fn#84680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11243:2002, owner: StickerPackDetailActionSheet.onPress, offset: 0x01f52c19, size: 18 bytes, params: 1, frame: 11
|
||||
return env0_3(null);
|
||||
}
|
||||
|
||||
function _fun84677() { // fn#84677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11243:1191, offset: 0x01f52b54, size: 38 bytes, params: 1, frame: 10
|
||||
const value = environment.__proto__;
|
||||
return env1_8.current?.();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user