<% const serverCurCode = ob.currencyMod.getServerCurrency().code %>
<% let statusIcon = 'ion-ios-checkmark-empty'; let statusIconClasses = 'clrTEmph1'; if (ob.status === 'DEAD') { statusIcon = 'ion-ios-close-empty'; statusIconClasses = 'tx1 clrTErr'; } else if (ob.status === 'STUCK') { statusIcon = 'ion-alert-circled'; statusIconClasses = 'tx3 clrTEmph1'; } else if (ob.status === 'PENDING' || ob.status === 'UNCONFIRMED') { statusIcon = 'ion-android-time'; statusIconClasses = 'tx3'; } %>
<% let priceFrag = ob.currencyMod.pairedCurrency( Math.abs(ob.value), serverCurCode, ob.userCurrency ); priceFrag = ob.value < 0 ? `-${priceFrag}` : `+${priceFrag}`; let infoLine = ''; if (ob.value > 0) { infoLine = ob.polyT('wallet.transactions.transaction.incomingText', { currencyPairing: `${priceFrag}`, }); } else { const currencyPairing = `${priceFrag}`; if (ob.address) { infoLine = ob.polyT('wallet.transactions.transaction.outgoingText', { currencyPairing, address: `${ob.address}`, }); } else { infoLine = currencyPairing; } } %>
<%= infoLine %>
<% let timeAgoAndConfirmCount = ob.polyT('wallet.transactions.transaction.timeAgoAndConfirmCount', { timeAgo: ob.timeAgo, confirmationsCount: ob.confirmations, smart_count: ob.confirmations, }); %>
<%= timeAgoAndConfirmCount %>
<% const memo = ob.translatedMemo || ob.memo.length > 300 ? `${ob.memo.slice(0, 300)}…` : ob.memo; %>
<%= memo %>
<%= ob.polyT('wallet.transactions.transaction.viewDetailsBtn') %> <% if (ob.allowFeeBump) { %> <%= ob.processingButton({ className: `btn clrP clrBr clrSh2 js-retryPmt ${ob.retryConfirmOn ? 'disabled' : ''} ${ob.retryInProgress ? 'processing' : ''}`, btnText: ob.polyT('wallet.transactions.transaction.retryTransactionBtn') }) %> <% } %>
<% let insufficientFunds = false; %>
<%= ob.polyT('wallet.transactions.transaction.retryPaymentConfirmBox.title') %>
<% if (ob.fetchingEstimatedFee) { %> <%= ob.spinner({ className: 'txCtr spinnerMd' }) %> <% } else if (ob.fetchFailed) { %>

<%= ob.polyT('wallet.transactions.transaction.retryPaymentConfirmBox.fetchError', { err: ob.fetchError || '' }) %>

<%= ob.polyT('wallet.transactions.transaction.retryPaymentConfirmBox.btnRetry') %> <% } else if (typeof ob.estimatedFee === 'number') { let estimatedFeeCombo = ob.currencyMod.pairedCurrency( ob.estimatedFee, serverCurCode, ob.userCurrency ); insufficientFunds = ob.walletBalance.confirmed < ob.estimatedFee; %> <% if (!insufficientFunds) { %>

<%= ob.polyT('wallet.transactions.transaction.retryPaymentConfirmBox.body', { currencyPairing: estimatedFeeCombo, asterisk: '*', }) %>

<% } else { %>

<%= ob.polyT('wallet.transactions.transaction.retryPaymentConfirmBox.insufficientFundsBody', { currencyPairing: estimatedFeeCombo, asterisk: '*', }) %>

<% } %>

<%= ob.polyT('wallet.transactions.transaction.retryPaymentConfirmBox.subText', { asterisk: '*', }) %>

<% } %>
<%= ob.polyT('wallet.transactions.transaction.retryPaymentConfirmBox.btnCancel') %> <%= ob.polyT('wallet.transactions.transaction.retryPaymentConfirmBox.btnConfirmSend') %>
<% if (ob.copiedIndicatorOn) { %>
Copied to clipboard
<% } %>