"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("../../core");
const base_1 = __importDefault(require("./base"));
class Feedback extends base_1.default {
    constructor() {
        super(core_1.ModuleName.feedback);
    }
    openHelpDesk() {
        const feedbackUrl = this.manager.execute(core_1.ModuleName.feedback, core_1.FeedbackCmdEnum.Feedback);
        const feedbackTip = this.manager.execute(core_1.ModuleName.feedback, core_1.FeedbackCmdEnum.FeedbackTip);
        if (feedbackUrl) {
            this.manager.execute(core_1.ModuleName.ui, core_1.UICmdEnum.showInfo, {
                content: feedbackTip,
            });
            this.manager.execute(core_1.ModuleName.ui, core_1.UICmdEnum.openPage, feedbackUrl);
        }
        else {
            this.manager.execute(core_1.ModuleName.ui, core_1.UICmdEnum.showInfo, {
                content: core_1.i18nHelper.t('FEEDBACK_NOT_SUPPORT', {}, '"feedback" is not currently supported'),
            });
        }
    }
}
exports.default = Feedback;
