Swiggy v4.51.1版本的 MD5 值为:5af7ec91512a0a8c1510e3f8bac20b8b
以下内容为反编译后的 UpdateLandmarkHalfCardScreenKt.java 源代码,内容仅作参考
package in.swiggy.address.update.ui.halfCard;
import android.content.Context;
import androidx.compose.animation.AnimatedVisibilityKt;
import androidx.compose.animation.EnterExitTransitionKt;
import androidx.compose.animation.core.h;
import androidx.compose.foundation.ScrollKt;
import androidx.compose.foundation.ScrollState;
import androidx.compose.foundation.layout.Arrangement;
import androidx.compose.foundation.layout.BoxKt;
import androidx.compose.foundation.layout.BoxScopeInstance;
import androidx.compose.foundation.layout.ColumnKt;
import androidx.compose.foundation.layout.PaddingKt;
import androidx.compose.foundation.layout.SizeKt;
import androidx.compose.foundation.layout.WindowInsetsPadding_androidKt;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.Updater;
import androidx.compose.runtime.i;
import androidx.compose.runtime.internal.b;
import androidx.compose.runtime.l1;
import androidx.compose.runtime.p;
import androidx.compose.runtime.r1;
import androidx.compose.runtime.s1;
import androidx.compose.runtime.z;
import androidx.compose.ui.b;
import androidx.compose.ui.focus.FocusRequester;
import androidx.compose.ui.focus.d;
import androidx.compose.ui.g;
import androidx.compose.ui.layout.LayoutKt;
import androidx.compose.ui.layout.c0;
import androidx.compose.ui.node.ComposeUiNode;
import androidx.compose.ui.platform.AndroidCompositionLocals_androidKt;
import androidx.compose.ui.text.input.m;
import com.airbnb.lottie.compose.AnimateLottieCompositionAsStateKt;
import com.airbnb.lottie.compose.LottieAnimationKt;
import com.airbnb.lottie.compose.RememberLottieCompositionKt;
import com.airbnb.lottie.compose.e;
import com.airbnb.lottie.compose.f;
import com.airbnb.lottie.j;
import com.google.android.gms.common.api.Api;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import in.swiggy.address.ui.forms.data.c;
import in.swiggy.address.ui.forms.textField.AddressTextFieldKt;
import in.swiggy.address.update.k;
import in.swiggy.android.dls.compose.inputfield.model.DlsKeyboardType;
import in.swiggy.android.dls.compose.superbutton.ButtonElevationConfig;
import in.swiggy.android.dls.compose.superbutton.SuperButtonKt;
import in.swiggy.android.dls.compose.superbutton.a;
import in.swiggy.android.dls.compose.superbutton.b;
import in.swiggy.android.dls.compose.superbutton.c;
import in.swiggy.android.dls.compose.superbutton.d;
import in.swiggy.android.dls.compose.superbutton.e;
import in.swiggy.android.dls.compose.superbutton.g;
import in.swiggy.android.dls.compose.textview.DlsTextKt;
import in.swiggy.android.dls.textview.TextColor;
import in.swiggy.android.dls.textview.TextStyle;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.functions.n;
import kotlin.jvm.internal.o;
public final class UpdateLandmarkHalfCardScreenKt {
public static final void a(final c landmark, final String title, final String ctaText, final boolean z, final boolean z2, k kVar, i iVar, final int i, final int i2) {
o.k(landmark, "landmark");
o.k(title, "title");
o.k(ctaText, "ctaText");
i w = iVar.w(-1954827031);
k kVar2 = (i2 & 32) != 0 ? null : kVar;
if (ComposerKt.K()) {
ComposerKt.V(-1954827031, i, -1, "in.swiggy.address.update.ui.halfCard.UpdateLandmarkHalfCardScreen (UpdateLandmarkHalfCardScreen.kt:75)");
}
final ScrollState c = ScrollKt.c(0, w, 0, 1);
Context context = (Context) w.A(AndroidCompositionLocals_androidKt.g());
w.H(1726583101);
Object I = w.I();
i.a aVar = i.a;
if (I == aVar.a()) {
I = new FocusRequester();
w.C(I);
}
final FocusRequester focusRequester = (FocusRequester) I;
w.S();
Unit unit = Unit.a;
z.e(unit, new UpdateLandmarkHalfCardScreenKt$UpdateLandmarkHalfCardScreen$1(context, null), w, 70);
w.H(1726583380);
Object I2 = w.I();
if (I2 == aVar.a()) {
I2 = new UpdateLandmarkHalfCardScreenKt$UpdateLandmarkHalfCardScreen$2$1(focusRequester, null);
w.C(I2);
}
w.S();
z.e(unit, (Function2) I2, w, 70);
final e r = RememberLottieCompositionKt.r(f.C0243f.a(f.C0243f.b("https://media-assets.swiggy.com/swiggy/raw/upload/smart-address-input/add_landmark_halfcard_masthead.lottie")), null, null, null, null, null, w, 6, 62);
final com.airbnb.lottie.compose.c c2 = AnimateLottieCompositionAsStateKt.c(b(r), false, false, false, null, BitmapDescriptorFactory.HUE_RED, Api.BaseClientBuilder.API_PRIORITY_OTHER, null, false, false, w, 1572872, 958);
final k kVar3 = kVar2;
AnimatedVisibilityKt.e(!z2, null, null, EnterExitTransitionKt.x(h.i(400, 0, null, 6, null), BitmapDescriptorFactory.HUE_RED, 2, null), null, b.b(w, -1695977535, true, new n<androidx.compose.animation.e, i, Integer, Unit>() {
{
super(3);
}
public final void a(androidx.compose.animation.e AnimatedVisibility, i iVar2, int i3) {
j b;
float c3;
o.k(AnimatedVisibility, "$this$AnimatedVisibility");
if (ComposerKt.K()) {
ComposerKt.V(-1695977535, i3, -1, "in.swiggy.address.update.ui.halfCard.UpdateLandmarkHalfCardScreen.<anonymous> (UpdateLandmarkHalfCardScreen.kt:106)");
}
g.a aVar2 = g.a;
g f = ScrollKt.f(WindowInsetsPadding_androidKt.a(aVar2), ScrollState.this, false, null, false, 14, null);
String str = title;
c cVar = landmark;
final boolean z3 = z;
FocusRequester focusRequester2 = focusRequester;
String str2 = ctaText;
e eVar = r;
com.airbnb.lottie.compose.c cVar2 = c2;
final k kVar4 = kVar3;
iVar2.H(-483455358);
Arrangement.l h = Arrangement.a.h();
b.a aVar3 = androidx.compose.ui.b.a;
c0 a = ColumnKt.a(h, aVar3.k(), iVar2, 0);
iVar2.H(-1323940314);
int a2 = androidx.compose.runtime.g.a(iVar2, 0);
p d = iVar2.d();
ComposeUiNode.Companion companion = ComposeUiNode.h0;
Function0<ComposeUiNode> a3 = companion.a();
n<s1<ComposeUiNode>, i, Integer, Unit> c4 = LayoutKt.c(f);
if (!(iVar2.x() instanceof androidx.compose.runtime.e)) {
androidx.compose.runtime.g.c();
}
iVar2.h();
if (iVar2.v()) {
iVar2.O(a3);
} else {
iVar2.e();
}
i a4 = Updater.a(iVar2);
Updater.c(a4, a, companion.e());
Updater.c(a4, d, companion.g());
Function2<ComposeUiNode, Integer, Unit> b2 = companion.b();
if (a4.v() || !o.f(a4.I(), Integer.valueOf(a2))) {
a4.C(Integer.valueOf(a2));
a4.c(Integer.valueOf(a2), b2);
}
c4.invoke(s1.a(s1.b(iVar2)), iVar2, 0);
iVar2.H(2058660585);
androidx.compose.foundation.layout.k kVar5 = androidx.compose.foundation.layout.k.a;
iVar2.H(733328855);
c0 h2 = BoxKt.h(aVar3.o(), false, iVar2, 0);
iVar2.H(-1323940314);
int a5 = androidx.compose.runtime.g.a(iVar2, 0);
p d2 = iVar2.d();
Function0<ComposeUiNode> a6 = companion.a();
n<s1<ComposeUiNode>, i, Integer, Unit> c5 = LayoutKt.c(aVar2);
if (!(iVar2.x() instanceof androidx.compose.runtime.e)) {
androidx.compose.runtime.g.c();
}
iVar2.h();
if (iVar2.v()) {
iVar2.O(a6);
} else {
iVar2.e();
}
i a7 = Updater.a(iVar2);
Updater.c(a7, h2, companion.e());
Updater.c(a7, d2, companion.g());
Function2<ComposeUiNode, Integer, Unit> b3 = companion.b();
if (a7.v() || !o.f(a7.I(), Integer.valueOf(a5))) {
a7.C(Integer.valueOf(a5));
a7.c(Integer.valueOf(a5), b3);
}
c5.invoke(s1.a(s1.b(iVar2)), iVar2, 0);
iVar2.H(2058660585);
BoxScopeInstance boxScopeInstance = BoxScopeInstance.a;
b = UpdateLandmarkHalfCardScreenKt.b(eVar);
c3 = UpdateLandmarkHalfCardScreenKt.c(cVar2);
LottieAnimationKt.a(b, c3, SizeKt.i(SizeKt.h(aVar2, BitmapDescriptorFactory.HUE_RED, 1, null), androidx.compose.ui.unit.h.g(180)), false, false, false, null, false, null, null, androidx.compose.ui.layout.c.a.b(), false, iVar2, 392, 6, 3064);
in.swiggy.android.dls.compose.theme.e eVar2 = in.swiggy.android.dls.compose.theme.e.a;
int i4 = in.swiggy.android.dls.compose.theme.e.b;
DismissHalfCardImageKt.a(boxScopeInstance.a(PaddingKt.m(aVar2, BitmapDescriptorFactory.HUE_RED, eVar2.b(iVar2, i4).c(), eVar2.b(iVar2, i4).c(), BitmapDescriptorFactory.HUE_RED, 9, null), aVar3.n()), new Function0<Unit>() {
{
super(0);
}
@Override
public Unit invoke() {
invoke2();
return Unit.a;
}
public final void invoke2() {
k kVar6 = k.this;
if (kVar6 != null) {
kVar6.a();
}
}
}, iVar2, 0, 0);
iVar2.S();
iVar2.f();
iVar2.S();
iVar2.S();
DlsTextKt.a(str, TextStyle.HEADER4, TextColor.TEXT_COLOR_HIGHEST_EMPHASIS, PaddingKt.m(aVar2, eVar2.b(iVar2, i4).b(), eVar2.b(iVar2, i4).f(), eVar2.b(iVar2, i4).b(), BitmapDescriptorFactory.HUE_RED, 8, null), 0, androidx.compose.ui.text.style.i.g(androidx.compose.ui.text.style.i.b.a()), 0, false, null, iVar2, 432, 464);
AddressTextFieldKt.a(cVar.a(), "Add a nearby landmark", null, false, in.swiggy.android.dls.compose.inputfield.model.i.b(new in.swiggy.android.dls.compose.inputfield.model.i(null, 0, 0, 0, null, 31, null), DlsKeyboardType.Default, 0, m.b.b(), d.b.a(), null, 18, null), 0, focusRequester2, false, "Add a nearby landmark", new Function1<String, Unit>() {
{
super(1);
}
@Override
public Unit invoke(String str3) {
invoke2(str3);
return Unit.a;
}
public final void invoke2(String it) {
o.k(it, "it");
k kVar6 = k.this;
if (kVar6 != null) {
kVar6.c(it);
}
}
}, PaddingKt.m(aVar2, eVar2.b(iVar2, i4).b(), eVar2.b(iVar2, i4).e(), eVar2.b(iVar2, i4).b(), BitmapDescriptorFactory.HUE_RED, 8, null), null, !z3, iVar2, (in.swiggy.android.dls.compose.inputfield.model.i.e << 12) | 102236208, 0, 2220);
SuperButtonKt.a(new in.swiggy.android.dls.compose.superbutton.i(new d.b(null), c.b.b, a.C0688a.b, cVar.a().getValue().length() == 0 ? b.a.b : b.C0689b.b, z3 ? g.b.b : g.c.b, e.b.a, ButtonElevationConfig.OFF, str2, null, new Function0<Unit>() {
{
super(0);
}
@Override
public Unit invoke() {
invoke2();
return Unit.a;
}
public final void invoke2() {
k kVar6;
if (z3 || (kVar6 = kVar4) == null) {
return;
}
kVar6.b();
}
}, 256, null), PaddingKt.l(aVar2, eVar2.b(iVar2, i4).b(), androidx.compose.ui.unit.h.g(20), eVar2.b(iVar2, i4).b(), androidx.compose.ui.unit.h.g(48)), iVar2, in.swiggy.android.dls.compose.superbutton.i.k);
iVar2.S();
iVar2.f();
iVar2.S();
iVar2.S();
if (ComposerKt.K()) {
ComposerKt.U();
}
}
@Override
public Unit invoke(androidx.compose.animation.e eVar, i iVar2, Integer num) {
a(eVar, iVar2, num.intValue());
return Unit.a;
}
}), w, 199680, 22);
if (ComposerKt.K()) {
ComposerKt.U();
}
r1 y = w.y();
if (y != null) {
final k kVar4 = kVar2;
y.a(new Function2<i, Integer, Unit>() {
{
super(2);
}
public final void a(i iVar2, int i3) {
UpdateLandmarkHalfCardScreenKt.a(in.swiggy.address.ui.forms.data.c.this, title, ctaText, z, z2, kVar4, iVar2, l1.a(i | 1), i2);
}
@Override
public Unit invoke(i iVar2, Integer num) {
a(iVar2, num.intValue());
return Unit.a;
}
});
}
}
public static final j b(com.airbnb.lottie.compose.e eVar) {
return eVar.getValue();
}
public static final float c(com.airbnb.lottie.compose.c cVar) {
return cVar.getValue().floatValue();
}
}