package com.revenuecat.purchases.ui.revenuecatui.components;

import A4.d;
import B.AbstractC0069k;
import B.C;
import B.C0093w0;
import B.D;
import B.U0;
import C.a;
import C4.j;
import I0.C0289e;
import I0.C0291f;
import I0.C0293g;
import I0.InterfaceC0295h;
import J4.c;
import J4.e;
import android.content.res.Configuration;
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.RecomposeScopeImplKt;
import androidx.compose.runtime.ScopeUpdateScope;
import androidx.compose.runtime.Updater;
import androidx.compose.runtime.internal.ComposableLambdaKt;
import androidx.compose.ui.platform.AndroidCompositionLocals_androidKt;
import androidx.media3.exoplayer.RendererCapabilities;
import androidx.media3.extractor.WavUtil;
import com.revenuecat.purchases.Offering;
import com.revenuecat.purchases.paywalls.components.StackComponent;
import com.revenuecat.purchases.paywalls.components.StickyFooterComponent;
import com.revenuecat.purchases.paywalls.components.TextComponent;
import com.revenuecat.purchases.paywalls.components.common.Background;
import com.revenuecat.purchases.paywalls.components.common.ComponentsConfig;
import com.revenuecat.purchases.paywalls.components.common.ExitOffers;
import com.revenuecat.purchases.paywalls.components.common.LocaleId;
import com.revenuecat.purchases.paywalls.components.common.LocalizationData;
import com.revenuecat.purchases.paywalls.components.common.LocalizationKey;
import com.revenuecat.purchases.paywalls.components.common.PaywallComponentsConfig;
import com.revenuecat.purchases.paywalls.components.common.PaywallComponentsData;
import com.revenuecat.purchases.paywalls.components.common.ProductChangeConfig;
import com.revenuecat.purchases.paywalls.components.properties.Badge;
import com.revenuecat.purchases.paywalls.components.properties.Border;
import com.revenuecat.purchases.paywalls.components.properties.ColorInfo;
import com.revenuecat.purchases.paywalls.components.properties.ColorScheme;
import com.revenuecat.purchases.paywalls.components.properties.CornerRadiuses;
import com.revenuecat.purchases.paywalls.components.properties.Dimension;
import com.revenuecat.purchases.paywalls.components.properties.FlexDistribution;
import com.revenuecat.purchases.paywalls.components.properties.FontWeight;
import com.revenuecat.purchases.paywalls.components.properties.HorizontalAlignment;
import com.revenuecat.purchases.paywalls.components.properties.Padding;
import com.revenuecat.purchases.paywalls.components.properties.Shadow;
import com.revenuecat.purchases.paywalls.components.properties.Shape;
import com.revenuecat.purchases.paywalls.components.properties.Size;
import com.revenuecat.purchases.paywalls.components.properties.SizeConstraint;
import com.revenuecat.purchases.paywalls.components.properties.TwoDimensionalAlignment;
import com.revenuecat.purchases.ui.revenuecatui.components.PaywallAction;
import com.revenuecat.purchases.ui.revenuecatui.components.modifier.BackgroundKt;
import com.revenuecat.purchases.ui.revenuecatui.components.modifier.SizeKt;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.BackgroundStyle;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.BackgroundStyleKt;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.BackgroundStyles;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.ColorStyle;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.ColorStyles;
import com.revenuecat.purchases.ui.revenuecatui.components.style.ButtonComponentStyle;
import com.revenuecat.purchases.ui.revenuecatui.components.style.ComponentStyle;
import com.revenuecat.purchases.ui.revenuecatui.composables.SimpleBottomSheetScaffoldKt;
import com.revenuecat.purchases.ui.revenuecatui.composables.SimpleSheetState;
import com.revenuecat.purchases.ui.revenuecatui.data.MockPurchasesType;
import com.revenuecat.purchases.ui.revenuecatui.data.PaywallState;
import com.revenuecat.purchases.ui.revenuecatui.data.testdata.TestData;
import com.revenuecat.purchases.ui.revenuecatui.extensions.ModifierExtensionsKt;
import com.revenuecat.purchases.ui.revenuecatui.helpers.OfferingToStateMapperKt;
import com.revenuecat.purchases.ui.revenuecatui.helpers.PaywallValidationResult;
import com.revenuecat.purchases.ui.revenuecatui.helpers.Result;
import com.revenuecat.purchases.ui.revenuecatui.helpers.ResultKt;
import i0.AbstractC2237a;
import i0.C2239c;
import i0.C2252p;
import i0.InterfaceC2255s;
import java.net.URL;
import java.util.Date;
import java.util.List;
import kotlin.jvm.internal.h;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.p;
import m3.AbstractC2467b;
import n2.AbstractC2612c;
import p0.AbstractC2686D;
import p0.C2714u;
import p0.X;
import v.AbstractC3058z;
import w4.C3137A;
import w4.k;
import x4.AbstractC3229F;
import x4.AbstractC3252r;
import x4.z;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class LoadedPaywallComponentsKt {
    private static final long MILLIS_2025_01_25 = 1737763200000L;

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents$1, reason: invalid class name */
    public static final class AnonymousClass1 extends p implements e {
        final /* synthetic */ BackgroundStyle $background;
        final /* synthetic */ ComponentStyle $footerComponentStyle;
        final /* synthetic */ e $onClick;
        final /* synthetic */ PaywallState.Loaded.Components $state;
        final /* synthetic */ ComponentStyle $style;

        /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents$1$1, reason: invalid class name and collision with other inner class name */
        public static final class C00311 extends p implements e {
            final /* synthetic */ ComponentStyle $footerComponentStyle;
            final /* synthetic */ e $onClick;
            final /* synthetic */ PaywallState.Loaded.Components $state;
            final /* synthetic */ ComponentStyle $style;

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            public C00311(ComponentStyle componentStyle, PaywallState.Loaded.Components components, e eVar, ComponentStyle componentStyle2) {
                super(2);
                this.$style = componentStyle;
                this.$state = components;
                this.$onClick = eVar;
                this.$footerComponentStyle = componentStyle2;
            }

            @Override // J4.e
            public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
                invoke((Composer) obj, ((Number) obj2).intValue());
                return C3137A.f25453a;
            }

            @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
            @Composable
            public final void invoke(Composer composer, int i6) {
                if ((i6 & 3) == 2 && composer.getSkipping()) {
                    composer.skipToGroupEnd();
                    return;
                }
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventStart(1882576877, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponents.<anonymous>.<anonymous> (LoadedPaywallComponents.kt:83)");
                }
                ComponentStyle componentStyle = this.$style;
                PaywallState.Loaded.Components components = this.$state;
                e eVar = this.$onClick;
                ComponentStyle componentStyle2 = this.$footerComponentStyle;
                C2252p c2252p = C2252p.f18820a;
                D dA = C.a(AbstractC0069k.f325c, C2239c.f18805p, composer, 0);
                int currentCompositeKeyHash = ComposablesKt.getCurrentCompositeKeyHash(composer, 0);
                CompositionLocalMap currentCompositionLocalMap = composer.getCurrentCompositionLocalMap();
                InterfaceC2255s interfaceC2255sC = AbstractC2237a.c(composer, c2252p);
                InterfaceC0295h.f2384g.getClass();
                C0291f c0291f = C0293g.f2375b;
                if (composer.getApplier() == null) {
                    ComposablesKt.invalidApplier();
                }
                composer.startReusableNode();
                if (composer.getInserting()) {
                    composer.createNode(c0291f);
                } else {
                    composer.useNode();
                }
                Composer composerM81constructorimpl = Updater.m81constructorimpl(composer);
                Updater.m89setimpl(composerM81constructorimpl, dA, C0293g.f2379f);
                Updater.m89setimpl(composerM81constructorimpl, currentCompositionLocalMap, C0293g.f2378e);
                C0289e c0289e = C0293g.f2380g;
                if (composerM81constructorimpl.getInserting() || !o.c(composerM81constructorimpl.rememberedValue(), Integer.valueOf(currentCompositeKeyHash))) {
                    Z0.o.u(currentCompositeKeyHash, composerM81constructorimpl, currentCompositeKeyHash, c0289e);
                }
                Updater.m89setimpl(composerM81constructorimpl, interfaceC2255sC, C0293g.f2377d);
                InterfaceC2255s interfaceC2255sF = U0.f(c2252p, 1.0f);
                if (1.0f <= 0.0d) {
                    a.a("invalid weight; must be greater than zero");
                }
                Composer composer2 = composer;
                ComponentViewKt.ComponentView(componentStyle, components, eVar, AbstractC3058z.x(interfaceC2255sF.then(new C0093w0(1.0f, true)), AbstractC3058z.w(composer), true), composer2, 0, 0);
                composer2.startReplaceGroup(1628615184);
                if (componentStyle2 != null) {
                    ComponentViewKt.ComponentView(componentStyle2, components, eVar, U0.f(c2252p, 1.0f), composer2, 3072, 0);
                    composer2 = composer2;
                }
                if (com.google.android.recaptcha.internal.a.v(composer2)) {
                    ComposerKt.traceEventEnd();
                }
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public AnonymousClass1(PaywallState.Loaded.Components components, BackgroundStyle backgroundStyle, ComponentStyle componentStyle, e eVar, ComponentStyle componentStyle2) {
            super(2);
            this.$state = components;
            this.$background = backgroundStyle;
            this.$style = componentStyle;
            this.$onClick = eVar;
            this.$footerComponentStyle = componentStyle2;
        }

        @Override // J4.e
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            invoke((Composer) obj, ((Number) obj2).intValue());
            return C3137A.f25453a;
        }

        @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
        @Composable
        public final void invoke(Composer composer, int i6) {
            if ((i6 & 3) == 2 && composer.getSkipping()) {
                composer.skipToGroupEnd();
                return;
            }
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-1179256774, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponents.<anonymous> (LoadedPaywallComponents.kt:82)");
            }
            PaywallState.Loaded.Components components = this.$state;
            WithOptionalBackgroundOverlayKt.WithOptionalBackgroundOverlay(components, this.$background, null, null, ComposableLambdaKt.rememberComposableLambda(1882576877, true, new C00311(this.$style, components, this.$onClick, this.$footerComponentStyle), composer, 54), composer, 24576, 12);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents$2, reason: invalid class name */
    public static final class AnonymousClass2 extends p implements e {
        final /* synthetic */ int $$changed;
        final /* synthetic */ int $$default;
        final /* synthetic */ e $clickHandler;
        final /* synthetic */ InterfaceC2255s $modifier;
        final /* synthetic */ PaywallState.Loaded.Components $state;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public AnonymousClass2(PaywallState.Loaded.Components components, e eVar, InterfaceC2255s interfaceC2255s, int i6, int i7) {
            super(2);
            this.$state = components;
            this.$clickHandler = eVar;
            this.$modifier = interfaceC2255s;
            this.$$changed = i6;
            this.$$default = i7;
        }

        @Override // J4.e
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            invoke((Composer) obj, ((Number) obj2).intValue());
            return C3137A.f25453a;
        }

        public final void invoke(Composer composer, int i6) {
            LoadedPaywallComponentsKt.LoadedPaywallComponents(this.$state, this.$clickHandler, this.$modifier, composer, RecomposeScopeImplKt.updateChangedFlags(this.$$changed | 1), this.$$default);
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_BottomSheet_FitSize_Preview$1, reason: invalid class name and case insensitive filesystem */
    @C4.e(c = "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_BottomSheet_FitSize_Preview$1", f = "LoadedPaywallComponents.kt", l = {}, m = "invokeSuspend")
    public static final class C14531 extends j implements e {
        int label;

        public C14531(d dVar) {
            super(2, dVar);
        }

        @Override // C4.a
        public final d create(Object obj, d dVar) {
            return new C14531(dVar);
        }

        @Override // J4.e
        public final Object invoke(PaywallAction paywallAction, d dVar) {
            return ((C14531) create(paywallAction, dVar)).invokeSuspend(C3137A.f25453a);
        }

        @Override // C4.a
        public final Object invokeSuspend(Object obj) {
            B4.a aVar = B4.a.f492a;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return C3137A.f25453a;
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_BottomSheet_FitSize_Preview$2, reason: invalid class name and case insensitive filesystem */
    @C4.e(c = "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_BottomSheet_FitSize_Preview$2", f = "LoadedPaywallComponents.kt", l = {}, m = "invokeSuspend")
    public static final class C14542 extends j implements e {
        int label;

        public C14542(d dVar) {
            super(2, dVar);
        }

        @Override // C4.a
        public final d create(Object obj, d dVar) {
            return new C14542(dVar);
        }

        @Override // J4.e
        public final Object invoke(PaywallAction.External external, d dVar) {
            return ((C14542) create(external, dVar)).invokeSuspend(C3137A.f25453a);
        }

        @Override // C4.a
        public final Object invokeSuspend(Object obj) {
            B4.a aVar = B4.a.f492a;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return C3137A.f25453a;
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_BottomSheet_FitSize_Preview$3, reason: invalid class name */
    public static final class AnonymousClass3 extends p implements e {
        final /* synthetic */ int $$changed;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public AnonymousClass3(int i6) {
            super(2);
            this.$$changed = i6;
        }

        @Override // J4.e
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            invoke((Composer) obj, ((Number) obj2).intValue());
            return C3137A.f25453a;
        }

        public final void invoke(Composer composer, int i6) {
            LoadedPaywallComponentsKt.LoadedPaywallComponents_BottomSheet_FitSize_Preview(composer, RecomposeScopeImplKt.updateChangedFlags(this.$$changed | 1));
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_BottomSheet_NullSize_Preview$1, reason: invalid class name and case insensitive filesystem */
    @C4.e(c = "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_BottomSheet_NullSize_Preview$1", f = "LoadedPaywallComponents.kt", l = {}, m = "invokeSuspend")
    public static final class C14551 extends j implements e {
        int label;

        public C14551(d dVar) {
            super(2, dVar);
        }

        @Override // C4.a
        public final d create(Object obj, d dVar) {
            return new C14551(dVar);
        }

        @Override // J4.e
        public final Object invoke(PaywallAction paywallAction, d dVar) {
            return ((C14551) create(paywallAction, dVar)).invokeSuspend(C3137A.f25453a);
        }

        @Override // C4.a
        public final Object invokeSuspend(Object obj) {
            B4.a aVar = B4.a.f492a;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return C3137A.f25453a;
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_BottomSheet_NullSize_Preview$2, reason: invalid class name and case insensitive filesystem */
    @C4.e(c = "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_BottomSheet_NullSize_Preview$2", f = "LoadedPaywallComponents.kt", l = {}, m = "invokeSuspend")
    public static final class C14562 extends j implements e {
        int label;

        public C14562(d dVar) {
            super(2, dVar);
        }

        @Override // C4.a
        public final d create(Object obj, d dVar) {
            return new C14562(dVar);
        }

        @Override // J4.e
        public final Object invoke(PaywallAction.External external, d dVar) {
            return ((C14562) create(external, dVar)).invokeSuspend(C3137A.f25453a);
        }

        @Override // C4.a
        public final Object invokeSuspend(Object obj) {
            B4.a aVar = B4.a.f492a;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return C3137A.f25453a;
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_BottomSheet_NullSize_Preview$3, reason: invalid class name and case insensitive filesystem */
    public static final class C14573 extends p implements e {
        final /* synthetic */ int $$changed;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C14573(int i6) {
            super(2);
            this.$$changed = i6;
        }

        @Override // J4.e
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            invoke((Composer) obj, ((Number) obj2).intValue());
            return C3137A.f25453a;
        }

        public final void invoke(Composer composer, int i6) {
            LoadedPaywallComponentsKt.LoadedPaywallComponents_BottomSheet_NullSize_Preview(composer, RecomposeScopeImplKt.updateChangedFlags(this.$$changed | 1));
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_Preview$1, reason: invalid class name and case insensitive filesystem */
    @C4.e(c = "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_Preview$1", f = "LoadedPaywallComponents.kt", l = {}, m = "invokeSuspend")
    public static final class C14581 extends j implements e {
        int label;

        public C14581(d dVar) {
            super(2, dVar);
        }

        @Override // C4.a
        public final d create(Object obj, d dVar) {
            return new C14581(dVar);
        }

        @Override // J4.e
        public final Object invoke(PaywallAction.External external, d dVar) {
            return ((C14581) create(external, dVar)).invokeSuspend(C3137A.f25453a);
        }

        @Override // C4.a
        public final Object invokeSuspend(Object obj) {
            B4.a aVar = B4.a.f492a;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return C3137A.f25453a;
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_Preview$2, reason: invalid class name and case insensitive filesystem */
    public static final class C14592 extends p implements e {
        final /* synthetic */ int $$changed;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C14592(int i6) {
            super(2);
            this.$$changed = i6;
        }

        @Override // J4.e
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            invoke((Composer) obj, ((Number) obj2).intValue());
            return C3137A.f25453a;
        }

        public final void invoke(Composer composer, int i6) {
            LoadedPaywallComponentsKt.LoadedPaywallComponents_Preview(composer, RecomposeScopeImplKt.updateChangedFlags(this.$$changed | 1));
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_Preview_Bless$1, reason: invalid class name and case insensitive filesystem */
    @C4.e(c = "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_Preview_Bless$1", f = "LoadedPaywallComponents.kt", l = {}, m = "invokeSuspend")
    public static final class C14601 extends j implements e {
        int label;

        public C14601(d dVar) {
            super(2, dVar);
        }

        @Override // C4.a
        public final d create(Object obj, d dVar) {
            return new C14601(dVar);
        }

        @Override // J4.e
        public final Object invoke(PaywallAction.External external, d dVar) {
            return ((C14601) create(external, dVar)).invokeSuspend(C3137A.f25453a);
        }

        @Override // C4.a
        public final Object invokeSuspend(Object obj) {
            B4.a aVar = B4.a.f492a;
            if (this.label != 0) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return C3137A.f25453a;
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$LoadedPaywallComponents_Preview_Bless$2, reason: invalid class name and case insensitive filesystem */
    public static final class C14612 extends p implements e {
        final /* synthetic */ int $$changed;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C14612(int i6) {
            super(2);
            this.$$changed = i6;
        }

        @Override // J4.e
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            invoke((Composer) obj, ((Number) obj2).intValue());
            return C3137A.f25453a;
        }

        public final void invoke(Composer composer, int i6) {
            LoadedPaywallComponentsKt.LoadedPaywallComponents_Preview_Bless(composer, RecomposeScopeImplKt.updateChangedFlags(this.$$changed | 1));
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$handleClick$2, reason: invalid class name and case insensitive filesystem */
    @C4.e(c = "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$handleClick$2", f = "LoadedPaywallComponents.kt", l = {119}, m = "invokeSuspend")
    public static final class C14622 extends j implements e {
        final /* synthetic */ e $externalClickHandler;
        final /* synthetic */ PaywallState.Loaded.Components $state;
        /* synthetic */ Object L$0;
        int label;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C14622(PaywallState.Loaded.Components components, e eVar, d dVar) {
            super(2, dVar);
            this.$state = components;
            this.$externalClickHandler = eVar;
        }

        @Override // C4.a
        public final d create(Object obj, d dVar) {
            C14622 c14622 = new C14622(this.$state, this.$externalClickHandler, dVar);
            c14622.L$0 = obj;
            return c14622;
        }

        @Override // J4.e
        public final Object invoke(PaywallAction paywallAction, d dVar) {
            return ((C14622) create(paywallAction, dVar)).invokeSuspend(C3137A.f25453a);
        }

        @Override // C4.a
        public final Object invokeSuspend(Object obj) {
            B4.a aVar = B4.a.f492a;
            int i6 = this.label;
            if (i6 == 0) {
                AbstractC2467b.l(obj);
                PaywallAction paywallAction = (PaywallAction) this.L$0;
                PaywallState.Loaded.Components components = this.$state;
                e eVar = this.$externalClickHandler;
                this.label = 1;
                if (LoadedPaywallComponentsKt.handleClick(paywallAction, components, eVar, this) == aVar) {
                    return aVar;
                }
            } else {
                if (i6 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                AbstractC2467b.l(obj);
            }
            return C3137A.f25453a;
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$previewHelloWorldPaywallState$1, reason: invalid class name and case insensitive filesystem */
    public static final class C14631 extends p implements J4.a {
        public static final C14631 INSTANCE = new C14631();

        public C14631() {
            super(0);
        }

        @Override // J4.a
        public final Date invoke() {
            return new Date(LoadedPaywallComponentsKt.MILLIS_2025_01_25);
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$show$1, reason: invalid class name and case insensitive filesystem */
    public static final class C14641 extends p implements e {
        final /* synthetic */ e $onClick;
        final /* synthetic */ ButtonComponentStyle.Action.NavigateTo.Destination.Sheet $sheet;
        final /* synthetic */ PaywallState.Loaded.Components $state;
        final /* synthetic */ SimpleSheetState $this_show;

        /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$show$1$2, reason: invalid class name */
        public static final class AnonymousClass2 extends p implements e {
            public static final AnonymousClass2 INSTANCE = new AnonymousClass2();

            public AnonymousClass2() {
                super(2);
            }

            @Override // J4.e
            public final InterfaceC2255s invoke(InterfaceC2255s applyIfNotNull, Size it) {
                o.h(applyIfNotNull, "$this$applyIfNotNull");
                o.h(it, "it");
                return SizeKt.size$default(applyIfNotNull, it, null, null, 6, null);
            }
        }

        /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$show$1$3, reason: invalid class name */
        public static final class AnonymousClass3 extends p implements c {
            public static final AnonymousClass3 INSTANCE = new AnonymousClass3();

            public AnonymousClass3() {
                super(1);
            }

            @Override // J4.c
            public final InterfaceC2255s invoke(InterfaceC2255s conditional) {
                o.h(conditional, "$this$conditional");
                return U0.f(conditional, 1.0f);
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C14641(ButtonComponentStyle.Action.NavigateTo.Destination.Sheet sheet, PaywallState.Loaded.Components components, SimpleSheetState simpleSheetState, e eVar) {
            super(2);
            this.$sheet = sheet;
            this.$state = components;
            this.$this_show = simpleSheetState;
            this.$onClick = eVar;
        }

        @Override // J4.e
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            invoke((Composer) obj, ((Number) obj2).intValue());
            return C3137A.f25453a;
        }

        @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
        @Composable
        public final void invoke(Composer composer, int i6) {
            if ((i6 & 3) == 2 && composer.getSkipping()) {
                composer.skipToGroupEnd();
                return;
            }
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(1290168816, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.show.<anonymous> (LoadedPaywallComponents.kt:140)");
            }
            ComponentStyle stack = this.$sheet.getStack();
            PaywallState.Loaded.Components components = this.$state;
            composer.startReplaceGroup(1730748123);
            boolean zChanged = composer.changed(this.$this_show) | composer.changedInstance(this.$onClick);
            SimpleSheetState simpleSheetState = this.$this_show;
            e eVar = this.$onClick;
            Object objRememberedValue = composer.rememberedValue();
            if (zChanged || objRememberedValue == Composer.Companion.getEmpty()) {
                objRememberedValue = new LoadedPaywallComponentsKt$show$1$1$1(simpleSheetState, eVar, null);
                composer.updateRememberedValue(objRememberedValue);
            }
            e eVar2 = (e) objRememberedValue;
            composer.endReplaceGroup();
            ComponentViewKt.ComponentView(stack, components, eVar2, ModifierExtensionsKt.conditional(ModifierExtensionsKt.applyIfNotNull(C2252p.f18820a, this.$sheet.getSize(), AnonymousClass2.INSTANCE), this.$sheet.getSize() == null, AnonymousClass3.INSTANCE), composer, 0, 0);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponentsKt$show$2, reason: invalid class name and case insensitive filesystem */
    public static final class C14652 extends p implements J4.a {
        final /* synthetic */ PaywallState.Loaded.Components $state;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C14652(PaywallState.Loaded.Components components) {
            super(0);
            this.$state = components;
        }

        @Override // J4.a
        public /* bridge */ /* synthetic */ Object invoke() {
            m655invoke();
            return C3137A.f25453a;
        }

        /* JADX INFO: renamed from: invoke, reason: collision with other method in class */
        public final void m655invoke() {
            this.$state.resetToDefaultPackage();
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:41:0x0079  */
    /* JADX WARN: Removed duplicated region for block: B:42:0x007b  */
    /* JADX WARN: Removed duplicated region for block: B:43:0x007f  */
    /* JADX WARN: Removed duplicated region for block: B:46:0x0086  */
    /* JADX WARN: Removed duplicated region for block: B:49:0x00bf  */
    /* JADX WARN: Removed duplicated region for block: B:54:0x00d4  */
    /* JADX WARN: Removed duplicated region for block: B:57:0x0105  */
    /* JADX WARN: Removed duplicated region for block: B:61:0x010f  */
    /* JADX WARN: Removed duplicated region for block: B:63:? A[RETURN, SYNTHETIC] */
    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final void LoadedPaywallComponents(PaywallState.Loaded.Components state, e clickHandler, InterfaceC2255s interfaceC2255s, Composer composer, int i6, int i7) {
        int i8;
        InterfaceC2255s interfaceC2255s2;
        int i9;
        boolean zChangedInstance;
        Object objRememberedValue;
        InterfaceC2255s interfaceC2255s3;
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup;
        o.h(state, "state");
        o.h(clickHandler, "clickHandler");
        Composer composerStartRestartGroup = composer.startRestartGroup(1377748719);
        if ((i7 & 1) != 0) {
            i8 = i6 | 6;
        } else if ((i6 & 6) == 0) {
            i8 = (composerStartRestartGroup.changed(state) ? 4 : 2) | i6;
        } else {
            i8 = i6;
        }
        if ((i7 & 2) != 0) {
            i8 |= 48;
        } else if ((i6 & 48) == 0) {
            i8 |= composerStartRestartGroup.changedInstance(clickHandler) ? 32 : 16;
        }
        int i10 = i7 & 4;
        if (i10 == 0) {
            if ((i6 & RendererCapabilities.DECODER_SUPPORT_MASK) == 0) {
                interfaceC2255s2 = interfaceC2255s;
                i8 |= composerStartRestartGroup.changed(interfaceC2255s2) ? 256 : 128;
            }
            i9 = i8;
            if ((i9 & 147) == 146 || !composerStartRestartGroup.getSkipping()) {
                InterfaceC2255s interfaceC2255s4 = i10 == 0 ? C2252p.f18820a : interfaceC2255s2;
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventStart(1377748719, i9, -1, "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponents (LoadedPaywallComponents.kt:70)");
                }
                PaywallState.Loaded.Components.update$default(state, ((Configuration) composerStartRestartGroup.consume(AndroidCompositionLocals_androidKt.f11153a)).getLocales(), null, null, 6, null);
                ComponentStyle stack = state.getStack();
                ComponentStyle stickyFooter = state.getStickyFooter();
                BackgroundStyle backgroundStyleRememberBackgroundStyle = BackgroundStyleKt.rememberBackgroundStyle(state.getBackground(), composerStartRestartGroup, 0);
                composerStartRestartGroup.startReplaceGroup(174532025);
                zChangedInstance = ((i9 & 14) == 4) | composerStartRestartGroup.changedInstance(clickHandler);
                objRememberedValue = composerStartRestartGroup.rememberedValue();
                if (!zChangedInstance || objRememberedValue == Composer.Companion.getEmpty()) {
                    objRememberedValue = new LoadedPaywallComponentsKt$LoadedPaywallComponents$onClick$1$1(state, clickHandler, null);
                    composerStartRestartGroup.updateRememberedValue(objRememberedValue);
                }
                composerStartRestartGroup.endReplaceGroup();
                SimpleBottomSheetScaffoldKt.SimpleBottomSheetScaffold(state.getSheet(), BackgroundKt.background$default(interfaceC2255s4, backgroundStyleRememberBackgroundStyle, (X) null, 2, (Object) null), ComposableLambdaKt.rememberComposableLambda(-1179256774, true, new AnonymousClass1(state, backgroundStyleRememberBackgroundStyle, stack, (e) objRememberedValue, stickyFooter), composerStartRestartGroup, 54), composerStartRestartGroup, RendererCapabilities.DECODER_SUPPORT_MASK, 0);
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventEnd();
                }
                interfaceC2255s3 = interfaceC2255s4;
            } else {
                composerStartRestartGroup.skipToGroupEnd();
                interfaceC2255s3 = interfaceC2255s2;
            }
            scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
            if (scopeUpdateScopeEndRestartGroup == null) {
                scopeUpdateScopeEndRestartGroup.updateScope(new AnonymousClass2(state, clickHandler, interfaceC2255s3, i6, i7));
                return;
            }
            return;
        }
        i8 |= RendererCapabilities.DECODER_SUPPORT_MASK;
        interfaceC2255s2 = interfaceC2255s;
        i9 = i8;
        if ((i9 & 147) == 146) {
            if (i10 == 0) {
            }
            if (ComposerKt.isTraceInProgress()) {
            }
            PaywallState.Loaded.Components.update$default(state, ((Configuration) composerStartRestartGroup.consume(AndroidCompositionLocals_androidKt.f11153a)).getLocales(), null, null, 6, null);
            ComponentStyle stack2 = state.getStack();
            ComponentStyle stickyFooter2 = state.getStickyFooter();
            BackgroundStyle backgroundStyleRememberBackgroundStyle2 = BackgroundStyleKt.rememberBackgroundStyle(state.getBackground(), composerStartRestartGroup, 0);
            composerStartRestartGroup.startReplaceGroup(174532025);
            zChangedInstance = ((i9 & 14) == 4) | composerStartRestartGroup.changedInstance(clickHandler);
            objRememberedValue = composerStartRestartGroup.rememberedValue();
            if (!zChangedInstance) {
                objRememberedValue = new LoadedPaywallComponentsKt$LoadedPaywallComponents$onClick$1$1(state, clickHandler, null);
                composerStartRestartGroup.updateRememberedValue(objRememberedValue);
                composerStartRestartGroup.endReplaceGroup();
                SimpleBottomSheetScaffoldKt.SimpleBottomSheetScaffold(state.getSheet(), BackgroundKt.background$default(interfaceC2255s4, backgroundStyleRememberBackgroundStyle2, (X) null, 2, (Object) null), ComposableLambdaKt.rememberComposableLambda(-1179256774, true, new AnonymousClass1(state, backgroundStyleRememberBackgroundStyle2, stack2, (e) objRememberedValue, stickyFooter2), composerStartRestartGroup, 54), composerStartRestartGroup, RendererCapabilities.DECODER_SUPPORT_MASK, 0);
                if (ComposerKt.isTraceInProgress()) {
                }
                interfaceC2255s3 = interfaceC2255s4;
            }
        }
        scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup == null) {
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    public static final void LoadedPaywallComponents_BottomSheet_FitSize_Preview(Composer composer, int i6) {
        Composer composerStartRestartGroup = composer.startRestartGroup(561912880);
        if (i6 == 0 && composerStartRestartGroup.getSkipping()) {
            composerStartRestartGroup.skipToGroupEnd();
        } else {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(561912880, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponents_BottomSheet_FitSize_Preview (LoadedPaywallComponents.kt:195)");
            }
            PaywallState.Loaded.Components componentsPreviewHelloWorldPaywallState = previewHelloWorldPaywallState(composerStartRestartGroup, 0);
            SimpleSheetState sheet = componentsPreviewHelloWorldPaywallState.getSheet();
            SizeConstraint.Fit fit = SizeConstraint.Fit.INSTANCE;
            show(sheet, previewBottomSheet(new Size(fit, fit)), componentsPreviewHelloWorldPaywallState, new C14531(null));
            LoadedPaywallComponents(componentsPreviewHelloWorldPaywallState, new C14542(null), U0.f193c, composerStartRestartGroup, 432, 0);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new AnonymousClass3(i6));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    public static final void LoadedPaywallComponents_BottomSheet_NullSize_Preview(Composer composer, int i6) {
        Composer composerStartRestartGroup = composer.startRestartGroup(-398756048);
        if (i6 == 0 && composerStartRestartGroup.getSkipping()) {
            composerStartRestartGroup.skipToGroupEnd();
        } else {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-398756048, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponents_BottomSheet_NullSize_Preview (LoadedPaywallComponents.kt:176)");
            }
            PaywallState.Loaded.Components componentsPreviewHelloWorldPaywallState = previewHelloWorldPaywallState(composerStartRestartGroup, 0);
            show(componentsPreviewHelloWorldPaywallState.getSheet(), previewBottomSheet(null), componentsPreviewHelloWorldPaywallState, new C14551(null));
            LoadedPaywallComponents(componentsPreviewHelloWorldPaywallState, new C14562(null), U0.f193c, composerStartRestartGroup, 432, 0);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new C14573(i6));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    public static final void LoadedPaywallComponents_Preview(Composer composer, int i6) {
        Composer composerStartRestartGroup = composer.startRestartGroup(-1173704376);
        if (i6 == 0 && composerStartRestartGroup.getSkipping()) {
            composerStartRestartGroup.skipToGroupEnd();
        } else {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-1173704376, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponents_Preview (LoadedPaywallComponents.kt:164)");
            }
            LoadedPaywallComponents(previewHelloWorldPaywallState(composerStartRestartGroup, 0), new C14581(null), U0.f193c, composerStartRestartGroup, 432, 0);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new C14592(i6));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    public static final void LoadedPaywallComponents_Preview_Bless(Composer composer, int i6) {
        Composer composerStartRestartGroup = composer.startRestartGroup(-485118556);
        if (i6 == 0 && composerStartRestartGroup.getSkipping()) {
            composerStartRestartGroup.skipToGroupEnd();
        } else {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-485118556, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.LoadedPaywallComponents_Preview_Bless (LoadedPaywallComponents.kt:215)");
            }
            long j4 = C2714u.f22935b;
            ColorInfo.Hex hex = new ColorInfo.Hex(AbstractC2686D.I(j4));
            long j6 = C2714u.f22939f;
            ColorScheme colorScheme = new ColorScheme(hex, new ColorInfo.Hex(AbstractC2686D.I(j6)));
            ColorScheme colorScheme2 = new ColorScheme(new ColorInfo.Hex(AbstractC2686D.I(j6)), new ColorInfo.Hex(AbstractC2686D.I(j4)));
            URL url = new URL("https://assets.pawwalls.com");
            List listQ = AbstractC2612c.q(TestData.Components.INSTANCE.getMonthlyPackageComponent());
            TwoDimensionalAlignment twoDimensionalAlignment = TwoDimensionalAlignment.CENTER;
            Dimension.ZLayer zLayer = new Dimension.ZLayer(twoDimensionalAlignment);
            SizeConstraint.Fill fill = SizeConstraint.Fill.INSTANCE;
            StackComponent stackComponent = new StackComponent(listQ, (Boolean) null, zLayer, new Size(fill, fill), (Float) null, new ColorScheme(new ColorInfo.Gradient.Linear(60.0f, AbstractC3252r.B(new ColorInfo.Gradient.Point(AbstractC2686D.I(AbstractC2686D.d(255, 255, 255)), 40.0f), new ColorInfo.Gradient.Point(AbstractC2686D.I(AbstractC2686D.d(5, 124, 91)), 100.0f))), (ColorInfo) null, 2, (h) null), (Background) null, (Padding) null, (Padding) null, (Shape) null, (Border) null, (Shadow) null, (Badge) null, (StackComponent.Overflow) null, (List) null, 32722, (h) null);
            String strM608constructorimpl = LocalizationKey.m608constructorimpl("title");
            FontWeight fontWeight = FontWeight.SEMI_BOLD;
            HorizontalAlignment horizontalAlignment = HorizontalAlignment.LEADING;
            SizeConstraint.Fit fit = SizeConstraint.Fit.INSTANCE;
            Padding padding = null;
            List list = null;
            h hVar = null;
            ColorScheme colorScheme3 = null;
            String str = null;
            Integer num = null;
            TextComponent textComponent = new TextComponent(strM608constructorimpl, colorScheme, (Boolean) null, colorScheme3, str, fontWeight, num, 28, horizontalAlignment, new Size(fill, fit), padding, new Padding(0.0d, 40.0d, 0.0d, 0.0d), list, 5212, hVar);
            int i7 = 5372;
            FontWeight fontWeight2 = null;
            int i8 = 0;
            Offering offering = new Offering("id", "description", z.f26066a, AbstractC2612c.q(TestData.Packages.INSTANCE.getMonthly()), null, new Offering.PaywallComponents(PreviewHelpersKt.previewUiConfig$default(null, null, null, 7, null), new PaywallComponentsData("preview_paywall_id", "template", url, new ComponentsConfig(new PaywallComponentsConfig(new StackComponent(AbstractC3252r.B(stackComponent, new StackComponent(AbstractC3252r.B(textComponent, new TextComponent(LocalizationKey.m608constructorimpl("feature-1"), colorScheme, (Boolean) null, colorScheme3, str, fontWeight2, num, i8, horizontalAlignment, new Size(fill, fit), padding, new Padding(8.0d, 8.0d, 0.0d, 0.0d), list, i7, hVar), new TextComponent(LocalizationKey.m608constructorimpl("feature-2"), colorScheme, (Boolean) null, colorScheme3, str, fontWeight2, num, i8, horizontalAlignment, new Size(fill, fit), padding, new Padding(8.0d, 8.0d, 0.0d, 0.0d), list, i7, hVar), new TextComponent(LocalizationKey.m608constructorimpl("feature-3"), colorScheme, (Boolean) null, colorScheme3, str, fontWeight2, num, i8, horizontalAlignment, new Size(fill, fit), padding, new Padding(8.0d, 8.0d, 0.0d, 0.0d), list, i7, hVar), new TextComponent(LocalizationKey.m608constructorimpl("feature-4"), colorScheme, (Boolean) null, colorScheme3, str, fontWeight2, num, i8, horizontalAlignment, new Size(fill, fit), padding, new Padding(8.0d, 8.0d, 0.0d, 0.0d), list, i7, hVar), new TextComponent(LocalizationKey.m608constructorimpl("feature-5"), colorScheme, (Boolean) null, colorScheme3, str, fontWeight2, num, i8, horizontalAlignment, new Size(fill, fit), padding, new Padding(8.0d, 8.0d, 0.0d, 0.0d), list, i7, hVar), new TextComponent(LocalizationKey.m608constructorimpl("feature-6"), colorScheme, (Boolean) null, colorScheme3, str, fontWeight2, num, i8, horizontalAlignment, new Size(fill, fit), padding, new Padding(8.0d, 8.0d, 0.0d, 0.0d), list, i7, hVar), new TextComponent(LocalizationKey.m608constructorimpl("offer"), colorScheme, (Boolean) null, colorScheme3, str, fontWeight2, num, i8, horizontalAlignment, new Size(fill, fit), padding, new Padding(48.0d, 8.0d, 0.0d, 0.0d), list, i7, hVar), new StackComponent(AbstractC2612c.q(new TextComponent(LocalizationKey.m608constructorimpl("cta"), new ColorScheme(new ColorInfo.Hex(AbstractC2686D.I(j6)), (ColorInfo) null, 2, (h) null), (Boolean) null, (ColorScheme) null, (String) null, FontWeight.BOLD, (Integer) null, 0, (HorizontalAlignment) null, (Size) null, (Padding) null, (Padding) null, (List) null, 8156, (h) null)), (Boolean) null, new Dimension.ZLayer(twoDimensionalAlignment), new Size(fit, fit), (Float) null, new ColorScheme(new ColorInfo.Hex(AbstractC2686D.I(AbstractC2686D.d(5, 124, 91))), (ColorInfo) null, 2, (h) null), (Background) null, new Padding(8.0d, 8.0d, 32.0d, 32.0d), new Padding(8.0d, 8.0d, 0.0d, 0.0d), Shape.Pill.INSTANCE, (Border) null, (Shadow) null, (Badge) null, (StackComponent.Overflow) null, (List) null, 31826, (h) null), new TextComponent(LocalizationKey.m608constructorimpl("terms"), colorScheme, (Boolean) null, (ColorScheme) null, (String) null, (FontWeight) null, (Integer) null, 0, (HorizontalAlignment) null, (Size) null, (Padding) null, (Padding) null, (List) null, 8188, (h) null)), (Boolean) null, new Dimension.Vertical(horizontalAlignment, FlexDistribution.END), new Size(fill, fill), (Float) null, (ColorScheme) null, (Background) null, new Padding(16.0d, 16.0d, 32.0d, 32.0d), (Padding) null, (Shape) null, (Border) null, (Shadow) null, (Badge) null, (StackComponent.Overflow) null, (List) null, 32626, (h) null)), (Boolean) null, new Dimension.ZLayer(TwoDimensionalAlignment.BOTTOM), new Size(fill, fill), (Float) null, colorScheme2, (Background) null, (Padding) null, (Padding) null, (Shape) null, (Border) null, (Shadow) null, (Badge) null, (StackComponent.Overflow) null, (List) null, 32722, (h) null), new Background.Color(colorScheme2), null)), AbstractC3229F.v(new k(LocaleId.m571boximpl(LocaleId.m572constructorimpl("en_US")), AbstractC3229F.w(new k(LocalizationKey.m607boximpl(LocalizationKey.m608constructorimpl("title")), LocalizationData.Text.m589boximpl(LocalizationData.Text.m590constructorimpl("Unlock bless."))), new k(LocalizationKey.m607boximpl(LocalizationKey.m608constructorimpl("feature-1")), LocalizationData.Text.m589boximpl(LocalizationData.Text.m590constructorimpl("✓ Enjoy a 7 day trial"))), new k(LocalizationKey.m607boximpl(LocalizationKey.m608constructorimpl("feature-2")), LocalizationData.Text.m589boximpl(LocalizationData.Text.m590constructorimpl("✓ Change currencies"))), new k(LocalizationKey.m607boximpl(LocalizationKey.m608constructorimpl("feature-3")), LocalizationData.Text.m589boximpl(LocalizationData.Text.m590constructorimpl("✓ Access more trend charts"))), new k(LocalizationKey.m607boximpl(LocalizationKey.m608constructorimpl("feature-4")), LocalizationData.Text.m589boximpl(LocalizationData.Text.m590constructorimpl("✓ Create custom categories"))), new k(LocalizationKey.m607boximpl(LocalizationKey.m608constructorimpl("feature-5")), LocalizationData.Text.m589boximpl(LocalizationData.Text.m590constructorimpl("✓ Get a special premium icon"))), new k(LocalizationKey.m607boximpl(LocalizationKey.m608constructorimpl("feature-6")), LocalizationData.Text.m589boximpl(LocalizationData.Text.m590constructorimpl("✓ Receive our love and gratitude for your support"))), new k(LocalizationKey.m607boximpl(LocalizationKey.m608constructorimpl("offer")), LocalizationData.Text.m589boximpl(LocalizationData.Text.m590constructorimpl("Try 7 days free, then $19.98/year. Cancel anytime."))), new k(LocalizationKey.m607boximpl(LocalizationKey.m608constructorimpl("cta")), LocalizationData.Text.m589boximpl(LocalizationData.Text.m590constructorimpl("Continue"))), new k(LocalizationKey.m607boximpl(LocalizationKey.m608constructorimpl("terms")), LocalizationData.Text.m589boximpl(LocalizationData.Text.m590constructorimpl("Privacy & Terms")))))), LocaleId.m572constructorimpl("en_US"), 0, (List) null, (ExitOffers) null, (ProductChangeConfig) null, 960, (h) null)), null, 80, null);
            Result resultValidatePaywallComponentsDataOrNullForPreviews = PreviewHelpersKt.validatePaywallComponentsDataOrNullForPreviews(offering, composerStartRestartGroup, 0);
            PaywallValidationResult.Components components = resultValidatePaywallComponentsDataOrNullForPreviews != null ? (PaywallValidationResult.Components) ResultKt.getOrThrow(resultValidatePaywallComponentsDataOrNullForPreviews) : null;
            o.e(components);
            LoadedPaywallComponents(OfferingToStateMapperKt.toComponentsPaywallState$default(offering, components, null, LoadedPaywallComponentsKt$LoadedPaywallComponents_Preview_Bless$state$1.INSTANCE, new MockPurchasesType(null, null, null, null, 15, null), null, null, 48, null), new C14601(null), U0.f193c, composerStartRestartGroup, 432, 0);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new C14612(i6));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final Object handleClick(PaywallAction paywallAction, PaywallState.Loaded.Components components, e eVar, d dVar) {
        boolean z6 = paywallAction instanceof PaywallAction.External;
        C3137A c3137a = C3137A.f25453a;
        if (z6) {
            Object objInvoke = eVar.invoke(paywallAction, dVar);
            return objInvoke == B4.a.f492a ? objInvoke : c3137a;
        }
        if ((paywallAction instanceof PaywallAction.Internal) && (((PaywallAction.Internal) paywallAction) instanceof PaywallAction.Internal.NavigateTo)) {
            PaywallAction.Internal.NavigateTo navigateTo = (PaywallAction.Internal.NavigateTo) paywallAction;
            if (navigateTo.getDestination() instanceof PaywallAction.Internal.NavigateTo.Destination.Sheet) {
                show(components.getSheet(), ((PaywallAction.Internal.NavigateTo.Destination.Sheet) navigateTo.getDestination()).getSheet(), components, new C14622(components, eVar, null));
            }
        }
        return c3137a;
    }

    private static final ButtonComponentStyle.Action.NavigateTo.Destination.Sheet previewBottomSheet(Size size) {
        List listB = AbstractC3252r.B(PreviewHelpersKt.previewTextComponentStyle$default("This is a bottom sheet.", null, 0, null, null, null, null, null, false, null, null, null, null, null, null, null, WavUtil.TYPE_WAVE_FORMAT_EXTENSIBLE, null), PreviewHelpersKt.previewTextComponentStyle$default("This is a bottom sheet.", null, 0, null, null, null, null, null, false, null, null, null, null, null, null, null, WavUtil.TYPE_WAVE_FORMAT_EXTENSIBLE, null), PreviewHelpersKt.previewTextComponentStyle$default("This is a bottom sheet.", null, 0, null, null, null, null, null, false, null, null, null, null, null, null, null, WavUtil.TYPE_WAVE_FORMAT_EXTENSIBLE, null));
        int i6 = C2714u.f22946n;
        ColorStyles colorStylesM711constructorimpl = BackgroundStyles.Color.m711constructorimpl(new ColorStyles(ColorStyle.Solid.m732boximpl(ColorStyle.Solid.m733constructorimpl(C2714u.f22939f)), null, 2, null));
        return new ButtonComponentStyle.Action.NavigateTo.Destination.Sheet("", "", PreviewHelpersKt.m657previewStackComponentStyle7SJwSw$default(listB, null, false, null, 0.0f, BackgroundStyles.Color.m710boximpl(colorStylesM711constructorimpl), null, null, new Shape.Rectangle(new CornerRadiuses.Dp(16.0d, 16.0d, 0.0d, 0.0d)), null, null, null, null, null, null, 31966, null), true, size);
    }

    public static /* synthetic */ ButtonComponentStyle.Action.NavigateTo.Destination.Sheet previewBottomSheet$default(Size size, int i6, Object obj) {
        if ((i6 & 1) != 0) {
            size = null;
        }
        return previewBottomSheet(size);
    }

    @Composable
    private static final PaywallState.Loaded.Components previewHelloWorldPaywallState(Composer composer, int i6) {
        composer.startReplaceGroup(-1486758699);
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventStart(-1486758699, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.previewHelloWorldPaywallState (LoadedPaywallComponents.kt:395)");
        }
        URL url = new URL("https://assets.pawwalls.com");
        String strM608constructorimpl = LocalizationKey.m608constructorimpl("hello-world");
        int i7 = C2714u.f22946n;
        long j4 = C2714u.f22935b;
        List listB = AbstractC3252r.B(new TextComponent(strM608constructorimpl, new ColorScheme(new ColorInfo.Hex(AbstractC2686D.I(j4)), (ColorInfo) null, 2, (h) null), (Boolean) null, (ColorScheme) null, (String) null, (FontWeight) null, (Integer) null, 0, (HorizontalAlignment) null, (Size) null, (Padding) null, (Padding) null, (List) null, 8188, (h) null), TestData.Components.INSTANCE.getMonthlyPackageComponent());
        HorizontalAlignment horizontalAlignment = HorizontalAlignment.CENTER;
        FlexDistribution flexDistribution = FlexDistribution.START;
        Offering offering = new Offering("id", "description", z.f26066a, AbstractC2612c.q(TestData.Packages.INSTANCE.getMonthly()), null, new Offering.PaywallComponents(PreviewHelpersKt.previewUiConfig$default(null, null, null, 7, null), new PaywallComponentsData("preview_paywall_id", "template", url, new ComponentsConfig(new PaywallComponentsConfig(new StackComponent(listB, (Boolean) null, new Dimension.Vertical(horizontalAlignment, flexDistribution), (Size) null, (Float) null, new ColorScheme(new ColorInfo.Hex(AbstractC2686D.I(C2714u.f22944k)), (ColorInfo) null, 2, (h) null), (Background) null, (Padding) null, (Padding) null, (Shape) null, (Border) null, (Shadow) null, (Badge) null, (StackComponent.Overflow) null, (List) null, 32730, (h) null), new Background.Color(new ColorScheme(new ColorInfo.Hex(AbstractC2686D.I(C2714u.f22942i)), new ColorInfo.Hex(AbstractC2686D.I(C2714u.f22940g)))), new StickyFooterComponent(new StackComponent(AbstractC2612c.q(new TextComponent(LocalizationKey.m608constructorimpl("sticky-footer"), new ColorScheme(new ColorInfo.Hex(AbstractC2686D.I(j4)), (ColorInfo) null, 2, (h) null), (Boolean) null, (ColorScheme) null, (String) null, (FontWeight) null, (Integer) null, 0, (HorizontalAlignment) null, (Size) null, (Padding) null, (Padding) null, (List) null, 8188, (h) null)), (Boolean) null, new Dimension.Vertical(horizontalAlignment, flexDistribution), (Size) null, (Float) null, new ColorScheme(new ColorInfo.Hex(AbstractC2686D.I(C2714u.f22939f)), (ColorInfo) null, 2, (h) null), (Background) null, (Padding) null, (Padding) null, new Shape.Rectangle(new CornerRadiuses.Dp(10.0d, 10.0d, 0.0d, 0.0d)), (Border) null, new Shadow(new ColorScheme(new ColorInfo.Hex(AbstractC2686D.I(j4)), new ColorInfo.Hex(AbstractC2686D.I(C2714u.f22943j))), 10.0d, 0.0d, -5.0d), (Badge) null, (StackComponent.Overflow) null, (List) null, 30170, (h) null)))), AbstractC3229F.v(new k(LocaleId.m571boximpl(LocaleId.m572constructorimpl("en_US")), AbstractC3229F.w(new k(LocalizationKey.m607boximpl(LocalizationKey.m608constructorimpl("hello-world")), LocalizationData.Text.m589boximpl(LocalizationData.Text.m590constructorimpl("Hello, world!"))), new k(LocalizationKey.m607boximpl(LocalizationKey.m608constructorimpl("sticky-footer")), LocalizationData.Text.m589boximpl(LocalizationData.Text.m590constructorimpl("Sticky Footer")))))), LocaleId.m572constructorimpl("en_US"), 0, (List) null, (ExitOffers) null, (ProductChangeConfig) null, 960, (h) null)), null, 80, null);
        Result resultValidatePaywallComponentsDataOrNullForPreviews = PreviewHelpersKt.validatePaywallComponentsDataOrNullForPreviews(offering, composer, 0);
        PaywallValidationResult.Components components = resultValidatePaywallComponentsDataOrNullForPreviews != null ? (PaywallValidationResult.Components) ResultKt.getOrThrow(resultValidatePaywallComponentsDataOrNullForPreviews) : null;
        o.e(components);
        PaywallState.Loaded.Components componentsPaywallState$default = OfferingToStateMapperKt.toComponentsPaywallState$default(offering, components, null, C14631.INSTANCE, new MockPurchasesType(null, null, null, null, 15, null), null, null, 48, null);
        if (ComposerKt.isTraceInProgress()) {
            ComposerKt.traceEventEnd();
        }
        composer.endReplaceGroup();
        return componentsPaywallState$default;
    }

    private static final void show(SimpleSheetState simpleSheetState, ButtonComponentStyle.Action.NavigateTo.Destination.Sheet sheet, PaywallState.Loaded.Components components, e eVar) {
        simpleSheetState.show(sheet.getBackgroundBlur(), ComposableLambdaKt.composableLambdaInstance(1290168816, true, new C14641(sheet, components, simpleSheetState, eVar)), new C14652(components));
    }
}
