package we;

import android.view.View;
import android.view.ViewGroup;
import androidx.recyclerview.widget.d1;
import ie.e2;
import ie.j2;
import ie.s1;
import ie.u1;
import ie.v1;
import ie.w1;
import ie.y1;
import jf.g;
import mf.j;
import org.drive_hunter.R;
import xyz.netfly.ui.live.epg.q;
import xyz.stream.api.entity.LeagueEntity;
import xyz.stream.api.entity.LiveCategoryEntity;
import xyz.stream.api.entity.LiveChannelEntity;
import xyz.stream.api.entity.MainRecordEntity;
import xyz.stream.api.entity.VideoCategoryEntity;
import xyz.stream.view.CustomImageView;
import xyz.stream.view.OnItemListener;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class a implements View.OnFocusChangeListener {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f34277a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ int f34278b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ d1 f34279c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ Object f34280d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ Object f34281e;

    public /* synthetic */ a(d1 d1Var, int i10, Object obj, Object obj2, int i11) {
        this.f34277a = i11;
        this.f34279c = d1Var;
        this.f34278b = i10;
        this.f34280d = obj;
        this.f34281e = obj2;
    }

    @Override // android.view.View.OnFocusChangeListener
    public final void onFocusChange(View view, boolean z10) {
        int i10 = this.f34277a;
        Object obj = this.f34281e;
        Object obj2 = this.f34280d;
        d1 d1Var = this.f34279c;
        switch (i10) {
            case 0:
                b.e((b) d1Var, this.f34278b, (LiveCategoryEntity) obj2, (u1) obj, view, z10);
                break;
            case 1:
                c.e((c) d1Var, (v1) obj2, this.f34278b, (LiveChannelEntity) obj, view, z10);
                break;
            case 2:
                d.e((d) d1Var, this.f34278b, (y1) obj, (LiveCategoryEntity) obj2, view, z10);
                break;
            case 3:
                p000if.d dVar = (p000if.d) d1Var;
                w1 w1Var = (w1) obj2;
                LiveChannelEntity liveChannelEntity = (LiveChannelEntity) obj;
                if (!z10) {
                    dVar.getClass();
                    w1Var.f27619g.setBackgroundResource(R.drawable.shape_radius_black2_24);
                    CustomImageView customImageView = w1Var.f27614b;
                    ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) customImageView.getLayoutParams();
                    marginLayoutParams.leftMargin = 40;
                    marginLayoutParams.rightMargin = 40;
                    customImageView.setLayoutParams(marginLayoutParams);
                    w1Var.f27618f.setVisibility(0);
                    w1Var.f27615c.setVisibility(8);
                } else {
                    OnItemListener onItemListener = dVar.f27814d;
                    if (onItemListener != null) {
                        onItemListener.onItemFocus(view, this.f34278b);
                    }
                    w1Var.f27619g.setBackgroundResource(R.drawable.shape_radius_black2_top_24);
                    CustomImageView customImageView2 = w1Var.f27614b;
                    ViewGroup.MarginLayoutParams marginLayoutParams2 = (ViewGroup.MarginLayoutParams) customImageView2.getLayoutParams();
                    marginLayoutParams2.leftMargin = 140;
                    marginLayoutParams2.rightMargin = 140;
                    customImageView2.setLayoutParams(marginLayoutParams2);
                    w1Var.f27618f.setVisibility(8);
                    w1Var.f27615c.setVisibility(0);
                    q.o().n(liveChannelEntity.getId().intValue(), new p000if.b(dVar, w1Var));
                }
                break;
            case 4:
                g.e((g) d1Var, this.f34278b, (j2) obj2, (MainRecordEntity) obj, view, z10);
                break;
            case 5:
                kf.c.e((kf.c) d1Var, this.f34278b, (e2) obj2, (VideoCategoryEntity.NetworkEntity) obj, view, z10);
                break;
            default:
                j.f((j) d1Var, this.f34278b, (LeagueEntity) obj2, (s1) obj, view, z10);
                break;
        }
    }

    public /* synthetic */ a(c cVar, v1 v1Var, int i10, LiveChannelEntity liveChannelEntity) {
        this.f34277a = 1;
        this.f34279c = cVar;
        this.f34280d = v1Var;
        this.f34278b = i10;
        this.f34281e = liveChannelEntity;
    }

    public /* synthetic */ a(d dVar, int i10, y1 y1Var, LiveCategoryEntity liveCategoryEntity) {
        this.f34277a = 2;
        this.f34279c = dVar;
        this.f34278b = i10;
        this.f34281e = y1Var;
        this.f34280d = liveCategoryEntity;
    }
}
