# frozen_string_literal: true

module Blacklight
  module Icons
    class PrincetonComponent < 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="M14.77 31.35a31.91 31.91 0 0 1-7.18-5.08A24.08 24.08 0 0 1 .13 11.83c-.17-1.25-.1-6.7.1-7.43l.08-.32.98.34c1.93.68 4.47.9 6.35.58A13.33 13.33 0 0 0 15 .85c.43-.47.83-.85.9-.85s.25.18.44.4c.64.76 2.01 1.99 2.87 2.57a12.16 12.16 0 0 0 8.23 2.11c1.22-.13 3.3-.64 3.65-.9.14-.1.25-.12.3-.05.43.5.54 5.98.17 8.3-1.09 6.82-4.83 12.5-11.07 16.81-1.8 1.25-4.15 2.55-4.6 2.55-.14 0-.65-.2-1.12-.44zm2.08-.22a32.7 32.7 0 0 0 6.22-4.21l.91-.8-8.1-5.83-8.07 5.81.69.64a37.31 37.31 0 0 0 5.74 4.03c.83.44 1.57.8 1.63.8s.5-.2.98-.44zM10.1 17.56l5.77-4.16 5.8 4.19c3.64 2.61 5.86 4.14 5.95 4.07.23-.17 1.13-1.74 1.68-2.92.8-1.7 1.3-3.23 1.8-5.47l.08-.34H15.88c-14.52 0-15.31 0-15.25.18a28.04 28.04 0 0 0 1.58 5.07c.71 1.6 1.81 3.54 2 3.54.07 0 2.72-1.87 5.9-4.16z"/>
          </svg>
        SVG
      end

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