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

import B.AbstractC0084s;
import B.U0;
import E3.v;
import J.g;
import J4.e;
import androidx.compose.runtime.Composable;
import androidx.compose.runtime.ComposableTarget;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.RecomposeScopeImplKt;
import androidx.compose.runtime.ScopeUpdateScope;
import androidx.compose.runtime.Stable;
import com.google.android.gms.location.LocationRequest;
import com.revenuecat.purchases.paywalls.components.properties.ColorInfo;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.BorderStyle;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.ColorStyle;
import com.revenuecat.purchases.ui.revenuecatui.components.properties.ColorStyleKt;
import i0.InterfaceC2255s;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.p;
import p0.AbstractC2686D;
import p0.C2714u;
import p0.X;
import v.AbstractC3058z;
import v.C2976F;
import w4.C3137A;
import x4.AbstractC3252r;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class BorderKt {

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.modifier.BorderKt$Border_Preview_LinearGradient$1, reason: invalid class name */
    public static final class AnonymousClass1 extends p implements e {
        final /* synthetic */ int $$changed;
        final /* synthetic */ X $shape;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public AnonymousClass1(X x6, int i6) {
            super(2);
            this.$shape = x6;
            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) {
            BorderKt.Border_Preview_LinearGradient(this.$shape, composer, RecomposeScopeImplKt.updateChangedFlags(this.$$changed | 1));
        }
    }

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C14991(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) {
            BorderKt.Border_Preview_LinearGradientCircle(composer, RecomposeScopeImplKt.updateChangedFlags(this.$$changed | 1));
        }
    }

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C15001(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) {
            BorderKt.Border_Preview_LinearGradientSquare(composer, RecomposeScopeImplKt.updateChangedFlags(this.$$changed | 1));
        }
    }

    /* JADX INFO: renamed from: com.revenuecat.purchases.ui.revenuecatui.components.modifier.BorderKt$Border_Preview_RadialGradient$1, reason: invalid class name and case insensitive filesystem */
    public static final class C15011 extends p implements e {
        final /* synthetic */ int $$changed;
        final /* synthetic */ X $shape;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C15011(X x6, int i6) {
            super(2);
            this.$shape = x6;
            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) {
            BorderKt.Border_Preview_RadialGradient(this.$shape, composer, RecomposeScopeImplKt.updateChangedFlags(this.$$changed | 1));
        }
    }

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C15021(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) {
            BorderKt.Border_Preview_RadialGradientCircle(composer, RecomposeScopeImplKt.updateChangedFlags(this.$$changed | 1));
        }
    }

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C15031(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) {
            BorderKt.Border_Preview_RadialGradientSquare(composer, RecomposeScopeImplKt.updateChangedFlags(this.$$changed | 1));
        }
    }

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C15041(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) {
            BorderKt.Border_Preview_Solid(composer, RecomposeScopeImplKt.updateChangedFlags(this.$$changed | 1));
        }
    }

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C15051(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) {
            BorderKt.Border_Preview_SolidCircle(composer, RecomposeScopeImplKt.updateChangedFlags(this.$$changed | 1));
        }
    }

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C15061(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) {
            BorderKt.Border_Preview_SolidThin(composer, RecomposeScopeImplKt.updateChangedFlags(this.$$changed | 1));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    public static final void Border_Preview_LinearGradient(X x6, Composer composer, int i6) {
        int i7;
        Composer composerStartRestartGroup = composer.startRestartGroup(-1213727402);
        if ((i6 & 6) == 0) {
            i7 = (composerStartRestartGroup.changed(x6) ? 4 : 2) | i6;
        } else {
            i7 = i6;
        }
        if ((i7 & 3) == 2 && composerStartRestartGroup.getSkipping()) {
            composerStartRestartGroup.skipToGroupEnd();
        } else {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-1213727402, i7, -1, "com.revenuecat.purchases.ui.revenuecatui.components.modifier.Border_Preview_LinearGradient (Border.kt:117)");
            }
            AbstractC0084s.a(border(AbstractC3058z.h(U0.l(100), C2714u.f22940g, AbstractC2686D.f22844b), new BorderStyle(10, ColorStyleKt.toColorStyle(new ColorInfo.Gradient.Linear(135.0f, AbstractC3252r.B(new ColorInfo.Gradient.Point(AbstractC2686D.I(C2714u.f22944k), 10.0f), new ColorInfo.Gradient.Point(AbstractC2686D.I(AbstractC2686D.d(0, LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY, 255)), 30.0f), new ColorInfo.Gradient.Point(AbstractC2686D.I(AbstractC2686D.d(160, 0, 160)), 80.0f)))), null), x6), composerStartRestartGroup, 0);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new AnonymousClass1(x6, i6));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    public static final void Border_Preview_LinearGradientCircle(Composer composer, int i6) {
        Composer composerStartRestartGroup = composer.startRestartGroup(-873280999);
        if (i6 == 0 && composerStartRestartGroup.getSkipping()) {
            composerStartRestartGroup.skipToGroupEnd();
        } else {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-873280999, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.modifier.Border_Preview_LinearGradientCircle (Border.kt:99)");
            }
            Border_Preview_LinearGradient(g.f2694a, composerStartRestartGroup, 0);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new C14991(i6));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    public static final void Border_Preview_LinearGradientSquare(Composer composer, int i6) {
        Composer composerStartRestartGroup = composer.startRestartGroup(328570534);
        if (i6 == 0 && composerStartRestartGroup.getSkipping()) {
            composerStartRestartGroup.skipToGroupEnd();
        } else {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(328570534, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.modifier.Border_Preview_LinearGradientSquare (Border.kt:93)");
            }
            Border_Preview_LinearGradient(AbstractC2686D.f22844b, composerStartRestartGroup, 6);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new C15001(i6));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    public static final void Border_Preview_RadialGradient(X x6, Composer composer, int i6) {
        int i7;
        Composer composerStartRestartGroup = composer.startRestartGroup(-1379549156);
        if ((i6 & 6) == 0) {
            i7 = (composerStartRestartGroup.changed(x6) ? 4 : 2) | i6;
        } else {
            i7 = i6;
        }
        if ((i7 & 3) == 2 && composerStartRestartGroup.getSkipping()) {
            composerStartRestartGroup.skipToGroupEnd();
        } else {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-1379549156, i7, -1, "com.revenuecat.purchases.ui.revenuecatui.components.modifier.Border_Preview_RadialGradient (Border.kt:150)");
            }
            AbstractC0084s.a(border(AbstractC3058z.h(U0.l(100), C2714u.f22940g, AbstractC2686D.f22844b), new BorderStyle(10, ColorStyleKt.toColorStyle(new ColorInfo.Gradient.Radial(AbstractC3252r.B(new ColorInfo.Gradient.Point(AbstractC2686D.I(C2714u.f22944k), 80.0f), new ColorInfo.Gradient.Point(AbstractC2686D.I(AbstractC2686D.d(0, LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY, 255)), 90.0f), new ColorInfo.Gradient.Point(AbstractC2686D.I(AbstractC2686D.d(160, 0, 160)), 96.0f)))), null), x6), composerStartRestartGroup, 0);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new C15011(x6, i6));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    public static final void Border_Preview_RadialGradientCircle(Composer composer, int i6) {
        Composer composerStartRestartGroup = composer.startRestartGroup(-1718788077);
        if (i6 == 0 && composerStartRestartGroup.getSkipping()) {
            composerStartRestartGroup.skipToGroupEnd();
        } else {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-1718788077, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.modifier.Border_Preview_RadialGradientCircle (Border.kt:111)");
            }
            Border_Preview_RadialGradient(g.f2694a, composerStartRestartGroup, 0);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new C15021(i6));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    public static final void Border_Preview_RadialGradientSquare(Composer composer, int i6) {
        Composer composerStartRestartGroup = composer.startRestartGroup(-516936544);
        if (i6 == 0 && composerStartRestartGroup.getSkipping()) {
            composerStartRestartGroup.skipToGroupEnd();
        } else {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-516936544, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.modifier.Border_Preview_RadialGradientSquare (Border.kt:105)");
            }
            Border_Preview_RadialGradient(AbstractC2686D.f22844b, composerStartRestartGroup, 6);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new C15031(i6));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    public static final void Border_Preview_Solid(Composer composer, int i6) {
        Composer composerStartRestartGroup = composer.startRestartGroup(-1171018009);
        if (i6 == 0 && composerStartRestartGroup.getSkipping()) {
            composerStartRestartGroup.skipToGroupEnd();
        } else {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(-1171018009, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.modifier.Border_Preview_Solid (Border.kt:42)");
            }
            AbstractC0084s.a(border$default(AbstractC3058z.h(U0.l(100), C2714u.f22940g, AbstractC2686D.f22844b), new BorderStyle(10, ColorStyle.Solid.m732boximpl(ColorStyle.Solid.m733constructorimpl(C2714u.f22942i)), null), null, 2, null), composerStartRestartGroup, 6);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new C15041(i6));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    public static final void Border_Preview_SolidCircle(Composer composer, int i6) {
        Composer composerStartRestartGroup = composer.startRestartGroup(2094328983);
        if (i6 == 0 && composerStartRestartGroup.getSkipping()) {
            composerStartRestartGroup.skipToGroupEnd();
        } else {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(2094328983, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.modifier.Border_Preview_SolidCircle (Border.kt:76)");
            }
            AbstractC0084s.a(border(AbstractC3058z.h(U0.l(100), C2714u.f22940g, AbstractC2686D.f22844b), new BorderStyle(10, ColorStyle.Solid.m732boximpl(ColorStyle.Solid.m733constructorimpl(C2714u.f22942i)), null), g.f2694a), composerStartRestartGroup, 0);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new C15051(i6));
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    @ComposableTarget(applier = "androidx.compose.ui.UiComposable")
    @Composable
    public static final void Border_Preview_SolidThin(Composer composer, int i6) {
        Composer composerStartRestartGroup = composer.startRestartGroup(471558496);
        if (i6 == 0 && composerStartRestartGroup.getSkipping()) {
            composerStartRestartGroup.skipToGroupEnd();
        } else {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(471558496, i6, -1, "com.revenuecat.purchases.ui.revenuecatui.components.modifier.Border_Preview_SolidThin (Border.kt:59)");
            }
            AbstractC0084s.a(border$default(AbstractC3058z.h(U0.l(100), C2714u.f22940g, AbstractC2686D.f22844b), new BorderStyle(2, ColorStyle.Solid.m732boximpl(ColorStyle.Solid.m733constructorimpl(C2714u.f22942i)), null), null, 2, null), composerStartRestartGroup, 6);
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        }
        ScopeUpdateScope scopeUpdateScopeEndRestartGroup = composerStartRestartGroup.endRestartGroup();
        if (scopeUpdateScopeEndRestartGroup != null) {
            scopeUpdateScopeEndRestartGroup.updateScope(new C15061(i6));
        }
    }

    @Stable
    public static final /* synthetic */ InterfaceC2255s border(InterfaceC2255s interfaceC2255s, BorderStyle border, X shape) {
        o.h(interfaceC2255s, "<this>");
        o.h(border, "border");
        o.h(shape, "shape");
        return m697borderziNgDLE(interfaceC2255s, border.m720getWidthD9Ej5fM(), border.getColor(), shape);
    }

    public static /* synthetic */ InterfaceC2255s border$default(InterfaceC2255s interfaceC2255s, BorderStyle borderStyle, X x6, int i6, Object obj) {
        if ((i6 & 2) != 0) {
            x6 = AbstractC2686D.f22844b;
        }
        return border(interfaceC2255s, borderStyle, x6);
    }

    @Stable
    /* JADX INFO: renamed from: border-ziNgDLE, reason: not valid java name */
    public static final InterfaceC2255s m697borderziNgDLE(InterfaceC2255s border, float f6, ColorStyle colorStyle, X shape) {
        o.h(border, "$this$border");
        o.h(colorStyle, "colorStyle");
        o.h(shape, "shape");
        if (colorStyle instanceof ColorStyle.Solid) {
            return AbstractC3058z.j(border, f6, ((ColorStyle.Solid) colorStyle).m739unboximpl(), shape);
        }
        if (colorStyle instanceof ColorStyle.Gradient) {
            return border.then(new C2976F(f6, ((ColorStyle.Gradient) colorStyle).m731unboximpl(), shape));
        }
        throw new v();
    }
}
