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

import J4.a;
import com.revenuecat.purchases.paywalls.components.common.VariableLocalizationKey;
import com.revenuecat.purchases.ui.revenuecatui.components.ktx.LocalizationKt;
import com.revenuecat.purchases.ui.revenuecatui.helpers.NonEmptyMap;
import kotlin.jvm.internal.p;

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

    @Override // J4.a
    public final NonEmptyMap<VariableLocalizationKey, String> invoke() {
        NonEmptyMap variableLocalizations = this.this$0.style.getVariableLocalizations();
        NonEmptyMap<VariableLocalizationKey, String> nonEmptyMap = (NonEmptyMap) LocalizationKt.m683getBestMatch64pKzr8(variableLocalizations, this.this$0.m806getLocaleIduqtKvyA());
        return nonEmptyMap == null ? (NonEmptyMap) variableLocalizations.getEntry().getValue() : nonEmptyMap;
    }
}
