/*
 * ImageToolbox is an image editor for android
 * Copyright (c) 2026 T8RIN (Malik Mukhametzyanov)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * You should have received a copy of the Apache License
 * along with this program.  If not, see <http://www.apache.org/licenses/LICENSE-2.0>.
 */

package com.t8rin.imagetoolbox.core.resources.icons

import com.t8rin.imagetoolbox.core.resources.Icons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val Icons.Outlined.Scanner: ImageVector by lazy(LazyThreadSafetyMode.NONE) {
    ImageVector.Builder(
        name = "Outlined.Scanner",
        defaultWidth = 24.dp,
        defaultHeight = 24.dp,
        viewportWidth = 24f,
        viewportHeight = 24f
    ).apply {
        path(fill = SolidColor(Color.Black)) {
            moveTo(17.6f, 12f)
            lineTo(4.45f, 7.25f)
            curveToRelative(-0.267f, -0.1f, -0.458f, -0.275f, -0.575f, -0.525f)
            reflectiveCurveToRelative(-0.125f, -0.508f, -0.025f, -0.775f)
            reflectiveCurveToRelative(0.275f, -0.458f, 0.525f, -0.575f)
            reflectiveCurveToRelative(0.508f, -0.125f, 0.775f, -0.025f)
            lineToRelative(14.65f, 5.35f)
            curveToRelative(0.333f, 0.133f, 0.617f, 0.367f, 0.85f, 0.7f)
            curveToRelative(0.233f, 0.333f, 0.35f, 0.7f, 0.35f, 1.1f)
            verticalLineToRelative(5.5f)
            curveToRelative(0f, 0.55f, -0.196f, 1.021f, -0.587f, 1.413f)
            reflectiveCurveToRelative(-0.863f, 0.587f, -1.413f, 0.587f)
            horizontalLineTo(5f)
            curveToRelative(-0.55f, 0f, -1.021f, -0.196f, -1.413f, -0.587f)
            curveToRelative(-0.392f, -0.392f, -0.587f, -0.863f, -0.587f, -1.413f)
            verticalLineToRelative(-4f)
            curveToRelative(0f, -0.55f, 0.196f, -1.021f, 0.587f, -1.413f)
            curveToRelative(0.392f, -0.392f, 0.863f, -0.587f, 1.413f, -0.587f)
            horizontalLineToRelative(12.6f)
            close()
            moveTo(19f, 18f)
            verticalLineToRelative(-4f)
            horizontalLineTo(5f)
            verticalLineToRelative(4f)
            horizontalLineToRelative(14f)
            close()
            moveTo(11f, 17f)
            horizontalLineToRelative(6f)
            curveToRelative(0.283f, 0f, 0.521f, -0.096f, 0.712f, -0.287f)
            reflectiveCurveToRelative(0.287f, -0.429f, 0.287f, -0.712f)
            reflectiveCurveToRelative(-0.096f, -0.521f, -0.287f, -0.712f)
            reflectiveCurveToRelative(-0.429f, -0.287f, -0.712f, -0.287f)
            horizontalLineToRelative(-6f)
            curveToRelative(-0.283f, 0f, -0.521f, 0.096f, -0.712f, 0.287f)
            reflectiveCurveToRelative(-0.287f, 0.429f, -0.287f, 0.712f)
            reflectiveCurveToRelative(0.096f, 0.521f, 0.287f, 0.712f)
            reflectiveCurveToRelative(0.429f, 0.287f, 0.712f, 0.287f)
            close()
            moveTo(7.713f, 16.712f)
            curveToRelative(0.192f, -0.192f, 0.287f, -0.429f, 0.287f, -0.712f)
            reflectiveCurveToRelative(-0.096f, -0.521f, -0.287f, -0.712f)
            reflectiveCurveToRelative(-0.429f, -0.287f, -0.712f, -0.287f)
            reflectiveCurveToRelative(-0.521f, 0.096f, -0.712f, 0.287f)
            curveToRelative(-0.192f, 0.192f, -0.287f, 0.429f, -0.287f, 0.712f)
            reflectiveCurveToRelative(0.096f, 0.521f, 0.287f, 0.712f)
            curveToRelative(0.192f, 0.192f, 0.429f, 0.287f, 0.712f, 0.287f)
            reflectiveCurveToRelative(0.521f, -0.096f, 0.712f, -0.287f)
            close()
            moveTo(5f, 18f)
            verticalLineToRelative(-4f)
            verticalLineToRelative(4f)
            close()
        }
    }.build()
}

val Icons.TwoTone.Scanner: ImageVector by lazy(LazyThreadSafetyMode.NONE) {
    ImageVector.Builder(
        name = "TwoTone.Scanner",
        defaultWidth = 24.dp,
        defaultHeight = 24.dp,
        viewportWidth = 24f,
        viewportHeight = 24f
    ).apply {
        path(fill = SolidColor(Color.Black)) {
            moveTo(20.65f, 11.4f)
            curveToRelative(-0.233f, -0.333f, -0.517f, -0.567f, -0.85f, -0.7f)
            lineTo(5.15f, 5.35f)
            curveToRelative(-0.267f, -0.1f, -0.525f, -0.092f, -0.775f, 0.025f)
            reflectiveCurveToRelative(-0.425f, 0.308f, -0.525f, 0.575f)
            curveToRelative(-0.1f, 0.267f, -0.092f, 0.525f, 0.025f, 0.775f)
            reflectiveCurveToRelative(0.308f, 0.425f, 0.575f, 0.525f)
            lineToRelative(13.15f, 4.75f)
            horizontalLineTo(5f)
            curveToRelative(-0.55f, 0f, -1.021f, 0.196f, -1.412f, 0.588f)
            reflectiveCurveToRelative(-0.588f, 0.862f, -0.588f, 1.412f)
            verticalLineToRelative(4f)
            curveToRelative(0f, 0.55f, 0.196f, 1.021f, 0.588f, 1.412f)
            reflectiveCurveToRelative(0.862f, 0.588f, 1.412f, 0.588f)
            horizontalLineToRelative(14f)
            curveToRelative(0.55f, 0f, 1.021f, -0.196f, 1.412f, -0.588f)
            reflectiveCurveToRelative(0.588f, -0.862f, 0.588f, -1.412f)
            verticalLineToRelative(-5.5f)
            curveToRelative(0f, -0.4f, -0.117f, -0.767f, -0.35f, -1.1f)
            close()
            moveTo(19f, 18f)
            horizontalLineTo(5f)
            verticalLineToRelative(-4f)
            horizontalLineToRelative(14f)
            verticalLineToRelative(4f)
            close()
        }
        path(fill = SolidColor(Color.Black)) {
            moveTo(11f, 17f)
            horizontalLineToRelative(6f)
            curveToRelative(0.283f, 0f, 0.521f, -0.096f, 0.712f, -0.287f)
            reflectiveCurveToRelative(0.287f, -0.429f, 0.287f, -0.712f)
            reflectiveCurveToRelative(-0.096f, -0.521f, -0.287f, -0.712f)
            reflectiveCurveToRelative(-0.429f, -0.287f, -0.712f, -0.287f)
            horizontalLineToRelative(-6f)
            curveToRelative(-0.283f, 0f, -0.521f, 0.096f, -0.712f, 0.287f)
            reflectiveCurveToRelative(-0.287f, 0.429f, -0.287f, 0.712f)
            reflectiveCurveToRelative(0.096f, 0.521f, 0.287f, 0.712f)
            reflectiveCurveToRelative(0.429f, 0.287f, 0.712f, 0.287f)
            close()
        }
        path(fill = SolidColor(Color.Black)) {
            moveTo(7.713f, 16.712f)
            curveToRelative(0.192f, -0.192f, 0.287f, -0.429f, 0.287f, -0.712f)
            reflectiveCurveToRelative(-0.096f, -0.521f, -0.287f, -0.712f)
            reflectiveCurveToRelative(-0.429f, -0.287f, -0.712f, -0.287f)
            reflectiveCurveToRelative(-0.521f, 0.096f, -0.712f, 0.287f)
            curveToRelative(-0.192f, 0.192f, -0.287f, 0.429f, -0.287f, 0.712f)
            reflectiveCurveToRelative(0.096f, 0.521f, 0.287f, 0.712f)
            curveToRelative(0.192f, 0.192f, 0.429f, 0.287f, 0.712f, 0.287f)
            reflectiveCurveToRelative(0.521f, -0.096f, 0.712f, -0.287f)
            close()
        }
        path(fill = SolidColor(Color.Black)) {
            moveTo(5f, 18f)
            verticalLineToRelative(-4f)
            verticalLineToRelative(4f)
            close()
        }
        path(
            fill = SolidColor(Color.Black),
            fillAlpha = 0.3f,
            strokeAlpha = 0.3f
        ) {
            moveTo(5f, 14f)
            horizontalLineToRelative(14f)
            verticalLineToRelative(4f)
            horizontalLineToRelative(-14f)
            close()
        }
    }.build()
}

val Icons.Rounded.Scanner: ImageVector by lazy(LazyThreadSafetyMode.NONE) {
    ImageVector.Builder(
        name = "Rounded.Scanner",
        defaultWidth = 24.dp,
        defaultHeight = 24.dp,
        viewportWidth = 960f,
        viewportHeight = 960f
    ).apply {
        path(fill = SolidColor(Color.Black)) {
            moveTo(704f, 480f)
            lineTo(178f, 290f)
            quadToRelative(-16f, -6f, -23f, -21f)
            reflectiveQuadToRelative(-1f, -31f)
            quadToRelative(6f, -16f, 21f, -23f)
            reflectiveQuadToRelative(31f, -1f)
            lineToRelative(586f, 214f)
            quadToRelative(20f, 8f, 34f, 28f)
            reflectiveQuadToRelative(14f, 44f)
            verticalLineToRelative(220f)
            quadToRelative(0f, 33f, -23.5f, 56.5f)
            reflectiveQuadTo(760f, 800f)
            lineTo(200f, 800f)
            quadToRelative(-33f, 0f, -56.5f, -23.5f)
            reflectiveQuadTo(120f, 720f)
            verticalLineToRelative(-160f)
            quadToRelative(0f, -33f, 23.5f, -56.5f)
            reflectiveQuadTo(200f, 480f)
            horizontalLineToRelative(504f)
            close()
            moveTo(440f, 680f)
            horizontalLineToRelative(240f)
            quadToRelative(17f, 0f, 28.5f, -11.5f)
            reflectiveQuadTo(720f, 640f)
            quadToRelative(0f, -17f, -11.5f, -28.5f)
            reflectiveQuadTo(680f, 600f)
            lineTo(440f, 600f)
            quadToRelative(-17f, 0f, -28.5f, 11.5f)
            reflectiveQuadTo(400f, 640f)
            quadToRelative(0f, 17f, 11.5f, 28.5f)
            reflectiveQuadTo(440f, 680f)
            close()
            moveTo(280f, 680f)
            quadToRelative(17f, 0f, 28.5f, -11.5f)
            reflectiveQuadTo(320f, 640f)
            quadToRelative(0f, -17f, -11.5f, -28.5f)
            reflectiveQuadTo(280f, 600f)
            quadToRelative(-17f, 0f, -28.5f, 11.5f)
            reflectiveQuadTo(240f, 640f)
            quadToRelative(0f, 17f, 11.5f, 28.5f)
            reflectiveQuadTo(280f, 680f)
            close()
        }
    }.build()
}