package com.revenuecat.purchases.ui.revenuecatui.components.text;

import J4.a;
import X0.AbstractC0808v;
import X0.I;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.FontSpec;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.FontSpecKt;
import kotlin.jvm.internal.p;

/* JADX INFO: loaded from: classes3.dex */
public final class TextComponentState$fontFamily$2 extends p implements a {
    final /* synthetic */ TextComponentState this$0;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public TextComponentState$fontFamily$2(TextComponentState textComponentState) {
        super(0);
        this.this$0 = textComponentState;
    }

    @Override // J4.a
    public final AbstractC0808v invoke() {
        FontSpec fontSpec = this.this$0.getFontSpec();
        if (fontSpec == null) {
            return null;
        }
        I fontWeight = this.this$0.getFontWeight();
        if (fontWeight == null) {
            I i6 = I.f8440b;
            fontWeight = I.f8446k;
        }
        return FontSpecKt.m745resolveRetOiIg(fontSpec, fontWeight, 0);
    }
}
