package com.ss.android.ugc.aweme.setting.page.datasave.zerorating;

import X.AnonymousClass4S6;
import X.DaP;
import X.M12;
import X.OJn;
import X.Qeg;
import android.view.View;
import com.bytedance.covode.number.Covode;
import com.bytedance.router.SmartRoute;
import com.bytedance.router.SmartRouter;
import com.ss.android.ugc.aweme.api.IZeroRatingService;
import com.ss.android.ugc.aweme.zerorating.ZeroRatingServiceImpl;
import kotlin.h.b.n;

public final class FreeDataCell extends FreeDataCommonCell<AnonymousClass4S6> {
    public AnonymousClass4S6 LIZ;

    static {
        Covode.recordClassIndex(105988);
    }

    public final void onClick(View view) {
        String str;
        String str2;
        View view2 = this.itemView;
        String str3 = "";
        n.LIZIZ(view2, str3);
        SmartRoute buildRoute = SmartRouter.buildRoute(view2.getContext(), "aweme://webview");
        AnonymousClass4S6 r0 = this.LIZ;
        if (r0 != null) {
            str = r0.LJ;
        } else {
            str = null;
        }
        buildRoute.withParam("url", str);
        buildRoute.open();
        IZeroRatingService LJFF = ZeroRatingServiceImpl.LJFF();
        n.LIZIZ(LJFF, str3);
        OJn LIZJ = LJFF.LIZJ();
        AnonymousClass4S6 r02 = this.LIZ;
        if (!(r02 == null || (str2 = r02.LIZLLL) == null)) {
            str3 = str2;
        }
        LIZJ.LIZJ(str3);
    }

    public final /* synthetic */ void LIZ(DaP daP) {
        AnonymousClass4S6 r6 = (AnonymousClass4S6) daP;
        M12.LIZ(r6);
        super.LIZ(r6);
        this.LIZ = r6;
        Qeg findViewById = this.itemView.findViewById(2131365195);
        Qeg findViewById2 = this.itemView.findViewById(2131365192);
        n.LIZIZ(findViewById, "");
        findViewById.setText(r6.LIZ);
        n.LIZIZ(findViewById2, "");
        findViewById2.setText(r6.LIZIZ);
        this.itemView.findViewById(2131365193).setImageURI(r6.LIZJ);
    }
}
