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

import E3.v;
import G0.C0260i;
import G0.InterfaceC0262j;
import com.revenuecat.purchases.paywalls.components.properties.FitMode;
import kotlin.jvm.internal.o;

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

    public /* synthetic */ class WhenMappings {
        public static final /* synthetic */ int[] $EnumSwitchMapping$0;

        static {
            int[] iArr = new int[FitMode.values().length];
            try {
                iArr[FitMode.FIT.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                iArr[FitMode.FILL.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            $EnumSwitchMapping$0 = iArr;
        }
    }

    public static final InterfaceC0262j toContentScale(FitMode fitMode) {
        o.h(fitMode, "<this>");
        int i6 = WhenMappings.$EnumSwitchMapping$0[fitMode.ordinal()];
        if (i6 == 1) {
            return C0260i.f1972c;
        }
        if (i6 == 2) {
            return C0260i.f1971b;
        }
        throw new v();
    }
}
