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

import J4.a;
import com.revenuecat.purchases.paywalls.components.PartialTextComponent;
import com.revenuecat.purchases.paywalls.components.properties.HorizontalAlignment;
import com.revenuecat.purchases.ui.revenuecatui.components.LocalizedTextPartial;
import com.revenuecat.purchases.ui.revenuecatui.components.ktx.AlignmentKt;
import f1.C2023k;
import kotlin.jvm.internal.p;

/* JADX INFO: loaded from: classes3.dex */
public final class TextComponentState$textAlign$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$textAlign$2(TextComponentState textComponentState) {
        super(0);
        this.this$0 = textComponentState;
    }

    @Override // J4.a
    /* JADX INFO: renamed from: invoke-buA522U, reason: not valid java name and merged with bridge method [inline-methods] */
    public final C2023k invoke() {
        PartialTextComponent partial;
        HorizontalAlignment horizontalAlignment;
        LocalizedTextPartial presentedPartial = this.this$0.getPresentedPartial();
        return (presentedPartial == null || (partial = presentedPartial.getPartial()) == null || (horizontalAlignment = partial.getHorizontalAlignment()) == null) ? this.this$0.style.m799getTextAlignbuA522U() : new C2023k(AlignmentKt.toTextAlign(horizontalAlignment));
    }
}
