package com.vinfast.companion.core.utils.verifyPhone;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes15.dex */
@kotlin.Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u000f\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\n\u0018\u0000 \n2\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\u001aB\u0019\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0002¢\u0006\u0004\b\u0005\u0010\u0006J\r\u0010\b\u001a\u00020\u0007¢\u0006\u0004\b\b\u0010\tJ\r\u0010\n\u001a\u00020\u0007¢\u0006\u0004\b\n\u0010\tJ\r\u0010\u000b\u001a\u00020\u0007¢\u0006\u0004\b\u000b\u0010\tJ\u0018\u0010\u000e\u001a\u00020\r2\u0006\u0010\f\u001a\u00020\u0000H\u0096\u0002¢\u0006\u0004\b\u000e\u0010\u000fR\u0016\u0010\u0003\u001a\u00020\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u000e\u0010\u0010R\u0016\u0010\u0004\u001a\u00020\u00028\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u000b\u0010\u0010R\"\u0010\u0018\u001a\u00020\u00118\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0012\u0010\u0013\u001a\u0004\b\u0014\u0010\u0015\"\u0004\b\u0016\u0010\u0017R\u0011\u0010\u0019\u001a\u00020\u00078F¢\u0006\u0006\u001a\u0004\b\u0012\u0010\t¨\u0006\u001b"}, d2 = {"Lcom/vinfast/companion/core/utils/verifyPhone/CountryModel;", "", "Ljava/util/Locale;", "countryLocale", "displayNameToLocale", "<init>", "(Ljava/util/Locale;Ljava/util/Locale;)V", "", "e", "()Ljava/lang/String;", "d", "b", "other", "", "a", "(Lcom/vinfast/companion/core/utils/verifyPhone/CountryModel;)I", "Ljava/util/Locale;", "", "c", "Z", "f", "()Z", "g", "(Z)V", "isSelected", "itemName", "Companion", "core_release"}, k = 1, mv = {2, 2, 0}, xi = 48)
public final class CountryModel implements java.lang.Comparable<com.vinfast.companion.core.utils.verifyPhone.CountryModel> {

    /* JADX INFO: renamed from: a, reason: from kotlin metadata */
    private java.util.Locale countryLocale;

    /* JADX INFO: renamed from: b, reason: from kotlin metadata */
    private java.util.Locale displayNameToLocale;

    /* JADX INFO: renamed from: c, reason: from kotlin metadata */
    private boolean isSelected;

    public CountryModel(java.util.Locale locale, java.util.Locale locale2) {
        kotlin.jvm.internal.Intrinsics.l(locale, "countryLocale");
        kotlin.jvm.internal.Intrinsics.l(locale2, "displayNameToLocale");
        this.countryLocale = locale;
        this.displayNameToLocale = locale2;
    }

    @Override // java.lang.Comparable
    /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
    public int compareTo(com.vinfast.companion.core.utils.verifyPhone.CountryModel other) {
        kotlin.jvm.internal.Intrinsics.l(other, "other");
        java.lang.String country = this.countryLocale.getCountry();
        java.lang.String country2 = other.countryLocale.getCountry();
        kotlin.jvm.internal.Intrinsics.k(country2, "getCountry(...)");
        if (country.compareTo(country2) > 0) {
            return 1;
        }
        java.lang.String country3 = this.countryLocale.getCountry();
        java.lang.String country4 = other.countryLocale.getCountry();
        kotlin.jvm.internal.Intrinsics.k(country4, "getCountry(...)");
        return country3.compareTo(country4) < 0 ? -1 : 0;
    }

    public final java.lang.String b() {
        java.lang.String displayCountry = this.countryLocale.getDisplayCountry(this.displayNameToLocale);
        kotlin.jvm.internal.Intrinsics.k(displayCountry, "getDisplayCountry(...)");
        return displayCountry;
    }

    public final java.lang.String c() {
        return d() + " (" + b() + ")";
    }

    public final java.lang.String d() {
        return "+" + com.google.i18n.phonenumbers.PhoneNumberUtil.getInstance().getCountryCodeForRegion(this.countryLocale.getCountry());
    }

    public final java.lang.String e() {
        java.lang.String country = this.countryLocale.getCountry();
        kotlin.jvm.internal.Intrinsics.k(country, "getCountry(...)");
        return country;
    }

    /* JADX INFO: renamed from: f, reason: from getter */
    public final boolean getIsSelected() {
        return this.isSelected;
    }

    public final void g(boolean z) {
        this.isSelected = z;
    }
}
