/*
 * 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 PhoneForward: React.FC<SVGIconProps> = React.forwardRef<any, SVGIconProps>((props, ref) => {
    const isLarge = props.size! >= IconSize.LARGE;
    const pixelGridSize = isLarge ? IconSize.LARGE : IconSize.STANDARD;
    const translation = `${-1 * pixelGridSize / 0.05 / 2}`;
    const style = { transformOrigin: "center" };
    return (
        <SVGIconContainer iconName="phone-forward" ref={ref}  {...props}>
            <path
                d={isLarge ? "M396.898 89.798C395.3 91.398 312.784 139.798 309.988 141.198C307.19 142.598 304.592 143.198 301.996 143.198C298.2 143.198 293.604 140.598 287.81 135.198C282.216 129.798 264.4340000000001 105.398 259.24 99.998C254.044 94.598 249.65 91.998 246.252 91.998C244.654 91.998 242.456 92.398 239.86 93.398C237.262 94.398 210.888 107.998 155.9454 156.398C101.0018 204.7972 93.8092 236.3968 93.4096 245.1966C93.4096 248.5966 96.007 252.9966 101.4014 258.1964C106.9956 263.1964 112.7898 268.3964 119.1832 272.9962000000001C125.5766 277.7962 131.3706 282.9962000000001 136.7652 288.596C142.1596 294.1960000000001 144.7568 298.9958000000001 144.7568 302.7958C144.7568 305.3958 144.1576 308.1958 142.759 310.7958C141.3604 313.5956 91.4116 396.19456 89.6136 397.99452C85.8174 401.59448 71.2324 399.99450118 63.84 395.99456C4.10136 363.5950000000001 -0.893518 319.9956 0.1054556 302.7958C1.10443 284.996 12.29294 191.198 103.9988 104.198C217.882 -4 297 0.2 302.1960000000001 0.2C319.578 0.2 372.5220000000001 9.8 395.1 64C398.296 71.6 401.294 85.398 396.898 89.798zM220 260H331.6L305.8 234.2C302 230.4 299.8 225.4 299.8 220C299.8 209 308.8 200 319.8 200C325.4 200 330.4 202.2 334 205.8L394 265.8C397.6 269.4 399.8 274.4 399.8 280C399.8 285.6 397.6 290.6 394 294.2L334 354.2C330.4 357.8 325.4 360 319.8 360C308.8 360 299.8 351 299.8 340C299.8 334.4 302 329.4 305.6 325.8L331.6 300H220C209 300 200 291 200 280C200 269 209 260 220 260z" : "M318.32 71.802C317.118 73 250.864 111.792 248.662 112.792C246.46 113.792 244.258 114.392 242.256 114.392C239.254 114.392 235.45 112.192 230.846 107.992C226.242 103.594 212.03 84.198 207.828 80C203.624 75.6 200.22 73.6 197.4184 73.6C196.0172 73.6 194.4158 74 192.4142 74.8C190.4124 75.6 169.1946 86.398 125.1576 125.1888C81.1206 163.7798 75.3158 189.1738 75.1156 196.1722C75.1156 198.9714 77.3174 202.3708 81.521 206.5698C85.9246 210.7688 90.5286 214.7678 95.5328 218.567C100.537 222.366 105.341 226.565 109.5444 230.964C113.9482 235.563 115.9498 239.362 115.9498 242.3614C115.9498 244.5608 115.3494 246.5604 114.3486 248.7598C113.3476 250.7594 73.314 316.9439 71.9128 318.3435820000001C68.9104 321.342882 57.1004 319.9432084 51.0954 316.74396C3.25522 290.75 -0.547978 255.9582 0.0525274 242.1614C0.8532 227.9648000000001 9.86076 152.9822 83.3224 83.198C174.5992 -3.382 238.052 0.018 242.256 0.018C256.068 0.018 298.704 7.616 316.718 51.006C319.32 57.404 321.722 68.402 318.32 71.802zM314.2000000000001 234L274.2000000000001 274C270.6 277.8 265.6 280 260 280C249 280 240 271 240 260C240 254.4 242.2 249.4 245.8 245.8L251.6 240H180C169 240 160 231 160 220C160 209 169 200 180 200H251.8L246 194.2C242.4 190.6 240.2 185.6 240.2 180C240.2 169 249.2 160 260.2 160C265.8 160 270.8 162.2 274.4000000000001 165.8L314.4000000000001 205.8C318 209.4 320.2000000000001 214.4 320.2000000000001 220C320.2000000000001 225.6 317.8 230.4 314.2000000000001 234z"}
                fillRule="evenodd"
                transform={`scale(0.05, -0.05) translate(${translation}, ${translation})`}
                style={style}
            />
        </SVGIconContainer>
   );
});
PhoneForward.defaultProps = {
    size: IconSize.STANDARD,
};
PhoneForward.displayName = `Blueprint5.Icon.PhoneForward`;
export default PhoneForward;
