import _extends from "@babel/runtime/helpers/esm/extends";
// **********************************
// Auto-generated file, do NOT modify
// **********************************
import React, { forwardRef, memo, useId } from 'react';
import { createStyledFlagIcon } from '../base';
const FlagIcon = _ref => {
  let {
    svgRef,
    title = 'CF flag',
    theme,
    ...props
  } = _ref;
  const uniqueTitleId = useId();
  const titleId = title ? props.titleId || uniqueTitleId : undefined;
  const ariaHidden = titleId ? undefined : true;
  return /*#__PURE__*/React.createElement("svg", _extends({
    "aria-hidden": ariaHidden,
    "aria-labelledby": titleId,
    ref: svgRef,
    viewBox: "0 0 640 480"
  }, props), title ? /*#__PURE__*/React.createElement("title", {
    id: titleId
  }, title) : null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
    id: "CFFlagIcon__a"
  }, /*#__PURE__*/React.createElement("path", {
    d: "M-12.4 32h640v480h-640z",
    fillOpacity: 0.7
  }))), /*#__PURE__*/React.createElement("g", {
    clipPath: "url(#CFFlagIcon__a)",
    fillRule: "evenodd",
    transform: "translate(12.4 -32)"
  }, /*#__PURE__*/React.createElement("path", {
    d: "M-52 32h719.3v119H-52z",
    fill: "#00f"
  }), /*#__PURE__*/React.createElement("path", {
    d: "M-52 391.6h719.3V512H-52z",
    fill: "#ff0"
  }), /*#__PURE__*/React.createElement("path", {
    d: "M-52 271.3h719.3v120.3H-52z",
    fill: "#009a00"
  }), /*#__PURE__*/React.createElement("path", {
    d: "M-52 151h719.3v120.3H-52z",
    fill: "#fff"
  }), /*#__PURE__*/React.createElement("path", {
    d: "M247.7 32.5h119.9V512H247.7z",
    fill: "red"
  }), /*#__PURE__*/React.createElement("path", {
    d: "M99.3 137.7l-31.5-21.8-31.3 22L47.4 101 16.9 78l38.2-1 12.5-36.3L80.3 77l38.1.7L88.2 101",
    fill: "#ff0"
  })));
};
const FlagIconWithForwardedRef = /*#__PURE__*/forwardRef((iconProps, ref) => /*#__PURE__*/React.createElement(FlagIcon, _extends({}, iconProps, {
  svgRef: ref
})));
export const CFFlagIcon = /*#__PURE__*/memo(createStyledFlagIcon(FlagIconWithForwardedRef));
CFFlagIcon.displayName = 'CFFlagIcon';