<template>
  <!-- Generator: Adobe Illustrator 24.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" :width="`${size}`" :height="`${size}`" :fill="color"
    :style="isLinear ? 'fill:url(#lgid)' : ''">
    <defs v-if="isLinear">
      <linearGradient id="lgid" :x1="gradientPosition[0]" :y1="gradientPosition[1]" :x2="gradientPosition[2]"
        :y2="gradientPosition[3]">
        <stop v-for="(it, i) in linearGradient" :key="i" :offset="it[0]" :style="`stop-color:${it[1]};`" />
      </linearGradient>
    </defs>
    <path class="st1" d="M958.4,597v-4.5c0-172.2-140-313.1-313.1-313.1H600v-69.9c0-9.8-8-17.8-17.8-17.8H152.3
		c-9.8,0-17.8,8-17.8,17.8v375H82.6c-9.8,0-17.8,8-17.8,17.8v149c0,9.8,8,17.8,17.8,17.8h87.5c8.3,39.7,43.5,69.6,85.6,69.6
		c42.1,0,77.3-29.9,85.6-69.6h50.7c7.9,40.1,43.4,70.5,85.7,70.5c42.4,0,77.8-30.4,85.7-70.5h139.8c7.9,40.1,43.4,70.5,85.7,70.5
		c42.4,0,77.8-30.4,85.7-70.5h66.8c9.8,0,17.8-8,17.8-17.8v-149C959.3,600.5,959,598.7,958.4,597z M170.1,227.3h394.2v68.4
		c0,0.5-0.2,1-0.2,1.5v286.9H170.1V227.3z M255.6,803c-28.5,0-51.7-23.2-51.7-51.7c0.9-27.7,24.1-50.8,51.7-50.8
		s50.8,23.2,51.7,50.8C307.4,779.8,284.2,803,255.6,803z M477.6,803.9c-28.5,0-51.6-23-51.7-51.5c0-0.4,0.1-0.8,0.1-1.2
		c0.9-27.6,24-50.8,51.7-50.8c1.7,0,3.4,0.1,5.1,0.3c22.8,2.3,41.5,20.3,45.8,42.6c0.5,2.9,0.8,5.8,0.8,8.8
		C529.4,780.7,506.2,803.9,477.6,803.9z M788.9,803.9c-28.5,0-51.7-23.2-51.7-51.7c0-0.8,0.1-1.5,0.1-2.3
		c1.6-27,24.4-49.4,51.6-49.4c0,0,0,0,0,0c27.2,0,50,22.4,51.6,49.4c0,0.8,0.1,1.5,0.1,2.3C840.7,780.7,817.5,803.9,788.9,803.9z
		 M923.6,733.4h-49.4c-2.6-11.7-7.5-22.5-14.2-31.9c-14.9-22.2-39-36.8-68.4-36.8c-0.5,0-1,0.1-1.4,0.1c-0.4,0-0.8-0.1-1.2-0.1
		c-41.7,0-76.7,29.5-85.3,68.7H565.2c-8.9-39.2-43.7-68.7-85.6-68.7c-0.3,0-0.7,0-1,0c-0.3,0-0.6,0-0.9,0
		c-41.7,0-76.7,29.5-85.3,68.7h-50.1c-4.3-18.8-14.5-35.3-28.6-47.4c-15.4-13.7-35.7-22.1-57.9-22.1c-42.1,0-77.3,29.9-85.6,69.6
		h-69.6V620.2H582h341.7V733.4z M600.7,584.5V315.1h45.5c149.9,0,273,120.4,277.4,269.4H600.7z" />
    <path class="st1" d="M663.2,356.1c-2.7,0-5.4,0.9-7.1,2.7c-1.8,1.8-2.7,3.6-2.7,6.2v157c0,5.4,3.6,8.9,8.9,8.9h198.9
		c2.7,0,5.4-1.8,8-4.5c1.8-2.7,1.8-5.4,0.9-8C839.8,428.4,758.6,364.1,663.2,356.1z M671.2,513.1V374.8
		c79.4,10.7,148.1,63.3,177.5,138.3H671.2z" />
    <path d="M395.3,363c-6.4-5.4-18.2-4.5-23.6,1.8l-2.4,2.9c-0.1,0.1-0.2,0.2-0.3,0.3l-83.9,101.4L236.6,415
		c-6.1-5.8-17.9-5.4-23.7,0.7c-5.8,6.1-5.4,17.9,0.6,23.7l60.6,66c6.1,5.8,17.9,5.4,23.7-0.7l88.4-105.2l94.1,92
		c6.4,5.4,18.2,4.5,23.6-1.8c5.4-6.4,4.5-18.2-1.8-23.6L395.3,363z M386.3,399.4l0.2-0.2l0.2,0.2L386.3,399.4z" />
  </svg>
</template>

<script>
import { defaultSize } from "../config"

export default {
  props: {
    size: { type: [String, Number], default: defaultSize },
    color: { type: String, default: '#000' },
    gradientPosition: { type: Array, default: () => ([]) },
    linearGradient: { type: Array, default: () => ([]) },
  },
  computed: {
    isLinear() {
      return (!!this.gradientPosition.length) && (!!this.linearGradient.length)
    }
  }
}
</script>
