<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 d="M892.1,608l61.3-61.3c13.5-13.5,13.5-35.5,0-49s-35.5-13.5-49,0L843.1,559l-61.3-61.3c-13.5-13.5-35.5-13.5-49,0
			s-13.5,35.5,0,49L794,608l-61.3,61.3c-13.5,13.5-13.5,35.5,0,49c6.8,6.8,15.6,10.2,24.5,10.2s17.7-3.4,24.5-10.2L843,657
			l61.3,61.3c6.8,6.8,15.6,10.2,24.5,10.2s17.7-3.4,24.5-10.2c13.5-13.5,13.5-35.5,0-49L892.1,608z" />
    <path d="M641.3,618.4c0-19.2-15.5-34.7-34.7-34.7H378.3l44.8-44.8c13.5-13.5,13.5-35.5,0-49s-35.5-13.5-49,0L270.2,593.7
			c-0.9,0.9-1.7,1.8-2.5,2.7c-0.1,0.2-0.2,0.3-0.4,0.5c-0.6,0.7-1.1,1.5-1.6,2.2c-0.2,0.3-0.4,0.7-0.6,1c-0.4,0.6-0.8,1.2-1.1,1.9
			c-0.2,0.4-0.4,0.8-0.6,1.2c-0.3,0.6-0.6,1.2-0.9,1.8c-0.2,0.4-0.3,0.9-0.5,1.3c-0.2,0.6-0.5,1.2-0.7,1.9c-0.1,0.5-0.2,0.9-0.4,1.4
			c-0.2,0.6-0.3,1.2-0.5,1.9c-0.1,0.6-0.2,1.1-0.3,1.7c-0.1,0.5-0.2,1.1-0.2,1.6c-0.2,2.3-0.2,4.6,0,6.8c0.1,0.5,0.2,1.1,0.2,1.6
			c0.1,0.6,0.1,1.2,0.3,1.7c0.1,0.6,0.3,1.3,0.5,1.9c0.1,0.5,0.2,0.9,0.4,1.4c0.2,0.6,0.4,1.3,0.7,1.9c0.2,0.4,0.3,0.9,0.5,1.3
			c0.3,0.6,0.6,1.2,0.9,1.8c0.2,0.4,0.4,0.8,0.6,1.2c0.3,0.6,0.7,1.3,1.1,1.9c0.2,0.3,0.4,0.7,0.6,1c0.5,0.8,1.1,1.5,1.6,2.2
			c0.1,0.2,0.2,0.3,0.4,0.5c0.8,0.9,1.6,1.9,2.5,2.7l103.9,103.9c6.8,6.8,15.6,10.2,24.5,10.2s17.7-3.4,24.5-10.2
			c13.5-13.5,13.5-35.5,0-49l-44.8-44.8h228.4C625.8,653.1,641.3,637.5,641.3,618.4z" />
    <path
      d="M643,383.2l-260.1-208c-12.7-10.1-30.6-10.1-43.3,0l-260.1,208c-8.2,6.6-13,16.6-13,27.1v416.1
			c0,19.2,15.5,34.7,34.7,34.7h520.2c19.2,0,34.7-15.5,34.7-34.7v-69.8c0-19.2-15.5-34.7-34.7-34.7s-34.7,15.5-34.7,34.7v35.1H135.9
			V427l225.4-180.3L586.7,427v60.6c0,19.2,15.5,34.7,34.7,34.7s34.7-15.5,34.7-34.7v-77.2C656,399.8,651.3,389.8,643,383.2z" />
  </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>
