<ion-view hide-tabs>
  <ion-nav-bar class="bar-royal">
    <ion-nav-title>{{'Sweep paper wallet' | translate}}</ion-nav-title>
    <ion-nav-back-button>
    </ion-nav-back-button>
    <ion-nav-buttons side="secondary">
      <button ng-disabled="sending || balanceSat <= 0 || noMatchingWallet" class="button no-border" ng-click="sweepWallet()" translate>
        Sweep
      </button>
    </ion-nav-buttons>
  </ion-nav-bar>
  <ion-content scroll="false">
    <div ng-class="ng-hide" ng-show="!noMatchingWallet">
      <div class="row">
        <div class="col text-center">
          <h4 class="text-bold" translate>Funds found:</h4>
          <div ng-show="balance" class="size-24 ng-hide">{{balance}}</div>
          <div ng-show="!balance" class="size-24 ng-hide">...</div>
        </div>
      </div>
      <wallets id="wallet-slider" wallets="wallets" options="sliderOptions"></wallets>
      <div class="text-center size-12 text-gray">
        <span translate>Funds will be transferred to</span>:
        <b>{{wallet.walletAlias || wallet.name}}</b>
      </div>
    </div>
    <div class="text-center padding ng-hide" ng-show="noMatchingWallet">
      <span class="badge badge-energized" translate>No wallets available to receive funds</span>
    </div>
    <slide-to-accept-success
      slide-success-show="sendStatus === 'success'"
      slide-success-on-confirm="onSuccessConfirm()"
      slide-success-hide-on-confirm="true">
      <span translate>Funds transferred</span>
    </slide-to-accept-success>
  </ion-content>
</ion-view>
