56 lines
2.8 KiB
TypeScript
56 lines
2.8 KiB
TypeScript
/* Metro module 12714; source: modules/collectibles/utils/WideBannerDismissibleContentVersion.tsx; dependencies: [5175, 663, 5161, 2] */
|
|
import CollectiblesShopHomeStore from '../CollectiblesShopHomeStore.tsx'; /* Metro dependency 5175 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as CollectiblesShopConstantsModule from '../CollectiblesShopConstants.tsx'; /* Metro dependency 663 */
|
|
|
|
function _fun97372(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12904:6, offset: 0x0217e235, size: 136 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/collectibles/utils/WideBannerDismissibleContentVersion.tsx');
|
|
exports.getWideBannerDismissibleContentVersion = getWideBannerDismissibleContentVersion;
|
|
function getWideBannerDismissibleContentVersion() { // fn#97373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12904:276, offset: 0x0217e2bd, size: 139 bytes, params: 1, frame: 18
|
|
var r3;
|
|
var dismissibleContentVersion;
|
|
var property;
|
|
var shopBlocks;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
const HOME = CollectibleShopTab.HOME;
|
|
const items2 = [HOME];
|
|
const ORBS = CollectibleShopTab.ORBS;
|
|
items2[1] = ORBS;
|
|
const CATALOG = CollectibleShopTab.CATALOG;
|
|
items2[2] = CATALOG;
|
|
let length = items2.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
r3 = value2;
|
|
while (true) {
|
|
property = items2[r3];
|
|
shopBlocks = CollectiblesShopHomeStore.getShopBlocks(property);
|
|
value4 = shopBlocks.find(function({type}) {
|
|
return type === require(dependencyMap[2]).ShopBlockType.WIDE_BANNER;
|
|
});
|
|
value5 = undefined;
|
|
dismissibleContentVersion = value4 == null ? value5 : value4.dismissibleContentVersion;
|
|
if (dismissibleContentVersion != null) {
|
|
return value4.dismissibleContentVersion;
|
|
}
|
|
value6 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
length = items2.length;
|
|
if (value6 < length) {
|
|
r3 = value6;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun97372, 12714, [5175, 663, 5161, 2]) /* metro module 12714, dependencies: [5175, 663, 5161, 2] */;
|