/*
 * 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 MergeColumns: 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="merge-columns" ref={ref} {...props}>
            <path
                d={isLarge ? "M134.2 274.2A20.06 20.06 0 0 1 105.8 245.8L131.8 220H40V360H140V316.4C148.4 313.4 156 308.6 162.2 302.4L162.4 302.6L180 284.8V380C180 391 171 400 160 400H20C9 400 0 391 0 380V20C0 9 9 0 20 0H160C171 0 180 9 180 20V115.2L162.4 97.6L162.2 97.8C156 91.6 148.4 86.6 140 83.6V40H40V180H131.8L106 154.2C102.2 150.6 100 145.6 100 140A20.06 20.06 0 0 1 134.2 125.8L194.2 185.8C197.8 189.4 200 194.4 200 200S197.8 210.6 194.2 214.2zM380 400H240C229 400 220 391 220 380V284.8L237.6 302.4L237.8 302.2C244.0000000000001 308.4 251.6 313.2 260 316.2000000000001V360H360V220H268.2L294 245.8C297.8 249.4 300 254.4 300 260A20.06 20.06 0 0 1 265.8 274.2L205.8 214.2C202.2 210.6 200 205.6 200 200S202.2 189.4 205.8 185.8L265.8 125.8A20.06 20.06 0 0 1 294.2 154.2L268.2 180H360V40H260V83.6C251.6 86.6 244 91.4 237.8 97.6L237.6 97.4L220 115.2V20C220 9 229 0 240 0H380C391 0 400 9 400 20V380C400 391 391 400 380 400" : "M114.2 214.2A20.06 20.06 0 0 1 85.8 185.8L91.8 180H40V280H100V249.8C110.4 248.6 119.8 244 126.8 236.8L140 223.6V300C140 311 131 320 120 320H20C9 320 0 311 0 300V20C0 9 9 0 20 0H120C131 0 140 9 140 20V96.4L126.8 83.2C119.8 76.2 110.4 71.4 100 70.2V40H40V140H91.8L85.8 134.2A20.06 20.06 0 0 1 114.2 105.8L154.2 145.8C157.8 149.4 160 154.4 160 160S157.8 170.6 154.2 174.2zM300 320H200C189 320 180 311 180 300V223.6L193.2 236.8C200.2 243.8 209.6 248.6 220 249.8V280H280V180H228.2L234 185.8C237.8 189.4 240 194.4 240 200A20.06 20.06 0 0 1 205.8 214.2L165.8 174.2C162.2 170.6 160 165.6 160 160S162.2 149.4 165.8 145.8L205.8 105.8A20.06 20.06 0 0 1 234.2 134.2L228.2 140H280V39.9999999999999H220V70.2C209.6 71.4 200.2 75.9999999999999 193.2 83.2L180 96.4V20C180 9 189 0 200 0H300C311 0 320 9 320 20V300C320 311 311 320 300 320"}
                fillRule="evenodd"
                transform={`scale(0.05, -0.05) translate(${translation}, ${translation})`}
                style={style}
            />
        </SVGIconContainer>
   );
});
MergeColumns.displayName = `Blueprint6.Icon.MergeColumns`;
export default MergeColumns;
