decord/source/modules/guild_onboarding/LandingAssetUtils.tsx

32 lines
1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6826
// Function ID: 6827
2026-07-20 16:05:17 +00:00
// Name: replaceFlagIconAndFlagColor
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 6826 (replaceFlagIconAndFlagColor)
import set from "set" /* 2 */;
const result = set.fileFinishedImporting("modules/guild_onboarding/LandingAssetUtils.tsx");
2026-07-20 16:05:17 +00:00
export default function replaceFlagIconAndFlagColor(layers, p) {
2026-08-24 06:08:38 +00:00
closure_0 = layers;
closure_1 = arg2;
2026-07-20 16:05:17 +00:00
layers.assets[0].p = p;
layers = layers.layers;
const findIndexResult = layers.findIndex((nm) => "flag" === nm.nm);
2026-08-24 06:08:38 +00:00
closure_2 = findIndexResult;
2026-07-23 10:11:24 +00:00
let it = layers.layers[findIndexResult].shapes[0].it;
2026-07-20 16:05:17 +00:00
const item = it.forEach((arg0, arg1) => {
2026-07-23 10:11:24 +00:00
if ("gr" === layers.layers[closure_2].shapes[0].it[arg1].ty) {
2026-07-29 08:29:29 +00:00
const it = tmp.layers[tmp2].shapes[0].it[arg1].it;
2026-07-20 16:05:17 +00:00
if (it.findIndex((ty) => "fl" === ty.ty) >= 0) {
const items = [];
2026-07-29 08:29:29 +00:00
items[HermesBuiltin.arraySpread(closure_1.map((arg0) => arg0 / 256), 0)] = 1;
tmp.layers[tmp2].shapes[0].it[arg1].it[1].c.k = items;
2026-07-20 16:05:17 +00:00
}
}
});
return layers;
};