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 = 'CU 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: "CUFlagIcon__a"
  }, /*#__PURE__*/React.createElement("path", {
    d: "M-32 0h682.7v512H-32z",
    fillOpacity: 0.7
  }))), /*#__PURE__*/React.createElement("g", {
    clipPath: "url(#CUFlagIcon__a)",
    fillRule: "evenodd",
    transform: "translate(30) scale(.94)"
  }, /*#__PURE__*/React.createElement("path", {
    d: "M-32 0h768v512H-32z",
    fill: "#0050f0"
  }), /*#__PURE__*/React.createElement("path", {
    d: "M-32 102.4h768v102.4H-32zm0 204.8h768v102.4H-32z",
    fill: "#fff"
  }), /*#__PURE__*/React.createElement("path", {
    d: "M-32 0l440.7 255.7L-32 511V0z",
    fill: "#ed0000"
  }), /*#__PURE__*/React.createElement("path", {
    d: "M161.8 325.5L114.3 290l-47.2 35.8 17.6-58.1-47.2-36 58.3-.4 18.1-58 18.5 57.8 58.3.1-46.9 36.3 18 58z",
    fill: "#fff"
  })));
};
const FlagIconWithForwardedRef = /*#__PURE__*/forwardRef((iconProps, ref) => /*#__PURE__*/React.createElement(FlagIcon, _extends({}, iconProps, {
  svgRef: ref
})));
export const CUFlagIcon = /*#__PURE__*/memo(createStyledFlagIcon(FlagIconWithForwardedRef));
CUFlagIcon.displayName = 'CUFlagIcon';