/*
 * 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 HeaderTwo: 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="header-two" ref={ref} {...props}>
            <path
                d={isLarge ? "M40 180V80A20 20 0 1 0 0 80V340A20 20 0 0 0 40 340V220H180V340A20 20 0 1 0 220 340V80A20 20 0 1 0 180 80V180zM320.6600000000001 40.8C323.86 44.6 327.4600000000001 48.4 331.8200000000001 51.8C336.0200000000001 55.4 340.8000000000001 59 345.98 62.4C350.98 66 355.94 69.6 360.94 73.6C365.92 77.6 370.7 81.8 375.48 86.2C380.0800000000001 90.6 384.26 95.6 388.04 101C391.64 106.4 394.62 112.2000000000001 396.8 118.6C399 125.0000000000001 400 132 400 140.0000000000001C400 146.4 399 153.0000000000001 397.2 160S392.2200000000001 173.6 387.84 179.4C383.44 185.4000000000001 377.68 190.4000000000001 370.5 194.2000000000001C363.32 198.2000000000001 354.36 200 343.58 200C333.82 200 325.06 198.0000000000001 317.68 194.2000000000001Q306.54 188.8000000000001 298.74 178.6000000000001C293.54 172.0000000000001 289.76 164.0000000000001 287.18 154.6000000000001C284.58 145.4000000000001 283.18 135.4000000000001 283.18 124.6000000000001H311.7000000000001C311.9000000000001 131.6000000000001 312.5 138.0000000000001 313.5 144.0000000000001S316.28 155.2000000000001 318.48 159.6000000000001S323.66 167.4000000000001 327.44 170.0000000000001C331.24 172.6000000000001 336.02 173.8000000000001 341.6 173.8000000000001Q350.86 173.8000000000001 356.54 170.2000000000001C360.34 167.8000000000001 363.34 165.0000000000001 365.52 161.6000000000001C367.72 158.2000000000001 369.12 154.4000000000001 369.9000000000001 150.4000000000001Q371.1 144.4 371.1 139.0000000000001C370.9 131.4 369.1 124.6 365.9 118.6000000000001C362.92 112.6 358.54 107.2000000000001 353.36 102.0000000000001C348.16 97.0000000000001 342.6 92.2000000000001 336.42 87.8000000000001C330.22 83.4000000000001 324.26 78.8000000000001 318.68 74.2000000000001A106 106 0 0 1 290.56 42.6C283.58 30.4000000000001 280.2 16.2 280 1e-13H399.3999999999999V28.6000000000001H314.08C315.2799999999999 32.8000000000001 317.4799999999999 37.0000000000001 320.6799999999999 40.8000000000001" : "M20 280C8.8 280 0 271 0 260V60C0 49.2 9 40 20 40C31.2 40 40 49 40 60V140H120V60C120 49.2 129 40 140 40C151.2 40 160 49 160 60V260C160 270.8 151 280 140 280C128.8 280 120 271 120 260V180H40V260C40 270.8 31 280 20 280M263.08 41.12L263.4 41.4C267 44.2 270.6 46.9999999999999 274.8 49.8L287.4000000000001 58.8C291.6 61.9999999999999 295.6 65.4 299.6 68.9999999999999S307 76.6 310 80.8S315.6 89.7999999999999 317.4 94.7999999999999S320 105.6 320 111.7999999999999C320 116.7999999999999 319.2000000000001 121.9999999999999 317.6 127.5999999999999C316.2 133.3999999999999 313.6 138.5999999999999 309.8 143.3999999999999A44 44 0 0 1 295.2 155.3999999999999C289.4000000000001 158.3999999999999 282 159.9999999999999 273 159.9999999999999C265 159.9999999999999 257.8 158.3999999999999 251.6 155.3999999999999C245.4 152.1999999999999 240 147.9999999999999 235.8 142.9999999999999C231.4 137.5999999999999 228.2 131.1999999999999 226 123.7999999999999S222.8 108.3999999999999 222.8 99.7999999999999H246.6C246.8 105.1999999999999 247.2 110.3999999999999 248.2 115.1999999999999C249 119.9999999999999 250.4 124.1999999999999 252.4 127.5999999999999C254.2 131.1999999999999 256.8 133.9999999999999 260 135.9999999999999S267 138.9999999999999 271.8 138.9999999999999C277 138.9999999999999 281.2 137.9999999999999 284.4000000000001 136.1999999999999C287.4000000000001 134.3999999999999 290 131.9999999999999 291.8 129.1999999999999Q294.5 124.9999999999999 295.4 120.1999999999999C296 116.9999999999999 296.4 113.9999999999999 296.4 111.1999999999999C296.2 104.9999999999999 294.8 99.5999999999999 292 94.7999999999999C289.2 90.1999999999999 285.6 85.7999999999999 281.4 81.7999999999999C277 77.5999999999999 272.2 73.9999999999999 267.2 70.3999999999999Q259.4 64.9999999999999 252.2 59.5999999999999C242.2 52.3999999999999 234.4 43.9999999999999 228.8 34.1999999999999S220.2 13 220 0H319.8V22.8H248.8C249.8000000000001 26.2 251.6 29.4 254.2 32.6C256.7200000000001 35.5 259.8 38.22 263.0800000000001 41.12"}
                fillRule="evenodd"
                transform={`scale(0.05, -0.05) translate(${translation}, ${translation})`}
                style={style}
            />
        </SVGIconContainer>
   );
});
HeaderTwo.displayName = `Blueprint6.Icon.HeaderTwo`;
export default HeaderTwo;
