# frozen_string_literal: true

module Blacklight
  module Icons
    class RasterComponent < 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="M27.31 4.69C30.34 7.7 32 11.73 32 16s-1.66 8.3-4.69 11.31C24.3 30.34 20.27 32 16 32s-8.3-1.66-11.31-4.69C1.66 24.3 0 20.27 0 16S1.66 7.7 4.69 4.69C7.7 1.66 11.73 0 16 0s8.3 1.66 11.31 4.69zM25.9 25.9a13.9 13.9 0 0 0 3.82-7.1c-.42.62-.82.85-1.07-.53-.26-2.27-2.34-.82-3.64-1.63-1.38.93-4.47-1.8-3.95 1.28.82 1.39 4.38-1.86 2.6 1.08-1.13 2.05-4.14 6.6-3.75 8.95.05 3.43-3.5.71-4.73-.43-.82-2.28-.28-6.26-2.43-7.37-2.34-.1-4.35-.32-5.25-2.93-.55-1.87.58-4.65 2.58-5.08 2.93-1.85 3.98 2.15 6.73 2.23.86-.9 3.18-1.18 3.38-2.18-1.8-.32 2.29-1.52-.18-2.2-1.35.16-2.23 1.4-1.5 2.47-2.64.61-2.73-3.81-5.26-2.42-.06 2.2-4.13.72-1.4.27.93-.4-1.53-1.6-.2-1.38.66-.03 2.86-.8 2.26-1.32 1.23-.76 2.26 1.82 3.45-.06.87-1.45-.36-1.72-1.44-.98-.62-.69 1.08-2.17 2.57-2.8.5-.22.97-.34 1.34-.3.75.87 2.14 1.02 2.21-.1A13.94 13.94 0 0 0 16 2c-3.05 0-5.95.97-8.35 2.76.64.3 1.01.67.39 1.14C7.55 7.34 5.59 9.27 3.87 9A13.84 13.84 0 0 0 2.14 14c1.44.48 1.77 1.42 1.47 1.74a4.74 4.74 0 0 0-1.42 2.54A13.9 13.9 0 0 0 6.1 25.9C8.75 28.54 12.26 30 16 30s7.26-1.46 9.9-4.1z"/>
          </svg>
        SVG
      end

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