229 lines
11 KiB
TypeScript
229 lines
11 KiB
TypeScript
// Module ID: 9328
|
|
// Function ID: 9329
|
|
// Name: items
|
|
// Dependencies: [9329, 9330, 1114, 9331, 9332, 9333, 9334, 9335, 9336, 9337, 9338, 9339, 9340, 9341, 9342, 9343, 9344, 9345, 9346, 9347, 9348, 9349, 9350, 9351, 9352, 9353, 9354, 2]
|
|
// Exports: getDefaultIcon, getIconById, getIcons, getLimitedAlternateIcons, getOfficialAlternateIcons, isIconExpired
|
|
|
|
// Module 9328 (items)
|
|
import set from "set" /* 2 */;
|
|
import getSystemLocale from "getSystemLocale" /* 1114 */;
|
|
import FreemiumAppIconIds from "FreemiumAppIconIds" /* 9329 */;
|
|
import registerAssetDefault from "registerAsset" /* 9330 */;
|
|
import registerAssetDefault2 from "registerAsset" /* 9331 */;
|
|
import registerAssetDefault3 from "registerAsset" /* 9332 */;
|
|
import registerAssetDefault4 from "registerAsset" /* 9333 */;
|
|
import registerAssetDefault5 from "registerAsset" /* 9334 */;
|
|
import registerAssetDefault6 from "registerAsset" /* 9335 */;
|
|
import registerAssetDefault7 from "registerAsset" /* 9336 */;
|
|
import registerAssetDefault8 from "registerAsset" /* 9337 */;
|
|
import registerAssetDefault9 from "registerAsset" /* 9338 */;
|
|
import registerAssetDefault10 from "registerAsset" /* 9339 */;
|
|
import registerAssetDefault11 from "registerAsset" /* 9340 */;
|
|
import registerAssetDefault12 from "registerAsset" /* 9341 */;
|
|
import registerAssetDefault13 from "registerAsset" /* 9342 */;
|
|
import registerAssetDefault14 from "registerAsset" /* 9343 */;
|
|
import registerAssetDefault15 from "registerAsset" /* 9344 */;
|
|
import registerAssetDefault16 from "registerAsset" /* 9345 */;
|
|
import registerAssetDefault17 from "registerAsset" /* 9346 */;
|
|
import registerAssetDefault18 from "registerAsset" /* 9347 */;
|
|
import registerAssetDefault19 from "registerAsset" /* 9348 */;
|
|
import registerAssetDefault20 from "registerAsset" /* 9349 */;
|
|
import registerAssetDefault21 from "registerAsset" /* 9350 */;
|
|
import registerAssetDefault22 from "registerAsset" /* 9351 */;
|
|
import registerAssetDefault23 from "registerAsset" /* 9352 */;
|
|
import registerAssetDefault24 from "registerAsset" /* 9353 */;
|
|
import registerAssetDefault25 from "registerAsset" /* 9354 */;
|
|
|
|
let obj = { id: FreemiumAppIconIds.PremiumAppIconIds.IN_RAINBOWS, iconSource: registerAssetDefault2, isPremium: true, name: null };
|
|
let intl = getSystemLocale.intl;
|
|
obj[3] = intl.string(getSystemLocale.t.yxJB9E);
|
|
let items = [obj, , , , , , , , , , , , , , , , , , , , , , , ];
|
|
obj = { id: FreemiumAppIconIds.PremiumAppIconIds.MIDNIGHT_PRISM, iconSource: registerAssetDefault3, isPremium: true, name: null };
|
|
let intl2 = getSystemLocale.intl;
|
|
obj[3] = intl2.string(getSystemLocale.t.nshUZZ);
|
|
items[1] = obj;
|
|
obj = { id: FreemiumAppIconIds.PremiumAppIconIds.COLOR_WAVE, iconSource: registerAssetDefault4, isPremium: true, name: null };
|
|
const intl3 = getSystemLocale.intl;
|
|
obj[3] = intl3.string(getSystemLocale.t.MWRYqh);
|
|
items[2] = obj;
|
|
const obj1 = { id: FreemiumAppIconIds.PremiumAppIconIds.BLURPLE_TWILIGHT, iconSource: registerAssetDefault5, isPremium: true, name: null };
|
|
const intl4 = getSystemLocale.intl;
|
|
obj1[3] = intl4.string(getSystemLocale.t.Mfoe3p);
|
|
items[3] = obj1;
|
|
const obj2 = { id: FreemiumAppIconIds.PremiumAppIconIds.BRAND_INVERTED, iconSource: registerAssetDefault6, isPremium: true, name: null };
|
|
const intl5 = getSystemLocale.intl;
|
|
obj2[3] = intl5.string(getSystemLocale.t.h6UXSt);
|
|
items[4] = obj2;
|
|
const obj3 = { id: FreemiumAppIconIds.PremiumAppIconIds.BRAND_DARK, iconSource: registerAssetDefault7, name: null, isPremium: true };
|
|
const intl6 = getSystemLocale.intl;
|
|
obj3[2] = intl6.string(getSystemLocale.t.gZEUBl);
|
|
items[5] = obj3;
|
|
const obj4 = { id: FreemiumAppIconIds.PremiumAppIconIds.MATTE_DARK, iconSource: registerAssetDefault8, isPremium: true, name: null };
|
|
const intl7 = getSystemLocale.intl;
|
|
obj4[3] = intl7.string(getSystemLocale.t.NkshQt);
|
|
items[6] = obj4;
|
|
const obj5 = { id: FreemiumAppIconIds.PremiumAppIconIds.MATTE_LIGHT, iconSource: registerAssetDefault9, name: null, isPremium: true };
|
|
const intl8 = getSystemLocale.intl;
|
|
obj5[2] = intl8.string(getSystemLocale.t.G2W302);
|
|
items[7] = obj5;
|
|
const obj6 = { id: FreemiumAppIconIds.PremiumAppIconIds.PASTEL, iconSource: registerAssetDefault10, isPremium: true, name: null };
|
|
const intl9 = getSystemLocale.intl;
|
|
obj6[3] = intl9.string(getSystemLocale.t.mTSkLT);
|
|
items[8] = obj6;
|
|
const obj7 = { id: FreemiumAppIconIds.PremiumAppIconIds.PIRATE, iconSource: registerAssetDefault11, isPremium: true, name: null };
|
|
const intl10 = getSystemLocale.intl;
|
|
obj7[3] = intl10.string(getSystemLocale.t["EgWTY+"]);
|
|
items[9] = obj7;
|
|
const obj8 = { id: FreemiumAppIconIds.PremiumAppIconIds.CAMO, iconSource: registerAssetDefault12, isPremium: true, name: null };
|
|
const intl11 = getSystemLocale.intl;
|
|
obj8[3] = intl11.string(getSystemLocale.t.RSKXOK);
|
|
items[10] = obj8;
|
|
const obj9 = { id: FreemiumAppIconIds.PremiumAppIconIds.SUNSET, iconSource: registerAssetDefault13, isPremium: true, name: null };
|
|
const intl12 = getSystemLocale.intl;
|
|
obj9[3] = intl12.string(getSystemLocale.t.ixdjPB);
|
|
items[11] = obj9;
|
|
const obj10 = { id: FreemiumAppIconIds.PremiumAppIconIds.GALAXY, iconSource: registerAssetDefault14, isPremium: true, name: null };
|
|
const intl13 = getSystemLocale.intl;
|
|
obj10[3] = intl13.string(getSystemLocale.t.cb78Ls);
|
|
items[12] = obj10;
|
|
const obj11 = { id: FreemiumAppIconIds.PremiumAppIconIds.Y2K, iconSource: registerAssetDefault15, isPremium: true, name: null };
|
|
const intl14 = getSystemLocale.intl;
|
|
obj11[3] = intl14.string(getSystemLocale.t["s+KoXO"]);
|
|
items[13] = obj11;
|
|
const obj12 = { id: FreemiumAppIconIds.PremiumAppIconIds.CHERRY_BLOSSOM, iconSource: registerAssetDefault16, isPremium: true, name: null };
|
|
const intl15 = getSystemLocale.intl;
|
|
obj12[3] = intl15.string(getSystemLocale.t["ta/5RB"]);
|
|
items[14] = obj12;
|
|
const obj13 = { id: FreemiumAppIconIds.PremiumAppIconIds.BEANIE, iconSource: registerAssetDefault17, isPremium: true, name: null };
|
|
const intl16 = getSystemLocale.intl;
|
|
obj13[3] = intl16.string(getSystemLocale.t.IoLViw);
|
|
items[15] = obj13;
|
|
const obj14 = { id: FreemiumAppIconIds.PremiumAppIconIds.GAMING, iconSource: registerAssetDefault18, isPremium: true, name: null };
|
|
const intl17 = getSystemLocale.intl;
|
|
obj14[3] = intl17.string(getSystemLocale.t["2Tf+c4"]);
|
|
items[16] = obj14;
|
|
const obj15 = { id: FreemiumAppIconIds.PremiumAppIconIds.CIRCUIT, iconSource: registerAssetDefault19, isPremium: true, name: null };
|
|
const intl18 = getSystemLocale.intl;
|
|
obj15[3] = intl18.string(getSystemLocale.t.dUpxKb);
|
|
items[17] = obj15;
|
|
const obj16 = { id: FreemiumAppIconIds.PremiumAppIconIds.HOLO_WAVES, iconSource: registerAssetDefault20, isPremium: true, name: null };
|
|
const intl19 = getSystemLocale.intl;
|
|
obj16[3] = intl19.string(getSystemLocale.t["9mg7g1"]);
|
|
items[18] = obj16;
|
|
const obj17 = { id: FreemiumAppIconIds.PremiumAppIconIds.BLUSH, iconSource: registerAssetDefault21, isPremium: true, name: null };
|
|
const intl20 = getSystemLocale.intl;
|
|
obj17[3] = intl20.string(getSystemLocale.t.nmd90m);
|
|
items[19] = obj17;
|
|
const obj18 = { id: FreemiumAppIconIds.PremiumAppIconIds.ANGRY, iconSource: registerAssetDefault22, isPremium: true, name: null };
|
|
const intl21 = getSystemLocale.intl;
|
|
obj18[3] = intl21.string(getSystemLocale.t["9PUXpM"]);
|
|
items[20] = obj18;
|
|
const obj19 = { id: FreemiumAppIconIds.PremiumAppIconIds.MANGA, iconSource: registerAssetDefault23, isPremium: true, name: null };
|
|
const intl22 = getSystemLocale.intl;
|
|
obj19[3] = intl22.string(getSystemLocale.t.hGBbF8);
|
|
items[21] = obj19;
|
|
const obj20 = { id: FreemiumAppIconIds.PremiumAppIconIds.CONTROLLER, iconSource: registerAssetDefault24, isPremium: true, name: null };
|
|
const intl23 = getSystemLocale.intl;
|
|
obj20[3] = intl23.string(getSystemLocale.t["4QM2U1"]);
|
|
items[22] = obj20;
|
|
const obj21 = { id: FreemiumAppIconIds.PremiumAppIconIds.MUSHROOM, iconSource: registerAssetDefault25, isPremium: true, name: null };
|
|
const intl24 = getSystemLocale.intl;
|
|
obj21[3] = intl24.string(getSystemLocale.t.gnLLSK);
|
|
items[23] = obj21;
|
|
let closure_4 = [];
|
|
const result = set.fileFinishedImporting("modules/app_icons/native/AppIconConstants.tsx");
|
|
|
|
export const getDefaultIcon = function getDefaultIcon() {
|
|
const obj = { id: FreemiumAppIconIds.FreemiumAppIconIds.DEFAULT, iconSource: registerAssetDefault, name: null, isPremium: false };
|
|
const intl = getSystemLocale.intl;
|
|
obj[2] = intl.string(getSystemLocale.t.ANxkLy);
|
|
return obj;
|
|
};
|
|
export const isIconExpired = function isIconExpired(expiresAt) {
|
|
let tmp = null != expiresAt.expiresAt;
|
|
if (tmp) {
|
|
const _Date = Date;
|
|
tmp = Date.now() > expiresAt.expiresAt;
|
|
}
|
|
return tmp;
|
|
};
|
|
export const getOfficialAlternateIcons = function getOfficialAlternateIcons() {
|
|
return items.filter((expiresAt) => {
|
|
let tmp = null != expiresAt.expiresAt;
|
|
if (tmp) {
|
|
const _Date = Date;
|
|
tmp = Date.now() > expiresAt.expiresAt;
|
|
}
|
|
return !tmp;
|
|
});
|
|
};
|
|
export const getLimitedAlternateIcons = function getLimitedAlternateIcons() {
|
|
return closure_4.filter((expiresAt) => {
|
|
let tmp = null != expiresAt.expiresAt;
|
|
if (tmp) {
|
|
const _Date = Date;
|
|
tmp = Date.now() > expiresAt.expiresAt;
|
|
}
|
|
return !tmp;
|
|
});
|
|
};
|
|
export const getIcons = function getIcons() {
|
|
const obj = { id: FreemiumAppIconIds.FreemiumAppIconIds.DEFAULT, iconSource: registerAssetDefault, name: null, isPremium: false };
|
|
const intl = getSystemLocale.intl;
|
|
obj[2] = intl.string(getSystemLocale.t.ANxkLy);
|
|
items = [
|
|
obj,
|
|
...items.filter((expiresAt) => {
|
|
let tmp = null != expiresAt.expiresAt;
|
|
if (tmp) {
|
|
const _Date = Date;
|
|
tmp = Date.now() > expiresAt.expiresAt;
|
|
}
|
|
return !tmp;
|
|
}),
|
|
...closure_4.filter((expiresAt) => {
|
|
let tmp = null != expiresAt.expiresAt;
|
|
if (tmp) {
|
|
const _Date = Date;
|
|
tmp = Date.now() > expiresAt.expiresAt;
|
|
}
|
|
return !tmp;
|
|
})
|
|
];
|
|
return items;
|
|
};
|
|
export const getIconById = function getIconById(currentAppIcon) {
|
|
const _require = currentAppIcon;
|
|
let obj = { id: _require(9329).FreemiumAppIconIds.DEFAULT, iconSource: registerAssetDefault, name: null, isPremium: false };
|
|
const intl = _require(1114).intl;
|
|
obj[2] = intl.string(_require(1114).t.ANxkLy);
|
|
items = [
|
|
obj,
|
|
...items.filter((expiresAt) => {
|
|
let tmp = null != expiresAt.expiresAt;
|
|
if (tmp) {
|
|
const _Date = Date;
|
|
tmp = Date.now() > expiresAt.expiresAt;
|
|
}
|
|
return !tmp;
|
|
}),
|
|
...closure_4.filter((expiresAt) => {
|
|
let tmp = null != expiresAt.expiresAt;
|
|
if (tmp) {
|
|
const _Date = Date;
|
|
tmp = Date.now() > expiresAt.expiresAt;
|
|
}
|
|
return !tmp;
|
|
})
|
|
];
|
|
let found = items.find((id) => id.id === closure_0);
|
|
if (null == found) {
|
|
obj = { id: null, iconSource: null, name: null, isPremium: false };
|
|
obj[0] = tmp(9329).FreemiumAppIconIds.DEFAULT;
|
|
obj[1] = registerAssetDefault;
|
|
const intl2 = tmp(1114).intl;
|
|
obj[2] = intl2.string(tmp(1114).t.ANxkLy);
|
|
found = obj;
|
|
}
|
|
return found;
|
|
};
|