# frozen_string_literal: true

module Blacklight
  module Icons
    class CornellComponent < Blacklight::Icons::IconComponent
      self.svg = svg

      def svg
        <<~SVG
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
          	<title>#{title}</title>
          	<path fill="#6c757d" d="M16 0C7.18 0 .04 7.16.04 15.96S7.18 32 16 32c8.8 0 15.96-7.24 15.96-16.04C31.96 7.15 24.8 0 16 0zm0 30.19a14.22 14.22 0 1 1 0-28.45 14.22 14.22 0 0 1 0 28.45z"/>
          	<path fill="#6c757d" d="M6.33 18.65c0 7.25 9.05 11.17 9.4 11.34l.27.1.27-.18c.44-.16 9.42-4.18 9.42-11.07V5.76H6.33v12.9zm1.39.01v-3.91h7.83v1c-.2-.04-.62-.14-1.1-.07-.26 0-.53.1-.8.1-.44 0-.78.08-1.13.08H10.5v8.82h1.73c.69 0 1.14-.1 1.58-.1.42-.08.78-.08 1.3-.08.09 0 .17.08.26.17.04.04.09.11.17.18v3.58c-2.15-1.11-7.83-4.54-7.83-9.77zm7.83 4.94a1.59 1.59 0 0 0-.43-.07c-.6 0-.95 0-1.37.1-.43 0-.87.08-1.48.08h-.62v-6.79h.96c.33 0 .78 0 1.22-.09.25 0 .52-.09.78-.09.45-.08.88 0 .88 0l.06.03v6.83zm1.04-6.81a.23.23 0 0 1 .12-.04s.44-.1.88 0c.26 0 .53.08.79.08.42 0 .86.1 1.21.1h.96v6.78h-.61c-.6 0-1.05-.09-1.48-.09-.45-.09-.89-.09-1.41-.09-.17 0-.33.03-.46.07V16.8zm0 0v-.05h.04l-.04.04zm0 11.64v-3.61l.23-.15c.08-.17.08-.17.25-.17.52 0 .87.09 1.3.09.43 0 .88.09 1.58.09h1.73v-8.82h-2.01c-.36 0-.7 0-1.14-.09-.26 0-.53-.09-.79-.09-.48 0-.98.07-1.15.08v-1.01h7.86v4.17c0 4.92-5.76 8.4-7.86 9.51zm7.86-14.82H7.72V7.15h16.73v6.46z"/>
          	<path fill="#6c757d" d="M10.08 12.2c.6.44 1.66 1.06 1.66 1.06l.17.09.26-.1c.08 0 1.04-.6 1.74-1.05.52-.35.78-.7.78-1.14V7.4H9.2v3.66c.1.36.37.79.9 1.14zm3.22-.7c-.43.27-1.12.71-1.48.88-.36-.18-.97-.62-1.41-.88-.27-.17-.44-.44-.44-.53V9.86h3.77v1.2c0 .18-.27.35-.44.44zM9.98 8.19v.09h3.76v.8H9.97l.01-.89zM18.6 12.2c.62.44 1.67 1.06 1.67 1.06l.17.09.26-.1c.08 0 1.04-.6 1.74-1.05.52-.35.78-.7.78-1.14V7.4h-5.5v3.66c.1.36.36.79.89 1.14zm3.26-.7c-.44.27-1.13.71-1.48.88-.37-.18-.98-.62-1.41-.88-.27-.17-.44-.44-.44-.53v-.16l1.83-1.3 1.93 1.26v.3c0 .17-.26.34-.43.43zm-3.31-3.31v.09h3.74v1.58l-1.93-1.31-1.83 1.28V8.2h.02zM12.24 17.87h2.27v.78h-2.27v-.78zM12.24 19.7h2.27v.78h-2.27v-.78zM12.24 21.54h2.27v.79h-2.27v-.79zM17.3 17.87h2.26v.78H17.3v-.78zM17.3 19.7h2.26v.78H17.3v-.78zM17.3 21.54h2.26v.79H17.3v-.79z"/>
          </svg>
        SVG
      end

      def title
        key = "blacklight.icon.#{name}"
        t(key)
      end
    end
  end
end
