Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,59 @@
|
||||
/* Metro module 8398; source: modules/user_profile/hooks/usePendingAvatarSettings.tsx; dependencies: [31, 7624, 8399, 632, 8400, 8402, 7613, 2] */
|
||||
function _fun66737(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8583:6, offset: 0x01c07a95, size: 139 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(31) /* metro dependency 31 */).useCallback;
|
||||
const userProfileSettingsStore = importDefault(7624) /* metro dependency 7624: UserProfileSettingsStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/hooks/usePendingAvatarSettings.tsx');
|
||||
exports.default = usePendingAvatarSettings;
|
||||
}
|
||||
|
||||
function usePendingAvatarSettings({isTryItOut, analyticsLocations, guildId}) { // fn#66738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8583:227, offset: 0x01c07b20, size: 266 bytes, params: 2, frame: 21
|
||||
var object2;
|
||||
const value2 = (importDefault(8399) /* metro dependency 8399: useTrackCollectiblesItemTryOut */)(analyticsLocations);
|
||||
const {pendingAvatar, pendingAvatarDecoration,
|
||||
pendingErrors} = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStoresObject([UserProfileSettingsStore],
|
||||
_fun66739);
|
||||
const value4 = useCallback(_fun66740, [guildId]);
|
||||
const value5 = useCallback(_fun66741, [value2, guildId]);
|
||||
object2 = {pendingAvatar: pendingAvatar, pendingAvatarDecoration: pendingAvatarDecoration,
|
||||
pendingErrors: pendingErrors};
|
||||
object2.setPendingAvatar = isTryItOut ? (require(7613) /* metro dependency 7613: UserProfileActionCreators */).setTryItOutAvatar : value4;
|
||||
object2.setPendingAvatarDecoration = isTryItOut ? (require(7613) /* metro dependency 7613: UserProfileActionCreators */).setTryItOutAvatarDecoration : value5;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun66739() { // fn#66739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8583:365, offset: 0x01c07c2a, size: 144 bytes, params: 1, frame: 14
|
||||
var tryItOutChanges;
|
||||
if (isTryItOut) {
|
||||
tryItOutChanges = UserProfileSettingsStore.getTryItOutChanges();
|
||||
return {pendingAvatar: tryItOutChanges.tryItOutAvatar,
|
||||
pendingAvatarDecoration: tryItOutChanges.tryItOutAvatarDecoration,
|
||||
pendingErrors: UserProfileSettingsStore.getErrors(guildId).avatarDecoration};
|
||||
}
|
||||
const getPendingChanges = UserProfileSettingsStore.getPendingChanges;
|
||||
const guildIdBinding = guildId;
|
||||
const value = Reflect.apply(getPendingChanges, UserProfileSettingsStore, [guildIdBinding]);
|
||||
const getErrors = UserProfileSettingsStore.getErrors;
|
||||
return {pendingAvatar: value.pendingAvatar, pendingAvatarDecoration: value.pendingAvatarDecoration,
|
||||
pendingErrors: Reflect.apply(getErrors, UserProfileSettingsStore, [guildIdBinding]).avatarDecoration};
|
||||
}
|
||||
|
||||
function _fun66740(a0) { // fn#66740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8583:776, offset: 0x01c07cba, size: 99 bytes, params: 2, frame: 16
|
||||
let value = environment.__proto__;
|
||||
(require(8400) /* metro dependency 8400: UserProfileSettingsActionCreators */).setPendingChanges({guildId: guildId,
|
||||
avatar: a0});
|
||||
value = require(8402) /* metro dependency 8402: ProfileCustomizationUtils */;
|
||||
value.announcePendingAvatarChange(a0 == null ? 'remove' : 'set');
|
||||
}
|
||||
|
||||
function _fun66741(a0) { // fn#66741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8583:900, offset: 0x01c07d1d, size: 74 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__;
|
||||
(require(8400) /* metro dependency 8400: UserProfileSettingsActionCreators */).setPendingChanges({guildId: guildId,
|
||||
avatarDecoration: a0});
|
||||
if (a0 != null) {
|
||||
env0_2(a0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user