package com.strmr.ps.data.model.addon;

import androidx.media3.container.NalUnitUtil;
import androidx.media3.exoplayer.rtsp.SessionDescription;
import androidx.media3.extractor.text.ttml.TtmlNode;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;
import defpackage.cr4;
import defpackage.fi7;
import defpackage.ik2;
import defpackage.kp6;
import defpackage.n89;
import defpackage.pq6;
import defpackage.uz1;
import defpackage.vw2;
import java.util.List;
import kotlin.Metadata;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u00004\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\b\n\u0002\b%\b\u0086\b\u0018\u0000 42\u00020\u0001:\u00014Bw\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u0003\u0012\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u0003\u0012\u0010\b\u0002\u0010\t\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\n\u0012\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u0003\u0012\b\b\u0002\u0010\r\u001a\u00020\u000e\u0012\n\b\u0002\u0010\u000f\u001a\u0004\u0018\u00010\u0010\u0012\n\b\u0002\u0010\u0011\u001a\u0004\u0018\u00010\u0010¢\u0006\u0004\b\u0012\u0010\u0013J\t\u0010$\u001a\u00020\u0003HÆ\u0003J\t\u0010%\u001a\u00020\u0003HÆ\u0003J\t\u0010&\u001a\u00020\u0006HÆ\u0003J\u000b\u0010'\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010(\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u0011\u0010)\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\nHÆ\u0003J\u000b\u0010*\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\t\u0010+\u001a\u00020\u000eHÆ\u0003J\u0010\u0010,\u001a\u0004\u0018\u00010\u0010HÆ\u0003¢\u0006\u0002\u0010!J\u0010\u0010-\u001a\u0004\u0018\u00010\u0010HÆ\u0003¢\u0006\u0002\u0010!J\u0084\u0001\u0010.\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u00032\b\b\u0002\u0010\u0005\u001a\u00020\u00062\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\b\u001a\u0004\u0018\u00010\u00032\u0010\b\u0002\u0010\t\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\n2\n\b\u0002\u0010\f\u001a\u0004\u0018\u00010\u00032\b\b\u0002\u0010\r\u001a\u00020\u000e2\n\b\u0002\u0010\u000f\u001a\u0004\u0018\u00010\u00102\n\b\u0002\u0010\u0011\u001a\u0004\u0018\u00010\u0010HÆ\u0001¢\u0006\u0002\u0010/J\u0013\u00100\u001a\u00020\u000e2\b\u00101\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u00102\u001a\u00020\u0010HÖ\u0001J\t\u00103\u001a\u00020\u0003HÖ\u0001R\u0016\u0010\u0002\u001a\u00020\u00038\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0014\u0010\u0015R\u0016\u0010\u0004\u001a\u00020\u00038\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0016\u0010\u0015R\u0016\u0010\u0005\u001a\u00020\u00068\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0018R\u0018\u0010\u0007\u001a\u0004\u0018\u00010\u00038\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u0015R\u0018\u0010\b\u001a\u0004\u0018\u00010\u00038\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001a\u0010\u0015R\u001e\u0010\t\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\n8\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001b\u0010\u001cR\u0018\u0010\f\u001a\u0004\u0018\u00010\u00038\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001d\u0010\u0015R\u0016\u0010\r\u001a\u00020\u000e8\u0006X\u0087\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001e\u0010\u001fR\u001a\u0010\u000f\u001a\u0004\u0018\u00010\u00108\u0006X\u0087\u0004¢\u0006\n\n\u0002\u0010\"\u001a\u0004\b \u0010!R\u001a\u0010\u0011\u001a\u0004\u0018\u00010\u00108\u0006X\u0087\u0004¢\u0006\n\n\u0002\u0010\"\u001a\u0004\b#\u0010!¨\u00065"}, d2 = {"Lcom/strmr/ps/data/model/addon/AddonConfigField;", "", TtmlNode.ATTR_ID, "", "label", SessionDescription.ATTR_TYPE, "Lcom/strmr/ps/data/model/addon/ConfigFieldType;", "description", "defaultValue", "options", "", "Lcom/strmr/ps/data/model/addon/ConfigOption;", "urlPlaceholder", "required", "", "min", "", "max", "<init>", "(Ljava/lang/String;Ljava/lang/String;Lcom/strmr/ps/data/model/addon/ConfigFieldType;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;ZLjava/lang/Integer;Ljava/lang/Integer;)V", "getId", "()Ljava/lang/String;", "getLabel", "getType", "()Lcom/strmr/ps/data/model/addon/ConfigFieldType;", "getDescription", "getDefaultValue", "getOptions", "()Ljava/util/List;", "getUrlPlaceholder", "getRequired", "()Z", "getMin", "()Ljava/lang/Integer;", "Ljava/lang/Integer;", "getMax", "component1", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "component10", "copy", "(Ljava/lang/String;Ljava/lang/String;Lcom/strmr/ps/data/model/addon/ConfigFieldType;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;ZLjava/lang/Integer;Ljava/lang/Integer;)Lcom/strmr/ps/data/model/addon/AddonConfigField;", "equals", "other", "hashCode", "toString", "Companion", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
public final /* data */ class AddonConfigField {

    /* JADX INFO: renamed from: Companion, reason: from kotlin metadata */
    @kp6
    public static final Companion INSTANCE = new Companion(null);

    @kp6
    private static final Gson gson = new Gson();

    @SerializedName("defaultValue")
    @pq6
    private final String defaultValue;

    @SerializedName("description")
    @pq6
    private final String description;

    @SerializedName(TtmlNode.ATTR_ID)
    @kp6
    private final String id;

    @SerializedName("label")
    @kp6
    private final String label;

    @SerializedName("max")
    @pq6
    private final Integer max;

    @SerializedName("min")
    @pq6
    private final Integer min;

    @SerializedName("options")
    @pq6
    private final List<ConfigOption> options;

    @SerializedName("required")
    private final boolean required;

    @SerializedName(SessionDescription.ATTR_TYPE)
    @kp6
    private final ConfigFieldType type;

    @SerializedName("urlPlaceholder")
    @pq6
    private final String urlPlaceholder;

    @Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u0014\u0010\u0006\u001a\u00020\u00072\f\u0010\b\u001a\b\u0012\u0004\u0012\u00020\n0\tJ\u0016\u0010\u000b\u001a\b\u0012\u0004\u0012\u00020\n0\t2\b\u0010\f\u001a\u0004\u0018\u00010\u0007R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\r"}, d2 = {"Lcom/strmr/ps/data/model/addon/AddonConfigField$Companion;", "", "<init>", "()V", "gson", "Lcom/google/gson/Gson;", "toJson", "", "fields", "", "Lcom/strmr/ps/data/model/addon/AddonConfigField;", "fromJson", "json", "app_sideloadRelease"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
    public static final class Companion {
        public /* synthetic */ Companion(uz1 uz1Var) {
            this();
        }

        @kp6
        public final List<AddonConfigField> fromJson(@pq6 String json) {
            ik2 ik2Var = ik2.a;
            if (json != null && !n89.ab(json)) {
                try {
                    List<AddonConfigField> list = (List) AddonConfigField.gson.fromJson(json, new TypeToken<List<? extends AddonConfigField>>() { // from class: com.strmr.ps.data.model.addon.AddonConfigField$Companion$fromJson$type$1
                    }.getType());
                    return list == null ? ik2Var : list;
                } catch (Exception unused) {
                }
            }
            return ik2Var;
        }

        @kp6
        public final String toJson(@kp6 List<AddonConfigField> fields) {
            cr4.g(fields, "fields");
            String json = AddonConfigField.gson.toJson(fields);
            cr4.f(json, "toJson(...)");
            return json;
        }

        private Companion() {
        }
    }

    public AddonConfigField(@kp6 String str, @kp6 String str2, @kp6 ConfigFieldType configFieldType, @pq6 String str3, @pq6 String str4, @pq6 List<ConfigOption> list, @pq6 String str5, boolean z, @pq6 Integer num, @pq6 Integer num2) {
        cr4.g(str, TtmlNode.ATTR_ID);
        cr4.g(str2, "label");
        cr4.g(configFieldType, SessionDescription.ATTR_TYPE);
        this.id = str;
        this.label = str2;
        this.type = configFieldType;
        this.description = str3;
        this.defaultValue = str4;
        this.options = list;
        this.urlPlaceholder = str5;
        this.required = z;
        this.min = num;
        this.max = num2;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ AddonConfigField copy$default(AddonConfigField addonConfigField, String str, String str2, ConfigFieldType configFieldType, String str3, String str4, List list, String str5, boolean z, Integer num, Integer num2, int i, Object obj) {
        if ((i & 1) != 0) {
            str = addonConfigField.id;
        }
        if ((i & 2) != 0) {
            str2 = addonConfigField.label;
        }
        if ((i & 4) != 0) {
            configFieldType = addonConfigField.type;
        }
        if ((i & 8) != 0) {
            str3 = addonConfigField.description;
        }
        if ((i & 16) != 0) {
            str4 = addonConfigField.defaultValue;
        }
        if ((i & 32) != 0) {
            list = addonConfigField.options;
        }
        if ((i & 64) != 0) {
            str5 = addonConfigField.urlPlaceholder;
        }
        if ((i & 128) != 0) {
            z = addonConfigField.required;
        }
        if ((i & 256) != 0) {
            num = addonConfigField.min;
        }
        if ((i & 512) != 0) {
            num2 = addonConfigField.max;
        }
        Integer num3 = num;
        Integer num4 = num2;
        String str6 = str5;
        boolean z2 = z;
        String str7 = str4;
        List list2 = list;
        return addonConfigField.copy(str, str2, configFieldType, str3, str7, list2, str6, z2, num3, num4);
    }

    @kp6
    /* JADX INFO: renamed from: component1, reason: from getter */
    public final String getId() {
        return this.id;
    }

    @pq6
    /* JADX INFO: renamed from: component10, reason: from getter */
    public final Integer getMax() {
        return this.max;
    }

    @kp6
    /* JADX INFO: renamed from: component2, reason: from getter */
    public final String getLabel() {
        return this.label;
    }

    @kp6
    /* JADX INFO: renamed from: component3, reason: from getter */
    public final ConfigFieldType getType() {
        return this.type;
    }

    @pq6
    /* JADX INFO: renamed from: component4, reason: from getter */
    public final String getDescription() {
        return this.description;
    }

    @pq6
    /* JADX INFO: renamed from: component5, reason: from getter */
    public final String getDefaultValue() {
        return this.defaultValue;
    }

    @pq6
    public final List<ConfigOption> component6() {
        return this.options;
    }

    @pq6
    /* JADX INFO: renamed from: component7, reason: from getter */
    public final String getUrlPlaceholder() {
        return this.urlPlaceholder;
    }

    /* JADX INFO: renamed from: component8, reason: from getter */
    public final boolean getRequired() {
        return this.required;
    }

    @pq6
    /* JADX INFO: renamed from: component9, reason: from getter */
    public final Integer getMin() {
        return this.min;
    }

    @kp6
    public final AddonConfigField copy(@kp6 String id, @kp6 String label, @kp6 ConfigFieldType type, @pq6 String description, @pq6 String defaultValue, @pq6 List<ConfigOption> options, @pq6 String urlPlaceholder, boolean required, @pq6 Integer min, @pq6 Integer max) {
        cr4.g(id, TtmlNode.ATTR_ID);
        cr4.g(label, "label");
        cr4.g(type, SessionDescription.ATTR_TYPE);
        return new AddonConfigField(id, label, type, description, defaultValue, options, urlPlaceholder, required, min, max);
    }

    public boolean equals(@pq6 Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof AddonConfigField)) {
            return false;
        }
        AddonConfigField addonConfigField = (AddonConfigField) other;
        return cr4.b(this.id, addonConfigField.id) && cr4.b(this.label, addonConfigField.label) && this.type == addonConfigField.type && cr4.b(this.description, addonConfigField.description) && cr4.b(this.defaultValue, addonConfigField.defaultValue) && cr4.b(this.options, addonConfigField.options) && cr4.b(this.urlPlaceholder, addonConfigField.urlPlaceholder) && this.required == addonConfigField.required && cr4.b(this.min, addonConfigField.min) && cr4.b(this.max, addonConfigField.max);
    }

    @pq6
    public final String getDefaultValue() {
        return this.defaultValue;
    }

    @pq6
    public final String getDescription() {
        return this.description;
    }

    @kp6
    public final String getId() {
        return this.id;
    }

    @kp6
    public final String getLabel() {
        return this.label;
    }

    @pq6
    public final Integer getMax() {
        return this.max;
    }

    @pq6
    public final Integer getMin() {
        return this.min;
    }

    @pq6
    public final List<ConfigOption> getOptions() {
        return this.options;
    }

    public final boolean getRequired() {
        return this.required;
    }

    @kp6
    public final ConfigFieldType getType() {
        return this.type;
    }

    @pq6
    public final String getUrlPlaceholder() {
        return this.urlPlaceholder;
    }

    public int hashCode() {
        int iHashCode = (this.type.hashCode() + vw2.b(this.id.hashCode() * 31, 31, this.label)) * 31;
        String str = this.description;
        int iHashCode2 = (iHashCode + (str == null ? 0 : str.hashCode())) * 31;
        String str2 = this.defaultValue;
        int iHashCode3 = (iHashCode2 + (str2 == null ? 0 : str2.hashCode())) * 31;
        List<ConfigOption> list = this.options;
        int iHashCode4 = (iHashCode3 + (list == null ? 0 : list.hashCode())) * 31;
        String str3 = this.urlPlaceholder;
        int iC = fi7.c((iHashCode4 + (str3 == null ? 0 : str3.hashCode())) * 31, 31, this.required);
        Integer num = this.min;
        int iHashCode5 = (iC + (num == null ? 0 : num.hashCode())) * 31;
        Integer num2 = this.max;
        return iHashCode5 + (num2 != null ? num2.hashCode() : 0);
    }

    @kp6
    public String toString() {
        String str = this.id;
        String str2 = this.label;
        ConfigFieldType configFieldType = this.type;
        String str3 = this.description;
        String str4 = this.defaultValue;
        List<ConfigOption> list = this.options;
        String str5 = this.urlPlaceholder;
        boolean z = this.required;
        Integer num = this.min;
        Integer num2 = this.max;
        StringBuilder sbM = fi7.m("AddonConfigField(id=", str, ", label=", str2, ", type=");
        sbM.append(configFieldType);
        sbM.append(", description=");
        sbM.append(str3);
        sbM.append(", defaultValue=");
        sbM.append(str4);
        sbM.append(", options=");
        sbM.append(list);
        sbM.append(", urlPlaceholder=");
        sbM.append(str5);
        sbM.append(", required=");
        sbM.append(z);
        sbM.append(", min=");
        sbM.append(num);
        sbM.append(", max=");
        sbM.append(num2);
        sbM.append(")");
        return sbM.toString();
    }

    public /* synthetic */ AddonConfigField(String str, String str2, ConfigFieldType configFieldType, String str3, String str4, List list, String str5, boolean z, Integer num, Integer num2, int i, uz1 uz1Var) {
        this(str, str2, configFieldType, (i & 8) != 0 ? null : str3, (i & 16) != 0 ? null : str4, (i & 32) != 0 ? null : list, (i & 64) != 0 ? null : str5, (i & 128) != 0 ? false : z, (i & 256) != 0 ? null : num, (i & 512) != 0 ? null : num2);
    }
}
