package androidx.compose.material.ripple; import androidx.compose.runtime.Composer; import androidx.compose.ui.graphics.Color; import androidx.compose.ui.graphics.ColorKt; import kotlin.Metadata; /* compiled from: RippleTheme.kt */ @Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\bf\u0018\u0000 \t2\u00020\u0001:\u0001\tJ\u0018\u0010\u0002\u001a\u00020\u0003H'ø\u0001\u0000ø\u0001\u0001ø\u0001\u0002¢\u0006\u0004\b\u0004\u0010\u0005J\r\u0010\u0006\u001a\u00020\u0007H'¢\u0006\u0002\u0010\bø\u0001\u0003\u0082\u0002\u0015\n\u0002\b!\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019\n\u0004\b!0\u0001¨\u0006\nÀ\u0006\u0001"}, d2 = {"Landroidx/compose/material/ripple/RippleTheme;", "", "defaultColor", "Landroidx/compose/ui/graphics/Color;", "defaultColor-WaAFU9c", "(Landroidx/compose/runtime/Composer;I)J", "rippleAlpha", "Landroidx/compose/material/ripple/RippleAlpha;", "(Landroidx/compose/runtime/Composer;I)Landroidx/compose/material/ripple/RippleAlpha;", "Companion", "material-ripple_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes.dex */ public interface RippleTheme { /* renamed from: Companion, reason: from kotlin metadata */ public static final Companion INSTANCE = Companion.$$INSTANCE; /* renamed from: defaultColor-WaAFU9c */ long mo968defaultColorWaAFU9c(Composer composer, int i); RippleAlpha rippleAlpha(Composer composer, int i); /* compiled from: RippleTheme.kt */ @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0006\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J#\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\t\u0010\nJ#\u0010\u000b\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\f\u0010\r\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019¨\u0006\u000e"}, d2 = {"Landroidx/compose/material/ripple/RippleTheme$Companion;", "", "()V", "defaultRippleAlpha", "Landroidx/compose/material/ripple/RippleAlpha;", "contentColor", "Landroidx/compose/ui/graphics/Color;", "lightTheme", "", "defaultRippleAlpha-DxMtmZc", "(JZ)Landroidx/compose/material/ripple/RippleAlpha;", "defaultRippleColor", "defaultRippleColor-5vOe2sY", "(JZ)J", "material-ripple_release"}, k = 1, mv = {1, 8, 0}, xi = 48) /* loaded from: classes.dex */ public static final class Companion { static final /* synthetic */ Companion $$INSTANCE = new Companion(); private Companion() { } /* renamed from: defaultRippleColor-5vOe2sY, reason: not valid java name */ public final long m978defaultRippleColor5vOe2sY(long contentColor, boolean lightTheme) { return (lightTheme || ((double) ColorKt.m2691luminance8_81llA(contentColor)) >= 0.5d) ? contentColor : Color.INSTANCE.m2676getWhite0d7_KjU(); } /* renamed from: defaultRippleAlpha-DxMtmZc, reason: not valid java name */ public final RippleAlpha m977defaultRippleAlphaDxMtmZc(long contentColor, boolean lightTheme) { RippleAlpha rippleAlpha; RippleAlpha rippleAlpha2; RippleAlpha rippleAlpha3; if (!lightTheme) { rippleAlpha = RippleThemeKt.DarkThemeRippleAlpha; return rippleAlpha; } if (ColorKt.m2691luminance8_81llA(contentColor) > 0.5d) { rippleAlpha3 = RippleThemeKt.LightThemeHighContrastRippleAlpha; return rippleAlpha3; } rippleAlpha2 = RippleThemeKt.LightThemeLowContrastRippleAlpha; return rippleAlpha2; } } }