正在查看: Tasker v6.5.11 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Tasker v6.5.11 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.joaomgcd.oldtaskercompat.aigenerator.ui;
import android.content.Context;
import androidx.compose.foundation.layout.d;
import androidx.compose.foundation.layout.i0;
import androidx.compose.ui.d;
import androidx.compose.ui.platform.AndroidCompositionLocals_androidKt;
import androidx.compose.ui.platform.k1;
import com.joaomgcd.oldtaskercompat.aigenerator.ui.StateAiChat;
import com.joaomgcd.taskerm.util.ExtensionsContextKt;
import com.joaomgcd.taskerm.util.x2;
import com.joaomgcd.taskerm.util.z2;
import e2.k0;
import g2.g;
import h1.c;
import java.util.List;
import java.util.Map;
import n2.d;
import n2.q0;
import o1.d5;
import o1.f5;
import o1.z1;
import p0.e1;
import s0.b1;
import s0.c2;
import s0.d1;
import s0.d3;
import s0.f2;
import s0.n1;
import s0.p3;
import s0.t3;
import s0.v3;
import s0.w3;
import s0.x3;
import t2.g1;
import t2.n0;
import v0.d4;
import v0.m3;
import v0.n;
import v0.n2;
import v0.n3;
import v0.r1;
import v0.v1;
import v0.y3;
import x.a1;
import x.p0;
import x.r0;
import x.s0;
import x.w0;
import y2.j;
public final class e {
static final class a extends yj.q implements xj.q<x.g0, v0.n, Integer, lj.e0> {
final xj.a<lj.e0> i;
final v1<String> q;
final Context r;
final String s;
final xj.l<String, lj.e0> t;
static final class C0088a extends yj.q implements xj.l<String, lj.e0> {
final v1<String> i;
C0088a(v1<String> v1Var) {
super(1);
this.i = v1Var;
}
public Object invoke(Object obj) {
invoke((String) obj);
return lj.e0.a;
}
public final void invoke(String str) {
yj.p.i(str, "it");
e.c(this.i, str);
}
}
static final class b extends yj.q implements xj.a<lj.e0> {
final Context i;
final String q;
b(Context context, String str) {
super(0);
this.i = context;
this.q = str;
}
public final void a() {
ExtensionsContextKt.q(this.i, this.q, false, false, false, 14, (Object) null);
}
public Object invoke() {
a();
return lj.e0.a;
}
}
static final class c extends yj.q implements xj.a<lj.e0> {
final xj.l<String, lj.e0> i;
final Context q;
final v1<String> r;
c(xj.l<? super String, lj.e0> lVar, Context context, v1<String> v1Var) {
super(0);
this.i = lVar;
this.q = context;
this.r = v1Var;
}
public final void a() {
if (hk.o.v(e.b(this.r))) {
z2.M0(x2.Q4(2131886660, this.q, new Object[0]), this.q);
} else {
this.i.invoke(e.b(this.r));
}
}
public Object invoke() {
a();
return lj.e0.a;
}
}
a(xj.a<lj.e0> aVar, v1<String> v1Var, Context context, String str, xj.l<? super String, lj.e0> lVar) {
super(3);
this.i = aVar;
this.q = v1Var;
this.r = context;
this.s = str;
this.t = lVar;
}
public final void a(x.g0 g0Var, v0.n nVar, int i) {
int i2;
v1<String> v1Var;
yj.p.i(g0Var, "paddingValues");
if ((i & 14) == 0) {
i2 = i | (nVar.U(g0Var) ? 4 : 2);
} else {
i2 = i;
}
if ((i2 & 91) == 18 && nVar.w()) {
nVar.C();
return;
}
if (v0.q.J()) {
v0.q.S(-1046368737, i2, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.ApiKeyPromptScreen.<anonymous> (ComposableAIChat.kt:787)");
}
d.a aVar = androidx.compose.ui.d.a;
float f = 16;
androidx.compose.ui.d i3 = androidx.compose.foundation.layout.c0.i(androidx.compose.foundation.layout.c0.h(i0.f(aVar, 0.0f, 1, (Object) null), g0Var), z2.i.u(f));
d.f b2 = androidx.compose.foundation.layout.d.a.b();
c.a aVar2 = h1.c.a;
c.b g = aVar2.g();
xj.a<lj.e0> aVar3 = this.i;
v1<String> v1Var2 = this.q;
Context context = this.r;
String str = this.s;
xj.l<String, lj.e0> lVar = this.t;
k0 a = androidx.compose.foundation.layout.i.a(b2, g, nVar, 54);
int a2 = v0.k.a(nVar, 0);
v0.z I = nVar.I();
androidx.compose.ui.d e = androidx.compose.ui.c.e(nVar, i3);
g.a aVar4 = g2.g.c;
xj.a a3 = aVar4.a();
if (!(nVar.x() instanceof v0.g)) {
v0.k.c();
}
nVar.v();
if (nVar.p()) {
nVar.F(a3);
} else {
nVar.K();
}
v0.n a4 = d4.a(nVar);
d4.b(a4, a, aVar4.c());
d4.b(a4, I, aVar4.e());
xj.p b3 = aVar4.b();
if (a4.p() || !yj.p.d(a4.g(), Integer.valueOf(a2))) {
a4.M(Integer.valueOf(a2));
a4.o(Integer.valueOf(a2), b3);
}
d4.b(a4, e, aVar4.d());
x.k kVar = x.k.a;
t3.b(vc.f.r(2131887687, nVar, 6), androidx.compose.foundation.layout.c0.m(aVar, 0.0f, 0.0f, 0.0f, z2.i.u(24), 7, (Object) null), 0L, 0L, (s2.v) null, (s2.z) null, (s2.l) null, 0L, (y2.k) null, y2.j.h(y2.j.b.a()), 0L, 0, false, 0, 0, (xj.l) null, n1.a.c(nVar, n1.b).a(), nVar, 48, 0, 65020);
String b4 = e.b(v1Var2);
n0 n0Var = new n0((char) 0, 1, (yj.h) null);
androidx.compose.ui.d h = i0.h(aVar, 0.0f, 1, (Object) null);
nVar.V(-485203048);
Object g2 = nVar.g();
if (g2 == v0.n.a.a()) {
v1Var = v1Var2;
g2 = new C0088a(v1Var);
nVar.M(g2);
} else {
v1Var = v1Var2;
}
nVar.L();
com.joaomgcd.oldtaskercompat.aigenerator.ui.g gVar = com.joaomgcd.oldtaskercompat.aigenerator.ui.g.a;
c2.a(b4, (xj.l) g2, h, false, false, (q0) null, gVar.j(), (xj.p) null, (xj.p) null, (xj.p) null, (xj.p) null, (xj.p) null, (xj.p) null, false, n0Var, (e0.y) null, (e0.x) null, true, 0, 0, (w.l) null, (f5) null, (p3) null, nVar, 1573296, 12582912, 0, 8241080);
float f2 = 8;
s0.a(i0.i(aVar, z2.i.u(f2)), nVar, 6);
s0.n.e(new b(context, str), kVar.b(aVar, aVar2.j()), false, (f5) null, (s0.k) null, (s0.m) null, (s.g) null, (x.g0) null, (w.l) null, gVar.k(), nVar, 805306368, 508);
s0.a(i0.i(aVar, z2.i.u(f)), nVar, 6);
s0.n.a(new c(lVar, context, v1Var), i0.h(aVar, 0.0f, 1, (Object) null), !hk.o.v(e.b(r41)), (f5) null, (s0.k) null, (s0.m) null, (s.g) null, (x.g0) null, (w.l) null, gVar.m(), nVar, 805306416, 504);
s0.a(i0.i(aVar, z2.i.u(f2)), nVar, 6);
s0.n.e(aVar3, i0.h(aVar, 0.0f, 1, (Object) null), false, (f5) null, (s0.k) null, (s0.m) null, (s.g) null, (x.g0) null, (w.l) null, gVar.n(), nVar, 805306416, 508);
nVar.S();
if (v0.q.J()) {
v0.q.R();
}
}
public Object e(Object obj, Object obj2, Object obj3) {
a((x.g0) obj, (v0.n) obj2, ((Number) obj3).intValue());
return lj.e0.a;
}
}
static final class a0 extends yj.q implements xj.a<lj.e0> {
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c i;
a0(com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar) {
super(0);
this.i = cVar;
}
public final void a() {
this.i.b().invoke();
}
public Object invoke() {
a();
return lj.e0.a;
}
}
static final class b extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final xj.l<String, lj.e0> i;
final xj.a<lj.e0> q;
final int r;
b(xj.l<? super String, lj.e0> lVar, xj.a<lj.e0> aVar, int i) {
super(2);
this.i = lVar;
this.q = aVar;
this.r = i;
}
public final void a(v0.n nVar, int i) {
e.a(this.i, this.q, nVar, n2.a(this.r | 1));
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class b0 extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final StateAiChat i;
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c q;
final androidx.compose.ui.d r;
final int s;
final int t;
b0(StateAiChat stateAiChat, com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar, androidx.compose.ui.d dVar, int i, int i2) {
super(2);
this.i = stateAiChat;
this.q = cVar;
this.r = dVar;
this.s = i;
this.t = i2;
}
public final void a(v0.n nVar, int i) {
e.l(this.i, this.q, this.r, nVar, n2.a(this.s | 1), this.t);
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class c extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final String i;
final xj.l<String, lj.e0> q;
final boolean r;
final boolean s;
final boolean t;
final xj.a<lj.e0> u;
final boolean v;
final xj.a<lj.e0> w;
static final class a extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final boolean i;
a(boolean z) {
super(2);
this.i = z;
}
public final void a(v0.n nVar, int i) {
long m;
if ((i & 11) == 2 && nVar.w()) {
nVar.C();
return;
}
if (v0.q.J()) {
v0.q.S(1847308724, i, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.ChatInputArea.<anonymous>.<anonymous>.<anonymous> (ComposableAIChat.kt:634)");
}
u1.d a = e1.a(m0.a.a.a());
String r = vc.f.r(2131890325, nVar, 6);
if (this.i) {
nVar.V(403277938);
m = n1.a.a(nVar, n1.b).L();
} else {
nVar.V(403279197);
m = z1.m(((z1) nVar.n(s0.k0.a())).w(), 0.6f, 0.0f, 0.0f, 0.0f, 14, (Object) null);
}
nVar.L();
s0.e1.b(a, r, (androidx.compose.ui.d) null, m, nVar, 0, 4);
if (v0.q.J()) {
v0.q.R();
}
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class b extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final boolean i;
b(boolean z) {
super(2);
this.i = z;
}
public final void a(v0.n nVar, int i) {
long m;
if ((i & 11) == 2 && nVar.w()) {
nVar.C();
return;
}
if (v0.q.J()) {
v0.q.S(931849048, i, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.ChatInputArea.<anonymous>.<anonymous>.<anonymous> (ComposableAIChat.kt:647)");
}
u1.d a = p0.f.a(m0.a.a.a());
String r = vc.f.r(2131890325, nVar, 6);
if (this.i) {
nVar.V(403302130);
m = n1.a.a(nVar, n1.b).L();
} else {
nVar.V(403303389);
m = z1.m(((z1) nVar.n(s0.k0.a())).w(), 0.6f, 0.0f, 0.0f, 0.0f, 14, (Object) null);
}
nVar.L();
s0.e1.b(a, r, (androidx.compose.ui.d) null, m, nVar, 0, 4);
if (v0.q.J()) {
v0.q.R();
}
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
c(String str, xj.l<? super String, lj.e0> lVar, boolean z, boolean z2, boolean z3, xj.a<lj.e0> aVar, boolean z4, xj.a<lj.e0> aVar2) {
super(2);
this.i = str;
this.q = lVar;
this.r = z;
this.s = z2;
this.t = z3;
this.u = aVar;
this.v = z4;
this.w = aVar2;
}
public final void a(v0.n nVar, int i) {
if ((i & 11) == 2 && nVar.w()) {
nVar.C();
return;
}
if (v0.q.J()) {
v0.q.S(1976901556, i, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.ChatInputArea.<anonymous> (ComposableAIChat.kt:604)");
}
d.a aVar = androidx.compose.ui.d.a;
float f = 8;
androidx.compose.ui.d j = androidx.compose.foundation.layout.c0.j(a1.b(i0.h(aVar, 0.0f, 1, (Object) null)), z2.i.u(f), z2.i.u(f));
c.c i2 = h1.c.a.i();
String str = this.i;
xj.l<String, lj.e0> lVar = this.q;
boolean z = this.r;
boolean z2 = this.s;
boolean z3 = this.t;
xj.a<lj.e0> aVar2 = this.u;
boolean z4 = this.v;
xj.a<lj.e0> aVar3 = this.w;
k0 b2 = androidx.compose.foundation.layout.f0.b(androidx.compose.foundation.layout.d.a.e(), i2, nVar, 48);
int a2 = v0.k.a(nVar, 0);
v0.z I = nVar.I();
androidx.compose.ui.d e = androidx.compose.ui.c.e(nVar, j);
g.a aVar4 = g2.g.c;
xj.a a3 = aVar4.a();
if (!(nVar.x() instanceof v0.g)) {
v0.k.c();
}
nVar.v();
if (nVar.p()) {
nVar.F(a3);
} else {
nVar.K();
}
v0.n a4 = d4.a(nVar);
d4.b(a4, b2, aVar4.c());
d4.b(a4, I, aVar4.e());
xj.p b3 = aVar4.b();
if (a4.p() || !yj.p.d(a4.g(), Integer.valueOf(a2))) {
a4.M(Integer.valueOf(a2));
a4.o(Integer.valueOf(a2), b3);
}
d4.b(a4, e, aVar4.d());
androidx.compose.ui.d a5 = p0.a(r0.a, aVar, 1.0f, false, 2, (Object) null);
com.joaomgcd.oldtaskercompat.aigenerator.ui.g gVar = com.joaomgcd.oldtaskercompat.aigenerator.ui.g.a;
c2.a(str, lVar, a5, z, false, (q0) null, (xj.p) null, gVar.b(), (xj.p) null, (xj.p) null, (xj.p) null, (xj.p) null, (xj.p) null, false, (g1) null, (e0.y) null, (e0.x) null, false, 5, 0, (w.l) null, (f5) null, (p3) null, nVar, 12582912, 100663296, 0, 8126320);
s0.a(i0.u(aVar, z2.i.u(f)), nVar, 6);
if (z2) {
nVar.V(2068095612);
f2.a(i0.p(aVar, z2.i.u(40)), 0L, 0.0f, 0L, 0, nVar, 6, 30);
nVar.L();
} else {
nVar.V(2068257928);
boolean z5 = !z3;
if (hk.o.v(str)) {
nVar.V(2069046475);
if (z4) {
nVar.V(2069125091);
d1.a(aVar3, (androidx.compose.ui.d) null, z5, (b1) null, (w.l) null, d1.c.e(931849048, true, new b(z5), nVar, 54), nVar, 196608, 26);
nVar.L();
} else {
nVar.V(2069783965);
d1.a(aVar2, (androidx.compose.ui.d) null, false, (b1) null, (w.l) null, gVar.c(), nVar, 196992, 26);
nVar.L();
}
nVar.L();
} else {
nVar.V(2068392065);
d1.a(aVar2, (androidx.compose.ui.d) null, z5, (b1) null, (w.l) null, d1.c.e(1847308724, true, new a(z5), nVar, 54), nVar, 196608, 26);
nVar.L();
}
nVar.L();
}
nVar.S();
if (v0.q.J()) {
v0.q.R();
}
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class c0 extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final StateAiChat i;
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c q;
final androidx.compose.ui.d r;
final int s;
final int t;
c0(StateAiChat stateAiChat, com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar, androidx.compose.ui.d dVar, int i, int i2) {
super(2);
this.i = stateAiChat;
this.q = cVar;
this.r = dVar;
this.s = i;
this.t = i2;
}
public final void a(v0.n nVar, int i) {
e.l(this.i, this.q, this.r, nVar, n2.a(this.s | 1), this.t);
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class d extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final String i;
final boolean q;
final boolean r;
final boolean s;
final xj.l<String, lj.e0> t;
final xj.a<lj.e0> u;
final xj.a<lj.e0> v;
final int w;
d(String str, boolean z, boolean z2, boolean z3, xj.l<? super String, lj.e0> lVar, xj.a<lj.e0> aVar, xj.a<lj.e0> aVar2, int i) {
super(2);
this.i = str;
this.q = z;
this.r = z2;
this.s = z3;
this.t = lVar;
this.u = aVar;
this.v = aVar2;
this.w = i;
}
public final void a(v0.n nVar, int i) {
e.d(this.i, this.q, this.r, this.s, this.t, this.u, this.v, nVar, n2.a(this.w | 1));
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class d0 extends yj.q implements xj.q<x.g0, v0.n, Integer, lj.e0> {
final androidx.compose.foundation.o i;
final xj.a<lj.e0> q;
final Context r;
final String s;
static final class a extends yj.q implements xj.a<lj.e0> {
final Context i;
final String q;
a(Context context, String str) {
super(0);
this.i = context;
this.q = str;
}
public final void a() {
ExtensionsContextKt.q(this.i, this.q, false, false, false, 14, (Object) null);
}
public Object invoke() {
a();
return lj.e0.a;
}
}
d0(androidx.compose.foundation.o oVar, xj.a<lj.e0> aVar, Context context, String str) {
super(3);
this.i = oVar;
this.q = aVar;
this.r = context;
this.s = str;
}
public final void a(x.g0 g0Var, v0.n nVar, int i) {
int i2;
yj.p.i(g0Var, "paddingValues");
if ((i & 14) == 0) {
i2 = i | (nVar.U(g0Var) ? 4 : 2);
} else {
i2 = i;
}
if ((i2 & 91) == 18 && nVar.w()) {
nVar.C();
return;
}
if (v0.q.J()) {
v0.q.S(-88771376, i2, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.DisclaimerScreen.<anonymous> (ComposableAIChat.kt:686)");
}
d.a aVar = androidx.compose.ui.d.a;
float f = 16;
androidx.compose.ui.d k = androidx.compose.foundation.layout.c0.k(androidx.compose.foundation.layout.c0.h(i0.f(aVar, 0.0f, 1, (Object) null), g0Var), z2.i.u(f), 0.0f, 2, (Object) null);
androidx.compose.foundation.o oVar = this.i;
xj.a<lj.e0> aVar2 = this.q;
Context context = this.r;
String str = this.s;
androidx.compose.foundation.layout.d dVar = androidx.compose.foundation.layout.d.a;
d.m f2 = dVar.f();
c.a aVar3 = h1.c.a;
k0 a2 = androidx.compose.foundation.layout.i.a(f2, aVar3.k(), nVar, 0);
int a3 = v0.k.a(nVar, 0);
v0.z I = nVar.I();
androidx.compose.ui.d e = androidx.compose.ui.c.e(nVar, k);
g.a aVar4 = g2.g.c;
xj.a a4 = aVar4.a();
if (!(nVar.x() instanceof v0.g)) {
v0.k.c();
}
nVar.v();
if (nVar.p()) {
nVar.F(a4);
} else {
nVar.K();
}
v0.n a5 = d4.a(nVar);
d4.b(a5, a2, aVar4.c());
d4.b(a5, I, aVar4.e());
xj.p b = aVar4.b();
if (a5.p() || !yj.p.d(a5.g(), Integer.valueOf(a3))) {
a5.M(Integer.valueOf(a3));
a5.o(Integer.valueOf(a3), b);
}
d4.b(a5, e, aVar4.d());
x.k kVar = x.k.a;
float f3 = 24;
androidx.compose.ui.d m = androidx.compose.foundation.layout.c0.m(androidx.compose.foundation.m.f(x.i.a(kVar, aVar, 1.0f, false, 2, (Object) null), oVar, false, (u.o) null, false, 14, (Object) null), 0.0f, z2.i.u(f3), 0.0f, z2.i.u(f), 5, (Object) null);
k0 a6 = androidx.compose.foundation.layout.i.a(dVar.f(), aVar3.k(), nVar, 0);
int a10 = v0.k.a(nVar, 0);
v0.z I2 = nVar.I();
androidx.compose.ui.d e2 = androidx.compose.ui.c.e(nVar, m);
xj.a a11 = aVar4.a();
if (!(nVar.x() instanceof v0.g)) {
v0.k.c();
}
nVar.v();
if (nVar.p()) {
nVar.F(a11);
} else {
nVar.K();
}
v0.n a12 = d4.a(nVar);
d4.b(a12, a6, aVar4.c());
d4.b(a12, I2, aVar4.e());
xj.p b2 = aVar4.b();
if (a12.p() || !yj.p.d(a12.g(), Integer.valueOf(a10))) {
a12.M(Integer.valueOf(a10));
a12.o(Integer.valueOf(a10), b2);
}
d4.b(a12, e2, aVar4.d());
String r = vc.f.r(2131886193, nVar, 6);
n1 n1Var = n1.a;
int i3 = n1.b;
q0 m2 = n1Var.c(nVar, i3).m();
j.a aVar5 = y2.j.b;
t3.b(r, kVar.b(androidx.compose.foundation.layout.c0.m(i0.h(aVar, 0.0f, 1, (Object) null), 0.0f, 0.0f, 0.0f, z2.i.u(f), 7, (Object) null), aVar3.g()), 0L, 0L, (s2.v) null, (s2.z) null, (s2.l) null, 0L, (y2.k) null, y2.j.h(aVar5.a()), 0L, 0, false, 0, 0, (xj.l) null, m2, nVar, 0, 0, 65020);
t3.b(hk.o.g(vc.f.r(2131890717, nVar, 6)), androidx.compose.foundation.layout.c0.m(i0.h(aVar, 0.0f, 1, (Object) null), 0.0f, 0.0f, 0.0f, z2.i.u(f), 7, (Object) null), 0L, 0L, (s2.v) null, (s2.z) null, (s2.l) null, 0L, (y2.k) null, y2.j.h(aVar5.f()), 0L, 0, false, 0, 0, (xj.l) null, n1Var.c(nVar, i3).b(), nVar, 48, 0, 65020);
nVar.V(1212134339);
d.a aVar6 = new d.a(0, 1, (yj.h) null);
nVar.V(1212135568);
int l = aVar6.l(new n2.d0(0L, 0L, s2.z.q.a(), (s2.v) null, (s2.w) null, (s2.l) null, (String) null, 0L, (y2.a) null, (y2.p) null, (u2.i) null, 0L, (y2.k) null, (d5) null, (n2.a0) null, (q1.h) null, 65531, (yj.h) null));
try {
aVar6.f(vc.f.r(2131887080, nVar, 6));
aVar6.f(" ");
lj.e0 e0Var = lj.e0.a;
aVar6.k(l);
nVar.L();
aVar6.f(vc.f.r(2131886195, nVar, 6));
n2.d m3 = aVar6.m();
nVar.L();
t3.c(m3, androidx.compose.foundation.layout.c0.m(i0.h(aVar, 0.0f, 1, (Object) null), 0.0f, 0.0f, 0.0f, z2.i.u(8), 7, (Object) null), 0L, 0L, (s2.v) null, (s2.z) null, (s2.l) null, 0L, (y2.k) null, y2.j.h(aVar5.f()), 0L, 0, false, 0, 0, (Map) null, (xj.l) null, n1Var.c(nVar, i3).b(), nVar, 48, 0, 130556);
a aVar7 = new a(context, str);
androidx.compose.ui.d b3 = kVar.b(aVar, aVar3.k());
com.joaomgcd.oldtaskercompat.aigenerator.ui.g gVar = com.joaomgcd.oldtaskercompat.aigenerator.ui.g.a;
s0.n.e(aVar7, b3, false, (f5) null, (s0.k) null, (s0.m) null, (s.g) null, (x.g0) null, (w.l) null, gVar.f(), nVar, 805306368, 508);
nVar.S();
s0.n.a(aVar2, androidx.compose.foundation.layout.c0.m(kVar.b(i0.g(aVar, 0.8f), aVar3.g()), 0.0f, 0.0f, 0.0f, z2.i.u(f3), 7, (Object) null), false, (f5) null, (s0.k) null, (s0.m) null, (s.g) null, (x.g0) null, (w.l) null, gVar.g(), nVar, 805306368, 508);
nVar.S();
if (v0.q.J()) {
v0.q.R();
}
} catch (Throwable th) {
aVar6.k(l);
throw th;
}
}
public Object e(Object obj, Object obj2, Object obj3) {
a((x.g0) obj, (v0.n) obj2, ((Number) obj3).intValue());
return lj.e0.a;
}
}
static final class C0089e extends yj.q implements xj.a<lj.e0> {
final boolean i;
final xj.a<lj.e0> q;
C0089e(boolean z, xj.a<lj.e0> aVar) {
super(0);
this.i = z;
this.q = aVar;
}
public final void a() {
if (this.i) {
return;
}
this.q.invoke();
}
public Object invoke() {
a();
return lj.e0.a;
}
}
static final class e0 extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final xj.a<lj.e0> i;
final xj.a<lj.e0> q;
final int r;
e0(xj.a<lj.e0> aVar, xj.a<lj.e0> aVar2, int i) {
super(2);
this.i = aVar;
this.q = aVar2;
this.r = i;
}
public final void a(v0.n nVar, int i) {
e.m(this.i, this.q, nVar, n2.a(this.r | 1));
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class f extends yj.q implements xj.a<lj.e0> {
final boolean i;
final StateAiChat q;
final xj.a<lj.e0> r;
f(boolean z, StateAiChat stateAiChat, xj.a<lj.e0> aVar) {
super(0);
this.i = z;
this.q = stateAiChat;
this.r = aVar;
}
public final void a() {
if (this.i || this.q.i().isEmpty()) {
return;
}
this.r.invoke();
}
public Object invoke() {
a();
return lj.e0.a;
}
}
@qj.f(c = "com.joaomgcd.oldtaskercompat.aigenerator.ui.ComposableAIChatKt$LoadingDotsAnimation$1$1", f = "ComposableAIChat.kt", l = {345}, m = "invokeSuspend")
static final class f0 extends qj.l implements xj.p<jk.n0, oj.d<? super lj.e0>, Object> {
int t;
final r1 u;
f0(r1 r1Var, oj.d<? super f0> dVar) {
super(2, dVar);
this.u = r1Var;
}
public final oj.d<lj.e0> k(Object obj, oj.d<?> dVar) {
return new f0(this.u, dVar);
}
public final java.lang.Object r(java.lang.Object r6) {
throw new UnsupportedOperationException("Method not decompiled: com.joaomgcd.oldtaskercompat.aigenerator.ui.e.f0.r(java.lang.Object):java.lang.Object");
}
public final Object l(jk.n0 n0Var, oj.d<? super lj.e0> dVar) {
return k(n0Var, dVar).r(lj.e0.a);
}
}
static final class g extends yj.q implements xj.a<lj.e0> {
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c i;
final ChatMessage q;
final int r;
final MissingInfoItem s;
g(com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar, ChatMessage chatMessage, int i, MissingInfoItem missingInfoItem) {
super(0);
this.i = cVar;
this.q = chatMessage;
this.r = i;
this.s = missingInfoItem;
}
public final void a() {
this.i.e().e(this.q.e(), Integer.valueOf(this.r), this.s);
}
public Object invoke() {
a();
return lj.e0.a;
}
}
static final class g0 extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final androidx.compose.ui.d i;
final String q;
final int r;
final int s;
g0(androidx.compose.ui.d dVar, String str, int i, int i2) {
super(2);
this.i = dVar;
this.q = str;
this.r = i;
this.s = i2;
}
public final void a(v0.n nVar, int i) {
e.n(this.i, this.q, nVar, n2.a(this.r | 1), this.s);
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class h extends yj.q implements xj.a<lj.e0> {
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c i;
final String q;
final ChatMessage r;
h(com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar, String str, ChatMessage chatMessage) {
super(0);
this.i = cVar;
this.q = str;
this.r = chatMessage;
}
public final void a() {
this.i.n().l(this.q, this.r);
}
public Object invoke() {
a();
return lj.e0.a;
}
}
public class h0 {
public static final int[] a;
public static final int[] b;
static {
int[] iArr = new int[StateAiChat.b.values().length];
try {
iArr[StateAiChat.b.q.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[StateAiChat.b.r.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[StateAiChat.b.s.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[StateAiChat.b.i.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
a = iArr;
int[] iArr2 = new int[com.joaomgcd.oldtaskercompat.aigenerator.ui.b.values().length];
try {
iArr2[com.joaomgcd.oldtaskercompat.aigenerator.ui.b.q.ordinal()] = 1;
} catch (NoSuchFieldError unused5) {
}
try {
iArr2[com.joaomgcd.oldtaskercompat.aigenerator.ui.b.r.ordinal()] = 2;
} catch (NoSuchFieldError unused6) {
}
try {
iArr2[com.joaomgcd.oldtaskercompat.aigenerator.ui.b.t.ordinal()] = 3;
} catch (NoSuchFieldError unused7) {
}
b = iArr2;
}
}
static final class i extends yj.q implements xj.a<lj.e0> {
final k1 i;
final String q;
final Context r;
i(k1 k1Var, String str, Context context) {
super(0);
this.i = k1Var;
this.q = str;
this.r = context;
}
public final void a() {
this.i.b(new n2.d(this.q, (List) null, (List) null, 6, (yj.h) null));
z2.M0(this.r.getString(2131891294), this.r);
}
public Object invoke() {
a();
return lj.e0.a;
}
}
static final class j extends yj.q implements xj.a<lj.e0> {
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c i;
final ChatMessage q;
j(com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar, ChatMessage chatMessage) {
super(0);
this.i = cVar;
this.q = chatMessage;
}
public final void a() {
this.i.y().invoke(this.q);
}
public Object invoke() {
a();
return lj.e0.a;
}
}
static final class k extends yj.q implements xj.a<lj.e0> {
final Context i;
k(Context context) {
super(0);
this.i = context;
}
public final void a() {
ExtensionsContextKt.q(this.i, "https://tasker.joaoapps.com/userguide/en/help/google_api_key_ai_generation.html", false, false, false, 14, (Object) null);
}
public Object invoke() {
a();
return lj.e0.a;
}
}
static final class l extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final ChatMessage i;
final boolean q;
final StateAiChat r;
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c s;
final xj.a<lj.e0> t;
final int u;
l(ChatMessage chatMessage, boolean z, StateAiChat stateAiChat, com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar, xj.a<lj.e0> aVar, int i) {
super(2);
this.i = chatMessage;
this.q = z;
this.r = stateAiChat;
this.s = cVar;
this.t = aVar;
this.u = i;
}
public final void a(v0.n nVar, int i) {
e.e(this.i, this.q, this.r, this.s, this.t, nVar, n2.a(this.u | 1));
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
@qj.f(c = "com.joaomgcd.oldtaskercompat.aigenerator.ui.ComposableAIChatKt$ChatScreen$1$1", f = "ComposableAIChat.kt", l = {187}, m = "invokeSuspend")
static final class m extends qj.l implements xj.p<jk.n0, oj.d<? super lj.e0>, Object> {
int t;
final int u;
final y.e0 v;
m(int i, y.e0 e0Var, oj.d<? super m> dVar) {
super(2, dVar);
this.u = i;
this.v = e0Var;
}
public final oj.d<lj.e0> k(Object obj, oj.d<?> dVar) {
return new m(this.u, this.v, dVar);
}
public final Object r(Object obj) {
Object c = pj.b.c();
int i = this.t;
if (i == 0) {
lj.s.b(obj);
int i2 = this.u;
if (i2 > 0) {
this.t = 1;
if (y.e0.l(this.v, i2 - 1, 0, this, 2, (Object) null) == c) {
return c;
}
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
lj.s.b(obj);
}
return lj.e0.a;
}
public final Object l(jk.n0 n0Var, oj.d<? super lj.e0> dVar) {
return k(n0Var, dVar).r(lj.e0.a);
}
}
static final class n extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final xj.p<v0.n, Integer, lj.e0> i;
final xj.p<v0.n, Integer, lj.e0> q;
final xj.q<x.q0, v0.n, Integer, lj.e0> r;
final boolean s;
n(xj.p<? super v0.n, ? super Integer, lj.e0> pVar, xj.p<? super v0.n, ? super Integer, lj.e0> pVar2, xj.q<? super x.q0, ? super v0.n, ? super Integer, lj.e0> qVar, boolean z) {
super(2);
this.i = pVar;
this.q = pVar2;
this.r = qVar;
this.s = z;
}
public final void a(v0.n nVar, int i) {
xj.q<x.q0, v0.n, Integer, lj.e0> qVar;
xj.p<v0.n, Integer, lj.e0> pVar;
v3 d;
if ((i & 11) == 2 && nVar.w()) {
nVar.C();
return;
}
if (v0.q.J()) {
v0.q.S(-1290676360, i, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.ChatScreen.<anonymous> (ComposableAIChat.kt:271)");
}
xj.p<v0.n, Integer, lj.e0> pVar2 = this.i;
xj.p<v0.n, Integer, lj.e0> pVar3 = this.q;
if (pVar3 == null) {
pVar3 = com.joaomgcd.oldtaskercompat.aigenerator.ui.g.a.u();
}
xj.p<v0.n, Integer, lj.e0> pVar4 = pVar3;
xj.q<x.q0, v0.n, Integer, lj.e0> qVar2 = this.r;
if (this.s) {
nVar.V(1853538767);
w3 w3Var = w3.a;
n1 n1Var = n1.a;
int i2 = n1.b;
qVar = qVar2;
pVar = pVar2;
d = w3Var.e(n1Var.a(nVar, i2).M(), 0L, n1Var.a(nVar, i2).C(), n1Var.a(nVar, i2).C(), n1Var.a(nVar, i2).C(), nVar, w3.g << 15, 2);
nVar.L();
} else {
qVar = qVar2;
pVar = pVar2;
nVar.V(2138015205);
d = w3.a.d(nVar, w3.g);
nVar.L();
}
s0.e.g(pVar, (androidx.compose.ui.d) null, pVar4, qVar, 0.0f, (w0) null, d, (x3) null, nVar, 3078, 178);
if (v0.q.J()) {
v0.q.R();
}
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class o extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final StateAiChat i;
final boolean q;
final boolean r;
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c s;
o(StateAiChat stateAiChat, boolean z, boolean z2, com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar) {
super(2);
this.i = stateAiChat;
this.q = z;
this.r = z2;
this.s = cVar;
}
public final void a(v0.n nVar, int i) {
if ((i & 11) == 2 && nVar.w()) {
nVar.C();
return;
}
if (v0.q.J()) {
v0.q.S(-342186631, i, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.ChatScreen.<anonymous> (ComposableAIChat.kt:285)");
}
ChatMessage chatMessage = (ChatMessage) kotlin.collections.r.p0(this.i.f());
e.d(this.i.e(), this.i.p(), this.r, ((chatMessage != null ? chatMessage.h() : null) == com.joaomgcd.oldtaskercompat.aigenerator.ui.n.i && !this.q && !this.r) && hk.o.v(this.i.e()), this.s.z(), this.s.t(), this.s.r(), nVar, 0);
if (v0.q.J()) {
v0.q.R();
}
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class p extends yj.q implements xj.q<x.g0, v0.n, Integer, lj.e0> {
final y.e0 i;
final StateAiChat q;
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c r;
static final class a extends yj.q implements xj.l<y.b0, lj.e0> {
final StateAiChat i;
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c q;
static final class C0090a extends yj.q implements xj.l<ChatMessage, Object> {
public static final C0090a i = new C0090a();
C0090a() {
super(1);
}
public final Object invoke(ChatMessage chatMessage) {
yj.p.i(chatMessage, "it");
return chatMessage.e();
}
}
static final class b extends yj.q implements xj.a<lj.e0> {
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c i;
final ChatMessage q;
b(com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar, ChatMessage chatMessage) {
super(0);
this.i = cVar;
this.q = chatMessage;
}
public final void a() {
this.i.x().invoke(this.q.e());
}
public Object invoke() {
a();
return lj.e0.a;
}
}
public static final class c extends yj.q implements xj.l {
public static final c i = new c();
public c() {
super(1);
}
public final Void invoke(ChatMessage chatMessage) {
return null;
}
}
public static final class d extends yj.q implements xj.l<Integer, Object> {
final xj.l i;
final List q;
public d(xj.l lVar, List list) {
super(1);
this.i = lVar;
this.q = list;
}
public final Object a(int i) {
return this.i.invoke(this.q.get(i));
}
public Object invoke(Object obj) {
return a(((Number) obj).intValue());
}
}
public static final class C0091e extends yj.q implements xj.l<Integer, Object> {
final xj.l i;
final List q;
public C0091e(xj.l lVar, List list) {
super(1);
this.i = lVar;
this.q = list;
}
public final Object a(int i) {
return this.i.invoke(this.q.get(i));
}
public Object invoke(Object obj) {
return a(((Number) obj).intValue());
}
}
public static final class f extends yj.q implements xj.r<y.d, Integer, v0.n, Integer, lj.e0> {
final List i;
final StateAiChat q;
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c r;
public f(List list, StateAiChat stateAiChat, com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar) {
super(4);
this.i = list;
this.q = stateAiChat;
this.r = cVar;
}
public final void a(y.d r8, int r9, v0.n r10, int r11) {
throw new UnsupportedOperationException("Method not decompiled: com.joaomgcd.oldtaskercompat.aigenerator.ui.e.p.a.f.a(y.d, int, v0.n, int):void");
}
public Object h(Object obj, Object obj2, Object obj3, Object obj4) {
a((y.d) obj, ((Number) obj2).intValue(), (v0.n) obj3, ((Number) obj4).intValue());
return lj.e0.a;
}
}
a(StateAiChat stateAiChat, com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar) {
super(1);
this.i = stateAiChat;
this.q = cVar;
}
public final void a(y.b0 b0Var) {
yj.p.i(b0Var, "$this$LazyColumn");
com.joaomgcd.oldtaskercompat.aigenerator.ui.d f2 = this.i.f();
C0090a c0090a = C0090a.i;
StateAiChat stateAiChat = this.i;
com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar = this.q;
b0Var.a(f2.size(), c0090a != null ? new d(c0090a, f2) : null, new C0091e(c.i, f2), d1.c.c(-632812321, true, new f(f2, stateAiChat, cVar)));
}
public Object invoke(Object obj) {
a((y.b0) obj);
return lj.e0.a;
}
}
p(y.e0 e0Var, StateAiChat stateAiChat, com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar) {
super(3);
this.i = e0Var;
this.q = stateAiChat;
this.r = cVar;
}
public final void a(x.g0 r19, v0.n r20, int r21) {
throw new UnsupportedOperationException("Method not decompiled: com.joaomgcd.oldtaskercompat.aigenerator.ui.e.p.a(x.g0, v0.n, int):void");
}
public Object e(Object obj, Object obj2, Object obj3) {
a((x.g0) obj, (v0.n) obj2, ((Number) obj3).intValue());
return lj.e0.a;
}
}
static final class q extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final StateAiChat i;
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c q;
final androidx.compose.ui.d r;
final int s;
q(StateAiChat stateAiChat, com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar, androidx.compose.ui.d dVar, int i) {
super(2);
this.i = stateAiChat;
this.q = cVar;
this.r = dVar;
this.s = i;
}
public final void a(v0.n nVar, int i) {
e.f(this.i, this.q, this.r, nVar, n2.a(this.s | 1));
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class r extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c i;
r(com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar) {
super(2);
this.i = cVar;
}
public final void a(v0.n nVar, int i) {
if ((i & 11) == 2 && nVar.w()) {
nVar.C();
return;
}
if (v0.q.J()) {
v0.q.S(13857632, i, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.ChatScreen.<anonymous> (ComposableAIChat.kt:259)");
}
d1.a(this.i.g(), (androidx.compose.ui.d) null, false, (b1) null, (w.l) null, com.joaomgcd.oldtaskercompat.aigenerator.ui.g.a.t(), nVar, 196608, 30);
if (v0.q.J()) {
v0.q.R();
}
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class s extends yj.q implements xj.q<x.q0, v0.n, Integer, lj.e0> {
final boolean i;
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c q;
final boolean r;
final v1<Boolean> s;
static final class a extends yj.q implements xj.a<lj.e0> {
final v1<Boolean> i;
a(v1<Boolean> v1Var) {
super(0);
this.i = v1Var;
}
public final void a() {
e.h(this.i, true);
}
public Object invoke() {
a();
return lj.e0.a;
}
}
static final class b extends yj.q implements xj.a<lj.e0> {
final v1<Boolean> i;
b(v1<Boolean> v1Var) {
super(0);
this.i = v1Var;
}
public final void a() {
e.h(this.i, false);
}
public Object invoke() {
a();
return lj.e0.a;
}
}
static final class c extends yj.q implements xj.q<x.j, v0.n, Integer, lj.e0> {
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c i;
final v1<Boolean> q;
static final class a extends yj.q implements xj.a<lj.e0> {
final xj.a<lj.e0> i;
final v1<Boolean> q;
a(xj.a<lj.e0> aVar, v1<Boolean> v1Var) {
super(0);
this.i = aVar;
this.q = v1Var;
}
public final void a() {
this.i.invoke();
e.h(this.q, false);
}
public Object invoke() {
a();
return lj.e0.a;
}
}
c(com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar, v1<Boolean> v1Var) {
super(3);
this.i = cVar;
this.q = v1Var;
}
private static final xj.a<lj.e0> c(v1<Boolean> v1Var, xj.a<lj.e0> aVar) {
return new a(aVar, v1Var);
}
public final void a(x.j jVar, v0.n nVar, int i) {
yj.p.i(jVar, "$this$DropdownMenu");
if ((i & 81) == 16 && nVar.w()) {
nVar.C();
return;
}
if (v0.q.J()) {
v0.q.S(1743891476, i, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.ChatScreen.<anonymous>.<anonymous>.<anonymous> (ComposableAIChat.kt:226)");
}
com.joaomgcd.oldtaskercompat.aigenerator.ui.g gVar = com.joaomgcd.oldtaskercompat.aigenerator.ui.g.a;
s0.d.b(gVar.q(), c(this.q, this.i.o()), (androidx.compose.ui.d) null, (xj.p) null, (xj.p) null, false, (s0.r1) null, (x.g0) null, (w.l) null, nVar, 6, 508);
s0.d.b(gVar.r(), c(this.q, this.i.f()), (androidx.compose.ui.d) null, (xj.p) null, (xj.p) null, false, (s0.r1) null, (x.g0) null, (w.l) null, nVar, 6, 508);
s0.d.b(gVar.s(), c(this.q, this.i.l()), (androidx.compose.ui.d) null, (xj.p) null, (xj.p) null, false, (s0.r1) null, (x.g0) null, (w.l) null, nVar, 6, 508);
if (v0.q.J()) {
v0.q.R();
}
}
public Object e(Object obj, Object obj2, Object obj3) {
a((x.j) obj, (v0.n) obj2, ((Number) obj3).intValue());
return lj.e0.a;
}
}
s(boolean z, com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar, boolean z2, v1<Boolean> v1Var) {
super(3);
this.i = z;
this.q = cVar;
this.r = z2;
this.s = v1Var;
}
public final void a(x.q0 q0Var, v0.n nVar, int i) {
yj.p.i(q0Var, "$this$null");
if ((i & 81) == 16 && nVar.w()) {
nVar.C();
return;
}
if (v0.q.J()) {
v0.q.S(-530186173, i, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.ChatScreen.<anonymous> (ComposableAIChat.kt:197)");
}
if (this.i) {
nVar.V(1850325214);
xj.a<lj.e0> h = this.q.h();
com.joaomgcd.oldtaskercompat.aigenerator.ui.g gVar = com.joaomgcd.oldtaskercompat.aigenerator.ui.g.a;
d1.a(h, (androidx.compose.ui.d) null, false, (b1) null, (w.l) null, gVar.a(), nVar, 196608, 30);
d1.a(this.q.j(), (androidx.compose.ui.d) null, false, (b1) null, (w.l) null, gVar.l(), nVar, 196608, 30);
nVar.L();
} else {
nVar.V(1850801963);
nVar.V(2137914030);
if (this.r) {
d1.a(this.q.q(), (androidx.compose.ui.d) null, false, (b1) null, (w.l) null, com.joaomgcd.oldtaskercompat.aigenerator.ui.g.a.o(), nVar, 196608, 30);
}
nVar.L();
v1<Boolean> v1Var = this.s;
com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar = this.q;
d.a aVar = androidx.compose.ui.d.a;
k0 h2 = androidx.compose.foundation.layout.f.h(h1.c.a.o(), false);
int a2 = v0.k.a(nVar, 0);
v0.z I = nVar.I();
androidx.compose.ui.d e = androidx.compose.ui.c.e(nVar, aVar);
g.a aVar2 = g2.g.c;
xj.a a3 = aVar2.a();
if (!(nVar.x() instanceof v0.g)) {
v0.k.c();
}
nVar.v();
if (nVar.p()) {
nVar.F(a3);
} else {
nVar.K();
}
v0.n a4 = d4.a(nVar);
d4.b(a4, h2, aVar2.c());
d4.b(a4, I, aVar2.e());
xj.p b2 = aVar2.b();
if (a4.p() || !yj.p.d(a4.g(), Integer.valueOf(a2))) {
a4.M(Integer.valueOf(a2));
a4.o(Integer.valueOf(a2), b2);
}
d4.b(a4, e, aVar2.d());
androidx.compose.foundation.layout.h hVar = androidx.compose.foundation.layout.h.a;
nVar.V(996207565);
Object g = nVar.g();
n.a aVar3 = v0.n.a;
if (g == aVar3.a()) {
g = new a(v1Var);
nVar.M(g);
}
nVar.L();
d1.a((xj.a) g, (androidx.compose.ui.d) null, false, (b1) null, (w.l) null, com.joaomgcd.oldtaskercompat.aigenerator.ui.g.a.p(), nVar, 196614, 30);
boolean g2 = e.g(v1Var);
nVar.V(996218478);
Object g3 = nVar.g();
if (g3 == aVar3.a()) {
g3 = new b(v1Var);
nVar.M(g3);
}
nVar.L();
s0.d.a(g2, (xj.a) g3, (androidx.compose.ui.d) null, 0L, (androidx.compose.foundation.o) null, (androidx.compose.ui.window.r) null, (f5) null, 0L, 0.0f, 0.0f, (s.g) null, d1.c.e(1743891476, true, new c(cVar, v1Var), nVar, 54), nVar, 48, 48, 2044);
nVar.S();
nVar.L();
}
if (v0.q.J()) {
v0.q.R();
}
}
public Object e(Object obj, Object obj2, Object obj3) {
a((x.q0) obj, (v0.n) obj2, ((Number) obj3).intValue());
return lj.e0.a;
}
}
static final class t extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final boolean i;
final int q;
t(boolean z, int i) {
super(2);
this.i = z;
this.q = i;
}
public final void a(v0.n nVar, int i) {
if ((i & 11) == 2 && nVar.w()) {
nVar.C();
return;
}
if (v0.q.J()) {
v0.q.S(-1299393674, i, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.ChatScreen.<anonymous> (ComposableAIChat.kt:250)");
}
if (this.i) {
nVar.V(1852616083);
t3.b(x2.Q4(2131889210, bd.a.e(nVar, 0), new Object[]{Integer.valueOf(this.q)}), (androidx.compose.ui.d) null, 0L, 0L, (s2.v) null, (s2.z) null, (s2.l) null, 0L, (y2.k) null, (y2.j) null, 0L, 0, false, 0, 0, (xj.l) null, (q0) null, nVar, 0, 0, 131070);
nVar.L();
} else {
nVar.V(1852713578);
t3.b(vc.f.r(2131890714, nVar, 6), (androidx.compose.ui.d) null, 0L, 0L, (s2.v) null, (s2.z) null, (s2.l) null, 0L, (y2.k) null, (y2.j) null, 0L, y2.u.a.b(), false, 1, 0, (xj.l) null, (q0) null, nVar, 0, 3120, 120830);
nVar.L();
}
if (v0.q.J()) {
v0.q.R();
}
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class u extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final String i;
final boolean q;
final boolean r;
final xj.a<lj.e0> s;
final xj.a<lj.e0> t;
final u1.d u;
final int v;
final int w;
u(String str, boolean z, boolean z2, xj.a<lj.e0> aVar, xj.a<lj.e0> aVar2, u1.d dVar, int i, int i2) {
super(2);
this.i = str;
this.q = z;
this.r = z2;
this.s = aVar;
this.t = aVar2;
this.u = dVar;
this.v = i;
this.w = i2;
}
public final void a(v0.n nVar, int i) {
e.i(this.i, this.q, this.r, this.s, this.t, this.u, nVar, n2.a(this.v | 1), this.w);
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class v extends yj.q implements xj.a<lj.e0> {
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c i;
v(com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar) {
super(0);
this.i = cVar;
}
public final void a() {
this.i.g().invoke();
}
public Object invoke() {
a();
return lj.e0.a;
}
}
static final class w extends yj.q implements xj.p<v0.n, Integer, lj.e0> {
final ViewModelAiChat i;
final int q;
w(ViewModelAiChat viewModelAiChat, int i) {
super(2);
this.i = viewModelAiChat;
this.q = i;
}
public final void a(v0.n nVar, int i) {
e.j(this.i, nVar, n2.a(this.q | 1));
}
public Object l(Object obj, Object obj2) {
a((v0.n) obj, ((Number) obj2).intValue());
return lj.e0.a;
}
}
static final class x extends yj.q implements xj.l<String, lj.e0> {
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c i;
x(com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar) {
super(1);
this.i = cVar;
}
public Object invoke(Object obj) {
invoke((String) obj);
return lj.e0.a;
}
public final void invoke(String str) {
yj.p.i(str, "it");
this.i.i().invoke(str);
}
}
static final class y extends yj.q implements xj.a<lj.e0> {
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c i;
y(com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar) {
super(0);
this.i = cVar;
}
public final void a() {
this.i.p().invoke();
}
public Object invoke() {
a();
return lj.e0.a;
}
}
static final class z extends yj.q implements xj.a<lj.e0> {
final com.joaomgcd.oldtaskercompat.aigenerator.ui.c i;
z(com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar) {
super(0);
this.i = cVar;
}
public final void a() {
this.i.a().invoke();
}
public Object invoke() {
a();
return lj.e0.a;
}
}
public static final void a(xj.l<? super String, lj.e0> lVar, xj.a<lj.e0> aVar, v0.n nVar, int i2) {
int i3;
v0.n nVar2;
v0.n t2 = nVar.t(-1592332658);
if ((i2 & 14) == 0) {
i3 = (t2.l(lVar) ? 4 : 2) | i2;
} else {
i3 = i2;
}
if ((i2 & 112) == 0) {
i3 |= t2.l(aVar) ? 32 : 16;
}
if ((i3 & 91) == 18 && t2.w()) {
t2.C();
nVar2 = t2;
} else {
if (v0.q.J()) {
v0.q.S(-1592332658, i3, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.ApiKeyPromptScreen (ComposableAIChat.kt:776)");
}
t2.V(-21941915);
Object g2 = t2.g();
if (g2 == v0.n.a.a()) {
g2 = n3.j("", (m3) null, 2, (Object) null);
t2.M(g2);
}
t2.L();
Context context = (Context) t2.n(AndroidCompositionLocals_androidKt.g());
nVar2 = t2;
s0.n2.a((androidx.compose.ui.d) null, com.joaomgcd.oldtaskercompat.aigenerator.ui.g.a.i(), (xj.p) null, (xj.p) null, (xj.p) null, 0, 0L, 0L, (w0) null, d1.c.e(-1046368737, true, new a(aVar, (v1) g2, context, "https://tasker.joaoapps.com/userguide/en/help/google_api_key_ai_generation.html", lVar), t2, 54), nVar2, 805306416, 509);
if (v0.q.J()) {
v0.q.R();
}
}
v0.z2 z2 = nVar2.z();
if (z2 != null) {
z2.a(new b(lVar, aVar, i2));
}
}
public static final String b(v1<String> v1Var) {
return (String) v1Var.getValue();
}
public static final void c(v1<String> v1Var, String str) {
v1Var.setValue(str);
}
public static final void d(String str, boolean z2, boolean z3, boolean z4, xj.l<? super String, lj.e0> lVar, xj.a<lj.e0> aVar, xj.a<lj.e0> aVar2, v0.n nVar, int i2) {
int i3;
v0.n nVar2;
v0.n t2 = nVar.t(-1987319121);
if ((i2 & 14) == 0) {
i3 = (t2.U(str) ? 4 : 2) | i2;
} else {
i3 = i2;
}
if ((i2 & 112) == 0) {
i3 |= t2.d(z2) ? 32 : 16;
}
if ((i2 & 896) == 0) {
i3 |= t2.d(z3) ? 256 : 128;
}
if ((i2 & 7168) == 0) {
i3 |= t2.d(z4) ? 2048 : 1024;
}
if ((57344 & i2) == 0) {
i3 |= t2.l(lVar) ? 16384 : 8192;
}
if ((458752 & i2) == 0) {
i3 |= t2.l(aVar) ? 131072 : 65536;
}
if ((3670016 & i2) == 0) {
i3 |= t2.l(aVar2) ? 1048576 : 524288;
}
if ((2995931 & i3) == 599186 && t2.w()) {
t2.C();
nVar2 = t2;
} else {
if (v0.q.J()) {
v0.q.S(-1987319121, i3, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.ChatInputArea (ComposableAIChat.kt:600)");
}
nVar2 = t2;
d3.a((androidx.compose.ui.d) null, (f5) null, 0L, 0L, 0.0f, z2.i.u(4), (s.g) null, d1.c.e(1976901556, true, new c(str, lVar, (z2 || z3) ? false : true, z2, z3, aVar, z4, aVar2), t2, 54), nVar2, 12779520, 95);
if (v0.q.J()) {
v0.q.R();
}
}
v0.z2 z5 = nVar2.z();
if (z5 != null) {
z5.a(new d(str, z2, z3, z4, lVar, aVar, aVar2, i2));
}
}
public static final void e(com.joaomgcd.oldtaskercompat.aigenerator.ui.ChatMessage r58, boolean r59, com.joaomgcd.oldtaskercompat.aigenerator.ui.StateAiChat r60, com.joaomgcd.oldtaskercompat.aigenerator.ui.c r61, xj.a<lj.e0> r62, v0.n r63, int r64) {
throw new UnsupportedOperationException("Method not decompiled: com.joaomgcd.oldtaskercompat.aigenerator.ui.e.e(com.joaomgcd.oldtaskercompat.aigenerator.ui.ChatMessage, boolean, com.joaomgcd.oldtaskercompat.aigenerator.ui.StateAiChat, com.joaomgcd.oldtaskercompat.aigenerator.ui.c, xj.a, v0.n, int):void");
}
public static final void f(StateAiChat stateAiChat, com.joaomgcd.oldtaskercompat.aigenerator.ui.c cVar, androidx.compose.ui.d dVar, v0.n nVar, int i2) {
int i3;
xj.p pVar;
v0.n nVar2;
v0.n t2 = nVar.t(-1276673356);
if ((i2 & 14) == 0) {
i3 = (t2.U(stateAiChat) ? 4 : 2) | i2;
} else {
i3 = i2;
}
if ((i2 & 112) == 0) {
i3 |= t2.U(cVar) ? 32 : 16;
}
if ((i2 & 896) == 0) {
i3 |= t2.U(dVar) ? 256 : 128;
}
if ((i3 & 731) == 146 && t2.w()) {
t2.C();
nVar2 = t2;
} else {
if (v0.q.J()) {
v0.q.S(-1276673356, i3, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.ChatScreen (ComposableAIChat.kt:170)");
}
y.e0 c2 = y.f0.c(0, 0, t2, 0, 3);
com.joaomgcd.oldtaskercompat.aigenerator.ui.d f2 = stateAiChat.f();
int size = f2.size();
boolean p2 = stateAiChat.p();
ChatMessage chatMessage = (ChatMessage) kotlin.collections.r.p0(f2);
Object[] objArr = {Integer.valueOf(size), Boolean.valueOf(p2), chatMessage != null ? chatMessage.e() : null, chatMessage != null ? chatMessage.f() : null, chatMessage != null ? Boolean.valueOf(chatMessage.j()) : null};
t2.V(-696519982);
boolean i4 = t2.i(size) | t2.U(c2);
Object g2 = t2.g();
if (i4 || g2 == v0.n.a.a()) {
g2 = new m(size, c2, null);
t2.M(g2);
}
t2.L();
v0.q0.g(objArr, (xj.p) g2, t2, 72);
t2.V(-696513129);
Object g3 = t2.g();
if (g3 == v0.n.a.a()) {
pVar = null;
g3 = n3.j(Boolean.FALSE, (m3) null, 2, (Object) null);
t2.M(g3);
} else {
pVar = null;
}
v1 v1Var = (v1) g3;
t2.L();
int size2 = stateAiChat.i().size();
boolean z2 = size2 > 0;
d1.a e = d1.c.e(-530186173, true, new s(z2, cVar, size > 0, v1Var), t2, 54);
d1.a e2 = d1.c.e(-1299393674, true, new t(z2, size2), t2, 54);
t2.V(-696420676);
if (z2) {
pVar = d1.c.e(13857632, true, new r(cVar), t2, 54);
}
t2.L();
nVar2 = t2;
s0.n2.a(a1.a(dVar), d1.c.e(-1290676360, true, new n(e2, pVar, e, z2), t2, 54), d1.c.e(-342186631, true, new o(stateAiChat, p2, z2, cVar), t2, 54), (xj.p) null, (xj.p) null, 0, 0L, 0L, (w0) null, d1.c.e(-1214466493, true, new p(c2, stateAiChat, cVar), t2, 54), nVar2, 805306800, 504);
if (v0.q.J()) {
v0.q.R();
}
}
v0.z2 z3 = nVar2.z();
if (z3 != null) {
z3.a(new q(stateAiChat, cVar, dVar, i2));
}
}
public static final boolean g(v1<Boolean> v1Var) {
return ((Boolean) v1Var.getValue()).booleanValue();
}
public static final void h(v1<Boolean> v1Var, boolean z2) {
v1Var.setValue(Boolean.valueOf(z2));
}
public static final void i(java.lang.String r45, boolean r46, boolean r47, xj.a<lj.e0> r48, xj.a<lj.e0> r49, u1.d r50, v0.n r51, int r52, int r53) {
throw new UnsupportedOperationException("Method not decompiled: com.joaomgcd.oldtaskercompat.aigenerator.ui.e.i(java.lang.String, boolean, boolean, xj.a, xj.a, u1.d, v0.n, int, int):void");
}
public static final void j(ViewModelAiChat viewModelAiChat, v0.n nVar, int i2) {
yj.p.i(viewModelAiChat, "viewModel");
v0.n t2 = nVar.t(1511225297);
if (v0.q.J()) {
v0.q.S(1511225297, i2, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.ComposableAiChatScreen (ComposableAIChat.kt:101)");
}
y3 b2 = n3.b(viewModelAiChat.m(), (oj.g) null, t2, 8, 1);
com.joaomgcd.oldtaskercompat.aigenerator.ui.c d02 = viewModelAiChat.d0();
mh.j.a(viewModelAiChat.k(), md.e.h(t2, 0), t2, 8);
boolean z2 = k(b2).o() == StateAiChat.b.i && !k(b2).i().isEmpty();
t2.V(-951200618);
boolean U = t2.U(d02);
Object g2 = t2.g();
if (U || g2 == v0.n.a.a()) {
g2 = new v(d02);
t2.M(g2);
}
t2.L();
b.d.a(z2, (xj.a) g2, t2, 0, 0);
l(k(b2), d02, null, t2, 0, 4);
if (v0.q.J()) {
v0.q.R();
}
v0.z2 z3 = t2.z();
if (z3 != null) {
z3.a(new w(viewModelAiChat, i2));
}
}
private static final StateAiChat k(y3<StateAiChat> y3Var) {
return (StateAiChat) y3Var.getValue();
}
public static final void l(com.joaomgcd.oldtaskercompat.aigenerator.ui.StateAiChat r20, com.joaomgcd.oldtaskercompat.aigenerator.ui.c r21, androidx.compose.ui.d r22, v0.n r23, int r24, int r25) {
throw new UnsupportedOperationException("Method not decompiled: com.joaomgcd.oldtaskercompat.aigenerator.ui.e.l(com.joaomgcd.oldtaskercompat.aigenerator.ui.StateAiChat, com.joaomgcd.oldtaskercompat.aigenerator.ui.c, androidx.compose.ui.d, v0.n, int, int):void");
}
public static final void m(xj.a<lj.e0> aVar, xj.a<lj.e0> aVar2, v0.n nVar, int i2) {
int i3;
v0.n nVar2;
v0.n t2 = nVar.t(1309541631);
if ((i2 & 14) == 0) {
i3 = (t2.l(aVar) ? 4 : 2) | i2;
} else {
i3 = i2;
}
if ((i3 & 11) == 2 && t2.w()) {
t2.C();
nVar2 = t2;
} else {
if (v0.q.J()) {
v0.q.S(1309541631, i3, -1, "com.joaomgcd.oldtaskercompat.aigenerator.ui.DisclaimerScreen (ComposableAIChat.kt:675)");
}
Context context = (Context) t2.n(AndroidCompositionLocals_androidKt.g());
androidx.compose.foundation.o c2 = androidx.compose.foundation.m.c(0, t2, 0, 1);
xj.p<v0.n, Integer, lj.e0> e = com.joaomgcd.oldtaskercompat.aigenerator.ui.g.a.e();
d1.a e2 = d1.c.e(-88771376, true, new d0(c2, aVar, context, "https://ai.google.dev/gemini-api/docs/pricing"), t2, 54);
nVar2 = t2;
s0.n2.a((androidx.compose.ui.d) null, e, (xj.p) null, (xj.p) null, (xj.p) null, 0, 0L, 0L, (w0) null, e2, t2, 805306416, 509);
if (v0.q.J()) {
v0.q.R();
}
}
v0.z2 z2 = nVar2.z();
if (z2 != null) {
z2.a(new e0(aVar, aVar2, i2));
}
}
public static final void n(androidx.compose.ui.d r37, java.lang.String r38, v0.n r39, int r40, int r41) {
throw new UnsupportedOperationException("Method not decompiled: com.joaomgcd.oldtaskercompat.aigenerator.ui.e.n(androidx.compose.ui.d, java.lang.String, v0.n, int, int):void");
}
public static final int o(r1 r1Var) {
return r1Var.d();
}
public static final void p(r1 r1Var, int i2) {
r1Var.g(i2);
}
}