"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 DataManager_1 = require("../../manager/DataManager");
var TwLang_1 = require("../../util/TwLang");
var CustomModel_1 = require("./../common/CustomModel");
var GFun_1 = require("../../../tc/util/GFun");
/**
 * 自定义活动工具玩法模型
 */
var CustomPlayModel = (function (_super) {
    __extends(CustomPlayModel, _super);
    function CustomPlayModel() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Object.defineProperty(CustomPlayModel.prototype, "countTxt", {
        /**
         * 次数文案
         */
        get: function () {
            var str;
            switch (DataManager_1.DataManager.ins.ajaxElementData.element.status) {
                case 0:
                    break;
                case 1:
                    str = TwLang_1.TwLang.lang_002;
                    break;
                case 3:
                    str = TwLang_1.TwLang.lang_004 + TwLang_1.TwLang.lang_003;
                    break;
                case 4:
                    str = TwLang_1.TwLang.lang_003;
                    break;
                case 5:
                    str = TwLang_1.TwLang.lang_004 + GFun_1.GFun.replace(TwLang_1.TwLang.lang_005, [DataManager_1.DataManager.ins.ajaxElementData.element.freeLimit]);
                    break;
                case 6:
                    str = GFun_1.GFun.replace(TwLang_1.TwLang.lang_006, [DataManager_1.DataManager.ins.ajaxElementData.element.needCredits, DataManager_1.DataManager.ins.customCfgData.unitName]);
                    break;
                case 7:
                    str = GFun_1.GFun.replace(TwLang_1.TwLang.lang_005, [DataManager_1.DataManager.ins.ajaxElementData.element.freeLimit]);
                    break;
                case 18:
                    str = TwLang_1.TwLang.lang_007;
                    break;
            }
            return str;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(CustomPlayModel.prototype, "optionList", {
        /**
         * 奖品列表
         */
        get: function () {
            return DataManager_1.DataManager.ins.ajaxElementData.options;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(CustomPlayModel.prototype, "rule", {
        /**
         * 活动规则
         */
        get: function () {
            return DataManager_1.DataManager.ins.ajaxElementData.rule;
        },
        enumerable: true,
        configurable: true
    });
    return CustomPlayModel;
}(CustomModel_1.CustomModel));
exports.CustomPlayModel = CustomPlayModel;
__reflect(CustomPlayModel.prototype, "\"c:/Users/duiba/Documents/zhonghe_answer/egret/libs/tw/model/custom/CustomPlayModel\".CustomPlayModel");
//# sourceMappingURL=CustomPlayModel.js.map