/*
 * 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.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.ImageVector.Builder
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val Icons.Outlined.Cube: ImageVector by lazy {
    Builder(
        name = "Cube", defaultWidth = 24.0.dp, defaultHeight = 24.0.dp,
        viewportWidth = 24.0f, viewportHeight = 24.0f
    ).apply {
        path(
            fill = SolidColor(Color.Black), stroke = null, strokeLineWidth = 0.0f,
            strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f,
            pathFillType = NonZero
        ) {
            moveTo(21.0f, 16.5f)
            curveTo(21.0f, 16.88f, 20.79f, 17.21f, 20.47f, 17.38f)
            lineTo(12.57f, 21.82f)
            curveTo(12.41f, 21.94f, 12.21f, 22.0f, 12.0f, 22.0f)
            curveTo(11.79f, 22.0f, 11.59f, 21.94f, 11.43f, 21.82f)
            lineTo(3.53f, 17.38f)
            curveTo(3.21f, 17.21f, 3.0f, 16.88f, 3.0f, 16.5f)
            verticalLineTo(7.5f)
            curveTo(3.0f, 7.12f, 3.21f, 6.79f, 3.53f, 6.62f)
            lineTo(11.43f, 2.18f)
            curveTo(11.59f, 2.06f, 11.79f, 2.0f, 12.0f, 2.0f)
            curveTo(12.21f, 2.0f, 12.41f, 2.06f, 12.57f, 2.18f)
            lineTo(20.47f, 6.62f)
            curveTo(20.79f, 6.79f, 21.0f, 7.12f, 21.0f, 7.5f)
            verticalLineTo(16.5f)
            moveTo(12.0f, 4.15f)
            lineTo(6.04f, 7.5f)
            lineTo(12.0f, 10.85f)
            lineTo(17.96f, 7.5f)
            lineTo(12.0f, 4.15f)
            moveTo(5.0f, 15.91f)
            lineTo(11.0f, 19.29f)
            verticalLineTo(12.58f)
            lineTo(5.0f, 9.21f)
            verticalLineTo(15.91f)
            moveTo(19.0f, 15.91f)
            verticalLineTo(9.21f)
            lineTo(13.0f, 12.58f)
            verticalLineTo(19.29f)
            lineTo(19.0f, 15.91f)
            close()
        }
    }
        .build()
}

val Icons.Rounded.Cube: ImageVector by lazy(LazyThreadSafetyMode.NONE) {
    Builder(
        name = "Rounded.DeployedCode",
        defaultWidth = 24.dp,
        defaultHeight = 24.dp,
        viewportWidth = 960f,
        viewportHeight = 960f
    ).apply {
        path(fill = SolidColor(Color.Black)) {
            moveTo(440f, 869f)
            lineTo(160f, 708f)
            quadTo(141f, 697f, 130.5f, 679f)
            quadTo(120f, 661f, 120f, 639f)
            lineTo(120f, 321f)
            quadTo(120f, 299f, 130.5f, 281f)
            quadTo(141f, 263f, 160f, 252f)
            lineTo(440f, 91f)
            quadTo(459f, 80f, 480f, 80f)
            quadTo(501f, 80f, 520f, 91f)
            lineTo(800f, 252f)
            quadTo(819f, 263f, 829.5f, 281f)
            quadTo(840f, 299f, 840f, 321f)
            lineTo(840f, 639f)
            quadTo(840f, 661f, 829.5f, 679f)
            quadTo(819f, 697f, 800f, 708f)
            lineTo(520f, 869f)
            quadTo(501f, 880f, 480f, 880f)
            quadTo(459f, 880f, 440f, 869f)
            close()
            moveTo(440f, 503f)
            lineTo(440f, 777f)
            lineTo(480f, 800f)
            quadTo(480f, 800f, 480f, 800f)
            quadTo(480f, 800f, 480f, 800f)
            lineTo(520f, 777f)
            lineTo(520f, 503f)
            lineTo(760f, 364f)
            lineTo(760f, 322f)
            quadTo(760f, 322f, 760f, 322f)
            quadTo(760f, 322f, 760f, 322f)
            lineTo(717f, 297f)
            lineTo(480f, 434f)
            lineTo(243f, 297f)
            lineTo(200f, 322f)
            quadTo(200f, 322f, 200f, 322f)
            quadTo(200f, 322f, 200f, 322f)
            lineTo(200f, 364f)
            lineTo(440f, 503f)
            close()
        }
    }.build()
}