# frozen_string_literal: true

module Blacklight
  module Icons
    class DvdRomComponent < 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="M10.67 14.67a4 4 0 1 0 8 0 4 4 0 0 0-8 0zm6.66 0a2.67 2.67 0 1 1-5.34 0 2.67 2.67 0 0 1 5.34 0zm-.07-7.56a8 8 0 0 1 4.97 4.96l-1.37.17a6.67 6.67 0 0 0-3.77-3.77l.17-1.36zm7.65 4.63l-1.33.16a9.38 9.38 0 0 0-6.15-6.15l.17-1.33c3.53 1 6.3 3.78 7.32 7.32zM10.67 28.77a14.66 14.66 0 1 1 18.1-10.1h-2.8a12.01 12.01 0 0 0-11.3-16c-6.62 0-12 5.38-12 12 0 5.2 3.34 9.64 8 11.3v2.8zm.95-8.23c-.28.36-.5.76-.65 1.2a8 8 0 0 1-3.87-4.48l1.37-.17c.6 1.5 1.73 2.7 3.15 3.45zm-5.87-3.1a9.38 9.38 0 0 0 4.94 5.66l-.02.23v1.2a10.67 10.67 0 0 1-6.25-6.93l1.33-.17zm22.9 9.3c0 .92-.38 1.6-1.21 1.6h-.96V25h.77c1.03 0 1.4.64 1.4 1.76zm-9.4 0c0 .93-.38 1.6-1.21 1.6h-.96V25h.77c1.03 0 1.4.64 1.4 1.76zM30 21.35H15.33a2 2 0 0 0-2 2V30c0 1.1.9 2 2 2H30a2 2 0 0 0 2-2v-6.67a2 2 0 0 0-2-2zm-11.89 8H16V24h2.11c1.33 0 2.22.94 2.22 2.64 0 1.6-.77 2.7-2.22 2.7zm5.25 0h-1.21L20.55 24h1.1l1.1 3.75L23.88 24h1.11l-1.62 5.33zm4.15 0h-2.1V24h2.1c1.33 0 2.22.94 2.22 2.64 0 1.6-.77 2.7-2.22 2.7z"/>
          </svg>
        SVG
      end

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