package com.revenuecat.purchases.ui.revenuecatui.extensions;

import com.revenuecat.purchases.models.Period;
import com.revenuecat.purchases.models.Price;
import com.revenuecat.purchases.ui.revenuecatui.data.processed.VariableDataProviderKt;
import java.util.Locale;
import kotlin.jvm.internal.o;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class PriceExtensionsKt {
    public static final /* synthetic */ String localized(Price price, Locale locale, boolean z6) {
        o.h(price, "<this>");
        o.h(locale, "locale");
        return (z6 && VariableDataProviderKt.endsIn00Cents(price)) ? VariableDataProviderKt.getTruncatedFormatted(price, locale) : price.getFormatted();
    }

    public static final /* synthetic */ String localizedPerPeriod(Price price, Period period, Locale locale, boolean z6) {
        o.h(price, "<this>");
        o.h(period, "period");
        o.h(locale, "locale");
        return localized(price, locale, z6) + '/' + PeriodExtensionsKt.localizedAbbreviatedPeriod(period, locale);
    }
}
