正在查看: MedEd v5.3.6 应用的 GyanGuruActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MedEd v5.3.6 应用的 GyanGuruActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.gyanguru.ui;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.view.View;
import android.view.Window;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.databinding.DataBinderMapperImpl;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.google.android.material.textfield.TextInputEditText;
import com.google.firebase.crashlytics.internal.common.neuJ.RQYHXsi;
import com.gun0912.tedpermission.provider.qP.gHOpXOGDEolg;
import com.gyanguru.data.local.AIGuruIntentType;
import com.gyanguru.data.local.PredefinedOptionData;
import com.gyanguru.data.remote.GyanGuruFormSelectedFields;
import com.gyanguru.data.remote.GyanGuruNotificationStripe;
import com.gyanguru.domain.data.GyanGuruConfigData;
import com.gyanguru.domain.model.AIGuruChat;
import com.gyanguru.domain.model.AIGuruChatTextData;
import com.gyanguru.domain.model.AIGuruIntent;
import com.gyanguru.ui.GyanGuruActivity;
import com.penpencil.core.network.result.Error;
import com.penpencil.network.response.SuccessResponse;
import com.penpencil.physicswallah.feature.auth.presentation.activity.NeetPGAuthActivity;
import com.penpencil.player_engagement.live_chat.feature.blockscreens.data.model.hqLo.pdCqGbSVuq;
import defpackage.AK0;
import defpackage.R0;
import defpackage.W20;
import defpackage.e0;
import defpackage.eo3;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.ListIterator;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.time.wTiX.HgwdN;
@Metadata
public final class GyanGuruActivity extends RP0<Q5, wN0> implements N, f0 {
public static final int d1 = 0;
public hI H0;
public O7 I0;
public NM0 J0;
public Qh K0;
public H0 L0;
public String M0;
public String N0;
public boolean O0;
public final Handler P0;
public boolean Q0;
public boolean R0;
public boolean S0;
public int T0;
public boolean U0;
public String V0;
public boolean W0;
public final Xc1 X0;
public boolean Y0;
public final Xc1 Z0;
public final Xc1 a1;
public U0 b1;
public final C6<Intent> c1;
public static final class d implements b02, OE0 {
public final Function1 a;
public d(Function1 function1) {
Intrinsics.checkNotNullParameter(function1, HgwdN.kWRhGk);
this.a = function1;
}
public final void a(Object obj) {
this.a.invoke(obj);
}
public final FE0<?> b() {
return this.a;
}
public final boolean equals(Object obj) {
if ((obj instanceof b02) && (obj instanceof OE0)) {
return Intrinsics.b(b(), ((OE0) obj).b());
}
return false;
}
public final int hashCode() {
return b().hashCode();
}
}
public GyanGuruActivity() {
super(new tj(1));
a aVar = a.i;
this.P0 = new Handler(Looper.getMainLooper());
this.S0 = true;
this.X0 = le1.b(new vz(this, 1));
this.Z0 = le1.b(new vj(this, 2));
this.a1 = le1.b(new wz(this, 1));
this.b1 = U0.a;
this.c1 = registerForActivityResult(new A6(), new gp0(this, 2));
}
public static final java.lang.Object X0(com.gyanguru.data.remote.GyanGuruFormSelectedFields r37, com.gyanguru.ui.GyanGuruActivity r38, java.lang.String r39, java.lang.String r40, iT r41, boolean r42, boolean r43, boolean r44, boolean r45) {
throw new UnsupportedOperationException("Method not decompiled: com.gyanguru.ui.GyanGuruActivity.X0(com.gyanguru.data.remote.GyanGuruFormSelectedFields, com.gyanguru.ui.GyanGuruActivity, java.lang.String, java.lang.String, iT, boolean, boolean, boolean, boolean):java.lang.Object");
}
public static void d1(GyanGuruActivity gyanGuruActivity, String str, String str2, GyanGuruFormSelectedFields gyanGuruFormSelectedFields, boolean z, boolean z2, int i) {
int i2;
GyanGuruFormSelectedFields gyanGuruFormSelectedFields2 = (i & 4) != 0 ? null : gyanGuruFormSelectedFields;
boolean z3 = (i & 8) != 0 ? false : z;
boolean z4 = (i & 16) != 0 ? false : z2;
if (gyanGuruActivity.Q0) {
gyanGuruActivity.Q0 = false;
e0 b1 = gyanGuruActivity.b1();
b1.getClass();
FL0 fl0 = FL0.g;
g0 g0Var = b1.f;
g0Var.getClass();
Intrinsics.checkNotNullParameter(fl0, "type");
ArrayList arrayList = g0Var.a;
ListIterator listIterator = arrayList.listIterator(arrayList.size());
while (true) {
if (!listIterator.hasPrevious()) {
i2 = -1;
break;
} else if (((AIGuruChat) listIterator.previous()).getType() == fl0) {
i2 = listIterator.nextIndex();
break;
}
}
if (i2 != -1) {
if (i2 >= 0 && i2 < arrayList.size()) {
((AIGuruChat) arrayList.get(i2)).setPredefinedOptions(null);
arrayList.remove(i2);
}
b1.notifyItemRemoved(i2);
}
RecyclerView recyclerView = b1.n;
if (recyclerView != null) {
M.c(recyclerView, arrayList.size() - 1, 0.0f, false, 28);
}
}
if (gyanGuruActivity.R0) {
gyanGuruActivity.R0 = false;
}
if (gyanGuruActivity.W0) {
gyanGuruActivity.b1().s();
}
if (gyanGuruActivity.U0) {
e0 b12 = gyanGuruActivity.b1();
g0 g0Var2 = b12.f;
Iterator it = g0Var2.a.iterator();
int i3 = 0;
while (true) {
if (!it.hasNext()) {
i3 = -1;
break;
} else if (((AIGuruChat) it.next()).getFillFormCtaData() != null) {
break;
} else {
i3++;
}
}
if (i3 != -1) {
((AIGuruChat) g0Var2.a.get(i3)).setFillFormCtaData(null);
b12.notifyItemChanged(i3);
}
}
if (gyanGuruActivity.S0) {
AIGuruChat aIGuruChat = (AIGuruChat) II.X(gyanGuruActivity.b1().j);
String createdAt = aIGuruChat != null ? aIGuruChat.getCreatedAt() : null;
if (createdAt == null) {
createdAt = "";
}
String m = W20.m();
if (!W20.a(createdAt, m)) {
Intrinsics.d(m);
Intrinsics.checkNotNullParameter(m, "date");
String i4 = eo3.i();
String m2 = W20.m();
Intrinsics.checkNotNullExpressionValue(m2, "getUTCCurrentDate(...)");
gyanGuruActivity.b1().n(new AIGuruChat(i4, null, "6582a7c188c4a0f6997557e6", m2, FL0.f, null, null, null, false, null, false, true, null, null, 0, false, null, 128994, null), false);
}
gyanGuruActivity.S0 = false;
}
gyanGuruActivity.Z0();
Lx.q(HA3.k(gyanGuruActivity), (CoroutineContext) null, (mV) null, new HK0(gyanGuruFormSelectedFields2, gyanGuruActivity, str, str2, (iT) null, z3, z4, true, true), 3);
}
public final void A0(int i) {
int i2 = this.T0;
if (i2 > 0) {
int i3 = i2 - i;
if (i3 <= 0) {
i3 = 0;
}
this.T0 = i3;
R0().o.setPadding(ad.k(0), ad.k(0), ad.k(0), ad.k(this.T0));
}
}
public final void B0(n0 n0Var) {
Intrinsics.checkNotNullParameter(n0Var, "currentType");
U0().m(this.b1, n0Var.name(), false);
}
public final void D0() {
eo3.d(this);
}
public final void I0(int i, T31 t31) {
Intrinsics.checkNotNullParameter(t31, "vb");
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new MK0(this, i, t31, (iT) null), 3);
}
public final void M0(int i) {
if (i <= 0) {
Window window = getWindow();
int i2 = To2.gray_white;
Object obj = dT.a;
window.setStatusBarColor(b.a(this, i2));
ConstraintLayout constraintLayout = R0().b;
Intrinsics.checkNotNullExpressionValue(constraintLayout, "clDeleteToolbar");
constraintLayout.setVisibility(8);
return;
}
ConstraintLayout constraintLayout2 = R0().b;
Intrinsics.checkNotNullExpressionValue(constraintLayout2, "clDeleteToolbar");
constraintLayout2.setVisibility(0);
R0().q.setText(String.valueOf(i));
Window window2 = getWindow();
int i3 = To2.primary_400;
Object obj2 = dT.a;
window2.setStatusBarColor(b.a(this, i3));
}
public final void N0(boolean z) {
this.W0 = z;
}
public final void Q0() {
if (getIntent().hasExtra("EXTRA_FAB_POS_X")) {
setTheme(wr2.AppTheme_Transparent2);
}
}
public final void V0(Ur3 ur3, Et3 et3) {
Intrinsics.checkNotNullParameter((Q5) ur3, "<this>");
Intrinsics.checkNotNullParameter((wN0) et3, "vm");
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new c(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new lL0(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new jL0(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new aL0(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new LK0(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new RK0(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new cL0(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new PK0(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new YK0(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new JK0(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new b(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new UK0(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new a(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new NK0(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new eL0(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new fL0(this, (iT) null), 3);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new gL0(this, (iT) null), 3);
}
public final void Y0(String str) {
String str2;
e0 b1 = b1();
Intrinsics.checkNotNullParameter(this, "context");
String i = eo3.i();
String m = W20.m();
Intrinsics.checkNotNullExpressionValue(m, "getUTCCurrentDate(...)");
FL0 fl0 = FL0.c;
if (str == null) {
String string = getString(Sq2.err_something_went_wrong_from_our_end);
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
str2 = string;
} else {
str2 = str;
}
b1.u(new AIGuruChat(i, null, "6582a7c188c4a0f6997557e6", m, fl0, new AIGuruChatTextData(str2, (List) null, true, false, 10, (DefaultConstructorMarker) null), null, null, false, null, false, true, yI.m(new tF[]{tF.b, tF.c}), null, 0, false, null, 124866, null));
a1();
}
public final void Z0() {
Q5 R0 = R0();
R0.i.setClickable(false);
R0.i.setAlpha(0.5f);
}
public final void a1() {
Q5 R0 = R0();
R0.i.setClickable(true);
R0.i.setAlpha(1.0f);
}
public final e0 b1() {
return (e0) this.X0.getValue();
}
public final O7 c1() {
O7 o7 = this.I0;
if (o7 != null) {
return o7;
}
Intrinsics.n("alakhAIChatEvents");
throw null;
}
public final hI e1() {
hI hIVar = this.H0;
if (hIVar != null) {
return hIVar;
}
Intrinsics.n("cohortCurrentSessionManager");
throw null;
}
public final void f1() {
if (!II.r0(b1().l).isEmpty()) {
g1();
return;
}
if (((Boolean) U0().q0.b.getValue()).booleanValue()) {
TextInputEditText textInputEditText = R0().l;
Intrinsics.checkNotNullExpressionValue(textInputEditText, "messageInput");
ct3.d(textInputEditText);
i1(new zK0(this, 0));
c1().e(UW2.f(this.V0));
return;
}
if (((Number) U0().m0.b.getValue()).intValue() <= 0 || ((Number) U0().m0.b.getValue()).intValue() % 4 != 0 || !((Boolean) U0().o0.b.getValue()).booleanValue()) {
finish();
return;
}
TextInputEditText textInputEditText2 = R0().l;
Intrinsics.checkNotNullExpressionValue(textInputEditText2, "messageInput");
ct3.d(textInputEditText2);
i1(new AK0(this, 0));
c1().e(UW2.f(this.V0));
}
public final void g0() {
U0().n(this.b1);
}
public final void g1() {
Window window = getWindow();
int i = To2.gray_white;
Object obj = dT.a;
window.setStatusBarColor(b.a(this, i));
ConstraintLayout constraintLayout = R0().b;
Intrinsics.checkNotNullExpressionValue(constraintLayout, "clDeleteToolbar");
constraintLayout.setVisibility(8);
ArrayList r = b1().r();
b1().l.clear();
Iterator it = r.iterator();
while (it.hasNext()) {
int intValue = ((Number) it.next()).intValue();
if (intValue != -1) {
RecyclerView.o layoutManager = R0().o.getLayoutManager();
View s = layoutManager != null ? layoutManager.s(intValue) : null;
if (s != null) {
DataBinderMapperImpl dataBinderMapperImpl = a00.a;
T31 l = Hs3.l(s);
if (l != null) {
View view = l.U;
Intrinsics.checkNotNullExpressionValue(view, "viewChatOverlay");
view.setVisibility(8);
view.setOnClickListener(null);
}
} else {
b1().notifyItemChanged(intValue);
}
}
}
}
public final void h1(GyanGuruConfigData gyanGuruConfigData) {
List list;
AIGuruIntentType type;
List intents;
if (gyanGuruConfigData == null) {
gyanGuruConfigData = Build.VERSION.SDK_INT <= 33 ? (GyanGuruConfigData) getIntent().getParcelableExtra("EXTRA_CONFIG_DATA") : (GyanGuruConfigData) uK0.a(getIntent());
}
H0 h0 = this.L0;
if (h0 == null) {
Intrinsics.n("aiGuruHelper");
throw null;
}
h0.a = gyanGuruConfigData;
b1().h = gyanGuruConfigData != null ? gyanGuruConfigData.getDoubtSourceConfig() : null;
H0 h02 = this.L0;
if (h02 == null) {
Intrinsics.n("aiGuruHelper");
throw null;
}
GyanGuruConfigData gyanGuruConfigData2 = h02.a;
if (gyanGuruConfigData2 == null || (list = gyanGuruConfigData2.getIntents()) == null) {
list = tk0.a;
}
if (!list.isEmpty()) {
List list2 = tk0.a;
R0().p.setAdapter(new R0(list2, new oL0(this, list2)));
R0().p.setNestedScrollingEnabled(false);
e0 b1 = b1();
H0 h03 = this.L0;
if (h03 == null) {
Intrinsics.n("aiGuruHelper");
throw null;
}
GyanGuruConfigData gyanGuruConfigData3 = h03.a;
if (gyanGuruConfigData3 != null && (intents = gyanGuruConfigData3.getIntents()) != null) {
list2 = intents;
}
AIGuruIntent aIGuruIntent = (AIGuruIntent) II.P(list2);
b1.g = aIGuruIntent;
b1.i = aIGuruIntent != null ? aIGuruIntent.getDownVoteConfig() : null;
AIGuruIntent aIGuruIntent2 = b1().g;
if (aIGuruIntent2 != null) {
aIGuruIntent2.setSelected(true);
}
AIGuruIntent aIGuruIntent3 = b1().g;
if (aIGuruIntent3 == null || (type = aIGuruIntent3.getType()) == null) {
return;
}
wN0.l(U0(), type);
}
}
public final void i1(final Function0<Unit> function0) {
final int i = 0;
zu0.P(this, new Function1() {
public final Object invoke(Object obj) {
int i2 = i;
Object obj2 = function0;
Object obj3 = this;
switch (i2) {
case 0:
RP0 rp0 = (GyanGuruActivity) obj3;
Function0 function02 = (Function0) obj2;
rb0 rb0Var = (rb0) obj;
int i3 = GyanGuruActivity.d1;
Intrinsics.checkNotNullParameter(rp0, "this$0");
Intrinsics.checkNotNullParameter(function02, "$onSkip");
Intrinsics.checkNotNullParameter(rb0Var, "dismissType");
rb0.a.getClass();
if (a.a(rb0Var) && Intrinsics.b(rp0.U0().d0.b.getValue(), Boolean.FALSE)) {
function02.invoke();
}
rp0.finish();
break;
case 1:
tR2 tr2 = (tR2) obj3;
Function1 function1 = (Function1) obj2;
GyanGuruNotificationStripe gyanGuruNotificationStripe = (GyanGuruNotificationStripe) obj;
Intrinsics.checkNotNullParameter(tr2, "$notifications");
Intrinsics.checkNotNullParameter(function1, "$onNotificationDelete");
Intrinsics.checkNotNullParameter(gyanGuruNotificationStripe, "it");
tr2.remove(gyanGuruNotificationStripe);
function1.invoke(gyanGuruNotificationStripe);
break;
case 2:
Function1 function12 = (Function1) obj3;
NeetPGAuthActivity neetPGAuthActivity = (NeetPGAuthActivity) obj2;
SuccessResponse successResponse = (SuccessResponse) obj;
int i4 = NeetPGAuthActivity.L0;
Intrinsics.checkNotNullParameter(function12, "$updateLoading");
Intrinsics.checkNotNullParameter(neetPGAuthActivity, "this$0");
function12.invoke(Boolean.FALSE);
if (successResponse != null) {
if (successResponse.getSuccess()) {
l.p(neetPGAuthActivity, neetPGAuthActivity.getString(2132019816));
} else {
try {
Error error = successResponse.getError();
Intrinsics.d(error);
l.p(neetPGAuthActivity, error.getMessage());
} catch (Exception e) {
l.p(neetPGAuthActivity, neetPGAuthActivity.getString(2132018186));
e.printStackTrace();
}
}
break;
} else {
l.p(neetPGAuthActivity, neetPGAuthActivity.getString(2132018186));
break;
}
case 3:
MS2 ms2 = (MS2) obj3;
Context context = (Context) obj2;
Intrinsics.checkNotNullParameter(ms2, "$viewModel");
Intrinsics.checkNotNullParameter(context, gHOpXOGDEolg.RYvaxeswCoMzcr);
Intrinsics.checkNotNullParameter((String) obj, "it");
if (!((Collection) ms2.s0.b.getValue()).isEmpty()) {
IX.c(context, 40.0f, (AD1) null, (BD1) null, (Function0) null, new pM(-1672117335, new FS2(ms2), true), 28);
}
break;
default:
Function1 function13 = (Function1) obj3;
CH1 ch1 = (CH1) obj2;
Integer num = (Integer) obj;
num.getClass();
Intrinsics.checkNotNullParameter(function13, "$changedRating");
Intrinsics.checkNotNullParameter(ch1, "$rating$delegate");
ch1.setValue(num);
function13.invoke(num);
break;
}
return Unit.a;
}
}, (AD1) null, new pM(-879003431, new e(this, function0), true), 110);
}
public final void k0() {
R0().l.clearFocus();
}
public final void l0() {
b1().s();
}
public void onShareChat(View view) {
Intrinsics.checkNotNullParameter(view, "view");
wN0 U0 = U0();
U0.getClass();
Intrinsics.checkNotNullParameter(view, "view");
Lx.q(Qa1.b(U0), yb0.c, (mV) null, new JN0(U0, view, (iT) null), 2);
}
public final void p(String str) {
Intrinsics.checkNotNullParameter(str, "deeplink");
NM0 nm0 = this.J0;
if (nm0 != null) {
nm0.h(str);
} else {
Intrinsics.n("gyanGuruInteractor");
throw null;
}
}
public final void q(String str, String str2) {
String conversationId;
AIGuruIntent aIGuruIntent;
AIGuruIntentType type;
Intrinsics.checkNotNullParameter(str, "chatId");
Intrinsics.checkNotNullParameter(str2, "link");
AIGuruIntent aIGuruIntent2 = b1().g;
if (aIGuruIntent2 == null || (conversationId = aIGuruIntent2.getConversationId()) == null || (aIGuruIntent = b1().g) == null || (type = aIGuruIntent.getType()) == null) {
return;
}
O7 c1 = c1();
String f = UW2.f(this.V0);
String name = type.getName();
Intrinsics.checkNotNullParameter(f, "cohortId");
Intrinsics.checkNotNullParameter(conversationId, "conversationId");
Intrinsics.checkNotNullParameter(str2, "link");
Intrinsics.checkNotNullParameter(str, "entityId");
Intrinsics.checkNotNullParameter(name, "intentName");
LinkedHashMap i = Ls1.i(new Pair[]{new Pair("UserId", c1.i.g()), new Pair("cohort_id", f), new Pair("conversation_id", conversationId), new Pair("link", str2), new Pair("entity_id", str), new Pair("intent_name", name)});
c1.c("ai_link_click", i);
c1.d("ai_link_click", i);
}
public final void r(String str, IE ie) {
String conversationId;
AIGuruIntent aIGuruIntent;
AIGuruIntentType type;
Intrinsics.checkNotNullParameter(str, "chatId");
Intrinsics.checkNotNullParameter(ie, "actionType");
AIGuruIntent aIGuruIntent2 = b1().g;
if (aIGuruIntent2 == null || (conversationId = aIGuruIntent2.getConversationId()) == null || (aIGuruIntent = b1().g) == null || (type = aIGuruIntent.getType()) == null) {
return;
}
O7 c1 = c1();
String f = UW2.f(this.V0);
String name = type.getName();
Intrinsics.checkNotNullParameter(ie, "action");
Intrinsics.checkNotNullParameter(str, "entityId");
Intrinsics.checkNotNullParameter(conversationId, "conversationId");
Intrinsics.checkNotNullParameter(f, "cohortId");
Intrinsics.checkNotNullParameter(name, "intentName");
c1.c("ai_vote_click", Ls1.i(new Pair[]{new Pair("UserId", c1.i.g()), new Pair("action", ie.a), new Pair("entity_id", str), new Pair("conversation_id", conversationId), new Pair("cohort_id", f), new Pair("intent_name", name)}));
}
public final void r0() {
this.U0 = true;
}
public final void s(String str, String str2) {
String conversationId;
AIGuruIntent aIGuruIntent;
AIGuruIntentType type;
Intrinsics.checkNotNullParameter(str, "chatId");
Intrinsics.checkNotNullParameter(str2, "featureName");
AIGuruIntent aIGuruIntent2 = b1().g;
if (aIGuruIntent2 == null || (conversationId = aIGuruIntent2.getConversationId()) == null || (aIGuruIntent = b1().g) == null || (type = aIGuruIntent.getType()) == null) {
return;
}
O7 c1 = c1();
String f = UW2.f(this.V0);
String name = type.getName();
Intrinsics.checkNotNullParameter(f, "cohortId");
Intrinsics.checkNotNullParameter(conversationId, "conversationId");
Intrinsics.checkNotNullParameter(str, "entityId");
Intrinsics.checkNotNullParameter(name, "intentName");
Intrinsics.checkNotNullParameter(str2, "featureName");
c1.c("ai_ex_feature_click", Ls1.i(new Pair[]{new Pair("UserId", c1.i.g()), new Pair("cohort_id", f), new Pair("conversation_id", conversationId), new Pair("entity_id", str), new Pair("intent_name", name), new Pair("feature_name", str2)}));
}
public final void t(String str) {
Intrinsics.checkNotNullParameter(str, "chatText");
Object systemService = getSystemService("clipboard");
Intrinsics.e(systemService, "null cannot be cast to non-null type android.content.ClipboardManager");
((ClipboardManager) systemService).setPrimaryClip(ClipData.newPlainText("ai_guru_message_label", str));
String string = getString(Sq2.msg_content_copied);
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
Hm2.d(this, string, (le3) null, Qm2.c, DY.a, 20);
}
public final void t0(String str) {
Intrinsics.checkNotNullParameter(str, "formType");
wN0 U0 = U0();
U0.getClass();
Intrinsics.checkNotNullParameter(str, "formType");
Lx.q(Qa1.b(U0), (CoroutineContext) null, (mV) null, new DN0(U0, str, (iT) null), 3);
eY.c(this, 0.0f, (AD1) null, (BD1) null, new vK0(0), (DY) null, new pM(1424824671, new BL0(this), true), 494);
}
public final void v0(PredefinedOptionData predefinedOptionData) {
Intrinsics.checkNotNullParameter(predefinedOptionData, "option");
if (predefinedOptionData.getNextAction() == un2.a) {
d1(this, predefinedOptionData.getText(), null, null, false, false, 124);
}
}
public final void S0(Ur3 ur3) {
U0 u0;
Intrinsics.checkNotNullParameter((Q5) ur3, "<this>");
boolean b = Intrinsics.b(getIntent().getAction(), RQYHXsi.ZPtWYuEnbVXzAq);
String f = UW2.f(getIntent().getStringExtra("EXTRA_MODE"));
if (f != null) {
U0[] values = U0.values();
int length = values.length;
for (int i = 0; i < length; i++) {
u0 = values[i];
if (Intrinsics.b(u0.name(), f)) {
break;
}
}
}
u0 = null;
if (u0 == null) {
u0 = U0.a;
}
this.b1 = u0;
wN0 U0 = U0();
U0.getClass();
Lx.q(Qa1.b(U0), (CoroutineContext) null, (mV) null, new GN0(U0, false, (iT) null), 3);
R0().j.setVisibility(0);
R0().p.setVisibility(0);
R0().k.setAlpha(1.0f);
R0().l.setFocusable(true);
R0().i.setVisibility(0);
this.V0 = e1().a().getId();
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new IK0(this, b, (iT) null), 3);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(1);
linearLayoutManager.j1(false);
linearLayoutManager.k1(true);
R0().o.setLayoutManager(linearLayoutManager);
R0().o.setAdapter(b1());
R0().o.setNestedScrollingEnabled(false);
R0().o.addOnScrollListener(new pL0(this));
R0().l.addTextChangedListener(new FK0(this));
R0().l.setOnFocusChangeListener(new BK0(this));
Q5 R0 = R0();
R0.f.setOnClickListener(new gh0(this, 1));
R0.i.setOnClickListener(new wK0(this, 0));
R0.j.setOnClickListener(new xK0(this, 0));
R0.r.setOnClickListener(new Dt1(this, 1));
R0().g.setOnClickListener(new yK0(this, 0));
R0().h.setOnClickListener(new YH2(this, 1));
wN0 U02 = U0();
String f2 = UW2.f(e1().a.c().A());
U02.getClass();
Intrinsics.checkNotNullParameter(f2, "<set-?>");
U02.g0 = f2;
getOnBackPressedDispatcher().a(this, new nL0(this));
}
public final void u(String str, String str2, int i, String str3, b bVar) {
Intrinsics.checkNotNullParameter(str, "conversationId");
Intrinsics.checkNotNullParameter(str2, "chatId");
Intrinsics.checkNotNullParameter(str3, "feedback");
Intrinsics.checkNotNullParameter(bVar, pdCqGbSVuq.YicslcpIuMizs);
Lx.q(HA3.k(this), (CoroutineContext) null, (mV) null, new c(this, str2, i, str3, bVar, str, (iT) null), 3);
}
}