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

import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import java.text.DateFormatSymbols;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import km.g;
import kotlin.Metadata;
import kotlin.jvm.internal.k;
import kotlin.jvm.internal.t;
import kotlin.text.l;
import kotlin.text.y;
import kotlin.text.z;
import org.joda.time.DateTime;
import qa.b;
import qa.d;
import sm.u;
import tr.a;

@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u0012\u0012\u0004\u0012\u00020\u00020\u0001j\b\u0012\u0004\u0012\u00020\u0002`\u0003:\u0001\u0005B\u0005¢\u0006\u0002\u0010\u0004¨\u0006\u0006"}, d2 = {"Lca/canadapost/core/data/flex/model/FlexLocation;", "Ljava/util/ArrayList;", "Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem;", "Lkotlin/collections/ArrayList;", "()V", "FlexLocationItem", "core_data_productionRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes.dex */
public final class FlexLocation extends ArrayList<FlexLocationItem> {
    public /* bridge */ boolean contains(FlexLocationItem flexLocationItem) {
        return super.contains((Object) flexLocationItem);
    }

    public /* bridge */ int getSize() {
        return super.size();
    }

    public /* bridge */ int indexOf(FlexLocationItem flexLocationItem) {
        return super.indexOf((Object) flexLocationItem);
    }

    public /* bridge */ int lastIndexOf(FlexLocationItem flexLocationItem) {
        return super.lastIndexOf((Object) flexLocationItem);
    }

    @Override // java.util.ArrayList, java.util.AbstractList, java.util.List
    public final /* bridge */ FlexLocationItem remove(int i10) {
        return removeAt(i10);
    }

    public /* bridge */ FlexLocationItem removeAt(int i10) {
        return (FlexLocationItem) super.remove(i10);
    }

    @Override // java.util.ArrayList, java.util.AbstractCollection, java.util.Collection, java.util.List
    public final /* bridge */ int size() {
        return getSize();
    }

    @Override // java.util.ArrayList, java.util.AbstractCollection, java.util.Collection, java.util.List
    public final /* bridge */ boolean contains(Object obj) {
        if (obj instanceof FlexLocationItem) {
            return contains((FlexLocationItem) obj);
        }
        return false;
    }

    @Override // java.util.ArrayList, java.util.AbstractList, java.util.List
    public final /* bridge */ int indexOf(Object obj) {
        if (obj instanceof FlexLocationItem) {
            return indexOf((FlexLocationItem) obj);
        }
        return -1;
    }

    @Override // java.util.ArrayList, java.util.AbstractList, java.util.List
    public final /* bridge */ int lastIndexOf(Object obj) {
        if (obj instanceof FlexLocationItem) {
            return lastIndexOf((FlexLocationItem) obj);
        }
        return -1;
    }

    public /* bridge */ boolean remove(FlexLocationItem flexLocationItem) {
        return super.remove((Object) flexLocationItem);
    }

    @Override // java.util.ArrayList, java.util.AbstractCollection, java.util.Collection, java.util.List
    public final /* bridge */ boolean remove(Object obj) {
        if (obj instanceof FlexLocationItem) {
            return remove((FlexLocationItem) obj);
        }
        return false;
    }

    @Metadata(d1 = {"\u0000N\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0010 \n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b&\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\b\b\u0086\b\u0018\u00002\u00020\u0001:\u0006ABCDEFB\u0099\u0001\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u0012\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u000b\u0012\b\u0010\f\u001a\u0004\u0018\u00010\u000b\u0012\b\u0010\r\u001a\u0004\u0018\u00010\u000b\u0012\u0006\u0010\u000e\u001a\u00020\u000b\u0012\u0006\u0010\u000f\u001a\u00020\u000b\u0012\u0010\b\u0002\u0010\u0010\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\u0011\u0012\n\b\u0002\u0010\u0012\u001a\u0004\u0018\u00010\u000b\u0012\u0010\b\u0002\u0010\u0013\u001a\n\u0012\u0004\u0012\u00020\u0014\u0018\u00010\u0011\u0012\n\b\u0002\u0010\u0015\u001a\u0004\u0018\u00010\u0016¢\u0006\u0002\u0010\u0017J\t\u0010,\u001a\u00020\u0003HÆ\u0003J\u0011\u0010-\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\u0011HÆ\u0003J\u000b\u0010.\u001a\u0004\u0018\u00010\u000bHÆ\u0003J\u0011\u0010/\u001a\n\u0012\u0004\u0012\u00020\u0014\u0018\u00010\u0011HÆ\u0003J\u000b\u00100\u001a\u0004\u0018\u00010\u0016HÆ\u0003J\u000b\u00101\u001a\u0004\u0018\u00010\u0005HÆ\u0003J\u000b\u00102\u001a\u0004\u0018\u00010\u0007HÆ\u0003J\t\u00103\u001a\u00020\tHÆ\u0003J\u000b\u00104\u001a\u0004\u0018\u00010\u000bHÆ\u0003J\u000b\u00105\u001a\u0004\u0018\u00010\u000bHÆ\u0003J\u000b\u00106\u001a\u0004\u0018\u00010\u000bHÆ\u0003J\t\u00107\u001a\u00020\u000bHÆ\u0003J\t\u00108\u001a\u00020\u000bHÆ\u0003J©\u0001\u00109\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u00052\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00072\b\b\u0002\u0010\b\u001a\u00020\t2\n\b\u0002\u0010\n\u001a\u0004\u0018\u00010\u000b2\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u000b2\n\b\u0002\u0010\r\u001a\u0004\u0018\u00010\u000b2\b\b\u0002\u0010\u000e\u001a\u00020\u000b2\b\b\u0002\u0010\u000f\u001a\u00020\u000b2\u0010\b\u0002\u0010\u0010\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\u00112\n\b\u0002\u0010\u0012\u001a\u0004\u0018\u00010\u000b2\u0010\b\u0002\u0010\u0013\u001a\n\u0012\u0004\u0012\u00020\u0014\u0018\u00010\u00112\n\b\u0002\u0010\u0015\u001a\u0004\u0018\u00010\u0016HÆ\u0001J\u0013\u0010:\u001a\u00020\t2\b\u0010;\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\u0006\u0010<\u001a\u00020=J\t\u0010>\u001a\u00020?HÖ\u0001J\t\u0010@\u001a\u00020\u000bHÖ\u0001R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0018\u0010\u0019R\u0013\u0010\u0006\u001a\u0004\u0018\u00010\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u001a\u0010\u001bR\u0011\u0010\b\u001a\u00020\t¢\u0006\b\n\u0000\u001a\u0004\b\u001c\u0010\u001dR\u0013\u0010\n\u001a\u0004\u0018\u00010\u000b¢\u0006\b\n\u0000\u001a\u0004\b\u001e\u0010\u001fR\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b \u0010!R\u0019\u0010\u0013\u001a\n\u0012\u0004\u0012\u00020\u0014\u0018\u00010\u0011¢\u0006\b\n\u0000\u001a\u0004\b\"\u0010#R\u0013\u0010\f\u001a\u0004\u0018\u00010\u000b¢\u0006\b\n\u0000\u001a\u0004\b$\u0010\u001fR\u0011\u0010\u000f\u001a\u00020\u000b¢\u0006\b\n\u0000\u001a\u0004\b%\u0010\u001fR\u0013\u0010\r\u001a\u0004\u0018\u00010\u000b¢\u0006\b\n\u0000\u001a\u0004\b&\u0010\u001fR\u0011\u0010\u000e\u001a\u00020\u000b¢\u0006\b\n\u0000\u001a\u0004\b'\u0010\u001fR\u0019\u0010\u0010\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\u0011¢\u0006\b\n\u0000\u001a\u0004\b(\u0010#R\u0013\u0010\u0012\u001a\u0004\u0018\u00010\u000b¢\u0006\b\n\u0000\u001a\u0004\b)\u0010\u001fR\u0013\u0010\u0015\u001a\u0004\u0018\u00010\u0016¢\u0006\b\n\u0000\u001a\u0004\b*\u0010+¨\u0006G"}, d2 = {"Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem;", "", "address", "Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Address;", "flex", "Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Flex;", "apl", "Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Apl;", "bilingual", "", "costCentreId", "", "latitude", "longitude", AppMeasurementSdk.ConditionalUserProperty.NAME, FirebaseAnalytics.Param.LOCATION, "serviceTypes", "", "siteId", "hoursOfOperation", "Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$HoursOfOperation;", "supportedLanguage", "Lca/canadapost/core/data/flex/model/FlexSupportedLanguages;", "(Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Address;Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Flex;Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Apl;ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/util/List;Lca/canadapost/core/data/flex/model/FlexSupportedLanguages;)V", "getAddress", "()Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Address;", "getApl", "()Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Apl;", "getBilingual", "()Z", "getCostCentreId", "()Ljava/lang/String;", "getFlex", "()Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Flex;", "getHoursOfOperation", "()Ljava/util/List;", "getLatitude", "getLocation", "getLongitude", "getName", "getServiceTypes", "getSiteId", "getSupportedLanguage", "()Lca/canadapost/core/data/flex/model/FlexSupportedLanguages;", "component1", "component10", "component11", "component12", "component13", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "copy", "equals", "other", "getServiceType", "Lca/canadapost/core/data/flex/model/LocationServiceType;", "hashCode", "", "toString", "Address", "Apl", "DayHours", "Flex", "FlexOrApl", "HoursOfOperation", "core_data_productionRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
    /* loaded from: classes.dex */
    public static final /* data */ class FlexLocationItem {
        private final Address address;
        private final Apl apl;
        private final boolean bilingual;
        private final String costCentreId;
        private final Flex flex;
        private final List<HoursOfOperation> hoursOfOperation;
        private final String latitude;
        private final String location;
        private final String longitude;
        private final String name;
        private final List<String> serviceTypes;
        private final String siteId;
        private final FlexSupportedLanguages supportedLanguage;

        @Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\t\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b\u0086\b\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0002\u0010\u0005J\t\u0010\t\u001a\u00020\u0003HÆ\u0003J\t\u0010\n\u001a\u00020\u0003HÆ\u0003J\u001d\u0010\u000b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u0003HÆ\u0001J\u0013\u0010\f\u001a\u00020\r2\b\u0010\u000e\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u000f\u001a\u00020\u0010HÖ\u0001J\u0006\u0010\u0011\u001a\u00020\rJ\t\u0010\u0012\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u0007¨\u0006\u0013"}, d2 = {"Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$DayHours;", "", "time", "", "dayOfWeek", "(Ljava/lang/String;Ljava/lang/String;)V", "getDayOfWeek", "()Ljava/lang/String;", "getTime", "component1", "component2", "copy", "equals", "", "other", "hashCode", "", "isToday", "toString", "core_data_productionRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
        /* loaded from: classes.dex */
        public static final /* data */ class DayHours {
            private final String dayOfWeek;
            private final String time;

            public DayHours(String time, String dayOfWeek) {
                t.g(time, "time");
                t.g(dayOfWeek, "dayOfWeek");
                this.time = time;
                this.dayOfWeek = dayOfWeek;
            }

            public static /* synthetic */ DayHours copy$default(DayHours dayHours, String str, String str2, int i10, Object obj) {
                if ((i10 & 1) != 0) {
                    str = dayHours.time;
                }
                if ((i10 & 2) != 0) {
                    str2 = dayHours.dayOfWeek;
                }
                return dayHours.copy(str, str2);
            }

            /* renamed from: component1, reason: from getter */
            public final String getTime() {
                return this.time;
            }

            /* renamed from: component2, reason: from getter */
            public final String getDayOfWeek() {
                return this.dayOfWeek;
            }

            public final DayHours copy(String time, String dayOfWeek) {
                t.g(time, "time");
                t.g(dayOfWeek, "dayOfWeek");
                return new DayHours(time, dayOfWeek);
            }

            public boolean equals(Object other) {
                if (this == other) {
                    return true;
                }
                if (!(other instanceof DayHours)) {
                    return false;
                }
                DayHours dayHours = (DayHours) other;
                return t.b(this.time, dayHours.time) && t.b(this.dayOfWeek, dayHours.dayOfWeek);
            }

            public final String getDayOfWeek() {
                return this.dayOfWeek;
            }

            public final String getTime() {
                return this.time;
            }

            public int hashCode() {
                return (this.time.hashCode() * 31) + this.dayOfWeek.hashCode();
            }

            public final boolean isToday() {
                String q10;
                String c10 = DateTime.E().D().c();
                t.f(c10, "getAsText(...)");
                q10 = y.q(c10);
                return t.b(q10, this.dayOfWeek);
            }

            public String toString() {
                return "DayHours(time=" + this.time + ", dayOfWeek=" + this.dayOfWeek + ")";
            }
        }

        @Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\t\bf\u0018\u00002\u00020\u0001R\u0014\u0010\u0002\u001a\u0004\u0018\u00010\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0004\u0010\u0005R\u0012\u0010\u0006\u001a\u00020\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\u0005R\u0018\u0010\b\u001a\b\u0012\u0004\u0012\u00020\n0\tX¦\u0004¢\u0006\u0006\u001a\u0004\b\u000b\u0010\fR\u0012\u0010\r\u001a\u00020\u000eX¦\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000fR\u0012\u0010\u0010\u001a\u00020\u0011X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0012\u0010\u0013R\u0012\u0010\u0014\u001a\u00020\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0015\u0010\u0005R\u0012\u0010\u0016\u001a\u00020\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0017\u0010\u0005R\u0012\u0010\u0018\u001a\u00020\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0019\u0010\u0005¨\u0006\u001a"}, d2 = {"Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$FlexOrApl;", "", "alias", "", "getAlias", "()Ljava/lang/String;", "costCentreId", "getCostCentreId", "hoursOfOperation", "", "Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$HoursOfOperation;", "getHoursOfOperation", "()Ljava/util/List;", "isSaved", "", "()Z", "mailingAddress", "Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Address;", "getMailingAddress", "()Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Address;", AppMeasurementSdk.ConditionalUserProperty.NAME, "getName", "postalCode", "getPostalCode", "status", "getStatus", "core_data_productionRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
        /* loaded from: classes.dex */
        public interface FlexOrApl {
            String getAlias();

            String getCostCentreId();

            List<HoursOfOperation> getHoursOfOperation();

            Address getMailingAddress();

            String getName();

            String getPostalCode();

            String getStatus();

            boolean isSaved();
        }

        @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u000f\n\u0002\u0010\u000b\n\u0002\b\u0007\b\u0086\b\u0018\u00002\u00020\u0001B%\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0005\u0012\u0006\u0010\u0007\u001a\u00020\u0005¢\u0006\u0002\u0010\bJ\t\u0010\u000f\u001a\u00020\u0003HÆ\u0003J\t\u0010\u0010\u001a\u00020\u0005HÆ\u0003J\t\u0010\u0011\u001a\u00020\u0005HÆ\u0003J\t\u0010\u0012\u001a\u00020\u0005HÆ\u0003J1\u0010\u0013\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00052\b\b\u0002\u0010\u0006\u001a\u00020\u00052\b\b\u0002\u0010\u0007\u001a\u00020\u0005HÆ\u0001J\u0013\u0010\u0014\u001a\u00020\u00152\b\u0010\u0016\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\u0006\u0010\u0017\u001a\u00020\u0005J\u0010\u0010\u0018\u001a\u0004\u0018\u00010\u00052\u0006\u0010\u0019\u001a\u00020\u0015J\t\u0010\u001a\u001a\u00020\u0003HÖ\u0001J\t\u0010\u001b\u001a\u00020\u0005HÖ\u0001R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\u0006\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\nR\u0011\u0010\u0007\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\n¨\u0006\u001c"}, d2 = {"Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$HoursOfOperation;", "", "day", "", "closeTime", "", "dayOfWeek", "openTime", "(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "getCloseTime", "()Ljava/lang/String;", "getDay", "()I", "getDayOfWeek", "getOpenTime", "component1", "component2", "component3", "component4", "copy", "equals", "", "other", "getDayName", "getHoursWithAMPM", "isLanguageSelectedEn", "hashCode", "toString", "core_data_productionRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
        /* loaded from: classes.dex */
        public static final /* data */ class HoursOfOperation {
            private final String closeTime;
            private final int day;
            private final String dayOfWeek;
            private final String openTime;

            public HoursOfOperation(int i10, String closeTime, String dayOfWeek, String openTime) {
                t.g(closeTime, "closeTime");
                t.g(dayOfWeek, "dayOfWeek");
                t.g(openTime, "openTime");
                this.day = i10;
                this.closeTime = closeTime;
                this.dayOfWeek = dayOfWeek;
                this.openTime = openTime;
            }

            public static /* synthetic */ HoursOfOperation copy$default(HoursOfOperation hoursOfOperation, int i10, String str, String str2, String str3, int i11, Object obj) {
                if ((i11 & 1) != 0) {
                    i10 = hoursOfOperation.day;
                }
                if ((i11 & 2) != 0) {
                    str = hoursOfOperation.closeTime;
                }
                if ((i11 & 4) != 0) {
                    str2 = hoursOfOperation.dayOfWeek;
                }
                if ((i11 & 8) != 0) {
                    str3 = hoursOfOperation.openTime;
                }
                return hoursOfOperation.copy(i10, str, str2, str3);
            }

            /* renamed from: component1, reason: from getter */
            public final int getDay() {
                return this.day;
            }

            /* renamed from: component2, reason: from getter */
            public final String getCloseTime() {
                return this.closeTime;
            }

            /* renamed from: component3, reason: from getter */
            public final String getDayOfWeek() {
                return this.dayOfWeek;
            }

            /* renamed from: component4, reason: from getter */
            public final String getOpenTime() {
                return this.openTime;
            }

            public final HoursOfOperation copy(int day, String closeTime, String dayOfWeek, String openTime) {
                t.g(closeTime, "closeTime");
                t.g(dayOfWeek, "dayOfWeek");
                t.g(openTime, "openTime");
                return new HoursOfOperation(day, closeTime, dayOfWeek, openTime);
            }

            public boolean equals(Object other) {
                if (this == other) {
                    return true;
                }
                if (!(other instanceof HoursOfOperation)) {
                    return false;
                }
                HoursOfOperation hoursOfOperation = (HoursOfOperation) other;
                return this.day == hoursOfOperation.day && t.b(this.closeTime, hoursOfOperation.closeTime) && t.b(this.dayOfWeek, hoursOfOperation.dayOfWeek) && t.b(this.openTime, hoursOfOperation.openTime);
            }

            public final String getCloseTime() {
                return this.closeTime;
            }

            public final int getDay() {
                return this.day;
            }

            public final String getDayName() {
                String q10;
                String str = DateFormatSymbols.getInstance().getWeekdays()[this.day];
                t.f(str, "get(...)");
                q10 = y.q(str);
                return q10;
            }

            public final String getDayOfWeek() {
                return this.dayOfWeek;
            }

            public final String getHoursWithAMPM(boolean isLanguageSelectedEn) {
                String J;
                String J2;
                String J3;
                String J4;
                List I0;
                List I02;
                try {
                    String str = this.openTime;
                    int length = str.length() - 1;
                    int i10 = 0;
                    boolean z10 = false;
                    while (i10 <= length) {
                        boolean z11 = t.i(str.charAt(!z10 ? i10 : length), 32) <= 0;
                        if (z10) {
                            if (!z11) {
                                break;
                            }
                            length--;
                        } else if (z11) {
                            i10++;
                        } else {
                            z10 = true;
                        }
                    }
                    String[] strArr = (String[]) new l("-").h(str.subSequence(i10, length + 1).toString(), 0).toArray(new String[0]);
                    String str2 = this.closeTime;
                    int length2 = str2.length() - 1;
                    int i11 = 0;
                    boolean z12 = false;
                    while (i11 <= length2) {
                        boolean z13 = t.i(str2.charAt(!z12 ? i11 : length2), 32) <= 0;
                        if (z12) {
                            if (!z13) {
                                break;
                            }
                            length2--;
                        } else if (z13) {
                            i11++;
                        } else {
                            z12 = true;
                        }
                    }
                    String[] strArr2 = (String[]) new l("-").h(str2.subSequence(i11, length2 + 1).toString(), 0).toArray(new String[0]);
                    StringBuffer stringBuffer = new StringBuffer();
                    int length3 = strArr.length;
                    int i12 = 0;
                    int i13 = 0;
                    while (true) {
                        if (i12 >= length3) {
                            break;
                        }
                        String str3 = strArr[i12];
                        if (i13 > 0) {
                            stringBuffer.append("-");
                        }
                        Date a10 = b.a(str3, "HH:mm");
                        t.d(a10);
                        if (isLanguageSelectedEn) {
                            stringBuffer.append(b.b(a10, "h:mm aa"));
                        } else {
                            I02 = z.I0(b.b(a10, "H:mm"), new String[]{":"}, false, 0, 6, null);
                            stringBuffer.append((String) I02.get(0));
                            stringBuffer.append(" h ");
                            stringBuffer.append(t.b(I02.get(1), "00") ? "" : I02.get(1) + " ");
                        }
                        i13++;
                        i12++;
                    }
                    if (isLanguageSelectedEn) {
                        stringBuffer.append(" - ");
                    } else {
                        stringBuffer.append("à ");
                    }
                    int i14 = 0;
                    for (String str4 : strArr2) {
                        if (i14 > 0) {
                            stringBuffer.append("-");
                        }
                        Date a11 = b.a(str4, "HH:mm");
                        t.d(a11);
                        if (isLanguageSelectedEn) {
                            stringBuffer.append(b.b(a11, "h:mm aa"));
                        } else {
                            I0 = z.I0(b.b(a11, "H:mm"), new String[]{":"}, false, 0, 6, null);
                            stringBuffer.append((String) I0.get(0));
                            stringBuffer.append(" h");
                            stringBuffer.append(t.b(I0.get(1), "00") ? "" : " " + I0.get(1));
                        }
                        i14++;
                    }
                    String stringBuffer2 = stringBuffer.toString();
                    t.f(stringBuffer2, "toString(...)");
                    J = y.J(stringBuffer2, "AM", "am", false, 4, null);
                    J2 = y.J(J, "PM", "pm", false, 4, null);
                    J3 = y.J(J2, "a.m.", "am", false, 4, null);
                    J4 = y.J(J3, "p.m.", "pm", false, 4, null);
                    return J4;
                } catch (Exception e10) {
                    a.f36618a.d(e10, e10.getMessage(), new Object[0]);
                    e10.printStackTrace();
                    return null;
                }
            }

            public final String getOpenTime() {
                return this.openTime;
            }

            public int hashCode() {
                return (((((Integer.hashCode(this.day) * 31) + this.closeTime.hashCode()) * 31) + this.dayOfWeek.hashCode()) * 31) + this.openTime.hashCode();
            }

            public String toString() {
                return "HoursOfOperation(day=" + this.day + ", closeTime=" + this.closeTime + ", dayOfWeek=" + this.dayOfWeek + ", openTime=" + this.openTime + ")";
            }
        }

        public FlexLocationItem(Address address, Flex flex, Apl apl, boolean z10, String str, String str2, String str3, String name, String location, List<String> list, String str4, List<HoursOfOperation> list2, FlexSupportedLanguages flexSupportedLanguages) {
            t.g(address, "address");
            t.g(name, "name");
            t.g(location, "location");
            this.address = address;
            this.flex = flex;
            this.apl = apl;
            this.bilingual = z10;
            this.costCentreId = str;
            this.latitude = str2;
            this.longitude = str3;
            this.name = name;
            this.location = location;
            this.serviceTypes = list;
            this.siteId = str4;
            this.hoursOfOperation = list2;
            this.supportedLanguage = flexSupportedLanguages;
        }

        /* renamed from: component1, reason: from getter */
        public final Address getAddress() {
            return this.address;
        }

        public final List<String> component10() {
            return this.serviceTypes;
        }

        /* renamed from: component11, reason: from getter */
        public final String getSiteId() {
            return this.siteId;
        }

        public final List<HoursOfOperation> component12() {
            return this.hoursOfOperation;
        }

        /* renamed from: component13, reason: from getter */
        public final FlexSupportedLanguages getSupportedLanguage() {
            return this.supportedLanguage;
        }

        /* renamed from: component2, reason: from getter */
        public final Flex getFlex() {
            return this.flex;
        }

        /* renamed from: component3, reason: from getter */
        public final Apl getApl() {
            return this.apl;
        }

        /* renamed from: component4, reason: from getter */
        public final boolean getBilingual() {
            return this.bilingual;
        }

        /* renamed from: component5, reason: from getter */
        public final String getCostCentreId() {
            return this.costCentreId;
        }

        /* renamed from: component6, reason: from getter */
        public final String getLatitude() {
            return this.latitude;
        }

        /* renamed from: component7, reason: from getter */
        public final String getLongitude() {
            return this.longitude;
        }

        /* renamed from: component8, reason: from getter */
        public final String getName() {
            return this.name;
        }

        /* renamed from: component9, reason: from getter */
        public final String getLocation() {
            return this.location;
        }

        public final FlexLocationItem copy(Address address, Flex flex, Apl apl, boolean bilingual, String costCentreId, String latitude, String longitude, String name, String location, List<String> serviceTypes, String siteId, List<HoursOfOperation> hoursOfOperation, FlexSupportedLanguages supportedLanguage) {
            t.g(address, "address");
            t.g(name, "name");
            t.g(location, "location");
            return new FlexLocationItem(address, flex, apl, bilingual, costCentreId, latitude, longitude, name, location, serviceTypes, siteId, hoursOfOperation, supportedLanguage);
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if (!(other instanceof FlexLocationItem)) {
                return false;
            }
            FlexLocationItem flexLocationItem = (FlexLocationItem) other;
            return t.b(this.address, flexLocationItem.address) && t.b(this.flex, flexLocationItem.flex) && t.b(this.apl, flexLocationItem.apl) && this.bilingual == flexLocationItem.bilingual && t.b(this.costCentreId, flexLocationItem.costCentreId) && t.b(this.latitude, flexLocationItem.latitude) && t.b(this.longitude, flexLocationItem.longitude) && t.b(this.name, flexLocationItem.name) && t.b(this.location, flexLocationItem.location) && t.b(this.serviceTypes, flexLocationItem.serviceTypes) && t.b(this.siteId, flexLocationItem.siteId) && t.b(this.hoursOfOperation, flexLocationItem.hoursOfOperation) && this.supportedLanguage == flexLocationItem.supportedLanguage;
        }

        public final Address getAddress() {
            return this.address;
        }

        public final Apl getApl() {
            return this.apl;
        }

        public final boolean getBilingual() {
            return this.bilingual;
        }

        public final String getCostCentreId() {
            return this.costCentreId;
        }

        public final Flex getFlex() {
            return this.flex;
        }

        public final List<HoursOfOperation> getHoursOfOperation() {
            return this.hoursOfOperation;
        }

        public final String getLatitude() {
            return this.latitude;
        }

        public final String getLocation() {
            return this.location;
        }

        public final String getLongitude() {
            return this.longitude;
        }

        public final String getName() {
            return this.name;
        }

        public final LocationServiceType getServiceType() {
            Apl apl = this.apl;
            return (apl == null || this.flex == null) ? this.flex != null ? LocationServiceType.FLEX : apl != null ? LocationServiceType.LOCKER : LocationServiceType.POSTOFFICE : LocationServiceType.APL_AND_FLEX;
        }

        public final List<String> getServiceTypes() {
            return this.serviceTypes;
        }

        public final String getSiteId() {
            return this.siteId;
        }

        public final FlexSupportedLanguages getSupportedLanguage() {
            return this.supportedLanguage;
        }

        public int hashCode() {
            int hashCode = this.address.hashCode() * 31;
            Flex flex = this.flex;
            int hashCode2 = (hashCode + (flex == null ? 0 : flex.hashCode())) * 31;
            Apl apl = this.apl;
            int hashCode3 = (((hashCode2 + (apl == null ? 0 : apl.hashCode())) * 31) + Boolean.hashCode(this.bilingual)) * 31;
            String str = this.costCentreId;
            int hashCode4 = (hashCode3 + (str == null ? 0 : str.hashCode())) * 31;
            String str2 = this.latitude;
            int hashCode5 = (hashCode4 + (str2 == null ? 0 : str2.hashCode())) * 31;
            String str3 = this.longitude;
            int hashCode6 = (((((hashCode5 + (str3 == null ? 0 : str3.hashCode())) * 31) + this.name.hashCode()) * 31) + this.location.hashCode()) * 31;
            List<String> list = this.serviceTypes;
            int hashCode7 = (hashCode6 + (list == null ? 0 : list.hashCode())) * 31;
            String str4 = this.siteId;
            int hashCode8 = (hashCode7 + (str4 == null ? 0 : str4.hashCode())) * 31;
            List<HoursOfOperation> list2 = this.hoursOfOperation;
            int hashCode9 = (hashCode8 + (list2 == null ? 0 : list2.hashCode())) * 31;
            FlexSupportedLanguages flexSupportedLanguages = this.supportedLanguage;
            return hashCode9 + (flexSupportedLanguages != null ? flexSupportedLanguages.hashCode() : 0);
        }

        public String toString() {
            return "FlexLocationItem(address=" + this.address + ", flex=" + this.flex + ", apl=" + this.apl + ", bilingual=" + this.bilingual + ", costCentreId=" + this.costCentreId + ", latitude=" + this.latitude + ", longitude=" + this.longitude + ", name=" + this.name + ", location=" + this.location + ", serviceTypes=" + this.serviceTypes + ", siteId=" + this.siteId + ", hoursOfOperation=" + this.hoursOfOperation + ", supportedLanguage=" + this.supportedLanguage + ")";
        }

        @Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0019\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001BC\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0003\u0012\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0007\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\tJ\t\u0010\u0015\u001a\u00020\u0003HÆ\u0003J\u000b\u0010\u0016\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\u0017\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\u0018\u001a\u0004\u0018\u00010\u0003HÂ\u0003J\u000b\u0010\u0019\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\u001a\u001a\u0004\u0018\u00010\u0003HÂ\u0003JO\u0010\u001b\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0006\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u0003HÆ\u0001J\u0013\u0010\u001c\u001a\u00020\u001d2\b\u0010\u001e\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\u000e\u0010\u001f\u001a\b\u0012\u0004\u0012\u00020\u00030 H\u0002J\u0006\u0010!\u001a\u00020\"J\b\u0010#\u001a\u0004\u0018\u00010\u0003J\t\u0010$\u001a\u00020%HÖ\u0001J\t\u0010&\u001a\u00020\u0003HÖ\u0001R\u0012\u0010\u0006\u001a\u0004\u0018\u00010\u00038\u0002X\u0083\u0004¢\u0006\u0002\n\u0000R\u0012\u0010\b\u001a\u0004\u0018\u00010\u00038\u0002X\u0083\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\u000bR\u0013\u0010\u0005\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000bR\u0013\u0010\u000e\u001a\u0004\u0018\u00010\u00038F¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u000bR\u0013\u0010\u0010\u001a\u0004\u0018\u00010\u00038F¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u000bR\u001c\u0010\u0007\u001a\u0004\u0018\u00010\u0003X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\u000b\"\u0004\b\u0013\u0010\u0014¨\u0006'"}, d2 = {"Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Address;", "", "addressLine1", "", "addressLine2", "addressLine3", "_city", "province", "_postalCode", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "getAddressLine1", "()Ljava/lang/String;", "getAddressLine2", "getAddressLine3", "city", "getCity", "postalCode", "getPostalCode", "getProvince", "setProvince", "(Ljava/lang/String;)V", "component1", "component2", "component3", "component4", "component5", "component6", "copy", "equals", "", "other", "getCityPostalCode", "", "getFormattedAddress", "Ljava/lang/StringBuffer;", "getFullAddressString", "hashCode", "", "toString", "core_data_productionRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
        /* loaded from: classes.dex */
        public static final /* data */ class Address {

            @g(name = "city")
            private final String _city;

            @g(name = "postalCode")
            private final String _postalCode;
            private final String addressLine1;
            private final String addressLine2;
            private final String addressLine3;
            private String province;

            public Address(String addressLine1, String str, String str2, String str3, String str4, String str5) {
                t.g(addressLine1, "addressLine1");
                this.addressLine1 = addressLine1;
                this.addressLine2 = str;
                this.addressLine3 = str2;
                this._city = str3;
                this.province = str4;
                this._postalCode = str5;
            }

            /* renamed from: component4, reason: from getter */
            private final String get_city() {
                return this._city;
            }

            /* renamed from: component6, reason: from getter */
            private final String get_postalCode() {
                return this._postalCode;
            }

            public static /* synthetic */ Address copy$default(Address address, String str, String str2, String str3, String str4, String str5, String str6, int i10, Object obj) {
                if ((i10 & 1) != 0) {
                    str = address.addressLine1;
                }
                if ((i10 & 2) != 0) {
                    str2 = address.addressLine2;
                }
                String str7 = str2;
                if ((i10 & 4) != 0) {
                    str3 = address.addressLine3;
                }
                String str8 = str3;
                if ((i10 & 8) != 0) {
                    str4 = address._city;
                }
                String str9 = str4;
                if ((i10 & 16) != 0) {
                    str5 = address.province;
                }
                String str10 = str5;
                if ((i10 & 32) != 0) {
                    str6 = address._postalCode;
                }
                return address.copy(str, str7, str8, str9, str10, str6);
            }

            private final List<String> getCityPostalCode() {
                List<String> k10;
                String str = this.addressLine3;
                if (str != null) {
                    return new l(FlexLocationKt.REGEX_FOR_PROVINCE_WITH_SPACES).h(str, 0);
                }
                k10 = u.k();
                return k10;
            }

            /* renamed from: component1, reason: from getter */
            public final String getAddressLine1() {
                return this.addressLine1;
            }

            /* renamed from: component2, reason: from getter */
            public final String getAddressLine2() {
                return this.addressLine2;
            }

            /* renamed from: component3, reason: from getter */
            public final String getAddressLine3() {
                return this.addressLine3;
            }

            /* renamed from: component5, reason: from getter */
            public final String getProvince() {
                return this.province;
            }

            public final Address copy(String addressLine1, String addressLine2, String addressLine3, String _city, String province, String _postalCode) {
                t.g(addressLine1, "addressLine1");
                return new Address(addressLine1, addressLine2, addressLine3, _city, province, _postalCode);
            }

            public boolean equals(Object other) {
                if (this == other) {
                    return true;
                }
                if (!(other instanceof Address)) {
                    return false;
                }
                Address address = (Address) other;
                return t.b(this.addressLine1, address.addressLine1) && t.b(this.addressLine2, address.addressLine2) && t.b(this.addressLine3, address.addressLine3) && t.b(this._city, address._city) && t.b(this.province, address.province) && t.b(this._postalCode, address._postalCode);
            }

            public final String getAddressLine1() {
                return this.addressLine1;
            }

            public final String getAddressLine2() {
                return this.addressLine2;
            }

            public final String getAddressLine3() {
                return this.addressLine3;
            }

            /* JADX WARN: Removed duplicated region for block: B:8:0x0014  */
            /*
                Code decompiled incorrectly, please refer to instructions dump.
            */
            public final String getCity() {
                CharSequence e12;
                boolean z10;
                boolean C;
                String str = this._city;
                if (str != null) {
                    if (str != null) {
                        C = y.C(str);
                        if (!C) {
                            z10 = false;
                            if (!z10) {
                                return this._city;
                            }
                        }
                    }
                    z10 = true;
                    if (!z10) {
                    }
                }
                List<String> cityPostalCode = getCityPostalCode();
                if (!(!cityPostalCode.isEmpty()) || cityPostalCode.size() != 2) {
                    return null;
                }
                e12 = z.e1(cityPostalCode.get(0));
                return e12.toString();
            }

            public final StringBuffer getFormattedAddress() {
                StringBuffer stringBuffer = new StringBuffer();
                if (!d.h(this.addressLine1)) {
                    stringBuffer.append(this.addressLine1);
                }
                if (!d.h(this.addressLine2)) {
                    stringBuffer.append("\n");
                    stringBuffer.append(this.addressLine2);
                }
                if (d.h(this.addressLine3)) {
                    stringBuffer.append("\n");
                    stringBuffer.append(getCity() + " " + this.province + " " + getPostalCode());
                } else {
                    stringBuffer.append("\n");
                    stringBuffer.append(this.addressLine3);
                }
                return stringBuffer;
            }

            public final String getFullAddressString() {
                String str;
                String str2;
                String str3 = this.addressLine1;
                String str4 = this.addressLine2;
                if (str4 == null) {
                    str4 = "";
                }
                String str5 = this.addressLine3;
                String str6 = str3 + str4 + (str5 != null ? str5 : "");
                StringBuilder sb2 = new StringBuilder();
                int length = str6.length() - 1;
                int i10 = 0;
                boolean z10 = false;
                while (i10 <= length) {
                    boolean z11 = t.i(str6.charAt(!z10 ? i10 : length), 32) <= 0;
                    if (z10) {
                        if (!z11) {
                            break;
                        }
                        length--;
                    } else if (z11) {
                        i10++;
                    } else {
                        z10 = true;
                    }
                }
                sb2.append(d.b(str6.subSequence(i10, length + 1).toString()));
                sb2.append("\n");
                String city = getCity();
                String str7 = null;
                if (city != null) {
                    int length2 = city.length() - 1;
                    int i11 = 0;
                    boolean z12 = false;
                    while (i11 <= length2) {
                        boolean z13 = t.i(city.charAt(!z12 ? i11 : length2), 32) <= 0;
                        if (z12) {
                            if (!z13) {
                                break;
                            }
                            length2--;
                        } else if (z13) {
                            i11++;
                        } else {
                            z12 = true;
                        }
                    }
                    str = city.subSequence(i11, length2 + 1).toString();
                } else {
                    str = null;
                }
                sb2.append(d.b(str));
                sb2.append(", ");
                String str8 = this.province;
                if (str8 != null) {
                    int length3 = str8.length() - 1;
                    int i12 = 0;
                    boolean z14 = false;
                    while (i12 <= length3) {
                        boolean z15 = t.i(str8.charAt(!z14 ? i12 : length3), 32) <= 0;
                        if (z14) {
                            if (!z15) {
                                break;
                            }
                            length3--;
                        } else if (z15) {
                            i12++;
                        } else {
                            z14 = true;
                        }
                    }
                    str2 = str8.subSequence(i12, length3 + 1).toString();
                } else {
                    str2 = null;
                }
                sb2.append(str2);
                sb2.append(", ");
                String postalCode = getPostalCode();
                if (postalCode != null) {
                    int length4 = postalCode.length() - 1;
                    int i13 = 0;
                    boolean z16 = false;
                    while (i13 <= length4) {
                        boolean z17 = t.i(postalCode.charAt(!z16 ? i13 : length4), 32) <= 0;
                        if (z16) {
                            if (!z17) {
                                break;
                            }
                            length4--;
                        } else if (z17) {
                            i13++;
                        } else {
                            z16 = true;
                        }
                    }
                    str7 = postalCode.subSequence(i13, length4 + 1).toString();
                }
                sb2.append(str7);
                return sb2.toString();
            }

            /* JADX WARN: Removed duplicated region for block: B:8:0x0013  */
            /*
                Code decompiled incorrectly, please refer to instructions dump.
            */
            public final String getPostalCode() {
                CharSequence e12;
                boolean z10;
                boolean C;
                String str = this._postalCode;
                if (str != null) {
                    if (str != null) {
                        C = y.C(str);
                        if (!C) {
                            z10 = false;
                            if (!z10) {
                                return this._postalCode;
                            }
                        }
                    }
                    z10 = true;
                    if (!z10) {
                    }
                }
                List<String> cityPostalCode = getCityPostalCode();
                if (!(!cityPostalCode.isEmpty()) || cityPostalCode.size() != 2) {
                    return null;
                }
                e12 = z.e1(cityPostalCode.get(1));
                return e12.toString();
            }

            public final String getProvince() {
                return this.province;
            }

            public int hashCode() {
                int hashCode = this.addressLine1.hashCode() * 31;
                String str = this.addressLine2;
                int hashCode2 = (hashCode + (str == null ? 0 : str.hashCode())) * 31;
                String str2 = this.addressLine3;
                int hashCode3 = (hashCode2 + (str2 == null ? 0 : str2.hashCode())) * 31;
                String str3 = this._city;
                int hashCode4 = (hashCode3 + (str3 == null ? 0 : str3.hashCode())) * 31;
                String str4 = this.province;
                int hashCode5 = (hashCode4 + (str4 == null ? 0 : str4.hashCode())) * 31;
                String str5 = this._postalCode;
                return hashCode5 + (str5 != null ? str5.hashCode() : 0);
            }

            public final void setProvince(String str) {
                this.province = str;
            }

            public String toString() {
                return "Address(addressLine1=" + this.addressLine1 + ", addressLine2=" + this.addressLine2 + ", addressLine3=" + this.addressLine3 + ", _city=" + this._city + ", province=" + this.province + ", _postalCode=" + this._postalCode + ")";
            }

            public /* synthetic */ Address(String str, String str2, String str3, String str4, String str5, String str6, int i10, k kVar) {
                this(str, (i10 & 2) != 0 ? null : str2, (i10 & 4) != 0 ? null : str3, str4, str5, str6);
            }
        }

        @Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0018\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001BO\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\u0003\u0012\u0006\u0010\u000b\u001a\u00020\u0003\u0012\b\b\u0002\u0010\f\u001a\u00020\r\u0012\b\u0010\u000e\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u000fJ\t\u0010\u001b\u001a\u00020\u0003HÆ\u0003J\t\u0010\u001c\u001a\u00020\u0003HÆ\u0003J\u000f\u0010\u001d\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006HÆ\u0003J\t\u0010\u001e\u001a\u00020\tHÆ\u0003J\t\u0010\u001f\u001a\u00020\u0003HÆ\u0003J\t\u0010 \u001a\u00020\u0003HÆ\u0003J\t\u0010!\u001a\u00020\rHÆ\u0003J\u000b\u0010\"\u001a\u0004\u0018\u00010\u0003HÆ\u0003Ja\u0010#\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\b\u0002\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u00062\b\b\u0002\u0010\b\u001a\u00020\t2\b\b\u0002\u0010\n\u001a\u00020\u00032\b\b\u0002\u0010\u000b\u001a\u00020\u00032\b\b\u0002\u0010\f\u001a\u00020\r2\n\b\u0002\u0010\u000e\u001a\u0004\u0018\u00010\u0003HÆ\u0001J\u0013\u0010$\u001a\u00020\r2\b\u0010%\u001a\u0004\u0018\u00010&HÖ\u0003J\t\u0010'\u001a\u00020(HÖ\u0001J\t\u0010)\u001a\u00020\u0003HÖ\u0001R\u0016\u0010\u000e\u001a\u0004\u0018\u00010\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011R\u0014\u0010\u0004\u001a\u00020\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0012\u0010\u0011R\u001a\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u0014\u0010\f\u001a\u00020\rX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\u0015R\u0014\u0010\b\u001a\u00020\tX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0016\u0010\u0017R\u0014\u0010\n\u001a\u00020\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0018\u0010\u0011R\u0014\u0010\u000b\u001a\u00020\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u0011R\u0014\u0010\u0002\u001a\u00020\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001a\u0010\u0011¨\u0006*"}, d2 = {"Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Flex;", "Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$FlexOrApl;", "status", "", "costCentreId", "hoursOfOperation", "", "Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$HoursOfOperation;", "mailingAddress", "Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Address;", AppMeasurementSdk.ConditionalUserProperty.NAME, "postalCode", "isSaved", "", "alias", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Address;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V", "getAlias", "()Ljava/lang/String;", "getCostCentreId", "getHoursOfOperation", "()Ljava/util/List;", "()Z", "getMailingAddress", "()Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Address;", "getName", "getPostalCode", "getStatus", "component1", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "copy", "equals", "other", "", "hashCode", "", "toString", "core_data_productionRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
        /* loaded from: classes.dex */
        public static final /* data */ class Flex implements FlexOrApl {
            private final String alias;
            private final String costCentreId;
            private final List<HoursOfOperation> hoursOfOperation;
            private final boolean isSaved;
            private final Address mailingAddress;
            private final String name;
            private final String postalCode;
            private final String status;

            public Flex(String status, String costCentreId, List<HoursOfOperation> hoursOfOperation, Address mailingAddress, String name, String postalCode, boolean z10, String str) {
                t.g(status, "status");
                t.g(costCentreId, "costCentreId");
                t.g(hoursOfOperation, "hoursOfOperation");
                t.g(mailingAddress, "mailingAddress");
                t.g(name, "name");
                t.g(postalCode, "postalCode");
                this.status = status;
                this.costCentreId = costCentreId;
                this.hoursOfOperation = hoursOfOperation;
                this.mailingAddress = mailingAddress;
                this.name = name;
                this.postalCode = postalCode;
                this.isSaved = z10;
                this.alias = str;
            }

            /* renamed from: component1, reason: from getter */
            public final String getStatus() {
                return this.status;
            }

            /* renamed from: component2, reason: from getter */
            public final String getCostCentreId() {
                return this.costCentreId;
            }

            public final List<HoursOfOperation> component3() {
                return this.hoursOfOperation;
            }

            /* renamed from: component4, reason: from getter */
            public final Address getMailingAddress() {
                return this.mailingAddress;
            }

            /* renamed from: component5, reason: from getter */
            public final String getName() {
                return this.name;
            }

            /* renamed from: component6, reason: from getter */
            public final String getPostalCode() {
                return this.postalCode;
            }

            /* renamed from: component7, reason: from getter */
            public final boolean getIsSaved() {
                return this.isSaved;
            }

            /* renamed from: component8, reason: from getter */
            public final String getAlias() {
                return this.alias;
            }

            public final Flex copy(String status, String costCentreId, List<HoursOfOperation> hoursOfOperation, Address mailingAddress, String name, String postalCode, boolean isSaved, String alias) {
                t.g(status, "status");
                t.g(costCentreId, "costCentreId");
                t.g(hoursOfOperation, "hoursOfOperation");
                t.g(mailingAddress, "mailingAddress");
                t.g(name, "name");
                t.g(postalCode, "postalCode");
                return new Flex(status, costCentreId, hoursOfOperation, mailingAddress, name, postalCode, isSaved, alias);
            }

            public boolean equals(Object other) {
                if (this == other) {
                    return true;
                }
                if (!(other instanceof Flex)) {
                    return false;
                }
                Flex flex = (Flex) other;
                return t.b(this.status, flex.status) && t.b(this.costCentreId, flex.costCentreId) && t.b(this.hoursOfOperation, flex.hoursOfOperation) && t.b(this.mailingAddress, flex.mailingAddress) && t.b(this.name, flex.name) && t.b(this.postalCode, flex.postalCode) && this.isSaved == flex.isSaved && t.b(this.alias, flex.alias);
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public String getAlias() {
                return this.alias;
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public String getCostCentreId() {
                return this.costCentreId;
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public List<HoursOfOperation> getHoursOfOperation() {
                return this.hoursOfOperation;
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public Address getMailingAddress() {
                return this.mailingAddress;
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public String getName() {
                return this.name;
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public String getPostalCode() {
                return this.postalCode;
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public String getStatus() {
                return this.status;
            }

            public int hashCode() {
                int hashCode = ((((((((((((this.status.hashCode() * 31) + this.costCentreId.hashCode()) * 31) + this.hoursOfOperation.hashCode()) * 31) + this.mailingAddress.hashCode()) * 31) + this.name.hashCode()) * 31) + this.postalCode.hashCode()) * 31) + Boolean.hashCode(this.isSaved)) * 31;
                String str = this.alias;
                return hashCode + (str == null ? 0 : str.hashCode());
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public boolean isSaved() {
                return this.isSaved;
            }

            public String toString() {
                return "Flex(status=" + this.status + ", costCentreId=" + this.costCentreId + ", hoursOfOperation=" + this.hoursOfOperation + ", mailingAddress=" + this.mailingAddress + ", name=" + this.name + ", postalCode=" + this.postalCode + ", isSaved=" + this.isSaved + ", alias=" + this.alias + ")";
            }

            public /* synthetic */ Flex(String str, String str2, List list, Address address, String str3, String str4, boolean z10, String str5, int i10, k kVar) {
                this(str, str2, list, address, str3, str4, (i10 & 64) != 0 ? false : z10, str5);
            }
        }

        @Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u001c\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B_\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0006\u0010\b\u001a\u00020\u0003\u0012\u0006\u0010\t\u001a\u00020\u0003\u0012\u0006\u0010\n\u001a\u00020\u000b\u0012\u0006\u0010\f\u001a\u00020\u0003\u0012\u0006\u0010\r\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u000e\u001a\u00020\u000f\u0012\b\u0010\u0010\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0011J\t\u0010\u001f\u001a\u00020\u0003HÆ\u0003J\u000b\u0010 \u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u0010!\u001a\u00020\u0003HÆ\u0003J\u000f\u0010\"\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006HÆ\u0003J\t\u0010#\u001a\u00020\u0003HÆ\u0003J\t\u0010$\u001a\u00020\u0003HÆ\u0003J\t\u0010%\u001a\u00020\u000bHÆ\u0003J\t\u0010&\u001a\u00020\u0003HÆ\u0003J\t\u0010'\u001a\u00020\u0003HÆ\u0003J\t\u0010(\u001a\u00020\u000fHÆ\u0003Ju\u0010)\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\b\u0002\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u00062\b\b\u0002\u0010\b\u001a\u00020\u00032\b\b\u0002\u0010\t\u001a\u00020\u00032\b\b\u0002\u0010\n\u001a\u00020\u000b2\b\b\u0002\u0010\f\u001a\u00020\u00032\b\b\u0002\u0010\r\u001a\u00020\u00032\b\b\u0002\u0010\u000e\u001a\u00020\u000f2\n\b\u0002\u0010\u0010\u001a\u0004\u0018\u00010\u0003HÆ\u0001J\u0013\u0010*\u001a\u00020\u000f2\b\u0010+\u001a\u0004\u0018\u00010,HÖ\u0003J\t\u0010-\u001a\u00020.HÖ\u0001J\t\u0010/\u001a\u00020\u0003HÖ\u0001R\u0016\u0010\u0010\u001a\u0004\u0018\u00010\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0012\u0010\u0013R\u0014\u0010\u0004\u001a\u00020\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0014\u0010\u0013R\u001a\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u0016R\u0014\u0010\u000e\u001a\u00020\u000fX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u0017R\u0011\u0010\b\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0018\u0010\u0013R\u0011\u0010\t\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u0013R\u0014\u0010\n\u001a\u00020\u000bX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001a\u0010\u001bR\u0014\u0010\f\u001a\u00020\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001c\u0010\u0013R\u0014\u0010\r\u001a\u00020\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001d\u0010\u0013R\u0014\u0010\u0002\u001a\u00020\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001e\u0010\u0013¨\u00060"}, d2 = {"Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Apl;", "Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$FlexOrApl;", "status", "", "costCentreId", "hoursOfOperation", "", "Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$HoursOfOperation;", "lockerLocationIndicator", "lockerType", "mailingAddress", "Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Address;", AppMeasurementSdk.ConditionalUserProperty.NAME, "postalCode", "isSaved", "", "alias", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Address;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V", "getAlias", "()Ljava/lang/String;", "getCostCentreId", "getHoursOfOperation", "()Ljava/util/List;", "()Z", "getLockerLocationIndicator", "getLockerType", "getMailingAddress", "()Lca/canadapost/core/data/flex/model/FlexLocation$FlexLocationItem$Address;", "getName", "getPostalCode", "getStatus", "component1", "component10", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "copy", "equals", "other", "", "hashCode", "", "toString", "core_data_productionRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
        /* loaded from: classes.dex */
        public static final /* data */ class Apl implements FlexOrApl {
            private final String alias;
            private final String costCentreId;
            private final List<HoursOfOperation> hoursOfOperation;
            private final boolean isSaved;
            private final String lockerLocationIndicator;
            private final String lockerType;
            private final Address mailingAddress;
            private final String name;
            private final String postalCode;
            private final String status;

            public Apl(String status, String costCentreId, List<HoursOfOperation> hoursOfOperation, String lockerLocationIndicator, String lockerType, Address mailingAddress, String name, String postalCode, boolean z10, String str) {
                t.g(status, "status");
                t.g(costCentreId, "costCentreId");
                t.g(hoursOfOperation, "hoursOfOperation");
                t.g(lockerLocationIndicator, "lockerLocationIndicator");
                t.g(lockerType, "lockerType");
                t.g(mailingAddress, "mailingAddress");
                t.g(name, "name");
                t.g(postalCode, "postalCode");
                this.status = status;
                this.costCentreId = costCentreId;
                this.hoursOfOperation = hoursOfOperation;
                this.lockerLocationIndicator = lockerLocationIndicator;
                this.lockerType = lockerType;
                this.mailingAddress = mailingAddress;
                this.name = name;
                this.postalCode = postalCode;
                this.isSaved = z10;
                this.alias = str;
            }

            /* renamed from: component1, reason: from getter */
            public final String getStatus() {
                return this.status;
            }

            /* renamed from: component10, reason: from getter */
            public final String getAlias() {
                return this.alias;
            }

            /* renamed from: component2, reason: from getter */
            public final String getCostCentreId() {
                return this.costCentreId;
            }

            public final List<HoursOfOperation> component3() {
                return this.hoursOfOperation;
            }

            /* renamed from: component4, reason: from getter */
            public final String getLockerLocationIndicator() {
                return this.lockerLocationIndicator;
            }

            /* renamed from: component5, reason: from getter */
            public final String getLockerType() {
                return this.lockerType;
            }

            /* renamed from: component6, reason: from getter */
            public final Address getMailingAddress() {
                return this.mailingAddress;
            }

            /* renamed from: component7, reason: from getter */
            public final String getName() {
                return this.name;
            }

            /* renamed from: component8, reason: from getter */
            public final String getPostalCode() {
                return this.postalCode;
            }

            /* renamed from: component9, reason: from getter */
            public final boolean getIsSaved() {
                return this.isSaved;
            }

            public final Apl copy(String status, String costCentreId, List<HoursOfOperation> hoursOfOperation, String lockerLocationIndicator, String lockerType, Address mailingAddress, String name, String postalCode, boolean isSaved, String alias) {
                t.g(status, "status");
                t.g(costCentreId, "costCentreId");
                t.g(hoursOfOperation, "hoursOfOperation");
                t.g(lockerLocationIndicator, "lockerLocationIndicator");
                t.g(lockerType, "lockerType");
                t.g(mailingAddress, "mailingAddress");
                t.g(name, "name");
                t.g(postalCode, "postalCode");
                return new Apl(status, costCentreId, hoursOfOperation, lockerLocationIndicator, lockerType, mailingAddress, name, postalCode, isSaved, alias);
            }

            public boolean equals(Object other) {
                if (this == other) {
                    return true;
                }
                if (!(other instanceof Apl)) {
                    return false;
                }
                Apl apl = (Apl) other;
                return t.b(this.status, apl.status) && t.b(this.costCentreId, apl.costCentreId) && t.b(this.hoursOfOperation, apl.hoursOfOperation) && t.b(this.lockerLocationIndicator, apl.lockerLocationIndicator) && t.b(this.lockerType, apl.lockerType) && t.b(this.mailingAddress, apl.mailingAddress) && t.b(this.name, apl.name) && t.b(this.postalCode, apl.postalCode) && this.isSaved == apl.isSaved && t.b(this.alias, apl.alias);
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public String getAlias() {
                return this.alias;
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public String getCostCentreId() {
                return this.costCentreId;
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public List<HoursOfOperation> getHoursOfOperation() {
                return this.hoursOfOperation;
            }

            public final String getLockerLocationIndicator() {
                return this.lockerLocationIndicator;
            }

            public final String getLockerType() {
                return this.lockerType;
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public Address getMailingAddress() {
                return this.mailingAddress;
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public String getName() {
                return this.name;
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public String getPostalCode() {
                return this.postalCode;
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public String getStatus() {
                return this.status;
            }

            public int hashCode() {
                int hashCode = ((((((((((((((((this.status.hashCode() * 31) + this.costCentreId.hashCode()) * 31) + this.hoursOfOperation.hashCode()) * 31) + this.lockerLocationIndicator.hashCode()) * 31) + this.lockerType.hashCode()) * 31) + this.mailingAddress.hashCode()) * 31) + this.name.hashCode()) * 31) + this.postalCode.hashCode()) * 31) + Boolean.hashCode(this.isSaved)) * 31;
                String str = this.alias;
                return hashCode + (str == null ? 0 : str.hashCode());
            }

            @Override // ca.canadapost.core.data.flex.model.FlexLocation.FlexLocationItem.FlexOrApl
            public boolean isSaved() {
                return this.isSaved;
            }

            public String toString() {
                return "Apl(status=" + this.status + ", costCentreId=" + this.costCentreId + ", hoursOfOperation=" + this.hoursOfOperation + ", lockerLocationIndicator=" + this.lockerLocationIndicator + ", lockerType=" + this.lockerType + ", mailingAddress=" + this.mailingAddress + ", name=" + this.name + ", postalCode=" + this.postalCode + ", isSaved=" + this.isSaved + ", alias=" + this.alias + ")";
            }

            public /* synthetic */ Apl(String str, String str2, List list, String str3, String str4, Address address, String str5, String str6, boolean z10, String str7, int i10, k kVar) {
                this(str, str2, list, str3, str4, address, str5, str6, (i10 & 256) != 0 ? false : z10, str7);
            }
        }

        public /* synthetic */ FlexLocationItem(Address address, Flex flex, Apl apl, boolean z10, String str, String str2, String str3, String str4, String str5, List list, String str6, List list2, FlexSupportedLanguages flexSupportedLanguages, int i10, k kVar) {
            this(address, (i10 & 2) != 0 ? null : flex, (i10 & 4) != 0 ? null : apl, z10, (i10 & 16) != 0 ? null : str, str2, str3, str4, str5, (i10 & 512) != 0 ? null : list, (i10 & UserMetadata.MAX_ATTRIBUTE_SIZE) != 0 ? null : str6, (i10 & 2048) != 0 ? null : list2, (i10 & 4096) != 0 ? null : flexSupportedLanguages);
        }
    }
}
