package z7;

import android.content.Context;
import h7.l;
import java.util.ArrayList;
import java.util.List;
import kotlin.jvm.internal.k;
import kotlin.jvm.internal.t;

/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
/* loaded from: classes.dex */
public final class b {
    private static final /* synthetic */ xm.a $ENTRIES;
    private static final /* synthetic */ b[] $VALUES;
    public static final a Companion;
    private final z7.a provinceCode;
    private final int resId;
    public static final b ALBERTA = new b("ALBERTA", 0, z7.a.ALBERTA, l.f21188p);
    public static final b BRITISH_COLUMBIA = new b("BRITISH_COLUMBIA", 1, z7.a.BRITISH_COLUMBIA, l.f21223w);
    public static final b MANITOBA = new b("MANITOBA", 2, z7.a.MANITOBA, l.B0);
    public static final b NEW_BRUNSWICK = new b("NEW_BRUNSWICK", 3, z7.a.NEW_BRUNSWICK, l.B1);
    public static final b NEWFOUNDLAND_AND_LABRADOR = new b("NEWFOUNDLAND_AND_LABRADOR", 4, z7.a.NEWFOUNDLAND_AND_LABRADOR, l.C1);
    public static final b NOVA_SCOTIA = new b("NOVA_SCOTIA", 5, z7.a.NOVA_SCOTIA, l.J1);
    public static final b ONTARIO = new b("ONTARIO", 6, z7.a.ONTARIO, l.M1);
    public static final b PRINCE_EDWARD_ISLAND = new b("PRINCE_EDWARD_ISLAND", 7, z7.a.PRINCE_EDWARD_ISLAND, l.W1);
    public static final b QUEBEC = new b("QUEBEC", 8, z7.a.QUEBEC, l.Y1);
    public static final b SASKATCHEWAN = new b("SASKATCHEWAN", 9, z7.a.SASKATCHEWAN, l.f21131d2);
    public static final b NORTHWEST_TERRITORIES = new b("NORTHWEST_TERRITORIES", 10, z7.a.NORTHWEST_TERRITORIES, l.I1);
    public static final b NUNAVUT = new b("NUNAVUT", 11, z7.a.NUNAVUT, l.K1);
    public static final b YUKON = new b("YUKON", 12, z7.a.YUKON, l.K3);

    /* loaded from: classes.dex */
    public static final class a {
        private a() {
        }

        public /* synthetic */ a(k kVar) {
            this();
        }

        public final b a(z7.a aVar) {
            for (b bVar : b.values()) {
                if (bVar.getProvinceCode() == aVar) {
                    return bVar;
                }
            }
            return null;
        }

        public final List b(Context context) {
            t.g(context, "context");
            ArrayList arrayList = new ArrayList();
            for (b bVar : b.values()) {
                arrayList.add(new qa.c(context.getString(bVar.getResId()), bVar.getProvinceCode()));
            }
            return arrayList;
        }
    }

    private static final /* synthetic */ b[] $values() {
        return new b[]{ALBERTA, BRITISH_COLUMBIA, MANITOBA, NEW_BRUNSWICK, NEWFOUNDLAND_AND_LABRADOR, NOVA_SCOTIA, ONTARIO, PRINCE_EDWARD_ISLAND, QUEBEC, SASKATCHEWAN, NORTHWEST_TERRITORIES, NUNAVUT, YUKON};
    }

    static {
        b[] $values = $values();
        $VALUES = $values;
        $ENTRIES = xm.b.a($values);
        Companion = new a(null);
    }

    private b(String str, int i10, z7.a aVar, int i11) {
        this.provinceCode = aVar;
        this.resId = i11;
    }

    public static xm.a getEntries() {
        return $ENTRIES;
    }

    public static b valueOf(String str) {
        return (b) Enum.valueOf(b.class, str);
    }

    public static b[] values() {
        return (b[]) $VALUES.clone();
    }

    public final z7.a getProvinceCode() {
        return this.provinceCode;
    }

    public final int getResId() {
        return this.resId;
    }
}
