# frozen_string_literal: true

module Blacklight
  module Icons
    class MixedComponent < 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="none" stroke="#6c757d" stroke-miterlimit="10" stroke-width="1.52" d="M.76 15.3h3.31v3.31H.76v-3.3zM13.38 15.3h3.32v3.31h-3.32v-3.3zM.76 27.93h3.31v3.31H.76v-3.31zM13.38 27.93h3.32v3.31h-3.32v-3.31z"/>
          	<path fill="none" stroke="#6c757d" stroke-miterlimit="10" stroke-width="1.77" d="M4.07 16.96h9.31M4.07 30.07h9.31M15.04 27.93V18.6M2.42 27.93V18.6"/>
          	<path fill="#6c757d" d="M29.4 2.6C31.07 4.28 32 6.51 32 8.9s-.92 4.6-2.6 6.28c-1.68 1.68-3.91 2.6-6.29 2.6s-4.6-.92-6.28-2.6c-1.68-1.68-2.6-3.91-2.6-6.28s.92-4.61 2.6-6.29C18.5.92 20.73 0 23.1 0s4.6.92 6.29 2.6zM28.6 14.4a7.72 7.72 0 0 0 2.12-3.95c-.23.35-.45.48-.6-.3-.13-1.25-1.29-.45-2.01-.9-.77.52-2.48-1-2.2.72.46.77 2.44-1.04 1.45.6-.63 1.13-2.3 3.65-2.09 4.96.03 1.9-1.94.4-2.62-.23-.46-1.27-.16-3.48-1.35-4.1-1.3-.06-2.42-.17-2.92-1.63-.3-1.03.32-2.58 1.43-2.82 1.63-1.02 2.22 1.2 3.74 1.24.48-.5 1.77-.65 1.88-1.2-1-.19 1.27-.85-.1-1.23-.75.09-1.24.78-.84 1.37-1.46.34-1.5-2.12-2.91-1.34-.04 1.22-2.3.4-.78.15.52-.23-.85-.89-.11-.77.36-.02 1.58-.45 1.25-.73.68-.43 1.26 1 1.92-.04.48-.8-.2-.95-.8-.54-.34-.38.6-1.2 1.43-1.56.27-.12.54-.18.74-.16.42.48 1.19.56 1.23-.06a7.75 7.75 0 0 0-8 .78c.36.16.57.36.22.63-.27.8-1.36 1.87-2.31 1.72a7.7 7.7 0 0 0-.97 2.78c.8.27.99.8.82.97-.41.35-.66.86-.79 1.4a7.73 7.73 0 0 0 7.67 6.5c2.08.01 4.03-.8 5.5-2.26z"/>
          </svg>
        SVG
      end

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