@let currentStage = stage(); @switch (currentStage.kind) { @case ("selectApproval") {

{{ "selectApprovalMethodDesc" | i18n }}

@for (method of currentStage.methods; track method) { {{ getApprovalMethodLabel(method) | i18n }} }
} @case ("approvalCode") { @if (currentStage.variant === "email") {

{{ "approvalEmailDesc" | i18n }}

{{ "verificationCode" | i18n }}
} @else if (currentStage.variant === "admin") {

{{ "adminApprovalRequested" | i18n }}

{{ "adminDeviceApprovalPushDesc" | i18n }}

} @else {

{{ "keeperPushSent" | i18n }}

{{ "otherDeviceApprovalPushDesc" | i18n }}

} } @case ("selectTwoFactor") {
@for (method of currentStage.methods; track method) { {{ getTwoFactorLabel(method) | i18n }} }
} @case ("twoFactorCode") {
@if (currentStage.needsInput) {

{{ getTwoFactorCodePrompt(currentStage) | i18n }}

{{ "verificationCode" | i18n }}
@if (currentStage.canResend) { } } @else {

{{ "mfaPushDesc" | i18n }}

}
} @case ("selectDuo") {

{{ currentStage.phoneNumber }}

@for (method of currentStage.methods; track method) { {{ getDuoLabel(method) | i18n }} }
} @case ("duoPush") {

{{ "duoPushWaiting" | i18n }}

} @case ("selectDna") {
@for (method of currentStage.methods; track method) { {{ getDnaLabel(method) | i18n }} }
} @case ("dnaPush") {

{{ "keeperDnaPushWaiting" | i18n }}

} @case ("ssoToken") {

{{ "keeperSsoDesc" | i18n }}

{{ "ssoToken" | i18n }}
} @case ("password") {

{{ "keeperMasterPasswordPrompt" | i18n }}

{{ "masterPassword" | i18n }}
} @case ("error") {
{{ currentStage.message | i18n }}
} }