/*
 * 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 OilField: 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="oil-field" ref={ref} {...props}>
            <path
                d={isLarge ? "M380 40.2H352.8L265.8 231.6L324.0000000000001 248.8000000000001L357.2000000000001 166.8000000000001C359.4000000000001 161.4000000000001 365.8000000000001 158.8000000000001 371.6 160.6000000000001C374.0000000000001 161.4 376 162.8000000000001 377.2000000000001 164.6000000000001C378.4000000000001 166.8000000000001 406.6 206.2000000000001 398.2000000000001 276.6C395.8 297.6 386 400 320.2000000000001 400C297.8 399.8 279.8 383.4 280 363.2C280 359.4 280.8 355.6 282 352L308.8 285.8L14.4 199.4V199C6.2 196.6 0 189.2 0 180.2000000000001C0 169.2 9 160.2000000000001 20 160.2000000000001C22 160.2000000000001 23.8 160.8 25.6 161.4V161.0000000000001L65.6 172.8000000000001L95 40.2H60C49 40.2 40 31.2 40 20.2S49 0.2 60 0.2H380C391 0.2 400 9.2 400 20.2S391 40.2 380 40.2M104 184L183 207.2L126.4 82.8zM151 40.1999999999999L230 213.8L309 40.1999999999999z" : "M300 40H273L206.2 190.2L255.4 209.2L284.4 145C286.2 141 291.6 139 296.4 140.4Q299.4 141.3 301.2 143.4C302.2 145 325.8 174.6 318.6 227.4C316.4 243.2 308.2 319.8 253.4 319.8C234.8 319.8 219.8 307.4 220 292.4Q220 288.2 221.8 284L239.2 245.6L12.8 158.6V158.4A19.6 19.6 0 0 1 0 140C0 129 9 120 20 120C22.6 120 25 120.6 27.2 121.4V121.2L48 129.2L73.4 40H40C29 40 20 31 20 20S29 0 40 0H300C311 0 320 9 320 20S311 40 300 40M85.4 143.8L142.8 166L104 78.4zM130.8 40L180 150.8L229.2 40z"}
                fillRule="evenodd"
                transform={`scale(0.05, -0.05) translate(${translation}, ${translation})`}
                style={style}
            />
        </SVGIconContainer>
   );
});
OilField.displayName = `Blueprint6.Icon.OilField`;
export default OilField;
