Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,91 @@
|
||||
/* Metro module 11747; source: modules/polls/native/useRenderPollAnswerImage.tsx; dependencies: [57, 31, 27, 4645, 4644, 1881, 33, 566, 11741, 5475, 6739, 3800, 1423, 2] */
|
||||
function _fun90039(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11933:6, offset: 0x02027ce6, size: 240 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
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 env0_5 = (require(27) /* metro dependency 27 */).ActivityIndicator;
|
||||
const env0_6 = (require(4645) /* metro dependency 4645: DraftStore */).DraftType;
|
||||
const uploadAttachmentStore = importDefault(4644) /* metro dependency 4644: UploadAttachmentStore */;
|
||||
const env0_8 = (require(1881) /* metro dependency 1881: EmojiConstants */).EMOJI_URL_BASE_SIZE;
|
||||
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/polls/native/useRenderPollAnswerImage.tsx');
|
||||
exports.default = useRenderPollAnswerImage;
|
||||
}
|
||||
|
||||
function useRenderPollAnswerImage(a0, a1, a2, a3, a4) { // fn#90040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11933:312, offset: 0x02027dd6, size: 279 bytes, params: 6, frame: 22
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const env0_3 = a3;
|
||||
const env0_4 = a4;
|
||||
const value2 = undefined;
|
||||
const upload = (require(566) /* metro dependency 566: flux */).useStateFromStores([UploadAttachmentStore],
|
||||
_fun90041);
|
||||
let binding = env0_4;
|
||||
const [property, property2] = env0_3(binding.useState(), 2);
|
||||
const status = a2 == null || a2.mediaAttachmentState == null ? value2 : a2.mediaAttachmentState.status;
|
||||
const PollMediaUploadAttachmentStatus = (require(11741) /* metro dependency 11741: PollTypes */).PollMediaUploadAttachmentStatus;
|
||||
const PREPARING = PollMediaUploadAttachmentStatus.PREPARING;
|
||||
const value5 = status === PREPARING;
|
||||
binding = env0_4;
|
||||
const useMemo = binding.useMemo;
|
||||
return {renderImage: Reflect.apply(useMemo, binding, [_fun90042, [a2, a4, a3, upload, value5, property]]),
|
||||
upload: upload, setUploadSize: property2};
|
||||
}
|
||||
|
||||
function _fun90041() { // fn#90041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11933:397, offset: 0x02027eed, size: 43 bytes, params: 1, frame: 15
|
||||
const getUpload = UploadAttachmentStore.getUpload;
|
||||
const binding = env0_0;
|
||||
const Poll = DraftType.Poll;
|
||||
return Reflect.apply(getUpload, UploadAttachmentStore, [binding, require, Poll]);
|
||||
}
|
||||
|
||||
function _fun90042() { // fn#90042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11933:609, offset: 0x02027f18, size: 400 bytes, params: 1, frame: 22
|
||||
var r7;
|
||||
var r6;
|
||||
var value3;
|
||||
var Emoji;
|
||||
var object2;
|
||||
var binding;
|
||||
var item;
|
||||
var value;
|
||||
if (result) {
|
||||
value = environment.__proto__;
|
||||
return <ActivityIndicator />;
|
||||
}
|
||||
if (upload != null) {
|
||||
item = upload.item;
|
||||
r6 = importAll ?? env0_6;
|
||||
value = environment.__proto__;
|
||||
value = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
return ((Component) => <Component style={{width: r6, height: r6}} source={{uri: item.uri}} />)(value);
|
||||
}
|
||||
const value2 = undefined;
|
||||
let emoji = importDefault == null ? value2 : importDefault.emoji;
|
||||
if (emoji != null) {
|
||||
emoji = importDefault.emoji;
|
||||
value3 = environment.__proto__;
|
||||
Emoji = importDefault(6739) /* metro dependency 6739: Emoji */;
|
||||
object2 = {};
|
||||
binding = env0_4;
|
||||
object2.fastImageStyle = {width: binding, height: binding};
|
||||
object2.textEmojiStyle = {fontSize: binding};
|
||||
r7 = emoji.type === (require(3800) /* metro dependency 3800: EmojiTypes */).EmojiTypes.UNICODE ? emoji.surrogates : emoji.name;
|
||||
value = '';
|
||||
r6 = r7 ?? value;
|
||||
object2.name = r6;
|
||||
if (emoji.id != null) {
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
value = value.getEmojiURL({id: emoji.id, animated: emoji.animated, size: EMOJI_URL_BASE_SIZE});
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value2;
|
||||
}
|
||||
object2.src = r6;
|
||||
return <Emoji {...object2} />;
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user