// DO NOT EDIT MANUALLY!
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
// To regenerate run 'generateGradleOptions' task
@file:Suppress("RemoveRedundantQualifierName", "Deprecation", "Deprecation_Error", "DuplicatedCode")

package org.jetbrains.kotlin.gradle.dsl

enum class JsSourceMapEmbedMode(val mode: String) {
    SOURCE_MAP_SOURCE_CONTENT_INLINING("inlining"),
    SOURCE_MAP_SOURCE_CONTENT_NEVER("never"),
    SOURCE_MAP_SOURCE_CONTENT_ALWAYS("always"),
    ;

    companion object {
        @JvmStatic
        fun fromMode(mode: String): JsSourceMapEmbedMode =
            JsSourceMapEmbedMode.values().firstOrNull { it.mode == mode }
                ?: throw IllegalArgumentException(
                    "Unknown JS source map embed mode: $mode,\navailable modes: ${JsSourceMapEmbedMode.values().joinToString { it.mode }}\n" +
                            "Prefer configuring 'sourceMapEmbedSources' value via 'compilerOptions' DSL: https://kotl.in/compiler-options-dsl"
                )
    }
}
