/*
 * 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";

/** Path data for the 16px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */
const PATHS_16 = ["M8.002 16a6.8 6.8 0 0 1-2.732-.556 7.1 7.1 0 0 1-2.221-1.509 7.1 7.1 0 0 1-1.498-2.239A6.9 6.9 0 0 1 1 8.955q0-.41.285-.698a.94.94 0 0 1 .692-.287q.407 0 .692.287t.285.698q0 2.12 1.469 3.598Q5.89 14.031 8 14.031t3.577-1.48q1.47-1.482 1.47-3.607 0-2.12-1.477-3.598-1.476-1.478-3.58-1.478h-.121l.49.496q.242.244.239.577a.82.82 0 0 1-.238.578.8.8 0 0 1-.588.248.78.78 0 0 1-.588-.24l-1.93-1.945a.97.97 0 0 1-.294-.7q0-.401.294-.697L7.184.24A.78.78 0 0 1 7.772 0q.345.004.588.259a.8.8 0 0 1 .233.583q-.001.339-.244.583l-.47.474h.11q1.459 0 2.732.556 1.274.555 2.225 1.51a7.1 7.1 0 0 1 1.503 2.233A6.9 6.9 0 0 1 15 8.945q0 1.466-.551 2.751a7.1 7.1 0 0 1-1.498 2.239 7.1 7.1 0 0 1-2.219 1.51 6.75 6.75 0 0 1-2.73.555M9 7h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1m1 1H9v3h1zm-5-.5a.5.5 0 0 1 .5-.5H6a1 1 0 0 1 1 1v3.5a.5.5 0 0 1-1 0V8h-.5a.5.5 0 0 1-.5-.5"] as readonly string[];

/** Path data for the 20px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */
const PATHS_20 = ["M9.754 20a8.5 8.5 0 0 1-3.417-.693 8.9 8.9 0 0 1-2.772-1.872 8.9 8.9 0 0 1-1.872-2.772A8.5 8.5 0 0 1 1 11.246q0-.413.28-.693a.94.94 0 0 1 .693-.28q.413 0 .693.28t.28.693q0 2.845 1.981 4.827 1.98 1.982 4.827 1.982t4.826-1.982 1.982-4.827q.001-2.845-1.982-4.826-1.984-1.98-4.826-1.982h-.146l.826.827a.9.9 0 0 1 .28.68q-.012.39-.28.681a1 1 0 0 1-1.07.24.9.9 0 0 1-.316-.216L6.544 4.147a.93.93 0 0 1-.292-.68q0-.39.292-.681L9.048.28A.9.9 0 0 1 9.741 0a.994.994 0 0 1 .973.985.9.9 0 0 1-.28.681l-.826.827h.146a8.5 8.5 0 0 1 3.416.693 8.9 8.9 0 0 1 2.772 1.872 8.9 8.9 0 0 1 1.872 2.772 8.5 8.5 0 0 1 .693 3.416 8.5 8.5 0 0 1-.693 3.417 8.9 8.9 0 0 1-1.872 2.772 8.9 8.9 0 0 1-2.772 1.872A8.5 8.5 0 0 1 9.754 20M11.5 9.5v3h1v-3zM11 8h2a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1M9 9v4.25a.75.75 0 1 1-1.5 0V9.5h-.75a.75.75 0 0 1 0-1.5H8a1 1 0 0 1 1 1"] as readonly string[];

export const BackwardTen: React.FC<SVGIconProps> = React.forwardRef<any, SVGIconProps>((props, ref) => {
    const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE;
    const paths = isLarge ? PATHS_20 : PATHS_16;
    return (
        <SVGIconContainer iconName="backward-ten" ref={ref} {...props}>
            {paths.map((d, i) => (
                <path key={i} d={d} fillRule="evenodd" />
            ))}
        </SVGIconContainer>
    );
});
BackwardTen.displayName = `Blueprint6.Icon.BackwardTen`;
export default BackwardTen;
