# frozen_string_literal: true

module Blacklight
  module Icons
    class MultipointComponent < 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="M11.52 17.06c0-.86-.3-1.6-.91-2.2s-1.35-.92-2.2-.92c-.87 0-1.6.3-2.21.92s-.92 1.34-.92 2.2c0 .86.3 1.6.92 2.2s1.34.92 2.2.92c.86 0 1.6-.3 2.21-.91s.91-1.35.91-2.2zm3.12 0c0 .89-.13 1.62-.4 2.18l-4.43 9.43c-.13.27-.33.48-.58.64s-.53.23-.83.23c-.29 0-.56-.08-.82-.23s-.44-.37-.56-.64l-4.45-9.43c-.27-.57-.4-1.3-.4-2.18 0-1.72.6-3.19 1.82-4.4s2.7-1.84 4.41-1.84c1.73 0 3.2.61 4.41 1.83s1.83 2.69 1.83 4.41zM27.02 8.56c0-.86-.3-1.6-.91-2.2s-1.35-.92-2.2-.92c-.87 0-1.6.3-2.21.92s-.92 1.34-.92 2.2c0 .86.3 1.6.92 2.2s1.34.92 2.2.92c.86 0 1.6-.3 2.2-.91s.92-1.35.92-2.2zm3.12 0c0 .89-.13 1.61-.4 2.18l-4.43 9.43c-.13.27-.33.48-.58.64s-.53.23-.83.23c-.29 0-.56-.08-.82-.23s-.44-.37-.57-.64l-4.44-9.43c-.27-.57-.4-1.3-.4-2.18 0-1.72.6-3.19 1.82-4.4a6 6 0 0 1 4.41-1.84 6 6 0 0 1 4.41 1.83 6 6 0 0 1 1.83 4.41z"/>
          </svg>
        SVG
      end

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