package com.bytedance.sdk.component.adexpress.dynamic.dynamicview;

import android.content.Context;
import android.text.TextUtils;

/* JADX INFO: loaded from: classes.dex */
public class fhx extends ajl {
    String fm;
    com.bytedance.sdk.component.adexpress.dynamic.yz.wu ro;

    public fhx(Context context, DynamicRootView dynamicRootView, com.bytedance.sdk.component.adexpress.dynamic.yz.wu wuVar, String str) {
        super(context, dynamicRootView, wuVar);
        this.fm = str;
        this.ro = wuVar;
        com.bytedance.sdk.component.adexpress.ajl.vt lottieView = getLottieView();
        if (lottieView != null) {
            addView(lottieView, getWidgetLayoutParams());
        }
    }

    private com.bytedance.sdk.component.adexpress.ajl.vt getLottieView() {
        com.bytedance.sdk.component.adexpress.dynamic.yz.wu wuVar = this.dsz;
        if (wuVar == null || wuVar.vt() == null || this.ku == null || TextUtils.isEmpty(this.fm)) {
            return null;
        }
        com.bytedance.sdk.component.adexpress.dynamic.yz.ajl ajlVarJnr = this.dsz.vt().jnr();
        String strRka = ajlVarJnr != null ? ajlVarJnr.rka() : "";
        if (TextUtils.isEmpty(strRka)) {
            return null;
        }
        String strH = b.h(new StringBuilder(), this.fm, "static/lotties/", strRka, ".json");
        com.bytedance.sdk.component.adexpress.ajl.vt vtVar = new com.bytedance.sdk.component.adexpress.ajl.vt(this.ku);
        vtVar.setImageLottieTosPath(strH);
        vtVar.wu();
        return vtVar;
    }
}
