正在查看: BodyTech v7.6.4 应用的 PromoItemKt.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BodyTech v7.6.4 应用的 PromoItemKt.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fitnessmobileapps.fma.feature.home.presentation.composables;
import a2.b;
import android.view.MotionEvent;
import androidx.compose.foundation.BackgroundKt;
import androidx.compose.foundation.ImageKt;
import androidx.compose.foundation.layout.AspectRatioKt;
import androidx.compose.foundation.layout.BoxKt;
import androidx.compose.foundation.layout.BoxScopeInstance;
import androidx.compose.foundation.layout.PaddingKt;
import androidx.compose.foundation.layout.SizeKt;
import androidx.compose.material3.ProgressIndicatorKt;
import androidx.compose.material3.TextKt;
import androidx.compose.runtime.Applier;
import androidx.compose.runtime.Composable;
import androidx.compose.runtime.ComposableTarget;
import androidx.compose.runtime.ComposablesKt;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.CompositionLocalMap;
import androidx.compose.runtime.CompositionScopedCoroutineScopeCanceller;
import androidx.compose.runtime.EffectsKt;
import androidx.compose.runtime.MutableIntState;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.RecomposeScopeImplKt;
import androidx.compose.runtime.ScopeUpdateScope;
import androidx.compose.runtime.SnapshotIntStateKt;
import androidx.compose.runtime.SnapshotStateKt__SnapshotStateKt;
import androidx.compose.runtime.Updater;
import androidx.compose.runtime.internal.ComposableLambdaKt;
import androidx.compose.ui.Alignment;
import androidx.compose.ui.ComposedModifierKt;
import androidx.compose.ui.Modifier;
import androidx.compose.ui.graphics.ColorFilter;
import androidx.compose.ui.input.pointer.PointerInteropFilter_androidKt;
import androidx.compose.ui.layout.ContentScale;
import androidx.compose.ui.layout.LayoutCoordinates;
import androidx.compose.ui.layout.MeasurePolicy;
import androidx.compose.ui.layout.OnGloballyPositionedModifierKt;
import androidx.compose.ui.node.ComposeUiNode;
import androidx.compose.ui.res.ColorResources_androidKt;
import androidx.compose.ui.res.StringResources_androidKt;
import androidx.compose.ui.text.TextLayoutResult;
import androidx.compose.ui.text.TextStyle;
import androidx.compose.ui.text.font.FontFamily;
import androidx.compose.ui.text.font.FontStyle;
import androidx.compose.ui.text.font.FontWeight;
import androidx.compose.ui.text.style.TextAlign;
import androidx.compose.ui.text.style.TextDecoration;
import androidx.compose.ui.tooling.preview.Preview;
import androidx.compose.ui.unit.Dp;
import androidx.compose.ui.unit.IntSize;
import coil.compose.AsyncImagePainter;
import coil.compose.d;
import com.fitnessmobileapps.bodytech39559.R;
import com.fitnessmobileapps.fma.core.compose.theme.ThemeKt;
import com.fitnessmobileapps.fma.core.data.remote.model.CreateIdentityUserRequest;
import com.fitnessmobileapps.fma.model.Promo;
import gf.a;
import java.util.List;
import java.util.concurrent.CancellationException;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.o;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.EmptyCoroutineContext;
import kotlin.coroutines.intrinsics.b;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.coroutines.jvm.internal.c;
import kotlin.f;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.r;
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.DelayKt;
import kotlinx.coroutines.Job;
import vf.g;
@Metadata(d1 = {"\u0000&\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0010\u0002\n\u0002\b\u0005\u001aG\u0010\u000b\u001a\u00020\t2\u0006\u0010\u0001\u001a\u00020\u00002\u000e\b\u0002\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u00022\b\b\u0002\u0010\u0006\u001a\u00020\u00052\u0014\b\u0002\u0010\n\u001a\u000e\u0012\u0004\u0012\u00020\b\u0012\u0004\u0012\u00020\t0\u0007H\u0007¢\u0006\u0004\b\u000b\u0010\f\u001aI\u0010\r\u001a\u00020\t2\b\b\u0002\u0010\u0001\u001a\u00020\u00002\u000e\b\u0002\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u00022\b\b\u0002\u0010\u0006\u001a\u00020\u00052\u0014\b\u0002\u0010\n\u001a\u000e\u0012\u0004\u0012\u00020\b\u0012\u0004\u0012\u00020\t0\u0007H\u0007¢\u0006\u0004\b\r\u0010\f¨\u0006\u000e"}, d2 = {"", CreateIdentityUserRequest.REGION, "", "Lcom/fitnessmobileapps/fma/model/Promo;", "promos", "Lcom/fitnessmobileapps/fma/feature/home/presentation/composables/PromoState;", "state", "Lkotlin/Function1;", "", "", "onPause", a.A, "(Ljava/lang/String;Ljava/util/List;Lcom/fitnessmobileapps/fma/feature/home/presentation/composables/PromoState;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;II)V", "h", "FMA_release"}, k = 2, mv = {1, 8, 0})
public final class PromoItemKt {
@ComposableTarget(applier = "androidx.compose.ui.UiComposable")
@Composable
public static final void a(final String region, List<Promo> list, PromoState promoState, Function1<? super Boolean, Unit> function1, Composer composer, final int i10, final int i11) {
int i12;
PromoState promoState2;
Function1<? super Boolean, Unit> function12;
PromoState promoState3;
Function1<? super Boolean, Unit> function13;
List<Promo> list2;
List<Promo> list3;
Composer composer2;
final List<Promo> list4;
final Function1<? super Boolean, Unit> function14;
ScopeUpdateScope endRestartGroup;
int i13;
r.i(region, "region");
Composer startRestartGroup = composer.startRestartGroup(891119284);
if ((i11 & 1) != 0) {
i12 = i10 | 6;
} else if ((i10 & 14) == 0) {
i12 = (startRestartGroup.changed(region) ? 4 : 2) | i10;
} else {
i12 = i10;
}
int i14 = i11 & 2;
if (i14 != 0) {
i12 |= 16;
}
if ((i10 & 896) == 0) {
if ((i11 & 4) == 0) {
promoState2 = promoState;
if (startRestartGroup.changed(promoState2)) {
i13 = 256;
i12 |= i13;
}
} else {
promoState2 = promoState;
}
i13 = 128;
i12 |= i13;
} else {
promoState2 = promoState;
}
int i15 = i11 & 8;
if (i15 != 0) {
i12 |= 3072;
} else if ((i10 & 7168) == 0) {
function12 = function1;
i12 |= startRestartGroup.changedInstance(function12) ? 2048 : 1024;
if (i14 != 2 && (i12 & 5851) == 1170 && startRestartGroup.getSkipping()) {
startRestartGroup.skipToGroupEnd();
list4 = list;
promoState3 = promoState2;
function14 = function12;
composer2 = startRestartGroup;
} else {
startRestartGroup.startDefaults();
if ((i10 & 1) != 0 || startRestartGroup.getDefaultsInvalid()) {
List<Promo> n10 = i14 == 0 ? o.n() : list;
PromoState promoState4 = (i11 & 4) == 0 ? new PromoState(0, 0, null, null, null, 31, null) : promoState2;
if (i15 == 0) {
list2 = n10;
promoState3 = promoState4;
function13 = new Function1<Boolean, Unit>() {
public final void invoke(boolean z10) {
}
@Override
public Unit invoke(Boolean bool) {
invoke(bool.booleanValue());
return Unit.f33247a;
}
};
} else {
promoState3 = promoState4;
function13 = function12;
list2 = n10;
}
} else {
startRestartGroup.skipToGroupEnd();
promoState3 = promoState2;
function13 = function12;
list2 = list;
}
startRestartGroup.endDefaults();
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(891119284, i10, -1, "com.fitnessmobileapps.fma.feature.home.presentation.composables.PromoItem (PromoItem.kt:42)");
}
if (!list2.isEmpty()) {
list3 = list2;
composer2 = startRestartGroup;
} else {
Object rememberedValue = startRestartGroup.rememberedValue();
Composer.Companion companion = Composer.INSTANCE;
if (rememberedValue == companion.getEmpty()) {
CompositionScopedCoroutineScopeCanceller compositionScopedCoroutineScopeCanceller = new CompositionScopedCoroutineScopeCanceller(EffectsKt.createCompositionCoroutineScope(EmptyCoroutineContext.f33338c, startRestartGroup));
startRestartGroup.updateRememberedValue(compositionScopedCoroutineScopeCanceller);
rememberedValue = compositionScopedCoroutineScopeCanceller;
}
final CoroutineScope coroutineScope = ((CompositionScopedCoroutineScopeCanceller) rememberedValue).getCoroutineScope();
AsyncImagePainter a10 = d.a(list2.get(promoState3.b()).getUrl(), null, null, null, 0, startRestartGroup, 0, 30);
Object rememberedValue2 = startRestartGroup.rememberedValue();
if (rememberedValue2 == companion.getEmpty()) {
rememberedValue2 = SnapshotIntStateKt.mutableIntStateOf(0);
startRestartGroup.updateRememberedValue(rememberedValue2);
}
final MutableIntState mutableIntState = (MutableIntState) rememberedValue2;
Object rememberedValue3 = startRestartGroup.rememberedValue();
if (rememberedValue3 == companion.getEmpty()) {
rememberedValue3 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(Boolean.FALSE, null, 2, null);
startRestartGroup.updateRememberedValue(rememberedValue3);
}
final MutableState mutableState = (MutableState) rememberedValue3;
Object rememberedValue4 = startRestartGroup.rememberedValue();
if (rememberedValue4 == companion.getEmpty()) {
rememberedValue4 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(null, null, 2, null);
startRestartGroup.updateRememberedValue(rememberedValue4);
}
final MutableState mutableState2 = (MutableState) rememberedValue4;
Modifier.Companion companion2 = Modifier.INSTANCE;
Alignment.Companion companion3 = Alignment.INSTANCE;
MeasurePolicy maybeCachedBoxMeasurePolicy = BoxKt.maybeCachedBoxMeasurePolicy(companion3.getTopStart(), false);
int currentCompositeKeyHash = ComposablesKt.getCurrentCompositeKeyHash(startRestartGroup, 0);
CompositionLocalMap currentCompositionLocalMap = startRestartGroup.getCurrentCompositionLocalMap();
Modifier materializeModifier = ComposedModifierKt.materializeModifier(startRestartGroup, companion2);
ComposeUiNode.Companion companion4 = ComposeUiNode.INSTANCE;
Function0<ComposeUiNode> constructor = companion4.getConstructor();
if (!(startRestartGroup.getApplier() instanceof Applier)) {
ComposablesKt.invalidApplier();
}
startRestartGroup.startReusableNode();
if (startRestartGroup.getInserting()) {
startRestartGroup.createNode(constructor);
} else {
startRestartGroup.useNode();
}
Composer m3691constructorimpl = Updater.m3691constructorimpl(startRestartGroup);
Updater.m3698setimpl(m3691constructorimpl, maybeCachedBoxMeasurePolicy, companion4.getSetMeasurePolicy());
Updater.m3698setimpl(m3691constructorimpl, currentCompositionLocalMap, companion4.getSetResolvedCompositionLocals());
Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash = companion4.getSetCompositeKeyHash();
if (m3691constructorimpl.getInserting() || !r.d(m3691constructorimpl.rememberedValue(), Integer.valueOf(currentCompositeKeyHash))) {
m3691constructorimpl.updateRememberedValue(Integer.valueOf(currentCompositeKeyHash));
m3691constructorimpl.apply(Integer.valueOf(currentCompositeKeyHash), setCompositeKeyHash);
}
Updater.m3698setimpl(m3691constructorimpl, materializeModifier, companion4.getSetModifier());
BoxScopeInstance boxScopeInstance = BoxScopeInstance.INSTANCE;
Modifier aspectRatio$default = AspectRatioKt.aspectRatio$default(SizeKt.fillMaxWidth$default(companion2, 0.0f, 1, null), 0.681f, false, 2, null);
boolean changed = startRestartGroup.changed(mutableIntState);
Object rememberedValue5 = startRestartGroup.rememberedValue();
if (changed || rememberedValue5 == companion.getEmpty()) {
rememberedValue5 = new Function1<LayoutCoordinates, Unit>() {
{
super(1);
}
@Override
public Unit invoke(LayoutCoordinates layoutCoordinates) {
invoke2(layoutCoordinates);
return Unit.f33247a;
}
public final void invoke2(LayoutCoordinates coordinates) {
r.i(coordinates, "coordinates");
PromoItemKt.c(MutableIntState.this, IntSize.m6673getWidthimpl(coordinates.mo5411getSizeYbymL2g()));
}
};
startRestartGroup.updateRememberedValue(rememberedValue5);
}
Modifier m246backgroundbw27NRU$default = BackgroundKt.m246backgroundbw27NRU$default(boxScopeInstance.align(OnGloballyPositionedModifierKt.onGloballyPositioned(aspectRatio$default, (Function1) rememberedValue5), companion3.getCenter()), ColorResources_androidKt.colorResource(R.color.promoTitleBackground, startRestartGroup, 0), null, 2, null);
MeasurePolicy maybeCachedBoxMeasurePolicy2 = BoxKt.maybeCachedBoxMeasurePolicy(companion3.getTopStart(), false);
int currentCompositeKeyHash2 = ComposablesKt.getCurrentCompositeKeyHash(startRestartGroup, 0);
CompositionLocalMap currentCompositionLocalMap2 = startRestartGroup.getCurrentCompositionLocalMap();
Modifier materializeModifier2 = ComposedModifierKt.materializeModifier(startRestartGroup, m246backgroundbw27NRU$default);
Function0<ComposeUiNode> constructor2 = companion4.getConstructor();
if (!(startRestartGroup.getApplier() instanceof Applier)) {
ComposablesKt.invalidApplier();
}
startRestartGroup.startReusableNode();
if (startRestartGroup.getInserting()) {
startRestartGroup.createNode(constructor2);
} else {
startRestartGroup.useNode();
}
Composer m3691constructorimpl2 = Updater.m3691constructorimpl(startRestartGroup);
Updater.m3698setimpl(m3691constructorimpl2, maybeCachedBoxMeasurePolicy2, companion4.getSetMeasurePolicy());
Updater.m3698setimpl(m3691constructorimpl2, currentCompositionLocalMap2, companion4.getSetResolvedCompositionLocals());
Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash2 = companion4.getSetCompositeKeyHash();
if (m3691constructorimpl2.getInserting() || !r.d(m3691constructorimpl2.rememberedValue(), Integer.valueOf(currentCompositeKeyHash2))) {
m3691constructorimpl2.updateRememberedValue(Integer.valueOf(currentCompositeKeyHash2));
m3691constructorimpl2.apply(Integer.valueOf(currentCompositeKeyHash2), setCompositeKeyHash2);
}
Updater.m3698setimpl(m3691constructorimpl2, materializeModifier2, companion4.getSetModifier());
ProgressIndicatorKt.m2372CircularProgressIndicatorLxG7B9w(boxScopeInstance.align(companion2, companion3.getCenter()), ColorResources_androidKt.colorResource(R.color.promoTitleTextColor, startRestartGroup, 0), 0.0f, 0L, 0, startRestartGroup, 0, 28);
startRestartGroup.endNode();
final Function1<? super Boolean, Unit> function15 = function13;
List<Promo> list5 = list2;
final PromoState promoState5 = promoState3;
ImageKt.Image(a10, StringResources_androidKt.stringResource(R.string.promo, startRestartGroup, 0), PointerInteropFilter_androidKt.pointerInteropFilter$default(AspectRatioKt.aspectRatio$default(SizeKt.fillMaxWidth$default(companion2, 0.0f, 1, null), 0.68f, false, 2, null), null, new Function1<MotionEvent, Boolean>() {
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
@c(c = "com.fitnessmobileapps.fma.feature.home.presentation.composables.PromoItemKt$PromoItem$2$3$1", f = "PromoItem.kt", l = {91}, m = "invokeSuspend")
static final class AnonymousClass1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
final MutableState<Boolean> $longPress$delegate;
final Function1<Boolean, Unit> $onPause;
final String $region;
int label;
AnonymousClass1(Function1<? super Boolean, Unit> function1, String str, MutableState<Boolean> mutableState, Continuation<? super AnonymousClass1> continuation) {
super(2, continuation);
this.$onPause = function1;
this.$region = str;
this.$longPress$delegate = mutableState;
}
@Override
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
return new AnonymousClass1(this.$onPause, this.$region, this.$longPress$delegate, continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
Object f10;
f10 = b.f();
int i10 = this.label;
if (i10 == 0) {
f.b(obj);
this.label = 1;
if (DelayKt.delay(200L, this) == f10) {
return f10;
}
} else {
if (i10 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
f.b(obj);
}
PromoItemKt.e(this.$longPress$delegate, true);
this.$onPause.invoke(kotlin.coroutines.jvm.internal.a.a(true));
a2.a.H(b.g.f246a.Q(), g.a(this.$region), b.a.f121a.f());
return Unit.f33247a;
}
@Override
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
return ((AnonymousClass1) create(coroutineScope, continuation)).invokeSuspend(Unit.f33247a);
}
}
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
@c(c = "com.fitnessmobileapps.fma.feature.home.presentation.composables.PromoItemKt$PromoItem$2$3$2", f = "PromoItem.kt", l = {}, m = "invokeSuspend")
static final class AnonymousClass2 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
final PromoState $state;
int label;
AnonymousClass2(PromoState promoState, Continuation<? super AnonymousClass2> continuation) {
super(2, continuation);
this.$state = promoState;
}
@Override
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
return new AnonymousClass2(this.$state, continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
kotlin.coroutines.intrinsics.b.f();
if (this.label != 0) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
f.b(obj);
this.$state.d();
return Unit.f33247a;
}
@Override
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
return ((AnonymousClass2) create(coroutineScope, continuation)).invokeSuspend(Unit.f33247a);
}
}
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
@c(c = "com.fitnessmobileapps.fma.feature.home.presentation.composables.PromoItemKt$PromoItem$2$3$3", f = "PromoItem.kt", l = {}, m = "invokeSuspend")
static final class AnonymousClass3 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
final PromoState $state;
int label;
AnonymousClass3(PromoState promoState, Continuation<? super AnonymousClass3> continuation) {
super(2, continuation);
this.$state = promoState;
}
@Override
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
return new AnonymousClass3(this.$state, continuation);
}
@Override
public final Object invokeSuspend(Object obj) {
kotlin.coroutines.intrinsics.b.f();
if (this.label != 0) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
f.b(obj);
this.$state.e();
return Unit.f33247a;
}
@Override
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
return ((AnonymousClass3) create(coroutineScope, continuation)).invokeSuspend(Unit.f33247a);
}
}
{
super(1);
}
@Override
public final Boolean invoke(MotionEvent event) {
boolean d10;
Job f10;
int b10;
r.i(event, "event");
int action = event.getAction();
boolean z10 = true;
if (action == 0) {
PromoItemKt.g(mutableState2, BuildersKt__Builders_commonKt.launch$default(CoroutineScope.this, null, null, new AnonymousClass1(function15, region, mutableState, null), 3, null));
} else if (action != 1) {
z10 = false;
} else {
d10 = PromoItemKt.d(mutableState);
if (d10) {
function15.invoke(Boolean.FALSE);
PromoItemKt.e(mutableState, false);
} else {
f10 = PromoItemKt.f(mutableState2);
if (f10 != null) {
Job.DefaultImpls.cancel$default(f10, (CancellationException) null, 1, (Object) null);
}
float x10 = event.getX();
b10 = PromoItemKt.b(mutableIntState);
if (x10 >= b10 / 2) {
BuildersKt__Builders_commonKt.launch$default(CoroutineScope.this, null, null, new AnonymousClass2(promoState5, null), 3, null);
} else {
BuildersKt__Builders_commonKt.launch$default(CoroutineScope.this, null, null, new AnonymousClass3(promoState5, null), 3, null);
}
}
}
return Boolean.valueOf(z10);
}
}, 1, null), companion3.getCenter(), ContentScale.INSTANCE.getFillWidth(), 0.0f, (ColorFilter) null, startRestartGroup, 27648, 96);
composer2 = startRestartGroup;
composer2.startReplaceableGroup(-302497247);
if (promoState3.c()) {
Modifier align = boxScopeInstance.align(BackgroundKt.m246backgroundbw27NRU$default(SizeKt.fillMaxWidth$default(companion2, 0.0f, 1, null), ColorResources_androidKt.colorResource(R.color.promoTitleBackground, composer2, 0), null, 2, null), companion3.getBottomCenter());
MeasurePolicy maybeCachedBoxMeasurePolicy3 = BoxKt.maybeCachedBoxMeasurePolicy(companion3.getTopStart(), false);
int currentCompositeKeyHash3 = ComposablesKt.getCurrentCompositeKeyHash(composer2, 0);
CompositionLocalMap currentCompositionLocalMap3 = composer2.getCurrentCompositionLocalMap();
Modifier materializeModifier3 = ComposedModifierKt.materializeModifier(composer2, align);
Function0<ComposeUiNode> constructor3 = companion4.getConstructor();
if (!(composer2.getApplier() instanceof Applier)) {
ComposablesKt.invalidApplier();
}
composer2.startReusableNode();
if (composer2.getInserting()) {
composer2.createNode(constructor3);
} else {
composer2.useNode();
}
Composer m3691constructorimpl3 = Updater.m3691constructorimpl(composer2);
Updater.m3698setimpl(m3691constructorimpl3, maybeCachedBoxMeasurePolicy3, companion4.getSetMeasurePolicy());
Updater.m3698setimpl(m3691constructorimpl3, currentCompositionLocalMap3, companion4.getSetResolvedCompositionLocals());
Function2<ComposeUiNode, Integer, Unit> setCompositeKeyHash3 = companion4.getSetCompositeKeyHash();
if (m3691constructorimpl3.getInserting() || !r.d(m3691constructorimpl3.rememberedValue(), Integer.valueOf(currentCompositeKeyHash3))) {
m3691constructorimpl3.updateRememberedValue(Integer.valueOf(currentCompositeKeyHash3));
m3691constructorimpl3.apply(Integer.valueOf(currentCompositeKeyHash3), setCompositeKeyHash3);
}
Updater.m3698setimpl(m3691constructorimpl3, materializeModifier3, companion4.getSetModifier());
list3 = list5;
TextKt.m2698Text4IGK_g(list3.get(promoState3.b()).getTitle(), PaddingKt.m677padding3ABfNKs(companion2, Dp.m6507constructorimpl(16)), ColorResources_androidKt.colorResource(R.color.promoTitleTextColor, composer2, 0), 0L, (FontStyle) null, (FontWeight) null, (FontFamily) null, 0L, (TextDecoration) null, (TextAlign) null, 0L, 0, false, 0, 0, (Function1<? super TextLayoutResult, Unit>) null, (TextStyle) null, composer2, 48, 0, 131064);
composer2.endNode();
} else {
list3 = list5;
}
composer2.endReplaceableGroup();
composer2.endNode();
}
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
}
list4 = list3;
function14 = function13;
}
endRestartGroup = composer2.endRestartGroup();
if (endRestartGroup != null) {
return;
}
final PromoState promoState6 = promoState3;
endRestartGroup.updateScope(new Function2<Composer, Integer, Unit>() {
{
super(2);
}
@Override
public Unit invoke(Composer composer3, Integer num) {
invoke(composer3, num.intValue());
return Unit.f33247a;
}
public final void invoke(Composer composer3, int i16) {
PromoItemKt.a(region, list4, promoState6, function14, composer3, RecomposeScopeImplKt.updateChangedFlags(i10 | 1), i11);
}
});
return;
}
function12 = function1;
if (i14 != 2) {
}
startRestartGroup.startDefaults();
if ((i10 & 1) != 0) {
}
if (i14 == 0) {
}
if ((i11 & 4) == 0) {
}
if (i15 == 0) {
}
startRestartGroup.endDefaults();
if (ComposerKt.isTraceInProgress()) {
}
if (!list2.isEmpty()) {
}
if (ComposerKt.isTraceInProgress()) {
}
list4 = list3;
function14 = function13;
endRestartGroup = composer2.endRestartGroup();
if (endRestartGroup != null) {
}
}
public static final int b(MutableIntState mutableIntState) {
return mutableIntState.getIntValue();
}
public static final void c(MutableIntState mutableIntState, int i10) {
mutableIntState.setIntValue(i10);
}
public static final boolean d(MutableState<Boolean> mutableState) {
return mutableState.getValue().booleanValue();
}
public static final void e(MutableState<Boolean> mutableState, boolean z10) {
mutableState.setValue(Boolean.valueOf(z10));
}
public static final Job f(MutableState<Job> mutableState) {
return mutableState.getValue();
}
public static final void g(MutableState<Job> mutableState, Job job) {
mutableState.setValue(job);
}
@ComposableTarget(applier = "androidx.compose.ui.UiComposable")
@Composable
@Preview
public static final void h(String str, List<Promo> list, PromoState promoState, Function1<? super Boolean, Unit> function1, Composer composer, final int i10, final int i11) {
String str2;
int i12;
PromoState promoState2;
Function1<? super Boolean, Unit> function12;
String str3;
List<Promo> list2;
PromoState promoState3;
ScopeUpdateScope endRestartGroup;
int i13;
Composer startRestartGroup = composer.startRestartGroup(74055732);
int i14 = i11 & 1;
if (i14 != 0) {
i12 = i10 | 6;
str2 = str;
} else if ((i10 & 14) == 0) {
str2 = str;
i12 = (startRestartGroup.changed(str2) ? 4 : 2) | i10;
} else {
str2 = str;
i12 = i10;
}
int i15 = i11 & 2;
if (i15 != 0) {
i12 |= 16;
}
if ((i10 & 896) == 0) {
if ((i11 & 4) == 0) {
promoState2 = promoState;
if (startRestartGroup.changed(promoState2)) {
i13 = 256;
i12 |= i13;
}
} else {
promoState2 = promoState;
}
i13 = 128;
i12 |= i13;
} else {
promoState2 = promoState;
}
int i16 = i11 & 8;
if (i16 != 0) {
i12 |= 3072;
} else if ((i10 & 7168) == 0) {
function12 = function1;
i12 |= startRestartGroup.changedInstance(function12) ? 2048 : 1024;
if (i15 != 2 && (i12 & 5851) == 1170 && startRestartGroup.getSkipping()) {
startRestartGroup.skipToGroupEnd();
list2 = list;
str3 = str2;
promoState3 = promoState2;
} else {
startRestartGroup.startDefaults();
if ((i10 & 1) != 0 || startRestartGroup.getDefaultsInvalid()) {
str3 = i14 == 0 ? "preview" : str2;
if (i15 == 0) {
list2 = o.h(new Promo("Stuff", "", "https://stuff.io", 0));
i12 &= -113;
} else {
list2 = list;
}
if ((i11 & 4) == 0) {
promoState3 = new PromoState(0, 0, null, null, null, 31, null);
i12 &= -897;
} else {
promoState3 = promoState2;
}
if (i16 != 0) {
function12 = new Function1<Boolean, Unit>() {
public final void invoke(boolean z10) {
}
@Override
public Unit invoke(Boolean bool) {
invoke(bool.booleanValue());
return Unit.f33247a;
}
};
}
} else {
startRestartGroup.skipToGroupEnd();
if (i15 != 0) {
i12 &= -113;
}
if ((i11 & 4) != 0) {
i12 &= -897;
}
list2 = list;
str3 = str2;
promoState3 = promoState2;
}
startRestartGroup.endDefaults();
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(74055732, i12, -1, "com.fitnessmobileapps.fma.feature.home.presentation.composables.PromoItemPreview (PromoItem.kt:148)");
}
final String str4 = str3;
final List<Promo> list3 = list2;
final PromoState promoState4 = promoState3;
final Function1<? super Boolean, Unit> function13 = function12;
final int i17 = i12;
ThemeKt.a(ComposableLambdaKt.composableLambda(startRestartGroup, -1751534924, true, new Function2<Composer, Integer, Unit>() {
{
super(2);
}
@Override
public Unit invoke(Composer composer2, Integer num) {
invoke(composer2, num.intValue());
return Unit.f33247a;
}
@ComposableTarget(applier = "androidx.compose.ui.UiComposable")
@Composable
public final void invoke(Composer composer2, int i18) {
if ((i18 & 11) == 2 && composer2.getSkipping()) {
composer2.skipToGroupEnd();
return;
}
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(-1751534924, i18, -1, "com.fitnessmobileapps.fma.feature.home.presentation.composables.PromoItemPreview.<anonymous> (PromoItem.kt:154)");
}
String str5 = str4;
List<Promo> list4 = list3;
PromoState promoState5 = promoState4;
Function1<Boolean, Unit> function14 = function13;
int i19 = i17;
PromoItemKt.a(str5, list4, promoState5, function14, composer2, (i19 & 14) | 64 | (i19 & 896) | (i19 & 7168), 0);
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
}
}
}), startRestartGroup, 6);
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
}
}
endRestartGroup = startRestartGroup.endRestartGroup();
if (endRestartGroup != null) {
return;
}
final String str5 = str3;
final List<Promo> list4 = list2;
final PromoState promoState5 = promoState3;
final Function1<? super Boolean, Unit> function14 = function12;
endRestartGroup.updateScope(new Function2<Composer, Integer, Unit>() {
{
super(2);
}
@Override
public Unit invoke(Composer composer2, Integer num) {
invoke(composer2, num.intValue());
return Unit.f33247a;
}
public final void invoke(Composer composer2, int i18) {
PromoItemKt.h(str5, list4, promoState5, function14, composer2, RecomposeScopeImplKt.updateChangedFlags(i10 | 1), i11);
}
});
return;
}
function12 = function1;
if (i15 != 2) {
}
startRestartGroup.startDefaults();
if ((i10 & 1) != 0) {
}
if (i14 == 0) {
}
if (i15 == 0) {
}
if ((i11 & 4) == 0) {
}
if (i16 != 0) {
}
startRestartGroup.endDefaults();
if (ComposerKt.isTraceInProgress()) {
}
final String str42 = str3;
final List<Promo> list32 = list2;
final PromoState promoState42 = promoState3;
final Function1<? super Boolean, Unit> function132 = function12;
final int i172 = i12;
ThemeKt.a(ComposableLambdaKt.composableLambda(startRestartGroup, -1751534924, true, new Function2<Composer, Integer, Unit>() {
{
super(2);
}
@Override
public Unit invoke(Composer composer2, Integer num) {
invoke(composer2, num.intValue());
return Unit.f33247a;
}
@ComposableTarget(applier = "androidx.compose.ui.UiComposable")
@Composable
public final void invoke(Composer composer2, int i18) {
if ((i18 & 11) == 2 && composer2.getSkipping()) {
composer2.skipToGroupEnd();
return;
}
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(-1751534924, i18, -1, "com.fitnessmobileapps.fma.feature.home.presentation.composables.PromoItemPreview.<anonymous> (PromoItem.kt:154)");
}
String str52 = str42;
List<Promo> list42 = list32;
PromoState promoState52 = promoState42;
Function1<Boolean, Unit> function142 = function132;
int i19 = i172;
PromoItemKt.a(str52, list42, promoState52, function142, composer2, (i19 & 14) | 64 | (i19 & 896) | (i19 & 7168), 0);
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
}
}
}), startRestartGroup, 6);
if (ComposerKt.isTraceInProgress()) {
}
endRestartGroup = startRestartGroup.endRestartGroup();
if (endRestartGroup != null) {
}
}
}