/*
 * Copyright 2026 Palantir Technologies, Inc. All rights reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * 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.
 */

import * as React from "react";
import type { SVGIconProps } from "../../../svgIconProps";
import { SvgIconContainerNext } from "../../svgIconContainerNext";

const PATHS = ["M5.417 3a3.27 3.27 0 0 0-1.917.621v3.99a4.8 4.8 0 0 1 1.917-.402c1.172 0 2.073.395 2.837.723.778.334 1.418.6 2.246.6.706 0 1.452-.227 2-.622V3.735c-.655.426-1.55.59-2.444.59-.977 0-1.8-.423-2.468-.732C6.885 3.267 6.242 3 5.417 3M14 7.959a1.4 1.4 0 0 1-.568 1.13c-.835.622-1.921.943-2.932.943-1.172 0-2.074-.395-2.838-.722-.778-.334-1.418-.601-2.245-.601a3.27 3.27 0 0 0-1.917.62v4.421a.75.75 0 0 1-1.5 0V3.574c0-.22.052-.437.15-.634l.082-.142q.137-.207.336-.356l.157-.111A4.77 4.77 0 0 1 5.417 1.5c1.175 0 2.074.395 2.8.731.763.353 1.26.593 1.839.593.822 0 1.394-.17 1.68-.382.21-.156.46-.25.721-.274l.195-.005a1.42 1.42 0 0 1 1.135.666c.14.223.213.482.213.745z"] as readonly string[];

export const FlagIcon: React.FC<SVGIconProps> = React.forwardRef<any, SVGIconProps>((props, ref) => {
    return (
        <SvgIconContainerNext iconName="flag" ref={ref} {...props}>
            {PATHS.map((d, i) => (
                <path key={i} d={d} />
            ))}
        </SvgIconContainerNext>
    );
});
FlagIcon.displayName = "Blueprint6.Icon.Next.FlagIcon";
export default FlagIcon;
