package ca.canadapost.core.data.consumerhome.model;

import km.f;
import km.v;
import kotlin.Metadata;
import kotlin.jvm.internal.t;

@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0004\b\u0000\u0018\u0000 \t2\u00020\u0001:\u0001\tB\u0005¢\u0006\u0002\u0010\u0002J\u0014\u0010\u0003\u001a\u00020\u00042\n\b\u0001\u0010\u0005\u001a\u0004\u0018\u00010\u0006H\u0007J\u0012\u0010\u0007\u001a\u0004\u0018\u00010\u00062\u0006\u0010\b\u001a\u00020\u0004H\u0007¨\u0006\n"}, d2 = {"Lca/canadapost/core/data/consumerhome/model/HomeTrackPinStatusAdapter;", "", "()V", "fromJson", "Lca/canadapost/core/data/consumerhome/model/HomeTrackPinStatus;", "status", "", "toJson", "homeTrackPinStatus", "Companion", "core_data_productionRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class HomeTrackPinStatusAdapter {
    private static final String AVAILABLE_FOR_PICKUP_BY = "Available_for_pickup_by";
    private static final String DELIVERED = "Delivered";
    private static final String FULL_ACCEPTED = "FullAccepted";
    private static final String FULL_PROGRESS = "FullProgress";
    private static final String FULL_PROGRESS_ALERT = "FullProgressAlert";
    private static final String HALF_ACCEPTED = "HalfAccepted";
    private static final String HALF_ACCEPTED_TOMORROW = "HalfAccepted-Tomorrow";
    private static final String HALF_DELIVERED = "HalfDelivered";
    private static final String INTRANSIT = "InTransit";
    private static final String INTRANSIT_ALERT = "InTransitAlert";
    private static final String INTRANSIT_DATE_WITH_EOD = "InTransit-date with by end of day";
    private static final String INTRANSIT_ITEM_DELAY = "InTransit-Item-Delay";
    private static final String INTRANSIT_TIME_DISPLAY = "InTransit-Time Display";
    private static final String INTRANSIT_TOADY_EOD = "InTransit-Today-By End of Day";
    private static final String INTRANSIT_TOMORROW_EOD = "InTransit-Tomorrow-by end of day";
    private static final String READY_TO_PICKUP = "ReadyPickup";

    @Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
    /* loaded from: classes.dex */
    public /* synthetic */ class WhenMappings {
        public static final /* synthetic */ int[] $EnumSwitchMapping$0;

        static {
            int[] iArr = new int[HomeTrackPinStatus.values().length];
            try {
                iArr[HomeTrackPinStatus.INVALID.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[HomeTrackPinStatus.DELIVERED.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                iArr[HomeTrackPinStatus.FULL_PROGRESS.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                iArr[HomeTrackPinStatus.FULL_PROGRESS_ALERT.ordinal()] = 4;
            } catch (NoSuchFieldError unused4) {
            }
            try {
                iArr[HomeTrackPinStatus.HALF_ACCEPTED.ordinal()] = 5;
            } catch (NoSuchFieldError unused5) {
            }
            try {
                iArr[HomeTrackPinStatus.HALF_DELIVERED.ordinal()] = 6;
            } catch (NoSuchFieldError unused6) {
            }
            try {
                iArr[HomeTrackPinStatus.IN_TRANSIT.ordinal()] = 7;
            } catch (NoSuchFieldError unused7) {
            }
            try {
                iArr[HomeTrackPinStatus.INTRANSIT_ALERT.ordinal()] = 8;
            } catch (NoSuchFieldError unused8) {
            }
            try {
                iArr[HomeTrackPinStatus.READY_TO_PICKUP.ordinal()] = 9;
            } catch (NoSuchFieldError unused9) {
            }
            try {
                iArr[HomeTrackPinStatus.FULL_ACCEPTED.ordinal()] = 10;
            } catch (NoSuchFieldError unused10) {
            }
            $EnumSwitchMapping$0 = iArr;
        }
    }

    @f
    public final HomeTrackPinStatus fromJson(String status) {
        if (status != null) {
            switch (status.hashCode()) {
                case -1960665604:
                    if (status.equals(FULL_PROGRESS)) {
                        return HomeTrackPinStatus.FULL_PROGRESS;
                    }
                    break;
                case -1914144399:
                    if (status.equals(HALF_DELIVERED)) {
                        return HomeTrackPinStatus.HALF_DELIVERED;
                    }
                    break;
                case -1262266176:
                    if (status.equals(FULL_PROGRESS_ALERT)) {
                        return HomeTrackPinStatus.FULL_PROGRESS_ALERT;
                    }
                    break;
                case 233012430:
                    if (status.equals(INTRANSIT)) {
                        return HomeTrackPinStatus.IN_TRANSIT;
                    }
                    break;
                case 607579438:
                    if (status.equals(INTRANSIT_ALERT)) {
                        return HomeTrackPinStatus.INTRANSIT_ALERT;
                    }
                    break;
                case 986133786:
                    if (status.equals(HALF_ACCEPTED)) {
                        return HomeTrackPinStatus.HALF_ACCEPTED;
                    }
                    break;
                case 1188854646:
                    if (status.equals(FULL_ACCEPTED)) {
                        return HomeTrackPinStatus.FULL_ACCEPTED;
                    }
                    break;
                case 1667920351:
                    if (status.equals(READY_TO_PICKUP)) {
                        return HomeTrackPinStatus.READY_TO_PICKUP;
                    }
                    break;
                case 1761640548:
                    if (status.equals(DELIVERED)) {
                        return HomeTrackPinStatus.DELIVERED;
                    }
                    break;
            }
        }
        return HomeTrackPinStatus.INVALID;
    }

    @v
    public final String toJson(HomeTrackPinStatus homeTrackPinStatus) {
        t.g(homeTrackPinStatus, "homeTrackPinStatus");
        switch (WhenMappings.$EnumSwitchMapping$0[homeTrackPinStatus.ordinal()]) {
            case 1:
                return null;
            case 2:
                return DELIVERED;
            case 3:
                return FULL_PROGRESS;
            case 4:
                return FULL_PROGRESS_ALERT;
            case 5:
                return HALF_ACCEPTED;
            case 6:
                return HALF_DELIVERED;
            case 7:
                return INTRANSIT;
            case 8:
                return INTRANSIT_ALERT;
            case 9:
                return READY_TO_PICKUP;
            case 10:
                return FULL_ACCEPTED;
            default:
                throw new rm.t();
        }
    }
}
