2026-10-13 12:43:34 +00:00
|
|
|
// Module ID: 15256
|
|
|
|
|
// Function ID: 15257
|
2026-10-08 09:57:35 +00:00
|
|
|
// Name: UserProfileEditingAccessibilityUtils
|
2026-10-13 12:43:34 +00:00
|
|
|
// Dependencies: [1126, 15192, 10266, 2958, 6679, 2]
|
2026-10-09 10:00:15 +00:00
|
|
|
// Exports: getAvatarAccessibleValue, getBannerAccessibleValue, getDisplayNameStyleAccessibleValue
|
2026-10-08 09:57:35 +00:00
|
|
|
|
2026-10-13 12:43:34 +00:00
|
|
|
// Module 15256 (UserProfileEditingAccessibilityUtils)
|
2026-10-08 09:57:35 +00:00
|
|
|
import intl5 from "intl" /* 1126 */;
|
2026-10-12 06:59:38 +00:00
|
|
|
import ProfilePendingImageTypes from "ProfilePendingImageTypes" /* 6679 */;
|
|
|
|
|
import useDisplayNameStylesEffectConfigs from "useDisplayNameStylesEffectConfigs" /* 10266 */;
|
2026-10-13 12:43:34 +00:00
|
|
|
import getDisplayNameStylesFontNameDefault from "getDisplayNameStylesFontName" /* 15192 */;
|
2026-10-08 09:57:35 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
const result = size.fileFinishedImporting("modules/user_profile/UserProfileEditingAccessibilityUtils.tsx");
|
|
|
|
|
|
2026-10-10 08:08:14 +00:00
|
|
|
export const getDisplayNameStyleAccessibleValue = function getDisplayNameStyleAccessibleValue(displayNameStyles) {
|
|
|
|
|
if (null == displayNameStyles) {
|
2026-10-08 09:57:35 +00:00
|
|
|
const intl2 = intl5.intl;
|
|
|
|
|
return intl2.string(intl5.t["3Xph0/"]);
|
|
|
|
|
} else {
|
|
|
|
|
const intl3 = intl5.intl;
|
2026-10-10 08:08:14 +00:00
|
|
|
const stringResult = intl3.string(getDisplayNameStylesFontNameDefault(displayNameStyles.fontId));
|
2026-10-08 09:57:35 +00:00
|
|
|
const intl4 = intl5.intl;
|
|
|
|
|
const string = intl4.string;
|
2026-10-10 08:08:14 +00:00
|
|
|
let OpWJ3f = useDisplayNameStylesEffectConfigs.DISPLAY_NAME_STYLES_EFFECT_NAMES[displayNameStyles.effectId];
|
2026-10-08 09:57:35 +00:00
|
|
|
const tmp7 = importDefault;
|
|
|
|
|
if (OpWJ3f == null) {
|
2026-10-10 08:08:14 +00:00
|
|
|
OpWJ3f = tmp7(2958).OpWJ3f;
|
2026-10-08 09:57:35 +00:00
|
|
|
}
|
2026-10-10 08:08:14 +00:00
|
|
|
const colors = displayNameStyles.colors;
|
2026-10-08 09:57:35 +00:00
|
|
|
const stringResult1 = string(OpWJ3f);
|
|
|
|
|
const mapped = colors.map((item) => {
|
|
|
|
|
const str = item.toString(16);
|
|
|
|
|
return "#" + str.padStart(6, "0");
|
|
|
|
|
});
|
|
|
|
|
let str = ", ";
|
|
|
|
|
const joined = mapped.join(", ");
|
|
|
|
|
const intl = tmp5(1126).intl;
|
|
|
|
|
const obj = { fontName: stringResult, effectName: stringResult1, colors: joined };
|
|
|
|
|
return intl.formatToPlainString(intl5.t.Igwax6, obj);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
export const getBannerAccessibleValue = function getBannerAccessibleValue(bannerChange, currentProfileBanner) {
|
|
|
|
|
let description;
|
|
|
|
|
if (null !== bannerChange) {
|
|
|
|
|
if (undefined === bannerChange) {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
if (undefined === bannerChange) {
|
|
|
|
|
const intl = intl5.intl;
|
|
|
|
|
description = intl.string(intl5.t.keN7ib);
|
|
|
|
|
} else {
|
|
|
|
|
description = bannerChange.description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const intl2 = intl5.intl;
|
|
|
|
|
description = intl2.string(intl5.t["3Xph0/"]);
|
|
|
|
|
};
|
2026-10-09 10:00:15 +00:00
|
|
|
export const getAvatarAccessibleValue = function getAvatarAccessibleValue(avatarChange, avatar) {
|
|
|
|
|
let description;
|
|
|
|
|
if (null !== avatarChange) {
|
|
|
|
|
if (undefined === avatarChange) {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
if (undefined === avatarChange) {
|
|
|
|
|
const intl2 = intl5.intl;
|
|
|
|
|
description = intl2.string(intl5.t["16GpW/"]);
|
|
|
|
|
} else {
|
|
|
|
|
if (avatarChange.assetOrigin === ProfilePendingImageTypes.AssetOriginTypes.ARCHIVED_ASSET) {
|
|
|
|
|
description = avatarChange.originalAsset.description;
|
|
|
|
|
} else {
|
|
|
|
|
description = avatarChange.description;
|
|
|
|
|
}
|
|
|
|
|
if (description == null) {
|
|
|
|
|
const intl = tmp2(1126).intl;
|
|
|
|
|
description = intl.string(tmp2(1126).t.cqdtrR);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const intl3 = intl5.intl;
|
|
|
|
|
description = intl3.string(intl5.t["3Xph0/"]);
|
|
|
|
|
};
|