75 lines
7.7 KiB
Java
75 lines
7.7 KiB
Java
package com.discord.utilities.channel;
|
|
|
|
import android.content.Context;
|
|
import androidx.annotation.StringRes;
|
|
import c.a.d.f;
|
|
import c.a.l.b;
|
|
import com.discord.api.role.GuildRole;
|
|
import d0.o;
|
|
import d0.t.h0;
|
|
import d0.z.d.m;
|
|
import java.util.Map;
|
|
/* compiled from: ChannelPermissionUtils.kt */
|
|
public final class ChannelPermissionUtilsKt {
|
|
public static final Map<Integer, PermissionLabelOverrides> getCategoryLabels(Context context) {
|
|
m.checkNotNullParameter(context, "context");
|
|
String string = context.getString(2131892890);
|
|
String string2 = context.getString(2131892892);
|
|
m.checkNotNullExpressionValue(string2, "context.getString(R.stri…nel_description_category)");
|
|
String string3 = context.getString(2131890909);
|
|
String string4 = context.getString(2131892797);
|
|
m.checkNotNullExpressionValue(string4, "context.getString(R.stri…nel_description_category)");
|
|
String string5 = context.getString(2131892811);
|
|
m.checkNotNullExpressionValue(string5, "context.getString(R.stri…les_description_category)");
|
|
String string6 = context.getString(2131892819);
|
|
m.checkNotNullExpressionValue(string6, "context.getString(R.stri…oks_description_category)");
|
|
String string7 = context.getString(2131892857);
|
|
m.checkNotNullExpressionValue(string7, "context.getString(R.stri…ges_description_category)");
|
|
f fVar = f.a;
|
|
Object[] objArr = {fVar.a(360032008192L, null)};
|
|
String string8 = context.getString(2131892786);
|
|
m.checkNotNullExpressionValue(string8, "context.getString(R.stri…ite_description_category)");
|
|
String string9 = context.getString(2131892793);
|
|
m.checkNotNullExpressionValue(string9, "context.getString(R.stri…nks_description_category)");
|
|
String string10 = context.getString(2131892773);
|
|
m.checkNotNullExpressionValue(string10, "context.getString(R.stri…les_description_category)");
|
|
String string11 = context.getString(2131892769);
|
|
m.checkNotNullExpressionValue(string11, "context.getString(R.stri…ons_description_category)");
|
|
String string12 = context.getString(2131892877);
|
|
m.checkNotNullExpressionValue(string12, "context.getString(R.stri…jis_description_category)");
|
|
String string13 = context.getString(2131892822);
|
|
m.checkNotNullExpressionValue(string13, "context.getString(R.stri…one_description_category)");
|
|
String string14 = context.getString(2131892807);
|
|
m.checkNotNullExpressionValue(string14, "context.getString(R.stri…ges_description_category)");
|
|
Object[] objArr2 = {fVar.a(360032008192L, null)};
|
|
String string15 = context.getString(2131892840);
|
|
m.checkNotNullExpressionValue(string15, "context.getString(R.stri…ory_description_category)");
|
|
String string16 = context.getString(2131892861);
|
|
m.checkNotNullExpressionValue(string16, "context.getString(R.stri…ges_description_category)");
|
|
String string17 = context.getString(2131892779);
|
|
m.checkNotNullExpressionValue(string17, "context.getString(R.stri…ect_description_category)");
|
|
String string18 = context.getString(2131892780);
|
|
String string19 = context.getString(2131892784);
|
|
String string20 = context.getString(2131892864);
|
|
m.checkNotNullExpressionValue(string20, "context.getString(R.stri…eak_description_category)");
|
|
String string21 = context.getString(2131892868);
|
|
m.checkNotNullExpressionValue(string21, "context.getString(R.stri…eam_description_category)");
|
|
String string22 = context.getString(2131892886);
|
|
m.checkNotNullExpressionValue(string22, "context.getString(R.stri…vad_description_category)");
|
|
CharSequence g = b.g(context, 2131892835, new Object[]{b.g(context, 2131890739, new Object[0], null, 4)}, null, 4);
|
|
Object[] objArr3 = {b.g(context, 2131890739, new Object[0], null, 4)};
|
|
String string23 = context.getString(2131892790);
|
|
m.checkNotNullExpressionValue(string23, "context.getString(R.stri…ers_description_category)");
|
|
String string24 = context.getString(2131892825);
|
|
m.checkNotNullExpressionValue(string24, "context.getString(R.stri…ers_description_category)");
|
|
String string25 = context.getString(2131892843);
|
|
m.checkNotNullExpressionValue(string25, "context.getString(R.stri…eak_description_category)");
|
|
return h0.hashMapOf(o.to(2131362297, new PermissionLabelOverrides(string2, string, null, null, context.getString(2131892895), context.getString(2131892896), null, context.getString(2131892893), null, 332, null)), o.to(2131362286, new PermissionLabelOverrides(string4, string3, context.getString(2131892800), context.getString(2131892798), null, null, null, null, null, 496, null)), o.to(2131362287, new PermissionLabelOverrides(string5, null, null, context.getString(2131892813), null, null, null, null, null, 502, null)), o.to(2131362288, new PermissionLabelOverrides(string6, null, null, null, null, null, null, null, null, 510, null)), o.to(2131362298, new PermissionLabelOverrides(string7, null, null, null, null, null, null, null, b.g(context, 2131892856, objArr, null, 4), 254, null)), o.to(2131362285, new PermissionLabelOverrides(string8, null, context.getString(2131892788), null, null, null, null, null, null, 506, null)), o.to(2131362293, new PermissionLabelOverrides(string9, null, null, null, null, null, null, null, null, 510, null)), o.to(2131362292, new PermissionLabelOverrides(string10, null, null, null, null, null, null, null, null, 510, null)), o.to(2131362291, new PermissionLabelOverrides(string11, null, null, null, null, null, null, null, null, 510, null)), o.to(2131362300, new PermissionLabelOverrides(string12, null, null, null, null, null, null, null, null, 510, null)), o.to(2131362295, new PermissionLabelOverrides(string13, null, null, null, null, null, null, null, null, 510, null)), o.to(2131362294, new PermissionLabelOverrides(string14, null, null, null, null, null, null, null, b.g(context, 2131892806, objArr2, null, 4), 254, null)), o.to(2131362296, new PermissionLabelOverrides(string15, null, null, null, null, null, null, null, null, 510, null)), o.to(2131362299, new PermissionLabelOverrides(string16, null, null, null, null, null, null, null, null, 510, null)), o.to(2131362302, new PermissionLabelOverrides(string17, null, null, context.getString(2131892781), null, string19, context.getString(2131892782), string18, null, 278, null)), o.to(2131362307, new PermissionLabelOverrides(string20, null, null, context.getString(2131892865), null, null, null, null, null, 502, null)), o.to(2131362309, new PermissionLabelOverrides(string21, null, null, null, null, null, null, null, null, 510, null)), o.to(2131362308, new PermissionLabelOverrides(string22, null, null, context.getString(2131892887), null, null, null, null, null, 502, null)), o.to(2131362306, new PermissionLabelOverrides(g, null, null, null, null, null, null, b.g(context, 2131892835, objArr3, null, 4), null, 382, null)), o.to(2131362305, new PermissionLabelOverrides(b.g(context, 2131892829, new Object[0], null, 4), null, null, b.g(context, 2131892830, new Object[0], null, 4), null, null, null, null, null, 502, null)), o.to(2131362303, new PermissionLabelOverrides(string23, null, null, null, null, null, null, null, null, 510, null)), o.to(2131362304, new PermissionLabelOverrides(string24, null, null, context.getString(2131892826), null, null, null, null, null, 502, null)), o.to(2131362290, new PermissionLabelOverrides(string25, null, null, null, null, null, null, null, null, 510, null)));
|
|
}
|
|
|
|
@StringRes
|
|
public static final int getChannelPermissionOwnerRoleLabel(GuildRole guildRole) {
|
|
m.checkNotNullParameter(guildRole, "role");
|
|
return (guildRole.g() & 8) == 8 ? 2131892391 : 2131892394;
|
|
}
|
|
}
|