<template>
  <div class="form-content">
    <div class="form-inner-content form-inner-content-left">
      <form-piyango-bilgileri
        v-if="piyangoStore.lotteryApprove === 0 || piyangoStore.lotteryApprove === 3" />
      <form-piyango-bilgileri-display v-else />
      <form-irtibat-bilgileri
        v-if="piyangoStore.lotteryApprove === 0 || piyangoStore.lotteryApprove === 3" />
      <form-irtibat-bilgileri-display v-else />
      <template v-if="piyangoStore.isLotteryForCharity">
        <form-piyango-yardim-amacli
          v-if="piyangoStore.lotteryApprove === 0 || piyangoStore.lotteryApprove === 3" />
        <form-piyango-yardim-amacli-display v-else />
      </template>
    </div>
    <div class="form-inner-content form-inner-content-right">
      <div
        class="form-part"
        v-if="
          piyangoStore.lotteryData.amacpiyangoId !== 3 &&
          piyangoStore.lotteryApprove !== 12
        ">
        <form-piyango-mecra
          v-if="piyangoStore.lotteryApprove === 0 || piyangoStore.lotteryApprove === 3" />
        <form-piyango-mecra-display v-else />
      </div>
      <form-piyango-documents />
    </div>
    <div
      class="form-inner-content"
      v-if="
        piyangoStore.lotteryData.amacpiyangoId !== 3 && piyangoStore.lotteryApprove !== 12
      ">
      <form-piyango-pictures />
    </div>
    <div
      class="form-inner-content"
      v-if="
        piyangoStore.lotteryData.amacpiyangoId !== 3 && piyangoStore.lotteryApprove !== 12
      ">
      <form-piyango-ikramiye-listesi
        v-if="piyangoStore.lotteryApprove === 0 || piyangoStore.lotteryApprove === 3" />
      <form-piyango-ikramiye-listesi-display v-else />
    </div>
  </div>
</template>
<script setup lang="ts">
  import FormPiyangoBilgileri from './form/FormPiyangoBilgileri.vue'
  import FormPiyangoBilgileriDisplay from './display/FormPiyangoBilgileriDisplay.vue'
  import FormPiyangoDocuments from './form/FormPiyangoDocuments.vue'
  import FormPiyangoPictures from './form/FormPiyangoPictures.vue'
  import FormIrtibatBilgileri from './form/FormPiyangoIrtibatBilgileri.vue'
  import FormIrtibatBilgileriDisplay from './display/FormPiyangoIrtibatBilgileriDisplay.vue'
  import FormPiyangoMecra from './form/FormPiyangoMecra.vue'
  import FormPiyangoMecraDisplay from './display/FormPiyangoMecraDisplay.vue'
  import FormPiyangoIkramiyeListesi from './form/FormPiyangoIkramiyeListesi.vue'
  import FormPiyangoIkramiyeListesiDisplay from './display/FormPiyangoIkramiyeListesiDisplay.vue'
  import FormPiyangoYardimAmacli from './form/FormPiyangoYardimAmacli.vue'
  import FormPiyangoYardimAmacliDisplay from './display/FormPiyangoYardimAmacliDisplay.vue'

  import { usePiyangoStore } from '../stores/piyangoStore'
  const piyangoStore = usePiyangoStore()
</script>
