package c.a.z.k0; import android.content.Context; import android.graphics.Typeface; import android.text.style.ForegroundColorSpan; import com.discord.i18n.Hook; import com.discord.utilities.color.ColorCompat; import com.discord.utilities.font.FontUtils; import com.discord.utilities.spans.TypefaceSpanCompat; import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; /* compiled from: DiscoveryStageCardTopHatView.kt */ public final class a extends o implements Function1 { public final /* synthetic */ b this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(b bVar) { super(1); this.this$0 = bVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public Unit invoke(Hook hook) { Hook hook2 = hook; m.checkNotNullParameter(hook2, "$receiver"); FontUtils fontUtils = FontUtils.INSTANCE; Context context = this.this$0.this$0.getContext(); m.checkNotNullExpressionValue(context, "context"); Typeface themedFont = fontUtils.getThemedFont(context, 2130969326); if (themedFont != null) { hook2.a.add(new TypefaceSpanCompat(themedFont)); } hook2.a.add(new ForegroundColorSpan(ColorCompat.getThemedColor(this.this$0.this$0.getContext(), 2130969872))); return Unit.a; } }