<commit_before><template>
  <div class="validation-popup-overlay"></div>
  <div class="validation-popup-container">
    <div class="validation-popup-close" v-on:click="closevalidation(destination)">
      <svg viewBox="0 0 100 100" class="app-icon">
        <use xlink:href="#app-icon-close"></use>
      </svg>
    </div>
    <div v-if="add == 'FoodKeeper'" class="validation-popup-container-content">
      <h3 class="validation-popup-title">Bravo à toi !</h3>
      <div class="validation-popup-title-separator"></div>
      <div class="validation-popup-item-wrapper">
        <div class="validation-popup-item">
            <p class="validation-popup-item-text">Tu viens de créer un nouveau<br /> garde-manger !</p>
        </div>
        <div class="validation-popup-item">
          <div class="validation-popup-item-text-wrapper">
            <p class="validation-popup-item-text"><span class="underline"></span>Maintenant il est temps de<br /></p>
            <p class="validation-popup-item-text text-bold"><span class="underline"></span>configurer une place de marché<br /></p>
            <p class="validation-popup-item-text"><span class="underline"></span>associée pour y partager tes denrées !</p>
          </div>
        </div>
      </div>
      <div class="validation-popup-redirect-button" v-link="{name : 'AddMarket'}">Configurer</div>
      <div class="validation-popup-add-button" v-on:click="closevalidation(destination)">Remettre à plus tard</div>
    </div>
    <div v-if="add == 'Market'" class="validation-popup-container-content">
      <h3 class="validation-popup-title">Bravo à toi !</h3>
      <div class="validation-popup-title-separator"></div>
      <div class="validation-popup-item-wrapper">
        <div class="validation-popup-item">
          <div class="validation-popup-item-text-wrapper">
            <p class="validation-popup-item-text"><span class="underline"></span>Tu viens de créer<br /></p>
            <p class="validation-popup-item-text text-bold"><span class="underline"></span>une nouvelle place du marché !<br /></p>
          </div>
        </div>
      </div>
      <div class="validation-popup-redirect-button" v-on:click="closevalidation(destination)">Fermer</div>
    </div>
    <div v-if="add == 'Product'" class="validation-popup-container-content">
      <h3 class="validation-popup-title">Bravo à toi !</h3>
      <div class="validation-popup-title-separator"></div>
      <div class="validation-popup-item-wrapper">
        <div class="validation-popup-item">
          <div class="validation-popup-item-text-wrapper">
            <p class="validation-popup-item-text"><span class="underline"></span>Tu viens d'ajouter'<br /></p>
            <p class="validation-popup-item-text text-bold"><span class="underline"></span>une nouvelle denrée !<br /></p>
          </div>
        </div>
      </div>
      <div class="validation-popup-redirect-button" v-on:click="closevalidation(destination)">Fermer</div>
    </div>
    <div v-if="add == 'AskProduct'" class="validation-popup-container-content">
      <h3 class="validation-popup-title">Alliance demandée !</h3>
      <div class="validation-popup-title-separator"></div>
      <div class="validation-popup-item-wrapper">
        <div class="validation-popup-item">
          <div class="validation-popup-item-text-wrapper">
            <p class="validation-popup-item-text"><span class="underline"></span>Votre demande de denrée<br /></p>
            <p class="validation-popup-item-text text-bold"><span class="underline"></span>est validée<br /></p>
          </div>
        </div>
      </div>
      <div class="validation-popup-redirect-button" v-on:click="closevalidation(destination)">Fermer</div>
    </div>
  <div class="popup-overlay"></div>
  </div>
</template>

<script>
export default {
  props: ['destination', 'add'],
  methods: {
    closevalidation(destination) {
      document.getElementsByClassName('validation-popup-container')[0].classList.remove('active');
      document.getElementsByClassName('validation-popup-overlay')[0].classList.remove('active');
      this.$route.router.go({ name: destination });
      event.preventDefault()<commit_msg>Fix popup validation<commit_after><template>
  <div class="validation-popup-overlay"></div>
  <div class="validation-popup-container">
    <div class="validation-popup-close" v-on:click="closevalidation(destination)">
      <svg viewBox="0 0 100 100" class="app-icon">
        <use xlink:href="#app-icon-close"></use>
      </svg>
    </div>
    <div v-if="add == 'FoodKeeper'" class="validation-popup-container-content">
      <h3 class="validation-popup-title">Bravo à toi !</h3>
      <div class="validation-popup-title-separator"></div>
      <div class="validation-popup-item-wrapper">
        <div class="validation-popup-item">
            <p class="validation-popup-item-text">Tu viens de créer un nouveau<br /> garde-manger !</p>
        </div>
        <div class="validation-popup-item">
          <div class="validation-popup-item-text-wrapper">
            <p class="validation-popup-item-text"><span class="underline"></span>Maintenant il est temps de<br /></p>
            <p class="validation-popup-item-text text-bold"><span class="underline"></span>configurer une place de marché<br /></p>
            <p class="validation-popup-item-text"><span class="underline"></span>associée pour y partager tes denrées !</p>
          </div>
        </div>
      </div>
      <div class="validation-popup-redirect-button" v-link="{name : 'AddMarket'}">Configurer</div>
      <div class="validation-popup-add-button" v-on:click="closevalidation(destination)">Remettre à plus tard</div>
    </div>
    <div v-if="add == 'Market'" class="validation-popup-container-content">
      <h3 class="validation-popup-title">Bravo à toi !</h3>
      <div class="validation-popup-title-separator"></div>
      <div class="validation-popup-item-wrapper">
        <div class="validation-popup-item">
          <div class="validation-popup-item-text-wrapper">
            <p class="validation-popup-item-text"><span class="underline"></span>Tu viens de créer<br /></p>
            <p class="validation-popup-item-text text-bold"><span class="underline"></span>une nouvelle place du marché !<br /></p>
          </div>
        </div>
      </div>
      <div class="validation-popup-redirect-button" v-on:click="closevalidation(destination)">Fermer</div>
    </div>
    <div v-if="add == 'Product'" class="validation-popup-container-content">
      <h3 class="validation-popup-title">Bravo à toi !</h3>
      <div class="validation-popup-title-separator"></div>
      <div class="validation-popup-item-wrapper">
        <div class="validation-popup-item">
          <div class="validation-popup-item-text-wrapper">
            <p class="validation-popup-item-text"><span class="underline"></span>Tu viens d'ajouter'<br /></p>
            <p class="validation-popup-item-text text-bold"><span class="underline"></span>une nouvelle denrée !<br /></p>
          </div>
        </div>
      </div>
      <div class="validation-popup-redirect-button" v-on:click="closevalidation(destination)">Fermer</div>
    </div>
    <div v-if="add == 'AskProduct'" class="validation-popup-container-content">
      <h3 class="validation-popup-title">Alliance demandée !</h3>
      <div class="validation-popup-title-separator"></div>
      <div class="validation-popup-item-wrapper">
        <div class="validation-popup-item">
          <div class="validation-popup-item-text-wrapper">
            <p class="validation-popup-item-text"><span class="underline"></span>Votre demande de denrée<br /></p>
            <p class="validation-popup-item-text text-bold"><span class="underline"></span>est validée<br /></p>
          </div>
        </div>
      </div>
      <div class="validation-popup-redirect-button" v-on:click="closevalidation(destination)">Fermer</div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['destination', 'add'],
  methods: {
    closevalidation(destination) {
      document.getElementsByClassName('validation-popup-container')[0].classList.remove('active');
      document.getElementsByClassName('validation-popup-overlay')[0].classList.remove('active');
      this.$route.router.go({ name: destination });
      event.preventDefault()
{'fraction_non_alphanumeric': 0.1807604653952261, 'fraction_numerical': 0.004318100035984167, 'mean_word_length': 3.3723125327739907, 'pattern_counts': {'":': 0, '<': 245, '<?xml version=': 0, '>': 245, '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': '7649213', 'n_tokens_mistral': 2536, 'n_tokens_neox': 2484, 'n_words': 439}