package X; import android.content.Context; import com.bytedance.android.live.base.model.user.User; import com.bytedance.android.live.share.IShareService; import com.bytedance.android.live.usermanage.IUserManageService; import com.bytedance.android.livesdk.model.UserAttr; import com.bytedance.android.livesdkapi.depend.model.live.Room; import com.bytedance.android.livesdkapi.host.IHostApp; import com.bytedance.covode.number.Covode; import com.bytedance.ies.sdk.datachannel.DataChannel; import com.bytedance.ies.sdk.datachannel.DataChannelGlobal; import kotlin.g.b.m; public final class C4Q extends C4T implements AbstractC35155DrM { public boolean LIZ = true; public final DZN LIZIZ; public final DataChannel LIZJ; public AbstractC21780tj LIZLLL; public Room LJ; public DialogC34152DbB LJFF; static { Covode.recordClassIndex(6672); } public C4Q(DZN dzn) { C21090sc.LIZ(dzn); this.LIZIZ = dzn; this.LIZJ = dzn.LJFF; } @Override // X.AbstractC35155DrM public final void LIZ() { User user; this.LIZIZ.dismiss(); Room room = (Room) DataChannelGlobal.LIZLLL.LIZIZ(C35043DpY.class); if (room != null) { DataChannel dataChannel = this.LIZJ; String str = null; if (dataChannel != null) { str = (String) dataChannel.LIZIZ(C35054Dpj.class); } CSZ LIZ2 = C31323CSa.LIZ(room); if (room.getOwner() != null) { AbstractC524424z LIZ3 = C524124w.LIZ(IHostApp.class); m.LIZIZ(LIZ3, ""); LIZ2.LJIIJJI = "www.tiktok.com/@" + C32548CqP.LIZIZ(room.getOwner()) + "/live?source=" + (((IHostApp) LIZ3).isInMusicallyRegion() ? "h5_m" : "h5_t") + "&_r=1"; } AbstractC31784Ce5 LIZIZ2 = C30146Bsl.LIZ().LIZIZ(); m.LIZIZ(LIZIZ2, ""); LIZ2.LIZLLL = LIZIZ2.LIZJ(); LIZ2.LJIJJLI = room.getId(); LIZ2.LJIL = room.getOwnerUserId(); m.LIZIZ(LIZ2, ""); LIZ2.LJIJI = C30356Bw9.LIZ.LJIIJ(); String LIZ4 = C30356Bw9.LIZ.LIZ(); String LIZLLL2 = C30356Bw9.LIZ.LIZLLL(); if (room.getOwner() != null) { User owner = room.getOwner(); m.LIZIZ(owner, ""); if (owner.getSecret() == 1) { Context context = this.LIZIZ.getContext(); long id = room.getId(); long ownerUserId = room.getOwnerUserId(); long ownerUserId2 = room.getOwnerUserId(); User owner2 = room.getOwner(); m.LIZIZ(owner2, ""); ((IUserManageService) C524124w.LIZ(IUserManageService.class)).report(context, new C30480By9(id, ownerUserId, ownerUserId2, owner2.getSecUid(), "anchor_profile", LIZ4, LIZLLL2, str, "report_anchor", C30356Bw9.LIZ.LJIIJ(), new C30388Bwf(this.LIZJ, "user_live_duration"))); return; } } boolean z = false; DataChannel dataChannel2 = this.LIZJ; if (!(dataChannel2 == null || (user = (User) dataChannel2.LIZIZ(C30545BzC.class)) == null || user.getUserAttr() == null)) { UserAttr userAttr = user.getUserAttr(); m.LIZIZ(userAttr, ""); if (userAttr.LIZIZ) { z = true; } } AbstractC30707C4i share = ((IShareService) C524124w.LIZ(IShareService.class)).share(); ActivityC31021Kp LIZ5 = C31482CYd.LIZ(this.LIZIZ.getContext()); LIZ2.LJIILIIL = room.getAnchorShareText(); LIZ2.LJIILLIIL = true; LIZ2.LJIIZILJ = z; LIZ2.LJIJ = EnumC31314CRr.SHARE.isRedDotShowing(this.LIZJ); LIZ2.LJIJJ = str; share.LIZ(LIZ5, LIZ2.LIZ(), new C4R()); C39704FiX.LIZ(this.LIZIZ.getContext()).LIZ(room.getIdStr(), room.getId()); } } /* JADX DEBUG: Method arguments types fixed to match base method, original types: [X.C4V] */ @Override // X.C34479DgS public final /* synthetic */ void LIZ(C4U c4u) { super.LIZ(c4u); this.LJ = (Room) DataChannelGlobal.LIZLLL.LIZIZ(C35043DpY.class); } @Override // X.C34479DgS public final void LJI() { AbstractC21780tj r0 = this.LIZLLL; if (r0 != null) { r0.dispose(); } DialogC34152DbB dbB = this.LJFF; if (dbB != null) { dbB.dismiss(); } } }