# frozen_string_literal: true

module Blacklight
  module Icons
    class CdRomComponent < 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.62 20.54c-.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.1l-1.33.16c.9 3.16 3.23 5.71 6.25 6.93v-1.2l.02-.23a9.37 9.37 0 0 1-4.94-5.67zm19.16-5.7c-1-3.54-3.78-6.31-7.31-7.32l-.17 1.33a9.38 9.38 0 0 1 6.15 6.15l1.33-.16zM17.27 7.1l-.17 1.36a6.68 6.68 0 0 1 3.77 3.77l1.37-.17a8 8 0 0 0-4.97-4.96zm-2.6 11.56a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1.34a2.67 2.67 0 1 0 0-5.34 2.67 2.67 0 0 0 0 5.34zm10.58 7.73h-.85v3.22h1.06c.9 0 1.36-.63 1.36-1.53 0-1.2-.55-1.69-1.57-1.69zM32 23.33V30a2 2 0 0 1-2 2H15.33a2 2 0 0 1-2-2v-6.67c0-1.1.9-2 2-2H30a2 2 0 0 1 2 2zm-9.62 3.93h-1.15c-.1.68-.5 1.14-1.23 1.14-.98 0-1.47-.74-1.47-1.7 0-1 .47-1.76 1.47-1.76.63 0 1.1.43 1.18.9h1.16C22.2 24.64 21.18 24 20 24c-1.65 0-2.67 1.16-2.67 2.7 0 1.53 1.04 2.63 2.67 2.63 1.4 0 2.27-.85 2.38-2.07zm5.62-.62c0-1.62-.99-2.52-2.46-2.52H23.2v5.1h2.34c1.56 0 2.46-1.01 2.46-2.58zM2.67 14.67a12.01 12.01 0 1 1 23.3 4h2.8A14.63 14.63 0 0 0 14.67 0a14.67 14.67 0 0 0-4 28.77v-2.8c-4.66-1.66-8-6.1-8-11.3z"/>
          </svg>
        SVG
      end

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