/*
 * Copyright 2024 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 { IconSize } from "../../iconTypes";
import { SVGIconContainer } from "../../svgIconContainer";

export const MenuOpen: React.FC<SVGIconProps> = React.forwardRef<any, SVGIconProps>((props, ref) => {
    const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE;
    const pixelGridSize = isLarge ? IconSize.LARGE : IconSize.STANDARD;
    const translation = `${-1 * pixelGridSize / 0.05 / 2}`;
    const style = { transformOrigin: "center" };
    return (
        <SVGIconContainer iconName="menu-open" ref={ref} {...props}>
            <path
                d={isLarge ? "M240 220H20C9 220 0 211 0 200S9 180 20 180H240C251 180 260 189 260 200S251 220 240 220M240 120H20C9 120 0 111 0 100S9 80 20 80H240C251 80 260 89 260 100S251 120 240 120M240 320H20C9 320 0 311 0 300S9 280 20 280H240C251 280 260 289 260 300S251 320 240 320M394.2000000000001 214.2L334.2000000000001 274.2000000000001A20.06 20.06 0 0 1 300 260V140A20.06 20.06 0 0 1 334.2000000000001 125.8L394.2000000000001 185.8C397.8 189.4 400 194.4 400 200S397.8 210.6 394.2000000000001 214.2" : "M199.8 80.2H19.8C8.8 80.2 -0.2 71.2 -0.2 60.2S8.8 40.2 19.8 40.2H199.8C210.8 40.2 219.8 49.2 219.8 60.2S210.8 80.2 199.8 80.2M199.8 180.2H19.8C8.8 180.2 -0.2 171.2 -0.2 160.2S8.8 140.2 19.8 140.2H199.8C210.8 140.2 219.8 149.2 219.8 160.2S210.8 180.2 199.8 180.2M199.8 280.2H19.8C8.8 280.2 -0.2 271.2 -0.2 260.2S8.8 240.2 19.8 240.2H199.8C210.8 240.2 219.8 249.2 219.8 260.2S210.8 280.2 199.8 280.2M314 174.2L274 214.2A20.06 20.06 0 0 1 239.8 200V120A20.06 20.06 0 0 1 274 105.8L314 145.8C317.6 149.4 319.8 154.4 319.8 160S317.6 170.6 314 174.2"}
                fillRule="evenodd"
                transform={`scale(0.05, -0.05) translate(${translation}, ${translation})`}
                style={style}
            />
        </SVGIconContainer>
   );
});
MenuOpen.displayName = `Blueprint6.Icon.MenuOpen`;
export default MenuOpen;
