package com.bytedance.adsdk.ugeno.ef.jnr;

import android.content.Context;
import android.graphics.Color;
import com.bytedance.adsdk.ugeno.ro.lb;

/* JADX INFO: loaded from: classes.dex */
public class ro extends lb<fm> {
    private int cyr;
    private int fm;
    private float po;
    private float ucr;
    private float vod;
    private static final int lsa = Color.parseColor("#FFC642");
    private static final int ex = Color.parseColor("#e3e3e4");

    public ro(Context context) {
        super(context);
        this.fm = lsa;
        this.cyr = ex;
        this.ucr = 4.0f;
        this.po = 20.0f;
    }

    @Override // com.bytedance.adsdk.ugeno.ro.lb
    /* JADX INFO: renamed from: lb, reason: merged with bridge method [inline-methods] */
    public fm fm() {
        fm fmVar = new fm(this.ro);
        fmVar.fm(this);
        return fmVar;
    }

    @Override // com.bytedance.adsdk.ugeno.ro.lb
    public void ro() {
        super.ro();
        if (wbw()) {
            ((fm) this.jnr).fm(this.ucr, this.fm, this.cyr, this.po, (int) this.vod);
        } else {
            ((fm) this.jnr).fm(this.ucr, this.fm, this.cyr, this.po, 5);
        }
    }

    @Override // com.bytedance.adsdk.ugeno.ro.lb
    public void fm(String str, String str2) {
        super.fm(str, str2);
        str.getClass();
        switch (str) {
            case "highLightColor":
            case "highlightColor":
                this.fm = com.bytedance.adsdk.ugeno.wsy.fm.fm(str2);
                break;
            case "lowLightColor":
            case "lowlightColor":
                this.cyr = com.bytedance.adsdk.ugeno.wsy.fm.fm(str2, ex);
                break;
            case "gap":
                this.vod = com.bytedance.adsdk.ugeno.wsy.lb.fm(str2, 0.0f);
                break;
            case "size":
                this.po = com.bytedance.adsdk.ugeno.wsy.lb.fm(str2, 20.0f);
                break;
            case "score":
                this.ucr = com.bytedance.adsdk.ugeno.wsy.lb.fm(str2, 4.0f);
                break;
        }
    }
}
