import React from "react";
import { IntegrationLogoSvgWrapper, SvgLogoProps } from "./wrapper";

export const BambooHrSvg = ({
  color = "#69c52f",
  square,
  ...rest
}: SvgLogoProps) => {
  const viewBox = square ? "0 0 32 32" : "0 0 210 32";
  const path = square ? (
    <>
      <path
        fill={color}
        d="M32 16c0 8.836-7.163 16-16 16s-16-7.164-16-16c0-8.837 7.163-16 16-16s16 7.163 16 16zM18.874 13.214c-1.904 0-2.925 0.654-3.641 1.364l-0.195 0.205-0.001-6.382h-1.645v10.445c0 3.214 2.476 5.216 5.316 5.216 3.129 0 5.498-2.408 5.498-5.504 0-2.874-2.471-5.345-5.333-5.345zM12.616 15.334l-0.73-2.392c-0.436-1.258-0.565-1.983-1.792-3.279-0.42-0.445-2.012-1.423-1.815-1.21 2.017 2.177 3.049 4.816 3.447 5.548-0.365-0.444-0.794-0.842-1.282-1.338-0.416-0.422-0.851-0.803-1.264-1.058-0.272-0.168-0.424-0.261-0.7-0.404-1.243-0.646-2.447-1.036-2.91-1.152-0.565-0.141-1.122-0.177-1.122-0.177s1.801 1.52 2.572 2.488c0.772 0.967 1.559 1.835 2.429 2.19s1.173 0.456 1.857 0.56c0.59 0.089 1.31 0.224 1.31 0.224zM18.708 22.563c-2.066 0-3.815-1.629-3.815-3.812 0-2.184 1.474-3.977 3.852-3.977s3.779 1.923 3.779 3.936c0 2.191-1.483 3.852-3.816 3.852z"
      />
      <path
        fill={color}
        d="M29.987 28.832c0.009 0.020 0.017 0.039 0.025 0.057s0.015 0.037 0.020 0.057c0.007-0.020 0.014-0.039 0.019-0.057s0.014-0.037 0.026-0.057l0.365-0.654c0.013-0.019 0.025-0.031 0.037-0.037s0.029-0.009 0.052-0.009h0.229v1.279h-0.238v-0.788l0.019-0.162-0.395 0.726c-0.019 0.040-0.050 0.061-0.095 0.061h-0.039c-0.045 0-0.076-0.020-0.093-0.061l-0.397-0.719 0.017 0.156v0.788h-0.238v-1.279h0.229c0.024 0 0.042 0.003 0.052 0.009s0.023 0.018 0.039 0.037zM29.095 28.133v0.227h-0.389v1.052h-0.272v-1.052h-0.389v-0.227h1.050z"
      />
    </>
  ) : (
    <path
      fill={color}
      d="M53.242 28.743c3.778 0 7.261-3.214 7.261-7.78 0-4.82-3.232-7.99-7.177-7.99-5.037 0-7.428 3.974-7.428 7.862s2.392 7.907 7.344 7.907zM60.209 13.648v-2.916h3.314v20.252h-3.314v-2.706h-0.084c-1.469 1.776-3.944 3.425-7.344 3.425-5.453 0-10.322-4.271-10.322-10.867 0-6.259 4.531-10.779 10.533-10.779 3.651 0 5.789 1.943 7.174 3.592zM89.425 10.056c4.532 0 7.68 3.17 7.68 9.133v11.795h-3.316v-12.052c0-3.127-1.425-5.875-4.825-5.875-2.812 0-5.456 2.029-5.456 6.681v11.246h-3.357v-12.052c0-3.338-1.804-5.875-4.783-5.875-3.358 0-5.497 2.452-5.497 6.681v11.246h-3.317v-20.252h3.317v2.537h0.085c1.341-1.817 3.397-3.212 5.999-3.212 3.147 0 5.706 1.817 6.547 4.185 1.007-2.031 3.441-4.185 6.924-4.185zM133.906 28.658c4.237 0 7.301-3.383 7.301-7.822 0-4.271-2.895-7.779-7.301-7.779-4.28 0-7.302 3.298-7.302 7.779 0 4.566 3.441 7.822 7.302 7.822zM133.906 10.056c6.251 0 10.742 4.65 10.742 10.779 0 5.962-4.532 10.867-10.742 10.867-6.086 0-10.744-4.737-10.744-10.867 0-6.259 4.7-10.779 10.744-10.779zM157.512 28.658c4.238 0 7.304-3.383 7.304-7.822 0-4.271-2.895-7.779-7.304-7.779-4.278 0-7.3 3.298-7.3 7.779 0 4.566 3.441 7.822 7.3 7.822zM157.512 10.056c6.256 0 10.744 4.65 10.744 10.779 0 5.962-4.533 10.867-10.744 10.867-6.082 0-10.741-4.737-10.741-10.867 0-6.259 4.7-10.779 10.741-10.779zM183.993 19.413v-8.612h2.437v20.183h-2.437v-9.322h-10.656v9.322h-2.436v-20.183h2.436v8.612zM192.597 20.3h3.641c2.647 0 3.968-1.627 3.968-3.581 0-2.367-1.409-3.669-3.997-3.669h-3.613zM202.731 16.72c0 2.87-2.116 5.090-4.639 5.594l6.314 8.67h-3.087l-6.047-8.434h-2.676v8.434h-2.439v-20.182h5.789c4.991 0 6.785 3.137 6.785 5.918zM28.921 28.936c4.733 0 7.739-3.394 7.739-7.87 0-4.115-2.841-8.043-7.664-8.043s-7.812 3.664-7.812 8.125c0 4.459 3.547 7.788 7.737 7.788zM29.256 9.835c5.804 0 10.815 5.047 10.815 10.919 0 6.325-4.804 11.246-11.151 11.246-5.761 0-10.781-4.092-10.781-10.659v-21.341h3.336l0.001 13.040 0.396-0.419c1.452-1.452 3.522-2.787 7.384-2.787zM110.242 28.936c4.733 0 7.739-3.394 7.739-7.87 0-4.115-2.841-8.043-7.663-8.043s-7.812 3.664-7.812 8.125c0 4.459 3.546 7.788 7.737 7.788zM110.578 9.835c5.803 0 10.815 5.047 10.815 10.919 0 6.325-4.804 11.246-11.15 11.246-5.761 0-10.782-4.092-10.782-10.659v-19.332h3.337l0.001 11.031 0.395-0.419c1.453-1.452 3.523-2.787 7.384-2.787zM11.451 2.577c2.49 2.649 2.751 4.129 3.634 6.699l1.481 4.889c0 0-1.46-0.277-2.656-0.458-1.388-0.212-2.002-0.42-3.766-1.144s-3.361-2.497-4.926-4.474c-1.564-1.978-5.217-5.084-5.217-5.084s1.129 0.075 2.275 0.362c0.938 0.236 3.381 1.034 5.902 2.354 0.559 0.292 0.868 0.482 1.419 0.825 0.838 0.522 1.72 1.3 2.564 2.162 0.991 1.013 1.86 1.828 2.601 2.734-0.807-1.498-2.9-6.887-6.99-11.337-0.401-0.436 2.827 1.564 3.68 2.472zM209.194 13.957c0.098-0.246 0.148-0.514 0.148-0.805 0-0.282-0.049-0.546-0.148-0.79s-0.234-0.456-0.408-0.635c-0.174-0.179-0.377-0.32-0.611-0.423s-0.487-0.155-0.76-0.155c-0.275 0-0.531 0.051-0.768 0.155s-0.442 0.245-0.615 0.423c-0.173 0.18-0.309 0.391-0.408 0.635s-0.147 0.508-0.147 0.79c0 0.291 0.049 0.559 0.147 0.805 0.098 0.247 0.234 0.461 0.408 0.643s0.378 0.323 0.615 0.426c0.236 0.103 0.492 0.155 0.768 0.155 0.272 0 0.525-0.052 0.76-0.155s0.438-0.245 0.611-0.426c0.174-0.182 0.31-0.395 0.408-0.643zM209.579 12.223c0.126 0.286 0.188 0.596 0.188 0.929 0 0.341-0.062 0.656-0.188 0.945s-0.295 0.539-0.508 0.751c-0.213 0.213-0.462 0.379-0.746 0.497s-0.588 0.177-0.91 0.177c-0.322 0-0.626-0.059-0.912-0.177s-0.537-0.284-0.753-0.497c-0.215-0.212-0.385-0.463-0.511-0.751s-0.188-0.604-0.188-0.945c0-0.332 0.062-0.642 0.188-0.929s0.296-0.535 0.511-0.746c0.216-0.21 0.466-0.375 0.753-0.496s0.59-0.18 0.912-0.18c0.323 0 0.625 0.060 0.91 0.18s0.533 0.286 0.746 0.496c0.213 0.211 0.383 0.46 0.508 0.746zM207.371 13.007c0.096 0 0.187-0.003 0.273-0.009s0.162-0.024 0.229-0.054c0.067-0.030 0.12-0.075 0.16-0.136s0.059-0.146 0.059-0.256c0-0.093-0.017-0.167-0.053-0.221s-0.082-0.096-0.138-0.126c-0.057-0.030-0.121-0.050-0.194-0.060s-0.146-0.016-0.217-0.016h-0.564v0.878zM208.312 13.118c-0.138 0.116-0.309 0.184-0.515 0.205l0.785 1.22h-0.458l-0.747-1.188h-0.451v1.188h-0.427v-2.762h1.061c0.326 0 0.567 0.066 0.724 0.196s0.235 0.329 0.235 0.594c0 0.249-0.069 0.431-0.207 0.547z"
    />
  );

  return (
    <IntegrationLogoSvgWrapper viewBox={viewBox} {...rest}>
      <title>BambooHR integration logo</title>
      {path}
    </IntegrationLogoSvgWrapper>
  );
};
