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 = 'CW 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",
    xmlnsXlink: "http://www.w3.org/1999/xlink"
  }, props), title ? /*#__PURE__*/React.createElement("title", {
    id: titleId
  }, title) : null, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
    id: "CWFlagIcon__a"
  }, /*#__PURE__*/React.createElement("path", {
    d: "M0 0h682.7v512H0z",
    fillOpacity: 0.7
  })), /*#__PURE__*/React.createElement("path", {
    d: "M0-1l.2.7H1L.3 0l.2.7L0 .4l-.6.4.2-.7-.5-.4h.7z",
    id: "CWFlagIcon__b"
  })), /*#__PURE__*/React.createElement("g", {
    clipPath: "url(#CWFlagIcon__a)",
    transform: "scale(.94)"
  }, /*#__PURE__*/React.createElement("path", {
    d: "M0 0h768v512H0z",
    fill: "#002b7f"
  }), /*#__PURE__*/React.createElement("path", {
    d: "M0 320h768v64H0z",
    fill: "#f9e814"
  }), /*#__PURE__*/React.createElement("use", {
    fill: "#fff",
    height: 9000,
    transform: "scale(42.67)",
    width: 13500,
    x: 2,
    xlinkHref: "#CWFlagIcon__b",
    y: 2
  }), /*#__PURE__*/React.createElement("use", {
    fill: "#fff",
    height: 9000,
    transform: "scale(56.9)",
    width: 13500,
    x: 3,
    xlinkHref: "#CWFlagIcon__b",
    y: 3
  })));
};
const FlagIconWithForwardedRef = /*#__PURE__*/forwardRef((iconProps, ref) => /*#__PURE__*/React.createElement(FlagIcon, _extends({}, iconProps, {
  svgRef: ref
})));
export const CWFlagIcon = /*#__PURE__*/memo(createStyledFlagIcon(FlagIconWithForwardedRef));
CWFlagIcon.displayName = 'CWFlagIcon';