Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,84 @@
|
||||
/* Metro module 8751; source: modules/collectibles/profile_frames/hooks/useMaybeTrackProfileFrameViewed.tsx; dependencies: [31, 5121, 632, 8515, 2] */
|
||||
function _fun68524(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8936:6, offset: 0x01c526ab, size: 144 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = require(31) /* metro dependency 31 */;
|
||||
const env0_2 = value.useEffect;
|
||||
const env0_3 = value.useRef;
|
||||
const collectiblesCategoryStore = importDefault(5121) /* metro dependency 5121: CollectiblesCategoryStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/profile_frames/hooks/useMaybeTrackProfileFrameViewed.tsx');
|
||||
exports.default = useMaybeTrackProfileFrameViewed;
|
||||
}
|
||||
|
||||
function useMaybeTrackProfileFrameViewed({skuId, openedAt, context, analyticsLocations}) { // fn#68525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8936:262, offset: 0x01c5273b, size: 146 bytes, params: 2, frame: 17
|
||||
const productFetch = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([CollectiblesCategoryStore],
|
||||
function() {
|
||||
return CollectiblesCategoryStore.getProductFetch(skuId);
|
||||
});
|
||||
const env0_5 = useRef(undefined);
|
||||
useEffect(_fun68527, [skuId, productFetch]);
|
||||
}
|
||||
|
||||
function _fun68527() { // fn#68527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8936:436, offset: 0x01c527e8, size: 348 bytes, params: 1, frame: 18
|
||||
var r5;
|
||||
var startedAt;
|
||||
var endedAt;
|
||||
var r8;
|
||||
var value2;
|
||||
var productFetchBinding;
|
||||
var value5;
|
||||
var value6;
|
||||
var moduleValue;
|
||||
var maybeTrackUserProfileUiViewed;
|
||||
var object2;
|
||||
var value8;
|
||||
if (skuId != null) {
|
||||
value2 = global.Date.now();
|
||||
if (env0_5.current == null && openedAt != null) {
|
||||
env0_5.current = value2 - openedAt;
|
||||
}
|
||||
productFetchBinding = productFetch;
|
||||
value5 = undefined;
|
||||
if ((productFetchBinding == null ? value5 : productFetch.state) === 'success') {
|
||||
value6 = environment.__proto__;
|
||||
moduleValue = require(8515) /* metro dependency 8515: UserProfileAnalyticsUtils */;
|
||||
maybeTrackUserProfileUiViewed = moduleValue.maybeTrackUserProfileUiViewed;
|
||||
object2 = {profileUi: 'PROFILE_FRAME'};
|
||||
object2.timeToInteractiveMs = env0_5.current;
|
||||
r5 = openedAt != null ? value2 - openedAt : value5;
|
||||
object2.timeToLoadMs = r5;
|
||||
startedAt = productFetch == null ? value5 : productFetch.startedAt;
|
||||
if (startedAt != null) {
|
||||
value8 = productFetch == null;
|
||||
if (value8) {
|
||||
endedAt = value5;
|
||||
r8 = value8;
|
||||
} else {
|
||||
productFetchBinding = productFetch;
|
||||
endedAt = productFetchBinding.endedAt;
|
||||
r8 = productFetchBinding;
|
||||
}
|
||||
if (endedAt != null) {
|
||||
productFetchBinding = productFetch;
|
||||
endedAt = productFetchBinding.endedAt;
|
||||
r5 = endedAt - productFetchBinding.startedAt;
|
||||
r8 = endedAt;
|
||||
} else {
|
||||
r5 = value5;
|
||||
}
|
||||
} else {
|
||||
r5 = value5;
|
||||
r8 = value2;
|
||||
}
|
||||
object2.timeToFetchMs = r5;
|
||||
object2.viewStartedAt = openedAt;
|
||||
startedAt = productFetch == null ? value5 : productFetch.startedAt;
|
||||
object2.fetchStartedAt = startedAt;
|
||||
object2.analyticsLocations = analyticsLocations;
|
||||
copyDataProperties(object2, context, r8);
|
||||
Reflect.apply(maybeTrackUserProfileUiViewed, moduleValue, [object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
/* Metro module 8500; source: modules/collectibles/profile_frames/hooks/useProfileFrame.tsx; dependencies: [5121, 5145, 5128, 566, 2] */
|
||||
function _fun67417(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8685:6, offset: 0x01c21cba, size: 152 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const collectiblesCategoryStore = importDefault(5121) /* metro dependency 5121: CollectiblesCategoryStore */;
|
||||
const collectiblesPurchaseStore = importDefault(5145) /* metro dependency 5145: CollectiblesPurchaseStore */;
|
||||
const env0_4 = (require(5128) /* metro dependency 5128: ProfileFrameRecord */).isProfileFrameRecord;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/profile_frames/hooks/useProfileFrame.tsx');
|
||||
exports.default = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[3]).useStateFromStores([CollectiblesCategoryStore, CollectiblesPurchaseStore],
|
||||
_fun67419);
|
||||
};
|
||||
}
|
||||
|
||||
function useProfileFrame(a0) { // fn#67418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8685:252, offset: 0x01c21d52, size: 74 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([CollectiblesCategoryStore,
|
||||
CollectiblesPurchaseStore], _fun67419);
|
||||
}
|
||||
|
||||
function _fun67419() { // fn#67419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8685:321, offset: 0x01c21d9c, size: 156 bytes, params: 1, frame: 17
|
||||
var value2;
|
||||
var product;
|
||||
var isProfileFrameRecordBinding;
|
||||
var value4;
|
||||
var purchase;
|
||||
if (env0_0 != null) {
|
||||
value2 = environment.__proto__;
|
||||
product = CollectiblesCategoryStore.getProduct(env0_0);
|
||||
isProfileFrameRecordBinding = isProfileFrameRecord;
|
||||
value4 = undefined;
|
||||
if (isProfileFrameRecordBinding(product == null ? value4 : product.items[0])) {
|
||||
return product.items[0];
|
||||
}
|
||||
purchase = CollectiblesPurchaseStore.getPurchase(env0_0);
|
||||
return isProfileFrameRecord(purchase == null ? value4 : purchase.items[0]) ? purchase.items[0] : value4;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user