package com.revenuecat.purchases.paywalls.components.properties;

import androidx.compose.runtime.Immutable;
import com.revenuecat.purchases.InternalRevenueCatAPI;
import com.revenuecat.purchases.models.Checksum;
import com.revenuecat.purchases.models.Checksum$$serializer;
import com.revenuecat.purchases.utils.serializers.URLSerializer;
import g5.a;
import i5.g;
import j5.b;
import java.net.URL;
import k5.P;
import k5.a0;
import k5.k0;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import w4.InterfaceC3141c;
import w4.t;

/* JADX INFO: loaded from: classes3.dex */
@Immutable
@InternalRevenueCatAPI
public final class VideoUrls {
    public static final Companion Companion = new Companion(null);
    private final Checksum checksum;
    private final Checksum checksumLowRes;
    private final int height;
    private final URL url;
    private final URL urlLowRes;
    private final int width;

    public static final class Companion {
        public /* synthetic */ Companion(h hVar) {
            this();
        }

        public final a serializer() {
            return VideoUrls$$serializer.INSTANCE;
        }

        private Companion() {
        }
    }

    public /* synthetic */ VideoUrls(int i6, int i7, URL url, Checksum checksum, URL url2, Checksum checksum2, h hVar) {
        this(i6, i7, url, checksum, url2, checksum2);
    }

    public static /* synthetic */ void getChecksumLowRes$annotations() {
    }

    public static /* synthetic */ void getUrl$annotations() {
    }

    public static /* synthetic */ void getUrlLowRes$annotations() {
    }

    public static final /* synthetic */ void write$Self$purchases_defaultsBc8Release(VideoUrls videoUrls, b bVar, g gVar) {
        k0 k0Var = k0.f20066a;
        bVar.z(gVar, 0, k0Var, new t(videoUrls.width));
        bVar.z(gVar, 1, k0Var, new t(videoUrls.height));
        URLSerializer uRLSerializer = URLSerializer.INSTANCE;
        bVar.z(gVar, 2, uRLSerializer, videoUrls.url);
        if (bVar.g(gVar) || videoUrls.checksum != null) {
            bVar.E(gVar, 3, Checksum$$serializer.INSTANCE, videoUrls.checksum);
        }
        if (bVar.g(gVar) || videoUrls.urlLowRes != null) {
            bVar.E(gVar, 4, uRLSerializer, videoUrls.urlLowRes);
        }
        if (!bVar.g(gVar) && videoUrls.checksumLowRes == null) {
            return;
        }
        bVar.E(gVar, 5, Checksum$$serializer.INSTANCE, videoUrls.checksumLowRes);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof VideoUrls)) {
            return false;
        }
        VideoUrls videoUrls = (VideoUrls) obj;
        return this.width == videoUrls.width && this.height == videoUrls.height && o.c(this.url, videoUrls.url) && o.c(this.checksum, videoUrls.checksum) && o.c(this.urlLowRes, videoUrls.urlLowRes) && o.c(this.checksumLowRes, videoUrls.checksumLowRes);
    }

    public final /* synthetic */ Checksum getChecksum() {
        return this.checksum;
    }

    public final /* synthetic */ Checksum getChecksumLowRes() {
        return this.checksumLowRes;
    }

    /* JADX INFO: renamed from: getHeight-pVg5ArA, reason: not valid java name */
    public final /* synthetic */ int m622getHeightpVg5ArA() {
        return this.height;
    }

    public final /* synthetic */ URL getUrl() {
        return this.url;
    }

    public final /* synthetic */ URL getUrlLowRes() {
        return this.urlLowRes;
    }

    /* JADX INFO: renamed from: getWidth-pVg5ArA, reason: not valid java name */
    public final /* synthetic */ int m623getWidthpVg5ArA() {
        return this.width;
    }

    public int hashCode() {
        int iHashCode = (this.url.hashCode() + (((this.width * 31) + this.height) * 31)) * 31;
        Checksum checksum = this.checksum;
        int iHashCode2 = (iHashCode + (checksum == null ? 0 : checksum.hashCode())) * 31;
        URL url = this.urlLowRes;
        int iHashCode3 = (iHashCode2 + (url == null ? 0 : url.hashCode())) * 31;
        Checksum checksum2 = this.checksumLowRes;
        return iHashCode3 + (checksum2 != null ? checksum2.hashCode() : 0);
    }

    public String toString() {
        return "VideoUrls(width=" + ((Object) t.a(this.width)) + ", height=" + ((Object) t.a(this.height)) + ", url=" + this.url + ", checksum=" + this.checksum + ", urlLowRes=" + this.urlLowRes + ", checksumLowRes=" + this.checksumLowRes + ')';
    }

    @InterfaceC3141c
    public /* synthetic */ VideoUrls(int i6, t tVar, t tVar2, URL url, Checksum checksum, URL url2, Checksum checksum2, a0 a0Var, h hVar) {
        this(i6, tVar, tVar2, url, checksum, url2, checksum2, a0Var);
    }

    private VideoUrls(int i6, int i7, URL url, Checksum checksum, URL url2, Checksum checksum2) {
        o.h(url, "url");
        this.width = i6;
        this.height = i7;
        this.url = url;
        this.checksum = checksum;
        this.urlLowRes = url2;
        this.checksumLowRes = checksum2;
    }

    private VideoUrls(int i6, t tVar, t tVar2, URL url, Checksum checksum, URL url2, Checksum checksum2, a0 a0Var) {
        if (7 != (i6 & 7)) {
            P.h(i6, 7, VideoUrls$$serializer.INSTANCE.getDescriptor());
            throw null;
        }
        this.width = tVar.f25484a;
        this.height = tVar2.f25484a;
        this.url = url;
        if ((i6 & 8) == 0) {
            this.checksum = null;
        } else {
            this.checksum = checksum;
        }
        if ((i6 & 16) == 0) {
            this.urlLowRes = null;
        } else {
            this.urlLowRes = url2;
        }
        if ((i6 & 32) == 0) {
            this.checksumLowRes = null;
        } else {
            this.checksumLowRes = checksum2;
        }
    }

    public /* synthetic */ VideoUrls(int i6, int i7, URL url, Checksum checksum, URL url2, Checksum checksum2, int i8, h hVar) {
        this(i6, i7, url, (i8 & 8) != 0 ? null : checksum, (i8 & 16) != 0 ? null : url2, (i8 & 32) != 0 ? null : checksum2, null);
    }
}
