text: export default {
    name: "SfRating",
    props: {
      /**
       * Maximum score
       */
      max: {
        type: Number,
        default: 5
      },
      /**
       * Score (obviously must be less than maximum)
       */
      score: {
        type: Number,
        default: 1
      }
    },
    computed: {
      finalScore() {
        if (!this.score) {
          return 0;
        } else if (this.score < 0) {
          return 0;
        } else if (this.score > this.max && this.max > 0) {
          return this.max;
        } else if (this.max <= 0) {
          return 0;
        } else {
          return this.score;
        }
      },
      finalMax() {
        return !this.max || this.max <= 0 ? 1 : this.max;
      }
    }
  };
  