package com.bytedance.adsdk.ugeno;

import android.content.Context;
import android.graphics.Color;
import android.text.TextUtils;
import android.view.View;
import com.bytedance.adsdk.ugeno.core.duv;
import com.bytedance.adsdk.ugeno.wsy.wu;
import org.json.JSONArray;
import org.json.JSONObject;

/* JADX INFO: loaded from: classes.dex */
@Deprecated
public class lb extends com.bytedance.adsdk.ugeno.ro.fm<com.bytedance.adsdk.ugeno.ajl.ro> {
    private com.bytedance.adsdk.ugeno.ro.lb bp;
    private String cyr;
    private String ex;

    /* JADX INFO: renamed from: ff, reason: collision with root package name */
    private float f6365ff;

    /* JADX INFO: renamed from: kc, reason: collision with root package name */
    private float f6366kc;
    private int ky;

    /* JADX INFO: renamed from: le, reason: collision with root package name */
    private float f6367le;
    private float lsa;
    private int oy;
    private boolean po;
    private float rbn;
    private boolean ucr;
    private JSONArray ug;
    private float vod;
    private boolean wjb;

    public lb(Context context) {
        super(context);
        this.ucr = true;
        this.po = true;
        this.vod = 0.0f;
        this.lsa = 2000.0f;
        this.ex = "normal";
        this.wjb = true;
        this.ky = Color.parseColor("#666666");
        this.oy = Color.parseColor("#ffffff");
    }

    @Override // com.bytedance.adsdk.ugeno.ro.fm
    public void fm(com.bytedance.adsdk.ugeno.ro.lb lbVar) {
        this.bp = lbVar;
    }

    @Override // com.bytedance.adsdk.ugeno.ro.fm, com.bytedance.adsdk.ugeno.ro.lb
    public void ro() {
        super.ro();
        JSONArray jSONArray = this.ug;
        if (jSONArray == null || jSONArray.length() <= 0) {
            return;
        }
        ((com.bytedance.adsdk.ugeno.ajl.ro) this.jnr).wu((int) this.f6365ff).ef((int) this.f6367le).vt((int) this.rbn).lb(this.wjb).ajl(this.oy).wsy(this.ky).lb(this.ex).yz(this.ucr).jnr(this.f6366kc).fm(this.po).yz((int) this.lsa).lb(this.wjb);
        for (int i10 = 0; i10 < this.ug.length(); i10++) {
            duv duvVar = new duv(this.ro);
            duvVar.fm(this.jn);
            com.bytedance.adsdk.ugeno.ro.lb<View> lbVarRo = duvVar.ro(this.bp.ol(), (com.bytedance.adsdk.ugeno.ro.lb<View>) null);
            duvVar.ro(this.ug.optJSONObject(i10));
            ((com.bytedance.adsdk.ugeno.ajl.ro) this.jnr).fm(lbVarRo);
        }
        if (this.po) {
            ((com.bytedance.adsdk.ugeno.ajl.ro) this.jnr).lb();
        }
    }

    @Override // com.bytedance.adsdk.ugeno.ro.lb
    public void fm(JSONObject jSONObject) {
    }

    @Override // com.bytedance.adsdk.ugeno.ro.lb
    public View fm() {
        com.bytedance.adsdk.ugeno.ajl.ro roVar = new com.bytedance.adsdk.ugeno.ajl.ro(this.ro);
        this.jnr = roVar;
        roVar.fm((yz) this);
        return this.jnr;
    }

    public void fm(com.bytedance.adsdk.ugeno.ajl.lb lbVar) {
        T t10 = this.jnr;
        if (t10 != 0) {
            ((com.bytedance.adsdk.ugeno.ajl.ro) t10).setOnPageChangeListener(lbVar);
        }
    }

    public void fm(int i10) {
        T t10 = this.jnr;
        if (t10 != 0) {
            ((com.bytedance.adsdk.ugeno.ajl.ro) t10).onz(i10);
        }
    }

    @Override // com.bytedance.adsdk.ugeno.ro.lb
    public void fm(String str, String str2) {
        super.fm(str, str2);
        if (TextUtils.isEmpty(str)) {
        }
        str.getClass();
        switch (str) {
            case "delayStart":
                this.vod = com.bytedance.adsdk.ugeno.wsy.lb.fm(str2, 0.0f);
                break;
            case "indicatorColor":
                this.ky = com.bytedance.adsdk.ugeno.wsy.fm.fm(str2);
                break;
            case "nextMargin":
                this.rbn = wu.fm(this.ro, com.bytedance.adsdk.ugeno.wsy.lb.fm(str2, 0.0f));
                break;
            case "effect":
                this.ex = str2;
                break;
            case "direction":
                this.cyr = str2;
                break;
            case "indicator":
                this.wjb = com.bytedance.adsdk.ugeno.wsy.lb.fm(str2, true);
                break;
            case "previousMargin":
                this.f6367le = wu.fm(this.ro, com.bytedance.adsdk.ugeno.wsy.lb.fm(str2, 0.0f));
                break;
            case "loop":
                this.ucr = com.bytedance.adsdk.ugeno.wsy.lb.fm(str2, true);
                break;
            case "speed":
                this.lsa = com.bytedance.adsdk.ugeno.wsy.lb.fm(str2, 500.0f);
                break;
            case "pageCount":
                this.f6366kc = com.bytedance.adsdk.ugeno.wsy.lb.fm(str2, 1.0f);
                break;
            case "pageMargin":
                this.f6365ff = wu.fm(this.ro, com.bytedance.adsdk.ugeno.wsy.lb.fm(str2, 0.0f));
                break;
            case "indicatorSelectedColor":
                this.oy = com.bytedance.adsdk.ugeno.wsy.fm.fm(str2);
                break;
            case "autoplay":
                this.po = com.bytedance.adsdk.ugeno.wsy.lb.fm(str2, true);
                break;
            case "dataList":
                this.ug = com.bytedance.adsdk.ugeno.wsy.ro.fm(str2, (JSONArray) null);
                break;
        }
    }
}
