import { __awaiter, __decorate } from "tslib";
import { customElement, observable } from '@microsoft/fast-element';
import { BaseRoute } from '../base';
import { commonLoginRouteStyles } from '../../styles';
import { VerifyTemplate as template } from './verify.template';
import { logger } from '../../utils';
let Verify = class Verify extends BaseRoute {
    constructor() {
        super(...arguments);
        this.code = '';
    }
    onSubmit() {
        const _super = Object.create(null, {
            onSubmit: { get: () => super.onSubmit }
        });
        return __awaiter(this, void 0, void 0, function* () {
            logger.debug('2FA verify submission');
            yield _super.onSubmit.call(this);
        });
    }
};
__decorate([
    observable
], Verify.prototype, "code", void 0);
Verify = __decorate([
    customElement({
        name: 'foundation-login-verify',
        template,
        styles: commonLoginRouteStyles,
    })
], Verify);
export { Verify };
//# sourceMappingURL=verify.js.map