package X; import android.app.Activity; import android.content.Context; import android.net.Uri; import android.view.View; import com.bytedance.covode.number.Covode; import com.ss.android.ugc.aweme.ecommerce.common.view.CommerceHybridBottomSheetDialogFragment; import com.ss.android.ugc.aweme.ecommerce.review.ProductReviewViewModel; import com.ss.android.ugc.aweme.ecommerce.review.repo.dto.ReviewItemStruct; import com.ss.android.ugc.aweme.ecommerce.track.TrackerProvider; import java.util.HashMap; import java.util.Map; import java.util.Objects; import kotlin.g.b.m; /* renamed from: X.3QF reason: invalid class name */ public final class AnonymousClass3QF extends AnonymousClass1PL implements AnonymousClass1IM<View, C23860x5> { public final /* synthetic */ ProductReviewViewModel LIZ; public final /* synthetic */ AnonymousClass0A7 LIZIZ; public final /* synthetic */ Context LIZJ; public final /* synthetic */ ReviewItemStruct LIZLLL; public final /* synthetic */ String LJ; static { Covode.recordClassIndex(63268); } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass3QF(ProductReviewViewModel productReviewViewModel, AnonymousClass0A7 r3, Context context, ReviewItemStruct reviewItemStruct, String str) { super(1); this.LIZ = productReviewViewModel; this.LIZIZ = r3; this.LIZJ = context; this.LIZLLL = reviewItemStruct; this.LJ = str; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ /* JADX WARNING: Code restructure failed: missing block: B:31:0x00fe, code lost: if (r0 != null) goto L_0x0028; */ @Override // X.AnonymousClass1IM public final /* synthetic */ C23860x5 invoke(View view) { Map map; String str; C21090sc.LIZ(view); if (this.LIZIZ != null) { float LIZ2 = ((float) (AnonymousClass3BN.LIZIZ - (C47201td.LIZ(this.LIZJ) + C47201td.LIZIZ(this.LIZJ)))) * 0.95f; Context context = this.LIZJ; C40921jV r3 = null; if (context != null) { Activity LIZ3 = C45170HoV.LIZ(context); Objects.requireNonNull(LIZ3, "null cannot be cast to non-null type androidx.fragment.app.FragmentActivity"); ActivityC31021Kp r2 = (ActivityC31021Kp) LIZ3; C03260Bv LIZ4 = C03270Bw.LIZ(r2, (AbstractC03240Bt) null); if (C09030Ya.LIZ) { C03210Bq.LIZ(LIZ4, r2); } AbstractC03220Br LIZ5 = LIZ4.LIZ(TrackerProvider.class); m.LIZIZ(LIZ5, ""); Object obj = ((TrackerProvider) LIZ5).LIZ; if (obj instanceof C40921jV) { r3 = obj; } C40921jV r32 = r3; if (r32 != null) { map = r32.LIZ; } } map = new HashMap(); Map LIZLLL2 = AnonymousClass1YE.LIZLLL(map); ReviewItemStruct.User user = this.LIZLLL.LJI; if (user == null || (str = user.LIZ) == null) { str = ""; } LIZLLL2.put("review_author_id", str); String str2 = this.LJ; if (str2 == null) { str2 = ""; } LIZLLL2.put("review_id", str2); LIZLLL2.remove("page_name"); LIZLLL2.put("previous_page", "product_review"); String uri = AnonymousClass287.LIZ.LIZ("https://oec-api.tiktokv.com/view/fe_tiktok_ecommerce_review_report/index.html/", AnonymousClass1YE.LIZJ(new C23760wv("__INTERNAL_ROUTE__", "reasons"), new C23760wv("review_id", this.LJ), new C23760wv("track_params", LIZLLL2))).build().toString(); m.LIZIZ(uri, ""); String str3 = AnonymousClass3O4.LIZIZ.LIZ().LIZ ? "aweme://webview" : "bullet://bullet"; AnonymousClass3QA r6 = CommerceHybridBottomSheetDialogFragment.LJIIL; Uri build = AnonymousClass287.LIZ.LIZ(str3, AnonymousClass1YE.LIZJ(new C23760wv("url", uri))).build(); m.LIZIZ(build, ""); r6.LIZ((AnonymousClass3QA) build, (Uri) ((int) LIZ2), (int) this.LIZIZ, (AnonymousClass0A7) "report_page", (String) false); } C59120NJd nJd = this.LIZ.LIZIZ; if (nJd != null) { nJd.LIZ(this.LIZLLL, "report_issue"); } return C23860x5.LIZ; } }