/*
 * 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 FolderSharedOpen: 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="folder-shared-open" ref={ref} {...props}>
            <path
                d={isLarge ? "M61.4 247.4C64.4 254.8 71.6 260 80 260H235.2L246 270.8A59.4 59.4 0 0 0 220 320H168.2L134.2 354.2A20 20 0 0 1 120 360H20C9 360 0 351 0 340V93.8zM330.8 186L302.4 157.6A59.92 59.92 0 0 0 200 200C200 215.4 206 229.4 215.6 240H100C91.4 240 84.2 234.6 81.4 227H81.2L21.2 67H21.4C20.6 64.8000000000001 20 62.4 20 60C20 49 29 40 40 40H320C328.6 40 335.8 45.4 338.6 53H338.8L379.0000000000001 160.2C359.0000000000001 160.4 341.4000000000001 170.6 330.8000000000001 186M380 340H280C269 340 260 331 260 320S269 300 280 300H331.8L246 214.2C242.2 210.6 240 205.6 240 200A20.06 20.06 0 0 1 274.2000000000001 185.8L360 271.8V220C360 209 369 200 380 200S400 209 400 220V320C400 331 391 340 380 340" : "M260.4 115.6L242.4 97.6L242.2 97.8C231.4 86.8 216.6 80 200 80C166.8 80 140 106.8 140 140C140 155.4 146 169.4 155.6 180H80A19.8 19.8 0 0 1 61.2 166.2L21.2 46.2C20.4 44.4 20 42.2 20 39.9999999999999C20 28.9999999999999 29 19.9999999999999 40 19.9999999999999H260C268.8 19.9999999999999 276.2 25.8 278.8 33.8L301 100.2C300.8 100.2 300.4 100 300 100C284.6 100 271 106 260.4 115.6M41.2 186.2C44 194.2 51.2 200 60 200H175.2L175.4 200.2C166 210.8 160 224.6 160 240H128.2L94.2 274.2A20 20 0 0 1 80 280H20C9 280 0 271 0 260V63.2L41 186.2zM300 260H220C209 260 200 251 200 240S209 220 220 220H251.8L185.8 154.2A20.06 20.06 0 0 1 214.2 125.8L280 191.8V160C280 149 289 140 300 140S320 149 320 160V240C320 251 311 260 300 260"}
                fillRule="evenodd"
                transform={`scale(0.05, -0.05) translate(${translation}, ${translation})`}
                style={style}
            />
        </SVGIconContainer>
   );
});
FolderSharedOpen.displayName = `Blueprint6.Icon.FolderSharedOpen`;
export default FolderSharedOpen;
