"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
    p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) { 
 function r() { 
 this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Panel_1 = require("../views/Panel");
var HtmlTextParser_1 = require("../../libs/tc/util/HtmlTextParser");
var topLayerCtrl_1 = require("../ctrls/topLayerCtrl");
var RulePanel = (function (_super) {
    __extends(RulePanel, _super);
    function RulePanel(data) {
        return _super.call(this, data) || this;
    }
    Object.defineProperty(RulePanel.prototype, "skinKey", {
        get: function () {
            return 'RulePanel';
        },
        enumerable: true,
        configurable: true
    });
    RulePanel.prototype.start = function () {
        topLayerCtrl_1.default.instance.closeCurrent();
        topLayerCtrl_1.default.instance.removeMask();
        _super.prototype.start.call(this);
        this.initUI();
    };
    RulePanel.prototype.initUI = function () {
        // let rule = DataManager.ins.getData(NetName.GET_RULE).data || '';
        var rule = window['rule'];
        this.ruleLabel.textFlow = new HtmlTextParser_1.HtmlTextParser().parser(rule);
    };
    return RulePanel;
}(Panel_1.default));
exports.default = RulePanel;
__reflect(RulePanel.prototype, "\"/Users/haiyoucuv/Documents/Web/\u5DE5\u884C\u5361\u4E2D\u5FC3--\u6B22\u8DA3\u5E84\u56ED\u6D3B\u52A8/JoyousManor/egret/src/Panels/RulePanel\".RulePanel");
//# sourceMappingURL=RulePanel.js.map