<template>
  <div id="ewallet-fund-container">
    <b-breadcrumb :items="items" class="d-print-none" />
    <b-container fluid>
      <div class="ewallet-fund-title d-print-none">
        {{ $t('EWallet.FundTransfer') }}
      </div>
      <b-row class="ewallet-fund-step-circle d-print-none">
        <div class="normal-circle" :class="getStep1ClassObject">
          <span class="inner-text center-align">
            1
          </span>
        </div>
        <div class="line-step d-print-none" />
        <div class="normal-circle" :class="getStep2ClassObject">
          <span class="inner-text center-align">
            2
          </span>
        </div>
        <div class="line-step d-print-none" />
        <div class="normal-circle" :class="getStep3ClassObject">
          <span class="inner-text center-align">
            3
          </span>
        </div>
      </b-row>
      <component :is="getEWalletFundStep" />
      <div class="ewallet-fund-note" v-if="false">
        Note:
        <p>
          Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
          magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
          consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
          pariatur. Excepteur sint occaecat cupidatat
        </p>
      </div>
    </b-container>
  </div>
</template>
<script>
import { mapGetters, mapActions } from 'vuex'
import fundFirstStep from './blocks/FundTransferFirstStep'
import fundSecondStep from './blocks/FundTransferSecondStep'
import fundThirdStep from './blocks/FundTransferThirdStep'
export default {
  name: 'FundtransferComponent',
  components: {
    fundFirstStep,
    fundSecondStep,
    fundThirdStep,
  },
  data() {
    return {
      stepText: '',
      activeClass: 'active-step',
      circleText: 'circle-text',
      pl1: 'pl-1',
      items: [
        // This should be from backend later
        { text: this.$t('EWallet.Title'), href: '#' },
        { text: this.$t('EWallet.FundTransfer'), href: '#', active: true },
      ],
    }
  },
  mounted() {
    this.loadEwalletBalance()
    this.initializeEwalletKey()
  },
  methods: {
    ...mapActions(['loadEwalletBalance', 'initializeEwalletKey']),
  },
  computed: {
    ...mapGetters(['getEWalletFundStep', 'getStep1ClassObject', 'getStep2ClassObject', 'getStep3ClassObject']),
  },
}
</script>
