<commit_before><script>
export default {
  props: {
    doneRegistering: {
      type: Boolean,
      required: true
    },
    isClanCreator: {
      required: true
    },
    onHandleJoinCTA: {
      required: true
    },
    championshipActive: {
      type: Boolean
    }
  },
}
</script>

<template>
  <div class="section-first-cta">
    <div v-if="!championshipActive" class="text-code-section">
      <img class="img-responsive" src="/images/pages/league/text_code.svg" width="501" height="147" />
    </div>
    <div class="row flex-row text-center">
      <p class="subheader2" style="max-width: 800px;">
        <span v-if="championshipActive">
          {{ $t('league.championship_summary', { championshipArena: $t('league.infinite_inferno'), championshipMonth: $t('calendar.april'), championshipType: $t('league.cup') }) }}
        </span>
        <span v-else>
          {{ $t('league.summary') }}
        </span>
      </p>
    </div>
    <div v-if="!doneRegistering && !isClanCreator()" class="row flex-row text-center xs-m-0">
      <a class="btn btn-large btn-primary btn-moon" @click="onHandleJoinCTA">{{ $t('league.join_now') }}</a>
    </div>
    <div v-if="!championshipActive" class="text-2021-section section-space">
      <img class="img-responsive" src="/images/pages/league/text_2021.svg" width="501" height="147" />
    </div>
  </div>
</template>

<style lang="scss" scoped>
p {
  color: white;
}

.text-code-section {
  width: 100%;<commit_msg>Fix AI League championship summary<commit_after><script>
export default {
  props: {
    doneRegistering: {
      type: Boolean,
      required: true
    },
    isClanCreator: {
      required: true
    },
    onHandleJoinCTA: {
      required: true
    },
    championshipActive: {
      type: Boolean
    }
  },
}
</script>

<template>
  <div class="section-first-cta">
    <div v-if="!championshipActive" class="text-code-section">
      <img class="img-responsive" src="/images/pages/league/text_code.svg" width="501" height="147" />
    </div>
    <div class="row flex-row text-center">
      <p class="subheader2" style="max-width: 800px;">
        <span v-if="championshipActive">
          {{ $t('league.championship_summary', { championshipArena: $t('league.sorcerers'), championshipMonth: $t('calendar.august'), championshipType: $t('league.blitz') }) }}
        </span>
        <span v-else>
          {{ $t('league.summary') }}
        </span>
      </p>
    </div>
    <div v-if="!doneRegistering && !isClanCreator()" class="row flex-row text-center xs-m-0">
      <a class="btn btn-large btn-primary btn-moon" @click="onHandleJoinCTA">{{ $t('league.join_now') }}</a>
    </div>
    <div v-if="!championshipActive" class="text-2021-section section-space">
      <img class="img-responsive" src="/images/pages/league/text_2021.svg" width="501" height="147" />
    </div>
  </div>
</template>

<style lang="scss" scoped>
p {
  color: white;
}

.text-code-section {
  width: 100%;
{'fraction_non_alphanumeric': 0.1829227134660817, 'fraction_numerical': 0.01889976375295309, 'mean_word_length': 3.065843621399177, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5934730', 'n_tokens_mistral': 1069, 'n_tokens_neox': 1009, 'n_words': 187}